xt-element-ui 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,4 +31,4 @@ var p=function(t,e){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Arr
31
31
  * https://github.com/ecomfe/zrender/blob/master/LICENSE
32
32
  */function bi(t){delete xi[t]}function _i(t){if(!t)return!1;if("string"===typeof t)return Object(bn["lum"])(t,1)<vr;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=Object(bn["lum"])(e[i].color,1);return n/=r,n<vr}return!1}var wi,Si=function(){function t(t,e,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var i=new Ve,a=n.renderer||"canvas";mi[a]||(a=b["keys"](mi)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect;var o=new mi[a](e,i,n,t),s=n.ssr||o.ssrOnly;this.storage=i,this.painter=o;var l,u=x.node||x.worker||s?null:new fr(o.getViewportRoot(),o.root),c=n.useCoarsePointer,h=null==c||"auto"===c?x.touchEventsSupported:!!c,d=44;h&&(l=b["retrieve2"](n.pointerSize,d)),this.handler=new _e(i,o,u,o.root,l),this.animation=new Zn({stage:{update:s?null:function(){return r._flush(!1)}}}),s||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=_i(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(t){var e,n=Un(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(e=!0,this._refresh({animUpdate:t,refresh:r,refreshHover:i}));var a=Un();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof vi&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,bi(this.id))},t}();function Mi(t,e){var n=new Si(b["guid"](),t,e);return xi[n.id]=n,n}function Oi(t){t.dispose()}function Ii(){for(var t in xi)xi.hasOwnProperty(t)&&xi[t].dispose();xi={}}function Ti(t){return xi[t]}function Ci(t,e){mi[t]=e}function Ai(t){if("function"===typeof wi)return wi(t)}function Di(t){wi=t}var ki="6.1.0",Li=1e-4,Pi=20,ji=14;function Ri(t){return t.replace(/^\s+|\s+$/g,"")}var Ni=Math.min,Ei=Math.max,zi=Math.abs,Bi=Math.round,Vi=Math.floor,Fi=Math.ceil,Hi=Math.pow,Gi=Math.log,Wi=Math.LN10,Yi=Math.PI,Ui=Math.random;function Xi(t,e,n,r){var i=e[0],a=e[1],o=n[0],s=n[1],l=a-i,u=s-o;if(0===l)return 0===u?o:(o+s)/2;if(r)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}var Zi=qi;function qi(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return $i(t,e,n)}function $i(t,e,n){return b["isString"](t)?Ji(t)?parseFloat(t)/100*e+(n||0):parseFloat(t):null==t?NaN:+t}function Ki(t){return b["isString"](t)&&Ji(t)}function Ji(t){return!!Ri(t).match(/%$/)}function Qi(t,e,n){return isNaN(e)?n?""+t:+t:(e=Ni(Ei(0,e),Pi),t=(+t).toFixed(e),n?t:+t)}function ta(t,e,n){return null==e&&(e=10),Qi(t,e,n)}function ea(t){return t.sort((function(t,e){return t-e})),t}function na(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Bi(t*e)/e===t)return n;return ra(t)}function ra(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Ei(0,o-r)}function ia(t,e){var n=Vi(Gi(t[1]-t[0])/Wi),r=Bi(Gi(zi(e[1]-e[0]))/Wi),i=Ni(Ei(-n+r,0),Pi);return isFinite(i)?i:Pi}function aa(t,e,n){var r=zi(t[1]-t[0]);if(!isFinite(r)||0===r)return NaN;var i=Gi(2*zi(n||1)*zi(r))/Wi,a=Gi(zi(e))/Wi,o=Ei(0,Fi(-i+a));return isFinite(o)||(o=NaN),o}function oa(t,e,n){if(!t[e])return 0;var r=sa(t,n);return r[e]||0}function sa(t,e){var n=b["reduce"](t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];var r=Hi(10,e),i=b["map"](t,(function(t){return(isNaN(t)?0:t)/n*r*100})),a=100*r,o=b["map"](i,(function(t){return Vi(t)})),s=b["reduce"](o,(function(t,e){return t+e}),0),l=b["map"](i,(function(t,e){return t-o[e]}));while(s<a){for(var u=Number.NEGATIVE_INFINITY,c=null,h=0,d=l.length;h<d;++h)l[h]>u&&(u=l[h],c=h);++o[c],l[c]=0,++s}return b["map"](o,(function(t){return t/r}))}function la(t,e){var n=Ei(na(t),na(e)),r=t+e;return n>Pi?r:Qi(r,n)}var ua=Hi(2,53)-1;function ca(t){var e=2*Yi;return(t%e+e)%e}function ha(t){return t>-Li&&t<Li}var da=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function pa(t){if(t instanceof Date)return t;if(b["isString"](t)){var e=da.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Bi(t))}function fa(t){return Hi(10,ga(t))}function ga(t){if(0===t)return 0;var e=Vi(Gi(t)/Wi);return t/Hi(10,e)>=10&&e++,e}var ya=2;function va(t,e){var n,r=ga(t),i=Hi(10,r),a=t/i;return n=e===ya?1:e?a<1.5?1:a<2.5?2:a<4?3:a<7?5:10:a<1?1:a<2?2:a<3?3:a<5?5:10,t=n*i,Qi(t,-r)}function ma(t,e){var n=(t.length-1)*e+1,r=Vi(n),i=+t[r-1],a=n-r;return a?i+a*(t[r]-i):i}function xa(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,a=t[r].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-n),e=i[o],n=a[o];i[0]===i[1]&&a[0]*a[1]!==1?t.splice(r,1):r++}return t;function s(t,e,n){return t.interval[n]<e.interval[n]||t.interval[n]===e.interval[n]&&(t.close[n]-e.close[n]===(n?-1:1)||!n&&s(t,e,1))}}function ba(t){var e=parseFloat(t);return e==t&&(0!==e||!b["isString"](t)||t.indexOf("x")<=0)?e:NaN}function _a(t){return!isNaN(ba(t))}function wa(){return Bi(9*Ui())}function Sa(t,e){return 0===e?t:Sa(e,t%e)}function Ma(t,e){return null==t?e:null==e?t:t*e/Sa(t,e)}function Oa(t){return null!=t&&isFinite(t)}function Ia(t,e,n){return(e-t)*n+t}var Ta="series\0",Ca="\0_ec_\0";function Aa(t){return t instanceof Array?t:null==t?[]:[t]}function Da(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var ka=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function La(t){return!Object(b["isObject"])(t)||Object(b["isArray"])(t)||t instanceof Date?t:t.value}function Pa(t){return Object(b["isObject"])(t)&&!(t instanceof Array)}function ja(t,e,n){var r="normalMerge"===n,i="replaceMerge"===n,a="replaceAll"===n;t=t||[],e=(e||[]).slice();var o=Object(b["createHashMap"])();Object(b["each"])(e,(function(t,n){Object(b["isObject"])(t)||(e[n]=null)}));var s=Ra(t,o,n);return(r||i)&&Na(s,t,o,e),r&&Ea(s,e),r||i?za(s,e,i):a&&Ba(s,e),Va(s),s}function Ra(t,e,n){var r=[];if("replaceAll"===n)return r;for(var i=0;i<t.length;i++){var a=t[i];a&&null!=a.id&&e.set(a.id,i),r.push({existing:"replaceMerge"===n||Ya(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function Na(t,e,n,r){Object(b["each"])(r,(function(i,a){if(i&&null!=i.id){var o=Ha(i.id),s=n.get(o);if(null!=s){var l=t[s];Object(b["assert"])(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],r[a]=null}}}))}function Ea(t,e){Object(b["each"])(e,(function(n,r){if(n&&null!=n.name)for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(null==a.id||null==n.id)&&!Ya(n)&&!Ya(a)&&Fa("name",a,n))return t[i].newOption=n,void(e[r]=null)}}))}function za(t,e,n){Object(b["each"])(e,(function(e){if(e){var r,i=0;while((r=t[i])&&(r.newOption||Ya(r.existing)||r.existing&&null!=e.id&&!Fa("id",e,r.existing)))i++;r?(r.newOption=e,r.brandNew=n):t.push({newOption:e,brandNew:n,existing:null,keyInfo:null}),i++}}))}function Ba(t,e){Object(b["each"])(e,(function(e){t.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})}))}function Va(t){var e=Object(b["createHashMap"])();Object(b["each"])(t,(function(t){var n=t.existing;n&&e.set(n.id,t)})),Object(b["each"])(t,(function(t){var n=t.newOption;Object(b["assert"])(!n||null==n.id||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&null!=n.id&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})})),Object(b["each"])(t,(function(t,n){var r=t.existing,i=t.newOption,a=t.keyInfo;if(Object(b["isObject"])(i)){if(a.name=null!=i.name?Ha(i.name):r?r.name:Ta+n,r)a.id=Ha(r.id);else if(null!=i.id)a.id=Ha(i.id);else{var o=0;do{a.id="\0"+a.name+"\0"+o++}while(e.get(a.id))}e.set(a.id,t)}}))}function Fa(t,e,n){var r=Ga(e[t],null),i=Ga(n[t],null);return null!=r&&null!=i&&r===i}function Ha(t){return Ga(t,"")}function Ga(t,e){return null==t?e:Object(b["isString"])(t)?t:Object(b["isNumber"])(t)||Object(b["isStringSafe"])(t)?t+"":e}function Wa(t){var e=t.name;return!(!e||!e.indexOf(Ta))}function Ya(t){return t&&null!=t.id&&0===Ha(t.id).indexOf(Ca)}function Ua(t){return Ca+t}function Xa(t,e,n){Object(b["each"])(t,(function(t){var r=t.newOption;Object(b["isObject"])(r)&&(t.keyInfo.mainType=e,t.keyInfo.subType=Za(e,r,t.existing,n))}))}function Za(t,e,n,r){var i=e.type?e.type:n?n.subType:r.determineSubType(t,e);return i}function qa(t,e){var n={},r={};return i(t||[],n),i(e||[],r,n),[a(n),a(r)];function i(t,e,n){for(var r=0,i=t.length;r<i;r++){var a=Ga(t[r].seriesId,null);if(null==a)return;for(var o=Aa(t[r].dataIndex),s=n&&n[a],l=0,u=o.length;l<u;l++){var c=o[l];s&&s[c]?s[c]=null:(e[a]||(e[a]={}))[c]=1}}}function a(t,e){var n=[];for(var r in t)if(t.hasOwnProperty(r)&&null!=t[r])if(e)n.push(+r);else{var i=a(t[r],!0);i.length&&n.push({seriesId:r,dataIndex:i})}return n}}function $a(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?Object(b["isArray"])(e.dataIndex)?Object(b["map"])(e.dataIndex,(function(e){return t.indexOfRawIndex(e)})):t.indexOfRawIndex(e.dataIndex):null!=e.name?Object(b["isArray"])(e.name)?Object(b["map"])(e.name,(function(e){return t.indexOfName(e)})):t.indexOfName(e.name):void 0}function Ka(){var t="__ec_inner_"+Ja++;return function(e){return e[t]||(e[t]={})}}var Ja=wa();function Qa(t,e,n){var r=to(e,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=o,l=n?n.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each((function(e,r){var i=ro(t,r,e,{useDefault:l===r,enableAll:!n||null==n.enableAll||n.enableAll,enableNone:!n||null==n.enableNone||n.enableNone});s[r+"Models"]=i.models,s[r+"Model"]=i.models[0]})),s}function to(t,e){var n;if(Object(b["isString"])(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=Object(b["createHashMap"])(),a={},o=!1;return Object(b["each"])(n,(function(t,n){if("dataIndex"!==n&&"dataIndexInside"!==n){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],l=(r[2]||"").toLowerCase();if(s&&l&&!(e&&e.includeMainTypes&&Object(b["indexOf"])(e.includeMainTypes,s)<0)){o=o||!!s;var u=i.get(s)||i.set(s,{});u[l]=t}}else a[n]=t})),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var eo={useDefault:!0,enableAll:!1,enableNone:!1},no={useDefault:!1,enableAll:!0,enableNone:!0};function ro(t,e,n,r){r=r||eo;var i=n.index,a=n.id,o=n.name,s={models:null,specified:null!=i||null!=a||null!=o};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===i||!1===i){if(r.enableNone)return s.models=[],s;i=-1}return"all"===i&&(i=r.enableAll?a=o=null:-1),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s}function io(t,e,n){var r={};r[e+"Id"]=t[e+"Id"],r[e+"Index"]=t[e+"Index"],r[e+"Name"]=t[e+"Name"];var i={mainType:e,query:r};return n&&(i.subType=n),i}function ao(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function oo(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function so(t){return"auto"===t?x.domSupported?"html":"richText":t||"html"}function lo(t,e){var n=Object(b["createHashMap"])(),r=[];return Object(b["each"])(t,(function(t){var i=e(t);(n.get(i)||(r.push(i),n.set(i,[]))).push(t)})),{keys:r,buckets:n}}function uo(t,e,n,r,i){var a=null==e||"auto"===e;if(null==r)return r;if(Object(b["isNumber"])(r)){var o=Ia(n||0,r,i);return Qi(o,a?Math.max(na(n||0),na(r)):e)}if(Object(b["isString"])(r))return i<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),h=0;h<c;++h){var d=t.getDimensionInfo(h);if(d&&"ordinal"===d.type)s[h]=(i<1&&l?l:u)[h];else{var p=l&&l[h]?l[h]:0,f=u[h];o=Ia(p,f,i);s[h]=Qi(o,a?Math.max(na(p),na(f)):e)}}return s}var co=function(){function t(){}return t.prototype.reset=function(t,e,n,r){return this._list=t,this._step=r=r||1,this._idx=e,this._end=null!=n?n:r>0?t.length:0,this.item=null,this.key=NaN,this},t.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)},t}();function ho(t){t.option=t.parentModel=t.ecModel=null}function po(){return[1/0,-1/0]}function fo(t,e){mo(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function go(t,e){mo(e)&&e<t[0]&&(t[0]=e)}function yo(t,e){mo(e)&&e>t[1]&&(t[1]=e)}function vo(t,e){xo(e[0],e[1])&&(e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1]))}function mo(t){return null!=t&&isFinite(t)}function xo(t,e){return mo(t)&&mo(e)&&t<=e}function bo(t){var e=t[1]-t[0];return isFinite(e)&&e>=0}function _o(t){xo(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function wo(){var t="__ec_once_"+So++;return function(e,n){Object(b["hasOwn"])(e,t)||(e[t]=1,n())}}var So=wa();function Mo(t,e,n){var r=Object(b["createHashMap"])(),i=0;Object(b["each"])(t,(function(a){var o=e(a);var s=r.get(o)||0;n&&n(a,s),s||n||(t[i++]=a),r.set(o,s+1)})),n||(t.length=i)}function Oo(t){return t.value+""}function Io(t){return t+""}function To(t,e){return Object(b["retrieve2"])(e,!0)?t.seriesIndex+2:0}function Co(t,e,n){var r=t.getData().count();return{progressiveRender:n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,large:t.get("large")&&r>=t.get("largeThreshold"),modDataCount:"mod"===t.get("progressiveChunkMode")?t.getData().count():null}}function Ao(t,e){return{seriesType:t,overallReset:e}}function Do(t){return{overallReset:t}}var ko=".",Lo="___EC__COMPONENT__CONTAINER___",Po="___EC__EXTENDED_CLASS___";function jo(t){var e={main:"",sub:""};if(t){var n=t.split(ko);e.main=n[0]||"",e.sub=n[1]||""}return e}function Ro(t){b["assert"](/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function No(t){return!(!t||!t[Po])}function Eo(t,e){t.$constructor=t,t.extend=function(t){var e,n=this;return zo(n)?e=function(t){function e(){return t.apply(this,arguments)||this}return f(e,t),e}(n):(e=function(){(t.$constructor||n).apply(this,arguments)},b["inherits"](e,this)),b["extend"](e.prototype,t),e[Po]=!0,e.extend=this.extend,e.superCall=Ho,e.superApply=Go,e.superClass=n,e}}function zo(t){return b["isFunction"](t)&&/^class\s/.test(Function.prototype.toString.call(t))}function Bo(t,e){t.extend=e.extend}var Vo=Math.round(10*Math.random());function Fo(t){var e=["__\0is_clz",Vo++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function Ho(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function Go(t,e,n){return this.superClass.prototype[e].apply(t,n)}function Wo(t){var e={};function n(t){var n=e[t.main];return n&&n[Lo]||(n=e[t.main]={},n[Lo]=!0),n}t.registerClass=function(t){var r=t.type||t.prototype.type;if(r){Ro(r),t.prototype.type=r;var i=jo(r);if(i.sub){if(i.sub!==Lo){var a=n(i);a[i.sub]=t}}else e[i.main]=t}return t},t.getClass=function(t,n,r){var i=e[t];if(i&&i[Lo]&&(i=n?i[n]:null),r&&!i)throw new Error(n?"Component "+t+"."+(n||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var n=jo(t),r=[],i=e[n.main];return i&&i[Lo]?b["each"](i,(function(t,e){e!==Lo&&r.push(t)})):r.push(i),r},t.hasClass=function(t){var n=jo(t);return!!e[n.main]},t.getAllClassMainTypes=function(){var t=[];return b["each"](e,(function(e,n){t.push(n)})),t},t.hasSubTypes=function(t){var n=jo(t),r=e[n.main];return r&&r[Lo]}}function Yo(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(n,r,i){for(var a={},o=0;o<t.length;o++){var s=t[o][1];if(!(r&&b["indexOf"](r,s)>=0||i&&b["indexOf"](i,s)<0)){var l=n.getShallow(s,e);null!=l&&(a[t[o][0]]=l)}}return a}}var Uo=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Xo=Yo(Uo),Zo=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Xo(this,t,e)},t}(),qo=new Rr["a"](50);function $o(t){if("string"===typeof t){var e=qo.get(t);return e&&e.image}return t}function Ko(t,e,n,r,i){if(t){if("string"===typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var a=qo.get(t),o={hostEl:n,cb:r,cbPayload:i};return a?(e=a.image,!Qo(e)&&a.pending.push(o)):(e=Nr["d"].loadImage(t,Jo,Jo),e.__zrImageSrc=t,qo.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}return t}return e}function Jo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function Qo(t){return t&&t.width&&t.height}var ts=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function es(t,e,n,r,i){var a={};return ns(a,t,e,n,r,i),a.text}function ns(t,e,n,r,i,a){if(!n)return t.text="",void(t.isTruncated=!1);var o=(e+"").split("\n");a=rs(n,r,i,a);for(var s=!1,l={},u=0,c=o.length;u<c;u++)is(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;t.text=o.join("\n"),t.isTruncated=s}function rs(t,e,n,r){r=r||{};var i=Object(b["extend"])({},r);n=Object(b["retrieve2"])(n,"..."),i.maxIterations=Object(b["retrieve2"])(r.maxIterations,2);var a=i.minChar=Object(b["retrieve2"])(r.minChar,0),o=i.fontMeasureInfo=Er(e),s=o.asciiCharWidth;i.placeholder=Object(b["retrieve2"])(r.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<a&&l>=s;u++)l-=s;var c=Hr(o,n);return c>l&&(n="",c=0),l=t-c,i.ellipsis=n,i.ellipsisWidth=c,i.contentWidth=l,i.containerWidth=t,i}function is(t,e,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r)return t.textLine="",void(t.isTruncated=!1);var o=Hr(a,e);if(o<=r)return t.textLine=e,void(t.isTruncated=!1);for(var s=0;;s++){if(o<=i||s>=n.maxIterations){e+=n.ellipsis;break}var l=0===s?as(e,i,a):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Hr(a,e)}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}function as(t,e,n){for(var r=0,i=0,a=t.length;i<a&&r<e;i++)r+=Fr(n,t.charCodeAt(i));return i}function os(t,e,n,r){var i=xs(t),a=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,c="truncate"===a,h=Xr(u),d=Object(b["retrieve2"])(e.lineHeight,h),p="truncate"===e.lineOverflow,f=!1,g=e.width;null==g&&null!=n&&(g=n-s);var y,v=e.height;null==v&&null!=r&&(v=r-l),y=null==g||"break"!==a&&"breakAll"!==a?i?i.split("\n"):[]:i?gs(i,e.font,g,"breakAll"===a,0).lines:[];var m=y.length*d;if(null==v&&(v=m),m>v&&p){var x=Math.floor(v/d);f=f||y.length>x,y=y.slice(0,x),m=y.length*d}if(i&&c&&null!=g)for(var _=rs(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),w={},S=0;S<y.length;S++)is(w,y[S],_),y[S]=w.textLine,f=f||w.isTruncated;var M=v,O=0,I=Er(u);for(S=0;S<y.length;S++)O=Math.max(Hr(I,y[S]),O);null==g&&(g=O);var T=g;return M+=l,T+=s,{lines:y,height:v,outerWidth:T,outerHeight:M,lineHeight:d,calculatedLineHeight:h,contentWidth:O,contentHeight:m,width:g,isTruncated:f}}var ss=function(){function t(){}return t}(),ls=function(){function t(t){this.tokens=[],t&&(this.tokens=t)}return t}(),us=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return t}();function cs(t,e,n,r,i){var a=new us,o=xs(t);if(!o)return a;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,c=e.width;null==c&&null!=n&&(c=n-l);var h=e.height;null==h&&null!=r&&(h=r-u);var d,p=e.overflow,f="break"!==p&&"breakAll"!==p||null==c?null:{width:c,accumWidth:0,breakAll:"breakAll"===p},g=ts.lastIndex=0;while(null!=(d=ts.exec(o))){var y=d.index;y>g&&hs(a,o.substring(g,y),e,f),hs(a,d[2],e,f,d[1]),g=ts.lastIndex}g<o.length&&hs(a,o.substring(g,o.length),e,f);var v=[],m=0,x=0,_="truncate"===p,w="truncate"===e.lineOverflow,S={};function M(t,e,n){t.width=e,t.lineHeight=n,m+=n,x=Math.max(x,e)}t:for(var O=0;O<a.lines.length;O++){for(var I=a.lines[O],T=0,C=0,A=0;A<I.tokens.length;A++){var D=I.tokens[A],k=D.styleName&&e.rich[D.styleName]||{},L=D.textPadding=k.padding,P=L?L[1]+L[3]:0,j=D.font=k.font||e.font;D.contentHeight=Xr(j);var R=Object(b["retrieve2"])(k.height,D.contentHeight);if(D.innerHeight=R,L&&(R+=L[0]+L[2]),D.height=R,D.lineHeight=Object(b["retrieve3"])(k.lineHeight,e.lineHeight,R),D.align=k&&k.align||i,D.verticalAlign=k&&k.verticalAlign||"middle",w&&null!=h&&m+D.lineHeight>h){var N=a.lines.length;A>0?(I.tokens=I.tokens.slice(0,A),M(I,C,T),a.lines=a.lines.slice(0,O+1)):a.lines=a.lines.slice(0,O),a.isTruncated=a.isTruncated||a.lines.length<N;break t}var E=k.width,z=null==E||"auto"===E;if("string"===typeof E&&"%"===E.charAt(E.length-1))D.percentWidth=E,v.push(D),D.contentWidth=Hr(Er(j),D.text);else{if(z){var B=k.backgroundColor,V=B&&B.image;V&&(V=$o(V),Qo(V)&&(D.width=Math.max(D.width,V.width*R/V.height)))}var F=_&&null!=c?c-C:null;null!=F&&F<D.width?!z||F<P?(D.text="",D.width=D.contentWidth=0):(ns(S,D.text,F-P,j,e.ellipsis,{minChar:e.truncateMinChar}),D.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,D.width=D.contentWidth=Hr(Er(j),D.text)):D.contentWidth=Hr(Er(j),D.text)}D.width+=P,C+=D.width,k&&(T=Math.max(T,D.lineHeight))}M(I,C,T)}a.outerWidth=a.width=Object(b["retrieve2"])(c,x),a.outerHeight=a.height=Object(b["retrieve2"])(h,m),a.contentHeight=m,a.contentWidth=x,a.outerWidth+=l,a.outerHeight+=u;for(O=0;O<v.length;O++){D=v[O];var H=D.percentWidth;D.width=parseInt(H,10)/100*a.width}return a}function hs(t,e,n,r,i){var a,o,s=""===e,l=i&&n.rich[i]||{},u=t.lines,c=l.font||n.font,h=!1;if(r){var d=l.padding,p=d?d[1]+d[3]:0;if(null!=l.width&&"auto"!==l.width){var f=Zr(l.width,r.width)+p;u.length>0&&f+r.accumWidth>r.width&&(a=e.split("\n"),h=!0),r.accumWidth=f}else{var g=gs(e,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,o=g.linesWidths,a=g.lines}}a||(a=e.split("\n"));for(var y=Er(c),v=0;v<a.length;v++){var m=a[v],x=new ss;if(x.styleName=i,x.text=m,x.isLineHolder=!m&&!s,"number"===typeof l.width?x.width=l.width:x.width=o?o[v]:Hr(y,m),v||h)u.push(new ls([x]));else{var b=(u[u.length-1]||(u[0]=new ls)).tokens,_=b.length;1===_&&b[0].isLineHolder?b[0]=x:(m||!_||s)&&b.push(x)}}}function ds(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var ps=Object(b["reduce"])(",&?/;] ".split(""),(function(t,e){return t[e]=!0,t}),{});function fs(t){return!ds(t)||!!ps[t]}function gs(t,e,n,r,i){for(var a=[],o=[],s="",l="",u=0,c=0,h=Er(e),d=0;d<t.length;d++){var p=t.charAt(d);if("\n"!==p){var f=Fr(h,p.charCodeAt(0)),g=!r&&!fs(p);(a.length?c+f>n:i+c+f>n)?c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=p,u+=f,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=p,c=f)):g?(a.push(l),o.push(u),l=p,u=f):(a.push(p),o.push(f)):(c+=f,g?(l+=p,u+=f):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0}return l&&(s+=l),s&&(a.push(s),o.push(c)),1===a.length&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}function ys(t,e,n,r,i,a){if(t.baseX=n,t.baseY=r,t.outerWidth=t.outerHeight=null,e){var o=2*e.width,s=2*e.height;ue.set(vs,Yr(n,o,i),Ur(r,s,a),o,s),ue.intersect(e,vs,null,ms);var l=ms.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=Yr(l.x,l.width,i,!0),t.baseY=Ur(l.y,l.height,a,!0)}}var vs=new ue(0,0,0,0),ms={outIntersectRect:{},clamp:!0};function xs(t){return null!=t?t+="":t=""}function bs(t){var e=xs(t.text),n=t.font,r=Hr(Er(n),e),i=Xr(n);return _s(t,r,i,null)}function _s(t,e,n,r){var i=new ue(Yr(t.x||0,e,t.textAlign),Ur(t.y||0,n,t.textBaseline),e,n),a=null!=r?r:ws(t)?t.lineWidth:0;return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function ws(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var Ss="__zr_style_"+Math.round(10*Math.random()),Ms={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Os={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Ms[Ss]=!0;var Is=["z","z2","invisible"],Ts=["invisible"],Cs=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype._init=function(e){for(var n=Object(b["keys"])(e),r=0;r<n.length;r++){var i=n[r];"style"===i?this.useStyle(e[i]):t.prototype.attrKV.call(this,i,e[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(t){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,e,n,r){var i=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&ks(this,t,e)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length)for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1;if(r&&this.parent){var o=this.parent;while(o){if(o.ignore)return!1;o=o.parent}}return!0},e.prototype.contain=function(t,e){return this.rectContain(t,e)},e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.rectContain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();return r.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ue(0,0,0,0)),e?ue.applyTransform(t,n,e):t.copy(n),(i||a||o)&&(t.width+=2*i+Math.abs(a),t.height+=2*i+Math.abs(o),t.x=Math.min(t.x,t.x+a-i),t.y=Math.min(t.y,t.y+o-i));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ue(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(e,n){"style"!==e?t.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,e){return"string"===typeof t?this.style[t]=e:Object(b["extend"])(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Pe,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Pe)},e.prototype.styleUpdated=function(){this.__dirty&=~Pe},e.prototype.createStyle=function(t){return Object(b["createObject"])(Ms,t)},e.prototype.useStyle=function(t){t[Ss]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[Ss]},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Is)},e.prototype._applyStateObj=function(e,n,r,i,a,o){t.prototype._applyStateObj.call(this,e,n,r,i,a,o);var s,l=!(n&&i),u=this.__inHover===ri;if(n&&n.style?a?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):l&&(s=r.style),s)if(a){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var h=Object(b["keys"])(c),d=0;d<h.length;d++){var p=h[d];p in s&&(s[p]=s[p],this.style[p]=c[p])}var f=Object(b["keys"])(s);for(d=0;d<f.length;d++){p=f[d];this.style[p]=this.style[p]}this._transitionState(e,{style:s},o,this.getAnimationStyleProps())}else u?this._useHoverStyle(s):this.useStyle(s);if(!u){var g=this.__inHover?Ts:Is;for(d=0;d<g.length;d++){p=g[d];n&&null!=n[p]?this[p]=n[p]:l&&null!=r[p]&&(this[p]=r[p])}}},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var a=e[i];a.style&&(n=n||{},this._mergeStyle(n,a.style))}return n&&(r.style=n),r},e.prototype._mergeStyle=function(t,e){return Object(b["extend"])(t,e),t},e.prototype.getAnimationStyleProps=function(){return Os},e.initDefaultProps=function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=0,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=Le|Pe}(),e}(gi),As=new ue(0,0,0,0),Ds=new ue(0,0,0,0);function ks(t,e,n){return As.copy(t.getBoundingRect()),t.transform&&As.applyTransform(t.transform),Ds.width=e,Ds.height=n,!As.intersect(Ds)}var Ls=Cs,Ps=Math.min,js=Math.max,Rs=Math.sin,Ns=Math.cos,Es=2*Math.PI,zs=_(),Bs=_(),Vs=_();function Fs(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],a=r[0],o=r[1],s=r[1],l=1;l<t.length;l++)r=t[l],i=Ps(i,r[0]),a=js(a,r[0]),o=Ps(o,r[1]),s=js(s,r[1]);e[0]=i,e[1]=o,n[0]=a,n[1]=s}}function Hs(t,e,n,r,i,a){i[0]=Ps(t,n),i[1]=Ps(e,r),a[0]=js(t,n),a[1]=js(e,r)}var Gs=[],Ws=[];function Ys(t,e,n,r,i,a,o,s,l,u){var c=an,h=en,d=c(t,n,i,o,Gs);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var f=h(t,n,i,o,Gs[p]);l[0]=Ps(f,l[0]),u[0]=js(f,u[0])}d=c(e,r,a,s,Ws);for(p=0;p<d;p++){var g=h(e,r,a,s,Ws[p]);l[1]=Ps(g,l[1]),u[1]=js(g,u[1])}l[0]=Ps(t,l[0]),u[0]=js(t,u[0]),l[0]=Ps(o,l[0]),u[0]=js(o,u[0]),l[1]=Ps(e,l[1]),u[1]=js(e,u[1]),l[1]=Ps(s,l[1]),u[1]=js(s,u[1])}function Us(t,e,n,r,i,a,o,s){var l=dn,u=un,c=js(Ps(l(t,n,i),1),0),h=js(Ps(l(e,r,a),1),0),d=u(t,n,i,c),p=u(e,r,a,h);o[0]=Ps(t,i,d),o[1]=Ps(e,a,p),s[0]=js(t,i,d),s[1]=js(e,a,p)}function Xs(t,e,n,r,i,a,o,s,l){var u=W,c=Y,h=Math.abs(i-a);if(h%Es<1e-4&&h>1e-4)return s[0]=t-n,s[1]=e-r,l[0]=t+n,void(l[1]=e+r);if(zs[0]=Ns(i)*n+t,zs[1]=Rs(i)*r+e,Bs[0]=Ns(a)*n+t,Bs[1]=Rs(a)*r+e,u(s,zs,Bs),c(l,zs,Bs),i%=Es,i<0&&(i+=Es),a%=Es,a<0&&(a+=Es),i>a&&!o?a+=Es:i<a&&o&&(i+=Es),o){var d=a;a=i,i=d}for(var p=0;p<a;p+=Math.PI/2)p>i&&(Vs[0]=Ns(p)*n+t,Vs[1]=Rs(p)*r+e,u(s,Vs,s),c(l,Vs,l))}var Zs={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},qs=[],$s=[],Ks=[],Js=[],Qs=[],tl=[],el=Math.min,nl=Math.max,rl=Math.cos,il=Math.sin,al=Math.abs,ol=Math.PI,sl=2*ol,ll="undefined"!==typeof Float32Array,ul=[];function cl(t){var e=Math.round(t/ol*1e8)/1e8;return e%2*ol}function hl(t,e){var n=cl(t[0]);n<0&&(n+=sl);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=sl?i=n+sl:e&&n-i>=sl?i=n-sl:!e&&n>i?i=n+(sl-cl(n-i)):e&&n<i&&(i=n-(sl-cl(i-n))),t[0]=n,t[1]=i}var dl=function(){function t(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=al(n/yr/t)||0,this._uy=al(n/yr/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Zs.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=al(t-this._xi),r=al(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Zs.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,a){return this._drawPendingPt(),this.addData(Zs.C,t,e,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,a),this._xi=i,this._yi=a,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(Zs.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,a){this._drawPendingPt(),ul[0]=r,ul[1]=i,hl(ul,a),r=ul[0],i=ul[1];var o=i-r;return this.addData(Zs.A,t,e,n,n,r,o,0,a?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,a),this._xi=rl(i)*n+t,this._yi=il(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(Zs.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Zs.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){if(this._saveData){var e=t.length;this.data&&this.data.length===e||!ll||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},t.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,n=0,r=this._len,i=0;i<e;i++)n+=t[i].len();var a=this.data;if(ll&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(i=0;i<e;i++){var s=t[i].data;for(o=0;o<s.length;o++)this.data[r++]=s[o]}this._len=r}},t.prototype.addData=function(t,e,n,r,i,a,o,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var c=0;c<arguments.length;c++)u[this._len++]=arguments[c]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,ll&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Ks[0]=Ks[1]=Qs[0]=Qs[1]=Number.MAX_VALUE,Js[0]=Js[1]=tl[0]=tl[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,r=0,i=0,a=0;for(t=0;t<this._len;){var o=e[t++],s=1===t;switch(s&&(n=e[t],r=e[t+1],i=n,a=r),o){case Zs.M:n=i=e[t++],r=a=e[t++],Qs[0]=i,Qs[1]=a,tl[0]=i,tl[1]=a;break;case Zs.L:Hs(n,r,e[t],e[t+1],Qs,tl),n=e[t++],r=e[t++];break;case Zs.C:Ys(n,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Qs,tl),n=e[t++],r=e[t++];break;case Zs.Q:Us(n,r,e[t++],e[t++],e[t],e[t+1],Qs,tl),n=e[t++],r=e[t++];break;case Zs.A:var l=e[t++],u=e[t++],c=e[t++],h=e[t++],d=e[t++],p=e[t++]+d;t+=1;var f=!e[t++];s&&(i=rl(d)*c+l,a=il(d)*h+u),Xs(l,u,c,h,d,p,f,Qs,tl),n=rl(p)*c+l,r=il(p)*h+u;break;case Zs.R:i=n=e[t++],a=r=e[t++];var g=e[t++],y=e[t++];Hs(i,a,i+g,a+y,Qs,tl);break;case Zs.Z:n=i,r=a;break}W(Ks,Ks,Qs),Y(Js,Js,tl)}return 0===t&&(Ks[0]=Ks[1]=Js[0]=Js[1]=0),new ue(Ks[0],Ks[1],Js[0]-Ks[0],Js[1]-Ks[1])},t.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,c=0,h=0;h<e;){var d=t[h++],p=1===h;p&&(i=t[h],a=t[h+1],o=i,s=a);var f=-1;switch(d){case Zs.M:i=o=t[h++],a=s=t[h++];break;case Zs.L:var g=t[h++],y=t[h++],v=g-i,m=y-a;(al(v)>n||al(m)>r||h===e-1)&&(f=Math.sqrt(v*v+m*m),i=g,a=y);break;case Zs.C:var x=t[h++],b=t[h++],_=(g=t[h++],y=t[h++],t[h++]),w=t[h++];f=ln(i,a,x,b,g,y,_,w,10),i=_,a=w;break;case Zs.Q:x=t[h++],b=t[h++],g=t[h++],y=t[h++];f=gn(i,a,x,b,g,y,10),i=g,a=y;break;case Zs.A:var S=t[h++],M=t[h++],O=t[h++],I=t[h++],T=t[h++],C=t[h++],A=C+T;h+=1,p&&(o=rl(T)*O+S,s=il(T)*I+M),f=nl(O,I)*el(sl,Math.abs(C)),i=rl(A)*O+S,a=il(A)*I+M;break;case Zs.R:o=i=t[h++],s=a=t[h++];var D=t[h++],k=t[h++];f=2*D+2*k;break;case Zs.Z:v=o-i,m=s-a;f=Math.sqrt(v*v+m*m),i=o,a=s;break}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,r,i,a,o,s,l,u,c,h,d,p=this.data,f=this._ux,g=this._uy,y=this._len,v=e<1,m=0,x=0,b=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=e*u,c))t:for(var _=0;_<y;){var w=p[_++],S=1===_;switch(S&&(i=p[_],a=p[_+1],n=i,r=a),w!==Zs.L&&b>0&&(t.lineTo(h,d),b=0),w){case Zs.M:n=i=p[_++],r=a=p[_++],t.moveTo(i,a);break;case Zs.L:o=p[_++],s=p[_++];var M=al(o-i),O=al(s-a);if(M>f||O>g){if(v){var I=l[x++];if(m+I>c){var T=(c-m)/I;t.lineTo(i*(1-T)+o*T,a*(1-T)+s*T);break t}m+=I}t.lineTo(o,s),i=o,a=s,b=0}else{var C=M*M+O*O;C>b&&(h=o,d=s,b=C)}break;case Zs.C:var A=p[_++],D=p[_++],k=p[_++],L=p[_++],P=p[_++],j=p[_++];if(v){I=l[x++];if(m+I>c){T=(c-m)/I;on(i,A,k,P,T,qs),on(a,D,L,j,T,$s),t.bezierCurveTo(qs[1],$s[1],qs[2],$s[2],qs[3],$s[3]);break t}m+=I}t.bezierCurveTo(A,D,k,L,P,j),i=P,a=j;break;case Zs.Q:A=p[_++],D=p[_++],k=p[_++],L=p[_++];if(v){I=l[x++];if(m+I>c){T=(c-m)/I;pn(i,A,k,T,qs),pn(a,D,L,T,$s),t.quadraticCurveTo(qs[1],$s[1],qs[2],$s[2]);break t}m+=I}t.quadraticCurveTo(A,D,k,L),i=k,a=L;break;case Zs.A:var R=p[_++],N=p[_++],E=p[_++],z=p[_++],B=p[_++],V=p[_++],F=p[_++],H=!p[_++],G=E>z?E:z,W=al(E-z)>.001,Y=B+V,U=!1;if(v){I=l[x++];m+I>c&&(Y=B+V*(c-m)/I,U=!0),m+=I}if(W&&t.ellipse?t.ellipse(R,N,E,z,F,B,Y,H):t.arc(R,N,G,B,Y,H),U)break t;S&&(n=rl(B)*E+R,r=il(B)*z+N),i=rl(Y)*E+R,a=il(Y)*z+N;break;case Zs.R:n=i=p[_],r=a=p[_+1],o=p[_++],s=p[_++];var X=p[_++],Z=p[_++];if(v){I=l[x++];if(m+I>c){var q=c-m;t.moveTo(o,s),t.lineTo(o+el(q,X),s),q-=X,q>0&&t.lineTo(o+X,s+el(q,Z)),q-=Z,q>0&&t.lineTo(o+nl(X-q,0),s+Z),q-=X,q>0&&t.lineTo(o,s+nl(Z-q,0));break t}m+=I}t.rect(o,s,X,Z);break;case Zs.Z:if(v){I=l[x++];if(m+I>c){T=(c-m)/I;t.lineTo(i*(1-T)+n*T,a*(1-T)+r*T);break t}m+=I}t.closePath(),i=n,a=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.prototype.canSave=function(){return!!this._saveData},t.CMD=Zs,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}(),pl=dl;function fl(t,e,n,r,i,a,o){if(0===i)return!1;var s=i,l=0,u=t;if(o>e+s&&o>r+s||o<e-s&&o<r-s||a>t+s&&a>n+s||a<t-s&&a<n-s)return!1;if(t===n)return Math.abs(a-t)<=s/2;l=(e-r)/(t-n),u=(t*r-n*e)/(t-n);var c=l*a-o+u,h=c*c/(l*l+1);return h<=s/2*s/2}function gl(t,e,n,r,i,a,o,s,l,u,c){if(0===l)return!1;var h=l;if(c>e+h&&c>r+h&&c>a+h&&c>s+h||c<e-h&&c<r-h&&c<a-h&&c<s-h||u>t+h&&u>n+h&&u>i+h&&u>o+h||u<t-h&&u<n-h&&u<i-h&&u<o-h)return!1;var d=sn(t,e,n,r,i,a,o,s,u,c,null);return d<=h/2}function yl(t,e,n,r,i,a,o,s,l){if(0===o)return!1;var u=o;if(l>e+u&&l>r+u&&l>a+u||l<e-u&&l<r-u&&l<a-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)return!1;var c=fn(t,e,n,r,i,a,s,l,null);return c<=u/2}var vl=2*Math.PI;function ml(t){return t%=vl,t<0&&(t+=vl),t}var xl=2*Math.PI;function bl(t,e,n,r,i,a,o,s,l){if(0===o)return!1;var u=o;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%xl<1e-4)return!0;if(a){var h=r;r=ml(i),i=ml(h)}else r=ml(r),i=ml(i);r>i&&(i+=xl);var d=Math.atan2(l,s);return d<0&&(d+=xl),d>=r&&d<=i||d+xl>=r&&d+xl<=i}function _l(t,e,n,r,i,a){if(a>e&&a>r||a<e&&a<r)return 0;if(r===e)return 0;var o=(a-e)/(r-e),s=r<e?1:-1;1!==o&&0!==o||(s=r<e?.5:-.5);var l=o*(n-t)+t;return l===i?1/0:l>i?s:0}var wl=pl.CMD,Sl=2*Math.PI,Ml=1e-4;function Ol(t,e){return Math.abs(t-e)<Ml}var Il=[-1,-1,-1],Tl=[-1,-1];function Cl(){var t=Tl[0];Tl[0]=Tl[1],Tl[1]=t}function Al(t,e,n,r,i,a,o,s,l,u){if(u>e&&u>r&&u>a&&u>s||u<e&&u<r&&u<a&&u<s)return 0;var c=rn(e,r,a,s,u,Il);if(0===c)return 0;for(var h=0,d=-1,p=void 0,f=void 0,g=0;g<c;g++){var y=Il[g],v=0===y||1===y?.5:1,m=en(t,n,i,o,y);m<l||(d<0&&(d=an(e,r,a,s,Tl),Tl[1]<Tl[0]&&d>1&&Cl(),p=en(e,r,a,s,Tl[0]),d>1&&(f=en(e,r,a,s,Tl[1]))),2===d?y<Tl[0]?h+=p<e?v:-v:y<Tl[1]?h+=f<p?v:-v:h+=s<f?v:-v:y<Tl[0]?h+=p<e?v:-v:h+=s<p?v:-v)}return h}function Dl(t,e,n,r,i,a,o,s){if(s>e&&s>r&&s>a||s<e&&s<r&&s<a)return 0;var l=hn(e,r,a,s,Il);if(0===l)return 0;var u=dn(e,r,a);if(u>=0&&u<=1){for(var c=0,h=un(e,r,a,u),d=0;d<l;d++){var p=0===Il[d]||1===Il[d]?.5:1,f=un(t,n,i,Il[d]);f<o||(Il[d]<u?c+=h<e?p:-p:c+=a<h?p:-p)}return c}p=0===Il[0]||1===Il[0]?.5:1,f=un(t,n,i,Il[0]);return f<o?0:a<e?p:-p}function kl(t,e,n,r,i,a,o,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Il[0]=-l,Il[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Sl-1e-4){r=0,i=Sl;var c=a?1:-1;return o>=Il[0]+t&&o<=Il[1]+t?c:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=Sl,i+=Sl);for(var d=0,p=0;p<2;p++){var f=Il[p];if(f+t>o){var g=Math.atan2(s,f);c=a?1:-1;g<0&&(g=Sl+g),(g>=r&&g<=i||g+Sl>=r&&g+Sl<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function Ll(t,e,n,r,i){for(var a,o,s=t.data,l=t.len(),u=0,c=0,h=0,d=0,p=0,f=0;f<l;){var g=s[f++],y=1===f;switch(g===wl.M&&f>1&&(n||(u+=_l(c,h,d,p,r,i))),y&&(c=s[f],h=s[f+1],d=c,p=h),g){case wl.M:d=s[f++],p=s[f++],c=d,h=p;break;case wl.L:if(n){if(fl(c,h,s[f],s[f+1],e,r,i))return!0}else u+=_l(c,h,s[f],s[f+1],r,i)||0;c=s[f++],h=s[f++];break;case wl.C:if(n){if(gl(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],e,r,i))return!0}else u+=Al(c,h,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],r,i)||0;c=s[f++],h=s[f++];break;case wl.Q:if(n){if(yl(c,h,s[f++],s[f++],s[f],s[f+1],e,r,i))return!0}else u+=Dl(c,h,s[f++],s[f++],s[f],s[f+1],r,i)||0;c=s[f++],h=s[f++];break;case wl.A:var v=s[f++],m=s[f++],x=s[f++],b=s[f++],_=s[f++],w=s[f++];f+=1;var S=!!(1-s[f++]);a=Math.cos(_)*x+v,o=Math.sin(_)*b+m,y?(d=a,p=o):u+=_l(c,h,a,o,r,i);var M=(r-v)*b/x+v;if(n){if(bl(v,m,b,_,_+w,S,e,M,i))return!0}else u+=kl(v,m,b,_,_+w,S,M,i);c=Math.cos(_+w)*x+v,h=Math.sin(_+w)*b+m;break;case wl.R:d=c=s[f++],p=h=s[f++];var O=s[f++],I=s[f++];if(a=d+O,o=p+I,n){if(fl(d,p,a,p,e,r,i)||fl(a,p,a,o,e,r,i)||fl(a,o,d,o,e,r,i)||fl(d,o,d,p,e,r,i))return!0}else u+=_l(a,p,a,o,r,i),u+=_l(d,o,d,p,r,i);break;case wl.Z:if(n){if(fl(c,h,d,p,e,r,i))return!0}else u+=_l(c,h,d,p,r,i);c=d,h=p;break}}return n||Ol(h,p)||(u+=_l(c,h,d,p,r,i)||0),0!==u}function Pl(t,e,n){return Ll(t,0,!1,e,n)}function jl(t,e,n,r){return Ll(t,e,!0,n,r)}var Rl=Object(b["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ms),Nl={style:Object(b["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Os.style)},El=kr.concat(["invisible","culling","z","z2","zlevel","parent"]),zl=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<El.length;++s)i[El[s]]=this[El[s]];i.__dirty|=Le}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(e){var n=Object(b["keys"])(e);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=e[a];"style"===a?this.style?Object(b["extend"])(this.style,o):this.useStyle(o):"shape"===a?Object(b["extend"])(this.shape,o):t.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(Object(b["isString"])(t)){var e=Object(bn["lum"])(t,0);return e>.5?mr:e>.2?br:xr}if(t)return xr}return mr},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(b["isString"])(e)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(bn["lum"])(t,0)<vr;if(r===i)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~je},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new pl(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&je)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){a.copy(t);var o=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),jl(a,o/s,t,e)))return!0}if(this.hasFill())return Pl(a,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=je,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"===typeof t?n[t]=e:Object(b["extend"])(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&je)},e.prototype.createStyle=function(t){return Object(b["createObject"])(Rl,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(b["extend"])({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,a,o){if(t.prototype._applyStateObj.call(this,e,n,r,i,a,o),this.__inHover!==ri){var s,l=!(n&&i);if(n&&n.shape?a?i?s=n.shape:(s=Object(b["extend"])({},r.shape),Object(b["extend"])(s,n.shape)):(s=Object(b["extend"])({},i?this.shape:r.shape),Object(b["extend"])(s,n.shape)):l&&(s=r.shape),s)if(a){this.shape=Object(b["extend"])({},this.shape);for(var u={},c=Object(b["keys"])(s),h=0;h<c.length;h++){var d=c[h];"object"===typeof s[d]?this.shape[d]=s[d]:u[d]=s[d]}this._transitionState(e,{shape:u},o)}else this.shape=s,this.dirtyShape()}},e.prototype._mergeStates=function(e){for(var n,r=t.prototype._mergeStates.call(this,e),i=0;i<e.length;i++){var a=e[i];a.shape&&(n=n||{},this._mergeStyle(n,a.shape))}return n&&(r.shape=n),r},e.prototype.getAnimationStyleProps=function(){return Nl},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(e){function n(n){var r=e.call(this,n)||this;return t.init&&t.init.call(r,n),r}return f(n,e),n.prototype.getDefaultStyle=function(){return Object(b["clone"])(t.style)},n.prototype.getDefaultShape=function(){return Object(b["clone"])(t.shape)},n}(e);for(var r in t)"function"===typeof t[r]&&(n.prototype[r]=t[r]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=Le|Pe|je}(),e}(Ls),Bl=zl,Vl=Object(b["defaults"])({strokeFirst:!0,font:Nr["a"],x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Rl),Fl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.hasStroke=function(){return ws(this.style)},e.prototype.hasFill=function(){var t=this.style,e=t.fill;return null!=e&&"none"!==e},e.prototype.createStyle=function(t){return Object(b["createObject"])(Vl,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=bs(this.style)),this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Ls);Fl.prototype.type="tspan";var Hl=Fl,Gl=Object(b["defaults"])({x:0,y:0},Ms),Wl={style:Object(b["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Os.style)};function Yl(t){return!!(t&&"string"!==typeof t&&t.width&&t.height)}var Ul=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.createStyle=function(t){return Object(b["createObject"])(Gl,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r=Yl(e.image)?e.image:this.__image;if(!r)return 0;var i="width"===t?"height":"width",a=e[i];return null==a?r[t]:r[t]/r[i]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return Wl},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ue(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Ls);Ul.prototype.type="image";var Xl=Ul;function Zl(t,e){var n,r,i,a,o,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof h?n=r=i=a=h:h instanceof Array?1===h.length?n=r=i=a=h[0]:2===h.length?(n=i=h[0],r=a=h[1]):3===h.length?(n=h[0],r=a=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],a=h[3]):n=r=i=a=0,n+r>u&&(o=n+r,n*=u/o,r*=u/o),i+a>u&&(o=i+a,i*=u/o,a*=u/o),r+i>c&&(o=r+i,r*=c/o,i*=c/o),n+a>c&&(o=n+a,n*=c/o,a*=c/o),t.moveTo(s+n,l),t.lineTo(s+u-r,l),0!==r&&t.arc(s+u-r,l+r,r,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+a,l+c),0!==a&&t.arc(s+a,l+c-a,a,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI),t.closePath()}var ql=Math.round;function $l(t,e,n){if(e){var r=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=r,t.x2=i,t.y1=a,t.y2=o;var s=n&&n.lineWidth;return s?(ql(2*r)===ql(2*i)&&(t.x1=t.x2=Jl(r,s,!0)),ql(2*a)===ql(2*o)&&(t.y1=t.y2=Jl(a,s,!0)),t):t}}function Kl(t,e,n){if(e){var r=e.x,i=e.y,a=e.width,o=e.height;t.x=r,t.y=i,t.width=a,t.height=o;var s=n&&n.lineWidth;return s?(t.x=Jl(r,s,!0),t.y=Jl(i,s,!0),t.width=Math.max(Jl(r+a,s,!1)-t.x,0===a?0:1),t.height=Math.max(Jl(i+o,s,!1)-t.y,0===o?0:1),t):t}}function Jl(t,e,n){if(!e)return t;var r=ql(2*t);return(r+ql(e))%2===0?r/2:(r+(n?1:-1))/2}var Ql=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),tu={},eu=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultShape=function(){return new Ql},e.prototype.buildPath=function(t,e){var n,r,i,a;if(this.subPixelOptimize){var o=Kl(tu,e,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=e.r,e=o}else n=e.x,r=e.y,i=e.width,a=e.height;e.r?Zl(t,e):t.rect(n,r,i,a)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Bl);eu.prototype.type="rect";var nu=eu,ru={fill:"#000"},iu=2,au={},ou={style:Object(b["defaults"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Os.style)},su=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ru,n.attr(e),n}return f(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,fu(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new ue(0,0,0,0),e=this._children,n=[],r=null,i=0;i<e.length;i++){var a=e[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(t.copy(o),t.applyTransform(s),r=r||t.clone(),r.union(t)):(r=r||o.clone(),r.union(o))}this._rect=r||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||ru},e.prototype.setTextContent=function(t){0},e.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,r=t.rich||n&&{};return Object(b["extend"])(t,e),n&&r?(this._mergeRich(r,n),t.rich=r):r&&(t.rich=r),t},e.prototype._mergeRich=function(t,e){for(var n=Object(b["keys"])(e),r=0;r<n.length;r++){var i=n[r];t[i]=t[i]||{},Object(b["extend"])(t[i],e[i])}},e.prototype.getAnimationStyleProps=function(){return ou},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||Nr["a"],n=t.padding,r=this._defaultStyle,i=t.x||0,a=t.y||0,o=t.align||r.align||"left",s=t.verticalAlign||r.verticalAlign||"top";ys(au,r.overflowRect,i,a,o,s),i=au.baseX,a=au.baseY;var l=xu(t),u=os(l,t,au.outerWidth,au.outerHeight),c=bu(t),h=!!t.backgroundColor,d=u.outerHeight,p=u.outerWidth,f=u.lines,g=u.lineHeight;this.isTruncated=!!u.isTruncated;var y=i,v=Ur(a,u.contentHeight,s);if(c||n){var m=Yr(i,p,o),x=Ur(a,d,s);c&&this._renderBackground(t,t,m,x,p,d)}v+=g/2,n&&(y=mu(i,o,n),"top"===s?v+=n[0]:"bottom"===s&&(v-=n[2]));for(var b=0,_=!1,w=!1,S=(vu("fill"in t?t.fill:(w=!0,r.fill))),M=(yu("stroke"in t?t.stroke:h||r.autoStroke&&!w?null:(b=iu,_=!0,r.stroke))),O=t.textShadowBlur>0,I=0;I<f.length;I++){var T=this._getOrCreateChild(Hl),C=T.createStyle();T.useStyle(C),C.text=f[I],C.x=y,C.y=v,o&&(C.textAlign=o),C.textBaseline="middle",C.opacity=t.opacity,C.strokeFirst=!0,O&&(C.shadowBlur=t.textShadowBlur||0,C.shadowColor=t.textShadowColor||"transparent",C.shadowOffsetX=t.textShadowOffsetX||0,C.shadowOffsetY=t.textShadowOffsetY||0),C.stroke=M,C.fill=S,M&&(C.lineWidth=t.lineWidth||b,C.lineDash=t.lineDash,C.lineDashOffset=t.lineDashOffset||0),C.font=e,du(C,t),v+=g,T.setBoundingRect(_s(C,u.contentWidth,u.calculatedLineHeight,_?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,r=t.verticalAlign||e.verticalAlign,i=t.x||0,a=t.y||0;ys(au,e.overflowRect,i,a,n,r),i=au.baseX,a=au.baseY;var o=xu(t),s=cs(o,t,au.outerWidth,au.outerHeight,n),l=s.width,u=s.outerWidth,c=s.outerHeight,h=t.padding;this.isTruncated=!!s.isTruncated;var d=Yr(i,u,n),p=Ur(a,c,r),f=d,g=p;h&&(f+=h[3],g+=h[0]);var y=f+l;bu(t)&&this._renderBackground(t,t,d,p,u,c);for(var v=!!t.backgroundColor,m=0;m<s.lines.length;m++){var x=s.lines[m],b=x.tokens,_=b.length,w=x.lineHeight,S=x.width,M=0,O=f,I=y,T=_-1,C=void 0;while(M<_&&(C=b[M],!C.align||"left"===C.align))this._placeToken(C,t,w,g,O,"left",v),S-=C.width,O+=C.width,M++;while(T>=0&&(C=b[T],"right"===C.align))this._placeToken(C,t,w,g,I,"right",v),S-=C.width,I-=C.width,T--;O+=(l-(O-f)-(y-I)-S)/2;while(M<=T)C=b[M],this._placeToken(C,t,w,g,O+C.width/2,"center",v),O+=C.width,M++;g+=w}},e.prototype._placeToken=function(t,e,n,r,i,a,o){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=r+n/2;"top"===l?u=r+t.height/2:"bottom"===l&&(u=r+n-t.height/2);var c=!t.isLineHolder&&bu(s);c&&this._renderBackground(s,e,"right"===a?i-t.width:"center"===a?i-t.width/2:i,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,d=t.textPadding;d&&(i=mu(i,a,d),u-=t.height/2-d[0]-t.innerHeight/2);var p=this._getOrCreateChild(Hl),f=p.createStyle();p.useStyle(f);var g=this._defaultStyle,y=!1,v=0,m=!1,x=vu("fill"in s?s.fill:"fill"in e?e.fill:(y=!0,g.fill)),_=yu("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||o||g.autoStroke&&!y?null:(v=iu,m=!0,g.stroke)),w=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=i,f.y=u,w&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=a,f.textBaseline="middle",f.font=t.font||Nr["a"],f.opacity=Object(b["retrieve3"])(s.opacity,e.opacity,1),du(f,s),_&&(f.lineWidth=Object(b["retrieve3"])(s.lineWidth,e.lineWidth,v),f.lineDash=Object(b["retrieve2"])(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=_),x&&(f.fill=x),p.setBoundingRect(_s(f,t.contentWidth,t.contentHeight,m?0:null))},e.prototype._renderBackground=function(t,e,n,r,i,a){var o,s,l=t.backgroundColor,u=t.borderWidth,c=t.borderColor,h=l&&l.image,d=l&&!h,p=t.borderRadius,f=this;if(d||t.lineHeight||u&&c){o=this._getOrCreateChild(nu),o.useStyle(o.createStyle()),o.style.fill=null;var g=o.shape;g.x=n,g.y=r,g.width=i,g.height=a,g.r=p,o.dirtyShape()}if(d){var y=o.style;y.fill=l||null,y.fillOpacity=Object(b["retrieve2"])(t.fillOpacity,1)}else if(h){s=this._getOrCreateChild(Xl),s.onload=function(){f.dirtyStyle()};var v=s.style;v.image=l.image,v.x=n,v.y=r,v.width=i,v.height=a}if(u&&c){y=o.style;y.lineWidth=u,y.stroke=c,y.strokeOpacity=Object(b["retrieve2"])(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var m=(o||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=Object(b["retrieve3"])(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return pu(t)&&(e=[t.fontStyle,t.fontWeight,hu(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(b["trim"])(e)||t.textFont||t.font},e}(Ls),lu={left:!0,right:1,center:1},uu={top:1,bottom:1,middle:1},cu=["fontStyle","fontWeight","fontSize","fontFamily"];function hu(t){return"string"!==typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?Nr["c"]+"px":t+"px":t}function du(t,e){for(var n=0;n<cu.length;n++){var r=cu[n],i=e[r];null!=i&&(t[r]=i)}}function pu(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function fu(t){return gu(t),Object(b["each"])(t.rich,gu),t}function gu(t){if(t){t.font=su.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||lu[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||uu[n]?n:"top";var r=t.padding;r&&(t.padding=Object(b["normalizeCssArray"])(t.padding))}}function yu(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function vu(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function mu(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function xu(t){var e=t.text;return null!=e&&(e+=""),e}function bu(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var _u=su,wu=Ka(),Su=function(t,e,n,r){if(r){var i=wu(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,i.ssrType="chart","group"===r.type&&r.traverse((function(r){var i=wu(r);i.seriesIndex=t,i.dataIndex=n,i.dataType=e,i.ssrType="chart"}))}},Mu="undefined",Ou="series",Iu=Object(b["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Tu="original",Cu="arrayRows",Au="objectRows",Du="keyedColumns",ku="typedArray",Lu="unknown",Pu="column",ju="row",Ru="Roam",Nu=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Eu=function(){function t(t){b["each"](Nu,(function(e){this[e]=b["bind"](t[e],t)}),this)}return t}();function zu(t,e){return e.mainType===Ou?t.getViewOfSeriesModel(e):t.getViewOfComponentModel(e)}var Bu=Eu,Vu=1,Fu={},Hu=Ka(),Gu=Ka(),Wu=0,Yu=1,Uu=2,Xu=["emphasis","blur","select"],Zu=["normal","emphasis","blur","select"],qu=10,$u=9,Ku="highlight",Ju="downplay",Qu="select",tc="unselect",ec="toggleSelect",nc="selectchanged";function rc(t){return null!=t&&"none"!==t}function ic(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function ac(t){ic(t,"emphasis",Uu)}function oc(t){t.hoverState===Uu&&ic(t,"normal",Wu)}function sc(t){ic(t,"blur",Yu)}function lc(t){t.hoverState===Yu&&ic(t,"normal",Wu)}function uc(t){t.selected=!0}function cc(t){t.selected=!1}function hc(t,e,n){e(t,n)}function dc(t,e,n){hc(t,e,n),t.isGroup&&t.traverse((function(t){hc(t,e,n)}))}function pc(t,e){switch(e){case"emphasis":t.hoverState=Uu;break;case"normal":t.hoverState=Wu;break;case"blur":t.hoverState=Yu;break;case"select":t.selected=!0}}function fc(t,e,n,r){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=null==l?r&&r[s]:l}for(o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(a,e)}return a}function gc(t,e,n,r){var i=n&&Object(b["indexOf"])(n,"select")>=0,a=!1;if(t instanceof Bl){var o=Hu(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(rc(s)||rc(l)){r=r||{};var u=r.style||{};"inherit"===u.fill?(a=!0,r=Object(b["extend"])({},r),u=Object(b["extend"])({},u),u.fill=s):!rc(u.fill)&&rc(s)?(a=!0,r=Object(b["extend"])({},r),u=Object(b["extend"])({},u),u.fill=Object(bn["liftColor"])(s)):!rc(u.stroke)&&rc(l)&&(a||(r=Object(b["extend"])({},r),u=Object(b["extend"])({},u)),u.stroke=Object(bn["liftColor"])(l)),r.style=u}}if(r&&null==r.z2){a||(r=Object(b["extend"])({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(null!=c?c:qu)}return r}function yc(t,e,n){if(n&&null==n.z2){n=Object(b["extend"])({},n);var r=t.z2SelectLift;n.z2=t.z2+(null!=r?r:$u)}return n}function vc(t,e,n){var r=Object(b["indexOf"])(t.currentStates,e)>=0,i=t.style.opacity,a=r?null:fc(t,["opacity"],e,{opacity:1});n=n||{};var o=n.style||{};return null==o.opacity&&(n=Object(b["extend"])({},n),o=Object(b["extend"])({opacity:r?i:.1*a.opacity},o),n.style=o),n}function mc(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return gc(this,t,e,n);if("blur"===t)return vc(this,t,n);if("select"===t)return yc(this,t,n)}return n}function xc(t){t.stateProxy=mc;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=mc),n&&(n.stateProxy=mc)}function bc(t,e){!Cc(t,e)&&!t.__highByOuter&&dc(t,ac)}function _c(t,e){!Cc(t,e)&&!t.__highByOuter&&dc(t,oc)}function wc(t,e){t.__highByOuter|=1<<(e||0),dc(t,ac)}function Sc(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&dc(t,oc)}function Mc(t){dc(t,sc)}function Oc(t){dc(t,lc)}function Ic(t){dc(t,uc)}function Tc(t){dc(t,cc)}function Cc(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Ac(t){var e=t.getModel(),n=[],r=[];e.eachComponent((function(e,i){var a=Gu(i),o=zu(t,i),s="series"===e;!s&&r.push(o),a.isBlured&&(o.group.traverse((function(t){lc(t)})),s&&n.push(i)),a.isBlured=!1})),Object(b["each"])(r,(function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(n,!1,e)}))}function Dc(t,e,n,r){var i=r.getModel();function a(t,e){for(var n=0;n<e.length;n++){var r=t.getItemGraphicEl(e[n]);r&&Oc(r)}}if(n=n||"coordinateSystem",null!=t&&e&&"none"!==e){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries((function(t){var i=o===t,u=t.coordinateSystem;u&&u.master&&(u=u.master);var c=u&&s?u===s:i;if(!("series"===n&&!i||"coordinateSystem"===n&&!c||"series"===e&&i)){var h=r.getViewOfSeriesModel(t);if(h.group.traverse((function(t){t.__highByOuter&&i&&"self"===e||sc(t)})),Object(b["isArrayLike"])(e))a(t.getData(),e);else if(Object(b["isObject"])(e))for(var d=Object(b["keys"])(e),p=0;p<d.length;p++)a(t.getData(d[p]),e[d[p]]);l.push(t),Gu(t).isBlured=!0}})),i.eachComponent((function(t,e){if("series"!==t){var n=r.getViewOfComponentModel(e);n&&n.toggleBlurSeries&&n.toggleBlurSeries(l,!0,i)}}))}}function kc(t,e,n){if(null!=t&&null!=e){var r=n.getModel().getComponent(t,e);if(r){Gu(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse((function(t){sc(t)}))}}}function Lc(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(i){var a=$a(i,e);a=(Object(b["isArray"])(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o){var s=i.count(),l=0;while(!o&&l<s)o=i.getItemGraphicEl(l++)}if(o){var u=wu(o);Dc(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),h=t.get(["emphasis","blurScope"]);null!=c&&Dc(r,c,h,n)}}}function Pc(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return i;var a=r.getModel().getComponent(t,e);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s,l=o.findHighDownDispatchers(n),u=0;u<l.length;u++)if("self"===wu(l[u]).focus){s=!0;break}return{focusSelf:s,dispatchers:l}}function jc(t,e,n){var r=wu(t),i=Pc(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&kc(r.componentMainType,r.componentIndex,n),Object(b["each"])(a,(function(t){return bc(t,e)}))):(Dc(r.seriesIndex,r.focus,r.blurScope,n),"self"===r.focus&&kc(r.componentMainType,r.componentIndex,n),bc(t,e))}function Rc(t,e,n){Ac(n);var r=wu(t),i=Pc(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?Object(b["each"])(i,(function(t){return _c(t,e)})):_c(t,e)}function Nc(t,e,n){if($c(e)){var r=e.dataType,i=t.getData(r),a=$a(i,e);Object(b["isArray"])(a)||(a=[a]),t[e.type===ec?"toggleSelect":e.type===Qu?"select":"unselect"](a,r)}}function Ec(t){var e=t.getAllData();Object(b["each"])(e,(function(e){var n=e.data,r=e.type;n.eachItemGraphicEl((function(e,n){t.isSelected(n,r)?Ic(e):Tc(e)}))}))}function zc(t){var e=[];return t.eachSeries((function(t){var n=t.getAllData();Object(b["each"])(n,(function(n){n.data;var r=n.type,i=t.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(a.dataType=r),e.push(a)}}))})),e}function Bc(t,e,n){Uc(t,!0),dc(t,xc),Hc(t,e,n)}function Vc(t){Uc(t,!1)}function Fc(t,e,n,r){r?Vc(t):Bc(t,e,n)}function Hc(t,e,n){var r=wu(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var Gc=["emphasis","blur","select"],Wc={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Yc(t,e,n,r){n=n||"itemStyle";for(var i=0;i<Gc.length;i++){var a=Gc[i],o=e.getModel([a,n]),s=t.ensureState(a);s.style=r?r(o):o[Wc[n]]()}}function Uc(t,e){var n=!1===e,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Xc(t){return!(!t||!t.__highDownDispatcher)}function Zc(t,e,n){var r=wu(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}function qc(t){var e=Fu[t];return null==e&&Vu<=32&&(e=Fu[t]=Vu++),e}function $c(t){var e=t.type;return e===Qu||e===tc||e===ec}function Kc(t){var e=t.type;return e===Ku||e===Ju}function Jc(t){var e=Hu(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var Qc=Ka();function th(t,e,n,r,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(s){var u=void 0,c=void 0,h=void 0;r?(u=Object(b["retrieve2"])(r.duration,200),c=Object(b["retrieve2"])(r.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(u=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(h=a.delay)),Object(b["isFunction"])(h)&&(h=h(n,i)),Object(b["isFunction"])(u)&&(u=u(n));var d={duration:u||0,delay:h,easing:c};return d}return null}function eh(t,e,n,r,i,a,o){var s,l=!1;Object(b["isFunction"])(i)?(o=a,a=i,i=null):Object(b["isObject"])(i)&&(a=i.cb,o=i.during,l=i.isFrom,s=i.removeOpt,i=i.dataIndex);var u="leave"===t;u||e.stopAnimation("leave");var c=th(t,r,i,u?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var h=c.duration,d=c.delay,p=c.easing,f={duration:h,delay:d||0,easing:p,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};l?e.animateFrom(n,f):e.animateTo(n,f)}else e.stopAnimation(),!l&&e.attr(n),o&&o(1),a&&a()}function nh(t,e,n,r,i,a){eh("update",t,e,n,r,i,a)}function rh(t,e,n,r,i,a){eh("enter",t,e,n,r,i,a)}function ih(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if("leave"===n.scope)return!0}return!1}function ah(t,e,n,r,i,a){ih(t)||eh("leave",t,e,n,r,i,a)}function oh(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),ah(t,{style:{opacity:0}},e,n,r)}function sh(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse((function(t){t.isGroup||oh(t,e,n,r)})):oh(t,e,n,r)}function lh(t){Qc(t).oldStyle=t.style}function uh(t){return Qc(t).oldStyle}var ch={};function hh(t,e){for(var n=0;n<Xu.length;n++){var r=Xu[n],i=e[r],a=t.ensureState(r);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function dh(t,e,n){var r,i=t.labelFetcher,a=t.labelDataIndex,o=t.labelDimIndex,s=e.normal;i&&(r=i.getFormattedLabel(a,"normal",null,o,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null)),null==r&&(r=Object(b["isFunction"])(t.defaultText)?t.defaultText(a,t,n):t.defaultText);for(var l={normal:r},u=0;u<Xu.length;u++){var c=Xu[u],h=e[c];l[c]=Object(b["retrieve2"])(i?i.getFormattedLabel(a,c,null,o,h&&h.get("formatter")):null,r)}return l}function ph(t,e,n,r){n=n||ch;for(var i=t instanceof _u,a=!1,o=0;o<Zu.length;o++){var s=e[Zu[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new _u,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=dh(n,e),c=e.normal,h=!!c.getShallow("show"),d=gh(c,r&&r.normal,n,!1,!i);d.text=u.normal,i||t.setTextConfig(yh(c,n,!1));for(o=0;o<Xu.length;o++){var p=Xu[o];s=e[p];if(s){var f=l.ensureState(p),g=!!Object(b["retrieve2"])(s.getShallow("show"),h);if(g!==h&&(f.ignore=!g),f.style=gh(s,r&&r[p],n,!0,!i),f.style.text=u[p],!i){var y=t.ensureState(p);y.textConfig=yh(s,n,!0)}}}l.silent=!!c.getShallow("silent"),null!=l.style.x&&(d.x=l.style.x),null!=l.style.y&&(d.y=l.style.y),l.ignore=!h,l.useStyle(d),l.dirty(),n.enableTextSetter&&(Mh(l).setLabelText=function(t){var r=dh(n,e,t);hh(l,r)})}else l&&(l.ignore=!0);t.dirty()}function fh(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Xu.length;r++){var i=Xu[r];n[i]=t.getModel([i,e])}return n}function gh(t,e,n,r,i){var a={};return vh(a,t,n,r,i),e&&Object(b["extend"])(a,e),a}function yh(t,e,n){e=e||{};var r,i={},a=t.getShallow("rotate"),o=Object(b["retrieve2"])(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return r=t.getShallow("position")||(n?null:"inside"),"outside"===r&&(r=e.defaultOutsidePosition||"top"),null!=r&&(i.position=r),null!=s&&(i.offset=s),null!=a&&(a*=Math.PI/180,i.rotation=a),null!=o&&(i.distance=o),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(i.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(i.layoutRect=e.layoutRect),i}function vh(t,e,n,r,i){n=n||ch;var a,o=e.ecModel,s=o&&o.option.textStyle,l=mh(e);if(l){a={};var u="richInheritPlainLabel",c=Object(b["retrieve2"])(e.get(u),o?o.get(u):void 0);for(var h in l)if(l.hasOwnProperty(h)){var d=e.getModel(["rich",h]);wh(a[h]={},d,s,e,c,n,r,i,!1,!0)}}a&&(t.rich=a);var p=e.get("overflow");p&&(t.overflow=p);var f=e.get("lineOverflow");f&&(t.lineOverflow=f);var g=t,y=e.get("minMargin");if(null!=y)y=Object(b["isNumber"])(y)?y/2:0,g.margin=[y,y,y,y],g.__marginType=Th.minMargin;else{var v=e.get("textMargin");null!=v&&(g.margin=Object(b["normalizeCssArray"])(v),g.__marginType=Th.textMargin)}wh(t,e,s,null,null,n,r,i,!0,!1)}function mh(t){var e;while(t&&t!==t.ecModel){var n=(t.option||ch).rich;if(n){e=e||{};for(var r=Object(b["keys"])(n),i=0;i<r.length;i++){var a=r[i];e[a]=1}}t=t.parentModel}return e}var xh=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],bh=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],_h=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function wh(t,e,n,r,i,a,o,s,l,u){n=!o&&n||ch;var c=a&&a.inheritColor,h=e.getShallow("color"),d=e.getShallow("textBorderColor"),p=Object(b["retrieve2"])(e.getShallow("opacity"),n.opacity);"inherit"!==h&&"auto"!==h||(h=c||null),"inherit"!==d&&"auto"!==d||(d=c||null),s||(h=h||n.color,d=d||n.textBorderColor),null!=h&&(t.fill=h),null!=d&&(t.stroke=d);var f=Object(b["retrieve2"])(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=f&&(t.lineWidth=f);var g=Object(b["retrieve2"])(e.getShallow("textBorderType"),n.textBorderType);null!=g&&(t.lineDash=g);var y=Object(b["retrieve2"])(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=y&&(t.lineDashOffset=y),o||null!=p||u||(p=a&&a.defaultOpacity),null!=p&&(t.opacity=p),o||s||null==t.fill&&a.inheritColor&&(t.fill=a.inheritColor);for(var v=0;v<xh.length;v++){var m=xh[v],x=!1!==i&&r?Object(b["retrieve3"])(e.getShallow(m),r.getShallow(m),n[m]):Object(b["retrieve2"])(e.getShallow(m),n[m]);null!=x&&(t[m]=x)}for(v=0;v<bh.length;v++){m=bh[v],x=e.getShallow(m);null!=x&&(t[m]=x)}if(null==t.verticalAlign){var _=e.getShallow("baseline");null!=_&&(t.verticalAlign=_)}if(!l||!a.disableBox){for(v=0;v<_h.length;v++){m=_h[v],x=e.getShallow(m);null!=x&&(t[m]=x)}var w=e.getShallow("borderType");null!=w&&(t.borderDash=w),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!c||(t.backgroundColor=c),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!c||(t.borderColor=c)}}function Sh(t,e){var n=e&&e.getModel("textStyle");return Object(b["trim"])([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Mh=Ka();function Oh(t,e,n,r){if(t){var i=Mh(t);i.prevValue=i.value,i.value=n;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}function Ih(t,e,n,r,i){var a=Mh(t);if(a.valueAnimation&&a.prevValue!==a.value){var o=a.defaultInterpolatedText,s=Object(b["retrieve2"])(a.interpolatedValue,a.prevValue),l=a.value;t.percent=0,(null==a.prevValue?rh:nh)(t,{percent:1},r,e,null,u)}function u(r){var u=uo(n,a.precision,s,l,r);a.interpolatedValue=1===r?null:u;var c=dh({labelDataIndex:e,labelFetcher:i,defaultText:o?o(u):u+""},a.statesModels,u);hh(t,c)}}var Th={minMargin:1,textMargin:2},Ch=["textStyle","color"],Ah=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Dh=new _u,kh=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Ch):null)},t.prototype.getFont=function(){return Sh({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Ah.length;n++)e[Ah[n]]=this.getShallow(Ah[n]);return Dh.useStyle(e),Dh.update(),Dh.getBoundingRect()},t}(),Lh=kh,Ph=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],jh=Yo(Ph),Rh=function(){function t(){}return t.prototype.getLineStyle=function(t){return jh(this,t)},t}(),Nh=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Eh=Yo(Nh),zh=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return Eh(this,t,e)},t}(),Bh=function(){function t(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return t.prototype.init=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i]},t.prototype.mergeOption=function(t,e){Object(b["merge"])(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var n=this.option,r=null==n?n:n[t];if(null==r&&!e){var i=this.parentModel;i&&(r=i.getShallow(t))}return r},t.prototype.getModel=function(e,n){var r=null!=e,i=r?this.parsePath(e):null,a=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,n,this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){var t=this.constructor;return new t(Object(b["clone"])(this.option))},t.prototype.parsePath=function(t){return"string"===typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!x.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var r=0;r<t.length;r++)if(t[r]&&(n=n&&"object"===typeof n?n[t[r]]:null,null==n))break;return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},t}();Eo(Bh),Fo(Bh),Object(b["mixin"])(Bh,Rh),Object(b["mixin"])(Bh,zh),Object(b["mixin"])(Bh,Zo),Object(b["mixin"])(Bh,Lh);var Vh=Bh,Fh=Math.round(10*Math.random());function Hh(t){return[t||"",Fh++].join("_")}function Gh(t){var e={};t.registerSubTypeDefaulter=function(t,n){var r=jo(t);e[r.main]=n},t.determineSubType=function(n,r){var i=r.type;if(!i){var a=jo(n).main;t.hasSubTypes(n)&&e[a]&&(i=e[a](r))}return i}}function Wh(t,e){function n(t){var n={},a=[];return b["each"](t,(function(o){var s=r(n,o),l=s.originalDeps=e(o),u=i(l,t);s.entryCount=u.length,0===s.entryCount&&a.push(o),b["each"](u,(function(t){b["indexOf"](s.predecessor,t)<0&&s.predecessor.push(t);var e=r(n,t);b["indexOf"](e.successor,t)<0&&e.successor.push(o)}))})),{graph:n,noEntryList:a}}function r(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}function i(t,e){var n=[];return b["each"](t,(function(t){b["indexOf"](e,t)>=0&&n.push(t)})),n}t.topologicalTravel=function(t,e,r,i){if(t.length){var a=n(e),o=a.graph,s=a.noEntryList,l={};b["each"](t,(function(t){l[t]=!0}));while(s.length){var u=s.pop(),c=o[u],h=!!l[u];h&&(r.call(i,u,c.originalDeps.slice()),delete l[u]),b["each"](c.successor,h?p:d)}b["each"](l,(function(){var t="";throw new Error(t)}))}function d(t){o[t].entryCount--,0===o[t].entryCount&&s.push(t)}function p(t){l[t]=!0,d(t)}}}function Yh(t,e){return b["merge"](b["merge"]({},t,!0),e,!0)}var Uh={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Xh={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},Zh="ZH",qh="EN",$h=qh,Kh={},Jh={},Qh=x.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||$h).toUpperCase();return t.indexOf(Zh)>-1?Zh:$h}():$h;function td(t,e){t=t.toUpperCase(),Jh[t]=new Vh(e),Kh[t]=e}function ed(t){if(Object(b["isString"])(t)){var e=Kh[t.toUpperCase()]||{};return t===Zh||t===qh?Object(b["clone"])(e):Object(b["merge"])(Object(b["clone"])(e),Object(b["clone"])(Kh[$h]),!1)}return Object(b["merge"])(Object(b["clone"])(t),Object(b["clone"])(Kh[$h]),!1)}function nd(t){return Jh[t]}function rd(){return Jh[$h]}td(qh,Uh),td(Zh,Xh);var id=null;function ad(t){id||(id=t)}function od(){return id}function sd(t,e){var n=od(),r=e.breakOption,i=e.breakParsed;return!i&&n&&(i=n.parseAxisBreakOption(r,t)),i}function ld(t){var e=t.brk;return e?e.breaks:[]}function ud(t){var e=t.brk;return!!e&&e.hasBreaks()}var cd=1e3,hd=60*cd,dd=60*hd,pd=24*dd,fd=365*pd,gd={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},yd={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},vd="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",md="{yyyy}-{MM}-{dd}",xd={year:"{yyyy}",month:"{yyyy}-{MM}",day:md,hour:md+" "+yd.hour,minute:md+" "+yd.minute,second:md+" "+yd.second,millisecond:vd},bd=["year","month","day","hour","minute","second","millisecond"],_d=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function wd(t){return b["isString"](t)||b["isFunction"](t)?t:Sd(t)}function Sd(t){t=t||{};var e={},n=!0;return b["each"](bd,(function(e){n&&(n=null==t[e])})),b["each"](bd,(function(r,i){var a=t[r];e[r]={};for(var o=null,s=i;s>=0;s--){var l=bd[s],u=b["isObject"](a)&&!b["isArray"](a)?a[l]:a,c=void 0;b["isArray"](u)?(c=u.slice(),o=c[0]||""):b["isString"](u)?(o=u,c=[o]):(null==o?o=yd[r]:gd[l].test(o)||(o=e[l][l][0]+" "+o),c=[o],n&&(c[1]="{primary|"+o+"}")),e[r][l]=c}})),e}function Md(t,e){return t+="","0000".substr(0,e-t.length)+t}function Od(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Id(t){return t===Od(t)}function Td(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Cd(t,e,n,r){var i=pa(t),a=i[Ld(n)](),o=i[Pd(n)]()+1,s=Math.floor((o-1)/3)+1,l=i[jd(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Rd(n)](),h=(c-1)%12+1,d=i[Nd(n)](),p=i[Ed(n)](),f=i[zd(n)](),g=c>=12?"pm":"am",y=g.toUpperCase(),v=r instanceof Vh?r:nd(r||Qh)||rd(),m=v.getModel("time"),x=m.get("month"),b=m.get("monthAbbr"),_=m.get("dayOfWeek"),w=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Md(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,x[o-1]).replace(/{MMM}/g,b[o-1]).replace(/{MM}/g,Md(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Md(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Md(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Md(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Md(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Md(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Md(f,3)).replace(/{S}/g,f+"")}function Ad(t,e,n,r,i){var a=null;if(b["isString"](n))a=n;else if(b["isFunction"](n)){var o={time:t.time,level:t.time?t.time.level:0},s=od();s&&s.makeAxisLabelFormatterParamBreak(o,t["break"]),a=n(t.value,e,o)}else{var l=t.time;if(l){var u=n[l.lowerTimeUnit][l.upperTimeUnit];a=u[Math.min(l.level,u.length-1)]||""}else{var c=Dd(t.value,i);a=n[c][c][0]}}return Cd(new Date(t.value),a,i,r)}function Dd(t,e){var n=pa(t),r=n[Pd(e)]()+1,i=n[jd(e)](),a=n[Rd(e)](),o=n[Nd(e)](),s=n[Ed(e)](),l=n[zd(e)](),u=0===l,c=u&&0===s,h=c&&0===o,d=h&&0===a,p=d&&1===i,f=p&&1===r;return f?"year":p?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function kd(t,e,n){switch(e){case"year":t[Vd(n)](0);case"month":t[Fd(n)](1);case"day":t[Hd(n)](0);case"hour":t[Gd(n)](0);case"minute":t[Wd(n)](0);case"second":t[Yd(n)](0)}return t}function Ld(t){return t?"getUTCFullYear":"getFullYear"}function Pd(t){return t?"getUTCMonth":"getMonth"}function jd(t){return t?"getUTCDate":"getDate"}function Rd(t){return t?"getUTCHours":"getHours"}function Nd(t){return t?"getUTCMinutes":"getMinutes"}function Ed(t){return t?"getUTCSeconds":"getSeconds"}function zd(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Bd(t){return t?"setUTCFullYear":"setFullYear"}function Vd(t){return t?"setUTCMonth":"setMonth"}function Fd(t){return t?"setUTCDate":"setDate"}function Hd(t){return t?"setUTCHours":"setHours"}function Gd(t){return t?"setUTCMinutes":"setMinutes"}function Wd(t){return t?"setUTCSeconds":"setSeconds"}function Yd(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Ud(t){if(!_a(t))return b["isString"](t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Xd(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Zd=b["normalizeCssArray"];function qd(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(t){return t&&b["trim"](t)?t:"-"}function a(t){return Oa(t)}var o="time"===e,s=t instanceof Date;if(o||s){var l=o?pa(t):t;if(!isNaN(+l))return Cd(l,r,n);if(s)return"-"}if("ordinal"===e)return b["isStringSafe"](t)?i(t):b["isNumber"](t)&&a(t)?t+"":"-";var u=ba(t);return a(u)?Ud(u):b["isStringSafe"](t)?i(t):"boolean"===typeof t?t+"":"-"}var $d=["a","b","c","d","e","f","g"],Kd=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Jd(t,e,n){b["isArray"](e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=$d[a];t=t.replace(Kd(o),Kd(o,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(Kd($d[l],s),n?ct(u):u)}return t}function Qd(t,e,n){return b["each"](e,(function(e,r){t=t.replace("{"+r+"}",n?ct(e):e)})),t}function tp(t,e){var n=b["isString"](t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var a=n.renderMode||"html";if(!r)return"";if("html"===a)return"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ct(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ct(r)+";"+(e||"")+'"></span>';var o=n.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function ep(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=pa(e),i=n?"getUTC":"get",a=r[i+"FullYear"](),o=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),h=r[i+"Milliseconds"]();return t=t.replace("MM",Md(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Md(a%100+"",2)).replace("dd",Md(s,2)).replace("d",s).replace("hh",Md(l,2)).replace("h",l).replace("mm",Md(u,2)).replace("m",u).replace("ss",Md(c,2)).replace("s",c).replace("SSS",Md(h,3)),t}function np(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function rp(t,e){return e=e||"transparent",b["isString"](t)?t:b["isObject"](t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function ip(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var ap={},op={},sp=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){function n(n,r){var i=[];return b["each"](n,(function(n,r){var a=n.create(t,e);i=i.concat(a||[])})),i}this._nonSeriesBoxMasterList=n(ap,!0),this._normalMasterList=n(op,!1)},t.prototype.update=function(t,e){b["each"](this._normalMasterList,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){"matrix"!==t&&"calendar"!==t?op[t]=e:ap[t]=e},t.get=function(t){return op[t]||ap[t]},t}();function lp(t){return!!ap[t]}var up=1,cp=2;function hp(t){dp.set(t.fullType,{getCoord2:void 0}).getCoord2=t.getCoord2}var dp=b["createHashMap"]();function pp(t){var e=t.getShallow("coord",!0),n=up;if(null==e){var r=dp.get(t.type);r&&r.getCoord2&&(n=cp,e=r.getCoord2(t))}return{coord:e,from:n}}var fp=0,gp=1,yp=2;function vp(t,e){var n=t.getShallow("coordinateSystem"),r=t.getShallow("coordinateSystemUsage",!0),i=fp;if(n){var a="series"===t.mainType;null==r&&(r=a?"data":"box"),"data"===r?(i=gp,a||(i=fp)):"box"===r&&(i=yp,a||lp(n)||(i=fp))}return{coordSysType:n,kind:i}}function mp(t){var e=t.targetModel,n=t.coordSysType,r=t.coordSysProvider,i=t.isDefaultDataCoordSys;t.allowNotFound;var a=vp(e,!0),o=a.kind,s=a.coordSysType;if(i&&o!==gp&&(o=gp,s=n),o===fp||s!==n)return fp;var l=r(n,e);return l?(o===gp?e.coordinateSystem=l:e.boxCoordinateSystem=l,o):fp}var xp=function(t,e){var n=e.getReferringComponents(t,eo).models[0];return n&&n.coordinateSystem},bp=sp,_p=b["each"],wp=["left","right","top","bottom","width","height"],Sp=[["width","left","right"],["height","top","bottom"]];function Mp(t,e,n,r,i){var a=0,o=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);c=a+g,c>r||l.newline?(a=0,c=g,o+=s+n,s=d.height):s=Math.max(s,d.height)}else{var y=d.height+(f?-f.y+d.y:0);h=o+y,h>i||l.newline?(a+=s+n,o=0,h=y,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===t?a=c+n:o=h+n)}))}var Op=Mp;b["curry"](Mp,"vertical"),b["curry"](Mp,"horizontal");function Ip(t,e){return{left:t.getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)}}function Tp(t,e){var n,r,i=Lp(t,e,{enableLayoutOnlyByCenter:!0}),a=t.getBoxLayoutParams();if(i.type===kp.point)r=i.refPoint,n=Ap(a,{width:e.getWidth(),height:e.getHeight()});else{var o=t.get("center"),s=b["isArray"](o)?o:[o,o];n=Ap(a,i.refContainer),r=i.boxCoordFrom===cp?i.refPoint:[Zi(s[0],n.width)+n.x,Zi(s[1],n.height)+n.y]}return{viewRect:n,center:r}}function Cp(t,e){var n=Tp(t,e),r=n.viewRect,i=n.center,a=t.get("radius");b["isArray"](a)||(a=[0,a]);var o=Zi(r.width,e.getWidth()),s=Zi(r.height,e.getHeight()),l=Math.min(o,s),u=Zi(a[0],l/2),c=Zi(a[1],l/2);return{cx:i[0],cy:i[1],r0:u,r:c,viewRect:r}}function Ap(t,e,n){n=Zd(n||0);var r=e.width,i=e.height,a=Zi(t.left,r),o=Zi(t.top,i),s=Zi(t.right,r),l=Zi(t.bottom,i),u=Zi(t.width,r),c=Zi(t.height,i),h=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-s-d-a),isNaN(c)&&(c=i-l-h-o),null!=p&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(a)&&(a=r-s-u-d),isNaN(o)&&(o=i-l-c-h),t.left||t.right){case"center":a=r/2-u/2-n[3];break;case"right":a=r-u-d;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-c/2-n[0];break;case"bottom":o=i-c-h;break}a=a||0,o=o||0,isNaN(u)&&(u=r-d-a-(s||0)),isNaN(c)&&(c=i-h-o-(l||0));var f=new ue((e.x||0)+a+n[3],(e.y||0)+o+n[0],u,c);return f.margin=n,f}function Dp(t,e,n){var r=t.getShallow("preserveAspect",!0);if(!r)return e;var i=e.width/e.height;if(Math.abs(Math.atan(n)-Math.atan(i))<1e-9)return e;var a=t.getShallow("preserveAspectAlign",!0),o=t.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l="cover"===r;return i>n&&!l||i<n&&l?(s.width=e.height*n,"left"===a?s.left=0:"right"===a?s.right=0:s.left="center"):(s.height=e.width/n,"top"===o?s.top=0:"bottom"===o?s.bottom=0:s.top="middle"),Ap(s,e)}var kp={rect:1,point:2};function Lp(t,e,n){var r,i,a,o,s=t.boxCoordinateSystem;if(s){var l=pp(t),u=l.coord,c=l.from;if(s.dataToLayout){a=kp.rect,o=c;var h=s.dataToLayout(u);r=h.contentRect||h.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(a=kp.point,o=c,i=s.dataToPoint(u))}return null==a&&(a=kp.rect),a===kp.rect&&(r||(r={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:o}}function Pp(t,e,n,r,i,a){var o,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if(a=a||t,a.x=t.x,a.y=t.y,!s&&!l)return!1;if("raw"===u)o="group"===t.type?new ue(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(o=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();o=o.clone(),o.applyTransform(c)}var h=Ap(b["defaults"]({width:o.width,height:o.height},e),n,r),d=s?h.x-o.x:0,p=l?h.y-o.y:0;return"raw"===u?(a.x=d,a.y=p):(a.x+=d,a.y+=p),a===t&&t.markRedraw(),!0}function jp(t,e){return null!=t[Sp[e][0]]||null!=t[Sp[e][1]]&&null!=t[Sp[e][2]]}function Rp(t){var e=t.layoutMode||t.constructor.layoutMode;return b["isObject"](e)?e:e?{type:e}:null}function Np(t,e,n){var r=n&&n.ignoreSize;!b["isArray"](r)&&(r=[r,r]);var i=o(Sp[0],0),a=o(Sp[1],1);function o(n,i){var a={},o=0,l={},u=0,c=2;if(_p(n,(function(e){l[e]=t[e]})),_p(n,(function(t){b["hasOwn"](e,t)&&(a[t]=l[t]=e[t]),s(a,t)&&o++,s(l,t)&&u++})),r[i])return s(e,n[1])?l[n[2]]=null:s(e,n[2])&&(l[n[1]]=null),l;if(u!==c&&o){if(o>=c)return a;for(var h=0;h<n.length;h++){var d=n[h];if(!b["hasOwn"](a,d)&&b["hasOwn"](t,d)){a[d]=t[d];break}}return a}return l}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,n){_p(t,(function(t){e[t]=n[t]}))}l(Sp[0],t,i),l(Sp[1],t,a)}function Ep(t){return zp({},t)}function zp(t,e){return e&&t&&_p(wp,(function(n){b["hasOwn"](e,n)&&(t[n]=e[n])})),t}var Bp=Ka(),Vp=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.uid=Hh("ec_cpt_model"),i}return f(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Rp(this),r=n?Ep(t):{},i=e.getTheme();b["merge"](t,i.get(this.mainType)),b["merge"](t,this.getDefaultOption()),n&&Np(t,r,n)},e.prototype.mergeOption=function(t,e){b["merge"](this.option,t,!0);var n=Rp(this);n&&Np(this.option,t,n)},e.prototype.optionUpdated=function(t,e){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!No(t))return t.defaultOption;var e=Bp(this);if(!e.defaultOption){var n=[],r=t;while(r){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=b["merge"](a,n[o],!0);e.defaultOption=a}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return ro(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.prototype.getBoxLayoutParams=function(){return Ip(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Vh);function Fp(t){var e=[];return b["each"](Vp.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=b["map"](e,(function(t){return jo(t).main})),"dataset"!==t&&b["indexOf"](e,"dataset")<=0&&e.unshift("dataset"),e}Bo(Vp,Vh),Wo(Vp),Gh(Vp),Wh(Vp,Fp);var Hp=Vp,Gp={color:{},darkColor:{},size:{}},Wp=Gp.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var Yp in Object(b["extend"])(Wp,{primary:Wp.neutral80,secondary:Wp.neutral70,tertiary:Wp.neutral60,quaternary:Wp.neutral50,disabled:Wp.neutral20,border:Wp.neutral30,borderTint:Wp.neutral20,borderShade:Wp.neutral40,background:Wp.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Wp.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Wp.neutral70,axisLineTint:Wp.neutral40,axisTick:Wp.neutral70,axisTickMinor:Wp.neutral60,axisLabel:Wp.neutral70,axisSplitLine:Wp.neutral15,axisMinorSplitLine:Wp.neutral05}),Wp)if(Wp.hasOwnProperty(Yp)){var Up=Wp[Yp];"theme"===Yp?Gp.darkColor.theme=Wp.theme.slice():"highlight"===Yp?Gp.darkColor.highlight="rgba(255,231,130,0.4)":0===Yp.indexOf("accent")?Gp.darkColor[Yp]=Object(bn["modifyHSL"])(Up,null,(function(t){return.5*t}),(function(t){return Math.min(1,1.3-t)})):Gp.darkColor[Yp]=Object(bn["modifyHSL"])(Up,null,(function(t){return.9*t}),(function(t){return 1-Math.pow(t,1.5)}))}Gp.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Xp=Gp,Zp="";"undefined"!==typeof navigator&&(Zp=navigator.platform||"");var qp="rgba(0, 0, 0, 0.2)",$p=Xp.color.theme[0],Kp=Object(bn["modifyHSL"])($p,null,null,.9),Jp={darkMode:"auto",colorBy:"series",color:Xp.color.theme,gradientColor:[Kp,$p],aria:{decal:{decals:[{color:qp,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:qp,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:qp,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:qp,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:qp,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:qp,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Zp.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Qp={Must:1,Might:2,Not:3},tf=Ka();function ef(t){tf(t).datasetMap=Object(b["createHashMap"])()}function nf(t,e,n){var r={},i=af(e);if(!i||!t)return r;var a,o,s=[],l=[],u=e.ecModel,c=tf(u).datasetMap,h=i.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(b["each"])(t,(function(e,n){var i=Object(b["isObject"])(e)?e:t[n]={name:e};"ordinal"===i.type&&null==a&&(a=n,o=f(i)),r[i.name]=[]}));var d=c.get(h)||c.set(h,{categoryWayDim:o,valueWayDim:0});function p(t,e,n){for(var r=0;r<n;r++)t.push(e+r)}function f(t){var e=t.dimsDef;return e?e.length:1}return Object(b["each"])(t,(function(t,e){var n=t.name,i=f(t);if(null==a){var o=d.valueWayDim;p(r[n],o,i),p(l,o,i),d.valueWayDim+=i}else if(a===e)p(r[n],0,i),p(s,0,i);else{o=d.categoryWayDim;p(r[n],o,i),p(l,o,i),d.categoryWayDim+=i}})),s.length&&(r.itemName=s),l.length&&(r.seriesName=l),r}function rf(t,e,n){var r={},i=af(t);if(!i)return r;var a,o=e.sourceFormat,s=e.dimensionsDefine;o!==Au&&o!==Du||Object(b["each"])(s,(function(t,e){"name"===(Object(b["isObject"])(t)?t.name:t)&&(a=e)}));var l=function(){for(var t={},r={},i=[],l=0,u=Math.min(5,n);l<u;l++){var c=lf(e.data,o,e.seriesLayoutBy,s,e.startIndex,l);i.push(c);var h=c===Qp.Not;if(h&&null==t.v&&l!==a&&(t.v=l),(null==t.n||t.n===t.v||!h&&i[t.n]===Qp.Not)&&(t.n=l),d(t)&&i[t.n]!==Qp.Not)return t;h||(c===Qp.Might&&null==r.v&&l!==a&&(r.v=l),null!=r.n&&r.n!==r.v||(r.n=l))}function d(t){return null!=t.v&&null!=t.n}return d(t)?t:d(r)?r:null}();if(l){r.value=[l.v];var u=null!=a?a:l.n;r.itemName=[u],r.seriesName=[u]}return r}function af(t){var e=t.get("data",!0);if(!e)return ro(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},eo).models[0]}function of(t){return t.get("transform",!0)||t.get("fromTransformResult",!0)?ro(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},eo).models:[]}function sf(t,e){return lf(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function lf(t,e,n,r,i,a){var o,s,l,u=5;if(Object(b["isTypedArray"])(t))return Qp.Not;if(r){var c=r[a];Object(b["isObject"])(c)?(s=c.name,l=c.type):Object(b["isString"])(c)&&(s=c)}if(null!=l)return"ordinal"===l?Qp.Must:Qp.Not;if(e===Cu){var h=t;if(n===ju){for(var d=h[a],p=0;p<(d||[]).length&&p<u;p++)if(null!=(o=_(d[i+p])))return o}else for(p=0;p<h.length&&p<u;p++){var f=h[i+p];if(f&&null!=(o=_(f[a])))return o}}else if(e===Au){var g=t;if(!s)return Qp.Not;for(p=0;p<g.length&&p<u;p++){var y=g[p];if(y&&null!=(o=_(y[s])))return o}}else if(e===Du){var v=t;if(!s)return Qp.Not;d=v[s];if(!d||Object(b["isTypedArray"])(d))return Qp.Not;for(p=0;p<d.length&&p<u;p++)if(null!=(o=_(d[p])))return o}else if(e===Tu){var m=t;for(p=0;p<m.length&&p<u;p++){y=m[p];var x=La(y);if(!Object(b["isArray"])(x))return Qp.Not;if(null!=(o=_(x[a])))return o}}function _(t){var e=Object(b["isString"])(t);return null!=t&&isFinite(Number(t))&&""!==t?e?Qp.Might:Qp.Not:e&&"-"!==t?Qp.Must:void 0}return Qp.Not}var uf=Object(b["createHashMap"])();function cf(t,e){Object(b["assert"])(null==uf.get(t)&&e),uf.set(t,e)}function hf(t,e,n){var r=uf.get(e);if(!r)return n;var i=r(t);return i?n.concat(i):n}var df=Ka(),pf=Ka(),ff=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,n){var r=Aa(this.get("color",!0)),i=this.get("colorLayer",!0);return vf(this,df,r,i,t,e,n)},t.prototype.clearColorPalette=function(){mf(this,df)},t}();function gf(t,e,n,r){var i=Aa(t.get(["aria","decal","decals"]));return vf(t,pf,i,null,e,n,r)}function yf(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function vf(t,e,n,r,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=o&&r?yf(r,o):n;if(c=c||n,c&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}function mf(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var xf,bf,_f,wf="[ECharts] ",Sf={},Mf="undefined"!==typeof console&&console.warn&&console.log;function Of(t,e,n){if(Mf){if(n){if(Sf[e])return;Sf[e]=!0}console[t](wf+e)}}function If(t,e){Of("error",t,e)}function Tf(t){0}function Cf(t){throw new Error(t)}var Af="\0_ec_inner",Df=1;var kf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.init=function(t,e,n,r,i,a){r=r||{},this.option=null,this._theme=new Vh(r),this._locale=new Vh(i),this._optionManager=a},e.prototype.setOption=function(t,e,n){var r=Nf(e);this._optionManager.setOption(t,n,r),this._resetOption(null,r)},e.prototype.resetOption=function(t,e){return this._resetOption(t,Nf(e))},e.prototype._resetOption=function(t,e){var n=!1,r=this._optionManager;if(!t||"recreate"===t){var i=r.mountOption("recreate"===t);0,this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):_f(this,i),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,e))}if(!t||"recreate"===t||"media"===t){var o=r.getMediaOption(this);o.length&&Object(b["each"])(o,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=Object(b["createHashMap"])(),s=e&&e.replaceMergeMainTypeMap;function l(e){var a=hf(this,e,Aa(t[e])),o=r.get(e),l=o?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",u=ja(o,a,l);Xa(u,e,Hp),n[e]=null,r.set(e,null),i.set(e,0);var c,h=[],d=[],p=0;Object(b["each"])(u,(function(t,n){var r=t.existing,i=t.newOption;if(i){var a="series"===e,o=Hp.getClass(e,t.keyInfo.subType,!a);if(!o)return;if("tooltip"===e){if(c)return void 0;c=!0}if(r&&r.constructor===o)r.name=t.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(b["extend"])({componentIndex:n},t.keyInfo);r=new o(i,this,this,s),Object(b["extend"])(r,s),t.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(h.push(r.option),d.push(r),p++):(h.push(void 0),d.push(void 0))}),this),n[e]=h,r.set(e,d),i.set(e,p),"series"===e&&xf(this)}ef(this),Object(b["each"])(t,(function(t,e){null!=t&&(Hp.hasClass(e)?e&&(a.push(e),o.set(e,!0)):n[e]=null==n[e]?Object(b["clone"])(t):Object(b["merge"])(n[e],t,!0))})),s&&s.each((function(t,e){Hp.hasClass(e)&&!o.get(e)&&(a.push(e),o.set(e,!0))})),Hp.topologicalTravel(a,Hp.getAllClassMainTypes(),l,this),this._seriesIndices||xf(this)},e.prototype.getOption=function(){var t=Object(b["clone"])(this.option);return Object(b["each"])(t,(function(e,n){if(Hp.hasClass(n)){for(var r=Aa(e),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Ya(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,t[n]=r}})),delete t[Af],t},e.prototype.setTheme=function(t){this._theme=new Vh(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},e.prototype.queryComponents=function(t){var e=t.mainType;if(!e)return[];var n,r=t.index,i=t.id,a=t.name,o=this._componentsMap.get(e);return o&&o.length?(null!=r?(n=[],Object(b["each"])(Aa(r),(function(t){o[t]&&n.push(o[t])}))):n=null!=i?jf("id",i,o):null!=a?jf("name",a,o):Object(b["filter"])(o,(function(t){return!!t})),Rf(n,t)):[]},e.prototype.findComponents=function(t){var e=t.query,n=t.mainType,r=a(e),i=r?this.queryComponents(r):Object(b["filter"])(this._componentsMap.get(n),(function(t){return!!t}));return o(Rf(i,t));function a(t){var e=n+"Index",r=n+"Id",i=n+"Name";return!t||null==t[e]&&null==t[r]&&null==t[i]?null:{mainType:n,index:t[e],id:t[r],name:t[i]}}function o(e){return t.filter?Object(b["filter"])(e,t.filter):e}},e.prototype.eachComponent=function(t,e,n){var r=this._componentsMap;if(Object(b["isFunction"])(t)){var i=e,a=t;r.each((function(t,e){for(var n=0;t&&n<t.length;n++){var r=t[n];r&&a.call(i,e,r,r.componentIndex)}}))}else for(var o=Object(b["isString"])(t)?r.get(t):Object(b["isObject"])(t)?this.findComponents(t):null,s=0;o&&s<o.length;s++){var l=o[s];l&&e.call(n,l,l.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=Ga(t,null);return Object(b["filter"])(this._componentsMap.get("series"),(function(t){return!!t&&null!=e&&t.name===e}))},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Object(b["filter"])(this._componentsMap.get("series"),(function(e){return!!e&&e.subType===t}))},e.prototype.getSeries=function(){return Object(b["filter"])(this._componentsMap.get("series"),(function(t){return!!t}))},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){bf(this),Object(b["each"])(this._seriesIndices,(function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)}),this)},e.prototype.eachRawSeries=function(t,e){Object(b["each"])(this._componentsMap.get("series"),(function(n){n&&t.call(e,n,n.componentIndex)}))},e.prototype.eachSeriesByType=function(t,e,n){bf(this),Object(b["each"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];i.subType===t&&e.call(n,i,r)}),this)},e.prototype.eachRawSeriesByType=function(t,e,n){return Object(b["each"])(this.getSeriesByType(t),e,n)},e.prototype.isSeriesFiltered=function(t){return bf(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){bf(this);var n=[];Object(b["each"])(this._seriesIndices,(function(r){var i=this._componentsMap.get("series")[r];t.call(e,i,r)&&n.push(r)}),this),this._seriesIndices=n,this._seriesIndicesMap=Object(b["createHashMap"])(n)},e.prototype.restoreData=function(t){xf(this);var e=this._componentsMap,n=[];e.each((function(t,e){Hp.hasClass(e)&&n.push(e)})),Hp.topologicalTravel(n,Hp.getAllClassMainTypes(),(function(n){Object(b["each"])(e.get(n),(function(e){!e||"series"===n&&Lf(e,t)||e.restoreData()}))}))},e.internalField=function(){xf=function(t){var e=t._seriesIndices=[];Object(b["each"])(t._componentsMap.get("series"),(function(t){t&&e.push(t.componentIndex)})),t._seriesIndicesMap=Object(b["createHashMap"])(e)},bf=function(t){0},_f=function(t,e){t.option={},t.option[Af]=Df,t._componentsMap=Object(b["createHashMap"])({series:[]}),t._componentsCount=Object(b["createHashMap"])();var n=e.aria;Object(b["isObject"])(n)&&null==n.enabled&&(n.enabled=!0),Pf(e,t._theme.option),Object(b["merge"])(e,Jp,!1),t._mergeOption(e,null)}}(),e}(Vh);function Lf(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return null!=n&&t.componentIndex!==n||null!=r&&t.id!==r||null!=i&&t.name!==i}}function Pf(t,e){var n=t.color&&!t.colorLayer;Object(b["each"])(e,(function(e,r){"colorLayer"===r&&n||"color"===r&&t.color||Hp.hasClass(r)||("object"===typeof e?t[r]=t[r]?Object(b["merge"])(t[r],e,!1):Object(b["clone"])(e):null==t[r]&&(t[r]=e))}))}function jf(t,e,n){if(Object(b["isArray"])(e)){var r=Object(b["createHashMap"])();return Object(b["each"])(e,(function(t){if(null!=t){var e=Ga(t,null);null!=e&&r.set(t,!0)}})),Object(b["filter"])(n,(function(e){return e&&r.get(e[t])}))}var i=Ga(e,null);return Object(b["filter"])(n,(function(e){return e&&null!=i&&e[t]===i}))}function Rf(t,e){return e.hasOwnProperty("subType")?Object(b["filter"])(t,(function(t){return t&&t.subType===e.subType})):t}function Nf(t){var e=Object(b["createHashMap"])();return t&&Object(b["each"])(Aa(t.replaceMerge),(function(t){e.set(t,!0)})),{replaceMergeMainTypeMap:e}}Object(b["mixin"])(kf,ff);var Ef=kf,zf=/^(min|max)?(.+)$/,Bf=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(Object(b["each"])(Aa(t.series),(function(t){t&&t.data&&Object(b["isTypedArray"])(t.data)&&Object(b["setAsPrimitive"])(t.data)})),Object(b["each"])(Aa(t.dataset),(function(t){t&&t.source&&Object(b["isTypedArray"])(t.source)&&Object(b["setAsPrimitive"])(t.source)}))),t=Object(b["clone"])(t);var r=this._optionBackup,i=Vf(t,e,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],Object(b["clone"])(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var r=t.getComponent("timeline");r&&(e=Object(b["clone"])(n[r.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),r=this._mediaList,i=this._mediaDefault,a=[],o=[];if(!r.length&&!i)return o;for(var s=0,l=r.length;s<l;s++)Ff(r[s].query,e,n)&&a.push(s);return!a.length&&i&&(a=[-1]),a.length&&!Gf(a,this._currentMediaIndices)&&(o=Object(b["map"])(a,(function(t){return Object(b["clone"])(-1===t?i.option:r[t].option)}))),this._currentMediaIndices=a,o},t}();function Vf(t,e,n){var r,i,a=[],o=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||o&&o.timeline);function d(t){Object(b["each"])(e,(function(e){e(t,n)}))}return o?(i=o,i.timeline||(i.timeline=s)):((h||c)&&(t.options=t.media=null),i=t),c&&Object(b["isArray"])(u)&&Object(b["each"])(u,(function(t){t&&t.option&&(t.query?a.push(t):r||(r=t))})),d(i),Object(b["each"])(l,(function(t){return d(t)})),Object(b["each"])(a,(function(t){return d(t.option)})),{baseOption:i,timelineOptions:l||[],mediaDefault:r,mediaList:a}}function Ff(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return Object(b["each"])(t,(function(t,e){var n=e.match(zf);if(n&&n[1]&&n[2]){var a=n[1],o=n[2].toLowerCase();Hf(r[o],t,a)||(i=!1)}})),i}function Hf(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function Gf(t,e){return t.join(",")===e.join(",")}var Wf=Bf,Yf=b["each"],Uf=b["isObject"],Xf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Zf(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=Xf.length;n<r;n++){var i=Xf[n],a=e.normal,o=e.emphasis;a&&a[i]&&(t[i]=t[i]||{},t[i].normal?b["merge"](t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(t[i]=t[i]||{},t[i].emphasis?b["merge"](t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function qf(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(n?(t[e].normal=t[e].emphasis=null,b["defaults"](t[e],r)):t[e]=r),i&&(t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function $f(t){qf(t,"itemStyle"),qf(t,"lineStyle"),qf(t,"areaStyle"),qf(t,"label"),qf(t,"labelLine"),qf(t,"upperLabel"),qf(t,"edgeLabel")}function Kf(t,e){var n=Uf(t)&&t[e],r=Uf(n)&&n.textStyle;if(r){0;for(var i=0,a=ka.length;i<a;i++){var o=ka[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function Jf(t){t&&($f(t),Kf(t,"label"),t.emphasis&&Kf(t.emphasis,"label"))}function Qf(t){if(Uf(t)){Zf(t),$f(t),Kf(t,"label"),Kf(t,"upperLabel"),Kf(t,"edgeLabel"),t.emphasis&&(Kf(t.emphasis,"label"),Kf(t.emphasis,"upperLabel"),Kf(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(Zf(e),Jf(e));var n=t.markLine;n&&(Zf(n),Jf(n));var r=t.markArea;r&&Jf(r);var i=t.data;if("graph"===t.type){i=i||t.nodes;var a=t.links||t.edges;if(a&&!b["isTypedArray"](a))for(var o=0;o<a.length;o++)Jf(a[o]);b["each"](t.categories,(function(t){$f(t)}))}if(i&&!b["isTypedArray"](i))for(o=0;o<i.length;o++)Jf(i[o]);if(e=t.markPoint,e&&e.data){var s=e.data;for(o=0;o<s.length;o++)Jf(s[o])}if(n=t.markLine,n&&n.data){var l=n.data;for(o=0;o<l.length;o++)b["isArray"](l[o])?(Jf(l[o][0]),Jf(l[o][1])):Jf(l[o])}"gauge"===t.type?(Kf(t,"axisLabel"),Kf(t,"title"),Kf(t,"detail")):"treemap"===t.type?(qf(t.breadcrumb,"itemStyle"),b["each"](t.levels,(function(t){$f(t)}))):"tree"===t.type&&$f(t.leaves)}}function tg(t){return b["isArray"](t)?t:t?[t]:[]}function eg(t){return(b["isArray"](t)?t[0]:t)||{}}function ng(t,e){Yf(tg(t.series),(function(t){Uf(t)&&Qf(t)}));var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Yf(n,(function(e){Yf(tg(t[e]),(function(t){t&&(Kf(t,"axisLabel"),Kf(t.axisPointer,"label"))}))})),Yf(tg(t.parallel),(function(t){var e=t&&t.parallelAxisDefault;Kf(e,"axisLabel"),Kf(e&&e.axisPointer,"label")})),Yf(tg(t.calendar),(function(t){qf(t,"itemStyle"),Kf(t,"dayLabel"),Kf(t,"monthLabel"),Kf(t,"yearLabel")})),Yf(tg(t.radar),(function(t){Kf(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)})),Yf(tg(t.geo),(function(t){Uf(t)&&(Jf(t),Yf(tg(t.regions),(function(t){Jf(t)})))})),Yf(tg(t.timeline),(function(t){Jf(t),qf(t,"label"),qf(t,"itemStyle"),qf(t,"controlStyle",!0);var e=t.data;b["isArray"](e)&&b["each"](e,(function(t){b["isObject"](t)&&(qf(t,"label"),qf(t,"itemStyle"))}))})),Yf(tg(t.toolbox),(function(t){qf(t,"iconStyle"),Yf(t.feature,(function(t){qf(t,"iconStyle")}))})),Kf(eg(t.axisPointer),"label"),Kf(eg(t.tooltip).axisPointer,"label")}function rg(t,e){for(var n=e.split(","),r=t,i=0;i<n.length;i++)if(r=r&&r[n[i]],null==r)break;return r}function ig(t,e,n,r){for(var i,a=e.split(","),o=t,s=0;s<a.length-1;s++)i=a[s],null==o[i]&&(o[i]={}),o=o[i];(r||null==o[a[s]])&&(o[a[s]]=n)}function ag(t){t&&Object(b["each"])(og,(function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])}))}var og=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],sg=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],lg=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ug(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<lg.length;n++){var r=lg[n][1],i=lg[n][0];null!=e[r]&&(e[i]=e[r])}}function cg(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function hg(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function dg(t){t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency"))}function pg(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&pg(t[n].children,e)}function fg(t,e){ng(t,e),t.series=Aa(t.series),Object(b["each"])(t.series,(function(t){if(Object(b["isObject"])(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),cg(t.label);var n=t.data;if(n&&!Object(b["isTypedArray"])(n))for(var r=0;r<n.length;r++)cg(n[r]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===e){var i=rg(t,"pointer.color");null!=i&&ig(t,"itemStyle.color",i)}else if("bar"===e){ug(t),ug(t.backgroundStyle),ug(t.emphasis);n=t.data;if(n&&!Object(b["isTypedArray"])(n))for(r=0;r<n.length;r++)"object"===typeof n[r]&&(ug(n[r]),ug(n[r]&&n[r].emphasis))}else if("sunburst"===e){var a=t.highlightPolicy;a&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),hg(t),pg(t.data,hg)}else"graph"===e||"sankey"===e?dg(t):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&Object(b["defaults"])(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),ag(t)}})),t.dataRange&&(t.visualMap=t.dataRange),Object(b["each"])(sg,(function(e){var n=t[e];n&&(Object(b["isArray"])(n)||(n=[n]),Object(b["each"])(n,(function(t){ag(t)})))}))}var gg=Do(yg);function yg(t){var e=Object(b["createHashMap"])();t.eachSeries((function(t){var n=t.get("stack");if(n){var r=e.get(n)||e.set(n,[]),i=t.getData(),a={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;r.push(a)}})),e.each((function(t){if(0!==t.length){var e=t[0].seriesModel,n=e.get("stackOrder")||"seriesAsc";"seriesDesc"===n&&t.reverse(),Object(b["each"])(t,(function(e,n){e.data.setCalculationInfo("stackedOnSeries",n>0?t[n-1].seriesModel:null)})),vg(t)}}))}function vg(t){Object(b["each"])(t,(function(e,n){var r=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,(function(a,u,c){var h,d,p=o.get(e.stackedDimension,c);if(isNaN(p))return i;s?d=o.getRawIndex(c):h=o.get(e.stackedByDimension,c);for(var f=NaN,g=n-1;g>=0;g--){var y=t[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,h)),d>=0){var v=y.data.getByRawIndex(y.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=la(p,v),f=v;break}}}return r[0]=p,r[1]=f,r}))}))}var mg,xg,bg,_g,wg,Sg,Mg=function(){function t(t){this.data=t.data||(t.sourceFormat===Du?{}:[]),this.sourceFormat=t.sourceFormat||Lu,this.seriesLayoutBy=t.seriesLayoutBy||Pu,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var r=e[n];null==r.type&&sf(this,n)===Qp.Must&&(r.type="ordinal")}}return t}();function Og(t){return t instanceof Mg}function Ig(t,e,n){n=n||Ag(t);var r=e.seriesLayoutBy,i=Dg(t,n,r,e.sourceHeader,e.dimensions),a=new Mg({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Object(b["clone"])(e)});return a}function Tg(t){return new Mg({data:t,sourceFormat:Object(b["isTypedArray"])(t)?ku:Tu})}function Cg(t){return new Mg({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Object(b["clone"])(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function Ag(t){var e=Lu;if(Object(b["isTypedArray"])(t))e=ku;else if(Object(b["isArray"])(t)){0===t.length&&(e=Cu);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(null!=i){if(Object(b["isArray"])(i)||Object(b["isTypedArray"])(i)){e=Cu;break}if(Object(b["isObject"])(i)){e=Au;break}}}}else if(Object(b["isObject"])(t))for(var a in t)if(Object(b["hasOwn"])(t,a)&&Object(b["isArrayLike"])(t[a])){e=Du;break}return e}function Dg(t,e,n,r,i){var a,o;if(!t)return{dimensionsDefine:Lg(i),startIndex:o,dimensionsDetectedCount:a};if(e===Cu){var s=t;"auto"===r||null==r?Pg((function(t){null!=t&&"-"!==t&&(Object(b["isString"])(t)?null==o&&(o=1):o=0)}),n,s,10):o=Object(b["isNumber"])(r)?r:r?1:0,i||1!==o||(i=[],Pg((function(t,e){i[e]=null!=t?t+"":""}),n,s,1/0)),a=i?i.length:n===ju?s.length:s[0]?s[0].length:null}else if(e===Au)i||(i=kg(t));else if(e===Du)i||(i=[],Object(b["each"])(t,(function(t,e){i.push(e)})));else if(e===Tu){var l=La(t[0]);a=Object(b["isArray"])(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Lg(i),dimensionsDetectedCount:a}}function kg(t){var e,n=0;while(n<t.length&&!(e=t[n++]));if(e)return Object(b["keys"])(e)}function Lg(t){if(t){var e=Object(b["createHashMap"])();return Object(b["map"])(t,(function(t,n){t=Object(b["isObject"])(t)?t:{name:t};var r={name:t.name,displayName:t.displayName,type:t.type};if(null==r.name)return r;r.name+="",null==r.displayName&&(r.displayName=r.name);var i=e.get(r.name);return i?r.name+="-"+i.count++:e.set(r.name,{count:1}),r}))}}function Pg(t,e,n,r){if(e===ju)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else{var a=n[0]||[];for(i=0;i<a.length&&i<r;i++)t(a[i],i)}}function jg(t){var e=t.sourceFormat;return e===Au||e===Du}var Rg=function(){function t(t,e){var n=Og(t)?t:Tg(t);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy;i===ku&&(this._offset=0,this._dimSize=e,this._data=r),Sg(this,r,n)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(t,e){},t.prototype.appendData=function(t){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var t;Sg=function(t,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,l=a.startIndex,u=a.dimensionsDefine,c=wg[Ug(o,s)];if(Object(b["extend"])(t,c),o===ku)t.getItem=e,t.count=r,t.fillStorage=n;else{var h=Bg(o,s);t.getItem=Object(b["bind"])(h,null,i,l,u);var d=Hg(o,s);t.count=Object(b["bind"])(d,null,i,l,u)}};var e=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,r=this._dimSize,i=r*t,a=0;a<r;a++)e[a]=n[i+a];return e},n=function(t,e,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],c=e-t,h=n[o],d=0;d<c;d++){var p=i[d*a+o];h[t+d]=p,p<l&&(l=p),p>u&&(u=p)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}t={},t[Cu+"_"+Pu]={pure:!0,appendData:i},t[Cu+"_"+ju]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Au]={pure:!0,appendData:i},t[Du]={pure:!0,appendData:function(t){var e=this._data;Object(b["each"])(t,(function(t,n){for(var r=e[n]||(e[n]=[]),i=0;i<(t||[]).length;i++)r.push(t[i])}))}},t[Tu]={appendData:i},t[ku]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},wg=t}(),t}(),Ng=function(t){Object(b["isArray"])(t)||If("series.data or dataset.source must be an array.")},Eg=(mg={},mg[Cu+"_"+Pu]=Ng,mg[Cu+"_"+ju]=Ng,mg[Au]=Ng,mg[Du]=function(t,e){for(var n=0;n<e.length;n++){var r=e[n].name;null==r&&If("dimension name must not be null/undefined.")}},mg[Tu]=Ng,function(t,e,n,r){return t[r]}),zg=(xg={},xg[Cu+"_"+Pu]=function(t,e,n,r){return t[r+e]},xg[Cu+"_"+ju]=function(t,e,n,r,i){r+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[r]:null}return a},xg[Au]=Eg,xg[Du]=function(t,e,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,l=null!=s?t[s]:null;a[o]=l?l[r]:null}return a},xg[Tu]=Eg,xg);function Bg(t,e){var n=zg[Ug(t,e)];return n}var Vg=function(t,e,n){return t.length},Fg=(bg={},bg[Cu+"_"+Pu]=function(t,e,n){return Math.max(0,t.length-e)},bg[Cu+"_"+ju]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},bg[Au]=Vg,bg[Du]=function(t,e,n){var r=n[0].name,i=null!=r?t[r]:null;return i?i.length:0},bg[Tu]=Vg,bg);function Hg(t,e){var n=Fg[Ug(t,e)];return n}var Gg=function(t,e,n){return t[e]},Wg=(_g={},_g[Cu]=Gg,_g[Au]=function(t,e,n){return t[n]},_g[Du]=Gg,_g[Tu]=function(t,e,n){var r=La(t);return r instanceof Array?r[e]:r},_g[ku]=Gg,_g);function Yg(t){var e=Wg[t];return e}function Ug(t,e){return t===Cu?t+"_"+e:t}function Xg(t,e,n){if(t){var r=t.getRawDataItem(e);if(null!=r){var i=t.getStore(),a=i.getSource().sourceFormat;if(null!=n){var o=t.getDimensionIndex(n),s=i.getDimensionProperty(o);return Yg(a)(r,o,s)}var l=r;return a===Tu&&(l=La(r)),l}}}var Zg=/\{@(.+?)\}/g,qg=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),a=n.getName(t),o=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:a,dataIndex:i,data:o,dataType:e,value:r,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,r,i,a){e=e||"normal";var o=this.getData(n),s=this.getDataParams(t,n);if(a&&(s.value=a.interpolatedValue),null!=r&&b["isArray"](s.value)&&(s.value=s.value[r]),!i){var l=o.getItemModel(t);i=l.get("normal"===e?["label","formatter"]:[e,"label","formatter"])}if(b["isFunction"](i))return s.status=e,s.dimensionIndex=r,i(s);if(b["isString"](i)){var u=Jd(i,s);return u.replace(Zg,(function(e,n){var r=n.length,i=n;"["===i.charAt(0)&&"]"===i.charAt(r-1)&&(i=+i.slice(1,r-1));var s=Xg(o,t,i);if(a&&b["isArray"](a.interpolatedValue)){var l=o.getDimensionIndex(i);l>=0&&(s=a.interpolatedValue[l])}return null!=s?s+"":""}))}},t.prototype.getRawValue=function(t,e){return Xg(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function $g(t){var e,n;return b["isObject"](t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Kg(t){return new Jg(t)}var Jg=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var a,o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}o===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=this._doReset(r)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!r&&(a||d<p)){var f=this._progress;if(Object(b["isArray"])(f))for(var g=0;g<f.length;g++)this._doProgress(f[g],d,p,l,u);else this._doProgress(f,d,p,l,u)}this._dueIndex=p;var y=null!=this._settedOutputEnd?this._settedOutputEnd:p;0,this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,n,r,i){Qg.reset(e,n,r,i),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Qg.next},this.context)},t.prototype._doReset=function(t){var e,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),Object(b["isArray"])(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),Qg=function(){var t,e,n,r,i,a={reset:function(l,u,c,h){e=l,t=u,n=c,r=h,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return e<t?e++:null}function s(){var a=e%i*n+Math.ceil(e/i),o=e>=t?null:a<r?a:e;return e++,o}}();function ty(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(b["isNumber"])(t)||null==t||"-"===t||(t=+pa(t)),null==t||""===t?NaN:Number(t))}var ey=Object(b["createHashMap"])({number:function(t){return parseFloat(t)},time:function(t){return+pa(t)},trim:function(t){return Object(b["isString"])(t)?Object(b["trim"])(t):t}});function ny(t){return ey.get(t)}var ry={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},iy=function(){function t(t,e){if(!Object(b["isNumber"])(e)){var n="";0,Cf(n)}this._opFn=ry[t],this._rvalFloat=ba(e)}return t.prototype.evaluate=function(t){return Object(b["isNumber"])(t)?this._opFn(t,this._rvalFloat):this._opFn(ba(t),this._rvalFloat)},t}(),ay=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(b["isNumber"])(t)?t:ba(t),r=Object(b["isNumber"])(e)?e:ba(e),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=Object(b["isString"])(t),s=Object(b["isString"])(e);o&&(n=s?t:0),s&&(r=o?e:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},t}(),oy=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=ba(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=ba(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function sy(t,e){return"eq"===t||"ne"===t?new oy("eq"===t,e):Object(b["hasOwn"])(ry,t)?new iy(t,e):null}function ly(t){var e="",n=-1/0,r=-1/0,i=1/0,a=1/0;return t&&(null!=t.g&&(e+="G"+t.g,n=t.g),null!=t.ge&&(e+="GE"+t.ge,r=t.ge),null!=t.l&&(e+="L"+t.l,i=t.l),null!=t.le&&(e+="LE"+t.le,a=t.le)),{key:e,g:n,ge:r,l:i,le:a}}function uy(t,e){return e>t.g&&e>=t.ge&&e<t.l&&e<=t.le}var cy=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return ty(t,e)},t}();function hy(t,e){var n=new cy,r=t.data,i=n.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==Pu&&Cf(o);var s=[],l={},u=t.dimensionsDefine;if(u)Object(b["each"])(u,(function(t,e){var n=t.name,r={index:e,name:n,displayName:t.displayName};if(s.push(r),null!=n){var i="";Object(b["hasOwn"])(l,n)&&Cf(i),l[n]=r}}));else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var h=Bg(i,Pu);e.__isBuiltIn&&(n.getRawDataItem=function(t){return h(r,a,s,t)},n.getRawData=Object(b["bind"])(dy,null,t)),n.cloneRawData=Object(b["bind"])(py,null,t);var d=Hg(i,Pu);n.count=Object(b["bind"])(d,null,r,a,s);var p=Yg(i);n.retrieveValue=function(t,e){var n=h(r,a,s,t);return f(n,e)};var f=n.retrieveValueFromItem=function(t,e){if(null!=t){var n=s[e];return n?p(t,e,n.name):void 0}};return n.getDimensionInfo=Object(b["bind"])(fy,null,s,l),n.cloneAllDimensionInfo=Object(b["bind"])(gy,null,s),n}function dy(t){var e=t.sourceFormat;if(!by(e)){var n="";0,Cf(n)}return t.data}function py(t){var e=t.sourceFormat,n=t.data;if(!by(e)){var r="";0,Cf(r)}if(e===Cu){for(var i=[],a=0,o=n.length;a<o;a++)i.push(n[a].slice());return i}if(e===Au){for(i=[],a=0,o=n.length;a<o;a++)i.push(Object(b["extend"])({},n[a]));return i}}function fy(t,e,n){if(null!=n)return Object(b["isNumber"])(n)||!isNaN(n)&&!Object(b["hasOwn"])(e,n)?t[n]:Object(b["hasOwn"])(e,n)?e[n]:void 0}function gy(t){return Object(b["clone"])(t)}var yy=Object(b["createHashMap"])();function vy(t){t=Object(b["clone"])(t);var e=t.type,n="";e||Cf(n);var r=e.split(":");2!==r.length&&Cf(n);var i=!1;"echarts"===r[0]&&(e=r[1],i=!0),t.__isBuiltIn=i,yy.set(e,t)}function my(t,e,n){var r=Aa(t),i=r.length,a="";i||Cf(a);for(var o=0,s=i;o<s;o++){var l=r[o];e=xy(l,e,n,1===i?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function xy(t,e,n,r){var i="";e.length||Cf(i),Object(b["isObject"])(t)||Cf(i);var a=t.type,o=yy.get(a);o||Cf(i);var s=Object(b["map"])(e,(function(t){return hy(t,o)})),l=Aa(o.transform({upstream:s[0],upstreamList:s,config:Object(b["clone"])(t.config)}));return Object(b["map"])(l,(function(t,n){var r="";Object(b["isObject"])(t)||Cf(r),t.data||Cf(r);var i,a=Ag(t.data);by(a)||Cf(r);var o=e[0];if(o&&0===n&&!t.dimensions){var s=o.startIndex;s&&(t.data=o.data.slice(0,s).concat(t.data)),i={seriesLayoutBy:Pu,sourceHeader:s,dimensions:o.metaRawOption.dimensions}}else i={seriesLayoutBy:Pu,sourceHeader:0,dimensions:t.dimensions};return Ig(t.data,i,null)}))}function by(t){return t===Cu||t===Au}var _y,wy=typeof Uint32Array===Mu?Array:Uint32Array,Sy=typeof Uint16Array===Mu?Array:Uint16Array,My=typeof Int32Array===Mu?Array:Int32Array,Oy=typeof Float64Array===Mu?Array:Float64Array,Iy={float:Oy,int:My,ordinal:Array,number:Array,time:Oy};function Ty(t){return t>65535?wy:Sy}function Cy(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function Ay(t,e,n,r,i){var a=Iy[n||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==r){for(var l=new a(r),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(r)}var Dy=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Object(b["createHashMap"])()}return t.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),i=this.defaultDimValueGetter=_y[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];jg(r);this._dimensions=Object(b["map"])(e,(function(t){return{type:t.type,property:t.property}})),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(t);if(null!=i){if(r[i].type===e)return i}else i=r.length;return r[i]={type:e},n.set(t,i),this._chunks[i]=new Iy[e||"float"](this._rawCount),this._rawExtent[i]=po(),i},t.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],r=this._dimensions[t],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;0===a&&(i[t]=po());for(var s=i[t],l=a;l<o;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}r.ordinalMeta=e,r.ordinalOffset=o,r.type="ordinal"},t.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},t.prototype.appendValues=function(t,e){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(t.length,e||0),l=0;l<i;l++){var u=r[l];Ay(n,l,u.type,s,!0)}for(var c=[],h=o;h<s;h++)for(var d=h-o,p=0;p<i;p++){u=r[p];var f=_y.arrayRows.call(this,t[d]||c,u.property,d,p);n[p][h]=f;var g=a[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:o,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,l=Object(b["map"])(a,(function(t){return t.property})),u=0;u<o;u++){var c=a[u];s[u]||(s[u]=po()),Ay(i,u,c.type,e,n)}if(r.fillStorage)r.fillStorage(t,e,i,s);else for(var h=[],d=t;d<e;d++){h=r.getItem(d,h);for(var p=0;p<o;p++){var f=i[p],g=this._dimValueGetter(h,l[p],d,p);f[d]=g;var y=s[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},t.prototype.getValues=function(t,e){var n=[],r=[];if(null==e){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=t;i=0;for(var a=r.length;i<a;i++)n.push(this.get(r[i],e));return n},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},t.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var r=0,i=this.count();r<i;r++){var a=this.get(t,r);isNaN(a)||(n+=a)}return n},t.prototype.getMedian=function(t){var e=[];this.each([t],(function(t){isNaN(t)||e.push(t)})),ea(e);var n=this.count();return 0===n?0:n%2===1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2},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 r=0,i=this._count-1;while(r<=i){var a=(r+i)/2|0;if(e[a]<t)r=a+1;else{if(!(e[a]>t))return a;i=a-1}}return-1},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i<r;i++)t[i]=e[i]}else t=new n(e.buffer,0,r)}else{n=Ty(this._rawCount);t=new n(this.count());for(i=0;i<t.length;i++)t[i]=i}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=Ty(n._rawCount),a=new i(r),o=[],s=t.length,l=0,u=t[0],c=n._chunks,h=0;h<r;h++){var d=void 0,p=n.getRawIndex(h);if(0===s)d=e(h);else if(1===s){var f=c[u][p];d=e(f,h)}else{for(var g=0;g<s;g++)o[g]=c[t[g]][p];o[g]=h,d=e.apply(null,o)}d&&(a[l++]=p)}return l<r&&(n._indices=a),n._count=l,n._extent=[],n._updateGetRawIdx(),n},t.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var r=Object(b["keys"])(t),i=r.length;if(!i)return this;var a=e.count(),o=Ty(e._rawCount),s=new o(a),l=0,u=r[0],c=t[u][0],h=t[u][1],d=e._chunks,p=!1;if(!e._indices){var f=0;if(1===i){for(var g=d[r[0]],y=0;y<n;y++){var v=g[y];(v>=c&&v<=h||isNaN(v))&&(s[l++]=f),f++}p=!0}else if(2===i){g=d[r[0]];var m=d[r[1]],x=t[r[1]][0],_=t[r[1]][1];for(y=0;y<n;y++){v=g[y];var w=m[y];(v>=c&&v<=h||isNaN(v))&&(w>=x&&w<=_||isNaN(w))&&(s[l++]=f),f++}p=!0}}if(!p)if(1===i)for(y=0;y<a;y++){var S=e.getRawIndex(y);v=d[r[0]][S];(v>=c&&v<=h||isNaN(v))&&(s[l++]=S)}else for(y=0;y<a;y++){for(var M=!0,O=(S=e.getRawIndex(y),0);O<i;O++){var I=r[O];v=d[I][S];(v<t[I][0]||v>t[I][1])&&(M=!1)}M&&(s[l++]=e.getRawIndex(y))}return l<a&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,n){for(var r=t._chunks,i=[],a=e.length,o=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=po();for(var c=0;c<o;c++){for(var h=t.getRawIndex(c),d=0;d<a;d++)s[d]=r[e[d]][h];s[a]=c;var p=n&&n.apply(null,s);if(null!=p){"object"!==typeof p&&(i[0]=p,p=i);for(u=0;u<p.length;u++){var f=e[u],g=p[u],y=l[f],v=r[f];v&&(v[h]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,a=this.clone([t],!0),o=a._chunks,s=o[t],l=this.count(),u=0,c=Math.floor(1/e),h=this.getRawIndex(0),d=new(Ty(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));d[u++]=h;for(var p=1;p<l-1;p+=c){for(var f=Math.min(p+c,l-1),g=Math.min(p+2*c,l),y=(g+f)/2,v=0,m=f;m<g;m++){var x=this.getRawIndex(m),b=s[x];isNaN(b)||(v+=b)}v/=g-f;var _=p,w=Math.min(p+c,l),S=p-1,M=s[h];n=-1,i=_;var O=-1,I=0;for(m=_;m<w;m++){x=this.getRawIndex(m),b=s[x];isNaN(b)?(I++,O<0&&(O=x)):(r=Math.abs((S-y)*(b-M)-(S-m)*(v-M)),r>n&&(n=r,i=x))}I>0&&I<w-_&&(d[u++]=Math.min(O,i),i=Math.max(O,i)),d[u++]=i,h=i}return d[u++]=this.getRawIndex(l-1),a._count=u,a._indices=d,a.getRawIndex=this._getRawIdx,a},t.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),r=n._chunks,i=Math.floor(1/e),a=r[t],o=this.count(),s=new(Ty(this._rawCount))(2*Math.ceil(o/i)),l=0,u=0;u<o;u+=i){var c=u,h=a[this.getRawIndex(c)],d=u,p=a[this.getRawIndex(d)],f=i;u+i>o&&(f=o-u);for(var g=0;g<f;g++){var y=this.getRawIndex(u+g),v=a[y];v<h&&(h=v,c=u+g),v>p&&(p=v,d=u+g)}var m=this.getRawIndex(c),x=this.getRawIndex(d);c<d?(s[l++]=m,s[l++]=x):(s[l++]=x,s[l++]=m)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},t.prototype.downSample=function(t,e,n,r){for(var i=this.clone([t],!0),a=i._chunks,o=[],s=Math.floor(1/e),l=a[t],u=this.count(),c=i._rawExtent[t]=po(),h=new(Ty(this._rawCount))(Math.ceil(u/s)),d=0,p=0;p<u;p+=s){s>u-p&&(s=u-p,o.length=s);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);o[f]=l[g]}var y=n(o),v=this.getRawIndex(Math.min(p+r(o,y)||0,u-1));l[v]=y,y<c[0]&&(c[0]=y),y>c[1]&&(c[1]=y),h[d++]=v}return i._count=d,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:e(i);break;case 1:e(r[t[0]][o],i);break;case 2:e(r[t[0]][o],r[t[1]][o],i);break;default:for(var s=0,l=[];s<n;s++)l[s]=r[t[s]][o];l[s]=i,e.apply(null,l)}}},t.prototype.getDataExtent=function(t,e){var n=this._chunks[t],r=po();if(!n)return r;var i=this.count(),a=!this._indices&&!e;if(a)return this._rawExtent[t].slice();var o=this._extent,s=o[t]||(o[t]={}),l=ly(e),u=l.key,c=s[u];if(c)return c.slice();for(var h=r[0],d=r[1],p=0;p<i;p++){var f=this.getRawIndex(p),g=n[f];e&&!uy(l,g)||(g<h&&(h=g),g>d&&(d=g))}return s[u]=[h,d]},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][e]);return n},t.prototype.clone=function(e,n){var r=new t,i=this._chunks,a=e&&Object(b["reduce"])(e,(function(t,e){return t[e]=!0,t}),{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Cy(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Object(b["clone"])(this._extent),t._rawExtent=Object(b["clone"])(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var r=0;r<n;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return ty(t[r],this._dimensions[r])}_y={arrayRows:t,objectRows:function(t,e,n,r){return ty(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return ty(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}(),ky=Dy,Ly=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(jy(n)){var a=n,o=void 0,s=void 0,l=void 0;if(i){var u=r[0];u.prepareSource(),l=u.getSource(),o=l.data,s=l.sourceFormat,e=[u._getVersionSign()]}else o=a.get("data",!0),s=Object(b["isTypedArray"])(o)?ku:Tu,e=[];var c=this._getSourceMetaRawOption()||{},h=l&&l.metaRawOption||{},d=Object(b["retrieve2"])(c.seriesLayoutBy,h.seriesLayoutBy)||null,p=Object(b["retrieve2"])(c.sourceHeader,h.sourceHeader),f=Object(b["retrieve2"])(c.dimensions,h.dimensions),g=d!==h.seriesLayoutBy||!!p!==!!h.sourceHeader||f;t=g?[Ig(o,{seriesLayoutBy:d,sourceHeader:p,dimensions:f},s)]:[]}else{var y=n;if(i){var v=this._applyTransform(r);t=v.sourceList,e=v.upstreamSignList}else{var m=y.get("source",!0);t=[Ig(m,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var a="";1!==t.length&&Ry(a)}var o=[],s=[];return Object(b["each"])(t,(function(t){t.prepareSource();var e=t.getSource(i||0),n="";null==i||e||Ry(n),o.push(e),s.push(t._getVersionSign())})),r?e=my(r,o,{datasetIndex:n.componentIndex}):null!=i&&(e=[Cg(o[0])]),{sourceList:e,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,n){var r=0,i=this._storeList,a=i[r];a||(a=i[r]={});var o=a[n];if(!o){var s=this._getUpstreamSourceManagers()[0];jy(this._sourceHost)&&s?o=s._innerGetDataStore(t,e,n):(o=new ky,o.initData(new Rg(e,t.length),t)),a[n]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(jy(t)){var e=af(t);return e?[e.getSourceManager()]:[]}return Object(b["map"])(of(t),(function(t){return t.getSourceManager()}))},t.prototype._getSourceMetaRawOption=function(){var t,e,n,r=this._sourceHost;if(jy(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),n=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=r;t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:n}},t}();function Py(t){var e=t.option.transform;e&&Object(b["setAsPrimitive"])(t.option.transform)}function jy(t){return"series"===t.mainType}function Ry(t){throw new Error(t)}var Ny="line-height:1";function Ey(t){var e=t.lineHeight;return null==e?Ny:"line-height:"+ct(e+"")+"px"}function zy(t,e){var n=t.color||Xp.color.tertiary,r=t.fontSize||12,i=t.fontWeight||"400",a=t.color||Xp.color.secondary,o=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+ct(r+"")+"px;color:"+ct(n)+";font-weight:"+ct(i+""),valueStyle:"font-size:"+ct(o+"")+"px;color:"+ct(a)+";font-weight:"+ct(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var By=[0,10,20,30],Vy=["","\n","\n\n","\n\n\n"];function Fy(t,e){return e.type=t,e}function Hy(t){return"section"===t.type}function Gy(t){return Hy(t)?Yy:Uy}function Wy(t){if(Hy(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return Object(b["each"])(t.blocks,(function(t){var n=Wy(t);n>=e&&(e=n+ +(r&&(!n||Hy(t)&&!t.noHeader)))})),e}return 0}function Yy(t,e,n,r){var i=e.noHeader,a=Zy(Wy(e)),o=[],s=e.blocks||[];Object(b["assert"])(!s||Object(b["isArray"])(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(b["hasOwn"])(u,l)){var c=new ay(u[l],null);s.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(b["each"])(s,(function(n,i){var s=e.valueFormatter,l=Gy(n)(s?Object(b["extend"])(Object(b["extend"])({},t),{valueFormatter:s}):t,n,i>0?a.html:0,r);null!=l&&o.push(l)}));var h="richText"===t.renderMode?o.join(a.richText):qy(r,o.join(""),i?n:a.html);if(i)return h;var d=qd(e.header,"ordinal",t.useUTC),p=zy(r,t.renderMode).nameStyle,f=Ey(r);return"richText"===t.renderMode?Jy(t,d,p)+a.richText+h:qy(r,'<div style="'+p+";"+f+';">'+ct(d)+"</div>"+h,n)}function Uy(t,e,n,r){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return t=Object(b["isArray"])(t)?t:[t],Object(b["map"])(t,(function(t,e){return qd(t,Object(b["isArray"])(p)?p[e]:p,u)}))};if(!a||!o){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||Xp.color.secondary,i),d=a?"":qd(l,"ordinal",u),p=e.valueType,f=o?[]:c(e.value,e.rawDataIndex),g=!s||!a,y=!s&&a,v=zy(r,i),m=v.nameStyle,x=v.valueStyle;return"richText"===i?(s?"":h)+(a?"":Jy(t,d,m))+(o?"":Qy(t,f,g,y,x)):qy(r,(s?"":h)+(a?"":$y(d,!s,m))+(o?"":Ky(f,g,y,x)),n)}}function Xy(t,e,n,r,i,a){if(t){var o=Gy(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function Zy(t){return{html:By[t],richText:Vy[t]}}function qy(t,e,n){var r='<div style="clear:both"></div>',i="margin: "+n+"px 0 0",a=Ey(t);return'<div style="'+i+";"+a+';">'+e+r+"</div>"}function $y(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+ct(t)+"</span>"}function Ky(t,e,n,r){var i=n?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=Object(b["isArray"])(t)?t:[t],'<span style="'+a+";"+r+'">'+Object(b["map"])(t,(function(t){return ct(t)})).join("&nbsp;&nbsp;")+"</span>"}function Jy(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Qy(t,e,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(b["isArray"])(e)?e.join(" "):e,a)}function tv(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return rp(r)}function ev(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var nv=function(){function t(){this.richTextStyles={},this._nextStyleNameId=wa()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var r="richText"===n?this._generateStyleName():null,i=tp({color:e,type:t,renderMode:n,markerId:r});return Object(b["isString"])(i)?i:(this.richTextStyles[r]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(b["isArray"])(e)?Object(b["each"])(e,(function(t){return Object(b["extend"])(n,t)})):Object(b["extend"])(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}();function rv(t){var e,n,r,i,a=t.series,o=t.dataIndex,s=t.multipleSeries,l=a.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=a.getRawValue(o),d=Object(b["isArray"])(h),p=tv(a,o);if(c>1||d&&!c){var f=iv(h,a,o,u,p);e=f.inlineValues,n=f.inlineValueTypes,r=f.blocks,i=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=Xg(l,o,u[0]),n=g.type}else i=e=d?h[0]:h;var y=Wa(a),v=y&&a.name||"",m=l.getName(o),x=s?v:m;return Fy("section",{header:v,noHeader:s||!y,sortParam:i,blocks:[Fy("nameValue",{markerType:"item",markerColor:p,name:x,noName:!Object(b["trim"])(x),value:e,valueType:n,rawDataIndex:l.getRawIndex(o)})].concat(r||[])})}function iv(t,e,n,r,i){var a=e.getData(),o=Object(b["reduce"])(t,(function(t,e,n){var r=a.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(t,e){var n=a.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(o?u.push(Fy("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return r.length?Object(b["each"])(r,(function(t){c(Xg(a,n,t),t)})):Object(b["each"])(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var av=Ka();function ov(t,e){return t.getName(e)||t.getId(e)}var sv="__universalTransitionEnabled",lv=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return f(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Kg({count:hv,reset:dv}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);var r=av(this).sourceManager=new Ly(this);r.prepareSource();var i=this.getInitialData(t,n);fv(i,this),this.dataTask.context.data=i,av(this).dataBeforeProcessed=i,uv(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=Rp(this),r=n?Ep(t):{},i=this.subType;Hp.hasClass(i)&&(i+="Series"),b["merge"](t,e.getTheme().get(this.subType)),b["merge"](t,this.getDefaultOption()),Da(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Np(t,r,n)},e.prototype.mergeOption=function(t,e){t=b["merge"](this.option,t,!0),this.fillDataTextStyle(t.data);var n=Rp(this);n&&Np(this.option,t,n);var r=av(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(t,e);fv(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,av(this).dataBeforeProcessed=i,uv(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!b["isTypedArray"](t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Da(t[n],"label",e)},e.prototype.getInitialData=function(t,e){},e.prototype.appendData=function(t){var e=this.getRawData();e.appendData(t.data)},e.prototype.getData=function(t){var e=yv(this);if(e){var n=e.context.data;return null!=t&&n.getLinkedData?n.getLinkedData(t):n}return av(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var e=yv(this);if(e){var n=e.context;n.outputData=t,e!==this.dataTask&&(n.data=t)}av(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return b["createHashMap"](t)},e.prototype.getSourceManager=function(){return av(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return av(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,e,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(t);if(!a||!o)return[];var s=o.dataToCoord(n);null==r&&(r=1/0);for(var l=[],u=1/0,c=-1,h=0,d=i.getDimensionIndex(e),p=i.getStore(),f=0,g=p.count();f<g;f++){var y=p.get(d,f),v=o.dataToCoord(y),m=s-v,x=Math.abs(m);x<=r&&((x<u||x===u&&m>=0&&c<0)&&(u=x,c=m,h=0),m===c&&(l[h++]=f))}return l.length=h,l},e.prototype.formatTooltip=function(t,e,n){return rv({series:this,dataIndex:t,multipleSeries:e})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(x.node&&(!t||!t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=ff.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var a=0;a<t.length;a++){var o=t[a],s=ov(i,o);n[s]=!1,this._selectedDataIndicesMap[s]=-1}}},e.prototype.toggleSelect=function(t,e){for(var n=[],r=0;r<t.length;r++)n[0]=t[r],this.isSelected(t[r],e)?this.unselect(n,e):this.select(n,e)},e.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=b["keys"](t),n=[],r=0;r<e.length;r++){var i=t[e[r]];i>=0&&n.push(i)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[ov(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[sv])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,i=this.option,a=i.selectedMode,o=e.length;if(a&&o)if("series"===a)i.selectedMap="all";else if("multiple"===a){b["isObject"](i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l<o;l++){var u=e[l],c=ov(t,u);s[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(u)}}else if("single"===a||!0===a){var h=e[o-1];c=ov(t,h);i.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(r={},r[c]=t.getRawIndex(h),r)}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each((function(n){var r=t.getRawDataItem(n);r&&r.selected&&e.push(n)})),e.length>0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Hp.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(Hp);function uv(t){var e=t.name;Wa(t)||(t.name=cv(t)||e)}function cv(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return b["each"](n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}function hv(t){return t.model.getRawData().count()}function dv(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),pv}function pv(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function fv(t,e){b["each"](b["concatArray"](t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,b["curry"](gv,e))}))}function gv(t,e){var n=yv(t);return n&&n.setOutputEnd((e||this).count()),e}function yv(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}b["mixin"](lv,qg),b["mixin"](lv,ff),Bo(lv,Hp);var vv=lv,mv=function(){function t(){this.group=new vi,this.uid=Hh("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){},t.prototype.updateLayout=function(t,e,n,r){},t.prototype.updateVisual=function(t,e,n,r){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Eo(mv),Wo(mv);var xv=mv;function bv(){var t=Ka();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===o&&a===s)&&"reset"}}var _v=pl.CMD,wv=[[],[],[]],Sv=Math.sqrt,Mv=Math.atan2;function Ov(t,e){if(e){var n,r,i,a,o,s,l=t.data,u=t.len(),c=_v.M,h=_v.C,d=_v.L,p=_v.R,f=_v.A,g=_v.Q;for(i=0,a=0;i<u;){switch(n=l[i++],a=i,r=0,n){case c:r=1;break;case d:r=1;break;case h:r=3;break;case g:r=2;break;case f:var y=e[4],v=e[5],m=Sv(e[0]*e[0]+e[1]*e[1]),x=Sv(e[2]*e[2]+e[3]*e[3]),b=Mv(-e[1]/x,e[0]/m);l[i]*=m,l[i++]+=y,l[i]*=x,l[i++]+=v,l[i++]*=m,l[i++]*=x,l[i++]+=b,l[i++]+=b,i+=2,a=i;break;case p:s[0]=l[i++],s[1]=l[i++],G(s,s,e),l[a++]=s[0],l[a++]=s[1],s[0]+=l[i++],s[1]+=l[i++],G(s,s,e),l[a++]=s[0],l[a++]=s[1]}for(o=0;o<r;o++){var _=wv[o];_[0]=l[i++],_[1]=l[i++],G(_,_,e),l[a++]=_[0],l[a++]=_[1]}}t.increaseVersion()}}var Iv=Math.sqrt,Tv=Math.sin,Cv=Math.cos,Av=Math.PI;function Dv(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function kv(t,e){return(t[0]*e[0]+t[1]*e[1])/(Dv(t)*Dv(e))}function Lv(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(kv(t,e))}function Pv(t,e,n,r,i,a,o,s,l,u,c){var h=l*(Av/180),d=Cv(h)*(t-n)/2+Tv(h)*(e-r)/2,p=-1*Tv(h)*(t-n)/2+Cv(h)*(e-r)/2,f=d*d/(o*o)+p*p/(s*s);f>1&&(o*=Iv(f),s*=Iv(f));var g=(i===a?-1:1)*Iv((o*o*(s*s)-o*o*(p*p)-s*s*(d*d))/(o*o*(p*p)+s*s*(d*d)))||0,y=g*o*p/s,v=g*-s*d/o,m=(t+n)/2+Cv(h)*y-Tv(h)*v,x=(e+r)/2+Tv(h)*y+Cv(h)*v,b=Lv([1,0],[(d-y)/o,(p-v)/s]),_=[(d-y)/o,(p-v)/s],w=[(-1*d-y)/o,(-1*p-v)/s],S=Lv(_,w);if(kv(_,w)<=-1&&(S=Av),kv(_,w)>=1&&(S=0),S<0){var M=Math.round(S/Av*1e6)/1e6;S=2*Av+M%2*Av}c.addData(u,m,x,o,s,b,S,h,a)}var jv=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Rv=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Nv(t){var e=new pl;if(!t)return e;var n,r=0,i=0,a=r,o=i,s=pl.CMD,l=t.match(jv);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],h=c.charAt(0),d=void 0,p=c.match(Rv)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);var y=0;while(y<f){var v=void 0,m=void 0,x=void 0,b=void 0,_=void 0,w=void 0,S=void 0,M=r,O=i,I=void 0,T=void 0;switch(h){case"l":r+=p[y++],i+=p[y++],d=s.L,e.addData(d,r,i);break;case"L":r=p[y++],i=p[y++],d=s.L,e.addData(d,r,i);break;case"m":r+=p[y++],i+=p[y++],d=s.M,e.addData(d,r,i),a=r,o=i,h="l";break;case"M":r=p[y++],i=p[y++],d=s.M,e.addData(d,r,i),a=r,o=i,h="L";break;case"h":r+=p[y++],d=s.L,e.addData(d,r,i);break;case"H":r=p[y++],d=s.L,e.addData(d,r,i);break;case"v":i+=p[y++],d=s.L,e.addData(d,r,i);break;case"V":i=p[y++],d=s.L,e.addData(d,r,i);break;case"C":d=s.C,e.addData(d,p[y++],p[y++],p[y++],p[y++],p[y++],p[y++]),r=p[y-2],i=p[y-1];break;case"c":d=s.C,e.addData(d,p[y++]+r,p[y++]+i,p[y++]+r,p[y++]+i,p[y++]+r,p[y++]+i),r+=p[y-2],i+=p[y-1];break;case"S":v=r,m=i,I=e.len(),T=e.data,n===s.C&&(v+=r-T[I-4],m+=i-T[I-3]),d=s.C,M=p[y++],O=p[y++],r=p[y++],i=p[y++],e.addData(d,v,m,M,O,r,i);break;case"s":v=r,m=i,I=e.len(),T=e.data,n===s.C&&(v+=r-T[I-4],m+=i-T[I-3]),d=s.C,M=r+p[y++],O=i+p[y++],r+=p[y++],i+=p[y++],e.addData(d,v,m,M,O,r,i);break;case"Q":M=p[y++],O=p[y++],r=p[y++],i=p[y++],d=s.Q,e.addData(d,M,O,r,i);break;case"q":M=p[y++]+r,O=p[y++]+i,r+=p[y++],i+=p[y++],d=s.Q,e.addData(d,M,O,r,i);break;case"T":v=r,m=i,I=e.len(),T=e.data,n===s.Q&&(v+=r-T[I-4],m+=i-T[I-3]),r=p[y++],i=p[y++],d=s.Q,e.addData(d,v,m,r,i);break;case"t":v=r,m=i,I=e.len(),T=e.data,n===s.Q&&(v+=r-T[I-4],m+=i-T[I-3]),r+=p[y++],i+=p[y++],d=s.Q,e.addData(d,v,m,r,i);break;case"A":x=p[y++],b=p[y++],_=p[y++],w=p[y++],S=p[y++],M=r,O=i,r=p[y++],i=p[y++],d=s.A,Pv(M,O,r,i,w,S,x,b,_,d,e);break;case"a":x=p[y++],b=p[y++],_=p[y++],w=p[y++],S=p[y++],M=r,O=i,r+=p[y++],i+=p[y++],d=s.A,Pv(M,O,r,i,w,S,x,b,_,d,e);break}}"z"!==h&&"Z"!==h||(d=s.Z,e.addData(d),r=a,i=o),n=d}return e.toStatic(),e}var Ev=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.applyTransform=function(t){},e}(Bl);function zv(t){return null!=t.setData}function Bv(t,e){var n=Nv(t),r=Object(b["extend"])({},e);return r.buildPath=function(t){var e=zv(t);if(e&&t.canSave()){t.appendPath(n);var r=t.getContext();r&&t.rebuildPath(r,1)}else{r=e?t.getContext():t;r&&n.rebuildPath(r,1)}},r.applyTransform=function(t){Ov(n,t),this.dirtyShape()},r}function Vv(t,e){return new Ev(Bv(t,e))}function Fv(t,e){var n=Bv(t,e),r=function(t){function e(e){var r=t.call(this,e)||this;return r.applyTransform=n.applyTransform,r.buildPath=n.buildPath,r}return f(e,t),e}(Ev);return r}function Hv(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var a=t[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Bl(e);return o.createPathProxy(),o.buildPath=function(t){if(zv(t)){t.appendPath(n);var e=t.getContext();e&&t.rebuildPath(e,1)}},o}function Gv(t,e){e=e||{};var n=new Bl;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?Ov(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var Wv=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),Yv=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultShape=function(){return new Wv},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(Bl);Yv.prototype.type="circle";var Uv=Yv,Xv=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Zv=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultShape=function(){return new Xv},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,a=e.rx,o=e.ry,s=a*n,l=o*n;t.moveTo(r-a,i),t.bezierCurveTo(r-a,i-l,r-s,i-o,r,i-o),t.bezierCurveTo(r+s,i-o,r+a,i-l,r+a,i),t.bezierCurveTo(r+a,i+l,r+s,i+o,r,i+o),t.bezierCurveTo(r-s,i+o,r-a,i+l,r-a,i),t.closePath()},e}(Bl);Zv.prototype.type="ellipse";var qv=Zv,$v=Math.PI,Kv=2*$v,Jv=Math.sin,Qv=Math.cos,tm=Math.acos,em=Math.atan2,nm=Math.abs,rm=Math.sqrt,im=Math.max,am=Math.min,om=1e-4;function sm(t,e,n,r,i,a,o,s){var l=n-t,u=r-e,c=o-i,h=s-a,d=h*l-c*u;if(!(d*d<om))return d=(c*(e-a)-h*(t-i))/d,[t+d*l,e+d*u]}function lm(t,e,n,r,i,a,o){var s=t-n,l=e-r,u=(o?a:-a)/rm(s*s+l*l),c=u*l,h=-u*s,d=t+c,p=e+h,f=n+c,g=r+h,y=(d+f)/2,v=(p+g)/2,m=f-d,x=g-p,b=m*m+x*x,_=i-a,w=d*g-f*p,S=(x<0?-1:1)*rm(im(0,_*_*b-w*w)),M=(w*x-m*S)/b,O=(-w*m-x*S)/b,I=(w*x+m*S)/b,T=(-w*m+x*S)/b,C=M-y,A=O-v,D=I-y,k=T-v;return C*C+A*A>D*D+k*k&&(M=I,O=T),{cx:M,cy:O,x0:-c,y0:-h,x1:M*(i/_-1),y1:O*(i/_-1)}}function um(t){var e;if(Object(b["isArray"])(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}function cm(t,e){var n,r=im(e.r,0),i=im(e.r0||0,0),a=r>0,o=i>0;if(a||o){if(a||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=e.startAngle,u=e.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=e.cx,h=e.cy,d=!!e.clockwise,p=nm(u-l),f=p>Kv&&p%Kv;if(f>om&&(p=f),r>om)if(p>Kv-om)t.moveTo(c+r*Qv(l),h+r*Jv(l)),t.arc(c,h,r,l,u,!d),i>om&&(t.moveTo(c+i*Qv(u),h+i*Jv(u)),t.arc(c,h,i,u,l,d));else{var g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,b=void 0,_=void 0,w=void 0,S=void 0,M=void 0,O=void 0,I=void 0,T=void 0,C=void 0,A=void 0,D=void 0,k=r*Qv(l),L=r*Jv(l),P=i*Qv(u),j=i*Jv(u),R=p>om;if(R){var N=e.cornerRadius;N&&(n=um(N),g=n[0],y=n[1],v=n[2],m=n[3]);var E=nm(r-i)/2;if(x=am(E,v),b=am(E,m),_=am(E,g),w=am(E,y),O=S=im(x,b),I=M=im(_,w),(S>om||M>om)&&(T=r*Qv(u),C=r*Jv(u),A=i*Qv(l),D=i*Jv(l),p<$v)){var z=sm(k,L,A,D,T,C,P,j);if(z){var B=k-z[0],V=L-z[1],F=T-z[0],H=C-z[1],G=1/Jv(tm((B*F+V*H)/(rm(B*B+V*V)*rm(F*F+H*H)))/2),W=rm(z[0]*z[0]+z[1]*z[1]);O=am(S,(r-W)/(G+1)),I=am(M,(i-W)/(G-1))}}}if(R)if(O>om){var Y=am(v,O),U=am(m,O),X=lm(A,D,k,L,r,Y,d),Z=lm(T,C,P,j,r,U,d);t.moveTo(c+X.cx+X.x0,h+X.cy+X.y0),O<S&&Y===U?t.arc(c+X.cx,h+X.cy,O,em(X.y0,X.x0),em(Z.y0,Z.x0),!d):(Y>0&&t.arc(c+X.cx,h+X.cy,Y,em(X.y0,X.x0),em(X.y1,X.x1),!d),t.arc(c,h,r,em(X.cy+X.y1,X.cx+X.x1),em(Z.cy+Z.y1,Z.cx+Z.x1),!d),U>0&&t.arc(c+Z.cx,h+Z.cy,U,em(Z.y1,Z.x1),em(Z.y0,Z.x0),!d))}else t.moveTo(c+k,h+L),t.arc(c,h,r,l,u,!d);else t.moveTo(c+k,h+L);if(i>om&&R)if(I>om){Y=am(g,I),U=am(y,I),X=lm(P,j,T,C,i,-U,d),Z=lm(k,L,A,D,i,-Y,d);t.lineTo(c+X.cx+X.x0,h+X.cy+X.y0),I<M&&Y===U?t.arc(c+X.cx,h+X.cy,I,em(X.y0,X.x0),em(Z.y0,Z.x0),!d):(U>0&&t.arc(c+X.cx,h+X.cy,U,em(X.y0,X.x0),em(X.y1,X.x1),!d),t.arc(c,h,i,em(X.cy+X.y1,X.cx+X.x1),em(Z.cy+Z.y1,Z.cx+Z.x1),d),Y>0&&t.arc(c+Z.cx,h+Z.cy,Y,em(Z.y1,Z.x1),em(Z.y0,Z.x0),!d))}else t.lineTo(c+P,h+j),t.arc(c,h,i,u,l,d);else t.lineTo(c+P,h+j)}else t.moveTo(c,h);t.closePath()}}}var hm=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return t}(),dm=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultShape=function(){return new hm},e.prototype.buildPath=function(t,e){cm(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Bl);dm.prototype.type="sector";var pm=dm,fm=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),gm=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultShape=function(){return new fm},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=2*Math.PI;t.moveTo(n+e.r,r),t.arc(n,r,e.r,0,i,!1),t.moveTo(n+e.r0,r),t.arc(n,r,e.r0,0,i,!0)},e}(Bl);gm.prototype.type="ring";var ym=gm;function vm(t,e,n,r){var i,a,o,s,l=[],u=[],c=[],h=[];if(r){o=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;d<p;d++)W(o,o,t[d]),Y(s,s,t[d]);W(o,o,r[0]),Y(s,s,r[1])}for(d=0,p=t.length;d<p;d++){var f=t[d];if(n)i=t[d?d-1:p-1],a=t[(d+1)%p];else{if(0===d||d===p-1){l.push(S(t[d]));continue}i=t[d-1],a=t[d+1]}T(u,a,i),R(u,u,e);var g=E(f,i),y=E(f,a),v=g+y;0!==v&&(g/=v,y/=v),R(c,u,-g),R(h,u,y);var m=O([],f,c),x=O([],f,h);r&&(Y(m,m,o),W(m,m,s),Y(x,x,o),W(x,x,s)),l.push(m),l.push(x)}return n&&l.push(l.shift()),l}function mm(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var a=vm(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var l=a[2*s],u=a[2*s+1],c=i[(s+1)%o];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);s=1;for(var h=i.length;s<h;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}var xm=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),bm=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultShape=function(){return new xm},e.prototype.buildPath=function(t,e){mm(t,e,!0)},e}(Bl);bm.prototype.type="polygon";var _m=bm,wm=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Sm=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new wm},e.prototype.buildPath=function(t,e){mm(t,e,!1)},e}(Bl);Sm.prototype.type="polyline";var Mm=Sm,Om={},Im=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Tm=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Im},e.prototype.buildPath=function(t,e){var n,r,i,a;if(this.subPixelOptimize){var o=$l(Om,e,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=e.x1,r=e.y1,i=e.x2,a=e.y2;var s=e.percent;0!==s&&(t.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),t.lineTo(i,a))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(Bl);Tm.prototype.type="line";var Cm=Tm,Am=[],Dm=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function km(t,e,n){var r=t.cpx2,i=t.cpy2;return null!=r||null!=i?[(n?nn:en)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?nn:en)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?cn:un)(t.x1,t.cpx1,t.x2,e),(n?cn:un)(t.y1,t.cpy1,t.y2,e)]}var Lm=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Dm},e.prototype.buildPath=function(t,e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,c=e.percent;0!==c&&(t.moveTo(n,r),null==l||null==u?(c<1&&(pn(n,o,i,c,Am),o=Am[1],i=Am[2],pn(r,s,a,c,Am),s=Am[1],a=Am[2]),t.quadraticCurveTo(o,s,i,a)):(c<1&&(on(n,o,l,i,c,Am),o=Am[1],l=Am[2],i=Am[3],on(r,s,u,a,c,Am),s=Am[1],u=Am[2],a=Am[3]),t.bezierCurveTo(o,s,l,u,i,a)))},e.prototype.pointAt=function(t){return km(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e=km(this.shape,t,!0);return N(e,e)},e}(Bl);Lm.prototype.type="bezier-curve";var Pm=Lm,jm=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),Rm=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new jm},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),a=e.startAngle,o=e.endAngle,s=e.clockwise,l=Math.cos(a),u=Math.sin(a);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,a,o,!s)},e}(Bl);Rm.prototype.type="arc";var Nm=Rm,Em=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return f(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var n=e.paths||[],r=0;r<n.length;r++)n[r].buildPath(t,n[r].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Bl.prototype.getBoundingRect.call(this)},e}(Bl),zm=Em,Bm=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}(),Vm=Bm,Fm=function(t){function e(e,n,r,i,a,o){var s=t.call(this,a)||this;return s.x=null==e?0:e,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=o||!1,s}return f(e,t),e}(Vm),Hm=Fm,Gm=function(t){function e(e,n,r,i,a){var o=t.call(this,i)||this;return o.x=null==e?.5:e,o.y=null==n?.5:n,o.r=null==r?.5:r,o.type="radial",o.global=a||!1,o}return f(e,t),e}(Vm),Wm=Gm,Ym=Math.min,Um=Math.max,Xm=Math.abs,Zm=[0,0],qm=[0,0],$m=le(),Km=$m.minTv,Jm=$m.maxTv,Qm=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Et;for(n=0;n<2;n++)this._axes[n]=new Et;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,r=this._axes,i=t.x,a=t.y,o=i+t.width,s=a+t.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),e)for(var l=0;l<4;l++)n[l].transform(e);Et.sub(r[0],n[1],n[0]),Et.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize();for(l=0;l<2;l++)this._origin[l]=r[l].dot(n[0])},t.prototype.intersect=function(t,e,n){var r=!0,i=!e;return e&&Et.set(e,0,0),$m.reset(n,!i),!this._intersectCheckOneSide(this,t,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(t,this,i,-1)&&(r=!1,i)||i||$m.negativeSize||Et.copy(e,r?$m.useDir?$m.dirMinTv:Km:Jm),r},t.prototype._intersectCheckOneSide=function(t,e,n,r){for(var i=!0,a=0;a<2;a++){var o=t._axes[a];if(t._getProjMinMaxOnAxis(a,t._corners,Zm),t._getProjMinMaxOnAxis(a,e._corners,qm),$m.negativeSize||Zm[1]<qm[0]||Zm[0]>qm[1]){if(i=!1,$m.negativeSize||n)return i;var s=Xm(qm[0]-Zm[1]),l=Xm(Zm[0]-qm[1]);Ym(s,l)>Jm.len()&&(s<l?Et.scale(Jm,o,-s*r):Et.scale(Jm,o,l*r))}else if(!n){s=Xm(qm[0]-Zm[1]),l=Xm(Zm[0]-qm[1]);($m.useDir||Ym(s,l)<Km.len())&&((s<l||!$m.bidirectional)&&(Et.scale(Km,o,s*r),$m.useDir&&$m.calcDirMTV()),(s>=l||!$m.bidirectional)&&(Et.scale(Km,o,-l*r),$m.useDir&&$m.calcDirMTV()))}}return i},t.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var r=this._axes[t],i=this._origin,a=e[0].dot(r)+i[t],o=a,s=a,l=1;l<e.length;l++){var u=e[l].dot(r)+i[t];o=Ym(u,o),s=Um(u,s)}n[0]=o+$m.touchThreshold,n[1]=s-$m.touchThreshold,$m.negativeSize=n[1]<n[0]},t}(),tx=Qm,ex=0,nx=1,rx=2,ix=1,ax=0,ox=[],sx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=nx,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return f(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(t=0;t<this._temporaryDisplayables.length;t++){e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ue(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(ox)),t.union(r)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(r.contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++){var a=this._displayables[i];if(a.contain(t,e))return!0}return!1},e}(Ls),lx=sx,ux={},cx=["x","y"],hx=["width","height"],dx=0,px=1,fx=2;function gx(t){return Bl.extend(t)}var yx=Fv;function vx(t,e){return yx(t,e)}function mx(t,e){ux[t]=e}function xx(t){if(ux.hasOwnProperty(t))return ux[t]}function bx(t,e,n,r){var i=Vv(t,e);return n&&("center"===r&&(n=Sx(n,i.getBoundingRect())),Ox(i,n)),i}function _x(t,e,n){var r=new Xl({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===n){var i={width:t.width,height:t.height};r.setStyle(Sx(e,i))}}});return r}function Sx(t,e){var n,r=e.width/e.height,i=t.height*r;i<=t.width?n=t.height:(i=t.width,n=i/r);var a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var Mx=Hv;function Ox(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function Ix(t,e){return $l(t,t,{lineWidth:e}),t}function Tx(t,e){return Kl(t,t,e),t}var Cx=Jl;function Ax(t,e){var n=Ct([]);while(t&&t!==e)Dt(n,t.getLocalTransform(),n),t=t.parent;return n}function Dx(t,e,n){return e&&!Object(b["isArrayLike"])(e)&&(e=jr.getLocalTransform(e)),n&&(e=jt([],e)),G([],t,e)}function kx(t,e,n){var r=0===e[4]||0===e[5]||0===e[0]?1:zi(2*e[4]/e[0]),i=0===e[4]||0===e[5]||0===e[2]?1:zi(2*e[4]/e[2]),a=["left"===t?-r:"right"===t?r:0,"top"===t?-i:"bottom"===t?i:0];return a=Dx(a,e,n),zi(a[0])>zi(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Lx(t){return!t.isGroup}function Px(t){return null!=t.shape}function jx(t,e,n){if(t&&e){var r=i(t);e.traverse((function(t){if(Lx(t)&&t.anid){var e=r[t.anid];if(e){var i=a(t);t.attr(a(e)),nh(t,i,n,wu(t).dataIndex)}}}))}function i(t){var e={};return t.traverse((function(t){Lx(t)&&t.anid&&(e[t.anid]=t)})),e}function a(t){var e={x:t.x,y:t.y,rotation:t.rotation};return Px(t)&&(e.shape=Object(b["clone"])(t.shape)),e}}function Rx(t,e){return Object(b["map"])(t,(function(t){var n=t[0];n=Ei(n,e.x),n=Ni(n,e.x+e.width);var r=t[1];return r=Ei(r,e.y),r=Ni(r,e.y+e.height),[n,r]}))}function Nx(t,e){var n=Ei(t.x,e.x),r=Ni(t.x+t.width,e.x+e.width),i=Ei(t.y,e.y),a=Ni(t.y+t.height,e.y+e.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Ex(t,e,n){var r=Object(b["extend"])({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(b["defaults"])(i,n),new Xl(r)):bx(t.replace("path://",""),r,n,"center")}function zx(t,e,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Bx(t,e,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Bx(t,e,n,r,i,a,o,s){var l=n-t,u=r-e,c=o-i,h=s-a,d=Vx(c,h,l,u);if(Fx(d))return!1;var p=t-i,f=e-a,g=Vx(p,f,l,u)/d;if(g<0||g>1)return!1;var y=Vx(p,f,c,h)/d;return!(y<0||y>1)}function Vx(t,e,n,r){return t*r-n*e}function Fx(t){return t<=1e-6&&t>=-1e-6}function Hx(t,e,n,r,i){return null==e||(Object(b["isNumber"])(e)?Gx[0]=Gx[1]=Gx[2]=Gx[3]=e:(Gx[0]=e[0],Gx[1]=e[1],Gx[2]=e[2],Gx[3]=e[3]),r&&(Gx[0]=Ei(0,Gx[0]),Gx[1]=Ei(0,Gx[1]),Gx[2]=Ei(0,Gx[2]),Gx[3]=Ei(0,Gx[3])),n&&(Gx[0]=-Gx[0],Gx[1]=-Gx[1],Gx[2]=-Gx[2],Gx[3]=-Gx[3]),Wx(t,Gx,"x","width",3,1,i&&i[0]||0),Wx(t,Gx,"y","height",0,2,i&&i[1]||0)),t}var Gx=[0,0,0,0];function Wx(t,e,n,r,i,a,o){var s=e[a]+e[i],l=t[r];t[r]+=s,o=Ei(0,Ni(o,l)),t[r]<o?(t[r]=o,t[n]+=e[i]>=0?-e[i]:e[a]>=0?l+e[a]:zi(s)>1e-8?(l-o)*e[i]/s:0):t[n]-=e[i]}function Yx(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Object(b["isString"])(e)?{formatter:e}:e,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&Object(b["each"])(Object(b["keys"])(l),(function(t){Object(b["hasOwn"])(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=wu(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:r,option:Object(b["defaults"])({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Ux(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Xx(t,e){if(t)if(Object(b["isArray"])(t))for(var n=0;n<t.length;n++)Ux(t[n],e);else Ux(t,e)}function Zx(t){return!t||zi(t[1])<qx&&zi(t[2])<qx||zi(t[0])<qx&&zi(t[3])<qx}var qx=1e-5;function $x(t,e){return t?ue.copy(t,e):e.clone()}function Kx(t,e){return e?At(t||Tt(),e):void 0}function Jx(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function Qx(t){var e=-1/0,n=1/0;function r(t){if(t&&!t.isGroup){var e=t.currentStates;if(e.length)for(var n=0;n<e.length;n++)i(t.states[e[n]]);i(t)}}function i(t){if(t){var r=t.z2;r>e&&(e=r),r<n&&(n=r)}}return Ux(t,(function(t){r(t),r(t.getTextContent()),r(t.getTextGuideLine())})),n>e&&(n=e=0),{min:n,max:e}}function tb(t,e,n){eb(t,e,n,-1/0)}function eb(t,e,n,r){if(t.ignoreModelZ)return r;var i=t.getTextContent(),a=t.getTextGuideLine(),o=t.isGroup;if(o)for(var s=t.childrenRef(),l=0;l<s.length;l++)r=Ei(eb(s[l],e,n,r),r);else t.z=e,t.zlevel=n,r=Ei(t.z2||0,r);if(i&&(i.z=e,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var u=t.textGuideLineConfig;a.z=e,a.zlevel=n,isFinite(r)&&(a.z2=r+(u&&u.showAbove?1:-1))}return r}function nb(t){return t.animation={duration:0},t}function rb(t,e){return e?At(ib.transform,e):Ct(ib.transform),ib.decomposeTransform(),Lr(t,ib),t}var ib=new jr;function ab(t){var e=t.getZr().painter;return"canvas"===e.getType()?e:null}ib.transform=Tt(),mx("circle",Uv),mx("ellipse",qv),mx("sector",pm),mx("ring",ym),mx("polygon",_m),mx("polyline",Mm),mx("rect",nu),mx("line",Cm),mx("bezierCurve",Pm),mx("arc",Nm);var ob=Ka(),sb=bv(),lb=function(){function t(){this.group=new vi,this.uid=Hh("viewChart"),this.renderTask=Kg({plan:hb,reset:db}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,r){0},t.prototype.highlight=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&cb(i,r,"emphasis")},t.prototype.downplay=function(t,e,n,r){var i=t.getData(r&&r.dataType);i&&cb(i,r,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.updateVisual=function(t,e,n,r){this.render(t,e,n,r)},t.prototype.eachRendered=function(t){Xx(this.group,t)},t.markUpdateMethod=function(t,e){ob(t).updateMethod=e},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function ub(t,e,n){t&&Xc(t)&&("emphasis"===e?wc:Sc)(t,n)}function cb(t,e,n){var r=$a(t,e),i=e&&null!=e.highlightKey?qc(e.highlightKey):null;null!=r?Object(b["each"])(Aa(r),(function(e){ub(t.getItemGraphicEl(e),n,i)})):t.eachItemGraphicEl((function(t){ub(t,n,i)}))}function hb(t){return sb(t.model)}function db(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&ob(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](e,n,r,i),pb[l]}Eo(lb,["dispose"]),Wo(lb);var pb={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},fb=lb,gb="\0__throttleOriginMethod",yb="\0__throttleRate",vb="\0__throttleType";function mb(t,e,n){var r,i,a,o,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(a,o||[])}e=e||0;var d=function(){for(var t=[],d=0;d<arguments.length;d++)t[d]=arguments[d];r=(new Date).getTime(),a=this,o=t;var p=s||e,f=s||n;s=null,i=r-(f?l:u)-p,clearTimeout(c),f?c=setTimeout(h,p):i>=0?h():c=setTimeout(h,-i),l=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function xb(t,e,n,r){var i=t[e];if(i){var a=i[gb]||i,o=i[vb],s=i[yb];if(s!==n||o!==r){if(null==n||!r)return t[e]=a;i=t[e]=mb(a,n,"debounce"===r),i[gb]=a,i[vb]=r,i[yb]=n}return i}}function bb(t,e){var n=t[e];n&&n[gb]&&(n.clear&&n.clear(),t[e]=n[gb])}var _b=Ka(),wb={itemStyle:Yo(Nh,!0),lineStyle:Yo(Ph,!0)},Sb={lineStyle:"stroke",itemStyle:"fill"};function Mb(t,e){var n=t.visualStyleMapper||wb[e];return n||(console.warn("Unknown style type '"+e+"'."),wb.itemStyle)}function Ob(t,e){var n=t.visualDrawType||Sb[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var Ib={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),a=Mb(t,r),o=a(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Ob(t,r),u=o[l],c=Object(b["isFunction"])(u)?u:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[l]||c||h){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=d,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||Object(b["isFunction"])(o.fill)?d:o.fill,o.stroke="auto"===o.stroke||Object(b["isFunction"])(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var r=t.getDataParams(n),i=Object(b["extend"])({},o);i[l]=c(r),e.setItemVisual(n,"style",i)}}}},Tb=new Vh,Cb={createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=Mb(t,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[r]){Tb.option=n[r];var o=i(Tb),s=t.ensureUniqueItemVisual(e,"style");Object(b["extend"])(s,o),Tb.option.decal&&(t.setItemVisual(e,"decal",Tb.option.decal),Tb.option.decal.dirty=!0),a in o&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},Ab={performRawSeries:!0,overallReset:function(t){var e=Object(b["createHashMap"])();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=t.type+"-"+t.getColorBy();_b(t).scope=e.get(n)||e.set(n,{})}})),t.eachSeries((function(t){if(!t.isColorBySeries()){var e=t.getRawData(),n={},r=t.getData(),i=_b(t).scope,a=t.visualStyleAccessPath||"itemStyle",o=Ob(t,a);r.each((function(t){var e=r.getRawIndex(t);n[e]=t})),e.each((function(a){var s=n[a],l=r.getItemVisual(s,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(s,"style"),c=e.getName(a)||a+"",h=e.count();u[o]=t.getColorFromPalette(c,i,h)}}))}}))}},Db=Math.PI;function kb(t,e){e=e||{},b["defaults"](e,{text:"loading",textColor:Xp.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:Xp.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new vi,r=new nu({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i,a=new _u({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new nu({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(o),e.showSpinner&&(i=new Nm({shape:{startAngle:-Db/2,endAngle:-Db/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*Db/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Db/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=a.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),o.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Lb=function(){function t(t,e,n,r){this._stageTaskMap=Object(b["createHashMap"])(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex,a=i?n.step:null,o=r&&r.modDataCount,s=null!=o?Math.ceil(o/a):null;return{step:a,modBy:s,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.__preparePipelineContext?t.__preparePipelineContext(e,n):Co(t,e,n);t.pipelineContext=n.context=r},t.prototype.restorePipelines=function(t,e){var n=this,r=n._pipelineMap=Object(b["createHashMap"])();e.eachSeries((function(e){var i="canvas"===t.painter.type&&e.getProgressive(),a=e.uid;r.set(a,{id:a,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(e,e.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(b["each"])(this._allHandlers,(function(r){var i=t.get(r.uid)||t.set(r.uid,{}),a="";Object(b["assert"])(!(r.reset&&r.overallReset),a),r.reset&&this._createSeriesStageTask(r,i,e,n),r.overallReset&&this._createOverallStageTask(r,i,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,a=i.context;a.model=e,a.ecModel=n,a.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,r){r=r||{};var i=!1,a=this;function o(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(b["each"])(t,(function(t,s){if(!r.visualType||r.visualType===t.visualType){var l=a._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){o(r,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),a.updatePayload(c,n);var p=a.getPerformArgs(c,r.block);d.each((function(t){t.perform(p)})),c.perform(p)&&(i=!0)}else u&&u.each((function(s,l){o(r,s)&&s.dirty();var u=a.getPerformArgs(s,r.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,r){var i=this,a=e.seriesTaskMap,o=e.seriesTaskMap=Object(b["createHashMap"])(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=o.set(s,a&&a.get(s)||Kg({plan:Eb,reset:zb,count:Fb}));l.context={model:e,ecModel:n,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},t.prototype._createOverallStageTask=function(t,e,n,r){var i=this,a=e.overallTask=e.overallTask||Kg({reset:Pb});a.context={ecModel:n,api:r,overallReset:t.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=Object(b["createHashMap"])(),l=t.seriesType,u=t.getTargetSeries,c=t.dirtyOnOverallProgress,h=!1,d="";function p(t){var e=t.uid,n=s.set(e,o&&o.get(e)||(h=!0,Kg({reset:jb,onDirty:Nb})));n.context={model:t,dirtyOnOverallProgress:c},n.agent=a,n.__block=c,i._pipe(t,n)}Object(b["assert"])(!t.createOnAllSeries,d),l?n.eachRawSeriesByType(l,p):u?u(n,r).each(p):Object(b["each"])(n.getSeries(),p),h&&a.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Object(b["isFunction"])(t)&&(t={overallReset:t,seriesType:Hb(t)}),t.uid=Hh("stageHandler"),e&&(t.visualType=e),t},t}();function Pb(t){t.overallReset(t.ecModel,t.api,t.payload)}function jb(t){return t.dirtyOnOverallProgress&&Rb}function Rb(){this.agent.dirty(),this.getDownstream().dirty()}function Nb(){this.agent&&this.agent.dirty()}function Eb(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function zb(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Aa(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(b["map"])(e,(function(t,e){return Vb(e)})):Bb}var Bb=Vb(0);function Vb(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(e,r)}}function Fb(t){return t.data.count()}function Hb(t){Gb=null;try{t(Wb,Yb)}catch(e){}return Gb}var Gb,Wb={},Yb={};function Ub(t,e){for(var n in e.prototype)t[n]=b["noop"]}Ub(Wb,Ef),Ub(Yb,Bu),Wb.eachSeriesByType=Wb.eachRawSeriesByType=function(t){Gb=t},Wb.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Gb=t.subType)};var Xb=Lb,Zb=Xp.darkColor,qb=Zb.background,$b=function(){return{axisLine:{lineStyle:{color:Zb.axisLine}},splitLine:{lineStyle:{color:Zb.axisSplitLine}},splitArea:{areaStyle:{color:[Zb.backgroundTint,Zb.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:Zb.axisMinorSplitLine}},axisLabel:{color:Zb.axisLabel},axisName:{}}},Kb={label:{color:Zb.secondary},itemStyle:{borderColor:Zb.borderTint},dividerLineStyle:{color:Zb.border}},Jb={darkMode:!0,color:Zb.theme,backgroundColor:qb,axisPointer:{lineStyle:{color:Zb.border},crossStyle:{color:Zb.borderShade},label:{color:Zb.tertiary}},legend:{textStyle:{color:Zb.secondary},pageTextStyle:{color:Zb.tertiary}},textStyle:{color:Zb.secondary},title:{textStyle:{color:Zb.primary},subtextStyle:{color:Zb.quaternary}},toolbox:{iconStyle:{borderColor:Zb.accent50},feature:{dataView:{backgroundColor:qb,textColor:Zb.primary,textareaColor:Zb.background,textareaBorderColor:Zb.border,buttonColor:Zb.accent50,buttonTextColor:Zb.neutral00}}},tooltip:{backgroundColor:Zb.neutral20,defaultBorderColor:Zb.border,textStyle:{color:Zb.tertiary}},dataZoom:{borderColor:Zb.accent10,textStyle:{color:Zb.tertiary},brushStyle:{color:Zb.backgroundTint},handleStyle:{color:Zb.neutral00,borderColor:Zb.accent20},moveHandleStyle:{color:Zb.accent40},emphasis:{handleStyle:{borderColor:Zb.accent50}},dataBackground:{lineStyle:{color:Zb.accent30},areaStyle:{color:Zb.accent20}},selectedDataBackground:{lineStyle:{color:Zb.accent50},areaStyle:{color:Zb.accent30}}},visualMap:{textStyle:{color:Zb.secondary},handleStyle:{borderColor:Zb.neutral30}},timeline:{lineStyle:{color:Zb.accent10},label:{color:Zb.tertiary},controlStyle:{color:Zb.accent30,borderColor:Zb.accent30}},calendar:{itemStyle:{color:Zb.neutral00,borderColor:Zb.neutral20},dayLabel:{color:Zb.tertiary},monthLabel:{color:Zb.secondary},yearLabel:{color:Zb.secondary}},matrix:{x:Kb,y:Kb,backgroundColor:{borderColor:Zb.axisLine},body:{itemStyle:{borderColor:Zb.borderTint}}},timeAxis:$b(),logAxis:$b(),valueAxis:$b(),categoryAxis:$b(),line:{symbol:"circle"},graph:{color:Zb.theme},gauge:{title:{color:Zb.secondary},axisLine:{lineStyle:{color:[[1,Zb.neutral05]]}},axisLabel:{color:Zb.axisLabel},detail:{color:Zb.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:Zb.background}},radar:function(){var t=$b();return t.axisName={color:Zb.axisLabel},t.axisLine.lineStyle.color=Zb.neutral20,t}(),treemap:{breadcrumb:{itemStyle:{color:Zb.neutral20,textStyle:{color:Zb.secondary}},emphasis:{itemStyle:{color:Zb.neutral30}}}},sunburst:{itemStyle:{borderColor:Zb.background}},map:{itemStyle:{borderColor:Zb.border,areaColor:Zb.neutral10},label:{color:Zb.tertiary},emphasis:{label:{color:Zb.primary},itemStyle:{areaColor:Zb.highlight}},select:{label:{color:Zb.primary},itemStyle:{areaColor:Zb.highlight}}},geo:{itemStyle:{borderColor:Zb.border,areaColor:Zb.neutral10},emphasis:{label:{color:Zb.primary},itemStyle:{areaColor:Zb.highlight}},select:{label:{color:Zb.primary},itemStyle:{color:Zb.highlight}}}};Jb.categoryAxis.splitLine.show=!1;var Qb=Jb,t_=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},n={},r={};if(b["isString"](t)){var i=jo(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var a=["Index","Name","Id"],o={name:1,dataIndex:1,dataType:1};b["each"](t,(function(t,i){for(var s=!1,l=0;l<a.length;l++){var u=a[l],c=i.lastIndexOf(u);if(c>0&&c===i.length-u.length){var h=i.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}o.hasOwnProperty(i)&&(n[i]=t,s=!0),s||(r[i]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:r}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,a,"mainType")&&u(s,a,"subType")&&u(s,a,"index","componentIndex")&&u(s,a,"name")&&u(s,a,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!o.filterForExposedEvent||o.filterForExposedEvent(t,e.otherQuery,r,i));function u(t,e,n,r){return null==t[n]||e[r||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),e_=["symbol","symbolSize","symbolRotate","symbolOffset"],n_=e_.concat(["symbolKeepAspect"]),r_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var r={},i={},a=!1,o=0;o<e_.length;o++){var s=e_[o],l=t.get(s);Object(b["isFunction"])(l)?(a=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(Object(b["extend"])({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),!e.isSeriesFiltered(t)){var u=Object(b["keys"])(i);return{dataEach:a?c:null}}}function c(e,n){for(var r=t.getRawValue(n),a=t.getDataParams(n),o=0;o<u.length;o++){var s=u[o];e.setItemVisual(n,s,i[s](r,a))}}}},i_={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t)){var n=t.getData();return{dataEach:n.hasItemOption?r:null}}function r(t,e){for(var n=t.getItemModel(e),r=0;r<n_.length;r++){var i=n_[r],a=n.getShallow(i,!0);null!=a&&t.setItemVisual(e,i,a)}}}};function a_(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function o_(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function s_(t,e,n,r){switch(n){case"color":var i=t.ensureUniqueItemVisual(e,"style");i[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break;default:0}}function l_(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}Object(b["each"])([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,r,i){e=Object(b["extend"])({},e),i.dispatchAction(Object(b["extend"])(e,{type:t[1],seriesIndex:n(r,e)}))}))}))}function u_(t,e,n,r,i){var a=t+e;n.isSilent(a)||r.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,r=t.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===e){var l=t.getData(),u=$a(l,i.fromActionPayload);n.trigger(a,{type:a,seriesId:t.id,name:Object(b["isArray"])(u)?l.getName(u[0]):l.getName(u),selected:Object(b["isString"])(r)?r:Object(b["extend"])({},r)})}}))}function c_(t,e,n){t.on("selectchanged",(function(t){var r=n.getModel();t.isFromClick?(u_("map","selectchanged",e,r,t),u_("pie","selectchanged",e,r,t)):"select"===t.fromAction?(u_("map","selected",e,r,t),u_("pie","selected",e,r,t)):"unselect"===t.fromAction&&(u_("map","unselected",e,r,t),u_("pie","unselected",e,r,t))}))}function h_(t,e,n){var r;while(t){if(e(t)&&(r=t,n))break;t=t.__hostTarget||t.parent}return r}var d_=new $,p_=d_,f_={};function g_(t,e){f_[t]=e}function y_(t){return f_[t]}var v_={};function m_(t,e){v_[t]=e}function x_(t){return v_[t]}var b_=Ka();function __(t){b_(t).prepare={}}function w_(t){b_(t).fullUpdate={}}function S_(t){return b_(t).prepare}function M_(t){return b_(t).fullUpdate}var O_=Math.round(9*Math.random()),I_="function"===typeof Object.defineProperty,T_=function(){function t(){this._id="__ec_inner_"+O_++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var n=this._guard(t);return I_?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},t.prototype["delete"]=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),C_=T_,A_=Bl.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,a=e.height/2;t.moveTo(n,r-a),t.lineTo(n+i,r+a),t.lineTo(n-i,r+a),t.closePath()}}),D_=Bl.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,a=e.height/2;t.moveTo(n,r-a),t.lineTo(n+i,r),t.lineTo(n,r+a),t.lineTo(n-i,r),t.closePath()}}),k_=Bl.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=r-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,h=Math.sin(u),d=Math.cos(u),p=.6*o,f=.7*o;t.moveTo(n-c,l+s),t.arc(n,l,o,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*p,l+s+d*p,n,r-f,n,r),t.bezierCurveTo(n,r-f,n-c+h*p,l+s+d*p,n-c,l+s),t.closePath()}}),L_=Bl.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,a=e.y,o=r/3*2;t.moveTo(i,a),t.lineTo(i+o,a+n),t.lineTo(i,a+n/4*3),t.lineTo(i-o,a+n),t.lineTo(i,a),t.closePath()}}),P_={line:Cm,rect:nu,roundRect:nu,square:nu,circle:Uv,diamond:D_,pin:k_,arrow:L_,triangle:A_},j_={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var a=Math.min(n,r);i.x=t,i.y=e,i.width=a,i.height=a},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},R_={};Object(b["each"])(P_,(function(t,e){R_[e]=new t}));var N_=Bl.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=qr(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=R_[r];i||(r="rect",i=R_[r]),j_[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function E_(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||Xp.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function z_(t,e,n,r,i,a,o){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),s=0===t.indexOf("image://")?_x(t.slice(8),new ue(e,n,r,i),o?"center":"cover"):0===t.indexOf("path://")?bx(t.slice(7),{},new ue(e,n,r,i),o?"center":"cover"):new N_({shape:{symbolType:t,x:e,y:n,width:r,height:i}}),s.__isEmptyBrush=l,s.setColor=E_,a&&s.setColor(a),s}function B_(t){return Object(b["isArray"])(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function V_(t,e){if(null!=t)return Object(b["isArray"])(t)||(t=[t,t]),[Zi(t[0],e[0])||0,Zi(Object(b["retrieve2"])(t[1],t[0]),e[1])||0]}function F_(t){return isFinite(t)}function H_(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;e.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=F_(r)?r:0,i=F_(i)?i:1,a=F_(a)?a:0,o=F_(o)?o:0;var s=t.createLinearGradient(r,a,i,o);return s}function G_(t,e,n){var r=n.width,i=n.height,a=Math.min(r,i),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;e.global||(o=o*r+n.x,s=s*i+n.y,l*=a),o=F_(o)?o:.5,s=F_(s)?s:.5,l=l>=0&&F_(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function W_(t,e,n){for(var r="radial"===e.type?G_(t,e,n):H_(t,e,n),i=e.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function Y_(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function U_(t){return parseInt(t,10)}function X_(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(null!=n[r]&&"auto"!==n[r])return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||U_(s[r])||U_(t.style[r]))-(U_(s[a])||0)-(U_(s[o])||0)||0}function Z_(t,e){return t&&"solid"!==t&&e>0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(b["isNumber"])(t)?[t]:Object(b["isArray"])(t)?t:null:null}function q_(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&Z_(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&1!==i&&(n=Object(b["map"])(n,(function(t){return t/i})),r/=i)}return[n,r]}var $_=new pl(!0);function K_(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function J_(t){return"string"===typeof t&&"none"!==t}function Q_(t){var e=t.fill;return null!=e&&"none"!==e}function tw(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function ew(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function nw(t,e,n){var r=Ko(e.image,e.__image,n);if(Qo(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*b["RADIAN_TO_DEGREE"]),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function rw(t,e,n,r,i){var a,o=K_(n),s=Q_(n),l=n.strokePercent,u=l<1,c=!e.path;e.silent&&!u||!c||e.createPathProxy();var h=e.path||$_,d=e.__dirty;if(!r){var p=n.fill,f=n.stroke,g=s&&!!p.colorStops,y=o&&!!f.colorStops,v=s&&!!p.image,m=o&&!!f.image,x=void 0,b=void 0,_=void 0,w=void 0,S=void 0;(g||y)&&(S=e.getBoundingRect()),g&&(x=d?W_(t,p,S):e.__canvasFillGradient,e.__canvasFillGradient=x),y&&(b=d?W_(t,f,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=b),v&&(_=d||!e.__canvasFillPattern?nw(t,p,e):e.__canvasFillPattern,e.__canvasFillPattern=_),m&&(w=d||!e.__canvasStrokePattern?nw(t,f,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),g?t.fillStyle=x:v&&(_?t.fillStyle=_:s=!1),y?t.strokeStyle=b:m&&(w?t.strokeStyle=w:o=!1)}var M,O,I=e.getGlobalScale();h.setScale(I[0],I[1],e.segmentIgnoreThreshold),t.setLineDash&&n.lineDash&&(a=q_(e),M=a[0],O=a[1]);var T=!0;(c||d&je)&&(h.setDPR(t.dpr),u?h.setContext(null):(h.setContext(t),T=!1),h.reset(),e.buildPath(h,e.shape,r),h.toStatic(),e.pathUpdated()),T&&h.rebuildPath(t,u?l:1),M&&(t.setLineDash(M),t.lineDashOffset=O),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&ew(t,n),s&&tw(t,n)):(s&&tw(t,n),o&&ew(t,n)),M&&t.setLineDash([])}function iw(t,e,n){var r=e.__image=Ko(n.image,e.__image,e,e.onload);if(r&&Qo(r)){var i=n.x||0,a=n.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(null==o&&null!=s?o=s*l:null==s&&null!=o?s=o/l:null==o&&null==s&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var h=o-u,d=s-c;t.drawImage(r,u,c,h,d,i,a,o,s)}else t.drawImage(r,i,a,o,s)}}function aw(t,e,n){var r,i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||Nr["a"],t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var a=void 0,o=void 0;t.setLineDash&&n.lineDash&&(r=q_(e),a=r[0],o=r[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),n.strokeFirst?(K_(n)&&t.strokeText(i,n.x,n.y),Q_(n)&&t.fillText(i,n.x,n.y)):(Q_(n)&&t.fillText(i,n.x,n.y),K_(n)&&t.strokeText(i,n.x,n.y)),a&&t.setLineDash([])}}var ow=["shadowBlur","shadowOffsetX","shadowOffsetY"],sw=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function lw(t,e,n,r,i){var a=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){xw(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Ms.opacity:o}(r||e.blend!==n.blend)&&(a||(xw(t,i),a=!0),t.globalCompositeOperation=e.blend||Ms.blend);for(var s=0;s<ow.length;s++){var l=ow[s];(r||e[l]!==n[l])&&(a||(xw(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(a||(xw(t,i),a=!0),t.shadowColor=e.shadowColor||Ms.shadowColor),a}function uw(t,e,n,r,i){var a=e.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=lw(t,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(xw(t,i),s=!0),J_(a.fill)&&(t.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||(xw(t,i),s=!0),J_(a.stroke)&&(t.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||(xw(t,i),s=!0),t.globalAlpha=null==a.opacity?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(xw(t,i),s=!0),t.lineWidth=u)}for(var c=0;c<sw.length;c++){var h=sw[c],d=h[0];(r||a[d]!==o[d])&&(s||(xw(t,i),s=!0),t[d]=a[d]||h[1])}return s}function cw(t,e,n,r,i){return lw(t,e.style,n&&n.style,r,i)}function hw(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function dw(t,e,n){for(var r=!1,i=0;i<t.length;i++){var a=t[i];r=r||a.isZeroArea(),hw(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}n.allClipped=r}function pw(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var fw=1,gw=2,yw=3,vw=4;function mw(t){var e=Q_(t),n=K_(t);return!(t.lineDash||!(+e^+n)||e&&"string"!==typeof t.fill||n&&"string"!==typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function xw(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function bw(t,e){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};_w(t,e,n),ww(t,n)}function _w(t,e,n){var r=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~Le,void(e.__isRendered=!1);var i=e.__clipPaths,a=n.prevElClipPaths,o=e.style,s=!1,l=!1;if(a&&!Y_(i,a)||(a&&(xw(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(xw(t,n),t.save(),dw(i,t,n),s=!0,n.prevElClipPaths=i)),n.allClipped)return e.__dirty&=~Le,void(e.__isRendered=!1);e.beforeBrush&&e.beforeBrush(n.beforeBrushParam),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=e instanceof Bl&&e.autoBatch&&mw(o);s||pw(r,u.transform)?(xw(t,n),hw(t,e)):c||xw(t,n),e instanceof Bl?(n.lastDrawType!==fw&&(l=!0,n.lastDrawType=fw),uw(t,e,u,l,n),c&&(n.batchFill||n.batchStroke)||t.beginPath(),rw(t,e,o,c,n)):e instanceof Hl?(n.lastDrawType!==yw&&(l=!0,n.lastDrawType=yw),uw(t,e,u,l,n),aw(t,e,o)):e instanceof Xl?(n.lastDrawType!==gw&&(l=!0,n.lastDrawType=gw),cw(t,e,u,l,n),iw(t,e,o)):e.getTemporalDisplayables&&(n.lastDrawType!==vw&&(l=!0,n.lastDrawType=vw),Sw(t,e,n)),e.innerAfterBrush(),e.afterBrush&&(c&&xw(t,n),e.afterBrush()),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function ww(t,e){xw(t,e),e.prevElClipPaths&&t.restore()}function Sw(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a,o,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}};for(a=e.getCursor(),o=r.length;a<o;a++){var l=r[a];l.beforeBrush&&l.beforeBrush(n.beforeBrushParam),l.innerBeforeBrush(),_w(t,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}ww(t,s);for(var u=0,c=i.length;u<c;u++){l=i[u];l.beforeBrush&&l.beforeBrush(n.beforeBrushParam),l.innerBeforeBrush(),_w(t,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}ww(t,s),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var Mw=new C_,Ow=new Rr["a"](100),Iw=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Tw(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&Mw["delete"](t);var a=Mw.get(t);if(a)return a;var o=Object(b["defaults"])(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===o.backgroundColor&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,Mw.set(t,s),t.dirty=!1,s;function l(t){for(var e,a=[n],s=!0,l=0;l<Iw.length;++l){var u=o[Iw[l]];if(null!=u&&!Object(b["isArray"])(u)&&!Object(b["isString"])(u)&&!Object(b["isNumber"])(u)&&"boolean"!==typeof u){s=!1;break}a.push(u)}if(s){e=a.join(",")+(i?"-svg":"");var c=Ow.get(e);c&&(i?t.svgElement=c:t.image=c)}var h,d=Aw(o.dashArrayX),p=Dw(o.dashArrayY),f=Cw(o.symbol),g=kw(d),y=Lw(p),v=!i&&Nr["d"].createCanvas(),m=i&&{tag:"g",attrs:{},key:"dcl",children:[]},x=_();function _(){for(var t=1,e=0,n=g.length;e<n;++e)t=Ma(t,g[e]);var r=1;for(e=0,n=f.length;e<n;++e)r=Ma(r,f[e].length);t*=r;var i=y*g.length*f.length;return{width:Math.max(1,Math.min(t,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}function w(){h&&(h.clearRect(0,0,v.width,v.height),o.backgroundColor&&(h.fillStyle=o.backgroundColor,h.fillRect(0,0,v.width,v.height)));for(var t=0,e=0;e<p.length;++e)t+=p[e];if(!(t<=0)){var a=-y,s=0,l=0,u=0;while(a<x.height){if(s%2===0){var c=l/2%f.length,g=0,b=0,_=0;while(g<2*x.width){var w=0;for(e=0;e<d[u].length;++e)w+=d[u][e];if(w<=0)break;if(b%2===0){var S=.5*(1-o.symbolSize),M=g+d[u][b]*S,O=a+p[s]*S,I=d[u][b]*o.symbolSize,T=p[s]*o.symbolSize,C=_/2%f[c].length;A(M,O,I,T,f[c][C])}g+=d[u][b],++_,++b,b===d[u].length&&(b=0)}++u,u===d.length&&(u=0)}a+=p[s],++l,++s,s===p.length&&(s=0)}}function A(t,e,a,s,l){var u=i?1:n,c=z_(l,t*u,e*u,a*u,s*u,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(c);d&&m.children.push(d)}else bw(h,c)}}v&&(v.width=x.width*n,v.height=x.height*n,h=v.getContext("2d")),w(),s&&Ow.put(e,v||m),t.image=v,t.svgElement=m,t.svgWidth=x.width,t.svgHeight=x.height}}function Cw(t){if(!t||0===t.length)return[["rect"]];if(Object(b["isString"])(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Object(b["isString"])(t[n])){e=!1;break}if(e)return Cw([t]);var r=[];for(n=0;n<t.length;++n)Object(b["isString"])(t[n])?r.push([t[n]]):r.push(t[n]);return r}function Aw(t){if(!t||0===t.length)return[[0,0]];if(Object(b["isNumber"])(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!Object(b["isNumber"])(t[r])){n=!1;break}if(n)return Aw([t]);var i=[];for(r=0;r<t.length;++r)if(Object(b["isNumber"])(t[r])){e=Math.ceil(t[r]);i.push([e,e])}else{e=Object(b["map"])(t[r],(function(t){return Math.ceil(t)}));e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function Dw(t){if(!t||"object"===typeof t&&0===t.length)return[0,0];if(Object(b["isNumber"])(t)){var e=Math.ceil(t);return[e,e]}var n=Object(b["map"])(t,(function(t){return Math.ceil(t)}));return t.length%2?n.concat(n):n}function kw(t){return Object(b["map"])(t,(function(t){return Lw(t)}))}function Lw(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?2*e:e}var Pw=Do(jw);function jw(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each((function(t){var n=r.getItemVisual(t,"decal");if(n){var i=r.ensureUniqueItemVisual(t,"style");i.decal=Tw(n,e)}}));var i=r.getVisual("decal");if(i){var a=r.getVisual("style");a.decal=Tw(i,e)}}}))}var Rw="6.1.0",Nw={zrender:"6.1.0"},Ew=1,zw=800,Bw=900,Vw=920,Fw=1e3,Hw=2e3,Gw=5e3,Ww=1e3,Yw=1100,Uw=2e3,Xw=3e3,Zw=4e3,qw=4500,$w=4600,Kw=5e3,Jw=6e3,Qw=7e3,tS={PROCESSOR:{SERIES_FILTER:zw,AXIS_STATISTICS:Vw,FILTER:Fw,STATISTIC:Gw,STATISTICS:Gw},VISUAL:{LAYOUT:Ww,PROGRESSIVE_LAYOUT:Yw,GLOBAL:Uw,CHART:Xw,POST_CHART_LAYOUT:$w,COMPONENT:Zw,BRUSH:Kw,CHART_ITEM:qw,ARIA:Jw,DECAL:Qw}},eS="__flagInMainProcess",nS="__mainProcessVersion",rS="__pendingUpdate",iS="__needsUpdateStatus",aS=/^[a-zA-Z0-9_]+$/,oS="__connectUpdateStatus",sS=0,lS=1,uS=2;function cS(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(!this.isDisposed())return dS(this,t,e);ES(this.id)}}function hS(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return dS(this,t,e)}}function dS(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),$.prototype[e].apply(t,n)}var pS,fS,gS,yS,vS,mS,xS,bS,_S,wS,SS,MS,OS,IS,TS,CS,AS,DS,kS,LS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e}($),PS=LS.prototype;PS.on=hS("on"),PS.off=hS("off");var jS=function(t){function e(e,n,r){var i=t.call(this,new t_)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r=r||{},i.__v_skip=!0,i._dom=e;var a="canvas",o="auto",s=!1;i[nS]=1,r.ssr&&Di((function(t){var e=wu(t),n=e.dataIndex;if(null!=n){var r=Object(b["createHashMap"])();return r.set("series_index",e.seriesIndex),r.set("data_index",n),e.ssrType&&r.set("ssr_type",e.ssrType),r}}));var l=i._zr=Mi(e,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Object(b["retrieve2"])(r.useDirtyRect,s),useCoarsePointer:Object(b["retrieve2"])(r.useCoarsePointer,o),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=mb(Object(b["bind"])(l.flush,l),17),i._updateTheme(n),i._locale=ed(r.locale||Qh),i._coordSysMgr=new bp;var u=i._api=TS(i);function c(t,e){return t.__prio-e.__prio}return ke(GS,c),ke(FS,c),i._scheduler=new Xb(i,u,FS,GS),i._messageCenter=new LS,i._initEvents(),i.resize=Object(b["bind"])(i.resize,i),l.animation.on("frame",i._onframe,i),wS(l,i),SS(l,i),Object(b["setAsPrimitive"])(i),i}return f(e,t),e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,e=this._model,n=this._api;if(DS(this),this[rS]){var r=this[rS].silent;this[eS]=!0,kS(this);try{pS(this),yS.update.call(this,null,this[rS].updateParams)}catch(o){throw this[eS]=!1,this[rS]=null,o}this._zr.flush(),this[eS]=!1,this[rS]=null,bS.call(this,r),_S.call(this,r)}else if(t.unfinished){var i=Ew;do{t.unfinished=!1;var a=Nr["d"].getTime();t.performSeriesTasks(e),t.performDataProcessorTasks(e),mS(this,e),t.performVisualTasks(e),IS(this,this._model,n,"remain",{}),i-=Nr["d"].getTime()-a}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this[eS])if(this._disposed)ES(this.id);else{var r,i,a;if(Object(b["isObject"])(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,a=e.transition,e=e.notMerge),this[eS]=!0,kS(this),!this._model||e){var o=new Wf(this._api),s=this._theme,l=this._model=new Ef;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,o)}this._model.setOption(t,{replaceMerge:i},HS);var u={seriesTransition:a,optionChanged:!0};if(n)this[rS]={silent:r,updateParams:u},this[eS]=!1,this.getZr().wakeUp();else{try{pS(this),yS.update.call(this,null,u)}catch(c){throw this[rS]=null,this[eS]=!1,c}this._ssr||this._zr.flush(),this[rS]=null,this[eS]=!1,bS.call(this,r),_S.call(this,r)}}},e.prototype.setTheme=function(t,e){if(!this[eS])if(this._disposed)ES(this.id);else{var n=this._model;if(n){var r=e&&e.silent,i=null;this[rS]&&(null==r&&(r=this[rS].silent),i=this[rS].updateParams,this[rS]=null),this[eS]=!0,kS(this);try{this._updateTheme(t),n.setTheme(this._theme),pS(this),yS.update.call(this,{type:"setTheme"},i)}catch(a){throw this[eS]=!1,a}this[eS]=!1,bS.call(this,r),_S.call(this,r)}}},e.prototype._updateTheme=function(t){Object(b["isString"])(t)&&(t=WS[t]),t&&(t=Object(b["clone"])(t),t&&fg(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||x.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var e=this._zr.painter;return e.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var e=this._zr.painter;return e.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,e=t.storage.getDisplayList();return Object(b["each"])(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(!this._disposed){t=t||{};var e=t.excludeComponents,n=this._model,r=[],i=this;Object(b["each"])(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(b["each"])(r,(function(t){t.group.ignore=!1})),a}ES(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,i=Math.max,a=1/0;if(XS[n]){var o=a,s=a,l=-a,u=-a,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();Object(b["each"])(US,(function(a,h){if(a.group===n){var d=e?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(Object(b["clone"])(t)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),l=i(p.right,l),u=i(p.bottom,u),c.push({dom:d,left:p.left,top:p.top})}})),o*=h,s*=h,l*=h,u*=h;var d=l-o,p=u-s,f=Nr["d"].createCanvas(),g=Mi(f,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:p}),e){var y="";return Object(b["each"])(c,(function(t){var e=t.left-o,n=t.top-s;y+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"})),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new nu({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),Object(b["each"])(c,(function(t){var e=new Xl({style:{x:t.left*h-o,y:t.top*h-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}ES(this.id)},e.prototype.convertToPixel=function(t,e,n){return vS(this,"convertToPixel",t,e,n)},e.prototype.convertToLayout=function(t,e,n){return vS(this,"convertToLayout",t,e,n)},e.prototype.convertFromPixel=function(t,e,n){return vS(this,"convertFromPixel",t,e,n)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=Qa(r,t);return Object(b["each"])(i,(function(t,r){r.indexOf("Models")>=0&&Object(b["each"])(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var a=this._chartsMap[t.__viewId];a&&a.containPoint&&(n=n||a.containPoint(e,t))}else 0}),this)}),this),!!n}ES(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=Qa(n,t,{defaultMainType:"series"}),i=r.seriesModel;var a=i.getData(),o=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?a.indexOfRawIndex(r.dataIndex):null;return null!=o?a_(a,o,e):o_(a,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(b["each"])(NS,(function(e){var n=function(n){var r,i=t.getModel(),a=n.target,o="globalout"===e;if(o?r={}:a&&h_(a,(function(t){var e=wu(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType,a)||{},!0}if(e.eventData)return r=Object(b["extend"])({},e.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:a,packedEvent:r,model:u,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)}));var e=this._messageCenter;Object(b["each"])(VS,(function(n,r){e.on(r,(function(e){t.trigger(r,e)}))})),c_(e,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?ES(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)ES(this.id);else{this._disposed=!0;var t=this.getDom();t&&ao(this.getDom(),$S,"");var e=this,n=e._api,r=e._model;Object(b["each"])(e._componentsViews,(function(t){t.dispose(r,n)})),Object(b["each"])(e._chartsViews,(function(t){t.dispose(r,n)})),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete US[e.id]}},e.prototype.resize=function(t){if(!this[eS])if(this._disposed)ES(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[rS]&&(null==r&&(r=this[rS].silent),n=!0,this[rS]=null),this[eS]=!0,kS(this);try{n&&pS(this),yS.update.call(this,{type:"resize",animation:Object(b["extend"])({duration:0},t&&t.animation)})}catch(i){throw this[eS]=!1,i}this[eS]=!1,bS.call(this,r),_S.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)ES(this.id);else if(Object(b["isObject"])(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),YS[t]){var n=YS[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?ES(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(b["extend"])({},t);return e.type=BS[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)ES(this.id);else if(Object(b["isObject"])(e)||(e={silent:!!e}),zS[t.type]&&this._model)if(this[eS])this._pendingActions.push(t);else{var n=e.silent;xS.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&x.browser.weChat&&this._throttledZrFlush(),bS.call(this,n),_S.call(this,n)}},e.prototype.updateLabelLayout=function(){p_.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)ES(this.id);else{var e=t.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(e);0,r.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t,e,n,r,i){if(t._disposed)ES(t.id);else{for(var a,o=t._model,s=t._coordSysMgr.getCoordinateSystems(),l=Qa(o,n),u=0;u<s.length;u++){var c=s[u];if(c[e]&&null!=(a=c[e](o,l,r,i)))return a}0}}function e(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function n(t){var e=[],n=[],r=!1;if(t.eachComponent((function(t,i){var a=i.get("zlevel")||0,o=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===t?n:e).push({zlevel:a,z:o,idx:i.componentIndex,type:t,key:s})})),r){var i,a,o=e.concat(n);ke(o,(function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel})),Object(b["each"])(o,(function(e){var n=t.getComponent(e.type,e.idx),r=e.zlevel,o=e.key;null!=i&&(r=Math.max(i,r)),o?(r===i&&o!==a&&r++,a=o):a&&(r===i&&r++,a=""),i=r,n.setZLevel(r)}))}}function r(t){for(var e=[],n=t.currentStates,r=0;r<n.length;r++){var i=n[r];"emphasis"!==i&&"blur"!==i&&"select"!==i&&e.push(i)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Uu&&t.states.emphasis?e.push("emphasis"):t.hoverState===Yu&&t.states.blur&&e.push("blur"),t.useStates(e)}function i(t,e){var n=t._zr;if("canvas"===n.painter.type){var r=n.storage,i=0;r.traverse((function(t){t.isGroup||i++}));var a=i>Object(b["retrieve2"])(e.get("hoverLayerThreshold"),Jp.hoverLayerThreshold)&&!x.node&&!x.worker;(t._usingTHL||a)&&(e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){var e=t.states.emphasis;e&&e.hoverLayer!==fx&&(e.hoverLayer=a?px:dx)}))}})),t._usingTHL=a)}}function a(t,e){var n=t.get("blendMode")||null;e.eachRendered((function(t){t.isGroup||(t.style.blend=n)}))}function o(t,e){if(!t.preventAutoZ){var n=Jx(t);e.eachRendered((function(t){return tb(t,n.z,n.zlevel),!0}))}}function s(t,e){e.eachRendered((function(t){if(!ih(t)){var e=t.getTextContent(),n=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}}))}function l(t,e){var n=t.getModel("stateAnimation"),i=t.isAnimationEnabled(),a=n.get("duration"),o=a>0?{duration:a,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered((function(t){if(t.states&&t.states.emphasis){if(ih(t))return;if(t instanceof Bl&&Jc(t),t.__dirty){var e=t.prevStates;e&&t.useStates(e)}if(i){t.stateTransition=o;var n=t.getTextContent(),a=t.getTextGuideLine();n&&(n.stateTransition=o),a&&(a.stateTransition=o)}t.__dirty&&r(t)}}))}pS=function(t){__(t._model);var e=t._scheduler;e.restorePipelines(t._zr,t._model),e.prepareStageTasks(),fS(t,!0),fS(t,!1),e.plan()},fS=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,a=e?t._componentsMap:t._chartsMap,o=t._zr,s=t._api,l=0;l<i.length;l++)i[l].__alive=!1;function u(t){var l=t.__requireNewView;t.__requireNewView=!1;var u="_ec_"+t.id+"_"+t.type,c=!l&&a[u];if(!c){var h=jo(t.type),d=e?xv.getClass(h.main,h.sub):fb.getClass(h.sub);0,c=new d,c.init(n,s),a[u]=c,i.push(c),o.add(c.group)}t.__viewId=c.__id=u,c.__alive=!0,c.__model=t,c.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},!e&&r.prepareView(c,t,n,s)}e?n.eachComponent((function(t,e){"series"!==t&&u(e)})):n.eachSeries(u);for(l=0;l<i.length;){var c=i[l];c.__alive?l++:(!e&&c.renderTask.dispose(),o.remove(c.group),c.dispose(n,s),i.splice(l,1),a[c.__id]===c&&delete a[c.__id],c.__id=c.group.__ecComponentInfo=null)}},gS=function(t,e,n,r,i){var a=t._model;if(a.setUpdatePayload(n),r){var o,s=io(n,r,i),l=n.excludeSeriesId;null!=l&&(o=Object(b["createHashMap"])(),Object(b["each"])(Aa(l),(function(t){var e=Ga(t,null);null!=e&&o.set(e,!0)}))),a&&a.eachComponent(s,(function(e){var r=o&&null!=o.get(e.id);if(!r)if(Kc(n))if(e instanceof vv)n.type!==Ku||n.notBlur||e.get(["emphasis","disabled"])||Lc(e,n,t._api);else{var i=Pc(e.mainType,e.componentIndex,n.name,t._api),a=i.focusSelf,s=i.dispatchers;n.type===Ku&&a&&!n.notBlur&&kc(e.mainType,e.componentIndex,t._api),s&&Object(b["each"])(s,(function(t){n.type===Ku?wc(t):Sc(t)}))}else $c(n)&&e instanceof vv&&(Nc(e,n,t._api),Ec(e),AS(t))}),t),a&&a.eachComponent(s,(function(e){var n=o&&null!=o.get(e.id);n||u(t["series"===r?"_chartsMap":"_componentsMap"][e.__viewId])}),t)}else Object(b["each"])([].concat(t._componentsViews).concat(t._chartsViews),u);function u(r){r&&r.__alive&&r[e]&&r[e](r.__model,a,t._api,n)}},yS={prepareAndUpdate:function(t){pS(this),yS.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(t,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){w_(r),r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),o.create(r,i),p_.trigger("coordsys:aftercreate",r,i),s.performDataProcessorTasks(r,t),mS(this,r),o.update(r,i),e(r),s.performVisualTasks(r,t);var l=r.get("backgroundColor")||"transparent";a.setBackgroundColor(l);var u=r.get("darkMode");null!=u&&"auto"!==u&&a.setDarkMode(u),MS(this,r,i,t,n),p_.trigger("afterupdate",r,i)}},updateTransform:function(t){var e=this,n=e._model,r=e._api;if(n){n.setUpdatePayload(t);var i=[];n.eachComponent((function(a,o){if(a!==Ou){var s=e.getViewOfComponentModel(o);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(o,n,r,t);l&&l.update&&i.push(s)}else i.push(s)}}));var a=Object(b["createHashMap"])();n.eachSeries((function(i){var o=e._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var l=o.updateTransform(i,n,r,t);l&&l.update&&a.set(i.uid,1)}else a.set(i.uid,1)})),e._scheduler.performVisualTasks(n,t,{setDirty:!0,dirtyMap:a}),IS(e,n,r,t,{},a),p_.trigger("afterupdate",n,r)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),fb.markUpdateMethod(t,"updateView"),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),MS(this,n,this._api,t,{}),p_.trigger("afterupdate",n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries((function(t){t.getData().clearAllVisual()})),fb.markUpdateMethod(t,"updateVisual"),e(r),this._scheduler.performVisualTasks(r,t,{visualType:"visual",setDirty:!0}),r.eachComponent((function(e,i){if("series"!==e){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,t)}})),r.eachSeries((function(e){var i=n._chartsMap[e.__viewId];i.updateVisual(e,r,n._api,t)})),p_.trigger("afterupdate",r,this._api))},updateLayout:function(t){yS.update.call(this,t)}},vS=t,mS=function(t,e){var n=t._chartsMap,r=t._scheduler;e.eachSeries((function(t){r.updateStreamModes(t,n[t.__viewId])}))},xS=function(t,e){var n=this,r=this.getModel(),i=t.type,a=t.escapeConnect,o=zS[i],s=(o.update||"update").split(":"),l=s.pop(),u=null!=s[0]&&jo(s[0]);this[eS]=!0,kS(this);var c=[t],h=!1;t.batch&&(h=!0,c=Object(b["map"])(t.batch,(function(e){return e=Object(b["defaults"])(Object(b["extend"])({},e),t),e.batch=null,e})));var d,p=[],f=[],g=o.nonRefinedEventType,y=$c(t),v=Kc(t);if(v&&Ac(this._api),Object(b["each"])(c,(function(e){var i=o.action(e,r,n._api);if(o.refineEvent?f.push(i):d=i,d=d||Object(b["extend"])({},e),d.type=g,p.push(d),v){var a=to(t),s=a.queryOptionMap,c=a.mainTypeSpecified,h=c?s.keys()[0]:"series";gS(n,l,e,h),AS(n)}else y?(gS(n,l,e,"series"),AS(n)):u&&gS(n,l,e,u.main,u.sub)})),"none"!==l&&!v&&!y&&!u)try{this[rS]?(pS(this),yS.update.call(this,t),this[rS]=null):yS[l].call(this,t)}catch(w){throw this[eS]=!1,w}if(d=h?{type:g,escapeConnect:a,batch:p}:p[0],this[eS]=!1,!e){var m=void 0;if(o.refineEvent){var x=o.refineEvent(f,t,r,this._api).eventContent;Object(b["assert"])(Object(b["isObject"])(x)),m=Object(b["defaults"])({type:o.refinedEventType},x),m.fromAction=t.type,m.fromActionPayload=t,m.escapeConnect=!0}var _=this._messageCenter;_.trigger(d.type,d),m&&_.trigger(m.type,m)}},bS=function(t){var e=this._pendingActions;while(e.length){var n=e.shift();xS.call(this,n,t)}},_S=function(t){!t&&this.trigger("updated")},wS=function(t,e){t.on("rendered",(function(n){e.trigger("rendered",n),!t.animation.isFinished()||e[rS]||e._scheduler.unfinished||e._pendingActions.length?t.refresh():e.trigger("finished")}))},SS=function(t,e){t.on("mouseover",(function(t){var n=t.target,r=h_(n,Xc);r&&(jc(r,t,e._api),AS(e))})).on("mouseout",(function(t){var n=t.target,r=h_(n,Xc);r&&(Rc(r,t,e._api),AS(e))})).on("click",(function(t){var n=t.target,r=h_(n,(function(t){return null!=wu(t).dataIndex}),!0);if(r){var i=r.selected?"unselect":"select",a=wu(r);e._api.dispatchAction({type:i,dataType:a.dataType,dataIndexInside:a.dataIndex,seriesIndex:a.seriesIndex,isFromClick:!0})}}))},MS=function(t,e,r,i,a){n(e),OS(t,e,r,i,a),Object(b["each"])(t._chartsViews,(function(t){t.__alive=!1})),IS(t,e,r,i,a),Object(b["each"])(t._chartsViews,(function(t){t.__alive||t.remove(e,r)}))},OS=function(t,e,n,r,i,a){Object(b["each"])(a||t._componentsViews,(function(t){var i=t.__model;s(i,t),t.render(i,e,n,r),o(i,t),l(i,t)}))},IS=function(t,e,n,r,u,c){var h=t._scheduler;u=Object(b["extend"])(u||{},{updatedSeries:e.getSeries()}),p_.trigger("series:beforeupdate",e,n,u);var d=!1;e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];n.__alive=!0;var i=n.renderTask;h.updatePayload(i,r),s(e,n),c&&c.get(e.uid)&&i.dirty(),i.perform(h.getPerformArgs(i))&&(d=!0),n.group.silent=!!e.get("silent"),a(e,n),Ec(e)})),h.unfinished=d||h.unfinished,p_.trigger("series:layoutlabels",e,n,u),p_.trigger("series:transition",e,n,u),e.eachSeries((function(e){var n=t._chartsMap[e.__viewId];o(e,n),l(e,n)})),i(t,e),p_.trigger("series:afterupdate",e,n,u)},AS=function(t){t[iS]=!0,t.getZr().wakeUp()},kS=function(t){t[nS]=(t[nS]+1)%1e6},DS=function(t){t[iS]&&(t.getZr().storage.traverse((function(t){ih(t)||r(t)})),t[iS]=!1)},TS=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return f(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){while(e){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){wc(e,n),AS(t)},n.prototype.leaveEmphasis=function(e,n){Sc(e,n),AS(t)},n.prototype.enterBlur=function(e){Mc(e),AS(t)},n.prototype.leaveBlur=function(e){Oc(e),AS(t)},n.prototype.enterSelect=function(e){Ic(e),AS(t)},n.prototype.leaveSelect=function(e){Tc(e),AS(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n.prototype.getECUpdateCycleVersion=function(){return t[nS]},n.prototype.usingTHL=function(){return t._usingTHL},n}(Bu))(t)},CS=function(t){function e(t,e){for(var n=0;n<t.length;n++){var r=t[n];r[oS]=e}}Object(b["each"])(BS,(function(n,r){t._messageCenter.on(r,(function(n){if(XS[t.group]&&t[oS]!==sS){if(n&&n.escapeConnect)return;var r=t.makeActionFromEvent(n),i=[];Object(b["each"])(US,(function(e){e!==t&&e.group===t.group&&i.push(e)})),e(i,sS),Object(b["each"])(i,(function(t){t[oS]!==lS&&t.dispatchAction(r)})),e(i,uS)}}))}))}}(),e}($),RS=jS.prototype;RS.on=cS("on"),RS.off=cS("off"),RS.one=function(t,e,n){var r=this;function i(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];e&&e.apply&&e.apply(this,n),r.off(t,i)}Tf("ECharts#one is deprecated."),this.on.call(this,t,i,n)};var NS=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function ES(t){0}var zS={},BS={},VS={},FS=[],HS=[],GS=[],WS={},YS={},US={},XS={},ZS=+new Date-0,qS=+new Date-0,$S="_echarts_instance_";function KS(t,e,n){var r=!(n&&n.ssr);if(r){0;var i=nM(t);if(i)return i;0}var a=new jS(t,e,n);return a.id="ec_"+ZS++,US[a.id]=a,r&&ao(t,$S,a.id),CS(a),p_.trigger("afterinit",a),a}function JS(t){if(Object(b["isArray"])(t)){var e=t;t=null,Object(b["each"])(e,(function(e){null!=e.group&&(t=e.group)})),t=t||"g_"+qS++,Object(b["each"])(e,(function(e){e.group=t}))}return XS[t]=!0,t}function QS(t){XS[t]=!1}var tM=QS;function eM(t){Object(b["isString"])(t)?t=US[t]:t instanceof jS||(t=nM(t)),t instanceof jS&&!t.isDisposed()&&t.dispose()}function nM(t){return US[oo(t,$S)]}function rM(t){return US[t]}function iM(t,e){WS[t]=e}function aM(t){Object(b["indexOf"])(HS,t)<0&&HS.push(t)}function oM(t,e){vM(FS,t,e,Hw)}function sM(t){uM("afterinit",t)}function lM(t){uM("afterupdate",t)}function uM(t,e){p_.on(t,e)}function cM(t,e,n){var r,i,a,o,s;function l(t){return t.toLowerCase()}Object(b["isFunction"])(e)&&(n=e,e=""),Object(b["isObject"])(t)?(r=t.type,i=t.event,o=t.update,s=t.publishNonRefinedEvent,n||(n=t.action),a=t.refineEvent):(r=t,i=e),i=l(i||r);var u=a?l(r):i;zS[r]||(Object(b["assert"])(aS.test(r)&&aS.test(i)),a&&Object(b["assert"])(i!==r),zS[r]={actionType:r,refinedEventType:i,nonRefinedEventType:u,update:o,action:n,refineEvent:a},VS[i]=1,a&&s&&(VS[u]=1),BS[u]=r)}function hM(t,e){bp.register(t,e)}function dM(t){var e=bp.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function pM(t,e){m_(t,e)}function fM(t,e){vM(GS,t,e,Ww,"layout",!0)}function gM(t,e){vM(GS,t,e,Xw,"visual",!0)}var yM=[];function vM(t,e,n,r,i,a){if((Object(b["isFunction"])(e)||Object(b["isObject"])(e))&&(n=e,e=r),!(Object(b["indexOf"])(yM,n)>=0)){yM.push(n);var o=Xb.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function mM(t,e){YS[t]=e}function xM(t){Object(Nr["e"])({createCanvas:t})}function bM(t,e,n){var r=y_("registerMap");r&&r(t,e,n)}function _M(t){var e=y_("getMap");return e&&e(t)}var wM=vy;function SM(t,e,n,r){return{eventContent:{selected:zc(n),isFromClick:e.isFromClick||!1}}}gM(Uw,Ib),gM(qw,Cb),gM(qw,Ab),gM(Uw,r_),gM(qw,i_),gM(Qw,Pw),aM(fg),oM(Bw,gg),mM("default",kb),cM({type:Ku,event:Ku,update:Ku},b["noop"]),cM({type:Ju,event:Ju,update:Ju},b["noop"]),cM({type:Qu,event:nc,update:Qu,action:b["noop"],refineEvent:SM,publishNonRefinedEvent:!0}),cM({type:tc,event:nc,update:tc,action:b["noop"],refineEvent:SM,publishNonRefinedEvent:!0}),cM({type:ec,event:nc,update:ec,action:b["noop"],refineEvent:SM,publishNonRefinedEvent:!0}),iM("default",{}),iM("dark",Qb);var MM={},OM=[],IM={registerPreprocessor:aM,registerProcessor:oM,registerPostInit:sM,registerPostUpdate:lM,registerUpdateLifecycle:uM,registerAction:cM,registerCoordinateSystem:hM,registerLayout:fM,registerVisual:gM,registerTransform:wM,registerLoading:mM,registerMap:bM,registerImpl:g_,PRIORITY:tS,ComponentModel:Hp,ComponentView:xv,SeriesModel:vv,ChartView:fb,registerComponentModel:function(t){Hp.registerClass(t)},registerComponentView:function(t){xv.registerClass(t)},registerSeriesModel:function(t){vv.registerClass(t)},registerChartView:function(t){fb.registerClass(t)},registerCustomSeries:function(t,e){m_(t,e)},registerSubTypeDefaulter:function(t,e){Hp.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Ci(t,e)}};function TM(t){Object(b["isArray"])(t)?Object(b["each"])(t,(function(t){TM(t)})):Object(b["indexOf"])(OM,t)>=0||(OM.push(t),Object(b["isFunction"])(t)&&(t={install:t}),t.install(IM))}function CM(t){return null==t?0:t.length||1}function AM(t){return t}var DM=function(){function t(t,e,n,r,i,a){this._old=t,this._new=e,this._oldKeyGetter=n||AM,this._newKeyGetter=r||AM,this.context=i,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.updateManyToMany=function(t){return this._updateManyToMany=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={},r=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,n,i,"_newKeyGetter");for(var a=0;a<t.length;a++){var o=r[a],s=n[o],l=CM(s);if(l>1){var u=s.shift();1===s.length&&(n[o]=s[0]),this._update&&this._update(u,a)}else 1===l?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},r={},i=[],a=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(e,r,a,"_newKeyGetter");for(var o=0;o<i.length;o++){var s=i[o],l=n[s],u=r[s],c=CM(l),h=CM(u);if(c>1&&1===h)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&h>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===h)this._update&&this._update(u,l),r[s]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(l[d]);else this._remove&&this._remove(l)}this._performRestAdd(a,r)},t.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e[r],a=CM(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else 1===a&&this._add&&this._add(i);e[r]=null}},t.prototype._initIndexMap=function(t,e,n,r){for(var i=this._diffModeMultiple,a=0;a<t.length;a++){var o="_ec_"+this[r](t[a],a);if(i||(n[a]=o),e){var s=e[o],l=CM(s);0===l?(e[o]=a,i&&n.push(o)):1===l?e[o]=[s,a]:s.push(a)}}},t}(),kM=DM,LM=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function PM(t,e){var n={},r=n.encode={},i=Object(b["createHashMap"])(),a=[],o=[],s={};Object(b["each"])(t.dimensions,(function(e){var n=t.getDimensionInfo(e),l=n.coordDim;if(l){0;var u=n.coordDimIndex;jM(r,l)[u]=e,n.isExtraCoord||(i.set(l,1),NM(n.type)&&(a[0]=e),jM(s,l)[u]=t.getDimensionIndex(n.name)),n.defaultTooltip&&o.push(e)}Iu.each((function(t,e){var i=jM(r,e),a=n.otherDims[e];null!=a&&!1!==a&&(i[a]=n.name)}))}));var l=[],u={};i.each((function(t,e){var n=r[e];u[e]=n[0],l=l.concat(n)})),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=Object(b["map"])(l,(function(e){return t.getDimensionInfo(e).storeDimIndex})),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(a=c.slice());var h=r.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new LM(s,e),n}function jM(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function RM(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function NM(t){return!("ordinal"===t||"time"===t)}var EM=function(){function t(t){this.otherDims={},null!=t&&b["extend"](this,t)}return t}(),zM=EM,BM=Ka(),VM={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},FM=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=WM(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(b["retrieve2"])(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=jg(this.source),n=!YM(t),r="",i=[],a=0,o=0;a<t;a++){var s=void 0,l=void 0,u=void 0,c=this.dimensions[o];if(c&&c.storeDimIndex===a)s=e?c.name:null,l=c.type,u=c.ordinalMeta,o++;else{var h=this.getSourceDimension(a);h&&(s=e?h.name:null,l=h.type)}i.push({property:s,type:l,ordinalMeta:u}),!e||null==s||c&&c.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+="$",r+=VM[l]||"f",u&&(r+=u.uid),r+="$"}var d=this.source,p=[d.seriesLayoutBy,d.startIndex,r].join("$$");return{dimensions:i,hash:p}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(e);a&&(r=a.name)}t.push(r)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function HM(t){return t instanceof FM}function GM(t){for(var e=Object(b["createHashMap"])(),n=0;n<(t||[]).length;n++){var r=t[n],i=Object(b["isObject"])(r)?r.name:r;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function WM(t){var e=BM(t);return e.dimNameMap||(e.dimNameMap=GM(t.dimensionsDefine))}function YM(t){return t>30}var UM,XM,ZM,qM,$M,KM,JM,QM=b["isObject"],tO=b["map"],eO="undefined"===typeof Int32Array?Array:Int32Array,nO="e\0\0",rO=-1,iO=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],aO=["_approximateExtent"],oO=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r=!1;HM(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},a=[],o={},s=!1,l={},u=0;u<n.length;u++){var c=n[u],h=b["isString"](c)?new zM({name:c}):c instanceof zM?c:new zM(c),d=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=d,h.coordDimIndex=0);var p=h.otherDims=h.otherDims||{};a.push(d),i[d]=h,null!=l[d]&&(s=!0),h.createInvertedIndices&&(o[d]=[]),r&&(h.storeDimIndex=u),0===p.itemName&&(this._nameDimIdx=h.storeDimIndex),0===p.itemId&&(this._idDimIdx=h.storeDimIndex)}if(this.dimensions=a,this._dimInfos=i,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=o,this._dimOmitted){var f=this._dimIdxToName=b["createHashMap"]();b["each"](a,(function(t){f.set(i[t].storeDimIndex,t)}))}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(null!=n)return n;var r=this._schema.getSourceDimension(e);return r?r.name:void 0},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(b["isNumber"](t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},t.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(null==e)return n.encodeFirstDimNotExtra[t];var r=n.encode[t];return r?r[e]:null},t.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,n){var r,i=this;if(t instanceof ky&&(r=t),!r){var a=this.dimensions,o=Og(t)||b["isArrayLike"](t)?new Rg(t,a.length):t;r=new ky;var s=tO(a,(function(t){return{type:i._dimInfos[t].type,property:t}}));r.initData(o,s,n)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=PM(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=e[s],a&&JM(this,o)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var r=this._dimInfos[e[n]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==ku&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,a=this._idList,o=r.getSource().sourceFormat,s=o===Tu;if(s&&!r.pure)for(var l=[],u=t;u<e;u++){var c=r.getItem(u,l);if(!this.hasItemOption&&Pa(c)&&(this.hasItemOption=!0),c){var h=c.name;null==i[u]&&null!=h&&(i[u]=Ga(h,null));var d=c.id;null==a[u]&&null!=d&&(a[u]=Ga(d,null))}}if(this._shouldMakeIdFromName())for(u=t;u<e;u++)JM(this,u);UM(this)}},t.prototype.getApproximateExtent=function(t,e){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),e)},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){QM(t)?b["extend"](this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return null==n&&null!=this._nameDimIdx&&(n=ZM(this,this._nameDimIdx,e)),null==n&&(n=""),n},t.prototype._getCategory=function(t,e){var n=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[n]:n},t.prototype.getId=function(t){return XM(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.get(r.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var n=this._store,r=this._dimInfos[t];if(r)return n.getByRawIndex(r.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var n=this,r=this._store;return b["isArray"](t)?r.getValues(tO(t,(function(t){return n._getStoreDimIndex(t)})),e):r.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,r=e.length;n<r;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t];var r=n&&n[e];return null==r||isNaN(r)?rO:r},t.prototype.each=function(t,e,n){b["isFunction"](t)&&(n=e,e=t,t=[]);var r=n||this,i=tO(qM(t),this._getStoreDimIndex,this);this._store.each(i,r?b["bind"](e,r):e)},t.prototype.filterSelf=function(t,e,n){b["isFunction"](t)&&(n=e,e=t,t=[]);var r=n||this,i=tO(qM(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?b["bind"](e,r):e),this},t.prototype.selectRange=function(t){var e=this,n={},r=b["keys"](t),i=[];return b["each"](r,(function(r){var a=e._getStoreDimIndex(r);n[a]=t[r],i.push(a)})),this._store=this._store.selectRange(n),this},t.prototype.mapArray=function(t,e,n){b["isFunction"](t)&&(n=e,e=t,t=[]),n=n||this;var r=[];return this.each(t,(function(){r.push(e&&e.apply(this,arguments))}),n),r},t.prototype.map=function(t,e,n,r){var i=n||r||this,a=tO(qM(t),this._getStoreDimIndex,this),o=KM(this);return o._store=this._store.map(a,i?b["bind"](e,i):e),o},t.prototype.modify=function(t,e,n,r){var i=n||r||this;var a=tO(qM(t),this._getStoreDimIndex,this);this._store.modify(a,i?b["bind"](e,i):e)},t.prototype.downSample=function(t,e,n,r){var i=KM(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,n,r),i},t.prototype.minmaxDownSample=function(t,e){var n=KM(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},t.prototype.lttbDownSample=function(t,e){var n=KM(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new Vh(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new kM(t?t.getStore().getIndices():[],this.getStore().getIndices(),(function(e){return XM(t,e)}),(function(t){return XM(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||{},QM(t)?b["extend"](this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],r=n&&n[e];return null==r?this.getVisual(e):r},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),b["isArray"](i)?i=i.slice():QM(i)&&(i=b["extend"]({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,QM(e)?b["extend"](r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){QM(t)?b["extend"](this._layout,t):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?b["extend"](this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Su(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){b["each"](this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:tO(this.dimensions,this._getDimInfo,this),this.hostModel)),$M(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];b["isFunction"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(b["slice"](arguments)))})},t.internalField=function(){UM=function(t){var e=t._invertedIndicesMap;b["each"](e,(function(n,r){var i=t._dimInfos[r],a=i.ordinalMeta,o=t._store;if(a){n=e[r]=new eO(a.categories.length);for(var s=0;s<n.length;s++)n[s]=rO;for(s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}}))},ZM=function(t,e,n){return Ga(t._getCategory(e,n),null)},XM=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=ZM(t,t._idDimIdx,e)),null==n&&(n=nO+e),n},qM=function(t){return b["isArray"](t)||(t=null!=t?[t]:[]),t},KM=function(e){var n=new t(e._schema?e._schema:tO(e.dimensions,e._getDimInfo,e),e.hostModel);return $M(n,e),n},$M=function(t,e){b["each"](iO.concat(e.__wrappedMethods||[]),(function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t.__wrappedMethods=e.__wrappedMethods,b["each"](aO,(function(n){t[n]=b["clone"](e[n])})),t._calculationInfo=b["extend"]({},e._calculationInfo)},JM=function(t,e){var n=t._nameList,r=t._idList,i=t._nameDimIdx,a=t._idDimIdx,o=n[e],s=r[e];if(null==o&&null!=i&&(n[e]=o=ZM(t,i,e)),null==s&&null!=a&&(r[e]=s=ZM(t,a,e)),null==s&&null!=o){var l=t._nameRepeatCount,u=l[o]=(l[o]||0)+1;s=o,u>1&&(s+="__ec__"+u),r[e]=s}}}(),t}(),sO=oO;function lO(t,e){return uO(t,e).dimensions}function uO(t,e){Og(t)||(t=Tg(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Object(b["createHashMap"])(),a=[],o=cO(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&YM(o),l=r===t.dimensionsDefine,u=l?WM(t):GM(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var h=Object(b["createHashMap"])(c),d=new My(o),p=0;p<d.length;p++)d[p]=-1;function f(t){var e=d[t];if(e<0){var n=r[t],i=Object(b["isObject"])(n)?n:{name:n},o=new zM,s=i.name;null!=s&&null!=u.get(s)&&(o.name=o.displayName=s),null!=i.type&&(o.type=i.type),null!=i.displayName&&(o.displayName=i.displayName);var l=a.length;return d[t]=l,o.storeDimIndex=t,a.push(o),o}return a[e]}if(!s)for(p=0;p<o;p++)f(p);h.each((function(t,e){var n=Aa(t).slice();if(1===n.length&&!Object(b["isString"])(n[0])&&n[0]<0)h.set(e,!1);else{var r=h.set(e,[]);Object(b["each"])(n,(function(t,n){var i=Object(b["isString"])(t)?u.get(t):t;null!=i&&i<o&&(r[n]=i,y(f(i),e,n))}))}}));var g=0;function y(t,e,n){null!=Iu.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,i.set(e,!0))}Object(b["each"])(n,(function(t){var e,n,r,i;if(Object(b["isString"])(t))e=t,i={};else{i=t,e=i.name;var a=i.ordinalMeta;i.ordinalMeta=null,i=Object(b["extend"])({},i),i.ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var s=h.get(e);if(!1!==s){if(s=Aa(s),!s.length)for(var u=0;u<(n&&n.length||1);u++){while(g<o&&null!=f(g).coordDim)g++;g<o&&s.push(g++)}Object(b["each"])(s,(function(t,a){var o=f(t);if(l&&null!=i.type&&(o.type=i.type),y(Object(b["defaults"])(o,i),e,a),null==o.name&&n){var s=n[a];!Object(b["isObject"])(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&Object(b["defaults"])(o.otherDims,r)}))}}));var v=e.generateCoord,m=e.generateCoordCount,x=null!=m;m=v?m||1:0;var _=v||"value";function w(t){null==t.name&&(t.name=t.coordDim)}if(s)Object(b["each"])(a,(function(t){w(t)})),a.sort((function(t,e){return t.storeDimIndex-e.storeDimIndex}));else for(var S=0;S<o;S++){var M=f(S),O=M.coordDim;null==O&&(M.coordDim=hO(_,i,x),M.coordDimIndex=0,(!v||m<=0)&&(M.isExtraCoord=!0),m--),w(M),null!=M.type||sf(t,S)!==Qp.Must&&(!M.isExtraCoord||null==M.otherDims.itemName&&null==M.otherDims.seriesName)||(M.type="ordinal")}return Mo(a,(function(t){return t.name}),(function(t,e){e>0&&(t.name=t.name+(e-1))})),new FM({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function cO(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Object(b["each"])(e,(function(t){var e;Object(b["isObject"])(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}function hO(t,e,n){if(n||e.hasKey(t)){var r=0;while(e.hasKey(t+r))r++;t+=r}return e.set(t,!0),t}var dO=function(){function t(t){this.coordSysDims=[],this.axisMap=Object(b["createHashMap"])(),this.categoryAxisMap=Object(b["createHashMap"])(),this.coordSysName=t}return t}();function pO(t){var e=t.get("coordinateSystem"),n=new dO(e),r=fO[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var fO={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",eo).models[0],a=t.getReferringComponents("yAxis",eo).models[0];e.coordSysDims=["x","y"],n.set("x",i),n.set("y",a),gO(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),gO(a)&&(r.set("y",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",eo).models[0];e.coordSysDims=["single"],n.set("single",i),gO(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",eo).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),gO(a)&&(r.set("radius",a),e.firstCategoryDimIndex=0),gO(o)&&(r.set("angle",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();Object(b["each"])(a.parallelAxisIndex,(function(t,a){var s=i.getComponent("parallelAxis",t),l=o[a];n.set(l,s),gO(s)&&(r.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=a))}))},matrix:function(t,e,n,r){var i=t.getReferringComponents("matrix",eo).models[0];e.coordSysDims=["x","y"];var a=i.getDimensionModel("x"),o=i.getDimensionModel("y");n.set("x",a),n.set("y",o),r.set("x",a),r.set("y",o)}};function gO(t){return"category"===t.get("type")}function yO(t,e,n){n=n||{};var r,i,a,o=n.byIndex,s=n.stackedCoordDimension;vO(e)?r=e:(i=e.schema,r=i.dimensions,a=e.store);var l,u,c,h,d=!(!t||!t.get("stack")),p=!0;function f(t){return"ordinal"!==t.type&&"time"!==t.type}if(Object(b["each"])(r,(function(t,e){Object(b["isString"])(t)&&(r[e]=t={name:t}),f(t)||(p=!1)})),Object(b["each"])(r,(function(t,e){d&&!t.isExtraCoord&&(o||l||!t.ordinalMeta||(l=t),u||!f(t)||p&&("x"===t.coordDim||"angle"===t.coordDim)||s&&s!==t.coordDim||(u=t))})),!u||o||l||(o=!0),u){c="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var g=u.coordDim,y=u.type,v=0;Object(b["each"])(r,(function(t){t.coordDim===g&&v++}));var m={name:c,coordDim:g,coordDimIndex:v,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},x={name:h,coordDim:h,coordDimIndex:v+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(a&&(m.storeDimIndex=a.ensureCalculationDimension(h,y),x.storeDimIndex=a.ensureCalculationDimension(c,y)),i.appendCalculationDimension(m),i.appendCalculationDimension(x)):(r.push(m),r.push(x))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:o,stackedOverDimension:h,stackResultDimension:c}}function vO(t){return!HM(t.schema)}function mO(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function xO(t,e){return mO(t,e)?t.getCalculationInfo("stackResultDimension"):e}function bO(t,e){var n,r=t.get("coordinateSystem"),i=bp.get(r);return e&&e.coordSysDims&&(n=b["map"](e.coordSysDims,(function(t){var n={name:t},r=e.axisMap.get(t);if(r){var i=r.get("type");n.type=RM(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function _O(t,e,n){var r,i;return n&&b["each"](t,(function(t,a){var o=t.coordDim,s=n.categoryAxisMap.get(o);s&&(null==r&&(r=a),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==r||(t[r].otherDims.itemName=0),r}function wO(t,e,n){n=n||{};var r,i=e.getSourceManager(),a=!1;t?(a=!0,r=Tg(t)):(r=i.getSource(),a=r.sourceFormat===Tu);var o=pO(e),s=bO(e,o),l=n.useEncodeDefaulter,u=b["isFunction"](l)?l:l?b["curry"](nf,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=uO(r,c),d=_O(h.dimensions,n.createInvertedIndices,o),p=a?null:i.getSharedDataStore(h),f=yO(e,{schema:h,store:p}),g=new sO(h,e);g.setCalculationInfo(f);var y=null!=d&&SO(r)?function(t,e,n,r){return r===d?n:this.defaultDimValueGetter(t,e,n,r)}:null;return g.hasItemOption=!1,g.initData(a?r:p,null,y),g}function SO(t){if(t.sourceFormat===Tu){var e=MO(t.data||[]);return!b["isArray"](La(e))}}function MO(t){var e=0;while(e<t.length&&null==t[e])e++;return t[e]}var OO=wO,IO=function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Wo(IO);var TO=IO,CO=0,AO=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++CO,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&Object(b["map"])(r,DO);return new t({categories:i,needCollect:!i,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(!Object(b["isString"])(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var r=this._getOrCreateMap();return e=r.get(t),null==e&&(n?(e=this.categories.length,this.categories[e]=t,r.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(b["createHashMap"])(this.categories))},t}();function DO(t){return Object(b["isObject"])(t)&&null!=t.value?t.value:t+""}var kO=AO,LO=0,PO=1,jO={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},RO=Object(b["keys"])(jO),NO=2,EO=3;function zO(t,e,n){var r;t=t||{};var i=od();if(i){var a=i.createBreakScaleMapper(e,n);a.hasBreaks()&&(Object(b["each"])(RO,(function(e){a[e]&&(t[e]=Object(b["bind"])(a[e],a))})),r=a)}return null==r&&YO(t,n),{brk:r,mapper:t}}function BO(t,e){Object(b["each"])(RO,(function(n){t[n]=e[n]}))}function VO(t,e){t.freeze=b["noop"]}function FO(t){return t.getExtentUnsafe(LO,NO)}function HO(t,e){return t.getExtentUnsafe(PO,e)||t.getExtentUnsafe(LO,e)}function GO(t){var e=HO(t,EO);return e[1]-e[0]}function WO(t){var e=t.getExtentUnsafe(LO,EO);return e[1]-e[0]}function YO(t,e){var n=t||{},r=[];return n._extents=r,r[LO]=e?e.slice():po(),Object(b["extend"])(n,UO),n}var UO={needTransform:function(){return!1},normalize:function(t){var e=this._extents[PO]||this._extents[LO];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[PO]||this._extents[LO];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=HO(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[LO].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){XO(this._extents,LO,t,e)},setExtent2:function(t,e,n){var r=this._extents;r[t]||(r[t]=r[LO].slice()),XO(r,t,e,n)},freeze:function(){0}};function XO(t,e,n,r){xo(n,r)&&(t[e][0]=n,t[e][1]=r)}function ZO(t){return qO(t)||KO(t)}function qO(t){return"interval"===t.type}function $O(t){return"time"===t.type}function KO(t){return"log"===t.type}function JO(t){return"ordinal"===t.type}function QO(t){var e=ga(t),n=Hi(10,e),r=Bi(t/n);return r?2===r?r=3:3===r?r=5:r*=2:r=1,Qi(r*n,-e)}function tI(t){return na(t)+2}function eI(t,e){return Gi(t)/Gi(e)}function nI(t,e,n){var r=n&&n.lookup;if(r)for(var i=0;i<r.from.length;i++)if(t===r.from[i])return r.to[i];return Hi(e,t)}function rI(t,e,n){var r=t.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(0!==r[0]){var a=zi(r[0]);e[1]||(r[1]+=a/2),r[0]-=a/2}else i?(r[0]=-1,r[1]=1):r[1]=1}return mo(r[0])&&mo(r[1])||(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function iI(t,e){return[t[0]!==e[0],t[1]!==e[1]]}function aI(t,e){return t=t||e,Bi(Ei(t,1))}function oI(t,e,n){var r=FO(t),i=r[0],a=t.count(),o=Math.max((e||0)+1,1);0!==i&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&l(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)l(s,!1,s===r[0]||s===r[1]);function l(t,e,r){n({value:t,offInterval:e},r)}s-o!==r[1]&&l(r[1],!0,!0)}var sI=function(t){function e(n){var r=t.call(this)||this;r.type="ordinal",r.parse=e.parse,BO(r,e.decoratedMethods);var i=n.ordinalMeta;i||(i=new kO({})),Object(b["isArray"])(i)&&(i=new kO({categories:Object(b["map"])(i,(function(t){return Object(b["isObject"])(t)?t.value:t}))})),r._ordinalMeta=i;var a=zO(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,VO(r,a.mapper),r}return f(e,t),e.parse=function(t){return null==t?t=NaN:Object(b["isString"])(t)?(t=this._ordinalMeta.getOrdinal(t),null==t&&(t=NaN)):t=Bi(t),t},e.prototype.getTicks=function(){var t=[];return oI(this,0,(function(e){t.push(e)})),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=Ni(a,e.length);i<o;++i){var s=n[i]=e[i];r[s]=i}for(var l=0;i<a;++i){while(null!=r[l])l++;n[i]=l,r[l]=i}}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(){var t=FO(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(Bi(this._mapper.scale(t)))},transformIn:function(t,e){return this._mapper.transformIn(this._getTickNumber(t),e)},transformOut:function(t,e){return this.getRawOrdinalNumber(this._mapper.transformOut(t,e))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,e){return this._mapper.getExtentUnsafe(t,e)},setExtent:function(t,e){return this._mapper.setExtent(t,e)},setExtent2:function(t,e,n){return this._mapper.setExtent2(t,e,n)}},e}(TO);TO.registerClass(sI);var lI=sI;function uI(t,e,n,r){for(var i=t.getTicks({expandToNicedExtent:!0}),a=[],o=t.getExtent(),s=1;s<i.length;s++){var l=i[s],u=i[s-1];if(!u["break"]&&!l["break"]){var c=0,h=[],d=l.value-u.value,p=d/e,f=tI(p);while(c<e-1){var g=Qi(u.value+(c+1)*p,f);g>o[0]&&g<o[1]&&h.push(g),c++}var y=od();y&&y.pruneTicksByBreak("auto",h,n,(function(t){return t}),r,o),a.push(h)}}return a}var cI=function(t){function e(n){var r=t.call(this)||this;r.type="interval",r.parse=e.parse,n=n||{};var i=sd(r,n),a=zO(r,i,null);return r.brk=a.brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return f(e,t),e.parse=function(t){return null==t||""===t?NaN:Number(t)},e.prototype.getConfig=function(){return Object(b["clone"])(this._cfg)},e.prototype.setConfig=function(t){var e=FO(this);this._cfg=t=Object(b["clone"])(t),null==t.niceExtent&&(t.niceExtent=e.slice()),null==t.intervalPrecision&&(t.intervalPrecision=tI(t.interval))},e.prototype.getTicks=function(t){t=t||{};var e=this._cfg,n=e.interval,r=FO(this),i=e.niceExtent,a=e.intervalPrecision,o=od(),s=this.brk,l=o&&s,u=[];if(!n)return u;if("only_break"===t.breakTicks&&l)return o.addBreaksToTicks(u,s.breaks,r),u;var c=3e3;r[0]<i[0]&&u.push({value:t.expandToNicedExtent?Qi(i[0]-n,a):r[0]});for(var h=function(t,e){return Bi((e-t)/n)},d=e.intervalCount,p=i[0],f=0;;f++){if(null==d){if(p>i[1]||!isFinite(p)||!isFinite(i[1]))break}else{if(f>d)break;p=Ni(p,i[1]),f===d&&(p=i[1])}if(u.push({value:p}),p=Qi(p+n,a),s){var g=s.calcNiceTickMultiple(p,h);g>=0&&(p=Qi(p+g*n,a))}if(u.length>0&&p===u[u.length-1].value)break;if(u.length>c)return[]}var y=u.length?u[u.length-1].value:i[1];return r[1]>y&&u.push({value:t.expandToNicedExtent?Qi(y+n,a):r[1]}),l&&o.pruneTicksByBreak(t.pruneByBreak,u,s.breaks,(function(t){return t.value}),e.interval,r),l&&"none"!==t.breakTicks&&o.addBreaksToTicks(u,s.breaks,r),u},e.prototype.getMinorTicks=function(t){return uI(this,t,ld(this),this._cfg.interval)},e.prototype.getLabel=function(t,e){if(null==t)return"";var n=e&&e.precision;null==n?n=na(t.value)||0:"auto"===n&&(n=this._cfg.intervalPrecision);var r=Qi(t.value,n,!0);return Ud(r)},e.type="interval",e}(TO);TO.registerClass(cI);var hI=cI,dI=function(t,e,n,r){while(n<r){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n},pI=function(t){function e(n){var r=t.call(this)||this;r.type="time",r.parse=e.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0;var i=sd(r,n),a=zO(r,i,null);return r.brk=a.brk,r}return f(e,t),e.prototype.getLabel=function(t){return Cd(t.value,xd[Td(Od(this._minLevelUnit))]||xd.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,e,n){return Ad(t,e,n,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,n=FO(this),r=od(),i=this.brk,a=r&&i,o=[];if(!e)return o;var s=this._useUTC;if(a&&"only_break"===t.breakTicks)return od().addBreaksToTicks(o,i.breaks,n),o;o=SI(this._minLevelUnit,this._approxInterval,s,n,WO(this),i);var l=bd.length-1,u=0;return Object(b["each"])(o,(function(t){t.time&&(l=Math.min(l,Object(b["indexOf"])(bd,t.time.upperTimeUnit)),u=Math.max(u,t.time.level))})),a&&od().pruneTicksByBreak(t.pruneByBreak,o,i.breaks,(function(t){return t.value}),this._approxInterval,n),a&&"none"!==t.breakTicks&&od().addBreaksToTicks(o,i.breaks,n,(function(t){for(var e=Math.max(Object(b["indexOf"])(bd,Dd(t.vmin,s)),Object(b["indexOf"])(bd,Dd(t.vmax,s))),n=0,r=0;r<bd.length;r++)if(!gI(bd[r],t.vmin,t.vmax,s)){n=r;break}var i=Math.min(n,l),a=Math.max(i,e);return{level:u,lowerTimeUnit:bd[a],upperTimeUnit:bd[i]}})),o},e.prototype.getMinorTicks=function(t){return uI(this,t,ld(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return Object(b["isNumber"])(t)?Math.round(t):+pa(t)},e.type="time",e}(TO),fI=[["second",cd],["minute",hd],["hour",dd],["quarter-day",6*dd],["half-day",12*dd],["day",1.2*pd],["half-week",3.5*pd],["week",7*pd],["month",31*pd],["quarter",95*pd],["half-year",fd/2],["year",fd]];function gI(t,e,n,r){return kd(new Date(e),t,r).getTime()===kd(new Date(n),t,r).getTime()}function yI(t,e){return t/=pd,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function vI(t){var e=30*pd;return t/=e,t>6?6:t>3?3:t>2?2:1}function mI(t){return t/=dd,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function xI(t,e){return t/=e?hd:cd,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function bI(t){return Ei(va(t,!0),1)}function _I(t,e,n){var r=Math.max(0,Object(b["indexOf"])(bd,e)-1);return kd(new Date(t),bd[r],n).getTime()}function wI(t,e){var n=new Date(0);n[t](1);var r=n.getTime();n[t](1+e);var i=n.getTime()-r;return function(t,e){return Math.max(0,Math.round((e-t)/i))}}function SI(t,e,n,r,i,a){var o=3e3,s=_d,l=0;function u(t,e,n,i,s,u,c){var h=wI(s,t),d=e,p=new Date(d);while(d<n&&d<=r[1]){if(c.push({value:d}),l++>o){0;break}if(p[s](p[i]()+t),d=p.getTime(),a){var f=a.calcNiceTickMultiple(d,h);f>0&&(p[s](p[i]()+f*t),d=p.getTime())}}c.push({value:d,notAdd:d>r[1]})}function c(t,i,a){var o=[],s=!i.length;if(!gI(Od(t),r[0],r[1],n)){s&&(i=[{value:_I(r[0],t,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var c=i[l].value,h=i[l+1].value;if(c!==h){var d=void 0,p=void 0,f=void 0,g=!1;switch(t){case"year":d=Math.max(1,Math.round(e/pd/365)),p=Ld(n),f=Bd(n);break;case"half-year":case"quarter":case"month":d=vI(e),p=Pd(n),f=Vd(n);break;case"week":case"half-week":case"day":d=yI(e,31),p=jd(n),f=Fd(n),g=!0;break;case"half-day":case"quarter-day":case"hour":d=mI(e),p=Rd(n),f=Hd(n);break;case"minute":d=xI(e,!0),p=Nd(n),f=Gd(n);break;case"second":d=xI(e,!1),p=Ed(n),f=Wd(n);break;case"millisecond":d=bI(e),p=zd(n),f=Yd(n);break}h>=r[0]&&c<=r[1]&&u(d,c,h,p,f,g,o),"year"===t&&a.length>1&&0===l&&a.unshift({value:a[0].value-d})}}for(l=0;l<o.length;l++)a.push(o[l])}}for(var h=[],d=[],p=0,f=0,g=0;g<s.length;++g){var y=Od(s[g]);if(Id(s[g])){c(s[g],h[h.length-1]||[],d);var v=s[g+1]?Od(s[g+1]):null;if(y!==v){if(d.length){f=p,d.sort((function(t,e){return t.value-e.value}));for(var m=[],x=0;x<d.length;++x){var _=d[x].value;0!==x&&d[x-1].value===_||(m.push(d[x]),_>=r[0]&&_<=r[1]&&p++)}var w=i/e;if(p>1.5*w&&f>w/1.5)break;if(h.push(m),p>w||t===s[g])break}d=[]}}}var S=Object(b["filter"])(Object(b["map"])(h,(function(t){return Object(b["filter"])(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),M=S.length-1,O=[];for(g=0;g<S.length;++g)for(var I=S[g],T=0;T<I.length;++T){var C=Dd(I[T].value,n);O.push({value:I[T].value,time:{level:M-g,upperTimeUnit:C,lowerTimeUnit:C}})}Mo(O,Oo,null),O.sort((function(t,e){return t.value-e.value}));var A=O[0],D=O[O.length-1],k=Dd(r[0],n),L=Dd(r[1],n);return(!A||A.value>r[0])&&O.unshift({value:r[0],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),(!D||D.value<r[1])&&O.push({value:r[1],time:{level:0,upperTimeUnit:L,lowerTimeUnit:L},notNice:!0}),O}var MI=function(t,e){var n=t.getExtent();if(n[0]===n[1]&&(n[0]-=pd,n[1]+=pd),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-pd}t.setExtent(n[0],n[1]);var i=aI(e.splitNumber,10),a=WO(t)/i,o=e.minInterval,s=e.maxInterval;null!=o&&a<o&&(a=o),null!=s&&a>s&&(a=s);var l=fI.length,u=Math.min(dI(fI,a,0,l),l-1),c=fI[u][1],h=fI[Math.max(u-1,0)][0];t.setTimeInterval({approxInterval:a,interval:c,minLevelUnit:h})};TO.registerClass(pI);var OI=pI,II=0,TI=1,CI=2,AI=function(t){function e(n){var r=t.call(this)||this;r.type="log",r.parse=hI.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[II]=i[TI]=a[II]=a[TI]=NaN,BO(r,e.mapperMethods);var s=od(),l=n.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,r,{noNegative:!0},CI,u),r.powStub=new hI({breakParsed:u.original}),r.intervalStub=new hI({breakParsed:u.transformed}),VO(r,r.intervalStub),r}return f(e,t),e.prototype.getTicks=function(t){var e=this.base,n=this.powStub,r=od(),i=this.intervalStub,a=i.getExtent(),o=n.getExtent(),s={lookup:{from:a,to:o}};return Object(b["map"])(i.getTicks(t||{}),(function(t){var i,a=t.value,o=nI(a,e,s);if(r){var l=r.getTicksBreakOutwardTransform(this,t,ld(n),this._lookup);l&&(i=l.vBreak,o=l.tickVal)}return{value:o,break:i}}),this)},e.prototype.getMinorTicks=function(t){return uI(this,t,ld(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,e){return this.intervalStub.getLabel(t,e)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(eI(t,this.base))},scale:function(t){return nI(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,e){return t=eI(t,this.base),e&&e.depth===NO?t:this.intervalStub.transformIn(t,e)},transformOut:function(t,e){var n=e?e.depth:null;return DI.depth=n,kI.lookup=this._lookup,nI(n===NO?t:this.intervalStub.transformOut(t,DI),this.base,kI)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,e){this.setExtent2(LO,t,e)},setExtent2:function(t,e,n){if(!(!xo(e,n)||e<=0||n<=0)){var r=LI,i=LI;if(t===LO){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(t,r[II]=e,r[TI]=n);var o=this.base;this.intervalStub.setExtent2(t,i[II]=eI(e,o),i[TI]=eI(n,o))}},getFilter:function(){return{g:0}},sanitize:function(t,e){return xo(e[0],e[1])&&Oa(t)&&t<=0&&(t=e[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,e){return null===e?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,e)}},e}(TO);TO.registerClass(AI);var DI={},kI={},LI=[],PI=AI,jI={value:1,category:1,time:1,log:1},RI=Ka();function NI(t){var e=t.get("type");return null!=e&&(b["hasOwn"](jI,e)||TO.getClass(e))||(e="value"),e}function EI(t,e,n){var r,i=od();switch(i&&(r=KI(t,e,n)),e){case"category":return new lI({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:po()});case"time":return new OI({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:r});case"log":return new PI({logBase:t.get("logBase"),breakOption:r});case"value":return new hI({breakOption:r});default:return new(TO.getClass(e)||hI)({})}}function zI(t,e,n){var r=n?HO(t,null):t.getExtentUnsafe(LO,null),i=r[0],a=r[1];return xo(i,a)?i===e||a===e?VI:i<e&&a>e?BI:FI:FI}var BI=1,VI=2,FI=3;function HI(t){RI(t).noOnMyZero=!0}function GI(t){return RI(t).noOnMyZero}function WI(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var n=wd(e);return function(e,r){return t.scale.getFormattedLabel(e,r,n)}}if(b["isString"](e))return function(n){var r=t.scale.getLabel(n),i=e.replace("{value}",null!=r?r:"");return i};if(b["isFunction"](e)){if("category"===t.type)return function(n,r){return e(YI(t,n),n.value-t.scale.getExtent()[0],null)};var r=od();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n["break"])),e(YI(t,n),i,a)}}return function(e){return t.scale.getLabel(e)}}function YI(t,e){var n=t.scale;return JO(n)?n.getLabel(e):e.value}function UI(t){var e=t.get("interval");return null==e?"auto":e}function XI(t){return"category"===t.type&&0===UI(t.getLabelModel())}function ZI(t,e){var n={};return b["each"](t.mapDimensionsAll(e),(function(e){n[xO(t,e)]=!0})),b["keys"](n)}function qI(t){return"middle"===t||"center"===t}function $I(t){return t.getShallow("show")}function KI(t,e,n){var r=t.get("breaks",!0);if(null!=r){if(!od())return void 0;if(!n||!JI(e))return;return r}}function JI(t){return"category"!==t}function QI(t,e,n,r,i,a){var o=KO(t),s=o?t.intervalStub:t;if(s.setExtent(r[0],r[1]),o){var l=t.powStub,u={depth:NO},c=t.transformOut(r[0],u),h=t.transformOut(r[1],u),d=iI(n,r);e[0]&&!d[0]&&(c=i[0]),e[1]&&!d[1]&&(h=i[1]),l.setExtent(c,h)}s.setConfig(a)}function tT(t,e){return JO(t)?t.getRawOrdinalNumber(e.value):e.value}function eT(t,e){return JO(t)&&!!e.get("boundaryGap")}var nT=function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),rT=wo(),iT="|&",aT=Ka(),oT=-2,sT=-1,lT=Ka();function uT(t,e){var n=t.model,r=aT(M_(n.ecModel)).keyed,i=r&&r.get(e);return i&&i.get(n.uid)}function cT(t,e){return pT(uT(t,e))}function hT(t,e){var n=[];return dT(t.model.ecModel,(function(t){for(var r=0;r<e.length;r++)e[r]&&t.serByIdx[e[r].seriesIndex]&&n.push(pT(t))})),n}function dT(t,e){var n=aT(M_(t)).keyed;n&&n.each((function(t,n){t.each((function(t,r){e(t,n,r)}))}))}function pT(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function fT(t,e){var n=t.model.ecModel,r=aT(M_(n)).axSer;r&&yT(n,r.get(t.model.uid),e)}function gT(t,e,n){var r=uT(t,e);r&&yT(t.model.ecModel,r.sers,n)}function yT(t,e,n){if(e)for(var r=0;r<e.length;r++){var i=e[r];t.isSeriesFiltered(i)||n(i)}}function vT(t,e){var n=uT(t,e);if(!n||!n.sers.length)return 0;var r=0;return yT(t.model.ecModel,n.sers,(function(){r++})),r}function mT(t,e,n){var r=aT(M_(t)).keyed,i=r&&r.get(e);i&&i.each((function(t){n(t.axis)}))}function xT(t,e){var n=t.model,r=aT(M_(n.ecModel)).keys;r&&Object(b["each"])(r.get(n.uid),(function(t){e(t)}))}function bT(t){var e=lT(S_(t)),n=e.keyed||(e.keyed=Object(b["createHashMap"])());dT(t,(function(e,r,i){var a=n.get(r)||n.set(r,Object(b["createHashMap"])()),o=a.get(i)||a.set(i,{});e.metrics.liPosMinGap&&wT.liPosMinGap(t,e,o)}))}function _T(t,e){wT[t]=e}var wT={};function ST(t,e,n){if(t){var r=e.ecModel,i=aT(M_(r)),a=t.model.uid,o=i.axSer||(i.axSer=Object(b["createHashMap"])()),s=o.get(a)||o.set(a,[]);s.push(e);var l=e.subType,u=e.getBaseAxis()===t,c=IT.get(MT(l,u,n))||IT.get(MT(l,u,null));if(c){var h=i.keyed||(i.keyed=Object(b["createHashMap"])()),d=i.keys||(i.keys=Object(b["createHashMap"])()),p=c.key,f=h.get(p)||h.set(p,Object(b["createHashMap"])()),g=f.get(a);g||(g=f.set(a,{axis:t,sers:[],serByIdx:[]}),g.metrics=c.getMetrics(t),(d.get(a)||d.set(a,[])).push(p)),g.sers.push(e),g.serByIdx[e.seriesIndex]=e}}}function MT(t,e,n){return t+iT+Object(b["retrieve2"])(e,!0)+iT+(n||"")}function OT(t,e){var n=MT(e.seriesType,e.baseAxis,e.coordSysType);IT.set(n,e),rT(t,(function(){t.registerProcessor(t.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:bT})}))}var IT=Object(b["createHashMap"])(),TT=Ka(),CT=1,AT=2,DT=3,kT=function(){function t(t,e,n,r,i){var a,o=JO(t),s=o?e.getCategories().length:null;if(o){var l=e.getCategories(!0);a=l&&!l.length}var u=n.slice();(qO(t)||KO(t)||$O(t))&&(go(u,PT(t,e.get("dataMin",!0))),yo(u,PT(t,e.get("dataMax",!0)))),bo(u)||(u[0]=u[1]=NaN);var c=[],h=[!1,!1],d=e.get("min",!0);"dataMin"===d?(c[0]=u[0],h[0]=!0):(c[0]=PT(t,Object(b["isFunction"])(d)?d({min:u[0],max:u[1]}):d),h[0]=null!=c[0]);var p=e.get("max",!0);"dataMax"===p?(c[1]=u[1],h[1]=!0):(c[1]=PT(t,Object(b["isFunction"])(p)?p({min:u[0],max:u[1]}):p),h[1]=null!=c[1]);var f=jT(t,e),g=o?null:u[1]-u[0]||Math.abs(u[0]);null==c[0]&&(c[0]=o?a?u[0]:s?0:NaN:u[0]-f[0]*g),null==c[1]&&(c[1]=o?a?u[1]:s?s-1:NaN:u[1]+f[1]*g),!mo(c[0])&&(c[0]=NaN),!mo(c[1])&&(c[1]=NaN);var y=a||Object(b["eqNaN"])(c[0])||Object(b["eqNaN"])(c[1])||o&&!s,v=qO(t),m=v&&e.needIncludeZero&&e.needIncludeZero();m&&(c[0]>0&&c[1]>0&&!h[0]&&(c[0]=0),c[0]<0&&c[1]<0&&!h[1]&&(c[1]=0));var x=!1;c[0]>c[1]&&(c.reverse(),x=!0);var _=PT(t,e.get("startValue",!0)),w=null!=_;!Oa(_)&&r&&(_=t.getDefaultStartValue?t.getDefaultStartValue():0),Oa(_)&&(w||!v||m)&&(_<c[0]&&!h[0]?(c[0]=_,h[0]=!0):_>c[1]&&!h[1]&&(c[1]=_,h[1]=!0));var S=this._i={scale:t,dataMM:u,noZoomEffMM:c,zoomMM:[],fixMM:h,zoomFixMM:[!1,!1],startValue:_,isBlank:y,incl0:m,tggAxInv:x,ctnShp:i};LT(S,c)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var t=this._i,e=t.zoomMM,n=t.noZoomEffMM,r=t.zoomFixMM,i=t.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:n.slice()},o=a.effMM;return null!=e[0]&&(o[0]=e[0],i[0]=r[0]=!0),null!=e[1]&&(o[1]=e[1],i[1]=r[1]=!0),LT(t,o),a},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(t,e){this._i.zoomMM[t]=e},t}();function LT(t,e){var n=t.scale,r=t.dataMM;n.sanitize&&(e[0]=n.sanitize(e[0],r),e[1]=n.sanitize(e[1],r),_o(e))}function PT(t,e){return null==e?null:Object(b["eqNaN"])(e)?NaN:t.parse(e)}function jT(t,e){var n;if(JO(t))n=[0,0];else{var r=e.get("boundaryGap");"boolean"===typeof r&&(r=null),n=Object(b["isArray"])(r)?r:[r,r]}return[RT(n[0]),RT(n[1])]}function RT(t){return Zr("boolean"===typeof t?0:t,1)||0}function NT(t){var e=TT(t.scale);return e.extent||(e.extent=po()),e}function ET(t,e){NT(t).dimIdxInCoord=e.get(t.dim)}function zT(t,e){var n=t.scale,r=t.model,i=t.dim;n.rawExtentInfo||BT(n,t,i,r,e)}function BT(t,e,n,r,i){var a=NT(e),o=a.extent,s=!1;fT(e,(function(r){if(r.boxCoordinateSystem){var i=pp(r).coord,l=a.dimIdxInCoord;if(l>=0){if(Object(b["isArray"])(i)){var u=i[l];null==u||Object(b["isArray"])(u)||fo(o,t.parse(u))}}else 0}else if(r.coordinateSystem){var c=r.getData();if(c){var h=t.getFilter?t.getFilter():null;Object(b["each"])(ZI(c,n),(function(t){vo(o,c.getApproximateExtent(t,h))}))}r.__requireStartValue&&r.__requireStartValue(e)&&(s=!0)}}));var l=YT(t,e,r),u=new kT(t,r,o,s,l);FT(t,u,i),a.extent=null}function VT(t,e){var n=t.scale;FT(n,new kT(n,t.model,e,!1,!1),DT)}function FT(t,e,n){t.rawExtentInfo=e,e.from=n}function HT(t,e){GT.set(t,e)}var GT=Object(b["createHashMap"])();function WT(t,e,n,r,i){t.rawExtentInfo||VT({scale:t,model:e},i||po());var a=t.rawExtentInfo.makeFinal(),o=a.effMM;return t.setExtent(o[0],o[1]),t.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get("legacyMinMaxDontInverseAxis")&&(r.inverse=!r.inverse),a}function YT(t,e,n){var r=eT(t,n),i=n.get("containShape",!0);if(null!=i||r||(i=!0),!i)return!1;var a=!1;return xT(e,(function(t){a=!!GT.get(t)||a})),a}function UT(t,e,n,r){var i;if(n.ctnShp&&(xT(t,(function(e){var n=GT.get(e);if(n){var a=n(t,r);a&&(i=i||[0,0],go(i,a[0]),yo(i,a[1]),HI(t))}})),i)){var a=e.getExtent();if(JO(e))t.onBand||e.setExtent2(PO,Ni(a[0],a[0]+i[0]),Ei(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=Ni(o[0],e.transformOut(e.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=Ei(o[1],e.transformOut(e.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&e.setExtent2(PO,o[0],o[1])}}}function XT(t,e){var n=KO(t),r=n?t.intervalStub:t,i=e.fixMinMax||[],a=n?t.getExtent():null,o=r.getExtent(),s=rI(o,i,e.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var l=n?qT(r,e):ZT(r,e),u=l.intervalPrecision,c=l.interval,h=e.userInterval;null!=h&&(l.interval=h,l.intervalPrecision=tI(h)),i[0]||(s[0]=Qi(Vi(s[0]/c)*c,u)),i[1]||(s[1]=Qi(Fi(s[1]/c)*c,u)),null!=h&&(l.niceExtent=s.slice()),QI(t,i,o,s,a,l)}function ZT(t,e){var n=aI(e.splitNumber,5),r=WO(t);var i=e.minInterval,a=e.maxInterval,o=va(r/n,!0);null!=i&&o<i&&(o=i),null!=a&&o>a&&(o=a);var s=tI(o),l=t.getExtent(),u=[Qi(Fi(l[0]/o)*o,s),Qi(Vi(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function qT(t,e){var n=aI(e.splitNumber,10),r=t.getExtent(),i=WO(t);var a=Ei(fa(i),1),o=n/i*a;o<=.5&&(a*=10);var s=tI(a),l=[Qi(Fi(r[0]/a)*a,s),Qi(Vi(r[1]/a)*a,s)];return{intervalPrecision:s,interval:a,niceExtent:l}}function $T(t){var e=t.scale,n=t.model,r=n.axis,i=n.ecModel;KT(e,n,r,i,null)}function KT(t,e,n,r,i){var a=WT(t,e,r,n,i),o=qO(t)||$O(t);JT(t,{splitNumber:e.get("splitNumber"),fixMinMax:a.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:a}),n&&r&&UT(n,t,a,r)}function JT(t,e){QT[t.type](t,e)}var QT={interval:XT,log:XT,time:MI,ordinal:b["noop"]};function tC(t){return OO(null,t)}var eC={isDimensionStacked:mO,enableDataStack:yO,getStackedDimension:xO};function nC(t,e){var n=e;e instanceof Vh||(n=new Vh(e));var r=NI(n),i=EI(n,r,!1);return t[1]<t[0]&&(t=t.slice().reverse()),KT(i,n,null,null,t),i}function rC(t){b["mixin"](t,nT)}function iC(t,e){return e=e||{},gh(t,null,null,"normal"!==e.state)}var aC=1e-8;function oC(t,e){return Math.abs(t-e)<aC}function sC(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var a=1;a<t.length;a++){var o=t[a];r+=_l(i[0],i[1],o[0],o[1],e,n),i=o}var s=t[0];return oC(i[0],s[0])&&oC(i[1],s[1])||(r+=_l(i[0],i[1],s[0],s[1],e,n)),0!==r}var lC=[];function uC(t,e){for(var n=0;n<t.length;n++)G(t[n],t[n],e)}function cC(t,e,n,r){for(var i=0;i<t.length;i++){var a=t[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(W(e,e,a),Y(n,n,a))}}function hC(t){for(var e=0,n=0,r=0,i=t.length,a=t[i-1][0],o=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=a*u-l*o;e+=c,n+=(a+l)*c,r+=(o+u)*c,a=l,o=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}var dC=function(){function t(t){this.name=t}return t.prototype.setCenter=function(t){this._center=t},t.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},t}(),pC=function(){function t(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return t}(),fC=function(){function t(t){this.type="linestring",this.points=t}return t}(),gC=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.type="geoJSON",i.geometries=n,i._center=r&&[r[0],r[1]],i}return f(e,t),e.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,r=0;r<e.length;r++){var i=e[r],a=i.exterior,o=a&&a.length;o>n&&(t=i,n=o)}if(t)return hC(t.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},e.prototype.getBoundingRect=function(t){var e=this._rect;if(e&&!t)return e;var n=[1/0,1/0],r=[-1/0,-1/0],i=this.geometries;return Object(b["each"])(i,(function(e){"polygon"===e.type?cC(e.exterior,n,r,t):Object(b["each"])(e.points,(function(e){cC(e,n,r,t)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),e=new ue(n[0],n[1],r[0]-n[0],r[1]-n[1]),t||(this._rect=e),e},e.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var r=0,i=n.length;r<i;r++){var a=n[r];if("polygon"===a.type){var o=a.exterior,s=a.interiors;if(sC(o,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(sC(s[l],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,e,n,r){var i=this.getBoundingRect(),a=i.width/i.height;n?r||(r=n/a):n=a*r;for(var o=new ue(t,e,n,r),s=i.calculateTransform(o),l=this.geometries,u=0;u<l.length;u++){var c=l[u];"polygon"===c.type?(uC(c.exterior,s),Object(b["each"])(c.interiors,(function(t){uC(t,s)}))):Object(b["each"])(c.points,(function(t){uC(t,s)}))}i=this._rect,i.copy(o),this._center=[i.x+i.width/2,i.y+i.height/2]},e.prototype.cloneShallow=function(t){null==t&&(t=this.name);var n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(dC),yC=function(t){function e(e,n){var r=t.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=n,r}return f(e,t),e.prototype.calcCenter=function(){var t=this._elOnlyForCalculate,e=t.getBoundingRect(),n=[e.x+e.width/2,e.y+e.height/2],r=Ct(lC),i=t;while(i&&!i.isGeoSVGGraphicRoot)Dt(r,i.getLocalTransform(),r),i=i.parent;return jt(r,r),G(n,n,r),n},e}(dC);function vC(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var r=e.features;return b["each"](r,(function(t){var e=t.geometry,r=e.encodeOffsets,i=e.coordinates;if(r)switch(e.type){case"LineString":e.coordinates=xC(i,r,n);break;case"Polygon":mC(i,r,n);break;case"MultiLineString":mC(i,r,n);break;case"MultiPolygon":b["each"](i,(function(t,e){return mC(t,r[e],n)}))}})),e.UTF8Encoding=!1,e}function mC(t,e,n){for(var r=0;r<t.length;r++)t[r]=xC(t[r],e[r],n)}function xC(t,e,n){for(var r=[],i=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=a,i=s,a=l,r.push([s/n,l/n])}return r}function bC(t,e){return t=vC(t),b["map"](b["filter"](t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,r=t.geometry,i=[];switch(r.type){case"Polygon":var a=r.coordinates;i.push(new pC(a[0],a.slice(1)));break;case"MultiPolygon":b["each"](r.coordinates,(function(t){t[0]&&i.push(new pC(t[0],t.slice(1)))}));break;case"LineString":i.push(new fC([r.coordinates]));break;case"MultiLineString":i.push(new fC(r.coordinates))}var o=new gC(n[e||"name"],i,n.cp);return o.properties=n,o}))}function _C(t,e,n,r,i,a,o,s){var l=new _u({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var wC=Ka(),SC=Ka(),MC={estimate:1,determine:2};function OC(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function IC(t,e){var n=t.getLabelModel().get("customValues");if(n){var r=t.scale;return{labels:b["map"](CC(n,r),(function(e,n){return{formattedLabel:WI(t)(e,n),rawLabel:r.getLabel(e),tick:e}}))}}return"category"===t.type?AC(t,e):LC(t)}function TC(t,e,n){var r=t.scale,i=t.getTickModel().get("customValues");return i?{ticks:CC(i,r)}:"category"===t.type?kC(t,e):{ticks:r.getTicks(n)}}function CC(t,e){var n=e.getExtent(),r=[];return b["each"](t,(function(t){t=e.parse(t),t>=n[0]&&t<=n[1]&&r.push(t)})),Mo(r,Io,null),ea(r),b["map"](r,(function(t){return{value:t}}))}function AC(t,e){var n=t.getLabelModel(),r=DC(t,n,e);return!n.get("show")||t.scale.isBlank()?{labels:[]}:r}function DC(t,e,n){var r,i,a=jC(t),o=UI(e),s=n.kind===MC.estimate;if(!s){var l=NC(a,o);if(l)return l}b["isFunction"](o)?r=GC(t,o,!1):(i="auto"===o?zC(t,n):o,r=GC(t,i,!1));var u={labels:r,labelCategoryInterval:i};return s?n.out.noPxChangeTryDetermine.push((function(){return EC(a,o,u),!0})):EC(a,o,u),u}function kC(t,e){var n,r,i=PC(t),a=UI(e),o=NC(i,a);if(o)return o;if(e.get("show")&&!t.scale.isBlank()||(n=[]),b["isFunction"](a))n=GC(t,a,!0);else if("auto"===a){var s=DC(t,t.getLabelModel(),OC(MC.determine));r=s.labelCategoryInterval,n=b["map"](s.labels,(function(t){return t.tick}))}else r=a,n=GC(t,r,!0);return EC(i,a,{ticks:n,tickCategoryInterval:r})}function LC(t){var e=t.scale.getTicks(),n=WI(t);return{labels:b["map"](e,(function(e,r){return{formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tick:e}}))}}var PC=RC("axisTick"),jC=RC("axisLabel");function RC(t){return function(e){return SC(e)[t]||(SC(e)[t]={list:[]})}}function NC(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function EC(t,e,n){return t.list.push({key:e,value:n}),n}function zC(t,e){if(e.kind===MC.estimate){var n=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push((function(){return SC(t).autoInterval=n,!0})),n}var r=SC(t).autoInterval;return null!=r?r:SC(t).autoInterval=t.calculateCategoryInterval(e)}function BC(t,e){var n=e.kind,r=HC(t),i=WI(t),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=t.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,c=40;l>c&&(u=Math.max(1,Math.floor(l/c)));for(var h=s[0],d=t.dataToCoord(h+1)-t.dataToCoord(h),p=Math.abs(d*Math.cos(a)),f=Math.abs(d*Math.sin(a)),g=0,y=0;h<=s[1];h+=u){var v=0,m=0,x=Wr(i({value:h}),r.font,"center","top");v=1.3*x.width,m=1.3*x.height,g=Math.max(g,v,7),y=Math.max(y,m,7)}var _=g/p,w=y/f;isNaN(_)&&(_=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(_,w)));if(n===MC.estimate)return e.out.noPxChangeTryDetermine.push(b["bind"](VC,null,t,S,l)),S;var M=FC(t,S,l);return null!=M?M:S}function VC(t,e,n){return null==FC(t,e,n)}function FC(t,e,n){var r=wC(t.model),i=t.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(null!=a&&null!=o&&Math.abs(a-e)<=1&&Math.abs(o-n)<=1&&a>e&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=e,r.axisExtent0=i[0],r.axisExtent1=i[1]}function HC(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 GC(t,e,n){var r=WI(t),i=t.scale,a=[],o=b["isFunction"](e);return oI(i,o?0:e,(function(t,s){var l=i.getLabel(t);if(o){var u=!!e(t.value,l);if(t.offInterval=!u,!u&&!s)return}a.push(n?t:{formattedLabel:r(t),rawLabel:l,tick:t})})),a}var WC=.8;function YC(t,e){e=e||{};var n={w:NaN,w2:NaN},r=t.scale,i=e.fromStat,a=e.min,o=GO(r);Oa(o)||(o=NaN);var s=t.getExtent(),l=zi(s[1]-s[0]);return JO(r)?UC(n,t,o,l):i&&XC(n,t,o,l,i),null!=a&&(n.w=Oa(n.w)?Ei(a,n.w):a),n}function UC(t,e,n,r){var i=e.onBand,a=n+(i?1:0);0===a&&(a=1),t.w=r/a,!i&&n&&r&&(t.w2=t.w*n/r)}function XC(t,e,n,r,i){var a=!1,o=-1/0;Object(b["each"])(i.key?[cT(e,i.key)]:hT(e,i.sers||[]),(function(t){var e=t.liPosMinGap;null!=e&&(e>0?(e>o&&(o=e),a=!1):e===oT&&(a=!0))})),Oa(n)&&n>0&&Oa(o)?(t.w=r/n*o,t.w2=o):a&&(t.w=r*WC,t.w2=t.w*n/r)}var ZC=[0,1],qC=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]),r=Math.max(e[0],e[1]);return t>=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},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.scale;return t=n.normalize(n.parse(t)),Xi(t,ZC,$C(this),e)},t.prototype.coordToData=function(t,e){var n=Xi(t,$C(this),ZC,e);return this.scale.scale(n)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=TC(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),r=Object(b["map"])(n.ticks,(function(t){return{coord:this.dataToCoord(tT(this.scale,t)),tick:t}}),this),i=e.get("alignWithLabel"),a=KC(this,r,i);return Object(b["map"])(r,(function(t){return{coord:t.coord,tickValue:t.tick.value,onBand:a}}))},t.prototype.getMinorTicksCoords=function(){if(JO(this.scale))return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),r=Object(b["map"])(n,(function(t){return Object(b["map"])(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this);return r},t.prototype.getViewLabels=function(t){return t=t||OC(MC.determine),IC(this,t).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return YC(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(t){return t=t||OC(MC.determine),BC(this,t)},t}();function $C(t){var e=t.getExtent();if(t.onBand){var n=e[1]-e[0],r=n/t.scale.count()/2;e[0]+=r,e[1]-=r}return e}function KC(t,e,n){var r=e.length;if(!t.onBand||n||!r)return!1;var i=YC(t).w;if(!i)return!1;Object(b["each"])(e,(function(t){t.coord-=i/2}));var a=t.scale.getExtent(),o=e[r-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}var JC=qC;function QC(t){var e=Hp.extend(t);return Hp.registerClass(e),e}function tA(t){var e=xv.extend(t);return xv.registerClass(e),e}function eA(t){var e=vv.extend(t);return vv.registerClass(e),e}function nA(t){var e=fb.extend(t);return fb.registerClass(e),e}var rA=2*Math.PI,iA=pl.CMD,aA=["top","right","bottom","left"];function oA(t,e,n,r,i){var a=n.width,o=n.height;switch(t){case"top":r.set(n.x+a/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+a/2,n.y+o+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+o/2),i.set(-1,0);break;case"right":r.set(n.x+a+e,n.y+o/2),i.set(1,0);break}}function sA(t,e,n,r,i,a,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*n+t,h=s*n+e;if(Math.abs(r-i)%rA<1e-4)return l[0]=c,l[1]=h,u-n;if(a){var d=r;r=ml(i),i=ml(d)}else r=ml(r),i=ml(i);r>i&&(i+=rA);var p=Math.atan2(s,o);if(p<0&&(p+=rA),p>=r&&p<=i||p+rA>=r&&p+rA<=i)return l[0]=c,l[1]=h,u-n;var f=n*Math.cos(r)+t,g=n*Math.sin(r)+e,y=n*Math.cos(i)+t,v=n*Math.sin(i)+e,m=(f-o)*(f-o)+(g-s)*(g-s),x=(y-o)*(y-o)+(v-s)*(v-s);return m<x?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(x))}function lA(t,e,n,r,i,a,o,s){var l=i-t,u=a-e,c=n-t,h=r-e,d=Math.sqrt(c*c+h*h);c/=d,h/=d;var p=l*c+u*h,f=p/d;s&&(f=Math.min(Math.max(f,0),1)),f*=d;var g=o[0]=t+f*c,y=o[1]=e+f*h;return Math.sqrt((g-i)*(g-i)+(y-a)*(y-a))}function uA(t,e,n,r,i,a,o){n<0&&(t+=n,n=-n),r<0&&(e+=r,r=-r);var s=t+n,l=e+r,u=o[0]=Math.min(Math.max(i,t),s),c=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var cA=[];function hA(t,e,n){var r=uA(e.x,e.y,e.width,e.height,t.x,t.y,cA);return n.set(cA[0],cA[1]),r}function dA(t,e,n){for(var r,i,a=0,o=0,s=0,l=0,u=1/0,c=e.data,h=t.x,d=t.y,p=0;p<c.length;){var f=c[p++];1===p&&(a=c[p],o=c[p+1],s=a,l=o);var g=u;switch(f){case iA.M:s=c[p++],l=c[p++],a=s,o=l;break;case iA.L:g=lA(a,o,c[p],c[p+1],h,d,cA,!0),a=c[p++],o=c[p++];break;case iA.C:g=sn(a,o,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],h,d,cA),a=c[p++],o=c[p++];break;case iA.Q:g=fn(a,o,c[p++],c[p++],c[p],c[p+1],h,d,cA),a=c[p++],o=c[p++];break;case iA.A:var y=c[p++],v=c[p++],m=c[p++],x=c[p++],b=c[p++],_=c[p++];p+=1;var w=!!(1-c[p++]);r=Math.cos(b)*m+y,i=Math.sin(b)*x+v,p<=1&&(s=r,l=i);var S=(h-y)*x/m+y;g=sA(y,v,x,b,b+_,w,S,d,cA),a=Math.cos(b+_)*m+y,o=Math.sin(b+_)*x+v;break;case iA.R:s=a=c[p++],l=o=c[p++];var M=c[p++],O=c[p++];g=uA(s,l,M,O,h,d,cA);break;case iA.Z:g=lA(a,o,s,l,h,d,cA,!0),a=s,o=l;break}g<u&&(u=g,n.set(cA[0],cA[1]))}return u}var pA=new Et,fA=new Et,gA=new Et,yA=new Et,vA=new Et;function mA(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||aA,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),h=c&&jt([],c),d=e.get("length2")||0;u&&gA.copy(u);for(var p=0;p<o.length;p++){var f=o[p];oA(f,0,s,pA,yA),Et.scaleAndAdd(fA,pA,yA,d),fA.transform(h);var g=t.getBoundingRect(),y=u?u.distance(fA):t instanceof Bl?dA(fA,t.path,gA):hA(fA,g,gA);y<l&&(l=y,fA.transform(c),gA.transform(c),gA.toArray(a[0]),fA.toArray(a[1]),pA.toArray(a[2]))}_A(a,e.get("minTurnAngle")),n.setShape({points:a})}}}var xA=[],bA=new Et;function _A(t,e){if(e<=180&&e>0){e=e/180*Math.PI,pA.fromArray(t[0]),fA.fromArray(t[1]),gA.fromArray(t[2]),Et.sub(yA,pA,fA),Et.sub(vA,gA,fA);var n=yA.len(),r=vA.len();if(!(n<.001||r<.001)){yA.scale(1/n),vA.scale(1/r);var i=yA.dot(vA),a=Math.cos(e);if(a<i){var o=lA(fA.x,fA.y,gA.x,gA.y,pA.x,pA.y,xA,!1);bA.fromArray(xA),bA.scaleAndAdd(vA,o/Math.tan(Math.PI-e));var s=gA.x!==fA.x?(bA.x-fA.x)/(gA.x-fA.x):(bA.y-fA.y)/(gA.y-fA.y);if(isNaN(s))return;s<0?Et.copy(bA,fA):s>1&&Et.copy(bA,gA),bA.toArray(t[1])}}}}function wA(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,pA.fromArray(t[0]),fA.fromArray(t[1]),gA.fromArray(t[2]),Et.sub(yA,fA,pA),Et.sub(vA,gA,fA);var r=yA.len(),i=vA.len();if(!(r<.001||i<.001)){yA.scale(1/r),vA.scale(1/i);var a=yA.dot(e),o=Math.cos(n);if(a<o){var s=lA(fA.x,fA.y,gA.x,gA.y,pA.x,pA.y,xA,!1);bA.fromArray(xA);var l=Math.PI/2,u=Math.acos(vA.dot(e)),c=l+u-n;if(c>=l)Et.copy(bA,gA);else{bA.scaleAndAdd(vA,s/Math.tan(Math.PI/2-c));var h=gA.x!==fA.x?(bA.x-fA.x)/(gA.x-fA.x):(bA.y-fA.y)/(gA.y-fA.y);if(isNaN(h))return;h<0?Et.copy(bA,fA):h>1&&Et.copy(bA,gA)}bA.toArray(t[1])}}}}function SA(t,e,n,r){var i="normal"===n,a=i?t:t.ensureState(n);a.ignore=e;var o=r.get("smooth");o=!0===o?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function MA(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=z(r[0],r[1]),a=z(r[1],r[2]);if(!i||!a)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var o=Math.min(i,a)*n,s=H([],r[1],r[0],o/i),l=H([],r[1],r[2],o/a),u=H([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function OA(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(i){for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<Zu.length;l++){var u=Zu[l],c=e[u],h="normal"===u;if(c){var d=c.get("show"),p=h?s:Object(b["retrieve2"])(i.states[u]&&i.states[u].ignore,s);if(p||!Object(b["retrieve2"])(d,o)){var f=h?r:r&&r.states[u];f&&(f.ignore=!0),r&&SA(r,!0,u,c);continue}r||(r=new Mm,t.setTextGuideLine(r),h||!s&&o||SA(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),SA(r,!1,u,c)}}if(r){Object(b["defaults"])(r.style,n),r.style.fill=null;var g=a.get("showAbove"),y=t.textGuideLineConfig=t.textGuideLineConfig||{};y.showAbove=g||!1,r.buildPath=MA}}else r&&t.removeTextGuideLine()}function IA(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Xu.length;r++){var i=Xu[r];n[i]=t.getModel([i,e])}return n}var TA=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],CA=1,AA=2,DA=CA|AA;function kA(t,e,n){n=n||DA,e?t.dirty|=n:t.dirty&=~n}function LA(t,e){return e=e||DA,null==t.dirty||!!(t.dirty&e)}function PA(t){if(t)return LA(t)&&jA(t,t.label,t),t}function jA(t,e,n){var r=e.getComputedTransform();t.transform=Kx(t.transform,r);var i=t.localRect=$x(t.localRect,e.getBoundingRect()),a=e.style,o=a.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,u=n&&n.marginDefault,c=a.__marginType;null==c&&u&&(o=u,c=Th.textMargin);for(var h=0;h<4;h++)RA[h]=c===Th.minMargin&&l&&null!=l[h]?l[h]:s&&null!=s[h]?s[h]:o?o[h]:0;c===Th.textMargin&&Hx(i,RA,!1,!1);var d=t.rect=$x(t.rect,i);return r&&d.applyTransform(r),c===Th.minMargin&&Hx(d,RA,!1,!1),t.axisAligned=Zx(r),(t.label=t.label||{}).ignore=e.ignore,kA(t,!1),kA(t,!0,AA),t}var RA=[0,0,0,0];function NA(t,e,n){return t.transform=Kx(t.transform,n),t.localRect=$x(t.localRect,e),t.rect=$x(t.rect,e),n&&t.rect.applyTransform(n),t.axisAligned=Zx(n),t.obb=void 0,(t.label=t.label||{}).ignore=!1,t}function EA(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var n=t.transform;n&&(n[4]+=e.x,n[5]+=e.y);var r=t.rect;r&&(r.x+=e.x,r.y+=e.y);var i=t.obb;i&&i.fromBoundingRect(t.localRect,n)}}function zA(t,e){for(var n=0;n<TA.length;n++){var r=TA[n];null==t[r]&&(t[r]=e[r])}return PA(t)}function BA(t){var e=t.obb;return e&&!LA(t,AA)||(t.obb=e=e||new tx,e.fromBoundingRect(t.localRect,t.transform),kA(t,!1,AA)),e}function VA(t,e,n,r,i){var a=t.length,o=cx[e],s=hx[e];if(a<2)return!1;t.sort((function(t,e){return t.rect[o]-e.rect[o]}));for(var l,u=0,c=!1,h=0,d=0;d<a;d++){var p=t[d],f=p.rect;l=f[o]-u,l<0&&(f[o]-=l,p.label[o]-=l,c=!0);var g=Math.max(-l,0);h+=g,u=f[o]+f[s]}h>0&&i&&w(-h/a,0,a);var y,v,m=t[0],x=t[a-1];function b(){y=m.rect[o]-n,v=r-x.rect[o]-x.rect[s]}function _(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){w(r*n,0,a);var i=r+t;i<0&&S(-i*n,1)}else S(-t*n,1)}}function w(e,n,r){0!==e&&(c=!0);for(var i=n;i<r;i++){var a=t[i],s=a.rect;s[o]+=e,a.label[o]+=e}}function S(e,n){for(var r=[],i=0,l=1;l<a;l++){var u=t[l-1].rect,c=Math.max(t[l].rect[o]-u[o]-u[s],0);r.push(c),i+=c}if(i){var h=Math.min(Math.abs(e)/i,n);if(e>0)for(l=0;l<a-1;l++){var d=r[l]*h;w(d,0,l+1)}else for(l=a-1;l>0;l--){d=r[l-1]*h;w(-d,l,a)}}}function M(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r<a-1;r++)if(e>0?w(n,0,r+1):w(-n,a-r-1,a),t-=n,t<=0)return}return b(),y<0&&S(-y,.8),v<0&&S(v,.8),b(),_(y,v,1),_(v,y,-1),b(),y<0&&M(-y),v<0&&M(v),c}function FA(t){for(var e=0;e<t.length;e++){var n=t[e],r=n.defaultAttr,i=n.labelLine;n.label.attr("ignore",r.ignore),i&&i.attr("ignore",r.labelGuideIgnore)}}function HA(t){var e=[];function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort((function(t,e){return(e.suggestIgnore?1:0)-(t.suggestIgnore?1:0)||e.priority-t.priority}));for(var r=0;r<t.length;r++){var i=PA(t[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,l=0;l<e.length;l++)if(GA(i,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):e.push(i)}}}function GA(t,e,n,r){return!(!t||!e)&&(!(t.label&&t.label.ignore||e.label&&e.label.ignore)&&(!!t.rect.intersect(e.rect,n,r)&&(!(!t.axisAligned||!e.axisAligned)||BA(t).intersect(BA(e),n,r))))}function WA(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function YA(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:WA(r&&r.shape.points)}}var UA=["align","verticalAlign","width","height","fontSize"],XA=new jr,ZA=Ka(),qA=Ka();function $A(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];null!=e[i]&&(t[i]=e[i])}}var KA=["x","y","rotation"],JA=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(t,e,n,r,i){var a=r.style,o=r.__hostTarget,s=o.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();ue.applyTransform(u,u,l),l?XA.setLocalTransform(l):(XA.x=XA.y=XA.rotation=XA.originX=XA.originY=0,XA.scaleX=XA.scaleY=1),XA.rotation=ml(XA.rotation);var c,h=r.__hostTarget;if(h){c=h.getBoundingRect().plain();var d=h.getComputedTransform();ue.applyTransform(c,c,d)}var p=c&&h.getTextGuideLine();this._labelList.push({label:r,labelLine:p,seriesModel:n,dataIndex:t,dataType:e,layoutOptionOrCb:i,layoutOption:null,rect:u,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:p&&p.ignore,x:XA.x,y:XA.y,scaleX:XA.scaleX,scaleY:XA.scaleY,rotation:XA.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},t.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,r=n.get("labelLayout");(Object(b["isFunction"])(r)||Object(b["keys"])(r).length)&&t.group.traverse((function(t){if(t.ignore)return!0;var i=t.getTextContent(),a=wu(t);i&&!i.disableLabelLayout&&e._addLabel(a.dataIndex,a.dataType,n,i,r)}))},t.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function r(t,e){return function(){mA(t,e)}}for(var i=0;i<this._labelList.length;i++){var a=this._labelList[i],o=a.label,s=o.__hostTarget,l=a.defaultAttr,u=void 0;u=Object(b["isFunction"])(a.layoutOptionOrCb)?a.layoutOptionOrCb(YA(a,s)):a.layoutOptionOrCb,u=u||{},a.layoutOption=u;var c=Math.PI/180;s&&s.setTextConfig({local:!1,position:null!=u.x||null!=u.y?null:l.attachedPos,rotation:null!=u.rotate?u.rotate*c:l.attachedRot,offset:[u.dx||0,u.dy||0]});var h=!1;if(null!=u.x?(o.x=Zi(u.x,e),o.setStyle("x",0),h=!0):(o.x=l.x,o.setStyle("x",l.style.x)),null!=u.y?(o.y=Zi(u.y,n),o.setStyle("y",0),h=!0):(o.y=l.y,o.setStyle("y",l.style.y)),u.labelLinePoints){var d=s.getTextGuideLine();d&&(d.setShape({points:u.labelLinePoints}),h=!1)}var p=ZA(o);p.needsUpdateLabelLine=h,o.rotation=null!=u.rotate?u.rotate*c:l.rotation,o.scaleX=l.scaleX,o.scaleY=l.scaleY;for(var f=0;f<UA.length;f++){var g=UA[f];o.setStyle(g,null!=u[g]?u[g]:l.style[g])}if(u.draggable){if(o.draggable=!0,o.cursor="move",s){var y=a.seriesModel;if(null!=a.dataIndex){var v=a.seriesModel.getData(a.dataType);y=v.getItemModel(a.dataIndex)}o.on("drag",r(s,y.getModel("labelLine")))}}else o.off("drag"),o.cursor=l.cursor}},t.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),r=[];Object(b["each"])(this._labelList,(function(t){t.defaultAttr.ignore||r.push(zA({},t))}));var i=Object(b["filter"])(r,(function(t){return"shiftX"===t.layoutOption.moveOverlap})),a=Object(b["filter"])(r,(function(t){return"shiftY"===t.layoutOption.moveOverlap}));VA(i,0,0,e),VA(a,1,0,n);var o=Object(b["filter"])(r,(function(t){return t.layoutOption.hideOverlap}));FA(o),HA(o)},t.prototype.processLabelsOverall=function(){var t=this;Object(b["each"])(this._chartViewList,(function(e){var n=e.__model,r=e.ignoreLabelLineUpdate,i=n.isAnimationEnabled();e.group.traverse((function(e){if(e.ignore&&!e.forceLabelAnimation)return!0;var a=!r,o=e.getTextContent();!a&&o&&(a=ZA(o).needsUpdateLabelLine),a&&t._updateLabelLine(e,n),i&&t._animateLabels(e,n)}))}))},t.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),r=wu(t),i=r.dataIndex;if(n&&null!=i){var a=e.getData(r.dataType),o=a.getItemModel(i),s={},l=a.getItemVisual(i,"style");if(l){var u=a.getVisual("drawType");s.stroke=l[u]}var c=o.getModel("labelLine");OA(t,IA(o),s),mA(t,c)}},t.prototype._animateLabels=function(t,e){var n=t.getTextContent(),r=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!ih(t))){var i=ZA(n),a=i.oldLayout,o=wu(t),s=o.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},u=e.getData(o.dataType);if(a){n.attr(a);var c=t.prevStates;c&&(Object(b["indexOf"])(c,"select")>=0&&n.attr(i.oldLayoutSelect),Object(b["indexOf"])(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),nh(n,l,e,s)}else if(n.attr(l),!Mh(n).valueAnimation){var h=Object(b["retrieve2"])(n.style.opacity,1);n.style.opacity=0,rh(n,{style:{opacity:h}},e,s)}if(i.oldLayout=l,n.states.select){var d=i.oldLayoutSelect={};$A(d,l,KA),$A(d,n.states.select,KA)}if(n.states.emphasis){var p=i.oldLayoutEmphasis={};$A(p,l,KA),$A(p,n.states.emphasis,KA)}Ih(n,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){i=qA(r),a=i.oldLayout;var f={points:r.shape.points};a?(r.attr({shape:a}),nh(r,{shape:f},e)):(r.setShape(f),r.style.strokePercent=0,rh(r,{style:{strokePercent:1}},e)),i.oldLayout=f}},t}(),QA=JA,tD=Ka();function eD(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var r=tD(e).labelManager;r||(r=tD(e).labelManager=new QA),r.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var r=tD(e).labelManager;Object(b["each"])(n.updatedSeries,(function(t){r.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()}))}function nD(t,e,n){var r=Nr["d"].createCanvas(),i=e.getWidth(),a=e.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=a*n,r}function rD(t){return!t.__cursors.get(ex)}function iD(t){var e=t.__cursors.get(ex);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}TM(eD);var aD=function(t){function e(e,n,r){var i,a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.zlevel=0,a.zlevel2=ax,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__prevIdx={startIdx:0,endIdx:0},r=r||yr,"string"===typeof e?i=nD(e,n,r):b["isObject"](e)&&(i=e,e=i.id),a.id=e,a.dom=i;var o=i.style;return o&&(b["disableUserSelect"](i),i.onselectstart=function(){return!1},o.padding="0",o.margin="0",o.borderWidth="0"),a.painter=n,a.dpr=r,a}return f(e,t),e.prototype.afterBrush=function(){this.__prevIdx=iD(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=nD("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],a=this.maxRepaintRectCount,o=!1,s=new ue(0,0,0,0);function l(t){if(t.isFinite()&&!t.isZero())if(0===i.length){var e=new ue(0,0,0,0);e.copy(t),i.push(e)}else{for(var n=!1,r=1/0,l=0,u=0;u<i.length;++u){var c=i[u];if(c.intersect(t)){var h=new ue(0,0,0,0);h.copy(c),h.union(t),i[u]=h,n=!0;break}if(o){s.copy(t),s.union(c);var d=t.width*t.height,p=c.width*c.height,f=s.width*s.height,g=f-d-p;g<r&&(r=g,l=u)}}if(o&&(i[l].union(t),n=!0),!n){e=new ue(0,0,0,0);e.copy(t),i.push(e)}o||(o=i.length>=a)}}for(var u=iD(this),c=u.startIdx;c<u.endIdx;++c){var h=t[c];if(h){var d=h.shouldBePainted(n,r,!0,!0),p=h.__isRendered&&(h.__dirty&Le||!d)?h.getPrevPaintRect():null;p&&l(p);var f=d&&(h.__dirty&Le||!h.__isRendered)?h.getPaintRect():null;f&&l(f)}}var g,y=this.__prevIdx;for(c=y.startIdx;c<y.endIdx;++c){h=e[c],d=h&&h.shouldBePainted(n,r,!0,!0);if(h&&(!d||!h.__zr)&&h.__isRendered){p=h.getPrevPaintRect();p&&l(p)}}do{g=!1;for(c=0;c<i.length;)if(i[c].isZero())i.splice(c,1);else{for(var v=c+1;v<i.length;)i[c].intersect(i[v])?(g=!0,i[c].union(i[v]),i.splice(v,1)):v++;c++}}while(g);return this._paintRects=i,i},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var n=this.dpr,r=this.dom,i=r.style,a=this.domBack;i&&(i.width=t+"px",i.height=e+"px"),r.width=t*n,r.height=e*n,a&&(a.width=t*n,a.height=e*n,1!==n&&this.ctxBack.scale(n,n))},e.prototype.clear=function(t,e,n){var r=this.dom,i=this.ctx,a=r.width,o=r.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,u=this.dpr,c=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,a/u,o/u));var h=this.domBack;function d(t,n,r,a){if(i.clearRect(t,n,r,a),e&&"transparent"!==e){var o=void 0;if(b["isGradientObject"](e)){var d=e.global||e.__width===r&&e.__height===a;o=d&&e.__canvasGradient||W_(i,e,{x:0,y:0,width:r,height:a}),e.__canvasGradient=o,e.__width=r,e.__height=a}else b["isImagePatternObject"](e)&&(e.scaleX=e.scaleX||u,e.scaleY=e.scaleY||u,o=nw(i,e,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));i.save(),i.fillStyle=o||e,i.fillRect(t,n,r,a),i.restore()}s&&(i.save(),i.globalAlpha=l,i.drawImage(h,t,n,r,a),i.restore())}!n||s?d(0,0,a,o):n.length&&b["each"](n,(function(t){d(t.x*u,t.y*u,t.width*u,t.height*u)}))},e}($),oD=aD,sD=1e5,lD=314159,uD=void 0,cD=1,hD=2;function dD(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}function pD(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}function fD(t,e,n,r){var i=new oD(t,e,e.dpr);return i.zlevel=n,i.zlevel2=r,i.__builtin__=!0,gD(i),i}function gD(t){t.__cursorStack=[],t.__cursors=b["createHashMap"]()}function yD(t){return t.startIdx=t.drawIdx=t.endIdx=t.endIdxNew=0,t.used=!1,t.first=t.last=NaN,t.notClearIdx=-1,t}function vD(t,e){var n=t.__cursors,r=+e;return n.get(r)||(t.__cursorStack.push(r),n.set(r,yD({key:r})))}function mD(t,e){for(var n=t.__cursorStack,r=0;r<n.length;r++)e(t.__cursors.get(n[r]))}function xD(t,e){var n=t.layers;return n[e]||(n[e]=new Array(3))}function bD(t,e,n){for(var r=t.layerStack,i=0;i<r.length;i++){var a=r[i].zl,o=r[i].zl2,s=t.layers[a][o];n&&(n&_D&&!s.__builtin__||n&wD&&s.__builtin__||n&SD&&s===t.hoverlayer)||e(s,a,o,i)}}var _D=1,wD=2,SD=4,MD=_D|SD,OD=function(){function t(t,e,n,r){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var i=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=b["extend"]({},n||{}),this.dpr=n.devicePixelRatio||yr,this._singleCanvas=i,this.root=t;var a=t.style;if(a&&(b["disableUserSelect"](t),t.innerHTML=""),this.storage=e,this._prevDisplayList=[],i){var o=t,s=o.width,l=o.height;null!=n.width&&(s=n.width),null!=n.height&&(l=n.height),this.dpr=n.devicePixelRatio||1,o.width=s*this.dpr,o.height=l*this.dpr,this._width=s,this._height=l;var u=fD(o,this,lD,ax);u.initContext(),this._insertLayer(u,lD,ax,!0),this._domRoot=t}else{this._width=X_(t,0,n),this._height=X_(t,1,n);var c=this._domRoot=pD(this._width,this._height);t.appendChild(c)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e;e=t&&!b["isObject"](t)?{paintAll:!!t}:t||{};var n=b["retrieve2"](e.refresh,!0),r=b["retrieve2"](e.refreshHover,!1);if(r&&(this._hoverLayerDirty=hD),!n)return r&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var i=this.storage.getDisplayList(!0);this._updateLayerStatus(i,e.paintAll),this._redrawId=Math.random();var a=this._prevDisplayList;this._paintList(i,a,this._redrawId);var o=this._backgroundColor;return bD(this._i,(function(t,e,n,r){t.refresh&&t.refresh(0===r?o:null)}),wD),this._opts.useDirtyRect&&(this._prevDisplayList=i.slice()),this},t.prototype._paintHoverList=function(t){var e=this._i.hoverlayer,n=this._hoverLayerDirty;if(this._hoverLayerDirty=uD,n!==uD&&(e||n!==hD||(e=this._i.hoverlayer=this._ensureLayer(sD)),e)){e.clear();for(var r,i={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a=0,o=t.length;a<o;a++){var s=t[a];if(s.__inHover){r||(r=e.ctx,r.save());var l=s.__hoverStyle,u=void 0;l&&(u=s.style,s.style=l),_w(r,s,i),l&&(s.style=u)}}r&&(ww(r,i),r.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(sD)},t.prototype.paintOne=function(t,e){bw(t,e)},t.prototype._paintList=function(t,e,n){if(this._redrawId===n){var r=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),r)bD(this._i,(function(t){t.afterBrush&&t.afterBrush()}),MD),this._paintHoverList(t);else{var i=this;Fe((function(){i._paintList(t,e,n)}))}}},t.prototype._compositeManually=function(){var t=this._ensureLayer(lD).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),bD(this._i,(function(r){r.virtual&&t.drawImage(r.dom,0,0,e,n)}),_D)},t.prototype._doPaintList=function(t,e){var n=this,r=!0;return bD(this._i,(function(i){var a=!1;if(mD(i,(function(t){(t.drawIdx<t.endIdx||t.notClearIdx>=0)&&(a=!0)})),a||i.__dirty){var o=n._opts.useDirtyRect&&!rD(i)?i.createRepaintRects(t,e,n._width,n._height):null,s=n._i.layerStack[0],l=!0;if(i.__dirty){l=!1,i.__dirty=!1;var u=i.zlevel===s.zl&&i.zlevel2===s.zl2?n._backgroundColor:null;i.clear(!1,u,o)}mD(i,(function(e){var a=n._paintPerCursor(i,e,t,o,l);r=r&&a}))}}),MD),x.wxa&&bD(this._i,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),r},t.prototype._paintPerCursor=function(t,e,n,r,i){var a=t.ctx;if(r)if(r.length)for(var o=this.dpr,s=0;s<r.length;++s){var l=r[s];a.save(),a.beginPath(),a.rect(l.x*o,l.y*o,l.width*o,l.height*o),a.clip(),this._paintPerCursorInRect(t,e,n,l,i),a.restore()}else e.drawIdx=e.endIdx;else a.save(),this._paintPerCursorInRect(t,e,n,null,i),a.restore();return e.drawIdx>=e.endIdx},t.prototype._paintPerCursorInRect=function(t,e,n,r,i){for(var a={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:i}},o=t.ctx,s=rD(t),l=s&&Nr["d"].getTime(),u=e.drawIdx,c=e.notClearIdx,h=c>=0?Math.min(c,u):u;h<e.endIdx;h++){var d=n[h];if(!(h<u)||d.notClear){if(d.__inHover&&(this._hoverLayerDirty=hD),null!=r){var p=d.getPaintRect();p&&p.intersect(r)&&(_w(o,d,a),d.setPrevPaintRect(p))}else _w(o,d,a);if(s){var f=Nr["d"].getTime()-l;if(f>15){h++;break}}}}ww(o,a),e.drawIdx=Math.max(h,u)},t.prototype.getLayer=function(t,e){return this._ensureLayer(t,0,e)},t.prototype._ensureLayer=function(t,e,n){e=e||0;var r=this._singleCanvas;r&&!this._needsManuallyCompositing&&(t=lD,e=0);var i=xD(this._i,t)[e];return i||(i=fD("zr_"+t+"."+e,this,t,e),this._layerConfig[t]&&b["merge"](i,this._layerConfig[t],!0),(n||r&&t!==lD)&&(i.virtual=!0),this._insertLayer(i,t,e,!1),i.initContext()),i},t.prototype.insertLayer=function(t,e){this._insertLayer(e,t,0,!1)},t.prototype._insertLayer=function(t,e,n,r){var i=this._i,a=i.layers,o=i.layerStack,s=this._domRoot,l=null;if((!a[e]||!a[e][n])&&dD(t)){var u=o.length,c=0;while(c<u&&(o[c].zl<e||o[c].zl===e&&o[c].zl2<n))c++;if(c>0&&(l=xD(i,o[c-1].zl)[o[c-1].zl2]),o.splice(c,0,{zl:e,zl2:n}),xD(i,e)[n]=t,!r&&!t.virtual)if(l){var h=l.dom;h.nextSibling?s.insertBefore(t.dom,h.nextSibling):s.appendChild(t.dom)}else s.firstChild?s.insertBefore(t.dom,s.firstChild):s.appendChild(t.dom);t.painter||(t.painter=this)}},t.prototype.eachLayer=function(t,e){return bD(this._i,(function(n,r){t.call(e,n,r)}))},t.prototype.eachBuiltinLayer=function(t,e){return bD(this._i,(function(n,r){t.call(e,n,r)}),_D)},t.prototype.eachOtherLayer=function(t,e){return bD(this._i,(function(n,r){t.call(e,n,r)}),wD)},t.prototype.getLayers=function(){var t={};return bD(this._i,(function(e,n,r){t[e.id]=e})),t},t.prototype._updateLayerStatus=function(t,e){var n,r=this;if(r._singleCanvas)for(var i=1;i<t.length;i++){var a=t[i];if(a.zlevel!==t[i-1].zlevel||a.incremental){r._needsManuallyCompositing=!0;break}}bD(r._i,(function(t){t.__dirty=!1,mD(t,(function(t){t.used=!1,t.endIdxNew=0,t.notClearIdx=-1}))}),MD);for(var o=null,s=null,l=!1,u=0,c=t.length;u<c;u++){a=t[u];var h=a.zlevel,d=a.incremental,p=void 0;if(n!==h&&(n=h,l=!1),d?(l=!0,p=ix):p=l?rx:ax,o&&h===o.zlevel&&p===o.zlevel2||(o=r._ensureLayer(h,p),s=null,o.__builtin__)){if((!s||d!==s.key)&&(s=vD(o,d),!s.used))if(s.used=!0,e||s.first!==a.id)o.__dirty=!0,s.first=a.id,s.startIdx=s.drawIdx=u,s.endIdx=u+1;else{var f=u-s.startIdx;s.startIdx=u,s.drawIdx+=f,s.endIdx+=f}s.endIdxNew=u+1,a.__dirty&Le&&!a.__inHover&&((!d||!a.notClear&&u<s.drawIdx)&&(o.__dirty=!0),d&&a.notClear&&s.notClearIdx<0&&(s.notClearIdx=u))}else b["logError"]("ZLevel "+h+" has been used by unknown layer "+o.id)}bD(r._i,(function(e){for(var n=e.__cursorStack,i=e.__cursors,a=n.length-1;a>=0;a--){var o=i.get(n[a]);if(o.used){var s=o.endIdxNew;(rD(e)?s<o.drawIdx:s!==o.endIdx||!s||t[s-1].id!==o.last)&&(e.__dirty=!0),o.endIdx=o.endIdxNew,o.last=s?t[s-1].id:NaN}else e.__dirty=!0,i.removeKey(n[a]),n.splice(a,1)}e.__dirty&&(mD(e,(function(t){t.drawIdx=t.startIdx})),r._hoverLayerDirty===uD&&(r._hoverLayerDirty=cD))}),MD)},t.prototype.clear=function(){return bD(this._i,(function(t){t.clear(),gD(t)}),_D),this},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,bD(this._i,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?b["merge"](n[t],e,!0):n[t]=e,bD(this._i,(function(t,e){b["merge"](t,n[e],!0)}))}},t.prototype.delLayer=function(t){for(var e=this._i.layerStack,n=this._i.layers,r=e.length-1;r>=0;r--){var i=e[r];if(i.zl===t){var a=n[t][i.zl2];if(a.__builtin__)continue;if(e.splice(r,1),n[t][i.zl2]=void 0,!a.virtual){var o=a.dom.parentNode;o&&o.removeChild(a.dom)}}}},t.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var r=this._opts,i=this.root;null!=t&&(r.width=t),null!=e&&(r.height=e),t=X_(i,0,r),e=X_(i,1,r),n.style.display="",this._width===t&&e===this._height||(n.style.width=t+"px",n.style.height=e+"px",bD(this._i,(function(n){n.resize(t,e)})),this.refresh({paintAll:!0})),this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this._ensureLayer(lD).resize(t,e)}return this},t.prototype.clearLayer=function(t){b["each"](this._i.layers[t],(function(t){t&&!t.__builtin__&&t.clear()}))},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[lD][0].dom;var e=new oD("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,i=e.dom.height;bD(this._i,(function(t){t.__builtin__?n.drawImage(t.dom,0,0,r,i):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())}))}else{for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=this.storage.getDisplayList(!0),s=0,l=o.length;s<l;s++){var u=o[s];_w(n,u,a)}ww(n,a)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),ID=OD;function TD(t){t.registerPainter("canvas",ID)}var CD=Math.sin,AD=Math.cos,DD=Math.PI,kD=2*Math.PI,LD=180/DD,PD=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,r,i,a){this._add("C",t,e,n,r,i,a)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._add("Q",t,e,n,r)},t.prototype.arc=function(t,e,n,r,i,a){this.ellipse(t,e,n,n,0,r,i,a)},t.prototype.ellipse=function(t,e,n,r,i,a,o,s){var l=o-a,u=!s,c=Math.abs(l),h=Object(_n["j"])(c-kD)||(u?l>=kD:-l>=kD),d=l>0?l%kD:l%kD+kD,p=!1;p=!!h||!Object(_n["j"])(c)&&d>=DD===!!u;var f=t+n*AD(a),g=e+r*CD(a);this._start&&this._add("M",f,g);var y=Math.round(i*LD);if(h){var v=1/this._p,m=(u?1:-1)*(kD-v);this._add("A",n,r,y,1,+u,t+n*AD(a+m),e+r*CD(a+m)),v>.01&&this._add("A",n,r,y,0,+u,f,g)}else{var x=t+n*AD(o),b=e+r*CD(o);this._add("A",n,r,y,+p,+u,x,b)}},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,r,i,a,o,s,l){for(var u=[],c=this._p,h=1;h<arguments.length;h++){var d=arguments[h];if(isNaN(d))return void(this._invalid=!0);u.push(Math.round(d*c)/c)}this._d.push(t+u.join(" ")),this._start="Z"===t},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),jD=PD,RD="none",ND=Math.round;function ED(t){var e=t.fill;return null!=e&&e!==RD}function zD(t){var e=t.stroke;return null!=e&&e!==RD}var BD=["lineCap","miterLimit","lineJoin"],VD=Object(b["map"])(BD,(function(t){return"stroke-"+t.toLowerCase()}));function FD(t,e,n,r){var i=null==e.opacity?1:e.opacity;if(n instanceof Xl)t("opacity",i);else{if(ED(e)){var a=Object(_n["p"])(e.fill);t("fill",a.color);var o=null!=e.fillOpacity?e.fillOpacity*a.opacity*i:a.opacity*i;(r||o<1)&&t("fill-opacity",o)}else t("fill",RD);if(zD(e)){var s=Object(_n["p"])(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*i:s.opacity*i,h=e.strokeFirst;if((r||1!==u)&&t("stroke-width",u),(r||h)&&t("paint-order",h?"stroke":"fill"),(r||c<1)&&t("stroke-opacity",c),e.lineDash){var d=q_(n),p=d[0],f=d[1];p&&(f=ND(f||0),t("stroke-dasharray",p.join(",")),(f||r)&&t("stroke-dashoffset",f))}else r&&t("stroke-dasharray",RD);for(var g=0;g<BD.length;g++){var y=BD[g];if(r||e[y]!==Rl[y]){var v=e[y]||Rl[y];v&&t(VD[g],v)}}}else r&&t("stroke",RD)}}var HD="http://www.w3.org/2000/svg",GD="http://www.w3.org/1999/xlink",WD="http://www.w3.org/2000/xmlns/",YD="http://www.w3.org/XML/1998/namespace",UD="ecmeta_";function XD(t){return document.createElementNS(HD,t)}function ZD(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function qD(t,e){var n=[];if(e)for(var r in e){var i=e[r],a=r;!1!==i&&(!0!==i&&null!=i&&(a+='="'+i+'"'),n.push(a))}return"<"+t+" "+n.join(" ")+">"}function $D(t){return"</"+t+">"}function KD(t,e){e=e||{};var n=e.newline?"\n":"";function r(t){var e=t.children,i=t.tag,a=t.attrs,o=t.text;return qD(i,a)+("style"!==i?ct(o):o||"")+(e?""+n+Object(b["map"])(e,(function(t){return r(t)})).join(n)+n:"")+$D(i)}return r(t)}function JD(t,e,n){n=n||{};var r=n.newline?"\n":"",i=" {"+r,a=r+"}",o=Object(b["map"])(Object(b["keys"])(t),(function(e){return e+i+Object(b["map"])(Object(b["keys"])(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(r)+a})).join(r),s=Object(b["map"])(Object(b["keys"])(e),(function(t){return"@keyframes "+t+i+Object(b["map"])(Object(b["keys"])(e[t]),(function(n){return n+i+Object(b["map"])(Object(b["keys"])(e[t][n]),(function(r){var i=e[t][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+a})).join(r)+a})).join(r);return o||s?["<![CDATA[",o,s,"]]>"].join(r):""}function QD(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function tk(t,e,n,r){return ZD("svg","root",{width:t,height:e,xmlns:HD,"xmlns:xlink":GD,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}var ek=0;function nk(){return ek++}var rk={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},ik="transform-origin";function ak(t,e,n){var r=Object(b["extend"])({},t.shape);Object(b["extend"])(r,e),t.buildPath(n,r);var i=new jD;return i.reset(Object(_n["f"])(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function ok(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[ik]=n+"px "+r+"px")}var sk={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function lk(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function uk(t,e,n){var r,i,a=t.shape.paths,o={};if(Object(b["each"])(a,(function(t){var e=QD(n.zrId);e.animation=!0,hk(t,{},e,!0);var a=e.cssAnims,s=e.cssNodes,l=Object(b["keys"])(a),u=l.length;if(u){i=l[u-1];var c=a[i];for(var h in c){var d=c[h];o[h]=o[h]||{d:""},o[h].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(i)>=0&&(r=f)}}})),r){e.d=!1;var s=lk(o,n);return r.replace(i,s)}}function ck(t){return Object(b["isString"])(t)?rk[t]?"cubic-bezier("+rk[t]+")":vn(t)?t:"":""}function hk(t,e,n,r){var i=t.animators,a=i.length,o=[];if(t instanceof zm){var s=uk(t,e,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=i[u],h=[c.getMaxTime()/1e3+"s"],d=ck(c.getClip().easing),p=c.getDelay();d?h.push(d):h.push("linear"),p&&h.push(p/1e3+"s"),c.getLoop()&&h.push("infinite");var f=h.join(" ");l[f]=l[f]||[f,[]],l[f][1].push(c)}function g(i){var a,o=i[1],s=o.length,l={},u={},c={},h="animation-timing-function";function d(t,e,n){for(var r=t.getTracks(),i=t.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,l=o.propName;if(n&&(l=n(l)),l)for(var u=0;u<s.length;u++){var c=s[u],d=Math.round(c.time/i*100)+"%",p=ck(c.easing),f=c.rawValue;(Object(b["isString"])(f)||Object(b["isNumber"])(f))&&(e[d]=e[d]||{},e[d][l]=c.rawValue,p&&(e[d][h]=p))}}}}for(var p=0;p<s;p++){var f=o[p],g=f.targetName;g?"shape"===g&&d(f,u):!r&&d(f,l)}for(var y in l){var v={};Lr(v,t),Object(b["extend"])(v,l[y]);var m=Object(_n["g"])(v),x=l[y][h];c[y]=m?{transform:m}:{},ok(c[y],v),x&&(c[y][h]=x)}var _=!0;for(var y in u){c[y]=c[y]||{};var w=!a;x=u[y][h];w&&(a=new pl);var S=a.len();a.reset(),c[y].d=ak(t,u[y],a);var M=a.len();if(!w&&S!==M){_=!1;break}x&&(c[y][h]=x)}if(!_)for(var y in c)delete c[y].d;if(!r)for(p=0;p<s;p++){f=o[p],g=f.targetName;"style"===g&&d(f,c,(function(t){return sk[t]}))}var O,I=Object(b["keys"])(c),T=!0;for(p=1;p<I.length;p++){var C=I[p-1],A=I[p];if(c[C][ik]!==c[A][ik]){T=!1;break}O=c[C][ik]}if(T&&O){for(var y in c)c[y][ik]&&delete c[y][ik];e[ik]=O}if(Object(b["filter"])(I,(function(t){return Object(b["keys"])(c[t]).length>0})).length){var D=lk(c,n);return D+" "+i[0]+" both"}}for(var y in l){s=g(l[y]);s&&o.push(s)}if(o.length){var v=n.zrId+"-cls-"+nk();n.cssNodes["."+v]={animation:o.join(",")},e["class"]=v}}function dk(t,e,n){if(!t.ignore)if(t.isSilent()){var r={"pointer-events":"none"};pk(r,e,n,!0)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=i.fill;if(!a){var o=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||o;l&&(a=Object(bn["liftColor"])(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&t.transform?t.transform[0]:1;u/=c}r={cursor:"pointer"};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),pk(r,e,n,!0)}}function pk(t,e,n,r){var i=JSON.stringify(t),a=n.cssStyleCache[i];a||(a=n.zrId+"-cls-"+nk(),n.cssStyleCache[i]=a,n.cssNodes["."+a+(r?":hover":"")]=t),e["class"]=e["class"]?e["class"]+" "+a:a}var fk=Math.round;function gk(t){return t&&Object(b["isString"])(t.src)}function yk(t){return t&&Object(b["isFunction"])(t.toDataURL)}function vk(t,e,n,r){FD((function(i,a){var o="fill"===i||"stroke"===i;o&&Object(_n["k"])(a)?Lk(e,t,i,r):o&&Object(_n["n"])(a)?Pk(n,t,i,r):t[i]=a,o&&r.ssr&&"none"===a&&(t["pointer-events"]="visible")}),e,n,!1),kk(n,t,r)}function mk(t,e){var n=Ai(e);n&&(n.each((function(e,n){null!=e&&(t[(UD+n).toLowerCase()]=e+"")})),e.isSilent()&&(t[UD+"silent"]="true"))}function xk(t){return Object(_n["j"])(t[0]-1)&&Object(_n["j"])(t[1])&&Object(_n["j"])(t[2])&&Object(_n["j"])(t[3]-1)}function bk(t){return Object(_n["j"])(t[4])&&Object(_n["j"])(t[5])}function _k(t,e,n){if(e&&(!bk(e)||!xk(e))){var r=n?10:1e4;t.transform=xk(e)?"translate("+fk(e[4]*r)/r+" "+fk(e[5]*r)/r+")":Object(_n["e"])(e)}}function wk(t,e,n){for(var r=t.points,i=[],a=0;a<r.length;a++)i.push(fk(r[a][0]*n)/n),i.push(fk(r[a][1]*n)/n);e.points=i.join(" ")}function Sk(t){return!t.smooth}function Mk(t){var e=Object(b["map"])(t,(function(t){return"string"===typeof t?[t,t]:t}));return function(t,n,r){for(var i=0;i<e.length;i++){var a=e[i],o=t[a[0]];null!=o&&(n[a[1]]=fk(o*r)/r)}}}var Ok={circle:[Mk(["cx","cy","r"])],polyline:[wk,Sk],polygon:[wk,Sk]};function Ik(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return!0;return!1}function Tk(t,e){var n=t.style,r=t.shape,i=Ok[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&Object(_n["f"])(t)||4;if(!i||e.willUpdate||i[1]&&!i[1](r)||o&&Ik(t)||l<1){var c=!t.path||t.shapeChanged();t.path||t.createPathProxy();var h=t.path;c&&(h.beginPath(),t.buildPath(h,t.shape),t.pathUpdated());var d=h.getVersion(),p=t,f=p.__svgPathBuilder;p.__svgPathVersion===d&&f&&l===p.__svgPathStrokePercent||(f||(f=p.__svgPathBuilder=new jD),f.reset(u),h.rebuildPath(f,l),f.generateStr(),p.__svgPathVersion=d,p.__svgPathStrokePercent=l),a.d=f.getStr()}else{s=t.type;var g=Math.pow(10,u);i[0](r,a,g)}return _k(a,t.transform),vk(a,n,t,e),mk(a,t),e.animation&&hk(t,a,e),e.emphasis&&dk(t,a,e),ZD(s,t.id+"",a)}function Ck(t,e){var n=t.style,r=n.image;if(r&&!Object(b["isString"])(r)&&(gk(r)?r=r.src:yk(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,l={href:r,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),_k(l,t.transform),vk(l,n,t,e),mk(l,t),e.animation&&hk(t,l,e),ZD("image",t.id+"",l)}}function Ak(t,e){var n=t.style,r=n.text;if(null!=r&&(r+=""),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||Nr["a"],a=n.x||0,o=Object(_n["b"])(n.y||0,Xr(i),n.textBaseline),s=_n["a"][n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(pu(n)){var u="",c=n.fontStyle,h=hu(n.fontSize);if(!parseFloat(h))return;var d=n.fontFamily||Nr["b"],p=n.fontWeight;u+="font-size:"+h+";font-family:"+d+";",c&&"normal"!==c&&(u+="font-style:"+c+";"),p&&"normal"!==p&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),_k(l,t.transform),vk(l,n,t,e),mk(l,t),e.animation&&hk(t,l,e),ZD("text",t.id+"",l,void 0,r)}}function Dk(t,e){return t instanceof Bl?Tk(t,e):t instanceof Xl?Ck(t,e):t instanceof Hl?Ak(t,e):void 0}function kk(t,e,n){var r=t.style;if(Object(_n["i"])(r)){var i=Object(_n["h"])(t),a=n.shadowCache,o=a[i];if(!o){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,h=r.shadowOffsetY||0,d=r.shadowBlur,p=Object(_n["p"])(r.shadowColor),f=p.opacity,g=p.color,y=d/2/l,v=d/2/u,m=y+" "+v;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=ZD("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ZD("feDropShadow","",{dx:c/l,dy:h/u,stdDeviation:m,"flood-color":g,"flood-opacity":f})]),a[i]=o}e.filter=Object(_n["d"])(o)}}function Lk(t,e,n,r){var i,a=t[n],o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Object(_n["m"])(a))i="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else{if(!Object(_n["o"])(a))return void 0;i="radialGradient",o.cx=Object(b["retrieve2"])(a.x,.5),o.cy=Object(b["retrieve2"])(a.y,.5),o.r=Object(b["retrieve2"])(a.r,.5)}for(var s=a.colorStops,l=[],u=0,c=s.length;u<c;++u){var h=100*Object(_n["q"])(s[u].offset)+"%",d=s[u].color,p=Object(_n["p"])(d),f=p.color,g=p.opacity,y={offset:h};y["stop-color"]=f,g<1&&(y["stop-opacity"]=g),l.push(ZD("stop",u+"",y))}var v=ZD(i,"",o,l),m=KD(v),x=r.gradientCache,_=x[m];_||(_=r.zrId+"-g"+r.gradientIdx++,x[m]=_,o.id=_,r.defs[_]=ZD(i,_,o,l)),e[n]=Object(_n["d"])(_)}function Pk(t,e,n,r){var i,a=t.style[n],o=t.getBoundingRect(),s={},l=a.repeat,u="no-repeat"===l,c="repeat-x"===l,h="repeat-y"===l;if(Object(_n["l"])(a)){var d=a.imageWidth,p=a.imageHeight,f=void 0,g=a.image;if(Object(b["isString"])(g)?f=g:gk(g)?f=g.src:yk(g)&&(f=g.toDataURL()),"undefined"===typeof Image){var y="Image width/height must been given explictly in svg-ssr renderer.";Object(b["assert"])(d,y),Object(b["assert"])(p,y)}else if(null==d||null==p){var v=function(t,e){if(t){var n=t.elm,r=d||e.width,i=p||e.height;"pattern"===t.tag&&(c?(i=1,r/=o.width):h&&(r=1,i/=o.height)),t.attrs.width=r,t.attrs.height=i,n&&(n.setAttribute("width",r),n.setAttribute("height",i))}},m=Ko(f,null,t,(function(t){u||v(S,t),v(i,t)}));m&&m.width&&m.height&&(d=d||m.width,p=p||m.height)}i=ZD("image","img",{href:f,width:d,height:p}),s.width=d,s.height=p}else a.svgElement&&(i=Object(b["clone"])(a.svgElement),s.width=a.svgWidth,s.height=a.svgHeight);if(i){var x,_;u?x=_=1:c?(_=1,x=s.width/o.width):h?(x=1,_=s.height/o.height):s.patternUnits="userSpaceOnUse",null==x||isNaN(x)||(s.width=x),null==_||isNaN(_)||(s.height=_);var w=Object(_n["g"])(a);w&&(s.patternTransform=w);var S=ZD("pattern","",s,[i]),M=KD(S),O=r.patternCache,I=O[M];I||(I=r.zrId+"-p"+r.patternIdx++,O[M]=I,s.id=I,S=r.defs[I]=ZD("pattern",I,s,[i])),e[n]=Object(_n["d"])(I)}}function jk(t,e,n){var r=n.clipPathCache,i=n.defs,a=r[t.id];if(!a){a=n.zrId+"-c"+n.clipPathIdx++;var o={id:a};r[t.id]=a,i[a]=ZD("clipPath",a,o,[Tk(t,n)])}e["clip-path"]=Object(_n["d"])(a)}function Rk(t){return document.createTextNode(t)}function Nk(t,e,n){t.insertBefore(e,n)}function Ek(t,e){t.removeChild(e)}function zk(t,e){t.appendChild(e)}function Bk(t){return t.parentNode}function Vk(t){return t.nextSibling}function Fk(t,e){t.textContent=e}var Hk=58,Gk=120,Wk=ZD("","");function Yk(t){return void 0===t}function Uk(t){return void 0!==t}function Xk(t,e,n){for(var r={},i=e;i<=n;++i){var a=t[i].key;void 0!==a&&(r[a]=i)}return r}function Zk(t,e){var n=t.key===e.key,r=t.tag===e.tag;return r&&n}function qk(t){var e,n=t.children,r=t.tag;if(Uk(r)){var i=t.elm=XD(r);if(Jk(Wk,t),Object(b["isArray"])(n))for(e=0;e<n.length;++e){var a=n[e];null!=a&&zk(i,qk(a))}else Uk(t.text)&&!Object(b["isObject"])(t.text)&&zk(i,Rk(t.text))}else t.elm=Rk(t.text);return t.elm}function $k(t,e,n,r,i){for(;r<=i;++r){var a=n[r];null!=a&&Nk(t,qk(a),e)}}function Kk(t,e,n,r){for(;n<=r;++n){var i=e[n];if(null!=i)if(Uk(i.tag)){var a=Bk(i.elm);Ek(a,i.elm)}else Ek(t,i.elm)}}function Jk(t,e){var n,r=e.elm,i=t&&t.attrs||{},a=e.attrs||{};if(i!==a){for(n in a){var o=a[n],s=i[n];s!==o&&(!0===o?r.setAttribute(n,""):!1===o?r.removeAttribute(n):"style"===n?r.style.cssText=o:n.charCodeAt(0)!==Gk?r.setAttribute(n,o):"xmlns:xlink"===n||"xmlns"===n?r.setAttributeNS(WD,n,o):n.charCodeAt(3)===Hk?r.setAttributeNS(YD,n,o):n.charCodeAt(5)===Hk?r.setAttributeNS(GD,n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function Qk(t,e,n){var r,i,a,o,s=0,l=0,u=e.length-1,c=e[0],h=e[u],d=n.length-1,p=n[0],f=n[d];while(s<=u&&l<=d)null==c?c=e[++s]:null==h?h=e[--u]:null==p?p=n[++l]:null==f?f=n[--d]:Zk(c,p)?(tL(c,p),c=e[++s],p=n[++l]):Zk(h,f)?(tL(h,f),h=e[--u],f=n[--d]):Zk(c,f)?(tL(c,f),Nk(t,c.elm,Vk(h.elm)),c=e[++s],f=n[--d]):Zk(h,p)?(tL(h,p),Nk(t,h.elm,c.elm),h=e[--u],p=n[++l]):(Yk(r)&&(r=Xk(e,s,u)),i=r[p.key],Yk(i)?Nk(t,qk(p),c.elm):(a=e[i],a.tag!==p.tag?Nk(t,qk(p),c.elm):(tL(a,p),e[i]=void 0,Nk(t,a.elm,c.elm))),p=n[++l]);(s<=u||l<=d)&&(s>u?(o=null==n[d+1]?null:n[d+1].elm,$k(t,o,n,l,d)):Kk(t,e,s,u))}function tL(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(Jk(t,e),Yk(e.text)?Uk(r)&&Uk(i)?r!==i&&Qk(n,r,i):Uk(i)?(Uk(t.text)&&Fk(n,""),$k(n,null,i,0,i.length-1)):Uk(r)?Kk(n,r,0,r.length-1):Uk(t.text)&&Fk(n,""):t.text!==e.text&&(Uk(r)&&Kk(n,r,0,r.length-1),Fk(n,e.text)))}function eL(t,e){if(Zk(t,e))tL(t,e);else{var n=t.elm,r=Bk(n);qk(e),null!==r&&(Nk(r,e.elm,Vk(n)),Kk(r,[t],0,0))}return e}var nL=0,rL=function(){function t(t,e,n){if(this.type="svg",this.configLayer=iL("configLayer"),this.storage=e,this._opts=n=Object(b["extend"])({},n),this.root=t,this._id="zr"+nL++,this._oldVNode=tk(n.width,n.height),t&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=XD("svg");Jk(null,this._oldVNode),r.appendChild(i),t.appendChild(r)}this.resize(n.width,n.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",eL(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return Dk(t,QD(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=QD(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress,i.emphasis=t.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=aL(n,r,this._backgroundColor,i);o&&a.push(o);var s=t.compress?null:this._mainVNode=ZD("g","main",{},[]);this._paintList(e,i,s?s.children:a),s&&a.push(s);var l=Object(b["map"])(Object(b["keys"])(i.defs),(function(t){return i.defs[t]}));if(l.length&&a.push(ZD("defs","defs",{},l)),t.animation){var u=JD(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=ZD("style","stl",{},[],u);a.push(c)}}return tk(n,r,a,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},KD(this.renderToVNode({animation:Object(b["retrieve2"])(t.cssAnimation,!0),emphasis:Object(b["retrieve2"])(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(b["retrieve2"])(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,n){for(var r,i,a=t.length,o=[],s=0,l=0,u=0;u<a;u++){var c=t[u];if(!c.invisible){var h=c.__clipPaths,d=h&&h.length||0,p=i&&i.length||0,f=void 0;for(f=Math.max(d-1,p-1);f>=0;f--)if(h&&i&&h[f]===i[f])break;for(var g=p-1;g>f;g--)s--,r=o[s-1];for(var y=f+1;y<d;y++){var v={};jk(h[y],v,e);var m=ZD("g","clip-g-"+l++,v,[]);(r?r.children:n).push(m),o[s++]=m,r=m}i=h;var x=Dk(c,e);x&&(r?r.children:n).push(x)}}},t.prototype.resize=function(t,e){var n=this._opts,r=this.root,i=this._viewport;if(null!=t&&(n.width=t),null!=e&&(n.height=e),r&&i&&(i.style.display="none",t=X_(r,0,n),e=X_(r,1,n),i.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,i){var a=i.style;a.width=t+"px",a.height=e+"px"}if(Object(_n["n"])(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute("width",t),o.setAttribute("height",e));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute("width",t),s.setAttribute("height",e))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=Object(_n["c"])(e),e&&n+"base64,"+e):n+"charset=UTF-8,"+encodeURIComponent(e)},t}();function iL(t){return function(){0}}function aL(t,e,n,r){var i;if(n&&"none"!==n)if(i=ZD("rect","bg",{width:t,height:e,x:"0",y:"0"}),Object(_n["k"])(n))Lk({fill:n},i.attrs,"fill",r);else if(Object(_n["n"])(n))Pk({style:{fill:n},dirty:b["noop"],getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",r);else{var a=Object(_n["p"])(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}var oL=rL;function sL(t){t.registerPainter("svg",oL)}var lL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return f(e,t),e.prototype.getInitialData=function(t){return OO(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new vi,n=z_("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var r=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),a="none"===r?"circle":r,o=.8*t.itemHeight,s=z_(a,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill);e.add(s),s.setStyle(t.itemStyle);var l="inherit"===t.iconRotate?i:t.iconRotate||0;return s.rotation=l*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),a.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill=Xp.color.neutral00,s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={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},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e}(vv),uL=lL;function cL(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Xg(t,e,n[0]);return null!=i?i+"":null}if(r){for(var a=[],o=0;o<n.length;o++)a.push(Xg(t,e,n[o]));return a.join(" ")}}function hL(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!Object(b["isArray"])(e))return e+"";for(var r=[],i=0;i<n.length;i++){var a=t.getDimensionIndex(n[i]);a>=0&&r.push(e[a])}return r.join(" ")}var dL=function(t){function e(e,n,r,i){var a=t.call(this)||this;return a.updateData(e,n,r,i),a}return f(e,t),e.prototype._createSymbol=function(t,e,n,r,i,a){this.removeAll();var o=z_(t,-1,-1,2,2,null,a);o.attr({z2:Object(b["retrieve2"])(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=pL,this._symbolType=t,this.add(o)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){wc(this.childAt(0))},e.prototype.downplay=function(){Sc(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,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,r,i){this.silent=!1;var a=t.getItemVisual(n,"symbol")||"circle",o=t.hostModel,s=e.getSymbolSize(t,n),l=e.getSymbolZ2(t,n),u=a!==this._symbolType,c=i&&i.disableAnimation;if(u){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,t,n,s,l,h)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};c?d.attr(p):nh(d,p,o,n),lh(d)}if(this._updateCommon(t,n,s,r,i),u){d=this.childAt(0);if(!c){p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,rh(d,p,o,n)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,r,i){var a,o,s,l,u,c,h,d,p,f=this.childAt(0),g=t.hostModel;if(r&&(a=r.emphasisItemStyle,o=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,h=r.labelStatesModels,d=r.hoverScale,p=r.cursorStyle,c=r.emphasisDisabled),!r||t.hasItemOption){var y=r&&r.itemModel?r.itemModel:t.getItemModel(e),v=y.getModel("emphasis");a=v.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),o=y.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),c=v.get("disabled"),h=fh(y),d=v.getShallow("scale"),p=y.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var x=V_(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),p&&f.attr("cursor",p);var _=t.getItemVisual(e,"style"),w=_.fill;if(f instanceof Xl){var S=f.style;f.useStyle(Object(b["extend"])({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},_))}else f.__isEmptyBrush?f.useStyle(Object(b["extend"])({},_)):f.useStyle(_),f.style.decal=null,f.setColor(w,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var M=t.getItemVisual(e,"liftZ"),O=this._z2;null!=M?null==O&&(this._z2=f.z2,f.z2+=M):null!=O&&(f.z2=O,this._z2=null);var I=i&&i.useNameLabel;function T(e){return I?t.getName(e):cL(t,e)}ph(f,h,{labelFetcher:g,labelDataIndex:e,defaultText:T,inheritColor:w,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=f.ensureState("emphasis");C.style=a,f.ensureState("select").style=s,f.ensureState("blur").style=o;var A=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;C.scaleX=this._sizeX*A,C.scaleY=this._sizeY*A,this.setSymbolScale(1),Fc(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var r=this.childAt(0),i=wu(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&ah(o,{style:{opacity:0}},e,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();ah(r,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:a})},e.getSymbolSize=function(t,e){return B_(t.getItemVisual(e,"symbolSize"))},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(vi);function pL(t,e){this.parent.drift(t,e)}var fL=dL;function gL(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function yL(t){return null==t||Object(b["isObject"])(t)||(t={isIgnore:t}),t||{}}function vL(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"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:fh(e),cursorStyle:e.get("cursor")}}function mL(t,e,n,r,i,a,o){var s=new t(e,n,r,i);return s.setPosition(a),e.setItemGraphicEl(n,s),o.add(s),s}var xL=function(){function t(t){this.group=new vi,this._SymbolCtor=t||fL}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=yL(e);var n=this.group,r=t.hostModel,i=this._data,a=this._SymbolCtor,o=e.disableAnimation,s=this._seriesScope=vL(t),l={disableAnimation:o},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||n.removeAll(),t.diff(i).add((function(r){var i=u(r);gL(t,i,r,e)&&mL(a,t,r,s,l,i,n)})).update((function(c,h){var d=i.getItemGraphicEl(h),p=u(c);if(gL(t,p,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),d=new a(t,c,s,l),d.setPosition(p);else{d.updateData(t,c,s,l);var y={x:p[0],y:p[1]};o?d.attr(y):nh(d,y,r)}n.add(d),t.setItemGraphicEl(c,d)}else n.remove(d)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(t){var e=this._data;if(e)for(var n=this,r=e.getStore(),i=0,a=r.count();i<a;i++){var o=e.getItemGraphicEl(i),s=n._getSymbolPoint(i);gL(e,s,i,t)?(o=o||mL(n._SymbolCtor,e,i,n._seriesScope,{disableAnimation:!0},s,n.group),o.stopAnimation(),o.setPosition(s),o.markRedraw()):o&&(n.group.remove(o),e.setItemGraphicEl(i,null))}},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=vL(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n,r){function i(t){t.isGroup||(t.incremental=n,t.ensureState("emphasis").hoverLayer=fx)}this._progressiveEls=[],r=yL(r);for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(gL(e,o,a,r)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(t){Xx(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl((function(t){t.fadeOut((function(){e.remove(t)}),n.hostModel)})):e.removeAll()},t}(),bL=xL;function _L(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),a=wL(i,n),o=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),c="x"===s||"radius"===s?1:0,h=Object(b["map"])(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return mO(e,h[0])&&(d=!0,h[0]=p),mO(e,h[1])&&(d=!0,h[1]=p),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function wL(t,e){var n=0,r=t.scale.getExtent();return"start"===e?n=r[0]:"end"===e?n=r[1]:Object(b["isNumber"])(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function SL(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=n.get(t.baseDim,r),o[1-a]=i,e.dataToPoint(o)}function ML(t,e){return!isFinite(t)||!isFinite(e)}typeof Int8Array!==Mu&&Int8Array,typeof Int16Array!==Mu&&Int16Array,typeof Int32Array!==Mu&&Int32Array,typeof Uint8Array!==Mu&&Uint8Array,typeof Uint16Array!==Mu&&Uint16Array,typeof Uint32Array!==Mu&&Uint32Array,typeof Uint8ClampedArray!==Mu&&Uint8ClampedArray;var OL=typeof Float32Array!==Mu?Float32Array:void 0,IL=typeof Float64Array!==Mu?Float64Array:void 0;function TL(t){return CL({ctor:OL},t).arr}function CL(t,e){var n=t.arr,r=t.ctor;if(e>ua&&(e=ua),!n||t.typed&&n.length<e){var i=void 0;if(r)try{i=new r(e),t.typed=!0,n&&i.set(n)}catch(s){0}if(!i&&(i=[],t.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];t.arr=i}return t}function AL(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 DL(t,e,n,r,i,a,o,s){for(var l=AL(t,e),u=[],c=[],h=[],d=[],p=[],f=[],g=[],y=_L(i,e,o),v=t.getLayout("points")||[],m=e.getLayout("points")||[],x=0;x<l.length;x++){var b=l[x],_=!0,w=void 0,S=void 0;switch(b.cmd){case"=":w=2*b.idx,S=2*b.idx1;var M=v[w],O=v[w+1],I=m[S],T=m[S+1];(isNaN(M)||isNaN(O))&&(M=I,O=T),u.push(M,O),c.push(I,T),h.push(n[w],n[w+1]),d.push(r[S],r[S+1]),g.push(e.getRawIndex(b.idx1));break;case"+":var C=b.idx,A=y.dataDimsForPoint,D=i.dataToPoint([e.get(A[0],C),e.get(A[1],C)]);S=2*C,u.push(D[0],D[1]),c.push(m[S],m[S+1]);var k=SL(y,i,e,C);h.push(k[0],k[1]),d.push(r[S],r[S+1]),g.push(e.getRawIndex(C));break;case"-":_=!1}_&&(p.push(b),f.push(f.length))}f.sort((function(t,e){return g[t]-g[e]}));var L=u.length,P=TL(L),j=TL(L),R=TL(L),N=TL(L),E=[];for(x=0;x<f.length;x++){var z=f[x],B=2*x,V=2*z;P[B]=u[V],P[B+1]=u[V+1],j[B]=c[V],j[B+1]=c[V+1],R[B]=h[V],R[B+1]=h[V+1],N[B]=d[V],N[B+1]=d[V+1],E[x]=p[z]}return{current:P,next:j,stackedOnCurrent:R,stackedOnNext:N,status:E}}var kL=Math.min,LL=Math.max;function PL(t,e,n,r,i,a,o,s,l){for(var u,c,h,d,p,f,g=n,y=0;y<r;y++){var v=e[2*g],m=e[2*g+1];if(g>=i||g<0)break;if(ML(v,m)){if(l){g+=a;continue}break}if(g===n)t[a>0?"moveTo":"lineTo"](v,m),h=v,d=m;else{var x=v-u,b=m-c;if(x*x+b*b<.5){g+=a;continue}if(o>0){var _=g+a,w=e[2*_],S=e[2*_+1];while(w===v&&S===m&&y<r)y++,_+=a,g+=a,w=e[2*_],S=e[2*_+1],v=e[2*g],m=e[2*g+1],x=v-u,b=m-c;var M=y+1;if(l)while(ML(w,S)&&M<r)M++,_+=a,w=e[2*_],S=e[2*_+1];var O=.5,I=0,T=0,C=void 0,A=void 0;if(M>=r||ML(w,S))p=v,f=m;else{I=w-u,T=S-c;var D=v-u,k=w-v,L=m-c,P=S-m,j=void 0,R=void 0;if("x"===s){j=Math.abs(D),R=Math.abs(k);var N=I>0?1:-1;p=v-N*j*o,f=m,C=v+N*R*o,A=m}else if("y"===s){j=Math.abs(L),R=Math.abs(P);var E=T>0?1:-1;p=v,f=m-E*j*o,C=v,A=m+E*R*o}else j=Math.sqrt(D*D+L*L),R=Math.sqrt(k*k+P*P),O=R/(R+j),p=v-I*o*(1-O),f=m-T*o*(1-O),C=v+I*o*O,A=m+T*o*O,C=kL(C,LL(w,v)),A=kL(A,LL(S,m)),C=LL(C,kL(w,v)),A=LL(A,kL(S,m)),I=C-v,T=A-m,p=v-I*j/R,f=m-T*j/R,p=kL(p,LL(u,v)),f=kL(f,LL(c,m)),p=LL(p,kL(u,v)),f=LL(f,kL(c,m)),I=v-p,T=m-f,C=v+I*R/j,A=m+T*R/j}t.bezierCurveTo(h,d,p,f,v,m),h=C,d=A}else t.lineTo(v,m)}u=v,c=m,g+=a}return y}var jL=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),RL=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return f(e,t),e.prototype.getDefaultStyle=function(){return{stroke:Xp.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new jL},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0;i--)if(!ML(n[2*i-2],n[2*i-1]))break;for(;r<i;r++)if(!ML(n[2*r],n[2*r+1]))break}while(r<i)r+=PL(t,n,r,i,i,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,r,i=this.path,a=i.data,o=pl.CMD,s="x"===e,l=[],u=0;u<a.length;){var c=a[u++],h=void 0,d=void 0,p=void 0,f=void 0,g=void 0,y=void 0,v=void 0;switch(c){case o.M:n=a[u++],r=a[u++];break;case o.L:if(h=a[u++],d=a[u++],v=s?(t-n)/(h-n):(t-r)/(d-r),v<=1&&v>=0){var m=s?(d-r)*v+r:(h-n)*v+n;return s?[t,m]:[m,t]}n=h,r=d;break;case o.C:h=a[u++],d=a[u++],p=a[u++],f=a[u++],g=a[u++],y=a[u++];var x=s?rn(n,h,p,g,t,l):rn(r,d,f,y,t,l);if(x>0)for(var b=0;b<x;b++){var _=l[b];if(_<=1&&_>=0){m=s?en(r,d,f,y,_):en(n,h,p,g,_);return s?[t,m]:[m,t]}}n=g,r=y;break}}},e}(Bl),NL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e}(jL),EL=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return f(e,t),e.prototype.getDefaultShape=function(){return new NL},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,a=n.length/2,o=e.smoothMonotone;if(e.connectNulls){for(;a>0;a--)if(!ML(n[2*a-2],n[2*a-1]))break;for(;i<a;i++)if(!ML(n[2*i],n[2*i+1]))break}while(i<a){var s=PL(t,n,i,a,a,1,e.smooth,o,e.connectNulls);PL(t,r,i+s-1,s,a,-1,e.stackedOnSmooth,o,e.connectNulls),i+=s+1,t.closePath()}},e}(Bl);function zL(t,e,n,r,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=n.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new nu({shape:{x:o,y:s,width:l,height:u}});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+=u),h.shape.height=0);var g=Object(b["isFunction"])(i)?function(t){i(t,h)}:null;rh(h,{shape:{width:l,height:u,x:o,y:s}},n,null,r,g)}return h}function BL(t,e,n){var r=t.getArea(),i=Qi(r.r0,1),a=Qi(r.r,1),o=new pm({shape:{cx:Qi(t.cx,1),cy:Qi(t.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var s="angle"===t.getBaseAxis().dim;s?o.shape.endAngle=r.startAngle:o.shape.r=i,rh(o,{shape:{endAngle:r.endAngle,r:a}},n)}return o}function VL(t,e,n,r,i){return t?"polar"===t.type?BL(t,e,n):"cartesian2d"===t.type?zL(t,e,n,r,i):null:null}var FL=0,HL=1,GL=2;function WL(t,e,n){t?e.setClipPath(n):e.removeClipPath()}function YL(t){var e=t.coordinateSystem;if(t.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function UL(t,e){return t.type===e}function XL(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]&&!!t.getViewRect}function ZL(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function qL(t){for(var e=po(),n=po(),r=0;r<t.length;){var i=t[r++],a=t[r++];ML(i,a)||(fo(e,i),fo(n,a))}return[e,n]}function $L(t,e){var n=qL(t),r=n[0],i=n[1],a=qL(e),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function KL(t){return b["isNumber"](t)?t:t?.5:0}function JL(t,e,n){if(null==n.valueDim)return[];for(var r=e.count(),i=TL(2*r),a=0;a<r;a++){var o=SL(n,t,e,a);i[2*a]=o[0],i[2*a+1]=o[1]}return i}function QL(t,e,n,r,i){var a=n.getBaseAxis(),o="x"===a.dim||"radius"===a.dim?0:1,s=[],l=0,u=[],c=[],h=[],d=[];if(i){for(l=0;l<t.length;l+=2){var p=e||t;ML(p[l],p[l+1])||d.push(t[l],t[l+1])}t=d}for(l=0;l<t.length-2;l+=2)switch(h[0]=t[l+2],h[1]=t[l+3],c[0]=t[l],c[1]=t[l+1],s.push(c[0],c[1]),r){case"end":u[o]=h[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var f=(c[o]+h[o])/2,g=[];u[o]=g[o]=f,u[1-o]=c[1-o],g[1-o]=h[1-o],s.push(u[0],u[1]),s.push(g[0],g[1]);break;default:u[o]=c[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(t[l++],t[l++]),s}function tP(t,e){var n,r,i=[],a=t.length;function o(t,e,n){var r=t.coord,i=(n-r)/(e.coord-r),a=Object(bn["lerp"])(i,[t.color,e.color]);return{coord:n,color:a}}for(var s=0;s<a;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(u>e){r?i.push(o(r,l,e)):n&&i.push(o(n,l,0),o(n,l,e));break}n&&(i.push(o(n,l,0)),n=null),i.push(l),r=l}}return i}function eP(t,e,n){var r=t.getVisual("visualMeta");if(r&&r.length&&t.count()&&"cartesian2d"===e.type){for(var i,a,o=r.length-1;o>=0;o--){var s=t.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,"x"===i||"y"===i){a=r[o];break}}if(a){var l=e.getAxis(i),u=b["map"](a.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,h=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),h.reverse());var d=tP(u,"x"===i?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?h[1]?h[1]:u[c-1].color:h[0]?h[0]:u[0].color;var f=10,g=d[0].coord-f,y=d[p-1].coord+f,v=y-g;if(v<.001)return"transparent";b["each"](d,(function(t){t.offset=(t.coord-g)/v})),d.push({offset:p?d[p-1].offset:.5,color:h[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:h[0]||"transparent"});var m=new Hm(0,0,0,0,d,!0);return m[i]=g,m[i+"2"]=y,m}}}function nP(t,e,n){var r=t.get("showAllSymbol"),i="auto"===r;if(!r||i){var a=n.getAxesByScale("ordinal")[0];if(a&&(!i||!rP(a,e))){var o=e.mapDimension(a.dim),s={};return b["each"](a.getViewLabels(),(function(t){t.tick.offInterval||(s[tT(a.scale,t.tick)]=1)})),function(t){return!s.hasOwnProperty(e.get(o,t))}}}}function rP(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(1.5*fL.getSymbolSize(e,o)[t.isHorizontal()?1:0]>r)return!1;return!0}function iP(t){for(var e=t.length/2;e>0;e--)if(!ML(t[2*e-2],t[2*e-1]))break;return e-1}function aP(t,e){return[t[2*e],t[2*e+1]]}function oP(t,e,n){for(var r,i,a=t.length/2,o="x"===n?0:1,s=0,l=-1,u=0;u<a;u++)if(i=t[2*u+o],!ML(i,t[2*u+1-o]))if(0!==u){if(r<=e&&i>=e||r>=e&&i<=e){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(e-r)/(i-r)}}function sP(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Xu.length;e++)if(t.get([Xu[e],"endLabel","show"]))return!0;return!1}function lP(t,e,n,r){if(UL(e,"cartesian2d")){var i=r.getModel("endLabel"),a=i.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=sP(r)?function(n,r){t._endLabelOnDuring(n,r,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=zL(e,n,r,(function(){var e=t._endLabel;e&&n&&null!=s.originalX&&e.attr({x:s.originalX,y:s.originalY})}),l);if(!r.get("clip",!0)){var h=c.shape,d=Math.max(h.width,h.height);u?(h.y-=d,h.height+=2*d):(h.x-=d,h.width+=2*d)}return l&&l(1,c),c}return BL(e,n,r)}function uP(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?"right":"left":"center",o=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var cP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.init=function(){var t=new vi,e=new bL;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=b["bind"](this._changePolyState,this)},e.prototype.render=function(t,e,n){var r=t.coordinateSystem,i=this.group,a=t.getData(),o=t.getModel("lineStyle"),s=t.getModel("areaStyle"),l=a.getLayout("points")||[],u="polar"===r.type,c=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,f=this._lineGroup,g=!e.ssr&&t.get("animation"),y=!s.isEmpty(),v=s.get("origin"),m=_L(r,a,v),x=y&&JL(r,a,m),_=t.get("showSymbol"),w=t.get("connectNulls"),S=_&&!u&&nP(t,a,r),M=this._data;M&&M.eachItemGraphicEl((function(t,e){t.__temp&&(i.remove(t),M.setItemGraphicEl(e,null))})),_||h.remove(),i.add(f);var O,I=!u&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(O=r.getArea(),null!=O.width?(O.x-=.1,O.y-=.1,O.width+=.2,O.height+=.2):O.r0&&(O.r0-=.5,O.r+=.5)),this._clipShapeForSymbol=O;var T=eP(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(d&&c.type===r.type&&I===this._step){y&&!p?p=this._newPolygon(l,x):p&&!y&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,rp(T));var C=f.getClipPath();if(C){var A=lP(this,r,!1,t);rh(C,{shape:A.shape},t)}else f.setClipPath(lP(this,r,!0,t));_&&h.updateData(a,{isIgnore:S,clipShape:O,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),ZL(this._stackedOnPoints,x)&&ZL(this._points,l)||(g?this._doUpdateAnimation(a,x,r,n,I,v,w):(I&&(x&&(x=QL(x,l,r,I,w)),l=QL(l,null,r,I,w)),d.setShape({points:l}),p&&p.setShape({points:l,stackedOnPoints:x})))}else _&&h.updateData(a,{isIgnore:S,clipShape:O,disableAnimation:!0,getSymbolPoint:function(t){return[l[2*t],l[2*t+1]]}}),g&&this._initSymbolLabelAnimation(a,r,O),I&&(x&&(x=QL(x,l,r,I,w)),l=QL(l,null,r,I,w)),d=this._newPolyline(l),y?p=this._newPolygon(l,x):p&&(f.remove(p),p=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,rp(T)),f.setClipPath(lP(this,r,!0,t));var D=t.getModel("emphasis"),k=D.get("focus"),L=D.get("blurScope"),P=D.get("disabled");if(d.useStyle(b["defaults"](o.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),Yc(d,t,"lineStyle"),d.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])){var j=d.getState("emphasis").style;j.lineWidth=+d.style.lineWidth+1}wu(d).seriesIndex=t.seriesIndex,Fc(d,k,L,P);var R=KL(t.get("smooth")),N=t.get("smoothMonotone");if(d.setShape({smooth:R,smoothMonotone:N,connectNulls:w}),p){var E=a.getCalculationInfo("stackedOnSeries"),z=0;p.useStyle(b["defaults"](s.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),E&&(z=KL(E.get("smooth"))),p.setShape({smooth:R,stackedOnSmooth:z,smoothMonotone:N,connectNulls:w}),Yc(p,t,"areaStyle"),wu(p).seriesIndex=t.seriesIndex,Fc(p,k,L,P)}var B=this._changePolyState;a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=B)})),this._polyline.onHoverStateChange=B,this._data=a,this._coordSys=r,this._stackedOnPoints=x,this._points=l,this._step=I,this._valueOrigin=v;var V=t.get("triggerEvent"),F=t.get("triggerLineEvent");var H=!0===F||!0===V||"line"===V,G=!0===F||!0===V||"area"===V;this.packEventData(t,d,H),p&&this.packEventData(t,p,G)},e.prototype.packEventData=function(t,e,n){wu(e).eventData=n?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:e===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,e,n,r){var i=t.getData(),a=$a(i,r);if(this._changePolyState("emphasis"),!(a instanceof Array)&&null!=a&&a>=0){var o=i.getLayout("points"),s=i.getItemGraphicEl(a);if(!s){var l=o[2*a],u=o[2*a+1];if(ML(l,u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,h=t.get("z")||0;s=new fL(i,a),s.x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else fb.prototype.highlight.call(this,t,e,n,r)},e.prototype.downplay=function(t,e,n,r){var i=t.getData(),a=$a(i,r);if(this._changePolyState("normal"),null!=a&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else fb.prototype.downplay.call(this,t,e,n,r)},e.prototype._changePolyState=function(t){var e=this._polygon;pc(this._polyline,t),e&&pc(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new RL({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 EL({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var r,i,a=e.getBaseAxis(),o=a.inverse;"cartesian2d"===e.type?(r=a.isHorizontal(),i=!1):"polar"===e.type&&(r="angle"===a.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");b["isFunction"](l)&&(l=l(null));var u=s.get("animationDelay")||0,c=b["isFunction"](u)?u(null):u;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(n)if(i){var g=n,y=e.pointToCoord(h);r?(d=g.startAngle,p=g.endAngle,f=-y[1]/180*Math.PI):(d=g.r0,p=g.r,f=y[0])}else{var v=n;r?(d=v.x,p=v.x+v.width,f=t.x):(d=v.y+v.height,p=v.y,f=t.y)}var m=p===d?0:(f-d)/(p-d);o&&(m=1-m);var x=b["isFunction"](u)?u(a):l*m+c,_=s.getSymbolPath(),w=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var r=t.getModel("endLabel");if(sP(t)){var i=t.getData(),a=this._polyline,o=i.getLayout("points");if(!o)return a.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new _u({z2:200}),s.ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var l=iP(o);l>=0&&(ph(a,fh(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?hL(i,n):cL(i,t)},enableTextSetter:!0},uP(r,e)),a.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,r,i,a,o){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=a.get("precision"),p=a.get("distance")||0,f=o.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?p:0)*(y?-1:1),b=(g?0:-p)*(y?-1:1),_=g?"x":"y",w=oP(u,m,_),S=w.range,M=S[1]-S[0],O=void 0;if(M>=1){if(M>1&&!h){var I=aP(u,S[0]);s.attr({x:I[0]+x,y:I[1]+b}),i&&(O=c.getRawValue(S[0]))}else{I=l.getPointOn(m,_);I&&s.attr({x:I[0]+x,y:I[1]+b});var T=c.getRawValue(S[0]),C=c.getRawValue(S[1]);i&&(O=uo(n,d,T,C,w.t))}r.lastFrameIndex=S[0]}else{var A=1===t||r.lastFrameIndex>0?S[0]:0;I=aP(u,A);i&&(O=c.getRawValue(A)),s.attr({x:I[0]+x,y:I[1]+b})}if(i){var D=Mh(s);"function"===typeof D.setLabelText&&D.setLabelText(O)}}},e.prototype._doUpdateAnimation=function(t,e,n,r,i,a,o){var s=this._polyline,l=this._polygon,u=t.hostModel,c=DL(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,a),h=c.current,d=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(i&&(d=QL(c.stackedOnCurrent,c.current,n,i,o),h=QL(c.current,null,n,i,o),f=QL(c.stackedOnNext,c.next,n,i,o),p=QL(c.next,null,n,i,o)),$L(h,p)>3e3||l&&$L(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=h;var g={shape:{points:p}};c.current!==h&&(g.shape.__points=c.next),s.stopAnimation(),nh(s,g,u),l&&(l.setShape({points:h,stackedOnPoints:d}),l.stopAnimation(),nh(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=c.status,m=0;m<v.length;m++){var x=v[m].cmd;if("="===x){var b=t.getItemGraphicEl(v[m].idx1);b&&y.push({el:b,ptIdx:m})}}s.animators&&s.animators.length&&s.animators[0].during((function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<y.length;e++){var n=y[e].el,r=2*y[e].ptIdx;n.x=t[r],n.y=t[r+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,r){t.__temp&&(e.remove(t),n.setItemGraphicEl(r,null))})),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(fb),hP=cP;function dP(t,e){return{seriesType:t,plan:bv(),reset:function(t){var n=t.getData(),r=t.coordinateSystem,i=t.pipelineContext,a=e||i.large;if(r){var o=Object(b["map"])(r.dimensions,(function(t){return n.mapDimension(t)})).slice(0,2),s=o.length,l=n.getCalculationInfo("stackResultDimension");mO(n,o[0])&&(o[0]=l),mO(n,o[1])&&(o[1]=l);var u=n.getStore(),c=n.getDimensionIndex(o[0]),h=n.getDimensionIndex(o[1]);return s&&{progress:function(t,e){for(var n=t.end-t.start,i=a&&TL(n*s),o=[],l=[],d=t.start,p=0;d<t.end;d++){var f=void 0;if(1===s){var g=u.get(c,d);f=r.dataToPoint(g,null,l)}else o[0]=u.get(c,d),o[1]=u.get(h,d),f=r.dataToPoint(o,null,l);a?(i[p++]=f[0],i[p++]=f[1]):e.setItemLayout(d,f.slice())}a&&(e.setLayout("points",i),e.setLayout("pointsRange",{start:t.start,end:t.end}))}}}}}}var pP={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],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]}},fP=function(t){return Math.round(t.length/2)};function gP(t){return{seriesType:t,reset:function(t,e,n){var r=t.getData(),i=t.get("sampling"),a=t.coordinateSystem,o=r.count();if(o>10&&"cartesian2d"===a.type&&i){var s=a.getBaseAxis(),l=a.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(o/h);if(isFinite(d)&&d>1){"lttb"===i?t.setData(r.lttbDownSample(r.mapDimension(l.dim),1/d)):"minmax"===i&&t.setData(r.minmaxDownSample(r.mapDimension(l.dim),1/d));var p=void 0;Object(b["isString"])(i)?p=pP[i]:Object(b["isFunction"])(i)&&(p=i),p&&t.setData(r.downSample(r.mapDimension(l.dim),1/d,p,fP))}}}}}function yP(t){t.registerChartView(hP),t.registerSeriesModel(uL),t.registerLayout(dP("line",!0)),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,gP("line"))}var vP=null;function mP(t){vP||(vP=t)}function xP(){return vP}var bP="expandAxisBreak",_P="collapseAxisBreak",wP="toggleAxisBreak",SP="axisbreakchanged",MP={type:bP,event:SP,update:"update",refineEvent:TP},OP={type:_P,event:SP,update:"update",refineEvent:TP},IP={type:wP,event:SP,update:"update",refineEvent:TP};function TP(t,e,n,r){var i=[];return Object(b["each"])(t,(function(t){i=i.concat(t.eventBreaks)})),{eventContent:{breaks:i}}}function CP(t){function e(t,e){var n=[],r=Qa(e,t);function i(e,i){Object(b["each"])(r[e],(function(e){var r=e.updateAxisBreaks(t);Object(b["each"])(r.breaks,(function(t){var r;n.push(Object(b["defaults"])((r={},r[i]=e.componentIndex,r),t))}))}))}return i("xAxisModels","xAxisIndex"),i("yAxisModels","yAxisIndex"),i("singleAxisModels","singleAxisIndex"),{eventBreaks:n}}t.registerAction(MP,e),t.registerAction(OP,e),t.registerAction(IP,e)}var AP=Math.PI,DP=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],kP=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],LP=Ka(),PP=Ka(),jP=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,n=t.componentIndex,r=this.recordMap,i=r[e]||(r[e]=[]);return i[n]||(i[n]={ready:{}})},t}();function RP(t,e,n,r){var i,a=n.axis,o=e.ensureRecord(n),s=[],l=aj(t.axisName)&&qI(t.nameLocation);Object(b["each"])(r,(function(t){var e=PA(t);if(e&&!e.label.ignore){s.push(e);var n=o.transGroup;l&&(n.transform?jt(NP,n.transform):Ct(NP),e.transform&&Dt(NP,NP,e.transform),ue.copy(EP,e.localRect),EP.applyTransform(NP),i?i.union(EP):ue.copy(i=new ue(0,0,0,0),EP))}}));var u=Math.abs(o.dirVec.x)>.1?"x":"y",c=o.transGroup[u];if(s.sort((function(t,e){return Math.abs(t.label[u]-c)-Math.abs(e.label[u]-c)})),l&&i){var h=a.getExtent(),d=Math.min(h[0],h[1]),p=Math.max(h[0],h[1])-d;i.union(new ue(d,0,p,1))}o.stOccupiedRect=i,o.labelInfoList=s}var NP=Tt(),EP=new ue(0,0,0,0),zP=function(t,e,n,r,i,a){if(qI(t.nameLocation)){var o=a.stOccupiedRect;o&&BP(NA({},o,a.transGroup.transform),r,i)}else VP(a.labelInfoList,a.dirVec,r,i)};function BP(t,e,n){var r=new Et;GA(t,e,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&EA(e,r)}function VP(t,e,n,r){for(var i=Et.dot(r,e)>=0,a=0,o=t.length;a<o;a++){var s=t[i?a:o-1-a];s.label.ignore||BP(s,n,r)}}var FP=function(){function t(t,e,n,r){this.group=new vi,this._axisModel=t,this._api=e,this._local={},this._shared=r||new jP(zP),this._resetCfgDetermined(n)}return t.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},r=Object(b["retrieve2"])(t.axisName,e.get("name")),i=e.get("nameMoveOverlap");null!=i&&"auto"!==i||(i=Object(b["retrieve2"])(t.defaultNameMoveOverlap,!0));var a={raw:t,position:t.position,rotation:t.rotation,nameDirection:Object(b["retrieve2"])(t.nameDirection,1),tickDirection:Object(b["retrieve2"])(t.tickDirection,1),labelDirection:Object(b["retrieve2"])(t.labelDirection,1),labelOffset:Object(b["retrieve2"])(t.labelOffset,0),silent:Object(b["retrieve2"])(t.silent,!0),axisName:r,nameLocation:Object(b["retrieve3"])(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:aj(r)&&i,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=a;var o=new vi({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(e);s.transGroup=this._transformGroup,s.dirVec=new Et(Math.cos(-a.rotation),Math.sin(-a.rotation))},t.prototype.build=function(t,e){var n=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),Object(b["each"])(HP,(function(r){t[r]&&GP[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,e||{})})),this},t.innerTextLayout=function(t,e,n){var r,i,a=ca(e-t);return ha(a)?(i=n>0?"top":"bottom",r="center"):ha(a-AP)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=a>0&&a<AP?n>0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:r,textVerticalAlign:i}},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}(),HP=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],GP={axisLine:function(t,e,n,r,i,a,o){var s=r.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=r.axis.getExtent(),u=a.transform,c=[l[0],0],h=[l[1],0],d=c[0]>h[0];u&&(G(c,c,u),G(h,h,u));var p=Object(b["extend"])({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),f={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get(["axisLine","breakLine"])&&ud(r.axis.scale))xP().buildAxisBreakLine(r,i,a,f);else{var g=new Cm(Object(b["extend"])({shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]}},f));Ix(g.shape,g.style.lineWidth),g.anid="line",i.add(g)}var y=r.get(["axisLine","symbol"]);if(null!=y){var v=r.get(["axisLine","symbolSize"]);Object(b["isString"])(y)&&(y=[y,y]),(Object(b["isString"])(v)||Object(b["isNumber"])(v))&&(v=[v,v]);var m=V_(r.get(["axisLine","symbolOffset"])||0,v),x=v[0],_=v[1];Object(b["each"])([{rotate:t.rotation+Math.PI/2,offset:m[0],r:0},{rotate:t.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((c[0]-h[0])*(c[0]-h[0])+(c[1]-h[1])*(c[1]-h[1]))}],(function(e,n){if("none"!==y[n]&&null!=y[n]){var r=z_(y[n],-x/2,-_/2,x,_,p.stroke,!0),a=e.r+e.offset,o=d?h:c;r.attr({rotation:e.rotate,x:o[0]+a*Math.cos(t.rotation),y:o[1]-a*Math.sin(t.rotation),silent:!0,z2:11}),i.add(r)}}))}}},axisTickLabelEstimate:function(t,e,n,r,i,a,o,s){var l=JP(e,i,s);l&&WP(t,e,n,r,i,a,o,MC.estimate)},axisTickLabelDetermine:function(t,e,n,r,i,a,o,s){var l=JP(e,i,s);l&&WP(t,e,n,r,i,a,o,MC.determine);var u=$P(t,i,a,r);XP(t,e.labelLayoutList,u),KP(t,i,a,r,t.tickDirection)},axisName:function(t,e,n,r,i,a,o,s){var l=n.ensureRecord(r);e.nameEl&&(i.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var u=t.axisName;if(aj(u)){var c=t.nameLocation,h=t.nameDirection,d=r.getModel("nameTextStyle"),p=r.get("nameGap")||0,f=r.axis.getExtent(),g=r.axis.inverse?-1:1,y=new Et(0,0),v=new Et(0,0);"start"===c?(y.x=f[0]-g*p,v.x=-g):"end"===c?(y.x=f[1]+g*p,v.x=g):(y.x=(f[0]+f[1])/2,y.y=t.labelOffset+h*p,v.y=h);var m=Tt();v.transform(Lt(m,m,t.rotation));var x,_,w=r.get("nameRotate");null!=w&&(w=w*AP/180),qI(c)?x=FP.innerTextLayout(t.rotation,null!=w?w:t.rotation,h):(x=YP(t.rotation,c,w||0,f),_=t.raw.axisNameAvailableWidth,null!=_&&(_=Math.abs(_/Math.sin(x.rotation)),!isFinite(_)&&(_=null)));var S=d.getFont(),M=r.get("nameTruncate",!0)||{},O=M.ellipsis,I=Object(b["retrieve"])(t.raw.nameTruncateMaxWidth,M.maxWidth,_),T=s.nameMarginLevel||0,C=new _u({x:y.x,y:y.y,rotation:x.rotation,silent:FP.isLabelSilent(r),style:gh(d,{text:u,font:S,overflow:"truncate",width:I,ellipsis:O,fill:d.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:d.get("align")||x.textAlign,verticalAlign:d.get("verticalAlign")||x.textVerticalAlign}),z2:1});if(Yx({el:C,componentModel:r,itemName:u}),C.__fullText=u,C.anid="name",r.get("triggerEvent")){var A=FP.makeAxisEventDataBase(r);A.targetType="axisName",A.name=u,wu(C).eventData=A}a.add(C),C.updateTransform(),e.nameEl=C;var D=l.nameLayout=PA({label:C,priority:C.z2,defaultAttr:{ignore:C.ignore},marginDefault:qI(c)?DP[T]:kP[T]});if(l.nameLocation=c,i.add(C),C.decomposeTransform(),t.shouldNameMoveOverlap&&D){var k=n.ensureRecord(r);0,n.resolveAxisNameOverlap(t,n,r,D,v,k)}}}};function WP(t,e,n,r,i,a,o,s){tj(e)||QP(t,e,i,s,r,o);var l=e.labelLayoutList;nj(t,r,l,a),sj(r,t.rotation,l);var u=t.optionHideOverlap;UP(r,l,u),u&&HA(Object(b["filter"])(l,(function(t){return t&&!t.label.ignore}))),RP(t,n,r,l)}function YP(t,e,n,r){var i,a,o=ca(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;return ha(o-AP/2)?(a=l?"bottom":"top",i="center"):ha(o-1.5*AP)?(a=l?"top":"bottom",i="center"):(a="middle",i=o<1.5*AP&&o>AP/2?l?"left":"right":l?"right":"left"),{rotation:o,textAlign:i,textVerticalAlign:a}}function UP(t,e,n){var r=t.axis,i=t.get(["axisLabel","customValues"]);if(!XI(r)){var a=t.get(["axisLabel","showMinLabel"]),o=t.get(["axisLabel","showMaxLabel"]),s=e.length;l(a,0,1),l(o,s-1,s-2)}function l(t,a,o){var s=PA(e[a]),l=PA(e[o]),u=r.scale;if(s&&l){if(null==t){if(!n&&i)return;var c=LP(s.label).labelInfo.tick;if($O(u)&&c.notNice||JO(u)&&c.offInterval)return void ZP(s.label)}if(!1===t||s.suggestIgnore)ZP(s.label);else if(l.suggestIgnore)ZP(l.label);else{var h=.1;if(!n){var d=[0,0,0,0];s=zA({marginForce:d},s),l=zA({marginForce:d},l)}GA(s,l,null,{touchThreshold:h})&&ZP(t?l.label:s.label)}}}}function XP(t,e,n){t.showMinorTicks||Object(b["each"])(e,(function(t){if(t&&t.label.ignore)for(var e=0;e<n.length;e++){var r=n[e],i=PP(r),a=LP(t.label);if(null!=i.tickValue&&!i.onBand&&i.tickValue===a.labelInfo.tick.value)return void ZP(r)}}))}function ZP(t){t&&(t.ignore=!0)}function qP(t,e,n,r,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,e&&(G(o,o,e),G(s,s,e));var c=new Cm({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Ix(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,a.push(c);var h=PP(c);h.onBand=!!t[l].onBand,h.tickValue=t[l].tickValue}return a}function $P(t,e,n,r){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if("auto"===o&&(o=!0,null!=t.raw.axisTickAutoShow&&(o=!!t.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel("lineStyle"),l=t.tickDirection*a.get("length"),u=i.getTicksCoords(),c=qP(u,n.transform,l,Object(b["defaults"])(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<c.length;h++)e.add(c[h]);return c}function KP(t,e,n,r,i){var a=r.axis,o=r.getModel("minorTick");if(t.showMinorTicks&&!a.scale.isBlank()){var s=a.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),c=Object(b["defaults"])(l.getLineStyle(),Object(b["defaults"])(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),h=0;h<s.length;h++)for(var d=qP(s[h],n.transform,u,c,"minorticks_"+h),p=0;p<d.length;p++)e.add(d[p])}}function JP(t,e,n){if(tj(t)){var r=t.axisLabelsCreationContext;0;var i=r.out.noPxChangeTryDetermine;if(n.noPxChange){for(var a=!0,o=0;o<i.length;o++)a=a&&i[o]();if(a)return!1}i.length&&(e.remove(t.labelGroup),ej(t,null,null,null))}return!0}function QP(t,e,n,r,i,a){var o=i.axis,s=Object(b["retrieve"])(t.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new vi;n.add(l);var u=OC(r);if(s&&!o.scale.isBlank()){var c=i.getModel("axisLabel"),h=o.getViewLabels(u),d=(Object(b["retrieve"])(t.raw.labelRotate,c.get("rotate"))||0)*AP/180,p=FP.innerTextLayout(t.rotation,d,t.labelDirection),f=i.getCategories&&i.getCategories(!0),g=[],y=i.get("triggerEvent"),v=1/0,m=-1/0;Object(b["each"])(h,(function(t,e){var n,r=t.tick,s=t.formattedLabel,u=t.rawLabel,d=c,x=tT(o.scale,r);if(f&&f[x]){var _=f[x];Object(b["isObject"])(_)&&_.textStyle&&(d=new Vh(_.textStyle,c,i.ecModel))}var w=d.getTextColor()||i.get(["axisLine","lineStyle","color"]),S=d.getShallow("align",!0)||p.textAlign,M=Object(b["retrieve2"])(d.getShallow("alignMinLabel",!0),S),O=Object(b["retrieve2"])(d.getShallow("alignMaxLabel",!0),S),I=d.getShallow("verticalAlign",!0)||d.getShallow("baseline",!0)||p.textVerticalAlign,T=Object(b["retrieve2"])(d.getShallow("verticalAlignMinLabel",!0),I),C=Object(b["retrieve2"])(d.getShallow("verticalAlignMaxLabel",!0),I),A=10+((null===(n=r.time)||void 0===n?void 0:n.level)||0);v=Math.min(v,A),m=Math.max(m,A);var D=new _u({x:0,y:0,rotation:0,silent:FP.isLabelSilent(i),z2:A,style:gh(d,{text:s,align:0===e?M:e===h.length-1?O:S,verticalAlign:0===e?T:e===h.length-1?C:I,fill:Object(b["isFunction"])(w)?w("category"===o.type?u:"value"===o.type?x+"":x,e):w})});D.anid="label_"+x;var k=LP(D);if(k.labelInfo=t,k.layoutRotation=p.rotation,Yx({el:D,componentModel:i,itemName:s,formatterParamsExtra:{isTruncated:function(){return D.isTruncated},value:u,tickIndex:e}}),y){var L=FP.makeAxisEventDataBase(i);L.targetType="axisLabel",L.value=u,L.tickIndex=e;var P=t.tick["break"];if(P){var j=P.parsedBreak;L["break"]={start:j.vmin,end:j.vmax}}"category"===o.type&&(L.dataIndex=x),wu(D).eventData=L,P&&oj(i,a,D,P)}g.push(D),l.add(D)}));var x=Object(b["map"])(g,(function(t){return{label:t,priority:LP(t).labelInfo.tick["break"]?t.z2+(m-v+1):t.z2,defaultAttr:{ignore:t.ignore}}}));ej(e,x,l,u)}else ej(e,[],l,u)}function tj(t){return!!t.labelLayoutList}function ej(t,e,n,r){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=r}function nj(t,e,n,r){var i=e.get(["axisLabel","margin"]);Object(b["each"])(n,(function(n,a){var o=PA(n);if(o){var s=o.label,l=LP(s);o.suggestIgnore=s.ignore,s.ignore=!1,Lr(rj,ij);var u=e.axis;rj.x=u.dataToCoord(tT(u.scale,l.labelInfo.tick)),rj.y=t.labelOffset+t.labelDirection*i,rj.rotation=l.layoutRotation,r.add(rj),rj.updateTransform(),r.remove(rj),rj.decomposeTransform(),Lr(s,rj),s.markRedraw(),kA(o,!0),PA(o)}}))}var rj=new nu,ij=new nu;function aj(t){return!!t}function oj(t,e,n,r){n.on("click",(function(n){var i={type:bP,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[t.axis.dim+"AxisIndex"]=t.componentIndex,e.dispatchAction(i)}))}function sj(t,e,n){var r=od();if(r){var i=r.retrieveAxisBreakPairs(n,(function(t){return t&&LP(t.label).labelInfo.tick["break"]}),!0),a=t.get(["breakLabelLayout","moveOverlap"],!0);!0!==a&&"auto"!==a||Object(b["each"])(i,(function(r){xP().adjustBreakLabelPair(t.axis.inverse,e,[PA(n[r[0]]),PA(n[r[1]])])}))}}var lj=FP;function uj(t,e,n){n=n||{};var r=e.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?"onZero":o,l=r.dim,u=[t.x,t.x+t.width,t.y,t.y+t.height],c={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,d="x"===l?[u[2]-h,u[3]+h]:[u[0]-h,u[1]+h];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));d[c.onZero]=Math.max(Math.min(p,d[1]),d[0])}i.position=["y"===l?d[c[s]]:u[0],"x"===l?d[c[s]]:u[3]],i.rotation=Math.PI/2*("x"===l?0:1);var f={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=f[o],i.labelOffset=a?d[c[o]]-d[c.onZero]:0,e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),b["retrieve"](n.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var g=e.get(["axisLabel","rotate"]);return i.labelRotate="top"===s?-g:g,i.z2=1,i}function cj(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function hj(t){var e={xAxisModel:null,yAxisModel:null};return b["each"](e,(function(n,r){var i=r.replace(/Model$/,""),a=t.getReferringComponents(i,eo).models[0];e[r]=a})),e}function dj(t,e,n,r,i,a){for(var o=uj(t,n),s=!1,l=!1,u=0;u<e.length;u++)ZO(e[u].getOtherAxis(n.axis).scale)&&(s=l=!0,"category"===n.axis.type&&n.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=a,new lj(n,r,o,i)}function pj(t,e,n){var r=uj(e,n);t.updateCfg(r)}function fj(t){return t.dim+"_"+t.index}function gj(){_T("liPosMinGap",yj)}function yj(t,e,n){var r,i=Object(b["createHashMap"])(),a=n.serUids,o=n.liPosMinGap,s=e.axis,l=s.scale,u=l.needTransform(),c=l.getFilter?l.getFilter():null,h=ly(c);function d(n){yT(t,e.sers,(function(t){var e=t.getRawData(),r=e.getDimensionIndex(e.mapDimension(s.dim));r>=0&&n(r,t,e.getStore())}))}var p=0;if(d((function(t,e,n){i.set(e.uid,1),a&&a.hasKey(e.uid)||(r=!0),p+=n.count()})),a&&a.keys().length===i.keys().length||(r=!0),r||null==o){CL(vj,p);var f=0;d((function(t,e,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(t,r);!isFinite(a)||c&&!uy(h,a)||(u&&(a=l.transformIn(a,null)),vj.arr[f++]=a)}}));var g=vj.typed?vj.arr.subarray(0,f):(vj.arr.length=f,vj.arr);vj.typed?g.sort():ea(g);for(var y=1/0,v=1;v<f;++v){var m=g[v]-g[v-1];m>0&&m<y&&(y=m)}n.liPosMinGap=e.liPosMinGap=Oa(y)?y:f>0?oT:sT,n.serUids=i}else e.liPosMinGap=o}var vj=CL({ctor:IL},50);function mj(t){return function(e,n){var r=YC(e,{fromStat:{key:t}});if(Oa(r.w2))return[-r.w2/2,r.w2/2]}}function xj(t){return t+iT}function bj(t,e){return t+iT+e}function _j(t){return gj(),{liPosMinGap:!JO(t.scale)}}var wj="bar",Sj="pictorialBar";function Mj(t,e,n,r){OT(t,{key:e,seriesType:n,coordSysType:r,getMetrics:_j})}function Oj(t){var e=t.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var Ij={left:0,right:0,top:0,bottom:0},Tj=["25%","25%"],Cj="cartesian2d",Aj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.mergeDefaultAndTheme=function(e,n){var r=Ep(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&e.outerBounds&&Np(e.outerBounds,r)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Np(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Ij,outerBoundsContain:"all",outerBoundsClampWidth:Tj[0],outerBoundsClampHeight:Tj[1],backgroundColor:Xp.color.transparent,borderWidth:1,borderColor:Xp.color.neutral30},e}(Hp),Dj=Aj,kj=wo(),Lj="__ec_stack_";function Pj(t){return t.get("stack")||Lj+t.seriesIndex}function jj(t){if(JO(t.axis.scale)){for(var e=YC(t.axis),n=[],r=0;r<t.count;r++)n.push(Object(b["defaults"])({stackId:Lj+r},t));var i=Ej({bandWidthResult:e,seriesInfo:n}),a=[];for(r=0;r<t.count;r++){var o=i[Lj+r];o.offsetCenter=o.offset+o.width/2,a.push(o)}return a}}function Rj(t,e){var n=Nj(t,e);return n.columnMap=Ej(n),n}function Nj(t,e){var n=bj(e,Cj),r=[],i=YC(t,{fromStat:{key:n},min:1});return gT(t,n,(function(t){r.push({barWidth:Zi(t.get("barWidth"),i.w),barMaxWidth:Zi(t.get("barMaxWidth"),i.w),barMinWidth:Zi(t.get("barMinWidth")||(Vj(t)?.5:1),i.w),barGap:t.get("barGap"),barCategoryGap:t.get("barCategoryGap"),defaultBarGap:t.get("defaultBarGap"),stackId:Pj(t)})})),{bandWidthResult:i,seriesInfo:r}}function Ej(t){var e,n,r=t.bandWidthResult.w,i=r,a=0,o=[],s={};Object(b["each"])(t.seriesInfo,(function(t,r){r||(n=t.defaultBarGap||0);var l=t.stackId;Object(b["hasOwn"])(s,l)||a++;var u=s[l];u||(u=s[l]={width:0,maxWidth:0},o.push(l));var c=t.barWidth;c&&!u.width&&(u.width=c,c=Ni(i,c),i-=c);var h=t.barMaxWidth;h&&(u.maxWidth=h);var d=t.barMinWidth;d&&(u.minWidth=d);var p=t.barGap;null!=p&&(n=p);var f=t.barCategoryGap;null!=f&&(e=f)})),null==e&&(e=Ei(35-4*o.length,15)+"%");var l=Zi(e,r),u=Zi(n,1),c=(i-l)/(a+(a-1)*u);c=Ei(c,0),Object(b["each"])(o,(function(t){var e=s[t],n=e.maxWidth,r=e.minWidth;if(e.width){o=e.width;n&&(o=Ni(o,n)),r&&(o=Ei(o,r)),e.width=o,i-=o+u*o,a--}else{var o=c;n&&n<o&&(o=Ni(n,i)),r&&r>o&&(o=r),o!==c&&(e.width=o,i-=o+u*o,a--)}})),c=(i-l)/(a+(a-1)*u),c=Ei(c,0);var h,d=0;Object(b["each"])(o,(function(t){var e=s[t];e.width||(e.width=c),h=e,d+=e.width*(1+u)})),h&&(d-=h.width*u);var p={},f=-d/2;return Object(b["each"])(o,(function(t){var e=s[t];p[t]=p[t]||{bandWidth:r,offset:f,width:e.width},f+=e.width*(1+u)})),p}function zj(t){return{seriesType:t,overallReset:function(e){var n=bj(t,Cj);mT(e,n,(function(e){var r=Rj(e,t);gT(e,n,(function(t){var e=r.columnMap[Pj(t)];t.getData().setLayout({bandWidth:e.bandWidth,offset:e.offset,size:e.width})}))}))}}}function Bj(t){return{seriesType:t,plan:bv(),reset:function(t){if(cj(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=e.getDimensionIndex(e.mapDimension(i.dim)),o=e.getDimensionIndex(e.mapDimension(r.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),c=mO(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),d=i.toGlobalCoord(i.dataToCoord(Oj(i))),p=Vj(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),y=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){var r,i=t.count,l=p&&TL(3*i),u=p&&s&&TL(3*i),m=p&&TL(i),x=n.master.getRect(),b=h?x.width:x.height,_=e.getStore(),w=0;while(null!=(r=t.next())){var S=_.get(c?g:a,r),M=_.get(o,r),O=d,I=void 0;c&&(I=+S-_.get(a,r));var T=void 0,C=void 0,A=void 0,D=void 0;if(h){var k=n.dataToPoint([S,M]);c&&(O=n.dataToPoint([I,M])[0]),T=O,C=k[1]+v,A=k[0]-O,D=y,zi(A)<f&&(A=(A<0?-1:1)*f)}else{k=n.dataToPoint([M,S]);c&&(O=n.dataToPoint([M,I])[1]),T=k[0]+v,C=O,A=y,D=k[1]-O,zi(D)<f&&(D=(D<=0?-1:1)*f)}p?(l[w]=T,l[w+1]=C,l[w+2]=h?A:D,u&&(u[w]=h?x.x:T,u[w+1]=h?C:x.y,u[w+2]=b),m[r]=r):e.setItemLayout(r,{x:T,y:C,width:A,height:D}),w+=3}p&&e.setLayout({largePoints:l,largeDataIndices:m,largeBackgroundPoints:u,valueAxisHorizontal:h})}}}}}}function Vj(t){return t.pipelineContext&&t.pipelineContext.large}function Fj(t){return mj(bj(t,Cj))}function Hj(t){kj(t,(function(){function e(e){var n=bj(e,Cj);Mj(t,n,e,Cj),HT(n,Fj(e))}e("bar"),e("pictorialBar")}))}var Gj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.getInitialData=function(t,e){return OO(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(t),a=r.dataToPoint(i);if(n)Object(b["each"])(r.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var r=t.getTicksCoords(),o=t.getTickModel().get("alignWithLabel"),s=i[n],l="x1"===e[n]||"y1"===e[n];if(l&&!o&&(s+=1),r.length<2)return;if(2===r.length)return void(a[n]=t.toGlobalCoord(t.getExtent()[l?1:0]));for(var u=void 0,c=void 0,h=1,d=0;d<r.length;d++){var p=r[d].coord,f=d===r.length-1?r[d-1].tickValue+h:r[d].tickValue;if(f===s){c=p;break}if(f<s)u=p;else if(null!=u&&f>s){c=(p+u)/2;break}1===d&&(h=f-r[0].tickValue)}null==c&&(u?u&&(c=r[r.length-1].coord):c=r[0].coord),a[n]=t.toGlobalCoord(c)}}));else{var o=this.getData(),s=o.getLayout("offset"),l=o.getLayout("size"),u=r.getBaseAxis().isHorizontal()?0:1;a[u]+=s+l/2}return a}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e}(vv);vv.registerClass(Gj);var Wj=Gj,Yj=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.getInitialData=function(){return OO(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.__preparePipelineContext=function(t,e){var n=Co(this,t,e);return n.progressiveRender&&(n.large=!0),n},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series."+wj,e.dependencies=["grid","polar"],e.defaultOption=Yh(Wj.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:Xp.color.primary,borderWidth:2}},realtimeSort:!1}),e}(Wj),Uj=Yj,Xj=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return t}(),Zj=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return f(e,t),e.prototype.getDefaultShape=function(){return new Xj},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),a=Math.max(e.r,0),o=.5*(a-i),s=i+o,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-l<h:l-u<h;d||(l=u-(c?h:-h));var p=Math.cos(l),f=Math.sin(l),g=Math.cos(u),y=Math.sin(u);d?(t.moveTo(p*i+n,f*i+r),t.arc(p*s+n,f*s+r,o,-Math.PI+l,l,!c)):t.moveTo(p*a+n,f*a+r),t.arc(n,r,a,l,u,!c),t.arc(g*s+n,y*s+r,o,u-2*Math.PI,u-Math.PI,!c),0!==i&&t.arc(n,r,i,u,l,c)},e}(Bl),qj=Zj;function $j(t,e){e=e||{};var n=e.isRoundCap;return function(e,r,i){var a=r.position;if(!a||a instanceof Array)return qr(e,r,i);var o=t(a),s=null!=r.distance?r.distance:5,l=this.shape,u=l.cx,c=l.cy,h=l.r,d=l.r0,p=(h+d)/2,f=l.startAngle,g=l.endAngle,y=(f+g)/2,v=n?Math.abs(h-d)/2:0,m=Math.cos,x=Math.sin,b=u+h*m(f),_=c+h*x(f),w="left",S="top";switch(o){case"startArc":b=u+(d-s)*m(y),_=c+(d-s)*x(y),w="center",S="top";break;case"insideStartArc":b=u+(d+s)*m(y),_=c+(d+s)*x(y),w="center",S="bottom";break;case"startAngle":b=u+p*m(f)+Jj(f,s+v,!1),_=c+p*x(f)+Qj(f,s+v,!1),w="right",S="middle";break;case"insideStartAngle":b=u+p*m(f)+Jj(f,-s+v,!1),_=c+p*x(f)+Qj(f,-s+v,!1),w="left",S="middle";break;case"middle":b=u+p*m(y),_=c+p*x(y),w="center",S="middle";break;case"endArc":b=u+(h+s)*m(y),_=c+(h+s)*x(y),w="center",S="bottom";break;case"insideEndArc":b=u+(h-s)*m(y),_=c+(h-s)*x(y),w="center",S="top";break;case"endAngle":b=u+p*m(g)+Jj(g,s+v,!0),_=c+p*x(g)+Qj(g,s+v,!0),w="left",S="middle";break;case"insideEndAngle":b=u+p*m(g)+Jj(g,-s+v,!0),_=c+p*x(g)+Qj(g,-s+v,!0),w="right",S="middle";break;default:return qr(e,r,i)}return e=e||{},e.x=b,e.y=_,e.align=w,e.verticalAlign=S,e}}function Kj(t,e,n,r){if(Object(b["isNumber"])(r))t.setTextConfig({rotation:r});else if(Object(b["isArray"])(e))t.setTextConfig({rotation:0});else{var i,a=t.shape,o=a.clockwise?a.startAngle:a.endAngle,s=a.clockwise?a.endAngle:a.startAngle,l=(o+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=o;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}function Jj(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Qj(t,e,n){return e*Math.cos(t)*(n?1:-1)}function tR(t,e,n){var r=t.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Object(b["isArray"])(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:Object(b["map"])(r,(function(t){return Zr(t,i)}))}}var eR=Math.max,nR=Math.min,rR=function(t){function e(){var e=t.call(this)||this;return e.type=wj,e._isFirstFrame=!0,e}return f(e,t),e.prototype.render=function(t,e,n,r){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var i=t.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,r))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},e.prototype.eachRendered=function(t){Xx(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,r){var i,a=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=oR(t,l);h&&this._enableRealtimeSort(h,o,n);var d=t.get("clip",!0)||h,p=l.getArea();a.removeClipPath();var f=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),v=y.get("borderRadius")||0,m=[],x=this._backgroundEls,b=r&&r.isInitSort,_=r&&"changeAxisOrder"===r.type;function w(t){var e=dR[l.type](o,t);if(!e)return null;var n=SR(l,i,e);return n.useStyle(y.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),m[t]=n,n}o.diff(s).add((function(e){var n=o.getItemModel(e),r=dR[l.type](o,e,n);if(r&&(g&&w(e),o.hasValue(e)&&hR[l.type](r))){var s=!1;d&&(s=iR[l.type](p,r));var y=aR[l.type](t,o,e,r,i,c,u.model,!1,f);h&&(y.forceLabelAnimation=!0),gR(y,o,e,n,r,t,i,"polar"===l.type),b?y.attr({shape:r}):h?sR(h,c,y,r,e,i,!1,!1):rh(y,{shape:r},t,e),o.setItemGraphicEl(e,y),a.add(y),y.ignore=s}})).update((function(e,n){var r=o.getItemModel(e),S=dR[l.type](o,e,r);if(S){if(g){var M=void 0;0===x.length?M=w(n):(M=x[n],M.useStyle(y.getItemStyle()),"cartesian2d"===l.type?M.setShape("r",v):M.setShape("cornerRadius",v),m[e]=M);var O=dR[l.type](o,e),I=wR(i,O,l);nh(M,{shape:I},c,e)}var T=s.getItemGraphicEl(n);if(o.hasValue(e)&&hR[l.type](S)){var C=!1;d&&(C=iR[l.type](p,S),C&&a.remove(T));var A=T&&("sector"===T.type&&f||"sausage"===T.type&&!f);if(A&&(T&&sh(T,t,n),T=null),T?lh(T):T=aR[l.type](t,o,e,S,i,c,u.model,!0,f),h&&(T.forceLabelAnimation=!0),_){var D=T.getTextContent();if(D){var k=Mh(D);null!=k.prevValue&&(k.prevValue=k.value)}}else gR(T,o,e,r,S,t,i,"polar"===l.type);b?T.attr({shape:S}):h?sR(h,c,T,S,e,i,!0,_):nh(T,{shape:S},t,e,null),o.setItemGraphicEl(e,T),T.ignore=C,a.add(T)}else a.remove(T)}})).remove((function(e){var n=s.getItemGraphicEl(e);n&&sh(n,t,e)})).execute();var S=this._backgroundGroup||(this._backgroundGroup=new vi);S.removeAll();for(var M=0;M<m.length;++M)S.add(m[M]);a.add(S),this._backgroundEls=m,this._data=o},e.prototype._renderLarge=function(t,e,n){this._clear(),xR(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),xR(e,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var e=t.get("clip",!0)&&VL(t.coordinateSystem,!1,t),n=this.group;e?n.setClipPath(e):n.removeClipPath()},e.prototype._enableRealtimeSort=function(t,e,n){var r=this;if(e.count()){var i=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(e,t,n),this._isFirstFrame=!1;else{var a=function(t){var n=e.getItemGraphicEl(t),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(e,a,i,n)},n.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,e,n){var r=[];return t.each(t.mapDimension(e.dim),(function(t,e){var i=n(e);i=null==i?NaN:i,r.push({dataIndex:e,mappedValue:i,ordinalNumber:t})})),r.sort((function(t,e){return e.mappedValue-t.mappedValue})),{ordinalNumbers:Object(b["map"])(r,(function(t){return t.ordinalNumber}))}},e.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var r=n.scale,i=t.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var l=t.rawIndexOf(i,r.getRawOrdinalNumber(o)),u=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(u>a)return!0;a=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,r){if(this._isOrderChangedWithinSameData(t,e,n)){var i=this._dataSort(t,n,e);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,n){var r=e.baseAxis,i=this._dataSort(t,r,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){sh(e,t,wu(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=wj,e}(fb),iR={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,a=t.y+t.height,o=eR(e.x,t.x),s=nR(e.x+e.width,i),l=eR(e.y,t.y),u=nR(e.y+e.height,a),c=s<o,h=u<l;return e.x=c&&o>i?s:o,e.y=h&&l>a?u:l,e.width=c?0:s-o,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=nR(e.r,t.r),a=eR(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(n<0){r=e.r;e.r=e.r0,e.r0=r}return o}},aR={cartesian2d:function(t,e,n,r,i,a,o,s,l){var u=new nu({shape:Object(b["extend"])({},r),z2:1});if(u.__dataIndex=n,u.name="item",a){var c=u.shape,h=i?"height":"width";c[h]=0}return u},polar:function(t,e,n,r,i,a,o,s,l){var u=!i&&l?qj:pm,c=new u({shape:r,z2:1});c.name="item";var h=fR(i);if(c.calculateTextPosition=$j(h,{isRoundCap:u===qj}),a){var d=c.shape,p=i?"r":"endAngle",f={};d[p]=i?r.r0:r.startAngle,f[p]=r[p],(s?nh:rh)(c,{shape:f},a)}return c}};function oR(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===e.type)return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function sR(t,e,n,r,i,a,o,s){var l,u;a?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(o?nh:rh)(n,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(o?nh:rh)(n,{shape:u},c,i)}function lR(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var uR=["x","y","width","height"],cR=["cx","cy","r","startAngle","endAngle"],hR={cartesian2d:function(t){return!lR(t,uR)},polar:function(t){return!lR(t,cR)}},dR={cartesian2d:function(t,e,n){var r=t.getItemLayout(e);if(!r)return null;var i=n?yR(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function pR(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}function fR(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function gR(t,e,n,r,i,a,o,s){var l=e.getItemVisual(n,"style");if(s){if(!a.get("roundCap")){var u=t.shape,c=tR(r.getModel("itemStyle"),u,!0);Object(b["extend"])(u,c),t.setShape(u)}}else{var h=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var d=r.getShallow("cursor");d&&t.attr("cursor",d);var p=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?MR(i,a.coordinateSystem):OR(i,a.coordinateSystem),f=fh(r);ph(t,f,{labelFetcher:a,labelDataIndex:n,defaultText:cL(a.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=t.getTextContent();if(s&&g){var y=r.get(["label","position"]);t.textConfig.inside="middle"===y||null,Kj(t,"outside"===y?p:y,fR(o),r.get(["label","rotate"]))}Oh(g,f,a.getRawValue(n),(function(t){return hL(e,t)}));var v=r.getModel(["emphasis"]);Fc(t,v.get("focus"),v.get("blurScope"),v.get("disabled")),Yc(t,r),pR(i)&&(t.style.fill="none",t.style.stroke="none",Object(b["each"])(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}function yR(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,a)}var vR=function(){function t(){}return t}(),mR=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return f(e,t),e.prototype.getDefaultShape=function(){return new vR},e.prototype.buildPath=function(t,e){for(var n=e.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,l=0;l<n.length;l+=3)o[r]=s,o[i]=n[l+2],a[r]=n[l+r],a[i]=n[l+i],t.rect(a[0],a[1],o[0],o[1])},e}(Bl);function xR(t,e,n,r){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints"),c=r?To(t):0;if(u){var h=new mR({shape:{points:u},incremental:c,silent:!0,z2:0});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,h.useStyle(l.getItemStyle()),e.add(h),n&&n.push(h)}var d=new mR({shape:{points:i.getLayout("largePoints")},incremental:c,ignoreCoarsePointer:!0,z2:1});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,e.add(d),d.useStyle(i.getVisual("style")),d.style.stroke=null,wu(d).seriesIndex=t.seriesIndex,t.get("silent")||(d.on("mousedown",bR),d.on("mousemove",bR)),n&&n.push(d)}var bR=mb((function(t){var e=this,n=_R(e,t.offsetX,t.offsetY);wu(e).dataIndex=n>=0?n:null}),30,!1);function _R(t,e,n){for(var r=t.baseDimIdx,i=1-r,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,h=a.length/3;c<h;c++){var d=3*c;if(l[r]=u,l[i]=a[d+2],s[r]=a[d+r],s[i]=a[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return o[c]}return-1}function wR(t,e,n){if(UL(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}i=n.getArea();var a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:2*Math.PI}}function SR(t,e,n){var r="polar"===t.type?pm:nu;return new r({shape:wR(e,n,t),silent:!0,z2:0})}function MR(t,e){if(0===t.height){var n=e.getOtherAxis(e.getBaseAxis());return n.inverse?"bottom":"top"}return t.height>0?"bottom":"top"}function OR(t,e){if(0===t.width){var n=e.getOtherAxis(e.getBaseAxis());return n.inverse?"left":"right"}return t.width>=0?"right":"left"}var IR=rR;function TR(t){t.registerChartView(IR),t.registerSeriesModel(Uj),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,zj(wj)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Bj(wj)),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,gP(wj)),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},(function(e){t.sortInfo&&e.axis.setCategorySortInfo(t.sortInfo)}))})),Hj(t)}function CR(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf((function(t){for(var e=r.getName(t),i=0;i<n.length;i++)if(!n[i].isSelected(e))return!1;return!0}))}}}}function AR(t,e,n){e=Object(b["isArray"])(e)&&{coordDimensions:e}||Object(b["extend"])({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=uO(r,e).dimensions,a=new sO(i,t);return a.initData(r,n),a}var DR=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},t.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},t.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},t}(),kR=DR,LR="pie",PR=Ka(),jR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new kR(b["bind"](this.getData,this),b["bind"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return AR(this,{coordDimensions:["value"],encodeDefaulter:b["curry"](rf,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),r=PR(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension("value"),(function(t){a.push(t)})),i=r.seats=sa(a,n.hostModel.get("percentPrecision"))}var o=t.prototype.getDataParams.call(this,e);return o.percent=i[e]||0,o.$vars.push("percent"),o},e.prototype._defaultLabelLine=function(t){Da(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series."+LR,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(vv);hp({fullType:jR.type,getCoord2:function(t){return t.getShallow("center")}});var RR=jR,NR=Math.PI/180;function ER(t,e,n,r,i,a,o,s,l,u){if(!(t.length<2)){for(var c=t.length,h=0;h<c;h++)if("outer"===t[h].position&&"labelLine"===t[h].labelAlignTo){var d=t[h].label.x-u;t[h].linePoints[1][0]+=d,t[h].label.x=u}VA(t,1,l,l+o)&&f(t)}function p(t){for(var a=t.rB,o=a*a,s=0;s<t.list.length;s++){var l=t.list[s],u=Math.abs(l.label.y-n),c=r+l.len,h=c*c,d=Math.sqrt(Math.abs((1-u*u/o)*h)),p=e+(d+l.len2)*i,f=p-l.label.x,g=l.targetTextWidth-f*i;BR(l,g,!0),l.label.x=p}}function f(t){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<t.length;s++)if("none"===t[s].labelAlignTo){var l=t[s],u=l.label.y>n?o:a,c=Math.abs(l.label.y-n);if(c>=u.maxY){var h=l.label.x-e-l.len2*i,d=r+l.len,f=Math.abs(h)<d?Math.sqrt(c*c/(1-h*h/d/d)):d;u.rB=f,u.maxY=c}u.list.push(l)}p(a),p(o)}}function zR(t,e,n,r,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;GR(t[d])||(p.x<e?(c=Math.min(c,p.x),l.push(t[d])):(h=Math.max(h,p.x),u.push(t[d])))}for(d=0;d<t.length;d++){var f=t[d];if(!GR(f)&&f.linePoints){if(null!=f.labelStyleWidth)continue;p=f.label;var g=f.linePoints,y=void 0;y="edge"===f.labelAlignTo?p.x<e?g[2][0]-f.labelDistance-o-f.edgeDistance:o+i-f.edgeDistance-g[2][0]-f.labelDistance:"labelLine"===f.labelAlignTo?p.x<e?c-o-f.bleedMargin:o+i-h-f.bleedMargin:p.x<e?p.x-o-f.bleedMargin:o+i-p.x-f.bleedMargin,f.targetTextWidth=y,BR(f,y,!1)}}ER(u,e,n,r,1,i,a,o,s,h),ER(l,e,n,r,-1,i,a,o,s,c);for(d=0;d<t.length;d++){f=t[d];if(!GR(f)&&f.linePoints){p=f.label,g=f.linePoints;var v="edge"===f.labelAlignTo,m=p.style.padding,x=m?m[1]+m[3]:0,b=p.style.backgroundColor?0:x,_=f.rect.width+b,w=g[1][0]-g[2][0];v?p.x<e?g[2][0]=o+f.edgeDistance+_+f.labelDistance:g[2][0]=o+i-f.edgeDistance-_-f.labelDistance:(p.x<e?g[2][0]=p.x+f.labelDistance:g[2][0]=p.x-f.labelDistance,g[1][0]=g[2][0]+w),g[1][1]=g[2][1]=p.y}}}function BR(t,e,n){if(null==t.labelStyleWidth){var r=t.label,i=r.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(e<c||n){if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var h=r.getBoundingRect();r.setStyle("width",Math.ceil(h.width)),r.setStyle("backgroundColor",o)}else{var d=e-l,p=e<c?d:n?d>t.unconstrainedWidth?null:d:null;r.setStyle("width",p)}VR(a,r)}}}function VR(t,e){HR.rect=t,jA(HR,e,FR)}var FR={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},HR={};function GR(t){return"center"===t.position}function WR(t){var e,n,r=t.getData(),i=[],a=!1,o=(t.get("minShowLabelAngle")||0)*NR,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,h=s.y,d=s.height;function p(t){t.ignore=!0}function f(t){if(!t.ignore)return!0;for(var e in t.states)if(!1===t.states[e].ignore)return!0;return!1}r.each((function(t){var s=r.getItemGraphicEl(t),h=s.shape,g=s.getTextContent(),y=s.getTextGuideLine(),v=r.getItemModel(t),m=v.getModel("label"),x=m.get("position")||v.get(["emphasis","label","position"]),_=m.get("distanceToLabelLine"),w=m.get("alignTo"),S=Zi(m.get("edgeDistance"),u),M=m.get("bleedMargin");null==M&&(M=Math.min(u,d)>200?10:2);var O=v.getModel("labelLine"),I=O.get("length");I=Zi(I,u);var T=O.get("length2");if(T=Zi(T,u),Math.abs(h.endAngle-h.startAngle)<o)return Object(b["each"])(g.states,p),g.ignore=!0,void(y&&(Object(b["each"])(y.states,p),y.ignore=!0));if(f(g)){var C,A,D,k,L=(h.startAngle+h.endAngle)/2,P=Math.cos(L),j=Math.sin(L);e=h.cx,n=h.cy;var R="inside"===x||"inner"===x;if("center"===x)C=h.cx,A=h.cy,k="center";else{var N=(R?(h.r+h.r0)/2*P:h.r*P)+e,E=(R?(h.r+h.r0)/2*j:h.r*j)+n;if(C=N+3*P,A=E+3*j,!R){var z=N+P*(I+l-h.r),B=E+j*(I+l-h.r),V=z+(P<0?-1:1)*T,F=B;C="edge"===w?P<0?c+S:c+u-S:V+(P<0?-_:_),A=F,D=[[N,E],[z,B],[V,F]]}k=R?"center":"edge"===w?P>0?"right":"left":P>0?"left":"right"}var H=Math.PI,G=0,W=m.get("rotate");if(Object(b["isNumber"])(W))G=W*(H/180);else if("center"===x)G=0;else if("radial"===W||!0===W){var Y=P<0?-L+H:-L;G=Y}else if("tangential"===W||"tangential-noflip"===W&&"outside"!==x&&"outer"!==x){var U=Math.atan2(P,j);U<0&&(U=2*H+U);var X=j>0;X&&"tangential-noflip"!==W&&(U=H+U),G=U-H}if(a=!!G,g.x=C,g.y=A,g.rotation=G,g.setStyle({verticalAlign:"middle"}),R){g.setStyle({align:k});var Z=g.states.select;Z&&(Z.x+=g.x,Z.y+=g.y)}else{var q=new ue(0,0,0,0);VR(q,g),i.push({label:g,labelLine:y,position:x,len:I,len2:T,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new Et(P,j),linePoints:D,textAlign:k,labelDistance:_,labelAlignTo:w,edgeDistance:S,bleedMargin:M,rect:q,unconstrainedWidth:q.width,labelStyleWidth:g.style.width})}s.setTextConfig({inside:R})}})),!a&&t.get("avoidLabelOverlap")&&zR(i,e,n,l,u,d,c,h);for(var g=0;g<i.length;g++){var y=i[g],v=y.label,m=y.labelLine,x=isNaN(v.x)||isNaN(v.y);if(v){v.setStyle({align:y.textAlign}),x&&(Object(b["each"])(v.states,p),v.ignore=!0);var _=v.states.select;_&&(_.x+=v.x,_.y+=v.y)}if(m){var w=y.linePoints;x||!w?(Object(b["each"])(m.states,p),m.ignore=!0):(_A(w,y.minTurnAngle),wA(w,y.surfaceNormal,y.maxSurfaceAngle),m.setShape({points:w}),v.__hostTarget.textGuideLineConfig={anchor:new Et(w[0][0],w[0][1])})}}}var YR=2*Math.PI,UR=Math.PI/180,XR=Ao(LR,ZR);function ZR(t,e){t.eachSeriesByType(LR,(function(t){var n=t.getData(),r=n.mapDimension("value"),i=Cp(t,e),a=i.cx,o=i.cy,s=i.r,l=i.r0,u=i.viewRect,c=-t.get("startAngle")*UR,h=t.get("endAngle"),d=t.get("padAngle")*UR;h="auto"===h?c-YR:-h*UR;var p=t.get("minAngle")*UR,f=p+d,g=0;n.each(r,(function(t){!isNaN(t)&&g++}));var y=n.getSum(r),v=Math.PI/(y||g)*2,m=t.get("clockwise"),x=t.get("roseType"),b=t.get("stillShowZeroSum"),_=n.getDataExtent(r);_[0]=0;var w=m?1:-1,S=[c,h],M=w*d/2;hl(S,!m),c=S[0],h=S[1];var O=qR(t);O.startAngle=c,O.endAngle=h,O.clockwise=m,O.cx=a,O.cy=o,O.r=s,O.r0=l;var I=Math.abs(h-c),T=I,C=0,A=c;if(n.setLayout({viewRect:u,r:s}),n.each(r,(function(t,e){var r;if(isNaN(t))n.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:a,cy:o,r0:l,r:x?NaN:s});else{r="area"!==x?0===y&&b?v:t*v:I/g,r<f?(r=f,T-=f):C+=t;var i=A+w*r,u=0,c=0;d>r?(u=A+w*r/2,c=u):(u=A+M,c=i-M),n.setItemLayout(e,{angle:r,startAngle:u,endAngle:c,clockwise:m,cx:a,cy:o,r0:l,r:x?Xi(t,_,[l,s]):s}),A=i}})),T<YR&&g)if(T<=.001){var D=I/g;n.each(r,(function(t,e){if(!isNaN(t)){var r=n.getItemLayout(e);r.angle=D;var i=0,a=0;D<d?(i=c+w*(e+.5)*D,a=i):(i=c+w*e*D+M,a=c+w*(e+1)*D-M),r.startAngle=i,r.endAngle=a}}))}else v=T/C,A=c,n.each(r,(function(t,e){if(!isNaN(t)){var r=n.getItemLayout(e),i=r.angle===f?f:t*v,a=0,o=0;i<d?(a=A+w*i/2,o=a):(a=A+M,o=A+w*i-M),r.startAngle=a,r.endAngle=o,A+=w*i}}))}))}var qR=Ka(),$R=function(t){function e(e,n,r){var i=t.call(this)||this;i.z2=2;var a=new _u;return i.setTextContent(a),i.updateData(e,n,r,!0),i}return f(e,t),e.prototype.updateData=function(t,e,n,r){var i=this,a=t.hostModel,o=t.getItemModel(e),s=o.getModel("emphasis"),l=t.getItemLayout(e),u=Object(b["extend"])(tR(o.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(r){i.setShape(u);var c=a.getShallow("animationType");a.ecModel.ssr?(rh(i,{scaleX:0,scaleY:0},a,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,rh(i,{shape:{r:l.r}},a,e)):null!=n?(i.setShape({startAngle:n,endAngle:n}),rh(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},a,e)):(i.shape.endAngle=l.startAngle,nh(i,{shape:{endAngle:l.endAngle}},a,e))}else lh(i),nh(i,{shape:u},a,e);i.useStyle(t.getItemVisual(e,"style")),Yc(i,o);var h=(l.startAngle+l.endAngle)/2,d=a.get("selectedOffset"),p=Math.cos(h)*d,f=Math.sin(h)*d,g=o.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(a,t,e),i.ensureState("emphasis").shape=Object(b["extend"])({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},tR(s.getModel("itemStyle"),l)),Object(b["extend"])(i.ensureState("select"),{x:p,y:f,shape:tR(o.getModel(["select","itemStyle"]),l)}),Object(b["extend"])(i.ensureState("blur"),{shape:tR(o.getModel(["blur","itemStyle"]),l)});var y=i.getTextGuideLine(),v=i.getTextContent();y&&Object(b["extend"])(y.ensureState("select"),{x:p,y:f}),Object(b["extend"])(v.ensureState("select"),{x:p,y:f}),Fc(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=this,i=e.getItemModel(n),a=i.getModel("labelLine"),o=e.getItemVisual(n,"style"),s=o&&o.fill,l=o&&o.opacity;ph(r,fh(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=r.getTextContent();r.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=i.get(["label","position"]);if("outside"!==c&&"outer"!==c)r.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Mm,this.setTextGuideLine(h)),OA(this,IA(i),{stroke:s,opacity:Object(b["retrieve3"])(a.get(["lineStyle","opacity"]),l,1)})}},e}(pm),KR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=LR,e.ignoreLabelLineUpdate=!0,e}return f(e,t),e.prototype.render=function(t,e,n,r){var i,a=t.getData(),o=this._data,s=this.group;if(!o&&a.count()>0){for(var l=a.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<a.count();++u)l=a.getItemLayout(u);l&&(i=l.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===a.count()&&t.get("showEmptyCircle")){var c=qR(t),h=new pm({shape:Object(b["clone"])(c)});h.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,s.add(h)}a.diff(o).add((function(t){var e=new $R(a,t,i);a.setItemGraphicEl(t,e),s.add(e)})).update((function(t,e){var n=o.getItemGraphicEl(e);n.updateData(a,t,i),n.off("click"),s.add(n),a.setItemGraphicEl(t,n)})).remove((function(e){var n=o.getItemGraphicEl(e);sh(n,t,e)})).execute(),WR(t),"expansion"!==t.get("animationTypeUpdate")&&(this._data=a)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,e){var n=e.getData(),r=n.getItemLayout(0);if(r){var i=t[0]-r.cx,a=t[1]-r.cy,o=Math.sqrt(i*i+a*a);return o<=r.r&&o>=r.r0}},e.type=LR,e}(fb),JR=KR;function QR(t){return{seriesType:t,reset:function(t,e){var n=t.getData();n.filterSelf((function(t){var e=n.mapDimension("value"),r=n.get(e,t);return!(Object(b["isNumber"])(r)&&!isNaN(r)&&r<0)}))}}}function tN(t){t.registerChartView(JR),t.registerSeriesModel(RR),l_(LR,t.registerAction),t.registerLayout(XR),t.registerProcessor(CR(LR)),t.registerProcessor(QR(LR))}var eN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return f(e,t),e.prototype.getInitialData=function(t,e){return OO(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:Xp.color.primary}},universalTransition:{divideShape:"clone"}},e}(vv),nN=eN,rN=4,iN=function(){function t(){}return t}(),aN=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return f(e,t),e.prototype.getDefaultShape=function(){return new iN},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.buildPath=function(t,e){var n,r=e.points,i=e.size,a=this.symbolProxy,o=a.shape,s=t.getContext?t.getContext():t,l=s&&i[0]<rN,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n<r.length;){var c=r[n++],h=r[n++];isNaN(c)||isNaN(h)||(u&&!u.contain(c,h)||(o.x=c-i[0]/2,o.y=h-i[1]/2,o.width=i[0],o.height=i[1],a.buildPath(t,o,!0)))}this.incremental&&(this._off=n,this.notClear=!0)}},e.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,r=e.size,i=this._ctx,a=this.softClipShape;if(i){for(t=this._off;t<n.length;){var o=n[t++],s=n[t++];isNaN(o)||isNaN(s)||(a&&!a.contain(o,s)||i.fillRect(o-r[0]/2,s-r[1]/2,r[0],r[1]))}this.incremental&&(this._off=t,this.notClear=!0)}},e.prototype.findDataIndex=function(t,e){for(var n=this.shape,r=n.points,i=n.size,a=Math.max(i[0],4),o=Math.max(i[1],4),s=r.length/2-1;s>=0;s--){var l=2*s,u=r[l]-a/2,c=r[l+1]-o/2;if(t>=u&&e>=c&&t<=u+a&&e<=c+o)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(t=n[0],e=n[1],r.contain(t,e)){var i=this.hoverDataIdx=this.findDataIndex(t,e);return i>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,r=e.size,i=r[0],a=r[1],o=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c<n.length;){var h=n[c++],d=n[c++];o=Math.min(h,o),l=Math.max(h,l),s=Math.min(d,s),u=Math.max(d,u)}t=this._rect=new ue(o-i/2,s-a/2,l-o+i,u-s+a)}return t},e}(Bl),oN=function(){function t(){this.group=new vi}return t.prototype.updateData=function(t,e){this._clear(),this._data=t;var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},t.prototype.updateLayout=function(t){var e=this._data;if(e){var n=e.getLayout("points");this.group.eachChild((function(t){if(null!=t.startIndex){var e=2*(t.endIndex-t.startIndex),r=4*t.startIndex*2;n=new Float32Array(n.buffer,r,e)}t.setShape("points",n),t.reset(),t.stopAnimation()}))}},t.prototype.incrementalPrepareUpdate=function(t){this._clear()},t.prototype.incrementalUpdate=function(t,e,n,r){var i=this._newAdded[0],a=e.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=t.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=n,u.setShape({points:a}),this._setCommon(u,e,r)}},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new aN({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;n=n||{};var i=e.getVisual("symbolSize");t.setShape("size",i instanceof Array?i:[i,i]),t.softClipShape=n.clipShape||null,t.symbolProxy=z_(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<rN;t.useStyle(r.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var o=e.getVisual("style"),s=o&&o.fill;s&&t.setColor(s);var l=wu(t);l.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){l.dataIndex=null;var n=t.hoverDataIdx;n>=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),sN=oN,lN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._updateSymbolDraw(r,t);i.updateData(r,uN(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData(),i=this._updateSymbolDraw(r,t);i.incrementalPrepareUpdate(r),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),To(e),uN(e)),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var r=t.getData();if(this.group.dirty(),!this._finished)return{update:!0};var i=dP("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(uN(t))},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,r=e.pipelineContext,i=r.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new sN:new bL,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(fb);function uN(t){return{clipShape:YL(t)}}var cN=lN,hN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",eo).models[0]},e.type="cartesian2dAxis",e}(Hp);b["mixin"](hN,nT);var dN={show:!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:"auto",onZeroAxisIndex:null,lineStyle:{color:Xp.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:Xp.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:Xp.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[Xp.color.backgroundTint,Xp.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:Xp.color.neutral00,borderColor:Xp.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},pN=b["merge"]({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},dN),fN=b["merge"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:Xp.color.axisMinorSplitLine,width:1}}},dN),gN=b["merge"]({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},fN),yN=b["defaults"]({logBase:10},fN),vN={category:pN,value:fN,time:gN,log:yN};function mN(t,e,n,r){Object(b["each"])(jI,(function(i,a){var o=Object(b["merge"])(Object(b["merge"])({},vN[a],!0),r,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+a,n}return f(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Rp(this),r=n?Ep(t):{},i=e.getTheme();Object(b["merge"])(t,i.get(a+"Axis")),Object(b["merge"])(t,this.getDefaultOption()),t.type=xN(t),n&&Np(t,r,n)},n.prototype.optionUpdated=function(){var t=this.option;"category"===t.type&&(this.__ordinalMeta=kO.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.prototype.updateAxisBreaks=function(t){var e=xP();return e?e.updateModelAxisBreak(this,t):{breaks:[]}},n.type=e+"Axis."+a,n.defaultOption=o,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",xN)}function xN(t){return t.type||(t.data?"category":"value")}var bN=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 b["map"](this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),b["filter"](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}(),_N=bN,wN=["x","y"];function SN(t){return("interval"===t.type||"time"===t.type)&&!ud(t)}var MN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=Cj,e.dimensions=wN,e}return f(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(SN(t)&&SN(e)){var n=HO(t,null),r=HO(e,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(o&&s){var l=(a[0]-i[0])/o,u=(a[1]-i[1])/s,c=i[0]-n[0]*l,h=i[1]-r[0]*u,d=this._transform=[l,0,0,u,c,h];this._invTransform=jt([],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.containZone=function(t,e){var n=this.dataToPoint(t),r=this.dataToPoint(e),i=this.getArea(),a=new ue(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return G(n,t,this._transform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.toGlobalCoord(a.dataToCoord(r,e)),n[1]=o.toGlobalCoord(o.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(t[0]),s=r.parse(t[1]);return e=e||[],e[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[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,n){if(n=n||[],this._invTransform)return G(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(e[0],e[1])-t,i=Math.min(n[0],n[1])-t,a=Math.max(e[0],e[1])-r+t,o=Math.max(n[0],n[1])-i+t;return new ue(r,i,a,o)},e}(_N),ON=MN,IN=function(t){function e(e,n,r,i,a){var o=t.call(this,e,n,r)||this;return o.index=0,o.type=i||"value",o.position=a||"bottom",o}return f(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}(JC),TN=IN;function CN(t,e){var n=t.scale,r=t.model;var i,a,o,s=WT(n,r,r.ecModel,t,null),l=KO(n),u=KO(e)?e.intervalStub:e,c=l?n.intervalStub:n,h=n.base,d=u.getTicks(),p=u.getTicks({expandToNicedExtent:!0}),f=d.length-1;if(1===f)i=a=0,o=1;else if(2===f){var g=zi(d[0].value-d[1].value),y=zi(d[1].value-d[2].value);i=a=0,g===y?o=2:(o=1,g<y?i=g/y:a=y/g)}else{var v=u.getConfig().interval;i=(1-(d[0].value-p[0].value)/v)%1,a=(1-(p[f].value-d[f].value)/v)%1,o=f-(i?1:0)-(a?1:0)}var m,x,b,_,w,S,M=s.zoomFixMM,O=M[0]||M[1],I=[s.fixMM[0]||O,s.fixMM[1]||O],T=n.getExtent(),C=c.getExtent(),A=rI(C,I);function D(t){for(var e=50,n=0;n<e;n++){if(t())break;b=l?b*Ei(h,2):QO(b),_=tI(b)}}function k(){m=Qi(S-b*i,_)}function L(){x=Qi(w+b*a,_)}function P(){S=i?Qi(m+b*i,_):m}function j(){w=a?Qi(x-b*a,_):x}if(I[0]&&I[1]){m=A[0],x=A[1],b=(x-m)/(o+i+a);var R=t.getExtent(),N=zi(R[1]-R[0]);_=aa([x,m],N,.5/o),P(),j(),Oa(_)&&(b=Qi(b,_))}else{var E=A[1]-A[0];b=l?Ei(fa(E),1):va(E/o,ya),_=tI(b),I[0]?(m=A[0],D((function(){if(P(),w=Qi(S+b*o,_),L(),x>=A[1])return!0}))):I[1]?(x=A[1],D((function(){if(j(),S=Qi(w-b*o,_),k(),m<=A[0])return!0}))):D((function(){S=Qi(Fi(A[0]/b)*b,_),w=Qi(Vi(A[1]/b)*b,_);var t=Bi((w-S)/b);if(t<=o){var e=o-t,n=void 0,r=s.incl0||l;if(r&&0===A[0])n=[0,e];else if(r&&0===A[1])n=[e,0];else{var i=Vi(e/2);n=e%2===0?[i,i]:m+x<A[0]+A[1]?[i,i+1]:[i+1,i]}if(S=Qi(S-b*n[0],_),w=Qi(w+b*n[1],_),k(),L(),m<=A[0]&&x>=A[1])return!0}}))}QI(n,I,C,[m,x],T,{interval:b,intervalCount:o,intervalPrecision:_,niceExtent:[S,w]})}var AN,DN=[[3,1],[0,2]],kN=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=wN,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;function r(t){for(var e=Object(b["keys"])(t),n=[],r=e.length-1;r>=0;r--){var i=t[+e[r]];i.__alignTo?n.push(i):$T(i)}Object(b["each"])(n,(function(t){NN(t,t.__alignTo)?$T(t):CN(t,t.__alignTo.scale)}))}Object(b["each"])(this._axesList,(function(t){zT(t,CT);var e=t.scale;JO(e)&&e.setSortInfo(t.model.get("categorySortInfo"))})),r(n.x),r(n.y);var i={};Object(b["each"])(n.x,(function(t){PN(n,"y",t,i)})),Object(b["each"])(n.y,(function(t){PN(n,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var r=Lp(t,e),i=this._rect=Ap(t.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=t.get("containLabel");if(zN(a,i),!n){var l=HN(i,o,a,s,e),u=void 0;if(s)AN?(AN(this._axesList,i),zN(a,i)):u=FN(i.clone(),"axisLabel",null,i,a,l,r);else{var c=WN(t,i,r),h=c.outerBoundsRect,d=c.parsedOuterBoundsContain,p=c.outerBoundsClamp;h&&(u=FN(h,d,p,i,a,l,r))}GN(i,a,MC.determine,null,u,r),Object(b["each"])(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(b["isObject"])(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis("x").index===t||i[r].getAxis("y").index===e)return i[r]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},t.prototype.convertFromPixel=function(t,e,n){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},t.prototype._findConvertTarget=function(t){var e,n,r=t.seriesModel,i=t.xAxisModel||r&&r.getReferringComponents("xAxis",eo).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",eo).models[0],o=t.gridModel,s=this._coordsList;if(r)e=r.coordinateSystem,Object(b["indexOf"])(s,e)<0&&(e=null);else if(i&&a)e=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)n=this.getAxis("x",i.componentIndex);else if(a)n=this.getAxis("y",a.componentIndex);else if(o){var l=o.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 r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={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,r){if(LN(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 u=NI(n),c=new TN(e,EI(n,u,!0),[0,0],u,l);c.onBand=eT(c.scale,n),c.inverse=n.get("inverse"),n.axis=c,c.model=n,c.grid=i,c.index=r,i._axesList.push(c),o[e][r]=c,s[e]++}}}this._axesMap=o,Object(b["each"])(o.x,(function(e,n){Object(b["each"])(o.y,(function(i,a){var o="x"+n+"y"+a,s=new ON(o);s.master=r,s.model=t,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(e),s.addAxis(i)}))})),RN(o.x),RN(o.y)},t.prototype.getTooltipAxes=function(t){var e=[],n=[];return Object(b["each"])(this.getCartesians(),(function(r){var i=null!=t&&"auto"!==t?r.getAxis(t):r.getBaseAxis(),a=r.getOtherAxis(i);Object(b["indexOf"])(e,i)<0&&e.push(i),Object(b["indexOf"])(n,a)<0&&n.push(a)})),{baseAxes:e,otherAxes:n}},t.create=function(e,n){var r=[];return e.eachComponent("grid",(function(i,a){var o=new t(i,e,n);o.name="grid_"+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),Object(b["each"])(o._axesList,(function(e){ET(e,t.dimIdxMap)}))})),e.eachSeries((function(t){var e,n;function r(){var r=hj(t),i=r.xAxisModel,a=r.yAxisModel;e=i.axis,n=a.axis;var o=i.getCoordSysModel();var s=o.coordinateSystem;return s.getCartesian(i.componentIndex,a.componentIndex)}mp({targetModel:t,coordSysType:Cj,coordSysProvider:r}),e&&n&&(ST(e,t,Cj),ST(n,t,Cj))}),this),r},t.dimensions=wN,t.dimIdxMap=GM(wN),t}();function LN(t,e){return t.getCoordSysModel()===e}function PN(t,e,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,a=t[e],o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)jN(s,a[l])&&(i=a[l]);else for(var u in a)if(Object(b["hasOwn"])(a,u)&&jN(s,a[u])&&!r[c(a[u])]){i=a[u];break}i&&(r[c(i)]=!0)}function c(t){return t.dim+"_"+t.index}}function jN(t,e){if(!e)return!1;var n=e.scale,r=zI(n,0,!1),i=e&&"category"!==e.type&&"time"!==e.type&&r!==FI;return i&&"auto"===t&&GI(e)&&(i=!1),i}function RN(t){for(var e,n=Object(b["keys"])(t),r=[],i=n.length-1;i>=0;i--){var a=t[+n[i]];ZO(a.scale)&&null==KI(a.model,a.type,!0)&&(a.model.get("alignTicks")&&null==a.model.get("interval")?r.push(a):e=a)}e||(e=r.pop()),e&&Object(b["each"])(r,(function(t){t.__alignTo=e}))}function NN(t,e){return ud(t.scale)||ud(e.scale)||e.scale.getTicks().length<2}function EN(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}function zN(t,e){Object(b["each"])(t.x,(function(t){return BN(t,e.x,e.width)})),Object(b["each"])(t.y,(function(t){return BN(t,e.y,e.height)}))}function BN(t,e,n){var r=[0,n],i=t.inverse?1:0;t.setExtent(r[i],r[1-i]),EN(t,e)}function VN(t){AN=t}function FN(t,e,n,r,i,a,o){GN(r,i,MC.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),c(r,0,NaN),c(r,1,NaN);var l=null==Object(b["find"])(s,(function(t){return t>0}));return Hx(r,s,!0,!0,n),zN(i,r),l;function u(t){Object(b["each"])(i[cx[t]],(function(e){if($I(e.model)){var n=a.ensureRecord(e.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=e.scale.normalize(tT(e.scale,LP(o.label).labelInfo.tick));s=1===t?1-s:s,c(o.rect,t,s),c(o.rect,1-t,NaN)}var l=n.nameLayout;if(l){s=qI(n.nameLocation)?.5:NaN;c(l.rect,t,s),c(l.rect,1-t,NaN)}}}))}function c(e,n,r){var i=t[cx[n]]-e[cx[n]],a=e[hx[n]]+e[cx[n]]-(t[hx[n]]+t[cx[n]]);i=h(i,1-r),a=h(a,r);var o=DN[n][0],l=DN[n][1];s[o]=Ei(s[o],i),s[l]=Ei(s[l],a)}function h(t,e){return t>0&&!Object(b["eqNaN"])(e)&&e>1e-4&&(t/=e),t}}function HN(t,e,n,r,i){var a=new jP(YN);return Object(b["each"])(n,(function(n){return Object(b["each"])(n,(function(n){if($I(n.model)){var o=!r;n.axisBuilder=dj(t,e,n.model,i,a,o)}}))})),a}function GN(t,e,n,r,i,a){var o=n===MC.determine;Object(b["each"])(e,(function(e){return Object(b["each"])(e,(function(e){$I(e.model)&&(pj(e.axisBuilder,t,e.model),e.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))}))}));var s={x:0,y:0};function l(e){s[cx[1-e]]=t[hx[e]]<=.5*a.refContainer[hx[e]]?0:1-e===1?2:1}l(0),l(1),Object(b["each"])(e,(function(t,e){return Object(b["each"])(t,(function(t){$I(t.model)&&(("all"===r||o)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),o&&t.axisBuilder.build({axisLine:!0}))}))}))}function WN(t,e,n){var r,i=t.get("outerBoundsMode",!0);"same"===i?r=e.clone():null!=i&&"auto"!==i||(r=Ap(t.get("outerBounds",!0)||Ij,n.refContainer));var a,o=t.get("outerBoundsContain",!0);a=null==o||"auto"===o||Object(b["indexOf"])(["all","axisLabel"],o)<0?"all":o;var s=[$i(Object(b["retrieve2"])(t.get("outerBoundsClampWidth",!0),Tj[0]),e.width),$i(Object(b["retrieve2"])(t.get("outerBoundsClampHeight",!0),Tj[1]),e.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:a,outerBoundsClamp:s}}var YN=function(t,e,n,r,i,a){var o="x"===n.axis.dim?"y":"x";zP(t,e,n,r,i,a),qI(t.nameLocation)||Object(b["each"])(e.recordMap[o],(function(t){t&&t.labelInfoList&&t.dirVec&&VP(t.labelInfoList,t.dirVec,r,i)}))},UN=kN;function XN(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return ZN(n,t,e),n.seriesInvolved&&$N(n,t),n}function ZN(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];Object(b["each"])(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=rE(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model,c=u.getModel("tooltip",r);if(Object(b["each"])(n.getAxes(),Object(b["curry"])(f,!1,null)),n.getTooltipAxes&&r&&c.get("show")){var h="axis"===c.get("trigger"),d="cross"===c.get(["axisPointer","type"]),p=n.getTooltipAxes(c.get(["axisPointer","axis"]));(h||d)&&Object(b["each"])(p.baseAxes,Object(b["curry"])(f,!d||"cross",h)),d&&Object(b["each"])(p.otherAxes,Object(b["curry"])(f,"cross",!1))}}function f(r,s,u){var h=u.model.getModel("axisPointer",i),d=h.get("show");if(d&&("auto"!==d||r||nE(h))){null==s&&(s=h.get("triggerTooltip")),h=r?qN(u,c,i,e,r,s):h;var p=h.get("snap"),f=h.get("triggerEmphasis"),g=rE(u.model),y=s||p||"category"===u.type,v=t.axesInfo[g]={key:g,axis:u,coordSys:n,axisPointerModel:h,triggerTooltip:s,triggerEmphasis:f,involveSeries:y,snap:p,useHandle:nE(h),seriesModels:[],linkGroup:null};l[g]=v,t.seriesInvolved=t.seriesInvolved||y;var m=KN(a,u);if(null!=m){var x=o[m]||(o[m]={axesInfo:{}});x.axesInfo[g]=v,x.mapper=a[m].mapper,v.linkGroup=x}}}}))}function qN(t,e,n,r,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};Object(b["each"])(s,(function(t){l[t]=Object(b["clone"])(o.get(t))})),l.snap="category"!==t.type&&!!a,"cross"===o.get("type")&&(l.type="line");var u=l.label||(l.label={});if(null==u.show&&(u.show=!1),"cross"===i){var c=o.get(["label","show"]);if(u.show=null==c||c,!a){var h=l.lineStyle=o.get("crossStyle");h&&Object(b["defaults"])(u,h.textStyle)}}return t.model.getModel("axisPointer",new Vh(l,n,r))}function $N(t,e){e.eachSeries((function(e){var n=e.coordinateSystem,r=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);n&&n.model&&"none"!==r&&!1!==r&&"item"!==r&&!1!==i&&!1!==e.get(["axisPointer","show"],!0)&&Object(b["each"])(t.coordSysAxesInfo[rE(n.model)],(function(t){var r=t.axis;n.getAxis(r.dim)===r&&(t.seriesModels.push(e),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=e.getData().count())}))}))}function KN(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(JN(a[r+"AxisId"],n.id)||JN(a[r+"AxisIndex"],n.componentIndex)||JN(a[r+"AxisName"],n.name))return i}}function JN(t,e){return"all"===t||Object(b["isArray"])(t)&&Object(b["indexOf"])(t,e)>=0||t===e}function QN(t){var e=tE(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=r.parse(o));var s=nE(n);null==a&&(i.status=s?"show":"hide");var l=r.getExtent();(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function tE(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[rE(t)]}function eE(t){var e=tE(t);return e&&e.axisPointerModel}function nE(t){return!!t.get(["handle","show"])}function rE(t){return t.type+"||"+t.id}var iE={},aE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(e,n,r,i){this.axisPointerClass&&QN(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},e.prototype.updateAxisPointer=function(t,e,n,r){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,r){var i=e.getAxisPointerClass(this.axisPointerClass);if(i){var a=eE(t);a?(this._axisPointer||(this._axisPointer=new i)).render(t,a,n,r):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){iE[t]=e},e.getAxisPointerClass=function(t){return t&&iE[t]},e.type="axis",e}(xv),oE=aE,sE=Ka();function lE(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,h=sE(t).splitAreaColors,d=b["createHashMap"](),p=0;if(h)for(var f=0;f<u.length;f++){var g=h.get(u[f].tickValue);if(null!=g){p=(g+(c-1)*f)%c;break}}var y=i.toGlobalCoord(u[0].coord),v=o.getAreaStyle();s=b["isArray"](s)?s:[s];for(f=1;f<u.length;f++){var m=i.toGlobalCoord(u[f].coord),x=void 0,_=void 0,w=void 0,S=void 0;i.isHorizontal()?(x=y,_=l.y,w=m-x,S=l.height,y=x+w):(x=l.x,_=y,w=l.width,S=m-_,y=_+S);var M=u[f-1].tickValue;null!=M&&d.set(M,p),e.add(new nu({anid:null!=M?"area_"+M:null,shape:{x:x,y:_,width:w,height:S},style:b["defaults"]({fill:s[p]},v),autoBatch:!0,silent:!0})),p=(p+1)%c}sE(t).splitAreaColors=d}}}function uE(t){sE(t).splitAreaColors=null}var cE=["splitArea","splitLine","minorSplitLine","breakArea"],hE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return f(e,t),e.prototype.render=function(e,n,r,i){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new vi,this.group.add(this._axisGroup),$I(e)){this._axisGroup.add(e.axis.axisBuilder.group),b["each"](cE,(function(t){e.get([t,"show"])&&dE[t](this,this._axisGroup,e,e.getCoordSysModel(),r)}),this);var o=i&&"changeAxisOrder"===i.type&&i.isInitSort;o||jx(a,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)}},e.prototype.remove=function(){uE(this)},e.type="cartesianAxis",e}(oE),dE={splitLine:function(t,e,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=!1!==o.get("showMinLine"),c=!1!==o.get("showMaxLine");l=b["isArray"](l)?l:[l];for(var h=r.coordinateSystem.getRect(),d=a.isHorizontal(),p=0,f=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],y=[],v=s.getLineStyle(),m=0;m<f.length;m++){var x=a.toGlobalCoord(f[m].coord);if((0!==m||u)&&(m!==f.length-1||c)){var _=f[m].tickValue;d?(g[0]=x,g[1]=h.y,y[0]=x,y[1]=h.y+h.height):(g[0]=h.x,g[1]=x,y[0]=h.x+h.width,y[1]=x);var w=p++%l.length,S=new Cm({anid:null!=_?"line_"+_:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:b["defaults"]({stroke:l[w]},v),silent:!0});Ix(S.shape,v.lineWidth),e.add(S)}}}},minorSplitLine:function(t,e,n,r,i){var a=n.axis,o=n.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=r.coordinateSystem.getRect(),u=a.isHorizontal(),c=a.getMinorTicksCoords();if(c.length)for(var h=[],d=[],p=s.getLineStyle(),f=0;f<c.length;f++)for(var g=0;g<c[f].length;g++){var y=a.toGlobalCoord(c[f][g].coord);u?(h[0]=y,h[1]=l.y,d[0]=y,d[1]=l.y+l.height):(h[0]=l.x,h[1]=y,d[0]=l.x+l.width,d[1]=y);var v=new Cm({anid:"minor_line_"+c[f][g].tickValue,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:d[0],y2:d[1]},style:p,silent:!0});Ix(v.shape,p.lineWidth),e.add(v)}},splitArea:function(t,e,n,r,i){lE(t,e,n,r)},breakArea:function(t,e,n,r,i){var a=xP(),o=n.axis.scale;a&&"ordinal"!==o.type&&a.rectCoordBuildBreakAxis(e,t,n,r.coordinateSystem.getRect(),i)}},pE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="xAxis",e}(hE),fE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=pE.type,e}return f(e,t),e.type="yAxis",e}(hE),gE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return f(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new nu({shape:t.coordinateSystem.getRect(),style:Object(b["defaults"])({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(xv),yE={offset:0};function vE(t){t.registerComponentView(gE),t.registerComponentModel(Dj),t.registerCoordinateSystem("cartesian2d",UN),mN(t,"x",hN,yE),mN(t,"y",hN,yE),t.registerComponentView(pE),t.registerComponentView(fE),t.registerPreprocessor((function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}))}var mE="single",xE="singleAxis",bE="singleAxis",_E=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.getCoordSysModel=function(){return this},e.type=bE,e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},e}(Hp);Object(b["mixin"])(_E,nT.prototype);var wE=_E;function SE(t,e){var n=t.coordinateSystem,r=n&&n.type,i=n&&n.getBaseAxis&&n.getBaseAxis(),a=i&&i.scale&&i.scale.type,o=r===Cj&&"ordinal"===a||r===mE,s=e.model.get("jitter")>0;return o&&s}var ME=Ka();function OE(t,e,n,r){if(t instanceof TN){var i=t.scale.type;if("ordinal"!==i)return n}var a=t.model,o=a.get("jitter");if(!(o>0))return n;var s=a.get("jitterOverlap"),l=a.get("jitterMargin")||0,u=JO(t.scale)?YC(t).w:null;return s?IE(n,o,u,r):TE(t,e,n,r,o,l)}function IE(t,e,n,r){if(null===n)return t+(Math.random()-.5)*e;var i=n-2*r,a=Math.min(Math.max(0,e),i);return t+(Math.random()-.5)*a}function TE(t,e,n,r,i,a){var o=ME(t);o.items||(o.items=[]);var s=o.items,l=CE(s,e,n,r,i,a,1),u=CE(s,e,n,r,i,a,-1),c=Math.abs(l-n)<Math.abs(u-n)?l:u,h=JO(t.scale)?YC(t).w:null,d=Math.abs(c-n);return d>i/2||h&&d>h/2-r?IE(n,i,h,r):(s.push({fixedCoord:e,floatCoord:c,r:r}),c)}function CE(t,e,n,r,i,a,o){for(var s=n,l=0;l<t.length;l++){var u=t[l],c=e-u.fixedCoord,h=s-u.floatCoord,d=c*c+h*h,p=r+u.r+a;if(d<p*p){var f=u.floatCoord+Math.sqrt(p*p-c*c)*o;if(Math.abs(f-n)>i/2)return Number.MAX_VALUE;if(1===o&&f>s||-1===o&&f<s){s=f,l=-1;continue}}}return s}function AE(){return{seriesType:"scatter",plan:bv(),reset:function(t){var e=t.coordinateSystem;if(e&&(e.type===Cj||e.type===mE)){var n=e.getBaseAxis&&e.getBaseAxis(),r=n&&SE(t,n);if(r){var i=n.dim,a=n.orient,o="horizontal"===a&&"category"!==n.type||"vertical"===a&&"category"===n.type,s="y"===i||"single"===i&&o,l="x"===i||"single"===i&&!o;if(s||l)return{progress:function(t,e){var r=e.getLayout("points"),i=!!r;for(var a=t.start;a<t.end;a++){var o=i?2*(a-t.start):-1,u=i?[r[o],r[o+1]]:e.getItemLayout(a);if(u){var c=e.getItemVisual(a,"symbolSize"),h=c instanceof Array?(c[1]+c[0])/2:c;if(s){var d=OE(n,u[0],u[1],h/2);i?r[o+1]=d:u[1]=d}else if(l){d=OE(n,u[1],u[0],h/2);i?r[o]=d:u[0]=d}}}}}}}}}}function DE(t){TM(vE),t.registerSeriesModel(nN),t.registerChartView(cN),t.registerLayout(dP("scatter"))}function kE(t){t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,AE())}function LE(t){var e=t.polar;if(e){b["isArray"](e)||(e=[e]);var n=[];b["each"](e,(function(e,r){e.indicator?(e.type&&!e.shape&&(e.shape=e.type),t.radar=t.radar||[],b["isArray"](t.radar)||(t.radar=[t.radar]),t.radar.push(e)):n.push(e)})),t.polar=n}b["each"](t.series,(function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)}))}var PE="radar",jE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return f(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new kR(b["bind"](this.getData,this),b["bind"](this.getRawData,this))},e.prototype.getInitialData=function(t,e){return AR(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.coordinateSystem,a=i.getIndicatorAxes(),o=this.getData().getName(t),s=""===o?this.name:o,l=tv(this,t);return Fy("section",{header:s,sortBlocks:!0,blocks:b["map"](a,(function(e){var n=r.get(r.mapDimension(e.dim),t);return Fy("nameValue",{markerType:"subItem",markerColor:l,name:e.name,value:n,sortParam:n})}))})},e.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,r=e.getValues(b["map"](n.dimensions,(function(t){return e.mapDimension(t)})),t),i=0,a=r.length;i<a;i++)if(!isNaN(r[i])){var o=n.getIndicatorAxes();return n.coordToPoint(o[i].dataToCoord(r[i]),i)}},e.type="series."+PE,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(vv),RE=jE,NE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=PE,e}return f(e,t),e.prototype.render=function(t,e,n){var r=t.coordinateSystem,i=this.group,a=t.getData(),s=this._data;function l(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var r=B_(t.getItemVisual(e,"symbolSize")),i=z_(n,-1,-1,2,2),a=t.getItemVisual(e,"symbolRotate")||0;return i.attr({style:{strokeNoScale:!0},z2:100,scaleX:r[0]/2,scaleY:r[1]/2,rotation:a*Math.PI/180||0}),i}}function u(e,n,r,i,a,s){r.removeAll();for(var u=0;u<n.length-1;u++){var c=l(i,a);c&&(c.__dimIdx=u,e[u]?(c.setPosition(e[u]),o[s?"initProps":"updateProps"](c,{x:n[u][0],y:n[u][1]},t,a)):c.setPosition(n[u]),r.add(c))}}function c(t){return b["map"](t,(function(t){return[r.cx,r.cy]}))}a.diff(s).add((function(e){var n=a.getItemLayout(e);if(n){var r=new _m,i=new Mm,o={shape:{points:n}};r.shape.points=c(n),i.shape.points=c(n),rh(r,o,t,e),rh(i,o,t,e);var s=new vi,l=new vi;s.add(i),s.add(r),s.add(l),u(i.shape.points,n,l,a,e,!0),a.setItemGraphicEl(e,s)}})).update((function(e,n){var r=s.getItemGraphicEl(n),i=r.childAt(0),o=r.childAt(1),l=r.childAt(2),c={shape:{points:a.getItemLayout(e)}};c.shape.points&&(u(i.shape.points,c.shape.points,l,a,e,!1),lh(o),lh(i),nh(i,c,t),nh(o,c,t),a.setItemGraphicEl(e,r))})).remove((function(t){i.remove(s.getItemGraphicEl(t))})).execute(),a.eachItemGraphicEl((function(t,e){var n=a.getItemModel(e),r=t.childAt(0),o=t.childAt(1),s=t.childAt(2),l=a.getItemVisual(e,"style"),u=l.fill;i.add(t),r.useStyle(b["defaults"](n.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:u})),Yc(r,n,"lineStyle"),Yc(o,n,"areaStyle");var c=n.getModel("areaStyle"),h=c.isEmpty()&&c.parentModel.isEmpty();o.ignore=h,b["each"](["emphasis","select","blur"],(function(t){var e=n.getModel([t,"areaStyle"]),i=e.isEmpty()&&e.parentModel.isEmpty();o.ensureState(t).ignore=i&&h;var a=n.getModel([t,"lineStyle"]).getLineStyle();r.ensureState(t).style=a;var l=e.getAreaStyle();o.ensureState(t).style=l;var u=n.getModel([t,"itemStyle"]).getItemStyle();s.eachChild((function(e){e.ensureState(t).style=b["clone"](u)}))})),o.useStyle(b["defaults"](n.getModel("areaStyle").getAreaStyle(),{fill:u,opacity:.7,decal:l.decal}));var d=n.getModel("emphasis");s.eachChild((function(t){if(t instanceof Xl){var r=t.style;t.useStyle(b["extend"]({image:r.image,x:r.x,y:r.y,width:r.width,height:r.height},l))}else t.useStyle(l),t.setColor(u),t.style.strokeNoScale=!0;var i=a.getStore().get(a.getDimensionIndex(t.__dimIdx),e);(null==i||isNaN(i))&&(i=""),ph(t,fh(n),{labelFetcher:a.hostModel,labelDataIndex:e,labelDimIndex:t.__dimIdx,defaultText:i,inheritColor:u,defaultOpacity:l.opacity})})),Fc(t,d.get("focus"),d.get("blurScope"),d.get("disabled"))})),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=PE,e}(fb),EE=NE,zE=vN.value,BE="radar",VE=BE,FE=BE,HE=5;function GE(t,e){return b["defaults"]({show:e},t)}var WE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("clockwise"),r=this.get("scale"),i=this.get("axisLine"),a=this.get("axisTick"),o=this.get("axisLabel"),s=this.get("axisName"),l=this.get(["axisName","show"]),u=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),d=b["map"](this.get("indicator")||[],(function(d){null!=d.max&&d.max>0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var p=s;null!=d.color&&(p=b["defaults"]({color:d.color},s));var f=b["merge"](b["clone"](d),{boundaryGap:t,splitNumber:e,clockwise:n,scale:r,axisLine:i,axisTick:a,axisLabel:o,name:d.text,showName:l,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if(b["isString"](u)){var g=f.name;f.name=u.replace("{value}",null!=g?g:"")}else b["isFunction"](u)&&(f.name=u(f.name,f));var y=new Vh(f,null,this.ecModel);return b["mixin"](y,nT.prototype),y.mainType="radar",y.componentIndex=this.componentIndex,y.uid=Hh("ec_radar"),y}),this);this._indicatorModels=d},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=VE,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:Xp.color.axisLabel},boundaryGap:[0,0],splitNumber:HE,axisNameGap:15,scale:!1,shape:"polygon",axisLine:b["merge"]({lineStyle:{color:Xp.color.neutral20}},zE.axisLine),axisLabel:GE(zE.axisLabel,!1),axisTick:GE(zE.axisTick,!1),splitLine:GE(zE.splitLine,!0),splitArea:GE(zE.splitArea,!0),indicator:[]},e}(Hp),YE=WE,UE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){var r=this.group;r.removeAll(),this._buildAxes(t,n),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,e){var n=t.coordinateSystem,r=n.getIndicatorAxes(),i=b["map"](r,(function(t){var r=t.model.get("showName")?t.name:"",i=new lj(t.model,e,{axisName:r,position:[n.cx,n.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));b["each"](i,(function(t){t.build(),this.group.add(t.group)}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var r=t.get("shape"),i=t.getModel("splitLine"),a=t.getModel("splitArea"),o=i.getModel("lineStyle"),s=a.getModel("areaStyle"),l=i.get("show"),u=a.get("show"),c=o.get("color"),h=s.get("color"),d=b["isArray"](c)?c:[c],p=b["isArray"](h)?h:[h],f=[],g=[];if("circle"===r)for(var y=n[0].getTicksCoords(),v=e.cx,m=e.cy,x=0;x<y.length;x++){if(l){var _=A(f,d,x);f[_].push(new Uv({shape:{cx:v,cy:m,r:y[x].coord}}))}if(u&&x<y.length-1){_=A(g,p,x);g[_].push(new ym({shape:{cx:v,cy:m,r0:y[x].coord,r:y[x+1].coord}}))}}else{var w,S=b["map"](n,(function(t,n){var r=t.getTicksCoords();return w=null==w?r.length-1:Math.min(r.length-1,w),b["map"](r,(function(t){return e.coordToPoint(t.coord,n)}))})),M=[];for(x=0;x<=w;x++){for(var O=[],I=0;I<n.length;I++)O.push(S[I][x]);if(O[0]&&O.push(O[0].slice()),l){_=A(f,d,x);f[_].push(new Mm({shape:{points:O}}))}if(u&&M){_=A(g,p,x-1);g[_].push(new _m({shape:{points:O.concat(M)}}))}M=O.slice().reverse()}}var T=o.getLineStyle(),C=s.getAreaStyle();b["each"](g,(function(t,e){this.group.add(Mx(t,{style:b["defaults"]({stroke:"none",fill:p[e%p.length]},C),silent:!0}))}),this),b["each"](f,(function(t,e){this.group.add(Mx(t,{style:b["defaults"]({fill:"none",stroke:d[e%d.length]},T),silent:!0}))}),this)}function A(t,e,n){var r=n%e.length;return t[r]=t[r]||[],r}},e.type="radar",e}(xv),XE=UE,ZE=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="value",i.angle=0,i.name="",i}return f(e,t),e}(JC),qE=ZE,$E=function(){function t(t,e,n){this.type=BE,this.dimensions=[],this._model=t,this._indicatorAxes=Object(b["map"])(t.getIndicatorModels(),(function(t,e){var n="indicator_"+e,r=new qE(n,new hI);return r.name=t.get("name"),r.model=t,t.axis=r,this.dimensions.push(n),r}),this),this.resize(t,n)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},t.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],r=n.angle,i=this.cx+t*Math.cos(r),a=this.cy-t*Math.sin(r);return[i,a]},t.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=Math.sqrt(e*e+n*n);e/=r,n/=r;for(var i,a=Math.atan2(-n,e),o=1/0,s=-1,l=0;l<this._indicatorAxes.length;l++){var u=this._indicatorAxes[l],c=Math.abs(a-u.angle);c<o&&(i=u,s=l,o=c)}return[s,+(i&&i.coordToData(r))]},t.prototype.resize=function(t,e){var n=Lp(t,e).refContainer,r=t.get("center"),i=t.get("clockwise")||!1,a=Math.min(n.width,n.height)/2;this.cx=Zi(r[0],n.width)+n.x,this.cy=Zi(r[1],n.height)+n.y,this.startAngle=t.get("startAngle")*Math.PI/180;var o=t.get("radius");(Object(b["isString"])(o)||Object(b["isNumber"])(o))&&(o=[0,o]),this.r0=Zi(o[0],a),this.r=Zi(o[1],a);var s=i?-1:1;Object(b["each"])(this._indicatorAxes,(function(t,e){t.setExtent(this.r0,this.r);var n=this.startAngle+s*e*Math.PI*2/this._indicatorAxes.length;n=Math.atan2(Math.sin(n),Math.cos(n)),t.angle=n}),this)},t.prototype.update=function(t,e){var n=this._indicatorAxes,r=this._model,i=aI(r.get("splitNumber"),HE),a=new hI;a.setExtent(0,i),a.setConfig({interval:1}),Object(b["each"])(n,(function(t){zT(t,CT),CN(t,a)}))},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var r=[];return e.eachComponent(VE,(function(i){var a=new t(i,e,n);r.push(a),i.coordinateSystem=a})),e.eachSeriesByType(FE,(function(t){if(t.get("coordinateSystem")===BE){var e=t.coordinateSystem=r[t.get("radarIndex")||0];e&&Object(b["each"])(e.getIndicatorAxes(),(function(e){ST(e,t,BE)}))}})),r},t.dimensions=[],t}(),KE=$E;function JE(t){t.registerCoordinateSystem("radar",KE),t.registerComponentModel(YE),t.registerComponentView(XE),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each((function(t){e.setItemVisual(t,"legendIcon","roundRect")})),e.setVisual("legendIcon","roundRect")}})}var QE=Ao(PE,tz);function tz(t){t.eachSeriesByType(PE,(function(t){var e=t.getData(),n=[],r=t.coordinateSystem;if(r){var i=r.getIndicatorAxes();b["each"](i,(function(t,a){e.each(e.mapDimension(i[a].dim),(function(t,e){n[e]=n[e]||[];var i=r.dataToPoint(t,a);n[e][a]=ez(i)?i:nz(r)}))})),e.each((function(t){var i=b["find"](n[t],(function(t){return ez(t)}))||nz(r);n[t].push(i.slice()),e.setItemLayout(t,n[t])}))}}))}function ez(t){return!isNaN(t[0])&&!isNaN(t[1])}function nz(t){return[t.cx,t.cy]}function rz(t){TM(JE),t.registerChartView(EE),t.registerSeriesModel(RE),t.registerLayout(QE),t.registerProcessor(CR("radar")),t.registerPreprocessor(LE)}var iz=Ka();function az(t,e,n){iz(t)[e]=n}function oz(t,e,n){var r=iz(t),i=r[e];i===n&&(r[e]=null)}function sz(t,e){return!!iz(t)[e]}cM({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},b["noop"]);var lz={axisPointer:1,tooltip:1,brush:1};function uz(t,e,n){var r=e.getComponentByElement(t.topTarget);if(!r||r===n||lz.hasOwnProperty(r.mainType))return!1;var i=r.coordinateSystem;if(!i||i.model===n)return!1;var a=Jx(r),o=Jx(n);return!((a.zlevel-o.zlevel||a.z-o.z)<=0)}var cz=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var r=Object(b["bind"])(n._mousedownHandler,n),i=Object(b["bind"])(n._mousemoveHandler,n),a=Object(b["bind"])(n._mouseupHandler,n),o=Object(b["bind"])(n._mousewheelHandler,n),s=Object(b["bind"])(n._pinchHandler,n);return n.enable=function(t,n){var l=n.zInfo,u=Jx(l.component),c=u.z,h=u.zlevel,d={component:l.component,z:c,zlevel:h,z2:Object(b["retrieve2"])(l.z2,-1/0)},p=Object(b["extend"])({},n.triggerInfo);this._opt=Object(b["defaults"])(Object(b["extend"])({},n),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:d,triggerInfo:p,cursorGrab:"grab",cursorGrabbing:"grabbing"}),null==t&&(t=!0),this._enabled&&this._controlType===t||(this.disable(),this._enabled=!0,!0!==t&&"move"!==t&&"pan"!==t||(fz(e,"mousedown",r,d),fz(e,"mousemove",i,d),fz(e,"mouseup",a,d)),!0!==t&&"scale"!==t&&"zoom"!==t||(fz(e,"mousewheel",o,d),fz(e,"pinch",s,d)))},n.disable=function(){this._enabled&&(this._enabled=!1,gz(e,"mousedown",r),gz(e,"mousemove",i),gz(e,"mouseup",a),gz(e,"mousewheel",o),gz(e,"pinch",s))},n}return f(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,e,n){var r=this._opt,i=r.zInfoParsed;if(uz(t,r.api,i.component))return!1;var a=r.triggerInfo,o=a.roamTrigger,s=!1;return"global"===o&&(s=!0),s||(s=a.isInSelf(t,e,n)),s&&a.isInClip&&!a.isInClip(t,e,n)&&(s=!1),s},e.prototype._decideCursorStyle=function(t,e,n,r){var i=t.target;return!i&&this._checkPointer(t,e,n)?this._opt.cursorGrab:r?i&&i.cursor||"default":void 0},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!wt(t)&&!hz(t)){var e=t.target;while(e){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,r=t.offsetY;this._checkPointer(t,n,r)&&(this._x=n,this._y=r,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var e=this._zr;if("pinch"!==t.gestureEvent&&!sz(e,"globalPan")&&!hz(t)){var n=t.offsetX,r=t.offsetY;if(this._dragging&&xz("moveOnMouseMove",t,this._opt)){e.setCursorStyle(this._opt.cursorGrabbing);var i=this._x,a=this._y,o=n-i,s=r-a;this._x=n,this._y=r,this._opt.preventDefaultMouseMove&&_t(t.event),t.__ecRoamConsumed=!0,mz(this,"pan","moveOnMouseMove",t,{dx:o,dy:s,oldX:i,oldY:a,newX:n,newY:r,isAvailableBehavior:null})}else{var l=this._decideCursorStyle(t,n,r,!1);l&&e.setCursorStyle(l)}}},e.prototype._mouseupHandler=function(t){if(!hz(t)){var e=this._zr;if(!wt(t)){this._dragging=!1;var n=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);n&&e.setCursorStyle(n)}}},e.prototype._mousewheelHandler=function(t){if(!hz(t)){var e=xz("zoomOnMouseWheel",t,this._opt),n=xz("moveOnMouseWheel",t,this._opt),r=t.wheelDelta,i=Math.abs(r),a=t.offsetX,o=t.offsetY;if(0!==r&&(e||n)){if(e){var s=i>3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:l,originX:a,originY:o,isAvailableBehavior:null})}if(n){var u=Math.abs(r),c=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:a,originY:o,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!sz(this._zr,"globalPan")&&!hz(t)){var e=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,e,n,r,i){t._checkPointer(r,i.originX,i.originY)&&(_t(r.event),r.__ecRoamConsumed=!0,mz(t,e,n,r,i))},e}($);function hz(t){return t.__ecRoamConsumed}var dz=Ka();function pz(t){var e=dz(t);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function fz(t,e,n,r){for(var i=pz(t),a=i.roam,o=a[e]=a[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-r.zlevel||l.z-r.z||l.z2-r.z2)<=0)break}o.splice(s,0,{listener:n,zInfoParsed:r}),yz(t,e)}function gz(t,e,n){for(var r=pz(t),i=r.roam[e]||[],a=0;a<i.length;a++)if(i[a].listener===n)return i.splice(a,1),void(i.length||vz(t,e))}function yz(t,e){var n=pz(t);n.uniform[e]||t.on(e,n.uniform[e]=function(t){var r=n.roam[e];if(r)for(var i=0;i<r.length;i++)r[i].listener(t)})}function vz(t,e){var n=pz(t),r=n.uniform;r[e]&&(t.off(e,r[e]),r[e]=null)}function mz(t,e,n,r,i){i.isAvailableBehavior=Object(b["bind"])(xz,null,n,r),t.trigger(e,i)}function xz(t,e,n){var r=n[t];return!t||r&&(!Object(b["isString"])(r)||e.event[r+"Key"])}var bz,_z=cz;function wz(t){if(Object(b["isString"])(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var Sz={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Mz=Object(b["keys"])(Sz),Oz={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Iz=Object(b["keys"])(Oz),Tz=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=wz(t);this._defsUsePending=[];var r=new vi;this._root=r;var i=[],a=n.getAttribute("viewBox")||"",o=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(o)&&(o=null),isNaN(s)&&(s=null),Pz(n,r,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(Ez(this._defs,this._defsUsePending),this._defsUsePending=[],a){var h=Bz(a);h.length>=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=o&&null!=s&&(u=Uz(l,{x:0,y:0,width:o,height:s}),!e.ignoreViewBox)){var d=r;r=new vi,r.add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==o||null==s||r.setClipPath(new nu({shape:{x:0,y:0,width:o,height:s}})),{root:r,width:o,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},t.prototype._parseNode=function(t,e,n,r,i,a){var o,s=t.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(a=!0),"defs"===s||"switch"===s)o=e;else{if(!i){var u=bz[s];if(u&&Object(b["hasOwn"])(bz,s)){o=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:o};n.push(h),"g"===s&&(l=h)}else r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:o});e.add(o)}}var d=Cz[s];if(d&&Object(b["hasOwn"])(Cz,s)){var p=d.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=p)}}if(o&&o.isGroup){var g=t.firstChild;while(g)1===g.nodeType?this._parseNode(g,o,n,l,i,a):3===g.nodeType&&a&&this._parseText(g,o),g=g.nextSibling}},t.prototype._parseText=function(t,e){var n=new Hl({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});kz(e,n),Pz(t,n,this._defsUsePending,!1,!1),jz(n,e);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var a=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=a;var o=n.getBoundingRect();return this._textX+=o.width,e.add(n),n},t.internalField=function(){bz={g:function(t,e){var n=new vi;return kz(e,n),Pz(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new nu;return kz(e,n),Pz(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new Uv;return kz(e,n),Pz(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Cm;return kz(e,n),Pz(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new qv;return kz(e,n),Pz(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=Lz(r));var i=new _m({shape:{points:n||[]},silent:!0});return kz(e,i),Pz(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=Lz(r));var i=new Mm({shape:{points:n||[]},silent:!0});return kz(e,i),Pz(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new Xl;return kz(e,n),Pz(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(a);var o=new vi;return kz(e,o),Pz(t,o,this._defsUsePending,!1,!0),o},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",o=new vi;return kz(e,o),Pz(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(a),o},path:function(t,e){var n=t.getAttribute("d")||"",r=Vv(n);return kz(e,r),Pz(t,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),t}(),Cz={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),a=new Hm(e,n,r,i);return Az(t,a),Dz(t,a),a},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new Wm(e,n,r);return Az(t,i),Dz(t,i),i}};function Az(t,e){var n=t.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(e.global=!0)}function Dz(t,e){var n=t.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var a={};Wz(n,a,a);var o=a.stopColor||n.getAttribute("stop-color")||"#000000",s=a.stopOpacity||n.getAttribute("stop-opacity");if(s){var l=bn["parse"](o),u=l&&l[3];u&&(l[3]*=bn["parseCssFloat"](s),o=bn["stringify"](l,"rgba"))}e.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function kz(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(b["defaults"])(e.__inheritedStyle,t.__inheritedStyle))}function Lz(t){for(var e=Bz(t),n=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),a=parseFloat(e[r+1]);n.push([i,a])}return n}function Pz(t,e,n,r,i){var a=e,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};1===t.nodeType&&(Hz(t,e),Wz(t,o,s),r||Yz(t,o,s)),a.style=a.style||{},null!=o.fill&&(a.style.fill=Nz(a,"fill",o.fill,n)),null!=o.stroke&&(a.style.stroke=Nz(a,"stroke",o.stroke,n)),Object(b["each"])(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],(function(t){null!=o[t]&&(a.style[t]=parseFloat(o[t]))})),Object(b["each"])(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],(function(t){null!=o[t]&&(a.style[t]=o[t])})),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=Object(b["map"])(Bz(o.lineDash),(function(t){return parseFloat(t)}))),"hidden"!==o.visibility&&"collapse"!==o.visibility||(a.invisible=!0),"none"===o.display&&(a.ignore=!0)}function jz(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",t.style.textBaseline=i}var a=e.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&("middle"===o&&(s="center"),t.style.textAlign=s)}}var Rz=/^url\(\s*#(.*?)\)/;function Nz(t,e,n,r){var i=n&&n.match(Rz);if(!i)return"none"===n&&(n=null),n;var a=Object(b["trim"])(i[1]);r.push([t,e,a])}function Ez(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}var zz=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Bz(t){return t.match(zz)||[]}var Vz=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Fz=Math.PI/180;function Hz(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(Vz,(function(t,e,n){return r.push(e,n),""}));for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1],l=Bz(o);switch(i=i||Tt(),s){case"translate":kt(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Pt(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Lt(i,i,-parseFloat(l[0])*Fz,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Fz);Dt(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Fz);Dt(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var Gz=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Wz(t,e,n){var r=t.getAttribute("style");if(r){var i;Gz.lastIndex=0;while(null!=(i=Gz.exec(r))){var a=i[1],o=Object(b["hasOwn"])(Sz,a)?Sz[a]:null;o&&(e[o]=i[2]);var s=Object(b["hasOwn"])(Oz,a)?Oz[a]:null;s&&(n[s]=i[2])}}}function Yz(t,e,n){for(var r=0;r<Mz.length;r++){var i=Mz[r],a=t.getAttribute(i);null!=a&&(e[Sz[i]]=a)}for(r=0;r<Iz.length;r++){i=Iz[r],a=t.getAttribute(i);null!=a&&(n[Oz[i]]=a)}}function Uz(t,e){var n=e.width/t.width,r=e.height/t.height,i=Math.min(n,r);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}function Xz(t,e){var n=new Tz;return n.parse(t,e)}var Zz=Object(b["createHashMap"])(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),qz=function(){function t(t,e){this.type="geoSVG",this._usedGraphicMap=Object(b["createHashMap"])(),this._freedGraphics=[],this._mapName=t,this._parsedXML=wz(e)}return t.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var e=Kz(t.named),n=e.regions,r=e.regionsMap;this._regions=n,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(t){var e,n;try{e=t&&Xz(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=e.root,Object(b["assert"])(null!=n)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var r=new vi;r.add(n),r.isGeoSVGGraphicRoot=!0;var i=e.width,a=e.height,o=e.viewBoxRect,s=this._boundingRect;if(!s){var l=void 0,u=void 0,c=void 0,h=void 0;if(null!=i?(l=0,c=i):o&&(l=o.x,c=o.width),null!=a?(u=0,h=a):o&&(u=o.y,h=o.height),null==l||null==u){var d=n.getBoundingRect();null==l&&(l=d.x,c=d.width),null==u&&(u=d.y,h=d.height)}s=this._boundingRect=new ue(l,u,c,h)}if(o){var p=Uz(o,s);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}r.setClipPath(new nu({shape:s.plain()}));var f=[];return Object(b["each"])(e.named,(function(t){null!=Zz.get(t.svgNodeTagLower)&&(f.push(t),$z(t.el))})),{root:r,boundingRect:s,named:f}},t.prototype.useGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,n),n)},t.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},t}();function $z(t){t.silent=!1,t.isGroup&&t.traverse((function(t){t.silent=!1}))}function Kz(t){var e=[],n=Object(b["createHashMap"])();return Object(b["each"])(t,(function(t){if(null==t.namedFrom){var r=new yC(t.name,t.el);e.push(r),n.set(t.name,r)}})),{regions:e,regionsMap:n}}for(var Jz=[126,25],Qz="南海诸岛",tB=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],eB=0;eB<tB.length;eB++)for(var nB=0;nB<tB[eB].length;nB++)tB[eB][nB][0]/=10.5,tB[eB][nB][1]/=-14,tB[eB][nB][0]+=Jz[0],tB[eB][nB][1]+=Jz[1];function rB(t,e){if("china"===t){for(var n=0;n<e.length;n++)if(e[n].name===Qz)return;e.push(new gC(Qz,b["map"](tB,(function(t){return{type:"polygon",exterior:t}})),Jz))}}var iB={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};function aB(t,e){if("china"===t){var n=iB[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/14,e.setCenter(r)}}}var oB=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function sB(t,e){"china"===t&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:oB[0]})}var lB="name",uB=function(){function t(t,e,n){this.type="geoJSON",this._parsedMap=Object(b["createHashMap"])(),this._mapName=t,this._specialAreas=n,this._geoJSON=hB(e)}return t.prototype.load=function(t,e){e=e||lB;var n=this._parsedMap.get(e);if(!n){var r=this._parseToRegions(e);n=this._parsedMap.set(e,{regions:r,boundingRect:cB(r)})}var i=Object(b["createHashMap"])(),a=[];return Object(b["each"])(n.regions,(function(e){var n=e.name;t&&Object(b["hasOwn"])(t,n)&&(e=e.cloneShallow(n=t[n])),a.push(e),i.set(n,e)})),{regions:a,boundingRect:n.boundingRect||new ue(0,0,0,0),regionsMap:i}},t.prototype._parseToRegions=function(t){var e,n=this._mapName,r=this._geoJSON;try{e=r?bC(r,t):[]}catch(i){throw new Error("Invalid geoJson format\n"+i.message)}return rB(n,e),Object(b["each"])(e,(function(t){var e=t.name;aB(n,t),sB(n,t);var r=this._specialAreas&&this._specialAreas[e];r&&t.transformTo(r.left,r.top,r.width,r.height)}),this),e},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function cB(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function hB(t){return Object(b["isString"])(t)?"undefined"!==typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var dB=Object(b["createHashMap"])(),pB={registerMap:function(t,e,n){if(e.svg){var r=new qz(t,e.svg);dB.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e;r=new uB(t,i,n);dB.set(t,r)}},getGeoResource:function(t){return dB.get(t)},getMapForUser:function(t){var e=dB.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()},load:function(t,e,n){var r=dB.get(t);if(r)return r.load(e,n)}},fB=0,gB=1,yB=2;function vB(t){return t}var mB="view",xB=function(t){function e(e,n,r){var i=t.call(this)||this;i.type=mB,i.dimensions=["x","y"];var a=vB(i);a.invertY=e,a.lgCt=n,a.lgGeo=r;var o=a.trans=[];return o[fB]=Dr(),o[gB]=Dr(),o[yB]=Dr(),a.mtRaw=Tt(),a.mtRawInv=Tt(),a.mtOverall=Tt(),a.mtOverallInv=Tt(),a.zoom=1,i}return f(e,t),e.prototype.getBoundingRect=function(){return SB(null,this)},e.prototype.getViewRect=function(){return MB(null,this)},e.prototype.getRoamTransform=function(){return Ar(vB(this).trans[gB])},e.prototype.dataToPoint=function(t,e,n){var r=e?vB(this).mtRaw:vB(this).mtOverall;return n=n||[],r?G(n,t,r):w(n,t)},e.prototype.pointToData=function(t,e,n){n=n||[];var r=vB(this).mtOverallInv;return r?G(n,t,r):w(n,t)},e.prototype.convertToPixel=function(t,e,n){var r=WB(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=WB(e);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(t){var e=vB(this);return te(bB,e.dataRect),ne(bB,bB,e.mtOverall),re(bB,t[0],t[1])},e.dimensions=["x","y"],e}(jr),bB=Jt();function _B(t,e){return At(t||[],vB(e).mtOverall)}function wB(t){return vB(t).zoom}function SB(t,e){return te(t||Jt(),vB(e).dataRect)}function MB(t,e){return te(t||Jt(),vB(e).viewRect)}function OB(t,e,n){return Lr(t||Dr(),vB(e).trans[n])}function IB(t){return!(!t.dataRect||!t.viewRect)}function TB(t,e,n,r){r===gB?FB(t,e.trans[fB],n):Lr(t,n)}function CB(t,e,n){Ar(n,AB),Dt(AB,AB,e.mtRawInv),rb(t,AB)}var AB=Tt();function DB(t,e){var n=vB(t);n.centerOption=e.getShallow("center");var r=n.zoomLimit=e.getShallow("scaleLimit"),i=e.getShallow("zoom");n.zoom=cV(i||1,r)||1,IB(n)&&PB(n)}function kB(t,e,n,r,i){var a=vB(t);a.dataRect=new ue(e,n,r,i),IB(a)&&PB(a)}function LB(t,e,n,r,i){var a=vB(t);a.viewRect=new ue(e,n,r,i),IB(a)&&PB(a)}function PB(t){jB(t),EB(t),BB(t)}function jB(t){var e=t.dataRect,n=t.viewRect,r=t.trans[fB],i=t.invertY;i&&(e=te(NB,e),e.y=-e.y-e.height),ee(RB,e,n),rb(r,RB),i&&(r.scaleY=-r.scaleY);var a=Ar(r,t.mtRaw);jt(t.mtRawInv,a)}var RB=Tt(),NB=Jt();function EB(t){var e=YB(t),n=rV(zB,t,t.centerOption)?G(zB,zB,t.mtRaw):e,r=t.zoom,i=t.trans[gB];i.x=e[0]-r*n[0],i.y=e[1]-r*n[1],i.scaleX=i.scaleY=r}var zB=[];function BB(t){var e=t.trans,n=e[gB],r=e[fB],i=e[yB];FB(i,r,n);var a=Ar(i,t.mtOverall),o=jt(t.mtOverallInv,a);VB(t,i,a,o),VB(t.lgGeo,i,a,o)}function VB(t,e,n,r){t&&(Lr(t,e),At(t.transform||(t.transform=[]),n),At(t.invTransform||(t.invTransform=[]),r))}function FB(t,e,n){Ar(e,HB),Ar(n,GB),Dt(GB,GB,HB),rb(t,GB)}var HB=Tt(),GB=Tt();function WB(t){var e=t.seriesModel;return e?e.coordinateSystem:null}function YB(t){var e=t.viewRect;return UB[0]=e.x+e.width/2,UB[1]=e.y+e.height/2,UB}var UB=[];function XB(t){return t&&"view"===t.type}function ZB(t,e,n,r){var i=vB(n);i.syncBackEl=t,i.syncBackType=e,r?nh(t,OB(null,n,e),r):(OB(t,n,e),t.dirty())}function qB(t,e,n,r){var i=vB(t),a=i.syncBackEl;a?(a.stopAnimation(),TB($B,i,a,i.syncBackType)):Lr($B,i.trans[yB]),CB(KB,i,$B),r?eV($B,KB,i,r):Lr($B,KB),CB($B,i,$B),sV(i,e,n,$B)}var $B=Dr(),KB=Dr();function JB(t,e,n){var r=QB(e);r&&(qB(r,e,n,t),DB(r,e))}function QB(t){return t.__ownRoamView?t.__ownRoamView():null}function tV(t,e,n,r){n.setUpdatePayload(nb(t));var i=zu(r,e);i&&i.__updateOnOwnRoam&&i.__updateOnOwnRoam(t,e,r)}function eV(t,e,n,r){null!=r.dx&&null!=r.dy&&(t.x+=r.dx,t.y+=r.dy);var i=r.zoom;if(null!=i){var a=nV(e),o=cV(a*i,n.zoomLimit),s=o/a;t.x-=(r.originX-t.x)*(s-1),t.y-=(r.originY-t.y)*(s-1),t.scaleX*=s,t.scaleY*=s}}function nV(t){return t.scaleX}function rV(t,e,n){var r=e.dataRect;if(!n)return!1;var i=e.lgCt;return i?M(t,Zi(n[0],i.w),Zi(n[1],i.h)):r&&M(t,Zi(n[0],r.width,r.x),Zi(n[1],r.height,r.y)),!0}function iV(t,e){var n=t.centerOption,r=t.dataRect;return!n||t.lgCt?e.slice():[aV(0,e,n,r),aV(1,e,n,r)]}function aV(t,e,n,r){return n&&r&&r[hx[t]]&&Ki(n[t])?(e[t]-r[cx[t]])/r[hx[t]]*100+"%":e[t]}function oV(t,e){return e&&t&&t.getShallow("legacyViewCoordSysCenterBase")?{w:e.getWidth(),h:e.getHeight()}:null}function sV(t,e,n,r){var i=YB(t),a=nV(r),o=zi(a)>1e-6;lV[0]=o?(i[0]-r.x)/a:i[0],lV[1]=o?(i[1]-r.y)/a:i[1],G(lV,lV,t.mtRawInv);var s=iV(t,lV);uV(e,s,a),Object(b["each"])(n,(function(t){t!==e&&uV(t,s.slice(),a)}))}var lV=[];function uV(t,e,n){var r=t.option;r.center=e,r.zoom=n}function cV(t,e){if(e){var n=e.min||0,r=e.max||1/0;t=Math.max(Math.min(r,t),n)}return t}function hV(t,e){var n=e.getShallow("nodeScaleRatio",!0)||1,r=vB(t);return((r.zoom-1)*n+1)/(r.trans[yB].scaleX||1)}var dV=xB;function pV(t,e,n,r,i,a,o,s){var l=QB(t);function u(n){var r=t.mainType,i=nb(Object(b["defaults"])({type:vV(r,t.subType,Ru)},n));s&&(i.componentType=r),i[r+"Id"]=t.id,e.dispatchAction(i)}l?(n.enable(Object(b["retrieve2"])(t.get("roam"),o),{api:e,zInfo:{component:t},triggerInfo:{roamTrigger:t.get("roamTrigger"),isInSelf:r,isInClip:function(t,e,n){return!i||i.contain(e,n)}}}),n.off("pan").off("zoom").on("pan",(function(t){a&&a("pan"),u({dx:t.dx,dy:t.dy})})).on("zoom",(function(t){a&&a("zoom"),u({zoom:t.scale,originX:t.originX,originY:t.originY})}))):n.disable()}function fV(t){return function(e,n,r){return gV.copy(t.getBoundingRect()),gV.applyTransform(t.getComputedTransform()),gV.contain(n,r)}}var gV=new ue(0,0,0,0);function yV(t,e,n){var r=vV(e,n,Ru);t.registerAction({type:r,event:r,update:"none"},(function(t,r,i){r.eachComponent(io(t,e,n),(function(e){JB(t,e),tV(t,e,r,i)}))}))}function vV(t,e,n){return(t!==Ou?t:"map"===e?"geo":e)+n}function mV(t){return null!=t.zoom}function xV(t,e,n,r,i,a,o){var s=new dV(null,oV(t.ecModel,e));return kB(s,n,r,i,a),o?LB(s,o.x,o.y,o.width,o.height):LB(s,n,r,i,a),DB(s,t),s}var bV=["rect","circle","line","ellipse","polygon","polyline","path"],_V=b["createHashMap"](bV),wV=b["createHashMap"](bV.concat(["g"])),SV=b["createHashMap"](bV.concat(["g"])),MV=Ka();function OV(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function IV(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var TV=function(){function t(t){var e=this.group=new vi,n=this._transformGroup=new vi;e.add(n),this.uid=Hh("ec_map_draw"),this._controller=new _z(t.getZr()),n.add(this._regionsGroup=new vi),n.add(this._svgGroup=new vi)}return t.prototype.draw=function(t,e,n,r,i){var a=this,o=t.getData&&t.getData();jV(t)&&e.eachComponent({mainType:"series",subType:"map"},(function(e){o||e.getHostGeoModel()!==t||(o=e.getData())}));var s,l=t.coordinateSystem,u=l.view,c=this._regionsGroup,h=this._transformGroup,d=!c.childAt(0)||i;l.shouldClip()?(s=MB(null,u),this.group.setClipPath(new nu({shape:s.clone()}))):this.group.removeClipPath(),ZB(h,gB,u,d?null:t);var p=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0;"geoJSON"===l.resourceType?this._buildGeoJSON(u,n,l,t,o,p):"geoSVG"===l.resourceType&&this._buildSVG(u,n,l,t,o,p),pV(t,n,this._controller,(function(e,n,r){return t.coordinateSystem.containPoint([n,r])}),s,(function(){a._mouseDownFlag=!1}),!1,!0),this._updateMapSelectHandler(t,c,n,r)},t.prototype.__updateOnOwnRoam=function(t){ZB(this._transformGroup,gB,t.coordinateSystem.view,null)},t.prototype._buildGeoJSON=function(t,e,n,r,i,a){var o=this._regionsGroupByName=b["createHashMap"](),s=b["createHashMap"](),l=this._regionsGroup,u=n.projection,c=u&&u.stream,h=Ar(OB(null,t,fB));function d(t,e){return e&&(t=e(t)),t&&G([],t,h)}function p(t){for(var e=[],n=!c&&u&&u.project,r=0;r<t.length;++r){var i=d(t[r],n);i&&e.push(i)}return e}function f(t){return{shape:{points:p(t)}}}l.removeAll(),b["each"](n.regions,(function(t){var n=t.name,h=o.get(n),p=s.get(n)||{},g=p.dataIdx,y=p.regionModel;if(!h){h=o.set(n,new vi),l.add(h),g=i?i.indexOfName(n):null,y=jV(r)?r.getRegionModel(n):i?i.getItemModel(g):null;var v=y.get("silent",!0);null!=v&&(h.silent=v),s.set(n,{dataIdx:g,regionModel:y})}var m=[],x=[];b["each"](t.geometries,(function(t){if("polygon"===t.type){var e=[t.exterior].concat(t.interiors||[]);c&&(e=PV(e,c)),b["each"](e,(function(t){m.push(new _m(f(t)))}))}else{var n=t.points;c&&(n=PV(n,c,!0)),b["each"](n,(function(t){x.push(new Mm(f(t)))}))}}));var _=d(t.getCenter(),u&&u.project);function w(t,o){if(t.length){var s=new zm({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}});h.add(s),CV(e,i,a,s,g,y),AV(r,i,s,n,y,g,_),o&&(IV(s),b["each"](s.states,IV))}}w(m),w(x,!0)})),o.each((function(t,e){var n=s.get(e),a=n.dataIdx,o=n.regionModel;DV(r,i,t,e,o,a),kV(r,i,t,e,o),LV(r,t,e,o)}),this)},t.prototype._buildSVG=function(t,e,n,r,i,a){var o=n.map;OB(this._svgGroup,t,fB),this._svgResourceChanged(o)&&(this._freeSVG(),this._useSVG(o));var s=this._svgDispatcherMap=b["createHashMap"](),l=!1;b["each"](this._svgGraphicRecord.named,(function(t){var n=t.name,o=t.svgNodeTagLower,u=t.el,c=i?i.indexOfName(n):null,h=r.getRegionModel(n);null!=_V.get(o)&&u instanceof Ls&&CV(e,i,a,u,c,h),u instanceof Ls&&(u.culling=!0);var d=h.get("silent",!0);if(null!=d&&(u.silent=d),u.z2EmphasisLift=0,!t.namedFrom&&(null!=SV.get(o)&&AV(r,i,u,n,h,c,null),DV(r,i,u,n,h,c),kV(r,i,u,n,h),null!=wV.get(o))){var p=LV(r,u,n,h);"self"===p&&(l=!0);var f=s.get(n)||s.set(n,[]);f.push(u)}}),this),this._enableBlurEntireSVG(l,r)},t.prototype._enableBlurEntireSVG=function(t,e){if(t&&jV(e)){var n=e.getModel(["blur","itemStyle"]).getItemStyle(),r=n.opacity;this._svgGraphicRecord.root.traverse((function(t){if(!t.isGroup){xc(t);var e=t.ensureState("blur").style||{};null==e.opacity&&null!=r&&(e.opacity=r),t.ensureState("emphasis")}}))}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},t.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];var n=e.coordinateSystem;if("geoJSON"===n.resourceType){var r=this._regionsGroupByName;if(r){var i=r.get(t);return i?[i]:[]}}else if("geoSVG"===n.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},t.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},t.prototype._useSVG=function(t){var e=pB.getGeoResource(t);if(e&&"geoSVG"===e.type){var n=e.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},t.prototype._freeSVG=function(){var t=this._svgMapName;if(null!=t){var e=pB.getGeoResource(t);e&&"geoSVG"===e.type&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype.resetForLabelLayout=function(){this.group.traverse((function(t){var e=t.getTextContent();e&&(e.ignore=MV(e).ignore)}))},t.prototype._updateMapSelectHandler=function(t,e,n,r){var i=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",(function(){i._mouseDownFlag=!0})),e.on("click",(function(t){i._mouseDownFlag&&(i._mouseDownFlag=!1)})))},t}();function CV(t,e,n,r,i,a){var o=a.getModel("itemStyle"),s=a.getModel(["emphasis","itemStyle"]),l=a.getModel(["blur","itemStyle"]),u=a.getModel(["select","itemStyle"]),c=OV(o),h=OV(s),d=OV(u),p=OV(l);if(e){var f=e.getItemVisual(i,"style"),g=e.getItemVisual(i,"decal");n&&f.fill&&(c.fill=f.fill),g&&(c.decal=Tw(g,t))}r.setStyle(c),r.style.strokeNoScale=!0,r.ensureState("emphasis").style=h,r.ensureState("select").style=d,r.ensureState("blur").style=p,xc(r)}function AV(t,e,n,r,i,a,o){var s=e&&isNaN(e.get(e.mapDimension("value"),a)),l=e&&e.getItemLayout(a);if(jV(t)||s||l&&l.showLabel){var u=jV(t)?r:a,c=void 0;(!e||a>=0)&&(c=t);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;ph(n,fh(i),{labelFetcher:c,labelDataIndex:u,defaultText:r},h);var d=n.getTextContent();if(d&&(MV(d).ignore=d.ignore,n.textConfig&&o)){var p=n.getBoundingRect().clone();n.textConfig.layoutRect=p,n.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}n.disableLabelAnimation=!0}else n.removeTextContent(),n.removeTextConfig(),n.disableLabelAnimation=null}function DV(t,e,n,r,i,a){e?e.setItemGraphicEl(a,n):wu(n).eventData={componentType:"geo",componentIndex:t.componentIndex,geoIndex:t.componentIndex,name:r,region:i&&i.option||{}}}function kV(t,e,n,r,i){e||Yx({el:n,componentModel:t,itemName:r,itemTooltipOption:i.get("tooltip")})}function LV(t,e,n,r){e.highDownSilentOnTouch=!!t.get("selectedMode");var i=r.getModel("emphasis"),a=i.get("focus");return Fc(e,a,i.get("blurScope"),i.get("disabled")),jV(t)&&Zc(e,t,n),a}function PV(t,e,n){var r,i=[];function a(){r=[]}function o(){r.length&&(i.push(r),r=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(t,e){isFinite(t)&&isFinite(e)&&r.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),b["each"](t,(function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()})),!n&&s.polygonEnd(),i}function jV(t){return"geo"===t.mainType}var RV=TV,NV="map",EV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,r=n.getRegion(e);return r&&n.dataToPoint(r.getCenter())}},n}return f(e,t),e.prototype.getInitialData=function(t){for(var e=AR(this,{coordDimensions:["value"],encodeDefaulter:b["curry"](rf,this)}),n=b["createHashMap"](),r=[],i=0,a=e.count();i<a;i++){var o=e.getName(i);n.set(o,i)}var s=pB.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return b["each"](s.regions,(function(t){var i,a=t.name,o=n.get(a),s=t.properties&&t.properties.echartsStyle;null==o?(i={name:a},r.push(i)):i=e.getRawDataItem(o),s&&b["merge"](i,s)})),e.appendData(r),e},e.prototype.getHostGeoModel=function(){if(vp(this).kind!==yp)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),a=r.getName(t),o=[];return b["each"](this.seriesGroup.f,(function(t){var e=t.originalData.indexOfName(a),n=r.mapDimension("value");isNaN(t.originalData.get(n,e))||o.push(t.name)})),Fy("section",{header:o.join(", "),noHeader:!o.length,blocks:[Fy("nameValue",{name:a,value:i})]})},e.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=z_(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=Xp.color.neutral00,n.style.lineWidth=2),n},e.prototype.__ownRoamView=function(){return BV(this)?this.coordinateSystem.view:null},e.type="series."+NV,e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:Xp.color.tertiary},itemStyle:{borderWidth:.5,borderColor:Xp.color.border,areaColor:Xp.color.background},emphasis:{label:{show:!0,color:Xp.color.primary},itemStyle:{areaColor:Xp.color.highlight}},select:{label:{show:!0,color:Xp.color.primary},itemStyle:{color:Xp.color.highlight}},nameProperty:"name"},e}(vv);function zV(t){return 0===t.indexOf("i")}function BV(t){return VV(t.seriesGroup)===t&&!t.getHostGeoModel()}function VV(t){return t.f[0]}function FV(t,e){var n={};return t.eachRawSeriesByType(NV,(function(r){var i=r.getHostGeoModel(),a=i?"o"+i.id:"i"+r.getMapType(),o=n[a]=n[a]||{f:[],r:[]};t.isSeriesFiltered(r)||e||o.f.push(r),o.r.push(r)})),n}var HV=EV,GV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=NV,e}return f(e,t),e.prototype.render=function(t,e,n,r){if(!r||"mapToggleSelect"!==r.type||r.from!==this.uid){var i=this.group;if(i.removeAll(),!t.getHostGeoModel()){var a=this._mapDraw;a&&r&&"geoRoam"===r.type&&a.resetForLabelLayout(),r&&"geoRoam"===r.type&&"series"===r.componentType&&r.seriesId===t.id?a&&i.add(a.group):BV(t)?(a=a||(this._mapDraw=new RV(n)),i.add(a.group),a.draw(t,e,n,this,r)):this._clearMapDraw(),t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t)}}},e.prototype.__updateOnOwnRoam=function(t,e,n){var r=this._mapDraw;BV(e)&&r&&r.__updateOnOwnRoam(e)},e.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},e.prototype.dispose=function(){this._clearMapDraw()},e.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t){var e=t.originalData,n=this.group;e.each(e.mapDimension("value"),(function(r,i){if(!isNaN(r)){var a=e.getItemLayout(i);if(a&&a.point){var o=a.point,s=a.offset,l=new Uv({style:{fill:t.getData().getVisual("style").fill},shape:{cx:o[0]+9*s,cy:o[1],r:3},silent:!0,z2:8+(s?0:qu+1)});if(!s){var u=VV(t.seriesGroup).getData(),c=e.getName(i),h=u.indexOfName(c),d=e.getItemModel(i),p=d.getModel("label"),f=u.getItemGraphicEl(h);ph(l,fh(d),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(h,n)}},defaultText:c}),l.disableLabelAnimation=!0,p.get("position")||l.setTextConfig({position:"bottom"}),f.onHoverStateChange=function(t){pc(l,t)}}n.add(l)}}}))},e.type=NV,e}(fb),WV=GV,YV={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},UV=["lng","lat"],XV=function(t){function e(e,n,r){var i=t.call(this)||this;i.dimensions=UV,i.type="geo",i._nameCoordMap=b["createHashMap"](),i.name=e;var a=r.projection,o=pB.load(n,r.nameMap,r.nameProperty),s=pB.getGeoResource(n),l=(i.resourceType=s?s.type:null,i.regions=o.regions),u=YV[s.type];i._clip=r.clip;var c,h=!a&&u.invertLongitute;if(i.view=new dV(h,oV(r.ecModel,r.api),i),i.map=n,i._regionsMap=o.regionsMap,i.regions=o.regions,i.projection=a,a)for(var d=0;d<l.length;d++){var p=l[d].getBoundingRect(a);c=c||p.clone(),c.union(p)}else c=o.boundingRect;return kB(i.view,c.x,c.y,c.width,c.height),i.aspectScale=a?1:b["retrieve2"](r.aspectScale,u.aspectScale),i}return f(e,t),e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var r=e[n];if("geoJSON"===r.type&&r.contain(t))return e[n]}},e.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},e.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},e.prototype.dataToPoint=function(t,e,n){if(b["isString"](t)&&(t=this.getGeoCoord(t)),t){var r=this.projection;return r&&(t=r.project(t)),t&&this.view.dataToPoint(t,e,n)}},e.prototype.pointToData=function(t,e,n){var r=this.projection;return r&&(t=r.unproject(t)),t&&this.view.pointToData(t,n)},e.prototype.convertToPixel=function(t,e,n){var r=ZV(e);return r===this?r.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,e,n){var r=ZV(e);return r===this?r.pointToData(n):null},e.prototype.containPoint=function(t){return this.view.containPoint(t)},e.prototype.getArea=function(t){t=t||0;var e=MB(null,this.view);return e.x-=t,e.y-=t,e.width+=2*t,e.height+=2*t,e},e.prototype.shouldClip=function(){return this._clip},e.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},e.prototype.getViewRect=function(){return this.view.getViewRect()},e.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},e}(jr);function ZV(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",eo).models[0]||{}).coordinateSystem:null}var qV=XV;function $V(t,e){var n=this.view,r=t.get("boundingCoords");if(null!=r){var i=r[0],a=r[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])){var o=this.projection;if(o){var s=i[0],l=i[1],u=a[0],c=a[1];i=[1/0,1/0],a=[-1/0,-1/0];var h=function(t,e,n,r){for(var s=n-t,l=r-e,u=0;u<=100;u++){var c=u/100,h=o.project([t+s*c,e+l*c]);W(i,i,h),Y(a,a,h)}};h(s,l,u,l),h(u,l,u,c),h(u,c,s,c),h(s,c,u,l)}kB(n,i[0],i[1],a[0]-i[0],a[1]-i[1])}else 0}var d,p,f,g=n.getBoundingRect(),y=t.get("layoutCenter"),v=t.get("layoutSize"),m=Lp(t,e).refContainer,x=g.width/g.height*this.aspectScale,b=!1;if(y&&v&&(d=[Zi(y[0],m.width)+m.x,Zi(y[1],m.height)+m.y],p=Zi(v,Math.min(m.width,m.height)),isNaN(d[0])||isNaN(d[1])||isNaN(p)||(b=!0)),b)f={},x>1?(f.width=p,f.height=p/x):(f.height=p,f.width=p*x),f.y=d[1]-f.height/2,f.x=d[0]-f.width/2;else{var _=t.getBoxLayoutParams();_.aspect=x,f=Ap(_,m),f=Dp(t,f,x)}LB(n,f.x,f.y,f.width,f.height),DB(n,t)}function KV(t,e){b["each"](e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}var JV=function(){function t(){this.dimensions=UV}return t.prototype.create=function(t,e){var n=[];function r(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection"),clip:t.getShallow("clip",!0)}}return t.eachComponent("geo",(function(i,a){var o=i.get("map"),s=new qV(o+a,o,b["extend"]({nameMap:i.get("nameMap"),api:e,ecModel:t},r(i)));n.push(s),i.coordinateSystem=s,s.model=i,s.resize=$V,s.resize(i,e)})),t.eachSeries((function(t){mp({targetModel:t,coordSysType:"geo",coordSysProvider:function(){var e=t.subType===NV?t.getHostGeoModel():t.getReferringComponents("geo",eo).models[0];return e&&e.coordinateSystem},allowNotFound:!0})})),b["each"](FV(t,!0),(function(i,a){if(zV(a)){var o=i.r[0],s=[];b["each"](i.r,(function(t){s.push(t.get("nameMap")),t.seriesGroup=null}));var l,u=a.slice(1),c=new qV(u,u,b["extend"]({nameMap:b["mergeAll"](s),api:e,ecModel:t},r(o)));b["each"](i.r,(function(t){l=b["retrieve2"](l,t.get("scaleLimit"))})),n.push(c),c.resize=$V,c.resize(o,e),b["each"](i.r,(function(t){t.coordinateSystem=c,KV(c,t)}))}})),n},t.prototype.getFilledRegions=function(t,e,n,r){for(var i=(t||[]).slice(),a=b["createHashMap"](),o=0;o<i.length;o++)a.set(i[o].name,i[o]);var s=pB.load(e,n,r);return b["each"](s.regions,(function(t){var e=t.name,n=a.get(e),r=t.properties&&t.properties.echartsStyle;n||(n={name:e},i.push(n)),r&&b["merge"](n,r)})),i},t}(),QV=new JV,tF=QV,eF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n);var r=pB.getGeoResource(t.map);if(r&&"geoJSON"===r.type){var i=t.itemStyle=t.itemStyle||{};"color"in i||(i.color=t.defaultItemStyleColor||Xp.color.backgroundTint)}Da(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,e=this.option;e.regions=tF.getFilledRegions(e.regions,e.map,e.nameMap,e.nameProperty);var n={};this._optionModelMap=b["reduce"](e.regions||[],(function(e,r){var i=r.name;return i&&(e.set(i,new Vh(r,t,t.ecModel)),r.selected&&(n[i]=!0)),e}),b["createHashMap"]()),e.selectedMap||(e.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Vh(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),r="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:t};return b["isFunction"](r)?(i.status=e,r(i)):b["isString"](r)?r.replace("{a}",null!=t?t:""):void 0},e.prototype.select=function(t){var e=this.option,n=e.selectedMode;if(n){"multiple"!==n&&(e.selectedMap=null);var r=e.selectedMap||(e.selectedMap={});r[t]=!0}},e.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},e.prototype.__ownRoamView=function(){return this.coordinateSystem.view},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:Xp.color.tertiary},itemStyle:{borderWidth:.5,borderColor:Xp.color.border},emphasis:{label:{show:!0,color:Xp.color.primary},itemStyle:{color:Xp.color.highlight}},select:{label:{show:!0,color:Xp.color.primary},itemStyle:{color:Xp.color.highlight}},regions:[]},e}(Hp),nF=eF,rF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return f(e,t),e.prototype.init=function(t,e){this._api=e},e.prototype.render=function(t,e,n,r){if(this._model=t,!t.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new RV(n));var i=this._mapDraw;i.draw(t,e,n,this,r),i.group.on("click",this._handleRegionClick,this),i.group.silent=t.get("silent"),this.group.add(i.group),this.updateSelectStatus(t,e,n)},e.prototype.__updateOnOwnRoam=function(t,e,n){var r=this._mapDraw;r&&r.__updateOnOwnRoam(e)},e.prototype._handleRegionClick=function(t){var e;h_(t.target,(function(t){return null!=(e=wu(t).eventData)}),!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},e.prototype.updateSelectStatus=function(t,e,n){var r=this;this._mapDraw.group.traverse((function(t){var e=wu(t).eventData;if(e)return r._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0}))},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(xv),iF=rF;function aF(t,e,n){pB.registerMap(t,e,n)}function oF(t){function e(e,n){n.update="geo:updateSelectStatus",t.registerAction(n,(function(t,n){var r={},i=[];return n.eachComponent({mainType:"geo",query:t},(function(n){n[e](t.name);var a=n.coordinateSystem;Object(b["each"])(a.regions,(function(t){r[t.name]=n.isSelected(t.name)||!1}));var o=[];Object(b["each"])(r,(function(t,e){r[e]&&o.push(e)})),i.push({geoIndex:n.componentIndex,name:o})})),{selected:r,allSelected:i,name:t.name}}))}t.registerCoordinateSystem("geo",tF),t.registerComponentModel(nF),t.registerComponentView(iF),t.registerImpl("registerMap",aF),t.registerImpl("getMap",(function(t){return pB.getMapForUser(t)})),e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},(function(t,e,n){var r=t.componentType||(null!=t.geoId||null!=t.geoName||null!=t.geoIndex?"geo":Ou),i=r===Ou;if("geo"===r||i){var a=i?"map":null;e.eachComponent(io(t,r,a),(function(r){i&&!BV(r)||(JB(t,r,i?r.seriesGroup.r:null),tV(t,r,e,n))}))}}))}var sF=Ao(NV,lF);function lF(t){Object(b["each"])(FV(t),(function(e,n){if(VV(e)&&zV(n)){var r={};Object(b["each"])(e.f,(function(e){var n=e.coordinateSystem,i=e.originalData;e.get("showLegendSymbol")&&t.getComponent("legend")&&i.each(i.mapDimension("value"),(function(t,e){var a=i.getName(e),o=n.getRegion(a);if(o&&!isNaN(t)){var s=r[a]||0,l=n.dataToPoint(o.getCenter());r[a]=s+1,i.setItemLayout(e,{point:l,offset:s})}}))}));var i=VV(e).getData();i.each((function(t){var e=i.getName(t),n=i.getItemLayout(t)||{};n.showLabel=!r[e],i.setItemLayout(t,n)}))}}))}function uF(t,e){var n={};return b["each"](t,(function(t){t.each(t.mapDimension("value"),(function(e,r){var i="ec-"+t.getName(r);n[i]=n[i]||[],isNaN(e)||n[i].push(e)}))})),t[0].map(t[0].mapDimension("value"),(function(r,i){for(var a,o="ec-"+t[0].getName(i),s=0,l=1/0,u=-1/0,c=n[o].length,h=0;h<c;h++)l=Math.min(l,n[o][h]),u=Math.max(u,n[o][h]),s+=n[o][h];return a="min"===e?l:"max"===e?u:"average"===e?s/c:s,0===c?NaN:a}))}var cF=Ao(NV,hF);function hF(t){b["each"](FV(t),(function(t){var e=VV(t);if(e){var n=uF(b["map"](t.f,(function(t){return t.getData()})),e.get("mapValueCalculation"));b["each"](t.f,(function(e){e.seriesGroup=t,e.originalData=e.getData(),e.setData(n.cloneShallow())}))}}))}function dF(t){TM(oF),t.registerChartView(WV),t.registerSeriesModel(HV),t.registerLayout(sF),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,cF),l_("map",t.registerAction)}function pF(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};var n,r,i=[e];while(n=i.pop())if(r=n.children,n.isExpand&&r.length)for(var a=r.length,o=a-1;o>=0;o--){var s=r[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(s)}}function fF(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,i=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){mF(t);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-a):t.hierNode.prelim=a}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=xF(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function gF(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function yF(t){return arguments.length?t:MF}function vF(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function mF(t){var e=t.children,n=e.length,r=0,i=0;while(--n>=0){var a=e[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function xF(t,e,n,r){if(e){var i=t,a=t,o=a.parentNode.children[0],s=e,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,h=s.hierNode.modifier;while(s=bF(s),a=_F(a),s&&a){i=bF(i),o=_F(o),i.hierNode.ancestor=t;var d=s.hierNode.prelim+h-a.hierNode.prelim-u+r(s,a);d>0&&(SF(wF(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!bF(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=h-l),a&&!_F(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,n=t)}return n}function bF(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function _F(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function wF(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function SF(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function MF(t,e){return t.parentNode===e.parentNode?1:2}var OF=Ka();function IF(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,PF(e,n,t),Object(b["each"])(n,(function(n){Object(b["each"])(e.TRANSFERABLE_METHODS,(function(e){n.wrapMethod(e,Object(b["curry"])(TF,t))}))})),e.wrapMethod("cloneShallow",Object(b["curry"])(AF,t)),Object(b["each"])(e.CHANGABLE_METHODS,(function(n){e.wrapMethod(n,Object(b["curry"])(CF,t))})),Object(b["assert"])(n[e.dataType]===e)}function TF(t,e){if(LF(this)){var n=Object(b["extend"])({},OF(this).datas);n[this.dataType]=e,PF(e,n,t)}else jF(e,this.dataType,OF(this).mainData,t);return e}function CF(t,e){return t.struct&&t.struct.update(),e}function AF(t,e){return Object(b["each"])(OF(e).datas,(function(n,r){n!==e&&jF(n.cloneShallow(),r,e,t)})),e}function DF(t){var e=OF(this).mainData;return null==t||null==e?e:OF(e).datas[t]}function kF(){var t=OF(this).mainData;return null==t?[{data:t}]:Object(b["map"])(Object(b["keys"])(OF(t).datas),(function(e){return{type:e,data:OF(t).datas[e]}}))}function LF(t){return OF(t).mainData===t}function PF(t,e,n){OF(t).datas={},Object(b["each"])(e,(function(e,r){jF(e,r,t,n)}))}function jF(t,e,n,r){OF(n).datas[e]=t,OF(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=DF,t.getLinkedDataAll=kF}var RF=IF,NF=function(){function t(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(t,e,n){b["isFunction"](t)&&(n=e,e=t,t=null),t=t||{},b["isString"](t)&&(t={order:t});var r,i=t.order||"preorder",a=this[t.attr||"children"];"preorder"===i&&(r=e.call(n,this));for(var o=0;!r&&o<a.length;o++)a[o].eachNode(t,e,n);"postorder"===i&&e.call(n,this)},t.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var r=this.children[n];r.updateDepthAndHeight(t+1),r.height>e&&(e=r.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].getNodeById(t);if(i)return i}},t.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,r=n.length;e<r;e++){var i=n[e].contains(t);if(i)return i}},t.prototype.getAncestors=function(t){var e=[],n=t?this:this.parentNode;while(n)e.push(n),n=n.parentNode;return e.reverse(),e},t.prototype.getAncestorsIndices=function(){var t=[],e=this;while(e)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},t.prototype.getDescendantIndices=function(){var t=[];return this.eachNode((function(e){t.push(e.dataIndex)})),t},t.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},t.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},t.prototype.isAncestorOf=function(t){var e=t.parentNode;while(e){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),EF=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,r=e.length;n<r;n++)e[n].dataIndex=-1;for(n=0,r=t.count();n<r;n++)e[t.getRawIndex(n)].dataIndex=n},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,r){var i=new t(n),a=[],o=1;function s(t,e){var n=t.value;o=Math.max(o,b["isArray"](n)?n.length:1),a.push(t);var r=new NF(Ga(t.name,""),i);e?zF(r,e):i.root=r,i._nodes.push(r);var l=t.children;if(l)for(var u=0;u<l.length;u++)s(l[u],r)}s(e),i.root.updateDepthAndHeight(0);var l=uO(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new sO(l,n);return u.initData(a),r&&r(u),RF({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},t}();function zF(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var BF=EF;function VF(t,e,n){if(t&&b["indexOf"](e,t.type)>=0){var r=n.getData().tree.root,i=t.targetNode;if(b["isString"](i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=t.targetNodeId;if(null!=a&&(i=r.getNodeById(a)))return{node:i}}}function FF(t){var e=[];while(t)t=t.parentNode,t&&e.push(t);return e.reverse()}function HF(t,e){var n=FF(t);return b["indexOf"](n,e)>=0}function GF(t,e){var n=[];while(t){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var WF="tree",YF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return f(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},r=new Vh(n,this,this.ecModel),i=BF.createTree(e,this,a);function a(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=r),t}))}var o=0;i.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var s=t.expandAndCollapse,l=s&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return i.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=l})),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.formatTooltip=function(t,e,n){var r=this.getData().tree,i=r.root.children[0],a=r.getNodeByDataIndex(t),o=a.getValue(),s=a.name;while(a&&a!==i)s=a.parentNode.name+"."+s,a=a.parentNode;return Fy("nameValue",{name:s,value:o,noValue:isNaN(o)||null==o})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=GF(r,this),n.collapsed=!r.isExpand,n},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+WF,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:Xp.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(vv),UF=YF,XF=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),ZF=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultStyle=function(){return{stroke:Xp.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new XF},e.prototype.buildPath=function(t,e){var n=e.childPoints,r=n.length,i=e.parentPoint,a=n[0],o=n[r-1];if(1===r)return t.moveTo(i[0],i[1]),void t.lineTo(a[0],a[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Zi(e.forkPosition,1),h=[];h[l]=i[l],h[u]=i[u]+(o[u]-i[u])*c,t.moveTo(i[0],i[1]),t.lineTo(h[0],h[1]),t.moveTo(a[0],a[1]),h[l]=a[l],t.lineTo(h[0],h[1]),h[l]=o[l],t.lineTo(h[0],h[1]),t.lineTo(o[0],o[1]);for(var d=1;d<r-1;d++){var p=n[d];t.moveTo(p[0],p[1]),h[l]=p[l],t.lineTo(h[0],h[1])}},e}(Bl),qF=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=WF,e._mainGroup=new vi,e}return f(e,t),e.prototype.init=function(t,e){this._controller=new _z(e.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,e,n){var r=t.getData(),i=t.layoutInfo,a=this._mainGroup,o=t.get("layout");"radial"===o?(a.x=i.x+i.width/2,a.y=i.y+i.height/2):(a.x=i.x,a.y=i.y),this._updateViewCoordSys(t,n),pV(t,n,this._controller,fV(this.group),null);var s=this._data;r.diff(s).add((function(e){$F(r,e)&&KF(r,e,null,a,t)})).update((function(e,n){var i=s.getItemGraphicEl(n);$F(r,e)?KF(r,e,i,a,t):i&&eH(s,n,i,a,t)})).remove((function(e){var n=s.getItemGraphicEl(e);n&&eH(s,e,n,a,t)})).execute(),this._updateNodeAndLinkScale(t),!0===t.get("expandAndCollapse")&&r.eachItemGraphicEl((function(e,r){e.off("click").on("click",(function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:r})}))})),this._data=r,this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,e,n){ZB(this.group,yB,e.coordinateSystem,null),mV(t)&&this._updateNodeAndLinkScale(e)},e.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),r=[];n.each((function(t){var e=n.getItemLayout(t);!e||isNaN(e.x)||isNaN(e.y)||r.push([+e.x,+e.y])}));var i=[],a=[];Fs(r,i,a);var o=this._min,s=this._max;a[0]-i[0]===0&&(i[0]=o?o[0]:i[0]-1,a[0]=s?s[0]:a[0]+1),a[1]-i[1]===0&&(i[1]=o?o[1]:i[1]-1,a[1]=s?s[1]:a[1]+1);var l=t.coordinateSystem=xV(t,e,i[0],i[1],a[0]-i[0],a[1]-i[1]);ZB(this.group,yB,l,this._firstRender?null:t),this._min=i,this._max=a},e.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=hV(t.coordinateSystem,t);e.eachItemGraphicEl((function(t,e){t.setSymbolScale(n)}))},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type=WF,e}(fb);function $F(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function KF(t,e,n,r,i){var a=!n,o=t.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=!1===o.isExpand&&0!==o.children.length?l:Xp.color.neutral00,c=t.tree.root,h=o.parentNode===c?o:o.parentNode||o,d=t.getItemGraphicEl(h.dataIndex),p=h.getLayout(),f=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=o.getLayout();a?(n=new fL(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=f.x,n.y=f.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,nh(n,{x:g.x,y:g.y},i);var y=n.getSymbolPath();if("radial"===i.get("layout")){var v=c.children[0],m=v.getLayout(),x=v.children.length,_=void 0,w=void 0;if(g.x===m.x&&!0===o.isExpand&&v.children.length){var S={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};_=Math.atan2(S.y-m.y,S.x-m.x),_<0&&(_=2*Math.PI+_),w=S.x<m.x,w&&(_-=Math.PI)}else _=Math.atan2(g.y-m.y,g.x-m.x),_<0&&(_=2*Math.PI+_),0===o.children.length||0!==o.children.length&&!1===o.isExpand?(w=g.x<m.x,w&&(_-=Math.PI)):(w=g.x>m.x,w||(_-=Math.PI));var M=w?"left":"right",O=s.getModel("label"),I=O.get("rotate"),T=I*(Math.PI/180),C=y.getTextContent();C&&(y.setTextConfig({position:O.get("position")||M,rotation:null==I?-_:T,origin:"center"}),C.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),D="relative"===A?b["concatArray"](o.getAncestorsIndices(),o.getDescendantIndices()):"ancestor"===A?o.getAncestorsIndices():"descendant"===A?o.getDescendantIndices():null;D&&(wu(n).focus=D),JF(i,o,c,n,f,p,g,r),n.__edge&&(n.onHoverStateChange=function(e){if("blur"!==e){var r=o.parentNode&&t.getItemGraphicEl(o.parentNode.dataIndex);r&&r.hoverState===Yu||pc(n.__edge,e)}})}function JF(t,e,n,r,i,a,o,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=r.__edge=new Pm({shape:nH(c,h,d,i,i)})),nh(g,{shape:nH(c,h,d,a,o)},t));else if("polyline"===u)if("orthogonal"===c){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,v=[],m=0;m<y.length;m++){var x=y[m].getLayout();v.push([x.x,x.y])}g||(g=r.__edge=new ZF({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:h,forkPosition:p}})),nh(g,{shape:{parentPoint:[o.x,o.y],childPoints:v}},t)}}else 0;g&&("polyline"!==u||e.isExpand)&&(g.useStyle(b["defaults"]({strokeNoScale:!0,fill:null},f)),Yc(g,l,"lineStyle"),xc(g),s.add(g))}function QF(t,e,n,r,i){var a=e.tree.root,o=tH(a,t),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),h=c.__edge,d=u.__edge||(!1===s.isExpand||1===s.children.length?h:void 0),p=r.get("edgeShape"),f=r.get("layout"),g=r.get("orient"),y=r.get(["lineStyle","curveness"]);d&&("curve"===p?ah(d,{shape:nH(f,g,y,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}):"polyline"===p&&"orthogonal"===r.get("layout")&&ah(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}))}}function tH(t,e){var n,r=e.parentNode===t?e:e.parentNode||e;while(n=r.getLayout(),null==n)r=r.parentNode===t?r:r.parentNode||r;return{source:r,sourceLayout:n}}function eH(t,e,n,r,i){var a=t.tree.getNodeByDataIndex(e),o=t.tree.root,s=tH(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};ah(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),t.setItemGraphicEl(e,null)},removeOpt:l}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),b["each"](a.children,(function(e){QF(e,t,r,i,l)})),QF(a,t,r,i,l)}function nH(t,e,n,r,i){var a,o,s,l,u,c,h,d;if("radial"===t){u=r.rawX,h=r.rawY,c=i.rawX,d=i.rawY;var p=vF(u,h),f=vF(u,h+(d-h)*n),g=vF(c,d+(h-d)*n),y=vF(c,d);return{x1:p.x||0,y1:p.y||0,x2:y.x||0,y2:y.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=r.x,h=r.y,c=i.x,d=i.y,"LR"!==e&&"RL"!==e||(a=u+(c-u)*n,o=h,s=c+(u-c)*n,l=d),"TB"!==e&&"BT"!==e||(a=u,o=h+(d-h)*n,s=c,l=d+(h-d)*n),{x1:u,y1:h,x2:c,y2:d,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var rH=qF;function iH(t,e,n){var r,i=[t],a=[];while(r=i.pop())if(a.push(r),r.isExpand){var o=r.children;if(o.length)for(var s=0;s<o.length;s++)i.push(o[s])}while(r=a.pop())e(r,n)}function aH(t,e){var n,r=[t];while(n=r.pop())if(e(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)r.push(i[a])}}function oH(t,e){t.eachSeriesByType("tree",(function(t){sH(t,e)}))}function sH(t,e){var n=Lp(t,e).refContainer,r=Ap(t.getBoxLayoutParams(),n);t.layoutInfo=r;var i=t.get("layout"),a=0,o=0,s=null;"radial"===i?(a=2*Math.PI,o=Math.min(r.height,r.width)/2,s=yF((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(a=r.width,o=r.height,s=yF());var l=t.getData().tree.root,u=l.children[0];if(u){pF(l),iH(u,fF,s),l.hierNode.modifier=-u.hierNode.prelim,aH(u,gF);var c=u,h=u,d=u;aH(u,(function(t){var e=t.getLayout().x;e<c.getLayout().x&&(c=t),e>h.getLayout().x&&(h=t),t.depth>d.depth&&(d=t)}));var p=c===h?1:s(c,h)/2,f=p-c.getLayout().x,g=0,y=0,v=0,m=0;if("radial"===i)g=a/(h.getLayout().x+p+f),y=o/(d.depth-1||1),aH(u,(function(t){v=(t.getLayout().x+f)*g,m=(t.depth-1)*y;var e=vF(v,m);t.setLayout({x:e.x,y:e.y,rawX:v,rawY:m},!0)}));else{var x=t.getOrient();"RL"===x||"LR"===x?(y=o/(h.getLayout().x+p+f),g=a/(d.depth-1||1),aH(u,(function(t){m=(t.getLayout().x+f)*y,v="LR"===x?(t.depth-1)*g:a-(t.depth-1)*g,t.setLayout({x:v,y:m},!0)}))):"TB"!==x&&"BT"!==x||(g=a/(h.getLayout().x+p+f),y=o/(d.depth-1||1),aH(u,(function(t){v=(t.getLayout().x+f)*g,m="TB"===x?(t.depth-1)*y:o-(t.depth-1)*y,t.setLayout({x:v,y:m},!0)})))}}}function lH(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(t,e){e.eachComponent({mainType:Ou,subType:WF,query:t},(function(e){var n=t.dataIndex,r=e.getData().tree,i=r.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),yV(t,Ou,WF)}var uH=Ao(WF,cH);function cH(t){t.eachSeriesByType(WF,(function(t){var e=t.getData(),n=e.tree;n.eachNode((function(t){var n=t.getModel(),r=n.getModel("itemStyle").getItemStyle(),i=e.ensureUniqueItemVisual(t.dataIndex,"style");Object(b["extend"])(i,r)}))}))}function hH(t){t.registerChartView(rH),t.registerSeriesModel(UF),t.registerLayout(oH),t.registerVisual(uH),lH(t)}var dH=["treemapZoomToNode","treemapRender","treemapMove"];function pH(t){for(var e=0;e<dH.length;e++)t.registerAction({type:dH[e],update:"updateView"},b["noop"]);t.registerAction({type:"treemapRootToNode",update:"updateView"},(function(t,e){function n(e,n){var r=["treemapZoomToNode","treemapRootToNode"],i=VF(t,r,e);if(i){var a=e.getViewRoot();a&&(t.direction=HF(a,i.node)?"rollUp":"drillDown"),e.resetViewRoot(i.node)}}e.eachComponent({mainType:"series",subType:"treemap",query:t},n)}))}function fH(t){var e=t.getData(),n=e.tree,r={};n.eachNode((function(e){var n=e;while(n&&n.depth>1)n=n.parentNode;var i=gf(t.ecModel,n.name||n.dataIndex+"",r);e.setVisual("decal",i)}))}var gH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return f(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};yH(n);var r=t.levels||[],i=this.designatedVisualItemStyle={},a=new Vh({itemStyle:i},this,e);r=t.levels=vH(r,e);var o=b["map"](r||[],(function(t){return new Vh(t,a,e)}),this),s=BF.createTree(n,this,l);function l(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),r=n?o[n.depth]:null;return t.parentModel=r||a,t}))}return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),a=r.getName(t);return Fy("nameValue",{name:a,value:i})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=GF(r,this),n.treePathInfo=n.treeAncestors,n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},b["extend"](this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=b["createHashMap"](),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){fH(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:Xp.size.l,top:Xp.size.xxxl,right:Xp.size.l,bottom:Xp.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:Xp.size.m,emptyItemWidth:25,itemStyle:{color:Xp.color.backgroundShade,textStyle:{color:Xp.color.secondary}},emphasis:{itemStyle:{color:Xp.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:Xp.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:Xp.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(vv);function yH(t){var e=0;b["each"](t.children,(function(t){yH(t);var n=t.value;b["isArray"](n)&&(n=n[0]),e+=n}));var n=t.value;b["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),b["isArray"](t.value)?t.value[0]=n:t.value=n}function vH(t,e){var n=Aa(e.get("color")),r=Aa(e.get(["aria","decal","decals"]));if(n){var i,a;t=t||[],b["each"](t,(function(t){var e=new Vh(t),n=e.get("color"),r=e.get("decal");(e.get(["itemStyle","color"])||n&&"none"!==n)&&(i=!0),(e.get(["itemStyle","decal"])||r&&"none"!==r)&&(a=!0)}));var o=t[0]||(t[0]={});return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),t}}var mH=gH,xH=8,bH=8,_H=5,wH=function(){function t(t){this.group=new vi,t.add(this.group)}return t.prototype.render=function(t,e,n,r){var i=t.getModel("breadcrumb"),a=this.group;if(a.removeAll(),i.get("show")&&n){var o=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=o.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c=Lp(t,e).refContainer,h={left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},d={emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]},p=Ap(h,c);this._prepare(n,d,l),this._renderContent(t,d,p,o,s,l,u,r),Pp(a,h,c)}},t.prototype._prepare=function(t,e,n){for(var r=t;r;r=r.parentNode){var i=Ga(r.getModel().get("name"),""),a=n.getTextRect(i),o=Math.max(a.width+2*xH,e.emptyItemWidth);e.totalWidth+=o+bH,e.renderList.push({node:r,text:i,width:o})}},t.prototype._renderContent=function(t,e,n,r,i,a,o,s){for(var l=0,u=e.emptyItemWidth,c=t.get(["breadcrumb","height"]),h=e.totalWidth,d=e.renderList,p=i.getModel("itemStyle").getItemStyle(),f=d.length-1;f>=0;f--){var g=d[f],y=g.node,v=g.width,m=g.text;h>n.width&&(h-=v-u,v=u,m=null);var x=new _m({shape:{points:SH(l,0,v,c,f===d.length-1,0===f)},style:Object(b["defaults"])(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new _u({style:gh(a,{text:m})}),textConfig:{position:"inside"},z2:1e4*qu,onclick:Object(b["curry"])(s,y)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=gh(o,{text:m}),x.ensureState("emphasis").style=p,Fc(x,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(x),MH(x,t,y),l+=v+bH}},t.prototype.remove=function(){this.group.removeAll()},t}();function SH(t,e,n,r,i,a){var o=[[i?t:t-_H,e],[t+n,e],[t+n,e+r],[i?t:t-_H,e+r]];return!a&&o.splice(2,0,[t+n+_H,e+r/2]),!i&&o.push([t,e+r/2]),o}function MH(t,e,n){wu(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&GF(n,e)}}var OH=wH,IH=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,r,i){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:r,easing:i}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){e--,e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},r=0,i=this._storage.length;r<i;r++){var a=this._storage[r];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:n,aborted:n})}return this},t}();function TH(){return new IH}var CH=Math.max,AH=Math.min,DH=b["each"],kH=["itemStyle","borderWidth"],LH=["itemStyle","gapWidth"],PH=["upperLabel","show"],jH=["upperLabel","height"],RH={seriesType:"treemap",reset:function(t,e,n,r){var i=t.option,a=Lp(t,n).refContainer,o=Ap(t.getBoxLayoutParams(),a),s=r&&r.type,l=["treemapZoomToNode","treemapRootToNode"],u=VF(r,l,t),c="treemapRender"===s||"treemapMove"===s?r.rootRect:null,h=t.getViewRoot(),d=FF(h);if("treemapMove"!==s){var p=!1,f="treemapZoomToNode"===s?(p=!0,GH(t,u,h,o)):c?(p=!0,b["extend"]({},c)):b["extend"]({},o);if(p){var g=XH(o,f);g=ZH(g,t),f.width=o.width*g,f.height=o.height*g}var y=i.sort;y&&"asc"!==y&&"desc"!==y&&(y="desc");var v={squareRatio:i.squareRatio,sort:y,leafDepth:i.leafDepth};h.hostTree.clearLayouts();var m={x:0,y:0,width:f.width,height:f.height,area:f.width*f.height};h.setLayout(m),NH(h,v,!1,0),m=h.getLayout(),DH(d,(function(t,e){var n=(d[e+1]||h).getValue();t.setLayout(b["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},m))}))}var x=t.getData().tree.root;x.setLayout(WH(o,c,u),!0),t.setLayoutInfo(o),YH(x,new ue(-o.x,-o.y,n.getWidth(),n.getHeight()),d,h,0)}};function NH(t,e,n,r){var i,a;if(!t.isRemoved()){var o=t.getLayout();i=o.width,a=o.height;var s=t.getModel(),l=s.get(kH),u=s.get(LH)/2,c=UH(s),h=Math.max(l,c),d=l-u,p=h-u;t.setLayout({borderWidth:l,upperHeight:h,upperLabelHeight:c},!0),i=CH(i-2*d,0),a=CH(a-d-p,0);var f=i*a,g=EH(t,s,f,e,n,r);if(g.length){var y={x:d,y:p,width:i,height:a},v=AH(i,a),m=1/0,x=[];x.area=0;for(var b=0,_=g.length;b<_;){var w=g[b];x.push(w),x.area+=w.getLayout().area;var S=FH(x,v,e.squareRatio);S<=m?(b++,m=S):(x.area-=x.pop().getLayout().area,HH(x,v,y,u,!1),v=AH(y.width,y.height),x.length=x.area=0,m=1/0)}if(x.length&&HH(x,v,y,u,!0),!n){var M=s.get("childrenVisibleMin");null!=M&&f<M&&(n=!0)}for(b=0,_=g.length;b<_;b++)NH(g[b],e,n,r+1)}}}function EH(t,e,n,r,i,a){var o=t.children||[],s=r.sort;"asc"!==s&&"desc"!==s&&(s=null);var l=null!=r.leafDepth&&r.leafDepth<=a;if(i&&!l)return t.viewChildren=[];o=b["filter"](o,(function(t){return!t.isRemoved()})),BH(o,s);var u=VH(e,o,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=zH(e,n,u.sum,s,o),0===u.sum)return t.viewChildren=[];for(var c=0,h=o.length;c<h;c++){var d=o[c].getValue()/u.sum*n;o[c].setLayout({area:d})}return l&&(o.length&&t.setLayout({isLeafRoot:!0},!0),o.length=0),t.viewChildren=o,t.setLayout({dataExtent:u.dataExtent},!0),o}function zH(t,e,n,r,i){if(!r)return n;for(var a=t.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i["asc"===r?o-l-1:l].getValue();u/n*e<a&&(s=l,n-=u)}return"asc"===r?i.splice(0,o-s):i.splice(s,o-s),n}function BH(t,e){return e&&t.sort((function(t,n){var r="asc"===e?t.getValue()-n.getValue():n.getValue()-t.getValue();return 0===r?"asc"===e?t.dataIndex-n.dataIndex:n.dataIndex-t.dataIndex:r})),t}function VH(t,e,n){for(var r=0,i=0,a=e.length;i<a;i++)r+=e[i].getValue();var o,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(o=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&o.reverse()):(o=po(),DH(e,(function(t){var e=t.getValue(s);e<o[0]&&(o[0]=e),e>o[1]&&(o[1]=e)}))):o=[NaN,NaN],{sum:r,dataExtent:o}}function FH(t,e,n){for(var r=0,i=1/0,a=0,o=void 0,s=t.length;a<s;a++)o=t[a].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var l=t.area*t.area,u=e*e*n;return l?CH(u*r/l,l/(u*i)):1/0}function HH(t,e,n,r,i){var a=e===n.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=n[s[a]],c=e?t.area/e:0;(i||c>n[l[o]])&&(c=n[l[o]]);for(var h=0,d=t.length;h<d;h++){var p=t[h],f={},g=c?p.getLayout().area/c:0,y=f[l[o]]=CH(c-2*r,0),v=n[s[a]]+n[l[a]]-u,m=h===d-1||v<g?v:g,x=f[l[a]]=CH(m-2*r,0);f[s[o]]=n[s[o]]+AH(r,y/2),f[s[a]]=u+AH(r,x/2),u+=m,p.setLayout(f,!0)}n[s[o]]+=c,n[l[o]]-=c}function GH(t,e,n,r){var i,a=(e||{}).node,o=r.width,s=r.height,l=b["extend"]({},r);if(!a||a===n)return l;var u=o*s,c=u*t.option.zoomToNodeRatio;while(i=a.parentNode){for(var h=0,d=i.children,p=0,f=d.length;p<f;p++)h+=d[p].getValue();var g=a.getValue();if(0===g)return l;c*=h/g;var y=i.getModel(),v=y.get(kH),m=Math.max(v,UH(y));c+=4*v*v+(3*v+m)*Math.pow(c,.5),c>ua&&(c=ua),a=i}c<u&&(c=u);var x=Math.pow(c/u,.5);return{width:o*x,height:s*x}}function WH(t,e,n){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!n)return r;var i=n.node,a=i.getLayout();if(!a)return r;var o=[a.width/2,a.height/2],s=i;while(s){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}function YH(t,e,n,r,i){var a=t.getLayout(),o=n[i],s=o&&o===t;if(!(o&&!s||i===n.length&&t!==r)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(a),isAboveViewRoot:s},!0);var l=new ue(e.x-a.x,e.y-a.y,e.width,e.height);DH(t.viewChildren||[],(function(t){YH(t,l,n,r,i+1)}))}}function UH(t){return t.get(PH)?t.get(jH):0}function XH(t,e){return e.width/t.width||e.height/t.height||1}function ZH(t,e){return cV(t,e.get("scaleLimit",!0))}var qH=vi,$H=nu,KH=3,JH="label",QH="upperLabel",tG=10*qu,eG=2*qu,nG=3*qu,rG=Yo([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),iG=function(t){var e=rG(t);return e.stroke=e.fill=e.lineWidth=null,e},aG=Ka(),oG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=sG(),n}return f(e,t),e.prototype.render=function(t,e,n,r){var i=e.findComponents({mainType:"series",subType:"treemap",query:r});if(!(Object(b["indexOf"])(i,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var a=["treemapZoomToNode","treemapRootToNode"],o=VF(r,a,t),s=r&&r.type,l=t.layoutInfo,u=!this._oldTree,c=this._storage,h="treemapRootToNode"===s&&o&&c?{rootNodeGroup:c.nodeGroup[o.node.getRawIndex()],direction:r.direction}:null,d=this._giveContainerGroup(l),p=t.get("animation"),f=this._doRender(d,t,h);!p||u||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?f.renderFinally():this._doAnimation(d,f,t,h),this._resetController(n),this._renderBreadcrumb(t,n,o)}},e.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new qH,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},e.prototype._doRender=function(t,e,n){var r=e.getData().tree,i=this._oldTree,a=sG(),o=sG(),s=this._storage,l=[];function u(t,r,i,u){return lG(e,o,s,n,a,l,t,r,i,u)}h(r.root?[r.root]:[],i&&i.root?[i.root]:[],t,r===i||!i,0);var c=d(s);return this._oldTree=r,this._storage=o,{lastsForAnimation:a,willDeleteEls:c,renderFinally:p};function h(t,e,n,r,i){function a(t){return t.getId()}function o(a,o){var s=null!=a?t[a]:null,l=null!=o?e[o]:null,c=u(s,l,n,i);c&&h(s&&s.viewChildren||[],l&&l.viewChildren||[],c,r,i+1)}r?(e=t,Object(b["each"])(t,(function(t,e){!t.isRemoved()&&o(e,e)}))):new kM(e,t,a,a).add(o).update(o).remove(Object(b["curry"])(o,null)).execute()}function d(t){var e=sG();return t&&Object(b["each"])(t,(function(t,n){var r=e[n];Object(b["each"])(t,(function(t){t&&(r.push(t),aG(t).willDelete=!0)}))})),e}function p(){Object(b["each"])(c,(function(t){Object(b["each"])(t,(function(t){t.parent&&t.parent.remove(t)}))})),Object(b["each"])(l,(function(t){t.invisible=!0,t.dirty()}))}},e.prototype._doAnimation=function(t,e,n,r){var i=n.get("animationDurationUpdate"),a=n.get("animationEasing"),o=(Object(b["isFunction"])(i)?0:i)||0,s=(Object(b["isFunction"])(a)?null:a)||"cubicOut",l=TH();Object(b["each"])(e.willDeleteEls,(function(t,e){Object(b["each"])(t,(function(t,n){if(!t.invisible){var i,a=t.parent,u=aG(a);if(r&&"drillDown"===r.direction)i=a===r.rootNodeGroup?{shape:{x:0,y:0,width:u.nodeWidth,height:u.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;u.willDelete||(c=u.nodeWidth/2,h=u.nodeHeight/2),i="nodeGroup"===e?{x:c,y:h,style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}i&&l.add(t,i,o,0,s)}}))})),Object(b["each"])(this._storage,(function(t,n){Object(b["each"])(t,(function(t,r){var i=e.lastsForAnimation[n][r],a={};i&&(t instanceof vi?null!=i.oldX&&(a.x=t.x,a.y=t.y,t.x=i.oldX,t.y=i.oldY):(i.oldShape&&(a.shape=Object(b["extend"])({},t.shape),t.setShape(i.oldShape)),i.fadein?(t.setStyle("opacity",0),a.style={opacity:1}):1!==t.style.opacity&&(a.style={opacity:1})),l.add(t,a,o,0,s))}))}),this),this._state="animating",l.finished(Object(b["bind"])((function(){this._state="ready",e.renderFinally()}),this)).start()},e.prototype._resetController=function(t){var e=this,n=this.seriesModel,r=this._controller;r||(r=this._controller=new _z(t.getZr()),r.on("pan",Object(b["bind"])(this._onPan,this)),r.on("zoom",Object(b["bind"])(this._onZoom,this))),r.enable(n.get("roam"),{api:t,zInfo:{component:n},triggerInfo:{roamTrigger:n.get("roamTrigger"),isInSelf:function(t,n,r){var i=e._containerGroup;return!!i&&i.getBoundingRect().contain(n-i.x,r-i.y)}}})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if("animating"!==this._state&&(Math.abs(t.dx)>KH||Math.abs(t.dy)>KH)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY,r=t.scale,i=this.seriesModel;if("animating"!==this._state){var a=i.getData().tree.root;if(!a)return;var o=a.getLayout();if(!o)return;var s=new ue(o.x,o.y,o.width,o.height),l=i.layoutInfo,u=XH(l,o),c=u*r;c=ZH(c,i);var h=c/u;e-=l.x,n-=l.y;var d=Tt();kt(d,d,[-e,-n]),Pt(d,d,[h,h]),kt(d,d,[e,n]),s.applyTransform(d),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x,y:s.y,width:s.width,height:s.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var r=e.findTarget(t.offsetX,t.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)e._rootToNode(r);else if("zoomToNode"===n)e._zoomToNode(r);else if("link"===n){var a=i.hostTree.data.getItemModel(i.dataIndex),o=a.get("link",!0),s=a.get("target",!0)||"blank";o&&ip(o,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var r=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new OH(this.group))).render(t,e,n.node,(function(e){"animating"!==r._state&&(HF(t.getViewRoot(),e)?r._rootToNode({node:e}):r._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=sG(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var a=i.transformCoordToLocal(t,e),o=i.shape;if(!(o.x<=a[0]&&a[0]<=o.x+o.width&&o.y<=a[1]&&a[1]<=o.y+o.height))return!1;n={node:r,offsetX:a[0],offsetY:a[1]}}}),this),n},e.type="treemap",e}(fb);function sG(){return{nodeGroup:[],background:[],content:[]}}function lG(t,e,n,r,i,a,o,s,l,u){if(o){var c=o.getLayout(),h=t.getData(),d=o.getModel();if(h.setItemGraphicEl(o.dataIndex,null),c&&c.isInView){var p=c.width,f=c.height,g=c.borderWidth,y=c.invisible,v=o.getRawIndex(),m=s&&s.getRawIndex(),x=o.viewChildren,_=c.upperHeight,w=x&&x.length,S=d.getModel("itemStyle"),M=d.getModel(["emphasis","itemStyle"]),O=d.getModel(["blur","itemStyle"]),I=d.getModel(["select","itemStyle"]),T=S.get("borderRadius")||0,C=H("nodeGroup",qH);if(C){if(l.add(C),C.x=c.x||0,C.y=c.y||0,C.markRedraw(),aG(C).nodeWidth=p,aG(C).nodeHeight=f,c.isAboveViewRoot)return C;var A=H("background",$H,u,eG);A&&E(C,A,w&&c.upperLabelHeight);var D=d.getModel("emphasis"),k=D.get("focus"),L=D.get("blurScope"),P=D.get("disabled"),j="ancestor"===k?o.getAncestorsIndices():"descendant"===k?o.getDescendantIndices():k;if(w)Xc(C)&&Uc(C,!1),A&&(Uc(A,!P),h.setItemGraphicEl(o.dataIndex,A),Hc(A,j,L));else{var R=H("content",$H,u,nG);R&&z(C,R),A.disableMorphing=!0,A&&Xc(A)&&Uc(A,!1),Uc(C,!P),h.setItemGraphicEl(o.dataIndex,C);var N=d.getShallow("cursor");N&&R.attr("cursor",N),Hc(C,j,L)}return C}}}function E(e,n,r){var i=wu(n);if(i.dataIndex=o.dataIndex,i.seriesIndex=t.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:T}),y)B(n);else{n.invisible=!1;var a=o.getVisual("style"),s=a.stroke,l=iG(S);l.fill=s;var u=rG(M);u.fill=M.get("borderColor");var c=rG(O);c.fill=O.get("borderColor");var h=rG(I);if(h.fill=I.get("borderColor"),r){var d=p-2*g;V(n,s,a.opacity,{x:g,y:0,width:d,height:_})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=h,xc(n)}e.add(n)}function z(e,n){var r=wu(n);r.dataIndex=o.dataIndex,r.seriesIndex=t.seriesIndex;var i=Math.max(p-2*g,0),a=Math.max(f-2*g,0);if(n.culling=!0,n.setShape({x:g,y:g,width:i,height:a,r:T}),y)B(n);else{n.invisible=!1;var s=o.getVisual("style"),l=s.fill,u=iG(S);u.fill=l,u.decal=s.decal;var c=rG(M),h=rG(O),d=rG(I);V(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=h,n.ensureState("select").style=d,xc(n)}e.add(n)}function B(t){!t.invisible&&a.push(t)}function V(e,n,r,i){var a=d.getModel(i?QH:JH),s=Ga(d.get("name"),null),l=a.getShallow("show");ph(e,fh(d,i?QH:JH),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:t,labelDataIndex:o.dataIndex});var u=e.getTextContent();if(u){var h=u.style,p=Object(b["normalizeCssArray"])(h.padding||0);i&&(e.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var t=Math.max((i?i.width:e.shape.width)-p[1]-p[3],0),n=Math.max((i?i.height:e.shape.height)-p[0]-p[2],0);h.width===t&&h.height===n||u.setStyle({width:t,height:n})},h.truncateMinChar=2,h.lineOverflow="truncate",F(h,i,c);var f=u.getState("emphasis");F(f?f.style:null,i,c)}}function F(e,n,r){var i=e?e.text:null;if(!n&&r.isLeafRoot&&null!=i){var a=t.get("drillDownIcon",!0);e.text=a?a+" "+i:i}}function H(t,r,a,o){var s=null!=m&&n[t][m],l=i[t];return s?(n[t][m]=null,G(l,s)):y||(s=new r,s instanceof Ls&&(s.z2=uG(a,o)),W(l,s)),e[t][v]=s}function G(t,e){var n=t[v]={};e instanceof qH?(n.oldX=e.x,n.oldY=e.y):n.oldShape=Object(b["extend"])({},e.shape)}function W(t,e){var n=t[v]={},a=o.parentNode,s=e instanceof vi;if(a&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[a.getRawIndex()];!r&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function uG(t,e){return t*tG+e}var cG=oG,hG=b["each"],dG=b["isObject"],pG=-1,fG=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=b["clone"](e);this.type=r,this.mappingMethod=n,this._normalizeData=IG[n];var a=t.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],"piecewise"===n?(vG(i),gG(i)):"category"===n?i.categories?yG(i):vG(i,!0):(b["assert"]("linear"!==n||i.dataExtent),vG(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return b["bind"](this._normalizeData,this)},t.listVisualTypes=function(){return b["keys"](t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){b["isObject"](t)?b["each"](t,e,n):e.call(n,t)},t.mapVisual=function(e,n,r){var i,a=b["isArray"](e)?[]:b["isObject"](e)?{}:(i=!0,null);return t.eachVisual(e,(function(t,e){var o=n.call(r,t,e);i?a=o:a[e]=o})),a},t.retrieveVisuals=function(e){var n,r={};return e&&hG(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(b["isArray"](t))t=t.slice();else{if(!dG(t))return[];var e=[];hG(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var r,i=1/0,a=0,o=e.length;a<o;a++){var s=e[a].value;if(null!=s){if(s===t||b["isString"](s)&&s===t+"")return a;n&&h(s,a)}}for(a=0,o=e.length;a<o;a++){var l=e[a],u=l.interval,c=l.close;if(u){if(u[0]===-1/0){if(TG(c[1],t,u[1]))return a}else if(u[1]===1/0){if(TG(c[0],u[0],t))return a}else if(TG(c[0],u[0],t)&&TG(c[1],t,u[1]))return a;n&&h(u[0],a),n&&h(u[1],a)}}if(n)return t===1/0?e.length-1:t===-1/0?0:r;function h(e,n){var a=Math.abs(e-t);a<i&&(i=a,r=n)}},t.visualHandlers={color:{applyVisual:bG("color"),getColorMapper:function(){var t=this.option;return b["bind"]("category"===t.mappingMethod?function(t,e){return!e&&(t=this._normalizeData(t)),_G.call(this,t)}:function(e,n,r){var i=!!r;return!n&&(e=this._normalizeData(e)),r=bn["fastLerp"](e,t.parsedVisual,r),i?r:bn["stringify"](r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return bn["stringify"](bn["fastLerp"](t,this.option.parsedVisual),"rgba")},category:_G,piecewise:function(t,e){var n=MG.call(this,e);return null==n&&(n=bn["stringify"](bn["fastLerp"](t,this.option.parsedVisual),"rgba")),n},fixed:wG}},colorHue:mG((function(t,e){return bn["modifyHSL"](t,e)})),colorSaturation:mG((function(t,e){return bn["modifyHSL"](t,null,e)})),colorLightness:mG((function(t,e){return bn["modifyHSL"](t,null,null,e)})),colorAlpha:mG((function(t,e){return bn["modifyAlpha"](t,e)})),decal:{applyVisual:bG("decal"),_normalizedToVisual:{linear:null,category:_G,piecewise:null,fixed:null}},opacity:{applyVisual:bG("opacity"),_normalizedToVisual:SG([0,1])},liftZ:{applyVisual:bG("liftZ"),_normalizedToVisual:{linear:wG,category:wG,piecewise:wG,fixed:wG}},symbol:{applyVisual:function(t,e,n){var r=this.mapValueToVisual(t);n("symbol",r)},_normalizedToVisual:{linear:xG,category:_G,piecewise:function(t,e){var n=MG.call(this,e);return null==n&&(n=xG.call(this,t)),n},fixed:wG}},symbolSize:{applyVisual:bG("symbolSize"),_normalizedToVisual:SG([0,1])}},t}();function gG(t){var e=t.pieceList;t.hasSpecialVisual=!1,b["each"](e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}function yG(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(hG(e,(function(t,e){n[t]=e})),!b["isArray"](r)){var i=[];b["isObject"](r)?hG(r,(function(t,e){var r=n[e];i[null!=r?r:pG]=t})):i[pG]=r,r=OG(t,i)}for(var a=e.length-1;a>=0;a--)null==r[a]&&(delete n[e[a]],e.pop())}function vG(t,e){var n=t.visual,r=[];b["isObject"](n)?hG(n,(function(t){r.push(t)})):null!=n&&r.push(n);var i={color:1,symbol:1};e||1!==r.length||i.hasOwnProperty(t.type)||(r[1]=r[0]),OG(t,r)}function mG(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:SG([0,1])}}function xG(t){var e=this.option.visual;return e[Math.round(Xi(t,[0,1],[0,e.length-1],!0))]||{}}function bG(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function _G(t){var e=this.option.visual;return e[this.option.loop&&t!==pG?t%e.length:t]}function wG(){return this.option.visual[0]}function SG(t){return{linear:function(e){return Xi(e,t,this.option.visual,!0)},category:_G,piecewise:function(e,n){var r=MG.call(this,n);return null==r&&(r=Xi(e,t,this.option.visual,!0)),r},fixed:wG}}function MG(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=fG.findPieceIndex(t,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function OG(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=b["map"](e,(function(t){var e=bn["parse"](t);return e||[0,0,0,1]}))),e}var IG={linear:function(t){return Xi(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=fG.findPieceIndex(t,e,!0);if(null!=n)return Xi(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return null==e?pG:e},fixed:b["noop"]};function TG(t,e,n){return t?e<=n:e<n}var CG=fG,AG="itemStyle",DG=Ka(),kG={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||LG(n,{},t.getViewRoot().getAncestors(),t)}};function LG(t,e,n,r){var i=t.getModel(),a=t.getLayout(),o=t.hostTree.data;if(a&&!a.invisible&&a.isInView){var s,l=i.getModel(AG),u=PG(l,e,r),c=o.ensureUniqueItemVisual(t.dataIndex,"style"),h=l.get("borderColor"),d=l.get("borderColorSaturation");null!=d&&(s=jG(u),h=RG(d,s)),c.stroke=h;var p=t.viewChildren;if(p&&p.length){var f=EG(t,i,a,l,u,p);Object(b["each"])(p,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var a=BG(i,u,t,e,f,r);LG(t,a,n,r)}}))}else s=jG(u),c.fill=s}}function PG(t,e,n){var r=Object(b["extend"])({},e),i=n.designatedVisualItemStyle;return Object(b["each"])(["color","colorAlpha","colorSaturation"],(function(n){i[n]=e[n];var a=t.get(n);i[n]=null,null!=a&&(r[n]=a)})),r}function jG(t){var e=NG(t,"color");if(e){var n=NG(t,"colorAlpha"),r=NG(t,"colorSaturation");return r&&(e=Object(bn["modifyHSL"])(e,null,null,r)),n&&(e=Object(bn["modifyAlpha"])(e,n)),e}}function RG(t,e){return null!=e?Object(bn["modifyHSL"])(e,null,null,t):null}function NG(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function EG(t,e,n,r,i,a){if(a&&a.length){var o=zG(e,"color")||null!=i.color&&"none"!==i.color&&(zG(e,"colorAlpha")||zG(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();null!=s&&s<u[0]&&(u[0]=s),null!=l&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:o.name,dataExtent:u,visual:o.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new CG(h);return DG(d).drColorMappingBy=c,d}}}function zG(t,e){var n=t.get(e);return Object(b["isArray"])(n)&&n.length?{name:e,range:n}:null}function BG(t,e,n,r,i,a){var o=Object(b["extend"])({},e);if(i){var s=i.type,l="color"===s&&DG(i).drColorMappingBy,u="index"===l?r:"id"===l?a.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}function VG(t){t.registerSeriesModel(mH),t.registerChartView(cG),t.registerVisual(kG),t.registerLayout(RH),pH(t)}function FG(t){return"_EC_"+t}var HG=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[FG(t)]){var r=new GG(t,e);return r.hostGraph=this,this.nodes.push(r),n[FG(t)]=r,r}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[FG(t)]},t.prototype.addEdge=function(t,e,n){var r=this._nodesMap,i=this._edgesMap;if(b["isNumber"](t)&&(t=this.nodes[t]),b["isNumber"](e)&&(e=this.nodes[e]),t instanceof GG||(t=r[FG(t)]),e instanceof GG||(e=r[FG(e)]),t&&e){var a=t.id+"-"+e.id,o=new WG(t,e,n);return o.hostGraph=this,this._directed&&(t.outEdges.push(o),e.inEdges.push(o)),t.edges.push(o),t!==e&&e.edges.push(o),this.edges.push(o),i[a]=o,o}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof GG&&(t=t.id),e instanceof GG&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&t.call(e,n[i],i)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,r=n.length,i=0;i<r;i++)n[i].dataIndex>=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&t.call(e,n[i],i)},t.prototype.breadthFirstTraverse=function(t,e,n,r){if(e instanceof GG||(e=this._nodesMap[FG(e)]),e){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!t.call(r,e,null)){var o=[e];while(o.length){var s=o.shift(),l=s[i];for(a=0;a<l.length;a++){var u=l[a],c=u.node1===s?u.node2:u.node1;if(!c.__visited){if(t.call(r,c,s))return;o.push(c),c.__visited=!0}}}}}},t.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,r=this.edges,i=0,a=n.length;i<a;i++)n[i].dataIndex=-1;for(i=0,a=t.count();i<a;i++)n[t.getRawIndex(i)].dataIndex=i;e.filterSelf((function(t){var n=r[e.getRawIndex(t)];return n.node1.dataIndex>=0&&n.node2.dataIndex>=0}));for(i=0,a=r.length;i<a;i++)r[i].dataIndex=-1;for(i=0,a=e.count();i<a;i++)r[e.getRawIndex(i)].dataIndex=i},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)e.addNode(n[i].id,n[i].dataIndex);for(i=0;i<r.length;i++){var a=r[i];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},t}(),GG=function(){function t(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.data.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},t.prototype.getTrajectoryDataIndices=function(){for(var t=b["createHashMap"](),e=b["createHashMap"](),n=0,r=this.edges.length;n<r;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);var a=[i.node1],o=[i.node2],s=0;while(s<a.length){var l=a[s];s++,e.set(l.dataIndex,!0);for(var u=l.inEdges,c=0,h=u.length,d=void 0,p=void 0;c<h;c++)d=u[c],p=d.dataIndex,p>=0&&!t.hasKey(p)&&(t.set(p,!0),a.push(d.node1))}s=0;while(s<o.length){var f=o[s];s++,e.set(f.dataIndex,!0);for(var g=f.outEdges,y=(c=0,g.length),v=void 0,m=void 0;c<y;c++)v=g[c],m=v.dataIndex,m>=0&&!t.hasKey(m)&&(t.set(m,!0),o.push(v.node2))}}}return{edge:t.keys(),node:e.keys()}},t}(),WG=function(){function t(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}return t.prototype.getModel=function(t){if(!(this.dataIndex<0)){var e=this.hostGraph,n=e.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var t=b["createHashMap"](),e=b["createHashMap"]();t.set(this.dataIndex,!0);var n=[this.node1],r=[this.node2],i=0;while(i<n.length){var a=n[i];i++,e.set(a.dataIndex,!0);for(var o=a.inEdges,s=0,l=o.length,u=void 0,c=void 0;s<l;s++)u=a.inEdges[s],c=u.dataIndex,c>=0&&!t.hasKey(c)&&(t.set(c,!0),n.push(u.node1))}i=0;while(i<r.length){var h=r[i];i++,e.set(h.dataIndex,!0);for(var d=h.outEdges,p=(s=0,l=d.length,void 0),f=void 0;s<l;s++)p=h.outEdges[s],f=p.dataIndex,f>=0&&!t.hasKey(f)&&(t.set(f,!0),r.push(p.node2))}return{edge:t.keys(),node:e.keys()}},t}();function YG(t,e){return{getValue:function(n){var r=this[t][e];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}b["mixin"](GG,YG("hostGraph","data")),b["mixin"](WG,YG("hostGraph","edgeData"));var UG=HG;function XG(t,e,n,r,i){for(var a=new UG(r),o=0;o<t.length;o++)a.addNode(b["retrieve"](t[o].id,t[o].name,o),o);var s=[],l=[],u=0;for(o=0;o<e.length;o++){var c=e[o],h=c.source,d=c.target;a.addEdge(h,d,u)&&(l.push(c),s.push(b["retrieve"](Ga(c.id,null),h+" > "+d)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f||"matrix"===f)p=OO(t,n);else{var g=bp.get(f),y=g&&g.dimensions||[];b["indexOf"](y,"value")<0&&y.concat(["value"]);var v=uO(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;p=new sO(v,n),p.initData(t)}var m=new sO(["value"],n);return m.initData(l,s),i&&i(p,m),RF({mainData:p,struct:a,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var ZG="--\x3e",qG=function(t){return t.get("autoCurveness")||null},$G=function(t,e){var n=qG(t),r=20,i=[];if(b["isNumber"](n))r=n;else if(b["isArray"](n))return void(t.__curvenessList=n);e>r&&(r=e);var a=r%2?r+2:r+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));t.__curvenessList=i},KG=function(t,e,n){var r=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[n.uid,r,i].join(ZG)},JG=function(t){var e=t.split(ZG);return[e[0],e[2],e[1]].join(ZG)},QG=function(t,e){var n=KG(t.node1,t.node2,e);return e.__edgeMap[n]},tW=function(t,e){var n=eW(KG(t.node1,t.node2,e),e),r=eW(KG(t.node2,t.node1,e),e);return n+r},eW=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function nW(t){qG(t)&&(t.__curvenessList=[],t.__edgeMap={},$G(t))}function rW(t,e,n,r){if(qG(n)){var i=KG(t,e,n),a=n.__edgeMap,o=a[JG(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(r)}}function iW(t,e,n,r){var i=qG(e),a=b["isArray"](i);if(!i)return null;var o=QG(t,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===n){s=l;break}var u=tW(t,e);$G(e,u),t.lineStyle=t.lineStyle||{};var c=KG(t.node1,t.node2,e),h=e.__curvenessList,d=a||u%2?0:1;if(o.isForward)return h[d+s];var p=JG(c),f=eW(p,e),g=h[s+f+d];return r?a?i&&0===i[0]?(f+d)%2?g:-g:((f%2?0:1)+d)%2?g:-g:(f+d)%2?g:-g:h[s+f+d]}var aW="graph",oW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return f(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new kR(r,r),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Da(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],r=t.data||t.nodes||[],i=this;if(r&&n){nW(this);var a=XG(r,n,this,!0,o);return b["each"](a.edges,(function(t){rW(t.node1,t.node2,this,t.dataIndex)}),this),a.data}function o(t,e){t.wrapMethod("getItemModel",(function(t){var e=i._categoriesModels,n=t.getShallow("category"),r=e[n];return r&&(r.parentModel=t.parentModel,t.parentModel=r),t}));var n=Vh.prototype.getModel;function r(t,e){var r=n.call(this,t,e);return r.resolveParentPath=a,r}function a(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=a,t.getModel=r,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var r=this.getData(),i=this.getDataParams(t,n),a=r.graph.getEdgeByIndex(t),o=r.getName(a.node1.dataIndex),s=r.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Fy("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var u=rv({series:this,dataIndex:t,multipleSeries:e});return u},e.prototype._updateCategoriesData=function(){var t=b["map"](this.option.categories||[],(function(t){return null!=t.value?t:b["extend"]({value:0},t)})),e=new sO(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.prototype.__ownRoamView=function(){var t=this.coordinateSystem;return XB(t)&&t},e.type="series."+aW,e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:Xp.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:Xp.color.primary}}},e}(vv),sW=oW;function lW(t){return t instanceof Array||(t=[t,t]),t}var uW=Ao(aW,cW);function cW(t){t.eachSeriesByType(aW,(function(t){var e=t.getGraph(),n=t.getEdgeData(),r=lW(t.get("edgeSymbol")),i=lW(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",r&&r[0]),n.setVisual("toSymbol",r&&r[1]),n.setVisual("fromSymbolSize",i&&i[0]),n.setVisual("toSymbolSize",i&&i[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each((function(t){var r=n.getItemModel(t),i=e.getEdgeByIndex(t),a=lW(r.getShallow("symbol",!0)),o=lW(r.getShallow("symbolSize",!0)),s=r.getModel("lineStyle").getLineStyle(),l=n.ensureUniqueItemVisual(t,"style");switch(Object(b["extend"])(l,s),l.stroke){case"source":var u=i.node1.getVisual("style");l.stroke=u&&u.fill;break;case"target":u=i.node2.getVisual("style");l.stroke=u&&u.fill;break}a[0]&&i.setVisual("fromSymbol",a[0]),a[1]&&i.setVisual("toSymbol",a[1]),o[0]&&i.setVisual("fromSymbolSize",o[0]),o[1]&&i.setVisual("toSymbolSize",o[1])}))}))}function hW(t){var e=t.coordinateSystem;if(!e||"view"===e.type){var n=t.getGraph();n.eachNode((function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])})),dW(n,t)}}function dW(t,e){t.eachEdge((function(t,n){var r=b["retrieve3"](t.getModel().get(["lineStyle","curveness"]),-iW(t,e,n,!0),0),i=S(t.node1.getLayout()),a=S(t.node2.getLayout()),o=[i,a];+r&&o.push([(i[0]+a[0])/2-(i[1]-a[1])*r,(i[1]+a[1])/2-(a[0]-i[0])*r]),t.setLayout(o)}))}var pW=Ao(aW,fW);function fW(t,e){t.eachSeriesByType(aW,(function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var r=t.getData(),i=[];Object(b["each"])(n.dimensions,(function(t){i=i.concat(r.mapDimensionsAll(t))}));for(var a=0;a<r.count();a++){for(var o=[],s=!1,l=0;l<i.length;l++){var u=r.get(i[l],a);isNaN(u)||(s=!0),o.push(u)}s?r.setItemLayout(a,n.dataToPoint(o)):r.setItemLayout(a,[NaN,NaN])}dW(r.graph,t)}else e&&"none"!==e||hW(t)}))}function gW(t){var e=t.coordinateSystem;return XB(e)?hV(e,t):1}function yW(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var vW=Math.PI,mW=[];function xW(t,e,n,r){var i=t.coordinateSystem;if(!i||"view"===i.type){var a=i.getBoundingRect(),o=t.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,h=o.count();if(o.setLayout({cx:l,cy:u}),h){if(n){var d=i.pointToData(r),p=d[0],f=d[1],g=[p-l,f-u];N(g,g),R(g,g,c),n.setLayout([l+g[0],u+g[1]],!0);var y=t.get(["circular","rotateLabel"]);_W(n,y,l,u)}bW[e](t,s,o,c,l,u,h),s.eachEdge((function(e,n){var r,i=b["retrieve3"](e.getModel().get(["lineStyle","curveness"]),iW(e,t,n),0),a=S(e.node1.getLayout()),o=S(e.node2.getLayout()),s=(a[0]+o[0])/2,c=(a[1]+o[1])/2;+i&&(i*=3,r=[l*i+s*(1-i),u*i+c*(1-i)]),e.setLayout([a,o,r])}))}}}var bW={value:function(t,e,n,r,i,a,o){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||o);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+a]),s+=n}))},symbolSize:function(t,e,n,r,i,a,o){var s=0;mW.length=o;var l=gW(t);e.eachNode((function(t){var e=yW(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;var n=Math.asin(e/2/r);isNaN(n)&&(n=vW/2),mW[t.dataIndex]=n,s+=2*n}));var u=(2*vW-s)/o/2,c=0;e.eachNode((function(t){var e=u+mW[t.dataIndex];c+=e,(!t.getLayout()||!t.getLayout().fixed)&&t.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+a]),c+=e}))}};function _W(t,e,n,r){var i=t.getGraphicEl();if(i){var a=t.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var l=t.getLayout(),u=Math.atan2(l[1]-r,l[0]-n);u<0&&(u=2*Math.PI+u);var c=l[0]<n;c&&(u-=Math.PI);var h=c?"left":"right";s.setTextConfig({rotation:-u,position:h,origin:"center"});var d=s.ensureState("emphasis");b["extend"](d.textConfig||(d.textConfig={}),{position:h})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var wW=Ao(aW,SW);function SW(t){t.eachSeriesByType("graph",(function(t){"circular"===t.get("layout")&&xW(t,"symbolSize")}))}var MW=I;function OW(t,e,n){for(var r=t,i=e,a=n.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=null==n.gravity?.1:n.gravity,c=0;c<r.length;c++){var h=r[c];h.p||(h.p=_(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),h.pp=S(h.p),h.edges=null}var d,p,f=null==n.friction?.6:n.friction,g=f;return{warmUp:function(){g=.8*f},setFixed:function(t){r[t].fixed=!0},setUnfixed:function(t){r[t].fixed=!1},beforeStep:function(t){d=t},afterStep:function(t){p=t},step:function(t){d&&d(r,i);for(var e=[],n=r.length,a=0;a<i.length;a++){var o=i[a];if(!o.ignoreForceLayout){var s=o.n1,c=o.n2;T(e,c.p,s.p);var h=C(e)-o.d,f=c.w/(s.w+c.w);isNaN(f)&&(f=0),N(e,e),!s.fixed&&MW(s.p,s.p,e,f*h*g),!c.fixed&&MW(c.p,c.p,e,-(1-f)*h*g)}}for(a=0;a<n;a++){var y=r[a];y.fixed||(T(e,l,y.p),MW(y.p,y.p,e,u*g))}for(a=0;a<n;a++){s=r[a];for(var v=a+1;v<n;v++){c=r[v];T(e,c.p,s.p);h=C(e);0===h&&(M(e,Math.random()-.5,Math.random()-.5),h=1);var m=(s.rep+c.rep)/h/h;!s.fixed&&MW(s.pp,s.pp,e,m),!c.fixed&&MW(c.pp,c.pp,e,-m)}}var x=[];for(a=0;a<n;a++){y=r[a];y.fixed||(T(x,y.p,y.pp),MW(y.p,y.p,x,g),w(y.pp,y.p))}g*=.992;var b=g<.01;p&&p(r,i,b),t&&t(b)}}}var IW=Ao(aW,TW);function TW(t){t.eachSeriesByType(aW,(function(t){var e=t.coordinateSystem;if(!e||"view"===e.type)if("force"===t.get("layout")){var n=t.preservedPoints||{},r=t.getGraph(),i=r.data,a=r.edgeData,o=t.getModel("force"),s=o.get("initLayout");t.preservedPoints?i.each((function(t){var e=i.getId(t);i.setItemLayout(t,n[e]||[NaN,NaN])})):s&&"none"!==s?"circular"===s&&xW(t,"value"):hW(t);var l=i.getDataExtent("value"),u=a.getDataExtent("value"),c=o.get("repulsion"),h=o.get("edgeLength"),d=b["isArray"](c)?c:[c,c],p=b["isArray"](h)?h:[h,h];p=[p[1],p[0]];var f=i.mapArray("value",(function(t,e){var n=i.getItemLayout(e),r=Xi(t,l,d);return isNaN(r)&&(r=(d[0]+d[1])/2),{w:r,rep:r,fixed:i.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}})),g=a.mapArray("value",(function(e,n){var i=r.getEdgeByIndex(n),a=Xi(e,u,p);isNaN(a)&&(a=(p[0]+p[1])/2);var o=i.getModel(),s=b["retrieve3"](i.getModel().get(["lineStyle","curveness"]),-iW(i,t,n,!0),0);return{n1:f[i.node1.dataIndex],n2:f[i.node2.dataIndex],d:a,curveness:s,ignoreForceLayout:o.get("ignoreForceLayout")}})),y=e.getBoundingRect(),v=OW(f,g,{rect:y,gravity:o.get("gravity"),friction:o.get("friction")});v.beforeStep((function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].fixed&&w(t[n].p,r.getNodeByIndex(n).getLayout())})),v.afterStep((function(t,e,a){for(var o=0,s=t.length;o<s;o++)t[o].fixed||r.getNodeByIndex(o).setLayout(t[o].p),n[i.getId(o)]=t[o].p;for(o=0,s=e.length;o<s;o++){var l=e[o],u=r.getEdgeByIndex(o),c=l.n1.p,h=l.n2.p,d=u.getLayout();d=d?d.slice():[],d[0]=d[0]||[],d[1]=d[1]||[],w(d[0],c),w(d[1],h),+l.curveness&&(d[2]=[(c[0]+h[0])/2-(c[1]-h[1])*l.curveness,(c[1]+h[1])/2-(h[0]-c[0])*l.curveness]),u.setLayout(d)}})),t.forceLayout=v,t.preservedPoints=n,v.step()}else t.forceLayout=null}))}function CW(t,e,n){var r=Lp(t,e),i=Object(b["extend"])(t.getBoxLayoutParams(),{aspect:n}),a=Ap(i,r.refContainer);return Dp(t,a,n)}function AW(t,e){var n=[];return t.eachSeriesByType("graph",(function(t){function r(){var r=t.getData(),i=r.mapArray((function(t){var e=r.getItemModel(t);return[+e.get("x"),+e.get("y")]})),a=[],o=[];Fs(i,a,o),o[0]-a[0]===0&&(o[0]+=1,a[0]-=1),o[1]-a[1]===0&&(o[1]+=1,a[1]-=1);var s=(o[0]-a[0])/(o[1]-a[1]),l=CW(t,e,s);isNaN(s)&&(a=[l.x,l.y],o=[l.x+l.width,l.y+l.height]);var u=o[0]-a[0],c=o[1]-a[1],h=xV(t,e,a[0],a[1],u,c,l);return n.push(h),h}mp({targetModel:t,coordSysType:"view",coordSysProvider:r,isDefaultDataCoordSys:!0})})),n}var DW=Cm.prototype,kW=Pm.prototype,LW=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}f(e,t)})(LW);function PW(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var jW=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-line",n}return f(e,t),e.prototype.getDefaultStyle=function(){return{stroke:Xp.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new LW},e.prototype.buildPath=function(t,e){PW(e)?DW.buildPath.call(this,t,e):kW.buildPath.call(this,t,e)},e.prototype.pointAt=function(t){return PW(this.shape)?DW.pointAt.call(this,t):kW.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var e=this.shape,n=PW(e)?[e.x2-e.x1,e.y2-e.y1]:kW.tangentAt.call(this,t);return N(n,n)},e}(Bl),RW=jW,NW=["fromSymbol","toSymbol"];function EW(t){return"_"+t+"Type"}function zW(t,e,n){var r=e.getItemVisual(n,t);if(!r||"none"===r)return r;var i=e.getItemVisual(n,t+"Size"),a=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=B_(i),u=V_(o||0,l);return r+l+u+(a||"")+(s||"")}function BW(t,e,n){var r=e.getItemVisual(n,t);if(r&&"none"!==r){var i=e.getItemVisual(n,t+"Size"),a=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=B_(i),u=V_(o||0,l),c=z_(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=null==a||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=t,c}}function VW(t){var e=new RW({name:"line",subPixelOptimize:!0});return FW(e.shape,t),e}function FW(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var HW=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createLine(e,n,r),i}return f(e,t),e.prototype._createLine=function(t,e,n){var r=t.hostModel,i=t.getItemLayout(e),a=t.getItemVisual(e,"z2"),o=VW(i);o.shape.percent=0,rh(o,{z2:Object(b["retrieve2"])(a,0),shape:{percent:1}},r,e),this.add(o),Object(b["each"])(NW,(function(n){var r=BW(n,t,e);this.add(r),this[EW(n)]=zW(n,t,e)}),this),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),a=t.getItemLayout(e),o={shape:{}};FW(o.shape,a),nh(i,o,r,e),Object(b["each"])(NW,(function(n){var r=zW(n,t,e),i=EW(n);if(this[i]!==r){this.remove(this.childOfName(n));var a=BW(n,t,e);this.add(a)}this[i]=r}),this),this._updateCommonStl(t,e,n)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,e,n){var r=t.hostModel,i=this.childOfName("line"),a=n&&n.emphasisLineStyle,o=n&&n.blurLineStyle,s=n&&n.selectLineStyle,l=n&&n.labelStatesModels,u=n&&n.emphasisDisabled,c=n&&n.focus,h=n&&n.blurScope;if(!n||t.hasItemOption){var d=t.getItemModel(e),p=d.getModel("emphasis");a=p.getModel("lineStyle").getLineStyle(),o=d.getModel(["blur","lineStyle"]).getLineStyle(),s=d.getModel(["select","lineStyle"]).getLineStyle(),u=p.get("disabled"),c=p.get("focus"),h=p.get("blurScope"),l=fh(d)}var f=t.getItemVisual(e,"style"),g=f.stroke;i.useStyle(f),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=a,i.ensureState("blur").style=o,i.ensureState("select").style=s,Object(b["each"])(NW,(function(t){var e=this.childOfName(t);if(e){e.setColor(g),e.style.opacity=f.opacity;for(var n=0;n<Xu.length;n++){var r=Xu[n],a=i.getState(r);if(a){var o=a.style||{},s=e.ensureState(r),l=s.style||(s.style={});null!=o.stroke&&(l[e.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity&&(l.opacity=o.opacity)}}e.markRedraw()}}),this);var y=r.getRawValue(e);ph(this,l,{labelDataIndex:e,labelFetcher:{getFormattedLabel:function(e,n){return r.getFormattedLabel(e,n,t.dataType)}},inheritColor:g||Xp.color.neutral99,defaultOpacity:f.opacity,defaultText:(null==y?t.getName(e):isFinite(y)?Qi(y,10):y)+""});var v=this.getTextContent();if(v){var m=l.normal;v.__align=v.style.align,v.__verticalAlign=v.style.verticalAlign,v.__position=m.get("position")||"middle";var x=m.get("distance");Object(b["isArray"])(x)||(x=[x,x]),v.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Fc(this,c,h,u)},e.prototype.highlight=function(){wc(this)},e.prototype.downplay=function(){Sc(this)},e.prototype.updateLayout=function(t,e){this.childOfName("line").stopAnimation(),this.setLinePoints(t.getItemLayout(e))},e.prototype.setLinePoints=function(t){var e=this.childOfName("line");FW(e.shape,t),e.dirty()},e.prototype.beforeUpdate=function(){var t=this,e=t.childOfName("fromSymbol"),n=t.childOfName("toSymbol"),r=t.getTextContent();if(e||n||r&&!r.ignore){var i=1,a=this.parent;while(a)a.scaleX&&(i/=a.scaleX),a=a.parent;var o=t.childOfName("line");if(this.__dirty||o.__dirty){var s=o.shape.percent,l=o.pointAt(0),u=o.pointAt(s),c=T([],u,l);if(N(c,c),e&&(e.setPosition(l),S(e,0),e.scaleX=e.scaleY=i*s,e.markRedraw()),n&&(n.setPosition(u),S(n,1),n.scaleX=n.scaleY=i*s,n.markRedraw()),r&&!r.ignore){r.x=r.y=0,r.originX=r.originY=0;var h=void 0,d=void 0,p=r.__labelDistance,f=p[0]*i,g=p[1]*i,y=s/2,v=o.tangentAt(y),m=[v[1],-v[0]],x=o.pointAt(y);m[1]>0&&(m[0]=-m[0],m[1]=-m[1]);var b=v[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var _=-Math.atan2(v[1],v[0]);u[0]<l[0]&&(_=Math.PI+_),r.rotation=_}var w=void 0;switch(r.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-g,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=g,d="top";break;default:w=0,d="middle"}switch(r.__position){case"end":r.x=c[0]*f+u[0],r.y=c[1]*g+u[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*f+l[0],r.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=f*b+l[0],r.y=l[1]+w,h=v[0]<0?"right":"left",r.originX=-f*b,r.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=x[0],r.y=x[1]+w,h="center",r.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-f*b+u[0],r.y=u[1]+w,h=v[0]>=0?"right":"left",r.originX=f*b,r.originY=-w;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||d,align:r.__align||h})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var r=o.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else t.attr("rotation",n)}},e}(vi),GW=HW,WW=function(){function t(t){this.group=new vi,this._LineCtor=t||GW}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=t,i||r.removeAll();var a=UW(t);t.diff(i).add((function(n){e._doAdd(t,n,a)})).update((function(n,r){e._doUpdate(i,t,r,n,a)})).remove((function(t){r.remove(i.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=UW(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||YW(t)||(t.incremental=n,t.ensureState("emphasis").hoverLayer=fx)}this._progressiveEls=[];for(var i=t.start;i<t.end;i++){var a=e.getItemLayout(i);if(ZW(a)){var o=new this._LineCtor(e,i,this._seriesScope);o.traverse(r),this.group.add(o),e.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(t){Xx(this._progressiveEls||this.group,t)},t.prototype._doAdd=function(t,e,n){var r=t.getItemLayout(e);if(ZW(r)){var i=new this._LineCtor(t,e,n);t.setItemGraphicEl(e,i),this.group.add(i)}},t.prototype._doUpdate=function(t,e,n,r,i){var a=t.getItemGraphicEl(n);ZW(e.getItemLayout(r))?(a?a.updateData(e,r,i):a=new this._LineCtor(e,r,i),e.setItemGraphicEl(r,a),this.group.add(a)):this.group.remove(a)},t}();function YW(t){return t.animators&&t.animators.length>0}function UW(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:fh(e)}}function XW(t){return isNaN(t[0])||isNaN(t[1])}function ZW(t){return t&&!XW(t[0])&&!XW(t[1])}var qW=WW,$W=[],KW=[],JW=[],QW=un,tY=V,eY=Math.abs;function nY(t,e,n){for(var r,i=t[0],a=t[1],o=t[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){$W[0]=QW(i[0],a[0],o[0],c),$W[1]=QW(i[1],a[1],o[1],c);var h=eY(tY($W,e)-l);h<s&&(s=h,r=c)}for(var d=0;d<32;d++){var p=r+u;KW[0]=QW(i[0],a[0],o[0],r),KW[1]=QW(i[1],a[1],o[1],r),JW[0]=QW(i[0],a[0],o[0],p),JW[1]=QW(i[1],a[1],o[1],p);h=tY(KW,e)-l;if(eY(h)<.01)break;var f=tY(JW,e)-l;u/=2,h<0?f>=0?r+=u:r-=u:f>=0?r-=u:r+=u}return r}function rY(t,e){var n=[],r=pn,i=[[],[],[]],a=[[],[]],o=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[S(l[0]),S(l[1])],l[2]&&l.__original.push(S(l[2])));var h=l.__original;if(null!=l[2]){if(w(i[0],h[0]),w(i[1],h[2]),w(i[2],h[1]),u&&"none"!==u){var d=yW(t.node1),p=nY(i,h[0],d*e);r(i[0][0],i[1][0],i[2][0],p,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],p,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){d=yW(t.node2),p=nY(i,h[1],d*e);r(i[0][0],i[1][0],i[2][0],p,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],p,n),i[1][1]=n[1],i[2][1]=n[2]}w(l[0],i[0]),w(l[1],i[2]),w(l[2],i[1])}else{if(w(a[0],h[0]),w(a[1],h[1]),T(o,a[1],a[0]),N(o,o),u&&"none"!==u){d=yW(t.node1);I(a[0],a[0],o,d*e)}if(c&&"none"!==c){d=yW(t.node2);I(a[1],a[1],o,-d*e)}w(l[0],a[0]),w(l[1],a[1])}}))}var iY=Ka();function aY(t){if(t)return iY(t).bridge}function oY(t,e){t&&(iY(t).bridge=e)}var sY=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=aW,e}return f(e,t),e.prototype.init=function(t,e){var n=new bL,r=new qW,i=this.group,a=new vi;this._controller=new _z(e.getZr()),a.add(n.group),a.add(r.group),i.add(a),this._symbolDraw=n,this._lineDraw=r,this._mainGroup=a,this._firstRender=!0},e.prototype.render=function(t,e,n){var r=this,i=QB(t),a=!1;this._model=t,this._api=n,this._active=!0;var o=this._mainGroup,s=this._getThumbnailInfo();s&&s.bridge.reset(n);var l=this._symbolDraw,u=this._lineDraw;i&&ZB(o,yB,i,this._firstRender?null:t),rY(t.getGraph(),gW(t));var c=t.getData();l.updateData(c);var h=t.getEdgeData();u.updateData(h),this._updateNodeAndLinkScale(),i&&pV(t,n,this._controller,(function(e,n,r){return t.coordinateSystem.containPoint([n,r])}),null),clearTimeout(this._layoutTimeout);var d=t.forceLayout,p=t.get(["force","layoutAnimation"]);d&&(a=!0,this._startForceLayoutIteration(d,n,p));var f=t.get("layout");c.graph.eachNode((function(e){var i=e.dataIndex,a=e.getGraphicEl(),o=e.getModel();if(a){a.off("drag").off("dragend");var s=o.get("draggable");s&&a.on("drag",(function(o){switch(f){case"force":d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,n,p),d.setFixed(i),c.setItemLayout(i,[a.x,a.y]);break;case"circular":c.setItemLayout(i,[a.x,a.y]),e.setLayout({fixed:!0},!0),xW(t,"symbolSize",e,[o.offsetX,o.offsetY]),r.updateLayout(t);break;case"none":default:c.setItemLayout(i,[a.x,a.y]),dW(t.getGraph(),t),r.updateLayout(t);break}})).on("dragend",(function(){d&&d.setUnfixed(i)})),a.setDraggable(s,!!o.get("cursor"));var l=o.get(["emphasis","focus"]);"adjacency"===l&&(wu(a).focus=e.getAdjacentDataIndices())}})),c.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(wu(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var g="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),y=c.getLayout("cx"),v=c.getLayout("cy");c.graph.eachNode((function(t){_W(t,g,y,v)})),this._firstRender=!1,a||this._renderThumbnail(t,n,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},e.prototype._startForceLayoutIteration=function(t,e,n){var r=this,i=!1;(function a(){t.step((function(t){r.updateLayout(r._model),!t&&i||(i=!0,r._renderThumbnail(r._model,e,r._symbolDraw,r._lineDraw)),(r._layouting=!t)&&(n?r._layoutTimeout=setTimeout(a,16):a())}))})()},e.prototype.__updateOnOwnRoam=function(t,e,n){var r=QB(e);this._active&&r&&(ZB(this._mainGroup,yB,r,null),mV(t)&&(this._updateNodeAndLinkScale(),rY(e.getGraph(),gW(e)),this._lineDraw.updateLayout(),n.updateLabelLayout()),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=gW(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){this._active&&(rY(t.getGraph(),gW(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var t=this._model,e=t.coordinateSystem;if("view"===e.type){var n=aY(t);if(n)return{bridge:n,coordSys:e}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(_B(null,t.coordSys),this._api)},e.prototype._renderThumbnail=function(t,e,n,r){var i=this._getThumbnailInfo();if(i){var a=new vi,o=n.group.children(),s=r.group.children(),l=new vi,u=new vi;a.add(u),a.add(l);for(var c=0;c<o.length;c++){var h=o[c],d=h.children()[0],p=h.x,f=h.y,g=Object(b["clone"])(d.shape),y=Object(b["extend"])(g,{width:d.scaleX,height:d.scaleY,x:p-d.scaleX/2,y:f-d.scaleY/2}),v=Object(b["clone"])(d.style),m=new d.constructor({shape:y,style:v,z2:151});u.add(m)}for(c=0;c<s.length;c++){h=s[c];var x=h.children()[0],_=(v=Object(b["clone"])(x.style),y=Object(b["clone"])(x.shape),new RW({style:v,shape:y,z2:151}));l.add(_)}i.bridge.renderContent({api:e,roamType:t.get("roam"),viewportRect:null,group:a,targetTrans:_B(null,i.coordSys)})}},e.type=aW,e}(fb),lY=sY,uY=Ao(aW,cY);function cY(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType(aW,(function(t){var n=t.getCategoriesData(),r=t.getGraph(),i=r.data,a=n.mapArray(n.getName);i.filterSelf((function(t){var n=i.getItemModel(t),r=n.getShallow("category");if(null!=r){Object(b["isNumber"])(r)&&(r=a[r]);for(var o=0;o<e.length;o++)if(!e[o].isSelected(r))return!1}return!0}))}))}var hY=Ao(aW,dY);function dY(t){var e={};t.eachSeriesByType(aW,(function(t){var n=t.getCategoriesData(),r=t.getData(),i={};n.each((function(r){var a=n.getName(r);i["ec-"+a]=r;var o=n.getItemModel(r),s=o.getModel("itemStyle").getItemStyle();s.fill||(s.fill=t.getColorFromPalette(a,e)),n.setItemVisual(r,"style",s);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++){var c=o.getShallow(l[u],!0);null!=c&&n.setItemVisual(r,l[u],c)}})),n.count()&&r.each((function(t){var e=r.getItemModel(t),a=e.getShallow("category");if(null!=a){Object(b["isString"])(a)&&(a=i["ec-"+a]);var o=n.getItemVisual(a,"style"),s=r.ensureUniqueItemVisual(t,"style");Object(b["extend"])(s,o);for(var l=["symbol","symbolSize","symbolKeepAspect"],u=0;u<l.length;u++)r.setItemVisual(t,l[u],n.getItemVisual(a,l[u]))}}))}))}function pY(t){t.registerChartView(lY),t.registerSeriesModel(sW),t.registerProcessor(uY),t.registerVisual(hY),t.registerVisual(uW),t.registerLayout(pW),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,wW),t.registerLayout(IW),t.registerCoordinateSystem("graphView",{dimensions:dV.dimensions,create:AW}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},b["noop"]),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},b["noop"]),yV(t,Ou,aW)}var fY="chord",gY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this.legendVisualProvider=new kR(b["bind"](this.getData,this),b["bind"](this.getRawData,this))},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links)},e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],r=t.data||t.nodes||[];if(r&&n){var i=XG(r,n,this,!0,a);return i.data}function a(t,e){var n=Vh.prototype.getModel;function r(t,e){var r=n.call(this,t,e);return r.resolveParentPath=i,r}function i(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=i,t.getModel=r,t}))}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){var r=this.getDataParams(t,n);if("edge"===n){var i=this.getData(),a=i.graph.getEdgeByIndex(t),o=i.getName(a.node1.dataIndex),s=i.getName(a.node2.dataIndex),l=[];return null!=o&&l.push(o),null!=s&&l.push(s),Fy("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return Fy("nameValue",{name:r.name,value:r.value,noValue:null==r.value})},e.prototype.getDataParams=function(e,n){var r=t.prototype.getDataParams.call(this,e,n);if("node"===n){var i=this.getData(),a=this.getGraph().getNodeByIndex(e);if(null==r.name&&(r.name=i.getName(e)),null==r.value){var o=a.getLayout().value;r.value=o}}return r},e.type="series."+fY,e.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},e}(vv),yY=gY,vY=function(t){function e(e,n,r){var i=t.call(this)||this;wu(i).dataType="node",i.z2=2;var a=new _u;return i.setTextContent(a),i.updateData(e,n,r,!0),i}return f(e,t),e.prototype.updateData=function(t,e,n,r){var i=this,a=t.graph.getNodeByIndex(e),o=t.hostModel,s=a.getModel(),l=s.getModel("emphasis"),u=t.getItemLayout(e),c=Object(b["extend"])(tR(s.getModel("itemStyle"),u,!0),u),h=this;if(isNaN(c.startAngle))h.setShape(c);else{r?h.setShape(c):nh(h,{shape:c},o,e);var d=Object(b["extend"])(tR(s.getModel("itemStyle"),u,!0),u);i.setShape(d),i.useStyle(t.getItemVisual(e,"style")),Yc(i,s),this._updateLabel(o,s,a),t.setItemGraphicEl(e,h),Yc(h,s,"itemStyle");var p=l.get("focus");Fc(this,"adjacency"===p?a.getAdjacentDataIndices():p,l.get("blurScope"),l.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var r=this.getTextContent(),i=n.getLayout(),a=(i.startAngle+i.endAngle)/2,o=Math.cos(a),s=Math.sin(a),l=e.getModel("label");r.ignore=!l.get("show");var u=fh(e),c=n.getVisual("style");ph(r,u,{labelFetcher:{getFormattedLabel:function(n,r,i,a,o,s){return t.getFormattedLabel(n,r,"node",a,Object(b["retrieve3"])(o,u.normal&&u.normal.get("formatter"),e.get("name")),s)}},labelDataIndex:n.dataIndex,defaultText:n.dataIndex+"",inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:"startArc"});var h,d=l.get("position")||"outside",p=l.get("distance")||0;h="outside"===d?i.r+p:(i.r+i.r0)/2,this.textConfig={inside:"outside"!==d};var f="outside"!==d?l.get("align")||"center":o>0?"left":"right",g="outside"!==d?l.get("verticalAlign")||"middle":s>0?"top":"bottom";r.attr({x:o*h+i.cx,y:s*h+i.cy,rotation:0,style:{align:f,verticalAlign:g}})},e}(pm),mY=vY,xY=(function(){function t(){this.s1=[0,0],this.s2=[0,0],this.sStartAngle=0,this.sEndAngle=0,this.t1=[0,0],this.t2=[0,0],this.tStartAngle=0,this.tEndAngle=0,this.cx=0,this.cy=0,this.r=0,this.clockwise=!0}}(),function(t){function e(e,n,r,i){var a=t.call(this)||this;return wu(a).dataType="edge",a.updateData(e,n,r,i,!0),a}return f(e,t),e.prototype.buildPath=function(t,e){t.moveTo(e.s1[0],e.s1[1]);var n=.7,r=e.clockwise;t.arc(e.cx,e.cy,e.r,e.sStartAngle,e.sEndAngle,!r),t.bezierCurveTo((e.cx-e.s2[0])*n+e.s2[0],(e.cy-e.s2[1])*n+e.s2[1],(e.cx-e.t1[0])*n+e.t1[0],(e.cy-e.t1[1])*n+e.t1[1],e.t1[0],e.t1[1]),t.arc(e.cx,e.cy,e.r,e.tStartAngle,e.tEndAngle,!r),t.bezierCurveTo((e.cx-e.t2[0])*n+e.t2[0],(e.cy-e.t2[1])*n+e.t2[1],(e.cx-e.s1[0])*n+e.s1[0],(e.cy-e.s1[1])*n+e.s1[1],e.s1[0],e.s1[1]),t.closePath()},e.prototype.updateData=function(t,e,n,r,i){var a=t.hostModel,o=e.graph.getEdgeByIndex(n),s=o.getLayout(),l=o.node1.getModel(),u=e.getItemModel(o.dataIndex),c=u.getModel("lineStyle"),h=u.getModel("emphasis"),d=h.get("focus"),p=Object(b["extend"])(tR(l.getModel("itemStyle"),s,!0),s),f=this;isNaN(p.sStartAngle)||isNaN(p.tStartAngle)?f.setShape(p):(i?(f.setShape(p),bY(f,o,t,c)):(lh(f),bY(f,o,t,c),nh(f,{shape:p},a,n)),Fc(this,"adjacency"===d?o.getAdjacentDataIndices():d,h.get("blurScope"),h.get("disabled")),Yc(f,u,"lineStyle"),e.setItemGraphicEl(o.dataIndex,f))},e}(Bl));function bY(t,e,n,r){var i=e.node1,a=e.node2,o=t.style;t.setStyle(r.getLineStyle());var s=r.get("color");switch(s){case"source":o.fill=n.getItemVisual(i.dataIndex,"style").fill,o.decal=i.getVisual("style").decal;break;case"target":o.fill=n.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"gradient":var l=n.getItemVisual(i.dataIndex,"style").fill,u=n.getItemVisual(a.dataIndex,"style").fill;if(Object(b["isString"])(l)&&Object(b["isString"])(u)){var c=t.shape,h=(c.s1[0]+c.s2[0])/2,d=(c.s1[1]+c.s2[1])/2,p=(c.t1[0]+c.t2[0])/2,f=(c.t1[1]+c.t2[1])/2;o.fill=new Hm(h,d,p,f,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var _Y=Math.PI/180,wY=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=fY,e}return f(e,t),e.prototype.init=function(t,e){},e.prototype.render=function(t,e,n){var r=t.getData(),i=this._data,a=this.group,o=-t.get("startAngle")*_Y;if(r.diff(i).add((function(t){var e=r.getItemLayout(t);if(e){var n=new mY(r,t,o);wu(n).dataIndex=t,a.add(n)}})).update((function(e,n){var s=i.getItemGraphicEl(n),l=r.getItemLayout(e);l?(s?s.updateData(r,e,o):s=new mY(r,e,o),a.add(s)):s&&sh(s,t,n)})).remove((function(e){var n=i.getItemGraphicEl(e);n&&sh(n,t,e)})).execute(),!i){var s=t.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=Zi(s[0],n.getWidth()),this.group.originY=Zi(s[1],n.getHeight()),rh(this.group,{scaleX:1,scaleY:1},t)}this._data=r,this.renderEdges(t,o)},e.prototype.renderEdges=function(t,e){var n=t.getData(),r=t.getEdgeData(),i=this._edgeData,a=this.group;r.diff(i).add((function(t){var i=new xY(n,r,t,e);wu(i).dataIndex=t,a.add(i)})).update((function(t,o){var s=i.getItemGraphicEl(o);s.updateData(n,r,t,e),a.add(s)})).remove((function(e){var n=i.getItemGraphicEl(e);n&&sh(n,t,e)})).execute(),this._edgeData=r},e.prototype.dispose=function(){},e.type=fY,e}(fb),SY=wY,MY=Math.PI/180,OY=Ao(fY,IY);function IY(t,e){t.eachSeriesByType(fY,(function(t){TY(t,e)}))}function TY(t,e){var n=t.getData(),r=n.graph,i=t.getEdgeData(),a=i.count();if(a){var o=Cp(t,e),s=o.cx,l=o.cy,u=o.r,c=o.r0,h=Math.max((t.get("padAngle")||0)*MY,0),d=Math.max((t.get("minAngle")||0)*MY,0),p=-t.get("startAngle")*MY,f=p+2*Math.PI,g=t.get("clockwise"),y=g?1:-1,v=[p,f];hl(v,!g);var m=v[0],x=v[1],b=x-m,_=0===n.getSum("value")&&0===i.getSum("value"),w=[],S=0;r.eachEdge((function(t){var e=_?1:t.getValue("value");_&&(e>0||d)&&(S+=2);var n=t.node1.dataIndex,r=t.node2.dataIndex;w[n]=(w[n]||0)+e,w[r]=(w[r]||0)+e}));var M=0;if(r.eachNode((function(t){var e=t.getValue("value");isNaN(e)||(w[t.dataIndex]=Math.max(e,w[t.dataIndex]||0)),!_&&(w[t.dataIndex]>0||d)&&S++,M+=w[t.dataIndex]||0})),0!==S&&0!==M){h*S>=Math.abs(b)&&(h=Math.max(0,(Math.abs(b)-d*S)/S)),(h+d)*S>=Math.abs(b)&&(d=(Math.abs(b)-h*S)/S);var O=(b-h*S*y)/M,I=0,T=0,C=0,A=1/0;r.eachNode((function(t){var e=w[t.dataIndex]||0,n=O*(M?e:1)*y;Math.abs(n)<d?I+=d-Math.abs(n):(A=Math.min(A,Math.abs(n)-d),T+=Math.abs(n)-d,C+=Math.abs(n)),t.setLayout({angle:n,value:e})}));var D=!1;if(I>T){var k=I/T;r.eachNode((function(t){var e=t.getLayout().angle;Math.abs(e)>=d?t.setLayout({angle:e*k,ratio:k},!0):t.setLayout({angle:d,ratio:0===d?1:e/d},!0)}))}else r.eachNode((function(t){if(!D){var e=t.getLayout().angle,n=Math.min(e/C,1),r=n*I;e-r<d&&(D=!0)}}));var L=I;r.eachNode((function(t){if(!(L<=0)){var e=t.getLayout().angle;if(e>d&&d>0){var n=D?1:Math.min(e/C,1),r=e-d,i=Math.min(r,Math.min(L,I*n));L-=i,t.setLayout({angle:e-i,ratio:(e-i)/e},!0)}else d>0&&t.setLayout({angle:d,ratio:0===e?1:d/e},!0)}}));var P=m,j=[];r.eachNode((function(t){var e=Math.max(t.getLayout().angle,d);t.setLayout({cx:s,cy:l,r0:c,r:u,startAngle:P,endAngle:P+e*y,clockwise:g},!0),j[t.dataIndex]=P,P+=(e+h)*y})),r.eachEdge((function(t){var e=_?1:t.getValue("value"),n=O*(M?e:1)*y,r=t.node1.dataIndex,i=j[r]||0,a=Math.abs((t.node1.getLayout().ratio||1)*n),o=i+a*y,u=[s+c*Math.cos(i),l+c*Math.sin(i)],h=[s+c*Math.cos(o),l+c*Math.sin(o)],d=t.node2.dataIndex,p=j[d]||0,f=Math.abs((t.node2.getLayout().ratio||1)*n),v=p+f*y,m=[s+c*Math.cos(p),l+c*Math.sin(p)],x=[s+c*Math.cos(v),l+c*Math.sin(v)];t.setLayout({s1:u,s2:h,sStartAngle:i,sEndAngle:o,t1:m,t2:x,tStartAngle:p,tEndAngle:v,cx:s,cy:l,r:c,value:e,clockwise:g}),j[r]=o,j[d]=v}))}}}function CY(t){t.registerChartView(SY),t.registerSeriesModel(yY),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,OY),t.registerProcessor(CR("chord"))}var AY=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),DY=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return f(e,t),e.prototype.getDefaultShape=function(){return new AY},e.prototype.buildPath=function(t,e){var n=Math.cos,r=Math.sin,i=e.r,a=e.width,o=e.angle,s=e.x-n(o)*a*(a>=i/3?1:2),l=e.y-r(o)*a*(a>=i/3?1:2);o=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(o)*a,e.y+r(o)*a),t.lineTo(e.x+n(e.angle)*i,e.y+r(e.angle)*i),t.lineTo(e.x-n(o)*a,e.y-r(o)*a),t.lineTo(s,l)},e}(Bl),kY=DY;function LY(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),a=Math.min(r,i),o=Zi(n[0],e.getWidth()),s=Zi(n[1],e.getHeight()),l=Zi(t.get("radius"),a/2);return{cx:o,cy:s,r:l}}function PY(t,e){var n=null==t?"":t+"";return e&&(Object(b["isString"])(e)?n=e.replace("{value}",n):Object(b["isFunction"])(e)&&(n=e(t))),n}var jY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var r=t.get(["axisLine","lineStyle","color"]),i=LY(t,n);this._renderMain(t,e,n,r,i),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,r,i){var a=this.group,o=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap"),h=c?qj:pm,d=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),g=[s,l];hl(g,!o),s=g[0],l=g[1];for(var y=l-s,v=s,m=[],x=0;d&&x<r.length;x++){var _=Math.min(Math.max(r[x][0],0),1);l=s+y*_;var w=new h({shape:{startAngle:v,endAngle:l,cx:i.cx,cy:i.cy,clockwise:o,r0:i.r-f,r:i.r},silent:!0});w.setStyle({fill:r[x][1]}),w.setStyle(p.getLineStyle(["color","width"])),m.push(w),v=l}m.reverse(),Object(b["each"])(m,(function(t){return a.add(t)}));var S=function(t){if(t<=0)return r[0][1];var e;for(e=0;e<r.length;e++)if(r[e][0]>=t&&(0===e?0:r[e-1][0])<t)return r[e][1];return r[e-1][1]};this._renderTicks(t,e,n,S,i,s,l,o,f),this._renderTitleAndDetail(t,e,n,S,i),this._renderAnchor(t,i),this._renderPointer(t,e,n,S,i,s,l,o,f)},e.prototype._renderTicks=function(t,e,n,r,i,a,o,s,l){for(var u,c,h=this.group,d=i.cx,p=i.cy,f=i.r,g=+t.get("min"),y=+t.get("max"),v=t.getModel("splitLine"),m=t.getModel("axisTick"),x=t.getModel("axisLabel"),_=t.get("splitNumber"),w=m.get("splitNumber"),S=Zi(v.get("length"),f),M=Zi(m.get("length"),f),O=a,I=(o-a)/_,T=I/w,C=v.getModel("lineStyle").getLineStyle(),A=m.getModel("lineStyle").getLineStyle(),D=v.get("distance"),k=0;k<=_;k++){if(u=Math.cos(O),c=Math.sin(O),v.get("show")){var L=D?D+l:l,P=new Cm({shape:{x1:u*(f-L)+d,y1:c*(f-L)+p,x2:u*(f-S-L)+d,y2:c*(f-S-L)+p},style:C,silent:!0});"auto"===C.stroke&&P.setStyle({stroke:r(k/_)}),h.add(P)}if(x.get("show")){L=x.get("distance")+D;var j=PY(Qi(k*(y-g)/_+g,ji),x.get("formatter")),R=r(k/_),N=u*(f-S-L)+d,E=c*(f-S-L)+p,z=x.get("rotate"),B=0;"radial"===z?(B=-O+2*Math.PI,B>Math.PI/2&&(B+=Math.PI)):"tangential"===z?B=-O-Math.PI/2:Object(b["isNumber"])(z)&&(B=z*Math.PI/180),0===B?h.add(new _u({style:gh(x,{text:j,x:N,y:E,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0})):h.add(new _u({style:gh(x,{text:j,x:N,y:E,verticalAlign:"middle",align:"center"},{inheritColor:R}),silent:!0,originX:N,originY:E,rotation:B}))}if(m.get("show")&&k!==_){L=m.get("distance");L=L?L+l:l;for(var V=0;V<=w;V++){u=Math.cos(O),c=Math.sin(O);var F=new Cm({shape:{x1:u*(f-L)+d,y1:c*(f-L)+p,x2:u*(f-M-L)+d,y2:c*(f-M-L)+p},silent:!0,style:A});"auto"===A.stroke&&F.setStyle({stroke:r((k+V/w)/_)}),h.add(F),O+=T}O-=T}else O+=I}},e.prototype._renderPointer=function(t,e,n,r,i,a,o,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],p=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),y=t.getData(),v=y.mapDimension("value"),m=+t.get("min"),x=+t.get("max"),_=[m,x],w=[a,o];function S(e,n){var r,a=y.getItemModel(e),o=a.getModel("pointer"),s=Zi(o.get("width"),i.r),l=Zi(o.get("length"),i.r),u=t.get(["pointer","icon"]),c=o.get("offsetCenter"),h=Zi(c[0],i.r),d=Zi(c[1],i.r),p=o.get("keepAspect");return r=u?z_(u,h-s/2,d-l,s,l,null,p):new kY({shape:{angle:-Math.PI/2,width:s,r:l,x:h,y:d}}),r.rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function M(t,e){var n=f.get("roundCap"),r=n?qj:pm,o=f.get("overlap"),u=o?f.get("width"):l/y.count(),c=o?i.r-u:i.r-(t+1)*u,h=o?i.r:i.r-t*u,d=new r({shape:{startAngle:a,endAngle:e,cx:i.cx,cy:i.cy,clockwise:s,r0:c,r:h}});return o&&(d.z2=Xi(y.get(v,t),[m,x],[100,0],!0)),d}(g||p)&&(y.diff(c).add((function(e){var n=y.get(v,e);if(p){var r=S(e,a);rh(r,{rotation:-((isNaN(+n)?w[0]:Xi(n,_,w,!0))+Math.PI/2)},t),u.add(r),y.setItemGraphicEl(e,r)}if(g){var i=M(e,a),o=f.get("clip");rh(i,{shape:{endAngle:Xi(n,_,w,o)}},t),u.add(i),Su(t.seriesIndex,y.dataType,e,i),d[e]=i}})).update((function(e,n){var r=y.get(v,e);if(p){var i=c.getItemGraphicEl(n),o=i?i.rotation:a,s=S(e,o);s.rotation=o,nh(s,{rotation:-((isNaN(+r)?w[0]:Xi(r,_,w,!0))+Math.PI/2)},t),u.add(s),y.setItemGraphicEl(e,s)}if(g){var l=h[n],m=l?l.shape.endAngle:a,x=M(e,m),b=f.get("clip");nh(x,{shape:{endAngle:Xi(r,_,w,b)}},t),u.add(x),Su(t.seriesIndex,y.dataType,e,x),d[e]=x}})).execute(),y.each((function(t){var e=y.getItemModel(t),n=e.getModel("emphasis"),i=n.get("focus"),a=n.get("blurScope"),o=n.get("disabled"),s=r(Xi(y.get(v,t),_,[0,1],!0));if(p){var l=y.getItemGraphicEl(t),u=y.getItemVisual(t,"style"),c=u.fill;if(l instanceof Xl){var h=l.style;l.useStyle(Object(b["extend"])({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},u))}else l.useStyle(u),"pointer"!==l.type&&l.setColor(c);l.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===l.style.fill&&l.setStyle("fill",s),l.z2EmphasisLift=0,Yc(l,e),Fc(l,i,a,o)}if(g){var f=d[t];f.useStyle(y.getItemVisual(t,"style")),f.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),"auto"===f.style.fill&&f.setStyle("fill",s),f.z2EmphasisLift=0,Yc(f,e),Fc(f,i,a,o)}})),this._progressEls=d)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor"),r=n.get("show");if(r){var i=n.get("size"),a=n.get("icon"),o=n.get("offsetCenter"),s=n.get("keepAspect"),l=z_(a,e.cx-i/2+Zi(o[0],e.r),e.cy-i/2+Zi(o[1],e.r),i,i,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},e.prototype._renderTitleAndDetail=function(t,e,n,r,i){var a=this,o=t.getData(),s=o.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new vi,h=[],d=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);o.diff(this._data).add((function(t){h[t]=new _u({silent:!0}),d[t]=new _u({silent:!0})})).update((function(t,e){h[t]=a._titleEls[e],d[t]=a._detailEls[e]})).execute(),o.each((function(e){var n=o.getItemModel(e),a=o.get(s,e),g=new vi,y=r(Xi(a,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),x=i.cx+Zi(m[0],i.r),b=i.cy+Zi(m[1],i.r),_=h[e];_.attr({z2:f?0:2,style:gh(v,{x:x,y:b,text:o.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),g.add(_)}var w=n.getModel("detail");if(w.get("show")){var S=w.get("offsetCenter"),M=i.cx+Zi(S[0],i.r),O=i.cy+Zi(S[1],i.r),I=Zi(w.get("width"),i.r),T=Zi(w.get("height"),i.r),C=t.get(["progress","show"])?o.getItemVisual(e,"style").fill:y,A=(_=d[e],w.get("formatter"));_.attr({z2:f?0:2,style:gh(w,{x:M,y:O,text:PY(a,A),width:isNaN(I)?null:I,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:C})}),Oh(_,{normal:w},a,(function(t){return PY(t,A)})),p&&Ih(_,e,o,t,{getFormattedLabel:function(t,e,n,r,i,o){return PY(o?o.interpolatedValue:a,A)}}),g.add(_)}c.add(g)})),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(fb),RY=jY,NY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return f(e,t),e.prototype.getInitialData=function(t,e){return AR(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,Xp.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:Xp.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:Xp.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:Xp.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:Xp.color.neutral00,borderWidth:0,borderColor:Xp.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:Xp.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:Xp.color.transparent,borderWidth:0,borderColor:Xp.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:Xp.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(vv),EY=NY;function zY(t){t.registerChartView(RY),t.registerSeriesModel(EY)}var BY="funnel",VY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new kR(b["bind"](this.getData,this),b["bind"](this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return AR(this,{coordDimensions:["value"],encodeDefaulter:b["curry"](rf,this)})},e.prototype._defaultLabelLine=function(t){Da(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),r=t.prototype.getDataParams.call(this,e),i=n.mapDimension("value"),a=n.getSum(i);return r.percent=a?+(n.get(i,e)/a*100).toFixed(2):0,r.$vars.push("percent"),r},e.type="series."+BY,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:Xp.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:Xp.color.primary}}},e}(vv),FY=VY,HY=["itemStyle","opacity"],GY=function(t){function e(e,n){var r=t.call(this)||this,i=r,a=new Mm,o=new _u;return i.setTextContent(o),r.setTextGuideLine(a),r.updateData(e,n,!0),r}return f(e,t),e.prototype.updateData=function(t,e,n){var r=this,i=t.hostModel,a=t.getItemModel(e),o=t.getItemLayout(e),s=a.getModel("emphasis"),l=a.get(HY);l=null==l?1:l,n||lh(r),r.useStyle(t.getItemVisual(e,"style")),r.style.lineJoin="round",n?(r.setShape({points:o.points}),r.style.opacity=0,rh(r,{style:{opacity:l}},i,e)):nh(r,{style:{opacity:l},shape:{points:o.points}},i,e),Yc(r,a),this._updateLabel(t,e),Fc(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),a=t.hostModel,o=t.getItemModel(e),s=t.getItemLayout(e),l=s.label,u=t.getItemVisual(e,"style"),c=u.fill;ph(i,fh(o),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:u.opacity,defaultText:t.getName(e)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}});var h=o.getModel("label"),d=h.get("color"),p="inherit"===d?c:null;n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:p,outsideFill:p});var f=l.linePoints;r.setShape({points:f}),n.textGuideLineConfig={anchor:f?new Et(f[0][0],f[0][1]):null},nh(i,{style:{x:l.x,y:l.y}},a,e),i.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),OA(n,IA(o),{stroke:c})},e}(_m),WY=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=BY,e.ignoreLabelLineUpdate=!0,e}return f(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._data,a=this.group;r.diff(i).add((function(t){var e=new GY(r,t);r.setItemGraphicEl(t,e),a.add(e)})).update((function(t,e){var n=i.getItemGraphicEl(e);n.updateData(r,t),a.add(n),r.setItemGraphicEl(t,n)})).remove((function(e){var n=i.getItemGraphicEl(e);sh(n,t,e)})).execute(),this._data=r},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=BY,e}(fb),YY=WY;function UY(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,(function(t){return t})),i=[],a="ascending"===e,o=0,s=t.count();o<s;o++)i[o]=o;return Object(b["isFunction"])(e)?i.sort(e):"none"!==e&&i.sort((function(t,e){return a?r[t]-r[e]:r[e]-r[t]})),i}function XY(t){var e=t.hostModel,n=$Y(e);t.each((function(e){var r,i,a,o,s=t.getItemModel(e),l=s.getModel("label"),u=l.get("position"),c=s.getModel("labelLine"),h=t.getItemLayout(e),d=h.points,p="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u;if(p)"insideLeft"===u?(i=(d[0][0]+d[3][0])/2+5,a=(d[0][1]+d[3][1])/2,r="left"):"insideRight"===u?(i=(d[1][0]+d[2][0])/2-5,a=(d[1][1]+d[2][1])/2,r="right"):(i=(d[0][0]+d[1][0]+d[2][0]+d[3][0])/4,a=(d[0][1]+d[1][1]+d[2][1]+d[3][1])/4,r="center"),o=[[i,a],[i,a]];else{var f=void 0,g=void 0,y=void 0,v=void 0,m=c.get("length");Object(b["isString"])(u)&&(!n&&Object(b["indexOf"])(["top","bottom"],u)>-1&&(u="left"),n&&Object(b["indexOf"])(["left","right"],u)>-1&&(u="bottom")),"left"===u?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,y=f-m,i=y-5,r="right"):"right"===u?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,y=f+m,i=y+5,r="left"):"top"===u?(f=(d[3][0]+d[0][0])/2,g=(d[3][1]+d[0][1])/2,v=g-m,a=v-5,r="center"):"bottom"===u?(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,v=g+m,a=v+5,r="center"):"rightTop"===u?(f=n?d[3][0]:d[1][0],g=n?d[3][1]:d[1][1],n?(v=g-m,a=v-5,r="center"):(y=f+m,i=y+5,r="top")):"rightBottom"===u?(f=d[2][0],g=d[2][1],n?(v=g+m,a=v+5,r="center"):(y=f+m,i=y+5,r="bottom")):"leftTop"===u?(f=d[0][0],g=n?d[0][1]:d[1][1],n?(v=g-m,a=v-5,r="center"):(y=f-m,i=y-5,r="right")):"leftBottom"===u?(f=n?d[1][0]:d[3][0],g=n?d[1][1]:d[2][1],n?(v=g+m,a=v+5,r="center"):(y=f-m,i=y-5,r="right")):(f=(d[1][0]+d[2][0])/2,g=(d[1][1]+d[2][1])/2,n?(v=g+m,a=v+5,r="center"):(y=f+m,i=y+5,r="left")),n?(y=f,i=y):(v=g,a=v),o=[[f,g],[y,v]]}h.label={linePoints:o,x:i,y:a,verticalAlign:"middle",textAlign:r,inside:p}}))}var ZY=Ao(BY,qY);function qY(t,e){t.eachSeriesByType(BY,(function(t){var n=t.getData(),r=n.mapDimension("value"),i=t.get("sort"),a=Lp(t,e),o=Ap(t.getBoxLayoutParams(),a.refContainer),s=$Y(t),l=o.width,u=o.height,c=UY(n,i),h=o.x,d=o.y,p=s?[Zi(t.get("minSize"),u),Zi(t.get("maxSize"),u)]:[Zi(t.get("minSize"),l),Zi(t.get("maxSize"),l)],f=n.getDataExtent(r),g=t.get("min"),y=t.get("max");null==g&&(g=Math.min(f[0],0)),null==y&&(y=f[1]);var v=t.get("funnelAlign"),m=t.get("gap"),x=s?l:u,b=(x-m*(n.count()-1))/n.count(),_=function(t,e){if(s){var i=n.get(r,t)||0,a=Xi(i,[g,y],p,!0),o=void 0;switch(v){case"top":o=d;break;case"center":o=d+(u-a)/2;break;case"bottom":o=d+(u-a);break}return[[e,o],[e,o+a]]}var c,f=n.get(r,t)||0,m=Xi(f,[g,y],p,!0);switch(v){case"left":c=h;break;case"center":c=h+(l-m)/2;break;case"right":c=h+l-m;break}return[[c,e],[c+m,e]]};"ascending"===i&&(b=-b,m=-m,s?h+=l:d+=u,c=c.reverse());for(var w=0;w<c.length;w++){var S=c[w],M=c[w+1],O=n.getItemModel(S);if(s){var I=O.get(["itemStyle","width"]);null==I?I=b:(I=Zi(I,l),"ascending"===i&&(I=-I));var T=_(S,h),C=_(M,h+I);h+=I+m,n.setItemLayout(S,{points:T.concat(C.slice().reverse())})}else{var A=O.get(["itemStyle","height"]);null==A?A=b:(A=Zi(A,u),"ascending"===i&&(A=-A));T=_(S,d),C=_(M,d+A);d+=A+m,n.setItemLayout(S,{points:T.concat(C.slice().reverse())})}}XY(n)}))}function $Y(t){return"horizontal"===t.get("orient")}function KY(t){t.registerChartView(YY),t.registerSeriesModel(FY),t.registerLayout(ZY),t.registerProcessor(CR(BY))}var JY=.3,QY=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new vi,n._initialized=!1,n}return f(e,t),e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,e,n,r){var i=this._dataGroup;this._progressiveEls=[],i.removeAll();var a=t.getData(),o=this._data,s=t.coordinateSystem,l=s.dimensions,u=rU(t);function c(t){var e=nU(a,i,t,l,s);iU(e,a,t,u)}function h(e,n){var r=o.getItemGraphicEl(n);i.add(r);var c=eU(a,e,l,s);a.setItemGraphicEl(e,r),nh(r,{shape:{points:c}},t,e),lh(r),iU(r,a,e,u)}function d(t){var e=o.getItemGraphicEl(t);i.remove(e)}if(a.diff(o).add(c).update(h).remove(d).execute(),!this._initialized){this._initialized=!0;var p=tU(s,t,(function(){setTimeout((function(){i.removeClipPath()}))}));i.setClipPath(p)}this._data=a},e.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,e,n){for(var r=e.getData(),i=e.coordinateSystem,a=this._progressiveEls=[],o=t.start;o<t.end;o++){var s=nU(r,this._dataGroup,o,i.dimensions,i);s.incremental=To(e),iU(s,r,o,rU(e)),a.push(s)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(fb);function tU(t,e,n){var r=t.model,i=t.getRect(),a=new nu({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o="horizontal"===r.get("layout")?"width":"height";return a.setShape(o,0),rh(a,{shape:{width:i.width,height:i.height}},e,n),a}function eU(t,e,n,r){for(var i=[],a=0;a<n.length;a++){var o=n[a],s=t.get(t.mapDimension(o),e);aU(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function nU(t,e,n,r,i){var a=eU(t,n,r,i),o=new Mm({shape:{points:a},z2:10});return e.add(o),t.setItemGraphicEl(n,o),o}function rU(t){var e=t.get("smooth",!0);return!0===e&&(e=JY),e=ba(e),Object(b["eqNaN"])(e)&&(e=0),{smooth:e}}function iU(t,e,n,r){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",r.smooth);var i=e.getItemModel(n),a=i.getModel("emphasis");Yc(t,i,"lineStyle"),Fc(t,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function aU(t,e){return"category"===e?null==t:null==t||isNaN(t)}var oU=QY,sU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return f(e,t),e.prototype.getInitialData=function(t,e){return OO(null,this,{useEncodeDefaulter:Object(b["bind"])(lU,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var e=this.coordinateSystem,n=this.getData(),r=[];return e.eachActiveState(n,(function(e,i){t===e&&r.push(n.getRawIndex(i))})),r},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:300,smooth:!1,animationEasing:"linear"},e}(vv);function lU(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return Object(b["each"])(e.dimensions,(function(t){var e=uU(t);n[t]=e})),n}}function uU(t){return+t.replace("dim","")}var cU=sU,hU=["lineStyle","opacity"],dU={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,r={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,e){n.eachActiveState(e,(function(t,n){var i=r[t];if("normal"===t&&e.hasItemOption){var a=e.getItemModel(n).get(hU,!0);null!=a&&(i=a)}var o=e.ensureUniqueItemVisual(n,"style");o.opacity=i}),t.start,t.end)}}}},pU=dU;function fU(t){gU(t),yU(t)}function gU(t){if(!t.parallel){var e=!1;b["each"](t.series,(function(t){t&&"parallel"===t.type&&(e=!0)})),e&&(t.parallel=[{}])}}function yU(t){var e=Aa(t.parallelAxis);b["each"](e,(function(e){if(b["isObject"](e)){var n=e.parallelIndex||0,r=Aa(t.parallel)[n];r&&r.parallelAxisDefault&&b["merge"](e,r.parallelAxisDefault,!1)}}))}var vU=5,mU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},Object(b["each"])(xU,(function(t,e){n.getZr().on(e,this._handlers[e]=Object(b["bind"])(t,this))}),this)),xb(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,e){bb(this,"_throttledDispatchExpand"),Object(b["each"])(this._handlers,(function(t,n){e.getZr().off(n,t)})),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(Object(b["extend"])({type:"parallelAxisExpand"},t))},e.type="parallel",e}(xv),xU={mousedown:function(t){bU(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(bU(this,"click")&&e){var n=[t.offsetX,t.offsetY],r=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(r>vU)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&bU(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function bU(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var _U=mU,wU="parallel",SU=wU,MU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&b["merge"](e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){b["each"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[],n=b["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this);b["each"](n,(function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)}))},e.type=SU,e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(Hp),OU=MU,IU=function(t){function e(e,n,r,i,a){var o=t.call(this,e,n,r)||this;return o.type=i||"value",o.axisIndex=a,o}return f(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(JC),TU=IU;function CU(t,e,n,r,i,a){t=t||0;var o=la(n[1],-n[0]);if(null!=i&&(i=DU(i,[0,o])),null!=a&&(a=Math.max(a,null!=i?i:0)),"all"===r){var s=Math.abs(la(e[1],-e[0]));s=DU(s,[0,o]),i=a=DU(s,[i,a]),r=0}e[0]=DU(e[0],n),e[1]=DU(e[1],n);var l=AU(e,r);e[r]+=t;var u,c=i||0,h=n.slice();return l.sign<0?h[0]=la(h[0],c):h[1]=la(h[1],-c),e[r]=DU(e[r],h),u=AU(e,r),null!=i&&(u.sign!==l.sign||u.span<i)&&(e[1-r]=la(e[r],l.sign*i)),u=AU(e,r),null!=a&&u.span>a&&(e[1-r]=la(e[r],u.sign*a)),e}function AU(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 DU(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var kU=function(){function t(t,e,n){this.type=wU,this._axesMap=Object(b["createHashMap"])(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=t.dimensions,i=t.parallelAxisIndex;Object(b["each"])(r,(function(t,n){var r=i[n],a=e.getComponent("parallelAxis",r),o=NI(a),s=this._axesMap.set(t,new TU(t,EI(a,o,!1),[0,0],o,r));s.onBand=eT(s.scale,a),s.inverse=a.get("inverse"),a.axis=s,s.model=a,s.coordinateSystem=a.coordinateSystem=this}),this)},t.prototype.update=function(t,e){Object(b["each"])(this.dimensions,(function(t){var e=this._axesMap.get(t);zT(e,CT),$T(e)}),this)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,r=e.layoutBase,i=e.pixelDimIndex,a=t[1-i],o=t[i];return a>=n&&a<=n+e.axisLength&&o>=r&&o<=r+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype.resize=function(t,e){var n=Lp(t,e).refContainer;this._rect=Ap(t.getBoxLayoutParams(),n),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,r=["x","y"],i=["width","height"],a=e.get("layout"),o="horizontal"===a?0:1,s=n[i[o]],l=[0,s],u=this.dimensions.length,c=LU(e.get("axisExpandWidth"),l),h=LU(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,p=e.get("axisExpandWindow");if(p)t=LU(p[1]-p[0],l),p[1]=p[0]+t;else{t=LU(c*(h-1),l);var f=e.get("axisExpandCenter")||Vi(u/2);p=[c*f-t/2],p[1]=p[0]+t}var g=(s-t)/(u-h);g<3&&(g=0);var y=[Vi(Qi(p[0]/c,1))+1,Fi(Qi(p[1]/c,1))-1],v=g/c*p[0];return{layout:a,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[i[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;e.each((function(t){var e=[0,r.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),Object(b["each"])(n,(function(e,n){var a=(r.axisExpandable?jU:PU)(n,r),o={horizontal:{x:a.position,y:r.axisLength},vertical:{x:0,y:a.position}},s={horizontal:Yi/2,vertical:0},l=[o[i].x+t.x,o[i].y+t.y],u=s[i],c=Tt();Lt(c,c,u),kt(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:a.axisNameAvailableWidth,axisLabelShow:a.axisLabelShow,nameTruncateMaxWidth:a.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,r){null==n&&(n=0),null==r&&(r=t.count());var i=this._axesMap,a=this.dimensions,o=[],s=[];Object(b["each"])(a,(function(e){o.push(t.mapDimension(e)),s.push(i.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;u<r;u++){var c=void 0;if(l){c="active";for(var h=t.getValues(o,u),d=0,p=a.length;d<p;d++){var f=s[d].getActiveState(h[d]);if("inactive"===f){c="inactive";break}}}else c="normal";e(c,u)}},t.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,r=0,i=t.length;r<i;r++)"normal"!==e.get(t[r]).model.getActiveState()&&(n=!0);return n},t.prototype.axisCoordToPoint=function(t,e){var n=this._axesLayout[e];return Dx([t,0],n.transform)},t.prototype.getAxisLayout=function(t){return Object(b["clone"])(this._axesLayout[t])},t.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,r=e.axisExpandWindow.slice(),i=r[1]-r[0],a=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:r};var o,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),h=null!=c[0];if(u)h&&u&&s<i*c[0]?(l="jump",o=s-i*c[2]):h&&u&&s>i*(1-c[0])?(l="jump",o=s-i*(1-c[2])):(o=s-i*c[1])>=0&&(o=s-i*(1-c[1]))<=0&&(o=0),o*=e.axisExpandWidth/u,o?CU(o,r,a,"all"):l="none";else{var d=r[1]-r[0],p=a[1]*s/d;r=[Ei(0,p-d/2)],r[1]=Ni(a[1],r[0]+d),r[0]=r[1]-d}return{axisExpandWindow:r,behavior:l}},t}();function LU(t,e){return Ni(Ei(t,e[0]),e[1])}function PU(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function jU(t,e){var n,r,i=e.layoutLength,a=e.axisExpandWidth,o=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t<l[0]?(n=t*s,r=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*a-e.axisExpandWindow[0],u=a,c=!0):(n=i-(o-1-t)*s,r=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:c,nameTruncateMaxWidth:r}}var RU=kU;function NU(t,e){var n=[];return t.eachComponent(SU,(function(r,i){var a=new RU(r,t,e);a.name="parallel_"+i,a.resize(r,e),r.coordinateSystem=a,a.model=r,n.push(a)})),t.eachSeries((function(t){if(t.get("coordinateSystem")===wU){var e=t.getReferringComponents(SU,eo).models[0],n=t.coordinateSystem=e.coordinateSystem;n&&Object(b["each"])(n.dimensions,(function(e){ST(n.getAxis(e),t,wU)}))}})),n}var EU={create:NU},zU=EU,BU=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return f(e,t),e.prototype.getAreaSelectStyle=function(){return Yo([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=b["clone"](t);if(e)for(var n=e.length-1;n>=0;n--)ea(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var r=0,i=e.length;r<i;r++)if(e[r][0]<=t&&t<=e[r][1])return"active";return"inactive"},e}(Hp);b["mixin"](BU,nT);var VU=BU,FU=!0,HU=Math.min,GU=Math.max,WU=Math.pow,YU=1e4,UU=6,XU=6,ZU="globalPan",qU={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},$U={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},KU={brushStyle:{lineWidth:2,stroke:Xp.color.backgroundTint,fill:Xp.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},JU=0,QU=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new vi,n._uid="brushController_"+JU++,Object(b["each"])(kX,(function(t,e){this._handlers[e]=Object(b["bind"])(t,this)}),n),n}return f(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||az(e,ZU,this._uid),Object(b["each"])(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=Object(b["merge"])(Object(b["clone"])(KU),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;oz(t,ZU,this._uid),Object(b["each"])(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Object(b["each"])(t,(function(t){e[t.panelId]=Object(b["clone"])(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Object(b["map"])(t,(function(t){return Object(b["merge"])(Object(b["clone"])(KU),t,!0)}));var e="\0-brush-index-",n=this._covers,r=this._covers=[],i=this,a=this._creatingCover;return new kM(n,t,s,o).add(l).update(l).remove(u).execute(),this;function o(t,n){return(null!=t.id?t.id:e+n)+"-"+t.brushType}function s(t,e){return o(t.__brushOption,e)}function l(e,o){var s=t[e];if(null!=o&&n[o]===a)r[e]=n[o];else{var l=r[e]=null!=o?(n[o].__brushOption=s,n[o]):eX(i,tX(i,s));iX(i,l)}}function u(t){n[t]!==a&&i.group.remove(n[t])}},e.prototype.unmount=function(){return this.enableBrush(!1),lX(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}($);function tX(t,e){var n=jX[e.brushType].createCover(t,e);return n.__brushOption=e,rX(n,e),t.group.add(n),n}function eX(t,e){var n=aX(e);return n.endCreating&&(n.endCreating(t,e),rX(e,e.__brushOption)),e}function nX(t,e){var n=e.__brushOption;aX(e).updateCoverShape(t,e,n.range,n)}function rX(t,e){var n=e.z;null==n&&(n=YU),t.traverse((function(t){t.z=n,t.z2=n}))}function iX(t,e){aX(e).updateCommon(t,e),nX(t,e)}function aX(t){return jX[t.__brushOption.brushType]}function oX(t,e,n){var r,i=t._panels;if(!i)return FU;var a=t._transform;return Object(b["each"])(i,(function(t){t.isTargetByCursor(e,n,a)&&(r=t)})),r}function sX(t,e){var n=t._panels;if(!n)return FU;var r=e.__brushOption.panelId;return null!=r?n[r]:FU}function lX(t){var e=t._covers,n=e.length;return Object(b["each"])(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function uX(t,e){var n=Object(b["map"])(t._covers,(function(t){var e=t.__brushOption,n=Object(b["clone"])(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function cX(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],a=n[1]-r[1],o=WU(i*i+a*a,.5);return o>UU}function hX(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function dX(t,e,n,r){var i=new vi;return i.add(new nu({name:"main",style:yX(n),silent:!0,draggable:!0,cursor:"move",drift:Object(b["curry"])(_X,t,e,i,["n","s","w","e"]),ondragend:Object(b["curry"])(uX,e,{isEnd:!0})})),Object(b["each"])(r,(function(n){i.add(new nu({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(b["curry"])(_X,t,e,i,n),ondragend:Object(b["curry"])(uX,e,{isEnd:!0})}))})),i}function pX(t,e,n,r){var i=r.brushStyle.lineWidth||0,a=GU(i,XU),o=n[0][0],s=n[1][0],l=o-i/2,u=s-i/2,c=n[0][1],h=n[1][1],d=c-a+i/2,p=h-a+i/2,f=c-o,g=h-s,y=f+i,v=g+i;gX(t,e,"main",o,s,f,g),r.transformable&&(gX(t,e,"w",l,u,a,v),gX(t,e,"e",d,u,a,v),gX(t,e,"n",l,u,y,a),gX(t,e,"s",l,p,y,a),gX(t,e,"nw",l,u,a,a),gX(t,e,"ne",d,u,a,a),gX(t,e,"sw",l,p,a,a),gX(t,e,"se",d,p,a,a))}function fX(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(yX(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Object(b["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=e.childOfName(n.join("")),a=1===n.length?xX(t,n[0]):bX(t,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?$U[a]+"-resize":null})}))}function gX(t,e,n,r,i,a,o){var s=e.childOfName(n);s&&s.setShape(OX(MX(t,e,[[r,i],[r+a,i+o]])))}function yX(t){return Object(b["defaults"])({strokeNoScale:!0},t.brushStyle)}function vX(t,e,n,r){var i=[HU(t,n),HU(e,r)],a=[GU(t,n),GU(e,r)];return[[i[0],a[0]],[i[1],a[1]]]}function mX(t){return Ax(t.group)}function xX(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=kx(n[e],mX(t));return r[i]}function bX(t,e){var n=[xX(t,e[0]),xX(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function _X(t,e,n,r,i,a){var o=n.__brushOption,s=t.toRectRange(o.range),l=SX(e,i,a);Object(b["each"])(r,(function(t){var e=qU[t];s[e[0]][e[1]]+=l[e[0]]})),o.range=t.fromRectRange(vX(s[0][0],s[1][0],s[0][1],s[1][1])),iX(e,n),uX(e,{isEnd:!1})}function wX(t,e,n,r){var i=e.__brushOption.range,a=SX(t,n,r);Object(b["each"])(i,(function(t){t[0]+=a[0],t[1]+=a[1]})),iX(t,e),uX(t,{isEnd:!1})}function SX(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function MX(t,e,n){var r=sX(t,e);return r&&r!==FU?r.clipPath(n,t._transform):Object(b["clone"])(n)}function OX(t){var e=HU(t[0][0],t[1][0]),n=HU(t[0][1],t[1][1]),r=GU(t[0][0],t[1][0]),i=GU(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:i-n}}function IX(t,e,n){if(t._brushType&&!PX(t,e.offsetX,e.offsetY)){var r=t._zr,i=t._covers,a=oX(t,e,n);if(!t._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===FU||s.panelId===a.panelId)&&jX[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle("crosshair")}}function TX(t){var e=t.event;e.preventDefault&&e.preventDefault()}function CX(t,e,n){return t.childOfName("main").contain(e,n)}function AX(t,e,n,r){var i,a=t._creatingCover,o=t._creatingPanel,s=t._brushOption;if(t._track.push(n.slice()),cX(t)||a){if(o&&!a){"single"===s.brushMode&&lX(t);var l=Object(b["clone"])(s);l.brushType=DX(l.brushType,o),l.panelId=o===FU?null:o.panelId,a=t._creatingCover=tX(t,l),t._covers.push(a)}if(a){var u=jX[DX(t._brushType,o)],c=a.__brushOption;c.range=u.getCreatingRange(MX(t,a,t._track)),r&&(eX(t,a),u.updateCommon(t,a)),nX(t,a),i={isEnd:r}}}else r&&"single"===s.brushMode&&s.removeOnClick&&oX(t,e,n)&&lX(t)&&(i={isEnd:r,removeOnClick:!0});return i}function DX(t,e){return"auto"===t?e.defaultBrushType:t}var kX={mousedown:function(t){if(this._dragging)LX(this,t);else if(!t.target||!t.target.draggable){TX(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=oX(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(IX(this,t,r),this._dragging){TX(t);var i=AX(this,t,r,!1);i&&uX(this,i)}},mouseup:function(t){LX(this,t)}};function LX(t,e){if(t._dragging){TX(e);var n=e.offsetX,r=e.offsetY,i=t.group.transformCoordToLocal(n,r),a=AX(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,a&&uX(t,a)}}function PX(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var jX={lineX:RX(0),lineY:RX(1),rect:{createCover:function(t,e){function n(t){return t}return dX({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=hX(t);return vX(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){pX(t,e,n,r)},updateCommon:fX,contain:CX},polygon:{createCover:function(t,e){var n=new vi;return n.add(new Mm({name:"main",style:yX(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new _m({name:"main",draggable:!0,drift:Object(b["curry"])(wX,t,e),ondragend:Object(b["curry"])(uX,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:MX(t,e,n)})},updateCommon:fX,contain:CX}};function RX(t){return{createCover:function(e,n){return dX({toRectRange:function(e){var n=[e,[0,100]];return t&&n.reverse(),n},fromRectRange:function(e){return e[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=hX(e),r=HU(n[0][t],n[1][t]),i=GU(n[0][t],n[1][t]);return[r,i]},updateCoverShape:function(e,n,r,i){var a,o=sX(e,n);if(o!==FU&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(t);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,a];t&&l.reverse(),pX(e,n,l,i)},updateCommon:fX,contain:CX}}var NX=QU;function EX(t){return t=VX(t),function(e){return Rx(e,t)}}function zX(t,e){return t=VX(t),function(n){var r=null!=e?e:n,i=r?t.width:t.height,a=r?t.x:t.y;return[a,a+(i||0)]}}function BX(t,e,n){var r=VX(t);return function(t,i){return r.contain(i[0],i[1])&&!uz(t,e,n)}}function VX(t){return ue.create(t)}var FX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(e,n){t.prototype.init.apply(this,arguments),(this._brushController=new NX(n.getZr())).on("brush",b["bind"](this._onBrush,this))},e.prototype.render=function(t,e,n,r){if(!HX(t,e,r)){this.axisModel=t,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new vi,this.group.add(this._axisGroup),t.get("show")){var a=WX(t,e),o=a.coordinateSystem,s=t.getAreaSelectStyle(),l=s.width,u=t.axis.dim,c=o.getAxisLayout(u),h=b["extend"]({strokeContainThreshold:l},c),d=new lj(t,n,h);d.build(),this._axisGroup.add(d.group),this._refreshBrushController(h,s,t,a,l,n),jx(i,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,e,n,r,i,a){var o=n.axis.getExtent(),s=o[1]-o[0],l=Math.min(30,.1*Math.abs(s)),u=ue.create({x:o[0],y:-i/2,width:s,height:i});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:EX(u),isTargetByCursor:BX(u,a,r),getLinearBrushOtherExtent:zX(u,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(GX(n))},e.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,r=n.axis,i=b["map"](e,(function(t){return[r.coordToData(t.range[0],!0),r.coordToData(t.range[1],!0)]}));(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(xv);function HX(t,e,n){return n&&"axisAreaSelect"===n.type&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function GX(t){var e=t.axis;return b["map"](t.activeIntervals,(function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}}))}function WX(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var YX=FX,UX={type:"axisAreaSelect",event:"axisAreaSelected"};function XX(t){t.registerAction(UX,(function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},(function(e){e.axis.model.setActiveIntervals(t.intervals)}))})),t.registerAction("parallelAxisExpand",(function(t,e){e.eachComponent({mainType:"parallel",query:t},(function(e){e.setAxisExpand(t)}))}))}var ZX={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function qX(t){t.registerComponentView(_U),t.registerComponentModel(OU),t.registerCoordinateSystem("parallel",zU),t.registerPreprocessor(fU),t.registerComponentModel(VU),t.registerComponentView(YX),mN(t,"parallel",VU,ZX),XX(t)}function $X(t){TM(qX),t.registerChartView(oU),t.registerSeriesModel(cU),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,pU)}var KX="sankey",JX=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],r=t.data||t.nodes||[],i=t.levels||[];this.levelModels=[];for(var a=this.levelModels,o=0;o<i.length;o++)null!=i[o].depth&&i[o].depth>=0&&(a[i[o].depth]=new Vh(i[o],this,e));var s=XG(r,n,this,!0,l);return s.data;function l(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getData().getItemLayout(e);if(r){var i=r.depth,a=n.levelModels[i];a&&(t.parentModel=a)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,r=n.getGraph().getEdgeByIndex(e),i=r.node1.getLayout();if(i){var a=i.depth,o=n.levelModels[a];o&&(t.parentModel=o)}return t}))}},e.prototype.setNodePosition=function(t,e){var n=this.option.data||this.option.nodes,r=n[t];r.localX=e[0],r.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function r(t){return isNaN(t)||null==t}if("edge"===n){var i=this.getDataParams(t,n),a=i.data,o=i.value,s=a.source+" -- "+a.target;return Fy("nameValue",{name:s,value:o,noValue:r(o)})}var l=this.getGraph().getNodeByIndex(t),u=l.getLayout().value,c=this.getDataParams(t,n).data.name;return Fy("nameValue",{name:null!=c?c+"":null,value:u,noValue:r(u)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var r=t.prototype.getDataParams.call(this,e,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(e),a=i.getLayout().value;r.value=a}return r},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+KX,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:Xp.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:Xp.color.primary}},animationEasing:"linear",animationDuration:1e3},e}(vv),QX=JX,tZ=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),eZ=function(t){function e(e){return t.call(this,e)||this}return f(e,t),e.prototype.getDefaultShape=function(){return new tZ},e.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},e.prototype.highlight=function(){wc(this)},e.prototype.downplay=function(){Sc(this)},e}(Bl),nZ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=KX,e._mainGroup=new vi,e}return f(e,t),e.prototype.init=function(t,e){this._controller=new _z(e.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,e,n){var r=t.getGraph(),i=this._mainGroup,a=t.layoutInfo,o=a.width,s=a.height,l=t.getData(),u=t.getData("edge"),c=t.get("orient");i.removeAll(),i.x=a.x,i.y=a.y,this._updateViewCoordSys(t,n),pV(t,n,this._controller,fV(i),null),r.eachEdge((function(e){var n=new eZ,r=wu(n);r.dataIndex=e.dataIndex,r.seriesIndex=t.seriesIndex,r.dataType="edge";var a,l,h,d,p,f,g,y,v=e.getModel(),m=v.getModel("lineStyle"),x=m.get("curveness"),_=e.node1.getLayout(),w=e.node1.getModel(),S=w.get("localX"),M=w.get("localY"),O=e.node2.getLayout(),I=e.node2.getModel(),T=I.get("localX"),C=I.get("localY"),A=e.getLayout();n.shape.extent=Math.max(1,A.dy),n.shape.orient=c,"vertical"===c?(a=(null!=S?S*o:_.x)+A.sy,l=(null!=M?M*s:_.y)+_.dy,h=(null!=T?T*o:O.x)+A.ty,d=null!=C?C*s:O.y,p=a,f=l*(1-x)+d*x,g=h,y=l*x+d*(1-x)):(a=(null!=S?S*o:_.x)+_.dx,l=(null!=M?M*s:_.y)+A.sy,h=null!=T?T*o:O.x,d=(null!=C?C*s:O.y)+A.ty,p=a*(1-x)+h*x,f=l,g=a*x+h*(1-x),y=d),n.setShape({x1:a,y1:l,x2:h,y2:d,cpx1:p,cpy1:f,cpx2:g,cpy2:y}),n.useStyle(m.getItemStyle()),rZ(n.style,c,e);var D=""+v.get("value"),k=fh(v,"edgeLabel");ph(n,k,{labelFetcher:{getFormattedLabel:function(e,n,r,i,a,o){return t.getFormattedLabel(e,n,"edge",i,Object(b["retrieve3"])(a,k.normal&&k.normal.get("formatter"),D),o)}},labelDataIndex:e.dataIndex,defaultText:D}),n.setTextConfig({position:"inside"});var L=v.getModel("emphasis");Yc(n,v,"lineStyle",(function(t){var n=t.getItemStyle();return rZ(n,c,e),n})),i.add(n),u.setItemGraphicEl(e.dataIndex,n);var P=L.get("focus");Fc(n,"adjacency"===P?e.getAdjacentDataIndices():"trajectory"===P?e.getTrajectoryDataIndices():P,L.get("blurScope"),L.get("disabled"))})),r.eachNode((function(e){var n=e.getLayout(),r=e.getModel(),a=r.get("localX"),u=r.get("localY"),c=r.getModel("emphasis"),h=r.get(["itemStyle","borderRadius"])||0,d=new nu({shape:{x:null!=a?a*o:n.x,y:null!=u?u*s:n.y,width:n.dx,height:n.dy,r:h},style:r.getModel("itemStyle").getItemStyle(),z2:10});ph(d,fh(r),{labelFetcher:{getFormattedLabel:function(e,n){return t.getFormattedLabel(e,n,"node")}},labelDataIndex:e.dataIndex,defaultText:e.id}),d.disableLabelAnimation=!0,d.setStyle("fill",e.getVisual("color")),d.setStyle("decal",e.getVisual("style").decal),Yc(d,r),i.add(d),l.setItemGraphicEl(e.dataIndex,d),wu(d).dataType="node";var p=c.get("focus");Fc(d,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,c.get("blurScope"),c.get("disabled"))})),l.eachItemGraphicEl((function(e,r){var i=l.getItemModel(r);i.get("draggable")&&(e.drift=function(e,i){this.shape.x+=e,this.shape.y+=i,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:l.getRawIndex(r),localX:this.shape.x/o,localY:this.shape.y/s})},e.draggable=!0,e.cursor="move")})),!this._data&&t.isAnimationEnabled()&&i.setClipPath(iZ(i.getBoundingRect(),t,(function(){i.removeClipPath()}))),this._data=t.getData(),this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,e,n){ZB(this.group,yB,e.coordinateSystem,null)},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype._updateViewCoordSys=function(t,e){var n=t.layoutInfo,r=t.coordinateSystem=xV(t,e,n.x,n.y,n.width,n.height);ZB(this.group,yB,r,this._firstRender?null:t)},e.type=KX,e}(fb);function rZ(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");Object(b["isString"])(r)&&Object(b["isString"])(i)&&(t.fill=new Hm(0,0,+("horizontal"===e),+("vertical"===e),[{color:r,offset:0},{color:i,offset:1}]))}}function iZ(t,e,n){var r=new nu({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return rh(r,{shape:{width:t.width+20}},e,n),r}var aZ=nZ,oZ=Ao(KX,sZ);function sZ(t,e){t.eachSeriesByType(KX,(function(t){var n=t.get("nodeWidth"),r=t.get("nodeGap"),i=Lp(t,e).refContainer,a=Ap(t.getBoxLayoutParams(),i);t.layoutInfo=a;var o=a.width,s=a.height,l=t.getGraph(),u=l.nodes,c=l.edges;uZ(u);var h=b["filter"](u,(function(t){return 0===t.getLayout().value})),d=0!==h.length?0:t.get("layoutIterations"),p=t.get("orient"),f=t.get("nodeAlign");lZ(u,c,n,r,o,s,d,p,f)}))}function lZ(t,e,n,r,i,a,o,s,l){cZ(t,e,n,i,a,s,l),gZ(t,e,a,i,r,o,s),CZ(t,s)}function uZ(t){b["each"](t,(function(t){var e=IZ(t.outEdges,OZ),n=IZ(t.inEdges,OZ),r=t.getValue()||0,i=Math.max(e,n,r);t.setLayout({value:i},!0)}))}function cZ(t,e,n,r,i,a,o){for(var s=[],l=[],u=[],c=[],h=0,d=0;d<e.length;d++)s[d]=1;for(d=0;d<t.length;d++)l[d]=t[d].inEdges.length,0===l[d]&&u.push(t[d]);var p=-1;while(u.length){for(var f=0;f<u.length;f++){var g=u[f],y=g.hostGraph.data.getRawDataItem(g.dataIndex),v=null!=y.depth&&y.depth>=0;v&&y.depth>p&&(p=y.depth),g.setLayout({depth:v?y.depth:h},!0),"vertical"===a?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;m<g.outEdges.length;m++){var x=g.outEdges[m],_=b["indexOf"](e,x);s[_]=0;var w=x.node2,S=b["indexOf"](t,w);0===--l[S]&&b["indexOf"](c,w)<0&&c.push(w)}}++h,u=c,c=[]}for(d=0;d<s.length;d++)if(1===s[d])throw new Error("Sankey is a DAG, the original data has cycle!");var M=p>h-1?p:h-1;o&&"left"!==o&&dZ(t,o,a,M);var O="vertical"===a?(i-n)/M:(r-n)/M;fZ(t,O,a)}function hZ(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function dZ(t,e,n,r){if("right"===e){var i=[],a=t,o=0;while(a.length){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];b["indexOf"](i,c.node1)<0&&i.push(c.node1)}}a=i,i=[],++o}b["each"](t,(function(t){hZ(t)||t.setLayout({depth:Math.max(0,r-t.getLayout().skNodeHeight)},!0)}))}else"justify"===e&&pZ(t,r)}function pZ(t,e){b["each"](t,(function(t){hZ(t)||t.outEdges.length||t.setLayout({depth:e},!0)}))}function fZ(t,e,n){b["each"](t,(function(t){var r=t.getLayout().depth*e;"vertical"===n?t.setLayout({y:r},!0):t.setLayout({x:r},!0)}))}function gZ(t,e,n,r,i,a,o){var s=yZ(t,o);vZ(s,e,n,r,i,o),mZ(s,i,n,r,o);for(var l=1;a>0;a--)l*=.99,xZ(s,l,o),mZ(s,i,n,r,o),TZ(s,l,o),mZ(s,i,n,r,o)}function yZ(t,e){var n=[],r="vertical"===e?"y":"x",i=lo(t,(function(t){return t.getLayout()[r]}));return ea(i.keys),b["each"](i.keys,(function(t){n.push(i.buckets.get(t))})),n}function vZ(t,e,n,r,i,a){var o=1/0;b["each"](t,(function(t){var e=t.length,s=0;b["each"](t,(function(t){s+=t.getLayout().value}));var l="vertical"===a?(r-(e-1)*i)/s:(n-(e-1)*i)/s;l<o&&(o=l)})),b["each"](t,(function(t){b["each"](t,(function(t,e){var n=t.getLayout().value*o;"vertical"===a?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))}))})),b["each"](e,(function(t){var e=+t.getValue()*o;t.setLayout({dy:e},!0)}))}function mZ(t,e,n,r,i){var a="vertical"===i?"x":"y";b["each"](t,(function(t){var o,s,l;t.sort((function(t,e){return t.getLayout()[a]-e.getLayout()[a]}));for(var u=0,c=t.length,h="vertical"===i?"dx":"dy",d=0;d<c;d++)s=t[d],l=u-s.getLayout()[a],l>0&&(o=s.getLayout()[a]+l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]+s.getLayout()[h]+e;var p="vertical"===i?r:n;if(l=u-e-p,l>0){o=s.getLayout()[a]-l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0),u=o;for(d=c-2;d>=0;--d)s=t[d],l=s.getLayout()[a]+s.getLayout()[h]+e-u,l>0&&(o=s.getLayout()[a]-l,"vertical"===i?s.setLayout({x:o},!0):s.setLayout({y:o},!0)),u=s.getLayout()[a]}}))}function xZ(t,e,n){b["each"](t.slice().reverse(),(function(t){b["each"](t,(function(t){if(t.outEdges.length){var r=IZ(t.outEdges,bZ,n)/IZ(t.outEdges,OZ);if(isNaN(r)){var i=t.outEdges.length;r=i?IZ(t.outEdges,_Z,n)/i:0}if("vertical"===n){var a=t.getLayout().x+(r-MZ(t,n))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(r-MZ(t,n))*e;t.setLayout({y:o},!0)}}}))}))}function bZ(t,e){return MZ(t.node2,e)*t.getValue()}function _Z(t,e){return MZ(t.node2,e)}function wZ(t,e){return MZ(t.node1,e)*t.getValue()}function SZ(t,e){return MZ(t.node1,e)}function MZ(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function OZ(t){return t.getValue()}function IZ(t,e,n){var r=0,i=t.length,a=-1;while(++a<i){var o=+e(t[a],n);isNaN(o)||(r+=o)}return r}function TZ(t,e,n){b["each"](t,(function(t){b["each"](t,(function(t){if(t.inEdges.length){var r=IZ(t.inEdges,wZ,n)/IZ(t.inEdges,OZ);if(isNaN(r)){var i=t.inEdges.length;r=i?IZ(t.inEdges,SZ,n)/i:0}if("vertical"===n){var a=t.getLayout().x+(r-MZ(t,n))*e;t.setLayout({x:a},!0)}else{var o=t.getLayout().y+(r-MZ(t,n))*e;t.setLayout({y:o},!0)}}}))}))}function CZ(t,e){var n="vertical"===e?"x":"y";b["each"](t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),b["each"](t,(function(t){var e=0,n=0;b["each"](t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),b["each"](t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}var AZ=Ao(KX,DZ);function DZ(t){t.eachSeriesByType(KX,(function(t){var e=t.getGraph(),n=e.nodes,r=e.edges;if(n.length){var i=1/0,a=-1/0;b["each"](n,(function(t){var e=t.getLayout().value;e<i&&(i=e),e>a&&(a=e)})),b["each"](n,(function(e){var n=new CG({type:"color",mappingMethod:"linear",dataExtent:[i,a],visual:t.get("color")}),r=n.mapValueToVisual(e.getLayout().value),o=e.getModel().get(["itemStyle","color"]);null!=o?(e.setVisual("color",o),e.setVisual("style",{fill:o})):(e.setVisual("color",r),e.setVisual("style",{fill:r}))}))}r.length&&b["each"](r,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}function kZ(t){t.registerChartView(aZ),t.registerSeriesModel(QX),t.registerLayout(oZ),t.registerVisual(AZ),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(t,e){e.eachComponent({mainType:Ou,subType:KX,query:t},(function(e){e.setNodePosition(t.dataIndex,[t.localX,t.localY])}))})),yV(t,Ou,KX)}var LZ=function(){function t(){}return t.prototype._hasEncodeRule=function(t){var e=this.getEncode();return e&&null!=e.get(t)},t.prototype.getInitialData=function(t,e){var n,r,i=e.getComponent("xAxis",this.get("xAxisIndex")),a=e.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l=t.layout;"category"===o?(l="horizontal",n=i.getOrdinalMeta(),r=!this._hasEncodeRule("x")):"category"===s&&(l="vertical",n=a.getOrdinalMeta(),r=!this._hasEncodeRule("y")),l||(l="time"===s?"vertical":"horizontal"),this._layout=l;var u=["x","y"],c="horizontal"===l?0:1,h=this._baseAxisDim=u[c],d=u[1-c],p=[i,a],f=p[c].get("type"),g=p[1-c].get("type"),y=t.data;if(y&&r){var v=[];b["each"](y,(function(t,e){var n;b["isArray"](t)?(n=t.slice(),t.unshift(e)):b["isArray"](t.value)?(n=b["extend"]({},t),n.value=n.value.slice(),t.value.unshift(e)):n=t,v.push(n)})),t.data=v}var m=this.defaultValueDimensions,x=[{name:h,type:RM(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:RM(g),dimsDef:m.slice()}];return AR(this,{coordDimensions:x,dimensionsCount:m.length+1,encodeDefaulter:b["curry"](nf,x,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t.prototype.getWhiskerBoxesLayout=function(){return this._layout},t}();function PZ(t,e){for(var n=e.ends.length,r=0,i=0;i<n;i++)t.contain(e.ends[i][0],e.ends[i][1])&&r++;return r?r<n?HL:FL:GL}var jZ="boxplot",RZ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return f(e,t),e.type="series."+jZ,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:Xp.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Xp.color.shadow}},animationDuration:800},e}(vv);Object(b["mixin"])(RZ,LZ,!0);var NZ=RZ,EZ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=jZ,e}return f(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this.group,a=this._data;this._data||i.removeAll();var o="horizontal"===t.getWhiskerBoxesLayout()?1:0,s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea(),c=s&&VL(l,!1,t);r.diff(a).add((function(t){if(r.hasValue(t)){var e=r.getItemLayout(t),n=s?PZ(u,e):FL;if(n===GL)return;var a=VZ(e,r,t,o,!0);WL(n===HL,a,c),r.setItemGraphicEl(t,a),i.add(a)}})).update((function(t,e){var n=a.getItemGraphicEl(e);if(r.hasValue(t)){var l=r.getItemLayout(t),h=s?PZ(u,l):FL;h!==GL?(n?(lh(n),FZ(l,n,r,t)):n=VZ(l,r,t,o),WL(h===HL,n,c),i.add(n),r.setItemGraphicEl(t,n)):i.remove(n)}else i.remove(n)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=r},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type=jZ,e}(fb),zZ=function(){function t(){}return t}(),BZ=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return f(e,t),e.prototype.getDefaultShape=function(){return new zZ},e.prototype.buildPath=function(t,e){var n=e.points,r=0;for(t.moveTo(n[r][0],n[r][1]),r++;r<4;r++)t.lineTo(n[r][0],n[r][1]);for(t.closePath();r<n.length;r++)t.moveTo(n[r][0],n[r][1]),r++,t.lineTo(n[r][0],n[r][1])},e}(Bl);function VZ(t,e,n,r,i){var a=t.ends,o=new BZ({shape:{points:i?HZ(a,r,t):a}});return FZ(t,o,e,n,i),o}function FZ(t,e,n,r,i){var a=n.hostModel,s=o[i?"initProps":"updateProps"];s(e,{shape:{points:t.ends}},a,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var l=n.getItemModel(r),u=l.getModel("emphasis");Yc(e,l),Fc(e,u.get("focus"),u.get("blurScope"),u.get("disabled"))}function HZ(t,e,n){return Object(b["map"])(t,(function(t){return t=t.slice(),t[e]=n.initBaseline,t}))}var GZ=EZ,WZ=wo(),YZ=Ao(jZ,UZ);function UZ(t){var e=xj(jZ);mT(t,e,(function(t){var n=vT(t,e);if(n){var r=XZ(t,n);gT(t,e,(function(t){var e=t.seriesIndex;ZZ(t,r.boxOffsetList[e],r.boxWidthList[e])}))}}))}function XZ(t,e){var n=[],r=[],i=[],a=YC(t,{fromStat:{key:xj(jZ)},min:1}).w;gT(t,xj(jZ),(function(t){var e=t.get("boxWidth");Object(b["isArray"])(e)||(e=[e,e]),i[t.seriesIndex]=[Zi(e[0],a)||0,Zi(e[1],a)||0]}));var o=.8*a-2,s=o/e*.3,l=(o-s*(e-1))/e,u=l/2-o/2;return gT(t,xj(jZ),(function(t){var e=t.seriesIndex;r[e]=u,u+=s+l,n[e]=Ni(Ei(l,i[e][0]),i[e][1])})),{boxOffsetList:r,boxWidthList:n}}function ZZ(t,e,n){var r=t.coordinateSystem,i=t.getData(),a=n/2,o="horizontal"===t.getWhiskerBoxesLayout()?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),c=i.mapDimensionsAll(l[s]);if(!(null==u||c.length<5))for(var h=0;h<i.count();h++){var d=i.get(u,h),p=x(d,c[2],h),f=x(d,c[0],h),g=x(d,c[1],h),y=x(d,c[3],h),v=x(d,c[4],h),m=[];b(m,g,!1),b(m,y,!0),m.push(f,g,v,y),_(m,f),_(m,v),_(m,p),i.setItemLayout(h,{initBaseline:p[s],ends:m})}function x(t,n,a){var l,u=i.get(n,a),c=[];return c[o]=t,c[s]=u,isNaN(t)||isNaN(u)?l=[NaN,NaN]:(l=r.dataToPoint(c),l[o]+=e),l}function b(t,e,n){var r=e.slice(),i=e.slice();r[o]+=a,i[o]-=a,n?t.push(r,i):t.push(i,r)}function _(t,e){var n=e.slice(),r=e.slice();n[o]-=a,r[o]+=a,t.push(n,r)}}function qZ(t){WZ(t,(function(){var e=xj(jZ);OT(t,{key:e,seriesType:jZ,getMetrics:_j}),HT(e,mj(e))}))}function $Z(t,e){e=e||{};for(var n=[],r=[],i=e.boundIQR,a="none"===i||0===i,o=0;o<t.length;o++){var s=ea(t[o].slice()),l=ma(s,.25),u=ma(s,.5),c=ma(s,.75),h=s[0],d=s[s.length-1],p=(null==i?1.5:i)*(c-l),f=a?h:Math.max(h,l-p),g=a?d:Math.min(d,c+p),y=e.itemNameFormatter,v=Object(b["isFunction"])(y)?y({value:o}):Object(b["isString"])(y)?y.replace("{value}",o+""):o+"";n.push([v,f,l,u,c,g]);for(var m=0;m<s.length;m++){var x=s[m];if(x<f||x>g){var _=[v,x];r.push(_)}}}return{boxData:n,outliers:r}}var KZ={type:"echarts:boxplot",transform:function(t){var e=t.upstream;if(e.sourceFormat!==Cu){var n="";0,Cf(n)}var r=$Z(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};function JZ(t){t.registerSeriesModel(NZ),t.registerChartView(GZ),t.registerLayout(YZ),t.registerTransform(KZ),qZ(t)}var QZ="candlestick",tq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return f(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var r=e.getItemLayout(t);return r&&n.rect(r.brushRect)},e.type="series."+QZ,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(vv);Object(b["mixin"])(tq,LZ,!0);var eq=tq,nq=["itemStyle","borderColor"],rq=["itemStyle","borderColor0"],iq=["itemStyle","borderColorDoji"],aq=["itemStyle","color"],oq=["itemStyle","color0"];function sq(t,e){return e.get(t>0?aq:oq)}function lq(t,e){return e.get(0===t?iq:t>0?nq:rq)}var uq={seriesType:QZ,plan:bv(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t)){var n=t.pipelineContext.large;return!n&&{progress:function(t,e){var n;while(null!=(n=t.next())){var r=e.getItemModel(n),i=e.getItemLayout(n).sign,a=r.getItemStyle();a.fill=sq(i,r),a.stroke=lq(i,r)||a.fill;var o=e.ensureUniqueItemVisual(n,"style");Object(b["extend"])(o,a)}}}}}},cq=uq,hq=["color","borderColor"],dq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){Xx(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,r=this.group,i=e.getLayout("isSimpleBox"),a=t.get("clip",!0),o=t.coordinateSystem,s=o.getArea&&o.getArea(),l=a&&VL(o,!1,t);this._data||r.removeAll();var u=mq(t);e.diff(n).add((function(n){if(e.hasValue(n)){var o=e.getItemLayout(n),c=a?PZ(s,o):FL;if(c===GL)return;var h=gq(o,n,u,!0);rh(h,{shape:{points:o.ends}},t,n),WL(c===HL,h,l),yq(h,e,n,i),r.add(h),e.setItemGraphicEl(n,h)}})).update((function(o,c){var h=n.getItemGraphicEl(c);if(e.hasValue(o)){var d=e.getItemLayout(o),p=a?PZ(s,d):FL;p!==GL?(h?(nh(h,{shape:{points:d.ends}},t,o),lh(h)):h=gq(d,o,u),yq(h,e,o,i),WL(p===HL,h,l),r.add(h),e.setItemGraphicEl(o,h)):r.remove(h)}else r.remove(h)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),_q(t,this.group);var e=t.get("clip",!0)?VL(t.coordinateSystem,!1,t):null;WL(!!e,this.group,e)},e.prototype._incrementalRenderNormal=function(t,e){var n,r=e.getData(),i=r.getLayout("isSimpleBox"),a=mq(e);while(null!=(n=t.next())){var o=r.getItemLayout(n),s=gq(o,n,a);yq(s,r,n,i),s.incremental=To(e),this.group.add(s),this._progressiveEls.push(s)}},e.prototype._incrementalRenderLarge=function(t,e){_q(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),WL(!1,this.group,null),this._data=null},e.type=QZ,e}(fb),pq=function(){function t(){}return t}(),fq=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return f(e,t),e.prototype.getDefaultShape=function(){return new pq},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(Bl);function gq(t,e,n,r){var i=t.ends;return new fq({shape:{points:r?vq(i,n,t):i},z2:100})}function yq(t,e,n,r){var i=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0;var a=i.getShallow("cursor");a&&t.attr("cursor",a),t.__simpleBox=r,Yc(t,i);var o=e.getItemLayout(n).sign;b["each"](t.states,(function(t,e){var n=i.getModel(e),r=sq(o,n),a=lq(o,n)||r,s=t.style||(t.style={});r&&(s.fill=r),a&&(s.stroke=a)}));var s=i.getModel("emphasis");Fc(t,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function vq(t,e,n){return b["map"](t,(function(t){return t=t.slice(),t[e]=n.initBaseline,t}))}function mq(t){return"horizontal"===t.getWhiskerBoxesLayout()?1:0}var xq=function(){function t(){}return t}(),bq=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeCandlestickBox",n}return f(e,t),e.prototype.getDefaultShape=function(){return new xq},e.prototype.buildPath=function(t,e){for(var n=e.points,r=0;r<n.length;)if(this.__sign===n[r++]){var i=n[r++];t.moveTo(i,n[r++]),t.lineTo(i,n[r++])}else r+=3},e}(Bl);function _q(t,e,n,r){var i=t.getData(),a=i.getLayout("largePoints"),o=new bq({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new bq({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new bq({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});e.add(l),wq(1,o,t,i),wq(-1,s,t,i),wq(0,l,t,i),r&&(o.incremental=To(t),s.incremental=To(t),l.incremental=To(t)),n&&n.push(o,s,l)}function wq(t,e,n,r){var i=lq(t,n)||sq(t,n),a=n.getModel("itemStyle").getItemStyle(hq);e.useStyle(a),e.style.fill=null,e.style.stroke=i;var o=n.get("cursor");o&&e.attr("cursor",o)}var Sq=dq;function Mq(t){t&&b["isArray"](t.series)&&b["each"](t.series,(function(t){b["isObject"](t)&&"k"===t.type&&(t.type=QZ)}))}var Oq=wo(),Iq={seriesType:QZ,plan:bv(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=Cq(t,n),i="horizontal"===t.getWhiskerBoxesLayout()?0:1,a=1-i,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[i])),l=Object(b["map"])(n.mapDimensionsAll(o[a]),n.getDimensionIndex,n),u=l[0],c=l[1],h=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),!(s<0||l.length<4))return{progress:t.pipelineContext.large?f:p};function p(t,n){var o,l=n.getStore();while(null!=(o=t.next())){var p=l.get(s,o),f=l.get(u,o),g=l.get(c,o),y=l.get(h,o),v=l.get(d,o),m=Ni(f,g),x=Ei(f,g),b=T(m,p),_=T(x,p),w=T(y,p),S=T(v,p),M=[];C(M,_,0),C(M,b,1),M.push(D(S),D(_),D(w),D(b));var O=n.getItemModel(o),I=!!O.get(["itemStyle","borderColorDoji"]);n.setItemLayout(o,{sign:Tq(l,o,f,g,c,I),initBaseline:f>g?_[a]:b[a],ends:M,brushRect:A(y,v,p)})}function T(t,n){var r=[];return r[i]=n,r[a]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(r)}function C(t,e,n){var a=e.slice(),o=e.slice();a[i]=Cx(a[i]+r/2,1,!1),o[i]=Cx(o[i]-r/2,1,!0),n?t.push(a,o):t.push(o,a)}function A(t,e,n){var o=T(t,n),s=T(e,n);return o[i]-=r/2,s[i]-=r/2,{x:o[0],y:o[1],width:a?r:s[0]-o[0],height:a?s[1]-o[1]:r}}function D(t){return t[i]=Cx(t[i],1),t}}function f(n,r){var o,l,p=TL(4*n.count),f=0,g=[],y=[],v=r.getStore(),m=!!t.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var x=v.get(s,l),b=v.get(u,l),_=v.get(c,l),w=v.get(h,l),S=v.get(d,l);isNaN(x)||isNaN(w)||isNaN(S)?(p[f++]=NaN,f+=3):(p[f++]=Tq(v,l,b,_,c,m),g[i]=x,g[a]=w,o=e.dataToPoint(g,null,y),p[f++]=o?o[0]:NaN,p[f++]=o?o[1]:NaN,g[a]=S,o=e.dataToPoint(g,null,y),p[f++]=o?o[1]:NaN)}r.setLayout("largePoints",p)}}};function Tq(t,e,n,r,i,a){var o;return o=n>r?-1:n<r?1:a?0:e>0?t.get(i,e-1)<=r?1:-1:1,o}function Cq(t,e){var n=t.getBaseAxis(),r=YC(n,{fromStat:{key:xj(QZ)},min:1}).w,i=Zi(Object(b["retrieve2"])(t.get("barMaxWidth"),r),r),a=Zi(Object(b["retrieve2"])(t.get("barMinWidth"),1),r),o=t.get("barWidth");return null!=o?Zi(o,r):Ei(Ni(r/2,i),a)}function Aq(t){Oq(t,(function(){var e=xj(QZ);OT(t,{key:e,seriesType:QZ,getMetrics:_j}),HT(e,mj(e))}))}function Dq(t){t.registerChartView(Sq),t.registerSeriesModel(eq),t.registerPreprocessor(Mq),t.registerVisual(cq),t.registerLayout(Iq),Aq(t)}function kq(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var Lq=function(t){function e(e,n){var r=t.call(this)||this,i=new fL(e,n),a=new vi;return r.add(i),r.add(a),r.updateData(e,n),r}return f(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,r=t.rippleNumber,i=this.childAt(1),a=0;a<r;a++){var o=z_(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var s=-a/r*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),i.add(o)}kq(i,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),r=["symbolType","period","rippleScale","rippleNumber"],i=0;i<r.length;i++){var a=r[i];if(e[a]!==t[a])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}kq(n,t)},e.prototype.highlight=function(){wc(this)},e.prototype.downplay=function(){Sc(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,e){var n=this,r=t.hostModel;this.childAt(0).updateData(t,e);var i=this.childAt(1),a=t.getItemModel(e),o=t.getItemVisual(e,"symbol"),s=B_(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,c=a.getModel("emphasis");i.setScale(s),i.traverse((function(t){t.setStyle("fill",u)}));var h=V_(t.getItemVisual(e,"symbolOffset"),s);h&&(i.x=h[0],i.y=h[1]);var d=t.getItemVisual(e,"symbolRotate");i.rotation=(d||0)*Math.PI/180||0;var p={};p.showEffectOn=r.get("showEffectOn"),p.rippleScale=a.get(["rippleEffect","scale"]),p.brushType=a.get(["rippleEffect","brushType"]),p.period=1e3*a.get(["rippleEffect","period"]),p.effectOffset=e/t.count(),p.z=r.getShallow("z")||0,p.zlevel=r.getShallow("zlevel")||0,p.symbolType=o,p.color=u,p.rippleEffectColor=a.get(["rippleEffect","color"]),p.rippleNumber=a.get(["rippleEffect","number"]),"render"===p.showEffectOn?(this._effectCfg?this.updateEffectAnimation(p):this.startEffectAnimation(p),this._effectCfg=p):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==p.showEffectOn&&n.startEffectAnimation(p):"normal"===t&&"render"!==p.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=p,Fc(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e}(vi),Pq=Lq,jq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(){this._symbolDraw=new bL(Pq)},e.prototype.render=function(t,e,n){var r=t.getData(),i=this._symbolDraw;i.updateData(r,Rq(t)),this.group.add(i.group)},e.prototype.updateTransform=function(t,e,n){var r=t.getData();this.group.dirty();var i=dP("").reset(t,e,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(Rq(t))},e.prototype._updateGroupTransform=function(t){var e=t.coordinateSystem;e&&e.getRoamTransform&&(this.group.transform=Rt(e.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(fb);function Rq(t){return{clipShape:YL(t)}}var Nq=jq,Eq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return f(e,t),e.prototype.getInitialData=function(t,e){return OO(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(vv),zq=Eq;function Bq(t){t.registerChartView(Nq),t.registerSeriesModel(zq),t.registerLayout(dP("effectScatter"))}var Vq=function(t){function e(e,n,r){var i=t.call(this)||this;return i.add(i.createLine(e,n,r)),i._updateEffectSymbol(e,n),i}return f(e,t),e.prototype.createLine=function(t,e,n){return new GW(t,e,n)},e.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e),r=n.getModel("effect"),i=r.get("symbolSize"),a=r.get("symbol");b["isArray"](i)||(i=[i,i]);var o=t.getItemVisual(e,"style"),s=r.get("color")||o&&o.stroke,l=this.childAt(1);this._symbolType!==a&&(this.remove(l),l=z_(a,-.5,-.5,1,1,s),l.z2=100,l.culling=!0,this.add(l)),l&&(l.setStyle("shadowColor",s),l.setStyle(r.getItemStyle(["color"])),l.scaleX=i[0],l.scaleY=i[1],l.setColor(s),this._symbolType=a,this._symbolScale=i,this._updateEffectAnimation(t,r,e))},e.prototype._updateEffectAnimation=function(t,e,n){var r=this.childAt(1);if(r){var i=t.getItemLayout(n),a=1e3*e.get("period"),o=e.get("loop"),s=e.get("roundTrip"),l=e.get("constantSpeed"),u=b["retrieve"](e.get("delay"),(function(e){return e/t.count()*a/3}));if(r.ignore=!0,this._updateAnimationPoints(r,i),l>0&&(a=this._getLineLength(r)/l*1e3),a!==this._period||o!==this._loop||s!==this._roundTrip){r.stopAnimation();var c=void 0;c=b["isFunction"](u)?u(n):u,r.__t>0&&(c=-a*r.__t),this._animateSymbol(r,a,c,o,s)}this._period=a,this._loop=o,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,r,i){if(e>0){t.__t=0;var a=this,o=t.animate("",r).when(i?2*e:e,{__t:i?2:1}).delay(n).during((function(){a._updateSymbolPosition(t)}));r||o.done((function(){a.remove(t)})),o.start()}},e.prototype._getLineLength=function(t){return z(t.__p1,t.__cp1)+z(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,r=t.__cp1,i=t.__t<=1?t.__t:2-t.__t,a=[t.x,t.y],o=a.slice(),s=un,l=cn;a[0]=s(e[0],r[0],n[0],i),a[1]=s(e[1],r[1],n[1],i);var u=t.__t<=1?l(e[0],r[0],n[0],i):l(n[0],r[0],e[0],1-i),c=t.__t<=1?l(e[1],r[1],n[1],i):l(n[1],r[1],e[1],1-i);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*z(o,a),1===i&&(a[0]=o[0]+(a[0]-o[0])/2,a[1]=o[1]+(a[1]-o[1])/2)):1===t.__lastT?t.scaleY=2*z(e,a):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=a[0],t.y=a[1]},e.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},e}(vi),Fq=Vq,Hq=function(t){function e(e,n,r){var i=t.call(this)||this;return i._createPolyline(e,n,r),i}return f(e,t),e.prototype._createPolyline=function(t,e,n){var r=t.getItemLayout(e),i=new Mm({shape:{points:r}});this.add(i),this._updateCommonStl(t,e,n)},e.prototype.updateData=function(t,e,n){var r=t.hostModel,i=this.childAt(0),a={shape:{points:t.getItemLayout(e)}};nh(i,a,r,e),this._updateCommonStl(t,e,n)},e.prototype._updateCommonStl=function(t,e,n){var r=this.childAt(0),i=t.getItemModel(e),a=n&&n.emphasisLineStyle,o=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;if(!n||t.hasItemOption){var u=i.getModel("emphasis");a=u.getModel("lineStyle").getLineStyle(),l=u.get("disabled"),o=u.get("focus"),s=u.get("blurScope")}r.useStyle(t.getItemVisual(e,"style")),r.style.fill=null,r.style.strokeNoScale=!0;var c=r.ensureState("emphasis");c.style=a,Fc(this,o,s,l)},e.prototype.updateLayout=function(t,e){var n=this.childAt(0);n.stopAnimation(),n.setShape("points",t.getItemLayout(e))},e}(vi),Gq=Hq,Wq=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return f(e,t),e.prototype.createLine=function(t,e,n){return new Gq(t,e,n)},e.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],r=0,i=1;i<e.length;i++){var a=e[i-1],o=e[i];r+=z(a,o),n.push(r)}if(0!==r){for(i=0;i<n.length;i++)n[i]/=r;this._offsets=n,this._length=r}else this._length=0},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var e=t.__t<=1?t.__t:2-t.__t,n=this._points,r=this._offsets,i=n.length;if(r){var a,o=this._lastFrame;if(e<this._lastFramePercent){var s=Math.min(o+1,i-1);for(a=s;a>=0;a--)if(r[a]<=e)break;a=Math.min(a,i-2)}else{for(a=o;a<i;a++)if(r[a]>e)break;a=Math.min(a-1,i-2)}var l=(e-r[a])/(r[a+1]-r[a]),u=n[a],c=n[a+1];t.x=u[0]*(1-l)+l*c[0],t.y=u[1]*(1-l)+l*c[1];var h=t.__t<=1?c[0]-u[0]:u[0]-c[0],d=t.__t<=1?c[1]-u[1]:u[1]-c[1];t.rotation=-Math.atan2(d,h)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},e}(Fq),Yq=Wq,Uq=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),Xq=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return f(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.getDefaultStyle=function(){return{stroke:Xp.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Uq},e.prototype.buildPath=function(t,e){var n,r=e.segs,i=e.curveness;if(e.polyline)for(n=this._off;n<r.length;){var a=r[n++];if(a>0){t.moveTo(r[n++],r[n++]);for(var o=1;o<a;o++)t.lineTo(r[n++],r[n++])}}else for(n=this._off;n<r.length;){var s=r[n++],l=r[n++],u=r[n++],c=r[n++];if(t.moveTo(s,l),i>0){var h=(s+u)/2-(l-c)*i,d=(l+c)/2-(u-s)*i;t.quadraticCurveTo(h,d,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,r=n.segs,i=n.curveness,a=this.style.lineWidth;if(n.polyline)for(var o=0,s=0;s<r.length;){var l=r[s++];if(l>0)for(var u=r[s++],c=r[s++],h=1;h<l;h++){var d=r[s++],p=r[s++];if(fl(u,c,d,p,a,t,e))return o}o++}else for(o=0,s=0;s<r.length;){u=r[s++],c=r[s++],d=r[s++],p=r[s++];if(i>0){var f=(u+d)/2-(c-p)*i,g=(c+p)/2-(d-u)*i;if(yl(u,c,f,g,d,p,a,t,e))return o}else if(fl(u,c,d,p,a,t,e))return o;o++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect();if(t=n[0],e=n[1],r.contain(t,e)){var i=this.hoverDataIdx=this.findDataIndex(t,e);return i>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.segs,r=1/0,i=1/0,a=-1/0,o=-1/0,s=0;s<n.length;){var l=n[s++],u=n[s++];r=Math.min(l,r),a=Math.max(l,a),i=Math.min(u,i),o=Math.max(u,o)}t=this._rect=new ue(r,i,a,o)}return t},e}(Bl),Zq=function(){function t(){this.group=new vi}return t.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(t,e,n){var r=this._newAdded[0],i=e.getLayout("linesPoints"),a=r&&r.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=n,l.setShape({segs:i}),this._setCommon(l,e),l.__startIndex=t.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},t.prototype._create=function(){var t=new Xq({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},t.prototype._setCommon=function(t,e,n){var r=e.hostModel;t.setShape({polyline:r.get("polyline"),curveness:r.get(["lineStyle","curveness"])}),t.useStyle(r.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var i=e.getVisual("style");i&&i.stroke&&t.setStyle("stroke",i.stroke),t.setStyle("fill",null);var a=wu(t);a.seriesIndex=r.seriesIndex,t.on("mousemove",(function(e){a.dataIndex=null;var n=t.hoverDataIdx;n>0&&(a.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),qq=Zq,$q={seriesType:"lines",plan:bv(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,a){var o=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+2*u)}else s=new Float32Array(4*l);var h=0,d=[];for(c=i.start;c<i.end;c++){var p=t.getLineCoords(c,o);n&&(s[h++]=p);for(var f=0;f<p;f++)d=e.dataToPoint(o[f],!1,d),s[h++]=d[0],s[h++]=d[1]}a.setLayout("linesPoints",s)}else for(c=i.start;c<i.end;c++){var g=a.getItemModel(c),y=(p=t.getLineCoords(c,o),[]);if(n)for(var v=0;v<p;v++)y.push(e.dataToPoint(o[v]));else{y[0]=e.dataToPoint(o[0]),y[1]=e.dataToPoint(o[1]);var m=g.get(["lineStyle","curveness"]);+m&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*m,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*m])}a.setItemLayout(c,y)}}}}}},Kq=$q,Jq=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this._updateLineDraw(r,t),a=t.get("zlevel"),o=t.get(["effect","trailLength"]),s=n.getZr(),l=!!ab(n);l&&s.painter.getLayer(a).clear(!0),null!=this._lastZlevel&&l&&s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&o>0&&l&&s.configLayer(a,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(o/10+.9,1),0)}),i.updateData(r);var u=t.get("clip",!0)&&VL(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=a,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var r=t.getData(),i=this._updateLineDraw(r,t);i.incrementalPrepareUpdate(r),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData(),To(e)),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,n){var r=t.getData(),i=this._lineDraw;if(!(this._finished&&i&&i.updateLayout))return{update:!0};var a=Kq.reset(t,e,n);a.progress&&a.progress({start:0,end:r.count(),count:r.count()},r),i.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,r=this._showEffect(e),i=!!e.get("polyline"),a=e.pipelineContext,o=a.large;return n&&r===this._hasEffet&&i===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new qq:new qW(i?r?Yq:Gq:r?Fq:GW),this._hasEffet=r,this._isPolyline=i,this._isLargeDraw=o),this.group.add(n.group),n},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=ab(t);e&&null!=this._lastZlevel&&e.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(fb),Qq=Jq,t$="undefined"===typeof Uint32Array?Array:Uint32Array,e$="undefined"===typeof Float64Array?Array:Float64Array;function n$(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=Object(b["map"])(e,(function(t){var e=[t[0].coord,t[1].coord],n={coords:e};return t[0].name&&(n.fromName=t[0].name),t[1].name&&(n.toName=t[1].name),Object(b["mergeAll"])([n,t[0],t[1]])})))}var r$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return f(e,t),e.prototype.init=function(e){e.data=e.data||[],n$(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(n$(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Object(b["concatArray"])(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Object(b["concatArray"])(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t),n=e.option instanceof Array?e.option:e.getShallow("coords");return n},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],r=this._flatCoordsOffset[2*t+1],i=0;i<r;i++)e[i]=e[i]||[],e[i][0]=this._flatCoords[n+2*i],e[i][1]=this._flatCoords[n+2*i+1];return r}var a=this._getCoordsFromItemModel(t);for(i=0;i<a.length;i++)e[i]=e[i]||[],e[i][0]=a[i][0],e[i][1]=a[i][1];return a.length},e.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),Object(b["isNumber"])(t[0])){for(var n=t.length,r=new t$(n),i=new e$(n),a=0,o=0,s=0,l=0;l<n;){s++;var u=t[l++];r[o++]=a+e,r[o++]=u;for(var c=0;c<u;c++){var h=t[l++],d=t[l++];i[a++]=h,i[a++]=d}}return{flatCoordsOffset:new Uint32Array(r.buffer,0,o),flatCoords:i,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,e){var n=new sO(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],(function(t,e,r,i){if(t instanceof Array)return NaN;n.hasItemOption=!0;var a=t.value;return null!=a?a instanceof Array?a[i]:a:void 0})),n},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),a=r.getItemModel(t),o=a.get("name");if(!o){var s=a.get("fromName"),l=a.get("toName"),u=[];null!=s&&u.push(s),null!=l&&u.push(l),o=u.join(" > ")}return Fy("nameValue",{name:o,value:i,noValue:null==i||isNaN(i)})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(vv),i$=r$;function a$(t){return t instanceof Array||(t=[t,t]),t}var o$={seriesType:"lines",reset:function(t){var e=a$(t.get("symbol")),n=a$(t.get("symbolSize")),r=t.getData();function i(t,e){var n=t.getItemModel(e),r=a$(n.getShallow("symbol",!0)),i=a$(n.getShallow("symbolSize",!0));r[0]&&t.setItemVisual(e,"fromSymbol",r[0]),r[1]&&t.setItemVisual(e,"toSymbol",r[1]),i[0]&&t.setItemVisual(e,"fromSymbolSize",i[0]),i[1]&&t.setItemVisual(e,"toSymbolSize",i[1])}return r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?i:null}}},s$=o$;function l$(t){t.registerChartView(Qq),t.registerSeriesModel(i$),t.registerLayout(Kq),t.registerVisual(s$)}var u$=256,c$=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Nr["d"].createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,r,i,a){var o=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var p=0;p<d;++p){var f=t[p],g=f[0],y=f[1],v=f[2],m=r(v);h.globalAlpha=m,h.drawImage(o,g-u,y-u)}if(!c.width||!c.height)return c;var x=h.getImageData(0,0,c.width,c.height),b=x.data,_=0,w=b.length,S=this.minOpacity,M=this.maxOpacity,O=M-S;while(_<w){m=b[_+3]/256;var I=4*Math.floor(m*(u$-1));if(m>0){var T=a(m)?s:l;m>0&&(m=m*O+S),b[_++]=T[I],b[_++]=T[I+1],b[_++]=T[I+2],b[_++]=T[I+3]*m*256}else _+=4}return h.putImageData(x,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Nr["d"].createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var r=t.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor=Xp.color.neutral99,r.beginPath(),r.arc(-e,e,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,r=n[e]||(n[e]=new Uint8ClampedArray(1024)),i=[0,0,0,0],a=0,o=0;o<256;o++)t[e](o/255,!0,i),r[a++]=i[0],r[a++]=i[1],r[a++]=i[2],r[a++]=i[3];return r},t}(),h$=c$;function d$(t,e,n){var r=t[1]-t[0];e=b["map"](e,(function(e){return{interval:[(e.interval[0]-t[0])/r,(e.interval[1]-t[0])/r]}}));var i=e.length,a=0;return function(t){var r;for(r=a;r<i;r++){var o=e[r].interval;if(o[0]<=t&&t<=o[1]){a=r;break}}if(r===i)for(r=a-1;r>=0;r--){o=e[r].interval;if(o[0]<=t&&t<=o[1]){a=r;break}}return r>=0&&r<i&&n[r]}}function p$(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}var f$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){var r;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(r=e)}))})),this._progressiveEls=null,this.group.removeAll();var i=t.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type||"matrix"===i.type?this._renderOnGridLike(t,n,0,t.getData().count()):XL(i)&&this._renderOnGeo(i,t,r,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,r){var i=e.coordinateSystem;i&&(XL(i)?this.render(e,n,r):(this._progressiveEls=[],this._renderOnGridLike(e,r,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Xx(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,e,n,r,i){var a,o,s,l,u=t.coordinateSystem,c=UL(u,"cartesian2d"),h=UL(u,"matrix");if(c){var d=u.getAxis("x"),p=u.getAxis("y");0,a=YC(d).w+.5,o=YC(p).w+.5,s=d.scale.getExtent(),l=p.scale.getExtent()}for(var f=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),v=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),x=t.get(["itemStyle","borderRadius"]),_=fh(t),w=t.getModel("emphasis"),S=w.get("focus"),M=w.get("blurScope"),O=w.get("disabled"),I=c||h?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],T=n;T<r;T++){var C=void 0,A=g.getItemVisual(T,"style");if(c){var D=g.get(I[0],T),k=g.get(I[1],T);if(isNaN(g.get(I[2],T))||isNaN(D)||isNaN(k)||D<s[0]||D>s[1]||k<l[0]||k>l[1])continue;var L=u.dataToPoint([D,k]);C=new nu({shape:{x:L[0]-a/2,y:L[1]-o/2,width:a,height:o},style:A})}else if(h){var P=u.dataToLayout([g.get(I[0],T),g.get(I[1],T)]).rect;if(b["eqNaN"](P.x))continue;C=new nu({z2:1,shape:P,style:A})}else{if(isNaN(g.get(I[1],T)))continue;var j=u.dataToLayout([g.get(I[0],T)]);P=j.contentRect||j.rect;if(b["eqNaN"](P.x)||b["eqNaN"](P.y))continue;C=new nu({z2:1,shape:P,style:A})}if(g.hasItemOption){var R=g.getItemModel(T),N=R.getModel("emphasis");y=N.getModel("itemStyle").getItemStyle(),v=R.getModel(["blur","itemStyle"]).getItemStyle(),m=R.getModel(["select","itemStyle"]).getItemStyle(),x=R.get(["itemStyle","borderRadius"]),S=N.get("focus"),M=N.get("blurScope"),O=N.get("disabled"),_=fh(R)}C.shape.r=x;var E=t.getRawValue(T),z="-";E&&null!=E[2]&&(z=E[2]+""),ph(C,_,{labelFetcher:t,labelDataIndex:T,defaultOpacity:A.opacity,defaultText:z}),C.ensureState("emphasis").style=y,C.ensureState("blur").style=v,C.ensureState("select").style=m,Fc(C,S,M,O),C.incremental=To(t,i),i&&(C.states.emphasis.hoverLayer=fx),f.add(C),g.setItemGraphicEl(T,C),this._progressiveEls&&this._progressiveEls.push(C)}},e.prototype._renderOnGeo=function(t,e,n,r){var i=n.targetVisuals.inRange,a=n.targetVisuals.outOfRange,o=e.getData(),s=this._hmLayer||this._hmLayer||new h$;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,r.getWidth()),p=Math.min(l.height+l.y,r.getHeight()),f=d-c,g=p-h,y=[o.mapDimension("lng"),o.mapDimension("lat"),o.mapDimension("value")],v=o.mapArray(y,(function(e,n,r){var i=t.dataToPoint([e,n]);return i[0]-=c,i[1]-=h,i.push(r),i})),m=n.getExtent(),x="visualMap.continuous"===n.type?p$(m,n.option.range):d$(m,n.getPieceList(),n.option.selected);s.update(v,f,g,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:a.color.getColorMapper()},x);var b=new Xl({style:{width:f,height:g,x:c,y:h,image:s.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e}(fb),g$=f$,y$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.getInitialData=function(t,e){return OO(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=bp.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:Xp.color.primary}}},e}(vv),v$=y$;function m$(t){t.registerChartView(g$),t.registerSeriesModel(v$)}var x$=["itemStyle","borderWidth"],b$=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],_$=new Uv,w$=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=Sj,e}return f(e,t),e.prototype.render=function(t,e,n){var r=this.group,i=t.getData(),a=this._data,o=t.coordinateSystem,s=o.getBaseAxis(),l=s.isHorizontal(),u=o.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:o,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:b$[+l],categoryDim:b$[1-+l]};i.diff(a).add((function(t){if(i.hasValue(t)){var e=j$(i,t),n=S$(i,t,e,c),a=E$(i,c,n);i.setItemGraphicEl(t,a),r.add(a),G$(a,c,n)}})).update((function(t,e){var n=a.getItemGraphicEl(e);if(i.hasValue(t)){var o=j$(i,t),s=S$(i,t,o,c),l=V$(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(t,null),n=null),n?z$(n,c,s):n=E$(i,c,s,!0),i.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,r.add(n),G$(n,c,s)}else r.remove(n)})).remove((function(t){var e=a.getItemGraphicEl(t);e&&B$(a,t,e.__pictorialSymbolMeta.animationModel,e)})).execute();var h=t.get("clip",!0)?VL(t.coordinateSystem,!1,t):null;return h?r.setClipPath(h):r.removeClipPath(),this._data=i,this.group},e.prototype.remove=function(t,e){var n=this.group,r=this._data;t.get("animation")?r&&r.eachItemGraphicEl((function(e){B$(r,wu(e).dataIndex,t,e)})):n.removeAll()},e.type=Sj,e}(fb);function S$(t,e,n,r){var i=t.getItemLayout(e),a=n.get("symbolRepeat"),o=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),d={dataIndex:e,layout:i,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};M$(n,a,i,r,d),I$(t,e,i,a,o,d.boundingLength,d.pxSign,c,r,d),T$(n,d.symbolScale,u,r,d);var p=d.symbolSize,f=V_(n.get("symbolOffset"),p);return C$(n,p,i,a,o,f,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function M$(t,e,n,r,i){var a,o=r.valueDim,s=t.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[o.wh]<=0);if(b["isArray"](s)){var h=[O$(l,s[0])-u,O$(l,s[1])-u];h[1]<h[0]&&h.reverse(),a=h[c]}else a=null!=s?O$(l,s)-u:e?r.coordSysExtent[o.index][c]-u:n[o.wh];i.boundingLength=a,e&&(i.repeatCutLength=n[o.wh]);var d="x"===o.xy,p=l.inverse;i.pxSign=d&&!p||!d&&p?a>=0?1:-1:a>0?1:-1}function O$(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function I$(t,e,n,r,i,a,o,s,l,u){var c,h=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),f=t.getItemVisual(e,"symbolSize");c=b["isArray"](f)?f.slice():null==f?["100%","100%"]:[f,f],c[d.index]=Zi(c[d.index],p),c[h.index]=Zi(c[h.index],r?p:Math.abs(a)),u.symbolSize=c;var g=u.symbolScale=[c[0]/s,c[1]/s];g[h.index]*=(l.isHorizontal?-1:1)*o}function T$(t,e,n,r,i){var a=t.get(x$)||0;a&&(_$.attr({scaleX:e[0],scaleY:e[1],rotation:n}),_$.updateTransform(),a/=_$.getLineScale(),a*=e[r.valueDim.index]),i.valueLineWidth=a||0}function C$(t,e,n,r,i,a,o,s,l,u,c,h){var d=c.categoryDim,p=c.valueDim,f=h.pxSign,g=Math.max(e[p.index]+s,0),y=g;if(r){var v=Math.abs(l),m=b["retrieve"](t.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=Zi(m,e[p.index]),w=Math.max(g+2*_,0),S=x?0:2*_,M=_a(r),O=M?r:W$((v+S)/w),I=v-O*g;_=I/2/(x?O:Math.max(O-1,1)),w=g+2*_,S=x?0:2*_,M||"fixed"===r||(O=u?W$((Math.abs(u)+S)/w):0),y=O*w-S,h.repeatTimes=O,h.symbolMargin=_}var T=f*(y/2),C=h.pathPosition=[];C[d.index]=n[d.wh]/2,C[p.index]="start"===o?T:"end"===o?l-T:l/2,a&&(C[0]+=a[0],C[1]+=a[1]);var A=h.bundlePosition=[];A[d.index]=n[d.xy],A[p.index]=n[p.xy];var D=h.barRectShape=b["extend"]({},n);D[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(C[p.index]+T)),D[d.wh]=n[d.wh];var k=h.clipShape={};k[d.xy]=-n[d.xy],k[d.wh]=c.ecSize[d.wh],k[p.xy]=0,k[p.wh]=n[p.wh]}function A$(t){var e=t.symbolPatternSize,n=z_(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function D$(t,e,n,r){var i=t.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,h=a[e.valueDim.index]+o+2*n.symbolMargin;for(F$(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c<u?H$(t,null,f(c),n,r):H$(t,null,{scaleX:0,scaleY:0},n,r,(function(){i.remove(t)})),c++}));c<u;c++){var d=A$(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var p=f(c);H$(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function f(t){var e=s.slice(),r=n.pxSign,i=t;return("start"===n.symbolRepeatDirection?r>0:r<0)&&(i=u-1-t),e[l.index]=h*(i-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function k$(t,e,n,r){var i=t.__pictorialBundle,a=t.__pictorialMainPath;a?H$(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=t.__pictorialMainPath=A$(n),i.add(a),H$(a,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function L$(t,e,n){var r=b["extend"]({},e.barRectShape),i=t.__pictorialBarRect;i?H$(i,null,{shape:r},e,n):(i=t.__pictorialBarRect=new nu({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,t.add(i))}function P$(t,e,n,r){if(n.symbolClip){var i=t.__pictorialClipPath,a=b["extend"]({},n.clipShape),s=e.valueDim,l=n.animationModel,u=n.dataIndex;if(i)nh(i,{shape:a},l,u);else{a[s.wh]=0,i=new nu({shape:a}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var c={};c[s.wh]=n.clipShape[s.wh],o[r?"updateProps":"initProps"](i,{shape:c},l,u)}}}function j$(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=R$,n.isAnimationEnabled=N$,n}function R$(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function N$(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function E$(t,e,n,r){var i=new vi,a=new vi;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?D$(i,e,n):k$(i,e,n),L$(i,n,r),P$(i,e,n,r),i.__pictorialShapeStr=V$(t,n),i.__pictorialSymbolMeta=n,i}function z$(t,e,n){var r=n.animationModel,i=n.dataIndex,a=t.__pictorialBundle;nh(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?D$(t,e,n,!0):k$(t,e,n,!0),L$(t,n,!0),P$(t,e,n,!0)}function B$(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];F$(r,(function(t){a.push(t)})),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),b["each"](a,(function(t){ah(t,{scaleX:0,scaleY:0},n,e,(function(){r.parent&&r.parent.remove(r)}))})),t.setItemGraphicEl(e,null)}function V$(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function F$(t,e,n){b["each"](t.__pictorialBundle.children(),(function(r){r!==t.__pictorialBarRect&&e.call(n,r)}))}function H$(t,e,n,r,i,a){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&o[i?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,a)}function G$(t,e,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),h=a.get("blurScope"),d=a.get("scale");F$(t,(function(t){if(t instanceof Xl){var e=t.style;t.useStyle(b["extend"]({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var r=t.ensureState("emphasis");r.style=o,d&&(r.scaleX=1.1*t.scaleX,r.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var p=e.valueDim.posDesc[+(n.boundingLength>0)],f=t.__pictorialBarRect;f.ignoreClip=!0,ph(f,fh(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:cL(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Fc(t,c,h,a.get("disabled"))}function W$(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var Y$=w$,U$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return f(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series."+Sj,e.dependencies=["grid"],e.defaultOption=Yh(Wj.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:Xp.color.primary}}}),e}(Wj),X$=U$;function Z$(t){t.registerChartView(Y$),t.registerSeriesModel(X$),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,zj(Sj)),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Bj(Sj)),Hj(t)}var q$=2,$$="themeRiver",K$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new kR(b["bind"](this.getData,this),b["bind"](this.getRawData,this))},e.prototype.fixData=function(t){var e=t.length,n={},r=lo(t,(function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]})),i=[];r.buckets.each((function(t,e){i.push({name:e,dataList:t})}));for(var a=i.length,o=0;o<a;++o){for(var s=i[o].name,l=0;l<i[o].dataList.length;++l){var u=i[o].dataList[l][0]+"";n[u]=o}for(var u in n)n.hasOwnProperty(u)&&n[u]!==o&&(n[u]=o,t[e]=[u,0,s],e++)}return t},e.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",eo).models[0],r=n.get("type"),i=b["filter"](t.data,(function(t){return void 0!==t[2]})),a=this.fixData(i||[]),o=[],s=this.nameMap=b["createHashMap"](),l=0,u=0;u<a.length;++u)o.push(a[u][q$]),s.get(a[u][q$])||(s.set(a[u][q$],l),l++);var c=uO(a,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:RM(r)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new sO(c,this);return h.initData(a),h},e.prototype.getLayerSeries=function(){for(var t=this.getData(),e=t.count(),n=[],r=0;r<e;++r)n[r]=r;var i=t.mapDimension("single"),a=lo(n,(function(e){return t.get("name",e)})),o=[];return a.buckets.each((function(e,n){e.sort((function(e,n){return t.get(i,e)-t.get(i,n)})),o.push({name:n,indices:e})})),o},e.prototype.getAxisTooltipData=function(t,e,n){b["isArray"](t)||(t=t?[t]:[]);for(var r,i=this.getData(),a=this.getLayerSeries(),o=[],s=a.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,c=-1,h=a[l].indices.length,d=0;d<h;++d){var p=i.get(t[0],a[l].indices[d]),f=Math.abs(p-e);f<=u&&(r=p,u=f,c=a[l].indices[d])}o.push(c)}return{dataIndices:o,nestestValue:r}},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=r.getName(t),a=r.get(r.mapDimension("value"),t);return Fy("nameValue",{name:i,value:a})},e.type="series."+$$,e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(vv),J$=K$,Q$=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=$$,e._layers=[],e}return f(e,t),e.prototype.render=function(t,e,n){var r=t.getData(),i=this,a=this.group,o=t.getLayerSeries(),s=r.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}a.x=0,a.y=l.y+u[0];var h=new kM(this._layersSeries||[],o,c,c),d=[];function p(e,n,s){var l=i._layers;if("remove"!==e){for(var u,c,h=[],p=[],f=o[n].indices,g=0;g<f.length;g++){var y=r.getItemLayout(f[g]),v=y.x,m=y.y0,x=y.y;h.push(v,m),p.push(v,m+x),u=r.getItemVisual(f[g],"style")}var b=r.getItemLayout(f[0]),_=t.getModel("label"),w=_.get("margin"),S=t.getModel("emphasis");if("add"===e){var M=d[n]=new vi;c=new EL({shape:{points:h,stackedOnPoints:p,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),M.add(c),a.add(M),t.isAnimationEnabled()&&c.setClipPath(tK(c.getBoundingRect(),t,(function(){c.removeClipPath()})))}else{M=l[s];c=M.childAt(0),a.add(M),d[n]=M,nh(c,{shape:{points:h,stackedOnPoints:p}},t),lh(c)}ph(c,fh(t),{labelDataIndex:f[g-1],defaultText:r.getName(f[g-1]),inheritColor:u.fill},{normal:{verticalAlign:"middle"}}),c.setTextConfig({position:null,local:!0});var O=c.getTextContent();O&&(O.x=b.x-w,O.y=b.y0+b.y/2),c.useStyle(u),r.setItemGraphicEl(n,c),Yc(c,t),Fc(c,S.get("focus"),S.get("blurScope"),S.get("disabled"))}else a.remove(l[n])}h.add(Object(b["bind"])(p,this,"add")).update(Object(b["bind"])(p,this,"update")).remove(Object(b["bind"])(p,this,"remove")).execute(),this._layersSeries=o,this._layers=d},e.type=$$,e}(fb);function tK(t,e,n){var r=new nu({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return rh(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}var eK=Q$,nK=Ao($$,rK);function rK(t,e){t.eachSeriesByType($$,(function(t){var e=t.getData(),n=t.coordinateSystem,r={},i=n.getRect();r.rect=i;var a=t.get("boundaryGap"),o=n.getAxis();if(r.boundaryGap=a,"horizontal"===o.orient){a[0]=Zi(a[0],i.height),a[1]=Zi(a[1],i.height);var s=i.height-a[0]-a[1];iK(e,t,s)}else{a[0]=Zi(a[0],i.width),a[1]=Zi(a[1],i.width);var l=i.width-a[0]-a[1];iK(e,t,l)}e.setLayout("layoutInfo",r)}))}function iK(t,e,n){if(t.count())for(var r,i=e.coordinateSystem,a=e.getLayerSeries(),o=t.mapDimension("single"),s=t.mapDimension("value"),l=b["map"](a,(function(e){return b["map"](e.indices,(function(e){var n=i.dataToPoint(t.get(o,e));return n[1]=t.get(s,e),n}))})),u=aK(l),c=u.y0,h=n/u.max,d=a.length,p=a[0].indices.length,f=0;f<p;++f){r=c[f]*h,t.setItemLayout(a[0].indices[f],{layerIndex:0,x:l[0][f][0],y0:r,y:l[0][f][1]*h});for(var g=1;g<d;++g)r+=l[g-1][f][1]*h,t.setItemLayout(a[g].indices[f],{layerIndex:g,x:l[g][f][0],y0:r,y:l[g][f][1]*h})}}function aK(t){for(var e=t.length,n=t[0].length,r=[],i=[],a=0,o=0;o<n;++o){for(var s=0,l=0;l<e;++l)s+=t[l][o][1];s>a&&(a=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(a-r[u])/2;a=0;for(var c=0;c<n;++c){var h=r[c]+i[c];h>a&&(a=h)}return{y0:i,max:a}}function oK(t){t.registerChartView(eK),t.registerSeriesModel(J$),t.registerLayout(nK),t.registerProcessor(CR($$))}var sK=2,lK=4,uK=function(t){function e(e,n,r,i){var a=t.call(this)||this;a.z2=sK,a.textConfig={inside:!0},wu(a).seriesIndex=n.seriesIndex;var o=new _u({z2:lK,silent:e.getModel().get(["label","silent"])});return a.setTextContent(o),a.updateData(!0,e,n,r,i),a}return f(e,t),e.prototype.updateData=function(t,e,n,r,i){this.node=e,e.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var a=this;wu(a).dataIndex=e.dataIndex;var o=e.getModel(),s=o.getModel("emphasis"),l=e.getLayout(),u=b["extend"]({},l);u.label=null;var c=e.getVisual("style");c.lineJoin="bevel";var h=e.getVisual("decal");h&&(c.decal=Tw(h,i));var d=tR(o.getModel("itemStyle"),u,!0);b["extend"](u,d),b["each"](Xu,(function(t){var e=a.ensureState(t),n=o.getModel([t,"itemStyle"]);e.style=n.getItemStyle();var r=tR(n,u);r&&(e.shape=r)})),t?(a.setShape(u),a.shape.r=l.r0,rh(a,{shape:{r:l.r}},n,e.dataIndex)):(nh(a,{shape:u},n),lh(a)),a.useStyle(c),this._updateLabel(n);var p=o.getShallow("cursor");p&&a.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var f=s.get("focus"),g="relative"===f?b["concatArray"](e.getAncestorsIndices(),e.getDescendantIndices()):"ancestor"===f?e.getAncestorsIndices():"descendant"===f?e.getDescendantIndices():f;Fc(this,g,s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t){var e=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),a=i.endAngle-i.startAngle,o=(i.startAngle+i.endAngle)/2,s=Math.cos(o),l=Math.sin(o),u=this,c=u.getTextContent(),h=this.node.dataIndex,d=r.get("minAngle")/180*Math.PI,p=r.get("show")&&!(null!=d&&Math.abs(a)<d);function f(t,e){var n=t.get(e);return null==n?r.get(e):n}c.ignore=!p,b["each"](Zu,(function(r){var d="normal"===r?n.getModel("label"):n.getModel([r,"label"]),p="normal"===r,g=p?c:c.ensureState(r),y=t.getFormattedLabel(h,r);p&&(y=y||e.node.name),g.style=gh(d,{},null,"normal"!==r,!0),y&&(g.style.text=y);var v=d.get("show");null==v||p||(g.ignore=!v);var m,x=f(d,"position"),_=p?u:u.states[r],w=_.style.fill;_.textConfig={outsideFill:"inherit"===d.get("color")?w:null,inside:"outside"!==x};var S=f(d,"distance")||0,M=f(d,"align"),O=f(d,"rotate"),I=.5*Math.PI,T=1.5*Math.PI,C=ml("tangential"===O?Math.PI/2-o:o),A=C>I&&!ha(C-I)&&C<T;"outside"===x?(m=i.r+S,M=A?"right":"left"):M&&"center"!==M?"left"===M?(m=i.r0+S,M=A?"right":"left"):"right"===M&&(m=i.r-S,M=A?"left":"right"):(m=0===i.r0&&ha(a-2*Math.PI)?0:(i.r+i.r0)/2,M="center"),g.style.align=M,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=m*s+i.cx,g.y=m*l+i.cy;var D=0;"radial"===O?D=ml(-o)+(A?Math.PI:0):"tangential"===O?D=ml(Math.PI/2-o)+(A?Math.PI:0):b["isNumber"](O)&&(D=O*Math.PI/180),g.rotation=ml(D)})),c.dirtyStyle()},e}(pm),cK=uK,hK="sunburst",dK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return f(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};pK(n);var r=this._levelModels=b["map"](t.levels||[],(function(t){return new Vh(t,this,e)}),this),i=BF.createTree(n,this,a);function a(t){t.wrapMethod("getItemModel",(function(t,e){var n=i.getNodeByDataIndex(e),a=r[n.depth];return a&&(t.parentModel=a),t}))}return i.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=GF(r,this),n},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){fH(this)},e.type="series."+hK,e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(vv);function pK(t){var e=0;b["each"](t.children,(function(t){pK(t);var n=t.value;b["isArray"](n)&&(n=n[0]),e+=n}));var n=t.value;b["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),b["isArray"](t.value)?t.value[0]=n:t.value=n}var fK=dK,gK="sunburstRootToNode",yK="sunburstHighlight",vK="sunburstUnhighlight";function mK(t){t.registerAction({type:gK,update:"updateView"},(function(t,e){function n(e,n){var r=VF(t,[gK],e);if(r){var i=e.getViewRoot();i&&(t.direction=HF(i,r.node)?"rollUp":"drillDown"),e.resetViewRoot(r.node)}}e.eachComponent({mainType:"series",subType:"sunburst",query:t},n)})),t.registerAction({type:yK,update:"none"},(function(t,e,n){function r(e){var n=VF(t,[yK],e);n&&(t.dataIndex=n.node.dataIndex)}t=Object(b["extend"])({},t),e.eachComponent({mainType:"series",subType:"sunburst",query:t},r),n.dispatchAction(Object(b["extend"])(t,{type:"highlight"}))})),t.registerAction({type:vK,update:"updateView"},(function(t,e,n){t=Object(b["extend"])({},t),n.dispatchAction(Object(b["extend"])(t,{type:"downplay"}))}))}var xK=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=hK,e}return f(e,t),e.prototype.render=function(t,e,n,r){var i=this;this.seriesModel=t,this.api=n,this.ecModel=e;var a=t.getData(),o=a.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var h=this._oldChildren||[];function d(t,e){function n(t){return t.getId()}function r(n,r){var i=null==n?null:t[n],a=null==r?null:e[r];p(i,a)}0===t.length&&0===e.length||new kM(e,t,n,n).add(r).update(r).remove(b["curry"](r,null)).execute()}function p(r,i){if(u||!r||r.getValue()||(r=null),r!==o&&i!==o)if(i&&i.piece)r?(i.piece.updateData(!1,r,t,e,n),a.setItemGraphicEl(r.dataIndex,i.piece)):f(i);else if(r){var s=new cK(r,t,e,n);l.add(s),a.setItemGraphicEl(r.dataIndex,s)}}function f(t){t&&t.piece&&(l.remove(t.piece),t.piece=null)}function g(r,a){a.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,t,e,n):(i.virtualPiece=new cK(r,t,e,n),l.add(i.virtualPiece)),a.piece.off("click"),i.virtualPiece.on("click",(function(t){i._rootToNode(a.parentNode)}))):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null)}d(c,h),g(o,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1,r=t.seriesModel.getViewRoot();r.eachNode((function(r){if(!n&&r.piece&&r.piece===e.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)t._rootToNode(r);else if("link"===i){var a=r.getModel(),o=a.get("link");if(o){var s=a.get("target",!0)||"_blank";ip(o,s)}}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:gK,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData(),r=n.getItemLayout(0);if(r){var i=t[0]-r.cx,a=t[1]-r.cy,o=Math.sqrt(i*i+a*a);return o<=r.r&&o>=r.r0}},e.type=hK,e}(fb),bK=xK,_K=Ao(hK,wK);function wK(t){var e={};function n(t,n,r){if(0===t.depth)return Xp.color.neutral50;var i=t;while(i&&i.depth>1)i=i.parentNode;var a=n.getColorFromPalette(i.name||i.dataIndex+"",e);return t.depth>1&&Object(b["isString"])(a)&&(a=Object(bn["lift"])(a,(t.depth-1)/(r-1)*.5)),a}t.eachSeriesByType(hK,(function(t){var e=t.getData(),r=e.tree;r.eachNode((function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle();o.fill||(o.fill=n(i,t,r.root.height));var s=e.ensureUniqueItemVisual(i.dataIndex,"style");Object(b["extend"])(s,o)}))}))}var SK=Math.PI/180,MK=Ao(hK,OK);function OK(t,e){t.eachSeriesByType(hK,(function(t){var n=t.get("center"),r=t.get("radius");b["isArray"](r)||(r=[0,r]),b["isArray"](n)||(n=[n,n]);var i=e.getWidth(),a=e.getHeight(),o=Math.min(i,a),s=Zi(n[0],i),l=Zi(n[1],a),u=Zi(r[0],o/2),c=Zi(r[1],o/2),h=-t.get("startAngle")*SK,d=t.get("minAngle")*SK,p=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,y=t.get("sort");null!=y&&IK(f,y);var v=0;b["each"](f.children,(function(t){!isNaN(t.getValue())&&v++}));var m=f.getValue(),x=Math.PI/(m||v)*2,_=f.depth>0,w=f.height-(_?-1:1),S=(c-u)/(w||1),M=t.get("clockwise"),O=t.get("stillShowZeroSum"),I=M?1:-1,T=function(e,n){if(e){var r=n;if(e!==p){var i=e.getValue(),a=0===m&&O?x:i*x;a<d&&(a=d),r=n+I*a;var c=e.depth-g-(_?-1:1),h=u+S*c,f=u+S*(c+1),y=t.getLevelModel(e);if(y){var v=y.get("r0",!0),w=y.get("r",!0),C=y.get("radius",!0);null!=C&&(v=C[0],w=C[1]),null!=v&&(h=Zi(v,o/2)),null!=w&&(f=Zi(w,o/2))}e.setLayout({angle:a,startAngle:n,endAngle:r,clockwise:M,cx:s,cy:l,r0:h,r:f})}if(e.children&&e.children.length){var A=0;b["each"](e.children,(function(t){A+=T(t,n+A)}))}return r-n}};if(_){var C=u,A=u+S,D=2*Math.PI;p.setLayout({angle:D,startAngle:h,endAngle:h+D,clockwise:M,cx:s,cy:l,r0:C,r:A})}T(f,h)}))}function IK(t,e){var n=t.children||[];t.children=TK(n,e),n.length&&b["each"](t.children,(function(t){IK(t,e)}))}function TK(t,e){if(b["isFunction"](e)){var n=b["map"](t,(function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}}));return n.sort((function(t,n){return e(t.params,n.params)})),b["map"](n,(function(e){return t[e.index]}))}var r="asc"===e;return t.sort((function(t,e){var n=(t.getValue()-e.getValue())*(r?1:-1);return 0===n?(t.dataIndex-e.dataIndex)*(r?-1:1):n}))}function CK(t){t.registerChartView(bK),t.registerSeriesModel(fK),t.registerLayout(MK),t.registerVisual(_K),mK(t)}var AK={color:"fill",borderColor:"stroke"},DK={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},kK=Ka(),LK=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return OO(null,this)},e.prototype.getDataParams=function(e,n,r){var i=t.prototype.getDataParams.call(this,e,n);return r&&(i.info=kK(r).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(vv),PK=LK;function jK(t,e){return e=e||[0,0],b["map"](["x","y"],(function(n,r){var i=this.getAxis(n),a=e[r],o=t[r]/2;return"category"===i.type?YC(i).w:Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))}),this)}function RK(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:b["bind"](jK,t)}}}function NK(t,e){return e=e||[0,0],b["map"]([0,1],(function(n){var r=e[n],i=t[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=e[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])}),this)}function EK(t){var e=t.view,n=e.getBoundingRect();return{coordSys:{type:"geo",x:n.x,y:n.y,width:n.width,height:n.height,zoom:wB(e)},api:{coord:function(e){return t.dataToPoint(e)},size:b["bind"](NK,t)}}}function zK(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return"category"===n.type?YC(n).w:Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function BK(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e){return t.dataToPoint(e)},size:Object(b["bind"])(zK,t)}}}function VK(t,e){return e=e||[0,0],b["map"](["Radius","Angle"],(function(n,r){var i="get"+n+"Axis",a=this[i](),o=e[r],s=t[r]/2,l="category"===a.type?YC(a).w:Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function FK(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=e.dataToRadius(r[0]),a=n.dataToAngle(r[1]),o=t.coordToPoint([i,a]);return o.push(i,a*Math.PI/180),o},size:b["bind"](VK,t)}}}function HK(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)},layout:function(e,n){return t.dataToLayout(e,n)}}}}function GK(t){var e=t.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(e,n){return t.dataToPoint(e,n)},layout:function(e,n){return t.dataToLayout(e,n)}}}}function WK(t,e,n,r){return t&&(t.legacy||!1!==t.legacy&&!n&&!r&&"tspan"!==e&&("text"===e||Object(b["hasOwn"])(t,"text")))}function YK(t,e,n){var r,i,a,o=t;if("text"===e)a=o;else{a={},Object(b["hasOwn"])(o,"text")&&(a.text=o.text),Object(b["hasOwn"])(o,"rich")&&(a.rich=o.rich),Object(b["hasOwn"])(o,"textFill")&&(a.fill=o.textFill),Object(b["hasOwn"])(o,"textStroke")&&(a.stroke=o.textStroke),Object(b["hasOwn"])(o,"fontFamily")&&(a.fontFamily=o.fontFamily),Object(b["hasOwn"])(o,"fontSize")&&(a.fontSize=o.fontSize),Object(b["hasOwn"])(o,"fontStyle")&&(a.fontStyle=o.fontStyle),Object(b["hasOwn"])(o,"fontWeight")&&(a.fontWeight=o.fontWeight),i={type:"text",style:a,silent:!0},r={};var s=Object(b["hasOwn"])(o,"textPosition");n?r.position=s?o.textPosition:"inside":s&&(r.position=o.textPosition),Object(b["hasOwn"])(o,"textPosition")&&(r.position=o.textPosition),Object(b["hasOwn"])(o,"textOffset")&&(r.offset=o.textOffset),Object(b["hasOwn"])(o,"textRotation")&&(r.rotation=o.textRotation),Object(b["hasOwn"])(o,"textDistance")&&(r.distance=o.textDistance)}return UK(a,t),Object(b["each"])(a.rich,(function(t){UK(t,t)})),{textConfig:r,textContent:i}}function UK(t,e){e&&(e.font=e.textFont||e.font,Object(b["hasOwn"])(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Object(b["hasOwn"])(e,"textAlign")&&(t.align=e.textAlign),Object(b["hasOwn"])(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Object(b["hasOwn"])(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Object(b["hasOwn"])(e,"textWidth")&&(t.width=e.textWidth),Object(b["hasOwn"])(e,"textHeight")&&(t.height=e.textHeight),Object(b["hasOwn"])(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Object(b["hasOwn"])(e,"textPadding")&&(t.padding=e.textPadding),Object(b["hasOwn"])(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Object(b["hasOwn"])(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Object(b["hasOwn"])(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Object(b["hasOwn"])(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Object(b["hasOwn"])(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Object(b["hasOwn"])(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Object(b["hasOwn"])(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function XK(t,e,n){var r=t;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,a=t.fill||Xp.color.neutral99;ZK(r,e);var o=null==r.textFill;return i?o&&(r.textFill=n.insideFill||Xp.color.neutral00,!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(o&&(r.textFill=t.fill||n.outsideFill||Xp.color.neutral00),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,Object(b["each"])(e.rich,(function(t){ZK(t,t)})),r}function ZK(t,e){e&&(Object(b["hasOwn"])(e,"fill")&&(t.textFill=e.fill),Object(b["hasOwn"])(e,"stroke")&&(t.textStroke=e.fill),Object(b["hasOwn"])(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(b["hasOwn"])(e,"font")&&(t.font=e.font),Object(b["hasOwn"])(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(b["hasOwn"])(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(b["hasOwn"])(e,"fontSize")&&(t.fontSize=e.fontSize),Object(b["hasOwn"])(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(b["hasOwn"])(e,"align")&&(t.textAlign=e.align),Object(b["hasOwn"])(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(b["hasOwn"])(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(b["hasOwn"])(e,"width")&&(t.textWidth=e.width),Object(b["hasOwn"])(e,"height")&&(t.textHeight=e.height),Object(b["hasOwn"])(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(b["hasOwn"])(e,"padding")&&(t.textPadding=e.padding),Object(b["hasOwn"])(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(b["hasOwn"])(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(b["hasOwn"])(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(b["hasOwn"])(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(b["hasOwn"])(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(b["hasOwn"])(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(b["hasOwn"])(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(b["hasOwn"])(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(b["hasOwn"])(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(b["hasOwn"])(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(b["hasOwn"])(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var qK={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},$K=Object(b["keys"])(qK),KK=(Object(b["reduce"])(kr,(function(t,e){return t[e]=1,t}),{}),kr.join(", "),["","style","shape","extra"]),JK=Ka();function QK(t,e,n,r,i){var a=t+"Animation",o=th(t,r,i)||{},s=JK(e).userDuring;return o.duration>0&&(o.during=s?Object(b["bind"])(uJ,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),Object(b["extend"])(o,n[a]),o}function tJ(t,e,n,r){r=r||{};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=JK(t),u=e.style;l.userDuring=e.during;var c={},h={};if(pJ(t,e,h),"compound"===t.type)for(var d=t.shape.paths,p=e.shape.paths,f=0;f<p.length;f++){var g=p[f];hJ("shape",g,d[f])}else hJ("shape",e,h),hJ("extra",e,h);if(!a&&s&&(dJ(t,e,c),cJ("shape",t,e,c),cJ("extra",t,e,c),fJ(t,e,u,c)),h.style=u,iJ(t,h,o),oJ(t,e),s)if(a){var y={};Object(b["each"])(KK,(function(t){var n=t?e[t]:e;n&&n.enterFrom&&(t&&(y[t]=y[t]||{}),Object(b["extend"])(t?y[t]:y,n.enterFrom))}));var v=QK("enter",t,e,n,i);v.duration>0&&t.animateFrom(y,v)}else aJ(t,e,i||0,n,c);eJ(t,e),u?t.dirty():t.markRedraw()}function eJ(t,e){for(var n=JK(t).leaveToProps,r=0;r<KK.length;r++){var i=KK[r],a=i?e[i]:e;a&&a.leaveTo&&(n||(n=JK(t).leaveToProps={}),i&&(n[i]=n[i]||{}),Object(b["extend"])(i?n[i]:n,a.leaveTo))}}function nJ(t,e,n,r){if(t){var i=t.parent,a=JK(t).leaveToProps;if(a){var o=QK("update",t,e,n,0);o.done=function(){i&&i.remove(t),r&&r()},t.animateTo(a,o)}else i&&i.remove(t),r&&r()}}function rJ(t){return"all"===t}function iJ(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var i=t.animators,a=0;a<i.length;a++){var o=i[a];"style"===o.targetName&&o.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}function aJ(t,e,n,r,i){if(i){var a=QK("update",t,e,r,n);a.duration>0&&t.animateFrom(i,a)}}function oJ(t,e){Object(b["hasOwn"])(e,"silent")&&(t.silent=e.silent),Object(b["hasOwn"])(e,"ignore")&&(t.ignore=e.ignore),t instanceof Ls&&Object(b["hasOwn"])(e,"invisible")&&(t.invisible=e.invisible),t instanceof Bl&&Object(b["hasOwn"])(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var sJ={},lJ={setTransform:function(t,e){return sJ.el[t]=e,this},getTransform:function(t){return sJ.el[t]},setShape:function(t,e){var n=sJ.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=sJ.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=sJ.el,r=n.style;return r&&(r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var e=sJ.el.style;if(e)return e[t]},setExtra:function(t,e){var n=sJ.el.extra||(sJ.el.extra={});return n[t]=e,this},getExtra:function(t){var e=sJ.el.extra;if(e)return e[t]}};function uJ(){var t=this,e=t.el;if(e){var n=JK(e).userDuring,r=t.userDuring;n===r?(sJ.el=e,r(lJ)):t.el=t.userDuring=null}}function cJ(t,e,n,r){var i=n[t];if(i){var a,o=e[t];if(o){var s=n.transition,l=i.transition;if(l)if(!a&&(a=r[t]={}),rJ(l))Object(b["extend"])(a,o);else for(var u=Aa(l),c=0;c<u.length;c++){var h=u[c],d=o[h];a[h]=d}else if(rJ(s)||Object(b["indexOf"])(s,t)>=0){!a&&(a=r[t]={});var p=Object(b["keys"])(o);for(c=0;c<p.length;c++){h=p[c],d=o[h];gJ(i[h],d)&&(a[h]=d)}}}}}function hJ(t,e,n){var r=e[t];if(r)for(var i=n[t]={},a=Object(b["keys"])(r),o=0;o<a.length;o++){var s=a[o];i[s]=Dn(r[s])}}function dJ(t,e,n){for(var r=e.transition,i=rJ(r)?kr:Aa(r||[]),a=0;a<i.length;a++){var o=i[a];if("style"!==o&&"shape"!==o&&"extra"!==o){var s=t[o];0,n[o]=s}}}function pJ(t,e,n){for(var r=0;r<$K.length;r++){var i=$K[r],a=qK[i],o=e[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(r=0;r<kr.length;r++){var s=kr[r];null!=e[s]&&(n[s]=e[s])}}function fJ(t,e,n,r){if(n){var i,a=t.style;if(a){var o=n.transition,s=e.transition;if(o&&!rJ(o)){var l=Aa(o);!i&&(i=r.style={});for(var u=0;u<l.length;u++){var c=l[u],h=a[c];i[c]=h}}else if(t.getAnimationStyleProps&&(rJ(s)||rJ(o)||Object(b["indexOf"])(s,"style")>=0)){var d=t.getAnimationStyleProps(),p=d?d.style:null;if(p){!i&&(i=r.style={});var f=Object(b["keys"])(n);for(u=0;u<f.length;u++){c=f[u];if(p[c]){h=a[c];i[c]=h}}}}}}}function gJ(t,e){return Object(b["isArrayLike"])(t)?t!==e:null!=t&&isFinite(t)}var yJ=Ka(),vJ=["percent","easing","shape","style","extra"];function mJ(t){t.stopAnimation("keyframe"),t.attr(yJ(t))}function xJ(t,e,n){if(n.isAnimationEnabled()&&e)if(Object(b["isArray"])(e))Object(b["each"])(e,(function(e){xJ(t,e,n)}));else{var r=e.keyframes,i=e.duration;if(n&&null==i){var a=th("enter",n,0);i=a&&a.duration}if(r&&i){var o=yJ(t);Object(b["each"])(KK,(function(n){if(!n||t[n]){var a;r.sort((function(t,e){return t.percent-e.percent})),Object(b["each"])(r,(function(r){var s=t.animators,l=n?r[n]:r;if(l){var u=Object(b["keys"])(l);if(n||(u=Object(b["filter"])(u,(function(t){return Object(b["indexOf"])(vJ,t)<0}))),u.length){a||(a=t.animate(n,e.loop,!0),a.scope="keyframe");for(var c=0;c<s.length;c++)s[c]!==a&&s[c].targetName===a.targetName&&s[c].stopTracks(u);n&&(o[n]=o[n]||{});var h=n?o[n]:o;Object(b["each"])(u,(function(e){h[e]=((n?t[n]:t)||{})[e]})),a.whenWithKeys(i*r.percent,l,u,r.easing)}}})),a&&a.delay(e.delay||0).duration(i).start(e.easing)}}))}}}var bJ="emphasis",_J="normal",wJ="blur",SJ="select",MJ=[_J,bJ,wJ,SJ],OJ={normal:["itemStyle"],emphasis:[bJ,"itemStyle"],blur:[wJ,"itemStyle"],select:[SJ,"itemStyle"]},IJ={normal:["label"],emphasis:[bJ,"label"],blur:[wJ,"label"],select:[SJ,"label"]},TJ=["x","y"],CJ="e\0\0",AJ={normal:{},emphasis:{},blur:{},select:{}},DJ={cartesian2d:RK,geo:EK,single:BK,polar:FK,calendar:HK,matrix:GK};function kJ(t){return t instanceof Bl}function LJ(t){return t instanceof Ls}function PJ(t,e){e.copyTransform(t),LJ(e)&&LJ(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,kJ(e)&&kJ(t)&&e.setShape(t.shape))}var jJ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n,r){this._progressiveEls=null;var i=this._data,a=t.getData(),o=this.group,s=FJ(t,a,e,n);i||o.removeAll(),a.diff(i).add((function(e){GJ(n,null,e,s(e,r),t,o,a)})).remove((function(e){var n=i.getItemGraphicEl(e);n&&nJ(n,kK(n).option,t)})).update((function(e,l){var u=i.getItemGraphicEl(l);GJ(n,u,e,s(e,r),t,o,a)})).execute();var l=t.get("clip",!0)?VL(t.coordinateSystem,!1,t):null;l?o.setClipPath(l):o.removeClipPath(),this._data=a},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,r,i){var a=e.getData(),o=FJ(e,a,n,r),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=To(e),t.ensureState("emphasis").hoverLayer=fx)}for(var u=t.start;u<t.end;u++){var c=GJ(null,null,u,o(u,i),e,this.group,a);c&&(c.traverse(l),s.push(c))}},e.prototype.eachRendered=function(t){Xx(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,e,n,r){var i=e.element;if(null==i||n.name===i)return!0;while((n=n.__hostTarget||n.parent)&&n!==this.group)if(n.name===i)return!0;return!1},e.type="custom",e}(fb),RJ=jJ;function NJ(t){var e,n=t.type;if("path"===n){var r=t.shape,i=null!=r.width&&null!=r.height?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,a=rQ(r);e=bx(a,null,i,r.layout||"center"),kK(e).customPathData=a}else if("image"===n)e=new Xl({}),kK(e).customImagePath=t.style.image;else if("text"===n)e=new _u({});else if("group"===n)e=new vi;else if("compoundPath"===n){r=t.shape;if(!r||!r.paths){var o="";0,Cf(o)}var s=Object(b["map"])(r.paths,(function(t){if("path"===t.type)return bx(t.shape.pathData,t,null);var e=xx(t.type);if(!e){var n="";0,Cf(n)}return new e}));e=new zm({shape:{paths:s}})}else{var l=xx(n);if(!l){o="";0,Cf(o)}e=new l}return kK(e).customGraphicType=n,e.name=t.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function EJ(t,e,n,r,i,a,o){mJ(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),r&&null==r.transition&&(r.transition=TJ);var l=r&&r.style;if(l){if("text"===e.type){var u=l;Object(b["hasOwn"])(u,"textFill")&&(u.fill=u.textFill),Object(b["hasOwn"])(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,h=kJ(e)?l.decal:null;t&&h&&(h.dirty=!0,c=Tw(h,t)),l.__decalPattern=c}if(LJ(e)&&l){c=l.__decalPattern;c&&(l.decal=c)}tJ(e,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),xJ(e,r.keyframeAnimation,a)}function zJ(t,e,n,r,i){var a=e.isGroup?null:e,o=i&&i[t].cfg;if(a){var s=a.ensureState(t);if(!1===r){var l=a.getState(t);l&&(l.style=null)}else s.style=r||null;o&&(s.textConfig=o),xc(a)}}function BJ(t,e,n){if(!t.isGroup){var r=t,i=n.currentZ,a=n.currentZLevel;r.z=i,r.zlevel=a;var o=e.z2;null!=o&&(r.z2=o||0);for(var s=0;s<MJ.length;s++)VJ(r,e,MJ[s])}}function VJ(t,e,n){var r,i=n===_J,a=i?e:qJ(e,n),o=a?a.z2:null;null!=o&&(r=i?t:t.ensureState(n),r.z2=o||0)}function FJ(t,e,n,r){var i=t.get("renderItem");if("string"===typeof i){var a=x_(i);a&&(i=a)}var o=t.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):DJ[o.type](o));for(var l,u,c=Object(b["defaults"])({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:w,style:M,ordinalRawValue:S,styleEmphasis:O,visual:C,barLayout:A,currentSeriesIndices:D,font:k},s.api||{}),h={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:HJ(t.getData()),itemPayload:t.get("itemPayload")||{}},d={},p={},f={},g={},y=0;y<MJ.length;y++){var v=MJ[y];f[v]=t.getModel(OJ[v]),g[v]=t.getModel(IJ[v])}function m(t){return t===l?u||(u=e.getItemModel(t)):e.getItemModel(t)}function x(t,n){return e.hasItemOption?t===l?d[n]||(d[n]=m(t).getModel(OJ[n])):m(t).getModel(OJ[n]):f[n]}function _(t,n){return e.hasItemOption?t===l?p[n]||(p[n]=m(t).getModel(IJ[n])):m(t).getModel(IJ[n]):g[n]}return function(t,n){return l=t,u=null,d={},p={},i&&i(Object(b["defaults"])({dataIndexInside:t,dataIndex:e.getRawIndex(t),actionType:n?n.type:null},h),c)};function w(t,n){return null==n&&(n=l),e.getStore().get(e.getDimensionIndex(t||0),n)}function S(t,n){null==n&&(n=l),t=t||0;var r=e.getDimensionInfo(t);if(!r){var i=e.getDimensionIndex(t);return i>=0?e.getStore().get(i,n):void 0}var a=e.get(r.name,n),o=r&&r.ordinalMeta;return o?o.categories[a]:a}function M(n,r){null==r&&(r=l);var i=e.getItemVisual(r,"style"),a=i&&i.fill,o=i&&i.opacity,s=x(r,_J).getItemStyle();null!=a&&(s.fill=a),null!=o&&(s.opacity=o);var u={inheritColor:Object(b["isString"])(a)?a:Xp.color.neutral99},c=_(r,_J),h=gh(c,null,u,!1,!0);h.text=c.getShallow("show")?Object(b["retrieve2"])(t.getFormattedLabel(r,_J),cL(e,r)):null;var d=yh(c,u,!1);return T(n,s),s=XK(s,h,d),n&&I(s,n),s.legacy=!0,s}function O(n,r){null==r&&(r=l);var i=x(r,bJ).getItemStyle(),a=_(r,bJ),o=gh(a,null,null,!0,!0);o.text=a.getShallow("show")?Object(b["retrieve3"])(t.getFormattedLabel(r,bJ),t.getFormattedLabel(r,_J),cL(e,r)):null;var s=yh(a,null,!0);return T(n,i),i=XK(i,o,s),n&&I(i,n),i.legacy=!0,i}function I(t,e){for(var n in e)Object(b["hasOwn"])(e,n)&&(t[n]=e[n])}function T(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}function C(t,n){if(null==n&&(n=l),Object(b["hasOwn"])(AK,t)){var r=e.getItemVisual(n,"style");return r?r[AK[t]]:null}if(Object(b["hasOwn"])(DK,t))return e.getItemVisual(n,t)}function A(t){if("cartesian2d"===o.type){var e=o.getBaseAxis();return jj(Object(b["defaults"])({axis:e},t))}}function D(){return n.getCurrentSeriesIndices()}function k(t){return Sh(t,n)}}function HJ(t){var e={};return Object(b["each"])(t.dimensions,(function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=e[i]=e[i]||[];a[r.coordDimIndex]=t.getDimensionIndex(n)}})),e}function GJ(t,e,n,r,i,a,o){if(r){var s=WJ(t,e,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&Fc(s,r.focus,r.blurScope,r.emphasisDisabled),s}a.remove(e)}function WJ(t,e,n,r,i,a){var o=-1,s=e;e&&YJ(e,r,i)&&(o=Object(b["indexOf"])(a.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=NJ(r),s&&PJ(s,u)),!1===r.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),r.tooltipDisabled&&(u.tooltipDisabled=!0),AJ.normal.cfg=AJ.normal.conOpt=AJ.emphasis.cfg=AJ.emphasis.conOpt=AJ.blur.cfg=AJ.blur.conOpt=AJ.select.cfg=AJ.select.conOpt=null,AJ.isLegacy=!1,XJ(u,n,r,i,l,AJ),UJ(u,n,r,i,l),EJ(t,u,n,r,AJ,i,l),Object(b["hasOwn"])(r,"info")&&(kK(u).info=r.info);for(var c=0;c<MJ.length;c++){var h=MJ[c];if(h!==_J){var d=qJ(r,h),p=$J(r,d,h);zJ(h,u,d,p,AJ)}}return BJ(u,r,i),"group"===r.type&&KJ(t,u,n,r,i),o>=0?a.replaceAt(u,o):a.add(u),u}function YJ(t,e,n){var r=kK(t),i=e.type,a=e.shape,o=e.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==r.customGraphicType||"path"===i&&iQ(a)&&rQ(a)!==r.customPathData||"image"===i&&Object(b["hasOwn"])(o,"image")&&o.image!==r.customImagePath}function UJ(t,e,n,r,i){var a=n.clipPath;if(!1===a)t&&t.getClipPath()&&t.removeClipPath();else if(a){var o=t.getClipPath();o&&YJ(o,a,r)&&(o=null),o||(o=NJ(a),t.setClipPath(o)),EJ(null,o,e,a,null,r,i)}}function XJ(t,e,n,r,i,a){if(!t.isGroup&&"compoundPath"!==t.type){ZJ(n,null,a),ZJ(n,bJ,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(null!=o||null!=s||null!=u||null!=l){var c=t.getTextContent();if(!1===o)c&&t.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=NJ(o),t.setTextContent(c)),EJ(null,c,e,o,null,r,i);for(var h=o&&o.style,d=0;d<MJ.length;d++){var p=MJ[d];if(p!==_J){var f=a[p].conOpt;zJ(p,c,f,$J(o,f,p),null)}}h?c.dirty():c.markRedraw()}}}}function ZJ(t,e,n){var r=e?qJ(t,e):t,i=e?$J(t,r,bJ):t.style,a=t.type,o=r?r.textConfig:null,s=t.textContent,l=s?e?qJ(s,e):s:null;if(i&&(n.isLegacy||WK(i,a,!!o,!!l))){n.isLegacy=!0;var u=YK(i,a,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var h=e?n[e]:n.normal;h.cfg=o,h.conOpt=l}function qJ(t,e){return e?t?t[e]:null:t}function $J(t,e,n){var r=e&&e.style;return null==r&&n===bJ&&t&&(r=t.styleEmphasis),r}function KJ(t,e,n,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,l="byName"===s||r.diffChildrenByName,u=!1===s;if(o||l||u)if(l)QJ({api:t,oldChildren:e.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:e});else{u&&e.removeAll();for(var c=0;c<o;c++){var h=a[c],d=e.childAt(c);h?(null==h.ignore&&(h.ignore=!1),WJ(t,d,n,h,i,e)):d.ignore=!0}for(var p=e.childCount()-1;p>=c;p--){var f=e.childAt(p);JJ(e,f,i)}}}function JJ(t,e,n){e&&nJ(e,kK(t).option,n)}function QJ(t){new kM(t.oldChildren,t.newChildren,tQ,tQ,t).add(eQ).update(eQ).remove(nQ).execute()}function tQ(t,e){var n=t&&t.name;return null!=n?n:CJ+e}function eQ(t,e){var n=this.context,r=null!=t?n.newChildren[t]:null,i=null!=e?n.oldChildren[e]:null;WJ(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function nQ(t){var e=this.context,n=e.oldChildren[t];n&&nJ(n,kK(n).option,e.seriesModel)}function rQ(t){return t&&(t.pathData||t.d)}function iQ(t){return t&&(Object(b["hasOwn"])(t,"pathData")||Object(b["hasOwn"])(t,"d"))}function aQ(t){t.registerChartView(RJ),t.registerSeriesModel(PK)}var oQ=Ka(),sQ=b["clone"],lQ=b["bind"],uQ=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,r){var i=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||"hide"===a)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(o){var h=b["curry"](cQ,e,c);this.updatePointerEl(o,l,h),this.updateLabelEl(o,l,h,e)}else o=this._group=new vi,this.createPointerEl(o,l,t,e),this.createLabelEl(o,l,t,e),n.getZr().add(o);fQ(o,e,!0),this._renderHandle(i)}},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"),r=t.axis,i="category"===r.type,a=e.get("snap");if(!a&&!i)return!1;if("auto"===n||null==n){var o=this.animationThreshold;if(i&&YC(r).w>o)return!0;if(a){var s=tE(t).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>o}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var a=oQ(t).pointerEl=new o[i.type](sQ(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=oQ(t).labelEl=new _u(sQ(e.label));t.add(i),dQ(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=oQ(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=oQ(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),dQ(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel("handle"),o=n.get("status");if(!a.get("show")||!o||"hide"===o)return i&&r.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Ex(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){_t(t.event)},onmousedown:lQ(this._onHandleDragMove,this,0,0),drift:lQ(this._onHandleDragMove,this),ondragend:lQ(this._onHandleDragEnd,this)}),r.add(i)),fQ(i,n,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=a.get("size");b["isArray"](s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,xb(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){cQ(this._axisPointerModel,!e&&this._moveAnimation,this._handle,pQ(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(pQ(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(pQ(r)),oQ(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,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),bb(this,"_doDispatchAxisPointer")},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 cQ(t,e,n,r){hQ(oQ(n).lastProp,r)||(oQ(n).lastProp=r,e?nh(n,r,t):(n.stopAnimation(),n.attr(r)))}function hQ(t,e){if(b["isObject"](t)&&b["isObject"](e)){var n=!0;return b["each"](e,(function(e,r){n=n&&hQ(t[r],e)})),!!n}return t===e}function dQ(t,e){t[e.get(["label","show"])?"show":"hide"]()}function pQ(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function fQ(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}var gQ=uQ;function yQ(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle(),e.fill=null):"shadow"===n&&(e=r.getAreaStyle(),e.stroke=null),e}function vQ(t,e,n,r,i){var a=n.get("value"),o=xQ(a,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Zd(s.get("padding")||0),u=s.getFont(),c=Wr(o,u),h=i.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=i.align;"right"===f&&(h[0]-=d),"center"===f&&(h[0]-=d/2);var g=i.verticalAlign;"bottom"===g&&(h[1]-=p),"middle"===g&&(h[1]-=p/2),mQ(h,d,p,r);var y=s.get("backgroundColor");y&&"auto"!==y||(y=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:gh(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function mQ(t,e,n,r){var i=r.getWidth(),a=r.getHeight();t[0]=Math.min(t[0]+e,i)-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 xQ(t,e,n,r,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:YI(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};b["each"](r,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&s.seriesData.push(i)})),b["isString"](o)?a=o.replace("{value}",a):b["isFunction"](o)&&(a=o(s))}return a}function bQ(t,e,n){var r=Tt();return Lt(r,r,n.rotation),kt(r,r,n.position),Dx([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function _Q(t,e,n,r,i,a){var o=lj.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),vQ(e,r,i,a,{position:bQ(r.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function wQ(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function SQ(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function MQ(t,e,n,r,i,a){return{cx:t,cy:e,r0:n,r:r,startAngle:i,endAngle:a,clockwise:!0}}function OQ(t,e,n){return YC(t,{fromStat:{sers:b["map"](e,(function(t){return n.getSeriesByIndex(t.seriesIndex)}))},min:1}).w}function IQ(t,e,n){return[Ei(Ni(e[0],e[1]),t-n/2),Ni(t+n/2,Ei(e[0],e[1]))]}var TQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var a=n.axis,o=a.grid,s=r.get("type"),l=a.getGlobalExtent(),u=CQ(o,a).getOtherAxis(a).getGlobalExtent(),c=a.toGlobalCoord(a.dataToCoord(e,!0));if(s&&"none"!==s){var h=yQ(r),d=AQ[s](a,c,l,u,r.get("seriesDataIndices"),r.ecModel);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=uj(o.getRect(),n);_Q(e,t,p,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=uj(e.axis.grid.getRect(),e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=bQ(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=CQ(a,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Ni(o[1],u[l]),u[l]=Ei(o[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];h[l]=u[l];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:d[l]}},e}(gQ);function CQ(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var AQ={line:function(t,e,n,r){var i=wQ([e,r[0]],[e,r[1]],DQ(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n,r,i,a){var o=OQ(t,i,a),s=r[1]-r[0],l=IQ(e,n,o),u=l[0],c=l[1];return{type:"Rect",shape:SQ([u,r[0]],[c-u,s],DQ(t))}}};function DQ(t){return"x"===t.dim?0:1}var kQ=TQ,LQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:Xp.color.border,width:1,type:"dashed"},shadowStyle:{color:Xp.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:Xp.color.neutral00,padding:[5,7,5,7],backgroundColor:Xp.color.accent60,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:Xp.color.accent40,throttle:40}},e}(Hp),PQ=LQ,jQ=Ka(),RQ=b["each"];function NQ(t,e,n){if(!x.node){var r=e.getZr();jQ(r).records||(jQ(r).records={}),EQ(r,e);var i=jQ(r).records[t]||(jQ(r).records[t]={});i.handler=n}}function EQ(t,e){function n(n,r){t.on(n,(function(n){var i=FQ(e);RQ(jQ(t).records,(function(t){t&&r(t,n,i.dispatchAction)})),zQ(i.pendings,e)}))}jQ(t).initialized||(jQ(t).initialized=!0,n("click",b["curry"](VQ,"click")),n("mousemove",b["curry"](VQ,"mousemove")),n("mousewheel",b["curry"](VQ,"mousewheel")),n("globalout",BQ))}function zQ(t,e){var n,r=t.showTip.length,i=t.hideTip.length;r?n=t.showTip[r-1]:i&&(n=t.hideTip[i-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}function BQ(t,e,n){t.handler("leave",null,n)}function VQ(t,e,n,r){e.handler(t,n,r)}function FQ(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function HQ(t,e){if(!x.node){var n=e.getZr(),r=(jQ(n).records||{})[t];r&&(jQ(n).records[t]=null)}}var GQ=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){var r=e.getComponent("tooltip"),i=t.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click|mousewheel";NQ("axisPointer",n,(function(t,e,n){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){HQ("axisPointer",e)},e.prototype.dispose=function(t,e){HQ("axisPointer",e)},e.type="axisPointer",e}(xv),WQ=GQ;function YQ(t,e){var n,r=[],i=t.seriesIndex;if(null==i||!(n=e.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=$a(a,t);if(null==o||o<0||b["isArray"](o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),h=c.dim,d=u.dim,p="x"===h||"radius"===h?1:0,f=a.mapDimension(d),g=[];g[p]=a.get(f,o),g[1-p]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(b["map"](l.dimensions,(function(t){return a.mapDimension(t)})),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),r=[y.x+y.width/2,y.y+y.height/2]}return{point:r,el:s}}var UQ=Ka();function XQ(t,e,n){var r=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||Object(b["bind"])(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){r0(i)&&(i=YQ({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=r0(i),u=a.axesInfo,c=s.axesInfo,h="leave"===r||r0(i),d={},p={},f={list:[],map:{}},g={showPointer:Object(b["curry"])($Q,p),showTooltip:Object(b["curry"])(KQ,f)};Object(b["each"])(s.coordSysMap,(function(t,e){var n=l||t.containPoint(i);Object(b["each"])(s.coordSysAxesInfo[e],(function(t,e){var r=t.axis,a=e0(u,t);if(!h&&n&&(!u||a)){var o=a&&a.value;null!=o||l||(o=r.pointToData(i)),null!=o&&ZQ(t,o,g,!1,d)}}))}));var y={};return Object(b["each"])(c,(function(t,e){var n=t.linkGroup;n&&!p[e]&&Object(b["each"])(n.axesInfo,(function(e,r){var i=p[r];if(e!==t&&i){var a=i.value;n.mapper&&(a=t.axis.scale.parse(n.mapper(a,n0(e),n0(t)))),y[t.key]=a}}))})),Object(b["each"])(y,(function(t,e){ZQ(c[e],t,g,!0,d)})),JQ(p,c,d),QQ(f,i,t,o),t0(c,o,n),d}}function ZQ(t,e,n,r,i){var a=t.axis;if(!a.scale.isBlank()&&a.containData(e))if(t.involveSeries){var o=qQ(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&null==i.seriesIndex&&Object(b["extend"])(i,s[0]),!r&&t.snap&&a.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,o,l)}else n.showPointer(t,e)}function qQ(t,e){var n=e.axis,r=n.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return Object(b["each"])(e.seriesModels,(function(e,l){var u,c,h=e.getData().mapDimensionsAll(r);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(c=e.indicesOfNearest(r,h[0],t,"category"===n.type?.5:null),!c.length)return;u=e.getData().get(h[0],c[0])}if(Oa(u)){var p=t-u,f=Math.abs(p);f<=o&&((f<o||p>=0&&s<0)&&(o=f,s=p,i=u,a.length=0),Object(b["each"])(c,(function(t){a.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:a,snapToValue:i}}function $Q(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function KQ(t,e,n,r){var i=n.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=rE(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function JQ(t,e,n){var r=n.axesInfo=[];Object(b["each"])(e,(function(e,n){var i=e.axisPointerModel.option,a=t[n];a?(!e.useHandle&&(i.status="show"),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}function QQ(t,e,n,r){if(!r0(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else r({type:"hideTip"})}function t0(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",a=UQ(r)[i]||{},o=UQ(r)[i]={};Object(b["each"])(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&Object(b["each"])(n.seriesDataIndices,(function(t){o[t.seriesIndex+"|"+t.dataIndex]=t}))}));var s=[],l=[];function u(t){return{seriesIndex:t.seriesIndex,dataIndex:t.dataIndex}}Object(b["each"])(a,(function(t,e){!o[e]&&l.push(u(t))})),Object(b["each"])(o,(function(t,e){!a[e]&&s.push(u(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 e0(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function n0(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function r0(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function i0(t){oE.registerAxisPointerClass("CartesianAxisPointer",kQ),t.registerComponentModel(PQ),t.registerComponentView(WQ),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Object(b["isArray"])(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=XN(t,e)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},XQ)}function a0(t){TM(vE),TM(i0)}var o0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var a=n.axis;"angle"===a.dim&&(this.animationThreshold=Math.PI/18);var o=a.polar,s=a.getExtent(),l=o.getOtherAxis(a).getExtent(),u=a.dataToCoord(e),c=r.get("type");if(c&&"none"!==c){var h=yQ(r),d=l0[c](a,o,u,s,l,r.get("seriesDataIndices"),r.ecModel);d.style=h,t.graphicKey=d.type,t.pointer=d}var p=r.get(["label","margin"]),f=s0(e,n,r,o,p);vQ(t,n,r,i,f)},e}(gQ);function s0(t,e,n,r,i){var a=e.axis,o=a.dataToCoord(t),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,h=r.getRadiusAxis().getExtent();if("radius"===a.dim){var d=Tt();Lt(d,d,s),kt(d,d,[r.cx,r.cy]),l=Dx([o,-i],d);var p=e.getModel("axisLabel").get("rotate")||0,f=lj.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var g=h[1];l=r.coordToPoint([g+i,o]);var y=r.cx,v=r.cy;u=Math.abs(l[0]-y)/g<.3?"center":l[0]>y?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var l0={line:function(t,e,n,r,i){return"angle"===t.dim?{type:"Line",shape:wQ(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r,i,a,o){var s,l=Math.PI/180,u=OQ(t,a,o);if("angle"===t.dim)s=MQ(e.cx,e.cy,i[0],i[1],(-n-u/2)*l,(u/2-n)*l);else{var c=IQ(n,r,u),h=c[0],d=c[1];s=MQ(e.cx,e.cy,h,d,0,2*Math.PI)}return{type:"Sector",shape:s}}},u0=o0,c0="polar",h0=c0,d0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.findAxisModel=function(t){var e,n=this.ecModel;return n.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type=c0,e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(Hp),p0=d0,f0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",eo).models[0]},e.type="polarAxis",e}(Hp);b["mixin"](f0,nT);var g0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="angleAxis",e}(f0),y0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="radiusAxis",e}(f0),v0=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return f(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(JC);v0.prototype.dataToRadius=JC.prototype.dataToCoord,v0.prototype.radiusToData=JC.prototype.coordToData;var m0=v0,x0=Ka(),b0=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return f(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var a=r[0],o=t.dataToCoord(a+1)-t.dataToCoord(a),s=Math.abs(o),l=Wr(null==a?"":a+"",e.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var h=Math.max(0,Math.floor(c)),d=x0(t.model),p=d.lastAutoInterval,f=d.lastTickCount;return null!=p&&null!=f&&Math.abs(p-h)<=1&&Math.abs(f-i)<=1&&p>h?h=p:(d.lastTickCount=i,d.lastAutoInterval=h),h},e}(JC);b0.prototype.dataToAngle=JC.prototype.dataToCoord,b0.prototype.angleToData=JC.prototype.coordToData;var _0=b0,w0=["radius","angle"],S0=function(){function t(t){this.dimensions=w0,this.type=c0,this.cx=0,this.cy=0,this._radiusAxis=new m0,this._angleAxis=new _0,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===t&&e.push(n),r.scale.type===t&&e.push(r),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e,n){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)],n)},t.prototype.pointToData=function(t,e,n){n=n||[];var r=this.pointToCoord(t);return n[0]=this._radiusAxis.radiusToData(r[0],e),n[1]=this._angleAxis.angleToData(r[1],e),n},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]);r.inverse?a=o-360:o=a+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;var l=Math.atan2(-n,e)/Math.PI*180,u=l<a?1:-1;while(l<a||l>o)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t,e){e=e||[];var n=t[0],r=t[1]/180*Math.PI;return e[0]=Math.cos(r)*n+this.cx,e[1]=-Math.sin(r)*n+this.cy,e},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),n=e.getExtent().slice();n[0]>n[1]&&n.reverse();var r=t.getExtent(),i=Math.PI/180,a=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-r[0]*i,endAngle:-r[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,r=e-this.cy,i=n*n+r*r,o=this.r,s=this.r0;return o!==s&&i-a<=o*o&&i+a>=s*s},x:this.cx-n[1],y:this.cy-n[1],width:2*n[1],height:2*n[1]}},t.prototype.convertToPixel=function(t,e,n){var r=M0(e);return r===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=M0(e);return r===this?this.pointToData(n):null},t}();function M0(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var O0=S0;function I0(t,e,n){var r=e.get("center"),i=Lp(e,n).refContainer;t.cx=Zi(r[0],i.width)+i.x,t.cy=Zi(r[1],i.height)+i.y;var a=t.getRadiusAxis(),o=Math.min(i.width,i.height)/2,s=e.get("radius");null==s?s=[0,"100%"]:b["isArray"](s)||(s=[0,s]);var l=[Zi(s[0],o),Zi(s[1],o)];a.inverse?a.setExtent(l[1],l[0]):a.setExtent(l[0],l[1])}function T0(t,e){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(zT(r,CT),zT(i,CT),$T(r),$T(i),"category"===r.type&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function C0(t){return"angleAxis"===t.mainType}function A0(t,e){var n;if(t.type=NI(e),t.scale=EI(e,t.type,!1),t.onBand=eT(t.scale,e),t.inverse=e.get("inverse"),C0(e)){t.inverse=t.inverse!==e.get("clockwise");var r=e.get("startAngle"),i=null!==(n=e.get("endAngle"))&&void 0!==n?n:r+(t.inverse?-360:360);t.setExtent(r,i)}e.axis=t,t.model=e}var D0={dimensions:w0,create:function(t,e){var n=[];return t.eachComponent(h0,(function(t,r){var i=new O0(r+"");i.update=T0;var a=i.getRadiusAxis(),o=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");A0(a,s),A0(o,l),I0(i,t,e),n.push(i),t.coordinateSystem=i,i.model=t})),t.eachSeries((function(t){if(t.get("coordinateSystem")===c0){var e=t.getReferringComponents(h0,eo).models[0];0;var n=t.coordinateSystem=e.coordinateSystem;n&&(ST(n.getRadiusAxis(),t,c0),ST(n.getAngleAxis(),t,c0))}})),n}},k0=D0,L0=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function P0(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),i=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function j0(t){var e=t.getRadiusAxis();return e.inverse?0:1}function R0(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var N0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return f(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),a=n.getTicksCoords({breakTicks:"none"}),o=n.getMinorTicksCoords(),s=[];b["each"](n.getViewLabels(),(function(t){if(!t.tick.offInterval){t=b["clone"](t);var e=n.scale;t.coord=n.dataToCoord(tT(e,t.tick)),s.push(t)}})),R0(s),R0(a),b["each"](L0,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||E0[e](this.group,t,r,a,o,i,s)}),this)}},e.type="angleAxis",e}(oE),E0={axisLine:function(t,e,n,r,i,a){var s,l=e.getModel(["axisLine","lineStyle"]),u=n.getAngleAxis(),c=Math.PI/180,h=u.getExtent(),d=j0(n),p=d?0:1,f=360===Math.abs(h[1]-h[0])?"Circle":"Arc";s=0===a[p]?new o[f]({shape:{cx:n.cx,cy:n.cy,r:a[d],startAngle:-h[0]*c,endAngle:-h[1]*c,clockwise:u.inverse},style:l.getLineStyle(),z2:1,silent:!0}):new ym({shape:{cx:n.cx,cy:n.cy,r:a[d],r0:a[p]},style:l.getLineStyle(),z2:1,silent:!0}),s.style.fill=null,t.add(s)},axisTick:function(t,e,n,r,i,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[j0(n)],u=b["map"](r,(function(t){return new Cm({shape:P0(n,[l,l+s],t.coord)})}));t.add(Mx(u,{style:b["defaults"](o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,i,a){if(i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[j0(n)],c=[],h=0;h<i.length;h++)for(var d=0;d<i[h].length;d++)c.push(new Cm({shape:P0(n,[u,u+l],i[h][d].coord)}));t.add(Mx(c,{style:b["defaults"](s.getModel("lineStyle").getLineStyle(),b["defaults"](o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,i,a,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");b["each"](o,(function(r,i){var o=l,h=r.tick.value,d=a[j0(n)],p=n.coordToPoint([d+u,r.coord]),f=n.cx,g=n.cy,y=Math.abs(p[0]-f)/d<.3?"center":p[0]>f?"left":"right",v=Math.abs(p[1]-g)/d<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[h]){var m=s[h];b["isObject"](m)&&m.textStyle&&(o=new Vh(m.textStyle,l,l.ecModel))}var x=new _u({silent:lj.isLabelSilent(e),style:gh(o,{x:p[0],y:p[1],fill:o.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:y,verticalAlign:v})});if(t.add(x),Yx({el:x,componentModel:e,itemName:r.formattedLabel,formatterParamsExtra:{isTruncated:function(){return x.isTruncated},value:r.rawLabel,tickIndex:i}}),c){var _=lj.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=r.rawLabel,wu(x).eventData=_}}),this)},splitLine:function(t,e,n,r,i,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=0;h<r.length;h++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Cm({shape:P0(n,a,r[h].coord)}))}for(h=0;h<c.length;h++)t.add(Mx(c[h],{style:b["defaults"]({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,i,a){if(i.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new Cm({shape:P0(n,a,i[u][c].coord)}));t.add(Mx(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,i,a){if(r.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=Math.PI/180,d=-r[0].coord*h,p=Math.min(a[0],a[1]),f=Math.max(a[0],a[1]),g=e.get("clockwise"),y=1,v=r.length;y<=v;y++){var m=y===v?r[0].coord:r[y].coord,x=u++%l.length;c[x]=c[x]||[],c[x].push(new pm({shape:{cx:n.cx,cy:n.cy,r0:p,r:f,startAngle:d,endAngle:-m*h,clockwise:g},silent:!0})),d=-m*h}for(y=0;y<c.length;y++)t.add(Mx(c[y],{style:b["defaults"]({fill:l[y%l.length]},s.getAreaStyle()),silent:!0}))}}},z0=N0,B0=["splitLine","splitArea","minorSplitLine"],V0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return f(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this._axisGroup,i=this._axisGroup=new vi;this.group.add(i);var a=t.axis,o=a.polar,s=o.getAngleAxis(),l=a.getTicksCoords(),u=a.getMinorTicksCoords(),c=s.getExtent()[0],h=a.getExtent(),d=H0(o,t,c),p=new lj(t,n,d);p.build(),i.add(p.group),jx(r,i,t),b["each"](B0,(function(e){t.get([e,"show"])&&!a.scale.isBlank()&&F0[e](this.group,t,o,c,h,l,u)}),this)}},e.type="radiusAxis",e}(oE),F0={splitLine:function(t,e,n,r,i,a){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),c=0,h=n.getAngleAxis(),d=Math.PI/180,p=h.getExtent(),f=360===Math.abs(p[1]-p[0])?"Circle":"Arc";u=u instanceof Array?u:[u];for(var g=[],y=0;y<a.length;y++){var v=c++%u.length;g[v]=g[v]||[],g[v].push(new o[f]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[y].coord,0),startAngle:-p[0]*d,endAngle:-p[1]*d,clockwise:h.inverse}}))}for(y=0;y<g.length;y++)t.add(Mx(g[y],{style:b["defaults"]({stroke:u[y%u.length],fill:null},l.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,i,a,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var h=0;h<o[c].length;h++)u.push(new Uv({shape:{cx:n.cx,cy:n.cy,r:o[c][h].coord}}));t.add(Mx(u,{style:b["defaults"]({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,i,a){if(a.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],h=a[0].coord,d=1;d<a.length;d++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new pm({shape:{cx:n.cx,cy:n.cy,r0:h,r:a[d].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=a[d].coord}for(d=0;d<c.length;d++)t.add(Mx(c[d],{style:b["defaults"]({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function H0(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var G0=V0,W0=wo();function Y0(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}var U0=Ao(wj,X0);function X0(t){var e=bj(wj,c0);mT(t,e,(function(t){var n=q0(t,wj),r={};gT(t,e,(function(e){Z0(t,e,n,r)}))}))}function Z0(t,e,n,r){var i=e.getData(),a=Y0(e),o=n[a],s=o.offset,l=o.width,u=e.coordinateSystem;var c=u.getOtherAxis(t),h=u.cx,d=u.cy,p=e.get("barMinHeight")||0,f=e.get("barMinAngle")||0;r[a]=r[a]||[];for(var g=i.mapDimension(c.dim),y=i.mapDimension(t.dim),v=mO(i,g),m="radius"!==t.dim||!e.get("roundCap",!0),x=c.dataToCoord(Oj(c)),b=0,_=i.count();b<_;b++){var w=i.get(g,b),S=i.get(y,b),M=w>=0?"p":"n",O=x;v&&(r[a][S]||(r[a][S]={p:x,n:x}),O=r[a][S][M]);var I=void 0,T=void 0,C=void 0,A=void 0;if("radius"===c.dim){var D=c.dataToCoord(w)-x,k=t.dataToCoord(S);zi(D)<p&&(D=(D<0?-1:1)*p),I=O,T=O+D,C=k-s,A=C-l,v&&(r[a][S][M]=T)}else{var L=c.dataToCoord(w,m)-x,P=t.dataToCoord(S);zi(L)<f&&(L=(L<0?-1:1)*f),I=P+s,T=I+l,C=O,A=O+L,v&&(r[a][S][M]=A)}i.setItemLayout(b,{cx:h,cy:d,r0:I,r:T,startAngle:-C*Yi/180,endAngle:-A*Yi/180,clockwise:C>=A})}}function q0(t,e){var n=bj(e,c0),r=YC(t,{fromStat:{key:n},min:1}).w,i=r,a=0,o="20%",s="30%",l={};gT(t,n,(function(t){var e=Y0(t);l[e]||a++,l[e]=l[e]||{width:0,maxWidth:0};var n=Zi(t.get("barWidth"),r),u=Zi(t.get("barMaxWidth"),r),c=t.get("barGap"),h=t.get("barCategoryGap");n&&!l[e].width&&(n=Ni(i,n),l[e].width=n,i-=n),u&&(l[e].maxWidth=u),null!=c&&(s=c),null!=h&&(o=h)}));var u={},c=Zi(o,r),h=Zi(s,1),d=(i-c)/(a+(a-1)*h);d=Ei(d,0),Object(b["each"])(l,(function(t,e){var n=t.maxWidth;n&&n<d&&(n=Ni(n,i),t.width&&(n=Ni(n,t.width)),i-=n,t.width=n,a--)})),d=(i-c)/(a+(a-1)*h),d=Ei(d,0);var p,f=0;Object(b["each"])(l,(function(t,e){t.width||(t.width=d),p=t,f+=t.width*(1+h)})),p&&(f-=p.width*h);var g=-f/2;return Object(b["each"])(l,(function(t,e){u[e]=u[e]||{offset:g,width:t.width},g+=t.width*(1+h)})),u}function $0(t,e){W0(t,(function(){var n=bj(e,c0);Mj(t,n,e,c0),HT(n,mj(n))}))}var K0={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},J0={splitNumber:5},Q0=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="polar",e}(xv);function t1(t){TM(i0),oE.registerAxisPointerClass("PolarAxisPointer",u0),t.registerCoordinateSystem("polar",k0),t.registerComponentModel(p0),t.registerComponentView(Q0),mN(t,"angle",g0,K0),mN(t,"radius",y0,J0),t.registerComponentView(z0),t.registerComponentView(G0),t.registerLayout(U0),$0(t,wj)}function e1(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,i={},a=r.position,o=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=["vertical"===o?u.vertical[a]:l[0],"horizontal"===o?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[o];var h={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=h[a],t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),b["retrieve"](e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var d=t.get(["axisLabel","rotate"]);return i.labelRotate="top"===a?-d:d,i.z2=1,i}var n1=["splitArea","splitLine","breakArea"],r1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return f(e,t),e.prototype.render=function(e,n,r,i){var a=this.group;a.removeAll();var o=this._axisGroup;this._axisGroup=new vi;var s=e1(e),l=new lj(e,r,s);l.build(),a.add(this._axisGroup),a.add(l.group),b["each"](n1,(function(t){e.get([t,"show"])&&i1[t](this,this.group,this._axisGroup,e,r)}),this),jx(o,this._axisGroup,e),t.prototype.render.call(this,e,n,r,i)},e.prototype.remove=function(){uE(this)},e.type="singleAxis",e}(oE),i1={splitLine:function(t,e,n,r,i){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),c=r.coordinateSystem.getRect(),h=a.isHorizontal(),d=[],p=0,f=a.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],y=[],v=0;v<f.length;++v){var m=a.toGlobalCoord(f[v].coord);h?(g[0]=m,g[1]=c.y,y[0]=m,y[1]=c.y+c.height):(g[0]=c.x,g[1]=m,y[0]=c.x+c.width,y[1]=m);var x=new Cm({shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},silent:!0});Ix(x.shape,u);var _=p++%l.length;d[_]=d[_]||[],d[_].push(x)}var w=s.getLineStyle(["color"]);for(v=0;v<d.length;++v)e.add(Mx(d[v],{style:b["defaults"]({stroke:l[v%l.length]},w),silent:!0}))}},splitArea:function(t,e,n,r,i){lE(t,n,r,r)},breakArea:function(t,e,n,r,i){var a=xP(),o=r.axis.scale;a&&"ordinal"!==o.type&&a.rectCoordBuildBreakAxis(e,t,r,r.coordinateSystem.getRect(),i)}},a1=r1,o1=function(t){function e(e,n,r,i,a){var o=t.call(this,e,n,r)||this;return o.type=i||"value",o.position=a||"bottom",o}return f(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},e}(JC),s1=o1,l1=["single"],u1=function(){function t(t,e,n){this.type=mE,this.dimension="single",this.dimensions=l1,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var r=this.dimension,i=NI(t),a=new s1(r,EI(t,i,!0),[0,0],i,t.get("position"));a.onBand=eT(a.scale,t),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},t.prototype.update=function(t,e){var n=this._axis;zT(n,CT),$T(n)},t.prototype.resize=function(t,e){var n=Lp(t,e).refContainer;this._rect=Ap(t.getBoxLayoutParams(),n),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),r=n?[0,t.width]:[0,t.height],i=e.inverse?1:0;e.setExtent(r[i],r[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),r=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord=i?function(t){return t-e}:function(t){return r-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis(),r=n.orient;return"horizontal"===r?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t,e,n){n=n||[];var r=this.getAxis();return n[0]=r.coordToData(r.toLocalCoord(t["horizontal"===r.orient?0:1])),n},t.prototype.dataToPoint=function(t,e,n){var r=this.getAxis(),i=this.getRect();n=n||[];var a="horizontal"===r.orient?0:1;return t instanceof Array&&(t=t[0]),n[a]=r.toGlobalCoord(r.dataToCoord(+t)),n[1-a]=0===a?i.y+i.height/2:i.x+i.width/2,n},t.prototype.convertToPixel=function(t,e,n){var r=c1(e);return r===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=c1(e);return r===this?this.pointToData(n):null},t}();function c1(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var h1=u1;function d1(t,e){var n=[];return t.eachComponent(bE,(function(r,i){var a=new h1(r,t,e);a.name="single_"+i,a.resize(r,e),r.coordinateSystem=a,n.push(a)})),t.eachSeries((function(t){if(t.get("coordinateSystem")===xE){var e=t.getReferringComponents(bE,eo).models[0],n=t.coordinateSystem=e&&e.coordinateSystem;n&&ST(n.getAxis(),t,mE)}})),n}var p1={create:d1,dimensions:l1},f1=p1,g1=["x","y"],y1=["width","height"],v1=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.makeElOption=function(t,e,n,r,i){var a=n.axis,o=a.coordinateSystem,s=x1(a),l=b1(o,s),u=b1(o,1-s),c=o.dataToPoint(e)[0],h=r.get("type");if(h&&"none"!==h){var d=yQ(r),p=m1[h](a,c,l,u,r.get("seriesDataIndices"),r.ecModel);p.style=d,t.graphicKey=p.type,t.pointer=p}var f=e1(n);_Q(e,t,f,n,r,i)},e.prototype.getHandleTransform=function(t,e,n){var r=e1(e,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=bQ(e.axis,t,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,r){var i=n.axis,a=i.coordinateSystem,o=x1(i),s=b1(a,o),l=[t.x,t.y];l[o]+=e[o],l[o]=Math.min(s[1],l[o]),l[o]=Math.max(s[0],l[o]);var u=b1(a,1-o),c=(u[1]+u[0])/2,h=[c,c];return h[o]=l[o],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(gQ),m1={line:function(t,e,n,r){var i=wQ([e,r[0]],[e,r[1]],x1(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,e,n,r,i,a){var o=OQ(t,i,a),s=r[1]-r[0],l=IQ(e,n,o),u=l[0],c=l[1];return{type:"Rect",shape:SQ([u,r[0]],[c-u,s],x1(t))}}};function x1(t){return t.isHorizontal()?0:1}function b1(t,e){var n=t.getRect();return[n[g1[e]],n[g1[e]]+n[y1[e]]]}var _1=v1,w1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="single",e}(xv);function S1(t){TM(i0),oE.registerAxisPointerClass("SingleAxisPointer",_1),t.registerComponentView(w1),t.registerComponentView(a1),t.registerComponentModel(wE),mN(t,"single",wE,wE.defaultOption),t.registerCoordinateSystem("single",f1)}var M1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(e,n,r){var i=Ep(e);t.prototype.init.apply(this,arguments),O1(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),O1(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:Xp.color.axisLine,width:1,type:"solid"}},itemStyle:{color:Xp.color.neutral00,borderWidth:1,borderColor:Xp.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:Xp.size.s,color:Xp.color.secondary},monthLabel:{show:!0,position:"start",margin:Xp.size.s,align:"center",formatter:null,color:Xp.color.secondary},yearLabel:{show:!0,position:null,margin:Xp.size.xl,formatter:null,color:Xp.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(Hp);function O1(t,e){var n,r=t.cellSize;n=b["isArray"](r)?r:t.cellSize=[r,r],1===n.length&&(n[1]=n[0]);var i=b["map"]([0,1],(function(t){return jp(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Np(t,e,{type:"box",ignoreSize:i})}var I1=M1,T1=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){var r=this.group;r.removeAll();var i=t.coordinateSystem,a=i.getRangeInfo(),o=i.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,a,r),this._renderLines(t,a,o,r),this._renderYearText(t,a,o,r),this._renderMonthText(t,s,o,r),this._renderWeekText(t,s,a,o,r)},e.prototype._renderDayRect=function(t,e,n){for(var r=t.coordinateSystem,i=t.getModel("itemStyle").getItemStyle(),a=r.getCellWidth(),o=r.getCellHeight(),s=e.start.time;s<=e.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToCalendarLayout([s],!1).tl,u=new nu({shape:{x:l[0],y:l[1],width:a,height:o},cursor:"default",style:i});n.add(u)}},e.prototype._renderLines=function(t,e,n,r){var i=this,a=t.coordinateSystem,o=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=o.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=a.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=a.getDateInfo(h)}function d(e){i._firstDayOfMonth.push(a.getDateInfo(e)),i._firstDayPoints.push(a.dataToCalendarLayout([e],!1).tl);var l=i._getLinePointsOfOneWeek(t,e,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,o,r)}d(a.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),o,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),o,r)},e.prototype._getEdgesPoints=function(t,e,n){var r=[t[0].slice(),t[t.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-e/2,r[1][i]=r[1][i]+e/2,r},e.prototype._drawSplitline=function(t,e,n){var r=new Mm({z2:20,shape:{points:t},style:e});n.add(r)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var r=t.coordinateSystem,i=r.getDateInfo(e),a=[],o=0;o<7;o++){var s=r.getNextNDay(i.time,o),l=r.dataToCalendarLayout([s.time],!1);a[2*s.day]=l.tl,a[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return a},e.prototype._formatterLabel=function(t,e){return Object(b["isString"])(t)&&t?Qd(t,e):Object(b["isFunction"])(t)?t(e):e.nameMap},e.prototype._yearTextPositionControl=function(t,e,n,r,i){var a=e[0],o=e[1],s=["center","bottom"];"bottom"===r?(o+=i,s=["center","top"]):"left"===r?a-=i:"right"===r?(a+=i,s=["center","top"]):o-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:a,y:o,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,r){var i=t.getModel("yearLabel");if(i.get("show")){var a=i.get("margin"),o=i.get("position");o||(o="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=i.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),y=new _u({z2:30,style:gh(i,{text:g}),silent:i.get("silent")});y.attr(this._yearTextPositionControl(y,h[o],n,o,a)),r.add(y)}},e.prototype._monthTextPositionControl=function(t,e,n,r,i){var a="left",o="top",s=t[0],l=t[1];return"horizontal"===n?(l+=i,e&&(a="center"),"start"===r&&(o="bottom")):(s+=i,e&&(o="middle"),"start"===r&&(a="right")),{x:s,y:l,align:a,verticalAlign:o}},e.prototype._renderMonthText=function(t,e,n,r){var i=t.getModel("monthLabel");if(i.get("show")){var a=i.get("nameMap"),o=i.get("margin"),s=i.get("position"),l=i.get("align"),u=[this._tlpoints,this._blpoints];a&&!Object(b["isString"])(a)||(a&&(e=nd(a)||e),a=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,h="horizontal"===n?0:1;o="start"===s?-o:o;for(var d="center"===l,p=i.get("silent"),f=0;f<u[c].length-1;f++){var g=u[c][f].slice(),y=this._firstDayOfMonth[f];if(d){var v=this._firstDayPoints[f];g[h]=(v[h]+u[0][f+1][h])/2}var m=i.get("formatter"),x=a[+y.m-1],_={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:x},w=this._formatterLabel(m,_),S=new _u({z2:30,style:Object(b["extend"])(gh(i,{text:w}),this._monthTextPositionControl(g,d,n,s,o)),silent:p});r.add(S)}}},e.prototype._weekTextPositionControl=function(t,e,n,r,i){var a="center",o="middle",s=t[0],l=t[1],u="start"===n;return"horizontal"===e?(s=s+r+(u?1:-1)*i[0]/2,a=u?"right":"left"):(l=l+r+(u?1:-1)*i[1]/2,o=u?"bottom":"top"),{x:s,y:l,align:a,verticalAlign:o}},e.prototype._renderWeekText=function(t,e,n,r,i){var a=t.getModel("dayLabel");if(a.get("show")){var o=t.coordinateSystem,s=a.get("position"),l=a.get("nameMap"),u=a.get("margin"),c=o.getFirstDayOfWeek();if(!l||Object(b["isString"])(l)){l&&(e=nd(l)||e);var h=e.get(["time","dayOfWeekShort"]);l=h||Object(b["map"])(e.get(["time","dayOfWeekAbbr"]),(function(t){return t[0]}))}var d=o.getNextNDay(n.end.time,7-n.lweek).time,p=[o.getCellWidth(),o.getCellHeight()];u=Zi(u,Math.min(p[1],p[0])),"start"===s&&(d=o.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var f=a.get("silent"),g=0;g<7;g++){var y=o.getNextNDay(d,g),v=o.dataToCalendarLayout([y.time],!1).center,m=g;m=Math.abs((g+c)%7);var x=new _u({z2:30,style:Object(b["extend"])(gh(a,{text:l[m]}),this._weekTextPositionControl(v,r,s,u,p)),silent:f});i.add(x)}}},e.type="calendar",e}(xv),C1=T1,A1=864e5,D1=function(){function t(e,n,r){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e,this._update(n,r)}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(t){t=pa(t);var e=t.getFullYear(),n=t.getMonth()+1,r=n<10?"0"+n:""+n,i=t.getDate(),a=i<10?"0"+i:""+i,o=t.getDay();return o=Math.abs((o+7-this.getFirstDayOfWeek())%7),{y:e+"",m:r,d:a,day:o,time:t.getTime(),formatedDate:e+"-"+r+"-"+a,date:t}},t.prototype.getNextNDay=function(t,e){return e=e||0,0===e||(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e)),this.getDateInfo(t)},t.prototype._update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,r=["width","height"],i=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),o="horizontal"===this._orient?[n,7]:[7,n];b["each"]([0,1],(function(t){u(i,t)&&(a[r[t]]=i[t]*o[t])}));var s={width:e.getWidth(),height:e.getHeight()},l=this._rect=Ap(a,s);function u(t,e){return null!=t[e]&&"auto"!==t[e]}b["each"]([0,1],(function(t){u(i,t)||(i[t]=l[r[t]]/o[t])})),this._sw=i[0],this._sh=i[1]},t.prototype.dataToPoint=function(t,e,n){n=n||[],b["isArray"](t)&&(t=t[0]),null==e&&(e=!0);var r=this.getDateInfo(t),i=this._rangeInfo,a=r.formatedDate;if(e&&!(r.time>=i.start.time&&r.time<i.end.time+A1))return n[0]=n[1]=NaN,n;var o=r.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return"vertical"===this._orient?(n[0]=this._rect.x+o*this._sw+this._sw/2,n[1]=this._rect.y+s*this._sh+this._sh/2):(n[0]=this._rect.x+s*this._sw+this._sw/2,n[1]=this._rect.y+o*this._sh+this._sh/2),n},t.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},t.prototype.dataToLayout=function(t,e,n){n=n||{};var r=n.rect=n.rect||{},i=n.contentRect=n.contentRect||{},a=this.dataToPoint(t,e);return r.x=a[0]-this._sw/2,r.y=a[1]-this._sh/2,r.width=this._sw,r.height=this._sh,ue.copy(i,r),Hx(i,this._lineWidth/2,!0,!0),n},t.prototype.dataToCalendarLayout=function(t,e){var n=this.dataToPoint(t,e);return{center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},t.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,r=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,r):this._getDateByWeeksAndDay(e,n-1,r)},t.prototype.convertToPixel=function(t,e,n){var r=k1(e);return r===this?r.dataToPoint(n):null},t.prototype.convertToLayout=function(t,e,n){var r=k1(e);return r===this?r.dataToLayout(n):null},t.prototype.convertFromPixel=function(t,e,n){var r=k1(e);return r===this?r.pointToData(n):null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var t,e=this._model.get("range");if(b["isArray"](e)&&1===e.length&&(e=e[0]),b["isArray"](e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var r=this.getDateInfo(n),i=r.date;i.setMonth(i.getMonth()+1);var a=this.getNextNDay(i,-1);t=[r.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}if(!t)return e;var o=this._getRangeInfo(t);return o.start.time>o.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var r=Math.floor(n[1].time/A1)-Math.floor(n[0].time/A1)+1,i=new Date(n[0].time),a=i.getDate(),o=n[1].date.getDate();i.setDate(a+r-1);var s=i.getDate();if(s!==o){var l=i.getTime()-n[1].time>0?1:-1;while((s=i.getDate())!==o&&(i.getTime()-n[1].time)*l>0)r-=l,i.setDate(s-l)}var u=Math.floor((r+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var r=this._getRangeInfo(n);if(t>r.weeks||0===t&&e<r.fweek||t===r.weeks&&e>r.lweek)return null;var i=7*(t-1)-r.fweek+e,a=new Date(r.start.time);return a.setDate(+r.start.d+i),this.getDateInfo(a)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",(function(i){var a=new t(i,e,n);r.push(a),i.coordinateSystem=a})),e.eachComponent((function(t,e){mp({targetModel:e,coordSysType:"calendar",coordSysProvider:xp})})),r},t.dimensions=["time","value"],t}();function k1(t){var e=t.calendarModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}var L1=D1;function P1(t){t.registerComponentModel(I1),t.registerComponentView(C1),t.registerCoordinateSystem("calendar",L1)}var j1={level:1,leaf:2,nonLeaf:3},R1={none:0,all:1,body:2,corner:3};function N1(t,e,n){var r=e[cx[n]].getCell(t);return!r&&Object(b["isNumber"])(t)&&t<0&&(r=e[cx[1-n]].getUnitLayoutInfo(n,Math.round(t))),r}function E1(t){var e=t||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function z1(t,e,n,r,i){B1(t[0],e,i,n,r,0),B1(t[1],e,i,n,r,1)}function B1(t,e,n,r,i,a){t[0]=1/0,t[1]=-1/0;var o=r[a],s=Object(b["isArray"])(o)?o:[o],l=s.length,u=!!n;if(l>=1?(V1(t,e,s,u,i,a,0),l>1&&V1(t,e,s,u,i,a,l-1)):t[0]=t[1]=NaN,u){var c=-i[cx[1-a]].getLocatorCount(a),h=i[cx[a]].getLocatorCount(a)-1;n===R1.body?c=Ei(0,c):n===R1.corner&&(h=Ni(-1,h)),h<c&&(c=h=NaN),Object(b["eqNaN"])(t[0])&&(t[0]=c),Object(b["eqNaN"])(t[1])&&(t[1]=h),t[0]=Ei(Ni(t[0],h),c),t[1]=Ei(Ni(t[1],h),c)}}function V1(t,e,n,r,i,a,o){var s=N1(n[o],i,a);if(s){var l=s.id[cx[a]],u=l,c=$1(s);c&&(u+=c.span[cx[a]]-1),t[0]=Ni(t[0],l,u),t[1]=Ei(t[1],l,u)}else t[0]=t[1]=NaN}function F1(t,e){return Object(b["eqNaN"])(t[e][0])||Object(b["eqNaN"])(t[e][1])}function H1(t,e,n,r){e=e||G1;for(var i=0;i<r;i++)e[i]=!1;while(1){var a=!1;for(i=0;i<r;i++){var o=n[i];!e[i]&&o.cellMergeOwner&&W1(t,o.locatorRange)&&(e[i]=!0,a=!0)}if(!a)break}}var G1=[];function W1(t,e){return!(!Y1(t[0],e[0])||!Y1(t[1],e[1]))&&(t[0][0]=Ni(t[0][0],e[0][0]),t[0][1]=Ei(t[0][1],e[0][1]),t[1][0]=Ni(t[1][0],e[1][0]),t[1][1]=Ei(t[1][1],e[1][1]),!0)}function Y1(t,e){return t[1]>=e[0]&&t[0]<=e[1]}function U1(t,e){t.id.set(e[0][0],e[1][0]),t.span.set(e[0][1]-t.id.x+1,e[1][1]-t.id.y+1)}function X1(t,e){t[0][0]=e[0][0],t[0][1]=e[0][1],t[1][0]=e[1][0],t[1][1]=e[1][1]}function Z1(t,e,n,r){var i=N1(e[r][0],n,r),a=N1(e[r][1],n,r);t[cx[r]]=t[hx[r]]=NaN,i&&a&&(t[cx[r]]=i.xy,t[hx[r]]=a.xy+a.wh-i.xy)}function q1(t,e,n,r){return t[cx[e]]=n,t[cx[1-e]]=r,t}function $1(t){return!t||t.type!==j1.leaf&&t.type!==j1.nonLeaf?null:t}function K1(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var J1=function(){function t(t,e){this._cells=[],this._levels=[],this.dim=t,this.dimIdx="x"===t?0:1,this._model=e,this._uniqueValueGen=Q1(t);var n=e.get("data",!0),r=e.get("length",!0);if(null==n||Object(b["isArray"])(n)||(n=[]),n)this._initByDimModelData(n);else if(null!=r){n=Array(r);for(var i=0;i<r;i++)n[i]=null;this._initByDimModelData(n)}else this._initBySeriesData()}return t.prototype._initByDimModelData=function(t){var e=this,n=e._cells,r=e._levels,i=[],a=0;return e._leavesCount=o(t,0,0),void s();function o(t,n,s){var l=0;return t?(Object(b["each"])(t,(function(t,u){var c;Object(b["isString"])(t)?c={value:t}:Object(b["isObject"])(t)?(c=t,null==t.value||Object(b["isString"])(t.value)||(!0,c={value:null})):c={value:null};var h={type:j1.nonLeaf,ordinal:NaN,level:s,firstLeafLocator:n,id:new Et,span:q1(new Et,e.dimIdx,1,1),option:c,xy:NaN,wh:NaN,dim:e,rect:K1()};a++,(i[n]||(i[n]=[])).push(h),r[s]||(r[s]={type:j1.level,xy:NaN,wh:NaN,option:null,id:new Et,dim:e});var d=o(c.children,n,s+1),p=Math.max(1,d);h.span[cx[e.dimIdx]]=p,l+=p,n+=p})),l):l}function s(){var t=[];while(n.length<a)for(var r=0;r<i.length;r++){var o=i[r].pop();if(o){o.ordinal=t.length;var s=o.option.value;t.push(s),n.push(o),e._uniqueValueGen.calcDupBase(s)}}e._uniqueValueGen.ensureValueUnique(t,n);var l=e._ordinalMeta=new kO({categories:t,needCollect:!1,deduplication:!1});e._scale=new lI({ordinalMeta:l});for(var u=0;u<e._leavesCount;u++){var c=e._cells[u];c.type=j1.leaf,c.span[cx[1-e.dimIdx]]=e._levels.length-c.level}e._initCellsId(),e._initLevelIdOptions()}},t.prototype._initBySeriesData=function(){var t=this;t._leavesCount=0,t._levels=[{type:j1.level,xy:NaN,wh:NaN,option:null,id:new Et,dim:t}],t._initLevelIdOptions();var e=t._ordinalMeta=new kO({needCollect:!0,deduplication:!0,onCollect:function(e,n){var r=t._cells[n]={type:j1.leaf,ordinal:n,level:0,firstLeafLocator:n,id:new Et,span:q1(new Et,t.dimIdx,1,1),option:{value:e+""},xy:NaN,wh:NaN,dim:t,rect:K1()};t._leavesCount++,t._setCellId(r)}});t._scale=new lI({ordinalMeta:e})},t.prototype._setCellId=function(t){var e=this._levels.length,n=this.dimIdx;q1(t.id,n,t.firstLeafLocator,t.level-e)},t.prototype._initCellsId=function(){var t=this._levels.length,e=this.dimIdx;Object(b["each"])(this._cells,(function(n){q1(n.id,e,n.firstLeafLocator,n.level-t)}))},t.prototype._initLevelIdOptions=function(){var t=this._levels.length,e=this.dimIdx,n=this._model.get("levels",!0);n=Object(b["isArray"])(n)?n:[],Object(b["each"])(this._levels,(function(r,i){q1(r.id,e,0,i-t),r.option=n[i]}))},t.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},t.prototype.resetLayoutIterator=function(t,e,n,r){if(t=t||new co,e===this.dimIdx){var i=this._leavesCount,a=null!=n?Math.max(0,n):0;r=null!=r?Math.min(r,i):i,t.reset(this._cells,a,a+r)}else{i=this._levels.length,a=null!=n?Math.max(0,n+i):0;r=null!=r?Math.min(r,i):i,t.reset(this._levels,a,a+r)}return t},t.prototype.resetCellIterator=function(t){return(t||new co).reset(this._cells,0)},t.prototype.resetLevelIterator=function(t){return(t||new co).reset(this._levels,0)},t.prototype.getLayout=function(t,e,n){var r=this.getUnitLayoutInfo(e,n);t[cx[e]]=r?r.xy:NaN,t[hx[e]]=r?r.wh:NaN},t.prototype.getUnitLayoutInfo=function(t,e){return t===this.dimIdx?e<this._leavesCount?this._cells[e]:void 0:this._levels[e+this._levels.length]},t.prototype.getCell=function(t){var e=this._scale.parse(t);return Object(b["eqNaN"])(e)?void 0:this._cells[e]},t.prototype.getLocatorCount=function(t){return t===this.dimIdx?this._leavesCount:this._levels.length},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t}();function Q1(t){var e=t.toUpperCase(),n=new RegExp("^"+e+"([0-9]+)$"),r=0;function i(t){var e;null!=t&&(e=t.match(n))&&(r=Ei(r,+e[1]+1))}function a(){return""+e+r++}function o(t,e){for(var n=Object(b["createHashMap"])(),r=0;r<t.length;r++){var i=t[r];null!=i&&null==n.get(i)||(t[r]=i=a(),e[r].option=Object(b["defaults"])({value:i},e[r].option)),n.set(i,!0)}}return{calcDupBase:i,ensureValueUnique:o}}var t2=function(){function t(t,e,n){this._model=e,this._dims=n,this._kind=t,this._cellMergeOwnerList=[]}return t.prototype._ensureCellMap=function(){var t=this,e=t._cellMap;return e||(e=t._cellMap=Object(b["createHashMap"])(),n()),e;function n(){var e=[],n=t._model.getShallow("data");n&&!Object(b["isArray"])(n)&&(n=null),Object(b["each"])(n,(function(n,r){if(Object(b["isObject"])(n)&&Object(b["isArray"])(n.coord)){var i=E1([]),a=null;if(z1(i,a,n.coord,t._dims,n.coordClamp?R1[t._kind]:R1.none),!F1(i,0)&&!F1(i,1)){var o=n&&n.mergeCells,s={id:new Et,span:new Et,locatorRange:i,option:n,cellMergeOwner:o};U1(s,i),e.push(s)}}}));for(var i=[],a=0;a<e.length;a++){var o=e[a];if(o.cellMergeOwner){var s=o.locatorRange;H1(s,i,e,a);for(var l=0;l<a;l++)i[l]&&(e[l].cellMergeOwner=!1);if(s[0][0]!==o.id.x||s[1][0]!==o.id.y){o.cellMergeOwner=!1;var u=Object(b["extend"])({},o.option);u.coord=null;var c={id:new Et,span:new Et,locatorRange:s,option:u,cellMergeOwner:!0};U1(c,s),e.push(c)}}}Object(b["each"])(e,(function(e){var n=r(e.id.x,e.id.y);if(e.cellMergeOwner&&(n.cellMergeOwner=!0,n.span=e.span,n.locatorRange=e.locatorRange,n.spanRect=K1(),t._cellMergeOwnerList.push(n)),e.cellMergeOwner||e.option)for(var i=0;i<e.span.y;i++)for(var a=0;a<e.span.x;a++){var o=r(e.id.x+a,e.id.y+i);o.option=e.option,e.cellMergeOwner&&(o.inSpanOf=n)}}))}function r(t,n){var r=n2(t,n),i=e.get(r);return i||(i=e.set(r,{id:new Et(t,n),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),i}},t.prototype.getCell=function(t){return this._ensureCellMap().get(n2(t[0],t[1]))},t.prototype.travelExistingCells=function(t){this._ensureCellMap().each(t)},t.prototype.expandRangeByCellMerge=function(t){if(!F1(t,0)&&!F1(t,1)&&t[0][0]===t[0][1]&&t[1][0]===t[1][1]){e2[0]=t[0][0],e2[1]=t[1][0];var e=this.getCell(e2),n=e&&e.inSpanOf;if(n)return void X1(t,n.locatorRange)}var r=this._cellMergeOwnerList;H1(t,null,r,r.length)},t}(),e2=[];function n2(t,e){return t+"|"+e}var r2={show:!0,color:Xp.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function i2(t){return{color:"none",borderWidth:1,borderColor:t?"none":Xp.color.borderTint}}var a2={show:!0,label:r2,itemStyle:i2(!1),silent:void 0,dividerLineStyle:{width:1,color:Xp.color.border}},o2={label:r2,itemStyle:i2(!1),silent:void 0},s2={label:r2,itemStyle:i2(!0),silent:void 0},l2={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:a2,y:a2,body:o2,corner:s2,backgroundStyle:{color:"none",borderColor:Xp.color.axisLine,borderWidth:1},triggerEvent:!1},u2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.optionUpdated=function(){var t=this._dimModels={x:new c2(this.get("x",!0)||{}),y:new c2(this.get("y",!0)||{})};t.x.option.type=t.y.option.type="category";var e=t.x.dim=new J1("x",t.x),n=t.y.dim=new J1("y",t.y),r={x:e,y:n};this._body=new t2("body",new Vh(this.getShallow("body")),r),this._corner=new t2("corner",new Vh(this.getShallow("corner")),r)},e.prototype.getDimensionModel=function(t){return this._dimModels[t]},e.prototype.getBody=function(){return this._body},e.prototype.getCorner=function(){return this._corner},e.type="matrix",e.layoutMode="box",e.defaultOption=l2,e}(Hp),c2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e}(Vh),h2=u2,d2=Math.round,p2=0,f2=99,g2={normal:25,special:100},y2={normal:50,special:125},v2=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e){this.group.removeAll();var n=this.group,r=t.coordinateSystem,i=r.getRect(),a=t.getDimensionModel("x"),o=t.getDimensionModel("y"),s=a.dim,l=o.dim;m2(n,t,e),x2(n,t,s,l,e);var u=t.getShallow("borderZ2",!0),c=Object(b["retrieve2"])(u,f2),h=c-1,d=t.getModel("backgroundStyle").getItemStyle(["borderWidth"]);d.lineWidth=0;var p=t.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);p.fill="none";var f=O2(i.clone(),d,p2),g=O2(i.clone(),p,c);f.silent=!0,g.silent=!0,n.add(f),n.add(g);var y=s.getUnitLayoutInfo(0,0),v=l.getUnitLayoutInfo(1,0);y&&v&&(s.shouldShow()&&n.add(I2({x1:i.x,y1:v.xy,x2:i.x+i.width,y2:v.xy},a.getModel("dividerLineStyle").getLineStyle(),h)),l.shouldShow()&&n.add(I2({x1:y.xy,y1:i.y,x2:y.xy,y2:i.y+i.height},o.getModel("dividerLineStyle").getLineStyle(),h)))},e.type="matrix",e}(xv);function m2(t,e,n){function r(r){var i=e.getDimensionModel(cx[r]),a=i.dim;if(a.shouldShow())for(var o=i.getModel("itemStyle"),s=i.getModel("label"),l=e.getShallow("tooltip",!0),u=[],c=a.resetCellIterator();c.next();){var h=c.item,d={};ue.copy(d,h.rect),M(u,h.id.x,h.id.y),b2(u,e,t,n,h.option,o,s,i,d,h.option.value,y2,l,0===r?"x":"y")}}r(0),r(1)}function x2(t,e,n,r,i){function a(n,r,a,o){var s=new Vh(e.getShallow(n,!0)),l=s.getModel("itemStyle"),u=s.getModel("label"),c=new co,h=new co,d=[],p=e.getShallow("tooltip",!0);for(o.resetLayoutIterator(h,1);h.next();)for(a.resetLayoutIterator(c,0);c.next();){var f=c.item,g=h.item;M(d,f.id.x,g.id.y);var y=r.getCell(d);if(!y||!y.inSpanOf||y.inSpanOf===y){var v={};y&&y.span?ue.copy(v,y.spanRect):(f.dim.getLayout(v,0,d[0]),g.dim.getLayout(v,1,d[1]));var m=y?y.option:null;b2(d,e,t,i,m,l,u,s,v,m?m.value:null,g2,p,n)}}}a("body",e.getBody(),n,r),n.shouldShow()&&r.shouldShow()&&a("corner",e.getCorner(),r,n)}function b2(t,e,n,r,i,a,o,s,l,u,c,h,d){var p;w2.option=i?i.itemStyle:null,w2.parentModel=a,_2.option=i,_2.parentModel=s;var f=Object(b["retrieve2"])(_2.getShallow("z2"),i&&i.itemStyle?c.special:c.normal),g=h&&h.show,y=O2(l,w2.getItemStyle(),f);n.add(y);var v,m=_2.get("cursor");if(null!=m&&y.attr("cursor",m),null!=u){var x=u+"";S2.option=i?i.label:null,S2.parentModel=o,S2.ecModel=r;var _=S2.getShallow("formatter");if(_){var w={componentType:"matrix",componentIndex:e.componentIndex,name:x,value:u,coord:t.slice(),$vars:["name","value","coord"]};if(Object(b["isString"])(_))x=Qd(_,w);else if(Object(b["isFunction"])(_)){var S=_(w);null!=S&&(x=S+"")}}if(ph(y,{normal:S2},{defaultText:x,autoOverflowArea:!0,layoutRect:Object(b["clone"])(y.shape)}),v=y.getTextContent(),v){v.z2=f+1;var M=v.style;if(M&&M.overflow&&"none"!==M.overflow&&M.lineOverflow){var O={};ue.copy(O,l),Hx(O,((null===(p=y.style)||void 0===p?void 0:p.lineWidth)||0)/2,!0,!0),y.updateInnerText(),v.getLocalTransform(M2),jt(M2,M2),ue.applyTransform(O,O,M2),v.setClipPath(new nu({shape:O}))}}Yx({el:y,componentModel:e,itemName:x,itemTooltipOption:h,formatterParamsExtra:{xyLocator:t.slice()}})}var I=e.get("triggerEvent",!0);if(v){var T=S2.get("silent");null==T&&(T=!(I||g)),v.silent=T,v.ignoreHostSilent=!0}var C=_2.get("silent");if(null==C&&(C=!y.style||"none"===y.style.fill||!y.style.fill),y.silent=C,I&&y){var A={componentType:"matrix",componentIndex:e.componentIndex,matrixIndex:e.componentIndex,targetType:d,name:v&&v.style?v.style.text:void 0,value:u,coord:t.slice()};wu(y).eventData=A}ho(_2),ho(w2),ho(S2)}var _2=new Vh,w2=new Vh,S2=new Vh,M2=[];function O2(t,e,n){var r=e.lineWidth;if(r){var i=t.x+t.width,a=t.y+t.height;t.x=Jl(t.x,r,!0),t.y=Jl(t.y,r,!0),t.width=Jl(i,r,!0)-t.x,t.height=Jl(a,r,!0)-t.y}return new nu({shape:t,style:e,z2:n})}function I2(t,e,n){var r=e.lineWidth;return r&&(d2(2*t.x1)===d2(2*t.x2)&&(t.x1=t.x2=Jl(t.x1,r,!0)),d2(2*t.y1)===d2(2*t.y2)&&(t.y1=t.y2=Jl(t.y1,r,!0))),new Cm({shape:t,style:e,silent:!0,z2:n})}var T2=v2,C2=function(){function t(e,n,r){this.dimensions=t.dimensions,this.type="matrix",this._model=e;var i=this._dimModels={x:e.getDimensionModel("x"),y:e.getDimensionModel("y")};this._dims={x:i.x.dim,y:i.y.dim},this._resize(e,r)}return t.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},t.create=function(e,n){var r=[];return e.eachComponent("matrix",(function(i){var a=new t(i,e,n);r.push(a),i.coordinateSystem=a})),e.eachComponent((function(t,e){mp({targetModel:e,coordSysType:"matrix",coordSysProvider:xp})})),r},t.prototype.getRect=function(){return this._rect},t.prototype._resize=function(t,e){var n=this._dims,r=this._dimModels,i=this._rect=Ap(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});L2(r,n,i,0),L2(r,n,i,1),P2(0,n),P2(1,n),j2(this._model.getBody(),n),j2(this._model.getCorner(),n)},t.prototype.dataToPoint=function(t,e,n){return n=n||[],this.dataToLayout(t,e,A2),n[0]=A2.rect.x+A2.rect.width/2,n[1]=A2.rect.y+A2.rect.height/2,n},t.prototype.dataToLayout=function(t,e,n){var r=this._dims;n=n||{};var i=n.rect=n.rect||{};i.x=i.y=i.width=i.height=NaN;var a=n.matrixXYLocatorRange=E1(n.matrixXYLocatorRange);return Object(b["isArray"])(t)?(z1(a,null,t,r,Object(b["retrieve2"])(e&&e.clamp,R1.none)),e&&e.ignoreMergeCells||(e&&e.clamp===R1.corner||this._model.getBody().expandRangeByCellMerge(a),e&&e.clamp===R1.body||this._model.getCorner().expandRangeByCellMerge(a)),Z1(i,a,r,0),Z1(i,a,r,1),n):n},t.prototype.pointToData=function(t,e,n){var r=this._dims;return F2(V2,0,r,t,e&&e.clamp),F2(V2,1,r,t,e&&e.clamp),n=n||[],n[0]=n[1]=NaN,V2.y===B2.inCorner&&V2.x===B2.inBody?H2(V2,n,0,r):V2.x===B2.inCorner&&V2.y===B2.inBody?H2(V2,n,1,r):(G2(V2,n,0,r),G2(V2,n,1,r)),n},t.prototype.convertToPixel=function(t,e,n,r){var i=z2(e);return i===this?i.dataToPoint(n,r):void 0},t.prototype.convertToLayout=function(t,e,n,r){var i=z2(e);return i===this?i.dataToLayout(n,r):void 0},t.prototype.convertFromPixel=function(t,e,n,r){var i=z2(e);return i===this?i.pointToData(n,r):void 0},t.prototype.containPoint=function(t){return this._rect.contain(t[0],t[1])},t.dimensions=["x","y","value"],t}(),A2={rect:K1()},D2=new co,k2=new co;function L2(t,e,n,r){for(var i=1-r,a=e[cx[r]],o=e[cx[i]],s=o.shouldShow(),l=a.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,r);u.next();)u.item.wh=u.item.xy=NaN;for(var c=n[hx[r]],h=a.getLocatorCount(r)+o.getLocatorCount(r),d=new Vh,p=o.resetLevelIterator();p.next();)d.option=p.item.option,d.parentModel=t[cx[i]],y(p.item,s?d.get("levelSize"):0);for(var f=new Vh,g=a.resetCellIterator();g.next();)g.item.type===j1.leaf&&(f.option=g.item.option,f.parentModel=void 0,y(g.item,f.get("size")));function y(t,e){var i=N2(e,r,n);Object(b["eqNaN"])(i)||(t.wh=E2(i,c),c=E2(c-t.wh),h--)}var v=h?c/h:0,m=!h&&c>=1,x=n[cx[r]],_=a.getLocatorCount(r)-1,w=new co;for(o.resetLayoutIterator(w,r);w.next();)S(w.item);for(a.resetLayoutIterator(w,r);w.next();)S(w.item);function S(t){Object(b["eqNaN"])(t.wh)&&(t.wh=v),t.xy=x,t.id[cx[r]]!==_||m||(t.wh=n[cx[r]]+n[hx[r]]-t.xy),x+=t.wh}}function P2(t,e){for(var n=e[cx[t]].resetCellIterator();n.next();){var r=n.item;R2(r.rect,t,r.id,r.span,e),R2(r.rect,1-t,r.id,r.span,e),r.type===j1.nonLeaf&&(r.xy=r.rect[cx[t]],r.wh=r.rect[hx[t]])}}function j2(t,e){t.travelExistingCells((function(t){var n=t.span;if(n){var r=t.spanRect,i=t.id;R2(r,0,i,n,e),R2(r,1,i,n,e)}}))}function R2(t,e,n,r,i){t[hx[e]]=0;var a=n[cx[e]],o=a<0?i[cx[1-e]]:i[cx[e]],s=o.getUnitLayoutInfo(e,n[cx[e]]);if(t[cx[e]]=s.xy,t[hx[e]]=s.wh,r[cx[e]]>1){var l=o.getUnitLayoutInfo(e,n[cx[e]]+r[cx[e]]-1);t[hx[e]]=l.xy+l.wh-s.xy}}function N2(t,e,n){var r=$i(t,n[hx[e]]);return E2(r,n[hx[e]])}function E2(t,e){return Math.max(Math.min(t,Object(b["retrieve2"])(e,1/0)),0)}function z2(t){var e=t.matrixModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}var B2={inBody:1,inCorner:2,outside:3},V2={x:null,y:null,point:[]};function F2(t,e,n,r,i){var a=n[cx[e]],o=n[cx[1-e]],s=a.getUnitLayoutInfo(e,a.getLocatorCount(e)-1),l=a.getUnitLayoutInfo(e,0),u=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),c=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,h=t.point[e]=r[e];if(l||c)if(i!==R1.body)if(i!==R1.corner){var d=l?l.xy:c?c.xy+c.wh:NaN,p=u?u.xy:d,f=s?s.xy+s.wh:d;if(h<p){if(!i)return void(t[cx[e]]=B2.outside);h=p}else if(h>f){if(!i)return void(t[cx[e]]=B2.outside);h=f}t.point[e]=h,t[cx[e]]=d<=h&&h<=f?B2.inBody:p<=h&&h<=d?B2.inCorner:B2.outside}else c?(t[cx[e]]=B2.inCorner,h=Ni(c.xy+c.wh,Ei(u.xy,h)),t.point[e]=h):t[cx[e]]=B2.outside;else l?(t[cx[e]]=B2.inBody,h=Ni(s.xy+s.wh,Ei(l.xy,h)),t.point[e]=h):t[cx[e]]=B2.outside;else t[cx[e]]=B2.outside}function H2(t,e,n,r){var i=1-n;if(t[cx[n]]!==B2.outside)for(r[cx[n]].resetCellIterator(k2);k2.next();){var a=k2.item;if(Y2(t.point[n],a.rect,n)&&Y2(t.point[i],a.rect,i))return e[n]=a.ordinal,void(e[i]=a.id[cx[i]])}}function G2(t,e,n,r){if(t[cx[n]]!==B2.outside){var i=t[cx[n]]===B2.inCorner?r[cx[1-n]]:r[cx[n]];for(i.resetLayoutIterator(D2,n);D2.next();)if(W2(t.point[n],D2.item))return void(e[n]=D2.item.id[cx[n]])}}function W2(t,e){return e.xy<=t&&t<=e.xy+e.wh}function Y2(t,e,n){return e[cx[n]]<=t&&t<=e[cx[n]]+e[hx[n]]}var U2=C2;function X2(t){t.registerComponentModel(h2),t.registerComponentView(T2),t.registerCoordinateSystem("matrix",U2)}function Z2(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function q2(t,e){var n;return b["each"](e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}function $2(t,e,n){var r=b["extend"]({},n),i=t[e],a=n.$action||"merge";"merge"===a?i?(b["merge"](i,r,!0),Np(i,r,{ignoreSize:!0}),zp(n,i),Q2(n,i),Q2(n,i,"shape"),Q2(n,i,"style"),Q2(n,i,"extra"),n.clipPath=i.clipPath):t[e]=r:"replace"===a?t[e]=r:"remove"===a&&i&&(t[e]=null)}var K2=["transition","enterFrom","leaveTo"],J2=K2.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Q2(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var r=n?K2:J2,i=0;i<r.length;i++){var a=r[i];null==t[a]&&null!=e[a]&&(t[a]=e[a])}}function t5(t,e){if(t&&(t.hv=e.hv=[q2(e,["left","right"]),q2(e,["top","bottom"])],"group"===t.type)){var n=t,r=e;null==n.width&&(n.width=r.width=0),null==n.height&&(n.height=r.height=0)}}var e5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return f(e,t),e.prototype.mergeOption=function(e,n){var r=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=r},e.prototype.optionUpdated=function(t,e){var n=this.option,r=(e?n:t).elements,i=n.elements=e?[]:n.elements,a=[];this._flatten(r,a,null);var o=ja(i,a,"normalMerge"),s=this._elOptionsToUpdate=[];b["each"](o,(function(t,e){var n=t.newOption;n&&(s.push(n),Z2(t,n),$2(i,e,n),t5(i[e],n))}),this),n.elements=b["filter"](i,(function(t){return t&&delete t.$action,null!=t}))},e.prototype._flatten=function(t,e,n){b["each"](t,(function(t){if(t){n&&(t.parentOption=n),e.push(t);var r=t.children;r&&r.length&&this._flatten(r,e,t),delete t.children}}),this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(Hp),n5={path:null,compoundPath:null,group:vi,image:Xl,text:_u},r5=Ka(),i5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(){this._elMap=b["createHashMap"]()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,r=this.group,i=t.get("z"),a=t.get("zlevel");b["each"](e,(function(e){var o=Ga(e.id,null),s=null!=o?n.get(o):null,l=Ga(e.parentId,null),u=null!=l?n.get(l):r,c=e.type,h=e.style;"text"===c&&h&&e.hv&&e.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=e.textContent,p=e.textConfig;if(h&&WK(h,c,!!p,!!d)){var f=YK(h,c,!0);!p&&f.textConfig&&(p=e.textConfig=f.textConfig),!d&&f.textContent&&(d=f.textContent)}var g=u5(e);var y=e.$action||"merge",v="merge"===y,m="replace"===y;if(v){var x=!s,b=s;x?b=o5(o,u,e.type,n):(b&&(r5(b).isNew=!1),mJ(b)),b&&(tJ(b,g,t,{isInit:x}),l5(b,e,i,a))}else if(m){s5(s,e,n,t);var _=o5(o,u,e.type,n);_&&(tJ(_,g,t,{isInit:!0}),l5(_,e,i,a))}else"remove"===y&&(eJ(s,e),s5(s,e,n,t));var w=n.get(o);if(w&&d)if(v){var S=w.getTextContent();S?S.attr(d):w.setTextContent(new _u(d))}else m&&w.setTextContent(new _u(d));if(w){var M=e.clipPath;if(M){var O=M.type,I=void 0;x=!1;if(v){var T=w.getClipPath();x=!T||r5(T).type!==O,I=x?a5(O):T}else m&&(x=!0,I=a5(O));w.setClipPath(I),tJ(I,M,t,{isInit:x}),xJ(I,M.keyframeAnimation,t)}var C=r5(w);w.setTextConfig(p),C.option=e,c5(w,t,e),Yx({el:w,componentModel:t,itemName:w.name,itemTooltipOption:e.tooltip}),xJ(w,e.keyframeAnimation,t)}}))}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,r=this.group,i=this._elMap,a=e.getWidth(),o=e.getHeight(),s=["x","y"],l=0;l<n.length;l++){var u=n[l],c=Ga(u.id,null),h=null!=c?i.get(c):null;if(h&&h.isGroup){var d=h.parent,p=d===r,f=r5(h),g=r5(d);f.width=Zi(f.option.width,p?a:g.width)||0,f.height=Zi(f.option.height,p?o:g.height)||0}}for(l=n.length-1;l>=0;l--){u=n[l],c=Ga(u.id,null),h=null!=c?i.get(c):null;if(h){d=h.parent,g=r5(d);var y=d===r?{width:a,height:o}:{width:g.width,height:g.height},v={},m=Pp(h,u,y,null,{hv:u.hv,boundingMode:u.bounding},v);if(!r5(h).isNew&&m){for(var x=u.transition,_={},w=0;w<s.length;w++){var S=s[w],M=v[S];x&&(rJ(x)||b["indexOf"](x,S)>=0)?_[S]=M:h[S]=M}nh(h,_,t,0)}else h.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){s5(n,r5(n).option,e,t._lastGraphicModel)})),this._elMap=b["createHashMap"]()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(xv);function a5(t){var e=b["hasOwn"](n5,t)?n5[t]:xx(t);var n=new e({});return r5(n).type=t,n}function o5(t,e,n,r){var i=a5(n);return e.add(i),r.set(t,i),r5(i).id=t,r5(i).isNew=!0,i}function s5(t,e,n,r){var i=t&&t.parent;i&&("group"===t.type&&t.traverse((function(t){s5(t,e,n,r)})),nJ(t,e,r),n.removeKey(r5(t).id))}function l5(t,e,n,r){t.isGroup||b["each"]([["cursor",Ls.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];b["hasOwn"](e,r)?t[r]=b["retrieve2"](e[r],n[1]):null==t[r]&&(t[r]=n[1])})),b["each"](b["keys"](e),(function(n){if(0===n.indexOf("on")){var r=e[n];t[n]=b["isFunction"](r)?r:null}})),b["hasOwn"](e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}function u5(t){return t=b["extend"]({},t),b["each"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(wp),(function(e){delete t[e]})),t}function c5(t,e,n){var r=wu(t).eventData;t.silent||t.ignore||r||(r=wu(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function h5(t){t.registerComponentModel(e5),t.registerComponentView(i5),t.registerPreprocessor((function(t){var e=t.graphic;Object(b["isArray"])(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])}))}var d5=["x","y","radius","angle","single"],p5=Ka(),f5=["cartesian2d","polar","singleAxis"];function g5(t){var e=t.get("coordinateSystem");return Object(b["indexOf"])(f5,e)>=0}function y5(t){return t+"Axis"}function v5(t,e){var n,r=Object(b["createHashMap"])(),i=[],a=Object(b["createHashMap"])();t.eachComponent({mainType:"dataZoom",query:e},(function(t){a.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",o)}while(n);function o(t){!a.get(t.uid)&&l(t)&&(s(t),n=!0)}function s(t){a.set(t.uid,!0),i.push(t),u(t)}function l(t){var e=!1;return t.eachTargetAxis((function(t,n){var i=r.get(t);i&&i[n]&&(e=!0)})),e}function u(t){t.eachTargetAxis((function(t,e){(r.get(t)||r.set(t,[]))[e]=!0}))}return i}function m5(t){var e=t.ecModel,n={infoList:[],infoMap:Object(b["createHashMap"])()};return t.eachTargetAxis((function(t,r){var i=e.getComponent(y5(t),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,s=n.infoMap.get(o);s||(s={model:a,axisModels:[]},n.infoList.push(s),n.infoMap.set(o,s)),s.axisModels.push(i)}}})),n}function x5(t){var e=p5(S_(t));return e.axisProxyMap||(e.axisProxyMap=Object(b["createHashMap"])())}function b5(t){if(t)return x5(t.ecModel).get(t.uid)}function _5(t,e){x5(t.ecModel).set(t.uid,e)}function w5(t,e){var n=e.getAxisModel().axis.__alignTo;return n&&t.getAxisProxy(n.dim,n.model.componentIndex)?b5(n.model):null}var S5=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}(),M5=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 f(e,t),e.prototype.init=function(t,e,n){var r=O5(t);this.settledOption=r,this.mergeDefaultAndTheme(t,n),this._doInit(r)},e.prototype.mergeOption=function(t){var e=O5(t);Object(b["merge"])(this.option,t,!0),Object(b["merge"])(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(b["each"])([["start","startValue"],["end","endValue"]],(function(t,r){"value"===this._rangePropMode[r]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Object(b["createHashMap"])(),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(b["each"])(d5,(function(n){var r=this.getReferringComponents(y5(n),no);if(r.specified){e=!0;var i=new S5;Object(b["each"])(r.models,(function(t){i.add(t.componentIndex)})),t.set(n,i)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,r=!0;if(r){var i="vertical"===e?"y":"x",a=n.findComponents({mainType:i+"Axis"});o(a,i)}if(r){a=n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});o(a,"single")}function o(e,n){var i=e[0];if(i){var a=new S5;if(a.add(i.componentIndex),t.set(n,a),r=!1,"x"===n||"y"===n){var o=i.getReferringComponents("grid",eo).models[0];o&&Object(b["each"])(e,(function(t){i.componentIndex!==t.componentIndex&&o===t.getReferringComponents("grid",eo).models[0]&&a.add(t.componentIndex)}))}}}r&&Object(b["each"])(d5,(function(e){if(r){var i=n.findComponents({mainType:y5(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var a=new S5;a.add(i[0].componentIndex),t.set(e,a),r=!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(b["each"])([["start","startValue"],["end","endValue"]],(function(r,i){var a=null!=t[r[0]],o=null!=t[r[1]];a&&!o?e[i]="percent":!a&&o?e[i]="value":n?e[i]=n[i]:a&&(e[i]="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(y5(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,r){Object(b["each"])(n.indexList,(function(n){t.call(e,r,n)}))}))},e.prototype.getAxisProxy=function(t,e){return b5(this.getAxisModel(t,e))},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(y5(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(b["each"])([["start","startValue"],["end","endValue"]],(function(r){null==t[r[0]]&&null==t[r[1]]||(e[r[0]]=n[r[0]]=t[r[0]],e[r[1]]=n[r[1]]=t[r[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(b["each"])(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getWindow().value;var n=this.findRepresentativeAxisProxy();return n?n.getWindow().value:void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return b5(t);for(var e,n=this._targetAxisInfoMap.keys(),r=0;r<n.length;r++)for(var i=n[r],a=this._targetAxisInfoMap.get(i),o=0;o<a.indexList.length;o++){var s=this.getAxisProxy(i,a.indexList[o]);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={z:4,filterMode:"filter",start:0,end:100},e}(Hp);function O5(t){var e={};return Object(b["each"])(["start","end","startValue","endValue","throttle"],(function(n){t.hasOwnProperty(n)&&(e[n]=t[n])})),e}var I5=M5,T5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="dataZoom.select",e}(I5),C5=T5,A5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n,r){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(xv),D5=A5,k5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="dataZoom.select",e}(D5),L5=k5,P5=function(){function t(t,e,n,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=n}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getWindow=function(){return Object(b["clone"])(this._window)},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries((function(e){if(g5(e)){var n=y5(this._dimName),r=e.getReferringComponents(n,eo).models[0];r&&this._axisIndex===r.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return Object(b["clone"])(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._extent,r=this.getAxisModel().axis,i=r.scale,a=this._dataZoomModel,o=a.getRangePropMode(),s=[0,100],l=[],u=[],c=[!1,!1];Object(b["each"])(["start","end"],(function(r,a){var h=t[r],d=t[r+"Value"];"percent"===o[a]?(null==h&&(h=s[a]),d=Xi(h,s,n),c[a]=!0):(e=!0,null==d?d=n[a]:(d=i.parse(d),i.sanitize&&(d=i.sanitize(d,n))),h=Xi(d,n,s)),u[a]=null==d||isNaN(d)?n[a]:d,l[a]=null==h||isNaN(h)?s[a]:h})),ea(u),ea(l);var h=this._minMaxSpan;function d(t,e,n,r,i){var a=i?"Span":"ValueSpan";CU(0,t,n,"all",h["min"+a],h["max"+a]);for(var o=0;o<2;o++)e[o]=Xi(t[o],n,r,!0),i&&(e[o]=e[o],c[o]=!0);_o(e)}e?d(u,l,n,s,!1):d(l,u,s,n,!0);var p=JO(i)||$O(i),f=r.getExtent(),g=zi(f[1]-f[0]),y=p?0:aa(u,g,.5);Object(b["each"])([[0,Fi],[1,Vi]],(function(t){var e=t[0],r=t[1];c[e]&&isFinite(y)&&(u[e]=Qi(u[e],y),u[e]=Ni(n[1],Ei(n[0],u[e])),l[e]===s[e]&&(u[e]=n[e],p&&(u[e]=r(u[e]))))})),_o(u);var v=[Xi(u[0],n,s,!0),Xi(u[1],n,s,!0)];return _o(v),{value:u,percent:l,percentInverted:v,valuePrecision:y}},t.prototype.reset=function(t,e){if(this.hostedBy(t)){var n=this.getAxisModel().axis;zT(n,AT);var r=n.scale.rawExtentInfo;this._extent=r.makeNoZoom(),this._updateMinMaxSpan();var i=t.settledOption;e&&(i=Object(b["defaults"])({start:e[0],end:e[1]},i));var a=this._window=this.calculateDataWindow(i),o=a.percent,s=a.value;0!==o[0]&&r.setZoomMM(0,s[0]),100!==o[1]&&r.setZoomMM(1,s[1])}},t.prototype.filterData=function(t,e){if(this.hostedBy(t)){var n=this._dimName,r=this.getTargetSeriesModels(),i=t.get("filterMode"),a=this._window.value;"none"!==i&&Object(b["each"])(r,(function(t){var e=t.getData(),r=e.mapDimensionsAll(n);if(r.length){if("weakFilter"===i){var s=e.getStore(),l=Object(b["map"])(r,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,i,o=0;o<r.length;o++){var u=s.get(l[o],t),c=!isNaN(u),h=u<a[0],d=u>a[1];if(c&&!h&&!d)return!0;c&&(i=!0),h&&(e=!0),d&&(n=!0)}return i&&e&&n}))}else Object(b["each"])(r,(function(n){if("empty"===i)t.setData(e=e.map(n,(function(t){return o(t)?t:NaN})));else{var r={};r[n]=a,e.selectRange(r)}}));Object(b["each"])(r,(function(t){e.setApproximateExtent(a,t)}))}}))}function o(t){return t>=a[0]&&t<=a[1]}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._extent;Object(b["each"])(["min","max"],(function(r){var i=e.get(r+"Span"),a=e.get(r+"ValueSpan");null!=a&&(a=this.getAxisModel().axis.scale.parse(a)),null!=a?i=Xi(n[0]+a,n,[0,100],!0):null!=i&&(a=Xi(i,[0,100],n,!0)-n[0]),t[r+"Span"]=i,t[r+"ValueSpan"]=a}),this)},t}(),j5=P5,R5={dirtyOnOverallProgress:!0,getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var a=t.getComponent(y5(r),i);e(r,i,a,n)}))}))}var n=[];e((function(e,r,i,a){if(!b5(i)){var o=new j5(e,r,a,t);n.push(o),_5(i,o)}}));var r=Object(b["createHashMap"])();return Object(b["each"])(n,(function(t){Object(b["each"])(t.getTargetSeriesModels(),(function(t){r.set(t.uid,t)}))})),r},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){var n=[];t.eachTargetAxis((function(e,r){var i=t.getAxisProxy(e,r),a=w5(t,i);a?n.push([i,a]):i.reset(t,null)})),Object(b["each"])(n,(function(e){e[0].reset(t,e[1].getWindow().percentInverted)})),t.eachTargetAxis((function(n,r){t.getAxisProxy(n,r).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getWindow(),r=n.percent,i=n.value;t.setCalculatedRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})}}))}},N5=R5;function E5(t){t.registerAction("dataZoom",(function(t,e){var n=v5(e,t);Object(b["each"])(n,(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}var z5=wo();function B5(t){z5(t,(function(){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,N5),E5(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"}))}))}function V5(t){t.registerComponentModel(C5),t.registerComponentView(L5),B5(t)}var F5=function(){function t(){}return t}(),H5={};function G5(t,e){H5[t]=e}function W5(t){return H5[t]}var Y5=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(e,n,r){var i=r.getTheme().get("toolbox"),a=i?i.feature:null;a&&(this._themeFeatureOption=Object(b["extend"])({},a),i.feature={}),t.prototype.init.call(this,e,n,r),a&&(i.feature=a)},e.prototype.optionUpdated=function(){Object(b["each"])(this.option.feature,(function(t,e){var n=this._themeFeatureOption,r=W5(e);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(this.ecModel)),n&&n[e]&&(Object(b["merge"])(t,n[e]),n[e]=null),Object(b["merge"])(t,r.defaultOption))}),this)},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:Xp.color.border,borderRadius:0,borderWidth:0,padding:Xp.size.m,itemSize:15,itemGap:Xp.size.s,showTitle:!0,iconStyle:{borderColor:Xp.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:Xp.color.accent70}},tooltip:{show:!1,position:"bottom"}},e}(Hp),U5=Y5;function X5(t,e){var n=Zd(e.get("padding")),r=e.getItemStyle(["color","opacity"]);r.fill=e.get("backgroundColor");var i=new nu({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:r,silent:!0,z2:-1});return i}var Z5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.render=function(t,e,n,r){var i=this.group;if(i.removeAll(),t.get("show")){var a=+t.get("itemSize"),o="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features=Object(b["createHashMap"])()),u=[];Object(b["each"])(s,(function(t,e){u.push(e)})),new kM(this._featureNames||[],u).add(f).update(f).remove(Object(b["curry"])(f,null)).execute(),this._featureNames=Object(b["filter"])(u,(function(t){return l.hasKey(t)}));var c=Lp(t,n).refContainer,h=t.getBoxLayoutParams(),d=t.get("padding"),p=Ap(h,c,d);Op(t.get("orient"),i,t.get("itemGap"),p.width,p.height),Pp(i,h,c,d),i.add(X5(i.getBoundingRect(),t)),o||i.eachChild((function(t){var e=t.__title,r=t.ensureState("emphasis"),o=r.textConfig||(r.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!Object(b["isFunction"])(l)&&e){var u=l.style||(l.style={}),c=Wr(e,_u.makeFont(u)),h=t.x+i.x,d=t.y+i.y+a,p=!1;d+c.height>n.getHeight()&&(o.position="top",p=!0);var f=p?-5-c.height:a+10;h+c.width/2>n.getWidth()?(o.position=["100%",f],u.align="right"):h-c.width/2<0&&(o.position=[0,f],u.align="left")}}))}function f(i,a){var o,c=null!=i&&null==a,h=null!=i&&null!=a,d=null==i,p=c||h?u[i]:u[a],f=s[p],y=c||h?new Vh(f,t,e):null,v=y&&y.get("show");if(c){if(!v)return;if(q5(p))o={onclick:y.option.onclick,featureName:p};else{var m=W5(p);if(!m)return;o=new m}l.set(p,o)}else o=l.get(p);if(d||!v)return $5(o)&&o.dispose&&o.dispose(e,n),void l.removeKey(p);r&&null!=r.newTitle&&r.featureName===p&&(f.title=r.newTitle),c&&(o.uid=Hh("toolbox-feature")),o.model=y,o.ecModel=e,o.api=n,g(y,o,p),y.setIconStatus=function(t,e){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,r[t]&&("emphasis"===e?wc:Sc)(r[t])},$5(o)&&o.render&&o.render(y,e,n,r)}function g(r,s,l){var u,c,h=r.getModel("iconStyle"),d=r.getModel(["emphasis","iconStyle"]),p=s instanceof F5&&s.getIcons?s.getIcons():r.get("icon"),f=r.get("title")||{};Object(b["isString"])(p)?(u={},u[l]=p):u=p,Object(b["isString"])(f)?(c={},c[l]=f):c=f;var g=r.iconPaths={};Object(b["each"])(u,(function(l,u){var p=Ex(l,{},{x:-a/2,y:-a/2,width:a,height:a});p.setStyle(h.getItemStyle());var f=p.ensureState("emphasis");f.style=d.getItemStyle();var y=new _u({style:{text:c[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null,font:Sh({fontStyle:d.get("textFontStyle"),fontFamily:d.get("textFontFamily"),fontSize:d.get("textFontSize"),fontWeight:d.get("textFontWeight")},e)},ignore:!0});p.setTextContent(y),Yx({el:p,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var e=d.getItemStyle(),r=o?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";y.setStyle({fill:d.get("textFill")||e.fill||e.stroke||Xp.color.neutral99,backgroundColor:d.get("textBackgroundColor")}),p.setTextConfig({position:d.get("textPosition")||r}),y.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),y.hide()})),("emphasis"===r.get(["iconStatus",u])?wc:Sc)(p),i.add(p),p.on("click",Object(b["bind"])(s.onclick,s,e,n,u)),g[u]=p}))}},e.prototype.updateView=function(t,e,n,r){Object(b["each"])(this._features,(function(t){t&&t instanceof F5&&t.updateView&&t.updateView(t.model,e,n,r)}))},e.prototype.dispose=function(t,e){Object(b["each"])(this._features,(function(n){n&&n instanceof F5&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(xv);function q5(t){return 0===t.indexOf("my")}function $5(t){return t instanceof F5}var K5=Z5,J5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.onclick=function(t,e){var n=this.model,r=n.get("name")||t.get("title.0.text")||"echarts",i="svg"===e.getZr().painter.getType(),a=i?"svg":n.get("type",!0)||"png",o=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||Xp.color.neutral00,connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=x.browser;if("function"!==typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||i){var l=o.split(","),u=l[0].indexOf("base64")>-1,c=i?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var h=r+"."+a;if(window.navigator.msSaveOrOpenBlob){var d=c.length,p=new Uint8Array(d);while(d--)p[d]=c.charCodeAt(d);var f=new Blob([p]);window.navigator.msSaveOrOpenBlob(f,h)}else{var g=document.createElement("iframe");document.body.appendChild(g);var y=g.contentWindow,v=y.document;v.open("image/svg+xml","replace"),v.write(c),v.close(),y.focus(),v.execCommand("SaveAs",!0,h),document.body.removeChild(g)}}else{var m=n.get("lang"),b='<body style="margin:0;"><img src="'+o+'" style="max-width:100%;" title="'+(m&&m[0]||"")+'" /></body>',_=window.open();_.document.write(b),_.document.title=r}else{var w=document.createElement("a");w.download=r+"."+a,w.target="_blank",w.href=o;var S=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});w.dispatchEvent(S)}},e.getDefaultOption=function(t){var e={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:Xp.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return e},e}(F5),Q5=J5,t3="__ec_magicType_stack__",e3=[["line","bar"],["stack"]],n3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return b["each"](t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},e.getDefaultOption=function(t){var e={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return e},e.prototype.onclick=function(t,e,n){var r=this.model,i=r.get(["seriesIndex",n]);if(r3[n]){var a,o={series:[]},s=function(t){var e=t.subType,i=t.id,a=r3[n](e,i,t,r);a&&(b["defaults"](a,t.option),o.series.push(a));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,c=u+"Axis",h=t.getReferringComponents(c,eo).models[0],d=h.componentIndex;o[c]=o[c]||[];for(var p=0;p<=d;p++)o[c][d]=o[c][d]||{};o[c][d].boundaryGap="bar"===n}}};b["each"](e3,(function(t){b["indexOf"](t,n)>=0&&b["each"](t,(function(t){r.setIconStatus(t,"normal")}))})),r.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},s);var l=n;"stack"===n&&(a=b["merge"]({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(l="tiled")),e.dispatchAction({type:"changeMagicType",currentType:l,newOption:o,newTitle:a,featureName:"magicType"})}},e}(F5),r3={line:function(t,e,n,r){if("bar"===t)return b["merge"]({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(t,e,n,r){if("line"===t)return b["merge"]({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(t,e,n,r){var i=n.get("stack")===t3;if("line"===t||"bar"===t)return r.setIconStatus("stack",i?"normal":"emphasis"),b["merge"]({id:e,stack:i?"":t3},r.get(["option","stack"])||{},!0)}};cM({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));var i3=n3,a3=new Array(60).join("-"),o3="\t";function s3(t){var e={},n=[],r=[];return t.eachRawSeries((function(t){var i=t.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(t);else{var a=i.getBaseAxis();if("category"===a.type){var o=fj(a);e[o]||(e[o]={categoryAxis:a,valueAxis:i.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),e[o].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:r}}function l3(t){var e=[];return b["each"](t,(function(t,n){var r=t.categoryAxis,i=t.valueAxis,a=i.dim,o=[" "].concat(b["map"](t.series,(function(t){return t.name}))),s=[r.model.getCategories()];b["each"](t.series,(function(t){var e=t.getRawData();s.push(t.getRawData().mapArray(e.mapDimension(a),(function(t){return t})))}));for(var l=[o.join(o3)],u=0;u<s[0].length;u++){for(var c=[],h=0;h<s.length;h++)c.push(s[h][u]);l.push(c.join(o3))}e.push(l.join("\n"))})),e.join("\n\n"+a3+"\n\n")}function u3(t){return b["map"](t,(function(t){var e=t.getRawData(),n=[t.name],r=[];return e.each(e.dimensions,(function(){for(var t=arguments.length,i=arguments[t-1],a=e.getName(i),o=0;o<t-1;o++)r[o]=arguments[o];n.push((a?a+o3:"")+r.join(o3))})),n.join("\n")})).join("\n\n"+a3+"\n\n")}function c3(t){var e=s3(t);return{value:b["filter"]([l3(e.seriesGroupByCategoryAxis),u3(e.other)],(function(t){return!!t.replace(/[\n\t\s]/g,"")})).join("\n\n"+a3+"\n\n"),meta:e.meta}}function h3(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function d3(t){var e=t.slice(0,t.indexOf("\n"));if(e.indexOf(o3)>=0)return!0}var p3=new RegExp("["+o3+"]+","g");function f3(t){for(var e=t.split(/\n+/g),n=h3(e.shift()).split(p3),r=[],i=b["map"](n,(function(t){return{name:t,data:[]}})),a=0;a<e.length;a++){var o=h3(e[a]).split(p3);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function g3(t){for(var e=t.split(/\n+/g),n=h3(e.shift()),r=[],i=0;i<e.length;i++){var a=h3(e[i]);if(a){var o=a.split(p3),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);1===l.length&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}function y3(t,e){var n=t.split(new RegExp("\n*"+a3+"\n*","g")),r={series:[]};return b["each"](n,(function(t,n){if(d3(t)){var i=f3(t),a=e[n],o=a.axisDim+"Axis";a&&(r[o]=r[o]||[],r[o][a.axisIndex]={data:i.categories},r.series=r.series.concat(i.series))}else{i=g3(t);r.series.push(i)}})),r}var v3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var n=e.getDom(),r=this.model;this._dom&&n.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=r.get("backgroundColor")||Xp.color.neutral00;var a=document.createElement("h4"),o=r.get("lang")||[];a.innerHTML=o[0]||r.get("title"),a.style.cssText="margin:10px 20px",a.style.color=r.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=r.get("optionToContent"),c=r.get("contentToOption"),h=c3(t);if(b["isFunction"](u)){var d=u(e.getOption());b["isString"](d)?s.innerHTML=d:b["isDom"](d)&&s.appendChild(d)}else{l.readOnly=r.get("readOnly");var p=l.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=r.get("textColor"),p.borderColor=r.get("textareaBorderColor"),p.backgroundColor=r.get("textareaColor"),l.value=h.value,s.appendChild(l)}var f=h.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",v=document.createElement("div"),m=document.createElement("div");y+=";background-color:"+r.get("buttonColor"),y+=";color:"+r.get("buttonTextColor");var x=this;function _(){n.removeChild(i),x._dom=null}xt(v,"click",_),xt(m,"click",(function(){if(null==c&&null!=u||null!=c&&null==u)_();else{var t;try{t=b["isFunction"](c)?c(s,e.getOption()):y3(l.value,f)}catch(n){throw _(),new Error("Data view format error "+n)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),_()}})),v.innerHTML=o[1],m.innerHTML=o[2],m.style.cssText=v.style.cssText=y,!r.get("readOnly")&&g.appendChild(m),g.appendChild(v),i.appendChild(a),i.appendChild(s),i.appendChild(g),s.style.height=n.clientHeight-80+"px",n.appendChild(i),this._dom=i},e.prototype.dispose=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},e.getDefaultOption=function(t){var e={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:Xp.color.background,textColor:Xp.color.primary,textareaColor:Xp.color.background,textareaBorderColor:Xp.color.border,buttonColor:Xp.color.accent50,buttonTextColor:Xp.color.neutral00};return e},e}(F5);function m3(t,e){return b["map"](t,(function(t,n){var r=e&&e[n];if(b["isObject"](r)&&!b["isArray"](r)){var i=b["isObject"](t)&&!b["isArray"](t);i||(t={value:t});var a=null!=r.name&&null==t.name;return t=b["defaults"](t,r),a&&delete t.name,t}return t}))}cM({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},(function(t,e){var n=[];b["each"](t.newOption.series,(function(t){var r=e.getSeriesByName(t.name)[0];if(r){var i=r.get("data");n.push({name:t.name,data:m3(t.data,i)})}else n.push(b["extend"]({type:"scatter"},t))})),e.mergeOption(b["defaults"]({series:n},t.newOption))}));var x3=v3,b3=b["each"],_3=Ka();function w3(t,e){var n=I3(t);b3(e,(function(e,r){for(var i=n.length-1;i>=0;i--){var a=n[i];if(a[r])break}if(i<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var s=o.getPercentRange();n[0][r]={dataZoomId:r,start:s[0],end:s[1]}}}})),n.push(e)}function S3(t){var e=I3(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return b3(n,(function(t,n){for(var i=e.length-1;i>=0;i--)if(t=e[i][n],t){r[n]=t;break}})),r}function M3(t){_3(t).snapshots=null}function O3(t){return I3(t).length}function I3(t){var e=_3(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var T3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.onclick=function(t,e){M3(t),e.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var e={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return e},e}(F5);cM({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(t,e){e.resetOption("recreate")}));var C3=T3,A3=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],D3=function(){function t(t,e,n){var r=this;this._targetInfoList=[];var i=L3(e,t);Object(b["each"])(P3,(function(t,e){(!n||!n.include||Object(b["indexOf"])(n.include,e)>=0)&&t(i,r._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var r=N3[t.brushType](0,n,e);t.__rangeOffset={offset:z3[t.brushType](r.values,t.range,[1,1]),xyMinMax:r.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(b["each"])(t,(function(t){var r=this.findTargetInfo(t,e);r&&!0!==r&&Object(b["each"])(r.coordSyses,(function(r){var i=N3[t.brushType](1,r,t.range,!0);n(t,i.values,r,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(b["each"])(t,(function(t){var n=this.findTargetInfo(t,e);if(t.range=t.range||[],n&&!0!==n){t.panelId=n.panelId;var r=N3[t.brushType](0,n.coordSys,t.coordRange),i=t.__rangeOffset;t.range=i?z3[t.brushType](r.values,i.offset,V3(r.xyMinMax,i.xyMinMax)):r.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(b["map"])(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:EX(r),isTargetByCursor:BX(r,t,n.coordSysModel),getLinearBrushOtherExtent:zX(r)}}))},t.prototype.controlSeries=function(t,e,n){var r=this.findTargetInfo(t,n);return!0===r||r&&Object(b["indexOf"])(r.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,r=L3(e,t),i=0;i<n.length;i++){var a=n[i],o=t.panelId;if(o){if(a.panelId===o)return a}else for(var s=0;s<j3.length;s++)if(j3[s](r,a))return a}return!0},t}();function k3(t){return t[0]>t[1]&&t.reverse(),t}function L3(t,e){return Qa(t,e,{includeMainTypes:A3})}var P3={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,a=Object(b["createHashMap"])(),o={},s={};(n||r||i)&&(Object(b["each"])(n,(function(t){var e=t.axis.grid.model;a.set(e.id,e),o[e.id]=!0})),Object(b["each"])(r,(function(t){var e=t.axis.grid.model;a.set(e.id,e),s[e.id]=!0})),Object(b["each"])(i,(function(t){a.set(t.id,t),o[t.id]=!0,s[t.id]=!0})),a.each((function(t){var i=t.coordinateSystem,a=[];Object(b["each"])(i.getCartesians(),(function(t,e){(Object(b["indexOf"])(n,t.getAxis("x").model)>=0||Object(b["indexOf"])(r,t.getAxis("y").model)>=0)&&a.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:R3.grid,xAxisDeclared:o[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){Object(b["each"])(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:R3.geo})}))}},j3=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],R3={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys.view,e=SB(null,t);return ne(e,e,_B(null,t)),e}},N3={lineX:Object(b["curry"])(E3,0),lineY:Object(b["curry"])(E3,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),a=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),o=[k3([i[0],a[0]]),k3([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,n,r){var i=[po(),po()],a=Object(b["map"])(n,(function(n){var a=t?e.pointToData(n,r):e.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],a[0]),i[1][0]=Math.min(i[1][0],a[1]),i[0][1]=Math.max(i[0][1],a[0]),i[1][1]=Math.max(i[1][1],a[1]),a}));return{values:a,xyMinMax:i}}};function E3(t,e,n,r){var i=n.getAxis(["x","y"][t]),a=k3(Object(b["map"])([0,1],(function(t){return e?i.coordToData(i.toLocalCoord(r[t]),!0):i.toGlobalCoord(i.dataToCoord(r[t]))}))),o=[];return o[t]=a,o[1-t]=[NaN,NaN],{values:a,xyMinMax:o}}var z3={lineX:Object(b["curry"])(B3,0),lineY:Object(b["curry"])(B3,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(b["map"])(t,(function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]}))}};function B3(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function V3(t,e){var n=F3(t),r=F3(e),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function F3(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var H3=D3,G3=b["each"],W3=Ua("toolbox-dataZoom_"),Y3={x:"width",y:"height"},U3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.render=function(t,e,n,r){this._brushController||(this._brushController=new NX(n.getZr()),this._brushController.on("brush",b["bind"](this._onBrush,this)).mount()),$3(t,e,this,r,n),q3(t,e)},e.prototype.onclick=function(t,e,n){X3[n].call(this)},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},r=this.ecModel;this._brushController.updateCovers([]);var i=new H3(Z3(this.model),r,{include:["grid"]});i.matchOutputRanges(e,r,(function(t,e,n){if("cartesian2d"===n.type){var r=n.master.getRect().clone(),i=t.brushType;"rect"===i?(a("x",n,r,e[0]),a("y",n,r,e[1])):a({lineX:"x",lineY:"y"}[i],n,r,e)}})),w3(r,n),this._dispatchZoomAction(n)}function a(t,e,i,a){var s=e.getAxis(t),l=s.model,u=o(t,l,r),c=u.findRepresentativeAxisProxy(l).getMinMaxSpan(),h=s.scale.getExtent();null==c.minValueSpan&&null==c.maxValueSpan||(a=CU(0,a.slice(),h,0,c.minValueSpan,c.maxValueSpan));var d=aa(h,i[Y3[t]],.5);u&&(n[u.id]={dataZoomId:u.id,startValue:isFinite(d)?Qi(a[0],d):a[0],endValue:isFinite(d)?Qi(a[1],d):a[1]})}function o(t,e,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var i=n.getAxisModel(t,e.componentIndex);i&&(r=n)})),r}},e.prototype._dispatchZoomAction=function(t){var e=[];G3(t,(function(t,n){e.push(b["clone"](t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){var e={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:Xp.color.backgroundTint}};return e},e}(F5),X3={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(S3(this.ecModel))}};function Z3(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}function q3(t,e){t.setIconStatus("back",O3(e)>1?"emphasis":"normal")}function $3(t,e,n,r,i){var a=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(a="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var o=new H3(Z3(t),e,{include:["grid"]}),s=o.makePanelOpts(i,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!a||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}cf("dataZoom",(function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var r=e.getModel(n),i=[],a=Z3(r),o=Qa(t,a);return G3(o.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),G3(o.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),i}function s(t,e,n){var a=t.componentIndex,o={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:W3+e+a};o[n]=a,i.push(o)}}));var K3=U3;function J3(t){t.registerComponentModel(U5),t.registerComponentView(K5),G5("saveAsImage",Q5),G5("magicType",i3),G5("dataView",x3),G5("dataZoom",K3),G5("restore",C3),TM(V5)}var Q3=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:Xp.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:Xp.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:Xp.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:Xp.color.tertiary,fontSize:14}},e}(Hp),t4=Q3;function e4(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function n4(t){if(x.domSupported)for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}var r4=n4(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),i4=n4(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function a4(t,e){if(!t)return e;e=Xd(e,!0);var n=t.indexOf(e);return t=-1===n?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function o4(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?e?n[e]:n:null}var s4=a4(i4,"transition"),l4=a4(r4,"transform"),u4="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(x.transform3dSupported?"will-change:transform;":"");function c4(t){return t="left"===t?"right":"right"===t?"left":"top"===t?"bottom":"top",t}function h4(t,e,n){if(!Object(b["isString"])(n)||"inside"===n)return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=rp(e);var a,o=c4(n),s=Math.max(1.5*Math.round(i),6),l="",u=l4+":";Object(b["indexOf"])(["left","right"],o)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(a="left"===o?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(a="top"===o?225:45)+"deg)");var c=a*Math.PI/180,h=s+i,d=h*Math.abs(Math.cos(c))+h*Math.abs(Math.sin(c)),p=Math.round(100*((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-h)/2))/100;l+=";"+o+":-"+p+"px";var f=e+" solid "+i+"px;",g=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+f,"border-right:"+f,"background-color:"+r+";"];return'<div style="'+g.join("")+'"></div>'}function d4(t,e,n){var r="cubic-bezier(0.23,1,0.32,1)",i="",a="";return n&&(i=" "+t/2+"s "+r,a="opacity"+i+",visibility"+i),e||(i=" "+t+"s "+r,a+=(a.length?",":"")+(x.transformSupported?""+l4+i:",left"+i+",top"+i)),s4+":"+a}function p4(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!x.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=x.transform3dSupported,o="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return n?"top:0;left:0;"+l4+":"+o+";":[["top",0],["left",0],[r4,o]]}function f4(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont());var i=Object(b["retrieve2"])(t.get("lineHeight"),Math.round(3*n/2));n&&e.push("line-height:"+i+"px");var a=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,s=t.get("textShadowOffsetX")||0,l=t.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),Object(b["each"])(["decoration","align"],(function(n){var r=t.get(n);r&&e.push("text-"+n+":"+r)})),e.join(";")}function g4(t,e,n,r){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),h=t.getModel("textStyle"),d=ev(t,"html"),p=u+"px "+c+"px "+s+"px "+l;return i.push("box-shadow:"+p),e&&a>0&&i.push(d4(a,n,r)),o&&i.push("background-color:"+o),Object(b["each"])(["width","color","radius"],(function(e){var n="border-"+e,r=Xd(n),a=t.get(r);null!=a&&i.push(n+":"+a+("color"===e?"":"px"))})),i.push(f4(h)),null!=d&&i.push("padding:"+Zd(d).join("px ")+"px"),i.join(";")+";"}function y4(t,e,n,r,i){var a=e&&e.painter;if(n){var o=a&&a.getViewportRoot();o&&nt(t,o,n,r,i)}else{t[0]=r,t[1]=i;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 v4=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,x.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=t.getZr(),i=e.appendTo,a=i&&(Object(b["isString"])(i)?document.querySelector(i):Object(b["isDom"])(i)?i:Object(b["isFunction"])(i)&&i(t.getDom()));y4(this._styleCoord,r,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(n),this._api=t,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(t){if(t=t||window.event,!o._enterable){var e=r.handler,n=r.painter.getViewportRoot();vt(n,t,!0),e.dispatch("mousemove",t)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=o4(e,"position"),r=e.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=u4+g4(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+p4(i[0],i[1],!0)+"border-color:"+rp(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,n,r,i){var a=this.el;if(null!=t){var o="";if(Object(b["isString"])(i)&&"item"===n.get("trigger")&&!e4(n)&&(o=h4(n,r,i)),Object(b["isString"])(t))a.innerHTML=t+o;else if(t){a.innerHTML="",Object(b["isArray"])(t)||(t=[t]);for(var s=0;s<t.length;s++)Object(b["isDom"])(t[s])&&t[s].parentNode!==a&&a.appendChild(t[s]);if(o&&a.childNodes.length){var l=document.createElement("div");l.innerHTML=o,a.appendChild(l)}}}else a.innerHTML=""},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(y4(n,this._zr,this._container,t,e),null!=n[0]&&null!=n[1]){var r=this.el.style,i=p4(n[0],n[1]);Object(b["each"])(i,(function(t){r[t[0]]=t[1]}))}}},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,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",x.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout((function(){return t._longHide=!0}),500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Object(b["bind"])(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;rt(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var n=e.parentNode;n&&n.removeChild(e)}this.el=this._container=null},t}(),m4=v4,x4=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),w4(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,n,r,i){var a=this;b["isObject"](t)&&Cf(""),this.el&&this._zr.remove(this.el);var o=n.getModel("textStyle");this.el=new _u({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:ev(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),b["each"](["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],(function(t){a.el.style[t]=n.get(t)})),b["each"](["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],(function(t){a.el.style[t]=o.get(t)||0})),this._zr.add(this.el);var s=this;this.el.on("mouseover",(function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0})),this.el.on("mouseout",(function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1}))},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=_4(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 r=this._styleCoord;w4(r,this._zr,t,e),t=r[0],e=r[1];var i=n.style,a=b4(i.borderWidth||0),o=_4(i);n.x=t+a+o.left,n.y=e+a+o.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||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(b["bind"](this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function b4(t){return Math.max(0,t)}function _4(t){var e=b4(t.shadowBlur||0),n=b4(t.shadowOffsetX||0),r=b4(t.shadowOffsetY||0);return{left:b4(e-n),right:b4(e+n),top:b4(e-r),bottom:b4(e+r)}}function w4(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var S4=x4,M4=new nu({shape:{x:-1,y:-1,width:2,height:2}}),O4=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(t,e){if(!x.node&&e.getDom()){var n=t.getComponent("tooltip"),r=this._renderMode=so(n.get("renderMode"));this._tooltipContent="richText"===r?new S4(e):new m4(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,n){if(!x.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n;var r=this._tooltipContent;r.update(t),r.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?xb(this,"_updatePosition",50,"fixRate"):bb(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,e=t.get("triggerOn");NQ("itemTooltip",this._api,Object(b["bind"])((function(t,n,r){"none"!==e&&(e.indexOf(t)>=0?this._tryShow(n,r):"leave"===t&&this._hide(r))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,r=t.get("triggerOn");if("axis"!==t.get("trigger")&&(this._lastDataByCoordSys=null,this._cbParamsList=null),null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){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,r){if(r.from!==this.uid&&!x.node&&n.getDom()){var i=T4(r,n);this._ticket="";var a=r.dataByCoordSys,o=L4(r,e,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=M4;l.x=r.x,l.y=r.y,l.update(),wu(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,r))return;var u=YQ(r,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(T4(r,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,r){var i=r.seriesIndex,a=r.dataIndex,o=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=a&&null!=o){var s=e.getSeriesByIndex(i);if(s){var l=s.getData(),u=I4([l.getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:a,position:r.position}),!0}}},e.prototype._tryShow=function(t,e){var n=t.target,r=this._tooltipModel;if(r){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var a,o,s=wu(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,this._cbParamsList=null,h_(n,(function(t){if(t.tooltipDisabled)return a=o=null,!0;a||o||(null!=wu(t).dataIndex?a=t:null!=wu(t).tooltipConfig&&(o=t))}),!0),a?this._showSeriesItemTooltip(t,a,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=Object(b["bind"])(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,r=this._tooltipModel,i=[e.offsetX,e.offsetY],a=I4([e.tooltipOption],r),o=this._renderMode,s=[],l=Fy("section",{blocks:[],noHeader:!0}),u=[],c=new nv;Object(b["each"])(t,(function(t){Object(b["each"])(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value,a=e.axis,h=a.scale.parse(i);if(e&&null!=i){var d=xQ(i,a,n,t.seriesDataIndices,t.valueLabelOpt),p=Fy("section",{header:d,noHeader:!Object(b["trim"])(d),sortBlocks:!0,blocks:[]});l.blocks.push(p),Object(b["each"])(t.seriesDataIndices,(function(i){var a=n.getSeriesByIndex(i.seriesIndex),l=i.dataIndexInside,f=a.getDataParams(l);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=YI(e.axis,{value:h}),f.axisValueLabel=d,f.marker=c.makeTooltipMarker("item",rp(f.color),o);var g=$g(a.formatTooltip(l,!0,null)),y=g.frag;if(y){var v=I4([a],r).get("valueFormatter");p.blocks.push(v?Object(b["extend"])({valueFormatter:v},y):y)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var h=e.position,d=a.get("order"),p=Xy(l,c,o,d,n.get("useUTC"),a.get("textStyle"));p&&u.unshift(p);var f="richText"===o?"\n\n":"<br/>",g=u.join(f);this._showOrMove(a,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(a,h,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,g,s,Math.random()+"",i[0],i[1],h,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var r=this._ecModel,i=wu(e),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,l=i.dataIndex,u=i.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,p=I4([c.getItemModel(l),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),y=new nv;g.marker=y.makeTooltipMarker("item",rp(g.color),h);var v=$g(s.formatTooltip(l,!1,u)),m=p.get("order"),x=p.get("valueFormatter"),_=v.frag,w=_?Xy(x?Object(b["extend"])({valueFormatter:x},_):_,y,h,m,r.get("useUTC"),p.get("textStyle")):v.text,S="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,w,g,S,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:a,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var r="html"===this._renderMode,i=wu(e),a=i.tooltipConfig,o=a.option||{},s=o.encodeHTMLContent;if(Object(b["isString"])(o)){var l=o;o={content:l,formatter:l},s=!0}s&&r&&o.content&&(o=Object(b["clone"])(o),o.content=ct(o.content));var u=[o],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:o.content});var h=t.positionDefault,d=I4(u,this._tooltipModel,h?{position:h}:null),p=d.get("content"),f=Math.random()+"",g=new nv;this._showOrMove(d,(function(){var n=Object(b["clone"])(d.get("formatterParams")||{});this._showTooltipContent(d,p,n,f,t.offsetX,t.offsetY,t.position,e,g)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,r,i,a,o,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");o=o||t.get("position");var h=e,d=this._getNearestPoint([i,a],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(c)if(Object(b["isString"])(c)){var f=t.ecModel.get("useUTC"),g=Object(b["isArray"])(n)?n[0]:n,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=c,y&&(h=Cd(g.axisValue,h,f)),h=Jd(h,n,!0)}else if(Object(b["isFunction"])(c)){var v=Object(b["bind"])((function(e,r){e===this._ticket&&(u.setContent(r,l,t,p,o),this._updatePosition(t,o,i,a,u,n,s))}),this);this._ticket=r,h=c(n,r,v)}else h=c;u.setContent(h,l,t,p,o),u.show(t,p),this._updatePosition(t,o,i,a,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,r,i){return"axis"===n||Object(b["isArray"])(e)?{color:r||i}:Object(b["isArray"])(e)?void 0:{color:r||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,r,i,a,o){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=o&&o.getBoundingRect().clone();if(o&&d.applyTransform(o.transform),Object(b["isFunction"])(e)&&(e=e([n,r],a,i.el,d,{viewSize:[s,l],contentSize:u.slice()})),Object(b["isArray"])(e))n=Zi(e[0],s),r=Zi(e[1],l);else if(Object(b["isObject"])(e)){var p=e;p.width=u[0],p.height=u[1];var f=Ap(p,{width:s,height:l});n=f.x,r=f.y,c=null,h=null}else if(Object(b["isString"])(e)&&o){var g=D4(e,d,u,t.get("borderWidth"));n=g[0],r=g[1]}else{g=C4(n,r,i,s,l,c?null:20,h?null:20);n=g[0],r=g[1]}if(c&&(n-=k4(c)?u[0]/2:"right"===c?u[0]:0),h&&(r-=k4(h)?u[1]/2:"bottom"===h?u[1]:0),e4(t)){g=A4(n,r,i,s,l);n=g[0],r=g[1]}i.moveTo(n,r)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===t.length;return i&&Object(b["each"])(n,(function(n,a){var o=n.dataByAxis||[],s=t[a]||{},l=s.dataByAxis||[];i=i&&o.length===l.length,i&&Object(b["each"])(o,(function(t,n){var a=l[n]||{},o=t.seriesDataIndices||[],s=a.seriesDataIndices||[];i=i&&t.value===a.value&&t.axisType===a.axisType&&t.axisId===a.axisId&&o.length===s.length,i&&Object(b["each"])(o,(function(t,e){var n=s[e];i=i&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),r&&Object(b["each"])(t.seriesDataIndices,(function(t){var n=t.seriesIndex,a=e[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!x.node&&e.getDom()&&(bb(this,"_updatePosition"),this._tooltipContent.dispose(),HQ("itemTooltip",e),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e}(xv);function I4(t,e,n){var r,i=e.ecModel;n?(r=new Vh(n,i,i),r=new Vh(e.option,r,i)):r=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof Vh&&(o=o.get("tooltip",!0)),Object(b["isString"])(o)&&(o={formatter:o}),o&&(r=new Vh(o,r,i)))}return r}function T4(t,e){return t.dispatchAction||Object(b["bind"])(e.dispatchAction,e)}function C4(t,e,n,r,i,a,o){var s=n.getSize(),l=s[0],u=s[1];return null!=a&&(t+l+a+2>r?t-=l+a:t+=a),null!=o&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function A4(t,e,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,r)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function D4(t,e,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+o;break;case"left":s=e.x-i-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}function k4(t){return"center"===t||"middle"===t}function L4(t,e,n){var r=to(t).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var a=ro(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s,l=n.getViewOfComponentModel(o);return l.group.traverse((function(e){var n=wu(e).tooltipConfig;if(n&&n.name===t.name)return s=e,!0})),s?{componentMainType:i,componentIndex:o.componentIndex,el:s}:void 0}}}var P4=O4;function j4(t){TM(i0),t.registerComponentModel(t4),t.registerComponentView(P4),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},b["noop"]),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},b["noop"])}var R4=["rect","polygon","keep","clear"];function N4(t,e){var n=Aa(t?t.brush:[]);if(n.length){var r=[];b["each"](n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(r=r.concat(e))}));var i=t&&t.toolbox;b["isArray"](i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),Mo(s,(function(t){return t+""}),null),e&&!s.length&&s.push.apply(s,R4)}}var E4=b["each"];function z4(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function B4(t,e,n){var r={};return E4(e,(function(e){var a=r[e]=i();E4(t[e],(function(t,r){if(CG.isValidType(r)){var i={type:r,visual:t};n&&n(i,e),a[r]=new CG(i),"opacity"===r&&(i=b["clone"](i),i.type="colorAlpha",a.__hidden.__alphaForOpacity=new CG(i))}}))})),r;function i(){var t=function(){};t.prototype.__hidden=t.prototype;var e=new t;return e}}function V4(t,e,n){var r;b["each"](n,(function(t){e.hasOwnProperty(t)&&z4(e[t])&&(r=!0)})),r&&b["each"](n,(function(n){e.hasOwnProperty(n)&&z4(e[n])?t[n]=b["clone"](e[n]):delete t[n]}))}function F4(t,e,n,r,i,a){var o,s={};function l(t){return a_(n,o,t)}function u(t,e){s_(n,o,t,e)}function c(t,c){o=null==a?t:c;var h=n.getRawDataItem(o);if(!h||!1!==h.visualMap)for(var d=r.call(i,t),p=e[d],f=s[d],g=0,y=f.length;g<y;g++){var v=f[g];p[v]&&p[v].applyVisual(t,l,u)}}b["each"](t,(function(t){var n=CG.prepareVisualTypes(e[t]);s[t]=n})),null==a?n.each(c):n.each([a],c)}function H4(t,e,n,r){var i={};return b["each"](t,(function(t){var n=CG.prepareVisualTypes(e[t]);i[t]=n})),{progress:function(t,a){var o,s;function l(t){return a_(a,s,t)}function u(t,e){s_(a,s,t,e)}null!=r&&(o=a.getDimensionIndex(r));var c=a.getStore();while(null!=(s=t.next())){var h=a.getRawDataItem(s);if(!h||!1!==h.visualMap)for(var d=null!=r?c.get(o,s):s,p=n(d),f=e[p],g=i[p],y=0,v=g.length;y<v;y++){var m=g[y];f[m]&&f[m].applyVisual(d,l,u)}}}}}function G4(t){var e=t.brushType,n={point:function(r){return W4[e].point(r,n,t)},rect:function(r){return W4[e].rect(r,n,t)}};return n}var W4={lineX:Y4(0),lineY:Y4(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&sC(n.range,t[0],t[1])},rect:function(t,e,n){var r=n.range;if(!t||r.length<=1)return!1;var i=t.x,a=t.y,o=t.width,s=t.height,l=r[0];return!!(sC(r,i,a)||sC(r,i+o,a)||sC(r,i,a+s)||sC(r,i+o,a+s)||ue.create(t).contain(l[0],l[1])||zx(i,a,i+o,a,r)||zx(i,a,i,a+s,r)||zx(i+o,a,i+o,a+s,r)||zx(i,a+s,i+o,a+s,r))||void 0}}};function Y4(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,r){if(e){var i=r.range,a=e[t];return U4(a,i)}},rect:function(r,i,a){if(r){var o=a.range,s=[r[e[t]],r[e[t]]+r[n[t]]];return s[1]<s[0]&&s.reverse(),U4(s[0],o)||U4(s[1],o)||U4(o[0],s)||U4(o[1],s)}}}}function U4(t,e){return e[0]<=t&&t<=e[1]}var X4=["inBrush","outOfBrush"],Z4="__ecBrushSelect",q4="__ecInBrushSelectEvent";function $4(t){t.eachComponent({mainType:"brush"},(function(e){var n=e.brushTargetManager=new H3(e.option,t);n.setInputRanges(e.areas,t)}))}var K4=Do(J4);function J4(t,e,n){var r,i,a=[];t.eachComponent({mainType:"brush"},(function(t){n&&"takeGlobalCursor"===n.type&&t.setBrushOption("brush"===n.key?n.brushOption:{brushType:!1})})),$4(t),t.eachComponent({mainType:"brush"},(function(e,n){var o={brushId:e.id,brushIndex:n,brushName:e.name,areas:b["clone"](e.areas),selected:[]};a.push(o);var s=e.option,l=s.brushLink,u=[],c=[],h=[],d=!1;n||(r=s.throttleType,i=s.throttleDelay);var p=b["map"](e.areas,(function(t){var e=r8[t.brushType],n=b["defaults"]({boundingRect:e?e(t):void 0},t);return n.selectors=G4(n),n})),f=B4(e.option,X4,(function(t){t.mappingMethod="fixed"}));function g(t){return"all"===l||!!u[t]}function y(t){return!!t.length}function v(t,e){var n=t.coordinateSystem;d=d||n.hasAxisBrushed(),g(e)&&n.eachActiveState(t.getData(),(function(t,e){"active"===t&&(c[e]=1)}))}function m(n,r,i){if(n.brushSelector&&!n8(e,r)&&(b["each"](p,(function(r){e.brushTargetManager.controlSeries(r,n,t)&&i.push(r),d=d||y(i)})),g(r)&&y(i))){var a=n.getData();a.each((function(t){e8(n,i,a,t)&&(c[t]=1)}))}}b["isArray"](l)&&b["each"](l,(function(t){u[t]=1})),t.eachSeries((function(t,e){var n=h[e]=[];"parallel"===t.subType?v(t,e):m(t,e,n)})),t.eachSeries((function(t,e){var n={seriesId:t.id,seriesIndex:e,seriesName:t.name,dataIndex:[]};o.selected.push(n);var r=h[e],i=t.getData(),a=g(e)?function(t){return c[t]?(n.dataIndex.push(i.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(e){return e8(t,r,i,e)?(n.dataIndex.push(i.getRawIndex(e)),"inBrush"):"outOfBrush"};(g(e)?d:y(r))&&F4(X4,f,i,a)}))})),Q4(e,r,i,a,n)}function Q4(t,e,n,r,i){if(i){var a=t.getZr();if(!a[q4]){a[Z4]||(a[Z4]=t8);var o=xb(a,Z4,n,e);o(t,r)}}}function t8(t,e){if(!t.isDisposed()){var n=t.getZr();n[q4]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[q4]=!1}}function e8(t,e,n,r){for(var i=0,a=e.length;i<a;i++){var o=e[i];if(t.brushSelector(r,n,o.selectors,o))return!0}}function n8(t,e){var n=t.option.seriesIndex;return null!=n&&"all"!==n&&(b["isArray"](n)?b["indexOf"](n,e)<0:e!==n)}var r8={rect:function(t){return i8(t.range)},polygon:function(t){for(var e,n=t.range,r=0,i=n.length;r<i;r++){e=e||[po(),po()];var a=n[r];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&i8(e)}};function i8(t){return new ue(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var a8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new NX(e.getZr())).on("brush",b["bind"](this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,r){this.model=t,this._updateController(t,e,n,r)},e.prototype.updateTransform=function(t,e,n,r){$4(e),this._updateController(t,e,n,r)},e.prototype.updateVisual=function(t,e,n,r){this.updateTransform(t,e,n,r)},e.prototype.updateView=function(t,e,n,r){this._updateController(t,e,n,r)},e.prototype._updateController=function(t,e,n,r){(!r||r.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:b["clone"](n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:b["clone"](n),$from:e})},e.type="brush",e}(xv),o8=a8,s8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return f(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&V4(n,t,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:this.option.defaultOutOfBrushColor},r.hasOwnProperty("liftZ")||(r.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=b["map"](t,(function(t){return l8(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=l8(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:Xp.color.backgroundTint,borderColor:Xp.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:Xp.color.disabled},e}(Hp);function l8(t,e){return b["merge"]({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Vh(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var u8=s8,c8=["rect","polygon","lineX","lineY","keep","clear"],h8=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f(e,t),e.prototype.render=function(t,e,n){var r,i,a;e.eachComponent({mainType:"brush"},(function(t){r=t.brushType,i=t.brushOption.brushMode||"single",a=a||!!t.areas.length})),this._brushType=r,this._brushMode=i,b["each"](t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===i:"clear"===e?a:e===r)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return b["each"](t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var r=this._brushType,i=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},e.getDefaultOption=function(t){var e={show:!0,type:c8.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return e},e}(F5),d8=h8;function p8(t){t.registerComponentView(o8),t.registerComponentModel(u8),t.registerPreprocessor(N4),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,K4),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(t,e){e.eachComponent({mainType:"brush",query:t},(function(e){e.setAreas(t.areas)}))})),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},b["noop"]),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},b["noop"]),G5("brush",d8)}var f8=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 f(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:Xp.size.m,backgroundColor:Xp.color.transparent,borderColor:Xp.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:Xp.color.primary},subtextStyle:{fontSize:12,color:Xp.color.quaternary}},e}(Hp),g8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var r=this.group,i=t.getModel("textStyle"),a=t.getModel("subtextStyle"),o=t.get("textAlign"),s=b["retrieve2"](t.get("textBaseline"),t.get("textVerticalAlign")),l=new _u({style:gh(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new _u({style:gh(a,{text:c,fill:a.getTextColor(),y:u.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(){ip(d,"_"+t.get("target"))})),p&&h.on("click",(function(){ip(p,"_"+t.get("subtarget"))})),wu(l).eventData=wu(h).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,r.add(l),c&&r.add(h);var g=r.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var v=Lp(t,n),m=Ap(y,v.refContainer,t.get("padding"));o||(o=t.get("left")||t.get("right"),"middle"===o&&(o="center"),"right"===o?m.x+=m.width:"center"===o&&(m.x+=m.width/2)),s||(s=t.get("top")||t.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?m.y+=m.height:"middle"===s&&(m.y+=m.height/2),s=s||"top"),r.x=m.x,r.y=m.y,r.markRedraw();var x={align:o,verticalAlign:s};l.setStyle(x),h.setStyle(x),g=r.getBoundingRect();var _=m.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var S=new nu({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});r.add(S)}},e.type="title",e}(xv);function y8(t){t.registerComponentModel(f8),t.registerComponentView(g8)}var v8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return f(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],r=e.axisType,i=this._names=[];"category"===r?(t=[],Object(b["each"])(n,(function(e,n){var r,a=Ga(La(e),"");Object(b["isObject"])(e)?(r=Object(b["clone"])(e),r.value=n):r=n,t.push(r),i.push(a)}))):t=n;var a={category:"ordinal",time:"time",value:"number"}[r]||"number",o=this._data=new sO([{name:"value",type:a}],this);o.initData(t,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:Xp.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:Xp.color.secondary},data:[]},e}(Hp),m8=v8,x8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="timeline.slider",e.defaultOption=Yh(m8.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:Xp.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:Xp.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:Xp.color.tertiary},itemStyle:{color:Xp.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:Xp.color.accent50,borderColor:Xp.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:Xp.color.accent50,borderColor:Xp.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:Xp.color.accent60},itemStyle:{color:Xp.color.accent60,borderColor:Xp.color.accent60},controlStyle:{color:Xp.color.accent70,borderColor:Xp.color.accent70}},progress:{lineStyle:{color:Xp.color.accent30},itemStyle:{color:Xp.color.accent40}},data:[]}),e}(m8);Object(b["mixin"])(x8,qg.prototype);var b8=x8,_8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="timeline",e}(xv),w8=_8,S8=function(t){function e(e,n,r,i){var a=t.call(this,e,n,r)||this;return a.type=i||"value",a}return f(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(JC),M8=S8,O8=Math.PI,I8=Ka(),T8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var r=this._layout(t,n),i=this._createGroup("_mainGroup"),a=this._createGroup("_labelGroup"),o=this._axis=this._createAxis(r,t);t.formatTooltip=function(t){var e=o.scale.getLabel({value:t});return Fy("nameValue",{noName:!0,value:e})},Object(b["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](r,i,o,t)}),this),this._renderAxisLabel(r,a,o,t),this._position(r,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,r=t.get(["label","position"]),i=t.get("orient"),a=C8(t,e);n=null==r||"auto"===r?"horizontal"===i?a.y+a.height/2<e.getHeight()/2?"-":"+":a.x+a.width/2<e.getWidth()/2?"+":"-":Object(b["isString"])(r)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[i][r]:r;var o,s,l,u={horizontal:"center",vertical:n>=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:O8/2},d="vertical"===i?a.height:a.width,p=t.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,y=f?p.get("itemGap"):0,v=g+y,m=t.get(["label","rotate"])||0;m=m*O8/180;var x=p.get("position",!0),_=f&&p.get("showPlayBtn",!0),w=f&&p.get("showPrevBtn",!0),S=f&&p.get("showNextBtn",!0),M=0,O=d;"left"===x||"bottom"===x?(_&&(o=[0,0],M+=v),w&&(s=[M,0],M+=v),S&&(l=[O-g,0],O-=v)):(_&&(o=[O-g,0],O-=v),w&&(s=[0,0],M+=v),S&&(l=[O-g,0],O-=v));var I=[M,O];return t.get("inverse")&&I.reverse(),{viewRect:a,mainLength:d,orient:i,rotation:h[i],labelRotation:m,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[i],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[i],playPosition:o,prevBtnPosition:s,nextBtnPosition:l,axisExtent:I,controlSize:g,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,r=this._labelGroup,i=t.viewRect;if("vertical"===t.orient){var a=Tt(),o=i.x,s=i.y+i.height;kt(a,a,[-o,-s]),Lt(a,a,-O8/2),kt(a,a,[o,s]),i=i.clone(),i.applyTransform(a)}var l=y(i),u=y(n.getBoundingRect()),c=y(r.getBoundingRect()),h=[n.x,n.y],d=[r.x,r.y];d[0]=h[0]=l[0][0];var p=t.labelPosOpt;if(null==p||Object(b["isString"])(p)){var f="+"===p?0:1;v(h,u,l,1,f),v(d,c,l,1,1-f)}else{f=p>=0?0:1;v(h,u,l,1,f),d[1]=h[1]+p}function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,r,i){t[r]+=n[r][i]-e[r][i]}n.setPosition(h),r.setPosition(d),n.rotation=r.rotation=t.rotation,g(n),g(r)},e.prototype._createAxis=function(t,e){var n=e.getData(),r=e.get("axisType")||e.get("type");"category"!==r&&"time"!==r&&(r="value");var i=EI(e,r,!1);i.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var a=n.getDataExtent("value");i.setExtent(a[0],a[1]),JT(i,{fixMinMax:[!0,!0]});var o=new M8("value",i,t.axisExtent,r);return o.model=e,o},e.prototype._createGroup=function(t){var e=this[t]=new vi;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var a=new Cm({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(b["extend"])({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(a);var o=this._progressLine=new Cm({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(b["defaults"])({lineCap:"round",lineWidth:a.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(o)}},e.prototype._renderAxisTick=function(t,e,n,r){var i=this,a=r.getData(),o=n.scale.getTicks();this._tickSymbols=[],Object(b["each"])(o,(function(t){var o=n.dataToCoord(t.value),s=a.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:o,y:0,onclick:Object(b["bind"])(i._changeTimeline,i,t.value)},d=D8(s,l,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),Bc(d);var p=wu(d);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=r):p.dataIndex=p.dataModel=null,i._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,n,r){var i=this,a=n.getLabelModel();if(a.get("show")){var o=r.getData(),s=n.getViewLabels();this._tickLabels=[],Object(b["each"])(s,(function(r){if(!r.tick.offInterval){var a=r.tick.value,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(a),d=new _u({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:Object(b["bind"])(i._changeTimeline,i,a),silent:!1,style:gh(l,{text:r.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=gh(u),d.ensureState("progress").style=gh(c),e.add(d),Bc(d),I8(d).dataIndex=a,i._tickLabels.push(d)}}))}},e.prototype._renderControl=function(t,e,n,r){var i=t.controlSize,a=t.rotation,o=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),l=r.getPlayState(),u=r.get("inverse",!0);function c(t,n,l,u){if(t){var c=Zr(Object(b["retrieve2"])(r.get(["controlStyle",n+"BtnSize"]),i),i),h=[0,-c/2,c,c],d=A8(r,n+"Icon",h,{x:t[0],y:t[1],originX:i/2,originY:0,rotation:u?-a:0,rectHover:!0,style:o,onclick:l});d.ensureState("emphasis").style=s,e.add(d),Bc(d)}}c(t.nextBtnPosition,"next",Object(b["bind"])(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",Object(b["bind"])(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",Object(b["bind"])(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,r){var i=r.getData(),a=r.getCurrentIndex(),o=i.getItemModel(a).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=Object(b["bind"])(s._handlePointerDrag,s),t.ondragend=Object(b["bind"])(s._handlePointerDragend,s),k8(t,s._progressLine,a,n,r,!0)},onUpdate:function(t){k8(t,s._progressLine,a,n,r)}};this._currentPointer=D8(o,o,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],r=this._axis,i=ea(r.getExtent().slice());n>i[1]&&(n=i[1]),n<i[0]&&(n=i[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var a=this._progressLine;a&&(a.shape.x2=n,a.dirty());var o=this._findNearestTick(n),s=this.model;(e||o!==s.getCurrentIndex()&&s.get("realtime"))&&this._changeTimeline(o)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout((function(){var e=t.model;t._changeTimeline(e.getCurrentIndex()+(e.get("rewind",!0)?-1:1))}),this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var e=this._mainGroup.getLocalTransform();return Dx(t,e,!0)},e.prototype._findNearestTick=function(t){var e,n=this.model.getData(),r=1/0,i=this._axis;return n.each(["value"],(function(n,a){var o=i.dataToCoord(n),s=Math.abs(o-t);s<r&&(r=s,e=a)})),e},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var r=0;r<e.length;r++)e&&e[r]&&e[r].toggleState("progress",r<t);if(n)for(r=0;r<n.length;r++)n&&n[r]&&n[r].toggleState("progress",I8(n[r]).dataIndex<=t)},e.type="timeline.slider",e}(w8);function C8(t,e){return Ap(t.getBoxLayoutParams(),Lp(t,e).refContainer,t.get("padding"))}function A8(t,e,n,r){var i=r.style,a=Ex(t.get(["controlStyle",e]),r||{},new ue(n[0],n[1],n[2],n[3]));return i&&a.setStyle(i),a}function D8(t,e,n,r,i,a){var o=e.get("color");if(i)i.setColor(o),n.add(i),a&&a.onUpdate(i);else{var s=t.get("symbol");i=z_(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),n.add(i),a&&a.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),r=Object(b["merge"])({rectHover:!0,z2:100},r,!0);var u=B_(t.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=V_(t.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var h=t.get("symbolRotate");return r.rotation=(h||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function k8(t,e,n,r,i,a){if(!t.dragging){var o=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(a||!o.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var L8=T8;function P8(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},(function(t,e,n){var r=e.getComponent("timeline");return r&&null!=t.currentIndex&&(r.setCurrentIndex(t.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.getPlayState()&&(r.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:r.get("replaceMerge",!0)}),Object(b["defaults"])({currentIndex:r.option.currentIndex},t)})),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},(function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)}))}function j8(t){var e=t&&t.timeline;b["isArray"](e)||(e=e?[e]:[]),b["each"](e,(function(t){t&&R8(t)}))}function R8(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),N8(t),E8(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});E8(r,"position")||(r.position=t.controlPosition),"none"!==r.position||E8(r,"show")||(r.show=!1,delete r.position),delete t.controlPosition}b["each"](t.data||[],(function(t){b["isObject"](t)&&!b["isArray"](t)&&(!E8(t,"value")&&E8(t,"name")&&(t.value=t.name),N8(t))}))}function N8(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},i=r.normal||(r.normal={}),a={normal:1,emphasis:1};b["each"](r,(function(t,e){a[e]||E8(i,e)||(i[e]=t)})),n.label&&!E8(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function E8(t,e){return t.hasOwnProperty(e)}function z8(t){t.registerComponentModel(b8),t.registerComponentView(L8),t.registerSubTypeDefaulter("timeline",(function(){return"slider"})),P8(t),t.registerPreprocessor(j8)}function B8(t,e){if(!t)return!1;for(var n=Object(b["isArray"])(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function V8(t){Da(t,"label",["show"])}var F8=Ka(),H8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n.preventAutoZ=!0,n}return f(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(x.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,r){var i=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),a=F8(t)[i];n&&n.data?(a?a._mergeOption(n,e,!0):(r&&V8(n),b["each"](n.data,(function(t){t instanceof Array?(V8(t[0]),V8(t[1])):V8(t)})),a=this.createMarkerModelFromSeries(n,this,e),b["extend"](a,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),a.__hostSeries=t),F8(t)[i]=a):F8(t)[i]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),a=r.getName(t);return Fy("section",{header:this.name,blocks:[Fy("nameValue",{name:a,value:i,noName:!a,noValue:null==i})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,e){var n=qg.prototype.getDataParams.call(this,t,e),r=this.__hostSeries;return r&&(n.seriesId=r.id,n.seriesName=r.name,n.seriesType=r.subType),n},e.getMarkerModelFromSeries=function(t,e){return F8(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(Hp);b["mixin"](H8,qg.prototype);var G8=H8,W8=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(G8),Y8=W8;function U8(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function X8(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function Z8(t,e,n,r,i,a,o){var s=[],l=mO(e,i),u=l?e.getCalculationInfo("stackResultDimension"):i,c=n6(e,u,t),h=e.hostModel,d=h.indicesOfNearest(n,u,c)[0];s[a]=e.get(r,d),s[o]=e.get(u,d);var p=e.get(i,d),f=na(e.get(i,d));return f=Math.min(f,20),f>=0&&(s[o]=+s[o].toFixed(f)),[s,p]}var q8={min:Object(b["curry"])(Z8,"min"),max:Object(b["curry"])(Z8,"max"),average:Object(b["curry"])(Z8,"average"),median:Object(b["curry"])(Z8,"median")};function $8(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,i=r&&r.dimensions;if(!X8(e)&&!Object(b["isArray"])(e.coord)&&Object(b["isArray"])(i)){var a=K8(e,n,r,t);if(e=Object(b["clone"])(e),e.type&&q8[e.type]&&a.baseAxis&&a.valueAxis){var o=Object(b["indexOf"])(i,a.baseAxis.dim),s=Object(b["indexOf"])(i,a.valueAxis.dim),l=q8[e.type](n,a.valueAxis.dim,a.baseDataDim,a.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null!=e.coord&&Object(b["isArray"])(i))for(var u=e.coord,c=0;c<2;c++)q8[u[c]]&&(u[c]=n6(n,n.mapDimension(i[c]),u[c]));else{e.coord=[];var h=t.getBaseAxis();if(h&&e.type&&q8[e.type]){var d=r.getOtherAxis(h);d&&(e.value=n6(n,n.mapDimension(d.dim),e.type))}}return e}}function K8(t,e,n,r){var i={};return null!=t.valueIndex||null!=t.valueDim?(i.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(J8(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function J8(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function Q8(t,e){return!(t&&t.containData&&e.coord&&!U8(e))||t.containData(e.coord)}function t6(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!U8(e)&&!U8(n))||t.containZone(e.coord,n.coord)}function e6(t,e){return t?function(t,n,r,i){var a=i<2?t.coord&&t.coord[i]:t.value;return ty(a,e[i])}:function(t,n,r,i){return ty(t.value,e[i])}}function n6(t,e,n){if("average"===n){var r=0,i=0;return t.each(e,(function(t,e){isNaN(t)||(r+=t,i++)})),r/i}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var r6=Ka(),i6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.init=function(){this.markerGroupMap=Object(b["createHashMap"])()},e.prototype.render=function(t,e,n){var r=this,i=this.markerGroupMap;i.each((function(t){r6(t).keep=!1})),e.eachSeries((function(t){var i=G8.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)})),i.each((function(t){!r6(t).keep&&r.group.remove(t.group)})),a6(e,i,this.type)},e.prototype.markKeep=function(t){r6(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(b["each"])(t,(function(t){var r=G8.getMarkerModelFromSeries(t,n.type);if(r){var i=r.getData();i.eachItemGraphicEl((function(t){t&&(e?Mc(t):Oc(t))}))}}))},e.type="marker",e}(xv);function a6(t,e,n){t.eachSeries((function(t){var r=G8.getMarkerModelFromSeries(t,n),i=e.get(t.id);if(r&&i&&i.group){var a=Jx(r),o=a.z,s=a.zlevel;tb(i.group,o,s)}}))}var o6=i6;function s6(t,e,n){var r=e.coordinateSystem,i=n.getWidth(),a=n.getHeight(),o=r&&r.getArea&&r.getArea();t.each((function(n){var s,l=t.getItemModel(n),u="coordinate"===l.get("relativeTo"),c=u?o?o.width:0:i,h=u?o?o.height:0:a,d=u&&o?o.x:0,p=u&&o?o.y:0,f=Zi(l.get("x"),c)+d,g=Zi(l.get("y"),h)+p;if(isNaN(f)||isNaN(g)){if(e.getMarkerPosition)s=e.getMarkerPosition(t.getValues(t.dimensions,n));else if(r){var y=t.get(r.dimensions[0],n),v=t.get(r.dimensions[1],n);s=r.dataToPoint([y,v])}}else s=[f,g];isNaN(f)||(s[0]=f),isNaN(g)||(s[1]=g),t.setItemLayout(n,s)}))}var l6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=G8.getMarkerModelFromSeries(t,"markPoint");e&&(s6(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,a=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new bL),u=u6(i,t,e);e.setData(u),s6(e.getData(),t,r),u.each((function(t){var n=u.getItemModel(t),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),a=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(b["isFunction"])(r)||Object(b["isFunction"])(i)||Object(b["isFunction"])(a)||Object(b["isFunction"])(s)){var c=e.getRawValue(t),h=e.getDataParams(t);Object(b["isFunction"])(r)&&(r=r(c,h)),Object(b["isFunction"])(i)&&(i=i(c,h)),Object(b["isFunction"])(a)&&(a=a(c,h)),Object(b["isFunction"])(s)&&(s=s(c,h))}var d=n.getModel("itemStyle").getItemStyle(),p=n.get("z2"),f=o_(o,"color");d.fill||(d.fill=f),u.setItemVisual(t,{z2:Object(b["retrieve2"])(p,0),symbol:r,symbolSize:i,symbolRotate:a,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){wu(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(o6);function u6(t,e,n){var r;r=t?Object(b["map"])(t&&t.dimensions,(function(t){var n=e.getData(),r=n.getDimensionInfo(n.mapDimension(t))||{};return Object(b["extend"])(Object(b["extend"])({},r),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new sO(r,n),a=Object(b["map"])(n.get("data"),Object(b["curry"])($8,e));t&&(a=Object(b["filter"])(a,Object(b["curry"])(Q8,t)));var o=e6(!!t,r);return i.initData(a,null,o),i}var c6=l6;function h6(t){t.registerComponentModel(Y8),t.registerComponentView(c6),t.registerPreprocessor((function(t){B8(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})}))}var d6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(G8),p6=d6,f6=Ka(),g6=function(t,e,n,r){var i,a=t.getData();if(Object(b["isArray"])(r))i=r;else{var o=r.type;if("min"===o||"max"===o||"average"===o||"median"===o||null!=r.xAxis||null!=r.yAxis){var s=void 0,l=void 0;if(null!=r.yAxis||null!=r.xAxis)s=e.getAxis(null!=r.yAxis?"y":"x"),l=Object(b["retrieve"])(r.yAxis,r.xAxis);else{var u=K8(r,a,e,t);s=u.valueAxis;var c=xO(a,u.valueDataDim);l=n6(a,c,o)}var h="x"===s.dim?0:1,d=1-h,p=Object(b["clone"])(r),f={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,f.coord[d]=1/0;var g=n.get("precision");g>=0&&Object(b["isNumber"])(l)&&(l=+l.toFixed(Math.min(g,20))),p.coord[h]=f.coord[h]=l,i=[p,f,{type:o,valueIndex:r.valueIndex,value:l}]}else i=[]}var y=[$8(t,i[0]),$8(t,i[1]),Object(b["extend"])({},i[2])];return y[2].type=y[2].type||null,Object(b["merge"])(y[2],y[0]),Object(b["merge"])(y[2],y[1]),y};function y6(t){return!isNaN(t)&&!isFinite(t)}function v6(t,e,n,r){var i=1-t,a=r.dimensions[t];return y6(e[i])&&y6(n[i])&&e[t]===n[t]&&r.getAxis(a).containData(e[t])}function m6(t,e){if("cartesian2d"===t.type){var n=e[0].coord,r=e[1].coord;if(n&&r&&(v6(1,n,r,t)||v6(0,n,r,t)))return!0}return Q8(t,e[0])&&Q8(t,e[1])}function x6(t,e,n,r,i){var a,o=r.coordinateSystem,s=t.getItemModel(e),l=Zi(s.get("x"),i.getWidth()),u=Zi(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)a=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=o.dimensions,h=t.get(c[0],e),d=t.get(c[1],e);a=o.dataToPoint([h,d])}if(UL(o,"cartesian2d")){var p=o.getAxis("x"),f=o.getAxis("y");c=o.dimensions;y6(t.get(c[0],e))?a[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):y6(t.get(c[1],e))&&(a[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];t.setItemLayout(e,a)}var b6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=G8.getMarkerModelFromSeries(t,"markLine");if(e){var r=e.getData(),i=f6(e).from,a=f6(e).to;i.each((function(e){x6(i,e,!0,t,n),x6(a,e,!1,t,n)})),r.each((function(t){r.setItemLayout(t,[i.getItemLayout(t),a.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,a=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,new qW);this.group.add(l.group);var u=_6(i,t,e),c=u.from,h=u.to,d=u.line;f6(e).from=c,f6(e).to=h,e.setData(d);var p=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),y=e.get("symbolOffset");function v(e,n,i){var a=e.getItemModel(n);x6(e,n,i,t,r);var s=a.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=o_(o,"color")),e.setItemVisual(n,{symbolKeepAspect:a.get("symbolKeepAspect"),symbolOffset:Object(b["retrieve2"])(a.get("symbolOffset",!0),y[i?0:1]),symbolRotate:Object(b["retrieve2"])(a.get("symbolRotate",!0),g[i?0:1]),symbolSize:Object(b["retrieve2"])(a.get("symbolSize"),f[i?0:1]),symbol:Object(b["retrieve2"])(a.get("symbol",!0),p[i?0:1]),style:s})}Object(b["isArray"])(p)||(p=[p,p]),Object(b["isArray"])(f)||(f=[f,f]),Object(b["isArray"])(g)||(g=[g,g]),Object(b["isArray"])(y)||(y=[y,y]),u.from.each((function(t){v(c,t,!0),v(h,t,!1)})),d.each((function(t){var e=d.getItemModel(t),n=e.getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]);var r=e.get("z2");null==n.stroke&&(n.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{z2:Object(b["retrieve2"])(r,0),fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:n})})),l.updateData(d),u.line.eachItemGraphicEl((function(t){wu(t).dataModel=e,t.traverse((function(t){wu(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(o6);function _6(t,e,n){var r;r=t?Object(b["map"])(t&&t.dimensions,(function(t){var n=e.getData(),r=n.getDimensionInfo(n.mapDimension(t))||{};return Object(b["extend"])(Object(b["extend"])({},r),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new sO(r,n),a=new sO(r,n),o=new sO([],n),s=Object(b["map"])(n.get("data"),Object(b["curry"])(g6,e,t,n));t&&(s=Object(b["filter"])(s,Object(b["curry"])(m6,t)));var l=e6(!!t,r);return i.initData(Object(b["map"])(s,(function(t){return t[0]})),null,l),a.initData(Object(b["map"])(s,(function(t){return t[1]})),null,l),o.initData(Object(b["map"])(s,(function(t){return t[2]}))),o.hasItemOption=!0,{from:i,to:a,line:o}}var w6=b6;function S6(t){t.registerComponentModel(p6),t.registerComponentView(w6),t.registerPreprocessor((function(t){B8(t.series,"markLine")&&(t.markLine=t.markLine||{})}))}var M6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,r){return new e(t,n,r)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(G8),O6=M6,I6=Ka(),T6=function(t,e,n,r){var i=r[0],a=r[1];if(i&&a){var o=$8(t,i),s=$8(t,a),l=o.coord,u=s.coord;l[0]=Object(b["retrieve"])(l[0],-1/0),l[1]=Object(b["retrieve"])(l[1],-1/0),u[0]=Object(b["retrieve"])(u[0],1/0),u[1]=Object(b["retrieve"])(u[1],1/0);var c=Object(b["mergeAll"])([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function C6(t){return!isNaN(t)&&!isFinite(t)}function A6(t,e,n,r){var i=1-t;return C6(e[i])&&C6(n[i])}function D6(t,e){var n=e.coord[0],r=e.coord[1],i={coord:n,x:e.x0,y:e.y0},a={coord:r,x:e.x1,y:e.y1};return UL(t,"cartesian2d")?!(!n||!r||!A6(1,n,r,t)&&!A6(0,n,r,t))||t6(t,i,a):Q8(t,i)||Q8(t,a)}function k6(t,e,n,r,i){var a,o=r.coordinateSystem,s=t.getItemModel(e),l=Zi(s.get(n[0]),i.getWidth()),u=Zi(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition){var c=t.getValues(["x0","y0"],e),h=t.getValues(["x1","y1"],e),d=o.clampData(c),p=o.clampData(h),f=[];"x0"===n[0]?f[0]=d[0]>p[0]?h[0]:c[0]:f[0]=d[0]>p[0]?c[0]:h[0],"y0"===n[1]?f[1]=d[1]>p[1]?h[1]:c[1]:f[1]=d[1]>p[1]?c[1]:h[1],a=r.getMarkerPosition(f,n,!0)}else{var g=t.get(n[0],e),y=t.get(n[1],e),v=[g,y];o.clampData&&o.clampData(v,v),a=o.dataToPoint(v,!0)}if(UL(o,"cartesian2d")){var m=o.getAxis("x"),x=o.getAxis("y");g=t.get(n[0],e),y=t.get(n[1],e);C6(g)?a[0]=m.toGlobalCoord(m.getExtent()["x0"===n[0]?0:1]):C6(y)&&(a[1]=x.toGlobalCoord(x.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(a[0]=l),isNaN(u)||(a[1]=u)}else a=[l,u];return a}var L6=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],P6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=G8.getMarkerModelFromSeries(t,"markArea");if(e){var r=e.getData();r.each((function(e){var i=Object(b["map"])(L6,(function(i){return k6(r,e,i,t,n)}));r.setItemLayout(e,i);var a=r.getItemGraphicEl(e);a.setShape("points",i)}))}}),this)},e.prototype.renderSeries=function(t,e,n,r){var i=t.coordinateSystem,a=t.id,o=t.getData(),s=this.markerGroupMap,l=s.get(a)||s.set(a,{group:new vi});this.group.add(l.group),this.markKeep(l);var u=j6(i,t,e);e.setData(u),u.each((function(e){var n=Object(b["map"])(L6,(function(n){return k6(u,e,n,t,r)})),a=i.getAxis("x").scale,s=i.getAxis("y").scale,l=a.getExtent(),c=s.getExtent(),h=[a.parse(u.get("x0",e)),a.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];ea(h),ea(d);var p=!(l[0]>h[1]||l[1]<h[0]||c[0]>d[1]||c[1]<d[0]),f=!p;u.setItemLayout(e,{points:n,allClipped:f});var g=u.getItemModel(e),y=g.getModel("itemStyle").getItemStyle(),v=g.get("z2"),m=o_(o,"color");y.fill||(y.fill=m,Object(b["isString"])(y.fill)&&(y.fill=bn["modifyAlpha"](y.fill,.4))),y.stroke||(y.stroke=m),u.setItemVisual(e,"style",y),u.setItemVisual(e,"z2",Object(b["retrieve2"])(v,0))})),u.diff(I6(l).data).add((function(t){var e=u.getItemLayout(t),n=u.getItemVisual(t,"z2");if(!e.allClipped){var r=new _m({z2:Object(b["retrieve2"])(n,0),shape:{points:e.points}});u.setItemGraphicEl(t,r),l.group.add(r)}})).update((function(t,n){var r=I6(l).data.getItemGraphicEl(n),i=u.getItemLayout(t),a=u.getItemVisual(t,"z2");i.allClipped?r&&l.group.remove(r):(r?nh(r,{z2:Object(b["retrieve2"])(a,0),shape:{points:i.points}},e,t):r=new _m({shape:{points:i.points}}),u.setItemGraphicEl(t,r),l.group.add(r))})).remove((function(t){var e=I6(l).data.getItemGraphicEl(t);l.group.remove(e)})).execute(),u.eachItemGraphicEl((function(t,n){var r=u.getItemModel(n),i=u.getItemVisual(n,"style");t.useStyle(u.getItemVisual(n,"style")),ph(t,fh(r),{labelFetcher:e,labelDataIndex:n,defaultText:u.getName(n)||"",inheritColor:Object(b["isString"])(i.fill)?bn["modifyAlpha"](i.fill,1):Xp.color.neutral99}),Yc(t,r),Fc(t,null,null,r.get(["emphasis","disabled"])),wu(t).dataModel=e})),I6(l).data=u,l.group.silent=e.get("silent")||t.get("silent")},e.type="markArea",e}(o6);function j6(t,e,n){var r,i,a=["x0","y0","x1","y1"];if(t){var o=Object(b["map"])(t&&t.dimensions,(function(t){var n=e.getData(),r=n.getDimensionInfo(n.mapDimension(t))||{};return Object(b["extend"])(Object(b["extend"])({},r),{name:t,ordinalMeta:null})}));i=Object(b["map"])(a,(function(t,e){return{name:t,type:o[e%2].type}})),r=new sO(i,n)}else i=[{name:"value",type:"float"}],r=new sO(i,n);var s=Object(b["map"])(n.get("data"),Object(b["curry"])(T6,e,t,n));t&&(s=Object(b["filter"])(s,Object(b["curry"])(D6,t)));var l=t?function(t,e,n,r){var a=t.coord[Math.floor(r/2)][r%2];return ty(a,i[r])}:function(t,e,n,r){return ty(t.value,i[r])};return r.initData(s,null,l),r.hasItemOption=!0,r}var R6=P6;function N6(t){t.registerComponentModel(O6),t.registerComponentView(R6),t.registerPreprocessor((function(t){B8(t.series,"markArea")&&(t.markArea=t.markArea||{})}))}var E6=function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0},z6=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 f(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"]),b["isArray"](e)&&b["each"](e,(function(t,r){b["isString"](t)&&(t={type:t}),e[r]=b["merge"](t,E6(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 r=t[n].get("name");if(this.isSelected(r)){this.select(r),e=!0;break}}!e&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var e=[],n=[];t.eachRawSeries((function(r){var i,a=r.name;if(n.push(a),r.legendVisualProvider){var o=r.legendVisualProvider,s=o.getAllNames();t.isSeriesFiltered(r)||(n=n.concat(s)),s.length?e=e.concat(s):i=!0}else i=!0;i&&Wa(r)&&e.push(r.name)})),this._availableNames=n;var r=this.get("data")||e,i=b["createHashMap"](),a=b["map"](r,(function(t){return(b["isString"](t)||b["isNumber"](t))&&(t={name:t}),i.get(t.name)?null:(i.set(t.name,!0),new Vh(t,this,this.ecModel))}),this);this._data=b["filter"](a,(function(t){return!!t}))},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 r=this._data;b["each"](r,(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;b["each"](t,(function(t){e[t.get("name",!0)]=!0}))},e.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;b["each"](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])&&b["indexOf"](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={z:4,show:!0,orient:"horizontal",left:"center",bottom:Xp.size.m,align:"auto",backgroundColor:Xp.color.transparent,borderColor:Xp.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:Xp.color.disabled,inactiveBorderColor:Xp.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:Xp.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:Xp.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:Xp.color.tertiary,borderWidth:1,borderColor:Xp.color.border},emphasis:{selectorLabel:{show:!0,color:Xp.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e}(Hp),B6=z6,V6=b["curry"],F6=b["each"],H6=vi,G6=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return f(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new H6),this.group.add(this._selectorGroup=new H6),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 r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),a=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===a?"right":"left");var o=t.get("selector",!0),s=t.get("selectorPosition",!0);!o||s&&"auto"!==s||(s="horizontal"===a?"end":"start"),this.renderInner(i,t,e,n,o,a,s);var l=Lp(t,n).refContainer,u=t.getBoxLayoutParams(),c=t.get("padding"),h=Ap(u,l,c),d=this.layoutInner(t,i,h,r,o,s),p=Ap(b["defaults"]({width:d.width,height:d.height},u),l,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=X5(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,r,i,a,o){var s=this.getContentGroup(),l=b["createHashMap"](),u=e.get("selectedMode"),c=e.get("triggerEvent"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),F6(e.getData(),(function(i,a){var o=this,d=i.get("name");if(!this.newlineDisabled&&(""===d||"\n"===d)){var p=new H6;return p.newline=!0,void s.add(p)}var f=n.getSeriesByName(d)[0];if(!l.get(d)){if(f){var g=f.getData(),y=g.getVisual("legendLineStyle")||{},v=g.getVisual("legendIcon"),m=g.getVisual("style"),x=this._createItem(f,d,a,i,e,t,y,m,v,u,r);x.on("click",V6(U6,d,null,r,h)).on("mouseover",V6(X6,f.name,null,r,h)).on("mouseout",V6(Z6,f.name,null,r,h)),n.ssr&&x.eachChild((function(t){var e=wu(t);e.seriesIndex=f.seriesIndex,e.dataIndex=a,e.ssrType="legend"})),c&&x.eachChild((function(t){o.packEventData(t,e,f,a,d)})),l.set(d,!0)}else n.eachRawSeries((function(o){var s=this;if(!l.get(d)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(d))return;var f=p.indexOfName(d),g=p.getItemVisual(f,"style"),y=p.getItemVisual(f,"legendIcon"),v=Object(bn["parse"])(g.fill);v&&0===v[3]&&(v[3]=.2,g=b["extend"](b["extend"]({},g),{fill:Object(bn["stringify"])(v,"rgba")}));var m=this._createItem(o,d,a,i,e,t,{},g,y,u,r);m.on("click",V6(U6,null,d,r,h)).on("mouseover",V6(X6,null,d,r,h)).on("mouseout",V6(Z6,null,d,r,h)),n.ssr&&m.eachChild((function(t){var e=wu(t);e.seriesIndex=o.seriesIndex,e.dataIndex=a,e.ssrType="legend"})),c&&m.eachChild((function(t){s.packEventData(t,e,o,a,d)})),l.set(d,!0)}}),this);0}}),this),i&&this._createSelector(i,e,r,a,o)},e.prototype.packEventData=function(t,e,n,r,i){var a={componentType:"legend",componentIndex:e.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};wu(t).eventData=a},e.prototype._createSelector=function(t,e,n,r,i){var a=this.getSelectorGroup();F6(t,(function(t){var r=t.type,i=new _u({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect",legendId:e.id})}});a.add(i);var o=e.getModel("selectorLabel"),s=e.getModel(["emphasis","selectorLabel"]);ph(i,{normal:o,emphasis:s},{defaultText:t.title}),Bc(i)}))},e.prototype._createItem=function(t,e,n,r,i,a,o,s,l,u,c){var h=t.visualDrawType,d=i.get("itemWidth"),p=i.get("itemHeight"),f=i.isSelected(e),g=r.get("symbolRotate"),y=r.get("symbolKeepAspect"),v=r.get("icon");l=v||l||"roundRect";var m=W6(l,r,o,s,h,f,c),x=new H6,_=r.getModel("textStyle");if(!b["isFunction"](t.getLegendIcon)||v&&"inherit"!==v){var w="inherit"===v&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0;x.add(Y6({itemWidth:d,itemHeight:p,icon:l,iconRotate:w,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}))}else x.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:l,iconRotate:g,itemStyle:m.itemStyle,lineStyle:m.lineStyle,symbolKeepAspect:y}));var S="left"===a?d+5:-5,M=a,O=i.get("formatter"),I=e;b["isString"](O)&&O?I=O.replace("{name}",null!=e?e:""):b["isFunction"](O)&&(I=O(e));var T=f?_.getTextColor():r.get("inactiveColor");x.add(new _u({style:gh(_,{text:I,x:S,y:p/2,fill:T,align:M,verticalAlign:"middle"},{inheritColor:T})}));var C=new nu({shape:x.getBoundingRect(),style:{fill:"transparent"}}),A=r.getModel("tooltip");return A.get("show")&&Yx({el:C,componentModel:i,itemName:e,itemTooltipOption:A.option}),x.add(C),x.eachChild((function(t){t.silent=!0})),C.silent=!u,this.getContentGroup().add(x),Bc(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,e,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();Op(t.get("orient"),o,t.get("itemGap"),n.width,n.height);var l=o.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),o.markRedraw(),i){Op("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",y=0===p?"y":"x";"end"===a?h[p]+=l[f]+d:u[p]+=c[f]+d,h[1-p]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],o.x=u[0],o.y=u[1];var v={x:0,y:0};return v[f]=l[f]+d+c[f],v[g]=Math.max(l[g],c[g]),v[y]=Math.min(0,c[y]+h[1-p]),v}return o.x=u[0],o.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(xv);function W6(t,e,n,r,i,a,o){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),F6(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",h=l.getShallow("decal");u.decal=h&&"inherit"!==h?Tw(h,o):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!a){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function Y6(t){var e=t.icon||"roundRect",n=z_(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill=Xp.color.neutral00,n.style.lineWidth=2),n}function U6(t,e,n,r){Z6(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),X6(t,e,n,r)}function X6(t,e,n,r){n.usingTHL()||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function Z6(t,e,n,r){n.usingTHL()||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}var q6=G6;function $6(t,e,n){var r="allSelect"===t||"inverseSelect"===t,i={},a=[];n.eachComponent({mainType:"legend",query:e},(function(n){r?n[t]():n[t](e.name),K6(n,i),a.push(n.componentIndex)}));var o={};return n.eachComponent("legend",(function(t){Object(b["each"])(i,(function(e,n){t[e?"select":"unSelect"](n)})),K6(t,o)})),r?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function K6(t,e){var n=e||{};return Object(b["each"])(t.getData(),(function(e){var r=e.get("name");if("\n"!==r&&""!==r){var i=t.isSelected(r);Object(b["hasOwn"])(n,r)?n[r]=n[r]&&i:n[r]=i}})),n}function J6(t){t.registerAction("legendToggleSelect","legendselectchanged",Object(b["curry"])($6,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",Object(b["curry"])($6,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",Object(b["curry"])($6,"inverseSelect")),t.registerAction("legendSelect","legendselected",Object(b["curry"])($6,"select")),t.registerAction("legendUnSelect","legendunselected",Object(b["curry"])($6,"unSelect"))}var Q6=Do(t9);function t9(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 e9(t){t.registerComponentModel(B6),t.registerComponentView(q6),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,Q6),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),J6(t)}var n9=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(e,n,r){var i=Ep(e);t.prototype.init.call(this,e,n,r),r9(this,e,i)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),r9(this,this.option,e)},e.type="legend.scroll",e.defaultOption=Yh(B6.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:Xp.color.accent50,pageIconInactiveColor:Xp.color.accent10,pageIconSize:15,pageTextStyle:{color:Xp.color.tertiary},animationDurationUpdate:800}),e}(B6);function r9(t,e,n){var r=t.getOrient(),i=[1,1];i[r.index]=0,Np(e,n,{type:"box",ignoreSize:!!i})}var i9=n9,a9=vi,o9=["width","height"],s9=["x","y"],l9=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 f(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new a9),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new a9)},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,r,i,a,o,s){var l=this;t.prototype.renderInner.call(this,e,n,r,i,a,o,s);var u=this._controllerGroup,c=n.get("pageIconSize",!0),h=b["isArray"](c)?c:[c,c];p("pagePrev",0);var d=n.getModel("pageTextStyle");function p(t,e){var r=t+"DataIndex",a=Ex(n.get("pageIcons",!0)[n.getOrient().name][e],{onclick:b["bind"](l._pageGo,l,r,n,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});a.name=t,u.add(a)}u.add(new _u({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,r,i,a){var o=this.getSelectorGroup(),s=t.getOrient().index,l=o9[s],u=s9[s],c=o9[1-s],h=s9[1-s];i&&Op("horizontal",o,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=o.getBoundingRect(),f=[-p.x,-p.y],g=b["clone"](n);i&&(g[l]=n[l]-p[l]-d);var y=this._layoutContentAndController(t,r,g,s,l,c,h,u);if(i){if("end"===a)f[s]+=y[l]+d;else{var v=p[l]+d;f[s]-=v,y[u]-=v}y[l]+=p[l]+d,f[1-s]+=y[h]+y[c]/2-p[c]/2,y[c]=Math.max(y[c],p[c]),y[h]=Math.min(y[h],p[h]+f[1-s]),o.x=f[0],o.y=f[1],o.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,e,n,r,i,a,o,s){var l=this.getContentGroup(),u=this._containerGroup,c=this._controllerGroup;Op(t.get("orient"),l,t.get("itemGap"),r?n.width:null,r?null:n.height),Op("horizontal",c,t.get("pageButtonItemGap",!0));var h=l.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=h[i]>n[i],f=[-h.x,-h.y];e||(f[r]=l[s]);var g=[0,0],y=[-d.x,-d.y],v=b["retrieve2"](t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var m=t.get("pageButtonPosition",!0);"end"===m?y[r]+=n[i]-d[i]:g[r]+=d[i]+v}y[1-r]+=h[a]/2-d[a]/2,l.setPosition(f),u.setPosition(g),c.setPosition(y);var x={x:0,y:0};if(x[i]=p?n[i]:h[i],x[a]=Math.max(h[a],d[a]),x[o]=Math.min(0,d[o]+y[1-r]),u.__rectSize=n[i],p){var _={x:0,y:0};_[i]=Math.max(n[i]-d[i]-v,0),_[a]=x[a],u.setClipPath(new nu({shape:_})),u.__rectSize=_[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&nh(l,{x:w.contentPosition[0],y:w.contentPosition[1]},p?t:null),this._updatePageInfoView(t,w),x},e.prototype._pageGo=function(t,e,n){var r=this._getPageInfo(e)[t];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;b["each"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",a=null!=e[i],o=n.childOfName(r);o&&(o.setStyle("fill",a?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=a?"pointer":"default")}));var r=n.childOfName("pageText"),i=t.get("pageFormatter"),a=e.pageIndex,o=null!=a?a+1:0,s=e.pageCount;r&&i&&r.setStyle("text",b["isString"](i)?i.replace("{current}",null==o?"":o+"").replace("{total}",null==s?"":s+""):i({current:o,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=t.getOrient().index,a=o9[i],o=s9[i],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=m(u);d.contentPosition[i]=-p.s;for(var f=s+1,g=p,y=p,v=null;f<=c;++f)v=m(l[f]),(!v&&y.e>g.s+r||v&&!x(v,g.s))&&(g=y.i>g.i?y:v,g&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=v;for(f=s-1,g=p,y=p,v=null;f>=-1;--f)v=m(l[f]),v&&x(y,v.s)||!(g.i<y.i)||(y=g,null==d.pagePrevDataIndex&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=v;return d;function m(t){if(t){var e=t.getBoundingRect(),n=e[o]+t[o];return{s:n,e:n+e[a],i:t.__legendDataIndex}}}function x(t,e){return t.e>=e&&t.s<=e+r}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var e,n,r=this.getContentGroup();return r.eachChild((function(r,i){var a=r.__legendDataIndex;null==n&&null!=a&&(n=i),a===t&&(e=i)})),null!=e?e:n},e.type="legend.scroll",e}(q6),u9=l9;function c9(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 h9(t){TM(e9),t.registerComponentModel(i9),t.registerComponentView(u9),c9(t)}function d9(t){TM(e9),TM(h9)}var p9=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="dataZoom.inside",e.defaultOption=Yh(I5.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(I5),f9=p9,g9=Ka();function y9(t,e,n){g9(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}function v9(t,e){for(var n=g9(t).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||m9(n,o))}}}function m9(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function x9(t,e){var n={model:e,containsPoint:Object(b["curry"])(_9,e),dispatchAction:Object(b["curry"])(b9,t),dataZoomInfoMap:null,controller:null},r=n.controller=new _z(t.getZr());return Object(b["each"])(["pan","zoom","scrollMove"],(function(t){r.on(t,(function(e){var r=[];n.dataZoomInfoMap.each((function(i){if(e.isAvailableBehavior(i.model.option)){var a=(i.getRange||{})[t],o=a&&a(i.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!i.model.get("disabled",!0)&&o&&r.push({dataZoomId:i.model.id,start:o[0],end:o[1]})}})),r.length&&n.dispatchAction(r)}))})),n}function b9(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function _9(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function w9(t,e,n){var r,i,a,o="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},l=!0;return t.each((function(t){var e=t.model,n=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");s[o+n]>s[o+r]&&(r=n),l=l&&e.get("preventDefaultMouseMove",!0),i=Object(b["retrieve2"])(e.get("cursorGrab",!0),i),a=Object(b["retrieve2"])(e.get("cursorGrabbing",!0),a)})),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!l,api:n,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:i,cursorGrabbing:a}}}function S9(t){t.registerUpdateLifecycle("coordsys:aftercreate",(function(t,e){var n=g9(e),r=n.coordSysRecordMap||(n.coordSysRecordMap=Object(b["createHashMap"])());r.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){var n=m5(t);Object(b["each"])(n.infoList,(function(n){var i=n.model.uid,a=r.get(i)||r.set(i,x9(e,n.model)),o=a.dataZoomInfoMap||(a.dataZoomInfoMap=Object(b["createHashMap"])());o.set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),r.each((function(t){var n,i=t.controller,a=t.dataZoomInfoMap;if(a){var o=a.keys()[0];null!=o&&(n=a.get(o))}if(n){var s=w9(a,t,e);i.enable(s.controlType,s.opt),xb(t,"dispatchAction",n.model.get("throttle",!0),"fixRate")}else m9(r,t)}))}))}var M9=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return f(e,t),e.prototype.render=function(e,n,r){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),y9(r,e,{pan:Object(b["bind"])(O9.pan,this),zoom:Object(b["bind"])(O9.zoom,this),scrollMove:Object(b["bind"])(O9.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){v9(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(D5),O9={zoom:function(t,e,n,r){var i=this.range,a=i.slice(),o=t.axisModels[0];if(o){var s=T9[e](null,[r.originX,r.originY],o,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/r.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return CU(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1]?a:void 0}},pan:I9((function(t,e,n,r,i,a){var o=T9[r]([a.oldX,a.oldY],[a.newX,a.newY],e,i,n);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength})),scrollMove:I9((function(t,e,n,r,i,a){var o=T9[r]([0,0],[a.scrollDelta,a.scrollDelta],e,i,n);return o.signal*(t[1]-t[0])*a.scrollDelta}))};function I9(t){return function(e,n,r,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,n,r,i);return CU(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1]?o:void 0}}}var T9={grid:function(t,e,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],"x"===a.dim?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===a.orient?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}},C9=M9;function A9(t){B5(t),t.registerComponentModel(f9),t.registerComponentView(C9),S9(t)}var D9=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Yh(I5.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:Xp.color.accent10,borderRadius:0,backgroundColor:Xp.color.transparent,dataBackground:{lineStyle:{color:Xp.color.accent30,width:.5},areaStyle:{color:Xp.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:Xp.color.accent40,width:.5},areaStyle:{color:Xp.color.accent20,opacity:.3}},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:Xp.color.neutral00,borderColor:Xp.color.accent20},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:Xp.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:Xp.color.tertiary},brushSelect:!0,brushStyle:{color:Xp.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:Xp.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(I5),k9=D9,L9=nu,P9=1,j9=30,R9=7,N9="horizontal",E9="vertical",z9=5,B9=["line","bar","candlestick","scatter"],V9={easing:"cubicOut",duration:100,delay:0},F9=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return f(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=Object(b["bind"])(this._onBrush,this),this._onBrushEnd=Object(b["bind"])(this._onBrushEnd,this)},e.prototype.render=function(e,n,r,i){if(t.prototype.render.apply(this,arguments),xb(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.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(){bb(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 vi;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"),r=n?R9:0,i=Lp(t,e).refContainer,a=this._findCoordRect(),o=t.get("defaultLocationEdgeGap",!0)||0,s=this._orient===N9?{right:i.width-a.x-a.width,top:i.height-j9-o-r,width:a.width,height:j9}:{right:o,top:a.y,width:j9,height:a.height},l=Ep(t.option);Object(b["each"])(["right","top","width","height"],(function(t){"ph"===l[t]&&(l[t]=s[t])}));var u=Ap(l,i);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===E9&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),a=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse;a.attr(n!==N9||i?n===N9&&i?{scaleY:o?1:-1,scaleX:-1}:n!==E9||i?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1});var s=t.getBoundingRect([a]),l=isNaN(s.x)?0:s.x,u=isNaN(s.y)?0:s.y;t.x=e.x-l,t.y=e.y-u,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,r=t.get("brushSelect");n.add(new L9({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new L9({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:Object(b["bind"])(this._onClickPanel,this)}),a=this.api.getZr();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",a.on("mousemove",this._onBrush),a.on("mouseup",this._onBrushEnd)):(a.off("mousemove",this._onBrush),a.off("mouseup",this._onBrushEnd)),n.add(i)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],r=t.series,i=r.getRawData(),a=r.getShadowDim&&r.getShadowDim(),o=a&&i.getDimensionInfo(a)?r.getShadowDim():t.otherDim;if(null!=o){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||o!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=i.getDataExtent(t.thisDim),c=i.getDataExtent(o),h=.3*(c[1]-c[0]);c=[c[0]-h,c[1]+h];var d,p=[0,e[1]],f=[0,e[0]],g=[[e[0],0],[0,0]],y=[],v=f[1]/Math.max(1,i.count()-1),m=e[0]/(u[1]-u[0]),x="time"===t.thisAxis.type,b=-v,_=Math.round(i.count()/e[0]);i.each([t.thisDim,o],(function(t,e,n){if(_>0&&n%_)x||(b+=v);else{b=x?(+t-u[0])*m:b+v;var r=null==e||isNaN(e)||""===e,i=r?0:Xi(e,c,p,!0);r&&!d&&n?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!r&&d&&(g.push([b,0]),y.push([b,0])),r||(g.push([b,i]),y.push([b,i])),d=r}})),s=this._shadowPolygonPts=g,l=this._shadowPolylinePts=y}this._shadowData=i,this._shadowDim=o,this._shadowSize=[e[0],e[1]];for(var w=this.dataZoomModel,S=0;S<3;S++){var M=O(1===S);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}}}function O(t){var e=w.getModel(t?"selectedDataBackground":"dataBackground"),n=new vi,r=new _m({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Mm({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,r=this.ecModel;return t.eachTargetAxis((function(i,a){var o=t.getAxisProxy(i,a).getTargetSeriesModels();Object(b["each"])(o,(function(t){if(!n&&!(!0!==e&&Object(b["indexOf"])(B9,t.get("type"))<0)){var o,s=r.getComponent(y5(i),a).axis,l=G9(i),u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(o=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l);var c=t.getData().mapDimension(i);n={thisAxis:s,series:t,thisDim:c,otherDim:l,otherAxisInverse:o}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],r=e.handleLabels=[null,null],i=this._displayables.sliderGroup,a=this._size,o=this.dataZoomModel,s=this.api,l=o.get("borderRadius")||0,u=o.get("brushSelect"),c=e.filler=new L9({silent:u,style:{fill:o.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new L9({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:a[0],height:a[1],r:l},style:{stroke:o.get("dataBackgroundColor")||o.get("borderColor"),lineWidth:P9,fill:Xp.color.transparent}})),Object(b["each"])([0,1],(function(e){var a=o.get("handleIcon");!R_[a]&&a.indexOf("path://")<0&&a.indexOf("image://")<0&&(a="path://"+a);var s=z_(a,-1,0,2,2,null,!0);s.attr({cursor:W9(this._orient),draggable:!0,drift:Object(b["bind"])(this._onDragMove,this,e),ondragend:Object(b["bind"])(this._onDragEnd,this),onmouseover:Object(b["bind"])(this._onOverDataInfoTriggerArea,this,!0),onmouseout:Object(b["bind"])(this._onOverDataInfoTriggerArea,this,!1),z2:5});var l=s.getBoundingRect(),u=o.get("handleSize");this._handleHeight=Zi(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(o.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=o.getModel(["emphasis","handleStyle"]).getItemStyle(),Bc(s);var c=o.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[e]=s);var h=o.getModel("textStyle"),d=o.get("handleLabel")||{},p=d.show||!1;t.add(r[e]=new _u({silent:!0,invisible:!p,style:gh(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))}),this);var h=c;if(u){var d=Zi(o.get("moveHandleSize"),a[1]),p=e.moveHandle=new nu({style:o.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:a[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=z_(o.get("moveHandleIcon"),-f/2,-f/2,f,f,Xp.color.neutral00,!0);g.silent=!0,g.y=a[1]+d/2-.5,p.ensureState("emphasis").style=o.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(a[1]/2,Math.max(d,10));h=e.moveZone=new nu({invisible:!0,shape:{y:a[1]-y,height:d+y}}),h.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),i.add(p),i.add(g),i.add(h)}h.attr({draggable:!0,cursor:"grab",drift:Object(b["bind"])(this._onActualMoveZoneDrift,this),ondragstart:Object(b["bind"])(this._onActualMoveZoneDragStart,this),ondragend:Object(b["bind"])(this._onActualMoveZoneDragEnd,this),onmouseover:Object(b["bind"])(this._onOverDataInfoTriggerArea,this,!0),onmouseout:Object(b["bind"])(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Xi(t[0],[0,100],e,!0),Xi(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),a=n.findRepresentativeAxisProxy().getMinMaxSpan(),o=[0,100];CU(e,r,i,n.get("zoomLock")?"all":t,null!=a.minSpan?Xi(a.minSpan,o,i,!0):null,null!=a.maxSpan?Xi(a.maxSpan,o,i,!0):null);var s=this._range,l=this._range=ea([Xi(r[0],i,o,!0),Xi(r[1],i,o,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,r=ea(n.slice()),i=this._size;Object(b["each"])([0,1],(function(t){var r=e.handles[t],a=this._handleHeight;r.attr({scaleX:a/2,scaleY:a/2,x:n[t]+(t?-1:1),y:i[1]/2-a/2})}),this),e.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var a={x:r[0],width:r[1]-r[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 o=e.dataShadowSegs,s=[0,r[0],r[1],i[0]],l=0;l<o.length;l++){var u=o[l],c=u.getClipPath();c||(c=new nu,u.setClipPath(c)),c.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:i[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,n=this._displayables,r=n.handleLabels,i=this._orient,a=["",""];if(e.get("showDetail")){var o=e.findRepresentativeAxisProxy(),s=o.getAxisModel().axis.scale;if(o){var l,u=this._range;if(t){var c={start:u[0],end:u[1]},h=w5(e,o);if(h){var d=h.calculateDataWindow(c).percentInverted;c={start:d[0],end:d[1]}}l=o.calculateDataWindow(c)}else l=o.getWindow();a=[H9(e,0,l,s),H9(e,1,l,s)]}}var p=ea(this._handleEnds.slice());function f(t){var e=Ax(n.handles[t].parent,this.group),o=kx(0===t?"right":"left",e),s=this._handleWidth/2+z9,l=Dx([p[t]+(0===t?-s:s),this._size[1]/2],e);r[t].setStyle({x:l[0],y:l[1],verticalAlign:i===N9?"middle":o,align:i===N9?o:"center",text:a[t]})}f.call(this,0),f.call(this,1)},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var e=this.dataZoomModel.get("handleLabel")||{},n=e.show||!1,r=this.dataZoomModel.getModel(["emphasis","handleLabel"]),i=r.get("show")||!1,a=t||this._dragging?i:n,o=this._displayables,s=o.handleLabels;s[0].attr("invisible",!a),s[1].attr("invisible",!a),o.moveHandle&&this.api[a?"enterEmphasis":"leaveEmphasis"](o.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(t,e,n){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,e,n)},e.prototype._onActualMoveZoneDragStart=function(t){t.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(t){t.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(t,e,n,r){this._dragging=!0,_t(r.event);var i=this._displayables.sliderGroup.getLocalTransform(),a=Dx([e,n],i,!0),o=this._updateInterval(t,a[0]),s=this.dataZoomModel.get("realtime");this._updateView(!s),o&&s&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||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 r=this._handleEnds,i=(r[0]+r[1])/2,a=this._updateInterval("all",n[0]-i);this._updateView(),a&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new Et(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,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),a=[0,100],o=this._handleEnds=[n.x,n.x+n.width],s=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();CU(0,o,i,0,null!=s.minSpan?Xi(s.minSpan,a,i,!0):null,null!=s.maxSpan?Xi(s.maxSpan,a,i,!0):null),this._range=ea([Xi(o[0],i,a,!0),Xi(o[1],i,a,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(_t(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new L9({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var a=this._brushStart,o=this._displayables.sliderGroup,s=o.transformCoordToLocal(t,e),l=o.transformCoordToLocal(a.x,a.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?V9:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=m5(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var r=this.api.getWidth(),i=this.api.getHeight();t={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return t},e.type="dataZoom.slider",e}(D5);function H9(t,e,n,r){var i=t.get("labelFormatter"),a=t.get("labelPrecision");null!=a&&"auto"!==a||(a=n.valuePrecision);var o=n.value[e],s=null==o||isNaN(o)?"":JO(r)||$O(r)?r.getLabel({value:Math.round(o)}):isFinite(a)?Qi(o,a,!0):o+"";return Object(b["isFunction"])(i)?i(o,s):Object(b["isString"])(i)?i.replace("{value}",s):s}function G9(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function W9(t){return"vertical"===t?"ns-resize":"ew-resize"}var Y9=F9;function U9(t){t.registerComponentModel(k9),t.registerComponentView(Y9),B5(t)}function X9(t){TM(A9),TM(U9)}var Z9={get:function(t,e,n){var r=b["clone"]((q9[t]||{})[e]);return n&&b["isArray"](r)?r[r.length-1]:r}},q9={color:{active:["#006edd","#e0ffff"],inactive:[Xp.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},$9=Z9,K9=CG.mapVisual,J9=CG.eachVisual,Q9=b["isArray"],t7=b["each"],e7=ea,n7=Xi,r7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return f(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&V4(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=b["bind"](t,this),this.controllerVisuals=B4(this.option.controller,e,t),this.targetVisuals=B4(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this,e=this.option.seriesTargets;if(e){var n=[];return t7(e,(function(e){if(null!=e.seriesIndex)n.push(e.seriesIndex);else if(null!=e.seriesId){var r;t.ecModel.eachSeries((function(t){t.id===e.seriesId&&(r=t)})),r&&n.push(r.componentIndex)}})),n}var r=this.option.seriesId,i=this.option.seriesIndex;null==i&&null==r&&(i="all");var a=ro(this.ecModel,"series",{index:i,id:r},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return b["map"](a,(function(t){return t.componentIndex}))},e.prototype.eachTargetSeries=function(t,e){b["each"](this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&t.call(e,r)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var r,i=this.option,a=i.precision,o=this.dataBound,s=i.formatter;n=n||["<",">"],b["isArray"](t)&&(t=t.slice(),r=!0);var l=e?t:r?[u(t[0]),u(t[1])]:u(t);return b["isString"](s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):b["isFunction"](s)?r?s(t[0],t[1]):s(t):r?t[0]===o[0]?n[0]+" "+l[1]:t[1]===o[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===o[0]?"min":t===o[1]?"max":(+t).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,e=e7([t.min,t.max]);this._dataExtent=e},e.prototype.getDimension=function(t){var e=this,n=this.option.seriesTargets;if(n){var r=b["find"](n,(function(n){return null!=n.seriesIndex&&n.seriesIndex===t||null!=n.seriesId&&n.seriesId===e.ecModel.getSeriesByIndex(t).id}));if(r)return r.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(t){var e=t.hostModel.seriesIndex,n=this.getDimension(e);if(null!=n)return t.getDimensionIndex(n);for(var r=t.dimensions,i=r.length-1;i>=0;i--){var a=r[i],o=t.getDimensionInfo(a);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},r=e.target||(e.target={}),i=e.controller||(e.controller={});b["merge"](r,n),b["merge"](i,n);var a=this.isCategory();function o(n){Q9(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}function s(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},t7(r,(function(t,e){if(CG.isValidType(e)){var n=$9.get(e,"inactive",a);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function l(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol(),o=i||"roundRect";t7(this.stateList,(function(i){var s=this.itemSize,l=t[i];l||(l=t[i]={color:a?r:[r]}),null==l.symbol&&(l.symbol=e&&b["clone"](e)||(a?o:[o])),null==l.symbolSize&&(l.symbolSize=n&&b["clone"](n)||(a?s[0]:[s[0],s[0]])),l.symbol=K9(l.symbol,(function(t){return"none"===t?o:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;J9(u,(function(t){t>c&&(c=t)})),l.symbolSize=K9(u,(function(t){return n7(t,[0,c],[0,s[0]],!0)}))}}),this)}o.call(this,r),o.call(this,i),s.call(this,r,"inRange","outOfRange"),l.call(this,i)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:Xp.color.transparent,borderColor:Xp.color.borderTint,contentColor:Xp.color.theme[0],inactiveColor:Xp.color.disabled,borderWidth:0,padding:Xp.size.m,textGap:10,precision:0,textStyle:{color:Xp.color.secondary}},e}(Hp),i7=r7,a7=[20,140],o7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=a7[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=a7[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):b["isArray"](e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),b["each"](this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=ea((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},e.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent(),r=b["retrieve2"](this.option.unboundedRange,!0);return(r&&e[0]<=n[0]||e[0]<=t)&&(r&&e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(e,n){t[0]<=e&&e<=t[1]&&r.push(n)}),this),e.push({seriesId:n.id,dataIndex:r})}),this),e},e.prototype.getVisualMeta=function(t){var e=s7(this,"outOfRange",this.getExtent()),n=s7(this,"inRange",this.option.range.slice()),r=[];function i(e,n){r.push({value:e,color:t(e,n)})}for(var a=0,o=0,s=n.length,l=e.length;o<l&&(!n.length||e[o]<=n[0]);o++)e[o]<n[a]&&i(e[o],"outOfRange");for(var u=1;a<s;a++,u=0)u&&r.length&&i(n[a],"outOfRange"),i(n[a],"inRange");for(u=1;o<l;o++)(!n.length||n[n.length-1]<e[o])&&(u&&(r.length&&i(r[r.length-1].value,"outOfRange"),u=0),i(e[o],"outOfRange"));var c=r.length;return{stops:r,outerColors:[c?r[0].color:"transparent",c?r[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Yh(i7.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:Xp.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:Xp.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:Xp.color.shadow}}),e}(i7);function s7(t,e,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}var l7=o7,u7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return f(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e},e.prototype.render=function(t,e,n,r){this.visualMapModel=t,!1!==t.get("show")?this.doRender(t,e,n,r):this.group.removeAll()},e.prototype.renderBackground=function(t){var e=this.visualMapModel,n=Zd(e.get("padding")||0),r=t.getBoundingRect();t.add(new nu({z2:-1,silent:!0,shape:{x:r.x-n[3],y:r.y-n[0],width:r.width+n[3]+n[1],height:r.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,e,n){n=n||{};var r=n.forceState,i=this.visualMapModel,a={};if("color"===e){var o=i.get("contentColor");a.color=o}function s(t){return a[t]}function l(t,e){a[t]=e}var u=i.controllerVisuals[r||i.getValueState(t)],c=CG.prepareVisualTypes(u);return b["each"](c,(function(r){var i=u[r];n.convertOpacityToAlpha&&"opacity"===r&&(r="colorAlpha",i=u.__alphaForOpacity),CG.dependsOn(r,e)&&i&&i.applyVisual(t,s,l)})),a[e]},e.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api,r=Lp(e,n).refContainer;Pp(t,e.getBoxLayoutParams(),r)},e.prototype.doRender=function(t,e,n,r){},e.type="visualMap",e}(xv),c7=u7,h7=[["left","right","width"],["top","bottom","height"]];function d7(t,e,n){var r=t.option,i=r.align;if(null!=i&&"auto"!==i)return i;for(var a={width:e.getWidth(),height:e.getHeight()},o="horizontal"===r.orient?1:0,s=h7[o],l=[0,null,10],u={},c=0;c<3;c++)u[h7[1-o][c]]=l[c],u[s[c]]=2===c?n[0]:r[s[c]];var h=[["x","width",3],["y","height",0]][o],d=Ap(u,a,r.padding);return s[(d.margin[h[2]]||0)+d[h[0]]+.5*d[h[1]]<.5*a[h[1]]?0:1]}function p7(t,e){return b["each"](t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}var f7=Xi,g7=b["each"],y7=Math.min,v7=Math.max,m7=12,x7=6,b7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return f(e,t),e.prototype.init=function(e,n){t.prototype.init.call(this,e,n),this._hoverLinkFromSeriesMouseOver=b["bind"](this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=b["bind"](this._hideIndicator,this)},e.prototype.doRender=function(t,e,n,r){r&&"selectDataRange"===r.type&&r.from===this.uid||this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);var n=t.get("text");this._renderEndsText(e,n,0),this._renderEndsText(e,n,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},e.prototype._renderEndsText=function(t,e,n){if(e){var r=e[1-n];r=null!=r?r+"":"";var i=this.visualMapModel,a=i.get("textGap"),o=i.itemSize,s=this._shapes.mainGroup,l=this._applyTransform([o[0]/2,0===n?-a:o[1]+a],s),u=this._applyTransform(0===n?"bottom":"top",s),c=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new _u({style:gh(h,{x:l[0],y:l[1],verticalAlign:h.get("verticalAlign")||("horizontal"===c?"middle":u),align:h.get("align")||("horizontal"===c?u:"center"),text:r})}))}},e.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,r=e.itemSize,i=this._orient,a=this._useHandle,o=d7(e,this.api,r),s=n.mainGroup=this._createBarGroup(o),l=new vi;s.add(l),l.add(n.outOfRange=_7()),l.add(n.inRange=_7(null,a?M7(this._orient):null,b["bind"](this._dragHandle,this,"all",!1),b["bind"](this._dragHandle,this,"all",!0))),l.setClipPath(new nu({shape:{x:0,y:0,width:r[0],height:r[1],r:3}}));var u=e.textStyleModel.getTextRect("国"),c=v7(u.width,u.height);a&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,r,c,i),this._createHandle(e,s,1,r,c,i)),this._createIndicator(e,s,r,c,i),t.add(s)},e.prototype._createHandle=function(t,e,n,r,i,a){var o=b["bind"](this._dragHandle,this,n,!1),s=b["bind"](this._dragHandle,this,n,!0),l=Zr(t.get("handleSize"),r[0]),u=z_(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),c=M7(this._orient);u.attr({cursor:c,draggable:!0,drift:o,ondragend:s,onmousemove:function(t){_t(t.event)}}),u.x=r[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Uc(u,!0),e.add(u);var h=this.visualMapModel.textStyleModel,d=new _u({cursor:c,draggable:!0,drift:o,onmousemove:function(t){_t(t.event)},ondragend:s,style:gh(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[l,0],f=this._shapes;f.handleThumbs[n]=u,f.handleLabelPoints[n]=p,f.handleLabels[n]=d},e.prototype._createIndicator=function(t,e,n,r,i){var a=Zr(t.get("indicatorSize"),n[0]),o=z_(t.get("indicatorIcon"),-a/2,-a/2,a,a,null,!0);o.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var s=t.getModel("indicatorStyle").getItemStyle();if(o instanceof Xl){var l=o.style;o.useStyle(b["extend"]({image:l.image,x:l.x,y:l.y,width:l.width,height:l.height},s))}else o.useStyle(s);e.add(o);var u=this.visualMapModel.textStyleModel,c=new _u({silent:!0,invisible:!0,style:gh(u,{x:0,y:0,text:""})});this.group.add(c);var h=[("horizontal"===i?r/2:x7)+n[0]/2,0],d=this._shapes;d.indicator=o,d.indicatorLabel=c,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,e,n,r){if(this._useHandle){if(this._dragging=!e,!e){var i=this._applyTransform([n,r],this._shapes.mainGroup,!0);this._updateInterval(t,i[1]),this._hideIndicator(),this._updateView()}e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?!this._hovering&&this._clearHoverLinkToSeries():S7(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),r=[0,t.itemSize[1]];this._handleEnds=[f7(e[0],n,r,!0),f7(e[1],n,r,!0)]},e.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,r=this._handleEnds,i=[0,n.itemSize[1]];CU(e,r,i,t,0);var a=n.getExtent();this._dataInterval=[f7(r[0],i,a,!0),f7(r[1],i,a,!0)]},e.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),r=this._shapes,i=[0,e.itemSize[1]],a=t?i:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,a,"inRange"),s=this._createBarVisual(n,n,i,"outOfRange");r.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),r.outOfRange.setStyle({fill:s.barColor}).setShape("points",s.barPoints),this._updateHandle(a,o)},e.prototype._createBarVisual=function(t,e,n,r){var i={forceState:r,convertOpacityToAlpha:!0},a=this._makeColorGradient(t,i),o=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],s=this._createBarPoints(n,o);return{barColor:new Hm(0,0,0,1,a),barPoints:s,handlesColor:[a[0].color,a[a.length-1].color]}},e.prototype._makeColorGradient=function(t,e){var n=100,r=[],i=(t[1]-t[0])/n;r.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var a=1;a<n;a++){var o=t[0]+i*a;if(o>t[1])break;r.push({color:this.getControllerVisual(o,"color",e),offset:a/n})}return r.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),r},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new vi("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,r=this.visualMapModel,i=n.handleThumbs,a=n.handleLabels,o=r.itemSize,s=r.getExtent(),l=this._applyTransform("left",n.mainGroup);g7([0,1],(function(u){var c=i[u];c.setStyle("fill",e.handlesColor[u]),c.y=t[u];var h=f7(t[u],[0,o[1]],s,!0),d=this.getControllerVisual(h,"symbolSize");c.scaleX=c.scaleY=d/o[0],c.x=o[0]-d/2;var p=Dx(n.handleLabelPoints[u],Ax(c,this.group));if("horizontal"===this._orient){var f="left"===l||"top"===l?(o[0]-d)/2:(o[0]-d)/-2;p[1]+=f}a[u].setStyle({x:p[0],y:p[1],text:r.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,r){var i=this.visualMapModel,a=i.getExtent(),o=i.itemSize,s=[0,o[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},h=this.getControllerVisual(t,"color",c),d=this.getControllerVisual(t,"symbolSize"),p=f7(t,a,s,!0),f=o[0]-d/2,g={x:u.x,y:u.y};u.y=p,u.x=f;var y=Dx(l.indicatorLabelPoint,Ax(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var m=this._applyTransform("left",l.mainGroup),x=this._orient,b="horizontal"===x;v.setStyle({text:(n||"")+i.formatValueText(e),verticalAlign:b?m:"middle",align:b?"center":m});var _={x:f,y:p,style:{fill:h}},w={style:{x:y[0],y:y[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=g.x,u.y=g.y,u.animateTo(_,S),v.animateTo(w,S)}else u.attr(_),v.attr(w);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var O=0;O<M.length;O++)this.api.enterBlur(M[O])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",(function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,r=t._applyTransform([e.offsetX,e.offsetY],t._shapes.mainGroup,!0,!0);r[1]=y7(v7(0,r[1]),n[1]),t._doHoverLinkToSeries(r[1],0<=r[0]&&r[0]<=n[0])}})).on("mouseout",(function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()}))},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,e){var n=this.visualMapModel,r=n.itemSize;if(n.option.hoverLink){var i=[0,r[1]],a=n.getExtent();t=y7(v7(i[0],t),i[1]);var o=w7(n,a,i),s=[t-o,t+o],l=f7(t,i,a,!0),u=[f7(s[0],i,a,!0),f7(s[1],i,a,!0)];s[0]<i[0]&&(u[0]=-1/0),s[1]>i[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",o):u[1]===1/0?this._showIndicator(l,u[0],"> ",o):this._showIndicator(l,l,"≈ ",o));var c=this._hoverLinkDataIndices,h=[];(e||S7(n))&&(h=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=qa(c,h);this._dispatchHighDown("downplay",p7(d[0],n)),this._dispatchHighDown("highlight",p7(d[1],n))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var e;if(h_(t.target,(function(t){var n=wu(t);if(null!=n.dataIndex)return e=n,!0}),!0),e){var n=this.ecModel.getSeriesByIndex(e.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(e.dataType),a=i.getStore().get(r.getDataDimensionIndex(i),e.dataIndex);isNaN(a)||this._showIndicator(a,a)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",p7(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,e,n,r){var i=Ax(e,r?null:this.group);return b["isArray"](t)?Dx(t,i,n):kx(t,i,n)},e.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(c7);function _7(t,e,n,r){return new _m({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){_t(t.event)},ondragend:r})}function w7(t,e,n){var r=m7/2,i=t.get("hoverLinkDataSize");return i&&(r=f7(i,e,n,!0)/2),r}function S7(t){var e=t.get("hoverLinkOnHandle");return!!(null==e?t.get("realtime"):e)}function M7(t){return"vertical"===t?"ns-resize":"ew-resize"}var O7=b7,I7={type:"selectDataRange",event:"dataRangeSelected",update:"update"},T7=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))},C7=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",(function(e){var r=t.pipelineContext;!e.isTargetSeries(t)||r&&r.large||n.push(H4(e.stateList,e.targetVisuals,b["bind"](e.getValueState,e),e.getDataDimensionIndex(t.getData())))})),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",(function(e){if(e.isTargetSeries(t)){var i=e.getVisualMeta(b["bind"](A7,null,t,e))||{stops:[],outerColors:[]},a=e.getDataDimensionIndex(n);a>=0&&(i.dimension=a,r.push(i))}})),t.getData().setVisual("visualMeta",r)}}];function A7(t,e,n,r){for(var i=e.targetVisuals[r],a=CG.prepareVisualTypes(i),o={color:o_(t.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i["opacity"===u?"__alphaForOpacity":u];c&&c.applyVisual(n,h,d)}return o.color;function h(t){return o[t]}function d(t,e){o[t]=e}}var D7=b["each"];function k7(t){var e=t&&t.visualMap;b["isArray"](e)||(e=e?[e]:[]),D7(e,(function(t){if(t){L7(t,"splitList")&&!L7(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&b["isArray"](e)&&D7(e,(function(t){b["isObject"](t)&&(L7(t,"start")&&!L7(t,"min")&&(t.min=t.start),L7(t,"end")&&!L7(t,"max")&&(t.max=t.end))}))}}))}function L7(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var P7=!1;function j7(t){P7||(P7=!0,t.registerSubTypeDefaulter("visualMap",(function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(I7,T7),Object(b["each"])(C7,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(k7))}function R7(t){t.registerComponentModel(l7),t.registerComponentView(O7),j7(t)}var N7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return f(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],E7[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var i=this.option.categories;this.resetVisual((function(t,e){"categories"===r?(t.mappingMethod="category",t.categories=b["clone"](i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=b["map"](this._pieceList,(function(t){return t=b["clone"](t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},r=CG.listVisualTypes(),i=this.isCategory();function a(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}b["each"](e.pieces,(function(t){b["each"](r,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),b["each"](n,(function(t,n){var r=!1;b["each"](this.stateList,(function(t){r=r||a(e,t,n)||a(e.target,t,n)}),this),!r&&b["each"](this.stateList,(function(t){(e[t]||(e[t]={}))[n]=$9.get(n,"inRange"===t?"active":"inactive",i)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,r=this._pieceList,i=(e?n:t).selected||{};if(n.selected=i,b["each"](r,(function(t,e){var n=this.getSelectedMapKey(t);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var a=!1;b["each"](r,(function(t,e){var n=this.getSelectedMapKey(t);i[n]&&(a?i[n]=!1:a=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=b["clone"](t)},e.prototype.getValueState=function(t){var e=CG.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(r){var i=[],a=r.getData();a.each(this.getDataDimensionIndex(a),(function(e,r){var a=CG.findPieceIndex(e,n);a===t&&i.push(r)}),this),e.push({seriesId:r.id,dataIndex:i})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],r=this,i=this._pieceList.slice();if(i.length){var a=i[0].interval[0];a!==-1/0&&i.unshift({interval:[-1/0,a]}),a=i[i.length-1].interval[1],a!==1/0&&i.push({interval:[a,1/0]})}else i.push({interval:[-1/0,1/0]});var o=-1/0;return b["each"](i,(function(t){var e=t.interval;e&&(e[0]>o&&s([o,e[0]],"outOfRange"),s(e.slice()),o=e[1])}),this),{stops:e,outerColors:n}}function s(i,a){var o=r.getRepresentValue({interval:i});a||(a=r.getValueState(o));var s=t(o,a);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:e.push({value:i[0],color:s},{value:i[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Yh(i7.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(i7),E7={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;var a=(r[1]-r[0])/i;while(+a.toFixed(n)!==a&&n<5)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var l=o===i-1?r[1]:s+a;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),xa(t),b["each"](t,(function(t,e){t.index=e,t.text=this.formatValueText(t.interval)}),this)},categories:function(t){var e=this.option;b["each"](e.categories,(function(e){t.push({text:this.formatValueText(e,!0),value:e})}),this),z7(e,t)},pieces:function(t){var e=this.option;b["each"](e.pieces,(function(e,n){b["isObject"](e)||(e={value:e});var r={text:"",index:n};if(null!=e.label&&(r.text=e.label),e.hasOwnProperty("value")){var i=r.value=e.value;r.interval=[i,i],r.close=[1,1]}else{for(var a=r.interval=[],o=r.close=[0,0],s=[1,0,1],l=[-1/0,1/0],u=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&null==a[c];d++)a[c]=e[h[d]],o[c]=s[d],u[c]=2===d;null==a[c]&&(a[c]=l[c])}u[0]&&a[1]===1/0&&(o[0]=0),u[1]&&a[0]===-1/0&&(o[1]=0),a[0]===a[1]&&o[0]&&o[1]&&(r.value=a[0])}r.visual=CG.retrieveVisuals(e),t.push(r)}),this),z7(e,t),xa(t),b["each"](t,(function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function z7(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var B7=N7,V7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),r=e.textStyleModel,i=this._getItemAlign(),a=e.itemSize,o=this._getViewData(),s=o.endsText,l=b["retrieve"](e.get("showLabel",!0),!s),u=!e.get("selectedMode");s&&this._renderEndsText(t,s[0],a,l,i),b["each"](o.viewPieceList,(function(o){var s=o.piece,c=new vi;c.onclick=b["bind"](this._onItemClick,this,s),this._enableHoverLink(c,o.indexInModelPieceList);var h=e.getRepresentValue(s);if(this._createItemSymbol(c,h,[0,0,a[0],a[1]],u),l){var d=this.visualMapModel.getValueState(h),p=r.get("align")||i;c.add(new _u({style:gh(r,{x:"right"===p?-n:a[0]+n,y:a[1]/2,text:s.text,verticalAlign:r.get("verticalAlign")||"middle",align:p,opacity:b["retrieve2"](r.get("opacity"),"outOfRange"===d?.5:1)}),silent:u}))}t.add(c)}),this),s&&this._renderEndsText(t,s[1],a,l,i),Op(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(t){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:t,batch:p7(r.findTargetDataIndices(e),r)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return d7(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,r,i){if(e){var a=new vi,o=this.visualMapModel.textStyleModel;a.add(new _u({style:gh(o,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"center",text:e})})),t.add(a)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=b["map"](t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),r=t.get("orient"),i=t.get("inverse");return("horizontal"===r?i:!i)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n,r){var i=z_(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color"));i.silent=r,t.add(i)},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,r=n.selectedMode;if(r){var i=b["clone"](n.selected),a=e.getSelectedMapKey(t);"single"===r||!0===r?(i[a]=!0,b["each"](i,(function(t,e){i[e]=e===a}))):i[a]=!i[a],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},e.type="visualMap.piecewise",e}(c7),F7=V7;function H7(t){t.registerComponentModel(B7),t.registerComponentView(F7),j7(t)}function G7(t){TM(R7),TM(H7)}var W7=function(){function t(t){this._thumbnailModel=t}return t.prototype.reset=function(t){this._renderVersion=t.getECUpdateCycleVersion()},t.prototype.renderContent=function(t){var e=t.api.getViewOfComponentModel(this._thumbnailModel);e&&(t.group.silent=!0,e.renderContent({group:t.group,targetTrans:t.targetTrans,z2Range:Qx(t.group),roamType:t.roamType,viewportRect:t.viewportRect,renderVersion:this._renderVersion}))},t.prototype.updateWindow=function(t,e){var n=e.getViewOfComponentModel(this._thumbnailModel);n&&n.updateWindow({targetTrans:t,renderVersion:this._renderVersion})},t}(),Y7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return f(e,t),e.prototype.optionUpdated=function(t,e){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new W7(this);if(this._target=null,this.ecModel.eachSeries((function(t){oY(t,null)})),this.shouldShow()){var e=this.getTarget();oY(e.baseMapProvider,t)}},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?"graph"!==t.subType&&(t=null):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:Xp.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:Xp.color.neutral30,borderColor:Xp.color.neutral40,opacity:.3},z:10},e}(Hp),U7=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return f(e,t),e.prototype.render=function(t,e,n){if(this._api=n,this._model=t,this._coordSys||(this._coordSys=new dV),this._isEnabled()){this._renderVersion=n.getECUpdateCycleVersion();var r=this.group;r.removeAll();var i=t.getModel("itemStyle"),a=i.getItemStyle();null==a.fill&&(a.fill=e.get("backgroundColor")||Xp.color.neutral00);var o=Lp(t,n).refContainer,s=Ap(Ip(t,!0),o),l=a.lineWidth||0,u=this._contentRect=Hx(s.clone(),l/2,!0,!0),c=new vi;r.add(c),c.setClipPath(new nu({shape:u.plain()}));var h=this._targetGroup=new vi;c.add(h);var d=s.plain();d.r=i.getShallow("borderRadius",!0),r.add(this._bgRect=new nu({style:a,shape:d,silent:!1,cursor:"grab"}));var p=t.getModel("windowStyle"),f=p.getShallow("borderRadius",!0);c.add(this._windowRect=new nu({shape:{x:0,y:0,width:0,height:0,r:f},style:p.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),Z7(t,this)}else this._clear()},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),Z7(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(t&&t.renderVersion===this._renderVersion){var e=this._targetGroup,n=this._coordSys,r=this._contentRect;if(e.removeAll(),t){var i=t.group,a=i.getBoundingRect();e.add(i),this._bgRect.z2=t.z2Range.min-10,kB(n,a.x,a.y,a.width,a.height);var o=Ap({left:"center",top:"center",aspect:a.width/a.height},r);LB(n,o.x,o.y,o.width,o.height),OB(i,n,fB),i.dirty(),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var e=this._bridgeRendered;e&&e.renderVersion===t.renderVersion&&(e.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(t&&t.renderVersion===this._renderVersion){var e=jt([],t.targetTrans),n=Dt([],_B(null,this._coordSys),e);this._transThisToTarget=jt([],n);var r=t.viewportRect;r=r?r.clone():new ue(0,0,this._api.getWidth(),this._api.getHeight()),r.applyTransform(n);var i=this._windowRect,a=i.shape.r;i.setShape(Object(b["defaults"])({r:a},r))}},e.prototype._resetRoamController=function(t){var e=this,n=this._api,r=this._roamController;r||(r=this._roamController=new _z(n.getZr())),t&&this._isEnabled()?(r.enable(t,{api:n,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(t,n,r){return e._contentRect.contain(n,r)}}}),r.off("pan").off("zoom").on("pan",Object(b["bind"])(this._onPan,this)).on("zoom",Object(b["bind"])(this._onZoom,this))):r.disable()},e.prototype._onPan=function(t){var e=this._transThisToTarget;if(this._isEnabled()&&e){var n=G([],[t.oldX,t.oldY],e),r=G([],[t.oldX-t.dx,t.oldY-t.dy],e);this._api.dispatchAction(X7(this._model.getTarget().baseMapProvider,{dx:r[0]-n[0],dy:r[1]-n[1]}))}},e.prototype._onZoom=function(t){var e=this._transThisToTarget;if(this._isEnabled()&&e){var n=G([],[t.originX,t.originY],e);this._api.dispatchAction(X7(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:n[0],originY:n[1]}))}},e.prototype._isEnabled=function(){var t=this._model;if(!t||!t.shouldShow())return!1;var e=t.getTarget().baseMapProvider;return!!e},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e}(xv);function X7(t,e){var n="series"===t.mainType?t.subType+"Roam":t.mainType+"Roam",r={type:n};return r[t.mainType+"Id"]=t.id,Object(b["extend"])(r,e),r}function Z7(t,e){var n=Jx(t);tb(e.group,n.z,n.zlevel)}function q7(t){t.registerComponentModel(Y7),t.registerComponentView(U7)}var $7={label:{enabled:!0},decal:{show:!1}},K7=Ka(),J7=Ka(),Q7=Do(ttt);function ttt(t,e){var n=t.getModel("aria");if(n.get("enabled")){var r=J7(t).scope||(J7(t).scope={}),i=b["clone"]($7);b["merge"](i.label,t.getLocaleModel().get("aria"),!1),b["merge"](n.option,i,!1),a(),o()}function a(){var e=n.getModel("decal"),i=e.get("show");if(i){var a=b["createHashMap"]();t.eachSeries((function(t){t.isColorBySeries()||(K7(t).scope=a.get(t.type)||a.set(t.type,{}))})),t.eachSeries((function(e){if(b["isFunction"](e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=gf(e.ecModel,e.name,r,t.getSeriesCount()),a=n.getVisual("decal");n.setVisual("decal",c(a,i))}else{var o=e.getRawData(),s={},l=K7(e).scope;n.each((function(t){var e=n.getRawIndex(t);s[e]=t}));var u=o.count();o.each((function(t){var r=s[t],i=o.getName(t)||t+"",a=gf(e.ecModel,i,l,u),h=n.getItemVisual(r,"decal");n.setItemVisual(r,"decal",c(h,a))}))}}function c(t,e){var n=t?b["extend"](b["extend"]({},e),t):e;return n.dirty=!0,n}}))}}function o(){var r=e.getZr().dom;if(r){var i=t.getLocaleModel().get("aria"),a=n.getModel("label");if(a.option=b["defaults"](a.option,i),a.get("enabled"))if(r.setAttribute("role","img"),a.get("description"))r.setAttribute("aria-label",a.get("description"));else{var o,c=t.getSeriesCount(),h=a.get(["data","maxCount"])||10,d=a.get(["series","maxCount"])||10,p=Math.min(c,d);if(!(c<1)){var f=l();if(f){var g=a.get(["general","withTitle"]);o=s(g,{title:f})}else o=a.get(["general","withoutTitle"]);var y=[],v=c>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]);o+=s(v,{seriesCount:c}),t.eachSeries((function(t,e){if(e<p){var n=void 0,r=t.get("name"),i=r?"withName":"withoutName";n=c>1?a.get(["series","multiple",i]):a.get(["series","single",i]),n=s(n,{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:u(t.subType)});var o=t.getData();if(o.count()>h){var l=a.get(["data","partialData"]);n+=s(l,{displayCnt:h})}else n+=a.get(["data","allData"]);for(var d=a.get(["data","separator","middle"]),f=a.get(["data","separator","end"]),g=a.get(["data","excludeDimensionId"]),v=[],m=0;m<o.count();m++)if(m<h){var x=o.getName(m),_=g?b["filter"](o.getValues(m),(function(t,e){return-1===b["indexOf"](g,e)})):o.getValues(m),w=a.get(["data",x?"withName":"withoutName"]);v.push(s(w,{name:x,value:_.join(d)}))}n+=v.join(d)+f,y.push(n)}}));var m=a.getModel(["series","multiple","separator"]),x=m.get("middle"),_=m.get("end");o+=y.join(x)+_,r.setAttribute("aria-label",o)}}}}function s(t,e){if(!b["isString"](t))return t;var n=t;return b["each"](e,(function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)})),n}function l(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}function u(e){var n=t.getLocaleModel().get(["series","typeNames"]);return n[e]||n.chart}}function ett(t){if(t&&t.aria){var e=t.aria;null!=e.show&&(e.enabled=e.show),e.label=e.label||{},b["each"](["description","general","series","data"],(function(t){null!=e[t]&&(e.label[t]=e[t])}))}}function ntt(t){t.registerPreprocessor(ett),t.registerVisual(t.PRIORITY.VISUAL.ARIA,Q7)}var rtt={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},itt=function(){function t(t){var e=this._condVal=Object(b["isString"])(t)?new RegExp(t):Object(b["isRegExp"])(t)?t:null;if(null==e){var n="";0,Cf(n)}}return t.prototype.evaluate=function(t){var e=typeof t;return Object(b["isString"])(e)?this._condVal.test(t):!!Object(b["isNumber"])(e)&&this._condVal.test(t+"")},t}(),att=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),ott=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}(),stt=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}(),ltt=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),utt=function(){function t(){}return t.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),r=t?this.valueParser(n):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?r:n))return!1;return!0},t}();function ctt(t,e){if(!0===t||!1===t){var n=new att;return n.value=t,n}var r="";return ftt(t)||Cf(r),t.and?htt("and",t,e):t.or?htt("or",t,e):t.not?dtt(t,e):ptt(t,e)}function htt(t,e,n){var r=e[t],i="";Object(b["isArray"])(r)||Cf(i),r.length||Cf(i);var a="and"===t?new ott:new stt;return a.children=Object(b["map"])(r,(function(t){return ctt(t,n)})),a.children.length||Cf(i),a}function dtt(t,e){var n=t.not,r="";ftt(n)||Cf(r);var i=new ltt;return i.child=ctt(n,e),i.child||Cf(r),i}function ptt(t,e){for(var n="",r=e.prepareGetValue(t),i=[],a=Object(b["keys"])(t),o=t.parser,s=o?ny(o):null,l=0;l<a.length;l++){var u=a[l];if("parser"!==u&&!e.valueGetterAttrMap.get(u)){var c=Object(b["hasOwn"])(rtt,u)?rtt[u]:u,h=t[u],d=s?s(h):h,p=sy(c,d)||"reg"===c&&new itt(d);p||Cf(n),i.push(p)}}i.length||Cf(n);var f=new utt;return f.valueGetterParam=r,f.valueParser=s,f.getValue=e.getValue,f.subCondList=i,f}function ftt(t){return Object(b["isObject"])(t)&&!Object(b["isArrayLike"])(t)}var gtt=function(){function t(t,e){this._cond=ctt(t,e)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function ytt(t,e){return new gtt(t,e)}var vtt={type:"echarts:filter",transform:function(t){for(var e,n=t.upstream,r=ytt(t.config,{valueGetterAttrMap:Object(b["createHashMap"])({dimension:!0}),prepareGetValue:function(t){var e="",r=t.dimension;Object(b["hasOwn"])(t,"dimension")||Cf(e);var i=n.getDimensionInfo(r);return i||Cf(e),{dimIdx:i.index}},getValue:function(t){return n.retrieveValueFromItem(e,t.dimIdx)}}),i=[],a=0,o=n.count();a<o;a++)e=n.getRawDataItem(a),r.evaluate()&&i.push(e);return{data:i}}};var mtt={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",i=Aa(n);i.length||Cf(r);var a=[];Object(b["each"])(i,(function(t){var n=t.dimension,i=t.order,o=t.parser,s=t.incomparable;if(null==n&&Cf(r),"asc"!==i&&"desc"!==i&&Cf(r),s&&"min"!==s&&"max"!==s){var l="";0,Cf(l)}if("asc"!==i&&"desc"!==i){var u="";0,Cf(u)}var c=e.getDimensionInfo(n);c||Cf(r);var h=o?ny(o):null;o&&!h&&Cf(r),a.push({dimIdx:c.index,parser:h,comparator:new ay(i,s)})}));var o=e.sourceFormat;o!==Cu&&o!==Au&&Cf(r);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort((function(t,n){for(var r=0;r<a.length;r++){var i=a[r],o=e.retrieveValueFromItem(t,i.dimIdx),s=e.retrieveValueFromItem(n,i.dimIdx);i.parser&&(o=i.parser(o),s=i.parser(s));var l=i.comparator.evaluate(o,s);if(0!==l)return l}return 0})),{data:s}}};function xtt(t){t.registerTransform(vtt),t.registerTransform(mtt)}var btt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return f(e,t),e.prototype.init=function(e,n,r){t.prototype.init.call(this,e,n,r),this._sourceManager=new Ly(this),Py(this)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),Py(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Pu},e}(Hp),_tt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataset",e}return f(e,t),e.type="dataset",e}(xv);function wtt(t){t.registerComponentModel(btt),t.registerComponentView(_tt)}var Stt=pl.CMD;function Mtt(t,e){return Math.abs(t-e)<1e-5}function Ott(t){var e,n,r,i,a,o=t.data,s=t.len(),l=[],u=0,c=0,h=0,d=0;function p(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function f(t,n,r,i){Mtt(t,r)&&Mtt(n,i)||e.push(t,n,r,i,r,i)}function g(t,n,r,i,a,o){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=n<t?-1:1,c=Math.cos(t),h=Math.sin(t),d=Math.cos(n),p=Math.sin(n),f=c*a+r,g=h*o+i,y=d*a+r,v=p*o+i,m=a*l*u,x=o*l*u;e.push(f-m*h,g+x*c,y+m*p,v-x*d,y,v)}for(var y=0;y<s;){var v=o[y++],m=1===y;switch(m&&(u=o[y],c=o[y+1],h=u,d=c,v!==Stt.L&&v!==Stt.C&&v!==Stt.Q||(e=[h,d])),v){case Stt.M:u=h=o[y++],c=d=o[y++],p(h,d);break;case Stt.L:n=o[y++],r=o[y++],f(u,c,n,r),u=n,c=r;break;case Stt.C:e.push(o[y++],o[y++],o[y++],o[y++],u=o[y++],c=o[y++]);break;case Stt.Q:n=o[y++],r=o[y++],i=o[y++],a=o[y++],e.push(u+2/3*(n-u),c+2/3*(r-c),i+2/3*(n-i),a+2/3*(r-a),i,a),u=i,c=a;break;case Stt.A:var x=o[y++],b=o[y++],_=o[y++],w=o[y++],S=o[y++],M=o[y++]+S;y+=1;var O=!o[y++];n=Math.cos(S)*_+x,r=Math.sin(S)*w+b,m?(h=n,d=r,p(h,d)):f(u,c,n,r),u=Math.cos(M)*_+x,c=Math.sin(M)*w+b;for(var I=(O?-1:1)*Math.PI/2,T=S;O?T>M:T<M;T+=I){var C=O?Math.max(T+I,M):Math.min(T+I,M);g(T,C,x,b,_,w)}break;case Stt.R:h=u=o[y++],d=c=o[y++],n=h+o[y++],r=d+o[y++],p(n,d),f(n,d,n,r),f(n,r,h,r),f(h,r,h,d),f(h,d,n,d);break;case Stt.Z:e&&f(u,c,h,d),u=h,c=d;break}}return e&&e.length>2&&l.push(e),l}function Itt(t,e,n,r,i,a,o,s,l,u){if(Mtt(t,n)&&Mtt(e,r)&&Mtt(i,o)&&Mtt(a,s))l.push(o,s);else{var c=2/u,h=c*c,d=o-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-t,y=r-e,v=i-o,m=a-s,x=g*g+y*y,b=v*v+m*m;if(x<h&&b<h)l.push(o,s);else{var _=d*g+p*y,w=-d*v-p*m,S=x-_*_,M=b-w*w;if(S<h&&_>=0&&M<h&&w>=0)l.push(o,s);else{var O=[],I=[];on(t,n,i,o,.5,O),on(e,r,a,s,.5,I),Itt(O[0],I[0],O[1],I[1],O[2],I[2],O[3],I[3],l,u),Itt(O[4],I[4],O[5],I[5],O[6],I[6],O[7],I[7],l,u)}}}}function Ttt(t,e){var n=Ott(t),r=[];e=e||1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],h=a[u++],d=a[u++],p=a[u++],f=a[u++],g=a[u++];Itt(s,l,c,h,d,p,f,g,o,e),s=f,l=g}r.push(o)}return r}function Ctt(t,e,n){var r=t[e],i=t[1-e],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);0===s&&(s=1,o=n);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,h=n-c;if(h>0)for(u=0;u<h;u++)l[u%o]+=1;return l}function Att(t,e,n){for(var r=t.r0,i=t.r,a=t.startAngle,o=t.endAngle,s=Math.abs(o-a),l=s*i,u=i-r,c=l>Math.abs(u),h=Ctt([l,u],c?0:1,e),d=(c?s:u)/h.length,p=0;p<h.length;p++)for(var f=(c?u:s)/h[p],g=0;g<h[p];g++){var y={};c?(y.startAngle=a+d*p,y.endAngle=a+d*(p+1),y.r0=r+f*g,y.r=r+f*(g+1)):(y.startAngle=a+f*g,y.endAngle=a+f*(g+1),y.r0=r+d*p,y.r=r+d*(p+1)),y.clockwise=t.clockwise,y.cx=t.cx,y.cy=t.cy,n.push(y)}}function Dtt(t,e,n){for(var r=t.width,i=t.height,a=r>i,o=Ctt([r,i],a?0:1,e),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",h=t[s]/o.length,d=0;d<o.length;d++)for(var p=t[l]/o[d],f=0;f<o[d];f++){var g={};g[u]=d*h,g[c]=f*p,g[s]=h,g[l]=p,g.x+=t.x,g.y+=t.y,n.push(g)}}function ktt(t,e,n,r){return t*r-n*e}function Ltt(t,e,n,r,i,a,o,s){var l=n-t,u=r-e,c=o-i,h=s-a,d=ktt(c,h,l,u);if(Math.abs(d)<1e-6)return null;var p=t-i,f=e-a,g=ktt(p,f,c,h)/d;return g<0||g>1?null:new Et(g*l+t,g*u+e)}function Ptt(t,e,n){var r=new Et;Et.sub(r,n,e),r.normalize();var i=new Et;Et.sub(i,t,e);var a=i.dot(r);return a}function jtt(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function Rtt(t,e,n){for(var r=t.length,i=[],a=0;a<r;a++){var o=t[a],s=t[(a+1)%r],l=Ltt(o[0],o[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&i.push({projPt:Ptt(l,e,n),pt:l,idx:a})}if(i.length<2)return[{points:t},{points:t}];i.sort((function(t,e){return t.projPt-e.projPt}));var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var h=u;u=c,c=h}var d=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],f=[d],g=[p];for(a=u.idx+1;a<=c.idx;a++)jtt(f,t[a].slice());jtt(f,p),jtt(f,d);for(a=c.idx+1;a<=u.idx+r;a++)jtt(g,t[a%r].slice());return jtt(g,d),jtt(g,p),[{points:f},{points:g}]}function Ntt(t){var e=t.points,n=[],r=[];Fs(e,n,r);var i=new ue(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new Et,c=new Et;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),Rtt(e,u,c)}function Ett(t,e,n,r){if(1===n)r.push(e);else{var i=Math.floor(n/2),a=t(e);Ett(t,a[0],i,r),Ett(t,a[1],n-i,r)}return r}function ztt(t,e){for(var n=[],r=0;r<e;r++)n.push(Gv(t));return n}function Btt(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function Vtt(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function Ftt(t,e){var n,r=[],i=t.shape;switch(t.type){case"rect":Dtt(i,e,r),n=nu;break;case"sector":Att(i,e,r),n=pm;break;case"circle":Att({r0:0,r:i.r,startAngle:0,endAngle:2*Math.PI,cx:i.cx,cy:i.cy},e,r),n=pm;break;default:var a=t.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=Object(b["map"])(Ttt(t.getUpdatedPathProxy(),o),(function(t){return Vtt(t)})),l=s.length;if(0===l)Ett(Ntt,{points:s[0]},e,r);else if(l===e)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,h=Object(b["map"])(s,(function(t){var e=[],n=[];Fs(t,e,n);var r=(n[1]-e[1])*(n[0]-e[0]);return c+=r,{poly:t,area:r}}));h.sort((function(t,e){return e.area-t.area}));var d=e;for(u=0;u<l;u++){var p=h[u];if(d<=0)break;var f=u===l-1?d:Math.ceil(p.area/c*e);f<0||(Ett(Ntt,{points:p.poly},f,r),d-=f)}}n=_m;break}if(!n)return ztt(t,e);var g=[];for(u=0;u<r.length;u++){var y=new n;y.setShape(r[u]),Btt(t,y),g.push(y)}return g}function Htt(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var i=[],a=[],o=n<r?t:e,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,h=[o[0],o[1]],d=l,p=2;p<s;){var f=o[p-2],g=o[p-1],y=o[p++],v=o[p++],m=o[p++],x=o[p++],b=o[p++],_=o[p++];if(d<=0)h.push(y,v,m,x,b,_);else{for(var w=Math.min(d,c-1)+1,S=1;S<=w;S++){var M=S/w;on(f,y,m,b,M,i),on(g,v,x,_,M,a),f=i[3],g=a[3],h.push(i[1],a[1],i[2],a[2],f,g),y=i[5],v=a[5],m=i[6],x=a[6]}d-=w-1}}return o===t?[h,e]:[t,h]}function Gtt(t,e){for(var n=t.length,r=t[n-2],i=t[n-1],a=[],o=0;o<e.length;)a[o++]=r,a[o++]=i;return a}function Wtt(t,e){for(var n,r,i,a=[],o=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,h=void 0;l?u?(n=Htt(l,u),c=n[0],h=n[1],r=c,i=h):(h=Gtt(i||l,l),c=l):(c=Gtt(r||u,u),h=u),a.push(c),o.push(h)}return[a,o]}function Ytt(t){for(var e=0,n=0,r=0,i=t.length,a=0,o=i-2;a<i;o=a,a+=2){var s=t[o],l=t[o+1],u=t[a],c=t[a+1],h=s*c-u*l;e+=h,n+=(s+u)*h,r+=(l+c)*h}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function Utt(t,e,n,r){for(var i=(t.length-2)/6,a=1/0,o=0,s=t.length,l=s-2,u=0;u<i;u++){for(var c=6*u,h=0,d=0;d<s;d+=2){var p=0===d?c:(c+d-2)%l+2,f=t[p]-n[0],g=t[p+1]-n[1],y=e[d]-r[0],v=e[d+1]-r[1],m=y-f,x=v-g;h+=m*m+x*x}h<a&&(a=h,o=u)}return o}function Xtt(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function Ztt(t,e,n,r){for(var i,a=[],o=0;o<t.length;o++){var s=t[o],l=e[o],u=Ytt(s),c=Ytt(l);null==i&&(i=u[2]<0!==c[2]<0);var h=[],d=[],p=0,f=1/0,g=[],y=s.length;i&&(s=Xtt(s));for(var v=6*Utt(s,l,u,c),m=y-2,x=0;x<m;x+=2){var b=(v+x)%m+2;h[x+2]=s[b]-u[0],h[x+3]=s[b+1]-u[1]}if(h[0]=s[v]-u[0],h[1]=s[v+1]-u[1],n>0)for(var _=r/n,w=-r/2;w<=r/2;w+=_){var S=Math.sin(w),M=Math.cos(w),O=0;for(x=0;x<s.length;x+=2){var I=h[x],T=h[x+1],C=l[x]-c[0],A=l[x+1]-c[1],D=C*M-A*S,k=C*S+A*M;g[x]=D,g[x+1]=k;var L=D-I,P=k-T;O+=L*L+P*P}if(O<f){f=O,p=w;for(var j=0;j<g.length;j++)d[j]=g[j]}}else for(var R=0;R<y;R+=2)d[R]=l[R]-c[0],d[R+1]=l[R+1]-c[1];a.push({from:h,to:d,fromCp:u,toCp:c,rotation:-p})}return a}function qtt(t){return t.__isCombineMorphing}var $tt="__mOriginal_";function Ktt(t,e,n){var r=$tt+e,i=t[r]||t[e];t[r]||(t[r]=t[e]);var a=n.replace,o=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=a?a.apply(this,e):i.apply(this,e),o&&o.apply(this,e),t}}function Jtt(t,e){var n=$tt+e;t[n]&&(t[e]=t[n],t[n]=null)}function Qtt(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=e[0]*a+e[2]*o+e[4],r[i++]=e[1]*a+e[3]*o+e[5]}}function tet(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),i=Wtt(Ott(n),Ott(r)),a=i[0],o=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&Qtt(a,s),l&&Qtt(o,l),Ktt(e,"updateTransform",{replace:u}),e.transform=null;var c=Ztt(a,o,10,Math.PI),h=[];Ktt(e,"buildPath",{replace:function(t){for(var n=e.__morphT,r=1-n,i=[],a=0;a<c.length;a++){var o=c[a],s=o.from,l=o.to,u=o.rotation*n,d=o.fromCp,p=o.toCp,f=Math.sin(u),g=Math.cos(u);H(i,d,p,n);for(var y=0;y<s.length;y+=2){var v=s[y],m=s[y+1],x=l[y],b=l[y+1],_=v*r+x*n,w=m*r+b*n;h[y]=_*g-w*f+i[0],h[y+1]=_*f+w*g+i[1]}var S=h[0],M=h[1];t.moveTo(S,M);for(y=2;y<s.length;){x=h[y++],b=h[y++];var O=h[y++],I=h[y++],T=h[y++],C=h[y++];S===x&&M===b&&O===T&&I===C?t.lineTo(T,C):t.bezierCurveTo(x,b,O,I,T,C),S=T,M=C}}}})}function eet(t,e,n){if(!t||!e)return e;var r=n.done,i=n.during;function a(){Jtt(e,"buildPath"),Jtt(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return tet(t,e),e.__morphT=0,e.animateTo({__morphT:1},Object(b["defaults"])({during:function(t){e.dirtyShape(),i&&i(t)},done:function(){a(),r&&r()}},n)),e}function net(t,e,n,r,i,a){var o=16;t=i===n?0:Math.round(32767*(t-n)/(i-n)),e=a===r?0:Math.round(32767*(e-r)/(a-r));for(var s,l=0,u=(1<<o)/2;u>0;u/=2){var c=0,h=0;(t&u)>0&&(c=1),(e&u)>0&&(h=1),l+=u*u*(3*c^h),0===h&&(1===c&&(t=u-1-t,e=u-1-e),s=t,t=e,e=s)}return l}function ret(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,a=Object(b["map"])(t,(function(t){var a=t.getBoundingRect(),o=t.getComputedTransform(),s=a.x+a.width/2+(o?o[4]:0),l=a.y+a.height/2+(o?o[5]:0);return e=Math.min(s,e),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]})),o=Object(b["map"])(a,(function(a,o){return{cp:a,z:net(a[0],a[1],e,n,r,i),path:t[o]}}));return o.sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function iet(t){return Ftt(t.path,t.count)}function aet(){return{fromIndividuals:[],toIndividuals:[],count:0}}function oet(t,e,n){var r=[];function i(t){for(var e=0;e<t.length;e++){var n=t[e];qtt(n)?i(n.childrenRef()):n instanceof Bl&&r.push(n)}}i(t);var a=r.length;if(!a)return aet();var o=n.dividePath||iet,s=o({path:e,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),aet();r=ret(r),s=ret(s);for(var l=n.done,u=n.during,c=n.individualDelay,h=new jr,d=0;d<a;d++){var p=r[d],f=s[d];f.parent=e,f.copyTransform(h),c||tet(p,f)}function g(t){for(var e=0;e<s.length;e++)s[e].addSelfToZr(t)}function y(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Jtt(e,"addSelfToZr"),Jtt(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return s},Ktt(e,"addSelfToZr",{after:function(t){g(t)}}),Ktt(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<s.length;e++)s[e].removeSelfFromZr(t)}});var v=s.length;if(c){var m=v,x=function(){m--,0===m&&(y(),l&&l())};for(d=0;d<v;d++){var _=c?Object(b["defaults"])({delay:(n.delay||0)+c(d,v,r[d],s[d]),done:x},n):n;eet(r[d],s[d],_)}}else e.__morphT=0,e.animateTo({__morphT:1},Object(b["defaults"])({during:function(t){for(var n=0;n<v;n++){var r=s[n];r.__morphT=e.__morphT,r.dirtyShape()}u&&u(t)},done:function(){y();for(var e=0;e<t.length;e++)Jtt(t[e],"updateTransform");l&&l()}},n));return e.__zr&&g(e.__zr),{fromIndividuals:r,toIndividuals:s,count:v}}function set(t,e,n){var r=e.length,i=[],a=n.dividePath||iet;function o(t){for(var e=0;e<t.length;e++){var n=t[e];qtt(n)?o(n.childrenRef()):n instanceof Bl&&i.push(n)}}if(qtt(t)){o(t.childrenRef());var s=i.length;if(s<r)for(var l=0,u=s;u<r;u++)i.push(Gv(i[l++%s]));i.length=r}else{i=a({path:t,count:r});var c=t.getComputedTransform();for(u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),aet()}i=ret(i),e=ret(e);var h=n.individualDelay;for(u=0;u<r;u++){var d=h?Object(b["defaults"])({delay:(n.delay||0)+h(u,r,i[u],e[u])},n):n;eet(i[u],e[u],d)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}function uet(t){return Object(b["isArray"])(t[0])}function cet(t,e){for(var n=[],r=t.length,i=0;i<r;i++)n.push({one:t[i],many:[]});for(i=0;i<e.length;i++){var a=e[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(e[i][o])}var s=0;for(i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}a=l.length;var u=Math.ceil(a/2);n[i].many=l.slice(u,a),n[s].many=l.slice(0,u),s++}return n}var het={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var i=Gv(t.path);i.setStyle("opacity",n),e.push(i)}return e},split:null};function det(t,e,n,r,i,a){if(t.length&&e.length){var o=th("update",r,i);if(o&&o.duration>0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object(b["extend"])({setToFinal:!0},o);uet(t)&&(s=t,l=e),uet(e)&&(s=e,l=t);for(var h=s?s===t:t.length>e.length,d=s?cet(l,s):cet(h?e:t,[h?t:e]),p=0,f=0;f<d.length;f++)p+=d[f].many.length;var g=0;for(f=0;f<d.length;f++)y(d[f],h,g,p),g+=d[f].many.length}}function y(t,e,r,i,o){var s=t.many,l=t.one;if(1!==s.length||o)for(var h=Object(b["defaults"])({dividePath:het[n],individualDelay:u&&function(t,e,n,a){return u(t+r,i)}},c),d=e?oet(s,l,h):set(l,s,h),p=d.fromIndividuals,f=d.toIndividuals,g=p.length,v=0;v<g;v++){_=u?Object(b["defaults"])({delay:u(v,g)},c):c;a(p[v],f[v],e?s[v]:t.one,e?t.one:s[v],_)}else{var m=e?s[0]:l,x=e?l:s[0];if(qtt(m))y({many:[m],one:x},!0,r,i,!0);else{var _=u?Object(b["defaults"])({delay:u(r,i)},c):c;eet(m,x,_),a(m,x,m,x,_)}}}}function pet(t){if(!t)return[];if(Object(b["isArray"])(t)){for(var e=[],n=0;n<t.length;n++)e.push(pet(t[n]));return e}var r=[];return t.traverse((function(t){t instanceof Bl&&!t.disableMorphing&&!t.invisible&&!t.ignore&&r.push(t)})),r}var fet=1e4,get=0,yet=1,vet=2,met=Ka();function xet(t,e){for(var n=t.dimensions,r=0;r<n.length;r++){var i=t.getDimensionInfo(n[r]);if(i&&0===i.otherDims[e])return n[r]}}function bet(t,e,n){var r=t.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=t.get(r.name,e);return i&&i.categories[a]||a+""}}function _et(t,e,n,r){var i=r?"itemChildGroupId":"itemGroupId",a=xet(t,i);if(a){var o=bet(t,e,a);return o}var s=t.getRawDataItem(e),l=r?"childGroupId":"groupId";return s&&s[l]?s[l]+"":r?void 0:n||t.getId(e)}function wet(t){var e=[];return Object(b["each"])(t,(function(t){var n=t.data,r=t.dataGroupId;if(!(n.count()>fet))for(var i=n.getIndices(),a=0;a<i.length;a++)e.push({data:n,groupId:_et(n,a,r,!1),childGroupId:_et(n,a,r,!0),divide:t.divide,dataIndex:a})})),e}function Set(t,e,n){t.traverse((function(t){t instanceof Bl&&rh(t,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})}))}function Met(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function Oet(t){t.stopAnimation(),t.isGroup&&t.traverse((function(t){t.stopAnimation()}))}function Iet(t,e,n){var r=th("update",n,e);r&&t.traverse((function(t){if(t instanceof Ls){var e=uh(t);e&&t.animateFrom({style:e},r)}}))}function Tet(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var i=t[r],a=e[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function Cet(t,e,n){var r=wet(t),i=wet(e);function a(t,e,n,r,i){(n||t)&&e.animateFrom({style:n&&n!==t?Object(b["extend"])(Object(b["extend"])({},n.style),t.style):t.style},i)}var o=!1,s=get,l=Object(b["createHashMap"])(),u=Object(b["createHashMap"])();Object(b["each"])(r,(function(t){t.groupId&&l.set(t.groupId,!0),t.childGroupId&&u.set(t.childGroupId,!0)}));for(var c=0;c<i.length;c++){var h=i[c].groupId;if(u.get(h)){s=yet;break}var d=i[c].childGroupId;if(d&&l.get(d)){s=vet;break}}function p(t,e){return function(n){var r=n.data,i=n.dataIndex;return e?r.getId(i):t?s===yet?n.childGroupId:n.groupId:s===vet?n.childGroupId:n.groupId}}var f=Tet(r,i),g={};if(!f)for(c=0;c<i.length;c++){var y=i[c],v=y.data.getItemGraphicEl(y.dataIndex);v&&(g[v.id]=!0)}function m(t,e){var n=r[e],s=i[t],l=s.data.hostModel,u=n.data.getItemGraphicEl(n.dataIndex),c=s.data.getItemGraphicEl(s.dataIndex);u!==c?u&&g[u.id]||c&&(Oet(c),u?(Oet(u),Met(u),o=!0,det(pet(u),pet(c),s.divide,l,t,a)):Set(c,l,t)):c&&Iet(c,s.dataIndex,l)}new kM(r,i,p(!0,f),p(!1,f),null,"multiple").update(m).updateManyToOne((function(t,e){var n=i[t],s=n.data,l=s.hostModel,u=s.getItemGraphicEl(n.dataIndex),c=Object(b["filter"])(Object(b["map"])(e,(function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)})),(function(t){return t&&t!==u&&!g[t.id]}));u&&(Oet(u),c.length?(Object(b["each"])(c,(function(t){Oet(t),Met(t)})),o=!0,det(pet(c),pet(u),n.divide,l,t,a)):Set(u,l,n.dataIndex))})).updateOneToMany((function(t,e){var n=r[e],s=n.data.getItemGraphicEl(n.dataIndex);if(!s||!g[s.id]){var l=Object(b["filter"])(Object(b["map"])(t,(function(t){return i[t].data.getItemGraphicEl(i[t].dataIndex)})),(function(t){return t&&t!==s})),u=i[t[0]].data.hostModel;l.length&&(Object(b["each"])(l,(function(t){return Oet(t)})),s?(Oet(s),Met(s),o=!0,det(pet(s),pet(l),n.divide,u,t[0],a)):Object(b["each"])(l,(function(e){return Set(e,u,t[0])})))}})).updateManyToMany((function(t,e){new kM(e,t,(function(t){return r[t].data.getId(r[t].dataIndex)}),(function(t){return i[t].data.getId(i[t].dataIndex)})).update((function(n,r){m(t[n],e[r])})).execute()})).execute(),o&&Object(b["each"])(e,(function(t){var e=t.data,r=e.hostModel,i=r&&n.getViewOfSeriesModel(r),a=th("update",r,0);i&&r.isAnimationEnabled()&&a&&a.duration>0&&i.group.traverse((function(t){t instanceof Bl&&!t.animators.length&&t.animateFrom({style:{opacity:0}},a)}))}))}function Aet(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function Det(t){return Object(b["isArray"])(t)?t.sort().join(","):t}function ket(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function Let(t,e){var n=Object(b["createHashMap"])(),r=Object(b["createHashMap"])(),i=Object(b["createHashMap"])();return Object(b["each"])(t.oldSeries,(function(e,n){var a=t.oldDataGroupIds[n],o=t.oldData[n],s=Aet(e),l=Det(s);r.set(l,{dataGroupId:a,data:o}),Object(b["isArray"])(s)&&Object(b["each"])(s,(function(t){i.set(t,{key:l,dataGroupId:a,data:o})}))})),Object(b["each"])(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),a=t.getData(),o=Aet(t),s=Det(o),l=r.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:ket(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:ket(a),data:a}]});else if(Object(b["isArray"])(o)){0;var u=[];Object(b["each"])(o,(function(t){var e=r.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:ket(e.data),data:e.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:a,divide:ket(a)}]})}else{var c=i.get(o);if(c){var h=n.get(c.key);h||(h={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:ket(c.data)}],newSeries:[]},n.set(c.key,h)),h.newSeries.push({dataGroupId:e,data:a,divide:ket(a)})}}}})),n}function Pet(t,e){for(var n=0;n<t.length;n++){var r=null!=e.seriesIndex&&e.seriesIndex===t[n].seriesIndex||null!=e.seriesId&&e.seriesId===t[n].id;if(r)return n}}function jet(t,e,n,r){var i=[],a=[];Object(b["each"])(Aa(t.from),(function(t){var n=Pet(e.oldSeries,t);n>=0&&i.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:ket(e.oldData[n]),groupIdDim:t.dimension})})),Object(b["each"])(Aa(t.to),(function(t){var r=Pet(n.updatedSeries,t);if(r>=0){var i=n.updatedSeries[r].getData();a.push({dataGroupId:e.oldDataGroupIds[r],data:i,divide:ket(i),groupIdDim:t.dimension})}})),i.length>0&&a.length>0&&Cet(i,a,r)}function Ret(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){Object(b["each"])(Aa(n.seriesTransition),(function(t){Object(b["each"])(Aa(t.to),(function(t){for(var e=n.updatedSeries,r=0;r<e.length;r++)(null!=t.seriesIndex&&t.seriesIndex===e[r].seriesIndex||null!=t.seriesId&&t.seriesId===e[r].id)&&(e[r][sv]=!0)}))}))})),t.registerUpdateLifecycle("series:transition",(function(t,e,n){var r=met(e);if(r.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)Object(b["each"])(Aa(i),(function(t){jet(t,r,n,e)}));else{var a=Let(r,n);Object(b["each"])(a.keys(),(function(t){var n=a.get(t);Cet(n.oldSeries,n.newSeries,e)}))}Object(b["each"])(n.updatedSeries,(function(t){t[sv]&&(t[sv]=!1)}))}for(var o=t.getSeries(),s=r.oldSeries=[],l=r.oldDataGroupIds=[],u=r.oldData=[],c=0;c<o.length;c++){var h=o[c].getData();h.count()<fet&&(s.push(o[c]),l.push(o[c].get("dataGroupId")),u.push(h))}}))}var Net=function(){function t(e,n){BO(this,t.decoratedMethods),this._outOfBrk=YO(null,n);var r=this._linear=YO(null,n);VO(this,r),this.breaks=e&&e.breaks||[]}return t.prototype.hasBreaks=function(){return!!this.breaks.length},t.prototype.calcNiceTickMultiple=function(t,e){for(var n=0;n<this.breaks.length;n++){var r=this.breaks[n];if(r.vmin<t&&t<r.vmax){var i=e(t,r.vmax);return i}}return 0},t.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(t,e){return null==e||e===NO?this._outOfBrk.getExtentUnsafe(t,null):this._linear.getExtentUnsafe(t,null)},setExtent:function(t,e){this.setExtent2(LO,t,e)},setExtent2:function(t,e,n){xo(e,n)&&(t===LO&&Vet(this,[e,n]),this._outOfBrk.setExtent2(t,e,n),this._linear.setExtent2(t,this.transformIn(e,null),this.transformIn(n,null)))},normalize:function(t){return this._linear.normalize(this.transformIn(t,null))},scale:function(t){return this.transformOut(this._linear.scale(t),null)},contain:function(t){return this._outOfBrk.contain(t)},transformIn:function(t,e){if(e&&e.depth===NO)return t;for(var n=zet,r=Bet,i=!0,a=0;a<this.breaks.length;a++){var o=this.breaks[a];if(t<=o.vmax){t>o.vmin?n+=o.vmin-r+(t-o.vmin)/(o.vmax-o.vmin)*o.gapReal:n+=t-r,r=o.vmax,i=!1;break}n+=o.vmin-r+o.gapReal,r=o.vmax}return i&&(n+=t-r),n},transformOut:function(t,e){if(e&&e.depth===NO)return t;for(var n=zet,r=Bet,i=!0,a=0,o=0;o<this.breaks.length;o++){var s=this.breaks[o],l=n+s.vmin-r,u=l+s.gapReal;if(t<=u){a=t>l?s.vmin+(t-l)/(u-l)*(s.vmax-s.vmin):r+t-n,r=s.vmax,i=!1;break}n=u,r=s.vmax}return i&&(a=r+t-n),a}},t}();function Eet(t,e){return new Net(t,e)}var zet=0,Bet=0;function Vet(t,e){var n=0,r={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},i=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},a={S:{tpAbs:i(),tpPrct:i()},E:{tpAbs:i(),tpPrct:i()}};Object(b["each"])(t.breaks,(function(t){var i=t.gapParsed;"tpPrct"===i.type&&(n+=i.val);var o=Get(t,e);if(o){var s=o.vmin!==t.vmin,l=o.vmax!==t.vmax,u=o.vmax-o.vmin;if(s&&l);else if(s||l){var c=s?"S":"E";a[c][i.type].has=!0,a[c][i.type].span=u,a[c][i.type].inExtFrac=u/(t.vmax-t.vmin),a[c][i.type].val=i.val}else r[i.type].span+=u,r[i.type].val+=i.val}}));var o=n*(e[1]-e[0]+0+(r.tpAbs.val-r.tpAbs.span)+(a.S.tpAbs.has?(a.S.tpAbs.val-a.S.tpAbs.span)*a.S.tpAbs.inExtFrac:0)+(a.E.tpAbs.has?(a.E.tpAbs.val-a.E.tpAbs.span)*a.E.tpAbs.inExtFrac:0)-r.tpPrct.span-(a.S.tpPrct.has?a.S.tpPrct.span*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.span*a.E.tpPrct.inExtFrac:0))/(1-r.tpPrct.val-(a.S.tpPrct.has?a.S.tpPrct.val*a.S.tpPrct.inExtFrac:0)-(a.E.tpPrct.has?a.E.tpPrct.val*a.E.tpPrct.inExtFrac:0));Object(b["each"])(t.breaks,(function(t){var e=t.gapParsed;"tpPrct"===e.type&&(t.gapReal=0!==n?Ei(o,0)*e.val/n:0),"tpAbs"===e.type&&(t.gapReal=e.val),null==t.gapReal&&(t.gapReal=0)}))}function Fet(t,e,n,r,i,a){"no"!==t&&Object(b["each"])(n,(function(n){var o=Get(n,a);if(o)for(var s=e.length-1;s>=0;s--){var l=e[s],u=r(l),c=3*i/4;u>o.vmin-c&&u<o.vmax+c&&("preserve_extent_bound"!==t||u!==a[0]&&u!==a[1])&&e.splice(s,1)}}))}function Het(t,e,n,r){Object(b["each"])(e,(function(e){var i=Get(e,n);i&&(t.push({value:i.vmin,break:{type:"vmin",parsedBreak:i},time:r?r(i):void 0}),t.push({value:i.vmax,break:{type:"vmax",parsedBreak:i},time:r?r(i):void 0}))})),e.length&&t.sort((function(t,e){return t.value-e.value}))}function Get(t,e){var n=Ei(t.vmin,e[0]),r=Ni(t.vmax,e[1]);return n<r||n===r&&n>e[0]&&n<e[1]?{vmin:n,vmax:r,breakOption:t.breakOption,gapParsed:t.gapParsed,gapReal:t.gapReal}:null}function Wet(t,e,n){var r=[];if(!t)return{breaks:r};function i(t,e){return t>=0&&t<.99999}Object(b["each"])(t,(function(t){if(t&&null!=t.start&&null!=t.end&&!t.isExpanded){var a={breakOption:Object(b["clone"])(t),vmin:e.parse(t.start),vmax:e.parse(t.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(null!=t.gap){var o=!1;if(Object(b["isString"])(t.gap)){var s=Object(b["trim"])(t.gap);if(s.match(/%$/)){var l=parseFloat(s)/100;i(l,"Percent gap")||(l=0),a.gapParsed.type="tpPrct",a.gapParsed.val=l,o=!0}}if(!o){var u=e.parse(t.gap);(!isFinite(u)||u<0)&&(u=0),a.gapParsed.type="tpAbs",a.gapParsed.val=u}}if(a.vmin===a.vmax&&(a.gapParsed.type="tpAbs",a.gapParsed.val=0),n&&n.noNegative&&Object(b["each"])(["vmin","vmax"],(function(t){a[t]<0&&(a[t]=0)})),a.vmin>a.vmax){var c=a.vmax;a.vmax=a.vmin,a.vmin=c}r.push(a)}})),r.sort((function(t,e){return t.vmin-e.vmin}));var a=-1/0;return Object(b["each"])(r,(function(t,e){a>t.vmin&&(r[e]=null),a=t.vmax})),{breaks:Object(b["filter"])(r,(function(t){return!!t}))}}function Yet(t,e){return Uet(e)===Uet(t)}function Uet(t){return t.start+"_\0_"+t.end}function Xet(t,e,n){var r=[];Object(b["each"])(t,(function(t,n){var i=e(t);i&&"vmin"===i.type&&r.push([n])})),Object(b["each"])(t,(function(n,i){var a=e(n);if(a&&"vmax"===a.type){var o=Object(b["find"])(r,(function(n){return Yet(e(t[n[0]]).parsedBreak.breakOption,a.parsedBreak.breakOption)}));o&&o.push(i)}}));var i=[];return Object(b["each"])(r,(function(e){2===e.length&&i.push(n?e:[t[e[0]],t[e[1]]])})),i}function Zet(t,e,n,r){if(e["break"]){var i=e["break"].parsedBreak,a=Object(b["find"])(n,(function(t){return Yet(t.breakOption,e["break"].parsedBreak.breakOption)})),o={lookup:r,depth:NO},s=t.transformOut(i.vmin,o),l=t.transformOut(i.vmax,o),u={vmin:s,vmax:l,breakOption:i.breakOption,gapParsed:Object(b["clone"])(a.gapParsed),gapReal:i.gapReal};return{tickVal:u[e["break"].type],vBreak:{type:e["break"].type,parsedBreak:u}}}}function qet(t,e,n,r,i){i.original=Wet(t,e,n);var a=i.transformed=Wet(t,e,n),o=i.lookup;a.breaks=Object(b["map"])(a.breaks,(function(t,n){var i={depth:NO},a=e.transformIn(t.vmin,i),s=e.transformIn(t.vmax,i),l={type:t.gapParsed.type,val:"tpAbs"===t.gapParsed.type?e.transformIn(t.vmin+t.gapParsed.val,i)-a:t.gapParsed.val};return o.from[r+n]=a,o.to[r+n]=t.vmin,o.from[r+n+1]=s,o.to[r+n+1]=t.vmax,{vmin:a,vmax:s,gapParsed:l,gapReal:t.gapReal,breakOption:t.breakOption}}))}var $et={vmin:"start",vmax:"end"};function Ket(t,e){return e&&(t=t||{},t["break"]={type:$et[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),t}function Jet(){ad({createBreakScaleMapper:Eet,pruneTicksByBreak:Fet,addBreaksToTicks:Het,parseAxisBreakOption:Wet,identifyAxisBreak:Yet,serializeAxisBreakIdentifier:Uet,retrieveAxisBreakPairs:Xet,getTicksBreakOutwardTransform:Zet,parseAxisBreakOptionInwardTransform:qet,makeAxisLabelFormatterParamBreak:Ket})}var Qet=Ka();function tnt(t,e){var n=Object(b["find"])(t,(function(t){return od().identifyAxisBreak(t.parsedBreak.breakOption,e.breakOption)}));return n||t.push(n={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),n}function ent(t){Object(b["each"])(t,(function(t){return t.shouldRemove=!0}))}function nnt(t){for(var e=t.length-1;e>=0;e--)t[e].shouldRemove&&t.splice(e,1)}function rnt(t,e,n,r,i){var a=n.axis;if(!a.scale.isBlank()&&od()){var o=od().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),(function(t){return t["break"]}),!1);if(o.length){var s=n.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),c=s.get("zigzagMaxSpan");u=Math.max(2,u||0),c=Math.max(u,c||0);var h=s.get("expandOnClick"),d=s.get("zigzagZ"),p=s.getModel("itemStyle"),f=p.getItemStyle(),g=f.stroke,y=f.lineWidth,v=f.lineDash,m=f.fill,x=new vi({ignoreModelZ:!0}),b=a.isHorizontal(),_=Qet(e).visualList||(Qet(e).visualList=[]);ent(_);for(var w=function(t){var e=o[t][0]["break"].parsedBreak,r=[];r[0]=a.toGlobalCoord(a.dataToCoord(e.vmin,!0)),r[1]=a.toGlobalCoord(a.dataToCoord(e.vmax,!0)),r[1]<r[0]&&r.reverse();var s=tnt(_,e);s.shouldRemove=!1;var l=new vi;M(s.zigzagRandomList,l,r[0],r[1],b,e),h&&l.on("click",(function(){var t={type:bP,breaks:[{start:e.breakOption.start,end:e.breakOption.end}]};t[a.dim+"AxisIndex"]=n.componentIndex,i.dispatchAction(t)})),l.silent=!h,x.add(l)},S=0;S<o.length;S++)w(S);t.add(x),nnt(_)}}function M(t,e,n,i,a,o){var s={stroke:g,lineWidth:y,lineDash:v,fill:"none"},h=a?0:1,p=1-h,x=r[cx[p]]+r[hx[p]];function b(t){var e=[],n=[];e[h]=n[h]=t,e[p]=r[cx[p]],n[p]=x;var i={x1:e[0],y1:e[1],x2:n[0],y2:n[1]};return $l(i,i,{lineWidth:1}),e[0]=i.x1,e[1]=i.y1,e[h]}n=b(n),i=b(i);for(var _=[],w=[],S=!0,M=r[cx[p]],O=0;;O++){var I=M===r[cx[p]],T=M>=x;T&&(M=x);var C=[],A=[];C[h]=n,A[h]=i,I||T||(C[h]+=S?-l:l,A[h]-=S?l:-l),C[p]=M,A[p]=M,_.push(C),w.push(A);var D=void 0;if(O<t.length?D=t[O]:(D=Math.random(),t.push(D)),M+=D*(c-u)+u,S=!S,T)break}var k=od().serializeAxisBreakIdentifier(o.breakOption);if(e.add(new Mm({anid:"break_a_"+k,shape:{points:_},style:s,z:d})),0!==o.gapReal){e.add(new Mm({anid:"break_b_"+k,shape:{points:w},style:s,z:d}));var L=w.slice();L.reverse();var P=_.concat(L);e.add(new _m({anid:"break_c_"+k,shape:{points:P},style:{fill:m,opacity:f.opacity},z:d}))}}}function int(t,e,n,r){var i=t.axis,a=n.transform;Object(b["assert"])(r.style);var o=i.getExtent();i.inverse&&(o=o.slice(),o.reverse());var s=od().retrieveAxisBreakPairs(i.scale.getTicks({breakTicks:"only_break"}),(function(t){return t["break"]}),!1),l=Object(b["map"])(s,(function(t){var e=t[0]["break"].parsedBreak,n=[i.dataToCoord(e.vmin,!0),i.dataToCoord(e.vmax,!0)];return n[0]>n[1]&&n.reverse(),{coordPair:n,brkId:od().serializeAxisBreakIdentifier(e.breakOption)}}));l.sort((function(t,e){return t.coordPair[0]-e.coordPair[0]}));for(var u=o[0],c=null,h=0;h<l.length;h++){var d=l[h],p=Math.max(d.coordPair[0],o[0]),f=Math.min(d.coordPair[1],o[1]);u<=p&&g(u,p,c,d),u=f,c=d}function g(t,n,i,o){function s(t,e){a&&(G(t,t,a),G(e,e,a))}function l(t,e){var n={x1:t[0],y1:t[1],x2:e[0],y2:e[1]};$l(n,n,r.style),t[0]=n.x1,t[1]=n.y1,e[0]=n.x2,e[1]=n.y2}var u=[t,0],c=[n,0],h=[t,5],d=[n,5];s(u,h),l(u,h),s(c,d),l(c,d),l(u,c);var p=new Cm(Object(b["extend"])({shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]}},r));e.add(p),p.anid="breakLine_"+(i?i.brkId:"\0")+"_\0_"+(o?o.brkId:"\0")}u<=o[1]&&g(u,o[1],c,null)}function ant(t,e,n){if(!Object(b["find"])(n,(function(t){return!t}))){var r=new Et;if(GA(n[0],n[1],r,{direction:-(t?e+Math.PI:e),touchThreshold:0,bidirectional:!1})){var i=Tt();Lt(i,i,-e);var a=Object(b["map"])(n,(function(t){return t.transform?Dt(Tt(),i,t.transform):i})),o=.5;if(v(0)||v(1)){var s=Object(b["map"])(n,(function(t,e){var n=t.localRect.clone();return n.applyTransform(a[e]),n})),l=new Et;l.copy(n[0].label).add(n[1].label).scale(.5),l.transform(i);var u=r.clone().transform(i),c=s[0].x+s[1].x+(u.x>=0?s[0].width:s[1].width),h=(c+u.x)/2-l.x,d=Math.min(h,h-u.x),p=Math.max(h,h-u.x),f=p<0?p:d>0?d:0;o=(h-f)/u.x}var g=new Et,y=new Et;Et.scale(g,r,-o),Et.scale(y,r,1-o),EA(n[0],g),EA(n[1],y)}}function v(t){var e=n[0].localRect,r=new Et(e[hx[t]]*a[0][0],e[hx[t]]*a[0][1]);return Math.abs(r.y)<1e-5}}function ont(t,e){var n={breaks:[]};return Object(b["each"])(e.breaks,(function(r){if(r){var i=Object(b["find"])(t.get("breaks",!0),(function(t){return od().identifyAxisBreak(t,r)}));if(i){var a=e.type,o={isExpanded:!!i.isExpanded};i.isExpanded=a===bP||a!==_P&&(a===wP?!i.isExpanded:i.isExpanded),n.breaks.push({start:i.start,end:i.end,isExpanded:!!i.isExpanded,old:o})}}})),n}function snt(){mP({adjustBreakLabelPair:ant,buildAxisBreakLine:int,rectCoordBuildBreakAxis:rnt,updateModelAxisBreak:ont})}function lnt(t){CP(t),Jet(),snt()}function unt(){VN(cnt)}function cnt(t,e){Object(b["each"])(t,(function(t){if(!t.model.get(["axisLabel","inside"])){var n=hnt(t);if(n){var r=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]);e[r]-=n[r]+i,"top"===t.position?e.y+=n.height+i:"left"===t.position&&(e.x+=n.width+i)}}}))}function hnt(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,i,a=n.getExtent();n instanceof lI?i=n.count():(r=n.getTicks(),i=r.length);var o,s=t.getLabelModel(),l=WI(t),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var h=r?r[c]:{value:a[0]+c},d=l(h,c),p=s.getTextRect(d),f=g(p,s.get("rotate")||0);o?o.union(f):o=f}return o}function g(t,e){var n=e*Math.PI/180,r=t.width,i=t.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new ue(t.x,t.y,a,o);return s}}TM([TD]),TM([sL]),TM([yP,TR,tN,DE,rz,dF,hH,VG,pY,CY,zY,KY,$X,kZ,JZ,Dq,Bq,l$,m$,Z$,oK,CK,aQ]),TM(a0),TM(t1),TM(oF),TM(S1),TM(qX),TM(P1),TM(X2),TM(h5),TM(J3),TM(j4),TM(i0),TM(p8),TM(y8),TM(z8),TM(h6),TM(S6),TM(N6),TM(d9),TM(X9),TM(A9),TM(U9),TM(G7),TM(R7),TM(H7),TM(q7),TM(ntt),TM(xtt),TM(wtt),TM(Ret),TM(eD),TM(lnt),TM(unt),TM(kE)},"340b":function(t,e,n){t.exports={addDays:n("8946"),addHours:n("1cc6"),addISOYears:n("27a1"),addMilliseconds:n("ec1f"),addMinutes:n("72b7"),addMonths:n("6665"),addQuarters:n("f5dd"),addSeconds:n("af1b"),addWeeks:n("7a83"),addYears:n("fcb3"),areRangesOverlapping:n("eaa5"),closestIndexTo:n("7fd8"),closestTo:n("4f67"),compareAsc:n("0d3e"),compareDesc:n("c873"),differenceInCalendarDays:n("d420"),differenceInCalendarISOWeeks:n("82dc"),differenceInCalendarISOYears:n("f9ff"),differenceInCalendarMonths:n("b2e9"),differenceInCalendarQuarters:n("fb36"),differenceInCalendarWeeks:n("2f1a"),differenceInCalendarYears:n("2a9c"),differenceInDays:n("3bc7"),differenceInHours:n("d2ed"),differenceInISOYears:n("b3f5"),differenceInMilliseconds:n("e785"),differenceInMinutes:n("6570"),differenceInMonths:n("17cd"),differenceInQuarters:n("8301"),differenceInSeconds:n("e13a"),differenceInWeeks:n("ee91"),differenceInYears:n("6fcc"),distanceInWords:n("366b"),distanceInWordsStrict:n("bb7c"),distanceInWordsToNow:n("6254"),eachDay:n("c4c2"),endOfDay:n("9744"),endOfHour:n("271a"),endOfISOWeek:n("4175"),endOfISOYear:n("861d"),endOfMinute:n("3ac3"),endOfMonth:n("d6f8"),endOfQuarter:n("3691"),endOfSecond:n("145e"),endOfToday:n("7443"),endOfTomorrow:n("6f4e"),endOfWeek:n("7494"),endOfYear:n("d975"),endOfYesterday:n("e51d"),format:n("70f2"),getDate:n("b60f"),getDay:n("c2b5"),getDayOfYear:n("580f"),getDaysInMonth:n("5416"),getDaysInYear:n("dddf"),getHours:n("5d95"),getISODay:n("84b9"),getISOWeek:n("81fc"),getISOWeeksInYear:n("3b7b"),getISOYear:n("8964"),getMilliseconds:n("8c81"),getMinutes:n("c589"),getMonth:n("7338"),getOverlappingDaysInRanges:n("6337"),getQuarter:n("b8f9"),getSeconds:n("231c"),getTime:n("902e"),getYear:n("10c8"),isAfter:n("a431"),isBefore:n("6b8f"),isDate:n("a735"),isEqual:n("abd4"),isFirstDayOfMonth:n("353e"),isFriday:n("a852"),isFuture:n("2b67"),isLastDayOfMonth:n("3eee"),isLeapYear:n("acc4"),isMonday:n("2507"),isPast:n("a935"),isSameDay:n("fd39"),isSameHour:n("662a"),isSameISOWeek:n("ccce"),isSameISOYear:n("2fff"),isSameMinute:n("f564"),isSameMonth:n("5a60"),isSameQuarter:n("9aaa"),isSameSecond:n("c6ae"),isSameWeek:n("1baf"),isSameYear:n("26d5"),isSaturday:n("48a6"),isSunday:n("2b57"),isThisHour:n("0157"),isThisISOWeek:n("cc64"),isThisISOYear:n("97af"),isThisMinute:n("3ef9"),isThisMonth:n("9bb9"),isThisQuarter:n("2a80"),isThisSecond:n("e620"),isThisWeek:n("2d23"),isThisYear:n("f66d"),isThursday:n("5a38"),isToday:n("30d1"),isTomorrow:n("20b1"),isTuesday:n("7606"),isValid:n("7eea"),isWednesday:n("c980"),isWeekend:n("9ad8"),isWithinRange:n("f56a"),isYesterday:n("c4f9"),lastDayOfISOWeek:n("5292"),lastDayOfISOYear:n("de13"),lastDayOfMonth:n("eca2"),lastDayOfQuarter:n("ce3d"),lastDayOfWeek:n("cb96"),lastDayOfYear:n("b8a7"),max:n("95ea"),min:n("1a84"),parse:n("c8d5"),setDate:n("957f"),setDay:n("b78a"),setDayOfYear:n("9530"),setHours:n("6f00"),setISODay:n("fa76"),setISOWeek:n("e73d"),setISOYear:n("9706"),setMilliseconds:n("d473"),setMinutes:n("8aed"),setMonth:n("3814"),setQuarter:n("158b"),setSeconds:n("9113"),setYear:n("2f8f"),startOfDay:n("0978"),startOfHour:n("fbaf"),startOfISOWeek:n("b4c7"),startOfISOYear:n("4497"),startOfMinute:n("e96b"),startOfMonth:n("942b"),startOfQuarter:n("4399"),startOfSecond:n("2299"),startOfToday:n("3cae"),startOfTomorrow:n("8148"),startOfWeek:n("c7ce"),startOfYear:n("a4b7"),startOfYesterday:n("693a"),subDays:n("e2ff"),subHours:n("fb98"),subISOYears:n("df35"),subMilliseconds:n("badb"),subMinutes:n("18b7"),subMonths:n("12fd"),subQuarters:n("d4ae"),subSeconds:n("83f0"),subWeeks:n("e1ca"),subYears:n("8902")}},"34ef":function(t,e,n){},"353e":function(t,e,n){var r=n("c8d5");function i(t){return 1===r(t).getDate()}t.exports=i},"366b":function(t,e,n){var r=n("c873"),i=n("c8d5"),a=n("e13a"),o=n("17cd"),s=n("52cf"),l=1440,u=2520,c=43200,h=86400;function d(t,e,n){var d=n||{},p=r(t,e),f=d.locale,g=s.distanceInWords.localize;f&&f.distanceInWords&&f.distanceInWords.localize&&(g=f.distanceInWords.localize);var y,v,m={addSuffix:Boolean(d.addSuffix),comparison:p};p>0?(y=i(t),v=i(e)):(y=i(e),v=i(t));var x,b=a(v,y),_=v.getTimezoneOffset()-y.getTimezoneOffset(),w=Math.round(b/60)-_;if(w<2)return d.includeSeconds?b<5?g("lessThanXSeconds",5,m):b<10?g("lessThanXSeconds",10,m):b<20?g("lessThanXSeconds",20,m):b<40?g("halfAMinute",null,m):g(b<60?"lessThanXMinutes":"xMinutes",1,m):0===w?g("lessThanXMinutes",1,m):g("xMinutes",w,m);if(w<45)return g("xMinutes",w,m);if(w<90)return g("aboutXHours",1,m);if(w<l){var S=Math.round(w/60);return g("aboutXHours",S,m)}if(w<u)return g("xDays",1,m);if(w<c){var M=Math.round(w/l);return g("xDays",M,m)}if(w<h)return x=Math.round(w/c),g("aboutXMonths",x,m);if(x=o(v,y),x<12){var O=Math.round(w/c);return g("xMonths",O,m)}var I=x%12,T=Math.floor(x/12);return I<3?g("aboutXYears",T,m):I<9?g("overXYears",T,m):g("almostXYears",T+1,m)}t.exports=d},3691:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getMonth(),i=n-n%3+3;return e.setMonth(i,0),e.setHours(23,59,59,999),e}t.exports=i},3814:function(t,e,n){var r=n("c8d5"),i=n("5416");function a(t,e){var n=r(t),a=Number(e),o=n.getFullYear(),s=n.getDate(),l=new Date(0);l.setFullYear(o,a,15),l.setHours(0,0,0,0);var u=i(l);return n.setMonth(a,Math.min(s,u)),n}t.exports=a},"3ac3":function(t,e,n){var r=n("c8d5");function i(t){var e=r(t);return e.setSeconds(59,999),e}t.exports=i},"3b7b":function(t,e,n){var r=n("4497"),i=n("7a83"),a=6048e5;function o(t){var e=r(t),n=r(i(e,60)),o=n.valueOf()-e.valueOf();return Math.round(o/a)}t.exports=o},"3bc7":function(t,e,n){var r=n("c8d5"),i=n("d420"),a=n("0d3e");function o(t,e){var n=r(t),o=r(e),s=a(n,o),l=Math.abs(i(n,o));n.setDate(n.getDate()-s*l);var u=a(n,o)===-s;return s*(l-u)}t.exports=o},"3cae":function(t,e,n){var r=n("0978");function i(){return r(new Date)}t.exports=i},"3cef":function(t,e,n){"use strict";n("033d")},"3eee":function(t,e,n){var r=n("c8d5"),i=n("9744"),a=n("d6f8");function o(t){var e=r(t);return i(e).getTime()===a(e).getTime()}t.exports=o},"3ef9":function(t,e,n){var r=n("f564");function i(t){return r(new Date,t)}t.exports=i},4175:function(t,e,n){var r=n("7494");function i(t){return r(t,{weekStartsOn:1})}t.exports=i},"41ef":function(t,e,n){"use strict";n.r(e),n.d(e,"parseCssInt",(function(){return u})),n.d(e,"parseCssFloat",(function(){return c})),n.d(e,"parse",(function(){return m})),n.d(e,"lift",(function(){return _})),n.d(e,"toHex",(function(){return w})),n.d(e,"fastLerp",(function(){return S})),n.d(e,"fastMapToColor",(function(){return M})),n.d(e,"lerp",(function(){return O})),n.d(e,"mapToColor",(function(){return I})),n.d(e,"modifyHSL",(function(){return T})),n.d(e,"modifyAlpha",(function(){return C})),n.d(e,"stringify",(function(){return A})),n.d(e,"lum",(function(){return D})),n.d(e,"random",(function(){return k})),n.d(e,"liftColor",(function(){return P}));var r=n("d51b"),i=n("6d8b"),a={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function o(t){return t=Math.round(t),t<0?0:t>255?255:t}function s(t){return t=Math.round(t),t<0?0:t>360?360:t}function l(t){return t<0?0:t>1?1:t}function u(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function c(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?l(parseFloat(e)/100):l(parseFloat(e))}function h(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function d(t,e,n){return t+(e-t)*n}function p(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function f(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var g=new r["a"](20),y=null;function v(t,e){y&&f(y,e),y=g.put(t,y||e.slice())}function m(t,e){if(t){e=e||[];var n=g.get(t);if(n)return f(e,n);t+="";var r=t.replace(/ /g,"").toLowerCase();if(r in a)return f(e,a[r]),v(t,e),e;var i=r.length;if("#"!==r.charAt(0)){var o=r.indexOf("("),s=r.indexOf(")");if(-1!==o&&s+1===i){var l=r.substr(0,o),h=r.substr(o+1,s-(o+1)).split(","),d=1;switch(l){case"rgba":if(4!==h.length)return 3===h.length?p(e,+h[0],+h[1],+h[2],1):p(e,0,0,0,1);d=c(h.pop());case"rgb":return h.length>=3?(p(e,u(h[0]),u(h[1]),u(h[2]),3===h.length?d:c(h[3])),v(t,e),e):void p(e,0,0,0,1);case"hsla":return 4!==h.length?void p(e,0,0,0,1):(h[3]=c(h[3]),x(h,e),v(t,e),e);case"hsl":return 3!==h.length?void p(e,0,0,0,1):(x(h,e),v(t,e),e);default:return}}p(e,0,0,0,1)}else{if(4===i||5===i){var y=parseInt(r.slice(1,4),16);return y>=0&&y<=4095?(p(e,(3840&y)>>4|(3840&y)>>8,240&y|(240&y)>>4,15&y|(15&y)<<4,5===i?parseInt(r.slice(4),16)/15:1),v(t,e),e):void p(e,0,0,0,1)}if(7===i||9===i){y=parseInt(r.slice(1,7),16);return y>=0&&y<=16777215?(p(e,(16711680&y)>>16,(65280&y)>>8,255&y,9===i?parseInt(r.slice(7),16)/255:1),v(t,e),e):void p(e,0,0,0,1)}}}}function x(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=c(t[1]),i=c(t[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return e=e||[],p(e,o(255*h(s,a,n+1/3)),o(255*h(s,a,n)),o(255*h(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function b(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(r,i,a),s=Math.max(r,i,a),l=s-o,u=(s+o)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,d=((s-a)/6+l/2)/l;r===s?e=d-h:i===s?e=1/3+c-d:a===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}function _(t,e){var n=m(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return A(n,4===n.length?"rgba":"rgb")}}function w(t){var e=m(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function S(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),s=e[i],u=e[a],c=r-i;return n[0]=o(d(s[0],u[0],c)),n[1]=o(d(s[1],u[1],c)),n[2]=o(d(s[2],u[2],c)),n[3]=l(d(s[3],u[3],c)),n}}var M=S;function O(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),s=m(e[i]),u=m(e[a]),c=r-i,h=A([o(d(s[0],u[0],c)),o(d(s[1],u[1],c)),o(d(s[2],u[2],c)),l(d(s[3],u[3],c))],"rgba");return n?{color:h,leftIndex:i,rightIndex:a,value:r}:h}}var I=O;function T(t,e,n,r){var a=m(t);if(t)return a=b(a),null!=e&&(a[0]=s(Object(i["isFunction"])(e)?e(a[0]):e)),null!=n&&(a[1]=c(Object(i["isFunction"])(n)?n(a[1]):n)),null!=r&&(a[2]=c(Object(i["isFunction"])(r)?r(a[2]):r)),A(x(a),"rgba")}function C(t,e){var n=m(t);if(n&&null!=e)return n[3]=l(e),A(n,"rgba")}function A(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function D(t,e){var n=m(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function k(){return A([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var L=new r["a"](100);function P(t){if(Object(i["isString"])(t)){var e=L.get(t);return e||(e=_(t,-.1),L.put(t,e)),e}if(Object(i["isGradientObject"])(t)){var n=Object(i["extend"])({},t);return n.colorStops=Object(i["map"])(t.colorStops,(function(t){return{offset:t.offset,color:_(t.color,-.1)}})),n}return t}},4399:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getMonth(),i=n-n%3;return e.setMonth(i,1),e.setHours(0,0,0,0),e}t.exports=i},4497:function(t,e,n){var r=n("8964"),i=n("b4c7");function a(t){var e=r(t),n=new Date(0);n.setFullYear(e,0,4),n.setHours(0,0,0,0);var a=i(n);return a}t.exports=a},"48a6":function(t,e,n){var r=n("c8d5");function i(t){return 6===r(t).getDay()}t.exports=i},"493c":function(t,e,n){},"4f67":function(t,e,n){var r=n("c8d5");function i(t,e){if(!(e instanceof Array))throw new TypeError(toString.call(e)+" is not an instance of Array");var n,i,a=r(t),o=a.getTime();return e.forEach((function(t){var e=r(t),a=Math.abs(o-e.getTime());(void 0===n||a<i)&&(n=e,i=a)})),n}t.exports=i},5292:function(t,e,n){var r=n("cb96");function i(t){return r(t,{weekStartsOn:1})}t.exports=i},"52cf":function(t,e,n){var r=n("2d96"),i=n("e830");t.exports={distanceInWords:r(),format:i()}},5385:function(t,e,n){},5416:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getFullYear(),i=e.getMonth(),a=new Date(0);return a.setFullYear(n,i+1,0),a.setHours(0,0,0,0),a.getDate()}t.exports=i},5465:function(t,e){var n=6e4;t.exports=function(t){var e=new Date(t.getTime()),r=e.getTimezoneOffset();e.setSeconds(0,0);var i=e.getTime()%n;return r*n+i}},"580f":function(t,e,n){var r=n("c8d5"),i=n("a4b7"),a=n("d420");function o(t){var e=r(t),n=a(e,i(e)),o=n+1;return o}t.exports=o},"5a38":function(t,e,n){var r=n("c8d5");function i(t){return 4===r(t).getDay()}t.exports=i},"5a60":function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=r(e);return n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()}t.exports=i},"5d95":function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getHours();return n}t.exports=i},6254:function(t,e,n){var r=n("366b");function i(t,e){return r(Date.now(),t,e)}t.exports=i},6337:function(t,e,n){var r=n("c8d5"),i=864e5;function a(t,e,n,a){var o=r(t).getTime(),s=r(e).getTime(),l=r(n).getTime(),u=r(a).getTime();if(o>s||l>u)throw new Error("The start of the range cannot be after the end of the range");var c=o<u&&l<s;if(!c)return 0;var h=l<o?o:l,d=u>s?s:u,p=d-h;return Math.ceil(p/i)}t.exports=a},6570:function(t,e,n){var r=n("e785"),i=6e4;function a(t,e){var n=r(t,e)/i;return n>0?Math.floor(n):Math.ceil(n)}t.exports=a},"662a":function(t,e,n){var r=n("fbaf");function i(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}t.exports=i},6665:function(t,e,n){var r=n("c8d5"),i=n("5416");function a(t,e){var n=r(t),a=Number(e),o=n.getMonth()+a,s=new Date(0);s.setFullYear(n.getFullYear(),o,1),s.setHours(0,0,0,0);var l=i(s);return n.setMonth(o,Math.min(l,n.getDate())),n}t.exports=a},"693a":function(t,e){function n(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),r=t.getDate(),i=new Date(0);return i.setFullYear(e,n,r-1),i.setHours(0,0,0,0),i}t.exports=n},"6b8f":function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=r(e);return n.getTime()<i.getTime()}t.exports=i},"6d8b":function(t,e,n){"use strict";n.r(e),n.d(e,"guid",(function(){return v})),n.d(e,"logError",(function(){return m})),n.d(e,"clone",(function(){return x})),n.d(e,"merge",(function(){return b})),n.d(e,"mergeAll",(function(){return _})),n.d(e,"extend",(function(){return w})),n.d(e,"assignProps",(function(){return S})),n.d(e,"defaults",(function(){return M})),n.d(e,"createCanvas",(function(){return O})),n.d(e,"indexOf",(function(){return I})),n.d(e,"inherits",(function(){return T})),n.d(e,"mixin",(function(){return C})),n.d(e,"isArrayLike",(function(){return A})),n.d(e,"each",(function(){return D})),n.d(e,"map",(function(){return k})),n.d(e,"reduce",(function(){return L})),n.d(e,"filter",(function(){return P})),n.d(e,"find",(function(){return j})),n.d(e,"keys",(function(){return R})),n.d(e,"bind",(function(){return E})),n.d(e,"curry",(function(){return z})),n.d(e,"isArray",(function(){return B})),n.d(e,"isFunction",(function(){return V})),n.d(e,"isString",(function(){return F})),n.d(e,"isStringSafe",(function(){return H})),n.d(e,"isNumber",(function(){return G})),n.d(e,"isObject",(function(){return W})),n.d(e,"isBuiltInObject",(function(){return Y})),n.d(e,"isTypedArray",(function(){return U})),n.d(e,"isDom",(function(){return X})),n.d(e,"isGradientObject",(function(){return Z})),n.d(e,"isImagePatternObject",(function(){return q})),n.d(e,"isRegExp",(function(){return $})),n.d(e,"eqNaN",(function(){return K})),n.d(e,"retrieve",(function(){return J})),n.d(e,"retrieve2",(function(){return Q})),n.d(e,"retrieve3",(function(){return tt})),n.d(e,"slice",(function(){return et})),n.d(e,"normalizeCssArray",(function(){return nt})),n.d(e,"assert",(function(){return rt})),n.d(e,"trim",(function(){return it})),n.d(e,"setAsPrimitive",(function(){return ot})),n.d(e,"isPrimitive",(function(){return st})),n.d(e,"HashMap",(function(){return ht})),n.d(e,"createHashMap",(function(){return dt})),n.d(e,"concatArray",(function(){return pt})),n.d(e,"createObject",(function(){return ft})),n.d(e,"disableUserSelect",(function(){return gt})),n.d(e,"hasOwn",(function(){return yt})),n.d(e,"noop",(function(){return vt})),n.d(e,"RADIAN_TO_DEGREE",(function(){return mt})),n.d(e,"EPSILON",(function(){return xt}));var r=n("726e"),i=L(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),a=L(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),o=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,d=function(){}.constructor,p=d?d.prototype:null,f="__proto__",g=2311,y=Math.pow(2,53)-1;function v(){return g>=y&&(g=0),g++}function m(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!==typeof console&&console.error.apply(console,t)}function x(t){if(null==t||"object"!==typeof t)return t;var e=t,n=o.call(t);if("[object Array]"===n){if(!st(t)){e=[];for(var r=0,s=t.length;r<s;r++)e[r]=x(t[r])}}else if(a[n]){if(!st(t)){var l=t.constructor;if(l.from)e=l.from(t);else{e=new l(t.length);for(r=0,s=t.length;r<s;r++)e[r]=t[r]}}}else if(!i[n]&&!st(t)&&!X(t))for(var u in e={},t)t.hasOwnProperty(u)&&u!==f&&(e[u]=x(t[u]));return e}function b(t,e,n){if(!W(e)||!W(t))return n?x(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==f){var i=t[r],a=e[r];!W(a)||!W(i)||B(a)||B(i)||X(a)||X(i)||Y(a)||Y(i)||st(a)||st(i)?!n&&r in t||(t[r]=x(e[r])):b(i,a,n)}return t}function _(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=b(n,t[r],e);return n}function w(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==f&&(t[n]=e[n]);return t}function S(t,e,n){t=t||{};for(var r=0;r<n.length;r++){var i=n[r];t[i]=e[i]}return t}function M(t,e,n){for(var r=R(e),i=0,a=r.length;i<a;i++){var o=r[i];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var O=r["d"].createCanvas;function I(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function T(t,e){var n=t.prototype;function r(){}for(var i in r.prototype=e.prototype,t.prototype=new r,n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}function C(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var a=r[i];"constructor"!==a&&(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}else M(t,e,n)}function A(t){return!!t&&("string"!==typeof t&&"number"===typeof t.length)}function D(t,e,n){if(t&&e)if(t.forEach&&t.forEach===l)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function k(t,e,n){if(!t)return[];if(!e)return et(t);if(t.map&&t.map===h)return t.map(e,n);for(var r=[],i=0,a=t.length;i<a;i++)r.push(e.call(n,t[i],i,t));return r}function L(t,e,n,r){if(t&&e){for(var i=0,a=t.length;i<a;i++)n=e.call(r,n,t[i],i,t);return n}}function P(t,e,n){if(!t)return[];if(!e)return et(t);if(t.filter&&t.filter===u)return t.filter(e,n);for(var r=[],i=0,a=t.length;i<a;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function j(t,e,n){if(t&&e)for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]}function R(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function N(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(c.call(arguments)))}}var E=p&&V(p.bind)?p.call.bind(p.bind):N;function z(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(c.call(arguments)))}}function B(t){return Array.isArray?Array.isArray(t):"[object Array]"===o.call(t)}function V(t){return"function"===typeof t}function F(t){return"string"===typeof t}function H(t){return"[object String]"===o.call(t)}function G(t){return"number"===typeof t}function W(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function Y(t){return!!i[o.call(t)]}function U(t){return!!a[o.call(t)]}function X(t){return"object"===typeof t&&"number"===typeof t.nodeType&&"object"===typeof t.ownerDocument}function Z(t){return null!=t.colorStops}function q(t){return null!=t.image}function $(t){return"[object RegExp]"===o.call(t)}function K(t){return t!==t}function J(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(null!=t[n])return t[n]}function Q(t,e){return null!=t?t:e}function tt(t,e,n){return null!=t?t:null!=e?e:n}function et(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return c.apply(t,e)}function nt(t){if("number"===typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function rt(t,e){if(!t)throw new Error(e)}function it(t){return null==t?null:"function"===typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var at="__ec_primitive__";function ot(t){t[at]=!0}function st(t){return t[at]}var lt=function(){function t(){this.data={}}return t.prototype["delete"]=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return R(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),ut="function"===typeof Map;function ct(){return ut?new Map:new lt}var ht=function(){function t(e){var n=B(e);this.data=ct();var r=this;function i(t,e){n?r.set(t,e):r.set(e,t)}e instanceof t?e.each(i):e&&D(e,i)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,r){t.call(e,n,r)}))},t.prototype.keys=function(){var t=this.data.keys();return ut?Array.from(t):t},t.prototype.removeKey=function(t){this.data["delete"](t)},t}();function dt(t){return new ht(t)}function pt(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];var i=t.length;for(r=0;r<e.length;r++)n[r+i]=e[r];return n}function ft(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&w(n,e),n}function gt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function yt(t,e){return t.hasOwnProperty(e)}function vt(){}var mt=180/Math.PI,xt=Number.EPSILON||Math.pow(2,-52)},"6f00":function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=Number(e);return n.setHours(i),n}t.exports=i},"6f4e":function(t,e){function n(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),r=t.getDate(),i=new Date(0);return i.setFullYear(e,n,r+1),i.setHours(23,59,59,999),i}t.exports=n},"6fcc":function(t,e,n){var r=n("c8d5"),i=n("2a9c"),a=n("0d3e");function o(t,e){var n=r(t),o=r(e),s=a(n,o),l=Math.abs(i(n,o));n.setFullYear(n.getFullYear()-s*l);var u=a(n,o)===-s;return s*(l-u)}t.exports=o},"70f2":function(t,e,n){var r=n("580f"),i=n("81fc"),a=n("8964"),o=n("c8d5"),s=n("7eea"),l=n("52cf");function u(t,e,n){var r=e?String(e):"YYYY-MM-DDTHH:mm:ss.SSSZ",i=n||{},a=i.locale,u=l.format.formatters,c=l.format.formattingTokensRegExp;a&&a.format&&a.format.formatters&&(u=a.format.formatters,a.format.formattingTokensRegExp&&(c=a.format.formattingTokensRegExp));var d=o(t);if(!s(d))return"Invalid Date";var p=h(r,u,c);return p(d)}var c={M:function(t){return t.getMonth()+1},MM:function(t){return f(t.getMonth()+1,2)},Q:function(t){return Math.ceil((t.getMonth()+1)/3)},D:function(t){return t.getDate()},DD:function(t){return f(t.getDate(),2)},DDD:function(t){return r(t)},DDDD:function(t){return f(r(t),3)},d:function(t){return t.getDay()},E:function(t){return t.getDay()||7},W:function(t){return i(t)},WW:function(t){return f(i(t),2)},YY:function(t){return f(t.getFullYear(),4).substr(2)},YYYY:function(t){return f(t.getFullYear(),4)},GG:function(t){return String(a(t)).substr(2)},GGGG:function(t){return a(t)},H:function(t){return t.getHours()},HH:function(t){return f(t.getHours(),2)},h:function(t){var e=t.getHours();return 0===e?12:e>12?e%12:e},hh:function(t){return f(c["h"](t),2)},m:function(t){return t.getMinutes()},mm:function(t){return f(t.getMinutes(),2)},s:function(t){return t.getSeconds()},ss:function(t){return f(t.getSeconds(),2)},S:function(t){return Math.floor(t.getMilliseconds()/100)},SS:function(t){return f(Math.floor(t.getMilliseconds()/10),2)},SSS:function(t){return f(t.getMilliseconds(),3)},Z:function(t){return p(t.getTimezoneOffset(),":")},ZZ:function(t){return p(t.getTimezoneOffset())},X:function(t){return Math.floor(t.getTime()/1e3)},x:function(t){return t.getTime()}};function h(t,e,n){var r,i,a=t.match(n),o=a.length;for(r=0;r<o;r++)i=e[a[r]]||c[a[r]],a[r]=i||d(a[r]);return function(t){for(var e="",n=0;n<o;n++)a[n]instanceof Function?e+=a[n](t,c):e+=a[n];return e}}function d(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|]$/g,""):t.replace(/\\/g,"")}function p(t,e){e=e||"";var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),a=r%60;return n+f(i,2)+e+f(a,2)}function f(t,e){var n=Math.abs(t).toString();while(n.length<e)n="0"+n;return n}t.exports=u},"716f":function(t,e,n){},"726e":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return d}));var r=12,i="sans-serif",a=r+"px "+i,o=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function u(t){var e={};if("undefined"===typeof JSON)return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-o)/s;e[r]=i}return e}var c=u(l),h={createCanvas:function(){return"undefined"!==typeof document&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,i){if(!t){var o=h.createCanvas();t=o&&o.getContext("2d")}if(t)return e!==i&&(e=t.font=i||a),t.measureText(n);n=n||"",i=i||a;var s=/((?:\d+)?\.?\d*)px/.exec(i),l=s&&+s[1]||r,u=0;if(i.indexOf("mono")>=0)u=l*n.length;else for(var d=0;d<n.length;d++){var p=c[n[d]];u+=null==p?l:p*l}return{width:u}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r},getTime:function(){return Date.now?Date.now():+new Date}};function d(t){for(var e in h)h.hasOwnProperty(e)&&t[e]&&(h[e]=t[e])}},"72b7":function(t,e,n){var r=n("ec1f"),i=6e4;function a(t,e){var n=Number(e);return r(t,n*i)}t.exports=a},"72fa":function(t,e,n){},7338:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getMonth();return n}t.exports=i},7443:function(t,e,n){var r=n("9744");function i(){return r(new Date)}t.exports=i},7494:function(t,e,n){var r=n("c8d5");function i(t,e){var n=e&&Number(e.weekStartsOn)||0,i=r(t),a=i.getDay(),o=6+(a<n?-7:0)-(a-n);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}t.exports=i},7606:function(t,e,n){var r=n("c8d5");function i(t){return 2===r(t).getDay()}t.exports=i},"781d":function(t,e,n){"use strict";n("939c")},"7a29":function(t,e,n){"use strict";(function(t){n.d(e,"p",(function(){return o})),n.d(e,"j",(function(){return l})),n.d(e,"q",(function(){return c})),n.d(e,"e",(function(){return h})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"i",(function(){return f})),n.d(e,"h",(function(){return g})),n.d(e,"l",(function(){return y})),n.d(e,"n",(function(){return m})),n.d(e,"m",(function(){return x})),n.d(e,"o",(function(){return b})),n.d(e,"k",(function(){return _})),n.d(e,"d",(function(){return w})),n.d(e,"f",(function(){return S})),n.d(e,"g",(function(){return M})),n.d(e,"c",(function(){return O}));var r=n("6d8b"),i=n("41ef"),a=Math.round;function o(t){var e;if(t&&"transparent"!==t){if("string"===typeof t&&t.indexOf("rgba")>-1){var n=Object(i["parse"])(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var s=1e-4;function l(t){return t<s&&t>-s}function u(t){return a(1e3*t)/1e3}function c(t){return a(1e4*t)/1e4}function h(t){return"matrix("+u(t[0])+","+u(t[1])+","+u(t[2])+","+u(t[3])+","+c(t[4])+","+c(t[5])+")"}var d={left:"start",right:"end",center:"middle",middle:"middle"};function p(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function f(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function g(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function y(t){return t&&!!t.image}function v(t){return t&&!!t.svgElement}function m(t){return y(t)||v(t)}function x(t){return"linear"===t.type}function b(t){return"radial"===t.type}function _(t){return t&&("linear"===t.type||"radial"===t.type)}function w(t){return"url(#"+t+")"}function S(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function M(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*r["RADIAN_TO_DEGREE"],o=Object(r["retrieve2"])(t.scaleX,1),s=Object(r["retrieve2"])(t.scaleY,1),l=t.skewX||0,u=t.skewY||0,c=[];return(e||n)&&c.push("translate("+e+"px,"+n+"px)"),i&&c.push("rotate("+i+")"),1===o&&1===s||c.push("scale("+o+","+s+")"),(l||u)&&c.push("skew("+a(l*r["RADIAN_TO_DEGREE"])+"deg, "+a(u*r["RADIAN_TO_DEGREE"])+"deg)"),c.join(" ")}var O=function(){return"undefined"!==typeof t&&"function"===typeof t.from?function(e){return t.from(e).toString("base64")}:"function"===typeof btoa&&"function"===typeof unescape&&"function"===typeof encodeURIComponent?function(t){return btoa(unescape(encodeURIComponent(t)))}:function(t){return null}}()}).call(this,n("1c35").Buffer)},"7a83":function(t,e,n){var r=n("8946");function i(t,e){var n=Number(e),i=7*n;return r(t,i)}t.exports=i},"7eea":function(t,e,n){var r=n("a735");function i(t){if(r(t))return!isNaN(t);throw new TypeError(toString.call(t)+" is not an instance of Date")}t.exports=i},"7fd8":function(t,e,n){var r=n("c8d5");function i(t,e){if(!(e instanceof Array))throw new TypeError(toString.call(e)+" is not an instance of Array");var n,i,a=r(t),o=a.getTime();return e.forEach((function(t,e){var a=r(t),s=Math.abs(o-a.getTime());(void 0===n||s<i)&&(n=e,i=s)})),n}t.exports=i},8148:function(t,e){function n(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),r=t.getDate(),i=new Date(0);return i.setFullYear(e,n,r+1),i.setHours(0,0,0,0),i}t.exports=n},8157:function(t,e,n){},"81fc":function(t,e,n){var r=n("c8d5"),i=n("b4c7"),a=n("4497"),o=6048e5;function s(t){var e=r(t),n=i(e).getTime()-a(e).getTime();return Math.round(n/o)+1}t.exports=s},"82dc":function(t,e,n){var r=n("b4c7"),i=6e4,a=6048e5;function o(t,e){var n=r(t),o=r(e),s=n.getTime()-n.getTimezoneOffset()*i,l=o.getTime()-o.getTimezoneOffset()*i;return Math.round((s-l)/a)}t.exports=o},8301:function(t,e,n){var r=n("17cd");function i(t,e){var n=r(t,e)/3;return n>0?Math.floor(n):Math.ceil(n)}t.exports=i},"83f0":function(t,e,n){var r=n("af1b");function i(t,e){var n=Number(e);return r(t,-n)}t.exports=i},"84b9":function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getDay();return 0===n&&(n=7),n}t.exports=i},"861d":function(t,e,n){var r=n("8964"),i=n("b4c7");function a(t){var e=r(t),n=new Date(0);n.setFullYear(e+1,0,4),n.setHours(0,0,0,0);var a=i(n);return a.setMilliseconds(a.getMilliseconds()-1),a}t.exports=a},8902:function(t,e,n){var r=n("fcb3");function i(t,e){var n=Number(e);return r(t,-n)}t.exports=i},8946:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=Number(e);return n.setDate(n.getDate()+i),n}t.exports=i},8964:function(t,e,n){var r=n("c8d5"),i=n("b4c7");function a(t){var e=r(t),n=e.getFullYear(),a=new Date(0);a.setFullYear(n+1,0,4),a.setHours(0,0,0,0);var o=i(a),s=new Date(0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);var l=i(s);return e.getTime()>=o.getTime()?n+1:e.getTime()>=l.getTime()?n:n-1}t.exports=a},"8aed":function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=Number(e);return n.setMinutes(i),n}t.exports=i},"8c81":function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getMilliseconds();return n}t.exports=i},"902e":function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getTime();return n}t.exports=i},"90e5":function(t,e){var n=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];function r(t){var e=[];for(var r in t)t.hasOwnProperty(r)&&e.push(r);var i=n.concat(e).sort().reverse(),a=new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+i.join("|")+"|.)","g");return a}t.exports=r},9113:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=Number(e);return n.setSeconds(i),n}t.exports=i},9152:function(t,e){
33
33
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
34
- e.read=function(t,e,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?i-1:0,d=n?-1:1,p=t[e+h];for(h+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+t[e+h],h+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+t[e+h],h+=d,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=u}return(p?-1:1)*o*Math.pow(2,a-r)},e.write=function(t,e,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,h=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,f=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),e+=o+h>=1?d/l:d*Math.pow(2,1-h),e*l>=2&&(o++,l/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(e*l-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[n+p]=255&s,p+=f,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;t[n+p]=255&o,p+=f,o/=256,u-=8);t[n+p-f]|=128*g}},"939c":function(t,e,n){},"942b":function(t,e,n){var r=n("c8d5");function i(t){var e=r(t);return e.setDate(1),e.setHours(0,0,0,0),e}t.exports=i},9530:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=Number(e);return n.setMonth(0),n.setDate(i),n}t.exports=i},"957f":function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=Number(e);return n.setDate(i),n}t.exports=i},"95ea":function(t,e,n){var r=n("c8d5");function i(){var t=Array.prototype.slice.call(arguments),e=t.map((function(t){return r(t)})),n=Math.max.apply(null,e);return new Date(n)}t.exports=i},9706:function(t,e,n){var r=n("c8d5"),i=n("4497"),a=n("d420");function o(t,e){var n=r(t),o=Number(e),s=a(n,i(n)),l=new Date(0);return l.setFullYear(o,0,4),l.setHours(0,0,0,0),n=i(l),n.setDate(n.getDate()+s),n}t.exports=o},9744:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t);return e.setHours(23,59,59,999),e}t.exports=i},"97af":function(t,e,n){var r=n("2fff");function i(t){return r(new Date,t)}t.exports=i},"9aaa":function(t,e,n){var r=n("4399");function i(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}t.exports=i},"9ad8":function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getDay();return 0===n||6===n}t.exports=i},"9bb9":function(t,e,n){var r=n("5a60");function i(t){return r(new Date,t)}t.exports=i},a1a2:function(t,e,n){"use strict";n("34ef")},a431:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=r(e);return n.getTime()>i.getTime()}t.exports=i},a4b7:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}t.exports=i},a735:function(t,e){function n(t){return t instanceof Date}t.exports=n},a852:function(t,e,n){var r=n("c8d5");function i(t){return 5===r(t).getDay()}t.exports=i},a935:function(t,e,n){var r=n("c8d5");function i(t){return r(t).getTime()<(new Date).getTime()}t.exports=i},ab58:function(t,e,n){"use strict";n("0918")},abd4:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}t.exports=i},ac06:function(t,e,n){"use strict";n("493c")},acc4:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getFullYear();return n%400===0||n%4===0&&n%100!==0}t.exports=i},ad4d:function(t,e,n){t.exports={xtColorPrimary:"#1890ff",xtColorSuccess:"#37c3a4",xtColorWarning:"#FFB74D",xtColorDanger:"#EA1D34",xtColorInfo:"#999999",xtColorPrimaryLight3:"#5DB1FF",xtColorPrimaryLight5:"#8CC8FF",xtColorPrimaryLight7:"#BADEFF",xtColorPrimaryLight8:"#D1E9FF",xtColorPrimaryLight9:"#E8F4FF",xtColorTextPrimary:"#303133",xtColorTextRegular:"#606266",xtColorTextSecondary:"#909399",xtColorTextPlaceholder:"#C0C4CC",xtColorTextDisabled:"#C0C4CC",xtColorBgPrimary:"#ffffff",xtColorBgSecondary:"#f5f7fa",xtColorBgHover:"#f5f5f5",xtColorBgContainer:"#f0f0f2",xtColorBgOverlay:"#ffffff",xtColorBorder:"#DCDFE6",xtColorBorderLight:"#E4E7ED",xtColorBorderLighter:"#EBEEF5",xtColorBorderExtraLight:"#F2F6FC",xtFontSizeExtraLarge:"20px",xtFontSizeLarge:"18px",xtFontSizeMedium:"16px",xtFontSizeBase:"14px",xtFontSizeSmall:"13px",xtFontSizeExtraSmall:"12px",xtSpacingXs:"4px",xtSpacingSm:"8px",xtSpacingMd:"12px",xtSpacingLg:"16px",xtSpacingXl:"20px",xtBorderRadiusBase:"4px",xtBorderRadiusSmall:"2px",xtBorderRadiusRound:"20px",xtBorderRadiusCircle:"50%",xtShadowSm:"0 2px 4px rgba(0, 0, 0, 0.04)",xtShadowMd:"0 4px 12px rgba(0, 0, 0, 0.08)",xtShadowLg:"0 8px 24px rgba(0, 0, 0, 0.12)",xtTransitionDuration:"0.3s",xtTransitionDurationFast:"0.2s"}},af1b:function(t,e,n){var r=n("ec1f");function i(t,e){var n=Number(e);return r(t,1e3*n)}t.exports=i},b2e9:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=r(e),a=n.getFullYear()-i.getFullYear(),o=n.getMonth()-i.getMonth();return 12*a+o}t.exports=i},b3f5:function(t,e,n){var r=n("c8d5"),i=n("f9ff"),a=n("0d3e"),o=n("df35");function s(t,e){var n=r(t),s=r(e),l=a(n,s),u=Math.abs(i(n,s));n=o(n,l*u);var c=a(n,s)===-l;return l*(u-c)}t.exports=s},b4c7:function(t,e,n){var r=n("c7ce");function i(t){return r(t,{weekStartsOn:1})}t.exports=i},b60f:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getDate();return n}t.exports=i},b78a:function(t,e,n){var r=n("c8d5"),i=n("8946");function a(t,e,n){var a=n&&Number(n.weekStartsOn)||0,o=r(t),s=Number(e),l=o.getDay(),u=s%7,c=(u+7)%7,h=(c<a?7:0)+s-l;return i(o,h)}t.exports=a},b8a7:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(0,0,0,0),e}t.exports=i},b8f9:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=Math.floor(e.getMonth()/3)+1;return n}t.exports=i},badb:function(t,e,n){var r=n("ec1f");function i(t,e){var n=Number(e);return r(t,-n)}t.exports=i},bb7c:function(t,e,n){var r=n("c873"),i=n("c8d5"),a=n("e13a"),o=n("52cf"),s=1440,l=43200,u=525600;function c(t,e,n){var c=n||{},h=r(t,e),d=c.locale,p=o.distanceInWords.localize;d&&d.distanceInWords&&d.distanceInWords.localize&&(p=d.distanceInWords.localize);var f,g,y,v={addSuffix:Boolean(c.addSuffix),comparison:h};h>0?(f=i(t),g=i(e)):(f=i(e),g=i(t));var m,x,b,_,w=Math[c.partialMethod?String(c.partialMethod):"floor"],S=a(g,f),M=g.getTimezoneOffset()-f.getTimezoneOffset(),O=w(S/60)-M;if(y=c.unit?String(c.unit):O<1?"s":O<60?"m":O<s?"h":O<l?"d":O<u?"M":"Y","s"===y)return p("xSeconds",S,v);if("m"===y)return p("xMinutes",O,v);if("h"===y)return m=w(O/60),p("xHours",m,v);if("d"===y)return x=w(O/s),p("xDays",x,v);if("M"===y)return b=w(O/l),p("xMonths",b,v);if("Y"===y)return _=w(O/u),p("xYears",_,v);throw new Error("Unknown unit: "+y)}t.exports=c},bd59:function(t,e,n){"use strict";n("8157")},c2b5:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getDay();return n}t.exports=i},c4c2:function(t,e,n){var r=n("c8d5");function i(t,e,n){var i=r(t),a=r(e),o=void 0!==n?n:1,s=a.getTime();if(i.getTime()>s)throw new Error("The first date cannot be after the second date");var l=[],u=i;u.setHours(0,0,0,0);while(u.getTime()<=s)l.push(r(u)),u.setDate(u.getDate()+o);return l}t.exports=i},c4f9:function(t,e,n){var r=n("0978");function i(t){var e=new Date;return e.setDate(e.getDate()-1),r(t).getTime()===r(e).getTime()}t.exports=i},c589:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getMinutes();return n}t.exports=i},c6ae:function(t,e,n){var r=n("2299");function i(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}t.exports=i},c759:function(t,e,n){},c7ce:function(t,e,n){var r=n("c8d5");function i(t,e){var n=e&&Number(e.weekStartsOn)||0,i=r(t),a=i.getDay(),o=(a<n?7:0)+a-n;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}t.exports=i},c873:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=n.getTime(),a=r(e),o=a.getTime();return i>o?-1:i<o?1:0}t.exports=i},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c8d5:function(t,e,n){var r=n("5465"),i=n("a735"),a=36e5,o=6e4,s=2,l=/[T ]/,u=/:/,c=/^(\d{2})$/,h=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],d=/^(\d{4})/,p=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],f=/^-(\d{2})$/,g=/^-?(\d{3})$/,y=/^-?(\d{2})-?(\d{2})$/,v=/^-?W(\d{2})$/,m=/^-?W(\d{2})-?(\d{1})$/,x=/^(\d{2}([.,]\d*)?)$/,b=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,_=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,w=/([Z+-].*)$/,S=/^(Z)$/,M=/^([+-])(\d{2})$/,O=/^([+-])(\d{2}):?(\d{2})$/;function I(t,e){if(i(t))return new Date(t.getTime());if("string"!==typeof t)return new Date(t);var n=e||{},a=n.additionalDigits;a=null==a?s:Number(a);var l=T(t),u=C(l.date,a),c=u.year,h=u.restDateString,d=A(h,c);if(d){var p,f=d.getTime(),g=0;if(l.time&&(g=D(l.time)),l.timezone)p=k(l.timezone)*o;else{var y=f+g,v=new Date(y);p=r(v);var m=new Date(y);m.setDate(v.getDate()+1);var x=r(m)-r(v);x>0&&(p+=x)}return new Date(f+g+p)}return new Date(t)}function T(t){var e,n={},r=t.split(l);if(u.test(r[0])?(n.date=null,e=r[0]):(n.date=r[0],e=r[1]),e){var i=w.exec(e);i?(n.time=e.replace(i[1],""),n.timezone=i[1]):n.time=e}return n}function C(t,e){var n,r=h[e],i=p[e];if(n=d.exec(t)||i.exec(t),n){var a=n[1];return{year:parseInt(a,10),restDateString:t.slice(a.length)}}if(n=c.exec(t)||r.exec(t),n){var o=n[1];return{year:100*parseInt(o,10),restDateString:t.slice(o.length)}}return{year:null}}function A(t,e){if(null===e)return null;var n,r,i,a;if(0===t.length)return r=new Date(0),r.setUTCFullYear(e),r;if(n=f.exec(t),n)return r=new Date(0),i=parseInt(n[1],10)-1,r.setUTCFullYear(e,i),r;if(n=g.exec(t),n){r=new Date(0);var o=parseInt(n[1],10);return r.setUTCFullYear(e,0,o),r}if(n=y.exec(t),n){r=new Date(0),i=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return r.setUTCFullYear(e,i,s),r}if(n=v.exec(t),n)return a=parseInt(n[1],10)-1,L(e,a);if(n=m.exec(t),n){a=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return L(e,a,l)}return null}function D(t){var e,n,r;if(e=x.exec(t),e)return n=parseFloat(e[1].replace(",",".")),n%24*a;if(e=b.exec(t),e)return n=parseInt(e[1],10),r=parseFloat(e[2].replace(",",".")),n%24*a+r*o;if(e=_.exec(t),e){n=parseInt(e[1],10),r=parseInt(e[2],10);var i=parseFloat(e[3].replace(",","."));return n%24*a+r*o+1e3*i}return null}function k(t){var e,n;return e=S.exec(t),e?0:(e=M.exec(t),e?(n=60*parseInt(e[2],10),"+"===e[1]?-n:n):(e=O.exec(t),e?(n=60*parseInt(e[2],10)+parseInt(e[3],10),"+"===e[1]?-n:n):0))}function L(t,e,n){e=e||0,n=n||0;var r=new Date(0);r.setUTCFullYear(t,0,4);var i=r.getUTCDay()||7,a=7*e+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}t.exports=I},c980:function(t,e,n){var r=n("c8d5");function i(t){return 3===r(t).getDay()}t.exports=i},cb96:function(t,e,n){var r=n("c8d5");function i(t,e){var n=e&&Number(e.weekStartsOn)||0,i=r(t),a=i.getDay(),o=6+(a<n?-7:0)-(a-n);return i.setHours(0,0,0,0),i.setDate(i.getDate()+o),i}t.exports=i},cc64:function(t,e,n){var r=n("ccce");function i(t){return r(new Date,t)}t.exports=i},ccce:function(t,e,n){var r=n("1baf");function i(t,e){return r(t,e,{weekStartsOn:1})}t.exports=i},ce3d:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getMonth(),i=n-n%3+3;return e.setMonth(i,0),e.setHours(0,0,0,0),e}t.exports=i},cf5f:function(t,e,n){},d2ed:function(t,e,n){var r=n("e785"),i=36e5;function a(t,e){var n=r(t,e)/i;return n>0?Math.floor(n):Math.ceil(n)}t.exports=a},d420:function(t,e,n){var r=n("0978"),i=6e4,a=864e5;function o(t,e){var n=r(t),o=r(e),s=n.getTime()-n.getTimezoneOffset()*i,l=o.getTime()-o.getTimezoneOffset()*i;return Math.round((s-l)/a)}t.exports=o},d473:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=Number(e);return n.setMilliseconds(i),n}t.exports=i},d4ae:function(t,e,n){var r=n("f5dd");function i(t,e){var n=Number(e);return r(t,-n)}t.exports=i},d51b:function(t,e,n){"use strict";var r=function(){function t(t){this.value=t}return t}(),i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),a=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(null==i[t]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return a},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=a},d67a:function(t,e,n){},d6f8:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}t.exports=i},d728:function(t,e,n){"use strict";n("5385")},d975:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}t.exports=i},dae0:function(t,e,n){},dddf:function(t,e,n){var r=n("acc4");function i(t){return r(t)?366:365}t.exports=i},de13:function(t,e,n){var r=n("8964"),i=n("b4c7");function a(t){var e=r(t),n=new Date(0);n.setFullYear(e+1,0,4),n.setHours(0,0,0,0);var a=i(n);return a.setDate(a.getDate()-1),a}t.exports=a},df35:function(t,e,n){var r=n("27a1");function i(t,e){var n=Number(e);return r(t,-n)}t.exports=i},e13a:function(t,e,n){var r=n("e785");function i(t,e){var n=r(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}t.exports=i},e1ca:function(t,e,n){var r=n("7a83");function i(t,e){var n=Number(e);return r(t,-n)}t.exports=i},e2ff:function(t,e,n){var r=n("8946");function i(t,e){var n=Number(e);return r(t,-n)}t.exports=i},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e51d:function(t,e){function n(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),r=t.getDate(),i=new Date(0);return i.setFullYear(e,n,r-1),i.setHours(23,59,59,999),i}t.exports=n},e620:function(t,e,n){var r=n("c6ae");function i(t){return r(new Date,t)}t.exports=i},e73d:function(t,e,n){var r=n("c8d5"),i=n("81fc");function a(t,e){var n=r(t),a=Number(e),o=i(n)-a;return n.setDate(n.getDate()-7*o),n}t.exports=a},e785:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=r(e);return n.getTime()-i.getTime()}t.exports=i},e830:function(t,e,n){var r=n("90e5");function i(){var t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s=["AM","PM"],l=["am","pm"],u=["a.m.","p.m."],c={MMM:function(e){return t[e.getMonth()]},MMMM:function(t){return e[t.getMonth()]},dd:function(t){return n[t.getDay()]},ddd:function(t){return i[t.getDay()]},dddd:function(t){return o[t.getDay()]},A:function(t){return t.getHours()/12>=1?s[1]:s[0]},a:function(t){return t.getHours()/12>=1?l[1]:l[0]},aa:function(t){return t.getHours()/12>=1?u[1]:u[0]}},h=["M","D","DDD","d","Q","W"];return h.forEach((function(t){c[t+"o"]=function(e,n){return a(n[t](e))}})),{formatters:c,formattingTokensRegExp:r(c)}}function a(t){var e=t%100;if(e>20||e<10)switch(e%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"}t.exports=i},e96b:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t);return e.setSeconds(0,0),e}t.exports=i},eaa5:function(t,e,n){var r=n("c8d5");function i(t,e,n,i){var a=r(t).getTime(),o=r(e).getTime(),s=r(n).getTime(),l=r(i).getTime();if(a>o||s>l)throw new Error("The start of the range cannot be after the end of the range");return a<l&&s<o}t.exports=i},ec1f:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t).getTime(),i=Number(e);return new Date(n+i)}t.exports=i},eca2:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}t.exports=i},ee91:function(t,e,n){var r=n("3bc7");function i(t,e){var n=r(t,e)/7;return n>0?Math.floor(n):Math.ceil(n)}t.exports=i},f564:function(t,e,n){var r=n("e96b");function i(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}t.exports=i},f56a:function(t,e,n){var r=n("c8d5");function i(t,e,n){var i=r(t).getTime(),a=r(e).getTime(),o=r(n).getTime();if(a>o)throw new Error("The start of the range cannot be after the end of the range");return i>=a&&i<=o}t.exports=i},f5dd:function(t,e,n){var r=n("6665");function i(t,e){var n=Number(e),i=3*n;return r(t,i)}t.exports=i},f66d:function(t,e,n){var r=n("26d5");function i(t){return r(new Date,t)}t.exports=i},f9ff:function(t,e,n){var r=n("8964");function i(t,e){return r(t)-r(e)}t.exports=i},fa76:function(t,e,n){var r=n("c8d5"),i=n("8946"),a=n("84b9");function o(t,e){var n=r(t),o=Number(e),s=a(n),l=o-s;return i(n,l)}t.exports=o},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"ExChart",(function(){return mr})),n.d(e,"createVirtualScrollData",(function(){return ti})),n.d(e,"virtualScrollColumns",(function(){return ei})),n.d(e,"utils",(function(){return ni})),n.d(e,"variables",(function(){return o.a})),n.d(e,"getConfig",(function(){return ri})),n.d(e,"setConfig",(function(){return ii})),n.d(e,"getTheme",(function(){return ai})),n.d(e,"getSize",(function(){return oi})),n.d(e,"getPrimaryColor",(function(){return si})),n.d(e,"resetConfig",(function(){return li})),n.d(e,"onConfigChange",(function(){return ui})),n.d(e,"setTheme",(function(){return ci})),n.d(e,"setSize",(function(){return hi})),n.d(e,"setPrimaryColor",(function(){return di})),"undefined"!==typeof window){var r=window.document.currentScript,i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}n("72fa"),n("d67a");var a=n("ad4d"),o=n.n(a),s={color:["#1890ff","#37c3a4","#29c0ce","#6480D7","#8cce6f","#3a5dca","#ffb74d"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333",fontSize:16},subtextStyle:{color:"#666666",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},xAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"},show:!1}},yAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#DFE9EE"}}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#333333"}},tooltip:{borderWidth:1,backgroundColor:"#ffffff",borderColor:"#dcdfe6",textStyle:{color:"#333333"},trigger:"axis"}},l={color:["#0de7ff","#a782ff","#fcdd60","#0de7ff","#ffc5a1","#6291ae","#13ce66"],backgroundColor:"#000",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#ffffff"},subtextStyle:{color:"#ffffff"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#ffffff"}},radar:{indicator:{color:"#ffffff"}},map:{label:{color:"#ffffff"},itemStyle:{borderColor:"#dcdfe6"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#ffffff"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#666666","#666666"]}},legend:{textStyle:{color:"#ffffff"}},tooltip:{backgroundColor:"#333333",borderWidth:1,borderColor:"#dcdfe6",textStyle:{color:"#fff"}},trigger:"axis"};const u={default:s,white:s,dark:l};let c=null;function h(){if(!c&&"undefined"!==typeof window)try{c=n("313e");for(const t in u)c.registerTheme(t,u[t])}catch(t){console.warn("[ExChart] echarts 加载失败:",t.message)}return c}const d={small:{title:14,subtitle:11,legend:11,axisLabel:10,tooltip:11,label:11},medium:{title:16,subtitle:12,legend:12,axisLabel:12,tooltip:12,label:12},large:{title:18,subtitle:14,legend:14,axisLabel:14,tooltip:14,label:14}};function p(){}function f(t,e){if(null==e)return t;if(Array.isArray(e))return e.slice();if("object"!==typeof e)return e;if(null==t||"object"!==typeof t)return JSON.parse(JSON.stringify(e));const n=Array.isArray(t)?t.slice():Object.assign({},t);return Object.keys(e).forEach(t=>{const r=e[t];null!==r&&void 0!==r?n[t]="object"===typeof r?f(n[t],r):r:e.hasOwnProperty(t)&&(n[t]=r)}),n}p.currentTheme="default",p.currentSize="medium",p.inverse=!1,p.EchartsUtil={backgroundColor:"transparent",tooltip:{trigger:"axis",borderWidth:1},legend:{right:20,top:0,show:!0,textStyle:{fontSize:12}},grid:{top:"25%",left:"40",right:"15",bottom:"40"},xAxis:{type:"category",boundaryGap:!1,axisTick:{show:!0,length:4},axisLabel:{fontSize:12,interval:0,formatter:function(t){return!this.reverse&&this.longLable?t.replace(new RegExp(`(.{${this.longLableSplitNum}})`,"g"),"$1\n"):t}}},yAxis:{type:"value",axisTick:{show:!1},min:null,max:null,axisLabel:{show:!1},splitLine:{lineStyle:{type:"dashed",width:1}}}},p.chartInstanceList=[],p.simpleModeOption={legend:{show:!1},tooltip:{borderWidth:0,extraCssText:"box-shadow: 0 2px 8px rgba(0,0,0,0.12);"},grid:{top:"5%",left:"5%",right:"5%",bottom:"5%",containLabel:!0},xAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},yAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},animationDuration:300,animationEasing:"linear"},p.simpleModeByType={bar:{series:{barWidth:"60%",label:{show:!1},markPoint:null,emphasis:{itemStyle:{shadowBlur:6,shadowOffsetX:0,shadowColor:"rgba(0,0,0,0.15)"}}}},line:{series:{symbol:"none",smooth:!0,symbolSize:0,label:{show:!1},areaStyle:null}},pie:{legend:{show:!1},title:{show:!1},series:{radius:["40%","72%"],label:{show:!1},labelLine:{show:!1}}},multi:{legend:{show:!1},grid:{top:"8%",left:"5%",right:"5%",bottom:"5%",containLabel:!0}}},p.applySimpleMode=function(t,e){if(!t||"object"!==typeof t)return t;const n=JSON.parse(JSON.stringify(p.simpleModeOption)),r=p.simpleModeByType[e]||{},i=f(n,r);if(Object.keys(i).forEach(e=>{"series"!==e&&(null==t[e]?t[e]=i[e]:"object"!==typeof t[e]||"object"!==typeof i[e]||Array.isArray(t[e])||(t[e]=f(i[e],t[e])))}),t.series&&Array.isArray(t.series)){const e=i.series||{};t.series=t.series.map(t=>null==t||"object"!==typeof t?t:f(e,t))}return["xAxis","yAxis"].forEach(e=>{if(null!=t[e]&&"object"===typeof t[e]){const n=i[e]||{};Array.isArray(t[e])?t[e]=t[e].map(t=>null==t||"object"!==typeof t?t:f(n,t)):t[e]=f(n,t[e])}}),t},p.mergeOptions=function(t,e){return Object.assign({},t,e)},p.applyFontSize=function(t,e){const n=d[e]||d.medium,r=JSON.parse(JSON.stringify(t));return r.title&&r.title.textStyle&&(r.title.textStyle.fontSize=n.title),r.title&&r.title.subtextStyle&&(r.title.subtextStyle.fontSize=n.subtitle),r.legend&&r.legend.textStyle&&(r.legend.textStyle.fontSize=n.legend),r.tooltip&&r.tooltip.textStyle&&(r.tooltip.textStyle.fontSize=n.tooltip),r.pie&&r.pie.label&&"object"===typeof r.pie.label&&(r.pie.label.fontSize=n.label),r.radar&&r.radar.indicator&&"object"===typeof r.radar.indicator&&r.radar.indicator.textStyle&&(r.radar.indicator.textStyle.fontSize=n.label),r.map&&r.map.label&&"object"===typeof r.map.label&&(r.map.label.fontSize=n.label),r},p.init=function(t,e,n,r){const i=h();if(!i||!t)return null;e=e||"default",r=r||"medium",n=n||{};const a=this.currentTheme||e,o=this.currentSize||r;this.currentTheme=a,this.currentSize=o;let s=u[a];s=this.applyFontSize(s,o);const l=this.mergeOptions(s,n),c=i.init(t,a);return c.setOption(l,!0),this.chartInstanceList.push({dom:t,chart:c,customOption:n,size:o}),this.bindResize(c),c},p.changeSingleTheme=function(t,e,n,r){const i=h();if(!i||!t||!e)return;n=n||{},r=r||"default",this.currentTheme=r,e.dispose();const a=i.init(t,r,n),o=this.chartInstanceList.find((function(e){return e.dom===t}));return o&&(o.chart=a),a},p.changeAllTheme=function(t,e){const n=h();n&&t&&(this.currentTheme=t,e&&(this.currentSize=e),this.chartInstanceList.forEach((function(e){const r=e.dom,i=e.chart,a=e.customOption,o=e.size||p.currentSize;i&&i.dispose();const s=n.init(r,t);let l=u[t];l=p.applyFontSize(l,o);const c=p.mergeOptions(l,a);s.setOption(c,!0),e.chart=s,e.size=o,p.bindResize(s)})))},p.bindResize=function(t){t&&!t.resizeLocked&&(window.addEventListener("resize",(function(){t.resize()})),t._resizeLocked=!0)},p.destroy=function(t){t&&t.dispose(),this.chartInstanceList=this.chartInstanceList.filter((function(e){return e.chart!==t}))},p.destroyAll=function(){this.chartInstanceList.forEach((function(t){t.chart&&t.chart.dispose()})),this.chartInstanceList=[]};var g=p;const y={theme:"white",size:"medium",primaryColor:"#1890ff"};let v={...y};console.log("[XtElementUI] utils initialized with currentConfig:",v);const m=[],x=function(t,e){m.forEach(n=>{n(t,e)})},b=function(){return{...v}},_=function(t){"object"===typeof t&&null!==t?(void 0!==t.theme&&w(t.theme),void 0!==t.size&&S(t.size),void 0!==t.primaryColor&&T(t.primaryColor)):console.warn("[XtElementUI] setConfig 必须传入对象参数")},w=function(t){const e=["white","dark"];if(!e.includes(t))return void console.warn(`[XtElementUI] 无效的主题值: ${t},可选值: ${e.join(", ")}`);v.theme=t;const n=document.documentElement;"dark"===t?n.setAttribute("data-theme","dark"):n.setAttribute("data-theme",t),g.changeAllTheme(v.theme,v.size),console.log("更新图表主题"),x("theme",t)},S=function(t){const e=["small","medium","large"];e.includes(t)?(v.size=t,document.documentElement.setAttribute("data-size",t),g.changeAllTheme(v.theme,v.size),console.log("更新图表字体"),x("size",t)):console.warn(`[XtElementUI] 无效的大小值: ${t},可选值: ${e.join(", ")}`)};function M(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function O(t,e,n){return"#"+[t,e,n].map(t=>{const e=t.toString(16);return 1===e.length?"0"+e:e}).join("")}function I(t,e){const n=M(t);if(!n)return t;const r=Math.round(2.55*e),i=Math.min(255,n.r+r),a=Math.min(255,n.g+r),o=Math.min(255,n.b+r);return O(i,a,o)}const T=function(t){const e=/^#[0-9A-Fa-f]{3}$|^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/;if(!e.test(t))return void console.warn(`[XtElementUI] 无效的颜色值: ${t},请使用十六进制颜色格式,如 #1890ff`);let n=t;4===t.length?n="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]:9===t.length&&(n=t.substring(0,7)),v.primaryColor=n,document.documentElement.style.setProperty("--xt-color-primary",n),document.documentElement.style.setProperty("--xt-color-primary-light-3",I(n,30)),document.documentElement.style.setProperty("--xt-color-primary-light-5",I(n,50)),document.documentElement.style.setProperty("--xt-color-primary-light-7",I(n,70)),document.documentElement.style.setProperty("--xt-color-primary-light-8",I(n,80)),document.documentElement.style.setProperty("--xt-color-primary-light-9",I(n,90)),x("primaryColor",n),console.log("[XtElementUI] 主色调已设置为:",n)},C=function(){return v.theme},A=function(){return v.size},D=function(){return v.primaryColor},k=function(){_(y)},L=function(t){if("function"===typeof t)return m.push(t),function(){const e=m.indexOf(t);e>-1&&m.splice(e,1)};console.warn("[XtElementUI] onConfigChange 必须传入函数")};var P={setTheme:w,setSize:S,setPrimaryColor:T,getConfig:b,setConfig:_,getTheme:C,getSize:A,getPrimaryColor:D,resetConfig:k,onConfigChange:L},j=function(){var t=this,e=t._self._c;return e("button",{staticClass:"xt-button",class:[t.type?"xt-button--"+t.type:"",t.size?"xt-button--"+t.size:"",{"is-plain":t.plain,"is-disabled":t.disabled,"is-round":t.round,"is-circle":t.circle,"is-dashed":t.dashed,"is-text":t.text,"is-link":t.link,"is-loading":t.loading}],attrs:{disabled:t.disabled||t.loading},on:{click:t.handleClick}},[t.loading?e("i",{staticClass:"el-icon-loading"}):t.icon?e("i",{class:t.iconClass}):t._e(),t.$slots.default?e("span",{staticClass:"xt-button__inner"},[t._t("default")],2):t._e()])},R=[],N={name:"XtButton",props:{type:{type:String,default:"",validator:t=>["","primary","success","warning","danger"].includes(t)},size:{type:String,default:"",validator:t=>["","large","medium","small"].includes(t)},plain:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},dashed:{type:Boolean,default:!1},text:{type:Boolean,default:!1},link:{type:Boolean,default:!1},icon:{type:String,default:""},loading:{type:Boolean,default:!1}},computed:{iconClass(){return this.icon?0===this.icon.indexOf("el-icon")?this.icon:"el-icon-"+this.icon:""}},methods:{handleClick(){this.disabled||this.loading||this.$emit("click")}}},E=N;function z(t,e,n,r,i,a,o,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}var B=z(E,j,R,!1,null,null,null),V=B.exports;V.install=function(t){t.component(V.name,V)};var F=V,H=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-input",class:[t.size?"xt-input--"+t.size:"",{"is-disabled":t.disabled}]},[e("el-input",{style:t.inputStyle,attrs:{value:t.value,placeholder:t.placeholder,type:t.type,size:t.size,disabled:t.disabled,readonly:t.readonly},on:{input:function(e){return t.$emit("input",e)},change:function(e){return t.$emit("change",e)},focus:function(e){return t.$emit("focus",e)},blur:function(e){return t.$emit("blur",e)}}})],1)},G=[],W={name:"XtInput",props:{value:[String,Number],placeholder:{type:String,default:"请输入内容"},type:{type:String,default:"text"},size:{type:String,default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},color:{type:String,default:""}},computed:{inputStyle(){return this.color?{"--xt-input-focus-color":this.color}:{}}}},Y=W,U=z(Y,H,G,!1,null,null,null),X=U.exports;X.install=function(t){t.component(X.name,X)};var Z=X,q=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-flex-box",class:t.classAttrs,style:t.flexStyle},[t._t("default")],2)},$=[],K={name:"XtFlexBox",props:{type:{type:String,default:"flex"},align:{type:String,default:"center"},content:{type:String,default:"start"},direction:{type:String,default:"row"},wrap:{type:String,default:"unset"},gap:{type:String,default:""}},computed:{classAttrs(){const{type:t,align:e,wrap:n,direction:r,content:i}=this;return[""+t,"align-"+e,"content-"+i,"direction-"+r,"wrap-"+n]},flexStyle(){const t={};return this.gap?t.gap=this.gap:t.gap="var(--xt-flex-box-gap, 8px)",t}}},J=K,Q=z(J,q,$,!1,null,null,null),tt=Q.exports;tt.install=function(t){t.component(tt.name,tt)};var et=tt,nt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-card",class:{"no-padding":t.noPadding}},[t.title?e("div",{staticClass:"card__header"},[t._t("icon",(function(){return[t._v(t._s(t.icon))]})),t._t("title",(function(){return[t._v(t._s(t.title))]}))],2):t._e(),e("div",{staticClass:"card__body"},[t._t("default",(function(){return[e("span",{staticClass:"value"},[t._t("value",(function(){return[t._v(t._s(t.value))]}))],2),e("span",{staticClass:"unit"},[t._v(t._s(t.unit))])]}))],2)])},rt=[],it={name:"XtCard",props:{type:{},title:{},value:{},unit:{},icon:{},iconIn:{default:"right"},noPadding:{type:Boolean,default:!1}}},at=it,ot=z(at,nt,rt,!1,null,null,null),st=ot.exports;st.install=function(t){t.component(st.name,st)};var lt=st,ut=function(){var t=this,e=t._self._c;return e("ex-card",{staticClass:"xt-card-item",class:{["is-"+t.type]:!!t.type},attrs:{bordered:!1}},[e("xt-text",{attrs:{bold:"",size:"medium"}},[t._v(t._s(t.title))]),e("xt-flex-box",[e("div",{staticStyle:{width:"50%","margin-bottom":"5px"}},[e("xt-text",{attrs:{bold:"",size:"large",format:"thousand",type:t.type,decimals:0},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}),e("div",{staticStyle:{margin:"5px 0"}},[e("xt-text",{attrs:{size:"small"}},[t._v("较昨日")]),e("xt-text",{attrs:{format:"normal",type:t.diff>0?"success":"danger",suffix:t.diff>0?"↑":"↓"},model:{value:t.change,callback:function(e){t.change=e},expression:"change"}})],1)],1),e("div",{staticStyle:{flex:"1",height:"100%"}},[t._t("icon",(function(){return[e("xt-text",{attrs:{size:"extra-large",type:t.type}},[e("i",{staticClass:"el-icon-user"})])]}))],2)])],1)},ct=[],ht={name:"XtCardItem",props:{type:{type:String,default:"primary"},title:{type:String,default:""},diff:{type:Number,default:0},value:{type:Number,default:0},change:{type:Number,default:0}},data(){return{}}},dt=ht,pt=z(dt,ut,ct,!1,null,null,null),ft=pt.exports;ft.install=function(t){t.component(ft.name,ft)};var gt,yt,vt=ft,mt={name:"XtConfigProvider",inheritAttrs:!1,provide(){return{xtConfig:{theme:this.theme,size:this.size,primaryColor:this.primaryColor}}},watch:{theme(t){this.xtConfig={theme:t,size:this.size,primaryColor:this.primaryColor}},size(t){this.xtConfig={theme:t,size:this.size,primaryColor:this.primaryColor}},primaryColor(t){this.xtConfig={theme:t,size:this.size,primaryColor:this.primaryColor}}},render(t){if("template"===this.tag||this.proxyElement){const e=this.$slots.default;return e&&0!==e.length?1===e.length?e[0]:t("div",{class:"xt-config-provider-wrapper",attrs:{"data-theme":this.theme}},e):t("div")}return t(this.tag,{style:this.mergedStyle,class:this.computedClass,attrs:{...this.customAttrs,"data-theme":this.theme}},this.$slots.default)},props:{theme:{type:String,default:"white",validator:t=>["white","dark","auto"].includes(t)},size:{type:String,default:"medium"},primaryColor:{type:String,default:"#1890ff"},vars:{type:Object,default:()=>({})},tag:{type:String,default:"div",validator:t=>["div","span","section","main","template","article","aside"].includes(t)},injectBackground:{type:Boolean,default:!1},injectColor:{type:Boolean,default:!1},proxyElement:{type:[HTMLElement,String,Object],default:null,description:"代理元素,将样式应用到该元素上。支持 HTMLElement、CSS选择器字符串或 ref 对象"},onThemeChange:{type:Function,default:null,description:"主题改变时的钩子函数,接收参数: { theme, size, primaryColor }"},onStyleApplied:{type:Function,default:null,description:"样式应用完成时的钩子函数,接收参数: { element, style, theme }"}},computed:{mergedStyle(){const t={...this.vars};if(this.primaryColor){const e=this.normalizeColor(this.primaryColor);t["--xt-color-primary"]=e,t["--xt-color-primary-light-3"]=this.lightenColor(e,30),t["--xt-color-primary-light-5"]=this.lightenColor(e,50),t["--xt-color-primary-light-7"]=this.lightenColor(e,70),t["--xt-color-primary-light-8"]=this.lightenColor(e,80),t["--xt-color-primary-light-9"]=this.lightenColor(e,90),t["--xt-color-primary-dark-2"]=this.darkenColor(e,20)}const e={small:"14px",medium:"16px",large:"18px"};return e[this.size]&&(t["--xt-font-size-base"]=e[this.size]),"dark"===this.theme?(this.injectBackground&&(t.backgroundColor=t["--xt-color-bg-primary"]||"#141414"),this.injectColor&&(t.color=t["--xt-color-text-primary"]||"#E5EAF3")):(this.injectBackground&&(t.backgroundColor=t["--xt-color-bg-primary"]||"#ffffff"),this.injectColor&&(t.color=t["--xt-color-text-primary"]||"#2c3e50")),t},computedClass(){const t=[];return"template"!==this.tag&&t.push("xt-config-provider"),t},customAttrs(){const t=["theme","size","primaryColor","vars","tag","injectBackground","injectColor","proxyElement"],e={};for(const n in this.$attrs)t.includes(n)||(e[n]=this.$attrs[n]);return e}},mounted(){this.applyProxyElementStyle()},updated(){this.applyProxyElementStyle()},beforeUnmount(){this.clearProxyElementStyle()},methods:{normalizeColor(t){if(!t)return"#1890ff";if(/^#[0-9A-Fa-f]{6}$/.test(t))return t;if(/^#[0-9A-Fa-f]{3}$/.test(t))return"#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3];if(/^#[0-9A-Fa-f]{8}$/.test(t))return t.substring(0,7);const e=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)/i);if(e){const t=parseInt(e[1]),n=parseInt(e[2]),r=parseInt(e[3]);return this.rgbToHex(t,n,r)}return console.warn("[XtConfigProvider] 无法识别的颜色格式:",t),"#1890ff"},hexToRgb(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},rgbToHex(t,e,n){return"#"+[t,e,n].map(t=>{const e=t.toString(16);return 1===e.length?"0"+e:e}).join("")},lightenColor(t,e){const n=this.hexToRgb(t);if(!n)return t;const r=e/100,i=Math.round(n.r*(1-r)+255*r),a=Math.round(n.g*(1-r)+255*r),o=Math.round(n.b*(1-r)+255*r);return this.rgbToHex(i,a,o)},darkenColor(t,e){const n=this.hexToRgb(t);if(!n)return t;const r=e/100,i=Math.max(0,Math.round(n.r*(1-r))),a=Math.max(0,Math.round(n.g*(1-r))),o=Math.max(0,Math.round(n.b*(1-r)));return this.rgbToHex(i,a,o)},getProxyElement(){const{proxyElement:t}=this;return t?t instanceof HTMLElement?t:"string"===typeof t?document.querySelector(t):t.$el?t.$el:t.value&&t.value instanceof HTMLElement?t.value:(console.warn("[XtConfigProvider] 无法解析 proxyElement:",t),null):null},applyProxyElementStyle(){const t=this.getProxyElement();if(!t)return;const e=this.mergedStyle,n=t.getAttribute("data-theme");for(const r in e)t.style.setProperty(r,e[r]);t.setAttribute("data-theme",this.theme),g.changeAllTheme(this.theme,this.size,this.primaryColor),n!==this.theme&&"function"===typeof this.onThemeChange&&this.onThemeChange({theme:this.theme,size:this.size,primaryColor:this.primaryColor,prevTheme:n}),"function"===typeof this.onStyleApplied&&this.onStyleApplied({element:t,style:e,theme:this.theme,size:this.size,primaryColor:this.primaryColor})},clearProxyElementStyle(){const t=this.getProxyElement();if(!t)return;const e=this.mergedStyle;for(const n in e)t.style.removeProperty(n);t.removeAttribute("data-theme")}}},xt=mt,bt=(n("ab58"),z(xt,gt,yt,!1,null,"a28a77e4",null)),_t=bt.exports;_t.install=function(t){t.component(_t.name,_t)};var wt=_t,St=function(){var t=this,e=t._self._c;return e("span",{staticClass:"xt-text",class:[t.type?"xt-text--"+t.type:"","xt-text--"+t.size,{"xt-text--bold":t.bold},{"xt-text--money":"money"===t.format}],style:t.customStyle},[t._t("prefix",(function(){return[t._v(t._s(t.prefix))]})),t._t("default",(function(){return[void 0!==t.formattedValue?[t._v(t._s(t.formattedValue))]:t._e()]})),t._t("suffix",(function(){return[t._v(t._s(t.suffix))]}))],2)},Mt=[],Ot={name:"XtText",model:{prop:"value",event:"input"},props:{type:{type:String,default:"",validator:t=>["","primary","success","warning","danger"].includes(t)},size:{type:String,default:"base",validator:t=>["extra-large","large","medium","base","small","extra-small"].includes(t)},bold:{type:Boolean,default:!1},letterSpacing:{type:[String,Number],default:""},format:{type:String,default:"normal",validator:t=>["normal","thousand","money"].includes(t)},money:{type:Boolean,default:!1},value:{type:[Number,String],default:""},currency:{type:String,default:"CNY",validator:t=>["CNY","USD","EUR","JPY","GBP","AUD","CAD"].includes(t)},decimals:{type:Number,default:2,validator:t=>t>=0&&t<=10},locale:{type:String,default:"zh-CN"},showSign:{type:Boolean,default:!1},prefix:{type:String,default:""},suffix:{type:String,default:""}},computed:{realFormat(){return this.money?"money":this.format},customStyle(){const t={};return this.letterSpacing&&(t.letterSpacing="number"===typeof this.letterSpacing?this.letterSpacing+"px":this.letterSpacing),t},formattedValue(){const t=this.realFormat,{value:e}=this;if(""===e||void 0===e||null===e)return;const n="string"===typeof e?parseFloat(e):e;if(isNaN(n))return e;try{let e="";const r=this.showSign?"always":"auto";switch(t){case"thousand":e=new Intl.NumberFormat(this.locale,{minimumFractionDigits:this.decimals,maximumFractionDigits:this.decimals,signDisplay:r}).format(n);break;case"money":e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,minimumFractionDigits:this.decimals,maximumFractionDigits:this.decimals,signDisplay:r}).format(n);break;default:return}return e}catch(r){return e}}}},It=Ot,Tt=z(It,St,Mt,!1,null,null,null),Ct=Tt.exports;Ct.install=function(t){t.component(Ct.name,Ct)};var At=Ct,Dt=function(){var t=this,e=t._self._c;return e("span",{staticClass:"xt-time",class:[t.typeColor?"xt-time--"+t.typeColor:"","xt-time--"+t.size,{"xt-time--bold":t.bold}],style:t.customStyle,on:{click:t.handleClick}},[t._t("prefix",(function(){return[t._v(t._s(t.prefix))]})),t._t("default",(function(){return["text"===t.mode?[void 0!==t.displayText?[t._v(t._s(t.displayText))]:t.hideEmpty?t._e():[t._v(t._s(t.emptyText))]]:"now"===t.mode?[t._v(" "+t._s(t.nowText)+" ")]:"countdown"===t.mode?[t.isCountdownFinished?[t._t("finished",(function(){return[t._v(t._s(t.finishedText))]}))]:[t._v(" "+t._s(t.countdownText)+" ")]]:t._e()]})),t._t("suffix",(function(){return[t._v(t._s(t.suffix))]}))],2)},kt=[];const Lt="YYYY-MM-DD HH:mm:ss";function Pt(t){const e=String(t);return e.length<2?"0"+e:e}function jt(t){if(null===t||void 0===t||""===t)return null;if(t instanceof Date)return isNaN(t.getTime())?null:t;if("number"===typeof t){const e=t<1e12?1e3*t:t,n=new Date(e);return isNaN(n.getTime())?null:n}if("string"===typeof t){if(/^\d+$/.test(t)){const e=Number(t),n=e<1e12?1e3*e:e,r=new Date(n);return isNaN(r.getTime())?null:r}const e=t.replace(/-/g,"/"),n=new Date(e);return isNaN(n.getTime())?null:n}return null}function Rt(t,e){if(!t)return"";const n=e||Lt,r={YYYY:t.getFullYear(),MM:Pt(t.getMonth()+1),DD:Pt(t.getDate()),HH:Pt(t.getHours()),mm:Pt(t.getMinutes()),ss:Pt(t.getSeconds()),SSS:String(t.getMilliseconds()).padStart(3,"0")};return n.replace(/YYYY|MM|DD|HH|mm|ss|SSS/g,t=>r[t])}var Nt={name:"XtTime",props:{type:{type:String,default:"now",validator:t=>["now","countdown","text"].includes(t)},size:{type:String,default:"base",validator:t=>["extra-large","large","medium","base","small","extra-small"].includes(t)},typeColor:{type:String,default:"",validator:t=>["","primary","success","warning","danger"].includes(t)},bold:{type:Boolean,default:!1},format:{type:String,default:Lt},prefix:{type:String,default:""},suffix:{type:String,default:""},emptyText:{type:String,default:"-"},hideEmpty:{type:Boolean,default:!1},interval:{type:Number,default:1e3,validator:t=>t>=100},value:{type:[String,Number,Date],default:""},targetTime:{type:[String,Number,Date],default:""},countdownFormat:{type:String,default:"DHMS",validator:t=>["DHMS","HMS","MS","SEC"].includes(t)},finishedText:{type:String,default:"已结束"}},data(){return{tick:0}},computed:{mode(){return this.type},parsedValue(){return jt(this.value)},parsedTarget(){return jt(this.targetTime)},displayText(){if(this.parsedValue)return Rt(this.parsedValue,this.format)},nowText(){this.tick;return Rt(new Date,this.format)},remainingMs(){if("countdown"!==this.mode)return 0;this.tick;if(!this.parsedTarget)return 0;const t=this.parsedTarget.getTime()-Date.now();return t>0?t:0},isCountdownFinished(){return"countdown"===this.mode&&this.parsedTarget&&this.remainingMs<=0},countdownText(){if(!this.parsedTarget)return this.emptyText;const t=Math.floor(this.remainingMs/1e3);if(t<=0)return this.finishedText;switch(this.countdownFormat){case"SEC":return t+"秒";case"MS":{const e=Math.floor(t/60),n=t%60;return`${Pt(e)}分${Pt(n)}秒`}case"HMS":{const e=Math.floor(t/3600),n=Math.floor(t%3600/60),r=t%60;return`${Pt(e)}时${Pt(n)}分${Pt(r)}秒`}case"DHMS":default:{const e=Math.floor(t/86400),n=Math.floor(t%86400/3600),r=Math.floor(t%3600/60),i=t%60;return`${e}天${Pt(n)}时${Pt(r)}分${Pt(i)}秒`}}},customStyle(){return{}}},watch:{type(){this.restartTimer()},interval(){this.restartTimer()}},mounted(){this.restartTimer()},beforeDestroy(){this.clearTimer()},activated(){this.restartTimer()},deactivated(){this.clearTimer()},methods:{restartTimer(){this.clearTimer(),"now"!==this.mode&&"countdown"!==this.mode||(this.tick++,this._timer=setInterval(()=>{this.tick++,"countdown"===this.mode&&this.parsedTarget&&this.remainingMs<=0&&(this.clearTimer(),this.$emit("finish"))},this.interval))},clearTimer(){this._timer&&(clearInterval(this._timer),this._timer=null)},handleClick(t){this.$emit("click",t)}}},Et=Nt,zt=z(Et,Dt,kt,!1,null,null,null),Bt=zt.exports;Bt.install=function(t){t.component(Bt.name,Bt)};var Vt=Bt,Ft=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-step-price",class:{"is-disabled":t.disabled}},[t.title||t.$slots.header?e("div",{staticClass:"xt-step-price__header"},[t.title?e("xt-text",{attrs:{bold:"",size:"medium"}},[t._v(t._s(t.title))]):t._e(),t._t("header"),t.disabled||t.isLimitReached?t._e():e("xt-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus",plain:""},on:{click:t.onAdd}},[t._v("新增档位")]),t.isLimitReached?e("xt-text",{attrs:{size:"small","type-color":"info"}},[t._v("已达上限("+t._s(t.localItems.length)+"/"+t._s(t.limit)+")")]):t._e()],2):t._e(),e("div",{staticClass:"xt-step-price__list"},t._l(t.localItems,(function(n,r){return e("XtStepPriceItem",{key:r,attrs:{value:n,index:r,"is-first":0===r,"is-last":r===t.localItems.length-1,"items-length":t.localItems.length,removable:0!==r,"min-locked":0!==r,unit:t.unit,precision:t.precision,step:t.step,"left-bracket":t.leftBracket,"right-bracket":t.rightBracket,"field-keys":t.fieldKeys,disabled:t.disabled},on:{input:e=>t.onItemInput(e,r),"max-change":t.onMaxChange,"min-change":t.onMinChange,delete:t.onDelete}})})),1),0===t.localItems.length?e("div",{staticClass:"xt-step-price__empty"},[e("span",[t._v("暂无数据,点击右上角「新增档位」开始配置")])]):t._e(),t.tip||t.$slots.tip?e("div",{staticClass:"xt-step-price__tip"},[t._t("tip",(function(){return[e("xt-text",{attrs:{size:"small","type-color":"warning"}},[t._v(t._s(t.tip))])]}))],2):t._e()])},Ht=[],Gt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-step-price-item"},[e("div",{staticClass:"xt-step-price-item__range"},[e("span",{staticClass:"xt-step-price-item__bracket"},[t._v(t._s(t.finalLeftBracket))]),t.itemsLength>1?e("span",{staticClass:"xt-step-price-item__name"},[t._v("第"+t._s(t.index+1)+"档")]):t._e(),e("span",{staticClass:"xt-step-price-item__bracket"},[t._v(t._s(t.finalRightBracket))]),e("xt-input",{staticClass:"xt-step-price-item__input",attrs:{disabled:t.disabled||t.minLocked,size:"small",placeholder:"下限"},on:{blur:t.onMinBlur},model:{value:t.minInput,callback:function(e){t.minInput=t._n(e)},expression:"minInput"}}),e("span",{staticClass:"xt-step-price-item__comma"},[t._v("-")]),t.isLast?e("span",{staticClass:"xt-step-price-item__infinity"},[t._v("+∞")]):e("xt-input",{staticClass:"xt-step-price-item__input",attrs:{disabled:t.disabled,size:"small",placeholder:"上限"},on:{blur:t.onMaxBlur},model:{value:t.maxInput,callback:function(e){t.maxInput=t._n(e)},expression:"maxInput"}})],1),e("div",{staticClass:"xt-step-price-item__price"},[e("xt-input",{staticClass:"xt-step-price-item__input xt-step-price-item__input--price",attrs:{disabled:t.disabled,size:"small",placeholder:"价格"},on:{blur:t.onPriceBlur},model:{value:t.priceInput,callback:function(e){t.priceInput=t._n(e)},expression:"priceInput"}}),e("span",{staticClass:"xt-step-price-item__unit"},[t._v(t._s(t.unit))])],1),!t.disabled&&t.removable&&t.itemsLength>1?e("xt-button",{staticClass:"xt-step-price-item__delete",attrs:{text:"",icon:"el-icon-delete"},on:{click:t.onDelete}}):t._e()],1)},Wt=[],Yt={name:"XtStepPriceItem",props:{value:{type:Object,required:!0,default:()=>({min:0,max:null,price:0})},index:{type:Number,default:0},isFirst:{type:Boolean,default:!1},isLast:{type:Boolean,default:!1},itemsLength:{type:Number,default:1},removable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},minLocked:{type:Boolean,default:!1},unit:{type:String,default:"元"},precision:{type:Number,default:2},step:{type:Number,default:1},leftBracket:{type:String,default:"["},rightBracket:{type:String,default:null},fieldKeys:{type:Object,default:()=>({min:"min",max:"max",price:"price"})}},computed:{keyMin(){return this.fieldKeys&&this.fieldKeys.min||"min"},keyMax(){return this.fieldKeys&&this.fieldKeys.max||"max"},keyPrice(){return this.fieldKeys&&this.fieldKeys.price||"price"},finalRightBracket(){return null!==this.rightBracket&&void 0!==this.rightBracket&&""!==this.rightBracket?this.rightBracket:this.isLast?"]":")"},finalLeftBracket(){return null===this.leftBracket||void 0===this.leftBracket?"[":this.leftBracket}},data(){const{minVal:t,maxVal:e,priceVal:n}=this.getPriceItem(this.value);return{minInput:t,maxInput:e,priceInput:n}},watch:{value:{deep:!0,immediate:!0,handler(t){const{minVal:e,maxVal:n,priceVal:r}=this.getPriceItem(t);this.minInput=e,this.maxInput=n,this.priceInput=r}},isLast(t){if(t)this.maxInput=null;else{const t=this.safeNumber(this.minInput,0),e=this.value;this.maxInput=this.safeNumber(e&&e[this.keyMax],t+1)}}},methods:{getPriceItem(t){const e=t,n=this.safeNumber(e&&e[this.keyMin],0),r=this.isLast?null:this.safeNumber(e&&e[this.keyMax],n+1),i=this.safeNumber(e&&e[this.keyPrice],0);return{minVal:n,maxVal:r,priceVal:i}},safeNumber(t,e=0){if(null===t||void 0===t||""===t||t===1/0||t===-1/0)return e;const n=Number(t);return isNaN(n)?e:n},emitChange(t){const e={[this.keyMin]:this.minInput,[this.keyMax]:this.isLast?null:this.maxInput,[this.keyPrice]:this.priceInput,...t};this.$emit("input",e),this.$emit("change",e,this.index)},onMinBlur(){const t=this.safeNumber(this.minInput,0);this.minInput=t,this.$emit("min-change",t,this.index),this.emitChange({[this.keyMin]:t})},onMaxBlur(){if(this.isLast)return;const t=this.safeNumber(this.minInput,0);let e=this.safeNumber(this.maxInput,t+1);e<=t&&(e=t+1),this.maxInput=e,this.$emit("max-change",e,this.index),this.emitChange({[this.keyMax]:e})},onPriceBlur(){let t=this.safeNumber(this.priceInput,0);t<0&&(t=0),t=Number(t.toFixed(this.precision)),this.priceInput=t,this.emitChange({[this.keyPrice]:t})},onDelete(){this.$emit("delete",this.index)}}},Ut=Yt,Xt=z(Ut,Gt,Wt,!1,null,null,null),Zt=Xt.exports,qt={name:"XtStepPrice",components:{XtStepPriceItem:Zt},computed:{keyMin(){return this.fieldKeys&&this.fieldKeys.min||"min"},keyMax(){return this.fieldKeys&&this.fieldKeys.max||"max"},keyPrice(){return this.fieldKeys&&this.fieldKeys.price||"price"},isLimitReached(){const t=Number(this.limit);return t>0&&this.localItems.length>=t}},props:{value:{type:Array,default:()=>[]},title:{type:String,default:""},unit:{type:String,default:"元"},precision:{type:Number,default:2},leftBracket:{type:String,default:"["},rightBracket:{type:String,default:null},fieldKeys:{type:Object,default:()=>({min:"min",max:"max",price:"price"})},limit:{type:Number,default:0},step:{type:Number,default:10},disabled:{type:Boolean,default:!1},tip:{type:String,default:"区间左闭右闭 [min, max],最后一级为 [min, +∞),保证连续且不重叠。"},defaultFirst:{type:Boolean,default:!0}},data(){return{localItems:this.normalize(this.value)}},watch:{value:{deep:!0,immediate:!0,handler(t){this.localItems=this.normalize(t)}}},methods:{safeNumber(t,e=0){if(null===t||void 0===t||""===t||t===1/0||t===-1/0)return e;const n=Number(t);return isNaN(n)?e:n},cloneItems(t){return Array.isArray(t)?t.map(t=>({[this.keyMin]:this.safeNumber(t&&t[this.keyMin],0),[this.keyMax]:t&&null==t[this.keyMax]||t&&""===t[this.keyMax]?null:this.safeNumber(t[this.keyMax],null),[this.keyPrice]:this.safeNumber(t&&t[this.keyPrice],0)})):[]},normalize(t){const e=this.cloneItems(t);return 0===e.length&&this.defaultFirst&&e.push({[this.keyMin]:0,[this.keyMax]:null,[this.keyPrice]:0}),this.ensureContinuity(e),e},ensureContinuity(t){if(!Array.isArray(t)||0===t.length)return;t[0][this.keyMin]=0;const e=this.safeNumber(this.step,1);for(let n=0;n<t.length;n++){const r=t[n],i=t[n+1],a=this.safeNumber(r[this.keyMin],0);if(i){let t=this.safeNumber(r[this.keyMax],a+e);t<=a&&(t=a+e),r[this.keyMax]=t,i[this.keyMin]=t}else r[this.keyMax]=null;r[this.keyPrice]=this.safeNumber(r[this.keyPrice],0)}},emit(){this.ensureContinuity(this.localItems);const t=this.cloneItems(this.localItems);this.$emit("input",t),this.$emit("change",t)},onItemInput(t,e){const n=this.localItems[e];n&&t&&void 0!==t[this.keyPrice]&&(n[this.keyPrice]=this.safeNumber(t[this.keyPrice],0))},onMaxChange(t,e){const n=this.localItems[e];if(!n)return;const r=this.safeNumber(t,this.safeNumber(n[this.keyMin],0)+1);n[this.keyMax]=r;const i=this.localItems[e+1];i&&(i[this.keyMin]=r),this.emit()},onMinChange(t,e){const n=this.localItems[e];if(n){if(0===e)n[this.keyMin]=0;else{const r=this.safeNumber(t,this.safeNumber(n[this.keyMin],0));n[this.keyMin]=r;const i=this.localItems[e-1];i&&(i[this.keyMax]=r)}this.emit()}},onAdd(){const t=this.localItems,e=Number(this.limit);if(e>0&&t.length>=e)return;const n=this.safeNumber(this.step,1);if(0===t.length)return t.push({[this.keyMin]:0,[this.keyMax]:null,[this.keyPrice]:10}),void this.emit();const r=t[t.length-1],i=this.safeNumber(r[this.keyMin],0),a=i+n,o=t[t.length-2];let s=10;if(o)s=this.safeNumber(o[this.keyPrice],10);else{const t=this.safeNumber(r[this.keyPrice],0);s=t>0?t:10}const l=[...t.slice(0,-1),{[this.keyMin]:i,[this.keyMax]:a,[this.keyPrice]:s},{[this.keyMin]:a,[this.keyMax]:null,[this.keyPrice]:s}];this.localItems=l,this.emit()},onDelete(t){const e=this.localItems;if(e.length<=1)return;if(0===t)return;const n=e[t],r=e[t-1],i=e[t+1];r&&i?r[this.keyMax]=null==n[this.keyMax]?null:Number(n[this.keyMax]):r&&!i?r[this.keyMax]=null:!r&&i&&(i[this.keyMin]=0),e.splice(t,1),this.emit()}}},$t=qt,Kt=z($t,Ft,Ht,!1,null,null,null),Jt=Kt.exports;Jt.install=function(t){t.component(Jt.name,Jt),t.component(Zt.name,Zt)};var Qt=Jt;Zt.install=function(t){t.component(Zt.name,Zt)};var te=Zt,ee=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-map-wrapper"},[e("div",{ref:"mapContainer",staticClass:"xt-map-container",attrs:{"data-theme":t.mergedTheme}}),t.loading?e("div",{staticClass:"xt-map-loading"},[e("span",[t._v("地图加载中...")])]):t._e(),t.errorMessage?e("div",{staticClass:"xt-map-error"},[e("span",[t._v(t._s(t.errorMessage))])]):t._e(),t._t("overlay")],2)},ne=[];const re=new Map,ie=new Map,ae=(t,e={})=>{if("undefined"===typeof window)return Promise.reject(new Error("[XtMap] 非浏览器环境"));const{charset:n="utf-8",async:r=!0,timeout:i=3e4}=e;if(re.has(t))return re.get(t);if(ie.has(t))return ie.get(t);const a=new Promise((e,a)=>{const o=document.createElement("script");o.type="text/javascript",o.src=t,o.charset=n,o.async=r;let s=null,l=!1;const u=()=>{l=!0,s&&clearTimeout(s),o.onload=null,o.onerror=null};o.onload=()=>{l||(u(),ie.delete(t),re.set(t,Promise.resolve(o)),e(o))},o.onerror=e=>{l||(u(),ie.delete(t),a(new Error("[XtMap] 脚本加载失败: "+t)))},i>0&&(s=setTimeout(()=>{l||(u(),ie.delete(t),a(new Error("[XtMap] 脚本加载超时: "+t)))},i)),document.head.appendChild(o)});return ie.set(t,a),a},oe=()=>{re.clear(),ie.clear()},se=t=>"undefined"!==typeof window&&void 0!==window[t];const le={standard:"standard",satellite:"satellite",hybrid:"hybrid",traffic:"traffic"};class ue{constructor(t,e={}){this.container=t,this.options=e,this.mapInstance=null,this.mapType=e.mapType||"standard",this.theme=e.theme||"light",this.center=e.center||[116.397428,39.90923],this.zoom=e.zoom||11,this.apiKey=e.apiKey||"",this.apiUrl=e.apiUrl||null,this.plugins=e.plugins||[],this.eventHandlers=new Map,this.ready=!1,this._mapTypeMap={...le}}getScriptUrl(){throw new Error("[XtMap] 子类必须实现 getScriptUrl()")}isSdkLoaded(){throw new Error("[XtMap] 子类必须实现 isSdkLoaded()")}beforeLoadScript(){}async createMap(){throw new Error("[XtMap] 子类必须实现 createMap()")}async init(){if(!this.container)throw new Error("[XtMap] 缺少容器元素");if(!this.isSdkLoaded()){this.beforeLoadScript();const t=this.getScriptUrl();if(!t)throw new Error("[XtMap] 缺少 API URL,请配置 apiKey 或 apiUrl");await ae(t),await this._waitForSdkReady()}return await this.createMap(),this.ready=!0,this.mapInstance}async _waitForSdkReady(){return new Promise(t=>{let e=0;const n=100,r=()=>{this.isSdkLoaded()||e>=n?t():(e++,setTimeout(r,100))};r()})}getNativeMapType(t){return this._mapTypeMap[t]||this._mapTypeMap.standard}setMapType(t){this.mapType=t,this.ready&&this.mapInstance&&this._applyMapType(t)}_applyMapType(t){}setTheme(t){this.theme=t,this.ready&&this.mapInstance&&this._applyTheme(t)}_applyTheme(t){}setCenter(t){this.center=t,this.ready&&this.mapInstance&&this._applyCenter(t)}_applyCenter(t){}setZoom(t){this.zoom=t,this.ready&&this.mapInstance&&this._applyZoom(t)}_applyZoom(t){}getCenter(){return this.center}getZoom(){return this.zoom}getNativeMap(){return this.mapInstance}on(t,e){"function"===typeof e&&(this.eventHandlers.set(t,e),this.ready&&this.mapInstance&&this._bindEvent(t,e))}_bindEvent(t,e){}off(t){const e=this.eventHandlers.get(t);e&&this.ready&&this.mapInstance&&this._unbindEvent(t,e),this.eventHandlers.delete(t)}_unbindEvent(t,e){}resize(){this.ready&&this.mapInstance&&this._applyResize()}_applyResize(){}destroy(){if(this.eventHandlers.clear(),this.mapInstance&&"function"===typeof this.mapInstance.destroy)try{this.mapInstance.destroy()}catch(t){}this.mapInstance=null,this.ready=!1}}const ce={standard:"amap",satellite:"satellite",hybrid:"satellite",traffic:"traffic"},he={light:"amap://styles/normal",dark:"amap://styles/dark"};class de extends ue{constructor(t,e={}){super(t,e),this._mapTypeMap={...ce},this._trafficLayer=null,this._satelliteLayer=null,this._roadnetLayer=null,this._currentLayers=[]}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?`https://webapi.amap.com/maps?v=2.0&key=${encodeURIComponent(this.apiKey)}&plugin=AMap.Scale,AMap.ToolBar`:(console.warn("[XtMap] 高德地图需要配置 apiKey"),"")}beforeLoadScript(){const t=this.options.securityJsCode||"undefined"!==typeof window&&window._AMapSecurityConfig&&window._AMapSecurityConfig.securityJsCode||"";t&&"undefined"!==typeof window&&(window._AMapSecurityConfig={securityJsCode:t})}isSdkLoaded(){return se("AMap")&&"function"===typeof window.AMap}async createMap(){const t=window.AMap;if(!t)throw new Error("[XtMap] 高德地图 SDK 未加载");const e={center:this.center,zoom:this.zoom,mapStyle:he[this.theme]||he.light,viewMode:"2D",resizeEnable:!0};this.mapInstance=new t.Map(this.container,e),this._applyMapType(this.mapType),await new Promise(t=>{this.mapInstance.on("complete",()=>t()),setTimeout(t,1500)});for(const[n,r]of this.eventHandlers.entries())this._bindEvent(n,r)}_applyMapType(t){if(!this.mapInstance)return;const e=window.AMap;if(e){this._clearLayers();try{this.mapInstance.setMapStyle(he[this.theme]||he.light),"satellite"===t?(this._satelliteLayer=new e.TileLayer.Satellite,this.mapInstance.add(this._satelliteLayer),this._currentLayers.push(this._satelliteLayer)):"hybrid"===t?(this._satelliteLayer=new e.TileLayer.Satellite,this._roadnetLayer=new e.TileLayer.RoadNet,this.mapInstance.add([this._satelliteLayer,this._roadnetLayer]),this._currentLayers.push(this._satelliteLayer,this._roadnetLayer)):"traffic"===t&&(this._trafficLayer=new e.TileLayer.Traffic({autoRefresh:!0,interval:180}),this.mapInstance.add(this._trafficLayer),this._currentLayers.push(this._trafficLayer))}catch(n){console.warn("[XtMap] 设置地图类型失败:",n)}}}_clearLayers(){if(this.mapInstance){try{this._currentLayers.length>0&&this.mapInstance.remove(this._currentLayers)}catch(t){}this._currentLayers=[],this._trafficLayer=null,this._satelliteLayer=null,this._roadnetLayer=null}}_applyTheme(t){if(this.mapInstance)try{this.mapInstance.setMapStyle(he[t]||he.light),this._applyMapType(this.mapType)}catch(e){console.warn("[XtMap] 设置主题失败:",e)}}_applyCenter(t){if(this.mapInstance)try{this.mapInstance.setCenter(t)}catch(e){}}_applyZoom(t){if(this.mapInstance)try{this.mapInstance.setZoom(t)}catch(e){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const t=this.mapInstance.getCenter();return[t.lng,t.lat]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(t,e){if(this.mapInstance)try{const n={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomchange",mapmove:"mapmove",complete:"complete",resize:"resize"},r=n[t]||t;this.mapInstance.on(r,t=>{const n={originalEvent:t,lnglat:t&&t.lnglat?[t.lnglat.lng,t.lnglat.lat]:null};e(n)})}catch(n){console.warn("[XtMap] 事件绑定失败:",t,n)}}_unbindEvent(t,e){if(this.mapInstance)try{this.mapInstance.off(t,e)}catch(n){}}_applyResize(){if(this.mapInstance&&this.mapInstance.resize)try{this.mapInstance.resize()}catch(t){}}destroy(){this._clearLayers(),super.destroy()}}const pe={standard:"vec",satellite:"img",hybrid:"img",traffic:"vec"},fe={light:"none",dark:"invert(1) hue-rotate(180deg) saturate(1.2) brightness(0.95)"};class ge extends ue{constructor(t,e={}){super(t,e),this._mapTypeMap={...pe},this._layerType=e.tiandituLayerType||"vec",this._currentLayer=null,this._annotationLayer=null}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?"https://api.tianditu.gov.cn/api?v=4.0&tk="+encodeURIComponent(this.apiKey):(console.warn("[XtMap] 天地图需要配置 apiKey (tk)"),"")}isSdkLoaded(){return se("T")&&"object"===typeof window.T&&window.T.Map}async createMap(){const t=window.T;if(!t||!t.Map)throw new Error("[XtMap] 天地图 SDK 未加载");const e={center:new t.LngLat(this.center[0],this.center[1]),zoom:this.zoom};this.mapInstance=new t.Map(this.container,e),this._applyMapType(this.mapType),this._applyTheme(this.theme),await new Promise(t=>{setTimeout(t,500)});for(const[n,r]of this.eventHandlers.entries())this._bindEvent(n,r)}_applyMapType(t){if(!this.mapInstance)return;const e=window.T;if(e)try{this._mapTypeMap[t];"standard"===t?this.mapInstance.setMapType(window.TMAP_NORMAL_MAP||1):"satellite"===t?this.mapInstance.setMapType(window.TMAP_SATELLITE_MAP||2):"hybrid"===t?this.mapInstance.setMapType(window.TMAP_HYBRID_MAP||3):this.mapInstance.setMapType(window.TMAP_NORMAL_MAP||1)}catch(n){console.warn("[XtMap] 天地图切换地图类型失败:",n)}}_applyTheme(t){if(!this.container)return;const e=fe[t]||"none",n=this.container.querySelectorAll("img");n.forEach(t=>{t.style.filter=e,t.style.webkitFilter=e}),this.container.setAttribute("data-map-theme",t),this._setupThemeObserver(t)}_setupThemeObserver(t){if(this._themeObserver&&this._themeObserver.disconnect(),"dark"!==t)return;const e=fe[t];this._themeObserver=new MutationObserver(t=>{t.forEach(t=>{t.addedNodes.forEach(t=>{if(1===t.nodeType)if("IMG"===t.tagName)t.style.filter=e,t.style.webkitFilter=e;else if(t.querySelectorAll){const n=t.querySelectorAll("img");n.forEach(t=>{t.style.filter=e,t.style.webkitFilter=e})}})})});try{this._themeObserver.observe(this.container,{childList:!0,subtree:!0})}catch(n){}}_applyCenter(t){if(this.mapInstance&&window.T)try{this.mapInstance.centerAndZoom(new window.T.LngLat(t[0],t[1]),this.zoom)}catch(e){}}_applyZoom(t){if(this.mapInstance)try{this.mapInstance.setZoom(t)}catch(e){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const t=this.mapInstance.getCenter();if(t&&void 0!==t.getLng)return[t.getLng(),t.getLat()]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(t,e){if(this.mapInstance)try{const n={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomend"},r=n[t]||t;this.mapInstance.addEventListener(r,t=>{const n={originalEvent:t,lnglat:t&&t.lnglat?[t.lnglat.getLng(),t.lnglat.getLat()]:null};e(n)})}catch(n){console.warn("[XtMap] 天地图事件绑定失败:",t,n)}}_unbindEvent(t,e){if(this.mapInstance)try{this.mapInstance.removeEventListener(t,e)}catch(n){}}_applyResize(){if(this.mapInstance&&this.mapInstance.checkResize)try{this.mapInstance.checkResize()}catch(t){}}destroy(){if(this._themeObserver&&(this._themeObserver.disconnect(),this._themeObserver=null),this.mapInstance&&"function"===typeof this.mapInstance.clearOverLays)try{this.mapInstance.clearOverLays()}catch(t){}super.destroy()}}const ye={standard:"BMAP_NORMAL_MAP",satellite:"BMAP_SATELLITE_MAP",hybrid:"BMAP_HYBRID_MAP",traffic:"BMAP_NORMAL_MAP"},ve={light:{style:"normal"},dark:{style:"dark"}};class me extends ue{constructor(t,e={}){super(t,e),this._mapTypeMap={...ye},this._coordType=e.baiduCoordType||"bd09ll",this._trafficLayer=null,this._callbackName=null}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?`https://api.map.baidu.com/api?v=3.0&ak=${encodeURIComponent(this.apiKey)}&callback=${this._callbackName}`:(console.warn("[XtMap] 百度地图需要配置 apiKey (ak)"),"")}beforeLoadScript(){this._callbackName=`__xt_map_baidu_${Date.now()}_${Math.floor(1e5*Math.random())}`,"undefined"!==typeof window&&(window[this._callbackName]=()=>{})}isSdkLoaded(){return se("BMap")&&"function"===typeof window.BMap}async createMap(){const t=window.BMap;if(!t)throw new Error("[XtMap] 百度地图 SDK 未加载");const e={enableMapClick:!1};this.mapInstance=new t.Map(this.container,e),this.mapInstance.centerAndZoom(new t.Point(this.center[0],this.center[1]),this.zoom),this.mapInstance.enableScrollWheelZoom(!0),this._applyMapType(this.mapType),this._applyTheme(this.theme),await new Promise(t=>setTimeout(t,500));for(const[n,r]of this.eventHandlers.entries())this._bindEvent(n,r)}_applyMapType(t){if(this.mapInstance&&window.BMap)try{if(this._trafficLayer){try{this.mapInstance.removeTileLayer(this._trafficLayer)}catch(e){}this._trafficLayer=null}if("satellite"===t)this.mapInstance.setMapType(window.BMAP_SATELLITE_MAP||1);else if("hybrid"===t)this.mapInstance.setMapType(window.BMAP_HYBRID_MAP||2);else if("traffic"===t){this.mapInstance.setMapType(window.BMAP_NORMAL_MAP||0);try{const t=window.BMap;this._trafficLayer=new t.TrafficLayer,this.mapInstance.addTileLayer(this._trafficLayer)}catch(e){console.warn("[XtMap] 百度地图加载路况图层失败:",e)}}else this.mapInstance.setMapType(window.BMAP_NORMAL_MAP||0)}catch(e){console.warn("[XtMap] 百度地图切换地图类型失败:",e)}}_applyTheme(t){if(this.mapInstance&&window.BMap)try{const e=ve[t]||ve.light;if(this.mapInstance.setMapStyleV2)this.mapInstance.setMapStyleV2({styleId:"dark"===e.style?"midnight":""});else if(this.mapInstance.setMapStyle){const e="dark"===t?this._getDarkStyleJson():null;e&&this.mapInstance.setMapStyle({styleJson:e})}}catch(e){console.warn("[XtMap] 百度地图设置主题失败:",e)}}_getDarkStyleJson(){return[{featureType:"land",elementType:"geometry",stylers:{color:"#1a1a1a"}},{featureType:"water",elementType:"geometry",stylers:{color:"#0a1a2a"}},{featureType:"green",elementType:"geometry",stylers:{color:"#0a2a1a"}},{featureType:"building",elementType:"geometry",stylers:{color:"#2a2a2a"}},{featureType:"highway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"highway",elementType:"geometry.stroke",stylers:{color:"#4a4a4a"}},{featureType:"arterial",elementType:"geometry",stylers:{color:"#333333"}},{featureType:"arterial",elementType:"geometry.stroke",stylers:{color:"#3d3d3d"}},{featureType:"local",elementType:"geometry",stylers:{color:"#2a2a2a"}},{featureType:"railway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"subway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"boundary",elementType:"geometry",stylers:{color:"#666666"}},{featureType:"district",elementType:"labels.text.fill",stylers:{color:"#888888"}},{featureType:"poi",elementType:"labels",stylers:{visibility:"off"}}]}_applyCenter(t){if(this.mapInstance&&window.BMap)try{this.mapInstance.centerAndZoom(new window.BMap.Point(t[0],t[1]),this.zoom)}catch(e){}}_applyZoom(t){if(this.mapInstance)try{this.mapInstance.setZoom(t)}catch(e){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const t=this.mapInstance.getCenter();if(t)return[t.lng,t.lat]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(t,e){if(this.mapInstance)try{const n={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomend",mapmove:"movestart"},r=n[t]||t;this.mapInstance.addEventListener(r,t=>{const n={originalEvent:t,lnglat:t&&t.point?[t.point.lng,t.point.lat]:null};e(n)})}catch(n){console.warn("[XtMap] 百度地图事件绑定失败:",t,n)}}_unbindEvent(t,e){if(this.mapInstance)try{this.mapInstance.removeEventListener(t,e)}catch(n){}}_applyResize(){if(this.mapInstance&&this.mapInstance.enableResize)try{"function"===typeof this.mapInstance.checkResize&&this.mapInstance.checkResize()}catch(t){}}destroy(){if(this._callbackName&&"undefined"!==typeof window)try{delete window[this._callbackName]}catch(t){}super.destroy()}}const xe={amap:de,tianditu:ge,baidu:me},be=t=>xe[t]||de;const _e=["amap","tianditu","baidu"],we=["standard","satellite","hybrid","traffic"],Se=["light","dark"],Me={provider:"amap",apiKey:"",apiUrl:null,mapType:"standard",theme:"light",center:[116.397428,39.90923],zoom:11,plugins:[],securityJsCode:null,tiandituLayerType:"vec",baiduCoordType:"bd09ll"};let Oe={...Me};const Ie=[],Te=(t,e)=>{Ie.forEach(n=>{try{n(t,e)}catch(r){console.warn("[XtMap] 配置变更监听异常:",r)}})},Ce=()=>({...Oe}),Ae=t=>{_e.includes(t)?(Oe.provider=t,Te("provider",t)):console.warn(`[XtMap] 无效的地图提供商: ${t},可选: ${_e.join(", ")}`)},De=t=>{Oe.apiKey=t,Te("apiKey",t)},ke=t=>{Oe.apiUrl=t,Te("apiUrl",t)},Le=t=>{we.includes(t)?(Oe.mapType=t,Te("mapType",t)):console.warn(`[XtMap] 无效的地图类型: ${t},可选: ${we.join(", ")}`)},Pe=t=>{Se.includes(t)?(Oe.theme=t,Te("theme",t)):console.warn(`[XtMap] 无效的主题: ${t},可选: ${Se.join(", ")}`)},je=t=>{Array.isArray(t)&&2===t.length?(Oe.center=t,Te("center",t)):console.warn("[XtMap] center 必须是 [lng, lat] 数组")},Re=t=>{const e=Number(t);isNaN(e)?console.warn("[XtMap] zoom 必须是数字"):(Oe.zoom=e,Te("zoom",e))},Ne=t=>{Array.isArray(t)?(Oe.plugins=t,Te("plugins",t)):console.warn("[XtMap] plugins 必须是数组")},Ee=t=>{Oe.securityJsCode=t,"undefined"!==typeof window&&t&&(window._AMapSecurityConfig={securityJsCode:t,...window._AMapSecurityConfig||{}}),Te("securityJsCode",t)},ze=()=>Oe.provider,Be=()=>Oe.apiKey,Ve=()=>Oe.apiUrl,Fe=()=>Oe.mapType,He=()=>Oe.theme,Ge=()=>Oe.center,We=()=>Oe.zoom,Ye=()=>Oe.plugins,Ue=t=>{if("function"===typeof t)return Ie.push(t),()=>{const e=Ie.indexOf(t);e>-1&&Ie.splice(e,1)}};var Xe={name:"XtMap",props:{provider:{type:String,default:"",validator:t=>""===t||_e.includes(t)},apiKey:{type:String,default:""},apiUrl:{type:String,default:""},mapType:{type:String,default:"",validator:t=>""===t||we.includes(t)},theme:{type:String,default:"",validator:t=>""===t||Se.includes(t)},center:{type:Array,default:()=>null},zoom:{type:Number,default:null},plugins:{type:Array,default:()=>[]},width:{type:String,default:"100%"},height:{type:String,default:"400px"},securityJsCode:{type:String,default:""},tiandituLayerType:{type:String,default:"vec"},baiduCoordType:{type:String,default:"bd09ll"}},data(){return{loading:!0,errorMessage:"",adapter:null,_unsubscribeConfig:null}},computed:{mergedProvider(){return this.provider||ze()||"amap"},mergedApiKey(){return this.apiKey||Be()||""},mergedApiUrl(){return this.apiUrl||Ve()||""},mergedMapType(){return this.mapType||Fe()||"standard"},mergedTheme(){return this.theme||He()||"light"},mergedCenter(){return this.center||Ge()||[116.397428,39.90923]},mergedZoom(){return null!==this.zoom?this.zoom:We()},mergedSecurityJsCode(){return this.securityJsCode||Ce().securityJsCode||""},mergedPlugins(){return this.plugins.length>0?this.plugins:Ce().plugins||[]}},watch:{mergedProvider:{handler(){this.$nextTick(()=>this.rebuildMap())}},mergedApiKey:{handler(){this.$nextTick(()=>this.rebuildMap())}},mergedMapType:{handler(t){this.adapter&&this.adapter.setMapType(t)}},mergedTheme:{handler(t){this.adapter&&this.adapter.setTheme(t),this.$refs.mapContainer&&this.$refs.mapContainer.setAttribute("data-theme",t)}},mergedCenter:{handler(t){this.adapter&&this.adapter.setCenter(t)}},mergedZoom:{handler(t){this.adapter&&this.adapter.setZoom(t)}},width:{handler(){this.$nextTick(()=>{this.adapter&&this.adapter.resize()})}},height:{handler(){this.$nextTick(()=>{this.adapter&&this.adapter.resize()})}},securityJsCode:{handler(t){t&&(Ee(t),"amap"===this.mergedProvider&&this.adapter&&this.adapter.ready&&this.$nextTick(()=>this.rebuildMap()))}}},mounted(){this._unsubscribeConfig=Ue((t,e)=>{this.provider||"provider"!==t||this.$nextTick(()=>this.rebuildMap()),this.apiKey||"apiKey"!==t||this.$nextTick(()=>this.rebuildMap()),this.apiUrl||"apiUrl"!==t||this.$nextTick(()=>this.rebuildMap()),!this.theme&&"theme"===t&&this.adapter&&this.adapter.setTheme(e),!this.mapType&&"mapType"===t&&this.adapter&&this.adapter.setMapType(e),!this.center&&"center"===t&&this.adapter&&this.adapter.setCenter(e),null===this.zoom&&"zoom"===t&&this.adapter&&this.adapter.setZoom(e)}),this.securityJsCode&&Ee(this.securityJsCode),this.$nextTick(()=>this.initMap()),this._onWindowResize=()=>{this.adapter&&this.adapter.resize()},"undefined"!==typeof window&&window.addEventListener("resize",this._onWindowResize)},beforeDestroy(){this.destroyMap(),this._unsubscribeConfig&&this._unsubscribeConfig(),this._onWindowResize&&"undefined"!==typeof window&&window.removeEventListener("resize",this._onWindowResize)},methods:{async initMap(){const t=this.$refs.mapContainer;if(!t)return;t.style.width=this.width,t.style.height=this.height,this.securityJsCode&&Ee(this.securityJsCode),this.loading=!0,this.errorMessage="";const e=be(this.mergedProvider);this.adapter=new e(t,{apiKey:this.mergedApiKey,apiUrl:this.mergedApiUrl,mapType:this.mergedMapType,theme:this.mergedTheme,center:this.mergedCenter,zoom:this.mergedZoom,plugins:this.mergedPlugins,securityJsCode:this.mergedSecurityJsCode,tiandituLayerType:this.tiandituLayerType,baiduCoordType:this.baiduCoordType});try{await this.adapter.init(),this.loading=!1,this._bindAdapterEvents(),this.$emit("ready",{provider:this.mergedProvider,map:this.adapter.getNativeMap(),adapter:this.adapter})}catch(n){this.loading=!1,this.errorMessage=n.message||"地图初始化失败",this.$emit("error",n)}},rebuildMap(){this.destroyMap(),"function"===typeof oe&&oe(),this.$nextTick(()=>this.initMap())},destroyMap(){this.adapter&&(this.adapter.destroy(),this.adapter=null)},_bindAdapterEvents(){if(!this.adapter)return;const t=["click","moveend","zoomend","zoomchange","mapmove"];t.forEach(t=>{this.adapter.on(t,e=>{this.$emit(t,e)})})},setCenter(t){this.adapter&&this.adapter.setCenter(t)},setZoom(t){this.adapter&&this.adapter.setZoom(t)},setMapType(t){this.adapter&&this.adapter.setMapType(t)},setTheme(t){this.adapter&&this.adapter.setTheme(t)},getCenter(){return this.adapter?this.adapter.getCenter():this.mergedCenter},getZoom(){return this.adapter?this.adapter.getZoom():this.mergedZoom},getNativeMap(){return this.adapter?this.adapter.getNativeMap():null},resize(){this.adapter&&this.adapter.resize()},on(t,e){this.adapter&&this.adapter.on(t,e)},off(t){this.adapter&&this.adapter.off(t)},rebuild(){this.rebuildMap()}}},Ze=Xe,qe=z(Ze,ee,ne,!1,null,null,null),$e=qe.exports,Ke=function(){var t=this,e=t._self._c;return e("div",{class:["xt-map-provider",{"xt-map-provider--dark":"dark"===t.mergedTheme}],style:t.wrapperStyle},[t._t("default")],2)},Je=[],Qe={name:"XtMapProvider",props:{provider:{type:String,default:"",validator:t=>""===t||_e.includes(t)},apiKey:{type:String,default:""},apiUrl:{type:String,default:""},mapType:{type:String,default:"",validator:t=>""===t||we.includes(t)},theme:{type:String,default:"",validator:t=>""===t||Se.includes(t)},center:{type:Array,default:()=>null},zoom:{type:Number,default:null},plugins:{type:Array,default:()=>[]},securityJsCode:{type:String,default:""},tag:{type:String,default:"div"}},data(){return{mergedTheme:this.theme||He()||"light"}},computed:{wrapperStyle(){return{}}},watch:{provider:{immediate:!0,handler(t){t&&Ae(t)}},apiKey:{immediate:!0,handler(t){t&&De(t)}},apiUrl:{immediate:!0,handler(t){t&&ke(t)}},mapType:{immediate:!0,handler(t){t&&Le(t)}},theme:{immediate:!0,handler(t){t&&(Pe(t),this.mergedTheme=t)}},center:{immediate:!0,handler(t){t&&je(t)}},zoom:{immediate:!0,handler(t){null!==t&&void 0!==t&&Re(t)}},plugins:{immediate:!0,handler(t){t&&t.length>0&&Ne(t)}},securityJsCode:{immediate:!0,handler(t){t&&Ee(t)}}},provide(){return{xtMapConfig:{getProvider:()=>this.provider||ze(),getApiKey:()=>this.apiKey||Be(),getApiUrl:()=>this.apiUrl||Ve(),getMapType:()=>this.mapType||Fe(),getTheme:()=>this.theme||He(),getCenter:()=>this.center||Ge(),getZoom:()=>null!==this.zoom?this.zoom:We(),getPlugins:()=>this.plugins.length>0?this.plugins:Ye(),getConfig:()=>({provider:this.provider||ze(),apiKey:this.apiKey||Be(),apiUrl:this.apiUrl||Ve(),mapType:this.mapType||Fe(),theme:this.theme||He(),center:this.center||Ge(),zoom:null!==this.zoom?this.zoom:We()})}}},created(){this._unsubscribe=Ue((t,e)=>{"theme"===t&&(this.mergedTheme=this.theme||e)})},beforeDestroy(){this._unsubscribe&&this._unsubscribe()}},tn=Qe,en=(n("3cef"),z(tn,Ke,Je,!1,null,"16f243b0",null)),nn=en.exports;n("c759");$e.install=function(t){t.component($e.name,$e)},nn.install=function(t){t.component(nn.name,nn)};var rn={install(t){t.component($e.name,$e),t.component(nn.name,nn)},XtMap:$e,XtMapProvider:nn};$e.name,nn.name;var an=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-grid-box",style:t.styleAttrs},[t._t("default")],2)},on=[],sn={name:"XtGridBox",props:{columns:{type:[String,Array,Number],default:"1fr"},rows:{type:[String,Array],default:"auto"},gap:{type:String,default:""},rowGap:{type:String,default:""},colGap:{type:String,default:""},flow:{type:String,default:"row",validator:t=>["row","column","row dense","column dense"].includes(t)},areas:{type:[String,Array],default:""},align:{type:String,default:"stretch",validator:t=>["start","end","center","stretch","baseline"].includes(t)},justify:{type:String,default:"start",validator:t=>["start","end","center","space-between","space-around","space-evenly","stretch"].includes(t)},responsive:{type:Object,default:()=>({})},autoFlow:{type:String,default:""}},computed:{styleAttrs(){const t={display:"grid"};return"number"===typeof this.columns?t.gridTemplateColumns=`repeat(${this.columns}, 1fr)`:Array.isArray(this.columns)?t.gridTemplateColumns=this.columns.join(" "):t.gridTemplateColumns=this.columns,Array.isArray(this.rows)?t.gridTemplateRows=this.rows.join(" "):t.gridTemplateRows=this.rows,this.gap?t.gap=this.gap:(this.rowGap&&(t.rowGap=this.rowGap),this.colGap&&(t.columnGap=this.colGap)),this.flow&&(t.gridAutoFlow=this.flow),this.areas&&(Array.isArray(this.areas)?t.gridTemplateAreas=this.areas.map(t=>`"${t}"`).join(" "):t.gridTemplateAreas=this.areas),this.align&&(t.placeItems=this.align),this.justify&&(t.placeContent=this.justify),Object.keys(this.responsive).length>0&&this.addResponsiveStyles(t),t}},methods:{addResponsiveStyles(t){const e={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"};Object.entries(this.responsive).forEach(([t,n])=>{if(e[t]){e[t]}})}}},ln=sn,un=z(ln,an,on,!1,null,null,null),cn=un.exports;cn.install=function(t){t.component(cn.name,cn)};var hn=cn,dn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-grid-item",style:t.styleAttrs},[t._t("default")],2)},pn=[],fn={name:"XtGridItem",props:{span:{type:Number,default:1,validator:t=>t>0},rowSpan:{type:Number,default:1,validator:t=>t>0},start:{type:Number,default:0,validator:t=>t>=0},rowStart:{type:Number,default:0,validator:t=>t>=0},area:{type:String,default:""},justifySelf:{type:String,default:"auto",validator:t=>["auto","start","end","center","stretch"].includes(t)},alignSelf:{type:String,default:"auto",validator:t=>["auto","start","end","center","stretch","baseline"].includes(t)},customClass:{type:String,default:""}},computed:{styleAttrs(){const t={};return this.span>1&&(t.gridColumnEnd="span "+this.span),this.rowSpan>1&&(t.gridRowEnd="span "+this.rowSpan),this.start>0&&(t.gridColumnStart=this.start),this.rowStart>0&&(t.gridRowStart=this.rowStart),this.area&&(t.gridArea=this.area),this.justifySelf&&"auto"!==this.justifySelf&&(t.justifySelf=this.justifySelf),this.alignSelf&&"auto"!==this.alignSelf&&(t.alignSelf=this.alignSelf),t}}},gn=fn,yn=(n("d728"),z(gn,dn,pn,!1,null,"5318efc6",null)),vn=yn.exports;vn.install=function(t){t.component(vn.name,vn)};var mn=vn,xn=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"inline-block"}},["quarter"==t.dateType?e("FlexBox",{staticClass:"xt-date-picker",class:{focus:t.isfocus},style:t.width?{width:t.width+"px"}:{},attrs:{type:"inline-flex"}},[e("Quarter",{attrs:{format:t.format,placeholder:"开始时间","quarter-type":"quarter-start",clearable:""},model:{value:t.timeStart,callback:function(e){t.timeStart=e},expression:"timeStart"}}),e("span",{staticClass:"separator"},[t._v(t._s(t.separator))]),e("Quarter",{attrs:{format:t.format,placeholder:"结束时间","quarter-type":"quarter-end",clearable:""},model:{value:t.timeEnd,callback:function(e){t.timeEnd=e},expression:"timeEnd"}})],1):e("FlexBox",{staticClass:"xt-date",class:{focus:t.isfocus},style:t.width?{width:t.width+"px"}:{},attrs:{type:"inline-flex"}},[e("el-date-picker",{key:"startSelect",ref:"timeStart",attrs:{size:"small",disabled:t.disabled,"append-to-body":"","picker-options":t.startTimeRange,format:t.format,type:t.dateType,placeholder:"开始时间",clearable:""},on:{blur:function(e){return t.$emit("blur")},focus:function(e){return t.$emit("focus")}},model:{value:t.timeStart,callback:function(e){t.timeStart=e},expression:"timeStart"}}),e("span",{staticClass:"separator"},[t._v(t._s(t.separator))]),e("el-date-picker",{key:"endSelect",ref:"timeEnd",attrs:{size:"small",disabled:t.disabled,"append-to-body":"","picker-options":t.endTimeRange,format:t.format,type:t.dateType,placeholder:"结束时间",clearable:""},on:{blur:function(e){return t.$emit("blur")},focus:function(e){return t.$emit("focus")}},model:{value:t.timeEnd,callback:function(e){t.timeEnd=e},expression:"timeEnd"}})],1)],1)},bn=[],_n=function(){var t=this,e=t._self._c;return e("el-popover",{attrs:{trigger:"click",disabled:t.disabled,transition:"el-zoom-in-top",placement:t.placement,width:t.popoverWidth},on:{hide:t.handleBlur},model:{value:t.popoverVisible,callback:function(e){t.popoverVisible=e},expression:"popoverVisible"}},[e("div",{staticClass:"quarter-wrapper"},[e("BaseFlexBox",{attrs:{content:"between"}},[e("i",{staticClass:"el-icon-d-arrow-left",on:{click:t.prev}}),e("span",[t._v(t._s(t.selectYear))]),e("i",{staticClass:"el-icon-d-arrow-right",on:{click:t.after}})]),e("BaseFlexBox",{staticStyle:{"margin-top":"10px"},attrs:{content:"between"}},t._l(t.quarterList,(function(n){return e("el-button",{key:n.value,attrs:{disabled:t.getDisable(n),type:t.currentyear==t.selectYear&&n.value==t.currentQuarter?"primary":"",size:"mini",round:""},on:{click:function(e){return t.setCurrent(n)}}},[t._v(t._s(n.label))])})),1)],1),e("el-input",{ref:"reference",attrs:{slot:"reference",size:"small",value:t.quarterLabel,readonly:"",title:t.value,placeholder:t.placeholder,"prefix-icon":"el-icon-date",clearable:""},slot:"reference"})],1)},wn=[],Sn=n("340b"),Mn=n.n(Sn),On={name:"DateQuarter",components:{BaseFlexBox:tt},model:{props:"value",event:"change"},props:{value:{},quarterType:{type:String,default:"quarter"},placement:{type:String,default:"bottom-start"},format:{type:String,default:"yy-Qq"},popoverWidth:Number,placeholder:{},pickerOptions:{type:Object,default:()=>({disabledDate:()=>!1})},disabled:{}},data(){const t=this.getQuarterDate(this.value),e=t?t.getFullYear():"",n=t?t.getMonth():"",r=t?t.getFullYear():(new Date).getFullYear();return{dateVal:t,currentyear:e,currentQuarter:Mn.a.getQuarter(t),selectYear:r,currentMonth:n,popoverVisible:!1,quarterList:[{label:"Q1",value:1},{label:"Q2",value:2},{label:"Q3",value:3},{label:"Q4",value:4}]}},computed:{diffQuarter(){return 4*(this.selectYear-this.currentyear)-this.currentQuarter},quarterLabel:{get(){return this.currentyear&&this.currentQuarter?this.getFormatVal():""}}},methods:{getQuarterDate(t){if(!t)return null;if("quarter-start"==this.quarterType)return Mn.a.startOfQuarter(t);if("quarter-end"==this.quarterType)return Mn.a.endOfQuarter(t);{const e=Mn.a.getQuarter(t);return Mn.a.setQuarter(this.value,e)}},getDisable(t){},handleChangeVal(t){},getFormatVal(){if(!this.format)return`${this.currentyear}-Q${this.currentQuarter}`;const t={y:this.currentyear,q:this.currentQuarter},e=this.format.replace(/(y|q)+/g,(e,n)=>{const r=t[n];return r||""});return e},setCurrent(t){this.dateVal||(this.dateVal=new Date),this.dateVal.setFullYear(this.selectYear),this.dateVal=Mn.a.setQuarter(this.dateVal,t.value),this.$emit("change",this.dateVal),this.currentQuarter=t.value,this.currentyear=this.selectYear,this.popoverVisible=!1},after(){this.dateVal.setFullYear(this.dateVal.getFullYear()+1),this.selectYear=this.dateVal.getFullYear()},prev(){this.dateVal.setFullYear(this.dateVal.getFullYear()-1),this.selectYear=this.dateVal.getFullYear()},handleBlur(){this.$refs.reference.blur()}}},In=On,Tn=z(In,_n,wn,!1,null,null,null),Cn=Tn.exports;const An={datetime:"yyyy-MM-dd HH:mm",month:"yyyy-MM",year:"yyyy",date:"yyyy-MM-dd",quarter:"yyyy-Qq",week:"yyyy-WW"};var Dn={name:"ExDatePicker",components:{FlexBox:tt,Quarter:Cn},model:{prop:"value",event:"change"},props:{value:{},dateType:{type:String,default:"date"},separator:{type:String,default:"至"},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0},placeholder:{},width:{type:Number,default:280}},data(){return{isfocus:!1}},computed:{format(){return An[this.dateType]||"yyyy-MM-dd"},timeStart:{get(){return this.value&&this.value[0]},set(t){this.$emit("update:value",[t,this.timeEnd]),this.$emit("change",[t,this.timeEnd])}},timeEnd:{get(){return this.value&&this.value[1]},set(t){this.$emit("update:value",[this.timeStart,t]),this.$emit("change",[this.timeStart,t])}},startTimeRange(){if(!this.timeEnd)return{};const t=this.timeEnd.getTime();return{disabledDate:e=>e.getTime()>t}},endTimeRange(){if(!this.timeStart)return{};const t=this.timeStart.getTime();return{disabledDate:e=>e.getTime()<t}}},methods:{}},kn=Dn,Ln=(n("2cd0"),z(kn,xn,bn,!1,null,"ff20c256",null)),Pn=Ln.exports;Pn.install=function(t){t.component(Pn.name,Pn)};var jn=Pn,Rn=function(){var t=this,e=t._self._c;return e("el-button",t._b({staticClass:"ex-button",class:t.buttonClasses,on:{click:t.handleClick}},"el-button",t.$attrs,!1),[t._t("default")],2)},Nn=[],En={name:"ExButton",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:"light",size:"medium",primaryColor:"#1890ff"})}},props:{type:{type:String,default:"default",validator:t=>["default","primary","success","warning","danger"].includes(t)},throttle:{type:Number,default:0},size:{type:String,default:null,validator:t=>!t||["mini","small","medium","large"].includes(t)}},data(){return{lastClickTime:0}},computed:{finalSize(){return this.size||this.xtConfig.size||"medium"},buttonClasses(){return["ex-button-"+this.finalSize,"ex-button-"+this.type]}},methods:{handleClick(){this.throttle>0&&Date.now()-this.lastClickTime<this.throttle||(this.lastClickTime=Date.now(),this.$emit("click"))}}},zn=En,Bn=z(zn,Rn,Nn,!1,null,null,null),Vn=Bn.exports;Vn.install=function(t){t.component(Vn.name,Vn)};var Fn=Vn,Hn=function(){var t=this,e=t._self._c;return"bar"==t.type?e("ex-bar",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"ex-bar",t.$attrs,!1)):"line"==t.type?e("ex-line",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"ex-line",t.$attrs,!1)):"pie"==t.type?e("ex-pie",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"ex-pie",t.$attrs,!1)):"multi"==t.type?e("ex-multi",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"ex-multi",t.$attrs,!1)):t._e()},Gn=[],Wn=function(){var t=this,e=t._self._c;return e("div",{ref:"barchart",staticClass:"bar-box"})},Yn=[],Un={name:"XtBar",props:{chartData:{type:Array,default:()=>[{value:65,label:"吴十"},{value:70,label:"唐九"},{value:73,label:"钱一"},{value:78,label:"孙二"},{value:88,label:"刘八"},{value:93,label:"王七"},{value:99,label:"赵六"},{value:103,label:"宋五"},{value:113,label:"李四"},{value:125,label:"张三"}]},theme:{},size:{type:String,default:"medium"},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},markPoint:{type:Boolean,default:!1},unit:{type:String,default:""},showZoom:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},longLable:{type:Boolean,default:!1},longLableSplitNum:{type:Number,default:1},longLablePx:{type:Number,default:150},splitNumber:{type:Number,default:5},simpleMode:{type:Boolean,default:!1}},data(){return{myChart:null,name:"数量"}},watch:{chartData:{deep:!0,handler(t,e){const n=this;n.initChart()}},unit:{deep:!0,handler(t,e){const n=this;n.initChart()}},theme(t){this.initChart()}},mounted(){this.initChart()},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n={type:"category",inverse:this.reverse,axisLabel:{interval:0,formatter:function(e){return!t.reverse&&t.longLable?e.replace(new RegExp(`(.{${t.longLableSplitNum}})`,"g"),"$1\n"):e}},data:t.chartData.map(t=>t[e.label])},r={type:"value",splitLine:{lineStyle:{type:"dashed"}},name:t.energyType,axisTick:{inside:!0},min:0,splitNumber:t.splitNumber,max:function(e){return Math.ceil(e.max/t.splitNumber)*t.splitNumber},scale:!0,axisLabel:{margin:2,formatter:function(t,e){return t>=1e4&&t<1e7?t=t/1e4+"万":t>=1e7&&(t=t/1e7+"千万"),t}}},i={legend:{right:20,top:0,textStyle:{fontSize:12}},tooltip:{borderWidth:1,trigger:"item"},grid:{top:"10",left:40+(this.reverse&&this.longLable?t.longLablePx:0),right:"10",bottom:(t.showZoom?50:20)+(!t.reverse&&t.longLable?t.longLablePx:0),containLabel:!0},xAxis:this.reverse?r:n,yAxis:this.reverse?n:r,series:{name:t.unit,type:"bar",markPoint:{data:[{type:"min",name:"Min"},{type:"max",name:"Max"}]},avoidLabelOverlap:!0,data:t.chartData.map((t,n)=>{const r=t[e.label],i=t[e.value];return{value:i,name:r,tooltip:{borderWidth:1}}})},dataZoom:t.showZoom?[{height:20,bottom:0}]:[]};this.markPoint||this.$delete(i.series[0],"markPoint"),this.simpleMode&&g.applySimpleMode(i,"bar"),this.myChart=g.init(t.$refs.barchart,this.theme,i,this.size)}}},Xn=Un,Zn=(n("a1a2"),z(Xn,Wn,Yn,!1,null,"06ad80ef",null)),qn=Zn.exports,$n=function(){var t=this,e=t._self._c;return e("div",{ref:"linechart",staticClass:"line-box"})},Kn=[],Jn={name:"XtLine",props:{theme:{},size:{type:String,default:"medium"},chartData:{type:Array,default:()=>[{value:53,label:"张三"},{value:10,label:"李四"},{value:60,label:"宋五"}]},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},isArea:{type:Boolean,default:!1},unit:{type:String,default:""},intervalvalue:{type:Number,default:0},simpleMode:{type:Boolean,default:!1}},data(){return{myChart:null}},watch:{chartData:{deep:!0,handler(t,e){const n=this;n.initChart()}},unit:{deep:!0,handler(t,e){const n=this;n.initChart()}},theme(t){this.initChart()}},mounted(){this.initChart()},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n={animationDuration:500,grid:{top:"18%",left:"30",right:"30",bottom:"20"},xAxis:[{type:"category",splitLine:{show:!0,lineStyle:{type:"dashed"}},axisLabel:{interval:this.intervalvalue},boundaryGap:!1,data:t.chartData.map(t=>t[e.label])}],yAxis:{type:"value",axisLine:{show:!1,lineStyle:{}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}},name:t.unit,scale:!0,axisLabel:{margin:2,formatter:function(t,e){return t>=1e4&&t<1e7?t=Math.floor(t/1e4)+"万":t>=1e7&&(t=Math.floor(t/1e7)+"千万"),t}}},series:[{type:"line",symbol:"circle",areaStyle:t.isArea?{}:null,smooth:!0,avoidLabelOverlap:!0,data:t.chartData.map((t,n)=>t[e.value])}]};this.simpleMode&&g.applySimpleMode(n,"line"),this.myChart=g.init(t.$refs.linechart,this.theme,n,this.size)}}},Qn=Jn,tr=(n("24e9"),z(Qn,$n,Kn,!1,null,"358cb278",null)),er=tr.exports,nr=function(){var t=this,e=t._self._c;return e("div",{ref:"piechart",staticClass:"pie-box"})},rr=[],ir={name:"XtPie",props:{theme:{},size:{type:String,default:"medium"},chartData:{type:Array,default:()=>[{value:53,label:"张三"},{value:10,label:"李四"},{value:60,label:"宋五"}]},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},colors:{type:Array,default:()=>[]},unit:{type:String,default:""},showLegend:{type:Boolean,default:!0},simpleMode:{type:Boolean,default:!1},highlightKey:String,roseType:{type:String,default:""},showLabel:{type:Boolean,default:!0},totalLabel:{type:String,default:"总数"}},data(){return{myChart:null}},computed:{totalNum(){const t=Object.assign({label:"label",value:"value",data:"data"},this.fieldKeys||{});return this.chartData.map(e=>parseFloat(e[t.value])).reduce((t,e)=>t+e,0)}},watch:{chartData:{deep:!0,handler(t,e){const n=this;n.initChart()}},theme(t){this.initChart()}},mounted(){this.$nextTick(()=>{this.initChart()})},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n={title:{text:`${t.totalLabel}:${t.totalNum}`,textStyle:{},top:"middle",left:"center"},tooltip:{trigger:"item"},legend:this.showLegend?{top:"top",right:"20",type:"scroll"}:null,grid:{left:30,right:0,top:20,bottom:0,containLabel:!0},series:[{name:t.unit,type:"pie",center:["50%","50%"],roseType:this.roseType,radius:["50%","65%"],minAngle:5,avoidLabelOverlap:!0,data:t.chartData.map((t,n)=>{const r=t[e.label],i=t[e.value];return{value:i,name:r,labelLine:{show:this.showLabel},emphasis:{labelLine:{show:this.showLabel}},label:{show:this.showLabel},tooltip:{formatter:"{b}:{c} ({d}%)",position:"inside",borderWidth:1}}})}]};this.simpleMode&&g.applySimpleMode(n,"pie"),this.myChart=g.init(t.$refs.piechart,this.theme,n,this.size)}}},ar=ir,or=(n("2be4"),z(ar,nr,rr,!1,null,"ee1d466e",null)),sr=or.exports,lr=function(){var t=this,e=t._self._c;return e("div",{ref:"multilinechart",staticClass:"multiline-box"})},ur=[],cr={name:"XtMulti",props:{theme:{},size:{type:String,default:"medium"},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},simpleMode:{type:Boolean,default:!1},highlightKey:String,config:{type:Object,default(){return{interval:0,rotate:0,gridbottom:40,isShowthreshold:!1}}},chartData:{type:Array,default:()=>[{label:"入户数",unit:"户",data:[{label:"01月",value:980},{label:"02月",value:806},{label:"03月",value:930},{label:"04月",value:804},{label:"05月",value:750},{label:"06月",value:660},{label:"07月",value:780},{label:"08月",value:630},{label:"09月",value:806},{label:"10月",value:950},{label:"11月",value:810},{label:"12月",value:703}]},{label:"隐患数",unit:"个",data:[{label:"01月",value:200},{label:"02月",value:120},{label:"03月",value:110},{label:"04月",value:109},{label:"05月",value:108},{label:"06月",value:150},{label:"07月",value:126},{label:"08月",value:130},{label:"09月",value:108},{label:"10月",value:109},{label:"11月",value:140},{label:"12月",value:106}]},{label:"整改数",unit:"个",data:[{label:"01月",value:25},{label:"02月",value:19},{label:"03月",value:34},{label:"04月",value:12},{label:"05月",value:16},{label:"06月",value:20},{label:"07月",value:19},{label:"08月",value:18},{label:"09月",value:14},{label:"10月",value:12},{label:"11月",value:11},{label:"12月",value:16}]}]},colors:{type:Array,default:()=>[]}},data(){return{myChart:null}},watch:{chartData:{deep:!0,handler(t,e){const n=this;this.myChart&&this.myChart.dispose(),this.myChart=null,n.initChart()}},theme(t){this.myChart&&this.myChart.dispose(),this.myChart=null,this.initChart()}},mounted(){this.initChart()},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n=[];(t.chartData||[]).forEach(t=>{const e=t.unit||"";-1===n.indexOf(e)&&n.push(e)});const r=(t,e)=>{const n={type:"value",name:t,axisLine:{show:!1,lineStyle:{}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}},axisLabel:{formatter:function(t,e){return t>=1e4&&t<1e7?t=Math.floor(t/1e4)+"万":t>=1e7&&(t=Math.floor(t/1e7)+"千万"),t}}};return e>0&&(n.position="right",n.splitLine={show:!1}),n},i=n.length?n.map((t,e)=>r(t,e)):[r("",0)],a={};n.forEach((t,e)=>{a[t]=e});const o=t.chartData&&t.chartData.length&&t.chartData[0][e.data]||[],s={legend:{right:20,top:0,show:!0,data:t.chartData.map(t=>t[e.label]),textStyle:{}},tooltip:{borderWidth:1,trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"25%",left:"40",right:"15",bottom:null==this.config.gridbottom?20:this.config.gridbottom},xAxis:{type:"category",axisLabel:{rotate:this.config.rotate},data:o.map(t=>t[e.label])},yAxis:i,dataZoom:[{type:"inside",xAxisIndex:[0],start:1,end:100}],series:this.getSeriesData(a,e)};this.simpleMode&&g.applySimpleMode(s,"multi"),this.myChart=g.init(t.$refs.multilinechart,this.theme,s,this.size)},getSeriesData(t,e){const n=this,r=[];return n.chartData.forEach((n,i)=>{const a=n[e.data]||[],o={animation:!0,name:n[e.label],type:n.type||"bar",avoidLabelOverlap:!0,data:a.map(t=>t[e.value]),yAxisIndex:null!=t[n.unit||""]?t[n.unit||""]:0};r.push(o)}),r}}},hr=cr,dr=(n("bd59"),z(hr,lr,ur,!1,null,"6d9e7e44",null)),pr=dr.exports,fr={name:"ExChart",components:{ExBar:qn,ExLine:er,ExPie:sr,ExMulti:pr},props:{theme:{type:String,default:""},size:{type:String,default:"medium",validator:t=>["small","medium","large"].includes(t)},type:{type:String,required:!0,default:"bar"}},data(){return{myTheme:this.theme,mySize:this.size,observer:null}},mounted(){this.detectParentTheme(),this.observeThemeChange()},beforeUnmount(){this.observer&&this.observer.disconnect()},watch:{theme(t){this.myTheme=t},size(t){this.mySize=t}},methods:{detectParentTheme(){if(this.theme)return void(this.myTheme=this.theme);let t=this.$el?this.$el.parentElement:null;while(t){const e=t.getAttribute("data-theme");if(e)return void(this.myTheme="dark"===e?"dark":"default");t=t.parentElement}const e=document.body.getAttribute("data-theme"),n=document.documentElement.getAttribute("data-theme");this.myTheme="dark"===e||"dark"===n?"dark":"default"},observeThemeChange(){if(!this.$el)return;this.observer=new MutationObserver(t=>{t.forEach(t=>{if("attributes"===t.type&&"data-theme"===t.attributeName){const e=t.target.getAttribute("data-theme");"dark"===e?this.myTheme="dark":"light"===e&&(this.myTheme="default")}})});let t=this.$el.parentElement;while(t)this.observer.observe(t,{attributes:!0,attributeFilter:["data-theme"]}),t=t.parentElement;this.observer.observe(document.body,{attributes:!0,attributeFilter:["data-theme"]}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}}},gr=fr,yr=z(gr,Hn,Gn,!1,null,null,null),vr=yr.exports;vr.install=function(t){t.component(vr.name,vr)};var mr=vr,xr=function(){var t=this,e=t._self._c;return e("el-card",t._b({staticClass:"ex-card",class:t.cardClasses,scopedSlots:t._u([t.$slots.header||t.title?{key:"header",fn:function(){return[t._t("header",(function(){return[t._v(t._s(t.title))]}))]},proxy:!0}:null],null,!0)},"el-card",t.$attrs,!1),[t._t("default")],2)},br=[],_r={name:"ExCard",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:"light",size:"medium",primaryColor:"#1890ff"})}},props:{title:{type:String,default:""},shadow:{type:String,default:"always",validator:t=>["always","hover","never"].includes(t)},bordered:{type:Boolean,default:!0},bodyClass:{type:String,default:""},size:{type:String,default:null,validator:t=>!t||["small","medium","large"].includes(t)}},computed:{finalSize(){return this.size||this.xtConfig.size||"medium"},cardClasses(){return["ex-card-"+this.shadow,"ex-card-"+this.finalSize,{"ex-card-no-border":!this.bordered,[this.bodyClass]:this.bodyClass}]}}},wr=_r,Sr=z(wr,xr,br,!1,null,null,null),Mr=Sr.exports;Mr.install=function(t){t.component(Mr.name,Mr)};var Or=Mr,Ir=function(){var t=this,e=t._self._c;t._self._setupProxy;return e(t.tag,t._g({tag:"component",class:t.iconClasses,style:t.iconStyle,on:{click:t.handleClick}},t.$listeners),[t.isSvgSprite?e("svg",{style:t.svgStyle,attrs:{"aria-hidden":"true"}},[e("use",{attrs:{href:t.svgHref}})]):t.hasDefaultSlot?t._t("default"):t._e()],2)},Tr=[];const Cr={},Ar={name:"ExIcon",inheritAttrs:!1,props:{name:{type:String,default:""},size:{type:[String,Number],default:""},color:{type:String,default:""},spin:{type:Boolean,default:!1}},computed:{hasDefaultSlot(){return!!this.$slots.default},iconName(){return(this.name||"").trim()},isElIcon(){return/^el-icon-/.test(this.iconName)},isSvgInline(){return this.iconName.indexOf("<svg")>-1},isSvgSprite(){return/^(#|svg:)/.test(this.iconName)},isCustomFont(){return!!this.iconName&&(!this.isElIcon&&!this.isSvgInline&&!this.isSvgSprite)},svgHref(){if(!this.isSvgSprite)return"";const t=this.iconName.replace(/^svg:/,"").replace(/^#/,"");return"#"+t},needsExIconPrefix(){if(!this.isCustomFont)return!1;for(const t of Object.keys(Cr))if(0===this.iconName.indexOf(t))return!1;return!0},tag(){return this.isSvgInline?"span":"i"},iconClasses(){const t=[];return this.isElIcon?t.push(this.iconName):this.isSvgSprite?t.push("ex-icon-svg"):this.isCustomFont?(this.needsExIconPrefix&&t.push("ex-icon"),t.push(this.iconName)):this.isSvgInline&&t.push("ex-icon-inline-svg"),this.spin&&t.push("ex-icon-spin"),t},iconStyle(){const t={};if(this.size){const e="number"===typeof this.size?this.size+"px":this.size;t.fontSize=e,t.width=e,t.height=e}return this.color&&(t.color=this.color),this.isSvgInline&&(t.display="inline-block",t.verticalAlign="middle"),t},svgStyle(){return{width:"1em",height:"1em",verticalAlign:"-0.15em",fill:"currentColor",overflow:"hidden"}}},mounted(){this.isSvgInline&&this.$el&&(this.$el.innerHTML=this.iconName)},beforeUpdate(){this.isSvgInline&&this.$el&&(this.$el.innerHTML=this.iconName)},methods:{handleClick(t){this.$emit("click",t)}},registerPrefix:function(t){t&&"string"===typeof t&&(Cr[t]=!0)}};var Dr=Ar,kr=Dr,Lr=(n("0d47"),z(kr,Ir,Tr,!1,null,"01397354",null)),Pr=Lr.exports;Pr.install=function(t){t.component(Pr.name,Pr)};var jr,Rr,Nr=Pr,Er=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ex-table-wrapper"},[t.title||t.$slots.toolbar?e("div",{staticClass:"ex-table-header"},[t.title?e("span",{staticClass:"ex-table-title"},[t._v(t._s(t.title))]):t._e(),e("div",{staticClass:"ex-table-toolbar"},[t._t("toolbar")],2)]):t._e(),e("div",{staticClass:"ex-table-body"},[e("VirtualElTable",t._g(t._b({ref:"table",staticClass:"ex-table",attrs:{data:t.processedTableData,height:t.computedHeight,"max-height":t.computedMaxHeight,"virtual-scroll":t.virtualScroll,"row-height":t.rowInitHeight,"buffer-size":t.bufferSize,"span-method":t.groupColumns.length?t.handleSpanMethod:void 0,"row-class-name":t.getRowClassName},on:{"selection-change":t.handleSelectionChange,"sort-change":t.handleSortChange}},"VirtualElTable",t.$attrs,!1),t.$listeners),[t.selection?e("el-table-column",{attrs:{type:"selection",width:"55",fixed:t.selectionFixed}}):t._e(),t.showIndex?e("el-table-column",{attrs:{type:"index",width:"60",label:"#",fixed:t.indexFixed,index:t.indexMethod}}):t._e(),t._l(t.flattenedColumns,(function(n){return[n.children&&n.children.length?e("el-table-column",t._b({key:n._key},"el-table-column",t.getColumnProps(n),!1),[t._l(n.children,(function(n){return[e("el-table-column",t._b({key:n._key,scopedSlots:t._u([n.render?{key:"default",fn:function(e){return[t._v(t._s(n.render(e)))]}}:n.formatter?{key:"default",fn:function(t){return[e("ExTableCell",{attrs:{row:t.row,index:t.$index,formatter:n.formatter,column:n}})]}}:n.slot?{key:"default",fn:function(e){return[t._t(n.slot,null,{row:e.row,index:e.$index,column:n})]}}:null],null,!0)},"el-table-column",t.getColumnProps(n),!1))]}))],2):e("el-table-column",t._b({key:n._key,scopedSlots:t._u([n.render?{key:"default",fn:function(e){return[t._v(t._s(n.render(e)))]}}:n.formatter?{key:"default",fn:function(t){return[e("ExTableCell",{attrs:{row:t.row,index:t.$index,formatter:n.formatter,column:n}})]}}:n.slot?{key:"default",fn:function(e){return[t._t(n.slot,null,{row:e.row,index:e.$index,column:n})]}}:null],null,!0)},"el-table-column",t.getColumnProps(n),!1))]}))],2)],1),t.showPagination?e("div",{staticClass:"ex-table-footer"},[e("el-pagination",{attrs:{"current-page":t.pagination.ppageNum,"page-size":t.pagination.pageSize,total:t.total,"page-sizes":t.pagination.pageSizes||[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()])},zr=[],Br={name:"ExTableCell",functional:!0,props:{row:Object,index:Number,formatter:Function,column:{type:Object,default:null}},render:(t,e)=>{const n={row:e.props.row,index:e.props.index};e.props.column&&(n.column=e.props.column);const r=t=>null!==t&&void 0!==t&&"object"===typeof t&&t.hasOwnProperty("componentOptions"),i=e.props.formatter(t,n);return null===i||void 0===i||""===i?t("span",""):r(i)?i:t("span",String(i))}},Vr=Br,Fr=z(Vr,jr,Rr,!1,null,null,null),Hr=Fr.exports,Gr=function(){var t=this,e=t._self._c;return e("el-table",t._g(t._b({ref:"innerTable",attrs:{data:t.renderList}},"el-table",t.$attrs,!1),t.$listeners),[t._t("default")],2)},Wr=[],Yr={name:"VirtualElTable",inheritAttrs:!1,props:{virtualScroll:{type:Boolean,default:!1},rowHeight:{type:Number,default:48},bufferSize:{type:Number,default:5}},data(){return{scrollWrap:null,phantomDom:null,scrollTop:0,startIndex:0,endIndex:20,rafId:null,unwatchPhantom:null,layoutTimer:null,retryTimers:[]}},computed:{originData(){return this.$attrs.data||[]},renderList(){if(!this.virtualScroll)return this.originData;const t=Math.max(0,this.startIndex-this.bufferSize),e=Math.min(this.originData.length,this.endIndex+this.bufferSize);return this.originData.slice(t,e)},totalListHeight(){return this.originData.length*this.rowHeight},contentOffsetY(){return Math.max(0,this.startIndex-this.bufferSize)*this.rowHeight}},watch:{renderList(){this.scheduleLayout()},originData:{handler(t){this.virtualScroll&&t&&t.length&&this.$nextTick(()=>{this.calcVisibleRange()})}}},mounted(){this.$nextTick(()=>{this.initVirtualScroll()})},beforeDestroy(){this.unbindScrollEvent(),this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.unwatchPhantom&&(this.unwatchPhantom(),this.unwatchPhantom=null),this.layoutTimer&&(clearTimeout(this.layoutTimer),this.layoutTimer=null),this.retryTimers.forEach(t=>clearTimeout(t)),this.retryTimers=[]},methods:{initVirtualScroll(){if(!this.virtualScroll)return;if(this.scrollWrap=this.$refs.innerTable.$el.querySelector(".el-table__body-wrapper"),!this.scrollWrap)return console.warn("[VirtualElTable] 无法找到滚动容器,虚拟滚动功能已禁用"),void(this.virtualScroll=!1);this.scrollWrap.style.overflowY="auto",this.scrollWrap.style.overflowX="auto",this.wrapTableBody(),this.scrollWrap.addEventListener("scroll",this.onScroll,{passive:!0}),this.calcVisibleRange();const t=[100,300,600,1e3];t.forEach(t=>{const e=setTimeout(()=>{this.calcVisibleRange()},t);this.retryTimers.push(e)})},wrapTableBody(){const t=this.scrollWrap.querySelector(".el-table__body");if(!t||t.querySelector(".vs-phantom"))return;const e=document.createElement("div");e.className="vs-phantom",e.style.position="relative",e.style.minWidth="100%",e.style.boxSizing="border-box",e.style.zIndex="1",this.phantomDom=e;const n=t.querySelector("table");e.appendChild(n),t.appendChild(e),this.unwatchPhantom=this.$watch(["totalListHeight","contentOffsetY"],()=>{this.phantomDom&&(this.phantomDom.style.height=this.totalListHeight+"px",this.phantomDom.style.paddingTop=this.contentOffsetY+"px")},{immediate:!0})},onScroll(){this.scrollTop=this.scrollWrap.scrollTop,this.rafId||(this.rafId=requestAnimationFrame(()=>{this.calcVisibleRange(),this.rafId=null}))},calcVisibleRange(){if(!this.scrollWrap)return;let t=this.scrollWrap.clientHeight;if(!t){const e=this.$attrs.height||this.$attrs.maxHeight;e&&(t="number"===typeof e?e:parseInt(String(e),10))}if(!t||t<=0)return;const e=Math.ceil(t/this.rowHeight),n=Math.floor(this.scrollTop/this.rowHeight),r=Math.min(this.originData.length,n+e);n===this.startIndex&&r===this.endIndex||(this.startIndex=n,this.endIndex=r)},unbindScrollEvent(){this.scrollWrap&&this.scrollWrap.removeEventListener("scroll",this.onScroll)},scheduleLayout(){this.layoutTimer||(this.layoutTimer=setTimeout(()=>{this.$refs.innerTable&&this.$refs.innerTable.doLayout(),this.layoutTimer=null},0))},clearSelection(){return this.$refs.innerTable.clearSelection()},toggleRowSelection(){return this.$refs.innerTable.toggleRowSelection()},doLayout(){return this.$refs.innerTable.doLayout()}}},Ur=Yr,Xr=(n("ac06"),z(Ur,Gr,Wr,!1,null,"5eb34e1c",null)),Zr=Xr.exports,qr={name:"ExTable",inheritAttrs:!1,components:{ExTableCell:Hr,VirtualElTable:Zr},props:{tableData:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},groupColumns:{type:Array,default:()=>[]},title:{type:String,default:""},height:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:null},virtualScroll:{type:Boolean,default:!1},rowInitHeight:{type:Number,default:48},bufferSize:{type:Number,default:5},pagination:{type:Object,default:null},total:{type:Number,default:0},showIndex:{type:Boolean,default:!1},selection:{type:Boolean,default:!1},selectionFixed:{type:[String,Boolean],default:!1},indexFixed:{type:[String,Boolean],default:!1},loading:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"},subtotalConfig:{type:Object,default:()=>({enabled:!1})},totalConfig:{type:Object,default:()=>({enabled:!1})}},data(){return{spanCache:{},flattenedColumnsCache:[],selectedRows:[]}},computed:{showPagination(){return this.pagination&&this.total>0},computedHeight(){return this.height||void 0},computedMaxHeight(){return this.height?void 0:this.maxHeight||void 0},processedTableData(){if(!this.tableData.length)return[];let t=[...this.tableData];const e=this.subtotalConfig&&this.subtotalConfig.enabled,n=this.totalConfig&&this.totalConfig.enabled;if(!e&&!n)return t;this.findLabelColumn();let r=[];if(e&&this.subtotalConfig.groupBy&&this.subtotalConfig.groupBy.length){const e=this.groupData(t,this.subtotalConfig.groupBy);e.forEach(t=>{r.push(...t);const e=this.createSubtotalRow(t);r.push(e)})}else r=t;if(n){const e=this.createTotalRow(t);r.push(e)}return r},flattenedColumns(){if(this.flattenedColumnsCache.length)return this.flattenedColumnsCache;const t=(e,n="")=>e.map((e,r)=>{const i=n?`${n}_${r}`:String(r),a=e.prop||e.slot||e.label||i,o={...e,_key:a};return e.children&&e.children.length&&(o.children=t(e.children,i)),o});return this.flattenedColumnsCache=t(this.columns),this.flattenedColumnsCache}},watch:{tableData(){this.spanCache={},this.flattenedColumnsCache=[]},columns:{handler(){this.flattenedColumnsCache=[],this.spanCache={}},deep:!0},groupColumns:{handler(){this.spanCache={}},deep:!0}},mounted(){this.$nextTick(()=>{window.addEventListener("resize",this.handleResize)})},beforeDestroy(){window.removeEventListener("resize",this.handleResize)},methods:{handleResize(){this.$nextTick(()=>{this.$refs.table&&this.$refs.table.doLayout()})},findLabelColumn(){for(const t of this.columns)if(t.children&&t.children.length){for(const e of t.children)if(e.prop)return{prop:e.prop,label:e.label}}else if(t.prop)return{prop:t.prop,label:t.label};return{prop:"",label:""}},groupData(t,e){const n=new Map;return t.forEach(t=>{const r=e.map(e=>t[e]).join("|||");n.has(r)||n.set(r,[]),n.get(r).push(t)}),n},_calcValue(t,e){if("function"===typeof e)return e(t);const n=e.prop,r=e.type||"sum",i=n?t.map(t=>parseFloat(t[n])||0):[];switch(r){case"sum":return i.reduce((t,e)=>t+e,0);case"avg":case"average":return i.length?i.reduce((t,e)=>t+e,0)/i.length:0;case"count":return t.length;case"min":return i.length?Math.min(...i):0;case"max":return i.length?Math.max(...i):0;default:return""}},createSubtotalRow(t){const e=this.subtotalConfig,n=this.findLabelColumn(),r=e.groupBy?e.groupBy[0]:"",i=t[0]?t[0][r]:"",a=e.labelText||i+" 小计",o={_rowType:"subtotal"};return o[n.prop]=a,e.columns&&Object.keys(e.columns).forEach(n=>{const r=e.columns[n];o[n]="string"===typeof r?this._calcValue(t,{prop:n,type:r}):this._calcValue(t,r)}),o},createTotalRow(t){const e=this.totalConfig,n=this.findLabelColumn(),r=e.labelText||"总计",i={_rowType:"total"};return i[n.prop]=r,e.columns&&Object.keys(e.columns).forEach(n=>{const r=e.columns[n];i[n]="string"===typeof r?this._calcValue(t,{prop:n,type:r}):this._calcValue(t,r)}),i},getRowClassName({row:t}){return"subtotal"===t._rowType?"ex-table-row-subtotal":"total"===t._rowType?"ex-table-row-total":""},getColumnProps(t){const{_key:e,children:n,render:r,formatter:i,slot:a,...o}=t;return o},indexMethod(t){return t+1},handleSpanMethod({row:t,column:e,rowIndex:n}){if("subtotal"===t._rowType||"total"===t._rowType)return{rowspan:1,colspan:1};if(!this.groupColumns.length)return{rowspan:1,colspan:1};const r=this.processedTableData,i=e.property,a=this.groupColumns.indexOf(i);if(-1===a)return{rowspan:1,colspan:1};const o=`${n}_${i}`;if(this.spanCache[o])return this.spanCache[o];if(n>0){const e=r[n-1];let i=!0;for(let n=0;n<=a;n++){const r=this.groupColumns[n];if(e[r]!==t[r]){i=!1;break}}if(i){const t={rowspan:0,colspan:1};return this.spanCache[o]=t,t}}let s=1;for(let u=n+1;u<r.length;u++){const e=r[u];let n=!0;for(let r=0;r<=a;r++){const i=this.groupColumns[r];if(e[i]!==t[i]){n=!1;break}}if(!n)break;s++}const l={rowspan:s>1?s:1,colspan:1};return this.spanCache[o]=l,l},handleSelectionChange(t){this.selectedRows=t.filter(t=>!t._rowType),this.$emit("selection-change",this.selectedRows)},handleSortChange(t){this.$emit("sort-change",t)},handleSizeChange(t){this.$emit("size-change",t)},handleCurrentChange(t){this.$emit("page-change",t)},getSelection(){return this.selectedRows},clearSelection(){this.$refs.table&&this.$refs.table.clearSelection(),this.selectedRows=[]},toggleRowSelection(t,e){this.$refs.table&&this.$refs.table.toggleRowSelection(t,e)},toggleRowsSelection(t,e){t&&t.length&&t.forEach(t=>{this.$refs.table&&this.$refs.table.toggleRowSelection(t,e)})},doLayout(){this.$refs.table&&this.$refs.table.doLayout()}}},$r=qr,Kr=(n("781d"),z($r,Er,zr,!1,null,"1833f458",null)),Jr=Kr.exports;Jr.install=function(t){t.component(Jr.name,Jr)};var Qr=Jr;function ti(t=1e4){const e=["研发部","产品部","运营部","财务部","市场部"],n=["工程师","产品经理","运营专员","财务主管","市场经理"],r=["在职","休假","离职"];return Array.from({length:t},(t,i)=>({id:i+1,name:"用户"+(i+1),department:e[i%e.length],position:n[i%n.length],email:`user${i+1}@example.com`,phone:"13800138"+String(i).padStart(4,"0"),address:`北京市朝阳区第${i+1}号街道`,salary:5e3+Math.floor(1e4*Math.random()),status:r[i%r.length]}))}const ei=[{prop:"id",label:"ID",fixed:"left",width:80},{prop:"name",label:"姓名",fixed:"left",width:120},{prop:"department",label:"部门",width:150},{prop:"position",label:"职位",width:150},{prop:"email",label:"邮箱",width:200},{prop:"phone",label:"电话",width:130},{prop:"address",label:"地址",width:200},{prop:"salary",label:"薪资",width:120},{prop:"status",label:"状态",fixed:"right",width:100}],ni=P.default||P,{getConfig:ri,setConfig:ii,getTheme:ai,getSize:oi,getPrimaryColor:si,resetConfig:li,onConfigChange:ui,setTheme:ci,setSize:hi,setPrimaryColor:di}=ni,pi=[F,Z,et,lt,vt,wt,At,Vt,Qt,te,rn,nn,hn,mn,jn,Fn,mr,Or,Nr,Qr],fi=function(t,e={}){fi.installed||(fi.installed=!0,pi.forEach(e=>{t.component(e.name,e)}),t.prototype.$xt={setTheme:ci,setSize:hi,setPrimaryColor:di,getConfig:ri,setConfig:ii,getTheme:ai,getSize:oi,getPrimaryColor:si,resetConfig:li,onConfigChange:ui},e&&(void 0!==e.theme&&ci(e.theme),void 0!==e.size&&hi(e.size),void 0!==e.primaryColor&&di(e.primaryColor),void 0!==e.config&&ii(e.config)))};"undefined"!==typeof window&&window.Vue&&fi(window.Vue);var gi={install:fi,components:pi,XtButton:F,XtInput:Z,XtFlexBox:et,XtCard:lt,XtCardItem:vt,XtConfigProvider:wt,XtText:At,XtTime:Vt,XtStepPrice:Qt,XtStepPriceItem:te,XtMap:rn,XtMapProvider:nn,XtGridBox:hn,XtGridItem:mn,ExDatePicker:jn,ExButton:Fn,ExCard:Or,ExIcon:Nr,ExTable:Qr};e["default"]=gi},fb36:function(t,e,n){var r=n("b8f9"),i=n("c8d5");function a(t,e){var n=i(t),a=i(e),o=n.getFullYear()-a.getFullYear(),s=r(n)-r(a);return 4*o+s}t.exports=a},fb98:function(t,e,n){var r=n("1cc6");function i(t,e){var n=Number(e);return r(t,-n)}t.exports=i},fbaf:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t);return e.setMinutes(0,0,0),e}t.exports=i},fcb3:function(t,e,n){var r=n("6665");function i(t,e){var n=Number(e);return r(t,12*n)}t.exports=i},fd39:function(t,e,n){var r=n("0978");function i(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}t.exports=i}})}));
34
+ e.read=function(t,e,n,r,i){var a,o,s=8*i-r-1,l=(1<<s)-1,u=l>>1,c=-7,h=n?i-1:0,d=n?-1:1,p=t[e+h];for(h+=d,a=p&(1<<-c)-1,p>>=-c,c+=s;c>0;a=256*a+t[e+h],h+=d,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=r;c>0;o=256*o+t[e+h],h+=d,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),a-=u}return(p?-1:1)*o*Math.pow(2,a-r)},e.write=function(t,e,n,r,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,h=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:a-1,f=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=c):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))<1&&(o--,l*=2),e+=o+h>=1?d/l:d*Math.pow(2,1-h),e*l>=2&&(o++,l/=2),o+h>=c?(s=0,o=c):o+h>=1?(s=(e*l-1)*Math.pow(2,i),o+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),o=0));i>=8;t[n+p]=255&s,p+=f,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;t[n+p]=255&o,p+=f,o/=256,u-=8);t[n+p-f]|=128*g}},"939c":function(t,e,n){},"942b":function(t,e,n){var r=n("c8d5");function i(t){var e=r(t);return e.setDate(1),e.setHours(0,0,0,0),e}t.exports=i},9530:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=Number(e);return n.setMonth(0),n.setDate(i),n}t.exports=i},"957f":function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=Number(e);return n.setDate(i),n}t.exports=i},"95ea":function(t,e,n){var r=n("c8d5");function i(){var t=Array.prototype.slice.call(arguments),e=t.map((function(t){return r(t)})),n=Math.max.apply(null,e);return new Date(n)}t.exports=i},9706:function(t,e,n){var r=n("c8d5"),i=n("4497"),a=n("d420");function o(t,e){var n=r(t),o=Number(e),s=a(n,i(n)),l=new Date(0);return l.setFullYear(o,0,4),l.setHours(0,0,0,0),n=i(l),n.setDate(n.getDate()+s),n}t.exports=o},9744:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t);return e.setHours(23,59,59,999),e}t.exports=i},"97af":function(t,e,n){var r=n("2fff");function i(t){return r(new Date,t)}t.exports=i},"9aaa":function(t,e,n){var r=n("4399");function i(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}t.exports=i},"9ad8":function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getDay();return 0===n||6===n}t.exports=i},"9bb9":function(t,e,n){var r=n("5a60");function i(t){return r(new Date,t)}t.exports=i},a1a2:function(t,e,n){"use strict";n("34ef")},a431:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=r(e);return n.getTime()>i.getTime()}t.exports=i},a4b7:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=new Date(0);return n.setFullYear(e.getFullYear(),0,1),n.setHours(0,0,0,0),n}t.exports=i},a735:function(t,e){function n(t){return t instanceof Date}t.exports=n},a852:function(t,e,n){var r=n("c8d5");function i(t){return 5===r(t).getDay()}t.exports=i},a935:function(t,e,n){var r=n("c8d5");function i(t){return r(t).getTime()<(new Date).getTime()}t.exports=i},ab58:function(t,e,n){"use strict";n("0918")},abd4:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}t.exports=i},ac06:function(t,e,n){"use strict";n("493c")},acc4:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getFullYear();return n%400===0||n%4===0&&n%100!==0}t.exports=i},ad4d:function(t,e,n){t.exports={xtColorPrimary:"#1890ff",xtColorSuccess:"#37c3a4",xtColorWarning:"#FFB74D",xtColorDanger:"#EA1D34",xtColorInfo:"#999999",xtColorPrimaryLight3:"#5DB1FF",xtColorPrimaryLight5:"#8CC8FF",xtColorPrimaryLight7:"#BADEFF",xtColorPrimaryLight8:"#D1E9FF",xtColorPrimaryLight9:"#E8F4FF",xtColorTextPrimary:"#303133",xtColorTextRegular:"#606266",xtColorTextSecondary:"#909399",xtColorTextPlaceholder:"#C0C4CC",xtColorTextDisabled:"#C0C4CC",xtColorBgPrimary:"#ffffff",xtColorBgSecondary:"#f5f7fa",xtColorBgHover:"#f5f5f5",xtColorBgContainer:"#f0f0f2",xtColorBgOverlay:"#ffffff",xtColorBorder:"#DCDFE6",xtColorBorderLight:"#E4E7ED",xtColorBorderLighter:"#EBEEF5",xtColorBorderExtraLight:"#F2F6FC",xtFontSizeExtraLarge:"20px",xtFontSizeLarge:"18px",xtFontSizeMedium:"16px",xtFontSizeBase:"14px",xtFontSizeSmall:"13px",xtFontSizeExtraSmall:"12px",xtSpacingXs:"4px",xtSpacingSm:"8px",xtSpacingMd:"12px",xtSpacingLg:"16px",xtSpacingXl:"20px",xtBorderRadiusBase:"4px",xtBorderRadiusSmall:"2px",xtBorderRadiusRound:"20px",xtBorderRadiusCircle:"50%",xtShadowSm:"0 2px 4px rgba(0, 0, 0, 0.04)",xtShadowMd:"0 4px 12px rgba(0, 0, 0, 0.08)",xtShadowLg:"0 8px 24px rgba(0, 0, 0, 0.12)",xtTransitionDuration:"0.3s",xtTransitionDurationFast:"0.2s"}},af1b:function(t,e,n){var r=n("ec1f");function i(t,e){var n=Number(e);return r(t,1e3*n)}t.exports=i},b2e9:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=r(e),a=n.getFullYear()-i.getFullYear(),o=n.getMonth()-i.getMonth();return 12*a+o}t.exports=i},b3f5:function(t,e,n){var r=n("c8d5"),i=n("f9ff"),a=n("0d3e"),o=n("df35");function s(t,e){var n=r(t),s=r(e),l=a(n,s),u=Math.abs(i(n,s));n=o(n,l*u);var c=a(n,s)===-l;return l*(u-c)}t.exports=s},b4c7:function(t,e,n){var r=n("c7ce");function i(t){return r(t,{weekStartsOn:1})}t.exports=i},b60f:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getDate();return n}t.exports=i},b78a:function(t,e,n){var r=n("c8d5"),i=n("8946");function a(t,e,n){var a=n&&Number(n.weekStartsOn)||0,o=r(t),s=Number(e),l=o.getDay(),u=s%7,c=(u+7)%7,h=(c<a?7:0)+s-l;return i(o,h)}t.exports=a},b8a7:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(0,0,0,0),e}t.exports=i},b8f9:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=Math.floor(e.getMonth()/3)+1;return n}t.exports=i},badb:function(t,e,n){var r=n("ec1f");function i(t,e){var n=Number(e);return r(t,-n)}t.exports=i},bb7c:function(t,e,n){var r=n("c873"),i=n("c8d5"),a=n("e13a"),o=n("52cf"),s=1440,l=43200,u=525600;function c(t,e,n){var c=n||{},h=r(t,e),d=c.locale,p=o.distanceInWords.localize;d&&d.distanceInWords&&d.distanceInWords.localize&&(p=d.distanceInWords.localize);var f,g,y,v={addSuffix:Boolean(c.addSuffix),comparison:h};h>0?(f=i(t),g=i(e)):(f=i(e),g=i(t));var m,x,b,_,w=Math[c.partialMethod?String(c.partialMethod):"floor"],S=a(g,f),M=g.getTimezoneOffset()-f.getTimezoneOffset(),O=w(S/60)-M;if(y=c.unit?String(c.unit):O<1?"s":O<60?"m":O<s?"h":O<l?"d":O<u?"M":"Y","s"===y)return p("xSeconds",S,v);if("m"===y)return p("xMinutes",O,v);if("h"===y)return m=w(O/60),p("xHours",m,v);if("d"===y)return x=w(O/s),p("xDays",x,v);if("M"===y)return b=w(O/l),p("xMonths",b,v);if("Y"===y)return _=w(O/u),p("xYears",_,v);throw new Error("Unknown unit: "+y)}t.exports=c},bd59:function(t,e,n){"use strict";n("8157")},c2b5:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getDay();return n}t.exports=i},c4c2:function(t,e,n){var r=n("c8d5");function i(t,e,n){var i=r(t),a=r(e),o=void 0!==n?n:1,s=a.getTime();if(i.getTime()>s)throw new Error("The first date cannot be after the second date");var l=[],u=i;u.setHours(0,0,0,0);while(u.getTime()<=s)l.push(r(u)),u.setDate(u.getDate()+o);return l}t.exports=i},c4f9:function(t,e,n){var r=n("0978");function i(t){var e=new Date;return e.setDate(e.getDate()-1),r(t).getTime()===r(e).getTime()}t.exports=i},c589:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getMinutes();return n}t.exports=i},c6ae:function(t,e,n){var r=n("2299");function i(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}t.exports=i},c7ce:function(t,e,n){var r=n("c8d5");function i(t,e){var n=e&&Number(e.weekStartsOn)||0,i=r(t),a=i.getDay(),o=(a<n?7:0)+a-n;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}t.exports=i},c873:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=n.getTime(),a=r(e),o=a.getTime();return i>o?-1:i<o?1:0}t.exports=i},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},c8d5:function(t,e,n){var r=n("5465"),i=n("a735"),a=36e5,o=6e4,s=2,l=/[T ]/,u=/:/,c=/^(\d{2})$/,h=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],d=/^(\d{4})/,p=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],f=/^-(\d{2})$/,g=/^-?(\d{3})$/,y=/^-?(\d{2})-?(\d{2})$/,v=/^-?W(\d{2})$/,m=/^-?W(\d{2})-?(\d{1})$/,x=/^(\d{2}([.,]\d*)?)$/,b=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,_=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,w=/([Z+-].*)$/,S=/^(Z)$/,M=/^([+-])(\d{2})$/,O=/^([+-])(\d{2}):?(\d{2})$/;function I(t,e){if(i(t))return new Date(t.getTime());if("string"!==typeof t)return new Date(t);var n=e||{},a=n.additionalDigits;a=null==a?s:Number(a);var l=T(t),u=C(l.date,a),c=u.year,h=u.restDateString,d=A(h,c);if(d){var p,f=d.getTime(),g=0;if(l.time&&(g=D(l.time)),l.timezone)p=k(l.timezone)*o;else{var y=f+g,v=new Date(y);p=r(v);var m=new Date(y);m.setDate(v.getDate()+1);var x=r(m)-r(v);x>0&&(p+=x)}return new Date(f+g+p)}return new Date(t)}function T(t){var e,n={},r=t.split(l);if(u.test(r[0])?(n.date=null,e=r[0]):(n.date=r[0],e=r[1]),e){var i=w.exec(e);i?(n.time=e.replace(i[1],""),n.timezone=i[1]):n.time=e}return n}function C(t,e){var n,r=h[e],i=p[e];if(n=d.exec(t)||i.exec(t),n){var a=n[1];return{year:parseInt(a,10),restDateString:t.slice(a.length)}}if(n=c.exec(t)||r.exec(t),n){var o=n[1];return{year:100*parseInt(o,10),restDateString:t.slice(o.length)}}return{year:null}}function A(t,e){if(null===e)return null;var n,r,i,a;if(0===t.length)return r=new Date(0),r.setUTCFullYear(e),r;if(n=f.exec(t),n)return r=new Date(0),i=parseInt(n[1],10)-1,r.setUTCFullYear(e,i),r;if(n=g.exec(t),n){r=new Date(0);var o=parseInt(n[1],10);return r.setUTCFullYear(e,0,o),r}if(n=y.exec(t),n){r=new Date(0),i=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return r.setUTCFullYear(e,i,s),r}if(n=v.exec(t),n)return a=parseInt(n[1],10)-1,L(e,a);if(n=m.exec(t),n){a=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return L(e,a,l)}return null}function D(t){var e,n,r;if(e=x.exec(t),e)return n=parseFloat(e[1].replace(",",".")),n%24*a;if(e=b.exec(t),e)return n=parseInt(e[1],10),r=parseFloat(e[2].replace(",",".")),n%24*a+r*o;if(e=_.exec(t),e){n=parseInt(e[1],10),r=parseInt(e[2],10);var i=parseFloat(e[3].replace(",","."));return n%24*a+r*o+1e3*i}return null}function k(t){var e,n;return e=S.exec(t),e?0:(e=M.exec(t),e?(n=60*parseInt(e[2],10),"+"===e[1]?-n:n):(e=O.exec(t),e?(n=60*parseInt(e[2],10)+parseInt(e[3],10),"+"===e[1]?-n:n):0))}function L(t,e,n){e=e||0,n=n||0;var r=new Date(0);r.setUTCFullYear(t,0,4);var i=r.getUTCDay()||7,a=7*e+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}t.exports=I},c980:function(t,e,n){var r=n("c8d5");function i(t){return 3===r(t).getDay()}t.exports=i},cb96:function(t,e,n){var r=n("c8d5");function i(t,e){var n=e&&Number(e.weekStartsOn)||0,i=r(t),a=i.getDay(),o=6+(a<n?-7:0)-(a-n);return i.setHours(0,0,0,0),i.setDate(i.getDate()+o),i}t.exports=i},cc64:function(t,e,n){var r=n("ccce");function i(t){return r(new Date,t)}t.exports=i},ccce:function(t,e,n){var r=n("1baf");function i(t,e){return r(t,e,{weekStartsOn:1})}t.exports=i},ce3d:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getMonth(),i=n-n%3+3;return e.setMonth(i,0),e.setHours(0,0,0,0),e}t.exports=i},cf5f:function(t,e,n){},d2ed:function(t,e,n){var r=n("e785"),i=36e5;function a(t,e){var n=r(t,e)/i;return n>0?Math.floor(n):Math.ceil(n)}t.exports=a},d420:function(t,e,n){var r=n("0978"),i=6e4,a=864e5;function o(t,e){var n=r(t),o=r(e),s=n.getTime()-n.getTimezoneOffset()*i,l=o.getTime()-o.getTimezoneOffset()*i;return Math.round((s-l)/a)}t.exports=o},d473:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=Number(e);return n.setMilliseconds(i),n}t.exports=i},d4ae:function(t,e,n){var r=n("f5dd");function i(t,e){var n=Number(e);return r(t,-n)}t.exports=i},d51b:function(t,e,n){"use strict";var r=function(){function t(t){this.value=t}return t}(),i=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new r(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),a=function(){function t(t){this._list=new i,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(null==i[t]){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return a},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e["a"]=a},d67a:function(t,e,n){},d6f8:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(23,59,59,999),e}t.exports=i},d728:function(t,e,n){"use strict";n("5385")},d975:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getFullYear();return e.setFullYear(n+1,0,0),e.setHours(23,59,59,999),e}t.exports=i},dae0:function(t,e,n){},dddf:function(t,e,n){var r=n("acc4");function i(t){return r(t)?366:365}t.exports=i},de13:function(t,e,n){var r=n("8964"),i=n("b4c7");function a(t){var e=r(t),n=new Date(0);n.setFullYear(e+1,0,4),n.setHours(0,0,0,0);var a=i(n);return a.setDate(a.getDate()-1),a}t.exports=a},df35:function(t,e,n){var r=n("27a1");function i(t,e){var n=Number(e);return r(t,-n)}t.exports=i},e13a:function(t,e,n){var r=n("e785");function i(t,e){var n=r(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}t.exports=i},e1ca:function(t,e,n){var r=n("7a83");function i(t,e){var n=Number(e);return r(t,-n)}t.exports=i},e2ff:function(t,e,n){var r=n("8946");function i(t,e){var n=Number(e);return r(t,-n)}t.exports=i},e3db:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},e51d:function(t,e){function n(){var t=new Date,e=t.getFullYear(),n=t.getMonth(),r=t.getDate(),i=new Date(0);return i.setFullYear(e,n,r-1),i.setHours(23,59,59,999),i}t.exports=n},e620:function(t,e,n){var r=n("c6ae");function i(t){return r(new Date,t)}t.exports=i},e73d:function(t,e,n){var r=n("c8d5"),i=n("81fc");function a(t,e){var n=r(t),a=Number(e),o=i(n)-a;return n.setDate(n.getDate()-7*o),n}t.exports=a},e785:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t),i=r(e);return n.getTime()-i.getTime()}t.exports=i},e830:function(t,e,n){var r=n("90e5");function i(){var t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s=["AM","PM"],l=["am","pm"],u=["a.m.","p.m."],c={MMM:function(e){return t[e.getMonth()]},MMMM:function(t){return e[t.getMonth()]},dd:function(t){return n[t.getDay()]},ddd:function(t){return i[t.getDay()]},dddd:function(t){return o[t.getDay()]},A:function(t){return t.getHours()/12>=1?s[1]:s[0]},a:function(t){return t.getHours()/12>=1?l[1]:l[0]},aa:function(t){return t.getHours()/12>=1?u[1]:u[0]}},h=["M","D","DDD","d","Q","W"];return h.forEach((function(t){c[t+"o"]=function(e,n){return a(n[t](e))}})),{formatters:c,formattingTokensRegExp:r(c)}}function a(t){var e=t%100;if(e>20||e<10)switch(e%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"}t.exports=i},e96b:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t);return e.setSeconds(0,0),e}t.exports=i},eaa5:function(t,e,n){var r=n("c8d5");function i(t,e,n,i){var a=r(t).getTime(),o=r(e).getTime(),s=r(n).getTime(),l=r(i).getTime();if(a>o||s>l)throw new Error("The start of the range cannot be after the end of the range");return a<l&&s<o}t.exports=i},ec1f:function(t,e,n){var r=n("c8d5");function i(t,e){var n=r(t).getTime(),i=Number(e);return new Date(n+i)}t.exports=i},eca2:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t),n=e.getMonth();return e.setFullYear(e.getFullYear(),n+1,0),e.setHours(0,0,0,0),e}t.exports=i},ee91:function(t,e,n){var r=n("3bc7");function i(t,e){var n=r(t,e)/7;return n>0?Math.floor(n):Math.ceil(n)}t.exports=i},f564:function(t,e,n){var r=n("e96b");function i(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}t.exports=i},f56a:function(t,e,n){var r=n("c8d5");function i(t,e,n){var i=r(t).getTime(),a=r(e).getTime(),o=r(n).getTime();if(a>o)throw new Error("The start of the range cannot be after the end of the range");return i>=a&&i<=o}t.exports=i},f5dd:function(t,e,n){var r=n("6665");function i(t,e){var n=Number(e),i=3*n;return r(t,i)}t.exports=i},f66d:function(t,e,n){var r=n("26d5");function i(t){return r(new Date,t)}t.exports=i},f9ff:function(t,e,n){var r=n("8964");function i(t,e){return r(t)-r(e)}t.exports=i},fa76:function(t,e,n){var r=n("c8d5"),i=n("8946"),a=n("84b9");function o(t,e){var n=r(t),o=Number(e),s=a(n),l=o-s;return i(n,l)}t.exports=o},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"ExChart",(function(){return xr})),n.d(e,"createVirtualScrollData",(function(){return ei})),n.d(e,"virtualScrollColumns",(function(){return ni})),n.d(e,"utils",(function(){return ri})),n.d(e,"variables",(function(){return o.a})),n.d(e,"getConfig",(function(){return ii})),n.d(e,"setConfig",(function(){return ai})),n.d(e,"getTheme",(function(){return oi})),n.d(e,"getSize",(function(){return si})),n.d(e,"getPrimaryColor",(function(){return li})),n.d(e,"resetConfig",(function(){return ui})),n.d(e,"onConfigChange",(function(){return ci})),n.d(e,"setTheme",(function(){return hi})),n.d(e,"setSize",(function(){return di})),n.d(e,"setPrimaryColor",(function(){return pi})),"undefined"!==typeof window){var r=window.document.currentScript,i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}n("72fa"),n("d67a");var a=n("ad4d"),o=n.n(a),s={color:["#1890ff","#37c3a4","#29c0ce","#6480D7","#8cce6f","#3a5dca","#ffb74d"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333",fontSize:16},subtextStyle:{color:"#666666",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},xAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"},show:!1}},yAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#DFE9EE"}}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#333333"}},tooltip:{borderWidth:1,backgroundColor:"#ffffff",borderColor:"#dcdfe6",textStyle:{color:"#333333"},trigger:"axis"}},l={color:["#0de7ff","#a782ff","#fcdd60","#0de7ff","#ffc5a1","#6291ae","#13ce66"],backgroundColor:"#000",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#ffffff"},subtextStyle:{color:"#ffffff"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#ffffff"}},radar:{indicator:{color:"#ffffff"}},map:{label:{color:"#ffffff"},itemStyle:{borderColor:"#dcdfe6"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#ffffff"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#666666","#666666"]}},legend:{textStyle:{color:"#ffffff"}},tooltip:{backgroundColor:"#333333",borderWidth:1,borderColor:"#dcdfe6",textStyle:{color:"#fff"}},trigger:"axis"};const u={default:s,white:s,dark:l};let c=null;function h(){if(!c&&"undefined"!==typeof window)try{c=n("313e");for(const t in u)c.registerTheme(t,u[t])}catch(t){console.warn("[ExChart] echarts 加载失败:",t.message)}return c}const d={small:{title:14,subtitle:11,legend:11,axisLabel:10,tooltip:11,label:11},medium:{title:16,subtitle:12,legend:12,axisLabel:12,tooltip:12,label:12},large:{title:18,subtitle:14,legend:14,axisLabel:14,tooltip:14,label:14}};function p(){}function f(t,e){if(null==e)return t;if(Array.isArray(e))return e.slice();if("object"!==typeof e)return e;if(null==t||"object"!==typeof t)return JSON.parse(JSON.stringify(e));const n=Array.isArray(t)?t.slice():Object.assign({},t);return Object.keys(e).forEach(t=>{const r=e[t];null!==r&&void 0!==r?n[t]="object"===typeof r?f(n[t],r):r:e.hasOwnProperty(t)&&(n[t]=r)}),n}p.currentTheme="default",p.currentSize="medium",p.inverse=!1,p.EchartsUtil={backgroundColor:"transparent",tooltip:{trigger:"axis",borderWidth:1},legend:{right:20,top:0,show:!0,textStyle:{fontSize:12}},grid:{top:"25%",left:"40",right:"15",bottom:"40"},xAxis:{type:"category",boundaryGap:!1,axisTick:{show:!0,length:4},axisLabel:{fontSize:12,interval:0,formatter:function(t){return!this.reverse&&this.longLable?t.replace(new RegExp(`(.{${this.longLableSplitNum}})`,"g"),"$1\n"):t}}},yAxis:{type:"value",axisTick:{show:!1},min:null,max:null,axisLabel:{show:!1},splitLine:{lineStyle:{type:"dashed",width:1}}}},p.chartInstanceList=[],p.simpleModeOption={legend:{show:!1},tooltip:{borderWidth:0,extraCssText:"box-shadow: 0 2px 8px rgba(0,0,0,0.12);"},grid:{top:"5%",left:"5%",right:"5%",bottom:"5%",containLabel:!0},xAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},yAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1},axisLabel:{show:!1}},animationDuration:300,animationEasing:"linear"},p.simpleModeByType={bar:{series:{barWidth:"60%",label:{show:!1},markPoint:null,emphasis:{itemStyle:{shadowBlur:6,shadowOffsetX:0,shadowColor:"rgba(0,0,0,0.15)"}}}},line:{series:{symbol:"none",smooth:!0,symbolSize:0,label:{show:!1},areaStyle:null}},pie:{legend:{show:!1},title:{show:!1},series:{radius:["40%","72%"],label:{show:!1},labelLine:{show:!1}}},multi:{legend:{show:!1},grid:{top:"8%",left:"5%",right:"5%",bottom:"5%",containLabel:!0}}},p.applySimpleMode=function(t,e){if(!t||"object"!==typeof t)return t;const n=JSON.parse(JSON.stringify(p.simpleModeOption)),r=p.simpleModeByType[e]||{},i=f(n,r);if(Object.keys(i).forEach(e=>{"series"!==e&&(null==t[e]?t[e]=i[e]:"object"!==typeof t[e]||"object"!==typeof i[e]||Array.isArray(t[e])||(t[e]=f(i[e],t[e])))}),t.series&&Array.isArray(t.series)){const e=i.series||{};t.series=t.series.map(t=>null==t||"object"!==typeof t?t:f(e,t))}return["xAxis","yAxis"].forEach(e=>{if(null!=t[e]&&"object"===typeof t[e]){const n=i[e]||{};Array.isArray(t[e])?t[e]=t[e].map(t=>null==t||"object"!==typeof t?t:f(n,t)):t[e]=f(n,t[e])}}),t},p.mergeOptions=function(t,e){return Object.assign({},t,e)},p.applyFontSize=function(t,e){const n=d[e]||d.medium,r=JSON.parse(JSON.stringify(t));return r.title&&r.title.textStyle&&(r.title.textStyle.fontSize=n.title),r.title&&r.title.subtextStyle&&(r.title.subtextStyle.fontSize=n.subtitle),r.legend&&r.legend.textStyle&&(r.legend.textStyle.fontSize=n.legend),r.tooltip&&r.tooltip.textStyle&&(r.tooltip.textStyle.fontSize=n.tooltip),r.pie&&r.pie.label&&"object"===typeof r.pie.label&&(r.pie.label.fontSize=n.label),r.radar&&r.radar.indicator&&"object"===typeof r.radar.indicator&&r.radar.indicator.textStyle&&(r.radar.indicator.textStyle.fontSize=n.label),r.map&&r.map.label&&"object"===typeof r.map.label&&(r.map.label.fontSize=n.label),r},p.init=function(t,e,n,r){const i=h();if(!i||!t)return null;e=e||"default",r=r||"medium",n=n||{};const a=this.currentTheme||e,o=this.currentSize||r;this.currentTheme=a,this.currentSize=o;let s=u[a];s=this.applyFontSize(s,o);const l=this.mergeOptions(s,n),c=i.init(t,a);return c.setOption(l,!0),this.chartInstanceList.push({dom:t,chart:c,customOption:n,size:o}),this.bindResize(c),c},p.changeSingleTheme=function(t,e,n,r){const i=h();if(!i||!t||!e)return;n=n||{},r=r||"default",this.currentTheme=r,e.dispose();const a=i.init(t,r,n),o=this.chartInstanceList.find((function(e){return e.dom===t}));return o&&(o.chart=a),a},p.changeAllTheme=function(t,e){const n=h();n&&t&&(this.currentTheme=t,e&&(this.currentSize=e),this.chartInstanceList.forEach((function(e){const r=e.dom,i=e.chart,a=e.customOption,o=e.size||p.currentSize;i&&i.dispose();const s=n.init(r,t);let l=u[t];l=p.applyFontSize(l,o);const c=p.mergeOptions(l,a);s.setOption(c,!0),e.chart=s,e.size=o,p.bindResize(s)})))},p.bindResize=function(t){t&&!t.resizeLocked&&(window.addEventListener("resize",(function(){t.resize()})),t._resizeLocked=!0)},p.destroy=function(t){t&&t.dispose(),this.chartInstanceList=this.chartInstanceList.filter((function(e){return e.chart!==t}))},p.destroyAll=function(){this.chartInstanceList.forEach((function(t){t.chart&&t.chart.dispose()})),this.chartInstanceList=[]};var g=p;const y={theme:"white",size:"medium",primaryColor:"#1890ff"};let v={...y};console.log("[XtElementUI] utils initialized with currentConfig:",v);const m=[],x=function(t,e){m.forEach(n=>{n(t,e)})},b=function(){return{...v}},_=function(t){"object"===typeof t&&null!==t?(void 0!==t.theme&&w(t.theme),void 0!==t.size&&S(t.size),void 0!==t.primaryColor&&T(t.primaryColor)):console.warn("[XtElementUI] setConfig 必须传入对象参数")},w=function(t){const e=["white","dark"];if(!e.includes(t))return void console.warn(`[XtElementUI] 无效的主题值: ${t},可选值: ${e.join(", ")}`);v.theme=t;const n=document.documentElement;"dark"===t?n.setAttribute("data-theme","dark"):n.setAttribute("data-theme",t),g.changeAllTheme(v.theme,v.size),console.log("更新图表主题"),x("theme",t)},S=function(t){const e=["small","medium","large"];e.includes(t)?(v.size=t,document.documentElement.setAttribute("data-size",t),g.changeAllTheme(v.theme,v.size),console.log("更新图表字体"),x("size",t)):console.warn(`[XtElementUI] 无效的大小值: ${t},可选值: ${e.join(", ")}`)};function M(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function O(t,e,n){return"#"+[t,e,n].map(t=>{const e=t.toString(16);return 1===e.length?"0"+e:e}).join("")}function I(t,e){const n=M(t);if(!n)return t;const r=Math.round(2.55*e),i=Math.min(255,n.r+r),a=Math.min(255,n.g+r),o=Math.min(255,n.b+r);return O(i,a,o)}const T=function(t){const e=/^#[0-9A-Fa-f]{3}$|^#[0-9A-Fa-f]{6}$|^#[0-9A-Fa-f]{8}$/;if(!e.test(t))return void console.warn(`[XtElementUI] 无效的颜色值: ${t},请使用十六进制颜色格式,如 #1890ff`);let n=t;4===t.length?n="#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]:9===t.length&&(n=t.substring(0,7)),v.primaryColor=n,document.documentElement.style.setProperty("--xt-color-primary",n),document.documentElement.style.setProperty("--xt-color-primary-light-3",I(n,30)),document.documentElement.style.setProperty("--xt-color-primary-light-5",I(n,50)),document.documentElement.style.setProperty("--xt-color-primary-light-7",I(n,70)),document.documentElement.style.setProperty("--xt-color-primary-light-8",I(n,80)),document.documentElement.style.setProperty("--xt-color-primary-light-9",I(n,90)),x("primaryColor",n),console.log("[XtElementUI] 主色调已设置为:",n)},C=function(){return v.theme},A=function(){return v.size},D=function(){return v.primaryColor},k=function(){_(y)},L=function(t){if("function"===typeof t)return m.push(t),function(){const e=m.indexOf(t);e>-1&&m.splice(e,1)};console.warn("[XtElementUI] onConfigChange 必须传入函数")};var P={setTheme:w,setSize:S,setPrimaryColor:T,getConfig:b,setConfig:_,getTheme:C,getSize:A,getPrimaryColor:D,resetConfig:k,onConfigChange:L},j=function(){var t=this,e=t._self._c;return e("button",{staticClass:"xt-button",class:[t.type?"xt-button--"+t.type:"",t.size?"xt-button--"+t.size:"",{"is-plain":t.plain,"is-disabled":t.disabled,"is-round":t.round,"is-circle":t.circle,"is-dashed":t.dashed,"is-text":t.text,"is-link":t.link,"is-loading":t.loading}],attrs:{disabled:t.disabled||t.loading},on:{click:t.handleClick}},[t.loading?e("i",{staticClass:"el-icon-loading"}):t.icon?e("i",{class:t.iconClass}):t._e(),t.$slots.default?e("span",{staticClass:"xt-button__inner"},[t._t("default")],2):t._e()])},R=[],N={name:"XtButton",props:{type:{type:String,default:"",validator:t=>["","primary","success","warning","danger"].includes(t)},size:{type:String,default:"",validator:t=>["","large","medium","small"].includes(t)},plain:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},dashed:{type:Boolean,default:!1},text:{type:Boolean,default:!1},link:{type:Boolean,default:!1},icon:{type:String,default:""},loading:{type:Boolean,default:!1}},computed:{iconClass(){return this.icon?0===this.icon.indexOf("el-icon")?this.icon:"el-icon-"+this.icon:""}},methods:{handleClick(){this.disabled||this.loading||this.$emit("click")}}},E=N;function z(t,e,n,r,i,a,o,s){var l,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}var B=z(E,j,R,!1,null,null,null),V=B.exports;V.install=function(t){t.component(V.name,V)};var F=V,H=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-input",class:[t.size?"xt-input--"+t.size:"",{"is-disabled":t.disabled}]},[e("el-input",{style:t.inputStyle,attrs:{value:t.value,placeholder:t.placeholder,type:t.type,size:t.size,disabled:t.disabled,readonly:t.readonly},on:{input:function(e){return t.$emit("input",e)},change:function(e){return t.$emit("change",e)},focus:function(e){return t.$emit("focus",e)},blur:function(e){return t.$emit("blur",e)}}})],1)},G=[],W={name:"XtInput",props:{value:[String,Number],placeholder:{type:String,default:"请输入内容"},type:{type:String,default:"text"},size:{type:String,default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},color:{type:String,default:""}},computed:{inputStyle(){return this.color?{"--xt-input-focus-color":this.color}:{}}}},Y=W,U=z(Y,H,G,!1,null,null,null),X=U.exports;X.install=function(t){t.component(X.name,X)};var Z=X,q=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-flex-box",class:t.classAttrs,style:t.flexStyle},[t._t("default")],2)},$=[],K={name:"XtFlexBox",props:{type:{type:String,default:"flex"},align:{type:String,default:"center"},content:{type:String,default:"start"},direction:{type:String,default:"row"},wrap:{type:String,default:"unset"},gap:{type:String,default:""}},computed:{classAttrs(){const{type:t,align:e,wrap:n,direction:r,content:i}=this;return[""+t,"align-"+e,"content-"+i,"direction-"+r,"wrap-"+n]},flexStyle(){const t={};return this.gap?t.gap=this.gap:t.gap="var(--xt-flex-box-gap, 8px)",t}}},J=K,Q=z(J,q,$,!1,null,null,null),tt=Q.exports;tt.install=function(t){t.component(tt.name,tt)};var et=tt,nt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-card",class:{"no-padding":t.noPadding}},[t.title?e("div",{staticClass:"card__header"},[t._t("icon",(function(){return[t._v(t._s(t.icon))]})),t._t("title",(function(){return[t._v(t._s(t.title))]}))],2):t._e(),e("div",{staticClass:"card__body"},[t._t("default",(function(){return[e("span",{staticClass:"value"},[t._t("value",(function(){return[t._v(t._s(t.value))]}))],2),e("span",{staticClass:"unit"},[t._v(t._s(t.unit))])]}))],2)])},rt=[],it={name:"XtCard",props:{type:{},title:{},value:{},unit:{},icon:{},iconIn:{default:"right"},noPadding:{type:Boolean,default:!1}}},at=it,ot=z(at,nt,rt,!1,null,null,null),st=ot.exports;st.install=function(t){t.component(st.name,st)};var lt=st,ut=function(){var t=this,e=t._self._c;return e("ex-card",{staticClass:"xt-card-item",class:{["is-"+t.type]:!!t.type},attrs:{bordered:!1}},[e("xt-text",{attrs:{bold:"",size:"medium"}},[t._v(t._s(t.title))]),e("xt-flex-box",[e("div",{staticStyle:{width:"50%","margin-bottom":"5px"}},[e("xt-text",{attrs:{bold:"",size:"large",format:"thousand",type:t.type,decimals:0},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}}),e("div",{staticStyle:{margin:"5px 0"}},[e("xt-text",{attrs:{size:"small"}},[t._v("较昨日")]),e("xt-text",{attrs:{format:"normal",type:t.diff>0?"success":"danger",suffix:t.diff>0?"↑":"↓"},model:{value:t.change,callback:function(e){t.change=e},expression:"change"}})],1)],1),e("div",{staticStyle:{flex:"1",height:"100%"}},[t._t("icon",(function(){return[e("xt-text",{attrs:{size:"extra-large",type:t.type}},[e("i",{staticClass:"el-icon-user"})])]}))],2)])],1)},ct=[],ht={name:"XtCardItem",props:{type:{type:String,default:"primary"},title:{type:String,default:""},diff:{type:Number,default:0},value:{type:Number,default:0},change:{type:Number,default:0}},data(){return{}}},dt=ht,pt=z(dt,ut,ct,!1,null,null,null),ft=pt.exports;ft.install=function(t){t.component(ft.name,ft)};var gt,yt,vt=ft,mt={name:"XtConfigProvider",inheritAttrs:!1,provide(){return{xtConfig:{theme:this.theme,size:this.size,primaryColor:this.primaryColor}}},watch:{theme(t){this.xtConfig={theme:t,size:this.size,primaryColor:this.primaryColor}},size(t){this.xtConfig={theme:t,size:this.size,primaryColor:this.primaryColor}},primaryColor(t){this.xtConfig={theme:t,size:this.size,primaryColor:this.primaryColor}}},render(t){if("template"===this.tag||this.proxyElement){const e=this.$slots.default;return e&&0!==e.length?1===e.length?e[0]:t("div",{class:"xt-config-provider-wrapper",attrs:{"data-theme":this.theme}},e):t("div")}return t(this.tag,{style:this.mergedStyle,class:this.computedClass,attrs:{...this.customAttrs,"data-theme":this.theme}},this.$slots.default)},props:{theme:{type:String,default:"white",validator:t=>["white","dark","auto"].includes(t)},size:{type:String,default:"medium"},primaryColor:{type:String,default:"#1890ff"},vars:{type:Object,default:()=>({})},tag:{type:String,default:"div",validator:t=>["div","span","section","main","template","article","aside"].includes(t)},injectBackground:{type:Boolean,default:!1},injectColor:{type:Boolean,default:!1},proxyElement:{type:[HTMLElement,String,Object],default:null,description:"代理元素,将样式应用到该元素上。支持 HTMLElement、CSS选择器字符串或 ref 对象"},onThemeChange:{type:Function,default:null,description:"主题改变时的钩子函数,接收参数: { theme, size, primaryColor }"},onStyleApplied:{type:Function,default:null,description:"样式应用完成时的钩子函数,接收参数: { element, style, theme }"}},computed:{mergedStyle(){const t={...this.vars};if(this.primaryColor){const e=this.normalizeColor(this.primaryColor);t["--xt-color-primary"]=e,t["--xt-color-primary-light-3"]=this.lightenColor(e,30),t["--xt-color-primary-light-5"]=this.lightenColor(e,50),t["--xt-color-primary-light-7"]=this.lightenColor(e,70),t["--xt-color-primary-light-8"]=this.lightenColor(e,80),t["--xt-color-primary-light-9"]=this.lightenColor(e,90),t["--xt-color-primary-dark-2"]=this.darkenColor(e,20)}const e={small:"14px",medium:"16px",large:"18px"};return e[this.size]&&(t["--xt-font-size-base"]=e[this.size]),"dark"===this.theme?(this.injectBackground&&(t.backgroundColor=t["--xt-color-bg-primary"]||"#141414"),this.injectColor&&(t.color=t["--xt-color-text-primary"]||"#E5EAF3")):(this.injectBackground&&(t.backgroundColor=t["--xt-color-bg-primary"]||"#ffffff"),this.injectColor&&(t.color=t["--xt-color-text-primary"]||"#2c3e50")),t},computedClass(){const t=[];return"template"!==this.tag&&t.push("xt-config-provider"),t},customAttrs(){const t=["theme","size","primaryColor","vars","tag","injectBackground","injectColor","proxyElement"],e={};for(const n in this.$attrs)t.includes(n)||(e[n]=this.$attrs[n]);return e}},mounted(){this.applyProxyElementStyle()},updated(){this.applyProxyElementStyle()},beforeUnmount(){this.clearProxyElementStyle()},methods:{normalizeColor(t){if(!t)return"#1890ff";if(/^#[0-9A-Fa-f]{6}$/.test(t))return t;if(/^#[0-9A-Fa-f]{3}$/.test(t))return"#"+t[1]+t[1]+t[2]+t[2]+t[3]+t[3];if(/^#[0-9A-Fa-f]{8}$/.test(t))return t.substring(0,7);const e=t.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)/i);if(e){const t=parseInt(e[1]),n=parseInt(e[2]),r=parseInt(e[3]);return this.rgbToHex(t,n,r)}return console.warn("[XtConfigProvider] 无法识别的颜色格式:",t),"#1890ff"},hexToRgb(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null},rgbToHex(t,e,n){return"#"+[t,e,n].map(t=>{const e=t.toString(16);return 1===e.length?"0"+e:e}).join("")},lightenColor(t,e){const n=this.hexToRgb(t);if(!n)return t;const r=e/100,i=Math.round(n.r*(1-r)+255*r),a=Math.round(n.g*(1-r)+255*r),o=Math.round(n.b*(1-r)+255*r);return this.rgbToHex(i,a,o)},darkenColor(t,e){const n=this.hexToRgb(t);if(!n)return t;const r=e/100,i=Math.max(0,Math.round(n.r*(1-r))),a=Math.max(0,Math.round(n.g*(1-r))),o=Math.max(0,Math.round(n.b*(1-r)));return this.rgbToHex(i,a,o)},getProxyElement(){const{proxyElement:t}=this;return t?t instanceof HTMLElement?t:"string"===typeof t?document.querySelector(t):t.$el?t.$el:t.value&&t.value instanceof HTMLElement?t.value:(console.warn("[XtConfigProvider] 无法解析 proxyElement:",t),null):null},applyProxyElementStyle(){const t=this.getProxyElement();if(!t)return;const e=this.mergedStyle,n=t.getAttribute("data-theme");for(const r in e)t.style.setProperty(r,e[r]);t.setAttribute("data-theme",this.theme),g.changeAllTheme(this.theme,this.size,this.primaryColor),n!==this.theme&&"function"===typeof this.onThemeChange&&this.onThemeChange({theme:this.theme,size:this.size,primaryColor:this.primaryColor,prevTheme:n}),"function"===typeof this.onStyleApplied&&this.onStyleApplied({element:t,style:e,theme:this.theme,size:this.size,primaryColor:this.primaryColor})},clearProxyElementStyle(){const t=this.getProxyElement();if(!t)return;const e=this.mergedStyle;for(const n in e)t.style.removeProperty(n);t.removeAttribute("data-theme")}}},xt=mt,bt=(n("ab58"),z(xt,gt,yt,!1,null,"a28a77e4",null)),_t=bt.exports;_t.install=function(t){t.component(_t.name,_t)};var wt=_t,St=function(){var t=this,e=t._self._c;return e("span",{staticClass:"xt-text",class:[t.type?"xt-text--"+t.type:"","xt-text--"+t.size,{"xt-text--bold":t.bold},{"xt-text--money":"money"===t.format}],style:t.customStyle},[t._t("prefix",(function(){return[t._v(t._s(t.prefix))]})),t._t("default",(function(){return[void 0!==t.formattedValue?[t._v(t._s(t.formattedValue))]:t._e()]})),t._t("suffix",(function(){return[t._v(t._s(t.suffix))]}))],2)},Mt=[],Ot={name:"XtText",model:{prop:"value",event:"input"},props:{type:{type:String,default:"",validator:t=>["","primary","success","warning","danger"].includes(t)},size:{type:String,default:"base",validator:t=>["extra-large","large","medium","base","small","extra-small"].includes(t)},bold:{type:Boolean,default:!1},letterSpacing:{type:[String,Number],default:""},format:{type:String,default:"normal",validator:t=>["normal","thousand","money"].includes(t)},money:{type:Boolean,default:!1},value:{type:[Number,String],default:""},currency:{type:String,default:"CNY",validator:t=>["CNY","USD","EUR","JPY","GBP","AUD","CAD"].includes(t)},decimals:{type:Number,default:2,validator:t=>t>=0&&t<=10},locale:{type:String,default:"zh-CN"},showSign:{type:Boolean,default:!1},prefix:{type:String,default:""},suffix:{type:String,default:""}},computed:{realFormat(){return this.money?"money":this.format},customStyle(){const t={};return this.letterSpacing&&(t.letterSpacing="number"===typeof this.letterSpacing?this.letterSpacing+"px":this.letterSpacing),t},formattedValue(){const t=this.realFormat,{value:e}=this;if(""===e||void 0===e||null===e)return;const n="string"===typeof e?parseFloat(e):e;if(isNaN(n))return e;try{let e="";const r=this.showSign?"always":"auto";switch(t){case"thousand":e=new Intl.NumberFormat(this.locale,{minimumFractionDigits:this.decimals,maximumFractionDigits:this.decimals,signDisplay:r}).format(n);break;case"money":e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,minimumFractionDigits:this.decimals,maximumFractionDigits:this.decimals,signDisplay:r}).format(n);break;default:return}return e}catch(r){return e}}}},It=Ot,Tt=z(It,St,Mt,!1,null,null,null),Ct=Tt.exports;Ct.install=function(t){t.component(Ct.name,Ct)};var At=Ct,Dt=function(){var t=this,e=t._self._c;return e("span",{staticClass:"xt-time",class:[t.typeColor?"xt-time--"+t.typeColor:"","xt-time--"+t.size,{"xt-time--bold":t.bold}],style:t.customStyle,on:{click:t.handleClick}},[t._t("prefix",(function(){return[t._v(t._s(t.prefix))]})),t._t("default",(function(){return["text"===t.mode?[void 0!==t.displayText?[t._v(t._s(t.displayText))]:t.hideEmpty?t._e():[t._v(t._s(t.emptyText))]]:"now"===t.mode?[t._v(" "+t._s(t.nowText)+" ")]:"countdown"===t.mode?[t.isCountdownFinished?[t._t("finished",(function(){return[t._v(t._s(t.finishedText))]}))]:[t._v(" "+t._s(t.countdownText)+" ")]]:t._e()]})),t._t("suffix",(function(){return[t._v(t._s(t.suffix))]}))],2)},kt=[];const Lt="YYYY-MM-DD HH:mm:ss";function Pt(t){const e=String(t);return e.length<2?"0"+e:e}function jt(t){if(null===t||void 0===t||""===t)return null;if(t instanceof Date)return isNaN(t.getTime())?null:t;if("number"===typeof t){const e=t<1e12?1e3*t:t,n=new Date(e);return isNaN(n.getTime())?null:n}if("string"===typeof t){if(/^\d+$/.test(t)){const e=Number(t),n=e<1e12?1e3*e:e,r=new Date(n);return isNaN(r.getTime())?null:r}const e=t.replace(/-/g,"/"),n=new Date(e);return isNaN(n.getTime())?null:n}return null}function Rt(t,e){if(!t)return"";const n=e||Lt,r={YYYY:t.getFullYear(),MM:Pt(t.getMonth()+1),DD:Pt(t.getDate()),HH:Pt(t.getHours()),mm:Pt(t.getMinutes()),ss:Pt(t.getSeconds()),SSS:String(t.getMilliseconds()).padStart(3,"0")};return n.replace(/YYYY|MM|DD|HH|mm|ss|SSS/g,t=>r[t])}var Nt={name:"XtTime",props:{type:{type:String,default:"now",validator:t=>["now","countdown","text"].includes(t)},size:{type:String,default:"base",validator:t=>["extra-large","large","medium","base","small","extra-small"].includes(t)},typeColor:{type:String,default:"",validator:t=>["","primary","success","warning","danger"].includes(t)},bold:{type:Boolean,default:!1},format:{type:String,default:Lt},prefix:{type:String,default:""},suffix:{type:String,default:""},emptyText:{type:String,default:"-"},hideEmpty:{type:Boolean,default:!1},interval:{type:Number,default:1e3,validator:t=>t>=100},value:{type:[String,Number,Date],default:""},targetTime:{type:[String,Number,Date],default:""},countdownFormat:{type:String,default:"DHMS",validator:t=>["DHMS","HMS","MS","SEC"].includes(t)},finishedText:{type:String,default:"已结束"}},data(){return{tick:0}},computed:{mode(){return this.type},parsedValue(){return jt(this.value)},parsedTarget(){return jt(this.targetTime)},displayText(){if(this.parsedValue)return Rt(this.parsedValue,this.format)},nowText(){this.tick;return Rt(new Date,this.format)},remainingMs(){if("countdown"!==this.mode)return 0;this.tick;if(!this.parsedTarget)return 0;const t=this.parsedTarget.getTime()-Date.now();return t>0?t:0},isCountdownFinished(){return"countdown"===this.mode&&this.parsedTarget&&this.remainingMs<=0},countdownText(){if(!this.parsedTarget)return this.emptyText;const t=Math.floor(this.remainingMs/1e3);if(t<=0)return this.finishedText;switch(this.countdownFormat){case"SEC":return t+"秒";case"MS":{const e=Math.floor(t/60),n=t%60;return`${Pt(e)}分${Pt(n)}秒`}case"HMS":{const e=Math.floor(t/3600),n=Math.floor(t%3600/60),r=t%60;return`${Pt(e)}时${Pt(n)}分${Pt(r)}秒`}case"DHMS":default:{const e=Math.floor(t/86400),n=Math.floor(t%86400/3600),r=Math.floor(t%3600/60),i=t%60;return`${e}天${Pt(n)}时${Pt(r)}分${Pt(i)}秒`}}},customStyle(){return{}}},watch:{type(){this.restartTimer()},interval(){this.restartTimer()}},mounted(){this.restartTimer()},beforeDestroy(){this.clearTimer()},activated(){this.restartTimer()},deactivated(){this.clearTimer()},methods:{restartTimer(){this.clearTimer(),"now"!==this.mode&&"countdown"!==this.mode||(this.tick++,this._timer=setInterval(()=>{this.tick++,"countdown"===this.mode&&this.parsedTarget&&this.remainingMs<=0&&(this.clearTimer(),this.$emit("finish"))},this.interval))},clearTimer(){this._timer&&(clearInterval(this._timer),this._timer=null)},handleClick(t){this.$emit("click",t)}}},Et=Nt,zt=z(Et,Dt,kt,!1,null,null,null),Bt=zt.exports;Bt.install=function(t){t.component(Bt.name,Bt)};var Vt=Bt,Ft=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-step-price",class:{"is-disabled":t.disabled}},[t.title||t.$slots.header?e("div",{staticClass:"xt-step-price__header"},[t.title?e("xt-text",{attrs:{bold:"",size:"medium"}},[t._v(t._s(t.title))]):t._e(),t._t("header"),t.disabled||t.isLimitReached?t._e():e("xt-button",{attrs:{type:"primary",size:"small",icon:"el-icon-plus",plain:""},on:{click:t.onAdd}},[t._v("新增档位")]),t.isLimitReached?e("xt-text",{attrs:{size:"small","type-color":"info"}},[t._v("已达上限("+t._s(t.localItems.length)+"/"+t._s(t.limit)+")")]):t._e()],2):t._e(),e("div",{staticClass:"xt-step-price__list"},t._l(t.localItems,(function(n,r){return e("XtStepPriceItem",{key:r,attrs:{value:n,index:r,"is-first":0===r,"is-last":r===t.localItems.length-1,"items-length":t.localItems.length,removable:0!==r,"min-locked":0!==r,unit:t.unit,precision:t.precision,step:t.step,"left-bracket":t.leftBracket,"right-bracket":t.rightBracket,"field-keys":t.fieldKeys,disabled:t.disabled},on:{input:e=>t.onItemInput(e,r),"max-change":t.onMaxChange,"min-change":t.onMinChange,delete:t.onDelete}})})),1),0===t.localItems.length?e("div",{staticClass:"xt-step-price__empty"},[e("span",[t._v("暂无数据,点击右上角「新增档位」开始配置")])]):t._e(),t.tip||t.$slots.tip?e("div",{staticClass:"xt-step-price__tip"},[t._t("tip",(function(){return[e("xt-text",{attrs:{size:"small","type-color":"warning"}},[t._v(t._s(t.tip))])]}))],2):t._e()])},Ht=[],Gt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-step-price-item"},[e("div",{staticClass:"xt-step-price-item__range"},[e("span",{staticClass:"xt-step-price-item__bracket"},[t._v(t._s(t.finalLeftBracket))]),t.itemsLength>1?e("span",{staticClass:"xt-step-price-item__name"},[t._v("第"+t._s(t.index+1)+"档")]):t._e(),e("span",{staticClass:"xt-step-price-item__bracket"},[t._v(t._s(t.finalRightBracket))]),e("xt-input",{staticClass:"xt-step-price-item__input",attrs:{disabled:t.disabled||t.minLocked,size:"small",placeholder:"下限"},on:{blur:t.onMinBlur},model:{value:t.minInput,callback:function(e){t.minInput=t._n(e)},expression:"minInput"}}),e("span",{staticClass:"xt-step-price-item__comma"},[t._v("-")]),t.isLast?e("span",{staticClass:"xt-step-price-item__infinity"},[t._v("+∞")]):e("xt-input",{staticClass:"xt-step-price-item__input",attrs:{disabled:t.disabled,size:"small",placeholder:"上限"},on:{blur:t.onMaxBlur},model:{value:t.maxInput,callback:function(e){t.maxInput=t._n(e)},expression:"maxInput"}})],1),e("div",{staticClass:"xt-step-price-item__price"},[e("xt-input",{staticClass:"xt-step-price-item__input xt-step-price-item__input--price",attrs:{disabled:t.disabled,size:"small",placeholder:"价格"},on:{blur:t.onPriceBlur},model:{value:t.priceInput,callback:function(e){t.priceInput=t._n(e)},expression:"priceInput"}}),e("span",{staticClass:"xt-step-price-item__unit"},[t._v(t._s(t.unit))])],1),!t.disabled&&t.removable&&t.itemsLength>1?e("xt-button",{staticClass:"xt-step-price-item__delete",attrs:{text:"",icon:"el-icon-delete"},on:{click:t.onDelete}}):t._e()],1)},Wt=[],Yt={name:"XtStepPriceItem",props:{value:{type:Object,required:!0,default:()=>({min:0,max:null,price:0})},index:{type:Number,default:0},isFirst:{type:Boolean,default:!1},isLast:{type:Boolean,default:!1},itemsLength:{type:Number,default:1},removable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},minLocked:{type:Boolean,default:!1},unit:{type:String,default:"元"},precision:{type:Number,default:2},step:{type:Number,default:1},leftBracket:{type:String,default:"["},rightBracket:{type:String,default:null},fieldKeys:{type:Object,default:()=>({min:"min",max:"max",price:"price"})}},computed:{keyMin(){return this.fieldKeys&&this.fieldKeys.min||"min"},keyMax(){return this.fieldKeys&&this.fieldKeys.max||"max"},keyPrice(){return this.fieldKeys&&this.fieldKeys.price||"price"},finalRightBracket(){return null!==this.rightBracket&&void 0!==this.rightBracket&&""!==this.rightBracket?this.rightBracket:this.isLast?"]":")"},finalLeftBracket(){return null===this.leftBracket||void 0===this.leftBracket?"[":this.leftBracket}},data(){const{minVal:t,maxVal:e,priceVal:n}=this.getPriceItem(this.value);return{minInput:t,maxInput:e,priceInput:n}},watch:{value:{deep:!0,immediate:!0,handler(t){const{minVal:e,maxVal:n,priceVal:r}=this.getPriceItem(t);this.minInput=e,this.maxInput=n,this.priceInput=r}},isLast(t){if(t)this.maxInput=null;else{const t=this.safeNumber(this.minInput,0),e=this.value;this.maxInput=this.safeNumber(e&&e[this.keyMax],t+1)}}},methods:{getPriceItem(t){const e=t,n=this.safeNumber(e&&e[this.keyMin],0),r=this.isLast?null:this.safeNumber(e&&e[this.keyMax],n+1),i=this.safeNumber(e&&e[this.keyPrice],0);return{minVal:n,maxVal:r,priceVal:i}},safeNumber(t,e=0){if(null===t||void 0===t||""===t||t===1/0||t===-1/0)return e;const n=Number(t);return isNaN(n)?e:n},emitChange(t){const e={[this.keyMin]:this.minInput,[this.keyMax]:this.isLast?null:this.maxInput,[this.keyPrice]:this.priceInput,...t};this.$emit("input",e),this.$emit("change",e,this.index)},onMinBlur(){const t=this.safeNumber(this.minInput,0);this.minInput=t,this.$emit("min-change",t,this.index),this.emitChange({[this.keyMin]:t})},onMaxBlur(){if(this.isLast)return;const t=this.safeNumber(this.minInput,0);let e=this.safeNumber(this.maxInput,t+1);e<=t&&(e=t+1),this.maxInput=e,this.$emit("max-change",e,this.index),this.emitChange({[this.keyMax]:e})},onPriceBlur(){let t=this.safeNumber(this.priceInput,0);t<0&&(t=0),t=Number(t.toFixed(this.precision)),this.priceInput=t,this.emitChange({[this.keyPrice]:t})},onDelete(){this.$emit("delete",this.index)}}},Ut=Yt,Xt=z(Ut,Gt,Wt,!1,null,null,null),Zt=Xt.exports,qt={name:"XtStepPrice",components:{XtStepPriceItem:Zt},computed:{keyMin(){return this.fieldKeys&&this.fieldKeys.min||"min"},keyMax(){return this.fieldKeys&&this.fieldKeys.max||"max"},keyPrice(){return this.fieldKeys&&this.fieldKeys.price||"price"},isLimitReached(){const t=Number(this.limit);return t>0&&this.localItems.length>=t}},props:{value:{type:Array,default:()=>[]},title:{type:String,default:""},unit:{type:String,default:"元"},precision:{type:Number,default:2},leftBracket:{type:String,default:"["},rightBracket:{type:String,default:null},fieldKeys:{type:Object,default:()=>({min:"min",max:"max",price:"price"})},limit:{type:Number,default:0},step:{type:Number,default:10},disabled:{type:Boolean,default:!1},tip:{type:String,default:"区间左闭右闭 [min, max],最后一级为 [min, +∞),保证连续且不重叠。"},defaultFirst:{type:Boolean,default:!0}},data(){return{localItems:this.normalize(this.value)}},watch:{value:{deep:!0,immediate:!0,handler(t){this.localItems=this.normalize(t)}}},methods:{safeNumber(t,e=0){if(null===t||void 0===t||""===t||t===1/0||t===-1/0)return e;const n=Number(t);return isNaN(n)?e:n},cloneItems(t){return Array.isArray(t)?t.map(t=>({[this.keyMin]:this.safeNumber(t&&t[this.keyMin],0),[this.keyMax]:t&&null==t[this.keyMax]||t&&""===t[this.keyMax]?null:this.safeNumber(t[this.keyMax],null),[this.keyPrice]:this.safeNumber(t&&t[this.keyPrice],0)})):[]},normalize(t){const e=this.cloneItems(t);return 0===e.length&&this.defaultFirst&&e.push({[this.keyMin]:0,[this.keyMax]:null,[this.keyPrice]:0}),this.ensureContinuity(e),e},ensureContinuity(t){if(!Array.isArray(t)||0===t.length)return;t[0][this.keyMin]=0;const e=this.safeNumber(this.step,1);for(let n=0;n<t.length;n++){const r=t[n],i=t[n+1],a=this.safeNumber(r[this.keyMin],0);if(i){let t=this.safeNumber(r[this.keyMax],a+e);t<=a&&(t=a+e),r[this.keyMax]=t,i[this.keyMin]=t}else r[this.keyMax]=null;r[this.keyPrice]=this.safeNumber(r[this.keyPrice],0)}},emit(){this.ensureContinuity(this.localItems);const t=this.cloneItems(this.localItems);this.$emit("input",t),this.$emit("change",t)},onItemInput(t,e){const n=this.localItems[e];n&&t&&void 0!==t[this.keyPrice]&&(n[this.keyPrice]=this.safeNumber(t[this.keyPrice],0))},onMaxChange(t,e){const n=this.localItems[e];if(!n)return;const r=this.safeNumber(t,this.safeNumber(n[this.keyMin],0)+1);n[this.keyMax]=r;const i=this.localItems[e+1];i&&(i[this.keyMin]=r),this.emit()},onMinChange(t,e){const n=this.localItems[e];if(n){if(0===e)n[this.keyMin]=0;else{const r=this.safeNumber(t,this.safeNumber(n[this.keyMin],0));n[this.keyMin]=r;const i=this.localItems[e-1];i&&(i[this.keyMax]=r)}this.emit()}},onAdd(){const t=this.localItems,e=Number(this.limit);if(e>0&&t.length>=e)return;const n=this.safeNumber(this.step,1);if(0===t.length)return t.push({[this.keyMin]:0,[this.keyMax]:null,[this.keyPrice]:10}),void this.emit();const r=t[t.length-1],i=this.safeNumber(r[this.keyMin],0),a=i+n,o=t[t.length-2];let s=10;if(o)s=this.safeNumber(o[this.keyPrice],10);else{const t=this.safeNumber(r[this.keyPrice],0);s=t>0?t:10}const l=[...t.slice(0,-1),{[this.keyMin]:i,[this.keyMax]:a,[this.keyPrice]:s},{[this.keyMin]:a,[this.keyMax]:null,[this.keyPrice]:s}];this.localItems=l,this.emit()},onDelete(t){const e=this.localItems;if(e.length<=1)return;if(0===t)return;const n=e[t],r=e[t-1],i=e[t+1];r&&i?r[this.keyMax]=null==n[this.keyMax]?null:Number(n[this.keyMax]):r&&!i?r[this.keyMax]=null:!r&&i&&(i[this.keyMin]=0),e.splice(t,1),this.emit()}}},$t=qt,Kt=z($t,Ft,Ht,!1,null,null,null),Jt=Kt.exports;Jt.install=function(t){t.component(Jt.name,Jt),t.component(Zt.name,Zt)};var Qt=Jt;Zt.install=function(t){t.component(Zt.name,Zt)};var te=Zt,ee=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-map-wrapper"},[e("div",{ref:"mapContainer",staticClass:"xt-map-container",attrs:{"data-theme":t.mergedTheme}}),t.loading?e("div",{staticClass:"xt-map-loading"},[e("span",[t._v("地图加载中...")])]):t._e(),t.errorMessage?e("div",{staticClass:"xt-map-error"},[e("span",[t._v(t._s(t.errorMessage))])]):t._e(),t._t("overlay")],2)},ne=[];const re=new Map,ie=new Map,ae=(t,e={})=>{if("undefined"===typeof window)return Promise.reject(new Error("[XtMap] 非浏览器环境"));const{charset:n="utf-8",async:r=!0,timeout:i=3e4}=e;if(re.has(t))return re.get(t);if(ie.has(t))return ie.get(t);const a=new Promise((e,a)=>{const o=document.createElement("script");o.type="text/javascript",o.src=t,o.charset=n,o.async=r;let s=null,l=!1;const u=()=>{l=!0,s&&clearTimeout(s),o.onload=null,o.onerror=null};o.onload=()=>{l||(u(),ie.delete(t),re.set(t,Promise.resolve(o)),e(o))},o.onerror=e=>{l||(u(),ie.delete(t),a(new Error("[XtMap] 脚本加载失败: "+t)))},i>0&&(s=setTimeout(()=>{l||(u(),ie.delete(t),a(new Error("[XtMap] 脚本加载超时: "+t)))},i)),document.head.appendChild(o)});return ie.set(t,a),a},oe=()=>{re.clear(),ie.clear()},se=t=>"undefined"!==typeof window&&void 0!==window[t];const le={standard:"standard",satellite:"satellite",hybrid:"hybrid",traffic:"traffic"};class ue{constructor(t,e={}){this.container=t,this.options=e,this.mapInstance=null,this.mapType=e.mapType||"standard",this.theme=e.theme||"light",this.center=e.center||[116.397428,39.90923],this.zoom=e.zoom||11,this.apiKey=e.apiKey||"",this.apiUrl=e.apiUrl||null,this.plugins=e.plugins||[],this.eventHandlers=new Map,this.ready=!1,this._mapTypeMap={...le}}getScriptUrl(){throw new Error("[XtMap] 子类必须实现 getScriptUrl()")}isSdkLoaded(){throw new Error("[XtMap] 子类必须实现 isSdkLoaded()")}beforeLoadScript(){}async createMap(){throw new Error("[XtMap] 子类必须实现 createMap()")}async init(){if(!this.container)throw new Error("[XtMap] 缺少容器元素");if(!this.isSdkLoaded()){this.beforeLoadScript();const t=this.getScriptUrl();if(!t)throw new Error("[XtMap] 缺少 API URL,请配置 apiKey 或 apiUrl");await ae(t),await this._waitForSdkReady()}return await this.createMap(),this.ready=!0,this.mapInstance}async _waitForSdkReady(){return new Promise(t=>{let e=0;const n=100,r=()=>{this.isSdkLoaded()||e>=n?t():(e++,setTimeout(r,100))};r()})}getNativeMapType(t){return this._mapTypeMap[t]||this._mapTypeMap.standard}setMapType(t){this.mapType=t,this.ready&&this.mapInstance&&this._applyMapType(t)}_applyMapType(t){}setTheme(t){this.theme=t,this.ready&&this.mapInstance&&this._applyTheme(t)}_applyTheme(t){}setCenter(t){this.center=t,this.ready&&this.mapInstance&&this._applyCenter(t)}_applyCenter(t){}setZoom(t){this.zoom=t,this.ready&&this.mapInstance&&this._applyZoom(t)}_applyZoom(t){}getCenter(){return this.center}getZoom(){return this.zoom}getNativeMap(){return this.mapInstance}on(t,e){"function"===typeof e&&(this.eventHandlers.set(t,e),this.ready&&this.mapInstance&&this._bindEvent(t,e))}_bindEvent(t,e){}off(t){const e=this.eventHandlers.get(t);e&&this.ready&&this.mapInstance&&this._unbindEvent(t,e),this.eventHandlers.delete(t)}_unbindEvent(t,e){}resize(){this.ready&&this.mapInstance&&this._applyResize()}_applyResize(){}destroy(){if(this.eventHandlers.clear(),this.mapInstance&&"function"===typeof this.mapInstance.destroy)try{this.mapInstance.destroy()}catch(t){}this.mapInstance=null,this.ready=!1}}const ce={standard:"amap",satellite:"satellite",hybrid:"satellite",traffic:"traffic"},he={light:"amap://styles/normal",dark:"amap://styles/dark"};class de extends ue{constructor(t,e={}){super(t,e),this._mapTypeMap={...ce},this._trafficLayer=null,this._satelliteLayer=null,this._roadnetLayer=null,this._currentLayers=[]}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?`https://webapi.amap.com/maps?v=2.0&key=${encodeURIComponent(this.apiKey)}&plugin=AMap.Scale,AMap.ToolBar`:(console.warn("[XtMap] 高德地图需要配置 apiKey"),"")}beforeLoadScript(){const t=this.options.securityJsCode||"undefined"!==typeof window&&window._AMapSecurityConfig&&window._AMapSecurityConfig.securityJsCode||"";t&&"undefined"!==typeof window&&(window._AMapSecurityConfig={securityJsCode:t})}isSdkLoaded(){return se("AMap")&&"function"===typeof window.AMap}async createMap(){const t=window.AMap;if(!t)throw new Error("[XtMap] 高德地图 SDK 未加载");const e={center:this.center,zoom:this.zoom,mapStyle:he[this.theme]||he.light,viewMode:"2D",resizeEnable:!0};this.mapInstance=new t.Map(this.container,e),this._applyMapType(this.mapType),await new Promise(t=>{this.mapInstance.on("complete",()=>t()),setTimeout(t,1500)});for(const[n,r]of this.eventHandlers.entries())this._bindEvent(n,r)}_applyMapType(t){if(!this.mapInstance)return;const e=window.AMap;if(e){this._clearLayers();try{this.mapInstance.setMapStyle(he[this.theme]||he.light),"satellite"===t?(this._satelliteLayer=new e.TileLayer.Satellite,this.mapInstance.add(this._satelliteLayer),this._currentLayers.push(this._satelliteLayer)):"hybrid"===t?(this._satelliteLayer=new e.TileLayer.Satellite,this._roadnetLayer=new e.TileLayer.RoadNet,this.mapInstance.add([this._satelliteLayer,this._roadnetLayer]),this._currentLayers.push(this._satelliteLayer,this._roadnetLayer)):"traffic"===t&&(this._trafficLayer=new e.TileLayer.Traffic({autoRefresh:!0,interval:180}),this.mapInstance.add(this._trafficLayer),this._currentLayers.push(this._trafficLayer))}catch(n){console.warn("[XtMap] 设置地图类型失败:",n)}}}_clearLayers(){if(this.mapInstance){try{this._currentLayers.length>0&&this.mapInstance.remove(this._currentLayers)}catch(t){}this._currentLayers=[],this._trafficLayer=null,this._satelliteLayer=null,this._roadnetLayer=null}}_applyTheme(t){if(this.mapInstance)try{this.mapInstance.setMapStyle(he[t]||he.light),this._applyMapType(this.mapType)}catch(e){console.warn("[XtMap] 设置主题失败:",e)}}_applyCenter(t){if(this.mapInstance)try{this.mapInstance.setCenter(t)}catch(e){}}_applyZoom(t){if(this.mapInstance)try{this.mapInstance.setZoom(t)}catch(e){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const t=this.mapInstance.getCenter();return[t.lng,t.lat]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(t,e){if(this.mapInstance)try{const n={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomchange",mapmove:"mapmove",complete:"complete",resize:"resize"},r=n[t]||t;this.mapInstance.on(r,t=>{const n={originalEvent:t,lnglat:t&&t.lnglat?[t.lnglat.lng,t.lnglat.lat]:null};e(n)})}catch(n){console.warn("[XtMap] 事件绑定失败:",t,n)}}_unbindEvent(t,e){if(this.mapInstance)try{this.mapInstance.off(t,e)}catch(n){}}_applyResize(){if(this.mapInstance&&this.mapInstance.resize)try{this.mapInstance.resize()}catch(t){}}destroy(){this._clearLayers(),super.destroy()}}const pe={standard:"vec",satellite:"img",hybrid:"img",traffic:"vec"},fe={light:"none",dark:"invert(1) hue-rotate(180deg) saturate(1.2) brightness(0.95)"};class ge extends ue{constructor(t,e={}){super(t,e),this._mapTypeMap={...pe},this._layerType=e.tiandituLayerType||"vec",this._currentLayer=null,this._annotationLayer=null}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?"https://api.tianditu.gov.cn/api?v=4.0&tk="+encodeURIComponent(this.apiKey):(console.warn("[XtMap] 天地图需要配置 apiKey (tk)"),"")}isSdkLoaded(){return se("T")&&"object"===typeof window.T&&window.T.Map}async createMap(){const t=window.T;if(!t||!t.Map)throw new Error("[XtMap] 天地图 SDK 未加载");const e={center:new t.LngLat(this.center[0],this.center[1]),zoom:this.zoom};this.mapInstance=new t.Map(this.container,e),this._applyMapType(this.mapType),this._applyTheme(this.theme),await new Promise(t=>{setTimeout(t,500)});for(const[n,r]of this.eventHandlers.entries())this._bindEvent(n,r)}_applyMapType(t){if(!this.mapInstance)return;const e=window.T;if(e)try{this._mapTypeMap[t];"standard"===t?this.mapInstance.setMapType(window.TMAP_NORMAL_MAP||1):"satellite"===t?this.mapInstance.setMapType(window.TMAP_SATELLITE_MAP||2):"hybrid"===t?this.mapInstance.setMapType(window.TMAP_HYBRID_MAP||3):this.mapInstance.setMapType(window.TMAP_NORMAL_MAP||1)}catch(n){console.warn("[XtMap] 天地图切换地图类型失败:",n)}}_applyTheme(t){if(!this.container)return;const e=fe[t]||"none",n=this.container.querySelectorAll("img");n.forEach(t=>{t.style.filter=e,t.style.webkitFilter=e}),this.container.setAttribute("data-map-theme",t),this._setupThemeObserver(t)}_setupThemeObserver(t){if(this._themeObserver&&this._themeObserver.disconnect(),"dark"!==t)return;const e=fe[t];this._themeObserver=new MutationObserver(t=>{t.forEach(t=>{t.addedNodes.forEach(t=>{if(1===t.nodeType)if("IMG"===t.tagName)t.style.filter=e,t.style.webkitFilter=e;else if(t.querySelectorAll){const n=t.querySelectorAll("img");n.forEach(t=>{t.style.filter=e,t.style.webkitFilter=e})}})})});try{this._themeObserver.observe(this.container,{childList:!0,subtree:!0})}catch(n){}}_applyCenter(t){if(this.mapInstance&&window.T)try{this.mapInstance.centerAndZoom(new window.T.LngLat(t[0],t[1]),this.zoom)}catch(e){}}_applyZoom(t){if(this.mapInstance)try{this.mapInstance.setZoom(t)}catch(e){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const t=this.mapInstance.getCenter();if(t&&void 0!==t.getLng)return[t.getLng(),t.getLat()]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(t,e){if(this.mapInstance)try{const n={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomend"},r=n[t]||t;this.mapInstance.addEventListener(r,t=>{const n={originalEvent:t,lnglat:t&&t.lnglat?[t.lnglat.getLng(),t.lnglat.getLat()]:null};e(n)})}catch(n){console.warn("[XtMap] 天地图事件绑定失败:",t,n)}}_unbindEvent(t,e){if(this.mapInstance)try{this.mapInstance.removeEventListener(t,e)}catch(n){}}_applyResize(){if(this.mapInstance&&this.mapInstance.checkResize)try{this.mapInstance.checkResize()}catch(t){}}destroy(){if(this._themeObserver&&(this._themeObserver.disconnect(),this._themeObserver=null),this.mapInstance&&"function"===typeof this.mapInstance.clearOverLays)try{this.mapInstance.clearOverLays()}catch(t){}super.destroy()}}const ye={standard:"BMAP_NORMAL_MAP",satellite:"BMAP_SATELLITE_MAP",hybrid:"BMAP_HYBRID_MAP",traffic:"BMAP_NORMAL_MAP"},ve={light:{style:"normal"},dark:{style:"dark"}};class me extends ue{constructor(t,e={}){super(t,e),this._mapTypeMap={...ye},this._coordType=e.baiduCoordType||"bd09ll",this._trafficLayer=null,this._callbackName=null}getScriptUrl(){return this.apiUrl?this.apiUrl:this.apiKey?`https://api.map.baidu.com/api?v=3.0&ak=${encodeURIComponent(this.apiKey)}&callback=${this._callbackName}`:(console.warn("[XtMap] 百度地图需要配置 apiKey (ak)"),"")}beforeLoadScript(){this._callbackName=`__xt_map_baidu_${Date.now()}_${Math.floor(1e5*Math.random())}`,"undefined"!==typeof window&&(window[this._callbackName]=()=>{})}isSdkLoaded(){return se("BMap")&&"function"===typeof window.BMap}async createMap(){const t=window.BMap;if(!t)throw new Error("[XtMap] 百度地图 SDK 未加载");const e={enableMapClick:!1};this.mapInstance=new t.Map(this.container,e),this.mapInstance.centerAndZoom(new t.Point(this.center[0],this.center[1]),this.zoom),this.mapInstance.enableScrollWheelZoom(!0),this._applyMapType(this.mapType),this._applyTheme(this.theme),await new Promise(t=>setTimeout(t,500));for(const[n,r]of this.eventHandlers.entries())this._bindEvent(n,r)}_applyMapType(t){if(this.mapInstance&&window.BMap)try{if(this._trafficLayer){try{this.mapInstance.removeTileLayer(this._trafficLayer)}catch(e){}this._trafficLayer=null}if("satellite"===t)this.mapInstance.setMapType(window.BMAP_SATELLITE_MAP||1);else if("hybrid"===t)this.mapInstance.setMapType(window.BMAP_HYBRID_MAP||2);else if("traffic"===t){this.mapInstance.setMapType(window.BMAP_NORMAL_MAP||0);try{const t=window.BMap;this._trafficLayer=new t.TrafficLayer,this.mapInstance.addTileLayer(this._trafficLayer)}catch(e){console.warn("[XtMap] 百度地图加载路况图层失败:",e)}}else this.mapInstance.setMapType(window.BMAP_NORMAL_MAP||0)}catch(e){console.warn("[XtMap] 百度地图切换地图类型失败:",e)}}_applyTheme(t){if(this.mapInstance&&window.BMap)try{const e=ve[t]||ve.light;if(this.mapInstance.setMapStyleV2)this.mapInstance.setMapStyleV2({styleId:"dark"===e.style?"midnight":""});else if(this.mapInstance.setMapStyle){const e="dark"===t?this._getDarkStyleJson():null;e&&this.mapInstance.setMapStyle({styleJson:e})}}catch(e){console.warn("[XtMap] 百度地图设置主题失败:",e)}}_getDarkStyleJson(){return[{featureType:"land",elementType:"geometry",stylers:{color:"#1a1a1a"}},{featureType:"water",elementType:"geometry",stylers:{color:"#0a1a2a"}},{featureType:"green",elementType:"geometry",stylers:{color:"#0a2a1a"}},{featureType:"building",elementType:"geometry",stylers:{color:"#2a2a2a"}},{featureType:"highway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"highway",elementType:"geometry.stroke",stylers:{color:"#4a4a4a"}},{featureType:"arterial",elementType:"geometry",stylers:{color:"#333333"}},{featureType:"arterial",elementType:"geometry.stroke",stylers:{color:"#3d3d3d"}},{featureType:"local",elementType:"geometry",stylers:{color:"#2a2a2a"}},{featureType:"railway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"subway",elementType:"geometry",stylers:{color:"#3a3a3a"}},{featureType:"boundary",elementType:"geometry",stylers:{color:"#666666"}},{featureType:"district",elementType:"labels.text.fill",stylers:{color:"#888888"}},{featureType:"poi",elementType:"labels",stylers:{visibility:"off"}}]}_applyCenter(t){if(this.mapInstance&&window.BMap)try{this.mapInstance.centerAndZoom(new window.BMap.Point(t[0],t[1]),this.zoom)}catch(e){}}_applyZoom(t){if(this.mapInstance)try{this.mapInstance.setZoom(t)}catch(e){}}getCenter(){if(this.mapInstance&&this.mapInstance.getCenter){const t=this.mapInstance.getCenter();if(t)return[t.lng,t.lat]}return this.center}getZoom(){return this.mapInstance&&this.mapInstance.getZoom?this.mapInstance.getZoom():this.zoom}_bindEvent(t,e){if(this.mapInstance)try{const n={click:"click",moveend:"moveend",zoomend:"zoomend",zoomchange:"zoomend",mapmove:"movestart"},r=n[t]||t;this.mapInstance.addEventListener(r,t=>{const n={originalEvent:t,lnglat:t&&t.point?[t.point.lng,t.point.lat]:null};e(n)})}catch(n){console.warn("[XtMap] 百度地图事件绑定失败:",t,n)}}_unbindEvent(t,e){if(this.mapInstance)try{this.mapInstance.removeEventListener(t,e)}catch(n){}}_applyResize(){if(this.mapInstance&&this.mapInstance.enableResize)try{"function"===typeof this.mapInstance.checkResize&&this.mapInstance.checkResize()}catch(t){}}destroy(){if(this._callbackName&&"undefined"!==typeof window)try{delete window[this._callbackName]}catch(t){}super.destroy()}}const xe={amap:de,tianditu:ge,baidu:me},be=t=>xe[t]||de;const _e=["amap","tianditu","baidu"],we=["standard","satellite","hybrid","traffic"],Se=["light","dark"],Me={provider:"amap",apiKey:"",apiUrl:null,mapType:"standard",theme:"light",center:[116.397428,39.90923],zoom:11,plugins:[],securityJsCode:null,tiandituLayerType:"vec",baiduCoordType:"bd09ll"};let Oe={...Me};const Ie=[],Te=(t,e)=>{Ie.forEach(n=>{try{n(t,e)}catch(r){console.warn("[XtMap] 配置变更监听异常:",r)}})},Ce=()=>({...Oe}),Ae=t=>{_e.includes(t)?(Oe.provider=t,Te("provider",t)):console.warn(`[XtMap] 无效的地图提供商: ${t},可选: ${_e.join(", ")}`)},De=t=>{Oe.apiKey=t,Te("apiKey",t)},ke=t=>{Oe.apiUrl=t,Te("apiUrl",t)},Le=t=>{we.includes(t)?(Oe.mapType=t,Te("mapType",t)):console.warn(`[XtMap] 无效的地图类型: ${t},可选: ${we.join(", ")}`)},Pe=t=>{Se.includes(t)?(Oe.theme=t,Te("theme",t)):console.warn(`[XtMap] 无效的主题: ${t},可选: ${Se.join(", ")}`)},je=t=>{Array.isArray(t)&&2===t.length?(Oe.center=t,Te("center",t)):console.warn("[XtMap] center 必须是 [lng, lat] 数组")},Re=t=>{const e=Number(t);isNaN(e)?console.warn("[XtMap] zoom 必须是数字"):(Oe.zoom=e,Te("zoom",e))},Ne=t=>{Array.isArray(t)?(Oe.plugins=t,Te("plugins",t)):console.warn("[XtMap] plugins 必须是数组")},Ee=t=>{Oe.securityJsCode=t,"undefined"!==typeof window&&t&&(window._AMapSecurityConfig={securityJsCode:t,...window._AMapSecurityConfig||{}}),Te("securityJsCode",t)},ze=()=>Oe.provider,Be=()=>Oe.apiKey,Ve=()=>Oe.apiUrl,Fe=()=>Oe.mapType,He=()=>Oe.theme,Ge=()=>Oe.center,We=()=>Oe.zoom,Ye=()=>Oe.plugins,Ue=t=>{if("function"===typeof t)return Ie.push(t),()=>{const e=Ie.indexOf(t);e>-1&&Ie.splice(e,1)}};var Xe={name:"XtMap",props:{provider:{type:String,default:"",validator:t=>""===t||_e.includes(t)},apiKey:{type:String,default:""},apiUrl:{type:String,default:""},mapType:{type:String,default:"",validator:t=>""===t||we.includes(t)},theme:{type:String,default:"",validator:t=>""===t||Se.includes(t)},center:{type:Array,default:()=>null},zoom:{type:Number,default:null},plugins:{type:Array,default:()=>[]},width:{type:String,default:"100%"},height:{type:String,default:"400px"},securityJsCode:{type:String,default:""},tiandituLayerType:{type:String,default:"vec"},baiduCoordType:{type:String,default:"bd09ll"}},data(){return{loading:!0,errorMessage:"",adapter:null,_unsubscribeConfig:null}},computed:{mergedProvider(){return this.provider||ze()||"amap"},mergedApiKey(){return this.apiKey||Be()||""},mergedApiUrl(){return this.apiUrl||Ve()||""},mergedMapType(){return this.mapType||Fe()||"standard"},mergedTheme(){return this.theme||He()||"light"},mergedCenter(){return this.center||Ge()||[116.397428,39.90923]},mergedZoom(){return null!==this.zoom?this.zoom:We()},mergedSecurityJsCode(){return this.securityJsCode||Ce().securityJsCode||""},mergedPlugins(){return this.plugins.length>0?this.plugins:Ce().plugins||[]}},watch:{mergedProvider:{handler(){this.$nextTick(()=>this.rebuildMap())}},mergedApiKey:{handler(){this.$nextTick(()=>this.rebuildMap())}},mergedMapType:{handler(t){this.adapter&&this.adapter.setMapType(t)}},mergedTheme:{handler(t){this.adapter&&this.adapter.setTheme(t),this.$refs.mapContainer&&this.$refs.mapContainer.setAttribute("data-theme",t)}},mergedCenter:{handler(t){this.adapter&&this.adapter.setCenter(t)}},mergedZoom:{handler(t){this.adapter&&this.adapter.setZoom(t)}},width:{handler(){this.$nextTick(()=>{this.adapter&&this.adapter.resize()})}},height:{handler(){this.$nextTick(()=>{this.adapter&&this.adapter.resize()})}},securityJsCode:{handler(t){t&&(Ee(t),"amap"===this.mergedProvider&&this.adapter&&this.adapter.ready&&this.$nextTick(()=>this.rebuildMap()))}}},mounted(){this._unsubscribeConfig=Ue((t,e)=>{this.provider||"provider"!==t||this.$nextTick(()=>this.rebuildMap()),this.apiKey||"apiKey"!==t||this.$nextTick(()=>this.rebuildMap()),this.apiUrl||"apiUrl"!==t||this.$nextTick(()=>this.rebuildMap()),!this.theme&&"theme"===t&&this.adapter&&this.adapter.setTheme(e),!this.mapType&&"mapType"===t&&this.adapter&&this.adapter.setMapType(e),!this.center&&"center"===t&&this.adapter&&this.adapter.setCenter(e),null===this.zoom&&"zoom"===t&&this.adapter&&this.adapter.setZoom(e)}),this.securityJsCode&&Ee(this.securityJsCode),this.$nextTick(()=>this.initMap()),this._onWindowResize=()=>{this.adapter&&this.adapter.resize()},"undefined"!==typeof window&&window.addEventListener("resize",this._onWindowResize)},beforeDestroy(){this.destroyMap(),this._unsubscribeConfig&&this._unsubscribeConfig(),this._onWindowResize&&"undefined"!==typeof window&&window.removeEventListener("resize",this._onWindowResize)},methods:{async initMap(){const t=this.$refs.mapContainer;if(!t)return;t.style.width=this.width,t.style.height=this.height,this.securityJsCode&&Ee(this.securityJsCode),this.loading=!0,this.errorMessage="";const e=be(this.mergedProvider);this.adapter=new e(t,{apiKey:this.mergedApiKey,apiUrl:this.mergedApiUrl,mapType:this.mergedMapType,theme:this.mergedTheme,center:this.mergedCenter,zoom:this.mergedZoom,plugins:this.mergedPlugins,securityJsCode:this.mergedSecurityJsCode,tiandituLayerType:this.tiandituLayerType,baiduCoordType:this.baiduCoordType});try{await this.adapter.init(),this.loading=!1,this._bindAdapterEvents(),this.$emit("ready",{provider:this.mergedProvider,map:this.adapter.getNativeMap(),adapter:this.adapter})}catch(n){this.loading=!1,this.errorMessage=n.message||"地图初始化失败",this.$emit("error",n)}},rebuildMap(){this.destroyMap(),"function"===typeof oe&&oe(),this.$nextTick(()=>this.initMap())},destroyMap(){this.adapter&&(this.adapter.destroy(),this.adapter=null)},_bindAdapterEvents(){if(!this.adapter)return;const t=["click","moveend","zoomend","zoomchange","mapmove"];t.forEach(t=>{this.adapter.on(t,e=>{this.$emit(t,e)})})},setCenter(t){this.adapter&&this.adapter.setCenter(t)},setZoom(t){this.adapter&&this.adapter.setZoom(t)},setMapType(t){this.adapter&&this.adapter.setMapType(t)},setTheme(t){this.adapter&&this.adapter.setTheme(t)},getCenter(){return this.adapter?this.adapter.getCenter():this.mergedCenter},getZoom(){return this.adapter?this.adapter.getZoom():this.mergedZoom},getNativeMap(){return this.adapter?this.adapter.getNativeMap():null},resize(){this.adapter&&this.adapter.resize()},on(t,e){this.adapter&&this.adapter.on(t,e)},off(t){this.adapter&&this.adapter.off(t)},rebuild(){this.rebuildMap()}}},Ze=Xe,qe=z(Ze,ee,ne,!1,null,null,null),$e=qe.exports;$e.install=function(t){t.component($e.name,$e)};var Ke=$e,Je=function(){var t=this,e=t._self._c;return e("div",{class:["xt-map-provider",{"xt-map-provider--dark":"dark"===t.mergedTheme}],style:t.wrapperStyle},[t._t("default")],2)},Qe=[],tn={name:"XtMapProvider",props:{provider:{type:String,default:"",validator:t=>""===t||_e.includes(t)},apiKey:{type:String,default:""},apiUrl:{type:String,default:""},mapType:{type:String,default:"",validator:t=>""===t||we.includes(t)},theme:{type:String,default:"",validator:t=>""===t||Se.includes(t)},center:{type:Array,default:()=>null},zoom:{type:Number,default:null},plugins:{type:Array,default:()=>[]},securityJsCode:{type:String,default:""},tag:{type:String,default:"div"}},data(){return{mergedTheme:this.theme||He()||"light"}},computed:{wrapperStyle(){return{}}},watch:{provider:{immediate:!0,handler(t){t&&Ae(t)}},apiKey:{immediate:!0,handler(t){t&&De(t)}},apiUrl:{immediate:!0,handler(t){t&&ke(t)}},mapType:{immediate:!0,handler(t){t&&Le(t)}},theme:{immediate:!0,handler(t){t&&(Pe(t),this.mergedTheme=t)}},center:{immediate:!0,handler(t){t&&je(t)}},zoom:{immediate:!0,handler(t){null!==t&&void 0!==t&&Re(t)}},plugins:{immediate:!0,handler(t){t&&t.length>0&&Ne(t)}},securityJsCode:{immediate:!0,handler(t){t&&Ee(t)}}},provide(){return{xtMapConfig:{getProvider:()=>this.provider||ze(),getApiKey:()=>this.apiKey||Be(),getApiUrl:()=>this.apiUrl||Ve(),getMapType:()=>this.mapType||Fe(),getTheme:()=>this.theme||He(),getCenter:()=>this.center||Ge(),getZoom:()=>null!==this.zoom?this.zoom:We(),getPlugins:()=>this.plugins.length>0?this.plugins:Ye(),getConfig:()=>({provider:this.provider||ze(),apiKey:this.apiKey||Be(),apiUrl:this.apiUrl||Ve(),mapType:this.mapType||Fe(),theme:this.theme||He(),center:this.center||Ge(),zoom:null!==this.zoom?this.zoom:We()})}}},created(){this._unsubscribe=Ue((t,e)=>{"theme"===t&&(this.mergedTheme=this.theme||e)})},beforeDestroy(){this._unsubscribe&&this._unsubscribe()}},en=tn,nn=(n("3cef"),z(en,Je,Qe,!1,null,"16f243b0",null)),rn=nn.exports;rn.install=function(t){t.component(rn.name,rn)};var an=rn,on=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-grid-box",style:t.styleAttrs},[t._t("default")],2)},sn=[],ln={name:"XtGridBox",props:{columns:{type:[String,Array,Number],default:"1fr"},rows:{type:[String,Array],default:"auto"},gap:{type:String,default:""},rowGap:{type:String,default:""},colGap:{type:String,default:""},flow:{type:String,default:"row",validator:t=>["row","column","row dense","column dense"].includes(t)},areas:{type:[String,Array],default:""},align:{type:String,default:"stretch",validator:t=>["start","end","center","stretch","baseline"].includes(t)},justify:{type:String,default:"start",validator:t=>["start","end","center","space-between","space-around","space-evenly","stretch"].includes(t)},responsive:{type:Object,default:()=>({})},autoFlow:{type:String,default:""}},computed:{styleAttrs(){const t={display:"grid"};return"number"===typeof this.columns?t.gridTemplateColumns=`repeat(${this.columns}, 1fr)`:Array.isArray(this.columns)?t.gridTemplateColumns=this.columns.join(" "):t.gridTemplateColumns=this.columns,Array.isArray(this.rows)?t.gridTemplateRows=this.rows.join(" "):t.gridTemplateRows=this.rows,this.gap?t.gap=this.gap:(this.rowGap&&(t.rowGap=this.rowGap),this.colGap&&(t.columnGap=this.colGap)),this.flow&&(t.gridAutoFlow=this.flow),this.areas&&(Array.isArray(this.areas)?t.gridTemplateAreas=this.areas.map(t=>`"${t}"`).join(" "):t.gridTemplateAreas=this.areas),this.align&&(t.placeItems=this.align),this.justify&&(t.placeContent=this.justify),Object.keys(this.responsive).length>0&&this.addResponsiveStyles(t),t}},methods:{addResponsiveStyles(t){const e={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"};Object.entries(this.responsive).forEach(([t,n])=>{if(e[t]){e[t]}})}}},un=ln,cn=z(un,on,sn,!1,null,null,null),hn=cn.exports;hn.install=function(t){t.component(hn.name,hn)};var dn=hn,pn=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-grid-item",style:t.styleAttrs},[t._t("default")],2)},fn=[],gn={name:"XtGridItem",props:{span:{type:Number,default:1,validator:t=>t>0},rowSpan:{type:Number,default:1,validator:t=>t>0},start:{type:Number,default:0,validator:t=>t>=0},rowStart:{type:Number,default:0,validator:t=>t>=0},area:{type:String,default:""},justifySelf:{type:String,default:"auto",validator:t=>["auto","start","end","center","stretch"].includes(t)},alignSelf:{type:String,default:"auto",validator:t=>["auto","start","end","center","stretch","baseline"].includes(t)},customClass:{type:String,default:""}},computed:{styleAttrs(){const t={};return this.span>1&&(t.gridColumnEnd="span "+this.span),this.rowSpan>1&&(t.gridRowEnd="span "+this.rowSpan),this.start>0&&(t.gridColumnStart=this.start),this.rowStart>0&&(t.gridRowStart=this.rowStart),this.area&&(t.gridArea=this.area),this.justifySelf&&"auto"!==this.justifySelf&&(t.justifySelf=this.justifySelf),this.alignSelf&&"auto"!==this.alignSelf&&(t.alignSelf=this.alignSelf),t}}},yn=gn,vn=(n("d728"),z(yn,pn,fn,!1,null,"5318efc6",null)),mn=vn.exports;mn.install=function(t){t.component(mn.name,mn)};var xn=mn,bn=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"inline-block"}},["quarter"==t.dateType?e("FlexBox",{staticClass:"xt-date-picker",class:{focus:t.isfocus},style:t.width?{width:t.width+"px"}:{},attrs:{type:"inline-flex"}},[e("Quarter",{attrs:{format:t.format,placeholder:"开始时间","quarter-type":"quarter-start",clearable:""},model:{value:t.timeStart,callback:function(e){t.timeStart=e},expression:"timeStart"}}),e("span",{staticClass:"separator"},[t._v(t._s(t.separator))]),e("Quarter",{attrs:{format:t.format,placeholder:"结束时间","quarter-type":"quarter-end",clearable:""},model:{value:t.timeEnd,callback:function(e){t.timeEnd=e},expression:"timeEnd"}})],1):e("FlexBox",{staticClass:"xt-date",class:{focus:t.isfocus},style:t.width?{width:t.width+"px"}:{},attrs:{type:"inline-flex"}},[e("el-date-picker",{key:"startSelect",ref:"timeStart",attrs:{size:"small",disabled:t.disabled,"append-to-body":"","picker-options":t.startTimeRange,format:t.format,type:t.dateType,placeholder:"开始时间",clearable:""},on:{blur:function(e){return t.$emit("blur")},focus:function(e){return t.$emit("focus")}},model:{value:t.timeStart,callback:function(e){t.timeStart=e},expression:"timeStart"}}),e("span",{staticClass:"separator"},[t._v(t._s(t.separator))]),e("el-date-picker",{key:"endSelect",ref:"timeEnd",attrs:{size:"small",disabled:t.disabled,"append-to-body":"","picker-options":t.endTimeRange,format:t.format,type:t.dateType,placeholder:"结束时间",clearable:""},on:{blur:function(e){return t.$emit("blur")},focus:function(e){return t.$emit("focus")}},model:{value:t.timeEnd,callback:function(e){t.timeEnd=e},expression:"timeEnd"}})],1)],1)},_n=[],wn=function(){var t=this,e=t._self._c;return e("el-popover",{attrs:{trigger:"click",disabled:t.disabled,transition:"el-zoom-in-top",placement:t.placement,width:t.popoverWidth},on:{hide:t.handleBlur},model:{value:t.popoverVisible,callback:function(e){t.popoverVisible=e},expression:"popoverVisible"}},[e("div",{staticClass:"quarter-wrapper"},[e("BaseFlexBox",{attrs:{content:"between"}},[e("i",{staticClass:"el-icon-d-arrow-left",on:{click:t.prev}}),e("span",[t._v(t._s(t.selectYear))]),e("i",{staticClass:"el-icon-d-arrow-right",on:{click:t.after}})]),e("BaseFlexBox",{staticStyle:{"margin-top":"10px"},attrs:{content:"between"}},t._l(t.quarterList,(function(n){return e("el-button",{key:n.value,attrs:{disabled:t.getDisable(n),type:t.currentyear==t.selectYear&&n.value==t.currentQuarter?"primary":"",size:"mini",round:""},on:{click:function(e){return t.setCurrent(n)}}},[t._v(t._s(n.label))])})),1)],1),e("el-input",{ref:"reference",attrs:{slot:"reference",size:"small",value:t.quarterLabel,readonly:"",title:t.value,placeholder:t.placeholder,"prefix-icon":"el-icon-date",clearable:""},slot:"reference"})],1)},Sn=[],Mn=n("340b"),On=n.n(Mn),In={name:"DateQuarter",components:{BaseFlexBox:tt},model:{props:"value",event:"change"},props:{value:{},quarterType:{type:String,default:"quarter"},placement:{type:String,default:"bottom-start"},format:{type:String,default:"yy-Qq"},popoverWidth:Number,placeholder:{},pickerOptions:{type:Object,default:()=>({disabledDate:()=>!1})},disabled:{}},data(){const t=this.getQuarterDate(this.value),e=t?t.getFullYear():"",n=t?t.getMonth():"",r=t?t.getFullYear():(new Date).getFullYear();return{dateVal:t,currentyear:e,currentQuarter:On.a.getQuarter(t),selectYear:r,currentMonth:n,popoverVisible:!1,quarterList:[{label:"Q1",value:1},{label:"Q2",value:2},{label:"Q3",value:3},{label:"Q4",value:4}]}},computed:{diffQuarter(){return 4*(this.selectYear-this.currentyear)-this.currentQuarter},quarterLabel:{get(){return this.currentyear&&this.currentQuarter?this.getFormatVal():""}}},methods:{getQuarterDate(t){if(!t)return null;if("quarter-start"==this.quarterType)return On.a.startOfQuarter(t);if("quarter-end"==this.quarterType)return On.a.endOfQuarter(t);{const e=On.a.getQuarter(t);return On.a.setQuarter(this.value,e)}},getDisable(t){},handleChangeVal(t){},getFormatVal(){if(!this.format)return`${this.currentyear}-Q${this.currentQuarter}`;const t={y:this.currentyear,q:this.currentQuarter},e=this.format.replace(/(y|q)+/g,(e,n)=>{const r=t[n];return r||""});return e},setCurrent(t){this.dateVal||(this.dateVal=new Date),this.dateVal.setFullYear(this.selectYear),this.dateVal=On.a.setQuarter(this.dateVal,t.value),this.$emit("change",this.dateVal),this.currentQuarter=t.value,this.currentyear=this.selectYear,this.popoverVisible=!1},after(){this.dateVal.setFullYear(this.dateVal.getFullYear()+1),this.selectYear=this.dateVal.getFullYear()},prev(){this.dateVal.setFullYear(this.dateVal.getFullYear()-1),this.selectYear=this.dateVal.getFullYear()},handleBlur(){this.$refs.reference.blur()}}},Tn=In,Cn=z(Tn,wn,Sn,!1,null,null,null),An=Cn.exports;const Dn={datetime:"yyyy-MM-dd HH:mm",month:"yyyy-MM",year:"yyyy",date:"yyyy-MM-dd",quarter:"yyyy-Qq",week:"yyyy-WW"};var kn={name:"ExDatePicker",components:{FlexBox:tt,Quarter:An},model:{prop:"value",event:"change"},props:{value:{},dateType:{type:String,default:"date"},separator:{type:String,default:"至"},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0},placeholder:{},width:{type:Number,default:280}},data(){return{isfocus:!1}},computed:{format(){return Dn[this.dateType]||"yyyy-MM-dd"},timeStart:{get(){return this.value&&this.value[0]},set(t){this.$emit("update:value",[t,this.timeEnd]),this.$emit("change",[t,this.timeEnd])}},timeEnd:{get(){return this.value&&this.value[1]},set(t){this.$emit("update:value",[this.timeStart,t]),this.$emit("change",[this.timeStart,t])}},startTimeRange(){if(!this.timeEnd)return{};const t=this.timeEnd.getTime();return{disabledDate:e=>e.getTime()>t}},endTimeRange(){if(!this.timeStart)return{};const t=this.timeStart.getTime();return{disabledDate:e=>e.getTime()<t}}},methods:{}},Ln=kn,Pn=(n("2cd0"),z(Ln,bn,_n,!1,null,"ff20c256",null)),jn=Pn.exports;jn.install=function(t){t.component(jn.name,jn)};var Rn=jn,Nn=function(){var t=this,e=t._self._c;return e("el-button",t._b({staticClass:"ex-button",class:t.buttonClasses,on:{click:t.handleClick}},"el-button",t.$attrs,!1),[t._t("default")],2)},En=[],zn={name:"ExButton",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:"light",size:"medium",primaryColor:"#1890ff"})}},props:{type:{type:String,default:"default",validator:t=>["default","primary","success","warning","danger"].includes(t)},throttle:{type:Number,default:0},size:{type:String,default:null,validator:t=>!t||["mini","small","medium","large"].includes(t)}},data(){return{lastClickTime:0}},computed:{finalSize(){return this.size||this.xtConfig.size||"medium"},buttonClasses(){return["ex-button-"+this.finalSize,"ex-button-"+this.type]}},methods:{handleClick(){this.throttle>0&&Date.now()-this.lastClickTime<this.throttle||(this.lastClickTime=Date.now(),this.$emit("click"))}}},Bn=zn,Vn=z(Bn,Nn,En,!1,null,null,null),Fn=Vn.exports;Fn.install=function(t){t.component(Fn.name,Fn)};var Hn=Fn,Gn=function(){var t=this,e=t._self._c;return"bar"==t.type?e("ex-bar",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"ex-bar",t.$attrs,!1)):"line"==t.type?e("ex-line",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"ex-line",t.$attrs,!1)):"pie"==t.type?e("ex-pie",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"ex-pie",t.$attrs,!1)):"multi"==t.type?e("ex-multi",t._b({attrs:{theme:t.myTheme,size:t.mySize}},"ex-multi",t.$attrs,!1)):t._e()},Wn=[],Yn=function(){var t=this,e=t._self._c;return e("div",{ref:"barchart",staticClass:"bar-box"})},Un=[],Xn={name:"XtBar",props:{chartData:{type:Array,default:()=>[{value:65,label:"吴十"},{value:70,label:"唐九"},{value:73,label:"钱一"},{value:78,label:"孙二"},{value:88,label:"刘八"},{value:93,label:"王七"},{value:99,label:"赵六"},{value:103,label:"宋五"},{value:113,label:"李四"},{value:125,label:"张三"}]},theme:{},size:{type:String,default:"medium"},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},markPoint:{type:Boolean,default:!1},unit:{type:String,default:""},showZoom:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},longLable:{type:Boolean,default:!1},longLableSplitNum:{type:Number,default:1},longLablePx:{type:Number,default:150},splitNumber:{type:Number,default:5},simpleMode:{type:Boolean,default:!1}},data(){return{myChart:null,name:"数量"}},watch:{chartData:{deep:!0,handler(t,e){const n=this;n.initChart()}},unit:{deep:!0,handler(t,e){const n=this;n.initChart()}},theme(t){this.initChart()}},mounted(){this.initChart()},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n={type:"category",inverse:this.reverse,axisLabel:{interval:0,formatter:function(e){return!t.reverse&&t.longLable?e.replace(new RegExp(`(.{${t.longLableSplitNum}})`,"g"),"$1\n"):e}},data:t.chartData.map(t=>t[e.label])},r={type:"value",splitLine:{lineStyle:{type:"dashed"}},name:t.energyType,axisTick:{inside:!0},min:0,splitNumber:t.splitNumber,max:function(e){return Math.ceil(e.max/t.splitNumber)*t.splitNumber},scale:!0,axisLabel:{margin:2,formatter:function(t,e){return t>=1e4&&t<1e7?t=t/1e4+"万":t>=1e7&&(t=t/1e7+"千万"),t}}},i={legend:{right:20,top:0,textStyle:{fontSize:12}},tooltip:{borderWidth:1,trigger:"item"},grid:{top:"10",left:40+(this.reverse&&this.longLable?t.longLablePx:0),right:"10",bottom:(t.showZoom?50:20)+(!t.reverse&&t.longLable?t.longLablePx:0),containLabel:!0},xAxis:this.reverse?r:n,yAxis:this.reverse?n:r,series:{name:t.unit,type:"bar",markPoint:{data:[{type:"min",name:"Min"},{type:"max",name:"Max"}]},avoidLabelOverlap:!0,data:t.chartData.map((t,n)=>{const r=t[e.label],i=t[e.value];return{value:i,name:r,tooltip:{borderWidth:1}}})},dataZoom:t.showZoom?[{height:20,bottom:0}]:[]};this.markPoint||this.$delete(i.series[0],"markPoint"),this.simpleMode&&g.applySimpleMode(i,"bar"),this.myChart=g.init(t.$refs.barchart,this.theme,i,this.size)}}},Zn=Xn,qn=(n("a1a2"),z(Zn,Yn,Un,!1,null,"06ad80ef",null)),$n=qn.exports,Kn=function(){var t=this,e=t._self._c;return e("div",{ref:"linechart",staticClass:"line-box"})},Jn=[],Qn={name:"XtLine",props:{theme:{},size:{type:String,default:"medium"},chartData:{type:Array,default:()=>[{value:53,label:"张三"},{value:10,label:"李四"},{value:60,label:"宋五"}]},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},isArea:{type:Boolean,default:!1},unit:{type:String,default:""},intervalvalue:{type:Number,default:0},simpleMode:{type:Boolean,default:!1}},data(){return{myChart:null}},watch:{chartData:{deep:!0,handler(t,e){const n=this;n.initChart()}},unit:{deep:!0,handler(t,e){const n=this;n.initChart()}},theme(t){this.initChart()}},mounted(){this.initChart()},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n={animationDuration:500,grid:{top:"18%",left:"30",right:"30",bottom:"20"},xAxis:[{type:"category",splitLine:{show:!0,lineStyle:{type:"dashed"}},axisLabel:{interval:this.intervalvalue},boundaryGap:!1,data:t.chartData.map(t=>t[e.label])}],yAxis:{type:"value",axisLine:{show:!1,lineStyle:{}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}},name:t.unit,scale:!0,axisLabel:{margin:2,formatter:function(t,e){return t>=1e4&&t<1e7?t=Math.floor(t/1e4)+"万":t>=1e7&&(t=Math.floor(t/1e7)+"千万"),t}}},series:[{type:"line",symbol:"circle",areaStyle:t.isArea?{}:null,smooth:!0,avoidLabelOverlap:!0,data:t.chartData.map((t,n)=>t[e.value])}]};this.simpleMode&&g.applySimpleMode(n,"line"),this.myChart=g.init(t.$refs.linechart,this.theme,n,this.size)}}},tr=Qn,er=(n("24e9"),z(tr,Kn,Jn,!1,null,"358cb278",null)),nr=er.exports,rr=function(){var t=this,e=t._self._c;return e("div",{ref:"piechart",staticClass:"pie-box"})},ir=[],ar={name:"XtPie",props:{theme:{},size:{type:String,default:"medium"},chartData:{type:Array,default:()=>[{value:53,label:"张三"},{value:10,label:"李四"},{value:60,label:"宋五"}]},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},colors:{type:Array,default:()=>[]},unit:{type:String,default:""},showLegend:{type:Boolean,default:!0},simpleMode:{type:Boolean,default:!1},highlightKey:String,roseType:{type:String,default:""},showLabel:{type:Boolean,default:!0},totalLabel:{type:String,default:"总数"}},data(){return{myChart:null}},computed:{totalNum(){const t=Object.assign({label:"label",value:"value",data:"data"},this.fieldKeys||{});return this.chartData.map(e=>parseFloat(e[t.value])).reduce((t,e)=>t+e,0)}},watch:{chartData:{deep:!0,handler(t,e){const n=this;n.initChart()}},theme(t){this.initChart()}},mounted(){this.$nextTick(()=>{this.initChart()})},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n={title:{text:`${t.totalLabel}:${t.totalNum}`,textStyle:{},top:"middle",left:"center"},tooltip:{trigger:"item"},legend:this.showLegend?{top:"top",right:"20",type:"scroll"}:null,grid:{left:30,right:0,top:20,bottom:0,containLabel:!0},series:[{name:t.unit,type:"pie",center:["50%","50%"],roseType:this.roseType,radius:["50%","65%"],minAngle:5,avoidLabelOverlap:!0,data:t.chartData.map((t,n)=>{const r=t[e.label],i=t[e.value];return{value:i,name:r,labelLine:{show:this.showLabel},emphasis:{labelLine:{show:this.showLabel}},label:{show:this.showLabel},tooltip:{formatter:"{b}:{c} ({d}%)",position:"inside",borderWidth:1}}})}]};this.simpleMode&&g.applySimpleMode(n,"pie"),this.myChart=g.init(t.$refs.piechart,this.theme,n,this.size)}}},or=ar,sr=(n("2be4"),z(or,rr,ir,!1,null,"ee1d466e",null)),lr=sr.exports,ur=function(){var t=this,e=t._self._c;return e("div",{ref:"multilinechart",staticClass:"multiline-box"})},cr=[],hr={name:"XtMulti",props:{theme:{},size:{type:String,default:"medium"},fieldKeys:{type:Object,default:()=>({label:"label",value:"value",data:"data"})},simpleMode:{type:Boolean,default:!1},highlightKey:String,config:{type:Object,default(){return{interval:0,rotate:0,gridbottom:40,isShowthreshold:!1}}},chartData:{type:Array,default:()=>[{label:"入户数",unit:"户",data:[{label:"01月",value:980},{label:"02月",value:806},{label:"03月",value:930},{label:"04月",value:804},{label:"05月",value:750},{label:"06月",value:660},{label:"07月",value:780},{label:"08月",value:630},{label:"09月",value:806},{label:"10月",value:950},{label:"11月",value:810},{label:"12月",value:703}]},{label:"隐患数",unit:"个",data:[{label:"01月",value:200},{label:"02月",value:120},{label:"03月",value:110},{label:"04月",value:109},{label:"05月",value:108},{label:"06月",value:150},{label:"07月",value:126},{label:"08月",value:130},{label:"09月",value:108},{label:"10月",value:109},{label:"11月",value:140},{label:"12月",value:106}]},{label:"整改数",unit:"个",data:[{label:"01月",value:25},{label:"02月",value:19},{label:"03月",value:34},{label:"04月",value:12},{label:"05月",value:16},{label:"06月",value:20},{label:"07月",value:19},{label:"08月",value:18},{label:"09月",value:14},{label:"10月",value:12},{label:"11月",value:11},{label:"12月",value:16}]}]},colors:{type:Array,default:()=>[]}},data(){return{myChart:null}},watch:{chartData:{deep:!0,handler(t,e){const n=this;this.myChart&&this.myChart.dispose(),this.myChart=null,n.initChart()}},theme(t){this.myChart&&this.myChart.dispose(),this.myChart=null,this.initChart()}},mounted(){this.initChart()},methods:{initChart(){const t=this,e=Object.assign({label:"label",value:"value",data:"data"},t.fieldKeys||{}),n=[];(t.chartData||[]).forEach(t=>{const e=t.unit||"";-1===n.indexOf(e)&&n.push(e)});const r=(t,e)=>{const n={type:"value",name:t,axisLine:{show:!1,lineStyle:{}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}},axisLabel:{formatter:function(t,e){return t>=1e4&&t<1e7?t=Math.floor(t/1e4)+"万":t>=1e7&&(t=Math.floor(t/1e7)+"千万"),t}}};return e>0&&(n.position="right",n.splitLine={show:!1}),n},i=n.length?n.map((t,e)=>r(t,e)):[r("",0)],a={};n.forEach((t,e)=>{a[t]=e});const o=t.chartData&&t.chartData.length&&t.chartData[0][e.data]||[],s={legend:{right:20,top:0,show:!0,data:t.chartData.map(t=>t[e.label]),textStyle:{}},tooltip:{borderWidth:1,trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"25%",left:"40",right:"15",bottom:null==this.config.gridbottom?20:this.config.gridbottom},xAxis:{type:"category",axisLabel:{rotate:this.config.rotate},data:o.map(t=>t[e.label])},yAxis:i,dataZoom:[{type:"inside",xAxisIndex:[0],start:1,end:100}],series:this.getSeriesData(a,e)};this.simpleMode&&g.applySimpleMode(s,"multi"),this.myChart=g.init(t.$refs.multilinechart,this.theme,s,this.size)},getSeriesData(t,e){const n=this,r=[];return n.chartData.forEach((n,i)=>{const a=n[e.data]||[],o={animation:!0,name:n[e.label],type:n.type||"bar",avoidLabelOverlap:!0,data:a.map(t=>t[e.value]),yAxisIndex:null!=t[n.unit||""]?t[n.unit||""]:0};r.push(o)}),r}}},dr=hr,pr=(n("bd59"),z(dr,ur,cr,!1,null,"6d9e7e44",null)),fr=pr.exports,gr={name:"ExChart",components:{ExBar:$n,ExLine:nr,ExPie:lr,ExMulti:fr},props:{theme:{type:String,default:""},size:{type:String,default:"medium",validator:t=>["small","medium","large"].includes(t)},type:{type:String,required:!0,default:"bar"}},data(){return{myTheme:this.theme,mySize:this.size,observer:null}},mounted(){this.detectParentTheme(),this.observeThemeChange()},beforeUnmount(){this.observer&&this.observer.disconnect()},watch:{theme(t){this.myTheme=t},size(t){this.mySize=t}},methods:{detectParentTheme(){if(this.theme)return void(this.myTheme=this.theme);let t=this.$el?this.$el.parentElement:null;while(t){const e=t.getAttribute("data-theme");if(e)return void(this.myTheme="dark"===e?"dark":"default");t=t.parentElement}const e=document.body.getAttribute("data-theme"),n=document.documentElement.getAttribute("data-theme");this.myTheme="dark"===e||"dark"===n?"dark":"default"},observeThemeChange(){if(!this.$el)return;this.observer=new MutationObserver(t=>{t.forEach(t=>{if("attributes"===t.type&&"data-theme"===t.attributeName){const e=t.target.getAttribute("data-theme");"dark"===e?this.myTheme="dark":"light"===e&&(this.myTheme="default")}})});let t=this.$el.parentElement;while(t)this.observer.observe(t,{attributes:!0,attributeFilter:["data-theme"]}),t=t.parentElement;this.observer.observe(document.body,{attributes:!0,attributeFilter:["data-theme"]}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}}},yr=gr,vr=z(yr,Gn,Wn,!1,null,null,null),mr=vr.exports;mr.install=function(t){t.component(mr.name,mr)};var xr=mr,br=function(){var t=this,e=t._self._c;return e("el-card",t._b({staticClass:"ex-card",class:t.cardClasses,scopedSlots:t._u([t.$slots.header||t.title?{key:"header",fn:function(){return[t._t("header",(function(){return[t._v(t._s(t.title))]}))]},proxy:!0}:null],null,!0)},"el-card",t.$attrs,!1),[t._t("default")],2)},_r=[],wr={name:"ExCard",inheritAttrs:!1,inject:{xtConfig:{default:()=>({theme:"light",size:"medium",primaryColor:"#1890ff"})}},props:{title:{type:String,default:""},shadow:{type:String,default:"always",validator:t=>["always","hover","never"].includes(t)},bordered:{type:Boolean,default:!0},bodyClass:{type:String,default:""},size:{type:String,default:null,validator:t=>!t||["small","medium","large"].includes(t)}},computed:{finalSize(){return this.size||this.xtConfig.size||"medium"},cardClasses(){return["ex-card-"+this.shadow,"ex-card-"+this.finalSize,{"ex-card-no-border":!this.bordered,[this.bodyClass]:this.bodyClass}]}}},Sr=wr,Mr=z(Sr,br,_r,!1,null,null,null),Or=Mr.exports;Or.install=function(t){t.component(Or.name,Or)};var Ir=Or,Tr=function(){var t=this,e=t._self._c;t._self._setupProxy;return e(t.tag,t._g({tag:"component",class:t.iconClasses,style:t.iconStyle,on:{click:t.handleClick}},t.$listeners),[t.isSvgSprite?e("svg",{style:t.svgStyle,attrs:{"aria-hidden":"true"}},[e("use",{attrs:{href:t.svgHref}})]):t.hasDefaultSlot?t._t("default"):t._e()],2)},Cr=[];const Ar={},Dr={name:"ExIcon",inheritAttrs:!1,props:{name:{type:String,default:""},size:{type:[String,Number],default:""},color:{type:String,default:""},spin:{type:Boolean,default:!1}},computed:{hasDefaultSlot(){return!!this.$slots.default},iconName(){return(this.name||"").trim()},isElIcon(){return/^el-icon-/.test(this.iconName)},isSvgInline(){return this.iconName.indexOf("<svg")>-1},isSvgSprite(){return/^(#|svg:)/.test(this.iconName)},isCustomFont(){return!!this.iconName&&(!this.isElIcon&&!this.isSvgInline&&!this.isSvgSprite)},svgHref(){if(!this.isSvgSprite)return"";const t=this.iconName.replace(/^svg:/,"").replace(/^#/,"");return"#"+t},needsExIconPrefix(){if(!this.isCustomFont)return!1;for(const t of Object.keys(Ar))if(0===this.iconName.indexOf(t))return!1;return!0},tag(){return this.isSvgInline?"span":"i"},iconClasses(){const t=[];return this.isElIcon?t.push(this.iconName):this.isSvgSprite?t.push("ex-icon-svg"):this.isCustomFont?(this.needsExIconPrefix&&t.push("ex-icon"),t.push(this.iconName)):this.isSvgInline&&t.push("ex-icon-inline-svg"),this.spin&&t.push("ex-icon-spin"),t},iconStyle(){const t={};if(this.size){const e="number"===typeof this.size?this.size+"px":this.size;t.fontSize=e,t.width=e,t.height=e}return this.color&&(t.color=this.color),this.isSvgInline&&(t.display="inline-block",t.verticalAlign="middle"),t},svgStyle(){return{width:"1em",height:"1em",verticalAlign:"-0.15em",fill:"currentColor",overflow:"hidden"}}},mounted(){this.isSvgInline&&this.$el&&(this.$el.innerHTML=this.iconName)},beforeUpdate(){this.isSvgInline&&this.$el&&(this.$el.innerHTML=this.iconName)},methods:{handleClick(t){this.$emit("click",t)}},registerPrefix:function(t){t&&"string"===typeof t&&(Ar[t]=!0)}};var kr=Dr,Lr=kr,Pr=(n("0d47"),z(Lr,Tr,Cr,!1,null,"01397354",null)),jr=Pr.exports;jr.install=function(t){t.component(jr.name,jr)};var Rr,Nr,Er=jr,zr=function(){var t=this,e=t._self._c;return e("div",{staticClass:"ex-table-wrapper"},[t.title||t.$slots.toolbar?e("div",{staticClass:"ex-table-header"},[t.title?e("span",{staticClass:"ex-table-title"},[t._v(t._s(t.title))]):t._e(),e("div",{staticClass:"ex-table-toolbar"},[t._t("toolbar")],2)]):t._e(),e("div",{staticClass:"ex-table-body"},[e("VirtualElTable",t._g(t._b({ref:"table",staticClass:"ex-table",attrs:{data:t.processedTableData,height:t.computedHeight,"max-height":t.computedMaxHeight,"virtual-scroll":t.virtualScroll,"row-height":t.rowInitHeight,"buffer-size":t.bufferSize,"span-method":t.groupColumns.length?t.handleSpanMethod:void 0,"row-class-name":t.getRowClassName},on:{"selection-change":t.handleSelectionChange,"sort-change":t.handleSortChange}},"VirtualElTable",t.$attrs,!1),t.$listeners),[t.selection?e("el-table-column",{attrs:{type:"selection",width:"55",fixed:t.selectionFixed}}):t._e(),t.showIndex?e("el-table-column",{attrs:{type:"index",width:"60",label:"#",fixed:t.indexFixed,index:t.indexMethod}}):t._e(),t._l(t.flattenedColumns,(function(n){return[n.children&&n.children.length?e("el-table-column",t._b({key:n._key},"el-table-column",t.getColumnProps(n),!1),[t._l(n.children,(function(n){return[e("el-table-column",t._b({key:n._key,scopedSlots:t._u([n.render?{key:"default",fn:function(e){return[t._v(t._s(n.render(e)))]}}:n.formatter?{key:"default",fn:function(t){return[e("ExTableCell",{attrs:{row:t.row,index:t.$index,formatter:n.formatter,column:n}})]}}:n.slot?{key:"default",fn:function(e){return[t._t(n.slot,null,{row:e.row,index:e.$index,column:n})]}}:null],null,!0)},"el-table-column",t.getColumnProps(n),!1))]}))],2):e("el-table-column",t._b({key:n._key,scopedSlots:t._u([n.render?{key:"default",fn:function(e){return[t._v(t._s(n.render(e)))]}}:n.formatter?{key:"default",fn:function(t){return[e("ExTableCell",{attrs:{row:t.row,index:t.$index,formatter:n.formatter,column:n}})]}}:n.slot?{key:"default",fn:function(e){return[t._t(n.slot,null,{row:e.row,index:e.$index,column:n})]}}:null],null,!0)},"el-table-column",t.getColumnProps(n),!1))]}))],2)],1),t.showPagination?e("div",{staticClass:"ex-table-footer"},[e("el-pagination",{attrs:{"current-page":t.pagination.ppageNum,"page-size":t.pagination.pageSize,total:t.total,"page-sizes":t.pagination.pageSizes||[10,20,50,100],layout:"total, sizes, prev, pager, next, jumper"},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()])},Br=[],Vr={name:"ExTableCell",functional:!0,props:{row:Object,index:Number,formatter:Function,column:{type:Object,default:null}},render:(t,e)=>{const n={row:e.props.row,index:e.props.index};e.props.column&&(n.column=e.props.column);const r=t=>null!==t&&void 0!==t&&"object"===typeof t&&t.hasOwnProperty("componentOptions"),i=e.props.formatter(t,n);return null===i||void 0===i||""===i?t("span",""):r(i)?i:t("span",String(i))}},Fr=Vr,Hr=z(Fr,Rr,Nr,!1,null,null,null),Gr=Hr.exports,Wr=function(){var t=this,e=t._self._c;return e("el-table",t._g(t._b({ref:"innerTable",attrs:{data:t.renderList}},"el-table",t.$attrs,!1),t.$listeners),[t._t("default")],2)},Yr=[],Ur={name:"VirtualElTable",inheritAttrs:!1,props:{virtualScroll:{type:Boolean,default:!1},rowHeight:{type:Number,default:48},bufferSize:{type:Number,default:5}},data(){return{scrollWrap:null,phantomDom:null,scrollTop:0,startIndex:0,endIndex:20,rafId:null,unwatchPhantom:null,layoutTimer:null,retryTimers:[]}},computed:{originData(){return this.$attrs.data||[]},renderList(){if(!this.virtualScroll)return this.originData;const t=Math.max(0,this.startIndex-this.bufferSize),e=Math.min(this.originData.length,this.endIndex+this.bufferSize);return this.originData.slice(t,e)},totalListHeight(){return this.originData.length*this.rowHeight},contentOffsetY(){return Math.max(0,this.startIndex-this.bufferSize)*this.rowHeight}},watch:{renderList(){this.scheduleLayout()},originData:{handler(t){this.virtualScroll&&t&&t.length&&this.$nextTick(()=>{this.calcVisibleRange()})}}},mounted(){this.$nextTick(()=>{this.initVirtualScroll()})},beforeDestroy(){this.unbindScrollEvent(),this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.unwatchPhantom&&(this.unwatchPhantom(),this.unwatchPhantom=null),this.layoutTimer&&(clearTimeout(this.layoutTimer),this.layoutTimer=null),this.retryTimers.forEach(t=>clearTimeout(t)),this.retryTimers=[]},methods:{initVirtualScroll(){if(!this.virtualScroll)return;if(this.scrollWrap=this.$refs.innerTable.$el.querySelector(".el-table__body-wrapper"),!this.scrollWrap)return console.warn("[VirtualElTable] 无法找到滚动容器,虚拟滚动功能已禁用"),void(this.virtualScroll=!1);this.scrollWrap.style.overflowY="auto",this.scrollWrap.style.overflowX="auto",this.wrapTableBody(),this.scrollWrap.addEventListener("scroll",this.onScroll,{passive:!0}),this.calcVisibleRange();const t=[100,300,600,1e3];t.forEach(t=>{const e=setTimeout(()=>{this.calcVisibleRange()},t);this.retryTimers.push(e)})},wrapTableBody(){const t=this.scrollWrap.querySelector(".el-table__body");if(!t||t.querySelector(".vs-phantom"))return;const e=document.createElement("div");e.className="vs-phantom",e.style.position="relative",e.style.minWidth="100%",e.style.boxSizing="border-box",e.style.zIndex="1",this.phantomDom=e;const n=t.querySelector("table");e.appendChild(n),t.appendChild(e),this.unwatchPhantom=this.$watch(["totalListHeight","contentOffsetY"],()=>{this.phantomDom&&(this.phantomDom.style.height=this.totalListHeight+"px",this.phantomDom.style.paddingTop=this.contentOffsetY+"px")},{immediate:!0})},onScroll(){this.scrollTop=this.scrollWrap.scrollTop,this.rafId||(this.rafId=requestAnimationFrame(()=>{this.calcVisibleRange(),this.rafId=null}))},calcVisibleRange(){if(!this.scrollWrap)return;let t=this.scrollWrap.clientHeight;if(!t){const e=this.$attrs.height||this.$attrs.maxHeight;e&&(t="number"===typeof e?e:parseInt(String(e),10))}if(!t||t<=0)return;const e=Math.ceil(t/this.rowHeight),n=Math.floor(this.scrollTop/this.rowHeight),r=Math.min(this.originData.length,n+e);n===this.startIndex&&r===this.endIndex||(this.startIndex=n,this.endIndex=r)},unbindScrollEvent(){this.scrollWrap&&this.scrollWrap.removeEventListener("scroll",this.onScroll)},scheduleLayout(){this.layoutTimer||(this.layoutTimer=setTimeout(()=>{this.$refs.innerTable&&this.$refs.innerTable.doLayout(),this.layoutTimer=null},0))},clearSelection(){return this.$refs.innerTable.clearSelection()},toggleRowSelection(){return this.$refs.innerTable.toggleRowSelection()},doLayout(){return this.$refs.innerTable.doLayout()}}},Xr=Ur,Zr=(n("ac06"),z(Xr,Wr,Yr,!1,null,"5eb34e1c",null)),qr=Zr.exports,$r={name:"ExTable",inheritAttrs:!1,components:{ExTableCell:Gr,VirtualElTable:qr},props:{tableData:{type:Array,default:()=>[]},columns:{type:Array,default:()=>[]},groupColumns:{type:Array,default:()=>[]},title:{type:String,default:""},height:{type:[Number,String],default:null},maxHeight:{type:[Number,String],default:null},virtualScroll:{type:Boolean,default:!1},rowInitHeight:{type:Number,default:48},bufferSize:{type:Number,default:5},pagination:{type:Object,default:null},total:{type:Number,default:0},showIndex:{type:Boolean,default:!1},selection:{type:Boolean,default:!1},selectionFixed:{type:[String,Boolean],default:!1},indexFixed:{type:[String,Boolean],default:!1},loading:{type:Boolean,default:!1},emptyText:{type:String,default:"暂无数据"},subtotalConfig:{type:Object,default:()=>({enabled:!1})},totalConfig:{type:Object,default:()=>({enabled:!1})}},data(){return{spanCache:{},flattenedColumnsCache:[],selectedRows:[]}},computed:{showPagination(){return this.pagination&&this.total>0},computedHeight(){return this.height||void 0},computedMaxHeight(){return this.height?void 0:this.maxHeight||void 0},processedTableData(){if(!this.tableData.length)return[];let t=[...this.tableData];const e=this.subtotalConfig&&this.subtotalConfig.enabled,n=this.totalConfig&&this.totalConfig.enabled;if(!e&&!n)return t;this.findLabelColumn();let r=[];if(e&&this.subtotalConfig.groupBy&&this.subtotalConfig.groupBy.length){const e=this.groupData(t,this.subtotalConfig.groupBy);e.forEach(t=>{r.push(...t);const e=this.createSubtotalRow(t);r.push(e)})}else r=t;if(n){const e=this.createTotalRow(t);r.push(e)}return r},flattenedColumns(){if(this.flattenedColumnsCache.length)return this.flattenedColumnsCache;const t=(e,n="")=>e.map((e,r)=>{const i=n?`${n}_${r}`:String(r),a=e.prop||e.slot||e.label||i,o={...e,_key:a};return e.children&&e.children.length&&(o.children=t(e.children,i)),o});return this.flattenedColumnsCache=t(this.columns),this.flattenedColumnsCache}},watch:{tableData(){this.spanCache={},this.flattenedColumnsCache=[]},columns:{handler(){this.flattenedColumnsCache=[],this.spanCache={}},deep:!0},groupColumns:{handler(){this.spanCache={}},deep:!0}},mounted(){this.$nextTick(()=>{window.addEventListener("resize",this.handleResize)})},beforeDestroy(){window.removeEventListener("resize",this.handleResize)},methods:{handleResize(){this.$nextTick(()=>{this.$refs.table&&this.$refs.table.doLayout()})},findLabelColumn(){for(const t of this.columns)if(t.children&&t.children.length){for(const e of t.children)if(e.prop)return{prop:e.prop,label:e.label}}else if(t.prop)return{prop:t.prop,label:t.label};return{prop:"",label:""}},groupData(t,e){const n=new Map;return t.forEach(t=>{const r=e.map(e=>t[e]).join("|||");n.has(r)||n.set(r,[]),n.get(r).push(t)}),n},_calcValue(t,e){if("function"===typeof e)return e(t);const n=e.prop,r=e.type||"sum",i=n?t.map(t=>parseFloat(t[n])||0):[];switch(r){case"sum":return i.reduce((t,e)=>t+e,0);case"avg":case"average":return i.length?i.reduce((t,e)=>t+e,0)/i.length:0;case"count":return t.length;case"min":return i.length?Math.min(...i):0;case"max":return i.length?Math.max(...i):0;default:return""}},createSubtotalRow(t){const e=this.subtotalConfig,n=this.findLabelColumn(),r=e.groupBy?e.groupBy[0]:"",i=t[0]?t[0][r]:"",a=e.labelText||i+" 小计",o={_rowType:"subtotal"};return o[n.prop]=a,e.columns&&Object.keys(e.columns).forEach(n=>{const r=e.columns[n];o[n]="string"===typeof r?this._calcValue(t,{prop:n,type:r}):this._calcValue(t,r)}),o},createTotalRow(t){const e=this.totalConfig,n=this.findLabelColumn(),r=e.labelText||"总计",i={_rowType:"total"};return i[n.prop]=r,e.columns&&Object.keys(e.columns).forEach(n=>{const r=e.columns[n];i[n]="string"===typeof r?this._calcValue(t,{prop:n,type:r}):this._calcValue(t,r)}),i},getRowClassName({row:t}){return"subtotal"===t._rowType?"ex-table-row-subtotal":"total"===t._rowType?"ex-table-row-total":""},getColumnProps(t){const{_key:e,children:n,render:r,formatter:i,slot:a,...o}=t;return o},indexMethod(t){return t+1},handleSpanMethod({row:t,column:e,rowIndex:n}){if("subtotal"===t._rowType||"total"===t._rowType)return{rowspan:1,colspan:1};if(!this.groupColumns.length)return{rowspan:1,colspan:1};const r=this.processedTableData,i=e.property,a=this.groupColumns.indexOf(i);if(-1===a)return{rowspan:1,colspan:1};const o=`${n}_${i}`;if(this.spanCache[o])return this.spanCache[o];if(n>0){const e=r[n-1];let i=!0;for(let n=0;n<=a;n++){const r=this.groupColumns[n];if(e[r]!==t[r]){i=!1;break}}if(i){const t={rowspan:0,colspan:1};return this.spanCache[o]=t,t}}let s=1;for(let u=n+1;u<r.length;u++){const e=r[u];let n=!0;for(let r=0;r<=a;r++){const i=this.groupColumns[r];if(e[i]!==t[i]){n=!1;break}}if(!n)break;s++}const l={rowspan:s>1?s:1,colspan:1};return this.spanCache[o]=l,l},handleSelectionChange(t){this.selectedRows=t.filter(t=>!t._rowType),this.$emit("selection-change",this.selectedRows)},handleSortChange(t){this.$emit("sort-change",t)},handleSizeChange(t){this.$emit("size-change",t)},handleCurrentChange(t){this.$emit("page-change",t)},getSelection(){return this.selectedRows},clearSelection(){this.$refs.table&&this.$refs.table.clearSelection(),this.selectedRows=[]},toggleRowSelection(t,e){this.$refs.table&&this.$refs.table.toggleRowSelection(t,e)},toggleRowsSelection(t,e){t&&t.length&&t.forEach(t=>{this.$refs.table&&this.$refs.table.toggleRowSelection(t,e)})},doLayout(){this.$refs.table&&this.$refs.table.doLayout()}}},Kr=$r,Jr=(n("781d"),z(Kr,zr,Br,!1,null,"1833f458",null)),Qr=Jr.exports;Qr.install=function(t){t.component(Qr.name,Qr)};var ti=Qr;function ei(t=1e4){const e=["研发部","产品部","运营部","财务部","市场部"],n=["工程师","产品经理","运营专员","财务主管","市场经理"],r=["在职","休假","离职"];return Array.from({length:t},(t,i)=>({id:i+1,name:"用户"+(i+1),department:e[i%e.length],position:n[i%n.length],email:`user${i+1}@example.com`,phone:"13800138"+String(i).padStart(4,"0"),address:`北京市朝阳区第${i+1}号街道`,salary:5e3+Math.floor(1e4*Math.random()),status:r[i%r.length]}))}const ni=[{prop:"id",label:"ID",fixed:"left",width:80},{prop:"name",label:"姓名",fixed:"left",width:120},{prop:"department",label:"部门",width:150},{prop:"position",label:"职位",width:150},{prop:"email",label:"邮箱",width:200},{prop:"phone",label:"电话",width:130},{prop:"address",label:"地址",width:200},{prop:"salary",label:"薪资",width:120},{prop:"status",label:"状态",fixed:"right",width:100}],ri=P.default||P,{getConfig:ii,setConfig:ai,getTheme:oi,getSize:si,getPrimaryColor:li,resetConfig:ui,onConfigChange:ci,setTheme:hi,setSize:di,setPrimaryColor:pi}=ri,fi=[F,Z,et,lt,vt,wt,At,Vt,Qt,te,Ke,an,dn,xn,Rn,Hn,xr,Ir,Er,ti],gi=function(t,e={}){gi.installed||(gi.installed=!0,fi.forEach(e=>{t.component(e.name,e)}),t.prototype.$xt={setTheme:hi,setSize:di,setPrimaryColor:pi,getConfig:ii,setConfig:ai,getTheme:oi,getSize:si,getPrimaryColor:li,resetConfig:ui,onConfigChange:ci},e&&(void 0!==e.theme&&hi(e.theme),void 0!==e.size&&di(e.size),void 0!==e.primaryColor&&pi(e.primaryColor),void 0!==e.config&&ai(e.config)))};"undefined"!==typeof window&&window.Vue&&gi(window.Vue);var yi={install:gi,components:fi,XtButton:F,XtInput:Z,XtFlexBox:et,XtCard:lt,XtCardItem:vt,XtConfigProvider:wt,XtText:At,XtTime:Vt,XtStepPrice:Qt,XtStepPriceItem:te,XtMap:Ke,XtMapProvider:an,XtGridBox:dn,XtGridItem:xn,ExDatePicker:Rn,ExButton:Hn,ExCard:Ir,ExIcon:Er,ExTable:ti};e["default"]=yi},fb36:function(t,e,n){var r=n("b8f9"),i=n("c8d5");function a(t,e){var n=i(t),a=i(e),o=n.getFullYear()-a.getFullYear(),s=r(n)-r(a);return 4*o+s}t.exports=a},fb98:function(t,e,n){var r=n("1cc6");function i(t,e){var n=Number(e);return r(t,-n)}t.exports=i},fbaf:function(t,e,n){var r=n("c8d5");function i(t){var e=r(t);return e.setMinutes(0,0,0),e}t.exports=i},fcb3:function(t,e,n){var r=n("6665");function i(t,e){var n=Number(e);return r(t,12*n)}t.exports=i},fd39:function(t,e,n){var r=n("0978");function i(t,e){var n=r(t),i=r(e);return n.getTime()===i.getTime()}t.exports=i}})}));