useECharts-BLUHawYm.js 778 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. var HT=Object.defineProperty;var nd=Object.getOwnPropertySymbols;var WT=Object.prototype.hasOwnProperty,UT=Object.prototype.propertyIsEnumerable;var ad=(r,t,e)=>t in r?HT(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e,od=(r,t)=>{for(var e in t||(t={}))WT.call(t,e)&&ad(r,e,t[e]);if(nd)for(var e of nd(t))UT.call(t,e)&&ad(r,e,t[e]);return r};import{m as YT,l as XT,aC as ZT,q as ls,a$ as $T,aF as qT,B as KT}from"./entry/index-HR-LjmG7.js";import{c as sd,f as jT,w as ld,u as Ln,y as JT}from"./vue-4umLpMSY.js";/*! *****************************************************************************
  2. Copyright (c) Microsoft Corporation.
  3. Permission to use, copy, modify, and/or distribute this software for any
  4. purpose with or without fee is hereby granted.
  5. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  6. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  7. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  8. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  9. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  10. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  11. PERFORMANCE OF THIS SOFTWARE.
  12. ***************************************************************************** */var Eh=function(r,t){return Eh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},Eh(r,t)};function E(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Eh(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var QT=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),tC=function(){function r(){this.browser=new QT,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window!="undefined"}return r}(),it=new tC;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(it.wxa=!0,it.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?it.worker=!0:!it.hasGlobalWindow||"Deno"in window?(it.node=!0,it.svgSupported=!0):eC(navigator.userAgent,it);function eC(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var ac=12,W_="sans-serif",_i=ac+"px "+W_,rC=20,iC=100,nC="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function aC(r){var t={};if(typeof JSON=="undefined")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-rC)/iC;t[i]=n}return t}var oC=aC(nC),Si={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,i){if(!r){var n=Si.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||_i),r.measureText(e);e=e||"",i=i||_i;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||ac,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=oC[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i}};function U_(r){for(var t in Si)r[t]&&(Si[t]=r[t])}var Y_=Ge(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),X_=Ge(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),ga=Object.prototype.toString,ru=Array.prototype,sC=ru.forEach,lC=ru.filter,oc=ru.slice,uC=ru.map,ud=function(){}.constructor,us=ud?ud.prototype:null,sc="__proto__",fC=2311;function lc(){return fC++}function uc(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t]}function q(r){if(r==null||typeof r!="object")return r;var t=r,e=ga.call(r);if(e==="[object Array]"){if(!ta(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=q(r[i])}}else if(X_[e]){if(!ta(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!Y_[e]&&!ta(r)&&!mn(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==sc&&(t[o]=q(r[o]))}return t}function et(r,t,e){if(!Z(t)||!Z(r))return e?q(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==sc){var n=r[i],a=t[i];Z(a)&&Z(n)&&!z(a)&&!z(n)&&!mn(a)&&!mn(n)&&!kh(a)&&!kh(n)&&!ta(a)&&!ta(n)?et(n,a,e):(e||!(i in r))&&(r[i]=q(t[i]))}return r}function Z_(r,t){for(var e=r[0],i=1,n=r.length;i<n;i++)e=et(e,r[i],t);return e}function O(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==sc&&(r[e]=t[e]);return r}function K(r,t,e){for(var i=st(t),n=0,a=i.length;n<a;n++){var o=i[n];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}var hC=Si.createCanvas;function ut(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function fc(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function Zt(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else K(r,t,e)}function ne(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function T(r,t,e){if(r&&t)if(r.forEach&&r.forEach===sC)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function V(r,t,e){if(!r)return[];if(!t)return nu(r);if(r.map&&r.map===uC)return r.map(t,e);for(var i=[],n=0,a=r.length;n<a;n++)i.push(t.call(e,r[n],n,r));return i}function Ge(r,t,e,i){if(r&&t){for(var n=0,a=r.length;n<a;n++)e=t.call(i,e,r[n],n,r);return e}}function wt(r,t,e){if(!r)return[];if(!t)return nu(r);if(r.filter&&r.filter===lC)return r.filter(t,e);for(var i=[],n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r)&&i.push(r[n]);return i}function $_(r,t,e){if(r&&t){for(var i=0,n=r.length;i<n;i++)if(t.call(e,r[i],i,r))return r[i]}}function st(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function vC(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(oc.call(arguments)))}}var U=us&&j(us.bind)?us.call.bind(us.bind):vC;function vt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(oc.call(arguments)))}}function z(r){return Array.isArray?Array.isArray(r):ga.call(r)==="[object Array]"}function j(r){return typeof r=="function"}function G(r){return typeof r=="string"}function _l(r){return ga.call(r)==="[object String]"}function yt(r){return typeof r=="number"}function Z(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function kh(r){return!!Y_[ga.call(r)]}function he(r){return!!X_[ga.call(r)]}function mn(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function iu(r){return r.colorStops!=null}function cC(r){return r.image!=null}function pC(r){return ga.call(r)==="[object RegExp]"}function bo(r){return r!==r}function Gr(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function Q(r,t){return r!=null?r:t}function Qn(r,t,e){return r!=null?r:t!=null?t:e}function nu(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return oc.apply(r,t)}function hc(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function ve(r,t){if(!r)throw new Error(t)}function Fe(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var q_="__ec_primitive__";function wo(r){r[q_]=!0}function ta(r){return r[q_]}var dC=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return st(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r}(),K_=typeof Map=="function";function gC(){return K_?new Map:new dC}var j_=function(){function r(t){var e=z(t);this.data=gC();var i=this;t instanceof r?t.each(n):t&&T(t,n);function n(a,o){e?i.set(a,o):i.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},r.prototype.keys=function(){var t=this.data.keys();return K_?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function Y(r){return new j_(r)}function J_(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var n=r.length,i=0;i<t.length;i++)e[i+n]=t[i];return e}function Zo(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&O(e,t),e}function yC(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function W(r,t){return r.hasOwnProperty(t)}function Ft(){}var so=180/Math.PI;const mC=Object.freeze(Object.defineProperty({__proto__:null,HashMap:j_,RADIAN_TO_DEGREE:so,assert:ve,bind:U,clone:q,concatArray:J_,createCanvas:hC,createHashMap:Y,createObject:Zo,curry:vt,defaults:K,disableUserSelect:yC,each:T,eqNaN:bo,extend:O,filter:wt,find:$_,guid:lc,hasOwn:W,indexOf:ut,inherits:fc,isArray:z,isArrayLike:ne,isBuiltInObject:kh,isDom:mn,isFunction:j,isGradientObject:iu,isImagePatternObject:cC,isNumber:yt,isObject:Z,isPrimitive:ta,isRegExp:pC,isString:G,isStringSafe:_l,isTypedArray:he,keys:st,logError:uc,map:V,merge:et,mergeAll:Z_,mixin:Zt,noop:Ft,normalizeCssArray:hc,reduce:Ge,retrieve:Gr,retrieve2:Q,retrieve3:Qn,setAsPrimitive:wo,slice:nu,trim:Fe},Symbol.toStringTag,{value:"Module"}));function wn(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Q_(r,t){return r[0]=t[0],r[1]=t[1],r}function t1(r){return[r[0],r[1]]}function _C(r,t,e){return r[0]=t,r[1]=e,r}function Oh(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function SC(r,t,e,i){return r[0]=t[0]+e[0]*i,r[1]=t[1]+e[1]*i,r}function e1(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function vc(r){return Math.sqrt(cc(r))}var xC=vc;function cc(r){return r[0]*r[0]+r[1]*r[1]}var bC=cc;function wC(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function TC(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function CC(r,t){return r[0]*t[0]+r[1]*t[1]}function tl(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function r1(r,t){var e=vc(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function Sl(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var xl=Sl;function i1(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var un=i1;function AC(r,t){return r[0]=-t[0],r[1]=-t[1],r}function el(r,t,e,i){return r[0]=t[0]+i*(e[0]-t[0]),r[1]=t[1]+i*(e[1]-t[1]),r}function Gt(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function Br(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Nr(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}const MC=Object.freeze(Object.defineProperty({__proto__:null,add:Oh,applyTransform:Gt,clone:t1,copy:Q_,create:wn,dist:xl,distSquare:un,distance:Sl,distanceSquare:i1,div:TC,dot:CC,len:vc,lenSquare:cc,length:xC,lengthSquare:bC,lerp:el,max:Nr,min:Br,mul:wC,negate:AC,normalize:r1,scale:tl,scaleAndAdd:SC,set:_C,sub:e1},Symbol.toStringTag,{value:"Module"}));var Pn=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),DC=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Pn(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new Pn(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Pn(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Pn(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Pn(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Pn(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}(),ar=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var l={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,l=0;l<s;l++){var u=n[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],l=n.length,u=0;u<l;u++){var f=n[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r}(),LC=Math.log(2);function Bh(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~n)/LC);return r[e][l]}for(var u=i|1<<e,f=e+1;i&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var p=1<<c;p&n||(h+=(v%2?-1:1)*r[e][c]*Bh(r,t-1,f,u,n|p,a),v++)}return a[o]=h,h}function fd(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],i={},n=Bh(e,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Bh(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var hd="___zrEVENTSAVED",Xu=[];function PC(r,t,e,i,n){return Nh(Xu,t,i,n,!0)&&Nh(r,e,Xu[0],Xu[1])}function Nh(r,t,e,i,n){if(t.getBoundingClientRect&&it.domSupported&&!n1(t)){var a=t[hd]||(t[hd]={}),o=IC(t,a),s=RC(o,a,n);if(s)return s(r,e,i),!0}return!1}function IC(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",n[u]+":0",i[1-l]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function RC(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&a&&c===a[h]&&v===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&n?n:(t.srcCoords=o,t[i]=e?fd(s,o):fd(o,s))}function n1(r){return r.nodeName.toUpperCase()==="CANVAS"}var EC=/([&<>"'])/g,kC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function te(r){return r==null?"":(r+"").replace(EC,function(t,e){return kC[e]})}var OC=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Zu=[],BC=it.browser.firefox&&+it.browser.version.split(".")[0]<39;function zh(r,t,e,i){return e=e||{},i?vd(r,t,e):BC&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):vd(r,t,e),e}function vd(r,t,e){if(it.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(n1(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(Nh(Zu,r,i,n)){e.zrX=Zu[0],e.zrY=Zu[1];return}}e.zrX=e.zrY=0}function pc(r){return r||window.event}function Ee(r,t,e){if(t=pc(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&zh(r,o,t,e)}else{zh(r,t,t,e);var a=NC(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&OC.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function NC(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function Vh(r,t,e,i){r.addEventListener(t,e,i)}function zC(r,t,e,i){r.removeEventListener(t,e,i)}var Hr=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function cd(r){return r.which===2||r.which===3}var VC=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var l=n[o],u=zh(i,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in $u)if($u.hasOwnProperty(e)){var i=$u[e](this._track,t);if(i)return i}},r}();function pd(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function FC(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var $u={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,n=(r[e-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=pd(i)/pd(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=FC(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function Ce(){return[1,0,0,1,0,0]}function $o(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function au(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function Tr(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function Wr(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function Ti(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=n*h+s*f,r[1]=-n*f+s*h,r[2]=a*h+l*f,r[3]=-a*f+h*l,r[4]=h*(o-i[0])+f*(u-i[1])+i[0],r[5]=h*(u-i[1])-f*(o-i[0])+i[1],r}function dc(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function Tn(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*i;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-i*l,r[3]=e*l,r[4]=(i*s-o*n)*l,r[5]=(a*n-e*s)*l,r):null}function GC(r){var t=Ce();return au(t,r),t}const HC=Object.freeze(Object.defineProperty({__proto__:null,clone:GC,copy:au,create:Ce,identity:$o,invert:Tn,mul:Tr,rotate:Ti,scale:dc,translate:Wr},Symbol.toStringTag,{value:"Module"}));var rt=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,i){t.x=e,t.y=i},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r}(),fs=Math.min,hs=Math.max,Mi=new rt,Di=new rt,Li=new rt,Pi=new rt,Ca=new rt,Aa=new rt,ft=function(){function r(t,e,i,n){i<0&&(t=t+i,i=-i),n<0&&(e=e+n,n=-n),this.x=t,this.y=e,this.width=i,this.height=n}return r.prototype.union=function(t){var e=fs(t.x,this.x),i=fs(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=hs(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=hs(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,n=t.height/e.height,a=Ce();return Wr(a,a,[-e.x,-e.y]),dc(a,a,[i,n]),Wr(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,c=!(a<l||u<n||s<f||h<o);if(e){var v=1/0,p=0,d=Math.abs(a-l),g=Math.abs(u-n),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(d,g),S=Math.min(y,m);a<l||u<n?_>p&&(p=_,d<g?rt.set(Aa,-d,0):rt.set(Aa,g,0)):_<v&&(v=_,d<g?rt.set(Ca,d,0):rt.set(Ca,-g,0)),s<f||h<o?S>p&&(p=S,y<m?rt.set(Aa,0,-y):rt.set(Aa,0,m)):_<v&&(v=_,y<m?rt.set(Ca,0,y):rt.set(Ca,0,-m))}return e&&rt.copy(e,c?Ca:Aa),c},r.prototype.contain=function(t,e){var i=this;return t>=i.x&&t<=i.x+i.width&&e>=i.y&&e<=i.y+i.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,i){if(!i){t!==e&&r.copy(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Mi.x=Li.x=e.x,Mi.y=Pi.y=e.y,Di.x=Pi.x=e.x+e.width,Di.y=Li.y=e.y+e.height,Mi.transform(i),Pi.transform(i),Di.transform(i),Li.transform(i),t.x=fs(Mi.x,Di.x,Li.x,Pi.x),t.y=fs(Mi.y,Di.y,Li.y,Pi.y);var l=hs(Mi.x,Di.x,Li.x,Pi.x),u=hs(Mi.y,Di.y,Li.y,Pi.y);t.width=l-t.x,t.height=u-t.y},r}(),a1="silent";function WC(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:UC}}function UC(){Hr(this.event)}var YC=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ar),Ma=function(){function r(t,e){this.x=t,this.y=e}return r}(),XC=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],qu=new ft(0,0,0,0),o1=function(r){E(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new Ma(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new YC,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new DC(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(T(XC,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=s1(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Ma(i,n):this.findHover(i,n),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ma(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=WC(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new Ma(e,i);if(dd(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ft(e-u,i-u,l,l),h=a.length-1;h>=0;h--){var c=a[h];c!==n&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(qu.copy(c.getBoundingRect()),c.transform&&qu.applyTransform(c.transform),qu.intersect(f)&&s.push(c))}if(s.length)for(var v=4,p=Math.PI/12,d=Math.PI*2,g=0;g<u;g+=v)for(var y=0;y<d;y+=p){var m=e+g*Math.cos(y),_=i+g*Math.sin(y);if(dd(s,o,m,_,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new VC);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Ma;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(ar);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){o1.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=s1(this,e,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(e,i),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||xl(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function ZC(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?a1:!0}return!1}function dd(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=ZC(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==a1)){t.target=o;break}}}function s1(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var l1=32,Da=7;function $C(r){for(var t=0;r>=l1;)t|=r&1,r>>=1;return r+t}function gd(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n<e&&i(r[n],r[n-1])<0;)n++;qC(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function qC(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function yd(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,l;o<s;)l=o+s>>>1,n(a,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Ku(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])>0){for(s=i-n;l<s&&a(r,t[e+n+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}else{for(s=n+1;l<s&&a(r,t[e+n-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function ju(r,t,e,i,n,a){var o=0,s=0,l=1;if(a(r,t[e+n])<0){for(s=n+1;l<s&&a(r,t[e+n-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=n-l,l=n-u}else{for(s=i-n;l<s&&a(r,t[e+n+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=n,l+=n}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function KC(r,t){var e=Da,i,n,a=0,o=[];i=[],n=[];function s(v,p){i[a]=v,n[a]=p,a+=1}function l(){for(;a>1;){var v=a-2;if(v>=1&&n[v-1]<=n[v]+n[v+1]||v>=2&&n[v-2]<=n[v]+n[v-1])n[v-1]<n[v+1]&&v--;else if(n[v]>n[v+1])break;f(v)}}function u(){for(;a>1;){var v=a-2;v>0&&n[v-1]<n[v+1]&&v--,f(v)}}function f(v){var p=i[v],d=n[v],g=i[v+1],y=n[v+1];n[v]=d+y,v===a-3&&(i[v+1]=i[v+2],n[v+1]=n[v+2]),a--;var m=ju(r[g],r,p,d,0,t);p+=m,d-=m,d!==0&&(y=Ku(r[p+d-1],r,g,y,y-1,t),y!==0&&(d<=y?h(p,d,g,y):c(p,d,g,y)))}function h(v,p,d,g){var y=0;for(y=0;y<p;y++)o[y]=r[v+y];var m=0,_=d,S=v;if(r[S++]=r[_++],--g===0){for(y=0;y<p;y++)r[S+y]=o[m+y];return}if(p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var b=e,x,w,C;;){x=0,w=0,C=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],w++,x=0,--g===0){C=!0;break}}else if(r[S++]=o[m++],x++,w=0,--p===1){C=!0;break}while((x|w)<b);if(C)break;do{if(x=ju(r[_],o,m,p,0,t),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,p-=x,p<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(w=Ku(o[m],r,_,g,0,t),w!==0){for(y=0;y<w;y++)r[S+y]=r[_+y];if(S+=w,_+=w,g-=w,g===0){C=!0;break}}if(r[S++]=o[m++],--p===1){C=!0;break}b--}while(x>=Da||w>=Da);if(C)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(p===0)throw new Error;for(y=0;y<p;y++)r[S+y]=o[m+y]}}function c(v,p,d,g){var y=0;for(y=0;y<g;y++)o[y]=r[d+y];var m=v+p-1,_=g-1,S=d+g-1,b=0,x=0;if(r[S--]=r[m--],--p===0){for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y];return}if(g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_];return}for(var w=e;;){var C=0,A=0,M=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],C++,A=0,--p===0){M=!0;break}}else if(r[S--]=o[_--],A++,C=0,--g===1){M=!0;break}while((C|A)<w);if(M)break;do{if(C=p-ju(o[_],r,v,p,p-1,t),C!==0){for(S-=C,m-=C,p-=C,x=S+1,b=m+1,y=C-1;y>=0;y--)r[x+y]=r[b+y];if(p===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(A=g-Ku(r[m],o,0,g,g-1,t),A!==0){for(S-=A,_-=A,g-=A,x=S+1,b=_+1,y=0;y<A;y++)r[x+y]=o[b+y];if(g<=1){M=!0;break}}if(r[S--]=r[m--],--p===0){M=!0;break}w--}while(C>=Da||A>=Da);if(M)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),g===1){for(S-=p,m-=p,x=S+1,b=m+1,y=p-1;y>=0;y--)r[x+y]=r[b+y];r[S]=o[_]}else{if(g===0)throw new Error;for(b=S-(g-1),y=0;y<g;y++)r[b+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function rl(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<l1){a=gd(r,e,i,t),yd(r,e,i,e+a,t);return}var o=KC(r,t),s=$C(n);do{if(a=gd(r,e,i,t),a<s){var l=n;l>s&&(l=s),yd(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var fn=1,il=2,Ja=4,md=!1;function Ju(){md||(md=!0)}function _d(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var jC=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=_d}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,rl(i,_d)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)e=null;else if(n){e?e=e.slice():e=[];for(var a=n,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=fn),this._updateAndAddDisplayable(u,e,i)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(Ju(),f.z=0),isNaN(f.z2)&&(Ju(),f.z2=0),isNaN(f.zlevel)&&(Ju(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,i);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,i);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,i)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var n=ut(this._roots,t);n>=0&&this._roots.splice(n,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r}(),Fh;Fh=it.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var lo={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-lo.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?lo.bounceIn(r*2)*.5:lo.bounceOut(r*2-1)*.5+.5}},vs=Math.pow,di=Math.sqrt,u1=1e-8,f1=1e-4,Sd=di(3),cs=1/3,mr=wn(),Ne=wn(),ea=wn();function ui(r){return r>-1e-8&&r<u1}function h1(r){return r>u1||r<-1e-8}function Ot(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function xd(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function bl(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-n,f=s*s-3*o*l,h=s*l-9*o*u,c=l*l-3*s*u,v=0;if(ui(f)&&ui(h))if(ui(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[v++]=p)}else{var d=h*h-4*f*c;if(ui(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(a[v++]=p),y>=0&&y<=1&&(a[v++]=y)}else if(d>0){var m=di(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-vs(-_,cs):_=vs(_,cs),S<0?S=-vs(-S,cs):S=vs(S,cs);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(a[v++]=p)}else{var b=(2*f*s-3*o*h)/(2*di(f*f*f)),x=Math.acos(b)/3,w=di(f),C=Math.cos(x),p=(-s-2*w*C)/(3*o),y=(-s+w*(C+Sd*Math.sin(x)))/(3*o),A=(-s+w*(C-Sd*Math.sin(x)))/(3*o);p>=0&&p<=1&&(a[v++]=p),y>=0&&y<=1&&(a[v++]=y),A>=0&&A<=1&&(a[v++]=A)}}return v}function v1(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,l=0;if(ui(o)){if(h1(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var f=a*a-4*o*s;if(ui(f))n[0]=-a/(2*o);else if(f>0){var h=di(f),u=(-a+h)/(2*o),c=(-a-h)/(2*o);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function wl(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,l=(i-e)*n+e,u=(s-o)*n+o,f=(l-s)*n+s,h=(f-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=i}function c1(r,t,e,i,n,a,o,s,l,u,f){var h,c=.005,v=1/0,p,d,g,y;mr[0]=l,mr[1]=u;for(var m=0;m<1;m+=.05)Ne[0]=Ot(r,e,n,o,m),Ne[1]=Ot(t,i,a,s,m),g=un(mr,Ne),g<v&&(h=m,v=g);v=1/0;for(var _=0;_<32&&!(c<f1);_++)p=h-c,d=h+c,Ne[0]=Ot(r,e,n,o,p),Ne[1]=Ot(t,i,a,s,p),g=un(Ne,mr),p>=0&&g<v?(h=p,v=g):(ea[0]=Ot(r,e,n,o,d),ea[1]=Ot(t,i,a,s,d),y=un(ea,mr),d<=1&&y<v?(h=d,v=y):c*=.5);return f&&(f[0]=Ot(r,e,n,o,h),f[1]=Ot(t,i,a,s,h)),di(v)}function JC(r,t,e,i,n,a,o,s,l){for(var u=r,f=t,h=0,c=1/l,v=1;v<=l;v++){var p=v*c,d=Ot(r,e,n,o,p),g=Ot(t,i,a,s,p),y=d-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=d,f=g}return h}function Jt(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function bd(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function QC(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,l=0;if(ui(a)){if(h1(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var f=o*o-4*a*s;if(ui(f)){var u=-o/(2*a);u>=0&&u<=1&&(n[l++]=u)}else if(f>0){var h=di(f),u=(-o+h)/(2*a),c=(-o-h)/(2*a);u>=0&&u<=1&&(n[l++]=u),c>=0&&c<=1&&(n[l++]=c)}}return l}function p1(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Tl(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function d1(r,t,e,i,n,a,o,s,l){var u,f=.005,h=1/0;mr[0]=o,mr[1]=s;for(var c=0;c<1;c+=.05){Ne[0]=Jt(r,e,n,c),Ne[1]=Jt(t,i,a,c);var v=un(mr,Ne);v<h&&(u=c,h=v)}h=1/0;for(var p=0;p<32&&!(f<f1);p++){var d=u-f,g=u+f;Ne[0]=Jt(r,e,n,d),Ne[1]=Jt(t,i,a,d);var v=un(Ne,mr);if(d>=0&&v<h)u=d,h=v;else{ea[0]=Jt(r,e,n,g),ea[1]=Jt(t,i,a,g);var y=un(ea,mr);g<=1&&y<h?(u=g,h=y):f*=.5}}return l&&(l[0]=Jt(r,e,n,u),l[1]=Jt(t,i,a,u)),di(h)}function tA(r,t,e,i,n,a,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Jt(r,e,n,c),p=Jt(t,i,a,c),d=v-s,g=p-l;u+=Math.sqrt(d*d+g*g),s=v,l=p}return u}var eA=/cubic-bezier\(([0-9,\.e ]+)\)/;function gc(r){var t=r&&eA.exec(r);if(t){var e=t[1].split(","),i=+Fe(e[0]),n=+Fe(e[1]),a=+Fe(e[2]),o=+Fe(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:bl(0,i,a,1,l,s)&&Ot(0,n,o,1,s[0])}}}var rA=function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Ft,this.ondestroy=t.ondestroy||Ft,this.onrestart=t.onrestart||Ft,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=n%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=j(t)?t:lo[t]||gc(t)},r}(),g1=function(){function r(t){this.value=t}return r}(),iA=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new g1(t);return this.insertEntry(e),e},r.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++},r.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),qo=function(){function r(t){this._list=new iA,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete n[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new g1(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}(),wd={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 er(r){return r=Math.round(r),r<0?0:r>255?255:r}function nA(r){return r=Math.round(r),r<0?0:r>360?360:r}function To(r){return r<0?0:r>1?1:r}function Qu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?er(parseFloat(t)/100*255):er(parseInt(t,10))}function hn(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?To(parseFloat(t)/100):To(parseFloat(t))}function tf(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function fi(r,t,e){return r+(t-r)*e}function Re(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function Gh(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var y1=new qo(20),ps=null;function In(r,t){ps&&Gh(ps,t),ps=y1.put(r,ps||t.slice())}function fe(r,t){if(r){t=t||[];var e=y1.get(r);if(e)return Gh(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in wd)return Gh(t,wd[i]),In(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){Re(t,0,0,0,1);return}return Re(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),In(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){Re(t,0,0,0,1);return}return Re(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),In(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Re(t,+u[0],+u[1],+u[2],1):Re(t,0,0,0,1);f=hn(u.pop());case"rgb":if(u.length>=3)return Re(t,Qu(u[0]),Qu(u[1]),Qu(u[2]),u.length===3?f:hn(u[3])),In(r,t),t;Re(t,0,0,0,1);return;case"hsla":if(u.length!==4){Re(t,0,0,0,1);return}return u[3]=hn(u[3]),Hh(u,t),In(r,t),t;case"hsl":if(u.length!==3){Re(t,0,0,0,1);return}return Hh(u,t),In(r,t),t;default:return}}Re(t,0,0,0,1)}}function Hh(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=hn(r[1]),n=hn(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],Re(t,er(tf(o,a,e+1/3)*255),er(tf(o,a,e)*255),er(tf(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function aA(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,n=Math.min(t,e,i),a=Math.max(t,e,i),o=a-n,s=(a+n)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var f=((a-t)/6+o/2)/o,h=((a-e)/6+o/2)/o,c=((a-i)/6+o/2)/o;t===a?l=c-h:e===a?l=1/3+f-c:i===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function Wh(r,t){var e=fe(r);if(e){for(var i=0;i<3;i++)t<0?e[i]=e[i]*(1-t)|0:e[i]=(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return rr(e,e.length===4?"rgba":"rgb")}}function oA(r){var t=fe(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function uo(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],l=i-n;return e[0]=er(fi(o[0],s[0],l)),e[1]=er(fi(o[1],s[1],l)),e[2]=er(fi(o[2],s[2],l)),e[3]=To(fi(o[3],s[3],l)),e}}var sA=uo;function yc(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=fe(t[n]),s=fe(t[a]),l=i-n,u=rr([er(fi(o[0],s[0],l)),er(fi(o[1],s[1],l)),er(fi(o[2],s[2],l)),To(fi(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}var lA=yc;function nl(r,t,e,i){var n=fe(r);if(r)return n=aA(n),t!=null&&(n[0]=nA(t)),e!=null&&(n[1]=hn(e)),i!=null&&(n[2]=hn(i)),rr(Hh(n),"rgba")}function m1(r,t){var e=fe(r);if(e&&t!=null)return e[3]=To(t),rr(e,"rgba")}function rr(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function Co(r,t){var e=fe(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function uA(){return rr([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var Td=new qo(100);function Cl(r){if(G(r)){var t=Td.get(r);return t||(t=Wh(r,-.1),Td.put(r,t)),t}else if(iu(r)){var e=O({},r);return e.colorStops=V(r.colorStops,function(i){return{offset:i.offset,color:Wh(i.color,-.1)}}),e}return r}const fA=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:uo,fastMapToColor:sA,lerp:yc,lift:Wh,liftColor:Cl,lum:Co,mapToColor:lA,modifyAlpha:m1,modifyHSL:nl,parse:fe,random:uA,stringify:rr,toHex:oA},Symbol.toStringTag,{value:"Module"}));var Al=Math.round;function Ao(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=fe(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t==null?1:t}}var hA=1e-4;function hi(r){return r<hA&&r>-1e-4}function ds(r){return Al(r*1e3)/1e3}function Uh(r){return Al(r*1e4)/1e4}function vA(r){return"matrix("+ds(r[0])+","+ds(r[1])+","+ds(r[2])+","+ds(r[3])+","+Uh(r[4])+","+Uh(r[5])+")"}var cA={left:"start",right:"end",center:"middle",middle:"middle"};function pA(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function dA(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function gA(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function _1(r){return r&&!!r.image}function yA(r){return r&&!!r.svgElement}function mc(r){return _1(r)||yA(r)}function S1(r){return r.type==="linear"}function x1(r){return r.type==="radial"}function b1(r){return r&&(r.type==="linear"||r.type==="radial")}function ou(r){return"url(#"+r+")"}function w1(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function T1(r){var t=r.x||0,e=r.y||0,i=(r.rotation||0)*so,n=Q(r.scaleX,1),a=Q(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(t||e)&&l.push("translate("+t+"px,"+e+"px)"),i&&l.push("rotate("+i+")"),(n!==1||a!==1)&&l.push("scale("+n+","+a+")"),(o||s)&&l.push("skew("+Al(o*so)+"deg, "+Al(s*so)+"deg)"),l.join(" ")}var mA=function(){return it.hasGlobalWindow&&j(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer!="undefined"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Yh=Array.prototype.slice;function kr(r,t,e){return(t-r)*e+r}function ef(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=kr(t[a],e[a],i);return r}function _A(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=kr(t[o][s],e[o][s],i)}return r}function gs(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function Cd(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function SA(r,t){for(var e=r.length,i=t.length,n=e>i?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function xA(r,t,e){var i=r,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var l=a;l<o;l++)i.push(e===1?n[l]:Yh.call(n[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(e===1)isNaN(i[l])&&(i[l]=n[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=n[l][f])}}function fo(r){if(ne(r)){var t=r.length;if(ne(r[0])){for(var e=[],i=0;i<t;i++)e.push(Yh.call(r[i]));return e}return Yh.call(r)}return r}function al(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function bA(r){return ne(r&&r[0])?2:1}var ys=0,ol=1,C1=2,Qa=3,Xh=4,Zh=5,Ad=6;function Md(r){return r===Xh||r===Zh}function ms(r){return r===ol||r===C1}var La=[0,0,0,0],wA=function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Ad,l=e;if(ne(e)){var u=bA(e);s=u,(u===1&&!yt(e[0])||u===2&&!yt(e[0][0]))&&(o=!0)}else if(yt(e)&&!bo(e))s=ys;else if(G(e))if(!isNaN(+e))s=ys;else{var f=fe(e);f&&(l=f,s=Qa)}else if(iu(e)){var h=O({},l);h.colorStops=V(e.colorStops,function(v){return{offset:v.offset,color:fe(v.color)}}),S1(e)?s=Xh:x1(e)&&(s=Zh),l=h}a===0?this.valType=s:(s!==this.valType||s===Ad)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:l,rawValue:e,percent:0};return i&&(c.easing=i,c.easingFunc=j(i)?i:lo[i]||gc(i)),n.push(c),c},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(d,g){return d.time-g.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,l=ms(n),u=Md(n),f=0;f<a;f++){var h=i[f],c=h.value,v=o.value;h.percent=h.time/t,s||(l&&f!==a-1?xA(c,v,n):u&&SA(c.colorStops,v.colorStops))}if(!s&&n!==Zh&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var p=i[0].value,f=0;f<a;f++)n===ys?i[f].additiveValue=i[f].value-p:n===Qa?i[f].additiveValue=gs([],i[f].value,p,-1):ms(n)&&(i[f].additiveValue=n===ol?gs([],i[f].value,p,-1):Cd([],i[f].value,p,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Qa,f,h=this._lastFr,c=Math.min,v,p;if(s===1)v=p=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var d=c(h+1,s-1);for(f=d;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}p=o[f+1],v=o[f]}if(v&&p){this._lastFr=f,this._lastFrP=e;var g=p.percent-v.percent,y=g===0?1:c((e-v.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=i?this._additiveValue:u?La:t[l];if((ms(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)t[l]=y<1?v.rawValue:p.rawValue;else if(ms(a))a===ol?ef(m,v[n],p[n],y):_A(m,v[n],p[n],y);else if(Md(a)){var _=v[n],S=p[n],b=a===Xh;t[l]={type:b?"linear":"radial",x:kr(_.x,S.x,y),y:kr(_.y,S.y,y),colorStops:V(_.colorStops,function(w,C){var A=S.colorStops[C];return{offset:kr(w.offset,A.offset,y),color:al(ef([],w.color,A.color,y))}}),global:S.global},b?(t[l].x2=kr(_.x2,S.x2,y),t[l].y2=kr(_.y2,S.y2,y)):t[l].r=kr(_.r,S.r,y)}else if(u)ef(m,v[n],p[n],y),i||(t[l]=al(m));else{var x=kr(v[n],p[n],y);i?this._additiveValue=x:t[l]=x}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===ys?t[i]=t[i]+n:e===Qa?(fe(t[i],La),gs(La,La,n,1),t[i]=al(La)):e===ol?gs(t[i],t[i],n,1):e===C1&&Cd(t[i],t[i],n,1)},r}(),_c=function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){uc("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,st(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],l=a[s];if(!l){l=a[s]=new wA(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];u=c&&c.value,f.valType===Qa&&u&&(u=al(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,fo(u),n),this._trackKeys.push(s)}l.addKeyframe(t,fo(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(n,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new rA({life:n,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var p=e._additiveAnimators;if(p){for(var d=!1,g=0;g<p.length;g++)if(p[g]._clip){d=!0;break}d||(e._additiveAnimators=null)}for(var g=0;g<i.length;g++)i[g].step(e._target,v);var y=e._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return V(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var a=e[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(t[a]=fo(l.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||st(t);for(var i=0;i<e.length;i++){var n=e[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();function jn(){return new Date().getTime()}var TA=function(r){E(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=jn()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&(Fh(i),!e._paused&&e.update())}Fh(i)},t.prototype.start=function(){this._running||(this._time=jn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=jn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=jn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new _c(e,i.loop);return this.addAnimator(n),n},t}(ar),CA=300,rf=it.domSupported,nf=function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=V(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}}(),Dd={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ld=!1;function $h(r){var t=r.pointerType;return t==="pen"||t==="touch"}function AA(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function af(r){r&&(r.zrByTouch=!0)}function MA(r,t){return Ee(r.dom,new DA(r,t),!0)}function A1(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var DA=function(){function r(t,e){this.stopPropagation=Ft,this.stopImmediatePropagation=Ft,this.preventDefault=Ft,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r}(),Ke={mousedown:function(r){r=Ee(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Ee(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=Ee(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Ee(this.dom,r);var t=r.toElement||r.relatedTarget;A1(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Ld=!0,r=Ee(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Ld||(r=Ee(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Ee(this.dom,r),af(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ke.mousemove.call(this,r),Ke.mousedown.call(this,r)},touchmove:function(r){r=Ee(this.dom,r),af(r),this.handler.processGesture(r,"change"),Ke.mousemove.call(this,r)},touchend:function(r){r=Ee(this.dom,r),af(r),this.handler.processGesture(r,"end"),Ke.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<CA&&Ke.click.call(this,r)},pointerdown:function(r){Ke.mousedown.call(this,r)},pointermove:function(r){$h(r)||Ke.mousemove.call(this,r)},pointerup:function(r){Ke.mouseup.call(this,r)},pointerout:function(r){$h(r)||Ke.mouseout.call(this,r)}};T(["click","dblclick","contextmenu"],function(r){Ke[r]=function(t){t=Ee(this.dom,t),this.trigger(r,t)}});var qh={pointermove:function(r){$h(r)||qh.mousemove.call(this,r)},pointerup:function(r){qh.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function LA(r,t){var e=t.domHandlers;it.pointerEventsSupported?T(nf.pointer,function(i){sl(t,i,function(n){e[i].call(r,n)})}):(it.touchEventsSupported&&T(nf.touch,function(i){sl(t,i,function(n){e[i].call(r,n),AA(t)})}),T(nf.mouse,function(i){sl(t,i,function(n){n=pc(n),t.touching||e[i].call(r,n)})}))}function PA(r,t){it.pointerEventsSupported?T(Dd.pointer,e):it.touchEventsSupported||T(Dd.mouse,e);function e(i){function n(a){a=pc(a),A1(r,a.target)||(a=MA(r,a),t.domHandlers[i].call(r,a))}sl(t,i,n,{capture:!0})}}function sl(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,Vh(r.domTarget,t,e,i)}function of(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&zC(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Pd=function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r}(),IA=function(r){E(t,r);function t(e,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new Pd(e,Ke),rf&&(n._globalHandlerScope=new Pd(document,qh)),LA(n,n._localHandlerScope),n}return t.prototype.dispose=function(){of(this._localHandlerScope),rf&&of(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,rf&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?PA(this,i):of(i)}},t}(ar),M1=1;it.hasGlobalWindow&&(M1=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Id=M1,Kh=.4,jh="#333",Jh="#ccc",RA="#eee",Rd=$o,EA=5e-5;function Ii(r){return r>EA||r<-5e-5}var Ri=[],Rn=[],sf=Ce(),lf=Math.abs,rn=function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Ii(this.rotation)||Ii(this.x)||Ii(this.y)||Ii(this.scaleX-1)||Ii(this.scaleY-1)||Ii(this.skewX)||Ii(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(Rd(i),this.invTransform=null);return}i=i||Ce(),e?this.getLocalTransform(i):Rd(i),t&&(e?Tr(i,t,i):au(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Ri);var i=Ri[0]<0?-1:1,n=Ri[1]<0?-1:1,a=((Ri[0]-i)*e+i)/Ri[0]||0,o=((Ri[1]-n)*e+n)/Ri[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ce(),Tn(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Ce(),Tr(Rn,t.invTransform,e),e=Rn);var i=this.originX,n=this.originY;(i||n)&&(sf[4]=i,sf[5]=n,Tr(Rn,e,sf),Rn[4]-=i,Rn[5]-=n,e=Rn),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&Gt(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&Gt(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&lf(t[0]-1)>1e-10&&lf(t[3]-1)>1e-10?Math.sqrt(lf(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){D1(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||l){var p=i+s,d=n+l;e[4]=-p*a-c*d*o,e[5]=-d*o-v*p*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,u&&Ti(e,e,u),e[4]+=i+f,e[5]+=n+h,e},r.initDefaultProps=function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),r}(),Cr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function D1(r,t){for(var e=0;e<Cr.length;e++){var i=Cr[e];r[i]=t[i]}}var Ed={};function Ae(r,t){t=t||_i;var e=Ed[t];e||(e=Ed[t]=new qo(500));var i=e.get(r);return i==null&&(i=Si.measureText(r,t).width,e.put(r,i)),i}function kd(r,t,e,i){var n=Ae(r,t),a=su(t),o=to(0,n,e),s=$n(0,a,i),l=new ft(o,s,n,a);return l}function Ko(r,t,e,i){var n=((r||"")+"").split(`
  13. `),a=n.length;if(a===1)return kd(n[0],t,e,i);for(var o=new ft(0,0,0,0),s=0;s<n.length;s++){var l=kd(n[s],t,e,i);s===0?o.copy(l):o.union(l)}return o}function to(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function $n(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function su(r){return Ae("国",r)}function nr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Ml(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(i instanceof Array)l+=nr(i[0],e.width),u+=nr(i[1],e.height),f=null,h=null;else switch(i){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var uf="__zr_normal__",ff=Cr.concat(["ignore"]),kA=Ge(Cr,function(r,t){return r[t]=!0,r},{ignore:!1}),En={},OA=new ft(0,0,0,0),lu=function(){function r(t){this.id=lc(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=n?this:null;var u=!1;if(a.copyTransform(e),i.position!=null){var f=OA;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(En,i,f):Ml(En,i,f),a.x=En.x,a.y=En.y,o=En.align,s=En.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=nr(h[0],f.width),v=nr(h[1],f.height)),u=!0,a.originX=-a.x+c+(n?0:f.x),a.originY=-a.y+v+(n?0:f.y)}}i.rotation!=null&&(a.rotation=i.rotation);var p=i.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var d=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=i.insideFill,m=i.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=i.outsideFill,m=i.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=fn,l&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Jh:jh},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&fe(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,rr(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},O(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Z(t))for(var i=t,n=st(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==uf)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,ff)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(uf,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===uf,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ut(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){uc("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||n);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,e,!i&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,i,f),c&&c.useState(t,e,i,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),u}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,t)),f||(f=this.states[u]),f&&n.push(f)}var h=n[o-1],c=!!(h&&h.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(n),p=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&p&&p.duration>0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=ut(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=ut(n,t),o=ut(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n<t.length;n++){var a=t[n];O(e,a),a.textConfig&&(i=i||{},O(i,a.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,n,a,o){var s=!(e&&n);e&&e.textConfig?(this.textConfig=O({},n?this.textConfig:i.textConfig),O(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<ff.length;f++){var h=ff[f],c=a&&kA[h];e&&e[h]!=null?c?(u=!0,l[h]=e[h]):this[h]=e[h]:s&&i[h]!=null&&(c?(u=!0,l[h]=i[h]):this[h]=i[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],p=v.targetName;v.getLoop()||v.__changeFinalValue(p?(e||i)[p]:e||i)}u&&this._transitionState(t,l,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new rn,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),O(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=fn;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var n=t?this[t]:this,a=new _c(n,e,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var a=n.animators,o=ut(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,i){hf(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){hf(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,n){for(var a=hf(this,e,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=fn;function e(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var l=this[n]=[];s(this,l)}return this[n]},set:function(l){this[a]=l[0],this[o]=l[1],this[n]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),r}();Zt(lu,ar);Zt(lu,rn);function hf(r,t,e,i,n){e=e||{};var a=[];L1(r,"",r,t,e,i,a,n);var o=a.length,s=!1,l=e.done,u=e.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&e.during&&a[0].during(function(p,d){e.during(d)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return a}function vf(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function BA(r){return ne(r[0])}function NA(r,t,e){if(ne(t[e]))if(ne(r[e])||(r[e]=[]),he(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),vf(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(BA(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?vf(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else vf(a,n,o);a.length=n.length}else r[e]=t[e]}function zA(r,t){return r===t||ne(r)&&ne(t)&&VA(r,t)}function VA(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(r[i]!==t[i])return!1;return!0}function L1(r,t,e,i,n,a,o,s){for(var l=st(i),u=n.duration,f=n.delay,h=n.additive,c=n.setToFinal,v=!Z(a),p=r.animators,d=[],g=0;g<l.length;g++){var y=l[g],m=i[y];if(m!=null&&e[y]!=null&&(v||a[y]))if(Z(m)&&!ne(m)&&!iu(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}L1(r,y,e[y],m,n,a&&a[y],o,s)}else d.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),d.push(y))}var _=d.length;if(!h&&_)for(var S=0;S<p.length;S++){var b=p[S];if(b.targetName===t){var x=b.stopTracks(d);if(x){var w=ut(p,b);p.splice(w,1)}}}if(n.force||(d=wt(d,function(D){return!zA(i[D],e[D])}),_=d.length),_>0||n.force&&!o.length){var C=void 0,A=void 0,M=void 0;if(s){A={},c&&(C={});for(var S=0;S<_;S++){var y=d[S];A[y]=e[y],c?C[y]=i[y]:e[y]=i[y]}}else if(c){M={};for(var S=0;S<_;S++){var y=d[S];M[y]=fo(e[y]),NA(e,i,y)}}var b=new _c(e,!1,!1,h?wt(p,function(P){return P.targetName===t}):null);b.targetName=t,n.scope&&(b.scope=n.scope),c&&C&&b.whenWithKeys(0,C,d),M&&b.whenWithKeys(0,M,d),b.whenWithKeys(u==null?500:u,s?A:i,d).delay(f||0),r.addAnimator(b,t),o.push(b)}}var nt=function(r){E(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===e)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=ut(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=ut(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n<e.length;n++){var a=e[n];i&&a.removeSelfFromZr(i),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];e.call(i,o,a)}return this},t.prototype.traverse=function(e,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=e.call(i,a);a.isGroup&&!o&&a.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new ft(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var l=n[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(ft.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},t}(lu);nt.prototype.type="group";/*!
  14. * ZRender, a high performance 2d drawing library.
  15. *
  16. * Copyright (c) 2013, Baidu Inc.
  17. * All rights reserved.
  18. *
  19. * LICENSE
  20. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  21. */var ll={},nn={};function FA(r){delete nn[r]}function GA(r){if(!r)return!1;if(typeof r=="string")return Co(r,1)<Kh;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=Co(t[n].color,1);return e/=i,e<Kh}return!1}var HA=function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var a=new jC,o=i.renderer||"canvas";ll[o]||(o=st(ll)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new ll[o](e,a,i,t),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!it.node&&!it.worker&&!l?new IA(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?it.touchEventsSupported:!!f,c=44,v;h&&(v=Q(i.pointerSize,c)),this.handler=new o1(a,s,u,s.root,v),this.animation=new TA({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=GA(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,i=jn();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=jn();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof nt&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.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,FA(this.id))},r}();function Qh(r,t){var e=new HA(lc(),r,t);return nn[e.id]=e,e}function WA(r){r.dispose()}function UA(){for(var r in nn)nn.hasOwnProperty(r)&&nn[r].dispose();nn={}}function YA(r){return nn[r]}function P1(r,t){ll[r]=t}var tv;function I1(r){if(typeof tv=="function")return tv(r)}function R1(r){tv=r}var XA="5.6.1";const ZA=Object.freeze(Object.defineProperty({__proto__:null,dispose:WA,disposeAll:UA,getElementSSRData:I1,getInstance:YA,init:Qh,registerPainter:P1,registerSSRDataGetter:R1,version:XA},Symbol.toStringTag,{value:"Module"}));var $A=1e-4,E1=20;function qA(r){return r.replace(/^\s+|\s+$/g,"")}function Tt(r,t,e,i){var n=t[0],a=t[1],o=e[0],s=e[1],l=a-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(r<=n)return o;if(r>=a)return s}else{if(r>=n)return o;if(r<=a)return s}else{if(r===n)return o;if(r===a)return s}return(r-n)/l*u+o}function J(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return G(r)?qA(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Rt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),E1),r=(+r).toFixed(t),e?r:+r}function Sr(r){return r.sort(function(t,e){return t-e}),r}function xr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return k1(r)}function k1(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,n=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:n-1-a;return Math.max(0,o-i)}function Sc(r,t){var e=Math.log,i=Math.LN10,n=Math.floor(e(r[1]-r[0])/i),a=Math.round(e(Math.abs(t[1]-t[0]))/i),o=Math.min(Math.max(-n+a,0),20);return isFinite(o)?o:20}function KA(r,t,e){if(!r[t])return 0;var i=O1(r,e);return i[t]||0}function O1(r,t){var e=Ge(r,function(v,p){return v+(isNaN(p)?0:p)},0);if(e===0)return[];for(var i=Math.pow(10,t),n=V(r,function(v){return(isNaN(v)?0:v)/e*i*100}),a=i*100,o=V(n,function(v){return Math.floor(v)}),s=Ge(o,function(v,p){return v+p},0),l=V(n,function(v,p){return v-o[p]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,c=l.length;h<c;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return V(o,function(v){return v/i})}function jA(r,t){var e=Math.max(xr(r),xr(t)),i=r+t;return e>E1?i:Rt(i,e)}var JA=9007199254740991;function xc(r){var t=Math.PI*2;return(r%t+t)%t}function Mo(r){return r>-1e-4&&r<$A}var QA=/^(?:(\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 Me(r){if(r instanceof Date)return r;if(G(r)){var t=QA.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function B1(r){return Math.pow(10,uu(r))}function uu(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function bc(r,t){var e=uu(r),i=Math.pow(10,e),n=r/i,a;return t?n<1.5?a=1:n<2.5?a=2:n<4?a=3:n<7?a=5:a=10:n<1?a=1:n<2?a=2:n<3?a=3:n<5?a=5:a=10,r=a*i,e>=-20?+r.toFixed(e<0?-e:0):r}function tM(r,t){var e=(r.length-1)*t+1,i=Math.floor(e),n=+r[i-1],a=e-i;return a?n+a*(r[i]-n):n}function ev(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,i=0;i<r.length;){for(var n=r[i].interval,a=r[i].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,a[o]=o?1:1-e),t=n[o],e=a[o];n[0]===n[1]&&a[0]*a[1]!==1?r.splice(i,1):i++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function Ur(r){var t=parseFloat(r);return t==r&&(t!==0||!G(r)||r.indexOf("x")<=0)?t:NaN}function wc(r){return!isNaN(Ur(r))}function N1(){return Math.round(Math.random()*9)}function z1(r,t){return t===0?r:z1(t,r%t)}function Od(r,t){return r==null?t:t==null?r:r*t/z1(r,t)}function ue(r){throw new Error(r)}function Bd(r,t,e){return(t-r)*e+r}var V1="series\0",F1="\0_ec_\0";function Mt(r){return r instanceof Array?r:r==null?[]:[r]}function Dl(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var i=0,n=e.length;i<n;i++){var a=e[i];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var Nd=["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 ya(r){return Z(r)&&!z(r)&&!(r instanceof Date)?r.value:r}function eM(r){return Z(r)&&!(r instanceof Array)}function G1(r,t,e){var i=e==="normalMerge",n=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Y();T(t,function(l,u){if(!Z(l)){t[u]=null;return}});var s=rM(r,o,e);return(i||n)&&iM(s,r,o,t),i&&nM(s,t),i||n?aM(s,t,n):a&&oM(s,t),sM(s),s}function rM(r,t,e){var i=[];if(e==="replaceAll")return i;for(var n=0;n<r.length;n++){var a=r[n];a&&a.id!=null&&t.set(a.id,n),i.push({existing:e==="replaceMerge"||Do(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return i}function iM(r,t,e,i){T(i,function(n,a){if(!(!n||n.id==null)){var o=ho(n.id),s=e.get(o);if(s!=null){var l=r[s];ve(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],i[a]=null}}})}function nM(r,t){T(t,function(e,i){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var a=r[n].existing;if(!r[n].newOption&&a&&(a.id==null||e.id==null)&&!Do(e)&&!Do(a)&&H1("name",a,e)){r[n].newOption=e,t[i]=null;return}}})}function aM(r,t,e){T(t,function(i){if(i){for(var n,a=0;(n=r[a])&&(n.newOption||Do(n.existing)||n.existing&&i.id!=null&&!H1("id",i,n.existing));)a++;n?(n.newOption=i,n.brandNew=e):r.push({newOption:i,brandNew:e,existing:null,keyInfo:null}),a++}})}function oM(r,t){T(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function sM(r){var t=Y();T(r,function(e){var i=e.existing;i&&t.set(i.id,e)}),T(r,function(e){var i=e.newOption;ve(!i||i.id==null||!t.get(i.id)||t.get(i.id)===e,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&t.set(i.id,e),!e.keyInfo&&(e.keyInfo={})}),T(r,function(e,i){var n=e.existing,a=e.newOption,o=e.keyInfo;if(Z(a)){if(o.name=a.name!=null?ho(a.name):n?n.name:V1+i,n)o.id=ho(n.id);else if(a.id!=null)o.id=ho(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function H1(r,t,e){var i=ee(t[r],null),n=ee(e[r],null);return i!=null&&n!=null&&i===n}function ho(r){return ee(r,"")}function ee(r,t){return r==null?t:G(r)?r:yt(r)||_l(r)?r+"":t}function Tc(r){var t=r.name;return!!(t&&t.indexOf(V1))}function Do(r){return r&&r.id!=null&&ho(r.id).indexOf(F1)===0}function lM(r){return F1+r}function uM(r,t,e){T(r,function(i){var n=i.newOption;Z(n)&&(i.keyInfo.mainType=t,i.keyInfo.subType=fM(t,n,i.existing,e))})}function fM(r,t,e,i){var n=t.type?t.type:e?e.subType:i.determineSubType(r,t);return n}function hM(r,t){var e={},i={};return n(r||[],e),n(t||[],i,e),[a(e),a(i)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var h=ee(o[u].seriesId,null);if(h==null)return;for(var c=Mt(o[u].dataIndex),v=l&&l[h],p=0,d=c.length;p<d;p++){var g=c[p];v&&v[g]?v[g]=null:(s[h]||(s[h]={}))[g]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=a(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function _n(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return z(t.dataIndex)?V(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return z(t.name)?V(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function xt(){var r="__ec_inner_"+vM++;return function(t){return t[r]||(t[r]={})}}var vM=N1();function vo(r,t,e){var i=Cc(t,e),n=i.mainTypeSpecified,a=i.queryOptionMap,o=i.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&a.set(l,{}),a.each(function(u,f){var h=jo(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function Cc(r,t){var e;if(G(r)){var i={};i[r+"Index"]=0,e=i}else e=r;var n=Y(),a={},o=!1;return T(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&ut(t.includeMainTypes,f)<0)){o=o||!!f;var c=n.get(f)||n.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:a}}var Bt={useDefault:!0,enableAll:!1,enableNone:!1},cM={useDefault:!1,enableAll:!0,enableNone:!0};function jo(r,t,e,i){i=i||Bt;var n=e.index,a=e.id,o=e.name,s={models:null,specified:n!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(t))?[l]:[],s}return n==="none"||n===!1?(ve(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(n==="all"&&(ve(i.enableAll,'`"all"` is not a valid value on index option.'),n=a=o=null),s.models=r.queryComponents({mainType:t,index:n,id:a,name:o}),s)}function W1(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function pM(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function dM(r){return r==="auto"?it.domSupported?"html":"richText":r||"html"}function rF(r,t){var e=Y(),i=[];return T(r,function(n){var a=t(n);(e.get(a)||(i.push(a),e.set(a,[]))).push(n)}),{keys:i,buckets:e}}function U1(r,t,e,i,n){var a=t==null||t==="auto";if(i==null)return i;if(yt(i)){var o=Bd(e||0,i,n);return Rt(o,a?Math.max(xr(e||0),xr(i)):t)}else{if(G(i))return n<1?e:i;for(var s=[],l=e,u=i,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var c=r.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(n<1&&l?l:u)[h];else{var v=l&&l[h]?l[h]:0,p=u[h],o=Bd(v,p,n);s[h]=Rt(o,a?Math.max(xr(v),xr(p)):t)}}return s}}var gM=".",Ei="___EC__COMPONENT__CONTAINER___",Y1="___EC__EXTENDED_CLASS___";function br(r){var t={main:"",sub:""};if(r){var e=r.split(gM);t.main=e[0]||"",t.sub=e[1]||""}return t}function yM(r){ve(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function mM(r){return!!(r&&r[Y1])}function Ac(r,t){r.$constructor=r,r.extend=function(e){var i=this,n;return _M(i)?n=function(a){E(o,a);function o(){return a.apply(this,arguments)||this}return o}(i):(n=function(){(e.$constructor||i).apply(this,arguments)},fc(n,this)),O(n.prototype,e),n[Y1]=!0,n.extend=this.extend,n.superCall=bM,n.superApply=wM,n.superClass=i,n}}function _M(r){return j(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function X1(r,t){r.extend=t.extend}var SM=Math.round(Math.random()*10);function xM(r){var t=["__\0is_clz",SM++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function bM(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(r,e)}function wM(r,t,e){return this.superClass.prototype[t].apply(r,e)}function fu(r){var t={};r.registerClass=function(i){var n=i.type||i.prototype.type;if(n){yM(n),i.prototype.type=n;var a=br(n);if(!a.sub)t[a.main]=i;else if(a.sub!==Ei){var o=e(a);o[a.sub]=i}}return i},r.getClass=function(i,n,a){var o=t[i];if(o&&o[Ei]&&(o=n?o[n]:null),a&&!o)throw new Error(n?"Component "+i+"."+(n||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var n=br(i),a=[],o=t[n.main];return o&&o[Ei]?T(o,function(s,l){l!==Ei&&a.push(s)}):a.push(o),a},r.hasClass=function(i){var n=br(i);return!!t[n.main]},r.getAllClassMainTypes=function(){var i=[];return T(t,function(n,a){i.push(a)}),i},r.hasSubTypes=function(i){var n=br(i),a=t[n.main];return a&&a[Ei]};function e(i){var n=t[i.main];return(!n||!n[Ei])&&(n=t[i.main]={},n[Ei]=!0),n}}function oa(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(i,n,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&ut(n,l)>=0||a&&ut(a,l)<0)){var u=i.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var TM=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],CM=oa(TM),AM=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return CM(this,t,e)},r}(),rv=new qo(50);function MM(r){if(typeof r=="string"){var t=rv.get(r);return t&&t.image}else return r}function Mc(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=rv.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!hu(t)&&a.pending.push(o)):(t=Si.loadImage(r,zd,zd),t.__zrImageSrc=r,rv.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function zd(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function hu(r){return r&&r.width&&r.height}var cf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function DM(r,t,e,i,n){var a={};return Z1(a,r,t,e,i,n),a.text}function Z1(r,t,e,i,n,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
  22. `);a=$1(e,i,n,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)q1(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
  23. `),r.isTruncated=s}function $1(r,t,e,i){i=i||{};var n=O({},i);n.font=t,e=Q(e,"..."),n.maxIterations=Q(i.maxIterations,2);var a=n.minChar=Q(i.minChar,0);n.cnCharWidth=Ae("国",t);var o=n.ascCharWidth=Ae("a",t);n.placeholder=Q(i.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=Ae(e,t);return u>s&&(e="",u=0),s=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function q1(r,t,e){var i=e.containerWidth,n=e.font,a=e.contentWidth;if(!i){r.textLine="",r.isTruncated=!1;return}var o=Ae(t,n);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var l=s===0?LM(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=Ae(t,n)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function LM(r,t,e,i){for(var n=0,a=0,o=r.length;a<o&&n<t;a++){var s=r.charCodeAt(a);n+=0<=s&&s<=127?e:i}return a}function PM(r,t){r!=null&&(r+="");var e=t.overflow,i=t.padding,n=t.font,a=e==="truncate",o=su(n),s=Q(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=!1,h=t.width,c;h!=null&&(e==="break"||e==="breakAll")?c=r?K1(r,t.font,h,e==="breakAll",0).lines:[]:c=r?r.split(`
  24. `):[];var v=c.length*s,p=Q(t.height,v);if(v>p&&u){var d=Math.floor(p/s);f=f||c.length>d,c=c.slice(0,d)}if(r&&a&&h!=null)for(var g=$1(h,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},m=0;m<c.length;m++)q1(y,c[m],g),c[m]=y.textLine,f=f||y.isTruncated;for(var _=p,S=0,m=0;m<c.length;m++)S=Math.max(Ae(c[m],n),S);h==null&&(h=S);var b=S;return i&&(_+=i[0]+i[2],b+=i[1]+i[3],h+=i[1]+i[3]),l&&(b=h),{lines:c,height:p,outerWidth:b,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:v,width:h,isTruncated:f}}var IM=function(){function r(){}return r}(),Vd=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),RM=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r}();function EM(r,t){var e=new RM;if(r!=null&&(r+=""),!r)return e;for(var i=t.width,n=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:a==="breakAll"}:null,s=cf.lastIndex=0,l;(l=cf.exec(r))!=null;){var u=l.index;u>s&&pf(e,r.substring(s,u),t,o),pf(e,l[2],t,o,l[1]),s=cf.lastIndex}s<r.length&&pf(e,r.substring(s,r.length),t,o);var f=[],h=0,c=0,v=t.padding,p=a==="truncate",d=t.lineOverflow==="truncate",g={};function y(H,$,X){H.width=$,H.lineHeight=X,h+=X,c=Math.max(c,$)}t:for(var m=0;m<e.lines.length;m++){for(var _=e.lines[m],S=0,b=0,x=0;x<_.tokens.length;x++){var w=_.tokens[x],C=w.styleName&&t.rich[w.styleName]||{},A=w.textPadding=C.padding,M=A?A[1]+A[3]:0,D=w.font=C.font||t.font;w.contentHeight=su(D);var P=Q(C.height,w.contentHeight);if(w.innerHeight=P,A&&(P+=A[0]+A[2]),w.height=P,w.lineHeight=Qn(C.lineHeight,t.lineHeight,P),w.align=C&&C.align||t.align,w.verticalAlign=C&&C.verticalAlign||"middle",d&&n!=null&&h+w.lineHeight>n){var L=e.lines.length;x>0?(_.tokens=_.tokens.slice(0,x),y(_,b,S),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m),e.isTruncated=e.isTruncated||e.lines.length<L;break t}var I=C.width,R=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")w.percentWidth=I,f.push(w),w.contentWidth=Ae(w.text,D);else{if(R){var k=C.backgroundColor,F=k&&k.image;F&&(F=MM(F),hu(F)&&(w.width=Math.max(w.width,F.width*P/F.height)))}var B=p&&i!=null?i-b:null;B!=null&&B<w.width?!R||B<M?(w.text="",w.width=w.contentWidth=0):(Z1(g,w.text,B-M,D,t.ellipsis,{minChar:t.truncateMinChar}),w.text=g.text,e.isTruncated=e.isTruncated||g.isTruncated,w.width=w.contentWidth=Ae(w.text,D)):w.contentWidth=Ae(w.text,D)}w.width+=M,b+=w.width,C&&(S=Math.max(S,w.lineHeight))}y(_,b,S)}e.outerWidth=e.width=Q(i,c),e.outerHeight=e.height=Q(n,h),e.contentHeight=h,e.contentWidth=c,v&&(e.outerWidth+=v[1]+v[3],e.outerHeight+=v[0]+v[2]);for(var m=0;m<f.length;m++){var w=f[m],N=w.percentWidth;w.width=parseInt(N,10)/100*e.width}return e}function pf(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,l=o.font||e.font,u=!1,f,h;if(i){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var p=nr(o.width,i.width)+v;s.length>0&&p+i.accumWidth>i.width&&(f=t.split(`
  25. `),u=!0),i.accumWidth=p}else{var d=K1(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+v,h=d.linesWidths,f=d.lines}}else f=t.split(`
  26. `);for(var g=0;g<f.length;g++){var y=f[g],m=new IM;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:Ae(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new Vd)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||a)&&_.push(m)}else s.push(new Vd([m]))}}function kM(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var OM=Ge(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function BM(r){return kM(r)?!!OM[r]:!0}function K1(r,t,e,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var c=r.charAt(h);if(c===`
  27. `){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=Ae(c,t),p=i?!1:!BM(c);if(a.length?f+v>e:n+f+v>e){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=c,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=c,f=v)):p?(a.push(l),o.push(u),l=c,u=v):(a.push(c),o.push(v));continue}f+=v,p?(l+=c,u+=v):(l&&(s+=l,l="",u=0),s+=c)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}var iv="__zr_style_"+Math.round(Math.random()*10),vn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},vu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};vn[iv]=!0;var Fd=["z","z2","invisible"],NM=["invisible"],Yr=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=st(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&zM(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new ft(0,0,0,0)),i?ft.applyTransform(e,n,i):e.copy(n),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new ft(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:O(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=il,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&il)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return Zo(vn,e)},t.prototype.useStyle=function(e){e[iv]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[iv]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,Fd)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.style?o?a?u=i.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(u,i.style)):l&&(u=n.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=st(f),c=0;c<h.length;c++){var v=h[c];v in u&&(u[v]=u[v],this.style[v]=f[v])}for(var p=st(u),c=0;c<p.length;c++){var v=p[c];this.style[v]=this.style[v]}this._transitionState(e,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var d=this.__inHover?NM:Fd,c=0;c<d.length;c++){var v=d[c];i&&i[v]!=null?this[v]=i[v]:l&&n[v]!=null&&(this[v]=n[v])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,i){return O(e,i),e},t.prototype.getAnimationStyleProps=function(){return vu},t.initDefaultProps=function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=fn|il}(),t}(lu),df=new ft(0,0,0,0),gf=new ft(0,0,0,0);function zM(r,t,e){return df.copy(r.getBoundingRect()),r.transform&&df.applyTransform(r.transform),gf.width=t,gf.height=e,!df.intersect(gf)}var _e=Math.min,Se=Math.max,yf=Math.sin,mf=Math.cos,ki=Math.PI*2,_s=wn(),Ss=wn(),xs=wn();function iF(r,t,e){if(r.length!==0){for(var i=r[0],n=i[0],a=i[0],o=i[1],s=i[1],l=1;l<r.length;l++)i=r[l],n=_e(n,i[0]),a=Se(a,i[0]),o=_e(o,i[1]),s=Se(s,i[1]);t[0]=n,t[1]=o,e[0]=a,e[1]=s}}function Gd(r,t,e,i,n,a){n[0]=_e(r,e),n[1]=_e(t,i),a[0]=Se(r,e),a[1]=Se(t,i)}var Hd=[],Wd=[];function VM(r,t,e,i,n,a,o,s,l,u){var f=v1,h=Ot,c=f(r,e,n,o,Hd);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var p=h(r,e,n,o,Hd[v]);l[0]=_e(p,l[0]),u[0]=Se(p,u[0])}c=f(t,i,a,s,Wd);for(var v=0;v<c;v++){var d=h(t,i,a,s,Wd[v]);l[1]=_e(d,l[1]),u[1]=Se(d,u[1])}l[0]=_e(r,l[0]),u[0]=Se(r,u[0]),l[0]=_e(o,l[0]),u[0]=Se(o,u[0]),l[1]=_e(t,l[1]),u[1]=Se(t,u[1]),l[1]=_e(s,l[1]),u[1]=Se(s,u[1])}function FM(r,t,e,i,n,a,o,s){var l=p1,u=Jt,f=Se(_e(l(r,e,n),1),0),h=Se(_e(l(t,i,a),1),0),c=u(r,e,n,f),v=u(t,i,a,h);o[0]=_e(r,n,c),o[1]=_e(t,a,v),s[0]=Se(r,n,c),s[1]=Se(t,a,v)}function GM(r,t,e,i,n,a,o,s,l){var u=Br,f=Nr,h=Math.abs(n-a);if(h%ki<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-i,l[0]=r+e,l[1]=t+i;return}if(_s[0]=mf(n)*e+r,_s[1]=yf(n)*i+t,Ss[0]=mf(a)*e+r,Ss[1]=yf(a)*i+t,u(s,_s,Ss),f(l,_s,Ss),n=n%ki,n<0&&(n=n+ki),a=a%ki,a<0&&(a=a+ki),n>a&&!o?a+=ki:n<a&&o&&(n+=ki),o){var c=a;a=n,n=c}for(var v=0;v<a;v+=Math.PI/2)v>n&&(xs[0]=mf(v)*e+r,xs[1]=yf(v)*i+t,u(s,xs,s),f(l,xs,l))}var _t={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Oi=[],Bi=[],hr=[],Qr=[],vr=[],cr=[],_f=Math.min,Sf=Math.max,Ni=Math.cos,zi=Math.sin,Ir=Math.abs,nv=Math.PI,si=nv*2,xf=typeof Float32Array!="undefined",Pa=[];function bf(r){var t=Math.round(r/nv*1e8)/1e8;return t%2*nv}function j1(r,t){var e=bf(r[0]);e<0&&(e+=si);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=si?n=e+si:t&&e-n>=si?n=e-si:!t&&e>n?n=e+(si-bf(e-n)):t&&e<n&&(n=e-(si-bf(n-e))),r[0]=e,r[1]=n}var Xr=function(){function r(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 r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=Ir(i/Id/t)||0,this._uy=Ir(i/Id/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(_t.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=Ir(t-this._xi),n=Ir(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(_t.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(_t.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(_t.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),Pa[0]=n,Pa[1]=a,j1(Pa,o),n=Pa[0],a=Pa[1];var s=a-n;return this.addData(_t.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=Ni(a)*i+t,this._yi=zi(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(_t.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(_t.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&xf&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();xf&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},r.prototype.addData=function(t,e,i,n,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.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}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,xf&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){hr[0]=hr[1]=vr[0]=vr[1]=Number.MAX_VALUE,Qr[0]=Qr[1]=cr[0]=cr[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(e=t[o],i=t[o+1],n=e,a=i),s){case _t.M:e=n=t[o++],i=a=t[o++],vr[0]=n,vr[1]=a,cr[0]=n,cr[1]=a;break;case _t.L:Gd(e,i,t[o],t[o+1],vr,cr),e=t[o++],i=t[o++];break;case _t.C:VM(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],vr,cr),e=t[o++],i=t[o++];break;case _t.Q:FM(e,i,t[o++],t[o++],t[o],t[o+1],vr,cr),e=t[o++],i=t[o++];break;case _t.A:var u=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],p=t[o++]+v;o+=1;var d=!t[o++];l&&(n=Ni(v)*h+u,a=zi(v)*c+f),GM(u,f,h,c,v,p,d,vr,cr),e=Ni(p)*h+u,i=zi(p)*c+f;break;case _t.R:n=e=t[o++],a=i=t[o++];var g=t[o++],y=t[o++];Gd(n,a,n+g,a+y,vr,cr);break;case _t.Z:e=n,i=a;break}Br(hr,hr,vr),Nr(Qr,Qr,cr)}return o===0&&(hr[0]=hr[1]=Qr[0]=Qr[1]=0),new ft(hr[0],hr[1],Qr[0]-hr[0],Qr[1]-hr[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,c=0;c<e;){var v=t[c++],p=c===1;p&&(a=t[c],o=t[c+1],s=a,l=o);var d=-1;switch(v){case _t.M:a=s=t[c++],o=l=t[c++];break;case _t.L:{var g=t[c++],y=t[c++],m=g-a,_=y-o;(Ir(m)>i||Ir(_)>n||c===e-1)&&(d=Math.sqrt(m*m+_*_),a=g,o=y);break}case _t.C:{var S=t[c++],b=t[c++],g=t[c++],y=t[c++],x=t[c++],w=t[c++];d=JC(a,o,S,b,g,y,x,w,10),a=x,o=w;break}case _t.Q:{var S=t[c++],b=t[c++],g=t[c++],y=t[c++];d=tA(a,o,S,b,g,y,10),a=g,o=y;break}case _t.A:var C=t[c++],A=t[c++],M=t[c++],D=t[c++],P=t[c++],L=t[c++],I=L+P;c+=1,p&&(s=Ni(P)*M+C,l=zi(P)*D+A),d=Sf(M,D)*_f(si,Math.abs(L)),a=Ni(I)*M+C,o=zi(I)*D+A;break;case _t.R:{s=a=t[c++],l=o=t[c++];var R=t[c++],k=t[c++];d=R*2+k*2;break}case _t.Z:{var m=s-a,_=l-o;d=Math.sqrt(m*m+_*_),a=s,o=l;break}}d>=0&&(u[h++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,l,u,f,h,c,v=e<1,p,d,g=0,y=0,m,_=0,S,b;if(!(v&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=e*d,!m)))t:for(var x=0;x<o;){var w=i[x++],C=x===1;switch(C&&(u=i[x],f=i[x+1],s=u,l=f),w!==_t.L&&_>0&&(t.lineTo(S,b),_=0),w){case _t.M:s=u=i[x++],l=f=i[x++],t.moveTo(u,f);break;case _t.L:{h=i[x++],c=i[x++];var A=Ir(h-u),M=Ir(c-f);if(A>n||M>a){if(v){var D=p[y++];if(g+D>m){var P=(m-g)/D;t.lineTo(u*(1-P)+h*P,f*(1-P)+c*P);break t}g+=D}t.lineTo(h,c),u=h,f=c,_=0}else{var L=A*A+M*M;L>_&&(S=h,b=c,_=L)}break}case _t.C:{var I=i[x++],R=i[x++],k=i[x++],F=i[x++],B=i[x++],N=i[x++];if(v){var D=p[y++];if(g+D>m){var P=(m-g)/D;wl(u,I,k,B,P,Oi),wl(f,R,F,N,P,Bi),t.bezierCurveTo(Oi[1],Bi[1],Oi[2],Bi[2],Oi[3],Bi[3]);break t}g+=D}t.bezierCurveTo(I,R,k,F,B,N),u=B,f=N;break}case _t.Q:{var I=i[x++],R=i[x++],k=i[x++],F=i[x++];if(v){var D=p[y++];if(g+D>m){var P=(m-g)/D;Tl(u,I,k,P,Oi),Tl(f,R,F,P,Bi),t.quadraticCurveTo(Oi[1],Bi[1],Oi[2],Bi[2]);break t}g+=D}t.quadraticCurveTo(I,R,k,F),u=k,f=F;break}case _t.A:var H=i[x++],$=i[x++],X=i[x++],lt=i[x++],ct=i[x++],mt=i[x++],$t=i[x++],pe=!i[x++],Vt=X>lt?X:lt,Lt=Ir(X-lt)>.001,At=ct+mt,tt=!1;if(v){var D=p[y++];g+D>m&&(At=ct+mt*(m-g)/D,tt=!0),g+=D}if(Lt&&t.ellipse?t.ellipse(H,$,X,lt,$t,ct,At,pe):t.arc(H,$,Vt,ct,At,pe),tt)break t;C&&(s=Ni(ct)*X+H,l=zi(ct)*lt+$),u=Ni(At)*X+H,f=zi(At)*lt+$;break;case _t.R:s=u=i[x],l=f=i[x+1],h=i[x++],c=i[x++];var ht=i[x++],de=i[x++];if(v){var D=p[y++];if(g+D>m){var Pt=m-g;t.moveTo(h,c),t.lineTo(h+_f(Pt,ht),c),Pt-=ht,Pt>0&&t.lineTo(h+ht,c+_f(Pt,de)),Pt-=de,Pt>0&&t.lineTo(h+Sf(ht-Pt,0),c+de),Pt-=ht,Pt>0&&t.lineTo(h,c+Sf(de-Pt,0));break t}g+=D}t.rect(h,c,ht,de);break;case _t.Z:if(v){var D=p[y++];if(g+D>m){var P=(m-g)/D;t.lineTo(u*(1-P)+s*P,f*(1-P)+l*P);break t}g+=D}t.closePath(),u=s,f=l}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=_t,r.initDefaultProps=function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),r}();function kn(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,l=0,u=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)l=(t-i)/(r-e),u=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function HM(r,t,e,i,n,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>t+h&&f>i+h&&f>a+h&&f>s+h||f<t-h&&f<i-h&&f<a-h&&f<s-h||u>r+h&&u>e+h&&u>n+h&&u>o+h||u<r-h&&u<e-h&&u<n-h&&u<o-h)return!1;var c=c1(r,t,e,i,n,a,o,s,u,f,null);return c<=h/2}function WM(r,t,e,i,n,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>i+u&&l>a+u||l<t-u&&l<i-u&&l<a-u||s>r+u&&s>e+u&&s>n+u||s<r-u&&s<e-u&&s<n-u)return!1;var f=d1(r,t,e,i,n,a,s,l,null);return f<=u/2}var Ud=Math.PI*2;function vi(r){return r%=Ud,r<0&&(r+=Ud),r}var Ia=Math.PI*2;function UM(r,t,e,i,n,a,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=t;var f=Math.sqrt(s*s+l*l);if(f-u>e||f+u<e)return!1;if(Math.abs(i-n)%Ia<1e-4)return!0;if(a){var h=i;i=vi(n),n=vi(h)}else i=vi(i),n=vi(n);i>n&&(n+=Ia);var c=Math.atan2(l,s);return c<0&&(c+=Ia),c>=i&&c<=n||c+Ia>=i&&c+Ia<=n}function Or(r,t,e,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var l=o*(e-r)+r;return l===n?1/0:l>n?s:0}var ti=Xr.CMD,Vi=Math.PI*2,YM=1e-4;function XM(r,t){return Math.abs(r-t)<YM}var oe=[-1,-1,-1],Oe=[-1,-1];function ZM(){var r=Oe[0];Oe[0]=Oe[1],Oe[1]=r}function $M(r,t,e,i,n,a,o,s,l,u){if(u>t&&u>i&&u>a&&u>s||u<t&&u<i&&u<a&&u<s)return 0;var f=bl(t,i,a,s,u,oe);if(f===0)return 0;for(var h=0,c=-1,v=void 0,p=void 0,d=0;d<f;d++){var g=oe[d],y=g===0||g===1?.5:1,m=Ot(r,e,n,o,g);m<l||(c<0&&(c=v1(t,i,a,s,Oe),Oe[1]<Oe[0]&&c>1&&ZM(),v=Ot(t,i,a,s,Oe[0]),c>1&&(p=Ot(t,i,a,s,Oe[1]))),c===2?g<Oe[0]?h+=v<t?y:-y:g<Oe[1]?h+=p<v?y:-y:h+=s<p?y:-y:g<Oe[0]?h+=v<t?y:-y:h+=s<v?y:-y)}return h}function qM(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var l=QC(t,i,a,s,oe);if(l===0)return 0;var u=p1(t,i,a);if(u>=0&&u<=1){for(var f=0,h=Jt(t,i,a,u),c=0;c<l;c++){var v=oe[c]===0||oe[c]===1?.5:1,p=Jt(r,e,n,oe[c]);p<o||(oe[c]<u?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=oe[0]===0||oe[0]===1?.5:1,p=Jt(r,e,n,oe[0]);return p<o?0:a<t?v:-v}}function KM(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);oe[0]=-l,oe[1]=l;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=Vi-1e-4){i=0,n=Vi;var f=a?1:-1;return o>=oe[0]+r&&o<=oe[1]+r?f:0}if(i>n){var h=i;i=n,n=h}i<0&&(i+=Vi,n+=Vi);for(var c=0,v=0;v<2;v++){var p=oe[v];if(p+r>o){var d=Math.atan2(s,p),f=a?1:-1;d<0&&(d=Vi+d),(d>=i&&d<=n||d+Vi>=i&&d+Vi<=n)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),c+=f)}}return c}function J1(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,c,v,p=0;p<o;){var d=a[p++],g=p===1;switch(d===ti.M&&p>1&&(e||(s+=Or(l,u,f,h,i,n))),g&&(l=a[p],u=a[p+1],f=l,h=u),d){case ti.M:f=a[p++],h=a[p++],l=f,u=h;break;case ti.L:if(e){if(kn(l,u,a[p],a[p+1],t,i,n))return!0}else s+=Or(l,u,a[p],a[p+1],i,n)||0;l=a[p++],u=a[p++];break;case ti.C:if(e){if(HM(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],t,i,n))return!0}else s+=$M(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],i,n)||0;l=a[p++],u=a[p++];break;case ti.Q:if(e){if(WM(l,u,a[p++],a[p++],a[p],a[p+1],t,i,n))return!0}else s+=qM(l,u,a[p++],a[p++],a[p],a[p+1],i,n)||0;l=a[p++],u=a[p++];break;case ti.A:var y=a[p++],m=a[p++],_=a[p++],S=a[p++],b=a[p++],x=a[p++];p+=1;var w=!!(1-a[p++]);c=Math.cos(b)*_+y,v=Math.sin(b)*S+m,g?(f=c,h=v):s+=Or(l,u,c,v,i,n);var C=(i-y)*S/_+y;if(e){if(UM(y,m,S,b,b+x,w,t,C,n))return!0}else s+=KM(y,m,S,b,b+x,w,C,n);l=Math.cos(b+x)*_+y,u=Math.sin(b+x)*S+m;break;case ti.R:f=l=a[p++],h=u=a[p++];var A=a[p++],M=a[p++];if(c=f+A,v=h+M,e){if(kn(f,h,c,h,t,i,n)||kn(c,h,c,v,t,i,n)||kn(c,v,f,v,t,i,n)||kn(f,v,f,h,t,i,n))return!0}else s+=Or(c,h,c,v,i,n),s+=Or(f,v,f,h,i,n);break;case ti.Z:if(e){if(kn(l,u,f,h,t,i,n))return!0}else s+=Or(l,u,f,h,i,n);l=f,u=h;break}}return!e&&!XM(u,h)&&(s+=Or(l,u,f,h,i,n)||0),s!==0}function jM(r,t,e){return J1(r,0,!1,t,e)}function JM(r,t,e,i){return J1(r,t,!0,e,i)}var Ll=K({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},vn),QM={style:K({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},vu.style)},wf=Cr.concat(["invisible","culling","z","z2","zlevel","parent"]),gt=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(l){e.buildPath(l,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<wf.length;++s)n[wf[s]]=this[wf[s]];n.__dirty|=fn}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=st(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=e[o];o==="style"?this.style?O(this.style,s):this.useStyle(s):o==="shape"?O(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(G(e)){var i=Co(e,0);return i>.5?jh:i>.2?RA:Jh}else if(e)return Jh}return jh},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(G(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Co(e,0)<Kh;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Xr(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Ja)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),JM(s,l/u,e,i)))return!0}if(this.hasFill())return jM(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Ja,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:O(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Ja)},t.prototype.createStyle=function(e){return Zo(Ll,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=O({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=O({},n.shape),O(u,i.shape)):(u=O({},a?this.shape:n.shape),O(u,i.shape)):l&&(u=n.shape),u)if(o){this.shape=O({},this.shape);for(var f={},h=st(u),c=0;c<h.length;c++){var v=h[c];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(e,{shape:f},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return QM},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=function(a){E(o,a);function o(s){var l=a.call(this,s)||this;return e.init&&e.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return q(e.style)},o.prototype.getDefaultShape=function(){return q(e.shape)},o}(t);for(var n in e)typeof e[n]=="function"&&(i.prototype[n]=e[n]);return i},t.initDefaultProps=function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=fn|il|Ja}(),t}(Yr),tD=K({strokeFirst:!0,font:_i,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ll),sa=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return i!=null&&i!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return Zo(tD,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var i=e.text;i!=null?i+="":i="";var n=Ko(i,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(Yr);sa.prototype.type="tspan";var eD=K({x:0,y:0},vn),rD={style:K({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},vu.style)};function iD(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var ae=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Zo(eD,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=iD(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return rD},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ft(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Yr);ae.prototype.type="image";function nD(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,l,u,f;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>n&&(h=s+l,s*=n/h,l*=n/h),u+f>n&&(h=u+f,u*=n/h,f*=n/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,i),r.lineTo(e+n-l,i),l!==0&&r.arc(e+n-l,i+l,l,-Math.PI/2,0),r.lineTo(e+n,i+a-u),u!==0&&r.arc(e+n-u,i+a-u,u,0,Math.PI/2),r.lineTo(e+f,i+a),f!==0&&r.arc(e+f,i+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5)}var Jn=Math.round;function Q1(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Jn(i*2)===Jn(n*2)&&(r.x1=r.x2=an(i,s,!0)),Jn(a*2)===Jn(o*2)&&(r.y1=r.y2=an(a,s,!0))),r}}function tS(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=an(i,s,!0),r.y=an(n,s,!0),r.width=Math.max(an(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(an(n+o,s,!1)-r.y,o===0?0:1)),r}}function an(r,t,e){if(!t)return r;var i=Jn(r*2);return(i+Jn(t))%2===0?i/2:(i+(e?1:-1))/2}var aD=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),oD={},pt=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new aD},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=tS(oD,i,this.style);n=l.x,a=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?nD(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(gt);pt.prototype.type="rect";var Yd={fill:"#000"},Xd=2,sD={style:K({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},vu.style)},dt=function(r){E(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Yd,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,fD(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new ft(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(n);u?(e.copy(l),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||l.clone(),a.union(l))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Yd},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return O(e,i),n&&a?(this._mergeRich(a,n),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,i){for(var n=st(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},O(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return sD},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||_i,n=e.padding,a=Qd(e),o=PM(a,e),s=Tf(e),l=!!e.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,p=this._defaultStyle;this.isTruncated=!!o.isTruncated;var d=e.x||0,g=e.y||0,y=e.align||p.align||"left",m=e.verticalAlign||p.verticalAlign||"top",_=d,S=$n(g,o.contentHeight,m);if(s||n){var b=to(d,f,y),x=$n(g,u,m);s&&this._renderBackground(e,e,b,x,f,u)}S+=v/2,n&&(_=Jd(d,y,n),m==="top"?S+=n[0]:m==="bottom"&&(S-=n[2]));for(var w=0,C=!1,A=jd("fill"in e?e.fill:(C=!0,p.fill)),M=Kd("stroke"in e?e.stroke:!l&&(!p.autoStroke||C)?(w=Xd,p.stroke):null),D=e.textShadowBlur>0,P=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,I=0;I<c.length;I++){var R=this._getOrCreateChild(sa),k=R.createStyle();R.useStyle(k),k.text=c[I],k.x=_,k.y=S,k.textAlign=y,k.textBaseline="middle",k.opacity=e.opacity,k.strokeFirst=!0,D&&(k.shadowBlur=e.textShadowBlur||0,k.shadowColor=e.textShadowColor||"transparent",k.shadowOffsetX=e.textShadowOffsetX||0,k.shadowOffsetY=e.textShadowOffsetY||0),k.stroke=M,k.fill=A,M&&(k.lineWidth=e.lineWidth||w,k.lineDash=e.lineDash,k.lineDashOffset=e.lineDashOffset||0),k.font=i,$d(k,e),S+=v,P&&R.setBoundingRect(new ft(to(k.x,h,k.textAlign),$n(k.y,L,k.textBaseline),h,L))}},t.prototype._updateRichTexts=function(){var e=this.style,i=Qd(e),n=EM(i,e),a=n.width,o=n.outerWidth,s=n.outerHeight,l=e.padding,u=e.x||0,f=e.y||0,h=this._defaultStyle,c=e.align||h.align,v=e.verticalAlign||h.verticalAlign;this.isTruncated=!!n.isTruncated;var p=to(u,o,c),d=$n(f,s,v),g=p,y=d;l&&(g+=l[3],y+=l[0]);var m=g+a;Tf(e)&&this._renderBackground(e,e,p,d,o,s);for(var _=!!e.backgroundColor,S=0;S<n.lines.length;S++){for(var b=n.lines[S],x=b.tokens,w=x.length,C=b.lineHeight,A=b.width,M=0,D=g,P=m,L=w-1,I=void 0;M<w&&(I=x[M],!I.align||I.align==="left");)this._placeToken(I,e,C,y,D,"left",_),A-=I.width,D+=I.width,M++;for(;L>=0&&(I=x[L],I.align==="right");)this._placeToken(I,e,C,y,P,"right",_),A-=I.width,P-=I.width,L--;for(D+=(a-(D-g)-(m-P)-A)/2;M<=L;)I=x[M],this._placeToken(I,e,C,y,D+I.width/2,"center",_),D+=I.width,M++;y+=C}},t.prototype._placeToken=function(e,i,n,a,o,s,l){var u=i.rich[e.styleName]||{};u.text=e.text;var f=e.verticalAlign,h=a+n/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+n-e.height/2);var c=!e.isLineHolder&&Tf(u);c&&this._renderBackground(u,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!u.backgroundColor,p=e.textPadding;p&&(o=Jd(o,s,p),h-=e.height/2-p[0]-e.innerHeight/2);var d=this._getOrCreateChild(sa),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=jd("fill"in u?u.fill:"fill"in i?i.fill:(m=!0,y.fill)),b=Kd("stroke"in u?u.stroke:"stroke"in i?i.stroke:!v&&!l&&(!y.autoStroke||m)?(_=Xd,y.stroke):null),x=u.textShadowBlur>0||i.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,g.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||_i,g.opacity=Qn(u.opacity,i.opacity,1),$d(g,u),b&&(g.lineWidth=Qn(u.lineWidth,i.lineWidth,_),g.lineDash=Q(u.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=b),S&&(g.fill=S);var w=e.contentWidth,C=e.contentHeight;d.setBoundingRect(new ft(to(g.x,w,g.textAlign),$n(g.y,C,g.textBaseline),w,C))},t.prototype._renderBackground=function(e,i,n,a,o,s){var l=e.backgroundColor,u=e.borderWidth,f=e.borderColor,h=l&&l.image,c=l&&!h,v=e.borderRadius,p=this,d,g;if(c||e.lineHeight||u&&f){d=this._getOrCreateChild(pt),d.useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=n,y.y=a,y.width=o,y.height=s,y.r=v,d.dirtyShape()}if(c){var m=d.style;m.fill=l||null,m.fillOpacity=Q(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(ae),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=n,_.y=a,_.width=o,_.height=s}if(u&&f){var m=d.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=Q(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(d||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Qn(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return rS(e)&&(i=[e.fontStyle,e.fontWeight,eS(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Fe(i)||e.textFont||e.font},t}(Yr),lD={left:!0,right:1,center:1},uD={top:1,bottom:1,middle:1},Zd=["fontStyle","fontWeight","fontSize","fontFamily"];function eS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?ac+"px":r+"px"}function $d(r,t){for(var e=0;e<Zd.length;e++){var i=Zd[e],n=t[i];n!=null&&(r[i]=n)}}function rS(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function fD(r){return qd(r),T(r.rich,qd),r}function qd(r){if(r){r.font=dt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||lD[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||uD[e]?e:"top";var i=r.padding;i&&(r.padding=hc(r.padding))}}function Kd(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function jd(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Jd(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function Qd(r){var t=r.text;return t!=null&&(t+=""),t}function Tf(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var at=xt(),hD=function(r,t,e,i){if(i){var n=at(i);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",i.type==="group"&&i.traverse(function(a){var o=at(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},tg=1,eg={},iS=xt(),Dc=xt(),Lc=0,cu=1,pu=2,He=["emphasis","blur","select"],Pl=["normal","emphasis","blur","select"],nS=10,vD=9,cn="highlight",ul="downplay",co="select",fl="unselect",po="toggleSelect";function On(r){return r!=null&&r!=="none"}function du(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function aS(r){du(r,"emphasis",pu)}function oS(r){r.hoverState===pu&&du(r,"normal",Lc)}function Pc(r){du(r,"blur",cu)}function sS(r){r.hoverState===cu&&du(r,"normal",Lc)}function cD(r){r.selected=!0}function pD(r){r.selected=!1}function rg(r,t,e){t(r,e)}function qr(r,t,e){rg(r,t,e),r.isGroup&&r.traverse(function(i){rg(i,t,e)})}function av(r,t){switch(t){case"emphasis":r.hoverState=pu;break;case"normal":r.hoverState=Lc;break;case"blur":r.hoverState=cu;break;case"select":r.selected=!0}}function dD(r,t,e,i){for(var n=r.style,a={},o=0;o<t.length;o++){var s=t[o],l=n[s];a[s]=l==null?i&&i[s]:l}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function gD(r,t,e,i){var n=e&&ut(e,"select")>=0,a=!1;if(r instanceof gt){var o=iS(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(On(s)||On(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(a=!0,i=O({},i),u=O({},u),u.fill=s):!On(u.fill)&&On(s)?(a=!0,i=O({},i),u=O({},u),u.fill=Cl(s)):!On(u.stroke)&&On(l)&&(a||(i=O({},i),u=O({},u)),u.stroke=Cl(l)),i.style=u}}if(i&&i.z2==null){a||(i=O({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f!=null?f:nS)}return i}function yD(r,t,e){if(e&&e.z2==null){e=O({},e);var i=r.z2SelectLift;e.z2=r.z2+(i!=null?i:vD)}return e}function mD(r,t,e){var i=ut(r.currentStates,t)>=0,n=r.style.opacity,a=i?null:dD(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=O({},e),o=O({opacity:i?n:a.opacity*.1},o),e.style=o),e}function Cf(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return gD(this,r,t,e);if(r==="blur")return mD(this,r,e);if(r==="select")return yD(this,r,e)}return e}function Ic(r){r.stateProxy=Cf;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Cf),e&&(e.stateProxy=Cf)}function ig(r,t){!hS(r,t)&&!r.__highByOuter&&qr(r,aS)}function ng(r,t){!hS(r,t)&&!r.__highByOuter&&qr(r,oS)}function la(r,t){r.__highByOuter|=1<<(t||0),qr(r,aS)}function ua(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&qr(r,oS)}function _D(r){qr(r,Pc)}function lS(r){qr(r,sS)}function uS(r){qr(r,cD)}function fS(r){qr(r,pD)}function hS(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function vS(r){var t=r.getModel(),e=[],i=[];t.eachComponent(function(n,a){var o=Dc(a),s=n==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&i.push(l),o.isBlured&&(l.group.traverse(function(u){sS(u)}),s&&e.push(a)),o.isBlured=!1}),T(i,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function ov(r,t,e,i){var n=i.getModel();e=e||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var c=u.getItemGraphicEl(f[h]);c&&lS(c)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];n.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!c||t==="series"&&f)){var v=i.getViewOfSeriesModel(u);if(v.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||Pc(g)}),ne(t))a(u.getData(),t);else if(Z(t))for(var p=st(t),d=0;d<p.length;d++)a(u.getData(p[d]),t[p[d]]);l.push(u),Dc(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var h=i.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,n)}})}}function sv(r,t,e){if(!(r==null||t==null)){var i=e.getModel().getComponent(r,t);if(i){Dc(i).isBlured=!0;var n=e.getViewOfComponentModel(i);!n||!n.focusBlurEnabled||n.group.traverse(function(a){Pc(a)})}}}function SD(r,t,e){var i=r.seriesIndex,n=r.getData(t.dataType);if(n){var a=_n(n,t);a=(z(a)?a[0]:a)||0;var o=n.getItemGraphicEl(a);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=at(o);ov(i,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&ov(i,f,h,e)}}}function Rc(r,t,e,i){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var a=i.getModel().getComponent(r,t);if(!a)return n;var o=i.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(at(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function xD(r,t,e){var i=at(r),n=Rc(i.componentMainType,i.componentIndex,i.componentHighDownName,e),a=n.dispatchers,o=n.focusSelf;a?(o&&sv(i.componentMainType,i.componentIndex,e),T(a,function(s){return ig(s,t)})):(ov(i.seriesIndex,i.focus,i.blurScope,e),i.focus==="self"&&sv(i.componentMainType,i.componentIndex,e),ig(r,t))}function bD(r,t,e){vS(e);var i=at(r),n=Rc(i.componentMainType,i.componentIndex,i.componentHighDownName,e).dispatchers;n?T(n,function(a){return ng(a,t)}):ng(r,t)}function wD(r,t,e){if(uv(t)){var i=t.dataType,n=r.getData(i),a=_n(n,t);z(a)||(a=[a]),r[t.type===po?"toggleSelect":t.type===co?"select":"unselect"](a,i)}}function ag(r){var t=r.getAllData();T(t,function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(a,o){r.isSelected(o,n)?uS(a):fS(a)})})}function TD(r){var t=[];return r.eachSeries(function(e){var i=e.getAllData();T(i,function(n){n.data;var a=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function gi(r,t,e){Ec(r,!0),qr(r,Ic),AD(r,t,e)}function CD(r){Ec(r,!1)}function xi(r,t,e,i){i?CD(r):gi(r,t,e)}function AD(r,t,e){var i=at(r);t!=null?(i.focus=t,i.blurScope=e):i.focus&&(i.focus=null)}var og=["emphasis","blur","select"],MD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function fa(r,t,e,i){e=e||"itemStyle";for(var n=0;n<og.length;n++){var a=og[n],o=t.getModel([a,e]),s=r.ensureState(a);s.style=i?i(o):o[MD[e]]()}}function Ec(r,t){var e=t===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function lv(r){return!!(r&&r.__highDownDispatcher)}function DD(r,t,e){var i=at(r);i.componentMainType=t.mainType,i.componentIndex=t.componentIndex,i.componentHighDownName=e}function LD(r){var t=eg[r];return t==null&&tg<=32&&(t=eg[r]=tg++),t}function uv(r){var t=r.type;return t===co||t===fl||t===po}function sg(r){var t=r.type;return t===cn||t===ul}function PD(r){var t=iS(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var Bn=Xr.CMD,ID=[[],[],[]],lg=Math.sqrt,RD=Math.atan2;function cS(r,t){if(t){var e=r.data,i=r.len(),n,a,o,s,l,u,f=Bn.M,h=Bn.C,c=Bn.L,v=Bn.R,p=Bn.A,d=Bn.Q;for(o=0,s=0;o<i;){switch(n=e[o++],s=o,a=0,n){case f:a=1;break;case c:a=1;break;case h:a=3;break;case d:a=2;break;case p:var g=t[4],y=t[5],m=lg(t[0]*t[0]+t[1]*t[1]),_=lg(t[2]*t[2]+t[3]*t[3]),S=RD(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case v:u[0]=e[o++],u[1]=e[o++],Gt(u,u,t),e[s++]=u[0],e[s++]=u[1],u[0]+=e[o++],u[1]+=e[o++],Gt(u,u,t),e[s++]=u[0],e[s++]=u[1]}for(l=0;l<a;l++){var b=ID[l];b[0]=e[o++],b[1]=e[o++],Gt(b,b,t),e[s++]=b[0],e[s++]=b[1]}}r.increaseVersion()}}var Af=Math.sqrt,bs=Math.sin,ws=Math.cos,Ra=Math.PI;function ug(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function fv(r,t){return(r[0]*t[0]+r[1]*t[1])/(ug(r)*ug(t))}function fg(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(fv(r,t))}function hg(r,t,e,i,n,a,o,s,l,u,f){var h=l*(Ra/180),c=ws(h)*(r-e)/2+bs(h)*(t-i)/2,v=-1*bs(h)*(r-e)/2+ws(h)*(t-i)/2,p=c*c/(o*o)+v*v/(s*s);p>1&&(o*=Af(p),s*=Af(p));var d=(n===a?-1:1)*Af((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,g=d*o*v/s,y=d*-s*c/o,m=(r+e)/2+ws(h)*g-bs(h)*y,_=(t+i)/2+bs(h)*g+ws(h)*y,S=fg([1,0],[(c-g)/o,(v-y)/s]),b=[(c-g)/o,(v-y)/s],x=[(-1*c-g)/o,(-1*v-y)/s],w=fg(b,x);if(fv(b,x)<=-1&&(w=Ra),fv(b,x)>=1&&(w=0),w<0){var C=Math.round(w/Ra*1e6)/1e6;w=Ra*2+C%2*Ra}f.addData(u,m,_,o,s,S,w,h,a)}var ED=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,kD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function OD(r){var t=new Xr;if(!r)return t;var e=0,i=0,n=e,a=i,o,s=Xr.CMD,l=r.match(ED);if(!l)return t;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),c=void 0,v=f.match(kD)||[],p=v.length,d=0;d<p;d++)v[d]=parseFloat(v[d]);for(var g=0;g<p;){var y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,C=e,A=i,M=void 0,D=void 0;switch(h){case"l":e+=v[g++],i+=v[g++],c=s.L,t.addData(c,e,i);break;case"L":e=v[g++],i=v[g++],c=s.L,t.addData(c,e,i);break;case"m":e+=v[g++],i+=v[g++],c=s.M,t.addData(c,e,i),n=e,a=i,h="l";break;case"M":e=v[g++],i=v[g++],c=s.M,t.addData(c,e,i),n=e,a=i,h="L";break;case"h":e+=v[g++],c=s.L,t.addData(c,e,i);break;case"H":e=v[g++],c=s.L,t.addData(c,e,i);break;case"v":i+=v[g++],c=s.L,t.addData(c,e,i);break;case"V":i=v[g++],c=s.L,t.addData(c,e,i);break;case"C":c=s.C,t.addData(c,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),e=v[g-2],i=v[g-1];break;case"c":c=s.C,t.addData(c,v[g++]+e,v[g++]+i,v[g++]+e,v[g++]+i,v[g++]+e,v[g++]+i),e+=v[g-2],i+=v[g-1];break;case"S":y=e,m=i,M=t.len(),D=t.data,o===s.C&&(y+=e-D[M-4],m+=i-D[M-3]),c=s.C,C=v[g++],A=v[g++],e=v[g++],i=v[g++],t.addData(c,y,m,C,A,e,i);break;case"s":y=e,m=i,M=t.len(),D=t.data,o===s.C&&(y+=e-D[M-4],m+=i-D[M-3]),c=s.C,C=e+v[g++],A=i+v[g++],e+=v[g++],i+=v[g++],t.addData(c,y,m,C,A,e,i);break;case"Q":C=v[g++],A=v[g++],e=v[g++],i=v[g++],c=s.Q,t.addData(c,C,A,e,i);break;case"q":C=v[g++]+e,A=v[g++]+i,e+=v[g++],i+=v[g++],c=s.Q,t.addData(c,C,A,e,i);break;case"T":y=e,m=i,M=t.len(),D=t.data,o===s.Q&&(y+=e-D[M-4],m+=i-D[M-3]),e=v[g++],i=v[g++],c=s.Q,t.addData(c,y,m,e,i);break;case"t":y=e,m=i,M=t.len(),D=t.data,o===s.Q&&(y+=e-D[M-4],m+=i-D[M-3]),e+=v[g++],i+=v[g++],c=s.Q,t.addData(c,y,m,e,i);break;case"A":_=v[g++],S=v[g++],b=v[g++],x=v[g++],w=v[g++],C=e,A=i,e=v[g++],i=v[g++],c=s.A,hg(C,A,e,i,x,w,_,S,b,c,t);break;case"a":_=v[g++],S=v[g++],b=v[g++],x=v[g++],w=v[g++],C=e,A=i,e+=v[g++],i+=v[g++],c=s.A,hg(C,A,e,i,x,w,_,S,b,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),e=n,i=a),o=c}return t.toStatic(),t}var pS=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t}(gt);function dS(r){return r.setData!=null}function gS(r,t){var e=OD(r),i=O({},t);return i.buildPath=function(n){if(dS(n)){n.setData(e.data);var a=n.getContext();a&&n.rebuildPath(a,1)}else{var a=n;e.rebuildPath(a,1)}},i.applyTransform=function(n){cS(e,n),this.dirtyShape()},i}function yS(r,t){return new pS(gS(r,t))}function BD(r,t){var e=gS(r,t),i=function(n){E(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a}(pS);return i}function ND(r,t){for(var e=[],i=r.length,n=0;n<i;n++){var a=r[n];e.push(a.getUpdatedPathProxy(!0))}var o=new gt(t);return o.createPathProxy(),o.buildPath=function(s){if(dS(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function nF(r,t){t=t||{};var e=new gt;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?cS(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var zD=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),Mr=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new zD},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t}(gt);Mr.prototype.type="circle";var VD=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),Jo=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new VD},t.prototype.buildPath=function(e,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*n,f=l*n;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),e.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),e.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),e.closePath()},t}(gt);Jo.prototype.type="ellipse";var mS=Math.PI,Mf=mS*2,Fi=Math.sin,Nn=Math.cos,FD=Math.acos,qt=Math.atan2,vg=Math.abs,go=Math.sqrt,eo=Math.max,pr=Math.min,qe=1e-4;function GD(r,t,e,i,n,a,o,s){var l=e-r,u=i-t,f=o-n,h=s-a,c=h*l-f*u;if(!(c*c<qe))return c=(f*(t-a)-h*(r-n))/c,[r+c*l,t+c*u]}function Ts(r,t,e,i,n,a,o){var s=r-e,l=t-i,u=(o?a:-a)/go(s*s+l*l),f=u*l,h=-u*s,c=r+f,v=t+h,p=e+f,d=i+h,g=(c+p)/2,y=(v+d)/2,m=p-c,_=d-v,S=m*m+_*_,b=n-a,x=c*d-p*v,w=(_<0?-1:1)*go(eo(0,b*b*S-x*x)),C=(x*_-m*w)/S,A=(-x*m-_*w)/S,M=(x*_+m*w)/S,D=(-x*m+_*w)/S,P=C-g,L=A-y,I=M-g,R=D-y;return P*P+L*L>I*I+R*R&&(C=M,A=D),{cx:C,cy:A,x0:-f,y0:-h,x1:C*(n/b-1),y1:A*(n/b-1)}}function HD(r){var t;if(z(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function WD(r,t){var e,i=eo(t.r,0),n=eo(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=vg(u-l),p=v>Mf&&v%Mf;if(p>qe&&(v=p),!(i>qe))r.moveTo(f,h);else if(v>Mf-qe)r.moveTo(f+i*Nn(l),h+i*Fi(l)),r.arc(f,h,i,l,u,!c),n>qe&&(r.moveTo(f+n*Nn(u),h+n*Fi(u)),r.arc(f,h,n,u,l,c));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0,w=void 0,C=void 0,A=void 0,M=void 0,D=void 0,P=void 0,L=void 0,I=void 0,R=i*Nn(l),k=i*Fi(l),F=n*Nn(u),B=n*Fi(u),N=v>qe;if(N){var H=t.cornerRadius;H&&(e=HD(H),d=e[0],g=e[1],y=e[2],m=e[3]);var $=vg(i-n)/2;if(_=pr($,y),S=pr($,m),b=pr($,d),x=pr($,g),A=w=eo(_,S),M=C=eo(b,x),(w>qe||C>qe)&&(D=i*Nn(u),P=i*Fi(u),L=n*Nn(l),I=n*Fi(l),v<mS)){var X=GD(R,k,L,I,D,P,F,B);if(X){var lt=R-X[0],ct=k-X[1],mt=D-X[0],$t=P-X[1],pe=1/Fi(FD((lt*mt+ct*$t)/(go(lt*lt+ct*ct)*go(mt*mt+$t*$t)))/2),Vt=go(X[0]*X[0]+X[1]*X[1]);A=pr(w,(i-Vt)/(pe+1)),M=pr(C,(n-Vt)/(pe-1))}}}if(!N)r.moveTo(f+R,h+k);else if(A>qe){var Lt=pr(y,A),At=pr(m,A),tt=Ts(L,I,R,k,i,Lt,c),ht=Ts(D,P,F,B,i,At,c);r.moveTo(f+tt.cx+tt.x0,h+tt.cy+tt.y0),A<w&&Lt===At?r.arc(f+tt.cx,h+tt.cy,A,qt(tt.y0,tt.x0),qt(ht.y0,ht.x0),!c):(Lt>0&&r.arc(f+tt.cx,h+tt.cy,Lt,qt(tt.y0,tt.x0),qt(tt.y1,tt.x1),!c),r.arc(f,h,i,qt(tt.cy+tt.y1,tt.cx+tt.x1),qt(ht.cy+ht.y1,ht.cx+ht.x1),!c),At>0&&r.arc(f+ht.cx,h+ht.cy,At,qt(ht.y1,ht.x1),qt(ht.y0,ht.x0),!c))}else r.moveTo(f+R,h+k),r.arc(f,h,i,l,u,!c);if(!(n>qe)||!N)r.lineTo(f+F,h+B);else if(M>qe){var Lt=pr(d,M),At=pr(g,M),tt=Ts(F,B,D,P,n,-At,c),ht=Ts(R,k,L,I,n,-Lt,c);r.lineTo(f+tt.cx+tt.x0,h+tt.cy+tt.y0),M<C&&Lt===At?r.arc(f+tt.cx,h+tt.cy,M,qt(tt.y0,tt.x0),qt(ht.y0,ht.x0),!c):(At>0&&r.arc(f+tt.cx,h+tt.cy,At,qt(tt.y0,tt.x0),qt(tt.y1,tt.x1),!c),r.arc(f,h,n,qt(tt.cy+tt.y1,tt.cx+tt.x1),qt(ht.cy+ht.y1,ht.cx+ht.x1),c),Lt>0&&r.arc(f+ht.cx,h+ht.cy,Lt,qt(ht.y1,ht.x1),qt(ht.y0,ht.x0),!c))}else r.lineTo(f+F,h+B),r.arc(f,h,n,u,l,c)}r.closePath()}}}var UD=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r}(),or=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new UD},t.prototype.buildPath=function(e,i){WD(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(gt);or.prototype.type="sector";var YD=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),ma=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new YD},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.PI*2;e.moveTo(n+i.r,a),e.arc(n,a,i.r,0,o,!1),e.moveTo(n+i.r0,a),e.arc(n,a,i.r0,0,o,!0)},t}(gt);ma.prototype.type="ring";function XD(r,t,e,i){var n=[],a=[],o=[],s=[],l,u,f,h;if(i){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)Br(f,f,r[c]),Nr(h,h,r[c]);Br(f,f,i[0]),Nr(h,h,i[1])}for(var c=0,v=r.length;c<v;c++){var p=r[c];if(e)l=r[c?c-1:v-1],u=r[(c+1)%v];else if(c===0||c===v-1){n.push(t1(r[c]));continue}else l=r[c-1],u=r[c+1];e1(a,u,l),tl(a,a,t);var d=Sl(p,l),g=Sl(p,u),y=d+g;y!==0&&(d/=y,g/=y),tl(o,a,-d),tl(s,a,g);var m=Oh([],p,o),_=Oh([],p,s);i&&(Nr(m,m,f),Br(m,m,h),Nr(_,_,f),Br(_,_,h)),n.push(m),n.push(_)}return e&&n.push(n.shift()),n}function _S(r,t,e){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=XD(n,i,e,t.smoothConstraint);r.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(e?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=n[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(n[0][0],n[0][1]);for(var s=1,h=n.length;s<h;s++)r.lineTo(n[s][0],n[s][1])}e&&r.closePath()}}var ZD=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),sr=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new ZD},t.prototype.buildPath=function(e,i){_S(e,i,!0)},t}(gt);sr.prototype.type="polygon";var $D=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),De=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new $D},t.prototype.buildPath=function(e,i){_S(e,i,!1)},t}(gt);De.prototype.type="polyline";var qD={},KD=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),re=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new KD},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var l=Q1(qD,i,this.style);n=l.x1,a=l.y1,o=l.x2,s=l.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(e.moveTo(n,a),u<1&&(o=n*(1-u)+o*u,s=a*(1-u)+s*u),e.lineTo(o,s))},t.prototype.pointAt=function(e){var i=this.shape;return[i.x1*(1-e)+i.x2*e,i.y1*(1-e)+i.y2*e]},t}(gt);re.prototype.type="line";var ye=[],jD=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r}();function cg(r,t,e){var i=r.cpx2,n=r.cpy2;return i!=null||n!=null?[(e?xd:Ot)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?xd:Ot)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?bd:Jt)(r.x1,r.cpx1,r.x2,t),(e?bd:Jt)(r.y1,r.cpy1,r.y2,t)]}var gu=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new jD},t.prototype.buildPath=function(e,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,h=i.cpy2,c=i.percent;c!==0&&(e.moveTo(n,a),f==null||h==null?(c<1&&(Tl(n,l,o,c,ye),l=ye[1],o=ye[2],Tl(a,u,s,c,ye),u=ye[1],s=ye[2]),e.quadraticCurveTo(l,u,o,s)):(c<1&&(wl(n,l,f,o,c,ye),l=ye[1],f=ye[2],o=ye[3],wl(a,u,h,s,c,ye),u=ye[1],h=ye[2],s=ye[3]),e.bezierCurveTo(l,u,f,h,o,s)))},t.prototype.pointAt=function(e){return cg(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=cg(this.shape,e,!0);return r1(i,i)},t}(gt);gu.prototype.type="bezier-curve";var JD=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),Qo=function(r){E(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new JD},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+n,h*o+a),e.arc(n,a,o,s,l,!u)},t}(gt);Qo.prototype.type="arc";var yu=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),n=0;n<e.length;n++)i=i||e[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(i[0],i[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(e,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),gt.prototype.getBoundingRect.call(this)},t}(gt),SS=function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r}(),ts=function(r){E(t,r);function t(e,i,n,a,o,s){var l=r.call(this,o)||this;return l.x=e==null?0:e,l.y=i==null?0:i,l.x2=n==null?1:n,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return t}(SS),kc=function(r){E(t,r);function t(e,i,n,a,o){var s=r.call(this,a)||this;return s.x=e==null?.5:e,s.y=i==null?.5:i,s.r=n==null?.5:n,s.type="radial",s.global=o||!1,s}return t}(SS),Gi=[0,0],Hi=[0,0],Cs=new rt,As=new rt,Il=function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new rt;for(var i=0;i<2;i++)this._axes[i]=new rt;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,l),i[3].set(a,l),e)for(var u=0;u<4;u++)i[u].transform(e);rt.sub(n[0],i[1],i[0]),rt.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var u=0;u<2;u++)this._origin[u]=n[u].dot(i[0])},r.prototype.intersect=function(t,e){var i=!0,n=!e;return Cs.set(1/0,1/0),As.set(0,0),!this._intersectCheckOneSide(this,t,Cs,As,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,Cs,As,n,-1)&&(i=!1,n)||n||rt.copy(e,i?Cs:As),i},r.prototype._intersectCheckOneSide=function(t,e,i,n,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Gi),this._getProjMinMaxOnAxis(l,e._corners,Hi),Gi[1]<Hi[0]||Gi[0]>Hi[1]){if(s=!1,a)return s;var f=Math.abs(Hi[0]-Gi[1]),h=Math.abs(Gi[0]-Hi[1]);Math.min(f,h)>n.len()&&(f<h?rt.scale(n,u,-f*o):rt.scale(n,u,h*o))}else if(i){var f=Math.abs(Hi[0]-Gi[1]),h=Math.abs(Gi[0]-Hi[1]);Math.min(f,h)<i.len()&&(f<h?rt.scale(i,u,f*o):rt.scale(i,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],a=this._origin,o=e[0].dot(n)+a[t],s=o,l=o,u=1;u<e.length;u++){var f=e[u].dot(n)+a[t];s=Math.min(f,s),l=Math.max(f,l)}i[0]=s,i[1]=l},r}(),QD=[],xS=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,i){i?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,i){i=i||!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var i=this._cursor;i<this._displayables.length;i++)e&&e(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)e&&e(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var i=this._displayables[e];i.parent=this,i.update(),i.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var i=this._temporaryDisplayables[e];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new ft(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(QD)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(e,i))return!0}return!1},t}(Yr),bS=xt();function Oc(r,t,e,i,n){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;i?(u=Q(i.duration,200),f=Q(i.easing,"cubicOut"),h=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),h=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),j(h)&&(h=h(e,n)),j(u)&&(u=u(e));var c={duration:u||0,delay:h,easing:f};return c}else return null}function Bc(r,t,e,i,n,a,o){var s=!1,l;j(n)?(o=a,a=n,n=null):Z(n)&&(a=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=Oc(r,i,n,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,p={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,p):t.animateTo(e,p)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function Dt(r,t,e,i,n,a){Bc("update",r,t,e,i,n,a)}function ie(r,t,e,i,n,a){Bc("enter",r,t,e,i,n,a)}function yo(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Lo(r,t,e,i,n,a){yo(r)||Bc("leave",r,t,e,i,n,a)}function pg(r,t,e,i){r.removeTextContent(),r.removeTextGuideLine(),Lo(r,{style:{opacity:0}},t,e,i)}function Rl(r,t,e){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||pg(n,t,e,i)}):pg(r,t,e,i)}function Po(r){bS(r).oldStyle=r.style}function aF(r){return bS(r).oldStyle}var El=Math.max,kl=Math.min,hv={};function wS(r){return gt.extend(r)}var t2=BD;function TS(r,t){return t2(r,t)}function We(r,t){hv[r]=t}function Nc(r){if(hv.hasOwnProperty(r))return hv[r]}function mu(r,t,e,i){var n=yS(r,t);return e&&(i==="center"&&(e=CS(e,n.getBoundingRect())),Vc(n,e)),n}function zc(r,t,e){var i=new ae({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var a={width:n.width,height:n.height};i.setStyle(CS(t,a))}}});return i}function CS(r,t){var e=t.width/t.height,i=r.height*e,n;i<=r.width?n=r.height:(i=r.width,n=i/e);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-i/2,y:o-n/2,width:i,height:n}}var ze=ND;function Vc(r,t){if(r.applyTransform){var e=r.getBoundingRect(),i=e.calculateTransform(t);r.applyTransform(i)}}function Io(r,t){return Q1(r,r,{lineWidth:t}),r}function e2(r){return tS(r.shape,r.shape,r.style),r}var r2=an;function yi(r,t){for(var e=$o([]);r&&r!==t;)Tr(e,r.getLocalTransform(),e),r=r.parent;return e}function ir(r,t,e){return t&&!ne(t)&&(t=rn.getLocalTransform(t)),e&&(t=Tn([],t)),Gt([],r,t)}function _u(r,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[r==="left"?-i:r==="right"?i:0,r==="top"?-n:r==="bottom"?n:0];return a=ir(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function dg(r){return!r.isGroup}function i2(r){return r.shape!=null}function Su(r,t,e){if(!r||!t)return;function i(o){var s={};return o.traverse(function(l){dg(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return i2(o)&&(s.shape=O({},o.shape)),s}var a=i(r);t.traverse(function(o){if(dg(o)&&o.anid){var s=a[o.anid];if(s){var l=n(o);o.attr(n(s)),Dt(o,l,e,at(o).dataIndex)}}})}function Fc(r,t){return V(r,function(e){var i=e[0];i=El(i,t.x),i=kl(i,t.x+t.width);var n=e[1];return n=El(n,t.y),n=kl(n,t.y+t.height),[i,n]})}function AS(r,t){var e=El(r.x,t.x),i=kl(r.x+r.width,t.x+t.width),n=El(r.y,t.y),a=kl(r.y+r.height,t.y+t.height);if(i>=e&&a>=n)return{x:e,y:n,width:i-e,height:a-n}}function _a(r,t,e){var i=O({rectHover:!0},t),n=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),K(n,e),new ae(i)):mu(r.replace("path://",""),i,e,"center")}function n2(r,t,e,i,n){for(var a=0,o=n[n.length-1];a<n.length;a++){var s=n[a];if(MS(r,t,e,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function MS(r,t,e,i,n,a,o,s){var l=e-r,u=i-t,f=o-n,h=s-a,c=Df(f,h,l,u);if(a2(c))return!1;var v=r-n,p=t-a,d=Df(v,p,l,u)/c;if(d<0||d>1)return!1;var g=Df(v,p,f,h)/c;return!(g<0||g>1)}function Df(r,t,e,i){return r*i-e*t}function a2(r){return r<=1e-6&&r>=-1e-6}function Cn(r){var t=r.itemTooltipOption,e=r.componentModel,i=r.itemName,n=G(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:i,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&T(st(l),function(f){W(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=at(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:i,option:K({content:i,encodeHTMLContent:!0,formatterParams:s},n)}}function gg(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function xu(r,t){if(r)if(z(r))for(var e=0;e<r.length;e++)gg(r[e],t);else gg(r,t)}We("circle",Mr);We("ellipse",Jo);We("sector",or);We("ring",ma);We("polygon",sr);We("polyline",De);We("rect",pt);We("line",re);We("bezierCurve",gu);We("arc",Qo);const Sa=Object.freeze(Object.defineProperty({__proto__:null,Arc:Qo,BezierCurve:gu,BoundingRect:ft,Circle:Mr,CompoundPath:yu,Ellipse:Jo,Group:nt,Image:ae,IncrementalDisplayable:xS,Line:re,LinearGradient:ts,OrientedBoundingRect:Il,Path:gt,Point:rt,Polygon:sr,Polyline:De,RadialGradient:kc,Rect:pt,Ring:ma,Sector:or,Text:dt,applyTransform:ir,clipPointsByRect:Fc,clipRectByRect:AS,createIcon:_a,extendPath:TS,extendShape:wS,getShapeClass:Nc,getTransform:yi,groupTransition:Su,initProps:ie,isElementRemoved:yo,lineLineIntersect:MS,linePolygonIntersect:n2,makeImage:zc,makePath:mu,mergePath:ze,registerShape:We,removeElement:Lo,removeElementWithFadeOut:Rl,resizePath:Vc,setTooltipConfig:Cn,subPixelOptimize:r2,subPixelOptimizeLine:Io,subPixelOptimizeRect:e2,transformDirection:_u,traverseElements:xu,updateProps:Dt},Symbol.toStringTag,{value:"Module"}));var bu={};function DS(r,t){for(var e=0;e<He.length;e++){var i=He[e],n=t[i],a=r.ensureState(i);a.style=a.style||{},a.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function vv(r,t,e){var i=r.labelFetcher,n=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;i&&(s=i.getFormattedLabel(n,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=j(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<He.length;u++){var f=He[u],h=t[f];l[f]=Q(i?i.getFormattedLabel(n,f,null,a,h&&h.get("formatter")):null,s)}return l}function Kr(r,t,e,i){e=e||bu;for(var n=r instanceof dt,a=!1,o=0;o<Pl.length;o++){var s=t[Pl[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=n?r:r.getTextContent();if(a){n||(l||(l=new dt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=vv(e,t),f=t.normal,h=!!f.getShallow("show"),c=kt(f,i&&i.normal,e,!1,!n);c.text=u.normal,n||r.setTextConfig(yg(f,e,!1));for(var o=0;o<He.length;o++){var v=He[o],s=t[v];if(s){var p=l.ensureState(v),d=!!Q(s.getShallow("show"),h);if(d!==h&&(p.ignore=!d),p.style=kt(s,i&&i[v],e,!0,!n),p.style.text=u[v],!n){var g=r.ensureState(v);g.textConfig=yg(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!h,l.useStyle(c),l.dirty(),e.enableTextSetter&&(es(l).setLabelText=function(y){var m=vv(e,t,y);DS(l,m)})}else l&&(l.ignore=!0);r.dirty()}function jr(r,t){t=t||"label";for(var e={normal:r.getModel(t)},i=0;i<He.length;i++){var n=He[i];e[n]=r.getModel([n,t])}return e}function kt(r,t,e,i,n){var a={};return o2(a,r,e,i,n),t&&O(a,t),a}function yg(r,t,e){t=t||{};var i={},n,a=r.getShallow("rotate"),o=Q(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(i.position=n),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",i}function o2(r,t,e,i,n){e=e||bu;var a=t.ecModel,o=a&&a.option.textStyle,s=s2(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=t.getModel(["rich",u]);xg(l[u]={},f,o,e,i,n,!1,!0)}}l&&(r.rich=l);var h=t.get("overflow");h&&(r.overflow=h);var c=t.get("minMargin");c!=null&&(r.margin=c),xg(r,t,o,e,i,n,!0,!1)}function s2(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||bu).rich;if(e){t=t||{};for(var i=st(e),n=0;n<i.length;n++){var a=i[n];t[a]=1}}r=r.parentModel}return t}var mg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],_g=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Sg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function xg(r,t,e,i,n,a,o,s){e=!n&&e||bu;var l=i&&i.inheritColor,u=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=Q(t.getShallow("opacity"),e.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||e.color,f=f||e.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var c=Q(t.getShallow("textBorderWidth"),e.textBorderWidth);c!=null&&(r.lineWidth=c);var v=Q(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var p=Q(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);p!=null&&(r.lineDashOffset=p),!n&&h==null&&!s&&(h=i&&i.defaultOpacity),h!=null&&(r.opacity=h),!n&&!a&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var d=0;d<mg.length;d++){var g=mg[d],y=Q(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var d=0;d<_g.length;d++){var g=_g[d],y=t.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!i.disableBox){for(var d=0;d<Sg.length;d++){var g=Sg[d],y=t.getShallow(g);y!=null&&(r[g]=y)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function LS(r,t){var e=t&&t.getModel("textStyle");return Fe([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var es=xt();function l2(r,t,e,i){if(r){var n=es(r);n.prevValue=n.value,n.value=e;var a=t.normal;n.valueAnimation=a.get("valueAnimation"),n.valueAnimation&&(n.precision=a.get("precision"),n.defaultInterpolatedText=i,n.statesModels=t)}}function oF(r,t,e,i,n){var a=es(r);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Q(a.interpolatedValue,a.prevValue),l=a.value;function u(f){var h=U1(e,a.precision,s,l,f);a.interpolatedValue=f===1?null:h;var c=vv({labelDataIndex:t,labelFetcher:n,defaultText:o?o(h):h+""},a.statesModels,h);DS(r,c)}r.percent=0,(a.prevValue==null?ie:Dt)(r,{percent:1},i,t,null,u)}var u2=["textStyle","color"],Lf=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Pf=new dt,f2=function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(u2):null)},r.prototype.getFont=function(){return LS({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<Lf.length;i++)e[Lf[i]]=this.getShallow(Lf[i]);return Pf.useStyle(e),Pf.update(),Pf.getBoundingRect()},r}(),PS=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],h2=oa(PS),v2=function(){function r(){}return r.prototype.getLineStyle=function(t){return h2(this,t)},r}(),IS=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],c2=oa(IS),p2=function(){function r(){}return r.prototype.getItemStyle=function(t,e){return c2(this,t,e)},r}(),St=function(){function r(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return r.prototype.init=function(t,e,i){},r.prototype.mergeOption=function(t,e){et(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var i=this.option,n=i==null?i:i[t];if(n==null&&!e){var a=this.parentModel;a&&(n=a.getShallow(t))}return n},r.prototype.getModel=function(t,e){var i=t!=null,n=i?this.parsePath(t):null,a=i?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(q(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!it.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&!(t[n]&&(i=i&&typeof i=="object"?i[t[n]]:null,i==null));n++);return i==null&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},r}();Ac(St);xM(St);Zt(St,v2);Zt(St,p2);Zt(St,AM);Zt(St,f2);var d2=Math.round(Math.random()*10);function xa(r){return[r||"",d2++].join("_")}function g2(r){var t={};r.registerSubTypeDefaulter=function(e,i){var n=br(e);t[n.main]=i},r.determineSubType=function(e,i){var n=i.type;if(!n){var a=br(e).main;r.hasSubTypes(e)&&t[a]&&(n=t[a](i))}return n}}function y2(r,t){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=e(o),f=u.graph,h=u.noEntryList,c={};for(T(a,function(m){c[m]=!0});h.length;){var v=h.pop(),p=f[v],d=!!c[v];d&&(s.call(l,v,p.originalDeps.slice()),delete c[v]),T(p.successor,d?y:g)}T(c,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){c[m]=!0,g(m)}};function e(a){var o={},s=[];return T(a,function(l){var u=i(o,l),f=u.originalDeps=t(l),h=n(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),T(h,function(c){ut(u.predecessor,c)<0&&u.predecessor.push(c);var v=i(o,c);ut(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function i(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function n(a,o){var s=[];return T(a,function(l){ut(o,l)>=0&&s.push(l)}),s}}function Ci(r,t){return et(et({},r,!0),t,!0)}const m2={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:". "}}}},_2={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:""}}}};var Ol="ZH",Gc="EN",ra=Gc,hl={},Hc={},RS=it.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ra).toUpperCase();return r.indexOf(Ol)>-1?Ol:ra}():ra;function Wc(r,t){r=r.toUpperCase(),Hc[r]=new St(t),hl[r]=t}function S2(r){if(G(r)){var t=hl[r.toUpperCase()]||{};return r===Ol||r===Gc?q(t):et(q(t),q(hl[ra]),!1)}else return et(q(r),q(hl[ra]),!1)}function cv(r){return Hc[r]}function x2(){return Hc[ra]}Wc(Gc,m2);Wc(Ol,_2);var Uc=1e3,Yc=Uc*60,mo=Yc*60,Ve=mo*24,bg=Ve*365,ro={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Ms="{yyyy}-{MM}-{dd}",wg={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ms,hour:Ms+" "+ro.hour,minute:Ms+" "+ro.minute,second:Ms+" "+ro.second,millisecond:ro.none},If=["year","month","day","hour","minute","second","millisecond"],ES=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function se(r,t){return r+="","0000".substr(0,t-r.length)+r}function ia(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function b2(r){return r===ia(r)}function w2(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function rs(r,t,e,i){var n=Me(r),a=n[Xc(e)](),o=n[na(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[wu(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[Ro(e)](),h=(f-1)%12+1,c=n[Tu(e)](),v=n[Cu(e)](),p=n[Au(e)](),d=f>=12?"pm":"am",g=d.toUpperCase(),y=i instanceof St?i:cv(i||RS)||x2(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,d+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,se(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,se(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,se(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,se(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,se(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,se(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,se(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,se(p,3)).replace(/{S}/g,p+"")}function T2(r,t,e,i,n){var a=null;if(G(e))a=e;else if(j(e))a=e(r.value,t,{level:r.level});else{var o=O({},ro);if(r.level>0)for(var s=0;s<If.length;++s)o[If[s]]="{primary|"+o[If[s]]+"}";var l=e?e.inherit===!1?e:K(e,o):o,u=kS(r.value,n);if(l[u])a=l[u];else if(l.inherit){for(var f=ES.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(z(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return rs(new Date(r.value),a,n,i)}function kS(r,t){var e=Me(r),i=e[na(t)]()+1,n=e[wu(t)](),a=e[Ro(t)](),o=e[Tu(t)](),s=e[Cu(t)](),l=e[Au(t)](),u=l===0,f=u&&s===0,h=f&&o===0,c=h&&a===0,v=c&&n===1,p=v&&i===1;return p?"year":v?"month":c?"day":h?"hour":f?"minute":u?"second":"millisecond"}function Tg(r,t,e){var i=yt(r)?Me(r):r;switch(t=t||kS(r,e),t){case"year":return i[Xc(e)]();case"half-year":return i[na(e)]()>=6?1:0;case"quarter":return Math.floor((i[na(e)]()+1)/4);case"month":return i[na(e)]();case"day":return i[wu(e)]();case"half-day":return i[Ro(e)]()/24;case"hour":return i[Ro(e)]();case"minute":return i[Tu(e)]();case"second":return i[Cu(e)]();case"millisecond":return i[Au(e)]()}}function Xc(r){return r?"getUTCFullYear":"getFullYear"}function na(r){return r?"getUTCMonth":"getMonth"}function wu(r){return r?"getUTCDate":"getDate"}function Ro(r){return r?"getUTCHours":"getHours"}function Tu(r){return r?"getUTCMinutes":"getMinutes"}function Cu(r){return r?"getUTCSeconds":"getSeconds"}function Au(r){return r?"getUTCMilliseconds":"getMilliseconds"}function C2(r){return r?"setUTCFullYear":"setFullYear"}function OS(r){return r?"setUTCMonth":"setMonth"}function BS(r){return r?"setUTCDate":"setDate"}function NS(r){return r?"setUTCHours":"setHours"}function zS(r){return r?"setUTCMinutes":"setMinutes"}function VS(r){return r?"setUTCSeconds":"setSeconds"}function FS(r){return r?"setUTCMilliseconds":"setMilliseconds"}function A2(r,t,e,i,n,a,o,s){var l=new dt({style:{text:r,font:t,align:e,verticalAlign:i,padding:n,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Zc(r){if(!wc(r))return G(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function $c(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var An=hc;function pv(r,t,e){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Fe(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Me(r):r;if(isNaN(+l)){if(s)return"-"}else return rs(l,i,e)}if(t==="ordinal")return _l(r)?n(r):yt(r)&&a(r)?r+"":"-";var u=Ur(r);return a(u)?Zc(u):_l(r)?n(r):typeof r=="boolean"?r+"":"-"}var Cg=["a","b","c","d","e","f","g"],Rf=function(r,t){return"{"+r+(t==null?"":t)+"}"};function qc(r,t,e){z(t)||(t=[t]);var i=t.length;if(!i)return"";for(var n=t[0].$vars||[],a=0;a<n.length;a++){var o=Cg[a];r=r.replace(Rf(o),Rf(o,0))}for(var s=0;s<i;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(Rf(Cg[l],s),e?te(u):u)}return r}function M2(r,t,e){return T(t,function(i,n){r=r.replace("{"+n+"}",i)}),r}function GS(r,t){var e=G(r)?{color:r,extraCssText:t}:r||{},i=e.color,n=e.type;t=e.extraCssText;var a=e.renderMode||"html";if(!i)return"";if(a==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+te(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+te(i)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function D2(r,t,e){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
  28. yyyy`);var i=Me(t),n=e?"getUTC":"get",a=i[n+"FullYear"](),o=i[n+"Month"]()+1,s=i[n+"Date"](),l=i[n+"Hours"](),u=i[n+"Minutes"](),f=i[n+"Seconds"](),h=i[n+"Milliseconds"]();return r=r.replace("MM",se(o,2)).replace("M",o).replace("yyyy",a).replace("yy",se(a%100+"",2)).replace("dd",se(s,2)).replace("d",s).replace("hh",se(l,2)).replace("h",l).replace("mm",se(u,2)).replace("m",u).replace("ss",se(f,2)).replace("s",f).replace("SSS",se(h,3)),r}function L2(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Sn(r,t){return t=t||"transparent",G(r)?r:Z(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Ag(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var vl=T,HS=["left","right","top","bottom","width","height"],on=[["width","left","right"],["height","top","bottom"]];function Kc(r,t,e,i,n){var a=0,o=0;i==null&&(i=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),h=t.childAt(u+1),c=h&&h.getBoundingRect(),v,p;if(r==="horizontal"){var d=f.width+(c?-c.x+f.x:0);v=a+d,v>i||l.newline?(a=0,v=d,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);p=o+g,p>n||l.newline?(a+=s+e,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=v+e:o=p+e)})}var pn=Kc;vt(Kc,"vertical");vt(Kc,"horizontal");function sF(r,t,e){var i=t.width,n=t.height,a=J(r.left,i),o=J(r.top,n),s=J(r.right,i),l=J(r.bottom,n);return(isNaN(a)||isNaN(parseFloat(r.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(r.right)))&&(s=i),(isNaN(o)||isNaN(parseFloat(r.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(r.bottom)))&&(l=n),e=An(e||0),{width:Math.max(s-a-e[1]-e[3],0),height:Math.max(l-o-e[0]-e[2],0)}}function ce(r,t,e){e=An(e||0);var i=t.width,n=t.height,a=J(r.left,i),o=J(r.top,n),s=J(r.right,i),l=J(r.bottom,n),u=J(r.width,i),f=J(r.height,n),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=i-s-c-a),isNaN(f)&&(f=n-l-h-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>i/n?u=i*.8:f=n*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(a)&&(a=i-s-u-c),isNaN(o)&&(o=n-l-f-h),r.left||r.right){case"center":a=i/2-u/2-e[3];break;case"right":a=i-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=i-c-a-(s||0)),isNaN(f)&&(f=n-h-o-(l||0));var p=new ft(a+e[3],o+e[0],u,f);return p.margin=e,p}function jc(r,t,e,i,n,a){var o=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],l=n&&n.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ft(0,0,+t.width||0,+t.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var h=ce(K({width:u.width,height:u.height},t),e,i),c=o?h.x-u.x:0,v=s?h.y-u.y:0;return l==="raw"?(a.x=c,a.y=v):(a.x+=c,a.y+=v),a===r&&r.markRedraw(),!0}function P2(r,t){return r[on[t][0]]!=null||r[on[t][1]]!=null&&r[on[t][2]]!=null}function Eo(r){var t=r.layoutMode||r.constructor.layoutMode;return Z(t)?t:t?{type:t}:null}function bi(r,t,e){var i=e&&e.ignoreSize;!z(i)&&(i=[i,i]);var n=o(on[0],0),a=o(on[1],1);u(on[0],r,n),u(on[1],r,a);function o(f,h){var c={},v=0,p={},d=0,g=2;if(vl(f,function(_){p[_]=r[_]}),vl(f,function(_){s(t,_)&&(c[_]=p[_]=t[_]),l(c,_)&&v++,l(p,_)&&d++}),i[h])return l(t,f[1])?p[f[2]]=null:l(t,f[2])&&(p[f[1]]=null),p;if(d===g||!v)return p;if(v>=g)return c;for(var y=0;y<f.length;y++){var m=f[y];if(!s(c,m)&&s(r,m)){c[m]=r[m];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,c){vl(f,function(v){h[v]=c[v]})}}function ba(r){return WS({},r)}function WS(r,t){return t&&r&&vl(HS,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var I2=xt(),ot=function(r){E(t,r);function t(e,i,n){var a=r.call(this,e,i,n)||this;return a.uid=xa("ec_cpt_model"),a}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=Eo(this),a=n?ba(e):{},o=i.getTheme();et(e,o.get(this.mainType)),et(e,this.getDefaultOption()),n&&bi(e,a,n)},t.prototype.mergeOption=function(e,i){et(this.option,e,!0);var n=Eo(this);n&&bi(this.option,e,n)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!mM(e))return e.defaultOption;var i=I2(this);if(!i.defaultOption){for(var n=[],a=e;a;){var o=a.prototype.defaultOption;o&&n.push(o),a=a.superClass}for(var s={},l=n.length-1;l>=0;l--)s=et(s,n[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var n=e+"Index",a=e+"Id";return jo(this.ecModel,e,{index:this.get(n,!0),id:this.get(a,!0)},i)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(St);X1(ot,St);fu(ot);g2(ot);y2(ot,R2);function R2(r){var t=[];return T(ot.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=V(t,function(e){return br(e).main}),r!=="dataset"&&ut(t,"dataset")<=0&&t.unshift("dataset"),t}var US="";typeof navigator!="undefined"&&(US=navigator.platform||"");var zn="rgba(0, 0, 0, 0.2)";const E2={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:zn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:US.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};var YS=Y(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ue="original",we="arrayRows",lr="objectRows",Dr="keyedColumns",mi="typedArray",XS="unknown",Fr="column",wa="row",Wt={Must:1,Might:2,Not:3},ZS=xt();function k2(r){ZS(r).datasetMap=Y()}function O2(r,t,e){var i={},n=Jc(t);if(!n||!r)return i;var a=[],o=[],s=t.ecModel,l=ZS(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),T(r,function(d,g){var y=Z(d)?d:r[g]={name:d};y.type==="ordinal"&&f==null&&(f=g,h=p(y)),i[y.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});T(r,function(d,g){var y=d.name,m=p(d);if(f==null){var _=c.valueWayDim;v(i[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===g)v(i[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(i[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(d,g,y){for(var m=0;m<y;m++)d.push(g+m)}function p(d){var g=d.dimsDef;return g?g.length:1}return a.length&&(i.itemName=a),o.length&&(i.seriesName=o),i}function $S(r,t,e){var i={},n=Jc(r);if(!n)return i;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===lr||a===Dr)&&T(o,function(f,h){(Z(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},c=[],v=0,p=Math.min(5,e);v<p;v++){var d=KS(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(d);var g=d===Wt.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&c[f.n]===Wt.Not)&&(f.n=v),y(f)&&c[f.n]!==Wt.Not)return f;g||(d===Wt.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null}();if(l){i.value=[l.v];var u=s!=null?s:l.n;i.itemName=[u],i.seriesName=[u]}return i}function Jc(r){var t=r.get("data",!0);if(!t)return jo(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Bt).models[0]}function B2(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:jo(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Bt).models}function qS(r,t){return KS(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function KS(r,t,e,i,n,a){var o,s=5;if(he(r))return Wt.Not;var l,u;if(i){var f=i[a];Z(f)?(l=f.name,u=f.type):G(f)&&(l=f)}if(u!=null)return u==="ordinal"?Wt.Must:Wt.Not;if(t===we){var h=r;if(e===wa){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[n+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var p=h[n+v];if(p&&(o=S(p[a]))!=null)return o}}else if(t===lr){var d=r;if(!l)return Wt.Not;for(var v=0;v<d.length&&v<s;v++){var g=d[v];if(g&&(o=S(g[l]))!=null)return o}}else if(t===Dr){var y=r;if(!l)return Wt.Not;var c=y[l];if(!c||he(c))return Wt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===Ue)for(var m=r,v=0;v<m.length&&v<s;v++){var g=m[v],_=ya(g);if(!z(_))return Wt.Not;if((o=S(_[a]))!=null)return o}function S(b){var x=G(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return x?Wt.Might:Wt.Not;if(x&&b!=="-")return Wt.Must}return Wt.Not}var dv=Y();function N2(r,t){ve(dv.get(r)==null&&t),dv.set(r,t)}function z2(r,t,e){var i=dv.get(t);if(!i)return e;var n=i(r);return n?e.concat(n):e}var Mg=xt(),V2=xt(),Qc=function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,i){var n=Mt(this.get("color",!0)),a=this.get("colorLayer",!0);return jS(this,Mg,n,a,t,e,i)},r.prototype.clearColorPalette=function(){G2(this,Mg)},r}();function Dg(r,t,e,i){var n=Mt(r.get(["aria","decal","decals"]));return jS(r,V2,n,null,t,e,i)}function F2(r,t){for(var e=r.length,i=0;i<e;i++)if(r[i].length>t)return r[i];return r[e-1]}function jS(r,t,e,i,n,a,o){a=a||r;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!i?e:F2(i,o);if(f=f||e,!(!f||!f.length)){var h=f[l];return n&&(u[n]=h),s.paletteIdx=(l+1)%f.length,h}}function G2(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Ds,Ea,Lg,Pg="\0_ec_inner",H2=1,tp=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,i,n,a,o,s){a=a||{},this.option=null,this._theme=new St(a),this._locale=new St(o),this._optionManager=s},t.prototype.setOption=function(e,i,n){var a=Eg(i);this._optionManager.setOption(e,n,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,i){return this._resetOption(e,Eg(i))},t.prototype._resetOption=function(e,i){var n=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Lg(this,o):(this.restoreData(),this._mergeOption(o,i)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=a.getMediaOption(this);l.length&&T(l,function(u){n=!0,this._mergeOption(u,i)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var n=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Y(),u=i&&i.replaceMergeMainTypeMap;k2(this),T(e,function(h,c){h!=null&&(ot.hasClass(c)?c&&(s.push(c),l.set(c,!0)):n[c]=n[c]==null?q(h):et(n[c],h,!0))}),u&&u.each(function(h,c){ot.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),ot.topologicalTravel(s,ot.getAllClassMainTypes(),f,this);function f(h){var c=z2(this,h,Mt(e[h])),v=a.get(h),p=v?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",d=G1(v,c,p);uM(d,h,ot),n[h]=null,a.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;T(d,function(S,b){var x=S.existing,w=S.newOption;if(!w)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var C=h==="series",A=ot.getClass(h,S.keyInfo.subType,!C);if(!A)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===A)x.name=S.keyInfo.name,x.mergeOption(w,this),x.optionUpdated(w,!1);else{var M=O({componentIndex:b},S.keyInfo);x=new A(w,this,this,M),O(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(w,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),n[h]=g,a.set(h,y),o.set(h,m),h==="series"&&Ds(this)}this._seriesIndices||Ds(this)},t.prototype.getOption=function(){var e=q(this.option);return T(e,function(i,n){if(ot.hasClass(n)){for(var a=Mt(i),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Do(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,e[n]=a}}),delete e[Pg],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,i){var n=this._componentsMap.get(e);if(n){var a=n[i||0];if(a)return a;if(i==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var i=e.mainType;if(!i)return[];var n=e.index,a=e.id,o=e.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return n!=null?(l=[],T(Mt(n),function(u){s[u]&&l.push(s[u])})):a!=null?l=Ig("id",a,s):o!=null?l=Ig("name",o,s):l=wt(s,function(u){return!!u}),Rg(l,e)},t.prototype.findComponents=function(e){var i=e.query,n=e.mainType,a=s(i),o=a?this.queryComponents(a):wt(this._componentsMap.get(n),function(u){return!!u});return l(Rg(o,e));function s(u){var f=n+"Index",h=n+"Id",c=n+"Name";return u&&(u[f]!=null||u[h]!=null||u[c]!=null)?{mainType:n,index:u[f],id:u[h],name:u[c]}:null}function l(u){return e.filter?wt(u,e.filter):u}},t.prototype.eachComponent=function(e,i,n){var a=this._componentsMap;if(j(e)){var o=i,s=e;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var p=h[v];p&&s.call(o,c,p,p.componentIndex)}})}else for(var l=G(e)?a.get(e):Z(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=ee(e,null);return wt(this._componentsMap.get("series"),function(n){return!!n&&i!=null&&n.name===i})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return wt(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return wt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){Ea(this),T(this._seriesIndices,function(n){var a=this._componentsMap.get("series")[n];e.call(i,a,n)},this)},t.prototype.eachRawSeries=function(e,i){T(this._componentsMap.get("series"),function(n){n&&e.call(i,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,i,n){Ea(this),T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&i.call(n,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,i,n){return T(this.getSeriesByType(e),i,n)},t.prototype.isSeriesFiltered=function(e){return Ea(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){Ea(this);var n=[];T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(i,o,a)&&n.push(a)},this),this._seriesIndices=n,this._seriesIndicesMap=Y(n)},t.prototype.restoreData=function(e){Ds(this);var i=this._componentsMap,n=[];i.each(function(a,o){ot.hasClass(o)&&n.push(o)}),ot.topologicalTravel(n,ot.getAllClassMainTypes(),function(a){T(i.get(a),function(o){o&&(a!=="series"||!W2(o,e))&&o.restoreData()})})},t.internalField=function(){Ds=function(e){var i=e._seriesIndices=[];T(e._componentsMap.get("series"),function(n){n&&i.push(n.componentIndex)}),e._seriesIndicesMap=Y(i)},Ea=function(e){},Lg=function(e,i){e.option={},e.option[Pg]=H2,e._componentsMap=Y({series:[]}),e._componentsCount=Y();var n=i.aria;Z(n)&&n.enabled==null&&(n.enabled=!0),U2(i,e._theme.option),et(i,E2,!1),e._mergeOption(i,null)}}(),t}(St);function W2(r,t){if(t){var e=t.seriesIndex,i=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||i!=null&&r.id!==i||n!=null&&r.name!==n}}function U2(r,t){var e=r.color&&!r.colorLayer;T(t,function(i,n){n==="colorLayer"&&e||ot.hasClass(n)||(typeof i=="object"?r[n]=r[n]?et(r[n],i,!1):q(i):r[n]==null&&(r[n]=i))})}function Ig(r,t,e){if(z(t)){var i=Y();return T(t,function(a){if(a!=null){var o=ee(a,null);o!=null&&i.set(a,!0)}}),wt(e,function(a){return a&&i.get(a[r])})}else{var n=ee(t,null);return wt(e,function(a){return a&&n!=null&&a[r]===n})}}function Rg(r,t){return t.hasOwnProperty("subType")?wt(r,function(e){return e&&e.subType===t.subType}):r}function Eg(r){var t=Y();return r&&T(Mt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Zt(tp,Qc);var Y2=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],JS=function(){function r(t){T(Y2,function(e){this[e]=U(t[e],t)},this)}return r}(),Ef={},Mu=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var i=[];T(Ef,function(n,a){var o=n.create(t,e);i=i.concat(o||[])}),this._coordinateSystems=i},r.prototype.update=function(t,e){T(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Ef[t]=e},r.get=function(t){return Ef[t]},r}(),X2=/^(min|max)?(.+)$/,Z2=function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,i){t&&(T(Mt(t.series),function(o){o&&o.data&&he(o.data)&&wo(o.data)}),T(Mt(t.dataset),function(o){o&&o.source&&he(o.source)&&wo(o.source)})),t=q(t);var n=this._optionBackup,a=$2(t,e,!n);this._newBaseOption=a.baseOption,n?(a.timelineOptions.length&&(n.timelineOptions=a.timelineOptions),a.mediaList.length&&(n.mediaList=a.mediaList),a.mediaDefault&&(n.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],q(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=q(i[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),i=this._api.getHeight(),n=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!n.length&&!a)return s;for(var l=0,u=n.length;l<u;l++)q2(n[l].query,e,i)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!j2(o,this._currentMediaIndices)&&(s=V(o,function(f){return q(f===-1?a.option:n[f].option)})),this._currentMediaIndices=o,s},r}();function $2(r,t,e){var i=[],n,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&z(u)&&T(u,function(v){v&&v.option&&(v.query?i.push(v):n||(n=v))}),c(a),T(l,function(v){return c(v)}),T(i,function(v){return c(v.option)});function c(v){T(t,function(p){p(v,e)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:n,mediaList:i}}function q2(r,t,e){var i={width:t,height:e,aspectratio:t/e},n=!0;return T(r,function(a,o){var s=o.match(X2);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();K2(i[u],a,l)||(n=!1)}}),n}function K2(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function j2(r,t){return r.join(",")===t.join(",")}var Ze=T,ko=Z,kg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function kf(r){var t=r&&r.itemStyle;if(t)for(var e=0,i=kg.length;e<i;e++){var n=kg[e],a=t.normal,o=t.emphasis;a&&a[n]&&(r[n]=r[n]||{},r[n].normal?et(r[n].normal,a[n]):r[n].normal=a[n],a[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?et(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Qt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var i=r[t].normal,n=r[t].emphasis;i&&(e?(r[t].normal=r[t].emphasis=null,K(r[t],i)):r[t]=i),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function io(r){Qt(r,"itemStyle"),Qt(r,"lineStyle"),Qt(r,"areaStyle"),Qt(r,"label"),Qt(r,"labelLine"),Qt(r,"upperLabel"),Qt(r,"edgeLabel")}function Et(r,t){var e=ko(r)&&r[t],i=ko(e)&&e.textStyle;if(i)for(var n=0,a=Nd.length;n<a;n++){var o=Nd[n];i.hasOwnProperty(o)&&(e[o]=i[o])}}function ke(r){r&&(io(r),Et(r,"label"),r.emphasis&&Et(r.emphasis,"label"))}function J2(r){if(ko(r)){kf(r),io(r),Et(r,"label"),Et(r,"upperLabel"),Et(r,"edgeLabel"),r.emphasis&&(Et(r.emphasis,"label"),Et(r.emphasis,"upperLabel"),Et(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(kf(t),ke(t));var e=r.markLine;e&&(kf(e),ke(e));var i=r.markArea;i&&ke(i);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var a=r.links||r.edges;if(a&&!he(a))for(var o=0;o<a.length;o++)ke(a[o]);T(r.categories,function(u){io(u)})}if(n&&!he(n))for(var o=0;o<n.length;o++)ke(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)ke(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)z(l[o])?(ke(l[o][0]),ke(l[o][1])):ke(l[o]);r.type==="gauge"?(Et(r,"axisLabel"),Et(r,"title"),Et(r,"detail")):r.type==="treemap"?(Qt(r.breadcrumb,"itemStyle"),T(r.levels,function(u){io(u)})):r.type==="tree"&&io(r.leaves)}}function Rr(r){return z(r)?r:r?[r]:[]}function Og(r){return(z(r)?r[0]:r)||{}}function Q2(r,t){Ze(Rr(r.series),function(i){ko(i)&&J2(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ze(e,function(i){Ze(Rr(r[i]),function(n){n&&(Et(n,"axisLabel"),Et(n.axisPointer,"label"))})}),Ze(Rr(r.parallel),function(i){var n=i&&i.parallelAxisDefault;Et(n,"axisLabel"),Et(n&&n.axisPointer,"label")}),Ze(Rr(r.calendar),function(i){Qt(i,"itemStyle"),Et(i,"dayLabel"),Et(i,"monthLabel"),Et(i,"yearLabel")}),Ze(Rr(r.radar),function(i){Et(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),Ze(Rr(r.geo),function(i){ko(i)&&(ke(i),Ze(Rr(i.regions),function(n){ke(n)}))}),Ze(Rr(r.timeline),function(i){ke(i),Qt(i,"label"),Qt(i,"itemStyle"),Qt(i,"controlStyle",!0);var n=i.data;z(n)&&T(n,function(a){Z(a)&&(Qt(a,"label"),Qt(a,"itemStyle"))})}),Ze(Rr(r.toolbox),function(i){Qt(i,"iconStyle"),Ze(i.feature,function(n){Qt(n,"iconStyle")})}),Et(Og(r.axisPointer),"label"),Et(Og(r.tooltip).axisPointer,"label")}function tL(r,t){for(var e=t.split(","),i=r,n=0;n<e.length&&(i=i&&i[e[n]],i!=null);n++);return i}function eL(r,t,e,i){for(var n=t.split(","),a=r,o,s=0;s<n.length-1;s++)o=n[s],a[o]==null&&(a[o]={}),a=a[o];a[n[s]]==null&&(a[n[s]]=e)}function Bg(r){r&&T(rL,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var rL=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],iL=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Of=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ka(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<Of.length;e++){var i=Of[e][1],n=Of[e][0];t[i]!=null&&(t[n]=t[i])}}function Ng(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function zg(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function nL(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function QS(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&QS(r[e].children,t)}function tx(r,t){Q2(r,t),r.series=Mt(r.series),T(r.series,function(e){if(Z(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(i==="pie"||i==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Ng(e.label);var n=e.data;if(n&&!he(n))for(var a=0;a<n.length;a++)Ng(n[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=tL(e,"pointer.color");o!=null&&eL(e,"itemStyle.color",o)}else if(i==="bar"){ka(e),ka(e.backgroundStyle),ka(e.emphasis);var n=e.data;if(n&&!he(n))for(var a=0;a<n.length;a++)typeof n[a]=="object"&&(ka(n[a]),ka(n[a]&&n[a].emphasis))}else if(i==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),zg(e),QS(e.data,zg)}else i==="graph"||i==="sankey"?nL(e):i==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&K(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Bg(e)}}),r.dataRange&&(r.visualMap=r.dataRange),T(iL,function(e){var i=r[e];i&&(z(i)||(i=[i]),T(i,function(n){Bg(n)}))})}function aL(r){var t=Y();r.eachSeries(function(e){var i=e.get("stack");if(i){var n=t.get(i)||t.set(i,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.length&&a.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(o)}}),t.each(oL)}function oL(r){T(r,function(t,e){var i=[],n=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return n;var v,p;s?p=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var d=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,v)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&c>=0&&m>0||l==="samesign"&&c<=0&&m<0){c=jA(c,m),d=m;break}}}return i[0]=c,i[1]=d,i})})}var Du=function(){function r(t){this.data=t.data||(t.sourceFormat===Dr?{}:[]),this.sourceFormat=t.sourceFormat||XS,this.seriesLayoutBy=t.seriesLayoutBy||Fr,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];n.type==null&&qS(this,i)===Wt.Must&&(n.type="ordinal")}}return r}();function ep(r){return r instanceof Du}function gv(r,t,e){e=e||ex(r);var i=t.seriesLayoutBy,n=lL(r,e,i,t.sourceHeader,t.dimensions),a=new Du({data:r,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:q(t)});return a}function rp(r){return new Du({data:r,sourceFormat:he(r)?mi:Ue})}function sL(r){return new Du({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:q(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function ex(r){var t=XS;if(he(r))t=mi;else if(z(r)){r.length===0&&(t=we);for(var e=0,i=r.length;e<i;e++){var n=r[e];if(n!=null){if(z(n)||he(n)){t=we;break}else if(Z(n)){t=lr;break}}}}else if(Z(r)){for(var a in r)if(W(r,a)&&ne(r[a])){t=Dr;break}}return t}function lL(r,t,e,i,n){var a,o;if(!r)return{dimensionsDefine:Vg(n),startIndex:o,dimensionsDetectedCount:a};if(t===we){var s=r;i==="auto"||i==null?Fg(function(u){u!=null&&u!=="-"&&(G(u)?o==null&&(o=1):o=0)},e,s,10):o=yt(i)?i:i?1:0,!n&&o===1&&(n=[],Fg(function(u,f){n[f]=u!=null?u+"":""},e,s,1/0)),a=n?n.length:e===wa?s.length:s[0]?s[0].length:null}else if(t===lr)n||(n=uL(r));else if(t===Dr)n||(n=[],T(r,function(u,f){n.push(f)}));else if(t===Ue){var l=ya(r[0]);a=z(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Vg(n),dimensionsDetectedCount:a}}function uL(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return st(e)}function Vg(r){if(r){var t=Y();return V(r,function(e,i){e=Z(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var a=t.get(n.name);return a?n.name+="-"+a.count++:t.set(n.name,{count:1}),n})}}function Fg(r,t,e,i){if(t===wa)for(var n=0;n<e.length&&n<i;n++)r(e[n]?e[n][0]:null,n);else for(var a=e[0]||[],n=0;n<a.length&&n<i;n++)r(a[n],n)}function rx(r){var t=r.sourceFormat;return t===lr||t===Dr}var Wi,Ui,Yi,Gg,Hg,ix=function(){function r(t,e){var i=ep(t)?t:rp(t);this._source=i;var n=this._data=i.data;i.sourceFormat===mi&&(this._offset=0,this._dimSize=e,this._data=n),Hg(this,n,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=function(){var t=r.prototype;t.pure=!1,t.persistent=!0}(),r.internalField=function(){var t;Hg=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,c=l.dimensionsDefine,v=Gg[ip(u,f)];if(O(o,v),u===mi)o.getItem=e,o.count=n,o.fillStorage=i;else{var p=nx(u,f);o.getItem=U(p,null,s,h,c);var d=ax(u,f);o.count=U(d,null,s,h,c)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},i=function(o,s,l,u){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=u[c],p=v[0]==null?1/0:v[0],d=v[1]==null?-1/0:v[1],g=s-o,y=l[c],m=0;m<g;m++){var _=f[m*h+c];y[o+m]=_,_<p&&(p=_),_>d&&(d=_)}v[0]=p,v[1]=d}},n=function(){return this._data?this._data.length/this._dimSize:0};Gg=(t={},t[we+"_"+Fr]={pure:!0,appendData:a},t[we+"_"+wa]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[lr]={pure:!0,appendData:a},t[Dr]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},t[Ue]={appendData:a},t[mi]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Wg=function(r,t,e,i){return r[i]},fL=(Wi={},Wi[we+"_"+Fr]=function(r,t,e,i){return r[i+t]},Wi[we+"_"+wa]=function(r,t,e,i,n){i+=t;for(var a=n||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[i]:null}return a},Wi[lr]=Wg,Wi[Dr]=function(r,t,e,i,n){for(var a=n||[],o=0;o<e.length;o++){var s=e[o].name,l=r[s];a[o]=l?l[i]:null}return a},Wi[Ue]=Wg,Wi);function nx(r,t){var e=fL[ip(r,t)];return e}var Ug=function(r,t,e){return r.length},hL=(Ui={},Ui[we+"_"+Fr]=function(r,t,e){return Math.max(0,r.length-t)},Ui[we+"_"+wa]=function(r,t,e){var i=r[0];return i?Math.max(0,i.length-t):0},Ui[lr]=Ug,Ui[Dr]=function(r,t,e){var i=e[0].name,n=r[i];return n?n.length:0},Ui[Ue]=Ug,Ui);function ax(r,t){var e=hL[ip(r,t)];return e}var Bf=function(r,t,e){return r[t]},vL=(Yi={},Yi[we]=Bf,Yi[lr]=function(r,t,e){return r[e]},Yi[Dr]=Bf,Yi[Ue]=function(r,t,e){var i=ya(r);return i instanceof Array?i[t]:i},Yi[mi]=Bf,Yi);function ox(r){var t=vL[r];return t}function ip(r,t){return r===we?r+"_"+t:r}function ha(r,t,e){if(r){var i=r.getRawDataItem(t);if(i!=null){var n=r.getStore(),a=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return ox(a)(i,o,s)}else{var l=i;return a===Ue&&(l=ya(i)),l}}}}var cL=/\{@(.+?)\}/g,sx=function(){function r(){}return r.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),a=i.getRawIndex(t),o=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"style"),u=l&&l[i.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,c=h==="series",v=i.userOutput&&i.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:n,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,i,n,a,o){e=e||"normal";var s=this.getData(i),l=this.getDataParams(t,i);if(o&&(l.value=o.interpolatedValue),n!=null&&z(l.value)&&(l.value=l.value[n]),!a){var u=s.getItemModel(t);a=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(j(a))return l.status=e,l.dimensionIndex=n,a(l);if(G(a)){var f=qc(a,l);return f.replace(cL,function(h,c){var v=c.length,p=c;p.charAt(0)==="["&&p.charAt(v-1)==="]"&&(p=+p.slice(1,v-1));var d=ha(s,t,p);if(o&&z(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(t,e){return ha(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,i){},r}();function Yg(r){var t,e;return Z(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function _o(r){return new pL(r)}var pL=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,i=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!i&&(a=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,p=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(h||v<p)){var d=this._progress;if(z(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],v,p,l,u);else this._doProgress(d,v,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,i,n,a){Xg.reset(e,i,n,a),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:Xg.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,i;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(i=e.forceFirstProgress,e=e.progress),z(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r}(),Xg=function(){var r,t,e,i,n,a={reset:function(l,u,f,h){t=l,r=u,e=f,i=h,n=Math.ceil(i/e),a.next=e>1&&i>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<i?l:t;return t++,u}}();function cl(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!yt(r)&&r!=null&&r!=="-"&&(r=+Me(r)),r==null||r===""?NaN:Number(r))}var dL=Y({number:function(r){return parseFloat(r)},time:function(r){return+Me(r)},trim:function(r){return G(r)?Fe(r):r}});function lF(r){return dL.get(r)}var lx={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},gL=function(){function r(t,e){if(!yt(e)){var i="";ue(i)}this._opFn=lx[t],this._rvalFloat=Ur(e)}return r.prototype.evaluate=function(t){return yt(t)?this._opFn(t,this._rvalFloat):this._opFn(Ur(t),this._rvalFloat)},r}(),yL=function(){function r(t,e){var i=t==="desc";this._resultLT=i?1:-1,e==null&&(e=i?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var i=yt(t)?t:Ur(t),n=yt(e)?e:Ur(e),a=isNaN(i),o=isNaN(n);if(a&&(i=this._incomparable),o&&(n=this._incomparable),a&&o){var s=G(t),l=G(e);s&&(i=l?t:0),l&&(n=s?e:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},r}(),mL=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ur(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(e=Ur(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function uF(r,t){return r==="eq"||r==="ne"?new mL(r==="eq",t):W(lx,r)?new gL(r,t):null}var _L=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return cl(t,e)},r}();function SL(r,t){var e=new _L,i=r.data,n=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Fr&&ue(o);var s=[],l={},u=r.dimensionsDefine;if(u)T(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var _="";W(l,y)&&ue(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=nx(n,Fr);t.__isBuiltIn&&(e.getRawDataItem=function(d){return h(i,a,s,d)},e.getRawData=U(xL,null,r)),e.cloneRawData=U(bL,null,r);var c=ax(n,Fr);e.count=U(c,null,i,a,s);var v=ox(n);e.retrieveValue=function(d,g){var y=h(i,a,s,d);return p(y,g)};var p=e.retrieveValueFromItem=function(d,g){if(d!=null){var y=s[g];if(y)return v(d,g,y.name)}};return e.getDimensionInfo=U(wL,null,s,l),e.cloneAllDimensionInfo=U(TL,null,s),e}function xL(r){var t=r.sourceFormat;if(!np(t)){var e="";ue(e)}return r.data}function bL(r){var t=r.sourceFormat,e=r.data;if(!np(t)){var i="";ue(i)}if(t===we){for(var n=[],a=0,o=e.length;a<o;a++)n.push(e[a].slice());return n}else if(t===lr){for(var n=[],a=0,o=e.length;a<o;a++)n.push(O({},e[a]));return n}}function wL(r,t,e){if(e!=null){if(yt(e)||!isNaN(e)&&!W(t,e))return r[e];if(W(t,e))return t[e]}}function TL(r){return q(r)}var ux=Y();function CL(r){r=q(r);var t=r.type,e="";t||ue(e);var i=t.split(":");i.length!==2&&ue(e);var n=!1;i[0]==="echarts"&&(t=i[1],n=!0),r.__isBuiltIn=n,ux.set(t,r)}function AL(r,t,e){var i=Mt(r),n=i.length,a="";n||ue(a);for(var o=0,s=n;o<s;o++){var l=i[o];t=ML(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function ML(r,t,e,i){var n="";t.length||ue(n),Z(r)||ue(n);var a=r.type,o=ux.get(a);o||ue(n);var s=V(t,function(u){return SL(u,o)}),l=Mt(o.transform({upstream:s[0],upstreamList:s,config:q(r.config)}));return V(l,function(u,f){var h="";Z(u)||ue(h),u.data||ue(h);var c=ex(u.data);np(c)||ue(h);var v,p=t[0];if(p&&f===0&&!u.dimensions){var d=p.startIndex;d&&(u.data=p.data.slice(0,d).concat(u.data)),v={seriesLayoutBy:Fr,sourceHeader:d,dimensions:p.metaRawOption.dimensions}}else v={seriesLayoutBy:Fr,sourceHeader:0,dimensions:u.dimensions};return gv(u.data,v,null)})}function np(r){return r===we||r===lr}var Lu="undefined",DL=typeof Uint32Array===Lu?Array:Uint32Array,LL=typeof Uint16Array===Lu?Array:Uint16Array,fx=typeof Int32Array===Lu?Array:Int32Array,Zg=typeof Float64Array===Lu?Array:Float64Array,hx={float:Zg,int:fx,ordinal:Array,number:Array,time:Zg},Nf;function Vn(r){return r>65535?DL:LL}function Fn(){return[1/0,-1/0]}function PL(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function $g(r,t,e,i,n){var a=hx[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==i){for(var l=new a(i),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new a(i)}var yv=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Y()}return r.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),a=this.defaultDimValueGetter=Nf[n.sourceFormat];this._dimValueGetter=i||a,this._rawExtent=[],rx(n),this._dimensions=V(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,a=i.get(t);if(a!=null){if(n[a].type===e)return a}else a=n.length;return n[a]={type:e},i.set(t,a),this._chunks[a]=new hx[e||"float"](this._rawCount),this._rawExtent[a]=Fn(),a},r.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],a=this._rawExtent,o=n.ordinalOffset||0,s=i.length;o===0&&(a[t]=Fn());for(var l=a[t],u=o;u<s;u++){var f=i[u]=e.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],i=e.ordinalMeta;return i},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},r.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,a=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<a;u++){var f=n[u];$g(i,u,f.type,l,!0)}for(var h=[],c=s;c<l;c++)for(var v=c-s,p=0;p<a;p++){var f=n[p],d=Nf.arrayRows.call(this,t[v]||h,f.property,v,p);i[p][c]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=V(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=Fn()),$g(a,f,h.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,a,l);else for(var c=[],v=t;v<e;v++){c=n.getItem(v,c);for(var p=0;p<s;p++){var d=a[p],g=this._dimValueGetter(c,u[p],v,p);d[v]=g;var y=l[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var i=[],n=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)n.push(a)}else n=t;for(var a=0,o=n.length;a<o;a++)i.push(this.get(n[a],e));return i},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,a=this.count();n<a;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var i=e.sort(function(a,o){return a-o}),n=this.count();return n===0?0:n%2===1?i[(n-1)/2]:(i[n/2]+i[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,i=e[t];if(i!=null&&i<this._count&&i===t)return t;for(var n=0,a=this._count-1;n<=a;){var o=(n+a)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,i){var n=this._chunks,a=n[t],o=[];if(!a)return o;i==null&&(i=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=e-a[c],p=Math.abs(v);p<=i&&((p<s||p===s&&v>=0&&l<0)&&(s=p,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var a=0;a<n;a++)t[a]=e[a]}else t=new i(e.buffer,0,n)}else{var i=Vn(this._rawCount);t=new i(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),a=Vn(i._rawCount),o=new a(n),s=[],l=t.length,u=0,f=t[0],h=i._chunks,c=0;c<n;c++){var v=void 0,p=i.getRawIndex(c);if(l===0)v=e(c);else if(l===1){var d=h[f][p];v=e(d,c)}else{for(var g=0;g<l;g++)s[g]=h[t[g]][p];s[g]=c,v=e.apply(null,s)}v&&(o[u++]=p)}return u<n&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=st(t),a=n.length;if(!a)return this;var o=e.count(),s=Vn(e._rawCount),l=new s(o),u=0,f=n[0],h=t[f][0],c=t[f][1],v=e._chunks,p=!1;if(!e._indices){var d=0;if(a===1){for(var g=v[n[0]],y=0;y<i;y++){var m=g[y];(m>=h&&m<=c||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(a===2){for(var g=v[n[0]],_=v[n[1]],S=t[n[1]][0],b=t[n[1]][1],y=0;y<i;y++){var m=g[y],x=_[y];(m>=h&&m<=c||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=d),d++}p=!0}}if(!p)if(a===1)for(var y=0;y<o;y++){var w=e.getRawIndex(y),m=v[n[0]][w];(m>=h&&m<=c||isNaN(m))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var C=!0,w=e.getRawIndex(y),A=0;A<a;A++){var M=n[A],m=v[M][w];(m<t[M][0]||m>t[M][1])&&(C=!1)}C&&(l[u++]=e.getRawIndex(y))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,i){for(var n=t._chunks,a=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=Fn();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)l[v]=n[e[v]][c];l[o]=h;var p=i&&i.apply(null,l);if(p!=null){typeof p!="object"&&(a[0]=p,p=a);for(var f=0;f<p.length;f++){var d=e[f],g=p[f],y=u[d],m=n[d];m&&(m[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var i=this.clone([t],!0),n=i._chunks,a=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,h,c,v=new(Vn(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var p=1;p<o-1;p+=l){for(var d=Math.min(p+l,o-1),g=Math.min(p+l*2,o),y=(g+d)/2,m=0,_=d;_<g;_++){var S=this.getRawIndex(_),b=a[S];isNaN(b)||(m+=b)}m/=g-d;var x=p,w=Math.min(p+l,o),C=p-1,A=a[u];f=-1,c=x;for(var M=-1,D=0,_=x;_<w;_++){var S=this.getRawIndex(_),b=a[S];if(isNaN(b)){D++,M<0&&(M=S);continue}h=Math.abs((C-y)*(b-A)-(C-_)*(m-A)),h>f&&(f=h,c=S)}D>0&&D<w-x&&(v[s++]=Math.min(M,c),c=Math.max(M,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),i._count=s,i._indices=v,i.getRawIndex=this._getRawIdx,i},r.prototype.minmaxDownSample=function(t,e){for(var i=this.clone([t],!0),n=i._chunks,a=Math.floor(1/e),o=n[t],s=this.count(),l=new(Vn(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,p=o[this.getRawIndex(v)],d=a;f+a>s&&(d=s-f);for(var g=0;g<d;g++){var y=this.getRawIndex(f+g),m=o[y];m<c&&(c=m,h=f+g),m>p&&(p=m,v=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(v);h<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},r.prototype.downSample=function(t,e,i,n){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),h=a._rawExtent[t]=Fn(),c=new(Vn(this._rawCount))(Math.ceil(f/l)),v=0,p=0;p<f;p+=l){l>f-p&&(l=f-p,s.length=l);for(var d=0;d<l;d++){var g=this.getRawIndex(p+d);s[d]=u[g]}var y=i(s),m=this.getRawIndex(Math.min(p+n(s,y)||0,f-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(i){case 0:e(a);break;case 1:e(n[t[0]][s],a);break;case 2:e(n[t[0]][s],n[t[1]][s],a);break;default:for(var l=0,u=[];l<i;l++)u[l]=n[t[l]][s];u[l]=a,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],i=Fn();if(!e)return i;var n=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=i;for(var s=o[0],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),h=e[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,a=0;a<n.length;a++)i.push(n[a][e]);return i},r.prototype.clone=function(t,e){var i=new r,n=this._chunks,a=t&&Ge(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<n.length;o++)i._chunks[o]=a[o]?PL(n[o]):n[o];else i._chunks=n;return this._copyCommonProps(i),e||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=q(this._extent),t._rawExtent=q(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var n=0;n<i;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=function(){function t(e,i,n,a){return cl(e[a],this._dimensions[a])}Nf={arrayRows:t,objectRows:function(e,i,n,a){return cl(e[i],this._dimensions[a])},keyedColumns:t,original:function(e,i,n,a){var o=e&&(e.value==null?e:e.value);return cl(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,i,n,a){return e[a]}}}(),r}(),IL=function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),i=!!e.length,n,a;if(Ls(t)){var o=t,s=void 0,l=void 0,u=void 0;if(i){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=he(s)?mi:Ue,a=[];var h=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=Q(h.seriesLayoutBy,c.seriesLayoutBy)||null,p=Q(h.sourceHeader,c.sourceHeader),d=Q(h.dimensions,c.dimensions),g=v!==c.seriesLayoutBy||!!p!=!!c.sourceHeader||d;n=g?[gv(s,{seriesLayoutBy:v,sourceHeader:p,dimensions:d},l)]:[]}else{var y=t;if(i){var m=this._applyTransform(e);n=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);n=[gv(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(n,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,i=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var a="";t.length!==1&&qg(a)}var o,s=[],l=[];return T(t,function(u){u.prepareSource();var f=u.getSource(n||0),h="";n!=null&&!f&&qg(h),s.push(f),l.push(u._getVersionSign())}),i?o=AL(i,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[sL(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,i){var n=0,a=this._storeList,o=a[n];o||(o=a[n]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];Ls(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,i):(s=new yv,s.initData(new ix(e,t.length),t)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Ls(t)){var e=Jc(t);return e?[e.getSourceManager()]:[]}else return V(B2(t),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,i,n;if(Ls(t))e=t.get("seriesLayoutBy",!0),i=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),i=a.get("sourceHeader",!0),n=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:i,dimensions:n}},r}();function fF(r){var t=r.option.transform;t&&wo(r.option.transform)}function Ls(r){return r.mainType==="series"}function qg(r){throw new Error(r)}var RL="line-height:1";function vx(r){var t=r.lineHeight;return t==null?RL:"line-height:"+te(t+"")+"px"}function cx(r,t){var e=r.color||"#6e7079",i=r.fontSize||12,n=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+te(i+"")+"px;color:"+te(e)+";font-weight:"+te(n+""),valueStyle:"font-size:"+te(o+"")+"px;color:"+te(a)+";font-weight:"+te(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var EL=[0,10,20,30],kL=["",`
  29. `,`
  30. `,`
  31. `];function Ar(r,t){return t.type=r,t}function mv(r){return r.type==="section"}function px(r){return mv(r)?OL:BL}function dx(r){if(mv(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return T(r.blocks,function(n){var a=dx(n);a>=t&&(t=a+ +(i&&(!a||mv(n)&&!n.noHeader)))}),t}return 0}function OL(r,t,e,i){var n=t.noHeader,a=NL(dx(t)),o=[],s=t.blocks||[];ve(!s||z(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(W(u,l)){var f=new yL(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(d,g){var y=t.valueFormatter,m=px(d)(y?O(O({},r),{valueFormatter:y}):r,d,g>0?a.html:0,i);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):_v(i,o.join(""),n?e:a.html);if(n)return h;var c=pv(t.header,"ordinal",r.useUTC),v=cx(i,r.renderMode).nameStyle,p=vx(i);return r.renderMode==="richText"?gx(r,c,v)+a.richText+h:_v(i,'<div style="'+v+";"+p+';">'+te(c)+"</div>"+h,e)}function BL(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],V(S,function(b,x){return pv(b,z(v)?v[x]:v,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),c=a?"":pv(l,"ordinal",u),v=t.valueType,p=o?[]:f(t.value,t.dataIndex),d=!s||!a,g=!s&&a,y=cx(i,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(a?"":gx(r,c,m))+(o?"":FL(r,p,d,g,_)):_v(i,(s?"":h)+(a?"":zL(c,!s,m))+(o?"":VL(p,d,g,_)),e)}}function Kg(r,t,e,i,n,a){if(r){var o=px(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function NL(r){return{html:EL[r],richText:kL[r]}}function _v(r,t,e){var i='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",a=vx(r);return'<div style="'+n+";"+a+';">'+t+i+"</div>"}function zL(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+te(r)+"</span>"}function VL(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],'<span style="'+a+";"+i+'">'+V(r,function(o){return te(o)}).join("&nbsp;&nbsp;")+"</span>"}function gx(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function FL(r,t,e,i,n){var a=[n],o=i?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(t)?t.join(" "):t,a)}function yx(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return Sn(i)}function mx(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var zf=function(){function r(){this.richTextStyles={},this._nextStyleNameId=N1()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var n=i==="richText"?this._generateStyleName():null,a=GS({color:e,type:t,renderMode:i,markerId:n});return G(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};z(e)?T(e,function(a){return O(i,a)}):O(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r}();function GL(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=z(s),u=yx(t,e),f,h,c,v;if(o>1||l&&!o){var p=HL(s,t,e,a,u);f=p.inlineValues,h=p.inlineValueTypes,c=p.blocks,v=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(a[0]);v=f=ha(n,e,a[0]),h=d.type}else v=f=l?s[0]:s;var g=Tc(t),y=g&&t.name||"",m=n.getName(e),_=i?y:m;return Ar("section",{header:y,noHeader:i||!g,sortParam:v,blocks:[Ar("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Fe(_),value:f,valueType:h,dataIndex:e})].concat(c||[])})}function HL(r,t,e,i,n){var a=t.getData(),o=Ge(r,function(h,c,v){var p=a.getDimensionInfo(v);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];i.length?T(i,function(h){f(ha(a,e,h),h)}):T(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(Ar("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:h,valueType:v.type})):(s.push(h),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ei=xt();function Ps(r,t){return r.getName(t)||r.getId(t)}var WL="__universalTransitionEnabled",Yt=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,i,n){this.seriesIndex=this.componentIndex,this.dataTask=_o({count:YL,reset:XL}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var a=ei(this).sourceManager=new IL(this);a.prepareSource();var o=this.getInitialData(e,n);Jg(o,this),this.dataTask.context.data=o,ei(this).dataBeforeProcessed=o,jg(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var n=Eo(this),a=n?ba(e):{},o=this.subType;ot.hasClass(o)&&(o+="Series"),et(e,i.getTheme().get(this.subType)),et(e,this.getDefaultOption()),Dl(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&bi(e,a,n)},t.prototype.mergeOption=function(e,i){e=et(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Eo(this);n&&bi(this.option,e,n);var a=ei(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,i);Jg(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ei(this).dataBeforeProcessed=o,jg(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!he(e))for(var i=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Dl(e[n],"label",i)},t.prototype.getInitialData=function(e,i){},t.prototype.appendData=function(e){var i=this.getRawData();i.appendData(e.data)},t.prototype.getData=function(e){var i=Sv(this);if(i){var n=i.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return ei(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var i=Sv(this);if(i){var n=i.context;n.outputData=e,i!==this.dataTask&&(n.data=e)}ei(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Y(e)},t.prototype.getSourceManager=function(){return ei(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return ei(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,i,n){return GL({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(it.node&&!(e&&e.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,i,n){var a=this.ecModel,o=Qc.prototype.getColorFromPalette.call(this,e,i,n);return o||(o=a.getColorFromPalette(e,i,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,i){this._innerSelect(this.getData(i),e)},t.prototype.unselect=function(e,i){var n=this.option.selectedMap;if(n){var a=this.option.selectedMode,o=this.getData(i);if(a==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=Ps(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,i){for(var n=[],a=0;a<e.length;a++)n[0]=e[a],this.isSelected(e[a],i)?this.unselect(n,i):this.select(n,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,i=st(e),n=[],a=0;a<i.length;a++){var o=e[i[a]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,i){var n=this.option.selectedMap;if(!n)return!1;var a=this.getData(i);return(n==="all"||n[Ps(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[WL])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,i){var n,a,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Z(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=i[f],c=Ps(e,h);u[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var v=i[l-1],c=Ps(e,v);o.selectedMap=(n={},n[c]=!0,n),this._selectedDataIndicesMap=(a={},a[c]=e.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var i=[];e.hasItemOption&&e.each(function(n){var a=e.getRawDataItem(n);a&&a.selected&&i.push(n)}),i.length>0&&this._innerSelect(e,i)}},t.registerClass=function(e){return ot.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(ot);Zt(Yt,sx);Zt(Yt,Qc);X1(Yt,ot);function jg(r){var t=r.name;Tc(r)||(r.name=UL(r)||t)}function UL(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),i=[];return T(e,function(n){var a=t.getDimensionInfo(n);a.displayName&&i.push(a.displayName)}),i.join(" ")}function YL(r){return r.model.getRawData().count()}function XL(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),ZL}function ZL(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Jg(r,t){T(J_(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,vt($L,t))})}function $L(r,t){var e=Sv(r);return e&&e.setOutputEnd((t||this).count()),t}function Sv(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var i=e.currentTask;if(i){var n=i.agentStubMap;n&&(i=n.get(r.uid))}return i}}var Ct=function(){function r(){this.group=new nt,this.uid=xa("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){},r.prototype.updateLayout=function(t,e,i,n){},r.prototype.updateVisual=function(t,e,i,n){},r.prototype.toggleBlurSeries=function(t,e,i){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r}();Ac(Ct);fu(Ct);function ap(){var r=xt();return function(t){var e=r(t),i=t.pipelineContext,n=!!e.large,a=!!e.progressiveRender,o=e.large=!!(i&&i.large),s=e.progressiveRender=!!(i&&i.progressiveRender);return(n!==o||a!==s)&&"reset"}}var _x=xt(),qL=ap(),zt=function(){function r(){this.group=new nt,this.uid=xa("viewChart"),this.renderTask=_o({plan:KL,reset:jL}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,i,n){},r.prototype.highlight=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&ty(a,n,"emphasis")},r.prototype.downplay=function(t,e,i,n){var a=t.getData(n&&n.dataType);a&&ty(a,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateLayout=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},r.prototype.eachRendered=function(t){xu(this.group,t)},r.markUpdateMethod=function(t,e){_x(t).updateMethod=e},r.protoInitialize=function(){var t=r.prototype;t.type="chart"}(),r}();function Qg(r,t,e){r&&lv(r)&&(t==="emphasis"?la:ua)(r,e)}function ty(r,t,e){var i=_n(r,t),n=t&&t.highlightKey!=null?LD(t.highlightKey):null;i!=null?T(Mt(i),function(a){Qg(r.getItemGraphicEl(a),e,n)}):r.eachItemGraphicEl(function(a){Qg(a,e,n)})}Ac(zt);fu(zt);function KL(r){return qL(r.model)}function jL(r){var t=r.model,e=r.ecModel,i=r.api,n=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=n&&_x(n).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,i,n),JL[l]}var JL={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Bl="\0__throttleOriginMethod",ey="\0__throttleRate",ry="\0__throttleType";function Pu(r,t,e){var i,n=0,a=0,o=null,s,l,u,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],p=0;p<arguments.length;p++)v[p]=arguments[p];i=new Date().getTime(),l=this,u=v;var d=f||t,g=f||e;f=null,s=i-(g?n:a)-d,clearTimeout(o),g?o=setTimeout(h,d):s>=0?h():o=setTimeout(h,-s),n=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function is(r,t,e,i){var n=r[t];if(n){var a=n[Bl]||n,o=n[ry],s=n[ey];if(s!==e||o!==i){if(e==null||!i)return r[t]=a;n=r[t]=Pu(a,e,i==="debounce"),n[Bl]=a,n[ry]=i,n[ey]=e}return n}}function Oo(r,t){var e=r[t];e&&e[Bl]&&(e.clear&&e.clear(),r[t]=e[Bl])}var iy=xt(),ny={itemStyle:oa(IS,!0),lineStyle:oa(PS,!0)},QL={lineStyle:"stroke",itemStyle:"fill"};function Sx(r,t){var e=r.visualStyleMapper||ny[t];return e||ny.itemStyle}function xx(r,t){var e=r.visualDrawType||QL[t];return e||"fill"}var tP={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=r.getModel(i),a=Sx(r,i),o=a(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=xx(r,i),u=o[l],f=j(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||j(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||j(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,p){var d=r.getDataParams(p),g=O({},o);g[l]=f(d),v.setItemVisual(p,"style",g)}}}},Oa=new St,eP={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),i=r.visualStyleAccessPath||"itemStyle",n=Sx(r,i),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Oa.option=l[i];var u=n(Oa),f=o.ensureUniqueItemVisual(s,"style");O(f,u),Oa.option.decal&&(o.setItemVisual(s,"decal",Oa.option.decal),Oa.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},rP={performRawSeries:!0,overallReset:function(r){var t=Y();r.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+i,a=t.get(n);a||(a={},t.set(n,a)),iy(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var i=e.getRawData(),n={},a=e.getData(),o=iy(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=xx(e,s);a.each(function(u){var f=a.getRawIndex(u);n[f]=u}),i.each(function(u){var f=n[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=i.getName(u)||u+"",p=i.count();c[l]=e.getColorFromPalette(v,o,p)}})}})}},Is=Math.PI;function iP(r,t){t=t||{},K(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new nt,i=new pt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var n=new dt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new pt({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Qo({shape:{startAngle:-Is/2,endAngle:-Is/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Is*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Is*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var bx=function(){function r(t,e,i,n){this._stageTaskMap=Y(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var n=i.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),n=i.context,a=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex,o=a?i.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),n=t.getData(),a=n.count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&a>=i.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=Y();t.eachSeries(function(n){var a=n.getProgressive(),o=n.uid;i.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:a&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;T(this._allHandlers,function(n){var a=t.get(n.uid)||t.set(n.uid,{}),o="";ve(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,a,e,i),n.overallReset&&this._createOverallStageTask(n,a,e,i)},this)},r.prototype.prepareView=function(t,e,i,n){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=i,o.api=n,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},r.prototype._performStageTasks=function(t,e,i,n){n=n||{};var a=!1,o=this;T(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,p=c.agentStubMap;p.each(function(g){s(n,g)&&(g.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,i);var d=o.getPerformArgs(c,n.block);p.each(function(g){g.perform(d)}),c.perform(d)&&(a=!0)}else h&&h.each(function(g,y){s(n,g)&&g.dirty();var m=o.getPerformArgs(g,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,i),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.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)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,i,n){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Y(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,n).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||_o({plan:lP,reset:uP,count:hP}));v.context={model:h,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,i,n){var a=this,o=e.overallTask=e.overallTask||_o({reset:nP});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Y(),u=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";ve(!t.createOnAllSeries,v),u?i.eachRawSeriesByType(u,p):f?f(i,n).each(p):(h=!1,T(i.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(c=!0,_o({reset:aP,onDirty:sP})));y.context={model:d,overallProgress:h},y.agent=o,y.__block=h,a._pipe(d,y)}c&&o.dirty()},r.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return j(t)&&(t={overallReset:t,seriesType:vP(t)}),t.uid=xa("stageHandler"),e&&(t.visualType=e),t},r}();function nP(r){r.overallReset(r.ecModel,r.api,r.payload)}function aP(r){return r.overallProgress&&oP}function oP(){this.agent.dirty(),this.getDownstream().dirty()}function sP(){this.agent&&this.agent.dirty()}function lP(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function uP(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Mt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?V(t,function(e,i){return Tx(i)}):fP}var fP=Tx(0);function Tx(r){return function(t,e){var i=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var a=t.start;a<t.end;a++)n.dataEach(i,a);else n&&n.progress&&n.progress(t,i)}}function hP(r){return r.data.count()}function vP(r){Nl=null;try{r(Bo,Cx)}catch(t){}return Nl}var Bo={},Cx={},Nl;Ax(Bo,tp);Ax(Cx,JS);Bo.eachSeriesByType=Bo.eachRawSeriesByType=function(r){Nl=r};Bo.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Nl=r.subType)};function Ax(r,t){for(var e in t.prototype)r[e]=Ft}var ay=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const cP={color:ay,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],ay]};var jt="#B9B8CE",oy="#100C2A",Rs=function(){return{axisLine:{lineStyle:{color:jt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},sy=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Mx={darkMode:!0,color:sy,backgroundColor:oy,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:jt},pageTextStyle:{color:jt}},textStyle:{color:jt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:jt}},dataZoom:{borderColor:"#71708A",textStyle:{color:jt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:jt}},timeline:{lineStyle:{color:jt},label:{color:jt},controlStyle:{color:jt,borderColor:jt}},calendar:{itemStyle:{color:oy},dayLabel:{color:jt},monthLabel:{color:jt},yearLabel:{color:jt}},timeAxis:Rs(),logAxis:Rs(),valueAxis:Rs(),categoryAxis:Rs(),line:{symbol:"circle"},graph:{color:sy},gauge:{title:{color:jt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:jt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Mx.categoryAxis.splitLine.show=!1;var pP=function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},i={},n={};if(G(t)){var a=br(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(t,function(l,u){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=u.lastIndexOf(c);if(v>0&&v===u.length-c.length){var p=u.slice(0,v);p!=="data"&&(e.mainType=p,e[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},r.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,a=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,a));function f(h,c,v,p){return h[v]==null||c[p||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),xv=["symbol","symbolSize","symbolRotate","symbolOffset"],ly=xv.concat(["symbolKeepAspect"]),dP={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},n={},a=!1,o=0;o<xv.length;o++){var s=xv[o],l=r.get(s);j(l)?(a=!0,n[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,e.setVisual(O({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),t.isSeriesFiltered(r))return;var u=st(n);function f(h,c){for(var v=r.getRawValue(c),p=r.getDataParams(c),d=0;d<u.length;d++){var g=u[d];h.setItemVisual(c,g,n[g](v,p))}}return{dataEach:a?f:null}}},gP={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function i(n,a){for(var o=n.getItemModel(a),s=0;s<ly.length;s++){var l=ly[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(a,l,u)}}return{dataEach:e.hasItemOption?i:null}}};function op(r,t,e){switch(e){case"color":var i=r.getItemVisual(t,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function Dx(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function Lx(r,t,e,i){switch(e){case"color":var n=r.ensureUniqueItemVisual(t,"style");n[r.getVisual("drawType")]=i,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,i);break}}function Px(r,t){function e(i,n){var a=[];return i.eachComponent({mainType:"series",subType:r,query:n},function(o){a.push(o.seriesIndex)}),a}T([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(i){t(i[0],function(n,a,o){n=O({},n),o.dispatchAction(O(n,{type:i[1],seriesIndex:e(a,n)}))})})}function Gn(r,t,e,i,n){var a=r+t;e.isSilent(a)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=n.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),c=_n(h,n.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:z(c)?h.getName(c[0]):h.getName(c),selected:G(l)?l:O({},l)})}})}function yP(r,t,e){r.on("selectchanged",function(i){var n=e.getModel();i.isFromClick?(Gn("map","selectchanged",t,n,i),Gn("pie","selectchanged",t,n,i)):i.fromAction==="select"?(Gn("map","selected",t,n,i),Gn("pie","selected",t,n,i)):i.fromAction==="unselect"&&(Gn("map","unselected",t,n,i),Gn("pie","unselected",t,n,i))})}function sn(r,t,e){for(var i;r&&!(t(r)&&(i=r,e));)r=r.__hostTarget||r.parent;return i}var mP=Math.round(Math.random()*9),_P=typeof Object.defineProperty=="function",SP=function(){function r(){this._id="__ec_inner_"+mP++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var i=this._guard(t);return _P?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r}(),xP=gt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i+a),r.lineTo(e-n,i+a),r.closePath()}}),bP=gt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,i=t.cy,n=t.width/2,a=t.height/2;r.moveTo(e,i-a),r.lineTo(e+n,i),r.lineTo(e,i+a),r.lineTo(e-n,i),r.closePath()}}),wP=gt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,i=t.y,n=t.width/5*3,a=Math.max(n,t.height),o=n/2,s=o*o/(a-o),l=i-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),c=Math.cos(u),v=o*.6,p=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-h*v,l+s+c*v,e,i-p,e,i),r.bezierCurveTo(e,i-p,e-f+h*v,l+s+c*v,e-f,l+s),r.closePath()}}),TP=gt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,i=t.width,n=t.x,a=t.y,o=i/3*2;r.moveTo(n,a),r.lineTo(n+o,a+e),r.lineTo(n,a+e/4*3),r.lineTo(n-o,a+e),r.lineTo(n,a),r.closePath()}}),CP={line:re,rect:pt,roundRect:pt,square:pt,circle:Mr,diamond:bP,pin:wP,arrow:TP,triangle:xP},AP={line:function(r,t,e,i,n){n.x1=r,n.y1=t+i/2,n.x2=r+e,n.y2=t+i/2},rect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i},roundRect:function(r,t,e,i,n){n.x=r,n.y=t,n.width=e,n.height=i,n.r=Math.min(e,i)/4},square:function(r,t,e,i,n){var a=Math.min(e,i);n.x=r,n.y=t,n.width=a,n.height=a},circle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.r=Math.min(e,i)/2},diamond:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i},pin:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},arrow:function(r,t,e,i,n){n.x=r+e/2,n.y=t+i/2,n.width=e,n.height=i},triangle:function(r,t,e,i,n){n.cx=r+e/2,n.cy=t+i/2,n.width=e,n.height=i}},zl={};T(CP,function(r,t){zl[t]=new r});var MP=gt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var i=Ml(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(i.y=e.y+e.height*.4),i},buildPath:function(r,t,e){var i=t.symbolType;if(i!=="none"){var n=zl[i];n||(i="rect",n=zl[i]),AP[i](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function DP(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function Xt(r,t,e,i,n,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=zc(r.slice(8),new ft(t,e,i,n),o?"center":"cover"):r.indexOf("path://")===0?l=mu(r.slice(7),{},new ft(t,e,i,n),o?"center":"cover"):l=new MP({shape:{symbolType:r,x:t,y:e,width:i,height:n}}),l.__isEmptyBrush=s,l.setColor=DP,a&&l.setColor(a),l}function sp(r){return z(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Iu(r,t){if(r!=null)return z(r)||(r=[r,r]),[J(r[0],t[0])||0,J(Q(r[1],r[0]),t[1])||0]}function ln(r){return isFinite(r)}function LP(r,t,e){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,n=n*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),i=ln(i)?i:0,n=ln(n)?n:1,a=ln(a)?a:0,o=ln(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function PP(r,t,e){var i=e.width,n=e.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,l=l*a),o=ln(o)?o:.5,s=ln(s)?s:.5,l=l>=0&&ln(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function uy(r,t,e){for(var i=t.type==="radial"?PP(r,t,e):LP(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function IP(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function Es(r){return parseInt(r,10)}function fy(r,t,e){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||Es(s[i])||Es(r.style[i]))-(Es(s[a])||0)-(Es(s[o])||0)|0}function RP(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:yt(r)?[r]:z(r)?r:null}function lp(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&RP(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=V(e,function(a){return a/n}),i/=n)}return[e,i]}var EP=new Xr(!0);function Vl(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function hy(r){return typeof r=="string"&&r!=="none"}function Fl(r){var t=r.fill;return t!=null&&t!=="none"}function vy(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function cy(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function py(r,t,e){var i=Mc(t.image,t.__image,e);if(hu(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*so),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function kP(r,t,e,i){var n,a=Vl(e),o=Fl(e),s=e.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var f=t.path||EP,h=t.__dirty;if(!i){var c=e.fill,v=e.stroke,p=o&&!!c.colorStops,d=a&&!!v.colorStops,g=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,S=void 0,b=void 0,x=void 0;(p||d)&&(x=t.getBoundingRect()),p&&(m=h?uy(r,c,x):t.__canvasFillGradient,t.__canvasFillGradient=m),d&&(_=h?uy(r,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?py(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(b=h||!t.__canvasStrokePattern?py(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),p?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),d?r.strokeStyle=_:y&&(b?r.strokeStyle=b:a=!1)}var w=t.getGlobalScale();f.setScale(w[0],w[1],t.segmentIgnoreThreshold);var C,A;r.setLineDash&&e.lineDash&&(n=lp(t),C=n[0],A=n[1]);var M=!0;(u||h&Ja)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),t.buildPath(f,t.shape,i),f.toStatic(),t.pathUpdated()),M&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=A),i||(e.strokeFirst?(a&&cy(r,e),o&&vy(r,e)):(o&&vy(r,e),a&&cy(r,e))),C&&r.setLineDash([])}function OP(r,t,e){var i=t.__image=Mc(e.image,t.__image,t,t.onload);if(!(!i||!hu(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var u=e.sx||0,f=e.sy||0;r.drawImage(i,u,f,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,f=e.sy,h=o-u,c=s-f;r.drawImage(i,u,f,h,c,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function BP(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||_i,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=lp(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(Vl(e)&&r.strokeText(n,e.x,e.y),Fl(e)&&r.fillText(n,e.x,e.y)):(Fl(e)&&r.fillText(n,e.x,e.y),Vl(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var dy=["shadowBlur","shadowOffsetX","shadowOffsetY"],gy=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ix(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){xe(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?vn.opacity:o}(i||t.blend!==e.blend)&&(a||(xe(r,n),a=!0),r.globalCompositeOperation=t.blend||vn.blend);for(var s=0;s<dy.length;s++){var l=dy[s];(i||t[l]!==e[l])&&(a||(xe(r,n),a=!0),r[l]=r.dpr*(t[l]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(xe(r,n),a=!0),r.shadowColor=t.shadowColor||vn.shadowColor),a}function yy(r,t,e,i,n){var a=No(t,n.inHover),o=i?null:e&&No(e,n.inHover)||{};if(a===o)return!1;var s=Ix(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(xe(r,n),s=!0),hy(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(xe(r,n),s=!0),hy(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(xe(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(xe(r,n),s=!0),r.lineWidth=u)}for(var f=0;f<gy.length;f++){var h=gy[f],c=h[0];(i||a[c]!==o[c])&&(s||(xe(r,n),s=!0),r[c]=a[c]||h[1])}return s}function NP(r,t,e,i,n){return Ix(r,No(t,n.inHover),e&&No(e,n.inHover),i,n)}function Rx(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function zP(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),Rx(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function VP(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var my=1,_y=2,Sy=3,xy=4;function FP(r){var t=Fl(r),e=Vl(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function xe(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function No(r,t){return t&&r.__hoverStyle||r.style}function Ex(r,t){bv(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function bv(r,t,e,i){var n=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,l=!1;if((!o||IP(a,o))&&(o&&o.length&&(xe(r,e),r.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(xe(r,e),r.save(),zP(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var f=t instanceof gt&&t.autoBatch&&FP(t.style);s||VP(n,u.transform)?(xe(r,e),Rx(r,t)):f||xe(r,e);var h=No(t,e.inHover);t instanceof gt?(e.lastDrawType!==my&&(l=!0,e.lastDrawType=my),yy(r,t,u,l,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),kP(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof sa?(e.lastDrawType!==Sy&&(l=!0,e.lastDrawType=Sy),yy(r,t,u,l,e),BP(r,t,h)):t instanceof ae?(e.lastDrawType!==_y&&(l=!0,e.lastDrawType=_y),NP(r,t,u,l,e),OP(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==xy&&(l=!0,e.lastDrawType=xy),GP(r,t,e)),f&&i&&xe(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function GP(r,t,e){var i=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),bv(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=n.length;u<f;u++){var l=n[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),bv(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var Vf=new SP,by=new qo(100),wy=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Gl(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),n=i.painter.type==="svg";r.dirty&&Vf.delete(r);var a=Vf.get(r);if(a)return a;var o=K(r,{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});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,Vf.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],h=!0,c=0;c<wy.length;++c){var v=o[wy[c]];if(v!=null&&!z(v)&&!G(v)&&!yt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var p;if(h){p=f.join(",")+(n?"-svg":"");var d=by.get(p);d&&(n?u.svgElement=d:u.image=d)}var g=Ox(o.dashArrayX),y=HP(o.dashArrayY),m=kx(o.symbol),_=WP(g),S=Bx(y),b=!n&&Si.createCanvas(),x=n&&{tag:"g",attrs:{},key:"dcl",children:[]},w=A(),C;b&&(b.width=w.width*e,b.height=w.height*e,C=b.getContext("2d")),M(),h&&by.put(p,b||x),u.image=b,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function A(){for(var D=1,P=0,L=_.length;P<L;++P)D=Od(D,_[P]);for(var I=1,P=0,L=m.length;P<L;++P)I=Od(I,m[P].length);D*=I;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function M(){C&&(C.clearRect(0,0,b.width,b.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,b.width,b.height)));for(var D=0,P=0;P<y.length;++P)D+=y[P];if(D<=0)return;for(var L=-S,I=0,R=0,k=0;L<w.height;){if(I%2===0){for(var F=R/2%m.length,B=0,N=0,H=0;B<w.width*2;){for(var $=0,P=0;P<g[k].length;++P)$+=g[k][P];if($<=0)break;if(N%2===0){var X=(1-o.symbolSize)*.5,lt=B+g[k][N]*X,ct=L+y[I]*X,mt=g[k][N]*o.symbolSize,$t=y[I]*o.symbolSize,pe=H/2%m[F].length;Vt(lt,ct,mt,$t,m[F][pe])}B+=g[k][N],++H,++N,N===g[k].length&&(N=0)}++k,k===g.length&&(k=0)}L+=y[I],++R,++I,I===y.length&&(I=0)}function Vt(Lt,At,tt,ht,de){var Pt=n?1:e,Ye=Xt(de,Lt*Pt,At*Pt,tt*Pt,ht*Pt,o.color,o.symbolKeepAspect);if(n){var ge=i.painter.renderOneToVNode(Ye);ge&&x.children.push(ge)}else Ex(C,Ye)}}}}function kx(r){if(!r||r.length===0)return[["rect"]];if(G(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!G(r[e])){t=!1;break}if(t)return kx([r]);for(var i=[],e=0;e<r.length;++e)G(r[e])?i.push([r[e]]):i.push(r[e]);return i}function Ox(r){if(!r||r.length===0)return[[0,0]];if(yt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,i=0;i<r.length;++i)if(!yt(r[i])){e=!1;break}if(e)return Ox([r]);for(var n=[],i=0;i<r.length;++i)if(yt(r[i])){var t=Math.ceil(r[i]);n.push([t,t])}else{var t=V(r[i],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function HP(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(yt(r)){var t=Math.ceil(r);return[t,t]}var e=V(r,function(i){return Math.ceil(i)});return r.length%2?e.concat(e):e}function WP(r){return V(r,function(t){return Bx(t)})}function Bx(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function UP(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=Gl(s,t)}});var n=i.getVisual("decal");if(n){var a=i.getVisual("style");a.decal=Gl(n,t)}}})}var je=new ar,Nx={};function YP(r,t){Nx[r]=t}function zx(r){return Nx[r]}var XP="5.6.0",ZP={zrender:"5.6.1"},$P=1,qP=800,KP=900,jP=1e3,JP=2e3,QP=5e3,Vx=1e3,tI=1100,up=2e3,Fx=3e3,eI=4e3,Ru=4500,rI=4600,iI=5e3,nI=6e3,Gx=7e3,Hx={PROCESSOR:{FILTER:jP,SERIES_FILTER:qP,STATISTIC:QP},VISUAL:{LAYOUT:Vx,PROGRESSIVE_LAYOUT:tI,GLOBAL:up,CHART:Fx,POST_CHART_LAYOUT:rI,COMPONENT:eI,BRUSH:iI,CHART_ITEM:Ru,ARIA:nI,DECAL:Gx}},Kt="__flagInMainProcess",me="__pendingUpdate",Ff="__needsUpdateStatus",Ty=/^[a-zA-Z0-9_]+$/,Gf="__connectUpdateStatus",Cy=0,aI=1,oI=2;function Wx(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return Yx(this,r,t)}}function Ux(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Yx(this,r,t)}}function Yx(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),ar.prototype[t].apply(r,e)}var Xx=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(ar),Zx=Xx.prototype;Zx.on=Ux("on");Zx.off=Ux("off");var Hn,Hf,ks,ri,Wf,Uf,Yf,Ba,Na,Ay,My,Xf,Dy,Os,Ly,$x,Le,Py,Hl=function(r){E(t,r);function t(e,i,n){var a=r.call(this,new pP)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],n=n||{},G(i)&&(i=qx[i]),a._dom=e;var o="canvas",s="auto",l=!1;n.ssr&&R1(function(c){var v=at(c),p=v.dataIndex;if(p!=null){var d=Y();return d.set("series_index",v.seriesIndex),d.set("data_index",p),v.ssrType&&d.set("ssr_type",v.ssrType),d}});var u=a._zr=Qh(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:Q(n.useDirtyRect,l),useCoarsePointer:Q(n.useCoarsePointer,s),pointerSize:n.pointerSize});a._ssr=n.ssr,a._throttledZrFlush=Pu(U(u.flush,u),17),i=q(i),i&&tx(i,!0),a._theme=i,a._locale=S2(n.locale||RS),a._coordSysMgr=new Mu;var f=a._api=Ly(a);function h(c,v){return c.__prio-v.__prio}return rl(Ul,h),rl(wv,h),a._scheduler=new bx(a,f,wv,Ul),a._messageCenter=new Xx,a._initEvents(),a.resize=U(a.resize,a),u.animation.on("frame",a._onframe,a),Ay(u,a),My(u,a),wo(a),a}return t.prototype._onframe=function(){if(!this._disposed){Py(this);var e=this._scheduler;if(this[me]){var i=this[me].silent;this[Kt]=!0;try{Hn(this),ri.update.call(this,null,this[me].updateParams)}catch(l){throw this[Kt]=!1,this[me]=null,l}this._zr.flush(),this[Kt]=!1,this[me]=null,Ba.call(this,i),Na.call(this,i)}else if(e.unfinished){var n=$P,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),Uf(this,a),e.performVisualTasks(a),Os(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,i,n){if(!this[Kt]){if(this._disposed){this.id;return}var a,o,s;if(Z(i)&&(n=i.lazyUpdate,a=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[Kt]=!0,!this._model||i){var l=new Z2(this._api),u=this._theme,f=this._model=new tp;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Tv);var h={seriesTransition:s,optionChanged:!0};if(n)this[me]={silent:a,updateParams:h},this[Kt]=!1,this.getZr().wakeUp();else{try{Hn(this),ri.update.call(this,null,h)}catch(c){throw this[me]=null,this[Kt]=!1,c}this._ssr||this._zr.flush(),this[me]=null,this[Kt]=!1,Ba.call(this,a),Na.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||it.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var i=this._zr.painter;return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(it.svgSupported){var e=this._zr,i=e.storage.getDisplayList();return T(i,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var i=e.excludeComponents,n=this._model,a=[],o=this;T(i,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return T(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var i=e.type==="svg",n=this.group,a=Math.min,o=Math.max,s=1/0;if(Yl[n]){var l=s,u=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();T(dn,function(_,S){if(_.group===n){var b=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(q(e)),x=_.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),f=o(x.right,f),h=o(x.bottom,h),c.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,h*=v;var p=f-l,d=h-u,g=Si.createCanvas(),y=Qh(g,{renderer:i?"svg":"canvas"});if(y.resize({width:p,height:d}),i){var m="";return T(c,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new pt({shape:{x:0,y:0,width:p,height:d},style:{fill:e.connectedBackgroundColor}})),T(c,function(_){var S=new ae({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,i){return Wf(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return Wf(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){if(this._disposed){this.id;return}var n=this._model,a,o=vo(n,e);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(i);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(i,u))}},this)},this),!!a},t.prototype.getVisual=function(e,i){var n=this._model,a=vo(n,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?op(s,l,i):Dx(s,i)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;T(sI,function(i){var n=function(a){var o=e.getModel(),s=a.target,l,u=i==="globalout";if(u?l={}:s&&sn(s,function(p){var d=at(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType,s)||{},!0}else if(d.eventData)return l=O({},d.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];l.event=a,l.type=i,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:c,view:v},e.trigger(i,l)}};n.zrEventfulCallAtLast=!0,e._zr.on(i,n,e)}),T(So,function(i,n){e._messageCenter.on(n,function(a){this.trigger(n,a)},e)}),T(["selectchanged"],function(i){e._messageCenter.on(i,function(n){this.trigger(i,n)},e)}),yP(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&W1(this.getDom(),hp,"");var i=this,n=i._api,a=i._model;T(i._componentsViews,function(o){o.dispose(a,n)}),T(i._chartsViews,function(o){o.dispose(a,n)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete dn[i.id]},t.prototype.resize=function(e){if(!this[Kt]){if(this._disposed){this.id;return}this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var n=i.resetOption("media"),a=e&&e.silent;this[me]&&(a==null&&(a=this[me].silent),n=!0,this[me]=null),this[Kt]=!0;try{n&&Hn(this),ri.update.call(this,{type:"resize",animation:O({duration:0},e&&e.animation)})}catch(o){throw this[Kt]=!1,o}this[Kt]=!1,Ba.call(this,a),Na.call(this,a)}}},t.prototype.showLoading=function(e,i){if(this._disposed){this.id;return}if(Z(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),!!Cv[e]){var n=Cv[e](this._api,i),a=this._zr;this._loadingFX=n,a.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var i=O({},e);return i.type=So[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed){this.id;return}if(Z(i)||(i={silent:!!i}),!!Wl[e.type]&&this._model){if(this[Kt]){this._pendingActions.push(e);return}var n=i.silent;Yf.call(this,e,n);var a=i.flush;a?this._zr.flush():a!==!1&&it.browser.weChat&&this._throttledZrFlush(),Ba.call(this,n),Na.call(this,n)}},t.prototype.updateLabelLayout=function(){je.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var i=e.seriesIndex,n=this.getModel(),a=n.getSeriesByIndex(i);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Hn=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),Hf(h,!0),Hf(h,!1),c.plan()},Hf=function(h,c){for(var v=h._model,p=h._scheduler,d=c?h._componentsViews:h._chartsViews,g=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<d.length;_++)d[_].__alive=!1;c?v.eachComponent(function(x,w){x!=="series"&&S(w)}):v.eachSeries(S);function S(x){var w=x.__requireNewView;x.__requireNewView=!1;var C="_ec_"+x.id+"_"+x.type,A=!w&&g[C];if(!A){var M=br(x.type),D=c?Ct.getClass(M.main,M.sub):zt.getClass(M.sub);A=new D,A.init(v,m),g[C]=A,d.push(A),y.add(A.group)}x.__viewId=A.__id=C,A.__alive=!0,A.__model=x,A.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!c&&p.prepareView(A,x,v,m)}for(var _=0;_<d.length;){var b=d[_];b.__alive?_++:(!c&&b.renderTask.dispose(),y.remove(b.group),b.dispose(v,m),d.splice(_,1),g[b.__id]===b&&delete g[b.__id],b.__id=b.group.__ecComponentInfo=null)}},ks=function(h,c,v,p,d){var g=h._model;if(g.setUpdatePayload(v),!p){T([].concat(h._componentsViews).concat(h._chartsViews),b);return}var y={};y[p+"Id"]=v[p+"Id"],y[p+"Index"]=v[p+"Index"],y[p+"Name"]=v[p+"Name"];var m={mainType:p,query:y};d&&(m.subType=d);var _=v.excludeSeriesId,S;_!=null&&(S=Y(),T(Mt(_),function(x){var w=ee(x,null);w!=null&&S.set(w,!0)})),g&&g.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;if(!w)if(sg(v))if(x instanceof Yt)v.type===cn&&!v.notBlur&&!x.get(["emphasis","disabled"])&&SD(x,v,h._api);else{var C=Rc(x.mainType,x.componentIndex,v.name,h._api),A=C.focusSelf,M=C.dispatchers;v.type===cn&&A&&!v.notBlur&&sv(x.mainType,x.componentIndex,h._api),M&&T(M,function(D){v.type===cn?la(D):ua(D)})}else uv(v)&&x instanceof Yt&&(wD(x,v,h._api),ag(x),Le(h))},h),g&&g.eachComponent(m,function(x){var w=S&&S.get(x.id)!=null;w||b(h[p==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},h);function b(x){x&&x.__alive&&x[c]&&x[c](x.__model,g,h._api,v)}},ri={prepareAndUpdate:function(h){Hn(this),ri.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,p=this._api,d=this._zr,g=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(h),y.restoreData(v,h),y.performSeriesTasks(v),g.create(v,p),y.performDataProcessorTasks(v,h),Uf(this,v),g.update(v,p),e(v),y.performVisualTasks(v,h),Xf(this,v,p,h,c);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");d.setBackgroundColor(m),_!=null&&_!=="auto"&&d.setDarkMode(_),je.trigger("afterupdate",v,p)}},updateTransform:function(h){var c=this,v=this._model,p=this._api;if(v){v.setUpdatePayload(h);var d=[];v.eachComponent(function(y,m){if(y!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,p,h);S&&S.update&&d.push(_)}else d.push(_)}});var g=Y();v.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,p,h);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:g}),Os(this,v,p,h,{},g),je.trigger("afterupdate",v,p)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),zt.markUpdateMethod(h,"updateView"),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),Xf(this,c,this._api,h,{}),je.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(p){p.getData().clearAllVisual()}),zt.markUpdateMethod(h,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(p,d){if(p!=="series"){var g=c.getViewOfComponentModel(d);g&&g.__alive&&g.updateVisual(d,v,c._api,h)}}),v.eachSeries(function(p){var d=c._chartsMap[p.__viewId];d.updateVisual(p,v,c._api,h)}),je.trigger("afterupdate",v,this._api))},updateLayout:function(h){ri.update.call(this,h)}},Wf=function(h,c,v,p){if(h._disposed){h.id;return}for(var d=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,m=vo(d,v),_=0;_<g.length;_++){var S=g[_];if(S[c]&&(y=S[c](d,m,p))!=null)return y}},Uf=function(h,c){var v=h._chartsMap,p=h._scheduler;c.eachSeries(function(d){p.updateStreamModes(d,v[d.__viewId])})},Yf=function(h,c){var v=this,p=this.getModel(),d=h.type,g=h.escapeConnect,y=Wl[d],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),b=_[0]!=null&&br(_[0]);this[Kt]=!0;var x=[h],w=!1;h.batch&&(w=!0,x=V(h.batch,function(I){return I=K(O({},I),h),I.batch=null,I}));var C=[],A,M=uv(h),D=sg(h);if(D&&vS(this._api),T(x,function(I){if(A=y.action(I,v._model,v._api),A=A||O({},I),A.type=m.event||A.type,C.push(A),D){var R=Cc(h),k=R.queryOptionMap,F=R.mainTypeSpecified,B=F?k.keys()[0]:"series";ks(v,S,I,B),Le(v)}else M?(ks(v,S,I,"series"),Le(v)):b&&ks(v,S,I,b.main,b.sub)}),S!=="none"&&!D&&!M&&!b)try{this[me]?(Hn(this),ri.update.call(this,h),this[me]=null):ri[S].call(this,h)}catch(I){throw this[Kt]=!1,I}if(w?A={type:m.event||d,escapeConnect:g,batch:C}:A=C[0],this[Kt]=!1,!c){var P=this._messageCenter;if(P.trigger(A.type,A),M){var L={type:"selectchanged",escapeConnect:g,selected:TD(p),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};P.trigger(L.type,L)}}},Ba=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();Yf.call(this,v,h)}},Na=function(h){!h&&this.trigger("updated")},Ay=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[me]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},My=function(h,c){h.on("mouseover",function(v){var p=v.target,d=sn(p,lv);d&&(xD(d,v,c._api),Le(c))}).on("mouseout",function(v){var p=v.target,d=sn(p,lv);d&&(bD(d,v,c._api),Le(c))}).on("click",function(v){var p=v.target,d=sn(p,function(m){return at(m).dataIndex!=null},!0);if(d){var g=d.selected?"unselect":"select",y=at(d);c._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function i(h){var c=[],v=[],p=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();p=p||!!x,(m==="series"?v:c).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),p){var d=c.concat(v),g,y;rl(d,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),T(d,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;g!=null&&(S=Math.max(g,S)),b?(S===g&&b!==y&&S++,y=b):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Xf=function(h,c,v,p,d){i(c),Dy(h,c,v,p,d),T(h._chartsViews,function(g){g.__alive=!1}),Os(h,c,v,p,d),T(h._chartsViews,function(g){g.__alive||g.remove(c,v)})},Dy=function(h,c,v,p,d,g){T(g||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,c,v,p),s(m,y),f(m,y)})},Os=function(h,c,v,p,d,g){var y=h._scheduler;d=O(d||{},{updatedSeries:c.getSeries()}),je.trigger("series:beforeupdate",c,v,d);var m=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;y.updatePayload(b,p),u(_,S),g&&g.get(_.uid)&&b.dirty(),b.perform(y.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),ag(_)}),y.unfinished=m||y.unfinished,je.trigger("series:layoutlabels",c,v,d),je.trigger("series:transition",c,v,d),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),a(h,c),je.trigger("series:afterupdate",c,v,d)},Le=function(h){h[Ff]=!0,h.getZr().wakeUp()},Py=function(h){h[Ff]&&(h.getZr().storage.traverse(function(c){yo(c)||n(c)}),h[Ff]=!1)};function n(h){for(var c=[],v=h.currentStates,p=0;p<v.length;p++){var d=v[p];d==="emphasis"||d==="blur"||d==="select"||c.push(d)}h.selected&&h.states.select&&c.push("select"),h.hoverState===pu&&h.states.emphasis?c.push("emphasis"):h.hoverState===cu&&h.states.blur&&c.push("blur"),h.useStates(c)}function a(h,c){var v=h._zr,p=v.storage,d=0;p.traverse(function(g){g.isGroup||d++}),d>c.get("hoverLayerThreshold")&&!it.node&&!it.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(p){p.isGroup||(p.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,p=h.get("zlevel")||0;c.eachRendered(function(d){return l(d,v,p,-1/0),!0})}}function l(h,c,v,p){var d=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)p=Math.max(l(m[_],c,v,p),p);else h.z=c,h.zlevel=v,p=Math.max(h.z2,p);if(d&&(d.z=c,d.zlevel=v,isFinite(p)&&(d.z2=p+2)),g){var S=h.textGuideLineConfig;g.z=c,g.zlevel=v,isFinite(p)&&(g.z2=p+(S&&S.showAbove?1:-1))}return p}function u(h,c){c.eachRendered(function(v){if(!yo(v)){var p=v.getTextContent(),d=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),p=h.isAnimationEnabled(),d=v.get("duration"),g=d>0?{duration:d,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(yo(y))return;if(y instanceof gt&&PD(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&n(y)}})}Ly=function(h){return new(function(c){E(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return h._model.getComponent(d.mainType,d.index);p=p.parent}},v.prototype.enterEmphasis=function(p,d){la(p,d),Le(h)},v.prototype.leaveEmphasis=function(p,d){ua(p,d),Le(h)},v.prototype.enterBlur=function(p){_D(p),Le(h)},v.prototype.leaveBlur=function(p){lS(p),Le(h)},v.prototype.enterSelect=function(p){uS(p),Le(h)},v.prototype.leaveSelect=function(p){fS(p),Le(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(p){return h.getViewOfComponentModel(p)},v.prototype.getViewOfSeriesModel=function(p){return h.getViewOfSeriesModel(p)},v}(JS))(h)},$x=function(h){function c(v,p){for(var d=0;d<v.length;d++){var g=v[d];g[Gf]=p}}T(So,function(v,p){h._messageCenter.on(p,function(d){if(Yl[h.group]&&h[Gf]!==Cy){if(d&&d.escapeConnect)return;var g=h.makeActionFromEvent(d),y=[];T(dn,function(m){m!==h&&m.group===h.group&&y.push(m)}),c(y,Cy),T(y,function(m){m[Gf]!==aI&&m.dispatchAction(g)}),c(y,oI)}})})}}(),t}(ar),fp=Hl.prototype;fp.on=Wx("on");fp.off=Wx("off");fp.one=function(r,t,e){var i=this;function n(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),i.off(r,n)}this.on.call(this,r,n,e)};var sI=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Wl={},So={},wv=[],Tv=[],Ul=[],qx={},Cv={},dn={},Yl={},lI=+new Date-0,uI=+new Date-0,hp="_echarts_instance_";function fI(r,t,e){var i=!(e&&e.ssr);if(i){var n=vp(r);if(n)return n}var a=new Hl(r,t,e);return a.id="ec_"+lI++,dn[a.id]=a,i&&W1(r,hp,a.id),$x(a),je.trigger("afterinit",a),a}function hI(r){if(z(r)){var t=r;r=null,T(t,function(e){e.group!=null&&(r=e.group)}),r=r||"g_"+uI++,T(t,function(e){e.group=r})}return Yl[r]=!0,r}function Kx(r){Yl[r]=!1}var vI=Kx;function cI(r){G(r)?r=dn[r]:r instanceof Hl||(r=vp(r)),r instanceof Hl&&!r.isDisposed()&&r.dispose()}function vp(r){return dn[pM(r,hp)]}function pI(r){return dn[r]}function cp(r,t){qx[r]=t}function pp(r){ut(Tv,r)<0&&Tv.push(r)}function dp(r,t){gp(wv,r,t,JP)}function jx(r){Eu("afterinit",r)}function Jx(r){Eu("afterupdate",r)}function Eu(r,t){je.on(r,t)}function ur(r,t,e){j(t)&&(e=t,t="");var i=Z(r)?r.type:[r,r={event:t}][0];r.event=(r.event||i).toLowerCase(),t=r.event,!So[t]&&(ve(Ty.test(i)&&Ty.test(t)),Wl[i]||(Wl[i]={action:e,actionInfo:r}),So[t]=i)}function Qx(r,t){Mu.register(r,t)}function dI(r){var t=Mu.get(r);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()}function tb(r,t){gp(Ul,r,t,Vx,"layout")}function Ai(r,t){gp(Ul,r,t,Fx,"visual")}var Iy=[];function gp(r,t,e,i,n){if((j(t)||Z(t))&&(e=t,t=i),!(ut(Iy,e)>=0)){Iy.push(e);var a=bx.wrapStageHandler(e,n);a.__prio=t,a.__raw=e,r.push(a)}}function yp(r,t){Cv[r]=t}function gI(r){U_({createCanvas:r})}function eb(r,t,e){var i=zx("registerMap");i&&i(r,t,e)}function yI(r){var t=zx("getMap");return t&&t(r)}var rb=CL;Ai(up,tP);Ai(Ru,eP);Ai(Ru,rP);Ai(up,dP);Ai(Ru,gP);Ai(Gx,UP);pp(tx);dp(KP,aL);yp("default",iP);ur({type:cn,event:cn,update:cn},Ft);ur({type:ul,event:ul,update:ul},Ft);ur({type:co,event:co,update:co},Ft);ur({type:fl,event:fl,update:fl},Ft);ur({type:po,event:po,update:po},Ft);cp("light",cP);cp("dark",Mx);var mI={};function za(r){return r==null?0:r.length||1}function Ry(r){return r}var mp=function(){function r(t,e,i,n,a,o){this._old=t,this._new=e,this._oldKeyGetter=i||Ry,this._newKeyGetter=n||Ry,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=i[s],u=za(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,i)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},a=[],o=[];this._initIndexMap(t,i,a,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=i[l],f=n[l],h=za(u),c=za(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(h===1&&c===1)this._update&&this._update(f,u),n[l]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],a=e[n],o=za(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[n]=null}},r.prototype._initIndexMap=function(t,e,i,n){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(a||(i[o]=s),!!e){var l=e[s],u=za(l);u===0?(e[s]=o,a&&i.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r}(),_I=function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r}();function SI(r,t){var e={},i=e.encode={},n=Y(),a=[],o=[],s={};T(r.dimensions,function(c){var v=r.getDimensionInfo(c),p=v.coordDim;if(p){var d=v.coordDimIndex;Zf(i,p)[d]=c,v.isExtraCoord||(n.set(p,1),bI(v.type)&&(a[0]=c),Zf(s,p)[d]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}YS.each(function(g,y){var m=Zf(i,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};n.each(function(c,v){var p=i[v];u[v]=p[0],l=l.concat(p)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=V(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(a=f.slice());var h=i.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),i.defaultedLabel=a,i.defaultedTooltip=o,e.userOutput=new _I(s,t),e}function Zf(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function xI(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function bI(r){return!(r==="ordinal"||r==="time")}var pl=function(){function r(t){this.otherDims={},t!=null&&O(this,t)}return r}(),wI=xt(),TI={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ib=function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=ob(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return Q(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=rx(this.source),i=!sb(t),n="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=e?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=e?c.name:null,u=c.type)}a.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!h||!h.isCalculationCoord)&&(n+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=TI[u]||"f",f&&(n+=f.uid),n+="$"}var v=this.source,p=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:a,hash:p}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,a=this.dimensions[i];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(n=a.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function nb(r){return r instanceof ib}function ab(r){for(var t=Y(),e=0;e<(r||[]).length;e++){var i=r[e],n=Z(i)?i.name:i;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function ob(r){var t=wI(r);return t.dimNameMap||(t.dimNameMap=ab(r.dimensionsDefine))}function sb(r){return r>30}var Va=Z,ii=V,CI=typeof Int32Array=="undefined"?Array:Int32Array,AI="e\0\0",Ey=-1,MI=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],DI=["_approximateExtent"],ky,Bs,Fa,Ga,$f,Ha,qf,ku=function(){function r(t,e){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 i,n=!1;nb(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var h=i[f],c=G(h)?new pl({name:h}):h instanceof pl?h:new pl(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var p=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]),p.itemName===0&&(this._nameDimIdx=f),p.itemId===0&&(this._idDimIdx=f),n&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=Y();T(o,function(g){d.set(a[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(i!=null)return i;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(yt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(i){return e.hasOwnProperty(i)?e[i]:void 0}:function(i){return e[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,i=e.encode[t];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,i){var n=this,a;if(t instanceof yv&&(a=t),!a){var o=this.dimensions,s=ep(t)||ne(t)?new ix(t,o.length):t;a=new yv;var l=ii(o,function(u){return{type:n._dimInfos[u].type,property:u}});a.initData(s,l,i)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=SI(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e&&e.length),n=i.start,a=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<a;s++){var l=s-n;this._nameList[s]=e[l],o&&qf(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==mi&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store,n=i.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===Ue;if(l&&!n.pure)for(var u=[],f=t;f<e;f++){var h=n.getItem(f,u);if(!this.hasItemOption&&eM(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=ee(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=ee(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)qf(this,f);ky(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Va(t)?O(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return i==null&&this._nameDimIdx!=null&&(i=Fa(this,this._nameDimIdx,e)),i==null&&(i=""),i},r.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},r.prototype.getId=function(t){return Bs(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var i=this,n=this._store;return z(t)?n.getValues(ii(t,function(a){return i._getStoreDimIndex(a)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i&&i[e];return n==null||isNaN(n)?Ey:n},r.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},r.prototype.each=function(t,e,i){j(t)&&(i=e,e=t,t=[]);var n=i||this,a=ii(Ga(t),this._getStoreDimIndex,this);this._store.each(a,n?U(e,n):e)},r.prototype.filterSelf=function(t,e,i){j(t)&&(i=e,e=t,t=[]);var n=i||this,a=ii(Ga(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,n?U(e,n):e),this},r.prototype.selectRange=function(t){var e=this,i={},n=st(t);return T(n,function(a){var o=e._getStoreDimIndex(a);i[o]=t[a]}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(t,e,i){j(t)&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i),n},r.prototype.map=function(t,e,i,n){var a=i||n||this,o=ii(Ga(t),this._getStoreDimIndex,this),s=Ha(this);return s._store=this._store.map(o,a?U(e,a):e),s},r.prototype.modify=function(t,e,i,n){var a=i||n||this,o=ii(Ga(t),this._getStoreDimIndex,this);this._store.modify(o,a?U(e,a):e)},r.prototype.downSample=function(t,e,i,n){var a=Ha(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),a},r.prototype.minmaxDownSample=function(t,e){var i=Ha(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),i},r.prototype.lttbDownSample=function(t,e){var i=Ha(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new St(i,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new mp(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return Bs(t,i)},function(i){return Bs(e,i)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Va(t)?O(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return n==null?this.getVisual(e):n},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var a=n[e];return a==null&&(a=this.getVisual(e),z(a)?a=a.slice():Va(a)&&(a=O({},a)),n[e]=a),a},r.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Va(e)?O(n,e):n[e]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Va(t)?O(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?O(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;hD(i,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){T(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:ii(this.dimensions,this._getDimInfo,this),this.hostModel)),$f(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var i=this[t];j(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=i.apply(this,arguments);return e.apply(this,[n].concat(nu(arguments)))})},r.internalField=function(){ky=function(t){var e=t._invertedIndicesMap;T(e,function(i,n){var a=t._dimInfos[n],o=a.ordinalMeta,s=t._store;if(o){i=e[n]=new CI(o.categories.length);for(var l=0;l<i.length;l++)i[l]=Ey;for(var l=0;l<s.count();l++)i[s.get(a.storeDimIndex,l)]=l}})},Fa=function(t,e,i){return ee(t._getCategory(e,i),null)},Bs=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=Fa(t,t._idDimIdx,e)),i==null&&(i=AI+e),i},Ga=function(t){return z(t)||(t=t!=null?[t]:[]),t},Ha=function(t){var e=new r(t._schema?t._schema:ii(t.dimensions,t._getDimInfo,t),t.hostModel);return $f(e,t),e},$f=function(t,e){T(MI.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,T(DI,function(i){t[i]=q(e[i])}),t._calculationInfo=O({},e._calculationInfo)},qf=function(t,e){var i=t._nameList,n=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=i[e],l=n[e];if(s==null&&a!=null&&(i[e]=s=Fa(t,a,e)),l==null&&o!=null&&(n[e]=l=Fa(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[e]=l}}}(),r}();function LI(r,t){return _p(r,t).dimensions}function _p(r,t){ep(r)||(r=rp(r)),t=t||{};var e=t.coordDimensions||[],i=t.dimensionsDefine||r.dimensionsDefine||[],n=Y(),a=[],o=II(r,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&sb(o),l=i===r.dimensionsDefine,u=l?ob(r):ab(i),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=Y(f),c=new fx(o),v=0;v<c.length;v++)c[v]=-1;function p(A){var M=c[A];if(M<0){var D=i[A],P=Z(D)?D:{name:D},L=new pl,I=P.name;I!=null&&u.get(I)!=null&&(L.name=L.displayName=I),P.type!=null&&(L.type=P.type),P.displayName!=null&&(L.displayName=P.displayName);var R=a.length;return c[A]=R,L.storeDimIndex=A,a.push(L),L}return a[M]}if(!s)for(var v=0;v<o;v++)p(v);h.each(function(A,M){var D=Mt(A).slice();if(D.length===1&&!G(D[0])&&D[0]<0){h.set(M,!1);return}var P=h.set(M,[]);T(D,function(L,I){var R=G(L)?u.get(L):L;R!=null&&R<o&&(P[I]=R,g(p(R),M,I))})});var d=0;T(e,function(A){var M,D,P,L;if(G(A))M=A,L={};else{L=A,M=L.name;var I=L.ordinalMeta;L.ordinalMeta=null,L=O({},L),L.ordinalMeta=I,D=L.dimsDef,P=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var R=h.get(M);if(R!==!1){if(R=Mt(R),!R.length)for(var k=0;k<(D&&D.length||1);k++){for(;d<o&&p(d).coordDim!=null;)d++;d<o&&R.push(d++)}T(R,function(F,B){var N=p(F);if(l&&L.type!=null&&(N.type=L.type),g(K(N,L),M,B),N.name==null&&D){var H=D[B];!Z(H)&&(H={name:H}),N.name=N.displayName=H.name,N.defaultTooltip=H.defaultTooltip}P&&K(N.otherDims,P)})}});function g(A,M,D){YS.get(M)!=null?A.otherDims[M]=D:(A.coordDim=M,A.coordDimIndex=D,n.set(M,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function b(A){A.name==null&&(A.name=A.coordDim)}if(s)T(a,function(A){b(A)}),a.sort(function(A,M){return A.storeDimIndex-M.storeDimIndex});else for(var x=0;x<o;x++){var w=p(x),C=w.coordDim;C==null&&(w.coordDim=RI(S,n,_),w.coordDimIndex=0,(!y||m<=0)&&(w.isExtraCoord=!0),m--),b(w),w.type==null&&(qS(r,x)===Wt.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return PI(a),new ib({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function PI(r){for(var t=Y(),e=0;e<r.length;e++){var i=r[e],n=i.name,a=t.get(n)||0;a>0&&(i.name=n+(a-1)),a++,t.set(n,a)}}function II(r,t,e,i){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,i||0);return T(t,function(a){var o;Z(a)&&(o=a.dimsDef)&&(n=Math.max(n,o.length))}),n}function RI(r,t,e){if(e||t.hasKey(r)){for(var i=0;t.hasKey(r+i);)i++;r+=i}return t.set(r,!0),r}var EI=function(){function r(t){this.coordSysDims=[],this.axisMap=Y(),this.categoryAxisMap=Y(),this.coordSysName=t}return r}();function kI(r){var t=r.get("coordinateSystem"),e=new EI(t),i=OI[t];if(i)return i(r,e,e.axisMap,e.categoryAxisMap),e}var OI={cartesian2d:function(r,t,e,i){var n=r.getReferringComponents("xAxis",Bt).models[0],a=r.getReferringComponents("yAxis",Bt).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",a),Wn(n)&&(i.set("x",n),t.firstCategoryDimIndex=0),Wn(a)&&(i.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,i){var n=r.getReferringComponents("singleAxis",Bt).models[0];t.coordSysDims=["single"],e.set("single",n),Wn(n)&&(i.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,i){var n=r.getReferringComponents("polar",Bt).models[0],a=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Wn(a)&&(i.set("radius",a),t.firstCategoryDimIndex=0),Wn(o)&&(i.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,i){var n=r.ecModel,a=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();T(a.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),Wn(u)&&(i.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Wn(r){return r.get("type")==="category"}function lb(r,t,e){e=e||{};var i=e.byIndex,n=e.stackedCoordDimension,a,o,s;BI(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,h,c;if(T(a,function(m,_){G(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!i&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!i&&!u&&(i=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,p=f.type,d=0;T(a,function(m){m.coordDim===v&&d++});var g={name:h,coordDim:v,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,p),y.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:h}}function BI(r){return!nb(r.schema)}function wi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function ub(r,t){return wi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function NI(r,t){var e=r.get("coordinateSystem"),i=Mu.get(e),n;return t&&t.coordSysDims&&(n=V(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=xI(l)}return o})),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function zI(r,t,e){var i,n;return e&&T(r,function(a,o){var s=a.coordDim,l=e.categoryAxisMap.get(s);l&&(i==null&&(i=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(n=!0)}),!n&&i!=null&&(r[i].otherDims.itemName=0),i}function ns(r,t,e){e=e||{};var i=t.getSourceManager(),n,a=!1;r?(a=!0,n=rp(r)):(n=i.getSource(),a=n.sourceFormat===Ue);var o=kI(t),s=NI(t,o),l=e.useEncodeDefaulter,u=j(l)?l:l?vt(O2,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=_p(n,f),c=zI(h.dimensions,e.createInvertedIndices,o),v=a?null:i.getSharedDataStore(h),p=lb(t,{schema:h,store:v}),d=new ku(h,t);d.setCalculationInfo(p);var g=c!=null&&VI(n)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(a?n:v,null,g),d}function VI(r){if(r.sourceFormat===Ue){var t=FI(r.data||[]);return!z(ya(t))}}function FI(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Lr=function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r}();fu(Lr);var GI=0,Av=function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++GI}return r.createByAxisModel=function(t){var e=t.option,i=e.data,n=i&&V(i,HI);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!G(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Y(this.categories))},r}();function HI(r){return Z(r)&&r.value!=null?r.value:r+""}function Mv(r){return r.type==="interval"||r.type==="log"}function WI(r,t,e,i){var n={},a=r[1]-r[0],o=n.interval=bc(a/t,!0);e!=null&&o<e&&(o=n.interval=e),i!=null&&o>i&&(o=n.interval=i);var s=n.intervalPrecision=fb(o),l=n.niceTickExtent=[Rt(Math.ceil(r[0]/o)*o,s),Rt(Math.floor(r[1]/o)*o,s)];return UI(l,r),n}function Kf(r){var t=Math.pow(10,uu(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Rt(e*t)}function fb(r){return xr(r)+2}function Oy(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function UI(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),Oy(r,0,t),Oy(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function Ou(r,t){return r>=t[0]&&r<=t[1]}function Bu(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function Nu(r,t){return r*(t[1]-t[0])+t[0]}var zu=function(r){E(t,r);function t(e){var i=r.call(this,e)||this;i.type="ordinal";var n=i.getSetting("ordinalMeta");return n||(n=new Av({})),z(n)&&(n=new Av({categories:V(n,function(a){return Z(a)?a.value:a})})),i._ordinalMeta=n,i._extent=i.getSetting("extent")||[0,n.categories.length-1],i}return t.prototype.parse=function(e){return e==null?NaN:G(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Ou(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Bu(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Nu(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,n=i[0];n<=i[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);o<l;++o){var u=i[o];n[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;n.push(f),a[f]=o}},t.prototype._getTickNumber=function(e){var i=this._ticksByOrdinalNumber;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getRawOrdinalNumber=function(e){var i=this._ordinalNumbersByTick;return i&&e>=0&&e<i.length?i[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var i=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[i];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(Lr);Lr.registerClass(zu);var Xi=Rt,Zr=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Ou(e,this._extent)},t.prototype.normalize=function(e){return Bu(e,this._extent)},t.prototype.scale=function(e){return Nu(e,this._extent)},t.prototype.setExtent=function(e,i){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(i)||(n[1]=parseFloat(i))},t.prototype.unionExtent=function(e){var i=this._extent;e[0]<i[0]&&(i[0]=e[0]),e[1]>i[1]&&(i[1]=e[1]),this.setExtent(i[0],i[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=fb(e)},t.prototype.getTicks=function(e){var i=this._interval,n=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!i)return s;var l=1e4;n[0]<a[0]&&(e?s.push({value:Xi(a[0]-i,o)}):s.push({value:n[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Xi(u+i,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return n[1]>f&&(e?s.push({value:Xi(f+i,o)}):s.push({value:n[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),n=[],a=this.getExtent(),o=1;o<i.length;o++){for(var s=i[o],l=i[o-1],u=0,f=[],h=s.value-l.value,c=h/e;u<e-1;){var v=Xi(l.value+(u+1)*c);v>a[0]&&v<a[1]&&f.push(v),u++}n.push(f)}return n},t.prototype.getLabel=function(e,i){if(e==null)return"";var n=i&&i.precision;n==null?n=xr(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var a=Xi(e.value,n,!0);return Zc(a)},t.prototype.calcNiceTicks=function(e,i,n){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=WI(a,e,i,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var n=Math.abs(i[0]);e.fixMax||(i[1]+=n/2),i[0]-=n/2}else i[1]=1;var a=i[1]-i[0];isFinite(a)||(i[0]=0,i[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(i[0]=Xi(Math.floor(i[0]/o)*o)),e.fixMax||(i[1]=Xi(Math.ceil(i[1]/o)*o))},t.prototype.setNiceExtent=function(e,i){this._niceExtent=[e,i]},t.type="interval",t}(Lr);Lr.registerClass(Zr);var hb=typeof Float32Array!="undefined",YI=hb?Float32Array:Array;function zr(r){return z(r)?hb?new Float32Array(r):r:new YI(r)}var Dv="__ec_stack_";function vb(r){return r.get("stack")||Dv+r.seriesIndex}function Sp(r){return r.dim+r.index}function hF(r){var t=[],e=r.axis,i="axis0";if(e.type==="category"){for(var n=e.getBandWidth(),a=0;a<r.count;a++)t.push(K({bandWidth:n,axisKey:i,stackId:Dv+a},r));for(var o=db(t),s=[],a=0;a<r.count;a++){var l=o[i][Dv+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function cb(r,t){var e=[];return t.eachSeriesByType(r,function(i){mb(i)&&e.push(i)}),e}function XI(r){var t={};T(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),p=h.getStore(),d=0,g=p.count();d<g;++d){var y=p.get(v,d);t[c]?t[c].push(y):t[c]=[y]}});var e={};for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];if(n){n.sort(function(l,u){return l-u});for(var a=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(a=a===null?s:Math.min(a,s))}e[i]=a}}return e}function pb(r){var t=XI(r),e=[];return T(r,function(i){var n=i.coordinateSystem,a=n.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=u?f/c*u:f}else{var v=i.getData();s=Math.abs(o[1]-o[0])/v.count()}var p=J(i.get("barWidth"),s),d=J(i.get("barMaxWidth"),s),g=J(i.get("barMinWidth")||(_b(i)?.5:1),s),y=i.get("barGap"),m=i.get("barCategoryGap");e.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Sp(a),stackId:vb(i)})}),db(e)}function db(r){var t={};T(r,function(i,n){var a=i.axisKey,o=i.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=i.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=i.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=i.barMaxWidth;h&&(l[u].maxWidth=h);var c=i.barMinWidth;c&&(l[u].minWidth=c);var v=i.barGap;v!=null&&(s.gap=v);var p=i.barCategoryGap;p!=null&&(s.categoryGap=p)});var e={};return T(t,function(i,n){e[n]={};var a=i.stacks,o=i.bandWidth,s=i.categoryGap;if(s==null){var l=st(a).length;s=Math.max(35-l*4,15)+"%"}var u=J(s,o),f=J(i.gap,1),h=i.remainedWidth,c=i.autoWidthCount,v=(h-u)/(c+(c-1)*f);v=Math.max(v,0),T(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,c--}else{var S=v;m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==v&&(y.width=S,h-=S+f*S,c--)}}),v=(h-u)/(c+(c-1)*f),v=Math.max(v,0);var p=0,d;T(a,function(y,m){y.width||(y.width=v),d=y,p+=y.width*(1+f)}),d&&(p-=d.width*f);var g=-p/2;T(a,function(y,m){e[n][m]=e[n][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function ZI(r,t,e){if(r&&t){var i=r[Sp(t)];return i}}function gb(r,t){var e=cb(r,t),i=pb(e);T(e,function(n){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=vb(n),u=i[Sp(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function yb(r){return{seriesType:r,plan:ap(),reset:function(t){if(mb(t)){var e=t.getData(),i=t.coordinateSystem,n=i.getBaseAxis(),a=i.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=wi(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=$I(n,a),p=_b(t),d=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=p&&zr(b*3),w=p&&l&&zr(b*3),C=p&&zr(b),A=i.master.getRect(),M=c?A.width:A.height,D,P=S.getStore(),L=0;(D=_.next())!=null;){var I=P.get(h?g:o,D),R=P.get(s,D),k=v,F=void 0;h&&(F=+I-P.get(o,D));var B=void 0,N=void 0,H=void 0,$=void 0;if(c){var X=i.dataToPoint([I,R]);if(h){var lt=i.dataToPoint([F,R]);k=lt[0]}B=k,N=X[1]+m,H=X[0]-k,$=y,Math.abs(H)<d&&(H=(H<0?-1:1)*d)}else{var X=i.dataToPoint([R,I]);if(h){var lt=i.dataToPoint([R,F]);k=lt[1]}B=X[0]+m,N=k,H=y,$=X[1]-k,Math.abs($)<d&&($=($<=0?-1:1)*d)}p?(x[L]=B,x[L+1]=N,x[L+2]=c?H:$,w&&(w[L]=c?A.x:B,w[L+1]=c?N:A.y,w[L+2]=M),C[D]=D):S.setItemLayout(D,{x:B,y:N,width:H,height:$}),L+=3}p&&S.setLayout({largePoints:x,largeDataIndices:C,largeBackgroundPoints:w,valueAxisHorizontal:c})}}}}}}function mb(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function _b(r){return r.pipelineContext&&r.pipelineContext.large}function $I(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var qI=function(r,t,e,i){for(;e<i;){var n=e+i>>>1;r[n][1]<t?e=n+1:i=n}return e},xp=function(r){E(t,r);function t(e){var i=r.call(this,e)||this;return i.type="time",i}return t.prototype.getLabel=function(e){var i=this.getSetting("useUTC");return rs(e.value,wg[w2(ia(this._minLevelUnit))]||wg.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,i,n){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return T2(e,i,n,o,a)},t.prototype.getTicks=function(){var e=this._interval,i=this._extent,n=[];if(!e)return n;n.push({value:i[0],level:0});var a=this.getSetting("useUTC"),o=rR(this._minLevelUnit,this._approxInterval,a,i);return n=n.concat(o),n.push({value:i[1],level:0}),n},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1]&&(i[0]-=Ve,i[1]+=Ve),i[1]===-1/0&&i[0]===1/0){var n=new Date;i[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),i[0]=i[1]-Ve}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,i,n){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,i!=null&&this._approxInterval<i&&(this._approxInterval=i),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var s=Ns.length,l=Math.min(qI(Ns,this._approxInterval,0,s),s-1);this._interval=Ns[l][1],this._minLevelUnit=Ns[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return yt(e)?e:+Me(e)},t.prototype.contain=function(e){return Ou(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Bu(this.parse(e),this._extent)},t.prototype.scale=function(e){return Nu(e,this._extent)},t.type="time",t}(Zr),Ns=[["second",Uc],["minute",Yc],["hour",mo],["quarter-day",mo*6],["half-day",mo*12],["day",Ve*1.2],["half-week",Ve*3.5],["week",Ve*7],["month",Ve*31],["quarter",Ve*95],["half-year",bg/2],["year",bg]];function KI(r,t,e,i){var n=Me(t),a=Me(e),o=function(p){return Tg(n,p,i)===Tg(a,p,i)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function jI(r,t){return r/=Ve,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function JI(r){var t=30*Ve;return r/=t,r>6?6:r>3?3:r>2?2:1}function QI(r){return r/=mo,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function By(r,t){return r/=t?Yc:Uc,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function tR(r){return bc(r,!0)}function eR(r,t,e){var i=new Date(r);switch(ia(t)){case"year":case"month":i[OS(e)](0);case"day":i[BS(e)](1);case"hour":i[NS(e)](0);case"minute":i[zS(e)](0);case"second":i[VS(e)](0),i[FS(e)](0)}return i.getTime()}function rR(r,t,e,i){var n=1e4,a=ES,o=0;function s(M,D,P,L,I,R,k){for(var F=new Date(D),B=D,N=F[L]();B<P&&B<=i[1];)k.push({value:B}),N+=M,F[I](N),B=F.getTime();k.push({value:B,notAdd:!0})}function l(M,D,P){var L=[],I=!D.length;if(!KI(ia(M),i[0],i[1],e)){I&&(D=[{value:eR(new Date(i[0]),M,e)},{value:i[1]}]);for(var R=0;R<D.length-1;R++){var k=D[R].value,F=D[R+1].value;if(k!==F){var B=void 0,N=void 0,H=void 0,$=!1;switch(M){case"year":B=Math.max(1,Math.round(t/Ve/365)),N=Xc(e),H=C2(e);break;case"half-year":case"quarter":case"month":B=JI(t),N=na(e),H=OS(e);break;case"week":case"half-week":case"day":B=jI(t),N=wu(e),H=BS(e),$=!0;break;case"half-day":case"quarter-day":case"hour":B=QI(t),N=Ro(e),H=NS(e);break;case"minute":B=By(t,!0),N=Tu(e),H=zS(e);break;case"second":B=By(t,!1),N=Cu(e),H=VS(e);break;case"millisecond":B=tR(t),N=Au(e),H=FS(e);break}s(B,k,F,N,H,$,L),M==="year"&&P.length>1&&R===0&&P.unshift({value:P[0].value-B})}}for(var R=0;R<L.length;R++)P.push(L[R]);return L}}for(var u=[],f=[],h=0,c=0,v=0;v<a.length&&o++<n;++v){var p=ia(a[v]);if(b2(a[v])){l(a[v],u[u.length-1]||[],f);var d=a[v+1]?ia(a[v+1]):null;if(p!==d){if(f.length){c=h,f.sort(function(M,D){return M.value-D.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=i[0]&&m<=i[1]&&h++)}var _=(i[1]-i[0])/t;if(h>_*1.5&&c>_/1.5||(u.push(g),h>_||r===a[v]))break}f=[]}}}for(var S=wt(V(u,function(M){return wt(M,function(D){return D.value>=i[0]&&D.value<=i[1]&&!D.notAdd})}),function(M){return M.length>0}),b=[],x=S.length-1,v=0;v<S.length;++v)for(var w=S[v],C=0;C<w.length;++C)b.push({value:w[C].value,level:x-v});b.sort(function(M,D){return M.value-D.value});for(var A=[],v=0;v<b.length;++v)(v===0||b[v].value!==b[v-1].value)&&A.push(b[v]);return A}Lr.registerClass(xp);var Ny=Lr.prototype,xo=Zr.prototype,iR=Rt,nR=Math.floor,aR=Math.ceil,zs=Math.pow,$e=Math.log,bp=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Zr,e._interval=0,e}return t.prototype.getTicks=function(e){var i=this._originalScale,n=this._extent,a=i.getExtent(),o=xo.getTicks.call(this,e);return V(o,function(s){var l=s.value,u=Rt(zs(this.base,l));return u=l===n[0]&&this._fixMin?Vs(u,a[0]):u,u=l===n[1]&&this._fixMax?Vs(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(e,i){var n=$e(this.base);e=$e(Math.max(0,e))/n,i=$e(Math.max(0,i))/n,xo.setExtent.call(this,e,i)},t.prototype.getExtent=function(){var e=this.base,i=Ny.getExtent.call(this);i[0]=zs(e,i[0]),i[1]=zs(e,i[1]);var n=this._originalScale,a=n.getExtent();return this._fixMin&&(i[0]=Vs(i[0],a[0])),this._fixMax&&(i[1]=Vs(i[1],a[1])),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var i=this.base;e[0]=$e(e[0])/$e(i),e[1]=$e(e[1])/$e(i),Ny.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,i){this.unionExtent(e.getApproximateExtent(i))},t.prototype.calcNiceTicks=function(e){e=e||10;var i=this._extent,n=i[1]-i[0];if(!(n===1/0||n<=0)){var a=B1(n),o=e/n*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Rt(aR(i[0]/a)*a),Rt(nR(i[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){xo.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=$e(e)/$e(this.base),Ou(e,this._extent)},t.prototype.normalize=function(e){return e=$e(e)/$e(this.base),Bu(e,this._extent)},t.prototype.scale=function(e){return e=Nu(e,this._extent),zs(this.base,e)},t.type="log",t}(Lr),Sb=bp.prototype;Sb.getMinorTicks=xo.getMinorTicks;Sb.getLabel=xo.getLabel;function Vs(r,t){return iR(r,xr(t))}Lr.registerClass(bp);var oR=function(){function r(t,e,i){this._prepareParams(t,e,i)}return r.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",!0);a==null&&(a=e.get("startValue",!0));var o=this._modelMinRaw=a;j(o)?this._modelMinNum=Fs(t,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=Fs(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(j(s)?this._modelMaxNum=Fs(t,s({min:i[0],max:i[1]})):s!=="dataMax"&&(this._modelMaxNum=Fs(t,s)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=z(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[nr(u[0],1),nr(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,n=this._axisDataLen,a=this._boundaryGapInner,o=t?null:i-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?n?0:NaN:e-a[0]*o),l==null&&(l=t?n?n-1:NaN:i+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=bo(s)||bo(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[lR[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var i=sR[t];this[i]=e},r.prototype.freeze=function(){this.frozen=!0},r}(),sR={min:"_determinedMin",max:"_determinedMax"},lR={min:"_dataMin",max:"_dataMax"};function xb(r,t,e){var i=r.rawExtentInfo;return i||(i=new oR(r,t,e),r.rawExtentInfo=i,i)}function Fs(r,t){return t==null?null:bo(t)?NaN:r.parse(t)}function bb(r,t){var e=r.type,i=xb(r,t,r.getExtent()).calculate();r.setBlank(i.isBlank);var n=i.min,a=i.max,o=t.ecModel;if(o&&e==="time"){var s=cb("bar",o),l=!1;if(T(s,function(h){l=l||h.getBaseAxis()===t.axis}),l){var u=pb(s),f=uR(n,a,t,u);n=f.min,a=f.max}}return{extent:[n,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function uR(r,t,e,i){var n=e.axis.getExtent(),a=Math.abs(n[1]-n[0]),o=ZI(i,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;T(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;T(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,h=1-(s+l)/a,c=f/h-f;return t+=c*(l/u),r-=c*(s/u),{min:r,max:t}}function va(r,t){var e=t,i=bb(r,e),n=i.extent,a=e.get("splitNumber");r instanceof bp&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:a,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Vu(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new zu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new xp({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Lr.getClass(t)||Zr)}}function fR(r){var t=r.scale.getExtent(),e=t[0],i=t[1];return!(e>0&&i>0||e<0&&i<0)}function Ta(r){var t=r.getLabelModel().get("formatter"),e=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(i){return function(n,a){return r.scale.getFormattedLabel(n,a,i)}}(t):G(t)?function(i){return function(n){var a=r.scale.getLabel(n),o=i.replace("{value}",a!=null?a:"");return o}}(t):j(t)?function(i){return function(n,a){return e!=null&&(a=n.value-e),i(wp(r,n),a,n.level!=null?{level:n.level}:null)}}(t):function(i){return r.scale.getLabel(i)}}function wp(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function hR(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var i,n,a=e.getExtent();e instanceof zu?n=e.count():(i=e.getTicks(),n=i.length);var o=r.getLabelModel(),s=Ta(r),l,u=1;n>40&&(u=Math.ceil(n/40));for(var f=0;f<n;f+=u){var h=i?i[f]:{value:a[0]+f},c=s(h,f),v=o.getTextRect(c),p=vR(v,o.get("rotate")||0);l?l.union(p):l=p}return l}}function vR(r,t){var e=t*Math.PI/180,i=r.width,n=r.height,a=i*Math.abs(Math.cos(e))+Math.abs(n*Math.sin(e)),o=i*Math.abs(Math.sin(e))+Math.abs(n*Math.cos(e)),s=new ft(r.x,r.y,a,o);return s}function Tp(r){var t=r.get("interval");return t==null?"auto":t}function wb(r){return r.type==="category"&&Tp(r.getLabelModel())===0}function Xl(r,t){var e={};return T(r.mapDimensionsAll(t),function(i){e[ub(r,i)]=!0}),st(e)}function cR(r,t,e){t&&T(Xl(t,e),function(i){var n=t.getApproximateExtent(i);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}var as=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r}();function pR(r){return ns(null,r)}var dR={isDimensionStacked:wi,enableDataStack:lb,getStackedDimension:ub};function gR(r,t){var e=t;t instanceof St||(e=new St(t));var i=Vu(e);return i.setExtent(r[0],r[1]),va(i,e),i}function yR(r){Zt(r,as)}function mR(r,t){return t=t||{},kt(r,null,null,t.state!=="normal")}const _R=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:LI,createList:pR,createScale:gR,createSymbol:Xt,createTextStyle:mR,dataStack:dR,enableHoverEmphasis:gi,getECData:at,getLayoutRect:ce,mixinAxisModelCommonMethods:yR},Symbol.toStringTag,{value:"Module"}));var zy=[],SR={registerPreprocessor:pp,registerProcessor:dp,registerPostInit:jx,registerPostUpdate:Jx,registerUpdateLifecycle:Eu,registerAction:ur,registerCoordinateSystem:Qx,registerLayout:tb,registerVisual:Ai,registerTransform:rb,registerLoading:yp,registerMap:eb,registerImpl:YP,PRIORITY:Hx,ComponentModel:ot,ComponentView:Ct,SeriesModel:Yt,ChartView:zt,registerComponentModel:function(r){ot.registerClass(r)},registerComponentView:function(r){Ct.registerClass(r)},registerSeriesModel:function(r){Yt.registerClass(r)},registerChartView:function(r){zt.registerClass(r)},registerSubTypeDefaulter:function(r,t){ot.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){P1(r,t)}};function Ht(r){if(z(r)){T(r,function(t){Ht(t)});return}ut(zy,r)>=0||(zy.push(r),j(r)&&(r={install:r}),r.install(SR))}var xR=1e-8;function Vy(r,t){return Math.abs(r-t)<xR}function Fy(r,t,e){var i=0,n=r[0];if(!n)return!1;for(var a=1;a<r.length;a++){var o=r[a];i+=Or(n[0],n[1],o[0],o[1],t,e),n=o}var s=r[0];return(!Vy(n[0],s[0])||!Vy(n[1],s[1]))&&(i+=Or(n[0],n[1],s[0],s[1],t,e)),i!==0}var bR=[];function jf(r,t){for(var e=0;e<r.length;e++)Gt(r[e],r[e],t)}function Gy(r,t,e,i){for(var n=0;n<r.length;n++){var a=r[n];i&&(a=i.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Br(t,t,a),Nr(e,e,a))}}function wR(r){for(var t=0,e=0,i=0,n=r.length,a=r[n-1][0],o=r[n-1][1],s=0;s<n;s++){var l=r[s][0],u=r[s][1],f=a*u-l*o;t+=f,e+=(a+l)*f,i+=(o+u)*f,a=l,o=u}return t?[e/t/3,i/t/3,t]:[r[0][0]||0,r[0][1]||0]}var Tb=function(){function r(t){this.name=t}return r.prototype.setCenter=function(t){this._center=t},r.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},r}(),Hy=function(){function r(t,e){this.type="polygon",this.exterior=t,this.interiors=e}return r}(),Wy=function(){function r(t){this.type="linestring",this.points=t}return r}(),Cb=function(r){E(t,r);function t(e,i,n){var a=r.call(this,e)||this;return a.type="geoJSON",a.geometries=i,a._center=n&&[n[0],n[1]],a}return t.prototype.calcCenter=function(){for(var e=this.geometries,i,n=0,a=0;a<e.length;a++){var o=e[a],s=o.exterior,l=s&&s.length;l>n&&(i=o,n=l)}if(i)return wR(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(e){var i=this._rect;if(i&&!e)return i;var n=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return T(o,function(s){s.type==="polygon"?Gy(s.exterior,n,a,e):T(s.points,function(l){Gy(l,n,a,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(a[0])&&isFinite(a[1])||(n[0]=n[1]=a[0]=a[1]=0),i=new ft(n[0],n[1],a[0]-n[0],a[1]-n[1]),e||(this._rect=i),i},t.prototype.contain=function(e){var i=this.getBoundingRect(),n=this.geometries;if(!i.contain(e[0],e[1]))return!1;t:for(var a=0,o=n.length;a<o;a++){var s=n[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Fy(l,e[0],e[1])){for(var f=0;f<(u?u.length:0);f++)if(Fy(u[f],e[0],e[1]))continue t;return!0}}}return!1},t.prototype.transformTo=function(e,i,n,a){var o=this.getBoundingRect(),s=o.width/o.height;n?a||(a=n/s):n=s*a;for(var l=new ft(e,i,n,a),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var c=f[h];c.type==="polygon"?(jf(c.exterior,u),T(c.interiors,function(v){jf(v,u)})):T(c.points,function(v){jf(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(e){e==null&&(e=this.name);var i=new t(e,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},t}(Tb),TR=function(r){E(t,r);function t(e,i){var n=r.call(this,e)||this;return n.type="geoSVG",n._elOnlyForCalculate=i,n}return t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,i=e.getBoundingRect(),n=[i.x+i.width/2,i.y+i.height/2],a=$o(bR),o=e;o&&!o.isGeoSVGGraphicRoot;)Tr(a,o.getLocalTransform(),a),o=o.parent;return Tn(a,a),Gt(n,n,a),n},t}(Tb);function CR(r){if(!r.UTF8Encoding)return r;var t=r,e=t.UTF8Scale;e==null&&(e=1024);var i=t.features;return T(i,function(n){var a=n.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=Ab(s,o,e);break;case"Polygon":Jf(s,o,e);break;case"MultiLineString":Jf(s,o,e);break;case"MultiPolygon":T(s,function(l,u){return Jf(l,o[u],e)})}}),t.UTF8Encoding=!1,t}function Jf(r,t,e){for(var i=0;i<r.length;i++)r[i]=Ab(r[i],t[i],e)}function Ab(r,t,e){for(var i=[],n=t[0],a=t[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=n,l+=a,n=s,a=l,i.push([s/e,l/e])}return i}function Lv(r,t){return r=CR(r),V(wt(r.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var i=e.properties,n=e.geometry,a=[];switch(n.type){case"Polygon":var o=n.coordinates;a.push(new Hy(o[0],o.slice(1)));break;case"MultiPolygon":T(n.coordinates,function(l){l[0]&&a.push(new Hy(l[0],l.slice(1)))});break;case"LineString":a.push(new Wy([n.coordinates]));break;case"MultiLineString":a.push(new Wy(n.coordinates))}var s=new Cb(i[t||"name"],a,i.cp);return s.properties=i,s})}const AR=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:JA,asc:Sr,getPercentWithPrecision:KA,getPixelPrecision:Sc,getPrecision:xr,getPrecisionSafe:k1,isNumeric:wc,isRadianAroundZero:Mo,linearMap:Tt,nice:bc,numericToNumber:Ur,parseDate:Me,quantile:tM,quantity:B1,quantityExponent:uu,reformIntervals:ev,remRadian:xc,round:Rt},Symbol.toStringTag,{value:"Module"})),MR=Object.freeze(Object.defineProperty({__proto__:null,format:rs,parse:Me},Symbol.toStringTag,{value:"Module"})),DR=Object.freeze(Object.defineProperty({__proto__:null,Arc:Qo,BezierCurve:gu,BoundingRect:ft,Circle:Mr,CompoundPath:yu,Ellipse:Jo,Group:nt,Image:ae,IncrementalDisplayable:xS,Line:re,LinearGradient:ts,Polygon:sr,Polyline:De,RadialGradient:kc,Rect:pt,Ring:ma,Sector:or,Text:dt,clipPointsByRect:Fc,clipRectByRect:AS,createIcon:_a,extendPath:TS,extendShape:wS,getShapeClass:Nc,getTransform:yi,initProps:ie,makeImage:zc,makePath:mu,mergePath:ze,registerShape:We,resizePath:Vc,updateProps:Dt},Symbol.toStringTag,{value:"Module"})),LR=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Zc,capitalFirst:L2,encodeHTML:te,formatTime:D2,formatTpl:qc,getTextRect:A2,getTooltipMarker:GS,normalizeCssArray:An,toCamelCase:$c,truncateText:DM},Symbol.toStringTag,{value:"Module"})),PR=Object.freeze(Object.defineProperty({__proto__:null,bind:U,clone:q,curry:vt,defaults:K,each:T,extend:O,filter:wt,indexOf:ut,inherits:fc,isArray:z,isFunction:j,isObject:Z,isString:G,map:V,merge:et,reduce:Ge},Symbol.toStringTag,{value:"Module"}));var zo=xt();function Mb(r,t){var e=V(t,function(i){return r.scale.parse(i)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function IR(r){var t=r.getLabelModel().get("customValues");if(t){var e=Ta(r),i=r.scale.getExtent(),n=Mb(r,t),a=wt(n,function(o){return o>=i[0]&&o<=i[1]});return{labels:V(a,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?ER(r):OR(r)}function RR(r,t){var e=r.getTickModel().get("customValues");if(e){var i=r.scale.getExtent(),n=Mb(r,e);return{ticks:wt(n,function(a){return a>=i[0]&&a<=i[1]})}}return r.type==="category"?kR(r,t):{ticks:V(r.scale.getTicks(),function(a){return a.value})}}function ER(r){var t=r.getLabelModel(),e=Db(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function Db(r,t){var e=Lb(r,"labels"),i=Tp(t),n=Pb(e,i);if(n)return n;var a,o;return j(i)?a=Eb(r,i):(o=i==="auto"?BR(r):i,a=Rb(r,o)),Ib(e,i,{labels:a,labelCategoryInterval:o})}function kR(r,t){var e=Lb(r,"ticks"),i=Tp(t),n=Pb(e,i);if(n)return n;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),j(i))a=Eb(r,i,!0);else if(i==="auto"){var s=Db(r,r.getLabelModel());o=s.labelCategoryInterval,a=V(s.labels,function(l){return l.tickValue})}else o=i,a=Rb(r,o,!0);return Ib(e,i,{ticks:a,tickCategoryInterval:o})}function OR(r){var t=r.scale.getTicks(),e=Ta(r);return{labels:V(t,function(i,n){return{level:i.level,formattedLabel:e(i,n),rawLabel:r.scale.getLabel(i),tickValue:i.value}})}}function Lb(r,t){return zo(r)[t]||(zo(r)[t]=[])}function Pb(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function Ib(r,t,e){return r.push({key:t,value:e}),e}function BR(r){var t=zo(r).autoInterval;return t!=null?t:zo(r).autoInterval=r.calculateCategoryInterval()}function NR(r){var t=zR(r),e=Ta(r),i=(t.axisRotate-t.labelRotate)/180*Math.PI,n=r.scale,a=n.getExtent(),o=n.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),c=0,v=0;l<=a[1];l+=s){var p=0,d=0,g=Ko(e({value:l}),t.font,"center","top");p=g.width*1.3,d=g.height*1.3,c=Math.max(c,p,7),v=Math.max(v,d,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=zo(r.model),b=r.getExtent(),x=S.lastAutoInterval,w=S.lastTickCount;return x!=null&&w!=null&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&S.axisExtent0===b[0]&&S.axisExtent1===b[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=b[0],S.axisExtent1=b[1]),_}function zR(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Rb(r,t,e){var i=Ta(r),n=r.scale,a=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=wb(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&u!==a[0]&&d(a[0]);for(var p=u;p<=a[1];p+=l)d(p);v&&p-l!==a[1]&&d(a[1]);function d(g){var y={value:g};s.push(e?g:{formattedLabel:i(y),rawLabel:n.getLabel(y),tickValue:g})}return s}function Eb(r,t,e){var i=r.scale,n=Ta(r),a=[];return T(i.getTicks(),function(o){var s=i.getLabel(o),l=o.value;t(o.value,s)&&a.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l})}),a}var Uy=[0,1],fr=function(){function r(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return r.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return Sc(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},r.prototype.dataToCoord=function(t,e){var i=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&n.type==="ordinal"&&(i=i.slice(),Yy(i,n.count())),Tt(t,Uy,i,e)},r.prototype.coordToData=function(t,e){var i=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(i=i.slice(),Yy(i,n.count()));var a=Tt(t,i,Uy,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),i=RR(this,e),n=i.ticks,a=V(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return VR(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var i=this.scale.getMinorTicks(e),n=V(i,function(a){return V(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(){return IR(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),i=e[1]-e[0]+(this.onBand?1:0);i===0&&(i=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/i},r.prototype.calculateCategoryInterval=function(){return NR(this)},r}();function Yy(r,t){var e=r[1]-r[0],i=t,n=e/i/2;r[0]+=n,r[1]-=n}function VR(r,t,e,i){var n=t.length;if(!r.onBand||e||!n)return;var a=r.getExtent(),o,s;if(n===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;T(t,function(v){v.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:f[1]+1},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(i?t[0].coord=a[0]:t.shift()),i&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(i?o.coord=a[1]:t.pop()),i&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,p){return v=Rt(v),p=Rt(p),h?v>p:v<p}}function FR(r){var t=ot.extend(r);return ot.registerClass(t),t}function GR(r){var t=Ct.extend(r);return Ct.registerClass(t),t}function HR(r){var t=Yt.extend(r);return Yt.registerClass(t),t}function WR(r){var t=zt.extend(r);return zt.registerClass(t),t}var Wa=Math.PI*2,Zi=Xr.CMD,UR=["top","right","bottom","left"];function YR(r,t,e,i,n){var a=e.width,o=e.height;switch(r){case"top":i.set(e.x+a/2,e.y-t),n.set(0,-1);break;case"bottom":i.set(e.x+a/2,e.y+o+t),n.set(0,1);break;case"left":i.set(e.x-t,e.y+o/2),n.set(-1,0);break;case"right":i.set(e.x+a+t,e.y+o/2),n.set(1,0);break}}function XR(r,t,e,i,n,a,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,h=s*e+t;if(Math.abs(i-n)%Wa<1e-4)return l[0]=f,l[1]=h,u-e;if(a){var c=i;i=vi(n),n=vi(c)}else i=vi(i),n=vi(n);i>n&&(n+=Wa);var v=Math.atan2(s,o);if(v<0&&(v+=Wa),v>=i&&v<=n||v+Wa>=i&&v+Wa<=n)return l[0]=f,l[1]=h,u-e;var p=e*Math.cos(i)+r,d=e*Math.sin(i)+t,g=e*Math.cos(n)+r,y=e*Math.sin(n)+t,m=(p-o)*(p-o)+(d-s)*(d-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(l[0]=p,l[1]=d,Math.sqrt(m)):(l[0]=g,l[1]=y,Math.sqrt(_))}function Zl(r,t,e,i,n,a,o,s){var l=n-r,u=a-t,f=e-r,h=i-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=l*f+u*h,p=v/c;s&&(p=Math.min(Math.max(p,0),1)),p*=c;var d=o[0]=r+p*f,g=o[1]=t+p*h;return Math.sqrt((d-n)*(d-n)+(g-a)*(g-a))}function kb(r,t,e,i,n,a,o){e<0&&(r=r+e,e=-e),i<0&&(t=t+i,i=-i);var s=r+e,l=t+i,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-n)*(u-n)+(f-a)*(f-a))}var Je=[];function ZR(r,t,e){var i=kb(t.x,t.y,t.width,t.height,r.x,r.y,Je);return e.set(Je[0],Je[1]),i}function $R(r,t,e){for(var i=0,n=0,a=0,o=0,s,l,u=1/0,f=t.data,h=r.x,c=r.y,v=0;v<f.length;){var p=f[v++];v===1&&(i=f[v],n=f[v+1],a=i,o=n);var d=u;switch(p){case Zi.M:a=f[v++],o=f[v++],i=a,n=o;break;case Zi.L:d=Zl(i,n,f[v],f[v+1],h,c,Je,!0),i=f[v++],n=f[v++];break;case Zi.C:d=c1(i,n,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],h,c,Je),i=f[v++],n=f[v++];break;case Zi.Q:d=d1(i,n,f[v++],f[v++],f[v],f[v+1],h,c,Je),i=f[v++],n=f[v++];break;case Zi.A:var g=f[v++],y=f[v++],m=f[v++],_=f[v++],S=f[v++],b=f[v++];v+=1;var x=!!(1-f[v++]);s=Math.cos(S)*m+g,l=Math.sin(S)*_+y,v<=1&&(a=s,o=l);var w=(h-g)*_/m+g;d=XR(g,y,_,S,S+b,x,w,c,Je),i=Math.cos(S+b)*m+g,n=Math.sin(S+b)*_+y;break;case Zi.R:a=i=f[v++],o=n=f[v++];var C=f[v++],A=f[v++];d=kb(a,o,C,A,h,c,Je);break;case Zi.Z:d=Zl(i,n,a,o,h,c,Je,!0),i=a,n=o;break}d<u&&(u=d,e.set(Je[0],Je[1]))}return u}var tr=new rt,bt=new rt,It=new rt,wr=new rt,_r=new rt;function vF(r,t){if(r){var e=r.getTextGuideLine(),i=r.getTextContent();if(i&&e){var n=r.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=n.candidates||UR,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=n.anchor,f=r.getComputedTransform(),h=f&&Tn([],f),c=t.get("length2")||0;u&&It.copy(u);for(var v=0;v<o.length;v++){var p=o[v];YR(p,0,s,tr,wr),rt.scaleAndAdd(bt,tr,wr,c),bt.transform(h);var d=r.getBoundingRect(),g=u?u.distance(bt):r instanceof gt?$R(bt,r.path,It):ZR(bt,d,It);g<l&&(l=g,bt.transform(f),It.transform(f),It.toArray(a[0]),bt.toArray(a[1]),tr.toArray(a[2]))}Ob(a,t.get("minTurnAngle")),e.setShape({points:a})}}}var $l=[],le=new rt;function Ob(r,t){if(t<=180&&t>0){t=t/180*Math.PI,tr.fromArray(r[0]),bt.fromArray(r[1]),It.fromArray(r[2]),rt.sub(wr,tr,bt),rt.sub(_r,It,bt);var e=wr.len(),i=_r.len();if(!(e<.001||i<.001)){wr.scale(1/e),_r.scale(1/i);var n=wr.dot(_r),a=Math.cos(t);if(a<n){var o=Zl(bt.x,bt.y,It.x,It.y,tr.x,tr.y,$l,!1);le.fromArray($l),le.scaleAndAdd(_r,o/Math.tan(Math.PI-t));var s=It.x!==bt.x?(le.x-bt.x)/(It.x-bt.x):(le.y-bt.y)/(It.y-bt.y);if(isNaN(s))return;s<0?rt.copy(le,bt):s>1&&rt.copy(le,It),le.toArray(r[1])}}}}function qR(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,tr.fromArray(r[0]),bt.fromArray(r[1]),It.fromArray(r[2]),rt.sub(wr,bt,tr),rt.sub(_r,It,bt);var i=wr.len(),n=_r.len();if(!(i<.001||n<.001)){wr.scale(1/i),_r.scale(1/n);var a=wr.dot(t),o=Math.cos(e);if(a<o){var s=Zl(bt.x,bt.y,It.x,It.y,tr.x,tr.y,$l,!1);le.fromArray($l);var l=Math.PI/2,u=Math.acos(_r.dot(t)),f=l+u-e;if(f>=l)rt.copy(le,It);else{le.scaleAndAdd(_r,s/Math.tan(Math.PI/2-f));var h=It.x!==bt.x?(le.x-bt.x)/(It.x-bt.x):(le.y-bt.y)/(It.y-bt.y);if(isNaN(h))return;h<0?rt.copy(le,bt):h>1&&rt.copy(le,It)}le.toArray(r[1])}}}}function Qf(r,t,e,i){var n=e==="normal",a=n?r:r.ensureState(e);a.ignore=t;var o=i.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=i.getModel("lineStyle").getLineStyle();n?r.useStyle(s):a.style=s}function KR(r,t){var e=t.smooth,i=t.points;if(i)if(r.moveTo(i[0][0],i[0][1]),e>0&&i.length>=3){var n=xl(i[0],i[1]),a=xl(i[1],i[2]);if(!n||!a){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(n,a)*e,s=el([],i[1],i[0],o/n),l=el([],i[1],i[2],o/a),u=el([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)r.lineTo(i[f][0],i[f][1])}function jR(r,t,e){var i=r.getTextGuideLine(),n=r.getTextContent();if(!n){i&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=n.ignore,l=0;l<Pl.length;l++){var u=Pl[l],f=t[u],h=u==="normal";if(f){var c=f.get("show"),v=h?s:Q(n.states[u]&&n.states[u].ignore,s);if(v||!Q(c,o)){var p=h?i:i&&i.states[u];p&&(p.ignore=!0),i&&Qf(i,!0,u,f);continue}i||(i=new De,r.setTextGuideLine(i),!h&&(s||!o)&&Qf(i,!0,"normal",t.normal),r.stateProxy&&(i.stateProxy=r.stateProxy)),Qf(i,!1,u,f)}}if(i){K(i.style,e),i.style.fill=null;var d=a.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=d||!1,i.buildPath=KR}}function JR(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},i=0;i<He.length;i++){var n=He[i];e[n]=r.getModel([n,t])}return e}function QR(r){for(var t=[],e=0;e<r.length;e++){var i=r[e];if(!i.defaultAttr.ignore){var n=i.label,a=n.getComputedTransform(),o=n.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=n.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Il(o,a):null;t.push({label:n,labelLine:i.labelLine,rect:u,localRect:o,obb:f,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:a})}}return t}function Bb(r,t,e,i,n,a){var o=r.length;if(o<2)return;r.sort(function(x,w){return x.rect[t]-w.rect[t]});for(var s=0,l,u=!1,f=0;f<o;f++){var h=r[f],c=h.rect;l=c[t]-s,l<0&&(c[t]-=l,h.label[t]-=l,u=!0),s=c[t]+c[e]}var v=r[0],p=r[o-1],d,g;y(),d<0&&S(-d,.8),g<0&&S(g,.8),y(),m(d,g,1),m(g,d,-1),y(),d<0&&b(-d),g<0&&b(g);function y(){d=v.rect[t]-i,g=n-p.rect[t]-p.rect[e]}function m(x,w,C){if(x<0){var A=Math.min(w,-x);if(A>0){_(A*C,0,o);var M=A+x;M<0&&S(-M*C,1)}else S(-x*C,1)}}function _(x,w,C){x!==0&&(u=!0);for(var A=w;A<C;A++){var M=r[A],D=M.rect;D[t]+=x,M.label[t]+=x}}function S(x,w){for(var C=[],A=0,M=1;M<o;M++){var D=r[M-1].rect,P=Math.max(r[M].rect[t]-D[t]-D[e],0);C.push(P),A+=P}if(A){var L=Math.min(Math.abs(x)/A,w);if(x>0)for(var M=0;M<o-1;M++){var I=C[M]*L;_(I,0,M+1)}else for(var M=o-1;M>0;M--){var I=C[M-1]*L;_(-I,M,o)}}}function b(x){var w=x<0?-1:1;x=Math.abs(x);for(var C=Math.ceil(x/(o-1)),A=0;A<o-1;A++)if(w>0?_(C,0,A+1):_(-C,o-A-1,o),x-=C,x<=0)return}return u}function cF(r,t,e,i){return Bb(r,"x","width",t,e)}function tE(r,t,e,i){return Bb(r,"y","height",t,e)}function eE(r){var t=[];r.sort(function(d,g){return g.priority-d.priority});var e=new ft(0,0,0,0);function i(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.ignore=!0}for(var n=0;n<r.length;n++){var a=r[n],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=a.obb,c=!1,v=0;v<t.length;v++){var p=t[v];if(e.intersect(p.rect)){if(o&&p.axisAligned){c=!0;break}if(p.obb||(p.obb=new Il(p.localRect,p.transform)),h||(h=new Il(s,l)),h.intersect(p.obb)){c=!0;break}}}c?(i(u),f&&i(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}const Xy=Object.freeze(Object.defineProperty({__proto__:null,Axis:fr,ChartView:zt,ComponentModel:ot,ComponentView:Ct,List:ku,Model:St,PRIORITY:Hx,SeriesModel:Yt,color:fA,connect:hI,dataTool:mI,dependencies:ZP,disConnect:vI,disconnect:Kx,dispose:cI,env:it,extendChartView:WR,extendComponentModel:FR,extendComponentView:GR,extendSeriesModel:HR,format:LR,getCoordinateSystemDimensions:dI,getInstanceByDom:vp,getInstanceById:pI,getMap:yI,graphic:DR,helper:_R,init:fI,innerDrawElementOnCanvas:Ex,matrix:HC,number:AR,parseGeoJSON:Lv,parseGeoJson:Lv,registerAction:ur,registerCoordinateSystem:Qx,registerLayout:tb,registerLoading:yp,registerLocale:Wc,registerMap:eb,registerPostInit:jx,registerPostUpdate:Jx,registerPreprocessor:pp,registerProcessor:dp,registerTheme:cp,registerTransform:rb,registerUpdateLifecycle:Eu,registerVisual:Ai,setCanvasCreator:gI,setPlatformAPI:U_,throttle:Pu,time:MR,use:Ht,util:PR,vector:MC,version:XP,zrUtil:mC,zrender:ZA},Symbol.toStringTag,{value:"Module"}));var rE=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return ns(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var i=new nt,n=Xt("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);i.add(n),n.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=e.itemHeight*.8,u=Xt(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);i.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),i},t.type="series.line",t.dependencies=["grid","polar"],t.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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Yt);function Fu(r,t){var e=r.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var n=ha(r,t,e[0]);return n!=null?n+"":null}else if(i){for(var a=[],o=0;o<e.length;o++)a.push(ha(r,t,e[o]));return a.join(" ")}}function Nb(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!z(t))return t+"";for(var i=[],n=0;n<e.length;n++){var a=r.getDimensionIndex(e[n]);a>=0&&i.push(t[a])}return i.join(" ")}var Cp=function(r){E(t,r);function t(e,i,n,a){var o=r.call(this)||this;return o.updateData(e,i,n,a),o}return t.prototype._createSymbol=function(e,i,n,a,o){this.removeAll();var s=Xt(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=iE,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){la(this.childAt(0))},t.prototype.downplay=function(){ua(this.childAt(0))},t.prototype.setZ=function(e,i){var n=this.childAt(0);n.zlevel=e,n.z=i},t.prototype.setDraggable=function(e,i){var n=this.childAt(0);n.draggable=e,n.cursor=!i&&e?"move":n.cursor},t.prototype.updateData=function(e,i,n,a){this.silent=!1;var o=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,e,i,l,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:l[0]/2,scaleY:l[1]/2};f?c.attr(v):Dt(c,v,s,i),Po(c)}if(this._updateCommon(e,i,l,n,a),u){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,ie(c,v,s,i)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,n,a,o){var s=this.childAt(0),l=e.hostModel,u,f,h,c,v,p,d,g,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,d=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,p=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(i),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),p=_.get("disabled"),d=jr(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(i,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Iu(e.getItemVisual(i,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(i,"style"),w=x.fill;if(s instanceof ae){var C=s.style;s.useStyle(O({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},x))}else s.__isEmptyBrush?s.useStyle(O({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=e.getItemVisual(i,"liftZ"),M=this._z2;A!=null?M==null&&(this._z2=s.z2,s.z2+=A):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;Kr(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:P,inheritColor:w,defaultOpacity:x.opacity});function P(R){return D?e.getName(R):Fu(e,R)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var I=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*I,L.scaleY=this._sizeY*I,this.setSymbolScale(1),xi(this,c,v,p)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,n){var a=this.childAt(0),o=at(this).dataIndex,s=n&&n.animation;if(this.silent=a.silent=!0,n&&n.fadeLabel){var l=a.getTextContent();l&&Lo(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Lo(a,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return sp(e.getItemVisual(i,"symbolSize"))},t}(nt);function iE(r,t){this.parent.drift(r,t)}function th(r,t,e,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(e))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Zy(r){return r!=null&&!Z(r)&&(r={isIgnore:r}),r||{}}function $y(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:jr(t),cursorStyle:t.get("cursor")}}var zb=function(){function r(t){this.group=new nt,this._SymbolCtor=t||Cp}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Zy(e);var i=this.group,n=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=$y(t),u={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||i.removeAll(),t.diff(a).add(function(h){var c=f(h);if(th(t,c,h,e)){var v=new o(t,h,l,u);v.setPosition(c),t.setItemGraphicEl(h,v),i.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),p=f(h);if(!th(t,p,h,e)){i.remove(v);return}var d=t.getItemVisual(h,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==d)i.remove(v),v=new o(t,h,l,u),v.setPosition(p);else{v.updateData(t,h,l,u);var y={x:p[0],y:p[1]};s?v.attr(y):Dt(v,y,n)}i.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){i.remove(c)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,n){var a=t._getSymbolPoint(n);i.setPosition(a),i.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=$y(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,i){this._progressiveEls=[],i=Zy(i);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(th(e,o,a,i)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){xu(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},i.hostModel)}):e.removeAll()},r}();function Vb(r,t,e){var i=r.getBaseAxis(),n=r.getOtherAxis(i),a=nE(n,e),o=i.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=V(r.dimensions,function(p){return t.mapDimension(p)}),c=!1,v=t.getCalculationInfo("stackResultDimension");return wi(t,h[0])&&(c=!0,h[0]=v),wi(t,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function nE(r,t){var e=0,i=r.scale.getExtent();return t==="start"?e=i[0]:t==="end"?e=i[1]:yt(t)&&!isNaN(t)?e=t:i[0]>0?e=i[0]:i[1]<0&&(e=i[1]),e}function Fb(r,t,e,i){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(n)&&(n=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,i),o[1-a]=n,t.dataToPoint(o)}function aE(r,t){var e=[];return t.diff(r).add(function(i){e.push({cmd:"+",idx:i})}).update(function(i,n){e.push({cmd:"=",idx:n,idx1:i})}).remove(function(i){e.push({cmd:"-",idx:i})}).execute(),e}function oE(r,t,e,i,n,a,o,s){for(var l=aE(r,t),u=[],f=[],h=[],c=[],v=[],p=[],d=[],g=Vb(n,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,w=void 0;switch(S.cmd){case"=":x=S.idx*2,w=S.idx1*2;var C=y[x],A=y[x+1],M=m[w],D=m[w+1];(isNaN(C)||isNaN(A))&&(C=M,A=D),u.push(C,A),f.push(M,D),h.push(e[x],e[x+1]),c.push(i[w],i[w+1]),d.push(t.getRawIndex(S.idx1));break;case"+":var P=S.idx,L=g.dataDimsForPoint,I=n.dataToPoint([t.get(L[0],P),t.get(L[1],P)]);w=P*2,u.push(I[0],I[1]),f.push(m[w],m[w+1]);var R=Fb(g,n,t,P);h.push(R[0],R[1]),c.push(i[w],i[w+1]),d.push(t.getRawIndex(P));break;case"-":b=!1}b&&(v.push(S),p.push(p.length))}p.sort(function(mt,$t){return d[mt]-d[$t]});for(var k=u.length,F=zr(k),B=zr(k),N=zr(k),H=zr(k),$=[],_=0;_<p.length;_++){var X=p[_],lt=_*2,ct=X*2;F[lt]=u[ct],F[lt+1]=u[ct+1],B[lt]=f[ct],B[lt+1]=f[ct+1],N[lt]=h[ct],N[lt+1]=h[ct+1],H[lt]=c[ct],H[lt+1]=c[ct+1],$[_]=v[X]}return{current:F,next:B,stackedOnCurrent:N,stackedOnNext:H,status:$}}var ni=Math.min,ai=Math.max;function gn(r,t){return isNaN(r)||isNaN(t)}function Pv(r,t,e,i,n,a,o,s,l){for(var u,f,h,c,v,p,d=e,g=0;g<i;g++){var y=t[d*2],m=t[d*2+1];if(d>=n||d<0)break;if(gn(y,m)){if(l){d+=a;continue}break}if(d===e)r[a>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=a;continue}if(o>0){for(var b=d+a,x=t[b*2],w=t[b*2+1];x===y&&w===m&&g<i;)g++,b+=a,d+=a,x=t[b*2],w=t[b*2+1],y=t[d*2],m=t[d*2+1],_=y-u,S=m-f;var C=g+1;if(l)for(;gn(x,w)&&C<i;)C++,b+=a,x=t[b*2],w=t[b*2+1];var A=.5,M=0,D=0,P=void 0,L=void 0;if(C>=i||gn(x,w))v=y,p=m;else{M=x-u,D=w-f;var I=y-u,R=x-y,k=m-f,F=w-m,B=void 0,N=void 0;if(s==="x"){B=Math.abs(I),N=Math.abs(R);var H=M>0?1:-1;v=y-H*B*o,p=m,P=y+H*N*o,L=m}else if(s==="y"){B=Math.abs(k),N=Math.abs(F);var $=D>0?1:-1;v=y,p=m-$*B*o,P=y,L=m+$*N*o}else B=Math.sqrt(I*I+k*k),N=Math.sqrt(R*R+F*F),A=N/(N+B),v=y-M*o*(1-A),p=m-D*o*(1-A),P=y+M*o*A,L=m+D*o*A,P=ni(P,ai(x,y)),L=ni(L,ai(w,m)),P=ai(P,ni(x,y)),L=ai(L,ni(w,m)),M=P-y,D=L-m,v=y-M*B/N,p=m-D*B/N,v=ni(v,ai(u,y)),p=ni(p,ai(f,m)),v=ai(v,ni(u,y)),p=ai(p,ni(f,m)),M=y-v,D=m-p,P=y+M*N/B,L=m+D*N/B}r.bezierCurveTo(h,c,v,p,y,m),h=P,c=L}else r.lineTo(y,m)}u=y,f=m,d+=a}return g}var Gb=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),sE=function(r){E(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polyline",i}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Gb},t.prototype.buildPath=function(e,i){var n=i.points,a=0,o=n.length/2;if(i.connectNulls){for(;o>0&&gn(n[o*2-2],n[o*2-1]);o--);for(;a<o&&gn(n[a*2],n[a*2+1]);a++);}for(;a<o;)a+=Pv(e,n,a,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},t.prototype.getPointOn=function(e,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,a=n.data,o=Xr.CMD,s,l,u=i==="x",f=[],h=0;h<a.length;){var c=a[h++],v=void 0,p=void 0,d=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(c){case o.M:s=a[h++],l=a[h++];break;case o.L:if(v=a[h++],p=a[h++],_=u?(e-s)/(v-s):(e-l)/(p-l),_<=1&&_>=0){var S=u?(p-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=p;break;case o.C:v=a[h++],p=a[h++],d=a[h++],g=a[h++],y=a[h++],m=a[h++];var b=u?bl(s,v,d,y,e,f):bl(l,p,g,m,e,f);if(b>0)for(var x=0;x<b;x++){var w=f[x];if(w<=1&&w>=0){var S=u?Ot(l,p,g,m,w):Ot(s,v,d,y,w);return u?[e,S]:[S,e]}}s=y,l=m;break}}},t}(gt),lE=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t}(Gb),uE=function(r){E(t,r);function t(e){var i=r.call(this,e)||this;return i.type="ec-polygon",i}return t.prototype.getDefaultShape=function(){return new lE},t.prototype.buildPath=function(e,i){var n=i.points,a=i.stackedOnPoints,o=0,s=n.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&gn(n[s*2-2],n[s*2-1]);s--);for(;o<s&&gn(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=Pv(e,n,o,s,s,1,i.smooth,l,i.connectNulls);Pv(e,a,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,e.closePath()}},t}(gt);function Hb(r,t,e,i,n){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,f=e.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var h=new pt({shape:{x:o,y:s,width:l,height:u}});if(t){var c=r.getBaseAxis(),v=c.isHorizontal(),p=c.inverse;v?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=u),h.shape.height=0);var d=j(n)?function(g){n(g,h)}:null;ie(h,{shape:{width:l,height:u,x:o,y:s}},e,null,i,d)}return h}function Wb(r,t,e){var i=r.getArea(),n=Rt(i.r0,1),a=Rt(i.r,1),o=new or({shape:{cx:Rt(r.cx,1),cy:Rt(r.cy,1),r0:n,r:a,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=n,ie(o,{shape:{endAngle:i.endAngle,r:a}},e)}return o}function Ub(r,t,e,i,n){if(r){if(r.type==="polar")return Wb(r,t,e);if(r.type==="cartesian2d")return Hb(r,t,e,i,n)}else return null;return null}function Ap(r,t){return r.type===t}function qy(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function Ky(r){for(var t=1/0,e=1/0,i=-1/0,n=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(t=Math.min(o,t),i=Math.max(o,i)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[i,n]]}function jy(r,t){var e=Ky(r),i=e[0],n=e[1],a=Ky(t),o=a[0],s=a[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(i[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function Jy(r){return yt(r)?r:r?.5:0}function fE(r,t,e){if(!e.valueDim)return[];for(var i=t.count(),n=zr(i*2),a=0;a<i;a++){var o=Fb(e,r,t,a);n[a*2]=o[0],n[a*2+1]=o[1]}return n}function oi(r,t,e,i,n){var a=e.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],h=[],c=[];if(n){for(l=0;l<r.length;l+=2){var v=t||r;!isNaN(v[l])&&!isNaN(v[l+1])&&c.push(r[l],r[l+1])}r=c}for(l=0;l<r.length-2;l+=2)switch(h[0]=r[l+2],h[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),i){case"end":u[o]=h[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var p=(f[o]+h[o])/2,d=[];u[o]=d[o]=p,u[1-o]=f[1-o],d[1-o]=h[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function hE(r,t){var e=[],i=r.length,n,a;function o(f,h,c){var v=f.coord,p=(c-v)/(h.coord-v),d=yc(p,[f.color,h.color]);return{coord:c,color:d}}for(var s=0;s<i;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){a?e.push(o(a,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),a=l}return e}function vE(r,t,e){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&t.type==="cartesian2d"){for(var n,a,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){a=i[o];break}}if(a){var l=t.getAxis(n),u=V(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var c=hE(u,n==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var p=10,d=c[0].coord-p,g=c[v-1].coord+p,y=g-d;if(y<.001)return"transparent";T(c,function(_){_.offset=(_.coord-d)/y}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var m=new ts(0,0,0,0,c,!0);return m[n]=d,m[n+"2"]=g,m}}}function cE(r,t,e){var i=r.get("showAllSymbol"),n=i==="auto";if(!(i&&!n)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(n&&pE(a,t))){var o=t.mapDimension(a.dim),s={};return T(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function pE(r,t){var e=r.getExtent(),i=Math.abs(e[1]-e[0])/r.scale.count();isNaN(i)&&(i=0);for(var n=t.count(),a=Math.max(1,Math.round(n/5)),o=0;o<n;o+=a)if(Cp.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function dE(r,t){return isNaN(r)||isNaN(t)}function gE(r){for(var t=r.length/2;t>0&&dE(r[t*2-2],r[t*2-1]);t--);return t-1}function Qy(r,t){return[r[t*2],r[t*2+1]]}function yE(r,t,e){for(var i=r.length/2,n=e==="x"?0:1,a,o,s=0,l=-1,u=0;u<i;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function Yb(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<He.length;t++)if(r.get([He[t],"endLabel","show"]))return!0;return!1}function eh(r,t,e,i){if(Ap(t,"cartesian2d")){var n=i.getModel("endLabel"),a=n.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=Yb(i)?function(v,p){r._endLabelOnDuring(v,p,o,s,a,n,t)}:null,u=t.getBaseAxis().isHorizontal(),f=Hb(t,e,i,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var h=f.shape,c=Math.max(h.width,h.height);u?(h.y-=c,h.height+=c*2):(h.x-=c,h.width+=c*2)}return l&&l(1,f),f}else return Wb(t,e,i)}function mE(r,t){var e=t.getBaseAxis(),i=e.isHorizontal(),n=e.inverse,a=i?n?"right":"left":"center",o=i?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var _E=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new nt,i=new zb;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=e,this._changePolyState=U(this._changePolyState,this)},t.prototype.render=function(e,i,n){var a=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],h=a.type==="polar",c=this._coordSys,v=this._symbolDraw,p=this._polyline,d=this._polygon,g=this._lineGroup,y=!i.ssr&&e.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=Vb(a,s,_),b=m&&fE(a,s,S),x=e.get("showSymbol"),w=e.get("connectNulls"),C=x&&!h&&cE(e,s,a),A=this._data;A&&A.eachItemGraphicEl(function(mt,$t){mt.__temp&&(o.remove(mt),A.setItemGraphicEl($t,null))}),x||v.remove(),o.add(g);var M=h?!1:e.get("step"),D;a&&a.getArea&&e.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var P=vE(s,a,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(p&&c.type===a.type&&M===this._step))x&&v.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(mt){return[f[mt*2],f[mt*2+1]]}}),y&&this._initSymbolLabelAnimation(s,a,D),M&&(b&&(b=oi(b,f,a,M,w)),f=oi(f,null,a,M,w)),p=this._newPolyline(f),m?d=this._newPolygon(f,b):d&&(g.remove(d),d=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,Sn(P)),g.setClipPath(eh(this,a,!0,e));else{m&&!d?d=this._newPolygon(f,b):d&&!m&&(g.remove(d),d=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,Sn(P));var L=g.getClipPath();if(L){var I=eh(this,a,!1,e);ie(L,{shape:I.shape},e)}else g.setClipPath(eh(this,a,!0,e));x&&v.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(mt){return[f[mt*2],f[mt*2+1]]}}),(!qy(this._stackedOnPoints,b)||!qy(this._points,f))&&(y?this._doUpdateAnimation(s,b,a,n,M,_,w):(M&&(b&&(b=oi(b,f,a,M,w)),f=oi(f,null,a,M,w)),p.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:b})))}var R=e.getModel("emphasis"),k=R.get("focus"),F=R.get("blurScope"),B=R.get("disabled");if(p.useStyle(K(l.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),fa(p,e,"lineStyle"),p.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var N=p.getState("emphasis").style;N.lineWidth=+p.style.lineWidth+1}at(p).seriesIndex=e.seriesIndex,xi(p,k,F,B);var H=Jy(e.get("smooth")),$=e.get("smoothMonotone");if(p.setShape({smooth:H,smoothMonotone:$,connectNulls:w}),d){var X=s.getCalculationInfo("stackedOnSeries"),lt=0;d.useStyle(K(u.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),X&&(lt=Jy(X.get("smooth"))),d.setShape({smooth:H,stackedOnSmooth:lt,smoothMonotone:$,connectNulls:w}),fa(d,e,"areaStyle"),at(d).seriesIndex=e.seriesIndex,xi(d,k,F,B)}var ct=this._changePolyState;s.eachItemGraphicEl(function(mt){mt&&(mt.onHoverStateChange=ct)}),this._polyline.onHoverStateChange=ct,this._data=s,this._coordSys=a,this._stackedOnPoints=b,this._points=f,this._step=M,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,p),d&&this.packEventData(e,d))},t.prototype.packEventData=function(e,i){at(i).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,i,n,a){var o=e.getData(),s=_n(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel")||0,v=e.get("z")||0;u=new Cp(o,s),u.x=f,u.y=h,u.setZ(c,v);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=c,p.z=v,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else zt.prototype.highlight.call(this,e,i,n,a)},t.prototype.downplay=function(e,i,n,a){var o=e.getData(),s=_n(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else zt.prototype.downplay.call(this,e,i,n,a)},t.prototype._changePolyState=function(e){var i=this._polygon;av(this._polyline,e),i&&av(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new sE({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new uE({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,i,n){var a,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):i.type==="polar"&&(a=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");j(f)&&(f=f(null));var h=u.get("animationDelay")||0,c=j(h)?h(null):h;e.eachItemGraphicEl(function(v,p){var d=v;if(d){var g=[v.x,v.y],y=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=i.pointToCoord(g);a?(y=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(y=S.r0,m=S.r,_=b[0])}else{var x=n;a?(y=x.x,m=x.x+x.width,_=v.x):(y=x.y+x.height,m=x.y,_=v.y)}var w=m===y?0:(_-y)/(m-y);l&&(w=1-w);var C=j(h)?h(p):f*w+c,A=d.getSymbolPath(),M=A.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,n){var a=e.getModel("endLabel");if(Yb(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new dt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=gE(l);f>=0&&(Kr(s,jr(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?Nb(o,v):Fu(o,h)},enableTextSetter:!0},mE(a,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,n,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=n.getLayout("points"),c=n.hostModel,v=c.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=i.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,b=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),w=y?"x":"y",C=yE(h,S,w),A=C.range,M=A[1]-A[0],D=void 0;if(M>=1){if(M>1&&!v){var P=Qy(h,A[0]);u.attr({x:P[0]+b,y:P[1]+x}),o&&(D=c.getRawValue(A[0]))}else{var P=f.getPointOn(S,w);P&&u.attr({x:P[0]+b,y:P[1]+x});var L=c.getRawValue(A[0]),I=c.getRawValue(A[1]);o&&(D=U1(n,p,L,I,C.t))}a.lastFrameIndex=A[0]}else{var R=e===1||a.lastFrameIndex>0?A[0]:0,P=Qy(h,R);o&&(D=c.getRawValue(R)),u.attr({x:P[0]+b,y:P[1]+x})}if(o){var k=es(u);typeof k.setLabelText=="function"&&k.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,i,n,a,o,s,l){var u=this._polyline,f=this._polygon,h=e.hostModel,c=oE(this._data,e,this._stackedOnPoints,i,this._coordSys,n,this._valueOrigin),v=c.current,p=c.stackedOnCurrent,d=c.next,g=c.stackedOnNext;if(o&&(p=oi(c.stackedOnCurrent,c.current,n,o,l),v=oi(c.current,null,n,o,l),g=oi(c.stackedOnNext,c.next,n,o,l),d=oi(c.next,null,n,o,l)),jy(v,d)>3e3||f&&jy(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=c.current,u.shape.points=v;var y={shape:{points:d}};c.current!==v&&(y.shape.__points=c.next),u.stopAnimation(),Dt(u,y,h),f&&(f.setShape({points:v,stackedOnPoints:p}),f.stopAnimation(),Dt(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,C=0;C<m.length;C++){var A=m[C].el,M=m[C].ptIdx*2;A.x=w[M],A.y=w[M+1],A.markRedraw()}})},t.prototype.remove=function(e){var i=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(a,o){a.__temp&&(i.remove(a),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(zt);function Mp(r,t){return{seriesType:r,plan:ap(),reset:function(e){var i=e.getData(),n=e.coordinateSystem,a=e.pipelineContext,o=t||a.large;if(n){var s=V(n.dimensions,function(v){return i.mapDimension(v)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");wi(i,s[0])&&(s[0]=u),wi(i,s[1])&&(s[1]=u);var f=i.getStore(),h=i.getDimensionIndex(s[0]),c=i.getDimensionIndex(s[1]);return l&&{progress:function(v,p){for(var d=v.end-v.start,g=o&&zr(d*l),y=[],m=[],_=v.start,S=0;_<v.end;_++){var b=void 0;if(l===1){var x=f.get(h,_);b=n.dataToPoint(x,null,m)}else y[0]=f.get(h,_),y[1]=f.get(c,_),b=n.dataToPoint(y,null,m);o?(g[S++]=b[0],g[S++]=b[1]):p.setItemLayout(_,b.slice())}o&&p.setLayout("points",g)}}}}}}var SE={average:function(r){for(var t=0,e=0,i=0;i<r.length;i++)isNaN(r[i])||(t+=r[i],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},xE=function(r){return Math.round(r.length/2)};function Xb(r){return{seriesType:r,reset:function(t,e,i){var n=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v)):a==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/v));var p=void 0;G(a)?p=SE[a]:j(a)&&(p=a),p&&t.setData(n.downSample(n.mapDimension(u.dim),1/v,p,xE))}}}}}function bE(r){r.registerChartView(_E),r.registerSeriesModel(rE),r.registerLayout(Mp("line",!0)),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Xb("line"))}var Vo=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,i){return ns(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,i,n){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(n)T(a.getAxes(),function(c,v){if(c.type==="category"&&i!=null){var p=c.getTicksCoords(),d=c.getTickModel().get("alignWithLabel"),g=o[v],y=i[v]==="x1"||i[v]==="y1";if(y&&!d&&(g+=1),p.length<2)return;if(p.length===2){s[v]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;b<p.length;b++){var x=p[b].coord,w=b===p.length-1?p[b-1].tickValue+S:p[b].tickValue;if(w===g){_=x;break}else if(w<g)m=x;else if(m!=null&&w>g){_=(x+m)/2;break}b===1&&(S=w-p[0].tickValue)}_==null&&(m?m&&(_=p[p.length-1].coord):_=p[0].coord),s[v]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Yt);Yt.registerClass(Vo);var wE=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return ns(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),i=this.get("largeThreshold");return i>e&&(e=i),e},t.prototype.brushSelector=function(e,i,n){return n.rect(i.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Ci(Vo.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:"#212121"}},realtimeSort:!1}),t}(Vo),TE=function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r}(),tm=function(r){E(t,r);function t(e){var i=r.call(this,e)||this;return i.type="sausage",i}return t.prototype.getDefaultShape=function(){return new TE},t.prototype.buildPath=function(e,i){var n=i.cx,a=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,h=i.endAngle,c=i.clockwise,v=Math.PI*2,p=c?h-f<v:f-h<v;p||(f=h-(c?v:-v));var d=Math.cos(f),g=Math.sin(f),y=Math.cos(h),m=Math.sin(h);p?(e.moveTo(d*o+n,g*o+a),e.arc(d*u+n,g*u+a,l,-Math.PI+f,f,!c)):e.moveTo(d*s+n,g*s+a),e.arc(n,a,s,f,h,!c),e.arc(y*u+n,m*u+a,l,h-Math.PI*2,h-Math.PI,!c),o!==0&&e.arc(n,a,o,h,f,c)},t}(gt);function CE(r,t){t=t||{};var e=t.isRoundCap;return function(i,n,a){var o=n.position;if(!o||o instanceof Array)return Ml(i,n,a);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,h=u.cy,c=u.r,v=u.r0,p=(c+v)/2,d=u.startAngle,g=u.endAngle,y=(d+g)/2,m=e?Math.abs(c-v)/2:0,_=Math.cos,S=Math.sin,b=f+c*_(d),x=h+c*S(d),w="left",C="top";switch(s){case"startArc":b=f+(v-l)*_(y),x=h+(v-l)*S(y),w="center",C="top";break;case"insideStartArc":b=f+(v+l)*_(y),x=h+(v+l)*S(y),w="center",C="bottom";break;case"startAngle":b=f+p*_(d)+Gs(d,l+m,!1),x=h+p*S(d)+Hs(d,l+m,!1),w="right",C="middle";break;case"insideStartAngle":b=f+p*_(d)+Gs(d,-l+m,!1),x=h+p*S(d)+Hs(d,-l+m,!1),w="left",C="middle";break;case"middle":b=f+p*_(y),x=h+p*S(y),w="center",C="middle";break;case"endArc":b=f+(c+l)*_(y),x=h+(c+l)*S(y),w="center",C="bottom";break;case"insideEndArc":b=f+(c-l)*_(y),x=h+(c-l)*S(y),w="center",C="top";break;case"endAngle":b=f+p*_(g)+Gs(g,l+m,!0),x=h+p*S(g)+Hs(g,l+m,!0),w="left",C="middle";break;case"insideEndAngle":b=f+p*_(g)+Gs(g,-l+m,!0),x=h+p*S(g)+Hs(g,-l+m,!0),w="right",C="middle";break;default:return Ml(i,n,a)}return i=i||{},i.x=b,i.y=x,i.align=w,i.verticalAlign=C,i}}function AE(r,t,e,i){if(yt(i)){r.setTextConfig({rotation:i});return}else if(z(t)){r.setTextConfig({rotation:0});return}var n=r.shape,a=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(a+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function Gs(r,t,e){return t*Math.sin(r)*(e?-1:1)}function Hs(r,t,e){return t*Math.cos(r)*(e?1:-1)}function no(r,t,e){var i=r.get("borderRadius");if(i==null)return e?{cornerRadius:0}:null;z(i)||(i=[i,i,i,i]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:V(i,function(a){return nr(a,n)})}}var rh=Math.max,ih=Math.min;function ME(r,t){var e=r.getArea&&r.getArea();if(Ap(r,"cartesian2d")){var i=r.getBaseAxis();if(i.type!=="category"||!i.onBand){var n=t.getLayout("bandWidth");i.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var DE=function(r){E(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,i,n,a){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,i,n):this._renderNormal(e,i,n,a))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,i){this._progressiveEls=[],this._incrementalRenderLarge(e,i)},t.prototype.eachRendered=function(e){xu(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var i=e.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},t.prototype._renderNormal=function(e,i,n,a){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var c=e.isAnimationEnabled()?e:null,v=LE(e,u);v&&this._enableRealtimeSort(v,s,n);var p=e.get("clip",!0)||v,d=ME(u,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=a&&a.isInitSort,w=a&&a.type==="changeAxisOrder";function C(D){var P=Ws[u.type](s,D),L=BE(u,h,P);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[D]=L,L}s.diff(l).add(function(D){var P=s.getItemModel(D),L=Ws[u.type](s,D,P);if(y&&C(D),!(!s.hasValue(D)||!am[u.type](L))){var I=!1;p&&(I=em[u.type](d,L));var R=rm[u.type](e,s,D,L,h,c,f.model,!1,g);v&&(R.forceLabelAnimation=!0),om(R,s,D,P,L,e,h,u.type==="polar"),x?R.attr({shape:L}):v?im(v,c,R,L,D,h,!1,!1):ie(R,{shape:L},e,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=I}}).update(function(D,P){var L=s.getItemModel(D),I=Ws[u.type](s,D,L);if(y){var R=void 0;b.length===0?R=C(P):(R=b[P],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[D]=R);var k=Ws[u.type](s,D),F=$b(h,k,u);Dt(R,{shape:F},c,D)}var B=l.getItemGraphicEl(P);if(!s.hasValue(D)||!am[u.type](I)){o.remove(B);return}var N=!1;if(p&&(N=em[u.type](d,I),N&&o.remove(B)),B?Po(B):B=rm[u.type](e,s,D,I,h,c,f.model,!!B,g),v&&(B.forceLabelAnimation=!0),w){var H=B.getTextContent();if(H){var $=es(H);$.prevValue!=null&&($.prevValue=$.value)}}else om(B,s,D,L,I,e,h,u.type==="polar");x?B.attr({shape:I}):v?im(v,c,B,I,D,h,!0,w):Dt(B,{shape:I},e,D,null),s.setItemGraphicEl(D,B),B.ignore=N,o.add(B)}).remove(function(D){var P=l.getItemGraphicEl(D);P&&Rl(P,e,D)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new nt);A.removeAll();for(var M=0;M<S.length;++M)A.add(S[M]);o.add(A),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,i,n){this._clear(),lm(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,i){this._removeBackground(),lm(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var i=e.get("clip",!0)&&Ub(e.coordinateSystem,!1,e),n=this.group;i?n.setClipPath(i):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,i,n){var a=this;if(i.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,e,n),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(i,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,i,n){var a=[];return e.each(e.mapDimension(i.dim),function(o,s){var l=n(s);l=l==null?NaN:l,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:V(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,i,n){for(var a=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:i(e.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,i){for(var n=i.scale,a=n.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,i,n,a){if(this._isOrderChangedWithinSameData(e,i,n)){var o=this._dataSort(e,n,i);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,i,n){var a=i.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(i.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,i){this._clear(this._model),this._removeOnRenderedListener(i)},t.prototype.dispose=function(e,i){this._removeOnRenderedListener(i)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var i=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(a){Rl(a,e,at(a).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(zt),em={cartesian2d:function(r,t){var e=t.width<0?-1:1,i=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,a=r.y+r.height,o=rh(t.x,r.x),s=ih(t.x+t.width,n),l=rh(t.y,r.y),u=ih(t.y+t.height,a),f=s<o,h=u<l;return t.x=f&&o>n?s:o,t.y=h&&l>a?u:l,t.width=f?0:s-o,t.height=h?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}var n=ih(t.r,r.r),a=rh(t.r0,r.r0);t.r=n,t.r0=a;var o=n-a<0;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}return o}},rm={cartesian2d:function(r,t,e,i,n,a,o,s,l){var u=new pt({shape:O({},i),z2:1});if(u.__dataIndex=e,u.name="item",a){var f=u.shape,h=n?"height":"width";f[h]=0}return u},polar:function(r,t,e,i,n,a,o,s,l){var u=!n&&l?tm:or,f=new u({shape:i,z2:1});f.name="item";var h=Zb(n);if(f.calculateTextPosition=CE(h,{isRoundCap:u===tm}),a){var c=f.shape,v=n?"r":"endAngle",p={};c[v]=n?i.r0:i.startAngle,p[v]=i[v],(s?Dt:ie)(f,{shape:p},a)}return f}};function LE(r,t){var e=r.get("realtimeSort",!0),i=t.getBaseAxis();if(e&&i.type==="category"&&t.type==="cartesian2d")return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function im(r,t,e,i,n,a,o,s){var l,u;a?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?Dt:ie)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?Dt:ie)(e,{shape:u},f,n)}function nm(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var PE=["x","y","width","height"],IE=["cx","cy","r","startAngle","endAngle"],am={cartesian2d:function(r){return!nm(r,PE)},polar:function(r){return!nm(r,IE)}},Ws={cartesian2d:function(r,t,e){var i=r.getItemLayout(t),n=e?EE(e,i):0,a=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+a*n/2,y:i.y+o*n/2,width:i.width-a*n,height:i.height-o*n}},polar:function(r,t,e){var i=r.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function RE(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function Zb(r){return function(t){var e=t?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+e;default:return i}}}(r)}function om(r,t,e,i,n,a,o,s){var l=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=no(i.getModel("itemStyle"),f,!0);O(f,h),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=i.getShallow("cursor");c&&r.attr("cursor",c);var v=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",p=jr(i);Kr(r,p,{labelFetcher:a,labelDataIndex:e,defaultText:Fu(a.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var d=r.getTextContent();if(s&&d){var g=i.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,AE(r,g==="outside"?v:g,Zb(o),i.get(["label","rotate"]))}l2(d,p,a.getRawValue(e),function(m){return Nb(t,m)});var y=i.getModel(["emphasis"]);xi(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),fa(r,i),RE(n)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function EE(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,n,a)}var kE=function(){function r(){}return r}(),sm=function(r){E(t,r);function t(e){var i=r.call(this,e)||this;return i.type="largeBar",i}return t.prototype.getDefaultShape=function(){return new kE},t.prototype.buildPath=function(e,i){for(var n=i.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[a]=u,l[o]=n[f+2],s[a]=n[f+a],s[o]=n[f+o],e.rect(s[0],s[1],l[0],l[1])},t}(gt);function lm(r,t,e,i){var n=r.getData(),a=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var f=new sm({shape:{points:u},incremental:!!i,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var h=new sm({shape:{points:n.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(n.getVisual("style")),h.style.stroke=null,at(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",um),h.on("mousemove",um)),e&&e.push(h)}var um=Pu(function(r){var t=this,e=OE(t,r.offsetX,r.offsetY);at(t).dataIndex=e>=0?e:null},30,!1);function OE(r,t,e){for(var i=r.baseDimIdx,n=1-i,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f<h;f++){var c=f*3;if(l[i]=u,l[n]=a[c+2],s[i]=a[c+i],s[n]=a[c+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function $b(r,t,e){if(Ap(e,"cartesian2d")){var i=t,n=e.getArea();return{x:r?i.x:n.x,y:r?n.y:i.y,width:r?i.width:n.width,height:r?n.height:i.height}}else{var n=e.getArea(),a=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:a.r0,r:r?n.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function BE(r,t,e){var i=r.type==="polar"?or:pt;return new i({shape:$b(t,e,r),silent:!0,z2:0})}function NE(r){r.registerChartView(DE),r.registerSeriesModel(wE),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,vt(gb,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yb("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,Xb("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var fm=Math.PI*2,Us=Math.PI/180;function qb(r,t){return ce(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Kb(r,t){var e=qb(r,t),i=r.get("center"),n=r.get("radius");z(n)||(n=[0,n]);var a=J(e.width,t.getWidth()),o=J(e.height,t.getHeight()),s=Math.min(a,o),l=J(n[0],s/2),u=J(n[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(i);f=v[0]||0,h=v[1]||0}else z(i)||(i=[i,i]),f=J(i[0],a)+e.x,h=J(i[1],o)+e.y;return{cx:f,cy:h,r0:l,r:u}}function zE(r,t,e){t.eachSeriesByType(r,function(i){var n=i.getData(),a=n.mapDimension("value"),o=qb(i,e),s=Kb(i,e),l=s.cx,u=s.cy,f=s.r,h=s.r0,c=-i.get("startAngle")*Us,v=i.get("endAngle"),p=i.get("padAngle")*Us;v=v==="auto"?c-fm:-v*Us;var d=i.get("minAngle")*Us,g=d+p,y=0;n.each(a,function(F){!isNaN(F)&&y++});var m=n.getSum(a),_=Math.PI/(m||y)*2,S=i.get("clockwise"),b=i.get("roseType"),x=i.get("stillShowZeroSum"),w=n.getDataExtent(a);w[0]=0;var C=S?1:-1,A=[c,v],M=C*p/2;j1(A,!S),c=A[0],v=A[1];var D=jb(i);D.startAngle=c,D.endAngle=v,D.clockwise=S;var P=Math.abs(v-c),L=P,I=0,R=c;if(n.setLayout({viewRect:o,r:f}),n.each(a,function(F,B){var N;if(isNaN(F)){n.setItemLayout(B,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:h,r:b?NaN:f});return}b!=="area"?N=m===0&&x?_:F*_:N=P/y,N<g?(N=g,L-=g):I+=F;var H=R+C*N,$=0,X=0;p>N?($=R+C*N/2,X=$):($=R+M,X=H-M),n.setItemLayout(B,{angle:N,startAngle:$,endAngle:X,clockwise:S,cx:l,cy:u,r0:h,r:b?Tt(F,w,[h,f]):f}),R=H}),L<fm&&y)if(L<=.001){var k=P/y;n.each(a,function(F,B){if(!isNaN(F)){var N=n.getItemLayout(B);N.angle=k;var H=0,$=0;k<p?(H=c+C*(B+1/2)*k,$=H):(H=c+C*B*k+M,$=c+C*(B+1)*k-M),N.startAngle=H,N.endAngle=$}})}else _=L/I,R=c,n.each(a,function(F,B){if(!isNaN(F)){var N=n.getItemLayout(B),H=N.angle===g?g:F*_,$=0,X=0;H<p?($=R+C*H/2,X=$):($=R+M,X=R+C*H-M),N.startAngle=$,N.endAngle=X,R+=C*H}})})}var jb=xt();function Jb(r){return{seriesType:r,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(!(!i||!i.length)){var n=t.getData();n.filterSelf(function(a){for(var o=n.getName(a),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}var VE=Math.PI/180;function hm(r,t,e,i,n,a,o,s,l,u){if(r.length<2)return;function f(d){for(var g=d.rB,y=g*g,m=0;m<d.list.length;m++){var _=d.list[m],S=Math.abs(_.label.y-e),b=i+_.len,x=b*b,w=Math.sqrt(Math.abs((1-S*S/y)*x)),C=t+(w+_.len2)*n,A=C-_.label.x,M=_.targetTextWidth-A*n;Qb(_,M,!0),_.label.x=C}}function h(d){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<d.length;m++)if(d[m].labelAlignTo==="none"){var _=d[m],S=_.label.y>e?y:g,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*n,w=i+_.len,C=Math.abs(x)<w?Math.sqrt(b*b/(1-x*x/w/w)):w;S.rB=C,S.maxY=b}S.list.push(_)}f(g),f(y)}for(var c=r.length,v=0;v<c;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var p=r[v].label.x-u;r[v].linePoints[1][0]+=p,r[v].label.x=u}tE(r,l,l+o)&&h(r)}function FE(r,t,e,i,n,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<r.length;c++){var v=r[c].label;nh(r[c])||(v.x<t?(f=Math.min(f,v.x),l.push(r[c])):(h=Math.max(h,v.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var p=r[c];if(!nh(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var v=p.label,d=p.linePoints,g=void 0;p.labelAlignTo==="edge"?v.x<t?g=d[2][0]-p.labelDistance-o-p.edgeDistance:g=o+n-p.edgeDistance-d[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?v.x<t?g=f-o-p.bleedMargin:g=o+n-h-p.bleedMargin:v.x<t?g=v.x-o-p.bleedMargin:g=o+n-v.x-p.bleedMargin,p.targetTextWidth=g,Qb(p,g)}}hm(u,t,e,i,1,n,a,o,s,h),hm(l,t,e,i,-1,n,a,o,s,f);for(var c=0;c<r.length;c++){var p=r[c];if(!nh(p)&&p.linePoints){var v=p.label,d=p.linePoints,y=p.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=p.rect.width+S,x=d[1][0]-d[2][0];y?v.x<t?d[2][0]=o+p.edgeDistance+b+p.labelDistance:d[2][0]=o+n-p.edgeDistance-b-p.labelDistance:(v.x<t?d[2][0]=v.x+p.labelDistance:d[2][0]=v.x-p.labelDistance,d[1][0]=d[2][0]+x),d[1][1]=d[2][1]=v.y}}}function Qb(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var i=r.label,n=i.style,a=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=a.width+(o?0:l);if(t<f||e){var h=a.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var c=i.getBoundingRect();i.setStyle("width",Math.ceil(c.width)),i.setStyle("backgroundColor",o)}else{var v=t-l,p=t<f?v:e?v>r.unconstrainedWidth?null:v:null;i.setStyle("width",p)}var d=i.getBoundingRect();a.width=d.width;var g=(i.style.margin||0)+2.1;a.height=d.height+g,a.y-=(a.height-h)/2}}}function nh(r){return r.position==="center"}function GE(r){var t=r.getData(),e=[],i,n,a=!1,o=(r.get("minShowLabelAngle")||0)*VE,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,h=s.y,c=s.height;function v(x){x.ignore=!0}function p(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}t.each(function(x){var w=t.getItemGraphicEl(x),C=w.shape,A=w.getTextContent(),M=w.getTextGuideLine(),D=t.getItemModel(x),P=D.getModel("label"),L=P.get("position")||D.get(["emphasis","label","position"]),I=P.get("distanceToLabelLine"),R=P.get("alignTo"),k=J(P.get("edgeDistance"),u),F=P.get("bleedMargin"),B=D.getModel("labelLine"),N=B.get("length");N=J(N,u);var H=B.get("length2");if(H=J(H,u),Math.abs(C.endAngle-C.startAngle)<o){T(A.states,v),A.ignore=!0,M&&(T(M.states,v),M.ignore=!0);return}if(p(A)){var $=(C.startAngle+C.endAngle)/2,X=Math.cos($),lt=Math.sin($),ct,mt,$t,pe;i=C.cx,n=C.cy;var Vt=L==="inside"||L==="inner";if(L==="center")ct=C.cx,mt=C.cy,pe="center";else{var Lt=(Vt?(C.r+C.r0)/2*X:C.r*X)+i,At=(Vt?(C.r+C.r0)/2*lt:C.r*lt)+n;if(ct=Lt+X*3,mt=At+lt*3,!Vt){var tt=Lt+X*(N+l-C.r),ht=At+lt*(N+l-C.r),de=tt+(X<0?-1:1)*H,Pt=ht;R==="edge"?ct=X<0?f+k:f+u-k:ct=de+(X<0?-I:I),mt=Pt,$t=[[Lt,At],[tt,ht],[de,Pt]]}pe=Vt?"center":R==="edge"?X>0?"right":"left":X>0?"left":"right"}var Ye=Math.PI,ge=0,Pr=P.get("rotate");if(yt(Pr))ge=Pr*(Ye/180);else if(L==="center")ge=0;else if(Pr==="radial"||Pr===!0){var Dn=X<0?-$+Ye:-$;ge=Dn}else if(Pr==="tangential"&&L!=="outside"&&L!=="outer"){var Xe=Math.atan2(X,lt);Xe<0&&(Xe=Ye*2+Xe);var ss=lt>0;ss&&(Xe=Ye+Xe),ge=Xe-Ye}if(a=!!ge,A.x=ct,A.y=mt,A.rotation=ge,A.setStyle({verticalAlign:"middle"}),Vt){A.setStyle({align:pe});var Yu=A.states.select;Yu&&(Yu.x+=A.x,Yu.y+=A.y)}else{var Jr=A.getBoundingRect().clone();Jr.applyTransform(A.getComputedTransform());var id=(A.style.margin||0)+2.1;Jr.y-=id/2,Jr.height+=id,e.push({label:A,labelLine:M,position:L,len:N,len2:H,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new rt(X,lt),linePoints:$t,textAlign:pe,labelDistance:I,labelAlignTo:R,edgeDistance:k,bleedMargin:F,rect:Jr,unconstrainedWidth:Jr.width,labelStyleWidth:A.style.width})}w.setTextConfig({inside:Vt})}}),!a&&r.get("avoidLabelOverlap")&&FE(e,i,n,l,u,c,f,h);for(var d=0;d<e.length;d++){var g=e[d],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(T(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var b=g.linePoints;_||!b?(T(m.states,v),m.ignore=!0):(Ob(b,g.minTurnAngle),qR(b,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:b}),y.__hostTarget.textGuideLineConfig={anchor:new rt(b[0][0],b[0][1])})}}}var HE=function(r){E(t,r);function t(e,i,n){var a=r.call(this)||this;a.z2=2;var o=new dt;return a.setTextContent(o),a.updateData(e,i,n,!0),a}return t.prototype.updateData=function(e,i,n,a){var o=this,s=e.hostModel,l=e.getItemModel(i),u=l.getModel("emphasis"),f=e.getItemLayout(i),h=O(no(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(ie(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,ie(o,{shape:{r:f.r}},s,i)):n!=null?(o.setShape({startAngle:n,endAngle:n}),ie(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,Dt(o,{shape:{endAngle:f.endAngle}},s,i))}else Po(o),Dt(o,{shape:h},s,i);o.useStyle(e.getItemVisual(i,"style")),fa(o,l);var v=(f.startAngle+f.endAngle)/2,p=s.get("selectedOffset"),d=Math.cos(v)*p,g=Math.sin(v)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,i),o.ensureState("emphasis").shape=O({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},no(u.getModel("itemStyle"),f)),O(o.ensureState("select"),{x:d,y:g,shape:no(l.getModel(["select","itemStyle"]),f)}),O(o.ensureState("blur"),{shape:no(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&O(m.ensureState("select"),{x:d,y:g}),O(_.ensureState("select"),{x:d,y:g}),xi(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,i,n){var a=this,o=i.getItemModel(n),s=o.getModel("labelLine"),l=i.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;Kr(a,jr(o),{labelFetcher:i.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(n,"normal")||i.getName(n)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=e.get(["label","position"]);if(c!=="outside"&&c!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new De,this.setTextGuideLine(v)),jR(this,JR(o),{stroke:u,opacity:Qn(s.get(["lineStyle","opacity"]),f,1)})}},t}(or),WE=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,i,n,a){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var c=jb(e),v=new or({shape:O(Kb(e,n),c)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(p){var d=new HE(o,p,u);o.setItemGraphicEl(p,d),l.add(d)}).update(function(p,d){var g=s.getItemGraphicEl(d);g.updateData(o,p,u),g.off("click"),l.add(g),o.setItemGraphicEl(p,g)}).remove(function(p){var d=s.getItemGraphicEl(p);Rl(d,e,p)}).execute(),GE(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,i){var n=i.getData(),a=n.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(zt);function Dp(r,t,e){t=z(t)&&{coordDimensions:t}||O({encodeDefine:r.getEncode()},t);var i=r.getSource(),n=_p(i,t).dimensions,a=new ku(n,r);return a.initData(i,e),a}var tw=function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var i=this._getDataWithEncodedVisual();return i.getItemVisual(t,e)},r}(),UE=xt(),YE=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new tw(U(this.getData,this),U(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Dp(this,{coordDimensions:["value"],encodeDefaulter:vt($S,this)})},t.prototype.getDataParams=function(e){var i=this.getData(),n=UE(i),a=n.seats;if(!a){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),a=n.seats=O1(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Dl(e,"labelLine",["show"]);var i=e.labelLine,n=e.emphasis.labelLine;i.show=i.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,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%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,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"},t}(Yt);function XE(r){return{seriesType:r,reset:function(t,e){var i=t.getData();i.filterSelf(function(n){var a=i.mapDimension("value"),o=i.get(a,n);return!(yt(o)&&!isNaN(o)&&o<0)})}}}function ZE(r){r.registerChartView(WE),r.registerSeriesModel(YE),Px("pie",r.registerAction),r.registerLayout(vt(zE,"pie")),r.registerProcessor(Jb("pie")),r.registerProcessor(XE("pie"))}var $E=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e,i){return ns(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return e==null?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e==null?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,i,n){return n.point(i.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(Yt),ew=4,qE=function(){function r(){}return r}(),KE=function(r){E(t,r);function t(e){var i=r.call(this,e)||this;return i._off=0,i.hoverDataIdx=-1,i}return t.prototype.getDefaultShape=function(){return new qE},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,i){var n=i.points,a=i.size,o=this.symbolProxy,s=o.shape,l=e.getContext?e.getContext():e,u=l&&a[0]<ew,f=this.softClipShape,h;if(u){this._ctx=l;return}for(this._ctx=null,h=this._off;h<n.length;){var c=n[h++],v=n[h++];isNaN(c)||isNaN(v)||f&&!f.contain(c,v)||(s.x=c-a[0]/2,s.y=v-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(e,s,!0))}this.incremental&&(this._off=h,this.notClear=!0)},t.prototype.afterBrush=function(){var e=this.shape,i=e.points,n=e.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-n[0]/2,u-n[1]/2,n[0],n[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(e,i){for(var n=this.shape,a=n.points,o=n.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var f=u*2,h=a[f]-s/2,c=a[f+1]-l/2;if(e>=h&&i>=c&&e<=h+s&&i<=c+l)return u}return-1},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();if(e=n[0],i=n[1],a.contain(e,i)){var o=this.hoverDataIdx=this.findDataIndex(e,i);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var i=this.shape,n=i.points,a=i.size,o=a[0],s=a[1],l=1/0,u=1/0,f=-1/0,h=-1/0,c=0;c<n.length;){var v=n[c++],p=n[c++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(p,u),h=Math.max(p,h)}e=this._rect=new ft(l-o/2,u-s/2,f-l+o,h-u+s)}return e},t}(gt),jE=function(){function r(){this.group=new nt}return r.prototype.updateData=function(t,e){this._clear();var i=this._create();i.setShape({points:t.getLayout("points")}),this._setCommon(i,t,e)},r.prototype.updateLayout=function(t){var e=t.getLayout("points");this.group.eachChild(function(i){if(i.startIndex!=null){var n=(i.endIndex-i.startIndex)*2,a=i.startIndex*4*2;e=new Float32Array(e.buffer,a,n)}i.setShape("points",e),i.reset()})},r.prototype.incrementalPrepareUpdate=function(t){this._clear()},r.prototype.incrementalUpdate=function(t,e,i){var n=this._newAdded[0],a=e.getLayout("points"),o=n&&n.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),n.endIndex=t.end,n.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,e,i)}},r.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},r.prototype._create=function(){var t=new KE({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},r.prototype._setCommon=function(t,e,i){var n=e.hostModel;i=i||{};var a=e.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=i.clipShape||null,t.symbolProxy=Xt(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<ew;t.useStyle(n.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=at(t);u.seriesIndex=n.seriesIndex,t.on("mousemove",function(f){u.dataIndex=null;var h=t.hoverDataIdx;h>=0&&(u.dataIndex=h+(t.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r}(),JE=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.updateData(a,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,i,n){var a=e.getData(),o=this._updateSymbolDraw(a,e);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(e,i,n){this._symbolDraw.incrementalUpdate(e,i.getData(),{clipShape:this._getClipShape(i)}),this._finished=e.end===i.getData().count()},t.prototype.updateTransform=function(e,i,n){var a=e.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Mp("").reset(e,i,n);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var i=e.coordinateSystem;return i&&i.getArea&&i.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,i){var n=this._symbolDraw,a=i.pipelineContext,o=a.large;return(!n||o!==this._isLargeDraw)&&(n&&n.remove(),n=this._symbolDraw=o?new jE:new zb,this._isLargeDraw=o,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(zt),QE=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(ot),Iv=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Bt).models[0]},t.type="cartesian2dAxis",t}(ot);Zt(Iv,as);var rw={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:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},tk=et({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},rw),Lp=et({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},rw),ek=et({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Lp),rk=K({logBase:10},Lp);const iw={category:tk,value:Lp,time:ek,log:rk};var ik={value:1,category:1,time:1,log:1};function Fo(r,t,e,i){T(ik,function(n,a){var o=et(et({},iw[a],!0),i,!0),s=function(l){E(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var c=Eo(this),v=c?ba(f):{},p=h.getTheme();et(f,p.get(a+"Axis")),et(f,this.getDefaultOption()),f.type=vm(f),c&&bi(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Av.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",vm)}function vm(r){return r.type||(r.data?"category":"value")}var nk=function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return V(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),wt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r}(),Rv=["x","y"];function cm(r){return r.type==="interval"||r.type==="time"}var ak=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Rv,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!cm(e)||!cm(i))){var n=e.getExtent(),a=i.getExtent(),o=this.dataToPoint([n[0],a[0]]),s=this.dataToPoint([n[1],a[1]]),l=n[1]-n[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,c=o[0]-n[0]*f,v=o[1]-a[0]*h,p=this._transform=[f,0,0,h,c,v];this._invTransform=Tn([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var i=this.getAxis("x"),n=this.getAxis("y");return i.contain(i.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,i){var n=this.dataToPoint(e),a=this.dataToPoint(i),o=this.getArea(),s=new ft(n[0],n[1],a[0]-n[0],a[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,i,n){n=n||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Gt(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(a,i)),n[1]=l.toGlobalCoord(l.dataToCoord(o,i)),n},t.prototype.clampData=function(e,i){var n=this.getAxis("x").scale,a=this.getAxis("y").scale,o=n.getExtent(),s=a.getExtent(),l=n.parse(e[0]),u=a.parse(e[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},t.prototype.pointToData=function(e,i){var n=[];if(this._invTransform)return Gt(n,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return n[0]=a.coordToData(a.toLocalCoord(e[0]),i),n[1]=o.coordToData(o.toLocalCoord(e[1]),i),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var i=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),a=Math.min(i[0],i[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(i[0],i[1])-a+e,l=Math.max(n[0],n[1])-o+e;return new ft(a,o,s,l)},t}(nk),ok=function(r){E(t,r);function t(e,i,n,a,o){var s=r.call(this,e,i,n)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),e&&i[0]>i[1]&&i.reverse(),i},t.prototype.pointToData=function(e,i){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),i)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(fr);function Ev(r,t,e){e=e||{};var i=r.coordinateSystem,n=t.axis,a={},o=n.getAxesOnZeroOf()[0],s=n.position,l=o?"onZero":s,u=n.dim,f=i.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,p=u==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[c.onZero]=Math.max(Math.min(d,p[1]),p[0])}a.position=[u==="y"?p[c[l]]:h[0],u==="x"?p[c[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[c[s]]-p[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Gr(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function pm(r){return r.get("coordinateSystem")==="cartesian2d"}function dm(r){var t={xAxisModel:null,yAxisModel:null};return T(t,function(e,i){var n=i.replace(/Model$/,""),a=r.getReferringComponents(n,Bt).models[0];t[i]=a}),t}var ah=Math.log;function nw(r,t,e){var i=Zr.prototype,n=i.getTicks.call(e),a=i.getTicks.call(e,!0),o=n.length-1,s=i.getInterval.call(e),l=bb(r,t),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var c=ah(r.base);u=[ah(u[0])/c,ah(u[1])/c]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=i.getExtent.call(r);f&&(u[0]=v[0]),h&&(u[1]=v[1]);var p=i.getInterval.call(r),d=u[0],g=u[1];if(f&&h)p=(g-d)/o;else if(f)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=Kf(p),g=u[0]+p*o;else if(h)for(d=u[1]-p*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)p=Kf(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=Kf(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=Rt(g-m),d<0&&u[0]>=0?(d=0,g=Rt(m)):g>0&&u[1]<=0&&(g=0,d=-Rt(m))}var _=(n[0].value-a[0].value)/s,S=(n[o].value-a[o].value)/s;i.setExtent.call(r,d+p*_,g+p*S),i.setInterval.call(r,p),(_||S)&&i.setNiceExtent.call(r,d+p,g-p)}var sk=function(){function r(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Rv,this._initCartesian(t,e,i),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var i=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=st(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var c=+l[h],v=o[c],p=v.model,d=v.scale;Mv(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(v):(va(d,p),Mv(d)&&(s=v))}f.length&&(s||(s=f.pop(),va(s.scale,s.model)),T(f,function(g){nw(g.scale,g.model,s.scale)}))}}n(i.x),n(i.y);var a={};T(i.x,function(o){gm(i,"y",o,a)}),T(i.y,function(o){gm(i,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,i){var n=t.getBoxLayoutParams(),a=!i&&t.get("containLabel"),o=ce(n,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(T(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=hR(u);if(f){var h=u.isHorizontal()?"height":"width",c=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,u.position==="top"?o.y+=f.height+c:u.position==="left"&&(o.x+=f.width+c)}}}),l()),T(this._coordsList,function(u){u.calcAffineTransform()});function l(){T(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=u.inverse?1:0;u.setExtent(h[c],h[1-c]),lk(u,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}Z(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,a=this._coordsList;n<a.length;n++)if(a[n].getAxis("x").index===t||a[n].getAxis("y").index===e)return a[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,i=t.xAxisModel||e&&e.getReferringComponents("xAxis",Bt).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",Bt).models[0],a=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ut(o,s)<0&&(s=null);else if(i&&n)s=this.getCartesian(i.componentIndex,n.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(a){var u=a.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,i){var n=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,h){T(s.y,function(c,v){var p="x"+h+"y"+v,d=new ak(p);d.master=n,d.model=t,n._coordsMap[p]=d,n._coordsList.push(d),d.addAxis(f),d.addAxis(c)})});function u(f){return function(h,c){if(oh(h,t)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var p=new ok(f,Vu(h),[0,0],h.get("type"),v),d=p.type==="category";p.onBand=d&&h.get("boundaryGap"),p.inverse=h.get("inverse"),h.axis=p,p.model=h,p.grid=a,p.index=c,a._axesList.push(p),s[f][c]=p,l[f]++}}}},r.prototype._updateScale=function(t,e){T(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var a=n.model.get("categorySortInfo");n.scale.setSortInfo(a)}}),t.eachSeries(function(n){if(pm(n)){var a=dm(n),o=a.xAxisModel,s=a.yAxisModel;if(!oh(o,e)||!oh(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),h=l.getAxis("y");i(u,f),i(u,h)}},this);function i(n,a){T(Xl(n,a.dim),function(o){a.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],i=[];return T(this.getCartesians(),function(n){var a=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(a);ut(e,a)<0&&e.push(a),ut(i,o)<0&&i.push(o)}),{baseAxes:e,otherAxes:i}},r.create=function(t,e){var i=[];return t.eachComponent("grid",function(n,a){var o=new r(n,t,e);o.name="grid_"+a,o.resize(n,e,!0),n.coordinateSystem=o,i.push(o)}),t.eachSeries(function(n){if(pm(n)){var a=dm(n),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;n.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),i},r.dimensions=Rv,r}();function oh(r,t){return r.getCoordSysModel()===t}function gm(r,t,e,i){e.getAxesOnZeroOf=function(){return a?[a]:[]};var n=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)ym(n[l])&&(a=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&ym(n[u])&&!i[f(n[u])]){a=n[u];break}a&&(i[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function ym(r){return r&&r.type!=="category"&&r.type!=="time"&&fR(r)}function lk(r,t){var e=r.getExtent(),i=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return i-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return i-n+t}}var ci=Math.PI,be=function(){function r(t,e){this.group=new nt,this.opt=e,this.axisModel=t,K(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new nt({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return r.prototype.hasBuilder=function(t){return!!mm[t]},r.prototype.add=function(t){mm[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,i){var n=xc(e-t),a,o;return Mo(n)?(o=i>0?"top":"bottom",a="center"):Mo(n-ci)?(o=i>0?"bottom":"top",a="center"):(o="middle",n>0&&n<ci?a=i>0?"right":"left":a=i>0?"left":"right"),{rotation:n,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r}(),mm={axisLine:function(r,t,e,i){var n=t.get(["axisLine","show"]);if(n==="auto"&&r.handleAutoShown&&(n=r.handleAutoShown("axisLine")),!!n){var a=t.axis.getExtent(),o=i.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Gt(s,s,o),Gt(l,l,o));var f=O({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new re({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Io(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);G(c)&&(c=[c,c]),(G(v)||yt(v))&&(v=[v,v]);var p=Iu(t.get(["axisLine","symbolOffset"])||0,v),d=v[0],g=v[1];T([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(c[m]!=="none"&&c[m]!=null){var _=Xt(c[m],-d/2,-g/2,d,g,f.stroke,!0),S=y.r+y.offset,b=u?l:s;_.attr({rotation:y.rotate,x:b[0]+S*Math.cos(r.rotation),y:b[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),e.add(_)}})}}},axisTickLabel:function(r,t,e,i){var n=hk(e,i,t,r),a=ck(e,i,t,r);if(fk(t,a,n),vk(e,i,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=QR(V(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));eE(o)}},axisName:function(r,t,e,i){var n=Gr(r.axisName,t.get("name"));if(n){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,Sm(a)?r.labelOffset+o*l:0],c,v=t.get("nameRotate");v!=null&&(v=v*ci/180);var p;Sm(a)?c=be.innerTextLayout(r.rotation,v!=null?v:r.rotation,o):(c=uk(r.rotation,a,v||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(c.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=Gr(r.nameTruncateMaxWidth,g.maxWidth,p),_=new dt({x:h[0],y:h[1],rotation:c.rotation,silent:be.isLabelSilent(t),style:kt(s,{text:n,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(Cn({el:_,componentModel:t,itemName:n}),_.__fullText=n,_.anid="name",t.get("triggerEvent")){var S=be.makeAxisEventDataBase(t);S.targetType="axisName",S.name=n,at(_).eventData=S}i.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function uk(r,t,e,i){var n=xc(e-r),a,o,s=i[0]>i[1],l=t==="start"&&!s||t!=="start"&&s;return Mo(n-ci/2)?(o=l?"bottom":"top",a="center"):Mo(n-ci*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",n<ci*1.5&&n>ci/2?a=l?"left":"right":a=l?"right":"left"),{rotation:n,textAlign:a,textVerticalAlign:o}}function fk(r,t,e){if(!wb(r.axis)){var i=r.get(["axisLabel","showMinLabel"]),n=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];i===!1?(Pe(a),Pe(u)):_m(a,o)&&(i?(Pe(o),Pe(f)):(Pe(a),Pe(u))),n===!1?(Pe(s),Pe(h)):_m(l,s)&&(n?(Pe(l),Pe(c)):(Pe(s),Pe(h)))}}function Pe(r){r&&(r.ignore=!0)}function _m(r,t){var e=r&&r.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(!(!e||!i)){var n=$o([]);return Ti(n,n,-r.rotation),e.applyTransform(Tr([],n,r.getLocalTransform())),i.applyTransform(Tr([],n,t.getLocalTransform())),e.intersect(i)}}function Sm(r){return r==="middle"||r==="center"}function aw(r,t,e,i,n){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Gt(o,o,t),Gt(s,s,t));var f=new re({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Io(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,a.push(f)}return a}function hk(r,t,e,i){var n=e.axis,a=e.getModel("axisTick"),o=a.get("show");if(o==="auto"&&i.handleAutoShown&&(o=i.handleAutoShown("axisTick")),!(!o||n.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=i.tickDirection*a.get("length"),u=n.getTicksCoords(),f=aw(u,t.transform,l,K(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function vk(r,t,e,i){var n=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||n.scale.isBlank())){var o=n.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=i*a.get("length"),u=K(s.getLineStyle(),K(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=aw(o[f],t.transform,l,u,"minorticks_"+f),c=0;c<h.length;c++)r.add(h[c])}}function ck(r,t,e,i){var n=e.axis,a=Gr(i.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||n.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),l=n.getViewLabels(),u=(Gr(i.labelRotate,o.get("rotate"))||0)*ci/180,f=be.innerTextLayout(i.rotation,u,i.labelDirection),h=e.getCategories&&e.getCategories(!0),c=[],v=be.isLabelSilent(e),p=e.get("triggerEvent");return T(l,function(d,g){var y=n.scale.type==="ordinal"?n.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,m=d.formattedLabel,_=d.rawLabel,S=o;if(h&&h[y]){var b=h[y];Z(b)&&b.textStyle&&(S=new St(b.textStyle,o,e.ecModel))}var x=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),w=n.dataToCoord(y),C=S.getShallow("align",!0)||f.textAlign,A=Q(S.getShallow("alignMinLabel",!0),C),M=Q(S.getShallow("alignMaxLabel",!0),C),D=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,P=Q(S.getShallow("verticalAlignMinLabel",!0),D),L=Q(S.getShallow("verticalAlignMaxLabel",!0),D),I=new dt({x:w,y:i.labelOffset+i.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(d.level||0),style:kt(S,{text:m,align:g===0?A:g===l.length-1?M:C,verticalAlign:g===0?P:g===l.length-1?L:D,fill:j(x)?x(n.type==="category"?_:n.type==="value"?y+"":y,g):x})});if(I.anid="label_"+y,Cn({el:I,componentModel:e,itemName:m,formatterParamsExtra:{isTruncated:function(){return I.isTruncated},value:_,tickIndex:g}}),p){var R=be.makeAxisEventDataBase(e);R.targetType="axisLabel",R.value=_,R.tickIndex=g,n.type==="category"&&(R.dataIndex=y),at(I).eventData=R}t.add(I),I.updateTransform(),c.push(I),r.add(I),I.decomposeTransform()}),c}}function pk(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return dk(e,r,t),e.seriesInvolved&&yk(e,r),e}function dk(r,t,e){var i=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),a=n.get("link",!0)||[],o=[];T(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Go(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",i);if(T(s.getAxes(),vt(d,!1,null)),s.getTooltipAxes&&i&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&T(p.baseAxes,vt(d,v?"cross":!0,c)),v&&T(p.otherAxes,vt(d,"cross",!1))}function d(g,y,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!g&&!kv(_))){y==null&&(y=_.get("triggerTooltip")),_=g?gk(m,h,n,t,g,y):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),w=Go(m.model),C=y||b||m.type==="category",A=r.axesInfo[w]={key:w,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:C,snap:b,useHandle:kv(_),seriesModels:[],linkGroup:null};u[w]=A,r.seriesInvolved=r.seriesInvolved||C;var M=mk(a,m);if(M!=null){var D=o[M]||(o[M]={axesInfo:{}});D.axesInfo[w]=A,D.mapper=a[M].mapper,A.linkGroup=D}}}})}function gk(r,t,e,i,n,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};T(s,function(c){l[c]=q(o.get(c))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&K(u,h.textStyle)}}return r.model.getModel("axisPointer",new St(l,e,i))}function yk(r,t){t.eachSeries(function(e){var i=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!i||n==="none"||n===!1||n==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||T(r.coordSysAxesInfo[Go(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function mk(r,t){for(var e=t.model,i=t.dim,n=0;n<r.length;n++){var a=r[n]||{};if(sh(a[i+"AxisId"],e.id)||sh(a[i+"AxisIndex"],e.componentIndex)||sh(a[i+"AxisName"],e.name))return n}}function sh(r,t){return r==="all"||z(r)&&ut(r,t)>=0||r===t}function _k(r){var t=Pp(r);if(t){var e=t.axisPointerModel,i=t.axis.scale,n=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=i.parse(o));var s=kv(e);a==null&&(n.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function Pp(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Go(r)]}function Sk(r){var t=Pp(r);return t&&t.axisPointerModel}function kv(r){return!!r.get(["handle","show"])}function Go(r){return r.type+"||"+r.id}var xm={},os=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n,a){this.axisPointerClass&&_k(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,i,n,a){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,i){var n=this._axisPointer;n&&n.remove(i)},t.prototype.dispose=function(e,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,n){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=Sk(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,i,n):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,i){xm[e]=i},t.getAxisPointerClass=function(e){return e&&xm[e]},t.type="axis",t}(Ct),Ov=xt();function xk(r,t,e,i){var n=e.axis;if(!n.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var f=s.length,h=Ov(r).splitAreaColors,c=Y(),v=0;if(h)for(var p=0;p<u.length;p++){var d=h.get(u[p].tickValue);if(d!=null){v=(d+(f-1)*p)%f;break}}var g=n.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=z(s)?s:[s];for(var p=1;p<u.length;p++){var m=n.toGlobalCoord(u[p].coord),_=void 0,S=void 0,b=void 0,x=void 0;n.isHorizontal()?(_=g,S=l.y,b=m-_,x=l.height,g=_+b):(_=l.x,S=g,b=l.width,x=m-S,g=S+x);var w=u[p-1].tickValue;w!=null&&c.set(w,v),t.add(new pt({anid:w!=null?"area_"+w:null,shape:{x:_,y:S,width:b,height:x},style:K({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}Ov(r).splitAreaColors=c}}}function bk(r){Ov(r).splitAreaColors=null}var wk=["axisLine","axisTickLabel","axisName"],Tk=["splitArea","splitLine","minorSplitLine"],ow=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,i,n,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new nt,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),l=Ev(s,e),u=new be(e,O({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),v=0;v<c.length;v++)if(Mv(c[v].getOtherAxis(e.axis).scale))return!0;return!1}},l));T(wk,u.add,u),this._axisGroup.add(u.getGroup()),T(Tk,function(h){e.get([h,"show"])&&Ck[h](this,this._axisGroup,e,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||Su(o,this._axisGroup,e),r.prototype.render.call(this,e,i,n,a)}},t.prototype.remove=function(){bk(this)},t.type="cartesianAxis",t}(os),Ck={splitLine:function(r,t,e,i){var n=e.axis;if(!n.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),l=a.get("showMinLine")!==!1,u=a.get("showMaxLine")!==!1;s=z(s)?s:[s];for(var f=i.coordinateSystem.getRect(),h=n.isHorizontal(),c=0,v=n.getTicksCoords({tickModel:a}),p=[],d=[],g=o.getLineStyle(),y=0;y<v.length;y++){var m=n.toGlobalCoord(v[y].coord);if(!(y===0&&!l||y===v.length-1&&!u)){var _=v[y].tickValue;h?(p[0]=m,p[1]=f.y,d[0]=m,d[1]=f.y+f.height):(p[0]=f.x,p[1]=m,d[0]=f.x+f.width,d[1]=m);var S=c++%s.length,b=new re({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:K({stroke:s[S]},g),silent:!0});Io(b.shape,g.lineWidth),t.add(b)}}}},minorSplitLine:function(r,t,e,i){var n=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=i.coordinateSystem.getRect(),l=n.isHorizontal(),u=n.getMinorTicksCoords();if(u.length)for(var f=[],h=[],c=o.getLineStyle(),v=0;v<u.length;v++)for(var p=0;p<u[v].length;p++){var d=n.toGlobalCoord(u[v][p].coord);l?(f[0]=d,f[1]=s.y,h[0]=d,h[1]=s.y+s.height):(f[0]=s.x,f[1]=d,h[0]=s.x+s.width,h[1]=d);var g=new re({anid:"minor_line_"+u[v][p].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:c,silent:!0});Io(g.shape,c.lineWidth),t.add(g)}},splitArea:function(r,t,e,i){xk(r,t,e,i)}},sw=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t}(ow),Ak=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=sw.type,e}return t.type="yAxis",t}(ow),Mk=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,i){this.group.removeAll(),e.get("show")&&this.group.add(new pt({shape:e.coordinateSystem.getRect(),style:K({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Ct),bm={offset:0};function lw(r){r.registerComponentView(Mk),r.registerComponentModel(QE),r.registerCoordinateSystem("cartesian2d",sk),Fo(r,"x",Iv,bm),Fo(r,"y",Iv,bm),r.registerComponentView(sw),r.registerComponentView(Ak),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function Dk(r){Ht(lw),r.registerSeriesModel($E),r.registerChartView(JE),r.registerLayout(Mp("scatter"))}function Lk(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),i=[],n=t.coordinateSystem;if(n){var a=n.getIndicatorAxes();T(a,function(o,s){e.each(e.mapDimension(a[s].dim),function(l,u){i[u]=i[u]||[];var f=n.dataToPoint(l,s);i[u][s]=wm(f)?f:Tm(n)})}),e.each(function(o){var s=$_(i[o],function(l){return wm(l)})||Tm(n);i[o].push(s.slice()),e.setItemLayout(o,i[o])})}})}function wm(r){return!isNaN(r[0])&&!isNaN(r[1])}function Tm(r){return[r.cx,r.cy]}function Pk(r){var t=r.polar;if(t){z(t)||(t=[t]);var e=[];T(t,function(i,n){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),r.radar=r.radar||[],z(r.radar)||(r.radar=[r.radar]),r.radar.push(i)):e.push(i)}),r.polar=e}T(r.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var Ik=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(c,v){var p=c.getItemVisual(v,"symbol")||"circle";if(p!=="none"){var d=sp(c.getItemVisual(v,"symbolSize")),g=Xt(p,-1,-1,2,2),y=c.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function f(c,v,p,d,g,y){p.removeAll();for(var m=0;m<v.length-1;m++){var _=u(d,g);_&&(_.__dimIdx=m,c[m]?(_.setPosition(c[m]),Sa[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},e,g)):_.setPosition(v[m]),p.add(_))}}function h(c){return V(c,function(v){return[a.cx,a.cy]})}s.diff(l).add(function(c){var v=s.getItemLayout(c);if(v){var p=new sr,d=new De,g={shape:{points:v}};p.shape.points=h(v),d.shape.points=h(v),ie(p,g,e,c),ie(d,g,e,c);var y=new nt,m=new nt;y.add(d),y.add(p),y.add(m),f(d.shape.points,v,m,s,c,!0),s.setItemGraphicEl(c,y)}}).update(function(c,v){var p=l.getItemGraphicEl(v),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(c)}};m.shape.points&&(f(d.shape.points,m.shape.points,y,s,c,!1),Po(g),Po(d),Dt(d,m,e),Dt(g,m,e),s.setItemGraphicEl(c,p))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,v){var p=s.getItemModel(v),d=c.childAt(0),g=c.childAt(1),y=c.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(c),d.useStyle(K(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),fa(d,p,"lineStyle"),fa(g,p,"areaStyle");var S=p.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=b,T(["emphasis","select","blur"],function(C){var A=p.getModel([C,"areaStyle"]),M=A.isEmpty()&&A.parentModel.isEmpty();g.ensureState(C).ignore=M&&b}),g.useStyle(K(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=p.getModel("emphasis"),w=x.getModel("itemStyle").getItemStyle();y.eachChild(function(C){if(C instanceof ae){var A=C.style;C.useStyle(O({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},m))}else C.useStyle(m),C.setColor(_),C.style.strokeNoScale=!0;var M=C.ensureState("emphasis");M.style=q(w);var D=s.getStore().get(s.getDimensionIndex(C.__dimIdx),v);(D==null||isNaN(D))&&(D=""),Kr(C,jr(p),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:C.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:m.opacity})}),xi(c,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(zt),Rk=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new tw(U(this.getData,this),U(this.getRawData,this))},t.prototype.getInitialData=function(e,i){return Dp(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,i,n){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=yx(this,e);return Ar("section",{header:u,sortBlocks:!0,blocks:V(s,function(h){var c=a.get(a.mapDimension(h.dim),e);return Ar("nameValue",{markerType:"subItem",markerColor:f,name:h.name,value:c,sortParam:c})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var i=this.getData(),n=this.coordinateSystem,a=i.getValues(V(n.dimensions,function(u){return i.mapDimension(u)}),e),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(a[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(Yt),Ua=iw.value;function Ys(r,t){return K({show:t},r)}var Ek=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),i=this.get("splitNumber"),n=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),c=this.get("triggerEvent"),v=V(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=K({color:p.color},l));var g=et(q(p),{boundaryGap:e,splitNumber:i,scale:n,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:c},!1);if(G(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else j(f)&&(g.name=f(g.name,g));var m=new St(g,null,this.ecModel);return Zt(m,as.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:et({lineStyle:{color:"#bbb"}},Ua.axisLine),axisLabel:Ys(Ua.axisLabel,!1),axisTick:Ys(Ua.axisTick,!1),splitLine:Ys(Ua.splitLine,!0),splitArea:Ys(Ua.splitArea,!0),indicator:[]},t}(ot),kk=["axisLine","axisTickLabel","axisName"],Ok=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=this.group;a.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var i=e.coordinateSystem,n=i.getIndicatorAxes(),a=V(n,function(o){var s=o.model.get("showName")?o.name:"",l=new be(o.model,{axisName:s,position:[i.cx,i.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});T(a,function(o){T(kk,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var i=e.coordinateSystem,n=i.getIndicatorAxes();if(!n.length)return;var a=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),c=l.get("color"),v=u.get("color"),p=z(c)?c:[c],d=z(v)?v:[v],g=[],y=[];function m(R,k,F){var B=F%k.length;return R[B]=R[B]||[],B}if(a==="circle")for(var _=n[0].getTicksCoords(),S=i.cx,b=i.cy,x=0;x<_.length;x++){if(f){var w=m(g,p,x);g[w].push(new Mr({shape:{cx:S,cy:b,r:_[x].coord}}))}if(h&&x<_.length-1){var w=m(y,d,x);y[w].push(new ma({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var C,A=V(n,function(R,k){var F=R.getTicksCoords();return C=C==null?F.length-1:Math.min(F.length-1,C),V(F,function(B){return i.coordToPoint(B.coord,k)})}),M=[],x=0;x<=C;x++){for(var D=[],P=0;P<n.length;P++)D.push(A[P][x]);if(D[0]&&D.push(D[0].slice()),f){var w=m(g,p,x);g[w].push(new De({shape:{points:D}}))}if(h&&M){var w=m(y,d,x-1);y[w].push(new sr({shape:{points:D.concat(M)}}))}M=D.slice().reverse()}var L=l.getLineStyle(),I=u.getAreaStyle();T(y,function(R,k){this.group.add(ze(R,{style:K({stroke:"none",fill:d[k%d.length]},I),silent:!0}))},this),T(g,function(R,k){this.group.add(ze(R,{style:K({fill:"none",stroke:p[k%p.length]},L),silent:!0}))},this)},t.type="radar",t}(Ct),Bk=function(r){E(t,r);function t(e,i,n){var a=r.call(this,e,i,n)||this;return a.type="value",a.angle=0,a.name="",a}return t}(fr),Nk=function(){function r(t,e,i){this.dimensions=[],this._model=t,this._indicatorAxes=V(t.getIndicatorModels(),function(n,a){var o="indicator_"+a,s=new Bk(o,new Zr);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(t,i)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e],n=i.angle,a=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[a,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=Math.sqrt(e*e+i*i);e/=n,i/=n;for(var a=Math.atan2(-i,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],h=Math.abs(a-f.angle);h<o&&(s=f,l=u,o=h)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(t,e){var i=t.get("center"),n=e.getWidth(),a=e.getHeight(),o=Math.min(n,a)/2;this.cx=J(i[0],n),this.cy=J(i[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(G(s)||yt(s))&&(s=[0,s]),this.r0=J(s[0],o),this.r=J(s[1],o),T(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(t,e){var i=this._indicatorAxes,n=this._model;T(i,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();T(i,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var a=n.get("splitNumber"),o=new Zr;o.setExtent(0,a),o.setInterval(1),T(i,function(s,l){nw(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,i){return null},r.prototype.convertFromPixel=function(t,e,i){return null},r.prototype.containPoint=function(t){return!1},r.create=function(t,e){var i=[];return t.eachComponent("radar",function(n){var a=new r(n,t,e);i.push(a),n.coordinateSystem=a}),t.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=i[n.get("radarIndex")||0])}),i},r.dimensions=[],r}();function uw(r){r.registerCoordinateSystem("radar",Nk),r.registerComponentModel(Ek),r.registerComponentView(Ok),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(i){e.setItemVisual(i,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function zk(r){Ht(uw),r.registerChartView(Ik),r.registerSeriesModel(Rk),r.registerLayout(Lk),r.registerProcessor(Jb("radar")),r.registerPreprocessor(Pk)}var Cm="\0_ec_interaction_mutex";function Vk(r,t,e){var i=Ip(r);i[t]=e}function Fk(r,t,e){var i=Ip(r),n=i[t];n===e&&(i[t]=null)}function Am(r,t){return!!Ip(r)[t]}function Ip(r){return r[Cm]||(r[Cm]={})}ur({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Ft);var fw=function(r){E(t,r);function t(e){var i=r.call(this)||this;i._zr=e;var n=U(i._mousedownHandler,i),a=U(i._mousemoveHandler,i),o=U(i._mouseupHandler,i),s=U(i._mousewheelHandler,i),l=U(i._pinchHandler,i);return i.enable=function(u,f){this.disable(),this._opt=K(q(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(e.on("mousedown",n),e.on("mousemove",a),e.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(e.on("mousewheel",s),e.on("pinch",l))},i.disable=function(){e.off("mousedown",n),e.off("mousemove",a),e.off("mouseup",o),e.off("mousewheel",s),e.off("pinch",l)},i}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(e){this.pointerChecker=e},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!cd(e)){for(var i=e.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var n=e.offsetX,a=e.offsetY;this.pointerChecker&&this.pointerChecker(e,n,a)&&(this._x=n,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(!(!this._dragging||!dl("moveOnMouseMove",e,this._opt)||e.gestureEvent==="pinch"||Am(this._zr,"globalPan"))){var i=e.offsetX,n=e.offsetY,a=this._x,o=this._y,s=i-a,l=n-o;this._x=i,this._y=n,this._opt.preventDefaultMouseMove&&Hr(e.event),hw(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:a,oldY:o,newX:i,newY:n,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){cd(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var i=dl("zoomOnMouseWheel",e,this._opt),n=dl("moveOnMouseWheel",e,this._opt),a=e.wheelDelta,o=Math.abs(a),s=e.offsetX,l=e.offsetY;if(!(a===0||!i&&!n)){if(i){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;lh(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var h=Math.abs(a),c=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);lh(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!Am(this._zr,"globalPan")){var i=e.pinchScale>1?1.1:1/1.1;lh(this,"zoom",null,e,{scale:i,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(ar);function lh(r,t,e,i,n){r.pointerChecker&&r.pointerChecker(i,n.originX,n.originY)&&(Hr(i.event),hw(r,t,e,i,n))}function hw(r,t,e,i,n){n.isAvailableBehavior=U(dl,null,e,i),r.trigger(t,n)}function dl(r,t,e){var i=e[r];return!r||i&&(!G(i)||t.event[i+"Key"])}function Gk(r,t,e){var i=r.target;i.x+=t,i.y+=e,i.dirty()}function Hk(r,t,e,i){var n=r.target,a=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,n.x-=(e-n.x)*(u-1),n.y-=(i-n.y)*(u-1),n.scaleX*=u,n.scaleY*=u,n.dirty()}var Wk={axisPointer:1,tooltip:1,brush:1};function vw(r,t,e){var i=t.getComponentByElement(r.topTarget),n=i&&i.coordinateSystem;return i&&i!==e&&!Wk.hasOwnProperty(i.mainType)&&n&&n.model!==e}function cw(r){if(G(r)){var t=new DOMParser;r=t.parseFromString(r,"text/xml")}var e=r;for(e.nodeType===9&&(e=e.firstChild);e.nodeName.toLowerCase()!=="svg"||e.nodeType!==1;)e=e.nextSibling;return e}var uh,ql={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"},Mm=st(ql),Kl={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Dm=st(Kl),Uk=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(t,e){e=e||{};var i=cw(t);this._defsUsePending=[];var n=new nt;this._root=n;var a=[],o=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||e.width),l=parseFloat(i.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Te(i,n,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,n,a,null,!1,!1),u=u.nextSibling;Zk(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var c=Gu(o);c.length>=4&&(f={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(f&&s!=null&&l!=null&&(h=dw(f,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var v=n;n=new nt,n.add(v),v.scaleX=v.scaleY=h.scale,v.x=h.x,v.y=h.y}return!e.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new pt({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:a}},r.prototype._parseNode=function(t,e,i,n,a,o){var s=t.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=e;else{if(!a){var f=uh[s];if(f&&W(uh,s)){l=f.call(this,t,e);var h=t.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:l};i.push(c),s==="g"&&(u=c)}else n&&i.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});e.add(l)}}var v=Lm[s];if(v&&W(Lm,s)){var p=v.call(this,t),d=t.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=t.firstChild;g;)g.nodeType===1?this._parseNode(g,l,i,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(t,e){var i=new sa({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Ie(e,i),Te(t,i,this._defsUsePending,!1,!1),Yk(i,e);var n=i.style,a=n.fontSize;a&&a<9&&(n.fontSize=9,i.scaleX*=a/9,i.scaleY*=a/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=i.getBoundingRect();return this._textX+=s.width,e.add(i),i},r.internalField=function(){uh={g:function(t,e){var i=new nt;return Ie(e,i),Te(t,i,this._defsUsePending,!1,!1),i},rect:function(t,e){var i=new pt;return Ie(e,i),Te(t,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i},circle:function(t,e){var i=new Mr;return Ie(e,i),Te(t,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),i.silent=!0,i},line:function(t,e){var i=new re;return Ie(e,i),Te(t,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i},ellipse:function(t,e){var i=new Jo;return Ie(e,i),Te(t,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i},polygon:function(t,e){var i=t.getAttribute("points"),n;i&&(n=Rm(i));var a=new sr({shape:{points:n||[]},silent:!0});return Ie(e,a),Te(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,e){var i=t.getAttribute("points"),n;i&&(n=Rm(i));var a=new De({shape:{points:n||[]},silent:!0});return Ie(e,a),Te(t,a,this._defsUsePending,!1,!1),a},image:function(t,e){var i=new ae;return Ie(e,i),Te(t,i,this._defsUsePending,!1,!1),i.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")}),i.silent=!0,i},text:function(t,e){var i=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(a),this._textY=parseFloat(n)+parseFloat(o);var s=new nt;return Ie(e,s),Te(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var i=t.getAttribute("x"),n=t.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),n!=null&&(this._textY=parseFloat(n));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new nt;return Ie(e,s),Te(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,e){var i=t.getAttribute("d")||"",n=yS(i);return Ie(e,n),Te(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}}(),r}(),Lm={lineargradient:function(r){var t=parseInt(r.getAttribute("x1")||"0",10),e=parseInt(r.getAttribute("y1")||"0",10),i=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),a=new ts(t,e,i,n);return Pm(r,a),Im(r,a),a},radialgradient:function(r){var t=parseInt(r.getAttribute("cx")||"0",10),e=parseInt(r.getAttribute("cy")||"0",10),i=parseInt(r.getAttribute("r")||"0",10),n=new kc(t,e,i);return Pm(r,n),Im(r,n),n}};function Pm(r,t){var e=r.getAttribute("gradientUnits");e==="userSpaceOnUse"&&(t.global=!0)}function Im(r,t){for(var e=r.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var i=e.getAttribute("offset"),n=void 0;i&&i.indexOf("%")>0?n=parseInt(i,10)/100:i?n=parseFloat(i):n=0;var a={};pw(e,a,a);var o=a.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:n,color:o})}e=e.nextSibling}}function Ie(r,t){r&&r.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),K(t.__inheritedStyle,r.__inheritedStyle))}function Rm(r){for(var t=Gu(r),e=[],i=0;i<t.length;i+=2){var n=parseFloat(t[i]),a=parseFloat(t[i+1]);e.push([n,a])}return e}function Te(r,t,e,i,n){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};r.nodeType===1&&(Kk(r,t),pw(r,o,s),i||jk(r,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=Em(a,"fill",o.fill,e)),o.stroke!=null&&(a.style.stroke=Em(a,"stroke",o.stroke,e)),T(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),T(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),n&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=V(Gu(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function Yk(r,t){var e=t.__selfStyle;if(e){var i=e.textBaseline,n=i;!i||i==="auto"||i==="baseline"?n="alphabetic":i==="before-edge"||i==="text-before-edge"?n="top":i==="after-edge"||i==="text-after-edge"?n="bottom":(i==="central"||i==="mathematical")&&(n="middle"),r.style.textBaseline=n}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var Xk=/^url\(\s*#(.*?)\)/;function Em(r,t,e,i){var n=e&&e.match(Xk);if(n){var a=Fe(n[1]);i.push([r,t,a]);return}return e==="none"&&(e=null),e}function Zk(r,t){for(var e=0;e<t.length;e++){var i=t[e];i[0].style[i[1]]=r[i[2]]}}var $k=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Gu(r){return r.match($k)||[]}var qk=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,fh=Math.PI/180;function Kk(r,t){var e=r.getAttribute("transform");if(e){e=e.replace(/,/g," ");var i=[],n=null;e.replace(qk,function(h,c,v){return i.push(c,v),""});for(var a=i.length-1;a>0;a-=2){var o=i[a],s=i[a-1],l=Gu(o);switch(n=n||Ce(),s){case"translate":Wr(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":dc(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ti(n,n,-parseFloat(l[0])*fh,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*fh);Tr(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*fh);Tr(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}t.setLocalTransform(n)}}var km=/([^\s:;]+)\s*:\s*([^:;]+)/g;function pw(r,t,e){var i=r.getAttribute("style");if(i){km.lastIndex=0;for(var n;(n=km.exec(i))!=null;){var a=n[1],o=W(ql,a)?ql[a]:null;o&&(t[o]=n[2]);var s=W(Kl,a)?Kl[a]:null;s&&(e[s]=n[2])}}}function jk(r,t,e){for(var i=0;i<Mm.length;i++){var n=Mm[i],a=r.getAttribute(n);a!=null&&(t[ql[n]]=a)}for(var i=0;i<Dm.length;i++){var n=Dm[i],a=r.getAttribute(n);a!=null&&(e[Kl[n]]=a)}}function dw(r,t){var e=t.width/r.width,i=t.height/r.height,n=Math.min(e,i);return{scale:n,x:-(r.x+r.width/2)*n+(t.x+t.width/2),y:-(r.y+r.height/2)*n+(t.y+t.height/2)}}function Jk(r,t){var e=new Uk;return e.parse(r,t)}var Qk=Y(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),tO=function(){function r(t,e){this.type="geoSVG",this._usedGraphicMap=Y(),this._freedGraphics=[],this._mapName=t,this._parsedXML=cw(e)}return r.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=rO(t.named),i=e.regions,n=e.regionsMap;this._regions=i,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(t){var e,i;try{e=t&&Jk(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=e.root,ve(i!=null)}catch(g){throw new Error(`Invalid svg format
  32. `+g.message)}var n=new nt;n.add(i),n.isGeoSVGGraphicRoot=!0;var a=e.width,o=e.height,s=e.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,c=void 0;if(a!=null?(u=0,h=a):s&&(u=s.x,h=s.width),o!=null?(f=0,c=o):s&&(f=s.y,c=s.height),u==null||f==null){var v=i.getBoundingRect();u==null&&(u=v.x,h=v.width),f==null&&(f=v.y,c=v.height)}l=this._boundingRect=new ft(u,f,h,c)}if(s){var p=dw(s,l);i.scaleX=i.scaleY=p.scale,i.x=p.x,i.y=p.y}n.setClipPath(new pt({shape:l.plain()}));var d=[];return T(e.named,function(g){Qk.get(g.svgNodeTagLower)!=null&&(d.push(g),eO(g.el))}),{root:n,boundingRect:l,named:d}},r.prototype.useGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),e.set(t,i),i)},r.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);i&&(e.removeKey(t),this._freedGraphics.push(i))},r}();function eO(r){r.silent=!1,r.isGroup&&r.traverse(function(t){t.silent=!1})}function rO(r){var t=[],e=Y();return T(r,function(i){if(i.namedFrom==null){var n=new TR(i.name,i.el);t.push(n),e.set(i.name,n)}}),{regions:t,regionsMap:e}}var Bv=[126,25],Om="南海诸岛",Ki=[[[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]]];for(var $i=0;$i<Ki.length;$i++)for(var Un=0;Un<Ki[$i].length;Un++)Ki[$i][Un][0]/=10.5,Ki[$i][Un][1]/=-10.5/.75,Ki[$i][Un][0]+=Bv[0],Ki[$i][Un][1]+=Bv[1];function iO(r,t){if(r==="china"){for(var e=0;e<t.length;e++)if(t[e].name===Om)return;t.push(new Cb(Om,V(Ki,function(i){return{type:"polygon",exterior:i}}),Bv))}}var nO={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function aO(r,t){if(r==="china"){var e=nO[t.name];if(e){var i=t.getCenter();i[0]+=e[0]/10.5,i[1]+=-e[1]/(10.5/.75),t.setCenter(i)}}}var oO=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function sO(r,t){r==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:oO[0]})}var lO="name",uO=function(){function r(t,e,i){this.type="geoJSON",this._parsedMap=Y(),this._mapName=t,this._specialAreas=i,this._geoJSON=hO(e)}return r.prototype.load=function(t,e){e=e||lO;var i=this._parsedMap.get(e);if(!i){var n=this._parseToRegions(e);i=this._parsedMap.set(e,{regions:n,boundingRect:fO(n)})}var a=Y(),o=[];return T(i.regions,function(s){var l=s.name;t&&W(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:i.boundingRect||new ft(0,0,0,0),regionsMap:a}},r.prototype._parseToRegions=function(t){var e=this._mapName,i=this._geoJSON,n;try{n=i?Lv(i,t):[]}catch(a){throw new Error(`Invalid geoJson format
  33. `+a.message)}return iO(e,n),T(n,function(a){var o=a.name;aO(e,a),sO(e,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function fO(r){for(var t,e=0;e<r.length;e++){var i=r[e].getBoundingRect();t=t||i.clone(),t.union(i)}return t}function hO(r){return G(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Ya=Y();const $r={registerMap:function(r,t,e){if(t.svg){var i=new tO(r,t.svg);Ya.set(r,i)}else{var n=t.geoJson||t.geoJSON;n&&!t.features?e=t.specialAreas:n=t;var i=new uO(r,n,e);Ya.set(r,i)}},getGeoResource:function(r){return Ya.get(r)},getMapForUser:function(r){var t=Ya.get(r);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(r,t,e){var i=Ya.get(r);if(i)return i.load(t,e)}};var Rp=["rect","circle","line","ellipse","polygon","polyline","path"],vO=Y(Rp),cO=Y(Rp.concat(["g"])),pO=Y(Rp.concat(["g"])),gw=xt();function Xs(r){var t=r.getItemStyle(),e=r.get("areaColor");return e!=null&&(t.fill=e),t}function Bm(r){var t=r.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var yw=function(){function r(t){var e=new nt;this.uid=xa("ec_map_draw"),this._controller=new fw(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new nt),e.add(this._svgGroup=new nt)}return r.prototype.draw=function(t,e,i,n,a){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===t&&(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,f=this.group,h=l.getTransformInfo(),c=h.raw,v=h.roam,p=!u.childAt(0)||a;p?(f.x=v.x,f.y=v.y,f.scaleX=v.scaleX,f.scaleY=v.scaleY,f.dirty()):Dt(f,v,t);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:i,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:c};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,i),this._updateMapSelectHandler(t,u,i,n)},r.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Y(),i=Y(),n=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function f(v,p){return p&&(v=p(v)),v&&[v[0]*a.scaleX+a.x,v[1]*a.scaleY+a.y]}function h(v){for(var p=[],d=!u&&l&&l.project,g=0;g<v.length;++g){var y=f(v[g],d);y&&p.push(y)}return p}function c(v){return{shape:{points:h(v)}}}n.removeAll(),T(t.geo.regions,function(v){var p=v.name,d=e.get(p),g=i.get(p)||{},y=g.dataIdx,m=g.regionModel;if(!d){d=e.set(p,new nt),n.add(d),y=s?s.indexOfName(p):null,m=t.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(d.silent=_),i.set(p,{dataIdx:y,regionModel:m})}var S=[],b=[];T(v.geometries,function(C){if(C.type==="polygon"){var A=[C.exterior].concat(C.interiors||[]);u&&(A=Hm(A,u)),T(A,function(D){S.push(new sr(c(D)))})}else{var M=C.points;u&&(M=Hm(M,u,!0)),T(M,function(D){b.push(new De(c(D)))})}});var x=f(v.getCenter(),l&&l.project);function w(C,A){if(C.length){var M=new yu({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});d.add(M),Nm(t,M,y,m),zm(t,M,p,m,o,y,x),A&&(Bm(M),T(M.states,Bm))}}w(S),w(b,!0)}),e.each(function(v,p){var d=i.get(p),g=d.dataIdx,y=d.regionModel;Vm(t,v,p,y,o,g),Fm(t,v,p,y,o),Gm(t,v,p,y,o)},this)},r.prototype._buildSVG=function(t){var e=t.geo.map,i=t.transformInfoRaw;this._svgGroup.x=i.x,this._svgGroup.y=i.y,this._svgGroup.scaleX=i.scaleX,this._svgGroup.scaleY=i.scaleY,this._svgResourceChanged(e)&&(this._freeSVG(),this._useSVG(e));var n=this._svgDispatcherMap=Y(),a=!1;T(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,f=o.svgNodeTagLower,h=o.el,c=u?u.indexOfName(s):null,v=l.getRegionModel(s);vO.get(f)!=null&&h instanceof Yr&&Nm(t,h,c,v),h instanceof Yr&&(h.culling=!0);var p=v.get("silent",!0);if(p!=null&&(h.silent=p),h.z2EmphasisLift=0,!o.namedFrom&&(pO.get(f)!=null&&zm(t,h,s,v,l,c,null),Vm(t,h,s,v,l,c),Fm(t,h,s,v,l),cO.get(f)!=null)){var d=Gm(t,h,s,v,l);d==="self"&&(a=!0);var g=n.get(s)||n.set(s,[]);g.push(h)}},this),this._enableBlurEntireSVG(a,t)},r.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var i=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=i.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){Ic(a);var o=a.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),a.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var i=e.coordinateSystem;if(i.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var a=n.get(t);return a?[a]:[]}}else if(i.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},r.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},r.prototype._useSVG=function(t){var e=$r.getGeoResource(t);if(e&&e.type==="geoSVG"){var i=e.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=t}},r.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=$r.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(t,e,i){var n=t.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=n.getZoom(),a.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,Gk(o,u.dx,u.dy),i.dispatchAction(O(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Hk(o,u.scale,u.originX,u.originY),i.dispatchAction(O(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,f,h){return n.containPoint([f,h])&&!vw(u,i,t)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=gw(e).ignore)})},r.prototype._updateMapSelectHandler=function(t,e,i,n){var a=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){a._mouseDownFlag=!0}),e.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},r}();function Nm(r,t,e,i){var n=i.getModel("itemStyle"),a=i.getModel(["emphasis","itemStyle"]),o=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=Xs(n),u=Xs(a),f=Xs(s),h=Xs(o),c=r.data;if(c){var v=c.getItemVisual(e,"style"),p=c.getItemVisual(e,"decal");r.isVisualEncodedByVisualMap&&v.fill&&(l.fill=v.fill),p&&(l.decal=Gl(p,r.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=f,t.ensureState("blur").style=h,Ic(t)}function zm(r,t,e,i,n,a,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),f=s&&s.getItemLayout(a);if(l||u||f&&f.showLabel){var h=l?e:a,c=void 0;(!s||a>=0)&&(c=n);var v=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Kr(t,jr(i),{labelFetcher:c,labelDataIndex:h,defaultText:e},v);var p=t.getTextContent();if(p&&(gw(p).ignore=p.ignore,t.textConfig&&o)){var d=t.getBoundingRect().clone();t.textConfig.layoutRect=d,t.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Vm(r,t,e,i,n,a){r.data?r.data.setItemGraphicEl(a,t):at(t).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:e,region:i&&i.option||{}}}function Fm(r,t,e,i,n){r.data||Cn({el:t,componentModel:n,itemName:e,itemTooltipOption:i.get("tooltip")})}function Gm(r,t,e,i,n){t.highDownSilentOnTouch=!!n.get("selectedMode");var a=i.getModel("emphasis"),o=a.get("focus");return xi(t,o,a.get("blurScope"),a.get("disabled")),r.isGeo&&DD(t,n,e),o}function Hm(r,t,e){var i=[],n;function a(){n=[]}function o(){n.length&&(i.push(n),n=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),T(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!e&&s.polygonEnd(),i}var dO=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===e.id){var s=this._mapDraw;s&&o.add(s.group)}else if(e.needsDrawMap){var s=this._mapDraw||new yw(n);o.add(s.group),s.draw(e,i,n,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(e,i,n)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,i,n){var a=e.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,h=u.offset,c=new Mr({style:{fill:e.getData().getVisual("style").fill},shape:{cx:f[0]+h*9,cy:f[1],r:3},silent:!0,z2:8+(h?0:nS+1)});if(!h){var v=e.mainSeries.getData(),p=a.getName(l),d=v.indexOfName(p),g=a.getItemModel(l),y=g.getModel("label"),m=v.getItemGraphicEl(d);Kr(c,jr(g),{labelFetcher:{getFormattedLabel:function(_,S){return e.getFormattedLabel(d,S)}},defaultText:p}),c.disableLabelAnimation=!0,y.get("position")||c.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){av(c,_)}}o.add(c)}}})},t.type="map",t}(zt),gO=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(i){if(i!=null){var n=this.getData().getName(i),a=this.coordinateSystem,o=a.getRegion(n);return o&&a.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var i=Dp(this,{coordDimensions:["value"],encodeDefaulter:vt($S,this)}),n=Y(),a=[],o=0,s=i.count();o<s;o++){var l=i.getName(o);n.set(l,o)}var u=$r.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return T(u.regions,function(f){var h=f.name,c=n.get(h),v=f.properties&&f.properties.echartsStyle,p;c==null?(p={name:h},a.push(p)):p=i.getRawDataItem(c),v&&et(p,v)}),i.appendData(a),i},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var i=this.getData();return i.get(i.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var i=this.getData();return i.getItemModel(i.indexOfName(e))},t.prototype.formatTooltip=function(e,i,n){for(var a=this.getData(),o=this.getRawValue(e),s=a.getName(e),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var h=l[f].originalData.indexOfName(s),c=a.mapDimension("value");isNaN(l[f].originalData.get(c,h))||u.push(l[f].name)}return Ar("section",{header:u.join(", "),noHeader:!u.length,blocks:[Ar("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var i=e.icon||"roundRect",n=Xt(i,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return n.setStyle(e.itemStyle),n.style.stroke="none",i.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.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:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(Yt);function yO(r,t){var e={};return T(r,function(i){i.each(i.mapDimension("value"),function(n,a){var o="ec-"+i.getName(a);e[o]=e[o]||[],isNaN(n)||e[o].push(n)})}),r[0].map(r[0].mapDimension("value"),function(i,n){for(var a="ec-"+r[0].getName(n),o=0,s=1/0,l=-1/0,u=e[a].length,f=0;f<u;f++)s=Math.min(s,e[a][f]),l=Math.max(l,e[a][f]),o+=e[a][f];var h;return t==="min"?h=s:t==="max"?h=l:t==="average"?h=o/u:h=o,u===0?NaN:h})}function mO(r){var t={};r.eachSeriesByType("map",function(e){var i=e.getHostGeoModel(),n=i?"o"+i.id:"i"+e.getMapType();(t[n]=t[n]||[]).push(e)}),T(t,function(e,i){for(var n=yO(V(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),a=0;a<e.length;a++)e[a].originalData=e[a].getData();for(var a=0;a<e.length;a++)e[a].seriesGroup=e,e[a].needsDrawMap=a===0&&!e[a].getHostGeoModel(),e[a].setData(n.cloneShallow()),e[a].mainSeries=e[0]})}function _O(r){var t={};r.eachSeriesByType("map",function(e){var i=e.getMapType();if(!(e.getHostGeoModel()||t[i])){var n={};T(e.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var h=l.getName(f),c=s.getRegion(h);if(!(!c||isNaN(u))){var v=n[h]||0,p=s.dataToPoint(c.getCenter());n[h]=v+1,l.setItemLayout(f,{point:p,offset:v})}})});var a=e.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!n[s],a.setItemLayout(o,l)}),t[i]=!0}})}var Wm=Gt,mw=function(r){E(t,r);function t(e){var i=r.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new rn,i._rawTransformable=new rn,i.name=e,i}return t.prototype.setBoundingRect=function(e,i,n,a){return this._rect=new ft(e,i,n,a),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,i,n,a){this._transformTo(e,i,n,a),this._viewRect=new ft(e,i,n,a)},t.prototype._transformTo=function(e,i,n,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ft(e,i,n,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,i){e&&(this._center=[J(e[0],i.getWidth()),J(e[1],i.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(e){e=e||1;var i=this.zoomLimit;i&&(i.max!=null&&(e=Math.min(i.max,e)),i.min!=null&&(e=Math.max(i.min,e))),this._zoom=e,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var e=this.getBoundingRect(),i=e.x+e.width/2,n=e.y+e.height/2;return[i,n]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var e=this._rawTransformable.getLocalTransform(),i=this._roamTransformable,n=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=Gt([],a,e),n=Gt([],n,e),i.originX=a[0],i.originY=a[1],i.x=n[0]-a[0],i.y=n[1]-a[1],i.scaleX=i.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,i=this._rawTransformable;i.parent=e,e.updateTransform(),i.updateTransform(),au(this.transform||(this.transform=[]),i.transform||Ce()),this._rawTransform=i.getLocalTransform(),this.invTransform=this.invTransform||[],Tn(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,i=this._roamTransformable,n=new rn;return n.transform=i.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},t.prototype.dataToPoint=function(e,i,n){var a=i?this._rawTransform:this.transform;return n=n||[],a?Wm(n,e,a):Q_(n,e)},t.prototype.pointToData=function(e){var i=this.invTransform;return i?Wm([],e,i):[e[0],e[1]]},t.prototype.convertToPixel=function(e,i,n){var a=Um(i);return a===this?a.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,i,n){var a=Um(i);return a===this?a.pointToData(n):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(rn);function Um(r){var t=r.seriesModel;return t?t.coordinateSystem:null}var SO={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},_w=["lng","lat"],Nv=function(r){E(t,r);function t(e,i,n){var a=r.call(this,e)||this;a.dimensions=_w,a.type="geo",a._nameCoordMap=Y(),a.map=i;var o=n.projection,s=$r.load(i,n.nameMap,n.nameProperty),l=$r.getGeoResource(i);a.resourceType=l?l.type:null;var u=a.regions=s.regions,f=SO[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var h;if(o)for(var c=0;c<u.length;c++){var v=u[c].getBoundingRect(o);h=h||v.clone(),h.union(v)}else h=s.boundingRect;return a.setBoundingRect(h.x,h.y,h.width,h.height),a.aspectScale=o?1:Q(n.aspectScale,f.aspectScale),a._invertLongitute=o?!1:f.invertLongitute,a}return t.prototype._transformTo=function(e,i,n,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new ft(e,i,n,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(e){return this._regionsMap.get(e)},t.prototype.getRegionByCoord=function(e){for(var i=this.regions,n=0;n<i.length;n++){var a=i[n];if(a.type==="geoJSON"&&a.contain(e))return i[n]}},t.prototype.addGeoCoord=function(e,i){this._nameCoordMap.set(e,i)},t.prototype.getGeoCoord=function(e){var i=this._regionsMap.get(e);return this._nameCoordMap.get(e)||i&&i.getCenter()},t.prototype.dataToPoint=function(e,i,n){if(G(e)&&(e=this.getGeoCoord(e)),e){var a=this.projection;return a&&(e=a.project(e)),e&&this.projectedToPoint(e,i,n)}},t.prototype.pointToData=function(e){var i=this.projection;return i&&(e=i.unproject(e)),e&&this.pointToProjected(e)},t.prototype.pointToProjected=function(e){return r.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,i,n){return r.prototype.dataToPoint.call(this,e,i,n)},t.prototype.convertToPixel=function(e,i,n){var a=Ym(i);return a===this?a.dataToPoint(n):null},t.prototype.convertFromPixel=function(e,i,n){var a=Ym(i);return a===this?a.pointToData(n):null},t}(mw);Zt(Nv,mw);function Ym(r){var t=r.geoModel,e=r.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",Bt).models[0]||{}).coordinateSystem:null}function Xm(r,t){var e=r.get("boundingCoords");if(e!=null){var i=e[0],n=e[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(n[0])&&isFinite(n[1])){var a=this.projection;if(a){var o=i[0],s=i[1],l=n[0],u=n[1];i=[1/0,1/0],n=[-1/0,-1/0];var f=function(x,w,C,A){for(var M=C-x,D=A-w,P=0;P<=100;P++){var L=P/100,I=a.project([x+M*L,w+D*L]);Br(i,i,I),Nr(n,n,I)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(i[0],i[1],n[0]-i[0],n[1]-i[1])}}var h=this.getBoundingRect(),c=r.get("layoutCenter"),v=r.get("layoutSize"),p=t.getWidth(),d=t.getHeight(),g=h.width/h.height*this.aspectScale,y=!1,m,_;c&&v&&(m=[J(c[0],p),J(c[1],d)],_=J(v,Math.min(p,d)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var b=r.getBoxLayoutParams();b.aspect=g,S=ce(b,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),t),this.setZoom(r.get("zoom"))}function xO(r,t){T(t.get("geoCoord"),function(e,i){r.addGeoCoord(i,e)})}var bO=function(){function r(){this.dimensions=_w}return r.prototype.create=function(t,e){var i=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Nv(l+s,l,O({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),i.push(u),o.coordinateSystem=u,u.model=o,u.resize=Xm,u.resize(o,e)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=i[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),T(a,function(o,s){var l=V(o,function(f){return f.get("nameMap")}),u=new Nv(s,s,O({nameMap:Z_(l)},n(o[0])));u.zoomLimit=Gr.apply(null,V(o,function(f){return f.get("scaleLimit")})),i.push(u),u.resize=Xm,u.resize(o[0],e),T(o,function(f){f.coordinateSystem=u,xO(u,f)})}),i},r.prototype.getFilledRegions=function(t,e,i,n){for(var a=(t||[]).slice(),o=Y(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=$r.load(e,i,n);return T(l.regions,function(u){var f=u.name,h=o.get(f),c=u.properties&&u.properties.echartsStyle;h||(h={name:f},a.push(h)),c&&et(h,c)}),a},r}(),Sw=new bO,wO=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i,n){var a=$r.getGeoResource(e.map);if(a&&a.type==="geoJSON"){var o=e.itemStyle=e.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(e,n),Dl(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,i=this.option;i.regions=Sw.getFilledRegions(i.regions,i.map,i.nameMap,i.nameProperty);var n={};this._optionModelMap=Ge(i.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new St(o,e,e.ecModel)),o.selected&&(n[s]=!0)),a},Y()),i.selectedMap||(i.selectedMap=n)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new St(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,i){var n=this.getRegionModel(e),a=i==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:e};if(j(a))return o.status=i,a(o);if(G(a))return a.replace("{a}",e!=null?e:"")},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.select=function(e){var i=this.option,n=i.selectedMode;if(n){n!=="multiple"&&(i.selectedMap=null);var a=i.selectedMap||(i.selectedMap={});a[e]=!0}},t.prototype.unSelect=function(e){var i=this.option.selectedMap;i&&(i[e]=!1)},t.prototype.toggleSelected=function(e){this[this.isSelected(e)?"unSelect":"select"](e)},t.prototype.isSelected=function(e){var i=this.option.selectedMap;return!!(i&&i[e])},t.type="geo",t.layoutMode="box",t.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:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(ot);function Zm(r,t){return r.pointToProjected?r.pointToProjected(t):r.pointToData(t)}function TO(r,t,e,i){var n=r.getZoom(),a=r.getCenter(),o=t.zoom,s=r.projectedToPoint?r.projectedToPoint(a):r.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,r.setCenter(Zm(r,s),i)),o!=null){if(e){var l=e.min||0,u=e.max||1/0;o=Math.max(Math.min(n*o,u),l)/n}r.scaleX*=o,r.scaleY*=o;var f=(t.originX-r.x)*(o-1),h=(t.originY-r.y)*(o-1);r.x-=f,r.y-=h,r.updateTransform(),r.setCenter(Zm(r,s),i),r.setZoom(o*n)}return{center:r.getCenter(),zoom:r.getZoom()}}var CO=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return t.prototype.init=function(e,i){this._api=i},t.prototype.render=function(e,i,n,a){if(this._model=e,!e.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new yw(n));var o=this._mapDraw;o.draw(e,i,n,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=e.get("silent"),this.group.add(o.group),this.updateSelectStatus(e,i,n)},t.prototype._handleRegionClick=function(e){var i;sn(e.target,function(n){return(i=at(n).eventData)!=null},!0),i&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:i.name})},t.prototype.updateSelectStatus=function(e,i,n){var a=this;this._mapDraw.group.traverse(function(o){var s=at(o).eventData;if(s)return a._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(e){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(e,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(Ct);function AO(r,t,e){$r.registerMap(r,t,e)}function MO(r){r.registerCoordinateSystem("geo",Sw),r.registerComponentModel(wO),r.registerComponentView(CO),r.registerImpl("registerMap",AO),r.registerImpl("getMap",function(e){return $r.getMapForUser(e)});function t(e,i){i.update="geo:updateSelectStatus",r.registerAction(i,function(n,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:n},function(l){l[e](n.name);var u=l.coordinateSystem;T(u.regions,function(h){o[h.name]=l.isSelected(h.name)||!1});var f=[];T(o,function(h,c){o[c]&&f.push(c)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:n.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,i,n){var a=e.componentType||"series";i.eachComponent({mainType:a,query:e},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=TO(s,e,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&T(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function DO(r){Ht(MO),r.registerChartView(dO),r.registerSeriesModel(gO),r.registerLayout(_O),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,mO),Px("map",r.registerAction)}var Ho=T,LO=Z,jl=-1,Ut=function(){function r(t){var e=t.mappingMethod,i=t.type,n=this.option=q(t);this.type=i,this.mappingMethod=e,this._normalizeData=RO[e];var a=r.visualHandlers[i];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[e],e==="piecewise"?(hh(n),PO(n)):e==="category"?n.categories?IO(n):hh(n,!0):(ve(e!=="linear"||n.dataExtent),hh(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return U(this._normalizeData,this)},r.listVisualTypes=function(){return st(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,i){Z(t)?T(t,e,i):e.call(i,t)},r.mapVisual=function(t,e,i){var n,a=z(t)?[]:Z(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(i,o,s);n?a=l:a[s]=l}),a},r.retrieveVisuals=function(t){var e={},i;return t&&Ho(r.visualHandlers,function(n,a){t.hasOwnProperty(a)&&(e[a]=t[a],i=!0)}),i?e:null},r.prepareVisualTypes=function(t){if(z(t))t=t.slice();else if(LO(t)){var e=[];Ho(t,function(i,n){e.push(n)}),t=e}else return[];return t.sort(function(i,n){return n==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,i){for(var n,a=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||G(l)&&l===t+"")return o;i&&c(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],f=u.interval,h=u.close;if(f){if(f[0]===-1/0){if($s(h[1],t,f[1]))return o}else if(f[1]===1/0){if($s(h[0],f[0],t))return o}else if($s(h[0],f[0],t)&&$s(h[1],t,f[1]))return o;i&&c(f[0],o),i&&c(f[1],o)}}if(i)return t===1/0?e.length-1:t===-1/0?0:n;function c(v,p){var d=Math.abs(v-t);d<a&&(a=d,n=p)}},r.visualHandlers={color:{applyVisual:Xa("color"),getColorMapper:function(){var t=this.option;return U(t.mappingMethod==="category"?function(e,i){return!i&&(e=this._normalizeData(e)),ao.call(this,e)}:function(e,i,n){var a=!!n;return!i&&(e=this._normalizeData(e)),n=uo(e,t.parsedVisual,n),a?n:rr(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return rr(uo(t,this.option.parsedVisual),"rgba")},category:ao,piecewise:function(t,e){var i=Vv.call(this,e);return i==null&&(i=rr(uo(t,this.option.parsedVisual),"rgba")),i},fixed:ji}},colorHue:Zs(function(t,e){return nl(t,e)}),colorSaturation:Zs(function(t,e){return nl(t,null,e)}),colorLightness:Zs(function(t,e){return nl(t,null,null,e)}),colorAlpha:Zs(function(t,e){return m1(t,e)}),decal:{applyVisual:Xa("decal"),_normalizedToVisual:{linear:null,category:ao,piecewise:null,fixed:null}},opacity:{applyVisual:Xa("opacity"),_normalizedToVisual:zv([0,1])},liftZ:{applyVisual:Xa("liftZ"),_normalizedToVisual:{linear:ji,category:ji,piecewise:ji,fixed:ji}},symbol:{applyVisual:function(t,e,i){var n=this.mapValueToVisual(t);i("symbol",n)},_normalizedToVisual:{linear:$m,category:ao,piecewise:function(t,e){var i=Vv.call(this,e);return i==null&&(i=$m.call(this,t)),i},fixed:ji}},symbolSize:{applyVisual:Xa("symbolSize"),_normalizedToVisual:zv([0,1])}},r}();function PO(r){var t=r.pieceList;r.hasSpecialVisual=!1,T(t,function(e,i){e.originIndex=i,e.visual!=null&&(r.hasSpecialVisual=!0)})}function IO(r){var t=r.categories,e=r.categoryMap={},i=r.visual;if(Ho(t,function(o,s){e[o]=s}),!z(i)){var n=[];Z(i)?Ho(i,function(o,s){var l=e[s];n[l!=null?l:jl]=o}):n[jl]=i,i=xw(r,n)}for(var a=t.length-1;a>=0;a--)i[a]==null&&(delete e[t[a]],t.pop())}function hh(r,t){var e=r.visual,i=[];Z(e)?Ho(e,function(a){i.push(a)}):e!=null&&i.push(e);var n={color:1,symbol:1};!t&&i.length===1&&!n.hasOwnProperty(r.type)&&(i[1]=i[0]),xw(r,i)}function Zs(r){return{applyVisual:function(t,e,i){var n=this.mapValueToVisual(t);i("color",r(e("color"),n))},_normalizedToVisual:zv([0,1])}}function $m(r){var t=this.option.visual;return t[Math.round(Tt(r,[0,1],[0,t.length-1],!0))]||{}}function Xa(r){return function(t,e,i){i(r,this.mapValueToVisual(t))}}function ao(r){var t=this.option.visual;return t[this.option.loop&&r!==jl?r%t.length:r]}function ji(){return this.option.visual[0]}function zv(r){return{linear:function(t){return Tt(t,r,this.option.visual,!0)},category:ao,piecewise:function(t,e){var i=Vv.call(this,e);return i==null&&(i=Tt(t,r,this.option.visual,!0)),i},fixed:ji}}function Vv(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var i=Ut.findPieceIndex(r,e),n=e[i];if(n&&n.visual)return n.visual[this.type]}}function xw(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=V(t,function(e){var i=fe(e);return i||[0,0,0,1]})),t}var RO={linear:function(r){return Tt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=Ut.findPieceIndex(r,t,!0);if(e!=null)return Tt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t==null?jl:t},fixed:Ft};function $s(r,t,e){return r?t<=e:t<e}function EO(r){kO(r),OO(r)}function kO(r){if(!r.parallel){var t=!1;T(r.series,function(e){e&&e.type==="parallel"&&(t=!0)}),t&&(r.parallel=[{}])}}function OO(r){var t=Mt(r.parallelAxis);T(t,function(e){if(Z(e)){var i=e.parallelIndex||0,n=Mt(r.parallel)[i];n&&n.parallelAxisDefault&&et(e,n.parallelAxisDefault,!1)}})}var BO=5,NO=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){this._model=e,this._api=n,this._handlers||(this._handlers={},T(zO,function(a,o){n.getZr().on(o,this._handlers[o]=U(a,this))},this)),is(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,i){Oo(this,"_throttledDispatchExpand"),T(this._handlers,function(n,a){i.getZr().off(a,n)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(O({type:"parallelAxisExpand"},e))},t.type="parallel",t}(Ct),zO={mousedown:function(r){vh(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var t=this._mouseDownPoint;if(vh(this,"click")&&t){var e=[r.offsetX,r.offsetY],i=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2);if(i>BO)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!vh(this,"mousemove"))){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),i=e.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:e.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function vh(r,t){var e=r._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var VO=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var i=this.option;e&&et(i,e,!0),this._initDimensions()},t.prototype.contains=function(e,i){var n=e.get("parallelIndex");return n!=null&&i.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){T(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){e.hasOwnProperty(i)&&(this.option[i]=e[i])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],i=this.parallelAxisIndex=[],n=wt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);T(n,function(a){e.push("dim"+a.get("dim")),i.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.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},t}(ot),FO=function(r){E(t,r);function t(e,i,n,a,o){var s=r.call(this,e,i,n)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(fr);function Mn(r,t,e,i,n,a){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Yn(n,[0,o])),a!=null&&(a=Math.max(a,n!=null?n:0)),i==="all"){var s=Math.abs(t[1]-t[0]);s=Yn(s,[0,o]),n=a=Yn(s,[n,a]),i=0}t[0]=Yn(t[0],e),t[1]=Yn(t[1],e);var l=ch(t,i);t[i]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[i]=Yn(t[i],f);var h;return h=ch(t,i),n!=null&&(h.sign!==l.sign||h.span<n)&&(t[1-i]=t[i]+l.sign*n),h=ch(t,i),a!=null&&h.span>a&&(t[1-i]=t[i]+h.sign*a),t}function ch(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Yn(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var ph=T,bw=Math.min,ww=Math.max,qm=Math.floor,GO=Math.ceil,Km=Rt,HO=Math.PI,WO=function(){function r(t,e,i){this.type="parallel",this._axesMap=Y(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,i)}return r.prototype._init=function(t,e,i){var n=t.dimensions,a=t.parallelAxisIndex;ph(n,function(o,s){var l=a[s],u=e.getComponent("parallelAxis",l),f=this._axesMap.set(o,new FO(o,Vu(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},r.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),i=e.axisBase,n=e.layoutBase,a=e.pixelDimIndex,o=t[1-a],s=t[a];return o>=i&&o<=i+e.axisLength&&s>=n&&s<=n+e.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(i){if(t.contains(i,e)){var n=i.getData();ph(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(n,n.mapDimension(a)),va(o.scale,o.model)},this)}},this)},r.prototype.resize=function(t,e){this._rect=ce(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,i=["x","y"],n=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=e[n[o]],l=[0,s],u=this.dimensions.length,f=qs(t.get("axisExpandWidth"),l),h=qs(t.get("axisExpandCount")||0,[0,u]),c=t.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,v=t.get("axisExpandWindow"),p;if(v)p=qs(v[1]-v[0],l),v[1]=v[0]+p;else{p=qs(f*(h-1),l);var d=t.get("axisExpandCenter")||qm(u/2);v=[f*d-p/2],v[1]=v[0]+p}var g=(s-p)/(u-h);g<3&&(g=0);var y=[qm(Km(v[0]/f,1))+1,GO(Km(v[1]/f,1))-1],m=g/f*v[0];return{layout:a,pixelDimIndex:o,layoutBase:e[i[o]],layoutLength:s,axisBase:e[i[1-o]],axisLength:e[n[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:v,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,i=this.dimensions,n=this._makeLayoutInfo(),a=n.layout;e.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),ph(i,function(o,s){var l=(n.axisExpandable?YO:UO)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:HO/2,vertical:0},h=[u[a].x+t.x,u[a].y+t.y],c=f[a],v=Ce();Ti(v,v,c),Wr(v,v,h),this._axesLayout[o]={position:h,rotation:c,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(t){return this._axesMap.get(t)},r.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},r.prototype.eachActiveState=function(t,e,i,n){i==null&&(i=0),n==null&&(n=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];T(o,function(g){s.push(t.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),f=i;f<n;f++){var h=void 0;if(!u)h="normal";else{h="active";for(var c=t.getValues(s,f),v=0,p=o.length;v<p;v++){var d=l[v].getActiveState(c[v]);if(d==="inactive"){h="inactive";break}}}e(h,f)}},r.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,i=!1,n=0,a=t.length;n<a;n++)e.get(t[n]).model.getActiveState()!=="normal"&&(i=!0);return i},r.prototype.axisCoordToPoint=function(t,e){var i=this._axesLayout[e];return ir([t,0],i.transform)},r.prototype.getAxisLayout=function(t){return q(this._axesLayout[t])},r.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),i=e.pixelDimIndex,n=e.axisExpandWindow.slice(),a=n[1]-n[0],o=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:n};var s=t[i]-e.layoutBase-e.axisExpandWindow0Pos,l,u="slide",f=e.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),c=h[0]!=null;if(f)c&&f&&s<a*h[0]?(u="jump",l=s-a*h[2]):c&&f&&s>a*(1-h[0])?(u="jump",l=s-a*(1-h[2])):(l=s-a*h[1])>=0&&(l=s-a*(1-h[1]))<=0&&(l=0),l*=e.axisExpandWidth/f,l?Mn(l,n,o,"all"):u="none";else{var v=n[1]-n[0],p=o[1]*s/v;n=[ww(0,p-v/2)],n[1]=bw(o[1],n[0]+v),n[0]=n[1]-v}return{axisExpandWindow:n,behavior:u}},r}();function qs(r,t){return bw(ww(r,t[0]),t[1])}function UO(r,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*r,axisNameAvailableWidth:e,axisLabelShow:!0}}function YO(r,t){var e=t.layoutLength,i=t.axisExpandWidth,n=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,f;return r<o[0]?(s=r*a,f=a):r<=o[1]?(s=t.axisExpandWindow0Pos+r*i-t.axisExpandWindow[0],l=i,u=!0):(s=e-(n-1-r)*a,f=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function XO(r,t){var e=[];return r.eachComponent("parallel",function(i,n){var a=new WO(i,r,t);a.name="parallel_"+n,a.resize(i,t),i.coordinateSystem=a,a.model=i,e.push(a)}),r.eachSeries(function(i){if(i.get("coordinateSystem")==="parallel"){var n=i.getReferringComponents("parallel",Bt).models[0];i.coordinateSystem=n.coordinateSystem}}),e}var ZO={create:XO},Fv=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return t.prototype.getAreaSelectStyle=function(){return oa([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var i=this.activeIntervals=q(e);if(i)for(var n=i.length-1;n>=0;n--)Sr(i[n])},t.prototype.getActiveState=function(e){var i=this.activeIntervals;if(!i.length)return"normal";if(e==null||isNaN(+e))return"inactive";if(i.length===1){var n=i[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var a=0,o=i.length;a<o;a++)if(i[a][0]<=e&&e<=i[a][1])return"active";return"inactive"},t}(ot);Zt(Fv,as);var xn=!0,Wo=Math.min,ca=Math.max,$O=Math.pow,qO=1e4,KO=6,jO=6,jm="globalPan",JO={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},QO={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Jm={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},tB=0,Tw=function(r){E(t,r);function t(e){var i=r.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=e,i.group=new nt,i._uid="brushController_"+tB++,T(sB,function(n,a){this._handlers[a]=U(n,this)},i),i}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var i=this._zr;this._enableGlobalPan||Vk(i,jm,this._uid),T(this._handlers,function(n,a){i.on(a,n)}),this._brushType=e.brushType,this._brushOption=et(q(Jm),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;Fk(e,jm,this._uid),T(this._handlers,function(i,n){e.off(n,i)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var i=this._panels={};T(e,function(n){i[n.panelId]=q(n)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=i.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=V(e,function(c){return et(q(Jm),c,!0)});var i="\0-brush-index-",n=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new mp(n,e,u,l).add(f).update(f).remove(h).execute(),this;function l(c,v){return(c.id!=null?c.id:i+v)+"-"+c.brushType}function u(c,v){return l(c.__brushOption,v)}function f(c,v){var p=e[c];if(v!=null&&n[v]===s)a[c]=n[v];else{var d=a[c]=v!=null?(n[v].__brushOption=p,n[v]):Aw(o,Cw(o,p));Ep(o,d)}}function h(c){n[c]!==s&&o.group.remove(n[c])}},t.prototype.unmount=function(){return this.enableBrush(!1),Gv(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(ar);function Cw(r,t){var e=Hu[t.brushType].createCover(r,t);return e.__brushOption=t,Dw(e,t),r.group.add(e),e}function Aw(r,t){var e=kp(t);return e.endCreating&&(e.endCreating(r,t),Dw(t,t.__brushOption)),t}function Mw(r,t){var e=t.__brushOption;kp(t).updateCoverShape(r,t,e.range,e)}function Dw(r,t){var e=t.z;e==null&&(e=qO),r.traverse(function(i){i.z=e,i.z2=e})}function Ep(r,t){kp(t).updateCommon(r,t),Mw(r,t)}function kp(r){return Hu[r.__brushOption.brushType]}function Op(r,t,e){var i=r._panels;if(!i)return xn;var n,a=r._transform;return T(i,function(o){o.isTargetByCursor(t,e,a)&&(n=o)}),n}function Lw(r,t){var e=r._panels;if(!e)return xn;var i=t.__brushOption.panelId;return i!=null?e[i]:xn}function Gv(r){var t=r._covers,e=t.length;return T(t,function(i){r.group.remove(i)},r),t.length=0,!!e}function bn(r,t){var e=V(r._covers,function(i){var n=i.__brushOption,a=q(n.range);return{brushType:n.brushType,panelId:n.panelId,range:a}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function eB(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],i=t[0],n=e[0]-i[0],a=e[1]-i[1],o=$O(n*n+a*a,.5);return o>KO}function Pw(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function Iw(r,t,e,i){var n=new nt;return n.add(new pt({name:"main",style:Bp(e),silent:!0,draggable:!0,cursor:"move",drift:vt(Qm,r,t,n,["n","s","w","e"]),ondragend:vt(bn,t,{isEnd:!0})})),T(i,function(a){n.add(new pt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:vt(Qm,r,t,n,a),ondragend:vt(bn,t,{isEnd:!0})}))}),n}function Rw(r,t,e,i){var n=i.brushStyle.lineWidth||0,a=ca(n,jO),o=e[0][0],s=e[1][0],l=o-n/2,u=s-n/2,f=e[0][1],h=e[1][1],c=f-a+n/2,v=h-a+n/2,p=f-o,d=h-s,g=p+n,y=d+n;Er(r,t,"main",o,s,p,d),i.transformable&&(Er(r,t,"w",l,u,a,y),Er(r,t,"e",c,u,a,y),Er(r,t,"n",l,u,g,a),Er(r,t,"s",l,v,g,a),Er(r,t,"nw",l,u,a,a),Er(r,t,"ne",c,u,a,a),Er(r,t,"sw",l,v,a,a),Er(r,t,"se",c,v,a,a))}function Hv(r,t){var e=t.__brushOption,i=e.transformable,n=t.childAt(0);n.useStyle(Bp(e)),n.attr({silent:!i,cursor:i?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?Wv(r,a[0]):iB(r,a);o&&o.attr({silent:!i,invisible:!i,cursor:i?QO[s]+"-resize":null})})}function Er(r,t,e,i,n,a,o){var s=t.childOfName(e);s&&s.setShape(aB(Np(r,t,[[i,n],[i+a,n+o]])))}function Bp(r){return K({strokeNoScale:!0},r.brushStyle)}function Ew(r,t,e,i){var n=[Wo(r,e),Wo(t,i)],a=[ca(r,e),ca(t,i)];return[[n[0],a[0]],[n[1],a[1]]]}function rB(r){return yi(r.group)}function Wv(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},n=_u(e[t],rB(r));return i[n]}function iB(r,t){var e=[Wv(r,t[0]),Wv(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Qm(r,t,e,i,n,a){var o=e.__brushOption,s=r.toRectRange(o.range),l=kw(t,n,a);T(i,function(u){var f=JO[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(Ew(s[0][0],s[1][0],s[0][1],s[1][1])),Ep(t,e),bn(t,{isEnd:!1})}function nB(r,t,e,i){var n=t.__brushOption.range,a=kw(r,e,i);T(n,function(o){o[0]+=a[0],o[1]+=a[1]}),Ep(r,t),bn(r,{isEnd:!1})}function kw(r,t,e){var i=r.group,n=i.transformCoordToLocal(t,e),a=i.transformCoordToLocal(0,0);return[n[0]-a[0],n[1]-a[1]]}function Np(r,t,e){var i=Lw(r,t);return i&&i!==xn?i.clipPath(e,r._transform):q(e)}function aB(r){var t=Wo(r[0][0],r[1][0]),e=Wo(r[0][1],r[1][1]),i=ca(r[0][0],r[1][0]),n=ca(r[0][1],r[1][1]);return{x:t,y:e,width:i-t,height:n-e}}function oB(r,t,e){if(!(!r._brushType||lB(r,t.offsetX,t.offsetY))){var i=r._zr,n=r._covers,a=Op(r,t,e);if(!r._dragging)for(var o=0;o<n.length;o++){var s=n[o].__brushOption;if(a&&(a===xn||s.panelId===a.panelId)&&Hu[s.brushType].contain(n[o],e[0],e[1]))return}a&&i.setCursorStyle("crosshair")}}function Uv(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Yv(r,t,e){return r.childOfName("main").contain(t,e)}function Ow(r,t,e,i){var n=r._creatingCover,a=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),eB(r)||n){if(a&&!n){o.brushMode==="single"&&Gv(r);var l=q(o);l.brushType=t0(l.brushType,a),l.panelId=a===xn?null:a.panelId,n=r._creatingCover=Cw(r,l),r._covers.push(n)}if(n){var u=Hu[t0(r._brushType,a)],f=n.__brushOption;f.range=u.getCreatingRange(Np(r,n,r._track)),i&&(Aw(r,n),u.updateCommon(r,n)),Mw(r,n),s={isEnd:i}}}else i&&o.brushMode==="single"&&o.removeOnClick&&Op(r,t,e)&&Gv(r)&&(s={isEnd:i,removeOnClick:!0});return s}function t0(r,t){return r==="auto"?t.defaultBrushType:r}var sB={mousedown:function(r){if(this._dragging)e0(this,r);else if(!r.target||!r.target.draggable){Uv(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=Op(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,i=this.group.transformCoordToLocal(t,e);if(oB(this,r,i),this._dragging){Uv(r);var n=Ow(this,r,i,!1);n&&bn(this,n)}},mouseup:function(r){e0(this,r)}};function e0(r,t){if(r._dragging){Uv(t);var e=t.offsetX,i=t.offsetY,n=r.group.transformCoordToLocal(e,i),a=Ow(r,t,n,!0);r._dragging=!1,r._track=[],r._creatingCover=null,a&&bn(r,a)}}function lB(r,t,e){var i=r._zr;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Hu={lineX:r0(0),lineY:r0(1),rect:{createCover:function(r,t){function e(i){return i}return Iw({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=Pw(r);return Ew(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,i){Rw(r,t,e,i)},updateCommon:Hv,contain:Yv},polygon:{createCover:function(r,t){var e=new nt;return e.add(new De({name:"main",style:Bp(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new sr({name:"main",draggable:!0,drift:vt(nB,r,t),ondragend:vt(bn,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,i){t.childAt(0).setShape({points:Np(r,t,e)})},updateCommon:Hv,contain:Yv}};function r0(r){return{createCover:function(t,e){return Iw({toRectRange:function(i){var n=[i,[0,100]];return r&&n.reverse(),n},fromRectRange:function(i){return i[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=Pw(t),i=Wo(e[0][r],e[1][r]),n=ca(e[0][r],e[1][r]);return[i,n]},updateCoverShape:function(t,e,i,n){var a,o=Lw(t,e);if(o!==xn&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[i,a];r&&l.reverse(),Rw(t,e,l,n)},updateCommon:Hv,contain:Yv}}function Bw(r){return r=zp(r),function(t){return Fc(t,r)}}function Nw(r,t){return r=zp(r),function(e){var i=t!=null?t:e,n=i?r.width:r.height,a=i?r.x:r.y;return[a,a+(n||0)]}}function zw(r,t,e){var i=zp(r);return function(n,a){return i.contain(a[0],a[1])&&!vw(n,t,e)}}function zp(r){return ft.create(r)}var uB=["axisLine","axisTickLabel","axisName"],fB=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){r.prototype.init.apply(this,arguments),(this._brushController=new Tw(i.getZr())).on("brush",U(this._onBrush,this))},t.prototype.render=function(e,i,n,a){if(!hB(e,i,a)){this.axisModel=e,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new nt,this.group.add(this._axisGroup),!!e.get("show")){var s=cB(e,i),l=s.coordinateSystem,u=e.getAreaSelectStyle(),f=u.width,h=e.axis.dim,c=l.getAxisLayout(h),v=O({strokeContainThreshold:f},c),p=new be(e,v);T(uB,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(v,u,e,s,f,n),Su(o,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,i,n,a,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=ft.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:Bw(h),isTargetByCursor:zw(h,s,a),getLinearBrushOtherExtent:Nw(h,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(vB(n))},t.prototype._onBrush=function(e){var i=e.areas,n=this.axisModel,a=n.axis,o=V(i,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Ct);function hB(r,t,e){return e&&e.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:e})[0]===r}function vB(r){var t=r.axis;return V(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}})}function cB(r,t){return t.getComponent("parallel",r.get("parallelIndex"))}var pB={type:"axisAreaSelect",event:"axisAreaSelected"};function dB(r){r.registerAction(pB,function(t,e){e.eachComponent({mainType:"parallelAxis",query:t},function(i){i.axis.model.setActiveIntervals(t.intervals)})}),r.registerAction("parallelAxisExpand",function(t,e){e.eachComponent({mainType:"parallel",query:t},function(i){i.setAxisExpand(t)})})}var gB={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function yB(r){r.registerComponentView(NO),r.registerComponentModel(VO),r.registerCoordinateSystem("parallel",ZO),r.registerPreprocessor(EO),r.registerComponentModel(Fv),r.registerComponentView(fB),Fo(r,"parallel",Fv,gB),dB(r)}var mB=["itemStyle","borderWidth"],i0=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],dh=new Mr,_B=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=this.group,o=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:i0[+f],categoryDim:i0[1-+f]};o.diff(s).add(function(p){if(o.hasValue(p)){var d=a0(o,p),g=n0(o,p,d,c),y=o0(o,c,g);o.setItemGraphicEl(p,y),a.add(y),l0(y,c,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){a.remove(g);return}var y=a0(o,p),m=n0(o,p,y,c),_=Uw(o,m);g&&_!==g.__pictorialShapeStr&&(a.remove(g),o.setItemGraphicEl(p,null),g=null),g?AB(g,c,m):g=o0(o,c,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,a.add(g),l0(g,c,m)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&s0(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var v=e.get("clip",!0)?Ub(e.coordinateSystem,!1,e):null;return v?a.setClipPath(v):a.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(e,i){var n=this.group,a=this._data;e.get("animation")?a&&a.eachItemGraphicEl(function(o){s0(a,at(o).dataIndex,e,o)}):n.removeAll()},t.type="pictorialBar",t}(zt);function n0(r,t,e,i){var n=r.getItemLayout(t),a=e.get("symbolRepeat"),o=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=e.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=e.get("symbolPatternSize")||2,h=e.isAnimationEnabled(),c={dataIndex:t,layout:n,itemModel:e,symbolType:r.getItemVisual(t,"symbol")||"circle",style:r.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?e:null,hoverScale:h&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};SB(e,a,n,i,c),xB(r,t,n,a,o,c.boundingLength,c.pxSign,f,i,c),bB(e,c.symbolScale,u,i,c);var v=c.symbolSize,p=Iu(e.get("symbolOffset"),v);return wB(e,v,n,a,o,p,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function SB(r,t,e,i,n){var a=i.valueDim,o=r.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(e[a.wh]<=0),f;if(z(o)){var h=[gh(s,o[0])-l,gh(s,o[1])-l];h[1]<h[0]&&h.reverse(),f=h[u]}else o!=null?f=gh(s,o)-l:t?f=i.coordSysExtent[a.index][u]-l:f=e[a.wh];n.boundingLength=f,t&&(n.repeatCutLength=e[a.wh]);var c=a.xy==="x",v=s.inverse;n.pxSign=c&&!v||!c&&v?f>=0?1:-1:f>0?1:-1}function gh(r,t){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(t)))}function xB(r,t,e,i,n,a,o,s,l,u){var f=l.valueDim,h=l.categoryDim,c=Math.abs(e[h.wh]),v=r.getItemVisual(t,"symbolSize"),p;z(v)?p=v.slice():v==null?p=["100%","100%"]:p=[v,v],p[h.index]=J(p[h.index],c),p[f.index]=J(p[f.index],i?c:Math.abs(a)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function bB(r,t,e,i,n){var a=r.get(mB)||0;a&&(dh.attr({scaleX:t[0],scaleY:t[1],rotation:e}),dh.updateTransform(),a/=dh.getLineScale(),a*=t[i.valueDim.index]),n.valueLineWidth=a||0}function wB(r,t,e,i,n,a,o,s,l,u,f,h){var c=f.categoryDim,v=f.valueDim,p=h.pxSign,d=Math.max(t[v.index]+s,0),g=d;if(i){var y=Math.abs(l),m=Gr(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=J(m,t[v.index]),b=Math.max(d+S*2,0),x=_?0:S*2,w=wc(i),C=w?i:u0((y+x)/b),A=y-C*d;S=A/2/(_?C:Math.max(C-1,1)),b=d+S*2,x=_?0:S*2,!w&&i!=="fixed"&&(C=u?u0((Math.abs(u)+x)/b):0),g=C*b-x,h.repeatTimes=C,h.symbolMargin=S}var M=p*(g/2),D=h.pathPosition=[];D[c.index]=e[c.wh]/2,D[v.index]=o==="start"?M:o==="end"?l-M:l/2,a&&(D[0]+=a[0],D[1]+=a[1]);var P=h.bundlePosition=[];P[c.index]=e[c.xy],P[v.index]=e[v.xy];var L=h.barRectShape=O({},e);L[v.wh]=p*Math.max(Math.abs(e[v.wh]),Math.abs(D[v.index]+M)),L[c.wh]=e[c.wh];var I=h.clipShape={};I[c.xy]=-e[c.xy],I[c.wh]=f.ecSize[c.wh],I[v.xy]=0,I[v.wh]=e[v.wh]}function Vw(r){var t=r.symbolPatternSize,e=Xt(r.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function Fw(r,t,e,i){var n=r.__pictorialBundle,a=e.symbolSize,o=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,f=0,h=a[t.valueDim.index]+o+e.symbolMargin*2;for(Vp(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f<u?aa(d,null,p(f),e,i):aa(d,null,{scaleX:0,scaleY:0},e,i,function(){n.remove(d)}),f++});f<u;f++){var c=Vw(e);c.__pictorialAnimationIndex=f,c.__pictorialRepeatTimes=u,n.add(c);var v=p(f);aa(c,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},e,i)}function p(d){var g=s.slice(),y=e.pxSign,m=d;return(e.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-d),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function Gw(r,t,e,i){var n=r.__pictorialBundle,a=r.__pictorialMainPath;a?aa(a,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,i):(a=r.__pictorialMainPath=Vw(e),n.add(a),aa(a,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,i))}function Hw(r,t,e){var i=O({},t.barRectShape),n=r.__pictorialBarRect;n?aa(n,null,{shape:i},t,e):(n=r.__pictorialBarRect=new pt({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),n.disableMorphing=!0,r.add(n))}function Ww(r,t,e,i){if(e.symbolClip){var n=r.__pictorialClipPath,a=O({},e.clipShape),o=t.valueDim,s=e.animationModel,l=e.dataIndex;if(n)Dt(n,{shape:a},s,l);else{a[o.wh]=0,n=new pt({shape:a}),r.__pictorialBundle.setClipPath(n),r.__pictorialClipPath=n;var u={};u[o.wh]=e.clipShape[o.wh],Sa[i?"updateProps":"initProps"](n,{shape:u},s,l)}}}function a0(r,t){var e=r.getItemModel(t);return e.getAnimationDelayParams=TB,e.isAnimationEnabled=CB,e}function TB(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function CB(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function o0(r,t,e,i){var n=new nt,a=new nt;return n.add(a),n.__pictorialBundle=a,a.x=e.bundlePosition[0],a.y=e.bundlePosition[1],e.symbolRepeat?Fw(n,t,e):Gw(n,t,e),Hw(n,e,i),Ww(n,t,e,i),n.__pictorialShapeStr=Uw(r,e),n.__pictorialSymbolMeta=e,n}function AB(r,t,e){var i=e.animationModel,n=e.dataIndex,a=r.__pictorialBundle;Dt(a,{x:e.bundlePosition[0],y:e.bundlePosition[1]},i,n),e.symbolRepeat?Fw(r,t,e,!0):Gw(r,t,e,!0),Hw(r,e,!0),Ww(r,t,e,!0)}function s0(r,t,e,i){var n=i.__pictorialBarRect;n&&n.removeTextContent();var a=[];Vp(i,function(o){a.push(o)}),i.__pictorialMainPath&&a.push(i.__pictorialMainPath),i.__pictorialClipPath&&(e=null),T(a,function(o){Lo(o,{scaleX:0,scaleY:0},e,t,function(){i.parent&&i.parent.remove(i)})}),r.setItemGraphicEl(t,null)}function Uw(r,t){return[r.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Vp(r,t,e){T(r.__pictorialBundle.children(),function(i){i!==r.__pictorialBarRect&&t.call(e,i)})}function aa(r,t,e,i,n,a){t&&r.attr(t),i.symbolClip&&!n?e&&r.attr(e):e&&Sa[n?"updateProps":"initProps"](r,e,i.animationModel,i.dataIndex,a)}function l0(r,t,e){var i=e.dataIndex,n=e.itemModel,a=n.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=n.getModel(["blur","itemStyle"]).getItemStyle(),l=n.getModel(["select","itemStyle"]).getItemStyle(),u=n.getShallow("cursor"),f=a.get("focus"),h=a.get("blurScope"),c=a.get("scale");Vp(r,function(d){if(d instanceof ae){var g=d.style;d.useStyle(O({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else d.useStyle(e.style);var y=d.ensureState("emphasis");y.style=o,c&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=e.z2});var v=t.valueDim.posDesc[+(e.boundingLength>0)],p=r.__pictorialBarRect;p.ignoreClip=!0,Kr(p,jr(n),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:Fu(t.seriesModel.getData(),i),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:v}),xi(r,f,h,a.get("disabled"))}function u0(r){var t=Math.round(r);return Math.abs(r-t)<1e-4?t:Math.ceil(r)}var MB=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return t.prototype.getInitialData=function(e){return e.stack=null,r.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Ci(Vo.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:"#212121"}}}),t}(Vo);function DB(r){r.registerChartView(_B),r.registerSeriesModel(MB),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,vt(gb,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,yb("pictorialBar"))}function LB(r,t,e,i){return r&&(r.legacy||r.legacy!==!1&&!e&&!i&&t!=="tspan"&&(t==="text"||W(r,"text")))}function PB(r,t,e){var i=r,n,a,o;if(t==="text")o=i;else{o={},W(i,"text")&&(o.text=i.text),W(i,"rich")&&(o.rich=i.rich),W(i,"textFill")&&(o.fill=i.textFill),W(i,"textStroke")&&(o.stroke=i.textStroke),W(i,"fontFamily")&&(o.fontFamily=i.fontFamily),W(i,"fontSize")&&(o.fontSize=i.fontSize),W(i,"fontStyle")&&(o.fontStyle=i.fontStyle),W(i,"fontWeight")&&(o.fontWeight=i.fontWeight),a={type:"text",style:o,silent:!0},n={};var s=W(i,"textPosition");e?n.position=s?i.textPosition:"inside":s&&(n.position=i.textPosition),W(i,"textPosition")&&(n.position=i.textPosition),W(i,"textOffset")&&(n.offset=i.textOffset),W(i,"textRotation")&&(n.rotation=i.textRotation),W(i,"textDistance")&&(n.distance=i.textDistance)}return f0(o,r),T(o.rich,function(l){f0(l,l)}),{textConfig:n,textContent:a}}function f0(r,t){t&&(t.font=t.textFont||t.font,W(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),W(t,"textAlign")&&(r.align=t.textAlign),W(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),W(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),W(t,"textWidth")&&(r.width=t.textWidth),W(t,"textHeight")&&(r.height=t.textHeight),W(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),W(t,"textPadding")&&(r.padding=t.textPadding),W(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),W(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),W(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),W(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),W(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),W(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),W(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function pF(r,t,e){var i=r;i.textPosition=i.textPosition||e.position||"inside",e.offset!=null&&(i.textOffset=e.offset),e.rotation!=null&&(i.textRotation=e.rotation),e.distance!=null&&(i.textDistance=e.distance);var n=i.textPosition.indexOf("inside")>=0,a=r.fill||"#000";h0(i,t);var o=i.textFill==null;return n?o&&(i.textFill=e.insideFill||"#fff",!i.textStroke&&e.insideStroke&&(i.textStroke=e.insideStroke),!i.textStroke&&(i.textStroke=a),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(o&&(i.textFill=r.fill||e.outsideFill||"#000"),!i.textStroke&&e.outsideStroke&&(i.textStroke=e.outsideStroke)),i.text=t.text,i.rich=t.rich,T(t.rich,function(s){h0(s,s)}),i}function h0(r,t){t&&(W(t,"fill")&&(r.textFill=t.fill),W(t,"stroke")&&(r.textStroke=t.fill),W(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),W(t,"font")&&(r.font=t.font),W(t,"fontStyle")&&(r.fontStyle=t.fontStyle),W(t,"fontWeight")&&(r.fontWeight=t.fontWeight),W(t,"fontSize")&&(r.fontSize=t.fontSize),W(t,"fontFamily")&&(r.fontFamily=t.fontFamily),W(t,"align")&&(r.textAlign=t.align),W(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),W(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),W(t,"width")&&(r.textWidth=t.width),W(t,"height")&&(r.textHeight=t.height),W(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),W(t,"padding")&&(r.textPadding=t.padding),W(t,"borderColor")&&(r.textBorderColor=t.borderColor),W(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),W(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),W(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),W(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),W(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),W(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),W(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),W(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),W(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),W(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var Yw={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},v0=st(Yw);Ge(Cr,function(r,t){return r[t]=1,r},{});Cr.join(", ");var Jl=["","style","shape","extra"],pa=xt();function Fp(r,t,e,i,n){var a=r+"Animation",o=Oc(r,i,n)||{},s=pa(t).userDuring;return o.duration>0&&(o.during=s?U(BB,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),O(o,e[a]),o}function yh(r,t,e,i){i=i||{};var n=i.dataIndex,a=i.isInit,o=i.clearStyle,s=e.isAnimationEnabled(),l=pa(r),u=t.style;l.userDuring=t.during;var f={},h={};if(zB(r,t,h),p0("shape",t,h),p0("extra",t,h),!a&&s&&(NB(r,t,f),c0("shape",r,t,f),c0("extra",r,t,f),VB(r,t,u,f)),h.style=u,RB(r,h,o),kB(r,t),s)if(a){var c={};T(Jl,function(p){var d=p?t[p]:t;d&&d.enterFrom&&(p&&(c[p]=c[p]||{}),O(p?c[p]:c,d.enterFrom))});var v=Fp("enter",r,t,e,n);v.duration>0&&r.animateFrom(c,v)}else EB(r,t,n||0,e,f);Xw(r,t),u?r.dirty():r.markRedraw()}function Xw(r,t){for(var e=pa(r).leaveToProps,i=0;i<Jl.length;i++){var n=Jl[i],a=n?t[n]:t;a&&a.leaveTo&&(e||(e=pa(r).leaveToProps={}),n&&(e[n]=e[n]||{}),O(n?e[n]:e,a.leaveTo))}}function IB(r,t,e,i){if(r){var n=r.parent,a=pa(r).leaveToProps;if(a){var o=Fp("update",r,t,e,0);o.done=function(){n.remove(r)},r.animateTo(a,o)}else n.remove(r)}}function yn(r){return r==="all"}function RB(r,t,e){var i=t.style;if(!r.isGroup&&i){if(e){r.useStyle({});for(var n=r.animators,a=0;a<n.length;a++){var o=n[a];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(i)}t&&(t.style=null,t&&r.attr(t),t.style=i)}function EB(r,t,e,i,n){if(n){var a=Fp("update",r,t,i,e);a.duration>0&&r.animateFrom(n,a)}}function kB(r,t){W(t,"silent")&&(r.silent=t.silent),W(t,"ignore")&&(r.ignore=t.ignore),r instanceof Yr&&W(t,"invisible")&&(r.invisible=t.invisible),r instanceof gt&&W(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var dr={},OB={setTransform:function(r,t){return dr.el[r]=t,this},getTransform:function(r){return dr.el[r]},setShape:function(r,t){var e=dr.el,i=e.shape||(e.shape={});return i[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=dr.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=dr.el,i=e.style;return i&&(i[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=dr.el.style;if(t)return t[r]},setExtra:function(r,t){var e=dr.el.extra||(dr.el.extra={});return e[r]=t,this},getExtra:function(r){var t=dr.el.extra;if(t)return t[r]}};function BB(){var r=this,t=r.el;if(t){var e=pa(t).userDuring,i=r.userDuring;if(e!==i){r.el=r.userDuring=null;return}dr.el=t,i(OB)}}function c0(r,t,e,i){var n=e[r];if(n){var a=t[r],o;if(a){var s=e.transition,l=n.transition;if(l)if(!o&&(o=i[r]={}),yn(l))O(o,a);else for(var u=Mt(l),f=0;f<u.length;f++){var h=u[f],c=a[h];o[h]=c}else if(yn(s)||ut(s,r)>=0){!o&&(o=i[r]={});for(var v=st(a),f=0;f<v.length;f++){var h=v[f],c=a[h];FB(n[h],c)&&(o[h]=c)}}}}}function p0(r,t,e){var i=t[r];if(i)for(var n=e[r]={},a=st(i),o=0;o<a.length;o++){var s=a[o];n[s]=fo(i[s])}}function NB(r,t,e){for(var i=t.transition,n=yn(i)?Cr:Mt(i||[]),a=0;a<n.length;a++){var o=n[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function zB(r,t,e){for(var i=0;i<v0.length;i++){var n=v0[i],a=Yw[n],o=t[n];o&&(e[a[0]]=o[0],e[a[1]]=o[1])}for(var i=0;i<Cr.length;i++){var s=Cr[i];t[s]!=null&&(e[s]=t[s])}}function VB(r,t,e,i){if(e){var n=r.style,a;if(n){var o=e.transition,s=t.transition;if(o&&!yn(o)){var l=Mt(o);!a&&(a=i.style={});for(var u=0;u<l.length;u++){var f=l[u],h=n[f];a[f]=h}}else if(r.getAnimationStyleProps&&(yn(s)||yn(o)||ut(s,"style")>=0)){var c=r.getAnimationStyleProps(),v=c?c.style:null;if(v){!a&&(a=i.style={});for(var p=st(e),u=0;u<p.length;u++){var f=p[u];if(v[f]){var h=n[f];a[f]=h}}}}}}}function FB(r,t){return ne(r)?r!==t:r!=null&&isFinite(r)}var Zw=xt(),GB=["percent","easing","shape","style","extra"];function HB(r){r.stopAnimation("keyframe"),r.attr(Zw(r))}function Xv(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(z(t)){T(t,function(s){Xv(r,s,e)});return}var i=t.keyframes,n=t.duration;if(e&&n==null){var a=Oc("enter",e,0);n=a&&a.duration}if(!(!i||!n)){var o=Zw(r);T(Jl,function(s){if(!(s&&!r[s])){var l;i.sort(function(u,f){return u.percent-f.percent}),T(i,function(u){var f=r.animators,h=s?u[s]:u;if(h){var c=st(h);if(s||(c=wt(c,function(d){return ut(GB,d)<0})),!!c.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(c);s&&(o[s]=o[s]||{});var p=s?o[s]:o;T(c,function(d){p[d]=((s?r[s]:r)||{})[d]}),l.whenWithKeys(n*u.percent,h,c,u.easing)}}}),l&&l.delay(t.delay||0).duration(n).start(t.easing)}})}}}var Qi=xt(),d0=q,mh=U,$w=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,i,n){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,!(!n&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,e,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new nt,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),i.getZr().add(s);else{var c=vt(g0,e,h);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,e)}m0(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,a=n.type==="category",o=e.get("snap");if(!o&&!a)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(a&&n.getBandWidth()>s)return!0;if(o){var l=Pp(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(t,e,i,n,a){},r.prototype.createPointerEl=function(t,e,i,n){var a=e.pointer;if(a){var o=Qi(t).pointerEl=new Sa[a.type](d0(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,i,n){if(e.label){var a=Qi(t).labelEl=new dt(d0(e.label));t.add(a),y0(a,n)}},r.prototype.updatePointerEl=function(t,e,i){var n=Qi(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,i,n){var a=Qi(t).labelEl;a&&(a.setStyle(e.label.style),i(a,{x:e.label.x,y:e.label.y}),y0(a,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,i=this._api.getZr(),n=this._handle,a=e.getModel("handle"),o=e.get("status");if(!a.get("show")||!o||o==="hide"){n&&i.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=_a(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Hr(u.event)},onmousedown:mh(this._onHandleDragMove,this,0,0),drift:mh(this._onHandleDragMove,this),ondragend:mh(this._onHandleDragEnd,this)}),i.add(n)),m0(n,e,!1),n.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,is(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){g0(this._axisPointerModel,!e&&this._moveAnimation,this._handle,_h(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(_h(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(_h(n)),Qi(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.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"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Oo(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,i){return i=i||0,{x:t[i],y:t[1-i],width:e[i],height:e[1-i]}},r}();function g0(r,t,e,i){qw(Qi(e).lastProp,i)||(Qi(e).lastProp=i,t?Dt(e,i,r):(e.stopAnimation(),e.attr(i)))}function qw(r,t){if(Z(r)&&Z(t)){var e=!0;return T(t,function(i,n){e=e&&qw(r[n],i)}),!!e}else return r===t}function y0(r,t){r[t.get(["label","show"])?"show":"hide"]()}function _h(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function m0(r,t,e){var i=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(i!=null&&(a.z=i),n!=null&&(a.zlevel=n),a.silent=e)})}function Kw(r){var t=r.get("type"),e=r.getModel(t+"Style"),i;return t==="line"?(i=e.getLineStyle(),i.fill=null):t==="shadow"&&(i=e.getAreaStyle(),i.stroke=null),i}function jw(r,t,e,i,n){var a=e.get("value"),o=Jw(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=An(s.get("padding")||0),u=s.getFont(),f=Ko(o,u),h=n.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],p=n.align;p==="right"&&(h[0]-=c),p==="center"&&(h[0]-=c/2);var d=n.verticalAlign;d==="bottom"&&(h[1]-=v),d==="middle"&&(h[1]-=v/2),WB(h,c,v,i);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:kt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function WB(r,t,e,i){var n=i.getWidth(),a=i.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Jw(r,t,e,i,n){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:wp(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};T(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),G(o)?a=o.replace("{value}",a):j(o)&&(a=o(s))}return a}function Qw(r,t,e){var i=Ce();return Ti(i,i,e.rotation),Wr(i,i,e.position),ir([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function UB(r,t,e,i,n,a){var o=be.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),jw(t,i,n,a,{position:Qw(i.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function tT(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function YB(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function _0(r,t,e,i,n,a){return{cx:r,cy:t,r0:e,r:i,startAngle:n,endAngle:a,clockwise:!0}}var XB=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,n,a,o){var s=n.axis,l=s.grid,u=a.get("type"),f=S0(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var c=Kw(a),v=ZB[u](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var p=Ev(l.model,n);UB(i,e,p,n,a,o)},t.prototype.getHandleTransform=function(e,i,n){var a=Ev(i.axis.grid.model,i,{labelInside:!1});a.labelMargin=n.get(["handle","margin"]);var o=Qw(i.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,n,a){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=S0(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=i[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=h[f];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:p[f]}},t}($w);function S0(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var ZB={line:function(r,t,e){var i=tT([t,e[0]],[t,e[1]],x0(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,t,e){var i=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:YB([t-i/2,e[0]],[i,n],x0(r))}}};function x0(r){return r.dim==="x"?0:1}var $B=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(ot),Vr=xt(),qB=T;function eT(r,t,e){if(!it.node){var i=t.getZr();Vr(i).records||(Vr(i).records={}),KB(i,t);var n=Vr(i).records[r]||(Vr(i).records[r]={});n.handler=e}}function KB(r,t){if(Vr(r).initialized)return;Vr(r).initialized=!0,e("click",vt(b0,"click")),e("mousemove",vt(b0,"mousemove")),e("globalout",JB);function e(i,n){r.on(i,function(a){var o=QB(t);qB(Vr(r).records,function(s){s&&n(s,a,o.dispatchAction)}),jB(o.pendings,t)})}}function jB(r,t){var e=r.showTip.length,i=r.hideTip.length,n;e?n=r.showTip[e-1]:i&&(n=r.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function JB(r,t,e){r.handler("leave",null,e)}function b0(r,t,e,i){t.handler(r,e,i)}function QB(r){var t={showTip:[],hideTip:[]},e=function(i){var n=t[i.type];n?n.push(i):(i.dispatchAction=e,r.dispatchAction(i))};return{dispatchAction:e,pendings:t}}function Zv(r,t){if(!it.node){var e=t.getZr(),i=(Vr(e).records||{})[r];i&&(Vr(e).records[r]=null)}}var tN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=i.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";eT("axisPointer",n,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){Zv("axisPointer",i)},t.prototype.dispose=function(e,i){Zv("axisPointer",i)},t.type="axisPointer",t}(Ct);function rT(r,t){var e=[],i=r.seriesIndex,n;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=_n(a,r);if(o==null||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,c=u.dim,v=h==="x"||h==="radius"?1:0,p=a.mapDimension(c),d=[];d[v]=a.get(p,o),d[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(d)||[]}else e=l.dataToPoint(a.getValues(V(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var w0=xt();function eN(r,t,e){var i=r.currTrigger,n=[r.x,r.y],a=r,o=r.dispatchAction||U(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){gl(n)&&(n=rT({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=gl(n),u=a.axesInfo,f=s.axesInfo,h=i==="leave"||gl(n),c={},v={},p={list:[],map:{}},d={showPointer:vt(iN,v),showTooltip:vt(nN,p)};T(s.coordSysMap,function(y,m){var _=l||y.containPoint(n);T(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,w=lN(u,S);if(!h&&_&&(!u||w)){var C=w&&w.value;C==null&&!l&&(C=x.pointToData(n)),C!=null&&T0(S,C,d,!1,c)}})});var g={};return T(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&T(_.axesInfo,function(S,b){var x=v[b];if(S!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,C0(S),C0(y)))),g[y.key]=w}})}),T(g,function(y,m){T0(f[m],y,d,!0,c)}),aN(v,f,c),oN(p,n,r,o),sN(f,o,e),c}}function T0(r,t,e,i,n){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=rN(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&O(n,s[0]),!i&&r.snap&&a.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function rN(r,t){var e=t.axis,i=e.dim,n=r,a=[],o=Number.MAX_VALUE,s=-1;return T(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),h,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=l.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=l.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var p=r-h,d=Math.abs(p);d<=o&&((d<o||p>=0&&s<0)&&(o=d,s=p,n=h,a.length=0),T(c,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:n}}function iN(r,t,e,i){r[t.key]={value:e,payloadBatch:i}}function nN(r,t,e,i){var n=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=Go(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function aN(r,t,e){var i=e.axesInfo=[];T(t,function(n,a){var o=n.axisPointerModel.option,s=r[a];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function oN(r,t,e,i){if(gl(t)||!r.list.length){i({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function sN(r,t,e){var i=e.getZr(),n="axisPointerLastHighlights",a=w0(i)[n]||{},o=w0(i)[n]={};T(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&T(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],l=[];T(a,function(u,f){!o[f]&&l.push(u)}),T(o,function(u,f){!a[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function lN(r,t){for(var e=0;e<(r||[]).length;e++){var i=r[e];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function C0(r){var t=r.axis.model,e={},i=e.axisDim=r.axis.dim;return e.axisIndex=e[i+"AxisIndex"]=t.componentIndex,e.axisName=e[i+"AxisName"]=t.name,e.axisId=e[i+"AxisId"]=t.id,e}function gl(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Gp(r){os.registerAxisPointerClass("CartesianAxisPointer",XB),r.registerComponentModel($B),r.registerComponentView(tN),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!z(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=pk(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},eN)}function uN(r){Ht(lw),Ht(Gp)}var fN=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,i,n,a,o){var s=n.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(i),c=a.get("type");if(c&&c!=="none"){var v=Kw(a),p=vN[c](s,l,h,f);p.style=v,e.graphicKey=p.type,e.pointer=p}var d=a.get(["label","margin"]),g=hN(i,n,a,l,d);jw(e,n,a,o,g)},t}($w);function hN(r,t,e,i,n){var a=t.axis,o=a.dataToCoord(r),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,f,h;if(a.dim==="radius"){var c=Ce();Ti(c,c,s),Wr(c,c,[i.cx,i.cy]),u=ir([o,-n],c);var v=t.getModel("axisLabel").get("rotate")||0,p=be.innerTextLayout(s,v*Math.PI/180,-1);f=p.textAlign,h=p.textVerticalAlign}else{var d=l[1];u=i.coordToPoint([d+n,o]);var g=i.cx,y=i.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var vN={line:function(r,t,e,i){return r.dim==="angle"?{type:"Line",shape:tT(t.coordToPoint([i[0],e]),t.coordToPoint([i[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(r,t,e,i){var n=Math.max(1,r.getBandWidth()),a=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:_0(t.cx,t.cy,i[0],i[1],(-e-n/2)*a,(-e+n/2)*a)}:{type:"Sector",shape:_0(t.cx,t.cy,e-n/2,e+n/2,0,Math.PI*2)}}},cN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.findAxisModel=function(e){var i,n=this.ecModel;return n.eachComponent(e,function(a){a.getCoordSysModel()===this&&(i=a)},this),i},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(ot),Hp=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Bt).models[0]},t.type="polarAxis",t}(ot);Zt(Hp,as);var pN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="angleAxis",t}(Hp),dN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="radiusAxis",t}(Hp),Wp=function(r){E(t,r);function t(e,i){return r.call(this,"radius",e,i)||this}return t.prototype.pointToData=function(e,i){return this.polar.pointToData(e,i)[this.dim==="radius"?0:1]},t}(fr);Wp.prototype.dataToRadius=fr.prototype.dataToCoord;Wp.prototype.radiusToData=fr.prototype.coordToData;var gN=xt(),Up=function(r){E(t,r);function t(e,i){return r.call(this,"angle",e,i||[0,360])||this}return t.prototype.pointToData=function(e,i){return this.polar.pointToData(e,i)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,i=e.getLabelModel(),n=e.scale,a=n.getExtent(),o=n.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),f=Ko(s==null?"":s+"",i.getFont(),"center","top"),h=Math.max(f.height,7),c=h/u;isNaN(c)&&(c=1/0);var v=Math.max(0,Math.floor(c)),p=gN(e.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-v)<=1&&Math.abs(g-o)<=1&&d>v?v=d:(p.lastTickCount=o,p.lastAutoInterval=v),v},t}(fr);Up.prototype.dataToAngle=fr.prototype.dataToCoord;Up.prototype.angleToData=fr.prototype.coordToData;var iT=["radius","angle"],yN=function(){function r(t){this.dimensions=iT,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Wp,this._angleAxis=new Up,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},r.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},r.prototype.getAxis=function(t){var e="_"+t+"Axis";return this[e]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(t){var e=[],i=this._angleAxis,n=this._radiusAxis;return i.scale.type===t&&e.push(i),n.scale.type===t&&e.push(n),e},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},r.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},r.prototype.pointToData=function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},r.prototype.pointToCoord=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,n=this.getAngleAxis(),a=n.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);n.inverse?o=s-360:s=o+360;var l=Math.sqrt(e*e+i*i);e/=l,i/=l;for(var u=Math.atan2(-i,e)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(t){var e=t[0],i=t[1]/180*Math.PI,n=Math.cos(i)*e+this.cx,a=-Math.sin(i)*e+this.cy;return[n,a]},r.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis(),i=e.getExtent().slice();i[0]>i[1]&&i.reverse();var n=t.getExtent(),a=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-n[0]*a,endAngle:-n[1]*a,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,h=u*u+f*f,c=this.r,v=this.r0;return c!==v&&h-o<=c*c&&h+o>=v*v}}},r.prototype.convertToPixel=function(t,e,i){var n=A0(e);return n===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(t,e,i){var n=A0(e);return n===this?this.pointToData(i):null},r}();function A0(r){var t=r.seriesModel,e=r.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}function mN(r,t,e){var i=t.get("center"),n=e.getWidth(),a=e.getHeight();r.cx=J(i[0],n),r.cy=J(i[1],a);var o=r.getRadiusAxis(),s=Math.min(n,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[J(l[0],s),J(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function _N(r,t){var e=this,i=e.getAngleAxis(),n=e.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),n.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();T(Xl(l,"radius"),function(u){n.scale.unionExtentFromData(l,u)}),T(Xl(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),va(i.scale,i.model),va(n.scale,n.model),i.type==="category"&&!i.onBand){var a=i.getExtent(),o=360/i.scale.count();i.inverse?a[1]+=o:a[1]-=o,i.setExtent(a[0],a[1])}}function SN(r){return r.mainType==="angleAxis"}function M0(r,t){var e;if(r.type=t.get("type"),r.scale=Vu(t),r.onBand=t.get("boundaryGap")&&r.type==="category",r.inverse=t.get("inverse"),SN(t)){r.inverse=r.inverse!==t.get("clockwise");var i=t.get("startAngle"),n=(e=t.get("endAngle"))!==null&&e!==void 0?e:i+(r.inverse?-360:360);r.setExtent(i,n)}t.axis=r,r.model=t}var xN={dimensions:iT,create:function(r,t){var e=[];return r.eachComponent("polar",function(i,n){var a=new yN(n+"");a.update=_N;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");M0(o,l),M0(s,u),mN(a,i,t),e.push(a),i.coordinateSystem=a,a.model=i}),r.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var n=i.getReferringComponents("polar",Bt).models[0];i.coordinateSystem=n.coordinateSystem}}),e}},bN=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Ks(r,t,e){t[1]>t[0]&&(t=t.slice().reverse());var i=r.coordToPoint([t[0],e]),n=r.coordToPoint([t[1],e]);return{x1:i[0],y1:i[1],x2:n[0],y2:n[1]}}function js(r){var t=r.getRadiusAxis();return t.inverse?0:1}function D0(r){var t=r[0],e=r[r.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&r.pop()}var wN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,i){if(this.group.removeAll(),!!e.get("show")){var n=e.axis,a=n.polar,o=a.getRadiusAxis().getExtent(),s=n.getTicksCoords(),l=n.getMinorTicksCoords(),u=V(n.getViewLabels(),function(f){f=q(f);var h=n.scale,c=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=n.dataToCoord(c),f});D0(u),D0(s),T(bN,function(f){e.get([f,"show"])&&(!n.scale.isBlank()||f==="axisLine")&&TN[f](this.group,e,a,s,l,o,u)},this)}},t.type="angleAxis",t}(os),TN={axisLine:function(r,t,e,i,n,a){var o=t.getModel(["axisLine","lineStyle"]),s=e.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=js(e),h=f?0:1,c,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[h]===0?c=new Sa[v]({shape:{cx:e.cx,cy:e.cy,r:a[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):c=new ma({shape:{cx:e.cx,cy:e.cy,r:a[f],r0:a[h]},style:o.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,t,e,i,n,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[js(e)],u=V(i,function(f){return new re({shape:Ks(e,[l,l+s],f.coord)})});r.add(ze(u,{style:K(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,t,e,i,n,a){if(n.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[js(e)],f=[],h=0;h<n.length;h++)for(var c=0;c<n[h].length;c++)f.push(new re({shape:Ks(e,[u,u+l],n[h][c].coord)}));r.add(ze(f,{style:K(s.getModel("lineStyle").getLineStyle(),K(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,t,e,i,n,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),f=t.get("triggerEvent");T(o,function(h,c){var v=l,p=h.tickValue,d=a[js(e)],g=e.coordToPoint([d+u,h.coord]),y=e.cx,m=e.cy,_=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var b=s[p];Z(b)&&b.textStyle&&(v=new St(b.textStyle,l,l.ecModel))}var x=new dt({silent:be.isLabelSilent(t),style:kt(v,{x:g[0],y:g[1],fill:v.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var w=be.makeAxisEventDataBase(t);w.targetType="axisLabel",w.value=h.rawLabel,at(x).eventData=w}},this)},splitLine:function(r,t,e,i,n,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h<i.length;h++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new re({shape:Ks(e,a,i[h].coord)}))}for(var h=0;h<f.length;h++)r.add(ze(f[h],{style:K({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(r,t,e,i,n,a){if(n.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<n.length;u++)for(var f=0;f<n[u].length;f++)l.push(new re({shape:Ks(e,a,n[u][f].coord)}));r.add(ze(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(r,t,e,i,n,a){if(i.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=Math.PI/180,c=-i[0].coord*h,v=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),d=t.get("clockwise"),g=1,y=i.length;g<=y;g++){var m=g===y?i[0].coord:i[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new or({shape:{cx:e.cx,cy:e.cy,r0:v,r:p,startAngle:c,endAngle:-m*h,clockwise:d},silent:!0})),c=-m*h}for(var g=0;g<f.length;g++)r.add(ze(f[g],{style:K({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}},CN=["axisLine","axisTickLabel","axisName"],AN=["splitLine","splitArea","minorSplitLine"],MN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return t.prototype.render=function(e,i){if(this.group.removeAll(),!!e.get("show")){var n=this._axisGroup,a=this._axisGroup=new nt;this.group.add(a);var o=e.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),h=l.getExtent()[0],c=o.getExtent(),v=LN(s,e,h),p=new be(e,v);T(CN,p.add,p),a.add(p.getGroup()),Su(n,a,e),T(AN,function(d){e.get([d,"show"])&&!o.scale.isBlank()&&DN[d](this.group,e,s,h,c,u,f)},this)}},t.type="radiusAxis",t}(os),DN={splitLine:function(r,t,e,i,n,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=e.getAngleAxis(),h=Math.PI/180,c=f.getExtent(),v=Math.abs(c[1]-c[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],d=0;d<a.length;d++){var g=u++%l.length;p[g]=p[g]||[],p[g].push(new Sa[v]({shape:{cx:e.cx,cy:e.cy,r:Math.max(a[d].coord,0),startAngle:-c[0]*h,endAngle:-c[1]*h,clockwise:f.inverse}}))}for(var d=0;d<p.length;d++)r.add(ze(p[d],{style:K({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,t,e,i,n,a,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var h=0;h<o[f].length;h++)u.push(new Mr({shape:{cx:e.cx,cy:e.cy,r:o[f][h].coord}}));r.add(ze(u,{style:K({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,t,e,i,n,a){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=a[0].coord,c=1;c<a.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new or({shape:{cx:e.cx,cy:e.cy,r0:h,r:a[c].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=a[c].coord}for(var c=0;c<f.length;c++)r.add(ze(f[c],{style:K({fill:l[c%l.length]},s.getAreaStyle()),silent:!0}))}}};function LN(r,t,e){return{position:[r.cx,r.cy],rotation:e/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}function nT(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function aT(r,t){return t.dim+r.model.componentIndex}function PN(r,t,e){var i={},n=IN(wt(t.getSeriesByType(r),function(a){return!t.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));t.eachSeriesByType(r,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=aT(s,l),f=nT(a),h=n[u][f],c=h.offset,v=h.width,p=s.getOtherAxis(l),d=a.coordinateSystem.cx,g=a.coordinateSystem.cy,y=a.get("barMinHeight")||0,m=a.get("barMinAngle")||0;i[f]=i[f]||[];for(var _=o.mapDimension(p.dim),S=o.mapDimension(l.dim),b=wi(o,_),x=l.dim!=="radius"||!a.get("roundCap",!0),w=p.model,C=w.get("startValue"),A=p.dataToCoord(C||0),M=0,D=o.count();M<D;M++){var P=o.get(_,M),L=o.get(S,M),I=P>=0?"p":"n",R=A;b&&(i[f][L]||(i[f][L]={p:A,n:A}),R=i[f][L][I]);var k=void 0,F=void 0,B=void 0,N=void 0;if(p.dim==="radius"){var H=p.dataToCoord(P)-A,$=l.dataToCoord(L);Math.abs(H)<y&&(H=(H<0?-1:1)*y),k=R,F=R+H,B=$-c,N=B-v,b&&(i[f][L][I]=F)}else{var X=p.dataToCoord(P,x)-A,lt=l.dataToCoord(L);Math.abs(X)<m&&(X=(X<0?-1:1)*m),k=lt+c,F=k+v,B=R,N=R+X,b&&(i[f][L][I]=N)}o.setItemLayout(M,{cx:d,cy:g,r0:k,r:F,startAngle:-B*Math.PI/180,endAngle:-N*Math.PI/180,clockwise:B>=N})}}})}function IN(r){var t={};T(r,function(i,n){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=aT(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),h=t[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=h.stacks;t[l]=h;var v=nT(i);c[v]||h.autoWidthCount++,c[v]=c[v]||{width:0,maxWidth:0};var p=J(i.get("barWidth"),f),d=J(i.get("barMaxWidth"),f),g=i.get("barGap"),y=i.get("barCategoryGap");p&&!c[v].width&&(p=Math.min(h.remainedWidth,p),c[v].width=p,h.remainedWidth-=p),d&&(c[v].maxWidth=d),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var e={};return T(t,function(i,n){e[n]={};var a=i.stacks,o=i.bandWidth,s=J(i.categoryGap,o),l=J(i.gap,1),u=i.remainedWidth,f=i.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),T(a,function(d,g){var y=d.maxWidth;y&&y<h&&(y=Math.min(y,u),d.width&&(y=Math.min(y,d.width)),u-=y,d.width=y,f--)}),h=(u-s)/(f+(f-1)*l),h=Math.max(h,0);var c=0,v;T(a,function(d,g){d.width||(d.width=h),v=d,c+=d.width*(1+l)}),v&&(c-=v.width*l);var p=-c/2;T(a,function(d,g){e[n][g]=e[n][g]||{offset:p,width:d.width},p+=d.width*(1+l)})}),e}var RN={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},EN={splitNumber:5},kN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="polar",t}(Ct);function ON(r){Ht(Gp),os.registerAxisPointerClass("PolarAxisPointer",fN),r.registerCoordinateSystem("polar",xN),r.registerComponentModel(cN),r.registerComponentView(kN),Fo(r,"angle",pN,RN),Fo(r,"radius",dN,EN),r.registerComponentView(wN),r.registerComponentView(MN),r.registerLayout(vt(PN,"bar"))}var BN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i,n){var a=ba(e);r.prototype.init.apply(this,arguments),L0(e,a)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),L0(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(ot);function L0(r,t){var e=r.cellSize,i;z(e)?i=e:i=r.cellSize=[e,e],i.length===1&&(i[1]=i[0]);var n=V([0,1],function(a){return P2(t,a)&&(i[a]="auto"),i[a]!=null&&i[a]!=="auto"});bi(r,t,{type:"box",ignoreSize:n})}var NN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){var a=this.group;a.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=i.getLocaleModel();this._renderDayRect(e,s,a),this._renderLines(e,s,l,a),this._renderYearText(e,s,l,a),this._renderMonthText(e,u,l,a),this._renderWeekText(e,u,s,l,a)},t.prototype._renderDayRect=function(e,i,n){for(var a=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=i.start.time;u<=i.end.time;u=a.getNextNDay(u,1).time){var f=a.dataToRect([u],!1).tl,h=new pt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(h)}},t.prototype._renderLines=function(e,i,n,a){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=i.start,c=0;h.time<=i.end.time;c++){p(h.formatedDate),c===0&&(h=s.getDateInfo(i.start.y+"-"+i.start.m));var v=h.date;v.setMonth(v.getMonth()+1),h=s.getDateInfo(v)}p(s.getNextNDay(i.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(e,d,n);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,a)},t.prototype._getEdgesPoints=function(e,i,n){var a=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return a[0][o]=a[0][o]-i/2,a[1][o]=a[1][o]+i/2,a},t.prototype._drawSplitline=function(e,i,n){var a=new De({z2:20,shape:{points:e},style:i});n.add(a)},t.prototype._getLinePointsOfOneWeek=function(e,i,n){for(var a=e.coordinateSystem,o=a.getDateInfo(i),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),f=a.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,i){return G(e)&&e?M2(e,i):j(e)?e(i):i.nameMap},t.prototype._yearTextPositionControl=function(e,i,n,a,o){var s=i[0],l=i[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(a==="left"||a==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,i,n,a){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,c=n==="horizontal"?0:1,v={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],h],right:[u[c][0],h]},p=i.start.y;+i.end.y>+i.start.y&&(p=p+"-"+i.end.y);var d=o.get("formatter"),g={start:i.start.y,end:i.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new dt({z2:30,style:kt(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,v[l],n,l,s)),a.add(m)}},t.prototype._monthTextPositionControl=function(e,i,n,a,o){var s="left",l="top",u=e[0],f=e[1];return n==="horizontal"?(f=f+o,i&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,i&&(l="middle"),a==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,i,n,a){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),h=[this._tlpoints,this._blpoints];(!s||G(s))&&(s&&(i=cv(s)||i),s=i.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,v=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=f==="center",d=o.get("silent"),g=0;g<h[c].length-1;g++){var y=h[c][g].slice(),m=this._firstDayOfMonth[g];if(p){var _=this._firstDayPoints[g];y[v]=(_[v]+h[0][g+1][v])/2}var S=o.get("formatter"),b=s[+m.m-1],x={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},w=this._formatterLabel(S,x),C=new dt({z2:30,style:O(kt(o,{text:w}),this._monthTextPositionControl(y,p,n,u,l)),silent:d});a.add(C)}}},t.prototype._weekTextPositionControl=function(e,i,n,a,o){var s="center",l="middle",u=e[0],f=e[1],h=n==="start";return i==="horizontal"?(u=u+a+(h?1:-1)*o[0]/2,s=h?"right":"left"):(f=f+a+(h?1:-1)*o[1]/2,l=h?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,i,n,a,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),h=s.get("margin"),c=l.getFirstDayOfWeek();if(!f||G(f)){f&&(i=cv(f)||i);var v=i.get(["time","dayOfWeekShort"]);f=v||V(i.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var p=l.getNextNDay(n.end.time,7-n.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];h=J(h,Math.min(d[1],d[0])),u==="start"&&(p=l.getNextNDay(n.start.time,-(7+n.fweek)).time,h=-h);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(p,y),_=l.dataToRect([m.time],!1).center,S=y;S=Math.abs((y+c)%7);var b=new dt({z2:30,style:O(kt(s,{text:f[S]}),this._weekTextPositionControl(_,a,u,h,d)),silent:g});o.add(b)}}},t.type="calendar",t}(Ct),Sh=864e5,zN=function(){function r(t,e,i){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=Me(t);var e=t.getFullYear(),i=t.getMonth()+1,n=i<10?"0"+i:""+i,a=t.getDate(),o=a<10?"0"+a:""+a,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:n,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+n+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.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 i=this._rangeInfo.weeks||1,n=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[i,7]:[7,i];T([0,1],function(h){f(a,h)&&(o[n[h]]=a[h]*s[h])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=ce(o,l);T([0,1],function(h){f(a,h)||(a[h]=u[n[h]]/s[h])});function f(h,c){return h[c]!=null&&h[c]!=="auto"}this._sw=a[0],this._sh=a[1]},r.prototype.dataToPoint=function(t,e){z(t)&&(t=t[0]),e==null&&(e=!0);var i=this.getDateInfo(t),n=this._rangeInfo,a=i.formatedDate;if(e&&!(i.time>=n.start.time&&i.time<n.end.time+Sh))return[NaN,NaN];var o=i.day,s=this._getRangeInfo([n.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToRect=function(t,e){var i=this.dataToPoint(t,e);return{contentShape:{x:i[0]-(this._sw-this._lineWidth)/2,y:i[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,i=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(i,e-1,n):this._getDateByWeeksAndDay(e,i-1,n)},r.prototype.convertToPixel=function(t,e,i){var n=P0(e);return n===this?n.dataToPoint(i):null},r.prototype.convertFromPixel=function(t,e,i){var n=P0(e);return n===this?n.pointToData(i):null},r.prototype.containPoint=function(t){return!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(z(t)&&t.length===1&&(t=t[0]),z(t))e=t;else{var i=t.toString();if(/^\d{4}$/.test(i)&&(e=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var n=this.getDateInfo(i),a=n.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);e=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(e=[i,i])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],i;e[0].time>e[1].time&&(i=!0,e.reverse());var n=Math.floor(e[1].time/Sh)-Math.floor(e[0].time/Sh)+1,a=new Date(e[0].time),o=a.getDate(),s=e[1].date.getDate();a.setDate(o+n-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-e[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-e[1].time)*u>0;)n-=u,a.setDate(l-u);var f=Math.floor((n+e[0].day+6)/7),h=i?-f+1:f-1;return i&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:f,nthWeek:h,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,i){var n=this._getRangeInfo(i);if(t>n.weeks||t===0&&e<n.fweek||t===n.weeks&&e>n.lweek)return null;var a=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+a),this.getDateInfo(o)},r.create=function(t,e){var i=[];return t.eachComponent("calendar",function(n){var a=new r(n);i.push(a),n.coordinateSystem=a}),t.eachSeries(function(n){n.get("coordinateSystem")==="calendar"&&(n.coordinateSystem=i[n.get("calendarIndex")||0])}),i},r.dimensions=["time","value"],r}();function P0(r){var t=r.calendarModel,e=r.seriesModel,i=t?t.coordinateSystem:e?e.coordinateSystem:null;return i}function VN(r){r.registerComponentModel(BN),r.registerComponentView(NN),r.registerCoordinateSystem("calendar",zN)}function FN(r,t){var e=r.existing;if(t.id=r.keyInfo.id,!t.type&&e&&(t.type=e.type),t.parentId==null){var i=t.parentOption;i?t.parentId=i.id:e&&(t.parentId=e.parentId)}t.parentOption=null}function I0(r,t){var e;return T(t,function(i){r[i]!=null&&r[i]!=="auto"&&(e=!0)}),e}function GN(r,t,e){var i=O({},e),n=r[t],a=e.$action||"merge";a==="merge"?n?(et(n,i,!0),bi(n,i,{ignoreSize:!0}),WS(e,n),Js(e,n),Js(e,n,"shape"),Js(e,n,"style"),Js(e,n,"extra"),e.clipPath=n.clipPath):r[t]=i:a==="replace"?r[t]=i:a==="remove"&&n&&(r[t]=null)}var oT=["transition","enterFrom","leaveTo"],HN=oT.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Js(r,t,e){if(e&&(!r[e]&&t[e]&&(r[e]={}),r=r[e],t=t[e]),!(!r||!t))for(var i=e?oT:HN,n=0;n<i.length;n++){var a=i[n];r[a]==null&&t[a]!=null&&(r[a]=t[a])}}function WN(r,t){if(r&&(r.hv=t.hv=[I0(t,["left","right"]),I0(t,["top","bottom"])],r.type==="group")){var e=r,i=t;e.width==null&&(e.width=i.width=0),e.height==null&&(e.height=i.height=0)}}var UN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.preventAutoZ=!0,e}return t.prototype.mergeOption=function(e,i){var n=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,e,i),this.option.elements=n},t.prototype.optionUpdated=function(e,i){var n=this.option,a=(i?n:e).elements,o=n.elements=i?[]:n.elements,s=[];this._flatten(a,s,null);var l=G1(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];T(l,function(f,h){var c=f.newOption;c&&(u.push(c),FN(f,c),GN(o,h,c),WN(o[h],c))},this),n.elements=wt(o,function(f){return f&&delete f.$action,f!=null})},t.prototype._flatten=function(e,i,n){T(e,function(a){if(a){n&&(a.parentOption=n),i.push(a);var o=a.children;o&&o.length&&this._flatten(o,i,a),delete a.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type="graphic",t.defaultOption={elements:[]},t}(ot),R0={path:null,compoundPath:null,group:nt,image:ae,text:dt},Be=xt(),YN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this._elMap=Y()},t.prototype.render=function(e,i,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var i=e.useElOptionsToUpdate();if(i){var n=this._elMap,a=this.group,o=e.get("z"),s=e.get("zlevel");T(i,function(l){var u=ee(l.id,null),f=u!=null?n.get(u):null,h=ee(l.parentId,null),c=h!=null?n.get(h):a,v=l.type,p=l.style;v==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&LB(p,v,!!g,!!d)){var y=PB(p,v,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var m=XN(l),_=l.$action||"merge",S=_==="merge",b=_==="replace";if(S){var x=!f,w=f;x?w=E0(u,c,l.type,n):(w&&(Be(w).isNew=!1),HB(w)),w&&(yh(w,m,e,{isInit:x}),k0(w,l,o,s))}else if(b){yl(f,l,n,e);var C=E0(u,c,l.type,n);C&&(yh(C,m,e,{isInit:!0}),k0(C,l,o,s))}else _==="remove"&&(Xw(f,l),yl(f,l,n,e));var A=n.get(u);if(A&&d)if(S){var M=A.getTextContent();M?M.attr(d):A.setTextContent(new dt(d))}else b&&A.setTextContent(new dt(d));if(A){var D=l.clipPath;if(D){var P=D.type,L=void 0,x=!1;if(S){var I=A.getClipPath();x=!I||Be(I).type!==P,L=x?$v(P):I}else b&&(x=!0,L=$v(P));A.setClipPath(L),yh(L,D,e,{isInit:x}),Xv(L,D.keyframeAnimation,e)}var R=Be(A);A.setTextConfig(g),R.option=l,ZN(A,e,l),Cn({el:A,componentModel:e,itemName:A.name,itemTooltipOption:l.tooltip}),Xv(A,l.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,i){for(var n=e.option.elements,a=this.group,o=this._elMap,s=i.getWidth(),l=i.getHeight(),u=["x","y"],f=0;f<n.length;f++){var h=n[f],c=ee(h.id,null),v=c!=null?o.get(c):null;if(!(!v||!v.isGroup)){var p=v.parent,d=p===a,g=Be(v),y=Be(p);g.width=J(g.option.width,d?s:y.width)||0,g.height=J(g.option.height,d?l:y.height)||0}}for(var f=n.length-1;f>=0;f--){var h=n[f],c=ee(h.id,null),v=c!=null?o.get(c):null;if(v){var p=v.parent,y=Be(p),m=p===a?{width:s,height:l}:{width:y.width,height:y.height},_={},S=jc(v,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Be(v).isNew&&S){for(var b=h.transition,x={},w=0;w<u.length;w++){var C=u[w],A=_[C];b&&(yn(b)||ut(b,C)>=0)?x[C]=A:v[C]=A}Dt(v,x,e,0)}else v.attr(_)}}},t.prototype._clear=function(){var e=this,i=this._elMap;i.each(function(n){yl(n,Be(n).option,i,e._lastGraphicModel)}),this._elMap=Y()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ct);function $v(r){var t=W(R0,r)?R0[r]:Nc(r),e=new t({});return Be(e).type=r,e}function E0(r,t,e,i){var n=$v(e);return t.add(n),i.set(r,n),Be(n).id=r,Be(n).isNew=!0,n}function yl(r,t,e,i){var n=r&&r.parent;n&&(r.type==="group"&&r.traverse(function(a){yl(a,t,e,i)}),IB(r,t,i),e.removeKey(Be(r).id))}function k0(r,t,e,i){r.isGroup||T([["cursor",Yr.prototype.cursor],["zlevel",i||0],["z",e||0],["z2",0]],function(n){var a=n[0];W(t,a)?r[a]=Q(t[a],n[1]):r[a]==null&&(r[a]=n[1])}),T(st(t),function(n){if(n.indexOf("on")===0){var a=t[n];r[n]=j(a)?a:null}}),W(t,"draggable")&&(r.draggable=t.draggable),t.name!=null&&(r.name=t.name),t.id!=null&&(r.id=t.id)}function XN(r){return r=O({},r),T(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(HS),function(t){delete r[t]}),r}function ZN(r,t,e){var i=at(r).eventData;!r.silent&&!r.ignore&&!i&&(i=at(r).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:r.name}),i&&(i.info=e.info)}function $N(r){r.registerComponentModel(UN),r.registerComponentView(YN),r.registerPreprocessor(function(t){var e=t.graphic;z(e)?!e[0]||!e[0].elements?t.graphic=[{elements:e}]:t.graphic=[t.graphic[0]]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}var O0=["x","y","radius","angle","single"],qN=["cartesian2d","polar","singleAxis"];function KN(r){var t=r.get("coordinateSystem");return ut(qN,t)>=0}function pi(r){return r+"Axis"}function jN(r,t){var e=Y(),i=[],n=Y();r.eachComponent({mainType:"dataZoom",query:t},function(f){n.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!n.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){n.set(f.uid,!0),i.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(c,v){var p=e.get(c);p&&p[v]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,c){(e.get(h)||e.set(h,[]))[c]=!0})}return i}function sT(r){var t=r.ecModel,e={infoList:[],infoMap:Y()};return r.eachTargetAxis(function(i,n){var a=t.getComponent(pi(i),n);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(a)}}}),e}var xh=function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r}(),Uo=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,i,n){var a=B0(e);this.settledOption=a,this.mergeDefaultAndTheme(e,n),this._doInit(a)},t.prototype.mergeOption=function(e){var i=B0(e);et(this.option,e,!0),et(this.settledOption,i,!0),this._doInit(i)},t.prototype._doInit=function(e){var i=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(i[a[0]]=n[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),i=this._targetAxisInfoMap=Y(),n=this._fillSpecifiedTargetAxis(i);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var i=!1;return T(O0,function(n){var a=this.getReferringComponents(pi(n),cM);if(a.specified){i=!0;var o=new xh;T(a.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),i},t.prototype._fillAutoTargetAxisByOrient=function(e,i){var n=this.ecModel,a=!0;if(a){var o=i==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(u,f){var h=u[0];if(h){var c=new xh;if(c.add(h.componentIndex),e.set(f,c),a=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",Bt).models[0];v&&T(u,function(p){h.componentIndex!==p.componentIndex&&v===p.getReferringComponents("grid",Bt).models[0]&&c.add(p.componentIndex)})}}}a&&T(O0,function(u){if(a){var f=n.findComponents({mainType:pi(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new xh;h.add(f[0].componentIndex),e.set(u,h),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(i){!e&&(e=i)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var i=this._rangePropMode,n=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,l=e[a[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":n?i[o]=n[o]:s&&(i[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(i,n){e==null&&(e=this.ecModel.getComponent(pi(i),n))},this),e},t.prototype.eachTargetAxis=function(e,i){this._targetAxisInfoMap.each(function(n,a){T(n.indexList,function(o){e.call(i,a,o)})})},t.prototype.getAxisProxy=function(e,i){var n=this.getAxisModel(e,i);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,i){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[i])return this.ecModel.getComponent(pi(e),i)},t.prototype.setRawRange=function(e){var i=this.option,n=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(i[a[0]]=n[a[0]]=e[a[0]],i[a[1]]=n[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var i=this.option;T(["start","startValue","end","endValue"],function(n){i[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,i){if(e==null&&i==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,i).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var i,n=this._targetAxisInfoMap.keys(),a=0;a<n.length;a++)for(var o=n[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;i||(i=u)}return i},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(ot);function B0(r){var t={};return T(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var JN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Uo),Yp=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n,a){this.dataZoomModel=e,this.ecModel=i,this.api=n},t.type="dataZoom",t}(Ct),QN=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t}(Yp),qn=T,N0=Sr,t5=function(){function r(t,e,i,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=i}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(KN(e)){var i=pi(this._dimName),n=e.getReferringComponents(i,Bt).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return q(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,i=this.getAxisModel(),n=i.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;qn(["start","end"],function(c,v){var p=t[c],d=t[c+"Value"];a[v]==="percent"?(p==null&&(p=o[v]),d=n.parse(Tt(p,o,e))):(u=!0,d=d==null?e[v]:n.parse(d),p=Tt(d,e,o)),l[v]=d==null||isNaN(d)?e[v]:d,s[v]=p==null||isNaN(p)?o[v]:p}),N0(l),N0(s);var f=this._minMaxSpan;u?h(l,s,e,o,!1):h(s,l,o,e,!0);function h(c,v,p,d,g){var y=g?"Span":"ValueSpan";Mn(0,c,p,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=Tt(c[m],p,d,!0),g&&(v[m]=n.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=e5(this,this._dimName,e),this._updateMinMaxSpan();var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var i=this._dimName,n=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;qn(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(i);if(f.length){if(a==="weakFilter"){var h=u.getStore(),c=V(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var p,d,g,y=0;y<f.length;y++){var m=h.get(c[y],v),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(g=!0),S&&(p=!0),b&&(d=!0)}return g&&p&&d})}else qn(f,function(v){if(a==="empty")l.setData(u=u.map(v,function(d){return s(d)?d:NaN}));else{var p={};p[v]=o,u.selectRange(p)}});qn(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._dataExtent;qn(["min","max"],function(n){var a=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Tt(i[0]+o,i,[0,100],!0):a!=null&&(o=Tt(a,[0,100],i,!0)-i[0]),t[n+"Span"]=a,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,i=this._valueWindow;if(e){var n=Sc(i,[0,500]);n=Math.min(n,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+i[0].toFixed(n)),e[1]!==100&&a.setDeterminedMinMax("max",+i[1].toFixed(n)),a.freeze()}},r}();function e5(r,t,e){var i=[1/0,-1/0];qn(e,function(o){cR(i,o.getData(),t)});var n=r.getAxisModel(),a=xb(n.axis.scale,n,i).calculate();return[a.min,a.max]}var r5={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(pi(o),s);n(o,s,l,a)})})}t(function(n,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new t5(n,a,s,r),e.push(o.__dzAxisProxy))});var i=Y();return T(e,function(n){T(n.getTargetSeriesModels(),function(a){i.set(a.uid,a)})}),i},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(i,n){e.getAxisProxy(i,n).reset(e)}),e.eachTargetAxis(function(i,n){e.getAxisProxy(i,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var i=e.findRepresentativeAxisProxy();if(i){var n=i.getDataPercentWindow(),a=i.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:a[0],endValue:a[1]})}})}};function i5(r){r.registerAction("dataZoom",function(t,e){var i=jN(e,t);T(i,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var z0=!1;function Xp(r){z0||(z0=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,r5),i5(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function n5(r){r.registerComponentModel(JN),r.registerComponentView(QN),Xp(r)}var Qe=function(){function r(){}return r}(),lT={};function Za(r,t){lT[r]=t}function uT(r){return lT[r]}var a5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;T(this.option.feature,function(i,n){var a=uT(n);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),et(i,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(ot);function o5(r,t,e){var i=t.getBoxLayoutParams(),n=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=ce(i,a,n);pn(t.get("orient"),r,t.get("itemGap"),o.width,o.height),jc(r,i,a,n)}function fT(r,t){var e=An(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),r=new pt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),r}var s5=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,i,n,a){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},f=this._features||(this._features={}),h=[];T(u,function(p,d){h.push(d)}),new mp(this._featureNames||[],h).add(c).update(c).remove(vt(c,null)).execute(),this._featureNames=h;function c(p,d){var g=h[p],y=h[d],m=u[g],_=new St(m,e,e.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(m.title=a.newTitle),g&&!y){if(l5(g))S={onclick:_.option.onclick,featureName:g};else{var b=uT(g);if(!b)return;S=new b}f[g]=S}else if(S=f[y],!S)return;S.uid=xa("toolbox-feature"),S.model=_,S.ecModel=i,S.api=n;var x=S instanceof Qe;if(!g&&y){x&&S.dispose&&S.dispose(i,n);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(i,n);return}v(_,S,g),_.setIconStatus=function(w,C){var A=this.option,M=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[w]=C,M[w]&&(C==="emphasis"?la:ua)(M[w])},S instanceof Qe&&S.render&&S.render(_,i,n,a)}function v(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof Qe&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},b,x;G(_)?(b={},b[g]=_):b=_,G(S)?(x={},x[g]=S):x=S;var w=p.iconPaths={};T(b,function(C,A){var M=_a(C,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(y.getItemStyle());var D=M.ensureState("emphasis");D.style=m.getItemStyle();var P=new dt({style:{text:x[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:LS({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},i)},ignore:!0});M.setTextContent(P),Cn({el:M,componentModel:e,itemName:A,formatterParamsExtra:{title:x[A]}}),M.__title=x[A],M.on("mouseover",function(){var L=m.getItemStyle(),I=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";P.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),M.setTextConfig({position:m.get("textPosition")||I}),P.ignore=!e.get("showTitle"),n.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&n.leaveEmphasis(this),P.hide()}),(p.get(["iconStatus",A])==="emphasis"?la:ua)(M),o.add(M),M.on("click",U(d.onclick,d,i,n,A)),w[A]=M})}o5(o,e,n),o.add(fT(o.getBoundingRect(),e)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!j(_)&&d){var S=_.style||(_.style={}),b=Ko(d,dt.makeFont(S)),x=p.x+o.x,w=p.y+o.y+s,C=!1;w+b.height>n.getHeight()&&(y.position="top",C=!0);var A=C?-5-b.height:s+10;x+b.width/2>n.getWidth()?(y.position=["100%",A],S.align="right"):x-b.width/2<0&&(y.position=[0,A],S.align="left")}})},t.prototype.updateView=function(e,i,n,a){T(this._features,function(o){o instanceof Qe&&o.updateView&&o.updateView(o.model,i,n,a)})},t.prototype.remove=function(e,i){T(this._features,function(n){n instanceof Qe&&n.remove&&n.remove(e,i)}),this.group.removeAll()},t.prototype.dispose=function(e,i){T(this._features,function(n){n instanceof Qe&&n.dispose&&n.dispose(e,i)})},t.type="toolbox",t}(Ct);function l5(r){return r.indexOf("my")===0}var u5=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,i){var n=this.model,a=n.get("name")||e.get("title.0.text")||"echarts",o=i.getZr().painter.getType()==="svg",s=o?"svg":n.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),u=it.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),v=c[0].indexOf("base64")>-1,p=o?decodeURIComponent(c[1]):c[1];v&&(p=window.atob(p));var d=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,b=S.document;b.open("image/svg+xml","replace"),b.write(p),b.close(),S.focus(),b.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var x=n.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',C=window.open();C.document.write(w),C.document.title=a}},t.getDefaultOption=function(e){var i={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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},t}(Qe),V0="__ec_magicType_stack__",f5=[["line","bar"],["stack"]],h5=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,i=e.get("icon"),n={};return T(e.get("type"),function(a){i[a]&&(n[a]=i[a])}),n},t.getDefaultOption=function(e){var i={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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},t.prototype.onclick=function(e,i,n){var a=this.model,o=a.get(["seriesIndex",n]);if(F0[n]){var s={series:[]},l=function(h){var c=h.subType,v=h.id,p=F0[n](c,v,h,a);p&&(K(p,h.option),s.series.push(p));var d=h.coordinateSystem;if(d&&d.type==="cartesian2d"&&(n==="line"||n==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,Bt).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var b=0;b<=S;b++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=n==="bar"}}};T(f5,function(h){ut(h,n)>=0&&T(h,function(c){a.setIconStatus(c,"normal")})}),a.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=n;n==="stack"&&(u=et({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",n])!=="emphasis"&&(f="tiled")),i.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Qe),F0={line:function(r,t,e,i){if(r==="bar")return et({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(r,t,e,i){if(r==="line")return et({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(r,t,e,i){var n=e.get("stack")===V0;if(r==="line"||r==="bar")return i.setIconStatus("stack",n?"normal":"emphasis"),et({id:t,stack:n?"":V0},i.get(["option","stack"])||{},!0)}};ur({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var Wu=new Array(60).join("-"),da=" ";function v5(r){var t={},e=[],i=[];return r.eachRawSeries(function(n){var a=n.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(n)}else e.push(n)}else e.push(n)}),{seriesGroupByCategoryAxis:t,other:e,meta:i}}function c5(r){var t=[];return T(r,function(e,i){var n=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(V(e.series,function(v){return v.name})),l=[n.model.getCategories()];T(e.series,function(v){var p=v.getRawData();l.push(v.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(da)],f=0;f<l[0].length;f++){for(var h=[],c=0;c<l.length;c++)h.push(l[c][f]);u.push(h.join(da))}t.push(u.join(`
  34. `))}),t.join(`
  35. `+Wu+`
  36. `)}function p5(r){return V(r,function(t){var e=t.getRawData(),i=[t.name],n=[];return e.each(e.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=e.getName(o),l=0;l<a-1;l++)n[l]=arguments[l];i.push((s?s+da:"")+n.join(da))}),i.join(`
  37. `)}).join(`
  38. `+Wu+`
  39. `)}function d5(r){var t=v5(r);return{value:wt([c5(t.seriesGroupByCategoryAxis),p5(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`
  40. `+Wu+`
  41. `),meta:t.meta}}function Ql(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function g5(r){var t=r.slice(0,r.indexOf(`
  42. `));if(t.indexOf(da)>=0)return!0}var qv=new RegExp("["+da+"]+","g");function y5(r){for(var t=r.split(/\n+/g),e=Ql(t.shift()).split(qv),i=[],n=V(e,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=Ql(t[a]).split(qv);i.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[a]=o[s])}return{series:n,categories:i}}function m5(r){for(var t=r.split(/\n+/g),e=Ql(t.shift()),i=[],n=0;n<t.length;n++){var a=Ql(t[n]);if(a){var o=a.split(qv),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),i[n]={name:s,value:[]},l=i[n].value):l=i[n]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?i[n].value=l[0]:i[n]=l[0])}}return{name:e,data:i}}function _5(r,t){var e=r.split(new RegExp(`
  43. *`+Wu+`
  44. *`,"g")),i={series:[]};return T(e,function(n,a){if(g5(n)){var o=y5(n),s=t[a],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:o.categories},i.series=i.series.concat(o.series))}else{var o=m5(n);i.series.push(o)}}),i}var S5=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var n=i.getDom(),a=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=a.get("optionToContent"),c=a.get("contentToOption"),v=d5(e);if(j(h)){var p=h(i.getOption());G(p)?u.innerHTML=p:mn(p)&&u.appendChild(p)}else{f.readOnly=a.get("readOnly");var d=f.style;d.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",d.color=a.get("textColor"),d.borderColor=a.get("textareaBorderColor"),d.backgroundColor=a.get("textareaColor"),f.value=v.value,u.appendChild(f)}var g=v.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+a.get("buttonColor"),m+=";color:"+a.get("buttonTextColor");var b=this;function x(){n.removeChild(o),b._dom=null}Vh(_,"click",x),Vh(S,"click",function(){if(c==null&&h!=null||c!=null&&h==null){x();return}var w;try{j(c)?w=c(u,i.getOption()):w=_5(f.value,g)}catch(C){throw x(),new Error("Data view format error "+C)}w&&i.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!a.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},t.prototype.remove=function(e,i){this._dom&&i.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,i){this.remove(e,i)},t.getDefaultOption=function(e){var i={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:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return i},t}(Qe);function x5(r,t){return V(r,function(e,i){var n=t&&t[i];if(Z(n)&&!z(n)){var a=Z(e)&&!z(e);a||(e={value:e});var o=n.name!=null&&e.name==null;return e=K(e,n),o&&delete e.name,e}else return e})}ur({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];T(r.newOption.series,function(i){var n=t.getSeriesByName(i.name)[0];if(!n)e.push(O({type:"scatter"},i));else{var a=n.get("data");e.push({name:i.name,data:x5(i.data,a)})}}),t.mergeOption(K({series:e},r.newOption))});var hT=T,vT=xt();function b5(r,t){var e=Zp(r);hT(t,function(i,n){for(var a=e.length-1;a>=0;a--){var o=e[a];if(o[n])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();e[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),e.push(t)}function w5(r){var t=Zp(r),e=t[t.length-1];t.length>1&&t.pop();var i={};return hT(e,function(n,a){for(var o=t.length-1;o>=0;o--)if(n=t[o][a],n){i[a]=n;break}}),i}function T5(r){vT(r).snapshots=null}function C5(r){return Zp(r).length}function Zp(r){var t=vT(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var A5=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,i){T5(e),i.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var i={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:e.getLocaleModel().get(["toolbox","restore","title"])};return i},t}(Qe);ur({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var M5=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],cT=function(){function r(t,e,i){var n=this;this._targetInfoList=[];var a=G0(e,t);T(D5,function(o,s){(!i||!i.include||ut(i.include,s)>=0)&&o(a,n._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(i,n,a){if((i.coordRanges||(i.coordRanges=[])).push(n),!i.coordRange){i.coordRange=n;var o=bh[i.brushType](0,a,n);i.__rangeOffset={offset:Y0[i.brushType](o.values,i.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,i){T(t,function(n){var a=this.findTargetInfo(n,e);a&&a!==!0&&T(a.coordSyses,function(o){var s=bh[n.brushType](1,o,n.range,!0);i(n,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){T(t,function(i){var n=this.findTargetInfo(i,e);if(i.range=i.range||[],n&&n!==!0){i.panelId=n.panelId;var a=bh[i.brushType](0,n.coordSys,i.coordRange),o=i.__rangeOffset;i.range=o?Y0[i.brushType](a.values,o.offset,L5(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(t,e){return V(this._targetInfoList,function(i){var n=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e?e(i):null,clipPath:Bw(n),isTargetByCursor:zw(n,t,i.coordSysModel),getLinearBrushOtherExtent:Nw(n)}})},r.prototype.controlSeries=function(t,e,i){var n=this.findTargetInfo(t,i);return n===!0||n&&ut(n.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var i=this._targetInfoList,n=G0(e,t),a=0;a<i.length;a++){var o=i[a],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<H0.length;l++)if(H0[l](n,o))return o}return!0},r}();function Kv(r){return r[0]>r[1]&&r.reverse(),r}function G0(r,t){return vo(r,t,{includeMainTypes:M5})}var D5={grid:function(r,t){var e=r.xAxisModels,i=r.yAxisModels,n=r.gridModels,a=Y(),o={},s={};!e&&!i&&!n||(T(e,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),T(i,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),T(n,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,f=[];T(u.getCartesians(),function(h,c){(ut(e,h.getAxis("x").model)>=0||ut(i,h.getAxis("y").model)>=0)&&f.push(h)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:W0.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,t){T(r.geoModels,function(e){var i=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:i,coordSyses:[i],getPanelRect:W0.geo})})}},H0=[function(r,t){var e=r.xAxisModel,i=r.yAxisModel,n=r.gridModel;return!n&&e&&(n=e.axis.grid.model),!n&&i&&(n=i.axis.grid.model),n&&n===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],W0={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(yi(r)),t}},bh={lineX:vt(U0,0),lineY:vt(U0,1),rect:function(r,t,e,i){var n=r?t.pointToData([e[0][0],e[1][0]],i):t.dataToPoint([e[0][0],e[1][0]],i),a=r?t.pointToData([e[0][1],e[1][1]],i):t.dataToPoint([e[0][1],e[1][1]],i),o=[Kv([n[0],a[0]]),Kv([n[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,i){var n=[[1/0,-1/0],[1/0,-1/0]],a=V(e,function(o){var s=r?t.pointToData(o,i):t.dataToPoint(o,i);return n[0][0]=Math.min(n[0][0],s[0]),n[1][0]=Math.min(n[1][0],s[1]),n[0][1]=Math.max(n[0][1],s[0]),n[1][1]=Math.max(n[1][1],s[1]),s});return{values:a,xyMinMax:n}}};function U0(r,t,e,i){var n=e.getAxis(["x","y"][r]),a=Kv(V([0,1],function(s){return t?n.coordToData(n.toLocalCoord(i[s]),!0):n.toGlobalCoord(n.dataToCoord(i[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var Y0={lineX:vt(X0,0),lineY:vt(X0,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return V(r,function(i,n){return[i[0]-e[0]*t[n][0],i[1]-e[1]*t[n][1]]})}};function X0(r,t,e,i){return[t[0]-i[r]*e[0],t[1]-i[r]*e[1]]}function L5(r,t){var e=Z0(r),i=Z0(t),n=[e[0]/i[0],e[1]/i[1]];return isNaN(n[0])&&(n[0]=1),isNaN(n[1])&&(n[1]=1),n}function Z0(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var jv=T,P5=lM("toolbox-dataZoom_"),I5=function(r){E(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,i,n,a){this._brushController||(this._brushController=new Tw(n.getZr()),this._brushController.on("brush",U(this._onBrush,this)).mount()),k5(e,i,this,a,n),E5(e,i)},t.prototype.onclick=function(e,i,n){R5[n].call(this)},t.prototype.remove=function(e,i){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,i){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var i=e.areas;if(!e.isEnd||!i.length)return;var n={},a=this.ecModel;this._brushController.updateCovers([]);var o=new cT($p(this.model),a,{include:["grid"]});o.matchOutputRanges(i,a,function(u,f,h){if(h.type==="cartesian2d"){var c=u.brushType;c==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[c],h,f)}}),b5(a,n),this._dispatchZoomAction(n);function s(u,f,h){var c=f.getAxis(u),v=c.model,p=l(u,v,a),d=p.findRepresentativeAxisProxy(v).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(h=Mn(0,h.slice(),c.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(n[p.id]={dataZoomId:p.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var c;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var p=v.getAxisModel(u,f.componentIndex);p&&(c=v)}),c}},t.prototype._dispatchZoomAction=function(e){var i=[];jv(e,function(n,a){i.push(q(n))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},t.getDefaultOption=function(e){var i={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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return i},t}(Qe),R5={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(w5(this.ecModel))}};function $p(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function E5(r,t){r.setIconStatus("back",C5(t)>1?"emphasis":"normal")}function k5(r,t,e,i,n){var a=e._isZoomActive;i&&i.type==="takeGlobalCursor"&&(a=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),e._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new cT($p(r),t,{include:["grid"]}),s=o.makePanelOpts(n,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}N2("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var i=t.getModel(e),n=[],a=$p(i),o=vo(r,a);jv(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),jv(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:P5+u+h};c[f]=h,n.push(c)}return n});function O5(r){r.registerComponentModel(a5),r.registerComponentView(s5),Za("saveAsImage",u5),Za("magicType",h5),Za("dataView",S5),Za("dataZoom",I5),Za("restore",A5),Ht(n5)}var B5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(ot);function pT(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function dT(r){if(it.domSupported){for(var t=document.documentElement.style,e=0,i=r.length;e<i;e++)if(r[e]in t)return r[e]}}var gT=dT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),N5=dT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function yT(r,t){if(!r)return t;t=$c(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function z5(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var V5=yT(N5,"transition"),qp=yT(gT,"transform"),F5="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(it.transform3dSupported?"will-change:transform;":"");function G5(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function H5(r,t,e){if(!G(e)||e==="inside")return"";var i=r.get("backgroundColor"),n=r.get("borderWidth");t=Sn(t);var a=G5(e),o=Math.max(Math.round(n)*1.5,6),s="",l=qp+":",u;ut(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+n,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*n)/2+Math.SQRT2*n-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var p=t+" solid "+n+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+i+";"];return'<div style="'+d.join("")+'"></div>'}function W5(r,t){var e="cubic-bezier(0.23,1,0.32,1)",i=" "+r/2+"s "+e,n="opacity"+i+",visibility"+i;return t||(i=" "+r+"s "+e,n+=it.transformSupported?","+qp+i:",left"+i+",top"+i),V5+":"+n}function $0(r,t,e){var i=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!it.transformSupported)return e?"top:"+n+";left:"+i+";":[["top",n],["left",i]];var a=it.transform3dSupported,o="translate"+(a?"3d":"")+"("+i+","+n+(a?",0":"")+")";return e?"top:0;left:0;"+qp+":"+o+";":[["top",0],["left",0],[gT,o]]}function U5(r){var t=[],e=r.get("fontSize"),i=r.getTextColor();i&&t.push("color:"+i),t.push("font:"+r.getFont());var n=Q(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),T(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function Y5(r,t,e){var i=[],n=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=mx(r,"html"),c=l+"px "+u+"px "+o+"px "+s;return i.push("box-shadow:"+c),t&&n&&i.push(W5(n,e)),a&&i.push("background-color:"+a),T(["width","color","radius"],function(v){var p="border-"+v,d=$c(p),g=r.get(d);g!=null&&i.push(p+":"+g+(v==="color"?"":"px"))}),i.push(U5(f)),h!=null&&i.push("padding:"+An(h).join("px ")+"px"),i.join(";")+";"}function q0(r,t,e,i,n){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&PC(r,o,e,i,n)}else{r[0]=i,r[1]=n;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var X5=function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,it.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),a=e.appendTo,o=a&&(G(a)?document.querySelector(a):mn(a)?a:j(a)&&a(t.getDom()));q0(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Ee(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),i=z5(e,"position"),n=e.style;n.position!=="absolute"&&i!=="absolute"&&(n.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,n=i.style,a=this._styleCoord;i.innerHTML?n.cssText=F5+Y5(t,!this._firstShow,this._longHide)+$0(a[0],a[1],!0)+("border-color:"+Sn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,i,n,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(G(a)&&i.get("trigger")==="item"&&!pT(i)&&(s=H5(i,n,a)),G(t))o.innerHTML=t+s;else if(t){o.innerHTML="",z(t)||(t=[t]);for(var l=0;l<t.length;l++)mn(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var i=this._styleCoord;if(q0(i,this._zr,this._container,t,e),i[0]!=null&&i[1]!=null){var n=this.el.style,a=$0(i[0],i[1]);T(a,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",it.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(U(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r}(),Z5=function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),j0(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,i,n,a){var o=this;Z(t)&&ue(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new dt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:mx(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=K0(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},r.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;j0(n,this._zr,t,e),t=n[0],e=n[1];var a=i.style,o=li(a.borderWidth||0),s=K0(a);i.x=t+o+s.left,i.y=e+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(U(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function li(r){return Math.max(0,r)}function K0(r){var t=li(r.shadowBlur||0),e=li(r.shadowOffsetX||0),i=li(r.shadowOffsetY||0);return{left:li(t-e),right:li(t+e),top:li(t-i),bottom:li(t+i)}}function j0(r,t,e,i){r[0]=e,r[1]=i,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var $5=new pt({shape:{x:-1,y:-1,width:2,height:2}}),q5=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){if(!(it.node||!i.getDom())){var n=e.getComponent("tooltip"),a=this._renderMode=dM(n.get("renderMode"));this._tooltipContent=a==="richText"?new Z5(i):new X5(i,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,i,n){if(!(it.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=n;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?is(this,"_updatePosition",50,"fixRate"):Oo(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,i=e.get("triggerOn");eT("itemTooltip",this._api,U(function(n,a,o){i!=="none"&&(i.indexOf(n)>=0?this._tryShow(a,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,n=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,i,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,n,a){if(!(a.from===this.uid||it.node||!n.getDom())){var o=J0(a,n);this._ticket="";var s=a.dataByCoordSys,l=Q5(a,i,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=$5;f.x=a.x,f.y=a.y,f.update(),at(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,n,a))return;var h=rT(a,i),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:n.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(e,i,n,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(J0(a,n))},t.prototype._manuallyAxisShowTip=function(e,i,n,a){var o=a.seriesIndex,s=a.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),h=$a([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,i){var n=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=at(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;sn(n,function(f){if(at(f).dataIndex!=null)return l=f,!0;if(at(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(e,l,i):u?this._showComponentItemTooltip(e,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var n=e.get("showDelay");i=U(i,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(i,n):i()},t.prototype._showAxisTooltip=function(e,i){var n=this._ecModel,a=this._tooltipModel,o=[i.offsetX,i.offsetY],s=$a([i.tooltipOption],a),l=this._renderMode,u=[],f=Ar("section",{blocks:[],noHeader:!0}),h=[],c=new zf;T(e,function(m){T(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Jw(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),w=Ar("section",{header:x,noHeader:!Fe(x),sortBlocks:!0,blocks:[]});f.blocks.push(w),T(_.seriesDataIndices,function(C){var A=n.getSeriesByIndex(C.seriesIndex),M=C.dataIndexInside,D=A.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=wp(S.axis,{value:b}),D.axisValueLabel=x,D.marker=c.makeTooltipMarker("item",Sn(D.color),l);var P=Yg(A.formatTooltip(M,!0,null)),L=P.frag;if(L){var I=$a([A],a).get("valueFormatter");w.blocks.push(I?O({valueFormatter:I},L):L)}P.text&&h.push(P.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var v=i.position,p=s.get("order"),d=Kg(f,c,l,p,n.get("useUTC"),s.get("textStyle"));d&&h.unshift(d);var g=l==="richText"?`
  45. `:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=at(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,p=e.positionDefault,d=$a([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new zf;y.marker=m.makeTooltipMarker("item",Sn(y.color),v);var _=Yg(u.formatTooltip(f,!1,h)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?Kg(b?O({valueFormatter:b},x):x,m,v,S,a.get("useUTC"),d.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,C,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=this._renderMode==="html",o=at(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(G(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=q(l),l.content=te(l.content));var h=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:l.content});var v=e.positionDefault,p=$a(h,this._tooltipModel,v?{position:v}:null),d=p.get("content"),g=Math.random()+"",y=new zf;this._showOrMove(p,function(){var m=q(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,e.offsetX,e.offsetY,e.position,i,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");l=l||e.get("position");var v=i,p=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),d=p.color;if(c)if(G(c)){var g=e.ecModel.get("useUTC"),y=z(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=rs(y.axisValue,v,g)),v=qc(v,n,!0)}else if(j(c)){var _=U(function(S,b){S===this._ticket&&(h.setContent(b,f,e,d,l),this._updatePosition(e,l,o,s,h,n,u))},this);this._ticket=a,v=c(n,a,_)}else v=c;h.setContent(v,f,e,d,l),h.show(e,d),this._updatePosition(e,l,o,s,h,n,u)}},t.prototype._getNearestPoint=function(e,i,n,a){if(n==="axis"||z(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!z(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),j(i)&&(i=i([n,a],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),z(i))n=J(i[0],u),a=J(i[1],f);else if(Z(i)){var d=i;d.width=h[0],d.height=h[1];var g=ce(d,{width:u,height:f});n=g.x,a=g.y,c=null,v=null}else if(G(i)&&l){var y=J5(i,p,h,e.get("borderWidth"));n=y[0],a=y[1]}else{var y=K5(n,a,o,u,f,c?null:20,v?null:20);n=y[0],a=y[1]}if(c&&(n-=Q0(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=Q0(v)?h[1]/2:v==="bottom"?h[1]:0),pT(e)){var y=j5(n,a,o,u,f);n=y[0],a=y[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===e.length;return o&&T(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&T(u,function(c,v){var p=h[v]||{},d=c.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&c.value===p.value&&c.axisType===p.axisType&&c.axisId===p.axisId&&d.length===g.length,o&&T(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&T(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=i[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){it.node||!i.getDom()||(Oo(this,"_updatePosition"),this._tooltipContent.dispose(),Zv("itemTooltip",i))},t.type="tooltip",t}(Ct);function $a(r,t,e){var i=t.ecModel,n;e?(n=new St(e,i,i),n=new St(t.option,n,i)):n=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof St&&(o=o.get("tooltip",!0)),G(o)&&(o={formatter:o}),o&&(n=new St(o,n,i)))}return n}function J0(r,t){return r.dispatchAction||U(t.dispatchAction,t)}function K5(r,t,e,i,n,a,o){var s=e.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>i?r-=l+a:r+=a),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function j5(r,t,e,i,n){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,i)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function J5(r,t,e,i){var n=e[0],a=e[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-a/2;break;case"top":s=t.x+u/2-n/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-a/2;break;case"right":s=t.x+u+o,l=t.y+f/2-a/2}return[s,l]}function Q0(r){return r==="center"||r==="middle"}function Q5(r,t,e){var i=Cc(r).queryOptionMap,n=i.keys()[0];if(!(!n||n==="series")){var a=jo(t,n,i.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=at(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function tz(r){Ht(Gp),r.registerComponentModel(B5),r.registerComponentView(q5),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ft),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ft)}var t_=T;function e_(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function r_(r,t,e){var i={};return t_(t,function(a){var o=i[a]=n();t_(r[a],function(s,l){if(Ut.isValidType(l)){var u={type:l,visual:s};e&&e(u,a),o[l]=new Ut(u),l==="opacity"&&(u=q(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Ut(u))}})}),i;function n(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function ez(r,t,e){var i;T(e,function(n){t.hasOwnProperty(n)&&e_(t[n])&&(i=!0)}),i&&T(e,function(n){t.hasOwnProperty(n)&&e_(t[n])?r[n]=q(t[n]):delete r[n]})}function dF(r,t,e,i,n,a){var o={};T(r,function(h){var c=Ut.prepareVisualTypes(t[h]);o[h]=c});var s;function l(h){return op(e,s,h)}function u(h,c){Lx(e,s,h,c)}e.each(f);function f(h,c){s=h;var v=e.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var p=i.call(n,h),d=t[p],g=o[p],y=0,m=g.length;y<m;y++){var _=g[y];d[_]&&d[_].applyVisual(h,l,u)}}}function rz(r,t,e,i){var n={};return T(r,function(a){var o=Ut.prepareVisualTypes(t[a]);n[a]=o}),{progress:function(o,s){var l;i!=null&&(l=s.getDimensionIndex(i));function u(b){return op(s,h,b)}function f(b,x){Lx(s,h,b,x)}for(var h,c=s.getStore();(h=o.next())!=null;){var v=s.getRawDataItem(h);if(!(v&&v.visualMap===!1))for(var p=i!=null?c.get(l,h):h,d=e(p),g=t[d],y=n[d],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(p,u,f)}}}}}var iz=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(ot),nz=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,i,n){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=Q(e.get("textBaseline"),e.get("textVerticalAlign")),f=new dt({style:kt(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new dt({style:kt(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=e.get("link"),d=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!p&&!g,v.silent=!d&&!g,p&&f.on("click",function(){Ag(p,"_"+e.get("target"))}),d&&v.on("click",function(){Ag(d,"_"+e.get("subtarget"))}),at(f).eventData=at(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),c&&a.add(v);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=ce(m,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),y=a.getBoundingRect();var b=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var w=new pt({shape:{x:y.x-b[3],y:y.y-b[0],width:y.width+b[1]+b[3],height:y.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(w)}},t.type="title",t}(Ct);function az(r){r.registerComponentModel(iz),r.registerComponentView(nz)}var i_=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){e==null&&(e=this.option.currentIndex);var i=this._data.count();this.option.loop?e=(e%i+i)%i:(e>=i&&(e=i-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e=this.option,i=e.data||[],n=e.axisType,a=this._names=[],o;n==="category"?(o=[],T(i,function(u,f){var h=ee(ya(u),""),c;Z(u)?(c=q(u),c.value=f):c=f,o.push(c),a.push(h)})):o=i;var s={category:"ordinal",time:"time",value:"number"}[n]||"number",l=this._data=new ku([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(ot),mT=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline.slider",t.defaultOption=Ci(i_.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(i_);Zt(mT,sx.prototype);var oz=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="timeline",t}(Ct),sz=function(r){E(t,r);function t(e,i,n,a){var o=r.call(this,e,i,n)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(fr),wh=Math.PI,n_=xt(),lz=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,i){this.api=i},t.prototype.render=function(e,i,n){if(this.model=e,this.api=n,this.ecModel=i,this.group.removeAll(),e.get("show",!0)){var a=this._layout(e,n),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,e);e.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return Ar("nameValue",{noName:!0,value:f})},T(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,e)},this),this._renderAxisLabel(a,s,l,e),this._position(a,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,i){var n=e.get(["label","position"]),a=e.get("orient"),o=fz(e,i),s;n==null||n==="auto"?s=a==="horizontal"?o.y+o.height/2<i.getHeight()/2?"-":"+":o.x+o.width/2<i.getWidth()/2?"+":"-":G(n)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][n]:s=n;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:wh/2},h=a==="vertical"?o.height:o.width,c=e.getModel("controlStyle"),v=c.get("show",!0),p=v?c.get("itemSize"):0,d=v?c.get("itemGap"):0,g=p+d,y=e.get(["label","rotate"])||0;y=y*wh/180;var m,_,S,b=c.get("position",!0),x=v&&c.get("showPlayBtn",!0),w=v&&c.get("showPrevBtn",!0),C=v&&c.get("showNextBtn",!0),A=0,M=h;b==="left"||b==="bottom"?(x&&(m=[0,0],A+=g),w&&(_=[A,0],A+=g),C&&(S=[M-p,0],M-=g)):(x&&(m=[M-p,0],M-=g),w&&(_=[0,0],A+=g),C&&(S=[M-p,0],M-=g));var D=[A,M];return e.get("inverse")&&D.reverse(),{viewRect:o,mainLength:h,orient:a,rotation:f[a],labelRotation:y,labelPosOpt:s,labelAlign:e.get(["label","align"])||l[a],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||u[a],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:p,controlGap:d}},t.prototype._position=function(e,i){var n=this._mainGroup,a=this._labelGroup,o=e.viewRect;if(e.orient==="vertical"){var s=Ce(),l=o.x,u=o.y+o.height;Wr(s,s,[-l,-u]),Ti(s,s,-wh/2),Wr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(n.getBoundingRect()),c=m(a.getBoundingRect()),v=[n.x,n.y],p=[a.x,a.y];p[0]=v[0]=f[0][0];var d=e.labelPosOpt;if(d==null||G(d)){var g=d==="+"?0:1;_(v,h,f,1,g),_(p,c,f,1,1-g)}else{var g=d>=0?0:1;_(v,h,f,1,g),p[1]=v[1]+d}n.setPosition(v),a.setPosition(p),n.rotation=a.rotation=e.rotation,y(n),y(a);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,b,x,w,C){S[w]+=x[w][C]-b[w][C]}},t.prototype._createAxis=function(e,i){var n=i.getData(),a=i.get("axisType"),o=uz(i,a);o.getTicks=function(){return n.mapArray(["value"],function(u){return{value:u}})};var s=n.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new sz("value",o,e.axisExtent,a);return l.model=i,l},t.prototype._createGroup=function(e){var i=this[e]=new nt;return this.group.add(i),i},t.prototype._renderAxisLine=function(e,i,n,a){var o=n.getExtent();if(a.get(["lineStyle","show"])){var s=new re({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:O({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new re({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:K({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},t.prototype._renderAxisTick=function(e,i,n,a){var o=this,s=a.getData(),l=n.scale.getTicks();this._tickSymbols=[],T(l,function(u){var f=n.dataToCoord(u.value),h=s.getItemModel(u.value),c=h.getModel("itemStyle"),v=h.getModel(["emphasis","itemStyle"]),p=h.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:U(o._changeTimeline,o,u.value)},g=a_(h,c,i,d);g.ensureState("emphasis").style=v.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),gi(g);var y=at(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},t.prototype._renderAxisLabel=function(e,i,n,a){var o=this,s=n.getLabelModel();if(s.get("show")){var l=a.getData(),u=n.getViewLabels();this._tickLabels=[],T(u,function(f){var h=f.tickValue,c=l.getItemModel(h),v=c.getModel("label"),p=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),g=n.dataToCoord(f.tickValue),y=new dt({x:g,y:0,rotation:e.labelRotation-e.rotation,onclick:U(o._changeTimeline,o,h),silent:!1,style:kt(v,{text:f.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});y.ensureState("emphasis").style=kt(p),y.ensureState("progress").style=kt(d),i.add(y),gi(y),n_(y).dataIndex=h,o._tickLabels.push(y)})}},t.prototype._renderControl=function(e,i,n,a){var o=e.controlSize,s=e.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),f=a.getPlayState(),h=a.get("inverse",!0);c(e.nextBtnPosition,"next",U(this._changeTimeline,this,h?"-":"+")),c(e.prevBtnPosition,"prev",U(this._changeTimeline,this,h?"+":"-")),c(e.playPosition,f?"stop":"play",U(this._handlePlayClick,this,!f),!0);function c(v,p,d,g){if(v){var y=nr(Q(a.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=hz(a,p+"Icon",m,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,i.add(_),gi(_)}}},t.prototype._renderCurrentPointer=function(e,i,n,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=U(u._handlePointerDrag,u),h.ondragend=U(u._handlePointerDragend,u),o_(h,u._progressLine,s,n,a,!0)},onUpdate:function(h){o_(h,u._progressLine,s,n,a)}};this._currentPointer=a_(l,l,this._mainGroup,{},this._currentPointer,f)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,i,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,i){var n=this._toAxisCoord(e)[0],a=this._axis,o=Sr(a.getExtent().slice());n>o[1]&&(n=o[1]),n<o[0]&&(n=o[0]),this._currentPointer.x=n,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=n,s.dirty());var l=this._findNearestTick(n),u=this.model;(i||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var i=e.model;e._changeTimeline(i.getCurrentIndex()+(i.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(e){var i=this._mainGroup.getLocalTransform();return ir(e,i,!0)},t.prototype._findNearestTick=function(e){var i=this.model.getData(),n=1/0,a,o=this._axis;return i.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-e);f<n&&(n=f,a=l)}),a},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(e){var i=this.model.getCurrentIndex();e==="+"?e=i+1:e==="-"&&(e=i-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})},t.prototype._updateTicksStatus=function(){var e=this.model.getCurrentIndex(),i=this._tickSymbols,n=this._tickLabels;if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",a<e);if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",n_(n[a]).dataIndex<=e)},t.type="timeline.slider",t}(oz);function uz(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new zu({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new xp({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new Zr}}function fz(r,t){return ce(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},r.get("padding"))}function hz(r,t,e,i){var n=i.style,a=_a(r.get(["controlStyle",t]),i||{},new ft(e[0],e[1],e[2],e[3]));return n&&a.setStyle(n),a}function a_(r,t,e,i,n,a){var o=t.get("color");if(n)n.setColor(o),e.add(n),a&&a.onUpdate(n);else{var s=r.get("symbol");n=Xt(s,-1,-1,2,2,o),n.setStyle("strokeNoScale",!0),e.add(n),a&&a.onCreate(n)}var l=t.getItemStyle(["color"]);n.setStyle(l),i=et({rectHover:!0,z2:100},i,!0);var u=sp(r.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var f=Iu(r.get("symbolOffset"),u);f&&(i.x=(i.x||0)+f[0],i.y=(i.y||0)+f[1]);var h=r.get("symbolRotate");return i.rotation=(h||0)*Math.PI/180||0,n.attr(i),n.updateTransform(),n}function o_(r,t,e,i,n,a){if(!r.dragging){var o=n.getModel("checkpointStyle"),s=i.dataToCoord(n.getData().get("value",e));if(a||!o.get("animation",!0))r.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function vz(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,i){var n=e.getComponent("timeline");return n&&t.currentIndex!=null&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.getPlayState()&&(n.setPlayState(!1),i.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),e.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),K({currentIndex:n.option.currentIndex},t)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var i=e.getComponent("timeline");i&&t.playState!=null&&i.setPlayState(t.playState)})}function cz(r){var t=r&&r.timeline;z(t)||(t=t?[t]:[]),T(t,function(e){e&&pz(e)})}function pz(r){var t=r.type,e={number:"value",time:"time"};if(e[t]&&(r.axisType=e[t],delete r.type),s_(r),tn(r,"controlPosition")){var i=r.controlStyle||(r.controlStyle={});tn(i,"position")||(i.position=r.controlPosition),i.position==="none"&&!tn(i,"show")&&(i.show=!1,delete i.position),delete r.controlPosition}T(r.data||[],function(n){Z(n)&&!z(n)&&(!tn(n,"value")&&tn(n,"name")&&(n.value=n.name),s_(n))})}function s_(r){var t=r.itemStyle||(r.itemStyle={}),e=t.emphasis||(t.emphasis={}),i=r.label||r.label||{},n=i.normal||(i.normal={}),a={normal:1,emphasis:1};T(i,function(o,s){!a[s]&&!tn(n,s)&&(n[s]=o)}),e.label&&!tn(i,"emphasis")&&(i.emphasis=e.label,delete e.label)}function tn(r,t){return r.hasOwnProperty(t)}function dz(r){r.registerComponentModel(mT),r.registerComponentView(lz),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),vz(r),r.registerPreprocessor(cz)}var gz=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Jv=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,n=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),z(i)&&T(i,function(a,o){G(a)&&(a={type:a}),i[o]=et(a,gz(n,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,n=0;n<e.length;n++){var a=e[n].get("name");if(this.isSelected(a)){this.select(a),i=!0;break}}!i&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var i=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,c=h.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(c)),c.length?i=i.concat(c):f=!0}else f=!0;f&&Tc(l)&&i.push(l.name)}),this._availableNames=n;var a=this.get("data")||i,o=Y(),s=V(a,function(l){return(G(l)||yt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new St(l,this,this.ecModel))},this);this._data=wt(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var i=this.option.selected,n=this.get("selectedMode");if(n==="single"){var a=this._data;T(a,function(o){i[o.get("name")]=!1})}i[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var i=this.option.selected;i.hasOwnProperty(e)||(i[e]=!0),this[i[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,i=this.option.selected;T(e,function(n){i[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,i=this.option.selected;T(e,function(n){var a=n.get("name",!0);i.hasOwnProperty(a)||(i[a]=!0),i[a]=!i[a]})},t.prototype.isSelected=function(e){var i=this.option.selected;return!(i.hasOwnProperty(e)&&!i[e])&&ut(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",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:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(ot),Xn=vt,Qv=T,Qs=nt,_T=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Qs),this.group.add(this._selectorGroup=new Qs),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,n){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,i,n,l,s,u);var f=e.getBoxLayoutParams(),h={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),v=ce(f,h,c),p=this.layoutInner(e,o,v,a,l,u),d=ce(K({width:p.width,height:p.height},f),h,c);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=fT(p,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,n,a,o,s,l){var u=this.getContentGroup(),f=Y(),h=i.get("selectedMode"),c=[];n.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),Qv(i.getData(),function(v,p){var d=v.get("name");if(!this.newlineDisabled&&(d===""||d===`
  46. `)){var g=new Qs;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,d,p,v,i,e,_,b,S,h,a);x.on("click",Xn(l_,d,null,a,c)).on("mouseover",Xn(tc,y.name,null,a,c)).on("mouseout",Xn(ec,y.name,null,a,c)),n.ssr&&x.eachChild(function(w){var C=at(w);C.seriesIndex=y.seriesIndex,C.dataIndex=p,C.ssrType="legend"}),f.set(d,!0)}else n.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var C=w.legendVisualProvider;if(!C.containName(d))return;var A=C.indexOfName(d),M=C.getItemVisual(A,"style"),D=C.getItemVisual(A,"legendIcon"),P=fe(M.fill);P&&P[3]===0&&(P[3]=.2,M=O(O({},M),{fill:rr(P,"rgba")}));var L=this._createItem(w,d,p,v,i,e,{},M,D,h,a);L.on("click",Xn(l_,null,d,a,c)).on("mouseover",Xn(tc,null,d,a,c)).on("mouseout",Xn(ec,null,d,a,c)),n.ssr&&L.eachChild(function(I){var R=at(I);R.seriesIndex=w.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},t.prototype._createSelector=function(e,i,n,a,o){var s=this.getSelectorGroup();Qv(e,function(u){var f=u.type,h=new dt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(h);var c=i.getModel("selectorLabel"),v=i.getModel(["emphasis","selectorLabel"]);Kr(h,{normal:c,emphasis:v},{defaultText:u.title}),gi(h)})},t.prototype._createItem=function(e,i,n,a,o,s,l,u,f,h,c){var v=e.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(i),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=yz(f,a,l,u,v,g,c),b=new Qs,x=a.getModel("textStyle");if(j(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;b.add(mz({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var C=s==="left"?p+5:-5,A=s,M=o.get("formatter"),D=i;G(M)&&M?D=M.replace("{name}",i!=null?i:""):j(M)&&(D=M(i));var P=g?x.getTextColor():a.get("inactiveColor");b.add(new dt({style:kt(x,{text:D,x:C,y:d/2,fill:P,align:A,verticalAlign:"middle"},{inheritColor:P})}));var L=new pt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&Cn({el:L,componentModel:o,itemName:i,itemTooltipOption:I.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(b),gi(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();pn(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){pn("horizontal",u,e.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],p=e.get("selectorButtonGap",!0),d=e.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?v[d]+=f[g]+p:h[d]+=c[g]+p,v[1-d]+=f[y]/2-c[y]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-d]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ct);function yz(r,t,e,i,n,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Qv(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?i.decal:Gl(h,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:e).opacity),s(u,i);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),v.stroke==="auto"&&(v.stroke=i.fill),!a){var p=t.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?i.lineWidth>0&&d?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function mz(r){var t=r.icon||"roundRect",e=Xt(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function l_(r,t,e,i){ec(r,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:r!=null?r:t}),tc(r,t,e,i)}function ST(r){for(var t=r.getZr().storage.getDisplayList(),e,i=0,n=t.length;i<n&&!(e=t[i].states.emphasis);)i++;return e&&e.hoverLayer}function tc(r,t,e,i){ST(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:i})}function ec(r,t,e,i){ST(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:i})}function _z(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}function qa(r,t,e){var i=r==="allSelect"||r==="inverseSelect",n={},a=[];e.eachComponent({mainType:"legend",query:t},function(s){i?s[r]():s[r](t.name),u_(s,n),a.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){T(n,function(l,u){s[l?"select":"unSelect"](u)}),u_(s,o)}),i?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function u_(r,t){var e=t||{};return T(r.getData(),function(i){var n=i.get("name");if(!(n===`
  47. `||n==="")){var a=r.isSelected(n);W(e,n)?e[n]=e[n]&&a:e[n]=a}}),e}function Sz(r){r.registerAction("legendToggleSelect","legendselectchanged",vt(qa,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",vt(qa,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",vt(qa,"inverseSelect")),r.registerAction("legendSelect","legendselected",vt(qa,"select")),r.registerAction("legendUnSelect","legendunselected",vt(qa,"unSelect"))}function xT(r){r.registerComponentModel(Jv),r.registerComponentView(_T),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,_z),r.registerSubTypeDefaulter("legend",function(){return"plain"}),Sz(r)}var xz=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,n){var a=ba(e);r.prototype.init.call(this,e,i,n),f_(this,e,a)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),f_(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Ci(Jv.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(Jv);function f_(r,t,e){var i=r.getOrient(),n=[1,1];n[i.index]=0,bi(t,e,{type:"box",ignoreSize:!!n})}var h_=nt,Th=["width","height"],Ch=["x","y"],bz=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new h_),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new h_)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,n,a,o,s,l){var u=this;r.prototype.renderInner.call(this,e,i,n,a,o,s,l);var f=this._controllerGroup,h=i.get("pageIconSize",!0),c=z(h)?h:[h,h];p("pagePrev",0);var v=i.getModel("pageTextStyle");f.add(new dt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=_a(i.get("pageIcons",!0)[i.getOrient().name][g],{onclick:U(u._pageGo,u,y,i,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=d,f.add(m)}},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=Th[u],h=Ch[u],c=Th[1-u],v=Ch[1-u];o&&pn("horizontal",l,e.get("selectorItemGap",!0));var p=e.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=q(n);o&&(y[f]=n[f]-d[f]-p);var m=this._layoutContentAndController(e,a,y,u,f,c,v,h);if(o){if(s==="end")g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[h]-=_}m[f]+=d[f]+p,g[1-u]+=m[v]+m[c]/2-d[c]/2,m[c]=Math.max(m[c],d[c]),m[v]=Math.min(m[v],d[v]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,i,n,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;pn(e.get("orient"),f,e.get("itemGap"),a?n.width:null,a?null:n.height),pn("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),p=c.getBoundingRect(),d=this._showController=v[o]>n[o],g=[-v.x,-v.y];i||(g[a]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=Q(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(d){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=n[o]-p[o]:y[a]+=p[o]+_}m[1-a]+=v[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),c.setPosition(m);var b={x:0,y:0};if(b[o]=d?n[o]:v[o],b[s]=Math.max(v[s],p[s]),b[l]=Math.min(0,p[l]+m[1-a]),h.__rectSize=n[o],d){var x={x:0,y:0};x[o]=Math.max(n[o]-p[o]-_,0),x[s]=b[s],h.setClipPath(new pt({shape:x})),h.__rectSize=x[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&Dt(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,i,n){var a=this._getPageInfo(i)[e];a!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var n=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=i[h]!=null,v=n.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=n.childOfName("pageText"),o=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;a&&o&&a.setStyle("text",G(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),n=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Th[o],l=Ch[o],u=this._findTargetItemIndex(i),f=n.children(),h=f[u],c=f.length,v=c?1:0,p={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var d=S(h);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>y.s+a||_&&!b(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!b(m,_.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function S(x){if(x){var w=x.getBoundingRect(),C=w[l]+x[l];return{s:C,e:C+w[s],i:x.__legendDataIndex}}}function b(x,w){return x.e>=w&&x.s<=w+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var i,n=this.getContentGroup(),a;return n.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===e&&(i=s)}),i!=null?i:a},t.type="legend.scroll",t}(_T);function wz(r){r.registerAction("legendScroll","legendscroll",function(t,e){var i=t.scrollDataIndex;i!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(i)})})}function Tz(r){Ht(xT),r.registerComponentModel(xz),r.registerComponentView(bz),wz(r)}function Cz(r){Ht(xT),Ht(Tz)}var Az=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=Ci(Uo.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Uo),Kp=xt();function Mz(r,t,e){Kp(r).coordSysRecordMap.each(function(i){var n=i.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function Dz(r,t){for(var e=Kp(r).coordSysRecordMap,i=e.keys(),n=0;n<i.length;n++){var a=i[n],o=e.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||bT(e,o))}}}function bT(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function Lz(r,t){var e={model:t,containsPoint:vt(Iz,t),dispatchAction:vt(Pz,r),dataZoomInfoMap:null,controller:null},i=e.controller=new fw(r.getZr());return T(["pan","zoom","scrollMove"],function(n){i.on(n,function(a){var o=[];e.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function Pz(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function Iz(r,t,e,i){return r.coordinateSystem.containPoint([e,i])}function Rz(r){var t,e="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},n=!0;return r.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;i[e+s]>i[e+t]&&(t=s),n=n&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!n}}}function Ez(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var i=Kp(e),n=i.coordSysRecordMap||(i.coordSysRecordMap=Y());n.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=sT(a);T(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,Lz(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=Y());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),n.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){bT(n,a);return}var f=Rz(l);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),is(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var kz=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,i,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),Mz(n,e,{pan:U(Ah.pan,this),zoom:U(Ah.zoom,this),scrollMove:U(Ah.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Dz(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Yp),Ah={zoom:function(r,t,e,i){var n=this.range,a=n.slice(),o=r.axisModels[0];if(o){var s=Mh[t](null,[i.originX,i.originY],o,e,r),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/i.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Mn(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,n[0]!==a[0]||n[1]!==a[1])return a}},pan:v_(function(r,t,e,i,n,a){var o=Mh[i]([a.oldX,a.oldY],[a.newX,a.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:v_(function(r,t,e,i,n,a){var o=Mh[i]([0,0],[a.scrollDelta,a.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*a.scrollDelta})};function v_(r){return function(t,e,i,n){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,i,n);if(Mn(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Mh={grid:function(r,t,e,i,n){var a=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,t,e,i,n){var a=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,t,e,i,n){var a=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function Oz(r){Xp(r),r.registerComponentModel(Az),r.registerComponentView(kz),Ez(r)}var Bz=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Ci(Uo.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Uo),Ka=pt,c_=7,Nz=1,Dh=30,zz=7,ja="horizontal",p_="vertical",Vz=5,Fz=["line","bar","candlestick","scatter"],Gz={easing:"cubicOut",duration:100,delay:0},Hz=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,i){this.api=i,this._onBrush=U(this._onBrush,this),this._onBrushEnd=U(this._onBrushEnd,this)},t.prototype.render=function(e,i,n,a){if(r.prototype.render.apply(this,arguments),is(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Oo(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new nt;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(i),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,i=this.api,n=e.get("brushSelect"),a=n?zz:0,o=this._findCoordRect(),s={width:i.getWidth(),height:i.getHeight()},l=this._orient===ja?{right:s.width-o.x-o.width,top:s.height-Dh-c_-a,width:o.width,height:Dh}:{right:c_,top:o.y,width:Dh,height:o.height},u=ba(e.option);T(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=ce(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===p_&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,i=this._location,n=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===ja&&!o?{scaleY:l?1:-1,scaleX:1}:n===ja&&o?{scaleY:l?1:-1,scaleX:-1}:n===p_&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=i.x-u.x,e.y=i.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,i=this._size,n=this._displayables.sliderGroup,a=e.get("brushSelect");n.add(new Ka({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new Ka({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:U(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var i=this._size,n=this._shadowSize||[],a=e.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==n[0]||i[1]!==n[1]){var h=o.getDataExtent(l),c=(h[1]-h[0])*.3;h=[h[0]-c,h[1]+c];var v=[0,i[1]],p=[0,i[0]],d=[[i[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/i[0]),S;o.each([l],function(A,M){if(_>0&&M%_){m+=y;return}var D=A==null||isNaN(A)||A==="",P=D?0:Tt(A,h,v,!0);D&&!S&&M?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,P]),g.push([m,P]),m+=y,S=D}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var b=this.dataZoomModel;function x(A){var M=b.getModel(A?"selectedDataBackground":"dataBackground"),D=new nt,P=new sr({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new De({shape:{points:f},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(P),D.add(L),D}for(var w=0;w<3;w++){var C=x(w===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,i=e.get("showDataShadow");if(i!==!1){var n,a=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();T(l,function(u){if(!n&&!(i!==!0&&ut(Fz,u.get("type"))<0)){var f=a.getComponent(pi(o),s).axis,h=Wz(o),c,v=u.coordinateSystem;h!=null&&v.getOtherAxis&&(c=v.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),n={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:c}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,i=this._displayables,n=i.handles=[null,null],a=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),c=i.filler=new Ka({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new Ka({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Nz,fill:"rgba(0,0,0,0)"}})),T([0,1],function(_){var S=l.get("handleIcon");!zl[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=Xt(S,-1,0,2,2,null,!0);b.attr({cursor:d_(this._orient),draggable:!0,drift:U(this._onDragMove,this,_),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),w=l.get("handleSize");this._handleHeight=J(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),gi(b);var C=l.get("handleColor");C!=null&&(b.style.fill=C),o.add(n[_]=b);var A=l.getModel("textStyle"),M=l.get("handleLabel")||{},D=M.show||!1;e.add(a[_]=new dt({silent:!0,invisible:!D,style:kt(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var v=c;if(h){var p=J(l.get("moveHandleSize"),s[1]),d=i.moveHandle=new pt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=i.moveHandleIcon=Xt(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));v=i.moveZone=new pt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),v.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(v)}v.attr({draggable:!0,cursor:d_(this._orient),drift:U(this._onDragMove,this,"all"),ondragstart:U(this._showDataInfo,this,!0),ondragend:U(this._onDragEnd,this),onmouseover:U(this._showDataInfo,this,!0),onmouseout:U(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Tt(e[0],[0,100],i,!0),Tt(e[1],[0,100],i,!0)]},t.prototype._updateInterval=function(e,i){var n=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Mn(i,a,o,n.get("zoomLock")?"all":e,s.minSpan!=null?Tt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Tt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=Sr([Tt(a[0],o,l,!0),Tt(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var i=this._displayables,n=this._handleEnds,a=Sr(n.slice()),o=this._size;T([0,1],function(v){var p=i.handles[v],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:n[v]+(v?-1:1),y:o[1]/2-d/2})},this),i.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};i.moveHandle&&(i.moveHandle.setShape(s),i.moveZone.setShape(s),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=i.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;f<l.length;f++){var h=l[f],c=h.getClipPath();c||(c=new pt,h.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var i=this.dataZoomModel,n=this._displayables,a=n.handleLabels,o=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,h=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var c=Sr(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(p){var d=yi(n.handles[p].parent,this.group),g=_u(p===0?"right":"left",d),y=this._handleWidth/2+Vz,m=ir([c[p]+(p===0?-y:y),this._size[1]/2],d);a[p].setStyle({x:m[0],y:m[1],verticalAlign:o===ja?"middle":g,align:o===ja?g:"center",text:s[p]})}},t.prototype._formatLabel=function(e,i){var n=this.dataZoomModel,a=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=i.getPixelPrecision());var s=e==null||isNaN(e)?"":i.type==="category"||i.type==="time"?i.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return j(a)?a(e,s):G(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var i=this.dataZoomModel.get("handleLabel")||{},n=i.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=a.get("show")||!1,s=e||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(e,i,n,a){this._dragging=!0,Hr(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=ir([i,n],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var i=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>i[0]||n[1]<0||n[1]>i[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var i=e.offsetX,n=e.offsetY;this._brushStart=new rt(i,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var n=i.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Sr([Tt(n.x,o,s,!0),Tt(n.x+n.width,o,s,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(Hr(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,i){var n=this._displayables,a=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new Ka({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,i),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},t.prototype._dispatchZoomAction=function(e){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?Gz:null,start:i[0],end:i[1]})},t.prototype._findCoordRect=function(){var e,i=sT(this.dataZoomModel).infoList;if(!e&&i.length){var n=i[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var a=this.api.getWidth(),o=this.api.getHeight();e={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return e},t.type="dataZoom.slider",t}(Yp);function Wz(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function d_(r){return r==="vertical"?"ns-resize":"ew-resize"}function Uz(r){r.registerComponentModel(Bz),r.registerComponentView(Hz),Xp(r)}function Yz(r){Ht(Oz),Ht(Uz)}var wT={get:function(r,t,e){var i=q((Xz[r]||{})[t]);return e&&z(i)?i[i.length-1]:i}},Xz={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},g_=Ut.mapVisual,Zz=Ut.eachVisual,$z=z,y_=T,qz=Sr,Kz=Tt,tu=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,i,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,i){var n=this.option;!i&&ez(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var i=this.stateList;e=U(e,this),this.controllerVisuals=r_(this.option.controller,i,e),this.targetVisuals=r_(this.option.target,i,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,i=[];return e==null||e==="all"?this.ecModel.eachSeries(function(n,a){i.push(a)}):i=Mt(e),i},t.prototype.eachTargetSeries=function(e,i){T(this.getTargetSeriesIndices(),function(n){var a=this.ecModel.getSeriesByIndex(n);a&&e.call(i,a)},this)},t.prototype.isTargetSeries=function(e){var i=!1;return this.eachTargetSeries(function(n){n===e&&(i=!0)}),i},t.prototype.formatValueText=function(e,i,n){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;n=n||["<",">"],z(e)&&(e=e.slice(),u=!0);var f=i?e:u?[h(e[0]),h(e[1])]:h(e);if(G(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(j(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+f[1]:e[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,i=qz([e.min,e.max]);this._dataExtent=i},t.prototype.getDataDimensionIndex=function(e){var i=this.option.dimension;if(i!=null)return e.getDimensionIndex(i);for(var n=e.dimensions,a=n.length-1;a>=0;a--){var o=n[a],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,i=this.option,n={inRange:i.inRange,outOfRange:i.outOfRange},a=i.target||(i.target={}),o=i.controller||(i.controller={});et(a,n),et(o,n);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),f.call(this,o);function l(h){$z(i.color)&&!h.inRange&&(h.inRange={color:i.color.slice().reverse()}),h.inRange=h.inRange||{color:e.get("gradientColor")}}function u(h,c,v){var p=h[c],d=h[v];p&&!d&&(d=h[v]={},y_(p,function(g,y){if(Ut.isValidType(y)){var m=wT.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(h){var c=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,v=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";y_(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=c&&q(c)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=v&&q(v)||(s?m[0]:[m[0],m[0]])),_.symbol=g_(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var b=-1/0;Zz(S,function(x){x>b&&(b=x)}),_.symbolSize=g_(S,function(x){return Kz(x,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(ot),m_=[20,140],jz=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=m_[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=m_[1])},t.prototype._resetRange=function(){var e=this.getExtent(),i=this.option.range;!i||i.auto?(e.auto=1,this.option.range=e):z(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],e[0]),i[1]=Math.min(i[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(e){var i=this.option.controller[e].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),i=Sr((this.get("range")||[]).slice());return i[0]>e[1]&&(i[0]=e[1]),i[1]>e[1]&&(i[1]=e[1]),i[0]<e[0]&&(i[0]=e[0]),i[1]<e[0]&&(i[1]=e[0]),i},t.prototype.getValueState=function(e){var i=this.option.range,n=this.getExtent();return(i[0]<=n[0]||i[0]<=e)&&(i[1]>=n[1]||e<=i[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var i=[];return this.eachTargetSeries(function(n){var a=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&a.push(l)},this),i.push({seriesId:n.id,dataIndex:a})},this),i},t.prototype.getVisualMeta=function(e){var i=__(this,"outOfRange",this.getExtent()),n=__(this,"inRange",this.option.range.slice()),a=[];function o(v,p){a.push({value:v,color:e(v,p)})}for(var s=0,l=0,u=n.length,f=i.length;l<f&&(!n.length||i[l]<=n[0]);l++)i[l]<n[s]&&o(i[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&a.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var h=1;l<f;l++)(!n.length||n[n.length-1]<i[l])&&(h&&(a.length&&o(a[a.length-1].value,"outOfRange"),h=0),o(i[l],"outOfRange"));var c=a.length;return{stops:a,outerColors:[c?a[0].color:"transparent",c?a[c-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Ci(tu.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:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(tu);function __(r,t,e){if(e[0]===e[1])return e.slice();for(var i=200,n=(e[1]-e[0])/i,a=e[0],o=[],s=0;s<=i&&a<e[1];s++)o.push(a),a+=n;return o.push(e[1]),o}var TT=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,i){this.ecModel=e,this.api=i},t.prototype.render=function(e,i,n,a){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,i,n,a)},t.prototype.renderBackground=function(e){var i=this.visualMapModel,n=An(i.get("padding")||0),a=e.getBoundingRect();e.add(new pt({z2:-1,silent:!0,shape:{x:a.x-n[3],y:a.y-n[0],width:a.width+n[3]+n[1],height:a.height+n[0]+n[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,i,n){n=n||{};var a=n.forceState,o=this.visualMapModel,s={};if(i==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,p){s[v]=p}var h=o.controllerVisuals[a||o.getValueState(e)],c=Ut.prepareVisualTypes(h);return T(c,function(v){var p=h[v];n.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",p=h.__alphaForOpacity),Ut.dependsOn(v,i)&&p&&p.applyVisual(e,u,f)}),s[i]},t.prototype.positionGroup=function(e){var i=this.visualMapModel,n=this.api;jc(e,i.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},t.prototype.doRender=function(e,i,n,a){},t.type="visualMap",t}(Ct),S_=[["left","right","width"],["top","bottom","height"]];function CT(r,t,e){var i=r.option,n=i.align;if(n!=null&&n!=="auto")return n;for(var a={width:t.getWidth(),height:t.getHeight()},o=i.orient==="horizontal"?1:0,s=S_[o],l=[0,null,10],u={},f=0;f<3;f++)u[S_[1-o][f]]=l[f],u[s[f]]=f===2?e[0]:i[s[f]];var h=[["x","width",3],["y","height",0]][o],c=ce(u,a,i.padding);return s[(c.margin[h[2]]||0)+c[h[0]]+c[h[1]]*.5<a[h[1]]*.5?0:1]}function ml(r,t){return T(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var gr=Tt,Jz=T,x_=Math.min,Lh=Math.max,Qz=12,tV=6,eV=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,i){r.prototype.init.call(this,e,i),this._hoverLinkFromSeriesMouseOver=U(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=U(this._hideIndicator,this)},t.prototype.doRender=function(e,i,n,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,i=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(i);var n=e.get("text");this._renderEndsText(i,n,0),this._renderEndsText(i,n,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},t.prototype._renderEndsText=function(e,i,n){if(i){var a=i[1-n];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),h=this._applyTransform(n===0?"bottom":"top",u),c=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new dt({style:kt(v,{x:f[0],y:f[1],verticalAlign:c==="horizontal"?"middle":h,align:c==="horizontal"?h:"center",text:a})}))}},t.prototype._renderBar=function(e){var i=this.visualMapModel,n=this._shapes,a=i.itemSize,o=this._orient,s=this._useHandle,l=CT(i,this.api,a),u=n.mainGroup=this._createBarGroup(l),f=new nt;u.add(f),f.add(n.outOfRange=b_()),f.add(n.inRange=b_(null,s?T_(this._orient):null,U(this._dragHandle,this,"all",!1),U(this._dragHandle,this,"all",!0))),f.setClipPath(new pt({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var h=i.textStyleModel.getTextRect("国"),c=Lh(h.width,h.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(i,u,0,a,c,o),this._createHandle(i,u,1,a,c,o)),this._createIndicator(i,u,a,c,o),e.add(u)},t.prototype._createHandle=function(e,i,n,a,o,s){var l=U(this._dragHandle,this,n,!1),u=U(this._dragHandle,this,n,!0),f=nr(e.get("handleSize"),a[0]),h=Xt(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=T_(this._orient);h.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Hr(y.event)}}),h.x=a[0]/2,h.useStyle(e.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Ec(h,!0),i.add(h);var v=this.visualMapModel.textStyleModel,p=new dt({cursor:c,draggable:!0,drift:l,onmousemove:function(y){Hr(y.event)},ondragend:u,style:kt(v,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[f,0],g=this._shapes;g.handleThumbs[n]=h,g.handleLabelPoints[n]=d,g.handleLabels[n]=p},t.prototype._createIndicator=function(e,i,n,a,o){var s=nr(e.get("indicatorSize"),n[0]),l=Xt(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof ae){var f=l.style;l.useStyle(O({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);i.add(l);var h=this.visualMapModel.textStyleModel,c=new dt({silent:!0,invisible:!0,style:kt(h,{x:0,y:0,text:""})});this.group.add(c);var v=[(o==="horizontal"?a/2:tV)+n[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=c,p.indicatorLabelPoint=v,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,i,n,a){if(this._useHandle){if(this._dragging=!i,!i){var o=this._applyTransform([n,a],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}i===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),i?!this._hovering&&this._clearHoverLinkToSeries():w_(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,i=this._dataInterval=e.getSelected(),n=e.getExtent(),a=[0,e.itemSize[1]];this._handleEnds=[gr(i[0],n,a,!0),gr(i[1],n,a,!0)]},t.prototype._updateInterval=function(e,i){i=i||0;var n=this.visualMapModel,a=this._handleEnds,o=[0,n.itemSize[1]];Mn(i,a,o,e,0);var s=n.getExtent();this._dataInterval=[gr(a[0],o,s,!0),gr(a[1],o,s,!0)]},t.prototype._updateView=function(e){var i=this.visualMapModel,n=i.getExtent(),a=this._shapes,o=[0,i.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,i,n,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new ts(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,i){var n=100,a=[],o=(e[1]-e[0])/n;a.push({color:this.getControllerVisual(e[0],"color",i),offset:0});for(var s=1;s<n;s++){var l=e[0]+o*s;if(l>e[1])break;a.push({color:this.getControllerVisual(l,"color",i),offset:s/n})}return a.push({color:this.getControllerVisual(e[1],"color",i),offset:1}),a},t.prototype._createBarPoints=function(e,i){var n=this.visualMapModel.itemSize;return[[n[0]-i[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-i[1],e[1]]]},t.prototype._createBarGroup=function(e){var i=this._orient,n=this.visualMapModel.get("inverse");return new nt(i==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,i){if(this._useHandle){var n=this._shapes,a=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=a.itemSize,u=a.getExtent(),f=this._applyTransform("left",n.mainGroup);Jz([0,1],function(h){var c=o[h];c.setStyle("fill",i.handlesColor[h]),c.y=e[h];var v=gr(e[h],[0,l[1]],u,!0),p=this.getControllerVisual(v,"symbolSize");c.scaleX=c.scaleY=p/l[0],c.x=l[0]-p/2;var d=ir(n.handleLabelPoints[h],yi(c,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-p)/2:(l[0]-p)/-2;d[1]+=g}s[h].setStyle({x:d[0],y:d[1],text:a.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,i,n,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(h){h.attr("invisible",!1);var c={convertOpacityToAlpha:!0},v=this.getControllerVisual(e,"color",c),p=this.getControllerVisual(e,"symbolSize"),d=gr(e,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=ir(f.indicatorLabelPoint,yi(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(i),verticalAlign:x?S:"middle",align:x?"center":S});var w={x:g,y:d,style:{fill:v}},C={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(w,A),_.animateTo(C,A)}else h.attr(w),_.attr(C);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;D<M.length;D++)this.api.enterBlur(M[D])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(i){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,a=e._applyTransform([i.offsetX,i.offsetY],e._shapes.mainGroup,!0,!0);a[1]=x_(Lh(0,a[1]),n[1]),e._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,i){var n=this.visualMapModel,a=n.itemSize;if(n.option.hoverLink){var o=[0,a[1]],s=n.getExtent();e=x_(Lh(o[0],e),o[1]);var l=rV(n,s,o),u=[e-l,e+l],f=gr(e,o,s,!0),h=[gr(u[0],o,s,!0),gr(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),i&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var c=this._hoverLinkDataIndices,v=[];(i||w_(n))&&(v=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var p=hM(c,v);this._dispatchHighDown("downplay",ml(p[0],n)),this._dispatchHighDown("highlight",ml(p[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var i;if(sn(e.target,function(l){var u=at(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var n=this.ecModel.getSeriesByIndex(i.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(n)){var o=n.getData(i.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var n=0;n<i.length;n++)this.api.leaveBlur(i[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",ml(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,i,n,a){var o=yi(i,a?null:this.group);return z(e)?ir(e,o,n):_u(e,o,n)},t.prototype._dispatchHighDown=function(e,i){i&&i.length&&this.api.dispatchAction({type:e,batch:i})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(TT);function b_(r,t,e,i){return new sr({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(n){Hr(n.event)},ondragend:i})}function rV(r,t,e){var i=Qz/2,n=r.get("hoverLinkDataSize");return n&&(i=gr(n,t,e,!0)/2),i}function w_(r){var t=r.get("hoverLinkOnHandle");return!!(t==null?r.get("realtime"):t)}function T_(r){return r==="vertical"?"ns-resize":"ew-resize"}var iV={type:"selectDataRange",event:"dataRangeSelected",update:"update"},nV=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},aV=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(i){var n=r.pipelineContext;!i.isTargetSeries(r)||n&&n.large||e.push(rz(i.stateList,i.targetVisuals,U(i.getValueState,i),i.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),i=[];t.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var a=n.getVisualMeta(U(oV,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(e);o>=0&&(a.dimension=o,i.push(a))}}),r.getData().setVisual("visualMeta",i)}}];function oV(r,t,e,i){for(var n=t.targetVisuals[i],a=Ut.prepareVisualTypes(n),o={color:Dx(r.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(e,h,c)}return o.color;function h(v){return o[v]}function c(v,p){o[v]=p}}var C_=T;function sV(r){var t=r&&r.visualMap;z(t)||(t=t?[t]:[]),C_(t,function(e){if(e){Zn(e,"splitList")&&!Zn(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var i=e.pieces;i&&z(i)&&C_(i,function(n){Z(n)&&(Zn(n,"start")&&!Zn(n,"min")&&(n.min=n.start),Zn(n,"end")&&!Zn(n,"max")&&(n.max=n.end))})}})}function Zn(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var A_=!1;function AT(r){A_||(A_=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(iV,nV),T(aV,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(sV))}function lV(r){r.registerComponentModel(jz),r.registerComponentView(eV),AT(r)}var uV=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],fV[this._mode].call(this,this._pieceList),this._resetSelected(e,i);var a=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=q(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=V(this._pieceList,function(l){return l=q(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,i={},n=Ut.listVisualTypes(),a=this.isCategory();T(e.pieces,function(s){T(n,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),T(i,function(s,l){var u=!1;T(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&T(this.stateList,function(f){(e[f]||(e[f]={}))[l]=wT.get(l,f==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,i){var n=this.option,a=this._pieceList,o=(i?n:e).selected||{};if(n.selected=o,T(a,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;T(a,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=q(e)},t.prototype.getValueState=function(e){var i=Ut.findPieceIndex(e,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var i=[],n=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Ut.findPieceIndex(l,n);f===e&&o.push(u)},this),i.push({seriesId:a.id,dataIndex:o})},this),i},t.prototype.getRepresentValue=function(e){var i;if(this.isCategory())i=e.value;else if(e.value!=null)i=e.value;else{var n=e.interval||[];i=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return i},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var i=[],n=["",""],a=this;function o(f,h){var c=a.getRepresentValue({interval:f});h||(h=a.getValueState(c));var v=e(c,h);f[0]===-1/0?n[0]=v:f[1]===1/0?n[1]=v:i.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return T(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:i,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=Ci(tu.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}),t}(tu),fV={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),i=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var a=(i[1]-i[0])/n;+a.toFixed(e)!==a&&e<5;)e++;t.precision=e,a=+a.toFixed(e),t.minOpen&&r.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<n;s+=a,o++){var l=o===n-1?i[1]:s+a;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[i[1],1/0],close:[0,0]}),ev(r),T(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;T(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),M_(t,r)},pieces:function(r){var t=this.option;T(t.pieces,function(e,i){Z(e)||(e={value:e});var n={text:"",index:i};if(e.label!=null&&(n.text=e.label),e.hasOwnProperty("value")){var a=n.value=e.value;n.interval=[a,a],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],h=0;h<2;h++){for(var c=[["gte","gt","min"],["lte","lt","max"]][h],v=0;v<3&&o[h]==null;v++)o[h]=e[c[v]],s[h]=l[v],f[h]=v===2;o[h]==null&&(o[h]=u[h])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=Ut.retrieveVisuals(e),r.push(n)},this),M_(t,r),ev(r),T(r,function(e){var i=e.close,n=[["<","≤"][i[1]],[">","≥"][i[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function M_(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var hV=function(r){E(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var i=this.visualMapModel,n=i.get("textGap"),a=i.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=i.itemSize,f=this._getViewData(),h=f.endsText,c=Gr(i.get("showLabel",!0),!h),v=!i.get("selectedMode");h&&this._renderEndsText(e,h[0],u,c,l),T(f.viewPieceList,function(p){var d=p.piece,g=new nt;g.onclick=U(this._onItemClick,this,d),this._enableHoverLink(g,p.indexInModelPieceList);var y=i.getRepresentValue(d);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]],v),c){var m=this.visualMapModel.getValueState(y);g.add(new dt({style:{x:l==="right"?-n:u[0]+n,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1},silent:v}))}e.add(g)},this),h&&this._renderEndsText(e,h[1],u,c,l),pn(i.get("orient"),e,i.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,i){var n=this;e.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:ml(s.findTargetDataIndices(i),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,i=e.option;if(i.orient==="vertical")return CT(e,this.api,e.itemSize);var n=i.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,i,n,a,o){if(i){var s=new nt,l=this.visualMapModel.textStyleModel;s.add(new dt({style:kt(l,{x:a?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:a?o:"center",text:i})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,i=V(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),a=e.get("orient"),o=e.get("inverse");return(a==="horizontal"?o:!o)?i.reverse():n&&(n=n.slice().reverse()),{viewPieceList:i,endsText:n}},t.prototype._createItemSymbol=function(e,i,n,a){var o=Xt(this.getControllerVisual(i,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(i,"color"));o.silent=a,e.add(o)},t.prototype._onItemClick=function(e){var i=this.visualMapModel,n=i.option,a=n.selectedMode;if(a){var o=q(n.selected),s=i.getSelectedMapKey(e);a==="single"||a===!0?(o[s]=!0,T(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(TT);function vV(r){r.registerComponentModel(uV),r.registerComponentView(hV),AT(r)}function cV(r){Ht(lV),Ht(vV)}var pV={label:{enabled:!0},decal:{show:!1}},D_=xt(),dV={};function gV(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var i=q(pV);et(i.label,r.getLocaleModel().get("aria"),!1),et(e.option,i,!1),n(),a();function n(){var u=e.getModel("decal"),f=u.get("show");if(f){var h=Y();r.eachSeries(function(c){if(!c.isColorBySeries()){var v=h.get(c.type);v||(v={},h.set(c.type,v)),D_(c).scope=v}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(j(c.enableAriaDecal)){c.enableAriaDecal();return}var v=c.getData();if(c.isColorBySeries()){var m=Dg(c.ecModel,c.name,dV,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",S(_,m))}else{var p=c.getRawData(),d={},g=D_(c).scope;v.each(function(b){var x=v.getRawIndex(b);d[x]=b});var y=p.count();p.each(function(b){var x=d[b],w=p.getName(b)||b+"",C=Dg(c.ecModel,w,g,y),A=v.getItemVisual(x,"decal");v.setItemVisual(x,"decal",S(A,C))})}function S(b,x){var w=b?O(O({},x),b):x;return w.dirty=!0,w}})}}function a(){var u=t.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),h=e.getModel("label");if(h.option=K(h.option,f),!!h.get("enabled")){if(u.setAttribute("role","img"),h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var c=r.getSeriesCount(),v=h.get(["data","maxCount"])||10,p=h.get(["series","maxCount"])||10,d=Math.min(c,p),g;if(!(c<1)){var y=s();if(y){var m=h.get(["general","withTitle"]);g=o(m,{title:y})}else g=h.get(["general","withoutTitle"]);var _=[],S=c>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);g+=o(S,{seriesCount:c}),r.eachSeries(function(C,A){if(A<d){var M=void 0,D=C.get("name"),P=D?"withName":"withoutName";M=c>1?h.get(["series","multiple",P]):h.get(["series","single",P]),M=o(M,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var L=C.getData();if(L.count()>v){var I=h.get(["data","partialData"]);M+=o(I,{displayCnt:v})}else M+=h.get(["data","allData"]);for(var R=h.get(["data","separator","middle"]),k=h.get(["data","separator","end"]),F=h.get(["data","excludeDimensionId"]),B=[],N=0;N<L.count();N++)if(N<v){var H=L.getName(N),$=F?wt(L.getValues(N),function(lt,ct){return ut(F,ct)===-1}):L.getValues(N),X=h.get(["data",H?"withName":"withoutName"]);B.push(o(X,{name:H,value:$.join(R)}))}M+=B.join(R)+k,_.push(M)}});var b=h.getModel(["series","multiple","separator"]),x=b.get("middle"),w=b.get("end");g+=_.join(x)+w,u.setAttribute("aria-label",g)}}}}function o(u,f){if(!G(u))return u;var h=u;return T(f,function(c,v){h=h.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),c)}),h}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var f=r.getLocaleModel().get(["series","typeNames"]);return f[u]||f.chart}}function yV(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},T(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function mV(r){r.registerPreprocessor(yV),r.registerVisual(r.PRIORITY.VISUAL.ARIA,gV)}var Ph=Math.sin,Ih=Math.cos,MT=Math.PI,qi=Math.PI*2,_V=180/MT,DT=function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){this._add("C",t,e,i,n,a,o)},r.prototype.quadraticCurveTo=function(t,e,i,n){this._add("Q",t,e,i,n)},r.prototype.arc=function(t,e,i,n,a,o){this.ellipse(t,e,i,i,0,n,a,o)},r.prototype.ellipse=function(t,e,i,n,a,o,s,l){var u=s-o,f=!l,h=Math.abs(u),c=hi(h-qi)||(f?u>=qi:-u>=qi),v=u>0?u%qi:u%qi+qi,p=!1;c?p=!0:hi(h)?p=!1:p=v>=MT==!!f;var d=t+i*Ih(o),g=e+n*Ph(o);this._start&&this._add("M",d,g);var y=Math.round(a*_V);if(c){var m=1/this._p,_=(f?1:-1)*(qi-m);this._add("A",i,n,y,1,+f,t+i*Ih(o+_),e+n*Ph(o+_)),m>.01&&this._add("A",i,n,y,0,+f,d,g)}else{var S=t+i*Ih(s),b=e+n*Ph(s);this._add("A",i,n,y,+p,+f,S,b)}},r.prototype.rect=function(t,e,i,n){this._add("M",t,e),this._add("l",i,0),this._add("l",0,n),this._add("l",-i,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,i,n,a,o,s,l,u){for(var f=[],h=this._p,c=1;c<arguments.length;c++){var v=arguments[c];if(isNaN(v)){this._invalid=!0;return}f.push(Math.round(v*h)/h)}this._d.push(t+f.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r}(),jp="none",SV=Math.round;function xV(r){var t=r.fill;return t!=null&&t!==jp}function bV(r){var t=r.stroke;return t!=null&&t!==jp}var rc=["lineCap","miterLimit","lineJoin"],wV=V(rc,function(r){return"stroke-"+r.toLowerCase()});function TV(r,t,e,i){var n=t.opacity==null?1:t.opacity;if(e instanceof ae){r("opacity",n);return}if(xV(t)){var a=Ao(t.fill);r("fill",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*n:a.opacity*n;o<1&&r("fill-opacity",o)}else r("fill",jp);if(bV(t)){var s=Ao(t.stroke);r("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,f=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*n:s.opacity*n,h=t.strokeFirst;if(u!==1&&r("stroke-width",u),h&&r("paint-order",h?"stroke":"fill"),f<1&&r("stroke-opacity",f),t.lineDash){var c=lp(e),v=c[0],p=c[1];v&&(p=SV(p||0),r("stroke-dasharray",v.join(",")),(p||i)&&r("stroke-dashoffset",p))}for(var d=0;d<rc.length;d++){var g=rc[d];if(t[g]!==Ll[g]){var y=t[g]||Ll[g];y&&r(wV[d],y)}}}}var LT="http://www.w3.org/2000/svg",PT="http://www.w3.org/1999/xlink",CV="http://www.w3.org/2000/xmlns/",AV="http://www.w3.org/XML/1998/namespace",L_="ecmeta_";function IT(r){return document.createElementNS(LT,r)}function Nt(r,t,e,i,n){return{tag:r,attrs:e||{},children:i,text:n,key:t}}function MV(r,t){var e=[];if(t)for(var i in t){var n=t[i],a=i;n!==!1&&(n!==!0&&n!=null&&(a+='="'+n+'"'),e.push(a))}return"<"+r+" "+e.join(" ")+">"}function DV(r){return"</"+r+">"}function Jp(r,t){t=t||{};var e=t.newline?`
  48. `:"";function i(n){var a=n.children,o=n.tag,s=n.attrs,l=n.text;return MV(o,s)+(o!=="style"?te(l):l||"")+(a?""+e+V(a,function(u){return i(u)}).join(e)+e:"")+DV(o)}return i(r)}function LV(r,t,e){e=e||{};var i=e.newline?`
  49. `:"",n=" {"+i,a=i+"}",o=V(st(r),function(l){return l+n+V(st(r[l]),function(u){return u+":"+r[l][u]+";"}).join(i)+a}).join(i),s=V(st(t),function(l){return"@keyframes "+l+n+V(st(t[l]),function(u){return u+n+V(st(t[l][u]),function(f){var h=t[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(i)+a}).join(i)+a}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function ic(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function P_(r,t,e,i){return Nt("svg","root",{width:r,height:t,xmlns:LT,"xmlns:xlink":PT,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+r+" "+t:!1},e)}var PV=0;function RT(){return PV++}var I_={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"},Ji="transform-origin";function IV(r,t,e){var i=O({},r.shape);O(i,t),r.buildPath(e,i);var n=new DT;return n.reset(w1(r)),e.rebuildPath(n,1),n.generateStr(),n.getStr()}function RV(r,t){var e=t.originX,i=t.originY;(e||i)&&(r[Ji]=e+"px "+i+"px")}var EV={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function ET(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function kV(r,t,e){var i=r.shape.paths,n={},a,o;if(T(i,function(l){var u=ic(e.zrId);u.animation=!0,Uu(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,c=st(f),v=c.length;if(v){o=c[v-1];var p=f[o];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){t.d=!1;var s=ET(n,e);return a.replace(o,s)}}function R_(r){return G(r)?I_[r]?"cubic-bezier("+I_[r]+")":gc(r)?r:"":""}function Uu(r,t,e,i){var n=r.animators,a=n.length,o=[];if(r instanceof yu){var s=kV(r,t,e);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=n[u],h=[f.getMaxTime()/1e3+"s"],c=R_(f.getClip().easing),v=f.getDelay();c?h.push(c):h.push("linear"),v&&h.push(v/1e3+"s"),f.getLoop()&&h.push("infinite");var p=h.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(f)}function d(m){var _=m[1],S=_.length,b={},x={},w={},C="animation-timing-function";function A(Vt,Lt,At){for(var tt=Vt.getTracks(),ht=Vt.getMaxTime(),de=0;de<tt.length;de++){var Pt=tt[de];if(Pt.needsAnimate()){var Ye=Pt.keyframes,ge=Pt.propName;if(At&&(ge=At(ge)),ge)for(var Pr=0;Pr<Ye.length;Pr++){var Dn=Ye[Pr],Xe=Math.round(Dn.time/ht*100)+"%",ss=R_(Dn.easing),Jr=Dn.rawValue;(G(Jr)||yt(Jr))&&(Lt[Xe]=Lt[Xe]||{},Lt[Xe][ge]=Dn.rawValue,ss&&(Lt[Xe][C]=ss))}}}}for(var M=0;M<S;M++){var D=_[M],P=D.targetName;P?P==="shape"&&A(D,x):!i&&A(D,b)}for(var L in b){var I={};D1(I,r),O(I,b[L]);var R=T1(I),k=b[L][C];w[L]=R?{transform:R}:{},RV(w[L],I),k&&(w[L][C]=k)}var F,B=!0;for(var L in x){w[L]=w[L]||{};var N=!F,k=x[L][C];N&&(F=new Xr);var H=F.len();F.reset(),w[L].d=IV(r,x[L],F);var $=F.len();if(!N&&H!==$){B=!1;break}k&&(w[L][C]=k)}if(!B)for(var L in w)delete w[L].d;if(!i)for(var M=0;M<S;M++){var D=_[M],P=D.targetName;P==="style"&&A(D,w,function(tt){return EV[tt]})}for(var X=st(w),lt=!0,ct,M=1;M<X.length;M++){var mt=X[M-1],$t=X[M];if(w[mt][Ji]!==w[$t][Ji]){lt=!1;break}ct=w[mt][Ji]}if(lt&&ct){for(var L in w)w[L][Ji]&&delete w[L][Ji];t[Ji]=ct}if(wt(X,function(Vt){return st(w[Vt]).length>0}).length){var pe=ET(w,e);return pe+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=e.zrId+"-cls-"+RT();e.cssNodes["."+y]={animation:o.join(",")},t.class=y}}function OV(r,t,e){if(!r.ignore)if(r.isSilent()){var i={"pointer-events":"none"};E_(i,t,e)}else{var n=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},a=n.fill;if(!a){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(a=Cl(l))}var u=n.lineWidth;if(u){var f=!n.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var i={cursor:"pointer"};a&&(i.fill=a),n.stroke&&(i.stroke=n.stroke),u&&(i["stroke-width"]=u),E_(i,t,e)}}function E_(r,t,e,i){var n=JSON.stringify(r),a=e.cssStyleCache[n];a||(a=e.zrId+"-cls-"+RT(),e.cssStyleCache[n]=a,e.cssNodes["."+a+":hover"]=r),t.class=t.class?t.class+" "+a:a}var Yo=Math.round;function kT(r){return r&&G(r.src)}function OT(r){return r&&j(r.toDataURL)}function Qp(r,t,e,i){TV(function(n,a){var o=n==="fill"||n==="stroke";o&&b1(a)?NT(t,r,n,i):o&&mc(a)?zT(e,r,n,i):r[n]=a,o&&i.ssr&&a==="none"&&(r["pointer-events"]="visible")},t,e,!1),HV(e,r,i)}function td(r,t){var e=I1(t);e&&(e.each(function(i,n){i!=null&&(r[(L_+n).toLowerCase()]=i+"")}),t.isSilent()&&(r[L_+"silent"]="true"))}function k_(r){return hi(r[0]-1)&&hi(r[1])&&hi(r[2])&&hi(r[3]-1)}function BV(r){return hi(r[4])&&hi(r[5])}function ed(r,t,e){if(t&&!(BV(t)&&k_(t))){var i=1e4;r.transform=k_(t)?"translate("+Yo(t[4]*i)/i+" "+Yo(t[5]*i)/i+")":vA(t)}}function O_(r,t,e){for(var i=r.points,n=[],a=0;a<i.length;a++)n.push(Yo(i[a][0]*e)/e),n.push(Yo(i[a][1]*e)/e);t.points=n.join(" ")}function B_(r){return!r.smooth}function NV(r){var t=V(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,i,n){for(var a=0;a<t.length;a++){var o=t[a],s=e[o[0]];s!=null&&(i[o[1]]=Yo(s*n)/n)}}}var zV={circle:[NV(["cx","cy","r"])],polyline:[O_,B_],polygon:[O_,B_]};function VV(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function BT(r,t){var e=r.style,i=r.shape,n=zV[r.type],a={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&w1(r)||4;if(n&&!t.willUpdate&&!(n[1]&&!n[1](i))&&!(o&&VV(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);n[0](i,a,f)}else{var h=!r.path||r.shapeChanged();r.path||r.createPathProxy();var c=r.path;h&&(c.beginPath(),r.buildPath(c,r.shape),r.pathUpdated());var v=c.getVersion(),p=r,d=p.__svgPathBuilder;(p.__svgPathVersion!==v||!d||l!==p.__svgPathStrokePercent)&&(d||(d=p.__svgPathBuilder=new DT),d.reset(u),c.rebuildPath(d,l),d.generateStr(),p.__svgPathVersion=v,p.__svgPathStrokePercent=l),a.d=d.getStr()}return ed(a,r.transform),Qp(a,e,r,t),td(a,r),t.animation&&Uu(r,a,t),t.emphasis&&OV(r,a,t),Nt(s,r.id+"",a)}function FV(r,t){var e=r.style,i=e.image;if(i&&!G(i)&&(kT(i)?i=i.src:OT(i)&&(i=i.toDataURL())),!!i){var n=e.x||0,a=e.y||0,o=e.width,s=e.height,l={href:i,width:o,height:s};return n&&(l.x=n),a&&(l.y=a),ed(l,r.transform),Qp(l,e,r,t),td(l,r),t.animation&&Uu(r,l,t),Nt("image",r.id+"",l)}}function GV(r,t){var e=r.style,i=e.text;if(i!=null&&(i+=""),!(!i||isNaN(e.x)||isNaN(e.y))){var n=e.font||_i,a=e.x||0,o=pA(e.y||0,su(n),e.textBaseline),s=cA[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(rS(e)){var u="",f=e.fontStyle,h=eS(e.fontSize);if(!parseFloat(h))return;var c=e.fontFamily||W_,v=e.fontWeight;u+="font-size:"+h+";font-family:"+c+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+n;return i.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),ed(l,r.transform),Qp(l,e,r,t),td(l,r),t.animation&&Uu(r,l,t),Nt("text",r.id+"",l,void 0,i)}}function N_(r,t){if(r instanceof gt)return BT(r,t);if(r instanceof ae)return FV(r,t);if(r instanceof sa)return GV(r,t)}function HV(r,t,e){var i=r.style;if(dA(i)){var n=gA(r),a=e.shadowCache,o=a[n];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,h=i.shadowOffsetY||0,c=i.shadowBlur,v=Ao(i.shadowColor),p=v.opacity,d=v.color,g=c/2/l,y=c/2/u,m=g+" "+y;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=Nt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Nt("feDropShadow","",{dx:f/l,dy:h/u,stdDeviation:m,"flood-color":d,"flood-opacity":p})]),a[n]=o}t.filter=ou(o)}}function NT(r,t,e,i){var n=r[e],a,o={gradientUnits:n.global?"userSpaceOnUse":"objectBoundingBox"};if(S1(n))a="linearGradient",o.x1=n.x,o.y1=n.y,o.x2=n.x2,o.y2=n.y2;else if(x1(n))a="radialGradient",o.cx=Q(n.x,.5),o.cy=Q(n.y,.5),o.r=Q(n.r,.5);else return;for(var s=n.colorStops,l=[],u=0,f=s.length;u<f;++u){var h=Uh(s[u].offset)*100+"%",c=s[u].color,v=Ao(c),p=v.color,d=v.opacity,g={offset:h};g["stop-color"]=p,d<1&&(g["stop-opacity"]=d),l.push(Nt("stop",u+"",g))}var y=Nt(a,"",o,l),m=Jp(y),_=i.gradientCache,S=_[m];S||(S=i.zrId+"-g"+i.gradientIdx++,_[m]=S,o.id=S,i.defs[S]=Nt(a,S,o,l)),t[e]=ou(S)}function zT(r,t,e,i){var n=r.style[e],a=r.getBoundingRect(),o={},s=n.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",h;if(_1(n)){var c=n.imageWidth,v=n.imageHeight,p=void 0,d=n.image;if(G(d)?p=d:kT(d)?p=d.src:OT(d)&&(p=d.toDataURL()),typeof Image=="undefined"){var g="Image width/height must been given explictly in svg-ssr renderer.";ve(c,g),ve(v,g)}else if(c==null||v==null){var y=function(M,D){if(M){var P=M.elm,L=c||D.width,I=v||D.height;M.tag==="pattern"&&(u?(I=1,L/=a.width):f&&(L=1,I/=a.height)),M.attrs.width=L,M.attrs.height=I,P&&(P.setAttribute("width",L),P.setAttribute("height",I))}},m=Mc(p,null,r,function(M){l||y(x,M),y(h,M)});m&&m.width&&m.height&&(c=c||m.width,v=v||m.height)}h=Nt("image","img",{href:p,width:c,height:v}),o.width=c,o.height=v}else n.svgElement&&(h=q(n.svgElement),o.width=n.svgWidth,o.height=n.svgHeight);if(h){var _,S;l?_=S=1:u?(S=1,_=o.width/a.width):f?(_=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var b=T1(n);b&&(o.patternTransform=b);var x=Nt("pattern","",o,[h]),w=Jp(x),C=i.patternCache,A=C[w];A||(A=i.zrId+"-p"+i.patternIdx++,C[w]=A,o.id=A,x=i.defs[A]=Nt("pattern",A,o,[h])),t[e]=ou(A)}}function WV(r,t,e){var i=e.clipPathCache,n=e.defs,a=i[r.id];if(!a){a=e.zrId+"-c"+e.clipPathIdx++;var o={id:a};i[r.id]=a,n[a]=Nt("clipPath",a,o,[BT(r,e)])}t["clip-path"]=ou(a)}function z_(r){return document.createTextNode(r)}function en(r,t,e){r.insertBefore(t,e)}function V_(r,t){r.removeChild(t)}function F_(r,t){r.appendChild(t)}function VT(r){return r.parentNode}function FT(r){return r.nextSibling}function Rh(r,t){r.textContent=t}var G_=58,UV=120,YV=Nt("","");function nc(r){return r===void 0}function yr(r){return r!==void 0}function XV(r,t,e){for(var i={},n=t;n<=e;++n){var a=r[n].key;a!==void 0&&(i[a]=n)}return i}function oo(r,t){var e=r.key===t.key,i=r.tag===t.tag;return i&&e}function Xo(r){var t,e=r.children,i=r.tag;if(yr(i)){var n=r.elm=IT(i);if(rd(YV,r),z(e))for(t=0;t<e.length;++t){var a=e[t];a!=null&&F_(n,Xo(a))}else yr(r.text)&&!Z(r.text)&&F_(n,z_(r.text))}else r.elm=z_(r.text);return r.elm}function GT(r,t,e,i,n){for(;i<=n;++i){var a=e[i];a!=null&&en(r,Xo(a),t)}}function eu(r,t,e,i){for(;e<=i;++e){var n=t[e];if(n!=null)if(yr(n.tag)){var a=VT(n.elm);V_(a,n.elm)}else V_(r,n.elm)}}function rd(r,t){var e,i=t.elm,n=r&&r.attrs||{},a=t.attrs||{};if(n!==a){for(e in a){var o=a[e],s=n[e];s!==o&&(o===!0?i.setAttribute(e,""):o===!1?i.removeAttribute(e):e==="style"?i.style.cssText=o:e.charCodeAt(0)!==UV?i.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?i.setAttributeNS(CV,e,o):e.charCodeAt(3)===G_?i.setAttributeNS(AV,e,o):e.charCodeAt(5)===G_?i.setAttributeNS(PT,e,o):i.setAttribute(e,o))}for(e in n)e in a||i.removeAttribute(e)}}function ZV(r,t,e){for(var i=0,n=0,a=t.length-1,o=t[0],s=t[a],l=e.length-1,u=e[0],f=e[l],h,c,v,p;i<=a&&n<=l;)o==null?o=t[++i]:s==null?s=t[--a]:u==null?u=e[++n]:f==null?f=e[--l]:oo(o,u)?(Kn(o,u),o=t[++i],u=e[++n]):oo(s,f)?(Kn(s,f),s=t[--a],f=e[--l]):oo(o,f)?(Kn(o,f),en(r,o.elm,FT(s.elm)),o=t[++i],f=e[--l]):oo(s,u)?(Kn(s,u),en(r,s.elm,o.elm),s=t[--a],u=e[++n]):(nc(h)&&(h=XV(t,i,a)),c=h[u.key],nc(c)?en(r,Xo(u),o.elm):(v=t[c],v.tag!==u.tag?en(r,Xo(u),o.elm):(Kn(v,u),t[c]=void 0,en(r,v.elm,o.elm))),u=e[++n]);(i<=a||n<=l)&&(i>a?(p=e[l+1]==null?null:e[l+1].elm,GT(r,p,e,n,l)):eu(r,t,i,a))}function Kn(r,t){var e=t.elm=r.elm,i=r.children,n=t.children;r!==t&&(rd(r,t),nc(t.text)?yr(i)&&yr(n)?i!==n&&ZV(e,i,n):yr(n)?(yr(r.text)&&Rh(e,""),GT(e,null,n,0,n.length-1)):yr(i)?eu(e,i,0,i.length-1):yr(r.text)&&Rh(e,""):r.text!==t.text&&(yr(i)&&eu(e,i,0,i.length-1),Rh(e,t.text)))}function $V(r,t){if(oo(r,t))Kn(r,t);else{var e=r.elm,i=VT(e);Xo(t),i!==null&&(en(i,t.elm,FT(e)),eu(i,[r],0,0))}return t}var qV=0,KV=function(){function r(t,e,i){if(this.type="svg",this.refreshHover=H_(),this.configLayer=H_(),this.storage=e,this._opts=i=O({},i),this.root=t,this._id="zr"+qV++,this._oldVNode=P_(i.width,i.height),t&&!i.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=IT("svg");rd(null,this._oldVNode),n.appendChild(a),t.appendChild(n)}this.resize(i.width,i.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",$V(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return N_(t,ic(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),i=this._width,n=this._height,a=ic(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=jV(i,n,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=Nt("g","main",{},[]);this._paintList(e,a,l?l.children:o),l&&o.push(l);var u=V(st(a.defs),function(c){return a.defs[c]});if(u.length&&o.push(Nt("defs","defs",{},u)),t.animation){var f=LV(a.cssNodes,a.cssAnims,{newline:!0});if(f){var h=Nt("style","stl",{},[],f);o.push(h)}}return P_(i,n,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},Jp(this.renderToVNode({animation:Q(t.cssAnimation,!0),emphasis:Q(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Q(t.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,i){for(var n=t.length,a=[],o=0,s,l,u=0,f=0;f<n;f++){var h=t[f];if(!h.invisible){var c=h.__clipPaths,v=c&&c.length||0,p=l&&l.length||0,d=void 0;for(d=Math.max(v-1,p-1);d>=0&&!(c&&l&&c[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=a[o-1];for(var y=d+1;y<v;y++){var m={};WV(c[y],m,e);var _=Nt("g","clip-g-"+u++,m,[]);(s?s.children:i).push(_),a[o++]=_,s=_}l=c;var S=N_(h,e);S&&(s?s.children:i).push(S)}}},r.prototype.resize=function(t,e){var i=this._opts,n=this.root,a=this._viewport;if(t!=null&&(i.width=t),e!=null&&(i.height=e),n&&a&&(a.style.display="none",t=fy(n,0,i),e=fy(n,1,i),a.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,a){var o=a.style;o.width=t+"px",o.height=e+"px"}if(mc(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(t){var e=this.renderToString(),i="data:image/svg+xml;";return t?(e=mA(e),e&&i+"base64,"+e):i+"charset=UTF-8,"+encodeURIComponent(e)},r}();function H_(r){return function(){}}function jV(r,t,e,i){var n;if(e&&e!=="none")if(n=Nt("rect","bg",{width:r,height:t,x:"0",y:"0"}),b1(e))NT({fill:e},n.attrs,"fill",i);else if(mc(e))zT({style:{fill:e},dirty:Ft,getBoundingRect:function(){return{width:r,height:t}}},n.attrs,"fill",i);else{var a=Ao(e),o=a.color,s=a.opacity;n.attrs.fill=o,s<1&&(n.attrs["fill-opacity"]=s)}return n}function JV(r){r.registerPainter("svg",KV)}Ht([Cz,az,tz,uN,ON,mV,yB,NE,bE,ZE,DO,zk,JV,DB,uw,O5,Yz,cV,dz,VN,$N,Dk]);function gF(r,t="default"){const{getDarkMode:e}=YT(),{getCollapsed:i}=XT(),n=sd(()=>t==="default"?e.value:t);let a=null,o=c;const s=jT({});let l=()=>{};o=KT(c,200);const u=sd(()=>n.value!=="dark"?s.value:od({backgroundColor:"transparent"},s.value));function f(p=t){const d=Ln(r);if(!d||!Ln(d))return;a=Xy.init(d,p);const{removeEvent:g}=$T({el:window,name:"resize",listener:o});l=g,new ResizeObserver(o).observe(d);const{widthRef:m,screenEnum:_}=qT();(Ln(m)<=_.MD||d.offsetHeight===0)&&ls(()=>{o()},30)}function h(p,d=!0){return s.value=p,new Promise(g=>{var y;((y=Ln(r))==null?void 0:y.offsetHeight)===0&&ls(()=>{h(Ln(u)),g(null)},50),JT(()=>{ls(()=>{!a&&(f(n.value),!a)||(d&&(a==null||a.clear()),a==null||a.setOption(Ln(u)),g(null))},30)})})}function c(){a==null||a.resize({animation:{duration:300,easing:"quadraticIn"}})}ld(()=>n.value,p=>{a&&(a.dispose(),f(p),h(s.value))}),ld(i,p=>{ls(()=>{o()},300)}),ZT(()=>{a&&(l(),a.dispose(),a=null)});function v(){return a||f(n.value),a}return{setOptions:h,resize:c,echarts:Xy,getInstance:v}}export{G as $,Gk as A,ft as B,Hk as C,zt as D,J_ as E,av as F,nt as G,cu as H,Lo as I,gu as J,K,fa as L,Ic as M,vt as N,ve as O,gt as P,O as Q,fw as R,Cp as S,rn as T,V as U,mw as V,z as W,ee as X,_p as Y,ku as Z,E as _,QR as a,tw as a$,St as a0,Ar as a1,Yt as a2,TO as a3,Ft as a4,Dg as a5,Y as a6,Mt as a7,jc as a8,sF as a9,Qn as aA,t1 as aB,r1 as aC,tl as aD,wn as aE,e1 as aF,vc as aG,SC as aH,_C as aI,Q_ as aJ,Tt as aK,re as aL,He as aM,Rt as aN,la as aO,ua as aP,sp as aQ,Iu as aR,Xt as aS,xu as aT,Tl as aU,Jt as aV,un as aW,zb as aX,Zt as aY,ns as aZ,Mu as a_,sr as aa,dt as ab,nS as ac,kt as ad,xi as ae,mp as af,U as ag,Wr as ah,Ce as ai,dc as aj,Ag as ak,lv as al,Ec as am,AD as an,oa as ao,Kr as ap,jr as aq,hc as ar,Yr as as,pt as at,nl as au,m1 as av,Ut as aw,Gr as ax,JA as ay,yt as az,tE as b,be as b$,Dl as b0,GL as b1,j1 as b2,tm as b3,or as b4,hD as b5,ae as b6,l2 as b7,Dp as b8,Rl as b9,bd as bA,kn as bB,WM as bC,Z_ as bD,Si as bE,Ap as bF,uE as bG,Bt as bH,Gl as bI,no as bJ,Mo as bK,Pl as bL,Wh as bM,IB as bN,Fu as bO,yg as bP,pF as bQ,W as bR,hF as bS,LS as bT,mu as bU,Nc as bV,HB as bW,yh as bX,Xv as bY,LB as bZ,PB as b_,De as ba,Po as bb,rt as bc,$S as bd,Jb as be,Ur as bf,bo as bg,Ht as bh,yB as bi,ts as bj,rF as bk,xI as bl,O2 as bm,Sa as bn,Sr as bo,tM as bp,we as bq,ue as br,ap as bs,Ub as bt,Z as bu,r2 as bv,zr as bw,Mp as bx,GC as by,xl as bz,jR as c,Xr as c$,Su as c0,bk as c1,os as c2,xk as c3,Io as c4,ze as c5,ot as c6,as as c7,fr as c8,Vu as c9,xr as cA,_D as cB,lS as cC,Dx as cD,ub as cE,ne as cF,lF as cG,uF as cH,pC as cI,yL as cJ,lr as cK,IL as cL,fF as cM,Fr as cN,yC as cO,fn as cP,ar as cQ,Id as cR,iu as cS,uy as cT,cC as cU,py as cV,bv as cW,Ex as cX,Fh as cY,uc as cZ,fy as c_,va as ca,Kw as cb,UB as cc,Qw as cd,$w as ce,YB as cf,tT as cg,Gp as ch,Fo as ci,Ct as cj,Fy as ck,n2 as cl,q as cm,r_ as cn,dF as co,cT as cp,is as cq,Tw as cr,ez as cs,et as ct,Qe as cu,Za as cv,it as cw,sx as cx,cl as cy,wi as cz,JR as d,wl as d0,nF as d1,el as d2,Oc as d3,WL as d4,aF as d5,JV as d6,bE as d7,NE as d8,ZE as d9,Dk as da,zk as db,DO as dc,DB as dd,uN as de,ON as df,MO as dg,VN as dh,$N as di,O5 as dj,tz as dk,az as dl,dz as dm,Cz as dn,Yz as dp,Oz as dq,Uz as dr,cV as ds,lV as dt,vV as du,mV as dv,eb as dw,T as e,wt as f,at as g,eE as h,j as i,vF as j,st as k,yo as l,xt as m,vi as n,es as o,J as p,ie as q,Q as r,cF as s,ut as t,gF as u,Dt as v,oF as w,ce as x,iF as y,vw as z};