1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import{d as ZO,ag as uM,Y as jO,K as ph,r as hM,L as qO,aw as KO,l as JO,a as Dn,ax as $O,ay as QO,o as eR,c as tR,Z as nR,au as iR,a0 as rR,az as cM,_ as oR,__tla as aR}from"./index-11e4820e.js";let pM,og,sR=Promise.all([(()=>{try{return aR}catch{}})()]).then(async()=>{var dh=function(n,t){return dh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])},dh(n,t)};function V(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=n}dh(n,t),n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var dM=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Fi=new function(){this.browser=new dM,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<"u"};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Fi.wxa=!0,Fi.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Fi.worker=!0:typeof navigator>"u"?(Fi.node=!0,Fi.svgSupported=!0):function(n,t){var e=t.browser,i=n.match(/Firefox\/([\d.]+)/),r=n.match(/MSIE\s([\d.]+)/)||n.match(/Trident\/.+?rv:(([\d.]+))/),o=n.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(n);i&&(e.firefox=!0,e.version=i[1]),r&&(e.ie=!0,e.version=r[1]),o&&(e.edge=!0,e.version=o[1],e.newEdge=+o[1].split(".")[0]>18),a&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",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<"u";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}(navigator.userAgent,Fi);const xe=Fi;var Gi="12px sans-serif",Vo,ag,fM=function(n){var t={};if(typeof JSON>"u")return t;for(var e=0;e<n.length;e++){var i=String.fromCharCode(e+32),r=(n.charCodeAt(e)-20)/100;t[i]=r}return t}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),qn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(n,t){if(!Vo){var e=qn.createCanvas();Vo=e&&e.getContext("2d")}if(Vo)return ag!==t&&(ag=Vo.font=t||Gi),Vo.measureText(n);n=n||"";var i=/(\d+)px/.exec(t=t||Gi),r=i&&+i[1]||12,o=0;if(t.indexOf("mono")>=0)o=r*n.length;else for(var a=0;a<n.length;a++){var s=fM[n[a]];o+=s==null?r:s*r}return{width:o}},loadImage:function(n,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=n,i}};function sg(n){for(var t in qn)n[t]&&(qn[t]=n[t])}var lg=gn(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(n,t){return n["[object "+t+"]"]=!0,n},{}),ug=gn(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(n,t){return n["[object "+t+"Array]"]=!0,n},{}),Fr=Object.prototype.toString,_s=Array.prototype,gM=_s.forEach,yM=_s.filter,fh=_s.slice,vM=_s.map,hg=(function(){}).constructor,ws=hg?hg.prototype:null,gh="__proto__",mM=2311;function yh(){return mM++}function Hi(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];typeof console<"u"&&console.error.apply(console,n)}function oe(n){if(n==null||typeof n!="object")return n;var t=n,e=Fr.call(n);if(e==="[object Array]"){if(!Hr(n)){t=[];for(var i=0,r=n.length;i<r;i++)t[i]=oe(n[i])}}else if(ug[e]){if(!Hr(n)){var o=n.constructor;if(o.from)t=o.from(n);else for(t=new o(n.length),i=0,r=n.length;i<r;i++)t[i]=n[i]}}else if(!lg[e]&&!Hr(n)&&!Wi(n))for(var a in t={},n)n.hasOwnProperty(a)&&a!==gh&&(t[a]=oe(n[a]));return t}function pe(n,t,e){if(!Q(t)||!Q(n))return e?oe(t):n;for(var i in t)if(t.hasOwnProperty(i)&&i!==gh){var r=n[i],o=t[i];!Q(o)||!Q(r)||Y(o)||Y(r)||Wi(o)||Wi(r)||mh(o)||mh(r)||Hr(o)||Hr(r)?!e&&i in n||(n[i]=oe(t[i])):pe(r,o,e)}return n}function cg(n,t){for(var e=n[0],i=1,r=n.length;i<r;i++)e=pe(e,n[i],t);return e}function G(n,t){if(Object.assign)Object.assign(n,t);else for(var e in t)t.hasOwnProperty(e)&&e!==gh&&(n[e]=t[e]);return n}function le(n,t,e){for(var i=Oe(t),r=0;r<i.length;r++){var o=i[r];(e?t[o]!=null:n[o]==null)&&(n[o]=t[o])}return n}var xM=qn.createCanvas;function Se(n,t){if(n){if(n.indexOf)return n.indexOf(t);for(var e=0,i=n.length;e<i;e++)if(n[e]===t)return e}return-1}function vh(n,t){var e=n.prototype;function i(){}for(var r in i.prototype=t.prototype,n.prototype=new i,e)e.hasOwnProperty(r)&&(n.prototype[r]=e[r]);n.prototype.constructor=n,n.superClass=t}function ct(n,t,e){if(n="prototype"in n?n.prototype:n,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),r=0;r<i.length;r++){var o=i[r];o!=="constructor"&&(e?t[o]!=null:n[o]==null)&&(n[o]=t[o])}else le(n,t,e)}function vt(n){return!!n&&typeof n!="string"&&typeof n.length=="number"}function A(n,t,e){if(n&&t)if(n.forEach&&n.forEach===gM)n.forEach(t,e);else if(n.length===+n.length)for(var i=0,r=n.length;i<r;i++)t.call(e,n[i],i,n);else for(var o in n)n.hasOwnProperty(o)&&t.call(e,n[o],o,n)}function X(n,t,e){if(!n)return[];if(!t)return bs(n);if(n.map&&n.map===vM)return n.map(t,e);for(var i=[],r=0,o=n.length;r<o;r++)i.push(t.call(e,n[r],r,n));return i}function gn(n,t,e,i){if(n&&t){for(var r=0,o=n.length;r<o;r++)e=t.call(i,e,n[r],r,n);return e}}function We(n,t,e){if(!n)return[];if(!t)return bs(n);if(n.filter&&n.filter===yM)return n.filter(t,e);for(var i=[],r=0,o=n.length;r<o;r++)t.call(e,n[r],r,n)&&i.push(n[r]);return i}function pg(n,t,e){if(n&&t){for(var i=0,r=n.length;i<r;i++)if(t.call(e,n[i],i,n))return n[i]}}function Oe(n){if(!n)return[];if(Object.keys)return Object.keys(n);var t=[];for(var e in n)n.hasOwnProperty(e)&&t.push(e);return t}var ne=ws&&ae(ws.bind)?ws.call.bind(ws.bind):function(n,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return n.apply(t,e.concat(fh.call(arguments)))}};function ve(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return n.apply(this,t.concat(fh.call(arguments)))}}function Y(n){return Array.isArray?Array.isArray(n):Fr.call(n)==="[object Array]"}function ae(n){return typeof n=="function"}function q(n){return typeof n=="string"}function Fo(n){return Fr.call(n)==="[object String]"}function Re(n){return typeof n=="number"}function Q(n){var t=typeof n;return t==="function"||!!n&&t==="object"}function mh(n){return!!lg[Fr.call(n)]}function mt(n){return!!ug[Fr.call(n)]}function Wi(n){return typeof n=="object"&&typeof n.nodeType=="number"&&typeof n.ownerDocument=="object"}function Go(n){return n.colorStops!=null}function dg(n){return n.image!=null}function fg(n){return Fr.call(n)==="[object RegExp]"}function Gr(n){return n!=n}function Yt(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];for(var e=0,i=n.length;e<i;e++)if(n[e]!=null)return n[e]}function Me(n,t){return n??t}function vi(n,t,e){return n??t??e}function bs(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return fh.apply(n,t)}function xh(n){if(typeof n=="number")return[n,n,n,n];var t=n.length;return t===2?[n[0],n[1],n[0],n[1]]:t===3?[n[0],n[1],n[2],n[1]]:n}function ue(n,t){if(!n)throw new Error(t)}function Xt(n){return n==null?null:typeof n.trim=="function"?n.trim():n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var gg="__ec_primitive__";function Ho(n){n[gg]=!0}function Hr(n){return n[gg]}var _M=function(){function n(){this.data={}}return n.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},n.prototype.has=function(t){return this.data.hasOwnProperty(t)},n.prototype.get=function(t){return this.data[t]},n.prototype.set=function(t,e){return this.data[t]=e,this},n.prototype.keys=function(){return Oe(this.data)},n.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},n}(),yg=typeof Map=="function",vg=function(){function n(t){var e=Y(t);this.data=yg?new Map:new _M;var i=this;function r(o,a){e?i.set(o,a):i.set(a,o)}t instanceof n?t.each(r):t&&A(t,r)}return n.prototype.hasKey=function(t){return this.data.has(t)},n.prototype.get=function(t){return this.data.get(t)},n.prototype.set=function(t,e){return this.data.set(t,e),e},n.prototype.each=function(t,e){this.data.forEach(function(i,r){t.call(e,i,r)})},n.prototype.keys=function(){var t=this.data.keys();return yg?Array.from(t):t},n.prototype.removeKey=function(t){this.data.delete(t)},n}();function ie(n){return new vg(n)}function _h(n,t){for(var e=new n.constructor(n.length+t.length),i=0;i<n.length;i++)e[i]=n[i];var r=n.length;for(i=0;i<t.length;i++)e[i+r]=t[i];return e}function Wo(n,t){var e;if(Object.create)e=Object.create(n);else{var i=function(){};i.prototype=n,e=new i}return t&&G(e,t),e}function wh(n){var t=n.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ut(n,t){return n.hasOwnProperty(t)}function st(){}var mg=180/Math.PI;const wM=Object.freeze(Object.defineProperty({__proto__:null,HashMap:vg,RADIAN_TO_DEGREE:mg,assert:ue,bind:ne,clone:oe,concatArray:_h,createCanvas:xM,createHashMap:ie,createObject:Wo,curry:ve,defaults:le,disableUserSelect:wh,each:A,eqNaN:Gr,extend:G,filter:We,find:pg,guid:yh,hasOwn:Ut,indexOf:Se,inherits:vh,isArray:Y,isArrayLike:vt,isBuiltInObject:mh,isDom:Wi,isFunction:ae,isGradientObject:Go,isImagePatternObject:dg,isNumber:Re,isObject:Q,isPrimitive:Hr,isRegExp:fg,isString:q,isStringSafe:Fo,isTypedArray:mt,keys:Oe,logError:Hi,map:X,merge:pe,mergeAll:cg,mixin:ct,noop:st,normalizeCssArray:xh,reduce:gn,retrieve:Yt,retrieve2:Me,retrieve3:vi,setAsPrimitive:Ho,slice:bs,trim:Xt},Symbol.toStringTag,{value:"Module"}));function Yi(n,t){return n==null&&(n=0),t==null&&(t=0),[n,t]}function xg(n,t){return n[0]=t[0],n[1]=t[1],n}function _g(n){return[n[0],n[1]]}function bh(n,t,e){return n[0]=t[0]+e[0],n[1]=t[1]+e[1],n}function wg(n,t,e){return n[0]=t[0]-e[0],n[1]=t[1]-e[1],n}function Sh(n){return Math.sqrt(Mh(n))}var bM=Sh;function Mh(n){return n[0]*n[0]+n[1]*n[1]}var SM=Mh;function Ss(n,t,e){return n[0]=t[0]*e,n[1]=t[1]*e,n}function bg(n,t){var e=Sh(t);return e===0?(n[0]=0,n[1]=0):(n[0]=t[0]/e,n[1]=t[1]/e),n}function Ms(n,t){return Math.sqrt((n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1]))}var Ts=Ms;function Sg(n,t){return(n[0]-t[0])*(n[0]-t[0])+(n[1]-t[1])*(n[1]-t[1])}var Xi=Sg;function Is(n,t,e,i){return n[0]=t[0]+i*(e[0]-t[0]),n[1]=t[1]+i*(e[1]-t[1]),n}function ot(n,t,e){var i=t[0],r=t[1];return n[0]=e[0]*i+e[2]*r+e[4],n[1]=e[1]*i+e[3]*r+e[5],n}function Kn(n,t,e){return n[0]=Math.min(t[0],e[0]),n[1]=Math.min(t[1],e[1]),n}function Jn(n,t,e){return n[0]=Math.max(t[0],e[0]),n[1]=Math.max(t[1],e[1]),n}const MM=Object.freeze(Object.defineProperty({__proto__:null,add:bh,applyTransform:ot,clone:_g,copy:xg,create:Yi,dist:Ts,distSquare:Xi,distance:Ms,distanceSquare:Sg,div:function(n,t,e){return n[0]=t[0]/e[0],n[1]=t[1]/e[1],n},dot:function(n,t){return n[0]*t[0]+n[1]*t[1]},len:Sh,lenSquare:Mh,length:bM,lengthSquare:SM,lerp:Is,max:Jn,min:Kn,mul:function(n,t,e){return n[0]=t[0]*e[0],n[1]=t[1]*e[1],n},negate:function(n,t){return n[0]=-t[0],n[1]=-t[1],n},normalize:bg,scale:Ss,scaleAndAdd:function(n,t,e,i){return n[0]=t[0]+e[0]*i,n[1]=t[1]+e[1]*i,n},set:function(n,t,e){return n[0]=t,n[1]=e,n},sub:wg},Symbol.toStringTag,{value:"Module"}));var Wr=function(n,t){this.target=n,this.topTarget=t&&t.topTarget},TM=function(){function n(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return n.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 Wr(e,t),"dragstart",t.event))},n.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,r=t.offsetY,o=i-this._x,a=r-this._y;this._x=i,this._y=r,e.drift(o,a,t),this.handler.dispatchToElement(new Wr(e,t),"drag",t.event);var s=this.handler.findHover(i,r,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Wr(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Wr(s,t),"dragenter",t.event))}},n.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Wr(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Wr(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},n}();const IM=TM;var CM=function(){function n(t){t&&(this._$eventProcessor=t)}return n.prototype.on=function(t,e,i,r){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof e=="function"&&(r=i,i=e,e=null),!i||!t)return this;var a=this._$eventProcessor;e!=null&&a&&a.normalizeQuery&&(e=a.normalizeQuery(e)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===i)return this;var l={h:i,query:e,ctx:r||this,callAtLast:i.zrEventfulCallAtLast},u=o[t].length-1,h=o[t][u];return h&&h.callAtLast?o[t].splice(u,0,l):o[t].push(l),this},n.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},n.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 r=[],o=0,a=i[t].length;o<a;o++)i[t][o].h!==e&&r.push(i[t][o]);i[t]=r}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},n.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var r=this._$handlers[t],o=this._$eventProcessor;if(r)for(var a=e.length,s=r.length,l=0;l<s;l++){var u=r[l];if(!o||!o.filter||u.query==null||o.filter(t,u.query))switch(a){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)}}return o&&o.afterTrigger&&o.afterTrigger(t),this},n.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var r=this._$handlers[t],o=this._$eventProcessor;if(r)for(var a=e.length,s=e[a-1],l=r.length,u=0;u<l;u++){var h=r[u];if(!o||!o.filter||h.query==null||o.filter(t,h.query))switch(a){case 0:h.h.call(s);break;case 1:h.h.call(s,e[0]);break;case 2:h.h.call(s,e[0],e[1]);break;default:h.h.apply(s,e.slice(1,a-1))}}return o&&o.afterTrigger&&o.afterTrigger(t),this},n}();const Zt=CM;var AM=Math.log(2);function Th(n,t,e,i,r,o){var a=i+"-"+r,s=n.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<<s)-1&~r)/AM);return n[e][l]}for(var u=i|1<<e,h=e+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<s;p++){var f=1<<p;f&r||(c+=(d%2?-1:1)*n[e][p]*Th(n,t-1,h,u,r|f,o),d++)}return o[a]=c,c}function Mg(n,t){var e=[[n[0],n[1],1,0,0,0,-t[0]*n[0],-t[0]*n[1]],[0,0,0,n[0],n[1],1,-t[1]*n[0],-t[1]*n[1]],[n[2],n[3],1,0,0,0,-t[2]*n[2],-t[2]*n[3]],[0,0,0,n[2],n[3],1,-t[3]*n[2],-t[3]*n[3]],[n[4],n[5],1,0,0,0,-t[4]*n[4],-t[4]*n[5]],[0,0,0,n[4],n[5],1,-t[5]*n[4],-t[5]*n[5]],[n[6],n[7],1,0,0,0,-t[6]*n[6],-t[6]*n[7]],[0,0,0,n[6],n[7],1,-t[7]*n[6],-t[7]*n[7]]],i={},r=Th(e,8,0,0,0,i);if(r!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*Th(e,7,a===0?1:0,1<<a,1<<s,i)/r*t[a];return function(l,u,h){var c=u*o[6]+h*o[7]+1;l[0]=(u*o[0]+h*o[1]+o[2])/c,l[1]=(u*o[3]+h*o[4]+o[5])/c}}}var Tg="___zrEVENTSAVED",Ih=[];function Ch(n,t,e,i,r){if(t.getBoundingClientRect&&xe.domSupported&&!Ig(t)){var o=t[Tg]||(t[Tg]={}),a=function(l,u){var h=u.markers;if(h)return h;h=u.markers=[];for(var c=["left","right"],p=["top","bottom"],d=0;d<4;d++){var f=document.createElement("div"),g=d%2,y=(d>>1)%2;f.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",c[g]+":0",p[y]+":0",c[1-g]+":auto",p[1-y]+":auto",""].join("!important;"),l.appendChild(f),h.push(f)}return h}(t,o),s=function(l,u,h){for(var c=h?"invTrans":"trans",p=u[c],d=u.srcCoords,f=[],g=[],y=!0,v=0;v<4;v++){var m=l[v].getBoundingClientRect(),x=2*v,_=m.left,b=m.top;f.push(_,b),y=y&&d&&_===d[x]&&b===d[x+1],g.push(l[v].offsetLeft,l[v].offsetTop)}return y&&p?p:(u.srcCoords=f,u[c]=h?Mg(g,f):Mg(f,g))}(a,o,r);if(s)return s(n,e,i),!0}return!1}function Ig(n){return n.nodeName.toUpperCase()==="CANVAS"}var DM=/([&<>"'])/g,kM={"&":"&","<":"<",">":">",'"':""","'":"'"};function Bt(n){return n==null?"":(n+"").replace(DM,function(t,e){return kM[e]})}var LM=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ah=[],PM=xe.browser.firefox&&+xe.browser.version.split(".")[0]<39;function Dh(n,t,e,i){return e=e||{},i?Cg(n,t,e):PM&&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):Cg(n,t,e),e}function Cg(n,t,e){if(xe.domSupported&&n.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(Ig(n)){var o=n.getBoundingClientRect();return e.zrX=i-o.left,void(e.zrY=r-o.top)}if(Ch(Ah,n,i,r))return e.zrX=Ah[0],void(e.zrY=Ah[1])}e.zrX=e.zrY=0}function kh(n){return n||window.event}function jt(n,t,e){if((t=kh(t)).zrX!=null)return t;var i=t.type;if(i&&i.indexOf("touch")>=0){var r=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];r&&Dh(n,r,t,e)}else{Dh(n,t,t,e);var o=function(s){var l=s.wheelDelta;if(l)return l;var u=s.deltaX,h=s.deltaY;return u==null||h==null?l:3*Math.abs(h!==0?h:u)*(h>0?-1:h<0?1:u>0?-1:1)}(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var a=t.button;return t.which==null&&a!==void 0&&LM.test(t.type)&&(t.which=1&a?1:2&a?3:4&a?2:0),t}function Lh(n,t,e,i){n.addEventListener(t,e,i)}var $n=function(n){n.preventDefault(),n.stopPropagation(),n.cancelBubble=!0};function Ag(n){return n.which===2||n.which===3}var OM=function(){function n(){this._track=[]}return n.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},n.prototype.clear=function(){return this._track.length=0,this},n.prototype._doTrack=function(t,e,i){var r=t.touches;if(r){for(var o={points:[],touches:[],target:e,event:t},a=0,s=r.length;a<s;a++){var l=r[a],u=Dh(i,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},n.prototype._recognize=function(t){for(var e in Ph)if(Ph.hasOwnProperty(e)){var i=Ph[e](this._track,t);if(i)return i}},n}();function Dg(n){var t=n[1][0]-n[0][0],e=n[1][1]-n[0][1];return Math.sqrt(t*t+e*e)}var Ph={pinch:function(n,t){var e=n.length;if(e){var i,r=(n[e-1]||{}).points,o=(n[e-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=Dg(r)/Dg(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:n[0].target,event:t}}}}};function RM(){return[1,0,0,1,0,0]}function Yo(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function Cs(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function kn(n,t,e){var i=t[0]*e[0]+t[2]*e[1],r=t[1]*e[0]+t[3]*e[1],o=t[0]*e[2]+t[2]*e[3],a=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 n[0]=i,n[1]=r,n[2]=o,n[3]=a,n[4]=s,n[5]=l,n}function Ui(n,t,e){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4]+e[0],n[5]=t[5]+e[1],n}function Zi(n,t,e){var i=t[0],r=t[2],o=t[4],a=t[1],s=t[3],l=t[5],u=Math.sin(e),h=Math.cos(e);return n[0]=i*h+a*u,n[1]=-i*u+a*h,n[2]=r*h+s*u,n[3]=-r*u+h*s,n[4]=h*o+u*l,n[5]=h*l-u*o,n}function Oh(n,t,e){var i=e[0],r=e[1];return n[0]=t[0]*i,n[1]=t[1]*r,n[2]=t[2]*i,n[3]=t[3]*r,n[4]=t[4]*i,n[5]=t[5]*r,n}function ji(n,t){var e=t[0],i=t[2],r=t[4],o=t[1],a=t[3],s=t[5],l=e*a-o*i;return l?(l=1/l,n[0]=a*l,n[1]=-o*l,n[2]=-i*l,n[3]=e*l,n[4]=(i*s-a*r)*l,n[5]=(o*r-e*s)*l,n):null}const EM=Object.freeze(Object.defineProperty({__proto__:null,clone:function(n){var t=[1,0,0,1,0,0];return Cs(t,n),t},copy:Cs,create:RM,identity:Yo,invert:ji,mul:kn,rotate:Zi,scale:Oh,translate:Ui},Symbol.toStringTag,{value:"Module"}));var NM=function(){function n(t,e){this.x=t||0,this.y=e||0}return n.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.set=function(t,e){return this.x=t,this.y=e,this},n.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},n.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},n.prototype.scale=function(t){this.x*=t,this.y*=t},n.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},n.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},n.prototype.dot=function(t){return this.x*t.x+this.y*t.y},n.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},n.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},n.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},n.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},n.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},n.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},n.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}},n.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},n.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},n.set=function(t,e,i){t.x=e,t.y=i},n.copy=function(t,e){t.x=e.x,t.y=e.y},n.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},n.lenSquare=function(t){return t.x*t.x+t.y*t.y},n.dot=function(t,e){return t.x*e.x+t.y*e.y},n.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},n.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},n.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},n.scaleAndAdd=function(t,e,i,r){t.x=e.x+i.x*r,t.y=e.y+i.y*r},n.lerp=function(t,e,i,r){var o=1-r;t.x=o*e.x+r*i.x,t.y=o*e.y+r*i.y},n}();const de=NM;var As=Math.min,Ds=Math.max,qi=new de,Ki=new de,Ji=new de,$i=new de,Xo=new de,Uo=new de,zM=function(){function n(t,e,i,r){i<0&&(t+=i,i=-i),r<0&&(e+=r,r=-r),this.x=t,this.y=e,this.width=i,this.height=r}return n.prototype.union=function(t){var e=As(t.x,this.x),i=As(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ds(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ds(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},n.prototype.applyTransform=function(t){n.applyTransform(this,this,t)},n.prototype.calculateTransform=function(t){var e=this,i=t.width/e.width,r=t.height/e.height,o=[1,0,0,1,0,0];return Ui(o,o,[-e.x,-e.y]),Oh(o,o,[i,r]),Ui(o,o,[t.x,t.y]),o},n.prototype.intersect=function(t,e){if(!t)return!1;t instanceof n||(t=n.create(t));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,h=t.y,c=t.y+t.height,p=!(o<l||u<r||s<h||c<a);if(e){var d=1/0,f=0,g=Math.abs(o-l),y=Math.abs(u-r),v=Math.abs(s-h),m=Math.abs(c-a),x=Math.min(g,y),_=Math.min(v,m);o<l||u<r?x>f&&(f=x,g<y?de.set(Uo,-g,0):de.set(Uo,y,0)):x<d&&(d=x,g<y?de.set(Xo,g,0):de.set(Xo,-y,0)),s<h||c<a?_>f&&(f=_,v<m?de.set(Uo,0,-v):de.set(Uo,0,m)):x<d&&(d=x,v<m?de.set(Xo,0,v):de.set(Xo,0,-m))}return e&&de.copy(e,p?Xo:Uo),p},n.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},n.prototype.clone=function(){return new n(this.x,this.y,this.width,this.height)},n.prototype.copy=function(t){n.copy(this,t)},n.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},n.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},n.prototype.isZero=function(){return this.width===0||this.height===0},n.create=function(t){return new n(t.x,t.y,t.width,t.height)},n.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},n.applyTransform=function(t,e,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return t.x=e.x*r+a,t.y=e.y*o+s,t.width=e.width*r,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}qi.x=Ji.x=e.x,qi.y=$i.y=e.y,Ki.x=$i.x=e.x+e.width,Ki.y=Ji.y=e.y+e.height,qi.transform(i),$i.transform(i),Ki.transform(i),Ji.transform(i),t.x=As(qi.x,Ki.x,Ji.x,$i.x),t.y=As(qi.y,Ki.y,Ji.y,$i.y);var l=Ds(qi.x,Ki.x,Ji.x,$i.x),u=Ds(qi.y,Ki.y,Ji.y,$i.y);t.width=l-t.x,t.height=u-t.y}else t!==e&&n.copy(t,e)},n}();const ye=zM;var kg="silent";function BM(){$n(this.event)}var VM=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.handler=null,e}return V(t,n),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Zt),Zo=function(n,t){this.x=n,this.y=t},FM=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Rh=new ye(0,0,0,0),Lg=function(n){function t(e,i,r,o,a){var s=n.call(this)||this;return s._hovered=new Zo(0,0),s.storage=e,s.painter=i,s.painterRoot=o,s._pointerSize=a,r=r||new VM,s.proxy=null,s.setHandlerProxy(r),s._draggingMgr=new IM(s),s}return V(t,n),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(A(FM,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,r=e.zrY,o=Og(this,i,r),a=this._hovered,s=a.target;s&&!s.__zr&&(s=(a=this.findHover(a.x,a.y)).target);var l=this._hovered=o?new Zo(i,r):this.findHover(i,r),u=l.target,h=this.proxy;h.setCursor&&h.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(a,"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 Zo(0,0)},t.prototype.dispatch=function(e,i){var r=this[e];r&&r.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,r){var o=(e=e||{}).target;if(!o||!o.silent){for(var a="on"+i,s=function(l,u,h){return{type:l,event:h,target:u.target,topTarget:u.topTarget,cancelBubble:!1,offsetX:h.zrX,offsetY:h.zrY,gestureEvent:h.gestureEvent,pinchX:h.pinchX,pinchY:h.pinchY,pinchScale:h.pinchScale,wheelDelta:h.zrDelta,zrByTouch:h.zrByTouch,which:h.which,stop:BM}}(i,e,r);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(i,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(i,s)}))}},t.prototype.findHover=function(e,i,r){var o=this.storage.getDisplayList(),a=new Zo(e,i);if(Pg(o,a,e,i,r),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,h=new ye(e-u,i-u,l,l),c=o.length-1;c>=0;c--){var p=o[c];p===r||p.ignore||p.ignoreCoarsePointer||p.parent&&p.parent.ignoreCoarsePointer||(Rh.copy(p.getBoundingRect()),p.transform&&Rh.applyTransform(p.transform),Rh.intersect(h)&&s.push(p))}if(s.length){for(var d=Math.PI/12,f=2*Math.PI,g=0;g<u;g+=4)for(var y=0;y<f;y+=d)if(Pg(s,a,e+g*Math.cos(y),i+g*Math.sin(y),r),a.target)return a}}return a},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new OM);var r=this._gestureMgr;i==="start"&&r.clear();var o=r.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&r.clear(),o){var a=o.type;e.gestureEvent=a;var s=new Zo;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t}(Zt);function GM(n,t,e){if(n[n.rectHover?"rectContain":"contain"](t,e)){for(var i=n,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(t,e))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||kg}return!1}function Pg(n,t,e,i,r){for(var o=n.length-1;o>=0;o--){var a=n[o],s=void 0;if(a!==r&&!a.ignore&&(s=GM(a,e,i))&&(!t.topTarget&&(t.topTarget=a),s!==kg)){t.target=a;break}}}function Og(n,t,e){var i=n.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}A(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(n){Lg.prototype[n]=function(t){var e,i,r=t.zrX,o=t.zrY,a=Og(this,r,o);if(n==="mouseup"&&a||(i=(e=this.findHover(r,o)).target),n==="mousedown")this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if(n==="mouseup")this._upEl=i;else if(n==="click"){if(this._downEl!==this._upEl||!this._downPoint||Ts(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(e,n,t)}});const HM=Lg;var Rg=32,jo=7;function Eg(n,t,e,i){var r=t+1;if(r===e)return 1;if(i(n[r++],n[t])<0){for(;r<e&&i(n[r],n[r-1])<0;)r++;(function(o,a,s){for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}})(n,t,r)}else for(;r<e&&i(n[r],n[r-1])>=0;)r++;return r-t}function Ng(n,t,e,i,r){for(i===t&&i++;i<e;i++){for(var o,a=n[i],s=t,l=i;s<l;)r(a,n[o=s+l>>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:n[s+3]=n[s+2];case 2:n[s+2]=n[s+1];case 1:n[s+1]=n[s];break;default:for(;u>0;)n[s+u]=n[s+u-1],u--}n[s]=a}}function Eh(n,t,e,i,r,o){var a=0,s=0,l=1;if(o(n,t[e+r])>0){for(s=i-r;l<s&&o(n,t[e+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(n,t[e+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var h=a+(l-a>>>1);o(n,t[e+h])>0?a=h+1:l=h}return l}function Nh(n,t,e,i,r,o){var a=0,s=0,l=1;if(o(n,t[e+r])<0){for(s=r+1;l<s&&o(n,t[e+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(n,t[e+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);o(n,t[e+h])<0?l=h:a=h+1}return l}function WM(n,t){var e,i,r=jo,o=0;n.length;var a=[];function s(l){var u=e[l],h=i[l],c=e[l+1],p=i[l+1];i[l]=h+p,l===o-3&&(e[l+1]=e[l+2],i[l+1]=i[l+2]),o--;var d=Nh(n[c],n,u,h,0,t);u+=d,(h-=d)!==0&&(p=Eh(n[u+h-1],n,c,p,p-1,t))!==0&&(h<=p?function(f,g,y,v){var m=0;for(m=0;m<g;m++)a[m]=n[f+m];var x=0,_=y,b=f;if(n[b++]=n[_++],--v==0){for(m=0;m<g;m++)n[b+m]=a[x+m];return}if(g===1){for(m=0;m<v;m++)n[b+m]=n[_+m];return void(n[b+v]=a[x])}for(var w,S,M,T=r;;){w=0,S=0,M=!1;do if(t(n[_],a[x])<0){if(n[b++]=n[_++],S++,w=0,--v==0){M=!0;break}}else if(n[b++]=a[x++],w++,S=0,--g==1){M=!0;break}while((w|S)<T);if(M)break;do{if((w=Nh(n[_],a,x,g,0,t))!==0){for(m=0;m<w;m++)n[b+m]=a[x+m];if(b+=w,x+=w,(g-=w)<=1){M=!0;break}}if(n[b++]=n[_++],--v==0){M=!0;break}if((S=Eh(a[x],n,_,v,0,t))!==0){for(m=0;m<S;m++)n[b+m]=n[_+m];if(b+=S,_+=S,(v-=S)===0){M=!0;break}}if(n[b++]=a[x++],--g==1){M=!0;break}T--}while(w>=jo||S>=jo);if(M)break;T<0&&(T=0),T+=2}if((r=T)<1&&(r=1),g===1){for(m=0;m<v;m++)n[b+m]=n[_+m];n[b+v]=a[x]}else{if(g===0)throw new Error;for(m=0;m<g;m++)n[b+m]=a[x+m]}}(u,h,c,p):function(f,g,y,v){var m=0;for(m=0;m<v;m++)a[m]=n[y+m];var x=f+g-1,_=v-1,b=y+v-1,w=0,S=0;if(n[b--]=n[x--],--g==0){for(w=b-(v-1),m=0;m<v;m++)n[w+m]=a[m];return}if(v===1){for(S=(b-=g)+1,w=(x-=g)+1,m=g-1;m>=0;m--)n[S+m]=n[w+m];return void(n[b]=a[_])}for(var M=r;;){var T=0,I=0,C=!1;do if(t(a[_],n[x])<0){if(n[b--]=n[x--],T++,I=0,--g==0){C=!0;break}}else if(n[b--]=a[_--],I++,T=0,--v==1){C=!0;break}while((T|I)<M);if(C)break;do{if((T=g-Nh(a[_],n,f,g,g-1,t))!==0){for(g-=T,S=(b-=T)+1,w=(x-=T)+1,m=T-1;m>=0;m--)n[S+m]=n[w+m];if(g===0){C=!0;break}}if(n[b--]=a[_--],--v==1){C=!0;break}if((I=v-Eh(n[x],a,0,v,v-1,t))!==0){for(v-=I,S=(b-=I)+1,w=(_-=I)+1,m=0;m<I;m++)n[S+m]=a[w+m];if(v<=1){C=!0;break}}if(n[b--]=n[x--],--g==0){C=!0;break}M--}while(T>=jo||I>=jo);if(C)break;M<0&&(M=0),M+=2}if((r=M)<1&&(r=1),v===1){for(S=(b-=g)+1,w=(x-=g)+1,m=g-1;m>=0;m--)n[S+m]=n[w+m];n[b]=a[_]}else{if(v===0)throw new Error;for(w=b-(v-1),m=0;m<v;m++)n[w+m]=a[m]}}(u,h,c,p))}return e=[],i=[],{mergeRuns:function(){for(;o>1;){var l=o-2;if(l>=1&&i[l-1]<=i[l]+i[l+1]||l>=2&&i[l-2]<=i[l]+i[l-1])i[l-1]<i[l+1]&&l--;else if(i[l]>i[l+1])break;s(l)}},forceMergeRuns:function(){for(;o>1;){var l=o-2;l>0&&i[l-1]<i[l+1]&&l--,s(l)}},pushRun:function(l,u){e[o]=l,i[o]=u,o+=1}}}function ks(n,t,e,i){e||(e=0),i||(i=n.length);var r=i-e;if(!(r<2)){var o=0;if(r<Rg)Ng(n,e,i,e+(o=Eg(n,e,i,t)),t);else{var a=WM(n,t),s=function(u){for(var h=0;u>=Rg;)h|=1&u,u>>=1;return u+h}(r);do{if((o=Eg(n,e,i,t))<s){var l=r;l>s&&(l=s),Ng(n,e,e+l,e+o,t),o=l}a.pushRun(e,o),a.mergeRuns(),r-=o,e+=o}while(r!==0);a.forceMergeRuns()}}}var Vt=1,Yr=4,zg=!1;function zh(){zg||(zg=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Bg(n,t){return n.zlevel===t.zlevel?n.z===t.z?n.z2-t.z2:n.z-t.z:n.zlevel-t.zlevel}var YM=function(){function n(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Bg}return n.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},n.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return!t&&i.length||this.updateDisplayList(e),i},n.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,r=0,o=e.length;r<o;r++)this._updateAndAddDisplayable(e[r],null,t);i.length=this._displayListLen,ks(i,Bg)},n.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];for(var o=r,a=t;o;)o.parent=a,o.updateTransform(),e.push(o),a=o,o=o.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=Vt),this._updateAndAddDisplayable(u,e,i)}t.__dirty=0}else{var h=t;e&&e.length?h.__clipPaths=e:h.__clipPaths&&h.__clipPaths.length>0&&(h.__clipPaths=[]),isNaN(h.z)&&(zh(),h.z=0),isNaN(h.z2)&&(zh(),h.z2=0),isNaN(h.zlevel)&&(zh(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,i);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,e,i);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,i)}},n.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},n.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);else{var r=Se(this._roots,t);r>=0&&this._roots.splice(r,1)}},n.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},n.prototype.getRoots=function(){return this._roots},n.prototype.dispose=function(){this._displayList=null,this._roots=null},n}();const XM=YM,Bh=xe.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(n){return setTimeout(n,16)};var Ls={linear:function(n){return n},quadraticIn:function(n){return n*n},quadraticOut:function(n){return n*(2-n)},quadraticInOut:function(n){return(n*=2)<1?.5*n*n:-.5*(--n*(n-2)-1)},cubicIn:function(n){return n*n*n},cubicOut:function(n){return--n*n*n+1},cubicInOut:function(n){return(n*=2)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},quarticIn:function(n){return n*n*n*n},quarticOut:function(n){return 1- --n*n*n*n},quarticInOut:function(n){return(n*=2)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},quinticIn:function(n){return n*n*n*n*n},quinticOut:function(n){return--n*n*n*n*n+1},quinticInOut:function(n){return(n*=2)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},sinusoidalIn:function(n){return 1-Math.cos(n*Math.PI/2)},sinusoidalOut:function(n){return Math.sin(n*Math.PI/2)},sinusoidalInOut:function(n){return .5*(1-Math.cos(Math.PI*n))},exponentialIn:function(n){return n===0?0:Math.pow(1024,n-1)},exponentialOut:function(n){return n===1?1:1-Math.pow(2,-10*n)},exponentialInOut:function(n){return n===0?0:n===1?1:(n*=2)<1?.5*Math.pow(1024,n-1):.5*(2-Math.pow(2,-10*(n-1)))},circularIn:function(n){return 1-Math.sqrt(1-n*n)},circularOut:function(n){return Math.sqrt(1- --n*n)},circularInOut:function(n){return(n*=2)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},elasticIn:function(n){var t,e=.1;return n===0?0:n===1?1:(!e||e<1?(e=1,t=.1):t=.4*Math.asin(1/e)/(2*Math.PI),-e*Math.pow(2,10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/.4))},elasticOut:function(n){var t,e=.1;return n===0?0:n===1?1:(!e||e<1?(e=1,t=.1):t=.4*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*n)*Math.sin((n-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(n){var t,e=.1,i=.4;return n===0?0:n===1?1:(!e||e<1?(e=1,t=.1):t=i*Math.asin(1/e)/(2*Math.PI),(n*=2)<1?e*Math.pow(2,10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/i)*-.5:e*Math.pow(2,-10*(n-=1))*Math.sin((n-t)*(2*Math.PI)/i)*.5+1)},backIn:function(n){var t=1.70158;return n*n*((t+1)*n-t)},backOut:function(n){var t=1.70158;return--n*n*((t+1)*n+t)+1},backInOut:function(n){var t=2.5949095;return(n*=2)<1?n*n*((t+1)*n-t)*.5:.5*((n-=2)*n*((t+1)*n+t)+2)},bounceIn:function(n){return 1-Ls.bounceOut(1-n)},bounceOut:function(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},bounceInOut:function(n){return n<.5?.5*Ls.bounceIn(2*n):.5*Ls.bounceOut(2*n-1)+.5}};const Vg=Ls;var Ps=Math.pow,mi=Math.sqrt,Os=1e-8,Fg=1e-4,Gg=mi(3),Rs=1/3,Ln=Yi(),qt=Yi(),Xr=Yi();function xi(n){return n>-Os&&n<Os}function Hg(n){return n>Os||n<-Os}function tt(n,t,e,i,r){var o=1-r;return o*o*(o*n+3*r*t)+r*r*(r*i+3*o*e)}function Wg(n,t,e,i,r){var o=1-r;return 3*(((t-n)*o+2*(e-t)*r)*o+(i-e)*r*r)}function Es(n,t,e,i,r,o){var a=i+3*(t-e)-n,s=3*(e-2*t+n),l=3*(t-n),u=n-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(xi(h)&&xi(c))xi(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[d++]=M);else{var f=c*c-4*h*p;if(xi(f)){var g=c/h,y=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y)}else if(f>0){var v=mi(f),m=h*s+1.5*a*(-c+v),x=h*s+1.5*a*(-c-v);(M=(-s-((m=m<0?-Ps(-m,Rs):Ps(m,Rs))+(x=x<0?-Ps(-x,Rs):Ps(x,Rs))))/(3*a))>=0&&M<=1&&(o[d++]=M)}else{var _=(2*h*s-3*a*c)/(2*mi(h*h*h)),b=Math.acos(_)/3,w=mi(h),S=Math.cos(b),M=(-s-2*w*S)/(3*a),T=(y=(-s+w*(S+Gg*Math.sin(b)))/(3*a),(-s+w*(S-Gg*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y),T>=0&&T<=1&&(o[d++]=T)}}return d}function Yg(n,t,e,i,r){var o=6*e-12*t+6*n,a=9*t+3*i-3*n-9*e,s=3*t-3*n,l=0;if(xi(a))Hg(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(xi(u))r[0]=-o/(2*a);else if(u>0){var h,c=mi(u),p=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}function Ns(n,t,e,i,r,o){var a=(t-n)*r+n,s=(e-t)*r+t,l=(i-e)*r+e,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=n,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function Xg(n,t,e,i,r,o,a,s,l,u,h){var c,p,d,f,g,y=.005,v=1/0;Ln[0]=l,Ln[1]=u;for(var m=0;m<1;m+=.05)qt[0]=tt(n,e,r,a,m),qt[1]=tt(t,i,o,s,m),(f=Xi(Ln,qt))<v&&(c=m,v=f);v=1/0;for(var x=0;x<32&&!(y<Fg);x++)p=c-y,d=c+y,qt[0]=tt(n,e,r,a,p),qt[1]=tt(t,i,o,s,p),f=Xi(qt,Ln),p>=0&&f<v?(c=p,v=f):(Xr[0]=tt(n,e,r,a,d),Xr[1]=tt(t,i,o,s,d),g=Xi(Xr,Ln),d<=1&&g<v?(c=d,v=g):y*=.5);return h&&(h[0]=tt(n,e,r,a,c),h[1]=tt(t,i,o,s,c)),mi(v)}function UM(n,t,e,i,r,o,a,s,l){for(var u=n,h=t,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=tt(n,e,r,a,f),y=tt(t,i,o,s,f),v=g-u,m=y-h;c+=Math.sqrt(v*v+m*m),u=g,h=y}return c}function pt(n,t,e,i){var r=1-i;return r*(r*n+2*i*t)+i*i*e}function Ug(n,t,e,i){return 2*((1-i)*(t-n)+i*(e-t))}function Zg(n,t,e){var i=n+e-2*t;return i===0?.5:(n-t)/i}function zs(n,t,e,i,r){var o=(t-n)*i+n,a=(e-t)*i+t,s=(a-o)*i+o;r[0]=n,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=e}function jg(n,t,e,i,r,o,a,s,l){var u,h=.005,c=1/0;Ln[0]=a,Ln[1]=s;for(var p=0;p<1;p+=.05)qt[0]=pt(n,e,r,p),qt[1]=pt(t,i,o,p),(y=Xi(Ln,qt))<c&&(u=p,c=y);c=1/0;for(var d=0;d<32&&!(h<Fg);d++){var f=u-h,g=u+h;qt[0]=pt(n,e,r,f),qt[1]=pt(t,i,o,f);var y=Xi(qt,Ln);if(f>=0&&y<c)u=f,c=y;else{Xr[0]=pt(n,e,r,g),Xr[1]=pt(t,i,o,g);var v=Xi(Xr,Ln);g<=1&&v<c?(u=g,c=v):h*=.5}}return l&&(l[0]=pt(n,e,r,u),l[1]=pt(t,i,o,u)),mi(c)}function ZM(n,t,e,i,r,o,a){for(var s=n,l=t,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=pt(n,e,r,p),f=pt(t,i,o,p),g=d-s,y=f-l;u+=Math.sqrt(g*g+y*y),s=d,l=f}return u}var jM=/cubic-bezier\(([0-9,\.e ]+)\)/;function qg(n){var t=n&&jM.exec(n);if(t){var e=t[1].split(","),i=+Xt(e[0]),r=+Xt(e[1]),o=+Xt(e[2]),a=+Xt(e[3]);if(isNaN(i+r+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:Es(0,i,o,1,l,s)&&tt(0,r,a,1,s[0])}}}const qM=function(){function n(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||st,this.ondestroy=t.ondestroy||st,this.onrestart=t.onrestart||st,t.easing&&this.setEasing(t.easing)}return n.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var i=this._life,r=t-this._startTime-this._pausedTime,o=r/i;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1){if(!this.loop)return!0;var l=r%i;this._startTime=t-l,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){this._paused=!1},n.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ae(t)?t:Vg[t]||qg(t)},n}();var Kg=function(n){this.value=n},KM=function(){function n(){this._len=0}return n.prototype.insert=function(t){var e=new Kg(t);return this.insertEntry(e),e},n.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++},n.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--},n.prototype.len=function(){return this._len},n.prototype.clear=function(){this.head=this.tail=null,this._len=0},n}(),JM=function(){function n(t){this._list=new KM,this._maxSize=10,this._map={},this._maxSize=t}return n.prototype.put=function(t,e){var i=this._list,r=this._map,o=null;if(r[t]==null){var a=i.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=i.head;i.remove(l),delete r[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new Kg(e),s.key=t,i.insertEntry(s),r[t]=s}return o},n.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},n.prototype.clear=function(){this._list.clear(),this._map={}},n.prototype.len=function(){return this._list.len()},n}();const qo=JM;var Jg={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 yn(n){return(n=Math.round(n))<0?0:n>255?255:n}function Ko(n){return n<0?0:n>1?1:n}function Vh(n){var t=n;return t.length&&t.charAt(t.length-1)==="%"?yn(parseFloat(t)/100*255):yn(parseInt(t,10))}function Qi(n){var t=n;return t.length&&t.charAt(t.length-1)==="%"?Ko(parseFloat(t)/100):Ko(parseFloat(t))}function Fh(n,t,e){return e<0?e+=1:e>1&&(e-=1),6*e<1?n+(t-n)*e*6:2*e<1?t:3*e<2?n+(t-n)*(2/3-e)*6:n}function _i(n,t,e){return n+(t-n)*e}function Kt(n,t,e,i,r){return n[0]=t,n[1]=e,n[2]=i,n[3]=r,n}function Gh(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n}var $g=new qo(20),Bs=null;function Ur(n,t){Bs&&Gh(Bs,t),Bs=$g.put(n,Bs||t.slice())}function At(n,t){if(n){t=t||[];var e=$g.get(n);if(e)return Gh(t,e);var i=(n+="").replace(/ /g,"").toLowerCase();if(i in Jg)return Gh(t,Jg[i]),Ur(n,t),t;var r,o=i.length;if(i.charAt(0)==="#")return o===4||o===5?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(Kt(t,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,o===5?parseInt(i.slice(4),16)/15:1),Ur(n,t),t):void Kt(t,0,0,0,1):o===7||o===9?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(Kt(t,(16711680&r)>>16,(65280&r)>>8,255&r,o===9?parseInt(i.slice(7),16)/255:1),Ur(n,t),t):void Kt(t,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(a!==-1&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Kt(t,+u[0],+u[1],+u[2],1):Kt(t,0,0,0,1);h=Qi(u.pop());case"rgb":return u.length>=3?(Kt(t,Vh(u[0]),Vh(u[1]),Vh(u[2]),u.length===3?h:Qi(u[3])),Ur(n,t),t):void Kt(t,0,0,0,1);case"hsla":return u.length!==4?void Kt(t,0,0,0,1):(u[3]=Qi(u[3]),Hh(u,t),Ur(n,t),t);case"hsl":return u.length!==3?void Kt(t,0,0,0,1):(Hh(u,t),Ur(n,t),t);default:return}}Kt(t,0,0,0,1)}}function Hh(n,t){var e=(parseFloat(n[0])%360+360)%360/360,i=Qi(n[1]),r=Qi(n[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return Kt(t=t||[],yn(255*Fh(a,o,e+1/3)),yn(255*Fh(a,o,e)),yn(255*Fh(a,o,e-1/3)),1),n.length===4&&(t[3]=n[3]),t}function Wh(n,t){var e=At(n);if(e){for(var i=0;i<3;i++)e[i]=t<0?e[i]*(1-t)|0:(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return vn(e,e.length===4?"rgba":"rgb")}}function Jo(n,t,e){if(t&&t.length&&n>=0&&n<=1){e=e||[];var i=n*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=t[r],s=t[o],l=i-r;return e[0]=yn(_i(a[0],s[0],l)),e[1]=yn(_i(a[1],s[1],l)),e[2]=yn(_i(a[2],s[2],l)),e[3]=Ko(_i(a[3],s[3],l)),e}}var $M=Jo;function Yh(n,t,e){if(t&&t.length&&n>=0&&n<=1){var i=n*(t.length-1),r=Math.floor(i),o=Math.ceil(i),a=At(t[r]),s=At(t[o]),l=i-r,u=vn([yn(_i(a[0],s[0],l)),yn(_i(a[1],s[1],l)),yn(_i(a[2],s[2],l)),Ko(_i(a[3],s[3],l))],"rgba");return e?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var QM=Yh;function Vs(n,t,e,i){var r=At(n);if(n)return r=function(o){if(o){var a,s,l=o[0]/255,u=o[1]/255,h=o[2]/255,c=Math.min(l,u,h),p=Math.max(l,u,h),d=p-c,f=(p+c)/2;if(d===0)a=0,s=0;else{s=f<.5?d/(p+c):d/(2-p-c);var g=((p-l)/6+d/2)/d,y=((p-u)/6+d/2)/d,v=((p-h)/6+d/2)/d;l===p?a=v-y:u===p?a=1/3+g-v:h===p&&(a=2/3+y-g),a<0&&(a+=1),a>1&&(a-=1)}var m=[360*a,s,f];return o[3]!=null&&m.push(o[3]),m}}(r),t!=null&&(r[0]=function(o){return(o=Math.round(o))<0?0:o>360?360:o}(t)),e!=null&&(r[1]=Qi(e)),i!=null&&(r[2]=Qi(i)),vn(Hh(r),"rgba")}function Qg(n,t){var e=At(n);if(e&&t!=null)return e[3]=Ko(t),vn(e,"rgba")}function vn(n,t){if(n&&n.length){var e=n[0]+","+n[1]+","+n[2];return t!=="rgba"&&t!=="hsva"&&t!=="hsla"||(e+=","+n[3]),t+"("+e+")"}}function $o(n,t){var e=At(n);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}const eT=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:Jo,fastMapToColor:$M,lerp:Yh,lift:Wh,lum:$o,mapToColor:QM,modifyAlpha:Qg,modifyHSL:Vs,parse:At,random:function(){return vn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:vn,toHex:function(n){var t=At(n);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}},Symbol.toStringTag,{value:"Module"}));xe.hasGlobalWindow&&ae(window.btoa);var Xh=Array.prototype.slice;function Qn(n,t,e){return(t-n)*e+n}function Uh(n,t,e,i){for(var r=t.length,o=0;o<r;o++)n[o]=Qn(t[o],e[o],i);return n}function Fs(n,t,e,i){for(var r=t.length,o=0;o<r;o++)n[o]=t[o]+e[o]*i;return n}function ey(n,t,e,i){for(var r=t.length,o=r&&t[0].length,a=0;a<r;a++){n[a]||(n[a]=[]);for(var s=0;s<o;s++)n[a][s]=t[a][s]+e[a][s]*i}return n}function tT(n,t){for(var e=n.length,i=t.length,r=e>i?t:n,o=Math.min(e,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(e,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function nT(n,t,e){var i=n,r=t;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a)if(o>a)i.length=a;else for(var s=o;s<a;s++)i.push(e===1?r[s]:Xh.call(r[s]));var l=i[0]&&i[0].length;for(s=0;s<i.length;s++)if(e===1)isNaN(i[s])&&(i[s]=r[s]);else for(var u=0;u<l;u++)isNaN(i[s][u])&&(i[s][u]=r[s][u])}}function Gs(n){if(vt(n)){var t=n.length;if(vt(n[0])){for(var e=[],i=0;i<t;i++)e.push(Xh.call(n[i]));return e}return Xh.call(n)}return n}function Hs(n){return n[0]=Math.floor(n[0])||0,n[1]=Math.floor(n[1])||0,n[2]=Math.floor(n[2])||0,n[3]=n[3]==null?1:n[3],"rgba("+n.join(",")+")"}function ty(n){return n===4||n===5}function Ws(n){return n===1||n===2}var Qo=[0,0,0,0],iT=function(){function n(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return n.prototype.isFinished=function(){return this._finished},n.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},n.prototype.needsAnimate=function(){return this.keyframes.length>=1},n.prototype.getAdditiveTrack=function(){return this._additiveTrack},n.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var r=this.keyframes,o=r.length,a=!1,s=6,l=e;if(vt(e)){var u=function(d){return vt(d&&d[0])?2:1}(e);s=u,(u===1&&!Re(e[0])||u===2&&!Re(e[0][0]))&&(a=!0)}else if(Re(e)&&!Gr(e))s=0;else if(q(e))if(isNaN(+e)){var h=At(e);h&&(l=h,s=3)}else s=0;else if(Go(e)){var c=G({},l);c.colorStops=X(e.colorStops,function(d){return{offset:d.offset,color:At(d.color)}}),e.type==="linear"?s=4:function(d){return d.type==="radial"}(e)&&(s=5),l=c}o===0?this.valType=s:s===this.valType&&s!==6||(a=!0),this.discrete=this.discrete||a;var p={time:t,value:l,rawValue:e,percent:0};return i&&(p.easing=i,p.easingFunc=ae(i)?i:Vg[i]||qg(i)),r.push(p),p},n.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(g,y){return g.time-y.time});for(var r=this.valType,o=i.length,a=i[o-1],s=this.discrete,l=Ws(r),u=ty(r),h=0;h<o;h++){var c=i[h],p=c.value,d=a.value;c.percent=c.time/t,s||(l&&h!==o-1?nT(p,d,r):u&&tT(p.colorStops,d.colorStops))}if(!s&&r!==5&&e&&this.needsAnimate()&&e.needsAnimate()&&r===e.valType&&!e._finished){this._additiveTrack=e;var f=i[0].value;for(h=0;h<o;h++)r===0?i[h].additiveValue=i[h].value-f:r===3?i[h].additiveValue=Fs([],i[h].value,f,-1):Ws(r)&&(i[h].additiveValue=r===1?Fs([],i[h].value,f,-1):ey([],i[h].value,f,-1))}},n.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,r,o,a=this._additiveTrack!=null,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,h=u.length,c=this.propName,p=l===3,d=this._lastFr,f=Math.min;if(h===1)r=o=u[0];else{if(e<0)i=0;else if(e<this._lastFrP){for(i=f(d+1,h-1);i>=0&&!(u[i].percent<=e);i--);i=f(i,h-2)}else{for(i=d;i<h&&!(u[i].percent>e);i++);i=f(i-1,h-2)}o=u[i+1],r=u[i]}if(r&&o){this._lastFr=i,this._lastFrP=e;var g=o.percent-r.percent,y=g===0?1:f((e-r.percent)/g,1);o.easingFunc&&(y=o.easingFunc(y));var v=a?this._additiveValue:p?Qo:t[c];if(!Ws(l)&&!p||v||(v=this._additiveValue=[]),this.discrete)t[c]=y<1?r.rawValue:o.rawValue;else if(Ws(l))l===1?Uh(v,r[s],o[s],y):function(w,S,M,T){for(var I=S.length,C=I&&S[0].length,D=0;D<I;D++){w[D]||(w[D]=[]);for(var L=0;L<C;L++)w[D][L]=Qn(S[D][L],M[D][L],T)}}(v,r[s],o[s],y);else if(ty(l)){var m=r[s],x=o[s],_=l===4;t[c]={type:_?"linear":"radial",x:Qn(m.x,x.x,y),y:Qn(m.y,x.y,y),colorStops:X(m.colorStops,function(w,S){var M=x.colorStops[S];return{offset:Qn(w.offset,M.offset,y),color:Hs(Uh([],w.color,M.color,y))}}),global:x.global},_?(t[c].x2=Qn(m.x2,x.x2,y),t[c].y2=Qn(m.y2,x.y2,y)):t[c].r=Qn(m.r,x.r,y)}else if(p)Uh(v,r[s],o[s],y),a||(t[c]=Hs(v));else{var b=Qn(r[s],o[s],y);a?this._additiveValue=b:t[c]=b}a&&this._addToTarget(t)}}},n.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,r=this._additiveValue;e===0?t[i]=t[i]+r:e===3?(At(t[i],Qo),Fs(Qo,Qo,r,1),t[i]=Hs(Qo)):e===1?Fs(t[i],t[i],r,1):e===2&&ey(t[i],t[i],r,1)},n}(),rT=function(){function n(t,e,i,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&r?Hi("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=i)}return n.prototype.getMaxTime=function(){return this._maxTime},n.prototype.getDelay=function(){return this._delay},n.prototype.getLoop=function(){return this._loop},n.prototype.getTarget=function(){return this._target},n.prototype.changeTarget=function(t){this._target=t},n.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,Oe(e),i)},n.prototype.whenWithKeys=function(t,e,i,r){for(var o=this._tracks,a=0;a<i.length;a++){var s=i[a],l=o[s];if(!l){l=o[s]=new iT(s);var u=void 0,h=this._getAdditiveTrack(s);if(h){var c=h.keyframes,p=c[c.length-1];u=p&&p.value,h.valType===3&&u&&(u=Hs(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Gs(u),r),this._trackKeys.push(s)}l.addKeyframe(t,Gs(e[s]),r)}return this._maxTime=Math.max(this._maxTime,t),this},n.prototype.pause=function(){this._clip.pause(),this._paused=!0},n.prototype.resume=function(){this._clip.resume(),this._paused=!1},n.prototype.isPaused=function(){return!!this._paused},n.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},n.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)},n.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)},n.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},n.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var r=0;r<i.length;r++){var o=i[r].getTrack(t);o&&(e=o)}return e},n.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],r=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,h=u.length;if(s.prepare(r,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[h-1];c&&(e._target[s.propName]=c.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new qM({life:r,loop:this._loop,delay:this._delay||0,onframe:function(d){e._started=2;var f=e._additiveAnimators;if(f){for(var g=!1,y=0;y<f.length;y++)if(f[y]._clip){g=!0;break}g||(e._additiveAnimators=null)}for(y=0;y<i.length;y++)i[y].step(e._target,d);var v=e._onframeCbs;if(v)for(y=0;y<v.length;y++)v[y](e._target,d)},ondestroy:function(){e._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),t&&p.setEasing(t)}else this._doneCallback();return this}},n.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},n.prototype.delay=function(t){return this._delay=t,this},n.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},n.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},n.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},n.prototype.getClip=function(){return this._clip},n.prototype.getTrack=function(t){return this._tracks[t]},n.prototype.getTracks=function(){var t=this;return X(this._trackKeys,function(e){return t._tracks[e]})},n.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,r=this._trackKeys,o=0;o<t.length;o++){var a=i[t[o]];a&&!a.isFinished()&&(e?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}var s=!0;for(o=0;o<r.length;o++)if(!i[r[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},n.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var r=0;r<e.length;r++){var o=e[r],a=this._tracks[o];if(a&&!a.isFinished()){var s=a.keyframes,l=s[i?0:s.length-1];l&&(t[o]=Gs(l.rawValue))}}}},n.prototype.__changeFinalValue=function(t,e){e=e||Oe(t);for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[r]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},n}();const Zh=rT;function Zr(){return new Date().getTime()}var oT=function(n){function t(e){var i=n.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 V(t,n),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,r=e.next;i?i.next=r:this._head=r,r?r.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=Zr()-this._pausedTime,r=i-this._time,o=this._head;o;){var a=o.next;o.step(i,r)&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=i,e||(this.trigger("frame",r),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,Bh(function i(){e._running&&(Bh(i),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=Zr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Zr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Zr()-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 r=new Zh(e,i.loop);return this.addAnimator(r),r},t}(Zt);const aT=oT;var ny,iy,jh=xe.domSupported,qh=(iy={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:ny=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:X(ny,function(n){var t=n.replace("mouse","pointer");return iy.hasOwnProperty(t)?t:n})}),sT=["mousemove","mouseup"],lT=["pointermove","pointerup"],ry=!1;function Kh(n){var t=n.pointerType;return t==="pen"||t==="touch"}function Jh(n){n&&(n.zrByTouch=!0)}function oy(n,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===n.painterRoot);)e=e.parentNode;return i}var uT=function(n,t){this.stopPropagation=st,this.stopImmediatePropagation=st,this.preventDefault=st,this.type=t.type,this.target=this.currentTarget=n.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},mn={mousedown:function(n){n=jt(this.dom,n),this.__mayPointerCapture=[n.zrX,n.zrY],this.trigger("mousedown",n)},mousemove:function(n){n=jt(this.dom,n);var t=this.__mayPointerCapture;!t||n.zrX===t[0]&&n.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",n)},mouseup:function(n){n=jt(this.dom,n),this.__togglePointerCapture(!1),this.trigger("mouseup",n)},mouseout:function(n){oy(this,(n=jt(this.dom,n)).toElement||n.relatedTarget)||(this.__pointerCapturing&&(n.zrEventControl="no_globalout"),this.trigger("mouseout",n))},wheel:function(n){ry=!0,n=jt(this.dom,n),this.trigger("mousewheel",n)},mousewheel:function(n){ry||(n=jt(this.dom,n),this.trigger("mousewheel",n))},touchstart:function(n){Jh(n=jt(this.dom,n)),this.__lastTouchMoment=new Date,this.handler.processGesture(n,"start"),mn.mousemove.call(this,n),mn.mousedown.call(this,n)},touchmove:function(n){Jh(n=jt(this.dom,n)),this.handler.processGesture(n,"change"),mn.mousemove.call(this,n)},touchend:function(n){Jh(n=jt(this.dom,n)),this.handler.processGesture(n,"end"),mn.mouseup.call(this,n),+new Date-+this.__lastTouchMoment<300&&mn.click.call(this,n)},pointerdown:function(n){mn.mousedown.call(this,n)},pointermove:function(n){Kh(n)||mn.mousemove.call(this,n)},pointerup:function(n){mn.mouseup.call(this,n)},pointerout:function(n){Kh(n)||mn.mouseout.call(this,n)}};A(["click","dblclick","contextmenu"],function(n){mn[n]=function(t){t=jt(this.dom,t),this.trigger(n,t)}});var $h={pointermove:function(n){Kh(n)||$h.mousemove.call(this,n)},pointerup:function(n){$h.mouseup.call(this,n)},mousemove:function(n){this.trigger("mousemove",n)},mouseup:function(n){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",n),t&&(n.zrEventControl="only_globalout",this.trigger("mouseout",n))}};function hT(n,t){var e=t.domHandlers;xe.pointerEventsSupported?A(qh.pointer,function(i){Ys(t,i,function(r){e[i].call(n,r)})}):(xe.touchEventsSupported&&A(qh.touch,function(i){Ys(t,i,function(r){e[i].call(n,r),function(o){o.touching=!0,o.touchTimer!=null&&(clearTimeout(o.touchTimer),o.touchTimer=null),o.touchTimer=setTimeout(function(){o.touching=!1,o.touchTimer=null},700)}(t)})}),A(qh.mouse,function(i){Ys(t,i,function(r){r=kh(r),t.touching||e[i].call(n,r)})}))}function cT(n,t){function e(i){Ys(t,i,function(r){r=kh(r),oy(n,r.target)||(r=function(o,a){return jt(o.dom,new uT(o,a),!0)}(n,r),t.domHandlers[i].call(n,r))},{capture:!0})}xe.pointerEventsSupported?A(lT,e):xe.touchEventsSupported||A(sT,e)}function Ys(n,t,e,i){n.mounted[t]=e,n.listenerOpts[t]=i,Lh(n.domTarget,t,e,i)}function Qh(n){var t,e,i,r,o=n.mounted;for(var a in o)o.hasOwnProperty(a)&&(t=n.domTarget,e=a,i=o[a],r=n.listenerOpts[a],t.removeEventListener(e,i,r));n.mounted={}}var ay=function(n,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=n,this.domHandlers=t};const pT=function(n){function t(e,i){var r=n.call(this)||this;return r.__pointerCapturing=!1,r.dom=e,r.painterRoot=i,r._localHandlerScope=new ay(e,mn),jh&&(r._globalHandlerScope=new ay(document,$h)),hT(r,r._localHandlerScope),r}return V(t,n),t.prototype.dispose=function(){Qh(this._localHandlerScope),jh&&Qh(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,jh&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?cT(this,i):Qh(i)}},t}(Zt);var sy=1;xe.hasGlobalWindow&&(sy=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Xs=sy,ec="#333",tc="#ccc",ly=Yo,dT=5e-5;function er(n){return n>dT||n<-5e-5}var tr=[],jr=[],nc=[1,0,0,1,0,0],ic=Math.abs,fT=function(){function n(){}return n.prototype.getLocalTransform=function(t){return n.getLocalTransform(this,t)},n.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},n.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},n.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},n.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},n.prototype.needLocalTransform=function(){return er(this.rotation)||er(this.x)||er(this.y)||er(this.scaleX-1)||er(this.scaleY-1)||er(this.skewX)||er(this.skewY)},n.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;e||t?(i=i||[1,0,0,1,0,0],e?this.getLocalTransform(i):ly(i),t&&(e?kn(i,t,i):Cs(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&(ly(i),this.invTransform=null)},n.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(tr);var i=tr[0]<0?-1:1,r=tr[1]<0?-1:1,o=((tr[0]-i)*e+i)/tr[0]||0,a=((tr[1]-r)*e+r)/tr[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||[1,0,0,1,0,0],ji(this.invTransform,t)},n.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},n.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],r=Math.atan2(t[1],t[0]),o=Math.PI/2+r-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(o),e=Math.sqrt(e),this.skewX=o,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},n.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(kn(jr,t.invTransform,e),e=jr);var i=this.originX,r=this.originY;(i||r)&&(nc[4]=i,nc[5]=r,kn(jr,e,nc),jr[4]-=i,jr[5]-=r,e=jr),this.setLocalTransform(e)}},n.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)},n.prototype.transformCoordToLocal=function(t,e){var i=[t,e],r=this.invTransform;return r&&ot(i,i,r),i},n.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],r=this.transform;return r&&ot(i,i,r),i},n.prototype.getLineScale=function(){var t=this.transform;return t&&ic(t[0]-1)>1e-10&&ic(t[3]-1)>1e-10?Math.sqrt(ic(t[0]*t[3]-t[2]*t[1])):1},n.prototype.copyTransform=function(t){(function(e,i){for(var r=0;r<ea.length;r++){var o=ea[r];e[o]=i[o]}})(this,t)},n.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,r=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,h=t.x,c=t.y,p=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(i||r||s||l){var f=i+s,g=r+l;e[4]=-f*o-p*g*a,e[5]=-g*a-d*f*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=d*o,e[2]=p*a,u&&Zi(e,e,u),e[4]+=i+h,e[5]+=r+c,e},n.initDefaultProps=function(){var t=n.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}(),n}(),ea=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];const wi=fT;var uy={};function Ft(n,t){var e=uy[t=t||Gi];e||(e=uy[t]=new qo(500));var i=e.get(n);return i==null&&(i=qn.measureText(n,t).width,e.put(n,i)),i}function hy(n,t,e,i){var r=Ft(n,t),o=rc(t),a=na(0,r,e),s=qr(0,o,i);return new ye(a,s,r,o)}function ta(n,t,e,i){var r=((n||"")+"").split(`
- `);if(r.length===1)return hy(r[0],t,e,i);for(var o=new ye(0,0,0,0),a=0;a<r.length;a++){var s=hy(r[a],t,e,i);a===0?o.copy(s):o.union(s)}return o}function na(n,t,e){return e==="right"?n-=t:e==="center"&&(n-=t/2),n}function qr(n,t,e){return e==="middle"?n-=t/2:e==="bottom"&&(n-=t),n}function rc(n){return Ft("\u56FD",n)}function Pn(n,t){return typeof n=="string"?n.lastIndexOf("%")>=0?parseFloat(n)/100*t:parseFloat(n):n}function Us(n,t,e){var i=t.position||"inside",r=t.distance!=null?t.distance:5,o=e.height,a=e.width,s=o/2,l=e.x,u=e.y,h="left",c="top";if(i instanceof Array)l+=Pn(i[0],e.width),u+=Pn(i[1],e.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(n=n||{}).x=l,n.y=u,n.align=h,n.verticalAlign=c,n}var oc="__zr_normal__",ac=ea.concat(["ignore"]),gT=gn(ea,function(n,t){return n[t]=!0,n},{ignore:!1}),Kr={},yT=new ye(0,0,0,0),sc=function(){function n(t){this.id=yh(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return n.prototype._init=function(t){this.attr(t)},n.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,r=i.local,o=e.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=r?this:null;var u=!1;if(o.copyTransform(e),i.position!=null){var h=yT;i.layoutRect?h.copy(i.layoutRect):h.copy(this.getBoundingRect()),r||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Kr,i,h):Us(Kr,i,h),o.x=Kr.x,o.y=Kr.y,a=Kr.align,s=Kr.verticalAlign;var c=i.origin;if(c&&i.rotation!=null){var p=void 0,d=void 0;c==="center"?(p=.5*h.width,d=.5*h.height):(p=Pn(c[0],h.width),d=Pn(c[1],h.height)),u=!0,o.originX=-o.x+p+(r?0:h.x),o.originY=-o.y+d+(r?0:h.y)}}i.rotation!=null&&(o.rotation=i.rotation);var f=i.offset;f&&(o.x+=f[0],o.y+=f[1],u||(o.originX=-f[0],o.originY=-f[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,m=void 0,x=void 0;g&&this.canBeInsideText()?(v=i.insideFill,m=i.insideStroke,v!=null&&v!=="auto"||(v=this.getInsideTextFill()),m!=null&&m!=="auto"||(m=this.getInsideTextStroke(v),x=!0)):(v=i.outsideFill,m=i.outsideStroke,v!=null&&v!=="auto"||(v=this.getOutsideFill()),m!=null&&m!=="auto"||(m=this.getOutsideStroke(v),x=!0)),(v=v||"#000")===y.fill&&m===y.stroke&&x===y.autoStroke&&a===y.align&&s===y.verticalAlign||(l=!0,y.fill=v,y.stroke=m,y.autoStroke=x,y.align=a,y.verticalAlign=s,e.setDefaultTextStyle(y)),e.__dirty|=Vt,l&&e.dirtyStyle(!0)}},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(t){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?tc:ec},n.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&At(e);i||(i=[255,255,255,1]);for(var r=i[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*r+(o?0:255)*(1-r);return i[3]=1,vn(i,"rgba")},n.prototype.traverse=function(t,e){},n.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||{},G(this.extra,e)):this[t]=e},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Q(t))for(var i=Oe(t),r=0;r<i.length;r++){var o=i[r];this.attrKV(o,t[o])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var r=this.animators[i],o=r.__fromStateTransition;if(!(r.getLoop()||o&&o!==oc)){var a=r.targetName,s=a?e[a]:e;r.saveTo(s)}}},n.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,ac)},n.prototype._savePrimaryToNormal=function(t,e,i){for(var r=0;r<i.length;r++){var o=i[r];t[o]==null||o in e||(e[o]=this[o])}},n.prototype.hasState=function(){return this.currentStates.length>0},n.prototype.getState=function(t){return this.states[t]},n.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},n.prototype.clearStates=function(t){this.useState(oc,!1,t)},n.prototype.useState=function(t,e,i,r){var o=t===oc;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!(Se(a,t)>=0)||!e&&a.length!==1){var l;if(this.stateProxy&&!o&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),l||o){o||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!i&&!this.__inHover&&s&&s.duration>0,s);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,i,u),c&&c.useState(t,e,i,u),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vt),l}Hi("State "+t+" not exists.")}}},n.prototype.useStates=function(t,e,i){if(t.length){var r=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(l=0;l<a;l++){var u=t[l],h=void 0;this.stateProxy&&(h=this.stateProxy(u,t)),h||(h=this.states[u]),h&&r.push(h)}var c=r[a-1],p=!!(c&&c.hoverLayer||i);p&&this._toggleHoverLayerFlag(!0);var d=this._mergeStates(r),f=this.stateTransition;this.saveCurrentToNormalState(d),this._applyStateObj(t.join(","),d,this._normalState,!1,!e&&!this.__inHover&&f&&f.duration>0,f);var g=this._textContent,y=this._textGuide;g&&g.useStates(t,e,p),y&&y.useStates(t,e,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Vt)}else this.clearStates()},n.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},n.prototype.removeState=function(t){var e=Se(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},n.prototype.replaceState=function(t,e,i){var r=this.currentStates.slice(),o=Se(r,t),a=Se(r,e)>=0;o>=0?a?r.splice(o,1):r[o]=e:i&&!a&&r.push(e),this.useStates(r)},n.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},n.prototype._mergeStates=function(t){for(var e,i={},r=0;r<t.length;r++){var o=t[r];G(i,o),o.textConfig&&G(e=e||{},o.textConfig)}return e&&(i.textConfig=e),i},n.prototype._applyStateObj=function(t,e,i,r,o,a){var s=!(e&&r);e&&e.textConfig?(this.textConfig=G({},r?this.textConfig:i.textConfig),G(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,h=0;h<ac.length;h++){var c=ac[h],p=o&&gT[c];e&&e[c]!=null?p?(u=!0,l[c]=e[c]):this[c]=e[c]:s&&i[c]!=null&&(p?(u=!0,l[c]=i[c]):this[c]=i[c])}if(!o)for(h=0;h<this.animators.length;h++){var d=this.animators[h],f=d.targetName;d.getLoop()||d.__changeFinalValue(f?(e||i)[f]:e||i)}u&&this._transitionState(t,l,a)},n.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},n.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},n.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new wi,this._attachComponent(t),this._textContent=t,this.markRedraw()}},n.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),G(this.textConfig,t),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=Vt;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},n.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)}},n.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)}},n.prototype.animate=function(t,e,i){var r=t?this[t]:this;if(r){var o=new Zh(r,e,i);return t&&(o.targetName=t),this.addAnimator(o,t),o}Hi('Property "'+t+'" is not existed in element '+this.id)},n.prototype.addAnimator=function(t,e){var i=this.__zr,r=this;t.during(function(){r.updateDuringAnimation(e)}).done(function(){var o=r.animators,a=Se(o,t);a>=0&&o.splice(a,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},n.prototype.updateDuringAnimation=function(t){this.markRedraw()},n.prototype.stopAnimation=function(t,e){for(var i=this.animators,r=i.length,o=[],a=0;a<r;a++){var s=i[a];t&&t!==s.scope?o.push(s):s.stop(e)}return this.animators=o,this},n.prototype.animateTo=function(t,e,i){lc(this,t,e,i)},n.prototype.animateFrom=function(t,e,i){lc(this,t,e,i,!0)},n.prototype._transitionState=function(t,e,i,r){for(var o=lc(this,e,i,r),a=0;a<o.length;a++)o[a].__fromStateTransition=t},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=function(){var t=n.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Vt;var e={};function i(o,a,s){e[o+a+s]||(console.warn("DEPRECATED: '"+o+"' has been deprecated. use '"+a+"', '"+s+"' instead"),e[o+a+s]=!0)}function r(o,a,s,l){function u(h,c){Object.defineProperty(c,0,{get:function(){return h[s]},set:function(p){h[s]=p}}),Object.defineProperty(c,1,{get:function(){return h[l]},set:function(p){h[l]=p}})}Object.defineProperty(t,o,{get:function(){return i(o,s,l),this[a]||u(this,this[a]=[]),this[a]},set:function(h){i(o,s,l),this[s]=h[0],this[l]=h[1],this[a]=h,u(this,h)}})}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),n}();function lc(n,t,e,i,r){var o=[];cy(n,"",n,t,e=e||{},i,o,r);var a=o.length,s=!1,l=e.done,u=e.aborted,h=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},c=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&e.during&&o[0].during(function(f,g){e.during(g)});for(var p=0;p<o.length;p++){var d=o[p];h&&d.done(h),c&&d.aborted(c),e.force&&d.duration(e.duration),d.start(e.easing)}return o}function uc(n,t,e){for(var i=0;i<e;i++)n[i]=t[i]}function vT(n,t,e){if(vt(t[e]))if(vt(n[e])||(n[e]=[]),mt(t[e])){var i=t[e].length;n[e].length!==i&&(n[e]=new t[e].constructor(i),uc(n[e],t[e],i))}else{var r=t[e],o=n[e],a=r.length;if(vt(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?uc(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else uc(o,r,a);o.length=r.length}else n[e]=t[e]}function cy(n,t,e,i,r,o,a,s){for(var l=Oe(i),u=r.duration,h=r.delay,c=r.additive,p=r.setToFinal,d=!Q(o),f=n.animators,g=[],y=0;y<l.length;y++){var v=l[y],m=i[v];if(m!=null&&e[v]!=null&&(d||o[v]))if(!Q(m)||vt(m)||Go(m))g.push(v);else{if(t){s||(e[v]=m,n.updateDuringAnimation(t));continue}cy(n,v,e[v],m,r,o&&o[v],a,s)}else s||(e[v]=m,n.updateDuringAnimation(t),g.push(v))}var x=g.length;if(!c&&x){for(var _=0;_<f.length;_++)if((w=f[_]).targetName===t&&w.stopTracks(g)){var b=Se(f,w);f.splice(b,1)}}if(r.force||(g=We(g,function(I){return C=i[I],D=e[I],!(C===D||vt(C)&&vt(D)&&function(L,R){var P=L.length;if(P!==R.length)return!1;for(var E=0;E<P;E++)if(L[E]!==R[E])return!1;return!0}(C,D));var C,D}),x=g.length),x>0||r.force&&!a.length){var w,S=void 0,M=void 0,T=void 0;if(s)for(M={},p&&(S={}),_=0;_<x;_++)M[v=g[_]]=e[v],p?S[v]=i[v]:e[v]=i[v];else if(p)for(T={},_=0;_<x;_++)T[v=g[_]]=Gs(e[v]),vT(e,i,v);(w=new Zh(e,!1,!1,c?We(f,function(I){return I.targetName===t}):null)).targetName=t,r.scope&&(w.scope=r.scope),p&&S&&w.whenWithKeys(0,S,g),T&&w.whenWithKeys(0,T,g),w.whenWithKeys(u??500,s?M:i,g).delay(h||0),n.addAnimator(w,t),a.push(w)}}ct(sc,Zt),ct(sc,wi);const py=sc;var dy=function(n){function t(e){var i=n.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return V(t,n),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,r=0;r<i.length;r++)if(i[r].name===e)return i[r]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){if(e&&(e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),e.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var r=this._children,o=r.indexOf(i);o>=0&&(r.splice(o,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var r=Se(this._children,e);return r>=0&&this.replaceAt(i,r),this},t.prototype.replaceAt=function(e,i){var r=this._children,o=r[i];if(e&&e!==this&&e.parent!==this&&e!==o){r[i]=e,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),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,r=this._children,o=Se(r,e);return o<0||(r.splice(o,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,r=0;r<e.length;r++){var o=e[r];i&&o.removeSelfFromZr(i),o.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var r=this._children,o=0;o<r.length;o++){var a=r[o];e.call(i,a,o)}return this},t.prototype.traverse=function(e,i){for(var r=0;r<this._children.length;r++){var o=this._children[r],a=e.call(i,o);o.isGroup&&!a&&o.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){n.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].addSelfToZr(e)},t.prototype.removeSelfFromZr=function(e){n.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].removeSelfFromZr(e)},t.prototype.getBoundingRect=function(e){for(var i=new ye(0,0,0,0),r=e||this._children,o=[],a=null,s=0;s<r.length;s++){var l=r[s];if(!l.ignore&&!l.invisible){var u=l.getBoundingRect(),h=l.getLocalTransform(o);h?(ye.applyTransform(i,u,h),(a=a||i.clone()).union(i)):(a=a||u.clone()).union(u)}}return a||i},t}(py);dy.prototype.type="group";const fe=dy;var ia={},nr={},mT=function(){function n(t,e,i){var r=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 o=new XM,a=i.renderer||"canvas";if(ia[a]||(a=Oe(ia)[0]),!ia[a])throw new Error("Renderer '"+a+"' is not imported. Please import it first.");i.useDirtyRect=i.useDirtyRect!=null&&i.useDirtyRect;var s=new ia[a](e,o,i,t),l=i.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u,h=xe.node||xe.worker||l?null:new pT(s.getViewportRoot(),s.root),c=i.useCoarsePointer;(c==null||c==="auto"?xe.touchEventsSupported:c)&&(u=Me(i.pointerSize,44)),this.handler=new HM(o,s,h,s.root,u),this.animation=new aT({stage:{update:l?null:function(){return r._flush(!0)}}}),l||this.animation.start()}return n.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},n.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},n.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},n.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(e){if(!e)return!1;if(typeof e=="string")return $o(e,1)<.4;if(e.colorStops){for(var i=e.colorStops,r=0,o=i.length,a=0;a<o;a++)r+=$o(i[a].color,1);return(r/=o)<.4}return!1}(t)},n.prototype.getBackgroundColor=function(){return this._backgroundColor},n.prototype.setDarkMode=function(t){this._darkMode=t},n.prototype.isDarkMode=function(){return this._darkMode},n.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},n.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},n.prototype.flush=function(){this._flush(!1)},n.prototype._flush=function(t){var e,i=Zr();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var r=Zr();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:r-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},n.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},n.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},n.prototype.refreshHover=function(){this._needsRefreshHover=!0},n.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},n.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},n.prototype.clearAnimation=function(){this.animation.clear()},n.prototype.getWidth=function(){return this.painter.getWidth()},n.prototype.getHeight=function(){return this.painter.getHeight()},n.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},n.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},n.prototype.on=function(t,e,i){return this.handler.on(t,e,i),this},n.prototype.off=function(t,e){this.handler.off(t,e)},n.prototype.trigger=function(t,e){this.handler.trigger(t,e)},n.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof fe&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},n.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete nr[t]},n}();function hc(n,t){var e=new mT(yh(),n,t);return nr[e.id]=e,e}function fy(n,t){ia[n]=t}const xT=Object.freeze(Object.defineProperty({__proto__:null,dispose:function(n){n.dispose()},disposeAll:function(){for(var n in nr)nr.hasOwnProperty(n)&&nr[n].dispose();nr={}},getInstance:function(n){return nr[n]},init:hc,registerPainter:fy,version:"5.4.4"},Symbol.toStringTag,{value:"Module"}));var gy=1e-4,yy=20;function Ae(n,t,e,i){var r=t[0],o=t[1],a=e[0],s=e[1],l=o-r,u=s-a;if(l===0)return u===0?a:(a+s)/2;if(i)if(l>0){if(n<=r)return a;if(n>=o)return s}else{if(n>=r)return a;if(n<=o)return s}else{if(n===r)return a;if(n===o)return s}return(n-r)/l*u+a}function ee(n,t){switch(n){case"center":case"middle":n="50%";break;case"left":case"top":n="0%";break;case"right":case"bottom":n="100%"}return q(n)?(e=n,e.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(n)/100*t:parseFloat(n):n==null?NaN:+n;var e}function Xe(n,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),yy),n=(+n).toFixed(t),e?n:+n}function ei(n){return n.sort(function(t,e){return t-e}),n}function On(n){if(n=+n,isNaN(n))return 0;if(n>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(n*t)/t===n)return e}return Zs(n)}function Zs(n){var t=n.toString().toLowerCase(),e=t.indexOf("e"),i=e>0?+t.slice(e+1):0,r=e>0?e:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function cc(n,t){var e=Math.log,i=Math.LN10,r=Math.floor(e(n[1]-n[0])/i),o=Math.round(e(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function vy(n,t){var e=gn(n,function(d,f){return d+(isNaN(f)?0:f)},0);if(e===0)return[];for(var i=Math.pow(10,t),r=X(n,function(d){return(isNaN(d)?0:d)/e*i*100}),o=100*i,a=X(r,function(d){return Math.floor(d)}),s=gn(a,function(d,f){return d+f},0),l=X(r,function(d,f){return d-a[f]});s<o;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return X(a,function(d){return d/i})}function _T(n,t){var e=Math.max(On(n),On(t)),i=n+t;return e>yy?i:Xe(i,e)}function pc(n){var t=2*Math.PI;return(n%t+t)%t}function ra(n){return n>-gy&&n<gy}var wT=/^(?:(\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 Jt(n){if(n instanceof Date)return n;if(q(n)){var t=wT.exec(n);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))}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)}return n==null?new Date(NaN):new Date(Math.round(n))}function my(n){return Math.pow(10,oa(n))}function oa(n){if(n===0)return 0;var t=Math.floor(Math.log(n)/Math.LN10);return n/Math.pow(10,t)>=10&&t++,t}function dc(n,t){var e=oa(n),i=Math.pow(10,e),r=n/i;return n=(t?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,e>=-20?+n.toFixed(e<0?-e:0):n}function fc(n){n.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,i=0;i<n.length;){for(var r=n[i].interval,o=n[i].close,a=0;a<2;a++)r[a]<=t&&(r[a]=t,o[a]=a?1:1-e),t=r[a],e=o[a];r[0]===r[1]&&o[0]*o[1]!=1?n.splice(i,1):i++}return n;function s(l,u,h){return l.interval[h]<u.interval[h]||l.interval[h]===u.interval[h]&&(l.close[h]-u.close[h]==(h?-1:1)||!h&&s(l,u,1))}}function aa(n){var t=parseFloat(n);return t==n&&(t!==0||!q(n)||n.indexOf("x")<=0)?t:NaN}function js(n){return!isNaN(aa(n))}function xy(){return Math.round(9*Math.random())}function _y(n,t){return t===0?n:_y(t,n%t)}function wy(n,t){return n==null?t:t==null?n:n*t/_y(n,t)}var bT="[ECharts] ",by={},ST=typeof console<"u"&&console.warn&&console.log;function qs(n,t,e){if(ST){if(e){if(by[t])return;by[t]=!0}console[n](bT+t)}}function Je(n,t){qs("warn",n,t)}function xt(n,t){qs("error",n,t)}function $t(n){qs("warn","DEPRECATED: "+n,!0)}function $e(n,t,e){$t((e?"["+e+"]":"")+n+" is deprecated, use "+t+" instead.")}function Ks(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];var e=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":Gr(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":ae(i)?"function () { ... }":fg(i)?i+"":null};return X(n,function(i){if(q(i))return i;var r=e(i);if(r!=null)return r;if(typeof JSON>"u"||!JSON.stringify)return"?";try{return JSON.stringify(i,function(o,a){var s=e(a);return s??a})}catch{return"?"}}).join(" ")}function Dt(n){throw new Error(n)}function Sy(n,t,e){return(t-n)*e+n}var My="series\0",Ty="\0_ec_\0";function Qe(n){return n instanceof Array?n:n==null?[]:[n]}function Js(n,t,e){if(n){n[t]=n[t]||{},n.emphasis=n.emphasis||{},n.emphasis[t]=n.emphasis[t]||{};for(var i=0,r=e.length;i<r;i++){var o=e[i];!n.emphasis[t].hasOwnProperty(o)&&n[t].hasOwnProperty(o)&&(n.emphasis[t][o]=n[t][o])}}}var Iy=["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 sa(n){return!Q(n)||Y(n)||n instanceof Date?n:n.value}function MT(n){return Q(n)&&!(n instanceof Array)}function TT(n,t,e){var i=e==="normalMerge",r=e==="replaceMerge",o=e==="replaceAll";n=n||[],t=(t||[]).slice();var a=ie();A(t,function(h,c){Q(h)?(h.id==null||Dy(h.id)||Ay(h.id),h.name==null||Dy(h.name)||Ay(h.name)):t[c]=null});var s,l,u=function(h,c,p){var d=[];if(p==="replaceAll")return d;for(var f=0;f<h.length;f++){var g=h[f];g&&g.id!=null&&c.set(g.id,f),d.push({existing:p==="replaceMerge"||Jr(g)?null:g,newOption:null,keyInfo:null,brandNew:null})}return d}(n,a,e);return(i||r)&&function(h,c,p,d){A(d,function(f,g){if(f&&f.id!=null){var y=la(f.id),v=p.get(y);if(v!=null){var m=h[v];ue(!m.newOption,'Duplicated option on id "'+y+'".'),m.newOption=f,m.existing=c[v],d[g]=null}}})}(u,n,a,t),i&&function(h,c){A(c,function(p,d){if(p&&p.name!=null)for(var f=0;f<h.length;f++){var g=h[f].existing;if(!h[f].newOption&&g&&(g.id==null||p.id==null)&&!Jr(p)&&!Jr(g)&&Cy("name",g,p))return h[f].newOption=p,void(c[d]=null)}})}(u,t),i||r?function(h,c,p){A(c,function(d){if(d){for(var f,g=0;(f=h[g])&&(f.newOption||Jr(f.existing)||f.existing&&d.id!=null&&!Cy("id",d,f.existing));)g++;f?(f.newOption=d,f.brandNew=p):h.push({newOption:d,brandNew:p,existing:null,keyInfo:null}),g++}})}(u,t,r):o&&function(h,c){A(c,function(p){h.push({newOption:p,brandNew:!0,existing:null,keyInfo:null})})}(u,t),s=u,l=ie(),A(s,function(h){var c=h.existing;c&&l.set(c.id,h)}),A(s,function(h){var c=h.newOption;ue(!c||c.id==null||!l.get(c.id)||l.get(c.id)===h,"id duplicates: "+(c&&c.id)),c&&c.id!=null&&l.set(c.id,h),!h.keyInfo&&(h.keyInfo={})}),A(s,function(h,c){var p=h.existing,d=h.newOption,f=h.keyInfo;if(Q(d)){if(f.name=d.name!=null?la(d.name):p?p.name:My+c,p)f.id=la(p.id);else if(d.id!=null)f.id=la(d.id);else{var g=0;do f.id="\0"+f.name+"\0"+g++;while(l.get(f.id))}l.set(f.id,h)}}),u}function Cy(n,t,e){var i=Qt(t[n],null),r=Qt(e[n],null);return i!=null&&r!=null&&i===r}function la(n){if(n==null)throw new Error;return Qt(n,"")}function Qt(n,t){return n==null?t:q(n)?n:Re(n)||Fo(n)?n+"":t}function Ay(n){Je("`"+n+"` is invalid id or name. Must be a string or number.")}function Dy(n){return Fo(n)||js(n)}function gc(n){var t=n.name;return!(!t||!t.indexOf(My))}function Jr(n){return n&&n.id!=null&&la(n.id).indexOf(Ty)===0}function ir(n,t){return t.dataIndexInside!=null?t.dataIndexInside:t.dataIndex!=null?Y(t.dataIndex)?X(t.dataIndex,function(e){return n.indexOfRawIndex(e)}):n.indexOfRawIndex(t.dataIndex):t.name!=null?Y(t.name)?X(t.name,function(e){return n.indexOfName(e)}):n.indexOfName(t.name):void 0}function Ne(){var n="__ec_inner_"+IT++;return function(t){return t[n]||(t[n]={})}}var IT=xy();function ua(n,t,e){var i=yc(t,e),r=i.mainTypeSpecified,o=i.queryOptionMap,a=i.others,s=e?e.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each(function(l,u){var h=ha(n,u,l,{useDefault:s===u,enableAll:!e||e.enableAll==null||e.enableAll,enableNone:!e||e.enableNone==null||e.enableNone});a[u+"Models"]=h.models,a[u+"Model"]=h.models[0]}),a}function yc(n,t){var e;if(q(n)){var i={};i[n+"Index"]=0,e=i}else e=n;var r=ie(),o={},a=!1;return A(e,function(s,l){if(l!=="dataIndex"&&l!=="dataIndexInside"){var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],h=u[1],c=(u[2]||"").toLowerCase();h&&c&&!(t&&t.includeMainTypes&&Se(t.includeMainTypes,h)<0)&&(a=a||!!h,(r.get(h)||r.set(h,{}))[c]=s)}else o[l]=s}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var nt={useDefault:!0,enableAll:!1,enableNone:!1},CT={useDefault:!1,enableAll:!0,enableNone:!0};function ha(n,t,e,i){i=i||nt;var r=e.index,o=e.id,a=e.name,s={models:null,specified:r!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=n.getComponent(t))?[l]:[],s}return r==="none"||r===!1?(ue(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(r==="all"&&(ue(i.enableAll,'`"all"` is not a valid value on index option.'),r=o=a=null),s.models=n.queryComponents({mainType:t,index:r,id:o,name:a}),s)}function ky(n,t,e){n.setAttribute?n.setAttribute(t,e):n[t]=e}function Ly(n,t,e,i,r){var o=t==null||t==="auto";if(i==null)return i;if(Re(i))return Xe(f=Sy(e||0,i,r),o?Math.max(On(e||0),On(i)):t);if(q(i))return r<1?e:i;for(var a=[],s=e,l=i,u=Math.max(s?s.length:0,l.length),h=0;h<u;++h){var c=n.getDimensionInfo(h);if(c&&c.type==="ordinal")a[h]=(r<1&&s?s:l)[h];else{var p=s&&s[h]?s[h]:0,d=l[h],f=Sy(p,d,r);a[h]=Xe(f,o?Math.max(On(p),On(d)):t)}}return a}var AT=".",rr="___EC__COMPONENT__CONTAINER___",Py="___EC__EXTENDED_CLASS___";function Rn(n){var t={main:"",sub:""};if(n){var e=n.split(AT);t.main=e[0]||"",t.sub=e[1]||""}return t}function vc(n,t){n.$constructor=n,n.extend=function(e){A(t,function(a){e[a]||console.warn("Method `"+a+"` should be implemented"+(e.type?" in "+e.type:"")+".")});var i,r,o=this;return ae(r=o)&&/^class\s/.test(Function.prototype.toString.call(r))?i=function(a){function s(){return a.apply(this,arguments)||this}return V(s,a),s}(o):(i=function(){(e.$constructor||o).apply(this,arguments)},vh(i,this)),G(i.prototype,e),i[Py]=!0,i.extend=this.extend,i.superCall=kT,i.superApply=LT,i.superClass=o,i}}function Oy(n,t){n.extend=t.extend}var DT=Math.round(10*Math.random());function kT(n,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return this.superClass.prototype[t].apply(n,e)}function LT(n,t,e){return this.superClass.prototype[t].apply(n,e)}function $s(n){var t={};n.registerClass=function(e){var i,r=e.type||e.prototype.type;if(r){ue(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(i=r),'componentType "'+i+'" illegal'),e.prototype.type=r;var o=Rn(r);if(o.sub){if(o.sub!==rr){var a=function(s){var l=t[s.main];return l&&l[rr]||((l=t[s.main]={})[rr]=!0),l}(o);a[o.sub]=e}}else t[o.main]&&console.warn(o.main+" exists."),t[o.main]=e}return e},n.getClass=function(e,i,r){var o=t[e];if(o&&o[rr]&&(o=i?o[i]:null),r&&!o)throw new Error(i?"Component "+e+"."+(i||"")+" is used but not imported.":e+".type should be specified.");return o},n.getClassesByMainType=function(e){var i=Rn(e),r=[],o=t[i.main];return o&&o[rr]?A(o,function(a,s){s!==rr&&r.push(a)}):r.push(o),r},n.hasClass=function(e){var i=Rn(e);return!!t[i.main]},n.getAllClassMainTypes=function(){var e=[];return A(t,function(i,r){e.push(r)}),e},n.hasSubTypes=function(e){var i=Rn(e),r=t[i.main];return r&&r[rr]}}function $r(n,t){for(var e=0;e<n.length;e++)n[e][1]||(n[e][1]=n[e][0]);return t=t||!1,function(i,r,o){for(var a={},s=0;s<n.length;s++){var l=n[s][1];if(!(r&&Se(r,l)>=0||o&&Se(o,l)<0)){var u=i.getShallow(l,t);u!=null&&(a[n[s][0]]=u)}}return a}}var PT=$r([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),OT=function(){function n(){}return n.prototype.getAreaStyle=function(t,e){return PT(this,t,e)},n}(),mc=new qo(50);function RT(n){if(typeof n=="string"){var t=mc.get(n);return t&&t.image}return n}function Ry(n,t,e,i,r){if(n){if(typeof n=="string"){if(t&&t.__zrImageSrc===n||!e)return t;var o=mc.get(n),a={hostEl:e,cb:i,cbPayload:r};return o?!Qs(t=o.image)&&o.pending.push(a):((t=qn.loadImage(n,Ey,Ey)).__zrImageSrc=n,mc.put(n,t.__cachedImgObj={image:t,pending:[a]})),t}return n}return t}function Ey(){var n=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<n.pending.length;t++){var e=n.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}n.pending.length=0}function Qs(n){return n&&n.width&&n.height}var xc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ny(n,t,e,i,r){if(!t)return"";var o=(n+"").split(`
- `);r=zy(t,e,i,r);for(var a=0,s=o.length;a<s;a++)o[a]=By(o[a],r);return o.join(`
- `)}function zy(n,t,e,i){var r=G({},i=i||{});r.font=t,e=Me(e,"..."),r.maxIterations=Me(i.maxIterations,2);var o=r.minChar=Me(i.minChar,0);r.cnCharWidth=Ft("\u56FD",t);var a=r.ascCharWidth=Ft("a",t);r.placeholder=Me(i.placeholder,"");for(var s=n=Math.max(0,n-1),l=0;l<o&&s>=a;l++)s-=a;var u=Ft(e,t);return u>s&&(e="",u=0),s=n-u,r.ellipsis=e,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=n,r}function By(n,t){var e=t.containerWidth,i=t.font,r=t.contentWidth;if(!e)return"";var o=Ft(n,i);if(o<=e)return n;for(var a=0;;a++){if(o<=r||a>=t.maxIterations){n+=t.ellipsis;break}var s=a===0?ET(n,r,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(n.length*r/o):0;o=Ft(n=n.substr(0,s),i)}return n===""&&(n=t.placeholder),n}function ET(n,t,e,i){for(var r=0,o=0,a=n.length;o<a&&r<t;o++){var s=n.charCodeAt(o);r+=0<=s&&s<=127?e:i}return o}var NT=function(){},Vy=function(n){this.tokens=[],n&&(this.tokens=n)},zT=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function _c(n,t,e,i,r){var o,a,s=t==="",l=r&&e.rich[r]||{},u=n.lines,h=l.font||e.font,c=!1;if(i){var p=l.padding,d=p?p[1]+p[3]:0;if(l.width!=null&&l.width!=="auto"){var f=Pn(l.width,i.width)+d;u.length>0&&f+i.accumWidth>i.width&&(o=t.split(`
- `),c=!0),i.accumWidth=f}else{var g=Fy(t,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+d,a=g.linesWidths,o=g.lines}}else o=t.split(`
- `);for(var y=0;y<o.length;y++){var v=o[y],m=new NT;if(m.styleName=r,m.text=v,m.isLineHolder=!v&&!s,typeof l.width=="number"?m.width=l.width:m.width=a?a[y]:Ft(v,h),y||c)u.push(new Vy([m]));else{var x=(u[u.length-1]||(u[0]=new Vy)).tokens,_=x.length;_===1&&x[0].isLineHolder?x[0]=m:(v||!_||s)&&x.push(m)}}}var BT=gn(",&?/;] ".split(""),function(n,t){return n[t]=!0,n},{});function VT(n){return!function(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(n)||!!BT[n]}function Fy(n,t,e,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;c<n.length;c++){var p=n.charAt(c);if(p!==`
- `){var d=Ft(p,t),f=!i&&!VT(p);(o.length?h+d>e:r+h+d>e)?h?(s||l)&&(f?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=p,s="",h=u+=d):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=p,h=d)):f?(o.push(l),a.push(u),l=p,u=d):(o.push(p),a.push(d)):(h+=d,f?(l+=p,u+=d):(l&&(s+=l,l="",u=0),s+=p))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=n,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),o.length===1&&(h+=r),{accumWidth:h,lines:o,linesWidths:a}}var wc="__zr_style_"+Math.round(10*Math.random()),or={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},el={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};or[wc]=!0;var Gy=["z","z2","invisible"],FT=["invisible"],GT=function(n){function t(i){return n.call(this,i)||this}var e;return V(t,n),t.prototype._init=function(i){for(var r=Oe(i),o=0;o<r.length;o++){var a=r[o];a==="style"?this.useStyle(i[a]):n.prototype.attrKV.call(this,a,i[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(i,r,o,a){var s=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&function(h,c,p){return bc.copy(h.getBoundingRect()),h.transform&&bc.applyTransform(h.transform),Sc.width=c,Sc.height=p,!bc.intersect(Sc)}(this,i,r)||s&&!s[0]&&!s[3])return!1;if(o&&this.__clipPaths){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(a&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(i,r){return this.rectContain(i,r)},t.prototype.traverse=function(i,r){i.call(r,this)},t.prototype.rectContain=function(i,r){var o=this.transformCoordToLocal(i,r);return this.getBoundingRect().contain(o[0],o[1])},t.prototype.getPaintRect=function(){var i=this._paintRect;if(!this._paintRect||this.__dirty){var r=this.transform,o=this.getBoundingRect(),a=this.style,s=a.shadowBlur||0,l=a.shadowOffsetX||0,u=a.shadowOffsetY||0;i=this._paintRect||(this._paintRect=new ye(0,0,0,0)),r?ye.applyTransform(i,o,r):i.copy(o),(s||l||u)&&(i.width+=2*s+Math.abs(l),i.height+=2*s+Math.abs(u),i.x=Math.min(i.x,i.x+l-s),i.y=Math.min(i.y,i.y+u-s));var h=this.dirtyRectTolerance;i.isZero()||(i.x=Math.floor(i.x-h),i.y=Math.floor(i.y-h),i.width=Math.ceil(i.width+1+2*h),i.height=Math.ceil(i.height+1+2*h))}return i},t.prototype.setPrevPaintRect=function(i){i?(this._prevPaintRect=this._prevPaintRect||new ye(0,0,0,0),this._prevPaintRect.copy(i)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(i){return this.animate("style",i)},t.prototype.updateDuringAnimation=function(i){i==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(i,r){i!=="style"?n.prototype.attrKV.call(this,i,r):this.style?this.setStyle(r):this.useStyle(r)},t.prototype.setStyle=function(i,r){return typeof i=="string"?this.style[i]=r:G(this.style,i),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(i){i||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(i){return Wo(or,i)},t.prototype.useStyle=function(i){i[wc]||(i=this.createStyle(i)),this.__inHover?this.__hoverStyle=i:this.style=i,this.dirtyStyle()},t.prototype.isStyleObject=function(i){return i[wc]},t.prototype._innerSaveToNormal=function(i){n.prototype._innerSaveToNormal.call(this,i);var r=this._normalState;i.style&&!r.style&&(r.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(i,r,Gy)},t.prototype._applyStateObj=function(i,r,o,a,s,l){n.prototype._applyStateObj.call(this,i,r,o,a,s,l);var u,h=!(r&&a);if(r&&r.style?s?a?u=r.style:(u=this._mergeStyle(this.createStyle(),o.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:o.style),this._mergeStyle(u,r.style)):h&&(u=o.style),u)if(s){var c=this.style;if(this.style=this.createStyle(h?{}:c),h)for(var p=Oe(c),d=0;d<p.length;d++)(g=p[d])in u&&(u[g]=u[g],this.style[g]=c[g]);var f=Oe(u);for(d=0;d<f.length;d++){var g=f[d];this.style[g]=this.style[g]}this._transitionState(i,{style:u},l,this.getAnimationStyleProps())}else this.useStyle(u);var y=this.__inHover?FT:Gy;for(d=0;d<y.length;d++)g=y[d],r&&r[g]!=null?this[g]=r[g]:h&&o[g]!=null&&(this[g]=o[g])},t.prototype._mergeStates=function(i){for(var r,o=n.prototype._mergeStates.call(this,i),a=0;a<i.length;a++){var s=i[a];s.style&&(r=r||{},this._mergeStyle(r,s.style))}return r&&(o.style=r),o},t.prototype._mergeStyle=function(i,r){return G(i,r),i},t.prototype.getAnimationStyleProps=function(){return el},t.initDefaultProps=((e=t.prototype).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,void(e.__dirty=2|Vt)),t}(py),bc=new ye(0,0,0,0),Sc=new ye(0,0,0,0);const ar=GT;var kt=Math.min,Lt=Math.max,Mc=Math.sin,Tc=Math.cos,sr=2*Math.PI,tl=Yi(),nl=Yi(),il=Yi();function Hy(n,t,e,i,r,o){r[0]=kt(n,e),r[1]=kt(t,i),o[0]=Lt(n,e),o[1]=Lt(t,i)}var Wy=[],Yy=[];function HT(n,t,e,i,r,o,a,s,l,u){var h=Yg,c=tt,p=h(n,e,r,a,Wy);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<p;d++){var f=c(n,e,r,a,Wy[d]);l[0]=kt(f,l[0]),u[0]=Lt(f,u[0])}for(p=h(t,i,o,s,Yy),d=0;d<p;d++){var g=c(t,i,o,s,Yy[d]);l[1]=kt(g,l[1]),u[1]=Lt(g,u[1])}l[0]=kt(n,l[0]),u[0]=Lt(n,u[0]),l[0]=kt(a,l[0]),u[0]=Lt(a,u[0]),l[1]=kt(t,l[1]),u[1]=Lt(t,u[1]),l[1]=kt(s,l[1]),u[1]=Lt(s,u[1])}function WT(n,t,e,i,r,o,a,s){var l=Zg,u=pt,h=Lt(kt(l(n,e,r),1),0),c=Lt(kt(l(t,i,o),1),0),p=u(n,e,r,h),d=u(t,i,o,c);a[0]=kt(n,r,p),a[1]=kt(t,o,d),s[0]=Lt(n,r,p),s[1]=Lt(t,o,d)}function YT(n,t,e,i,r,o,a,s,l){var u=Kn,h=Jn,c=Math.abs(r-o);if(c%sr<1e-4&&c>1e-4)return s[0]=n-e,s[1]=t-i,l[0]=n+e,void(l[1]=t+i);if(tl[0]=Tc(r)*e+n,tl[1]=Mc(r)*i+t,nl[0]=Tc(o)*e+n,nl[1]=Mc(o)*i+t,u(s,tl,nl),h(l,tl,nl),(r%=sr)<0&&(r+=sr),(o%=sr)<0&&(o+=sr),r>o&&!a?o+=sr:r<o&&a&&(r+=sr),a){var p=o;o=r,r=p}for(var d=0;d<o;d+=Math.PI/2)d>r&&(il[0]=Tc(d)*e+n,il[1]=Mc(d)*i+t,u(s,il,s),h(l,il,l))}var Ee={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},lr=[],ur=[],En=[],bi=[],Nn=[],zn=[],Ic=Math.min,Cc=Math.max,hr=Math.cos,cr=Math.sin,ti=Math.abs,Ac=Math.PI,Si=2*Ac,Dc=typeof Float32Array<"u",ca=[];function kc(n){return Math.round(n/Ac*1e8)/1e8%2*Ac}function Xy(n,t){var e=kc(n[0]);e<0&&(e+=Si);var i=e-n[0],r=n[1];r+=i,!t&&r-e>=Si?r=e+Si:t&&e-r>=Si?r=e-Si:!t&&e>r?r=e+(Si-kc(e-r)):t&&e<r&&(r=e-(Si-kc(r-e))),n[0]=e,n[1]=r}var XT=function(){function n(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 n.prototype.increaseVersion=function(){this._version++},n.prototype.getVersion=function(){return this._version},n.prototype.setScale=function(t,e,i){(i=i||0)>0&&(this._ux=ti(i/Xs/t)||0,this._uy=ti(i/Xs/e)||0)},n.prototype.setDPR=function(t){this.dpr=t},n.prototype.setContext=function(t){this._ctx=t},n.prototype.getContext=function(){return this._ctx},n.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},n.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},n.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ee.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},n.prototype.lineTo=function(t,e){var i=ti(t-this._xi),r=ti(e-this._yi),o=i>this._ux||r>this._uy;if(this.addData(Ee.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var a=i*i+r*r;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=a)}return this},n.prototype.bezierCurveTo=function(t,e,i,r,o,a){return this._drawPendingPt(),this.addData(Ee.C,t,e,i,r,o,a),this._ctx&&this._ctx.bezierCurveTo(t,e,i,r,o,a),this._xi=o,this._yi=a,this},n.prototype.quadraticCurveTo=function(t,e,i,r){return this._drawPendingPt(),this.addData(Ee.Q,t,e,i,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,r),this._xi=i,this._yi=r,this},n.prototype.arc=function(t,e,i,r,o,a){this._drawPendingPt(),ca[0]=r,ca[1]=o,Xy(ca,a),r=ca[0];var s=(o=ca[1])-r;return this.addData(Ee.A,t,e,i,i,r,s,0,a?0:1),this._ctx&&this._ctx.arc(t,e,i,r,o,a),this._xi=hr(o)*i+t,this._yi=cr(o)*i+e,this},n.prototype.arcTo=function(t,e,i,r,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,r,o),this},n.prototype.rect=function(t,e,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,r),this.addData(Ee.R,t,e,i,r),this},n.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ee.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},n.prototype.fill=function(t){t&&t.fill(),this.toStatic()},n.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},n.prototype.len=function(){return this._len},n.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Dc||(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e},n.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,i=0,r=this._len,o=0;o<e;o++)i+=t[o].len();for(Dc&&this.data instanceof Float32Array&&(this.data=new Float32Array(r+i)),o=0;o<e;o++)for(var a=t[o].data,s=0;s<a.length;s++)this.data[r++]=a[s];this._len=r},n.prototype.addData=function(t,e,i,r,o,a,s,l,u){if(this._saveData){var h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var c=0;c<arguments.length;c++)h[this._len++]=arguments[c]}},n.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},n.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}},n.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Dc&&this._len>11&&(this.data=new Float32Array(t)))}},n.prototype.getBoundingRect=function(){En[0]=En[1]=Nn[0]=Nn[1]=Number.MAX_VALUE,bi[0]=bi[1]=zn[0]=zn[1]=-Number.MAX_VALUE;var t,e=this.data,i=0,r=0,o=0,a=0;for(t=0;t<this._len;){var s=e[t++],l=t===1;switch(l&&(o=i=e[t],a=r=e[t+1]),s){case Ee.M:i=o=e[t++],r=a=e[t++],Nn[0]=o,Nn[1]=a,zn[0]=o,zn[1]=a;break;case Ee.L:Hy(i,r,e[t],e[t+1],Nn,zn),i=e[t++],r=e[t++];break;case Ee.C:HT(i,r,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],Nn,zn),i=e[t++],r=e[t++];break;case Ee.Q:WT(i,r,e[t++],e[t++],e[t],e[t+1],Nn,zn),i=e[t++],r=e[t++];break;case Ee.A:var u=e[t++],h=e[t++],c=e[t++],p=e[t++],d=e[t++],f=e[t++]+d;t+=1;var g=!e[t++];l&&(o=hr(d)*c+u,a=cr(d)*p+h),YT(u,h,c,p,d,f,g,Nn,zn),i=hr(f)*c+u,r=cr(f)*p+h;break;case Ee.R:Hy(o=i=e[t++],a=r=e[t++],o+e[t++],a+e[t++],Nn,zn);break;case Ee.Z:i=o,r=a}Kn(En,En,Nn),Jn(bi,bi,zn)}return t===0&&(En[0]=En[1]=bi[0]=bi[1]=0),new ye(En[0],En[1],bi[0]-En[0],bi[1]-En[1])},n.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,r=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,h=0,c=0,p=0;p<e;){var d=t[p++],f=p===1;f&&(s=o=t[p],l=a=t[p+1]);var g=-1;switch(d){case Ee.M:o=s=t[p++],a=l=t[p++];break;case Ee.L:var y=t[p++],v=(_=t[p++])-a;(ti(R=y-o)>i||ti(v)>r||p===e-1)&&(g=Math.sqrt(R*R+v*v),o=y,a=_);break;case Ee.C:var m=t[p++],x=t[p++],_=(y=t[p++],t[p++]),b=t[p++],w=t[p++];g=UM(o,a,m,x,y,_,b,w,10),o=b,a=w;break;case Ee.Q:g=ZM(o,a,m=t[p++],x=t[p++],y=t[p++],_=t[p++],10),o=y,a=_;break;case Ee.A:var S=t[p++],M=t[p++],T=t[p++],I=t[p++],C=t[p++],D=t[p++],L=D+C;p+=1,t[p++],f&&(s=hr(C)*T+S,l=cr(C)*I+M),g=Cc(T,I)*Ic(Si,Math.abs(D)),o=hr(L)*T+S,a=cr(L)*I+M;break;case Ee.R:s=o=t[p++],l=a=t[p++],g=2*t[p++]+2*t[p++];break;case Ee.Z:var R=s-o;v=l-a,g=Math.sqrt(R*R+v*v),o=s,a=l}g>=0&&(u[c++]=g,h+=g)}return this._pathLen=h,h},n.prototype.rebuildPath=function(t,e){var i,r,o,a,s,l,u,h,c,p,d=this.data,f=this._ux,g=this._uy,y=this._len,v=e<1,m=0,x=0,_=0;if(!v||(this._pathSegLen||this._calculateLength(),u=this._pathSegLen,h=e*this._pathLen))e:for(var b=0;b<y;){var w=d[b++],S=b===1;switch(S&&(i=o=d[b],r=a=d[b+1]),w!==Ee.L&&_>0&&(t.lineTo(c,p),_=0),w){case Ee.M:i=o=d[b++],r=a=d[b++],t.moveTo(o,a);break;case Ee.L:s=d[b++],l=d[b++];var M=ti(s-o),T=ti(l-a);if(M>f||T>g){if(v){if(m+($=u[x++])>h){var I=(h-m)/$;t.lineTo(o*(1-I)+s*I,a*(1-I)+l*I);break e}m+=$}t.lineTo(s,l),o=s,a=l,_=0}else{var C=M*M+T*T;C>_&&(c=s,p=l,_=C)}break;case Ee.C:var D=d[b++],L=d[b++],R=d[b++],P=d[b++],E=d[b++],k=d[b++];if(v){if(m+($=u[x++])>h){Ns(o,D,R,E,I=(h-m)/$,lr),Ns(a,L,P,k,I,ur),t.bezierCurveTo(lr[1],ur[1],lr[2],ur[2],lr[3],ur[3]);break e}m+=$}t.bezierCurveTo(D,L,R,P,E,k),o=E,a=k;break;case Ee.Q:if(D=d[b++],L=d[b++],R=d[b++],P=d[b++],v){if(m+($=u[x++])>h){zs(o,D,R,I=(h-m)/$,lr),zs(a,L,P,I,ur),t.quadraticCurveTo(lr[1],ur[1],lr[2],ur[2]);break e}m+=$}t.quadraticCurveTo(D,L,R,P),o=R,a=P;break;case Ee.A:var O=d[b++],N=d[b++],B=d[b++],z=d[b++],U=d[b++],Z=d[b++],F=d[b++],W=!d[b++],K=B>z?B:z,se=ti(B-z)>.001,he=U+Z,te=!1;if(v&&(m+($=u[x++])>h&&(he=U+Z*(h-m)/$,te=!0),m+=$),se&&t.ellipse?t.ellipse(O,N,B,z,F,U,he,W):t.arc(O,N,K,U,he,W),te)break e;S&&(i=hr(U)*B+O,r=cr(U)*z+N),o=hr(he)*B+O,a=cr(he)*z+N;break;case Ee.R:i=o=d[b],r=a=d[b+1],s=d[b++],l=d[b++];var j=d[b++],J=d[b++];if(v){if(m+($=u[x++])>h){var H=h-m;t.moveTo(s,l),t.lineTo(s+Ic(H,j),l),(H-=j)>0&&t.lineTo(s+j,l+Ic(H,J)),(H-=J)>0&&t.lineTo(s+Cc(j-H,0),l+J),(H-=j)>0&&t.lineTo(s,l+Cc(J-H,0));break e}m+=$}t.rect(s,l,j,J);break;case Ee.Z:if(v){var $;if(m+($=u[x++])>h){I=(h-m)/$,t.lineTo(o*(1-I)+i*I,a*(1-I)+r*I);break e}m+=$}t.closePath(),o=i,a=r}}},n.prototype.clone=function(){var t=new n,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},n.CMD=Ee,n.initDefaultProps=function(){var t=n.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),n}();const Mi=XT;function Qr(n,t,e,i,r,o,a){if(r===0)return!1;var s=r,l=0;if(a>t+s&&a>i+s||a<t-s&&a<i-s||o>n+s&&o>e+s||o<n-s&&o<e-s)return!1;if(n===e)return Math.abs(o-n)<=s/2;var u=(l=(t-i)/(n-e))*o-a+(n*i-e*t)/(n-e);return u*u/(l*l+1)<=s/2*s/2}function UT(n,t,e,i,r,o,a,s,l,u,h){if(l===0)return!1;var c=l;return!(h>t+c&&h>i+c&&h>o+c&&h>s+c||h<t-c&&h<i-c&&h<o-c&&h<s-c||u>n+c&&u>e+c&&u>r+c&&u>a+c||u<n-c&&u<e-c&&u<r-c&&u<a-c)&&Xg(n,t,e,i,r,o,a,s,u,h,null)<=c/2}function ZT(n,t,e,i,r,o,a,s,l){if(a===0)return!1;var u=a;return!(l>t+u&&l>i+u&&l>o+u||l<t-u&&l<i-u&&l<o-u||s>n+u&&s>e+u&&s>r+u||s<n-u&&s<e-u&&s<r-u)&&jg(n,t,e,i,r,o,s,l,null)<=u/2}var Uy=2*Math.PI;function ni(n){return(n%=Uy)<0&&(n+=Uy),n}var pa=2*Math.PI;function jT(n,t,e,i,r,o,a,s,l){if(a===0)return!1;var u=a;s-=n,l-=t;var h=Math.sqrt(s*s+l*l);if(h-u>e||h+u<e)return!1;if(Math.abs(i-r)%pa<1e-4)return!0;if(o){var c=i;i=ni(r),r=ni(c)}else i=ni(i),r=ni(r);i>r&&(r+=pa);var p=Math.atan2(l,s);return p<0&&(p+=pa),p>=i&&p<=r||p+pa>=i&&p+pa<=r}function ii(n,t,e,i,r,o){if(o>t&&o>i||o<t&&o<i||i===t)return 0;var a=(o-t)/(i-t),s=i<t?1:-1;a!==1&&a!==0||(s=i<t?.5:-.5);var l=a*(e-n)+n;return l===r?1/0:l>r?s:0}var Ti=Mi.CMD,pr=2*Math.PI,qT=1e-4,_t=[-1,-1,-1],en=[-1,-1];function KT(n,t,e,i,r,o,a,s,l,u){if(u>t&&u>i&&u>o&&u>s||u<t&&u<i&&u<o&&u<s)return 0;var h,c=Es(t,i,o,s,u,_t);if(c===0)return 0;for(var p=0,d=-1,f=void 0,g=void 0,y=0;y<c;y++){var v=_t[y],m=v===0||v===1?.5:1;tt(n,e,r,a,v)<l||(d<0&&(d=Yg(t,i,o,s,en),en[1]<en[0]&&d>1&&(h=void 0,h=en[0],en[0]=en[1],en[1]=h),f=tt(t,i,o,s,en[0]),d>1&&(g=tt(t,i,o,s,en[1]))),d===2?v<en[0]?p+=f<t?m:-m:v<en[1]?p+=g<f?m:-m:p+=s<g?m:-m:v<en[0]?p+=f<t?m:-m:p+=s<f?m:-m)}return p}function JT(n,t,e,i,r,o,a,s){if(s>t&&s>i&&s>o||s<t&&s<i&&s<o)return 0;var l=function(f,g,y,v,m){var x=f-2*g+y,_=2*(g-f),b=f-v,w=0;if(xi(x))Hg(_)&&(M=-b/_)>=0&&M<=1&&(m[w++]=M);else{var S=_*_-4*x*b;if(xi(S))(M=-_/(2*x))>=0&&M<=1&&(m[w++]=M);else if(S>0){var M,T=mi(S),I=(-_-T)/(2*x);(M=(-_+T)/(2*x))>=0&&M<=1&&(m[w++]=M),I>=0&&I<=1&&(m[w++]=I)}}return w}(t,i,o,s,_t);if(l===0)return 0;var u=Zg(t,i,o);if(u>=0&&u<=1){for(var h=0,c=pt(t,i,o,u),p=0;p<l;p++){var d=_t[p]===0||_t[p]===1?.5:1;pt(n,e,r,_t[p])<a||(_t[p]<u?h+=c<t?d:-d:h+=o<c?d:-d)}return h}return d=_t[0]===0||_t[0]===1?.5:1,pt(n,e,r,_t[0])<a?0:o<t?d:-d}function $T(n,t,e,i,r,o,a,s){if((s-=t)>e||s<-e)return 0;var l=Math.sqrt(e*e-s*s);_t[0]=-l,_t[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=pr-1e-4){i=0,r=pr;var h=o?1:-1;return a>=_t[0]+n&&a<=_t[1]+n?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=pr,r+=pr);for(var p=0,d=0;d<2;d++){var f=_t[d];if(f+n>a){var g=Math.atan2(s,f);h=o?1:-1,g<0&&(g=pr+g),(g>=i&&g<=r||g+pr>=i&&g+pr<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),p+=h)}}return p}function Zy(n,t,e,i,r){for(var o,a,s,l,u=n.data,h=n.len(),c=0,p=0,d=0,f=0,g=0,y=0;y<h;){var v=u[y++],m=y===1;switch(v===Ti.M&&y>1&&(e||(c+=ii(p,d,f,g,i,r))),m&&(f=p=u[y],g=d=u[y+1]),v){case Ti.M:p=f=u[y++],d=g=u[y++];break;case Ti.L:if(e){if(Qr(p,d,u[y],u[y+1],t,i,r))return!0}else c+=ii(p,d,u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case Ti.C:if(e){if(UT(p,d,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],t,i,r))return!0}else c+=KT(p,d,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case Ti.Q:if(e){if(ZT(p,d,u[y++],u[y++],u[y],u[y+1],t,i,r))return!0}else c+=JT(p,d,u[y++],u[y++],u[y],u[y+1],i,r)||0;p=u[y++],d=u[y++];break;case Ti.A:var x=u[y++],_=u[y++],b=u[y++],w=u[y++],S=u[y++],M=u[y++];y+=1;var T=!!(1-u[y++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,m?(f=o,g=a):c+=ii(p,d,o,a,i,r);var I=(i-x)*w/b+x;if(e){if(jT(x,_,w,S,S+M,T,t,I,r))return!0}else c+=$T(x,_,w,S,S+M,T,I,r);p=Math.cos(S+M)*b+x,d=Math.sin(S+M)*w+_;break;case Ti.R:if(f=p=u[y++],g=d=u[y++],o=f+u[y++],a=g+u[y++],e){if(Qr(f,g,o,g,t,i,r)||Qr(o,g,o,a,t,i,r)||Qr(o,a,f,a,t,i,r)||Qr(f,a,f,g,t,i,r))return!0}else c+=ii(o,g,o,a,i,r),c+=ii(f,a,f,g,i,r);break;case Ti.Z:if(e){if(Qr(p,d,f,g,t,i,r))return!0}else c+=ii(p,d,f,g,i,r);p=f,d=g}}return e||(s=d,l=g,Math.abs(s-l)<qT)||(c+=ii(p,d,f,g,i,r)||0),c!==0}var jy=le({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},or),QT={style:le({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},el.style)},Lc=ea.concat(["invisible","culling","z","z2","zlevel","parent"]),eI=function(n){function t(i){return n.call(this,i)||this}var e;return V(t,n),t.prototype.update=function(){var i=this;n.prototype.update.call(this);var r=this.style;if(r.decal){var o=this._decalEl=this._decalEl||new t;o.buildPath===t.prototype.buildPath&&(o.buildPath=function(u){i.buildPath(u,i.shape)}),o.silent=!0;var a=o.style;for(var s in r)a[s]!==r[s]&&(a[s]=r[s]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var l=0;l<Lc.length;++l)o[Lc[l]]=this[Lc[l]];o.__dirty|=Vt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(i){var r=Oe(i);this.shape=this.getDefaultShape();var o=this.getDefaultStyle();o&&this.useStyle(o);for(var a=0;a<r.length;a++){var s=r[a],l=i[s];s==="style"?this.style?G(this.style,l):this.useStyle(l):s==="shape"?G(this.shape,l):n.prototype.attrKV.call(this,s,l)}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 i=this.style.fill;if(i!=="none"){if(q(i)){var r=$o(i,0);return r>.5?ec:r>.2?"#eee":tc}if(i)return tc}return ec},t.prototype.getInsideTextStroke=function(i){var r=this.style.fill;if(q(r)){var o=this.__zr;if(!(!o||!o.isDarkMode())==$o(i,0)<.4)return r}},t.prototype.buildPath=function(i,r,o){},t.prototype.pathUpdated=function(){this.__dirty&=~Yr},t.prototype.getUpdatedPathProxy=function(i){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,i),this.path},t.prototype.createPathProxy=function(){this.path=new Mi(!1)},t.prototype.hasStroke=function(){var i=this.style,r=i.stroke;return!(r==null||r==="none"||!(i.lineWidth>0))},t.prototype.hasFill=function(){var i=this.style.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var i=this._rect,r=this.style,o=!i;if(o){var a=!1;this.path||(a=!0,this.createPathProxy());var s=this.path;(a||this.__dirty&Yr)&&(s.beginPath(),this.buildPath(s,this.shape,!1),this.pathUpdated()),i=s.getBoundingRect()}if(this._rect=i,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=i.clone());if(this.__dirty||o){l.copy(i);var u=r.strokeNoScale?this.getLineScale():1,h=r.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;h=Math.max(h,c??4)}u>1e-10&&(l.width+=h/u,l.height+=h/u,l.x-=h/u/2,l.y-=h/u/2)}return l}return i},t.prototype.contain=function(i,r){var o=this.transformCoordToLocal(i,r),a=this.getBoundingRect(),s=this.style;if(i=o[0],r=o[1],a.contain(i,r)){var l=this.path;if(this.hasStroke()){var u=s.lineWidth,h=s.strokeNoScale?this.getLineScale():1;if(h>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),function(c,p,d,f){return Zy(c,p,!0,d,f)}(l,u/h,i,r)))return!0}if(this.hasFill())return function(c,p,d){return Zy(c,0,!1,p,d)}(l,i,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Yr,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(i){return this.animate("shape",i)},t.prototype.updateDuringAnimation=function(i){i==="style"?this.dirtyStyle():i==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(i,r){i==="shape"?this.setShape(r):n.prototype.attrKV.call(this,i,r)},t.prototype.setShape=function(i,r){var o=this.shape;return o||(o=this.shape={}),typeof i=="string"?o[i]=r:G(o,i),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Yr)},t.prototype.createStyle=function(i){return Wo(jy,i)},t.prototype._innerSaveToNormal=function(i){n.prototype._innerSaveToNormal.call(this,i);var r=this._normalState;i.shape&&!r.shape&&(r.shape=G({},this.shape))},t.prototype._applyStateObj=function(i,r,o,a,s,l){n.prototype._applyStateObj.call(this,i,r,o,a,s,l);var u,h=!(r&&a);if(r&&r.shape?s?a?u=r.shape:(u=G({},o.shape),G(u,r.shape)):(u=G({},a?this.shape:o.shape),G(u,r.shape)):h&&(u=o.shape),u)if(s){this.shape=G({},this.shape);for(var c={},p=Oe(u),d=0;d<p.length;d++){var f=p[d];typeof u[f]=="object"?this.shape[f]=u[f]:c[f]=u[f]}this._transitionState(i,{shape:c},l)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(i){for(var r,o=n.prototype._mergeStates.call(this,i),a=0;a<i.length;a++){var s=i[a];s.shape&&(r=r||{},this._mergeStyle(r,s.shape))}return r&&(o.shape=r),o},t.prototype.getAnimationStyleProps=function(){return QT},t.prototype.isZeroArea=function(){return!1},t.extend=function(i){var r=function(a){function s(l){var u=a.call(this,l)||this;return i.init&&i.init.call(u,l),u}return V(s,a),s.prototype.getDefaultStyle=function(){return oe(i.style)},s.prototype.getDefaultShape=function(){return oe(i.shape)},s}(t);for(var o in i)typeof i[o]=="function"&&(r.prototype[o]=i[o]);return r},t.initDefaultProps=((e=t.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,void(e.__dirty=2|Vt|Yr)),t}(ar);const De=eI;var tI=le({strokeFirst:!0,font:Gi,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},jy),qy=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),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.fill;return e!=null&&e!=="none"},t.prototype.createStyle=function(e){return Wo(tI,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 r=ta(i,e.font,e.textAlign,e.textBaseline);if(r.x+=e.x||0,r.y+=e.y||0,this.hasStroke()){var o=e.lineWidth;r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o}this._rect=r}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(ar);qy.prototype.type="tspan";const rl=qy;var nI=le({x:0,y:0},or),iI={style:le({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},el.style)},Ky=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.createStyle=function(e){return Wo(nI,e)},t.prototype._getSize=function(e){var i=this.style,r=i[e];if(r!=null)return r;var o,a=(o=i.image)&&typeof o!="string"&&o.width&&o.height?i.image:this.__image;if(!a)return 0;var s=e==="width"?"height":"width",l=i[s];return l==null?a[e]:a[e]/a[s]*l},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return iI},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new ye(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ar);Ky.prototype.type="image";const Gt=Ky;var eo=Math.round;function Jy(n,t,e){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;n.x1=i,n.x2=r,n.y1=o,n.y2=a;var s=e&&e.lineWidth;return s&&(eo(2*i)===eo(2*r)&&(n.x1=n.x2=dr(i,s,!0)),eo(2*o)===eo(2*a)&&(n.y1=n.y2=dr(o,s,!0))),n}}function $y(n,t,e){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;n.x=i,n.y=r,n.width=o,n.height=a;var s=e&&e.lineWidth;return s&&(n.x=dr(i,s,!0),n.y=dr(r,s,!0),n.width=Math.max(dr(i+o,s,!1)-n.x,o===0?0:1),n.height=Math.max(dr(r+a,s,!1)-n.y,a===0?0:1)),n}}function dr(n,t,e){if(!t)return n;var i=eo(2*n);return(i+eo(t))%2==0?i/2:(i+(e?1:-1))/2}var rI=function(){this.x=0,this.y=0,this.width=0,this.height=0},oI={},Qy=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultShape=function(){return new rI},t.prototype.buildPath=function(e,i){var r,o,a,s;if(this.subPixelOptimize){var l=$y(oI,i,this.style);r=l.x,o=l.y,a=l.width,s=l.height,l.r=i.r,i=l}else r=i.x,o=i.y,a=i.width,s=i.height;i.r?function(u,h){var c,p,d,f,g,y=h.x,v=h.y,m=h.width,x=h.height,_=h.r;m<0&&(y+=m,m=-m),x<0&&(v+=x,x=-x),typeof _=="number"?c=p=d=f=_:_ instanceof Array?_.length===1?c=p=d=f=_[0]:_.length===2?(c=d=_[0],p=f=_[1]):_.length===3?(c=_[0],p=f=_[1],d=_[2]):(c=_[0],p=_[1],d=_[2],f=_[3]):c=p=d=f=0,c+p>m&&(c*=m/(g=c+p),p*=m/g),d+f>m&&(d*=m/(g=d+f),f*=m/g),p+d>x&&(p*=x/(g=p+d),d*=x/g),c+f>x&&(c*=x/(g=c+f),f*=x/g),u.moveTo(y+c,v),u.lineTo(y+m-p,v),p!==0&&u.arc(y+m-p,v+p,p,-Math.PI/2,0),u.lineTo(y+m,v+x-d),d!==0&&u.arc(y+m-d,v+x-d,d,0,Math.PI/2),u.lineTo(y+f,v+x),f!==0&&u.arc(y+f,v+x-f,f,Math.PI/2,Math.PI),u.lineTo(y,v+c),c!==0&&u.arc(y+c,v+c,c,Math.PI,1.5*Math.PI)}(e,i):e.rect(r,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(De);Qy.prototype.type="rect";const Ie=Qy;var ev={fill:"#000"},aI={style:le({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},el.style)},tv=function(n){function t(e){var i=n.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=ev,i.attr(e),i}return V(t,n),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){n.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)):n.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):n.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),n.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,rv(e=this.style),A(e.rich,rv),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){n.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){n.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 ye(0,0,0,0),i=this._children,r=[],o=null,a=0;a<i.length;a++){var s=i[a],l=s.getBoundingRect(),u=s.getLocalTransform(r);u?(e.copy(l),e.applyTransform(u),(o=o||e.clone()).union(e)):(o=o||l.clone()).union(l)}this._rect=o||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||ev},t.prototype.setTextContent=function(e){throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(e,i){if(!i)return e;var r=i.rich,o=e.rich||r&&{};return G(e,i),r&&o?(this._mergeRich(o,r),e.rich=o):o&&(e.rich=o),e},t.prototype._mergeRich=function(e,i){for(var r=Oe(i),o=0;o<r.length;o++){var a=r[o];e[a]=e[a]||{},G(e[a],i[a])}},t.prototype.getAnimationStyleProps=function(){return aI},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||Gi,r=e.padding,o=function(E,k){E!=null&&(E+="");var O,N=k.overflow,B=k.padding,z=k.font,U=N==="truncate",Z=rc(z),F=Me(k.lineHeight,Z),W=!!k.backgroundColor,K=k.lineOverflow==="truncate",se=k.width,he=(O=se==null||N!=="break"&&N!=="breakAll"?E?E.split(`
- `):[]:E?Fy(E,k.font,se,N==="breakAll",0).lines:[]).length*F,te=Me(k.height,he);if(he>te&&K){var j=Math.floor(te/F);O=O.slice(0,j)}if(E&&U&&se!=null)for(var J=zy(se,z,k.ellipsis,{minChar:k.truncateMinChar,placeholder:k.placeholder}),H=0;H<O.length;H++)O[H]=By(O[H],J);var $=te,re=0;for(H=0;H<O.length;H++)re=Math.max(Ft(O[H],z),re);se==null&&(se=re);var Ce=re;return B&&($+=B[0]+B[2],Ce+=B[1]+B[3],se+=B[1]+B[3]),W&&(Ce=se),{lines:O,height:te,outerWidth:Ce,outerHeight:$,lineHeight:F,calculatedLineHeight:Z,contentWidth:re,contentHeight:he,width:se}}(lv(e),e),a=Pc(e),s=!!e.backgroundColor,l=o.outerHeight,u=o.outerWidth,h=o.contentWidth,c=o.lines,p=o.lineHeight,d=this._defaultStyle,f=e.x||0,g=e.y||0,y=e.align||d.align||"left",v=e.verticalAlign||d.verticalAlign||"top",m=f,x=qr(g,o.contentHeight,v);if(a||r){var _=na(f,u,y),b=qr(g,l,v);a&&this._renderBackground(e,e,_,b,u,l)}x+=p/2,r&&(m=sv(f,y,r),v==="top"?x+=r[0]:v==="bottom"&&(x-=r[2]));for(var w=0,S=!1,M=av("fill"in e?e.fill:(S=!0,d.fill)),T=ov("stroke"in e?e.stroke:s||d.autoStroke&&!S?null:(w=2,d.stroke)),I=e.textShadowBlur>0,C=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),D=o.calculatedLineHeight,L=0;L<c.length;L++){var R=this._getOrCreateChild(rl),P=R.createStyle();R.useStyle(P),P.text=c[L],P.x=m,P.y=x,y&&(P.textAlign=y),P.textBaseline="middle",P.opacity=e.opacity,P.strokeFirst=!0,I&&(P.shadowBlur=e.textShadowBlur||0,P.shadowColor=e.textShadowColor||"transparent",P.shadowOffsetX=e.textShadowOffsetX||0,P.shadowOffsetY=e.textShadowOffsetY||0),P.stroke=T,P.fill=M,T&&(P.lineWidth=e.lineWidth||w,P.lineDash=e.lineDash,P.lineDashOffset=e.lineDashOffset||0),P.font=i,iv(P,e),x+=p,C&&R.setBoundingRect(new ye(na(P.x,e.width,P.textAlign),qr(P.y,D,P.textBaseline),h,D))}},t.prototype._updateRichTexts=function(){var e=this.style,i=function(R,P){var E=new zT;if(R!=null&&(R+=""),!R)return E;for(var k,O=P.width,N=P.height,B=P.overflow,z=B!=="break"&&B!=="breakAll"||O==null?null:{width:O,accumWidth:0,breakAll:B==="breakAll"},U=xc.lastIndex=0;(k=xc.exec(R))!=null;){var Z=k.index;Z>U&&_c(E,R.substring(U,Z),P,z),_c(E,k[2],P,z,k[1]),U=xc.lastIndex}U<R.length&&_c(E,R.substring(U,R.length),P,z);var F=[],W=0,K=0,se=P.padding,he=B==="truncate",te=P.lineOverflow==="truncate";function j(Ke,ht,Ye){Ke.width=ht,Ke.lineHeight=Ye,W+=Ye,K=Math.max(K,ht)}e:for(var J=0;J<E.lines.length;J++){for(var H=E.lines[J],$=0,re=0,Ce=0;Ce<H.tokens.length;Ce++){var ge=(ce=H.tokens[Ce]).styleName&&P.rich[ce.styleName]||{},me=ce.textPadding=ge.padding,we=me?me[1]+me[3]:0,Le=ce.font=ge.font||P.font;ce.contentHeight=rc(Le);var be=Me(ge.height,ce.contentHeight);if(ce.innerHeight=be,me&&(be+=me[0]+me[2]),ce.height=be,ce.lineHeight=vi(ge.lineHeight,P.lineHeight,be),ce.align=ge&&ge.align||P.align,ce.verticalAlign=ge&&ge.verticalAlign||"middle",te&&N!=null&&W+ce.lineHeight>N){Ce>0?(H.tokens=H.tokens.slice(0,Ce),j(H,re,$),E.lines=E.lines.slice(0,J+1)):E.lines=E.lines.slice(0,J);break e}var Pe=ge.width,Ve=Pe==null||Pe==="auto";if(typeof Pe=="string"&&Pe.charAt(Pe.length-1)==="%")ce.percentWidth=Pe,F.push(ce),ce.contentWidth=Ft(ce.text,Le);else{if(Ve){var qe=ge.backgroundColor,Fe=qe&&qe.image;Fe&&Qs(Fe=RT(Fe))&&(ce.width=Math.max(ce.width,Fe.width*be/Fe.height))}var Ge=he&&O!=null?O-re:null;Ge!=null&&Ge<ce.width?!Ve||Ge<we?(ce.text="",ce.width=ce.contentWidth=0):(ce.text=Ny(ce.text,Ge-we,Le,P.ellipsis,{minChar:P.truncateMinChar}),ce.width=ce.contentWidth=Ft(ce.text,Le)):ce.contentWidth=Ft(ce.text,Le)}ce.width+=we,re+=ce.width,ge&&($=Math.max($,ce.lineHeight))}j(H,re,$)}for(E.outerWidth=E.width=Me(O,K),E.outerHeight=E.height=Me(N,W),E.contentHeight=W,E.contentWidth=K,se&&(E.outerWidth+=se[1]+se[3],E.outerHeight+=se[0]+se[2]),J=0;J<F.length;J++){var ce,yt=(ce=F[J]).percentWidth;ce.width=parseInt(yt,10)/100*E.width}return E}(lv(e),e),r=i.width,o=i.outerWidth,a=i.outerHeight,s=e.padding,l=e.x||0,u=e.y||0,h=this._defaultStyle,c=e.align||h.align,p=e.verticalAlign||h.verticalAlign,d=na(l,o,c),f=qr(u,a,p),g=d,y=f;s&&(g+=s[3],y+=s[0]);var v=g+r;Pc(e)&&this._renderBackground(e,e,d,f,o,a);for(var m=!!e.backgroundColor,x=0;x<i.lines.length;x++){for(var _=i.lines[x],b=_.tokens,w=b.length,S=_.lineHeight,M=_.width,T=0,I=g,C=v,D=w-1,L=void 0;T<w&&(!(L=b[T]).align||L.align==="left");)this._placeToken(L,e,S,y,I,"left",m),M-=L.width,I+=L.width,T++;for(;D>=0&&(L=b[D]).align==="right";)this._placeToken(L,e,S,y,C,"right",m),M-=L.width,C-=L.width,D--;for(I+=(r-(I-g)-(v-C)-M)/2;T<=D;)L=b[T],this._placeToken(L,e,S,y,I+L.width/2,"center",m),I+=L.width,T++;y+=S}},t.prototype._placeToken=function(e,i,r,o,a,s,l){var u=i.rich[e.styleName]||{};u.text=e.text;var h=e.verticalAlign,c=o+r/2;h==="top"?c=o+e.height/2:h==="bottom"&&(c=o+r-e.height/2),!e.isLineHolder&&Pc(u)&&this._renderBackground(u,i,s==="right"?a-e.width:s==="center"?a-e.width/2:a,c-e.height/2,e.width,e.height);var p=!!u.backgroundColor,d=e.textPadding;d&&(a=sv(a,s,d),c-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(rl),g=f.createStyle();f.useStyle(g);var y=this._defaultStyle,v=!1,m=0,x=av("fill"in u?u.fill:"fill"in i?i.fill:(v=!0,y.fill)),_=ov("stroke"in u?u.stroke:"stroke"in i?i.stroke:p||l||y.autoStroke&&!v?null:(m=2,y.stroke)),b=u.textShadowBlur>0||i.textShadowBlur>0;g.text=e.text,g.x=a,g.y=c,b&&(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||Gi,g.opacity=vi(u.opacity,i.opacity,1),iv(g,u),_&&(g.lineWidth=vi(u.lineWidth,i.lineWidth,m),g.lineDash=Me(u.lineDash,i.lineDash),g.lineDashOffset=i.lineDashOffset||0,g.stroke=_),x&&(g.fill=x);var w=e.contentWidth,S=e.contentHeight;f.setBoundingRect(new ye(na(g.x,w,g.textAlign),qr(g.y,S,g.textBaseline),w,S))},t.prototype._renderBackground=function(e,i,r,o,a,s){var l,u,h,c=e.backgroundColor,p=e.borderWidth,d=e.borderColor,f=c&&c.image,g=c&&!f,y=e.borderRadius,v=this;if(g||e.lineHeight||p&&d){(l=this._getOrCreateChild(Ie)).useStyle(l.createStyle()),l.style.fill=null;var m=l.shape;m.x=r,m.y=o,m.width=a,m.height=s,m.r=y,l.dirtyShape()}if(g)(h=l.style).fill=c||null,h.fillOpacity=Me(e.fillOpacity,1);else if(f){(u=this._getOrCreateChild(Gt)).onload=function(){v.dirtyStyle()};var x=u.style;x.image=c.image,x.x=r,x.y=o,x.width=a,x.height=s}p&&d&&((h=l.style).lineWidth=p,h.stroke=d,h.strokeOpacity=Me(e.strokeOpacity,1),h.lineDash=e.borderDash,h.lineDashOffset=e.borderDashOffset||0,l.strokeContainThreshold=0,l.hasFill()&&l.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2));var _=(l||u).style;_.shadowBlur=e.shadowBlur||0,_.shadowColor=e.shadowColor||"transparent",_.shadowOffsetX=e.shadowOffsetX||0,_.shadowOffsetY=e.shadowOffsetY||0,_.opacity=vi(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return function(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}(e)&&(i=[e.fontStyle,e.fontWeight,uI(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&Xt(i)||e.textFont||e.font},t}(ar),sI={left:!0,right:1,center:1},lI={top:1,bottom:1,middle:1},nv=["fontStyle","fontWeight","fontSize","fontFamily"];function uI(n){return typeof n!="string"||n.indexOf("px")===-1&&n.indexOf("rem")===-1&&n.indexOf("em")===-1?isNaN(+n)?"12px":n+"px":n}function iv(n,t){for(var e=0;e<nv.length;e++){var i=nv[e],r=t[i];r!=null&&(n[i]=r)}}function rv(n){if(n){n.font=tv.makeFont(n);var t=n.align;t==="middle"&&(t="center"),n.align=t==null||sI[t]?t:"left";var e=n.verticalAlign;e==="center"&&(e="middle"),n.verticalAlign=e==null||lI[e]?e:"top",n.padding&&(n.padding=xh(n.padding))}}function ov(n,t){return n==null||t<=0||n==="transparent"||n==="none"?null:n.image||n.colorStops?"#000":n}function av(n){return n==null||n==="none"?null:n.image||n.colorStops?"#000":n}function sv(n,t,e){return t==="right"?n-e[1]:t==="center"?n+e[3]/2-e[1]/2:n+e[3]}function lv(n){var t=n.text;return t!=null&&(t+=""),t}function Pc(n){return!!(n.backgroundColor||n.lineHeight||n.borderWidth&&n.borderColor)}const ke=tv;var _e=Ne(),Oc=function(n,t,e,i){if(i){var r=_e(i);r.dataIndex=e,r.dataType=t,r.seriesIndex=n,i.type==="group"&&i.traverse(function(o){var a=_e(o);a.seriesIndex=n,a.dataIndex=e,a.dataType=t})}},uv=1,hv={},cv=Ne(),Rc=Ne(),Ec=0,da=1,ol=2,tn=["emphasis","blur","select"],al=["normal","emphasis","blur","select"],pv=10,hI=9,fr="highlight",sl="downplay",fa="select",ll="unselect",ga="toggleSelect";function to(n){return n!=null&&n!=="none"}var dv=new qo(100);function fv(n){if(q(n)){var t=dv.get(n);return t||(t=Wh(n,-.1),dv.put(n,t)),t}if(Go(n)){var e=G({},n);return e.colorStops=X(n.colorStops,function(i){return{offset:i.offset,color:Wh(i.color,-.1)}}),e}return n}function ul(n,t,e){n.onHoverStateChange&&(n.hoverState||0)!==e&&n.onHoverStateChange(t),n.hoverState=e}function gv(n){ul(n,"emphasis",ol)}function yv(n){n.hoverState===ol&&ul(n,"normal",Ec)}function Nc(n){ul(n,"blur",da)}function vv(n){n.hoverState===da&&ul(n,"normal",Ec)}function cI(n){n.selected=!0}function pI(n){n.selected=!1}function mv(n,t,e){t(n,e)}function ri(n,t,e){mv(n,t,e),n.isGroup&&n.traverse(function(i){mv(i,t,e)})}function hl(n,t){switch(t){case"emphasis":n.hoverState=ol;break;case"normal":n.hoverState=Ec;break;case"blur":n.hoverState=da;break;case"select":n.selected=!0}}function zc(n,t){var e=this.states[n];if(this.style){if(n==="emphasis")return function(i,r,o,a){var s=o&&Se(o,"select")>=0,l=!1;if(i instanceof De){var u=cv(i),h=s&&u.selectFill||u.normalFill,c=s&&u.selectStroke||u.normalStroke;if(to(h)||to(c)){var p=(a=a||{}).style||{};p.fill==="inherit"?(l=!0,a=G({},a),(p=G({},p)).fill=h):!to(p.fill)&&to(h)?(l=!0,a=G({},a),(p=G({},p)).fill=fv(h)):!to(p.stroke)&&to(c)&&(l||(a=G({},a),p=G({},p)),p.stroke=fv(c)),a.style=p}}if(a&&a.z2==null){l||(a=G({},a));var d=i.z2EmphasisLift;a.z2=i.z2+(d??pv)}return a}(this,0,t,e);if(n==="blur")return function(i,r,o){var a=Se(i.currentStates,r)>=0,s=i.style.opacity,l=a?null:function(h,c,p,d){for(var f=h.style,g={},y=0;y<c.length;y++){var v=c[y],m=f[v];g[v]=m??(d&&d[v])}for(y=0;y<h.animators.length;y++){var x=h.animators[y];x.__fromStateTransition&&x.__fromStateTransition.indexOf(p)<0&&x.targetName==="style"&&x.saveTo(g,c)}return g}(i,["opacity"],r,{opacity:1}),u=(o=o||{}).style||{};return u.opacity==null&&(o=G({},o),u=G({opacity:a?s:.1*l.opacity},u),o.style=u),o}(this,n,e);if(n==="select")return function(i,r,o){if(o&&o.z2==null){o=G({},o);var a=i.z2SelectLift;o.z2=i.z2+(a??hI)}return o}(this,0,e)}return e}function cl(n){n.stateProxy=zc;var t=n.getTextContent(),e=n.getTextGuideLine();t&&(t.stateProxy=zc),e&&(e.stateProxy=zc)}function xv(n,t){!Mv(n,t)&&!n.__highByOuter&&ri(n,gv)}function _v(n,t){!Mv(n,t)&&!n.__highByOuter&&ri(n,yv)}function no(n,t){n.__highByOuter|=1<<(t||0),ri(n,gv)}function io(n,t){!(n.__highByOuter&=~(1<<(t||0)))&&ri(n,yv)}function wv(n){ri(n,vv)}function bv(n){ri(n,cI)}function Sv(n){ri(n,pI)}function Mv(n,t){return n.__highDownSilentOnTouch&&t.zrByTouch}function Tv(n){var t=n.getModel(),e=[],i=[];t.eachComponent(function(r,o){var a=Rc(o),s=r==="series",l=s?n.getViewOfSeriesModel(o):n.getViewOfComponentModel(o);!s&&i.push(l),a.isBlured&&(l.group.traverse(function(u){vv(u)}),s&&e.push(o)),a.isBlured=!1}),A(i,function(r){r&&r.toggleBlurSeries&&r.toggleBlurSeries(e,!1,t)})}function Bc(n,t,e,i){var r=i.getModel();function o(u,h){for(var c=0;c<h.length;c++){var p=u.getItemGraphicEl(h[c]);p&&wv(p)}}if(e=e||"coordinateSystem",n!=null&&t&&t!=="none"){var a=r.getSeriesByIndex(n),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(u){var h=a===u,c=u.coordinateSystem;if(c&&c.master&&(c=c.master),!(e==="series"&&!h||e==="coordinateSystem"&&!(c&&s?c===s:h)||t==="series"&&h)){if(i.getViewOfSeriesModel(u).group.traverse(function(f){f.__highByOuter&&h&&t==="self"||Nc(f)}),vt(t))o(u.getData(),t);else if(Q(t))for(var p=Oe(t),d=0;d<p.length;d++)o(u.getData(p[d]),t[p[d]]);l.push(u),Rc(u).isBlured=!0}}),r.eachComponent(function(u,h){if(u!=="series"){var c=i.getViewOfComponentModel(h);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,r)}})}}function Vc(n,t,e){if(n!=null&&t!=null){var i=e.getModel().getComponent(n,t);if(i){Rc(i).isBlured=!0;var r=e.getViewOfComponentModel(i);r&&r.focusBlurEnabled&&r.group.traverse(function(o){Nc(o)})}}}function Fc(n,t,e,i){var r={focusSelf:!1,dispatchers:null};if(n==null||n==="series"||t==null||e==null)return r;var o=i.getModel().getComponent(n,t);if(!o)return r;var a=i.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return r;for(var s,l=a.findHighDownDispatchers(e),u=0;u<l.length;u++)if(oo(l[u])||xt("param should be highDownDispatcher"),_e(l[u]).focus==="self"){s=!0;break}return{focusSelf:s,dispatchers:l}}function Iv(n){A(n.getAllData(),function(t){var e=t.data,i=t.type;e.eachItemGraphicEl(function(r,o){n.isSelected(o,i)?bv(r):Sv(r)})})}function dI(n){var t=[];return n.eachSeries(function(e){A(e.getAllData(),function(i){i.data;var r=i.type,o=e.getSelectedDataIndices();if(o.length>0){var a={dataIndex:o,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function ro(n,t,e){Gc(n,!0),ri(n,cl),function(i,r,o){var a=_e(i);r!=null?(a.focus=r,a.blurScope=o):a.focus&&(a.focus=null)}(n,t,e)}function Bn(n,t,e,i){i?function(r){Gc(r,!1)}(n):ro(n,t,e)}var Cv=["emphasis","blur","select"],fI={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function oi(n,t,e,i){e=e||"itemStyle";for(var r=0;r<Cv.length;r++){var o=Cv[r],a=t.getModel([o,e]);n.ensureState(o).style=i?i(a):a[fI[e]]()}}function Gc(n,t){var e=t===!1,i=n;n.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=n.highDownSilentOnTouch),e&&!i.__highDownDispatcher||(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!e)}function oo(n){return!(!n||!n.__highDownDispatcher)}function Hc(n){var t=n.type;return t===fa||t===ll||t===ga}function Av(n){var t=n.type;return t===fr||t===sl}var ao=Mi.CMD,gI=[[],[],[]],Dv=Math.sqrt,yI=Math.atan2,Wc=Math.sqrt,pl=Math.sin,dl=Math.cos,ya=Math.PI;function kv(n){return Math.sqrt(n[0]*n[0]+n[1]*n[1])}function Yc(n,t){return(n[0]*t[0]+n[1]*t[1])/(kv(n)*kv(t))}function Lv(n,t){return(n[0]*t[1]<n[1]*t[0]?-1:1)*Math.acos(Yc(n,t))}function Pv(n,t,e,i,r,o,a,s,l,u,h){var c=l*(ya/180),p=dl(c)*(n-e)/2+pl(c)*(t-i)/2,d=-1*pl(c)*(n-e)/2+dl(c)*(t-i)/2,f=p*p/(a*a)+d*d/(s*s);f>1&&(a*=Wc(f),s*=Wc(f));var g=(r===o?-1:1)*Wc((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,y=g*a*d/s,v=g*-s*p/a,m=(n+e)/2+dl(c)*y-pl(c)*v,x=(t+i)/2+pl(c)*y+dl(c)*v,_=Lv([1,0],[(p-y)/a,(d-v)/s]),b=[(p-y)/a,(d-v)/s],w=[(-1*p-y)/a,(-1*d-v)/s],S=Lv(b,w);if(Yc(b,w)<=-1&&(S=ya),Yc(b,w)>=1&&(S=0),S<0){var M=Math.round(S/ya*1e6)/1e6;S=2*ya+M%2*ya}h.addData(u,m,x,a,s,_,S,c,o)}var vI=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,mI=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Ov=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.applyTransform=function(e){},t}(De);function Rv(n){return n.setData!=null}function Ev(n,t){var e=function(r){var o=new Mi;if(!r)return o;var a,s=0,l=0,u=s,h=l,c=Mi.CMD,p=r.match(vI);if(!p)return o;for(var d=0;d<p.length;d++){for(var f=p[d],g=f.charAt(0),y=void 0,v=f.match(mI)||[],m=v.length,x=0;x<m;x++)v[x]=parseFloat(v[x]);for(var _=0;_<m;){var b=void 0,w=void 0,S=void 0,M=void 0,T=void 0,I=void 0,C=void 0,D=s,L=l,R=void 0,P=void 0;switch(g){case"l":s+=v[_++],l+=v[_++],y=c.L,o.addData(y,s,l);break;case"L":s=v[_++],l=v[_++],y=c.L,o.addData(y,s,l);break;case"m":s+=v[_++],l+=v[_++],y=c.M,o.addData(y,s,l),u=s,h=l,g="l";break;case"M":s=v[_++],l=v[_++],y=c.M,o.addData(y,s,l),u=s,h=l,g="L";break;case"h":s+=v[_++],y=c.L,o.addData(y,s,l);break;case"H":s=v[_++],y=c.L,o.addData(y,s,l);break;case"v":l+=v[_++],y=c.L,o.addData(y,s,l);break;case"V":l=v[_++],y=c.L,o.addData(y,s,l);break;case"C":y=c.C,o.addData(y,v[_++],v[_++],v[_++],v[_++],v[_++],v[_++]),s=v[_-2],l=v[_-1];break;case"c":y=c.C,o.addData(y,v[_++]+s,v[_++]+l,v[_++]+s,v[_++]+l,v[_++]+s,v[_++]+l),s+=v[_-2],l+=v[_-1];break;case"S":b=s,w=l,R=o.len(),P=o.data,a===c.C&&(b+=s-P[R-4],w+=l-P[R-3]),y=c.C,D=v[_++],L=v[_++],s=v[_++],l=v[_++],o.addData(y,b,w,D,L,s,l);break;case"s":b=s,w=l,R=o.len(),P=o.data,a===c.C&&(b+=s-P[R-4],w+=l-P[R-3]),y=c.C,D=s+v[_++],L=l+v[_++],s+=v[_++],l+=v[_++],o.addData(y,b,w,D,L,s,l);break;case"Q":D=v[_++],L=v[_++],s=v[_++],l=v[_++],y=c.Q,o.addData(y,D,L,s,l);break;case"q":D=v[_++]+s,L=v[_++]+l,s+=v[_++],l+=v[_++],y=c.Q,o.addData(y,D,L,s,l);break;case"T":b=s,w=l,R=o.len(),P=o.data,a===c.Q&&(b+=s-P[R-4],w+=l-P[R-3]),s=v[_++],l=v[_++],y=c.Q,o.addData(y,b,w,s,l);break;case"t":b=s,w=l,R=o.len(),P=o.data,a===c.Q&&(b+=s-P[R-4],w+=l-P[R-3]),s+=v[_++],l+=v[_++],y=c.Q,o.addData(y,b,w,s,l);break;case"A":S=v[_++],M=v[_++],T=v[_++],I=v[_++],C=v[_++],Pv(D=s,L=l,s=v[_++],l=v[_++],I,C,S,M,T,y=c.A,o);break;case"a":S=v[_++],M=v[_++],T=v[_++],I=v[_++],C=v[_++],Pv(D=s,L=l,s+=v[_++],l+=v[_++],I,C,S,M,T,y=c.A,o)}}g!=="z"&&g!=="Z"||(y=c.Z,o.addData(y),s=u,l=h),a=y}return o.toStatic(),o}(n),i=G({},t);return i.buildPath=function(r){if(Rv(r))r.setData(e.data),(o=r.getContext())&&r.rebuildPath(o,1);else{var o=r;e.rebuildPath(o,1)}},i.applyTransform=function(r){(function(o,a){if(a){var s,l,u,h,c,p,d=o.data,f=o.len(),g=ao.M,y=ao.C,v=ao.L,m=ao.R,x=ao.A,_=ao.Q;for(u=0,h=0;u<f;){switch(s=d[u++],h=u,l=0,s){case g:case v:l=1;break;case y:l=3;break;case _:l=2;break;case x:var b=a[4],w=a[5],S=Dv(a[0]*a[0]+a[1]*a[1]),M=Dv(a[2]*a[2]+a[3]*a[3]),T=yI(-a[1]/M,a[0]/S);d[u]*=S,d[u++]+=b,d[u]*=M,d[u++]+=w,d[u++]*=S,d[u++]*=M,d[u++]+=T,d[u++]+=T,h=u+=2;break;case m:p[0]=d[u++],p[1]=d[u++],ot(p,p,a),d[h++]=p[0],d[h++]=p[1],p[0]+=d[u++],p[1]+=d[u++],ot(p,p,a),d[h++]=p[0],d[h++]=p[1]}for(c=0;c<l;c++){var I=gI[c];I[0]=d[u++],I[1]=d[u++],ot(I,I,a),d[h++]=I[0],d[h++]=I[1]}}o.increaseVersion()}})(e,r),this.dirtyShape()},i}function Nv(n,t){return new Ov(Ev(n,t))}var xI=function(){this.cx=0,this.cy=0,this.r=0},zv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultShape=function(){return new xI},t.prototype.buildPath=function(e,i){e.moveTo(i.cx+i.r,i.cy),e.arc(i.cx,i.cy,i.r,0,2*Math.PI)},t}(De);zv.prototype.type="circle";const xn=zv;var _I=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Bv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultShape=function(){return new _I},t.prototype.buildPath=function(e,i){var r=.5522848,o=i.cx,a=i.cy,s=i.rx,l=i.ry,u=s*r,h=l*r;e.moveTo(o-s,a),e.bezierCurveTo(o-s,a-h,o-u,a-l,o,a-l),e.bezierCurveTo(o+u,a-l,o+s,a-h,o+s,a),e.bezierCurveTo(o+s,a+h,o+u,a+l,o,a+l),e.bezierCurveTo(o-u,a+l,o-s,a+h,o-s,a),e.closePath()},t}(De);Bv.prototype.type="ellipse";const fl=Bv;var Vv=Math.PI,Xc=2*Vv,gr=Math.sin,so=Math.cos,wI=Math.acos,dt=Math.atan2,Fv=Math.abs,va=Math.sqrt,ma=Math.max,Vn=Math.min,_n=1e-4;function gl(n,t,e,i,r,o,a){var s=n-e,l=t-i,u=(a?o:-o)/va(s*s+l*l),h=u*l,c=-u*s,p=n+h,d=t+c,f=e+h,g=i+c,y=(p+f)/2,v=(d+g)/2,m=f-p,x=g-d,_=m*m+x*x,b=r-o,w=p*g-f*d,S=(x<0?-1:1)*va(ma(0,b*b*_-w*w)),M=(w*x-m*S)/_,T=(-w*m-x*S)/_,I=(w*x+m*S)/_,C=(-w*m+x*S)/_,D=M-y,L=T-v,R=I-y,P=C-v;return D*D+L*L>R*R+P*P&&(M=I,T=C),{cx:M,cy:T,x0:-h,y0:-c,x1:M*(r/b-1),y1:T*(r/b-1)}}function bI(n,t){var e,i=ma(t.r,0),r=ma(t.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=t.startAngle,l=t.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=t.cx,h=t.cy,c=!!t.clockwise,p=Fv(l-s),d=p>Xc&&p%Xc;if(d>_n&&(p=d),i>_n)if(p>Xc-_n)n.moveTo(u+i*so(s),h+i*gr(s)),n.arc(u,h,i,s,l,!c),r>_n&&(n.moveTo(u+r*so(l),h+r*gr(l)),n.arc(u,h,r,l,s,c));else{var f=void 0,g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,T=void 0,I=void 0,C=void 0,D=void 0,L=void 0,R=i*so(s),P=i*gr(s),E=r*so(l),k=r*gr(l),O=p>_n;if(O){var N=t.cornerRadius;N&&(e=function(H){var $;if(Y(H)){var re=H.length;if(!re)return H;$=re===1?[H[0],H[0],0,0]:re===2?[H[0],H[0],H[1],H[1]]:re===3?H.concat(H[2]):H}else $=[H,H,H,H];return $}(N),f=e[0],g=e[1],y=e[2],v=e[3]);var B=Fv(i-r)/2;if(m=Vn(B,y),x=Vn(B,v),_=Vn(B,f),b=Vn(B,g),M=w=ma(m,x),T=S=ma(_,b),(w>_n||S>_n)&&(I=i*so(l),C=i*gr(l),D=r*so(s),L=r*gr(s),p<Vv)){var z=function(H,$,re,Ce,ge,me,we,Le){var be=re-H,Pe=Ce-$,Ve=we-ge,qe=Le-me,Fe=qe*be-Ve*Pe;if(!(Fe*Fe<_n))return[H+(Fe=(Ve*($-me)-qe*(H-ge))/Fe)*be,$+Fe*Pe]}(R,P,D,L,I,C,E,k);if(z){var U=R-z[0],Z=P-z[1],F=I-z[0],W=C-z[1],K=1/gr(wI((U*F+Z*W)/(va(U*U+Z*Z)*va(F*F+W*W)))/2),se=va(z[0]*z[0]+z[1]*z[1]);M=Vn(w,(i-se)/(K+1)),T=Vn(S,(r-se)/(K-1))}}}if(O)if(M>_n){var he=Vn(y,M),te=Vn(v,M),j=gl(D,L,R,P,i,he,c),J=gl(I,C,E,k,i,te,c);n.moveTo(u+j.cx+j.x0,h+j.cy+j.y0),M<w&&he===te?n.arc(u+j.cx,h+j.cy,M,dt(j.y0,j.x0),dt(J.y0,J.x0),!c):(he>0&&n.arc(u+j.cx,h+j.cy,he,dt(j.y0,j.x0),dt(j.y1,j.x1),!c),n.arc(u,h,i,dt(j.cy+j.y1,j.cx+j.x1),dt(J.cy+J.y1,J.cx+J.x1),!c),te>0&&n.arc(u+J.cx,h+J.cy,te,dt(J.y1,J.x1),dt(J.y0,J.x0),!c))}else n.moveTo(u+R,h+P),n.arc(u,h,i,s,l,!c);else n.moveTo(u+R,h+P);r>_n&&O?T>_n?(he=Vn(f,T),j=gl(E,k,I,C,r,-(te=Vn(g,T)),c),J=gl(R,P,D,L,r,-he,c),n.lineTo(u+j.cx+j.x0,h+j.cy+j.y0),T<S&&he===te?n.arc(u+j.cx,h+j.cy,T,dt(j.y0,j.x0),dt(J.y0,J.x0),!c):(te>0&&n.arc(u+j.cx,h+j.cy,te,dt(j.y0,j.x0),dt(j.y1,j.x1),!c),n.arc(u,h,r,dt(j.cy+j.y1,j.cx+j.x1),dt(J.cy+J.y1,J.cx+J.x1),c),he>0&&n.arc(u+J.cx,h+J.cy,he,dt(J.y1,J.x1),dt(J.y0,J.x0),!c))):(n.lineTo(u+E,h+k),n.arc(u,h,r,l,s,c)):n.lineTo(u+E,h+k)}else n.moveTo(u,h);n.closePath()}}}var SI=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Gv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultShape=function(){return new SI},t.prototype.buildPath=function(e,i){bI(e,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(De);Gv.prototype.type="sector";const nn=Gv;var MI=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Hv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultShape=function(){return new MI},t.prototype.buildPath=function(e,i){var r=i.cx,o=i.cy,a=2*Math.PI;e.moveTo(r+i.r,o),e.arc(r,o,i.r,0,a,!1),e.moveTo(r+i.r0,o),e.arc(r,o,i.r0,0,a,!0)},t}(De);Hv.prototype.type="ring";const xa=Hv;function Wv(n,t,e){var i=t.smooth,r=t.points;if(r&&r.length>=2){if(i){var o=function(p,d,f,g){var y,v,m,x,_=[],b=[],w=[],S=[];if(g){m=[1/0,1/0],x=[-1/0,-1/0];for(var M=0,T=p.length;M<T;M++)Kn(m,m,p[M]),Jn(x,x,p[M]);Kn(m,m,g[0]),Jn(x,x,g[1])}for(M=0,T=p.length;M<T;M++){var I=p[M];if(f)y=p[M?M-1:T-1],v=p[(M+1)%T];else{if(M===0||M===T-1){_.push(_g(p[M]));continue}y=p[M-1],v=p[M+1]}wg(b,v,y),Ss(b,b,d);var C=Ms(I,y),D=Ms(I,v),L=C+D;L!==0&&(C/=L,D/=L),Ss(w,b,-C),Ss(S,b,D);var R=bh([],I,w),P=bh([],I,S);g&&(Jn(R,R,m),Kn(R,R,x),Jn(P,P,m),Kn(P,P,x)),_.push(R),_.push(P)}return f&&_.push(_.shift()),_}(r,i,e,t.smoothConstraint);n.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(e?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];n.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}}else{n.moveTo(r[0][0],r[0][1]),s=1;for(var c=r.length;s<c;s++)n.lineTo(r[s][0],r[s][1])}e&&n.closePath()}}var TI=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Yv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultShape=function(){return new TI},t.prototype.buildPath=function(e,i){Wv(e,i,!0)},t}(De);Yv.prototype.type="polygon";const Fn=Yv;var II=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Xv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new II},t.prototype.buildPath=function(e,i){Wv(e,i,!1)},t}(De);Xv.prototype.type="polyline";const wn=Xv;var CI={},AI=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Uv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new AI},t.prototype.buildPath=function(e,i){var r,o,a,s;if(this.subPixelOptimize){var l=Jy(CI,i,this.style);r=l.x1,o=l.y1,a=l.x2,s=l.y2}else r=i.x1,o=i.y1,a=i.x2,s=i.y2;var u=i.percent;u!==0&&(e.moveTo(r,o),u<1&&(a=r*(1-u)+a*u,s=o*(1-u)+s*u),e.lineTo(a,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}(De);Uv.prototype.type="line";const wt=Uv;var Pt=[],DI=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Zv(n,t,e){var i=n.cpx2,r=n.cpy2;return i!=null||r!=null?[(e?Wg:tt)(n.x1,n.cpx1,n.cpx2,n.x2,t),(e?Wg:tt)(n.y1,n.cpy1,n.cpy2,n.y2,t)]:[(e?Ug:pt)(n.x1,n.cpx1,n.x2,t),(e?Ug:pt)(n.y1,n.cpy1,n.y2,t)]}var jv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new DI},t.prototype.buildPath=function(e,i){var r=i.x1,o=i.y1,a=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,h=i.cpx2,c=i.cpy2,p=i.percent;p!==0&&(e.moveTo(r,o),h==null||c==null?(p<1&&(zs(r,l,a,p,Pt),l=Pt[1],a=Pt[2],zs(o,u,s,p,Pt),u=Pt[1],s=Pt[2]),e.quadraticCurveTo(l,u,a,s)):(p<1&&(Ns(r,l,h,a,p,Pt),l=Pt[1],h=Pt[2],a=Pt[3],Ns(o,u,c,s,p,Pt),u=Pt[1],c=Pt[2],s=Pt[3]),e.bezierCurveTo(l,u,h,c,a,s)))},t.prototype.pointAt=function(e){return Zv(this.shape,e,!1)},t.prototype.tangentAt=function(e){var i=Zv(this.shape,e,!0);return bg(i,i)},t}(De);jv.prototype.type="bezier-curve";const yl=jv;var kI=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},qv=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kI},t.prototype.buildPath=function(e,i){var r=i.cx,o=i.cy,a=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,h=Math.cos(s),c=Math.sin(s);e.moveTo(h*a+r,c*a+o),e.arc(r,o,a,s,l,!u)},t}(De);qv.prototype.type="arc";const vl=qv;var LI=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="compound",e}return V(t,n),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),r=0;r<e.length;r++)i=i||e[r].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),r=0;r<e.length;r++)e[r].path||e[r].createPathProxy(),e[r].path.setScale(i[0],i[1],e[r].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var r=i.paths||[],o=0;o<r.length;o++)r[o].buildPath(e,r[o].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),De.prototype.getBoundingRect.call(this)},t}(De);const Uc=LI;var PI=function(){function n(t){this.colorStops=t||[]}return n.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},n}();const Kv=PI,_a=function(n){function t(e,i,r,o,a,s){var l=n.call(this,a)||this;return l.x=e??0,l.y=i??0,l.x2=r??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return V(t,n),t}(Kv),Zc=function(n){function t(e,i,r,o,a){var s=n.call(this,o)||this;return s.x=e??.5,s.y=i??.5,s.r=r??.5,s.type="radial",s.global=a||!1,s}return V(t,n),t}(Kv);var yr=[0,0],vr=[0,0],ml=new de,xl=new de,OI=function(){function n(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new de;for(i=0;i<2;i++)this._axes[i]=new de;t&&this.fromBoundingRect(t,e)}return n.prototype.fromBoundingRect=function(t,e){var i=this._corners,r=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(i[0].set(o,a),i[1].set(s,a),i[2].set(s,l),i[3].set(o,l),e)for(var u=0;u<4;u++)i[u].transform(e);for(de.sub(r[0],i[1],i[0]),de.sub(r[1],i[3],i[0]),r[0].normalize(),r[1].normalize(),u=0;u<2;u++)this._origin[u]=r[u].dot(i[0])},n.prototype.intersect=function(t,e){var i=!0,r=!e;return ml.set(1/0,1/0),xl.set(0,0),!this._intersectCheckOneSide(this,t,ml,xl,r,1)&&(i=!1,r)||!this._intersectCheckOneSide(t,this,ml,xl,r,-1)&&(i=!1,r)||r||de.copy(e,i?ml:xl),i},n.prototype._intersectCheckOneSide=function(t,e,i,r,o,a){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,yr),this._getProjMinMaxOnAxis(l,e._corners,vr),yr[1]<vr[0]||yr[0]>vr[1]){if(s=!1,o)return s;var h=Math.abs(vr[0]-yr[1]),c=Math.abs(yr[0]-vr[1]);Math.min(h,c)>r.len()&&(h<c?de.scale(r,u,-h*a):de.scale(r,u,c*a))}else i&&(h=Math.abs(vr[0]-yr[1]),c=Math.abs(yr[0]-vr[1]),Math.min(h,c)<i.len()&&(h<c?de.scale(i,u,h*a):de.scale(i,u,-c*a)))}return s},n.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var r=this._axes[t],o=this._origin,a=e[0].dot(r)+o[t],s=a,l=a,u=1;u<e.length;u++){var h=e[u].dot(r)+o[t];s=Math.min(h,s),l=Math.max(h,l)}i[0]=s,i[1]=l},n}();const _l=OI;var RI=[],EI=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return V(t,n),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 r=0;r<e.length;r++)this.addDisplayable(e[r],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(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++)(i=this._displayables[e]).parent=this,i.update(),i.parent=null;for(e=0;e<this._temporaryDisplayables.length;e++){var i;(i=this._temporaryDisplayables[e]).parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new ye(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var r=this._displayables[i],o=r.getBoundingRect().clone();r.needLocalTransform()&&o.applyTransform(r.getLocalTransform(RI)),e.union(o)}this._rect=e}return this._rect},t.prototype.contain=function(e,i){var r=this.transformCoordToLocal(e,i);if(this.getBoundingRect().contain(r[0],r[1])){for(var o=0;o<this._displayables.length;o++)if(this._displayables[o].contain(e,i))return!0}return!1},t}(ar);const Jv=EI;var NI=Ne();function jc(n,t,e,i,r,o,a){var s,l=!1;ae(r)?(a=o,o=r,r=null):Q(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var u=n==="leave";u||t.stopAnimation("leave");var h=function(p,d,f,g,y){var v;if(d&&d.ecModel){var m=d.ecModel.getUpdatePayload();v=m&&m.animation}var x=p==="update";if(d&&d.isAnimationEnabled()){var _=void 0,b=void 0,w=void 0;return g?(_=Me(g.duration,200),b=Me(g.easing,"cubicOut"),w=0):(_=d.getShallow(x?"animationDurationUpdate":"animationDuration"),b=d.getShallow(x?"animationEasingUpdate":"animationEasing"),w=d.getShallow(x?"animationDelayUpdate":"animationDelay")),v&&(v.duration!=null&&(_=v.duration),v.easing!=null&&(b=v.easing),v.delay!=null&&(w=v.delay)),ae(w)&&(w=w(f,y)),ae(_)&&(_=_(f)),{duration:_||0,delay:w,easing:b}}return null}(n,i,r,u?s||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,r):null);if(h&&h.duration>0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:n,during:a};l?t.animateFrom(e,c):t.animateTo(e,c)}else t.stopAnimation(),!l&&t.attr(e),a&&a(1),o&&o()}function ze(n,t,e,i,r,o){jc("update",n,t,e,i,r,o)}function et(n,t,e,i,r,o){jc("enter",n,t,e,i,r,o)}function lo(n){if(!n.__zr)return!0;for(var t=0;t<n.animators.length;t++)if(n.animators[t].scope==="leave")return!0;return!1}function Ii(n,t,e,i,r,o){lo(n)||jc("leave",n,t,e,i,r,o)}function $v(n,t,e,i){n.removeTextContent(),n.removeTextGuideLine(),Ii(n,{style:{opacity:0}},t,e,i)}function wl(n,t,e){function i(){n.parent&&n.parent.remove(n)}n.isGroup?n.traverse(function(r){r.isGroup||$v(r,t,e,i)}):$v(n,t,e,i)}function wa(n){NI(n).oldStyle=n.style}var bl=Math.max,Sl=Math.min,qc={};function Qv(n){return De.extend(n)}var zI=function(n,t){var e=Ev(n,t);return function(i){function r(o){var a=i.call(this,o)||this;return a.applyTransform=e.applyTransform,a.buildPath=e.buildPath,a}return V(r,i),r}(Ov)};function em(n,t){return zI(n,t)}function rn(n,t){qc[n]=t}function tm(n){if(qc.hasOwnProperty(n))return qc[n]}function Ml(n,t,e,i){var r=Nv(n,t);return e&&(i==="center"&&(e=nm(e,r.getBoundingRect())),Jc(r,e)),r}function Kc(n,t,e){var i=new Gt({style:{image:n,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(r){if(e==="center"){var o={width:r.width,height:r.height};i.setStyle(nm(t,o))}}});return i}function nm(n,t){var e,i=t.width/t.height,r=n.height*i;return e=r<=n.width?n.height:(r=n.width)/i,{x:n.x+n.width/2-r/2,y:n.y+n.height/2-e/2,width:r,height:e}}var on=function(n,t){for(var e=[],i=n.length,r=0;r<i;r++){var o=n[r];e.push(o.getUpdatedPathProxy(!0))}var a=new De(t);return a.createPathProxy(),a.buildPath=function(s){if(Rv(s)){s.appendPath(e);var l=s.getContext();l&&s.rebuildPath(l,1)}},a};function Jc(n,t){if(n.applyTransform){var e=n.getBoundingRect().calculateTransform(t);n.applyTransform(e)}}function ba(n,t){return Jy(n,n,{lineWidth:t}),n}var BI=dr;function Ci(n,t){for(var e=Yo([]);n&&n!==t;)kn(e,n.getLocalTransform(),e),n=n.parent;return e}function Gn(n,t,e){return t&&!vt(t)&&(t=wi.getLocalTransform(t)),e&&(t=ji([],t)),ot([],n,t)}function Tl(n,t,e){var i=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),r=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),o=[n==="left"?-i:n==="right"?i:0,n==="top"?-r:n==="bottom"?r:0];return o=Gn(o,t,e),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function im(n){return!n.isGroup}function Il(n,t,e){if(n&&t){var i,r=(i={},n.traverse(function(a){im(a)&&a.anid&&(i[a.anid]=a)}),i);t.traverse(function(a){if(im(a)&&a.anid){var s=r[a.anid];if(s){var l=o(a);a.attr(o(s)),ze(a,l,e,_e(a).dataIndex)}}})}function o(a){var s={x:a.x,y:a.y,rotation:a.rotation};return function(l){return l.shape!=null}(a)&&(s.shape=G({},a.shape)),s}}function $c(n,t){return X(n,function(e){var i=e[0];i=bl(i,t.x),i=Sl(i,t.x+t.width);var r=e[1];return r=bl(r,t.y),[i,r=Sl(r,t.y+t.height)]})}function rm(n,t){var e=bl(n.x,t.x),i=Sl(n.x+n.width,t.x+t.width),r=bl(n.y,t.y),o=Sl(n.y+n.height,t.y+t.height);if(i>=e&&o>=r)return{x:e,y:r,width:i-e,height:o-r}}function Sa(n,t,e){var i=G({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},n)return n.indexOf("image://")===0?(r.image=n.slice(8),le(r,e),new Gt(i)):Ml(n.replace("path://",""),i,e,"center")}function om(n,t,e,i,r,o,a,s){var l,u=e-n,h=i-t,c=a-r,p=s-o,d=Qc(c,p,u,h);if((l=d)<=1e-6&&l>=-1e-6)return!1;var f=n-r,g=t-o,y=Qc(f,g,u,h)/d;if(y<0||y>1)return!1;var v=Qc(f,g,c,p)/d;return!(v<0||v>1)}function Qc(n,t,e,i){return n*i-e*t}function Ma(n){var t=n.itemTooltipOption,e=n.componentModel,i=n.itemName,r=q(t)?{formatter:t}:t,o=e.mainType,a=e.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=n.formatterParamsExtra;l&&A(Oe(l),function(h){Ut(s,h)||(s[h]=l[h],s.$vars.push(h))});var u=_e(n.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:le({content:i,formatterParams:s},r)}}function am(n,t){var e;n.isGroup&&(e=t(n)),e||n.traverse(t)}function Cl(n,t){if(n)if(Y(n))for(var e=0;e<n.length;e++)am(n[e],t);else am(n,t)}rn("circle",xn),rn("ellipse",fl),rn("sector",nn),rn("ring",xa),rn("polygon",Fn),rn("polyline",wn),rn("rect",Ie),rn("line",wt),rn("bezierCurve",yl),rn("arc",vl);const Al=Object.freeze(Object.defineProperty({__proto__:null,Arc:vl,BezierCurve:yl,BoundingRect:ye,Circle:xn,CompoundPath:Uc,Ellipse:fl,Group:fe,Image:Gt,IncrementalDisplayable:Jv,Line:wt,LinearGradient:_a,OrientedBoundingRect:_l,Path:De,Point:de,Polygon:Fn,Polyline:wn,RadialGradient:Zc,Rect:Ie,Ring:xa,Sector:nn,Text:ke,applyTransform:Gn,clipPointsByRect:$c,clipRectByRect:rm,createIcon:Sa,extendPath:em,extendShape:Qv,getShapeClass:tm,getTransform:Ci,groupTransition:Il,initProps:et,isElementRemoved:lo,lineLineIntersect:om,linePolygonIntersect:function(n,t,e,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(om(n,t,e,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:Kc,makePath:Ml,mergePath:on,registerShape:rn,removeElement:Ii,removeElementWithFadeOut:wl,resizePath:Jc,setTooltipConfig:Ma,subPixelOptimize:BI,subPixelOptimizeLine:ba,subPixelOptimizeRect:function(n){return $y(n.shape,n.shape,n.style),n},transformDirection:Tl,traverseElements:Cl,updateProps:ze},Symbol.toStringTag,{value:"Module"}));var Dl={};function sm(n,t){for(var e=0;e<tn.length;e++){var i=tn[e],r=t[i],o=n.ensureState(i);o.style=o.style||{},o.style.text=r}var a=n.currentStates.slice();n.clearStates(!0),n.setStyle({text:t.normal}),n.useStates(a,!0)}function ep(n,t,e){var i,r=n.labelFetcher,o=n.labelDataIndex,a=n.labelDimIndex,s=t.normal;r&&(i=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),e!=null?{interpolatedValue:e}:null)),i==null&&(i=ae(n.defaultText)?n.defaultText(o,n,e):n.defaultText);for(var l={normal:i},u=0;u<tn.length;u++){var h=tn[u],c=t[h];l[h]=Me(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function ai(n,t,e,i){e=e||Dl;for(var r=n instanceof ke,o=!1,a=0;a<al.length;a++)if((p=t[al[a]])&&p.getShallow("show")){o=!0;break}var s=r?n:n.getTextContent();if(o){r||(s||(s=new ke,n.setTextContent(s)),n.stateProxy&&(s.stateProxy=n.stateProxy));var l=ep(e,t),u=t.normal,h=!!u.getShallow("show"),c=it(u,i&&i.normal,e,!1,!r);for(c.text=l.normal,r||n.setTextConfig(lm(u,e,!1)),a=0;a<tn.length;a++){var p,d=tn[a];if(p=t[d]){var f=s.ensureState(d),g=!!Me(p.getShallow("show"),h);g!==h&&(f.ignore=!g),f.style=it(p,i&&i[d],e,!0,!r),f.style.text=l[d],!r&&(n.ensureState(d).textConfig=lm(p,e,!0))}}s.silent=!!u.getShallow("silent"),s.style.x!=null&&(c.x=s.style.x),s.style.y!=null&&(c.y=s.style.y),s.ignore=!h,s.useStyle(c),s.dirty(),e.enableTextSetter&&(uo(s).setLabelText=function(y){var v=ep(e,t,y);sm(s,v)})}else s&&(s.ignore=!0);n.dirty()}function si(n,t){t=t||"label";for(var e={normal:n.getModel(t)},i=0;i<tn.length;i++){var r=tn[i];e[r]=n.getModel([r,t])}return e}function it(n,t,e,i,r){var o={};return function(a,s,l,u,h){l=l||Dl;var c,p=s.ecModel,d=p&&p.option.textStyle,f=function(x){for(var _;x&&x!==x.ecModel;){var b=(x.option||Dl).rich;if(b){_=_||{};for(var w=Oe(b),S=0;S<w.length;S++)_[w[S]]=1}x=x.parentModel}return _}(s);if(f){for(var g in c={},f)if(f.hasOwnProperty(g)){var y=s.getModel(["rich",g]);pm(c[g]={},y,d,l,u,h,!1,!0)}}c&&(a.rich=c);var v=s.get("overflow");v&&(a.overflow=v);var m=s.get("minMargin");m!=null&&(a.margin=m),pm(a,s,d,l,u,h,!0,!1)}(o,n,e,i,r),t&&G(o,t),o}function lm(n,t,e){t=t||{};var i,r={},o=n.getShallow("rotate"),a=Me(n.getShallow("distance"),e?null:5),s=n.getShallow("offset");return(i=n.getShallow("position")||(e?null:"inside"))==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(r.position=i),s!=null&&(r.offset=s),o!=null&&(o*=Math.PI/180,r.rotation=o),a!=null&&(r.distance=a),r.outsideFill=n.get("color")==="inherit"?t.inheritColor||null:"auto",r}var um=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],hm=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],cm=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function pm(n,t,e,i,r,o,a,s){e=!r&&e||Dl;var l=i&&i.inheritColor,u=t.getShallow("color"),h=t.getShallow("textBorderColor"),c=Me(t.getShallow("opacity"),e.opacity);u!=="inherit"&&u!=="auto"||(u==="auto"&&$e("color: 'auto'","color: 'inherit'"),u=l||null),h!=="inherit"&&h!=="auto"||(h==="auto"&&$e("color: 'auto'","color: 'inherit'"),h=l||null),o||(u=u||e.color,h=h||e.textBorderColor),u!=null&&(n.fill=u),h!=null&&(n.stroke=h);var p=Me(t.getShallow("textBorderWidth"),e.textBorderWidth);p!=null&&(n.lineWidth=p);var d=Me(t.getShallow("textBorderType"),e.textBorderType);d!=null&&(n.lineDash=d);var f=Me(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);f!=null&&(n.lineDashOffset=f),r||c!=null||s||(c=i&&i.defaultOpacity),c!=null&&(n.opacity=c),r||o||n.fill==null&&i.inheritColor&&(n.fill=i.inheritColor);for(var g=0;g<um.length;g++){var y=um[g];(m=Me(t.getShallow(y),e[y]))!=null&&(n[y]=m)}for(g=0;g<hm.length;g++)y=hm[g],(m=t.getShallow(y))!=null&&(n[y]=m);if(n.verticalAlign==null){var v=t.getShallow("baseline");v!=null&&(n.verticalAlign=v)}if(!a||!i.disableBox){for(g=0;g<cm.length;g++){var m;y=cm[g],(m=t.getShallow(y))!=null&&(n[y]=m)}var x=t.getShallow("borderType");x!=null&&(n.borderDash=x),n.backgroundColor!=="auto"&&n.backgroundColor!=="inherit"||!l||(n.backgroundColor==="auto"&&$e("backgroundColor: 'auto'","backgroundColor: 'inherit'"),n.backgroundColor=l),n.borderColor!=="auto"&&n.borderColor!=="inherit"||!l||(n.borderColor==="auto"&&$e("borderColor: 'auto'","borderColor: 'inherit'"),n.borderColor=l)}}var uo=Ne();function dm(n,t,e,i){if(n){var r=uo(n);r.prevValue=r.value,r.value=e;var o=t.normal;r.valueAnimation=o.get("valueAnimation"),r.valueAnimation&&(r.precision=o.get("precision"),r.defaultInterpolatedText=i,r.statesModels=t)}}function fm(n,t,e,i,r){var o=uo(n);if(o.valueAnimation&&o.prevValue!==o.value){var a=o.defaultInterpolatedText,s=Me(o.interpolatedValue,o.prevValue),l=o.value;n.percent=0,(o.prevValue==null?et:ze)(n,{percent:1},i,t,null,function(u){var h=Ly(e,o.precision,s,l,u);o.interpolatedValue=u===1?null:h;var c=ep({labelDataIndex:t,labelFetcher:r,defaultText:a?a(h):h+""},o.statesModels,h);sm(n,c)})}}var VI=["textStyle","color"],tp=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],np=new ke,FI=function(){function n(){}return n.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(VI):null)},n.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=this.ecModel,i=e&&e.getModel("textStyle"),Xt([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e,i},n.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<tp.length;i++)e[tp[i]]=this.getShallow(tp[i]);return np.useStyle(e),np.update(),np.getBoundingRect()},n}();const GI=FI;var kl,ip,gm=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],HI=$r(gm),WI=function(){function n(){}return n.prototype.getLineStyle=function(t){return HI(this,t)},n}(),ym=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],YI=$r(ym),XI=function(){function n(){}return n.prototype.getItemStyle=function(t,e){return YI(this,t,e)},n}(),mr=function(){function n(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return n.prototype.init=function(t,e,i){},n.prototype.mergeOption=function(t,e){pe(this.option,t,!0)},n.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},n.prototype.getShallow=function(t,e){var i=this.option,r=i==null?i:i[t];if(r==null&&!e){var o=this.parentModel;o&&(r=o.getShallow(t))}return r},n.prototype.getModel=function(t,e){var i=t!=null,r=i?this.parsePath(t):null;return new n(i?this._doGet(r):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},n.prototype.isEmpty=function(){return this.option==null},n.prototype.restoreData=function(){},n.prototype.clone=function(){return new this.constructor(oe(this.option))},n.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},n.prototype.resolveParentPath=function(t){return t},n.prototype.isAnimationEnabled=function(){if(!xe.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},n.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var r=0;r<t.length&&(!t[r]||(i=i&&typeof i=="object"?i[t[r]]:null)!=null);r++);return i==null&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},n}();vc(mr),kl=mr,ip=["__\0is_clz",DT++].join("_"),kl.prototype[ip]=!0,ue(!kl.isInstance,'The method "is" can not be defined.'),kl.isInstance=function(n){return!(!n||!n[ip])},ct(mr,WI),ct(mr,XI),ct(mr,OT),ct(mr,GI);const He=mr;var UI=Math.round(10*Math.random());function ho(n){return[n||"",UI++].join("_")}function xr(n,t){return pe(pe({},n,!0),t,!0)}var Ll="ZH",rp="EN",Pl=rp,Ol={},op={},vm=xe.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(Ll)>-1?Ll:Pl;function ap(n,t){n=n.toUpperCase(),op[n]=new He(t),Ol[n]=t}ap(rp,{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"}},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:". "}}}}),ap(Ll,{time:{month:["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],dayOfWeekAbbr:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53CD\u9009"}},toolbox:{brush:{title:{rect:"\u77E9\u5F62\u9009\u62E9",polygon:"\u5708\u9009",lineX:"\u6A2A\u5411\u9009\u62E9",lineY:"\u7EB5\u5411\u9009\u62E9",keep:"\u4FDD\u6301\u9009\u62E9",clear:"\u6E05\u9664\u9009\u62E9"}},dataView:{title:"\u6570\u636E\u89C6\u56FE",lang:["\u6570\u636E\u89C6\u56FE","\u5173\u95ED","\u5237\u65B0"]},dataZoom:{title:{zoom:"\u533A\u57DF\u7F29\u653E",back:"\u533A\u57DF\u7F29\u653E\u8FD8\u539F"}},magicType:{title:{line:"\u5207\u6362\u4E3A\u6298\u7EBF\u56FE",bar:"\u5207\u6362\u4E3A\u67F1\u72B6\u56FE",stack:"\u5207\u6362\u4E3A\u5806\u53E0",tiled:"\u5207\u6362\u4E3A\u5E73\u94FA"}},restore:{title:"\u8FD8\u539F"},saveAsImage:{title:"\u4FDD\u5B58\u4E3A\u56FE\u7247",lang:["\u53F3\u952E\u53E6\u5B58\u4E3A\u56FE\u7247"]}},series:{typeNames:{pie:"\u997C\u56FE",bar:"\u67F1\u72B6\u56FE",line:"\u6298\u7EBF\u56FE",scatter:"\u6563\u70B9\u56FE",effectScatter:"\u6D9F\u6F2A\u6563\u70B9\u56FE",radar:"\u96F7\u8FBE\u56FE",tree:"\u6811\u56FE",treemap:"\u77E9\u5F62\u6811\u56FE",boxplot:"\u7BB1\u578B\u56FE",candlestick:"K\u7EBF\u56FE",k:"K\u7EBF\u56FE",heatmap:"\u70ED\u529B\u56FE",map:"\u5730\u56FE",parallel:"\u5E73\u884C\u5750\u6807\u56FE",lines:"\u7EBF\u56FE",graph:"\u5173\u7CFB\u56FE",sankey:"\u6851\u57FA\u56FE",funnel:"\u6F0F\u6597\u56FE",gauge:"\u4EEA\u8868\u76D8\u56FE",pictorialBar:"\u8C61\u5F62\u67F1\u56FE",themeRiver:"\u4E3B\u9898\u6CB3\u6D41\u56FE",sunburst:"\u65ED\u65E5\u56FE"}},aria:{general:{withTitle:"\u8FD9\u662F\u4E00\u4E2A\u5173\u4E8E\u201C{title}\u201D\u7684\u56FE\u8868\u3002",withoutTitle:"\u8FD9\u662F\u4E00\u4E2A\u56FE\u8868\uFF0C"},series:{single:{prefix:"",withName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\uFF0C\u8868\u793A{seriesName}\u3002",withoutName:"\u56FE\u8868\u7C7B\u578B\u662F{seriesType}\u3002"},multiple:{prefix:"\u5B83\u7531{seriesCount}\u4E2A\u56FE\u8868\u7CFB\u5217\u7EC4\u6210\u3002",withName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A\u8868\u793A{seriesName}\u7684{seriesType}\uFF0C",withoutName:"\u7B2C{seriesId}\u4E2A\u7CFB\u5217\u662F\u4E00\u4E2A{seriesType}\uFF0C",separator:{middle:"\uFF1B",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636E\u662F\u2014\u2014",partialData:"\u5176\u4E2D\uFF0C\u524D{displayCnt}\u9879\u662F\u2014\u2014",withName:"{name}\u7684\u6570\u636E\u662F{value}",withoutName:"{value}",separator:{middle:"\uFF0C",end:""}}}});var sp=1e3,lp=60*sp,Ta=60*lp,an=24*Ta,mm=365*an,Ia={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}"},Rl="{yyyy}-{MM}-{dd}",xm={year:"{yyyy}",month:"{yyyy}-{MM}",day:Rl,hour:Rl+" "+Ia.hour,minute:Rl+" "+Ia.minute,second:Rl+" "+Ia.second,millisecond:Ia.none},up=["year","month","day","hour","minute","second","millisecond"],_m=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function bt(n,t){return"0000".substr(0,t-(n+="").length)+n}function co(n){switch(n){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return n}}function ZI(n){return n===co(n)}function Ca(n,t,e,i){var r=Jt(n),o=r[hp(e)](),a=r[po(e)]()+1,s=Math.floor((a-1)/3)+1,l=r[El(e)](),u=r["get"+(e?"UTC":"")+"Day"](),h=r[Aa(e)](),c=(h-1)%12+1,p=r[Nl(e)](),d=r[zl(e)](),f=r[Bl(e)](),g=i instanceof He?i:function(b){return op[b]}(i||vm)||op[Pl],y=g.getModel("time"),v=y.get("month"),m=y.get("monthAbbr"),x=y.get("dayOfWeek"),_=y.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,bt(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,m[a-1]).replace(/{MM}/g,bt(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,bt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,bt(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,bt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,bt(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,bt(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,bt(f,3)).replace(/{S}/g,f+"")}function wm(n,t){var e=Jt(n),i=e[po(t)]()+1,r=e[El(t)](),o=e[Aa(t)](),a=e[Nl(t)](),s=e[zl(t)](),l=e[Bl(t)]()===0,u=l&&s===0,h=u&&a===0,c=h&&o===0,p=c&&r===1;return p&&i===1?"year":p?"month":c?"day":h?"hour":u?"minute":l?"second":"millisecond"}function bm(n,t,e){var i=Re(n)?Jt(n):n;switch(t=t||wm(n,e)){case"year":return i[hp(e)]();case"half-year":return i[po(e)]()>=6?1:0;case"quarter":return Math.floor((i[po(e)]()+1)/4);case"month":return i[po(e)]();case"day":return i[El(e)]();case"half-day":return i[Aa(e)]()/24;case"hour":return i[Aa(e)]();case"minute":return i[Nl(e)]();case"second":return i[zl(e)]();case"millisecond":return i[Bl(e)]()}}function hp(n){return n?"getUTCFullYear":"getFullYear"}function po(n){return n?"getUTCMonth":"getMonth"}function El(n){return n?"getUTCDate":"getDate"}function Aa(n){return n?"getUTCHours":"getHours"}function Nl(n){return n?"getUTCMinutes":"getMinutes"}function zl(n){return n?"getUTCSeconds":"getSeconds"}function Bl(n){return n?"getUTCMilliseconds":"getMilliseconds"}function jI(n){return n?"setUTCFullYear":"setFullYear"}function Sm(n){return n?"setUTCMonth":"setMonth"}function Mm(n){return n?"setUTCDate":"setDate"}function Tm(n){return n?"setUTCHours":"setHours"}function Im(n){return n?"setUTCMinutes":"setMinutes"}function Cm(n){return n?"setUTCSeconds":"setSeconds"}function Am(n){return n?"setUTCMilliseconds":"setMilliseconds"}function cp(n){if(!js(n))return q(n)?n:"-";var t=(n+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function pp(n,t){return n=(n||"").toLowerCase().replace(/-(.)/g,function(e,i){return i.toUpperCase()}),t&&n&&(n=n.charAt(0).toUpperCase()+n.slice(1)),n}var fo=xh;function dp(n,t,e){function i(u){return u&&Xt(u)?u:"-"}function r(u){return!(u==null||isNaN(u)||!isFinite(u))}var o=t==="time",a=n instanceof Date;if(o||a){var s=o?Jt(n):n;if(!isNaN(+s))return Ca(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",e);if(a)return"-"}if(t==="ordinal")return Fo(n)?i(n):Re(n)&&r(n)?n+"":"-";var l=aa(n);return r(l)?cp(l):Fo(n)?i(n):typeof n=="boolean"?n+"":"-"}var Dm=["a","b","c","d","e","f","g"],fp=function(n,t){return"{"+n+(t??"")+"}"};function gp(n,t,e){Y(t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o<r.length;o++){var a=Dm[o];n=n.replace(fp(a),fp(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=t[s][r[l]];n=n.replace(fp(Dm[l],s),e?Bt(u):u)}return n}function km(n,t){var e=q(n)?{color:n,extraCssText:t}:n||{},i=e.color,r=e.type;t=e.extraCssText;var o=e.renderMode||"html";return i?o==="html"?r==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Bt(i)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Bt(i)+";"+(t||"")+'"></span>':{renderMode:o,content:"{"+(e.markerId||"markerX")+"|} ",style:r==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function Lm(n){return n&&n.charAt(0).toUpperCase()+n.substr(1)}function _r(n,t){return t=t||"transparent",q(n)?n:Q(n)&&n.colorStops&&(n.colorStops[0]||{}).color||t}function Pm(n,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=n}else window.open(n,t)}var Vl=A,qI=["left","right","top","bottom","width","height"],Fl=[["width","left","right"],["height","top","bottom"]];function yp(n,t,e,i,r){var o=0,a=0;i==null&&(i=1/0),r==null&&(r=1/0);var s=0;t.eachChild(function(l,u){var h,c,p=l.getBoundingRect(),d=t.childAt(u+1),f=d&&d.getBoundingRect();if(n==="horizontal"){var g=p.width+(f?-f.x+p.x:0);(h=o+g)>i||l.newline?(o=0,h=g,a+=s+e,s=p.height):s=Math.max(s,p.height)}else{var y=p.height+(f?-f.y+p.y:0);(c=a+y)>r||l.newline?(o+=s+e,a=0,c=y,s=p.width):s=Math.max(s,p.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),n==="horizontal"?o=h+e:a=c+e)})}var wr=yp;function St(n,t,e){e=fo(e||0);var i=t.width,r=t.height,o=ee(n.left,i),a=ee(n.top,r),s=ee(n.right,i),l=ee(n.bottom,r),u=ee(n.width,i),h=ee(n.height,r),c=e[2]+e[0],p=e[1]+e[3],d=n.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),d!=null&&(isNaN(u)&&isNaN(h)&&(d>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=d*h),isNaN(h)&&(h=u/d)),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),n.left||n.right){case"center":o=i/2-u/2-e[3];break;case"right":o=i-u-p}switch(n.top||n.bottom){case"middle":case"center":a=r/2-h/2-e[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var f=new ye(o+e[3],a+e[0],u,h);return f.margin=e,f}function Om(n,t,e,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||n).x=n.x,o.y=n.y,!s&&!l)return!1;if(u==="raw")a=n.type==="group"?new ye(0,0,+t.width||0,+t.height||0):n.getBoundingRect();else if(a=n.getBoundingRect(),n.needLocalTransform()){var h=n.getLocalTransform();(a=a.clone()).applyTransform(h)}var c=St(le({width:a.width,height:a.height},t),e,i),p=s?c.x-a.x:0,d=l?c.y-a.y:0;return u==="raw"?(o.x=p,o.y=d):(o.x+=p,o.y+=d),o===n&&n.markRedraw(),!0}function Da(n){var t=n.layoutMode||n.constructor.layoutMode;return Q(t)?t:t?{type:t}:null}function go(n,t,e){var i=e&&e.ignoreSize;!Y(i)&&(i=[i,i]);var r=a(Fl[0],0),o=a(Fl[1],1);function a(h,c){var p={},d=0,f={},g=0;if(Vl(h,function(m){f[m]=n[m]}),Vl(h,function(m){s(t,m)&&(p[m]=f[m]=t[m]),l(p,m)&&d++,l(f,m)&&g++}),i[c])return l(t,h[1])?f[h[2]]=null:l(t,h[2])&&(f[h[1]]=null),f;if(g!==2&&d){if(d>=2)return p;for(var y=0;y<h.length;y++){var v=h[y];if(!s(p,v)&&s(n,v)){p[v]=n[v];break}}return p}return f}function s(h,c){return h.hasOwnProperty(c)}function l(h,c){return h[c]!=null&&h[c]!=="auto"}function u(h,c,p){Vl(h,function(d){c[d]=p[d]})}u(Fl[0],n,r),u(Fl[1],n,o)}function ka(n){return function(t,e){return e&&t&&Vl(qI,function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t}({},n)}ve(yp,"vertical"),ve(yp,"horizontal");var KI=Ne(),yo=function(n){function t(e,i,r){var o=n.call(this,e,i,r)||this;return o.uid=ho("ec_cpt_model"),o}return V(t,n),t.prototype.init=function(e,i,r){this.mergeDefaultAndTheme(e,r)},t.prototype.mergeDefaultAndTheme=function(e,i){var r=Da(this),o=r?ka(e):{};pe(e,i.getTheme().get(this.mainType)),pe(e,this.getDefaultOption()),r&&go(e,o,r)},t.prototype.mergeOption=function(e,i){pe(this.option,e,!0);var r=Da(this);r&&go(this.option,e,r)},t.prototype.optionUpdated=function(e,i){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(u){return!(!u||!u[Py])}(e))return e.defaultOption;var i=KI(this);if(!i.defaultOption){for(var r=[],o=e;o;){var a=o.prototype.defaultOption;a&&r.push(a),o=o.superClass}for(var s={},l=r.length-1;l>=0;l--)s=pe(s,r[l],!0);i.defaultOption=s}return i.defaultOption},t.prototype.getReferringComponents=function(e,i){var r=e+"Index",o=e+"Id";return ha(this.ecModel,e,{index:this.get(r,!0),id:this.get(o,!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}(He);Oy(yo,He),$s(yo),function(n){var t={};n.registerSubTypeDefaulter=function(e,i){var r=Rn(e);t[r.main]=i},n.determineSubType=function(e,i){var r=i.type;if(!r){var o=Rn(e).main;n.hasSubTypes(e)&&t[o]&&(r=t[o](i))}return r}}(yo),function(n,t){function e(i,r){return i[r]||(i[r]={predecessor:[],successor:[]}),i[r]}n.topologicalTravel=function(i,r,o,a){if(i.length){var s=function(y){var v={},m=[];return A(y,function(x){var _=e(v,x),b=function(w,S){var M=[];return A(w,function(T){Se(S,T)>=0&&M.push(T)}),M}(_.originalDeps=t(x),y);_.entryCount=b.length,_.entryCount===0&&m.push(x),A(b,function(w){Se(_.predecessor,w)<0&&_.predecessor.push(w);var S=e(v,w);Se(S.successor,w)<0&&S.successor.push(x)})}),{graph:v,noEntryList:m}}(r),l=s.graph,u=s.noEntryList,h={};for(A(i,function(y){h[y]=!0});u.length;){var c=u.pop(),p=l[c],d=!!h[c];d&&(o.call(a,c,p.originalDeps.slice()),delete h[c]),A(p.successor,d?g:f)}A(h,function(){var y;throw y=Ks("Circular dependency may exists: ",h,i,r),new Error(y)})}function f(y){l[y].entryCount--,l[y].entryCount===0&&u.push(y)}function g(y){h[y]=!0,f(y)}}}(yo,function(n){var t=[];return A(yo.getClassesByMainType(n),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=X(t,function(e){return Rn(e).main}),n!=="dataset"&&Se(t,"dataset")<=0&&t.unshift("dataset"),t});const Te=yo;var Rm="";typeof navigator<"u"&&(Rm=navigator.platform||"");var vo="rgba(0, 0, 0, 0.2)";const JI={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:vo,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:vo,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:vo,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:vo,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:vo,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:vo,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Rm.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 vp=ie(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),sn="original",Ot="arrayRows",bn="objectRows",Hn="keyedColumns",li="typedArray",Em="unknown",Wn="column",mo="row",lt={Must:1,Might:2,Not:3},Nm=Ne();function $I(n,t,e){var i={},r=mp(t);if(!r||!n)return i;var o,a,s=[],l=[],u=t.ecModel,h=Nm(u).datasetMap,c=r.uid+"_"+e.seriesLayoutBy;A(n=n.slice(),function(g,y){var v=Q(g)?g:n[y]={name:g};v.type==="ordinal"&&o==null&&(o=y,a=f(v)),i[v.name]=[]});var p=h.get(c)||h.set(c,{categoryWayDim:a,valueWayDim:0});function d(g,y,v){for(var m=0;m<v;m++)g.push(y+m)}function f(g){var y=g.dimsDef;return y?y.length:1}return A(n,function(g,y){var v=g.name,m=f(g);if(o==null){var x=p.valueWayDim;d(i[v],x,m),d(l,x,m),p.valueWayDim+=m}else o===y?(d(i[v],0,m),d(s,0,m)):(x=p.categoryWayDim,d(i[v],x,m),d(l,x,m),p.categoryWayDim+=m)}),s.length&&(i.itemName=s),l.length&&(i.seriesName=l),i}function zm(n,t,e){var i={};if(!mp(n))return i;var r,o=t.sourceFormat,a=t.dimensionsDefine;o!==bn&&o!==Hn||A(a,function(u,h){(Q(u)?u.name:u)==="name"&&(r=h)});var s=function(){for(var u={},h={},c=[],p=0,d=Math.min(5,e);p<d;p++){var f=Vm(t.data,o,t.seriesLayoutBy,a,t.startIndex,p);c.push(f);var g=f===lt.Not;if(g&&u.v==null&&p!==r&&(u.v=p),(u.n==null||u.n===u.v||!g&&c[u.n]===lt.Not)&&(u.n=p),y(u)&&c[u.n]!==lt.Not)return u;g||(f===lt.Might&&h.v==null&&p!==r&&(h.v=p),h.n!=null&&h.n!==h.v||(h.n=p))}function y(v){return v.v!=null&&v.n!=null}return y(u)?u:y(h)?h:null}();if(s){i.value=[s.v];var l=r??s.n;i.itemName=[l],i.seriesName=[l]}return i}function mp(n){if(!n.get("data",!0))return ha(n.ecModel,"dataset",{index:n.get("datasetIndex",!0),id:n.get("datasetId",!0)},nt).models[0]}function Bm(n,t){return Vm(n.data,n.sourceFormat,n.seriesLayoutBy,n.dimensionsDefine,n.startIndex,t)}function Vm(n,t,e,i,r,o){var a,s,l;if(mt(n))return lt.Not;if(i){var u=i[o];Q(u)?(s=u.name,l=u.type):q(u)&&(s=u)}if(l!=null)return l==="ordinal"?lt.Must:lt.Not;if(t===Ot){var h=n;if(e===mo){for(var c=h[o],p=0;p<(c||[]).length&&p<5;p++)if((a=x(c[r+p]))!=null)return a}else for(p=0;p<h.length&&p<5;p++){var d=h[r+p];if(d&&(a=x(d[o]))!=null)return a}}else if(t===bn){var f=n;if(!s)return lt.Not;for(p=0;p<f.length&&p<5;p++)if((v=f[p])&&(a=x(v[s]))!=null)return a}else if(t===Hn){var g=n;if(!s||!(c=g[s])||mt(c))return lt.Not;for(p=0;p<c.length&&p<5;p++)if((a=x(c[p]))!=null)return a}else if(t===sn){var y=n;for(p=0;p<y.length&&p<5;p++){var v,m=sa(v=y[p]);if(!Y(m))return lt.Not;if((a=x(m[o]))!=null)return a}}function x(_){var b=q(_);return _!=null&&isFinite(_)&&_!==""?b?lt.Might:lt.Not:b&&_!=="-"?lt.Must:void 0}return lt.Not}var xp=ie(),Gl,La,Fm,Gm=Ne(),QI=Ne(),_p=function(){function n(){}return n.prototype.getColorFromPalette=function(t,e,i){var r=Qe(this.get("color",!0)),o=this.get("colorLayer",!0);return Wm(this,Gm,r,o,t,e,i)},n.prototype.clearColorPalette=function(){(function(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}})(this,Gm)},n}();function Hm(n,t,e,i){var r=Qe(n.get(["aria","decal","decals"]));return Wm(n,QI,r,null,t,e,i)}function Wm(n,t,e,i,r,o,a){var s=t(o=o||n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var h=a!=null&&i?function(p,d){for(var f=p.length,g=0;g<f;g++)if(p[g].length>d)return p[g];return p[f-1]}(i,a):e;if((h=h||e)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}var wp="\0_ec_inner",eC={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},tC={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Hl={},Ym=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.init=function(e,i,r,o,a,s){o=o||{},this.option=null,this._theme=new He(o),this._locale=new He(a),this._optionManager=s},t.prototype.setOption=function(e,i,r){ue(e!=null,"option is null/undefined"),ue(e[wp]!==1,"please use chart.getOption()");var o=Zm(i);this._optionManager.setOption(e,r,o),this._resetOption(null,o)},t.prototype.resetOption=function(e,i){return this._resetOption(e,Zm(i))},t.prototype._resetOption=function(e,i){var r=!1,o=this._optionManager;if(!e||e==="recreate"){var a=o.mountOption(e==="recreate");A(a,function(u,h){if(!Te.hasClass(h)){var c=eC[h];c&&!Hl[c]&&(xt("Component "+h+` is used but not imported.
- import { `+c+` } from 'echarts/components';
- echarts.use([`+c+"]);"),Hl[c]=!0)}}),this.option&&e!=="recreate"?(this.restoreData(),this._mergeOption(a,i)):Fm(this,a),r=!0}if(e!=="timeline"&&e!=="media"||this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=o.getTimelineOption(this);s&&(r=!0,this._mergeOption(s,i))}if(!e||e==="recreate"||e==="media"){var l=o.getMediaOption(this);l.length&&A(l,function(u){r=!0,this._mergeOption(u,i)},this)}return r},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,i){var r=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=ie(),u=i&&i.replaceMergeMainTypeMap;Nm(this).datasetMap=ie(),A(e,function(h,c){h!=null&&(Te.hasClass(c)?c&&(s.push(c),l.set(c,!0)):r[c]=r[c]==null?oe(h):pe(r[c],h,!0))}),u&&u.each(function(h,c){Te.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),Te.topologicalTravel(s,Te.getAllClassMainTypes(),function(h){var c=function(_,b,w){var S=xp.get(b);if(!S)return w;var M=S(_);if(!M)return w;for(var T=0;T<M.length;T++)ue(Jr(M[T]));return w.concat(M)}(this,h,Qe(e[h])),p=o.get(h),d=p?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",f=TT(p,c,d);(function(_,b,w){A(_,function(S){var M=S.newOption;Q(M)&&(S.keyInfo.mainType=b,S.keyInfo.subType=function(T,I,C,D){return I.type?I.type:C?C.subType:D.determineSubType(T,I)}(b,M,S.existing,w))})})(f,h,Te),r[h]=null,o.set(h,null),a.set(h,0);var g,y,v=[],m=[],x=0;A(f,function(_,b){var w=_.existing,S=_.newOption;if(S){var M=h==="series",T=Te.getClass(h,_.keyInfo.subType,!M);if(!T){var I=_.keyInfo.subType,C=tC[I];return void(Hl[I]||(Hl[I]=!0,xt(C?"Series "+I+` is used but not imported.
- import { `+C+` } from 'echarts/charts';
- echarts.use([`+C+"]);":"Unknown series "+I)))}if(h==="tooltip"){if(g)return void(y||(Je("Currently only one tooltip component is allowed."),y=!0));g=!0}if(w&&w.constructor===T)w.name=_.keyInfo.name,w.mergeOption(S,this),w.optionUpdated(S,!1);else{var D=G({componentIndex:b},_.keyInfo);G(w=new T(S,this,this,D),D),_.brandNew&&(w.__requireNewView=!0),w.init(S,this,this),w.optionUpdated(null,!0)}}else w&&(w.mergeOption({},this),w.optionUpdated({},!1));w?(v.push(w.option),m.push(w),x++):(v.push(void 0),m.push(void 0))},this),r[h]=v,o.set(h,m),a.set(h,x),h==="series"&&Gl(this)},this),this._seriesIndices||Gl(this)},t.prototype.getOption=function(){var e=oe(this.option);return A(e,function(i,r){if(Te.hasClass(r)){for(var o=Qe(i),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!Jr(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,e[r]=o}}),delete e[wp],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 r=this._componentsMap.get(e);if(r){var o=r[i||0];if(o)return o;if(i==null){for(var a=0;a<r.length;a++)if(r[a])return r[a]}}},t.prototype.queryComponents=function(e){var i=e.mainType;if(!i)return[];var r,o=e.index,a=e.id,s=e.name,l=this._componentsMap.get(i);return l&&l.length?(o!=null?(r=[],A(Qe(o),function(u){l[u]&&r.push(l[u])})):r=a!=null?Xm("id",a,l):s!=null?Xm("name",s,l):We(l,function(u){return!!u}),Um(r,e)):[]},t.prototype.findComponents=function(e){var i,r,o,a,s,l=e.query,u=e.mainType,h=(r=u+"Index",o=u+"Id",a=u+"Name",!(i=l)||i[r]==null&&i[o]==null&&i[a]==null?null:{mainType:u,index:i[r],id:i[o],name:i[a]}),c=h?this.queryComponents(h):We(this._componentsMap.get(u),function(p){return!!p});return s=Um(c,e),e.filter?We(s,e.filter):s},t.prototype.eachComponent=function(e,i,r){var o=this._componentsMap;if(ae(e)){var a=i,s=e;o.each(function(c,p){for(var d=0;c&&d<c.length;d++){var f=c[d];f&&s.call(a,p,f,f.componentIndex)}})}else for(var l=q(e)?o.get(e):Q(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var h=l[u];h&&i.call(r,h,h.componentIndex)}},t.prototype.getSeriesByName=function(e){var i=Qt(e,null);return We(this._componentsMap.get("series"),function(r){return!!r&&i!=null&&r.name===i})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return We(this._componentsMap.get("series"),function(i){return!!i&&i.subType===e})},t.prototype.getSeries=function(){return We(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,i){La(this),A(this._seriesIndices,function(r){var o=this._componentsMap.get("series")[r];e.call(i,o,r)},this)},t.prototype.eachRawSeries=function(e,i){A(this._componentsMap.get("series"),function(r){r&&e.call(i,r,r.componentIndex)})},t.prototype.eachSeriesByType=function(e,i,r){La(this),A(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===e&&i.call(r,a,o)},this)},t.prototype.eachRawSeriesByType=function(e,i,r){return A(this.getSeriesByType(e),i,r)},t.prototype.isSeriesFiltered=function(e){return La(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,i){La(this);var r=[];A(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];e.call(i,a,o)&&r.push(o)},this),this._seriesIndices=r,this._seriesIndicesMap=ie(r)},t.prototype.restoreData=function(e){Gl(this);var i=this._componentsMap,r=[];i.each(function(o,a){Te.hasClass(a)&&r.push(a)}),Te.topologicalTravel(r,Te.getAllClassMainTypes(),function(o){A(i.get(o),function(a){!a||o==="series"&&function(s,l){if(l){var u=l.seriesIndex,h=l.seriesId,c=l.seriesName;return u!=null&&s.componentIndex!==u||h!=null&&s.id!==h||c!=null&&s.name!==c}}(a,e)||a.restoreData()})})},t.internalField=(Gl=function(e){var i=e._seriesIndices=[];A(e._componentsMap.get("series"),function(r){r&&i.push(r.componentIndex)}),e._seriesIndicesMap=ie(i)},La=function(e){if(!e._seriesIndices)throw new Error("Option should contains series.")},void(Fm=function(e,i){e.option={},e.option[wp]=1,e._componentsMap=ie({series:[]}),e._componentsCount=ie();var r=i.aria;Q(r)&&r.enabled==null&&(r.enabled=!0),function(o,a){var s=o.color&&!o.colorLayer;A(a,function(l,u){u==="colorLayer"&&s||Te.hasClass(u)||(typeof l=="object"?o[u]=o[u]?pe(o[u],l,!1):oe(l):o[u]==null&&(o[u]=l))})}(i,e._theme.option),pe(i,JI,!1),e._mergeOption(i,null)})),t}(He);function Xm(n,t,e){if(Y(t)){var i=ie();return A(t,function(o){o!=null&&Qt(o,null)!=null&&i.set(o,!0)}),We(e,function(o){return o&&i.get(o[n])})}var r=Qt(t,null);return We(e,function(o){return o&&r!=null&&o[n]===r})}function Um(n,t){return t.hasOwnProperty("subType")?We(n,function(e){return e&&e.subType===t.subType}):n}function Zm(n){var t=ie();return n&&A(Qe(n.replaceMerge),function(e){ue(Te.hasClass(e),'"'+e+'" is not valid component main type in "replaceMerge"'),t.set(e,!0)}),{replaceMergeMainTypeMap:t}}ct(Ym,_p);const jm=Ym;var nC=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];const qm=function(n){A(nC,function(t){this[t]=ne(n[t],n)},this)};var bp={},iC=function(){function n(){this._coordinateSystems=[]}return n.prototype.create=function(t,e){var i=[];A(bp,function(r,o){var a=r.create(t,e);i=i.concat(a||[])}),this._coordinateSystems=i},n.prototype.update=function(t,e){A(this._coordinateSystems,function(i){i.update&&i.update(t,e)})},n.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},n.register=function(t,e){bp[t]=e},n.get=function(t){return bp[t]},n}();const Wl=iC;var rC=/^(min|max)?(.+)$/,oC=function(){function n(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return n.prototype.setOption=function(t,e,i){t&&(A(Qe(t.series),function(a){a&&a.data&&mt(a.data)&&Ho(a.data)}),A(Qe(t.dataset),function(a){a&&a.source&&mt(a.source)&&Ho(a.source)})),t=oe(t);var r=this._optionBackup,o=function(a,s,l){var u,h,c=[],p=a.baseOption,d=a.timeline,f=a.options,g=a.media,y=!!a.media,v=!!(f||d||p&&p.timeline);p?(h=p).timeline||(h.timeline=d):((v||y)&&(a.options=a.media=null),h=a),y&&(Y(g)?A(g,function(x){x&&!x.option&&Q(x.query)&&Q(x.query.option)&&xt("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),x&&x.option&&(x.query?c.push(x):u||(u=x))}):xt("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }"));function m(x){A(s,function(_){_(x,l)})}return m(h),A(f,function(x){return m(x)}),A(c,function(x){return m(x.option)}),{baseOption:h,timelineOptions:f||[],mediaDefault:u,mediaList:c}}(t,e,!r);this._newBaseOption=o.baseOption,r?(o.timelineOptions.length&&(r.timelineOptions=o.timelineOptions),o.mediaList.length&&(r.mediaList=o.mediaList),o.mediaDefault&&(r.mediaDefault=o.mediaDefault)):this._optionBackup=o},n.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],oe(t?e.baseOption:this._newBaseOption)},n.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var r=t.getComponent("timeline");r&&(e=oe(i[r.getCurrentIndex()]))}return e},n.prototype.getMediaOption=function(t){var e,i,r=this._api.getWidth(),o=this._api.getHeight(),a=this._mediaList,s=this._mediaDefault,l=[],u=[];if(!a.length&&!s)return u;for(var h=0,c=a.length;h<c;h++)aC(a[h].query,r,o)&&l.push(h);return!l.length&&s&&(l=[-1]),l.length&&(e=l,i=this._currentMediaIndices,e.join(",")!==i.join(","))&&(u=X(l,function(p){return oe(p===-1?s.option:a[p].option)})),this._currentMediaIndices=l,u},n}();function aC(n,t,e){var i={width:t,height:e,aspectratio:t/e},r=!0;return A(n,function(o,a){var s=a.match(rC);if(s&&s[1]&&s[2]){var l=s[1],u=s[2].toLowerCase();(function(h,c,p){return p==="min"?h>=c:p==="max"?h<=c:h===c})(i[u],o,l)||(r=!1)}}),r}const sC=oC;var ln=A,Pa=Q,Km=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sp(n){var t=n&&n.itemStyle;if(t)for(var e=0,i=Km.length;e<i;e++){var r=Km[e],o=t.normal,a=t.emphasis;o&&o[r]&&($e("itemStyle.normal."+r,r),n[r]=n[r]||{},n[r].normal?pe(n[r].normal,o[r]):n[r].normal=o[r],o[r]=null),a&&a[r]&&($e("itemStyle.emphasis."+r,"emphasis."+r),n[r]=n[r]||{},n[r].emphasis?pe(n[r].emphasis,a[r]):n[r].emphasis=a[r],a[r]=null)}}function ft(n,t,e){if(n&&n[t]&&(n[t].normal||n[t].emphasis)){var i=n[t].normal,r=n[t].emphasis;i&&($t("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),e?(n[t].normal=n[t].emphasis=null,le(n[t],i)):n[t]=i),r&&($t(t+".emphasis has been changed to emphasis."+t+" since 4.0"),n.emphasis=n.emphasis||{},n.emphasis[t]=r,r.focus&&(n.emphasis.focus=r.focus),r.blurScope&&(n.emphasis.blurScope=r.blurScope))}}function Oa(n){ft(n,"itemStyle"),ft(n,"lineStyle"),ft(n,"areaStyle"),ft(n,"label"),ft(n,"labelLine"),ft(n,"upperLabel"),ft(n,"edgeLabel")}function Ze(n,t){var e=Pa(n)&&n[t],i=Pa(e)&&e.textStyle;if(i){$t("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var r=0,o=Iy.length;r<o;r++){var a=Iy[r];i.hasOwnProperty(a)&&(e[a]=i[a])}}}function un(n){n&&(Oa(n),Ze(n,"label"),n.emphasis&&Ze(n.emphasis,"label"))}function ui(n){return Y(n)?n:n?[n]:[]}function Jm(n){return(Y(n)?n[0]:n)||{}}function lC(n,t){ln(ui(n.series),function(i){Pa(i)&&function(r){if(Pa(r)){Sp(r),Oa(r),Ze(r,"label"),Ze(r,"upperLabel"),Ze(r,"edgeLabel"),r.emphasis&&(Ze(r.emphasis,"label"),Ze(r.emphasis,"upperLabel"),Ze(r.emphasis,"edgeLabel"));var o=r.markPoint;o&&(Sp(o),un(o));var a=r.markLine;a&&(Sp(a),un(a));var s=r.markArea;s&&un(s);var l=r.data;if(r.type==="graph"){l=l||r.nodes;var u=r.links||r.edges;if(u&&!mt(u))for(var h=0;h<u.length;h++)un(u[h]);A(r.categories,function(d){Oa(d)})}if(l&&!mt(l))for(h=0;h<l.length;h++)un(l[h]);if((o=r.markPoint)&&o.data){var c=o.data;for(h=0;h<c.length;h++)un(c[h])}if((a=r.markLine)&&a.data){var p=a.data;for(h=0;h<p.length;h++)Y(p[h])?(un(p[h][0]),un(p[h][1])):un(p[h])}r.type==="gauge"?(Ze(r,"axisLabel"),Ze(r,"title"),Ze(r,"detail")):r.type==="treemap"?(ft(r.breadcrumb,"itemStyle"),A(r.levels,function(d){Oa(d)})):r.type==="tree"&&Oa(r.leaves)}}(i)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),ln(e,function(i){ln(ui(n[i]),function(r){r&&(Ze(r,"axisLabel"),Ze(r.axisPointer,"label"))})}),ln(ui(n.parallel),function(i){var r=i&&i.parallelAxisDefault;Ze(r,"axisLabel"),Ze(r&&r.axisPointer,"label")}),ln(ui(n.calendar),function(i){ft(i,"itemStyle"),Ze(i,"dayLabel"),Ze(i,"monthLabel"),Ze(i,"yearLabel")}),ln(ui(n.radar),function(i){Ze(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name,$t("name property in radar component has been changed to axisName")),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap,$t("nameGap property in radar component has been changed to axisNameGap")),ln(i.indicator,function(r){r.text&&$e("text","name","radar.indicator")})}),ln(ui(n.geo),function(i){Pa(i)&&(un(i),ln(ui(i.regions),function(r){un(r)}))}),ln(ui(n.timeline),function(i){un(i),ft(i,"label"),ft(i,"itemStyle"),ft(i,"controlStyle",!0);var r=i.data;Y(r)&&A(r,function(o){Q(o)&&(ft(o,"label"),ft(o,"itemStyle"))})}),ln(ui(n.toolbox),function(i){ft(i,"iconStyle"),ln(i.feature,function(r){ft(r,"iconStyle")})}),Ze(Jm(n.axisPointer),"label"),Ze(Jm(n.tooltip).axisPointer,"label")}function $m(n){n&&A(uC,function(t){t[0]in n&&!(t[1]in n)&&(n[t[1]]=n[t[0]])})}var uC=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],hC=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Mp=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ra(n){var t=n&&n.itemStyle;if(t)for(var e=0;e<Mp.length;e++){var i=Mp[e][1],r=Mp[e][0];t[i]!=null&&(t[r]=t[i],$e(i,r))}}function Qm(n){n&&n.alignTo==="edge"&&n.margin!=null&&n.edgeDistance==null&&($e("label.margin","label.edgeDistance","pie"),n.edgeDistance=n.margin)}function e0(n){n&&n.downplay&&!n.blur&&(n.blur=n.downplay,$e("downplay","blur","sunburst"))}function t0(n,t){if(n)for(var e=0;e<n.length;e++)t(n[e]),n[e]&&t0(n[e].children,t)}function n0(n,t){lC(n,t),n.series=Qe(n.series),A(n.series,function(e){if(Q(e)){var i=e.type;if(i==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow,$e("clipOverflow","clip","line"));else if(i==="pie"||i==="gauge"){if(e.clockWise!=null&&(e.clockwise=e.clockWise,$e("clockWise","clockwise")),Qm(e.label),(a=e.data)&&!mt(a))for(var r=0;r<a.length;r++)Qm(a[r]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&($e("hoverOffset","emphasis.scaleSize"),e.emphasis.scaleSize=e.hoverOffset))}else if(i==="gauge"){var o=function(l,u){for(var h=u.split(","),c=l,p=0;p<h.length&&(c=c&&c[h[p]])!=null;p++);return c}(e,"pointer.color");o!=null&&function(l,u,h,c){for(var p,d=u.split(","),f=l,g=0;g<d.length-1;g++)f[p=d[g]]==null&&(f[p]={}),f=f[p];(c||f[d[g]]==null)&&(f[d[g]]=h)}(e,"itemStyle.color",o)}else if(i==="bar"){var a;if(Ra(e),Ra(e.backgroundStyle),Ra(e.emphasis),(a=e.data)&&!mt(a))for(r=0;r<a.length;r++)typeof a[r]=="object"&&(Ra(a[r]),Ra(a[r]&&a[r].emphasis))}else if(i==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s,$e("highlightPolicy","emphasis.focus","sunburst"))),e0(e),t0(e.data,e0)}else i==="graph"||i==="sankey"?function(l){l&&l.focusNodeAdjacency!=null&&(l.emphasis=l.emphasis||{},l.emphasis.focus==null&&($e("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),l.emphasis.focus="adjacency"))}(e):i==="map"&&(e.mapType&&!e.map&&($e("mapType","map","map"),e.map=e.mapType),e.mapLocation&&($t("`mapLocation` is not used anymore."),le(e,e.mapLocation)));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&($e("hoverAnimation","emphasis.scale"),e.emphasis.scale=e.hoverAnimation)),$m(e)}}),n.dataRange&&(n.visualMap=n.dataRange),A(hC,function(e){var i=n[e];i&&(Y(i)||(i=[i]),A(i,function(r){$m(r)}))})}function cC(n){A(n,function(t,e){var i=[],r=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(u,h,c){var p,d,f=a.get(t.stackedDimension,c);if(isNaN(f))return r;s?d=a.getRawIndex(c):p=a.get(t.stackedByDimension,c);for(var g=NaN,y=e-1;y>=0;y--){var v=n[y];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,p)),d>=0){var m=v.data.getByRawIndex(v.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&f>=0&&m>0||l==="samesign"&&f<=0&&m<0){f=_T(f,m),g=m;break}}}return i[0]=f,i[1]=g,i})})}var xo,_o,wo,i0,r0,Yl=function(n){this.data=n.data||(n.sourceFormat===Hn?{}:[]),this.sourceFormat=n.sourceFormat||Em,this.seriesLayoutBy=n.seriesLayoutBy||Wn,this.startIndex=n.startIndex||0,this.dimensionsDetectedCount=n.dimensionsDetectedCount,this.metaRawOption=n.metaRawOption;var t=this.dimensionsDefine=n.dimensionsDefine;if(t)for(var e=0;e<t.length;e++){var i=t[e];i.type==null&&Bm(this,e)===lt.Must&&(i.type="ordinal")}};function Tp(n){return n instanceof Yl}function Ip(n,t,e){e=e||o0(n);var i=t.seriesLayoutBy,r=function(o,a,s,l,u){var h,c;if(!o)return{dimensionsDefine:a0(u),startIndex:c,dimensionsDetectedCount:h};if(a===Ot){var p=o;l==="auto"||l==null?s0(function(f){f!=null&&f!=="-"&&(q(f)?c==null&&(c=1):c=0)},s,p,10):c=Re(l)?l:l?1:0,u||c!==1||(u=[],s0(function(f,g){u[g]=f!=null?f+"":""},s,p,1/0)),h=u?u.length:s===mo?p.length:p[0]?p[0].length:null}else if(a===bn)u||(u=function(f){for(var g,y=0;y<f.length&&!(g=f[y++]););if(g)return Oe(g)}(o));else if(a===Hn)u||(u=[],A(o,function(f,g){u.push(g)}));else if(a===sn){var d=sa(o[0]);h=Y(d)&&d.length||1}else a===li&&ue(!!u,"dimensions must be given if data is TypedArray.");return{startIndex:c,dimensionsDefine:a0(u),dimensionsDetectedCount:h}}(n,e,i,t.sourceHeader,t.dimensions);return new Yl({data:n,sourceFormat:e,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:oe(t)})}function Cp(n){return new Yl({data:n,sourceFormat:mt(n)?li:sn})}function o0(n){var t=Em;if(mt(n))t=li;else if(Y(n)){n.length===0&&(t=Ot);for(var e=0,i=n.length;e<i;e++){var r=n[e];if(r!=null){if(Y(r)){t=Ot;break}if(Q(r)){t=bn;break}}}}else if(Q(n)){for(var o in n)if(Ut(n,o)&&vt(n[o])){t=Hn;break}}return t}function a0(n){if(n){var t=ie();return X(n,function(e,i){var r={name:(e=Q(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+="",r.displayName==null&&(r.displayName=r.name);var o=t.get(r.name);return o?r.name+="-"+o.count++:t.set(r.name,{count:1}),r})}}function s0(n,t,e,i){if(t===mo)for(var r=0;r<e.length&&r<i;r++)n(e[r]?e[r][0]:null,r);else{var o=e[0]||[];for(r=0;r<o.length&&r<i;r++)n(o[r],r)}}function l0(n){var t=n.sourceFormat;return t===bn||t===Hn}var u0=function(){function n(t,e){var i=Tp(t)?t:Cp(t);this._source=i;var r=this._data=i.data;if(i.sourceFormat===li){if(e==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=e,this._data=r}r0(this,r,i)}return n.prototype.getSource=function(){return this._source},n.prototype.count=function(){return 0},n.prototype.getItem=function(t,e){},n.prototype.appendData=function(t){},n.prototype.clean=function(){},n.protoInitialize=function(){var t=n.prototype;t.pure=!1,t.persistent=!0}(),n.internalField=function(){var t;r0=function(a,s,l){var u=l.sourceFormat,h=l.seriesLayoutBy,c=l.startIndex,p=l.dimensionsDefine,d=i0[Dp(u,h)];if(ue(d,"Invalide sourceFormat: "+u),G(a,d),u===li)a.getItem=e,a.count=r,a.fillStorage=i;else{var f=c0(u,h);a.getItem=ne(f,null,s,c,p);var g=d0(u,h);a.count=ne(g,null,s,c,p)}};var e=function(a,s){a-=this._offset,s=s||[];for(var l=this._data,u=this._dimSize,h=u*a,c=0;c<u;c++)s[c]=l[h+c];return s},i=function(a,s,l,u){for(var h=this._data,c=this._dimSize,p=0;p<c;p++){for(var d=u[p],f=d[0]==null?1/0:d[0],g=d[1]==null?-1/0:d[1],y=s-a,v=l[p],m=0;m<y;m++){var x=h[m*c+p];v[a+m]=x,x<f&&(f=x),x>g&&(g=x)}d[0]=f,d[1]=g}},r=function(){return this._data?this._data.length/this._dimSize:0};function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}(t={})[Ot+"_"+Wn]={pure:!0,appendData:o},t[Ot+"_"+mo]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[bn]={pure:!0,appendData:o},t[Hn]={pure:!0,appendData:function(a){var s=this._data;A(a,function(l,u){for(var h=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)h.push(l[c])})}},t[sn]={appendData:o},t[li]={persistent:!1,pure:!0,appendData:function(a){ue(mt(a),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},i0=t}(),n}(),h0=function(n,t,e,i){return n[i]},pC=((xo={})[Ot+"_"+Wn]=function(n,t,e,i){return n[i+t]},xo[Ot+"_"+mo]=function(n,t,e,i,r){i+=t;for(var o=r||[],a=n,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},xo[bn]=h0,xo[Hn]=function(n,t,e,i,r){for(var o=r||[],a=0;a<e.length;a++){var s=e[a].name;if(s==null)throw new Error;var l=n[s];o[a]=l?l[i]:null}return o},xo[sn]=h0,xo);function c0(n,t){var e=pC[Dp(n,t)];return ue(e,'Do not support get item on "'+n+'", "'+t+'".'),e}var p0=function(n,t,e){return n.length},dC=((_o={})[Ot+"_"+Wn]=function(n,t,e){return Math.max(0,n.length-t)},_o[Ot+"_"+mo]=function(n,t,e){var i=n[0];return i?Math.max(0,i.length-t):0},_o[bn]=p0,_o[Hn]=function(n,t,e){var i=e[0].name;if(i==null)throw new Error;var r=n[i];return r?r.length:0},_o[sn]=p0,_o);function d0(n,t){var e=dC[Dp(n,t)];return ue(e,'Do not support count on "'+n+'", "'+t+'".'),e}var Ap=function(n,t,e){return n[t]},fC=((wo={})[Ot]=Ap,wo[bn]=function(n,t,e){return n[e]},wo[Hn]=Ap,wo[sn]=function(n,t,e){var i=sa(n);return i instanceof Array?i[t]:i},wo[li]=Ap,wo);function f0(n){var t=fC[n];return ue(t,'Do not support get value on "'+n+'".'),t}function Dp(n,t){return n===Ot?n+"_"+t:n}function bo(n,t,e){if(n){var i=n.getRawDataItem(t);if(i!=null){var r=n.getStore(),o=r.getSource().sourceFormat;if(e!=null){var a=n.getDimensionIndex(e),s=r.getDimensionProperty(a);return f0(o)(i,a,s)}var l=i;return o===sn&&(l=sa(i)),l}}}var gC=/\{@(.+?)\}/g,yC=function(){function n(){}return n.prototype.getDataParams=function(t,e){var i=this.getData(e),r=this.getRawValue(t,e),o=i.getRawIndex(t),a=i.getName(t),s=i.getRawDataItem(t),l=i.getItemVisual(t,"style"),u=l&&l[i.getItemVisual(t,"drawType")||"fill"],h=l&&l.stroke,c=this.mainType,p=c==="series",d=i.userOutput&&i.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:p?this.subType:null,seriesIndex:this.seriesIndex,seriesId:p?this.id:null,seriesName:p?this.name:null,name:a,dataIndex:o,data:s,dataType:e,value:r,color:u,borderColor:h,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},n.prototype.getFormattedLabel=function(t,e,i,r,o,a){e=e||"normal";var s=this.getData(i),l=this.getDataParams(t,i);return a&&(l.value=a.interpolatedValue),r!=null&&Y(l.value)&&(l.value=l.value[r]),o||(o=s.getItemModel(t).get(e==="normal"?["label","formatter"]:[e,"label","formatter"])),ae(o)?(l.status=e,l.dimensionIndex=r,o(l)):q(o)?gp(o,l).replace(gC,function(u,h){var c=h.length,p=h;p.charAt(0)==="["&&p.charAt(c-1)==="]"&&(p=+p.slice(1,c-1),isNaN(p)&&xt("Invalide label formatter: @"+h+", only support @[0], @[1], @[2], ..."));var d=bo(s,t,p);if(a&&Y(a.interpolatedValue)){var f=s.getDimensionIndex(p);f>=0&&(d=a.interpolatedValue[f])}return d!=null?d+"":""}):void 0},n.prototype.getRawValue=function(t,e){return bo(this.getData(e),t)},n.prototype.formatTooltip=function(t,e,i){},n}();function g0(n){var t,e;return Q(n)?n.type?e=n:console.warn("The return type of `formatTooltip` is not supported: "+Ks(n)):t=n,{text:t,frag:e}}function Ea(n){return new vC(n)}var vC=function(){function n(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return n.prototype.perform=function(t){var e,i=this._upstream,r=t&&t.skip;if(this._dirty&&i){var o=this.context;o.data=o.outputData=i.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context));var a,s=c(this._modBy),l=this._modDataCount||0,u=c(t&&t.modBy),h=t&&t.modDataCount||0;function c(m){return!(m>=1)&&(m=1),m}s===u&&l===h||(e="reset"),(this._dirty||e==="reset")&&(this._dirty=!1,a=this._doReset(r)),this._modBy=u,this._modDataCount=h;var p=t&&t.step;if(i?(ue(i._outputDueEnd!=null),this._dueEnd=i._outputDueEnd):(ue(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var d=this._dueIndex,f=Math.min(p!=null?this._dueIndex+p:1/0,this._dueEnd);if(!r&&(a||d<f)){var g=this._progress;if(Y(g))for(var y=0;y<g.length;y++)this._doProgress(g[y],d,f,u,h);else this._doProgress(g,d,f,u,h)}this._dueIndex=f;var v=this._settedOutputEnd!=null?this._settedOutputEnd:f;ue(v>=this._outputDueEnd),this._outputDueEnd=v}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},n.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},n.prototype._doProgress=function(t,e,i,r,o){y0.reset(e,i,r,o),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:y0.next},this.context)},n.prototype._doReset=function(t){var e,i;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(i=e.forceFirstProgress,e=e.progress),Y(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),i},n.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},n.prototype.pipe=function(t){ue(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},n.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},n.prototype.getUpstream=function(){return this._upstream},n.prototype.getDownstream=function(){return this._downstream},n.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},n}(),y0=function(){var n,t,e,i,r,o={reset:function(l,u,h,c){t=l,n=u,e=h,i=c,r=Math.ceil(i/e),o.next=e>1&&i>0?s:a}};return o;function a(){return t<n?t++:null}function s(){var l=t%r*e+Math.ceil(t/r),u=t>=n?null:l<i?l:t;return t++,u}}();function Xl(n,t){var e=t&&t.type;return e==="ordinal"?n:(e!=="time"||Re(n)||n==null||n==="-"||(n=+Jt(n)),n==null||n===""?NaN:+n)}ie({number:function(n){return parseFloat(n)},time:function(n){return+Jt(n)},trim:function(n){return q(n)?Xt(n):n}});var mC=function(){function n(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 n.prototype.evaluate=function(t,e){var i=Re(t)?t:aa(t),r=Re(e)?e:aa(e),o=isNaN(i),a=isNaN(r);if(o&&(i=this._incomparable),a&&(r=this._incomparable),o&&a){var s=q(t),l=q(e);s&&(i=l?t:0),l&&(r=s?e:0)}return i<r?this._resultLT:i>r?-this._resultLT:0},n}(),xC=function(){function n(){}return n.prototype.getRawData=function(){throw new Error("not supported")},n.prototype.getRawDataItem=function(t){throw new Error("not supported")},n.prototype.cloneRawData=function(){},n.prototype.getDimensionInfo=function(t){},n.prototype.cloneAllDimensionInfo=function(){},n.prototype.count=function(){},n.prototype.retrieveValue=function(t,e){},n.prototype.retrieveValueFromItem=function(t,e){},n.prototype.convertValue=function(t,e){return Xl(t,e)},n}();function _C(n){var t=n.sourceFormat;return kp(t)||Dt("`getRawData` is not supported in source format "+t),n.data}function wC(n){var t=n.sourceFormat,e=n.data;if(kp(t)||Dt("`cloneRawData` is not supported in source format "+t),t===Ot){for(var i=[],r=0,o=e.length;r<o;r++)i.push(e[r].slice());return i}if(t===bn){for(i=[],r=0,o=e.length;r<o;r++)i.push(G({},e[r]));return i}}function bC(n,t,e){if(e!=null)return Re(e)||!isNaN(e)&&!Ut(t,e)?n[e]:Ut(t,e)?t[e]:void 0}function SC(n){return oe(n)}var v0=ie();function MC(n,t,e,i){t.length||Dt("Must have at least one upstream dataset."),Q(n)||Dt("transform declaration must be an object rather than "+typeof n+".");var r=n.type,o=v0.get(r);o||Dt('Can not find transform on type "'+r+'".');var a,s=X(t,function(h){return function(c,p){var d=new xC,f=c.data,g=d.sourceFormat=c.sourceFormat,y=c.startIndex;c.seriesLayoutBy!==Wn&&Dt('`seriesLayoutBy` of upstream dataset can only be "column" in data transform.');var v=[],m={},x=c.dimensionsDefine;if(x)A(x,function(T,I){var C=T.name,D={index:I,name:C,displayName:T.displayName};v.push(D),C!=null&&(Ut(m,C)&&Dt('dimension name "'+C+'" duplicated.'),m[C]=D)});else for(var _=0;_<c.dimensionsDetectedCount;_++)v.push({index:_});var b=c0(g,Wn);p.__isBuiltIn&&(d.getRawDataItem=function(T){return b(f,y,v,T)},d.getRawData=ne(_C,null,c)),d.cloneRawData=ne(wC,null,c);var w=d0(g,Wn);d.count=ne(w,null,f,y,v);var S=f0(g);d.retrieveValue=function(T,I){var C=b(f,y,v,T);return M(C,I)};var M=d.retrieveValueFromItem=function(T,I){if(T!=null){var C=v[I];return C?S(T,I,C.name):void 0}};return d.getDimensionInfo=ne(bC,null,v,m),d.cloneAllDimensionInfo=ne(SC,null,v),d}(h,o)}),l=Qe(o.transform({upstream:s[0],upstreamList:s,config:oe(n.config)}));if(n.print){var u=X(l,function(h){var c=i!=null?" === pipe index: "+i:"";return["=== dataset index: "+e.datasetIndex+c+" ===","- transform result data:",Ks(h.data),"- transform result dimensions:",Ks(h.dimensions)].join(`
- `)}).join(`
- `);qs("log",u,a)}return X(l,function(h,c){var p;Q(h)||Dt("A transform should not return some empty results."),h.data||Dt("Transform result data should be not be null or undefined"),kp(o0(h.data))||Dt("Transform result data should be array rows or object rows.");var d=t[0];if(d&&c===0&&!h.dimensions){var f=d.startIndex;f&&(h.data=d.data.slice(0,f).concat(h.data)),p={seriesLayoutBy:Wn,sourceHeader:f,dimensions:d.metaRawOption.dimensions}}else p={seriesLayoutBy:Wn,sourceHeader:0,dimensions:h.dimensions};return Ip(h.data,p,null)})}function kp(n){return n===Ot||n===bn}var Lp,Ul="undefined",TC=typeof Uint32Array===Ul?Array:Uint32Array,IC=typeof Uint16Array===Ul?Array:Uint16Array,m0=typeof Int32Array===Ul?Array:Int32Array,x0=typeof Float64Array===Ul?Array:Float64Array,_0={float:x0,int:m0,ordinal:Array,number:Array,time:x0};function Na(n){return n>65535?TC:IC}function w0(n,t,e,i,r){var o=_0[e||"float"];if(r){var a=n[t],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;u<s;u++)l[u]=a[u];n[t]=l}}else n[t]=new o(i)}var CC=function(){function n(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ie()}return n.prototype.initData=function(t,e,i){ue(ae(t.getItem)&&ae(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=t.getSource(),o=this.defaultDimValueGetter=Lp[r.sourceFormat];this._dimValueGetter=i||o,this._rawExtent=[];var a=l0(r);this._dimensions=X(e,function(s){return a&&ue(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},n.prototype.getProvider=function(){return this._provider},n.prototype.getSource=function(){return this._provider.getSource()},n.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,r=this._dimensions,o=i.get(t);if(o!=null){if(r[o].type===e)return o}else o=r.length;return r[o]={type:e},i.set(t,o),this._chunks[o]=new _0[e||"float"](this._rawCount),this._rawExtent[o]=[1/0,-1/0],o},n.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],r=this._dimensions[t],o=this._rawExtent,a=r.ordinalOffset||0,s=i.length;a===0&&(o[t]=[1/0,-1/0]);for(var l=o[t],u=a;u<s;u++){var h=i[u]=e.parseAndCollect(i[u]);isNaN(h)||(l[0]=Math.min(h,l[0]),l[1]=Math.max(h,l[1]))}r.ordinalMeta=e,r.ordinalOffset=s,r.type="ordinal"},n.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},n.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},n.prototype.appendData=function(t){ue(!this._indices,"appendData can only be called on raw data.");var e=this._provider,i=this.count();e.appendData(t);var r=e.count();return e.persistent||(r+=i),i<r&&this._initDataFromProvider(i,r,!0),[i,r]},n.prototype.appendValues=function(t,e){for(var i=this._chunks,r=this._dimensions,o=r.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<o;u++)w0(i,u,(f=r[u]).type,l,!0);for(var h=[],c=s;c<l;c++)for(var p=c-s,d=0;d<o;d++){var f=r[d],g=Lp.arrayRows.call(this,t[p]||h,f.property,p,d);i[d][c]=g;var y=a[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},n.prototype._initDataFromProvider=function(t,e,i){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=X(a,function(m){return m.property}),h=0;h<s;h++){var c=a[h];l[h]||(l[h]=[1/0,-1/0]),w0(o,h,c.type,e,i)}if(r.fillStorage)r.fillStorage(t,e,o,l);else for(var p=[],d=t;d<e;d++){p=r.getItem(d,p);for(var f=0;f<s;f++){var g=o[f],y=this._dimValueGetter(p,u[f],d,f);g[d]=y;var v=l[f];y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},n.prototype.count=function(){return this._count},n.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},n.prototype.getValues=function(t,e){var i=[],r=[];if(e==null){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)r.push(o)}else r=t;o=0;for(var a=r.length;o<a;o++)i.push(this.get(r[o],e));return i},n.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var i=this._chunks[t];return i?i[e]:NaN},n.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var i=0,r=this.count();i<r;i++){var o=this.get(t,i);isNaN(o)||(e+=o)}return e},n.prototype.getMedian=function(t){var e=[];this.each([t],function(o){isNaN(o)||e.push(o)});var i=e.sort(function(o,a){return o-a}),r=this.count();return r===0?0:r%2==1?i[(r-1)/2]:(i[r/2]+i[r/2-1])/2},n.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 r=0,o=this._count-1;r<=o;){var a=(r+o)/2|0;if(e[a]<t)r=a+1;else{if(!(e[a]>t))return a;o=a-1}}return-1},n.prototype.indicesOfNearest=function(t,e,i){var r=this._chunks[t],o=[];if(!r)return o;i==null&&(i=1/0);for(var a=1/0,s=-1,l=0,u=0,h=this.count();u<h;u++){var c=e-r[this.getRawIndex(u)],p=Math.abs(c);p<=i&&((p<a||p===a&&c>=0&&s<0)&&(a=p,s=c,l=0),c===s&&(o[l++]=u))}return o.length=l,o},n.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,r=this._count;if(i===Array){t=new i(r);for(var o=0;o<r;o++)t[o]=e[o]}else t=new i(e.buffer,0,r)}else for(t=new(i=Na(this._rawCount))(this.count()),o=0;o<t.length;o++)t[o]=o;return t},n.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),r=i.count(),o=new(Na(i._rawCount))(r),a=[],s=t.length,l=0,u=t[0],h=i._chunks,c=0;c<r;c++){var p=void 0,d=i.getRawIndex(c);if(s===0)p=e(c);else if(s===1)p=e(h[u][d],c);else{for(var f=0;f<s;f++)a[f]=h[t[f]][d];a[f]=c,p=e.apply(null,a)}p&&(o[l++]=d)}return l<r&&(i._indices=o),i._count=l,i._extent=[],i._updateGetRawIdx(),i},n.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var r=Oe(t),o=r.length;if(!o)return this;var a=e.count(),s=new(Na(e._rawCount))(a),l=0,u=r[0],h=t[u][0],c=t[u][1],p=e._chunks,d=!1;if(!e._indices){var f=0;if(o===1){for(var g=p[r[0]],y=0;y<i;y++)((_=g[y])>=h&&_<=c||isNaN(_))&&(s[l++]=f),f++;d=!0}else if(o===2){g=p[r[0]];var v=p[r[1]],m=t[r[1]][0],x=t[r[1]][1];for(y=0;y<i;y++){var _=g[y],b=v[y];(_>=h&&_<=c||isNaN(_))&&(b>=m&&b<=x||isNaN(b))&&(s[l++]=f),f++}d=!0}}if(!d)if(o===1)for(y=0;y<a;y++){var w=e.getRawIndex(y);((_=p[r[0]][w])>=h&&_<=c||isNaN(_))&&(s[l++]=w)}else for(y=0;y<a;y++){for(var S=!0,M=(w=e.getRawIndex(y),0);M<o;M++){var T=r[M];((_=p[T][w])<t[T][0]||_>t[T][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(y))}return l<a&&(e._indices=s),e._count=l,e._extent=[],e._updateGetRawIdx(),e},n.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},n.prototype.modify=function(t,e){this._updateDims(this,t,e)},n.prototype._updateDims=function(t,e,i){for(var r=t._chunks,o=[],a=e.length,s=t.count(),l=[],u=t._rawExtent,h=0;h<e.length;h++)u[e[h]]=[1/0,-1/0];for(var c=0;c<s;c++){for(var p=t.getRawIndex(c),d=0;d<a;d++)l[d]=r[e[d]][p];l[a]=c;var f=i&&i.apply(null,l);if(f!=null)for(typeof f!="object"&&(o[0]=f,f=o),h=0;h<f.length;h++){var g=e[h],y=f[h],v=u[g],m=r[g];m&&(m[p]=y),y<v[0]&&(v[0]=y),y>v[1]&&(v[1]=y)}}},n.prototype.lttbDownSample=function(t,e){var i,r,o,a=this.clone([t],!0),s=a._chunks[t],l=this.count(),u=0,h=Math.floor(1/e),c=this.getRawIndex(0),p=new(Na(this._rawCount))(Math.min(2*(Math.ceil(l/h)+2),l));p[u++]=c;for(var d=1;d<l-1;d+=h){for(var f=Math.min(d+h,l-1),g=Math.min(d+2*h,l),y=(g+f)/2,v=0,m=f;m<g;m++){var x=s[I=this.getRawIndex(m)];isNaN(x)||(v+=x)}v/=g-f;var _=d,b=Math.min(d+h,l),w=d-1,S=s[c];i=-1,o=_;var M=-1,T=0;for(m=_;m<b;m++){var I;x=s[I=this.getRawIndex(m)],isNaN(x)?(T++,M<0&&(M=I)):(r=Math.abs((w-y)*(x-S)-(w-m)*(v-S)))>i&&(i=r,o=I)}T>0&&T<b-_&&(p[u++]=Math.min(M,o),o=Math.max(M,o)),p[u++]=o,c=o}return p[u++]=this.getRawIndex(l-1),a._count=u,a._indices=p,a.getRawIndex=this._getRawIdx,a},n.prototype.downSample=function(t,e,i,r){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/e),u=a[t],h=this.count(),c=o._rawExtent[t]=[1/0,-1/0],p=new(Na(this._rawCount))(Math.ceil(h/l)),d=0,f=0;f<h;f+=l){l>h-f&&(l=h-f,s.length=l);for(var g=0;g<l;g++){var y=this.getRawIndex(f+g);s[g]=u[y]}var v=i(s),m=this.getRawIndex(Math.min(f+r(s,v)||0,h-1));u[m]=v,v<c[0]&&(c[0]=v),v>c[1]&&(c[1]=v),p[d++]=m}return o._count=d,o._indices=p,o._updateGetRawIdx(),o},n.prototype.each=function(t,e){if(this._count)for(var i=t.length,r=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(i){case 0:e(o);break;case 1:e(r[t[0]][s],o);break;case 2:e(r[t[0]][s],r[t[1]][s],o);break;default:for(var l=0,u=[];l<i;l++)u[l]=r[t[l]][s];u[l]=o,e.apply(null,u)}}},n.prototype.getDataExtent=function(t){var e=this._chunks[t],i=[1/0,-1/0];if(!e)return i;var r,o=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var a=(r=i)[0],s=r[1],l=0;l<o;l++){var u=e[this.getRawIndex(l)];u<a&&(a=u),u>s&&(s=u)}return r=[a,s],this._extent[t]=r,r},n.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],r=this._chunks,o=0;o<r.length;o++)i.push(r[o][e]);return i},n.prototype.clone=function(t,e){var i,r,o=new n,a=this._chunks,s=t&&gn(t,function(u,h){return u[h]=!0,u},{});if(s)for(var l=0;l<a.length;l++)o._chunks[l]=s[l]?(i=a[l],r=void 0,(r=i.constructor)===Array?i.slice():new r(i)):a[l];else o._chunks=a;return this._copyCommonProps(o),e||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},n.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=oe(this._extent),t._rawExtent=oe(this._rawExtent)},n.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 r=0;r<i;r++)e[r]=this._indices[r]}else e=new t(this._indices);return e}return null},n.prototype._getRawIdxIdentity=function(t){return t},n.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},n.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},n.internalField=function(){function t(e,i,r,o){return Xl(e[o],this._dimensions[o])}Lp={arrayRows:t,objectRows:function(e,i,r,o){return Xl(e[i],this._dimensions[o])},keyedColumns:t,original:function(e,i,r,o){var a=e&&(e.value==null?e:e.value);return Xl(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(e,i,r,o){return e[o]}}}(),n}();const Pp=CC;var b0=function(){function n(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return n.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},n.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},n.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},n.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},n.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,i=this._sourceHost,r=this._getUpstreamSourceManagers(),o=!!r.length;if(za(i)){var a=i,s=void 0,l=void 0,u=void 0;if(o){var h=r[0];h.prepareSource(),s=(u=h.getSource()).data,l=u.sourceFormat,e=[h._getVersionSign()]}else l=mt(s=a.get("data",!0))?li:sn,e=[];var c=this._getSourceMetaRawOption()||{},p=u&&u.metaRawOption||{},d=Me(c.seriesLayoutBy,p.seriesLayoutBy)||null,f=Me(c.sourceHeader,p.sourceHeader),g=Me(c.dimensions,p.dimensions);t=d!==p.seriesLayoutBy||!!f!=!!p.sourceHeader||g?[Ip(s,{seriesLayoutBy:d,sourceHeader:f,dimensions:g},l)]:[]}else{var y=i;if(o){var v=this._applyTransform(r);t=v.sourceList,e=v.upstreamSignList}else t=[Ip(y.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}ue(t&&e),this._setLocalSource(t,e)},n.prototype._applyTransform=function(t){var e,i=this._sourceHost,r=i.get("transform",!0),o=i.get("fromTransformResult",!0);ue(o!=null||r!=null),o!=null&&t.length!==1&&M0("When using `fromTransformResult`, there should be only one upstream dataset");var a,s=[],l=[];return A(t,function(u){u.prepareSource();var h=u.getSource(o||0);o==null||h||M0("Can not retrieve result by `fromTransformResult`: "+o),s.push(h),l.push(u._getVersionSign())}),r?e=function(u,h,c){var p=Qe(u),d=p.length;d||Dt("If `transform` declared, it should at least contain one transform.");for(var f=0,g=d;f<g;f++)h=MC(p[f],h,c,d===1?null:f),f!==g-1&&(h.length=Math.max(h.length,1));return h}(r,s,{datasetIndex:i.componentIndex}):o!=null&&(e=[(a=s[0],new Yl({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:oe(a.dimensionsDefine),startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount}))]),{sourceList:e,upstreamSignList:l}},n.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}},n.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},n.prototype.getSharedDataStore=function(t){ue(za(this._sourceHost),"Can only call getDataStore on series source manager.");var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},n.prototype._innerGetDataStore=function(t,e,i){var r=this._storeList,o=r[0];o||(o=r[0]={});var a=o[i];if(!a){var s=this._getUpstreamSourceManagers()[0];za(this._sourceHost)&&s?a=s._innerGetDataStore(t,e,i):(a=new Pp).initData(new u0(e,t.length),t),o[i]=a}return a},n.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(za(t)){var e=mp(t);return e?[e.getSourceManager()]:[]}return X(function(i){return i.get("transform",!0)||i.get("fromTransformResult",!0)?ha(i.ecModel,"dataset",{index:i.get("fromDatasetIndex",!0),id:i.get("fromDatasetId",!0)},nt).models:[]}(t),function(i){return i.getSourceManager()})},n.prototype._getSourceMetaRawOption=function(){var t,e,i,r=this._sourceHost;if(za(r))t=r.get("seriesLayoutBy",!0),e=r.get("sourceHeader",!0),i=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=r;t=o.get("seriesLayoutBy",!0),e=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:e,dimensions:i}},n}();function S0(n){n.option.transform&&Ho(n.option.transform)}function za(n){return n.mainType==="series"}function M0(n){throw new Error(n)}var T0="line-height:1";function I0(n,t){var e=n.color||"#6e7079",i=n.fontSize||12,r=n.fontWeight||"400",o=n.color||"#464646",a=n.fontSize||14,s=n.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Bt(i+"")+"px;color:"+Bt(e)+";font-weight:"+Bt(r+""),valueStyle:"font-size:"+Bt(a+"")+"px;color:"+Bt(o)+";font-weight:"+Bt(s+"")}:{nameStyle:{fontSize:i,fill:e,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var AC=[0,10,20,30],DC=["",`
- `,`
- `,`
- `];function Yn(n,t){return t.type=n,t}function Op(n){return n.type==="section"}function C0(n){return Op(n)?kC:LC}function A0(n){if(Op(n)){var t=0,e=n.blocks.length,i=e>1||e>0&&!n.noHeader;return A(n.blocks,function(r){var o=A0(r);o>=t&&(t=o+ +(i&&(!o||Op(r)&&!r.noHeader)))}),t}return 0}function kC(n,t,e,i){var r,o=t.noHeader,a=(r=A0(t),{html:AC[r],richText:DC[r]}),s=[],l=t.blocks||[];ue(!l||Y(l)),l=l||[];var u=n.orderMode;if(t.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(Ut(h,u)){var c=new mC(h[u],null);l.sort(function(g,y){return c.evaluate(g.sortParam,y.sortParam)})}else u==="seriesDesc"&&l.reverse()}A(l,function(g,y){var v=t.valueFormatter,m=C0(g)(v?G(G({},n),{valueFormatter:v}):n,g,y>0?a.html:0,i);m!=null&&s.push(m)});var p=n.renderMode==="richText"?s.join(a.richText):Rp(s.join(""),o?e:a.html);if(o)return p;var d=dp(t.header,"ordinal",n.useUTC),f=I0(i,n.renderMode).nameStyle;return n.renderMode==="richText"?k0(n,d,f)+a.richText+p:Rp('<div style="'+f+";"+T0+';">'+Bt(d)+"</div>"+p,e)}function LC(n,t,e,i){var r=n.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=n.useUTC,h=t.valueFormatter||n.valueFormatter||function(_){return X(_=Y(_)?_:[_],function(b,w){return dp(b,Y(d)?d[w]:d,u)})};if(!o||!a){var c=s?"":n.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",r),p=o?"":dp(l,"ordinal",u),d=t.valueType,f=a?[]:h(t.value),g=!s||!o,y=!s&&o,v=I0(i,r),m=v.nameStyle,x=v.valueStyle;return r==="richText"?(s?"":c)+(o?"":k0(n,p,m))+(a?"":function(_,b,w,S,M){var T=[M],I=S?10:20;return w&&T.push({padding:[0,0,0,I],align:"right"}),_.markupStyleCreator.wrapRichTextStyle(Y(b)?b.join(" "):b,T)}(n,f,g,y,x)):Rp((s?"":c)+(o?"":function(_,b,w){return'<span style="'+w+";"+(b?"margin-left:2px":"")+'">'+Bt(_)+"</span>"}(p,!s,m))+(a?"":function(_,b,w,S){var M=w?"10px":"20px",T=b?"float:right;margin-left:"+M:"";return _=Y(_)?_:[_],'<span style="'+T+";"+S+'">'+X(_,function(I){return Bt(I)}).join(" ")+"</span>"}(f,g,y,x)),e)}}function D0(n,t,e,i,r,o){if(n)return C0(n)({useUTC:r,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:n.valueFormatter},n,0,o)}function Rp(n,t){return'<div style="'+("margin: "+t+"px 0 0")+";"+T0+';">'+n+'<div style="clear:both"></div></div>'}function k0(n,t,e){return n.markupStyleCreator.wrapRichTextStyle(t,e)}function L0(n,t){return _r(n.getData().getItemVisual(t,"style")[n.visualDrawType])}function P0(n,t){var e=n.get("padding");return e??(t==="richText"?[8,10]:10)}var Ep=function(){function n(){this.richTextStyles={},this._nextStyleNameId=xy()}return n.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},n.prototype.makeTooltipMarker=function(t,e,i){var r=i==="richText"?this._generateStyleName():null,o=km({color:e,type:t,renderMode:i,markerId:r});return q(o)?o:(ue(r),this.richTextStyles[r]=o.style,o.content)},n.prototype.wrapRichTextStyle=function(t,e){var i={};Y(e)?A(e,function(o){return G(i,o)}):G(i,e);var r=this._generateStyleName();return this.richTextStyles[r]=i,"{"+r+"|"+t+"}"},n}();function PC(n){var t,e,i,r,o=n.series,a=n.dataIndex,s=n.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),p=Y(c),d=L0(o,a);if(h>1||p&&!h){var f=function(_,b,w,S,M){var T=b.getData(),I=gn(_,function(P,E,k){var O=T.getDimensionInfo(k);return P||O&&O.tooltip!==!1&&O.displayName!=null},!1),C=[],D=[],L=[];function R(P,E){var k=T.getDimensionInfo(E);k&&k.otherDims.tooltip!==!1&&(I?L.push(Yn("nameValue",{markerType:"subItem",markerColor:M,name:k.displayName,value:P,valueType:k.type})):(C.push(P),D.push(k.type)))}return S.length?A(S,function(P){R(bo(T,w,P),P)}):A(_,R),{inlineValues:C,inlineValueTypes:D,blocks:L}}(c,o,a,u,d);t=f.inlineValues,e=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=t=bo(l,a,u[0]),e=g.type}else r=t=p?c[0]:c;var y=gc(o),v=y&&o.name||"",m=l.getName(a),x=s?v:m;return Yn("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[Yn("nameValue",{markerType:"item",markerColor:d,name:x,noName:!Xt(x),value:t,valueType:e})].concat(i||[])})}var Ai=Ne();function Zl(n,t){return n.getName(t)||n.getId(t)}var jl=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return V(t,n),t.prototype.init=function(e,i,r){this.seriesIndex=this.componentIndex,this.dataTask=Ea({count:OC,reset:RC}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,r),(Ai(this).sourceManager=new b0(this)).prepareSource();var o=this.getInitialData(e,r);R0(o,this),this.dataTask.context.data=o,ue(o,"getInitialData returned invalid data."),Ai(this).dataBeforeProcessed=o,O0(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,i){var r=Da(this),o=r?ka(e):{},a=this.subType;Te.hasClass(a)&&(a+="Series"),pe(e,i.getTheme().get(this.subType)),pe(e,this.getDefaultOption()),Js(e,"label",["show"]),this.fillDataTextStyle(e.data),r&&go(e,o,r)},t.prototype.mergeOption=function(e,i){e=pe(this.option,e,!0),this.fillDataTextStyle(e.data);var r=Da(this);r&&go(this.option,e,r);var o=Ai(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(e,i);R0(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Ai(this).dataBeforeProcessed=a,O0(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(e){if(e&&!mt(e))for(var i=["show"],r=0;r<e.length;r++)e[r]&&e[r].label&&Js(e[r],"label",i)},t.prototype.getInitialData=function(e,i){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var i=Np(this);if(i){var r=i.context.data;return e==null?r:r.getLinkedData(e)}return Ai(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=Np(this);if(i){var r=i.context;r.outputData=e,i!==this.dataTask&&(r.data=e)}Ai(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return ie(e)},t.prototype.getSourceManager=function(){return Ai(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ai(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get("colorBy")||"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,r){return PC({series:this,dataIndex:e,multipleSeries:i})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(xe.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,r){var o=this.ecModel,a=_p.prototype.getColorFromPalette.call(this,e,i,r);return a||(a=o.getColorFromPalette(e,i,r)),a},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 r=this.option.selectedMap;if(r){var o=this.option.selectedMode,a=this.getData(i);if(o==="series"||r==="all")return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var s=0;s<e.length;s++){var l=Zl(a,e[s]);r[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(e,i){for(var r=[],o=0;o<e.length;o++)r[0]=e[o],this.isSelected(e[o],i)?this.unselect(r,i):this.select(r,i)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,i=Oe(e),r=[],o=0;o<i.length;o++){var a=e[i[o]];a>=0&&r.push(a)}return r},t.prototype.isSelected=function(e,i){var r=this.option.selectedMap;if(!r)return!1;var o=this.getData(i);return(r==="all"||r[Zl(o,e)])&&!o.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(e===!0||e&&e.enabled)},t.prototype._innerSelect=function(e,i){var r,o,a=this.option,s=a.selectedMode,l=i.length;if(s&&l){if(s==="series")a.selectedMap="all";else if(s==="multiple"){Q(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,h=0;h<l;h++){var c=i[h];u[d=Zl(e,c)]=!0,this._selectedDataIndicesMap[d]=e.getRawIndex(c)}}else if(s==="single"||s===!0){var p=i[l-1],d=Zl(e,p);a.selectedMap=((r={})[d]=!0,r),this._selectedDataIndicesMap=((o={})[d]=e.getRawIndex(p),o)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var i=[];e.hasItemOption&&e.each(function(r){var o=e.getRawDataItem(r);o&&o.selected&&i.push(r)}),i.length>0&&this._innerSelect(e,i)}},t.registerClass=function(e){return Te.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}(Te);function O0(n){var t=n.name;gc(n)||(n.name=function(e){var i=e.getRawData(),r=i.mapDimensionsAll("seriesName"),o=[];return A(r,function(a){var s=i.getDimensionInfo(a);s.displayName&&o.push(s.displayName)}),o.join(" ")}(n)||t)}function OC(n){return n.model.getRawData().count()}function RC(n){var t=n.model;return t.setData(t.getRawData().cloneShallow()),EC}function EC(n,t){t.outputData&&n.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function R0(n,t){A(_h(n.CHANGABLE_METHODS,n.DOWNSAMPLE_METHODS),function(e){n.wrapMethod(e,ve(NC,t))})}function NC(n,t){var e=Np(n);return e&&e.setOutputEnd((t||this).count()),t}function Np(n){var t=(n.ecModel||{}).scheduler,e=t&&t.getPipeline(n.uid);if(e){var i=e.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(n.uid))}return i}}ct(jl,yC),ct(jl,_p),Oy(jl,Te);const Mt=jl;var zp=function(){function n(){this.group=new fe,this.uid=ho("viewComponent")}return n.prototype.init=function(t,e){},n.prototype.render=function(t,e,i,r){},n.prototype.dispose=function(t,e){},n.prototype.updateView=function(t,e,i,r){},n.prototype.updateLayout=function(t,e,i,r){},n.prototype.updateVisual=function(t,e,i,r){},n.prototype.toggleBlurSeries=function(t,e,i){},n.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},n}();vc(zp),$s(zp);const je=zp;function Bp(){var n=Ne();return function(t){var e=n(t),i=t.pipelineContext,r=!!e.large,o=!!e.progressiveRender,a=e.large=!(!i||!i.large),s=e.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var E0=Ne(),zC=Bp(),Vp=function(){function n(){this.group=new fe,this.uid=ho("viewChart"),this.renderTask=Ea({plan:BC,reset:VC}),this.renderTask.context={view:this}}return n.prototype.init=function(t,e){},n.prototype.render=function(t,e,i,r){throw new Error("render method must been implemented")},n.prototype.highlight=function(t,e,i,r){var o=t.getData(r&&r.dataType);o?z0(o,r,"emphasis"):xt("Unknown dataType "+r.dataType)},n.prototype.downplay=function(t,e,i,r){var o=t.getData(r&&r.dataType);o?z0(o,r,"normal"):xt("Unknown dataType "+r.dataType)},n.prototype.remove=function(t,e){this.group.removeAll()},n.prototype.dispose=function(t,e){},n.prototype.updateView=function(t,e,i,r){this.render(t,e,i,r)},n.prototype.updateLayout=function(t,e,i,r){this.render(t,e,i,r)},n.prototype.updateVisual=function(t,e,i,r){this.render(t,e,i,r)},n.prototype.eachRendered=function(t){Cl(this.group,t)},n.markUpdateMethod=function(t,e){E0(t).updateMethod=e},n.protoInitialize=void(n.prototype.type="chart"),n}();function N0(n,t,e){n&&oo(n)&&(t==="emphasis"?no:io)(n,e)}function z0(n,t,e){var i=ir(n,t),r=t&&t.highlightKey!=null?function(o){var a=hv[o];return a==null&&uv<=32&&(a=hv[o]=uv++),a}(t.highlightKey):null;i!=null?A(Qe(i),function(o){N0(n.getItemGraphicEl(o),e,r)}):n.eachItemGraphicEl(function(o){N0(o,e,r)})}function BC(n){return zC(n.model)}function VC(n){var t=n.model,e=n.ecModel,i=n.api,r=n.payload,o=t.pipelineContext.progressiveRender,a=n.view,s=r&&E0(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,e,i,r),FC[l]}vc(Vp,["dispose"]),$s(Vp);var FC={incrementalPrepareRender:{progress:function(n,t){t.view.incrementalRender(n,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(n,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const at=Vp;var ql="\0__throttleOriginMethod",B0="\0__throttleRate",V0="\0__throttleType";function Kl(n,t,e){var i,r,o,a,s,l=0,u=0,h=null;function c(){u=new Date().getTime(),h=null,n.apply(o,a||[])}t=t||0;var p=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];i=new Date().getTime(),o=this,a=d;var g=s||t,y=s||e;s=null,r=i-(y?l:u)-g,clearTimeout(h),y?h=setTimeout(c,g):r>=0?c():h=setTimeout(c,-r),l=i};return p.clear=function(){h&&(clearTimeout(h),h=null)},p.debounceNextCall=function(d){s=d},p}function Ba(n,t,e,i){var r=n[t];if(r){var o=r[ql]||r,a=r[V0];if(r[B0]!==e||a!==i){if(e==null||!i)return n[t]=o;(r=n[t]=Kl(o,e,i==="debounce"))[ql]=o,r[V0]=i,r[B0]=e}return r}}function Va(n,t){var e=n[t];e&&e[ql]&&(e.clear&&e.clear(),n[t]=e[ql])}var F0=Ne(),G0={itemStyle:$r(ym,!0),lineStyle:$r(gm,!0)},GC={lineStyle:"stroke",itemStyle:"fill"};function H0(n,t){var e=n.visualStyleMapper||G0[t];return e||(console.warn("Unknown style type '"+t+"'."),G0.itemStyle)}function W0(n,t){var e=n.visualDrawType||GC[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var HC={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData(),i=n.visualStyleAccessPath||"itemStyle",r=n.getModel(i),o=H0(n,i)(r),a=r.getShallow("decal");a&&(e.setVisual("decal",a),a.dirty=!0);var s=W0(n,i),l=o[s],u=ae(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[s]||u||h){var c=n.getColorFromPalette(n.name,null,t.getSeriesCount());o[s]||(o[s]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ae(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||ae(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",s),!t.isSeriesFiltered(n)&&u)return e.setVisual("colorFromPalette",!1),{dataEach:function(p,d){var f=n.getDataParams(d),g=G({},o);g[s]=u(f),p.setItemVisual(d,"style",g)}}}},Fa=new He,WC={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(!n.ignoreStyleOnData&&!t.isSeriesFiltered(n)){var e=n.getData(),i=n.visualStyleAccessPath||"itemStyle",r=H0(n,i),o=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[i]){Fa.option=l[i];var u=r(Fa);G(a.ensureUniqueItemVisual(s,"style"),u),Fa.option.decal&&(a.setItemVisual(s,"decal",Fa.option.decal),Fa.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},YC={performRawSeries:!0,overallReset:function(n){var t=ie();n.eachSeries(function(e){var i=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+i,o=t.get(r);o||(o={},t.set(r,o)),F0(e).scope=o}}),n.eachSeries(function(e){if(!e.isColorBySeries()&&!n.isSeriesFiltered(e)){var i=e.getRawData(),r={},o=e.getData(),a=F0(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=W0(e,s);o.each(function(u){var h=o.getRawIndex(u);r[h]=u}),i.each(function(u){var h=r[u];if(o.getItemVisual(h,"colorFromPalette")){var c=o.ensureUniqueItemVisual(h,"style"),p=i.getName(u)||u+"",d=i.count();c[l]=e.getColorFromPalette(p,a,d)}})}})}},Jl=Math.PI,XC=function(){function n(t,e,i,r){this._stageTaskMap=ie(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=i.concat(r)}return n.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(i){var r=i.overallTask;r&&r.dirty()})},n.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var i=this._pipelineMap.get(t.__pipeline.id),r=i.context,o=!e&&i.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>i.blockIndex?i.step:null,a=r&&r.modDataCount;return{step:o,modBy:a!=null?Math.ceil(a/o):null,modDataCount:a}}},n.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},n.prototype.updateStreamModes=function(t,e){var i=this._pipelineMap.get(t.uid),r=t.getData().count(),o=i.progressiveEnabled&&e.incrementalPrepareRender&&r>=i.threshold,a=t.get("large")&&r>=t.get("largeThreshold"),s=t.get("progressiveChunkMode")==="mod"?r:null;t.pipelineContext=i.context={progressiveRender:o,modDataCount:s,large:a}},n.prototype.restorePipelines=function(t){var e=this,i=e._pipelineMap=ie();t.eachSeries(function(r){var o=r.getProgressive(),a=r.uid;i.set(a,{id:a,head:null,tail:null,threshold:r.getProgressiveThreshold(),progressiveEnabled:o&&!(r.preventIncremental&&r.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),e._pipe(r,r.dataTask)})},n.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;A(this._allHandlers,function(r){var o=t.get(r.uid)||t.set(r.uid,{});ue(!(r.reset&&r.overallReset),'"reset" and "overallReset" must not be both specified.'),r.reset&&this._createSeriesStageTask(r,o,e,i),r.overallReset&&this._createOverallStageTask(r,o,e,i)},this)},n.prototype.prepareView=function(t,e,i,r){var o=t.renderTask,a=o.context;a.model=e,a.ecModel=i,a.api=r,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},n.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},n.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},n.prototype._performStageTasks=function(t,e,i,r){r=r||{};var o=!1,a=this;function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}A(t,function(l,u){if(!r.visualType||r.visualType===l.visualType){var h=a._stageTaskMap.get(l.uid),c=h.seriesTaskMap,p=h.overallTask;if(p){var d,f=p.agentStubMap;f.each(function(y){s(r,y)&&(y.dirty(),d=!0)}),d&&p.dirty(),a.updatePayload(p,i);var g=a.getPerformArgs(p,r.block);f.each(function(y){y.perform(g)}),p.perform(g)&&(o=!0)}else c&&c.each(function(y,v){s(r,y)&&y.dirty();var m=a.getPerformArgs(y,r.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(y.context.model),a.updatePayload(y,i),y.perform(m)&&(o=!0)})}}),this.unfinished=o||this.unfinished},n.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(i){e=i.dataTask.perform()||e}),this.unfinished=e||this.unfinished},n.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)})},n.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},n.prototype._createSeriesStageTask=function(t,e,i,r){var o=this,a=e.seriesTaskMap,s=e.seriesTaskMap=ie(),l=t.seriesType,u=t.getTargetSeries;function h(c){var p=c.uid,d=s.set(p,a&&a.get(p)||Ea({plan:KC,reset:JC,count:QC}));d.context={model:c,ecModel:i,api:r,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(c,d)}t.createOnAllSeries?i.eachRawSeries(h):l?i.eachRawSeriesByType(l,h):u&&u(i,r).each(h)},n.prototype._createOverallStageTask=function(t,e,i,r){var o=this,a=e.overallTask=e.overallTask||Ea({reset:UC});a.context={ecModel:i,api:r,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=ie(),u=t.seriesType,h=t.getTargetSeries,c=!0,p=!1;function d(f){var g=f.uid,y=l.set(g,s&&s.get(g)||(p=!0,Ea({reset:ZC,onDirty:qC})));y.context={model:f,overallProgress:c},y.agent=a,y.__block=c,o._pipe(f,y)}ue(!t.createOnAllSeries,'"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),u?i.eachRawSeriesByType(u,d):h?h(i,r).each(d):(c=!1,A(i.getSeries(),d)),p&&a.dirty()},n.prototype._pipe=function(t,e){var i=t.uid,r=this._pipelineMap.get(i);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},n.wrapStageHandler=function(t,e){return ae(t)&&(t={overallReset:t,seriesType:e2(t)}),t.uid=ho("stageHandler"),e&&(t.visualType=e),t},n}();function UC(n){n.overallReset(n.ecModel,n.api,n.payload)}function ZC(n){return n.overallProgress&&jC}function jC(){this.agent.dirty(),this.getDownstream().dirty()}function qC(){this.agent&&this.agent.dirty()}function KC(n){return n.plan?n.plan(n.model,n.ecModel,n.api,n.payload):null}function JC(n){n.useClearVisual&&n.data.clearAllVisual();var t=n.resetDefines=Qe(n.reset(n.model,n.ecModel,n.api,n.payload));return t.length>1?X(t,function(e,i){return Y0(i)}):$C}var $C=Y0(0);function Y0(n){return function(t,e){var i=e.data,r=e.resetDefines[n];if(r&&r.dataEach)for(var o=t.start;o<t.end;o++)r.dataEach(i,o);else r&&r.progress&&r.progress(t,i)}}function QC(n){return n.data.count()}function e2(n){$l=null;try{n(Ga,X0)}catch{}return $l}var $l,Ga={},X0={};function U0(n,t){for(var e in t.prototype)n[e]=st}U0(Ga,jm),U0(X0,qm),Ga.eachSeriesByType=Ga.eachRawSeriesByType=function(n){$l=n},Ga.eachComponent=function(n){n.mainType==="series"&&n.subType&&($l=n.subType)};const Z0=XC;var j0=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const t2={color:j0,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],j0]};var Tt="#B9B8CE",q0="#100C2A",Ql=function(){return{axisLine:{lineStyle:{color:Tt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},K0=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],J0={darkMode:!0,color:K0,backgroundColor:q0,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Tt}},textStyle:{color:Tt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Tt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Tt},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:Tt}},timeline:{lineStyle:{color:Tt},label:{color:Tt},controlStyle:{color:Tt,borderColor:Tt}},calendar:{itemStyle:{color:q0},dayLabel:{color:Tt},monthLabel:{color:Tt},yearLabel:{color:Tt}},timeAxis:Ql(),logAxis:Ql(),valueAxis:Ql(),categoryAxis:Ql(),line:{symbol:"circle"},graph:{color:K0},gauge:{title:{color:Tt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Tt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};J0.categoryAxis.splitLine.show=!1;const n2=J0;var i2=function(){function n(){}return n.prototype.normalizeQuery=function(t){var e={},i={},r={};if(q(t)){var o=Rn(t);e.mainType=o.main||null,e.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};A(t,function(l,u){for(var h=!1,c=0;c<a.length;c++){var p=a[c],d=u.lastIndexOf(p);if(d>0&&d===u.length-p.length){var f=u.slice(0,d);f!=="data"&&(e.mainType=f,e[p.toLowerCase()]=l,h=!0)}}s.hasOwnProperty(u)&&(i[u]=l,h=!0),h||(r[u]=l)})}return{cptQuery:e,dataQuery:i,otherQuery:r}},n.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var r=i.targetEl,o=i.packedEvent,a=i.model,s=i.view;if(!a||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return h(l,a,"mainType")&&h(l,a,"subType")&&h(l,a,"index","componentIndex")&&h(l,a,"name")&&h(l,a,"id")&&h(u,o,"name")&&h(u,o,"dataIndex")&&h(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,r,o));function h(c,p,d,f){return c[d]==null||p[f||d]===c[d]}},n.prototype.afterTrigger=function(){this.eventInfo=null},n}(),Fp=["symbol","symbolSize","symbolRotate","symbolOffset"],$0=Fp.concat(["symbolKeepAspect"]),r2={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){var e=n.getData();if(n.legendIcon&&e.setVisual("legendIcon",n.legendIcon),n.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a<Fp.length;a++){var s=Fp[a],l=n.get(s);ae(l)?(o=!0,r[s]=l):i[s]=l}if(i.symbol=i.symbol||n.defaultSymbol,e.setVisual(G({legendIcon:n.legendIcon||i.symbol,symbolKeepAspect:n.get("symbolKeepAspect")},i)),!t.isSeriesFiltered(n)){var u=Oe(r);return{dataEach:o?function(h,c){for(var p=n.getRawValue(c),d=n.getDataParams(c),f=0;f<u.length;f++){var g=u[f];h.setItemVisual(c,g,r[g](p,d))}}:null}}}}},o2={createOnAllSeries:!0,performRawSeries:!0,reset:function(n,t){if(n.hasSymbolVisual&&!t.isSeriesFiltered(n))return{dataEach:n.getData().hasItemOption?function(e,i){for(var r=e.getItemModel(i),o=0;o<$0.length;o++){var a=$0[o],s=r.getShallow(a,!0);s!=null&&e.setItemVisual(i,a,s)}}:null}}};function Q0(n,t,e){switch(e){case"color":return n.getItemVisual(t,"style")[n.getVisual("drawType")];case"opacity":return n.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getItemVisual(t,e);default:console.warn("Unknown visual type "+e)}}function ex(n,t){switch(t){case"color":return n.getVisual("style")[n.getVisual("drawType")];case"opacity":return n.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return n.getVisual(t);default:console.warn("Unknown visual type "+t)}}function tx(n,t){function e(i,r){var o=[];return i.eachComponent({mainType:"series",subType:n,query:r},function(a){o.push(a.seriesIndex)}),o}A([[n+"ToggleSelect","toggleSelect"],[n+"Select","select"],[n+"UnSelect","unselect"]],function(i){t(i[0],function(r,o,a){$e((r=G({},r)).type,i[1]),a.dispatchAction(G(r,{type:i[1],seriesIndex:e(o,r)}))})})}function So(n,t,e,i,r){var o=n+t;e.isSilent(o)||($t("event "+o+" is deprecated."),i.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=r.selected,h=0;h<u.length;h++)if(u[h].seriesIndex===s){var c=a.getData(),p=ir(c,r.fromActionPayload);e.trigger(o,{type:o,seriesId:a.id,name:Y(p)?c.getName(p[0]):c.getName(p),selected:q(l)?l:G({},l)})}}))}function br(n,t,e){for(var i;n&&(!t(n)||(i=n,!e));)n=n.__hostTarget||n.parent;return i}var a2=Math.round(9*Math.random()),s2=typeof Object.defineProperty=="function",l2=function(){function n(){this._id="__ec_inner_"+a2++}return n.prototype.get=function(t){return this._guard(t)[this._id]},n.prototype.set=function(t,e){var i=this._guard(t);return s2?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},n.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},n.prototype.has=function(t){return!!this._guard(t)[this._id]},n.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},n}();const u2=l2;var h2=De.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,t){var e=t.cx,i=t.cy,r=t.width/2,o=t.height/2;n.moveTo(e,i-o),n.lineTo(e+r,i+o),n.lineTo(e-r,i+o),n.closePath()}}),c2=De.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(n,t){var e=t.cx,i=t.cy,r=t.width/2,o=t.height/2;n.moveTo(e,i-o),n.lineTo(e+r,i),n.lineTo(e,i+o),n.lineTo(e-r,i),n.closePath()}}),p2=De.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,t){var e=t.x,i=t.y,r=t.width/5*3,o=Math.max(r,t.height),a=r/2,s=a*a/(o-a),l=i-o+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),p=Math.cos(u),d=.6*a,f=.7*a;n.moveTo(e-h,l+s),n.arc(e,l,a,Math.PI-u,2*Math.PI+u),n.bezierCurveTo(e+h-c*d,l+s+p*d,e,i-f,e,i),n.bezierCurveTo(e,i-f,e-h+c*d,l+s+p*d,e-h,l+s),n.closePath()}}),d2=De.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(n,t){var e=t.height,i=t.width,r=t.x,o=t.y,a=i/3*2;n.moveTo(r,o),n.lineTo(r+a,o+e),n.lineTo(r,o+e/4*3),n.lineTo(r-a,o+e),n.lineTo(r,o),n.closePath()}}),f2={line:function(n,t,e,i,r){r.x1=n,r.y1=t+i/2,r.x2=n+e,r.y2=t+i/2},rect:function(n,t,e,i,r){r.x=n,r.y=t,r.width=e,r.height=i},roundRect:function(n,t,e,i,r){r.x=n,r.y=t,r.width=e,r.height=i,r.r=Math.min(e,i)/4},square:function(n,t,e,i,r){var o=Math.min(e,i);r.x=n,r.y=t,r.width=o,r.height=o},circle:function(n,t,e,i,r){r.cx=n+e/2,r.cy=t+i/2,r.r=Math.min(e,i)/2},diamond:function(n,t,e,i,r){r.cx=n+e/2,r.cy=t+i/2,r.width=e,r.height=i},pin:function(n,t,e,i,r){r.x=n+e/2,r.y=t+i/2,r.width=e,r.height=i},arrow:function(n,t,e,i,r){r.x=n+e/2,r.y=t+i/2,r.width=e,r.height=i},triangle:function(n,t,e,i,r){r.cx=n+e/2,r.cy=t+i/2,r.width=e,r.height=i}},eu={};A({line:wt,rect:Ie,roundRect:Ie,square:Ie,circle:xn,diamond:c2,pin:p2,arrow:d2,triangle:h2},function(n,t){eu[t]=new n});var g2=De.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(n,t,e){var i=Us(n,t,e),r=this.shape;return r&&r.symbolType==="pin"&&t.position==="inside"&&(i.y=e.y+.4*e.height),i},buildPath:function(n,t,e){var i=t.symbolType;if(i!=="none"){var r=eu[i];r||(r=eu[i="rect"]),f2[i](t.x,t.y,t.width,t.height,r.shape),r.buildPath(n,r.shape,e)}}});function y2(n,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=n,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=n:e.fill=n,this.markRedraw()}}function ut(n,t,e,i,r,o,a){var s,l=n.indexOf("empty")===0;return l&&(n=n.substr(5,1).toLowerCase()+n.substr(6)),(s=n.indexOf("image://")===0?Kc(n.slice(8),new ye(t,e,i,r),a?"center":"cover"):n.indexOf("path://")===0?Ml(n.slice(7),{},new ye(t,e,i,r),a?"center":"cover"):new g2({shape:{symbolType:n,x:t,y:e,width:i,height:r}})).__isEmptyBrush=l,s.setColor=y2,o&&s.setColor(o),s}function nx(n){return Y(n)||(n=[+n,+n]),[n[0]||0,n[1]||0]}function Gp(n,t){if(n!=null)return Y(n)||(n=[n,n]),[ee(n[0],t[0])||0,ee(Me(n[1],n[0]),t[1])||0]}function Sr(n){return isFinite(n)}function Hp(n,t,e){for(var i=t.type==="radial"?function(a,s,l){var u=l.width,h=l.height,c=Math.min(u,h),p=s.x==null?.5:s.x,d=s.y==null?.5:s.y,f=s.r==null?.5:s.r;return s.global||(p=p*u+l.x,d=d*h+l.y,f*=c),p=Sr(p)?p:.5,d=Sr(d)?d:.5,f=f>=0&&Sr(f)?f:.5,a.createRadialGradient(p,d,0,p,d,f)}(n,t,e):function(a,s,l){var u=s.x==null?0:s.x,h=s.x2==null?1:s.x2,c=s.y==null?0:s.y,p=s.y2==null?0:s.y2;return s.global||(u=u*l.width+l.x,h=h*l.width+l.x,c=c*l.height+l.y,p=p*l.height+l.y),u=Sr(u)?u:0,h=Sr(h)?h:1,c=Sr(c)?c:0,p=Sr(p)?p:0,a.createLinearGradient(u,c,h,p)}(n,t,e),r=t.colorStops,o=0;o<r.length;o++)i.addColorStop(r[o].offset,r[o].color);return i}function tu(n){return parseInt(n,10)}function nu(n,t,e){var i=["width","height"][t],r=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(n);return(n[r]||tu(s[i])||tu(n.style[i]))-(tu(s[o])||0)-(tu(s[a])||0)|0}function ix(n){var t,e,i=n.style,r=i.lineDash&&i.lineWidth>0&&(t=i.lineDash,e=i.lineWidth,t&&t!=="solid"&&e>0?t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:Re(t)?[t]:Y(t)?t:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&n.getLineScale?n.getLineScale():1;a&&a!==1&&(r=X(r,function(s){return s/a}),o/=a)}return[r,o]}var v2=new Mi(!0);function iu(n){var t=n.stroke;return!(t==null||t==="none"||!(n.lineWidth>0))}function rx(n){return typeof n=="string"&&n!=="none"}function ru(n){var t=n.fill;return t!=null&&t!=="none"}function ox(n,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=n.globalAlpha;n.globalAlpha=t.fillOpacity*t.opacity,n.fill(),n.globalAlpha=e}else n.fill()}function ax(n,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=n.globalAlpha;n.globalAlpha=t.strokeOpacity*t.opacity,n.stroke(),n.globalAlpha=e}else n.stroke()}function Wp(n,t,e){var i=Ry(t.image,t.__image,e);if(Qs(i)){var r=n.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*mg),o.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(o)}return r}}var sx=["shadowBlur","shadowOffsetX","shadowOffsetY"],lx=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ux(n,t,e,i,r){var o=!1;if(!i&&t===(e=e||{}))return!1;if(i||t.opacity!==e.opacity){Rt(n,r),o=!0;var a=Math.max(Math.min(t.opacity,1),0);n.globalAlpha=isNaN(a)?or.opacity:a}(i||t.blend!==e.blend)&&(o||(Rt(n,r),o=!0),n.globalCompositeOperation=t.blend||or.blend);for(var s=0;s<sx.length;s++){var l=sx[s];(i||t[l]!==e[l])&&(o||(Rt(n,r),o=!0),n[l]=n.dpr*(t[l]||0))}return(i||t.shadowColor!==e.shadowColor)&&(o||(Rt(n,r),o=!0),n.shadowColor=t.shadowColor||or.shadowColor),o}function hx(n,t,e,i,r){var o=Ha(t,r.inHover),a=i?null:e&&Ha(e,r.inHover)||{};if(o===a)return!1;var s=ux(n,o,a,i,r);if((i||o.fill!==a.fill)&&(s||(Rt(n,r),s=!0),rx(o.fill)&&(n.fillStyle=o.fill)),(i||o.stroke!==a.stroke)&&(s||(Rt(n,r),s=!0),rx(o.stroke)&&(n.strokeStyle=o.stroke)),(i||o.opacity!==a.opacity)&&(s||(Rt(n,r),s=!0),n.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);n.lineWidth!==l&&(s||(Rt(n,r),s=!0),n.lineWidth=l)}for(var u=0;u<lx.length;u++){var h=lx[u],c=h[0];(i||o[c]!==a[c])&&(s||(Rt(n,r),s=!0),n[c]=o[c]||h[1])}return s}function cx(n,t){var e=t.transform,i=n.dpr||1;e?n.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):n.setTransform(i,0,0,i,0,0)}var px=1,dx=2,fx=3,gx=4;function Rt(n,t){t.batchFill&&n.fill(),t.batchStroke&&n.stroke(),t.batchFill="",t.batchStroke=""}function Ha(n,t){return t&&n.__hoverStyle||n.style}function Yp(n,t){Mr(n,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Mr(n,t,e,i){var r=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1))return t.__dirty&=~Vt,void(t.__isRendered=!1);var o=t.__clipPaths,a=e.prevElClipPaths,s=!1,l=!1;if(a&&!function(f,g){if(f===g||!f&&!g)return!1;if(!f||!g||f.length!==g.length)return!0;for(var y=0;y<f.length;y++)if(f[y]!==g[y])return!0;return!1}(o,a)||(a&&a.length&&(Rt(n,e),n.restore(),l=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),o&&o.length&&(Rt(n,e),n.save(),function(f,g,y){for(var v=!1,m=0;m<f.length;m++){var x=f[m];v=v||x.isZeroArea(),cx(g,x),g.beginPath(),x.buildPath(g,x.shape),g.clip()}y.allClipped=v}(o,n,e),s=!0),e.prevElClipPaths=o),e.allClipped)t.__isRendered=!1;else{t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=e.prevEl;u||(l=s=!0);var h,c,p=t instanceof De&&t.autoBatch&&function(f){var g=ru(f),y=iu(f);return!(f.lineDash||!(+g^+y)||g&&typeof f.fill!="string"||y&&typeof f.stroke!="string"||f.strokePercent<1||f.strokeOpacity<1||f.fillOpacity<1)}(t.style);s||(h=r,c=u.transform,h&&c?h[0]!==c[0]||h[1]!==c[1]||h[2]!==c[2]||h[3]!==c[3]||h[4]!==c[4]||h[5]!==c[5]:h||c)?(Rt(n,e),cx(n,t)):p||Rt(n,e);var d=Ha(t,e.inHover);t instanceof De?(e.lastDrawType!==px&&(l=!0,e.lastDrawType=px),hx(n,t,u,l,e),p&&(e.batchFill||e.batchStroke)||n.beginPath(),function(f,g,y,v){var m,x=iu(y),_=ru(y),b=y.strokePercent,w=b<1,S=!g.path;g.silent&&!w||!S||g.createPathProxy();var M=g.path||v2,T=g.__dirty;if(!v){var I=y.fill,C=y.stroke,D=_&&!!I.colorStops,L=x&&!!C.colorStops,R=_&&!!I.image,P=x&&!!C.image,E=void 0,k=void 0,O=void 0,N=void 0,B=void 0;(D||L)&&(B=g.getBoundingRect()),D&&(E=T?Hp(f,I,B):g.__canvasFillGradient,g.__canvasFillGradient=E),L&&(k=T?Hp(f,C,B):g.__canvasStrokeGradient,g.__canvasStrokeGradient=k),R&&(O=T||!g.__canvasFillPattern?Wp(f,I,g):g.__canvasFillPattern,g.__canvasFillPattern=O),P&&(N=T||!g.__canvasStrokePattern?Wp(f,C,g):g.__canvasStrokePattern,g.__canvasStrokePattern=O),D?f.fillStyle=E:R&&(O?f.fillStyle=O:_=!1),L?f.strokeStyle=k:P&&(N?f.strokeStyle=N:x=!1)}var z,U,Z=g.getGlobalScale();M.setScale(Z[0],Z[1],g.segmentIgnoreThreshold),f.setLineDash&&y.lineDash&&(z=(m=ix(g))[0],U=m[1]);var F=!0;(S||T&Yr)&&(M.setDPR(f.dpr),w?M.setContext(null):(M.setContext(f),F=!1),M.reset(),g.buildPath(M,g.shape,v),M.toStatic(),g.pathUpdated()),F&&M.rebuildPath(f,w?b:1),z&&(f.setLineDash(z),f.lineDashOffset=U),v||(y.strokeFirst?(x&&ax(f,y),_&&ox(f,y)):(_&&ox(f,y),x&&ax(f,y))),z&&f.setLineDash([])}(n,t,d,p),p&&(e.batchFill=d.fill||"",e.batchStroke=d.stroke||"")):t instanceof rl?(e.lastDrawType!==fx&&(l=!0,e.lastDrawType=fx),hx(n,t,u,l,e),function(f,g,y){var v,m=y.text;if(m!=null&&(m+=""),m){f.font=y.font||Gi,f.textAlign=y.textAlign,f.textBaseline=y.textBaseline;var x=void 0,_=void 0;f.setLineDash&&y.lineDash&&(x=(v=ix(g))[0],_=v[1]),x&&(f.setLineDash(x),f.lineDashOffset=_),y.strokeFirst?(iu(y)&&f.strokeText(m,y.x,y.y),ru(y)&&f.fillText(m,y.x,y.y)):(ru(y)&&f.fillText(m,y.x,y.y),iu(y)&&f.strokeText(m,y.x,y.y)),x&&f.setLineDash([])}}(n,t,d)):t instanceof Gt?(e.lastDrawType!==dx&&(l=!0,e.lastDrawType=dx),function(f,g,y,v,m){ux(f,Ha(g,m.inHover),y&&Ha(y,m.inHover),v,m)}(n,t,u,l,e),function(f,g,y){var v=g.__image=Ry(y.image,g.__image,g,g.onload);if(v&&Qs(v)){var m=y.x||0,x=y.y||0,_=g.getWidth(),b=g.getHeight(),w=v.width/v.height;if(_==null&&b!=null?_=b*w:b==null&&_!=null?b=_/w:_==null&&b==null&&(_=v.width,b=v.height),y.sWidth&&y.sHeight){var S=y.sx||0,M=y.sy||0;f.drawImage(v,S,M,y.sWidth,y.sHeight,m,x,_,b)}else if(y.sx&&y.sy){var T=_-(S=y.sx),I=b-(M=y.sy);f.drawImage(v,S,M,T,I,m,x,_,b)}else f.drawImage(v,m,x,_,b)}}(n,t,d)):t.getTemporalDisplayables&&(e.lastDrawType!==gx&&(l=!0,e.lastDrawType=gx),function(f,g,y){var v=g.getDisplayables(),m=g.getTemporalDisplayables();f.save();var x,_,b={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:y.viewWidth,viewHeight:y.viewHeight,inHover:y.inHover};for(x=g.getCursor(),_=v.length;x<_;x++)(M=v[x]).beforeBrush&&M.beforeBrush(),M.innerBeforeBrush(),Mr(f,M,b,x===_-1),M.innerAfterBrush(),M.afterBrush&&M.afterBrush(),b.prevEl=M;for(var w=0,S=m.length;w<S;w++){var M;(M=m[w]).beforeBrush&&M.beforeBrush(),M.innerBeforeBrush(),Mr(f,M,b,w===S-1),M.innerAfterBrush(),M.afterBrush&&M.afterBrush(),b.prevEl=M}g.clearTemporalDisplayables(),g.notClear=!0,f.restore()}(n,t,e)),p&&i&&Rt(n,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}}var Xp=new u2,yx=new qo(100),vx=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ou(n,t){if(n==="none")return null;var e=t.getDevicePixelRatio(),i=t.getZr(),r=i.painter.type==="svg";n.dirty&&Xp.delete(n);var o=Xp.get(n);if(o)return o;var a=le(n,{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});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(l){for(var u,h=[e],c=!0,p=0;p<vx.length;++p){var d=a[vx[p]];if(d!=null&&!Y(d)&&!q(d)&&!Re(d)&&typeof d!="boolean"){c=!1;break}h.push(d)}if(c){u=h.join(",")+(r?"-svg":"");var f=yx.get(u);f&&(r?l.svgElement=f:l.image=f)}var g,y=xx(a.dashArrayX),v=function(T){if(!T||typeof T=="object"&&T.length===0)return[0,0];if(Re(T)){var I=Math.ceil(T);return[I,I]}var C=X(T,function(D){return Math.ceil(D)});return T.length%2?C.concat(C):C}(a.dashArrayY),m=mx(a.symbol),x=(M=y,X(M,function(T){return _x(T)})),_=_x(v),b=!r&&qn.createCanvas(),w=r&&{tag:"g",attrs:{},key:"dcl",children:[]},S=function(){for(var T=1,I=0,C=x.length;I<C;++I)T=wy(T,x[I]);var D=1;for(I=0,C=m.length;I<C;++I)D=wy(D,m[I].length);T*=D;var L=_*x.length*m.length,R=function(P){console.warn("Calculated decal size is greater than "+P+" due to decal option settings so "+P+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+P+" to be larger to avoid incontinuity.")};return T>a.maxTileWidth&&R("maxTileWidth"),L>a.maxTileHeight&&R("maxTileHeight"),{width:Math.max(1,Math.min(T,a.maxTileWidth)),height:Math.max(1,Math.min(L,a.maxTileHeight))}}(),M;b&&(b.width=S.width*e,b.height=S.height*e,g=b.getContext("2d")),function(){g&&(g.clearRect(0,0,b.width,b.height),a.backgroundColor&&(g.fillStyle=a.backgroundColor,g.fillRect(0,0,b.width,b.height)));for(var T=0,I=0;I<v.length;++I)T+=v[I];if(T<=0)return;for(var C=-_,D=0,L=0,R=0;C<S.height;){if(D%2==0){for(var P=L/2%m.length,E=0,k=0,O=0;E<2*S.width;){var N=0;for(I=0;I<y[R].length;++I)N+=y[R][I];if(N<=0)break;if(k%2==0){var B=.5*(1-a.symbolSize),z=E+y[R][k]*B,U=C+v[D]*B,Z=y[R][k]*a.symbolSize,F=v[D]*a.symbolSize,W=O/2%m[P].length;K(z,U,Z,F,m[P][W])}E+=y[R][k],++O,++k===y[R].length&&(k=0)}++R===y.length&&(R=0)}C+=v[D],++L,++D===v.length&&(D=0)}function K(se,he,te,j,J){var H=r?1:e,$=ut(J,se*H,he*H,te*H,j*H,a.color,a.symbolKeepAspect);if(r){var re=i.painter.renderOneToVNode($);re&&w.children.push(re)}else Yp(g,$)}}(),c&&yx.put(u,b||w),l.image=b,l.svgElement=w,l.svgWidth=S.width,l.svgHeight=S.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/e,Xp.set(n,s),n.dirty=!1,s}function mx(n){if(!n||n.length===0)return[["rect"]];if(q(n))return[[n]];for(var t=!0,e=0;e<n.length;++e)if(!q(n[e])){t=!1;break}if(t)return mx([n]);var i=[];for(e=0;e<n.length;++e)q(n[e])?i.push([n[e]]):i.push(n[e]);return i}function xx(n){if(!n||n.length===0)return[[0,0]];if(Re(n))return[[r=Math.ceil(n),r]];for(var t=!0,e=0;e<n.length;++e)if(!Re(n[e])){t=!1;break}if(t)return xx([n]);var i=[];for(e=0;e<n.length;++e)if(Re(n[e])){var r=Math.ceil(n[e]);i.push([r,r])}else(r=X(n[e],function(o){return Math.ceil(o)})).length%2==1?i.push(r.concat(r)):i.push(r);return i}function _x(n){for(var t=0,e=0;e<n.length;++e)t+=n[e];return n.length%2==1?2*t:t}const Sn=new Zt;var au={};function bx(n){return au[n]||xt("Implementation of "+n+" doesn't exists."),au[n]}var Up=2e3,su=4500,Sx={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:Up,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:su,ARIA:6e3,DECAL:7e3}},gt="__flagInMainProcess",Et="__pendingUpdate",Zp="__needsUpdateStatus",Mx=/^[a-zA-Z0-9_]+$/,jp="__connectUpdateStatus";function Tx(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return Cx(this,n,t);Ht(this.id)}}function Ix(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Cx(this,n,t)}}function Cx(n,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Zt.prototype[t].apply(n,e)}var Mo,qp,lu,Di,Kp,Jp,$p,Wa,Ya,Ax,Dx,Qp,kx,uu,Lx,Px,hn,Ox,Rx=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t}(Zt),Ex=Rx.prototype;Ex.on=Ix("on"),Ex.off=Ix("off");var hu=function(n){function t(e,i,r){var o=n.call(this,new i2)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],r=r||{},q(i)&&(i=Nx[i]),o._dom=e;var a="canvas",s="auto",l=!1,u=xe.hasGlobalWindow?window:global;a=u.__ECHARTS__DEFAULT__RENDERER__||a,s=Me(u.__ECHARTS__DEFAULT__COARSE_POINTER,s);var h=u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__;l=h??l;var c=o._zr=hc(e,{renderer:r.renderer||a,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:Me(r.useDirtyRect,l),useCoarsePointer:Me(r.useCoarsePointer,s),pointerSize:r.pointerSize});o._ssr=r.ssr,o._throttledZrFlush=Kl(ne(c.flush,c),17),(i=oe(i))&&n0(i,!0),o._theme=i,o._locale=function(f){if(q(f)){var g=Ol[f.toUpperCase()]||{};return f===Ll||f===rp?oe(g):pe(oe(g),oe(Ol[Pl]),!1)}return pe(oe(f),oe(Ol[Pl]),!1)}(r.locale||vm),o._coordSysMgr=new Wl;var p=o._api=Lx(o);function d(f,g){return f.__prio-g.__prio}return ks(pu,d),ks(td,d),o._scheduler=new Z0(o,p,td,pu),o._messageCenter=new Rx,o._initEvents(),o.resize=ne(o.resize,o),c.animation.on("frame",o._onframe,o),Ax(c,o),Dx(c,o),Ho(o),o}return V(t,n),t.prototype._onframe=function(){if(!this._disposed){Ox(this);var e=this._scheduler;if(this[Et]){var i=this[Et].silent;this[gt]=!0;try{Mo(this),Di.update.call(this,null,this[Et].updateParams)}catch(l){throw this[gt]=!1,this[Et]=null,l}this._zr.flush(),this[gt]=!1,this[Et]=null,Wa.call(this,i),Ya.call(this,i)}else if(e.unfinished){var r=1,o=this._model,a=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(o),e.performDataProcessorTasks(o),Jp(this,o),e.performVisualTasks(o),uu(this,this._model,a,"remain",{}),r-=+new Date-s}while(r>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,r){if(this[gt])xt("`setOption` should not be called during main process.");else if(this._disposed)Ht(this.id);else{var o,a,s;if(Q(i)&&(r=i.lazyUpdate,o=i.silent,a=i.replaceMerge,s=i.transition,i=i.notMerge),this[gt]=!0,!this._model||i){var l=new sC(this._api),u=this._theme,h=this._model=new jm;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:a},nd);var c={seriesTransition:s,optionChanged:!0};if(r)this[Et]={silent:o,updateParams:c},this[gt]=!1,this.getZr().wakeUp();else{try{Mo(this),Di.update.call(this,null,c)}catch(p){throw this[Et]=null,this[gt]=!1,p}this._ssr||this._zr.flush(),this[Et]=null,this[gt]=!1,Wa.call(this,o),Ya.call(this,o)}}},t.prototype.setTheme=function(){$t("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||xe.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return $e("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var i=this._zr.painter;if(i.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");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;if(i.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return i.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(xe.svgSupported){var e=this._zr;return A(e.storage.getDisplayList(),function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var i=(e=e||{}).excludeComponents,r=this._model,o=[],a=this;A(i,function(l){r.eachComponent({mainType:l},function(u){var h=a._componentsMap[u.__viewId];h.group.ignore||(o.push(h),h.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return A(o,function(l){l.group.ignore=!1}),s}Ht(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var i=e.type==="svg",r=this.group,o=Math.min,a=Math.max,s=1/0;if(du[r]){var l=s,u=s,h=-1/0,c=-1/0,p=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();A(Tr,function(x,_){if(x.group===r){var b=i?x.getZr().painter.getSvgDom().innerHTML:x.renderToCanvas(oe(e)),w=x.getDom().getBoundingClientRect();l=o(w.left,l),u=o(w.top,u),h=a(w.right,h),c=a(w.bottom,c),p.push({dom:b,left:w.left,top:w.top})}});var f=(h*=d)-(l*=d),g=(c*=d)-(u*=d),y=qn.createCanvas(),v=hc(y,{renderer:i?"svg":"canvas"});if(v.resize({width:f,height:g}),i){var m="";return A(p,function(x){var _=x.left-l,b=x.top-u;m+='<g transform="translate('+_+","+b+')">'+x.dom+"</g>"}),v.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&v.painter.setBackgroundColor(e.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return e.connectedBackgroundColor&&v.add(new Ie({shape:{x:0,y:0,width:f,height:g},style:{fill:e.connectedBackgroundColor}})),A(p,function(x){var _=new Gt({style:{x:x.left*d-l,y:x.top*d-u,image:x.dom}});v.add(_)}),v.refreshImmediately(),y.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}Ht(this.id)},t.prototype.convertToPixel=function(e,i){return Kp(this,"convertToPixel",e,i)},t.prototype.convertFromPixel=function(e,i){return Kp(this,"convertFromPixel",e,i)},t.prototype.containPixel=function(e,i){var r;if(!this._disposed)return A(ua(this._model,e),function(o,a){a.indexOf("Models")>=0&&A(o,function(s){var l=s.coordinateSystem;if(l&&l.containPoint)r=r||!!l.containPoint(i);else if(a==="seriesModels"){var u=this._chartsMap[s.__viewId];u&&u.containPoint?r=r||u.containPoint(i,s):Je(a+": "+(u?"The found component do not support containPoint.":"No view mapping to the found component."))}else Je(a+": containPoint is not supported")},this)},this),!!r;Ht(this.id)},t.prototype.getVisual=function(e,i){var r=ua(this._model,e,{defaultMainType:"series"}),o=r.seriesModel;o||Je("There is no specified series model");var a=o.getData(),s=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?a.indexOfRawIndex(r.dataIndex):null;return s!=null?Q0(a,s,i):ex(a,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,i,r,o=this;A(m2,function(a){var s=function(l){var u,h=o.getModel(),c=l.target,p=a==="globalout";if(p?u={}:c&&br(c,function(v){var m=_e(v);if(m&&m.dataIndex!=null){var x=m.dataModel||h.getSeriesByIndex(m.seriesIndex);return u=x&&x.getDataParams(m.dataIndex,m.dataType,c)||{},!0}if(m.eventData)return u=G({},m.eventData),!0},!0),u){var d=u.componentType,f=u.componentIndex;d!=="markLine"&&d!=="markPoint"&&d!=="markArea"||(d="series",f=u.seriesIndex);var g=d&&f!=null&&h.getComponent(d,f),y=g&&o[g.mainType==="series"?"_chartsMap":"_componentsMap"][g.__viewId];p||g&&y||Je("model or view can not be found by params"),u.event=l,u.type=a,o._$eventProcessor.eventInfo={targetEl:c,packedEvent:u,model:g,view:y},o.trigger(a,u)}};s.zrEventfulCallAtLast=!0,o._zr.on(a,s,o)}),A(Xa,function(a,s){o._messageCenter.on(s,function(l){this.trigger(s,l)},o)}),A(["selectchanged"],function(a){o._messageCenter.on(a,function(s){this.trigger(a,s)},o)}),e=this._messageCenter,i=this,r=this._api,e.on("selectchanged",function(a){var s=r.getModel();a.isFromClick?(So("map","selectchanged",i,s,a),So("pie","selectchanged",i,s,a)):a.fromAction==="select"?(So("map","selected",i,s,a),So("pie","selected",i,s,a)):a.fromAction==="unselect"&&(So("map","unselected",i,s,a),So("pie","unselected",i,s,a))})},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Ht(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Ht(this.id);else{this._disposed=!0,this.getDom()&&ky(this.getDom(),rd,"");var e=this,i=e._api,r=e._model;A(e._componentsViews,function(o){o.dispose(r,i)}),A(e._chartsViews,function(o){o.dispose(r,i)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete Tr[e.id]}},t.prototype.resize=function(e){if(this[gt])xt("`resize` should not be called during main process.");else if(this._disposed)Ht(this.id);else{this._zr.resize(e);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),i){var r=i.resetOption("media"),o=e&&e.silent;this[Et]&&(o==null&&(o=this[Et].silent),r=!0,this[Et]=null),this[gt]=!0;try{r&&Mo(this),Di.update.call(this,{type:"resize",animation:G({duration:0},e&&e.animation)})}catch(a){throw this[gt]=!1,a}this[gt]=!1,Wa.call(this,o),Ya.call(this,o)}}},t.prototype.showLoading=function(e,i){if(this._disposed)Ht(this.id);else if(Q(e)&&(i=e,e=""),e=e||"default",this.hideLoading(),id[e]){var r=id[e](this._api,i),o=this._zr;this._loadingFX=r,o.add(r)}else Je("Loading effects "+e+" not exists.")},t.prototype.hideLoading=function(){this._disposed?Ht(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var i=G({},e);return i.type=Xa[e.type],i},t.prototype.dispatchAction=function(e,i){if(this._disposed)Ht(this.id);else if(Q(i)||(i={silent:!!i}),cu[e.type]&&this._model)if(this[gt])this._pendingActions.push(e);else{var r=i.silent;$p.call(this,e,r);var o=i.flush;o?this._zr.flush():o!==!1&&xe.browser.weChat&&this._throttledZrFlush(),Wa.call(this,r),Ya.call(this,r)}},t.prototype.updateLabelLayout=function(){Sn.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Ht(this.id);else{var i=e.seriesIndex,r=this.getModel().getSeriesByIndex(i);ue(e.data&&r),r.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(l){l.clearColorPalette(),l.eachSeries(function(u){u.clearColorPalette()})}function i(l){for(var u=[],h=l.currentStates,c=0;c<h.length;c++){var p=h[c];p!=="emphasis"&&p!=="blur"&&p!=="select"&&u.push(p)}l.selected&&l.states.select&&u.push("select"),l.hoverState===ol&&l.states.emphasis?u.push("emphasis"):l.hoverState===da&&l.states.blur&&u.push("blur"),l.useStates(u)}function r(l,u){if(!l.preventAutoZ){var h=l.get("z")||0,c=l.get("zlevel")||0;u.eachRendered(function(p){return o(p,h,c,-1/0),!0})}}function o(l,u,h,c){var p=l.getTextContent(),d=l.getTextGuideLine();if(l.isGroup)for(var f=l.childrenRef(),g=0;g<f.length;g++)c=Math.max(o(f[g],u,h,c),c);else l.z=u,l.zlevel=h,c=Math.max(l.z2,c);if(p&&(p.z=u,p.zlevel=h,isFinite(c)&&(p.z2=c+2)),d){var y=l.textGuideLineConfig;d.z=u,d.zlevel=h,isFinite(c)&&(d.z2=c+(y&&y.showAbove?1:-1))}return c}function a(l,u){u.eachRendered(function(h){if(!lo(h)){var c=h.getTextContent(),p=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),c&&c.stateTransition&&(c.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function s(l,u){var h=l.getModel("stateAnimation"),c=l.isAnimationEnabled(),p=h.get("duration"),d=p>0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;u.eachRendered(function(f){if(f.states&&f.states.emphasis){if(lo(f))return;if(f instanceof De&&function(m){var x=cv(m);x.normalFill=m.style.fill,x.normalStroke=m.style.stroke;var _=m.states.select||{};x.selectFill=_.style&&_.style.fill||null,x.selectStroke=_.style&&_.style.stroke||null}(f),f.__dirty){var g=f.prevStates;g&&f.useStates(g)}if(c){f.stateTransition=d;var y=f.getTextContent(),v=f.getTextGuideLine();y&&(y.stateTransition=d),v&&(v.stateTransition=d)}f.__dirty&&i(f)}})}Mo=function(l){var u=l._scheduler;u.restorePipelines(l._model),u.prepareStageTasks(),qp(l,!0),qp(l,!1),u.plan()},qp=function(l,u){for(var h=l._model,c=l._scheduler,p=u?l._componentsViews:l._chartsViews,d=u?l._componentsMap:l._chartsMap,f=l._zr,g=l._api,y=0;y<p.length;y++)p[y].__alive=!1;function v(x){var _=x.__requireNewView;x.__requireNewView=!1;var b="_ec_"+x.id+"_"+x.type,w=!_&&d[b];if(!w){var S=Rn(x.type),M=u?je.getClass(S.main,S.sub):at.getClass(S.sub);ue(M,S.sub+" does not exist."),(w=new M).init(h,g),d[b]=w,p.push(w),f.add(w.group)}x.__viewId=w.__id=b,w.__alive=!0,w.__model=x,w.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!u&&c.prepareView(w,x,h,g)}for(u?h.eachComponent(function(x,_){x!=="series"&&v(_)}):h.eachSeries(v),y=0;y<p.length;){var m=p[y];m.__alive?y++:(!u&&m.renderTask.dispose(),f.remove(m.group),m.dispose(h,g),p.splice(y,1),d[m.__id]===m&&delete d[m.__id],m.__id=m.group.__ecComponentInfo=null)}},lu=function(l,u,h,c,p){var d=l._model;if(d.setUpdatePayload(h),c){var f={};f[c+"Id"]=h[c+"Id"],f[c+"Index"]=h[c+"Index"],f[c+"Name"]=h[c+"Name"];var g={mainType:c,query:f};p&&(g.subType=p);var y,v=h.excludeSeriesId;v!=null&&(y=ie(),A(Qe(v),function(x){var _=Qt(x,null);_!=null&&y.set(_,!0)})),d&&d.eachComponent(g,function(x){if(!(y&&y.get(x.id)!=null))if(Av(h))if(x instanceof Mt)h.type!==fr||h.notBlur||x.get(["emphasis","disabled"])||function(S,M,T){var I=S.seriesIndex,C=S.getData(M.dataType);if(C){var D=ir(C,M);D=(Y(D)?D[0]:D)||0;var L=C.getItemGraphicEl(D);if(!L)for(var R=C.count(),P=0;!L&&P<R;)L=C.getItemGraphicEl(P++);if(L){var E=_e(L);Bc(I,E.focus,E.blurScope,T)}else{var k=S.get(["emphasis","focus"]),O=S.get(["emphasis","blurScope"]);k!=null&&Bc(I,k,O,T)}}else xt("Unknown dataType "+M.dataType)}(x,h,l._api);else{var _=Fc(x.mainType,x.componentIndex,h.name,l._api),b=_.focusSelf,w=_.dispatchers;h.type===fr&&b&&!h.notBlur&&Vc(x.mainType,x.componentIndex,l._api),w&&A(w,function(S){h.type===fr?no(S):io(S)})}else Hc(h)&&x instanceof Mt&&(function(S,M,T){if(Hc(M)){var I=M.dataType,C=ir(S.getData(I),M);Y(C)||(C=[C]),S[M.type===ga?"toggleSelect":M.type===fa?"select":"unselect"](C,I)}}(x,h,l._api),Iv(x),hn(l))},l),d&&d.eachComponent(g,function(x){y&&y.get(x.id)!=null||m(l[c==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},l)}else A([].concat(l._componentsViews).concat(l._chartsViews),m);function m(x){x&&x.__alive&&x[u]&&x[u](x.__model,d,l._api,h)}},Di={prepareAndUpdate:function(l){Mo(this),Di.update.call(this,l,{optionChanged:l.newOption!=null})},update:function(l,u){var h=this._model,c=this._api,p=this._zr,d=this._coordSysMgr,f=this._scheduler;if(h){h.setUpdatePayload(l),f.restoreData(h,l),f.performSeriesTasks(h),d.create(h,c),f.performDataProcessorTasks(h,l),Jp(this,h),d.update(h,c),e(h),f.performVisualTasks(h,l),Qp(this,h,c,l,u);var g=h.get("backgroundColor")||"transparent",y=h.get("darkMode");p.setBackgroundColor(g),y!=null&&y!=="auto"&&p.setDarkMode(y),Sn.trigger("afterupdate",h,c)}},updateTransform:function(l){var u=this,h=this._model,c=this._api;if(h){h.setUpdatePayload(l);var p=[];h.eachComponent(function(f,g){if(f!=="series"){var y=u.getViewOfComponentModel(g);if(y&&y.__alive)if(y.updateTransform){var v=y.updateTransform(g,h,c,l);v&&v.update&&p.push(y)}else p.push(y)}});var d=ie();h.eachSeries(function(f){var g=u._chartsMap[f.__viewId];if(g.updateTransform){var y=g.updateTransform(f,h,c,l);y&&y.update&&d.set(f.uid,1)}else d.set(f.uid,1)}),e(h),this._scheduler.performVisualTasks(h,l,{setDirty:!0,dirtyMap:d}),uu(this,h,c,l,{},d),Sn.trigger("afterupdate",h,c)}},updateView:function(l){var u=this._model;u&&(u.setUpdatePayload(l),at.markUpdateMethod(l,"updateView"),e(u),this._scheduler.performVisualTasks(u,l,{setDirty:!0}),Qp(this,u,this._api,l,{}),Sn.trigger("afterupdate",u,this._api))},updateVisual:function(l){var u=this,h=this._model;h&&(h.setUpdatePayload(l),h.eachSeries(function(c){c.getData().clearAllVisual()}),at.markUpdateMethod(l,"updateVisual"),e(h),this._scheduler.performVisualTasks(h,l,{visualType:"visual",setDirty:!0}),h.eachComponent(function(c,p){if(c!=="series"){var d=u.getViewOfComponentModel(p);d&&d.__alive&&d.updateVisual(p,h,u._api,l)}}),h.eachSeries(function(c){u._chartsMap[c.__viewId].updateVisual(c,h,u._api,l)}),Sn.trigger("afterupdate",h,this._api))},updateLayout:function(l){Di.update.call(this,l)}},Kp=function(l,u,h,c){if(l._disposed)Ht(l.id);else{for(var p,d=l._model,f=l._coordSysMgr.getCoordinateSystems(),g=ua(d,h),y=0;y<f.length;y++){var v=f[y];if(v[u]&&(p=v[u](d,g,c))!=null)return p}Je("No coordinate system that supports "+u+" found by the given finder.")}},Jp=function(l,u){var h=l._chartsMap,c=l._scheduler;u.eachSeries(function(p){c.updateStreamModes(p,h[p.__viewId])})},$p=function(l,u){var h=this,c=this.getModel(),p=l.type,d=l.escapeConnect,f=cu[p],g=f.actionInfo,y=(g.update||"update").split(":"),v=y.pop(),m=y[0]!=null&&Rn(y[0]);this[gt]=!0;var x=[l],_=!1;l.batch&&(_=!0,x=X(l.batch,function(C){return(C=le(G({},C),l)).batch=null,C}));var b,w=[],S=Hc(l),M=Av(l);if(M&&Tv(this._api),A(x,function(C){if((b=(b=f.action(C,h._model,h._api))||G({},C)).type=g.event||b.type,w.push(b),M){var D=yc(l),L=D.queryOptionMap,R=D.mainTypeSpecified?L.keys()[0]:"series";lu(h,v,C,R),hn(h)}else S?(lu(h,v,C,"series"),hn(h)):m&&lu(h,v,C,m.main,m.sub)}),v!=="none"&&!M&&!S&&!m)try{this[Et]?(Mo(this),Di.update.call(this,l),this[Et]=null):Di[v].call(this,l)}catch(C){throw this[gt]=!1,C}if(b=_?{type:g.event||p,escapeConnect:d,batch:w}:w[0],this[gt]=!1,!u){var T=this._messageCenter;if(T.trigger(b.type,b),S){var I={type:"selectchanged",escapeConnect:d,selected:dI(c),isFromClick:l.isFromClick||!1,fromAction:l.type,fromActionPayload:l};T.trigger(I.type,I)}}},Wa=function(l){for(var u=this._pendingActions;u.length;){var h=u.shift();$p.call(this,h,l)}},Ya=function(l){!l&&this.trigger("updated")},Ax=function(l,u){l.on("rendered",function(h){u.trigger("rendered",h),!l.animation.isFinished()||u[Et]||u._scheduler.unfinished||u._pendingActions.length||u.trigger("finished")})},Dx=function(l,u){l.on("mouseover",function(h){var c=br(h.target,oo);c&&(function(p,d,f){oo(p)||xt("param should be highDownDispatcher");var g=_e(p),y=Fc(g.componentMainType,g.componentIndex,g.componentHighDownName,f),v=y.dispatchers,m=y.focusSelf;v?(m&&Vc(g.componentMainType,g.componentIndex,f),A(v,function(x){return xv(x,d)})):(Bc(g.seriesIndex,g.focus,g.blurScope,f),g.focus==="self"&&Vc(g.componentMainType,g.componentIndex,f),xv(p,d))}(c,h,u._api),hn(u))}).on("mouseout",function(h){var c=br(h.target,oo);c&&(function(p,d,f){oo(p)||xt("param should be highDownDispatcher"),Tv(f);var g=_e(p),y=Fc(g.componentMainType,g.componentIndex,g.componentHighDownName,f).dispatchers;y?A(y,function(v){return _v(v,d)}):_v(p,d)}(c,h,u._api),hn(u))}).on("click",function(h){var c=br(h.target,function(f){return _e(f).dataIndex!=null},!0);if(c){var p=c.selected?"unselect":"select",d=_e(c);u._api.dispatchAction({type:p,dataType:d.dataType,dataIndexInside:d.dataIndex,seriesIndex:d.seriesIndex,isFromClick:!0})}})},Qp=function(l,u,h,c,p){(function(d){var f=[],g=[],y=!1;if(d.eachComponent(function(_,b){var w=b.get("zlevel")||0,S=b.get("z")||0,M=b.getZLevelKey();y=y||!!M,(_==="series"?g:f).push({zlevel:w,z:S,idx:b.componentIndex,type:_,key:M})}),y){var v,m,x=f.concat(g);ks(x,function(_,b){return _.zlevel===b.zlevel?_.z-b.z:_.zlevel-b.zlevel}),A(x,function(_){var b=d.getComponent(_.type,_.idx),w=_.zlevel,S=_.key;v!=null&&(w=Math.max(v,w)),S?(w===v&&S!==m&&w++,m=S):m&&(w===v&&w++,m=""),v=w,b.setZLevel(w)})}})(u),kx(l,u,h,c,p),A(l._chartsViews,function(d){d.__alive=!1}),uu(l,u,h,c,p),A(l._chartsViews,function(d){d.__alive||d.remove(u,h)})},kx=function(l,u,h,c,p,d){A(d||l._componentsViews,function(f){var g=f.__model;a(g,f),f.render(g,u,h,c),r(g,f),s(g,f)})},uu=function(l,u,h,c,p,d){var f=l._scheduler;p=G(p||{},{updatedSeries:u.getSeries()}),Sn.trigger("series:beforeupdate",u,h,p);var g=!1;u.eachSeries(function(y){var v=l._chartsMap[y.__viewId];v.__alive=!0;var m=v.renderTask;f.updatePayload(m,c),a(y,v),d&&d.get(y.uid)&&m.dirty(),m.perform(f.getPerformArgs(m))&&(g=!0),v.group.silent=!!y.get("silent"),function(x,_){var b=x.get("blendMode")||null;_.eachRendered(function(w){w.isGroup||(w.style.blend=b)})}(y,v),Iv(y)}),f.unfinished=g||f.unfinished,Sn.trigger("series:layoutlabels",u,h,p),Sn.trigger("series:transition",u,h,p),u.eachSeries(function(y){var v=l._chartsMap[y.__viewId];r(y,v),s(y,v)}),function(y,v){var m=y._zr,x=m.storage,_=0;x.traverse(function(b){b.isGroup||_++}),_>v.get("hoverLayerThreshold")&&!xe.node&&!xe.worker&&v.eachSeries(function(b){if(!b.preventUsingHoverLayer){var w=y._chartsMap[b.__viewId];w.__alive&&w.eachRendered(function(S){S.states.emphasis&&(S.states.emphasis.hoverLayer=!0)})}})}(l,u),Sn.trigger("series:afterupdate",u,h,p)},hn=function(l){l[Zp]=!0,l.getZr().wakeUp()},Ox=function(l){l[Zp]&&(l.getZr().storage.traverse(function(u){lo(u)||i(u)}),l[Zp]=!1)},Lx=function(l){return new(function(u){function h(){return u!==null&&u.apply(this,arguments)||this}return V(h,u),h.prototype.getCoordinateSystems=function(){return l._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(c){for(;c;){var p=c.__ecComponentInfo;if(p!=null)return l._model.getComponent(p.mainType,p.index);c=c.parent}},h.prototype.enterEmphasis=function(c,p){no(c,p),hn(l)},h.prototype.leaveEmphasis=function(c,p){io(c,p),hn(l)},h.prototype.enterBlur=function(c){(function(p){ri(p,Nc)})(c),hn(l)},h.prototype.leaveBlur=function(c){wv(c),hn(l)},h.prototype.enterSelect=function(c){bv(c),hn(l)},h.prototype.leaveSelect=function(c){Sv(c),hn(l)},h.prototype.getModel=function(){return l.getModel()},h.prototype.getViewOfComponentModel=function(c){return l.getViewOfComponentModel(c)},h.prototype.getViewOfSeriesModel=function(c){return l.getViewOfSeriesModel(c)},h}(qm))(l)},Px=function(l){function u(h,c){for(var p=0;p<h.length;p++)h[p][jp]=c}A(Xa,function(h,c){l._messageCenter.on(c,function(p){if(du[l.group]&&l[jp]!==0){if(p&&p.escapeConnect)return;var d=l.makeActionFromEvent(p),f=[];A(Tr,function(g){g!==l&&g.group===l.group&&f.push(g)}),u(f,0),A(f,function(g){g[jp]!==1&&g.dispatchAction(d)}),u(f,2)}})})}}(),t}(Zt),ed=hu.prototype;ed.on=Tx("on"),ed.off=Tx("off"),ed.one=function(n,t,e){var i=this;$t("ECharts#one is deprecated."),this.on.call(this,n,function r(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),i.off(n,r)},e)};var m2=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Ht(n){Je("Instance "+n+" has been disposed")}var cu={},Xa={},td=[],nd=[],pu=[],Nx={},id={},Tr={},du={},x2=+new Date-0,_2=+new Date-0,rd="_echarts_instance_";function zx(n){du[n]=!1}var w2=zx;function od(n){return Tr[function(t,e){return t.getAttribute?t.getAttribute(e):t[e]}(n,rd)]}function ad(n,t){Nx[n]=t}function fu(n){Se(nd,n)<0&&nd.push(n)}function sd(n,t){ud(td,n,t,2e3)}function Bx(n){gu("afterinit",n)}function Vx(n){gu("afterupdate",n)}function gu(n,t){Sn.on(n,t)}function Mn(n,t,e){ae(t)&&(e=t,t="");var i=Q(n)?n.type:[n,n={event:t}][0];n.event=(n.event||i).toLowerCase(),t=n.event,Xa[t]||(ue(Mx.test(i)&&Mx.test(t)),cu[i]||(cu[i]={action:e,actionInfo:n}),Xa[t]=i)}function Fx(n,t){Wl.register(n,t)}function ld(n,t){ud(pu,n,t,1e3,"layout")}function ki(n,t){ud(pu,n,t,3e3,"visual")}var Gx=[];function ud(n,t,e,i,r){if((ae(t)||Q(t))&&(e=t,t=i),isNaN(t)||t==null)throw new Error("Illegal priority");if(A(n,function(a){ue(a.__raw!==e)}),!(Se(Gx,e)>=0)){Gx.push(e);var o=Z0.wrapStageHandler(e,r);o.__prio=t,o.__raw=e,n.push(o)}}function hd(n,t){id[n]=t}function Hx(n,t,e){var i=bx("registerMap");i&&i(n,t,e)}var Wx=function(n){var t=(n=oe(n)).type;t||Dt("Must have a `type` when `registerTransform`.");var e=t.split(":");e.length!==2&&Dt('Name must include namespace like "ns:regression".');var i=!1;e[0]==="echarts"&&(t=e[1],i=!0),n.__isBuiltIn=i,v0.set(t,n)};ki(Up,HC),ki(su,WC),ki(su,YC),ki(Up,r2),ki(su,o2),ki(7e3,function(n,t){n.eachRawSeries(function(e){if(!n.isSeriesFiltered(e)){var i=e.getData();i.hasItemVisual()&&i.each(function(o){var a=i.getItemVisual(o,"decal");a&&(i.ensureUniqueItemVisual(o,"style").decal=ou(a,t))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=ou(r,t))}})}),fu(n0),sd(900,function(n){var t=ie();n.eachSeries(function(e){var i=e.get("stack");if(i){var r=t.get(i)||t.set(i,[]),o=e.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:e};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;r.length&&o.setCalculationInfo("stackedOnSeries",r[r.length-1].seriesModel),r.push(a)}}),t.each(cC)}),hd("default",function(n,t){le(t=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 fe,i=new Ie({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(i);var r,o=new ke({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 Ie({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return e.add(a),t.showSpinner&&((r=new vl({shape:{startAngle:-Jl/2,endAngle:-Jl/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Jl/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Jl/2}).delay(300).start("circularInOut"),e.add(r)),e.resize=function(){var s=o.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(n.getWidth()-2*l-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),h=n.getHeight()/2;t.showSpinner&&r.setShape({cx:u,cy:h}),a.setShape({x:u-l,y:h-l,width:2*l,height:2*l}),i.setShape({x:0,y:0,width:n.getWidth(),height:n.getHeight()})},e.resize(),e}),Mn({type:fr,event:fr,update:fr},st),Mn({type:sl,event:sl,update:sl},st),Mn({type:fa,event:fa,update:fa},st),Mn({type:ll,event:ll,update:ll},st),Mn({type:ga,event:ga,update:ga},st),ad("light",t2),ad("dark",n2);function Ua(n){return n==null?0:n.length||1}function Yx(n){return n}var b2=function(){function n(t,e,i,r,o,a){this._old=t,this._new=e,this._oldKeyGetter=i||Yx,this._newKeyGetter=r||Yx,this.context=o,this._diffModeMultiple=a==="multiple"}return n.prototype.add=function(t){return this._add=t,this},n.prototype.update=function(t){return this._update=t,this},n.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},n.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},n.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},n.prototype.remove=function(t){return this._remove=t,this},n.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},n.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},r=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=r[a],l=i[s],u=Ua(l);if(u>1){var h=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(h,a)}else u===1?(i[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,i)},n.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},r={},o=[],a=[];this._initIndexMap(t,i,o,"_oldKeyGetter"),this._initIndexMap(e,r,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=i[l],h=r[l],c=Ua(u),p=Ua(h);if(c>1&&p===1)this._updateManyToOne&&this._updateManyToOne(h,u),r[l]=null;else if(c===1&&p>1)this._updateOneToMany&&this._updateOneToMany(h,u),r[l]=null;else if(c===1&&p===1)this._update&&this._update(h,u),r[l]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(h,u),r[l]=null;else if(c>1)for(var d=0;d<c;d++)this._remove&&this._remove(u[d]);else this._remove&&this._remove(u)}this._performRestAdd(a,r)},n.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var r=t[i],o=e[r],a=Ua(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);e[r]=null}},n.prototype._initIndexMap=function(t,e,i,r){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[r](t[a],a);if(o||(i[a]=s),e){var l=e[s],u=Ua(l);u===0?(e[s]=a,o&&i.push(s)):u===1?e[s]=[l,a]:l.push(a)}}},n}();const cd=b2;var S2=function(){function n(t,e){this._encode=t,this._schema=e}return n.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},n.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},n}();function pd(n,t){return n.hasOwnProperty(t)||(n[t]=[]),n[t]}const yu=function(n){this.otherDims={},n!=null&&G(this,n)};var M2=Ne(),T2={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Xx=function(){function n(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return n.prototype.isDimensionOmitted=function(){return this._dimOmitted},n.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=jx(this.source)))},n.prototype.getSourceDimensionIndex=function(t){return Me(this._dimNameMap.get(t),-1)},n.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},n.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=l0(this.source),i=!qx(t),r="",o=[],a=0,s=0;a<t;a++){var l=void 0,u=void 0,h=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===a)l=e?c.name:null,u=c.type,h=c.ordinalMeta,s++;else{var p=this.getSourceDimension(a);p&&(l=e?p.name:null,u=p.type)}o.push({property:l,type:u,ordinalMeta:h}),!e||l==null||c&&c.isCalculationCoord||(r+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),r+="$",r+=T2[u]||"f",h&&(r+=h.uid),r+="$"}var d=this.source;return{dimensions:o,hash:[d.seriesLayoutBy,d.startIndex,r].join("$$")}},n.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var r=void 0,o=this.dimensions[i];if(o&&o.storeDimIndex===e)o.isCalculationCoord||(r=o.name),i++;else{var a=this.getSourceDimension(e);a&&(r=a.name)}t.push(r)}return t},n.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},n}();function Ux(n){return n instanceof Xx}function Zx(n){for(var t=ie(),e=0;e<(n||[]).length;e++){var i=n[e],r=Q(i)?i.name:i;r!=null&&t.get(r)==null&&t.set(r,e)}return t}function jx(n){var t=M2(n);return t.dimNameMap||(t.dimNameMap=Zx(n.dimensionsDefine))}function qx(n){return n>30}var Kx,vu,Za,To,dd,mu,fd,ja=Q,Li=X,I2=typeof Int32Array>"u"?Array:Int32Array,C2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],A2=["_approximateExtent"],D2=function(){function n(t,e){var i;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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;Ux(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,i=t),i=i||["x","y"];for(var o={},a=[],s={},l=!1,u={},h=0;h<i.length;h++){var c=i[h],p=q(c)?new yu({name:c}):c instanceof yu?c:new yu(c),d=p.name;p.type=p.type||"float",p.coordDim||(p.coordDim=d,p.coordDimIndex=0);var f=p.otherDims=p.otherDims||{};a.push(d),o[d]=p,u[d]!=null&&(l=!0),p.createInvertedIndices&&(s[d]=[]),f.itemName===0&&(this._nameDimIdx=h),f.itemId===0&&(this._idDimIdx=h),ue(r||p.storeDimIndex>=0),r&&(p.storeDimIndex=h)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=ie();A(a,function(y){g.set(o[y].storeDimIndex,y)})}}return n.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 r=this._schema.getSourceDimension(e);return r?r.name:void 0},n.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},n.prototype._recognizeDimIndex=function(t){if(Re(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},n.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);if(e==null)throw new Error("Unknown dimension "+t);return e},n.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},n.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]}},n.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},n.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(e==null)return i.encodeFirstDimNotExtra[t];var r=i.encode[t];return r?r[e]:null},n.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},n.prototype.getStore=function(){return this._store},n.prototype.initData=function(t,e,i){var r,o=this;if(t instanceof Pp&&(r=t),!r){var a=this.dimensions,s=Tp(t)||vt(t)?new u0(t,a.length):t;r=new Pp;var l=Li(a,function(u){return{type:o._dimInfos[u].type,property:u}});r.initData(s,l,i)}this._store=r,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(u,h){var c={},p=c.encode={},d=ie(),f=[],g=[],y={};A(u.dimensions,function(b){var w,S=u.getDimensionInfo(b),M=S.coordDim;if(M){ue(vp.get(M)==null);var T=S.coordDimIndex;pd(p,M)[T]=b,S.isExtraCoord||(d.set(M,1),(w=S.type)!=="ordinal"&&w!=="time"&&(f[0]=b),pd(y,M)[T]=u.getDimensionIndex(S.name)),S.defaultTooltip&&g.push(b)}vp.each(function(I,C){var D=pd(p,C),L=S.otherDims[C];L!=null&&L!==!1&&(D[L]=S.name)})});var v=[],m={};d.each(function(b,w){var S=p[w];m[w]=S[0],v=v.concat(S)}),c.dataDimsOnCoord=v,c.dataDimIndicesOnCoord=X(v,function(b){return u.getDimensionInfo(b).storeDimIndex}),c.encodeFirstDimNotExtra=m;var x=p.label;x&&x.length&&(f=x.slice());var _=p.tooltip;return _&&_.length?g=_.slice():g.length||(g=f.slice()),p.defaultedLabel=f,p.defaultedTooltip=g,c.userOutput=new S2(y,h),c}(this,this._schema),this.userOutput=this._dimSummary.userOutput},n.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},n.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e.length),r=i.start,o=i.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=r;s<o;s++){var l=s-r;this._nameList[s]=e[l],a&&fd(this,s)}},n.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var r=this._dimInfos[e[i]];r.ordinalMeta&&t.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},n.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==li&&!t.fillStorage},n.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList;if(i.getSource().sourceFormat===sn&&!i.pure)for(var a=[],s=t;s<e;s++){var l=i.getItem(s,a);if(!this.hasItemOption&&MT(l)&&(this.hasItemOption=!0),l){var u=l.name;r[s]==null&&u!=null&&(r[s]=Qt(u,null));var h=l.id;o[s]==null&&h!=null&&(o[s]=Qt(h,null))}}if(this._shouldMakeIdFromName())for(s=t;s<e;s++)fd(this,s);Kx(this)}},n.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},n.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},n.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},n.prototype.setCalculationInfo=function(t,e){ja(t)?G(this._calculationInfo,t):this._calculationInfo[t]=e},n.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return i==null&&this._nameDimIdx!=null&&(i=Za(this,this._nameDimIdx,e)),i==null&&(i=""),i},n.prototype._getCategory=function(t,e){var i=this._store.get(t,e),r=this._store.getOrdinalMeta(t);return r?r.categories[i]:i},n.prototype.getId=function(t){return vu(this,this.getRawIndex(t))},n.prototype.count=function(){return this._store.count()},n.prototype.get=function(t,e){var i=this._store,r=this._dimInfos[t];if(r)return i.get(r.storeDimIndex,e)},n.prototype.getByRawIndex=function(t,e){var i=this._store,r=this._dimInfos[t];if(r)return i.getByRawIndex(r.storeDimIndex,e)},n.prototype.getIndices=function(){return this._store.getIndices()},n.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},n.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},n.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},n.prototype.getValues=function(t,e){var i=this,r=this._store;return Y(t)?r.getValues(Li(t,function(o){return i._getStoreDimIndex(o)}),e):r.getValues(t)},n.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,r=e.length;i<r;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},n.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return-1},n.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},n.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},n.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t];if(!i)throw new Error("Do not supported yet");var r=i[e];return r==null||isNaN(r)?-1:r},n.prototype.indicesOfNearest=function(t,e,i){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,i)},n.prototype.each=function(t,e,i){ae(t)&&(i=e,e=t,t=[]);var r=i||this,o=Li(To(t),this._getStoreDimIndex,this);this._store.each(o,r?ne(e,r):e)},n.prototype.filterSelf=function(t,e,i){ae(t)&&(i=e,e=t,t=[]);var r=i||this,o=Li(To(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,r?ne(e,r):e),this},n.prototype.selectRange=function(t){var e=this,i={};return A(Oe(t),function(r){var o=e._getStoreDimIndex(r);i[o]=t[r]}),this._store=this._store.selectRange(i),this},n.prototype.mapArray=function(t,e,i){ae(t)&&(i=e,e=t,t=[]),i=i||this;var r=[];return this.each(t,function(){r.push(e&&e.apply(this,arguments))},i),r},n.prototype.map=function(t,e,i,r){var o=i||r||this,a=Li(To(t),this._getStoreDimIndex,this),s=mu(this);return s._store=this._store.map(a,o?ne(e,o):e),s},n.prototype.modify=function(t,e,i,r){var o=this,a=i||r||this;A(To(t),function(l){o.getDimensionInfo(l).isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Li(To(t),this._getStoreDimIndex,this);this._store.modify(s,a?ne(e,a):e)},n.prototype.downSample=function(t,e,i,r){var o=mu(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,i,r),o},n.prototype.lttbDownSample=function(t,e){var i=mu(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},n.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},n.prototype.getItemModel=function(t){var e=this.hostModel,i=this.getRawDataItem(t);return new He(i,e,e&&e.ecModel)},n.prototype.diff=function(t){var e=this;return new cd(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(i){return vu(t,i)},function(i){return vu(e,i)})},n.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},n.prototype.setVisual=function(t,e){this._visual=this._visual||{},ja(t)?G(this._visual,t):this._visual[t]=e},n.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],r=i&&i[e];return r??this.getVisual(e)},n.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},n.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,r=i[t];r||(r=i[t]={});var o=r[e];return o==null&&(Y(o=this.getVisual(e))?o=o.slice():ja(o)&&(o=G({},o)),r[e]=o),o},n.prototype.setItemVisual=function(t,e,i){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,ja(e)?G(r,e):r[e]=i},n.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},n.prototype.setLayout=function(t,e){ja(t)?G(this._layout,t):this._layout[t]=e},n.prototype.getLayout=function(t){return this._layout[t]},n.prototype.getItemLayout=function(t){return this._itemLayouts[t]},n.prototype.setItemLayout=function(t,e,i){this._itemLayouts[t]=i?G(this._itemLayouts[t]||{},e):e},n.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},n.prototype.setItemGraphicEl=function(t,e){var i=this.hostModel&&this.hostModel.seriesIndex;Oc(i,this.dataType,t,e),this._graphicEls[t]=e},n.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},n.prototype.eachItemGraphicEl=function(t,e){A(this._graphicEls,function(i,r){i&&t&&t.call(e,i,r)})},n.prototype.cloneShallow=function(t){return t||(t=new n(this._schema?this._schema:Li(this.dimensions,this._getDimInfo,this),this.hostModel)),dd(t,this),t._store=this._store,t},n.prototype.wrapMethod=function(t,e){var i=this[t];ae(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var r=i.apply(this,arguments);return e.apply(this,[r].concat(bs(arguments)))})},n.internalField=(Kx=function(t){var e=t._invertedIndicesMap;A(e,function(i,r){var o=t._dimInfos[r],a=o.ordinalMeta,s=t._store;if(a){i=e[r]=new I2(a.categories.length);for(var l=0;l<i.length;l++)i[l]=-1;for(l=0;l<s.count();l++)i[s.get(o.storeDimIndex,l)]=l}})},Za=function(t,e,i){return Qt(t._getCategory(e,i),null)},vu=function(t,e){var i=t._idList[e];return i==null&&t._idDimIdx!=null&&(i=Za(t,t._idDimIdx,e)),i==null&&(i="e\0\0"+e),i},To=function(t){return Y(t)||(t=t!=null?[t]:[]),t},mu=function(t){var e=new n(t._schema?t._schema:Li(t.dimensions,t._getDimInfo,t),t.hostModel);return dd(e,t),e},dd=function(t,e){A(C2.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,A(A2,function(i){t[i]=oe(e[i])}),t._calculationInfo=G({},e._calculationInfo)},void(fd=function(t,e){var i=t._nameList,r=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=i[e],l=r[e];if(s==null&&o!=null&&(i[e]=s=Za(t,o,e)),l==null&&a!=null&&(r[e]=l=Za(t,a,e)),l==null&&s!=null){var u=t._nameRepeatCount,h=u[s]=(u[s]||0)+1;l=s,h>1&&(l+="__ec__"+h),r[e]=l}})),n}();const qa=D2;function Jx(n,t){return xu(n,t).dimensions}function xu(n,t){Tp(n)||(n=Cp(n));var e=(t=t||{}).coordDimensions||[],i=t.dimensionsDefine||n.dimensionsDefine||[],r=ie(),o=[],a=function(M,T,I,C){var D=Math.max(M.dimensionsDetectedCount||1,T.length,I.length,C||0);return A(T,function(L){var R;Q(L)&&(R=L.dimsDef)&&(D=Math.max(D,R.length))}),D}(n,e,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&qx(a),l=i===n.dimensionsDefine,u=l?jx(n):Zx(i),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(n,a));for(var c=ie(h),p=new m0(a),d=0;d<p.length;d++)p[d]=-1;function f(M){var T=p[M];if(T<0){var I=i[M],C=Q(I)?I:{name:I},D=new yu,L=C.name;L!=null&&u.get(L)!=null&&(D.name=D.displayName=L),C.type!=null&&(D.type=C.type),C.displayName!=null&&(D.displayName=C.displayName);var R=o.length;return p[M]=R,D.storeDimIndex=M,o.push(D),D}return o[T]}if(!s)for(d=0;d<a;d++)f(d);c.each(function(M,T){var I=Qe(M).slice();if(I.length===1&&!q(I[0])&&I[0]<0)c.set(T,!1);else{var C=c.set(T,[]);A(I,function(D,L){var R=q(D)?u.get(D):D;R!=null&&R<a&&(C[L]=R,y(f(R),T,L))})}});var g=0;function y(M,T,I){vp.get(T)!=null?M.otherDims[T]=I:(M.coordDim=T,M.coordDimIndex=I,r.set(T,!0))}A(e,function(M){var T,I,C,D;if(q(M))T=M,D={};else{T=(D=M).name;var L=D.ordinalMeta;D.ordinalMeta=null,(D=G({},D)).ordinalMeta=L,I=D.dimsDef,C=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var R=c.get(T);if(R!==!1){if(!(R=Qe(R)).length)for(var P=0;P<(I&&I.length||1);P++){for(;g<a&&f(g).coordDim!=null;)g++;g<a&&R.push(g++)}A(R,function(E,k){var O=f(E);if(l&&D.type!=null&&(O.type=D.type),y(le(O,D),T,k),O.name==null&&I){var N=I[k];!Q(N)&&(N={name:N}),O.name=O.displayName=N.name,O.defaultTooltip=N.defaultTooltip}C&&le(O.otherDims,C)})}});var v=t.generateCoord,m=t.generateCoordCount,x=m!=null;m=v?m||1:0;var _=v||"value";function b(M){M.name==null&&(M.name=M.coordDim)}if(s)A(o,function(M){b(M)}),o.sort(function(M,T){return M.storeDimIndex-T.storeDimIndex});else for(var w=0;w<a;w++){var S=f(w);S.coordDim==null&&(S.coordDim=k2(_,r,x),S.coordDimIndex=0,(!v||m<=0)&&(S.isExtraCoord=!0),m--),b(S),S.type!=null||Bm(n,w)!==lt.Must&&(!S.isExtraCoord||S.otherDims.itemName==null&&S.otherDims.seriesName==null)||(S.type="ordinal")}return function(M){for(var T=ie(),I=0;I<M.length;I++){var C=M[I],D=C.name,L=T.get(D)||0;L>0&&(C.name=D+(L-1)),L++,T.set(D,L)}}(o),new Xx({source:n,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function k2(n,t,e){if(e||t.hasKey(n)){for(var i=0;t.hasKey(n+i);)i++;n+=i}return t.set(n,!0),n}var L2=function(n){this.coordSysDims=[],this.axisMap=ie(),this.categoryAxisMap=ie(),this.coordSysName=n},P2={cartesian2d:function(n,t,e,i){var r=n.getReferringComponents("xAxis",nt).models[0],o=n.getReferringComponents("yAxis",nt).models[0];if(!r)throw new Error('xAxis "'+Yt(n.get("xAxisIndex"),n.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+Yt(n.get("xAxisIndex"),n.get("yAxisId"),0)+'" not found');t.coordSysDims=["x","y"],e.set("x",r),e.set("y",o),Io(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),Io(o)&&(i.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(n,t,e,i){var r=n.getReferringComponents("singleAxis",nt).models[0];if(!r)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],e.set("single",r),Io(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(n,t,e,i){var r=n.getReferringComponents("polar",nt).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found");t.coordSysDims=["radius","angle"],e.set("radius",o),e.set("angle",a),Io(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),Io(a)&&(i.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(n,t,e,i){t.coordSysDims=["lng","lat"]},parallel:function(n,t,e,i){var r=n.ecModel,o=r.getComponent("parallel",n.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();A(o.parallelAxisIndex,function(s,l){var u=r.getComponent("parallelAxis",s),h=a[l];e.set(h,u),Io(u)&&(i.set(h,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Io(n){return n.get("type")==="category"}function $x(n,t,e){var i,r,o,a=(e=e||{}).byIndex,s=e.stackedCoordDimension;(function(m){return!Ux(m.schema)})(t)?i=t:(r=t.schema,i=r.dimensions,o=t.store);var l,u,h,c,p=!(!n||!n.get("stack"));if(A(i,function(m,x){q(m)&&(i[x]=m={name:m}),p&&!m.isExtraCoord&&(a||l||!m.ordinalMeta||(l=m),u||m.type==="ordinal"||m.type==="time"||s&&s!==m.coordDim||(u=m))}),!u||a||l||(a=!0),u){h="__\0ecstackresult_"+n.id,c="__\0ecstackedover_"+n.id,l&&(l.createInvertedIndices=!0);var d=u.coordDim,f=u.type,g=0;A(i,function(m){m.coordDim===d&&g++});var y={name:h,coordDim:d,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:c,coordDim:c,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(y.storeDimIndex=o.ensureCalculationDimension(c,f),v.storeDimIndex=o.ensureCalculationDimension(h,f)),r.appendCalculationDimension(y),r.appendCalculationDimension(v)):(i.push(y),i.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function Pi(n,t){return!!t&&t===n.getCalculationInfo("stackedDimension")}function Qx(n,t){return Pi(n,t)?n.getCalculationInfo("stackResultDimension"):t}function _u(n,t,e){e=e||{};var i,r=t.getSourceManager(),o=!1;n?(o=!0,i=Cp(n)):o=(i=r.getSource()).sourceFormat===sn;var a=function(y){var v=y.get("coordinateSystem"),m=new L2(v),x=P2[v];if(x)return x(y,m,m.axisMap,m.categoryAxisMap),m}(t),s=function(y,v){var m,x=y.get("coordinateSystem"),_=Wl.get(x);return v&&v.coordSysDims&&(m=X(v.coordSysDims,function(b){var w={name:b},S=v.axisMap.get(b);if(S){var M=S.get("type");w.type=function(T){return T==="category"?"ordinal":T==="time"?"time":"float"}(M)}return w})),m||(m=_&&(_.getDimensionsInfo?_.getDimensionsInfo():_.dimensions.slice())||["x","y"]),m}(t,a),l=e.useEncodeDefaulter,u=ae(l)?l:l?ve($I,s,t):null,h=xu(i,{coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),c=function(y,v,m){var x,_;return m&&A(y,function(b,w){var S=b.coordDim,M=m.categoryAxisMap.get(S);M&&(x==null&&(x=w),b.ordinalMeta=M.getOrdinalMeta(),v&&(b.createInvertedIndices=!0)),b.otherDims.itemName!=null&&(_=!0)}),_||x==null||(y[x].otherDims.itemName=0),x}(h.dimensions,e.createInvertedIndices,a),p=o?null:r.getSharedDataStore(h),d=$x(t,{schema:h,store:p}),f=new qa(h,t);f.setCalculationInfo(d);var g=c!=null&&function(y){if(y.sourceFormat===sn){var v=function(m){for(var x=0;x<m.length&&m[x]==null;)x++;return m[x]}(y.data||[]);return!Y(sa(v))}}(i)?function(y,v,m,x){return x===c?m:this.defaultDimValueGetter(y,v,m,x)}:null;return f.hasItemOption=!1,f.initData(o?i:p,null,g),f}var e1=function(){function n(t){this._setting=t||{},this._extent=[1/0,-1/0]}return n.prototype.getSetting=function(t){return this._setting[t]},n.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},n.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.setExtent=function(t,e){var i=this._extent;isNaN(t)||(i[0]=t),isNaN(e)||(i[1]=e)},n.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},n.prototype.isBlank=function(){return this._isBlank},n.prototype.setBlank=function(t){this._isBlank=t},n}();$s(e1);const hi=e1;var O2=0,R2=function(){function n(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++O2}return n.createByAxisModel=function(t){var e=t.option,i=e.data,r=i&&X(i,E2);return new n({categories:r,needCollect:!r,deduplication:e.dedplication!==!1})},n.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},n.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!q(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var r=this._getOrCreateMap();return(e=r.get(t))==null&&(i?(e=this.categories.length,this.categories[e]=t,r.set(t,e)):e=NaN),e},n.prototype._getOrCreateMap=function(){return this._map||(this._map=ie(this.categories))},n}();function E2(n){return Q(n)&&n.value!=null?n.value:n+""}const gd=R2;function yd(n){return n.type==="interval"||n.type==="log"}function N2(n,t,e,i){var r={},o=n[1]-n[0],a=r.interval=dc(o/t,!0);e!=null&&a<e&&(a=r.interval=e),i!=null&&a>i&&(a=r.interval=i);var s=r.intervalPrecision=t1(a);return function(l,u){!isFinite(l[0])&&(l[0]=u[0]),!isFinite(l[1])&&(l[1]=u[1]),n1(l,0,u),n1(l,1,u),l[0]>l[1]&&(l[0]=l[1])}(r.niceTickExtent=[Xe(Math.ceil(n[0]/a)*a,s),Xe(Math.floor(n[1]/a)*a,s)],n),r}function vd(n){var t=Math.pow(10,oa(n)),e=n/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Xe(e*t)}function t1(n){return On(n)+2}function n1(n,t,e){n[t]=Math.max(Math.min(n[t],e[1]),e[0])}function wu(n,t){return n>=t[0]&&n<=t[1]}function bu(n,t){return t[1]===t[0]?.5:(n-t[0])/(t[1]-t[0])}function Su(n,t){return n*(t[1]-t[0])+t[0]}var i1=function(n){function t(e){var i=n.call(this,e)||this;i.type="ordinal";var r=i.getSetting("ordinalMeta");return r||(r=new gd({})),Y(r)&&(r=new gd({categories:X(r,function(o){return Q(o)?o.value:o})})),i._ordinalMeta=r,i._extent=i.getSetting("extent")||[0,r.categories.length-1],i}return V(t,n),t.prototype.parse=function(e){return e==null?NaN:q(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return wu(e=this.parse(e),this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return bu(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(Su(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],i=this._extent,r=i[0];r<=i[1];)e.push({value:r}),r++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e!=null){for(var i=e.ordinalNumbers,r=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,i.length);a<l;++a){var u=i[a];r[a]=u,o[u]=a}for(var h=0;a<s;++a){for(;o[h]!=null;)h++;r.push(h),o[h]=a}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},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),r=this._ordinalMeta.categories[i];return r==null?"":r+""}},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}(hi);hi.registerClass(i1);const r1=i1;var Ir=Xe,o1=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return V(t,n),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return wu(e,this._extent)},t.prototype.normalize=function(e){return bu(e,this._extent)},t.prototype.scale=function(e){return Su(e,this._extent)},t.prototype.setExtent=function(e,i){var r=this._extent;isNaN(e)||(r[0]=parseFloat(e)),isNaN(i)||(r[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=t1(e)},t.prototype.getTicks=function(e){var i=this._interval,r=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!i)return s;r[0]<o[0]&&(e?s.push({value:Ir(o[0]-i,a)}):s.push({value:r[0]}));for(var l=o[0];l<=o[1]&&(s.push({value:l}),(l=Ir(l+i,a))!==s[s.length-1].value);)if(s.length>1e4)return[];var u=s.length?s[s.length-1].value:o[1];return r[1]>u&&(e?s.push({value:Ir(u+i,a)}):s.push({value:r[1]})),s},t.prototype.getMinorTicks=function(e){for(var i=this.getTicks(!0),r=[],o=this.getExtent(),a=1;a<i.length;a++){for(var s=i[a],l=i[a-1],u=0,h=[],c=(s.value-l.value)/e;u<e-1;){var p=Ir(l.value+(u+1)*c);p>o[0]&&p<o[1]&&h.push(p),u++}r.push(h)}return r},t.prototype.getLabel=function(e,i){if(e==null)return"";var r=i&&i.precision;return r==null?r=On(e.value)||0:r==="auto"&&(r=this._intervalPrecision),cp(Ir(e.value,r,!0))},t.prototype.calcNiceTicks=function(e,i,r){e=e||5;var o=this._extent,a=o[1]-o[0];if(isFinite(a)){a<0&&(a=-a,o.reverse());var s=N2(o,e,i,r);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 r=Math.abs(i[0]);e.fixMax||(i[1]+=r/2),i[0]-=r/2}else i[1]=1;var o=i[1]-i[0];isFinite(o)||(i[0]=0,i[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var a=this._interval;e.fixMin||(i[0]=Ir(Math.floor(i[0]/a)*a)),e.fixMax||(i[1]=Ir(Math.ceil(i[1]/a)*a))},t.prototype.setNiceExtent=function(e,i){this._niceExtent=[e,i]},t.type="interval",t}(hi);hi.registerClass(o1);const Cr=o1;var a1=typeof Float32Array<"u",z2=a1?Float32Array:Array;function ci(n){return Y(n)?a1?new Float32Array(n):n:new z2(n)}var B2="__ec_stack_";function md(n){return n.get("stack")||B2+n.seriesIndex}function xd(n){return n.dim+n.index}function s1(n,t){var e=[];return t.eachSeriesByType(n,function(i){c1(i)&&e.push(i)}),e}function l1(n){var t=function(i){var r={};A(i,function(c){var p=c.coordinateSystem.getBaseAxis();if(p.type==="time"||p.type==="value")for(var d=c.getData(),f=p.dim+"_"+p.index,g=d.getDimensionIndex(d.mapDimension(p.dim)),y=d.getStore(),v=0,m=y.count();v<m;++v){var x=y.get(g,v);r[f]?r[f].push(x):r[f]=[x]}});var o={};for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];if(s){s.sort(function(c,p){return c-p});for(var l=null,u=1;u<s.length;++u){var h=s[u]-s[u-1];h>0&&(l=l===null?h:Math.min(l,h))}o[a]=l}}return o}(n),e=[];return A(n,function(i){var r,o=i.coordinateSystem.getBaseAxis(),a=o.getExtent();if(o.type==="category")r=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var s=o.dim+"_"+o.index,l=t[s],u=Math.abs(a[1]-a[0]),h=o.scale.getExtent(),c=Math.abs(h[1]-h[0]);r=l?u/c*l:u}else{var p=i.getData();r=Math.abs(a[1]-a[0])/p.count()}var d=ee(i.get("barWidth"),r),f=ee(i.get("barMaxWidth"),r),g=ee(i.get("barMinWidth")||(p1(i)?.5:1),r),y=i.get("barGap"),v=i.get("barCategoryGap");e.push({bandWidth:r,barWidth:d,barMaxWidth:f,barMinWidth:g,barGap:y,barCategoryGap:v,axisKey:xd(o),stackId:md(i)})}),function(i){var r={};A(i,function(a,s){var l=a.axisKey,u=a.bandWidth,h=r[l]||{bandWidth:u,remainedWidth:u,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},c=h.stacks;r[l]=h;var p=a.stackId;c[p]||h.autoWidthCount++,c[p]=c[p]||{width:0,maxWidth:0};var d=a.barWidth;d&&!c[p].width&&(c[p].width=d,d=Math.min(h.remainedWidth,d),h.remainedWidth-=d);var f=a.barMaxWidth;f&&(c[p].maxWidth=f);var g=a.barMinWidth;g&&(c[p].minWidth=g);var y=a.barGap;y!=null&&(h.gap=y);var v=a.barCategoryGap;v!=null&&(h.categoryGap=v)});var o={};return A(r,function(a,s){o[s]={};var l=a.stacks,u=a.bandWidth,h=a.categoryGap;if(h==null){var c=Oe(l).length;h=Math.max(35-4*c,15)+"%"}var p=ee(h,u),d=ee(a.gap,1),f=a.remainedWidth,g=a.autoWidthCount,y=(f-p)/(g+(g-1)*d);y=Math.max(y,0),A(l,function(_){var b=_.maxWidth,w=_.minWidth;if(_.width)S=_.width,b&&(S=Math.min(S,b)),w&&(S=Math.max(S,w)),_.width=S,f-=S+d*S,g--;else{var S=y;b&&b<S&&(S=Math.min(b,f)),w&&w>S&&(S=w),S!==y&&(_.width=S,f-=S+d*S,g--)}}),y=(f-p)/(g+(g-1)*d),y=Math.max(y,0);var v,m=0;A(l,function(_,b){_.width||(_.width=y),v=_,m+=_.width*(1+d)}),v&&(m-=v.width*d);var x=-m/2;A(l,function(_,b){o[s][b]=o[s][b]||{bandWidth:u,offset:x,width:_.width},x+=_.width*(1+d)})}),o}(e)}function u1(n,t){var e=s1(n,t),i=l1(e);A(e,function(r){var o=r.getData(),a=r.coordinateSystem.getBaseAxis(),s=md(r),l=i[xd(a)][s],u=l.offset,h=l.width;o.setLayout({bandWidth:l.bandWidth,offset:u,size:h})})}function h1(n){return{seriesType:n,plan:Bp(),reset:function(t){if(c1(t)){var e=t.getData(),i=t.coordinateSystem,r=i.getBaseAxis(),o=i.getOtherAxis(r),a=e.getDimensionIndex(e.mapDimension(o.dim)),s=e.getDimensionIndex(e.mapDimension(r.dim)),l=t.get("showBackground",!0),u=e.mapDimension(o.dim),h=e.getCalculationInfo("stackResultDimension"),c=Pi(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),p=o.isHorizontal(),d=function(x,_){return _.toGlobalCoord(_.dataToCoord(_.type==="log"?1:0))}(0,o),f=p1(t),g=t.get("barMinHeight")||0,y=h&&e.getDimensionIndex(h),v=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(x,_){for(var b,w=x.count,S=f&&ci(3*w),M=f&&l&&ci(3*w),T=f&&ci(w),I=i.master.getRect(),C=p?I.width:I.height,D=_.getStore(),L=0;(b=x.next())!=null;){var R=D.get(c?y:a,b),P=D.get(s,b),E=d,k=void 0;c&&(k=+R-D.get(a,b));var O=void 0,N=void 0,B=void 0,z=void 0;if(p){var U=i.dataToPoint([R,P]);c&&(E=i.dataToPoint([k,P])[0]),O=E,N=U[1]+m,B=U[0]-E,z=v,Math.abs(B)<g&&(B=(B<0?-1:1)*g)}else U=i.dataToPoint([P,R]),c&&(E=i.dataToPoint([P,k])[1]),O=U[0]+m,N=E,B=v,z=U[1]-E,Math.abs(z)<g&&(z=(z<=0?-1:1)*g);f?(S[L]=O,S[L+1]=N,S[L+2]=p?B:z,M&&(M[L]=p?I.x:O,M[L+1]=p?N:I.y,M[L+2]=C),T[b]=b):_.setItemLayout(b,{x:O,y:N,width:B,height:z}),L+=3}f&&_.setLayout({largePoints:S,largeDataIndices:T,largeBackgroundPoints:M,valueAxisHorizontal:p})}}}}}}function c1(n){return n.coordinateSystem&&n.coordinateSystem.type==="cartesian2d"}function p1(n){return n.pipelineContext&&n.pipelineContext.large}var d1=function(n){function t(e){var i=n.call(this,e)||this;return i.type="time",i}return V(t,n),t.prototype.getLabel=function(e){var i=this.getSetting("useUTC");return Ca(e.value,xm[function(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(co(this._minLevelUnit))]||xm.second,i,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,i,r){var o=this.getSetting("useUTC");return function(a,s,l,u,h){var c=null;if(q(l))c=l;else if(ae(l))c=l(a.value,s,{level:a.level});else{var p=G({},Ia);if(a.level>0)for(var d=0;d<up.length;++d)p[up[d]]="{primary|"+p[up[d]]+"}";var f=l?l.inherit===!1?l:le(l,p):p,g=wm(a.value,h);if(f[g])c=f[g];else if(f.inherit){for(d=_m.indexOf(g)-1;d>=0;--d)if(f[g]){c=f[g];break}c=c||p.none}if(Y(c)){var y=a.level==null?0:a.level>=0?a.level:c.length+a.level;c=c[y=Math.min(y,c.length-1)]}}return Ca(new Date(a.value),c,h,u)}(e,i,r,this.getSetting("locale"),o)},t.prototype.getTicks=function(){var e=this._interval,i=this._extent,r=[];if(!e)return r;r.push({value:i[0],level:0});var o=this.getSetting("useUTC"),a=function(s,l,u,h){var c=1e4,p=_m,d=0;function f(E,k,O,N,B,z,U){for(var Z=new Date(k),F=k,W=Z[N]();F<O&&F<=h[1];)U.push({value:F}),W+=E,Z[B](W),F=Z.getTime();U.push({value:F,notAdd:!0})}function g(E,k,O){var N=[],B=!k.length;if(!function(he,te,j,J){var H=Jt(te),$=Jt(j),re=function(Ve){return bm(H,Ve,J)===bm($,Ve,J)},Ce=function(){return re("year")},ge=function(){return Ce()&&re("month")},me=function(){return ge()&&re("day")},we=function(){return me()&&re("hour")},Le=function(){return we()&&re("minute")},be=function(){return Le()&&re("second")},Pe=function(){return be()&&re("millisecond")};switch(he){case"year":return Ce();case"month":return ge();case"day":return me();case"hour":return we();case"minute":return Le();case"second":return be();case"millisecond":return Pe()}}(co(E),h[0],h[1],u)){B&&(k=[{value:W2(new Date(h[0]),E,u)},{value:h[1]}]);for(var z=0;z<k.length-1;z++){var U=k[z].value,Z=k[z+1].value;if(U!==Z){var F=void 0,W=void 0,K=void 0,se=!1;switch(E){case"year":F=Math.max(1,Math.round(l/an/365)),W=hp(u),K=jI(u);break;case"half-year":case"quarter":case"month":F=F2(l),W=po(u),K=Sm(u);break;case"week":case"half-week":case"day":F=V2(l),W=El(u),K=Mm(u),se=!0;break;case"half-day":case"quarter-day":case"hour":F=G2(l),W=Aa(u),K=Tm(u);break;case"minute":F=f1(l,!0),W=Nl(u),K=Im(u);break;case"second":F=f1(l,!1),W=zl(u),K=Cm(u);break;case"millisecond":F=H2(l),W=Bl(u),K=Am(u)}f(F,U,Z,W,K,se,N),E==="year"&&O.length>1&&z===0&&O.unshift({value:O[0].value-F})}}for(z=0;z<N.length;z++)O.push(N[z]);return N}}for(var y=[],v=[],m=0,x=0,_=0;_<p.length&&d++<c;++_){var b=co(p[_]);if(ZI(p[_])&&(g(p[_],y[y.length-1]||[],v),b!==(p[_+1]?co(p[_+1]):null))){if(v.length){x=m,v.sort(function(E,k){return E.value-k.value});for(var w=[],S=0;S<v.length;++S){var M=v[S].value;S!==0&&v[S-1].value===M||(w.push(v[S]),M>=h[0]&&M<=h[1]&&m++)}var T=(h[1]-h[0])/l;if(m>1.5*T&&x>T/1.5||(y.push(w),m>T||s===p[_]))break}v=[]}}d>=c&&Je("Exceed safe limit.");var I=We(X(y,function(E){return We(E,function(k){return k.value>=h[0]&&k.value<=h[1]&&!k.notAdd})}),function(E){return E.length>0}),C=[],D=I.length-1;for(_=0;_<I.length;++_)for(var L=I[_],R=0;R<L.length;++R)C.push({value:L[R].value,level:D-_});C.sort(function(E,k){return E.value-k.value});var P=[];for(_=0;_<C.length;++_)_!==0&&C[_].value===C[_-1].value||P.push(C[_]);return P}(this._minLevelUnit,this._approxInterval,o,i);return(r=r.concat(a)).push({value:i[1],level:0}),r},t.prototype.calcNiceExtent=function(e){var i=this._extent;if(i[0]===i[1]&&(i[0]-=an,i[1]+=an),i[1]===-1/0&&i[0]===1/0){var r=new Date;i[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),i[0]=i[1]-an}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,i,r){e=e||10;var o=this._extent,a=o[1]-o[0];this._approxInterval=a/e,i!=null&&this._approxInterval<i&&(this._approxInterval=i),r!=null&&this._approxInterval>r&&(this._approxInterval=r);var s=Mu.length,l=Math.min(function(u,h,c,p){for(;c<p;){var d=c+p>>>1;u[d][1]<h?c=d+1:p=d}return c}(Mu,this._approxInterval,0,s),s-1);this._interval=Mu[l][1],this._minLevelUnit=Mu[Math.max(l-1,0)][0]},t.prototype.parse=function(e){return Re(e)?e:+Jt(e)},t.prototype.contain=function(e){return wu(this.parse(e),this._extent)},t.prototype.normalize=function(e){return bu(this.parse(e),this._extent)},t.prototype.scale=function(e){return Su(e,this._extent)},t.type="time",t}(Cr),Mu=[["second",sp],["minute",lp],["hour",Ta],["quarter-day",6*Ta],["half-day",12*Ta],["day",1.2*an],["half-week",3.5*an],["week",7*an],["month",31*an],["quarter",95*an],["half-year",mm/2],["year",mm]];function V2(n,t){return(n/=an)>16?16:n>7.5?7:n>3.5?4:n>1.5?2:1}function F2(n){return(n/=30*an)>6?6:n>3?3:n>2?2:1}function G2(n){return(n/=Ta)>12?12:n>6?6:n>3.5?4:n>2?2:1}function f1(n,t){return(n/=t?lp:sp)>30?30:n>20?20:n>15?15:n>10?10:n>5?5:n>2?2:1}function H2(n){return dc(n,!0)}function W2(n,t,e){var i=new Date(n);switch(co(t)){case"year":case"month":i[Sm(e)](0);case"day":i[Mm(e)](1);case"hour":i[Tm(e)](0);case"minute":i[Im(e)](0);case"second":i[Cm(e)](0),i[Am(e)](0)}return i.getTime()}hi.registerClass(d1);const Y2=d1;var g1=hi.prototype,Ka=Cr.prototype,X2=Xe,U2=Math.floor,Z2=Math.ceil,Tu=Math.pow,Tn=Math.log,_d=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Cr,e._interval=0,e}return V(t,n),t.prototype.getTicks=function(e){var i=this._originalScale,r=this._extent,o=i.getExtent();return X(Ka.getTicks.call(this,e),function(a){var s=a.value,l=Xe(Tu(this.base,s));return l=s===r[0]&&this._fixMin?Iu(l,o[0]):l,{value:l=s===r[1]&&this._fixMax?Iu(l,o[1]):l}},this)},t.prototype.setExtent=function(e,i){var r=Tn(this.base);e=Tn(Math.max(0,e))/r,i=Tn(Math.max(0,i))/r,Ka.setExtent.call(this,e,i)},t.prototype.getExtent=function(){var e=this.base,i=g1.getExtent.call(this);i[0]=Tu(e,i[0]),i[1]=Tu(e,i[1]);var r=this._originalScale.getExtent();return this._fixMin&&(i[0]=Iu(i[0],r[0])),this._fixMax&&(i[1]=Iu(i[1],r[1])),i},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var i=this.base;e[0]=Tn(e[0])/Tn(i),e[1]=Tn(e[1])/Tn(i),g1.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,r=i[1]-i[0];if(!(r===1/0||r<=0)){var o=my(r);for(e/r*o<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var a=[Xe(Z2(i[0]/o)*o),Xe(U2(i[1]/o)*o)];this._interval=o,this._niceExtent=a}},t.prototype.calcNiceExtent=function(e){Ka.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 wu(e=Tn(e)/Tn(this.base),this._extent)},t.prototype.normalize=function(e){return bu(e=Tn(e)/Tn(this.base),this._extent)},t.prototype.scale=function(e){return e=Su(e,this._extent),Tu(this.base,e)},t.type="log",t}(hi),y1=_d.prototype;function Iu(n,t){return X2(n,On(t))}y1.getMinorTicks=Ka.getMinorTicks,y1.getLabel=Ka.getLabel,hi.registerClass(_d);const j2=_d;var q2=function(){function n(t,e,i){this._prepareParams(t,e,i)}return n.prototype._prepareParams=function(t,e,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var r=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var o=this._modelMinRaw=e.get("min",!0);ae(o)?this._modelMinNum=Cu(t,o({min:i[0],max:i[1]})):o!=="dataMin"&&(this._modelMinNum=Cu(t,o));var a=this._modelMaxRaw=e.get("max",!0);if(ae(a)?this._modelMaxNum=Cu(t,a({min:i[0],max:i[1]})):a!=="dataMax"&&(this._modelMaxNum=Cu(t,a)),r)this._axisDataLen=e.getCategories().length;else{var s=e.get("boundaryGap"),l=Y(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[Pn(l[0],1),Pn(l[1],1)]}},n.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,i=this._dataMax,r=this._axisDataLen,o=this._boundaryGapInner,a=t?null:i-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,u=s!=null,h=l!=null;s==null&&(s=t?r?0:NaN:e-o[0]*a),l==null&&(l=t?r?r-1:NaN:i+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Gr(s)||Gr(l)||t&&!r;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!h&&(l=0));var p=this._determinedMin,d=this._determinedMax;return p!=null&&(s=p,u=!0),d!=null&&(l=d,h=!0),{min:s,max:l,minFixed:u,maxFixed:h,isBlank:c}},n.prototype.modifyDataMinMax=function(t,e){ue(!this.frozen),this[J2[t]]=e},n.prototype.setDeterminedMinMax=function(t,e){var i=K2[t];ue(!this.frozen&&this[i]==null),this[i]=e},n.prototype.freeze=function(){this.frozen=!0},n}(),K2={min:"_determinedMin",max:"_determinedMax"},J2={min:"_dataMin",max:"_dataMax"};function v1(n,t,e){var i=n.rawExtentInfo;return i||(i=new q2(n,t,e),n.rawExtentInfo=i,i)}function Cu(n,t){return t==null?null:Gr(t)?NaN:n.parse(t)}function m1(n,t){var e=n.type,i=v1(n,t,n.getExtent()).calculate();n.setBlank(i.isBlank);var r=i.min,o=i.max,a=t.ecModel;if(a&&e==="time"){var s=s1("bar",a),l=!1;if(A(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=l1(s),h=function(c,p,d,f){var g=d.axis.getExtent(),y=g[1]-g[0],v=function(S,M,T){if(S&&M){var I=S[xd(M)];return I!=null&&T!=null?I[md(T)]:I}}(f,d.axis);if(v===void 0)return{min:c,max:p};var m=1/0;A(v,function(S){m=Math.min(S.offset,m)});var x=-1/0;A(v,function(S){x=Math.max(S.offset+S.width,x)}),m=Math.abs(m),x=Math.abs(x);var _=m+x,b=p-c,w=b/(1-(m+x)/y)-b;return p+=w*(x/_),c-=w*(m/_),{min:c,max:p}}(r,o,t,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function Co(n,t){var e=t,i=m1(n,e),r=i.extent,o=e.get("splitNumber");n instanceof j2&&(n.base=e.get("logBase"));var a=n.type,s=e.get("interval"),l=a==="interval"||a==="time";n.setExtent(r[0],r[1]),n.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&n.setInterval&&n.setInterval(s)}function Au(n,t){if(t=t||n.get("type"))switch(t){case"category":return new r1({ordinalMeta:n.getOrdinalMeta?n.getOrdinalMeta():n.getCategories(),extent:[1/0,-1/0]});case"time":return new Y2({locale:n.ecModel.getLocaleModel(),useUTC:n.ecModel.get("useUTC")});default:return new(hi.getClass(t)||Cr)}}function Ja(n){var t,e,i=n.getLabelModel().get("formatter"),r=n.type==="category"?n.scale.getExtent()[0]:null;return n.scale.type==="time"?(e=i,function(o,a){return n.scale.getFormattedLabel(o,a,e)}):q(i)?function(o){return function(a){var s=n.scale.getLabel(a);return o.replace("{value}",s??"")}}(i):ae(i)?(t=i,function(o,a){return r!=null&&(a=o.value-r),t(wd(n,o),a,o.level!=null?{level:o.level}:null)}):function(o){return n.scale.getLabel(o)}}function wd(n,t){return n.type==="category"?n.scale.getLabel(t):t.value}function $2(n,t){var e=t*Math.PI/180,i=n.width,r=n.height,o=i*Math.abs(Math.cos(e))+Math.abs(r*Math.sin(e)),a=i*Math.abs(Math.sin(e))+Math.abs(r*Math.cos(e));return new ye(n.x,n.y,o,a)}function bd(n){var t=n.get("interval");return t??"auto"}function x1(n){return n.type==="category"&&bd(n.getLabelModel())===0}function Du(n,t){var e={};return A(n.mapDimensionsAll(t),function(i){e[Qx(n,i)]=!0}),Oe(e)}var $a=function(){function n(){}return n.prototype.getNeedCrossZero=function(){return!this.option.scale},n.prototype.getCoordSysModel=function(){},n}(),Q2={isDimensionStacked:Pi,enableDataStack:$x,getStackedDimension:Qx};function ku(n,t){return it(n,null,null,(t=t||{}).state!=="normal")}const eA=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:Jx,createList:function(n){return _u(null,n)},createScale:function(n,t){var e=t;t instanceof He||(e=new He(t));var i=Au(e);return i.setExtent(n[0],n[1]),Co(i,e),i},createSymbol:ut,createTextStyle:ku,dataStack:Q2,enableHoverEmphasis:ro,getECData:_e,getLayoutRect:St,mixinAxisModelCommonMethods:function(n){ct(n,$a)}},Symbol.toStringTag,{value:"Module"}));var _1=[],tA={registerPreprocessor:fu,registerProcessor:sd,registerPostInit:Bx,registerPostUpdate:Vx,registerUpdateLifecycle:gu,registerAction:Mn,registerCoordinateSystem:Fx,registerLayout:ld,registerVisual:ki,registerTransform:Wx,registerLoading:hd,registerMap:Hx,registerImpl:function(n,t){au[n]&&xt("Already has an implementation of "+n+"."),au[n]=t},PRIORITY:Sx,ComponentModel:Te,ComponentView:je,SeriesModel:Mt,ChartView:at,registerComponentModel:function(n){Te.registerClass(n)},registerComponentView:function(n){je.registerClass(n)},registerSeriesModel:function(n){Mt.registerClass(n)},registerChartView:function(n){at.registerClass(n)},registerSubTypeDefaulter:function(n,t){Te.registerSubTypeDefaulter(n,t)},registerPainter:function(n,t){fy(n,t)}};function rt(n){Y(n)?A(n,function(t){rt(t)}):Se(_1,n)>=0||(_1.push(n),ae(n)&&(n={install:n}),n.install(tA))}var nA=1e-8;function w1(n,t){return Math.abs(n-t)<nA}function b1(n,t,e){var i=0,r=n[0];if(!r)return!1;for(var o=1;o<n.length;o++){var a=n[o];i+=ii(r[0],r[1],a[0],a[1],t,e),r=a}var s=n[0];return w1(r[0],s[0])&&w1(r[1],s[1])||(i+=ii(r[0],r[1],s[0],s[1],t,e)),i!==0}var iA=[];function Sd(n,t){for(var e=0;e<n.length;e++)ot(n[e],n[e],t)}function S1(n,t,e,i){for(var r=0;r<n.length;r++){var o=n[r];i&&(o=i.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Kn(t,t,o),Jn(e,e,o))}}var M1=function(){function n(t){this.name=t}return n.prototype.setCenter=function(t){this._center=t},n.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},n}(),T1=function(n,t){this.type="polygon",this.exterior=n,this.interiors=t},I1=function(n){this.type="linestring",this.points=n},C1=function(n){function t(e,i,r){var o=n.call(this,e)||this;return o.type="geoJSON",o.geometries=i,o._center=r&&[r[0],r[1]],o}return V(t,n),t.prototype.calcCenter=function(){for(var e,i=this.geometries,r=0,o=0;o<i.length;o++){var a=i[o],s=a.exterior,l=s&&s.length;l>r&&(e=a,r=l)}if(e)return function(h){for(var c=0,p=0,d=0,f=h.length,g=h[f-1][0],y=h[f-1][1],v=0;v<f;v++){var m=h[v][0],x=h[v][1],_=g*x-m*y;c+=_,p+=(g+m)*_,d+=(y+x)*_,g=m,y=x}return c?[p/c/3,d/c/3,c]:[h[0][0]||0,h[0][1]||0]}(e.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 r=[1/0,1/0],o=[-1/0,-1/0];return A(this.geometries,function(a){a.type==="polygon"?S1(a.exterior,r,o,e):A(a.points,function(s){S1(s,r,o,e)})}),isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])||(r[0]=r[1]=o[0]=o[1]=0),i=new ye(r[0],r[1],o[0]-r[0],o[1]-r[1]),e||(this._rect=i),i},t.prototype.contain=function(e){var i=this.getBoundingRect(),r=this.geometries;if(!i.contain(e[0],e[1]))return!1;e:for(var o=0,a=r.length;o<a;o++){var s=r[o];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(b1(l,e[0],e[1])){for(var h=0;h<(u?u.length:0);h++)if(b1(u[h],e[0],e[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(e,i,r,o){var a=this.getBoundingRect(),s=a.width/a.height;r?o||(o=r/s):r=s*o;for(var l=new ye(e,i,r,o),u=a.calculateTransform(l),h=this.geometries,c=0;c<h.length;c++){var p=h[c];p.type==="polygon"?(Sd(p.exterior,u),A(p.interiors,function(d){Sd(d,u)})):A(p.points,function(d){Sd(d,u)})}(a=this._rect).copy(l),this._center=[a.x+a.width/2,a.y+a.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}(M1),rA=function(n){function t(e,i){var r=n.call(this,e)||this;return r.type="geoSVG",r._elOnlyForCalculate=i,r}return V(t,n),t.prototype.calcCenter=function(){for(var e=this._elOnlyForCalculate,i=e.getBoundingRect(),r=[i.x+i.width/2,i.y+i.height/2],o=Yo(iA),a=e;a&&!a.isGeoSVGGraphicRoot;)kn(o,a.getLocalTransform(),o),a=a.parent;return ji(o,o),ot(r,r,o),r},t}(M1);function A1(n,t,e){for(var i=0;i<n.length;i++)n[i]=D1(n[i],t[i],e)}function D1(n,t,e){for(var i=[],r=t[0],o=t[1],a=0;a<n.length;a+=2){var s=n.charCodeAt(a)-64,l=n.charCodeAt(a+1)-64;s=s>>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/e,l/e])}return i}function Md(n,t){return X(We((n=function(e){if(!e.UTF8Encoding)return e;var i=e,r=i.UTF8Scale;return r==null&&(r=1024),A(i.features,function(o){var a=o.geometry,s=a.encodeOffsets,l=a.coordinates;if(s)switch(a.type){case"LineString":a.coordinates=D1(l,s,r);break;case"Polygon":case"MultiLineString":A1(l,s,r);break;case"MultiPolygon":A(l,function(u,h){return A1(u,s[h],r)})}}),i.UTF8Encoding=!1,i}(n)).features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var i=e.properties,r=e.geometry,o=[];switch(r.type){case"Polygon":var a=r.coordinates;o.push(new T1(a[0],a.slice(1)));break;case"MultiPolygon":A(r.coordinates,function(l){l[0]&&o.push(new T1(l[0],l.slice(1)))});break;case"LineString":o.push(new I1([r.coordinates]));break;case"MultiLineString":o.push(new I1(r.coordinates))}var s=new C1(i[t||"name"],o,i.cp);return s.properties=i,s})}const oA=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:ei,getPercentWithPrecision:function(n,t,e){return n[t]&&vy(n,e)[t]||0},getPixelPrecision:cc,getPrecision:On,getPrecisionSafe:Zs,isNumeric:js,isRadianAroundZero:ra,linearMap:Ae,nice:dc,numericToNumber:aa,parseDate:Jt,quantile:function(n,t){var e=(n.length-1)*t+1,i=Math.floor(e),r=+n[i-1],o=e-i;return o?r+o*(n[i]-r):r},quantity:my,quantityExponent:oa,reformIntervals:fc,remRadian:pc,round:Xe},Symbol.toStringTag,{value:"Module"})),aA=Object.freeze(Object.defineProperty({__proto__:null,format:Ca,parse:Jt},Symbol.toStringTag,{value:"Module"})),sA=Object.freeze(Object.defineProperty({__proto__:null,Arc:vl,BezierCurve:yl,BoundingRect:ye,Circle:xn,CompoundPath:Uc,Ellipse:fl,Group:fe,Image:Gt,IncrementalDisplayable:Jv,Line:wt,LinearGradient:_a,Polygon:Fn,Polyline:wn,RadialGradient:Zc,Rect:Ie,Ring:xa,Sector:nn,Text:ke,clipPointsByRect:$c,clipRectByRect:rm,createIcon:Sa,extendPath:em,extendShape:Qv,getShapeClass:tm,getTransform:Ci,initProps:et,makeImage:Kc,makePath:Ml,mergePath:on,registerShape:rn,resizePath:Jc,updateProps:ze},Symbol.toStringTag,{value:"Module"})),lA=Object.freeze(Object.defineProperty({__proto__:null,addCommas:cp,capitalFirst:Lm,encodeHTML:Bt,formatTime:function(n,t,e){$e("echarts.format.formatTime","echarts.time.format"),n!=="week"&&n!=="month"&&n!=="quarter"&&n!=="half-year"&&n!=="year"||(n=`MM-dd
- yyyy`);var i=Jt(t),r=e?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),h=i[r+"Seconds"](),c=i[r+"Milliseconds"]();return n=n.replace("MM",bt(a,2)).replace("M",a).replace("yyyy",o).replace("yy",bt(o%100+"",2)).replace("dd",bt(s,2)).replace("d",s).replace("hh",bt(l,2)).replace("h",l).replace("mm",bt(u,2)).replace("m",u).replace("ss",bt(h,2)).replace("s",h).replace("SSS",bt(c,3))},formatTpl:gp,getTextRect:function(n,t,e,i,r,o,a,s){return new ke({style:{text:n,font:t,align:e,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:km,normalizeCssArray:fo,toCamelCase:pp,truncateText:Ny},Symbol.toStringTag,{value:"Module"})),uA=Object.freeze(Object.defineProperty({__proto__:null,bind:ne,clone:oe,curry:ve,defaults:le,each:A,extend:G,filter:We,indexOf:Se,inherits:vh,isArray:Y,isFunction:ae,isObject:Q,isString:q,map:X,merge:pe,reduce:gn},Symbol.toStringTag,{value:"Module"}));var Qa=Ne();function hA(n){return n.type==="category"?function(t){var e=t.getLabelModel(),i=k1(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:i.labelCategoryInterval}:i}(n):function(t){var e=t.scale.getTicks(),i=Ja(t);return{labels:X(e,function(r,o){return{level:r.level,formattedLabel:i(r,o),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}(n)}function cA(n,t){return n.type==="category"?function(e,i){var r,o,a=L1(e,"ticks"),s=bd(i),l=P1(a,s);if(l)return l;if(i.get("show")&&!e.scale.isBlank()||(r=[]),ae(s))r=E1(e,s,!0);else if(s==="auto"){var u=k1(e,e.getLabelModel());o=u.labelCategoryInterval,r=X(u.labels,function(h){return h.tickValue})}else r=R1(e,o=s,!0);return O1(a,s,{ticks:r,tickCategoryInterval:o})}(n,t):{ticks:X(n.scale.getTicks(),function(e){return e.value})}}function k1(n,t){var e,i,r=L1(n,"labels"),o=bd(t),a=P1(r,o);return a||(ae(o)?e=E1(n,o):(i=o==="auto"?function(s){var l=Qa(s).autoInterval;return l??(Qa(s).autoInterval=s.calculateCategoryInterval())}(n):o,e=R1(n,i)),O1(r,o,{labels:e,labelCategoryInterval:i}))}function L1(n,t){return Qa(n)[t]||(Qa(n)[t]=[])}function P1(n,t){for(var e=0;e<n.length;e++)if(n[e].key===t)return n[e].value}function O1(n,t,e){return n.push({key:t,value:e}),e}function R1(n,t,e){var i=Ja(n),r=n.scale,o=r.getExtent(),a=n.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],h=r.count();u!==0&&l>1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=x1(n),p=a.get("showMinLabel")||c,d=a.get("showMaxLabel")||c;p&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(y){var v={value:y};s.push(e?y:{formattedLabel:i(v),rawLabel:r.getLabel(v),tickValue:y})}return d&&f-l!==o[1]&&g(o[1]),s}function E1(n,t,e){var i=n.scale,r=Ja(n),o=[];return A(i.getTicks(),function(a){var s=i.getLabel(a),l=a.value;t(a.value,s)&&o.push(e?l:{formattedLabel:r(a),rawLabel:s,tickValue:l})}),o}var N1=[0,1],pA=function(){function n(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return n.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),r=Math.max(e[0],e[1]);return t>=i&&t<=r},n.prototype.containData=function(t){return this.scale.contain(t)},n.prototype.getExtent=function(){return this._extent.slice()},n.prototype.getPixelPrecision=function(t){return cc(t||this.scale.getExtent(),this._extent)},n.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},n.prototype.dataToCoord=function(t,e){var i=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&r.type==="ordinal"&&z1(i=i.slice(),r.count()),Ae(t,N1,i,e)},n.prototype.coordToData=function(t,e){var i=this._extent,r=this.scale;this.onBand&&r.type==="ordinal"&&z1(i=i.slice(),r.count());var o=Ae(t,i,N1,e);return this.scale.scale(o)},n.prototype.pointToData=function(t,e){},n.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),i=X(cA(this,e).ticks,function(r){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(r):r),tickValue:r}},this);return function(r,o,a,s){var l=o.length;if(!r.onBand||a||!l)return;var u,h,c=r.getExtent();if(l===1)o[0].coord=c[0],u=o[1]={coord:c[1]};else{var p=o[l-1].tickValue-o[0].tickValue,d=(o[l-1].coord-o[0].coord)/p;A(o,function(y){y.coord-=d/2}),h=1+r.scale.getExtent()[1]-o[l-1].tickValue,u={coord:o[l-1].coord+d*h},o.push(u)}var f=c[0]>c[1];g(o[0].coord,c[0])&&(s?o[0].coord=c[0]:o.shift()),s&&g(c[0],o[0].coord)&&o.unshift({coord:c[0]}),g(c[1],u.coord)&&(s?u.coord=c[1]:o.pop()),s&&g(u.coord,c[1])&&o.push({coord:c[1]});function g(y,v){return y=Xe(y),v=Xe(v),f?y>v:y<v}}(this,i,e.get("alignWithLabel"),t.clamp),i},n.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),X(this.scale.getMinorTicks(t),function(e){return X(e,function(i){return{coord:this.dataToCoord(i),tickValue:i}},this)},this)},n.prototype.getViewLabels=function(){return hA(this).labels},n.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},n.prototype.getTickModel=function(){return this.model.getModel("axisTick")},n.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 r=Math.abs(t[1]-t[0]);return Math.abs(r)/i},n.prototype.calculateCategoryInterval=function(){return function(t){var e=function(T){var I=T.getLabelModel();return{axisRotate:T.getRotate?T.getRotate():T.isHorizontal&&!T.isHorizontal()?90:0,labelRotate:I.get("rotate")||0,font:I.getFont()}}(t),i=Ja(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,o=t.scale,a=o.getExtent(),s=o.count();if(a[1]-a[0]<1)return 0;var l=1;s>40&&(l=Math.max(1,Math.floor(s/40)));for(var u=a[0],h=t.dataToCoord(u+1)-t.dataToCoord(u),c=Math.abs(h*Math.cos(r)),p=Math.abs(h*Math.sin(r)),d=0,f=0;u<=a[1];u+=l){var g,y,v=ta(i({value:u}),e.font,"center","top");g=1.3*v.width,y=1.3*v.height,d=Math.max(d,g,7),f=Math.max(f,y,7)}var m=d/c,x=f/p;isNaN(m)&&(m=1/0),isNaN(x)&&(x=1/0);var _=Math.max(0,Math.floor(Math.min(m,x))),b=Qa(t.model),w=t.getExtent(),S=b.lastAutoInterval,M=b.lastTickCount;return S!=null&&M!=null&&Math.abs(S-_)<=1&&Math.abs(M-s)<=1&&S>_&&b.axisExtent0===w[0]&&b.axisExtent1===w[1]?_=S:(b.lastTickCount=s,b.lastAutoInterval=_,b.axisExtent0=w[0],b.axisExtent1=w[1]),_}(this)},n}();function z1(n,t){var e=(n[1]-n[0])/t/2;n[0]+=e,n[1]-=e}const Xn=pA;function B1(n){var t=Mt.extend(n);return Mt.registerClass(t),t}function V1(n){var t=at.extend(n);return at.registerClass(t),t}var es=2*Math.PI,Ar=Mi.CMD,dA=["top","right","bottom","left"];function fA(n,t,e,i,r){var o=e.width,a=e.height;switch(n){case"top":i.set(e.x+o/2,e.y-t),r.set(0,-1);break;case"bottom":i.set(e.x+o/2,e.y+a+t),r.set(0,1);break;case"left":i.set(e.x-t,e.y+a/2),r.set(-1,0);break;case"right":i.set(e.x+o+t,e.y+a/2),r.set(1,0)}}function gA(n,t,e,i,r,o,a,s,l){a-=n,s-=t;var u=Math.sqrt(a*a+s*s),h=(a/=u)*e+n,c=(s/=u)*e+t;if(Math.abs(i-r)%es<1e-4)return l[0]=h,l[1]=c,u-e;if(o){var p=i;i=ni(r),r=ni(p)}else i=ni(i),r=ni(r);i>r&&(r+=es);var d=Math.atan2(s,a);if(d<0&&(d+=es),d>=i&&d<=r||d+es>=i&&d+es<=r)return l[0]=h,l[1]=c,u-e;var f=e*Math.cos(i)+n,g=e*Math.sin(i)+t,y=e*Math.cos(r)+n,v=e*Math.sin(r)+t,m=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return m<x?(l[0]=f,l[1]=g,Math.sqrt(m)):(l[0]=y,l[1]=v,Math.sqrt(x))}function Lu(n,t,e,i,r,o,a,s){var l=r-n,u=o-t,h=e-n,c=i-t,p=Math.sqrt(h*h+c*c),d=(l*(h/=p)+u*(c/=p))/p;s&&(d=Math.min(Math.max(d,0),1)),d*=p;var f=a[0]=n+d*h,g=a[1]=t+d*c;return Math.sqrt((f-r)*(f-r)+(g-o)*(g-o))}function F1(n,t,e,i,r,o,a){e<0&&(n+=e,e=-e),i<0&&(t+=i,i=-i);var s=n+e,l=t+i,u=a[0]=Math.min(Math.max(r,n),s),h=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-r)*(u-r)+(h-o)*(h-o))}var In=[];function yA(n,t,e){var i=F1(t.x,t.y,t.width,t.height,n.x,n.y,In);return e.set(In[0],In[1]),i}function vA(n,t,e){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,h=t.data,c=n.x,p=n.y,d=0;d<h.length;){var f=h[d++];d===1&&(s=o=h[d],l=a=h[d+1]);var g=u;switch(f){case Ar.M:o=s=h[d++],a=l=h[d++];break;case Ar.L:g=Lu(o,a,h[d],h[d+1],c,p,In,!0),o=h[d++],a=h[d++];break;case Ar.C:g=Xg(o,a,h[d++],h[d++],h[d++],h[d++],h[d],h[d+1],c,p,In),o=h[d++],a=h[d++];break;case Ar.Q:g=jg(o,a,h[d++],h[d++],h[d],h[d+1],c,p,In),o=h[d++],a=h[d++];break;case Ar.A:var y=h[d++],v=h[d++],m=h[d++],x=h[d++],_=h[d++],b=h[d++];d+=1;var w=!!(1-h[d++]);i=Math.cos(_)*m+y,r=Math.sin(_)*x+v,d<=1&&(s=i,l=r),g=gA(y,v,x,_,_+b,w,(c-y)*x/m+y,p,In),o=Math.cos(_+b)*m+y,a=Math.sin(_+b)*x+v;break;case Ar.R:g=F1(s=o=h[d++],l=a=h[d++],h[d++],h[d++],c,p,In);break;case Ar.Z:g=Lu(o,a,s,l,c,p,In,!0),o=s,a=l}g<u&&(u=g,e.set(In[0],In[1]))}return u}var Cn=new de,Be=new de,Ue=new de,Un=new de,Zn=new de;function G1(n,t){if(n){var e=n.getTextGuideLine(),i=n.getTextContent();if(i&&e){var r=n.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||dA,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=r.anchor,h=n.getComputedTransform(),c=h&&ji([],h),p=t.get("length2")||0;u&&Ue.copy(u);for(var d=0;d<a.length;d++){fA(a[d],0,s,Cn,Un),de.scaleAndAdd(Be,Cn,Un,p),Be.transform(c);var f=n.getBoundingRect(),g=u?u.distance(Be):n instanceof De?vA(Be,n.path,Ue):yA(Be,f,Ue);g<l&&(l=g,Be.transform(h),Ue.transform(h),Ue.toArray(o[0]),Be.toArray(o[1]),Cn.toArray(o[2]))}H1(o,t.get("minTurnAngle")),e.setShape({points:o})}}}var Pu=[],It=new de;function H1(n,t){if(t<=180&&t>0){t=t/180*Math.PI,Cn.fromArray(n[0]),Be.fromArray(n[1]),Ue.fromArray(n[2]),de.sub(Un,Cn,Be),de.sub(Zn,Ue,Be);var e=Un.len(),i=Zn.len();if(!(e<.001||i<.001)){Un.scale(1/e),Zn.scale(1/i);var r=Un.dot(Zn);if(Math.cos(t)<r){var o=Lu(Be.x,Be.y,Ue.x,Ue.y,Cn.x,Cn.y,Pu,!1);It.fromArray(Pu),It.scaleAndAdd(Zn,o/Math.tan(Math.PI-t));var a=Ue.x!==Be.x?(It.x-Be.x)/(Ue.x-Be.x):(It.y-Be.y)/(Ue.y-Be.y);if(isNaN(a))return;a<0?de.copy(It,Be):a>1&&de.copy(It,Ue),It.toArray(n[1])}}}}function mA(n,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Cn.fromArray(n[0]),Be.fromArray(n[1]),Ue.fromArray(n[2]),de.sub(Un,Be,Cn),de.sub(Zn,Ue,Be);var i=Un.len(),r=Zn.len();if(!(i<.001||r<.001)&&(Un.scale(1/i),Zn.scale(1/r),Un.dot(t)<Math.cos(e))){var o=Lu(Be.x,Be.y,Ue.x,Ue.y,Cn.x,Cn.y,Pu,!1);It.fromArray(Pu);var a=Math.PI/2,s=a+Math.acos(Zn.dot(t))-e;if(s>=a)de.copy(It,Ue);else{It.scaleAndAdd(Zn,o/Math.tan(Math.PI/2-s));var l=Ue.x!==Be.x?(It.x-Be.x)/(Ue.x-Be.x):(It.y-Be.y)/(Ue.y-Be.y);if(isNaN(l))return;l<0?de.copy(It,Be):l>1&&de.copy(It,Ue)}It.toArray(n[1])}}}function W1(n,t,e,i){var r=e==="normal",o=r?n:n.ensureState(e);o.ignore=t;var a=i.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?n.useStyle(s):o.style=s}function xA(n,t){var e=t.smooth,i=t.points;if(i)if(n.moveTo(i[0][0],i[0][1]),e>0&&i.length>=3){var r=Ts(i[0],i[1]),o=Ts(i[1],i[2]);if(!r||!o)return n.lineTo(i[1][0],i[1][1]),void n.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*e,s=Is([],i[1],i[0],a/r),l=Is([],i[1],i[2],a/o),u=Is([],s,l,.5);n.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),n.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var h=1;h<i.length;h++)n.lineTo(i[h][0],i[h][1])}function Y1(n,t,e){var i=n.getTextGuideLine(),r=n.getTextContent();if(r){for(var o=t.normal,a=o.get("show"),s=r.ignore,l=0;l<al.length;l++){var u=al[l],h=t[u],c=u==="normal";if(h){var p=h.get("show");if((c?s:Me(r.states[u]&&r.states[u].ignore,s))||!Me(p,a)){var d=c?i:i&&i.states[u];d&&(d.ignore=!0);continue}i||(i=new wn,n.setTextGuideLine(i),c||!s&&a||W1(i,!0,"normal",t.normal),n.stateProxy&&(i.stateProxy=n.stateProxy)),W1(i,!1,u,h)}}if(i){le(i.style,e),i.style.fill=null;var f=o.get("showAbove");(n.textGuideLineConfig=n.textGuideLineConfig||{}).showAbove=f||!1,i.buildPath=xA}}else i&&n.removeTextGuideLine()}function X1(n,t){t=t||"labelLine";for(var e={normal:n.getModel(t)},i=0;i<tn.length;i++){var r=tn[i];e[r]=n.getModel([r,t])}return e}function U1(n){for(var t=[],e=0;e<n.length;e++){var i=n[e];if(!i.defaultAttr.ignore){var r=i.label,o=r.getComputedTransform(),a=r.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=r.style.margin||0,u=a.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var h=s?new _l(a,o):null;t.push({label:r,labelLine:i.labelLine,rect:u,localRect:a,obb:h,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:s,transform:o})}}return t}function Z1(n,t,e,i,r,o){var a=n.length;if(!(a<2)){n.sort(function(S,M){return S.rect[t]-M.rect[t]});for(var s,l=0,u=!1,h=0,c=0;c<a;c++){var p=n[c],d=p.rect;(s=d[t]-l)<0&&(d[t]-=s,p.label[t]-=s,u=!0),h+=Math.max(-s,0),l=d[t]+d[e]}h>0&&o&&_(-h/a,0,a);var f,g,y=n[0],v=n[a-1];return m(),f<0&&b(-f,.8),g<0&&b(g,.8),m(),x(f,g,1),x(g,f,-1),m(),f<0&&w(-f),g<0&&w(g),u}function m(){f=y.rect[t]-i,g=r-v.rect[t]-v.rect[e]}function x(S,M,T){if(S<0){var I=Math.min(M,-S);if(I>0){_(I*T,0,a);var C=I+S;C<0&&b(-C*T,1)}else b(-S*T,1)}}function _(S,M,T){S!==0&&(u=!0);for(var I=M;I<T;I++){var C=n[I];C.rect[t]+=S,C.label[t]+=S}}function b(S,M){for(var T=[],I=0,C=1;C<a;C++){var D=n[C-1].rect,L=Math.max(n[C].rect[t]-D[t]-D[e],0);T.push(L),I+=L}if(I){var R=Math.min(Math.abs(S)/I,M);if(S>0)for(C=0;C<a-1;C++)_(T[C]*R,0,C+1);else for(C=a-1;C>0;C--)_(-(T[C-1]*R),C,a)}}function w(S){var M=S<0?-1:1;S=Math.abs(S);for(var T=Math.ceil(S/(a-1)),I=0;I<a-1;I++)if(M>0?_(T,0,I+1):_(-T,a-I-1,a),(S-=T)<=0)return}}function j1(n,t,e,i){return Z1(n,"y","height",t,e,i)}function q1(n){var t=[];n.sort(function(g,y){return y.priority-g.priority});var e=new ye(0,0,0,0);function i(g){if(!g.ignore){var y=g.ensureState("emphasis");y.ignore==null&&(y.ignore=!1)}g.ignore=!0}for(var r=0;r<n.length;r++){var o=n[r],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,h=o.labelLine;e.copy(o.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var c=o.obb,p=!1,d=0;d<t.length;d++){var f=t[d];if(e.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new _l(f.localRect,f.transform)),c||(c=new _l(s,l)),c.intersect(f.obb)){p=!0;break}}}p?(i(u),h&&i(h)):(u.attr("ignore",o.defaultAttr.ignore),h&&h.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}function _A(n){if(n){for(var t=[],e=0;e<n.length;e++)t.push(n[e].slice());return t}}function wA(n,t){var e=n.label,i=t&&t.getTextGuideLine();return{dataIndex:n.dataIndex,dataType:n.dataType,seriesIndex:n.seriesModel.seriesIndex,text:n.label.style.text,rect:n.hostRect,labelRect:n.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:_A(i&&i.shape.points)}}var K1=["align","verticalAlign","width","height","fontSize"],Ct=new wi,Td=Ne(),bA=Ne();function Ou(n,t,e){for(var i=0;i<e.length;i++){var r=e[i];t[r]!=null&&(n[r]=t[r])}}var Ru=["x","y","rotation"],SA=function(){function n(){this._labelList=[],this._chartViewList=[]}return n.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},n.prototype._addLabel=function(t,e,i,r,o){var a=r.style,s=r.__hostTarget.textConfig||{},l=r.getComputedTransform(),u=r.getBoundingRect().plain();ye.applyTransform(u,u,l),l?Ct.setLocalTransform(l):(Ct.x=Ct.y=Ct.rotation=Ct.originX=Ct.originY=0,Ct.scaleX=Ct.scaleY=1),Ct.rotation=ni(Ct.rotation);var h,c=r.__hostTarget;if(c){h=c.getBoundingRect().plain();var p=c.getComputedTransform();ye.applyTransform(h,h,p)}var d=h&&c.getTextGuideLine();this._labelList.push({label:r,labelLine:d,seriesModel:i,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:r.ignore,labelGuideIgnore:d&&d.ignore,x:Ct.x,y:Ct.y,scaleX:Ct.scaleX,scaleY:Ct.scaleY,rotation:Ct.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:r.cursor,attachedPos:s.position,attachedRot:s.rotation}})},n.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var i=t.__model,r=i.get("labelLayout");(ae(r)||Oe(r).length)&&t.group.traverse(function(o){if(o.ignore)return!0;var a=o.getTextContent(),s=_e(o);a&&!a.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,i,a,r)})},n.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),i=t.getHeight();function r(v,m){return function(){G1(v,m)}}for(var o=0;o<this._labelList.length;o++){var a=this._labelList[o],s=a.label,l=s.__hostTarget,u=a.defaultAttr,h=void 0;h=(h=ae(a.layoutOption)?a.layoutOption(wA(a,l)):a.layoutOption)||{},a.computedLayoutOption=h;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:h.x!=null||h.y!=null?null:u.attachedPos,rotation:h.rotate!=null?h.rotate*c:u.attachedRot,offset:[h.dx||0,h.dy||0]});var p=!1;if(h.x!=null?(s.x=ee(h.x,e),s.setStyle("x",0),p=!0):(s.x=u.x,s.setStyle("x",u.style.x)),h.y!=null?(s.y=ee(h.y,i),s.setStyle("y",0),p=!0):(s.y=u.y,s.setStyle("y",u.style.y)),h.labelLinePoints){var d=l.getTextGuideLine();d&&(d.setShape({points:h.labelLinePoints}),p=!1)}Td(s).needsUpdateLabelLine=p,s.rotation=h.rotate!=null?h.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var f=0;f<K1.length;f++){var g=K1[f];s.setStyle(g,h[g]!=null?h[g]:u.style[g])}if(h.draggable){if(s.draggable=!0,s.cursor="move",l){var y=a.seriesModel;a.dataIndex!=null&&(y=a.seriesModel.getData(a.dataType).getItemModel(a.dataIndex)),s.on("drag",r(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},n.prototype.layout=function(t){var e,i=t.getWidth(),r=t.getHeight(),o=U1(this._labelList),a=We(o,function(l){return l.layoutOption.moveOverlap==="shiftX"}),s=We(o,function(l){return l.layoutOption.moveOverlap==="shiftY"});Z1(a,"x","width",0,i,e),j1(s,0,r),q1(We(o,function(l){return l.layoutOption.hideOverlap}))},n.prototype.processLabelsOverall=function(){var t=this;A(this._chartViewList,function(e){var i=e.__model,r=e.ignoreLabelLineUpdate,o=i.isAnimationEnabled();e.group.traverse(function(a){if(a.ignore&&!a.forceLabelAnimation)return!0;var s=!r,l=a.getTextContent();!s&&l&&(s=Td(l).needsUpdateLabelLine),s&&t._updateLabelLine(a,i),o&&t._animateLabels(a,i)})})},n.prototype._updateLabelLine=function(t,e){var i=t.getTextContent(),r=_e(t),o=r.dataIndex;if(i&&o!=null){var a=e.getData(r.dataType),s=a.getItemModel(o),l={},u=a.getItemVisual(o,"style");if(u){var h=a.getVisual("drawType");l.stroke=u[h]}var c=s.getModel("labelLine");Y1(t,X1(s),l),G1(t,c)}},n.prototype._animateLabels=function(t,e){var i=t.getTextContent(),r=t.getTextGuideLine();if(i&&(t.forceLabelAnimation||!i.ignore&&!i.invisible&&!t.disableLabelAnimation&&!lo(t))){var o=(f=Td(i)).oldLayout,a=_e(t),s=a.dataIndex,l={x:i.x,y:i.y,rotation:i.rotation},u=e.getData(a.dataType);if(o){i.attr(o);var h=t.prevStates;h&&(Se(h,"select")>=0&&i.attr(f.oldLayoutSelect),Se(h,"emphasis")>=0&&i.attr(f.oldLayoutEmphasis)),ze(i,l,e,s)}else if(i.attr(l),!uo(i).valueAnimation){var c=Me(i.style.opacity,1);i.style.opacity=0,et(i,{style:{opacity:c}},e,s)}if(f.oldLayout=l,i.states.select){var p=f.oldLayoutSelect={};Ou(p,l,Ru),Ou(p,i.states.select,Ru)}if(i.states.emphasis){var d=f.oldLayoutEmphasis={};Ou(d,l,Ru),Ou(d,i.states.emphasis,Ru)}fm(i,s,u,e,e)}if(r&&!r.ignore&&!r.invisible){o=(f=bA(r)).oldLayout;var f,g={points:r.shape.points};o?(r.attr({shape:o}),ze(r,{shape:g},e)):(r.setShape(g),r.style.strokePercent=0,et(r,{style:{strokePercent:1}},e)),f.oldLayout=g}},n}();const MA=SA;var Id=Ne();og=Object.freeze(Object.defineProperty({__proto__:null,Axis:Xn,ChartView:at,ComponentModel:Te,ComponentView:je,List:qa,Model:He,PRIORITY:Sx,SeriesModel:Mt,color:eT,connect:function(n){if(Y(n)){var t=n;n=null,A(t,function(e){e.group!=null&&(n=e.group)}),n=n||"g_"+_2++,A(t,function(e){e.group=n})}return du[n]=!0,n},dataTool:{},dependencies:{zrender:"5.4.4"},disConnect:w2,disconnect:zx,dispose:function(n){q(n)?n=Tr[n]:n instanceof hu||(n=od(n)),n instanceof hu&&!n.isDisposed()&&n.dispose()},env:xe,extendChartView:V1,extendComponentModel:function(n){var t=Te.extend(n);return Te.registerClass(t),t},extendComponentView:function(n){var t=je.extend(n);return je.registerClass(t),t},extendSeriesModel:B1,format:lA,getCoordinateSystemDimensions:function(n){var t=Wl.get(n);if(t)return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},getInstanceByDom:od,getInstanceById:function(n){return Tr[n]},getMap:function(n){var t=bx("getMap");return t&&t(n)},graphic:sA,helper:eA,init:function(n,t,e){var i=!(e&&e.ssr);if(i){if(!n)throw new Error("Initialize failed: invalid dom.");var r=od(n);if(r)return Je("There is a chart instance already initialized on the dom."),r;!Wi(n)||n.nodeName.toUpperCase()==="CANVAS"||(n.clientWidth||e&&e.width!=null)&&(n.clientHeight||e&&e.height!=null)||Je("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var o=new hu(n,t,e);return o.id="ec_"+x2++,Tr[o.id]=o,i&&ky(n,rd,o.id),Px(o),Sn.trigger("afterinit",o),o},innerDrawElementOnCanvas:Yp,matrix:EM,number:oA,parseGeoJSON:Md,parseGeoJson:Md,registerAction:Mn,registerCoordinateSystem:Fx,registerLayout:ld,registerLoading:hd,registerLocale:ap,registerMap:Hx,registerPostInit:Bx,registerPostUpdate:Vx,registerPreprocessor:fu,registerProcessor:sd,registerTheme:ad,registerTransform:Wx,registerUpdateLifecycle:gu,registerVisual:ki,setCanvasCreator:function(n){$t("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),sg({createCanvas:n})},setPlatformAPI:sg,throttle:Kl,time:aA,use:rt,util:uA,vector:MM,version:"5.4.3",zrUtil:wM,zrender:xT},Symbol.toStringTag,{value:"Module"}));const TA=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return V(t,n),t.prototype.getInitialData=function(e){var i=e.coordinateSystem;if(i!=="polar"&&i!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar");return _u(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var i=new fe,r=ut("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);i.add(r),r.setStyle(e.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=.8*e.itemHeight,u=ut(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);i.add(u),u.setStyle(e.itemStyle);var h=e.iconRotate==="inherit"?a:e.iconRotate||0;return u.rotation=h*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}(Mt);function Eu(n,t){var e=n.mapDimensionsAll("defaultedLabel"),i=e.length;if(i===1){var r=bo(n,t,e[0]);return r!=null?r+"":null}if(i){for(var o=[],a=0;a<e.length;a++)o.push(bo(n,t,e[a]));return o.join(" ")}}function J1(n,t){var e=n.mapDimensionsAll("defaultedLabel");if(!Y(t))return t+"";for(var i=[],r=0;r<e.length;r++){var o=n.getDimensionIndex(e[r]);o>=0&&i.push(t[o])}return i.join(" ")}var IA=function(n){function t(e,i,r,o){var a=n.call(this)||this;return a.updateData(e,i,r,o),a}return V(t,n),t.prototype._createSymbol=function(e,i,r,o,a){this.removeAll();var s=ut(e,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=CA,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(){no(this.childAt(0))},t.prototype.downplay=function(){io(this.childAt(0))},t.prototype.setZ=function(e,i){var r=this.childAt(0);r.zlevel=e,r.z=i},t.prototype.setDraggable=function(e,i){var r=this.childAt(0);r.draggable=e,r.cursor=!i&&e?"move":r.cursor},t.prototype.updateData=function(e,i,r,o){this.silent=!1;var a=e.getItemVisual(i,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,i),u=a!==this._symbolType,h=o&&o.disableAnimation;if(u){var c=e.getItemVisual(i,"symbolKeepAspect");this._createSymbol(a,e,i,l,c)}else{(d=this.childAt(0)).silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};h?d.attr(p):ze(d,p,s,i),wa(d)}if(this._updateCommon(e,i,l,r,o),u){var d=this.childAt(0);h||(p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}},d.scaleX=d.scaleY=0,d.style.opacity=0,et(d,p,s,i))}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,i,r,o,a){var s,l,u,h,c,p,d,f,g,y=this.childAt(0),v=e.hostModel;if(o&&(s=o.emphasisItemStyle,l=o.blurItemStyle,u=o.selectItemStyle,h=o.focus,c=o.blurScope,d=o.labelStatesModels,f=o.hoverScale,g=o.cursorStyle,p=o.emphasisDisabled),!o||e.hasItemOption){var m=o&&o.itemModel?o.itemModel:e.getItemModel(i),x=m.getModel("emphasis");s=x.getModel("itemStyle").getItemStyle(),u=m.getModel(["select","itemStyle"]).getItemStyle(),l=m.getModel(["blur","itemStyle"]).getItemStyle(),h=x.get("focus"),c=x.get("blurScope"),p=x.get("disabled"),d=si(m),f=x.getShallow("scale"),g=m.getShallow("cursor")}var _=e.getItemVisual(i,"symbolRotate");y.attr("rotation",(_||0)*Math.PI/180||0);var b=Gp(e.getItemVisual(i,"symbolOffset"),r);b&&(y.x=b[0],y.y=b[1]),g&&y.attr("cursor",g);var w=e.getItemVisual(i,"style"),S=w.fill;if(y instanceof Gt){var M=y.style;y.useStyle(G({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},w))}else y.__isEmptyBrush?y.useStyle(G({},w)):y.useStyle(w),y.style.decal=null,y.setColor(S,a&&a.symbolInnerColor),y.style.strokeNoScale=!0;var T=e.getItemVisual(i,"liftZ"),I=this._z2;T!=null?I==null&&(this._z2=y.z2,y.z2+=T):I!=null&&(y.z2=I,this._z2=null);var C=a&&a.useNameLabel;ai(y,d,{labelFetcher:v,labelDataIndex:i,defaultText:function(R){return C?e.getName(R):Eu(e,R)},inheritColor:S,defaultOpacity:w.opacity}),this._sizeX=r[0]/2,this._sizeY=r[1]/2;var D=y.ensureState("emphasis");D.style=s,y.ensureState("select").style=u,y.ensureState("blur").style=l;var L=f==null||f===!0?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;D.scaleX=this._sizeX*L,D.scaleY=this._sizeY*L,this.setSymbolScale(1),Bn(this,h,c,p)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,i,r){var o=this.childAt(0),a=_e(this).dataIndex,s=r&&r.animation;if(this.silent=o.silent=!0,r&&r.fadeLabel){var l=o.getTextContent();l&&Ii(l,{style:{opacity:0}},i,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();Ii(o,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:a,cb:e,removeOpt:s})},t.getSymbolSize=function(e,i){return nx(e.getItemVisual(i,"symbolSize"))},t}(fe);function CA(n,t){this.parent.drift(n,t)}const Nu=IA;function Cd(n,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]))&&n.getItemVisual(e,"symbol")!=="none"}function $1(n){return n==null||Q(n)||(n={isIgnore:n}),n||{}}function Q1(n){var t=n.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:si(t),cursorStyle:t.get("cursor")}}var AA=function(){function n(t){this.group=new fe,this._SymbolCtor=t||Nu}return n.prototype.updateData=function(t,e){this._progressiveEls=null,e=$1(e);var i=this.group,r=t.hostModel,o=this._data,a=this._SymbolCtor,s=e.disableAnimation,l=Q1(t),u={disableAnimation:s},h=e.getSymbolPoint||function(c){return t.getItemLayout(c)};o||i.removeAll(),t.diff(o).add(function(c){var p=h(c);if(Cd(t,p,c,e)){var d=new a(t,c,l,u);d.setPosition(p),t.setItemGraphicEl(c,d),i.add(d)}}).update(function(c,p){var d=o.getItemGraphicEl(p),f=h(c);if(Cd(t,f,c,e)){var g=t.getItemVisual(c,"symbol")||"circle",y=d&&d.getSymbolType&&d.getSymbolType();if(!d||y&&y!==g)i.remove(d),(d=new a(t,c,l,u)).setPosition(f);else{d.updateData(t,c,l,u);var v={x:f[0],y:f[1]};s?d.attr(v):ze(d,v,r)}i.add(d),t.setItemGraphicEl(c,d)}else i.remove(d)}).remove(function(c){var p=o.getItemGraphicEl(c);p&&p.fadeOut(function(){i.remove(p)},r)}).execute(),this._getSymbolPoint=h,this._data=t},n.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(i,r){var o=t._getSymbolPoint(r);i.setPosition(o),i.markRedraw()})},n.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Q1(t),this._data=null,this.group.removeAll()},n.prototype.incrementalUpdate=function(t,e,i){function r(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],i=$1(i);for(var o=t.start;o<t.end;o++){var a=e.getItemLayout(o);if(Cd(e,a,o,i)){var s=new this._SymbolCtor(e,o,this._seriesScope);s.traverse(r),s.setPosition(a),this.group.add(s),e.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},n.prototype.eachRendered=function(t){Cl(this._progressiveEls||this.group,t)},n.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(r){r.fadeOut(function(){e.remove(r)},i.hostModel)}):e.removeAll()},n}();const DA=AA;function e_(n,t,e){var i=n.getBaseAxis(),r=n.getOtherAxis(i),o=function(f,g){var y=0,v=f.scale.getExtent();return g==="start"?y=v[0]:g==="end"?y=v[1]:Re(g)&&!isNaN(g)?y=g:v[0]>0?y=v[0]:v[1]<0&&(y=v[1]),y}(r,e),a=i.dim,s=r.dim,l=t.mapDimension(s),u=t.mapDimension(a),h=s==="x"||s==="radius"?1:0,c=X(n.dimensions,function(f){return t.mapDimension(f)}),p=!1,d=t.getCalculationInfo("stackResultDimension");return Pi(t,c[0])&&(p=!0,c[0]=d),Pi(t,c[1])&&(p=!0,c[1]=d),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!p,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function t_(n,t,e,i){var r=NaN;n.stacked&&(r=e.get(e.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=n.valueStart);var o=n.baseDataOffset,a=[];return a[o]=e.get(n.baseDim,i),a[1-o]=r,t.dataToPoint(a)}var Oi=Math.min,Ri=Math.max;function Dr(n,t){return isNaN(n)||isNaN(t)}function Ad(n,t,e,i,r,o,a,s,l){for(var u,h,c,p,d,f,g=e,y=0;y<i;y++){var v=t[2*g],m=t[2*g+1];if(g>=r||g<0)break;if(Dr(v,m)){if(l){g+=o;continue}break}if(g===e)n[o>0?"moveTo":"lineTo"](v,m),c=v,p=m;else{var x=v-u,_=m-h;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=t[2*b],S=t[2*b+1];w===v&&S===m&&y<i;)y++,g+=o,w=t[2*(b+=o)],S=t[2*b+1],x=(v=t[2*g])-u,_=(m=t[2*g+1])-h;var M=y+1;if(l)for(;Dr(w,S)&&M<i;)M++,w=t[2*(b+=o)],S=t[2*b+1];var T=.5,I=0,C=0,D=void 0,L=void 0;if(M>=i||Dr(w,S))d=v,f=m;else{I=w-u,C=S-h;var R=v-u,P=w-v,E=m-h,k=S-m,O=void 0,N=void 0;if(s==="x"){var B=I>0?1:-1;d=v-B*(O=Math.abs(R))*a,f=m,D=v+B*(N=Math.abs(P))*a,L=m}else if(s==="y"){var z=C>0?1:-1;d=v,f=m-z*(O=Math.abs(E))*a,D=v,L=m+z*(N=Math.abs(k))*a}else O=Math.sqrt(R*R+E*E),d=v-I*a*(1-(T=(N=Math.sqrt(P*P+k*k))/(N+O))),f=m-C*a*(1-T),L=m+C*a*T,D=Oi(D=v+I*a*T,Ri(w,v)),L=Oi(L,Ri(S,m)),D=Ri(D,Oi(w,v)),f=m-(C=(L=Ri(L,Oi(S,m)))-m)*O/N,d=Oi(d=v-(I=D-v)*O/N,Ri(u,v)),f=Oi(f,Ri(h,m)),D=v+(I=v-(d=Ri(d,Oi(u,v))))*N/O,L=m+(C=m-(f=Ri(f,Oi(h,m))))*N/O}n.bezierCurveTo(c,p,d,f,v,m),c=D,p=L}else n.lineTo(v,m)}u=v,h=m,g+=o}return y}var n_=function(){this.smooth=0,this.smoothConstraint=!0},kA=function(n){function t(e){var i=n.call(this,e)||this;return i.type="ec-polyline",i}return V(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new n_},t.prototype.buildPath=function(e,i){var r=i.points,o=0,a=r.length/2;if(i.connectNulls){for(;a>0&&Dr(r[2*a-2],r[2*a-1]);a--);for(;o<a&&Dr(r[2*o],r[2*o+1]);o++);}for(;o<a;)o+=Ad(e,r,o,a,a,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 r,o,a=this.path.data,s=Mi.CMD,l=i==="x",u=[],h=0;h<a.length;){var c=void 0,p=void 0,d=void 0,f=void 0,g=void 0,y=void 0,v=void 0;switch(a[h++]){case s.M:r=a[h++],o=a[h++];break;case s.L:if(c=a[h++],p=a[h++],(v=l?(e-r)/(c-r):(e-o)/(p-o))<=1&&v>=0){var m=l?(p-o)*v+o:(c-r)*v+r;return l?[e,m]:[m,e]}r=c,o=p;break;case s.C:c=a[h++],p=a[h++],d=a[h++],f=a[h++],g=a[h++],y=a[h++];var x=l?Es(r,c,d,g,e,u):Es(o,p,f,y,e,u);if(x>0)for(var _=0;_<x;_++){var b=u[_];if(b<=1&&b>=0)return m=l?tt(o,p,f,y,b):tt(r,c,d,g,b),l?[e,m]:[m,e]}r=g,o=y}}},t}(De),LA=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t}(n_),PA=function(n){function t(e){var i=n.call(this,e)||this;return i.type="ec-polygon",i}return V(t,n),t.prototype.getDefaultShape=function(){return new LA},t.prototype.buildPath=function(e,i){var r=i.points,o=i.stackedOnPoints,a=0,s=r.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Dr(r[2*s-2],r[2*s-1]);s--);for(;a<s&&Dr(r[2*a],r[2*a+1]);a++);}for(;a<s;){var u=Ad(e,r,a,s,s,1,i.smooth,l,i.connectNulls);Ad(e,o,a+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),a+=u+1,e.closePath()}},t}(De);function i_(n,t,e,i,r){var o=n.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,h=e.get(["lineStyle","width"])||2;a-=h/2,s-=h/2,l+=h,u+=h,a=Math.floor(a),l=Math.round(l);var c=new Ie({shape:{x:a,y:s,width:l,height:u}});if(t){var p=n.getBaseAxis(),d=p.isHorizontal(),f=p.inverse;d?(f&&(c.shape.x+=l),c.shape.width=0):(f||(c.shape.y+=u),c.shape.height=0);var g=ae(r)?function(y){r(y,c)}:null;et(c,{shape:{width:l,height:u,x:a,y:s}},e,null,i,g)}return c}function r_(n,t,e){var i=n.getArea(),r=Xe(i.r0,1),o=Xe(i.r,1),a=new nn({shape:{cx:Xe(n.cx,1),cy:Xe(n.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return t&&(n.getBaseAxis().dim==="angle"?a.shape.endAngle=i.startAngle:a.shape.r=r,et(a,{shape:{endAngle:i.endAngle,r:o}},e)),a}function Dd(n,t){return n.type===t}function o_(n,t){if(n.length===t.length){for(var e=0;e<n.length;e++)if(n[e]!==t[e])return;return!0}}function a_(n){for(var t=1/0,e=1/0,i=-1/0,r=-1/0,o=0;o<n.length;){var a=n[o++],s=n[o++];isNaN(a)||(t=Math.min(a,t),i=Math.max(a,i)),isNaN(s)||(e=Math.min(s,e),r=Math.max(s,r))}return[[t,e],[i,r]]}function s_(n,t){var e=a_(n),i=e[0],r=e[1],o=a_(t),a=o[0],s=o[1];return Math.max(Math.abs(i[0]-a[0]),Math.abs(i[1]-a[1]),Math.abs(r[0]-s[0]),Math.abs(r[1]-s[1]))}function l_(n){return Re(n)?n:n?.5:0}function Ei(n,t,e,i){var r=t.getBaseAxis(),o=r.dim==="x"||r.dim==="radius"?0:1,a=[],s=0,l=[],u=[],h=[],c=[];if(i){for(s=0;s<n.length;s+=2)isNaN(n[s])||isNaN(n[s+1])||c.push(n[s],n[s+1]);n=c}for(s=0;s<n.length-2;s+=2)switch(h[0]=n[s+2],h[1]=n[s+3],u[0]=n[s],u[1]=n[s+1],a.push(u[0],u[1]),e){case"end":l[o]=h[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var p=(u[o]+h[o])/2,d=[];l[o]=d[o]=p,l[1-o]=u[1-o],d[1-o]=h[1-o],a.push(l[0],l[1]),a.push(d[0],d[1]);break;default:l[o]=u[o],l[1-o]=h[1-o],a.push(l[0],l[1])}return a.push(n[s++],n[s++]),a}function OA(n,t,e){var i=n.getVisual("visualMeta");if(i&&i.length&&n.count())if(t.type==="cartesian2d"){for(var r,o,a=i.length-1;a>=0;a--){var s=n.getDimensionInfo(i[a].dimension);if((r=s&&s.coordDim)==="x"||r==="y"){o=i[a];break}}if(o){var l=t.getAxis(r),u=X(o.stops,function(m){return{coord:l.toGlobalCoord(l.dataToCoord(m.value)),color:m.color}}),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var p=function(m,x){var _,b,w=[],S=m.length;function M(D,L,R){var P=D.coord;return{coord:R,color:Yh((R-P)/(L.coord-P),[D.color,L.color])}}for(var T=0;T<S;T++){var I=m[T],C=I.coord;if(C<0)_=I;else{if(C>x){b?w.push(M(b,I,x)):_&&w.push(M(_,I,0),M(_,I,x));break}_&&(w.push(M(_,I,0)),_=null),w.push(I),b=I}}return w}(u,r==="x"?e.getWidth():e.getHeight()),d=p.length;if(!d&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=p[0].coord-10,g=p[d-1].coord+10,y=g-f;if(y<.001)return"transparent";A(p,function(m){m.offset=(m.coord-f)/y}),p.push({offset:d?p[d-1].offset:.5,color:c[1]||"transparent"}),p.unshift({offset:d?p[0].offset:.5,color:c[0]||"transparent"});var v=new _a(0,0,0,0,p,!0);return v[r]=f,v[r+"2"]=g,v}console.warn("Visual map on line style only support x or y dimension.")}else console.warn("Visual map on line style is only supported on cartesian2d.")}function RA(n,t,e){var i=n.get("showAllSymbol"),r=i==="auto";if(!i||r){var o=e.getAxesByScale("ordinal")[0];if(o&&(!r||!function(l,u){var h=l.getExtent(),c=Math.abs(h[1]-h[0])/l.scale.count();isNaN(c)&&(c=0);for(var p=u.count(),d=Math.max(1,Math.round(p/5)),f=0;f<p;f+=d)if(1.5*Nu.getSymbolSize(u,f)[l.isHorizontal()?1:0]>c)return!1;return!0}(o,t))){var a=t.mapDimension(o.dim),s={};return A(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function u_(n,t){return[n[2*t],n[2*t+1]]}function h_(n){if(n.get(["endLabel","show"]))return!0;for(var t=0;t<tn.length;t++)if(n.get([tn[t],"endLabel","show"]))return!0;return!1}function kd(n,t,e,i){if(Dd(t,"cartesian2d")){var r=i.getModel("endLabel"),o=r.get("valueAnimation"),a=i.getData(),s={lastFrameIndex:0},l=h_(i)?function(d,f){n._endLabelOnDuring(d,f,a,s,o,r,t)}:null,u=t.getBaseAxis().isHorizontal(),h=i_(t,e,i,function(){var d=n._endLabel;d&&e&&s.originalX!=null&&d.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var c=h.shape,p=Math.max(c.width,c.height);u?(c.y-=p,c.height+=2*p):(c.x-=p,c.width+=2*p)}return l&&l(1,h),h}return i.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),r_(t,e,i)}var EA=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.init=function(){var e=new fe,i=new DA;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=e},t.prototype.render=function(e,i,r){var o=this,a=e.coordinateSystem,s=this.group,l=e.getData(),u=e.getModel("lineStyle"),h=e.getModel("areaStyle"),c=l.getLayout("points")||[],p=a.type==="polar",d=this._coordSys,f=this._symbolDraw,g=this._polyline,y=this._polygon,v=this._lineGroup,m=!i.ssr&&e.isAnimationEnabled(),x=!h.isEmpty(),_=h.get("origin"),b=e_(a,l,_),w=x&&function(F,W,K){if(!K.valueDim)return[];for(var se=W.count(),he=ci(2*se),te=0;te<se;te++){var j=t_(K,F,W,te);he[2*te]=j[0],he[2*te+1]=j[1]}return he}(a,l,b),S=e.get("showSymbol"),M=e.get("connectNulls"),T=S&&!p&&RA(e,l,a),I=this._data;I&&I.eachItemGraphicEl(function(F,W){F.__temp&&(s.remove(F),I.setItemGraphicEl(W,null))}),S||f.remove(),s.add(v);var C,D=!p&&e.get("step");a&&a.getArea&&e.get("clip",!0)&&((C=a.getArea()).width!=null?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var L=OA(l,a,r)||l.getVisual("style")[l.getVisual("drawType")];if(g&&d.type===a.type&&D===this._step){x&&!y?y=this._newPolygon(c,w):y&&!x&&(v.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(e,a,_r(L));var R=v.getClipPath();R?et(R,{shape:kd(this,a,!1,e).shape},e):v.setClipPath(kd(this,a,!0,e)),S&&f.updateData(l,{isIgnore:T,clipShape:C,disableAnimation:!0,getSymbolPoint:function(F){return[c[2*F],c[2*F+1]]}}),o_(this._stackedOnPoints,w)&&o_(this._points,c)||(m?this._doUpdateAnimation(l,w,a,r,D,_,M):(D&&(c=Ei(c,a,D,M),w&&(w=Ei(w,a,D,M))),g.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:w})))}else S&&f.updateData(l,{isIgnore:T,clipShape:C,disableAnimation:!0,getSymbolPoint:function(F){return[c[2*F],c[2*F+1]]}}),m&&this._initSymbolLabelAnimation(l,a,C),D&&(c=Ei(c,a,D,M),w&&(w=Ei(w,a,D,M))),g=this._newPolyline(c),x?y=this._newPolygon(c,w):y&&(v.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(e,a,_r(L)),v.setClipPath(kd(this,a,!0,e));var P=e.getModel("emphasis"),E=P.get("focus"),k=P.get("blurScope"),O=P.get("disabled");g.useStyle(le(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),oi(g,e,"lineStyle"),g.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"&&(g.getState("emphasis").style.lineWidth=+g.style.lineWidth+1),_e(g).seriesIndex=e.seriesIndex,Bn(g,E,k,O);var N=l_(e.get("smooth")),B=e.get("smoothMonotone");if(g.setShape({smooth:N,smoothMonotone:B,connectNulls:M}),y){var z=l.getCalculationInfo("stackedOnSeries"),U=0;y.useStyle(le(h.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),z&&(U=l_(z.get("smooth"))),y.setShape({smooth:N,stackedOnSmooth:U,smoothMonotone:B,connectNulls:M}),oi(y,e,"areaStyle"),_e(y).seriesIndex=e.seriesIndex,Bn(y,E,k,O)}var Z=function(F){o._changePolyState(F)};l.eachItemGraphicEl(function(F){F&&(F.onHoverStateChange=Z)}),this._polyline.onHoverStateChange=Z,this._data=l,this._coordSys=a,this._stackedOnPoints=w,this._points=c,this._step=D,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,g),y&&this.packEventData(e,y))},t.prototype.packEventData=function(e,i){_e(i).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,i,r,o){var a=e.getData(),s=ir(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var h=l[2*s],c=l[2*s+1];if(isNaN(h)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,c))return;var p=e.get("zlevel")||0,d=e.get("z")||0;(u=new Nu(a,s)).x=h,u.y=c,u.setZ(p,d);var f=u.getSymbolPath().getTextContent();f&&(f.zlevel=p,f.z=d,f.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else at.prototype.highlight.call(this,e,i,r,o)},t.prototype.downplay=function(e,i,r,o){var a=e.getData(),s=ir(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else at.prototype.downplay.call(this,e,i,r,o)},t.prototype._changePolyState=function(e){var i=this._polygon;hl(this._polyline,e),i&&hl(i,e)},t.prototype._newPolyline=function(e){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new kA({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},t.prototype._newPolygon=function(e,i){var r=this._polygon;return r&&this._lineGroup.remove(r),r=new PA({shape:{points:e,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(r),this._polygon=r,r},t.prototype._initSymbolLabelAnimation=function(e,i,r){var o,a,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):i.type==="polar"&&(o=s.dim==="angle",a=!0);var u=e.hostModel,h=u.get("animationDuration");ae(h)&&(h=h(null));var c=u.get("animationDelay")||0,p=ae(c)?c(null):c;e.eachItemGraphicEl(function(d,f){var g=d;if(g){var y=[d.x,d.y],v=void 0,m=void 0,x=void 0;if(r)if(a){var _=r,b=i.pointToCoord(y);o?(v=_.startAngle,m=_.endAngle,x=-b[1]/180*Math.PI):(v=_.r0,m=_.r,x=b[0])}else{var w=r;o?(v=w.x,m=w.x+w.width,x=d.x):(v=w.y+w.height,m=w.y,x=d.y)}var S=m===v?0:(x-v)/(m-v);l&&(S=1-S);var M=ae(c)?c(f):h*S+p,T=g.getSymbolPath(),I=T.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:M}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,i,r){var o=e.getModel("endLabel");if(h_(e)){var a=e.getData(),s=this._polyline,l=a.getLayout("points");if(!l)return s.removeTextContent(),void(this._endLabel=null);var u=this._endLabel;u||((u=this._endLabel=new ke({z2:200})).ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var h=function(c){for(var p,d,f=c.length/2;f>0&&(p=c[2*f-2],d=c[2*f-1],isNaN(p)||isNaN(d));f--);return f-1}(l);h>=0&&(ai(s,si(e,"endLabel"),{inheritColor:r,labelFetcher:e,labelDataIndex:h,defaultText:function(c,p,d){return d!=null?J1(a,d):Eu(a,c)},enableTextSetter:!0},function(c,p){var d=p.getBaseAxis(),f=d.isHorizontal(),g=d.inverse,y=f?g?"right":"left":"center",v=f?"middle":g?"top":"bottom";return{normal:{align:c.get("align")||y,verticalAlign:c.get("verticalAlign")||v}}}(o,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,i,r,o,a,s,l){var u=this._endLabel,h=this._polyline;if(u){e<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var c=r.getLayout("points"),p=r.hostModel,d=p.get("connectNulls"),f=s.get("precision"),g=s.get("distance")||0,y=l.getBaseAxis(),v=y.isHorizontal(),m=y.inverse,x=i.shape,_=m?v?x.x:x.y+x.height:v?x.x+x.width:x.y,b=(v?g:0)*(m?-1:1),w=(v?0:-g)*(m?-1:1),S=v?"x":"y",M=function(k,O,N){for(var B,z,U=k.length/2,Z=N==="x"?0:1,F=0,W=-1,K=0;K<U;K++)if(z=k[2*K+Z],!isNaN(z)&&!isNaN(k[2*K+1-Z]))if(K!==0){if(B<=O&&z>=O||B>=O&&z<=O){W=K;break}F=K,B=z}else B=z;return{range:[F,W],t:(O-B)/(z-B)}}(c,_,S),T=M.range,I=T[1]-T[0],C=void 0;if(I>=1){if(I>1&&!d){var D=u_(c,T[0]);u.attr({x:D[0]+b,y:D[1]+w}),a&&(C=p.getRawValue(T[0]))}else{(D=h.getPointOn(_,S))&&u.attr({x:D[0]+b,y:D[1]+w});var L=p.getRawValue(T[0]),R=p.getRawValue(T[1]);a&&(C=Ly(r,f,L,R,M.t))}o.lastFrameIndex=T[0]}else{var P=e===1||o.lastFrameIndex>0?T[0]:0;D=u_(c,P),a&&(C=p.getRawValue(P)),u.attr({x:D[0]+b,y:D[1]+w})}if(a){var E=uo(u);typeof E.setLabelText=="function"&&E.setLabelText(C)}}},t.prototype._doUpdateAnimation=function(e,i,r,o,a,s,l){var u=this._polyline,h=this._polygon,c=e.hostModel,p=function(w,S,M,T,I,C,D,L){for(var R=function(yt,Ke){var ht=[];return Ke.diff(yt).add(function(Ye){ht.push({cmd:"+",idx:Ye})}).update(function(Ye,zt){ht.push({cmd:"=",idx:zt,idx1:Ye})}).remove(function(Ye){ht.push({cmd:"-",idx:Ye})}).execute(),ht}(w,S),P=[],E=[],k=[],O=[],N=[],B=[],z=[],U=e_(I,S,D),Z=w.getLayout("points")||[],F=S.getLayout("points")||[],W=0;W<R.length;W++){var K=R[W],se=!0,he=void 0,te=void 0;switch(K.cmd){case"=":he=2*K.idx,te=2*K.idx1;var j=Z[he],J=Z[he+1],H=F[te],$=F[te+1];(isNaN(j)||isNaN(J))&&(j=H,J=$),P.push(j,J),E.push(H,$),k.push(M[he],M[he+1]),O.push(T[te],T[te+1]),z.push(S.getRawIndex(K.idx1));break;case"+":var re=K.idx,Ce=U.dataDimsForPoint,ge=I.dataToPoint([S.get(Ce[0],re),S.get(Ce[1],re)]);te=2*re,P.push(ge[0],ge[1]),E.push(F[te],F[te+1]);var me=t_(U,I,S,re);k.push(me[0],me[1]),O.push(T[te],T[te+1]),z.push(S.getRawIndex(re));break;case"-":se=!1}se&&(N.push(K),B.push(B.length))}B.sort(function(yt,Ke){return z[yt]-z[Ke]});var we=P.length,Le=ci(we),be=ci(we),Pe=ci(we),Ve=ci(we),qe=[];for(W=0;W<B.length;W++){var Fe=B[W],Ge=2*W,ce=2*Fe;Le[Ge]=P[ce],Le[Ge+1]=P[ce+1],be[Ge]=E[ce],be[Ge+1]=E[ce+1],Pe[Ge]=k[ce],Pe[Ge+1]=k[ce+1],Ve[Ge]=O[ce],Ve[Ge+1]=O[ce+1],qe[W]=N[Fe]}return{current:Le,next:be,stackedOnCurrent:Pe,stackedOnNext:Ve,status:qe}}(this._data,e,this._stackedOnPoints,i,this._coordSys,0,this._valueOrigin),d=p.current,f=p.stackedOnCurrent,g=p.next,y=p.stackedOnNext;if(a&&(d=Ei(p.current,r,a,l),f=Ei(p.stackedOnCurrent,r,a,l),g=Ei(p.next,r,a,l),y=Ei(p.stackedOnNext,r,a,l)),s_(d,g)>3e3||h&&s_(f,y)>3e3)return u.stopAnimation(),u.setShape({points:g}),void(h&&(h.stopAnimation(),h.setShape({points:g,stackedOnPoints:y})));u.shape.__points=p.current,u.shape.points=d;var v={shape:{points:g}};p.current!==d&&(v.shape.__points=p.next),u.stopAnimation(),ze(u,v,c),h&&(h.setShape({points:d,stackedOnPoints:f}),h.stopAnimation(),ze(h,{shape:{stackedOnPoints:y}},c),u.shape.points!==h.shape.points&&(h.shape.points=u.shape.points));for(var m=[],x=p.status,_=0;_<x.length;_++)if(x[_].cmd==="="){var b=e.getItemGraphicEl(x[_].idx1);b&&m.push({el:b,ptIdx:_})}u.animators&&u.animators.length&&u.animators[0].during(function(){h&&h.dirtyShape();for(var w=u.shape.__points,S=0;S<m.length;S++){var M=m[S].el,T=2*m[S].ptIdx;M.x=w[T],M.y=w[T+1],M.markRedraw()}})},t.prototype.remove=function(e){var i=this.group,r=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),r&&r.eachItemGraphicEl(function(o,a){o.__temp&&(i.remove(o),r.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(at);const NA=EA;var zA={average:function(n){for(var t=0,e=0,i=0;i<n.length;i++)isNaN(n[i])||(t+=n[i],e++);return e===0?NaN:t/e},sum:function(n){for(var t=0,e=0;e<n.length;e++)t+=n[e]||0;return t},max:function(n){for(var t=-1/0,e=0;e<n.length;e++)n[e]>t&&(t=n[e]);return isFinite(t)?t:NaN},min:function(n){for(var t=1/0,e=0;e<n.length;e++)n[e]<t&&(t=n[e]);return isFinite(t)?t:NaN},nearest:function(n){return n[0]}},BA=function(n){return Math.round(n.length/2)};function c_(n){return{seriesType:n,reset:function(t,e,i){var r=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=r.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),h=l.getExtent(),c=i.getDevicePixelRatio(),p=Math.abs(h[1]-h[0])*(c||1),d=Math.round(s/p);if(isFinite(d)&&d>1){o==="lttb"&&t.setData(r.lttbDownSample(r.mapDimension(u.dim),1/d));var f=void 0;q(o)?f=zA[o]:ae(o)&&(f=o),f&&t.setData(r.downSample(r.mapDimension(u.dim),1/d,f,BA))}}}}}var p_=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.getInitialData=function(e,i){return _u(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,i,r){var o=this.coordinateSystem;if(o&&o.clampData){var a=o.clampData(e),s=o.dataToPoint(a);if(r)A(o.getAxes(),function(p,d){if(p.type==="category"&&i!=null){var f=p.getTicksCoords(),g=a[d],y=i[d]==="x1"||i[d]==="y1";if(y&&(g+=1),f.length<2)return;if(f.length===2)return void(s[d]=p.toGlobalCoord(p.getExtent()[y?1:0]));for(var v=void 0,m=void 0,x=1,_=0;_<f.length;_++){var b=f[_].coord,w=_===f.length-1?f[_-1].tickValue+x:f[_].tickValue;if(w===g){m=b;break}if(w<g)v=b;else if(v!=null&&w>g){m=(b+v)/2;break}_===1&&(x=w-f[0].tickValue)}m==null&&(v?v&&(m=f[f.length-1].coord):m=f[0].coord),s[d]=p.toGlobalCoord(m)}});else{var l=this.getData(),u=l.getLayout("offset"),h=l.getLayout("size"),c=o.getBaseAxis().isHorizontal()?0:1;s[c]+=u+h/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}(Mt);Mt.registerClass(p_);const zu=p_,VA=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.getInitialData=function(){return _u(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},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,r){return r.rect(i.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=xr(zu.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}(zu);var FA=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},GA=function(n){function t(e){var i=n.call(this,e)||this;return i.type="sausage",i}return V(t,n),t.prototype.getDefaultShape=function(){return new FA},t.prototype.buildPath=function(e,i){var r=i.cx,o=i.cy,a=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=.5*(s-a),u=a+l,h=i.startAngle,c=i.endAngle,p=i.clockwise,d=2*Math.PI,f=p?c-h<d:h-c<d;f||(h=c-(p?d:-d));var g=Math.cos(h),y=Math.sin(h),v=Math.cos(c),m=Math.sin(c);f?(e.moveTo(g*a+r,y*a+o),e.arc(g*u+r,y*u+o,l,-Math.PI+h,h,!p)):e.moveTo(g*s+r,y*s+o),e.arc(r,o,s,h,c,!p),e.arc(v*u+r,m*u+o,l,c-2*Math.PI,c-Math.PI,!p),a!==0&&e.arc(r,o,a,c,h,p)},t}(De);const Bu=GA;function Vu(n,t,e){return t*Math.sin(n)*(e?-1:1)}function Fu(n,t,e){return t*Math.cos(n)*(e?1:-1)}function ts(n,t,e){var i=n.get("borderRadius");if(i==null)return e?{cornerRadius:0}:null;Y(i)||(i=[i,i,i,i]);var r=Math.abs(t.r||0-t.r0||0);return{cornerRadius:X(i,function(o){return Pn(o,r)})}}var Ld=Math.max,Pd=Math.min,HA=function(n){function t(){var e=n.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return V(t,n),t.prototype.render=function(e,i,r,o){this._model=e,this._removeOnRenderedListener(r),this._updateDrawMode(e);var a=e.get("coordinateSystem");a==="cartesian2d"||a==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,i,r):this._renderNormal(e,i,r,o)):Je("Only cartesian2d and polar supported for bar.")},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){Cl(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,r,o){var a,s=this.group,l=e.getData(),u=this._data,h=e.coordinateSystem,c=h.getBaseAxis();h.type==="cartesian2d"?a=c.isHorizontal():h.type==="polar"&&(a=c.dim==="angle");var p=e.isAnimationEnabled()?e:null,d=function(C,D){var L=C.get("realtimeSort",!0),R=D.getBaseAxis();if(L&&(R.type!=="category"&&Je("`realtimeSort` will not work because this bar series is not based on a category axis."),D.type!=="cartesian2d"&&Je("`realtimeSort` will not work because this bar series is not on cartesian2d.")),L&&R.type==="category"&&D.type==="cartesian2d")return{baseAxis:R,otherAxis:D.getOtherAxis(R)}}(e,h);d&&this._enableRealtimeSort(d,l,r);var f=e.get("clip",!0)||d,g=function(C,D){var L=C.getArea&&C.getArea();if(Dd(C,"cartesian2d")){var R=C.getBaseAxis();if(R.type!=="category"||!R.onBand){var P=D.getLayout("bandWidth");R.isHorizontal()?(L.x-=P,L.width+=2*P):(L.y-=P,L.height+=2*P)}}return L}(h,l);s.removeClipPath();var y=e.get("roundCap",!0),v=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),x=m.get("borderRadius")||0,_=[],b=this._backgroundEls,w=o&&o.isInitSort,S=o&&o.type==="changeAxisOrder";function M(C){var D=Gu[h.type](l,C),L=function(R,P,E){var k=R.type==="polar"?nn:Ie;return new k({shape:S_(P,E,R),silent:!0,z2:0})}(h,a,D);return L.useStyle(m.getItemStyle()),h.type==="cartesian2d"?L.setShape("r",x):L.setShape("cornerRadius",x),_[C]=L,L}l.diff(u).add(function(C){var D=l.getItemModel(C),L=Gu[h.type](l,C,D);if(v&&M(C),l.hasValue(C)&&v_[h.type](L)){var R=!1;f&&(R=d_[h.type](g,L));var P=f_[h.type](e,l,C,L,a,p,c.model,!1,y);d&&(P.forceLabelAnimation=!0),x_(P,l,C,D,L,e,a,h.type==="polar"),w?P.attr({shape:L}):d?g_(d,p,P,L,C,a,!1,!1):et(P,{shape:L},e,C),l.setItemGraphicEl(C,P),s.add(P),P.ignore=R}}).update(function(C,D){var L=l.getItemModel(C),R=Gu[h.type](l,C,L);if(v){var P=void 0;b.length===0?P=M(D):((P=b[D]).useStyle(m.getItemStyle()),h.type==="cartesian2d"?P.setShape("r",x):P.setShape("cornerRadius",x),_[C]=P);var E=Gu[h.type](l,C);ze(P,{shape:S_(a,E,h)},p,C)}var k=u.getItemGraphicEl(D);if(l.hasValue(C)&&v_[h.type](R)){var O=!1;if(f&&(O=d_[h.type](g,R))&&s.remove(k),k?wa(k):k=f_[h.type](e,l,C,R,a,p,c.model,!!k,y),d&&(k.forceLabelAnimation=!0),S){var N=k.getTextContent();if(N){var B=uo(N);B.prevValue!=null&&(B.prevValue=B.value)}}else x_(k,l,C,L,R,e,a,h.type==="polar");w?k.attr({shape:R}):d?g_(d,p,k,R,C,a,!0,S):ze(k,{shape:R},e,C,null),l.setItemGraphicEl(C,k),k.ignore=O,s.add(k)}else s.remove(k)}).remove(function(C){var D=u.getItemGraphicEl(C);D&&wl(D,e,C)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new fe);T.removeAll();for(var I=0;I<_.length;++I)T.add(_[I]);s.add(T),this._backgroundEls=_,this._data=l},t.prototype._renderLarge=function(e,i,r){this._clear(),w_(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,i){this._removeBackground(),w_(i,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var i=e.get("clip",!0)&&function(o,a,s,l,u){return o?o.type==="polar"?r_(o,a,s):o.type==="cartesian2d"?i_(o,a,s,l,u):null:null}(e.coordinateSystem,!1,e),r=this.group;i?r.setClipPath(i):r.removeClipPath()},t.prototype._enableRealtimeSort=function(e,i,r){var o=this;if(i.count()){var a=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,e,r),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),h=u&&u.shape;return h&&Math.abs(a.isHorizontal()?h.height:h.width)||0};this._onRendered=function(){o._updateSortWithinSameData(i,s,a,r)},r.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,i,r){var o=[];return e.each(e.mapDimension(i.dim),function(a,s){var l=r(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),o.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:X(o,function(a){return a.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,i,r){for(var o=r.scale,a=e.mapDimension(r.dim),s=Number.MAX_VALUE,l=0,u=o.getOrdinalMeta().categories.length;l<u;++l){var h=e.rawIndexOf(a,o.getRawOrdinalNumber(l)),c=h<0?Number.MIN_VALUE:i(e.indexOfRawIndex(h));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,i){for(var r=i.scale,o=r.getExtent(),a=Math.max(0,o[0]),s=Math.min(o[1],r.getOrdinalMeta().categories.length-1);a<=s;++a)if(e.ordinalNumbers[a]!==r.getRawOrdinalNumber(a))return!0},t.prototype._updateSortWithinSameData=function(e,i,r,o){if(this._isOrderChangedWithinSameData(e,i,r)){var a=this._dataSort(e,r,i);this._isOrderDifferentInView(a,r)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",axisId:r.index,sortInfo:a}))}},t.prototype._dispatchInitSort=function(e,i,r){var o=i.baseAxis,a=this._dataSort(e,o,function(s){return e.get(e.mapDimension(i.otherAxis.dim),s)});r.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:a})},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,r=this._data;e&&e.isAnimationEnabled()&&r&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],r.eachItemGraphicEl(function(o){wl(o,e,_e(o).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}(at),d_={cartesian2d:function(n,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 r=n.x+n.width,o=n.y+n.height,a=Ld(t.x,n.x),s=Pd(t.x+t.width,r),l=Ld(t.y,n.y),u=Pd(t.y+t.height,o),h=s<a,c=u<l;return t.x=h&&a>r?s:a,t.y=c&&l>o?u:l,t.width=h?0:s-a,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),h||c},polar:function(n,t){var e=t.r0<=t.r?1:-1;if(e<0){var i=t.r;t.r=t.r0,t.r0=i}var r=Pd(t.r,n.r),o=Ld(t.r0,n.r0);t.r=r,t.r0=o;var a=r-o<0;return e<0&&(i=t.r,t.r=t.r0,t.r0=i),a}},f_={cartesian2d:function(n,t,e,i,r,o,a,s,l){var u=new Ie({shape:G({},i),z2:1});return u.__dataIndex=e,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(n,t,e,i,r,o,a,s,l){var u=!r&&l?Bu:nn,h=new u({shape:i,z2:1});h.name="item";var c,p,d=m_(r);if(h.calculateTextPosition=(c=d,p=u===Bu,function(y,v,m){var x=v.position;if(!x||x instanceof Array)return Us(y,v,m);var _=c(x),b=v.distance!=null?v.distance:5,w=this.shape,S=w.cx,M=w.cy,T=w.r,I=w.r0,C=(T+I)/2,D=w.startAngle,L=w.endAngle,R=(D+L)/2,P=p?Math.abs(T-I)/2:0,E=Math.cos,k=Math.sin,O=S+T*E(D),N=M+T*k(D),B="left",z="top";switch(_){case"startArc":O=S+(I-b)*E(R),N=M+(I-b)*k(R),B="center",z="top";break;case"insideStartArc":O=S+(I+b)*E(R),N=M+(I+b)*k(R),B="center",z="bottom";break;case"startAngle":O=S+C*E(D)+Vu(D,b+P,!1),N=M+C*k(D)+Fu(D,b+P,!1),B="right",z="middle";break;case"insideStartAngle":O=S+C*E(D)+Vu(D,-b+P,!1),N=M+C*k(D)+Fu(D,-b+P,!1),B="left",z="middle";break;case"middle":O=S+C*E(R),N=M+C*k(R),B="center",z="middle";break;case"endArc":O=S+(T+b)*E(R),N=M+(T+b)*k(R),B="center",z="bottom";break;case"insideEndArc":O=S+(T-b)*E(R),N=M+(T-b)*k(R),B="center",z="top";break;case"endAngle":O=S+C*E(L)+Vu(L,b+P,!0),N=M+C*k(L)+Fu(L,b+P,!0),B="left",z="middle";break;case"insideEndAngle":O=S+C*E(L)+Vu(L,-b+P,!0),N=M+C*k(L)+Fu(L,-b+P,!0),B="right",z="middle";break;default:return Us(y,v,m)}return(y=y||{}).x=O,y.y=N,y.align=B,y.verticalAlign=z,y}),o){var f=r?"r":"endAngle",g={};h.shape[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?ze:et)(h,{shape:g},o)}return h}};function g_(n,t,e,i,r,o,a,s){var l,u;o?(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||(a?ze:et)(e,{shape:l},t,r,null),(a?ze:et)(e,{shape:u},t?n.baseAxis.model:null,r)}function y_(n,t){for(var e=0;e<t.length;e++)if(!isFinite(n[t[e]]))return!0;return!1}var WA=["x","y","width","height"],YA=["cx","cy","r","startAngle","endAngle"],v_={cartesian2d:function(n){return!y_(n,WA)},polar:function(n){return!y_(n,YA)}},Gu={cartesian2d:function(n,t,e){var i=n.getItemLayout(t),r=e?function(s,l){var u=s.get(["itemStyle","borderColor"]);if(!u||u==="none")return 0;var h=s.get(["itemStyle","borderWidth"])||0,c=isNaN(l.width)?Number.MAX_VALUE:Math.abs(l.width),p=isNaN(l.height)?Number.MAX_VALUE:Math.abs(l.height);return Math.min(h,c,p)}(e,i):0,o=i.width>0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(n,t,e){var i=n.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 m_(n){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}}}(n)}function x_(n,t,e,i,r,o,a,s){var l=t.getItemVisual(e,"style");if(s){if(!o.get("roundCap")){var u=n.shape;G(u,ts(i.getModel("itemStyle"),u,!0)),n.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;n.setShape("r",h)}n.useStyle(l);var c=i.getShallow("cursor");c&&n.attr("cursor",c);var p=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",d=si(i);ai(n,d,{labelFetcher:o,labelDataIndex:e,defaultText:Eu(o.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var f=n.getTextContent();if(s&&f){var g=i.get(["label","position"]);n.textConfig.inside=g==="middle"||null,function(v,m,x,_){if(Re(_))v.setTextConfig({rotation:_});else if(Y(m))v.setTextConfig({rotation:0});else{var b,w=v.shape,S=w.clockwise?w.startAngle:w.endAngle,M=w.clockwise?w.endAngle:w.startAngle,T=(S+M)/2,I=x(m);switch(I){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":b=T;break;case"startAngle":case"insideStartAngle":b=S;break;case"endAngle":case"insideEndAngle":b=M;break;default:return void v.setTextConfig({rotation:0})}var C=1.5*Math.PI-b;I==="middle"&&C>Math.PI/2&&C<1.5*Math.PI&&(C-=Math.PI),v.setTextConfig({rotation:C})}}(n,g==="outside"?p:g,m_(a),i.get(["label","rotate"]))}dm(f,d,o.getRawValue(e),function(v){return J1(t,v)});var y=i.getModel(["emphasis"]);Bn(n,y.get("focus"),y.get("blurScope"),y.get("disabled")),oi(n,i),function(v){return v.startAngle!=null&&v.endAngle!=null&&v.startAngle===v.endAngle}(r)&&(n.style.fill="none",n.style.stroke="none",A(n.states,function(v){v.style&&(v.style.fill=v.style.stroke="none")}))}var XA=function(){},__=function(n){function t(e){var i=n.call(this,e)||this;return i.type="largeBar",i}return V(t,n),t.prototype.getDefaultShape=function(){return new XA},t.prototype.buildPath=function(e,i){for(var r=i.points,o=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,h=0;h<r.length;h+=3)l[o]=u,l[a]=r[h+2],s[o]=r[h+o],s[a]=r[h+a],e.rect(s[0],s[1],l[0],l[1])},t}(De);function w_(n,t,e,i){var r=n.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=n.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints");if(u){var h=new __({shape:{points:u},incremental:!!i,silent:!0,z2:0});h.baseDimIdx=o,h.largeDataIndices=a,h.barWidth=s,h.useStyle(l.getItemStyle()),t.add(h),e&&e.push(h)}var c=new __({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,t.add(c),c.useStyle(r.getVisual("style")),_e(c).seriesIndex=n.seriesIndex,n.get("silent")||(c.on("mousedown",b_),c.on("mousemove",b_)),e&&e.push(c)}var b_=Kl(function(n){var t=function(e,i,r){for(var o=e.baseDimIdx,a=1-o,s=e.shape.points,l=e.largeDataIndices,u=[],h=[],c=e.barWidth,p=0,d=s.length/3;p<d;p++){var f=3*p;if(h[o]=c,h[a]=s[f+2],u[o]=s[f+o],u[a]=s[f+a],h[a]<0&&(u[a]+=h[a],h[a]=-h[a]),i>=u[0]&&i<=u[0]+h[0]&&r>=u[1]&&r<=u[1]+h[1])return l[p]}return-1}(this,n.offsetX,n.offsetY);_e(this).dataIndex=t>=0?t:null},30,!1);function S_(n,t,e){if(Dd(e,"cartesian2d")){var i=t,r=e.getArea();return{x:n?i.x:r.x,y:n?r.y:i.y,width:n?i.width:r.width,height:n?r.height:i.height}}var o=t;return{cx:(r=e.getArea()).cx,cy:r.cy,r0:n?r.r0:o.r0,r:n?r.r:o.r,startAngle:n?o.startAngle:0,endAngle:n?o.endAngle:2*Math.PI}}const UA=HA;var Hu=2*Math.PI,M_=Math.PI/180;function T_(n,t){return St(n.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function I_(n,t){var e=T_(n,t),i=n.get("center"),r=n.get("radius");Y(r)||(r=[0,r]);var o,a,s=ee(e.width,t.getWidth()),l=ee(e.height,t.getHeight()),u=Math.min(s,l),h=ee(r[0],u/2),c=ee(r[1],u/2),p=n.coordinateSystem;if(p){var d=p.dataToPoint(i);o=d[0]||0,a=d[1]||0}else Y(i)||(i=[i,i]),o=ee(i[0],s)+e.x,a=ee(i[1],l)+e.y;return{cx:o,cy:a,r0:h,r:c}}function ZA(n,t,e){t.eachSeriesByType(n,function(i){var r=i.getData(),o=r.mapDimension("value"),a=T_(i,e),s=I_(i,e),l=s.cx,u=s.cy,h=s.r,c=s.r0,p=-i.get("startAngle")*M_,d=i.get("minAngle")*M_,f=0;r.each(o,function(I){!isNaN(I)&&f++});var g=r.getSum(o),y=Math.PI/(g||f)*2,v=i.get("clockwise"),m=i.get("roseType"),x=i.get("stillShowZeroSum"),_=r.getDataExtent(o);_[0]=0;var b=Hu,w=0,S=p,M=v?1:-1;if(r.setLayout({viewRect:a,r:h}),r.each(o,function(I,C){var D;if(isNaN(I))r.setItemLayout(C,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:l,cy:u,r0:c,r:m?NaN:h});else{(D=m!=="area"?g===0&&x?y:I*y:Hu/f)<d?(D=d,b-=d):w+=I;var L=S+M*D;r.setItemLayout(C,{angle:D,startAngle:S,endAngle:L,clockwise:v,cx:l,cy:u,r0:c,r:m?Ae(I,_,[c,h]):h}),S=L}}),b<Hu&&f)if(b<=.001){var T=Hu/f;r.each(o,function(I,C){if(!isNaN(I)){var D=r.getItemLayout(C);D.angle=T,D.startAngle=p+M*C*T,D.endAngle=p+M*(C+1)*T}})}else y=b/w,S=p,r.each(o,function(I,C){if(!isNaN(I)){var D=r.getItemLayout(C),L=D.angle===d?d:I*y;D.startAngle=S,D.endAngle=S+M*L,S+=M*L}})})}function C_(n){return{seriesType:n,reset:function(t,e){var i=e.findComponents({mainType:"legend"});if(i&&i.length){var r=t.getData();r.filterSelf(function(o){for(var a=r.getName(o),s=0;s<i.length;s++)if(!i[s].isSelected(a))return!1;return!0})}}}}var jA=Math.PI/180;function A_(n,t,e,i,r,o,a,s,l,u){if(!(n.length<2)){for(var h=n.length,c=0;c<h;c++)if(n[c].position==="outer"&&n[c].labelAlignTo==="labelLine"){var p=n[c].label.x-u;n[c].linePoints[1][0]+=p,n[c].label.x=u}j1(n,l,l+a)&&function(f){for(var g={list:[],maxY:0},y={list:[],maxY:0},v=0;v<f.length;v++)if(f[v].labelAlignTo==="none"){var m=f[v],x=m.label.y>e?y:g,_=Math.abs(m.label.y-e);if(_>=x.maxY){var b=m.label.x-t-m.len2*r,w=i+m.len,S=Math.abs(b)<w?Math.sqrt(_*_/(1-b*b/w/w)):w;x.rB=S,x.maxY=_}x.list.push(m)}d(g),d(y)}(n)}function d(f){for(var g=f.rB,y=g*g,v=0;v<f.list.length;v++){var m=f.list[v],x=Math.abs(m.label.y-e),_=i+m.len,b=_*_,w=Math.sqrt((1-Math.abs(x*x/y))*b),S=t+(w+m.len2)*r,M=S-m.label.x;D_(m,m.targetTextWidth-M*r,!0),m.label.x=S}}}function D_(n,t,e){if(e===void 0&&(e=!1),n.labelStyleWidth==null){var i=n.label,r=i.style,o=n.rect,a=r.backgroundColor,s=r.padding,l=s?s[1]+s[3]:0,u=r.overflow,h=o.width+(a?0:l);if(t<h||e){var c=o.height;if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",t-l);var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",a)}else{var d=t-l,f=t<h?d:e?d>n.unconstrainedWidth?null:d:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-c)/2}}}function Od(n){return n.position==="center"}function qA(n){var t,e,i=n.getData(),r=[],o=!1,a=(n.get("minShowLabelAngle")||0)*jA,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,h=s.x,c=s.y,p=s.height;function d(b){b.ignore=!0}i.each(function(b){var w=i.getItemGraphicEl(b),S=w.shape,M=w.getTextContent(),T=w.getTextGuideLine(),I=i.getItemModel(b),C=I.getModel("label"),D=C.get("position")||I.get(["emphasis","label","position"]),L=C.get("distanceToLabelLine"),R=C.get("alignTo"),P=ee(C.get("edgeDistance"),u),E=C.get("bleedMargin"),k=I.getModel("labelLine"),O=k.get("length");O=ee(O,u);var N=k.get("length2");if(N=ee(N,u),Math.abs(S.endAngle-S.startAngle)<a)return A(M.states,d),M.ignore=!0,void(T&&(A(T.states,d),T.ignore=!0));if(function(be){if(!be.ignore)return!0;for(var Pe in be.states)if(be.states[Pe].ignore===!1)return!0;return!1}(M)){var B,z,U,Z,F=(S.startAngle+S.endAngle)/2,W=Math.cos(F),K=Math.sin(F);t=S.cx,e=S.cy;var se=D==="inside"||D==="inner";if(D==="center")B=S.cx,z=S.cy,Z="center";else{var he=(se?(S.r+S.r0)/2*W:S.r*W)+t,te=(se?(S.r+S.r0)/2*K:S.r*K)+e;if(B=he+3*W,z=te+3*K,!se){var j=he+W*(O+l-S.r),J=te+K*(O+l-S.r),H=j+(W<0?-1:1)*N;B=R==="edge"?W<0?h+P:h+u-P:H+(W<0?-L:L),z=J,U=[[he,te],[j,J],[H,J]]}Z=se?"center":R==="edge"?W>0?"right":"left":W>0?"left":"right"}var $=Math.PI,re=0,Ce=C.get("rotate");if(Re(Ce))re=Ce*($/180);else if(D==="center")re=0;else if(Ce==="radial"||Ce===!0)re=W<0?-F+$:-F;else if(Ce==="tangential"&&D!=="outside"&&D!=="outer"){var ge=Math.atan2(W,K);ge<0&&(ge=2*$+ge),K>0&&(ge=$+ge),re=ge-$}if(o=!!re,M.x=B,M.y=z,M.rotation=re,M.setStyle({verticalAlign:"middle"}),se){M.setStyle({align:Z});var me=M.states.select;me&&(me.x+=M.x,me.y+=M.y)}else{var we=M.getBoundingRect().clone();we.applyTransform(M.getComputedTransform());var Le=(M.style.margin||0)+2.1;we.y-=Le/2,we.height+=Le,r.push({label:M,labelLine:T,position:D,len:O,len2:N,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new de(W,K),linePoints:U,textAlign:Z,labelDistance:L,labelAlignTo:R,edgeDistance:P,bleedMargin:E,rect:we,unconstrainedWidth:we.width,labelStyleWidth:M.style.width})}w.setTextConfig({inside:se})}}),!o&&n.get("avoidLabelOverlap")&&function(b,w,S,M,T,I,C,D){for(var L=[],R=[],P=Number.MAX_VALUE,E=-Number.MAX_VALUE,k=0;k<b.length;k++){var O=b[k].label;Od(b[k])||(O.x<w?(P=Math.min(P,O.x),L.push(b[k])):(E=Math.max(E,O.x),R.push(b[k])))}for(k=0;k<b.length;k++)if(!Od(z=b[k])&&z.linePoints){if(z.labelStyleWidth!=null)continue;O=z.label;var N=z.linePoints,B=void 0;B=z.labelAlignTo==="edge"?O.x<w?N[2][0]-z.labelDistance-C-z.edgeDistance:C+T-z.edgeDistance-N[2][0]-z.labelDistance:z.labelAlignTo==="labelLine"?O.x<w?P-C-z.bleedMargin:C+T-E-z.bleedMargin:O.x<w?O.x-C-z.bleedMargin:C+T-O.x-z.bleedMargin,z.targetTextWidth=B,D_(z,B)}for(A_(R,w,S,M,1,0,I,0,D,E),A_(L,w,S,M,-1,0,I,0,D,P),k=0;k<b.length;k++){var z;if(!Od(z=b[k])&&z.linePoints){O=z.label,N=z.linePoints;var U=z.labelAlignTo==="edge",Z=O.style.padding,F=Z?Z[1]+Z[3]:0,W=O.style.backgroundColor?0:F,K=z.rect.width+W,se=N[1][0]-N[2][0];U?O.x<w?N[2][0]=C+z.edgeDistance+K+z.labelDistance:N[2][0]=C+T-z.edgeDistance-K-z.labelDistance:(O.x<w?N[2][0]=O.x+z.labelDistance:N[2][0]=O.x-z.labelDistance,N[1][0]=N[2][0]+se),N[1][1]=N[2][1]=O.y}}}(r,t,e,l,u,p,h,c);for(var f=0;f<r.length;f++){var g=r[f],y=g.label,v=g.labelLine,m=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),m&&(A(y.states,d),y.ignore=!0);var x=y.states.select;x&&(x.x+=y.x,x.y+=y.y)}if(v){var _=g.linePoints;m||!_?(A(v.states,d),v.ignore=!0):(H1(_,g.minTurnAngle),mA(_,g.surfaceNormal,g.maxSurfaceAngle),v.setShape({points:_}),y.__hostTarget.textGuideLineConfig={anchor:new de(_[0][0],_[0][1])})}}}var KA=function(n){function t(e,i,r){var o=n.call(this)||this;o.z2=2;var a=new ke;return o.setTextContent(a),o.updateData(e,i,r,!0),o}return V(t,n),t.prototype.updateData=function(e,i,r,o){var a=this,s=e.hostModel,l=e.getItemModel(i),u=l.getModel("emphasis"),h=e.getItemLayout(i),c=G(ts(l.getModel("itemStyle"),h,!0),h);if(isNaN(c.startAngle))a.setShape(c);else{if(o){a.setShape(c);var p=s.getShallow("animationType");s.ecModel.ssr?(et(a,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),a.originX=c.cx,a.originY=c.cy):p==="scale"?(a.shape.r=h.r0,et(a,{shape:{r:h.r}},s,i)):r!=null?(a.setShape({startAngle:r,endAngle:r}),et(a,{shape:{startAngle:h.startAngle,endAngle:h.endAngle}},s,i)):(a.shape.endAngle=h.startAngle,ze(a,{shape:{endAngle:h.endAngle}},s,i))}else wa(a),ze(a,{shape:c},s,i);a.useStyle(e.getItemVisual(i,"style")),oi(a,l);var d=(h.startAngle+h.endAngle)/2,f=s.get("selectedOffset"),g=Math.cos(d)*f,y=Math.sin(d)*f,v=l.getShallow("cursor");v&&a.attr("cursor",v),this._updateLabel(s,e,i),a.ensureState("emphasis").shape=G({r:h.r+(u.get("scale")&&u.get("scaleSize")||0)},ts(u.getModel("itemStyle"),h)),G(a.ensureState("select"),{x:g,y,shape:ts(l.getModel(["select","itemStyle"]),h)}),G(a.ensureState("blur"),{shape:ts(l.getModel(["blur","itemStyle"]),h)});var m=a.getTextGuideLine(),x=a.getTextContent();m&&G(m.ensureState("select"),{x:g,y}),G(x.ensureState("select"),{x:g,y}),Bn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))}},t.prototype._updateLabel=function(e,i,r){var o=this,a=i.getItemModel(r),s=a.getModel("labelLine"),l=i.getItemVisual(r,"style"),u=l&&l.fill,h=l&&l.opacity;ai(o,si(a),{labelFetcher:i.hostModel,labelDataIndex:r,inheritColor:u,defaultOpacity:h,defaultText:e.getFormattedLabel(r,"normal")||i.getName(r)});var c=o.getTextContent();o.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var p=e.get(["label","position"]);if(p!=="outside"&&p!=="outer")o.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new wn,this.setTextGuideLine(d)),Y1(this,X1(a),{stroke:u,opacity:vi(s.get(["lineStyle","opacity"]),h,1)})}},t}(nn);const JA=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return V(t,n),t.prototype.render=function(e,i,r,o){var a,s=e.getData(),l=this._data,u=this.group;if(!l&&s.count()>0){for(var h=s.getItemLayout(0),c=1;isNaN(h&&h.startAngle)&&c<s.count();++c)h=s.getItemLayout(c);h&&(a=h.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),s.count()===0&&e.get("showEmptyCircle")){var p=new nn({shape:I_(e,r)});p.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,u.add(p)}s.diff(l).add(function(d){var f=new KA(s,d,a);s.setItemGraphicEl(d,f),u.add(f)}).update(function(d,f){var g=l.getItemGraphicEl(f);g.updateData(s,d,a),g.off("click"),u.add(g),s.setItemGraphicEl(d,g)}).remove(function(d){wl(l.getItemGraphicEl(d),e,d)}).execute(),qA(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=s)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,i){var r=i.getData().getItemLayout(0);if(r){var o=e[0]-r.cx,a=e[1]-r.cy,s=Math.sqrt(o*o+a*a);return s<=r.r&&s>=r.r0}},t.type="pie",t}(at);function Wu(n,t,e){t=Y(t)&&{coordDimensions:t}||G({encodeDefine:n.getEncode()},t);var i=n.getSource(),r=xu(i,t).dimensions,o=new qa(r,n);return o.initData(i,e),o}var $A=function(){function n(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return n.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},n.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},n.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},n.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},n}();const k_=$A;var QA=Ne();const eD=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new k_(ne(this.getData,this),ne(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){n.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Wu(this,{coordDimensions:["value"],encodeDefaulter:ve(zm,this)})},t.prototype.getDataParams=function(e){var i=this.getData(),r=QA(i),o=r.seats;if(!o){var a=[];i.each(i.mapDimension("value"),function(l){a.push(l)}),o=r.seats=vy(a,i.hostModel.get("percentPrecision"))}var s=n.prototype.getDataParams.call(this,e);return s.percent=o[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Js(e,"labelLine",["show"]);var i=e.labelLine,r=e.emphasis.labelLine;i.show=i.show&&e.label.show,r.show=r.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,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}(Mt),tD=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),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}(Te);var Rd=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",nt).models[0]},t.type="cartesian2dAxis",t}(Te);ct(Rd,$a);var L_={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,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},nD=pe({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},L_),Ed=pe({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}}},L_);const P_={category:nD,value:Ed,time:pe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ed),log:le({logBase:10},Ed)};var iD={value:1,category:1,time:1,log:1};function ns(n,t,e,i){A(iD,function(r,o){var a=pe(pe({},P_[o],!0),i,!0),s=function(l){function u(){var h=l!==null&&l.apply(this,arguments)||this;return h.type=t+"Axis."+o,h}return V(u,l),u.prototype.mergeDefaultAndTheme=function(h,c){var p=Da(this),d=p?ka(h):{};pe(h,c.getTheme().get(o+"Axis")),pe(h,this.getDefaultOption()),h.type=O_(h),p&&go(h,d,p)},u.prototype.optionUpdated=function(){this.option.type==="category"&&(this.__ordinalMeta=gd.createByAxisModel(this))},u.prototype.getCategories=function(h){var c=this.option;if(c.type==="category")return h?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+o,u.defaultOption=a,u}(e);n.registerComponentModel(s)}),n.registerSubTypeDefaulter(t+"Axis",O_)}function O_(n){return n.type||(n.data?"category":"value")}var rD=function(){function n(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return n.prototype.getAxis=function(t){return this._axes[t]},n.prototype.getAxes=function(){return X(this._dimList,function(t){return this._axes[t]},this)},n.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),We(this.getAxes(),function(e){return e.scale.type===t})},n.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},n}(),Nd=["x","y"];function R_(n){return n.type==="interval"||n.type==="time"}var oD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Nd,e}return V(t,n),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,i=this.getAxis("y").scale;if(R_(e)&&R_(i)){var r=e.getExtent(),o=i.getExtent(),a=this.dataToPoint([r[0],o[0]]),s=this.dataToPoint([r[1],o[1]]),l=r[1]-r[0],u=o[1]-o[0];if(l&&u){var h=(s[0]-a[0])/l,c=(s[1]-a[1])/u,p=a[0]-r[0]*h,d=a[1]-o[0]*c,f=this._transform=[h,0,0,c,p,d];this._invTransform=ji([],f)}}},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"),r=this.getAxis("y");return i.contain(i.toLocalCoord(e[0]))&&r.contain(r.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 r=this.dataToPoint(e),o=this.dataToPoint(i),a=this.getArea(),s=new ye(r[0],r[1],o[0]-r[0],o[1]-r[1]);return a.intersect(s)},t.prototype.dataToPoint=function(e,i,r){r=r||[];var o=e[0],a=e[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return ot(r,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return r[0]=s.toGlobalCoord(s.dataToCoord(o,i)),r[1]=l.toGlobalCoord(l.dataToCoord(a,i)),r},t.prototype.clampData=function(e,i){var r=this.getAxis("x").scale,o=this.getAxis("y").scale,a=r.getExtent(),s=o.getExtent(),l=r.parse(e[0]),u=o.parse(e[1]);return(i=i||[])[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[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 r=[];if(this._invTransform)return ot(r,e,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return r[0]=o.coordToData(o.toLocalCoord(e[0]),i),r[1]=a.coordToData(a.toLocalCoord(e[1]),i),r},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),r=Math.min(e[0],e[1]),o=Math.min(i[0],i[1]),a=Math.max(e[0],e[1])-r,s=Math.max(i[0],i[1])-o;return new ye(r,o,a,s)},t}(rD),aD=function(n){function t(e,i,r,o,a){var s=n.call(this,e,i,r)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return V(t,n),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}(Xn);const sD=aD;function zd(n,t,e){e=e||{};var i=n.coordinateSystem,r=t.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],p={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get("offset")||0,f=u==="x"?[c[2]-d,c[3]+d]:[c[0]-d,c[1]+d];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[p.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=[u==="y"?f[p[l]]:c[0],u==="x"?f[p[l]]:c[3]],o.rotation=Math.PI/2*(u==="x"?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[p[s]]-f[p.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Yt(e.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-y:y,o.z2=1,o}function E_(n){return n.get("coordinateSystem")==="cartesian2d"}function N_(n){var t={xAxisModel:null,yAxisModel:null};return A(t,function(e,i){var r=i.replace(/Model$/,""),o=n.getReferringComponents(r,nt).models[0];if(!o)throw new Error(r+' "'+vi(n.get(r+"Index"),n.get(r+"Id"),0)+'" not found');t[i]=o}),t}var Bd=Math.log;function z_(n,t,e){var i=Cr.prototype,r=i.getTicks.call(e),o=i.getTicks.call(e,!0),a=r.length-1,s=i.getInterval.call(e),l=m1(n,t),u=l.extent,h=l.fixMin,c=l.fixMax;if(n.type==="log"){var p=Bd(n.base);u=[Bd(u[0])/p,Bd(u[1])/p]}n.setExtent(u[0],u[1]),n.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var d=i.getExtent.call(n);h&&(u[0]=d[0]),c&&(u[1]=d[1]);var f=i.getInterval.call(n),g=u[0],y=u[1];if(h&&c)f=(y-g)/a;else if(h)for(y=u[0]+f*a;y<u[1]&&isFinite(y)&&isFinite(u[1]);)f=vd(f),y=u[0]+f*a;else if(c)for(g=u[1]-f*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)f=vd(f),g=u[1]-f*a;else{n.getTicks().length-1>a&&(f=vd(f));var v=f*a;(g=Xe((y=Math.ceil(u[1]/f)*f)-v))<0&&u[0]>=0?(g=0,y=Xe(v)):y>0&&u[1]<=0&&(y=0,g=-Xe(v))}var m=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(n,g+f*m,y+f*x),i.setInterval.call(n,f),(m||x)&&i.setNiceExtent.call(n,g+f,y-f);var _,b,w,S=i.getTicks.call(n);S[1]&&(_=f,b=Math.pow(10,oa(Math.abs(_))),(w=Math.abs(_/b))!==0&&w!==1&&w!==2&&w!==3&&w!==5||Zs(S[1].value)>Zs(f))&&Je("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}var lD=function(){function n(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Nd,this._initCartesian(t,e,i),this.model=t}return n.prototype.getRect=function(){return this._rect},n.prototype.update=function(t,e){var i=this._axesMap;function r(a){var s,l=Oe(a),u=l.length;if(u){for(var h=[],c=u-1;c>=0;c--){var p=a[+l[c]],d=p.model,f=p.scale;yd(f)&&d.get("alignTicks")&&d.get("interval")==null?h.push(p):(Co(f,d),yd(f)&&(s=p))}h.length&&(s||Co((s=h.pop()).scale,s.model),A(h,function(g){z_(g.scale,g.model,s.scale)}))}}this._updateScale(t,this.model),r(i.x),r(i.y);var o={};A(i.x,function(a){B_(i,"y",a,o)}),A(i.y,function(a){B_(i,"x",a,o)}),this.resize(this.model,e)},n.prototype.resize=function(t,e,i){var r=t.getBoxLayoutParams(),o=!i&&t.get("containLabel"),a=St(r,{width:e.getWidth(),height:e.getHeight()});this._rect=a;var s=this._axesList;function l(){A(s,function(u){var h=u.isHorizontal(),c=h?[0,a.width]:[0,a.height],p=u.inverse?1:0;u.setExtent(c[p],c[1-p]),function(d,f){var g=d.getExtent(),y=g[0]+g[1];d.toGlobalCoord=d.dim==="x"?function(v){return v+f}:function(v){return y-v+f},d.toLocalCoord=d.dim==="x"?function(v){return v-f}:function(v){return y-v+f}}(u,h?a.x:a.y)})}l(),o&&(A(s,function(u){if(!u.model.get(["axisLabel","inside"])){var h=function(d){var f=d.model,g=d.scale;if(f.get(["axisLabel","show"])&&!g.isBlank()){var y,v,m=g.getExtent();v=g instanceof r1?g.count():(y=g.getTicks()).length;var x,_=d.getLabelModel(),b=Ja(d),w=1;v>40&&(w=Math.ceil(v/40));for(var S=0;S<v;S+=w){var M=b(y?y[S]:{value:m[0]+S},S),T=$2(_.getTextRect(M),_.get("rotate")||0);x?x.union(T):x=T}return x}}(u);if(h){var c=u.isHorizontal()?"height":"width",p=u.model.get(["axisLabel","margin"]);a[c]-=h[c]+p,u.position==="top"?a.y+=h.height+p:u.position==="left"&&(a.x+=h.width+p)}}}),l()),A(this._coordsList,function(u){u.calcAffineTransform()})},n.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(i!=null)return i[e||0]},n.prototype.getAxes=function(){return this._axesList.slice()},n.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var i="x"+t+"y"+e;return this._coordsMap[i]}Q(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var r=0,o=this._coordsList;r<o.length;r++)if(o[r].getAxis("x").index===t||o[r].getAxis("y").index===e)return o[r]},n.prototype.getCartesians=function(){return this._coordsList.slice()},n.prototype.convertToPixel=function(t,e,i){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.dataToPoint(i):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(i)):null},n.prototype.convertFromPixel=function(t,e,i){var r=this._findConvertTarget(e);return r.cartesian?r.cartesian.pointToData(i):r.axis?r.axis.coordToData(r.axis.toLocalCoord(i)):null},n.prototype._findConvertTarget=function(t){var e,i,r=t.seriesModel,o=t.xAxisModel||r&&r.getReferringComponents("xAxis",nt).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",nt).models[0],s=t.gridModel,l=this._coordsList;return r?Se(l,e=r.coordinateSystem)<0&&(e=null):o&&a?e=this.getCartesian(o.componentIndex,a.componentIndex):o?i=this.getAxis("x",o.componentIndex):a?i=this.getAxis("y",a.componentIndex):s&&s.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:i}},n.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},n.prototype._initCartesian=function(t,e,i){var r=this,o=this,a={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)return this._axesMap={},void(this._axesList=[]);function u(h){return function(c,p){if(Vd(c,t)){var d=c.get("position");h==="x"?d!=="top"&&d!=="bottom"&&(d=a.bottom?"top":"bottom"):d!=="left"&&d!=="right"&&(d=a.left?"right":"left"),a[d]=!0;var f=new sD(h,Au(c),[0,0],c.get("type"),d),g=f.type==="category";f.onBand=g&&c.get("boundaryGap"),f.inverse=c.get("inverse"),c.axis=f,f.model=c,f.grid=o,f.index=p,o._axesList.push(f),s[h][p]=f,l[h]++}}}this._axesMap=s,A(s.x,function(h,c){A(s.y,function(p,d){var f="x"+c+"y"+d,g=new oD(f);g.master=r,g.model=t,r._coordsMap[f]=g,r._coordsList.push(g),g.addAxis(h),g.addAxis(p)})})},n.prototype._updateScale=function(t,e){function i(r,o){A(Du(r,o.dim),function(a){o.scale.unionExtentFromData(r,a)})}A(this._axesList,function(r){if(r.scale.setExtent(1/0,-1/0),r.type==="category"){var o=r.model.get("categorySortInfo");r.scale.setSortInfo(o)}}),t.eachSeries(function(r){if(E_(r)){var o=N_(r),a=o.xAxisModel,s=o.yAxisModel;if(!Vd(a,e)||!Vd(s,e))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),u=r.getData(),h=l.getAxis("x"),c=l.getAxis("y");i(u,h),i(u,c)}},this)},n.prototype.getTooltipAxes=function(t){var e=[],i=[];return A(this.getCartesians(),function(r){var o=t!=null&&t!=="auto"?r.getAxis(t):r.getBaseAxis(),a=r.getOtherAxis(o);Se(e,o)<0&&e.push(o),Se(i,a)<0&&i.push(a)}),{baseAxes:e,otherAxes:i}},n.create=function(t,e){var i=[];return t.eachComponent("grid",function(r,o){var a=new n(r,t,e);a.name="grid_"+o,a.resize(r,e,!0),r.coordinateSystem=a,i.push(a)}),t.eachSeries(function(r){if(E_(r)){var o=N_(r),a=o.xAxisModel,s=o.yAxisModel,l=a.getCoordSysModel();if(!l)throw new Error('Grid "'+vi(a.get("gridIndex"),a.get("gridId"),0)+'" not found');if(a.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid");var u=l.coordinateSystem;r.coordinateSystem=u.getCartesian(a.componentIndex,s.componentIndex)}}),i},n.dimensions=Nd,n}();function Vd(n,t){return n.getCoordSysModel()===t}function B_(n,t,e,i){e.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=n[t],a=e.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(l!=null)V_(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&V_(o[u])&&!i[h(o[u])]){r=o[u];break}r&&(i[h(r)]=!0)}function h(c){return c.dim+"_"+c.index}}function V_(n){return n&&n.type!=="category"&&n.type!=="time"&&function(t){var e=t.scale.getExtent(),i=e[0],r=e[1];return!(i>0&&r>0||i<0&&r<0)}(n)}const uD=lD;var Ni=Math.PI,kr=function(){function n(t,e){this.group=new fe,this.opt=e,this.axisModel=t,le(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new fe({x:e.position[0],y:e.position[1],rotation:e.rotation});i.updateTransform(),this._transformGroup=i}return n.prototype.hasBuilder=function(t){return!!F_[t]},n.prototype.add=function(t){F_[t](this.opt,this.axisModel,this.group,this._transformGroup)},n.prototype.getGroup=function(){return this.group},n.innerTextLayout=function(t,e,i){var r,o,a=pc(e-t);return ra(a)?(o=i>0?"top":"bottom",r="center"):ra(a-Ni)?(o=i>0?"bottom":"top",r="center"):(o="middle",r=a>0&&a<Ni?i>0?"right":"left":i>0?"left":"right"),{rotation:a,textAlign:r,textVerticalAlign:o}},n.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},n.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},n}(),F_={axisLine:function(n,t,e,i){var r=t.get(["axisLine","show"]);if(r==="auto"&&n.handleAutoShown&&(r=n.handleAutoShown("axisLine")),r){var o=t.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(ot(s,s,a),ot(l,l,a));var h=G({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new wt({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:n.strokeContainThreshold||5,silent:!0,z2:1});ba(c.shape,c.style.lineWidth),c.anid="line",e.add(c);var p=t.get(["axisLine","symbol"]);if(p!=null){var d=t.get(["axisLine","symbolSize"]);q(p)&&(p=[p,p]),(q(d)||Re(d))&&(d=[d,d]);var f=Gp(t.get(["axisLine","symbolOffset"])||0,d),g=d[0],y=d[1];A([{rotate:n.rotation+Math.PI/2,offset:f[0],r:0},{rotate:n.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(v,m){if(p[m]!=="none"&&p[m]!=null){var x=ut(p[m],-g/2,-y/2,g,y,h.stroke,!0),_=v.r+v.offset,b=u?l:s;x.attr({rotation:v.rotate,x:b[0]+_*Math.cos(n.rotation),y:b[1]-_*Math.sin(n.rotation),silent:!0,z2:11}),e.add(x)}})}}},axisTickLabel:function(n,t,e,i){var r=function(a,s,l,u){var h=l.axis,c=l.getModel("axisTick"),p=c.get("show");if(p==="auto"&&u.handleAutoShown&&(p=u.handleAutoShown("axisTick")),!(!p||h.scale.isBlank())){for(var d=c.getModel("lineStyle"),f=u.tickDirection*c.get("length"),g=W_(h.getTicksCoords(),s.transform,f,le(d.getLineStyle(),{stroke:l.get(["axisLine","lineStyle","color"])}),"ticks"),y=0;y<g.length;y++)a.add(g[y]);return g}}(e,i,t,n),o=function(a,s,l,u){var h=l.axis,c=Yt(u.axisLabelShow,l.get(["axisLabel","show"]));if(!(!c||h.scale.isBlank())){var p=l.getModel("axisLabel"),d=p.get("margin"),f=h.getViewLabels(),g=(Yt(u.labelRotate,p.get("rotate"))||0)*Ni/180,y=kr.innerTextLayout(u.rotation,g,u.labelDirection),v=l.getCategories&&l.getCategories(!0),m=[],x=kr.isLabelSilent(l),_=l.get("triggerEvent");return A(f,function(b,w){var S=h.scale.type==="ordinal"?h.scale.getRawOrdinalNumber(b.tickValue):b.tickValue,M=b.formattedLabel,T=b.rawLabel,I=p;if(v&&v[S]){var C=v[S];Q(C)&&C.textStyle&&(I=new He(C.textStyle,p,l.ecModel))}var D=I.getTextColor()||l.get(["axisLine","lineStyle","color"]),L=h.dataToCoord(S),R=new ke({x:L,y:u.labelOffset+u.labelDirection*d,rotation:y.rotation,silent:x,z2:10+(b.level||0),style:it(I,{text:M,align:I.getShallow("align",!0)||y.textAlign,verticalAlign:I.getShallow("verticalAlign",!0)||I.getShallow("baseline",!0)||y.textVerticalAlign,fill:ae(D)?D(h.type==="category"?T:h.type==="value"?S+"":S,w):D})});if(R.anid="label_"+S,_){var P=kr.makeAxisEventDataBase(l);P.targetType="axisLabel",P.value=T,P.tickIndex=w,h.type==="category"&&(P.dataIndex=S),_e(R).eventData=P}s.add(R),R.updateTransform(),m.push(R),a.add(R),R.decomposeTransform()}),m}}(e,i,t,n);(function(a,s,l){if(!x1(a.axis)){var u=a.get(["axisLabel","showMinLabel"]),h=a.get(["axisLabel","showMaxLabel"]);s=s||[],l=l||[];var c=s[0],p=s[1],d=s[s.length-1],f=s[s.length-2],g=l[0],y=l[1],v=l[l.length-1],m=l[l.length-2];u===!1?(cn(c),cn(g)):G_(c,p)&&(u?(cn(p),cn(y)):(cn(c),cn(g))),h===!1?(cn(d),cn(v)):G_(f,d)&&(h?(cn(f),cn(m)):(cn(d),cn(v)))}})(t,o,r),function(a,s,l,u){var h=l.axis,c=l.getModel("minorTick");if(!(!c.get("show")||h.scale.isBlank())){var p=h.getMinorTicksCoords();if(p.length)for(var d=c.getModel("lineStyle"),f=u*c.get("length"),g=le(d.getLineStyle(),le(l.getModel("axisTick").getLineStyle(),{stroke:l.get(["axisLine","lineStyle","color"])})),y=0;y<p.length;y++)for(var v=W_(p[y],s.transform,f,g,"minorticks_"+y),m=0;m<v.length;m++)a.add(v[m])}}(e,i,t,n.tickDirection),t.get(["axisLabel","hideOverlap"])&&q1(U1(X(o,function(a){return{label:a,priority:a.z2,defaultAttr:{ignore:a.ignore}}})))},axisName:function(n,t,e,i){var r=Yt(n.axisName,t.get("name"));if(r){var o,a,s=t.get("nameLocation"),l=n.nameDirection,u=t.getModel("nameTextStyle"),h=t.get("nameGap")||0,c=t.axis.getExtent(),p=c[0]>c[1]?-1:1,d=[s==="start"?c[0]-p*h:s==="end"?c[1]+p*h:(c[0]+c[1])/2,H_(s)?n.labelOffset+l*h:0],f=t.get("nameRotate");f!=null&&(f=f*Ni/180),H_(s)?o=kr.innerTextLayout(n.rotation,f??n.rotation,l):(o=function(b,w,S,M){var T,I,C=pc(S-b),D=M[0]>M[1],L=w==="start"&&!D||w!=="start"&&D;return ra(C-Ni/2)?(I=L?"bottom":"top",T="center"):ra(C-1.5*Ni)?(I=L?"top":"bottom",T="center"):(I="middle",T=C<1.5*Ni&&C>Ni/2?L?"left":"right":L?"right":"left"),{rotation:C,textAlign:T,textVerticalAlign:I}}(n.rotation,s,f||0,c),(a=n.axisNameAvailableWidth)!=null&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),y=t.get("nameTruncate",!0)||{},v=y.ellipsis,m=Yt(n.nameTruncateMaxWidth,y.maxWidth,a),x=new ke({x:d[0],y:d[1],rotation:o.rotation,silent:kr.isLabelSilent(t),style:it(u,{text:r,font:g,overflow:"truncate",width:m,ellipsis:v,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Ma({el:x,componentModel:t,itemName:r}),x.__fullText=r,x.anid="name",t.get("triggerEvent")){var _=kr.makeAxisEventDataBase(t);_.targetType="axisName",_.name=r,_e(x).eventData=_}i.add(x),x.updateTransform(),e.add(x),x.decomposeTransform()}}};function cn(n){n&&(n.ignore=!0)}function G_(n,t){var e=n&&n.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(e&&i){var r=Yo([]);return Zi(r,r,-n.rotation),e.applyTransform(kn([],r,n.getLocalTransform())),i.applyTransform(kn([],r,t.getLocalTransform())),e.intersect(i)}}function H_(n){return n==="middle"||n==="center"}function W_(n,t,e,i,r){for(var o=[],a=[],s=[],l=0;l<n.length;l++){var u=n[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=e,t&&(ot(a,a,t),ot(s,s,t));var h=new wt({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});ba(h.shape,h.style.lineWidth),h.anid=r+"_"+n[l].tickValue,o.push(h)}return o}const zi=kr;function hD(n,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(i,r,o){var a=r.getComponent("tooltip"),s=r.getComponent("axisPointer"),l=s.get("link",!0)||[],u=[];A(o.getCoordinateSystems(),function(h){if(h.axisPointerEnabled){var c=is(h.model),p=i.coordSysAxesInfo[c]={};i.coordSysMap[c]=h;var d=h.model.getModel("tooltip",a);if(A(h.getAxes(),ve(v,!1,null)),h.getTooltipAxes&&a&&d.get("show")){var f=d.get("trigger")==="axis",g=d.get(["axisPointer","type"])==="cross",y=h.getTooltipAxes(d.get(["axisPointer","axis"]));(f||g)&&A(y.baseAxes,ve(v,!g||"cross",f)),g&&A(y.otherAxes,ve(v,"cross",!1))}}function v(m,x,_){var b=_.model.getModel("axisPointer",s),w=b.get("show");if(w&&(w!=="auto"||m||Hd(b))){x==null&&(x=b.get("triggerTooltip")),b=m?function(R,P,E,k,O,N){var B=P.getModel("axisPointer"),z={};A(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(W){z[W]=oe(B.get(W))}),z.snap=R.type!=="category"&&!!N,B.get("type")==="cross"&&(z.type="line");var U=z.label||(z.label={});if(U.show==null&&(U.show=!1),O==="cross"){var Z=B.get(["label","show"]);if(U.show=Z==null||Z,!N){var F=z.lineStyle=B.get("crossStyle");F&&le(U,F.textStyle)}}return R.model.getModel("axisPointer",new He(z,E,k))}(_,d,s,r,m,x):b;var S=b.get("snap"),M=b.get("triggerEmphasis"),T=is(_.model),I=x||S||_.type==="category",C=i.axesInfo[T]={key:T,axis:_,coordSys:h,axisPointerModel:b,triggerTooltip:x,triggerEmphasis:M,involveSeries:I,snap:S,useHandle:Hd(b),seriesModels:[],linkGroup:null};p[T]=C,i.seriesInvolved=i.seriesInvolved||I;var D=function(R,P){for(var E=P.model,k=P.dim,O=0;O<R.length;O++){var N=R[O]||{};if(Fd(N[k+"AxisId"],E.id)||Fd(N[k+"AxisIndex"],E.componentIndex)||Fd(N[k+"AxisName"],E.name))return O}}(l,_);if(D!=null){var L=u[D]||(u[D]={axesInfo:{}});L.axesInfo[T]=C,L.mapper=l[D].mapper,C.linkGroup=L}}}})}(e,n,t),e.seriesInvolved&&function(i,r){r.eachSeries(function(o){var a=o.coordinateSystem,s=o.get(["tooltip","trigger"],!0),l=o.get(["tooltip","show"],!0);a&&s!=="none"&&s!==!1&&s!=="item"&&l!==!1&&o.get(["axisPointer","show"],!0)!==!1&&A(i.coordSysAxesInfo[is(a.model)],function(u){var h=u.axis;a.getAxis(h.dim)===h&&(u.seriesModels.push(o),u.seriesDataCount==null&&(u.seriesDataCount=0),u.seriesDataCount+=o.getData().count())})})}(e,n),e}function Fd(n,t){return n==="all"||Y(n)&&Se(n,t)>=0||n===t}function Gd(n){var t=(n.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[is(n)]}function Hd(n){return!!n.get(["handle","show"])}function is(n){return n.type+"||"+n.id}var Wd={},cD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r,o){this.axisPointerClass&&function(a){var s=Gd(a);if(s){var l=s.axisPointerModel,u=s.axis.scale,h=l.option,c=l.get("status"),p=l.get("value");p!=null&&(p=u.parse(p));var d=Hd(l);c==null&&(h.status=d?"show":"hide");var f=u.getExtent().slice();f[0]>f[1]&&f.reverse(),(p==null||p>f[1])&&(p=f[1]),p<f[0]&&(p=f[0]),h.value=p,d&&(h.status=s.axis.scale.isBlank()?"hide":"show")}}(e),n.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,r,!0)},t.prototype.updateAxisPointer=function(e,i,r,o){this._doUpdateAxisPointerClass(e,r,!1)},t.prototype.remove=function(e,i){var r=this._axisPointer;r&&r.remove(i)},t.prototype.dispose=function(e,i){this._disposeAxisPointer(i),n.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,i,r){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=function(s){var l=Gd(s);return l&&l.axisPointerModel}(e);a?(this._axisPointer||(this._axisPointer=new o)).render(e,a,i,r):this._disposeAxisPointer(i)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,i){if(Wd[e])throw new Error("axisPointer "+e+" exists");Wd[e]=i},t.getAxisPointerClass=function(e){return e&&Wd[e]},t.type="axis",t}(je);const rs=cD;var Yd=Ne(),pD=["axisLine","axisTickLabel","axisName"],dD=["splitArea","splitLine","minorSplitLine"],Y_=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return V(t,n),t.prototype.render=function(e,i,r,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new fe,this.group.add(this._axisGroup),e.get("show")){var s=e.getCoordSysModel(),l=zd(s,e),u=new zi(e,G({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),p=0;p<c.length;p++)if(yd(c[p].getOtherAxis(e.axis).scale))return!0;return!1}},l));A(pD,u.add,u),this._axisGroup.add(u.getGroup()),A(dD,function(h){e.get([h,"show"])&&fD[h](this,this._axisGroup,e,s)},this),o&&o.type==="changeAxisOrder"&&o.isInitSort||Il(a,this._axisGroup,e),n.prototype.render.call(this,e,i,r,o)}},t.prototype.remove=function(){Yd(this).splitAreaColors=null},t.type="cartesianAxis",t}(rs),fD={splitLine:function(n,t,e,i){var r=e.axis;if(!r.scale.isBlank()){var o=e.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=Y(s)?s:[s];for(var l=i.coordinateSystem.getRect(),u=r.isHorizontal(),h=0,c=r.getTicksCoords({tickModel:o}),p=[],d=[],f=a.getLineStyle(),g=0;g<c.length;g++){var y=r.toGlobalCoord(c[g].coord);u?(p[0]=y,p[1]=l.y,d[0]=y,d[1]=l.y+l.height):(p[0]=l.x,p[1]=y,d[0]=l.x+l.width,d[1]=y);var v=h++%s.length,m=c[g].tickValue,x=new wt({anid:m!=null?"line_"+c[g].tickValue:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:le({stroke:s[v]},f),silent:!0});ba(x.shape,f.lineWidth),t.add(x)}}},minorSplitLine:function(n,t,e,i){var r=e.axis,o=e.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=r.isHorizontal(),l=r.getMinorTicksCoords();if(l.length)for(var u=[],h=[],c=o.getLineStyle(),p=0;p<l.length;p++)for(var d=0;d<l[p].length;d++){var f=r.toGlobalCoord(l[p][d].coord);s?(u[0]=f,u[1]=a.y,h[0]=f,h[1]=a.y+a.height):(u[0]=a.x,u[1]=f,h[0]=a.x+a.width,h[1]=f);var g=new wt({anid:"minor_line_"+l[p][d].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:c,silent:!0});ba(g.shape,c.lineWidth),t.add(g)}},splitArea:function(n,t,e,i){(function(r,o,a,s){var l=a.axis;if(!l.scale.isBlank()){var u=a.getModel("splitArea"),h=u.getModel("areaStyle"),c=h.get("color"),p=s.coordinateSystem.getRect(),d=l.getTicksCoords({tickModel:u,clamp:!0});if(d.length){var f=c.length,g=Yd(r).splitAreaColors,y=ie(),v=0;if(g)for(var m=0;m<d.length;m++){var x=g.get(d[m].tickValue);if(x!=null){v=(x+(f-1)*m)%f;break}}var _=l.toGlobalCoord(d[0].coord),b=h.getAreaStyle();for(c=Y(c)?c:[c],m=1;m<d.length;m++){var w=l.toGlobalCoord(d[m].coord),S=void 0,M=void 0,T=void 0,I=void 0;l.isHorizontal()?(S=_,M=p.y,T=w-S,I=p.height,_=S+T):(S=p.x,M=_,T=p.width,_=M+(I=w-M));var C=d[m-1].tickValue;C!=null&&y.set(C,v),o.add(new Ie({anid:C!=null?"area_"+C:null,shape:{x:S,y:M,width:T,height:I},style:le({fill:c[v]},b),autoBatch:!0,silent:!0})),v=(v+1)%f}Yd(r).splitAreaColors=y}}})(n,t,e,i)}},X_=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="xAxis",t}(Y_),gD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=X_.type,e}return V(t,n),t.type="yAxis",t}(Y_),yD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="grid",e}return V(t,n),t.prototype.render=function(e,i){this.group.removeAll(),e.get("show")&&this.group.add(new Ie({shape:e.coordinateSystem.getRect(),style:le({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(je),U_={offset:0};function vD(n){n.registerComponentView(yD),n.registerComponentModel(tD),n.registerCoordinateSystem("cartesian2d",uD),ns(n,"x",Rd,U_),ns(n,"y",Rd,U_),n.registerComponentView(X_),n.registerComponentView(gD),n.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function mD(n){n.eachSeriesByType("radar",function(t){var e=t.getData(),i=[],r=t.coordinateSystem;if(r){var o=r.getIndicatorAxes();A(o,function(a,s){e.each(e.mapDimension(o[s].dim),function(l,u){i[u]=i[u]||[];var h=r.dataToPoint(l,s);i[u][s]=Z_(h)?h:j_(r)})}),e.each(function(a){var s=pg(i[a],function(l){return Z_(l)})||j_(r);i[a].push(s.slice()),e.setItemLayout(a,i[a])})}})}function Z_(n){return!isNaN(n[0])&&!isNaN(n[1])}function j_(n){return[n.cx,n.cy]}function xD(n){var t=n.polar;if(t){Y(t)||(t=[t]);var e=[];A(t,function(i,r){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),n.radar=n.radar||[],Y(n.radar)||(n.radar=[n.radar]),n.radar.push(i)):e.push(i)}),n.polar=e}A(n.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var _D=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){var o=e.coordinateSystem,a=this.group,s=e.getData(),l=this._data;function u(p,d){var f=p.getItemVisual(d,"symbol")||"circle";if(f!=="none"){var g=nx(p.getItemVisual(d,"symbolSize")),y=ut(f,-1,-1,2,2),v=p.getItemVisual(d,"symbolRotate")||0;return y.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:v*Math.PI/180||0}),y}}function h(p,d,f,g,y,v){f.removeAll();for(var m=0;m<d.length-1;m++){var x=u(g,y);x&&(x.__dimIdx=m,p[m]?(x.setPosition(p[m]),Al[v?"initProps":"updateProps"](x,{x:d[m][0],y:d[m][1]},e,y)):x.setPosition(d[m]),f.add(x))}}function c(p){return X(p,function(d){return[o.cx,o.cy]})}s.diff(l).add(function(p){var d=s.getItemLayout(p);if(d){var f=new Fn,g=new wn,y={shape:{points:d}};f.shape.points=c(d),g.shape.points=c(d),et(f,y,e,p),et(g,y,e,p);var v=new fe,m=new fe;v.add(g),v.add(f),v.add(m),h(g.shape.points,d,m,s,p,!0),s.setItemGraphicEl(p,v)}}).update(function(p,d){var f=l.getItemGraphicEl(d),g=f.childAt(0),y=f.childAt(1),v=f.childAt(2),m={shape:{points:s.getItemLayout(p)}};m.shape.points&&(h(g.shape.points,m.shape.points,v,s,p,!1),wa(y),wa(g),ze(g,m,e),ze(y,m,e),s.setItemGraphicEl(p,f))}).remove(function(p){a.remove(l.getItemGraphicEl(p))}).execute(),s.eachItemGraphicEl(function(p,d){var f=s.getItemModel(d),g=p.childAt(0),y=p.childAt(1),v=p.childAt(2),m=s.getItemVisual(d,"style"),x=m.fill;a.add(p),g.useStyle(le(f.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),oi(g,f,"lineStyle"),oi(y,f,"areaStyle");var _=f.getModel("areaStyle"),b=_.isEmpty()&&_.parentModel.isEmpty();y.ignore=b,A(["emphasis","select","blur"],function(M){var T=f.getModel([M,"areaStyle"]),I=T.isEmpty()&&T.parentModel.isEmpty();y.ensureState(M).ignore=I&&b}),y.useStyle(le(_.getAreaStyle(),{fill:x,opacity:.7,decal:m.decal}));var w=f.getModel("emphasis"),S=w.getModel("itemStyle").getItemStyle();v.eachChild(function(M){if(M instanceof Gt){var T=M.style;M.useStyle(G({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},m))}else M.useStyle(m),M.setColor(x),M.style.strokeNoScale=!0;M.ensureState("emphasis").style=oe(S);var I=s.getStore().get(s.getDimensionIndex(M.__dimIdx),d);(I==null||isNaN(I))&&(I=""),ai(M,si(f),{labelFetcher:s.hostModel,labelDataIndex:d,labelDimIndex:M.__dimIdx,defaultText:I,inheritColor:x,defaultOpacity:m.opacity})}),Bn(p,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(at);const wD=_D;var bD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return V(t,n),t.prototype.init=function(e){n.prototype.init.apply(this,arguments),this.legendVisualProvider=new k_(ne(this.getData,this),ne(this.getRawData,this))},t.prototype.getInitialData=function(e,i){return Wu(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,i,r){var o=this.getData(),a=this.coordinateSystem.getIndicatorAxes(),s=this.getData().getName(e),l=s===""?this.name:s,u=L0(this,e);return Yn("section",{header:l,sortBlocks:!0,blocks:X(a,function(h){var c=o.get(o.mapDimension(h.dim),e);return Yn("nameValue",{markerType:"subItem",markerColor:u,name:h.name,value:c,sortParam:c})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var i=this.getData(),r=this.coordinateSystem,o=i.getValues(X(r.dimensions,function(u){return i.mapDimension(u)}),e),a=0,s=o.length;a<s;a++)if(!isNaN(o[a])){var l=r.getIndicatorAxes();return r.coordToPoint(l[a].dataToCoord(o[a]),a)}}},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}(Mt);const SD=bD;var os=P_.value;function Yu(n,t){return le({show:t},n)}var MD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),i=this.get("splitNumber"),r=this.get("scale"),o=this.get("axisLine"),a=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),h=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),p=this.get("triggerEvent"),d=X(this.get("indicator")||[],function(f){f.max!=null&&f.max>0&&!f.min?f.min=0:f.min!=null&&f.min<0&&!f.max&&(f.max=0);var g=l;f.color!=null&&(g=le({color:f.color},l));var y=pe(oe(f),{boundaryGap:e,splitNumber:i,scale:r,axisLine:o,axisTick:a,axisLabel:s,name:f.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:g,triggerEvent:p},!1);if(q(h)){var v=y.name;y.name=h.replace("{value}",v??"")}else ae(h)&&(y.name=h(y.name,y));var m=new He(y,null,this.ecModel);return ct(m,$a.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=d},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:pe({lineStyle:{color:"#bbb"}},os.axisLine),axisLabel:Yu(os.axisLabel,!1),axisTick:Yu(os.axisTick,!1),splitLine:Yu(os.splitLine,!0),splitArea:Yu(os.splitArea,!0),indicator:[]},t}(Te);const TD=MD;var ID=["axisLine","axisTickLabel","axisName"],CD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var i=e.coordinateSystem;A(X(i.getIndicatorAxes(),function(r){var o=r.model.get("showName")?r.name:"";return new zi(r.model,{axisName:o,position:[i.cx,i.cy],rotation:r.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(r){A(ID,r.add,r),this.group.add(r.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var i=e.coordinateSystem,r=i.getIndicatorAxes();if(r.length){var o=e.get("shape"),a=e.getModel("splitLine"),s=e.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),h=a.get("show"),c=s.get("show"),p=l.get("color"),d=u.get("color"),f=Y(p)?p:[p],g=Y(d)?d:[d],y=[],v=[];if(o==="circle")for(var m=r[0].getTicksCoords(),x=i.cx,_=i.cy,b=0;b<m.length;b++)h&&y[L(y,f,b)].push(new xn({shape:{cx:x,cy:_,r:m[b].coord}})),c&&b<m.length-1&&v[L(v,g,b)].push(new xa({shape:{cx:x,cy:_,r0:m[b].coord,r:m[b+1].coord}}));else{var w,S=X(r,function(R,P){var E=R.getTicksCoords();return w=w==null?E.length-1:Math.min(E.length-1,w),X(E,function(k){return i.coordToPoint(k.coord,P)})}),M=[];for(b=0;b<=w;b++){for(var T=[],I=0;I<r.length;I++)T.push(S[I][b]);T[0]?T.push(T[0].slice()):console.error("Can't draw value axis "+b),h&&y[L(y,f,b)].push(new wn({shape:{points:T}})),c&&M&&v[L(v,g,b-1)].push(new Fn({shape:{points:T.concat(M)}})),M=T.slice().reverse()}}var C=l.getLineStyle(),D=u.getAreaStyle();A(v,function(R,P){this.group.add(on(R,{style:le({stroke:"none",fill:g[P%g.length]},D),silent:!0}))},this),A(y,function(R,P){this.group.add(on(R,{style:le({fill:"none",stroke:f[P%f.length]},C),silent:!0}))},this)}function L(R,P,E){var k=E%P.length;return R[k]=R[k]||[],k}},t.type="radar",t}(je);const AD=CD;var DD=function(n){function t(e,i,r){var o=n.call(this,e,i,r)||this;return o.type="value",o.angle=0,o.name="",o}return V(t,n),t}(Xn);const kD=DD;var LD=function(){function n(t,e,i){this.dimensions=[],this._model=t,this._indicatorAxes=X(t.getIndicatorModels(),function(r,o){var a="indicator_"+o,s=new kD(a,new Cr);return s.name=r.get("name"),s.model=r,r.axis=s,this.dimensions.push(a),s},this),this.resize(t,i)}return n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(t,e){var i=this._indicatorAxes[e];return this.coordToPoint(i.dataToCoord(t),e)},n.prototype.coordToPoint=function(t,e){var i=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(i),this.cy-t*Math.sin(i)]},n.prototype.pointToData=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,r=Math.sqrt(e*e+i*i);e/=r,i/=r;for(var o,a=Math.atan2(-i,e),s=1/0,l=-1,u=0;u<this._indicatorAxes.length;u++){var h=this._indicatorAxes[u],c=Math.abs(a-h.angle);c<s&&(o=h,l=u,s=c)}return[l,+(o&&o.coordToData(r))]},n.prototype.resize=function(t,e){var i=t.get("center"),r=e.getWidth(),o=e.getHeight(),a=Math.min(r,o)/2;this.cx=ee(i[0],r),this.cy=ee(i[1],o),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(q(s)||Re(s))&&(s=[0,s]),this.r0=ee(s[0],a),this.r=ee(s[1],a),A(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var h=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;h=Math.atan2(Math.sin(h),Math.cos(h)),l.angle=h},this)},n.prototype.update=function(t,e){var i=this._indicatorAxes,r=this._model;A(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"))===r){var u=s.getData();A(i,function(h){h.scale.unionExtentFromData(u,u.mapDimension(h.dim))})}},this);var o=r.get("splitNumber"),a=new Cr;a.setExtent(0,o),a.setInterval(1),A(i,function(s,l){z_(s.scale,s.model,a)})},n.prototype.convertToPixel=function(t,e,i){return console.warn("Not implemented."),null},n.prototype.convertFromPixel=function(t,e,i){return console.warn("Not implemented."),null},n.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},n.create=function(t,e){var i=[];return t.eachComponent("radar",function(r){var o=new n(r,t,e);i.push(o),r.coordinateSystem=o}),t.eachSeriesByType("radar",function(r){r.get("coordinateSystem")==="radar"&&(r.coordinateSystem=i[r.get("radarIndex")||0])}),i},n.dimensions=[],n}();const PD=LD;function OD(n){n.registerCoordinateSystem("radar",PD),n.registerComponentModel(TD),n.registerComponentView(AD),n.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(i){e.setItemVisual(i,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}var q_="\0_ec_interaction_mutex";function K_(n,t){return!!Xd(n)[t]}function Xd(n){return n[q_]||(n[q_]={})}Mn({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},st);var RD=function(n){function t(e){var i=n.call(this)||this;i._zr=e;var r=ne(i._mousedownHandler,i),o=ne(i._mousemoveHandler,i),a=ne(i._mouseupHandler,i),s=ne(i._mousewheelHandler,i),l=ne(i._pinchHandler,i);return i.enable=function(u,h){this.disable(),this._opt=le(oe(h)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),u!==!0&&u!=="move"&&u!=="pan"||(e.on("mousedown",r),e.on("mousemove",o),e.on("mouseup",a)),u!==!0&&u!=="scale"&&u!=="zoom"||(e.on("mousewheel",s),e.on("pinch",l))},i.disable=function(){e.off("mousedown",r),e.off("mousemove",o),e.off("mouseup",a),e.off("mousewheel",s),e.off("pinch",l)},i}return V(t,n),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(!Ag(e)){for(var i=e.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var r=e.offsetX,o=e.offsetY;this.pointerChecker&&this.pointerChecker(e,r,o)&&(this._x=r,this._y=o,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){if(this._dragging&&Xu("moveOnMouseMove",e,this._opt)&&e.gestureEvent!=="pinch"&&!K_(this._zr,"globalPan")){var i=e.offsetX,r=e.offsetY,o=this._x,a=this._y,s=i-o,l=r-a;this._x=i,this._y=r,this._opt.preventDefaultMouseMove&&$n(e.event),J_(this,"pan","moveOnMouseMove",e,{dx:s,dy:l,oldX:o,oldY:a,newX:i,newY:r,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){Ag(e)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(e){var i=Xu("zoomOnMouseWheel",e,this._opt),r=Xu("moveOnMouseWheel",e,this._opt),o=e.wheelDelta,a=Math.abs(o),s=e.offsetX,l=e.offsetY;if(o!==0&&(i||r)){if(i){var u=a>3?1.4:a>1?1.2:1.1;Ud(this,"zoom","zoomOnMouseWheel",e,{scale:o>0?u:1/u,originX:s,originY:l,isAvailableBehavior:null})}if(r){var h=Math.abs(o);Ud(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(o>0?1:-1)*(h>3?.4:h>1?.15:.05),originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){K_(this._zr,"globalPan")||Ud(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(Zt);function Ud(n,t,e,i,r){n.pointerChecker&&n.pointerChecker(i,r.originX,r.originY)&&($n(i.event),J_(n,t,e,i,r))}function J_(n,t,e,i,r){r.isAvailableBehavior=ne(Xu,null,e,i),n.trigger(t,r)}function Xu(n,t,e){var i=e[n];return!n||i&&(!q(i)||t.event[i+"Key"])}const Zd=RD;function $_(n,t,e){var i=n.target;i.x+=t,i.y+=e,i.dirty()}function Q_(n,t,e,i){var r=n.target,o=n.zoomLimit,a=n.zoom=n.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/n.zoom;n.zoom=a,r.x-=(e-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var jd,ED={axisPointer:1,tooltip:1,brush:1};function qd(n,t,e){var i=t.getComponentByElement(n.topTarget),r=i&&i.coordinateSystem;return i&&i!==e&&!ED.hasOwnProperty(i.mainType)&&r&&r.model!==e}function ew(n){q(n)&&(n=new DOMParser().parseFromString(n,"text/xml"));var t=n;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var Uu={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"},tw=Oe(Uu),Zu={"alignment-baseline":"textBaseline","stop-color":"stopColor"},nw=Oe(Zu),ND=function(){function n(){this._defs={},this._root=null}return n.prototype.parse=function(t,e){e=e||{};var i=ew(t);if(!i)throw new Error("Illegal svg");this._defsUsePending=[];var r=new fe;this._root=r;var o=[],a=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),Wt(i,r,null,!0,!1);for(var u,h,c=i.firstChild;c;)this._parseNode(c,r,o,null,!1,!1),c=c.nextSibling;if(function(f,g){for(var y=0;y<g.length;y++){var v=g[y];v[0].style[v[1]]=f[v[2]]}}(this._defs,this._defsUsePending),this._defsUsePending=[],a){var p=ju(a);p.length>=4&&(u={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(u&&s!=null&&l!=null&&(h=hw(u,{x:0,y:0,width:s,height:l}),!e.ignoreViewBox)){var d=r;(r=new fe).add(d),d.scaleX=d.scaleY=h.scale,d.x=h.x,d.y=h.y}return e.ignoreRootClip||s==null||l==null||r.setClipPath(new Ie({shape:{x:0,y:0,width:s,height:l}})),{root:r,width:s,height:l,viewBoxRect:u,viewBoxTransform:h,named:o}},n.prototype._parseNode=function(t,e,i,r,o,a){var s,l=t.nodeName.toLowerCase(),u=r;if(l==="defs"&&(o=!0),l==="text"&&(a=!0),l==="defs"||l==="switch")s=e;else{if(!o){var h=jd[l];if(h&&Ut(jd,l)){s=h.call(this,t,e);var c=t.getAttribute("name");if(c){var p={name:c,namedFrom:null,svgNodeTagLower:l,el:s};i.push(p),l==="g"&&(u=p)}else r&&i.push({name:r.name,namedFrom:r,svgNodeTagLower:l,el:s});e.add(s)}}var d=iw[l];if(d&&Ut(iw,l)){var f=d.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=f)}}if(s&&s.isGroup)for(var y=t.firstChild;y;)y.nodeType===1?this._parseNode(y,s,i,u,o,a):y.nodeType===3&&a&&this._parseText(y,s),y=y.nextSibling},n.prototype._parseText=function(t,e){var i=new rl({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),function(l,u){var h=u.__selfStyle;if(h){var c=h.textBaseline,p=c;c&&c!=="auto"?c==="baseline"?p="alphabetic":c==="before-edge"||c==="text-before-edge"?p="top":c==="after-edge"||c==="text-after-edge"?p="bottom":c!=="central"&&c!=="mathematical"||(p="middle"):p="alphabetic",l.style.textBaseline=p}var d=u.__inheritedStyle;if(d){var f=d.textAlign,g=f;f&&(f==="middle"&&(g="center"),l.style.textAlign=g)}}(i,e);var r=i.style,o=r.fontSize;o&&o<9&&(r.fontSize=9,i.scaleX*=o/9,i.scaleY*=o/9);var a=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=a;var s=i.getBoundingRect();return this._textX+=s.width,e.add(i),i},n.internalField=void(jd={g:function(t,e){var i=new fe;return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i},rect:function(t,e){var i=new Ie;return pn(e,i),Wt(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 xn;return pn(e,i),Wt(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 wt;return pn(e,i),Wt(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 fl;return pn(e,i),Wt(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,r=t.getAttribute("points");r&&(i=aw(r));var o=new Fn({shape:{points:i||[]},silent:!0});return pn(e,o),Wt(t,o,this._defsUsePending,!1,!1),o},polyline:function(t,e){var i,r=t.getAttribute("points");r&&(i=aw(r));var o=new wn({shape:{points:i||[]},silent:!0});return pn(e,o),Wt(t,o,this._defsUsePending,!1,!1),o},image:function(t,e){var i=new Gt;return pn(e,i),Wt(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",r=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(o),this._textY=parseFloat(r)+parseFloat(a);var s=new fe;return pn(e,s),Wt(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var i=t.getAttribute("x"),r=t.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),r!=null&&(this._textY=parseFloat(r));var o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",s=new fe;return pn(e,s),Wt(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(a),s},path:function(t,e){var i=Nv(t.getAttribute("d")||"");return pn(e,i),Wt(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}),n}(),iw={lineargradient:function(n){var t=parseInt(n.getAttribute("x1")||"0",10),e=parseInt(n.getAttribute("y1")||"0",10),i=parseInt(n.getAttribute("x2")||"10",10),r=parseInt(n.getAttribute("y2")||"0",10),o=new _a(t,e,i,r);return rw(n,o),ow(n,o),o},radialgradient:function(n){var t=parseInt(n.getAttribute("cx")||"0",10),e=parseInt(n.getAttribute("cy")||"0",10),i=parseInt(n.getAttribute("r")||"0",10),r=new Zc(t,e,i);return rw(n,r),ow(n,r),r}};function rw(n,t){n.getAttribute("gradientUnits")==="userSpaceOnUse"&&(t.global=!0)}function ow(n,t){for(var e=n.firstChild;e;){if(e.nodeType===1&&e.nodeName.toLocaleLowerCase()==="stop"){var i=e.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};uw(e,o,o);var a=o.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:r,color:a})}e=e.nextSibling}}function pn(n,t){n&&n.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),le(t.__inheritedStyle,n.__inheritedStyle))}function aw(n){for(var t=ju(n),e=[],i=0;i<t.length;i+=2){var r=parseFloat(t[i]),o=parseFloat(t[i+1]);e.push([r,o])}return e}function Wt(n,t,e,i,r){var o=t,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};n.nodeType===1&&(function(l,u){var h=l.getAttribute("transform");if(h){h=h.replace(/,/g," ");var c=[],p=null;h.replace(VD,function(v,m,x){return c.push(m,x),""});for(var d=c.length-1;d>0;d-=2){var f=c[d],g=c[d-1],y=ju(f);switch(p=p||[1,0,0,1,0,0],g){case"translate":Ui(p,p,[parseFloat(y[0]),parseFloat(y[1]||"0")]);break;case"scale":Oh(p,p,[parseFloat(y[0]),parseFloat(y[1]||y[0])]);break;case"rotate":Zi(p,p,-parseFloat(y[0])*Kd);break;case"skewX":kn(p,[1,0,Math.tan(parseFloat(y[0])*Kd),1,0,0],p);break;case"skewY":kn(p,[1,Math.tan(parseFloat(y[0])*Kd),0,1,0,0],p);break;case"matrix":p[0]=parseFloat(y[0]),p[1]=parseFloat(y[1]),p[2]=parseFloat(y[2]),p[3]=parseFloat(y[3]),p[4]=parseFloat(y[4]),p[5]=parseFloat(y[5])}}u.setLocalTransform(p)}}(n,t),uw(n,a,s),i||function(l,u,h){for(var c=0;c<tw.length;c++){var p=tw[c];(d=l.getAttribute(p))!=null&&(u[Uu[p]]=d)}for(c=0;c<nw.length;c++){var d;p=nw[c],(d=l.getAttribute(p))!=null&&(h[Zu[p]]=d)}}(n,a,s)),o.style=o.style||{},a.fill!=null&&(o.style.fill=sw(o,"fill",a.fill,e)),a.stroke!=null&&(o.style.stroke=sw(o,"stroke",a.stroke,e)),A(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){a[l]!=null&&(o.style[l]=parseFloat(a[l]))}),A(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){a[l]!=null&&(o.style[l]=a[l])}),r&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=X(ju(a.lineDash),function(l){return parseFloat(l)})),a.visibility!=="hidden"&&a.visibility!=="collapse"||(o.invisible=!0),a.display==="none"&&(o.ignore=!0)}var zD=/^url\(\s*#(.*?)\)/;function sw(n,t,e,i){var r=e&&e.match(zD);if(!r)return e==="none"&&(e=null),e;var o=Xt(r[1]);i.push([n,t,o])}var BD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function ju(n){return n.match(BD)||[]}var VD=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,Kd=Math.PI/180,lw=/([^\s:;]+)\s*:\s*([^:;]+)/g;function uw(n,t,e){var i,r=n.getAttribute("style");if(r)for(lw.lastIndex=0;(i=lw.exec(r))!=null;){var o=i[1],a=Ut(Uu,o)?Uu[o]:null;a&&(t[a]=i[2]);var s=Ut(Zu,o)?Zu[o]:null;s&&(e[s]=i[2])}}function hw(n,t){var e=t.width/n.width,i=t.height/n.height,r=Math.min(e,i);return{scale:r,x:-(n.x+n.width/2)*r+(t.x+t.width/2),y:-(n.y+n.height/2)*r+(t.y+t.height/2)}}for(var FD=ie(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),GD=function(){function n(t,e){this.type="geoSVG",this._usedGraphicMap=ie(),this._freedGraphics=[],this._mapName=t,this._parsedXML=ew(e)}return n.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=function(o){var a=[],s=ie();return A(o,function(l){if(l.namedFrom==null){var u=new rA(l.name,l.el);a.push(u),s.set(l.name,u)}}),{regions:a,regionsMap:s}}(t.named),i=e.regions,r=e.regionsMap;this._regions=i,this._regionsMap=r}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},n.prototype._buildGraphic=function(t){var e,i,r,o;try{ue((i=(e=t&&(r=t,o={ignoreViewBox:!0,ignoreRootClip:!0},new ND().parse(r,o))||{}).root)!=null)}catch(m){throw new Error(`Invalid svg format
- `+m.message)}var a=new fe;a.add(i),a.isGeoSVGGraphicRoot=!0;var s=e.width,l=e.height,u=e.viewBoxRect,h=this._boundingRect;if(!h){var c=void 0,p=void 0,d=void 0,f=void 0;if(s!=null?(c=0,d=s):u&&(c=u.x,d=u.width),l!=null?(p=0,f=l):u&&(p=u.y,f=u.height),c==null||p==null){var g=i.getBoundingRect();c==null&&(c=g.x,d=g.width),p==null&&(p=g.y,f=g.height)}h=this._boundingRect=new ye(c,p,d,f)}if(u){var y=hw(u,h);i.scaleX=i.scaleY=y.scale,i.x=y.x,i.y=y.y}a.setClipPath(new Ie({shape:h.plain()}));var v=[];return A(e.named,function(m){var x;FD.get(m.svgNodeTagLower)!=null&&(v.push(m),(x=m.el).silent=!1,x.isGroup&&x.traverse(function(_){_.silent=!1}))}),{root:a,boundingRect:h,named:v}},n.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)},n.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,i=e.get(t);i&&(e.removeKey(t),this._freedGraphics.push(i))},n}(),Jd=[126,25],cw="\u5357\u6D77\u8BF8\u5C9B",Lr=[[[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]]],Pr=0;Pr<Lr.length;Pr++)for(var Ao=0;Ao<Lr[Pr].length;Ao++)Lr[Pr][Ao][0]/=10.5,Lr[Pr][Ao][1]/=-14,Lr[Pr][Ao][0]+=Jd[0],Lr[Pr][Ao][1]+=Jd[1];var HD={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]},WD=[[[123.45165252685548,25.73527164402261],[123.497314453125,25.73527164402261],[123.497314453125,25.750734064600884],[123.45165252685548,25.750734064600884],[123.45165252685548,25.73527164402261]]],YD=function(){function n(t,e,i){var r;this.type="geoJSON",this._parsedMap=ie(),this._mapName=t,this._specialAreas=i,this._geoJSON=q(r=e)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}return n.prototype.load=function(t,e){e=e||"name";var i=this._parsedMap.get(e);if(!i){var r=this._parseToRegions(e);i=this._parsedMap.set(e,{regions:r,boundingRect:XD(r)})}var o=ie(),a=[];return A(i.regions,function(s){var l=s.name;t&&Ut(t,l)&&(s=s.cloneShallow(l=t[l])),a.push(s),o.set(l,s)}),{regions:a,boundingRect:i.boundingRect||new ye(0,0,0,0),regionsMap:o}},n.prototype._parseToRegions=function(t){var e,i=this._mapName,r=this._geoJSON;try{e=r?Md(r,t):[]}catch(o){throw new Error(`Invalid geoJson format
- `+o.message)}return function(o,a){if(o==="china"){for(var s=0;s<a.length;s++)if(a[s].name===cw)return;a.push(new C1(cw,X(Lr,function(l){return{type:"polygon",exterior:l}}),Jd))}}(i,e),A(e,function(o){var a=o.name;(function(l,u){if(l==="china"){var h=HD[u.name];if(h){var c=u.getCenter();c[0]+=h[0]/10.5,c[1]+=-h[1]/14,u.setCenter(c)}}})(i,o),function(l,u){l==="china"&&u.name==="\u53F0\u6E7E"&&u.geometries.push({type:"polygon",exterior:WD[0]})}(i,o);var s=this._specialAreas&&this._specialAreas[a];s&&o.transformTo(s.left,s.top,s.width,s.height)},this),e},n.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},n}();function XD(n){for(var t,e=0;e<n.length;e++){var i=n[e].getBoundingRect();(t=t||i.clone()).union(i)}return t}var as=ie();const pi={registerMap:function(n,t,e){if(t.svg){var i=new GD(n,t.svg);as.set(n,i)}else{var r=t.geoJson||t.geoJSON;r&&!t.features?e=t.specialAreas:r=t,i=new YD(n,r,e),as.set(n,i)}},getGeoResource:function(n){return as.get(n)},getMapForUser:function(n){var t=as.get(n);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(n,t,e){var i=as.get(n);if(i)return i.load(t,e);console.error("Map "+n+" not exists. The GeoJSON of the map must be provided.")}};var $d=["rect","circle","line","ellipse","polygon","polyline","path"],UD=ie($d),ZD=ie($d.concat(["g"])),jD=ie($d.concat(["g"])),pw=Ne();function qu(n){var t=n.getItemStyle(),e=n.get("areaColor");return e!=null&&(t.fill=e),t}function dw(n){var t=n.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var qD=function(){function n(t){var e=new fe;this.uid=ho("ec_map_draw"),this._controller=new Zd(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new fe),e.add(this._svgGroup=new fe)}return n.prototype.draw=function(t,e,i,r,o){var a=t.mainType==="geo",s=t.getData&&t.getData();a&&e.eachComponent({mainType:"series",subType:"map"},function(y){s||y.getHostGeoModel()!==t||(s=y.getData())});var l=t.coordinateSystem,u=this._regionsGroup,h=this.group,c=l.getTransformInfo(),p=c.raw,d=c.roam;!u.childAt(0)||o?(h.x=d.x,h.y=d.y,h.scaleX=d.scaleX,h.scaleY=d.scaleY,h.dirty()):ze(h,d,t);var f=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:i,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:f,isGeo:a,transformInfoRaw:p};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(t,e,i),this._updateMapSelectHandler(t,u,i,r)},n.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=ie(),i=ie(),r=this._regionsGroup,o=t.transformInfoRaw,a=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function h(d,f){return f&&(d=f(d)),d&&[d[0]*o.scaleX+o.x,d[1]*o.scaleY+o.y]}function c(d){for(var f=[],g=!u&&l&&l.project,y=0;y<d.length;++y){var v=h(d[y],g);v&&f.push(v)}return f}function p(d){return{shape:{points:c(d)}}}r.removeAll(),A(t.geo.regions,function(d){var f=d.name,g=e.get(f),y=i.get(f)||{},v=y.dataIdx,m=y.regionModel;g||(g=e.set(f,new fe),r.add(g),v=s?s.indexOfName(f):null,m=t.isGeo?a.getRegionModel(f):s?s.getItemModel(v):null,i.set(f,{dataIdx:v,regionModel:m}));var x=[],_=[];A(d.geometries,function(S){if(S.type==="polygon"){var M=[S.exterior].concat(S.interiors||[]);u&&(M=xw(M,u)),A(M,function(I){x.push(new Fn(p(I)))})}else{var T=S.points;u&&(T=xw(T,u,!0)),A(T,function(I){_.push(new wn(p(I)))})}});var b=h(d.getCenter(),l&&l.project);function w(S,M){if(S.length){var T=new Uc({culling:!0,segmentIgnoreThreshold:1,shape:{paths:S}});g.add(T),fw(t,T,v,m),gw(t,T,f,m,a,v,b),M&&(dw(T),A(T.states,dw))}}w(x),w(_,!0)}),e.each(function(d,f){var g=i.get(f),y=g.dataIdx,v=g.regionModel;yw(t,d,f,v,a,y),vw(t,d,f,v,a),mw(t,d,f,v,a)},this)},n.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 r=this._svgDispatcherMap=ie(),o=!1;A(this._svgGraphicRecord.named,function(a){var s=a.name,l=t.mapOrGeoModel,u=t.data,h=a.svgNodeTagLower,c=a.el,p=u?u.indexOfName(s):null,d=l.getRegionModel(s);UD.get(h)!=null&&c instanceof ar&&fw(t,c,p,d),c instanceof ar&&(c.culling=!0),c.z2EmphasisLift=0,a.namedFrom||(jD.get(h)!=null&&gw(t,c,s,d,l,p,null),yw(t,c,s,d,l,p),vw(t,c,s,d,l),ZD.get(h)!=null&&(mw(t,c,s,d,l)==="self"&&(o=!0),(r.get(s)||r.set(s,[])).push(c)))},this),this._enableBlurEntireSVG(o,t)},n.prototype._enableBlurEntireSVG=function(t,e){if(t&&e.isGeo){var i=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity;this._svgGraphicRecord.root.traverse(function(r){if(!r.isGroup){cl(r);var o=r.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),r.ensureState("emphasis")}})}},n.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},n.prototype.findHighDownDispatchers=function(t,e){if(t==null)return[];var i=e.coordinateSystem;if(i.resourceType==="geoJSON"){var r=this._regionsGroupByName;if(r){var o=r.get(t);return o?[o]:[]}}else if(i.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},n.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},n.prototype._useSVG=function(t){var e=pi.getGeoResource(t);if(e&&e.type==="geoSVG"){var i=e.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=t}},n.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var e=pi.getGeoResource(t);e&&e.type==="geoSVG"&&e.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},n.prototype._updateController=function(t,e,i){var r=t.coordinateSystem,o=this._controller,a=this._controllerHost;a.zoomLimit=t.get("scaleLimit"),a.zoom=r.getZoom(),o.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}o.off("pan").on("pan",function(u){this._mouseDownFlag=!1,$_(a,u.dx,u.dy),i.dispatchAction(G(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Q_(a,u.scale,u.originX,u.originY),i.dispatchAction(G(l(),{zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),o.setPointerChecker(function(u,h,c){return r.containPoint([h,c])&&!qd(u,i,t)})},n.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var e=t.getTextContent();e&&(e.ignore=pw(e).ignore)})},n.prototype._updateMapSelectHandler=function(t,e,i,r){var o=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){o._mouseDownFlag=!0}),e.on("click",function(a){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))},n}();function fw(n,t,e,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=qu(r),u=qu(o),h=qu(s),c=qu(a),p=n.data;if(p){var d=p.getItemVisual(e,"style"),f=p.getItemVisual(e,"decal");n.isVisualEncodedByVisualMap&&d.fill&&(l.fill=d.fill),f&&(l.decal=ou(f,n.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=h,t.ensureState("blur").style=c,cl(t)}function gw(n,t,e,i,r,o,a){var s=n.data,l=n.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),h=s&&s.getItemLayout(o);if(l||u||h&&h.showLabel){var c=l?e:o,p=void 0;(!s||o>=0)&&(p=r);var d=a?{normal:{align:"center",verticalAlign:"middle"}}:null;ai(t,si(i),{labelFetcher:p,labelDataIndex:c,defaultText:e},d);var f=t.getTextContent();if(f&&(pw(f).ignore=f.ignore,t.textConfig&&a)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function yw(n,t,e,i,r,o){n.data?n.data.setItemGraphicEl(o,t):_e(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:e,region:i&&i.option||{}}}function vw(n,t,e,i,r){n.data||Ma({el:t,componentModel:r,itemName:e,itemTooltipOption:i.get("tooltip")})}function mw(n,t,e,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Bn(t,a,o.get("blurScope"),o.get("disabled")),n.isGeo&&function(s,l,u){var h=_e(s);h.componentMainType=l.mainType,h.componentIndex=l.componentIndex,h.componentHighDownName=u}(t,r,e),a}function xw(n,t,e){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!e&&s.polygonStart(),A(n,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(),r}const _w=qD;var KD=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r,o){if(!o||o.type!=="mapToggleSelect"||o.from!==this.uid){var a=this.group;if(a.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&o&&o.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),o&&o.type==="geoRoam"&&o.componentType==="series"&&o.seriesId===e.id)(s=this._mapDraw)&&a.add(s.group);else if(e.needsDrawMap){var s=this._mapDraw||new _w(r);a.add(s.group),s.draw(e,i,r,this,o),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(e,i,r)}}},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,r){var o=e.originalData,a=this.group;o.each(o.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=o.getItemLayout(l);if(u&&u.point){var h=u.point,c=u.offset,p=new xn({style:{fill:e.getData().getVisual("style").fill},shape:{cx:h[0]+9*c,cy:h[1],r:3},silent:!0,z2:8+(c?0:pv+1)});if(!c){var d=e.mainSeries.getData(),f=o.getName(l),g=d.indexOfName(f),y=o.getItemModel(l),v=y.getModel("label"),m=d.getItemGraphicEl(g);ai(p,si(y),{labelFetcher:{getFormattedLabel:function(x,_){return e.getFormattedLabel(g,_)}},defaultText:f}),p.disableLabelAnimation=!0,v.get("position")||p.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(x){hl(p,x)}}a.add(p)}}})},t.type="map",t}(at);const JD=KD;var $D=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(i){if(i!=null){var r=this.getData().getName(i),o=this.coordinateSystem,a=o.getRegion(r);return a&&o.dataToPoint(a.getCenter())}},e}return V(t,n),t.prototype.getInitialData=function(e){for(var i=Wu(this,{coordDimensions:["value"],encodeDefaulter:ve(zm,this)}),r=ie(),o=[],a=0,s=i.count();a<s;a++){var l=i.getName(a);r.set(l,!0)}return A(pi.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(u){var h=u.name;r.get(h)||o.push(h)}),i.appendValues([],o),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,r){for(var o=this.getData(),a=this.getRawValue(e),s=o.getName(e),l=this.seriesGroup,u=[],h=0;h<l.length;h++){var c=l[h].originalData.indexOfName(s),p=o.mapDimension("value");isNaN(l[h].originalData.get(p,c))||u.push(l[h].name)}return Yn("section",{header:u.join(", "),noHeader:!u.length,blocks:[Yn("nameValue",{name:s,value:a})]})},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",r=ut(i,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return r.setStyle(e.itemStyle),r.style.stroke="none",i.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r},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}(Mt);const QD=$D;function ek(n){var t={};n.eachSeriesByType("map",function(e){var i=e.getHostGeoModel(),r=i?"o"+i.id:"i"+e.getMapType();(t[r]=t[r]||[]).push(e)}),A(t,function(e,i){for(var r,o,a,s=(r=X(e,function(u){return u.getData()}),o=e[0].get("mapValueCalculation"),a={},A(r,function(u){u.each(u.mapDimension("value"),function(h,c){var p="ec-"+u.getName(c);a[p]=a[p]||[],isNaN(h)||a[p].push(h)})}),r[0].map(r[0].mapDimension("value"),function(u,h){for(var c="ec-"+r[0].getName(h),p=0,d=1/0,f=-1/0,g=a[c].length,y=0;y<g;y++)d=Math.min(d,a[c][y]),f=Math.max(f,a[c][y]),p+=a[c][y];return g===0?NaN:o==="min"?d:o==="max"?f:o==="average"?p/g:p})),l=0;l<e.length;l++)e[l].originalData=e[l].getData();for(l=0;l<e.length;l++)e[l].seriesGroup=e,e[l].needsDrawMap=l===0&&!e[l].getHostGeoModel(),e[l].setData(s.cloneShallow()),e[l].mainSeries=e[0]})}function tk(n){var t={};n.eachSeriesByType("map",function(e){var i=e.getMapType();if(!e.getHostGeoModel()&&!t[i]){var r={};A(e.seriesGroup,function(a){var s=a.coordinateSystem,l=a.originalData;a.get("showLegendSymbol")&&n.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,h){var c=l.getName(h),p=s.getRegion(c);if(p&&!isNaN(u)){var d=r[c]||0,f=s.dataToPoint(p.getCenter());r[c]=d+1,l.setItemLayout(h,{point:f,offset:d})}})});var o=e.getData();o.each(function(a){var s=o.getName(a),l=o.getItemLayout(a)||{};l.showLabel=!r[s],o.setItemLayout(a,l)}),t[i]=!0}})}var ww=ot,nk=function(n){function t(e){var i=n.call(this)||this;return i.type="view",i.dimensions=["x","y"],i._roamTransformable=new wi,i._rawTransformable=new wi,i.name=e,i}return V(t,n),t.prototype.setBoundingRect=function(e,i,r,o){return this._rect=new ye(e,i,r,o),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(e,i,r,o){this._transformTo(e,i,r,o),this._viewRect=new ye(e,i,r,o)},t.prototype._transformTo=function(e,i,r,o){var a=this.getBoundingRect(),s=this._rawTransformable;s.transform=a.calculateTransform(new ye(e,i,r,o));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(e,i){e&&(this._center=[ee(e[0],i.getWidth()),ee(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();return[e.x+e.width/2,e.y+e.height/2]},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,r=this.getDefaultCenter(),o=this.getCenter(),a=this.getZoom();o=ot([],o,e),r=ot([],r,e),i.originX=o[0],i.originY=o[1],i.x=r[0]-o[0],i.y=r[1]-o[1],i.scaleX=i.scaleY=a,this._updateTransform()},t.prototype._updateTransform=function(){var e=this._roamTransformable,i=this._rawTransformable;i.parent=e,e.updateTransform(),i.updateTransform(),Cs(this.transform||(this.transform=[]),i.transform||[1,0,0,1,0,0]),this._rawTransform=i.getLocalTransform(),this.invTransform=this.invTransform||[],ji(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var e=this._rawTransformable,i=this._roamTransformable,r=new wi;return r.transform=i.transform,r.decomposeTransform(),{roam:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.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,r){var o=i?this._rawTransform:this.transform;return r=r||[],o?ww(r,e,o):xg(r,e)},t.prototype.pointToData=function(e){var i=this.invTransform;return i?ww([],e,i):[e[0],e[1]]},t.prototype.convertToPixel=function(e,i,r){var o=bw(i);return o===this?o.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,i,r){var o=bw(i);return o===this?o.pointToData(r):null},t.prototype.containPoint=function(e){return this.getViewRectAfterRoam().contain(e[0],e[1])},t.dimensions=["x","y"],t}(wi);function bw(n){var t=n.seriesModel;return t?t.coordinateSystem:null}const Qd=nk;var ik={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},Sw=["lng","lat"],Mw=function(n){function t(e,i,r){var o=n.call(this,e)||this;o.dimensions=Sw,o.type="geo",o._nameCoordMap=ie(),o.map=i;var a,s=r.projection,l=pi.load(i,r.nameMap,r.nameProperty),u=pi.getGeoResource(i),h=o.resourceType=u?u.type:null,c=o.regions=l.regions,p=ik[u.type];if(o._regionsMap=l.regionsMap,o.regions=l.regions,s&&(h==="geoSVG"&&(Je("Map "+i+" with SVG source can't use projection. Only GeoJSON source supports projection."),s=null),s.project&&s.unproject||(Je("project and unproject must be both provided in the projeciton."),s=null)),o.projection=s,s)for(var d=0;d<c.length;d++){var f=c[d].getBoundingRect(s);(a=a||f.clone()).union(f)}else a=l.boundingRect;return o.setBoundingRect(a.x,a.y,a.width,a.height),o.aspectScale=s?1:Me(r.aspectScale,p.aspectScale),o._invertLongitute=!s&&p.invertLongitute,o}return V(t,n),t.prototype._transformTo=function(e,i,r,o){var a=this.getBoundingRect(),s=this._invertLongitute;a=a.clone(),s&&(a.y=-a.y-a.height);var l=this._rawTransformable;l.transform=a.calculateTransform(new ye(e,i,r,o));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,r=0;r<i.length;r++){var o=i[r];if(o.type==="geoJSON"&&o.contain(e))return i[r]}},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,r){if(q(e)&&(e=this.getGeoCoord(e)),e){var o=this.projection;return o&&(e=o.project(e)),e&&this.projectedToPoint(e,i,r)}},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 n.prototype.pointToData.call(this,e)},t.prototype.projectedToPoint=function(e,i,r){return n.prototype.dataToPoint.call(this,e,i,r)},t.prototype.convertToPixel=function(e,i,r){var o=Tw(i);return o===this?o.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,i,r){var o=Tw(i);return o===this?o.pointToData(r):null},t}(Qd);function Tw(n){var t=n.geoModel,e=n.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo",nt).models[0]||{}).coordinateSystem:null}ct(Mw,Qd);const Iw=Mw;function Cw(n,t){var e=n.get("boundingCoords");if(e!=null){var i=e[0],r=e[1];if(isFinite(i[0])&&isFinite(i[1])&&isFinite(r[0])&&isFinite(r[1])){var o=this.projection;if(o){var a=i[0],s=i[1],l=r[0],u=r[1];i=[1/0,1/0],r=[-1/0,-1/0];var h=function(w,S,M,T){for(var I=M-w,C=T-S,D=0;D<=100;D++){var L=D/100,R=o.project([w+I*L,S+C*L]);Kn(i,i,R),Jn(r,r,R)}};h(a,s,l,s),h(l,s,l,u),h(l,u,a,u),h(a,u,l,s)}this.setBoundingRect(i[0],i[1],r[0]-i[0],r[1]-i[1])}else console.error("Invalid boundingCoords")}var c,p,d,f=this.getBoundingRect(),g=n.get("layoutCenter"),y=n.get("layoutSize"),v=t.getWidth(),m=t.getHeight(),x=f.width/f.height*this.aspectScale,_=!1;if(g&&y&&(c=[ee(g[0],v),ee(g[1],m)],p=ee(y,Math.min(v,m)),isNaN(c[0])||isNaN(c[1])||isNaN(p)?console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."):_=!0),_)d={},x>1?(d.width=p,d.height=p/x):(d.height=p,d.width=p*x),d.y=c[1]-d.height/2,d.x=c[0]-d.width/2;else{var b=n.getBoxLayoutParams();b.aspect=x,d=St(b,{width:v,height:m})}this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(n.get("center"),t),this.setZoom(n.get("zoom"))}var rk=function(){function n(){this.dimensions=Sw}return n.prototype.create=function(t,e){var i=[];function r(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection")}}t.eachComponent("geo",function(a,s){var l=a.get("map"),u=new Iw(l+s,l,G({nameMap:a.get("nameMap")},r(a)));u.zoomLimit=a.get("scaleLimit"),i.push(u),a.coordinateSystem=u,u.model=a,u.resize=Cw,u.resize(a,e)}),t.eachSeries(function(a){if(a.get("coordinateSystem")==="geo"){var s=a.get("geoIndex")||0;a.coordinateSystem=i[s]}});var o={};return t.eachSeriesByType("map",function(a){if(!a.getHostGeoModel()){var s=a.getMapType();o[s]=o[s]||[],o[s].push(a)}}),A(o,function(a,s){var l=X(a,function(h){return h.get("nameMap")}),u=new Iw(s,s,G({nameMap:cg(l)},r(a[0])));u.zoomLimit=Yt.apply(null,X(a,function(h){return h.get("scaleLimit")})),i.push(u),u.resize=Cw,u.resize(a[0],e),A(a,function(h){h.coordinateSystem=u,function(c,p){A(p.get("geoCoord"),function(d,f){c.addGeoCoord(f,d)})}(u,h)})}),i},n.prototype.getFilledRegions=function(t,e,i,r){for(var o=(t||[]).slice(),a=ie(),s=0;s<o.length;s++)a.set(o[s].name,o[s]);return A(pi.load(e,i,r).regions,function(l){var u=l.name;!a.get(u)&&o.push({name:u})}),o},n}();const Aw=new rk;var ok=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.init=function(e,i,r){var o=pi.getGeoResource(e.map);if(o&&o.type==="geoJSON"){var a=e.itemStyle=e.itemStyle||{};"color"in a||(a.color="#eee")}this.mergeDefaultAndTheme(e,r),Js(e,"label",["show"])},t.prototype.optionUpdated=function(){var e=this,i=this.option;i.regions=Aw.getFilledRegions(i.regions,i.map,i.nameMap,i.nameProperty);var r={};this._optionModelMap=gn(i.regions||[],function(o,a){var s=a.name;return s&&(o.set(s,new He(a,e,e.ecModel)),a.selected&&(r[s]=!0)),o},ie()),i.selectedMap||(i.selectedMap=r)},t.prototype.getRegionModel=function(e){return this._optionModelMap.get(e)||new He(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(e,i){var r=this.getRegionModel(e),o=i==="normal"?r.get(["label","formatter"]):r.get(["emphasis","label","formatter"]),a={name:e};return ae(o)?(a.status=i,o(a)):q(o)?o.replace("{a}",e??""):void 0},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,r=i.selectedMode;r&&(r!=="multiple"&&(i.selectedMap=null),(i.selectedMap||(i.selectedMap={}))[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}(Te);const ak=ok;function Dw(n,t){return n.pointToProjected?n.pointToProjected(t):n.pointToData(t)}function kw(n,t,e,i){var r=n.getZoom(),o=n.getCenter(),a=t.zoom,s=n.projectedToPoint?n.projectedToPoint(o):n.dataToPoint(o);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,n.setCenter(Dw(n,s),i)),a!=null){if(e){var l=e.min||0,u=e.max||1/0;a=Math.max(Math.min(r*a,u),l)/r}n.scaleX*=a,n.scaleY*=a;var h=(t.originX-n.x)*(a-1),c=(t.originY-n.y)*(a-1);n.x-=h,n.y-=c,n.updateTransform(),n.setCenter(Dw(n,s),i),n.setZoom(a*r)}return{center:n.getCenter(),zoom:n.getZoom()}}var sk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.focusBlurEnabled=!0,e}return V(t,n),t.prototype.init=function(e,i){this._api=i},t.prototype.render=function(e,i,r,o){if(this._model=e,!e.get("show"))return this._mapDraw&&this._mapDraw.remove(),void(this._mapDraw=null);this._mapDraw||(this._mapDraw=new _w(r));var a=this._mapDraw;a.draw(e,i,r,this,o),a.group.on("click",this._handleRegionClick,this),a.group.silent=e.get("silent"),this.group.add(a.group),this.updateSelectStatus(e,i,r)},t.prototype._handleRegionClick=function(e){var i;br(e.target,function(r){return(i=_e(r).eventData)!=null},!0),i&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:i.name})},t.prototype.updateSelectStatus=function(e,i,r){var o=this;this._mapDraw.group.traverse(function(a){var s=_e(a).eventData;if(s)return o._model.isSelected(s.name)?r.enterSelect(a):r.leaveSelect(a),!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}(je);const lk=sk;function uk(n,t,e){pi.registerMap(n,t,e)}function hk(n){function t(e,i){i.update="geo:updateSelectStatus",n.registerAction(i,function(r,o){var a={},s=[];return o.eachComponent({mainType:"geo",query:r},function(l){l[e](r.name),A(l.coordinateSystem.regions,function(h){a[h.name]=l.isSelected(h.name)||!1});var u=[];A(a,function(h,c){a[c]&&u.push(c)}),s.push({geoIndex:l.componentIndex,name:u})}),{selected:a,allSelected:s,name:r.name}})}n.registerCoordinateSystem("geo",Aw),n.registerComponentModel(ak),n.registerComponentView(lk),n.registerImpl("registerMap",uk),n.registerImpl("getMap",function(e){return pi.getMapForUser(e)}),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),n.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(e,i,r){var o=e.componentType||"series";i.eachComponent({mainType:o,query:e},function(a){var s=a.coordinateSystem;if(s.type==="geo"){var l=kw(s,e,a.get("scaleLimit"),r);a.setCenter&&a.setCenter(l.center),a.setZoom&&a.setZoom(l.zoom),o==="series"&&A(a.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function ck(n,t){var e=n.isExpand?n.children:[],i=n.parentNode.children,r=n.hierNode.i?i[n.hierNode.i-1]:null;if(e.length){(function(a){for(var s=a.children,l=s.length,u=0,h=0;--l>=0;){var c=s[l];c.hierNode.prelim+=u,c.hierNode.modifier+=u,h+=c.hierNode.change,u+=c.hierNode.shift+h}})(n);var o=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;r?(n.hierNode.prelim=r.hierNode.prelim+t(n,r),n.hierNode.modifier=n.hierNode.prelim-o):n.hierNode.prelim=o}else r&&(n.hierNode.prelim=r.hierNode.prelim+t(n,r));n.parentNode.hierNode.defaultAncestor=function(a,s,l,u){if(s){for(var h=a,c=a,p=c.parentNode.children[0],d=s,f=h.hierNode.modifier,g=c.hierNode.modifier,y=p.hierNode.modifier,v=d.hierNode.modifier;d=ef(d),c=tf(c),d&&c;){h=ef(h),p=tf(p),h.hierNode.ancestor=a;var m=d.hierNode.prelim+v-c.hierNode.prelim-g+u(d,c);m>0&&(fk(dk(d,a,l),a,m),g+=m,f+=m),v+=d.hierNode.modifier,g+=c.hierNode.modifier,f+=h.hierNode.modifier,y+=p.hierNode.modifier}d&&!ef(h)&&(h.hierNode.thread=d,h.hierNode.modifier+=v-f),c&&!tf(p)&&(p.hierNode.thread=c,p.hierNode.modifier+=g-y,l=a)}return l}(n,r,n.parentNode.hierNode.defaultAncestor||i[0],t)}function pk(n){var t=n.hierNode.prelim+n.parentNode.hierNode.modifier;n.setLayout({x:t},!0),n.hierNode.modifier+=n.parentNode.hierNode.modifier}function Lw(n){return arguments.length?n:gk}function ss(n,t){return n-=Math.PI/2,{x:t*Math.cos(n),y:t*Math.sin(n)}}function ef(n){var t=n.children;return t.length&&n.isExpand?t[t.length-1]:n.hierNode.thread}function tf(n){var t=n.children;return t.length&&n.isExpand?t[0]:n.hierNode.thread}function dk(n,t,e){return n.hierNode.ancestor.parentNode===t.parentNode?n.hierNode.ancestor:e}function fk(n,t,e){var i=e/(t.hierNode.i-n.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,n.hierNode.change+=i}function gk(n,t){return n.parentNode===t.parentNode?1:2}var yk=function(){this.parentPoint=[],this.childPoints=[]},vk=function(n){function t(e){return n.call(this,e)||this}return V(t,n),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new yk},t.prototype.buildPath=function(e,i){var r=i.childPoints,o=r.length,a=i.parentPoint,s=r[0],l=r[o-1];if(o===1)return e.moveTo(a[0],a[1]),void e.lineTo(s[0],s[1]);var u=i.orient,h=u==="TB"||u==="BT"?0:1,c=1-h,p=ee(i.forkPosition,1),d=[];d[h]=a[h],d[c]=a[c]+(l[c]-a[c])*p,e.moveTo(a[0],a[1]),e.lineTo(d[0],d[1]),e.moveTo(s[0],s[1]),d[h]=s[h],e.lineTo(d[0],d[1]),d[h]=l[h],e.lineTo(d[0],d[1]),e.lineTo(l[0],l[1]);for(var f=1;f<o-1;f++){var g=r[f];e.moveTo(g[0],g[1]),d[h]=g[h],e.lineTo(d[0],d[1])}},t}(De),mk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._mainGroup=new fe,e}return V(t,n),t.prototype.init=function(e,i){this._controller=new Zd(i.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(e,i,r){var o=e.getData(),a=e.layoutInfo,s=this._mainGroup;e.get("layout")==="radial"?(s.x=a.x+a.width/2,s.y=a.y+a.height/2):(s.x=a.x,s.y=a.y),this._updateViewCoordSys(e,r),this._updateController(e,i,r);var l=this._data;o.diff(l).add(function(u){Pw(o,u)&&Ow(o,u,null,s,e)}).update(function(u,h){var c=l.getItemGraphicEl(h);Pw(o,u)?Ow(o,u,c,s,e):c&&Nw(l,h,c,s,e)}).remove(function(u){var h=l.getItemGraphicEl(u);h&&Nw(l,u,h,s,e)}).execute(),this._nodeScaleRatio=e.get("nodeScaleRatio"),this._updateNodeAndLinkScale(e),e.get("expandAndCollapse")===!0&&o.eachItemGraphicEl(function(u,h){u.off("click").on("click",function(){r.dispatchAction({type:"treeExpandAndCollapse",seriesId:e.id,dataIndex:h})})}),this._data=o},t.prototype._updateViewCoordSys=function(e,i){var r=e.getData(),o=[];r.each(function(c){var p=r.getItemLayout(c);!p||isNaN(p.x)||isNaN(p.y)||o.push([+p.x,+p.y])});var a=[],s=[];(function(c,p,d){if(c.length!==0){for(var f=c[0],g=f[0],y=f[0],v=f[1],m=f[1],x=1;x<c.length;x++)f=c[x],g=kt(g,f[0]),y=Lt(y,f[0]),v=kt(v,f[1]),m=Lt(m,f[1]);p[0]=g,p[1]=v,d[0]=y,d[1]=m}})(o,a,s);var l=this._min,u=this._max;s[0]-a[0]==0&&(a[0]=l?l[0]:a[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-a[1]==0&&(a[1]=l?l[1]:a[1]-1,s[1]=u?u[1]:s[1]+1);var h=e.coordinateSystem=new Qd;h.zoomLimit=e.get("scaleLimit"),h.setBoundingRect(a[0],a[1],s[0]-a[0],s[1]-a[1]),h.setCenter(e.get("center"),i),h.setZoom(e.get("zoom")),this.group.attr({x:h.x,y:h.y,scaleX:h.scaleX,scaleY:h.scaleY}),this._min=a,this._max=s},t.prototype._updateController=function(e,i,r){var o=this,a=this._controller,s=this._controllerHost,l=this.group;a.setPointerChecker(function(u,h,c){var p=l.getBoundingRect();return p.applyTransform(l.transform),p.contain(h,c)&&!qd(u,r,e)}),a.enable(e.get("roam")),s.zoomLimit=e.get("scaleLimit"),s.zoom=e.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(u){$_(s,u.dx,u.dy),r.dispatchAction({seriesId:e.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Q_(s,u.scale,u.originX,u.originY),r.dispatchAction({seriesId:e.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),o._updateNodeAndLinkScale(e),r.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(e){var i=e.getData(),r=this._getNodeGlobalScale(e);i.eachItemGraphicEl(function(o,a){o.setSymbolScale(r)})},t.prototype._getNodeGlobalScale=function(e){var i=e.coordinateSystem;if(i.type!=="view")return 1;var r=this._nodeScaleRatio,o=i.scaleX||1;return((i.getZoom()-1)*r+1)/o},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(at);function Pw(n,t){var e=n.getItemLayout(t);return e&&!isNaN(e.x)&&!isNaN(e.y)}function Ow(n,t,e,i,r){var o=!e,a=n.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=a.isExpand===!1&&a.children.length!==0?l:"#fff",h=n.tree.root,c=a.parentNode===h?a:a.parentNode||a,p=n.getItemGraphicEl(c.dataIndex),d=c.getLayout(),f=p?{x:p.__oldX,y:p.__oldY,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:d,g=a.getLayout();o?((e=new Nu(n,t,null,{symbolInnerColor:u,useNameLabel:!0})).x=f.x,e.y=f.y):e.updateData(n,t,null,{symbolInnerColor:u,useNameLabel:!0}),e.__radialOldRawX=e.__radialRawX,e.__radialOldRawY=e.__radialRawY,e.__radialRawX=g.rawX,e.__radialRawY=g.rawY,i.add(e),n.setItemGraphicEl(t,e),e.__oldX=e.x,e.__oldY=e.y,ze(e,{x:g.x,y:g.y},r);var y=e.getSymbolPath();if(r.get("layout")==="radial"){var v=h.children[0],m=v.getLayout(),x=v.children.length,_=void 0,b=void 0;if(g.x===m.x&&a.isExpand===!0&&v.children.length){var w={x:(v.children[0].getLayout().x+v.children[x-1].getLayout().x)/2,y:(v.children[0].getLayout().y+v.children[x-1].getLayout().y)/2};(_=Math.atan2(w.y-m.y,w.x-m.x))<0&&(_=2*Math.PI+_),(b=w.x<m.x)&&(_-=Math.PI)}else(_=Math.atan2(g.y-m.y,g.x-m.x))<0&&(_=2*Math.PI+_),a.children.length===0||a.children.length!==0&&a.isExpand===!1?(b=g.x<m.x)&&(_-=Math.PI):(b=g.x>m.x)||(_-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),T=M.get("rotate"),I=T*(Math.PI/180),C=y.getTextContent();C&&(y.setTextConfig({position:M.get("position")||S,rotation:T==null?-_:I,origin:"center"}),C.setStyle("verticalAlign","middle"))}var D=s.get(["emphasis","focus"]),L=D==="relative"?_h(a.getAncestorsIndices(),a.getDescendantIndices()):D==="ancestor"?a.getAncestorsIndices():D==="descendant"?a.getDescendantIndices():null;L&&(_e(e).focus=L),function(R,P,E,k,O,N,B,z){var U=P.getModel(),Z=R.get("edgeShape"),F=R.get("layout"),W=R.getOrient(),K=R.get(["lineStyle","curveness"]),se=R.get("edgeForkPosition"),he=U.getModel("lineStyle").getLineStyle(),te=k.__edge;if(Z==="curve")P.parentNode&&P.parentNode!==E&&(te||(te=k.__edge=new yl({shape:nf(F,W,K,O,O)})),ze(te,{shape:nf(F,W,K,N,B)},R));else if(Z==="polyline"){if(F!=="orthogonal")throw new Error("The polyline edgeShape can only be used in orthogonal layout");if(P!==E&&P.children&&P.children.length!==0&&P.isExpand===!0){for(var j=P.children,J=[],H=0;H<j.length;H++){var $=j[H].getLayout();J.push([$.x,$.y])}te||(te=k.__edge=new vk({shape:{parentPoint:[B.x,B.y],childPoints:[[B.x,B.y]],orient:W,forkPosition:se}})),ze(te,{shape:{parentPoint:[B.x,B.y],childPoints:J}},R)}}te&&(Z!=="polyline"||P.isExpand)&&(te.useStyle(le({strokeNoScale:!0,fill:null},he)),oi(te,U,"lineStyle"),cl(te),z.add(te))}(r,a,h,e,f,d,g,i),e.__edge&&(e.onHoverStateChange=function(R){if(R!=="blur"){var P=a.parentNode&&n.getItemGraphicEl(a.parentNode.dataIndex);P&&P.hoverState===da||hl(e.__edge,R)}})}function Rw(n,t,e,i,r){var o=Ew(t.tree.root,n),a=o.source,s=o.sourceLayout,l=t.getItemGraphicEl(n.dataIndex);if(l){var u=t.getItemGraphicEl(a.dataIndex).__edge,h=l.__edge||(a.isExpand===!1||a.children.length===1?u:void 0),c=i.get("edgeShape"),p=i.get("layout"),d=i.get("orient"),f=i.get(["lineStyle","curveness"]);h&&(c==="curve"?Ii(h,{shape:nf(p,d,f,s,s),style:{opacity:0}},i,{cb:function(){e.remove(h)},removeOpt:r}):c==="polyline"&&i.get("layout")==="orthogonal"&&Ii(h,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){e.remove(h)},removeOpt:r}))}}function Ew(n,t){for(var e,i=t.parentNode===n?t:t.parentNode||t;(e=i.getLayout())==null;)i=i.parentNode===n?i:i.parentNode||i;return{source:i,sourceLayout:e}}function Nw(n,t,e,i,r){var o=n.tree.getNodeByDataIndex(t),a=Ew(n.tree.root,o).sourceLayout,s={duration:r.get("animationDurationUpdate"),easing:r.get("animationEasingUpdate")};Ii(e,{x:a.x+1,y:a.y+1},r,{cb:function(){i.remove(e),n.setItemGraphicEl(t,null)},removeOpt:s}),e.fadeOut(null,n.hostModel,{fadeLabel:!0,animation:s}),o.children.forEach(function(l){Rw(l,n,i,r,s)}),Rw(o,n,i,r,s)}function nf(n,t,e,i,r){var o,a,s,l,u,h,c,p;if(n==="radial"){u=i.rawX,c=i.rawY,h=r.rawX,p=r.rawY;var d=ss(u,c),f=ss(u,c+(p-c)*e),g=ss(h,p+(c-p)*e),y=ss(h,p);return{x1:d.x||0,y1:d.y||0,x2:y.x||0,y2:y.y||0,cpx1:f.x||0,cpy1:f.y||0,cpx2:g.x||0,cpy2:g.y||0}}return u=i.x,c=i.y,h=r.x,p=r.y,t!=="LR"&&t!=="RL"||(o=u+(h-u)*e,a=c,s=h+(u-h)*e,l=p),t!=="TB"&&t!=="BT"||(o=u,a=c+(p-c)*e,s=h,l=p+(c-p)*e),{x1:u,y1:c,x2:h,y2:p,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}const xk=mk;var dn=Ne();function _k(n,t){if(dn(i=this).mainData===i){var e=G({},dn(this).datas);e[this.dataType]=t,zw(t,e,n)}else rf(t,this.dataType,dn(this).mainData,n);var i;return t}function wk(n,t){return n.struct&&n.struct.update(),t}function bk(n,t){return A(dn(t).datas,function(e,i){e!==t&&rf(e.cloneShallow(),i,t,n)}),t}function Sk(n){var t=dn(this).mainData;return n==null||t==null?t:dn(t).datas[n]}function Mk(){var n=dn(this).mainData;return n==null?[{data:n}]:X(Oe(dn(n).datas),function(t){return{type:t,data:dn(n).datas[t]}})}function zw(n,t,e){dn(n).datas={},A(t,function(i,r){rf(i,r,n,e)})}function rf(n,t,e,i){dn(e).datas[t]=n,dn(n).mainData=e,n.dataType=t,i.struct&&(n[i.structAttr]=i.struct,i.struct[i.datasAttr[t]]=n),n.getLinkedData=Sk,n.getLinkedDataAll=Mk}var Tk=function(){function n(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}return n.prototype.isRemoved=function(){return this.dataIndex<0},n.prototype.eachNode=function(t,e,i){ae(t)&&(i=e,e=t,t=null),q(t=t||{})&&(t={order:t});var r,o=t.order||"preorder",a=this[t.attr||"children"];o==="preorder"&&(r=e.call(i,this));for(var s=0;!r&&s<a.length;s++)a[s].eachNode(t,e,i);o==="postorder"&&e.call(i,this)},n.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var i=0;i<this.children.length;i++){var r=this.children[i];r.updateDepthAndHeight(t+1),r.height>e&&(e=r.height)}this.height=e+1},n.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,i=this.children,r=i.length;e<r;e++){var o=i[e].getNodeById(t);if(o)return o}},n.prototype.contains=function(t){if(t===this)return!0;for(var e=0,i=this.children,r=i.length;e<r;e++){var o=i[e].contains(t);if(o)return o}},n.prototype.getAncestors=function(t){for(var e=[],i=t?this:this.parentNode;i;)e.push(i),i=i.parentNode;return e.reverse(),e},n.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},n.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(e){t.push(e.dataIndex)}),t},n.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},n.prototype.setLayout=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},n.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},n.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},n.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},n.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},n.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},n.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},n.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},n.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1}return-1},n.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},n.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},n}(),Ik=function(){function n(t){this.type="tree",this._nodes=[],this.hostModel=t}return n.prototype.eachNode=function(t,e,i){this.root.eachNode(t,e,i)},n.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},n.prototype.getNodeById=function(t){return this.root.getNodeById(t)},n.prototype.update=function(){for(var t=this.data,e=this._nodes,i=0,r=e.length;i<r;i++)e[i].dataIndex=-1;for(i=0,r=t.count();i<r;i++)e[t.getRawIndex(i)].dataIndex=i},n.prototype.clearLayouts=function(){this.data.clearItemLayouts()},n.createTree=function(t,e,i){var r=new n(e),o=[],a=1;(function p(d,f){var g=d.value;a=Math.max(a,Y(g)?g.length:1),o.push(d);var y=new Tk(Qt(d.name,""),r);f?function(x,_){var b=_.children;x.parentNode!==_&&(b.push(x),x.parentNode=_)}(y,f):r.root=y,r._nodes.push(y);var v=d.children;if(v)for(var m=0;m<v.length;m++)p(v[m],y)})(t),r.root.updateDepthAndHeight(0);var s,l,u,h=xu(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,c=new qa(h,e);return c.initData(o),i&&i(c),l=(s={mainData:c,struct:r,structAttr:"tree"}).mainData,(u=s.datas)||(u={main:l},s.datasAttr={main:"data"}),s.datas=s.mainData=null,zw(l,u,s),A(u,function(p){A(l.TRANSFERABLE_METHODS,function(d){p.wrapMethod(d,ve(_k,s))})}),l.wrapMethod("cloneShallow",ve(bk,s)),A(l.CHANGABLE_METHODS,function(p){l.wrapMethod(p,ve(wk,s))}),ue(u[l.dataType]===l),r.update(),r},n}();const Ck=Ik;var Ak=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return V(t,n),t.prototype.getInitialData=function(e){var i={name:e.name,children:e.data},r=e.leaves||{},o=new He(r,this,this.ecModel),a=Ck.createTree(i,this,function(u){u.wrapMethod("getItemModel",function(h,c){var p=a.getNodeByDataIndex(c);return p&&p.children.length&&p.isExpand||(h.parentModel=o),h})}),s=0;a.eachNode("preorder",function(u){u.depth>s&&(s=u.depth)});var l=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:s;return a.root.eachNode("preorder",function(u){var h=u.hostTree.data.getRawDataItem(u.dataIndex);u.isExpand=h&&h.collapsed!=null?!h.collapsed:u.depth<=l}),a.data},t.prototype.getOrient=function(){var e=this.get("orient");return e==="horizontal"?e="LR":e==="vertical"&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,i,r){for(var o=this.getData().tree,a=o.root.children[0],s=o.getNodeByDataIndex(e),l=s.getValue(),u=s.name;s&&s!==a;)u=s.parentNode.name+"."+u,s=s.parentNode;return Yn("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(e){var i=n.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return i.treeAncestors=function(o,a){for(var s=[];o;){var l=o.dataIndex;s.push({name:o.name,dataIndex:l,value:a.getRawValue(l)}),o=o.parentNode}return s.reverse(),s}(r,this),i.collapsed=!r.isExpand,i},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(Mt);const Dk=Ak;function ls(n,t){for(var e,i=[n];e=i.pop();)if(t(e),e.isExpand){var r=e.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function kk(n,t){n.eachSeriesByType("tree",function(e){(function(i,r){var o=function(w,S){return St(w.getBoxLayoutParams(),{width:S.getWidth(),height:S.getHeight()})}(i,r);i.layoutInfo=o;var a=i.get("layout"),s=0,l=0,u=null;a==="radial"?(s=2*Math.PI,l=Math.min(o.height,o.width)/2,u=Lw(function(w,S){return(w.parentNode===S.parentNode?1:2)/w.depth})):(s=o.width,l=o.height,u=Lw());var h=i.getData().tree.root,c=h.children[0];if(c){(function(w){var S=w;S.hierNode={defaultAncestor:null,ancestor:S,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var M,T,I=[S];M=I.pop();)if(T=M.children,M.isExpand&&T.length)for(var C=T.length-1;C>=0;C--){var D=T[C];D.hierNode={defaultAncestor:null,ancestor:D,prelim:0,modifier:0,change:0,shift:0,i:C,thread:null},I.push(D)}})(h),function(w,S,M){for(var T,I=[w],C=[];T=I.pop();)if(C.push(T),T.isExpand){var D=T.children;if(D.length)for(var L=0;L<D.length;L++)I.push(D[L])}for(;T=C.pop();)S(T,M)}(c,ck,u),h.hierNode.modifier=-c.hierNode.prelim,ls(c,pk);var p=c,d=c,f=c;ls(c,function(w){var S=w.getLayout().x;S<p.getLayout().x&&(p=w),S>d.getLayout().x&&(d=w),w.depth>f.depth&&(f=w)});var g=p===d?1:u(p,d)/2,y=g-p.getLayout().x,v=0,m=0,x=0,_=0;if(a==="radial")v=s/(d.getLayout().x+g+y),m=l/(f.depth-1||1),ls(c,function(w){x=(w.getLayout().x+y)*v,_=(w.depth-1)*m;var S=ss(x,_);w.setLayout({x:S.x,y:S.y,rawX:x,rawY:_},!0)});else{var b=i.getOrient();b==="RL"||b==="LR"?(m=l/(d.getLayout().x+g+y),v=s/(f.depth-1||1),ls(c,function(w){_=(w.getLayout().x+y)*m,x=b==="LR"?(w.depth-1)*v:s-(w.depth-1)*v,w.setLayout({x,y:_},!0)})):b!=="TB"&&b!=="BT"||(v=s/(d.getLayout().x+g+y),m=l/(f.depth-1||1),ls(c,function(w){x=(w.getLayout().x+y)*v,_=b==="TB"?(w.depth-1)*m:l-(w.depth-1)*m,w.setLayout({x,y:_},!0)}))}}})(e,t)})}function Lk(n){n.eachSeriesByType("tree",function(t){var e=t.getData();e.tree.eachNode(function(i){var r=i.getModel().getModel("itemStyle").getItemStyle();G(e.ensureUniqueItemVisual(i.dataIndex,"style"),r)})})}var us=A,Pk=Q,Ku=-1,of=function(){function n(t){var e=t.mappingMethod,i=t.type,r=this.option=oe(t);this.type=i,this.mappingMethod=e,this._normalizeData=Ok[e];var o=n.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[e],e==="piecewise"?(af(r),function(a){var s=a.pieceList;a.hasSpecialVisual=!1,A(s,function(l,u){l.originIndex=u,l.visual!=null&&(a.hasSpecialVisual=!0)})}(r)):e==="category"?r.categories?function(a){var s=a.categories,l=a.categoryMap={},u=a.visual;if(us(s,function(p,d){l[p]=d}),!Y(u)){var h=[];Q(u)?us(u,function(p,d){var f=l[d];h[f??Ku]=p}):h[Ku]=u,u=Vw(a,h)}for(var c=s.length-1;c>=0;c--)u[c]==null&&(delete l[s[c]],s.pop())}(r):af(r,!0):(ue(e!=="linear"||r.dataExtent),af(r))}return n.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},n.prototype.getNormalizer=function(){return ne(this._normalizeData,this)},n.listVisualTypes=function(){return Oe(n.visualHandlers)},n.isValidType=function(t){return n.visualHandlers.hasOwnProperty(t)},n.eachVisual=function(t,e,i){Q(t)?A(t,e,i):e.call(i,t)},n.mapVisual=function(t,e,i){var r,o=Y(t)?[]:Q(t)?{}:(r=!0,null);return n.eachVisual(t,function(a,s){var l=e.call(i,a,s);r?o=l:o[s]=l}),o},n.retrieveVisuals=function(t){var e,i={};return t&&us(n.visualHandlers,function(r,o){t.hasOwnProperty(o)&&(i[o]=t[o],e=!0)}),e?i:null},n.prepareVisualTypes=function(t){if(Y(t))t=t.slice();else{if(!Pk(t))return[];var e=[];us(t,function(i,r){e.push(r)}),t=e}return t.sort(function(i,r){return r==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),t},n.dependsOn=function(t,e){return e==="color"?!(!t||t.indexOf(e)!==0):t===e},n.findPieceIndex=function(t,e,i){for(var r,o=1/0,a=0,s=e.length;a<s;a++){var l=e[a].value;if(l!=null){if(l===t||q(l)&&l===t+"")return a;i&&p(l,a)}}for(a=0,s=e.length;a<s;a++){var u=e[a],h=u.interval,c=u.close;if(h){if(h[0]===-1/0){if($u(c[1],t,h[1]))return a}else if(h[1]===1/0){if($u(c[0],h[0],t))return a}else if($u(c[0],h[0],t)&&$u(c[1],t,h[1]))return a;i&&p(h[0],a),i&&p(h[1],a)}}if(i)return t===1/0?e.length-1:t===-1/0?0:r;function p(d,f){var g=Math.abs(d-t);g<o&&(o=g,r=f)}},n.visualHandlers={color:{applyVisual:hs("color"),getColorMapper:function(){var t=this.option;return ne(t.mappingMethod==="category"?function(e,i){return!i&&(e=this._normalizeData(e)),cs.call(this,e)}:function(e,i,r){var o=!!r;return!i&&(e=this._normalizeData(e)),r=Jo(e,t.parsedVisual,r),o?r:vn(r,"rgba")},this)},_normalizedToVisual:{linear:function(t){return vn(Jo(t,this.option.parsedVisual),"rgba")},category:cs,piecewise:function(t,e){var i=lf.call(this,e);return i==null&&(i=vn(Jo(t,this.option.parsedVisual),"rgba")),i},fixed:Or}},colorHue:Ju(function(t,e){return Vs(t,e)}),colorSaturation:Ju(function(t,e){return Vs(t,null,e)}),colorLightness:Ju(function(t,e){return Vs(t,null,null,e)}),colorAlpha:Ju(function(t,e){return Qg(t,e)}),decal:{applyVisual:hs("decal"),_normalizedToVisual:{linear:null,category:cs,piecewise:null,fixed:null}},opacity:{applyVisual:hs("opacity"),_normalizedToVisual:sf([0,1])},liftZ:{applyVisual:hs("liftZ"),_normalizedToVisual:{linear:Or,category:Or,piecewise:Or,fixed:Or}},symbol:{applyVisual:function(t,e,i){i("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:Bw,category:cs,piecewise:function(t,e){var i=lf.call(this,e);return i==null&&(i=Bw.call(this,t)),i},fixed:Or}},symbolSize:{applyVisual:hs("symbolSize"),_normalizedToVisual:sf([0,1])}},n}();function af(n,t){var e=n.visual,i=[];Q(e)?us(e,function(r){i.push(r)}):e!=null&&i.push(e),t||i.length!==1||{color:1,symbol:1}.hasOwnProperty(n.type)||(i[1]=i[0]),Vw(n,i)}function Ju(n){return{applyVisual:function(t,e,i){var r=this.mapValueToVisual(t);i("color",n(e("color"),r))},_normalizedToVisual:sf([0,1])}}function Bw(n){var t=this.option.visual;return t[Math.round(Ae(n,[0,1],[0,t.length-1],!0))]||{}}function hs(n){return function(t,e,i){i(n,this.mapValueToVisual(t))}}function cs(n){var t=this.option.visual;return t[this.option.loop&&n!==Ku?n%t.length:n]}function Or(){return this.option.visual[0]}function sf(n){return{linear:function(t){return Ae(t,n,this.option.visual,!0)},category:cs,piecewise:function(t,e){var i=lf.call(this,e);return i==null&&(i=Ae(t,n,this.option.visual,!0)),i},fixed:Or}}function lf(n){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var i=e[of.findPieceIndex(n,e)];if(i&&i.visual)return i.visual[this.type]}}function Vw(n,t){return n.visual=t,n.type==="color"&&(n.parsedVisual=X(t,function(e){var i=At(e);return i||Je("'"+e+"' is an illegal color, fallback to '#000000'",!0),i||[0,0,0,1]})),t}var Ok={linear:function(n){return Ae(n,this.option.dataExtent,[0,1],!0)},piecewise:function(n){var t=this.option.pieceList,e=of.findPieceIndex(n,t,!0);if(e!=null)return Ae(e,[0,t.length-1],[0,1],!0)},category:function(n){var t=this.option.categories?this.option.categoryMap[n]:n;return t??Ku},fixed:st};function $u(n,t,e){return n?t<=e:t<e}const Nt=of;var Rk=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},Ek=function(n){function t(e){var i=n.call(this,e)||this;return i.type="pointer",i}return V(t,n),t.prototype.getDefaultShape=function(){return new Rk},t.prototype.buildPath=function(e,i){var r=Math.cos,o=Math.sin,a=i.r,s=i.width,l=i.angle,u=i.x-r(l)*s*(s>=a/3?1:2),h=i.y-o(l)*s*(s>=a/3?1:2);l=i.angle-Math.PI/2,e.moveTo(u,h),e.lineTo(i.x+r(l)*s,i.y+o(l)*s),e.lineTo(i.x+r(i.angle)*a,i.y+o(i.angle)*a),e.lineTo(i.x-r(l)*s,i.y-o(l)*s),e.lineTo(u,h)},t}(De);const Nk=Ek;function Qu(n,t){var e=n==null?"":n+"";return t&&(q(t)?e=t.replace("{value}",e):ae(t)&&(e=t(n))),e}var zk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){this.group.removeAll();var o=e.get(["axisLine","lineStyle","color"]),a=function(s,l){var u=s.get("center"),h=l.getWidth(),c=l.getHeight(),p=Math.min(h,c);return{cx:ee(u[0],l.getWidth()),cy:ee(u[1],l.getHeight()),r:ee(s.get("radius"),p/2)}}(e,r);this._renderMain(e,i,r,o,a),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,i,r,o,a){var s=this.group,l=e.get("clockwise"),u=-e.get("startAngle")/180*Math.PI,h=-e.get("endAngle")/180*Math.PI,c=e.getModel("axisLine"),p=c.get("roundCap")?Bu:nn,d=c.get("show"),f=c.getModel("lineStyle"),g=f.get("width"),y=[u,h];Xy(y,!l);for(var v=(h=y[1])-(u=y[0]),m=u,x=[],_=0;d&&_<o.length;_++){var b=new p({shape:{startAngle:m,endAngle:h=u+v*Math.min(Math.max(o[_][0],0),1),cx:a.cx,cy:a.cy,clockwise:l,r0:a.r-g,r:a.r},silent:!0});b.setStyle({fill:o[_][1]}),b.setStyle(f.getLineStyle(["color","width"])),x.push(b),m=h}x.reverse(),A(x,function(S){return s.add(S)});var w=function(S){if(S<=0)return o[0][1];var M;for(M=0;M<o.length;M++)if(o[M][0]>=S&&(M===0?0:o[M-1][0])<S)return o[M][1];return o[M-1][1]};this._renderTicks(e,i,r,w,a,u,h,l,g),this._renderTitleAndDetail(e,i,r,w,a),this._renderAnchor(e,a),this._renderPointer(e,i,r,w,a,u,h,l,g)},t.prototype._renderTicks=function(e,i,r,o,a,s,l,u,h){for(var c,p,d=this.group,f=a.cx,g=a.cy,y=a.r,v=+e.get("min"),m=+e.get("max"),x=e.getModel("splitLine"),_=e.getModel("axisTick"),b=e.getModel("axisLabel"),w=e.get("splitNumber"),S=_.get("splitNumber"),M=ee(x.get("length"),y),T=ee(_.get("length"),y),I=s,C=(l-s)/w,D=C/S,L=x.getModel("lineStyle").getLineStyle(),R=_.getModel("lineStyle").getLineStyle(),P=x.get("distance"),E=0;E<=w;E++){if(c=Math.cos(I),p=Math.sin(I),x.get("show")){var k=new wt({shape:{x1:c*(y-(O=P?P+h:h))+f,y1:p*(y-O)+g,x2:c*(y-M-O)+f,y2:p*(y-M-O)+g},style:L,silent:!0});L.stroke==="auto"&&k.setStyle({stroke:o(E/w)}),d.add(k)}if(b.get("show")){var O=b.get("distance")+P,N=Qu(Xe(E/w*(m-v)+v),b.get("formatter")),B=o(E/w),z=c*(y-M-O)+f,U=p*(y-M-O)+g,Z=b.get("rotate"),F=0;Z==="radial"?(F=-I+2*Math.PI)>Math.PI/2&&(F+=Math.PI):Z==="tangential"?F=-I-Math.PI/2:Re(Z)&&(F=Z*Math.PI/180),F===0?d.add(new ke({style:it(b,{text:N,x:z,y:U,verticalAlign:p<-.8?"top":p>.8?"bottom":"middle",align:c<-.4?"left":c>.4?"right":"center"},{inheritColor:B}),silent:!0})):d.add(new ke({style:it(b,{text:N,x:z,y:U,verticalAlign:"middle",align:"center"},{inheritColor:B}),silent:!0,originX:z,originY:U,rotation:F}))}if(_.get("show")&&E!==w){O=(O=_.get("distance"))?O+h:h;for(var W=0;W<=S;W++){c=Math.cos(I),p=Math.sin(I);var K=new wt({shape:{x1:c*(y-O)+f,y1:p*(y-O)+g,x2:c*(y-T-O)+f,y2:p*(y-T-O)+g},silent:!0,style:R});R.stroke==="auto"&&K.setStyle({stroke:o((E+W/S)/w)}),d.add(K),I+=D}I-=D}else I+=C}},t.prototype._renderPointer=function(e,i,r,o,a,s,l,u,h){var c=this.group,p=this._data,d=this._progressEls,f=[],g=e.get(["pointer","show"]),y=e.getModel("progress"),v=y.get("show"),m=e.getData(),x=m.mapDimension("value"),_=+e.get("min"),b=+e.get("max"),w=[_,b],S=[s,l];function M(I,C){var D,L=m.getItemModel(I).getModel("pointer"),R=ee(L.get("width"),a.r),P=ee(L.get("length"),a.r),E=e.get(["pointer","icon"]),k=L.get("offsetCenter"),O=ee(k[0],a.r),N=ee(k[1],a.r),B=L.get("keepAspect");return(D=E?ut(E,O-R/2,N-P,R,P,null,B):new Nk({shape:{angle:-Math.PI/2,width:R,r:P,x:O,y:N}})).rotation=-(C+Math.PI/2),D.x=a.cx,D.y=a.cy,D}function T(I,C){var D=y.get("roundCap")?Bu:nn,L=y.get("overlap"),R=L?y.get("width"):h/m.count(),P=L?a.r-R:a.r-(I+1)*R,E=L?a.r:a.r-I*R,k=new D({shape:{startAngle:s,endAngle:C,cx:a.cx,cy:a.cy,clockwise:u,r0:P,r:E}});return L&&(k.z2=b-m.get(x,I)%b),k}(v||g)&&(m.diff(p).add(function(I){var C=m.get(x,I);if(g){var D=M(I,s);et(D,{rotation:-((isNaN(+C)?S[0]:Ae(C,w,S,!0))+Math.PI/2)},e),c.add(D),m.setItemGraphicEl(I,D)}if(v){var L=T(I,s),R=y.get("clip");et(L,{shape:{endAngle:Ae(C,w,S,R)}},e),c.add(L),Oc(e.seriesIndex,m.dataType,I,L),f[I]=L}}).update(function(I,C){var D=m.get(x,I);if(g){var L=p.getItemGraphicEl(C),R=L?L.rotation:s,P=M(I,R);P.rotation=R,ze(P,{rotation:-((isNaN(+D)?S[0]:Ae(D,w,S,!0))+Math.PI/2)},e),c.add(P),m.setItemGraphicEl(I,P)}if(v){var E=d[C],k=T(I,E?E.shape.endAngle:s),O=y.get("clip");ze(k,{shape:{endAngle:Ae(D,w,S,O)}},e),c.add(k),Oc(e.seriesIndex,m.dataType,I,k),f[I]=k}}).execute(),m.each(function(I){var C=m.getItemModel(I),D=C.getModel("emphasis"),L=D.get("focus"),R=D.get("blurScope"),P=D.get("disabled");if(g){var E=m.getItemGraphicEl(I),k=m.getItemVisual(I,"style"),O=k.fill;if(E instanceof Gt){var N=E.style;E.useStyle(G({image:N.image,x:N.x,y:N.y,width:N.width,height:N.height},k))}else E.useStyle(k),E.type!=="pointer"&&E.setColor(O);E.setStyle(C.getModel(["pointer","itemStyle"]).getItemStyle()),E.style.fill==="auto"&&E.setStyle("fill",o(Ae(m.get(x,I),w,[0,1],!0))),E.z2EmphasisLift=0,oi(E,C),Bn(E,L,R,P)}if(v){var B=f[I];B.useStyle(m.getItemVisual(I,"style")),B.setStyle(C.getModel(["progress","itemStyle"]).getItemStyle()),B.z2EmphasisLift=0,oi(B,C),Bn(B,L,R,P)}}),this._progressEls=f)},t.prototype._renderAnchor=function(e,i){var r=e.getModel("anchor");if(r.get("show")){var o=r.get("size"),a=r.get("icon"),s=r.get("offsetCenter"),l=r.get("keepAspect"),u=ut(a,i.cx-o/2+ee(s[0],i.r),i.cy-o/2+ee(s[1],i.r),o,o,null,l);u.z2=r.get("showAbove")?1:0,u.setStyle(r.getModel("itemStyle").getItemStyle()),this.group.add(u)}},t.prototype._renderTitleAndDetail=function(e,i,r,o,a){var s=this,l=e.getData(),u=l.mapDimension("value"),h=+e.get("min"),c=+e.get("max"),p=new fe,d=[],f=[],g=e.isAnimationEnabled(),y=e.get(["pointer","showAbove"]);l.diff(this._data).add(function(v){d[v]=new ke({silent:!0}),f[v]=new ke({silent:!0})}).update(function(v,m){d[v]=s._titleEls[m],f[v]=s._detailEls[m]}).execute(),l.each(function(v){var m=l.getItemModel(v),x=l.get(u,v),_=new fe,b=o(Ae(x,[h,c],[0,1],!0)),w=m.getModel("title");if(w.get("show")){var S=w.get("offsetCenter"),M=a.cx+ee(S[0],a.r),T=a.cy+ee(S[1],a.r);(k=d[v]).attr({z2:y?0:2,style:it(w,{x:M,y:T,text:l.getName(v),align:"center",verticalAlign:"middle"},{inheritColor:b})}),_.add(k)}var I=m.getModel("detail");if(I.get("show")){var C=I.get("offsetCenter"),D=a.cx+ee(C[0],a.r),L=a.cy+ee(C[1],a.r),R=ee(I.get("width"),a.r),P=ee(I.get("height"),a.r),E=e.get(["progress","show"])?l.getItemVisual(v,"style").fill:b,k=f[v],O=I.get("formatter");k.attr({z2:y?0:2,style:it(I,{x:D,y:L,text:Qu(x,O),width:isNaN(R)?null:R,height:isNaN(P)?null:P,align:"center",verticalAlign:"middle"},{inheritColor:E})}),dm(k,{normal:I},x,function(N){return Qu(N,O)}),g&&fm(k,v,l,e,{getFormattedLabel:function(N,B,z,U,Z,F){return Qu(F?F.interpolatedValue:x,O)}}),_.add(k)}p.add(_)}),this.group.add(p),this._titleEls=d,this._detailEls=f},t.type="gauge",t}(at);const Bk=zk,Vk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return V(t,n),t.prototype.getInitialData=function(e,i){return Wu(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(Mt);function Fk(n){(function(t){if(!t.parallel){var e=!1;A(t.series,function(i){i&&i.type==="parallel"&&(e=!0)}),e&&(t.parallel=[{}])}})(n),function(t){var e=Qe(t.parallelAxis);A(e,function(i){if(Q(i)){var r=i.parallelIndex||0,o=Qe(t.parallel)[r];o&&o.parallelAxisDefault&&pe(i,o.parallelAxisDefault,!1)}})}(n)}var Gk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){this._model=e,this._api=r,this._handlers||(this._handlers={},A(Hk,function(o,a){r.getZr().on(a,this._handlers[a]=ne(o,this))},this)),Ba(this,"_throttledDispatchExpand",e.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(e,i){Va(this,"_throttledDispatchExpand"),A(this._handlers,function(r,o){i.getZr().off(o,r)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(e){this._dispatchExpand(e)},t.prototype._dispatchExpand=function(e){e&&this._api.dispatchAction(G({type:"parallelAxisExpand"},e))},t.type="parallel",t}(je),Hk={mousedown:function(n){uf(this,"click")&&(this._mouseDownPoint=[n.offsetX,n.offsetY])},mouseup:function(n){var t=this._mouseDownPoint;if(uf(this,"click")&&t){var e=[n.offsetX,n.offsetY];if(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)>5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(n){if(!this._mouseDownPoint&&uf(this,"mousemove")){var t=this._model,e=t.coordinateSystem.getSlidedAxisExpandWindow([n.offsetX,n.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 uf(n,t){var e=n._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}const Wk=Gk,Yk=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.init=function(){n.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var i=this.option;e&&pe(i,e,!0),this._initDimensions()},t.prototype.contains=function(e,i){var r=e.get("parallelIndex");return r!=null&&i.getComponent("parallel",r)===this},t.prototype.setAxisExpand=function(e){A(["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=[];A(We(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(r){return(r.get("parallelIndex")||0)===this.componentIndex},this),function(r){e.push("dim"+r.get("dim")),i.push(r.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}(Te);var Xk=function(n){function t(e,i,r,o,a){var s=n.call(this,e,i,r)||this;return s.type=o||"value",s.axisIndex=a,s}return V(t,n),t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Xn);const Uk=Xk;function Rr(n,t,e,i,r,o){n=n||0;var a=e[1]-e[0];if(r!=null&&(r=Do(r,[0,a])),o!=null&&(o=Math.max(o,r??0)),i==="all"){var s=Math.abs(t[1]-t[0]);s=Do(s,[0,a]),r=o=Do(s,[r,o]),i=0}t[0]=Do(t[0],e),t[1]=Do(t[1],e);var l=hf(t,i);t[i]+=n;var u,h=r||0,c=e.slice();return l.sign<0?c[0]+=h:c[1]-=h,t[i]=Do(t[i],c),u=hf(t,i),r!=null&&(u.sign!==l.sign||u.span<r)&&(t[1-i]=t[i]+l.sign*r),u=hf(t,i),o!=null&&u.span>o&&(t[1-i]=t[i]+u.sign*o),t}function hf(n,t){var e=n[t]-n[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Do(n,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,n))}var cf=A,Fw=Math.min,Gw=Math.max,Hw=Math.floor,Zk=Math.ceil,Ww=Xe,jk=Math.PI,qk=function(){function n(t,e,i){this.type="parallel",this._axesMap=ie(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,i)}return n.prototype._init=function(t,e,i){var r=t.dimensions,o=t.parallelAxisIndex;cf(r,function(a,s){var l=o[s],u=e.getComponent("parallelAxis",l),h=this._axesMap.set(a,new Uk(a,Au(u),[0,0],u.get("type"),l)),c=h.type==="category";h.onBand=c&&u.get("boundaryGap"),h.inverse=u.get("inverse"),u.axis=h,h.model=u,h.coordinateSystem=u.coordinateSystem=this},this)},n.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},n.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),i=e.axisBase,r=e.layoutBase,o=e.pixelDimIndex,a=t[1-o],s=t[o];return a>=i&&a<=i+e.axisLength&&s>=r&&s<=r+e.layoutLength},n.prototype.getModel=function(){return this._model},n.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(i){if(t.contains(i,e)){var r=i.getData();cf(this.dimensions,function(o){var a=this._axesMap.get(o);a.scale.unionExtentFromData(r,r.mapDimension(o)),Co(a.scale,a.model)},this)}},this)},n.prototype.resize=function(t,e){this._rect=St(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},n.prototype.getRect=function(){return this._rect},n.prototype._makeLayoutInfo=function(){var t,e=this._model,i=this._rect,r=["x","y"],o=["width","height"],a=e.get("layout"),s=a==="horizontal"?0:1,l=i[o[s]],u=[0,l],h=this.dimensions.length,c=eh(e.get("axisExpandWidth"),u),p=eh(e.get("axisExpandCount")||0,[0,h]),d=e.get("axisExpandable")&&h>3&&h>p&&p>1&&c>0&&l>0,f=e.get("axisExpandWindow");f?(t=eh(f[1]-f[0],u),f[1]=f[0]+t):(t=eh(c*(p-1),u),(f=[c*(e.get("axisExpandCenter")||Hw(h/2))-t/2])[1]=f[0]+t);var g=(l-t)/(h-p);g<3&&(g=0);var y=[Hw(Ww(f[0]/c,1))+1,Zk(Ww(f[1]/c,1))-1],v=g/c*f[0];return{layout:a,pixelDimIndex:s,layoutBase:i[r[s]],layoutLength:l,axisBase:i[r[1-s]],axisLength:i[o[1-s]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:g,axisExpandWindow:f,axisCount:h,winInnerIndices:y,axisExpandWindow0Pos:v}},n.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,i=this.dimensions,r=this._makeLayoutInfo(),o=r.layout;e.each(function(a){var s=[0,r.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),cf(i,function(a,s){var l=(r.axisExpandable?Jk:Kk)(s,r),u={horizontal:{x:l.position,y:r.axisLength},vertical:{x:0,y:l.position}},h={horizontal:jk/2,vertical:0},c=[u[o].x+t.x,u[o].y+t.y],p=h[o],d=[1,0,0,1,0,0];Zi(d,d,p),Ui(d,d,c),this._axesLayout[a]={position:c,rotation:p,transform:d,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},n.prototype.getAxis=function(t){return this._axesMap.get(t)},n.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},n.prototype.eachActiveState=function(t,e,i,r){i==null&&(i=0),r==null&&(r=t.count());var o=this._axesMap,a=this.dimensions,s=[],l=[];A(a,function(g){s.push(t.mapDimension(g)),l.push(o.get(g).model)});for(var u=this.hasAxisBrushed(),h=i;h<r;h++){var c=void 0;if(u){c="active";for(var p=t.getValues(s,h),d=0,f=a.length;d<f;d++)if(l[d].getActiveState(p[d])==="inactive"){c="inactive";break}}else c="normal";e(c,h)}},n.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,i=!1,r=0,o=t.length;r<o;r++)e.get(t[r]).model.getActiveState()!=="normal"&&(i=!0);return i},n.prototype.axisCoordToPoint=function(t,e){return Gn([t,0],this._axesLayout[e].transform)},n.prototype.getAxisLayout=function(t){return oe(this._axesLayout[t])},n.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),i=e.pixelDimIndex,r=e.axisExpandWindow.slice(),o=r[1]-r[0],a=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:r};var s,l=t[i]-e.layoutBase-e.axisExpandWindow0Pos,u="slide",h=e.axisCollapseWidth,c=this._model.get("axisExpandSlideTriggerArea"),p=c[0]!=null;if(h)p&&h&&l<o*c[0]?(u="jump",s=l-o*c[2]):p&&h&&l>o*(1-c[0])?(u="jump",s=l-o*(1-c[2])):(s=l-o*c[1])>=0&&(s=l-o*(1-c[1]))<=0&&(s=0),(s*=e.axisExpandWidth/h)?Rr(s,r,a,"all"):u="none";else{var d=r[1]-r[0];(r=[Gw(0,a[1]*l/d-d/2)])[1]=Fw(a[1],r[0]+d),r[0]=r[1]-d}return{axisExpandWindow:r,behavior:u}},n}();function eh(n,t){return Fw(Gw(n,t[0]),t[1])}function Kk(n,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*n,axisNameAvailableWidth:e,axisLabelShow:!0}}function Jk(n,t){var e,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,h=!1;return n<l[0]?(e=n*s,i=s):n<=l[1]?(e=t.axisExpandWindow0Pos+n*o-t.axisExpandWindow[0],u=o,h=!0):(e=r-(a-1-n)*s,i=s),{position:e,axisNameAvailableWidth:u,axisLabelShow:h,nameTruncateMaxWidth:i}}const $k=qk,Qk={create:function(n,t){var e=[];return n.eachComponent("parallel",function(i,r){var o=new $k(i,n,t);o.name="parallel_"+r,o.resize(i,t),i.coordinateSystem=o,o.model=i,e.push(o)}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="parallel"){var r=i.getReferringComponents("parallel",nt).models[0];i.coordinateSystem=r.coordinateSystem}}),e}};var Yw=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.activeIntervals=[],e}return V(t,n),t.prototype.getAreaSelectStyle=function(){return $r([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(e){var i=this.activeIntervals=oe(e);if(i)for(var r=i.length-1;r>=0;r--)ei(i[r])},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 r=i[0];if(r[0]<=e&&e<=r[1])return"active"}else for(var o=0,a=i.length;o<a;o++)if(i[o][0]<=e&&e<=i[o][1])return"active";return"inactive"},t}(Te);ct(Yw,$a);const Xw=Yw;var Er=!0,ps=Math.min,ko=Math.max,eL=Math.pow,tL=1e4,nL=6,iL=6,Uw="globalPan",rL={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},oL={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Zw={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},aL=0,sL=function(n){function t(e){var i=n.call(this)||this;return i._track=[],i._covers=[],i._handlers={},ue(e),i._zr=e,i.group=new fe,i._uid="brushController_"+aL++,A(uL,function(r,o){this._handlers[o]=ne(r,this)},i),i}return V(t,n),t.prototype.enableBrush=function(e){return ue(this._mounted),this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var i=this._zr;this._enableGlobalPan||function(r,o,a){Xd(r)[o]=a}(i,Uw,this._uid),A(this._handlers,function(r,o){i.on(o,r)}),this._brushType=e.brushType,this._brushOption=pe(oe(Zw),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;(function(i,r,o){var a=Xd(i);a[r]===o&&(a[r]=null)})(e,Uw,this._uid),A(this._handlers,function(i,r){e.off(r,i)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var i=this._panels={};A(e,function(r){i[r.panelId]=oe(r)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._mounted=!0,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){ue(this._mounted),e=X(e,function(h){return pe(oe(Zw),h,!0)});var i="\0-brush-index-",r=this._covers,o=this._covers=[],a=this,s=this._creatingCover;return new cd(r,e,function(h,c){return l(h.__brushOption,c)},l).add(u).update(u).remove(function(h){r[h]!==s&&a.group.remove(r[h])}).execute(),this;function l(h,c){return(h.id!=null?h.id:i+c)+"-"+h.brushType}function u(h,c){var p=e[h];if(c!=null&&r[c]===s)o[h]=r[c];else{var d=o[h]=c!=null?(r[c].__brushOption=p,r[c]):qw(a,jw(a,p));pf(a,d)}}},t.prototype.unmount=function(){if(this._mounted)return this.enableBrush(!1),gf(this),this._zr.remove(this.group),this._mounted=!1,this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Zt);function jw(n,t){var e=th[t.brushType].createCover(n,t);return e.__brushOption=t,Jw(e,t),n.group.add(e),e}function qw(n,t){var e=df(t);return e.endCreating&&(e.endCreating(n,t),Jw(t,t.__brushOption)),t}function Kw(n,t){var e=t.__brushOption;df(t).updateCoverShape(n,t,e.range,e)}function Jw(n,t){var e=t.z;e==null&&(e=tL),n.traverse(function(i){i.z=e,i.z2=e})}function pf(n,t){df(t).updateCommon(n,t),Kw(n,t)}function df(n){return th[n.__brushOption.brushType]}function ff(n,t,e){var i,r=n._panels;if(!r)return Er;var o=n._transform;return A(r,function(a){a.isTargetByCursor(t,e,o)&&(i=a)}),i}function $w(n,t){var e=n._panels;if(!e)return Er;var i=t.__brushOption.panelId;return i!=null?e[i]:Er}function gf(n){var t=n._covers,e=t.length;return A(t,function(i){n.group.remove(i)},n),t.length=0,!!e}function Nr(n,t){var e=X(n._covers,function(i){var r=i.__brushOption,o=oe(r.range);return{brushType:r.brushType,panelId:r.panelId,range:o}});n.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function Qw(n){var t=n.length-1;return t<0&&(t=0),[n[0],n[t]]}function eb(n,t,e,i){var r=new fe;return r.add(new Ie({name:"main",style:vf(e),silent:!0,draggable:!0,cursor:"move",drift:ve(ib,n,t,r,["n","s","w","e"]),ondragend:ve(Nr,t,{isEnd:!0})})),A(i,function(o){r.add(new Ie({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ve(ib,n,t,r,o),ondragend:ve(Nr,t,{isEnd:!0})}))}),r}function tb(n,t,e,i){var r=i.brushStyle.lineWidth||0,o=ko(r,iL),a=e[0][0],s=e[1][0],l=a-r/2,u=s-r/2,h=e[0][1],c=e[1][1],p=h-o+r/2,d=c-o+r/2,f=h-a,g=c-s,y=f+r,v=g+r;di(n,t,"main",a,s,f,g),i.transformable&&(di(n,t,"w",l,u,o,v),di(n,t,"e",p,u,o,v),di(n,t,"n",l,u,y,o),di(n,t,"s",l,d,y,o),di(n,t,"nw",l,u,o,o),di(n,t,"ne",p,u,o,o),di(n,t,"sw",l,d,o,o),di(n,t,"se",p,d,o,o))}function yf(n,t){var e=t.__brushOption,i=e.transformable,r=t.childAt(0);r.useStyle(vf(e)),r.attr({silent:!i,cursor:i?"move":"default"}),A([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var a=t.childOfName(o.join("")),s=o.length===1?mf(n,o[0]):function(l,u){var h=[mf(l,u[0]),mf(l,u[1])];return(h[0]==="e"||h[0]==="w")&&h.reverse(),h.join("")}(n,o);a&&a.attr({silent:!i,invisible:!i,cursor:i?oL[s]+"-resize":null})})}function di(n,t,e,i,r,o,a){var s=t.childOfName(e);s&&s.setShape(function(l){var u=ps(l[0][0],l[1][0]),h=ps(l[0][1],l[1][1]),c=ko(l[0][0],l[1][0]),p=ko(l[0][1],l[1][1]);return{x:u,y:h,width:c-u,height:p-h}}(xf(n,t,[[i,r],[i+o,r+a]])))}function vf(n){return le({strokeNoScale:!0},n.brushStyle)}function nb(n,t,e,i){var r=[ps(n,e),ps(t,i)],o=[ko(n,e),ko(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function mf(n,t){var e=Tl({w:"left",e:"right",n:"top",s:"bottom"}[t],function(i){return Ci(i.group)}(n));return{left:"w",right:"e",top:"n",bottom:"s"}[e]}function ib(n,t,e,i,r,o){var a=e.__brushOption,s=n.toRectRange(a.range),l=rb(t,r,o);A(i,function(u){var h=rL[u];s[h[0]][h[1]]+=l[h[0]]}),a.range=n.fromRectRange(nb(s[0][0],s[1][0],s[0][1],s[1][1])),pf(t,e),Nr(t,{isEnd:!1})}function lL(n,t,e,i){var r=t.__brushOption.range,o=rb(n,e,i);A(r,function(a){a[0]+=o[0],a[1]+=o[1]}),pf(n,t),Nr(n,{isEnd:!1})}function rb(n,t,e){var i=n.group,r=i.transformCoordToLocal(t,e),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function xf(n,t,e){var i=$w(n,t);return i&&i!==Er?i.clipPath(e,n._transform):oe(e)}function _f(n){var t=n.event;t.preventDefault&&t.preventDefault()}function wf(n,t,e){return n.childOfName("main").contain(t,e)}function ob(n,t,e,i){var r,o=n._creatingCover,a=n._creatingPanel,s=n._brushOption;if(n._track.push(e.slice()),function(h){var c=h._track;if(!c.length)return!1;var p=c[c.length-1],d=c[0],f=p[0]-d[0],g=p[1]-d[1];return eL(f*f+g*g,.5)>nL}(n)||o){if(a&&!o){s.brushMode==="single"&&gf(n);var l=oe(s);l.brushType=ab(l.brushType,a),l.panelId=a===Er?null:a.panelId,o=n._creatingCover=jw(n,l),n._covers.push(o)}if(o){var u=th[ab(n._brushType,a)];o.__brushOption.range=u.getCreatingRange(xf(n,o,n._track)),i&&(qw(n,o),u.updateCommon(n,o)),Kw(n,o),r={isEnd:i}}}else i&&s.brushMode==="single"&&s.removeOnClick&&ff(n,t,e)&&gf(n)&&(r={isEnd:i,removeOnClick:!0});return r}function ab(n,t){return n==="auto"?(ue(t&&t.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),t.defaultBrushType):n}var uL={mousedown:function(n){if(this._dragging)sb(this,n);else if(!n.target||!n.target.draggable){_f(n);var t=this.group.transformCoordToLocal(n.offsetX,n.offsetY);this._creatingCover=null,(this._creatingPanel=ff(this,n,t))&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(n){var t=n.offsetX,e=n.offsetY,i=this.group.transformCoordToLocal(t,e);if(function(o,a,s){if(o._brushType&&!function(d,f,g){var y=d._zr;return f<0||f>y.getWidth()||g<0||g>y.getHeight()}(o,a.offsetX,a.offsetY)){var l=o._zr,u=o._covers,h=ff(o,a,s);if(!o._dragging)for(var c=0;c<u.length;c++){var p=u[c].__brushOption;if(h&&(h===Er||p.panelId===h.panelId)&&th[p.brushType].contain(u[c],s[0],s[1]))return}h&&l.setCursorStyle("crosshair")}}(this,n,i),this._dragging){_f(n);var r=ob(this,n,i,!1);r&&Nr(this,r)}},mouseup:function(n){sb(this,n)}};function sb(n,t){if(n._dragging){_f(t);var e=t.offsetX,i=t.offsetY,r=n.group.transformCoordToLocal(e,i),o=ob(n,t,r,!0);n._dragging=!1,n._track=[],n._creatingCover=null,o&&Nr(n,o)}}var th={lineX:lb(0),lineY:lb(1),rect:{createCover:function(n,t){function e(i){return i}return eb({toRectRange:e,fromRectRange:e},n,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(n){var t=Qw(n);return nb(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(n,t,e,i){tb(n,t,e,i)},updateCommon:yf,contain:wf},polygon:{createCover:function(n,t){var e=new fe;return e.add(new wn({name:"main",style:vf(t),silent:!0})),e},getCreatingRange:function(n){return n},endCreating:function(n,t){t.remove(t.childAt(0)),t.add(new Fn({name:"main",draggable:!0,drift:ve(lL,n,t),ondragend:ve(Nr,n,{isEnd:!0})}))},updateCoverShape:function(n,t,e,i){t.childAt(0).setShape({points:xf(n,t,e)})},updateCommon:yf,contain:wf}};function lb(n){return{createCover:function(t,e){return eb({toRectRange:function(i){var r=[i,[0,100]];return n&&r.reverse(),r},fromRectRange:function(i){return i[n]}},t,e,[[["w"],["e"]],[["n"],["s"]]][n])},getCreatingRange:function(t){var e=Qw(t);return[ps(e[0][n],e[1][n]),ko(e[0][n],e[1][n])]},updateCoverShape:function(t,e,i,r){var o,a=$w(t,e);if(a!==Er&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(n);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-n]]}var l=[i,o];n&&l.reverse(),tb(t,e,l,r)},updateCommon:yf,contain:wf}}const ub=sL;function hb(n){return n=bf(n),function(t){return $c(t,n)}}function cb(n,t){return n=bf(n),function(e){var i=t??e,r=i?n.width:n.height,o=i?n.x:n.y;return[o,o+(r||0)]}}function pb(n,t,e){var i=bf(n);return function(r,o){return i.contain(o[0],o[1])&&!qd(r,t,e)}}function bf(n){return ye.create(n)}var hL=["axisLine","axisTickLabel","axisName"],cL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.init=function(e,i){n.prototype.init.apply(this,arguments),(this._brushController=new ub(i.getZr())).on("brush",ne(this._onBrush,this))},t.prototype.render=function(e,i,r,o){if(!function(f,g,y){return y&&y.type==="axisAreaSelect"&&g.findComponents({mainType:"parallelAxis",query:y})[0]===f}(e,i,o)){this.axisModel=e,this.api=r,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new fe,this.group.add(this._axisGroup),e.get("show")){var s=function(f,g){return g.getComponent("parallel",f.get("parallelIndex"))}(e,i),l=s.coordinateSystem,u=e.getAreaSelectStyle(),h=u.width,c=e.axis.dim,p=G({strokeContainThreshold:h},l.getAxisLayout(c)),d=new zi(e,p);A(hL,d.add,d),this._axisGroup.add(d.getGroup()),this._refreshBrushController(p,u,e,s,h,r),Il(a,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,i,r,o,a,s){var l=r.axis.getExtent(),u=l[1]-l[0],h=Math.min(30,.1*Math.abs(u)),c=ye.create({x:l[0],y:-a/2,width:u,height:a});c.x-=h,c.width+=2*h,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:hb(c),isTargetByCursor:pb(c,s,o),getLinearBrushOtherExtent:cb(c,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers(function(p){var d=p.axis;return X(p.activeIntervals,function(f){return{brushType:"lineX",panelId:"pl",range:[d.dataToCoord(f[0],!0),d.dataToCoord(f[1],!0)]}})}(r))},t.prototype._onBrush=function(e){var i=e.areas,r=this.axisModel,o=r.axis,a=X(i,function(s){return[o.coordToData(s.range[0],!0),o.coordToData(s.range[1],!0)]});(!r.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:r.id,intervals:a})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(je);const pL=cL;var dL={type:"axisAreaSelect",event:"axisAreaSelected"},fL={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10},gL=["itemStyle","borderWidth"],db=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Sf=new xn;function fb(n,t,e,i){var r=n.getItemLayout(t),o=e.get("symbolRepeat"),a=e.get("symbolClip"),s=e.get("symbolPosition")||"start",l=(e.get("symbolRotate")||0)*Math.PI/180||0,u=e.get("symbolPatternSize")||2,h=e.isAnimationEnabled(),c={dataIndex:t,layout:r,itemModel:e,symbolType:n.getItemVisual(t,"symbol")||"circle",style:n.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:e.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:h?e:null,hoverScale:h&&e.get(["emphasis","scale"]),z2:e.getShallow("z",!0)||0};(function(f,g,y,v,m){var x,_=v.valueDim,b=f.get("symbolBoundingData"),w=v.coordSys.getOtherAxis(v.coordSys.getBaseAxis()),S=w.toGlobalCoord(w.dataToCoord(0)),M=1-+(y[_.wh]<=0);if(Y(b)){var T=[Mf(w,b[0])-S,Mf(w,b[1])-S];T[1]<T[0]&&T.reverse(),x=T[M]}else x=b!=null?Mf(w,b)-S:g?v.coordSysExtent[_.index][M]-S:y[_.wh];m.boundingLength=x,g&&(m.repeatCutLength=y[_.wh]),m.pxSign=x>0?1:-1})(e,o,r,i,c),function(f,g,y,v,m,x,_,b,w,S){var M,T=w.valueDim,I=w.categoryDim,C=Math.abs(y[I.wh]),D=f.getItemVisual(g,"symbolSize");M=Y(D)?D.slice():D==null?["100%","100%"]:[D,D],M[I.index]=ee(M[I.index],C),M[T.index]=ee(M[T.index],v?C:Math.abs(x)),S.symbolSize=M;var L=S.symbolScale=[M[0]/b,M[1]/b];L[T.index]*=(w.isHorizontal?-1:1)*_}(n,t,r,o,0,c.boundingLength,c.pxSign,u,i,c),function(f,g,y,v,m){var x=f.get(gL)||0;x&&(Sf.attr({scaleX:g[0],scaleY:g[1],rotation:y}),Sf.updateTransform(),x/=Sf.getLineScale(),x*=g[v.valueDim.index]),m.valueLineWidth=x||0}(e,c.symbolScale,l,i,c);var p=c.symbolSize,d=Gp(e.get("symbolOffset"),p);return function(f,g,y,v,m,x,_,b,w,S,M,T){var I=M.categoryDim,C=M.valueDim,D=T.pxSign,L=Math.max(g[C.index]+b,0),R=L;if(v){var P=Math.abs(w),E=Yt(f.get("symbolMargin"),"15%")+"",k=!1;E.lastIndexOf("!")===E.length-1&&(k=!0,E=E.slice(0,E.length-1));var O=ee(E,g[C.index]),N=Math.max(L+2*O,0),B=k?0:2*O,z=js(v),U=z?v:Tb((P+B)/N);N=L+2*(O=(P-U*L)/2/(k?U:Math.max(U-1,1))),B=k?0:2*O,z||v==="fixed"||(U=S?Tb((Math.abs(S)+B)/N):0),R=U*N-B,T.repeatTimes=U,T.symbolMargin=O}var Z=D*(R/2),F=T.pathPosition=[];F[I.index]=y[I.wh]/2,F[C.index]=_==="start"?Z:_==="end"?w-Z:w/2,x&&(F[0]+=x[0],F[1]+=x[1]);var W=T.bundlePosition=[];W[I.index]=y[I.xy],W[C.index]=y[C.xy];var K=T.barRectShape=G({},y);K[C.wh]=D*Math.max(Math.abs(y[C.wh]),Math.abs(F[C.index]+Z)),K[I.wh]=y[I.wh];var se=T.clipShape={};se[I.xy]=-y[I.xy],se[I.wh]=M.ecSize[I.wh],se[C.xy]=0,se[C.wh]=y[C.wh]}(e,p,r,o,0,d,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function Mf(n,t){return n.toGlobalCoord(n.dataToCoord(n.scale.parse(t)))}function gb(n){var t=n.symbolPatternSize,e=ut(n.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),e.type!=="image"&&e.setStyle({strokeNoScale:!0}),e}function yb(n,t,e,i){var r=n.__pictorialBundle,o=e.symbolSize,a=e.valueLineWidth,s=e.pathPosition,l=t.valueDim,u=e.repeatTimes||0,h=0,c=o[t.valueDim.index]+a+2*e.symbolMargin;for(Tf(n,function(g){g.__pictorialAnimationIndex=h,g.__pictorialRepeatTimes=u,h<u?Lo(g,null,f(h),e,i):Lo(g,null,{scaleX:0,scaleY:0},e,i,function(){r.remove(g)}),h++});h<u;h++){var p=gb(e);p.__pictorialAnimationIndex=h,p.__pictorialRepeatTimes=u,r.add(p);var d=f(h);Lo(p,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},e,i)}function f(g){var y=s.slice(),v=e.pxSign,m=g;return(e.symbolRepeatDirection==="start"?v>0:v<0)&&(m=u-1-g),y[l.index]=c*(m-u/2+.5)+s[l.index],{x:y[0],y:y[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function vb(n,t,e,i){var r=n.__pictorialBundle,o=n.__pictorialMainPath;o?Lo(o,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,i):(o=n.__pictorialMainPath=gb(e),r.add(o),Lo(o,{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 mb(n,t,e){var i=G({},t.barRectShape),r=n.__pictorialBarRect;r?Lo(r,null,{shape:i},t,e):((r=n.__pictorialBarRect=new Ie({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,n.add(r))}function xb(n,t,e,i){if(e.symbolClip){var r=n.__pictorialClipPath,o=G({},e.clipShape),a=t.valueDim,s=e.animationModel,l=e.dataIndex;if(r)ze(r,{shape:o},s,l);else{o[a.wh]=0,r=new Ie({shape:o}),n.__pictorialBundle.setClipPath(r),n.__pictorialClipPath=r;var u={};u[a.wh]=e.clipShape[a.wh],Al[i?"updateProps":"initProps"](r,{shape:u},s,l)}}}function _b(n,t){var e=n.getItemModel(t);return e.getAnimationDelayParams=yL,e.isAnimationEnabled=vL,e}function yL(n){return{index:n.__pictorialAnimationIndex,count:n.__pictorialRepeatTimes}}function vL(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function wb(n,t,e,i){var r=new fe,o=new fe;return r.add(o),r.__pictorialBundle=o,o.x=e.bundlePosition[0],o.y=e.bundlePosition[1],e.symbolRepeat?yb(r,t,e):vb(r,0,e),mb(r,e,i),xb(r,t,e,i),r.__pictorialShapeStr=Sb(n,e),r.__pictorialSymbolMeta=e,r}function bb(n,t,e,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];Tf(i,function(a){o.push(a)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(e=null),A(o,function(a){Ii(a,{scaleX:0,scaleY:0},e,t,function(){i.parent&&i.parent.remove(i)})}),n.setItemGraphicEl(t,null)}function Sb(n,t){return[n.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Tf(n,t,e){A(n.__pictorialBundle.children(),function(i){i!==n.__pictorialBarRect&&t.call(e,i)})}function Lo(n,t,e,i,r,o){t&&n.attr(t),i.symbolClip&&!r?e&&n.attr(e):e&&Al[r?"updateProps":"initProps"](n,e,i.animationModel,i.dataIndex,o)}function Mb(n,t,e){var i=e.dataIndex,r=e.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),h=o.get("focus"),c=o.get("blurScope"),p=o.get("scale");Tf(n,function(f){if(f instanceof Gt){var g=f.style;f.useStyle(G({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},e.style))}else f.useStyle(e.style);var y=f.ensureState("emphasis");y.style=a,p&&(y.scaleX=1.1*f.scaleX,y.scaleY=1.1*f.scaleY),f.ensureState("blur").style=s,f.ensureState("select").style=l,u&&(f.cursor=u),f.z2=e.z2});var d=t.valueDim.posDesc[+(e.boundingLength>0)];ai(n.__pictorialBarRect,si(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:Eu(t.seriesModel.getData(),i),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:d}),Bn(n,h,c,o.get("disabled"))}function Tb(n){var t=Math.round(n);return Math.abs(n-t)<1e-4?t:Math.ceil(n)}const mL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){var o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis().isHorizontal(),h=l.master.getRect(),c={ecSize:{width:r.getWidth(),height:r.getHeight()},seriesModel:e,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:u,valueDim:db[+u],categoryDim:db[1-+u]};return a.diff(s).add(function(p){if(a.hasValue(p)){var d=_b(a,p),f=fb(a,p,d,c),g=wb(a,c,f);a.setItemGraphicEl(p,g),o.add(g),Mb(g,c,f)}}).update(function(p,d){var f=s.getItemGraphicEl(d);if(a.hasValue(p)){var g=_b(a,p),y=fb(a,p,g,c),v=Sb(a,y);f&&v!==f.__pictorialShapeStr&&(o.remove(f),a.setItemGraphicEl(p,null),f=null),f?function(m,x,_){var b=_.animationModel,w=_.dataIndex,S=m.__pictorialBundle;ze(S,{x:_.bundlePosition[0],y:_.bundlePosition[1]},b,w),_.symbolRepeat?yb(m,x,_,!0):vb(m,x,_,!0),mb(m,_,!0),xb(m,x,_,!0)}(f,c,y):f=wb(a,c,y,!0),a.setItemGraphicEl(p,f),f.__pictorialSymbolMeta=y,o.add(f),Mb(f,c,y)}else o.remove(f)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&bb(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute(),this._data=a,this.group},t.prototype.remove=function(e,i){var r=this.group,o=this._data;e.get("animation")?o&&o.eachItemGraphicEl(function(a){bb(o,_e(a).dataIndex,e,a)}):r.removeAll()},t.type="pictorialBar",t}(at),xL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return V(t,n),t.prototype.getInitialData=function(e){return e.stack=null,n.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=xr(zu.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(zu);var zr=Ne(),Ib=oe,If=ne,_L=function(){function n(){this._dragging=!1,this.animationThreshold=15}return n.prototype.render=function(t,e,i,r){var o=e.get("value"),a=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,r||this._lastValue!==o||this._lastStatus!==a){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide")return s&&s.hide(),void(l&&l.hide());s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,t,e,i);var h=u.graphicKey;h!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=h;var c=this._moveAnimation=this.determineAnimation(t,e);if(s){var p=ve(Cb,e,c);this.updatePointerEl(s,u,p),this.updateLabelEl(s,u,p,e)}else s=this._group=new fe,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),i.getZr().add(s);kb(s,e,!0),this._renderHandle(o)}},n.prototype.remove=function(t){this.clear(t)},n.prototype.dispose=function(t){this.clear(t)},n.prototype.determineAnimation=function(t,e){var i=e.get("animation"),r=t.axis,o=r.type==="category",a=e.get("snap");if(!a&&!o)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(o&&r.getBandWidth()>s)return!0;if(a){var l=Gd(t).seriesDataCount,u=r.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},n.prototype.makeElOption=function(t,e,i,r,o){},n.prototype.createPointerEl=function(t,e,i,r){var o=e.pointer;if(o){var a=zr(t).pointerEl=new Al[o.type](Ib(e.pointer));t.add(a)}},n.prototype.createLabelEl=function(t,e,i,r){if(e.label){var o=zr(t).labelEl=new ke(Ib(e.label));t.add(o),Db(o,r)}},n.prototype.updatePointerEl=function(t,e,i){var r=zr(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),i(r,{shape:e.pointer.shape}))},n.prototype.updateLabelEl=function(t,e,i,r){var o=zr(t).labelEl;o&&(o.setStyle(e.label.style),i(o,{x:e.label.x,y:e.label.y}),Db(o,r))},n.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,r=this._api.getZr(),o=this._handle,a=i.getModel("handle"),s=i.get("status");if(!a.get("show")||!s||s==="hide")return o&&r.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=Sa(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){$n(u.event)},onmousedown:If(this._onHandleDragMove,this,0,0),drift:If(this._onHandleDragMove,this),ondragend:If(this._onHandleDragEnd,this)}),r.add(o)),kb(o,i,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Y(l)||(l=[l,l]),o.scaleX=l[0]/2,o.scaleY=l[1]/2,Ba(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},n.prototype._moveHandleToValue=function(t,e){Cb(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Cf(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},n.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var r=this.updateHandleTransform(Cf(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,i.stopAnimation(),i.attr(Cf(r)),zr(i).lastProp=null,this._doDispatchAxisPointer()}},n.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},n.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},n.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),i=this._group,r=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),Va(this,"_doDispatchAxisPointer")},n.prototype.doClear=function(){},n.prototype.buildLabel=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}},n}();function Cb(n,t,e,i){Ab(zr(e).lastProp,i)||(zr(e).lastProp=i,t?ze(e,i,n):(e.stopAnimation(),e.attr(i)))}function Ab(n,t){if(Q(n)&&Q(t)){var e=!0;return A(t,function(i,r){e=e&&Ab(n[r],i)}),!!e}return n===t}function Db(n,t){n[t.get(["label","show"])?"show":"hide"]()}function Cf(n){return{x:n.x||0,y:n.y||0,rotation:n.rotation||0}}function kb(n,t,e){var i=t.get("z"),r=t.get("zlevel");n&&n.traverse(function(o){o.type!=="group"&&(i!=null&&(o.z=i),r!=null&&(o.zlevel=r),o.silent=e)})}const Lb=_L;function Pb(n){var t,e=n.get("type"),i=n.getModel(e+"Style");return e==="line"?(t=i.getLineStyle()).fill=null:e==="shadow"&&((t=i.getAreaStyle()).stroke=null),t}function Ob(n,t,e,i,r){var o=Rb(e.get("value"),t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),a=e.getModel("label"),s=fo(a.get("padding")||0),l=a.getFont(),u=ta(o,l),h=r.position,c=u.width+s[1]+s[3],p=u.height+s[0]+s[2],d=r.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var f=r.verticalAlign;f==="bottom"&&(h[1]-=p),f==="middle"&&(h[1]-=p/2),function(y,v,m,x){var _=x.getWidth(),b=x.getHeight();y[0]=Math.min(y[0]+v,_)-v,y[1]=Math.min(y[1]+m,b)-m,y[0]=Math.max(y[0],0),y[1]=Math.max(y[1],0)}(h,c,p,i);var g=a.get("backgroundColor");g&&g!=="auto"||(g=t.get(["axisLine","lineStyle","color"])),n.label={x:h[0],y:h[1],style:it(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function Rb(n,t,e,i,r){n=t.scale.parse(n);var o=t.scale.getLabel({value:n},{precision:r.precision}),a=r.formatter;if(a){var s={value:wd(t,{value:n}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};A(i,function(l){var u=e.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,c=u&&u.getDataParams(h);c&&s.seriesData.push(c)}),q(a)?o=a.replace("{value}",o):ae(a)&&(o=a(s))}return o}function Eb(n,t,e){var i=[1,0,0,1,0,0];return Zi(i,i,e.rotation),Ui(i,i,e.position),Gn([n.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],i)}function Nb(n,t,e){return{x1:n[e=e||0],y1:n[1-e],x2:t[e],y2:t[1-e]}}function zb(n,t,e,i,r,o){return{cx:n,cy:t,r0:e,r:i,startAngle:r,endAngle:o,clockwise:!0}}var wL=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.makeElOption=function(e,i,r,o,a){var s=r.axis,l=s.grid,u=o.get("type"),h=Bb(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var p=Pb(o),d=bL[u](s,c,h);d.style=p,e.graphicKey=d.type,e.pointer=d}(function(f,g,y,v,m,x){var _=zi.innerTextLayout(y.rotation,0,y.labelDirection);y.labelMargin=m.get(["label","margin"]),Ob(g,v,m,x,{position:Eb(v.axis,f,y),align:_.textAlign,verticalAlign:_.textVerticalAlign})})(i,e,zd(l.model,r),r,o,a)},t.prototype.getHandleTransform=function(e,i,r){var o=zd(i.axis.grid.model,i,{labelInside:!1});o.labelMargin=r.get(["handle","margin"]);var a=Eb(i.axis,e,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,i,r,o){var a=r.axis,s=a.grid,l=a.getGlobalExtent(!0),u=Bb(s,a).getOtherAxis(a).getGlobalExtent(),h=a.dim==="x"?0:1,c=[e.x,e.y];c[h]+=i[h],c[h]=Math.min(l[1],c[h]),c[h]=Math.max(l[0],c[h]);var p=(u[1]+u[0])/2,d=[p,p];return d[h]=c[h],{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][h]}},t}(Lb);function Bb(n,t){var e={};return e[t.dim+"AxisIndex"]=t.index,n.getCartesian(e)}var bL={line:function(n,t,e){return{type:"Line",subPixelOptimize:!0,shape:Nb([t,e[0]],[t,e[1]],Vb(n))}},shadow:function(n,t,e){var i,r,o,a=Math.max(1,n.getBandWidth()),s=e[1]-e[0];return{type:"Rect",shape:(i=[t-a/2,e[0]],r=[a,s],o=Vb(n),{x:i[o=o||0],y:i[1-o],width:r[o],height:r[1-o]})}}};function Vb(n){return n.dim==="x"?0:1}const SL=wL,ML=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),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}(Te);var fi=Ne(),TL=A;function Fb(n,t,e){if(!xe.node){var i=t.getZr();fi(i).records||(fi(i).records={}),function(r,o){if(fi(r).initialized)return;function a(s,l){r.on(s,function(u){var h=function(c){var p={showTip:[],hideTip:[]},d=function(f){var g=p[f.type];g?g.push(f):(f.dispatchAction=d,c.dispatchAction(f))};return{dispatchAction:d,pendings:p}}(o);TL(fi(r).records,function(c){c&&l(c,u,h.dispatchAction)}),function(c,p){var d,f=c.showTip.length,g=c.hideTip.length;f?d=c.showTip[f-1]:g&&(d=c.hideTip[g-1]),d&&(d.dispatchAction=null,p.dispatchAction(d))}(h.pendings,o)})}fi(r).initialized=!0,a("click",ve(Gb,"click")),a("mousemove",ve(Gb,"mousemove")),a("globalout",IL)}(i,t),(fi(i).records[n]||(fi(i).records[n]={})).handler=e}}function IL(n,t,e){n.handler("leave",null,e)}function Gb(n,t,e,i){t.handler(n,e,i)}function Af(n,t){if(!xe.node){var e=t.getZr();(fi(e).records||{})[n]&&(fi(e).records[n]=null)}}var CL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){var o=i.getComponent("tooltip"),a=e.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";Fb("axisPointer",r,function(s,l,u){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,i){Af("axisPointer",i)},t.prototype.dispose=function(e,i){Af("axisPointer",i)},t.type="axisPointer",t}(je);const AL=CL;function Hb(n,t){var e,i=[],r=n.seriesIndex;if(r==null||!(e=t.getSeriesByIndex(r)))return{point:[]};var o=e.getData(),a=ir(o,n);if(a==null||a<0||Y(a))return{point:[]};var s=o.getItemGraphicEl(a),l=e.coordinateSystem;if(e.getTooltipPosition)i=e.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(n.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c=u.dim,p=h==="x"||h==="radius"?1:0,d=o.mapDimension(c),f=[];f[p]=o.get(d,a),f[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(X(l.dimensions,function(y){return o.mapDimension(y)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var Wb=Ne();function DL(n,t,e){var i=n.currTrigger,r=[n.x,n.y],o=n,a=n.dispatchAction||ne(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){nh(r)&&(r=Hb({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=nh(r),u=o.axesInfo,h=s.axesInfo,c=i==="leave"||nh(r),p={},d={},f={list:[],map:{}},g={showPointer:ve(kL,d),showTooltip:ve(LL,f)};A(s.coordSysMap,function(v,m){var x=l||v.containPoint(r);A(s.coordSysAxesInfo[m],function(_,b){var w=_.axis,S=function(T,I){for(var C=0;C<(T||[]).length;C++){var D=T[C];if(I.axis.dim===D.axisDim&&I.axis.model.componentIndex===D.axisIndex)return D}}(u,_);if(!c&&x&&(!u||S)){var M=S&&S.value;M!=null||l||(M=w.pointToData(r)),M!=null&&Yb(_,M,g,!1,p)}})});var y={};return A(h,function(v,m){var x=v.linkGroup;x&&!d[m]&&A(x.axesInfo,function(_,b){var w=d[b];if(_!==v&&w){var S=w.value;x.mapper&&(S=v.axis.scale.parse(x.mapper(S,Xb(_),Xb(v)))),y[v.key]=S}})}),A(y,function(v,m){Yb(h[m],v,g,!0,p)}),function(v,m,x){var _=x.axesInfo=[];A(m,function(b,w){var S=b.axisPointerModel.option,M=v[w];M?(!b.useHandle&&(S.status="show"),S.value=M.value,S.seriesDataIndices=(M.payloadBatch||[]).slice()):!b.useHandle&&(S.status="hide"),S.status==="show"&&_.push({axisDim:b.axis.dim,axisIndex:b.axis.model.componentIndex,value:S.value})})}(d,h,p),function(v,m,x,_){if(nh(m)||!v.list.length)return void _({type:"hideTip"});var b=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};_({type:"showTip",escapeConnect:!0,x:m[0],y:m[1],tooltipOption:x.tooltipOption,position:x.position,dataIndexInside:b.dataIndexInside,dataIndex:b.dataIndex,seriesIndex:b.seriesIndex,dataByCoordSys:v.list})}(f,r,n,a),function(v,m,x){var _=x.getZr(),b="axisPointerLastHighlights",w=Wb(_)[b]||{},S=Wb(_)[b]={};A(v,function(I,C){var D=I.axisPointerModel.option;D.status==="show"&&I.triggerEmphasis&&A(D.seriesDataIndices,function(L){var R=L.seriesIndex+" | "+L.dataIndex;S[R]=L})});var M=[],T=[];A(w,function(I,C){!S[C]&&T.push(I)}),A(S,function(I,C){!w[C]&&M.push(I)}),T.length&&x.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:T}),M.length&&x.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:M})}(h,0,e),p}}function Yb(n,t,e,i,r){var o=n.axis;if(!o.scale.isBlank()&&o.containData(t))if(n.involveSeries){var a=function(u,h){var c=h.axis,p=c.dim,d=u,f=[],g=Number.MAX_VALUE,y=-1;return A(h.seriesModels,function(v,m){var x,_,b=v.getData().mapDimensionsAll(p);if(v.getAxisTooltipData){var w=v.getAxisTooltipData(b,u,c);_=w.dataIndices,x=w.nestestValue}else{if(!(_=v.getData().indicesOfNearest(b[0],u,c.type==="category"?.5:null)).length)return;x=v.getData().get(b[0],_[0])}if(x!=null&&isFinite(x)){var S=u-x,M=Math.abs(S);M<=g&&((M<g||S>=0&&y<0)&&(g=M,y=S,d=x,f.length=0),A(_,function(T){f.push({seriesIndex:v.seriesIndex,dataIndexInside:T,dataIndex:v.getData().getRawIndex(T)})}))}}),{payloadBatch:f,snapToValue:d}}(t,n),s=a.payloadBatch,l=a.snapToValue;s[0]&&r.seriesIndex==null&&G(r,s[0]),!i&&n.snap&&o.containData(l)&&l!=null&&(t=l),e.showPointer(n,t,s),e.showTooltip(n,a,l)}else e.showPointer(n,t)}function kL(n,t,e,i){n[t.key]={value:e,payloadBatch:i}}function LL(n,t,e,i){var r=e.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,u=is(l),h=n.map[u];h||(h=n.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},n.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function Xb(n){var t=n.axis.model,e={},i=e.axisDim=n.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 nh(n){return!n||n[0]==null||isNaN(n[0])||n[1]==null||isNaN(n[1])}function Df(n){rs.registerAxisPointerClass("CartesianAxisPointer",SL),n.registerComponentModel(ML),n.registerComponentView(AL),n.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Y(e)&&(t.axisPointer.link=[e])}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=hD(t,e)}),n.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},DL)}var PL=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.makeElOption=function(e,i,r,o,a){var s=r.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s).getExtent(),h=s.dataToCoord(i),c=o.get("type");if(c&&c!=="none"){var p=Pb(o),d=OL[c](s,l,h,u);d.style=p,e.graphicKey=d.type,e.pointer=d}var f=function(g,y,v,m,x){var _=y.axis,b=_.dataToCoord(g),w=m.getAngleAxis().getExtent()[0];w=w/180*Math.PI;var S,M,T,I=m.getRadiusAxis().getExtent();if(_.dim==="radius"){var C=[1,0,0,1,0,0];Zi(C,C,w),Ui(C,C,[m.cx,m.cy]),S=Gn([b,-x],C);var D=y.getModel("axisLabel").get("rotate")||0,L=zi.innerTextLayout(w,D*Math.PI/180,-1);M=L.textAlign,T=L.textVerticalAlign}else{var R=I[1];S=m.coordToPoint([R+x,b]);var P=m.cx,E=m.cy;M=Math.abs(S[0]-P)/R<.3?"center":S[0]>P?"left":"right",T=Math.abs(S[1]-E)/R<.3?"middle":S[1]>E?"top":"bottom"}return{position:S,align:M,verticalAlign:T}}(i,r,0,l,o.get(["label","margin"]));Ob(e,r,o,a,f)},t}(Lb),OL={line:function(n,t,e,i){return n.dim==="angle"?{type:"Line",shape:Nb(t.coordToPoint([i[0],e]),t.coordToPoint([i[1],e]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:e}}},shadow:function(n,t,e,i){var r=Math.max(1,n.getBandWidth()),o=Math.PI/180;return n.dim==="angle"?{type:"Sector",shape:zb(t.cx,t.cy,i[0],i[1],(-e-r/2)*o,(r/2-e)*o)}:{type:"Sector",shape:zb(t.cx,t.cy,e-r/2,e+r/2,0,2*Math.PI)}}};const RL=PL,EL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.findAxisModel=function(e){var i;return this.ecModel.eachComponent(e,function(r){r.getCoordSysModel()===this&&(i=r)},this),i},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(Te);var kf=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",nt).models[0]},t.type="polarAxis",t}(Te);ct(kf,$a);var NL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="angleAxis",t}(kf),zL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="radiusAxis",t}(kf),Lf=function(n){function t(e,i){return n.call(this,"radius",e,i)||this}return V(t,n),t.prototype.pointToData=function(e,i){return this.polar.pointToData(e,i)[this.dim==="radius"?0:1]},t}(Xn);Lf.prototype.dataToRadius=Xn.prototype.dataToCoord,Lf.prototype.radiusToData=Xn.prototype.coordToData;const BL=Lf;var VL=Ne(),Pf=function(n){function t(e,i){return n.call(this,"angle",e,i||[0,360])||this}return V(t,n),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(),r=e.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=o[0],l=e.dataToCoord(s+1)-e.dataToCoord(s),u=Math.abs(l),h=ta(s==null?"":s+"",i.getFont(),"center","top"),c=Math.max(h.height,7)/u;isNaN(c)&&(c=1/0);var p=Math.max(0,Math.floor(c)),d=VL(e.model),f=d.lastAutoInterval,g=d.lastTickCount;return f!=null&&g!=null&&Math.abs(f-p)<=1&&Math.abs(g-a)<=1&&f>p?p=f:(d.lastTickCount=a,d.lastAutoInterval=p),p},t}(Xn);Pf.prototype.dataToAngle=Xn.prototype.dataToCoord,Pf.prototype.angleToData=Xn.prototype.coordToData;const FL=Pf;var Ub=["radius","angle"],GL=function(){function n(t){this.dimensions=Ub,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new BL,this._angleAxis=new FL,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return n.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},n.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},n.prototype.getAxis=function(t){return this["_"+t+"Axis"]},n.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},n.prototype.getAxesByScale=function(t){var e=[],i=this._angleAxis,r=this._radiusAxis;return i.scale.type===t&&e.push(i),r.scale.type===t&&e.push(r),e},n.prototype.getAngleAxis=function(){return this._angleAxis},n.prototype.getRadiusAxis=function(){return this._radiusAxis},n.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},n.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},n.prototype.getTooltipAxes=function(t){var e=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},n.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},n.prototype.pointToData=function(t,e){var i=this.pointToCoord(t);return[this._radiusAxis.radiusToData(i[0],e),this._angleAxis.angleToData(i[1],e)]},n.prototype.pointToCoord=function(t){var e=t[0]-this.cx,i=t[1]-this.cy,r=this.getAngleAxis(),o=r.getExtent(),a=Math.min(o[0],o[1]),s=Math.max(o[0],o[1]);r.inverse?a=s-360:s=a+360;var l=Math.sqrt(e*e+i*i);e/=l,i/=l;for(var u=Math.atan2(-i,e)/Math.PI*180,h=u<a?1:-1;u<a||u>s;)u+=360*h;return[l,u]},n.prototype.coordToPoint=function(t){var e=t[0],i=t[1]/180*Math.PI;return[Math.cos(i)*e+this.cx,-Math.sin(i)*e+this.cy]},n.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var i=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:t.inverse,contain:function(o,a){var s=o-this.cx,l=a-this.cy,u=s*s+l*l-1e-4,h=this.r,c=this.r0;return u<=h*h&&u>=c*c}}},n.prototype.convertToPixel=function(t,e,i){return Zb(e)===this?this.dataToPoint(i):null},n.prototype.convertFromPixel=function(t,e,i){return Zb(e)===this?this.pointToData(i):null},n}();function Zb(n){var t=n.seriesModel,e=n.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}const HL=GL;function WL(n,t){var e=this,i=e.getAngleAxis(),r=e.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),n.eachSeries(function(s){if(s.coordinateSystem===e){var l=s.getData();A(Du(l,"radius"),function(u){r.scale.unionExtentFromData(l,u)}),A(Du(l,"angle"),function(u){i.scale.unionExtentFromData(l,u)})}}),Co(i.scale,i.model),Co(r.scale,r.model),i.type==="category"&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function jb(n,t){if(n.type=t.get("type"),n.scale=Au(t),n.onBand=t.get("boundaryGap")&&n.type==="category",n.inverse=t.get("inverse"),function(i){return i.mainType==="angleAxis"}(t)){n.inverse=n.inverse!==t.get("clockwise");var e=t.get("startAngle");n.setExtent(e,e+(n.inverse?-360:360))}t.axis=n,n.model=t}var YL={dimensions:Ub,create:function(n,t){var e=[];return n.eachComponent("polar",function(i,r){var o=new HL(r+"");o.update=WL;var a=o.getRadiusAxis(),s=o.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");jb(a,l),jb(s,u),function(h,c,p){var d=c.get("center"),f=p.getWidth(),g=p.getHeight();h.cx=ee(d[0],f),h.cy=ee(d[1],g);var y=h.getRadiusAxis(),v=Math.min(f,g)/2,m=c.get("radius");m==null?m=[0,"100%"]:Y(m)||(m=[0,m]);var x=[ee(m[0],v),ee(m[1],v)];y.inverse?y.setExtent(x[1],x[0]):y.setExtent(x[0],x[1])}(o,i,t),e.push(o),i.coordinateSystem=o,o.model=i}),n.eachSeries(function(i){if(i.get("coordinateSystem")==="polar"){var r=i.getReferringComponents("polar",nt).models[0];if(!r)throw new Error('Polar "'+Yt(i.get("polarIndex"),i.get("polarId"),0)+'" not found');i.coordinateSystem=r.coordinateSystem}}),e}};const XL=YL;var UL=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function ih(n,t,e){t[1]>t[0]&&(t=t.slice().reverse());var i=n.coordToPoint([t[0],e]),r=n.coordToPoint([t[1],e]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function rh(n){return n.getRadiusAxis().inverse?0:1}function qb(n){var t=n[0],e=n[n.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&n.pop()}var ZL=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return V(t,n),t.prototype.render=function(e,i){if(this.group.removeAll(),e.get("show")){var r=e.axis,o=r.polar,a=o.getRadiusAxis().getExtent(),s=r.getTicksCoords(),l=r.getMinorTicksCoords(),u=X(r.getViewLabels(),function(h){h=oe(h);var c=r.scale,p=c.type==="ordinal"?c.getRawOrdinalNumber(h.tickValue):h.tickValue;return h.coord=r.dataToCoord(p),h});qb(u),qb(s),A(UL,function(h){!e.get([h,"show"])||r.scale.isBlank()&&h!=="axisLine"||jL[h](this.group,e,o,s,l,a,u)},this)}},t.type="angleAxis",t}(rs),jL={axisLine:function(n,t,e,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=rh(e),u=l?0:1;(a=o[u]===0?new xn({shape:{cx:e.cx,cy:e.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new xa({shape:{cx:e.cx,cy:e.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,n.add(a)},axisTick:function(n,t,e,i,r,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[rh(e)],u=X(i,function(h){return new wt({shape:ih(e,[l,l+s],h.coord)})});n.add(on(u,{style:le(a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(n,t,e,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[rh(e)],h=[],c=0;c<r.length;c++)for(var p=0;p<r[c].length;p++)h.push(new wt({shape:ih(e,[u,u+l],r[c][p].coord)}));n.add(on(h,{style:le(s.getModel("lineStyle").getLineStyle(),le(a.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(n,t,e,i,r,o,a){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),h=t.get("triggerEvent");A(a,function(c,p){var d=l,f=c.tickValue,g=o[rh(e)],y=e.coordToPoint([g+u,c.coord]),v=e.cx,m=e.cy,x=Math.abs(y[0]-v)/g<.3?"center":y[0]>v?"left":"right",_=Math.abs(y[1]-m)/g<.3?"middle":y[1]>m?"top":"bottom";if(s&&s[f]){var b=s[f];Q(b)&&b.textStyle&&(d=new He(b.textStyle,l,l.ecModel))}var w=new ke({silent:zi.isLabelSilent(t),style:it(d,{x:y[0],y:y[1],fill:d.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:c.formattedLabel,align:x,verticalAlign:_})});if(n.add(w),h){var S=zi.makeAxisEventDataBase(t);S.targetType="axisLabel",S.value=c.rawLabel,_e(w).eventData=S}},this)},splitLine:function(n,t,e,i,r,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=0;h<i.length;h++){var c=l++%s.length;u[c]=u[c]||[],u[c].push(new wt({shape:ih(e,o,i[h].coord)}))}for(h=0;h<u.length;h++)n.add(on(u[h],{style:le({stroke:s[h%s.length]},a.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(n,t,e,i,r,o){if(r.length){for(var a=t.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<r.length;l++)for(var u=0;u<r[l].length;u++)s.push(new wt({shape:ih(e,o,r[l][u].coord)}));n.add(on(s,{style:a.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(n,t,e,i,r,o){if(i.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=Math.PI/180,c=-i[0].coord*h,p=Math.min(o[0],o[1]),d=Math.max(o[0],o[1]),f=t.get("clockwise"),g=1,y=i.length;g<=y;g++){var v=g===y?i[0].coord:i[g].coord,m=l++%s.length;u[m]=u[m]||[],u[m].push(new nn({shape:{cx:e.cx,cy:e.cy,r0:p,r:d,startAngle:c,endAngle:-v*h,clockwise:f},silent:!0})),c=-v*h}for(g=0;g<u.length;g++)n.add(on(u[g],{style:le({fill:s[g%s.length]},a.getAreaStyle()),silent:!0}))}}};const qL=ZL;var KL=["axisLine","axisTickLabel","axisName"],JL=["splitLine","splitArea","minorSplitLine"],$L=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return V(t,n),t.prototype.render=function(e,i){if(this.group.removeAll(),e.get("show")){var r=this._axisGroup,o=this._axisGroup=new fe;this.group.add(o);var a=e.axis,s=a.polar,l=s.getAngleAxis(),u=a.getTicksCoords(),h=a.getMinorTicksCoords(),c=l.getExtent()[0],p=a.getExtent(),d=function(g,y,v){return{position:[g.cx,g.cy],rotation:v/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:y.getModel("axisLabel").get("rotate"),z2:1}}(s,e,c),f=new zi(e,d);A(KL,f.add,f),o.add(f.getGroup()),Il(r,o,e),A(JL,function(g){e.get([g,"show"])&&!a.scale.isBlank()&&QL[g](this.group,e,s,c,p,u,h)},this)}},t.type="radiusAxis",t}(rs),QL={splitLine:function(n,t,e,i,r,o){var a=t.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=0;h<o.length;h++){var c=l++%s.length;u[c]=u[c]||[],u[c].push(new xn({shape:{cx:e.cx,cy:e.cy,r:Math.max(o[h].coord,0)}}))}for(h=0;h<u.length;h++)n.add(on(u[h],{style:le({stroke:s[h%s.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(n,t,e,i,r,o,a){if(a.length){for(var s=t.getModel("minorSplitLine").getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var h=0;h<a[u].length;h++)l.push(new xn({shape:{cx:e.cx,cy:e.cy,r:a[u][h].coord}}));n.add(on(l,{style:le({fill:null},s.getLineStyle()),silent:!0}))}},splitArea:function(n,t,e,i,r,o){if(o.length){var a=t.getModel("splitArea").getModel("areaStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=o[0].coord,c=1;c<o.length;c++){var p=l++%s.length;u[p]=u[p]||[],u[p].push(new nn({shape:{cx:e.cx,cy:e.cy,r0:h,r:o[c].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=o[c].coord}for(c=0;c<u.length;c++)n.add(on(u[c],{style:le({fill:s[c%s.length]},a.getAreaStyle()),silent:!0}))}}};const eP=$L;function Kb(n){return n.get("stack")||"__ec_stack_"+n.seriesIndex}function Jb(n,t){return t.dim+n.model.componentIndex}function tP(n,t,e){var i={},r=function(o){var a={};A(o,function(l,u){var h=l.getData(),c=l.coordinateSystem,p=c.getBaseAxis(),d=Jb(c,p),f=p.getExtent(),g=p.type==="category"?p.getBandWidth():Math.abs(f[1]-f[0])/h.count(),y=a[d]||{bandWidth:g,remainedWidth:g,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=y.stacks;a[d]=y;var m=Kb(l);v[m]||y.autoWidthCount++,v[m]=v[m]||{width:0,maxWidth:0};var x=ee(l.get("barWidth"),g),_=ee(l.get("barMaxWidth"),g),b=l.get("barGap"),w=l.get("barCategoryGap");x&&!v[m].width&&(x=Math.min(y.remainedWidth,x),v[m].width=x,y.remainedWidth-=x),_&&(v[m].maxWidth=_),b!=null&&(y.gap=b),w!=null&&(y.categoryGap=w)});var s={};return A(a,function(l,u){s[u]={};var h=l.stacks,c=l.bandWidth,p=ee(l.categoryGap,c),d=ee(l.gap,1),f=l.remainedWidth,g=l.autoWidthCount,y=(f-p)/(g+(g-1)*d);y=Math.max(y,0),A(h,function(_,b){var w=_.maxWidth;w&&w<y&&(w=Math.min(w,f),_.width&&(w=Math.min(w,_.width)),f-=w,_.width=w,g--)}),y=(f-p)/(g+(g-1)*d),y=Math.max(y,0);var v,m=0;A(h,function(_,b){_.width||(_.width=y),v=_,m+=_.width*(1+d)}),v&&(m-=v.width*d);var x=-m/2;A(h,function(_,b){s[u][b]=s[u][b]||{offset:x,width:_.width},x+=_.width*(1+d)})}),s}(We(t.getSeriesByType(n),function(o){return!t.isSeriesFiltered(o)&&o.coordinateSystem&&o.coordinateSystem.type==="polar"}));t.eachSeriesByType(n,function(o){if(o.coordinateSystem.type==="polar"){var a=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),u=Jb(s,l),h=Kb(o),c=r[u][h],p=c.offset,d=c.width,f=s.getOtherAxis(l),g=o.coordinateSystem.cx,y=o.coordinateSystem.cy,v=o.get("barMinHeight")||0,m=o.get("barMinAngle")||0;i[h]=i[h]||[];for(var x=a.mapDimension(f.dim),_=a.mapDimension(l.dim),b=Pi(a,x),w=l.dim!=="radius"||!o.get("roundCap",!0),S=f.dataToCoord(0),M=0,T=a.count();M<T;M++){var I=a.get(x,M),C=a.get(_,M),D=I>=0?"p":"n",L=S;b&&(i[h][C]||(i[h][C]={p:S,n:S}),L=i[h][C][D]);var R=void 0,P=void 0,E=void 0,k=void 0;if(f.dim==="radius"){var O=f.dataToCoord(I)-S,N=l.dataToCoord(C);Math.abs(O)<v&&(O=(O<0?-1:1)*v),R=L,P=L+O,k=(E=N-p)-d,b&&(i[h][C][D]=P)}else{var B=f.dataToCoord(I,w)-S,z=l.dataToCoord(C);Math.abs(B)<m&&(B=(B<0?-1:1)*m),P=(R=z+p)+d,E=L,k=L+B,b&&(i[h][C][D]=k)}a.setItemLayout(M,{cx:g,cy:y,r0:R,r:P,startAngle:-E*Math.PI/180,endAngle:-k*Math.PI/180,clockwise:E>=k})}}})}var nP={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},iP={splitNumber:5},rP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="polar",t}(je),$b=["x","y","radius","angle","single"],oP=["cartesian2d","polar","singleAxis"];function Bi(n){return ue(n),n+"Axis"}function aP(n,t){var e,i=ie(),r=[],o=ie();n.eachComponent({mainType:"dataZoom",query:t},function(l){o.get(l.uid)||s(l)});do e=!1,n.eachComponent("dataZoom",a);while(e);function a(l){!o.get(l.uid)&&function(u){var h=!1;return u.eachTargetAxis(function(c,p){var d=i.get(c);d&&d[p]&&(h=!0)}),h}(l)&&(s(l),e=!0)}function s(l){o.set(l.uid,!0),r.push(l),l.eachTargetAxis(function(u,h){(i.get(u)||i.set(u,[]))[h]=!0})}return r}function Qb(n){var t=n.ecModel,e={infoList:[],infoMap:ie()};return n.eachTargetAxis(function(i,r){var o=t.getComponent(Bi(i),r);if(o){var a=o.getCoordSysModel();if(a){var s=a.uid,l=e.infoMap.get(s);l||(l={model:a,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(o)}}}),e}var Of=function(){function n(){this.indexList=[],this.indexMap=[]}return n.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},n}(),sP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return V(t,n),t.prototype.init=function(e,i,r){var o=eS(e);this.settledOption=o,this.mergeDefaultAndTheme(e,r),this._doInit(o)},t.prototype.mergeOption=function(e){var i=eS(e);pe(this.option,e,!0),pe(this.settledOption,i,!0),this._doInit(i)},t.prototype._doInit=function(e){var i=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var r=this.settledOption;A([["start","startValue"],["end","endValue"]],function(o,a){this._rangePropMode[a]==="value"&&(i[o[0]]=r[o[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),i=this._targetAxisInfoMap=ie();this._fillSpecifiedTargetAxis(i)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(r){r.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var i=!1;return A($b,function(r){var o=this.getReferringComponents(Bi(r),CT);if(o.specified){i=!0;var a=new Of;A(o.models,function(s){a.add(s.componentIndex)}),e.set(r,a)}},this),i},t.prototype._fillAutoTargetAxisByOrient=function(e,i){var r=this.ecModel,o=!0;if(o){var a=i==="vertical"?"y":"x";s(r.findComponents({mainType:a+"Axis"}),a)}o&&s(r.findComponents({mainType:"singleAxis",filter:function(l){return l.get("orient",!0)===i}}),"single");function s(l,u){var h=l[0];if(h){var c=new Of;if(c.add(h.componentIndex),e.set(u,c),o=!1,u==="x"||u==="y"){var p=h.getReferringComponents("grid",nt).models[0];p&&A(l,function(d){h.componentIndex!==d.componentIndex&&p===d.getReferringComponents("grid",nt).models[0]&&c.add(d.componentIndex)})}}}o&&A($b,function(l){if(o){var u=r.findComponents({mainType:Bi(l),filter:function(c){return c.get("type",!0)==="category"}});if(u[0]){var h=new Of;h.add(u[0].componentIndex),e.set(l,h),o=!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,r=this.get("rangeMode");A([["start","startValue"],["end","endValue"]],function(o,a){var s=e[o[0]]!=null,l=e[o[1]]!=null;s&&!l?i[a]="percent":!s&&l?i[a]="value":r?i[a]=r[a]:s&&(i[a]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(i,r){e==null&&(e=this.ecModel.getComponent(Bi(i),r))},this),e},t.prototype.eachTargetAxis=function(e,i){this._targetAxisInfoMap.each(function(r,o){A(r.indexList,function(a){e.call(i,o,a)})})},t.prototype.getAxisProxy=function(e,i){var r=this.getAxisModel(e,i);if(r)return r.__dzAxisProxy},t.prototype.getAxisModel=function(e,i){ue(e&&i!=null);var r=this._targetAxisInfoMap.get(e);if(r&&r.indexMap[i])return this.ecModel.getComponent(Bi(e),i)},t.prototype.setRawRange=function(e){var i=this.option,r=this.settledOption;A([["start","startValue"],["end","endValue"]],function(o){e[o[0]]==null&&e[o[1]]==null||(i[o[0]]=r[o[0]]=e[o[0]],i[o[1]]=r[o[1]]=e[o[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var i=this.option;A(["start","startValue","end","endValue"],function(r){i[r]=e[r]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,i){if(e!=null||i!=null)return this.getAxisProxy(e,i).getDataValueWindow();var r=this.findRepresentativeAxisProxy();return r?r.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var i,r=this._targetAxisInfoMap.keys(),o=0;o<r.length;o++)for(var a=r[o],s=this._targetAxisInfoMap.get(a),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(a,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 ue(this._orient),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}(Te);function eS(n){var t={};return A(["start","end","startValue","endValue","throttle"],function(e){n.hasOwnProperty(e)&&(t[e]=n[e])}),t}const ds=sP,lP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="dataZoom.select",t}(ds),Rf=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r,o){this.dataZoomModel=e,this.ecModel=i,this.api=r},t.type="dataZoom",t}(je),uP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="dataZoom.select",t}(Rf);var Po=A,tS=ei,hP=function(){function n(t,e,i,r){this._dimName=t,this._axisIndex=e,this.ecModel=r,this._dataZoomModel=i}return n.prototype.hostedBy=function(t){return this._dataZoomModel===t},n.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},n.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},n.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(function(o){var a=o.get("coordinateSystem");return Se(oP,a)>=0}(e)){var i=Bi(this._dimName),r=e.getReferringComponents(i,nt).models[0];r&&this._axisIndex===r.componentIndex&&t.push(e)}},this),t},n.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},n.prototype.getMinMaxSpan=function(){return oe(this._minMaxSpan)},n.prototype.calculateDataWindow=function(t){var e,i=this._dataExtent,r=this.getAxisModel().axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[];Po(["start","end"],function(c,p){var d=t[c],f=t[c+"Value"];o[p]==="percent"?(d==null&&(d=a[p]),f=r.parse(Ae(d,a,i))):(e=!0,d=Ae(f=f==null?i[p]:r.parse(f),i,a)),l[p]=f==null||isNaN(f)?i[p]:f,s[p]=d==null||isNaN(d)?a[p]:d}),tS(l),tS(s);var u=this._minMaxSpan;function h(c,p,d,f,g){var y=g?"Span":"ValueSpan";Rr(0,c,d,"all",u["min"+y],u["max"+y]);for(var v=0;v<2;v++)p[v]=Ae(c[v],d,f,!0),g&&(p[v]=r.parse(p[v]))}return e?h(l,s,i,a,!1):h(s,l,a,i,!0),{valueWindow:l,percentWindow:s}},n.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(r,o,a){var s=[1/0,-1/0];Po(a,function(h){(function(c,p,d){p&&A(Du(p,d),function(f){var g=p.getApproximateExtent(f);g[0]<c[0]&&(c[0]=g[0]),g[1]>c[1]&&(c[1]=g[1])})})(s,h.getData(),o)});var l=r.getAxisModel(),u=v1(l.axis.scale,l,s).calculate();return[u.min,u.max]}(this,this._dimName,e),this._updateMinMaxSpan();var i=this.calculateDataWindow(t.settledOption);this._valueWindow=i.valueWindow,this._percentWindow=i.percentWindow,this._setAxisModel()}},n.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var i=this._dimName,r=this.getTargetSeriesModels(),o=t.get("filterMode"),a=this._valueWindow;o!=="none"&&Po(r,function(s){var l=s.getData(),u=l.mapDimensionsAll(i);if(u.length){if(o==="weakFilter"){var h=l.getStore(),c=X(u,function(p){return l.getDimensionIndex(p)},l);l.filterSelf(function(p){for(var d,f,g,y=0;y<u.length;y++){var v=h.get(c[y],p),m=!isNaN(v),x=v<a[0],_=v>a[1];if(m&&!x&&!_)return!0;m&&(g=!0),x&&(d=!0),_&&(f=!0)}return g&&d&&f})}else Po(u,function(p){if(o==="empty")s.setData(l=l.map(p,function(f){return function(g){return g>=a[0]&&g<=a[1]}(f)?f:NaN}));else{var d={};d[p]=a,l.selectRange(d)}});Po(u,function(p){l.setApproximateExtent(a,p)})}})}},n.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._dataExtent;Po(["min","max"],function(r){var o=e.get(r+"Span"),a=e.get(r+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?o=Ae(i[0]+a,i,[0,100],!0):o!=null&&(a=Ae(o,[0,100],i,!0)-i[0]),t[r+"Span"]=o,t[r+"ValueSpan"]=a},this)},n.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,i=this._valueWindow;if(e){var r=cc(i,[0,500]);r=Math.min(r,20);var o=t.axis.scale.rawExtentInfo;e[0]!==0&&o.setDeterminedMinMax("min",+i[0].toFixed(r)),e[1]!==100&&o.setDeterminedMinMax("max",+i[1].toFixed(r)),o.freeze()}},n}();const cP=hP,pP={getTargetSeries:function(n){function t(r){n.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(a,s){var l=n.getComponent(Bi(a),s);r(a,s,l,o)})})}t(function(r,o,a,s){a.__dzAxisProxy=null});var e=[];t(function(r,o,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new cP(r,o,s,n),e.push(a.__dzAxisProxy))});var i=ie();return A(e,function(r){A(r.getTargetSeriesModels(),function(o){i.set(o.uid,o)})}),i},overallReset:function(n,t){n.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(i,r){e.getAxisProxy(i,r).reset(e)}),e.eachTargetAxis(function(i,r){e.getAxisProxy(i,r).filterData(e,t)})}),n.eachComponent("dataZoom",function(e){var i=e.findRepresentativeAxisProxy();if(i){var r=i.getDataPercentWindow(),o=i.getDataValueWindow();e.setCalculatedRange({start:r[0],end:r[1],startValue:o[0],endValue:o[1]})}})}};var nS=!1;function Ef(n){nS||(nS=!0,n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,pP),function(t){t.registerAction("dataZoom",function(e,i){A(aP(i,e),function(r){r.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}(n),n.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function dP(n){n.registerComponentModel(lP),n.registerComponentView(uP),Ef(n)}var An=function(){},iS={};function fs(n,t){iS[n]=t}function rS(n){return iS[n]}const fP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.optionUpdated=function(){n.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;A(this.option.feature,function(i,r){var o=rS(r);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(e)),pe(i,o.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}(Te);function oS(n,t){var e=fo(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),n=new Ie({shape:{x:n.x-e[3],y:n.y-e[0],width:n.width+e[1]+e[3],height:n.height+e[0]+e[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1})}var gP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.render=function(e,i,r,o){var a=this.group;if(a.removeAll(),e.get("show")){var s=+e.get("itemSize"),l=e.get("orient")==="vertical",u=e.get("feature")||{},h=this._features||(this._features={}),c=[];A(u,function(d,f){c.push(f)}),new cd(this._featureNames||[],c).add(p).update(p).remove(ve(p,null)).execute(),this._featureNames=c,function(d,f,g){var y=f.getBoxLayoutParams(),v=f.get("padding"),m={width:g.getWidth(),height:g.getHeight()},x=St(y,m,v);wr(f.get("orient"),d,f.get("itemGap"),x.width,x.height),Om(d,y,m,v)}(a,e,r),a.add(oS(a.getBoundingRect(),e)),l||a.eachChild(function(d){var f=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),v=d.getTextContent(),m=v&&v.ensureState("emphasis");if(m&&!ae(m)&&f){var x=m.style||(m.style={}),_=ta(f,ke.makeFont(x)),b=d.x+a.x,w=!1;d.y+a.y+s+_.height>r.getHeight()&&(y.position="top",w=!0);var S=w?-5-_.height:s+10;b+_.width/2>r.getWidth()?(y.position=["100%",S],x.align="right"):b-_.width/2<0&&(y.position=[0,S],x.align="left")}})}function p(d,f){var g,y=c[d],v=c[f],m=u[y],x=new He(m,e,e.ecModel);if(o&&o.newTitle!=null&&o.featureName===y&&(m.title=o.newTitle),y&&!v){if(function(w){return w.indexOf("my")===0}(y))g={onclick:x.option.onclick,featureName:y};else{var _=rS(y);if(!_)return;g=new _}h[y]=g}else if(!(g=h[v]))return;g.uid=ho("toolbox-feature"),g.model=x,g.ecModel=i,g.api=r;var b=g instanceof An;y||!v?!x.get("show")||b&&g.unusable?b&&g.remove&&g.remove(i,r):(function(w,S,M){var T,I,C=w.getModel("iconStyle"),D=w.getModel(["emphasis","iconStyle"]),L=S instanceof An&&S.getIcons?S.getIcons():w.get("icon"),R=w.get("title")||{};q(L)?(T={})[M]=L:T=L,q(R)?(I={})[M]=R:I=R;var P=w.iconPaths={};A(T,function(E,k){var O=Sa(E,{},{x:-s/2,y:-s/2,width:s,height:s});O.setStyle(C.getItemStyle()),O.ensureState("emphasis").style=D.getItemStyle();var N=new ke({style:{text:I[k],align:D.get("textAlign"),borderRadius:D.get("textBorderRadius"),padding:D.get("textPadding"),fill:null},ignore:!0});O.setTextContent(N),Ma({el:O,componentModel:e,itemName:k,formatterParamsExtra:{title:I[k]}}),O.__title=I[k],O.on("mouseover",function(){var B=D.getItemStyle(),z=l?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";N.setStyle({fill:D.get("textFill")||B.fill||B.stroke||"#000",backgroundColor:D.get("textBackgroundColor")}),O.setTextConfig({position:D.get("textPosition")||z}),N.ignore=!e.get("showTitle"),r.enterEmphasis(this)}).on("mouseout",function(){w.get(["iconStatus",k])!=="emphasis"&&r.leaveEmphasis(this),N.hide()}),(w.get(["iconStatus",k])==="emphasis"?no:io)(O),a.add(O),O.on("click",ne(S.onclick,S,i,r,k)),P[k]=O})}(x,g,y),x.setIconStatus=function(w,S){var M=this.option,T=this.iconPaths;M.iconStatus=M.iconStatus||{},M.iconStatus[w]=S,T[w]&&(S==="emphasis"?no:io)(T[w])},g instanceof An&&g.render&&g.render(x,i,r,o)):b&&g.dispose&&g.dispose(i,r)}},t.prototype.updateView=function(e,i,r,o){A(this._features,function(a){a instanceof An&&a.updateView&&a.updateView(a.model,i,r,o)})},t.prototype.remove=function(e,i){A(this._features,function(r){r instanceof An&&r.remove&&r.remove(e,i)}),this.group.removeAll()},t.prototype.dispose=function(e,i){A(this._features,function(r){r instanceof An&&r.dispose&&r.dispose(e,i)})},t.type="toolbox",t}(je);const yP=gP,vP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.onclick=function(e,i){var r=this.model,o=r.get("name")||e.get("title.0.text")||"echarts",a=i.getZr().painter.getType()==="svg",s=a?"svg":r.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:r.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:r.get("connectedBackgroundColor"),excludeComponents:r.get("excludeComponents"),pixelRatio:r.get("pixelRatio")}),u=xe.browser;if(ae(MouseEvent)&&(u.newEdge||!u.ie&&!u.edge)){var h=document.createElement("a");h.download=o+"."+s,h.target="_blank",h.href=l;var c=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});h.dispatchEvent(c)}else if(window.navigator.msSaveOrOpenBlob||a){var p=l.split(","),d=p[0].indexOf("base64")>-1,f=a?decodeURIComponent(p[1]):p[1];d&&(f=window.atob(f));var g=o+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var y=f.length,v=new Uint8Array(y);y--;)v[y]=f.charCodeAt(y);var m=new Blob([v]);window.navigator.msSaveOrOpenBlob(m,g)}else{var x=document.createElement("iframe");document.body.appendChild(x);var _=x.contentWindow,b=_.document;b.open("image/svg+xml","replace"),b.write(f),b.close(),_.focus(),b.execCommand("SaveAs",!0,g),document.body.removeChild(x)}}else{var w=r.get("lang"),S='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(w&&w[0]||"")+'" /></body>',M=window.open();M.document.write(S),M.document.title=o}},t.getDefaultOption=function(e){return{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"])}},t}(An);var aS="__ec_magicType_stack__",mP=[["line","bar"],["stack"]],xP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.getIcons=function(){var e=this.model,i=e.get("icon"),r={};return A(e.get("type"),function(o){i[o]&&(r[o]=i[o])}),r},t.getDefaultOption=function(e){return{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:{}}},t.prototype.onclick=function(e,i,r){var o=this.model,a=o.get(["seriesIndex",r]);if(sS[r]){var s,l={series:[]};A(mP,function(h){Se(h,r)>=0&&A(h,function(c){o.setIconStatus(c,"normal")})}),o.setIconStatus(r,"emphasis"),e.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},function(h){var c=h.subType,p=h.id,d=sS[r](c,p,h,o);d&&(le(d,h.option),l.series.push(d));var f=h.coordinateSystem;if(f&&f.type==="cartesian2d"&&(r==="line"||r==="bar")){var g=f.getAxesByScale("ordinal")[0];if(g){var y=g.dim+"Axis",v=h.getReferringComponents(y,nt).models[0].componentIndex;l[y]=l[y]||[];for(var m=0;m<=v;m++)l[y][v]=l[y][v]||{};l[y][v].boundaryGap=r==="bar"}}});var u=r;r==="stack"&&(s=pe({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",r])!=="emphasis"&&(u="tiled")),i.dispatchAction({type:"changeMagicType",currentType:u,newOption:l,newTitle:s,featureName:"magicType"})}},t}(An),sS={line:function(n,t,e,i){if(n==="bar")return pe({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(n,t,e,i){if(n==="line")return pe({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(n,t,e,i){var r=e.get("stack")===aS;if(n==="line"||n==="bar")return i.setIconStatus("stack",r?"normal":"emphasis"),pe({id:t,stack:r?"":aS},i.get(["option","stack"])||{},!0)}};Mn({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(n,t){t.mergeOption(n.newOption)});const _P=xP;var oh=new Array(60).join("-"),Oo=" ";function ah(n){return n.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var Nf=new RegExp("["+Oo+"]+","g");function wP(n,t){var e=n.split(new RegExp(`
- *`+oh+`
- *`,"g")),i={series:[]};return A(e,function(r,o){if(function(u){if(u.slice(0,u.indexOf(`
- `)).indexOf(Oo)>=0)return!0}(r)){var a=function(u){for(var h=u.split(/\n+/g),c=[],p=X(ah(h.shift()).split(Nf),function(y){return{name:y,data:[]}}),d=0;d<h.length;d++){var f=ah(h[d]).split(Nf);c.push(f.shift());for(var g=0;g<f.length;g++)p[g]&&(p[g].data[d]=f[g])}return{series:p,categories:c}}(r),s=t[o],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:a.categories},i.series=i.series.concat(a.series))}else a=function(u){for(var h=u.split(/\n+/g),c=ah(h.shift()),p=[],d=0;d<h.length;d++){var f=ah(h[d]);if(f){var g=f.split(Nf),y="",v=void 0,m=!1;isNaN(g[0])?(m=!0,y=g[0],g=g.slice(1),p[d]={name:y,value:[]},v=p[d].value):v=p[d]=[];for(var x=0;x<g.length;x++)v.push(+g[x]);v.length===1&&(m?p[d].value=v[0]:p[d]=v[0])}}return{name:c,data:p}}(r),i.series.push(a)}),i}var bP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.onclick=function(e,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var r=i.getDom(),o=this.model;this._dom&&r.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",a.style.backgroundColor=o.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=o.get("lang")||[];s.innerHTML=l[0]||o.get("title"),s.style.cssText="margin:10px 20px",s.style.color=o.get("textColor");var u=document.createElement("div"),h=document.createElement("textarea");u.style.cssText="overflow:auto";var c=o.get("optionToContent"),p=o.get("contentToOption"),d=function(S){var M,T,I,C=function(D){var L={},R=[],P=[];return D.eachRawSeries(function(E){var k=E.coordinateSystem;if(!k||k.type!=="cartesian2d"&&k.type!=="polar")R.push(E);else{var O=k.getBaseAxis();if(O.type==="category"){var N=O.dim+"_"+O.index;L[N]||(L[N]={categoryAxis:O,valueAxis:k.getOtherAxis(O),series:[]},P.push({axisDim:O.dim,axisIndex:O.index})),L[N].series.push(E)}else R.push(E)}}),{seriesGroupByCategoryAxis:L,other:R,meta:P}}(S);return{value:We([(T=C.seriesGroupByCategoryAxis,I=[],A(T,function(D,L){var R=D.categoryAxis,P=D.valueAxis.dim,E=[" "].concat(X(D.series,function(U){return U.name})),k=[R.model.getCategories()];A(D.series,function(U){var Z=U.getRawData();k.push(U.getRawData().mapArray(Z.mapDimension(P),function(F){return F}))});for(var O=[E.join(Oo)],N=0;N<k[0].length;N++){for(var B=[],z=0;z<k.length;z++)B.push(k[z][N]);O.push(B.join(Oo))}I.push(O.join(`
- `))}),I.join(`
- `+oh+`
- `)),(M=C.other,X(M,function(D){var L=D.getRawData(),R=[D.name],P=[];return L.each(L.dimensions,function(){for(var E=arguments.length,k=arguments[E-1],O=L.getName(k),N=0;N<E-1;N++)P[N]=arguments[N];R.push((O?O+Oo:"")+P.join(Oo))}),R.join(`
- `)}).join(`
- `+oh+`
- `))],function(D){return!!D.replace(/[\n\t\s]/g,"")}).join(`
- `+oh+`
- `),meta:C.meta}}(e);if(ae(c)){var f=c(i.getOption());q(f)?u.innerHTML=f:Wi(f)&&u.appendChild(f)}else{h.readOnly=o.get("readOnly");var g=h.style;g.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",g.color=o.get("textColor"),g.borderColor=o.get("textareaBorderColor"),g.backgroundColor=o.get("textareaColor"),h.value=d.value,u.appendChild(h)}var y=d.meta,v=document.createElement("div");v.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",x=document.createElement("div"),_=document.createElement("div");m+=";background-color:"+o.get("buttonColor"),m+=";color:"+o.get("buttonTextColor");var b=this;function w(){r.removeChild(a),b._dom=null}Lh(x,"click",w),Lh(_,"click",function(){if(p==null&&c!=null||p!=null&&c==null)return Je("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),void w();var S;try{S=ae(p)?p(u,i.getOption()):wP(h.value,y)}catch(M){throw w(),new Error("Data view format error "+M)}S&&i.dispatchAction({type:"changeDataView",newOption:S}),w()}),x.innerHTML=l[1],_.innerHTML=l[2],_.style.cssText=x.style.cssText=m,!o.get("readOnly")&&v.appendChild(_),v.appendChild(x),a.appendChild(s),a.appendChild(u),a.appendChild(v),u.style.height=r.clientHeight-80+"px",r.appendChild(a),this._dom=a},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){return{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"}},t}(An);function SP(n,t){return X(n,function(e,i){var r=t&&t[i];if(Q(r)&&!Y(r)){Q(e)&&!Y(e)||(e={value:e});var o=r.name!=null&&e.name==null;return e=le(e,r),o&&delete e.name,e}return e})}Mn({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(n,t){var e=[];A(n.newOption.series,function(i){var r=t.getSeriesByName(i.name)[0];if(r){var o=r.get("data");e.push({name:i.name,data:SP(i.data,o)})}else e.push(G({type:"scatter"},i))}),t.mergeOption(le({series:e},n.newOption))});const MP=bP;var lS=A,uS=Ne();function zf(n){var t=uS(n);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var TP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.onclick=function(e,i){(function(r){uS(r).snapshots=null})(e),i.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){return{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"])}},t}(An);Mn({type:"restore",event:"restore",update:"prepareAndUpdate"},function(n,t){t.resetOption("recreate")});const IP=TP;var CP=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],AP=function(){function n(t,e,i){var r=this;this._targetInfoList=[];var o=hS(e,t);A(DP,function(a,s){(!i||!i.include||Se(i.include,s)>=0)&&a(o,r._targetInfoList)})}return n.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(i,r,o){if((i.coordRanges||(i.coordRanges=[])).push(r),!i.coordRange){i.coordRange=r;var a=Vf[i.brushType](0,o,r);i.__rangeOffset={offset:fS[i.brushType](a.values,i.range,[1,1]),xyMinMax:a.xyMinMax}}}),t},n.prototype.matchOutputRanges=function(t,e,i){A(t,function(r){var o=this.findTargetInfo(r,e);o&&o!==!0&&A(o.coordSyses,function(a){var s=Vf[r.brushType](1,a,r.range,!0);i(r,s.values,a,e)})},this)},n.prototype.setInputRanges=function(t,e){A(t,function(i){var r,o,a,s,l,u=this.findTargetInfo(i,e);if(ue(!u||u===!0||i.coordRange,"coordRange must be specified when coord index specified."),ue(!u||u!==!0||i.range,"range must be specified in global brush."),i.range=i.range||[],u&&u!==!0){i.panelId=u.panelId;var h=Vf[i.brushType](0,u.coordSys,i.coordRange),c=i.__rangeOffset;i.range=c?fS[i.brushType](h.values,c.offset,(r=h.xyMinMax,o=c.xyMinMax,a=yS(r),s=yS(o),l=[a[0]/s[0],a[1]/s[1]],isNaN(l[0])&&(l[0]=1),isNaN(l[1])&&(l[1]=1),l)):h.values}},this)},n.prototype.makePanelOpts=function(t,e){return X(this._targetInfoList,function(i){var r=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:e?e(i):null,clipPath:hb(r),isTargetByCursor:pb(r,t,i.coordSysModel),getLinearBrushOtherExtent:cb(r)}})},n.prototype.controlSeries=function(t,e,i){var r=this.findTargetInfo(t,i);return r===!0||r&&Se(r.coordSyses,e.coordinateSystem)>=0},n.prototype.findTargetInfo=function(t,e){for(var i=this._targetInfoList,r=hS(e,t),o=0;o<i.length;o++){var a=i[o],s=t.panelId;if(s){if(a.panelId===s)return a}else for(var l=0;l<cS.length;l++)if(cS[l](r,a))return a}return!0},n}();function Bf(n){return n[0]>n[1]&&n.reverse(),n}function hS(n,t){return ua(n,t,{includeMainTypes:CP})}var DP={grid:function(n,t){var e=n.xAxisModels,i=n.yAxisModels,r=n.gridModels,o=ie(),a={},s={};(e||i||r)&&(A(e,function(l){var u=l.axis.grid.model;o.set(u.id,u),a[u.id]=!0}),A(i,function(l){var u=l.axis.grid.model;o.set(u.id,u),s[u.id]=!0}),A(r,function(l){o.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),o.each(function(l){var u=l.coordinateSystem,h=[];A(u.getCartesians(),function(c,p){(Se(e,c.getAxis("x").model)>=0||Se(i,c.getAxis("y").model)>=0)&&h.push(c)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:h[0],coordSyses:h,getPanelRect:pS.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(n,t){A(n.geoModels,function(e){var i=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:i,coordSyses:[i],getPanelRect:pS.geo})})}},cS=[function(n,t){var e=n.xAxisModel,i=n.yAxisModel,r=n.gridModel;return!r&&e&&(r=e.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(n,t){var e=n.geoModel;return e&&e===t.geoModel}],pS={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var n=this.coordSys,t=n.getBoundingRect().clone();return t.applyTransform(Ci(n)),t}},Vf={lineX:ve(dS,0),lineY:ve(dS,1),rect:function(n,t,e,i){var r=n?t.pointToData([e[0][0],e[1][0]],i):t.dataToPoint([e[0][0],e[1][0]],i),o=n?t.pointToData([e[0][1],e[1][1]],i):t.dataToPoint([e[0][1],e[1][1]],i),a=[Bf([r[0],o[0]]),Bf([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(n,t,e,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:X(e,function(o){var a=n?t.pointToData(o,i):t.dataToPoint(o,i);return r[0][0]=Math.min(r[0][0],a[0]),r[1][0]=Math.min(r[1][0],a[1]),r[0][1]=Math.max(r[0][1],a[0]),r[1][1]=Math.max(r[1][1],a[1]),a}),xyMinMax:r}}};function dS(n,t,e,i){ue(e.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var r=e.getAxis(["x","y"][n]),o=Bf(X([0,1],function(s){return t?r.coordToData(r.toLocalCoord(i[s]),!0):r.toGlobalCoord(r.dataToCoord(i[s]))})),a=[];return a[n]=o,a[1-n]=[NaN,NaN],{values:o,xyMinMax:a}}var fS={lineX:ve(gS,0),lineY:ve(gS,1),rect:function(n,t,e){return[[n[0][0]-e[0]*t[0][0],n[0][1]-e[0]*t[0][1]],[n[1][0]-e[1]*t[1][0],n[1][1]-e[1]*t[1][1]]]},polygon:function(n,t,e){return X(n,function(i,r){return[i[0]-e[0]*t[r][0],i[1]-e[1]*t[r][1]]})}};function gS(n,t,e,i){return[t[0]-i[n]*e[0],t[1]-i[n]*e[1]]}function yS(n){return n?[n[0][1]-n[0][0],n[1][1]-n[1][0]]:[NaN,NaN]}const vS=AP;var Ff,Gf,Hf=A,kP=Ty+"toolbox-dataZoom_",LP=function(n){function t(){return n!==null&&n.apply(this,arguments)||this}return V(t,n),t.prototype.render=function(e,i,r,o){this._brushController||(this._brushController=new ub(r.getZr()),this._brushController.on("brush",ne(this._onBrush,this)).mount()),function(a,s,l,u,h){var c=l._isZoomActive;u&&u.type==="takeGlobalCursor"&&(c=u.key==="dataZoomSelect"&&u.dataZoomSelectActive),l._isZoomActive=c,a.setIconStatus("zoom",c?"emphasis":"normal");var p=new vS(Wf(a),s,{include:["grid"]}),d=p.makePanelOpts(h,function(f){return f.xAxisDeclared&&!f.yAxisDeclared?"lineX":!f.xAxisDeclared&&f.yAxisDeclared?"lineY":"rect"});l._brushController.setPanels(d).enableBrush(!(!c||!d.length)&&{brushType:"auto",brushStyle:a.getModel("brushStyle").getItemStyle()})}(e,i,this,o,r),function(a,s){a.setIconStatus("back",function(l){return zf(l).length}(s)>1?"emphasis":"normal")}(e,i)},t.prototype.onclick=function(e,i,r){PP[r].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){var r={},o=this.ecModel;this._brushController.updateCovers([]),new vS(Wf(this.model),o,{include:["grid"]}).matchOutputRanges(i,o,function(s,l,u){if(u.type==="cartesian2d"){var h=s.brushType;h==="rect"?(a("x",u,l[0]),a("y",u,l[1])):a({lineX:"x",lineY:"y"}[h],u,l)}}),function(s,l){var u=zf(s);lS(l,function(h,c){for(var p=u.length-1;p>=0&&!u[p][c];p--);if(p<0){var d=s.queryComponents({mainType:"dataZoom",subType:"select",id:c})[0];if(d){var f=d.getPercentRange();u[0][c]={dataZoomId:c,start:f[0],end:f[1]}}}}),u.push(l)}(o,r),this._dispatchZoomAction(r)}function a(s,l,u){var h=l.getAxis(s),c=h.model,p=function(f,g,y){var v;return y.eachComponent({mainType:"dataZoom",subType:"select"},function(m){m.getAxisModel(f,g.componentIndex)&&(v=m)}),v}(s,c,o),d=p.findRepresentativeAxisProxy(c).getMinMaxSpan();d.minValueSpan==null&&d.maxValueSpan==null||(u=Rr(0,u.slice(),h.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(r[p.id]={dataZoomId:p.id,startValue:u[0],endValue:u[1]})}},t.prototype._dispatchZoomAction=function(e){var i=[];Hf(e,function(r,o){i.push(oe(r))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},t.getDefaultOption=function(e){return{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)"}}},t}(An),PP={zoom:function(){var n=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:n})},back:function(){this._dispatchZoomAction(function(n){var t=zf(n),e=t[t.length-1];t.length>1&&t.pop();var i={};return lS(e,function(r,o){for(var a=t.length-1;a>=0;a--)if(r=t[a][o]){i[o]=r;break}}),i}(this.ecModel))}};function Wf(n){var t={xAxisIndex:n.get("xAxisIndex",!0),yAxisIndex:n.get("yAxisIndex",!0),xAxisId:n.get("xAxisId",!0),yAxisId:n.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}Ff="dataZoom",Gf=function(n){var t=n.getComponent("toolbox",0),e=["feature","dataZoom"];if(t&&t.get(e)!=null){var i=t.getModel(e),r=[],o=ua(n,Wf(i));return Hf(o.xAxisModels,function(s){return a(s,"xAxis","xAxisIndex")}),Hf(o.yAxisModels,function(s){return a(s,"yAxis","yAxisIndex")}),r}function a(s,l,u){var h=s.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:kP+l+h};c[u]=h,r.push(c)}},ue(xp.get(Ff)==null&&Gf),xp.set(Ff,Gf);const OP=LP,RP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),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}(Te);function mS(n){var t=n.get("confine");return t!=null?!!t:n.get("renderMode")==="richText"}function xS(n){if(xe.domSupported){for(var t=document.documentElement.style,e=0,i=n.length;e<i;e++)if(n[e]in t)return n[e]}}var _S=xS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function wS(n,t){if(!n)return t;t=pp(t,!0);var e=n.indexOf(t);return(n=e===-1?t:"-"+n.slice(0,e)+"-"+t).toLowerCase()}var EP=wS(xS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),Yf=wS(_S,"transform"),NP="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(xe.transform3dSupported?"will-change:transform;":"");function bS(n,t,e){var i=n.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!xe.transformSupported)return e?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=xe.transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return e?"top:0;left:0;"+Yf+":"+a+";":[["top",0],["left",0],[_S,a]]}function zP(n,t,e){var i=[],r=n.get("transitionDuration"),o=n.get("backgroundColor"),a=n.get("shadowBlur"),s=n.get("shadowColor"),l=n.get("shadowOffsetX"),u=n.get("shadowOffsetY"),h=n.getModel("textStyle"),c=P0(n,"html"),p=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+p),t&&r&&i.push(function(d,f){var g="cubic-bezier(0.23,1,0.32,1)",y=" "+d/2+"s "+g,v="opacity"+y+",visibility"+y;return f||(y=" "+d+"s "+g,v+=xe.transformSupported?","+Yf+y:",left"+y+",top"+y),EP+":"+v}(r,e)),o&&i.push("background-color:"+o),A(["width","color","radius"],function(d){var f="border-"+d,g=pp(f),y=n.get(g);y!=null&&i.push(f+":"+y+(d==="color"?"":"px"))}),i.push(function(d){var f=[],g=d.get("fontSize"),y=d.getTextColor();y&&f.push("color:"+y),f.push("font:"+d.getFont()),g&&f.push("line-height:"+Math.round(3*g/2)+"px");var v=d.get("textShadowColor"),m=d.get("textShadowBlur")||0,x=d.get("textShadowOffsetX")||0,_=d.get("textShadowOffsetY")||0;return v&&m&&f.push("text-shadow:"+x+"px "+_+"px "+m+"px "+v),A(["decoration","align"],function(b){var w=d.get(b);w&&f.push("text-"+b+":"+w)}),f.join(";")}(h)),c!=null&&i.push("padding:"+fo(c).join("px ")+"px"),i.join(";")+";"}function SS(n,t,e,i,r){var o=t&&t.painter;if(e){var a=o&&o.getViewportRoot();a&&function(l,u,h,c,p){Ch(Ih,u,c,p,!0)&&Ch(l,h,Ih[0],Ih[1])}(n,a,document.body,i,r)}else{n[0]=i,n[1]=r;var s=o&&o.getViewportRootOffset();s&&(n[0]+=s.offsetLeft,n[1]+=s.offsetTop)}n[2]=n[0]/t.getWidth(),n[3]=n[1]/t.getHeight()}var BP=function(){function n(t,e,i){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,xe.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var o=this._zr=e.getZr(),a=this._appendToBody=i&&i.appendToBody;SS(this._styleCoord,o,a,e.getWidth()/2,e.getHeight()/2),a?document.body.appendChild(r):t.appendChild(r),this._container=t;var s=this;r.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},r.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=o.handler;jt(o.painter.getViewportRoot(),l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return n.prototype.update=function(t){var e,i,r,o=this._container,a=(i="position",(r=(e=o).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?i?r[i]:r:null),s=o.style;s.position!=="absolute"&&a!=="absolute"&&(s.position="relative");var l=t.get("alwaysShowContent");l&&this._moveIfResized(),this._alwaysShowContent=l,this.el.className=t.get("className")||""},n.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,r=i.style,o=this._styleCoord;i.innerHTML?r.cssText=NP+zP(t,!this._firstShow,this._longHide)+bS(o[0],o[1],!0)+"border-color:"+_r(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},n.prototype.setContent=function(t,e,i,r,o){var a=this.el;if(t!=null){var s="";if(q(o)&&i.get("trigger")==="item"&&!mS(i)&&(s=function(h,c,p){if(!q(p)||p==="inside")return"";var d=h.get("backgroundColor"),f=h.get("borderWidth");c=_r(c);var g,y,v=(g=p)==="left"?"right":g==="right"?"left":g==="top"?"bottom":"top",m=Math.max(1.5*Math.round(f),6),x="",_=Yf+":";Se(["left","right"],v)>-1?(x+="top:50%",_+="translateY(-50%) rotate("+(y=v==="left"?-225:-45)+"deg)"):(x+="left:50%",_+="translateX(-50%) rotate("+(y=v==="top"?225:45)+"deg)");var b=y*Math.PI/180,w=m+f,S=w*Math.abs(Math.cos(b))+w*Math.abs(Math.sin(b)),M=c+" solid "+f+"px;";return'<div style="'+["position:absolute;width:"+m+"px;height:"+m+"px;z-index:-1;",(x+=";"+v+":-"+Math.round(100*((S-Math.SQRT2*f)/2+Math.SQRT2*f-(S-w)/2))/100+"px")+";"+_+";","border-bottom:"+M,"border-right:"+M,"background-color:"+d+";"].join("")+'"></div>'}(i,r,o)),q(t))a.innerHTML=t+s;else if(t){a.innerHTML="",Y(t)||(t=[t]);for(var l=0;l<t.length;l++)Wi(t[l])&&t[l].parentNode!==a&&a.appendChild(t[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}}else a.innerHTML=""},n.prototype.setEnterable=function(t){this._enterable=t},n.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},n.prototype.moveTo=function(t,e){var i=this._styleCoord;if(SS(i,this._zr,this._appendToBody,t,e),i[0]!=null&&i[1]!=null){var r=this.el.style;A(bS(i[0],i[1]),function(o){r[o[0]]=o[1]})}},n.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},n.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",xe.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},n.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ne(this.hide,this),t)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},n}();const VP=BP;var FP=function(){function n(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),TS(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return n.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},n.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},n.prototype.setContent=function(t,e,i,r,o){var a=this;Q(t)&&Dt("Passing DOM nodes as content is not supported in richText tooltip!"),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new ke({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:P0(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),A(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=i.get(u)}),A(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){a.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})},n.prototype.setEnterable=function(t){this._enterable=t},n.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=MS(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},n.prototype.moveTo=function(t,e){var i=this.el;if(i){var r=this._styleCoord;TS(r,this._zr,t,e),t=r[0],e=r[1];var o=i.style,a=Vi(o.borderWidth||0),s=MS(o);i.x=t+a+s.left,i.y=e+a+s.top,i.markRedraw()}},n.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},n.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},n.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ne(this.hide,this),t)):this.hide())},n.prototype.isShow=function(){return this._show},n.prototype.dispose=function(){this._zr.remove(this.el)},n}();function Vi(n){return Math.max(0,n)}function MS(n){var t=Vi(n.shadowBlur||0),e=Vi(n.shadowOffsetX||0),i=Vi(n.shadowOffsetY||0);return{left:Vi(t-e),right:Vi(t+e),top:Vi(t-i),bottom:Vi(t+i)}}function TS(n,t,e,i){n[0]=e,n[1]=i,n[2]=n[0]/t.getWidth(),n[3]=n[1]/t.getHeight()}const GP=FP;var HP=new Ie({shape:{x:-1,y:-1,width:2,height:2}}),WP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.init=function(e,i){if(!xe.node&&i.getDom()){var r,o=e.getComponent("tooltip"),a=this._renderMode=(r=o.get("renderMode"))==="auto"?xe.domSupported?"html":"richText":r||"html";this._tooltipContent=a==="richText"?new GP(i):new VP(i.getDom(),i,{appendToBody:o.get("appendToBody",!0)})}},t.prototype.render=function(e,i,r){if(!xe.node&&r.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=i,this._api=r;var o=this._tooltipContent;o.update(e),o.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Ba(this,"_updatePosition",50,"fixRate"):Va(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get("triggerOn");Fb("itemTooltip",this._api,ne(function(i,r,o){e!=="none"&&(e.indexOf(i)>=0?this._tryShow(r,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,i=this._ecModel,r=this._api,o=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!r.isDisposed()&&a.manuallyShowTip(e,i,r,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,i,r,o){if(o.from!==this.uid&&!xe.node&&r.getDom()){var a=IS(o,r);this._ticket="";var s=o.dataByCoordSys,l=function(f,g,y){var v=yc(f).queryOptionMap,m=v.keys()[0];if(!(!m||m==="series")){var x=ha(g,m,v.get(m),{useDefault:!1,enableAll:!1,enableNone:!1}),_=x.models[0];if(_){var b,w=y.getViewOfComponentModel(_);if(w.group.traverse(function(S){var M=_e(S).tooltipConfig;if(M&&M.name===f.name)return b=S,!0}),b)return{componentMainType:m,componentIndex:_.componentIndex,el:b}}}}(o,i,r);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:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var h=HP;h.x=o.x,h.y=o.y,h.update(),_e(h).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:h},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(e,i,r,o))return;var c=Hb(o,i),p=c.point[0],d=c.point[1];p!=null&&d!=null&&this._tryShow({offsetX:p,offsetY:d,target:c.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(r.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:r.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(e,i,r,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(IS(o,r))},t.prototype._manuallyAxisShowTip=function(e,i,r,o){var a=o.seriesIndex,s=o.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(a!=null&&s!=null&&l!=null){var u=i.getSeriesByIndex(a);if(u&&gs([u.getData().getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel).get("trigger")==="axis")return r.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}},t.prototype._tryShow=function(e,i){var r=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(r){var a,s;this._lastDataByCoordSys=null,br(r,function(l){return _e(l).dataIndex!=null?(a=l,!0):_e(l).tooltipConfig!=null?(s=l,!0):void 0},!0),a?this._showSeriesItemTooltip(e,a,i):s?this._showComponentItemTooltip(e,s,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},t.prototype._showOrMove=function(e,i){var r=e.get("showDelay");i=ne(i,this),clearTimeout(this._showTimout),r>0?this._showTimout=setTimeout(i,r):i()},t.prototype._showAxisTooltip=function(e,i){var r=this._ecModel,o=this._tooltipModel,a=[i.offsetX,i.offsetY],s=gs([i.tooltipOption],o),l=this._renderMode,u=[],h=Yn("section",{blocks:[],noHeader:!0}),c=[],p=new Ep;A(e,function(m){A(m.dataByAxis,function(x){var _=r.getComponent(x.axisDim+"Axis",x.axisIndex),b=x.value;if(_&&b!=null){var w=Rb(b,_.axis,r,x.seriesDataIndices,x.valueLabelOpt),S=Yn("section",{header:w,noHeader:!Xt(w),sortBlocks:!0,blocks:[]});h.blocks.push(S),A(x.seriesDataIndices,function(M){var T=r.getSeriesByIndex(M.seriesIndex),I=M.dataIndexInside,C=T.getDataParams(I);if(!(C.dataIndex<0)){C.axisDim=x.axisDim,C.axisIndex=x.axisIndex,C.axisType=x.axisType,C.axisId=x.axisId,C.axisValue=wd(_.axis,{value:b}),C.axisValueLabel=w,C.marker=p.makeTooltipMarker("item",_r(C.color),l);var D=g0(T.formatTooltip(I,!0,null)),L=D.frag;if(L){var R=gs([T],o).get("valueFormatter");S.blocks.push(R?G({valueFormatter:R},L):L)}D.text&&c.push(D.text),u.push(C)}})}})}),h.blocks.reverse(),c.reverse();var d=i.position,f=s.get("order"),g=D0(h,p,l,f,r.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var y=l==="richText"?`
- `:"<br/>",v=c.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,d,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,v,u,Math.random()+"",a[0],a[1],d,null,p)})},t.prototype._showSeriesItemTooltip=function(e,i,r){var o=this._ecModel,a=_e(i),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,h=a.dataIndex,c=a.dataType,p=u.getData(c),d=this._renderMode,f=e.positionDefault,g=gs([p.getItemModel(h),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),y=g.get("trigger");if(y==null||y==="item"){var v=u.getDataParams(h,c),m=new Ep;v.marker=m.makeTooltipMarker("item",_r(v.color),d);var x=g0(u.formatTooltip(h,!1,c)),_=g.get("order"),b=g.get("valueFormatter"),w=x.frag,S=w?D0(b?G({valueFormatter:b},w):w,m,d,_,o.get("useUTC"),g.get("textStyle")):x.text,M="item_"+u.name+"_"+h;this._showOrMove(g,function(){this._showTooltipContent(g,S,v,M,e.offsetX,e.offsetY,e.position,e.target,m)}),r({type:"showTip",dataIndexInside:h,dataIndex:p.getRawIndex(h),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,r){var o=_e(i),a=o.tooltipConfig.option||{};q(a)&&(a={content:a,formatter:a});var s=[a],l=this._ecModel.getComponent(o.componentMainType,o.componentIndex);l&&s.push(l),s.push({formatter:a.content});var u=e.positionDefault,h=gs(s,this._tooltipModel,u?{position:u}:null),c=h.get("content"),p=Math.random()+"",d=new Ep;this._showOrMove(h,function(){var f=oe(h.get("formatterParams")||{});this._showTooltipContent(h,c,f,p,e.offsetX,e.offsetY,e.position,i,d)}),r({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,r,o,a,s,l,u,h){if(this._ticket="",e.get("showContent")&&e.get("show")){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var p=e.get("formatter");l=l||e.get("position");var d=i,f=this._getNearestPoint([a,s],r,e.get("trigger"),e.get("borderColor")).color;if(p)if(q(p)){var g=e.ecModel.get("useUTC"),y=Y(r)?r[0]:r;d=p,y&&y.axisType&&y.axisType.indexOf("time")>=0&&(d=Ca(y.axisValue,d,g)),d=gp(d,r,!0)}else if(ae(p)){var v=ne(function(m,x){m===this._ticket&&(c.setContent(x,h,e,f,l),this._updatePosition(e,l,a,s,c,r,u))},this);this._ticket=o,d=p(r,o,v)}else d=p;c.setContent(d,h,e,f,l),c.show(e,f),this._updatePosition(e,l,a,s,c,r,u)}},t.prototype._getNearestPoint=function(e,i,r,o){return r==="axis"||Y(i)?{color:o||(this._renderMode==="html"?"#fff":"none")}:Y(i)?void 0:{color:o||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,r,o,a,s,l){var u=this._api.getWidth(),h=this._api.getHeight();i=i||e.get("position");var c=a.getSize(),p=e.get("align"),d=e.get("verticalAlign"),f=l&&l.getBoundingRect().clone();if(l&&f.applyTransform(l.transform),ae(i)&&(i=i([r,o],s,a.el,f,{viewSize:[u,h],contentSize:c.slice()})),Y(i))r=ee(i[0],u),o=ee(i[1],h);else if(Q(i)){var g=i;g.width=c[0],g.height=c[1];var y=St(g,{width:u,height:h});r=y.x,o=y.y,p=null,d=null}else if(q(i)&&l){var v=function(m,x,_,b){var w=_[0],S=_[1],M=Math.ceil(Math.SQRT2*b)+8,T=0,I=0,C=x.width,D=x.height;switch(m){case"inside":T=x.x+C/2-w/2,I=x.y+D/2-S/2;break;case"top":T=x.x+C/2-w/2,I=x.y-S-M;break;case"bottom":T=x.x+C/2-w/2,I=x.y+D+M;break;case"left":T=x.x-w-M,I=x.y+D/2-S/2;break;case"right":T=x.x+C+M,I=x.y+D/2-S/2}return[T,I]}(i,f,c,e.get("borderWidth"));r=v[0],o=v[1]}else v=function(m,x,_,b,w,S,M){var T=_.getSize(),I=T[0],C=T[1];return S!=null&&(m+I+S+2>b?m-=I+S:m+=S),M!=null&&(x+C+M>w?x-=C+M:x+=M),[m,x]}(r,o,a,u,h,p?null:20,d?null:20),r=v[0],o=v[1];p&&(r-=CS(p)?c[0]/2:p==="right"?c[0]:0),d&&(o-=CS(d)?c[1]/2:d==="bottom"?c[1]:0),mS(e)&&(v=function(m,x,_,b,w){var S=_.getSize(),M=S[0],T=S[1];return m=Math.min(m+M,b)-M,x=Math.min(x+T,w)-T,m=Math.max(m,0),x=Math.max(x,0),[m,x]}(r,o,a,u,h),r=v[0],o=v[1]),a.moveTo(r,o)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var r=this._lastDataByCoordSys,o=this._cbParamsList,a=!!r&&r.length===e.length;return a&&A(r,function(s,l){var u=s.dataByAxis||[],h=(e[l]||{}).dataByAxis||[];(a=a&&u.length===h.length)&&A(u,function(c,p){var d=h[p]||{},f=c.seriesDataIndices||[],g=d.seriesDataIndices||[];(a=a&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&f.length===g.length)&&A(f,function(y,v){var m=g[v];a=a&&y.seriesIndex===m.seriesIndex&&y.dataIndex===m.dataIndex}),o&&A(c.seriesDataIndices,function(y){var v=y.seriesIndex,m=i[v],x=o[v];m&&x&&x.data!==m.data&&(a=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!a},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,i){!xe.node&&i.getDom()&&(Va(this,"_updatePosition"),this._tooltipContent.dispose(),Af("itemTooltip",i))},t.type="tooltip",t}(je);function gs(n,t,e){var i,r=t.ecModel;e?(i=new He(e,r,r),i=new He(t.option,i,r)):i=t;for(var o=n.length-1;o>=0;o--){var a=n[o];a&&(a instanceof He&&(a=a.get("tooltip",!0)),q(a)&&(a={formatter:a}),a&&(i=new He(a,i,r)))}return i}function IS(n,t){return n.dispatchAction||ne(t.dispatchAction,t)}function CS(n){return n==="center"||n==="middle"}const YP=WP;var AS=A;function DS(n){if(n){for(var t in n)if(n.hasOwnProperty(t))return!0}}function kS(n,t,e){var i={};return AS(t,function(r){var o,a=i[r]=((o=function(){}).prototype.__hidden=o.prototype,new o);AS(n[r],function(s,l){if(Nt.isValidType(l)){var u={type:l,visual:s};e&&e(u,r),a[l]=new Nt(u),l==="opacity"&&((u=oe(u)).type="colorAlpha",a.__hidden.__alphaForOpacity=new Nt(u))}})}),i}function XP(n,t,e,i){var r={};return A(n,function(o){var a=Nt.prepareVisualTypes(t[o]);r[o]=a}),{progress:function(o,a){var s,l;function u(_){return Q0(a,l,_)}function h(_,b){(function(w,S,M,T){switch(M){case"color":w.ensureUniqueItemVisual(S,"style")[w.getVisual("drawType")]=T,w.setItemVisual(S,"colorFromPalette",!1);break;case"opacity":w.ensureUniqueItemVisual(S,"style").opacity=T;break;case"symbol":case"symbolSize":case"liftZ":w.setItemVisual(S,M,T);break;default:console.warn("Unknown visual type "+M)}})(a,l,_,b)}i!=null&&(s=a.getDimensionIndex(i));for(var c=a.getStore();(l=o.next())!=null;){var p=a.getRawDataItem(l);if(!p||p.visualMap!==!1)for(var d=i!=null?c.get(s,l):l,f=e(d),g=t[f],y=r[f],v=0,m=y.length;v<m;v++){var x=y[v];g[x]&&g[x].applyVisual(d,u,h)}}}}}var UP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return V(t,n),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}(Te),ZP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.render=function(e,i,r){if(this.group.removeAll(),e.get("show")){var o=this.group,a=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=Me(e.get("textBaseline"),e.get("textVerticalAlign")),h=new ke({style:it(a,{text:e.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),c=h.getBoundingRect(),p=e.get("subtext"),d=new ke({style:it(s,{text:p,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=e.get("link"),g=e.get("sublink"),y=e.get("triggerEvent",!0);h.silent=!f&&!y,d.silent=!g&&!y,f&&h.on("click",function(){Pm(f,"_"+e.get("target"))}),g&&d.on("click",function(){Pm(g,"_"+e.get("subtarget"))}),_e(h).eventData=_e(d).eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,o.add(h),p&&o.add(d);var v=o.getBoundingRect(),m=e.getBoxLayoutParams();m.width=v.width,m.height=v.height;var x=St(m,{width:r.getWidth(),height:r.getHeight()},e.get("padding"));l||((l=e.get("left")||e.get("right"))==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||((u=e.get("top")||e.get("bottom"))==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),o.x=x.x,o.y=x.y,o.markRedraw();var _={align:l,verticalAlign:u};h.setStyle(_),d.setStyle(_),v=o.getBoundingRect();var b=x.margin,w=e.getItemStyle(["color","opacity"]);w.fill=e.get("backgroundColor");var S=new Ie({shape:{x:v.x-b[3],y:v.y-b[0],width:v.width+b[1]+b[3],height:v.height+b[0]+b[2],r:e.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});o.add(S)}},t.type="title",t}(je),jP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return V(t,n),t.prototype.init=function(e,i,r){this.mergeDefaultAndTheme(e,r),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),this._updateSelector(e)},t.prototype._updateSelector=function(e){var i=e.selector,r=this.ecModel;i===!0&&(i=e.selector=["all","inverse"]),Y(i)&&A(i,function(o,a){q(o)&&(o={type:o}),i[a]=pe(o,function(s,l){return l==="all"?{type:"all",title:s.getLocaleModel().get(["legend","selector","all"])}:l==="inverse"?{type:"inverse",title:s.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(r,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var i=!1,r=0;r<e.length;r++){var o=e[r].get("name");if(this.isSelected(o)){this.select(o),i=!0;break}}!i&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var i=[],r=[];e.eachRawSeries(function(l){var u,h=l.name;if(r.push(h),l.legendVisualProvider){var c=l.legendVisualProvider.getAllNames();e.isSeriesFiltered(l)||(r=r.concat(c)),c.length?i=i.concat(c):u=!0}else u=!0;u&&gc(l)&&i.push(l.name)}),this._availableNames=r;var o=this.get("data")||i,a=ie(),s=X(o,function(l){return(q(l)||Re(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new He(l,this,this.ecModel))},this);this._data=We(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var i=this.option.selected;this.get("selectedMode")==="single"&&A(this._data,function(r){i[r.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;A(e,function(r){i[r.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,i=this.option.selected;A(e,function(r){var o=r.get("name",!0);i.hasOwnProperty(o)||(i[o]=!0),i[o]=!i[o]})},t.prototype.isSelected=function(e){var i=this.option.selected;return!(i.hasOwnProperty(e)&&!i[e])&&Se(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}(Te);const Xf=jP;var Ro=ve,Uf=A,sh=fe,qP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return V(t,n),t.prototype.init=function(){this.group.add(this._contentGroup=new sh),this.group.add(this._selectorGroup=new sh),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,i,r){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var a=e.get("align"),s=e.get("orient");a&&a!=="auto"||(a=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(a,e,i,r,l,s,u);var h=e.getBoxLayoutParams(),c={width:r.getWidth(),height:r.getHeight()},p=e.get("padding"),d=St(h,c,p),f=this.layoutInner(e,a,d,o,l,u),g=St(le({width:f.width,height:f.height},h),c,p);this.group.x=g.x-f.x,this.group.y=g.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=oS(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,i,r,o,a,s,l){var u=this.getContentGroup(),h=ie(),c=i.get("selectedMode"),p=[];r.eachRawSeries(function(d){!d.get("legendHoverLink")&&p.push(d.id)}),Uf(i.getData(),function(d,f){var g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
- `)){var y=new sh;return y.newline=!0,void u.add(y)}var v=r.getSeriesByName(g)[0];if(!h.get(g)){if(v){var m=v.getData(),x=m.getVisual("legendLineStyle")||{},_=m.getVisual("legendIcon"),b=m.getVisual("style");this._createItem(v,g,f,d,i,e,x,b,_,c,o).on("click",Ro(LS,g,null,o,p)).on("mouseover",Ro(Zf,v.name,null,o,p)).on("mouseout",Ro(jf,v.name,null,o,p)),h.set(g,!0)}else r.eachRawSeries(function(w){if(!h.get(g)&&w.legendVisualProvider){var S=w.legendVisualProvider;if(!S.containName(g))return;var M=S.indexOfName(g),T=S.getItemVisual(M,"style"),I=S.getItemVisual(M,"legendIcon"),C=At(T.fill);C&&C[3]===0&&(C[3]=.2,T=G(G({},T),{fill:vn(C,"rgba")})),this._createItem(w,g,f,d,i,e,{},T,I,c,o).on("click",Ro(LS,null,g,o,p)).on("mouseover",Ro(Zf,null,g,o,p)).on("mouseout",Ro(jf,null,g,o,p)),h.set(g,!0)}},this);h.get(g)||console.warn(g+" series not exists. Legend data should be same with series name or data name.")}},this),a&&this._createSelector(a,i,o,s,l)},t.prototype._createSelector=function(e,i,r,o,a){var s=this.getSelectorGroup();Uf(e,function(l){var u=l.type,h=new ke({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){r.dispatchAction({type:u==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h),ai(h,{normal:i.getModel("selectorLabel"),emphasis:i.getModel(["emphasis","selectorLabel"])},{defaultText:l.title}),ro(h)})},t.prototype._createItem=function(e,i,r,o,a,s,l,u,h,c,p){var d=e.visualDrawType,f=a.get("itemWidth"),g=a.get("itemHeight"),y=a.isSelected(i),v=o.get("symbolRotate"),m=o.get("symbolKeepAspect"),x=o.get("icon"),_=function(P,E,k,O,N,B,z){function U(J,H){J.lineWidth==="auto"&&(J.lineWidth=H.lineWidth>0?2:0),Uf(J,function($,re){J[re]==="inherit"&&(J[re]=H[re])})}var Z=E.getModel("itemStyle"),F=Z.getItemStyle(),W=P.lastIndexOf("empty",0)===0?"fill":"stroke",K=Z.getShallow("decal");F.decal=K&&K!=="inherit"?ou(K,z):O.decal,F.fill==="inherit"&&(F.fill=O[N]),F.stroke==="inherit"&&(F.stroke=O[W]),F.opacity==="inherit"&&(F.opacity=(N==="fill"?O:k).opacity),U(F,O);var se=E.getModel("lineStyle"),he=se.getLineStyle();if(U(he,k),F.fill==="auto"&&(F.fill=O.fill),F.stroke==="auto"&&(F.stroke=O.fill),he.stroke==="auto"&&(he.stroke=O.fill),!B){var te=E.get("inactiveBorderWidth"),j=F[W];F.lineWidth=te==="auto"?O.lineWidth>0&&j?2:0:F.lineWidth,F.fill=E.get("inactiveColor"),F.stroke=E.get("inactiveBorderColor"),he.stroke=se.get("inactiveColor"),he.lineWidth=se.get("inactiveWidth")}return{itemStyle:F,lineStyle:he}}(h=x||h||"roundRect",o,l,u,d,y,p),b=new sh,w=o.getModel("textStyle");if(!ae(e.getLegendIcon)||x&&x!=="inherit"){var S=x==="inherit"&&e.getData().getVisual("symbol")?v==="inherit"?e.getData().getVisual("symbolRotate"):v:0;b.add(function(P){var E=P.icon||"roundRect",k=ut(E,0,0,P.itemWidth,P.itemHeight,P.itemStyle.fill,P.symbolKeepAspect);return k.setStyle(P.itemStyle),k.rotation=(P.iconRotate||0)*Math.PI/180,k.setOrigin([P.itemWidth/2,P.itemHeight/2]),E.indexOf("empty")>-1&&(k.style.stroke=k.style.fill,k.style.fill="#fff",k.style.lineWidth=2),k}({itemWidth:f,itemHeight:g,icon:h,iconRotate:S,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}))}else b.add(e.getLegendIcon({itemWidth:f,itemHeight:g,icon:h,iconRotate:v,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:m}));var M=s==="left"?f+5:-5,T=s,I=a.get("formatter"),C=i;q(I)&&I?C=I.replace("{name}",i??""):ae(I)&&(C=I(i));var D=y?w.getTextColor():o.get("inactiveColor");b.add(new ke({style:it(w,{text:C,x:M,y:g/2,fill:D,align:T,verticalAlign:"middle"},{inheritColor:D})}));var L=new Ie({shape:b.getBoundingRect(),invisible:!0}),R=o.getModel("tooltip");return R.get("show")&&Ma({el:L,componentModel:a,itemName:i,itemTooltipOption:R.option}),b.add(L),b.eachChild(function(P){P.silent=!0}),L.silent=!c,this.getContentGroup().add(b),ro(b),b.__legendDataIndex=r,b},t.prototype.layoutInner=function(e,i,r,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();wr(e.get("orient"),l,e.get("itemGap"),r.width,r.height);var h=l.getBoundingRect(),c=[-h.x,-h.y];if(u.markRedraw(),l.markRedraw(),a){wr("horizontal",u,e.get("selectorItemGap",!0));var p=u.getBoundingRect(),d=[-p.x,-p.y],f=e.get("selectorButtonGap",!0),g=e.getOrient().index,y=g===0?"width":"height",v=g===0?"height":"width",m=g===0?"y":"x";s==="end"?d[g]+=h[y]+f:c[g]+=p[y]+f,d[1-g]+=h[v]/2-p[v]/2,u.x=d[0],u.y=d[1],l.x=c[0],l.y=c[1];var x={x:0,y:0};return x[y]=h[y]+f+p[y],x[v]=Math.max(h[v],p[v]),x[m]=Math.min(0,p[m]+d[1-g]),x}return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(je);function LS(n,t,e,i){jf(n,t,e,i),e.dispatchAction({type:"legendToggleSelect",name:n??t}),Zf(n,t,e,i)}function PS(n){for(var t,e=n.getZr().storage.getDisplayList(),i=0,r=e.length;i<r&&!(t=e[i].states.emphasis);)i++;return t&&t.hoverLayer}function Zf(n,t,e,i){PS(e)||e.dispatchAction({type:"highlight",seriesName:n,name:t,excludeSeriesId:i})}function jf(n,t,e,i){PS(e)||e.dispatchAction({type:"downplay",seriesName:n,name:t,excludeSeriesId:i})}const OS=qP;function KP(n){var t=n.findComponents({mainType:"legend"});t&&t.length&&n.filterSeries(function(e){for(var i=0;i<t.length;i++)if(!t[i].isSelected(e.name))return!1;return!0})}function ys(n,t,e){var i,r={},o=n==="toggleSelected";return e.eachComponent("legend",function(a){o&&i!=null?a[i?"select":"unSelect"](t.name):n==="allSelect"||n==="inverseSelect"?a[n]():(a[n](t.name),i=a.isSelected(t.name)),A(a.getData(),function(s){var l=s.get("name");if(l!==`
- `&&l!==""){var u=a.isSelected(l);r.hasOwnProperty(l)?r[l]=r[l]&&u:r[l]=u}})}),n==="allSelect"||n==="inverseSelect"?{selected:r}:{name:t.name,selected:r}}function RS(n){n.registerComponentModel(Xf),n.registerComponentView(OS),n.registerProcessor(n.PRIORITY.PROCESSOR.SERIES_FILTER,KP),n.registerSubTypeDefaulter("legend",function(){return"plain"}),function(t){t.registerAction("legendToggleSelect","legendselectchanged",ve(ys,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",ve(ys,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",ve(ys,"inverseSelect")),t.registerAction("legendSelect","legendselected",ve(ys,"select")),t.registerAction("legendUnSelect","legendunselected",ve(ys,"unSelect"))}(n)}function ES(n,t,e){var i=[1,1];i[n.getOrient().index]=0,go(t,e,{type:"box",ignoreSize:!!i})}const JP=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,r){var o=ka(e);n.prototype.init.call(this,e,i,r),ES(this,e,o)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),ES(this,this.option,e)},t.type="legend.scroll",t.defaultOption=xr(Xf.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}(Xf);var NS=fe,qf=["width","height"],Kf=["x","y"],$P=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return V(t,n),t.prototype.init=function(){n.prototype.init.call(this),this.group.add(this._containerGroup=new NS),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new NS)},t.prototype.resetInner=function(){n.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,r,o,a,s,l){var u=this;n.prototype.renderInner.call(this,e,i,r,o,a,s,l);var h=this._controllerGroup,c=i.get("pageIconSize",!0),p=Y(c)?c:[c,c];f("pagePrev",0);var d=i.getModel("pageTextStyle");function f(g,y){var v=g+"DataIndex",m=Sa(i.get("pageIcons",!0)[i.getOrient().name][y],{onclick:ne(u._pageGo,u,v,i,o)},{x:-p[0]/2,y:-p[1]/2,width:p[0],height:p[1]});m.name=g,h.add(m)}h.add(new ke({name:"pageText",style:{text:"xx/xx",fill:d.getTextColor(),font:d.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),f("pageNext",1)},t.prototype.layoutInner=function(e,i,r,o,a,s){var l=this.getSelectorGroup(),u=e.getOrient().index,h=qf[u],c=Kf[u],p=qf[1-u],d=Kf[1-u];a&&wr("horizontal",l,e.get("selectorItemGap",!0));var f=e.get("selectorButtonGap",!0),g=l.getBoundingRect(),y=[-g.x,-g.y],v=oe(r);a&&(v[h]=r[h]-g[h]-f);var m=this._layoutContentAndController(e,o,v,u,h,p,d,c);if(a){if(s==="end")y[u]+=m[h]+f;else{var x=g[h]+f;y[u]-=x,m[c]-=x}m[h]+=g[h]+f,y[1-u]+=m[d]+m[p]/2-g[p]/2,m[p]=Math.max(m[p],g[p]),m[d]=Math.min(m[d],g[d]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,i,r,o,a,s,l,u){var h=this.getContentGroup(),c=this._containerGroup,p=this._controllerGroup;wr(e.get("orient"),h,e.get("itemGap"),o?r.width:null,o?null:r.height),wr("horizontal",p,e.get("pageButtonItemGap",!0));var d=h.getBoundingRect(),f=p.getBoundingRect(),g=this._showController=d[a]>r[a],y=[-d.x,-d.y];i||(y[o]=h[u]);var v=[0,0],m=[-f.x,-f.y],x=Me(e.get("pageButtonGap",!0),e.get("itemGap",!0));g&&(e.get("pageButtonPosition",!0)==="end"?m[o]+=r[a]-f[a]:v[o]+=f[a]+x),m[1-o]+=d[s]/2-f[s]/2,h.setPosition(y),c.setPosition(v),p.setPosition(m);var _={x:0,y:0};if(_[a]=g?r[a]:d[a],_[s]=Math.max(d[s],f[s]),_[l]=Math.min(0,f[l]+m[1-o]),c.__rectSize=r[a],g){var b={x:0,y:0};b[a]=Math.max(r[a]-f[a]-x,0),b[s]=_[s],c.setClipPath(new Ie({shape:b})),c.__rectSize=b[a]}else p.eachChild(function(S){S.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(e);return w.pageIndex!=null&&ze(h,{x:w.contentPosition[0],y:w.contentPosition[1]},g?e:null),this._updatePageInfoView(e,w),_},t.prototype._pageGo=function(e,i,r){var o=this._getPageInfo(i)[e];o!=null&&r.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:i.id})},t.prototype._updatePageInfoView=function(e,i){var r=this._controllerGroup;A(["pagePrev","pageNext"],function(h){var c=i[h+"DataIndex"]!=null,p=r.childOfName(h);p&&(p.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),p.cursor=c?"pointer":"default")});var o=r.childOfName("pageText"),a=e.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;o&&a&&o.setStyle("text",q(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},t.prototype._getPageInfo=function(e){var i=e.get("scrollDataIndex",!0),r=this.getContentGroup(),o=this._containerGroup.__rectSize,a=e.getOrient().index,s=qf[a],l=Kf[a],u=this._findTargetItemIndex(i),h=r.children(),c=h[u],p=h.length,d=p?1:0,f={contentPosition:[r.x,r.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return f;var g=_(c);f.contentPosition[a]=-g.s;for(var y=u+1,v=g,m=g,x=null;y<=p;++y)(!(x=_(h[y]))&&m.e>v.s+o||x&&!b(x,v.s))&&(v=m.i>v.i?m:x)&&(f.pageNextDataIndex==null&&(f.pageNextDataIndex=v.i),++f.pageCount),m=x;for(y=u-1,v=g,m=g,x=null;y>=-1;--y)(x=_(h[y]))&&b(m,x.s)||!(v.i<m.i)||(m=v,f.pagePrevDataIndex==null&&(f.pagePrevDataIndex=v.i),++f.pageCount,++f.pageIndex),v=x;return f;function _(w){if(w){var S=w.getBoundingRect(),M=S[l]+w[l];return{s:M,e:M+S[s],i:w.__legendDataIndex}}}function b(w,S){return w.e>=S&&w.s<=S+o}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(o,a){var s=o.__legendDataIndex;r==null&&s!=null&&(r=a),s===e&&(i=a)}),i??r):0;var i,r},t.type="legend.scroll",t}(OS);const QP=$P;function eO(n){rt(RS),n.registerComponentModel(JP),n.registerComponentView(QP),function(t){t.registerAction("legendScroll","legendscroll",function(e,i){var r=e.scrollDataIndex;r!=null&&i.eachComponent({mainType:"legend",subType:"scroll",query:e},function(o){o.setScrollDataIndex(r)})})}(n)}const tO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="dataZoom.inside",t.defaultOption=xr(ds.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(ds);var Jf=Ne();function zS(n,t){if(t){n.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function nO(n,t){n.isDisposed()||n.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function iO(n,t,e,i){return n.coordinateSystem.containPoint([e,i])}function rO(n){n.registerProcessor(n.PRIORITY.PROCESSOR.FILTER,function(t,e){var i=Jf(e),r=i.coordSysRecordMap||(i.coordSysRecordMap=ie());r.each(function(o){o.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){A(Qb(o).infoList,function(a){var s=a.model.uid,l=r.get(s)||r.set(s,function(u,h){var c={model:h,containsPoint:ve(iO,h),dispatchAction:ve(nO,u),dataZoomInfoMap:null,controller:null},p=c.controller=new Zd(u.getZr());return A(["pan","zoom","scrollMove"],function(d){p.on(d,function(f){var g=[];c.dataZoomInfoMap.each(function(y){if(f.isAvailableBehavior(y.model.option)){var v=(y.getRange||{})[d],m=v&&v(y.dzReferCoordSysInfo,c.model.mainType,c.controller,f);!y.model.get("disabled",!0)&&m&&g.push({dataZoomId:y.model.id,start:m[0],end:m[1]})}}),g.length&&c.dispatchAction(g)})}),c}(e,a.model));(l.dataZoomInfoMap||(l.dataZoomInfoMap=ie())).set(o.uid,{dzReferCoordSysInfo:a,model:o,getRange:null})})}),r.each(function(o){var a,s=o.controller,l=o.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(a=l.get(u))}if(a){var h=function(c){var p,d="type_",f={type_true:2,type_move:1,type_false:0,type_undefined:-1},g=!0;return c.each(function(y){var v=y.model,m=!v.get("disabled",!0)&&(!v.get("zoomLock",!0)||"move");f[d+m]>f[d+p]&&(p=m),g=g&&v.get("preventDefaultMouseMove",!0)}),{controlType:p,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!g}}}(l);s.enable(h.controlType,h.opt),s.setPointerChecker(o.containsPoint),Ba(o,"dispatchAction",a.model.get("throttle",!0),"fixRate")}else zS(r,o)})})}var oO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return V(t,n),t.prototype.render=function(e,i,r){n.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(o,a,s){Jf(o).coordSysRecordMap.each(function(l){var u=l.dataZoomInfoMap.get(a.uid);u&&(u.getRange=s)})}(r,e,{pan:ne($f.pan,this),zoom:ne($f.zoom,this),scrollMove:ne($f.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){(function(e,i){for(var r=Jf(e).coordSysRecordMap,o=r.keys(),a=0;a<o.length;a++){var s=o[a],l=r.get(s),u=l.dataZoomInfoMap;if(u){var h=i.uid;u.get(h)&&(u.removeKey(h),u.keys().length||zS(r,l))}}})(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Rf),$f={zoom:function(n,t,e,i){var r=this.range,o=r.slice(),a=n.axisModels[0];if(a){var s=Qf[t](null,[i.originX,i.originY],a,e,n),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return Rr(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:BS(function(n,t,e,i,r,o){var a=Qf[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,e);return a.signal*(n[1]-n[0])*a.pixel/a.pixelLength}),scrollMove:BS(function(n,t,e,i,r,o){return Qf[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,e).signal*(n[1]-n[0])*o.scrollDelta})};function BS(n){return function(t,e,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s)return Rr(n(a,s,t,e,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var Qf={grid:function(n,t,e,i,r){var o=e.axis,a={},s=r.model.coordinateSystem.getRect();return n=n||[0,0],o.dim==="x"?(a.pixel=t[0]-n[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-n[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(n,t,e,i,r){var o=e.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return n=n?s.pointToCoord(n):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(a.pixel=t[0]-n[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-n[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(n,t,e,i,r){var o=e.axis,a=r.model.coordinateSystem.getRect(),s={};return n=n||[0,0],o.orient==="horizontal"?(s.pixel=t[0]-n[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-n[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};const aO=oO;function sO(n){Ef(n),n.registerComponentModel(tO),n.registerComponentView(aO),rO(n)}const lO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=xr(ds.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(ds);var vs=Ie,ms="horizontal",VS="vertical",uO=["line","bar","candlestick","scatter"],hO={easing:"cubicOut",duration:100,delay:0},cO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return V(t,n),t.prototype.init=function(e,i){this.api=i,this._onBrush=ne(this._onBrush,this),this._onBrushEnd=ne(this._onBrushEnd,this)},t.prototype.render=function(e,i,r,o){if(n.prototype.render.apply(this,arguments),Ba(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")!==!1){if(e.noTarget())return this._clear(),void this.group.removeAll();o&&o.type==="dataZoom"&&o.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),n.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Va(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 fe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(i),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,i=this.api,r=e.get("brushSelect")?7:0,o=this._findCoordRect(),a={width:i.getWidth(),height:i.getHeight()},s=this._orient===ms?{right:a.width-o.x-o.width,top:a.height-30-7-r,width:o.width,height:30}:{right:7,top:o.y,width:30,height:o.height},l=ka(e.option);A(["right","top","width","height"],function(h){l[h]==="ph"&&(l[h]=s[h])});var u=St(l,a);this._location={x:u.x,y:u.y},this._size=[u.width,u.height],this._orient===VS&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,i=this._location,r=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),a=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(r!==ms||a?r===ms&&a?{scaleY:l?1:-1,scaleX:-1}:r!==VS||a?{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?1:-1,scaleX:1});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,r=this._displayables.sliderGroup,o=e.get("brushSelect");r.add(new vs({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var a=new vs({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:ne(this._onClickPanel,this)}),s=this.api.getZr();o?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),r.add(a)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var i=this._size,r=this._shadowSize||[],o=e.series,a=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&a.getDimensionInfo(s)?o.getShadowDim():e.otherDim;if(l!=null){var u=this._shadowPolygonPts,h=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||i[0]!==r[0]||i[1]!==r[1]){var c=a.getDataExtent(l),p=.3*(c[1]-c[0]);c=[c[0]-p,c[1]+p];var d,f=[0,i[1]],g=[0,i[0]],y=[[i[0],0],[0,0]],v=[],m=g[1]/(a.count()-1),x=0,_=Math.round(a.count()/i[0]);a.each([l],function(T,I){if(_>0&&I%_)x+=m;else{var C=T==null||isNaN(T)||T==="",D=C?0:Ae(T,c,f,!0);C&&!d&&I?(y.push([y[y.length-1][0],0]),v.push([v[v.length-1][0],0])):!C&&d&&(y.push([x,0]),v.push([x,0])),y.push([x,D]),v.push([x,D]),x+=m,d=C}}),u=this._shadowPolygonPts=y,h=this._shadowPolylinePts=v}this._shadowData=a,this._shadowDim=l,this._shadowSize=[i[0],i[1]];for(var b=this.dataZoomModel,w=0;w<3;w++){var S=M(w===1);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}}}function M(T){var I=b.getModel(T?"selectedDataBackground":"dataBackground"),C=new fe,D=new Fn({shape:{points:u},segmentIgnoreThreshold:1,style:I.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),L=new wn({shape:{points:h},segmentIgnoreThreshold:1,style:I.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return C.add(D),C.add(L),C}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,i=e.get("showDataShadow");if(i!==!1){var r,o=this.ecModel;return e.eachTargetAxis(function(a,s){A(e.getAxisProxy(a,s).getTargetSeriesModels(),function(l){if(!(r||i!==!0&&Se(uO,l.get("type"))<0)){var u,h=o.getComponent(Bi(a),s).axis,c=function(d){var f={x:"y",y:"x",radius:"angle",angle:"radius"};return f[d]}(a),p=l.coordinateSystem;c!=null&&p.getOtherAxis&&(u=p.getOtherAxis(h).inverse),c=l.getData().mapDimension(c),r={thisAxis:h,series:l,thisDim:a,otherDim:c,otherAxisInverse:u}}},this)},this),r}},t.prototype._renderHandle=function(){var e=this.group,i=this._displayables,r=i.handles=[null,null],o=i.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,h=l.get("borderRadius")||0,c=l.get("brushSelect"),p=i.filler=new vs({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(p),a.add(new vs({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:h},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),A([0,1],function(x){var _=l.get("handleIcon");!eu[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_,$t("handleIcon now needs 'path://' prefix when using a path string"));var b=ut(_,-1,0,2,2,null,!0);b.attr({cursor:FS(this._orient),draggable:!0,drift:ne(this._onDragMove,this,x),ondragend:ne(this._onDragEnd,this),onmouseover:ne(this._showDataInfo,this,!0),onmouseout:ne(this._showDataInfo,this,!1),z2:5});var w=b.getBoundingRect(),S=l.get("handleSize");this._handleHeight=ee(S,this._size[1]),this._handleWidth=w.width/w.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(),ro(b);var M=l.get("handleColor");M!=null&&(b.style.fill=M),a.add(r[x]=b);var T=l.getModel("textStyle");e.add(o[x]=new ke({silent:!0,invisible:!0,style:it(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var d=p;if(c){var f=ee(l.get("moveHandleSize"),s[1]),g=i.moveHandle=new Ie({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:f}}),y=.8*f,v=i.moveHandleIcon=ut(l.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);v.silent=!0,v.y=s[1]+f/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(f,10));(d=i.moveZone=new Ie({invisible:!0,shape:{y:s[1]-m,height:f+m}})).on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),a.add(g),a.add(v),a.add(d)}d.attr({draggable:!0,cursor:FS(this._orient),drift:ne(this._onDragMove,this,"all"),ondragstart:ne(this._showDataInfo,this,!0),ondragend:ne(this._onDragEnd,this),onmouseover:ne(this._showDataInfo,this,!0),onmouseout:ne(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Ae(e[0],[0,100],i,!0),Ae(e[1],[0,100],i,!0)]},t.prototype._updateInterval=function(e,i){var r=this.dataZoomModel,o=this._handleEnds,a=this._getViewExtent(),s=r.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Rr(i,o,a,r.get("zoomLock")?"all":e,s.minSpan!=null?Ae(s.minSpan,l,a,!0):null,s.maxSpan!=null?Ae(s.maxSpan,l,a,!0):null);var u=this._range,h=this._range=ei([Ae(o[0],a,l,!0),Ae(o[1],a,l,!0)]);return!u||u[0]!==h[0]||u[1]!==h[1]},t.prototype._updateView=function(e){var i=this._displayables,r=this._handleEnds,o=ei(r.slice()),a=this._size;A([0,1],function(d){var f=i.handles[d],g=this._handleHeight;f.attr({scaleX:g/2,scaleY:g/2,x:r[d]+(d?-1:1),y:a[1]/2-g/2})},this),i.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:a[1]});var s={x:o[0],width:o[1]-o[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,o[0],o[1],a[0]],h=0;h<l.length;h++){var c=l[h],p=c.getClipPath();p||(p=new Ie,c.setClipPath(p)),p.setShape({x:u[h],y:0,width:u[h+1]-u[h],height:a[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var i=this.dataZoomModel,r=this._displayables,o=r.handleLabels,a=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,h=this._range,c=e?l.calculateDataWindow({start:h[0],end:h[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var p=ei(this._handleEnds.slice());function d(f){var g=Ci(r.handles[f].parent,this.group),y=Tl(f===0?"right":"left",g),v=this._handleWidth/2+5,m=Gn([p[f]+(f===0?-v:v),this._size[1]/2],g);o[f].setStyle({x:m[0],y:m[1],verticalAlign:a===ms?"middle":y,align:a===ms?y:"center",text:s[f]})}d.call(this,0),d.call(this,1)},t.prototype._formatLabel=function(e,i){var r=this.dataZoomModel,o=r.get("labelFormatter"),a=r.get("labelPrecision");a!=null&&a!=="auto"||(a=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(a,20));return ae(o)?o(e,s):q(o)?o.replace("{value}",s):s},t.prototype._showDataInfo=function(e){e=this._dragging||e;var i=this._displayables,r=i.handleLabels;r[0].attr("invisible",!e),r[1].attr("invisible",!e),i.moveHandle&&this.api[e?"enterEmphasis":"leaveEmphasis"](i.moveHandle,1)},t.prototype._onDragMove=function(e,i,r,o){this._dragging=!0,$n(o.event);var a=Gn([i,r],this._displayables.sliderGroup.getLocalTransform(),!0),s=this._updateInterval(e,a[0]),l=this.dataZoomModel.get("realtime");this._updateView(!l),s&&l&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),!this.dataZoomModel.get("realtime")&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var i=this._size,r=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(r[0]<0||r[0]>i[0]||r[1]<0||r[1]>i[1])){var o=this._handleEnds,a=(o[0]+o[1])/2,s=this._updateInterval("all",r[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var i=e.offsetX,r=e.offsetY;this._brushStart=new de(i,r),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 r=i.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(r.width)<5)){var o=this._getViewExtent(),a=[0,100];this._range=ei([Ae(r.x,o,a,!0),Ae(r.x+r.width,o,a,!0)]),this._handleEnds=[r.x,r.x+r.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&($n(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,i){var r=this._displayables,o=this.dataZoomModel,a=r.brushRect;a||(a=r.brushRect=new vs({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),r.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,i),h=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),a.setShape({x:h[0],y:0,width:u[0]-h[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?hO:null,start:i[0],end:i[1]})},t.prototype._findCoordRect=function(){var e,i=Qb(this.dataZoomModel).infoList;if(!e&&i.length){var r=i[0].model.coordinateSystem;e=r.getRect&&r.getRect()}if(!e){var o=this.api.getWidth(),a=this.api.getHeight();e={x:.2*o,y:.2*a,width:.6*o,height:.6*a}}return e},t.type="dataZoom.slider",t}(Rf);function FS(n){return n==="vertical"?"ns-resize":"ew-resize"}const pO=cO;function dO(n){n.registerComponentModel(lO),n.registerComponentView(pO),Ef(n)}var fO={get:function(n,t,e){var i=oe((gO[n]||{})[t]);return e&&Y(i)?i[i.length-1]:i}},gO={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]}};const GS=fO;var HS=Nt.mapVisual,yO=Nt.eachVisual,vO=Y,WS=A,mO=ei,xO=Ae,_O=function(n){function t(){var e=n!==null&&n.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 V(t,n),t.prototype.init=function(e,i,r){this.mergeDefaultAndTheme(e,r)},t.prototype.optionUpdated=function(e,i){var r=this.option;!i&&function(o,a,s){var l;A(s,function(u){a.hasOwnProperty(u)&&DS(a[u])&&(l=!0)}),l&&A(s,function(u){a.hasOwnProperty(u)&&DS(a[u])?o[u]=oe(a[u]):delete o[u]})}(r,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var i=this.stateList;e=ne(e,this),this.controllerVisuals=kS(this.option.controller,i,e),this.targetVisuals=kS(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(r,o){i.push(o)}):i=Qe(e),i},t.prototype.eachTargetSeries=function(e,i){A(this.getTargetSeriesIndices(),function(r){var o=this.ecModel.getSeriesByIndex(r);o&&e.call(i,o)},this)},t.prototype.isTargetSeries=function(e){var i=!1;return this.eachTargetSeries(function(r){r===e&&(i=!0)}),i},t.prototype.formatValueText=function(e,i,r){var o,a=this.option,s=a.precision,l=this.dataBound,u=a.formatter;r=r||["<",">"],Y(e)&&(e=e.slice(),o=!0);var h=i?e:o?[c(e[0]),c(e[1])]:c(e);return q(u)?u.replace("{value}",o?h[0]:h).replace("{value2}",o?h[1]:h):ae(u)?o?u(e[0],e[1]):u(e):o?e[0]===l[0]?r[0]+" "+h[1]:e[1]===l[1]?r[1]+" "+h[0]:h[0]+" - "+h[1]:h;function c(p){return p===l[0]?"min":p===l[1]?"max":(+p).toFixed(Math.min(s,20))}},t.prototype.resetExtent=function(){var e=this.option,i=mO([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 r=e.dimensions,o=r.length-1;o>=0;o--){var a=r[o],s=e.getDimensionInfo(a);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,r={inRange:i.inRange,outOfRange:i.outOfRange},o=i.target||(i.target={}),a=i.controller||(i.controller={});pe(o,r),pe(a,r);var s=this.isCategory();function l(u){vO(i.color)&&!u.inRange&&(u.inRange={color:i.color.slice().reverse()}),u.inRange=u.inRange||{color:e.get("gradientColor")}}l.call(this,o),l.call(this,a),(function(u,h,c){var p=u[h],d=u[c];p&&!d&&(d=u[c]={},WS(p,function(f,g){if(Nt.isValidType(g)){var y=GS.get(g,"inactive",s);y!=null&&(d[g]=y,g!=="color"||d.hasOwnProperty("opacity")||d.hasOwnProperty("colorAlpha")||(d.opacity=[0,0]))}}))}).call(this,o,"inRange","outOfRange"),(function(u){var h=(u.inRange||{}).symbol||(u.outOfRange||{}).symbol,c=(u.inRange||{}).symbolSize||(u.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol()||"roundRect";WS(this.stateList,function(f){var g=this.itemSize,y=u[f];y||(y=u[f]={color:s?p:[p]}),y.symbol==null&&(y.symbol=h&&oe(h)||(s?d:[d])),y.symbolSize==null&&(y.symbolSize=c&&oe(c)||(s?g[0]:[g[0],g[0]])),y.symbol=HS(y.symbol,function(x){return x==="none"?d:x});var v=y.symbolSize;if(v!=null){var m=-1/0;yO(v,function(x){x>m&&(m=x)}),y.symbolSize=HS(v,function(x){return xO(x,[0,m],[0,g[0]],!0)})}},this)}).call(this,a)},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}(Te);const lh=_O;var YS=[20,140],wO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.optionUpdated=function(e,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(r){r.mappingMethod="linear",r.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){n.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=YS[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=YS[1])},t.prototype._resetRange=function(){var e=this.getExtent(),i=this.option.range;!i||i.auto?(e.auto=1,this.option.range=e):Y(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(){n.prototype.completeVisualOption.apply(this,arguments),A(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=ei((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,r=this.getExtent();return(i[0]<=r[0]||i[0]<=e)&&(i[1]>=r[1]||e<=i[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var i=[];return this.eachTargetSeries(function(r){var o=[],a=r.getData();a.each(this.getDataDimensionIndex(a),function(s,l){e[0]<=s&&s<=e[1]&&o.push(l)},this),i.push({seriesId:r.id,dataIndex:o})},this),i},t.prototype.getVisualMeta=function(e){var i=XS(this,"outOfRange",this.getExtent()),r=XS(this,"inRange",this.option.range.slice()),o=[];function a(d,f){o.push({value:d,color:e(d,f)})}for(var s=0,l=0,u=r.length,h=i.length;l<h&&(!r.length||i[l]<=r[0]);l++)i[l]<r[s]&&a(i[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&o.length&&a(r[s],"outOfRange"),a(r[s],"inRange");for(c=1;l<h;l++)(!r.length||r[r.length-1]<i[l])&&(c&&(o.length&&a(o[o.length-1].value,"outOfRange"),c=0),a(i[l],"outOfRange"));var p=o.length;return{stops:o,outerColors:[p?o[0].color:"transparent",p?o[p-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=xr(lh.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}(lh);function XS(n,t,e){if(e[0]===e[1])return e.slice();for(var i=(e[1]-e[0])/200,r=e[0],o=[],a=0;a<=200&&r<e[1];a++)o.push(r),r+=i;return o.push(e[1]),o}const bO=wO,US=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return V(t,n),t.prototype.init=function(e,i){this.ecModel=e,this.api=i},t.prototype.render=function(e,i,r,o){this.visualMapModel=e,e.get("show")!==!1?this.doRender(e,i,r,o):this.group.removeAll()},t.prototype.renderBackground=function(e){var i=this.visualMapModel,r=fo(i.get("padding")||0),o=e.getBoundingRect();e.add(new Ie({z2:-1,silent:!0,shape:{x:o.x-r[3],y:o.y-r[0],width:o.width+r[3]+r[1],height:o.height+r[0]+r[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,i,r){var o=(r=r||{}).forceState,a=this.visualMapModel,s={};if(i==="color"){var l=a.get("contentColor");s.color=l}function u(p){return s[p]}function h(p,d){s[p]=d}var c=a.controllerVisuals[o||a.getValueState(e)];return A(Nt.prepareVisualTypes(c),function(p){var d=c[p];r.convertOpacityToAlpha&&p==="opacity"&&(p="colorAlpha",d=c.__alphaForOpacity),Nt.dependsOn(p,i)&&d&&d.applyVisual(e,u,h)}),s[i]},t.prototype.positionGroup=function(e){var i=this.visualMapModel,r=this.api;Om(e,i.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})},t.prototype.doRender=function(e,i,r,o){},t.type="visualMap",t}(je);var ZS=[["left","right","width"],["top","bottom","height"]];function jS(n,t,e){var i=n.option,r=i.align;if(r!=null&&r!=="auto")return r;for(var o={width:t.getWidth(),height:t.getHeight()},a=i.orient==="horizontal"?1:0,s=ZS[a],l=[0,null,10],u={},h=0;h<3;h++)u[ZS[1-a][h]]=l[h],u[s[h]]=h===2?e[0]:i[s[h]];var c=[["x","width",3],["y","height",0]][a],p=St(u,o,i.padding);return s[(p.margin[c[2]]||0)+p[c[0]]+.5*p[c[1]]<.5*o[c[1]]?0:1]}function uh(n,t){return A(n||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),n}var jn=Ae,SO=A,qS=Math.min,eg=Math.max,MO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return V(t,n),t.prototype.doRender=function(e,i,r,o){this._api=r,o&&o.type==="selectDataRange"&&o.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 r=e.get("text");this._renderEndsText(i,r,0),this._renderEndsText(i,r,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},t.prototype._renderEndsText=function(e,i,r){if(i){var o=i[1-r];o=o!=null?o+"":"";var a=this.visualMapModel,s=a.get("textGap"),l=a.itemSize,u=this._shapes.mainGroup,h=this._applyTransform([l[0]/2,r===0?-s:l[1]+s],u),c=this._applyTransform(r===0?"bottom":"top",u),p=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new ke({style:it(d,{x:h[0],y:h[1],verticalAlign:p==="horizontal"?"middle":c,align:p==="horizontal"?c:"center",text:o})}))}},t.prototype._renderBar=function(e){var i=this.visualMapModel,r=this._shapes,o=i.itemSize,a=this._orient,s=this._useHandle,l=jS(i,this.api,o),u=r.mainGroup=this._createBarGroup(l),h=new fe;u.add(h),h.add(r.outOfRange=KS()),h.add(r.inRange=KS(null,s?$S(this._orient):null,ne(this._dragHandle,this,"all",!1),ne(this._dragHandle,this,"all",!0))),h.setClipPath(new Ie({shape:{x:0,y:0,width:o[0],height:o[1],r:3}}));var c=i.textStyleModel.getTextRect("\u56FD"),p=eg(c.width,c.height);s&&(r.handleThumbs=[],r.handleLabels=[],r.handleLabelPoints=[],this._createHandle(i,u,0,o,p,a),this._createHandle(i,u,1,o,p,a)),this._createIndicator(i,u,o,p,a),e.add(u)},t.prototype._createHandle=function(e,i,r,o,a,s){var l=ne(this._dragHandle,this,r,!1),u=ne(this._dragHandle,this,r,!0),h=Pn(e.get("handleSize"),o[0]),c=ut(e.get("handleIcon"),-h/2,-h/2,h,h,null,!0),p=$S(this._orient);c.attr({cursor:p,draggable:!0,drift:l,ondragend:u,onmousemove:function(v){$n(v.event)}}),c.x=o[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Gc(c,!0),i.add(c);var d=this.visualMapModel.textStyleModel,f=new ke({cursor:p,draggable:!0,drift:l,onmousemove:function(v){$n(v.event)},ondragend:u,style:it(d,{x:0,y:0,text:""})});f.ensureState("blur").style={opacity:.1},f.stateTransition={duration:200},this.group.add(f);var g=[h,0],y=this._shapes;y.handleThumbs[r]=c,y.handleLabelPoints[r]=g,y.handleLabels[r]=f},t.prototype._createIndicator=function(e,i,r,o,a){var s=Pn(e.get("indicatorSize"),r[0]),l=ut(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:r[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Gt){var h=l.style;l.useStyle(G({image:h.image,x:h.x,y:h.y,width:h.width,height:h.height},u))}else l.useStyle(u);i.add(l);var c=this.visualMapModel.textStyleModel,p=new ke({silent:!0,invisible:!0,style:it(c,{x:0,y:0,text:""})});this.group.add(p);var d=[(a==="horizontal"?o/2:6)+r[0]/2,0],f=this._shapes;f.indicator=l,f.indicatorLabel=p,f.indicatorLabelPoint=d,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,i,r,o){if(this._useHandle){if(this._dragging=!i,!i){var a=this._applyTransform([r,o],this._shapes.mainGroup,!0);this._updateInterval(e,a[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():JS(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,i=this._dataInterval=e.getSelected(),r=e.getExtent(),o=[0,e.itemSize[1]];this._handleEnds=[jn(i[0],r,o,!0),jn(i[1],r,o,!0)]},t.prototype._updateInterval=function(e,i){i=i||0;var r=this.visualMapModel,o=this._handleEnds,a=[0,r.itemSize[1]];Rr(i,o,a,e,0);var s=r.getExtent();this._dataInterval=[jn(o[0],a,s,!0),jn(o[1],a,s,!0)]},t.prototype._updateView=function(e){var i=this.visualMapModel,r=i.getExtent(),o=this._shapes,a=[0,i.itemSize[1]],s=e?a:this._handleEnds,l=this._createBarVisual(this._dataInterval,r,s,"inRange"),u=this._createBarVisual(r,r,a,"outOfRange");o.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),o.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,i,r,o){var a={forceState:o,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,a),l=[this.getControllerVisual(e[0],"symbolSize",a),this.getControllerVisual(e[1],"symbolSize",a)],u=this._createBarPoints(r,l);return{barColor:new _a(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,i){var r=[],o=(e[1]-e[0])/100;r.push({color:this.getControllerVisual(e[0],"color",i),offset:0});for(var a=1;a<100;a++){var s=e[0]+o*a;if(s>e[1])break;r.push({color:this.getControllerVisual(s,"color",i),offset:a/100})}return r.push({color:this.getControllerVisual(e[1],"color",i),offset:1}),r},t.prototype._createBarPoints=function(e,i){var r=this.visualMapModel.itemSize;return[[r[0]-i[0],e[0]],[r[0],e[0]],[r[0],e[1]],[r[0]-i[1],e[1]]]},t.prototype._createBarGroup=function(e){var i=this._orient,r=this.visualMapModel.get("inverse");return new fe(i!=="horizontal"||r?i==="horizontal"&&r?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:i!=="vertical"||r?{scaleX:e==="left"?1:-1}:{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,i){if(this._useHandle){var r=this._shapes,o=this.visualMapModel,a=r.handleThumbs,s=r.handleLabels,l=o.itemSize,u=o.getExtent();SO([0,1],function(h){var c=a[h];c.setStyle("fill",i.handlesColor[h]),c.y=e[h];var p=jn(e[h],[0,l[1]],u,!0),d=this.getControllerVisual(p,"symbolSize");c.scaleX=c.scaleY=d/l[0],c.x=l[0]-d/2;var f=Gn(r.handleLabelPoints[h],Ci(c,this.group));s[h].setStyle({x:f[0],y:f[1],text:o.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",r.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,i,r,o){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,u=[0,l[1]],h=this._shapes,c=h.indicator;if(c){c.attr("invisible",!1);var p=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),d=this.getControllerVisual(e,"symbolSize"),f=jn(e,s,u,!0),g=l[0]-d/2,y={x:c.x,y:c.y};c.y=f,c.x=g;var v=Gn(h.indicatorLabelPoint,Ci(c,this.group)),m=h.indicatorLabel;m.attr("invisible",!1);var x=this._applyTransform("left",h.mainGroup),_=this._orient==="horizontal";m.setStyle({text:(r||"")+a.formatValueText(i),verticalAlign:_?x:"middle",align:_?"center":x});var b={x:g,y:f,style:{fill:p}},w={style:{x:v[0],y:v[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};c.x=y.x,c.y=y.y,c.animateTo(b,S),m.animateTo(w,S)}else c.attr(b),m.attr(w);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var T=0;T<M.length;T++)this._api.enterBlur(M[T])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(i){if(e._hovering=!0,!e._dragging){var r=e.visualMapModel.itemSize,o=e._applyTransform([i.offsetX,i.offsetY],e._shapes.mainGroup,!0,!0);o[1]=qS(eg(0,o[1]),r[1]),e._doHoverLinkToSeries(o[1],0<=o[0]&&o[0]<=r[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 r=this.visualMapModel,o=r.itemSize;if(r.option.hoverLink){var a=[0,o[1]],s=r.getExtent();e=qS(eg(a[0],e),a[1]);var l=function(g,y,v){var m=6,x=g.get("hoverLinkDataSize");return x&&(m=jn(x,y,v,!0)/2),m}(r,s,a),u=[e-l,e+l],h=jn(e,a,s,!0),c=[jn(u[0],a,s,!0),jn(u[1],a,s,!0)];u[0]<a[0]&&(c[0]=-1/0),u[1]>a[1]&&(c[1]=1/0),i&&(c[0]===-1/0?this._showIndicator(h,c[1],"< ",l):c[1]===1/0?this._showIndicator(h,c[0],"> ",l):this._showIndicator(h,h,"\u2248 ",l));var p=this._hoverLinkDataIndices,d=[];(i||JS(r))&&(d=this._hoverLinkDataIndices=r.findTargetDataIndices(c));var f=function(g,y){var v={},m={};return x(g||[],v),x(y||[],m,v),[_(v),_(m)];function x(b,w,S){for(var M=0,T=b.length;M<T;M++){var I=Qt(b[M].seriesId,null);if(I==null)return;for(var C=Qe(b[M].dataIndex),D=S&&S[I],L=0,R=C.length;L<R;L++){var P=C[L];D&&D[P]?D[P]=null:(w[I]||(w[I]={}))[P]=1}}}function _(b,w){var S=[];for(var M in b)if(b.hasOwnProperty(M)&&b[M]!=null)if(w)S.push(+M);else{var T=_(b[M],!0);T.length&&S.push({seriesId:M,dataIndex:T})}return S}}(p,d);this._dispatchHighDown("downplay",uh(f[0],r)),this._dispatchHighDown("highlight",uh(f[1],r))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var i;if(br(e.target,function(l){var u=_e(l);if(u.dataIndex!=null)return i=u,!0},!0),i){var r=this.ecModel.getSeriesByIndex(i.seriesIndex),o=this.visualMapModel;if(o.isTargetSeries(r)){var a=r.getData(i.dataType),s=a.getStore().get(o.getDataDimensionIndex(a),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 r=0;r<i.length;r++)this._api.leaveBlur(i[r])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",uh(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,r,o){var a=Ci(i,o?null:this.group);return Y(e)?Gn(e,a,r):Tl(e,a,r)},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.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(US);function KS(n,t,e,i){return new Fn({shape:{points:n},draggable:!!e,cursor:t,drift:e,onmousemove:function(r){$n(r.event)},ondragend:i})}function JS(n){var t=n.get("hoverLinkOnHandle");return!!(t??n.get("realtime"))}function $S(n){return n==="vertical"?"ns-resize":"ew-resize"}const TO=MO;var IO={type:"selectDataRange",event:"dataRangeSelected",update:"update"},CO=function(n,t){t.eachComponent({mainType:"visualMap",query:n},function(e){e.setSelected(n.selected)})},AO=[{createOnAllSeries:!0,reset:function(n,t){var e=[];return t.eachComponent("visualMap",function(i){var r=n.pipelineContext;!i.isTargetSeries(n)||r&&r.large||e.push(XP(i.stateList,i.targetVisuals,ne(i.getValueState,i),i.getDataDimensionIndex(n.getData())))}),e}},{createOnAllSeries:!0,reset:function(n,t){var e=n.getData(),i=[];t.eachComponent("visualMap",function(r){if(r.isTargetSeries(n)){var o=r.getVisualMeta(ne(DO,null,n,r))||{stops:[],outerColors:[]},a=r.getDataDimensionIndex(e);a>=0&&(o.dimension=a,i.push(o))}}),n.getData().setVisual("visualMeta",i)}}];function DO(n,t,e,i){for(var r=t.targetVisuals[i],o=Nt.prepareVisualTypes(r),a={color:ex(n.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],h=r[u==="opacity"?"__alphaForOpacity":u];h&&h.applyVisual(e,c,p)}return a.color;function c(d){return a[d]}function p(d,f){a[d]=f}}var QS=A;function kO(n){var t=n&&n.visualMap;Y(t)||(t=t?[t]:[]),QS(t,function(e){if(e){Eo(e,"splitList")&&!Eo(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var i=e.pieces;i&&Y(i)&&QS(i,function(r){Q(r)&&(Eo(r,"start")&&!Eo(r,"min")&&(r.min=r.start),Eo(r,"end")&&!Eo(r,"max")&&(r.max=r.end))})}})}function Eo(n,t){return n&&n.hasOwnProperty&&n.hasOwnProperty(t)}var eM=!1;function tM(n){eM||(eM=!0,n.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),n.registerAction(IO,CO),A(AO,function(t){n.registerVisual(n.PRIORITY.VISUAL.COMPONENT,t)}),n.registerPreprocessor(kO))}function LO(n){n.registerComponentModel(bO),n.registerComponentView(TO),tM(n)}var PO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return V(t,n),t.prototype.optionUpdated=function(e,i){n.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],OO[this._mode].call(this,this._pieceList),this._resetSelected(e,i);var o=this.option.categories;this.resetVisual(function(a,s){r==="categories"?(a.mappingMethod="category",a.categories=oe(o)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=X(this._pieceList,function(l){return l=oe(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,i={},r=Nt.listVisualTypes(),o=this.isCategory();function a(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}A(e.pieces,function(s){A(r,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),A(i,function(s,l){var u=!1;A(this.stateList,function(h){u=u||a(e,h,l)||a(e.target,h,l)},this),!u&&A(this.stateList,function(h){(e[h]||(e[h]={}))[l]=GS.get(l,h==="inRange"?"active":"inactive",o)})},this),n.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,i){var r=this.option,o=this._pieceList,a=(i?r:e).selected||{};if(r.selected=a,A(o,function(l,u){var h=this.getSelectedMapKey(l);a.hasOwnProperty(h)||(a[h]=!0)},this),r.selectedMode==="single"){var s=!1;A(o,function(l,u){var h=this.getSelectedMapKey(l);a[h]&&(s?a[h]=!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=oe(e)},t.prototype.getValueState=function(e){var i=Nt.findPieceIndex(e,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var i=[],r=this._pieceList;return this.eachTargetSeries(function(o){var a=[],s=o.getData();s.each(this.getDataDimensionIndex(s),function(l,u){Nt.findPieceIndex(l,r)===e&&a.push(u)},this),i.push({seriesId:o.id,dataIndex:a})},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 r=e.interval||[];i=r[0]===-1/0&&r[1]===1/0?0:(r[0]+r[1])/2}return i},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var i=[],r=["",""],o=this,a=this._pieceList.slice();if(a.length){var s=a[0].interval[0];s!==-1/0&&a.unshift({interval:[-1/0,s]}),(s=a[a.length-1].interval[1])!==1/0&&a.push({interval:[s,1/0]})}else a.push({interval:[-1/0,1/0]});var l=-1/0;return A(a,function(h){var c=h.interval;c&&(c[0]>l&&u([l,c[0]],"outOfRange"),u(c.slice()),l=c[1])},this),{stops:i,outerColors:r}}function u(h,c){var p=o.getRepresentValue({interval:h});c||(c=o.getValueState(p));var d=e(p,c);h[0]===-1/0?r[0]=d:h[1]===1/0?r[1]=d:i.push({value:h[0],color:d},{value:h[1],color:d})}},t.type="visualMap.piecewise",t.defaultOption=xr(lh.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}(lh),OO={splitNumber:function(n){var t=this.option,e=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(e)!==o&&e<5;)e++;t.precision=e,o=+o.toFixed(e),t.minOpen&&n.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;n.push({interval:[s,l],close:[1,1]})}t.maxOpen&&n.push({interval:[i[1],1/0],close:[0,0]}),fc(n),A(n,function(u,h){u.index=h,u.text=this.formatValueText(u.interval)},this)},categories:function(n){var t=this.option;A(t.categories,function(e){n.push({text:this.formatValueText(e,!0),value:e})},this),nM(t,n)},pieces:function(n){var t=this.option;A(t.pieces,function(e,i){Q(e)||(e={value:e});var r={text:"",index:i};if(e.label!=null&&(r.text=e.label),e.hasOwnProperty("value")){var o=r.value=e.value;r.interval=[o,o],r.close=[1,1]}else{for(var a=r.interval=[],s=r.close=[0,0],l=[1,0,1],u=[-1/0,1/0],h=[],c=0;c<2;c++){for(var p=[["gte","gt","min"],["lte","lt","max"]][c],d=0;d<3&&a[c]==null;d++)a[c]=e[p[d]],s[c]=l[d],h[c]=d===2;a[c]==null&&(a[c]=u[c])}h[0]&&a[1]===1/0&&(s[0]=0),h[1]&&a[0]===-1/0&&(s[1]=0),a[0]>a[1]&&console.warn("Piece "+i+"is illegal: "+a+" lower bound should not greater then uppper bound."),a[0]===a[1]&&s[0]&&s[1]&&(r.value=a[0])}r.visual=Nt.retrieveVisuals(e),n.push(r)},this),nM(t,n),fc(n),A(n,function(e){var i=e.close,r=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,r)},this)}};function nM(n,t){var e=n.inverse;(n.orient==="vertical"?!e:e)&&t.reverse()}const RO=PO,EO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=t.type,e}return V(t,n),t.prototype.doRender=function(){var e=this.group;e.removeAll();var i=this.visualMapModel,r=i.get("textGap"),o=i.textStyleModel,a=o.getFont(),s=o.getTextColor(),l=this._getItemAlign(),u=i.itemSize,h=this._getViewData(),c=h.endsText,p=Yt(i.get("showLabel",!0),!c);c&&this._renderEndsText(e,c[0],u,p,l),A(h.viewPieceList,function(d){var f=d.piece,g=new fe;g.onclick=ne(this._onItemClick,this,f),this._enableHoverLink(g,d.indexInModelPieceList);var y=i.getRepresentValue(f);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]]),p){var v=this.visualMapModel.getValueState(y);g.add(new ke({style:{x:l==="right"?-r:u[0]+r,y:u[1]/2,text:f.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:v==="outOfRange"?.5:1}}))}e.add(g)},this),c&&this._renderEndsText(e,c[1],u,p,l),wr(i.get("orient"),e,i.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,i){var r=this;e.on("mouseover",function(){return o("highlight")}).on("mouseout",function(){return o("downplay")});var o=function(a){var s=r.visualMapModel;s.option.hoverLink&&r.api.dispatchAction({type:a,batch:uh(s.findTargetDataIndices(i),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,i=e.option;if(i.orient==="vertical")return jS(e,this.api,e.itemSize);var r=i.align;return r&&r!=="auto"||(r="left"),r},t.prototype._renderEndsText=function(e,i,r,o,a){if(i){var s=new fe,l=this.visualMapModel.textStyleModel;s.add(new ke({style:it(l,{x:o?a==="right"?r[0]:0:r[0]/2,y:r[1]/2,verticalAlign:"middle",align:o?a:"center",text:i})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,i=X(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),r=e.get("text"),o=e.get("orient"),a=e.get("inverse");return(o==="horizontal"?a:!a)?i.reverse():r&&(r=r.slice().reverse()),{viewPieceList:i,endsText:r}},t.prototype._createItemSymbol=function(e,i,r){e.add(ut(this.getControllerVisual(i,"symbol"),r[0],r[1],r[2],r[3],this.getControllerVisual(i,"color")))},t.prototype._onItemClick=function(e){var i=this.visualMapModel,r=i.option,o=r.selectedMode;if(o){var a=oe(r.selected),s=i.getSelectedMapKey(e);o==="single"||o===!0?(a[s]=!0,A(a,function(l,u){a[u]=u===s})):a[s]=!a[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},t.type="visualMap.piecewise",t}(US);function NO(n){n.registerComponentModel(RO),n.registerComponentView(EO),tM(n)}var zO={label:{enabled:!0},decal:{show:!1}},iM=Ne(),BO={};function VO(n,t){var e=n.getModel("aria");if(e.get("enabled")){var i=oe(zO);pe(i.label,n.getLocaleModel().get("aria"),!1),pe(e.option,i,!1),function(){if(e.getModel("decal").get("show")){var o=ie();n.eachSeries(function(a){if(!a.isColorBySeries()){var s=o.get(a.type);s||(s={},o.set(a.type,s)),iM(a).scope=s}}),n.eachRawSeries(function(a){if(!n.isSeriesFiltered(a))if(ae(a.enableAriaDecal))a.enableAriaDecal();else{var s=a.getData();if(a.isColorBySeries()){var l=Hm(a.ecModel,a.name,BO,n.getSeriesCount()),u=s.getVisual("decal");s.setVisual("decal",f(u,l))}else{var h=a.getRawData(),c={},p=iM(a).scope;s.each(function(g){var y=s.getRawIndex(g);c[y]=g});var d=h.count();h.each(function(g){var y=c[g],v=h.getName(g)||g+"",m=Hm(a.ecModel,v,p,d),x=s.getItemVisual(y,"decal");s.setItemVisual(y,"decal",f(x,m))})}}function f(g,y){var v=g?G(G({},y),g):y;return v.dirty=!0,v}})}}(),function(){var o=n.getLocaleModel().get("aria"),a=e.getModel("label");if(a.option=le(a.option,o),!!a.get("enabled")){var s=t.getZr().dom;if(a.get("description"))return void s.setAttribute("aria-label",a.get("description"));var l,u=n.getSeriesCount(),h=a.get(["data","maxCount"])||10,c=a.get(["series","maxCount"])||10,p=Math.min(u,c);if(!(u<1)){var d=function(){var m=n.get("title");return m&&m.length&&(m=m[0]),m&&m.text}();l=d?r(a.get(["general","withTitle"]),{title:d}):a.get(["general","withoutTitle"]);var f=[];l+=r(u>1?a.get(["series","multiple","prefix"]):a.get(["series","single","prefix"]),{seriesCount:u}),n.eachSeries(function(m,x){if(x<p){var _=void 0,b=m.get("name")?"withName":"withoutName";_=r(_=u>1?a.get(["series","multiple",b]):a.get(["series","single",b]),{seriesId:m.seriesIndex,seriesName:m.get("name"),seriesType:(R=m.subType,n.getLocaleModel().get(["series","typeNames"])[R]||"\u81EA\u5B9A\u4E49\u56FE")});var w=m.getData();w.count()>h?_+=r(a.get(["data","partialData"]),{displayCnt:h}):_+=a.get(["data","allData"]);for(var S=a.get(["data","separator","middle"]),M=a.get(["data","separator","end"]),T=[],I=0;I<w.count();I++)if(I<h){var C=w.getName(I),D=w.getValues(I),L=a.get(["data",C?"withName":"withoutName"]);T.push(r(L,{name:C,value:D.join(S)}))}_+=T.join(S)+M,f.push(_)}var R});var g=a.getModel(["series","multiple","separator"]),y=g.get("middle"),v=g.get("end");l+=f.join(y)+v,s.setAttribute("aria-label",l)}}}()}function r(o,a){if(!q(o))return o;var s=o;return A(a,function(l,u){s=s.replace(new RegExp("\\{\\s*"+u+"\\s*\\}","g"),l)}),s}}function FO(n){if(n&&n.aria){var t=n.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},A(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}var GO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataset",e}return V(t,n),t.prototype.init=function(e,i,r){n.prototype.init.call(this,e,i,r),this._sourceManager=new b0(this),S0(this)},t.prototype.mergeOption=function(e,i){n.prototype.mergeOption.call(this,e,i),S0(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Wn},t}(Te),HO=function(n){function t(){var e=n!==null&&n.apply(this,arguments)||this;return e.type="dataset",e}return V(t,n),t.type="dataset",t}(je);function rM(n,t,e){var i=qn.createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",n)),i.width=r*e,i.height=o*e,i}var WO=function(n){function t(e,i,r){var o,a=n.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null,r=r||Xs,typeof e=="string"?o=rM(e,i,r):Q(e)&&(e=(o=e).id),a.id=e,a.dom=o;var s=o.style;return s&&(wh(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=r,a}return V(t,n),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=rM("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,i,r,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a,s=[],l=this.maxRepaintRectCount,u=!1,h=new ye(0,0,0,0);function c(m){if(m.isFinite()&&!m.isZero())if(s.length===0)(x=new ye(0,0,0,0)).copy(m),s.push(x);else{for(var x,_=!1,b=1/0,w=0,S=0;S<s.length;++S){var M=s[S];if(M.intersect(m)){var T=new ye(0,0,0,0);T.copy(M),T.union(m),s[S]=T,_=!0;break}if(u){h.copy(m),h.union(M);var I=m.width*m.height,C=M.width*M.height,D=h.width*h.height-I-C;D<b&&(b=D,w=S)}}u&&(s[w].union(m),_=!0),!_&&((x=new ye(0,0,0,0)).copy(m),s.push(x)),u||(u=s.length>=l)}}for(var p=this.__startIndex;p<this.__endIndex;++p)if(g=e[p]){var d=g.shouldBePainted(r,o,!0,!0);(y=g.__isRendered&&(g.__dirty&Vt||!d)?g.getPrevPaintRect():null)&&c(y);var f=d&&(g.__dirty&Vt||!g.__isRendered)?g.getPaintRect():null;f&&c(f)}for(p=this.__prevStartIndex;p<this.__prevEndIndex;++p){var g,y;d=(g=i[p]).shouldBePainted(r,o,!0,!0),g&&(!d||!g.__zr)&&g.__isRendered&&(y=g.getPrevPaintRect())&&c(y)}do for(a=!1,p=0;p<s.length;)if(s[p].isZero())s.splice(p,1);else{for(var v=p+1;v<s.length;)s[p].intersect(s[v])?(a=!0,s[p].union(s[v]),s.splice(v,1)):v++;p++}while(a);return this._paintRects=s,s},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,i){var r=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=e+"px",a.height=i+"px"),o.width=e*r,o.height=i*r,s&&(s.width=e*r,s.height=i*r,r!==1&&this.ctxBack.scale(r,r))},t.prototype.clear=function(e,i,r){var o=this.dom,a=this.ctx,s=o.width,l=o.height;i=i||this.clearColor;var u=this.motionBlur&&!e,h=this.lastFrameAlpha,c=this.dpr,p=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/c,l/c));var d=this.domBack;function f(g,y,v,m){if(a.clearRect(g,y,v,m),i&&i!=="transparent"){var x=void 0;Go(i)?(x=(i.global||i.__width===v&&i.__height===m)&&i.__canvasGradient||Hp(a,i,{x:0,y:0,width:v,height:m}),i.__canvasGradient=x,i.__width=v,i.__height=m):dg(i)&&(i.scaleX=i.scaleX||c,i.scaleY=i.scaleY||c,x=Wp(a,i,{dirty:function(){p.setUnpainted(),p.__painter.refresh()}})),a.save(),a.fillStyle=x||i,a.fillRect(g,y,v,m),a.restore()}u&&(a.save(),a.globalAlpha=h,a.drawImage(d,g,y,v,m),a.restore())}!r||u?f(0,0,s,l):r.length&&A(r,function(g){f(g.x*c,g.y*c,g.width*c,g.height*c)})},t}(Zt);const tg=WO;var oM=1e5,xs=314159,hh=.01,YO=function(){function n(t,e,i,r){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=G({},i||{}),this.dpr=i.devicePixelRatio||Xs,this._singleCanvas=o,this.root=t,t.style&&(wh(t),t.innerHTML=""),this.storage=e;var a=this._zlevelList;this._prevDisplayList=[];var s=this._layers;if(o){var l=t,u=l.width,h=l.height;i.width!=null&&(u=i.width),i.height!=null&&(h=i.height),this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=h*this.dpr,this._width=u,this._height=h;var c=new tg(l,this,this.dpr);c.__builtin__=!0,c.initContext(),s[314159]=c,c.zlevel=xs,a.push(xs),this._domRoot=t}else{this._width=nu(t,0,i),this._height=nu(t,1,i);var p=this._domRoot=function(d,f){var g=document.createElement("div");return g.style.cssText=["position:relative","width:"+d+"px","height:"+f+"px","padding:0","margin:0","border-width:0"].join(";")+";",g}(this._width,this._height);t.appendChild(p)}}return n.prototype.getType=function(){return"canvas"},n.prototype.isSingleCanvas=function(){return this._singleCanvas},n.prototype.getViewportRoot=function(){return this._domRoot},n.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},n.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var o=0;o<r.length;o++){var a=r[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},n.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},n.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){for(var r,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<e;a++){var s=t[a];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(oM)),r||(r=i.ctx).save(),Mr(r,s,o,a===e-1))}r&&r.restore()}},n.prototype.getHoverLayer=function(){return this.getLayer(oM)},n.prototype.paintOne=function(t,e){Yp(t,e)},n.prototype._paintList=function(t,e,i,r){if(this._redrawId===r){i=i||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,e,i),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),a)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Bh(function(){l._paintList(t,e,i,r)})}}},n.prototype._compositeManually=function(){var t=this.getLayer(xs).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer(function(r){r.virtual&&t.drawImage(r.dom,0,0,e,i)})},n.prototype._doPaintList=function(t,e,i){for(var r=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||i)&&o.push(u)}for(var h=!0,c=!1,p=function(g){var y,v=o[g],m=v.ctx,x=a&&v.createRepaintRects(t,e,d._width,d._height),_=i?v.__startIndex:v.__drawIndex,b=!i&&v.incremental&&Date.now,w=b&&Date.now(),S=v.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(v.__startIndex===v.__endIndex)v.clear(!1,S,x);else if(_===v.__startIndex){var M=t[_];M.incremental&&M.notClear&&!i||v.clear(!1,S,x)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=v.__startIndex);var T=function(L){var R={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(y=_;y<v.__endIndex;y++){var P=t[y];if(P.__inHover&&(c=!0),r._doPaintEl(P,v,a,L,R,y===v.__endIndex-1),b&&Date.now()-w>15)break}R.prevElClipPaths&&m.restore()};if(x)if(x.length===0)y=v.__endIndex;else for(var I=d.dpr,C=0;C<x.length;++C){var D=x[C];m.save(),m.beginPath(),m.rect(D.x*I,D.y*I,D.width*I,D.height*I),m.clip(),T(D),m.restore()}else m.save(),T(),m.restore();v.__drawIndex=y,v.__drawIndex<v.__endIndex&&(h=!1)},d=this,f=0;f<o.length;f++)p(f);return xe.wxa&&A(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:h,needsRefreshHover:c}},n.prototype._doPaintEl=function(t,e,i,r,o,a){var s=e.ctx;if(i){var l=t.getPaintRect();(!r||l&&l.intersect(r))&&(Mr(s,t,o,a),t.setPrevPaintRect(l))}else Mr(s,t,o,a)},n.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=xs);var i=this._layers[t];return i||((i=new tg("zr_"+t,this,this.dpr)).zlevel=t,i.__builtin__=!0,this._layerConfig[t]?pe(i,this._layerConfig[t],!0):this._layerConfig[t-hh]&&pe(i,this._layerConfig[t-hh],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},n.prototype.insertLayer=function(t,e){var i=this._layers,r=this._zlevelList,o=r.length,a=this._domRoot,s=null,l=-1;if(i[t])Hi("ZLevel "+t+" has been used already");else if(function(h){return!!h&&(!!h.__builtin__||typeof h.resize=="function"&&typeof h.refresh=="function")}(e)){if(o>0&&t>r[0]){for(l=0;l<o-1&&!(r[l]<t&&r[l+1]>t);l++);s=i[r[l]]}if(r.splice(l+1,0,t),i[t]=e,!e.virtual)if(s){var u=s.dom;u.nextSibling?a.insertBefore(e.dom,u.nextSibling):a.appendChild(e.dom)}else a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom);e.__painter=this}else Hi("Layer of zlevel "+t+" is not valid")},n.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r];t.call(e,this._layers[o],o)}},n.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r],a=this._layers[o];a.__builtin__&&t.call(e,a,o)}},n.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var o=i[r],a=this._layers[o];a.__builtin__||t.call(e,a,o)}},n.prototype.getLayers=function(){return this._layers},n.prototype._updateLayerStatus=function(t){function e(c){a&&(a.__endIndex!==c&&(a.__dirty=!0),a.__endIndex=c)}if(this.eachBuiltinLayer(function(c,p){c.__dirty=c.__used=!1}),this._singleCanvas){for(var i=1;i<t.length;i++)if((l=t[i]).zlevel!==t[i-1].zlevel||l.incremental){this._needsManuallyCompositing=!0;break}}var r,o,a=null,s=0;for(o=0;o<t.length;o++){var l,u=(l=t[o]).zlevel,h=void 0;r!==u&&(r=u,s=0),l.incremental?((h=this.getLayer(u+.001,this._needsManuallyCompositing)).incremental=!0,s=1):h=this.getLayer(u+(s>0?hh:0),this._needsManuallyCompositing),h.__builtin__||Hi("ZLevel "+u+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==o&&(h.__dirty=!0),h.__startIndex=o,h.incremental?h.__drawIndex=-1:h.__drawIndex=o,e(o),a=h),l.__dirty&Vt&&!l.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=o))}e(o),this.eachBuiltinLayer(function(c,p){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__startIndex)})},n.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},n.prototype._clearLayer=function(t){t.clear()},n.prototype.setBackgroundColor=function(t){this._backgroundColor=t,A(this._layers,function(e){e.setUnpainted()})},n.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?pe(i[t],e,!0):i[t]=e;for(var r=0;r<this._zlevelList.length;r++){var o=this._zlevelList[r];(o===t||o===t+hh)&&pe(this._layers[o],i[t],!0)}}},n.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],i.splice(Se(i,t),1))},n.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var r=this._opts,o=this.root;if(t!=null&&(r.width=t),e!=null&&(r.height=e),t=nu(o,0,r),e=nu(o,1,r),i.style.display="",this._width!==t||e!==this._height){for(var a in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(xs).resize(t,e)}return this},n.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},n.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},n.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[314159].dom;var e=new tg("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,o=e.dom.height;this.eachLayer(function(c){c.__builtin__?i.drawImage(c.dom,0,0,r,o):c.renderToCanvas&&(i.save(),c.renderToCanvas(i),i.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var h=s[l];Mr(i,h,a,l===u-1)}return e.dom},n.prototype.getWidth=function(){return this._width},n.prototype.getHeight=function(){return this._height},n}();const XO=YO;function aM(n){n.registerPainter("canvas",XO)}rt([function(n){rt(RS),rt(eO)},function(n){n.registerComponentModel(UP),n.registerComponentView(ZP)},function(n){rt(Df),n.registerComponentModel(RP),n.registerComponentView(YP),n.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},st),n.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},st)},function(n){n.registerComponentModel(fP),n.registerComponentView(yP),fs("saveAsImage",vP),fs("magicType",_P),fs("dataView",MP),fs("dataZoom",OP),fs("restore",IP),rt(dP)},function(n){rt(vD),rt(Df)},function(n){rt(Df),rs.registerAxisPointerClass("PolarAxisPointer",RL),n.registerCoordinateSystem("polar",XL),n.registerComponentModel(EL),n.registerComponentView(rP),ns(n,"angle",NL,nP),ns(n,"radius",zL,iP),n.registerComponentView(qL),n.registerComponentView(eP),n.registerLayout(ve(tP,"bar"))},function(n){n.registerPreprocessor(FO),n.registerVisual(n.PRIORITY.VISUAL.ARIA,VO)},function(n){n.registerComponentView(Wk),n.registerComponentModel(Yk),n.registerCoordinateSystem("parallel",Qk),n.registerPreprocessor(Fk),n.registerComponentModel(Xw),n.registerComponentView(pL),ns(n,"parallel",Xw,fL),function(t){t.registerAction(dL,function(e,i){i.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,i){i.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}(n)},function(n){rt(LO),rt(NO)},function(n){n.registerChartView(UA),n.registerSeriesModel(VA),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,ve(u1,"bar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,h1("bar")),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,c_("bar")),n.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var i=t.componentType||"series";e.eachComponent({mainType:i,query:t},function(r){t.sortInfo&&r.axis.setCategorySortInfo(t.sortInfo)})})},function(n){n.registerChartView(NA),n.registerSeriesModel(TA),n.registerLayout(function(t,e){return{seriesType:t,plan:Bp(),reset:function(i){var r=i.getData(),o=i.coordinateSystem,a=i.pipelineContext,s=e||a.large;if(o){var l=X(o.dimensions,function(f){return r.mapDimension(f)}).slice(0,2),u=l.length,h=r.getCalculationInfo("stackResultDimension");Pi(r,l[0])&&(l[0]=h),Pi(r,l[1])&&(l[1]=h);var c=r.getStore(),p=r.getDimensionIndex(l[0]),d=r.getDimensionIndex(l[1]);return u&&{progress:function(f,g){for(var y=f.end-f.start,v=s&&ci(y*u),m=[],x=[],_=f.start,b=0;_<f.end;_++){var w=void 0;if(u===1){var S=c.get(p,_);w=o.dataToPoint(S,null,x)}else m[0]=c.get(p,_),m[1]=c.get(d,_),w=o.dataToPoint(m,null,x);s?(v[b++]=w[0],v[b++]=w[1]):g.setItemLayout(_,w.slice())}s&&g.setLayout("points",v)}}}}}}("line",!0)),n.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)}}),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,c_("line"))},function(n){n.registerChartView(JA),n.registerSeriesModel(eD),tx("pie",n.registerAction),n.registerLayout(ve(ZA,"pie")),n.registerProcessor(C_("pie")),n.registerProcessor(function(t){return{seriesType:t,reset:function(e,i){var r=e.getData();r.filterSelf(function(o){var a=r.mapDimension("value"),s=r.get(a,o);return!(Re(s)&&!isNaN(s)&&s<0)})}}}("pie"))},function(n){rt(hk),n.registerChartView(JD),n.registerSeriesModel(QD),n.registerLayout(tk),n.registerProcessor(n.PRIORITY.PROCESSOR.STATISTIC,ek),tx("map",n.registerAction)},aM,function(n){n.registerChartView(mL),n.registerSeriesModel(xL),n.registerLayout(n.PRIORITY.VISUAL.LAYOUT,ve(u1,"pictorialBar")),n.registerLayout(n.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,h1("pictorialBar"))},function(n){rt(OD),n.registerChartView(wD),n.registerSeriesModel(SD),n.registerLayout(mD),n.registerProcessor(C_("radar")),n.registerPreprocessor(xD)},function(n){n.registerChartView(Bk),n.registerSeriesModel(Vk)},function(n){n.registerChartView(xk),n.registerSeriesModel(Dk),n.registerLayout(kk),n.registerVisual(Lk),function(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,i){i.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var o=e.dataIndex,a=r.getData().tree.getNodeByDataIndex(o);a.isExpand=!a.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,i,r){i.eachComponent({mainType:"series",subType:"tree",query:e},function(o){var a=kw(o.coordinateSystem,e,void 0,r);o.setCenter&&o.setCenter(a.center),o.setZoom&&o.setZoom(a.zoom)})})}(n)},function(n){rt(sO),rt(dO)}]),rt([aM,function(n){n.registerComponentModel(GO),n.registerComponentView(HO)}]),rt(function(n){n.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){var r=Id(e).labelManager;r||(r=Id(e).labelManager=new MA),r.clearLabels()}),n.registerUpdateLifecycle("series:layoutlabels",function(t,e,i){var r=Id(e).labelManager;i.updatedSeries.forEach(function(o){r.addLabelsOfSeries(e.getViewOfSeriesModel(o))}),r.updateLayoutConfig(e),r.layout(e),r.processLabelsOverall()})}),B1({type:"series.wordCloud",visualStyleAccessPath:"textStyle",visualStyleMapper:function(n){return{fill:n.get("color")}},visualDrawType:"fill",optionUpdated:function(){var n=this.option;n.gridSize=Math.max(Math.floor(n.gridSize),4)},getInitialData:function(n,t){var e=Jx(n.data,{coordDimensions:["value"]}),i=new qa(e,this);return i.initData(n.data),i},defaultOption:{maskImage:null,shape:"circle",keepAspect:!1,left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,textStyle:{fontWeight:"normal"}}}),V1({type:"wordCloud",render:function(n,t,e){var i=this.group;i.removeAll();var r=n.getData(),o=n.get("gridSize");n.layoutInstance.ondraw=function(a,s,l,u){var h=r.getItemModel(l),c=h.getModel("textStyle"),p=new ke({style:ku(c),scaleX:1/u.info.mu,scaleY:1/u.info.mu,x:(u.gx+u.info.gw/2)*o,y:(u.gy+u.info.gh/2)*o,rotation:u.rot});p.setStyle({x:u.info.fillTextOffsetX,y:u.info.fillTextOffsetY+.5*s,text:a,verticalAlign:"middle",fill:r.getItemVisual(l,"style").fill,fontSize:s}),i.add(p),r.setItemGraphicEl(l,p),p.ensureState("emphasis").style=ku(h.getModel(["emphasis","textStyle"]),{state:"emphasis"}),p.ensureState("blur").style=ku(h.getModel(["blur","textStyle"]),{state:"blur"}),ro(p,h.get(["emphasis","focus"]),h.get(["emphasis","blurScope"])),p.stateTransition={duration:n.get("animation")?n.get(["stateAnimation","duration"]):0,easing:n.get(["stateAnimation","easing"])},p.__highDownDispatcher=!0},this._model=n},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}}),window.setImmediate||(window.setImmediate=window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var n=[void 0],t="zero-timeout-message";return window.addEventListener("message",function(e){if(typeof e.data=="string"&&e.data.substr(0,20)===t){e.stopImmediatePropagation();var i=parseInt(e.data.substr(20),36);n[i]&&(n[i](),n[i]=void 0)}},!0),window.clearImmediate=function(e){n[e]&&(n[e]=void 0)},function(e){var i=n.length;return n.push(e),window.postMessage(t+i.toString(36),"*"),i}}()||function(n){window.setTimeout(n,0)}),window.clearImmediate||(window.clearImmediate=window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(n){window.clearTimeout(n)});var ng=function(){var n=document.createElement("canvas");if(!n||!n.getContext)return!1;var t=n.getContext("2d");return!!t&&!!t.getImageData&&!!t.fillText&&!!Array.prototype.some&&!!Array.prototype.push}(),ig=function(){if(ng){for(var n,t,e=document.createElement("canvas").getContext("2d"),i=20;i;){if(e.font=i.toString(10)+"px sans-serif",e.measureText("\uFF37").width===n&&e.measureText("m").width===t)return i+1;n=e.measureText("\uFF37").width,t=e.measureText("m").width,i--}return 0}}(),UO=function(n){for(var t,e,i=n.length;i;)t=Math.floor(Math.random()*i),e=n[--i],n[i]=n[t],n[t]=e;return n},No={},ch=function(n,t){if(ng){var e=Math.floor(Math.random()*Date.now());Array.isArray(n)||(n=[n]),n.forEach(function(k,O){if(typeof k=="string"){if(n[O]=document.getElementById(k),!n[O])throw new Error("The element id specified is not found.")}else if(!k.tagName&&!k.appendChild)throw new Error("You must pass valid HTML elements, or ID of the element.")});var i={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "\u5FAE\u8EDF\u6B63\u9ED1\u9AD4", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,shrinkToFit:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,layoutAnimation:!0,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(t)for(var r in t)r in i&&(i[r]=t[r]);if(typeof i.weightFactor!="function"){var o=i.weightFactor;i.weightFactor=function(k){return k*o}}if(typeof i.shape!="function")switch(i.shape){case"circle":default:i.shape="circle";break;case"cardioid":i.shape=function(k){return 1-Math.sin(k)};break;case"diamond":i.shape=function(k){var O=k%(2*Math.PI/4);return 1/(Math.cos(O)+Math.sin(O))};break;case"square":i.shape=function(k){return Math.min(1/Math.abs(Math.cos(k)),1/Math.abs(Math.sin(k)))};break;case"triangle-forward":i.shape=function(k){var O=k%(2*Math.PI/3);return 1/(Math.cos(O)+Math.sqrt(3)*Math.sin(O))};break;case"triangle":case"triangle-upright":i.shape=function(k){var O=(k+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(O)+Math.sqrt(3)*Math.sin(O))};break;case"pentagon":i.shape=function(k){var O=(k+.955)%(2*Math.PI/5);return 1/(Math.cos(O)+.726543*Math.sin(O))};break;case"star":i.shape=function(k){var O=(k+.955)%(2*Math.PI/10);return(k+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-O)+3.07768*Math.sin(2*Math.PI/10-O)):1/(Math.cos(O)+3.07768*Math.sin(O))}}i.gridSize=Math.max(Math.floor(i.gridSize),4);var a,s,l,u,h,c,p,d,f=i.gridSize,g=f-i.maskGapWidth,y=Math.abs(i.maxRotation-i.minRotation),v=Math.min(i.maxRotation,i.minRotation),m=i.rotationStep;switch(i.color){case"random-dark":p=function(){return E(10,50)};break;case"random-light":p=function(){return E(50,90)};break;default:typeof i.color=="function"&&(p=i.color)}typeof i.fontWeight=="function"&&(d=i.fontWeight);var x=null;typeof i.classes=="function"&&(x=i.classes);var _,b=!1,w=[],S=function(k){var O,N,B=k.currentTarget,z=B.getBoundingClientRect();k.touches?(O=k.touches[0].clientX,N=k.touches[0].clientY):(O=k.clientX,N=k.clientY);var U=O-z.left,Z=N-z.top,F=Math.floor(U*(B.width/z.width||1)/f),W=Math.floor(Z*(B.height/z.height||1)/f);return w[F]?w[F][W]:null},M=function(k){var O=S(k);_!==O&&(_=O,O?i.hover(O.item,O.dimension,k):i.hover(void 0,void 0,k))},T=function(k){var O=S(k);O&&(i.click(O.item,O.dimension,k),k.preventDefault())},I=[],C=function(k){if(I[k])return I[k];var O=8*k,N=O,B=[];for(k===0&&B.push([u[0],u[1],0]);N--;){var z=1;i.shape!=="circle"&&(z=i.shape(N/O*2*Math.PI)),B.push([u[0]+k*z*Math.cos(-N/O*2*Math.PI),u[1]+k*z*Math.sin(-N/O*2*Math.PI)*i.ellipticity,N/O*2*Math.PI])}return I[k]=B,B},D=function(){return i.abortThreshold>0&&new Date().getTime()-c>i.abortThreshold},L=function(k,O,N,B,z){k>=s||O>=l||k<0||O<0||(a[k][O]=!1,N&&n[0].getContext("2d").fillRect(k*f,O*f,g,g),b&&(w[k][O]={item:z,dimension:B}))},R=function k(O,N){if(N>20)return null;var B,z,U;Array.isArray(O)?(B=O[0],z=O[1]):(B=O.word,z=O.weight,U=O.attributes);var Z=i.rotateRatio===0||Math.random()>i.rotateRatio?0:y===0?v:v+Math.round(Math.random()*y/m)*m,F=function(H){if(Array.isArray(H)){var $=H.slice();return $.splice(0,2),$}return[]}(O),W=function(H,$,re,Ce){var ge=i.weightFactor($);if(ge<=i.minSize)return!1;var me,we=1;ge<ig&&(we=function(){for(var rg=2;rg*ge<ig;)rg+=2;return rg}()),me=d?d(H,$,ge,Ce):i.fontWeight;var Le=document.createElement("canvas"),be=Le.getContext("2d",{willReadFrequently:!0});be.font=me+" "+(ge*we).toString(10)+"px "+i.fontFamily;var Pe=be.measureText(H).width/we,Ve=Math.max(ge*we,be.measureText("m").width,be.measureText("\uFF37").width)/we,qe=Pe+2*Ve,Fe=3*Ve,Ge=Math.ceil(qe/f),ce=Math.ceil(Fe/f);qe=Ge*f,Fe=ce*f;var yt=-Pe/2,Ke=.4*-Ve,ht=Math.ceil((qe*Math.abs(Math.sin(re))+Fe*Math.abs(Math.cos(re)))/f),Ye=Math.ceil((qe*Math.abs(Math.cos(re))+Fe*Math.abs(Math.sin(re)))/f),zt=Ye*f,gi=ht*f;Le.setAttribute("width",zt),Le.setAttribute("height",gi),be.scale(1/we,1/we),be.translate(zt*we/2,gi*we/2),be.rotate(-re),be.font=me+" "+(ge*we).toString(10)+"px "+i.fontFamily,be.fillStyle="#000",be.textBaseline="middle",be.fillText(H,yt*we,(Ke+.5*ge)*we);var Br=be.getImageData(0,0,zt,gi).data;if(D())return!1;for(var fn,zo,Bo,lM=[],Vr=Ye,yi=[ht/2,Ye/2,ht/2,Ye/2];Vr--;)for(fn=ht;fn--;){Bo=f;e:for(;Bo--;)for(zo=f;zo--;)if(Br[4*((fn*f+Bo)*zt+(Vr*f+zo))+3]){lM.push([Vr,fn]),Vr<yi[3]&&(yi[3]=Vr),Vr>yi[1]&&(yi[1]=Vr),fn<yi[0]&&(yi[0]=fn),fn>yi[2]&&(yi[2]=fn);break e}}return{mu:we,occupied:lM,bounds:yi,gw:Ye,gh:ht,fillTextOffsetX:yt,fillTextOffsetY:Ke,fillTextWidth:Pe,fillTextHeight:Ve,fontSize:ge}}(B,z,Z,F);if(!W||D())return!1;if(!i.drawOutOfBound&&!i.shrinkToFit){var K=W.bounds;if(K[1]-K[3]+1>s||K[2]-K[0]+1>l)return!1}for(var se=h+1,he=function(H){var $=Math.floor(H[0]-W.gw/2),re=Math.floor(H[1]-W.gh/2);return W.gw,W.gh,!!function(Ce,ge,me,we,Le){for(var be=Le.length;be--;){var Pe=Ce+Le[be][0],Ve=ge+Le[be][1];if(Pe>=s||Ve>=l||Pe<0||Ve<0){if(!i.drawOutOfBound)return!1}else if(!a[Pe][Ve])return!1}return!0}($,re,0,0,W.occupied)&&(function(Ce,ge,me,we,Le,be,Pe,Ve,qe,Fe){var Ge,ce,yt,Ke=me.fontSize;Ge=p?p(we,Le,Ke,be,Pe,Fe):i.color,ce=d?d(we,Le,Ke,Fe):i.fontWeight,yt=x?x(we,Le,Ke,Fe):i.classes,n.forEach(function(ht){if(ht.getContext){var Ye=ht.getContext("2d"),zt=me.mu;Ye.save(),Ye.scale(1/zt,1/zt),Ye.font=ce+" "+(Ke*zt).toString(10)+"px "+i.fontFamily,Ye.fillStyle=Ge,Ye.translate((Ce+me.gw/2)*f*zt,(ge+me.gh/2)*f*zt),Ve!==0&&Ye.rotate(-Ve),Ye.textBaseline="middle",Ye.fillText(we,me.fillTextOffsetX*zt,(me.fillTextOffsetY+.5*Ke)*zt),Ye.restore()}else{var gi=document.createElement("span"),Br="";Br="rotate("+-Ve/Math.PI*180+"deg) ",me.mu!==1&&(Br+="translateX(-"+me.fillTextWidth/4+"px) scale("+1/me.mu+")");var fn={position:"absolute",display:"block",font:ce+" "+Ke*me.mu+"px "+i.fontFamily,left:(Ce+me.gw/2)*f+me.fillTextOffsetX+"px",top:(ge+me.gh/2)*f+me.fillTextOffsetY+"px",width:me.fillTextWidth+"px",height:me.fillTextHeight+"px",lineHeight:Ke+"px",whiteSpace:"nowrap",transform:Br,webkitTransform:Br,msTransform:Br,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(var zo in Ge&&(fn.color=Ge),gi.textContent=we,fn)gi.style[zo]=fn[zo];if(qe)for(var Bo in qe)gi.setAttribute(Bo,qe[Bo]);yt&&(gi.className+=yt),ht.appendChild(gi)}})}($,re,W,B,z,h-se,H[2],Z,U,F),function(Ce,ge,me,we,Le,be){var Pe,Ve,qe=Le.occupied,Fe=i.drawMask;if(Fe&&((Pe=n[0].getContext("2d")).save(),Pe.fillStyle=i.maskColor),b){var Ge=Le.bounds;Ve={x:(Ce+Ge[3])*f,y:(ge+Ge[0])*f,w:(Ge[1]-Ge[3]+1)*f,h:(Ge[2]-Ge[0]+1)*f}}for(var ce=qe.length;ce--;){var yt=Ce+qe[ce][0],Ke=ge+qe[ce][1];yt>=s||Ke>=l||yt<0||Ke<0||L(yt,Ke,Fe,Ve,be)}Fe&&Pe.restore()}($,re,0,0,W,O),{gx:$,gy:re,rot:Z,info:W})};se--;){var te=C(h-se);i.shuffle&&(te=[].concat(te),UO(te));for(var j=0;j<te.length;j++){var J=he(te[j]);if(J)return J}}return i.shrinkToFit?(Array.isArray(O)?O[1]=3*O[1]/4:O.weight=3*O.weight/4,k(O,N+1)):null},P=function(k,O,N){if(O)return!n.some(function(B){var z=new CustomEvent(k,{detail:N||{}});return!B.dispatchEvent(z)},this);n.forEach(function(B){var z=new CustomEvent(k,{detail:N||{}});B.dispatchEvent(z)},this)};(function(){var k=n[0];if(k.getContext)s=Math.ceil(k.width/f),l=Math.ceil(k.height/f);else{var O=k.getBoundingClientRect();s=Math.ceil(O.width/f),l=Math.ceil(O.height/f)}if(P("wordcloudstart",!0)){var N,B,z,U,Z;if(u=i.origin?[i.origin[0]/f,i.origin[1]/f]:[s/2,l/2],h=Math.floor(Math.sqrt(s*s+l*l)),a=[],!k.getContext||i.clearCanvas)for(n.forEach(function(H){if(H.getContext){var $=H.getContext("2d");$.fillStyle=i.backgroundColor,$.clearRect(0,0,s*(f+1),l*(f+1)),$.fillRect(0,0,s*(f+1),l*(f+1))}else H.textContent="",H.style.backgroundColor=i.backgroundColor,H.style.position="relative"}),N=s;N--;)for(a[N]=[],B=l;B--;)a[N][B]=!0;else{var F=document.createElement("canvas").getContext("2d");F.fillStyle=i.backgroundColor,F.fillRect(0,0,1,1);var W,K,se=F.getImageData(0,0,1,1).data,he=k.getContext("2d").getImageData(0,0,s*f,l*f).data;for(N=s;N--;)for(a[N]=[],B=l;B--;){K=f;e:for(;K--;)for(W=f;W--;)for(z=4;z--;)if(he[4*((B*f+K)*s*f+(N*f+W))+z]!==se[z]){a[N][B]=!1;break e}a[N][B]!==!1&&(a[N][B]=!0)}he=F=se=void 0}if(i.hover||i.click){for(b=!0,N=s+1;N--;)w[N]=[];i.hover&&k.addEventListener("mousemove",M),i.click&&(k.addEventListener("click",T),k.addEventListener("touchstart",T),k.addEventListener("touchend",function(H){H.preventDefault()}),k.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),k.addEventListener("wordcloudstart",function H(){k.removeEventListener("wordcloudstart",H),k.removeEventListener("mousemove",M),k.removeEventListener("click",T),_=void 0})}z=0;var te=!0;i.layoutAnimation?i.wait!==0?(U=window.setTimeout,Z=window.clearTimeout):(U=window.setImmediate,Z=window.clearImmediate):(U=function(H){H()},Z=function(){te=!1});var j=function(H,$){n.forEach(function(re){re.removeEventListener(H,$)},this)},J=function H(){j("wordcloudstart",H),Z(No[e])};(function(H,$){n.forEach(function(re){re.addEventListener(H,$)},this)})("wordcloudstart",J),No[e]=(i.layoutAnimation?U:setTimeout)(function H(){if(te){if(z>=i.list.length)return Z(No[e]),P("wordcloudstop",!1),j("wordcloudstart",J),void delete No[e];c=new Date().getTime();var $=R(i.list[z],0),re=!P("wordclouddrawn",!0,{item:i.list[z],drawn:$});if(D()||re)return Z(No[e]),i.abort(),P("wordcloudabort",!1),P("wordcloudstop",!1),void j("wordcloudstart",J);z++,No[e]=U(H,i.wait)}},i.wait)}})()}function E(k,O){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(O-k)+k).toFixed()+"%)"}};if(ch.isSupported=ng,ch.minFontSize=ig,!ch.isSupported)throw new Error("Sorry your browser not support wordCloud");ld(function(n,t){n.eachSeriesByType("wordCloud",function(e){var i=St(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),r=e.get("keepAspect"),o=e.get("maskImage"),a=o?o.width/o.height:1;r&&function(y,v){var m=y.width,x=y.height;m>x*v?(y.x+=(m-x*v)/2,y.width=x*v):(y.y+=(x-m/v)/2,y.height=m/v)}(i,a);var s=e.getData(),l=document.createElement("canvas");l.width=i.width,l.height=i.height;var u=l.getContext("2d");if(o)try{u.drawImage(o,0,0,l.width,l.height),function(y){for(var v=y.getContext("2d"),m=v.getImageData(0,0,y.width,y.height),x=v.createImageData(m),_=0,b=0,w=0;w<m.data.length;w+=4)m.data[w+3]>128&&(_+=M=m.data[w]+m.data[w+1]+m.data[w+2],++b);var S=_/b;for(w=0;w<m.data.length;w+=4){var M=m.data[w]+m.data[w+1]+m.data[w+2];m.data[w+3]<128||M>S?(x.data[w]=0,x.data[w+1]=0,x.data[w+2]=0,x.data[w+3]=0):(x.data[w]=255,x.data[w+1]=255,x.data[w+2]=255,x.data[w+3]=255)}v.putImageData(x,0,0)}(l)}catch(y){console.error("Invalid mask image"),console.error(y.toString())}var h=e.get("sizeRange"),c=e.get("rotationRange"),p=s.getDataExtent("value"),d=Math.PI/180,f=e.get("gridSize");function g(y){var v=y.detail.item;y.detail.drawn&&e.layoutInstance.ondraw&&(y.detail.drawn.gx+=i.x/f,y.detail.drawn.gy+=i.y/f,e.layoutInstance.ondraw(v[0],v[1],v[2],y.detail.drawn))}ch(l,{list:s.mapArray("value",function(y,v){var m=s.getItemModel(v);return[s.getName(v),m.get("textStyle.fontSize",!0)||Ae(y,p,h),v]}).sort(function(y,v){return v[1]-y[1]}),fontFamily:e.get("textStyle.fontFamily")||e.get("emphasis.textStyle.fontFamily")||n.get("textStyle.fontFamily"),fontWeight:e.get("textStyle.fontWeight")||e.get("emphasis.textStyle.fontWeight")||n.get("textStyle.fontWeight"),gridSize:f,ellipticity:i.height/i.width,minRotation:c[0]*d,maxRotation:c[1]*d,clearCanvas:!o,rotateRatio:1,rotationStep:e.get("rotationStep")*d,drawOutOfBound:e.get("drawOutOfBound"),shrinkToFit:e.get("shrinkToFit"),layoutAnimation:e.get("layoutAnimation"),shuffle:!1,shape:e.get("shape")}),l.addEventListener("wordclouddrawn",g),e.layoutInstance&&e.layoutInstance.dispose(),e.layoutInstance={ondraw:null,dispose:function(){l.removeEventListener("wordclouddrawn",g),l.addEventListener("wordclouddrawn",function(y){y.preventDefault()})}}})}),fu(function(n){var t=(n||{}).series;!Y(t)&&(t=t?[t]:[]);var e=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function i(r){r&&A(e,function(o){r.hasOwnProperty(o)&&(r["text"+Lm(o)]=r[o])})}A(t,function(r){if(r&&r.type==="wordCloud"){var o=r.textStyle||{};i(o.normal),i(o.emphasis)}})});let sM;sM=ZO({name:"EChart",__name:"Echart",props:{options:{type:Object,required:!0},width:uM.oneOfType([Number,String]).def(""),height:uM.oneOfType([Number,String]).def("500px")},emits:["chart-init"],setup(n,{emit:t}){const{getPrefixCls:e,variables:i}=rR(),r=e("echart"),o=jO(),a=n,s=ph(()=>o.getIsDark),l=ph(()=>!!Dn(s)||"auto"),u=ph(()=>Object.assign(a.options,{darkMode:Dn(l)})),h=hM();let c=null;const p=hM(),d=ph(()=>({width:cM(a.width)?a.width:`${a.width}px`,height:cM(a.height)?a.height:`${a.height}px`}));qO(()=>u.value,v=>{c&&(c==null||c.setOption(v))},{deep:!0});const f=KO(()=>{c&&c.resize()},100),g=async v=>{v.propertyName==="width"&&f()},y=t;return JO(()=>{Dn(h)&&a.options&&(c=og.init(Dn(h)),c==null||c.setOption(Dn(u))),y("chart-init",c),window.addEventListener("resize",f),p.value=document.getElementsByClassName(`${i.namespace}-layout-content`)[0],Dn(p)&&Dn(p).addEventListener("transitionend",g)}),$O(()=>{window.removeEventListener("resize",f),Dn(p)&&Dn(p).removeEventListener("transitionend",g)}),QO(()=>{c&&c.resize()}),(v,m)=>(eR(),tR("div",{ref_key:"elRef",ref:h,class:nR([v.$attrs.class,Dn(r)]),style:iR(Dn(d))},null,6))}}),pM=oR(sM,[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/components/Echart/src/Echart.vue"]])});export{pM as _,sR as __tla,og as e};
|