@aquera/data-visualizer-sdk 0.0.32 → 0.0.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,70 @@
1
+ import{f as ea}from"./chunk-ZW5NV4UO.js";var tx=function(r,e){return tx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])},tx(r,e)};function L(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");tx(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var sS={};ea(sS,{dispose:()=>l4,disposeAll:()=>u4,getElementSSRData:()=>nS,getInstance:()=>f4,init:()=>Xd,registerPainter:()=>aS,registerSSRDataGetter:()=>oS,version:()=>p4});var OY=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),NY=(function(){function r(){this.browser=new OY,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"}return r})(),Ko=new NY;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Ko.wxa=!0,Ko.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Ko.worker=!0:!Ko.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Ko.node=!0,Ko.svgSupported=!0):kY(navigator.userAgent,Ko);function kY(r,e){var t=e.browser,i=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),n=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(t.firefox=!0,t.version=i[1]),a&&(t.ie=!0,t.version=a[1]),n&&(t.edge=!0,t.version=n[1],t.newEdge=+n[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var Re=Ko;var K={};ea(K,{EPSILON:()=>jY,HashMap:()=>zD,RADIAN_TO_DEGREE:()=>cl,assert:()=>at,assignProps:()=>lx,bind:()=>X,clone:()=>ee,concatArray:()=>_n,createCanvas:()=>XY,createHashMap:()=>W,createObject:()=>fo,curry:()=>me,defaults:()=>$,disableUserSelect:()=>Cc,each:()=>T,eqNaN:()=>Lt,extend:()=>k,filter:()=>Ie,find:()=>ui,guid:()=>bc,hasOwn:()=>ae,indexOf:()=>le,inherits:()=>wc,isArray:()=>V,isArrayLike:()=>It,isBuiltInObject:()=>nx,isDom:()=>so,isFunction:()=>J,isGradientObject:()=>lo,isImagePatternObject:()=>ux,isNumber:()=>_e,isObject:()=>te,isPrimitive:()=>tf,isRegExp:()=>fx,isString:()=>H,isStringSafe:()=>af,isTypedArray:()=>kt,keys:()=>ye,logError:()=>qo,map:()=>U,merge:()=>ve,mergeAll:()=>pl,mixin:()=>rt,noop:()=>et,normalizeCssArray:()=>uo,reduce:()=>tr,retrieve:()=>Et,retrieve2:()=>Z,retrieve3:()=>Dt,setAsPrimitive:()=>jo,slice:()=>Tc,trim:()=>Gt});var nd=12,rx="sans-serif",li=nd+"px "+rx,zY=20,VY=100,UY="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function BY(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var i=String.fromCharCode(t+32),a=(r.charCodeAt(t)-zY)/VY;e[i]=a}return e}var FY=BY(UY),wt={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,i){if(!r){var a=wt.createCanvas();r=a&&a.getContext("2d")}if(r)return e!==i&&(e=r.font=i||li),r.measureText(t);t=t||"",i=i||li;var n=/((?:\d+)?\.?\d*)px/.exec(i),o=n&&+n[1]||nd,s=0;if(i.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=FY[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var i=new Image;return i.onload=e,i.onerror=t,i.src=r,i},getTime:function(){return Date.now?Date.now():+new Date}};function ix(r){for(var e in wt)wt.hasOwnProperty(e)&&r[e]&&(wt[e]=r[e])}var RD=tr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),OD=tr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),rf=Object.prototype.toString,sd=Array.prototype,GY=sd.forEach,HY=sd.filter,ox=sd.slice,YY=sd.map,PD=function(){}.constructor,od=PD?PD.prototype:null,sx="__proto__",ax=2311,WY=Math.pow(2,53)-1;function bc(){return ax>=WY&&(ax=0),ax++}function qo(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ee(r){if(r==null||typeof r!="object")return r;var e=r,t=rf.call(r);if(t==="[object Array]"){if(!tf(r)){e=[];for(var i=0,a=r.length;i<a;i++)e[i]=ee(r[i])}}else if(OD[t]){if(!tf(r)){var n=r.constructor;if(n.from)e=n.from(r);else{e=new n(r.length);for(var i=0,a=r.length;i<a;i++)e[i]=r[i]}}}else if(!RD[t]&&!tf(r)&&!so(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==sx&&(e[o]=ee(r[o]))}return e}function ve(r,e,t){if(!te(e)||!te(r))return t?ee(e):r;for(var i in e)if(e.hasOwnProperty(i)&&i!==sx){var a=r[i],n=e[i];te(n)&&te(a)&&!V(n)&&!V(a)&&!so(n)&&!so(a)&&!nx(n)&&!nx(a)&&!tf(n)&&!tf(a)?ve(a,n,t):(t||!(i in r))&&(r[i]=ee(e[i]))}return r}function pl(r,e){for(var t=r[0],i=1,a=r.length;i<a;i++)t=ve(t,r[i],e);return t}function k(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==sx&&(r[t]=e[t]);return r}function lx(r,e,t){r=r||{};for(var i=0;i<t.length;i++){var a=t[i];r[a]=e[a]}return r}function $(r,e,t){for(var i=ye(e),a=0,n=i.length;a<n;a++){var o=i[a];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}var XY=wt.createCanvas;function le(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,i=r.length;t<i;t++)if(r[t]===e)return t}return-1}function wc(r,e){var t=r.prototype;function i(){}i.prototype=e.prototype,r.prototype=new i;for(var a in t)t.hasOwnProperty(a)&&(r.prototype[a]=t[a]);r.prototype.constructor=r,r.superClass=e}function rt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),a=0;a<i.length;a++){var n=i[a];n!=="constructor"&&(t?e[n]!=null:r[n]==null)&&(r[n]=e[n])}else $(r,e,t)}function It(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function T(r,e,t){if(r&&e)if(r.forEach&&r.forEach===GY)r.forEach(e,t);else if(r.length===+r.length)for(var i=0,a=r.length;i<a;i++)e.call(t,r[i],i,r);else for(var n in r)r.hasOwnProperty(n)&&e.call(t,r[n],n,r)}function U(r,e,t){if(!r)return[];if(!e)return Tc(r);if(r.map&&r.map===YY)return r.map(e,t);for(var i=[],a=0,n=r.length;a<n;a++)i.push(e.call(t,r[a],a,r));return i}function tr(r,e,t,i){if(r&&e){for(var a=0,n=r.length;a<n;a++)t=e.call(i,t,r[a],a,r);return t}}function Ie(r,e,t){if(!r)return[];if(!e)return Tc(r);if(r.filter&&r.filter===HY)return r.filter(e,t);for(var i=[],a=0,n=r.length;a<n;a++)e.call(t,r[a],a,r)&&i.push(r[a]);return i}function ui(r,e,t){if(r&&e){for(var i=0,a=r.length;i<a;i++)if(e.call(t,r[i],i,r))return r[i]}}function ye(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function ZY(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return function(){return r.apply(e,t.concat(ox.call(arguments)))}}var X=od&&J(od.bind)?od.call.bind(od.bind):ZY;function me(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(ox.call(arguments)))}}function V(r){return Array.isArray?Array.isArray(r):rf.call(r)==="[object Array]"}function J(r){return typeof r=="function"}function H(r){return typeof r=="string"}function af(r){return rf.call(r)==="[object String]"}function _e(r){return typeof r=="number"}function te(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function nx(r){return!!RD[rf.call(r)]}function kt(r){return!!OD[rf.call(r)]}function so(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function lo(r){return r.colorStops!=null}function ux(r){return r.image!=null}function fx(r){return rf.call(r)==="[object RegExp]"}function Lt(r){return r!==r}function Et(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,i=r.length;t<i;t++)if(r[t]!=null)return r[t]}function Z(r,e){return r??e}function Dt(r,e,t){return r??e??t}function Tc(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return ox.apply(r,e)}function uo(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function at(r,e){if(!r)throw new Error(e)}function Gt(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ND="__ec_primitive__";function jo(r){r[ND]=!0}function tf(r){return r[ND]}var KY=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return ye(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var i in t)t.hasOwnProperty(i)&&e(t[i],i)},r})(),kD=typeof Map=="function";function qY(){return kD?new Map:new KY}var zD=(function(){function r(e){var t=V(e);this.data=qY();var i=this;e instanceof r?e.each(a):e&&T(e,a);function a(n,o){t?i.set(n,o):i.set(o,n)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(i,a){e.call(t,i,a)})},r.prototype.keys=function(){var e=this.data.keys();return kD?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function W(r){return new zD(r)}function _n(r,e){for(var t=new r.constructor(r.length+e.length),i=0;i<r.length;i++)t[i]=r[i];for(var a=r.length,i=0;i<e.length;i++)t[i+a]=e[i];return t}function fo(r,e){var t;if(Object.create)t=Object.create(r);else{var i=function(){};i.prototype=r,t=new i}return e&&k(t,e),t}function Cc(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ae(r,e){return r.hasOwnProperty(e)}function et(){}var cl=180/Math.PI,jY=Number.EPSILON||Math.pow(2,-52);var px=function(r,e){return px=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(t[a]=i[a])},px(r,e)};function Ve(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");px(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ht={};ea(Ht,{add:()=>ld,applyTransform:()=>ot,clone:()=>Gr,copy:()=>jt,create:()=>ka,dist:()=>Vi,distSquare:()=>xn,distance:()=>Ac,distanceSquare:()=>VD,div:()=>eW,dot:()=>tW,len:()=>of,lenSquare:()=>cx,length:()=>JY,lengthSquare:()=>QY,lerp:()=>hl,max:()=>pi,min:()=>fi,mul:()=>$Y,negate:()=>rW,normalize:()=>zi,scale:()=>vl,scaleAndAdd:()=>nf,set:()=>ki,sub:()=>ta});function ka(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function jt(r,e){return r[0]=e[0],r[1]=e[1],r}function Gr(r){return[r[0],r[1]]}function ki(r,e,t){return r[0]=e,r[1]=t,r}function ld(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function nf(r,e,t,i){return r[0]=e[0]+t[0]*i,r[1]=e[1]+t[1]*i,r}function ta(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function of(r){return Math.sqrt(cx(r))}var JY=of;function cx(r){return r[0]*r[0]+r[1]*r[1]}var QY=cx;function $Y(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function eW(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function tW(r,e){return r[0]*e[0]+r[1]*e[1]}function vl(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function zi(r,e){var t=of(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function Ac(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Vi=Ac;function VD(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var xn=VD;function rW(r,e){return r[0]=-e[0],r[1]=-e[1],r}function hl(r,e,t,i){return r[0]=e[0]+i*(t[0]-e[0]),r[1]=e[1]+i*(t[1]-e[1]),r}function ot(r,e,t){var i=e[0],a=e[1];return r[0]=t[0]*i+t[2]*a+t[4],r[1]=t[1]*i+t[3]*a+t[5],r}function fi(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function pi(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var sf=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),iW=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new sf(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var i=e.offsetX,a=e.offsetY,n=i-this._x,o=a-this._y;this._x=i,this._y=a,t.drift(n,o,e),this.handler.dispatchToElement(new sf(t,e),"drag",e.event);var s=this.handler.findHover(i,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new sf(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new sf(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new sf(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new sf(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),UD=iW;var aW=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,i,a){this._$handlers||(this._$handlers={});var n=this._$handlers;if(typeof t=="function"&&(a=i,i=t,t=null),!i||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),n[e]||(n[e]=[]);for(var s=0;s<n[e].length;s++)if(n[e][s].h===i)return this;var l={h:i,query:t,ctx:a||this,callAtLast:i.zrEventfulCallAtLast},u=n[e].length-1,f=n[e][u];return f&&f.callAtLast?n[e].splice(u,0,l):n[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var i=this._$handlers;if(!i)return this;if(!e)return this._$handlers={},this;if(t){if(i[e]){for(var a=[],n=0,o=i[e].length;n<o;n++)i[e][n].h!==t&&a.push(i[e][n]);i[e]=a}i[e]&&i[e].length===0&&delete i[e]}else delete i[e];return this},r.prototype.trigger=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[e],n=this._$eventProcessor;if(a)for(var o=t.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(n&&n.filter&&u.query!=null&&!n.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return n&&n.afterTrigger&&n.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[e],n=this._$eventProcessor;if(a)for(var o=t.length,s=t[o-1],l=a.length,u=0;u<l;u++){var f=a[u];if(!(n&&n.filter&&f.query!=null&&!n.filter(e,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,t[0]);break;case 2:f.h.call(s,t[0],t[1]);break;default:f.h.apply(s,t.slice(1,o-1));break}}return n&&n.afterTrigger&&n.afterTrigger(e),this},r})(),Jt=aW;var nW=Math.log(2);function vx(r,e,t,i,a,n){var o=i+"-"+a,s=r.length;if(n.hasOwnProperty(o))return n[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/nW);return r[t][l]}for(var u=i|1<<t,f=t+1;i&1<<f;)f++;for(var p=0,c=0,v=0;c<s;c++){var h=1<<c;h&a||(p+=(v%2?-1:1)*r[t][c]*vx(r,e-1,f,u,a|h,n),v++)}return n[o]=p,p}function hx(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],i={},a=vx(t,8,0,0,0,i);if(a!==0){for(var n=[],o=0;o<8;o++)for(var s=0;s<8;s++)n[s]==null&&(n[s]=0),n[s]+=((o+s)%2?-1:1)*vx(t,7,o===0?1:0,1<<o,1<<s,i)/a*e[o];return function(l,u,f){var p=u*n[6]+f*n[7]+1;l[0]=(u*n[0]+f*n[1]+n[2])/p,l[1]=(u*n[3]+f*n[4]+n[5])/p}}}var ud="___zrEVENTSAVED",dx=[];function BD(r,e,t,i,a){return fd(dx,e,i,a,!0)&&fd(r,t,dx[0],dx[1])}function FD(r,e){r&&t(r),e&&t(e);function t(i){var a=i[ud];a&&(a.clearMarkers&&a.clearMarkers(),delete i[ud])}}function fd(r,e,t,i,a){if(e.getBoundingClientRect&&Re.domSupported&&!mx(e)){var n=e[ud]||(e[ud]={}),o=oW(e,n),s=sW(o,n,a);if(s)return s(r,t,i),!0}return!1}function oW(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var i=["left","right"],a=["top","bottom"],n=0;n<4;n++){var o=document.createElement("div"),s=o.style,l=n%2,u=(n>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",a[u]+":0",i[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){T(t,function(f){f.parentNode&&f.parentNode.removeChild(f)})},t}function sW(r,e,t){for(var i=t?"invTrans":"trans",a=e[i],n=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),p=2*u,c=f.left,v=f.top;o.push(c,v),l=l&&n&&c===n[p]&&v===n[p+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[i]=t?hx(s,o):hx(o,s))}function mx(r){return r.nodeName.toUpperCase()==="CANVAS"}var lW=/([&<>"'])/g,uW={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Yt(r){return r==null?"":(r+"").replace(lW,function(e,t){return uW[t]})}var fW=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,gx=[],pW=Re.browser.firefox&&+Re.browser.version.split(".")[0]<39;function pd(r,e,t,i){return t=t||{},i?GD(r,e,t):pW&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):GD(r,e,t),t}function GD(r,e,t){if(Re.domSupported&&r.getBoundingClientRect){var i=e.clientX,a=e.clientY;if(mx(r)){var n=r.getBoundingClientRect();t.zrX=i-n.left,t.zrY=a-n.top;return}else if(fd(gx,r,i,a)){t.zrX=gx[0],t.zrY=gx[1];return}}t.zrX=t.zrY=0}function cd(r){return r||window.event}function ci(r,e,t){if(e=cd(e),e.zrX!=null)return e;var i=e.type,a=i&&i.indexOf("touch")>=0;if(a){var o=i!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&pd(r,o,e,t)}else{pd(r,e,e,t);var n=cW(e);e.zrDelta=n?n/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&fW.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function cW(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,i=r.deltaY;if(t==null||i==null)return e;var a=Math.abs(i!==0?i:t),n=i>0?-1:i<0?1:t>0?-1:1;return 3*a*n}function Ec(r,e,t,i){r.addEventListener(e,t,i)}function HD(r,e,t,i){r.removeEventListener(e,t,i)}var vi=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function yx(r){return r.which===2||r.which===3}var WD=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,i){return this._doTrack(e,t,i),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,i){var a=e.touches;if(a){for(var n={points:[],touches:[],target:t,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=pd(i,l,{});n.points.push([u.zrX,u.zrY]),n.touches.push(l)}this._track.push(n)}},r.prototype._recognize=function(e){for(var t in _x)if(_x.hasOwnProperty(t)){var i=_x[t](this._track,e);if(i)return i}},r})();function YD(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function vW(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var _x={pinch:function(r,e){var t=r.length;if(t){var i=(r[t-1]||{}).points,a=(r[t-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var n=YD(i)/YD(a);!isFinite(n)&&(n=1),e.pinchScale=n;var o=vW(i);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};var Mr={};ea(Mr,{clone:()=>xx,copy:()=>za,create:()=>Je,identity:()=>ra,invert:()=>zt,mul:()=>Qt,rotate:()=>dr,scale:()=>dl,translate:()=>fr});function Je(){return[1,0,0,1,0,0]}function ra(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function za(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function Qt(r,e,t){var i=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],n=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=i,r[1]=a,r[2]=n,r[3]=o,r[4]=s,r[5]=l,r}function fr(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function dr(r,e,t,i){i===void 0&&(i=[0,0]);var a=e[0],n=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),p=Math.cos(t);return r[0]=a*p+s*f,r[1]=-a*f+s*p,r[2]=n*p+l*f,r[3]=-n*f+p*l,r[4]=p*(o-i[0])+f*(u-i[1])+i[0],r[5]=p*(u-i[1])-f*(o-i[0])+i[1],r}function dl(r,e,t){var i=t[0],a=t[1];return r[0]=e[0]*i,r[1]=e[1]*a,r[2]=e[2]*i,r[3]=e[3]*a,r[4]=e[4]*i,r[5]=e[5]*a,r}function zt(r,e){var t=e[0],i=e[2],a=e[4],n=e[1],o=e[3],s=e[5],l=t*o-n*i;return l?(l=1/l,r[0]=o*l,r[1]=-n*l,r[2]=-i*l,r[3]=t*l,r[4]=(i*s-o*a)*l,r[5]=(n*a-t*s)*l,r):null}function xx(r){var e=Je();return za(e,r),e}var hW=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,i=this.y-e.y;return Math.sqrt(t*t+i*i)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,i=this.y-e.y;return t*t+i*i},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,i=this.y;return this.x=e[0]*t+e[2]*i+e[4],this.y=e[1]*t+e[3]*i+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,i){e.x=t,e.y=i},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,i){e.x=t.x+i.x,e.y=t.y+i.y},r.sub=function(e,t,i){e.x=t.x-i.x,e.y=t.y-i.y},r.scale=function(e,t,i){e.x=t.x*i,e.y=t.y*i},r.scaleAndAdd=function(e,t,i,a){e.x=t.x+i.x*a,e.y=t.y+i.y*a},r.lerp=function(e,t,i,a){var n=1-a;e.x=n*t.x+a*i.x,e.y=n*t.y+a*i.y},r})(),he=hW;var xl=Math.min,uf=Math.max,Tx=Math.abs,XD=["x","y"],dW=["width","height"],ml=new he,gl=new he,yl=new he,_l=new he,Ui=Ex(),Dc=Ui.minTv,Cx=Ui.maxTv,Mc=[0,0],po=(function(){function r(e,t,i,a){Sx(this,e,t,i,a)}return r.set=function(e,t,i,a,n){return a<0&&(t=t+a,a=-a),n<0&&(i=i+n,n=-n),e.x=t,e.y=i,e.width=a,e.height=n,e},r.prototype.union=function(e){var t=xl(e.x,this.x),i=xl(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=uf(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=uf(e.y+e.height,this.y+this.height)-i:this.height=e.height,this.x=t,this.y=i},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){return Ax(Je(),this,e)},r.prototype.intersect=function(e,t,i){return r.intersect(this,e,t,i)},r.intersect=function(e,t,i,a){i&&he.set(i,0,0);var n=a&&a.outIntersectRect||null,o=a&&a.clamp;if(n&&(n.x=n.y=n.width=n.height=NaN),!e||!t)return!1;e instanceof r||(e=Sx(mW,e.x,e.y,e.width,e.height)),t instanceof r||(t=Sx(gW,t.x,t.y,t.width,t.height));var s=!!i;Ui.reset(a,s);var l=Ui.touchThreshold,u=e.x+l,f=e.x+e.width-l,p=e.y+l,c=e.y+e.height-l,v=t.x+l,h=t.x+t.width-l,d=t.y+l,m=t.y+t.height-l;if(u>f||p>c||v>h||d>m)return!1;var g=!(f<v||h<u||c<d||m<p);return(s||n)&&(Mc[0]=1/0,Mc[1]=0,ZD(u,f,v,h,0,s,n,o),ZD(p,c,d,m,1,s,n,o),s&&he.copy(i,g?Ui.useDir?Ui.dirMinTv:Dc:Cx)),g},r.contain=function(e,t,i){return t>=e.x&&t<=e.x+e.width&&i>=e.y&&i<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){Sl(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,i){if(!i){e!==t&&Sl(e,t);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var a=i[0],n=i[3],o=i[4],s=i[5];e.x=t.x*a+o,e.y=t.y*n+s,e.width=t.width*a,e.height=t.height*n,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}ml.x=yl.x=t.x,ml.y=_l.y=t.y,gl.x=_l.x=t.x+t.width,gl.y=yl.y=t.y+t.height,ml.transform(i),_l.transform(i),gl.transform(i),yl.transform(i),e.x=xl(ml.x,gl.x,yl.x,_l.x),e.y=xl(ml.y,gl.y,yl.y,_l.y);var l=uf(ml.x,gl.x,yl.x,_l.x),u=uf(ml.y,gl.y,yl.y,_l.y);e.width=l-e.x,e.height=u-e.y},r.calculateTransform=function(e,t,i){var a=i.width/t.width,n=i.height/t.height;return e=ra(e||[]),fr(e,e,ki(bx,-t.x,-t.y)),dl(e,e,ki(bx,a,n)),fr(e,e,ki(bx,i.x,i.y)),e},r})(),Ic=po.create,Sx=po.set,Sl=po.copy,Ax=po.calculateTransform,vd=po.applyTransform,KD=po.contain,mW=new po(0,0,0,0),gW=new po(0,0,0,0),bx=[];function ZD(r,e,t,i,a,n,o,s){var l=Tx(e-t),u=Tx(i-r),f=xl(l,u),p=XD[a],c=XD[1-a],v=dW[a];e<t||i<r?l<u?(n&&(Cx[p]=-l),s&&(o[p]=e,o[v]=0)):(n&&(Cx[p]=u),s&&(o[p]=r,o[v]=0)):(o&&(o[p]=uf(r,t),o[v]=xl(e,i)-o[p]),n&&(f<Mc[0]||Ui.useDir)&&(Mc[0]=xl(f,Mc[0]),(l<u||!Ui.bidirectional)&&(Dc[p]=l,Dc[c]=0,Ui.useDir&&Ui.calcDirMTV()),(l>=u||!Ui.bidirectional)&&(Dc[p]=-u,Dc[c]=0,Ui.useDir&&Ui.calcDirMTV())))}function Ex(){var r=0,e=new he,t=new he,i={minTv:new he,maxTv:new he,useDir:!1,dirMinTv:new he,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(n,o){i.touchThreshold=0,n&&n.touchThreshold!=null&&(i.touchThreshold=uf(0,n.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,n&&n.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),t.copy(i.minTv),r=n.direction,i.bidirectional=n.bidirectional==null||!!n.bidirectional,i.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var n=i.minTv,o=i.dirMinTv,s=n.y*n.y+n.x*n.x,l=Math.sin(r),u=Math.cos(r),f=l*n.y+u*n.x;if(a(f)){a(n.x)&&a(n.y)&&o.set(0,0);return}if(t.x=s*u/f,t.y=s*l/f,a(t.x)&&a(t.y)){o.set(0,0);return}(i.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function a(n){return Tx(n)<1e-10}return i}var oe=po;var jD="silent";function yW(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:_W}}function _W(){vi(this.event)}var xW=(function(r){Ve(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(Jt),Lc=(function(){function r(e,t){this.x=e,this.y=t}return r})(),SW=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Dx=new oe(0,0,0,0),JD=(function(r){Ve(e,r);function e(t,i,a,n,o){var s=r.call(this)||this;return s._hovered=new Lc(0,0),s.storage=t,s.painter=i,s.painterRoot=n,s._pointerSize=o,a=a||new xW,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new UD(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(T(SW,function(i){t.on&&t.on(i,this[i],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var i=t.zrX,a=t.zrY,n=QD(this,i,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=n?new Lc(i,a):this.findHover(i,a),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var i=t.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Lc(0,0)},e.prototype.dispatch=function(t,i){var a=this[t];a&&a.call(this,i)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var i=this.proxy;i.setCursor&&i.setCursor(t)},e.prototype.dispatchToElement=function(t,i,a){t=t||{};var n=t.target;if(!(n&&n.silent)){for(var o="on"+i,s=yW(i,t,a);n&&(n[o]&&(s.cancelBubble=!!n[o].call(n,s)),n.trigger(i,s),n=n.__hostTarget?n.__hostTarget:n.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(i,s)}))}},e.prototype.findHover=function(t,i,a){var n=this.storage.getDisplayList(),o=new Lc(t,i);if(qD(n,o,t,i,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new oe(t-u,i-u,l,l),p=n.length-1;p>=0;p--){var c=n[p];c!==a&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(Dx.copy(c.getBoundingRect()),c.transform&&Dx.applyTransform(c.transform),Dx.intersect(f)&&s.push(c))}if(s.length)for(var v=4,h=Math.PI/12,d=Math.PI*2,m=0;m<u;m+=v)for(var g=0;g<d;g+=h){var y=t+m*Math.cos(g),_=i+m*Math.sin(g);if(qD(s,o,y,_,a),o.target)return o}}return o},e.prototype.processGesture=function(t,i){this._gestureMgr||(this._gestureMgr=new WD);var a=this._gestureMgr;i==="start"&&a.clear();var n=a.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(i==="end"&&a.clear(),n){var o=n.type;t.gestureEvent=o;var s=new Lc;s.target=n.target,this.dispatchToElement(s,o,n.event)}},e})(Jt);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){JD.prototype[r]=function(e){var t=e.zrX,i=e.zrY,a=QD(this,t,i),n,o;if((r!=="mouseup"||!a)&&(n=this.findHover(t,i),o=n.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Vi(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,r,e)}});function bW(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var i=r,a=void 0,n=!1;i;){if(i.ignoreClip&&(n=!0),!n){var o=i.getClipPath();if(o&&!o.contain(e,t))return!1}i.silent&&(a=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return a?jD:!0}return!1}function qD(r,e,t,i,a){for(var n=r.length-1;n>=0;n--){var o=r[n],s=void 0;if(o!==a&&!o.ignore&&(s=bW(o,t,i))&&(!e.topTarget&&(e.topTarget=o),s!==jD)){e.target=o;break}}}function QD(r,e,t){var i=r.painter;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var $D=JD;var rM=32,Pc=7;function wW(r){for(var e=0;r>=rM;)e|=r&1,r>>=1;return r+e}function eM(r,e,t,i){var a=e+1;if(a===t)return 1;if(i(r[a++],r[e])<0){for(;a<t&&i(r[a],r[a-1])<0;)a++;TW(r,e,a)}else for(;a<t&&i(r[a],r[a-1])>=0;)a++;return a-e}function TW(r,e,t){for(t--;e<t;){var i=r[e];r[e++]=r[t],r[t--]=i}}function tM(r,e,t,i,a){for(i===e&&i++;i<t;i++){for(var n=r[i],o=e,s=i,l;o<s;)l=o+s>>>1,a(n,r[l])<0?s=l:o=l+1;var u=i-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=n}}function Mx(r,e,t,i,a,n){var o=0,s=0,l=1;if(n(r,e[t+a])>0){for(s=i-a;l<s&&n(r,e[t+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&n(r,e[t+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var f=o+(l-o>>>1);n(r,e[t+f])>0?o=f+1:l=f}return l}function Ix(r,e,t,i,a,n){var o=0,s=0,l=1;if(n(r,e[t+a])<0){for(s=a+1;l<s&&n(r,e[t+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=i-a;l<s&&n(r,e[t+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var f=o+(l-o>>>1);n(r,e[t+f])<0?l=f:o=f+1}return l}function CW(r,e){var t=Pc,i,a,n=0,o=[];i=[],a=[];function s(v,h){i[n]=v,a[n]=h,n+=1}function l(){for(;n>1;){var v=n-2;if(v>=1&&a[v-1]<=a[v]+a[v+1]||v>=2&&a[v-2]<=a[v]+a[v-1])a[v-1]<a[v+1]&&v--;else if(a[v]>a[v+1])break;f(v)}}function u(){for(;n>1;){var v=n-2;v>0&&a[v-1]<a[v+1]&&v--,f(v)}}function f(v){var h=i[v],d=a[v],m=i[v+1],g=a[v+1];a[v]=d+g,v===n-3&&(i[v+1]=i[v+2],a[v+1]=a[v+2]),n--;var y=Ix(r[m],r,h,d,0,e);h+=y,d-=y,d!==0&&(g=Mx(r[h+d-1],r,m,g,g-1,e),g!==0&&(d<=g?p(h,d,m,g):c(h,d,m,g)))}function p(v,h,d,m){var g=0;for(g=0;g<h;g++)o[g]=r[v+g];var y=0,_=d,x=v;if(r[x++]=r[_++],--m===0){for(g=0;g<h;g++)r[x+g]=o[y+g];return}if(h===1){for(g=0;g<m;g++)r[x+g]=r[_+g];r[x+m]=o[y];return}for(var S=t,b,w,A;;){b=0,w=0,A=!1;do if(e(r[_],o[y])<0){if(r[x++]=r[_++],w++,b=0,--m===0){A=!0;break}}else if(r[x++]=o[y++],b++,w=0,--h===1){A=!0;break}while((b|w)<S);if(A)break;do{if(b=Ix(r[_],o,y,h,0,e),b!==0){for(g=0;g<b;g++)r[x+g]=o[y+g];if(x+=b,y+=b,h-=b,h<=1){A=!0;break}}if(r[x++]=r[_++],--m===0){A=!0;break}if(w=Mx(o[y],r,_,m,0,e),w!==0){for(g=0;g<w;g++)r[x+g]=r[_+g];if(x+=w,_+=w,m-=w,m===0){A=!0;break}}if(r[x++]=o[y++],--h===1){A=!0;break}S--}while(b>=Pc||w>=Pc);if(A)break;S<0&&(S=0),S+=2}if(t=S,t<1&&(t=1),h===1){for(g=0;g<m;g++)r[x+g]=r[_+g];r[x+m]=o[y]}else{if(h===0)throw new Error;for(g=0;g<h;g++)r[x+g]=o[y+g]}}function c(v,h,d,m){var g=0;for(g=0;g<m;g++)o[g]=r[d+g];var y=v+h-1,_=m-1,x=d+m-1,S=0,b=0;if(r[x--]=r[y--],--h===0){for(S=x-(m-1),g=0;g<m;g++)r[S+g]=o[g];return}if(m===1){for(x-=h,y-=h,b=x+1,S=y+1,g=h-1;g>=0;g--)r[b+g]=r[S+g];r[x]=o[_];return}for(var w=t;;){var A=0,C=0,E=!1;do if(e(o[_],r[y])<0){if(r[x--]=r[y--],A++,C=0,--h===0){E=!0;break}}else if(r[x--]=o[_--],C++,A=0,--m===1){E=!0;break}while((A|C)<w);if(E)break;do{if(A=h-Ix(o[_],r,v,h,h-1,e),A!==0){for(x-=A,y-=A,h-=A,b=x+1,S=y+1,g=A-1;g>=0;g--)r[b+g]=r[S+g];if(h===0){E=!0;break}}if(r[x--]=o[_--],--m===1){E=!0;break}if(C=m-Mx(r[y],o,0,m,m-1,e),C!==0){for(x-=C,_-=C,m-=C,b=x+1,S=_+1,g=0;g<C;g++)r[b+g]=o[S+g];if(m<=1){E=!0;break}}if(r[x--]=r[y--],--h===0){E=!0;break}w--}while(A>=Pc||C>=Pc);if(E)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),m===1){for(x-=h,y-=h,b=x+1,S=y+1,g=h-1;g>=0;g--)r[b+g]=r[S+g];r[x]=o[_]}else{if(m===0)throw new Error;for(S=x-(m-1),g=0;g<m;g++)r[S+g]=o[g]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function bl(r,e,t,i){t||(t=0),i||(i=r.length);var a=i-t;if(!(a<2)){var n=0;if(a<rM){n=eM(r,t,i,e),tM(r,t,i,t+n,e);return}var o=CW(r,e),s=wW(a);do{if(n=eM(r,t,i,e),n<s){var l=a;l>s&&(l=s),tM(r,t,t+l,t+n,e),n=l}o.pushRun(t,n),o.mergeRuns(),a-=n,t+=n}while(a!==0);o.forceMergeRuns()}}var $t=1,wl=2,Jo=4;var iM=!1;function Lx(){iM||(iM=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function aM(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var AW=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=aM}return r.prototype.traverse=function(e,t){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var i=this._displayList;return(e||!i.length)&&this.updateDisplayList(t),i},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,i=this._displayList,a=0,n=t.length;a<n;a++)this._updateAndAddDisplayable(t[a],null,e);i.length=this._displayListLen,bl(i,aM)},r.prototype._updateAndAddDisplayable=function(e,t,i){if(!(e.ignore&&!i)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),n=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(n||a)){if(s||(s=e.__clipPaths=[]),n)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=a,f=e;u;)u.parent=f,u.updateTransform(),s[o++]=u,f=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var p=e.childrenRef(),c=0;c<p.length;c++){var v=p[c];e.__dirty&&(v.__dirty|=$t),this._updateAndAddDisplayable(v,s,i)}e.__dirty=0}else{var h=e;isNaN(h.z)&&(Lx(),h.z=0),isNaN(h.z2)&&(Lx(),h.z2=0),isNaN(h.zlevel)&&(Lx(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var d=e.getDecalElement&&e.getDecalElement();d&&this._updateAndAddDisplayable(d,s,i);var m=e.getTextGuideLine();m&&this._updateAndAddDisplayable(m,s,i);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,s,i)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,i=e.length;t<i;t++)this.delRoot(e[t]);return}var a=le(this._roots,e);a>=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),nM=AW;var oM;oM=Re.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var Rc=oM;var hd={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)))},elasticOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var e,t=.1,i=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=i/4):e=i*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/i)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-hd.bounceOut(1-r)},bounceOut:function(r){return r<.36363636363636365?7.5625*r*r:r<.7272727272727273?7.5625*(r-=.5454545454545454)*r+.75:r<.9090909090909091?7.5625*(r-=.8181818181818182)*r+.9375:7.5625*(r-=.9545454545454546)*r+.984375},bounceInOut:function(r){return r<.5?hd.bounceIn(r*2)*.5:hd.bounceOut(r*2-1)*.5+.5}},dd=hd;var md=Math.pow,$o=Math.sqrt,yd=1e-8,lM=1e-4,sM=$o(3),gd=1/3,Sn=ka(),ia=ka(),ff=ka();function Qo(r){return r>-yd&&r<yd}function uM(r){return r>yd||r<-yd}function Rt(r,e,t,i,a){var n=1-a;return n*n*(n*r+3*a*e)+a*a*(a*i+3*n*t)}function Px(r,e,t,i,a){var n=1-a;return 3*(((e-r)*n+2*(t-e)*a)*n+(i-t)*a*a)}function Tl(r,e,t,i,a,n){var o=i+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-a,f=s*s-3*o*l,p=s*l-9*o*u,c=l*l-3*s*u,v=0;if(Qo(f)&&Qo(p))if(Qo(s))n[0]=0;else{var h=-l/s;h>=0&&h<=1&&(n[v++]=h)}else{var d=p*p-4*f*c;if(Qo(d)){var m=p/f,h=-s/o+m,g=-m/2;h>=0&&h<=1&&(n[v++]=h),g>=0&&g<=1&&(n[v++]=g)}else if(d>0){var y=$o(d),_=f*s+1.5*o*(-p+y),x=f*s+1.5*o*(-p-y);_<0?_=-md(-_,gd):_=md(_,gd),x<0?x=-md(-x,gd):x=md(x,gd);var h=(-s-(_+x))/(3*o);h>=0&&h<=1&&(n[v++]=h)}else{var S=(2*f*s-3*o*p)/(2*$o(f*f*f)),b=Math.acos(S)/3,w=$o(f),A=Math.cos(b),h=(-s-2*w*A)/(3*o),g=(-s+w*(A+sM*Math.sin(b)))/(3*o),C=(-s+w*(A-sM*Math.sin(b)))/(3*o);h>=0&&h<=1&&(n[v++]=h),g>=0&&g<=1&&(n[v++]=g),C>=0&&C<=1&&(n[v++]=C)}}return v}function _d(r,e,t,i,a){var n=6*t-12*e+6*r,o=9*e+3*i-3*r-9*t,s=3*e-3*r,l=0;if(Qo(o)){if(uM(n)){var u=-s/n;u>=0&&u<=1&&(a[l++]=u)}}else{var f=n*n-4*o*s;if(Qo(f))a[0]=-n/(2*o);else if(f>0){var p=$o(f),u=(-n+p)/(2*o),c=(-n-p)/(2*o);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function aa(r,e,t,i,a,n){var o=(e-r)*a+r,s=(t-e)*a+e,l=(i-t)*a+t,u=(s-o)*a+o,f=(l-s)*a+s,p=(f-u)*a+u;n[0]=r,n[1]=o,n[2]=u,n[3]=p,n[4]=p,n[5]=f,n[6]=l,n[7]=i}function xd(r,e,t,i,a,n,o,s,l,u,f){var p,c=.005,v=1/0,h,d,m,g;Sn[0]=l,Sn[1]=u;for(var y=0;y<1;y+=.05)ia[0]=Rt(r,t,a,o,y),ia[1]=Rt(e,i,n,s,y),m=xn(Sn,ia),m<v&&(p=y,v=m);v=1/0;for(var _=0;_<32&&!(c<lM);_++)h=p-c,d=p+c,ia[0]=Rt(r,t,a,o,h),ia[1]=Rt(e,i,n,s,h),m=xn(ia,Sn),h>=0&&m<v?(p=h,v=m):(ff[0]=Rt(r,t,a,o,d),ff[1]=Rt(e,i,n,s,d),g=xn(ff,Sn),d<=1&&g<v?(p=d,v=g):c*=.5);return f&&(f[0]=Rt(r,t,a,o,p),f[1]=Rt(e,i,n,s,p)),$o(v)}function fM(r,e,t,i,a,n,o,s,l){for(var u=r,f=e,p=0,c=1/l,v=1;v<=l;v++){var h=v*c,d=Rt(r,t,a,o,h),m=Rt(e,i,n,s,h),g=d-u,y=m-f;p+=Math.sqrt(g*g+y*y),u=d,f=m}return p}function Vt(r,e,t,i){var a=1-i;return a*(a*r+2*i*e)+i*i*t}function Oc(r,e,t,i){return 2*((1-i)*(e-r)+i*(t-e))}function pM(r,e,t,i,a){var n=r-2*e+t,o=2*(e-r),s=r-i,l=0;if(Qo(n)){if(uM(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var f=o*o-4*n*s;if(Qo(f)){var u=-o/(2*n);u>=0&&u<=1&&(a[l++]=u)}else if(f>0){var p=$o(f),u=(-o+p)/(2*n),c=(-o-p)/(2*n);u>=0&&u<=1&&(a[l++]=u),c>=0&&c<=1&&(a[l++]=c)}}return l}function Sd(r,e,t){var i=r+t-2*e;return i===0?.5:(r-e)/i}function es(r,e,t,i,a){var n=(e-r)*i+r,o=(t-e)*i+e,s=(o-n)*i+n;a[0]=r,a[1]=n,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function bd(r,e,t,i,a,n,o,s,l){var u,f=.005,p=1/0;Sn[0]=o,Sn[1]=s;for(var c=0;c<1;c+=.05){ia[0]=Vt(r,t,a,c),ia[1]=Vt(e,i,n,c);var v=xn(Sn,ia);v<p&&(u=c,p=v)}p=1/0;for(var h=0;h<32&&!(f<lM);h++){var d=u-f,m=u+f;ia[0]=Vt(r,t,a,d),ia[1]=Vt(e,i,n,d);var v=xn(ia,Sn);if(d>=0&&v<p)u=d,p=v;else{ff[0]=Vt(r,t,a,m),ff[1]=Vt(e,i,n,m);var g=xn(ff,Sn);m<=1&&g<p?(u=m,p=g):f*=.5}}return l&&(l[0]=Vt(r,t,a,u),l[1]=Vt(e,i,n,u)),$o(p)}function cM(r,e,t,i,a,n,o){for(var s=r,l=e,u=0,f=1/o,p=1;p<=o;p++){var c=p*f,v=Vt(r,t,a,c),h=Vt(e,i,n,c),d=v-s,m=h-l;u+=Math.sqrt(d*d+m*m),s=v,l=h}return u}var EW=/cubic-bezier\(([0-9,\.e ]+)\)/;function pf(r){var e=r&&EW.exec(r);if(e){var t=e[1].split(","),i=+Gt(t[0]),a=+Gt(t[1]),n=+Gt(t[2]),o=+Gt(t[3]);if(isNaN(i+a+n+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Tl(0,i,n,1,l,s)&&Rt(0,a,o,1,s[0])}}}var DW=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||et,this.ondestroy=e.ondestroy||et,this.onrestart=e.onrestart||et,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var i=this._life,a=e-this._startTime-this._pausedTime,n=a/i;n<0&&(n=0),n=Math.min(n,1);var o=this.easingFunc,s=o?o(n):n;if(this.onframe(s),n===1)if(this.loop){var l=a%i;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=J(e)?e:dd[e]||pf(e)},r})(),vM=DW;var df={};ea(df,{fastLerp:()=>vf,fastMapToColor:()=>OW,lerp:()=>Cd,lift:()=>zc,liftColor:()=>hf,lum:()=>Cl,mapToColor:()=>NW,modifyAlpha:()=>rs,modifyHSL:()=>Bi,parse:()=>Wt,parseCssFloat:()=>wn,parseCssInt:()=>Td,random:()=>kW,stringify:()=>Ir,toHex:()=>RW});var hM=(function(){function r(e){this.value=e}return r})();var MW=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new hM(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,i=e.next;t?t.next=i:this.head=i,i?i.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})();var IW=(function(){function r(e){this._list=new MW,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var i=this._list,a=this._map,n=null;if(a[e]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=i.head;i.remove(l),delete a[l.key],n=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new hM(t),s.key=e,i.insertEntry(s),a[e]=s}return n},r.prototype.get=function(e){var t=this._map[e],i=this._list;if(t!=null)return t!==i.tail&&(i.remove(t),i.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),bn=IW;var dM={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 Va(r){return r=Math.round(r),r<0?0:r>255?255:r}function LW(r){return r=Math.round(r),r<0?0:r>360?360:r}function kc(r){return r<0?0:r>1?1:r}function Td(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Va(parseFloat(e)/100*255):Va(parseInt(e,10))}function wn(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?kc(parseFloat(e)/100):kc(parseFloat(e))}function Rx(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function ts(r,e,t){return r+(e-r)*t}function na(r,e,t,i,a){return r[0]=e,r[1]=t,r[2]=i,r[3]=a,r}function Ox(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var gM=new bn(20),wd=null;function cf(r,e){wd&&Ox(wd,e),wd=gM.put(r,wd||e.slice())}function Wt(r,e){if(r){e=e||[];var t=gM.get(r);if(t)return Ox(e,t);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in dM)return Ox(e,dM[i]),cf(r,e),e;var a=i.length;if(i.charAt(0)==="#"){if(a===4||a===5){var n=parseInt(i.slice(1,4),16);if(!(n>=0&&n<=4095)){na(e,0,0,0,1);return}return na(e,(n&3840)>>4|(n&3840)>>8,n&240|(n&240)>>4,n&15|(n&15)<<4,a===5?parseInt(i.slice(4),16)/15:1),cf(r,e),e}else if(a===7||a===9){var n=parseInt(i.slice(1,7),16);if(!(n>=0&&n<=16777215)){na(e,0,0,0,1);return}return na(e,(n&16711680)>>16,(n&65280)>>8,n&255,a===9?parseInt(i.slice(7),16)/255:1),cf(r,e),e}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===a){var l=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?na(e,+u[0],+u[1],+u[2],1):na(e,0,0,0,1);f=wn(u.pop());case"rgb":if(u.length>=3)return na(e,Td(u[0]),Td(u[1]),Td(u[2]),u.length===3?f:wn(u[3])),cf(r,e),e;na(e,0,0,0,1);return;case"hsla":if(u.length!==4){na(e,0,0,0,1);return}return u[3]=wn(u[3]),Nx(u,e),cf(r,e),e;case"hsl":if(u.length!==3){na(e,0,0,0,1);return}return Nx(u,e),cf(r,e),e;default:return}}na(e,0,0,0,1)}}function Nx(r,e){var t=(parseFloat(r[0])%360+360)%360/360,i=wn(r[1]),a=wn(r[2]),n=a<=.5?a*(i+1):a+i-a*i,o=a*2-n;return e=e||[],na(e,Va(Rx(o,n,t+1/3)*255),Va(Rx(o,n,t)*255),Va(Rx(o,n,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function PW(r){if(r){var e=r[0]/255,t=r[1]/255,i=r[2]/255,a=Math.min(e,t,i),n=Math.max(e,t,i),o=n-a,s=(n+a)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(n+a):u=o/(2-n-a);var f=((n-e)/6+o/2)/o,p=((n-t)/6+o/2)/o,c=((n-i)/6+o/2)/o;e===n?l=c-p:t===n?l=1/3+f-c:i===n&&(l=2/3+p-f),l<0&&(l+=1),l>1&&(l-=1)}var v=[l*360,u,s];return r[3]!=null&&v.push(r[3]),v}}function zc(r,e){var t=Wt(r);if(t){for(var i=0;i<3;i++)e<0?t[i]=t[i]*(1-e)|0:t[i]=(255-t[i])*e+t[i]|0,t[i]>255?t[i]=255:t[i]<0&&(t[i]=0);return Ir(t,t.length===4?"rgba":"rgb")}}function RW(r){var e=Wt(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function vf(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var i=r*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=e[a],s=e[n],l=i-a;return t[0]=Va(ts(o[0],s[0],l)),t[1]=Va(ts(o[1],s[1],l)),t[2]=Va(ts(o[2],s[2],l)),t[3]=kc(ts(o[3],s[3],l)),t}}var OW=vf;function Cd(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var i=r*(e.length-1),a=Math.floor(i),n=Math.ceil(i),o=Wt(e[a]),s=Wt(e[n]),l=i-a,u=Ir([Va(ts(o[0],s[0],l)),Va(ts(o[1],s[1],l)),Va(ts(o[2],s[2],l)),kc(ts(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:a,rightIndex:n,value:i}:u}}var NW=Cd;function Bi(r,e,t,i){var a=Wt(r);if(r)return a=PW(a),e!=null&&(a[0]=LW(J(e)?e(a[0]):e)),t!=null&&(a[1]=wn(J(t)?t(a[1]):t)),i!=null&&(a[2]=wn(J(i)?i(a[2]):i)),Ir(Nx(a),"rgba")}function rs(r,e){var t=Wt(r);if(t&&e!=null)return t[3]=kc(e),Ir(t,"rgba")}function Ir(r,e){if(!(!r||!r.length)){var t=r[0]+","+r[1]+","+r[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(t+=","+r[3]),e+"("+t+")"}}function Cl(r,e){var t=Wt(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function kW(){return Ir([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var mM=new bn(100);function hf(r){if(H(r)){var e=mM.get(r);return e||(e=zc(r,-.1),mM.put(r,e)),e}else if(lo(r)){var t=k({},r);return t.colorStops=U(r.colorStops,function(i){return{offset:i.offset,color:zc(i.color,-.1)}}),t}return r}var Ed=Math.round;function is(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=Wt(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e??1}}var yM=1e-4;function Tn(r){return r<yM&&r>-yM}function Ad(r){return Ed(r*1e3)/1e3}function Dd(r){return Ed(r*1e4)/1e4}function _M(r){return"matrix("+Ad(r[0])+","+Ad(r[1])+","+Ad(r[2])+","+Ad(r[3])+","+Dd(r[4])+","+Dd(r[5])+")"}var xM={left:"start",right:"end",center:"middle",middle:"middle"};function SM(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function bM(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function wM(r){var e=r.style,t=r.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}function kx(r){return r&&!!r.image}function zW(r){return r&&!!r.svgElement}function Vc(r){return kx(r)||zW(r)}function Md(r){return r.type==="linear"}function Id(r){return r.type==="radial"}function Ld(r){return r&&(r.type==="linear"||r.type==="radial")}function Uc(r){return"url(#"+r+")"}function Pd(r){var e=r.getGlobalScale(),t=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Rd(r){var e=r.x||0,t=r.y||0,i=(r.rotation||0)*cl,a=Z(r.scaleX,1),n=Z(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),i&&l.push("rotate("+i+")"),(a!==1||n!==1)&&l.push("scale("+a+","+n+")"),(o||s)&&l.push("skew("+Ed(o*cl)+"deg, "+Ed(s*cl)+"deg)"),l.join(" ")}var TM=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(r){return Buffer.from(r).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(r){return btoa(unescape(encodeURIComponent(r)))}:function(r){return null}})();var Vx=Array.prototype.slice;function co(r,e,t){return(e-r)*t+r}function zx(r,e,t,i){for(var a=e.length,n=0;n<a;n++)r[n]=co(e[n],t[n],i);return r}function VW(r,e,t,i){for(var a=e.length,n=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=co(e[o][s],t[o][s],i)}return r}function Od(r,e,t,i){for(var a=e.length,n=0;n<a;n++)r[n]=e[n]+t[n]*i;return r}function CM(r,e,t,i){for(var a=e.length,n=a&&e[0].length,o=0;o<a;o++){r[o]||(r[o]=[]);for(var s=0;s<n;s++)r[o][s]=e[o][s]+t[o][s]*i}return r}function UW(r,e){for(var t=r.length,i=e.length,a=t>i?e:r,n=Math.min(t,i),o=a[n-1]||{color:[0,0,0,0],offset:0},s=n;s<Math.max(t,i);s++)a.push({offset:o.offset,color:o.color.slice()})}function BW(r,e,t){var i=r,a=e;if(!(!i.push||!a.push)){var n=i.length,o=a.length;if(n!==o){var s=n>o;if(s)i.length=o;else for(var l=n;l<o;l++)i.push(t===1?a[l]:Vx.call(a[l]))}for(var u=i[0]&&i[0].length,l=0;l<i.length;l++)if(t===1)isNaN(i[l])&&(i[l]=a[l]);else for(var f=0;f<u;f++)isNaN(i[l][f])&&(i[l][f]=a[l][f])}}function Al(r){if(It(r)){var e=r.length;if(It(r[0])){for(var t=[],i=0;i<e;i++)t.push(Vx.call(r[i]));return t}return Vx.call(r)}return r}function zd(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function FW(r){return It(r&&r[0])?2:1}var Nd=0,Vd=1,DM=2,Fc=3,Ux=4,Bx=5,AM=6;function EM(r){return r===Ux||r===Bx}function kd(r){return r===Vd||r===DM}var Bc=[0,0,0,0],GW=(function(){function r(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(e,t,i){this._needsSort=!0;var a=this.keyframes,n=a.length,o=!1,s=AM,l=t;if(It(t)){var u=FW(t);s=u,(u===1&&!_e(t[0])||u===2&&!_e(t[0][0]))&&(o=!0)}else if(_e(t)&&!Lt(t))s=Nd;else if(H(t))if(!isNaN(+t))s=Nd;else{var f=Wt(t);f&&(l=f,s=Fc)}else if(lo(t)){var p=k({},l);p.colorStops=U(t.colorStops,function(v){return{offset:v.offset,color:Wt(v.color)}}),Md(t)?s=Ux:Id(t)&&(s=Bx),l=p}n===0?this.valType=s:(s!==this.valType||s===AM)&&(o=!0),this.discrete=this.discrete||o;var c={time:e,value:l,rawValue:t,percent:0};return i&&(c.easing=i,c.easingFunc=J(i)?i:dd[i]||pf(i)),a.push(c),c},r.prototype.prepare=function(e,t){var i=this.keyframes;this._needsSort&&i.sort(function(d,m){return d.time-m.time});for(var a=this.valType,n=i.length,o=i[n-1],s=this.discrete,l=kd(a),u=EM(a),f=0;f<n;f++){var p=i[f],c=p.value,v=o.value;p.percent=p.time/e,s||(l&&f!==n-1?BW(c,v,a):u&&UW(c.colorStops,v.colorStops))}if(!s&&a!==Bx&&t&&this.needsAnimate()&&t.needsAnimate()&&a===t.valType&&!t._finished){this._additiveTrack=t;for(var h=i[0].value,f=0;f<n;f++)a===Nd?i[f].additiveValue=i[f].value-h:a===Fc?i[f].additiveValue=Od([],i[f].value,h,-1):kd(a)&&(i[f].additiveValue=a===Vd?Od([],i[f].value,h,-1):CM([],i[f].value,h,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,a=i?"additiveValue":"value",n=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=n===Fc,f,p=this._lastFr,c=Math.min,v,h;if(s===1)v=h=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var d=c(p+1,s-1);for(f=d;f>=0&&!(o[f].percent<=t);f--);f=c(f,s-2)}else{for(f=p;f<s&&!(o[f].percent>t);f++);f=c(f-1,s-2)}h=o[f+1],v=o[f]}if(v&&h){this._lastFr=f,this._lastFrP=t;var m=h.percent-v.percent,g=m===0?1:c((t-v.percent)/m,1);h.easingFunc&&(g=h.easingFunc(g));var y=i?this._additiveValue:u?Bc:e[l];if((kd(n)||u)&&!y&&(y=this._additiveValue=[]),this.discrete)e[l]=g<1?v.rawValue:h.rawValue;else if(kd(n))n===Vd?zx(y,v[a],h[a],g):VW(y,v[a],h[a],g);else if(EM(n)){var _=v[a],x=h[a],S=n===Ux;e[l]={type:S?"linear":"radial",x:co(_.x,x.x,g),y:co(_.y,x.y,g),colorStops:U(_.colorStops,function(w,A){var C=x.colorStops[A];return{offset:co(w.offset,C.offset,g),color:zd(zx([],w.color,C.color,g))}}),global:x.global},S?(e[l].x2=co(_.x2,x.x2,g),e[l].y2=co(_.y2,x.y2,g)):e[l].r=co(_.r,x.r,g)}else if(u)zx(y,v[a],h[a],g),i||(e[l]=zd(y));else{var b=co(v[a],h[a],g);i?this._additiveValue=b:e[l]=b}i&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,i=this.propName,a=this._additiveValue;t===Nd?e[i]=e[i]+a:t===Fc?(Wt(e[i],Bc),Od(Bc,Bc,a,1),e[i]=zd(Bc)):t===Vd?Od(e[i],e[i],a,1):t===DM&&CM(e[i],e[i],a,1)},r})(),HW=(function(){function r(e,t,i,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&a){qo("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(e){this._target=e},r.prototype.when=function(e,t,i){return this.whenWithKeys(e,t,ye(t),i)},r.prototype.whenWithKeys=function(e,t,i,a){for(var n=this._tracks,o=0;o<i.length;o++){var s=i[o],l=n[s];if(!l){l=n[s]=new GW(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var p=f.keyframes,c=p[p.length-1];u=c&&c.value,f.valType===Fc&&u&&(u=zd(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Al(u),a),this._trackKeys.push(s)}l.addKeyframe(e,Al(t[s]),a)}return this._maxTime=Math.max(this._maxTime,e),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,i=0;i<t;i++)e[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var i=0;i<t.length;i++)t[i].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,i=0;i<t.length;i++)e[t[i]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,i=this._additiveAnimators;if(i)for(var a=0;a<i.length;a++){var n=i[a].getTrack(e);n&&(t=n)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,i=[],a=this._maxTime||0,n=0;n<this._trackKeys.length;n++){var o=this._trackKeys[n],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var p=u[f-1];p&&(t._target[s.propName]=p.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var c=new vM({life:a,loop:this._loop,delay:this._delay||0,onframe:function(v){t._started=2;var h=t._additiveAnimators;if(h){for(var d=!1,m=0;m<h.length;m++)if(h[m]._clip){d=!0;break}d||(t._additiveAnimators=null)}for(var m=0;m<i.length;m++)i[m].step(t._target,v);var g=t._onframeCbs;if(g)for(var m=0;m<g.length;m++)g[m](t._target,v)},ondestroy:function(){t._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),e&&c.setEasing(e)}else this._doneCallback();return this}},r.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},r.prototype.delay=function(e){return this._delay=e,this},r.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},r.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},r.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(e){return this._tracks[e]},r.prototype.getTracks=function(){var e=this;return U(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var i=this._tracks,a=this._trackKeys,n=0;n<e.length;n++){var o=i[e[n]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,n=0;n<a.length;n++)if(!i[a[n]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,i){if(e){t=t||this._trackKeys;for(var a=0;a<t.length;a++){var n=t[a],o=this._tracks[n];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[i?0:s.length-1];l&&(e[n]=Al(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||ye(e);for(var i=0;i<t.length;i++){var a=t[i],n=this._tracks[a];if(n){var o=n.keyframes;if(o.length>1){var s=o.pop();n.addKeyframe(s.time,e[a]),n.prepare(this._maxTime,n.getAdditiveTrack())}}}},r})(),Gc=HW;function El(){return new Date().getTime()}var YW=(function(r){Ve(e,r);function e(t){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,t=t||{},i.stage=t.stage||{},i}return e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var i=t.getClip();i&&this.addClip(i)},e.prototype.removeClip=function(t){if(t.animation){var i=t.prev,a=t.next;i?i.next=a:this._head=a,a?a.prev=i:this._tail=i,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var i=t.getClip();i&&this.removeClip(i),t.animation=null},e.prototype.update=function(t){for(var i=El()-this._pausedTime,a=i-this._time,n=this._head;n;){var o=n.next,s=n.step(i,a);s&&(n.ondestroy(),this.removeClip(n)),n=o}this._time=i,t||(this.trigger("frame",a),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function i(){t._running&&(Rc(i),!t._paused&&t.update())}Rc(i)},e.prototype.start=function(){this._running||(this._time=El(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=El(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=El()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var i=t.next;t.prev=t.next=t.animation=null,t=i}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,i){i=i||{},this.start();var a=new Gc(t,i.loop);return this.addAnimator(a),a},e})(Jt),MM=YW;var WW=300,Fx=Re.domSupported,Gx=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],t={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=U(r,function(a){var n=a.replace("mouse","pointer");return t.hasOwnProperty(n)?n:a});return{mouse:r,touch:e,pointer:i}})(),IM={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},LM=!1;function Wx(r){var e=r.pointerType;return e==="pen"||e==="touch"}function XW(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function Hx(r){r&&(r.zrByTouch=!0)}function ZW(r,e){return ci(r.dom,new KW(r,e),!0)}function RM(r,e){for(var t=e,i=!1;t&&t.nodeType!==9&&!(i=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return i}var KW=(function(){function r(e,t){this.stopPropagation=et,this.stopImmediatePropagation=et,this.preventDefault=et,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r})(),Ua={mousedown:function(r){r=ci(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=ci(this.dom,r);var e=this.__mayPointerCapture;e&&(r.zrX!==e[0]||r.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=ci(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=ci(this.dom,r);var e=r.toElement||r.relatedTarget;RM(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){LM=!0,r=ci(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){LM||(r=ci(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=ci(this.dom,r),Hx(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),Ua.mousemove.call(this,r),Ua.mousedown.call(this,r)},touchmove:function(r){r=ci(this.dom,r),Hx(r),this.handler.processGesture(r,"change"),Ua.mousemove.call(this,r)},touchend:function(r){r=ci(this.dom,r),Hx(r),this.handler.processGesture(r,"end"),Ua.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<WW&&Ua.click.call(this,r)},pointerdown:function(r){Ua.mousedown.call(this,r)},pointermove:function(r){Wx(r)||Ua.mousemove.call(this,r)},pointerup:function(r){Ua.mouseup.call(this,r)},pointerout:function(r){Wx(r)||Ua.mouseout.call(this,r)}};T(["click","dblclick","contextmenu"],function(r){Ua[r]=function(e){e=ci(this.dom,e),this.trigger(r,e)}});var Xx={pointermove:function(r){Wx(r)||Xx.mousemove.call(this,r)},pointerup:function(r){Xx.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),e&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function qW(r,e){var t=e.domHandlers;Re.pointerEventsSupported?T(Gx.pointer,function(i){Ud(e,i,function(a){t[i].call(r,a)})}):(Re.touchEventsSupported&&T(Gx.touch,function(i){Ud(e,i,function(a){t[i].call(r,a),XW(e)})}),T(Gx.mouse,function(i){Ud(e,i,function(a){a=cd(a),e.touching||t[i].call(r,a)})}))}function jW(r,e){Re.pointerEventsSupported?T(IM.pointer,t):Re.touchEventsSupported||T(IM.mouse,t);function t(i){function a(n){n=cd(n),RM(r,n.target)||(n=ZW(r,n),e.domHandlers[i].call(r,n))}Ud(e,i,a,{capture:!0})}}function Ud(r,e,t,i){r.mounted[e]=t,r.listenerOpts[e]=i,Ec(r.domTarget,e,t,i)}function Yx(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&HD(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var PM=(function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r})(),JW=(function(r){Ve(e,r);function e(t,i){var a=r.call(this)||this;return a.__pointerCapturing=!1,a.dom=t,a.painterRoot=i,a._localHandlerScope=new PM(t,Ua),Fx&&(a._globalHandlerScope=new PM(document,Xx)),qW(a,a._localHandlerScope),a}return e.prototype.dispose=function(){Yx(this._localHandlerScope),Fx&&Yx(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Fx&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var i=this._globalHandlerScope;t?jW(this,i):Yx(i)}},e})(Jt),OM=JW;var NM=1;Re.hasGlobalWindow&&(NM=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Dl=NM,Hc=.4,Yc="#333",Wc="#ccc",kM="#eee";var zM=ra,VM=5e-5;function Ml(r){return r>VM||r<-VM}var Il=[],mf=[],Zx=Je(),Kx=Math.abs,qx=(function(){function r(){}return r.prototype.getLocalTransform=function(e){return Cn(this,e)},r.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},r.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},r.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},r.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},r.prototype.needLocalTransform=function(){return Ml(this.rotation)||Ml(this.x)||Ml(this.y)||Ml(this.scaleX-1)||Ml(this.scaleY-1)||Ml(this.skewX)||Ml(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),i=this.transform;if(!(t||e)){i&&(zM(i),this.invTransform=null);return}i=i||Je(),t?this.getLocalTransform(i):zM(i),e&&(t?Qt(i,e,i):za(i,e)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||Je(),zt(this.invTransform,i)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(Il);var i=Il[0]<0?-1:1,a=Il[1]<0?-1:1,n=((Il[0]-i)*t+i)/Il[0]||0,o=((Il[1]-a)*t+a)/Il[1]||0;e[0]*=n,e[1]*=n,e[2]*=o,e[3]*=o}},r.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},r.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],i=e[2]*e[2]+e[3]*e[3],a=Math.atan2(e[1],e[0]),n=Math.PI/2+a-Math.atan2(e[3],e[2]);i=Math.sqrt(i)*Math.cos(n),t=Math.sqrt(t),this.skewX=n,this.skewY=0,this.rotation=-a,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||Je(),Qt(mf,e.invTransform,t),t=mf);var i=this.originX,a=this.originY;(i||a)&&(Zx[4]=i,Zx[5]=a,Qt(mf,t,Zx),mf[4]-=i,mf[5]-=a,t=mf),this.setLocalTransform(t)}},r.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},r.prototype.transformCoordToLocal=function(e,t){var i=[e,t],a=this.invTransform;return a&&ot(i,i,a),i},r.prototype.transformCoordToGlobal=function(e,t){var i=[e,t],a=this.transform;return a&&ot(i,i,a),i},r.prototype.getLineScale=function(){var e=this.transform;return e&&Kx(e[0]-1)>1e-10&&Kx(e[3]-1)>1e-10?Math.sqrt(Kx(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){hi(this,e)},r.getLocalTransform=function(e,t){t=t||[];var i=e.originX||0,a=e.originY||0,n=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,p=e.y,c=e.skewX?Math.tan(e.skewX):0,v=e.skewY?Math.tan(-e.skewY):0;if(i||a||s||l){var h=i+s,d=a+l;t[4]=-h*n-c*d*o,t[5]=-d*o-v*h*n}else t[4]=t[5]=0;return t[0]=n,t[3]=o,t[1]=v*n,t[2]=c*o,u&&dr(t,t,u),t[4]+=i+f,t[5]+=a+p,t},r.initDefaultProps=(function(){var e=r.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0})(),r})(),Cn=qx.getLocalTransform;function Ll(){return new qx}var oa=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function hi(r,e){return lx(r,e,oa)}var di=qx;function Ba(r){Bd||(Bd=new bn(100)),r=r||li;var e=Bd.get(r);return e||(e={font:r,strWidthCache:new bn(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:wt.measureText("\u56FD",r).width,asciiCharWidth:wt.measureText("a",r).width},Bd.put(r,e)),e}var Bd;function QW(r){if(!(jx>=UM)){r=r||li;for(var e=[],t=+new Date,i=0;i<=127;i++)e[i]=wt.measureText(String.fromCharCode(i),r).width;var a=+new Date-t;return a>16?jx=UM:a>2&&jx++,e}}var jx=0,UM=5;function Jx(r,e){return r.asciiWidthMapTried||(r.asciiWidthMap=QW(r.font),r.asciiWidthMapTried=!0),0<=e&&e<=127?r.asciiWidthMap!=null?r.asciiWidthMap[e]:r.asciiCharWidth:r.stWideCharWidth}function Fa(r,e){var t=r.strWidthCache,i=t.get(e);return i==null&&(i=wt.measureText(e,r.font).width,t.put(e,i)),i}function BM(r,e,t,i){var a=Fa(Ba(e),r),n=Pl(e),o=ns(0,a,t),s=vo(0,n,i),l=new oe(o,s,a,n);return l}function as(r,e,t,i){var a=((r||"")+"").split(`
2
+ `),n=a.length;if(n===1)return BM(a[0],e,t,i);for(var o=new oe(0,0,0,0),s=0;s<a.length;s++){var l=BM(a[s],e,t,i);s===0?o.copy(l):o.union(l)}return o}function ns(r,e,t,i){return t==="right"?i?r+=e:r-=e:t==="center"&&(i?r+=e/2:r-=e/2),r}function vo(r,e,t,i){return t==="middle"?i?r+=e/2:r-=e/2:t==="bottom"&&(i?r+=e:r-=e),r}function Pl(r){return Ba(r).stWideCharWidth}function Lr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Rl(r,e,t){var i=e.position||"inside",a=e.distance!=null?e.distance:5,n=t.height,o=t.width,s=n/2,l=t.x,u=t.y,f="left",p="top";if(i instanceof Array)l+=Lr(i[0],t.width),u+=Lr(i[1],t.height),f=null,p=null;else switch(i){case"left":l-=a,u+=s,f="right",p="middle";break;case"right":l+=a+o,u+=s,p="middle";break;case"top":l+=o/2,u-=a,f="center",p="bottom";break;case"bottom":l+=o/2,u+=n+a,f="center";break;case"inside":l+=o/2,u+=s,f="center",p="middle";break;case"insideLeft":l+=a,u+=s,p="middle";break;case"insideRight":l+=o-a,u+=s,f="right",p="middle";break;case"insideTop":l+=o/2,u+=a,f="center";break;case"insideBottom":l+=o/2,u+=n-a,f="center",p="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,f="right";break;case"insideBottomLeft":l+=a,u+=n-a,p="bottom";break;case"insideBottomRight":l+=o-a,u+=n-a,f="right",p="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=p,r}var Qx="__zr_normal__",$x=oa.concat(["ignore"]),$W=tr(oa,function(r,e){return r[e]=!0,r},{ignore:!1}),gf={},e4=new oe(0,0,0,0),Gd=[],Hd=0,yf=1,rS=(function(){function r(e){this.id=bc(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=e,a[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,a=i.local,n=t.innerTransformable,o=void 0,s=void 0,l=!1;n.parent=a?this:null;var u=!1;n.copyTransform(t);var f=i.position!=null,p=i.autoOverflowArea,c=void 0;if((p||f)&&(c=e4,i.layoutRect?c.copy(i.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(gf,i,c):Rl(gf,i,c),n.x=gf.x,n.y=gf.y,o=gf.align,s=gf.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var h=void 0,d=void 0;v==="center"?(h=c.width*.5,d=c.height*.5):(h=Lr(v[0],c.width),d=Lr(v[1],c.height)),u=!0,n.originX=-n.x+h+(a?0:c.x),n.originY=-n.y+d+(a?0:c.y)}}i.rotation!=null&&(n.rotation=i.rotation);var m=i.offset;m&&(n.x+=m[0],n.y+=m[1],u||(n.originX=-m[0],n.originY=-m[1]));var g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(p){var y=g.overflowRect=g.overflowRect||new oe(0,0,0,0);n.getLocalTransform(Gd),zt(Gd,Gd),oe.copy(y,c),y.applyTransform(Gd)}else g.overflowRect=null;var _=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,x=void 0,S=void 0,b=void 0;_&&this.canBeInsideText()?(x=i.insideFill,S=i.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),b=!0)):(x=i.outsideFill,S=i.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),b=!0)),x=x||"#000",(x!==g.fill||S!==g.stroke||b!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=x,g.stroke=S,g.autoStroke=b,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=$t,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Wc:Yc},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&Wt(t);i||(i=[255,255,255,1]);for(var a=i[3],n=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*a+(n?0:255)*(1-a);return i[3]=1,Ir(i,"rgba")},r.prototype.traverse=function(e,t){},r.prototype.attrKV=function(e,t){e==="textConfig"?this.setTextConfig(t):e==="textContent"?this.setTextContent(t):e==="clipPath"?this.setClipPath(t):e==="extra"?(this.extra=this.extra||{},k(this.extra,t)):this[e]=t},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(e,t){if(typeof e=="string")this.attrKV(e,t);else if(te(e))for(var i=e,a=ye(i),n=0;n<a.length;n++){var o=a[n];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,i=0;i<this.animators.length;i++){var a=this.animators[i],n=a.__fromStateTransition;if(!(a.getLoop()||n&&n!==Qx)){var o=a.targetName,s=o?t[o]:t;a.saveTo(s)}}},r.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||(t=this._normalState={}),e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,$x)},r.prototype._savePrimaryToNormal=function(e,t,i){for(var a=0;a<i.length;a++){var n=i[a];e[n]!=null&&!(n in t)&&(t[n]=this[n])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(e){return this.states[e]},r.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},r.prototype.clearStates=function(e){this.useState(Qx,!1,e)},r.prototype.useState=function(e,t,i,a){var n=e===Qx,o=this.hasState();if(!(!o&&n)){var s=this.currentStates,l=this.stateTransition;if(!(le(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!n&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!n){qo("State "+e+" not exists.");return}n||this.saveCurrentToNormalState(u);var f=this._textContent,p=FM(this,f,u,a);p&&!this.__inHover&&(this.__inHover=p),this._applyStateObj(e,u,this._normalState,t,HM(this,i,l),l);var c=this._textGuide;return f&&f.useState(e,t,i,!!p),c&&c.useState(e,t,i,!!p),n?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!p&&this.__inHover&&(this.__inHover=Hd,this.__dirty&=~$t),u}}},r.prototype.useStates=function(e,t,i){if(!e.length)this.clearStates();else{var a=[],n=this.currentStates,o=e.length,s=o===n.length;if(s){for(var l=0;l<o;l++)if(e[l]!==n[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=e[l],f=void 0;this.stateProxy&&(f=this.stateProxy(u,e)),f||(f=this.states[u]),f&&a.push(f)}var p=a[o-1],c=this._textContent,v=FM(this,c,p,i);v&&!this.__inHover&&(this.__inHover=v);var h=this._mergeStates(a),d=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,HM(this,t,d),d);var m=this._textGuide;c&&c.useStates(e,t,!!v),m&&m.useStates(e,t,!!v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this.__inHover=Hd,this.__dirty&=~$t)}},r.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},r.prototype.removeState=function(e){var t=le(this.currentStates,e);if(t>=0){var i=this.currentStates.slice();i.splice(t,1),this.useStates(i)}},r.prototype.replaceState=function(e,t,i){var a=this.currentStates.slice(),n=le(a,e),o=le(a,t)>=0;n>=0?o?a.splice(n,1):a[n]=t:i&&!o&&a.push(t),this.useStates(a)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},i,a=0;a<e.length;a++){var n=e[a];k(t,n),n.textConfig&&(i=i||{},k(i,n.textConfig))}return i&&(t.textConfig=i),t},r.prototype._applyStateObj=function(e,t,i,a,n,o){if(this.__inHover!==yf){var s=!(t&&a);t&&t.textConfig?(this.textConfig=k({},a?this.textConfig:i.textConfig),k(this.textConfig,t.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var l={},u=!1,f=0;f<$x.length;f++){var p=$x[f],c=n&&$W[p];t&&t[p]!=null?c?(u=!0,l[p]=t[p]):this[p]=t[p]:s&&i[p]!=null&&(c?(u=!0,l[p]=i[p]):this[p]=i[p])}if(!n)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],h=v.targetName;v.getLoop()||v.__changeFinalValue(h?(t||i)[h]:t||i)}u&&this._transitionState(e,l,o)}},r.prototype._attachComponent=function(e){if(!(e.__zr&&!e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},r.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},r.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new di,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),k(this.textConfig,e),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=$t;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.addAnimator(t[i]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},r.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var i=0;i<t.length;i++)e.animation.removeAnimator(t[i]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,i){var a=e?this[e]:this,n=new Gc(a,t,i);return e&&(n.targetName=e),this.addAnimator(n,e),n},r.prototype.addAnimator=function(e,t){var i=this.__zr,a=this;e.during(function(){a.updateDuringAnimation(t)}).done(function(){var n=a.animators,o=le(n,e);o>=0&&n.splice(o,1)}),this.animators.push(e),i&&i.animation.addAnimator(e),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var i=this.animators,a=i.length,n=[],o=0;o<a;o++){var s=i[o];!e||e===s.scope?s.stop(t):n.push(s)}return this.animators=n,this},r.prototype.animateTo=function(e,t,i){eS(this,e,t,i)},r.prototype.animateFrom=function(e,t,i){eS(this,e,t,i,!0)},r.prototype._transitionState=function(e,t,i,a){for(var n=eS(this,t,i,a),o=0;o<n.length;o++)n[o].__fromStateTransition=e},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var e=r.prototype;e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=Hd,e.__dirty=$t;var t={};function i(n,o,s){t[n+o+s]||(console.warn("DEPRECATED: '"+n+"' has been deprecated. use '"+o+"', '"+s+"' instead"),t[n+o+s]=!0)}function a(n,o,s,l){Object.defineProperty(e,n,{get:function(){if(!this[o]){var f=this[o]=[];u(this,f)}return this[o]},set:function(f){this[s]=f[0],this[l]=f[1],this[o]=f,u(this,f)}});function u(f,p){Object.defineProperty(p,0,{get:function(){return f[s]},set:function(c){f[s]=c}}),Object.defineProperty(p,1,{get:function(){return f[l]},set:function(c){f[l]=c}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))})(),r})();rt(rS,Jt);rt(rS,di);function eS(r,e,t,i,a){t=t||{};var n=[];YM(r,"",r,e,t,i,n,a);var o=n.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},p=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),n.length>0&&t.during&&n[0].during(function(h,d){t.during(d)});for(var c=0;c<n.length;c++){var v=n[c];f&&v.done(f),p&&v.aborted(p),t.force&&v.duration(t.duration),v.start(t.easing)}return n}function tS(r,e,t){for(var i=0;i<t;i++)r[i]=e[i]}function t4(r){return It(r[0])}function r4(r,e,t){if(It(e[t]))if(It(r[t])||(r[t]=[]),kt(e[t])){var i=e[t].length;r[t].length!==i&&(r[t]=new e[t].constructor(i),tS(r[t],e[t],i))}else{var a=e[t],n=r[t],o=a.length;if(t4(a))for(var s=a[0].length,l=0;l<o;l++)n[l]?tS(n[l],a[l],s):n[l]=Array.prototype.slice.call(a[l]);else tS(n,a,o);n.length=a.length}else r[t]=e[t]}function i4(r,e){return r===e||It(r)&&It(e)&&a4(r,e)}function a4(r,e){var t=r.length;if(t!==e.length)return!1;for(var i=0;i<t;i++)if(r[i]!==e[i])return!1;return!0}function YM(r,e,t,i,a,n,o,s){for(var l=ye(i),u=a.duration,f=a.delay,p=a.additive,c=a.setToFinal,v=!te(n),h=r.animators,d=[],m=0;m<l.length;m++){var g=l[m],y=i[g];if(y!=null&&t[g]!=null&&(v||n[g]))if(te(y)&&!It(y)&&!lo(y)){if(e){s||(t[g]=y,r.updateDuringAnimation(e));continue}YM(r,g,t[g],y,a,n&&n[g],o,s)}else d.push(g);else s||(t[g]=y,r.updateDuringAnimation(e),d.push(g))}var _=d.length;if(!p&&_)for(var x=0;x<h.length;x++){var S=h[x];if(S.targetName===e){var b=S.stopTracks(d);if(b){var w=le(h,S);h.splice(w,1)}}}if(a.force||(d=Ie(d,function(D){return!i4(i[D],t[D])}),_=d.length),_>0||a.force&&!o.length){var A=void 0,C=void 0,E=void 0;if(s){C={},c&&(A={});for(var x=0;x<_;x++){var g=d[x];C[g]=t[g],c?A[g]=i[g]:t[g]=i[g]}}else if(c){E={};for(var x=0;x<_;x++){var g=d[x];E[g]=Al(t[g]),r4(t,i,g)}}var S=new Gc(t,!1,!1,p?Ie(h,function(I){return I.targetName===e}):null);S.targetName=e,a.scope&&(S.scope=a.scope),c&&A&&S.whenWithKeys(0,A,d),E&&S.whenWithKeys(0,E,d),S.whenWithKeys(u??500,s?C:i,d).delay(f||0),r.addAnimator(S,e),o.push(S)}}function FM(r,e,t,i){return!(t&&t.hoverLayer||i)||GM(r)||e&&GM(e)?Hd:yf}function GM(r){return r.type==="text"||r.type==="tspan"}function HM(r,e,t){return!e&&!r.__inHover&&t&&t.duration>0}var Yd=rS;var WM=(function(r){Ve(e,r);function e(t){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var i=this._children,a=0;a<i.length;a++)if(i[a].name===t)return i[a]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,i){if(t&&t!==this&&t.parent!==this&&i&&i.parent===this){var a=this._children,n=a.indexOf(i);n>=0&&(a.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,i){var a=le(this._children,t);return a>=0&&this.replaceAt(i,a),this},e.prototype.replaceAt=function(t,i){var a=this._children,n=a[i];if(t&&t!==this&&t.parent!==this&&t!==n){a[i]=t,n.parent=null;var o=this.__zr;o&&n.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var i=this.__zr;i&&i!==t.__zr&&t.addSelfToZr(i),i&&i.refresh()},e.prototype.remove=function(t){var i=this.__zr,a=this._children,n=le(a,t);return n<0?this:(a.splice(n,1),t.parent=null,i&&t.removeSelfFromZr(i),i&&i.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,i=this.__zr,a=0;a<t.length;a++){var n=t[a];i&&n.removeSelfFromZr(i),n.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,i){for(var a=this._children,n=0;n<a.length;n++){var o=a[n];t.call(i,o,n)}return this},e.prototype.traverse=function(t,i){for(var a=0;a<this._children.length;a++){var n=this._children[a],o=t.call(i,n);n.isGroup&&!o&&n.traverse(t,i)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var i=new oe(0,0,0,0),a=t||this._children,n=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(n);f?(oe.applyTransform(i,u,f),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},e})(Yd);WM.prototype.type="group";var Q=WM;var Wd={},Ol={};function n4(r){delete Ol[r]}function o4(r){if(!r)return!1;if(typeof r=="string")return Cl(r,1)<Hc;if(r.colorStops){for(var e=r.colorStops,t=0,i=e.length,a=0;a<i;a++)t+=Cl(e[a].color,1);return t/=i,t<Hc}return!1}var s4=(function(){function r(e,t,i){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=t,this.id=e;var n=new nM,o=i.renderer||"canvas";Wd[o]||(o=ye(Wd)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Wd[o](t,n,i,e),l=i.ssr||s.ssrOnly;this.storage=n,this.painter=s;var u=!Re.node&&!Re.worker&&!l?new OM(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,p=f==null||f==="auto"?Re.touchEventsSupported:!!f,c=44,v;p&&(v=Z(i.pointerSize,c)),this.handler=new $D(n,s,u,s.root,v),this.animation=new MM({stage:{update:l?null:function(){return a._flush(!1)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=o4(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!0)},r.prototype._flush=function(e){var t,i=El(),a=this._needsRefresh,n=this._needsRefreshHover;(a||n)&&(t=!0,this._refresh({animUpdate:e,refresh:a,refreshHover:n}));var o=El();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,i){return this._disposed||this.handler.on(e,t,i),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Q&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,n4(this.id))},r})();function Xd(r,e){var t=new s4(bc(),r,e);return Ol[t.id]=t,t}function l4(r){r.dispose()}function u4(){for(var r in Ol)Ol.hasOwnProperty(r)&&Ol[r].dispose();Ol={}}function f4(r){return Ol[r]}function aS(r,e){Wd[r]=e}var iS;function nS(r){if(typeof iS=="function")return iS(r)}function oS(r){iS=r}var p4="6.1.0";var XM=1e-4,Zd=20,ZM=14;function c4(r){return r.replace(/^\s+|\s+$/g,"")}var Fe=Math.min,xe=Math.max,ct=Math.abs,mi=Math.round,mr=Math.floor,sa=Math.ceil,ss=Math.pow,os=Math.log,Xc=Math.LN10,_f=Math.PI,v4=Math.random;function Ue(r,e,t,i){var a=e[0],n=e[1],o=t[0],s=t[1],l=n-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(i)if(l>0){if(r<=a)return o;if(r>=n)return s}else{if(r>=a)return o;if(r<=n)return s}else{if(r===a)return o;if(r===n)return s}return(r-a)/l*u+o}var j=h4;function h4(r,e,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return xf(r,e,t)}function xf(r,e,t){return H(r)?qM(r)?parseFloat(r)/100*e+(t||0):parseFloat(r):r==null?NaN:+r}function KM(r){return H(r)&&qM(r)}function qM(r){return!!c4(r).match(/%$/)}function Ne(r,e,t){return isNaN(e)?t?""+r:+r:(e=Fe(xe(0,e),Zd),r=(+r).toFixed(e),t?r:+r)}function jM(r,e,t){return e==null&&(e=10),Ne(r,e,t)}function dt(r){return r.sort(function(e,t){return e-t}),r}function Hr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(mi(r*e)/e===r)return t}return lS(r)}function lS(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),i=t>0?+e.slice(t+1):0,a=t>0?t:e.length,n=e.indexOf("."),o=n<0?0:a-1-n;return xe(0,o-i)}function JM(r,e){var t=mr(os(r[1]-r[0])/Xc),i=mi(os(ct(e[1]-e[0]))/Xc),a=Fe(xe(-t+i,0),Zd);return isFinite(a)?a:Zd}function Sf(r,e,t){var i=ct(r[1]-r[0]);if(!isFinite(i)||i===0)return NaN;var a=os(2*ct(t||1)*ct(i))/Xc,n=os(ct(e))/Xc,o=xe(0,sa(-a+n));return isFinite(o)||(o=NaN),o}function QM(r,e,t){if(!r[e])return 0;var i=uS(r,t);return i[e]||0}function uS(r,e){var t=tr(r,function(v,h){return v+(isNaN(h)?0:h)},0);if(t===0)return[];for(var i=ss(10,e),a=U(r,function(v){return(isNaN(v)?0:v)/t*i*100}),n=i*100,o=U(a,function(v){return mr(v)}),s=tr(o,function(v,h){return v+h},0),l=U(a,function(v,h){return v-o[h]});s<n;){for(var u=Number.NEGATIVE_INFINITY,f=null,p=0,c=l.length;p<c;++p)l[p]>u&&(u=l[p],f=p);++o[f],l[f]=0,++s}return U(o,function(v){return v/i})}function ho(r,e){var t=xe(Hr(r),Hr(e)),i=r+e;return t>Zd?i:Ne(i,t)}var ls=ss(2,53)-1;function Zc(r){var e=_f*2;return(r%e+e)%e}function An(r){return r>-XM&&r<XM}var d4=/^(?:(\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 gr(r){if(r instanceof Date)return r;if(H(r)){var e=d4.exec(r);if(!e)return new Date(NaN);if(e[8]){var t=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(mi(r))}function bf(r){return ss(10,wf(r))}function wf(r){if(r===0)return 0;var e=mr(os(r)/Xc);return r/ss(10,e)>=10&&e++,e}var fS=2;function mo(r,e){var t=wf(r),i=ss(10,t),a=r/i,n;return e===fS?n=1:e?a<1.5?n=1:a<2.5?n=2:a<4?n=3:a<7?n=5:n=10:a<1?n=1:a<2?n=2:a<3?n=3:a<5?n=5:n=10,r=n*i,Ne(r,-t)}function Tf(r,e){var t=(r.length-1)*e+1,i=mr(t),a=+r[i-1],n=t-i;return n?a+n*(r[i]-a):a}function Kc(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,i=0;i<r.length;){for(var a=r[i].interval,n=r[i].close,o=0;o<2;o++)a[o]<=e&&(a[o]=e,n[o]=o?1:1-t),e=a[o],t=n[o];a[0]===a[1]&&n[0]*n[1]!==1?r.splice(i,1):i++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function gi(r){var e=parseFloat(r);return e==r&&(e!==0||!H(r)||r.indexOf("x")<=0)?e:NaN}function Nl(r){return!isNaN(gi(r))}function qc(){return mi(v4()*9)}function $M(r,e){return e===0?r:$M(e,r%e)}function pS(r,e){return r==null?e:e==null?r:r*e/$M(r,e)}function rr(r){return r!=null&&isFinite(r)}var m4="[ECharts] ",eI={},g4=typeof console<"u"&&console.warn&&console.log;function tI(r,e,t){if(g4){if(t){if(eI[e])return;eI[e]=!0}console[r](m4+e)}}function rI(r,e){tI("warn",r,e)}function cS(r,e){tI("error",r,e)}function Ye(r){throw new Error(r)}function iI(r,e,t){return(e-r)*t+r}var aI="series\0",nI="\0_ec_\0";function We(r){return r instanceof Array?r:r==null?[]:[r]}function Fi(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var i=0,a=t.length;i<a;i++){var n=t[i];!r.emphasis[e].hasOwnProperty(n)&&r[e].hasOwnProperty(n)&&(r.emphasis[e][n]=r[e][n])}}}var vS=["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 Ha(r){return te(r)&&!V(r)&&!(r instanceof Date)?r.value:r}function oI(r){return te(r)&&!(r instanceof Array)}function Kd(r,e,t){var i=t==="normalMerge",a=t==="replaceMerge",n=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=W();T(e,function(l,u){if(!te(l)){e[u]=null;return}});var s=y4(r,o,t);return(i||a)&&_4(s,r,o,e),i&&x4(s,e),i||a?S4(s,e,a):n&&b4(s,e),w4(s),s}function y4(r,e,t){var i=[];if(t==="replaceAll")return i;for(var a=0;a<r.length;a++){var n=r[a];n&&n.id!=null&&e.set(n.id,a),i.push({existing:t==="replaceMerge"||Cf(n)?null:n,newOption:null,keyInfo:null,brandNew:null})}return i}function _4(r,e,t,i){T(i,function(a,n){if(!(!a||a.id==null)){var o=jc(a.id),s=t.get(o);if(s!=null){var l=r[s];at(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=e[s],i[n]=null}}})}function x4(r,e){T(e,function(t,i){if(!(!t||t.name==null))for(var a=0;a<r.length;a++){var n=r[a].existing;if(!r[a].newOption&&n&&(n.id==null||t.id==null)&&!Cf(t)&&!Cf(n)&&sI("name",n,t)){r[a].newOption=t,e[i]=null;return}}})}function S4(r,e,t){T(e,function(i){if(i){for(var a,n=0;(a=r[n])&&(a.newOption||Cf(a.existing)||a.existing&&i.id!=null&&!sI("id",i,a.existing));)n++;a?(a.newOption=i,a.brandNew=t):r.push({newOption:i,brandNew:t,existing:null,keyInfo:null}),n++}})}function b4(r,e){T(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function w4(r){var e=W();T(r,function(t){var i=t.existing;i&&e.set(i.id,t)}),T(r,function(t){var i=t.newOption;at(!i||i.id==null||!e.get(i.id)||e.get(i.id)===t,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&e.set(i.id,t),!t.keyInfo&&(t.keyInfo={})}),T(r,function(t,i){var a=t.existing,n=t.newOption,o=t.keyInfo;if(te(n)){if(o.name=n.name!=null?jc(n.name):a?a.name:aI+i,a)o.id=jc(a.id);else if(n.id!=null)o.id=jc(n.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function sI(r,e,t){var i=St(e[r],null),a=St(t[r],null);return i!=null&&a!=null&&i===a}function jc(r){return St(r,"")}function St(r,e){return r==null?e:H(r)?r:_e(r)||af(r)?r+"":e}function Af(r){var e=r.name;return!!(e&&e.indexOf(aI))}function Cf(r){return r&&r.id!=null&&jc(r.id).indexOf(nI)===0}function lI(r){return nI+r}function uI(r,e,t){T(r,function(i){var a=i.newOption;te(a)&&(i.keyInfo.mainType=e,i.keyInfo.subType=T4(e,a,i.existing,t))})}function T4(r,e,t,i){var a=e.type?e.type:t?t.subType:i.determineSubType(r,e);return a}function fI(r,e){var t={},i={};return a(r||[],t),a(e||[],i,t),[n(t),n(i)];function a(o,s,l){for(var u=0,f=o.length;u<f;u++){var p=St(o[u].seriesId,null);if(p==null)return;for(var c=We(o[u].dataIndex),v=l&&l[p],h=0,d=c.length;h<d;h++){var m=c[h];v&&v[m]?v[m]=null:(s[p]||(s[p]={}))[m]=1}}}function n(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=n(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function la(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return V(e.dataIndex)?U(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return V(e.name)?U(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function ne(){var r="__ec_inner_"+C4++;return function(e){return e[r]||(e[r]={})}}var C4=qc();function En(r,e,t){var i=Jc(e,t),a=i.mainTypeSpecified,n=i.queryOptionMap,o=i.others,s=o,l=t?t.defaultMainType:null;return!a&&l&&n.set(l,{}),n.each(function(u,f){var p=Dn(r,f,u,{useDefault:l===f,enableAll:t&&t.enableAll!=null?t.enableAll:!0,enableNone:t&&t.enableNone!=null?t.enableNone:!0});s[f+"Models"]=p.models,s[f+"Model"]=p.models[0]}),s}function Jc(r,e){var t;if(H(r)){var i={};i[r+"Index"]=0,t=i}else t=r;var a=W(),n={},o=!1;return T(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){n[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],p=(u[2]||"").toLowerCase();if(!(!f||!p||e&&e.includeMainTypes&&le(e.includeMainTypes,f)<0)){o=o||!!f;var c=a.get(f)||a.set(f,{});c[p]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:n}}var Ke={useDefault:!0,enableAll:!1,enableNone:!1},pI={useDefault:!1,enableAll:!0,enableNone:!0};function Dn(r,e,t,i){i=i||Ke;var a=t.index,n=t.id,o=t.name,s={models:null,specified:a!=null||n!=null||o!=null};if(!s.specified){var l=void 0;return s.models=i.useDefault&&(l=r.getComponent(e))?[l]:[],s}if(a==="none"||a===!1){if(i.enableNone)return s.models=[],s;a=-1}return a==="all"&&(i.enableAll?a=n=o=null:a=-1),s.models=r.queryComponents({mainType:e,index:a,id:n,name:o}),s}function Ef(r,e,t){var i={};i[e+"Id"]=r[e+"Id"],i[e+"Index"]=r[e+"Index"],i[e+"Name"]=r[e+"Name"];var a={mainType:e,query:i};return t&&(a.subType=t),a}function hS(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function cI(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function vI(r){return r==="auto"?Re.domSupported?"html":"richText":r||"html"}function Qc(r,e){var t=W(),i=[];return T(r,function(a){var n=e(a);(t.get(n)||(i.push(n),t.set(n,[]))).push(a)}),{keys:i,buckets:t}}function qd(r,e,t,i,a){var n=e==null||e==="auto";if(i==null)return i;if(_e(i)){var o=iI(t||0,i,a);return Ne(o,n?Math.max(Hr(t||0),Hr(i)):e)}else{if(H(i))return a<1?t:i;for(var s=[],l=t,u=i,f=Math.max(l?l.length:0,u.length),p=0;p<f;++p){var c=r.getDimensionInfo(p);if(c&&c.type==="ordinal")s[p]=(a<1&&l?l:u)[p];else{var v=l&&l[p]?l[p]:0,h=u[p],o=iI(v,h,a);s[p]=Ne(o,n?Math.max(Hr(v),Hr(h)):e)}}return s}}var Ya=(function(){function r(){}return r.prototype.reset=function(e,t,i,a){return this._list=e,this._step=a=a||1,this._idx=t,this._end=i??(a>0?e.length:0),this.item=null,this.key=NaN,this},r.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)?(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0):!1},r})();function jd(r){r.option=r.parentModel=r.ecModel=null}function Pt(){return[1/0,-1/0]}function $c(r,e){Ga(e)&&(e<r[0]&&(r[0]=e),e>r[1]&&(r[1]=e))}function dS(r,e){Ga(e)&&e<r[0]&&(r[0]=e)}function mS(r,e){Ga(e)&&e>r[1]&&(r[1]=e)}function hI(r,e){Wa(e[0],e[1])&&(e[0]<r[0]&&(r[0]=e[0]),e[1]>r[1]&&(r[1]=e[1]))}function Ga(r){return r!=null&&isFinite(r)}function Wa(r,e){return Ga(r)&&Ga(e)&&r<=e}function dI(r){var e=r[1]-r[0];return isFinite(e)&&e>=0}function Df(r){Wa(r[0],r[1])&&r[0]>r[1]&&(r[0]=r[1])}function ua(){var r="__ec_once_"+A4++;return function(e,t){ae(e,r)||(e[r]=1,t())}}var A4=qc();function us(r,e,t){var i=W(),a=0;T(r,function(n){var o=e(n),s=i.get(o)||0;t&&t(n,s),!s&&!t&&(r[a++]=n),i.set(o,s+1)}),t||(r.length=a)}function mI(r){return r.value+""}function gI(r){return r+""}function yr(r,e){return Z(e,!0)?r.seriesIndex+2:0}function Jd(r,e,t){var i=r.getData().count();return{progressiveRender:t.progressiveEnabled&&e.incrementalPrepareRender&&i>=t.threshold,large:r.get("large")&&i>=r.get("largeThreshold"),modDataCount:r.get("progressiveChunkMode")==="mod"?r.getData().count():null}}function qe(r,e){return{seriesType:r,overallReset:e}}function Mn(r){return{overallReset:r}}var E4=".",kl="___EC__COMPONENT__CONTAINER___",yI="___EC__EXTENDED_CLASS___";function _i(r){var e={main:"",sub:""};if(r){var t=r.split(E4);e.main=t[0]||"",e.sub=t[1]||""}return e}function D4(r){at(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function _I(r){return!!(r&&r[yI])}function Mf(r,e){r.$constructor=r,r.extend=function(t){var i=this,a;return M4(i)?a=(function(n){L(o,n);function o(){return n.apply(this,arguments)||this}return o})(i):(a=function(){(t.$constructor||i).apply(this,arguments)},wc(a,this)),k(a.prototype,t),a[yI]=!0,a.extend=this.extend,a.superCall=L4,a.superApply=P4,a.superClass=i,a}}function M4(r){return J(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Qd(r,e){r.extend=e.extend}var I4=Math.round(Math.random()*10);function xI(r){var e=["__\0is_clz",I4++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function L4(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];return this.superClass.prototype[e].apply(r,t)}function P4(r,e,t){return this.superClass.prototype[e].apply(r,t)}function fs(r){var e={};r.registerClass=function(i){var a=i.type||i.prototype.type;if(a){D4(a),i.prototype.type=a;var n=_i(a);if(!n.sub)e[n.main]=i;else if(n.sub!==kl){var o=t(n);o[n.sub]=i}}return i},r.getClass=function(i,a,n){var o=e[i];if(o&&o[kl]&&(o=a?o[a]:null),n&&!o)throw new Error(a?"Component "+i+"."+(a||"")+" is used but not imported.":i+".type should be specified.");return o},r.getClassesByMainType=function(i){var a=_i(i),n=[],o=e[a.main];return o&&o[kl]?T(o,function(s,l){l!==kl&&n.push(s)}):n.push(o),n},r.hasClass=function(i){var a=_i(i);return!!e[a.main]},r.getAllClassMainTypes=function(){var i=[];return T(e,function(a,n){i.push(n)}),i},r.hasSubTypes=function(i){var a=_i(i),n=e[a.main];return n&&n[kl]};function t(i){var a=e[i.main];return(!a||!a[kl])&&(a=e[i.main]={},a[kl]=!0),a}}function xi(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(i,a,n){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(a&&le(a,l)>=0||n&&le(n,l)<0)){var u=i.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var R4=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],O4=xi(R4),SI=(function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return O4(this,e,t)},r})();var yS=new bn(50);function wI(r){if(typeof r=="string"){var e=yS.get(r);return e&&e.image}else return r}function ev(r,e,t,i,a){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var n=yS.get(r),o={hostEl:t,cb:i,cbPayload:a};return n?(e=n.image,!If(e)&&n.pending.push(o)):(e=wt.loadImage(r,bI,bI),e.__zrImageSrc=r,yS.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function bI(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<r.pending.length;e++){var t=r.pending[e],i=t.cb;i&&i(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function If(r){return r&&r.width&&r.height}var _S=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function SS(r,e,t,i,a){var n={};return EI(n,r,e,t,i,a),n.text}function EI(r,e,t,i,a,n){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split(`
3
+ `);n=DI(t,i,a,n);for(var s=!1,l={},u=0,f=o.length;u<f;u++)MI(l,o[u],n),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
4
+ `),r.isTruncated=s}function DI(r,e,t,i){i=i||{};var a=k({},i);t=Z(t,"..."),a.maxIterations=Z(i.maxIterations,2);var n=a.minChar=Z(i.minChar,0),o=a.fontMeasureInfo=Ba(e),s=o.asciiCharWidth;a.placeholder=Z(i.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<n&&l>=s;u++)l-=s;var f=Fa(o,t);return f>l&&(t="",f=0),l=r-f,a.ellipsis=t,a.ellipsisWidth=f,a.contentWidth=l,a.containerWidth=r,a}function MI(r,e,t){var i=t.containerWidth,a=t.contentWidth,n=t.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=Fa(n,e);if(o<=i){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?k4(e,a,n):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=Fa(n,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function k4(r,e,t){for(var i=0,a=0,n=r.length;a<n&&i<e;a++)i+=Jx(t,r.charCodeAt(a));return a}function II(r,e,t,i){var a=wS(r),n=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=n==="truncate",p=Pl(u),c=Z(e.lineHeight,p),v=e.lineOverflow==="truncate",h=!1,d=e.width;d==null&&t!=null&&(d=t-s);var m=e.height;m==null&&i!=null&&(m=i-l);var g;d!=null&&(n==="break"||n==="breakAll")?g=a?PI(a,e.font,d,n==="breakAll",0).lines:[]:g=a?a.split(`
5
+ `):[];var y=g.length*c;if(m==null&&(m=y),y>m&&v){var _=Math.floor(m/c);h=h||g.length>_,g=g.slice(0,_),y=g.length*c}if(a&&f&&d!=null)for(var x=DI(d,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),S={},b=0;b<g.length;b++)MI(S,g[b],x),g[b]=S.textLine,h=h||S.isTruncated;for(var w=m,A=0,C=Ba(u),b=0;b<g.length;b++)A=Math.max(Fa(C,g[b]),A);d==null&&(d=A);var E=d;return w+=l,E+=s,{lines:g,height:m,outerWidth:E,outerHeight:w,lineHeight:c,calculatedLineHeight:p,contentWidth:A,contentHeight:y,width:d,isTruncated:h}}var z4=(function(){function r(){}return r})(),TI=(function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r})(),V4=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function LI(r,e,t,i,a){var n=new V4,o=wS(r);if(!o)return n;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&t!=null&&(f=t-l);var p=e.height;p==null&&i!=null&&(p=i-u);for(var c=e.overflow,v=(c==="break"||c==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:c==="breakAll"}:null,h=_S.lastIndex=0,d;(d=_S.exec(o))!=null;){var m=d.index;m>h&&xS(n,o.substring(h,m),e,v),xS(n,d[2],e,v,d[1]),h=_S.lastIndex}h<o.length&&xS(n,o.substring(h,o.length),e,v);var g=[],y=0,_=0,x=c==="truncate",S=e.lineOverflow==="truncate",b={};function w(Pe,$e,De){Pe.width=$e,Pe.lineHeight=De,y+=De,_=Math.max(_,$e)}e:for(var A=0;A<n.lines.length;A++){for(var C=n.lines[A],E=0,D=0,I=0;I<C.tokens.length;I++){var M=C.tokens[I],P=M.styleName&&e.rich[M.styleName]||{},O=M.textPadding=P.padding,R=O?O[1]+O[3]:0,z=M.font=P.font||e.font;M.contentHeight=Pl(z);var B=Z(P.height,M.contentHeight);if(M.innerHeight=B,O&&(B+=O[0]+O[2]),M.height=B,M.lineHeight=Dt(P.lineHeight,e.lineHeight,B),M.align=P&&P.align||a,M.verticalAlign=P&&P.verticalAlign||"middle",S&&p!=null&&y+M.lineHeight>p){var F=n.lines.length;I>0?(C.tokens=C.tokens.slice(0,I),w(C,D,E),n.lines=n.lines.slice(0,A+1)):n.lines=n.lines.slice(0,A),n.isTruncated=n.isTruncated||n.lines.length<F;break e}var G=P.width,Y=G==null||G==="auto";if(typeof G=="string"&&G.charAt(G.length-1)==="%")M.percentWidth=G,g.push(M),M.contentWidth=Fa(Ba(z),M.text);else{if(Y){var q=P.backgroundColor,re=q&&q.image;re&&(re=wI(re),If(re)&&(M.width=Math.max(M.width,re.width*B/re.height)))}var ie=x&&f!=null?f-D:null;ie!=null&&ie<M.width?!Y||ie<R?(M.text="",M.width=M.contentWidth=0):(EI(b,M.text,ie-R,z,e.ellipsis,{minChar:e.truncateMinChar}),M.text=b.text,n.isTruncated=n.isTruncated||b.isTruncated,M.width=M.contentWidth=Fa(Ba(z),M.text)):M.contentWidth=Fa(Ba(z),M.text)}M.width+=R,D+=M.width,P&&(E=Math.max(E,M.lineHeight))}w(C,D,E)}n.outerWidth=n.width=Z(f,_),n.outerHeight=n.height=Z(p,y),n.contentHeight=y,n.contentWidth=_,n.outerWidth+=l,n.outerHeight+=u;for(var A=0;A<g.length;A++){var M=g[A],ue=M.percentWidth;M.width=parseInt(ue,10)/100*n.width}return n}function xS(r,e,t,i,a){var n=e==="",o=a&&t.rich[a]||{},s=r.lines,l=o.font||t.font,u=!1,f,p;if(i){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var h=Lr(o.width,i.width)+v;s.length>0&&h+i.accumWidth>i.width&&(f=e.split(`
6
+ `),u=!0),i.accumWidth=h}else{var d=PI(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=d.accumWidth+v,p=d.linesWidths,f=d.lines}}f||(f=e.split(`
7
+ `));for(var m=Ba(l),g=0;g<f.length;g++){var y=f[g],_=new z4;if(_.styleName=a,_.text=y,_.isLineHolder=!y&&!n,typeof o.width=="number"?_.width=o.width:_.width=p?p[g]:Fa(m,y),!g&&!u){var x=(s[s.length-1]||(s[0]=new TI)).tokens,S=x.length;S===1&&x[0].isLineHolder?x[0]=_:(y||!S||n)&&x.push(_)}else s.push(new TI([_]))}}function U4(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var B4=tr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function F4(r){return U4(r)?!!B4[r]:!0}function PI(r,e,t,i,a){for(var n=[],o=[],s="",l="",u=0,f=0,p=Ba(e),c=0;c<r.length;c++){var v=r.charAt(c);if(v===`
8
+ `){l&&(s+=l,f+=u),n.push(s),o.push(f),s="",l="",u=0,f=0;continue}var h=Jx(p,v.charCodeAt(0)),d=i?!1:!F4(v);if(n.length?f+h>t:a+f+h>t){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),n.push(s),o.push(f-u),l+=v,u+=h,s="",f=u):(l&&(s+=l,l="",u=0),n.push(s),o.push(f),s=v,f=h)):d?(n.push(l),o.push(u),l=v,u=h):(n.push(v),o.push(h));continue}f+=h,d?(l+=v,u+=h):(l&&(s+=l,l="",u=0),s+=v)}return l&&(s+=l),s&&(n.push(s),o.push(f)),n.length===1&&(f+=a),{accumWidth:f,lines:n,linesWidths:o}}function bS(r,e,t,i,a,n){if(r.baseX=t,r.baseY=i,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;oe.set(CI,ns(t,o,a),vo(i,s,n),o,s),oe.intersect(e,CI,null,AI);var l=AI.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=ns(l.x,l.width,a,!0),r.baseY=vo(l.y,l.height,n,!0)}}var CI=new oe(0,0,0,0),AI={outIntersectRect:{},clamp:!0};function wS(r){return r!=null?r+="":r=""}function RI(r){var e=wS(r.text),t=r.font,i=Fa(Ba(t),e),a=Pl(t);return $d(r,i,a,null)}function $d(r,e,t,i){var a=new oe(ns(r.x||0,e,r.textAlign),vo(r.y||0,t,r.textBaseline),e,t),n=i??(TS(r)?r.lineWidth:0);return n>0&&(a.x-=n/2,a.y-=n/2,a.width+=n,a.height+=n),a}function TS(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var ES="__zr_style_"+Math.round(Math.random()*10),In={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},zl={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};In[ES]=!0;var OI=["z","z2","invisible"],G4=["invisible"],H4=(function(r){Ve(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var i=ye(t),a=0;a<i.length;a++){var n=i[a];n==="style"?this.useStyle(t[n]):r.prototype.attrKV.call(this,n,t[n])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(t){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,i,a,n){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Y4(this,t,i)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(n&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,i){return this.rectContain(t,i)},e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.rectContain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();return n.contain(a[0],a[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,a=this.getBoundingRect(),n=this.style,o=n.shadowBlur||0,s=n.shadowOffsetX||0,l=n.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new oe(0,0,0,0)),i?oe.applyTransform(t,a,i):t.copy(a),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new oe(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,i){t!=="style"?r.prototype.attrKV.call(this,t,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(t,i){return typeof t=="string"?this.style[t]=i:k(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=wl,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&wl)},e.prototype.styleUpdated=function(){this.__dirty&=~wl},e.prototype.createStyle=function(t){return fo(In,t)},e.prototype.useStyle=function(t){t[ES]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},e.prototype._useHoverStyle=function(t){this.__hoverStyle=t},e.prototype.isStyleObject=function(t){return t[ES]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,i,OI)},e.prototype._applyStateObj=function(t,i,a,n,o,s){r.prototype._applyStateObj.call(this,t,i,a,n,o,s);var l=!(i&&n),u=this.__inHover===yf,f;if(i&&i.style?o?n?f=i.style:(f=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),n?this.style:a.style),this._mergeStyle(f,i.style)):l&&(f=a.style),f)if(o){var p=this.style;if(this.style=this.createStyle(l?{}:p),l)for(var c=ye(p),v=0;v<c.length;v++){var h=c[v];h in f&&(f[h]=f[h],this.style[h]=p[h])}for(var d=ye(f),v=0;v<d.length;v++){var h=d[v];this.style[h]=this.style[h]}this._transitionState(t,{style:f},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(f):this.useStyle(f);if(!u)for(var m=this.__inHover?G4:OI,v=0;v<m.length;v++){var h=m[v];i&&i[h]!=null?this[h]=i[h]:l&&a[h]!=null&&(this[h]=a[h])}},e.prototype._mergeStates=function(t){for(var i=r.prototype._mergeStates.call(this,t),a,n=0;n<t.length;n++){var o=t[n];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(i.style=a),i},e.prototype._mergeStyle=function(t,i){return k(t,i),t},e.prototype.getAnimationStyleProps=function(){return zl},e.initDefaultProps=(function(){var t=e.prototype;t.type="displayable",t.invisible=!1,t.z=0,t.z2=0,t.zlevel=0,t.culling=!1,t.cursor="pointer",t.rectHover=!1,t.incremental=0,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=$t|wl})(),e})(Yd),CS=new oe(0,0,0,0),AS=new oe(0,0,0,0);function Y4(r,e,t){return CS.copy(r.getBoundingRect()),r.transform&&CS.applyTransform(r.transform),AS.width=e,AS.height=t,!CS.intersect(AS)}var Ut=H4;var Si=Math.min,bi=Math.max,DS=Math.sin,MS=Math.cos,Vl=Math.PI*2,em=ka(),tm=ka(),rm=ka();function Ul(r,e,t){if(r.length!==0){for(var i=r[0],a=i[0],n=i[0],o=i[1],s=i[1],l=1;l<r.length;l++)i=r[l],a=Si(a,i[0]),n=bi(n,i[0]),o=Si(o,i[1]),s=bi(s,i[1]);e[0]=a,e[1]=o,t[0]=n,t[1]=s}}function IS(r,e,t,i,a,n){a[0]=Si(r,t),a[1]=Si(e,i),n[0]=bi(r,t),n[1]=bi(e,i)}var NI=[],kI=[];function zI(r,e,t,i,a,n,o,s,l,u){var f=_d,p=Rt,c=f(r,t,a,o,NI);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var v=0;v<c;v++){var h=p(r,t,a,o,NI[v]);l[0]=Si(h,l[0]),u[0]=bi(h,u[0])}c=f(e,i,n,s,kI);for(var v=0;v<c;v++){var d=p(e,i,n,s,kI[v]);l[1]=Si(d,l[1]),u[1]=bi(d,u[1])}l[0]=Si(r,l[0]),u[0]=bi(r,u[0]),l[0]=Si(o,l[0]),u[0]=bi(o,u[0]),l[1]=Si(e,l[1]),u[1]=bi(e,u[1]),l[1]=Si(s,l[1]),u[1]=bi(s,u[1])}function VI(r,e,t,i,a,n,o,s){var l=Sd,u=Vt,f=bi(Si(l(r,t,a),1),0),p=bi(Si(l(e,i,n),1),0),c=u(r,t,a,f),v=u(e,i,n,p);o[0]=Si(r,a,c),o[1]=Si(e,n,v),s[0]=bi(r,a,c),s[1]=bi(e,n,v)}function UI(r,e,t,i,a,n,o,s,l){var u=fi,f=pi,p=Math.abs(a-n);if(p%Vl<1e-4&&p>1e-4){s[0]=r-t,s[1]=e-i,l[0]=r+t,l[1]=e+i;return}if(em[0]=MS(a)*t+r,em[1]=DS(a)*i+e,tm[0]=MS(n)*t+r,tm[1]=DS(n)*i+e,u(s,em,tm),f(l,em,tm),a=a%Vl,a<0&&(a=a+Vl),n=n%Vl,n<0&&(n=n+Vl),a>n&&!o?n+=Vl:a<n&&o&&(a+=Vl),o){var c=n;n=a,a=c}for(var v=0;v<n;v+=Math.PI/2)v>a&&(rm[0]=MS(v)*t+r,rm[1]=DS(v)*i+e,u(s,rm,s),f(l,rm,l))}var gt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Bl=[],Fl=[],Ln=[],ps=[],Pn=[],Rn=[],LS=Math.min,PS=Math.max,Gl=Math.cos,Hl=Math.sin,go=Math.abs,NS=Math.PI,cs=NS*2,RS=typeof Float32Array<"u",tv=[];function OS(r){var e=Math.round(r/NS*1e8)/1e8;return e%2*NS}function Yl(r,e){var t=OS(r[0]);t<0&&(t+=cs);var i=t-r[0],a=r[1];a+=i,!e&&a-t>=cs?a=t+cs:e&&t-a>=cs?a=t-cs:!e&&t>a?a=t+(cs-OS(t-a)):e&&t<a&&(a=t-(cs-OS(a-t))),r[0]=t,r[1]=a}var W4=(function(){function r(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(e,t,i){i=i||0,i>0&&(this._ux=go(i/Dl/e)||0,this._uy=go(i/Dl/t)||0)},r.prototype.setDPR=function(e){this.dpr=e},r.prototype.setContext=function(e){this._ctx=e},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(gt.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},r.prototype.lineTo=function(e,t){var i=go(e-this._xi),a=go(t-this._yi),n=i>this._ux||a>this._uy;if(this.addData(gt.L,e,t),this._ctx&&n&&this._ctx.lineTo(e,t),n)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=i*i+a*a;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,i,a,n,o){return this._drawPendingPt(),this.addData(gt.C,e,t,i,a,n,o),this._ctx&&this._ctx.bezierCurveTo(e,t,i,a,n,o),this._xi=n,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,i,a){return this._drawPendingPt(),this.addData(gt.Q,e,t,i,a),this._ctx&&this._ctx.quadraticCurveTo(e,t,i,a),this._xi=i,this._yi=a,this},r.prototype.arc=function(e,t,i,a,n,o){this._drawPendingPt(),tv[0]=a,tv[1]=n,Yl(tv,o),a=tv[0],n=tv[1];var s=n-a;return this.addData(gt.A,e,t,i,i,a,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,i,a,n,o),this._xi=Gl(n)*i+e,this._yi=Hl(n)*i+t,this},r.prototype.arcTo=function(e,t,i,a,n){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,i,a,n),this},r.prototype.rect=function(e,t,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,i,a),this.addData(gt.R,e,t,i,a),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(gt.Z);var e=this._ctx,t=this._x0,i=this._y0;return e&&e.closePath(),this._xi=t,this._yi=i,this},r.prototype.fill=function(e){e&&e.fill(),this.toStatic()},r.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(e){if(this._saveData){var t=e.length;!(this.data&&this.data.length===t)&&RS&&(this.data=new Float32Array(t));for(var i=0;i<t;i++)this.data[i]=e[i];this._len=t}},r.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,i=0,a=this._len,n=0;n<t;n++)i+=e[n].len();var o=this.data;if(RS&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(a+i),a>0&&o))for(var s=0;s<a;s++)this.data[s]=o[s];for(var n=0;n<t;n++)for(var l=e[n].data,s=0;s<l.length;s++)this.data[a++]=l[s];this._len=a}},r.prototype.addData=function(e,t,i,a,n,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var p=0;p<arguments.length;p++)f[this._len++]=arguments[p]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,RS&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){Ln[0]=Ln[1]=Pn[0]=Pn[1]=Number.MAX_VALUE,ps[0]=ps[1]=Rn[0]=Rn[1]=-Number.MAX_VALUE;var e=this.data,t=0,i=0,a=0,n=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],i=e[o+1],a=t,n=i),s){case gt.M:t=a=e[o++],i=n=e[o++],Pn[0]=a,Pn[1]=n,Rn[0]=a,Rn[1]=n;break;case gt.L:IS(t,i,e[o],e[o+1],Pn,Rn),t=e[o++],i=e[o++];break;case gt.C:zI(t,i,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],Pn,Rn),t=e[o++],i=e[o++];break;case gt.Q:VI(t,i,e[o++],e[o++],e[o],e[o+1],Pn,Rn),t=e[o++],i=e[o++];break;case gt.A:var u=e[o++],f=e[o++],p=e[o++],c=e[o++],v=e[o++],h=e[o++]+v;o+=1;var d=!e[o++];l&&(a=Gl(v)*p+u,n=Hl(v)*c+f),UI(u,f,p,c,v,h,d,Pn,Rn),t=Gl(h)*p+u,i=Hl(h)*c+f;break;case gt.R:a=t=e[o++],n=i=e[o++];var m=e[o++],g=e[o++];IS(a,n,a+m,n+g,Pn,Rn);break;case gt.Z:t=a,i=n;break}fi(Ln,Ln,Pn),pi(ps,ps,Rn)}return o===0&&(Ln[0]=Ln[1]=ps[0]=ps[1]=0),new oe(Ln[0],Ln[1],ps[0]-Ln[0],ps[1]-Ln[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,i=this._ux,a=this._uy,n=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,p=0,c=0;c<t;){var v=e[c++],h=c===1;h&&(n=e[c],o=e[c+1],s=n,l=o);var d=-1;switch(v){case gt.M:n=s=e[c++],o=l=e[c++];break;case gt.L:{var m=e[c++],g=e[c++],y=m-n,_=g-o;(go(y)>i||go(_)>a||c===t-1)&&(d=Math.sqrt(y*y+_*_),n=m,o=g);break}case gt.C:{var x=e[c++],S=e[c++],m=e[c++],g=e[c++],b=e[c++],w=e[c++];d=fM(n,o,x,S,m,g,b,w,10),n=b,o=w;break}case gt.Q:{var x=e[c++],S=e[c++],m=e[c++],g=e[c++];d=cM(n,o,x,S,m,g,10),n=m,o=g;break}case gt.A:var A=e[c++],C=e[c++],E=e[c++],D=e[c++],I=e[c++],M=e[c++],P=M+I;c+=1,h&&(s=Gl(I)*E+A,l=Hl(I)*D+C),d=PS(E,D)*LS(cs,Math.abs(M)),n=Gl(P)*E+A,o=Hl(P)*D+C;break;case gt.R:{s=n=e[c++],l=o=e[c++];var O=e[c++],R=e[c++];d=O*2+R*2;break}case gt.Z:{var y=s-n,_=l-o;d=Math.sqrt(y*y+_*_),n=s,o=l;break}}d>=0&&(u[p++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var i=this.data,a=this._ux,n=this._uy,o=this._len,s,l,u,f,p,c,v=t<1,h,d,m=0,g=0,y,_=0,x,S;if(!(v&&(this._pathSegLen||this._calculateLength(),h=this._pathSegLen,d=this._pathLen,y=t*d,!y)))e:for(var b=0;b<o;){var w=i[b++],A=b===1;switch(A&&(u=i[b],f=i[b+1],s=u,l=f),w!==gt.L&&_>0&&(e.lineTo(x,S),_=0),w){case gt.M:s=u=i[b++],l=f=i[b++],e.moveTo(u,f);break;case gt.L:{p=i[b++],c=i[b++];var C=go(p-u),E=go(c-f);if(C>a||E>n){if(v){var D=h[g++];if(m+D>y){var I=(y-m)/D;e.lineTo(u*(1-I)+p*I,f*(1-I)+c*I);break e}m+=D}e.lineTo(p,c),u=p,f=c,_=0}else{var M=C*C+E*E;M>_&&(x=p,S=c,_=M)}break}case gt.C:{var P=i[b++],O=i[b++],R=i[b++],z=i[b++],B=i[b++],F=i[b++];if(v){var D=h[g++];if(m+D>y){var I=(y-m)/D;aa(u,P,R,B,I,Bl),aa(f,O,z,F,I,Fl),e.bezierCurveTo(Bl[1],Fl[1],Bl[2],Fl[2],Bl[3],Fl[3]);break e}m+=D}e.bezierCurveTo(P,O,R,z,B,F),u=B,f=F;break}case gt.Q:{var P=i[b++],O=i[b++],R=i[b++],z=i[b++];if(v){var D=h[g++];if(m+D>y){var I=(y-m)/D;es(u,P,R,I,Bl),es(f,O,z,I,Fl),e.quadraticCurveTo(Bl[1],Fl[1],Bl[2],Fl[2]);break e}m+=D}e.quadraticCurveTo(P,O,R,z),u=R,f=z;break}case gt.A:var G=i[b++],Y=i[b++],q=i[b++],re=i[b++],ie=i[b++],ue=i[b++],Pe=i[b++],$e=!i[b++],De=q>re?q:re,fe=go(q-re)>.001,Oe=ie+ue,pe=!1;if(v){var D=h[g++];m+D>y&&(Oe=ie+ue*(y-m)/D,pe=!0),m+=D}if(fe&&e.ellipse?e.ellipse(G,Y,q,re,Pe,ie,Oe,$e):e.arc(G,Y,De,ie,Oe,$e),pe)break e;A&&(s=Gl(ie)*q+G,l=Hl(ie)*re+Y),u=Gl(Oe)*q+G,f=Hl(Oe)*re+Y;break;case gt.R:s=u=i[b],l=f=i[b+1],p=i[b++],c=i[b++];var Me=i[b++],pt=i[b++];if(v){var D=h[g++];if(m+D>y){var Ze=y-m;e.moveTo(p,c),e.lineTo(p+LS(Ze,Me),c),Ze-=Me,Ze>0&&e.lineTo(p+Me,c+LS(Ze,pt)),Ze-=pt,Ze>0&&e.lineTo(p+PS(Me-Ze,0),c+pt),Ze-=Me,Ze>0&&e.lineTo(p,c+PS(pt-Ze,0));break e}m+=D}e.rect(p,c,Me,pt);break;case gt.Z:if(v){var D=h[g++];if(m+D>y){var I=(y-m)/D;e.lineTo(u*(1-I)+s*I,f*(1-I)+l*I);break e}m+=D}e.closePath(),u=s,f=l}}},r.prototype.clone=function(){var e=new r,t=this.data;return e.data=t.slice?t.slice():Array.prototype.slice.call(t),e._len=this._len,e},r.prototype.canSave=function(){return!!this._saveData},r.CMD=gt,r.initDefaultProps=(function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0})(),r})(),or=W4;function On(r,e,t,i,a,n,o){if(a===0)return!1;var s=a,l=0,u=r;if(o>e+s&&o>i+s||o<e-s&&o<i-s||n>r+s&&n>t+s||n<r-s&&n<t-s)return!1;if(r!==t)l=(e-i)/(r-t),u=(r*i-t*e)/(r-t);else return Math.abs(n-r)<=s/2;var f=l*n-o+u,p=f*f/(l*l+1);return p<=s/2*s/2}function GI(r,e,t,i,a,n,o,s,l,u,f){if(l===0)return!1;var p=l;if(f>e+p&&f>i+p&&f>n+p&&f>s+p||f<e-p&&f<i-p&&f<n-p&&f<s-p||u>r+p&&u>t+p&&u>a+p&&u>o+p||u<r-p&&u<t-p&&u<a-p&&u<o-p)return!1;var c=xd(r,e,t,i,a,n,o,s,u,f,null);return c<=p/2}function im(r,e,t,i,a,n,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>i+u&&l>n+u||l<e-u&&l<i-u&&l<n-u||s>r+u&&s>t+u&&s>a+u||s<r-u&&s<t-u&&s<a-u)return!1;var f=bd(r,e,t,i,a,n,s,l,null);return f<=u/2}var YI=Math.PI*2;function _r(r){return r%=YI,r<0&&(r+=YI),r}var rv=Math.PI*2;function WI(r,e,t,i,a,n,o,s,l){if(o===0)return!1;var u=o;s-=r,l-=e;var f=Math.sqrt(s*s+l*l);if(f-u>t||f+u<t)return!1;if(Math.abs(i-a)%rv<1e-4)return!0;if(n){var p=i;i=_r(a),a=_r(p)}else i=_r(i),a=_r(a);i>a&&(a+=rv);var c=Math.atan2(l,s);return c<0&&(c+=rv),c>=i&&c<=a||c+rv>=i&&c+rv<=a}function fa(r,e,t,i,a,n){if(n>e&&n>i||n<e&&n<i||i===e)return 0;var o=(n-e)/(i-e),s=i<e?1:-1;(o===1||o===0)&&(s=i<e?.5:-.5);var l=o*(t-r)+r;return l===a?1/0:l>a?s:0}var vs=or.CMD,Wl=Math.PI*2,K4=1e-4;function q4(r,e){return Math.abs(r-e)<K4}var Wr=[-1,-1,-1],pa=[-1,-1];function j4(){var r=pa[0];pa[0]=pa[1],pa[1]=r}function J4(r,e,t,i,a,n,o,s,l,u){if(u>e&&u>i&&u>n&&u>s||u<e&&u<i&&u<n&&u<s)return 0;var f=Tl(e,i,n,s,u,Wr);if(f===0)return 0;for(var p=0,c=-1,v=void 0,h=void 0,d=0;d<f;d++){var m=Wr[d],g=m===0||m===1?.5:1,y=Rt(r,t,a,o,m);y<l||(c<0&&(c=_d(e,i,n,s,pa),pa[1]<pa[0]&&c>1&&j4(),v=Rt(e,i,n,s,pa[0]),c>1&&(h=Rt(e,i,n,s,pa[1]))),c===2?m<pa[0]?p+=v<e?g:-g:m<pa[1]?p+=h<v?g:-g:p+=s<h?g:-g:m<pa[0]?p+=v<e?g:-g:p+=s<v?g:-g)}return p}function Q4(r,e,t,i,a,n,o,s){if(s>e&&s>i&&s>n||s<e&&s<i&&s<n)return 0;var l=pM(e,i,n,s,Wr);if(l===0)return 0;var u=Sd(e,i,n);if(u>=0&&u<=1){for(var f=0,p=Vt(e,i,n,u),c=0;c<l;c++){var v=Wr[c]===0||Wr[c]===1?.5:1,h=Vt(r,t,a,Wr[c]);h<o||(Wr[c]<u?f+=p<e?v:-v:f+=n<p?v:-v)}return f}else{var v=Wr[0]===0||Wr[0]===1?.5:1,h=Vt(r,t,a,Wr[0]);return h<o?0:n<e?v:-v}}function $4(r,e,t,i,a,n,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);Wr[0]=-l,Wr[1]=l;var u=Math.abs(i-a);if(u<1e-4)return 0;if(u>=Wl-1e-4){i=0,a=Wl;var f=n?1:-1;return o>=Wr[0]+r&&o<=Wr[1]+r?f:0}if(i>a){var p=i;i=a,a=p}i<0&&(i+=Wl,a+=Wl);for(var c=0,v=0;v<2;v++){var h=Wr[v];if(h+r>o){var d=Math.atan2(s,h),f=n?1:-1;d<0&&(d=Wl+d),(d>=i&&d<=a||d+Wl>=i&&d+Wl<=a)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),c+=f)}}return c}function XI(r,e,t,i,a){for(var n=r.data,o=r.len(),s=0,l=0,u=0,f=0,p=0,c,v,h=0;h<o;){var d=n[h++],m=h===1;switch(d===vs.M&&h>1&&(t||(s+=fa(l,u,f,p,i,a))),m&&(l=n[h],u=n[h+1],f=l,p=u),d){case vs.M:f=n[h++],p=n[h++],l=f,u=p;break;case vs.L:if(t){if(On(l,u,n[h],n[h+1],e,i,a))return!0}else s+=fa(l,u,n[h],n[h+1],i,a)||0;l=n[h++],u=n[h++];break;case vs.C:if(t){if(GI(l,u,n[h++],n[h++],n[h++],n[h++],n[h],n[h+1],e,i,a))return!0}else s+=J4(l,u,n[h++],n[h++],n[h++],n[h++],n[h],n[h+1],i,a)||0;l=n[h++],u=n[h++];break;case vs.Q:if(t){if(im(l,u,n[h++],n[h++],n[h],n[h+1],e,i,a))return!0}else s+=Q4(l,u,n[h++],n[h++],n[h],n[h+1],i,a)||0;l=n[h++],u=n[h++];break;case vs.A:var g=n[h++],y=n[h++],_=n[h++],x=n[h++],S=n[h++],b=n[h++];h+=1;var w=!!(1-n[h++]);c=Math.cos(S)*_+g,v=Math.sin(S)*x+y,m?(f=c,p=v):s+=fa(l,u,c,v,i,a);var A=(i-g)*x/_+g;if(t){if(WI(g,y,x,S,S+b,w,e,A,a))return!0}else s+=$4(g,y,x,S,S+b,w,A,a);l=Math.cos(S+b)*_+g,u=Math.sin(S+b)*x+y;break;case vs.R:f=l=n[h++],p=u=n[h++];var C=n[h++],E=n[h++];if(c=f+C,v=p+E,t){if(On(f,p,c,p,e,i,a)||On(c,p,c,v,e,i,a)||On(c,v,f,v,e,i,a)||On(f,v,f,p,e,i,a))return!0}else s+=fa(c,p,c,v,i,a),s+=fa(f,v,f,p,i,a);break;case vs.Z:if(t){if(On(l,u,f,p,e,i,a))return!0}else s+=fa(l,u,f,p,i,a);l=f,u=p;break}}return!t&&!q4(u,p)&&(s+=fa(l,u,f,p,i,a)||0),s!==0}function ZI(r,e,t){return XI(r,0,!1,e,t)}function KI(r,e,t,i){return XI(r,e,!0,t,i)}var Lf=$({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},In),t6={style:$({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},zl.style)},kS=oa.concat(["invisible","culling","z","z2","zlevel","parent"]),r6=(function(r){Ve(e,r);function e(t){return r.call(this,t)||this}return e.prototype.update=function(){var t=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var a=this._decalEl=this._decalEl||new e;a.buildPath===e.prototype.buildPath&&(a.buildPath=function(l){t.buildPath(l,t.shape)}),a.silent=!0;var n=a.style;for(var o in i)n[o]!==i[o]&&(n[o]=i[o]);n.fill=i.fill?i.decal:null,n.decal=null,n.shadowColor=null,i.strokeFirst&&(n.stroke=null);for(var s=0;s<kS.length;++s)a[kS[s]]=this[kS[s]];a.__dirty|=$t}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var i=ye(t);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var n=0;n<i.length;n++){var o=i[n],s=t[o];o==="style"?this.style?k(this.style,s):this.useStyle(s):o==="shape"?k(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var t=this.style.fill;if(t!=="none"){if(H(t)){var i=Cl(t,0);return i>.5?Yc:i>.2?kM:Wc}else if(t)return Wc}return Yc},e.prototype.getInsideTextStroke=function(t){var i=this.style.fill;if(H(i)){var a=this.__zr,n=!!(a&&a.isDarkMode()),o=Cl(t,0)<Hc;if(n===o)return i}},e.prototype.buildPath=function(t,i,a){},e.prototype.pathUpdated=function(){this.__dirty&=~Jo},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new or(!1)},e.prototype.hasStroke=function(){var t=this.style,i=t.stroke;return!(i==null||i==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,i=this.style,a=!t;if(a){var n=!1;this.path||(n=!0,this.createPathProxy());var o=this.path;(n||this.__dirty&Jo)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),t=o.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||a){s.copy(t);var l=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect(),o=this.style;if(t=a[0],i=a[1],n.contain(t,i)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),KI(s,l/u,t,i)))return!0}if(this.hasFill())return ZI(s,t,i)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Jo,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():t==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(t,i){t==="shape"?this.setShape(i):r.prototype.attrKV.call(this,t,i)},e.prototype.setShape=function(t,i){var a=this.shape;return a||(a=this.shape={}),typeof t=="string"?a[t]=i:k(a,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Jo)},e.prototype.createStyle=function(t){return fo(Lf,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.shape&&!i.shape&&(i.shape=k({},this.shape))},e.prototype._applyStateObj=function(t,i,a,n,o,s){if(r.prototype._applyStateObj.call(this,t,i,a,n,o,s),this.__inHover!==yf){var l=!(i&&n),u;if(i&&i.shape?o?n?u=i.shape:(u=k({},a.shape),k(u,i.shape)):(u=k({},n?this.shape:a.shape),k(u,i.shape)):l&&(u=a.shape),u)if(o){this.shape=k({},this.shape);for(var f={},p=ye(u),c=0;c<p.length;c++){var v=p[c];typeof u[v]=="object"?this.shape[v]=u[v]:f[v]=u[v]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()}},e.prototype._mergeStates=function(t){for(var i=r.prototype._mergeStates.call(this,t),a,n=0;n<t.length;n++){var o=t[n];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(i.shape=a),i},e.prototype.getAnimationStyleProps=function(){return t6},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var i=(function(n){Ve(o,n);function o(s){var l=n.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ee(t.style)},o.prototype.getDefaultShape=function(){return ee(t.shape)},o})(e);for(var a in t)typeof t[a]=="function"&&(i.prototype[a]=t[a]);return i},e.initDefaultProps=(function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=$t|wl|Jo})(),e})(Ut),ce=r6;var i6=$({strokeFirst:!0,font:li,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Lf),qI=(function(r){Ve(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){return TS(this.style)},e.prototype.hasFill=function(){var t=this.style,i=t.fill;return i!=null&&i!=="none"},e.prototype.createStyle=function(t){return fo(i6,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){return this._rect||(this._rect=RI(this.style)),this._rect},e.initDefaultProps=(function(){var t=e.prototype;t.dirtyRectTolerance=10})(),e})(Ut);qI.prototype.type="tspan";var yo=qI;var a6=$({x:0,y:0},In),n6={style:$({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},zl.style)};function o6(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var jI=(function(r){Ve(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return fo(a6,t)},e.prototype._getSize=function(t){var i=this.style,a=i[t];if(a!=null)return a;var n=o6(i.image)?i.image:this.__image;if(!n)return 0;var o=t==="width"?"height":"width",s=i[o];return s==null?n[t]:n[t]/n[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return n6},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new oe(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e})(Ut);jI.prototype.type="image";var lt=jI;function JI(r,e){var t=e.x,i=e.y,a=e.width,n=e.height,o=e.r,s,l,u,f;a<0&&(t=t+a,a=-a),n<0&&(i=i+n,n=-n),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var p;s+l>a&&(p=s+l,s*=a/p,l*=a/p),u+f>a&&(p=u+f,u*=a/p,f*=a/p),l+u>n&&(p=l+u,l*=n/p,u*=n/p),s+f>n&&(p=s+f,s*=n/p,f*=n/p),r.moveTo(t+s,i),r.lineTo(t+a-l,i),l!==0&&r.arc(t+a-l,i+l,l,-Math.PI/2,0),r.lineTo(t+a,i+n-u),u!==0&&r.arc(t+a-u,i+n-u,u,0,Math.PI/2),r.lineTo(t+f,i+n),f!==0&&r.arc(t+f,i+n-f,f,Math.PI/2,Math.PI),r.lineTo(t,i+s),s!==0&&r.arc(t+s,i+s,s,Math.PI,Math.PI*1.5),r.closePath()}var Pf=Math.round;function Xl(r,e,t){if(e){var i=e.x1,a=e.x2,n=e.y1,o=e.y2;r.x1=i,r.x2=a,r.y1=n,r.y2=o;var s=t&&t.lineWidth;return s&&(Pf(i*2)===Pf(a*2)&&(r.x1=r.x2=Xr(i,s,!0)),Pf(n*2)===Pf(o*2)&&(r.y1=r.y2=Xr(n,s,!0))),r}}function am(r,e,t){if(e){var i=e.x,a=e.y,n=e.width,o=e.height;r.x=i,r.y=a,r.width=n,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=Xr(i,s,!0),r.y=Xr(a,s,!0),r.width=Math.max(Xr(i+n,s,!1)-r.x,n===0?0:1),r.height=Math.max(Xr(a+o,s,!1)-r.y,o===0?0:1)),r}}function Xr(r,e,t){if(!e)return r;var i=Pf(r*2);return(i+Pf(e))%2===0?i/2:(i+(t?1:-1))/2}var u6=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})();var f6={},QI=(function(r){Ve(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new u6},e.prototype.buildPath=function(t,i){var a,n,o,s;if(this.subPixelOptimize){var l=am(f6,i,this.style);a=l.x,n=l.y,o=l.width,s=l.height,l.r=i.r,i=l}else a=i.x,n=i.y,o=i.width,s=i.height;i.r?JI(t,i):t.rect(a,n,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e})(ce);QI.prototype.type="rect";var de=QI;var $I={fill:"#000"},eL=2,Nn={},p6={style:$({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},zl.style)},lL=(function(r){Ve(e,r);function e(t){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=$I,i.attr(t),i}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var i=this._children[t];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var i=this.innerTransformable;return i?i.getLocalTransform(t):r.prototype.getLocalTransform.call(this,t)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,h6(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new oe(0,0,0,0),i=this._children,a=[],n=null,o=0;o<i.length;o++){var s=i[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(t.copy(l),t.applyTransform(u),n=n||t.clone(),n.union(t)):(n=n||l.clone(),n.union(l))}this._rect=n||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||$I},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,i){if(!i)return t;var a=i.rich,n=t.rich||a&&{};return k(t,i),a&&n?(this._mergeRich(n,a),t.rich=n):n&&(t.rich=n),t},e.prototype._mergeRich=function(t,i){for(var a=ye(i),n=0;n<a.length;n++){var o=a[n];t[o]=t[o]||{},k(t[o],i[o])}},e.prototype.getAnimationStyleProps=function(){return p6},e.prototype._getOrCreateChild=function(t){var i=this._children[this._childCursor];return(!i||!(i instanceof t))&&(i=new t),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},e.prototype._updatePlainTexts=function(){var t=this.style,i=t.font||li,a=t.padding,n=this._defaultStyle,o=t.x||0,s=t.y||0,l=t.align||n.align||"left",u=t.verticalAlign||n.verticalAlign||"top";bS(Nn,n.overflowRect,o,s,l,u),o=Nn.baseX,s=Nn.baseY;var f=sL(t),p=II(f,t,Nn.outerWidth,Nn.outerHeight),c=zS(t),v=!!t.backgroundColor,h=p.outerHeight,d=p.outerWidth,m=p.lines,g=p.lineHeight;this.isTruncated=!!p.isTruncated;var y=o,_=vo(s,p.contentHeight,u);if(c||a){var x=ns(o,d,l),S=vo(s,h,u);c&&this._renderBackground(t,t,x,S,d,h)}_+=g/2,a&&(y=oL(o,l,a),u==="top"?_+=a[0]:u==="bottom"&&(_-=a[2]));for(var b=0,w=!1,A=!1,C=nL("fill"in t?t.fill:(A=!0,n.fill)),E=aL("stroke"in t?t.stroke:!v&&(!n.autoStroke||A)?(b=eL,w=!0,n.stroke):null),D=t.textShadowBlur>0,I=0;I<m.length;I++){var M=this._getOrCreateChild(yo),P=M.createStyle();M.useStyle(P),P.text=m[I],P.x=y,P.y=_,l&&(P.textAlign=l),P.textBaseline="middle",P.opacity=t.opacity,P.strokeFirst=!0,D&&(P.shadowBlur=t.textShadowBlur||0,P.shadowColor=t.textShadowColor||"transparent",P.shadowOffsetX=t.textShadowOffsetX||0,P.shadowOffsetY=t.textShadowOffsetY||0),P.stroke=E,P.fill=C,E&&(P.lineWidth=t.lineWidth||b,P.lineDash=t.lineDash,P.lineDashOffset=t.lineDashOffset||0),P.font=i,rL(P,t),_+=g,M.setBoundingRect($d(P,p.contentWidth,p.calculatedLineHeight,w?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,i=this._defaultStyle,a=t.align||i.align,n=t.verticalAlign||i.verticalAlign,o=t.x||0,s=t.y||0;bS(Nn,i.overflowRect,o,s,a,n),o=Nn.baseX,s=Nn.baseY;var l=sL(t),u=LI(l,t,Nn.outerWidth,Nn.outerHeight,a),f=u.width,p=u.outerWidth,c=u.outerHeight,v=t.padding;this.isTruncated=!!u.isTruncated;var h=ns(o,p,a),d=vo(s,c,n),m=h,g=d;v&&(m+=v[3],g+=v[0]);var y=m+f;zS(t)&&this._renderBackground(t,t,h,d,p,c);for(var _=!!t.backgroundColor,x=0;x<u.lines.length;x++){for(var S=u.lines[x],b=S.tokens,w=b.length,A=S.lineHeight,C=S.width,E=0,D=m,I=y,M=w-1,P=void 0;E<w&&(P=b[E],!P.align||P.align==="left");)this._placeToken(P,t,A,g,D,"left",_),C-=P.width,D+=P.width,E++;for(;M>=0&&(P=b[M],P.align==="right");)this._placeToken(P,t,A,g,I,"right",_),C-=P.width,I-=P.width,M--;for(D+=(f-(D-m)-(y-I)-C)/2;E<=M;)P=b[E],this._placeToken(P,t,A,g,D+P.width/2,"center",_),D+=P.width,E++;g+=A}},e.prototype._placeToken=function(t,i,a,n,o,s,l){var u=i.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,p=n+a/2;f==="top"?p=n+t.height/2:f==="bottom"&&(p=n+a-t.height/2);var c=!t.isLineHolder&&zS(u);c&&this._renderBackground(u,i,s==="right"?o-t.width:s==="center"?o-t.width/2:o,p-t.height/2,t.width,t.height);var v=!!u.backgroundColor,h=t.textPadding;h&&(o=oL(o,s,h),p-=t.height/2-h[0]-t.innerHeight/2);var d=this._getOrCreateChild(yo),m=d.createStyle();d.useStyle(m);var g=this._defaultStyle,y=!1,_=0,x=!1,S=nL("fill"in u?u.fill:"fill"in i?i.fill:(y=!0,g.fill)),b=aL("stroke"in u?u.stroke:"stroke"in i?i.stroke:!v&&!l&&(!g.autoStroke||y)?(_=eL,x=!0,g.stroke):null),w=u.textShadowBlur>0||i.textShadowBlur>0;m.text=t.text,m.x=o,m.y=p,w&&(m.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,m.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=t.font||li,m.opacity=Dt(u.opacity,i.opacity,1),rL(m,u),b&&(m.lineWidth=Dt(u.lineWidth,i.lineWidth,_),m.lineDash=Z(u.lineDash,i.lineDash),m.lineDashOffset=i.lineDashOffset||0,m.stroke=b),S&&(m.fill=S),d.setBoundingRect($d(m,t.contentWidth,t.contentHeight,x?0:null))},e.prototype._renderBackground=function(t,i,a,n,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,p=l&&l.image,c=l&&!p,v=t.borderRadius,h=this,d,m;if(c||t.lineHeight||u&&f){d=this._getOrCreateChild(de),d.useStyle(d.createStyle()),d.style.fill=null;var g=d.shape;g.x=a,g.y=n,g.width=o,g.height=s,g.r=v,d.dirtyShape()}if(c){var y=d.style;y.fill=l||null,y.fillOpacity=Z(t.fillOpacity,1)}else if(p){m=this._getOrCreateChild(lt),m.onload=function(){h.dirtyStyle()};var _=m.style;_.image=l.image,_.x=a,_.y=n,_.width=o,_.height=s}if(u&&f){var y=d.style;y.lineWidth=u,y.stroke=f,y.strokeOpacity=Z(t.strokeOpacity,1),y.lineDash=t.borderDash,y.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(y.strokeFirst=!0,y.lineWidth*=2)}var x=(d||m).style;x.shadowBlur=t.shadowBlur||0,x.shadowColor=t.shadowColor||"transparent",x.shadowOffsetX=t.shadowOffsetX||0,x.shadowOffsetY=t.shadowOffsetY||0,x.opacity=Dt(t.opacity,i.opacity,1)},e.makeFont=function(t){var i="";return US(t)&&(i=[t.fontStyle,t.fontWeight,VS(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),i&&Gt(i)||t.textFont||t.font},e})(Ut),c6={left:!0,right:1,center:1},v6={top:1,bottom:1,middle:1},tL=["fontStyle","fontWeight","fontSize","fontFamily"];function VS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?nd+"px":r+"px"}function rL(r,e){for(var t=0;t<tL.length;t++){var i=tL[t],a=e[i];a!=null&&(r[i]=a)}}function US(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function h6(r){return iL(r),T(r.rich,iL),r}function iL(r){if(r){r.font=lL.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||c6[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||v6[t]?t:"top";var i=r.padding;i&&(r.padding=uo(r.padding))}}function aL(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function nL(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function oL(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function sL(r){var e=r.text;return e!=null&&(e+=""),e}function zS(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var be=lL;var se=ne(),iv=function(r,e,t,i){if(i){var a=se(i);a.dataIndex=t,a.dataType=e,a.seriesIndex=r,a.ssrType="chart",i.type==="group"&&i.traverse(function(n){var o=se(n);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}};var hs="undefined",xr="series",nm=W(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),sr="original",Ot="arrayRows",pr="objectRows",wi="keyedColumns",Gi="typedArray",BS="unknown",Zr="column",kn="row",FS="Roam";var d6=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],m6=(function(){function r(e){T(d6,function(t){this[t]=X(e[t],e)},this)}return r})();function om(r,e){return e.mainType===xr?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e)}var sm=m6;var uL=1,fL={},dL=ne(),YS=ne(),WS=0,Zl=1,av=2,ir=["emphasis","blur","select"],ds=["normal","emphasis","blur","select"],_o=10,g6=9,ms="highlight",nv="downplay",ov="select",um="unselect",sv="toggleSelect",fm="selectchanged";function Rf(r){return r!=null&&r!=="none"}function pm(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function mL(r){pm(r,"emphasis",av)}function gL(r){r.hoverState===av&&pm(r,"normal",WS)}function XS(r){pm(r,"blur",Zl)}function yL(r){r.hoverState===Zl&&pm(r,"normal",WS)}function y6(r){r.selected=!0}function _6(r){r.selected=!1}function pL(r,e,t){e(r,t)}function xo(r,e,t){pL(r,e,t),r.isGroup&&r.traverse(function(i){pL(i,e,t)})}function Kl(r,e){switch(e){case"emphasis":r.hoverState=av;break;case"normal":r.hoverState=WS;break;case"blur":r.hoverState=Zl;break;case"select":r.selected=!0}}function x6(r,e,t,i){for(var a=r.style,n={},o=0;o<e.length;o++){var s=e[o],l=a[s];n[s]=l??(i&&i[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(t)<0&&u.targetName==="style"&&u.saveTo(n,e)}return n}function S6(r,e,t,i){var a=t&&le(t,"select")>=0,n=!1;if(r instanceof ce){var o=dL(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Rf(s)||Rf(l)){i=i||{};var u=i.style||{};u.fill==="inherit"?(n=!0,i=k({},i),u=k({},u),u.fill=s):!Rf(u.fill)&&Rf(s)?(n=!0,i=k({},i),u=k({},u),u.fill=hf(s)):!Rf(u.stroke)&&Rf(l)&&(n||(i=k({},i),u=k({},u)),u.stroke=hf(l)),i.style=u}}if(i&&i.z2==null){n||(i=k({},i));var f=r.z2EmphasisLift;i.z2=r.z2+(f??_o)}return i}function b6(r,e,t){if(t&&t.z2==null){t=k({},t);var i=r.z2SelectLift;t.z2=r.z2+(i??g6)}return t}function w6(r,e,t){var i=le(r.currentStates,e)>=0,a=r.style.opacity,n=i?null:x6(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=k({},t),o=k({opacity:i?a:n.opacity*.1},o),t.style=o),t}function GS(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return S6(this,r,e,t);if(r==="blur")return w6(this,r,t);if(r==="select")return b6(this,r,t)}return t}function Xa(r){r.stateProxy=GS;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=GS),t&&(t.stateProxy=GS)}function cL(r,e){!_L(r,e)&&!r.__highByOuter&&xo(r,mL)}function vL(r,e){!_L(r,e)&&!r.__highByOuter&&xo(r,gL)}function Pr(r,e){r.__highByOuter|=1<<(e||0),xo(r,mL)}function Rr(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&xo(r,gL)}function cm(r){xo(r,XS)}function lv(r){xo(r,yL)}function ZS(r){xo(r,y6)}function KS(r){xo(r,_6)}function _L(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function qS(r){var e=r.getModel(),t=[],i=[];e.eachComponent(function(a,n){var o=YS(n),s=om(r,n),l=a==="series";!l&&i.push(s),o.isBlured&&(s.group.traverse(function(u){yL(u)}),l&&t.push(n)),o.isBlured=!1}),T(i,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(t,!1,e)})}function HS(r,e,t,i){var a=i.getModel();t=t||"coordinateSystem";function n(u,f){for(var p=0;p<f.length;p++){var c=u.getItemGraphicEl(f[p]);c&&lv(c)}}if(r!=null&&!(!e||e==="none")){var o=a.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var f=o===u,p=u.coordinateSystem;p&&p.master&&(p=p.master);var c=p&&s?p===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!c||e==="series"&&f)){var v=i.getViewOfSeriesModel(u);if(v.group.traverse(function(m){m.__highByOuter&&f&&e==="self"||XS(m)}),It(e))n(u.getData(),e);else if(te(e))for(var h=ye(e),d=0;d<h.length;d++)n(u.getData(h[d]),e[h[d]]);l.push(u),YS(u).isBlured=!0}}),a.eachComponent(function(u,f){if(u!=="series"){var p=i.getViewOfComponentModel(f);p&&p.toggleBlurSeries&&p.toggleBlurSeries(l,!0,a)}})}}function lm(r,e,t){if(!(r==null||e==null)){var i=t.getModel().getComponent(r,e);if(i){YS(i).isBlured=!0;var a=t.getViewOfComponentModel(i);!a||!a.focusBlurEnabled||a.group.traverse(function(n){XS(n)})}}}function xL(r,e,t){var i=r.seriesIndex,a=r.getData(e.dataType);if(a){var n=la(a,e);n=(V(n)?n[0]:n)||0;var o=a.getItemGraphicEl(n);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=se(o);HS(i,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),p=r.get(["emphasis","blurScope"]);f!=null&&HS(i,f,p,t)}}}function vm(r,e,t,i){var a={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return a;var n=i.getModel().getComponent(r,e);if(!n)return a;var o=i.getViewOfComponentModel(n);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(se(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function SL(r,e,t){var i=se(r),a=vm(i.componentMainType,i.componentIndex,i.componentHighDownName,t),n=a.dispatchers,o=a.focusSelf;n?(o&&lm(i.componentMainType,i.componentIndex,t),T(n,function(s){return cL(s,e)})):(HS(i.seriesIndex,i.focus,i.blurScope,t),i.focus==="self"&&lm(i.componentMainType,i.componentIndex,t),cL(r,e))}function bL(r,e,t){qS(t);var i=se(r),a=vm(i.componentMainType,i.componentIndex,i.componentHighDownName,t).dispatchers;a?T(a,function(n){return vL(n,e)}):vL(r,e)}function wL(r,e,t){if(dm(e)){var i=e.dataType,a=r.getData(i),n=la(a,e);V(n)||(n=[n]),r[e.type===sv?"toggleSelect":e.type===ov?"select":"unselect"](n,i)}}function jS(r){var e=r.getAllData();T(e,function(t){var i=t.data,a=t.type;i.eachItemGraphicEl(function(n,o){r.isSelected(o,a)?ZS(n):KS(n)})})}function TL(r){var e=[];return r.eachSeries(function(t){var i=t.getAllData();T(i,function(a){var n=a.data,o=a.type,s=t.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:t.seriesIndex};o!=null&&(l.dataType=o),e.push(l)}})}),e}function ca(r,e,t){So(r,!0),xo(r,Xa),hm(r,e,t)}function T6(r){So(r,!1)}function Be(r,e,t,i){i?T6(r):ca(r,e,t)}function hm(r,e,t){var i=se(r);e!=null?(i.focus=e,i.blurScope=t):i.focus&&(i.focus=null)}var hL=["emphasis","blur","select"],C6={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function st(r,e,t,i){t=t||"itemStyle";for(var a=0;a<hL.length;a++){var n=hL[a],o=e.getModel([n,t]),s=r.ensureState(n);s.style=i?i(o):o[C6[t]]()}}function So(r,e){var t=e===!1,i=r;r.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!t)}function gs(r){return!!(r&&r.__highDownDispatcher)}function CL(r,e,t){var i=se(r);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=t}function AL(r){var e=fL[r];return e==null&&uL<=32&&(e=fL[r]=uL++),e}function dm(r){var e=r.type;return e===ov||e===um||e===sv}function JS(r){var e=r.type;return e===ms||e===nv}function EL(r){var e=dL(r);e.normalFill=r.style.fill,e.normalStroke=r.style.stroke;var t=r.states.select||{};e.selectFill=t.style&&t.style.fill||null,e.selectStroke=t.style&&t.style.stroke||null}var Te={};ea(Te,{Arc:()=>Jl,BezierCurve:()=>wo,BoundingRect:()=>oe,Circle:()=>Sr,CompoundPath:()=>Vn,Ellipse:()=>ql,Group:()=>Q,HOVER_LAYER_FOR_INCREMENTAL:()=>Ka,HOVER_LAYER_FROM_THRESHOLD:()=>ub,HOVER_LAYER_NO:()=>lb,Image:()=>lt,IncrementalDisplayable:()=>Em,Line:()=>ut,LinearGradient:()=>Ci,OrientedBoundingRect:()=>Am,Path:()=>ce,Point:()=>he,Polygon:()=>yt,Polyline:()=>vt,RadialGradient:()=>zf,Rect:()=>de,Ring:()=>bo,Sector:()=>Tt,Text:()=>be,WH:()=>_t,XY:()=>we,applyTransform:()=>br,calcZ2Range:()=>vb,clipPointsByRect:()=>dv,clipRectByRect:()=>cb,createIcon:()=>ja,decomposeTransform:()=>gv,ensureCopyRect:()=>Bf,ensureCopyTransform:()=>Lm,expandOrShrinkRect:()=>ha,extendPath:()=>pb,extendShape:()=>fb,getCurrentCanvasPainter:()=>Pm,getShapeClass:()=>ys,getTransform:()=>qa,groupTransition:()=>Eo,initProps:()=>Ge,isBoundingRectAxisAligned:()=>Im,isElementRemoved:()=>To,lineLineIntersect:()=>oP,linePolygonIntersect:()=>Uf,makeImage:()=>vv,makePath:()=>Co,mergePath:()=>vr,payloadDisableAnimation:()=>mv,registerShape:()=>Hi,removeElement:()=>va,removeElementWithFadeOut:()=>Ai,resizePath:()=>Mm,retrieveZInfo:()=>da,setTooltipConfig:()=>Nr,subPixelOptimize:()=>hv,subPixelOptimizeLine:()=>Ao,subPixelOptimizeRect:()=>t8,transformDirection:()=>eu,traverseElements:()=>Kr,traverseUpdateZ:()=>tu,updateProps:()=>Ae});var Of=or.CMD,A6=[[],[],[]],DL=Math.sqrt,E6=Math.atan2;function mm(r,e){if(e){var t=r.data,i=r.len(),a,n,o,s,l,u,f=Of.M,p=Of.C,c=Of.L,v=Of.R,h=Of.A,d=Of.Q;for(o=0,s=0;o<i;){switch(a=t[o++],s=o,n=0,a){case f:n=1;break;case c:n=1;break;case p:n=3;break;case d:n=2;break;case h:var m=e[4],g=e[5],y=DL(e[0]*e[0]+e[1]*e[1]),_=DL(e[2]*e[2]+e[3]*e[3]),x=E6(-e[1]/_,e[0]/y);t[o]*=y,t[o++]+=m,t[o]*=_,t[o++]+=g,t[o++]*=y,t[o++]*=_,t[o++]+=x,t[o++]+=x,o+=2,s=o;break;case v:u[0]=t[o++],u[1]=t[o++],ot(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],ot(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<n;l++){var S=A6[l];S[0]=t[o++],S[1]=t[o++],ot(S,S,e),t[s++]=S[0],t[s++]=S[1]}}r.increaseVersion()}}var QS=Math.sqrt,gm=Math.sin,ym=Math.cos,uv=Math.PI;function ML(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function $S(r,e){return(r[0]*e[0]+r[1]*e[1])/(ML(r)*ML(e))}function IL(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos($S(r,e))}function LL(r,e,t,i,a,n,o,s,l,u,f){var p=l*(uv/180),c=ym(p)*(r-t)/2+gm(p)*(e-i)/2,v=-1*gm(p)*(r-t)/2+ym(p)*(e-i)/2,h=c*c/(o*o)+v*v/(s*s);h>1&&(o*=QS(h),s*=QS(h));var d=(a===n?-1:1)*QS((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,m=d*o*v/s,g=d*-s*c/o,y=(r+t)/2+ym(p)*m-gm(p)*g,_=(e+i)/2+gm(p)*m+ym(p)*g,x=IL([1,0],[(c-m)/o,(v-g)/s]),S=[(c-m)/o,(v-g)/s],b=[(-1*c-m)/o,(-1*v-g)/s],w=IL(S,b);if($S(S,b)<=-1&&(w=uv),$S(S,b)>=1&&(w=0),w<0){var A=Math.round(w/uv*1e6)/1e6;w=uv*2+A%2*uv}f.addData(u,y,_,o,s,x,w,p,n)}var D6=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,M6=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function I6(r){var e=new or;if(!r)return e;var t=0,i=0,a=t,n=i,o,s=or.CMD,l=r.match(D6);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],p=f.charAt(0),c=void 0,v=f.match(M6)||[],h=v.length,d=0;d<h;d++)v[d]=parseFloat(v[d]);for(var m=0;m<h;){var g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,w=void 0,A=t,C=i,E=void 0,D=void 0;switch(p){case"l":t+=v[m++],i+=v[m++],c=s.L,e.addData(c,t,i);break;case"L":t=v[m++],i=v[m++],c=s.L,e.addData(c,t,i);break;case"m":t+=v[m++],i+=v[m++],c=s.M,e.addData(c,t,i),a=t,n=i,p="l";break;case"M":t=v[m++],i=v[m++],c=s.M,e.addData(c,t,i),a=t,n=i,p="L";break;case"h":t+=v[m++],c=s.L,e.addData(c,t,i);break;case"H":t=v[m++],c=s.L,e.addData(c,t,i);break;case"v":i+=v[m++],c=s.L,e.addData(c,t,i);break;case"V":i=v[m++],c=s.L,e.addData(c,t,i);break;case"C":c=s.C,e.addData(c,v[m++],v[m++],v[m++],v[m++],v[m++],v[m++]),t=v[m-2],i=v[m-1];break;case"c":c=s.C,e.addData(c,v[m++]+t,v[m++]+i,v[m++]+t,v[m++]+i,v[m++]+t,v[m++]+i),t+=v[m-2],i+=v[m-1];break;case"S":g=t,y=i,E=e.len(),D=e.data,o===s.C&&(g+=t-D[E-4],y+=i-D[E-3]),c=s.C,A=v[m++],C=v[m++],t=v[m++],i=v[m++],e.addData(c,g,y,A,C,t,i);break;case"s":g=t,y=i,E=e.len(),D=e.data,o===s.C&&(g+=t-D[E-4],y+=i-D[E-3]),c=s.C,A=t+v[m++],C=i+v[m++],t+=v[m++],i+=v[m++],e.addData(c,g,y,A,C,t,i);break;case"Q":A=v[m++],C=v[m++],t=v[m++],i=v[m++],c=s.Q,e.addData(c,A,C,t,i);break;case"q":A=v[m++]+t,C=v[m++]+i,t+=v[m++],i+=v[m++],c=s.Q,e.addData(c,A,C,t,i);break;case"T":g=t,y=i,E=e.len(),D=e.data,o===s.Q&&(g+=t-D[E-4],y+=i-D[E-3]),t=v[m++],i=v[m++],c=s.Q,e.addData(c,g,y,t,i);break;case"t":g=t,y=i,E=e.len(),D=e.data,o===s.Q&&(g+=t-D[E-4],y+=i-D[E-3]),t+=v[m++],i+=v[m++],c=s.Q,e.addData(c,g,y,t,i);break;case"A":_=v[m++],x=v[m++],S=v[m++],b=v[m++],w=v[m++],A=t,C=i,t=v[m++],i=v[m++],c=s.A,LL(A,C,t,i,b,w,_,x,S,c,e);break;case"a":_=v[m++],x=v[m++],S=v[m++],b=v[m++],w=v[m++],A=t,C=i,t+=v[m++],i+=v[m++],c=s.A,LL(A,C,t,i,b,w,_,x,S,c,e);break}}(p==="z"||p==="Z")&&(c=s.Z,e.addData(c),t=a,i=n),o=c}return e.toStatic(),e}var PL=(function(r){Ve(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e})(ce);function RL(r){return r.setData!=null}function OL(r,e){var t=I6(r),i=k({},e);return i.buildPath=function(a){var n=RL(a);if(n&&a.canSave()){a.appendPath(t);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=n?a.getContext():a;o&&t.rebuildPath(o,1)}},i.applyTransform=function(a){mm(t,a),this.dirtyShape()},i}function _m(r,e){return new PL(OL(r,e))}function NL(r,e){var t=OL(r,e),i=(function(a){Ve(n,a);function n(o){var s=a.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return n})(PL);return i}function kL(r,e){for(var t=[],i=r.length,a=0;a<i;a++){var n=r[a];t.push(n.getUpdatedPathProxy(!0))}var o=new ce(e);return o.createPathProxy(),o.buildPath=function(s){if(RL(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Nf(r,e){e=e||{};var t=new ce;return r.shape&&t.setShape(r.shape),t.setStyle(r.style),e.bakeTransform?mm(t.path,r.getComputedTransform()):e.toLocal?t.setLocalTransform(r.getComputedTransform()):t.copyTransform(r),t.buildPath=r.buildPath,t.applyTransform=t.applyTransform,t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t}var P6=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})();var zL=(function(r){Ve(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new P6},e.prototype.buildPath=function(t,i){t.moveTo(i.cx+i.r,i.cy),t.arc(i.cx,i.cy,i.r,0,Math.PI*2)},e})(ce);zL.prototype.type="circle";var Sr=zL;var R6=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})();var VL=(function(r){Ve(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new R6},e.prototype.buildPath=function(t,i){var a=.5522848,n=i.cx,o=i.cy,s=i.rx,l=i.ry,u=s*a,f=l*a;t.moveTo(n-s,o),t.bezierCurveTo(n-s,o-f,n-u,o-l,n,o-l),t.bezierCurveTo(n+u,o-l,n+s,o-f,n+s,o),t.bezierCurveTo(n+s,o+f,n+u,o+l,n,o+l),t.bezierCurveTo(n-u,o+l,n-s,o+f,n-s,o),t.closePath()},e})(ce);VL.prototype.type="ellipse";var ql=VL;var BL=Math.PI,eb=BL*2,jl=Math.sin,kf=Math.cos,O6=Math.acos,Or=Math.atan2,UL=Math.abs,pv=Math.sqrt,fv=Math.max,zn=Math.min,Za=1e-4;function N6(r,e,t,i,a,n,o,s){var l=t-r,u=i-e,f=o-a,p=s-n,c=p*l-f*u;if(!(c*c<Za))return c=(f*(e-n)-p*(r-a))/c,[r+c*l,e+c*u]}function xm(r,e,t,i,a,n,o){var s=r-t,l=e-i,u=(o?n:-n)/pv(s*s+l*l),f=u*l,p=-u*s,c=r+f,v=e+p,h=t+f,d=i+p,m=(c+h)/2,g=(v+d)/2,y=h-c,_=d-v,x=y*y+_*_,S=a-n,b=c*d-h*v,w=(_<0?-1:1)*pv(fv(0,S*S*x-b*b)),A=(b*_-y*w)/x,C=(-b*y-_*w)/x,E=(b*_+y*w)/x,D=(-b*y+_*w)/x,I=A-m,M=C-g,P=E-m,O=D-g;return I*I+M*M>P*P+O*O&&(A=E,C=D),{cx:A,cy:C,x0:-f,y0:-p,x1:A*(a/S-1),y1:C*(a/S-1)}}function k6(r){var e;if(V(r)){var t=r.length;if(!t)return r;t===1?e=[r[0],r[0],0,0]:t===2?e=[r[0],r[0],r[1],r[1]]:t===3?e=r.concat(r[2]):e=r}else e=[r,r,r,r];return e}function FL(r,e){var t,i=fv(e.r,0),a=fv(e.r0||0,0),n=i>0,o=a>0;if(!(!n&&!o)){if(n||(i=a,a=0),a>i){var s=i;i=a,a=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,p=e.cy,c=!!e.clockwise,v=UL(u-l),h=v>eb&&v%eb;if(h>Za&&(v=h),!(i>Za))r.moveTo(f,p);else if(v>eb-Za)r.moveTo(f+i*kf(l),p+i*jl(l)),r.arc(f,p,i,l,u,!c),a>Za&&(r.moveTo(f+a*kf(u),p+a*jl(u)),r.arc(f,p,a,u,l,c));else{var d=void 0,m=void 0,g=void 0,y=void 0,_=void 0,x=void 0,S=void 0,b=void 0,w=void 0,A=void 0,C=void 0,E=void 0,D=void 0,I=void 0,M=void 0,P=void 0,O=i*kf(l),R=i*jl(l),z=a*kf(u),B=a*jl(u),F=v>Za;if(F){var G=e.cornerRadius;G&&(t=k6(G),d=t[0],m=t[1],g=t[2],y=t[3]);var Y=UL(i-a)/2;if(_=zn(Y,g),x=zn(Y,y),S=zn(Y,d),b=zn(Y,m),C=w=fv(_,x),E=A=fv(S,b),(w>Za||A>Za)&&(D=i*kf(u),I=i*jl(u),M=a*kf(l),P=a*jl(l),v<BL)){var q=N6(O,R,M,P,D,I,z,B);if(q){var re=O-q[0],ie=R-q[1],ue=D-q[0],Pe=I-q[1],$e=1/jl(O6((re*ue+ie*Pe)/(pv(re*re+ie*ie)*pv(ue*ue+Pe*Pe)))/2),De=pv(q[0]*q[0]+q[1]*q[1]);C=zn(w,(i-De)/($e+1)),E=zn(A,(a-De)/($e-1))}}}if(!F)r.moveTo(f+O,p+R);else if(C>Za){var fe=zn(g,C),Oe=zn(y,C),pe=xm(M,P,O,R,i,fe,c),Me=xm(D,I,z,B,i,Oe,c);r.moveTo(f+pe.cx+pe.x0,p+pe.cy+pe.y0),C<w&&fe===Oe?r.arc(f+pe.cx,p+pe.cy,C,Or(pe.y0,pe.x0),Or(Me.y0,Me.x0),!c):(fe>0&&r.arc(f+pe.cx,p+pe.cy,fe,Or(pe.y0,pe.x0),Or(pe.y1,pe.x1),!c),r.arc(f,p,i,Or(pe.cy+pe.y1,pe.cx+pe.x1),Or(Me.cy+Me.y1,Me.cx+Me.x1),!c),Oe>0&&r.arc(f+Me.cx,p+Me.cy,Oe,Or(Me.y1,Me.x1),Or(Me.y0,Me.x0),!c))}else r.moveTo(f+O,p+R),r.arc(f,p,i,l,u,!c);if(!(a>Za)||!F)r.lineTo(f+z,p+B);else if(E>Za){var fe=zn(d,E),Oe=zn(m,E),pe=xm(z,B,D,I,a,-Oe,c),Me=xm(O,R,M,P,a,-fe,c);r.lineTo(f+pe.cx+pe.x0,p+pe.cy+pe.y0),E<A&&fe===Oe?r.arc(f+pe.cx,p+pe.cy,E,Or(pe.y0,pe.x0),Or(Me.y0,Me.x0),!c):(Oe>0&&r.arc(f+pe.cx,p+pe.cy,Oe,Or(pe.y0,pe.x0),Or(pe.y1,pe.x1),!c),r.arc(f,p,a,Or(pe.cy+pe.y1,pe.cx+pe.x1),Or(Me.cy+Me.y1,Me.cx+Me.x1),c),fe>0&&r.arc(f+Me.cx,p+Me.cy,fe,Or(Me.y1,Me.x1),Or(Me.y0,Me.x0),!c))}else r.lineTo(f+z,p+B),r.arc(f,p,a,u,l,c)}r.closePath()}}}var V6=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return r})();var GL=(function(r){Ve(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new V6},e.prototype.buildPath=function(t,i){FL(t,i)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e})(ce);GL.prototype.type="sector";var Tt=GL;var U6=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})();var HL=(function(r){Ve(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new U6},e.prototype.buildPath=function(t,i){var a=i.cx,n=i.cy,o=Math.PI*2;t.moveTo(a+i.r,n),t.arc(a,n,i.r,0,o,!1),t.moveTo(a+i.r0,n),t.arc(a,n,i.r0,0,o,!0)},e})(ce);HL.prototype.type="ring";var bo=HL;function tb(r,e,t,i){var a=[],n=[],o=[],s=[],l,u,f,p;if(i){f=[1/0,1/0],p=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)fi(f,f,r[c]),pi(p,p,r[c]);fi(f,f,i[0]),pi(p,p,i[1])}for(var c=0,v=r.length;c<v;c++){var h=r[c];if(t)l=r[c?c-1:v-1],u=r[(c+1)%v];else if(c===0||c===v-1){a.push(Gr(r[c]));continue}else l=r[c-1],u=r[c+1];ta(n,u,l),vl(n,n,e);var d=Ac(h,l),m=Ac(h,u),g=d+m;g!==0&&(d/=g,m/=g),vl(o,n,-d),vl(s,n,m);var y=ld([],h,o),_=ld([],h,s);i&&(pi(y,y,f),fi(y,y,p),pi(_,_,f),fi(_,_,p)),a.push(y),a.push(_)}return t&&a.push(a.shift()),a}function Sm(r,e,t){var i=e.smooth,a=e.points;if(a&&a.length>=2){if(i){var n=tb(a,i,t,e.smoothConstraint);r.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(t?o:o-1);s++){var l=n[s*2],u=n[s*2+1],f=a[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(a[0][0],a[0][1]);for(var s=1,p=a.length;s<p;s++)r.lineTo(a[s][0],a[s][1])}t&&r.closePath()}}var B6=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})();var WL=(function(r){Ve(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new B6},e.prototype.buildPath=function(t,i){Sm(t,i,!0)},e})(ce);WL.prototype.type="polygon";var yt=WL;var F6=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})();var XL=(function(r){Ve(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new F6},e.prototype.buildPath=function(t,i){Sm(t,i,!1)},e})(ce);XL.prototype.type="polyline";var vt=XL;var G6={},H6=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();var ZL=(function(r){Ve(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new H6},e.prototype.buildPath=function(t,i){var a,n,o,s;if(this.subPixelOptimize){var l=Xl(G6,i,this.style);a=l.x1,n=l.y1,o=l.x2,s=l.y2}else a=i.x1,n=i.y1,o=i.x2,s=i.y2;var u=i.percent;u!==0&&(t.moveTo(a,n),u<1&&(o=a*(1-u)+o*u,s=n*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var i=this.shape;return[i.x1*(1-t)+i.x2*t,i.y1*(1-t)+i.y2*t]},e})(ce);ZL.prototype.type="line";var ut=ZL;var Ti=[],Y6=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return r})();function KL(r,e,t){var i=r.cpx2,a=r.cpy2;return i!=null||a!=null?[(t?Px:Rt)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?Px:Rt)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Oc:Vt)(r.x1,r.cpx1,r.x2,e),(t?Oc:Vt)(r.y1,r.cpy1,r.y2,e)]}var qL=(function(r){Ve(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Y6},e.prototype.buildPath=function(t,i){var a=i.x1,n=i.y1,o=i.x2,s=i.y2,l=i.cpx1,u=i.cpy1,f=i.cpx2,p=i.cpy2,c=i.percent;c!==0&&(t.moveTo(a,n),f==null||p==null?(c<1&&(es(a,l,o,c,Ti),l=Ti[1],o=Ti[2],es(n,u,s,c,Ti),u=Ti[1],s=Ti[2]),t.quadraticCurveTo(l,u,o,s)):(c<1&&(aa(a,l,f,o,c,Ti),l=Ti[1],f=Ti[2],o=Ti[3],aa(n,u,p,s,c,Ti),u=Ti[1],p=Ti[2],s=Ti[3]),t.bezierCurveTo(l,u,f,p,o,s)))},e.prototype.pointAt=function(t){return KL(this.shape,t,!1)},e.prototype.tangentAt=function(t){var i=KL(this.shape,t,!0);return zi(i,i)},e})(ce);qL.prototype.type="bezier-curve";var wo=qL;var W6=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})();var jL=(function(r){Ve(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new W6},e.prototype.buildPath=function(t,i){var a=i.cx,n=i.cy,o=Math.max(i.r,0),s=i.startAngle,l=i.endAngle,u=i.clockwise,f=Math.cos(s),p=Math.sin(s);t.moveTo(f*o+a,p*o+n),t.arc(a,n,o,s,l,!u)},e})(ce);jL.prototype.type="arc";var Jl=jL;var X6=(function(r){Ve(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="compound",t}return e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,i=this.shapeChanged(),a=0;a<t.length;a++)i=i||t[a].shapeChanged();i&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],i=this.getGlobalScale(),a=0;a<t.length;a++)t[a].path||t[a].createPathProxy(),t[a].path.setScale(i[0],i[1],t[a].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,i){for(var a=i.paths||[],n=0;n<a.length;n++)a[n].buildPath(t,a[n].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],i=0;i<t.length;i++)t[i].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),ce.prototype.getBoundingRect.call(this)},e})(ce),Vn=X6;var Z6=(function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r})(),bm=Z6;var K6=(function(r){Ve(e,r);function e(t,i,a,n,o,s){var l=r.call(this,o)||this;return l.x=t??0,l.y=i??0,l.x2=a??1,l.y2=n??0,l.type="linear",l.global=s||!1,l}return e})(bm),Ci=K6;var q6=(function(r){Ve(e,r);function e(t,i,a,n,o){var s=r.call(this,n)||this;return s.x=t??.5,s.y=i??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return e})(bm),zf=q6;var rb=Math.min,j6=Math.max,wm=Math.abs,Ql=[0,0],$l=[0,0],cr=Ex(),Tm=cr.minTv,Cm=cr.maxTv,J6=(function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new he;for(var i=0;i<2;i++)this._axes[i]=new he;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var i=this._corners,a=this._axes,n=e.x,o=e.y,s=n+e.width,l=o+e.height;if(i[0].set(n,o),i[1].set(s,o),i[2].set(s,l),i[3].set(n,l),t)for(var u=0;u<4;u++)i[u].transform(t);he.sub(a[0],i[1],i[0]),he.sub(a[1],i[3],i[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(i[0])},r.prototype.intersect=function(e,t,i){var a=!0,n=!t;return t&&he.set(t,0,0),cr.reset(i,!n),!this._intersectCheckOneSide(this,e,n,1)&&(a=!1,n)||!this._intersectCheckOneSide(e,this,n,-1)&&(a=!1,n)||!n&&!cr.negativeSize&&he.copy(t,a?cr.useDir?cr.dirMinTv:Tm:Cm),a},r.prototype._intersectCheckOneSide=function(e,t,i,a){for(var n=!0,o=0;o<2;o++){var s=e._axes[o];if(e._getProjMinMaxOnAxis(o,e._corners,Ql),e._getProjMinMaxOnAxis(o,t._corners,$l),cr.negativeSize||Ql[1]<$l[0]||Ql[0]>$l[1]){if(n=!1,cr.negativeSize||i)return n;var l=wm($l[0]-Ql[1]),u=wm(Ql[0]-$l[1]);rb(l,u)>Cm.len()&&(l<u?he.scale(Cm,s,-l*a):he.scale(Cm,s,u*a))}else if(!i){var l=wm($l[0]-Ql[1]),u=wm(Ql[0]-$l[1]);(cr.useDir||rb(l,u)<Tm.len())&&((l<u||!cr.bidirectional)&&(he.scale(Tm,s,l*a),cr.useDir&&cr.calcDirMTV()),(l>=u||!cr.bidirectional)&&(he.scale(Tm,s,-u*a),cr.useDir&&cr.calcDirMTV()))}}return n},r.prototype._getProjMinMaxOnAxis=function(e,t,i){for(var a=this._axes[e],n=this._origin,o=t[0].dot(a)+n[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(a)+n[e];s=rb(f,s),l=j6(f,l)}i[0]=s+cr.touchThreshold,i[1]=l-cr.touchThreshold,cr.negativeSize=i[1]<i[0]},r})(),Am=J6;var ib=0,JL=1,QL=2,$L=1,Vf=0;var Q6=[],$6=(function(r){Ve(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=JL,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,i){i?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,i){i=i||!1;for(var a=0;a<t.length;a++)this.addDisplayable(t[a],i)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var i=this._cursor;i<this._displayables.length;i++)t&&t(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)t&&t(this._temporaryDisplayables[i])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var i=this._displayables[t];i.parent=this,i.update(),i.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var i=this._temporaryDisplayables[t];i.parent=this,i.update(),i.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new oe(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var a=this._displayables[i],n=a.getBoundingRect().clone();a.needLocalTransform()&&n.applyTransform(a.getLocalTransform(Q6)),t.union(n)}this._rect=t}return this._rect},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();if(n.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,i))return!0}return!1},e})(Ut),Em=$6;var tP=ne();function Un(r,e,t,i,a){var n;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();n=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,p=void 0;i?(u=Z(i.duration,200),f=Z(i.easing,"cubicOut"),p=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),p=e.getShallow(l?"animationDelayUpdate":"animationDelay")),n&&(n.duration!=null&&(u=n.duration),n.easing!=null&&(f=n.easing),n.delay!=null&&(p=n.delay)),J(p)&&(p=p(t,a)),J(u)&&(u=u(t));var c={duration:u||0,delay:p,easing:f};return c}else return null}function ab(r,e,t,i,a,n,o){var s=!1,l;J(a)?(o=n,n=a,a=null):te(a)&&(n=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=Un(r,i,a,u?l||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,a):null);if(f&&f.duration>0){var p=f.duration,c=f.delay,v=f.easing,h={duration:p,delay:c||0,easing:v,done:n,force:!!n||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,h):e.animateTo(t,h)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),n&&n()}function Ae(r,e,t,i,a,n){ab("update",r,e,t,i,a,n)}function Ge(r,e,t,i,a,n){ab("enter",r,e,t,i,a,n)}function To(r){if(!r.__zr)return!0;for(var e=0;e<r.animators.length;e++){var t=r.animators[e];if(t.scope==="leave")return!0}return!1}function va(r,e,t,i,a,n){To(r)||ab("leave",r,e,t,i,a,n)}function eP(r,e,t,i){r.removeTextContent(),r.removeTextGuideLine(),va(r,{style:{opacity:0}},e,t,i)}function Ai(r,e,t){function i(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(a){a.isGroup||eP(a,e,t,i)}):eP(r,e,t,i)}function Bt(r){tP(r).oldStyle=r.style}function rP(r){return tP(r).oldStyle}var ob={},we=["x","y"],_t=["width","height"],lb=0,ub=1,Ka=2;function fb(r){return ce.extend(r)}var e8=NL;function pb(r,e){return e8(r,e)}function Hi(r,e){ob[r]=e}function ys(r){if(ob.hasOwnProperty(r))return ob[r]}function Co(r,e,t,i){var a=_m(r,e);return t&&(i==="center"&&(t=nP(t,a.getBoundingRect())),Mm(a,t)),a}function vv(r,e,t){var i=new lt({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(a){if(t==="center"){var n={width:a.width,height:a.height};i.setStyle(nP(e,n))}}});return i}function nP(r,e){var t=e.width/e.height,i=r.height*t,a;i<=r.width?a=r.height:(i=r.width,a=i/t);var n=r.x+r.width/2,o=r.y+r.height/2;return{x:n-i/2,y:o-a/2,width:i,height:a}}var vr=kL;function Mm(r,e){if(r.applyTransform){var t=r.getBoundingRect(),i=t.calculateTransform(e);r.applyTransform(i)}}function Ao(r,e){return Xl(r,r,{lineWidth:e}),r}function t8(r,e){return am(r,r,e),r}var hv=Xr;function qa(r,e){for(var t=ra([]);r&&r!==e;)Qt(t,r.getLocalTransform(),t),r=r.parent;return t}function br(r,e,t){return e&&!It(e)&&(e=di.getLocalTransform(e)),t&&(e=zt([],e)),ot([],r,e)}function eu(r,e,t){var i=e[4]===0||e[5]===0||e[0]===0?1:ct(2*e[4]/e[0]),a=e[4]===0||e[5]===0||e[2]===0?1:ct(2*e[4]/e[2]),n=[r==="left"?-i:r==="right"?i:0,r==="top"?-a:r==="bottom"?a:0];return n=br(n,e,t),ct(n[0])>ct(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"}function iP(r){return!r.isGroup}function r8(r){return r.shape!=null}function Eo(r,e,t){if(!r||!e)return;function i(o){var s={};return o.traverse(function(l){iP(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return r8(o)&&(s.shape=ee(o.shape)),s}var n=i(r);e.traverse(function(o){if(iP(o)&&o.anid){var s=n[o.anid];if(s){var l=a(o);o.attr(a(s)),Ae(o,l,t,se(o).dataIndex)}}})}function dv(r,e){return U(r,function(t){var i=t[0];i=xe(i,e.x),i=Fe(i,e.x+e.width);var a=t[1];return a=xe(a,e.y),a=Fe(a,e.y+e.height),[i,a]})}function cb(r,e){var t=xe(r.x,e.x),i=Fe(r.x+r.width,e.x+e.width),a=xe(r.y,e.y),n=Fe(r.y+r.height,e.y+e.height);if(i>=t&&n>=a)return{x:t,y:a,width:i-t,height:n-a}}function ja(r,e,t){var i=k({rectHover:!0},e),a=i.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),$(a,t),new lt(i)):Co(r.replace("path://",""),i,t,"center")}function Uf(r,e,t,i,a){for(var n=0,o=a[a.length-1];n<a.length;n++){var s=a[n];if(oP(r,e,t,i,s[0],s[1],o[0],o[1]))return!0;o=s}}function oP(r,e,t,i,a,n,o,s){var l=t-r,u=i-e,f=o-a,p=s-n,c=nb(f,p,l,u);if(i8(c))return!1;var v=r-a,h=e-n,d=nb(v,h,l,u)/c;if(d<0||d>1)return!1;var m=nb(v,h,f,p)/c;return!(m<0||m>1)}function nb(r,e,t,i){return r*i-t*e}function i8(r){return r<=1e-6&&r>=-1e-6}function ha(r,e,t,i,a){return e==null||(_e(e)?Mt[0]=Mt[1]=Mt[2]=Mt[3]=e:(Mt[0]=e[0],Mt[1]=e[1],Mt[2]=e[2],Mt[3]=e[3]),i&&(Mt[0]=xe(0,Mt[0]),Mt[1]=xe(0,Mt[1]),Mt[2]=xe(0,Mt[2]),Mt[3]=xe(0,Mt[3])),t&&(Mt[0]=-Mt[0],Mt[1]=-Mt[1],Mt[2]=-Mt[2],Mt[3]=-Mt[3]),aP(r,Mt,"x","width",3,1,a&&a[0]||0),aP(r,Mt,"y","height",0,2,a&&a[1]||0)),r}var Mt=[0,0,0,0];function aP(r,e,t,i,a,n,o){var s=e[n]+e[a],l=r[i];r[i]+=s,o=xe(0,Fe(o,l)),r[i]<o?(r[i]=o,r[t]+=e[a]>=0?-e[a]:e[n]>=0?l+e[n]:ct(s)>1e-8?(l-o)*e[a]/s:0):r[t]-=e[a]}function Nr(r){var e=r.itemTooltipOption,t=r.componentModel,i=r.itemName,a=H(e)?{formatter:e}:e,n=t.mainType,o=t.componentIndex,s={componentType:n,name:i,$vars:["name"]};s[n+"Index"]=o;var l=r.formatterParamsExtra;l&&T(ye(l),function(f){ae(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=se(r.el);u.componentMainType=n,u.componentIndex=o,u.tooltipConfig={name:i,option:$({content:i,encodeHTMLContent:!0,formatterParams:s},a)}}function sb(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function Kr(r,e){if(r)if(V(r))for(var t=0;t<r.length;t++)sb(r[t],e);else sb(r,e)}function Im(r){return!r||ct(r[1])<Dm&&ct(r[2])<Dm||ct(r[0])<Dm&&ct(r[3])<Dm}var Dm=1e-5;function Bf(r,e){return r?oe.copy(r,e):e.clone()}function Lm(r,e){return e?za(r||Je(),e):void 0}function da(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function vb(r){var e=-1/0,t=1/0;sb(r,function(n){i(n),i(n.getTextContent()),i(n.getTextGuideLine())});function i(n){if(!(!n||n.isGroup)){var o=n.currentStates;if(o.length)for(var s=0;s<o.length;s++)a(n.states[o[s]]);a(n)}}function a(n){if(n){var o=n.z2;o>e&&(e=o),o<t&&(t=o)}}return t>e&&(t=e=0),{min:t,max:e}}function tu(r,e,t){sP(r,e,t,-1/0)}function sP(r,e,t,i){if(r.ignoreModelZ)return i;var a=r.getTextContent(),n=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)i=xe(sP(s[l],e,t,i),i);else r.z=e,r.zlevel=t,i=xe(r.z2||0,i);if(a&&(a.z=e,a.zlevel=t,isFinite(i)&&(a.z2=i+2)),n){var u=r.textGuideLineConfig;n.z=e,n.zlevel=t,isFinite(i)&&(n.z2=i+(u&&u.showAbove?1:-1))}return i}function mv(r){return r.animation={duration:0},r}function gv(r,e){return e?za(cv.transform,e):ra(cv.transform),cv.decomposeTransform(),hi(r,cv),r}var cv=new di;cv.transform=Je();function Pm(r){var e=r.getZr().painter;return e.getType()==="canvas"?e:null}Hi("circle",Sr);Hi("ellipse",ql);Hi("sector",Tt);Hi("ring",bo);Hi("polygon",yt);Hi("polyline",vt);Hi("rect",de);Hi("line",ut);Hi("bezierCurve",wo);Hi("arc",Jl);var Rm={};function cP(r,e){for(var t=0;t<ir.length;t++){var i=ir[t],a=e[i],n=r.ensureState(i);n.style=n.style||{},n.style.text=a}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function hb(r,e,t){var i=r.labelFetcher,a=r.labelDataIndex,n=r.labelDimIndex,o=e.normal,s;i&&(s=i.getFormattedLabel(a,"normal",null,n,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=J(r.defaultText)?r.defaultText(a,r,t):r.defaultText);for(var l={normal:s},u=0;u<ir.length;u++){var f=ir[u],p=e[f];l[f]=Z(i?i.getFormattedLabel(a,f,null,n,p&&p.get("formatter")):null,s)}return l}function it(r,e,t,i){t=t||Rm;for(var a=r instanceof be,n=!1,o=0;o<ds.length;o++){var s=e[ds[o]];if(s&&s.getShallow("show")){n=!0;break}}var l=a?r:r.getTextContent();if(n){a||(l||(l=new be,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=hb(t,e),f=e.normal,p=!!f.getShallow("show"),c=Xe(f,i&&i.normal,t,!1,!a);c.text=u.normal,a||r.setTextConfig(yv(f,t,!1));for(var o=0;o<ir.length;o++){var v=ir[o],s=e[v];if(s){var h=l.ensureState(v),d=!!Z(s.getShallow("show"),p);if(d!==p&&(h.ignore=!d),h.style=Xe(s,i&&i[v],t,!0,!a),h.style.text=u[v],!a){var m=r.ensureState(v);m.textConfig=yv(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(c.x=l.style.x),l.style.y!=null&&(c.y=l.style.y),l.ignore=!p,l.useStyle(c),l.dirty(),t.enableTextSetter&&(Do(l).setLabelText=function(g){var y=hb(t,e,g);cP(l,y)})}else l&&(l.ignore=!0);r.dirty()}function tt(r,e){e=e||"label";for(var t={normal:r.getModel(e)},i=0;i<ir.length;i++){var a=ir[i];t[a]=r.getModel([a,e])}return t}function Xe(r,e,t,i,a){var n={};return a8(n,r,t,i,a),e&&k(n,e),n}function yv(r,e,t){e=e||{};var i={},a,n=r.getShallow("rotate"),o=Z(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return a=r.getShallow("position")||(t?null:"inside"),a==="outside"&&(a=e.defaultOutsidePosition||"top"),a!=null&&(i.position=a),s!=null&&(i.offset=s),n!=null&&(n*=Math.PI/180,i.rotation=n),o!=null&&(i.distance=o),i.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",e.autoOverflowArea!=null&&(i.autoOverflowArea=e.autoOverflowArea),e.layoutRect!=null&&(i.layoutRect=e.layoutRect),i}function a8(r,e,t,i,a){t=t||Rm;var n=e.ecModel,o=n&&n.option.textStyle,s=n8(e),l;if(s){l={};var u="richInheritPlainLabel",f=Z(e.get(u),n?n.get(u):void 0);for(var p in s)if(s.hasOwnProperty(p)){var c=e.getModel(["rich",p]);pP(l[p]={},c,o,e,f,t,i,a,!1,!0)}}l&&(r.rich=l);var v=e.get("overflow");v&&(r.overflow=v);var h=e.get("lineOverflow");h&&(r.lineOverflow=h);var d=r,m=e.get("minMargin");if(m!=null)m=_e(m)?m/2:0,d.margin=[m,m,m,m],d.__marginType=ru.minMargin;else{var g=e.get("textMargin");g!=null&&(d.margin=uo(g),d.__marginType=ru.textMargin)}pP(r,e,o,null,null,t,i,a,!0,!1)}function n8(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||Rm).rich;if(t){e=e||{};for(var i=ye(t),a=0;a<i.length;a++){var n=i[a];e[n]=1}}r=r.parentModel}return e}var lP=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],uP=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],fP=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function pP(r,e,t,i,a,n,o,s,l,u){t=!o&&t||Rm;var f=n&&n.inheritColor,p=e.getShallow("color"),c=e.getShallow("textBorderColor"),v=Z(e.getShallow("opacity"),t.opacity);(p==="inherit"||p==="auto")&&(f?p=f:p=null),(c==="inherit"||c==="auto")&&(f?c=f:c=null),s||(p=p||t.color,c=c||t.textBorderColor),p!=null&&(r.fill=p),c!=null&&(r.stroke=c);var h=Z(e.getShallow("textBorderWidth"),t.textBorderWidth);h!=null&&(r.lineWidth=h);var d=Z(e.getShallow("textBorderType"),t.textBorderType);d!=null&&(r.lineDash=d);var m=Z(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);m!=null&&(r.lineDashOffset=m),!o&&v==null&&!u&&(v=n&&n.defaultOpacity),v!=null&&(r.opacity=v),!o&&!s&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var g=0;g<lP.length;g++){var y=lP[g],_=a!==!1&&i?Dt(e.getShallow(y),i.getShallow(y),t[y]):Z(e.getShallow(y),t[y]);_!=null&&(r[y]=_)}for(var g=0;g<uP.length;g++){var y=uP[g],_=e.getShallow(y);_!=null&&(r[y]=_)}if(r.verticalAlign==null){var x=e.getShallow("baseline");x!=null&&(r.verticalAlign=x)}if(!l||!n.disableBox){for(var g=0;g<fP.length;g++){var y=fP[g],_=e.getShallow(y);_!=null&&(r[y]=_)}var S=e.getShallow("borderType");S!=null&&(r.borderDash=S),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function Ff(r,e){var t=e&&e.getModel("textStyle");return Gt([r.fontStyle||t&&t.getShallow("fontStyle")||"",r.fontWeight||t&&t.getShallow("fontWeight")||"",(r.fontSize||t&&t.getShallow("fontSize")||12)+"px",r.fontFamily||t&&t.getShallow("fontFamily")||"sans-serif"].join(" "))}var Do=ne();function Om(r,e,t,i){if(r){var a=Do(r);a.prevValue=a.value,a.value=t;var n=e.normal;a.valueAnimation=n.get("valueAnimation"),a.valueAnimation&&(a.precision=n.get("precision"),a.defaultInterpolatedText=i,a.statesModels=e)}}function Nm(r,e,t,i,a){var n=Do(r);if(!n.valueAnimation||n.prevValue===n.value)return;var o=n.defaultInterpolatedText,s=Z(n.interpolatedValue,n.prevValue),l=n.value;function u(f){var p=qd(t,n.precision,s,l,f);n.interpolatedValue=f===1?null:p;var c=hb({labelDataIndex:e,labelFetcher:a,defaultText:o?o(p):p+""},n.statesModels,p);cP(r,c)}r.percent=0,(n.prevValue==null?Ge:Ae)(r,{percent:1},i,e,null,u)}var ru={minMargin:1,textMargin:2};var s8=["textStyle","color"],db=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],mb=new be,l8=(function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(s8):null)},r.prototype.getFont=function(){return Ff({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<db.length;i++)t[db[i]]=this.getShallow(db[i]);return mb.useStyle(t),mb.update(),mb.getBoundingRect()},r})(),vP=l8;var gb=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],u8=xi(gb),hP=(function(){function r(){}return r.prototype.getLineStyle=function(e){return u8(this,e)},r})();var yb=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],f8=xi(yb),dP=(function(){function r(){}return r.prototype.getItemStyle=function(e,t){return f8(this,e,t)},r})();var iu=(function(){function r(e,t,i){this.parentModel=t,this.ecModel=i,this.option=e}return r.prototype.init=function(e,t,i){for(var a=[],n=3;n<arguments.length;n++)a[n-3]=arguments[n]},r.prototype.mergeOption=function(e,t){ve(this.option,e,!0)},r.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},r.prototype.getShallow=function(e,t){var i=this.option,a=i==null?i:i[e];if(a==null&&!t){var n=this.parentModel;n&&(a=n.getShallow(e))}return a},r.prototype.getModel=function(e,t){var i=e!=null,a=i?this.parsePath(e):null,n=i?this._doGet(a):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new r(n,t,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var e=this.constructor;return new e(ee(this.option))},r.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},r.prototype.resolveParentPath=function(e){return e},r.prototype.isAnimationEnabled=function(){if(!Re.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(e,t){var i=this.option;if(!e)return i;for(var a=0;a<e.length&&!(e[a]&&(i=i&&typeof i=="object"?i[e[a]]:null,i==null));a++);return i==null&&t&&(i=t._doGet(this.resolveParentPath(e),t.parentModel)),i},r})();Mf(iu);xI(iu);rt(iu,hP);rt(iu,dP);rt(iu,SI);rt(iu,vP);var Ee=iu;var p8=Math.round(Math.random()*10);function Ei(r){return[r||"",p8++].join("_")}function mP(r){var e={};r.registerSubTypeDefaulter=function(t,i){var a=_i(t);e[a.main]=i},r.determineSubType=function(t,i){var a=i.type;if(!a){var n=_i(t).main;r.hasSubTypes(t)&&e[n]&&(a=e[n](i))}return a}}function gP(r,e){r.topologicalTravel=function(n,o,s,l){if(!n.length)return;var u=t(o),f=u.graph,p=u.noEntryList,c={};for(T(n,function(y){c[y]=!0});p.length;){var v=p.pop(),h=f[v],d=!!c[v];d&&(s.call(l,v,h.originalDeps.slice()),delete c[v]),T(h.successor,d?g:m)}T(c,function(){var y="";throw new Error(y)});function m(y){f[y].entryCount--,f[y].entryCount===0&&p.push(y)}function g(y){c[y]=!0,m(y)}};function t(n){var o={},s=[];return T(n,function(l){var u=i(o,l),f=u.originalDeps=e(l),p=a(f,n);u.entryCount=p.length,u.entryCount===0&&s.push(l),T(p,function(c){le(u.predecessor,c)<0&&u.predecessor.push(c);var v=i(o,c);le(v.successor,c)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function i(n,o){return n[o]||(n[o]={predecessor:[],successor:[]}),n[o]}function a(n,o){var s=[];return T(n,function(l){le(o,l)>=0&&s.push(l)}),s}}function kr(r,e){return ve(ve({},r,!0),e,!0)}var yP={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}};var _P={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",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},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 zm="ZH",xb="EN",Gf=xb,km={},Sb={},Vm=Re.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Gf).toUpperCase();return r.indexOf(zm)>-1?zm:Gf})():Gf;function bb(r,e){r=r.toUpperCase(),Sb[r]=new Ee(e),km[r]=e}function xP(r){if(H(r)){var e=km[r.toUpperCase()]||{};return r===zm||r===xb?ee(e):ve(ee(e),ee(km[Gf]),!1)}else return ve(ee(r),ee(km[Gf]),!1)}function _v(r){return Sb[r]}function SP(){return Sb[Gf]}bb(xb,yP);bb(zm,_P);var wb=null;function bP(r){wb||(wb=r)}function mt(){return wb}function Um(r,e){var t=mt(),i=e.breakOption,a=e.breakParsed;return!a&&t&&(a=t.parseAxisBreakOption(i,r)),a}function au(r){var e=r.brk;return e?e.breaks:[]}function nu(r){var e=r.brk;return e?e.hasBreaks():!1}var Gm=1e3,Hm=Gm*60,Hf=Hm*60,Yi=Hf*24,Tb=Yi*365,c8={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Fm={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},v8="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Bm="{yyyy}-{MM}-{dd}",Cb={year:"{yyyy}",month:"{yyyy}-{MM}",day:Bm,hour:Bm+" "+Fm.hour,minute:Bm+" "+Fm.minute,second:Bm+" "+Fm.second,millisecond:v8},Di=["year","month","day","hour","minute","second","millisecond"],wP=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function TP(r){return!H(r)&&!J(r)?h8(r):r}function h8(r){r=r||{};var e={},t=!0;return T(Di,function(i){t&&(t=r[i]==null)}),T(Di,function(i,a){var n=r[i];e[i]={};for(var o=null,s=a;s>=0;s--){var l=Di[s],u=te(n)&&!V(n)?n[l]:n,f=void 0;V(u)?(f=u.slice(),o=f[0]||""):H(u)?(o=u,f=[o]):(o==null?o=Fm[i]:c8[l].test(o)||(o=e[l][l][0]+" "+o),f=[o],t&&(f[1]="{primary|"+o+"}")),e[i][l]=f}}),e}function zr(r,e){return r+="","0000".substr(0,e-r.length)+r}function Yf(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function CP(r){return r===Yf(r)}function AP(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Mo(r,e,t,i){var a=gr(r),n=a[Ab(t)](),o=a[Ym(t)]()+1,s=Math.floor((o-1)/3)+1,l=a[Wm(t)](),u=a["get"+(t?"UTC":"")+"Day"](),f=a[Xm(t)](),p=(f-1)%12+1,c=a[Zm(t)](),v=a[Km(t)](),h=a[qm(t)](),d=f>=12?"pm":"am",m=d.toUpperCase(),g=i instanceof Ee?i:_v(i||Vm)||SP(),y=g.getModel("time"),_=y.get("month"),x=y.get("monthAbbr"),S=y.get("dayOfWeek"),b=y.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,n+"").replace(/{yy}/g,zr(n%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,x[o-1]).replace(/{MM}/g,zr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,zr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,zr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,zr(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,zr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,zr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,zr(h,3)).replace(/{S}/g,h+"")}function EP(r,e,t,i,a){var n=null;if(H(t))n=t;else if(J(t)){var o={time:r.time,level:r.time?r.time.level:0},s=mt();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),n=t(r.value,e,o)}else{var l=r.time;if(l){var u=t[l.lowerTimeUnit][l.upperTimeUnit];n=u[Math.min(l.level,u.length-1)]||""}else{var f=ou(r.value,a);n=t[f][f][0]}}return Mo(new Date(r.value),n,a,i)}function ou(r,e){var t=gr(r),i=t[Ym(e)]()+1,a=t[Wm(e)](),n=t[Xm(e)](),o=t[Zm(e)](),s=t[Km(e)](),l=t[qm(e)](),u=l===0,f=u&&s===0,p=f&&o===0,c=p&&n===0,v=c&&a===1,h=v&&i===1;return h?"year":v?"month":c?"day":p?"hour":f?"minute":u?"second":"millisecond"}function Wf(r,e,t){switch(e){case"year":r[Eb(t)](0);case"month":r[Db(t)](1);case"day":r[Mb(t)](0);case"hour":r[Ib(t)](0);case"minute":r[Lb(t)](0);case"second":r[Pb(t)](0)}return r}function Ab(r){return r?"getUTCFullYear":"getFullYear"}function Ym(r){return r?"getUTCMonth":"getMonth"}function Wm(r){return r?"getUTCDate":"getDate"}function Xm(r){return r?"getUTCHours":"getHours"}function Zm(r){return r?"getUTCMinutes":"getMinutes"}function Km(r){return r?"getUTCSeconds":"getSeconds"}function qm(r){return r?"getUTCMilliseconds":"getMilliseconds"}function DP(r){return r?"setUTCFullYear":"setFullYear"}function Eb(r){return r?"setUTCMonth":"setMonth"}function Db(r){return r?"setUTCDate":"setDate"}function Mb(r){return r?"setUTCHours":"setHours"}function Ib(r){return r?"setUTCMinutes":"setMinutes"}function Lb(r){return r?"setUTCSeconds":"setSeconds"}function Pb(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Rb(r,e,t,i,a,n,o,s){var l=new be({style:{text:r,font:e,align:t,verticalAlign:i,padding:a,rich:n,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function xv(r){if(!Nl(r))return H(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Xf(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,i){return i.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ma=uo;function jm(r,e,t){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Gt(f)?f:"-"}function n(f){return rr(f)}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?gr(r):r;if(isNaN(+l)){if(s)return"-"}else return Mo(l,i,t)}if(e==="ordinal")return af(r)?a(r):_e(r)&&n(r)?r+"":"-";var u=gi(r);return n(u)?xv(u):af(r)?a(r):typeof r=="boolean"?r+"":"-"}var MP=["a","b","c","d","e","f","g"],Ob=function(r,e){return"{"+r+(e??"")+"}"};function Zf(r,e,t){V(e)||(e=[e]);var i=e.length;if(!i)return"";for(var a=e[0].$vars||[],n=0;n<a.length;n++){var o=MP[n];r=r.replace(Ob(o),Ob(o,0))}for(var s=0;s<i;s++)for(var l=0;l<a.length;l++){var u=e[s][a[l]];r=r.replace(Ob(MP[l],s),t?Yt(u):u)}return r}function Jm(r,e,t){return T(e,function(i,a){r=r.replace("{"+a+"}",t?Yt(i):i)}),r}function Qm(r,e){var t=H(r)?{color:r,extraCssText:e}:r||{},i=t.color,a=t.type;e=t.extraCssText;var n=t.renderMode||"html";if(!i)return"";if(n==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Yt(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Yt(i)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:n,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function IP(r,e,t){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r=`MM-dd
9
+ yyyy`);var i=gr(e),a=t?"getUTC":"get",n=i[a+"FullYear"](),o=i[a+"Month"]()+1,s=i[a+"Date"](),l=i[a+"Hours"](),u=i[a+"Minutes"](),f=i[a+"Seconds"](),p=i[a+"Milliseconds"]();return r=r.replace("MM",zr(o,2)).replace("M",o).replace("yyyy",n).replace("yy",zr(n%100+"",2)).replace("dd",zr(s,2)).replace("d",s).replace("hh",zr(l,2)).replace("h",l).replace("mm",zr(u,2)).replace("m",u).replace("ss",zr(f,2)).replace("s",f).replace("SSS",zr(p,3)),r}function LP(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Ja(r,e){return e=e||"transparent",H(r)?r:te(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function su(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var eg={},Nb={},d8=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(e,t){this._nonSeriesBoxMasterList=i(eg,!0),this._normalMasterList=i(Nb,!1);function i(a,n){var o=[];return T(a,function(s,l){var u=s.create(e,t);o=o.concat(u||[])}),o}},r.prototype.update=function(e,t){T(this._normalMasterList,function(i){i.update&&i.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(e,t){if(e==="matrix"||e==="calendar"){eg[e]=t;return}Nb[e]=t},r.get=function(e){return Nb[e]||eg[e]},r})();function m8(r){return!!eg[r]}var g8=1,kb=2;function PP(r){RP.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var RP=W();function rg(r){var e=r.getShallow("coord",!0),t=g8;if(e==null){var i=RP.get(r.type);i&&i.getCoord2&&(t=kb,e=i.getCoord2(r))}return{coord:e,from:t}}var Kf=0,tg=1,zb=2;function Vb(r,e){var t=r.getShallow("coordinateSystem"),i=r.getShallow("coordinateSystemUsage",!0),a=i!=null,n=Kf;if(t){var o=r.mainType==="series";i==null&&(i=o?"data":"box"),i==="data"?(n=tg,o||(n=Kf)):i==="box"&&(n=zb,!o&&!m8(t)&&(n=Kf))}return{coordSysType:t,kind:n}}function Bn(r){var e=r.targetModel,t=r.coordSysType,i=r.coordSysProvider,a=r.isDefaultDataCoordSys,n=r.allowNotFound,o=Vb(e,!0),s=o.kind,l=o.coordSysType;if(a&&s!==tg&&(s=tg,l=t),s===Kf||l!==t)return Kf;var u=i(t,e);return u?(s===tg?e.coordinateSystem=u:e.boxCoordinateSystem=u,s):Kf}var ig=function(r,e){var t=e.getReferringComponents(r,Ke).models[0];return t&&t.coordinateSystem},Fn=d8;var ag=T,Ub=["left","right","top","bottom","width","height"],lu=[["width","left","right"],["height","top","bottom"]];function Bb(r,e,t,i,a){var n=0,o=0;i==null&&(i=1/0),a==null&&(a=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),p=e.childAt(u+1),c=p&&p.getBoundingRect(),v,h;if(r==="horizontal"){var d=f.width+(c?-c.x+f.x:0);v=n+d,v>i||l.newline?(n=0,v=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var m=f.height+(c?-c.y+f.y:0);h=o+m,h>a||l.newline?(n+=s+t,o=0,h=m,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=n,l.y=o,l.markRedraw(),r==="horizontal"?n=v+t:o=h+t)})}var Qa=Bb,Jpe=me(Bb,"vertical"),Qpe=me(Bb,"horizontal");function ng(r,e){return{left:r.getShallow("left",e),top:r.getShallow("top",e),right:r.getShallow("right",e),bottom:r.getShallow("bottom",e),width:r.getShallow("width",e),height:r.getShallow("height",e)}}function y8(r,e){var t=Qe(r,e,{enableLayoutOnlyByCenter:!0}),i=r.getBoxLayoutParams(),a,n;if(t.type===Sv.point)n=t.refPoint,a=He(i,{width:e.getWidth(),height:e.getHeight()});else{var o=r.get("center"),s=V(o)?o:[o,o];a=He(i,t.refContainer),n=t.boxCoordFrom===kb?t.refPoint:[j(s[0],a.width)+a.x,j(s[1],a.height)+a.y]}return{viewRect:a,center:n}}function og(r,e){var t=y8(r,e),i=t.viewRect,a=t.center,n=r.get("radius");V(n)||(n=[0,n]);var o=j(i.width,e.getWidth()),s=j(i.height,e.getHeight()),l=Math.min(o,s),u=j(n[0],l/2),f=j(n[1],l/2);return{cx:a[0],cy:a[1],r0:u,r:f,viewRect:i}}function He(r,e,t){t=ma(t||0);var i=e.width,a=e.height,n=j(r.left,i),o=j(r.top,a),s=j(r.right,i),l=j(r.bottom,a),u=j(r.width,i),f=j(r.height,a),p=t[2]+t[0],c=t[1]+t[3],v=r.aspect;switch(isNaN(u)&&(u=i-s-c-n),isNaN(f)&&(f=a-l-p-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>i/a?u=i*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(n)&&(n=i-s-u-c),isNaN(o)&&(o=a-l-f-p),r.left||r.right){case"center":n=i/2-u/2-t[3];break;case"right":n=i-u-c;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-t[0];break;case"bottom":o=a-f-p;break}n=n||0,o=o||0,isNaN(u)&&(u=i-c-n-(s||0)),isNaN(f)&&(f=a-p-o-(l||0));var h=new oe((e.x||0)+n+t[3],(e.y||0)+o+t[0],u,f);return h.margin=t,h}function sg(r,e,t){var i=r.getShallow("preserveAspect",!0);if(!i)return e;var a=e.width/e.height;if(Math.abs(Math.atan(t)-Math.atan(a))<1e-9)return e;var n=r.getShallow("preserveAspectAlign",!0),o=r.getShallow("preserveAspectVerticalAlign",!0),s={width:e.width,height:e.height},l=i==="cover";return a>t&&!l||a<t&&l?(s.width=e.height*t,n==="left"?s.left=0:n==="right"?s.right=0:s.left="center"):(s.height=e.width/t,o==="top"?s.top=0:o==="bottom"?s.bottom=0:s.top="middle"),He(s,e)}var Sv={rect:1,point:2};function Qe(r,e,t){var i,a,n,o=r.boxCoordinateSystem,s;if(o){var l=rg(r),u=l.coord,f=l.from;if(o.dataToLayout){n=Sv.rect,s=f;var p=o.dataToLayout(u);i=p.contentRect||p.rect}else t&&t.enableLayoutOnlyByCenter&&o.dataToPoint&&(n=Sv.point,s=f,a=o.dataToPoint(u))}return n==null&&(n=Sv.rect),n===Sv.rect&&(i||(i={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),a=[i.x+i.width/2,i.y+i.height/2]),{type:n,refContainer:i,refPoint:a,boxCoordFrom:s}}function _s(r,e,t,i,a,n){var o=!a||!a.hv||a.hv[0],s=!a||!a.hv||a.hv[1],l=a&&a.boundingMode||"all";if(n=n||r,n.x=r.x,n.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new oe(0,0,+e.width||0,+e.height||0):r.getBoundingRect();else if(u=r.getBoundingRect(),r.needLocalTransform()){var f=r.getLocalTransform();u=u.clone(),u.applyTransform(f)}var p=He($({width:u.width,height:u.height},e),t,i),c=o?p.x-u.x:0,v=s?p.y-u.y:0;return l==="raw"?(n.x=c,n.y=v):(n.x+=c,n.y+=v),n===r&&r.markRedraw(),!0}function OP(r,e){return r[lu[e][0]]!=null||r[lu[e][1]]!=null&&r[lu[e][2]]!=null}function xs(r){var e=r.layoutMode||r.constructor.layoutMode;return te(e)?e:e?{type:e}:null}function wr(r,e,t){var i=t&&t.ignoreSize;!V(i)&&(i=[i,i]);var a=o(lu[0],0),n=o(lu[1],1);l(lu[0],r,a),l(lu[1],r,n);function o(u,f){var p={},c=0,v={},h=0,d=2;if(ag(u,function(y){v[y]=r[y]}),ag(u,function(y){ae(e,y)&&(p[y]=v[y]=e[y]),s(p,y)&&c++,s(v,y)&&h++}),i[f])return s(e,u[1])?v[u[2]]=null:s(e,u[2])&&(v[u[1]]=null),v;if(h===d||!c)return v;if(c>=d)return p;for(var m=0;m<u.length;m++){var g=u[m];if(!ae(p,g)&&ae(r,g)){p[g]=r[g];break}}return p}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,p){ag(u,function(c){f[c]=p[c]})}}function Mi(r){return Fb({},r)}function Fb(r,e){return e&&r&&ag(Ub,function(t){ae(e,t)&&(r[t]=e[t])}),r}var _8=ne(),qf=(function(r){L(e,r);function e(t,i,a){var n=r.call(this,t,i,a)||this;return n.uid=Ei("ec_cpt_model"),n}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a)},e.prototype.mergeDefaultAndTheme=function(t,i){var a=xs(this),n=a?Mi(t):{},o=i.getTheme();ve(t,o.get(this.mainType)),ve(t,this.getDefaultOption()),a&&wr(t,n,a)},e.prototype.mergeOption=function(t,i){ve(this.option,t,!0);var a=xs(this);a&&wr(this.option,t,a)},e.prototype.optionUpdated=function(t,i){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!_I(t))return t.defaultOption;var i=_8(this);if(!i.defaultOption){for(var a=[],n=t;n;){var o=n.prototype.defaultOption;o&&a.push(o),n=n.superClass}for(var s={},l=a.length-1;l>=0;l--)s=ve(s,a[l],!0);i.defaultOption=s}return i.defaultOption},e.prototype.getReferringComponents=function(t,i){var a=t+"Index",n=t+"Id";return Dn(this.ecModel,t,{index:this.get(a,!0),id:this.get(n,!0)},i)},e.prototype.getBoxLayoutParams=function(){return ng(this,!1)},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=(function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0})(),e})(Ee);Qd(qf,Ee);fs(qf);mP(qf);gP(qf,x8);function x8(r){var e=[];return T(qf.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=U(e,function(t){return _i(t).main}),r!=="dataset"&&le(e,"dataset")<=0&&e.unshift("dataset"),e}var Se=qf;var uu={color:{},darkColor:{},size:{}},Xt=uu.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};k(Xt,{primary:Xt.neutral80,secondary:Xt.neutral70,tertiary:Xt.neutral60,quaternary:Xt.neutral50,disabled:Xt.neutral20,border:Xt.neutral30,borderTint:Xt.neutral20,borderShade:Xt.neutral40,background:Xt.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Xt.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Xt.neutral70,axisLineTint:Xt.neutral40,axisTick:Xt.neutral70,axisTickMinor:Xt.neutral60,axisLabel:Xt.neutral70,axisSplitLine:Xt.neutral15,axisMinorSplitLine:Xt.neutral05});for(Ss in Xt)Xt.hasOwnProperty(Ss)&&(Gb=Xt[Ss],Ss==="theme"?uu.darkColor.theme=Xt.theme.slice():Ss==="highlight"?uu.darkColor.highlight="rgba(255,231,130,0.4)":Ss.indexOf("accent")===0?uu.darkColor[Ss]=Bi(Gb,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):uu.darkColor[Ss]=Bi(Gb,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)}));var Gb,Ss;uu.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var N=uu;var NP="";typeof navigator<"u"&&(NP=navigator.platform||"");var jf="rgba(0, 0, 0, 0.2)",kP=N.color.theme[0],S8=Bi(kP,null,null,.9),lg={darkMode:"auto",colorBy:"series",color:N.color.theme,gradientColor:[S8,kP],aria:{decal:{decals:[{color:jf,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:jf,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:jf,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:jf,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:jf,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:jf,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:NP.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 lr={Must:1,Might:2,Not:3},zP=ne();function VP(r){zP(r).datasetMap=W()}function ug(r,e,t){var i={},a=fg(e);if(!a||!r)return i;var n=[],o=[],s=e.ecModel,l=zP(s).datasetMap,u=a.uid+"_"+t.seriesLayoutBy,f,p;r=r.slice(),T(r,function(d,m){var g=te(d)?d:r[m]={name:d};g.type==="ordinal"&&f==null&&(f=m,p=h(g)),i[g.name]=[]});var c=l.get(u)||l.set(u,{categoryWayDim:p,valueWayDim:0});T(r,function(d,m){var g=d.name,y=h(d);if(f==null){var _=c.valueWayDim;v(i[g],_,y),v(o,_,y),c.valueWayDim+=y}else if(f===m)v(i[g],0,y),v(n,0,y);else{var _=c.categoryWayDim;v(i[g],_,y),v(o,_,y),c.categoryWayDim+=y}});function v(d,m,g){for(var y=0;y<g;y++)d.push(m+y)}function h(d){var m=d.dimsDef;return m?m.length:1}return n.length&&(i.itemName=n),o.length&&(i.seriesName=o),i}function Jf(r,e,t){var i={},a=fg(r);if(!a)return i;var n=e.sourceFormat,o=e.dimensionsDefine,s;(n===pr||n===wi)&&T(o,function(f,p){(te(f)?f.name:f)==="name"&&(s=p)});var l=(function(){for(var f={},p={},c=[],v=0,h=Math.min(5,t);v<h;v++){var d=BP(e.data,n,e.seriesLayoutBy,o,e.startIndex,v);c.push(d);var m=d===lr.Not;if(m&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!m&&c[f.n]===lr.Not)&&(f.n=v),g(f)&&c[f.n]!==lr.Not)return f;m||(d===lr.Might&&p.v==null&&v!==s&&(p.v=v),(p.n==null||p.n===p.v)&&(p.n=v))}function g(y){return y.v!=null&&y.n!=null}return g(f)?f:g(p)?p:null})();if(l){i.value=[l.v];var u=s??l.n;i.itemName=[u],i.seriesName=[u]}return i}function fg(r){var e=r.get("data",!0);if(!e)return Dn(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ke).models[0]}function UP(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Dn(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ke).models}function pg(r,e){return BP(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function BP(r,e,t,i,a,n){var o,s=5;if(kt(r))return lr.Not;var l,u;if(i){var f=i[n];te(f)?(l=f.name,u=f.type):H(f)&&(l=f)}if(u!=null)return u==="ordinal"?lr.Must:lr.Not;if(e===Ot){var p=r;if(t===kn){for(var c=p[n],v=0;v<(c||[]).length&&v<s;v++)if((o=x(c[a+v]))!=null)return o}else for(var v=0;v<p.length&&v<s;v++){var h=p[a+v];if(h&&(o=x(h[n]))!=null)return o}}else if(e===pr){var d=r;if(!l)return lr.Not;for(var v=0;v<d.length&&v<s;v++){var m=d[v];if(m&&(o=x(m[l]))!=null)return o}}else if(e===wi){var g=r;if(!l)return lr.Not;var c=g[l];if(!c||kt(c))return lr.Not;for(var v=0;v<c.length&&v<s;v++)if((o=x(c[v]))!=null)return o}else if(e===sr)for(var y=r,v=0;v<y.length&&v<s;v++){var m=y[v],_=Ha(m);if(!V(_))return lr.Not;if((o=x(_[n]))!=null)return o}function x(S){var b=H(S);if(S!=null&&isFinite(Number(S))&&S!=="")return b?lr.Might:lr.Not;if(b&&S!=="-")return lr.Must}return lr.Not}var Hb=W();function FP(r,e){at(Hb.get(r)==null&&e),Hb.set(r,e)}function GP(r,e,t){var i=Hb.get(e);if(!i)return t;var a=i(r);if(!a)return t;if(0)for(var n;n<a.length;n++);return t.concat(a)}var HP=ne(),b8=ne(),bv=(function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,i){var a=We(this.get("color",!0)),n=this.get("colorLayer",!0);return YP(this,HP,a,n,e,t,i)},r.prototype.clearColorPalette=function(){T8(this,HP)},r})();function wv(r,e,t,i){var a=We(r.get(["aria","decal","decals"]));return YP(r,b8,a,null,e,t,i)}function w8(r,e){for(var t=r.length,i=0;i<t;i++)if(r[i].length>e)return r[i];return r[t-1]}function YP(r,e,t,i,a,n,o){n=n||r;var s=e(n),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!i?t:w8(i,o);if(f=f||t,!(!f||!f.length)){var p=f[l];return a&&(u[a]=p),s.paletteIdx=(l+1)%f.length,p}}function T8(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var cg,Tv,WP,XP="\0_ec_inner",C8=1;var jP=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,i,a,n,o,s){n=n||{},this.option=null,this._theme=new Ee(n),this._locale=new Ee(o),this._optionManager=s},e.prototype.setOption=function(t,i,a){var n=qP(i);this._optionManager.setOption(t,a,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,i){return this._resetOption(t,qP(i))},e.prototype._resetOption=function(t,i){var a=!1,n=this._optionManager;if(!t||t==="recreate"){var o=n.mountOption(t==="recreate");!this.option||t==="recreate"?WP(this,o):(this.restoreData(),this._mergeOption(o,i)),a=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=n.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,i))}if(!t||t==="recreate"||t==="media"){var l=n.getMediaOption(this);l.length&&T(l,function(u){a=!0,this._mergeOption(u,i)},this)}return a},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,i){var a=this.option,n=this._componentsMap,o=this._componentsCount,s=[],l=W(),u=i&&i.replaceMergeMainTypeMap;VP(this),T(t,function(p,c){p!=null&&(Se.hasClass(c)?c&&(s.push(c),l.set(c,!0)):a[c]=a[c]==null?ee(p):ve(a[c],p,!0))}),u&&u.each(function(p,c){Se.hasClass(c)&&!l.get(c)&&(s.push(c),l.set(c,!0))}),Se.topologicalTravel(s,Se.getAllClassMainTypes(),f,this);function f(p){var c=GP(this,p,We(t[p])),v=n.get(p),h=v?u&&u.get(p)?"replaceMerge":"normalMerge":"replaceAll",d=Kd(v,c,h);uI(d,p,Se),a[p]=null,n.set(p,null),o.set(p,0);var m=[],g=[],y=0,_,x;T(d,function(S,b){var w=S.existing,A=S.newOption;if(!A)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var C=p==="series",E=Se.getClass(p,S.keyInfo.subType,!C);if(!E){if(0)var D,I;return}if(p==="tooltip"){if(_)return;_=!0}if(w&&w.constructor===E)w.name=S.keyInfo.name,w.mergeOption(A,this),w.optionUpdated(A,!1);else{var M=k({componentIndex:b},S.keyInfo);w=new E(A,this,this,M),k(w,M),S.brandNew&&(w.__requireNewView=!0),w.init(A,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),g.push(w),y++):(m.push(void 0),g.push(void 0))},this),a[p]=m,n.set(p,g),o.set(p,y),p==="series"&&cg(this)}this._seriesIndices||cg(this)},e.prototype.getOption=function(){var t=ee(this.option);return T(t,function(i,a){if(Se.hasClass(a)){for(var n=We(i),o=n.length,s=!1,l=o-1;l>=0;l--)n[l]&&!Cf(n[l])?s=!0:(n[l]=null,!s&&o--);n.length=o,t[a]=n}}),delete t[XP],t},e.prototype.setTheme=function(t){this._theme=new Ee(t),this._resetOption("recreate",null)},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,i){var a=this._componentsMap.get(t);if(a){var n=a[i||0];if(n)return n;if(i==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},e.prototype.queryComponents=function(t){var i=t.mainType;if(!i)return[];var a=t.index,n=t.id,o=t.name,s=this._componentsMap.get(i);if(!s||!s.length)return[];var l;return a!=null?(l=[],T(We(a),function(u){s[u]&&l.push(s[u])})):n!=null?l=ZP("id",n,s):o!=null?l=ZP("name",o,s):l=Ie(s,function(u){return!!u}),KP(l,t)},e.prototype.findComponents=function(t){var i=t.query,a=t.mainType,n=s(i),o=n?this.queryComponents(n):Ie(this._componentsMap.get(a),function(u){return!!u});return l(KP(o,t));function s(u){var f=a+"Index",p=a+"Id",c=a+"Name";return u&&(u[f]!=null||u[p]!=null||u[c]!=null)?{mainType:a,index:u[f],id:u[p],name:u[c]}:null}function l(u){return t.filter?Ie(u,t.filter):u}},e.prototype.eachComponent=function(t,i,a){var n=this._componentsMap;if(J(t)){var o=i,s=t;n.each(function(p,c){for(var v=0;p&&v<p.length;v++){var h=p[v];h&&s.call(o,c,h,h.componentIndex)}})}else for(var l=H(t)?n.get(t):te(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&i.call(a,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var i=St(t,null);return Ie(this._componentsMap.get("series"),function(a){return!!a&&i!=null&&a.name===i})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return Ie(this._componentsMap.get("series"),function(i){return!!i&&i.subType===t})},e.prototype.getSeries=function(){return Ie(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,i){Tv(this),T(this._seriesIndices,function(a){var n=this._componentsMap.get("series")[a];t.call(i,n,a)},this)},e.prototype.eachRawSeries=function(t,i){T(this._componentsMap.get("series"),function(a){a&&t.call(i,a,a.componentIndex)})},e.prototype.eachSeriesByType=function(t,i,a){Tv(this),T(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];o.subType===t&&i.call(a,o,n)},this)},e.prototype.eachRawSeriesByType=function(t,i,a){return T(this.getSeriesByType(t),i,a)},e.prototype.isSeriesFiltered=function(t){return Tv(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,i){Tv(this);var a=[];T(this._seriesIndices,function(n){var o=this._componentsMap.get("series")[n];t.call(i,o,n)&&a.push(n)},this),this._seriesIndices=a,this._seriesIndicesMap=W(a)},e.prototype.restoreData=function(t){cg(this);var i=this._componentsMap,a=[];i.each(function(n,o){Se.hasClass(o)&&a.push(o)}),Se.topologicalTravel(a,Se.getAllClassMainTypes(),function(n){T(i.get(n),function(o){o&&(n!=="series"||!A8(o,t))&&o.restoreData()})})},e.internalField=(function(){cg=function(t){var i=t._seriesIndices=[];T(t._componentsMap.get("series"),function(a){a&&i.push(a.componentIndex)}),t._seriesIndicesMap=W(i)},Tv=function(t){},WP=function(t,i){t.option={},t.option[XP]=C8,t._componentsMap=W({series:[]}),t._componentsCount=W();var a=i.aria;te(a)&&a.enabled==null&&(a.enabled=!0),E8(i,t._theme.option),ve(i,lg,!1),t._mergeOption(i,null)}})(),e})(Ee);function A8(r,e){if(e){var t=e.seriesIndex,i=e.seriesId,a=e.seriesName;return t!=null&&r.componentIndex!==t||i!=null&&r.id!==i||a!=null&&r.name!==a}}function E8(r,e){var t=r.color&&!r.colorLayer;T(e,function(i,a){a==="colorLayer"&&t||a==="color"&&r.color||Se.hasClass(a)||(typeof i=="object"?r[a]=r[a]?ve(r[a],i,!1):ee(i):r[a]==null&&(r[a]=i))})}function ZP(r,e,t){if(V(e)){var i=W();return T(e,function(n){if(n!=null){var o=St(n,null);o!=null&&i.set(n,!0)}}),Ie(t,function(n){return n&&i.get(n[r])})}else{var a=St(e,null);return Ie(t,function(n){return n&&a!=null&&n[r]===a})}}function KP(r,e){return e.hasOwnProperty("subType")?Ie(r,function(t){return t&&t.subType===e.subType}):r}function qP(r){var e=W();return r&&T(We(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}rt(jP,bv);var vg=jP;var D8=/^(min|max)?(.+)$/,M8=(function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,i){e&&(T(We(e.series),function(o){o&&o.data&&kt(o.data)&&jo(o.data)}),T(We(e.dataset),function(o){o&&o.source&&kt(o.source)&&jo(o.source)})),e=ee(e);var a=this._optionBackup,n=I8(e,t,!a);this._newBaseOption=n.baseOption,a?(n.timelineOptions.length&&(a.timelineOptions=n.timelineOptions),n.mediaList.length&&(a.mediaList=n.mediaList),n.mediaDefault&&(a.mediaDefault=n.mediaDefault)):this._optionBackup=n},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],ee(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,i=this._timelineOptions;if(i.length){var a=e.getComponent("timeline");a&&(t=ee(i[a.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,n=this._mediaDefault,o=[],s=[];if(!a.length&&!n)return s;for(var l=0,u=a.length;l<u;l++)L8(a[l].query,t,i)&&o.push(l);return!o.length&&n&&(o=[-1]),o.length&&!R8(o,this._currentMediaIndices)&&(s=U(o,function(f){return ee(f===-1?n.option:a[f].option)})),this._currentMediaIndices=o,s},r})();function I8(r,e,t){var i=[],a,n,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,p=!!(l||s||o&&o.timeline);o?(n=o,n.timeline||(n.timeline=s)):((p||f)&&(r.options=r.media=null),n=r),f&&V(u)&&T(u,function(v){v&&v.option&&(v.query?i.push(v):a||(a=v))}),c(n),T(l,function(v){return c(v)}),T(i,function(v){return c(v.option)});function c(v){T(e,function(h){h(v,t)})}return{baseOption:n,timelineOptions:l||[],mediaDefault:a,mediaList:i}}function L8(r,e,t){var i={width:e,height:t,aspectratio:e/t},a=!0;return T(r,function(n,o){var s=o.match(D8);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();P8(i[u],n,l)||(a=!1)}}),a}function P8(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function R8(r,e){return r.join(",")===e.join(",")}var JP=M8;var $a=T,Av=te,QP=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Yb(r){var e=r&&r.itemStyle;if(e)for(var t=0,i=QP.length;t<i;t++){var a=QP[t],n=e.normal,o=e.emphasis;n&&n[a]&&(r[a]=r[a]||{},r[a].normal?ve(r[a].normal,n[a]):r[a].normal=n[a],n[a]=null),o&&o[a]&&(r[a]=r[a]||{},r[a].emphasis?ve(r[a].emphasis,o[a]):r[a].emphasis=o[a],o[a]=null)}}function Vr(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var i=r[e].normal,a=r[e].emphasis;i&&(t?(r[e].normal=r[e].emphasis=null,$(r[e],i)):r[e]=i),a&&(r.emphasis=r.emphasis||{},r.emphasis[e]=a,a.focus&&(r.emphasis.focus=a.focus),a.blurScope&&(r.emphasis.blurScope=a.blurScope))}}function Cv(r){Vr(r,"itemStyle"),Vr(r,"lineStyle"),Vr(r,"areaStyle"),Vr(r,"label"),Vr(r,"labelLine"),Vr(r,"upperLabel"),Vr(r,"edgeLabel")}function er(r,e){var t=Av(r)&&r[e],i=Av(t)&&t.textStyle;if(i)for(var a=0,n=vS.length;a<n;a++){var o=vS[a];i.hasOwnProperty(o)&&(t[o]=i[o])}}function ga(r){r&&(Cv(r),er(r,"label"),r.emphasis&&er(r.emphasis,"label"))}function O8(r){if(Av(r)){Yb(r),Cv(r),er(r,"label"),er(r,"upperLabel"),er(r,"edgeLabel"),r.emphasis&&(er(r.emphasis,"label"),er(r.emphasis,"upperLabel"),er(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Yb(e),ga(e));var t=r.markLine;t&&(Yb(t),ga(t));var i=r.markArea;i&&ga(i);var a=r.data;if(r.type==="graph"){a=a||r.nodes;var n=r.links||r.edges;if(n&&!kt(n))for(var o=0;o<n.length;o++)ga(n[o]);T(r.categories,function(u){Cv(u)})}if(a&&!kt(a))for(var o=0;o<a.length;o++)ga(a[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)ga(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)V(l[o])?(ga(l[o][0]),ga(l[o][1])):ga(l[o]);r.type==="gauge"?(er(r,"axisLabel"),er(r,"title"),er(r,"detail")):r.type==="treemap"?(Vr(r.breadcrumb,"itemStyle"),T(r.levels,function(u){Cv(u)})):r.type==="tree"&&Cv(r.leaves)}}function Io(r){return V(r)?r:r?[r]:[]}function $P(r){return(V(r)?r[0]:r)||{}}function Wb(r,e){$a(Io(r.series),function(i){Av(i)&&O8(i)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),$a(t,function(i){$a(Io(r[i]),function(a){a&&(er(a,"axisLabel"),er(a.axisPointer,"label"))})}),$a(Io(r.parallel),function(i){var a=i&&i.parallelAxisDefault;er(a,"axisLabel"),er(a&&a.axisPointer,"label")}),$a(Io(r.calendar),function(i){Vr(i,"itemStyle"),er(i,"dayLabel"),er(i,"monthLabel"),er(i,"yearLabel")}),$a(Io(r.radar),function(i){er(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),$a(Io(r.geo),function(i){Av(i)&&(ga(i),$a(Io(i.regions),function(a){ga(a)}))}),$a(Io(r.timeline),function(i){ga(i),Vr(i,"label"),Vr(i,"itemStyle"),Vr(i,"controlStyle",!0);var a=i.data;V(a)&&T(a,function(n){te(n)&&(Vr(n,"label"),Vr(n,"itemStyle"))})}),$a(Io(r.toolbox),function(i){Vr(i,"iconStyle"),$a(i.feature,function(a){Vr(a,"iconStyle")})}),er($P(r.axisPointer),"label"),er($P(r.tooltip).axisPointer,"label")}function N8(r,e){for(var t=e.split(","),i=r,a=0;a<t.length&&(i=i&&i[t[a]],i!=null);a++);return i}function k8(r,e,t,i){for(var a=e.split(","),n=r,o,s=0;s<a.length-1;s++)o=a[s],n[o]==null&&(n[o]={}),n=n[o];(i||n[a[s]]==null)&&(n[a[s]]=t)}function eR(r){r&&T(z8,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var z8=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],V8=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Xb=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ev(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<Xb.length;t++){var i=Xb[t][1],a=Xb[t][0];e[i]!=null&&(e[a]=e[i])}}function tR(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function rR(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function U8(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function iR(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&iR(r[t].children,e)}function hg(r,e){Wb(r,e),r.series=We(r.series),T(r.series,function(t){if(te(t)){var i=t.type;if(i==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(i==="pie"||i==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),tR(t.label);var a=t.data;if(a&&!kt(a))for(var n=0;n<a.length;n++)tR(a[n]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(i==="gauge"){var o=N8(t,"pointer.color");o!=null&&k8(t,"itemStyle.color",o)}else if(i==="bar"){Ev(t),Ev(t.backgroundStyle),Ev(t.emphasis);var a=t.data;if(a&&!kt(a))for(var n=0;n<a.length;n++)typeof a[n]=="object"&&(Ev(a[n]),Ev(a[n]&&a[n].emphasis))}else if(i==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),rR(t),iR(t.data,rR)}else i==="graph"||i==="sankey"?U8(t):i==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&$(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),eR(t)}}),r.dataRange&&(r.visualMap=r.dataRange),T(V8,function(t){var i=r[t];i&&(V(i)||(i=[i]),T(i,function(a){eR(a)}))})}var aR=Mn(B8);function B8(r){var e=W();r.eachSeries(function(t){var i=t.get("stack");if(i){var a=e.get(i)||e.set(i,[]),n=t.getData(),o={stackResultDimension:n.getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.push(o)}}),e.each(function(t){if(t.length!==0){var i=t[0].seriesModel,a=i.get("stackOrder")||"seriesAsc";a==="seriesDesc"&&t.reverse(),T(t,function(n,o){n.data.setCalculationInfo("stackedOnSeries",o>0?t[o-1].seriesModel:null)}),F8(t)}})}function F8(r){T(r,function(e,t){var i=[],a=[NaN,NaN],n=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(n,function(u,f,p){var c=o.get(e.stackedDimension,p);if(isNaN(c))return a;var v,h;s?h=o.getRawIndex(p):v=o.get(e.stackedByDimension,p);for(var d=NaN,m=t-1;m>=0;m--){var g=r[m];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,v)),h>=0){var y=g.data.getByRawIndex(g.stackResultDimension,h);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&c>=0&&y>0||l==="samesign"&&c<=0&&y<0){c=ho(c,y),d=y;break}}}return i[0]=c,i[1]=d,i})})}var dg=(function(){function r(e){this.data=e.data||(e.sourceFormat===wi?{}:[]),this.sourceFormat=e.sourceFormat||BS,this.seriesLayoutBy=e.seriesLayoutBy||Zr,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var i=0;i<t.length;i++){var a=t[i];a.type==null&&pg(this,i)===lr.Must&&(a.type="ordinal")}}return r})();function Qf(r){return r instanceof dg}function Dv(r,e,t){t=t||Zb(r);var i=e.seriesLayoutBy,a=G8(r,t,i,e.sourceHeader,e.dimensions),n=new dg({data:r,sourceFormat:t,seriesLayoutBy:i,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ee(e)});return n}function $f(r){return new dg({data:r,sourceFormat:kt(r)?Gi:sr})}function sR(r){return new dg({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ee(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Zb(r){var e=BS;if(kt(r))e=Gi;else if(V(r)){r.length===0&&(e=Ot);for(var t=0,i=r.length;t<i;t++){var a=r[t];if(a!=null){if(V(a)||kt(a)){e=Ot;break}else if(te(a)){e=pr;break}}}}else if(te(r)){for(var n in r)if(ae(r,n)&&It(r[n])){e=wi;break}}return e}function G8(r,e,t,i,a){var n,o;if(!r)return{dimensionsDefine:nR(a),startIndex:o,dimensionsDetectedCount:n};if(e===Ot){var s=r;i==="auto"||i==null?oR(function(u){u!=null&&u!=="-"&&(H(u)?o==null&&(o=1):o=0)},t,s,10):o=_e(i)?i:i?1:0,!a&&o===1&&(a=[],oR(function(u,f){a[f]=u!=null?u+"":""},t,s,1/0)),n=a?a.length:t===kn?s.length:s[0]?s[0].length:null}else if(e===pr)a||(a=H8(r));else if(e===wi)a||(a=[],T(r,function(u,f){a.push(f)}));else if(e===sr){var l=Ha(r[0]);n=V(l)&&l.length||1}return{startIndex:o,dimensionsDefine:nR(a),dimensionsDetectedCount:n}}function H8(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return ye(t)}function nR(r){if(r){var e=W();return U(r,function(t,i){t=te(t)?t:{name:t};var a={name:t.name,displayName:t.displayName,type:t.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var n=e.get(a.name);return n?a.name+="-"+n.count++:e.set(a.name,{count:1}),a})}}function oR(r,e,t,i){if(e===kn)for(var a=0;a<t.length&&a<i;a++)r(t[a]?t[a][0]:null,a);else for(var n=t[0]||[],a=0;a<n.length&&a<i;a++)r(n[a],a)}function mg(r){var e=r.sourceFormat;return e===pr||e===wi}var fu,pu,cu,vu,lR,uR,yg=(function(){function r(e,t){var i=Qf(e)?e:$f(e);this._source=i;var a=this._data=i.data,n=i.sourceFormat,o=i.seriesLayoutBy;if(n===Gi&&(this._offset=0,this._dimSize=t,this._data=a),0)var s;uR(this,a,i)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(e,t){},r.prototype.appendData=function(e){},r.prototype.clean=function(){},r.protoInitialize=(function(){var e=r.prototype;e.pure=!1,e.persistent=!0})(),r.internalField=(function(){var e;uR=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,p=l.startIndex,c=l.dimensionsDefine,v=lR[Qb(u,f)];if(k(o,v),u===Gi)o.getItem=t,o.count=a,o.fillStorage=i;else{var h=qb(u,f);o.getItem=X(h,null,s,p,c);var d=jb(u,f);o.count=X(d,null,s,p,c)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,p=0;p<u;p++)s[p]=l[f+p];return s},i=function(o,s,l,u){for(var f=this._data,p=this._dimSize,c=0;c<p;c++){for(var v=u[c],h=v[0]==null?1/0:v[0],d=v[1]==null?-1/0:v[1],m=s-o,g=l[c],y=0;y<m;y++){var _=f[y*p+c];g[o+y]=_,_<h&&(h=_),_>d&&(d=_)}v[0]=h,v[1]=d}},a=function(){return this._data?this._data.length/this._dimSize:0};lR=(e={},e[Ot+"_"+Zr]={pure:!0,appendData:n},e[Ot+"_"+kn]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[pr]={pure:!0,appendData:n},e[wi]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var f=s[u]||(s[u]=[]),p=0;p<(l||[]).length;p++)f.push(l[p])})}},e[sr]={appendData:n},e[Gi]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function n(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})();var gg=function(r){V(r)||cS("series.data or dataset.source must be an array.")},eve=(fu={},fu[Ot+"_"+Zr]=gg,fu[Ot+"_"+kn]=gg,fu[pr]=gg,fu[wi]=function(r,e){for(var t=0;t<e.length;t++){var i=e[t].name;i==null&&cS("dimension name must not be null/undefined.")}},fu[sr]=gg,fu),fR=function(r,e,t,i){return r[i]},Y8=(pu={},pu[Ot+"_"+Zr]=function(r,e,t,i){return r[i+e]},pu[Ot+"_"+kn]=function(r,e,t,i,a){i+=e;for(var n=a||[],o=r,s=0;s<o.length;s++){var l=o[s];n[s]=l?l[i]:null}return n},pu[pr]=fR,pu[wi]=function(r,e,t,i,a){for(var n=a||[],o=0;o<t.length;o++){var s=t[o].name,l=s!=null?r[s]:null;n[o]=l?l[i]:null}return n},pu[sr]=fR,pu);function qb(r,e){var t=Y8[Qb(r,e)];return t}var pR=function(r,e,t){return r.length},W8=(cu={},cu[Ot+"_"+Zr]=function(r,e,t){return Math.max(0,r.length-e)},cu[Ot+"_"+kn]=function(r,e,t){var i=r[0];return i?Math.max(0,i.length-e):0},cu[pr]=pR,cu[wi]=function(r,e,t){var i=t[0].name,a=i!=null?r[i]:null;return a?a.length:0},cu[sr]=pR,cu);function jb(r,e){var t=W8[Qb(r,e)];return t}var Kb=function(r,e,t){return r[e]},X8=(vu={},vu[Ot]=Kb,vu[pr]=function(r,e,t){return r[t]},vu[wi]=Kb,vu[sr]=function(r,e,t){var i=Ha(r);return i instanceof Array?i[e]:i},vu[Gi]=Kb,vu);function Jb(r){var e=X8[r];return e}function Qb(r,e){return r===Ot?r+"_"+e:r}function Lo(r,e,t){if(r){var i=r.getRawDataItem(e);if(i!=null){var a=r.getStore(),n=a.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=a.getDimensionProperty(o);return Jb(n)(i,o,s)}else{var l=i;return n===sr&&(l=Ha(i)),l}}}}var Z8=/\{@(.+?)\}/g,hu=(function(){function r(){}return r.prototype.getDataParams=function(e,t){var i=this.getData(t),a=this.getRawValue(e,t),n=i.getRawIndex(e),o=i.getName(e),s=i.getRawDataItem(e),l=i.getItemVisual(e,"style"),u=l&&l[i.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,p=this.mainType,c=p==="series",v=i.userOutput&&i.userOutput.get();return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:n,data:s,dataType:t,value:a,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,i,a,n,o){t=t||"normal";var s=this.getData(i),l=this.getDataParams(e,i);if(o&&(l.value=o.interpolatedValue),a!=null&&V(l.value)&&(l.value=l.value[a]),!n){var u=s.getItemModel(e);n=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(J(n))return l.status=t,l.dimensionIndex=a,n(l);if(H(n)){var f=Zf(n,l);return f.replace(Z8,function(p,c){var v=c.length,h=c;h.charAt(0)==="["&&h.charAt(v-1)==="]"&&(h=+h.slice(1,v-1));var d=Lo(s,e,h);if(o&&V(o.interpolatedValue)){var m=s.getDimensionIndex(h);m>=0&&(d=o.interpolatedValue[m])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return Lo(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,i){},r})();function $b(r){var e,t;return te(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function bs(r){return new K8(r)}var K8=(function(){function r(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return r.prototype.perform=function(e){var t=this._upstream,i=e&&e.skip;if(this._dirty&&t){var a=this.context;a.data=a.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var n;this._plan&&!i&&(n=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(n="reset");function f(y){return!(y>=1)&&(y=1),y}var p;(this._dirty||n==="reset")&&(this._dirty=!1,p=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,h=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(p||v<h)){var d=this._progress;if(V(d))for(var m=0;m<d.length;m++)this._doProgress(d[m],v,h,l,u);else this._doProgress(d,v,h,l,u)}this._dueIndex=h;var g=this._settedOutputEnd!=null?this._settedOutputEnd:h;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,i,a,n){cR.reset(t,i,a,n),this._callingProgress=e,this._callingProgress({start:t,end:i,count:i-t,next:cR.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,i;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(i=t.forceFirstProgress,t=t.progress),V(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),i},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},r})();var cR=(function(){var r,e,t,i,a,n={reset:function(l,u,f,p){e=l,r=u,t=f,i=p,a=Math.ceil(i/t),n.next=t>1&&i>0?s:o}};return n;function o(){return e<r?e++:null}function s(){var l=e%a*t+Math.ceil(e/a),u=e>=r?null:l<i?l:e;return e++,u}})();function ya(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!_e(r)&&r!=null&&r!=="-"&&(r=+gr(r)),r==null||r===""?NaN:Number(r))}var q8=W({number:function(r){return parseFloat(r)},time:function(r){return+gr(r)},trim:function(r){return H(r)?Gt(r):r}});function _g(r){return q8.get(r)}var vR={lt:function(r,e){return r<e},lte:function(r,e){return r<=e},gt:function(r,e){return r>e},gte:function(r,e){return r>=e}},j8=(function(){function r(e,t){if(!_e(t)){var i="";Ye(i)}this._opFn=vR[e],this._rvalFloat=gi(t)}return r.prototype.evaluate=function(e){return _e(e)?this._opFn(e,this._rvalFloat):this._opFn(gi(e),this._rvalFloat)},r})(),xg=(function(){function r(e,t){var i=e==="desc";this._resultLT=i?1:-1,t==null&&(t=i?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var i=_e(e)?e:gi(e),a=_e(t)?t:gi(t),n=isNaN(i),o=isNaN(a);if(n&&(i=this._incomparable),o&&(a=this._incomparable),n&&o){var s=H(e),l=H(t);s&&(i=l?e:0),l&&(a=s?t:0)}return i<a?this._resultLT:i>a?-this._resultLT:0},r})();var J8=(function(){function r(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=gi(t)}return r.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var i=typeof e;i!==this._rvalTypeof&&(i==="number"||this._rvalTypeof==="number")&&(t=gi(e)===this._rvalFloat)}return this._isEQ?t:!t},r})();function hR(r,e){return r==="eq"||r==="ne"?new J8(r==="eq",e):ae(vR,r)?new j8(r,e):null}function Sg(r){var e="",t=-1/0,i=-1/0,a=1/0,n=1/0;return r&&(r.g!=null&&(e+="G"+r.g,t=r.g),r.ge!=null&&(e+="GE"+r.ge,i=r.ge),r.l!=null&&(e+="L"+r.l,a=r.l),r.le!=null&&(e+="LE"+r.le,n=r.le)),{key:e,g:t,ge:i,l:a,le:n}}function bg(r,e){return e>r.g&&e>=r.ge&&e<r.l&&e<=r.le}var Q8=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(e){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(e){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(e,t){},r.prototype.retrieveValueFromItem=function(e,t){},r.prototype.convertValue=function(e,t){return ya(e,t)},r})();function $8(r,e){var t=new Q8,i=r.data,a=t.sourceFormat=r.sourceFormat,n=r.startIndex,o="";r.seriesLayoutBy!==Zr&&Ye(o);var s=[],l={},u=r.dimensionsDefine;if(u)T(u,function(d,m){var g=d.name,y={index:m,name:g,displayName:d.displayName};if(s.push(y),g!=null){var _="";ae(l,g)&&Ye(_),l[g]=y}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var p=qb(a,Zr);e.__isBuiltIn&&(t.getRawDataItem=function(d){return p(i,n,s,d)},t.getRawData=X(eX,null,r)),t.cloneRawData=X(tX,null,r);var c=jb(a,Zr);t.count=X(c,null,i,n,s);var v=Jb(a);t.retrieveValue=function(d,m){var g=p(i,n,s,d);return h(g,m)};var h=t.retrieveValueFromItem=function(d,m){if(d!=null){var g=s[m];if(g)return v(d,m,g.name)}};return t.getDimensionInfo=X(rX,null,s,l),t.cloneAllDimensionInfo=X(iX,null,s),t}function eX(r){var e=r.sourceFormat;if(!e1(e)){var t="";Ye(t)}return r.data}function tX(r){var e=r.sourceFormat,t=r.data;if(!e1(e)){var i="";Ye(i)}if(e===Ot){for(var a=[],n=0,o=t.length;n<o;n++)a.push(t[n].slice());return a}else if(e===pr){for(var a=[],n=0,o=t.length;n<o;n++)a.push(k({},t[n]));return a}}function rX(r,e,t){if(t!=null){if(_e(t)||!isNaN(t)&&!ae(e,t))return r[t];if(ae(e,t))return e[t]}}function iX(r){return ee(r)}var dR=W();function mR(r){r=ee(r);var e=r.type,t="";e||Ye(t);var i=e.split(":");i.length!==2&&Ye(t);var a=!1;i[0]==="echarts"&&(e=i[1],a=!0),r.__isBuiltIn=a,dR.set(e,r)}function gR(r,e,t){var i=We(r),a=i.length,n="";a||Ye(n);for(var o=0,s=a;o<s;o++){var l=i[o];e=aX(l,e,t,a===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function aX(r,e,t,i){var a="";e.length||Ye(a),te(r)||Ye(a);var n=r.type,o=dR.get(n);o||Ye(a);var s=U(e,function(f){return $8(f,o)}),l=We(o.transform({upstream:s[0],upstreamList:s,config:ee(r.config)}));if(0&&r.print)var u;return U(l,function(f,p){var c="";te(f)||Ye(c),f.data||Ye(c);var v=Zb(f.data);e1(v)||Ye(c);var h,d=e[0];if(d&&p===0&&!f.dimensions){var m=d.startIndex;m&&(f.data=d.data.slice(0,m).concat(f.data)),h={seriesLayoutBy:Zr,sourceHeader:m,dimensions:d.metaRawOption.dimensions}}else h={seriesLayoutBy:Zr,sourceHeader:0,dimensions:f.dimensions};return Dv(f.data,h,null)})}function e1(r){return r===Ot||r===pr}var nX=typeof Uint32Array===hs?Array:Uint32Array,oX=typeof Uint16Array===hs?Array:Uint16Array,r1=typeof Int32Array===hs?Array:Int32Array,yR=typeof Float64Array===hs?Array:Float64Array,xR={float:yR,int:r1,ordinal:Array,number:Array,time:yR},t1;function ep(r){return r>65535?nX:oX}function sX(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function _R(r,e,t,i,a){var n=xR[t||"float"];if(a){var o=r[e],s=o&&o.length;if(s!==i){for(var l=new n(i),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new n(i)}var lX=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=W()}return r.prototype.initData=function(e,t,i){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=e.getSource(),n=this.defaultDimValueGetter=t1[a.sourceFormat];this._dimValueGetter=i||n,this._rawExtent=[];var o=mg(a);this._dimensions=U(t,function(s){return{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(e,t){var i=this._calcDimNameToIdx,a=this._dimensions,n=i.get(e);if(n!=null){if(a[n].type===t)return n}else n=a.length;return a[n]={type:t},i.set(e,n),this._chunks[n]=new xR[t||"float"](this._rawCount),this._rawExtent[n]=Pt(),n},r.prototype.collectOrdinalMeta=function(e,t){var i=this._chunks[e],a=this._dimensions[e],n=this._rawExtent,o=a.ordinalOffset||0,s=i.length;o===0&&(n[e]=Pt());for(var l=n[e],u=o;u<s;u++){var f=i[u]=t.parseAndCollect(i[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}a.ordinalMeta=t,a.ordinalOffset=s,a.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],i=t.ordinalMeta;return i},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,i=this.count();t.appendData(e);var a=t.count();return t.persistent||(a+=i),i<a&&this._initDataFromProvider(i,a,!0),[i,a]},r.prototype.appendValues=function(e,t){for(var i=this._chunks,a=this._dimensions,n=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<n;u++){var f=a[u];_R(i,u,f.type,l,!0)}for(var p=[],c=s;c<l;c++)for(var v=c-s,h=0;h<n;h++){var f=a[h],d=t1.arrayRows.call(this,e[v]||p,f.property,v,h);i[h][c]=d;var m=o[h];d<m[0]&&(m[0]=d),d>m[1]&&(m[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,i){for(var a=this._provider,n=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=U(o,function(y){return y.property}),f=0;f<s;f++){var p=o[f];l[f]||(l[f]=Pt()),_R(n,f,p.type,t,i)}if(a.fillStorage)a.fillStorage(e,t,n,l);else for(var c=[],v=e;v<t;v++){c=a.getItem(v,c);for(var h=0;h<s;h++){var d=n[h],m=this._dimValueGetter(c,u[h],v,h);d[v]=m;var g=l[h];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=t,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var i=this._chunks[e];return i?i[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var i=[],a=[];if(t==null){t=e,e=[];for(var n=0;n<this._dimensions.length;n++)a.push(n)}else a=e;for(var n=0,o=a.length;n<o;n++)i.push(this.get(a[n],t));return i},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var i=this._chunks[e];return i?i[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],i=0;if(t)for(var a=0,n=this.count();a<n;a++){var o=this.get(e,a);isNaN(o)||(i+=o)}return i},r.prototype.getMedian=function(e){var t=[];this.each([e],function(a){isNaN(a)||t.push(a)}),dt(t);var i=this.count();return i===0?0:i%2===1?t[(i-1)/2]:(t[i/2]+t[i/2-1])/2},r.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,i=t[e];if(i!=null&&i<this._count&&i===e)return e;for(var a=0,n=this._count-1;a<=n;){var o=(a+n)/2|0;if(t[o]<e)a=o+1;else if(t[o]>e)n=o-1;else return o}return-1},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var i=t.constructor,a=this._count;if(i===Array){e=new i(a);for(var n=0;n<a;n++)e[n]=t[n]}else e=new i(t.buffer,0,a)}else{var i=ep(this._rawCount);e=new i(this.count());for(var n=0;n<e.length;n++)e[n]=n}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var i=this.clone(),a=i.count(),n=ep(i._rawCount),o=new n(a),s=[],l=e.length,u=0,f=e[0],p=i._chunks,c=0;c<a;c++){var v=void 0,h=i.getRawIndex(c);if(l===0)v=t(c);else if(l===1){var d=p[f][h];v=t(d,c)}else{for(var m=0;m<l;m++)s[m]=p[e[m]][h];s[m]=c,v=t.apply(null,s)}v&&(o[u++]=h)}return u<a&&(i._indices=o),i._count=u,i._extent=[],i._updateGetRawIdx(),i},r.prototype.selectRange=function(e){var t=this.clone(),i=t._count;if(!i)return this;var a=ye(e),n=a.length;if(!n)return this;var o=t.count(),s=ep(t._rawCount),l=new s(o),u=0,f=a[0],p=e[f][0],c=e[f][1],v=t._chunks,h=!1;if(!t._indices){var d=0;if(n===1){for(var m=v[a[0]],g=0;g<i;g++){var y=m[g];(y>=p&&y<=c||isNaN(y))&&(l[u++]=d),d++}h=!0}else if(n===2){for(var m=v[a[0]],_=v[a[1]],x=e[a[1]][0],S=e[a[1]][1],g=0;g<i;g++){var y=m[g],b=_[g];(y>=p&&y<=c||isNaN(y))&&(b>=x&&b<=S||isNaN(b))&&(l[u++]=d),d++}h=!0}}if(!h)if(n===1)for(var g=0;g<o;g++){var w=t.getRawIndex(g),y=v[a[0]][w];(y>=p&&y<=c||isNaN(y))&&(l[u++]=w)}else for(var g=0;g<o;g++){for(var A=!0,w=t.getRawIndex(g),C=0;C<n;C++){var E=a[C],y=v[E][w];(y<e[E][0]||y>e[E][1])&&(A=!1)}A&&(l[u++]=t.getRawIndex(g))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var i=this.clone(e);return this._updateDims(i,e,t),i},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,i){for(var a=e._chunks,n=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=Pt();for(var p=0;p<s;p++){for(var c=e.getRawIndex(p),v=0;v<o;v++)l[v]=a[t[v]][c];l[o]=p;var h=i&&i.apply(null,l);if(h!=null){typeof h!="object"&&(n[0]=h,h=n);for(var f=0;f<h.length;f++){var d=t[f],m=h[f],g=u[d],y=a[d];y&&(y[c]=m),m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}}}},r.prototype.lttbDownSample=function(e,t){var i=this.clone([e],!0),a=i._chunks,n=a[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,p,c,v=new(ep(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var h=1;h<o-1;h+=l){for(var d=Math.min(h+l,o-1),m=Math.min(h+l*2,o),g=(m+d)/2,y=0,_=d;_<m;_++){var x=this.getRawIndex(_),S=n[x];isNaN(S)||(y+=S)}y/=m-d;var b=h,w=Math.min(h+l,o),A=h-1,C=n[u];f=-1,c=b;for(var E=-1,D=0,_=b;_<w;_++){var x=this.getRawIndex(_),S=n[x];if(isNaN(S)){D++,E<0&&(E=x);continue}p=Math.abs((A-g)*(S-C)-(A-_)*(y-C)),p>f&&(f=p,c=x)}D>0&&D<w-b&&(v[s++]=Math.min(E,c),c=Math.max(E,c)),v[s++]=c,u=c}return v[s++]=this.getRawIndex(o-1),i._count=s,i._indices=v,i.getRawIndex=this._getRawIdx,i},r.prototype.minmaxDownSample=function(e,t){for(var i=this.clone([e],!0),a=i._chunks,n=Math.floor(1/t),o=a[e],s=this.count(),l=new(ep(this._rawCount))(Math.ceil(s/n)*2),u=0,f=0;f<s;f+=n){var p=f,c=o[this.getRawIndex(p)],v=f,h=o[this.getRawIndex(v)],d=n;f+n>s&&(d=s-f);for(var m=0;m<d;m++){var g=this.getRawIndex(f+m),y=o[g];y<c&&(c=y,p=f+m),y>h&&(h=y,v=f+m)}var _=this.getRawIndex(p),x=this.getRawIndex(v);p<v?(l[u++]=_,l[u++]=x):(l[u++]=x,l[u++]=_)}return i._count=u,i._indices=l,i._updateGetRawIdx(),i},r.prototype.downSample=function(e,t,i,a){for(var n=this.clone([e],!0),o=n._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),p=n._rawExtent[e]=Pt(),c=new(ep(this._rawCount))(Math.ceil(f/l)),v=0,h=0;h<f;h+=l){l>f-h&&(l=f-h,s.length=l);for(var d=0;d<l;d++){var m=this.getRawIndex(h+d);s[d]=u[m]}var g=i(s),y=this.getRawIndex(Math.min(h+a(s,g)||0,f-1));u[y]=g,g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g),c[v++]=y}return n._count=v,n._indices=c,n._updateGetRawIdx(),n},r.prototype.each=function(e,t){if(this._count)for(var i=e.length,a=this._chunks,n=0,o=this.count();n<o;n++){var s=this.getRawIndex(n);switch(i){case 0:t(n);break;case 1:t(a[e[0]][s],n);break;case 2:t(a[e[0]][s],a[e[1]][s],n);break;default:for(var l=0,u=[];l<i;l++)u[l]=a[e[l]][s];u[l]=n,t.apply(null,u)}}},r.prototype.getDataExtent=function(e,t){var i=this._chunks[e],a=Pt();if(!i)return a;var n=this.count(),o=!this._indices&&!t;if(o)return this._rawExtent[e].slice();var s=this._extent,l=s[e]||(s[e]={}),u=Sg(t),f=u.key,p=l[f];if(p)return p.slice();for(var c=a[0],v=a[1],h=0;h<n;h++){var d=this.getRawIndex(h),m=i[d];(!t||bg(u,m))&&(m<c&&(c=m),m>v&&(v=m))}return l[f]=[c,v]},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var i=[],a=this._chunks,n=0;n<a.length;n++)i.push(a[n][t]);return i},r.prototype.clone=function(e,t){var i=new r,a=this._chunks,n=e&&tr(e,function(s,l){return s[l]=!0,s},{});if(n)for(var o=0;o<a.length;o++)i._chunks[o]=n[o]?sX(a[o]):a[o];else i._chunks=a;return this._copyCommonProps(i),t||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=ee(this._extent),e._rawExtent=ee(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var i=this._indices.length;t=new e(i);for(var a=0;a<i;a++)t[a]=this._indices[a]}else t=new e(this._indices);return t}return null},r.prototype._getRawIdxIdentity=function(e){return e},r.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function e(t,i,a,n){return ya(t[n],this._dimensions[n])}t1={arrayRows:e,objectRows:function(t,i,a,n){return ya(t[i],this._dimensions[n])},keyedColumns:e,original:function(t,i,a,n){var o=t&&(t.value==null?t:t.value);return ya(o instanceof Array?o[n]:o,this._dimensions[n])},typedArray:function(t,i,a,n){return t[n]}}})(),r})(),Mv=lX;var Tg=(function(){function r(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,t=this._getUpstreamSourceManagers(),i=!!t.length,a,n;if(wg(e)){var o=e,s=void 0,l=void 0,u=void 0;if(i){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,n=[f._getVersionSign()]}else s=o.get("data",!0),l=kt(s)?Gi:sr,n=[];var p=this._getSourceMetaRawOption()||{},c=u&&u.metaRawOption||{},v=Z(p.seriesLayoutBy,c.seriesLayoutBy)||null,h=Z(p.sourceHeader,c.sourceHeader),d=Z(p.dimensions,c.dimensions),m=v!==c.seriesLayoutBy||!!h!=!!c.sourceHeader||d;a=m?[Dv(s,{seriesLayoutBy:v,sourceHeader:h,dimensions:d},l)]:[]}else{var g=e;if(i){var y=this._applyTransform(t);a=y.sourceList,n=y.upstreamSignList}else{var _=g.get("source",!0);a=[Dv(_,this._getSourceMetaRawOption(),null)],n=[]}}this._setLocalSource(a,n)},r.prototype._applyTransform=function(e){var t=this._sourceHost,i=t.get("transform",!0),a=t.get("fromTransformResult",!0);if(a!=null){var n="";e.length!==1&&SR(n)}var o,s=[],l=[];return T(e,function(u){u.prepareSource();var f=u.getSource(a||0),p="";a!=null&&!f&&SR(p),s.push(f),l.push(u._getVersionSign())}),i?o=gR(i,s,{datasetIndex:t.componentIndex}):a!=null&&(o=[sR(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var i=e[t];if(i._isDirty()||this._upstreamSignList[t]!==i._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(e)}return t},r.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},r.prototype._innerGetDataStore=function(e,t,i){var a=0,n=this._storeList,o=n[a];o||(o=n[a]={});var s=o[i];if(!s){var l=this._getUpstreamSourceManagers()[0];wg(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,i):(s=new Mv,s.initData(new yg(t,e.length),e)),o[i]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(wg(e)){var t=fg(e);return t?[t.getSourceManager()]:[]}else return U(UP(e),function(i){return i.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,i,a;if(wg(e))t=e.get("seriesLayoutBy",!0),i=e.get("sourceHeader",!0),a=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var n=e;t=n.get("seriesLayoutBy",!0),i=n.get("sourceHeader",!0),a=n.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:i,dimensions:a}},r})();function i1(r){var e=r.option.transform;e&&jo(r.option.transform)}function wg(r){return r.mainType==="series"}function SR(r){throw new Error(r)}var uX="line-height:1";function bR(r){var e=r.lineHeight;return e==null?uX:"line-height:"+Yt(e+"")+"px"}function wR(r,e){var t=r.color||N.color.tertiary,i=r.fontSize||12,a=r.fontWeight||"400",n=r.color||N.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Yt(i+"")+"px;color:"+Yt(t)+";font-weight:"+Yt(a+""),valueStyle:"font-size:"+Yt(o+"")+"px;color:"+Yt(n)+";font-weight:"+Yt(s+"")}:{nameStyle:{fontSize:i,fill:t,fontWeight:a},valueStyle:{fontSize:o,fill:n,fontWeight:s}}}var fX=[0,10,20,30],pX=["",`
10
+ `,`
11
+
12
+ `,`
13
+
14
+
15
+ `];function ft(r,e){return e.type=r,e}function a1(r){return r.type==="section"}function TR(r){return a1(r)?cX:vX}function CR(r){if(a1(r)){var e=0,t=r.blocks.length,i=t>1||t>0&&!r.noHeader;return T(r.blocks,function(a){var n=CR(a);n>=e&&(e=n+ +(i&&(!n||a1(a)&&!a.noHeader)))}),e}return 0}function cX(r,e,t,i){var a=e.noHeader,n=hX(CR(e)),o=[],s=e.blocks||[];at(!s||V(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ae(u,l)){var f=new xg(u[l],null);s.sort(function(d,m){return f.evaluate(d.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(d,m){var g=e.valueFormatter,y=TR(d)(g?k(k({},r),{valueFormatter:g}):r,d,m>0?n.html:0,i);y!=null&&o.push(y)});var p=r.renderMode==="richText"?o.join(n.richText):n1(i,o.join(""),a?t:n.html);if(a)return p;var c=jm(e.header,"ordinal",r.useUTC),v=wR(i,r.renderMode).nameStyle,h=bR(i);return r.renderMode==="richText"?AR(r,c,v)+n.richText+p:n1(i,'<div style="'+v+";"+h+';">'+Yt(c)+"</div>"+p,t)}function vX(r,e,t,i){var a=r.renderMode,n=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(x){return x=V(x)?x:[x],U(x,function(S,b){return jm(S,V(v)?v[b]:v,u)})};if(!(n&&o)){var p=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||N.color.secondary,a),c=n?"":jm(l,"ordinal",u),v=e.valueType,h=o?[]:f(e.value,e.rawDataIndex),d=!s||!n,m=!s&&n,g=wR(i,a),y=g.nameStyle,_=g.valueStyle;return a==="richText"?(s?"":p)+(n?"":AR(r,c,y))+(o?"":gX(r,h,d,m,_)):n1(i,(s?"":p)+(n?"":dX(c,!s,y))+(o?"":mX(h,d,m,_)),t)}}function o1(r,e,t,i,a,n){if(r){var o=TR(r),s={useUTC:a,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,n)}}function hX(r){return{html:fX[r],richText:pX[r]}}function n1(r,e,t){var i='<div style="clear:both"></div>',a="margin: "+t+"px 0 0",n=bR(r);return'<div style="'+a+";"+n+';">'+e+i+"</div>"}function dX(r,e,t){var i=e?"margin-left:2px":"";return'<span style="'+t+";"+i+'">'+Yt(r)+"</span>"}function mX(r,e,t,i){var a=t?"10px":"20px",n=e?"float:right;margin-left:"+a:"";return r=V(r)?r:[r],'<span style="'+n+";"+i+'">'+U(r,function(o){return Yt(o)}).join("&nbsp;&nbsp;")+"</span>"}function AR(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function gX(r,e,t,i,a){var n=[a],o=i?10:20;return t&&n.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(V(e)?e.join(" "):e,n)}function Cg(r,e){var t=r.getData().getItemVisual(e,"style"),i=t[r.visualDrawType];return Ja(i)}function Ag(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Eg=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=qc()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,i){var a=i==="richText"?this._generateStyleName():null,n=Qm({color:t,type:e,renderMode:i,markerId:a});return H(n)?n:(this.richTextStyles[a]=n.style,n.content)},r.prototype.wrapRichTextStyle=function(e,t){var i={};V(t)?T(t,function(n){return k(i,n)}):k(i,t);var a=this._generateStyleName();return this.richTextStyles[a]=i,"{"+a+"|"+e+"}"},r})();function Dg(r){var e=r.series,t=r.dataIndex,i=r.multipleSeries,a=e.getData(),n=a.mapDimensionsAll("defaultedTooltip"),o=n.length,s=e.getRawValue(t),l=V(s),u=Cg(e,t),f,p,c,v;if(o>1||l&&!o){var h=yX(s,e,t,n,u);f=h.inlineValues,p=h.inlineValueTypes,c=h.blocks,v=h.inlineValues[0]}else if(o){var d=a.getDimensionInfo(n[0]);v=f=Lo(a,t,n[0]),p=d.type}else v=f=l?s[0]:s;var m=Af(e),g=m&&e.name||"",y=a.getName(t),_=i?g:y;return ft("section",{header:g,noHeader:i||!m,sortParam:v,blocks:[ft("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Gt(_),value:f,valueType:p,rawDataIndex:a.getRawIndex(t)})].concat(c||[])})}function yX(r,e,t,i,a){var n=e.getData(),o=tr(r,function(p,c,v){var h=n.getDimensionInfo(v);return p=p||h&&h.tooltip!==!1&&h.displayName!=null},!1),s=[],l=[],u=[];i.length?T(i,function(p){f(Lo(n,t,p),p)}):T(r,f);function f(p,c){var v=n.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(ft("nameValue",{markerType:"subItem",markerColor:a,name:v.displayName,value:p,valueType:v.type})):(s.push(p),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var ws=ne();function Mg(r,e){return r.getName(e)||r.getId(e)}var Iv="__universalTransitionEnabled",Ig=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,i,a){this.seriesIndex=this.componentIndex,this.dataTask=bs({count:xX,reset:SX}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,a);var n=ws(this).sourceManager=new Tg(this);n.prepareSource();var o=this.getInitialData(t,a);DR(o,this),this.dataTask.context.data=o,ws(this).dataBeforeProcessed=o,ER(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,i){var a=xs(this),n=a?Mi(t):{},o=this.subType;Se.hasClass(o)&&(o+="Series"),ve(t,i.getTheme().get(this.subType)),ve(t,this.getDefaultOption()),Fi(t,"label",["show"]),this.fillDataTextStyle(t.data),a&&wr(t,n,a)},e.prototype.mergeOption=function(t,i){t=ve(this.option,t,!0),this.fillDataTextStyle(t.data);var a=xs(this);a&&wr(this.option,t,a);var n=ws(this).sourceManager;n.dirty(),n.prepareSource();var o=this.getInitialData(t,i);DR(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,ws(this).dataBeforeProcessed=o,ER(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!kt(t))for(var i=["show"],a=0;a<t.length;a++)t[a]&&t[a].label&&Fi(t[a],"label",i)},e.prototype.getInitialData=function(t,i){},e.prototype.appendData=function(t){var i=this.getRawData();i.appendData(t.data)},e.prototype.getData=function(t){var i=s1(this);if(i){var a=i.context.data;return t==null||!a.getLinkedData?a:a.getLinkedData(t)}else return ws(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var i=s1(this);if(i){var a=i.context;a.outputData=t,i!==this.dataTask&&(a.data=t)}ws(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return W(t)},e.prototype.getSourceManager=function(){return ws(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return ws(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var t=this.get("colorBy");return t||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},e.prototype.indicesOfNearest=function(t,i,a,n){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(t);if(!s||!l)return[];var u=l.dataToCoord(a);n==null&&(n=1/0);for(var f=[],p=1/0,c=-1,v=0,h=o.getDimensionIndex(i),d=o.getStore(),m=0,g=d.count();m<g;m++){var y=d.get(h,m),_=l.dataToCoord(y),x=u-_,S=Math.abs(x);S<=n&&((S<p||S===p&&x>=0&&c<0)&&(p=S,c=x,v=0),x===c&&(f[v++]=m))}return f.length=v,f},e.prototype.formatTooltip=function(t,i,a){return Dg({series:this,dataIndex:t,multipleSeries:i})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(Re.node&&!(t&&t.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,i,a){var n=this.ecModel,o=bv.prototype.getColorFromPalette.call(this,t,i,a);return o||(o=n.getColorFromPalette(t,i,a)),o},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,i){this._innerSelect(this.getData(i),t)},e.prototype.unselect=function(t,i){var a=this.option.selectedMap;if(a){var n=this.option.selectedMode,o=this.getData(i);if(n==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=Mg(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,i){for(var a=[],n=0;n<t.length;n++)a[0]=t[n],this.isSelected(t[n],i)?this.unselect(a,i):this.select(a,i)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,i=ye(t),a=[],n=0;n<i.length;n++){var o=t[i[n]];o>=0&&a.push(o)}return a},e.prototype.isSelected=function(t,i){var a=this.option.selectedMap;if(!a)return!1;var n=this.getData(i);return(a==="all"||a[Mg(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Iv])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,i){var a,n,o=this.option,s=o.selectedMode,l=i.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){te(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var p=i[f],c=Mg(t,p);u[c]=!0,this._selectedDataIndicesMap[c]=t.getRawIndex(p)}}else if(s==="single"||s===!0){var v=i[l-1],c=Mg(t,v);o.selectedMap=(a={},a[c]=!0,a),this._selectedDataIndicesMap=(n={},n[c]=t.getRawIndex(v),n)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var i=[];t.hasItemOption&&t.each(function(a){var n=t.getRawDataItem(a);n&&n.selected&&i.push(a)}),i.length>0&&this._innerSelect(t,i)}},e.registerClass=function(t){return Se.registerClass(t)},e.protoInitialize=(function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"})(),e})(Se);rt(Ig,hu);rt(Ig,bv);Qd(Ig,Se);function ER(r){var e=r.name;Af(r)||(r.name=_X(r)||e)}function _X(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),i=[];return T(t,function(a){var n=e.getDimensionInfo(a);n.displayName&&i.push(n.displayName)}),i.join(" ")}function xX(r){return r.model.getRawData().count()}function SX(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),bX}function bX(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function DR(r,e){T(_n(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,me(wX,e))})}function wX(r,e){var t=s1(r);return t&&t.setOutputEnd((e||this).count()),e}function s1(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var i=t.currentTask;if(i){var a=i.agentStubMap;a&&(i=a.get(r.uid))}return i}}var ke=Ig;var l1=(function(){function r(){this.group=new Q,this.uid=Ei("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,a){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,a){},r.prototype.updateLayout=function(e,t,i,a){},r.prototype.updateVisual=function(e,t,i,a){},r.prototype.toggleBlurSeries=function(e,t,i){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r})();Mf(l1);fs(l1);var ze=l1;function qr(){var r=ne();return function(e){var t=r(e),i=e.pipelineContext,a=!!t.large,n=!!t.progressiveRender,o=t.large=!!(i&&i.large),s=t.progressiveRender=!!(i&&i.progressiveRender);return(a!==o||n!==s)&&"reset"}}var LR=ne(),TX=qr(),u1=(function(){function r(){this.group=new Q,this.uid=Ei("viewChart"),this.renderTask=bs({plan:CX,reset:AX}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,i,a){},r.prototype.highlight=function(e,t,i,a){var n=e.getData(a&&a.dataType);n&&IR(n,a,"emphasis")},r.prototype.downplay=function(e,t,i,a){var n=e.getData(a&&a.dataType);n&&IR(n,a,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.updateVisual=function(e,t,i,a){this.render(e,t,i,a)},r.prototype.eachRendered=function(e){Kr(this.group,e)},r.markUpdateMethod=function(e,t){LR(e).updateMethod=t},r.protoInitialize=(function(){var e=r.prototype;e.type="chart"})(),r})();function MR(r,e,t){r&&gs(r)&&(e==="emphasis"?Pr:Rr)(r,t)}function IR(r,e,t){var i=la(r,e),a=e&&e.highlightKey!=null?AL(e.highlightKey):null;i!=null?T(We(i),function(n){MR(r.getItemGraphicEl(n),t,a)}):r.eachItemGraphicEl(function(n){MR(n,t,a)})}Mf(u1,["dispose"]);fs(u1);function CX(r){return TX(r.model)}function AX(r){var e=r.model,t=r.ecModel,i=r.api,a=r.payload,n=e.pipelineContext.progressiveRender,o=r.view,s=a&&LR(a).updateMethod,l=n?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,i,a),EX[l]}var EX={incrementalPrepareRender:{progress:function(r,e){e.view.incrementalRender(r,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(r,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},Le=u1;var Lg="\0__throttleOriginMethod",PR="\0__throttleRate",RR="\0__throttleType";function tp(r,e,t){var i,a=0,n=0,o=null,s,l,u,f;e=e||0;function p(){n=new Date().getTime(),o=null,r.apply(l,u||[])}var c=function(){for(var v=[],h=0;h<arguments.length;h++)v[h]=arguments[h];i=new Date().getTime(),l=this,u=v;var d=f||e,m=f||t;f=null,s=i-(m?a:n)-d,clearTimeout(o),m?o=setTimeout(p,d):s>=0?p():o=setTimeout(p,-s),a=i};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function _a(r,e,t,i){var a=r[e];if(a){var n=a[Lg]||a,o=a[RR],s=a[PR];if(s!==t||o!==i){if(t==null||!i)return r[e]=n;a=r[e]=tp(n,t,i==="debounce"),a[Lg]=n,a[RR]=i,a[PR]=t}return a}}function Po(r,e){var t=r[e];t&&t[Lg]&&(t.clear&&t.clear(),r[e]=t[Lg])}var OR=ne(),NR={itemStyle:xi(yb,!0),lineStyle:xi(gb,!0)},DX={lineStyle:"stroke",itemStyle:"fill"};function kR(r,e){var t=r.visualStyleMapper||NR[e];return t||(console.warn("Unknown style type '"+e+"'."),NR.itemStyle)}function zR(r,e){var t=r.visualDrawType||DX[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var VR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=r.getModel(i),n=kR(r,i),o=n(a),s=a.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=zR(r,i),u=o[l],f=J(u)?u:null,p=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||p){var c=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=c,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||J(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||J(o.stroke)?c:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(v,h){var d=r.getDataParams(h),m=k({},o);m[l]=f(d),v.setItemVisual(h,"style",m)}}}},Lv=new Ee,UR={createOnAllSeries:!0,reset:function(r,e){if(!r.ignoreStyleOnData){var t=r.getData(),i=r.visualStyleAccessPath||"itemStyle",a=kR(r,i),n=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[i]){Lv.option=l[i];var u=a(Lv),f=o.ensureUniqueItemVisual(s,"style");k(f,u),Lv.option.decal&&(o.setItemVisual(s,"decal",Lv.option.decal),Lv.option.decal.dirty=!0),n in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},BR={performRawSeries:!0,overallReset:function(r){var e=W();r.eachSeries(function(t){if(!t.isColorBySeries()){var i=t.type+"-"+t.getColorBy();OR(t).scope=e.get(i)||e.set(i,{})}}),r.eachSeries(function(t){if(!t.isColorBySeries()){var i=t.getRawData(),a={},n=t.getData(),o=OR(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=zR(t,s);n.each(function(u){var f=n.getRawIndex(u);a[f]=u}),i.each(function(u){var f=a[u],p=n.getItemVisual(f,"colorFromPalette");if(p){var c=n.ensureUniqueItemVisual(f,"style"),v=i.getName(u)||u+"",h=i.count();c[l]=t.getColorFromPalette(v,o,h)}})}})}};var Rg=Math.PI;function f1(r,e){e=e||{},$(e,{text:"loading",textColor:N.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:N.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var t=new Q,i=new de({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(i);var a=new be({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),n=new de({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(n);var o;return e.showSpinner&&(o=new Jl({shape:{startAngle:-Rg/2,endAngle:-Rg/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Rg*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Rg*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=a.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(r.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;e.showSpinner&&o.setShape({cx:u,cy:f}),n.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),i.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var MX=(function(){function r(e,t,i,a){this._stageTaskMap=W(),this.ecInstance=e,this.api=t,i=this._dataProcessorHandlers=i.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=i.concat(a)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(i){var a=i.overallTask;a&&a.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var i=this._pipelineMap.get(e.__pipeline.id),a=i.context,n=!t&&i.progressiveEnabled&&(!a||a.progressiveRender)&&e.__idxInPipeline>i.blockIndex,o=n?i.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},r.prototype.updateStreamModes=function(e,t){var i=this._pipelineMap.get(e.uid),a=e.__preparePipelineContext?e.__preparePipelineContext(t,i):Jd(e,t,i);e.pipelineContext=i.context=a},r.prototype.restorePipelines=function(e,t){var i=this,a=i._pipelineMap=W();t.eachSeries(function(n){var o=e.painter.type==="canvas"&&n.getProgressive(),s=n.uid;a.set(s,{id:s,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:o&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),i._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),i=this.api;T(this._allHandlers,function(a){var n=e.get(a.uid)||e.set(a.uid,{}),o="";at(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,n,t,i),a.overallReset&&this._createOverallStageTask(a,n,t,i)},this)},r.prototype.prepareView=function(e,t,i,a){var n=e.renderTask,o=n.context;o.model=t,o.ecModel=i,o.api=a,n.__block=!e.incrementalPrepareRender,this._pipe(t,n)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,i){this._performStageTasks(this._visualHandlers,e,t,i)},r.prototype._performStageTasks=function(e,t,i,a){a=a||{};var n=!1,o=this;T(e,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),p=f.seriesTaskMap,c=f.overallTask;if(c){var v,h=c.agentStubMap;h.each(function(m){s(a,m)&&(m.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,i);var d=o.getPerformArgs(c,a.block);h.each(function(m){m.perform(d)}),c.perform(d)&&(n=!0)}else p&&p.each(function(m,g){s(a,m)&&m.dirty();var y=o.getPerformArgs(m,a.block);y.skip=!l.performRawSeries&&t.isSeriesFiltered(m.context.model),o.updatePayload(m,i),m.perform(y)&&(n=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=n||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(i){t=i.dataTask.perform()||t}),this.unfinished=t||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},r.prototype.updatePayload=function(e,t){t!=="remain"&&(e.context.payload=t)},r.prototype._createSeriesStageTask=function(e,t,i,a){var n=this,o=t.seriesTaskMap,s=t.seriesTaskMap=W(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?i.eachRawSeries(f):l?i.eachRawSeriesByType(l,f):u&&u(i,a).each(f);function f(p){var c=p.uid,v=s.set(c,o&&o.get(c)||bs({plan:OX,reset:NX,count:zX}));v.context={model:p,ecModel:i,api:a,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:n},n._pipe(p,v)}},r.prototype._createOverallStageTask=function(e,t,i,a){var n=this,o=t.overallTask=t.overallTask||bs({reset:IX});o.context={ecModel:i,api:a,overallReset:e.overallReset,scheduler:n};var s=o.agentStubMap,l=o.agentStubMap=W(),u=e.seriesType,f=e.getTargetSeries,p=e.dirtyOnOverallProgress,c=!1,v="";at(!e.createOnAllSeries,v),u?i.eachRawSeriesByType(u,h):f?f(i,a).each(h):T(i.getSeries(),h);function h(d){var m=d.uid,g=l.set(m,s&&s.get(m)||(c=!0,bs({reset:LX,onDirty:RX})));g.context={model:d,dirtyOnOverallProgress:p},g.agent=o,g.__block=p,n._pipe(d,g)}c&&o.dirty()},r.prototype._pipe=function(e,t){var i=e.uid,a=this._pipelineMap.get(i);!a.head&&(a.head=t),a.tail&&a.tail.pipe(t),a.tail=t,t.__idxInPipeline=a.count++,t.__pipeline=a},r.wrapStageHandler=function(e,t){return J(e)&&(e={overallReset:e,seriesType:VX(e)}),e.uid=Ei("stageHandler"),t&&(e.visualType=t),e},r})();function IX(r){r.overallReset(r.ecModel,r.api,r.payload)}function LX(r){return r.dirtyOnOverallProgress&&PX}function PX(){this.agent.dirty(),this.getDownstream().dirty()}function RX(){this.agent&&this.agent.dirty()}function OX(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function NX(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=We(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?U(e,function(t,i){return FR(i)}):kX}var kX=FR(0);function FR(r){return function(e,t){var i=t.data,a=t.resetDefines[r];if(a&&a.dataEach)for(var n=e.start;n<e.end;n++)a.dataEach(i,n);else a&&a.progress&&a.progress(e,i)}}function zX(r){return r.data.count()}function VX(r){Og=null;try{r(Pv,GR)}catch{}return Og}var Pv={},GR={},Og;HR(Pv,vg);HR(GR,sm);Pv.eachSeriesByType=Pv.eachRawSeriesByType=function(r){Og=r};Pv.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Og=r.subType)};function HR(r,e){for(var t in e.prototype)r[t]=et}var p1=MX;var ge=N.darkColor,YR=ge.background,Rv=function(){return{axisLine:{lineStyle:{color:ge.axisLine}},splitLine:{lineStyle:{color:ge.axisSplitLine}},splitArea:{areaStyle:{color:[ge.backgroundTint,ge.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:ge.axisMinorSplitLine}},axisLabel:{color:ge.axisLabel},axisName:{}}},WR={label:{color:ge.secondary},itemStyle:{borderColor:ge.borderTint},dividerLineStyle:{color:ge.border}},XR={darkMode:!0,color:ge.theme,backgroundColor:YR,axisPointer:{lineStyle:{color:ge.border},crossStyle:{color:ge.borderShade},label:{color:ge.tertiary}},legend:{textStyle:{color:ge.secondary},pageTextStyle:{color:ge.tertiary}},textStyle:{color:ge.secondary},title:{textStyle:{color:ge.primary},subtextStyle:{color:ge.quaternary}},toolbox:{iconStyle:{borderColor:ge.accent50},feature:{dataView:{backgroundColor:YR,textColor:ge.primary,textareaColor:ge.background,textareaBorderColor:ge.border,buttonColor:ge.accent50,buttonTextColor:ge.neutral00}}},tooltip:{backgroundColor:ge.neutral20,defaultBorderColor:ge.border,textStyle:{color:ge.tertiary}},dataZoom:{borderColor:ge.accent10,textStyle:{color:ge.tertiary},brushStyle:{color:ge.backgroundTint},handleStyle:{color:ge.neutral00,borderColor:ge.accent20},moveHandleStyle:{color:ge.accent40},emphasis:{handleStyle:{borderColor:ge.accent50}},dataBackground:{lineStyle:{color:ge.accent30},areaStyle:{color:ge.accent20}},selectedDataBackground:{lineStyle:{color:ge.accent50},areaStyle:{color:ge.accent30}}},visualMap:{textStyle:{color:ge.secondary},handleStyle:{borderColor:ge.neutral30}},timeline:{lineStyle:{color:ge.accent10},label:{color:ge.tertiary},controlStyle:{color:ge.accent30,borderColor:ge.accent30}},calendar:{itemStyle:{color:ge.neutral00,borderColor:ge.neutral20},dayLabel:{color:ge.tertiary},monthLabel:{color:ge.secondary},yearLabel:{color:ge.secondary}},matrix:{x:WR,y:WR,backgroundColor:{borderColor:ge.axisLine},body:{itemStyle:{borderColor:ge.borderTint}}},timeAxis:Rv(),logAxis:Rv(),valueAxis:Rv(),categoryAxis:Rv(),line:{symbol:"circle"},graph:{color:ge.theme},gauge:{title:{color:ge.secondary},axisLine:{lineStyle:{color:[[1,ge.neutral05]]}},axisLabel:{color:ge.axisLabel},detail:{color:ge.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:ge.background}},radar:(function(){var r=Rv();return r.axisName={color:ge.axisLabel},r.axisLine.lineStyle.color=ge.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:ge.neutral20,textStyle:{color:ge.secondary}},emphasis:{itemStyle:{color:ge.neutral30}}}},sunburst:{itemStyle:{borderColor:ge.background}},map:{itemStyle:{borderColor:ge.border,areaColor:ge.neutral10},label:{color:ge.tertiary},emphasis:{label:{color:ge.primary},itemStyle:{areaColor:ge.highlight}},select:{label:{color:ge.primary},itemStyle:{areaColor:ge.highlight}}},geo:{itemStyle:{borderColor:ge.border,areaColor:ge.neutral10},emphasis:{label:{color:ge.primary},itemStyle:{areaColor:ge.highlight}},select:{label:{color:ge.primary},itemStyle:{color:ge.highlight}}}};XR.categoryAxis.splitLine.show=!1;var ZR=XR;var KR=(function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},i={},a={};if(H(e)){var n=_i(e);t.mainType=n.main||null,t.subType=n.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(e,function(l,u){for(var f=!1,p=0;p<o.length;p++){var c=o[p],v=u.lastIndexOf(c);if(v>0&&v===u.length-c.length){var h=u.slice(0,v);h!=="data"&&(t.mainType=h,t[c.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(i[u]=l,f=!0),f||(a[u]=l)})}return{cptQuery:t,dataQuery:i,otherQuery:a}},r.prototype.filter=function(e,t){var i=this.eventInfo;if(!i)return!0;var a=i.targetEl,n=i.packedEvent,o=i.model,s=i.view;if(!o||!s)return!0;var l=t.cptQuery,u=t.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,n,"name")&&f(u,n,"dataIndex")&&f(u,n,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,a,n));function f(p,c,v,h){return p[v]==null||c[h||v]===p[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})();var c1=["symbol","symbolSize","symbolRotate","symbolOffset"],qR=c1.concat(["symbolKeepAspect"]),jR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData();if(r.legendIcon&&t.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var i={},a={},n=!1,o=0;o<c1.length;o++){var s=c1[o],l=r.get(s);J(l)?(n=!0,a[s]=l):i[s]=l}if(i.symbol=i.symbol||r.defaultSymbol,t.setVisual(k({legendIcon:r.legendIcon||i.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},i)),e.isSeriesFiltered(r))return;var u=ye(a);function f(p,c){for(var v=r.getRawValue(c),h=r.getDataParams(c),d=0;d<u.length;d++){var m=u[d];p.setItemVisual(c,m,a[m](v,h))}}return{dataEach:n?f:null}}},JR={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function i(a,n){for(var o=a.getItemModel(n),s=0;s<qR.length;s++){var l=qR[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(n,l,u)}}return{dataEach:t.hasItemOption?i:null}}};function Ov(r,e,t){switch(t){case"color":var i=r.getItemVisual(e,"style");return i[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t);default:}}function Gn(r,e){switch(e){case"color":var t=r.getVisual("style");return t[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(e);default:}}function v1(r,e,t,i){switch(t){case"color":var a=r.ensureUniqueItemVisual(e,"style");a[r.getVisual("drawType")]=i,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,i);break;default:}}function Ng(r,e){function t(i,a){var n=[];return i.eachComponent({mainType:"series",subType:r,query:a},function(o){n.push(o.seriesIndex)}),n}T([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(i){e(i[0],function(a,n,o){a=k({},a),o.dispatchAction(k(a,{type:i[1],seriesIndex:t(n,a)}))})})}function rp(r,e,t,i,a){var n=r+e;t.isSilent(n)||i.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var p=o.getData(),c=la(p,a.fromActionPayload);t.trigger(n,{type:n,seriesId:o.id,name:V(c)?p.getName(c[0]):p.getName(c),selected:H(l)?l:k({},l)})}})}function QR(r,e,t){r.on("selectchanged",function(i){var a=t.getModel();i.isFromClick?(rp("map","selectchanged",e,a,i),rp("pie","selectchanged",e,a,i)):i.fromAction==="select"?(rp("map","selected",e,a,i),rp("pie","selected",e,a,i)):i.fromAction==="unselect"&&(rp("map","unselected",e,a,i),rp("pie","unselected",e,a,i))})}function en(r,e,t){for(var i;r&&!(e(r)&&(i=r,t));)r=r.__hostTarget||r.parent;return i}var UX=new Jt,Wi=UX;var $R={};function eO(r,e){$R[r]=e}function h1(r){return $R[r]}var tO={};function kg(r,e){tO[r]=e}function rO(r){return tO[r]}var zg=ne();function iO(r){zg(r).prepare={}}function aO(r){zg(r).fullUpdate={}}function Vg(r){return zg(r).prepare}function du(r){return zg(r).fullUpdate}var BX=Math.round(Math.random()*9),FX=typeof Object.defineProperty=="function",GX=(function(){function r(){this._id="__ec_inner_"+BX++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var i=this._guard(e);return FX?Object.defineProperty(i,this._id,{value:t,enumerable:!1,configurable:!0}):i[this._id]=t,this},r.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},r.prototype.has=function(e){return!!this._guard(e)[this._id]},r.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},r})(),nO=GX;var HX=ce.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,i=e.cy,a=e.width/2,n=e.height/2;r.moveTo(t,i-n),r.lineTo(t+a,i+n),r.lineTo(t-a,i+n),r.closePath()}}),YX=ce.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,i=e.cy,a=e.width/2,n=e.height/2;r.moveTo(t,i-n),r.lineTo(t+a,i),r.lineTo(t,i+n),r.lineTo(t-a,i),r.closePath()}}),WX=ce.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,i=e.y,a=e.width/5*3,n=Math.max(a,e.height),o=a/2,s=o*o/(n-o),l=i-n+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,p=Math.sin(u),c=Math.cos(u),v=o*.6,h=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-p*v,l+s+c*v,t,i-h,t,i),r.bezierCurveTo(t,i-h,t-f+p*v,l+s+c*v,t-f,l+s),r.closePath()}}),XX=ce.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,i=e.width,a=e.x,n=e.y,o=i/3*2;r.moveTo(a,n),r.lineTo(a+o,n+t),r.lineTo(a,n+t/4*3),r.lineTo(a-o,n+t),r.lineTo(a,n),r.closePath()}}),ZX={line:ut,rect:de,roundRect:de,square:de,circle:Sr,diamond:YX,pin:WX,arrow:XX,triangle:HX},KX={line:function(r,e,t,i,a){a.x1=r,a.y1=e+i/2,a.x2=r+t,a.y2=e+i/2},rect:function(r,e,t,i,a){a.x=r,a.y=e,a.width=t,a.height=i},roundRect:function(r,e,t,i,a){a.x=r,a.y=e,a.width=t,a.height=i,a.r=Math.min(t,i)/4},square:function(r,e,t,i,a){var n=Math.min(t,i);a.x=r,a.y=e,a.width=n,a.height=n},circle:function(r,e,t,i,a){a.cx=r+t/2,a.cy=e+i/2,a.r=Math.min(t,i)/2},diamond:function(r,e,t,i,a){a.cx=r+t/2,a.cy=e+i/2,a.width=t,a.height=i},pin:function(r,e,t,i,a){a.x=r+t/2,a.y=e+i/2,a.width=t,a.height=i},arrow:function(r,e,t,i,a){a.x=r+t/2,a.y=e+i/2,a.width=t,a.height=i},triangle:function(r,e,t,i,a){a.cx=r+t/2,a.cy=e+i/2,a.width=t,a.height=i}},Nv={};T(ZX,function(r,e){Nv[e]=new r});var qX=ce.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var i=Rl(r,e,t),a=this.shape;return a&&a.symbolType==="pin"&&e.position==="inside"&&(i.y=t.y+t.height*.4),i},buildPath:function(r,e,t){var i=e.symbolType;if(i!=="none"){var a=Nv[i];a||(i="rect",a=Nv[i]),KX[i](e.x,e.y,e.width,e.height,a.shape),a.buildPath(r,a.shape,t)}}});function jX(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||N.color.neutral00,t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function je(r,e,t,i,a,n,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=vv(r.slice(8),new oe(e,t,i,a),o?"center":"cover"):r.indexOf("path://")===0?l=Co(r.slice(7),{},new oe(e,t,i,a),o?"center":"cover"):l=new qX({shape:{symbolType:r,x:e,y:t,width:i,height:a}}),l.__isEmptyBrush=s,l.setColor=jX,n&&l.setColor(n),l}function tn(r){return V(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Xi(r,e){if(r!=null)return V(r)||(r=[r,r]),[j(r[0],e[0])||0,j(Z(r[1],r[0]),e[1])||0]}function mu(r){return isFinite(r)}function JX(r,e,t){var i=e.x==null?0:e.x,a=e.x2==null?1:e.x2,n=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(i=i*t.width+t.x,a=a*t.width+t.x,n=n*t.height+t.y,o=o*t.height+t.y),i=mu(i)?i:0,a=mu(a)?a:1,n=mu(n)?n:0,o=mu(o)?o:0;var s=r.createLinearGradient(i,n,a,o);return s}function QX(r,e,t){var i=t.width,a=t.height,n=Math.min(i,a),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*i+t.x,s=s*a+t.y,l=l*n),o=mu(o)?o:.5,s=mu(s)?s:.5,l=l>=0&&mu(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function kv(r,e,t){for(var i=e.type==="radial"?QX(r,e,t):JX(r,e,t),a=e.colorStops,n=0;n<a.length;n++)i.addColorStop(a[n].offset,a[n].color);return i}function sO(r,e){if(r===e||!r&&!e)return!1;if(!r||!e||r.length!==e.length)return!0;for(var t=0;t<r.length;t++)if(r[t]!==e[t])return!0;return!1}function Ug(r){return parseInt(r,10)}function Ts(r,e,t){var i=["width","height"][e],a=["clientWidth","clientHeight"][e],n=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[i]!=null&&t[i]!=="auto")return parseFloat(t[i]);var s=document.defaultView.getComputedStyle(r);return(r[a]||Ug(s[i])||Ug(r.style[i]))-(Ug(s[n])||0)-(Ug(s[o])||0)||0}function $X(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:_e(r)?[r]:V(r)?r:null}function zv(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&$X(e.lineDash,e.lineWidth),i=e.lineDashOffset;if(t){var a=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;a&&a!==1&&(t=U(t,function(n){return n/a}),i/=a)}return[t,i]}var eZ=new or(!0);function Bg(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function lO(r){return typeof r=="string"&&r!=="none"}function Fg(r){var e=r.fill;return e!=null&&e!=="none"}function uO(r,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.fillOpacity*e.opacity,r.fill(),r.globalAlpha=t}else r.fill()}function fO(r,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var t=r.globalAlpha;r.globalAlpha=e.strokeOpacity*e.opacity,r.stroke(),r.globalAlpha=t}else r.stroke()}function Gg(r,e,t){var i=ev(e.image,e.__image,t);if(If(i)){var a=r.createPattern(i,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var n=new DOMMatrix;n.translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*cl),n.scaleSelf(e.scaleX||1,e.scaleY||1),a.setTransform(n)}return a}}function tZ(r,e,t,i,a){var n,o=Bg(t),s=Fg(t),l=t.strokePercent,u=l<1,f=!e.path;(!e.silent||u)&&f&&e.createPathProxy();var p=e.path||eZ,c=e.__dirty;if(!i){var v=t.fill,h=t.stroke,d=s&&!!v.colorStops,m=o&&!!h.colorStops,g=s&&!!v.image,y=o&&!!h.image,_=void 0,x=void 0,S=void 0,b=void 0,w=void 0;(d||m)&&(w=e.getBoundingRect()),d&&(_=c?kv(r,v,w):e.__canvasFillGradient,e.__canvasFillGradient=_),m&&(x=c?kv(r,h,w):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),g&&(S=c||!e.__canvasFillPattern?Gg(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(b=c||!e.__canvasStrokePattern?Gg(r,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=b),d?r.fillStyle=_:g&&(S?r.fillStyle=S:s=!1),m?r.strokeStyle=x:y&&(b?r.strokeStyle=b:o=!1)}var A=e.getGlobalScale();p.setScale(A[0],A[1],e.segmentIgnoreThreshold);var C,E;r.setLineDash&&t.lineDash&&(n=zv(e),C=n[0],E=n[1]);var D=!0;(f||c&Jo)&&(p.setDPR(r.dpr),u?p.setContext(null):(p.setContext(r),D=!1),p.reset(),e.buildPath(p,e.shape,i),p.toStatic(),e.pathUpdated()),D&&p.rebuildPath(r,u?l:1),C&&(r.setLineDash(C),r.lineDashOffset=E),i?(a.batchFill=s,a.batchStroke=o):t.strokeFirst?(o&&fO(r,t),s&&uO(r,t)):(s&&uO(r,t),o&&fO(r,t)),C&&r.setLineDash([])}function rZ(r,e,t){var i=e.__image=ev(t.image,e.__image,e,e.onload);if(!(!i||!If(i))){var a=t.x||0,n=t.y||0,o=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=i.width,s=i.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(i,u,f,t.sWidth,t.sHeight,a,n,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,p=o-u,c=s-f;r.drawImage(i,u,f,p,c,a,n,o,s)}else r.drawImage(i,a,n,o,s)}}function iZ(r,e,t){var i,a=t.text;if(a!=null&&(a+=""),a){r.font=t.font||li,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var n=void 0,o=void 0;r.setLineDash&&t.lineDash&&(i=zv(e),n=i[0],o=i[1]),n&&(r.setLineDash(n),r.lineDashOffset=o),t.strokeFirst?(Bg(t)&&r.strokeText(a,t.x,t.y),Fg(t)&&r.fillText(a,t.x,t.y)):(Fg(t)&&r.fillText(a,t.x,t.y),Bg(t)&&r.strokeText(a,t.x,t.y)),n&&r.setLineDash([])}}var pO=["shadowBlur","shadowOffsetX","shadowOffsetY"],cO=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function yO(r,e,t,i,a){var n=!1;if(!i&&(t=t||{},e===t))return!1;if(i||e.opacity!==t.opacity){jr(r,a),n=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?In.opacity:o}(i||e.blend!==t.blend)&&(n||(jr(r,a),n=!0),r.globalCompositeOperation=e.blend||In.blend);for(var s=0;s<pO.length;s++){var l=pO[s];(i||e[l]!==t[l])&&(n||(jr(r,a),n=!0),r[l]=r.dpr*(e[l]||0))}return(i||e.shadowColor!==t.shadowColor)&&(n||(jr(r,a),n=!0),r.shadowColor=e.shadowColor||In.shadowColor),n}function vO(r,e,t,i,a){var n=e.style,o=i?null:t&&t.style||{};if(n===o)return!1;var s=yO(r,n,o,i,a);if((i||n.fill!==o.fill)&&(s||(jr(r,a),s=!0),lO(n.fill)&&(r.fillStyle=n.fill)),(i||n.stroke!==o.stroke)&&(s||(jr(r,a),s=!0),lO(n.stroke)&&(r.strokeStyle=n.stroke)),(i||n.opacity!==o.opacity)&&(s||(jr(r,a),s=!0),r.globalAlpha=n.opacity==null?1:n.opacity),e.hasStroke()){var l=n.lineWidth,u=l/(n.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(jr(r,a),s=!0),r.lineWidth=u)}for(var f=0;f<cO.length;f++){var p=cO[f],c=p[0];(i||n[c]!==o[c])&&(s||(jr(r,a),s=!0),r[c]=n[c]||p[1])}return s}function aZ(r,e,t,i,a){return yO(r,e.style,t&&t.style,i,a)}function _O(r,e){var t=e.transform,i=r.dpr||1;t?r.setTransform(i*t[0],i*t[1],i*t[2],i*t[3],i*t[4],i*t[5]):r.setTransform(i,0,0,i,0,0)}function nZ(r,e,t){for(var i=!1,a=0;a<r.length;a++){var n=r[a];i=i||n.isZeroArea(),_O(e,n),e.beginPath(),n.buildPath(e,n.shape),e.clip()}t.allClipped=i}function oZ(r,e){return r&&e?r[0]!==e[0]||r[1]!==e[1]||r[2]!==e[2]||r[3]!==e[3]||r[4]!==e[4]||r[5]!==e[5]:!(!r&&!e)}var hO=1,dO=2,mO=3,gO=4;function sZ(r){var e=Fg(r),t=Bg(r);return!(r.lineDash||!(+e^+t)||e&&typeof r.fill!="string"||t&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function jr(r,e){e.batchFill&&(e.batchFill=!1,r.fill()),e.batchStroke&&(e.batchStroke=!1,r.stroke())}function Vv(r,e){var t={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Cs(r,e,t),gu(r,t)}function Cs(r,e,t){var i=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~$t,e.__isRendered=!1;return}var a=e.__clipPaths,n=t.prevElClipPaths,o=e.style,s=!1,l=!1;if((!n||sO(a,n))&&(n&&(jr(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),a&&a.length&&(jr(r,t),r.save(),nZ(a,r,t),s=!0,t.prevElClipPaths=a)),t.allClipped){e.__dirty&=~$t,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(t.beforeBrushParam),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof ce&&e.autoBatch&&sZ(o);s||oZ(i,u.transform)?(jr(r,t),_O(r,e)):f||jr(r,t),e instanceof ce?(t.lastDrawType!==hO&&(l=!0,t.lastDrawType=hO),vO(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),tZ(r,e,o,f,t)):e instanceof yo?(t.lastDrawType!==mO&&(l=!0,t.lastDrawType=mO),vO(r,e,u,l,t),iZ(r,e,o)):e instanceof lt?(t.lastDrawType!==dO&&(l=!0,t.lastDrawType=dO),aZ(r,e,u,l,t),rZ(r,e,o)):e.getTemporalDisplayables&&(t.lastDrawType!==gO&&(l=!0,t.lastDrawType=gO),lZ(r,e,t)),e.innerAfterBrush(),e.afterBrush&&(f&&jr(r,t),e.afterBrush()),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function gu(r,e){jr(r,e),e.prevElClipPaths&&r.restore()}function lZ(r,e,t){var i=e.getDisplayables(),a=e.getTemporalDisplayables();r.save();var n={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover,beforeBrushParam:{}},o,s;for(o=e.getCursor(),s=i.length;o<s;o++){var l=i[o];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),Cs(r,l,n),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}gu(r,n);for(var u=0,f=a.length;u<f;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(t.beforeBrushParam),l.innerBeforeBrush(),Cs(r,l,n),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),n.prevEl=l}gu(r,n),e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var d1=new nO,xO=new bn(100),SO=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function rn(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),i=e.getZr(),a=i.painter.type==="svg";r.dirty&&d1.delete(r);var n=d1.get(r);if(n)return n;var o=$(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/t,d1.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],p=!0,c=0;c<SO.length;++c){var v=o[SO[c]];if(v!=null&&!V(v)&&!H(v)&&!_e(v)&&typeof v!="boolean"){p=!1;break}f.push(v)}var h;if(p){h=f.join(",")+(a?"-svg":"");var d=xO.get(h);d&&(a?u.svgElement=d:u.image=d)}var m=wO(o.dashArrayX),g=uZ(o.dashArrayY),y=bO(o.symbol),_=fZ(m),x=TO(g),S=!a&&wt.createCanvas(),b=a&&{tag:"g",attrs:{},key:"dcl",children:[]},w=C(),A;S&&(S.width=w.width*t,S.height=w.height*t,A=S.getContext("2d")),E(),p&&xO.put(h,S||b),u.image=S,u.svgElement=b,u.svgWidth=w.width,u.svgHeight=w.height;function C(){for(var D=1,I=0,M=_.length;I<M;++I)D=pS(D,_[I]);for(var P=1,I=0,M=y.length;I<M;++I)P=pS(P,y[I].length);D*=P;var O=x*_.length*y.length;if(0)var R;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(O,o.maxTileHeight))}}function E(){A&&(A.clearRect(0,0,S.width,S.height),o.backgroundColor&&(A.fillStyle=o.backgroundColor,A.fillRect(0,0,S.width,S.height)));for(var D=0,I=0;I<g.length;++I)D+=g[I];if(D<=0)return;for(var M=-x,P=0,O=0,R=0;M<w.height;){if(P%2===0){for(var z=O/2%y.length,B=0,F=0,G=0;B<w.width*2;){for(var Y=0,I=0;I<m[R].length;++I)Y+=m[R][I];if(Y<=0)break;if(F%2===0){var q=(1-o.symbolSize)*.5,re=B+m[R][F]*q,ie=M+g[P]*q,ue=m[R][F]*o.symbolSize,Pe=g[P]*o.symbolSize,$e=G/2%y[z].length;De(re,ie,ue,Pe,y[z][$e])}B+=m[R][F],++G,++F,F===m[R].length&&(F=0)}++R,R===m.length&&(R=0)}M+=g[P],++O,++P,P===g.length&&(P=0)}function De(fe,Oe,pe,Me,pt){var Ze=a?1:t,nt=je(pt,fe*Ze,Oe*Ze,pe*Ze,Me*Ze,o.color,o.symbolKeepAspect);if(a){var ht=i.painter.renderOneToVNode(nt);ht&&b.children.push(ht)}else Vv(A,nt)}}}}function bO(r){if(!r||r.length===0)return[["rect"]];if(H(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!H(r[t])){e=!1;break}if(e)return bO([r]);for(var i=[],t=0;t<r.length;++t)H(r[t])?i.push([r[t]]):i.push(r[t]);return i}function wO(r){if(!r||r.length===0)return[[0,0]];if(_e(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,i=0;i<r.length;++i)if(!_e(r[i])){t=!1;break}if(t)return wO([r]);for(var a=[],i=0;i<r.length;++i)if(_e(r[i])){var e=Math.ceil(r[i]);a.push([e,e])}else{var e=U(r[i],function(s){return Math.ceil(s)});e.length%2===1?a.push(e.concat(e)):a.push(e)}return a}function uZ(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(_e(r)){var e=Math.ceil(r);return[e,e]}var t=U(r,function(i){return Math.ceil(i)});return r.length%2?t.concat(t):t}function fZ(r){return U(r,function(e){return TO(e)})}function TO(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}var CO=Mn(pZ);function pZ(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var i=t.getData();i.hasItemVisual()&&i.each(function(o){var s=i.getItemVisual(o,"decal");if(s){var l=i.ensureUniqueItemVisual(o,"style");l.decal=rn(s,e)}});var a=i.getVisual("decal");if(a){var n=i.getVisual("style");n.decal=rn(a,e)}}})}var hme="6.1.0",dme={zrender:"6.1.0"},cZ=1,vZ=800,hZ=900,dZ=920,mZ=1e3,gZ=2e3,AO=5e3,NO=1e3,yZ=1100,E1=2e3,kO=3e3,_Z=4e3,Jg=4500,xZ=4600,SZ=5e3,bZ=6e3,zO=7e3,VO={PROCESSOR:{SERIES_FILTER:vZ,AXIS_STATISTICS:dZ,FILTER:mZ,STATISTIC:AO,STATISTICS:AO},VISUAL:{LAYOUT:NO,PROGRESSIVE_LAYOUT:yZ,GLOBAL:E1,CHART:kO,POST_CHART_LAYOUT:xZ,COMPONENT:_Z,BRUSH:SZ,CHART_ITEM:Jg,ARIA:bZ,DECAL:zO}},ar="__flagInMainProcess",Hg="__mainProcessVersion",hr="__pendingUpdate",m1="__needsUpdateStatus",EO=/^[a-zA-Z0-9_]+$/,g1="__connectUpdateStatus",DO=0,wZ=1,TZ=2;function UO(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return FO(this,r,e)}}function BO(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return FO(this,r,e)}}function FO(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),Jt.prototype[e].apply(r,t)}var GO=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(Jt),HO=GO.prototype;HO.on=BO("on");HO.off=BO("off");var yu,y1,Yg,Ro,Wg,_1,x1,ip,ap,MO,IO,S1,LO,Xg,PO,YO,xa,RO,np,Zg=(function(r){L(e,r);function e(t,i,a){var n=r.call(this,new KR)||this;n._chartsViews=[],n._chartsMap={},n._componentsViews=[],n._componentsMap={},n._pendingActions=[],a=a||{},n.__v_skip=!0,n._dom=t;var o="canvas",s="auto",l=!1;if(n[Hg]=1,0)var u;a.ssr&&oS(function(v){var h=se(v),d=h.dataIndex;if(d!=null){var m=W();return m.set("series_index",h.seriesIndex),m.set("data_index",d),h.ssrType&&m.set("ssr_type",h.ssrType),m}});var f=n._zr=Xd(t,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:Z(a.useDirtyRect,l),useCoarsePointer:Z(a.useCoarsePointer,s),pointerSize:a.pointerSize});n._ssr=a.ssr,n._throttledZrFlush=tp(X(f.flush,f),17),n._updateTheme(i),n._locale=xP(a.locale||Vm),n._coordSysMgr=new Fn;var p=n._api=PO(n);function c(v,h){return v.__prio-h.__prio}return bl(qg,c),bl(T1,c),n._scheduler=new p1(n,p,T1,qg),n._messageCenter=new GO,n._initEvents(),n.resize=X(n.resize,n),f.animation.on("frame",n._onframe,n),MO(f,n),IO(f,n),jo(n),n}return e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,i=this._model,a=this._api;if(RO(this),this[hr]){var n=this[hr].silent;this[ar]=!0,np(this);try{yu(this),Ro.update.call(this,null,this[hr].updateParams)}catch(l){throw this[ar]=!1,this[hr]=null,l}this._zr.flush(),this[ar]=!1,this[hr]=null,ip.call(this,n),ap.call(this,n)}else if(t.unfinished){var o=cZ;do{t.unfinished=!1;var s=wt.getTime();t.performSeriesTasks(i),t.performDataProcessorTasks(i),_1(this,i),t.performVisualTasks(i),Xg(this,this._model,a,"remain",{}),o-=wt.getTime()-s}while(o>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,i,a){if(!this[ar]){if(this._disposed){this.id;return}var n,o,s;if(te(i)&&(a=i.lazyUpdate,n=i.silent,o=i.replaceMerge,s=i.transition,i=i.notMerge),this[ar]=!0,np(this),!this._model||i){var l=new JP(this._api),u=this._theme,f=this._model=new vg;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},C1);var p={seriesTransition:s,optionChanged:!0};if(a)this[hr]={silent:n,updateParams:p},this[ar]=!1,this.getZr().wakeUp();else{try{yu(this),Ro.update.call(this,null,p)}catch(c){throw this[hr]=null,this[ar]=!1,c}this._ssr||this._zr.flush(),this[hr]=null,this[ar]=!1,ip.call(this,n),ap.call(this,n)}}},e.prototype.setTheme=function(t,i){if(!this[ar]){if(this._disposed){this.id;return}var a=this._model;if(a){var n=i&&i.silent,o=null;this[hr]&&(n==null&&(n=this[hr].silent),o=this[hr].updateParams,this[hr]=null),this[ar]=!0,np(this);try{this._updateTheme(t),a.setTheme(this._theme),yu(this),Ro.update.call(this,{type:"setTheme"},o)}catch(s){throw this[ar]=!1,s}this[ar]=!1,ip.call(this,n),ap.call(this,n)}}},e.prototype._updateTheme=function(t){H(t)&&(t=WO[t]),t&&(t=ee(t),t&&hg(t,!0),this._theme=t)},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Re.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var i=this._zr.painter;return i.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){var t=this._zr,i=t.storage.getDisplayList();return T(i,function(a){a.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var i=t.excludeComponents,a=this._model,n=[],o=this;T(i,function(l){a.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(n.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return T(n,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var i=t.type==="svg",a=this.group,n=Math.min,o=Math.max,s=1/0;if(jg[a]){var l=s,u=s,f=-s,p=-s,c=[],v=t&&t.pixelRatio||this.getDevicePixelRatio();T(_u,function(_,x){if(_.group===a){var S=i?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ee(t)),b=_.getDom().getBoundingClientRect();l=n(b.left,l),u=n(b.top,u),f=o(b.right,f),p=o(b.bottom,p),c.push({dom:S,left:b.left,top:b.top})}}),l*=v,u*=v,f*=v,p*=v;var h=f-l,d=p-u,m=wt.createCanvas(),g=Xd(m,{renderer:i?"svg":"canvas"});if(g.resize({width:h,height:d}),i){var y="";return T(c,function(_){var x=_.left-l,S=_.top-u;y+='<g transform="translate('+x+","+S+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return t.connectedBackgroundColor&&g.add(new de({shape:{x:0,y:0,width:h,height:d},style:{fill:t.connectedBackgroundColor}})),T(c,function(_){var x=new lt({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(x)}),g.refreshImmediately(),m.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,i,a){return Wg(this,"convertToPixel",t,i,a)},e.prototype.convertToLayout=function(t,i,a){return Wg(this,"convertToLayout",t,i,a)},e.prototype.convertFromPixel=function(t,i,a){return Wg(this,"convertFromPixel",t,i,a)},e.prototype.containPixel=function(t,i){if(this._disposed){this.id;return}var a=this._model,n,o=En(a,t);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)n=n||!!f.containPoint(i);else if(l==="seriesModels"){var p=this._chartsMap[u.__viewId];p&&p.containPoint&&(n=n||p.containPoint(i,u))}},this)},this),!!n},e.prototype.getVisual=function(t,i){var a=this._model,n=En(a,t,{defaultMainType:"series"}),o=n.seriesModel,s=o.getData(),l=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?s.indexOfRawIndex(n.dataIndex):null;return l!=null?Ov(s,l,i):Gn(s,i)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;T(CZ,function(a){var n=function(o){var s=t.getModel(),l=o.target,u,f=a==="globalout";if(f?u={}:l&&en(l,function(d){var m=se(d);if(m&&m.dataIndex!=null){var g=m.dataModel||s.getSeriesByIndex(m.seriesIndex);return u=g&&g.getDataParams(m.dataIndex,m.dataType,l)||{},!0}else if(m.eventData)return u=k({},m.eventData),!0},!0),u){var p=u.componentType,c=u.componentIndex;(p==="markLine"||p==="markPoint"||p==="markArea")&&(p="series",c=u.seriesIndex);var v=p&&c!=null&&s.getComponent(p,c),h=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=a,t._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:h},t.trigger(a,u)}};n.zrEventfulCallAtLast=!0,t._zr.on(a,n,t)});var i=this._messageCenter;T(w1,function(a,n){i.on(n,function(o){t.trigger(n,o)})}),QR(i,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var t=this.getDom();t&&hS(this.getDom(),M1,"");var i=this,a=i._api,n=i._model;T(i._componentsViews,function(o){o.dispose(n,a)}),T(i._chartsViews,function(o){o.dispose(n,a)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete _u[i.id]},e.prototype.resize=function(t){if(!this[ar]){if(this._disposed){this.id;return}this._zr.resize(t);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var a=i.resetOption("media"),n=t&&t.silent;this[hr]&&(n==null&&(n=this[hr].silent),a=!0,this[hr]=null),this[ar]=!0,np(this);try{a&&yu(this),Ro.update.call(this,{type:"resize",animation:k({duration:0},t&&t.animation)})}catch(o){throw this[ar]=!1,o}this[ar]=!1,ip.call(this,n),ap.call(this,n)}}},e.prototype.showLoading=function(t,i){if(this._disposed){this.id;return}if(te(t)&&(i=t,t=""),t=t||"default",this.hideLoading(),!!A1[t]){var a=A1[t](this._api,i),n=this._zr;this._loadingFX=a,n.add(a)}},e.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(t){var i=k({},t);return i.type=b1[t.type],i},e.prototype.dispatchAction=function(t,i){if(this._disposed){this.id;return}if(te(i)||(i={silent:!!i}),!!Kg[t.type]&&this._model){if(this[ar]){this._pendingActions.push(t);return}var a=i.silent;x1.call(this,t,a);var n=i.flush;n?this._zr.flush():n!==!1&&Re.browser.weChat&&this._throttledZrFlush(),ip.call(this,a),ap.call(this,a)}},e.prototype.updateLabelLayout=function(){Wi.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var i=t.seriesIndex,a=this.getModel(),n=a.getSeriesByIndex(i);n.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=(function(){yu=function(p){iO(p._model);var c=p._scheduler;c.restorePipelines(p._zr,p._model),c.prepareStageTasks(),y1(p,!0),y1(p,!1),c.plan()},y1=function(p,c){for(var v=p._model,h=p._scheduler,d=c?p._componentsViews:p._chartsViews,m=c?p._componentsMap:p._chartsMap,g=p._zr,y=p._api,_=0;_<d.length;_++)d[_].__alive=!1;c?v.eachComponent(function(b,w){b!=="series"&&x(w)}):v.eachSeries(x);function x(b){var w=b.__requireNewView;b.__requireNewView=!1;var A="_ec_"+b.id+"_"+b.type,C=!w&&m[A];if(!C){var E=_i(b.type),D=c?ze.getClass(E.main,E.sub):Le.getClass(E.sub);C=new D,C.init(v,y),m[A]=C,d.push(C),g.add(C.group)}b.__viewId=C.__id=A,C.__alive=!0,C.__model=b,C.group.__ecComponentInfo={mainType:b.mainType,index:b.componentIndex},!c&&h.prepareView(C,b,v,y)}for(var _=0;_<d.length;){var S=d[_];S.__alive?_++:(!c&&S.renderTask.dispose(),g.remove(S.group),S.dispose(v,y),d.splice(_,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},Yg=function(p,c,v,h,d){var m=p._model;if(m.setUpdatePayload(v),!h){T([].concat(p._componentsViews).concat(p._chartsViews),x);return}var g=Ef(v,h,d),y=v.excludeSeriesId,_;y!=null&&(_=W(),T(We(y),function(S){var b=St(S,null);b!=null&&_.set(b,!0)})),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;if(!b)if(JS(v))if(S instanceof ke)v.type===ms&&!v.notBlur&&!S.get(["emphasis","disabled"])&&xL(S,v,p._api);else{var w=vm(S.mainType,S.componentIndex,v.name,p._api),A=w.focusSelf,C=w.dispatchers;v.type===ms&&A&&!v.notBlur&&lm(S.mainType,S.componentIndex,p._api),C&&T(C,function(E){v.type===ms?Pr(E):Rr(E)})}else dm(v)&&S instanceof ke&&(wL(S,v,p._api),jS(S),xa(p))},p),m&&m.eachComponent(g,function(S){var b=_&&_.get(S.id)!=null;b||x(p[h==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},p);function x(S){S&&S.__alive&&S[c]&&S[c](S.__model,m,p._api,v)}},Ro={prepareAndUpdate:function(p){yu(this),Ro.update.call(this,p,p&&{optionChanged:p.newOption!=null})},update:function(p,c){var v=this._model,h=this._api,d=this._zr,m=this._coordSysMgr,g=this._scheduler;if(v){aO(v),v.setUpdatePayload(p),g.restoreData(v,p),g.performSeriesTasks(v),m.create(v,h),Wi.trigger("coordsys:aftercreate",v,h),g.performDataProcessorTasks(v,p),_1(this,v),m.update(v,h),i(v),g.performVisualTasks(v,p);var y=v.get("backgroundColor")||"transparent";d.setBackgroundColor(y);var _=v.get("darkMode");_!=null&&_!=="auto"&&d.setDarkMode(_),S1(this,v,h,p,c),Wi.trigger("afterupdate",v,h)}},updateTransform:function(p){var c=this,v=c._model,h=c._api;if(v){v.setUpdatePayload(p);var d=[];v.eachComponent(function(g,y){if(g!==xr){var _=c.getViewOfComponentModel(y);if(_&&_.__alive)if(_.updateTransform){var x=_.updateTransform(y,v,h,p);x&&x.update&&d.push(_)}else d.push(_)}});var m=W();v.eachSeries(function(g){var y=c._chartsMap[g.__viewId],_=g.pipelineContext;if(y.updateTransform&&!_.progressiveRender){var x=y.updateTransform(g,v,h,p);x&&x.update&&m.set(g.uid,1)}else m.set(g.uid,1)}),c._scheduler.performVisualTasks(v,p,{setDirty:!0,dirtyMap:m}),Xg(c,v,h,p,{},m),Wi.trigger("afterupdate",v,h)}},updateView:function(p){var c=this._model;c&&(c.setUpdatePayload(p),Le.markUpdateMethod(p,"updateView"),i(c),this._scheduler.performVisualTasks(c,p,{setDirty:!0}),S1(this,c,this._api,p,{}),Wi.trigger("afterupdate",c,this._api))},updateVisual:function(p){var c=this,v=this._model;v&&(v.setUpdatePayload(p),v.eachSeries(function(h){h.getData().clearAllVisual()}),Le.markUpdateMethod(p,"updateVisual"),i(v),this._scheduler.performVisualTasks(v,p,{visualType:"visual",setDirty:!0}),v.eachComponent(function(h,d){if(h!=="series"){var m=c.getViewOfComponentModel(d);m&&m.__alive&&m.updateVisual(d,v,c._api,p)}}),v.eachSeries(function(h){var d=c._chartsMap[h.__viewId];d.updateVisual(h,v,c._api,p)}),Wi.trigger("afterupdate",v,this._api))},updateLayout:function(p){Ro.update.call(this,p)}};function t(p,c,v,h,d){if(p._disposed){p.id;return}for(var m=p._model,g=p._coordSysMgr.getCoordinateSystems(),y,_=En(m,v),x=0;x<g.length;x++){var S=g[x];if(S[c]&&(y=S[c](m,_,h,d))!=null)return y}}Wg=t,_1=function(p,c){var v=p._chartsMap,h=p._scheduler;c.eachSeries(function(d){h.updateStreamModes(d,v[d.__viewId])})},x1=function(p,c){var v=this,h=this.getModel(),d=p.type,m=p.escapeConnect,g=Kg[d],y=(g.update||"update").split(":"),_=y.pop(),x=y[0]!=null&&_i(y[0]);this[ar]=!0,np(this);var S=[p],b=!1;p.batch&&(b=!0,S=U(p.batch,function(R){return R=$(k({},R),p),R.batch=null,R}));var w=[],A,C=[],E=g.nonRefinedEventType,D=dm(p),I=JS(p);if(I&&qS(this._api),T(S,function(R){var z=g.action(R,h,v._api);if(g.refineEvent?C.push(z):A=z,A=A||k({},R),A.type=E,w.push(A),I){var B=Jc(p),F=B.queryOptionMap,G=B.mainTypeSpecified,Y=G?F.keys()[0]:"series";Yg(v,_,R,Y),xa(v)}else D?(Yg(v,_,R,"series"),xa(v)):x&&Yg(v,_,R,x.main,x.sub)}),_!=="none"&&!I&&!D&&!x)try{this[hr]?(yu(this),Ro.update.call(this,p),this[hr]=null):Ro[_].call(this,p)}catch(R){throw this[ar]=!1,R}if(b?A={type:E,escapeConnect:m,batch:w}:A=w[0],this[ar]=!1,!c){var M=void 0;if(g.refineEvent){var P=g.refineEvent(C,p,h,this._api).eventContent;at(te(P)),M=$({type:g.refinedEventType},P),M.fromAction=p.type,M.fromActionPayload=p,M.escapeConnect=!0}var O=this._messageCenter;O.trigger(A.type,A),M&&O.trigger(M.type,M)}},ip=function(p){for(var c=this._pendingActions;c.length;){var v=c.shift();x1.call(this,v,p)}},ap=function(p){!p&&this.trigger("updated")},MO=function(p,c){p.on("rendered",function(v){c.trigger("rendered",v),p.animation.isFinished()&&!c[hr]&&!c._scheduler.unfinished&&!c._pendingActions.length?c.trigger("finished"):p.refresh()})},IO=function(p,c){p.on("mouseover",function(v){var h=v.target,d=en(h,gs);d&&(SL(d,v,c._api),xa(c))}).on("mouseout",function(v){var h=v.target,d=en(h,gs);d&&(bL(d,v,c._api),xa(c))}).on("click",function(v){var h=v.target,d=en(h,function(y){return se(y).dataIndex!=null},!0);if(d){var m=d.selected?"unselect":"select",g=se(d);c._api.dispatchAction({type:m,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function i(p){p.clearColorPalette(),p.eachSeries(function(c){c.clearColorPalette()})}function a(p){var c=[],v=[],h=!1;if(p.eachComponent(function(y,_){var x=_.get("zlevel")||0,S=_.get("z")||0,b=_.getZLevelKey();h=h||!!b,(y==="series"?v:c).push({zlevel:x,z:S,idx:_.componentIndex,type:y,key:b})}),h){var d=c.concat(v),m,g;bl(d,function(y,_){return y.zlevel===_.zlevel?y.z-_.z:y.zlevel-_.zlevel}),T(d,function(y){var _=p.getComponent(y.type,y.idx),x=y.zlevel,S=y.key;m!=null&&(x=Math.max(m,x)),S?(x===m&&S!==g&&x++,g=S):g&&(x===m&&x++,g=""),m=x,_.setZLevel(x)})}}S1=function(p,c,v,h,d){a(c),LO(p,c,v,h,d),T(p._chartsViews,function(m){m.__alive=!1}),Xg(p,c,v,h,d),T(p._chartsViews,function(m){m.__alive||m.remove(c,v)})},LO=function(p,c,v,h,d,m){T(m||p._componentsViews,function(g){var y=g.__model;u(y,g),g.render(y,c,v,h),l(y,g),f(y,g)})},Xg=function(p,c,v,h,d,m){var g=p._scheduler;d=k(d||{},{updatedSeries:c.getSeries()}),Wi.trigger("series:beforeupdate",c,v,d);var y=!1;c.eachSeries(function(_){var x=p._chartsMap[_.__viewId];x.__alive=!0;var S=x.renderTask;g.updatePayload(S,h),u(_,x),m&&m.get(_.uid)&&S.dirty(),S.perform(g.getPerformArgs(S))&&(y=!0),x.group.silent=!!_.get("silent"),s(_,x),jS(_)}),g.unfinished=y||g.unfinished,Wi.trigger("series:layoutlabels",c,v,d),Wi.trigger("series:transition",c,v,d),c.eachSeries(function(_){var x=p._chartsMap[_.__viewId];l(_,x),f(_,x)}),o(p,c),Wi.trigger("series:afterupdate",c,v,d)},xa=function(p){p[m1]=!0,p.getZr().wakeUp()},np=function(p){p[Hg]=(p[Hg]+1)%1e6},RO=function(p){p[m1]&&(p.getZr().storage.traverse(function(c){To(c)||n(c)}),p[m1]=!1)};function n(p){for(var c=[],v=p.currentStates,h=0;h<v.length;h++){var d=v[h];d==="emphasis"||d==="blur"||d==="select"||c.push(d)}p.selected&&p.states.select&&c.push("select"),p.hoverState===av&&p.states.emphasis?c.push("emphasis"):p.hoverState===Zl&&p.states.blur&&c.push("blur"),p.useStates(c)}function o(p,c){var v=p._zr;if(v.painter.type==="canvas"){var h=v.storage,d=0;h.traverse(function(g){g.isGroup||d++});var m=d>Z(c.get("hoverLayerThreshold"),lg.hoverLayerThreshold)&&!Re.node&&!Re.worker;(p._usingTHL||m)&&(c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=p._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){var x=_.states.emphasis;x&&x.hoverLayer!==Ka&&(x.hoverLayer=m?ub:lb)})}}),p._usingTHL=m)}}function s(p,c){var v=p.get("blendMode")||null;c.eachRendered(function(h){h.isGroup||(h.style.blend=v)})}function l(p,c){if(!p.preventAutoZ){var v=da(p);c.eachRendered(function(h){return tu(h,v.z,v.zlevel),!0})}}function u(p,c){c.eachRendered(function(v){if(!To(v)){var h=v.getTextContent(),d=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),h&&h.stateTransition&&(h.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(p,c){var v=p.getModel("stateAnimation"),h=p.isAnimationEnabled(),d=v.get("duration"),m=d>0?{duration:d,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(g){if(g.states&&g.states.emphasis){if(To(g))return;if(g instanceof ce&&EL(g),g.__dirty){var y=g.prevStates;y&&g.useStates(y)}if(h){g.stateTransition=m;var _=g.getTextContent(),x=g.getTextGuideLine();_&&(_.stateTransition=m),x&&(x.stateTransition=m)}g.__dirty&&n(g)}})}PO=function(p){return new((function(c){L(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(h){for(;h;){var d=h.__ecComponentInfo;if(d!=null)return p._model.getComponent(d.mainType,d.index);h=h.parent}},v.prototype.enterEmphasis=function(h,d){Pr(h,d),xa(p)},v.prototype.leaveEmphasis=function(h,d){Rr(h,d),xa(p)},v.prototype.enterBlur=function(h){cm(h),xa(p)},v.prototype.leaveBlur=function(h){lv(h),xa(p)},v.prototype.enterSelect=function(h){ZS(h),xa(p)},v.prototype.leaveSelect=function(h){KS(h),xa(p)},v.prototype.getModel=function(){return p.getModel()},v.prototype.getViewOfComponentModel=function(h){return p.getViewOfComponentModel(h)},v.prototype.getViewOfSeriesModel=function(h){return p.getViewOfSeriesModel(h)},v.prototype.getECUpdateCycleVersion=function(){return p[Hg]},v.prototype.usingTHL=function(){return p._usingTHL},v})(sm))(p)},YO=function(p){function c(v,h){for(var d=0;d<v.length;d++){var m=v[d];m[g1]=h}}T(b1,function(v,h){p._messageCenter.on(h,function(d){if(jg[p.group]&&p[g1]!==DO){if(d&&d.escapeConnect)return;var m=p.makeActionFromEvent(d),g=[];T(_u,function(y){y!==p&&y.group===p.group&&g.push(y)}),c(g,DO),T(g,function(y){y[g1]!==wZ&&y.dispatchAction(m)}),c(g,TZ)}})})}})(),e})(Jt),D1=Zg.prototype;D1.on=UO("on");D1.off=UO("off");D1.one=function(r,e,t){var i=this;function a(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];e&&e.apply&&e.apply(this,n),i.off(r,a)}this.on.call(this,r,a,t)};var CZ=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Kg={},b1={},w1={},T1=[],C1=[],qg=[],WO={},A1={},_u={},jg={},AZ=+new Date-0,EZ=+new Date-0,M1="_echarts_instance_";function mme(r,e,t){var i=!(t&&t.ssr);if(i){var a=XO(r);if(a)return a}var n=new Zg(r,e,t);return n.id="ec_"+AZ++,_u[n.id]=n,i&&hS(r,M1,n.id),YO(n),Wi.trigger("afterinit",n),n}function gme(r){if(V(r)){var e=r;r=null,T(e,function(t){t.group!=null&&(r=t.group)}),r=r||"g_"+EZ++,T(e,function(t){t.group=r})}return jg[r]=!0,r}function DZ(r){jg[r]=!1}var yme=DZ;function _me(r){H(r)?r=_u[r]:r instanceof Zg||(r=XO(r)),r instanceof Zg&&!r.isDisposed()&&r.dispose()}function XO(r){return _u[cI(r,M1)]}function xme(r){return _u[r]}function ZO(r,e){WO[r]=e}function I1(r){le(C1,r)<0&&C1.push(r)}function L1(r,e){P1(T1,r,e,gZ)}function KO(r){Qg("afterinit",r)}function qO(r){Qg("afterupdate",r)}function Qg(r,e){Wi.on(r,e)}function Jr(r,e,t){var i,a,n,o,s;J(e)&&(t=e,e=""),te(r)?(i=r.type,a=r.event,o=r.update,s=r.publishNonRefinedEvent,t||(t=r.action),n=r.refineEvent):(i=r,a=e);function l(f){return f.toLowerCase()}a=l(a||i);var u=n?l(i):a;Kg[i]||(at(EO.test(i)&&EO.test(a)),n&&at(a!==i),Kg[i]={actionType:i,refinedEventType:a,nonRefinedEventType:u,update:o,action:t,refineEvent:n},w1[a]=1,n&&s&&(w1[u]=1),b1[u]=i)}function jO(r,e){Fn.register(r,e)}function Sme(r){var e=Fn.get(r);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function bme(r,e){kg(r,e)}function JO(r,e){P1(qg,r,e,NO,"layout",!0)}function As(r,e){P1(qg,r,e,kO,"visual",!0)}var OO=[];function P1(r,e,t,i,a,n){if((J(e)||te(e))&&(t=e,e=i),!(le(OO,t)>=0)){OO.push(t);var o=p1.wrapStageHandler(t,a);o.__prio=e,o.__raw=t,r.push(o)}}function R1(r,e){A1[r]=e}function wme(r){ix({createCanvas:r})}function QO(r,e,t){var i=h1("registerMap");i&&i(r,e,t)}function Tme(r){var e=h1("getMap");return e&&e(r)}var $O=mR;As(E1,VR);As(Jg,UR);As(Jg,BR);As(E1,jR);As(Jg,JR);As(zO,CO);I1(hg);L1(hZ,aR);R1("default",f1);Jr({type:ms,event:ms,update:ms},et);Jr({type:nv,event:nv,update:nv},et);Jr({type:ov,event:fm,update:ov,action:et,refineEvent:O1,publishNonRefinedEvent:!0});Jr({type:um,event:fm,update:um,action:et,refineEvent:O1,publishNonRefinedEvent:!0});Jr({type:sv,event:fm,update:sv,action:et,refineEvent:O1,publishNonRefinedEvent:!0});function O1(r,e,t,i){return{eventContent:{selected:TL(t),isFromClick:e.isFromClick||!1}}}ZO("default",{});ZO("dark",ZR);var Cme={};var eN=[],MZ={registerPreprocessor:I1,registerProcessor:L1,registerPostInit:KO,registerPostUpdate:qO,registerUpdateLifecycle:Qg,registerAction:Jr,registerCoordinateSystem:jO,registerLayout:JO,registerVisual:As,registerTransform:$O,registerLoading:R1,registerMap:QO,registerImpl:eO,PRIORITY:VO,ComponentModel:Se,ComponentView:ze,SeriesModel:ke,ChartView:Le,registerComponentModel:function(r){Se.registerClass(r)},registerComponentView:function(r){ze.registerClass(r)},registerSeriesModel:function(r){ke.registerClass(r)},registerChartView:function(r){Le.registerClass(r)},registerCustomSeries:function(r,e){kg(r,e)},registerSubTypeDefaulter:function(r,e){Se.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){aS(r,e)}};function Ce(r){if(V(r)){T(r,function(e){Ce(e)});return}le(eN,r)>=0||(eN.push(r),J(r)&&(r={install:r}),r.install(MZ))}function Uv(r){return r==null?0:r.length||1}function tN(r){return r}var IZ=(function(){function r(e,t,i,a,n,o){this._old=e,this._new=t,this._oldKeyGetter=i||tN,this._newKeyGetter=a||tN,this.context=n,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(e){return this._add=e,this},r.prototype.update=function(e){return this._update=e,this},r.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},r.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},r.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},r.prototype.remove=function(e){return this._remove=e,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var e=this._old,t=this._new,i={},a=new Array(e.length),n=new Array(t.length);this._initIndexMap(e,null,a,"_oldKeyGetter"),this._initIndexMap(t,i,n,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=a[o],l=i[s],u=Uv(l);if(u>1){var f=l.shift();l.length===1&&(i[s]=l[0]),this._update&&this._update(f,o)}else u===1?(i[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(n,i)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,i={},a={},n=[],o=[];this._initIndexMap(e,i,n,"_oldKeyGetter"),this._initIndexMap(t,a,o,"_newKeyGetter");for(var s=0;s<n.length;s++){var l=n[s],u=i[l],f=a[l],p=Uv(u),c=Uv(f);if(p>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,u),a[l]=null;else if(p===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,u),a[l]=null;else if(p===1&&c===1)this._update&&this._update(f,u),a[l]=null;else if(p>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,u),a[l]=null;else if(p>1)for(var v=0;v<p;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},r.prototype._performRestAdd=function(e,t){for(var i=0;i<e.length;i++){var a=e[i],n=t[a],o=Uv(n);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(n[s]);else o===1&&this._add&&this._add(n);t[a]=null}},r.prototype._initIndexMap=function(e,t,i,a){for(var n=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[a](e[o],o);if(n||(i[o]=s),!!t){var l=t[s],u=Uv(l);u===0?(t[s]=o,n&&i.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r})(),Tr=IZ;var LZ=(function(){function r(e,t){this._encode=e,this._schema=t}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function rN(r,e){var t={},i=t.encode={},a=W(),n=[],o=[],s={};T(r.dimensions,function(c){var v=r.getDimensionInfo(c),h=v.coordDim;if(h){var d=v.coordDimIndex;N1(i,h)[d]=c,v.isExtraCoord||(a.set(h,1),PZ(v.type)&&(n[0]=c),N1(s,h)[d]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}nm.each(function(m,g){var y=N1(i,g),_=v.otherDims[g];_!=null&&_!==!1&&(y[_]=v.name)})});var l=[],u={};a.each(function(c,v){var h=i[v];u[v]=h[0],l=l.concat(h)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=U(l,function(c){return r.getDimensionInfo(c).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=i.label;f&&f.length&&(n=f.slice());var p=i.tooltip;return p&&p.length?o=p.slice():o.length||(o=n.slice()),i.defaultedLabel=n,i.defaultedTooltip=o,t.userOutput=new LZ(s,e),t}function N1(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function xu(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function PZ(r){return!(r==="ordinal"||r==="time")}var RZ=(function(){function r(e){this.otherDims={},e!=null&&k(this,e)}return r})(),op=RZ;var OZ=ne(),NZ={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},k1=(function(){function r(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=z1(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return Z(this._dimNameMap.get(e),-1)},r.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},r.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=mg(this.source),i=!V1(e),a="",n=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,p=this.dimensions[s];if(p&&p.storeDimIndex===o)l=t?p.name:null,u=p.type,f=p.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(l=t?c.name:null,u=c.type)}n.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!p||!p.isCalculationCoord)&&(a+=i?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=NZ[u]||"f",f&&(a+=f.uid),a+="$"}var v=this.source,h=[v.seriesLayoutBy,v.startIndex,a].join("$$");return{dimensions:n,hash:h}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,i=0;t<this._fullDimCount;t++){var a=void 0,n=this.dimensions[i];if(n&&n.storeDimIndex===t)n.isCalculationCoord||(a=n.name),i++;else{var o=this.getSourceDimension(t);o&&(a=o.name)}e.push(a)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function ey(r){return r instanceof k1}function Bv(r){for(var e=W(),t=0;t<(r||[]).length;t++){var i=r[t],a=te(i)?i.name:i;a!=null&&e.get(a)==null&&e.set(a,t)}return e}function z1(r){var e=OZ(r);return e.dimNameMap||(e.dimNameMap=Bv(r.dimensionsDefine))}function V1(r){return r>30}var Fv=te,Es=U,kZ=typeof Int32Array>"u"?Array:Int32Array,zZ="e\0\0",iN=-1,VZ=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],UZ=["_approximateExtent"],aN,ty,Gv,Hv,U1,Yv,B1,BZ=(function(){function r(e,t){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,a=!1;ey(e)?(i=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(a=!0,i=e),i=i||["x","y"];for(var n={},o=[],s={},l=!1,u={},f=0;f<i.length;f++){var p=i[f],c=H(p)?new op({name:p}):p instanceof op?p:new op(p),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var h=c.otherDims=c.otherDims||{};o.push(v),n[v]=c,u[v]!=null&&(l=!0),c.createInvertedIndices&&(s[v]=[]),a&&(c.storeDimIndex=f),h.itemName===0&&(this._nameDimIdx=c.storeDimIndex),h.itemId===0&&(this._idDimIdx=c.storeDimIndex)}if(this.dimensions=o,this._dimInfos=n,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=W();T(o,function(m){d.set(n[m].storeDimIndex,m)})}}return r.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var i=this._dimIdxToName.get(t);if(i!=null)return i;var a=this._schema.getSourceDimension(t);if(a)return a.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var i=this._getDimInfo(e);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(_e(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},r.prototype._getStoreDimIndex=function(e){var t=this.getDimensionIndex(e);return t},r.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},r.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(i){return t.hasOwnProperty(i)?t[i]:void 0}:function(i){return t[i]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var i=this._dimSummary;if(t==null)return i.encodeFirstDimNotExtra[e];var a=i.encode[e];return a?a[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,i=t.encode[e];return(i||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,i){var a=this,n;if(e instanceof Mv&&(n=e),!n){var o=this.dimensions,s=Qf(e)||It(e)?new yg(e,o.length):e;n=new Mv;var l=Es(o,function(u){return{type:a._dimInfos[u].type,property:u}});n.initData(s,l,i)}this._store=n,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=rN(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},r.prototype.appendValues=function(e,t){var i=this._store.appendValues(e,t&&t.length),a=i.start,n=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=a;s<n;s++){var l=s-a;this._nameList[s]=t[l],o&&B1(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,i=0;i<t.length;i++){var a=this._dimInfos[t[i]];a.ordinalMeta&&e.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Gi&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var i=this._store,a=i.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===sr;if(l&&!a.pure)for(var u=[],f=e;f<t;f++){var p=a.getItem(f,u);if(!this.hasItemOption&&oI(p)&&(this.hasItemOption=!0),p){var c=p.name;n[f]==null&&c!=null&&(n[f]=St(c,null));var v=p.id;o[f]==null&&v!=null&&(o[f]=St(v,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)B1(this,f);aN(this)}},r.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},r.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},r.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},r.prototype.setCalculationInfo=function(e,t){Fv(e)?k(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),i=this._nameList[t];return i==null&&this._nameDimIdx!=null&&(i=Gv(this,this._nameDimIdx,t)),i==null&&(i=""),i},r.prototype._getCategory=function(e,t){var i=this._store.get(e,t),a=this._store.getOrdinalMeta(e);return a?a.categories[i]:i},r.prototype.getId=function(e){return ty(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var i=this._store,a=this._dimInfos[e];if(a)return i.get(a.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var i=this._store,a=this._dimInfos[e];if(a)return i.getByRawIndex(a.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},r.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},r.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},r.prototype.getValues=function(e,t){var i=this,a=this._store;return V(e)?a.getValues(Es(e,function(n){return i._getStoreDimIndex(n)}),t):a.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,i=0,a=t.length;i<a;i++)if(isNaN(this._store.get(t[i],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,i=this._store.count();t<i;t++)if(this.getName(t)===e)return t;return-1},r.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},r.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},r.prototype.rawIndexOf=function(e,t){var i=e&&this._invertedIndicesMap[e],a=i&&i[t];return a==null||isNaN(a)?iN:a},r.prototype.each=function(e,t,i){"use strict";J(e)&&(i=t,t=e,e=[]);var a=i||this,n=Es(Hv(e),this._getStoreDimIndex,this);this._store.each(n,a?X(t,a):t)},r.prototype.filterSelf=function(e,t,i){"use strict";J(e)&&(i=t,t=e,e=[]);var a=i||this,n=Es(Hv(e),this._getStoreDimIndex,this);return this._store=this._store.filter(n,a?X(t,a):t),this},r.prototype.selectRange=function(e){"use strict";var t=this,i={},a=ye(e),n=[];return T(a,function(o){var s=t._getStoreDimIndex(o);i[s]=e[o],n.push(s)}),this._store=this._store.selectRange(i),this},r.prototype.mapArray=function(e,t,i){"use strict";J(e)&&(i=t,t=e,e=[]),i=i||this;var a=[];return this.each(e,function(){a.push(t&&t.apply(this,arguments))},i),a},r.prototype.map=function(e,t,i,a){"use strict";var n=i||a||this,o=Es(Hv(e),this._getStoreDimIndex,this),s=Yv(this);return s._store=this._store.map(o,n?X(t,n):t),s},r.prototype.modify=function(e,t,i,a){var n=this,o=i||a||this,s=Es(Hv(e),this._getStoreDimIndex,this);this._store.modify(s,o?X(t,o):t)},r.prototype.downSample=function(e,t,i,a){var n=Yv(this);return n._store=this._store.downSample(this._getStoreDimIndex(e),t,i,a),n},r.prototype.minmaxDownSample=function(e,t){var i=Yv(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),i},r.prototype.lttbDownSample=function(e,t){var i=Yv(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),i},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,i=this.getRawDataItem(e);return new Ee(i,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new Tr(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(i){return ty(e,i)},function(i){return ty(t,i)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Fv(e)?k(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var i=this._itemVisuals[e],a=i&&i[t];return a??this.getVisual(t)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var i=this._itemVisuals,a=i[e];a||(a=i[e]={});var n=a[t];return n==null&&(n=this.getVisual(t),V(n)?n=n.slice():Fv(n)&&(n=k({},n)),a[t]=n),n},r.prototype.setItemVisual=function(e,t,i){var a=this._itemVisuals[e]||{};this._itemVisuals[e]=a,Fv(t)?k(a,t):a[t]=i},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Fv(e)?k(this._layout,e):this._layout[e]=t},r.prototype.getLayout=function(e){return this._layout[e]},r.prototype.getItemLayout=function(e){return this._itemLayouts[e]},r.prototype.setItemLayout=function(e,t,i){this._itemLayouts[e]=i?k(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var i=this.hostModel&&this.hostModel.seriesIndex;iv(i,this.dataType,e,t),this._graphicEls[e]=t},r.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},r.prototype.eachItemGraphicEl=function(e,t){T(this._graphicEls,function(i,a){i&&e&&e.call(t,i,a)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Es(this.dimensions,this._getDimInfo,this),this.hostModel)),U1(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var i=this[e];J(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var a=i.apply(this,arguments);return t.apply(this,[a].concat(Tc(arguments)))})},r.internalField=(function(){aN=function(e){var t=e._invertedIndicesMap;T(t,function(i,a){var n=e._dimInfos[a],o=n.ordinalMeta,s=e._store;if(o){i=t[a]=new kZ(o.categories.length);for(var l=0;l<i.length;l++)i[l]=iN;for(var l=0;l<s.count();l++)i[s.get(n.storeDimIndex,l)]=l}})},Gv=function(e,t,i){return St(e._getCategory(t,i),null)},ty=function(e,t){var i=e._idList[t];return i==null&&e._idDimIdx!=null&&(i=Gv(e,e._idDimIdx,t)),i==null&&(i=zZ+t),i},Hv=function(e){return V(e)||(e=e!=null?[e]:[]),e},Yv=function(e){var t=new r(e._schema?e._schema:Es(e.dimensions,e._getDimInfo,e),e.hostModel);return U1(t,e),t},U1=function(e,t){T(VZ.concat(t.__wrappedMethods||[]),function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e.__wrappedMethods=t.__wrappedMethods,T(UZ,function(i){e[i]=ee(t[i])}),e._calculationInfo=k({},t._calculationInfo)},B1=function(e,t){var i=e._nameList,a=e._idList,n=e._nameDimIdx,o=e._idDimIdx,s=i[t],l=a[t];if(s==null&&n!=null&&(i[t]=s=Gv(e,n,t)),l==null&&o!=null&&(a[t]=l=Gv(e,o,t)),l==null&&s!=null){var u=e._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),a[t]=l}}})(),r})(),Ct=BZ;var jN={};ea(jN,{createDimensions:()=>nN,createList:()=>A7,createScale:()=>D7,createSymbol:()=>je,createTextStyle:()=>I7,dataStack:()=>E7,enableHoverEmphasis:()=>ca,getECData:()=>se,getLayoutRect:()=>He,mixinAxisModelCommonMethods:()=>M7});function nN(r,e){return Sa(r,e).dimensions}function Sa(r,e){Qf(r)||(r=$f(r)),e=e||{};var t=e.coordDimensions||[],i=e.dimensionsDefine||r.dimensionsDefine||[],a=W(),n=[],o=FZ(r,t,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&V1(o),l=i===r.dimensionsDefine,u=l?z1(r):Bv(i),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var p=W(f),c=new r1(o),v=0;v<c.length;v++)c[v]=-1;function h(C){var E=c[C];if(E<0){var D=i[C],I=te(D)?D:{name:D},M=new op,P=I.name;P!=null&&u.get(P)!=null&&(M.name=M.displayName=P),I.type!=null&&(M.type=I.type),I.displayName!=null&&(M.displayName=I.displayName);var O=n.length;return c[C]=O,M.storeDimIndex=C,n.push(M),M}return n[E]}if(!s)for(var v=0;v<o;v++)h(v);p.each(function(C,E){var D=We(C).slice();if(D.length===1&&!H(D[0])&&D[0]<0){p.set(E,!1);return}var I=p.set(E,[]);T(D,function(M,P){var O=H(M)?u.get(M):M;O!=null&&O<o&&(I[P]=O,m(h(O),E,P))})});var d=0;T(t,function(C){var E,D,I,M;if(H(C))E=C,M={};else{M=C,E=M.name;var P=M.ordinalMeta;M.ordinalMeta=null,M=k({},M),M.ordinalMeta=P,D=M.dimsDef,I=M.otherDims,M.name=M.coordDim=M.coordDimIndex=M.dimsDef=M.otherDims=null}var O=p.get(E);if(O!==!1){if(O=We(O),!O.length)for(var R=0;R<(D&&D.length||1);R++){for(;d<o&&h(d).coordDim!=null;)d++;d<o&&O.push(d++)}T(O,function(z,B){var F=h(z);if(l&&M.type!=null&&(F.type=M.type),m($(F,M),E,B),F.name==null&&D){var G=D[B];!te(G)&&(G={name:G}),F.name=F.displayName=G.name,F.defaultTooltip=G.defaultTooltip}I&&$(F.otherDims,I)})}});function m(C,E,D){nm.get(E)!=null?C.otherDims[E]=D:(C.coordDim=E,C.coordDimIndex=D,a.set(E,!0))}var g=e.generateCoord,y=e.generateCoordCount,_=y!=null;y=g?y||1:0;var x=g||"value";function S(C){C.name==null&&(C.name=C.coordDim)}if(s)T(n,function(C){S(C)}),n.sort(function(C,E){return C.storeDimIndex-E.storeDimIndex});else for(var b=0;b<o;b++){var w=h(b),A=w.coordDim;A==null&&(w.coordDim=GZ(x,a,_),w.coordDimIndex=0,(!g||y<=0)&&(w.isExtraCoord=!0),y--),S(w),w.type==null&&(pg(r,b)===lr.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return us(n,function(C){return C.name},function(C,E){E>0&&(C.name=C.name+(E-1))}),new k1({source:r,dimensions:n,fullDimensionCount:o,dimensionOmitted:s})}function FZ(r,e,t,i){var a=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,i||0);return T(e,function(n){var o;te(n)&&(o=n.dimsDef)&&(a=Math.max(a,o.length))}),a}function GZ(r,e,t){if(t||e.hasKey(r)){for(var i=0;e.hasKey(r+i);)i++;r+=i}return e.set(r,!0),r}var HZ=(function(){function r(e){this.coordSysDims=[],this.axisMap=W(),this.categoryAxisMap=W(),this.coordSysName=e}return r})();function oN(r){var e=r.get("coordinateSystem"),t=new HZ(e),i=YZ[e];if(i)return i(r,t,t.axisMap,t.categoryAxisMap),t}var YZ={cartesian2d:function(r,e,t,i){var a=r.getReferringComponents("xAxis",Ke).models[0],n=r.getReferringComponents("yAxis",Ke).models[0];e.coordSysDims=["x","y"],t.set("x",a),t.set("y",n),sp(a)&&(i.set("x",a),e.firstCategoryDimIndex=0),sp(n)&&(i.set("y",n),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,i){var a=r.getReferringComponents("singleAxis",Ke).models[0];e.coordSysDims=["single"],t.set("single",a),sp(a)&&(i.set("single",a),e.firstCategoryDimIndex=0)},polar:function(r,e,t,i){var a=r.getReferringComponents("polar",Ke).models[0],n=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",n),t.set("angle",o),sp(n)&&(i.set("radius",n),e.firstCategoryDimIndex=0),sp(o)&&(i.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,i){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,i){var a=r.ecModel,n=a.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=n.dimensions.slice();T(n.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),f=o[l];t.set(f,u),sp(u)&&(i.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})},matrix:function(r,e,t,i){var a=r.getReferringComponents("matrix",Ke).models[0];e.coordSysDims=["x","y"];var n=a.getDimensionModel("x"),o=a.getDimensionModel("y");t.set("x",n),t.set("y",o),i.set("x",n),i.set("y",o)}};function sp(r){return r.get("type")==="category"}function ry(r,e,t){t=t||{};var i=t.byIndex,a=t.stackedCoordDimension,n,o,s;WZ(e)?n=e:(o=e.schema,n=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,p,c,v=!0;function h(x){return x.type!=="ordinal"&&x.type!=="time"}if(T(n,function(x,S){H(x)&&(n[S]=x={name:x}),h(x)||(v=!1)}),T(n,function(x,S){l&&!x.isExtraCoord&&(!i&&!u&&x.ordinalMeta&&(u=x),!f&&h(x)&&(!v||x.coordDim!=="x"&&x.coordDim!=="angle")&&(!a||a===x.coordDim)&&(f=x))}),f&&!i&&!u&&(i=!0),f){p="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var d=f.coordDim,m=f.type,g=0;T(n,function(x){x.coordDim===d&&g++});var y={name:p,coordDim:d,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},_={name:c,coordDim:c,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(c,m),_.storeDimIndex=s.ensureCalculationDimension(p,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(n.push(y),n.push(_))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:i,stackedOverDimension:c,stackResultDimension:p}}function WZ(r){return!ey(r.schema)}function Qr(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function lp(r,e){return Qr(r,e)?r.getCalculationInfo("stackResultDimension"):e}function XZ(r,e){var t=r.get("coordinateSystem"),i=Fn.get(t),a;return e&&e.coordSysDims&&(a=U(e.coordSysDims,function(n){var o={name:n},s=e.axisMap.get(n);if(s){var l=s.get("type");o.type=xu(l)}return o})),a||(a=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),a}function ZZ(r,e,t){var i,a;return t&&T(r,function(n,o){var s=n.coordDim,l=t.categoryAxisMap.get(s);l&&(i==null&&(i=o),n.ordinalMeta=l.getOrdinalMeta(),e&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(a=!0)}),!a&&i!=null&&(r[i].otherDims.itemName=0),i}function KZ(r,e,t){t=t||{};var i=e.getSourceManager(),a,n=!1;r?(n=!0,a=$f(r)):(a=i.getSource(),n=a.sourceFormat===sr);var o=oN(e),s=XZ(e,o),l=t.useEncodeDefaulter,u=J(l)?l:l?me(ug,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},p=Sa(a,f),c=ZZ(p.dimensions,t.createInvertedIndices,o),v=n?null:i.getSharedDataStore(p),h=ry(e,{schema:p,store:v}),d=new Ct(p,e);d.setCalculationInfo(h);var m=c!=null&&qZ(a)?function(g,y,_,x){return x===c?_:this.defaultDimValueGetter(g,y,_,x)}:null;return d.hasItemOption=!1,d.initData(n?a:v,null,m),d}function qZ(r){if(r.sourceFormat===sr){var e=jZ(r.data||[]);return!V(Ha(e))}}function jZ(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var nr=KZ;var sN=(function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r})();fs(sN);var $r=sN;var JZ=0,QZ=(function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++JZ,this._onCollect=e.onCollect}return r.createByAxisModel=function(e){var t=e.option,i=t.data,a=i&&U(i,$Z);return new r({categories:a,needCollect:!a,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,i=this._needCollect;if(!H(e)&&!i)return e;if(i&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var a=this._getOrCreateMap();return t=a.get(e),t==null&&(i?(t=this.categories.length,this.categories[t]=e,a.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=W(this.categories))},r})();function $Z(r){return te(r)&&r.value!=null?r.value:r+""}var Ds=QZ;var Cr=0,up=1,e7={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},uN=ye(e7),ba=2,fN=3;function fp(r,e,t){var i;r=r||{};var a=mt();if(a){var n=a.createBreakScaleMapper(e,t);n.hasBreaks()&&(T(uN,function(o){n[o]&&(r[o]=X(n[o],n))}),i=n)}return i==null&&iy(r,t),{brk:i,mapper:r}}function pp(r,e){T(uN,function(t){r[t]=e[t]})}function cp(r,e){r.freeze=et}function Oo(r){return r.getExtentUnsafe(Cr,ba)}function Su(r,e){return r.getExtentUnsafe(up,e)||r.getExtentUnsafe(Cr,e)}function pN(r){var e=Su(r,fN);return e[1]-e[0]}function vp(r){var e=r.getExtentUnsafe(Cr,fN);return e[1]-e[0]}function iy(r,e){var t=r||{},i=[];return t._extents=i,i[Cr]=e?e.slice():Pt(),k(t,t7),t}var t7={needTransform:function(){return!1},normalize:function(r){var e=this._extents[up]||this._extents[Cr];return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])},scale:function(r){var e=this._extents[up]||this._extents[Cr];return r*(e[1]-e[0])+e[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var e=Su(this,null);return r>=e[0]&&r<=e[1]},getExtent:function(){return this._extents[Cr].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,e){lN(this._extents,Cr,r,e)},setExtent2:function(r,e,t){var i=this._extents;i[r]||(i[r]=i[Cr].slice()),lN(i,r,e,t)},freeze:function(){}};function lN(r,e,t,i){Wa(t,i)&&(r[e][0]=t,r[e][1]=i)}function ay(r){return hp(r)||Yn(r)}function hp(r){return r.type==="interval"}function Hn(r){return r.type==="time"}function Yn(r){return r.type==="log"}function At(r){return r.type==="ordinal"}function cN(r){var e=wf(r),t=ss(10,e),i=mi(r/t);return i?i===2?i=3:i===3?i=5:i*=2:i=1,Ne(i*t,-e)}function an(r){return Hr(r)+2}function Wv(r,e){return os(r)/os(e)}function ny(r,e,t){var i=t&&t.lookup;if(i){for(var a=0;a<i.from.length;a++)if(r===i.from[a])return i.to[a]}return ss(e,r)}function oy(r,e,t){var i=r.slice();if(i[0]===i[1]){var a=t&&t.ctnShp;if(i[0]!==0){var n=ct(i[0]);e[1]||(i[1]+=n/2),i[0]-=n/2}else a&&(i[0]=-1),i[1]=1}return(!Ga(i[0])||!Ga(i[1]))&&(i[0]=0,i[1]=1),i[1]<i[0]&&i.reverse(),i}function vN(r,e){return[r[0]!==e[0],r[1]!==e[1]]}function bu(r,e){return r=r||e,mi(xe(r,1))}function sy(r,e,t){var i=Oo(r),a=i[0],n=r.count(),o=Math.max((e||0)+1,1);a!==0&&o>1&&n/o>2&&(a=Math.round(Math.ceil(a/o)*o)),a!==i[0]&&l(i[0],!0,!0);for(var s=a;s<=i[1];s+=o)l(s,!1,s===i[0]||s===i[1]);s-o!==i[1]&&l(i[1],!0,!0);function l(u,f,p){t({value:u,offInterval:f},p)}}var hN=(function(r){L(e,r);function e(t){var i=r.call(this)||this;i.type="ordinal",i.parse=e.parse,pp(i,e.decoratedMethods);var a=t.ordinalMeta;a||(a=new Ds({})),V(a)&&(a=new Ds({categories:U(a,function(o){return te(o)?o.value:o})})),i._ordinalMeta=a;var n=fp(null,null,t.extent||[0,a.categories.length-1]);return i._mapper=n.mapper,cp(i,n.mapper),i}return e.parse=function(t){return t==null?t=NaN:H(t)?(t=this._ordinalMeta.getOrdinal(t),t==null&&(t=NaN)):t=mi(t),t},e.prototype.getTicks=function(){var t=[];return sy(this,0,function(i){t.push(i)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=t.ordinalNumbers,a=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Fe(s,i.length);o<l;++o){var u=a[o]=i[o];n[u]=o}for(var f=0;o<s;++o){for(;n[f]!=null;)f++;a[o]=f,n[f]=o}},e.prototype._getTickNumber=function(t){var i=this._ticksByOrdinalNumber;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getRawOrdinalNumber=function(t){var i=this._ordinalNumbersByTick;return i&&t>=0&&t<i.length?i[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var i=this.getRawOrdinalNumber(t.value),a=this._ordinalMeta.categories[i];return a==null?"":a+""}},e.prototype.count=function(){var t=Oo(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(mi(this._mapper.scale(t)))},transformIn:function(t,i){return this._mapper.transformIn(this._getTickNumber(t),i)},transformOut:function(t,i){return this.getRawOrdinalNumber(this._mapper.transformOut(t,i))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,i){return this._mapper.getExtentUnsafe(t,i)},setExtent:function(t,i){return this._mapper.setExtent(t,i)},setExtent2:function(t,i,a){return this._mapper.setExtent2(t,i,a)}},e})($r);$r.registerClass(hN);var wu=hN;function dp(r,e,t,i){for(var a=r.getTicks({expandToNicedExtent:!0}),n=[],o=r.getExtent(),s=1;s<a.length;s++){var l=a[s],u=a[s-1];if(!(u.break||l.break)){for(var f=0,p=[],c=l.value-u.value,v=c/e,h=an(v);f<e-1;){var d=Ne(u.value+(f+1)*v,h);d>o[0]&&d<o[1]&&p.push(d),f++}var m=mt();m&&m.pruneTicksByBreak("auto",p,t,function(g){return g},i,o),n.push(p)}}return n}var dN=(function(r){L(e,r);function e(t){var i=r.call(this)||this;i.type="interval",i.parse=e.parse,t=t||{};var a=Um(i,t),n=fp(i,a,null);return i.brk=n.brk,i._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},i}return e.parse=function(t){return t==null||t===""?NaN:Number(t)},e.prototype.getConfig=function(){return ee(this._cfg)},e.prototype.setConfig=function(t){var i=Oo(this);this._cfg=t=ee(t),t.niceExtent==null&&(t.niceExtent=i.slice()),t.intervalPrecision==null&&(t.intervalPrecision=an(t.interval))},e.prototype.getTicks=function(t){t=t||{};var i=this._cfg,a=i.interval,n=Oo(this),o=i.niceExtent,s=i.intervalPrecision,l=mt(),u=this.brk,f=l&&u,p=[];if(!a)return p;if(t.breakTicks==="only_break"&&f)return l.addBreaksToTicks(p,u.breaks,n),p;var c=3e3;n[0]<o[0]&&p.push({value:t.expandToNicedExtent?Ne(o[0]-a,s):n[0]});for(var v=function(_,x){return mi((x-_)/a)},h=i.intervalCount,d=o[0],m=0;;m++){if(h==null){if(d>o[1]||!isFinite(d)||!isFinite(o[1]))break}else{if(m>h)break;d=Fe(d,o[1]),m===h&&(d=o[1])}if(p.push({value:d}),d=Ne(d+a,s),u){var g=u.calcNiceTickMultiple(d,v);g>=0&&(d=Ne(d+g*a,s))}if(p.length>0&&d===p[p.length-1].value)break;if(p.length>c)return[]}var y=p.length?p[p.length-1].value:o[1];return n[1]>y&&p.push({value:t.expandToNicedExtent?Ne(y+a,s):n[1]}),f&&l.pruneTicksByBreak(t.pruneByBreak,p,u.breaks,function(_){return _.value},i.interval,n),f&&t.breakTicks!=="none"&&l.addBreaksToTicks(p,u.breaks,n),p},e.prototype.getMinorTicks=function(t){return dp(this,t,au(this),this._cfg.interval)},e.prototype.getLabel=function(t,i){if(t==null)return"";var a=i&&i.precision;a==null?a=Hr(t.value)||0:a==="auto"&&(a=this._cfg.intervalPrecision);var n=Ne(t.value,a,!0);return xv(n)},e.type="interval",e})($r);$r.registerClass(dN);var Wn=dN;var r7=function(r,e,t,i){for(;t<i;){var a=t+i>>>1;r[a][1]<e?t=a+1:i=a}return t},gN=(function(r){L(e,r);function e(t){var i=r.call(this)||this;i.type="time",i.parse=e.parse,i._locale=t.locale,i._useUTC=t.useUTC,i._interval=0;var a=Um(i,t),n=fp(i,a,null);return i.brk=n.brk,i}return e.prototype.getLabel=function(t){return Mo(t.value,Cb[AP(Yf(this._minLevelUnit))]||Cb.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,i,a){return EP(t,i,a,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var i=this._interval,a=Oo(this),n=mt(),o=this.brk,s=n&&o,l=[];if(!i)return l;var u=this._useUTC;if(s&&t.breakTicks==="only_break")return mt().addBreaksToTicks(l,o.breaks,a),l;l=u7(this._minLevelUnit,this._approxInterval,u,a,vp(this),o);var f=Di.length-1,p=0;return T(l,function(c){c.time&&(f=Math.min(f,le(Di,c.time.upperTimeUnit)),p=Math.max(p,c.time.level))}),s&&mt().pruneTicksByBreak(t.pruneByBreak,l,o.breaks,function(c){return c.value},this._approxInterval,a),s&&t.breakTicks!=="none"&&mt().addBreaksToTicks(l,o.breaks,a,function(c){for(var v=Math.max(le(Di,ou(c.vmin,u)),le(Di,ou(c.vmax,u))),h=0,d=0;d<Di.length;d++)if(!yN(Di[d],c.vmin,c.vmax,u)){h=d;break}var m=Math.min(h,f),g=Math.max(m,v);return{level:p,lowerTimeUnit:Di[g],upperTimeUnit:Di[m]}}),l},e.prototype.getMinorTicks=function(t){return dp(this,t,au(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return _e(t)?Math.round(t):+gr(t)},e.type="time",e})($r),ly=[["second",Gm],["minute",Hm],["hour",Hf],["quarter-day",Hf*6],["half-day",Hf*12],["day",Yi*1.2],["half-week",Yi*3.5],["week",Yi*7],["month",Yi*31],["quarter",Yi*95],["half-year",Tb/2],["year",Tb]];function yN(r,e,t,i){return Wf(new Date(e),r,i).getTime()===Wf(new Date(t),r,i).getTime()}function i7(r,e){return r/=Yi,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function a7(r){var e=30*Yi;return r/=e,r>6?6:r>3?3:r>2?2:1}function n7(r){return r/=Hf,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function mN(r,e){return r/=e?Hm:Gm,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function o7(r){return xe(mo(r,!0),1)}function s7(r,e,t){var i=Math.max(0,le(Di,e)-1);return Wf(new Date(r),Di[i],t).getTime()}function l7(r,e){var t=new Date(0);t[r](1);var i=t.getTime();t[r](1+e);var a=t.getTime()-i;return function(n,o){return Math.max(0,Math.round((o-n)/a))}}function u7(r,e,t,i,a,n){var o=3e3,s=wP,l=0;function u(R,z,B,F,G,Y,q){for(var re=l7(G,R),ie=z,ue=new Date(ie);ie<B&&ie<=i[1]&&(q.push({value:ie}),!(l++>o));)if(ue[G](ue[F]()+R),ie=ue.getTime(),n){var Pe=n.calcNiceTickMultiple(ie,re);Pe>0&&(ue[G](ue[F]()+Pe*R),ie=ue.getTime())}q.push({value:ie,notAdd:ie>i[1]})}function f(R,z,B){var F=[],G=!z.length;if(!yN(Yf(R),i[0],i[1],t)){G&&(z=[{value:s7(i[0],R,t)},{value:i[1]}]);for(var Y=0;Y<z.length-1;Y++){var q=z[Y].value,re=z[Y+1].value;if(q!==re){var ie=void 0,ue=void 0,Pe=void 0,$e=!1;switch(R){case"year":ie=Math.max(1,Math.round(e/Yi/365)),ue=Ab(t),Pe=DP(t);break;case"half-year":case"quarter":case"month":ie=a7(e),ue=Ym(t),Pe=Eb(t);break;case"week":case"half-week":case"day":ie=i7(e,31),ue=Wm(t),Pe=Db(t),$e=!0;break;case"half-day":case"quarter-day":case"hour":ie=n7(e),ue=Xm(t),Pe=Mb(t);break;case"minute":ie=mN(e,!0),ue=Zm(t),Pe=Ib(t);break;case"second":ie=mN(e,!1),ue=Km(t),Pe=Lb(t);break;case"millisecond":ie=o7(e),ue=qm(t),Pe=Pb(t);break}re>=i[0]&&q<=i[1]&&u(ie,q,re,ue,Pe,$e,F),R==="year"&&B.length>1&&Y===0&&B.unshift({value:B[0].value-ie})}}for(var Y=0;Y<F.length;Y++)B.push(F[Y])}}for(var p=[],c=[],v=0,h=0,d=0;d<s.length;++d){var m=Yf(s[d]);if(CP(s[d])){f(s[d],p[p.length-1]||[],c);var g=s[d+1]?Yf(s[d+1]):null;if(m!==g){if(c.length){h=v,c.sort(function(R,z){return R.value-z.value});for(var y=[],_=0;_<c.length;++_){var x=c[_].value;(_===0||c[_-1].value!==x)&&(y.push(c[_]),x>=i[0]&&x<=i[1]&&v++)}var S=a/e;if(v>S*1.5&&h>S/1.5||(p.push(y),v>S||r===s[d]))break}c=[]}}}for(var b=Ie(U(p,function(R){return Ie(R,function(z){return z.value>=i[0]&&z.value<=i[1]&&!z.notAdd})}),function(R){return R.length>0}),w=b.length-1,A=[],d=0;d<b.length;++d)for(var C=b[d],E=0;E<C.length;++E){var D=ou(C[E].value,t);A.push({value:C[E].value,time:{level:w-d,upperTimeUnit:D,lowerTimeUnit:D}})}us(A,mI,null),A.sort(function(R,z){return R.value-z.value});var I=A[0],M=A[A.length-1],P=ou(i[0],t),O=ou(i[1],t);return(!I||I.value>i[0])&&A.unshift({value:i[0],time:{level:0,upperTimeUnit:P,lowerTimeUnit:P},notNice:!0}),(!M||M.value<i[1])&&A.push({value:i[1],time:{level:0,upperTimeUnit:O,lowerTimeUnit:O},notNice:!0}),A}var _N=function(r,e){var t=r.getExtent();if(t[0]===t[1]&&(t[0]-=Yi,t[1]+=Yi),t[1]===-1/0&&t[0]===1/0){var i=new Date;t[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),t[0]=t[1]-Yi}r.setExtent(t[0],t[1]);var a=bu(e.splitNumber,10),n=vp(r)/a,o=e.minInterval,s=e.maxInterval;o!=null&&n<o&&(n=o),s!=null&&n>s&&(n=s);var l=ly.length,u=Math.min(r7(ly,n,0,l),l-1),f=ly[u][1],p=ly[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:n,interval:f,minLevelUnit:p})};$r.registerClass(gN);var xN=gN;var uy=0,fy=1,f7=2,TN=(function(r){L(e,r);function e(t){var i=r.call(this)||this;i.type="log",i.parse=Wn.parse,i.base=t.logBase||10;var a=[],n=[],o=i._lookup={from:a,to:n};a[uy]=a[fy]=n[uy]=n[fy]=NaN,pp(i,e.mapperMethods);var s=mt(),l=t.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(l,i,{noNegative:!0},f7,u),i.powStub=new Wn({breakParsed:u.original}),i.intervalStub=new Wn({breakParsed:u.transformed}),cp(i,i.intervalStub),i}return e.prototype.getTicks=function(t){var i=this.base,a=this.powStub,n=mt(),o=this.intervalStub,s=o.getExtent(),l=a.getExtent(),u={lookup:{from:s,to:l}};return U(o.getTicks(t||{}),function(f){var p=f.value,c=ny(p,i,u),v;if(n){var h=n.getTicksBreakOutwardTransform(this,f,au(a),this._lookup);h&&(v=h.vBreak,c=h.tickVal)}return{value:c,break:v}},this)},e.prototype.getMinorTicks=function(t){return dp(this,t,au(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,i){return this.intervalStub.getLabel(t,i)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){return this.intervalStub.normalize(Wv(t,this.base))},scale:function(t){return ny(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,i){return t=Wv(t,this.base),i&&i.depth===ba?t:this.intervalStub.transformIn(t,i)},transformOut:function(t,i){var a=i?i.depth:null;return SN.depth=a,bN.lookup=this._lookup,ny(a===ba?t:this.intervalStub.transformOut(t,SN),this.base,bN)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,i){this.setExtent2(Cr,t,i)},setExtent2:function(t,i,a){if(!(!Wa(i,a)||i<=0||a<=0)){var n=wN,o=wN;if(t===Cr){var s=this._lookup;n=s.to,o=s.from}this.powStub.setExtent2(t,n[uy]=i,n[fy]=a);var l=this.base;this.intervalStub.setExtent2(t,o[uy]=Wv(i,l),o[fy]=Wv(a,l))}},getFilter:function(){return{g:0}},sanitize:function(t,i){return Wa(i[0],i[1])&&rr(t)&&t<=0&&(t=i[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,i){return i===null?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,i)}},e})($r);$r.registerClass(TN);var SN={},bN={},wN=[],CN=TN;var py={value:1,category:1,time:1,log:1};var AN=ne();function Xn(r){var e=r.get("type");return(e==null||!ae(py,e)&&!$r.getClass(e))&&(e="value"),e}function wa(r,e,t){var i=mt(),a;switch(i&&(a=F1(r,e,t)),e){case"category":return new wu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:Pt()});case"time":return new xN({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:a});case"log":return new CN({logBase:r.get("logBase"),breakOption:a});case"value":return new Wn({breakOption:a});default:return new($r.getClass(e)||Wn)({})}}function EN(r,e,t){var i=t?Su(r,null):r.getExtentUnsafe(Cr,null),a=i[0],n=i[1];return Wa(a,n)?a===e||n===e?c7:a<e&&n>e?p7:cy:cy}var p7=1,c7=2,cy=3;function DN(r){AN(r).noOnMyZero=!0}function MN(r){return AN(r).noOnMyZero}function Tu(r){var e=r.getLabelModel().get("formatter");if(r.type==="time"){var t=TP(e);return function(a,n){return r.scale.getFormattedLabel(a,n,t)}}else{if(H(e))return function(a){var n=r.scale.getLabel(a),o=e.replace("{value}",n??"");return o};if(J(e)){if(r.type==="category")return function(a,n){return e(mp(r,a),a.value-r.scale.getExtent()[0],null)};var i=mt();return function(a,n){var o=null;return i&&(o=i.makeAxisLabelFormatterParamBreak(o,a.break)),e(mp(r,a),n,o)}}else return function(a){return r.scale.getLabel(a)}}}function mp(r,e){var t=r.scale;return At(t)?t.getLabel(e):e.value}function vy(r){var e=r.get("interval");return e??"auto"}function IN(r){return r.type==="category"&&vy(r.getLabelModel())===0}function LN(r,e){var t={};return T(r.mapDimensionsAll(e),function(i){t[lp(r,i)]=!0}),ye(t)}function Ms(r){return r==="middle"||r==="center"}function Cu(r){return r.getShallow("show")}function F1(r,e,t){var i=r.get("breaks",!0);if(i!=null){if(!mt())return;if(!t||!v7(e)){if(0)var a;return}return i}}function v7(r){return r!=="category"}function hy(r,e,t,i,a,n){var o=Yn(r),s=o?r.intervalStub:r;if(s.setExtent(i[0],i[1]),o){var l=r.powStub,u={depth:ba},f=r.transformOut(i[0],u),p=r.transformOut(i[1],u),c=vN(t,i);e[0]&&!c[0]&&(f=a[0]),e[1]&&!c[1]&&(p=a[1]),l.setExtent(f,p)}s.setConfig(n)}function nn(r,e){return At(r)?r.getRawOrdinalNumber(e.value):e.value}function Zn(r,e){return At(r)&&!!e.get("boundaryGap")}var Ta=(function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r})();var h7=ua(),Zv="|&",gp=ne(),dy=-2,PN=-1,d7=ne();function Y1(r,e){var t=r.model,i=gp(du(t.ecModel)).keyed,a=i&&i.get(e);return a&&a.get(t.uid)}function RN(r,e){return kN(Y1(r,e))}function ON(r,e){var t=[];return NN(r.model.ecModel,function(i){for(var a=0;a<e.length;a++)e[a]&&i.serByIdx[e[a].seriesIndex]&&t.push(kN(i))}),t}function NN(r,e){var t=gp(du(r)).keyed;t&&t.each(function(i,a){i.each(function(n,o){e(n,a,o)})})}function kN(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function zN(r,e){var t=r.model.ecModel,i=gp(du(t)).axSer;i&&Kv(t,i.get(r.model.uid),e)}function Kn(r,e,t){var i=Y1(r,e);i&&Kv(r.model.ecModel,i.sers,t)}function Kv(r,e,t){if(e)for(var i=0;i<e.length;i++){var a=e[i];r.isSeriesFiltered(a)||t(a)}}function VN(r,e){var t=Y1(r,e);if(!t||!t.sers.length)return 0;var i=0;return Kv(r.model.ecModel,t.sers,function(){i++}),i}function yp(r,e,t){var i=gp(du(r)).keyed,a=i&&i.get(e);a&&a.each(function(n){t(n.axis)})}function W1(r,e){var t=r.model,i=gp(du(t.ecModel)).keys;i&&T(i.get(t.uid),function(a){if(0)var n;e(a)})}function m7(r){var e=d7(Vg(r)),t=e.keyed||(e.keyed=W());NN(r,function(i,a,n){var o=t.get(a)||t.set(a,W()),s=o.get(n)||o.set(n,{});i.metrics.liPosMinGap&&BN.liPosMinGap(r,i,s)})}function UN(r,e){BN[r]=e}var BN={};function Ca(r,e,t){if(r){var i=e.ecModel,a=gp(du(i)),n=r.model.uid;if(0)var o,s;var l=a.axSer||(a.axSer=W()),u=l.get(n)||l.set(n,[]);if(0)var f;u.push(e);var p=e.subType,c=e.getBaseAxis()===r,v=H1.get(G1(p,c,t))||H1.get(G1(p,c,null));if(v){var h=a.keyed||(a.keyed=W()),d=a.keys||(a.keys=W()),m=v.key,g=h.get(m)||h.set(m,W()),y=g.get(n);y||(y=g.set(n,{axis:r,sers:[],serByIdx:[]}),y.metrics=v.getMetrics(r),(d.get(n)||d.set(n,[])).push(m)),y.sers.push(e),y.serByIdx[e.seriesIndex]=e}}}function G1(r,e,t){return r+Zv+Z(e,!0)+Zv+(t||"")}function _p(r,e){var t=G1(e.seriesType,e.baseAxis,e.coordSysType);H1.set(t,e),h7(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:m7})})}var H1=W();var g7=ne(),on=1,HN=2,y7=3,YN=(function(){function r(e,t,i,a,n){var o=At(e),s=o?t.getCategories().length:null,l;if(o){var u=t.getCategories(!0);l=u&&!u.length}var f=i.slice();(hp(e)||Yn(e)||Hn(e))&&(dS(f,qv(e,t.get("dataMin",!0))),mS(f,qv(e,t.get("dataMax",!0)))),dI(f)||(f[0]=f[1]=NaN);var p=[],c=[!1,!1],v=t.get("min",!0);v==="dataMin"?(p[0]=f[0],c[0]=!0):(p[0]=qv(e,J(v)?v({min:f[0],max:f[1]}):v),c[0]=p[0]!=null);var h=t.get("max",!0);h==="dataMax"?(p[1]=f[1],c[1]=!0):(p[1]=qv(e,J(h)?h({min:f[0],max:f[1]}):h),c[1]=p[1]!=null);var d=_7(e,t),m=o?null:f[1]-f[0]||Math.abs(f[0]);p[0]==null&&(p[0]=o?l?f[0]:s?0:NaN:f[0]-d[0]*m),p[1]==null&&(p[1]=o?l?f[1]:s?s-1:NaN:f[1]+d[1]*m),!Ga(p[0])&&(p[0]=NaN),!Ga(p[1])&&(p[1]=NaN);var g=l||Lt(p[0])||Lt(p[1])||o&&!s,y=hp(e),_=y&&t.needIncludeZero&&t.needIncludeZero();_&&(p[0]>0&&p[1]>0&&!c[0]&&(p[0]=0),p[0]<0&&p[1]<0&&!c[1]&&(p[1]=0));var x=!1;p[0]>p[1]&&(p.reverse(),x=!0);var S=qv(e,t.get("startValue",!0)),b=S!=null;!rr(S)&&a&&(S=e.getDefaultStartValue?e.getDefaultStartValue():0),rr(S)&&(b||!y||_)&&(S<p[0]&&!c[0]?(p[0]=S,c[0]=!0):S>p[1]&&!c[1]&&(p[1]=S,c[1]=!0));var w=this._i={scale:e,dataMM:f,noZoomEffMM:p,zoomMM:[],fixMM:c,zoomFixMM:[!1,!1],startValue:S,isBlank:g,incl0:_,tggAxInv:x,ctnShp:n};FN(w,p)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,i=e.noZoomEffMM,a=e.zoomFixMM,n=e.fixMM,o={fixMM:n,zoomFixMM:a,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:i.slice()},s=o.effMM;return t[0]!=null&&(s[0]=t[0],n[0]=a[0]=!0),t[1]!=null&&(s[1]=t[1],n[1]=a[1]=!0),FN(e,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},r})();function FN(r,e){var t=r.scale,i=r.dataMM;t.sanitize&&(e[0]=t.sanitize(e[0],i),e[1]=t.sanitize(e[1],i),Df(e))}function qv(r,e){return e==null?null:Lt(e)?NaN:r.parse(e)}function _7(r,e){var t;if(At(r))t=[0,0];else{var i=e.get("boundaryGap");typeof i=="boolean"&&(i=null),t=V(i)?i:[i,i]}return[GN(t[0]),GN(t[1])]}function GN(r){return Lr(typeof r=="boolean"?0:r,1)||0}function WN(r){var e=g7(r.scale);return e.extent||(e.extent=Pt()),e}function XN(r,e){WN(r).dimIdxInCoord=e.get(r.dim)}function Zi(r,e){var t=r.scale,i=r.model,a=r.dim;t.rawExtentInfo||x7(t,r,a,i,e)}function x7(r,e,t,i,a){var n=WN(e),o=n.extent,s=!1;zN(e,function(f){if(f.boxCoordinateSystem){var p=rg(f).coord,c=n.dimIdxInCoord;if(c>=0){if(V(p)){var v=p[c];v!=null&&!V(v)&&$c(o,r.parse(v))}}}else if(f.coordinateSystem){var h=f.getData();if(h){var d=r.getFilter?r.getFilter():null;T(LN(h,t),function(m){hI(o,h.getApproximateExtent(m,d))})}f.__requireStartValue&&f.__requireStartValue(e)&&(s=!0)}});var l=b7(r,e,i),u=new YN(r,i,o,s,l);ZN(r,u,a),n.extent=null}function S7(r,e){var t=r.scale;ZN(t,new YN(t,r.model,e,!1,!1),y7)}function ZN(r,e,t){r.rawExtentInfo=e,e.from=t}function Is(r,e){X1.set(r,e)}var X1=W();function my(r,e,t,i,a){r.rawExtentInfo||S7({scale:r,model:e},a||Pt());var n=r.rawExtentInfo.makeFinal(),o=n.effMM;return r.setExtent(o[0],o[1]),r.setBlank(n.isBlank),i&&n.tggAxInv&&t&&!t.get("legacyMinMaxDontInverseAxis")&&(i.inverse=!i.inverse),n}function b7(r,e,t){var i=Zn(r,t),a=t.get("containShape",!0);if(a==null&&!i&&(a=!0),!a)return!1;var n=!1;return W1(e,function(o){n=!!X1.get(o)||n}),n}function KN(r,e,t,i){if(t.ctnShp){var a;if(W1(r,function(s){var l=X1.get(s);if(l){var u=l(r,i);u&&(a=a||[0,0],dS(a,u[0]),mS(a,u[1]),DN(r))}}),!!a){var n=e.getExtent();if(At(e))r.onBand||e.setExtent2(up,Fe(n[0],n[0]+a[0]),xe(n[1],n[1]+a[1]));else{var o=n.slice();t.zoomFixMM[0]||(o[0]=Fe(o[0],e.transformOut(e.transformIn(o[0],null)+a[0],null))),t.zoomFixMM[1]||(o[1]=xe(o[1],e.transformOut(e.transformIn(o[1],null)+a[1],null))),(o[0]<n[0]||o[1]>n[1])&&e.setExtent2(up,o[0],o[1])}}}}function qN(r,e){var t=Yn(r),i=t?r.intervalStub:r,a=e.fixMinMax||[],n=t?r.getExtent():null,o=i.getExtent(),s=oy(o,a,e.rawExtentResult);i.setExtent(s[0],s[1]),s=i.getExtent();var l=t?T7(i,e):w7(i,e),u=l.intervalPrecision,f=l.interval,p=e.userInterval;p!=null&&(l.interval=p,l.intervalPrecision=an(p)),a[0]||(s[0]=Ne(mr(s[0]/f)*f,u)),a[1]||(s[1]=Ne(sa(s[1]/f)*f,u)),p!=null&&(l.niceExtent=s.slice()),hy(r,a,o,s,n,l)}function w7(r,e){var t=bu(e.splitNumber,5),i=vp(r),a=e.minInterval,n=e.maxInterval,o=mo(i/t,!0);a!=null&&o<a&&(o=a),n!=null&&o>n&&(o=n);var s=an(o),l=r.getExtent(),u=[Ne(sa(l[0]/o)*o,s),Ne(mr(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function T7(r,e){var t=bu(e.splitNumber,10),i=r.getExtent(),a=vp(r),n=xe(bf(a),1),o=t/a*n;o<=.5&&(n*=10);var s=an(n),l=[Ne(sa(i[0]/n)*n,s),Ne(mr(i[1]/n)*n,s)];return{intervalPrecision:s,interval:n,niceExtent:l}}function qn(r){var e=r.scale,t=r.model,i=t.axis,a=t.ecModel;Z1(e,t,i,a,null)}function Z1(r,e,t,i,a){var n=my(r,e,i,t,a),o=hp(r)||Hn(r);K1(r,{splitNumber:e.get("splitNumber"),fixMinMax:n.fixMM,userInterval:e.get("interval"),minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null,rawExtentResult:n}),t&&i&&KN(t,r,n,i)}function K1(r,e){C7[r.type](r,e)}var C7={interval:qN,log:qN,time:_N,ordinal:et};function A7(r){return nr(null,r)}var E7={isDimensionStacked:Qr,enableDataStack:ry,getStackedDimension:lp};function D7(r,e){var t=e;e instanceof Ee||(t=new Ee(e));var i=Xn(t),a=wa(t,i,!1);return r[1]<r[0]&&(r=r.slice().reverse()),Z1(a,t,null,null,r),a}function M7(r){rt(r,Ta)}function I7(r,e){return e=e||{},Xe(r,null,null,e.state!=="normal")}var L7=1e-8;function JN(r,e){return Math.abs(r-e)<L7}function No(r,e,t){var i=0,a=r[0];if(!a)return!1;for(var n=1;n<r.length;n++){var o=r[n];i+=fa(a[0],a[1],o[0],o[1],e,t),a=o}var s=r[0];return(!JN(a[0],s[0])||!JN(a[1],s[1]))&&(i+=fa(a[0],a[1],s[0],s[1],e,t)),i!==0}var P7=[];function q1(r,e){for(var t=0;t<r.length;t++)ot(r[t],r[t],e)}function $N(r,e,t,i){for(var a=0;a<r.length;a++){var n=r[a];i&&(n=i.project(n)),n&&isFinite(n[0])&&isFinite(n[1])&&(fi(e,e,n),pi(t,t,n))}}function R7(r){for(var e=0,t=0,i=0,a=r.length,n=r[a-1][0],o=r[a-1][1],s=0;s<a;s++){var l=r[s][0],u=r[s][1],f=n*u-l*o;e+=f,t+=(n+l)*f,i+=(o+u)*f,n=l,o=u}return e?[t/e/3,i/e/3,e]:[r[0][0]||0,r[0][1]||0]}var e2=(function(){function r(e){this.name=e}return r.prototype.setCenter=function(e){this._center=e},r.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},r})();var j1=(function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r})();var J1=(function(){function r(e){this.type="linestring",this.points=e}return r})();var gy=(function(r){L(e,r);function e(t,i,a){var n=r.call(this,t)||this;return n.type="geoJSON",n.geometries=i,n._center=a&&[a[0],a[1]],n}return e.prototype.calcCenter=function(){for(var t=this.geometries,i,a=0,n=0;n<t.length;n++){var o=t[n],s=o.exterior,l=s&&s.length;l>a&&(i=o,a=l)}if(i)return R7(i.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var i=this._rect;if(i&&!t)return i;var a=[1/0,1/0],n=[-1/0,-1/0],o=this.geometries;return T(o,function(s){s.type==="polygon"?$N(s.exterior,a,n,t):T(s.points,function(l){$N(l,a,n,t)})}),isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])||(a[0]=a[1]=n[0]=n[1]=0),i=new oe(a[0],a[1],n[0]-a[0],n[1]-a[1]),t||(this._rect=i),i},e.prototype.contain=function(t){var i=this.getBoundingRect(),a=this.geometries;if(!i.contain(t[0],t[1]))return!1;e:for(var n=0,o=a.length;n<o;n++){var s=a[n];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(No(l,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(No(u[f],t[0],t[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(t,i,a,n){var o=this.getBoundingRect(),s=o.width/o.height;a?n||(n=a/s):a=s*n;for(var l=new oe(t,i,a,n),u=o.calculateTransform(l),f=this.geometries,p=0;p<f.length;p++){var c=f[p];c.type==="polygon"?(q1(c.exterior,u),T(c.interiors,function(v){q1(v,u)})):T(c.points,function(v){q1(v,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},e.prototype.cloneShallow=function(t){t==null&&(t=this.name);var i=new e(t,this.geometries,this._center);return i._rect=this._rect,i.transformTo=null,i},e})(e2);var t2=(function(r){L(e,r);function e(t,i){var a=r.call(this,t)||this;return a.type="geoSVG",a._elOnlyForCalculate=i,a}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,i=t.getBoundingRect(),a=[i.x+i.width/2,i.y+i.height/2],n=ra(P7),o=t;o&&!o.isGeoSVGGraphicRoot;)Qt(n,o.getLocalTransform(),n),o=o.parent;return zt(n,n),ot(a,a,n),a},e})(e2);function O7(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var i=e.features;return T(i,function(a){var n=a.geometry,o=n.encodeOffsets,s=n.coordinates;if(o)switch(n.type){case"LineString":n.coordinates=r2(s,o,t);break;case"Polygon":Q1(s,o,t);break;case"MultiLineString":Q1(s,o,t);break;case"MultiPolygon":T(s,function(l,u){return Q1(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function Q1(r,e,t){for(var i=0;i<r.length;i++)r[i]=r2(r[i],e[i],t)}function r2(r,e,t){for(var i=[],a=e[0],n=e[1],o=0;o<r.length;o+=2){var s=r.charCodeAt(o)-64,l=r.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=a,l+=n,a=s,n=l,i.push([s/t,l/t])}return i}function jv(r,e){return r=O7(r),U(Ie(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var i=t.properties,a=t.geometry,n=[];switch(a.type){case"Polygon":var o=a.coordinates;n.push(new j1(o[0],o.slice(1)));break;case"MultiPolygon":T(a.coordinates,function(l){l[0]&&n.push(new j1(l[0],l.slice(1)))});break;case"LineString":n.push(new J1([a.coordinates]));break;case"MultiLineString":n.push(new J1(a.coordinates))}var s=new gy(i[e||"name"],n,i.cp);return s.properties=i,s})}var i2={};ea(i2,{MAX_SAFE_INTEGER:()=>ls,asc:()=>dt,getPercentWithPrecision:()=>QM,getPixelPrecision:()=>JM,getPrecision:()=>Hr,getPrecisionSafe:()=>lS,isNumeric:()=>Nl,isRadianAroundZero:()=>An,linearMap:()=>Ue,nice:()=>mo,numericToNumber:()=>gi,parseDate:()=>gr,parsePercent:()=>j,quantile:()=>Tf,quantity:()=>bf,quantityExponent:()=>wf,reformIntervals:()=>Kc,remRadian:()=>Zc,round:()=>jM});var a2={};ea(a2,{format:()=>Mo,parse:()=>gr,roundTime:()=>Wf});var n2={};ea(n2,{Arc:()=>Jl,BezierCurve:()=>wo,BoundingRect:()=>oe,Circle:()=>Sr,CompoundPath:()=>Vn,Ellipse:()=>ql,Group:()=>Q,Image:()=>lt,IncrementalDisplayable:()=>Em,Line:()=>ut,LinearGradient:()=>Ci,Polygon:()=>yt,Polyline:()=>vt,RadialGradient:()=>zf,Rect:()=>de,Ring:()=>bo,Sector:()=>Tt,Text:()=>be,clipPointsByRect:()=>dv,clipRectByRect:()=>cb,createIcon:()=>ja,extendPath:()=>pb,extendShape:()=>fb,getShapeClass:()=>ys,getTransform:()=>qa,initProps:()=>Ge,makeImage:()=>vv,makePath:()=>Co,mergePath:()=>vr,registerShape:()=>Hi,resizePath:()=>Mm,updateProps:()=>Ae});var o2={};ea(o2,{addCommas:()=>xv,capitalFirst:()=>LP,encodeHTML:()=>Yt,formatTime:()=>IP,formatTpl:()=>Zf,getTextRect:()=>Rb,getTooltipMarker:()=>Qm,normalizeCssArray:()=>ma,toCamelCase:()=>Xf,truncateText:()=>SS});var s2={};ea(s2,{bind:()=>X,clone:()=>ee,curry:()=>me,defaults:()=>$,each:()=>T,extend:()=>k,filter:()=>Ie,indexOf:()=>le,inherits:()=>wc,isArray:()=>V,isFunction:()=>J,isObject:()=>te,isString:()=>H,map:()=>U,merge:()=>ve,reduce:()=>tr});var N7=ne(),Jv=ne(),Li={estimate:1,determine:2};function xp(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function l2(r,e){var t=r.getLabelModel().get("customValues");if(t){var i=r.scale;return{labels:U(f2(t,i),function(a,n){return{formattedLabel:Tu(r)(a,n),rawLabel:i.getLabel(a),tick:a}})}}return r.type==="category"?k7(r,e):V7(r)}function u2(r,e,t){var i=r.scale,a=r.getTickModel().get("customValues");return a?{ticks:f2(a,i)}:r.type==="category"?z7(r,e):{ticks:i.getTicks(t)}}function f2(r,e){var t=e.getExtent(),i=[];return T(r,function(a){a=e.parse(a),a>=t[0]&&a<=t[1]&&i.push(a)}),us(i,gI,null),dt(i),U(i,function(a){return{value:a}})}function k7(r,e){var t=r.getLabelModel(),i=p2(r,t,e);return!t.get("show")||r.scale.isBlank()?{labels:[]}:i}function p2(r,e,t){var i=B7(r),a=vy(e),n=t.kind===Li.estimate;if(!n){var o=v2(i,a);if(o)return o}var s,l;J(a)?s=yy(r,a,!1):(l=a==="auto"?F7(r,t):a,s=yy(r,l,!1));var u={labels:s,labelCategoryInterval:l};return n?t.out.noPxChangeTryDetermine.push(function(){return $1(i,a,u),!0}):$1(i,a,u),u}function z7(r,e){var t=U7(r),i=vy(e),a=v2(t,i);if(a)return a;var n,o;if((!e.get("show")||r.scale.isBlank())&&(n=[]),J(i))n=yy(r,i,!0);else if(i==="auto"){var s=p2(r,r.getLabelModel(),xp(Li.determine));o=s.labelCategoryInterval,n=U(s.labels,function(l){return l.tick})}else o=i,n=yy(r,o,!0);return $1(t,i,{ticks:n,tickCategoryInterval:o})}function V7(r){var e=r.scale.getTicks(),t=Tu(r);return{labels:U(e,function(i,a){return{formattedLabel:t(i,a),rawLabel:r.scale.getLabel(i),tick:i}})}}var U7=c2("axisTick"),B7=c2("axisLabel");function c2(r){return function(t){return Jv(t)[r]||(Jv(t)[r]={list:[]})}}function v2(r,e){for(var t=0;t<r.list.length;t++)if(r.list[t].key===e)return r.list[t].value}function $1(r,e,t){return r.list.push({key:e,value:t}),t}function F7(r,e){if(e.kind===Li.estimate){var t=r.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return Jv(r).autoInterval=t,!0}),t}var i=Jv(r).autoInterval;return i??(Jv(r).autoInterval=r.calculateCategoryInterval(e))}function h2(r,e){var t=e.kind,i=H7(r),a=Tu(r),n=(i.axisRotate-i.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var p=s[0],c=r.dataToCoord(p+1)-r.dataToCoord(p),v=Math.abs(c*Math.cos(n)),h=Math.abs(c*Math.sin(n)),d=0,m=0;p<=s[1];p+=u){var g=0,y=0,_=as(a({value:p}),i.font,"center","top");g=_.width*1.3,y=_.height*1.3,d=Math.max(d,g,7),m=Math.max(m,y,7)}var x=d/v,S=m/h;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(x,S)));if(t===Li.estimate)return e.out.noPxChangeTryDetermine.push(X(G7,null,r,b,l)),b;var w=d2(r,b,l);return w??b}function G7(r,e,t){return d2(r,e,t)==null}function d2(r,e,t){var i=N7(r.model),a=r.getExtent(),n=i.lastAutoInterval,o=i.lastTickCount;if(n!=null&&o!=null&&Math.abs(n-e)<=1&&Math.abs(o-t)<=1&&n>e&&i.axisExtent0===a[0]&&i.axisExtent1===a[1])return n;i.lastTickCount=t,i.lastAutoInterval=e,i.axisExtent0=a[0],i.axisExtent1=a[1]}function H7(r){var e=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function yy(r,e,t){var i=Tu(r),a=r.scale,n=[],o=J(e);return sy(a,o?0:e,function(s,l){var u=a.getLabel(s);if(o){var f=!!e(s.value,u);if(s.offInterval=!f,!f&&!l)return}n.push(t?s:{formattedLabel:i(s),rawLabel:u,tick:s})}),n}var Y7=.8;function xt(r,e){e=e||{};var t={w:NaN,w2:NaN},i=r.scale,a=e.fromStat,n=e.min,o=pN(i);rr(o)||(o=NaN);var s=r.getExtent(),l=ct(s[1]-s[0]);return At(i)?W7(t,r,o,l):a?X7(t,r,o,l,a):n==null,n!=null&&(t.w=rr(t.w)?xe(n,t.w):n),t}function W7(r,e,t,i){var a=e.onBand,n=t+(a?1:0);n===0&&(n=1),r.w=i/n,!a&&t&&i&&(r.w2=r.w*t/i)}function X7(r,e,t,i,a){var n=!1,o=-1/0;T(a.key?[RN(e,a.key)]:ON(e,a.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),n=!1):l===dy&&(n=!0))}),rr(t)&&t>0&&rr(o)?(r.w=i/t*o,r.w2=o):n&&(r.w=i*Y7,r.w2=r.w*t/i)}var m2=[0,1],Z7=(function(){function r(e,t,i){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=i||[0,0]}return r.prototype.contain=function(e){var t=this._extent,i=Math.min(t[0],t[1]),a=Math.max(t[0],t[1]);return e>=i&&e<=a},r.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var i=this._extent;i[0]=e,i[1]=t},r.prototype.dataToCoord=function(e,t){var i=this.scale;return e=i.normalize(i.parse(e)),Ue(e,m2,g2(this),t)},r.prototype.coordToData=function(e,t){var i=Ue(e,g2(this),m2,t);return this.scale.scale(i)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),i=u2(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),a=U(i.ticks,function(s){return{coord:this.dataToCoord(nn(this.scale,s)),tick:s}},this),n=t.get("alignWithLabel"),o=K7(this,a,n);return U(a,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(At(this.scale))return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var i=this.scale.getMinorTicks(t),a=U(i,function(n){return U(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},r.prototype.getViewLabels=function(e){return e=e||xp(Li.determine),l2(this,e).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return xt(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(e){return e=e||xp(Li.determine),h2(this,e)},r})();function g2(r){var e=r.getExtent();if(r.onBand){var t=e[1]-e[0],i=t/r.scale.count()/2;e[0]+=i,e[1]-=i}return e}function K7(r,e,t){var i=e.length;if(!r.onBand||t||!i)return!1;var a=xt(r).w;if(!a)return!1;T(e,function(s){s.coord-=a/2});var n=r.scale.getExtent(),o=e[i-1];return o.tick.offInterval&&e.pop(),e.push({coord:o.coord+a,tick:{value:n[1]+1}}),!0}var ur=Z7;function h_e(r){var e=Se.extend(r);return Se.registerClass(e),e}function d_e(r){var e=ze.extend(r);return ze.registerClass(e),e}function m_e(r){var e=ke.extend(r);return ke.registerClass(e),e}function g_e(r){var e=Le.extend(r);return Le.registerClass(e),e}var Qv=Math.PI*2,Au=or.CMD,q7=["top","right","bottom","left"];function j7(r,e,t,i,a){var n=t.width,o=t.height;switch(r){case"top":i.set(t.x+n/2,t.y-e),a.set(0,-1);break;case"bottom":i.set(t.x+n/2,t.y+o+e),a.set(0,1);break;case"left":i.set(t.x-e,t.y+o/2),a.set(-1,0);break;case"right":i.set(t.x+n+e,t.y+o/2),a.set(1,0);break}}function J7(r,e,t,i,a,n,o,s,l){o-=r,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*t+r,p=s*t+e;if(Math.abs(i-a)%Qv<1e-4)return l[0]=f,l[1]=p,u-t;if(n){var c=i;i=_r(a),a=_r(c)}else i=_r(i),a=_r(a);i>a&&(a+=Qv);var v=Math.atan2(s,o);if(v<0&&(v+=Qv),v>=i&&v<=a||v+Qv>=i&&v+Qv<=a)return l[0]=f,l[1]=p,u-t;var h=t*Math.cos(i)+r,d=t*Math.sin(i)+e,m=t*Math.cos(a)+r,g=t*Math.sin(a)+e,y=(h-o)*(h-o)+(d-s)*(d-s),_=(m-o)*(m-o)+(g-s)*(g-s);return y<_?(l[0]=h,l[1]=d,Math.sqrt(y)):(l[0]=m,l[1]=g,Math.sqrt(_))}function _y(r,e,t,i,a,n,o,s){var l=a-r,u=n-e,f=t-r,p=i-e,c=Math.sqrt(f*f+p*p);f/=c,p/=c;var v=l*f+u*p,h=v/c;s&&(h=Math.min(Math.max(h,0),1)),h*=c;var d=o[0]=r+h*f,m=o[1]=e+h*p;return Math.sqrt((d-a)*(d-a)+(m-n)*(m-n))}function y2(r,e,t,i,a,n,o){t<0&&(r=r+t,t=-t),i<0&&(e=e+i,i=-i);var s=r+t,l=e+i,u=o[0]=Math.min(Math.max(a,r),s),f=o[1]=Math.min(Math.max(n,e),l);return Math.sqrt((u-a)*(u-a)+(f-n)*(f-n))}var sn=[];function Q7(r,e,t){var i=y2(e.x,e.y,e.width,e.height,r.x,r.y,sn);return t.set(sn[0],sn[1]),i}function $7(r,e,t){for(var i=0,a=0,n=0,o=0,s,l,u=1/0,f=e.data,p=r.x,c=r.y,v=0;v<f.length;){var h=f[v++];v===1&&(i=f[v],a=f[v+1],n=i,o=a);var d=u;switch(h){case Au.M:n=f[v++],o=f[v++],i=n,a=o;break;case Au.L:d=_y(i,a,f[v],f[v+1],p,c,sn,!0),i=f[v++],a=f[v++];break;case Au.C:d=xd(i,a,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],p,c,sn),i=f[v++],a=f[v++];break;case Au.Q:d=bd(i,a,f[v++],f[v++],f[v],f[v+1],p,c,sn),i=f[v++],a=f[v++];break;case Au.A:var m=f[v++],g=f[v++],y=f[v++],_=f[v++],x=f[v++],S=f[v++];v+=1;var b=!!(1-f[v++]);s=Math.cos(x)*y+m,l=Math.sin(x)*_+g,v<=1&&(n=s,o=l);var w=(p-m)*_/y+m;d=J7(m,g,_,x,x+S,b,w,c,sn),i=Math.cos(x+S)*y+m,a=Math.sin(x+S)*_+g;break;case Au.R:n=i=f[v++],o=a=f[v++];var A=f[v++],C=f[v++];d=y2(n,o,A,C,p,c,sn);break;case Au.Z:d=_y(i,a,n,o,p,c,sn,!0),i=n,a=o;break}d<u&&(u=d,t.set(sn[0],sn[1]))}return u}var ln=new he,bt=new he,Zt=new he,Jn=new he,jn=new he;function tw(r,e){if(r){var t=r.getTextGuideLine(),i=r.getTextContent();if(i&&t){var a=r.textGuideLineConfig||{},n=[[0,0],[0,0],[0,0]],o=a.candidates||q7,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=a.anchor,f=r.getComputedTransform(),p=f&&zt([],f),c=e.get("length2")||0;u&&Zt.copy(u);for(var v=0;v<o.length;v++){var h=o[v];j7(h,0,s,ln,Jn),he.scaleAndAdd(bt,ln,Jn,c),bt.transform(p);var d=r.getBoundingRect(),m=u?u.distance(bt):r instanceof ce?$7(bt,r.path,Zt):Q7(bt,d,Zt);m<l&&(l=m,bt.transform(f),Zt.transform(f),Zt.toArray(n[0]),bt.toArray(n[1]),ln.toArray(n[2]))}rw(n,e.get("minTurnAngle")),t.setShape({points:n})}}}var xy=[],ei=new he;function rw(r,e){if(e<=180&&e>0){e=e/180*Math.PI,ln.fromArray(r[0]),bt.fromArray(r[1]),Zt.fromArray(r[2]),he.sub(Jn,ln,bt),he.sub(jn,Zt,bt);var t=Jn.len(),i=jn.len();if(!(t<.001||i<.001)){Jn.scale(1/t),jn.scale(1/i);var a=Jn.dot(jn),n=Math.cos(e);if(n<a){var o=_y(bt.x,bt.y,Zt.x,Zt.y,ln.x,ln.y,xy,!1);ei.fromArray(xy),ei.scaleAndAdd(jn,o/Math.tan(Math.PI-e));var s=Zt.x!==bt.x?(ei.x-bt.x)/(Zt.x-bt.x):(ei.y-bt.y)/(Zt.y-bt.y);if(isNaN(s))return;s<0?he.copy(ei,bt):s>1&&he.copy(ei,Zt),ei.toArray(r[1])}}}}function _2(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,ln.fromArray(r[0]),bt.fromArray(r[1]),Zt.fromArray(r[2]),he.sub(Jn,bt,ln),he.sub(jn,Zt,bt);var i=Jn.len(),a=jn.len();if(!(i<.001||a<.001)){Jn.scale(1/i),jn.scale(1/a);var n=Jn.dot(e),o=Math.cos(t);if(n<o){var s=_y(bt.x,bt.y,Zt.x,Zt.y,ln.x,ln.y,xy,!1);ei.fromArray(xy);var l=Math.PI/2,u=Math.acos(jn.dot(e)),f=l+u-t;if(f>=l)he.copy(ei,Zt);else{ei.scaleAndAdd(jn,s/Math.tan(Math.PI/2-f));var p=Zt.x!==bt.x?(ei.x-bt.x)/(Zt.x-bt.x):(ei.y-bt.y)/(Zt.y-bt.y);if(isNaN(p))return;p<0?he.copy(ei,bt):p>1&&he.copy(ei,Zt)}ei.toArray(r[1])}}}}function ew(r,e,t,i){var a=t==="normal",n=a?r:r.ensureState(t);n.ignore=e;var o=i.get("smooth");o=o===!0?.3:Math.max(+o,0)||0,n.shape=n.shape||{},n.shape.smooth=o;var s=i.getModel("lineStyle").getLineStyle();a?r.useStyle(s):n.style=s}function e9(r,e){var t=e.smooth,i=e.points;if(i)if(r.moveTo(i[0][0],i[0][1]),t>0&&i.length>=3){var a=Vi(i[0],i[1]),n=Vi(i[1],i[2]);if(!a||!n){r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]);return}var o=Math.min(a,n)*t,s=hl([],i[1],i[0],o/a),l=hl([],i[1],i[2],o/n),u=hl([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var f=1;f<i.length;f++)r.lineTo(i[f][0],i[f][1])}function Sp(r,e,t){var i=r.getTextGuideLine(),a=r.getTextContent();if(!a){i&&r.removeTextGuideLine();return}for(var n=e.normal,o=n.get("show"),s=a.ignore,l=0;l<ds.length;l++){var u=ds[l],f=e[u],p=u==="normal";if(f){var c=f.get("show"),v=p?s:Z(a.states[u]&&a.states[u].ignore,s);if(v||!Z(c,o)){var h=p?i:i&&i.states[u];h&&(h.ignore=!0),i&&ew(i,!0,u,f);continue}i||(i=new vt,r.setTextGuideLine(i),!p&&(s||!o)&&ew(i,!0,"normal",e.normal),r.stateProxy&&(i.stateProxy=r.stateProxy)),ew(i,!1,u,f)}}if(i){$(i.style,t),i.style.fill=null;var d=n.get("showAbove"),m=r.textGuideLineConfig=r.textGuideLineConfig||{};m.showAbove=d||!1,i.buildPath=e9}}function bp(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},i=0;i<ir.length;i++){var a=ir[i];t[a]=r.getModel([a,e])}return t}var x2=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],t9=1,Sy=2,b2=t9|Sy;function $v(r,e,t){t=t||b2,e?r.dirty|=t:r.dirty&=~t}function w2(r,e){return e=e||b2,r.dirty==null||!!(r.dirty&e)}function un(r){if(r)return w2(r)&&aw(r,r.label,r),r}function aw(r,e,t){var i=e.getComputedTransform();r.transform=Lm(r.transform,i);var a=r.localRect=Bf(r.localRect,e.getBoundingRect()),n=e.style,o=n.margin,s=t&&t.marginForce,l=t&&t.minMarginForce,u=t&&t.marginDefault,f=n.__marginType;f==null&&u&&(o=u,f=ru.textMargin);for(var p=0;p<4;p++)iw[p]=f===ru.minMargin&&l&&l[p]!=null?l[p]:s&&s[p]!=null?s[p]:o?o[p]:0;f===ru.textMargin&&ha(a,iw,!1,!1);var c=r.rect=Bf(r.rect,a);return i&&c.applyTransform(i),f===ru.minMargin&&ha(c,iw,!1,!1),r.axisAligned=Im(i),(r.label=r.label||{}).ignore=e.ignore,$v(r,!1),$v(r,!0,Sy),r}var iw=[0,0,0,0];function T2(r,e,t){return r.transform=Lm(r.transform,t),r.localRect=Bf(r.localRect,e),r.rect=Bf(r.rect,e),t&&r.rect.applyTransform(t),r.axisAligned=Im(t),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function eh(r,e){if(r){r.label.x+=e.x,r.label.y+=e.y,r.label.markRedraw();var t=r.transform;t&&(t[4]+=e.x,t[5]+=e.y);var i=r.rect;i&&(i.x+=e.x,i.y+=e.y);var a=r.obb;a&&a.fromBoundingRect(r.localRect,t)}}function th(r,e){for(var t=0;t<x2.length;t++){var i=x2[t];r[i]==null&&(r[i]=e[i])}return un(r)}function S2(r){var e=r.obb;return(!e||w2(r,Sy))&&(r.obb=e=e||new Am,e.fromBoundingRect(r.localRect,r.transform),$v(r,!1,Sy)),e}function rh(r,e,t,i,a){var n=r.length,o=we[e],s=_t[e];if(n<2)return!1;r.sort(function(C,E){return C.rect[o]-E.rect[o]});for(var l=0,u,f=!1,p=0,c=0;c<n;c++){var v=r[c],h=v.rect;u=h[o]-l,u<0&&(h[o]-=u,v.label[o]-=u,f=!0);var d=Math.max(-u,0);p+=d,l=h[o]+h[s]}p>0&&a&&b(-p/n,0,n);var m=r[0],g=r[n-1],y,_;x(),y<0&&w(-y,.8),_<0&&w(_,.8),x(),S(y,_,1),S(_,y,-1),x(),y<0&&A(-y),_<0&&A(_);function x(){y=m.rect[o]-t,_=i-g.rect[o]-g.rect[s]}function S(C,E,D){if(C<0){var I=Math.min(E,-C);if(I>0){b(I*D,0,n);var M=I+C;M<0&&w(-M*D,1)}else w(-C*D,1)}}function b(C,E,D){C!==0&&(f=!0);for(var I=E;I<D;I++){var M=r[I],P=M.rect;P[o]+=C,M.label[o]+=C}}function w(C,E){for(var D=[],I=0,M=1;M<n;M++){var P=r[M-1].rect,O=Math.max(r[M].rect[o]-P[o]-P[s],0);D.push(O),I+=O}if(I){var R=Math.min(Math.abs(C)/I,E);if(C>0)for(var M=0;M<n-1;M++){var z=D[M]*R;b(z,0,M+1)}else for(var M=n-1;M>0;M--){var z=D[M-1]*R;b(-z,M,n)}}}function A(C){var E=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(n-1)),I=0;I<n-1;I++)if(E>0?b(D,0,I+1):b(-D,n-I-1,n),C-=D,C<=0)return}return f}function C2(r){for(var e=0;e<r.length;e++){var t=r[e],i=t.defaultAttr,a=t.labelLine;t.label.attr("ignore",i.ignore),a&&a.attr("ignore",i.labelGuideIgnore)}}function by(r){var e=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function t(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var i=0;i<r.length;i++){var a=un(r[i]);if(!a.label.ignore){for(var n=a.label,o=a.labelLine,s=!1,l=0;l<e.length;l++)if(wp(a,e[l],null,{touchThreshold:.05})){s=!0;break}s?(t(n),o&&t(o)):e.push(a)}}}function wp(r,e,t,i){return!r||!e||r.label&&r.label.ignore||e.label&&e.label.ignore||!r.rect.intersect(e.rect,t,i)?!1:r.axisAligned&&e.axisAligned?!0:S2(r).intersect(S2(e),t,i)}function r9(r){if(r){for(var e=[],t=0;t<r.length;t++)e.push(r[t].slice());return e}}function i9(r,e){var t=r.label,i=e&&e.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:t.style.align,verticalAlign:t.style.verticalAlign,labelLinePoints:r9(i&&i.shape.points)}}var A2=["align","verticalAlign","width","height","fontSize"],ti=new di,nw=ne(),a9=ne();function wy(r,e,t){for(var i=0;i<t.length;i++){var a=t[i];e[a]!=null&&(r[a]=e[a])}}var Ty=["x","y","rotation"],n9=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(e,t,i,a,n){var o=a.style,s=a.__hostTarget,l=s.textConfig||{},u=a.getComputedTransform(),f=a.getBoundingRect().plain();oe.applyTransform(f,f,u),u?ti.setLocalTransform(u):(ti.x=ti.y=ti.rotation=ti.originX=ti.originY=0,ti.scaleX=ti.scaleY=1),ti.rotation=_r(ti.rotation);var p=a.__hostTarget,c;if(p){c=p.getBoundingRect().plain();var v=p.getComputedTransform();oe.applyTransform(c,c,v)}var h=c&&p.getTextGuideLine();this._labelList.push({label:a,labelLine:h,seriesModel:i,dataIndex:e,dataType:t,layoutOptionOrCb:n,layoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:a.ignore,labelGuideIgnore:h&&h.ignore,x:ti.x,y:ti.y,scaleX:ti.scaleX,scaleY:ti.scaleY,rotation:ti.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:a.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(e){var t=this;this._chartViewList.push(e);var i=e.__model,a=i.get("labelLayout");(J(a)||ye(a).length)&&e.group.traverse(function(n){if(n.ignore)return!0;var o=n.getTextContent(),s=se(n);o&&!o.disableLabelLayout&&t._addLabel(s.dataIndex,s.dataType,i,o,a)})},r.prototype.updateLayoutConfig=function(e){var t=e.getWidth(),i=e.getHeight();function a(_,x){return function(){tw(_,x)}}for(var n=0;n<this._labelList.length;n++){var o=this._labelList[n],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;J(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(i9(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var p=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*p:u.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=j(f.x,t),s.setStyle("x",0),c=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=j(f.y,i),s.setStyle("y",0),c=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),c=!1)}var h=nw(s);h.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*p:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var d=0;d<A2.length;d++){var m=A2[d];s.setStyle(m,f[m]!=null?f[m]:u.style[m])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var y=o.seriesModel.getData(o.dataType);g=y.getItemModel(o.dataIndex)}s.on("drag",a(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(e){var t=e.getWidth(),i=e.getHeight(),a=[];T(this._labelList,function(l){l.defaultAttr.ignore||a.push(th({},l))});var n=Ie(a,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Ie(a,function(l){return l.layoutOption.moveOverlap==="shiftY"});rh(n,0,0,t),rh(o,1,0,i);var s=Ie(a,function(l){return l.layoutOption.hideOverlap});C2(s),by(s)},r.prototype.processLabelsOverall=function(){var e=this;T(this._chartViewList,function(t){var i=t.__model,a=t.ignoreLabelLineUpdate,n=i.isAnimationEnabled();t.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!a,l=o.getTextContent();!s&&l&&(s=nw(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,i),n&&e._animateLabels(o,i)})})},r.prototype._updateLabelLine=function(e,t){var i=e.getTextContent(),a=se(e),n=a.dataIndex;if(i&&n!=null){var o=t.getData(a.dataType),s=o.getItemModel(n),l={},u=o.getItemVisual(n,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var p=s.getModel("labelLine");Sp(e,bp(s),l),tw(e,p)}},r.prototype._animateLabels=function(e,t){var i=e.getTextContent(),a=e.getTextGuideLine();if(i&&(e.forceLabelAnimation||!i.ignore&&!i.invisible&&!e.disableLabelAnimation&&!To(e))){var n=nw(i),o=n.oldLayout,s=se(e),l=s.dataIndex,u={x:i.x,y:i.y,rotation:i.rotation},f=t.getData(s.dataType);if(o){i.attr(o);var c=e.prevStates;c&&(le(c,"select")>=0&&i.attr(n.oldLayoutSelect),le(c,"emphasis")>=0&&i.attr(n.oldLayoutEmphasis)),Ae(i,u,t,l)}else if(i.attr(u),!Do(i).valueAnimation){var p=Z(i.style.opacity,1);i.style.opacity=0,Ge(i,{style:{opacity:p}},t,l)}if(n.oldLayout=u,i.states.select){var v=n.oldLayoutSelect={};wy(v,u,Ty),wy(v,i.states.select,Ty)}if(i.states.emphasis){var h=n.oldLayoutEmphasis={};wy(h,u,Ty),wy(h,i.states.emphasis,Ty)}Nm(i,l,f,t,t)}if(a&&!a.ignore&&!a.invisible){var n=a9(a),o=n.oldLayout,d={points:a.shape.points};o?(a.attr({shape:o}),Ae(a,{shape:d},t)):(a.setShape(d),a.style.strokePercent=0,Ge(a,{style:{strokePercent:1}},t)),n.oldLayout=d}},r})(),E2=n9;var ow=ne();function sw(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){var a=ow(t).labelManager;a||(a=ow(t).labelManager=new E2),a.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(e,t,i){var a=ow(t).labelManager;T(i.updatedSeries,function(n){a.addLabelsOfSeries(t.getViewOfSeriesModel(n))}),a.updateLayoutConfig(t),a.layout(t),a.processLabelsOverall()})}var lw=Math.sin,uw=Math.cos,D2=Math.PI,Eu=Math.PI*2,o9=180/D2,s9=(function(){function r(){}return r.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},r.prototype.moveTo=function(e,t){this._add("M",e,t)},r.prototype.lineTo=function(e,t){this._add("L",e,t)},r.prototype.bezierCurveTo=function(e,t,i,a,n,o){this._add("C",e,t,i,a,n,o)},r.prototype.quadraticCurveTo=function(e,t,i,a){this._add("Q",e,t,i,a)},r.prototype.arc=function(e,t,i,a,n,o){this.ellipse(e,t,i,i,0,a,n,o)},r.prototype.ellipse=function(e,t,i,a,n,o,s,l){var u=s-o,f=!l,p=Math.abs(u),c=Tn(p-Eu)||(f?u>=Eu:-u>=Eu),v=u>0?u%Eu:u%Eu+Eu,h=!1;c?h=!0:Tn(p)?h=!1:h=v>=D2==!!f;var d=e+i*uw(o),m=t+a*lw(o);this._start&&this._add("M",d,m);var g=Math.round(n*o9);if(c){var y=1/this._p,_=(f?1:-1)*(Eu-y);this._add("A",i,a,g,1,+f,e+i*uw(o+_),t+a*lw(o+_)),y>.01&&this._add("A",i,a,g,0,+f,d,m)}else{var x=e+i*uw(s),S=t+a*lw(s);this._add("A",i,a,g,+h,+f,x,S)}},r.prototype.rect=function(e,t,i,a){this._add("M",e,t),this._add("l",i,0),this._add("l",0,a),this._add("l",-i,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,i,a,n,o,s,l,u){for(var f=[],p=this._p,c=1;c<arguments.length;c++){var v=arguments[c];if(isNaN(v)){this._invalid=!0;return}f.push(Math.round(v*p)/p)}this._d.push(e+f.join(" ")),this._start=e==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),Cy=s9;var ih="none",l9=Math.round;function u9(r){var e=r.fill;return e!=null&&e!==ih}function f9(r){var e=r.stroke;return e!=null&&e!==ih}var fw=["lineCap","miterLimit","lineJoin"],p9=U(fw,function(r){return"stroke-"+r.toLowerCase()});function pw(r,e,t,i){var a=e.opacity==null?1:e.opacity;if(t instanceof lt){r("opacity",a);return}if(u9(e)){var n=is(e.fill);r("fill",n.color);var o=e.fillOpacity!=null?e.fillOpacity*n.opacity*a:n.opacity*a;(i||o<1)&&r("fill-opacity",o)}else r("fill",ih);if(f9(e)){var s=is(e.stroke);r("stroke",s.color);var l=e.strokeNoScale?t.getLineScale():1,u=l?(e.lineWidth||0)/l:0,f=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*a:s.opacity*a,p=e.strokeFirst;if((i||u!==1)&&r("stroke-width",u),(i||p)&&r("paint-order",p?"stroke":"fill"),(i||f<1)&&r("stroke-opacity",f),e.lineDash){var c=zv(t),v=c[0],h=c[1];v&&(h=l9(h||0),r("stroke-dasharray",v.join(",")),(h||i)&&r("stroke-dashoffset",h))}else i&&r("stroke-dasharray",ih);for(var d=0;d<fw.length;d++){var m=fw[d];if(i||e[m]!==Lf[m]){var g=e[m]||Lf[m];g&&r(p9[d],g)}}}else i&&r("stroke",ih)}var M2="http://www.w3.org/2000/svg",cw="http://www.w3.org/1999/xlink",I2="http://www.w3.org/2000/xmlns/",L2="http://www.w3.org/XML/1998/namespace",vw="ecmeta_";function Ay(r){return document.createElementNS(M2,r)}function Kt(r,e,t,i,a){return{tag:r,attrs:t||{},children:i,text:a,key:e}}function c9(r,e){var t=[];if(e)for(var i in e){var a=e[i],n=i;a!==!1&&(a!==!0&&a!=null&&(n+='="'+a+'"'),t.push(n))}return"<"+r+" "+t.join(" ")+">"}function v9(r){return"</"+r+">"}function ah(r,e){e=e||{};var t=e.newline?`
16
+ `:"";function i(a){var n=a.children,o=a.tag,s=a.attrs,l=a.text;return c9(o,s)+(o!=="style"?Yt(l):l||"")+(n?""+t+U(n,function(u){return i(u)}).join(t)+t:"")+v9(o)}return i(r)}function P2(r,e,t){t=t||{};var i=t.newline?`
17
+ `:"",a=" {"+i,n=i+"}",o=U(ye(r),function(l){return l+a+U(ye(r[l]),function(u){return u+":"+r[l][u]+";"}).join(i)+n}).join(i),s=U(ye(e),function(l){return"@keyframes "+l+a+U(ye(e[l]),function(u){return u+a+U(ye(e[l][u]),function(f){var p=e[l][u][f];return f==="d"&&(p='path("'+p+'")'),f+":"+p+";"}).join(i)+n}).join(i)+n}).join(i);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(i)}function nh(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function hw(r,e,t,i){return Kt("svg","root",{width:r,height:e,xmlns:M2,"xmlns:xlink":cw,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+r+" "+e:!1},t)}var h9=0;function Ey(){return h9++}var R2={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Du="transform-origin";function d9(r,e,t){var i=k({},r.shape);k(i,e),r.buildPath(t,i);var a=new Cy;return a.reset(Pd(r)),t.rebuildPath(a,1),a.generateStr(),a.getStr()}function m9(r,e){var t=e.originX,i=e.originY;(t||i)&&(r[Du]=t+"px "+i+"px")}var g9={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function N2(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function y9(r,e,t){var i=r.shape.paths,a={},n,o;if(T(i,function(l){var u=nh(t.zrId);u.animation=!0,oh(l,{},u,!0);var f=u.cssAnims,p=u.cssNodes,c=ye(f),v=c.length;if(v){o=c[v-1];var h=f[o];for(var d in h){var m=h[d];a[d]=a[d]||{d:""},a[d].d+=m.d||""}for(var g in p){var y=p[g].animation;y.indexOf(o)>=0&&(n=y)}}}),!!n){e.d=!1;var s=N2(a,t);return n.replace(o,s)}}function O2(r){return H(r)?R2[r]?"cubic-bezier("+R2[r]+")":pf(r)?r:"":""}function oh(r,e,t,i){var a=r.animators,n=a.length,o=[];if(r instanceof Vn){var s=y9(r,e,t);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u<n;u++){var f=a[u],p=[f.getMaxTime()/1e3+"s"],c=O2(f.getClip().easing),v=f.getDelay();c?p.push(c):p.push("linear"),v&&p.push(v/1e3+"s"),f.getLoop()&&p.push("infinite");var h=p.join(" ");l[h]=l[h]||[h,[]],l[h][1].push(f)}function d(y){var _=y[1],x=_.length,S={},b={},w={},A="animation-timing-function";function C(De,fe,Oe){for(var pe=De.getTracks(),Me=De.getMaxTime(),pt=0;pt<pe.length;pt++){var Ze=pe[pt];if(Ze.needsAnimate()){var nt=Ze.keyframes,ht=Ze.propName;if(Oe&&(ht=Oe(ht)),ht)for(var qt=0;qt<nt.length;qt++){var Ni=nt[qt],si=Math.round(Ni.time/Me*100)+"%",fl=O2(Ni.easing),ef=Ni.rawValue;(H(ef)||_e(ef))&&(fe[si]=fe[si]||{},fe[si][ht]=Ni.rawValue,fl&&(fe[si][A]=fl))}}}}for(var E=0;E<x;E++){var D=_[E],I=D.targetName;I?I==="shape"&&C(D,b):!i&&C(D,S)}for(var M in S){var P={};hi(P,r),k(P,S[M]);var O=Rd(P),R=S[M][A];w[M]=O?{transform:O}:{},m9(w[M],P),R&&(w[M][A]=R)}var z,B=!0;for(var M in b){w[M]=w[M]||{};var F=!z,R=b[M][A];F&&(z=new or);var G=z.len();z.reset(),w[M].d=d9(r,b[M],z);var Y=z.len();if(!F&&G!==Y){B=!1;break}R&&(w[M][A]=R)}if(!B)for(var M in w)delete w[M].d;if(!i)for(var E=0;E<x;E++){var D=_[E],I=D.targetName;I==="style"&&C(D,w,function(pe){return g9[pe]})}for(var q=ye(w),re=!0,ie,E=1;E<q.length;E++){var ue=q[E-1],Pe=q[E];if(w[ue][Du]!==w[Pe][Du]){re=!1;break}ie=w[ue][Du]}if(re&&ie){for(var M in w)w[M][Du]&&delete w[M][Du];e[Du]=ie}if(Ie(q,function(De){return ye(w[De]).length>0}).length){var $e=N2(w,t);return $e+" "+y[0]+" both"}}for(var m in l){var s=d(l[m]);s&&o.push(s)}if(o.length){var g=t.zrId+"-cls-"+Ey();t.cssNodes["."+g]={animation:o.join(",")},e.class=g}}function z2(r,e,t){if(!r.ignore)if(r.isSilent()){var i={"pointer-events":"none"};k2(i,e,t,!0)}else{var a=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},n=a.fill;if(!n){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(n=hf(l))}var u=a.lineWidth;if(u){var f=!a.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var i={cursor:"pointer"};n&&(i.fill=n),a.stroke&&(i.stroke=a.stroke),u&&(i["stroke-width"]=u),k2(i,e,t,!0)}}function k2(r,e,t,i){var a=JSON.stringify(r),n=t.cssStyleCache[a];n||(n=t.zrId+"-cls-"+Ey(),t.cssStyleCache[a]=n,t.cssNodes["."+n+(i?":hover":"")]=r),e.class=e.class?e.class+" "+n:n}var sh=Math.round;function F2(r){return r&&H(r.src)}function G2(r){return r&&J(r.toDataURL)}function dw(r,e,t,i){pw(function(a,n){var o=a==="fill"||a==="stroke";o&&Ld(n)?_w(e,r,a,i):o&&Vc(n)?xw(t,r,a,i):r[a]=n,o&&i.ssr&&n==="none"&&(r["pointer-events"]="visible")},e,t,!1),C9(t,r,i)}function mw(r,e){var t=nS(e);t&&(t.each(function(i,a){i!=null&&(r[(vw+a).toLowerCase()]=i+"")}),e.isSilent()&&(r[vw+"silent"]="true"))}function V2(r){return Tn(r[0]-1)&&Tn(r[1])&&Tn(r[2])&&Tn(r[3]-1)}function _9(r){return Tn(r[4])&&Tn(r[5])}function gw(r,e,t){if(e&&!(_9(e)&&V2(e))){var i=t?10:1e4;r.transform=V2(e)?"translate("+sh(e[4]*i)/i+" "+sh(e[5]*i)/i+")":_M(e)}}function U2(r,e,t){for(var i=r.points,a=[],n=0;n<i.length;n++)a.push(sh(i[n][0]*t)/t),a.push(sh(i[n][1]*t)/t);e.points=a.join(" ")}function B2(r){return!r.smooth}function x9(r){var e=U(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,i,a){for(var n=0;n<e.length;n++){var o=e[n],s=t[o[0]];s!=null&&(i[o[1]]=sh(s*a)/a)}}}var S9={circle:[x9(["cx","cy","r"])],polyline:[U2,B2],polygon:[U2,B2]};function b9(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function H2(r,e){var t=r.style,i=r.shape,a=S9[r.type],n={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&Pd(r)||4;if(a&&!e.willUpdate&&!(a[1]&&!a[1](i))&&!(o&&b9(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);a[0](i,n,f)}else{var p=!r.path||r.shapeChanged();r.path||r.createPathProxy();var c=r.path;p&&(c.beginPath(),r.buildPath(c,r.shape),r.pathUpdated());var v=c.getVersion(),h=r,d=h.__svgPathBuilder;(h.__svgPathVersion!==v||!d||l!==h.__svgPathStrokePercent)&&(d||(d=h.__svgPathBuilder=new Cy),d.reset(u),c.rebuildPath(d,l),d.generateStr(),h.__svgPathVersion=v,h.__svgPathStrokePercent=l),n.d=d.getStr()}return gw(n,r.transform),dw(n,t,r,e),mw(n,r),e.animation&&oh(r,n,e),e.emphasis&&z2(r,n,e),Kt(s,r.id+"",n)}function w9(r,e){var t=r.style,i=t.image;if(i&&!H(i)&&(F2(i)?i=i.src:G2(i)&&(i=i.toDataURL())),!!i){var a=t.x||0,n=t.y||0,o=t.width,s=t.height,l={href:i,width:o,height:s};return a&&(l.x=a),n&&(l.y=n),gw(l,r.transform),dw(l,t,r,e),mw(l,r),e.animation&&oh(r,l,e),Kt("image",r.id+"",l)}}function T9(r,e){var t=r.style,i=t.text;if(i!=null&&(i+=""),!(!i||isNaN(t.x)||isNaN(t.y))){var a=t.font||li,n=t.x||0,o=SM(t.y||0,Pl(a),t.textBaseline),s=xM[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(US(t)){var u="",f=t.fontStyle,p=VS(t.fontSize);if(!parseFloat(p))return;var c=t.fontFamily||rx,v=t.fontWeight;u+="font-size:"+p+";font-family:"+c+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),v&&v!=="normal"&&(u+="font-weight:"+v+";"),l.style=u}else l.style="font: "+a;return i.match(/\s/)&&(l["xml:space"]="preserve"),n&&(l.x=n),o&&(l.y=o),gw(l,r.transform),dw(l,t,r,e),mw(l,r),e.animation&&oh(r,l,e),Kt("text",r.id+"",l,void 0,i)}}function yw(r,e){if(r instanceof ce)return H2(r,e);if(r instanceof lt)return w9(r,e);if(r instanceof yo)return T9(r,e)}function C9(r,e,t){var i=r.style;if(bM(i)){var a=wM(r),n=t.shadowCache,o=n[a];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=i.shadowOffsetX||0,p=i.shadowOffsetY||0,c=i.shadowBlur,v=is(i.shadowColor),h=v.opacity,d=v.color,m=c/2/l,g=c/2/u,y=m+" "+g;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=Kt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Kt("feDropShadow","",{dx:f/l,dy:p/u,stdDeviation:y,"flood-color":d,"flood-opacity":h})]),n[a]=o}e.filter=Uc(o)}}function _w(r,e,t,i){var a=r[t],n,o={gradientUnits:a.global?"userSpaceOnUse":"objectBoundingBox"};if(Md(a))n="linearGradient",o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else if(Id(a))n="radialGradient",o.cx=Z(a.x,.5),o.cy=Z(a.y,.5),o.r=Z(a.r,.5);else return;for(var s=a.colorStops,l=[],u=0,f=s.length;u<f;++u){var p=Dd(s[u].offset)*100+"%",c=s[u].color,v=is(c),h=v.color,d=v.opacity,m={offset:p};m["stop-color"]=h,d<1&&(m["stop-opacity"]=d),l.push(Kt("stop",u+"",m))}var g=Kt(n,"",o,l),y=ah(g),_=i.gradientCache,x=_[y];x||(x=i.zrId+"-g"+i.gradientIdx++,_[y]=x,o.id=x,i.defs[x]=Kt(n,x,o,l)),e[t]=Uc(x)}function xw(r,e,t,i){var a=r.style[t],n=r.getBoundingRect(),o={},s=a.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",p;if(kx(a)){var c=a.imageWidth,v=a.imageHeight,h=void 0,d=a.image;if(H(d)?h=d:F2(d)?h=d.src:G2(d)&&(h=d.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";at(c,m),at(v,m)}else if(c==null||v==null){var g=function(E,D){if(E){var I=E.elm,M=c||D.width,P=v||D.height;E.tag==="pattern"&&(u?(P=1,M/=n.width):f&&(M=1,P/=n.height)),E.attrs.width=M,E.attrs.height=P,I&&(I.setAttribute("width",M),I.setAttribute("height",P))}},y=ev(h,null,r,function(E){l||g(b,E),g(p,E)});y&&y.width&&y.height&&(c=c||y.width,v=v||y.height)}p=Kt("image","img",{href:h,width:c,height:v}),o.width=c,o.height=v}else a.svgElement&&(p=ee(a.svgElement),o.width=a.svgWidth,o.height=a.svgHeight);if(p){var _,x;l?_=x=1:u?(x=1,_=o.width/n.width):f?(_=1,x=o.height/n.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),x!=null&&!isNaN(x)&&(o.height=x);var S=Rd(a);S&&(o.patternTransform=S);var b=Kt("pattern","",o,[p]),w=ah(b),A=i.patternCache,C=A[w];C||(C=i.zrId+"-p"+i.patternIdx++,A[w]=C,o.id=C,b=i.defs[C]=Kt("pattern",C,o,[p])),e[t]=Uc(C)}}function Y2(r,e,t){var i=t.clipPathCache,a=t.defs,n=i[r.id];if(!n){n=t.zrId+"-c"+t.clipPathIdx++;var o={id:n};i[r.id]=n,a[n]=Kt("clipPath",n,o,[H2(r,t)])}e["clip-path"]=Uc(n)}function Sw(r){return document.createTextNode(r)}function Ls(r,e,t){r.insertBefore(e,t)}function bw(r,e){r.removeChild(e)}function ww(r,e){r.appendChild(e)}function Tw(r){return r.parentNode}function Cw(r){return r.nextSibling}function Dy(r,e){r.textContent=e}var W2=58,E9=120,D9=Kt("","");function Aw(r){return r===void 0}function Qn(r){return r!==void 0}function M9(r,e,t){for(var i={},a=e;a<=t;++a){var n=r[a].key;n!==void 0&&(i[n]=a)}return i}function lh(r,e){var t=r.key===e.key,i=r.tag===e.tag;return i&&t}function uh(r){var e,t=r.children,i=r.tag;if(Qn(i)){var a=r.elm=Ay(i);if(Iy(D9,r),V(t))for(e=0;e<t.length;++e){var n=t[e];n!=null&&ww(a,uh(n))}else Qn(r.text)&&!te(r.text)&&ww(a,Sw(r.text))}else r.elm=Sw(r.text);return r.elm}function X2(r,e,t,i,a){for(;i<=a;++i){var n=t[i];n!=null&&Ls(r,uh(n),e)}}function My(r,e,t,i){for(;t<=i;++t){var a=e[t];if(a!=null)if(Qn(a.tag)){var n=Tw(a.elm);bw(n,a.elm)}else bw(r,a.elm)}}function Iy(r,e){var t,i=e.elm,a=r&&r.attrs||{},n=e.attrs||{};if(a!==n){for(t in n){var o=n[t],s=a[t];s!==o&&(o===!0?i.setAttribute(t,""):o===!1?i.removeAttribute(t):t==="style"?i.style.cssText=o:t.charCodeAt(0)!==E9?i.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?i.setAttributeNS(I2,t,o):t.charCodeAt(3)===W2?i.setAttributeNS(L2,t,o):t.charCodeAt(5)===W2?i.setAttributeNS(cw,t,o):i.setAttribute(t,o))}for(t in a)t in n||i.removeAttribute(t)}}function I9(r,e,t){for(var i=0,a=0,n=e.length-1,o=e[0],s=e[n],l=t.length-1,u=t[0],f=t[l],p,c,v,h;i<=n&&a<=l;)o==null?o=e[++i]:s==null?s=e[--n]:u==null?u=t[++a]:f==null?f=t[--l]:lh(o,u)?(Tp(o,u),o=e[++i],u=t[++a]):lh(s,f)?(Tp(s,f),s=e[--n],f=t[--l]):lh(o,f)?(Tp(o,f),Ls(r,o.elm,Cw(s.elm)),o=e[++i],f=t[--l]):lh(s,u)?(Tp(s,u),Ls(r,s.elm,o.elm),s=e[--n],u=t[++a]):(Aw(p)&&(p=M9(e,i,n)),c=p[u.key],Aw(c)?Ls(r,uh(u),o.elm):(v=e[c],v.tag!==u.tag?Ls(r,uh(u),o.elm):(Tp(v,u),e[c]=void 0,Ls(r,v.elm,o.elm))),u=t[++a]);(i<=n||a<=l)&&(i>n?(h=t[l+1]==null?null:t[l+1].elm,X2(r,h,t,a,l)):My(r,e,i,n))}function Tp(r,e){var t=e.elm=r.elm,i=r.children,a=e.children;r!==e&&(Iy(r,e),Aw(e.text)?Qn(i)&&Qn(a)?i!==a&&I9(t,i,a):Qn(a)?(Qn(r.text)&&Dy(t,""),X2(t,null,a,0,a.length-1)):Qn(i)?My(t,i,0,i.length-1):Qn(r.text)&&Dy(t,""):r.text!==e.text&&(Qn(i)&&My(t,i,0,i.length-1),Dy(t,e.text)))}function Ew(r,e){if(lh(r,e))Tp(r,e);else{var t=r.elm,i=Tw(t);uh(e),i!==null&&(Ls(i,e.elm,Cw(t)),My(i,[r],0,0))}return e}var L9=0,P9=(function(){function r(e,t,i){if(this.type="svg",this.configLayer=R9("configLayer"),this.storage=t,this._opts=i=k({},i),this.root=e,this._id="zr"+L9++,this._oldVNode=hw(i.width,i.height),e&&!i.ssr){var a=this._viewport=document.createElement("div");a.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=Ay("svg");Iy(null,this._oldVNode),a.appendChild(n),e.appendChild(a)}this.resize(i.width,i.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Ew(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return yw(e,nh(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),i=this._width,a=this._height,n=nh(this._id);n.animation=e.animation,n.willUpdate=e.willUpdate,n.compress=e.compress,n.emphasis=e.emphasis,n.ssr=this._opts.ssr;var o=[],s=this._bgVNode=O9(i,a,this._backgroundColor,n);s&&o.push(s);var l=e.compress?null:this._mainVNode=Kt("g","main",{},[]);this._paintList(t,n,l?l.children:o),l&&o.push(l);var u=U(ye(n.defs),function(c){return n.defs[c]});if(u.length&&o.push(Kt("defs","defs",{},u)),e.animation){var f=P2(n.cssNodes,n.cssAnims,{newline:!0});if(f){var p=Kt("style","stl",{},[],f);o.push(p)}}return hw(i,a,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},ah(this.renderToVNode({animation:Z(e.cssAnimation,!0),emphasis:Z(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Z(e.useViewBox,!0)}),{newline:!0})},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(e,t,i){for(var a=e.length,n=[],o=0,s,l,u=0,f=0;f<a;f++){var p=e[f];if(!p.invisible){var c=p.__clipPaths,v=c&&c.length||0,h=l&&l.length||0,d=void 0;for(d=Math.max(v-1,h-1);d>=0&&!(c&&l&&c[d]===l[d]);d--);for(var m=h-1;m>d;m--)o--,s=n[o-1];for(var g=d+1;g<v;g++){var y={};Y2(c[g],y,t);var _=Kt("g","clip-g-"+u++,y,[]);(s?s.children:i).push(_),n[o++]=_,s=_}l=c;var x=yw(p,t);x&&(s?s.children:i).push(x)}}},r.prototype.resize=function(e,t){var i=this._opts,a=this.root,n=this._viewport;if(e!=null&&(i.width=e),t!=null&&(i.height=t),a&&n&&(n.style.display="none",e=Ts(a,0,i),t=Ts(a,1,i),n.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,n){var o=n.style;o.width=e+"px",o.height=t+"px"}if(Vc(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",t));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",t))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(e){var t=this.renderToString(),i="data:image/svg+xml;";return e?(t=TM(t),t&&i+"base64,"+t):i+"charset=UTF-8,"+encodeURIComponent(t)},r})();function R9(r){return function(){}}function O9(r,e,t,i){var a;if(t&&t!=="none")if(a=Kt("rect","bg",{width:r,height:e,x:"0",y:"0"}),Ld(t))_w({fill:t},a.attrs,"fill",i);else if(Vc(t))xw({style:{fill:t},dirty:et,getBoundingRect:function(){return{width:r,height:e}}},a.attrs,"fill",i);else{var n=is(t),o=n.color,s=n.opacity;a.attrs.fill=o,s<1&&(a.attrs["fill-opacity"]=s)}return a}var Z2=P9;function Dw(r){r.registerPainter("svg",Z2)}function K2(r,e,t){var i=wt.createCanvas(),a=e.getWidth(),n=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=n+"px",i.setAttribute("data-zr-dom-id",r)),i.width=a*t,i.height=n*t,i}function Ly(r){return!r.__cursors.get(ib)}function q2(r){var e=r.__cursors.get(ib);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var N9=(function(r){Ve(e,r);function e(t,i,a){var n=r.call(this)||this;n.motionBlur=!1,n.lastFrameAlpha=.7,n.dpr=1,n.virtual=!1,n.config={},n.zlevel=0,n.zlevel2=Vf,n.maxRepaintRectCount=5,n.__dirty=!0,n.__firstTimePaint=!0,n.__prevIdx={startIdx:0,endIdx:0};var o;a=a||Dl,typeof t=="string"?o=K2(t,i,a):te(t)&&(o=t,t=o.id),n.id=t,n.dom=o;var s=o.style;return s&&(Cc(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),n.painter=i,n.dpr=a,n}return e.prototype.afterBrush=function(){this.__prevIdx=q2(this)},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=K2("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),t!==1&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,i,a,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new oe(0,0,0,0);function f(x){if(!(!x.isFinite()||x.isZero()))if(o.length===0){var S=new oe(0,0,0,0);S.copy(x),o.push(S)}else{for(var b=!1,w=1/0,A=0,C=0;C<o.length;++C){var E=o[C];if(E.intersect(x)){var D=new oe(0,0,0,0);D.copy(E),D.union(x),o[C]=D,b=!0;break}else if(l){u.copy(x),u.union(E);var I=x.width*x.height,M=E.width*E.height,P=u.width*u.height,O=P-I-M;O<w&&(w=O,A=C)}}if(l&&(o[A].union(x),b=!0),!b){var S=new oe(0,0,0,0);S.copy(x),o.push(S)}l||(l=o.length>=s)}}for(var p=q2(this),c=p.startIdx;c<p.endIdx;++c){var v=t[c];if(v){var h=v.shouldBePainted(a,n,!0,!0),d=v.__isRendered&&(v.__dirty&$t||!h)?v.getPrevPaintRect():null;d&&f(d);var m=h&&(v.__dirty&$t||!v.__isRendered)?v.getPaintRect():null;m&&f(m)}}for(var g=this.__prevIdx,c=g.startIdx;c<g.endIdx;++c){var v=i[c],h=v&&v.shouldBePainted(a,n,!0,!0);if(v&&(!h||!v.__zr)&&v.__isRendered){var d=v.getPrevPaintRect();d&&f(d)}}var y;do{y=!1;for(var c=0;c<o.length;){if(o[c].isZero()){o.splice(c,1);continue}for(var _=c+1;_<o.length;)o[c].intersect(o[_])?(y=!0,o[c].union(o[_]),o.splice(_,1)):_++;c++}}while(y);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,i){var a=this.dpr,n=this.dom,o=n.style,s=this.domBack;o&&(o.width=t+"px",o.height=i+"px"),n.width=t*a,n.height=i*a,s&&(s.width=t*a,s.height=i*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(t,i,a){var n=this.dom,o=this.ctx,s=n.width,l=n.height;i=i||this.clearColor;var u=this.motionBlur&&!t,f=this.lastFrameAlpha,p=this.dpr,c=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,s/p,l/p));var v=this.domBack;function h(d,m,g,y){if(o.clearRect(d,m,g,y),i&&i!=="transparent"){var _=void 0;if(lo(i)){var x=i.global||i.__width===g&&i.__height===y;_=x&&i.__canvasGradient||kv(o,i,{x:0,y:0,width:g,height:y}),i.__canvasGradient=_,i.__width=g,i.__height=y}else ux(i)&&(i.scaleX=i.scaleX||p,i.scaleY=i.scaleY||p,_=Gg(o,i,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||i,o.fillRect(d,m,g,y),o.restore()}u&&(o.save(),o.globalAlpha=f,o.drawImage(v,d,m,g,y),o.restore())}!a||u?h(0,0,s,l):a.length&&T(a,function(d){h(d.x*p,d.y*p,d.width*p,d.height*p)})},e})(Jt),Mw=N9;var j2=1e5,Mu=314159,Iw=void 0,k9=1,Lw=2;function z9(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function V9(r,e){var t=document.createElement("div");return t.style.cssText=["position:relative","width:"+r+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",t}function J2(r,e,t,i){var a=new Mw(r,e,e.dpr);return a.zlevel=t,a.zlevel2=i,a.__builtin__=!0,Q2(a),a}function Q2(r){r.__cursorStack=[],r.__cursors=W()}function U9(r){return r.startIdx=r.drawIdx=r.endIdx=r.endIdxNew=0,r.used=!1,r.first=r.last=NaN,r.notClearIdx=-1,r}function B9(r,e){var t=r.__cursors,i=+e;return t.get(i)||(r.__cursorStack.push(i),t.set(i,U9({key:i})))}function Py(r,e){for(var t=r.__cursorStack,i=0;i<t.length;i++)e(r.__cursors.get(t[i]))}function Pw(r,e){var t=r.layers;return t[e]||(t[e]=new Array(3))}function Ur(r,e,t){for(var i=r.layerStack,a=0;a<i.length;a++){var n=i[a].zl,o=i[a].zl2,s=r.layers[n][o];(!t||(!(t&fh)||s.__builtin__)&&(!(t&Rw)||!s.__builtin__)&&(!(t&$2)||s!==r.hoverlayer))&&e(s,n,o,a)}}var fh=1,Rw=2,$2=4,Ry=fh|$2,F9=(function(){function r(e,t,i,a){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var n=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=i=k({},i||{}),this.dpr=i.devicePixelRatio||Dl,this._singleCanvas=n,this.root=e;var o=e.style;if(o&&(Cc(e),e.innerHTML=""),this.storage=t,this._prevDisplayList=[],n){var l=e,u=l.width,f=l.height;i.width!=null&&(u=i.width),i.height!=null&&(f=i.height),this.dpr=i.devicePixelRatio||1,l.width=u*this.dpr,l.height=f*this.dpr,this._width=u,this._height=f;var p=J2(l,this,Mu,Vf);p.initContext(),this._insertLayer(p,Mu,Vf,!0),this._domRoot=e}else{this._width=Ts(e,0,i),this._height=Ts(e,1,i);var s=this._domRoot=V9(this._width,this._height);e.appendChild(s)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},r.prototype.refresh=function(e){var t;e&&!te(e)?t={paintAll:!!e}:t=e||{};var i=Z(t.refresh,!0),a=Z(t.refreshHover,!1);if(a&&(this._hoverLayerDirty=Lw),!i)return a&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var n=this.storage.getDisplayList(!0);this._updateLayerStatus(n,t.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(n,o,this._redrawId);var s=this._backgroundColor;return Ur(this._i,function(l,u,f,p){l.refresh&&l.refresh(p===0?s:null)},Rw),this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},r.prototype._paintHoverList=function(e){var t=this._i.hoverlayer,i=this._hoverLayerDirty;if(this._hoverLayerDirty=Iw,i!==Iw&&(!t&&i===Lw&&(t=this._i.hoverlayer=this._ensureLayer(j2)),!!t)){t.clear();for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},n,o=0,s=e.length;o<s;o++){var l=e[o];if(l.__inHover){n||(n=t.ctx,n.save());var u=l.__hoverStyle,f=void 0;u&&(f=l.style,l.style=u),Cs(n,l,a),u&&(l.style=f)}}n&&(gu(n,a),n.restore())}},r.prototype.getHoverLayer=function(){return this._ensureLayer(j2)},r.prototype.paintOne=function(e,t){Vv(e,t)},r.prototype._paintList=function(e,t,i){if(this._redrawId===i){var a=this._doPaintList(e,t);if(this._needsManuallyCompositing&&this._compositeManually(),a)Ur(this._i,function(o){o.afterBrush&&o.afterBrush()},Ry),this._paintHoverList(e);else{var n=this;Rc(function(){n._paintList(e,t,i)})}}},r.prototype._compositeManually=function(){var e=this._ensureLayer(Mu).ctx,t=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,t,i),Ur(this._i,function(a){a.virtual&&e.drawImage(a.dom,0,0,t,i)},fh)},r.prototype._doPaintList=function(e,t){var i=this,a=!0;return Ur(this._i,function(n){var o=!1;if(Py(n,function(p){(p.drawIdx<p.endIdx||p.notClearIdx>=0)&&(o=!0)}),!(!o&&!n.__dirty)){var s=i._opts.useDirtyRect&&!Ly(n)?n.createRepaintRects(e,t,i._width,i._height):null,l=i._i.layerStack[0],u=!0;if(n.__dirty){u=!1,n.__dirty=!1;var f=n.zlevel===l.zl&&n.zlevel2===l.zl2?i._backgroundColor:null;n.clear(!1,f,s)}Py(n,function(p){var c=i._paintPerCursor(n,p,e,s,u);a=a&&c})}},Ry),Re.wxa&&Ur(this._i,function(n){n&&n.ctx&&n.ctx.draw&&n.ctx.draw()}),a},r.prototype._paintPerCursor=function(e,t,i,a,n){var o=e.ctx;if(a)if(!a.length)t.drawIdx=t.endIdx;else for(var s=this.dpr,l=0;l<a.length;++l){var u=a[l];o.save(),o.beginPath(),o.rect(u.x*s,u.y*s,u.width*s,u.height*s),o.clip(),this._paintPerCursorInRect(e,t,i,u,n),o.restore()}else o.save(),this._paintPerCursorInRect(e,t,i,null,n),o.restore();return t.drawIdx>=t.endIdx},r.prototype._paintPerCursorInRect=function(e,t,i,a,n){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:n}},s=e.ctx,l=Ly(e),u=l&&wt.getTime(),f=t.drawIdx,p=t.notClearIdx,c=p>=0?Math.min(p,f):f;c<t.endIdx;c++){var v=i[c];if(!(c<f&&!v.notClear)){if(v.__inHover&&(this._hoverLayerDirty=Lw),a!=null){var h=v.getPaintRect();h&&h.intersect(a)&&(Cs(s,v,o),v.setPrevPaintRect(h))}else Cs(s,v,o);if(l){var d=wt.getTime()-u;if(d>15){c++;break}}}}gu(s,o),t.drawIdx=Math.max(c,f)},r.prototype.getLayer=function(e,t){return this._ensureLayer(e,0,t)},r.prototype._ensureLayer=function(e,t,i){t=t||0;var a=this._singleCanvas;a&&!this._needsManuallyCompositing&&(e=Mu,t=0);var n=Pw(this._i,e)[t];return n||(n=J2("zr_"+e+"."+t,this,e,t),this._layerConfig[e]&&ve(n,this._layerConfig[e],!0),(i||a&&e!==Mu)&&(n.virtual=!0),this._insertLayer(n,e,t,!1),n.initContext()),n},r.prototype.insertLayer=function(e,t){this._insertLayer(t,e,0,!1)},r.prototype._insertLayer=function(e,t,i,a){var n=this._i,o=n.layers,s=n.layerStack,l=this._domRoot,u=null;if(!(o[t]&&o[t][i])&&z9(e)){for(var f=s.length,p=0;p<f&&(s[p].zl<t||s[p].zl===t&&s[p].zl2<i);)p++;if(p>0&&(u=Pw(n,s[p-1].zl)[s[p-1].zl2]),s.splice(p,0,{zl:t,zl2:i}),Pw(n,t)[i]=e,!a&&!e.virtual)if(u){var c=u.dom;c.nextSibling?l.insertBefore(e.dom,c.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(e,t){return Ur(this._i,function(i,a){e.call(t,i,a)})},r.prototype.eachBuiltinLayer=function(e,t){return Ur(this._i,function(i,a){e.call(t,i,a)},fh)},r.prototype.eachOtherLayer=function(e,t){return Ur(this._i,function(i,a){e.call(t,i,a)},Rw)},r.prototype.getLayers=function(){var e={};return Ur(this._i,function(t,i,a){e[t.id]=t}),e},r.prototype._updateLayerStatus=function(e,t){var i=this;if(i._singleCanvas)for(var a=1;a<e.length;a++){var n=e[a];if(n.zlevel!==e[a-1].zlevel||n.incremental){i._needsManuallyCompositing=!0;break}}Ur(i._i,function(m){m.__dirty=!1,Py(m,function(g){g.used=!1,g.endIdxNew=0,g.notClearIdx=-1})},Ry);for(var o,s=null,l=null,u=!1,f=0,p=e.length;f<p;f++){var n=e[f],c=n.zlevel,v=n.incremental,h=void 0;if(o!==c&&(o=c,u=!1),v?(u=!0,h=$L):h=u?QL:Vf,(!s||c!==s.zlevel||h!==s.zlevel2)&&(s=i._ensureLayer(c,h),l=null,!s.__builtin__)){qo("ZLevel "+c+" has been used by unknown layer "+s.id);continue}if((!l||v!==l.key)&&(l=B9(s,v),!l.used))if(l.used=!0,!t&&l.first===n.id){var d=f-l.startIdx;l.startIdx=f,l.drawIdx+=d,l.endIdx+=d}else s.__dirty=!0,l.first=n.id,l.startIdx=l.drawIdx=f,l.endIdx=f+1;l.endIdxNew=f+1,n.__dirty&$t&&!n.__inHover&&((!v||!n.notClear&&f<l.drawIdx)&&(s.__dirty=!0),v&&n.notClear&&l.notClearIdx<0&&(l.notClearIdx=f))}Ur(i._i,function(m){for(var g=m.__cursorStack,y=m.__cursors,_=g.length-1;_>=0;_--){var x=y.get(g[_]);if(!x.used)m.__dirty=!0,y.removeKey(g[_]),g.splice(_,1);else{var S=x.endIdxNew;(Ly(m)?S<x.drawIdx:S!==x.endIdx||!S||e[S-1].id!==x.last)&&(m.__dirty=!0),x.endIdx=x.endIdxNew,x.last=S?e[S-1].id:NaN}}m.__dirty&&(Py(m,function(b){b.drawIdx=b.startIdx}),i._hoverLayerDirty===Iw&&(i._hoverLayerDirty=k9))},Ry)},r.prototype.clear=function(){return Ur(this._i,function(e){e.clear(),Q2(e)},fh),this},r.prototype.setBackgroundColor=function(e){this._backgroundColor=e,Ur(this._i,function(t){t.setUnpainted()})},r.prototype.configLayer=function(e,t){if(t){var i=this._layerConfig;i[e]?ve(i[e],t,!0):i[e]=t,Ur(this._i,function(a,n){ve(a,i[n],!0)})}},r.prototype.delLayer=function(e){for(var t=this._i.layerStack,i=this._i.layers,a=t.length-1;a>=0;a--){var n=t[a];if(n.zl===e){var o=i[e][n.zl2];if(o.__builtin__)continue;if(t.splice(a,1),i[e][n.zl2]=void 0,!o.virtual){var s=o.dom.parentNode;s&&s.removeChild(o.dom)}}}},r.prototype.resize=function(e,t){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var a=this._opts,n=this.root;e!=null&&(a.width=e),t!=null&&(a.height=t),e=Ts(n,0,a),t=Ts(n,1,a),i.style.display="",(this._width!==e||t!==this._height)&&(i.style.width=e+"px",i.style.height=t+"px",Ur(this._i,function(o){o.resize(e,t)}),this.refresh({paintAll:!0})),this._width=e,this._height=t}else{if(e==null||t==null)return;this._width=e,this._height=t,this._ensureLayer(Mu).resize(e,t)}return this},r.prototype.clearLayer=function(e){T(this._i.layers[e],function(t){t&&!t.__builtin__&&t.clear()})},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},r.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[Mu][0].dom;var t=new Mw("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clear(!1,e.backgroundColor||this._backgroundColor);var i=t.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=t.dom.width,n=t.dom.height;Ur(this._i,function(p){p.__builtin__?i.drawImage(p.dom,0,0,a,n):p.renderToCanvas&&(i.save(),p.renderToCanvas(i),i.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var f=s[l];Cs(i,f,o)}gu(i,o)}return t.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})(),ek=F9;function Ow(r){r.registerPainter("canvas",ek)}var G9=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t){if(0)var i;return nr(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var i=new Q,a=je("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);i.add(a),a.setStyle(t.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,l=t.itemHeight*.8,u=je(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);i.add(u),u.setStyle(t.itemStyle);var f=t.iconRotate==="inherit"?o:t.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([t.itemWidth/2,t.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=N.color.neutral00,u.style.lineWidth=2),i},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e})(ke),tk=G9;function fn(r,e){var t=r.mapDimensionsAll("defaultedLabel"),i=t.length;if(i===1){var a=Lo(r,e,t[0]);return a!=null?a+"":null}else if(i){for(var n=[],o=0;o<t.length;o++)n.push(Lo(r,e,t[o]));return n.join(" ")}}function Oy(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!V(e))return e+"";for(var i=[],a=0;a<t.length;a++){var n=r.getDimensionIndex(t[a]);n>=0&&i.push(e[n])}return i.join(" ")}var H9=(function(r){L(e,r);function e(t,i,a,n){var o=r.call(this)||this;return o.updateData(t,i,a,n),o}return e.prototype._createSymbol=function(t,i,a,n,o,s){this.removeAll();var l=je(t,-1,-1,2,2,null,s);l.attr({z2:Z(o,100),culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),l.drift=Y9,this._symbolType=t,this.add(l)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){Pr(this.childAt(0))},e.prototype.downplay=function(){Rr(this.childAt(0))},e.prototype.setZ=function(t,i){var a=this.childAt(0);a.zlevel=t,a.z=i},e.prototype.setDraggable=function(t,i){var a=this.childAt(0);a.draggable=t,a.cursor=!i&&t?"move":a.cursor},e.prototype.updateData=function(t,i,a,n){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,i),u=e.getSymbolZ2(t,i),f=o!==this._symbolType,p=n&&n.disableAnimation;if(f){var c=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,l,u,c)}else{var v=this.childAt(0);v.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};p?v.attr(h):Ae(v,h,s,i),Bt(v)}if(this._updateCommon(t,i,l,a,n),f){var v=this.childAt(0);if(!p){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ge(v,h,s,i)}}p&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,i,a,n,o){var s=this.childAt(0),l=t.hostModel,u,f,p,c,v,h,d,m,g;if(n&&(u=n.emphasisItemStyle,f=n.blurItemStyle,p=n.selectItemStyle,c=n.focus,v=n.blurScope,d=n.labelStatesModels,m=n.hoverScale,g=n.cursorStyle,h=n.emphasisDisabled),!n||t.hasItemOption){var y=n&&n.itemModel?n.itemModel:t.getItemModel(i),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),p=y.getModel(["select","itemStyle"]).getItemStyle(),f=y.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),h=_.get("disabled"),d=tt(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var x=t.getItemVisual(i,"symbolRotate");s.attr("rotation",(x||0)*Math.PI/180||0);var S=Xi(t.getItemVisual(i,"symbolOffset"),a);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var b=t.getItemVisual(i,"style"),w=b.fill;if(s instanceof lt){var A=s.style;s.useStyle(k({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},b))}else s.__isEmptyBrush?s.useStyle(k({},b)):s.useStyle(b),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=t.getItemVisual(i,"liftZ"),E=this._z2;C!=null?E==null&&(this._z2=s.z2,s.z2+=C):E!=null&&(s.z2=E,this._z2=null);var D=o&&o.useNameLabel;it(s,d,{labelFetcher:l,labelDataIndex:i,defaultText:I,inheritColor:w,defaultOpacity:b.opacity});function I(O){return D?t.getName(O):fn(t,O)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var M=s.ensureState("emphasis");M.style=u,s.ensureState("select").style=p,s.ensureState("blur").style=f;var P=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;M.scaleX=this._sizeX*P,M.scaleY=this._sizeY*P,this.setSymbolScale(1),Be(this,c,v,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,i,a){var n=this.childAt(0),o=se(this).dataIndex,s=a&&a.animation;if(this.silent=n.silent=!0,a&&a.fadeLabel){var l=n.getTextContent();l&&va(l,{style:{opacity:0}},i,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();va(n,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,i){return tn(t.getItemVisual(i,"symbolSize"))},e.getSymbolZ2=function(t,i){return t.getItemVisual(i,"z2")},e})(Q);function Y9(r,e){this.parent.drift(r,e)}var ko=H9;function Ny(r,e,t,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i&&i.isIgnore&&i.isIgnore(t))&&!(i&&i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function rk(r){return r!=null&&!te(r)&&(r={isIgnore:r}),r||{}}function ik(r){var e=r.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),emphasisDisabled:t.get("disabled"),hoverScale:t.get("scale"),labelStatesModels:tt(e),cursorStyle:e.get("cursor")}}function ak(r,e,t,i,a,n,o){var s=new r(e,t,i,a);return s.setPosition(n),e.setItemGraphicEl(t,s),o.add(s),s}var W9=(function(){function r(e){this.group=new Q,this._SymbolCtor=e||ko}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=rk(t);var i=this.group,a=e.hostModel,n=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=this._seriesScope=ik(e),u={disableAnimation:s},f=t.getSymbolPoint||function(p){return e.getItemLayout(p)};n||i.removeAll(),e.diff(n).add(function(p){var c=f(p);Ny(e,c,p,t)&&ak(o,e,p,l,u,c,i)}).update(function(p,c){var v=n.getItemGraphicEl(c),h=f(p);if(!Ny(e,h,p,t)){i.remove(v);return}var d=e.getItemVisual(p,"symbol")||"circle",m=v&&v.getSymbolType&&v.getSymbolType();if(!v||m&&m!==d)i.remove(v),v=new o(e,p,l,u),v.setPosition(h);else{v.updateData(e,p,l,u);var g={x:h[0],y:h[1]};s?v.attr(g):Ae(v,g,a)}i.add(v),e.setItemGraphicEl(p,v)}).remove(function(p){var c=n.getItemGraphicEl(p);c&&c.fadeOut(function(){i.remove(c)},a)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(e){var t=this._data;if(t)for(var i=this,a=t.getStore(),n=0,o=a.count();n<o;n++){var s=t.getItemGraphicEl(n),l=i._getSymbolPoint(n);Ny(t,l,n,e)?(s=s||ak(i._SymbolCtor,t,n,i._seriesScope,{disableAnimation:!0},l,i.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(i.group.remove(s),t.setItemGraphicEl(n,null))}},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=ik(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i,a){this._progressiveEls=[],a=rk(a);function n(u){u.isGroup||(u.incremental=i,u.ensureState("emphasis").hoverLayer=Ka)}for(var o=e.start;o<e.end;o++){var s=t.getItemLayout(o);if(Ny(t,s,o,a)){var l=new this._SymbolCtor(t,o,this._seriesScope);l.traverse(n),l.setPosition(s),this.group.add(l),t.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(e){Kr(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,i=this._data;i&&e?i.eachItemGraphicEl(function(a){a.fadeOut(function(){t.remove(a)},i.hostModel)}):t.removeAll()},r})(),$n=W9;function ky(r,e,t){var i=r.getBaseAxis(),a=r.getOtherAxis(i),n=X9(a,t),o=i.dim,s=a.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,p=U(r.dimensions,function(h){return e.mapDimension(h)}),c=!1,v=e.getCalculationInfo("stackResultDimension");return Qr(e,p[0])&&(c=!0,p[0]=v),Qr(e,p[1])&&(c=!0,p[1]=v),{dataDimsForPoint:p,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function X9(r,e){var t=0,i=r.scale.getExtent();return e==="start"?t=i[0]:e==="end"?t=i[1]:_e(e)&&!isNaN(e)?t=e:i[0]>0?t=i[0]:i[1]<0&&(t=i[1]),t}function zy(r,e,t,i){var a=NaN;r.stacked&&(a=t.get(t.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=r.valueStart);var n=r.baseDataOffset,o=[];return o[n]=t.get(r.baseDim,i),o[1-n]=a,e.dataToPoint(o)}function Pi(r,e){return!isFinite(r)||!isFinite(e)}var Z9=typeof Float32Array!==hs?Float32Array:void 0,nk=typeof Float64Array!==hs?Float64Array:void 0;function ri(r){return Vy({ctor:Z9},r).arr}function Vy(r,e){var t=r.arr,i=r.ctor;if(e>ls&&(e=ls),!t||r.typed&&t.length<e){var a=void 0;if(i)try{a=new i(e),r.typed=!0,t&&a.set(t)}catch{}if(!a&&(a=[],r.typed=!1,t))for(var n=0,o=t.length;n<o;n++)a[n]=t[n];r.arr=a}return r}function K9(r,e){var t=[];return e.diff(r).add(function(i){t.push({cmd:"+",idx:i})}).update(function(i,a){t.push({cmd:"=",idx:a,idx1:i})}).remove(function(i){t.push({cmd:"-",idx:i})}).execute(),t}function Nw(r,e,t,i,a,n,o,s){for(var l=K9(r,e),u=[],f=[],p=[],c=[],v=[],h=[],d=[],m=ky(a,e,o),g=r.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_<l.length;_++){var x=l[_],S=!0,b=void 0,w=void 0;switch(x.cmd){case"=":b=x.idx*2,w=x.idx1*2;var A=g[b],C=g[b+1],E=y[w],D=y[w+1];(isNaN(A)||isNaN(C))&&(A=E,C=D),u.push(A,C),f.push(E,D),p.push(t[b],t[b+1]),c.push(i[w],i[w+1]),d.push(e.getRawIndex(x.idx1));break;case"+":var I=x.idx,M=m.dataDimsForPoint,P=a.dataToPoint([e.get(M[0],I),e.get(M[1],I)]);w=I*2,u.push(P[0],P[1]),f.push(y[w],y[w+1]);var O=zy(m,a,e,I);p.push(O[0],O[1]),c.push(i[w],i[w+1]),d.push(e.getRawIndex(I));break;case"-":S=!1}S&&(v.push(x),h.push(h.length))}h.sort(function(ue,Pe){return d[ue]-d[Pe]});for(var R=u.length,z=ri(R),B=ri(R),F=ri(R),G=ri(R),Y=[],_=0;_<h.length;_++){var q=h[_],re=_*2,ie=q*2;z[re]=u[ie],z[re+1]=u[ie+1],B[re]=f[ie],B[re+1]=f[ie+1],F[re]=p[ie],F[re+1]=p[ie+1],G[re]=c[ie],G[re+1]=c[ie+1],Y[_]=v[q]}return{current:z,next:B,stackedOnCurrent:F,stackedOnNext:G,status:Y}}var Ps=Math.min,Rs=Math.max;function kw(r,e,t,i,a,n,o,s,l){for(var u,f,p,c,v,h,d=t,m=0;m<i;m++){var g=e[d*2],y=e[d*2+1];if(d>=a||d<0)break;if(Pi(g,y)){if(l){d+=n;continue}break}if(d===t)r[n>0?"moveTo":"lineTo"](g,y),p=g,c=y;else{var _=g-u,x=y-f;if(_*_+x*x<.5){d+=n;continue}if(o>0){for(var S=d+n,b=e[S*2],w=e[S*2+1];b===g&&w===y&&m<i;)m++,S+=n,d+=n,b=e[S*2],w=e[S*2+1],g=e[d*2],y=e[d*2+1],_=g-u,x=y-f;var A=m+1;if(l)for(;Pi(b,w)&&A<i;)A++,S+=n,b=e[S*2],w=e[S*2+1];var C=.5,E=0,D=0,I=void 0,M=void 0;if(A>=i||Pi(b,w))v=g,h=y;else{E=b-u,D=w-f;var P=g-u,O=b-g,R=y-f,z=w-y,B=void 0,F=void 0;if(s==="x"){B=Math.abs(P),F=Math.abs(O);var G=E>0?1:-1;v=g-G*B*o,h=y,I=g+G*F*o,M=y}else if(s==="y"){B=Math.abs(R),F=Math.abs(z);var Y=D>0?1:-1;v=g,h=y-Y*B*o,I=g,M=y+Y*F*o}else B=Math.sqrt(P*P+R*R),F=Math.sqrt(O*O+z*z),C=F/(F+B),v=g-E*o*(1-C),h=y-D*o*(1-C),I=g+E*o*C,M=y+D*o*C,I=Ps(I,Rs(b,g)),M=Ps(M,Rs(w,y)),I=Rs(I,Ps(b,g)),M=Rs(M,Ps(w,y)),E=I-g,D=M-y,v=g-E*B/F,h=y-D*B/F,v=Ps(v,Rs(u,g)),h=Ps(h,Rs(f,y)),v=Rs(v,Ps(u,g)),h=Rs(h,Ps(f,y)),E=g-v,D=y-h,I=g+E*F/B,M=y+D*F/B}r.bezierCurveTo(p,c,v,h,g,y),p=I,c=M}else r.lineTo(g,y)}u=g,f=y,d+=n}return m}var ok=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),sk=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polyline",i}return e.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new ok},e.prototype.buildPath=function(t,i){var a=i.points,n=0,o=a.length/2;if(i.connectNulls){for(;o>0&&Pi(a[o*2-2],a[o*2-1]);o--);for(;n<o&&Pi(a[n*2],a[n*2+1]);n++);}for(;n<o;)n+=kw(t,a,n,o,o,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},e.prototype.getPointOn=function(t,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,n=a.data,o=or.CMD,s,l,u=i==="x",f=[],p=0;p<n.length;){var c=n[p++],v=void 0,h=void 0,d=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(c){case o.M:s=n[p++],l=n[p++];break;case o.L:if(v=n[p++],h=n[p++],_=u?(t-s)/(v-s):(t-l)/(h-l),_<=1&&_>=0){var x=u?(h-l)*_+l:(v-s)*_+s;return u?[t,x]:[x,t]}s=v,l=h;break;case o.C:v=n[p++],h=n[p++],d=n[p++],m=n[p++],g=n[p++],y=n[p++];var S=u?Tl(s,v,d,g,t,f):Tl(l,h,m,y,t,f);if(S>0)for(var b=0;b<S;b++){var w=f[b];if(w<=1&&w>=0){var x=u?Rt(l,h,m,y,w):Rt(s,v,d,g,w);return u?[t,x]:[x,t]}}s=g,l=y;break}}},e})(ce);var q9=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(ok),Uy=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-polygon",i}return e.prototype.getDefaultShape=function(){return new q9},e.prototype.buildPath=function(t,i){var a=i.points,n=i.stackedOnPoints,o=0,s=a.length/2,l=i.smoothMonotone;if(i.connectNulls){for(;s>0&&Pi(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Pi(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=kw(t,a,o,s,s,1,i.smooth,l,i.connectNulls);kw(t,n,o+u-1,u,s,-1,i.stackedOnSmooth,l,i.connectNulls),o+=u+1,t.closePath()}},e})(ce);function zw(r,e,t,i,a){var n=r.getArea(),o=n.x,s=n.y,l=n.width,u=n.height,f=t.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var p=new de({shape:{x:o,y:s,width:l,height:u}});if(e){var c=r.getBaseAxis(),v=c.isHorizontal(),h=c.inverse;v?(h&&(p.shape.x+=l),p.shape.width=0):(h||(p.shape.y+=u),p.shape.height=0);var d=J(a)?function(m){a(m,p)}:null;Ge(p,{shape:{width:l,height:u,x:o,y:s}},t,null,i,d)}return p}function Vw(r,e,t){var i=r.getArea(),a=Ne(i.r0,1),n=Ne(i.r,1),o=new Tt({shape:{cx:Ne(r.cx,1),cy:Ne(r.cy,1),r0:a,r:n,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=i.startAngle:o.shape.r=a,Ge(o,{shape:{endAngle:i.endAngle,r:n}},t)}return o}function Ki(r,e,t,i,a){if(r){if(r.type==="polar")return Vw(r,e,t);if(r.type==="cartesian2d")return zw(r,e,t,i,a)}else return null;return null}var Os=0,Ns=1,ks=2;function zs(r,e,t){r?e.setClipPath(t):e.removeClipPath()}function By(r){var e=r.coordinateSystem;if(r.get("clip",!0)&&e&&(!e.shouldClip||e.shouldClip()))return e.getArea&&e.getArea(.1)}function Aa(r,e){return r.type===e}function Uw(r){var e=r.dimensions;return e[0]==="lng"&&e[1]==="lat"&&!!r.getViewRect}function Fy(r,e,t,i){return r&&(r.legacy||r.legacy!==!1&&!t&&!i&&e!=="tspan"&&(e==="text"||ae(r,"text")))}function Gy(r,e,t){var i=r,a,n,o;if(e==="text")o=i;else{o={},ae(i,"text")&&(o.text=i.text),ae(i,"rich")&&(o.rich=i.rich),ae(i,"textFill")&&(o.fill=i.textFill),ae(i,"textStroke")&&(o.stroke=i.textStroke),ae(i,"fontFamily")&&(o.fontFamily=i.fontFamily),ae(i,"fontSize")&&(o.fontSize=i.fontSize),ae(i,"fontStyle")&&(o.fontStyle=i.fontStyle),ae(i,"fontWeight")&&(o.fontWeight=i.fontWeight),n={type:"text",style:o,silent:!0},a={};var s=ae(i,"textPosition");t?a.position=s?i.textPosition:"inside":s&&(a.position=i.textPosition),ae(i,"textPosition")&&(a.position=i.textPosition),ae(i,"textOffset")&&(a.offset=i.textOffset),ae(i,"textRotation")&&(a.rotation=i.textRotation),ae(i,"textDistance")&&(a.distance=i.textDistance)}return lk(o,r),T(o.rich,function(l){lk(l,l)}),{textConfig:a,textContent:n}}function lk(r,e){e&&(e.font=e.textFont||e.font,ae(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),ae(e,"textAlign")&&(r.align=e.textAlign),ae(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),ae(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),ae(e,"textWidth")&&(r.width=e.textWidth),ae(e,"textHeight")&&(r.height=e.textHeight),ae(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),ae(e,"textPadding")&&(r.padding=e.textPadding),ae(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),ae(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),ae(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),ae(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),ae(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),ae(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),ae(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function Bw(r,e,t){var i=r;i.textPosition=i.textPosition||t.position||"inside",t.offset!=null&&(i.textOffset=t.offset),t.rotation!=null&&(i.textRotation=t.rotation),t.distance!=null&&(i.textDistance=t.distance);var a=i.textPosition.indexOf("inside")>=0,n=r.fill||N.color.neutral99;uk(i,e);var o=i.textFill==null;return a?o&&(i.textFill=t.insideFill||N.color.neutral00,!i.textStroke&&t.insideStroke&&(i.textStroke=t.insideStroke),!i.textStroke&&(i.textStroke=n),i.textStrokeWidth==null&&(i.textStrokeWidth=2)):(o&&(i.textFill=r.fill||t.outsideFill||N.color.neutral00),!i.textStroke&&t.outsideStroke&&(i.textStroke=t.outsideStroke)),i.text=e.text,i.rich=e.rich,T(e.rich,function(s){uk(s,s)}),i}function uk(r,e){e&&(ae(e,"fill")&&(r.textFill=e.fill),ae(e,"stroke")&&(r.textStroke=e.fill),ae(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),ae(e,"font")&&(r.font=e.font),ae(e,"fontStyle")&&(r.fontStyle=e.fontStyle),ae(e,"fontWeight")&&(r.fontWeight=e.fontWeight),ae(e,"fontSize")&&(r.fontSize=e.fontSize),ae(e,"fontFamily")&&(r.fontFamily=e.fontFamily),ae(e,"align")&&(r.textAlign=e.align),ae(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),ae(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),ae(e,"width")&&(r.textWidth=e.width),ae(e,"height")&&(r.textHeight=e.height),ae(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),ae(e,"padding")&&(r.textPadding=e.padding),ae(e,"borderColor")&&(r.textBorderColor=e.borderColor),ae(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),ae(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),ae(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),ae(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),ae(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),ae(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),ae(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),ae(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),ae(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),ae(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}function fk(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function pk(r){for(var e=Pt(),t=Pt(),i=0;i<r.length;){var a=r[i++],n=r[i++];Pi(a,n)||($c(e,a),$c(t,n))}return[e,t]}function ck(r,e){var t=pk(r),i=t[0],a=t[1],n=pk(e),o=n[0],s=n[1];return Math.max(Math.abs(i[0]-o[0]),Math.abs(a[0]-s[0]),Math.abs(i[1]-o[1]),Math.abs(a[1]-s[1]))}function vk(r){return _e(r)?r:r?.5:0}function j9(r,e,t){if(t.valueDim==null)return[];for(var i=e.count(),a=ri(i*2),n=0;n<i;n++){var o=zy(t,r,e,n);a[n*2]=o[0],a[n*2+1]=o[1]}return a}function Vs(r,e,t,i,a){var n=t.getBaseAxis(),o=n.dim==="x"||n.dim==="radius"?0:1,s=[],l=0,u=[],f=[],p=[],c=[];if(a){for(l=0;l<r.length;l+=2){var v=e||r;Pi(v[l],v[l+1])||c.push(r[l],r[l+1])}r=c}for(l=0;l<r.length-2;l+=2)switch(p[0]=r[l+2],p[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),i){case"end":u[o]=p[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var h=(f[o]+p[o])/2,d=[];u[o]=d[o]=h,u[1-o]=f[1-o],d[1-o]=p[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=p[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function J9(r,e){var t=[],i=r.length,a,n;function o(f,p,c){var v=f.coord,h=(c-v)/(p.coord-v),d=Cd(h,[f.color,p.color]);return{coord:c,color:d}}for(var s=0;s<i;s++){var l=r[s],u=l.coord;if(u<0)a=l;else if(u>e){n?t.push(o(n,l,e)):a&&t.push(o(a,l,0),o(a,l,e));break}else a&&(t.push(o(a,l,0)),a=null),t.push(l),n=l}return t}function Q9(r,e,t){var i=r.getVisual("visualMeta");if(!(!i||!i.length||!r.count())&&e.type==="cartesian2d"){for(var a,n,o=i.length-1;o>=0;o--){var s=r.getDimensionInfo(i[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){n=i[o];break}}if(n){var l=e.getAxis(a),u=U(n.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,p=n.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),p.reverse());var c=J9(u,a==="x"?t.getWidth():t.getHeight()),v=c.length;if(!v&&f)return u[0].coord<0?p[1]?p[1]:u[f-1].color:p[0]?p[0]:u[0].color;var h=10,d=c[0].coord-h,m=c[v-1].coord+h,g=m-d;if(g<.001)return"transparent";T(c,function(_){_.offset=(_.coord-d)/g}),c.push({offset:v?c[v-1].offset:.5,color:p[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:p[0]||"transparent"});var y=new Ci(0,0,0,0,c,!0);return y[a]=d,y[a+"2"]=m,y}}}function $9(r,e,t){var i=r.get("showAllSymbol"),a=i==="auto";if(!(i&&!a)){var n=t.getAxesByScale("ordinal")[0];if(n&&!(a&&eK(n,e))){var o=e.mapDimension(n.dim),s={};return T(n.getViewLabels(),function(l){l.tick.offInterval||(s[nn(n.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function eK(r,e){var t=r.getExtent(),i=Math.abs(t[1]-t[0])/r.scale.count();isNaN(i)&&(i=0);for(var a=e.count(),n=Math.max(1,Math.round(a/5)),o=0;o<a;o+=n)if(ko.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>i)return!1;return!0}function tK(r){for(var e=r.length/2;e>0&&Pi(r[e*2-2],r[e*2-1]);e--);return e-1}function hk(r,e){return[r[e*2],r[e*2+1]]}function rK(r,e,t){for(var i=r.length/2,a=t==="x"?0:1,n,o,s=0,l=-1,u=0;u<i;u++)if(o=r[u*2+a],!Pi(o,r[u*2+1-a])){if(u===0){n=o;continue}if(n<=e&&o>=e||n>=e&&o<=e){l=u;break}s=u,n=o}return{range:[s,l],t:(e-n)/(o-n)}}function dk(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<ir.length;e++)if(r.get([ir[e],"endLabel","show"]))return!0;return!1}function Fw(r,e,t,i){if(Aa(e,"cartesian2d")){var a=i.getModel("endLabel"),n=a.get("valueAnimation"),o=i.getData(),s={lastFrameIndex:0},l=dk(i)?function(v,h){r._endLabelOnDuring(v,h,o,s,n,a,e)}:null,u=e.getBaseAxis().isHorizontal(),f=zw(e,t,i,function(){var v=r._endLabel;v&&t&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!i.get("clip",!0)){var p=f.shape,c=Math.max(p.width,p.height);u?(p.y-=c,p.height+=c*2):(p.x-=c,p.width+=c*2)}return l&&l(1,f),f}else return Vw(e,t,i)}function iK(r,e){var t=e.getBaseAxis(),i=t.isHorizontal(),a=t.inverse,n=i?a?"right":"left":"center",o=i?"middle":a?"top":"bottom";return{normal:{align:r.get("align")||n,verticalAlign:r.get("verticalAlign")||o}}}var aK=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new Q,i=new $n;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=t,this._changePolyState=X(this._changePolyState,this)},e.prototype.render=function(t,i,a){var n=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],p=n.type==="polar",c=this._coordSys,v=this._symbolDraw,h=this._polyline,d=this._polygon,m=this._lineGroup,g=!i.ssr&&t.get("animation"),y=!u.isEmpty(),_=u.get("origin"),x=ky(n,s,_),S=y&&j9(n,s,x),b=t.get("showSymbol"),w=t.get("connectNulls"),A=b&&!p&&$9(t,s,n),C=this._data;C&&C.eachItemGraphicEl(function(fe,Oe){fe.__temp&&(o.remove(fe),C.setItemGraphicEl(Oe,null))}),b||v.remove(),o.add(m);var E=p?!1:t.get("step"),D;n&&n.getArea&&t.get("clip",!0)&&(D=n.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var I=Q9(s,n,a)||s.getVisual("style")[s.getVisual("drawType")];if(!(h&&c.type===n.type&&E===this._step))b&&v.updateData(s,{isIgnore:A,clipShape:D,disableAnimation:!0,getSymbolPoint:function(fe){return[f[fe*2],f[fe*2+1]]}}),g&&this._initSymbolLabelAnimation(s,n,D),E&&(S&&(S=Vs(S,f,n,E,w)),f=Vs(f,null,n,E,w)),h=this._newPolyline(f),y?d=this._newPolygon(f,S):d&&(m.remove(d),d=this._polygon=null),p||this._initOrUpdateEndLabel(t,n,Ja(I)),m.setClipPath(Fw(this,n,!0,t));else{y&&!d?d=this._newPolygon(f,S):d&&!y&&(m.remove(d),d=this._polygon=null),p||this._initOrUpdateEndLabel(t,n,Ja(I));var M=m.getClipPath();if(M){var P=Fw(this,n,!1,t);Ge(M,{shape:P.shape},t)}else m.setClipPath(Fw(this,n,!0,t));b&&v.updateData(s,{isIgnore:A,clipShape:D,disableAnimation:!0,getSymbolPoint:function(fe){return[f[fe*2],f[fe*2+1]]}}),(!fk(this._stackedOnPoints,S)||!fk(this._points,f))&&(g?this._doUpdateAnimation(s,S,n,a,E,_,w):(E&&(S&&(S=Vs(S,f,n,E,w)),f=Vs(f,null,n,E,w)),h.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:S})))}var O=t.getModel("emphasis"),R=O.get("focus"),z=O.get("blurScope"),B=O.get("disabled");if(h.useStyle($(l.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),st(h,t,"lineStyle"),h.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var F=h.getState("emphasis").style;F.lineWidth=+h.style.lineWidth+1}se(h).seriesIndex=t.seriesIndex,Be(h,R,z,B);var G=vk(t.get("smooth")),Y=t.get("smoothMonotone");if(h.setShape({smooth:G,smoothMonotone:Y,connectNulls:w}),d){var q=s.getCalculationInfo("stackedOnSeries"),re=0;d.useStyle($(u.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),q&&(re=vk(q.get("smooth"))),d.setShape({smooth:G,stackedOnSmooth:re,smoothMonotone:Y,connectNulls:w}),st(d,t,"areaStyle"),se(d).seriesIndex=t.seriesIndex,Be(d,R,z,B)}var ie=this._changePolyState;s.eachItemGraphicEl(function(fe){fe&&(fe.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=s,this._coordSys=n,this._stackedOnPoints=S,this._points=f,this._step=E,this._valueOrigin=_;var ue=t.get("triggerEvent"),Pe=t.get("triggerLineEvent"),$e=Pe===!0||ue===!0||ue==="line",De=Pe===!0||ue===!0||ue==="area";this.packEventData(t,h,$e),d&&this.packEventData(t,d,De)},e.prototype.packEventData=function(t,i,a){se(i).eventData=a?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:i===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,i,a,n){var o=t.getData(),s=la(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],p=l[s*2+1];if(Pi(f,p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,p))return;var c=t.get("zlevel")||0,v=t.get("z")||0;u=new ko(o,s),u.x=f,u.y=p,u.setZ(c,v);var h=u.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=v,h.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Le.prototype.highlight.call(this,t,i,a,n)},e.prototype.downplay=function(t,i,a,n){var o=t.getData(),s=la(o,n);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Le.prototype.downplay.call(this,t,i,a,n)},e.prototype._changePolyState=function(t){var i=this._polygon;Kl(this._polyline,t),i&&Kl(i,t)},e.prototype._newPolyline=function(t){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new sk({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},e.prototype._newPolygon=function(t,i){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new Uy({shape:{points:t,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},e.prototype._initSymbolLabelAnimation=function(t,i,a){var n,o,s=i.getBaseAxis(),l=s.inverse;i.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):i.type==="polar"&&(n=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");J(f)&&(f=f(null));var p=u.get("animationDelay")||0,c=J(p)?p(null):p;t.eachItemGraphicEl(function(v,h){var d=v;if(d){var m=[v.x,v.y],g=void 0,y=void 0,_=void 0;if(a)if(o){var x=a,S=i.pointToCoord(m);n?(g=x.startAngle,y=x.endAngle,_=-S[1]/180*Math.PI):(g=x.r0,y=x.r,_=S[0])}else{var b=a;n?(g=b.x,y=b.x+b.width,_=v.x):(g=b.y+b.height,y=b.y,_=v.y)}var w=y===g?0:(_-g)/(y-g);l&&(w=1-w);var A=J(p)?p(h):f*w+c,C=d.getSymbolPath(),E=C.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:A}),E&&E.animateFrom({style:{opacity:0}},{duration:300,delay:A}),C.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,i,a){var n=t.getModel("endLabel");if(dk(t)){var o=t.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new be({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=tK(l);f>=0&&(it(s,tt(t,"endLabel"),{inheritColor:a,labelFetcher:t,labelDataIndex:f,defaultText:function(p,c,v){return v!=null?Oy(o,v):fn(o,p)},enableTextSetter:!0},iK(n,i)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,i,a,n,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);var p=a.getLayout("points"),c=a.hostModel,v=c.get("connectNulls"),h=s.get("precision"),d=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=i.shape,x=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,S=(g?d:0)*(y?-1:1),b=(g?0:-d)*(y?-1:1),w=g?"x":"y",A=rK(p,x,w),C=A.range,E=C[1]-C[0],D=void 0;if(E>=1){if(E>1&&!v){var I=hk(p,C[0]);u.attr({x:I[0]+S,y:I[1]+b}),o&&(D=c.getRawValue(C[0]))}else{var I=f.getPointOn(x,w);I&&u.attr({x:I[0]+S,y:I[1]+b});var M=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=qd(a,h,M,P,A.t))}n.lastFrameIndex=C[0]}else{var O=t===1||n.lastFrameIndex>0?C[0]:0,I=hk(p,O);o&&(D=c.getRawValue(O)),u.attr({x:I[0]+S,y:I[1]+b})}if(o){var R=Do(u);typeof R.setLabelText=="function"&&R.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,i,a,n,o,s,l){var u=this._polyline,f=this._polygon,p=t.hostModel,c=Nw(this._data,t,this._stackedOnPoints,i,this._coordSys,a,this._valueOrigin,s),v=c.current,h=c.stackedOnCurrent,d=c.next,m=c.stackedOnNext;if(o&&(h=Vs(c.stackedOnCurrent,c.current,a,o,l),v=Vs(c.current,null,a,o,l),m=Vs(c.stackedOnNext,c.next,a,o,l),d=Vs(c.next,null,a,o,l)),ck(v,d)>3e3||f&&ck(h,m)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:m}));return}u.shape.__points=c.current,u.shape.points=v;var g={shape:{points:d}};c.current!==v&&(g.shape.__points=c.next),u.stopAnimation(),Ae(u,g,p),f&&(f.setShape({points:v,stackedOnPoints:h}),f.stopAnimation(),Ae(f,{shape:{stackedOnPoints:m}},p),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var y=[],_=c.status,x=0;x<_.length;x++){var S=_[x].cmd;if(S==="="){var b=t.getItemGraphicEl(_[x].idx1);b&&y.push({el:b,ptIdx:x})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var w=u.shape.__points,A=0;A<y.length;A++){var C=y[A].el,E=y[A].ptIdx*2;C.x=w[E],C.y=w[E+1],C.markRedraw()}})},e.prototype.remove=function(t){var i=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(n,o){n.__temp&&(i.remove(n),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e})(Le),mk=aK;function pn(r,e){return{seriesType:r,plan:qr(),reset:function(t){var i=t.getData(),a=t.coordinateSystem,n=t.pipelineContext,o=e||n.large;if(a){var s=U(a.dimensions,function(v){return i.mapDimension(v)}).slice(0,2),l=s.length,u=i.getCalculationInfo("stackResultDimension");Qr(i,s[0])&&(s[0]=u),Qr(i,s[1])&&(s[1]=u);var f=i.getStore(),p=i.getDimensionIndex(s[0]),c=i.getDimensionIndex(s[1]);return l&&{progress:function(v,h){for(var d=v.end-v.start,m=o&&ri(d*l),g=[],y=[],_=v.start,x=0;_<v.end;_++){var S=void 0;if(l===1){var b=f.get(p,_);S=a.dataToPoint(b,null,y)}else g[0]=f.get(p,_),g[1]=f.get(c,_),S=a.dataToPoint(g,null,y);o?(m[x++]=S[0],m[x++]=S[1]):h.setItemLayout(_,S.slice())}o&&(h.setLayout("points",m),h.setLayout("pointsRange",{start:v.start,end:v.end}))}}}}}}var nK={average:function(r){for(var e=0,t=0,i=0;i<r.length;i++)isNaN(r[i])||(e+=r[i],t++);return t===0?NaN:e/t},sum:function(r){for(var e=0,t=0;t<r.length;t++)e+=r[t]||0;return e},max:function(r){for(var e=-1/0,t=0;t<r.length;t++)r[t]>e&&(e=r[t]);return isFinite(e)?e:NaN},min:function(r){for(var e=1/0,t=0;t<r.length;t++)r[t]<e&&(e=r[t]);return isFinite(e)?e:NaN},nearest:function(r){return r[0]}},oK=function(r){return Math.round(r.length/2)};function ph(r){return{seriesType:r,reset:function(e,t,i){var a=e.getData(),n=e.get("sampling"),o=e.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),p=i.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(p||1),v=Math.round(s/c);if(isFinite(v)&&v>1){n==="lttb"?e.setData(a.lttbDownSample(a.mapDimension(u.dim),1/v)):n==="minmax"&&e.setData(a.minmaxDownSample(a.mapDimension(u.dim),1/v));var h=void 0;H(n)?h=nK[n]:J(n)&&(h=n),h&&e.setData(a.downSample(a.mapDimension(u.dim),1/v,h,oK))}}}}}function Gw(r){r.registerChartView(mk),r.registerSeriesModel(tk),r.registerLayout(pn("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),i=e.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",i)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,ph("line"))}var sK=(function(r){L(e,r);function e(t,i,a,n,o){var s=r.call(this,t,i,a)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.getGlobalExtent=function(t){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),t&&i[0]>i[1]&&i.reverse(),i},e.prototype.pointToData=function(t,i){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),i)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e})(ur),Hy=sK;var Hw=null;function gk(r){Hw||(Hw=r)}function zo(){return Hw}var Cp="expandAxisBreak",Yw="collapseAxisBreak",Ww="toggleAxisBreak",Xw="axisbreakchanged",lK={type:Cp,event:Xw,update:"update",refineEvent:Zw},uK={type:Yw,event:Xw,update:"update",refineEvent:Zw},fK={type:Ww,event:Xw,update:"update",refineEvent:Zw};function Zw(r,e,t,i){var a=[];return T(r,function(n){a=a.concat(n.eventBreaks)}),{eventContent:{breaks:a}}}function yk(r){r.registerAction(lK,e),r.registerAction(uK,e),r.registerAction(fK,e);function e(t,i){var a=[],n=En(i,t);function o(s,l){T(n[s],function(u){var f=u.updateAxisBreaks(t);T(f.breaks,function(p){var c;a.push($((c={},c[l]=u.componentIndex,c),p))})})}return o("xAxisModels","xAxisIndex"),o("yAxisModels","yAxisIndex"),o("singleAxisModels","singleAxisIndex"),{eventBreaks:a}}}var Us=Math.PI,pK=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],cK=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Bs=ne(),Sk=ne(),qw=(function(){function r(e){this.recordMap={},this.resolveAxisNameOverlap=e}return r.prototype.ensureRecord=function(e){var t=e.axis.dim,i=e.componentIndex,a=this.recordMap,n=a[t]||(a[t]=[]);return n[i]||(n[i]={ready:{}})},r})();function vK(r,e,t,i){var a=t.axis,n=e.ensureRecord(t),o=[],s,l=Qw(r.axisName)&&Ms(r.nameLocation);T(i,function(h){var d=un(h);if(!(!d||d.label.ignore)){o.push(d);var m=n.transGroup;l&&(m.transform?zt(ch,m.transform):ra(ch),d.transform&&Qt(ch,ch,d.transform),oe.copy(Yy,d.localRect),Yy.applyTransform(ch),s?s.union(Yy):oe.copy(s=new oe(0,0,0,0),Yy))}});var u=Math.abs(n.dirVec.x)>.1?"x":"y",f=n.transGroup[u];if(o.sort(function(h,d){return Math.abs(h.label[u]-f)-Math.abs(d.label[u]-f)}),l&&s){var p=a.getExtent(),c=Math.min(p[0],p[1]),v=Math.max(p[0],p[1])-c;s.union(new oe(c,0,v,1))}n.stOccupiedRect=s,n.labelInfoList=o}var ch=Je(),Yy=new oe(0,0,0,0),jw=function(r,e,t,i,a,n){if(Ms(r.nameLocation)){var o=n.stOccupiedRect;o&&bk(T2({},o,n.transGroup.transform),i,a)}else Jw(n.labelInfoList,n.dirVec,i,a)};function bk(r,e,t){var i=new he;wp(r,e,i,{direction:Math.atan2(t.y,t.x),bidirectional:!1,touchThreshold:.05})&&eh(e,i)}function Jw(r,e,t,i){for(var a=he.dot(i,e)>=0,n=0,o=r.length;n<o;n++){var s=r[a?n:o-1-n];s.label.ignore||bk(s,t,i)}}var Iu=(function(){function r(e,t,i,a){this.group=new Q,this._axisModel=e,this._api=t,this._local={},this._shared=a||new qw(jw),this._resetCfgDetermined(i)}return r.prototype.updateCfg=function(e){if(0)var t;var i=this._cfg.raw;i.position=e.position,i.labelOffset=e.labelOffset,this._resetCfgDetermined(i)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(e){var t=this._axisModel,i=t.getDefaultOption?t.getDefaultOption():{},a=Z(e.axisName,t.get("name")),n=t.get("nameMoveOverlap");(n==null||n==="auto")&&(n=Z(e.defaultNameMoveOverlap,!0));var o={raw:e,position:e.position,rotation:e.rotation,nameDirection:Z(e.nameDirection,1),tickDirection:Z(e.tickDirection,1),labelDirection:Z(e.labelDirection,1),labelOffset:Z(e.labelOffset,0),silent:Z(e.silent,!0),axisName:a,nameLocation:Dt(t.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:Qw(a)&&n,optionHideOverlap:t.get(["axisLabel","hideOverlap"]),showMinorTicks:t.get(["minorTick","show"])};this._cfg=o;var s=new Q({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(t);l.transGroup=this._transformGroup,l.dirVec=new he(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(e,t){var i=this;return e||(e={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),T(hK,function(a){e[a]&&dK[a](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,t||{})}),this},r.innerTextLayout=function(e,t,i){var a=Zc(t-e),n,o;return An(a)?(o=i>0?"top":"bottom",n="center"):An(a-Us)?(o=i>0?"bottom":"top",n="center"):(o="middle",a>0&&a<Us?n=i>0?"right":"left":n=i>0?"left":"right"),{rotation:a,textAlign:n,textVerticalAlign:o}},r.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},r.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},r})(),hK=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],dK={axisLine:function(r,e,t,i,a,n,o){if(0)var s;var l=i.get(["axisLine","show"]);if(l==="auto"&&(l=!0,r.raw.axisLineAutoShow!=null&&(l=!!r.raw.axisLineAutoShow)),!!l){var u=i.axis.getExtent(),f=n.transform,p=[u[0],0],c=[u[1],0],v=p[0]>c[0];f&&(ot(p,p,f),ot(c,c,f));var h=k({lineCap:"round"},i.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(i.get(["axisLine","breakLine"])&&nu(i.axis.scale))zo().buildAxisBreakLine(i,a,n,d);else{var m=new ut(k({shape:{x1:p[0],y1:p[1],x2:c[0],y2:c[1]}},d));Ao(m.shape,m.style.lineWidth),m.anid="line",a.add(m)}var g=i.get(["axisLine","symbol"]);if(g!=null){var y=i.get(["axisLine","symbolSize"]);H(g)&&(g=[g,g]),(H(y)||_e(y))&&(y=[y,y]);var _=Xi(i.get(["axisLine","symbolOffset"])||0,y),x=y[0],S=y[1];T([{rotate:r.rotation+Math.PI/2,offset:_[0],r:0},{rotate:r.rotation-Math.PI/2,offset:_[1],r:Math.sqrt((p[0]-c[0])*(p[0]-c[0])+(p[1]-c[1])*(p[1]-c[1]))}],function(b,w){if(g[w]!=="none"&&g[w]!=null){var A=je(g[w],-x/2,-S/2,x,S,h.stroke,!0),C=b.r+b.offset,E=v?c:p;A.attr({rotation:b.rotate,x:E[0]+C*Math.cos(r.rotation),y:E[1]-C*Math.sin(r.rotation),silent:!0,z2:11}),a.add(A)}})}}},axisTickLabelEstimate:function(r,e,t,i,a,n,o,s){if(0)var l;var u=xk(e,a,s);u&&_k(r,e,t,i,a,n,o,Li.estimate)},axisTickLabelDetermine:function(r,e,t,i,a,n,o,s){if(0)var l;var u=xk(e,a,s);u&&_k(r,e,t,i,a,n,o,Li.determine);var f=_K(r,a,n,i);yK(r,e.labelLayoutList,f),xK(r,a,n,i,r.tickDirection)},axisName:function(r,e,t,i,a,n,o,s){var l=t.ensureRecord(i);if(0)var u;e.nameEl&&(a.remove(e.nameEl),e.nameEl=l.nameLayout=l.nameLocation=null);var f=r.axisName;if(Qw(f)){var p=r.nameLocation,c=r.nameDirection,v=i.getModel("nameTextStyle"),h=i.get("nameGap")||0,d=i.axis.getExtent(),m=i.axis.inverse?-1:1,g=new he(0,0),y=new he(0,0);p==="start"?(g.x=d[0]-m*h,y.x=-m):p==="end"?(g.x=d[1]+m*h,y.x=m):(g.x=(d[0]+d[1])/2,g.y=r.labelOffset+c*h,y.y=c);var _=Je();y.transform(dr(_,_,r.rotation));var x=i.get("nameRotate");x!=null&&(x=x*Us/180);var S,b;Ms(p)?S=Iu.innerTextLayout(r.rotation,x??r.rotation,c):(S=mK(r.rotation,p,x||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var w=v.getFont(),A=i.get("nameTruncate",!0)||{},C=A.ellipsis,E=Et(r.raw.nameTruncateMaxWidth,A.maxWidth,b),D=s.nameMarginLevel||0,I=new be({x:g.x,y:g.y,rotation:S.rotation,silent:Iu.isLabelSilent(i),style:Xe(v,{text:f,font:w,overflow:"truncate",width:E,ellipsis:C,fill:v.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:v.get("align")||S.textAlign,verticalAlign:v.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(Nr({el:I,componentModel:i,itemName:f}),I.__fullText=f,I.anid="name",i.get("triggerEvent")){var M=Iu.makeAxisEventDataBase(i);M.targetType="axisName",M.name=f,se(I).eventData=M}n.add(I),I.updateTransform(),e.nameEl=I;var P=l.nameLayout=un({label:I,priority:I.z2,defaultAttr:{ignore:I.ignore},marginDefault:Ms(p)?pK[D]:cK[D]});if(l.nameLocation=p,a.add(I),I.decomposeTransform(),r.shouldNameMoveOverlap&&P){var O=t.ensureRecord(i);t.resolveAxisNameOverlap(r,t,i,P,y,O)}}}};function _k(r,e,t,i,a,n,o,s){Tk(e)||SK(r,e,a,s,i,o);var l=e.labelLayoutList;bK(r,i,l,n),CK(i,r.rotation,l);var u=r.optionHideOverlap;gK(i,l,u),u&&by(Ie(l,function(f){return f&&!f.label.ignore})),vK(r,t,i,l)}function mK(r,e,t,i){var a=Zc(t-r),n,o,s=i[0]>i[1],l=e==="start"&&!s||e!=="start"&&s;return An(a-Us/2)?(o=l?"bottom":"top",n="center"):An(a-Us*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",a<Us*1.5&&a>Us/2?n=l?"left":"right":n=l?"right":"left"),{rotation:a,textAlign:n,textVerticalAlign:o}}function gK(r,e,t){var i=r.axis,a=r.get(["axisLabel","customValues"]);if(IN(i))return;function n(u,f,p){var c=un(e[f]),v=un(e[p]),h=i.scale;if(!(!c||!v)){if(u==null){if(!t&&a)return;var d=Bs(c.label).labelInfo.tick;if(Hn(h)&&d.notNice||At(h)&&d.offInterval){Ap(c.label);return}}if(u===!1||c.suggestIgnore){Ap(c.label);return}if(v.suggestIgnore){Ap(v.label);return}var m=.1;if(!t){var g=[0,0,0,0];c=th({marginForce:g},c),v=th({marginForce:g},v)}wp(c,v,null,{touchThreshold:m})&&Ap(u?v.label:c.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=e.length;n(o,0,1),n(s,l-1,l-2)}function yK(r,e,t){r.showMinorTicks||T(e,function(i){if(i&&i.label.ignore)for(var a=0;a<t.length;a++){var n=t[a],o=Sk(n),s=Bs(i.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Ap(n);return}}})}function Ap(r){r&&(r.ignore=!0)}function wk(r,e,t,i,a){for(var n=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(ot(o,o,e),ot(s,s,e));var f=new ut({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});Ao(f.shape,f.style.lineWidth),f.anid=a+"_"+r[l].tickValue,n.push(f);var p=Sk(f);p.onBand=!!r[l].onBand,p.tickValue=r[l].tickValue}return n}function _K(r,e,t,i){var a=i.axis,n=i.getModel("axisTick"),o=n.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||a.scale.isBlank())return[];for(var s=n.getModel("lineStyle"),l=r.tickDirection*n.get("length"),u=a.getTicksCoords(),f=wk(u,t.transform,l,$(s.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),p=0;p<f.length;p++)e.add(f[p]);return f}function xK(r,e,t,i,a){var n=i.axis,o=i.getModel("minorTick");if(!(!r.showMinorTicks||n.scale.isBlank())){var s=n.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=a*o.get("length"),f=$(l.getLineStyle(),$(i.getModel("axisTick").getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])})),p=0;p<s.length;p++)for(var c=wk(s[p],t.transform,u,f,"minorticks_"+p),v=0;v<c.length;v++)e.add(c[v])}}function xk(r,e,t){if(Tk(r)){var i=r.axisLabelsCreationContext,a=i.out.noPxChangeTryDetermine;if(t.noPxChange){for(var n=!0,o=0;o<a.length;o++)n=n&&a[o]();if(n)return!1}a.length&&(e.remove(r.labelGroup),Kw(r,null,null,null))}return!0}function SK(r,e,t,i,a,n){var o=a.axis,s=Et(r.raw.axisLabelShow,a.get(["axisLabel","show"])),l=new Q;t.add(l);var u=xp(i);if(!s||o.scale.isBlank()){Kw(e,[],l,u);return}var f=a.getModel("axisLabel"),p=o.getViewLabels(u),c=(Et(r.raw.labelRotate,f.get("rotate"))||0)*Us/180,v=Iu.innerTextLayout(r.rotation,c,r.labelDirection),h=a.getCategories&&a.getCategories(!0),d=[],m=a.get("triggerEvent"),g=1/0,y=-1/0;T(p,function(x,S){var b,w=x.tick,A=x.formattedLabel,C=x.rawLabel,E=f,D=nn(o.scale,w);if(h&&h[D]){var I=h[D];te(I)&&I.textStyle&&(E=new Ee(I.textStyle,f,a.ecModel))}var M=E.getTextColor()||a.get(["axisLine","lineStyle","color"]),P=E.getShallow("align",!0)||v.textAlign,O=Z(E.getShallow("alignMinLabel",!0),P),R=Z(E.getShallow("alignMaxLabel",!0),P),z=E.getShallow("verticalAlign",!0)||E.getShallow("baseline",!0)||v.textVerticalAlign,B=Z(E.getShallow("verticalAlignMinLabel",!0),z),F=Z(E.getShallow("verticalAlignMaxLabel",!0),z),G=10+(((b=w.time)===null||b===void 0?void 0:b.level)||0);g=Math.min(g,G),y=Math.max(y,G);var Y=new be({x:0,y:0,rotation:0,silent:Iu.isLabelSilent(a),z2:G,style:Xe(E,{text:A,align:S===0?O:S===p.length-1?R:P,verticalAlign:S===0?B:S===p.length-1?F:z,fill:J(M)?M(o.type==="category"?C:o.type==="value"?D+"":D,S):M})});Y.anid="label_"+D;var q=Bs(Y);if(q.labelInfo=x,q.layoutRotation=v.rotation,Nr({el:Y,componentModel:a,itemName:A,formatterParamsExtra:{isTruncated:function(){return Y.isTruncated},value:C,tickIndex:S}}),m){var re=Iu.makeAxisEventDataBase(a);re.targetType="axisLabel",re.value=C,re.tickIndex=S;var ie=x.tick.break;if(ie){var ue=ie.parsedBreak;re.break={start:ue.vmin,end:ue.vmax}}o.type==="category"&&(re.dataIndex=D),se(Y).eventData=re,ie&&TK(a,n,Y,ie)}d.push(Y),l.add(Y)});var _=U(d,function(x){return{label:x,priority:Bs(x).labelInfo.tick.break?x.z2+(y-g+1):x.z2,defaultAttr:{ignore:x.ignore}}});Kw(e,_,l,u)}function Tk(r){return!!r.labelLayoutList}function Kw(r,e,t,i){r.labelLayoutList=e,r.labelGroup=t,r.axisLabelsCreationContext=i}function bK(r,e,t,i){var a=e.get(["axisLabel","margin"]);T(t,function(n,o){var s=un(n);if(s){var l=s.label,u=Bs(l);s.suggestIgnore=l.ignore,l.ignore=!1,hi(Vo,wK);var f=e.axis;Vo.x=f.dataToCoord(nn(f.scale,u.labelInfo.tick)),Vo.y=r.labelOffset+r.labelDirection*a,Vo.rotation=u.layoutRotation,i.add(Vo),Vo.updateTransform(),i.remove(Vo),Vo.decomposeTransform(),hi(l,Vo),l.markRedraw(),$v(s,!0),un(s)}})}var Vo=new de,wK=new de;function Qw(r){return!!r}function TK(r,e,t,i){t.on("click",function(a){var n={type:Cp,breaks:[{start:i.parsedBreak.breakOption.start,end:i.parsedBreak.breakOption.end}]};n[r.axis.dim+"AxisIndex"]=r.componentIndex,e.dispatchAction(n)})}function CK(r,e,t){var i=mt();if(i){var a=i.retrieveAxisBreakPairs(t,function(o){return o&&Bs(o.label).labelInfo.tick.break},!0),n=r.get(["breakLabelLayout","moveOverlap"],!0);(n===!0||n==="auto")&&T(a,function(o){zo().adjustBreakLabelPair(r.axis.inverse,e,[un(t[o[0]]),un(t[o[1]])])})}}var Ar=Iu;function vh(r,e,t){t=t||{};var i=e.axis,a={},n=i.getAxesOnZeroOf()[0],o=i.position,s=n?"onZero":o,l=i.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,c=l==="x"?[u[2]-p,u[3]+p]:[u[0]-p,u[1]+p];if(n){var v=n.toGlobalCoord(n.dataToCoord(0));c[f.onZero]=Math.max(Math.min(v,c[1]),c[0])}a.position=[l==="y"?c[f[s]]:u[0],l==="x"?c[f[s]]:u[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var h={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=h[o],a.labelOffset=n?c[f[o]]-c[f.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Et(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var d=e.get(["axisLabel","rotate"]);return a.labelRotate=s==="top"?-d:d,a.z2=1,a}function Ck(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Ak(r){var e={xAxisModel:null,yAxisModel:null};return T(e,function(t,i){var a=i.replace(/Model$/,""),n=r.getReferringComponents(a,Ke).models[0];e[i]=n}),e}function Ek(r,e,t,i,a,n){for(var o=vh(r,t),s=!1,l=!1,u=0;u<e.length;u++)ay(e[u].getOtherAxis(t.axis).scale)&&(s=l=!0,t.axis.type==="category"&&t.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=n,new Ar(t,i,o,a)}function Dk(r,e,t){var i=vh(e,t);if(0)var a;r.updateCfg(i)}function Mk(r){return r.dim+"_"+r.index}function Ik(){UN("liPosMinGap",EK)}function EK(r,e,t){var i=W(),a=t.serUids,n=t.liPosMinGap,o,s=e.axis,l=s.scale,u=l.needTransform(),f=l.getFilter?l.getFilter():null,p=Sg(f);function c(_){Kv(r,e.sers,function(x){var S=x.getRawData(),b=S.getDimensionIndex(S.mapDimension(s.dim));b>=0&&_(b,x,S.getStore())})}var v=0;if(c(function(_,x,S){i.set(x.uid,1),(!a||!a.hasKey(x.uid))&&(o=!0),v+=S.count()}),(!a||a.keys().length!==i.keys().length)&&(o=!0),!o&&n!=null){e.liPosMinGap=n;return}Vy(Lu,v);var h=0;c(function(_,x,S){for(var b=0,w=S.count();b<w;++b){var A=S.get(_,b);isFinite(A)&&(!f||bg(p,A))&&(u&&(A=l.transformIn(A,null)),Lu.arr[h++]=A)}});var d=Lu.typed?Lu.arr.subarray(0,h):(Lu.arr.length=h,Lu.arr);Lu.typed?d.sort():dt(d);for(var m=1/0,g=1;g<h;++g){var y=d[g]-d[g-1];y>0&&y<m&&(m=y)}t.liPosMinGap=e.liPosMinGap=rr(m)?m:h>0?dy:PN,t.serUids=i}var Lu=Vy({ctor:nk},50);function Fs(r){return function(e,t){var i=xt(e,{fromStat:{key:r}});if(rr(i.w2))return[-i.w2/2,i.w2/2]}}function Uo(r){return r+Zv}function Bo(r,e){return r+Zv+e}function Ep(r){return Ik(),{liPosMinGap:!At(r.scale)}}var ii="bar",Gs="pictorialBar";function Wy(r,e,t,i){_p(r,{key:e,seriesType:t,coordSysType:i,getMetrics:Ep})}function Xy(r){var e=r.scale.rawExtentInfo.makeRenderInfo().startValue;return e}var $w={left:0,right:0,top:0,bottom:0},hh=["25%","25%"],Br="cartesian2d",DK=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.mergeDefaultAndTheme=function(t,i){var a=Mi(t.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),a&&t.outerBounds&&wr(t.outerBounds,a)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&wr(this.option.outerBounds,t.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:$w,outerBoundsContain:"all",outerBoundsClampWidth:hh[0],outerBoundsClampHeight:hh[1],backgroundColor:N.color.transparent,borderWidth:1,borderColor:N.color.neutral30},e})(Se),Lk=DK;var MK=ua(),eT="__ec_stack_";function Pk(r){return r.get("stack")||eT+r.seriesIndex}function Rk(r){if(At(r.axis.scale)){for(var e=xt(r.axis),t=[],i=0;i<r.count;i++)t.push($({stackId:eT+i},r));for(var a=Ok({bandWidthResult:e,seriesInfo:t}),n=[],i=0;i<r.count;i++){var o=a[eT+i];o.offsetCenter=o.offset+o.width/2,n.push(o)}return n}}function IK(r,e){var t=LK(r,e);return t.columnMap=Ok(t),t}function LK(r,e){var t=Bo(e,Br),i=[],a=xt(r,{fromStat:{key:t},min:1});return Kn(r,t,function(n){i.push({barWidth:j(n.get("barWidth"),a.w),barMaxWidth:j(n.get("barMaxWidth"),a.w),barMinWidth:j(n.get("barMinWidth")||(Nk(n)?.5:1),a.w),barGap:n.get("barGap"),barCategoryGap:n.get("barCategoryGap"),defaultBarGap:n.get("defaultBarGap"),stackId:Pk(n)})}),{bandWidthResult:a,seriesInfo:i}}function Ok(r){var e=r.bandWidthResult.w,t=e,i=0,a,n,o=[],s={};T(r.seriesInfo,function(d,m){m||(n=d.defaultBarGap||0);var g=d.stackId;ae(s,g)||i++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var _=d.barWidth;_&&!y.width&&(y.width=_,_=Fe(t,_),t-=_);var x=d.barMaxWidth;x&&(y.maxWidth=x);var S=d.barMinWidth;S&&(y.minWidth=S);var b=d.barGap;b!=null&&(n=b);var w=d.barCategoryGap;w!=null&&(a=w)}),a==null&&(a=xe(35-o.length*4,15)+"%");var l=j(a,e),u=j(n,1),f=(t-l)/(i+(i-1)*u);f=xe(f,0),T(o,function(d){var m=s[d],g=m.maxWidth,y=m.minWidth;if(m.width){var _=m.width;g&&(_=Fe(_,g)),y&&(_=xe(_,y)),m.width=_,t-=_+u*_,i--}else{var _=f;g&&g<_&&(_=Fe(g,t)),y&&y>_&&(_=y),_!==f&&(m.width=_,t-=_+u*_,i--)}}),f=(t-l)/(i+(i-1)*u),f=xe(f,0);var p=0,c;T(o,function(d){var m=s[d];m.width||(m.width=f),c=m,p+=m.width*(1+u)}),c&&(p-=c.width*u);var v={},h=-p/2;return T(o,function(d){var m=s[d];v[d]=v[d]||{bandWidth:e,offset:h,width:m.width},h+=m.width*(1+u)}),v}function Zy(r){return{seriesType:r,overallReset:function(e){var t=Bo(r,Br);yp(e,t,function(i){var a=IK(i,r);Kn(i,t,function(n){var o=a.columnMap[Pk(n)];n.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function Ky(r){return{seriesType:r,plan:qr(),reset:function(e){if(Ck(e)){var t=e.getData(),i=e.coordinateSystem,a=i.getBaseAxis(),n=i.getOtherAxis(a),o=t.getDimensionIndex(t.mapDimension(n.dim)),s=t.getDimensionIndex(t.mapDimension(a.dim)),l=e.get("showBackground",!0),u=t.mapDimension(n.dim),f=t.getCalculationInfo("stackResultDimension"),p=Qr(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),c=n.isHorizontal(),v=n.toGlobalCoord(n.dataToCoord(Xy(n))),h=Nk(e),d=e.get("barMinHeight")||0,m=f&&t.getDimensionIndex(f),g=t.getLayout("size"),y=t.getLayout("offset");return{progress:function(_,x){for(var S=_.count,b=h&&ri(S*3),w=h&&l&&ri(S*3),A=h&&ri(S),C=i.master.getRect(),E=c?C.width:C.height,D,I=x.getStore(),M=0;(D=_.next())!=null;){var P=I.get(p?m:o,D),O=I.get(s,D),R=v,z=void 0;p&&(z=+P-I.get(o,D));var B=void 0,F=void 0,G=void 0,Y=void 0;if(c){var q=i.dataToPoint([P,O]);p&&(R=i.dataToPoint([z,O])[0]),B=R,F=q[1]+y,G=q[0]-R,Y=g,ct(G)<d&&(G=(G<0?-1:1)*d)}else{var q=i.dataToPoint([O,P]);p&&(R=i.dataToPoint([O,z])[1]),B=q[0]+y,F=R,G=g,Y=q[1]-R,ct(Y)<d&&(Y=(Y<=0?-1:1)*d)}h?(b[M]=B,b[M+1]=F,b[M+2]=c?G:Y,w&&(w[M]=c?C.x:B,w[M+1]=c?F:C.y,w[M+2]=E),A[D]=D):x.setItemLayout(D,{x:B,y:F,width:G,height:Y}),M+=3}h&&x.setLayout({largePoints:b,largeDataIndices:A,largeBackgroundPoints:w,valueAxisHorizontal:c})}}}}}}function Nk(r){return r.pipelineContext&&r.pipelineContext.large}function PK(r){return Fs(Bo(r,Br))}function qy(r){MK(r,function(){function e(t){var i=Bo(t,Br);Wy(r,i,t,Br),Is(i,PK(t))}e("bar"),e("pictorialBar")})}var kk=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return nr(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,i,a){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(t),s=n.dataToPoint(o);if(a)T(n.getAxes(),function(c,v){if(c.type==="category"&&i!=null){var h=c.getTicksCoords(),d=c.getTickModel().get("alignWithLabel"),m=o[v],g=i[v]==="x1"||i[v]==="y1";if(g&&!d&&(m+=1),h.length<2)return;if(h.length===2){s[v]=c.toGlobalCoord(c.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,x=1,S=0;S<h.length;S++){var b=h[S].coord,w=S===h.length-1?h[S-1].tickValue+x:h[S].tickValue;if(w===m){_=b;break}else if(w<m)y=b;else if(y!=null&&w>m){_=(b+y)/2;break}S===1&&(x=w-h[0].tickValue)}_==null&&(y?y&&(_=h[h.length-1].coord):_=h[0].coord),s[v]=c.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),p=n.getBaseAxis().isHorizontal()?0:1;s[p]+=u+f/2}return s}return[NaN,NaN]},e.prototype.__requireStartValue=function(t){return this.getBaseAxis()!==t},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},e})(ke);ke.registerClass(kk);var Dp=kk;var RK=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(){return nr(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.__preparePipelineContext=function(t,i){var a=Jd(this,t,i);return a.progressiveRender&&(a.large=!0),a},e.prototype.brushSelector=function(t,i,a){return a.rect(i.getItemLayout(t))},e.type="series."+ii,e.dependencies=["grid","polar"],e.defaultOption=kr(Dp.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:N.color.primary,borderWidth:2}},realtimeSort:!1}),e})(Dp),zk=RK;var OK=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),NK=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i.type="sausage",i}return e.prototype.getDefaultShape=function(){return new OK},e.prototype.buildPath=function(t,i){var a=i.cx,n=i.cy,o=Math.max(i.r0||0,0),s=Math.max(i.r,0),l=(s-o)*.5,u=o+l,f=i.startAngle,p=i.endAngle,c=i.clockwise,v=Math.PI*2,h=c?p-f<v:f-p<v;h||(f=p-(c?v:-v));var d=Math.cos(f),m=Math.sin(f),g=Math.cos(p),y=Math.sin(p);h?(t.moveTo(d*o+a,m*o+n),t.arc(d*u+a,m*u+n,l,-Math.PI+f,f,!c)):t.moveTo(d*s+a,m*s+n),t.arc(a,n,s,f,p,!c),t.arc(g*u+a,y*u+n,l,p-Math.PI*2,p-Math.PI,!c),o!==0&&t.arc(a,n,o,p,f,c)},e})(ce),Mp=NK;function Vk(r,e){e=e||{};var t=e.isRoundCap;return function(i,a,n){var o=a.position;if(!o||o instanceof Array)return Rl(i,a,n);var s=r(o),l=a.distance!=null?a.distance:5,u=this.shape,f=u.cx,p=u.cy,c=u.r,v=u.r0,h=(c+v)/2,d=u.startAngle,m=u.endAngle,g=(d+m)/2,y=t?Math.abs(c-v)/2:0,_=Math.cos,x=Math.sin,S=f+c*_(d),b=p+c*x(d),w="left",A="top";switch(s){case"startArc":S=f+(v-l)*_(g),b=p+(v-l)*x(g),w="center",A="top";break;case"insideStartArc":S=f+(v+l)*_(g),b=p+(v+l)*x(g),w="center",A="bottom";break;case"startAngle":S=f+h*_(d)+jy(d,l+y,!1),b=p+h*x(d)+Jy(d,l+y,!1),w="right",A="middle";break;case"insideStartAngle":S=f+h*_(d)+jy(d,-l+y,!1),b=p+h*x(d)+Jy(d,-l+y,!1),w="left",A="middle";break;case"middle":S=f+h*_(g),b=p+h*x(g),w="center",A="middle";break;case"endArc":S=f+(c+l)*_(g),b=p+(c+l)*x(g),w="center",A="bottom";break;case"insideEndArc":S=f+(c-l)*_(g),b=p+(c-l)*x(g),w="center",A="top";break;case"endAngle":S=f+h*_(m)+jy(m,l+y,!0),b=p+h*x(m)+Jy(m,l+y,!0),w="left",A="middle";break;case"insideEndAngle":S=f+h*_(m)+jy(m,-l+y,!0),b=p+h*x(m)+Jy(m,-l+y,!0),w="right",A="middle";break;default:return Rl(i,a,n)}return i=i||{},i.x=S,i.y=b,i.align=w,i.verticalAlign=A,i}}function Uk(r,e,t,i){if(_e(i)){r.setTextConfig({rotation:i});return}else if(V(e)){r.setTextConfig({rotation:0});return}var a=r.shape,n=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(n+o)/2,l,u=t(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=n;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function jy(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Jy(r,e,t){return e*Math.cos(r)*(t?1:-1)}function ai(r,e,t){var i=r.get("borderRadius");if(i==null)return t?{cornerRadius:0}:null;V(i)||(i=[i,i,i,i]);var a=Math.abs(e.r||0-e.r0||0);return{cornerRadius:U(i,function(n){return Lr(n,a)})}}var tT=Math.max,rT=Math.min,kK=(function(r){L(e,r);function e(){var t=r.call(this)||this;return t.type=ii,t._isFirstFrame=!0,t}return e.prototype.render=function(t,i,a,n){this._model=t,this._removeOnRenderedListener(a),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,i,a):this._renderNormal(t,i,a,n))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,i){this._progressiveEls=[],this._incrementalRenderLarge(t,i)},e.prototype.eachRendered=function(t){Kr(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t,i,a,n){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),p;u.type==="cartesian2d"?p=f.isHorizontal():u.type==="polar"&&(p=f.dim==="angle");var c=t.isAnimationEnabled()?t:null,v=zK(t,u);v&&this._enableRealtimeSort(v,s,a);var h=t.get("clip",!0)||v,d=u.getArea();o.removeClipPath();var m=t.get("roundCap",!0),g=t.get("showBackground",!0),y=t.getModel("backgroundStyle"),_=y.get("borderRadius")||0,x=[],S=this._backgroundEls,b=n&&n.isInitSort,w=n&&n.type==="changeAxisOrder";function A(D){var I=Qy[u.type](s,D);if(!I)return null;var M=YK(u,p,I);return M.useStyle(y.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),x[D]=M,M}s.diff(l).add(function(D){var I=s.getItemModel(D),M=Qy[u.type](s,D,I);if(M&&(g&&A(D),!(!s.hasValue(D)||!Yk[u.type](M)))){var P=!1;h&&(P=Bk[u.type](d,M));var O=Fk[u.type](t,s,D,M,p,c,f.model,!1,m);v&&(O.forceLabelAnimation=!0),Wk(O,s,D,I,M,t,p,u.type==="polar"),b?O.attr({shape:M}):v?Gk(v,c,O,M,D,p,!1,!1):Ge(O,{shape:M},t,D),s.setItemGraphicEl(D,O),o.add(O),O.ignore=P}}).update(function(D,I){var M=s.getItemModel(D),P=Qy[u.type](s,D,M);if(P){if(g){var O=void 0;S.length===0?O=A(I):(O=S[I],O.useStyle(y.getItemStyle()),u.type==="cartesian2d"?O.setShape("r",_):O.setShape("cornerRadius",_),x[D]=O);var R=Qy[u.type](s,D),z=jk(p,R,u);Ae(O,{shape:z},c,D)}var B=l.getItemGraphicEl(I);if(!s.hasValue(D)||!Yk[u.type](P)){o.remove(B);return}var F=!1;h&&(F=Bk[u.type](d,P),F&&o.remove(B));var G=B&&(B.type==="sector"&&m||B.type==="sausage"&&!m);if(G&&(B&&Ai(B,t,I),B=null),B?Bt(B):B=Fk[u.type](t,s,D,P,p,c,f.model,!0,m),v&&(B.forceLabelAnimation=!0),w){var Y=B.getTextContent();if(Y){var q=Do(Y);q.prevValue!=null&&(q.prevValue=q.value)}}else Wk(B,s,D,M,P,t,p,u.type==="polar");b?B.attr({shape:P}):v?Gk(v,c,B,P,D,p,!0,w):Ae(B,{shape:P},t,D,null),s.setItemGraphicEl(D,B),B.ignore=F,o.add(B)}}).remove(function(D){var I=l.getItemGraphicEl(D);I&&Ai(I,t,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Q);C.removeAll();for(var E=0;E<x.length;++E)C.add(x[E]);o.add(C),this._backgroundEls=x,this._data=s},e.prototype._renderLarge=function(t,i,a){this._clear(),Zk(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,i){this._removeBackground(),Zk(i,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var i=t.get("clip",!0)&&Ki(t.coordinateSystem,!1,t),a=this.group;i?a.setClipPath(i):a.removeClipPath()},e.prototype._enableRealtimeSort=function(t,i,a){var n=this;if(i.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(i,t,a),this._isFirstFrame=!1;else{var s=function(l){var u=i.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){n._updateSortWithinSameData(i,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,i,a){var n=[];return t.each(t.mapDimension(i.dim),function(o,s){var l=a(s);l=l??NaN,n.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),n.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:U(n,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,i,a){for(var n=a.scale,o=t.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=n.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,n.getRawOrdinalNumber(l)),p=f<0?Number.MIN_VALUE:i(t.indexOfRawIndex(f));if(p>s)return!0;s=p}return!1},e.prototype._isOrderDifferentInView=function(t,i){for(var a=i.scale,n=a.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,i,a,n){if(this._isOrderChangedWithinSameData(t,i,a)){var o=this._dataSort(t,a,i);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,i,a){var n=i.baseAxis,o=this._dataSort(t,n,function(s){return t.get(t.mapDimension(i.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},e.prototype.remove=function(t,i){this._clear(this._model),this._removeOnRenderedListener(i)},e.prototype.dispose=function(t,i){this._removeOnRenderedListener(i)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var i=this.group,a=this._data;t&&t.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(n){Ai(n,t,se(n).dataIndex)})):i.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type=ii,e})(Le),Bk={cartesian2d:function(r,e){var t=e.width<0?-1:1,i=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var a=r.x+r.width,n=r.y+r.height,o=tT(e.x,r.x),s=rT(e.x+e.width,a),l=tT(e.y,r.y),u=rT(e.y+e.height,n),f=s<o,p=u<l;return e.x=f&&o>a?s:o,e.y=p&&l>n?u:l,e.width=f?0:s-o,e.height=p?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),f||p},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}var a=rT(e.r,r.r),n=tT(e.r0,r.r0);e.r=a,e.r0=n;var o=a-n<0;if(t<0){var i=e.r;e.r=e.r0,e.r0=i}return o}},Fk={cartesian2d:function(r,e,t,i,a,n,o,s,l){var u=new de({shape:k({},i),z2:1});if(u.__dataIndex=t,u.name="item",n){var f=u.shape,p=a?"height":"width";f[p]=0}return u},polar:function(r,e,t,i,a,n,o,s,l){var u=!a&&l?Mp:Tt,f=new u({shape:i,z2:1});f.name="item";var p=qk(a);if(f.calculateTextPosition=Vk(p,{isRoundCap:u===Mp}),n){var c=f.shape,v=a?"r":"endAngle",h={};c[v]=a?i.r0:i.startAngle,h[v]=i[v],(s?Ae:Ge)(f,{shape:h},n)}return f}};function zK(r,e){var t=r.get("realtimeSort",!0),i=e.getBaseAxis();if(t&&i.type==="category"&&e.type==="cartesian2d")return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}function Gk(r,e,t,i,a,n,o,s){var l,u;n?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(o?Ae:Ge)(t,{shape:l},e,a,null);var f=e?r.baseAxis.model:null;(o?Ae:Ge)(t,{shape:u},f,a)}function Hk(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var VK=["x","y","width","height"],UK=["cx","cy","r","startAngle","endAngle"],Yk={cartesian2d:function(r){return!Hk(r,VK)},polar:function(r){return!Hk(r,UK)}},Qy={cartesian2d:function(r,e,t){var i=r.getItemLayout(e);if(!i)return null;var a=t?FK(t,i):0,n=i.width>0?1:-1,o=i.height>0?1:-1;return{x:i.x+n*a/2,y:i.y+o*a/2,width:i.width-n*a,height:i.height-o*a}},polar:function(r,e,t){var i=r.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function BK(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function qk(r){return(function(e){var t=e?"Arc":"Angle";return function(i){switch(i){case"start":case"insideStart":case"end":case"insideEnd":return i+t;default:return i}}})(r)}function Wk(r,e,t,i,a,n,o,s){var l=e.getItemVisual(t,"style");if(s){if(!n.get("roundCap")){var f=r.shape,p=ai(i.getModel("itemStyle"),f,!0);k(f,p),r.setShape(f)}}else{var u=i.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var c=i.getShallow("cursor");c&&r.attr("cursor",c);var v=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?WK(a,n.coordinateSystem):XK(a,n.coordinateSystem),h=tt(i);it(r,h,{labelFetcher:n,labelDataIndex:t,defaultText:fn(n.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var d=r.getTextContent();if(s&&d){var m=i.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,Uk(r,m==="outside"?v:m,qk(o),i.get(["label","rotate"]))}Om(d,h,n.getRawValue(t),function(y){return Oy(e,y)});var g=i.getModel(["emphasis"]);Be(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),st(r,i),BK(a)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function FK(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var i=r.get(["itemStyle","borderWidth"])||0,a=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),n=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(i,a,n)}var GK=(function(){function r(){}return r})(),Xk=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i.type="largeBar",i}return e.prototype.getDefaultShape=function(){return new GK},e.prototype.buildPath=function(t,i){for(var a=i.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<a.length;f+=3)l[n]=u,l[o]=a[f+2],s[n]=a[f+n],s[o]=a[f+o],t.rect(s[0],s[1],l[0],l[1])},e})(ce);function Zk(r,e,t,i){var a=r.getData(),n=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=r.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints"),f=i?yr(r):0;if(u){var p=new Xk({shape:{points:u},incremental:f,silent:!0,z2:0});p.baseDimIdx=n,p.largeDataIndices=o,p.barWidth=s,p.useStyle(l.getItemStyle()),e.add(p),t&&t.push(p)}var c=new Xk({shape:{points:a.getLayout("largePoints")},incremental:f,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=n,c.largeDataIndices=o,c.barWidth=s,e.add(c),c.useStyle(a.getVisual("style")),c.style.stroke=null,se(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",Kk),c.on("mousemove",Kk)),t&&t.push(c)}var Kk=tp(function(r){var e=this,t=HK(e,r.offsetX,r.offsetY);se(e).dataIndex=t>=0?t:null},30,!1);function HK(r,e,t){for(var i=r.baseDimIdx,a=1-i,n=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,p=n.length/3;f<p;f++){var c=f*3;if(l[i]=u,l[a]=n[c+2],s[i]=n[c+i],s[a]=n[c+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function jk(r,e,t){if(Aa(t,"cartesian2d")){var i=e,a=t.getArea();return{x:r?i.x:a.x,y:r?a.y:i.y,width:r?i.width:a.width,height:r?a.height:i.height}}else{var a=t.getArea(),n=e;return{cx:a.cx,cy:a.cy,r0:r?a.r0:n.r0,r:r?a.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function YK(r,e,t){var i=r.type==="polar"?Tt:de;return new i({shape:jk(e,t,r),silent:!0,z2:0})}function WK(r,e){if(r.height===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function XK(r,e){if(r.width===0){var t=e.getOtherAxis(e.getBaseAxis());return t.inverse?"left":"right"}return r.width>=0?"right":"left"}var Jk=kK;function iT(r){r.registerChartView(Jk),r.registerSeriesModel(zk),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Zy(ii)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ky(ii)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,ph(ii)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var i=e.componentType||"series";t.eachComponent({mainType:i,query:e},function(a){e.sortInfo&&a.axis.setCategorySortInfo(e.sortInfo)})}),qy(r)}function cn(r){return{seriesType:r,reset:function(e,t){var i=t.findComponents({mainType:"legend"});if(!(!i||!i.length)){var a=e.getData();a.filterSelf(function(n){for(var o=a.getName(n),s=0;s<i.length;s++)if(!i[s].isSelected(o))return!1;return!0})}}}}function qi(r,e,t){e=V(e)&&{coordDimensions:e}||k({encodeDefine:r.getEncode()},e);var i=r.getSource(),a=Sa(i,e).dimensions,n=new Ct(a,r);return n.initData(i,t),n}var ZK=(function(){function r(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return r.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},r.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},r.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},r.prototype.getItemVisual=function(e,t){var i=this._getDataWithEncodedVisual();return i.getItemVisual(e,t)},r})(),Ea=ZK;var vn="pie",KK=ne(),Qk=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ea(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return qi(this,{coordDimensions:["value"],encodeDefaulter:me(Jf,this)})},e.prototype.getDataParams=function(t){var i=this.getData(),a=KK(i),n=a.seats;if(!n){var o=[];i.each(i.mapDimension("value"),function(l){o.push(l)}),n=a.seats=uS(o,i.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=n[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Fi(t,"labelLine",["show"]);var i=t.labelLine,a=t.emphasis.labelLine;i.show=i.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.type="series."+vn,e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e})(ke);PP({fullType:Qk.type,getCoord2:function(r){return r.getShallow("center")}});var $k=Qk;var qK=Math.PI/180;function ez(r,e,t,i,a,n,o,s,l,u){if(r.length<2)return;function f(d){for(var m=d.rB,g=m*m,y=0;y<d.list.length;y++){var _=d.list[y],x=Math.abs(_.label.y-t),S=i+_.len,b=S*S,w=Math.sqrt(Math.abs((1-x*x/g)*b)),A=e+(w+_.len2)*a,C=A-_.label.x,E=_.targetTextWidth-C*a;rz(_,E,!0),_.label.x=A}}function p(d){for(var m={list:[],maxY:0},g={list:[],maxY:0},y=0;y<d.length;y++)if(d[y].labelAlignTo==="none"){var _=d[y],x=_.label.y>t?g:m,S=Math.abs(_.label.y-t);if(S>=x.maxY){var b=_.label.x-e-_.len2*a,w=i+_.len,A=Math.abs(b)<w?Math.sqrt(S*S/(1-b*b/w/w)):w;x.rB=A,x.maxY=S}x.list.push(_)}f(m),f(g)}for(var c=r.length,v=0;v<c;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var h=r[v].label.x-u;r[v].linePoints[1][0]+=h,r[v].label.x=u}rh(r,1,l,l+o)&&p(r)}function jK(r,e,t,i,a,n,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,p=-Number.MAX_VALUE,c=0;c<r.length;c++){var v=r[c].label;aT(r[c])||(v.x<e?(f=Math.min(f,v.x),l.push(r[c])):(p=Math.max(p,v.x),u.push(r[c])))}for(var c=0;c<r.length;c++){var h=r[c];if(!aT(h)&&h.linePoints){if(h.labelStyleWidth!=null)continue;var v=h.label,d=h.linePoints,m=void 0;h.labelAlignTo==="edge"?v.x<e?m=d[2][0]-h.labelDistance-o-h.edgeDistance:m=o+a-h.edgeDistance-d[2][0]-h.labelDistance:h.labelAlignTo==="labelLine"?v.x<e?m=f-o-h.bleedMargin:m=o+a-p-h.bleedMargin:v.x<e?m=v.x-o-h.bleedMargin:m=o+a-v.x-h.bleedMargin,h.targetTextWidth=m,rz(h,m,!1)}}ez(u,e,t,i,1,a,n,o,s,p),ez(l,e,t,i,-1,a,n,o,s,f);for(var c=0;c<r.length;c++){var h=r[c];if(!aT(h)&&h.linePoints){var v=h.label,d=h.linePoints,g=h.labelAlignTo==="edge",y=v.style.padding,_=y?y[1]+y[3]:0,x=v.style.backgroundColor?0:_,S=h.rect.width+x,b=d[1][0]-d[2][0];g?v.x<e?d[2][0]=o+h.edgeDistance+S+h.labelDistance:d[2][0]=o+a-h.edgeDistance-S-h.labelDistance:(v.x<e?d[2][0]=v.x+h.labelDistance:d[2][0]=v.x-h.labelDistance,d[1][0]=d[2][0]+b),d[1][1]=d[2][1]=v.y}}}function rz(r,e,t){if(r.labelStyleWidth==null){var i=r.label,a=i.style,n=r.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,f=n.width+(o?0:l);if(e<f||t){if(u&&u.match("break")){i.setStyle("backgroundColor",null),i.setStyle("width",e-l);var p=i.getBoundingRect();i.setStyle("width",Math.ceil(p.width)),i.setStyle("backgroundColor",o)}else{var c=e-l,v=e<f?c:t?c>r.unconstrainedWidth?null:c:null;i.setStyle("width",v)}iz(n,i)}}}function iz(r,e){tz.rect=r,aw(tz,e,JK)}var JK={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},tz={};function aT(r){return r.position==="center"}function nT(r){var e=r.getData(),t=[],i,a,n=!1,o=(r.get("minShowLabelAngle")||0)*qK,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,p=s.y,c=s.height;function v(b){b.ignore=!0}function h(b){if(!b.ignore)return!0;for(var w in b.states)if(b.states[w].ignore===!1)return!0;return!1}e.each(function(b){var w=e.getItemGraphicEl(b),A=w.shape,C=w.getTextContent(),E=w.getTextGuideLine(),D=e.getItemModel(b),I=D.getModel("label"),M=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),O=I.get("alignTo"),R=j(I.get("edgeDistance"),u),z=I.get("bleedMargin");z==null&&(z=Math.min(u,c)>200?10:2);var B=D.getModel("labelLine"),F=B.get("length");F=j(F,u);var G=B.get("length2");if(G=j(G,u),Math.abs(A.endAngle-A.startAngle)<o){T(C.states,v),C.ignore=!0,E&&(T(E.states,v),E.ignore=!0);return}if(h(C)){var Y=(A.startAngle+A.endAngle)/2,q=Math.cos(Y),re=Math.sin(Y),ie,ue,Pe,$e;i=A.cx,a=A.cy;var De=M==="inside"||M==="inner";if(M==="center")ie=A.cx,ue=A.cy,$e="center";else{var fe=(De?(A.r+A.r0)/2*q:A.r*q)+i,Oe=(De?(A.r+A.r0)/2*re:A.r*re)+a;if(ie=fe+q*3,ue=Oe+re*3,!De){var pe=fe+q*(F+l-A.r),Me=Oe+re*(F+l-A.r),pt=pe+(q<0?-1:1)*G,Ze=Me;O==="edge"?ie=q<0?f+R:f+u-R:ie=pt+(q<0?-P:P),ue=Ze,Pe=[[fe,Oe],[pe,Me],[pt,Ze]]}$e=De?"center":O==="edge"?q>0?"right":"left":q>0?"left":"right"}var nt=Math.PI,ht=0,qt=I.get("rotate");if(_e(qt))ht=qt*(nt/180);else if(M==="center")ht=0;else if(qt==="radial"||qt===!0){var Ni=q<0?-Y+nt:-Y;ht=Ni}else if(qt==="tangential"||qt==="tangential-noflip"&&M!=="outside"&&M!=="outer"){var si=Math.atan2(q,re);si<0&&(si=nt*2+si);var fl=re>0;fl&&qt!=="tangential-noflip"&&(si=nt+si),ht=si-nt}if(n=!!ht,C.x=ie,C.y=ue,C.rotation=ht,C.setStyle({verticalAlign:"middle"}),De){C.setStyle({align:$e});var ex=C.states.select;ex&&(ex.x+=C.x,ex.y+=C.y)}else{var ef=new oe(0,0,0,0);iz(ef,C),t.push({label:C,labelLine:E,position:M,len:F,len2:G,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new he(q,re),linePoints:Pe,textAlign:$e,labelDistance:P,labelAlignTo:O,edgeDistance:R,bleedMargin:z,rect:ef,unconstrainedWidth:ef.width,labelStyleWidth:C.style.width})}w.setTextConfig({inside:De})}}),!n&&r.get("avoidLabelOverlap")&&jK(t,i,a,l,u,c,f,p);for(var d=0;d<t.length;d++){var m=t[d],g=m.label,y=m.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:m.textAlign}),_&&(T(g.states,v),g.ignore=!0);var x=g.states.select;x&&(x.x+=g.x,x.y+=g.y)}if(y){var S=m.linePoints;_||!S?(T(y.states,v),y.ignore=!0):(rw(S,m.minTurnAngle),_2(S,m.surfaceNormal,m.maxSurfaceAngle),y.setShape({points:S}),g.__hostTarget.textGuideLineConfig={anchor:new he(S[0][0],S[0][1])})}}}var az=Math.PI*2,$y=Math.PI/180,nz=qe(vn,QK);function QK(r,e){r.eachSeriesByType(vn,function(t){var i=t.getData(),a=i.mapDimension("value"),n=og(t,e),o=n.cx,s=n.cy,l=n.r,u=n.r0,f=n.viewRect,p=-t.get("startAngle")*$y,c=t.get("endAngle"),v=t.get("padAngle")*$y;c=c==="auto"?p-az:-c*$y;var h=t.get("minAngle")*$y,d=h+v,m=0;i.each(a,function(R){!isNaN(R)&&m++});var g=i.getSum(a),y=Math.PI/(g||m)*2,_=t.get("clockwise"),x=t.get("roseType"),S=t.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var w=_?1:-1,A=[p,c],C=w*v/2;Yl(A,!_),p=A[0],c=A[1];var E=oT(t);E.startAngle=p,E.endAngle=c,E.clockwise=_,E.cx=o,E.cy=s,E.r=l,E.r0=u;var D=Math.abs(c-p),I=D,M=0,P=p;if(i.setLayout({viewRect:f,r:l}),i.each(a,function(R,z){var B;if(isNaN(R)){i.setItemLayout(z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:o,cy:s,r0:u,r:x?NaN:l});return}x!=="area"?B=g===0&&S?y:R*y:B=D/m,B<d?(B=d,I-=d):M+=R;var F=P+w*B,G=0,Y=0;v>B?(G=P+w*B/2,Y=G):(G=P+C,Y=F-C),i.setItemLayout(z,{angle:B,startAngle:G,endAngle:Y,clockwise:_,cx:o,cy:s,r0:u,r:x?Ue(R,b,[u,l]):l}),P=F}),I<az&&m)if(I<=.001){var O=D/m;i.each(a,function(R,z){if(!isNaN(R)){var B=i.getItemLayout(z);B.angle=O;var F=0,G=0;O<v?(F=p+w*(z+1/2)*O,G=F):(F=p+w*z*O+C,G=p+w*(z+1)*O-C),B.startAngle=F,B.endAngle=G}})}else y=I/M,P=p,i.each(a,function(R,z){if(!isNaN(R)){var B=i.getItemLayout(z),F=B.angle===d?d:R*y,G=0,Y=0;F<v?(G=P+w*F/2,Y=G):(G=P+C,Y=P+w*F-C),B.startAngle=G,B.endAngle=Y,P+=w*F}})})}var oT=ne();var $K=(function(r){L(e,r);function e(t,i,a){var n=r.call(this)||this;n.z2=2;var o=new be;return n.setTextContent(o),n.updateData(t,i,a,!0),n}return e.prototype.updateData=function(t,i,a,n){var o=this,s=t.hostModel,l=t.getItemModel(i),u=l.getModel("emphasis"),f=t.getItemLayout(i),p=k(ai(l.getModel("itemStyle"),f,!0),f);if(isNaN(p.startAngle)){o.setShape(p);return}if(n){o.setShape(p);var c=s.getShallow("animationType");s.ecModel.ssr?(Ge(o,{scaleX:0,scaleY:0},s,{dataIndex:i,isFrom:!0}),o.originX=p.cx,o.originY=p.cy):c==="scale"?(o.shape.r=f.r0,Ge(o,{shape:{r:f.r}},s,i)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Ge(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,i)):(o.shape.endAngle=f.startAngle,Ae(o,{shape:{endAngle:f.endAngle}},s,i))}else Bt(o),Ae(o,{shape:p},s,i);o.useStyle(t.getItemVisual(i,"style")),st(o,l);var v=(f.startAngle+f.endAngle)/2,h=s.get("selectedOffset"),d=Math.cos(v)*h,m=Math.sin(v)*h,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,t,i),o.ensureState("emphasis").shape=k({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},ai(u.getModel("itemStyle"),f)),k(o.ensureState("select"),{x:d,y:m,shape:ai(l.getModel(["select","itemStyle"]),f)}),k(o.ensureState("blur"),{shape:ai(l.getModel(["blur","itemStyle"]),f)});var y=o.getTextGuideLine(),_=o.getTextContent();y&&k(y.ensureState("select"),{x:d,y:m}),k(_.ensureState("select"),{x:d,y:m}),Be(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i,a){var n=this,o=i.getItemModel(a),s=o.getModel("labelLine"),l=i.getItemVisual(a,"style"),u=l&&l.fill,f=l&&l.opacity;it(n,tt(o),{labelFetcher:i.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(a,"normal")||i.getName(a)});var p=n.getTextContent();n.setTextConfig({position:null,rotation:null}),p.attr({z2:10});var c=o.get(["label","position"]);if(c!=="outside"&&c!=="outer")n.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new vt,this.setTextGuideLine(v)),Sp(this,bp(o),{stroke:u,opacity:Dt(s.get(["lineStyle","opacity"]),f,1)})}},e})(Tt),eq=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=vn,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,a,n){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),p=1;isNaN(f&&f.startAngle)&&p<o.count();++p)f=o.getItemLayout(p);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var c=oT(t),v=new Tt({shape:ee(c)});v.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(h){var d=new $K(o,h,u);o.setItemGraphicEl(h,d),l.add(d)}).update(function(h,d){var m=s.getItemGraphicEl(d);m.updateData(o,h,u),m.off("click"),l.add(m),o.setItemGraphicEl(h,m)}).remove(function(h){var d=s.getItemGraphicEl(h);Ai(d,t,h)}).execute(),nT(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,i){var a=i.getData(),n=a.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type=vn,e})(Le),oz=eq;function sT(r){return{seriesType:r,reset:function(e,t){var i=e.getData();i.filterSelf(function(a){var n=i.mapDimension("value"),o=i.get(n,a);return!(_e(o)&&!isNaN(o)&&o<0)})}}}function lT(r){r.registerChartView(oz),r.registerSeriesModel($k),Ng(vn,r.registerAction),r.registerLayout(nz),r.registerProcessor(cn(vn)),r.registerProcessor(sT(vn))}var tq=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return nr(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(t,i,a){return a.point(i.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:N.color.primary}},universalTransition:{divideShape:"clone"}},e})(ke),sz=tq;var lz=4,rq=(function(){function r(){}return r})(),iq=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.getDefaultShape=function(){return new rq},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.buildPath=function(t,i){var a=i.points,n=i.size,o=this.symbolProxy,s=o.shape,l=t.getContext?t.getContext():t,u=l&&n[0]<lz,f=this.softClipShape,p;if(u){this._ctx=l;return}for(this._ctx=null,p=this._off;p<a.length;){var c=a[p++],v=a[p++];isNaN(c)||isNaN(v)||f&&!f.contain(c,v)||(s.x=c-n[0]/2,s.y=v-n[1]/2,s.width=n[0],s.height=n[1],o.buildPath(t,s,!0))}this.incremental&&(this._off=p,this.notClear=!0)},e.prototype.afterBrush=function(){var t=this.shape,i=t.points,a=t.size,n=this._ctx,o=this.softClipShape,s;if(n){for(s=this._off;s<i.length;){var l=i[s++],u=i[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||n.fillRect(l-a[0]/2,u-a[1]/2,a[0],a[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(t,i){for(var a=this.shape,n=a.points,o=a.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=n.length/2-1;u>=0;u--){var f=u*2,p=n[f]-s/2,c=n[f+1]-l/2;if(t>=p&&i>=c&&t<=p+s&&i<=c+l)return u}return-1},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();if(t=a[0],i=a[1],n.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,a=i.points,n=i.size,o=n[0],s=n[1],l=1/0,u=1/0,f=-1/0,p=-1/0,c=0;c<a.length;){var v=a[c++],h=a[c++];l=Math.min(v,l),f=Math.max(v,f),u=Math.min(h,u),p=Math.max(h,p)}t=this._rect=new oe(l-o/2,u-s/2,f-l+o,p-u+s)}return t},e})(ce),aq=(function(){function r(){this.group=new Q}return r.prototype.updateData=function(e,t){this._clear(),this._data=e;var i=this._create();i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,t)},r.prototype.updateLayout=function(e){var t=this._data;if(t){var i=t.getLayout("points");this.group.eachChild(function(a){if(a.startIndex!=null){var n=(a.endIndex-a.startIndex)*2,o=a.startIndex*4*2;i=new Float32Array(i.buffer,o,n)}a.setShape("points",i),a.reset(),a.stopAnimation()})}},r.prototype.incrementalPrepareUpdate=function(e){this._clear()},r.prototype.incrementalUpdate=function(e,t,i,a){var n=this._newAdded[0],o=t.getLayout("points"),s=n&&n.shape.points;if(s&&s.length<2e4){var l=s.length,u=new Float32Array(l+o.length);u.set(s),u.set(o,l),n.endIndex=e.end,n.setShape({points:u})}else{this._newAdded=[];var f=this._create();f.startIndex=e.start,f.endIndex=e.end,f.incremental=i,f.setShape({points:o}),this._setCommon(f,t,a)}},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new iq({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},r.prototype._setCommon=function(e,t,i){var a=t.hostModel;i=i||{};var n=t.getVisual("symbolSize");e.setShape("size",n instanceof Array?n:[n,n]),e.softClipShape=i.clipShape||null,e.symbolProxy=je(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<lz;e.useStyle(a.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=t.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=se(e);u.seriesIndex=a.seriesIndex,e.on("mousemove",function(f){u.dataIndex=null;var p=e.hoverDataIdx;p>=0&&(u.dataIndex=p+(e.startIndex||0))})},r.prototype.remove=function(){this._clear()},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),uz=aq;var nq=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.updateData(n,uT(t)),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,a){var n=t.getData(),o=this._updateSymbolDraw(n,t);o.incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,i,a){this._symbolDraw.incrementalUpdate(t,i.getData(),yr(i),uT(i)),this._finished=t.end===i.getData().count()},e.prototype.updateTransform=function(t,i,a){var n=t.getData();if(this.group.dirty(),this._finished){var o=pn("").reset(t,i,a);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(uT(t))}else return{update:!0}},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._updateSymbolDraw=function(t,i){var a=this._symbolDraw,n=i.pipelineContext,o=n.large;return(!a||o!==this._isLargeDraw)&&(a&&a.remove(),a=this._symbolDraw=o?new uz:new $n,this._isLargeDraw=o,this.group.removeAll()),this.group.add(a.group),a},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e})(Le);function uT(r){return{clipShape:By(r)}}var fz=nq;var e0=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ke).models[0]},e.type="cartesian2dAxis",e})(Se);rt(e0,Ta);var pz={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:N.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:N.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:N.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[N.color.backgroundTint,N.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:N.color.neutral00,borderColor:N.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},oq=ve({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},pz),fT=ve({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:N.color.axisMinorSplitLine,width:1}}},pz),sq=ve({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},fT),lq=$({logBase:10},fT),t0={category:oq,value:fT,time:sq,log:lq};function hn(r,e,t,i){T(py,function(a,n){var o=ve(ve({},t0[n],!0),i,!0),s=(function(l){L(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+n,f}return u.prototype.mergeDefaultAndTheme=function(f,p){var c=xs(this),v=c?Mi(f):{},h=p.getTheme();ve(f,h.get(n+"Axis")),ve(f,this.getDefaultOption()),f.type=cz(f),c&&wr(f,v,c)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Ds.createByAxisModel(this))},u.prototype.getCategories=function(f){var p=this.option;if(p.type==="category")return f?p.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(f){var p=zo();return p?p.updateModelAxisBreak(this,f):{breaks:[]}},u.type=e+"Axis."+n,u.defaultOption=o,u})(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",cz)}function cz(r){return r.type||(r.data?"category":"value")}var uq=(function(){function r(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return r.prototype.getAxis=function(e){return this._axes[e]},r.prototype.getAxes=function(){return U(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Ie(this.getAxes(),function(t){return t.scale.type===e})},r.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},r})(),vz=uq;var dh=["x","y"];function hz(r){return(r.type==="interval"||r.type==="time")&&!nu(r)}var fq=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Br,t.dimensions=dh,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,i=this.getAxis("y").scale;if(!(!hz(t)||!hz(i))){var a=Su(t,null),n=Su(i,null),o=this.dataToPoint([a[0],n[0]]),s=this.dataToPoint([a[1],n[1]]),l=a[1]-a[0],u=n[1]-n[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,p=(s[1]-o[1])/u,c=o[0]-a[0]*f,v=o[1]-n[0]*p,h=this._transform=[f,0,0,p,c,v];this._invTransform=zt([],h)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var i=this.getAxis("x"),a=this.getAxis("y");return i.contain(i.toLocalCoord(t[0]))&&a.contain(a.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,i){var a=this.dataToPoint(t),n=this.dataToPoint(i),o=this.getArea(),s=new oe(a[0],a[1],n[0]-a[0],n[1]-a[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,i,a){a=a||[];var n=t[0],o=t[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return ot(a,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(n,i)),a[1]=l.toGlobalCoord(l.dataToCoord(o,i)),a},e.prototype.clampData=function(t,i){var a=this.getAxis("x").scale,n=this.getAxis("y").scale,o=a.getExtent(),s=n.getExtent(),l=a.parse(t[0]),u=n.parse(t[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),i[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i},e.prototype.pointToData=function(t,i,a){if(a=a||[],this._invTransform)return ot(a,t,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return a[0]=n.coordToData(n.toLocalCoord(t[0]),i),a[1]=o.coordToData(o.toLocalCoord(t[1]),i),a},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var i=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),n=Math.min(i[0],i[1])-t,o=Math.min(a[0],a[1])-t,s=Math.max(i[0],i[1])-n+t,l=Math.max(a[0],a[1])-o+t;return new oe(n,o,s,l)},e})(vz),dz=fq;function r0(r,e){var t=r.scale,i=r.model,a=my(t,i,i.ecModel,r,null),n=Yn(t),o=Yn(e)?e.intervalStub:e,s=n?t.intervalStub:t,l=t.base,u=o.getTicks(),f=o.getTicks({expandToNicedExtent:!0}),p=u.length-1,c,v,h;if(p===1)c=v=0,h=1;else if(p===2){var d=ct(u[0].value-u[1].value),m=ct(u[1].value-u[2].value);c=v=0,d===m?h=2:(h=1,d<m?c=d/m:v=m/d)}else{var g=o.getConfig().interval;c=(1-(u[0].value-f[0].value)/g)%1,v=(1-(f[p].value-u[p].value)/g)%1,h=p-(c?1:0)-(v?1:0)}var y=a.zoomFixMM,_=y[0]||y[1],x=[a.fixMM[0]||_,a.fixMM[1]||_],S=t.getExtent(),b=s.getExtent(),w=oy(b,x),A,C,E,D,I,M;function P(q){for(var re=50,ie=0;ie<re&&!q();ie++)E=n?E*xe(l,2):cN(E),D=an(E)}function O(){A=Ne(M-E*c,D)}function R(){C=Ne(I+E*v,D)}function z(){M=c?Ne(A+E*c,D):A}function B(){I=v?Ne(C-E*v,D):C}if(x[0]&&x[1]){A=w[0],C=w[1],E=(C-A)/(h+c+v);var F=r.getExtent(),G=ct(F[1]-F[0]);D=Sf([C,A],G,.5/h),z(),B(),rr(D)&&(E=Ne(E,D))}else{var Y=w[1]-w[0];E=n?xe(bf(Y),1):mo(Y/h,fS),D=an(E),x[0]?(A=w[0],P(function(){if(z(),I=Ne(M+E*h,D),R(),C>=w[1])return!0})):x[1]?(C=w[1],P(function(){if(B(),M=Ne(I-E*h,D),O(),A<=w[0])return!0})):P(function(){M=Ne(sa(w[0]/E)*E,D),I=Ne(mr(w[1]/E)*E,D);var q=mi((I-M)/E);if(q<=h){var re=h-q,ie=void 0,ue=a.incl0||n;if(ue&&w[0]===0)ie=[0,re];else if(ue&&w[1]===0)ie=[re,0];else{var Pe=mr(re/2);ie=re%2===0?[Pe,Pe]:A+C<w[0]+w[1]?[Pe,Pe+1]:[Pe+1,Pe]}if(M=Ne(M-E*ie[0],D),I=Ne(I+E*ie[1],D),O(),R(),A<=w[0]&&C>=w[1])return!0}})}hy(t,x,b,[A,C],S,{interval:E,intervalCount:h,intervalPrecision:D,niceExtent:[M,I]})}var mz=[[3,1],[0,2]],pq=(function(){function r(e,t,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dh,this._initCartesian(e,t,i),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var i=this._axesMap;T(this._axesList,function(o){Zi(o,on);var s=o.scale;At(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function a(o){for(var s=ye(o),l=[],u=s.length-1;u>=0;u--){var f=o[+s[u]];f.__alignTo?l.push(f):qn(f)}T(l,function(p){vq(p,p.__alignTo)?qn(p):r0(p,p.__alignTo.scale)})}a(i.x),a(i.y);var n={};T(i.x,function(o){gz(i,"y",o,n)}),T(i.y,function(o){gz(i,"x",o,n)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,i){var a=Qe(e,t),n=this._rect=He(e.getBoxLayoutParams(),a.refContainer),o=this._axesMap,s=this._coordsList,l=e.get("containLabel");if(pT(o,n),!i){var u=dq(n,s,o,l,t),f=void 0;if(l)cT?(cT(this._axesList,n),pT(o,n)):f=Sz(n.clone(),"axisLabel",null,n,o,u,a);else{var p=mq(e,n,a),c=p.outerBoundsRect,v=p.parsedOuterBoundsContain,h=p.outerBoundsClamp;c&&(f=Sz(c,v,h,n,o,u,a))}wz(n,o,Li.determine,null,f,a),T(this._coordsList,function(d){d.calcAffineTransform()})}},r.prototype.getAxis=function(e,t){var i=this._axesMap[e];if(i!=null)return i[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var i="x"+e+"y"+t;return this._coordsMap[i]}te(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var a=0,n=this._coordsList;a<n.length;a++)if(n[a].getAxis("x").index===e||n[a].getAxis("y").index===t)return n[a]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,i){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.dataToPoint(i):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(i)):null},r.prototype.convertFromPixel=function(e,t,i){var a=this._findConvertTarget(t);return a.cartesian?a.cartesian.pointToData(i):a.axis?a.axis.coordToData(a.axis.toLocalCoord(i)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,i=e.xAxisModel||t&&t.getReferringComponents("xAxis",Ke).models[0],a=e.yAxisModel||t&&t.getReferringComponents("yAxis",Ke).models[0],n=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,le(o,s)<0&&(s=null);else if(i&&a)s=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)l=this.getAxis("x",i.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(n){var u=n.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},r.prototype._initCartesian=function(e,t,i){var a=this,n=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(t.eachComponent("xAxis",u("x"),this),t.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,T(s.x,function(f,p){T(s.y,function(c,v){var h="x"+p+"y"+v,d=new dz(h);d.master=a,d.model=e,a._coordsMap[h]=d,a._coordsList.push(d),d.addAxis(f),d.addAxis(c)})}),_z(s.x),_z(s.y);function u(f){return function(p,c){if(cq(p,e)){var v=p.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var h=Xn(p),d=new Hy(f,wa(p,h,!0),[0,0],h,v);d.onBand=Zn(d.scale,p),d.inverse=p.get("inverse"),p.axis=d,d.model=p,d.grid=n,d.index=c,n._axesList.push(d),s[f][c]=d,l[f]++}}}},r.prototype.getTooltipAxes=function(e){var t=[],i=[];return T(this.getCartesians(),function(a){var n=e!=null&&e!=="auto"?a.getAxis(e):a.getBaseAxis(),o=a.getOtherAxis(n);le(t,n)<0&&t.push(n),le(i,o)<0&&i.push(o)}),{baseAxes:t,otherAxes:i}},r.create=function(e,t){var i=[];return e.eachComponent("grid",function(a,n){var o=new r(a,e,t);o.name="grid_"+n,o.resize(a,t,!0),a.coordinateSystem=o,i.push(o),T(o._axesList,function(s){XN(s,r.dimIdxMap)})}),e.eachSeries(function(a){var n,o;Bn({targetModel:a,coordSysType:Br,coordSysProvider:s});function s(){var l=Ak(a),u=l.xAxisModel,f=l.yAxisModel;n=u.axis,o=f.axis;var p=u.getCoordSysModel(),c=p.coordinateSystem;return c.getCartesian(u.componentIndex,f.componentIndex)}n&&o&&(Ca(n,a,Br),Ca(o,a,Br))},this),i},r.dimensions=dh,r.dimIdxMap=Bv(dh),r})();function cq(r,e){return r.getCoordSysModel()===e}function gz(r,e,t,i){t.getAxesOnZeroOf=function(){return n?[n]:[]};var a=r[e],n,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)yz(s,a[l])&&(n=a[l]);else for(var u in a)if(ae(a,u)&&yz(s,a[u])&&!i[f(a[u])]){n=a[u];break}n&&(i[f(n)]=!0);function f(p){return p.dim+"_"+p.index}}function yz(r,e){if(!e)return!1;var t=e.scale,i=EN(t,0,!1),a=e&&e.type!=="category"&&e.type!=="time"&&i!==cy;return a&&r==="auto"&&MN(e)&&(a=!1),a}function _z(r){for(var e=ye(r),t,i=[],a=e.length-1;a>=0;a--){var n=r[+e[a]];ay(n.scale)&&F1(n.model,n.type,!0)==null&&(n.model.get("alignTicks")&&n.model.get("interval")==null?i.push(n):t=n)}t||(t=i.pop()),t&&T(i,function(o){o.__alignTo=t})}function vq(r,e){return nu(r.scale)||nu(e.scale)||e.scale.getTicks().length<2}function hq(r,e){var t=r.getExtent(),i=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(a){return a+e}:function(a){return i-a+e},r.toLocalCoord=r.dim==="x"?function(a){return a-e}:function(a){return i-a+e}}function pT(r,e){T(r.x,function(t){return xz(t,e.x,e.width)}),T(r.y,function(t){return xz(t,e.y,e.height)})}function xz(r,e,t){var i=[0,t],a=r.inverse?1:0;r.setExtent(i[a],i[1-a]),hq(r,e)}var cT;function bz(r){cT=r}function Sz(r,e,t,i,a,n,o){wz(i,a,Li.estimate,e,!1,o);var s=[0,0,0,0];u(0),u(1),f(i,0,NaN),f(i,1,NaN);var l=ui(s,function(c){return c>0})==null;return ha(i,s,!0,!0,t),pT(a,i),l;function u(c){T(a[we[c]],function(v){if(Cu(v.model)){var h=n.ensureRecord(v.model),d=h.labelInfoList;if(d)for(var m=0;m<d.length;m++){var g=d[m],y=v.scale.normalize(nn(v.scale,Bs(g.label).labelInfo.tick));y=c===1?1-y:y,f(g.rect,c,y),f(g.rect,1-c,NaN)}var _=h.nameLayout;if(_){var y=Ms(h.nameLocation)?.5:NaN;f(_.rect,c,y),f(_.rect,1-c,NaN)}}})}function f(c,v,h){var d=r[we[v]]-c[we[v]],m=c[_t[v]]+c[we[v]]-(r[_t[v]]+r[we[v]]);d=p(d,1-h),m=p(m,h);var g=mz[v][0],y=mz[v][1];s[g]=xe(s[g],d),s[y]=xe(s[y],m)}function p(c,v){return c>0&&!Lt(v)&&v>1e-4&&(c/=v),c}}function dq(r,e,t,i,a){var n=new qw(gq);return T(t,function(o){return T(o,function(s){if(Cu(s.model)){var l=!i;s.axisBuilder=Ek(r,e,s.model,a,n,l)}})}),n}function wz(r,e,t,i,a,n){var o=t===Li.determine;T(e,function(u){return T(u,function(f){Cu(f.model)&&(Dk(f.axisBuilder,r,f.model),f.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:a}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[we[1-u]]=r[_t[u]]<=n.refContainer[_t[u]]*.5?0:1-u===1?2:1}T(e,function(u,f){return T(u,function(p){Cu(p.model)&&((i==="all"||o)&&p.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&p.axisBuilder.build({axisLine:!0}))})})}function mq(r,e,t){var i,a=r.get("outerBoundsMode",!0);a==="same"?i=e.clone():(a==null||a==="auto")&&(i=He(r.get("outerBounds",!0)||$w,t.refContainer));var n=r.get("outerBoundsContain",!0),o;n==null||n==="auto"||le(["all","axisLabel"],n)<0?o="all":o=n;var s=[xf(Z(r.get("outerBoundsClampWidth",!0),hh[0]),e.width),xf(Z(r.get("outerBoundsClampHeight",!0),hh[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var gq=function(r,e,t,i,a,n){var o=t.axis.dim==="x"?"y":"x";jw(r,e,t,i,a,n),Ms(r.nameLocation)||T(e.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Jw(s.labelInfoList,s.dirVec,i,a)})},Tz=pq;function Cz(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return yq(t,r,e),t.seriesInvolved&&xq(t,r),t}function yq(r,e,t){var i=e.getComponent("tooltip"),a=e.getComponent("axisPointer"),n=a.get("link",!0)||[],o=[];T(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ip(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,p=f.getModel("tooltip",i);if(T(s.getAxes(),me(d,!1,null)),s.getTooltipAxes&&i&&p.get("show")){var c=p.get("trigger")==="axis",v=p.get(["axisPointer","type"])==="cross",h=s.getTooltipAxes(p.get(["axisPointer","axis"]));(c||v)&&T(h.baseAxes,me(d,v?"cross":!0,c)),v&&T(h.otherAxes,me(d,"cross",!1))}function d(m,g,y){var _=y.model.getModel("axisPointer",a),x=_.get("show");if(!(!x||x==="auto"&&!m&&!hT(_))){g==null&&(g=_.get("triggerTooltip")),_=m?_q(y,p,a,e,m,g):_;var S=_.get("snap"),b=_.get("triggerEmphasis"),w=Ip(y.model),A=g||S||y.type==="category",C=r.axesInfo[w]={key:w,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:b,involveSeries:A,snap:S,useHandle:hT(_),seriesModels:[],linkGroup:null};u[w]=C,r.seriesInvolved=r.seriesInvolved||A;var E=Sq(n,y);if(E!=null){var D=o[E]||(o[E]={axesInfo:{}});D.axesInfo[w]=C,D.mapper=n[E].mapper,C.linkGroup=D}}}})}function _q(r,e,t,i,a,n){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};T(s,function(c){l[c]=ee(o.get(c))}),l.snap=r.type!=="category"&&!!n,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!n){var p=l.lineStyle=o.get("crossStyle");p&&$(u,p.textStyle)}}return r.model.getModel("axisPointer",new Ee(l,t,i))}function xq(r,e){e.eachSeries(function(t){var i=t.coordinateSystem,a=t.get(["tooltip","trigger"],!0),n=t.get(["tooltip","show"],!0);!i||!i.model||a==="none"||a===!1||a==="item"||n===!1||t.get(["axisPointer","show"],!0)===!1||T(r.coordSysAxesInfo[Ip(i.model)],function(o){var s=o.axis;i.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function Sq(r,e){for(var t=e.model,i=e.dim,a=0;a<r.length;a++){var n=r[a]||{};if(vT(n[i+"AxisId"],t.id)||vT(n[i+"AxisIndex"],t.componentIndex)||vT(n[i+"AxisName"],t.name))return a}}function vT(r,e){return r==="all"||V(r)&&le(r,e)>=0||r===e}function Az(r){var e=i0(r);if(e){var t=e.axisPointerModel,i=e.axis.scale,a=t.option,n=t.get("status"),o=t.get("value");o!=null&&(o=i.parse(o));var s=hT(t);n==null&&(a.status=s?"show":"hide");var l=i.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=e.axis.scale.isBlank()?"hide":"show")}}function i0(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Ip(r)]}function Ez(r){var e=i0(r);return e&&e.axisPointerModel}function hT(r){return!!r.get(["handle","show"])}function Ip(r){return r.type+"||"+r.id}var Dz={},bq=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a,n){this.axisPointerClass&&Az(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,a,!0)},e.prototype.updateAxisPointer=function(t,i,a,n){this._doUpdateAxisPointerClass(t,a,!1)},e.prototype.remove=function(t,i){var a=this._axisPointer;a&&a.remove(i)},e.prototype.dispose=function(t,i){this._disposeAxisPointer(i),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,a){var n=e.getAxisPointerClass(this.axisPointerClass);if(n){var o=Ez(t);o?(this._axisPointer||(this._axisPointer=new n)).render(t,o,i,a):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,i){Dz[t]=i},e.getAxisPointerClass=function(t){return t&&Dz[t]},e.type="axis",e})(ze),Ri=bq;var mT=ne();function a0(r,e,t,i){var a=t.axis;if(!a.scale.isBlank()){var n=t.getModel("splitArea"),o=n.getModel("areaStyle"),s=o.get("color"),l=i.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:n,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,p=mT(r).splitAreaColors,c=W(),v=0;if(p)for(var h=0;h<u.length;h++){var d=p.get(u[h].tickValue);if(d!=null){v=(d+(f-1)*h)%f;break}}var m=a.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=V(s)?s:[s];for(var h=1;h<u.length;h++){var y=a.toGlobalCoord(u[h].coord),_=void 0,x=void 0,S=void 0,b=void 0;a.isHorizontal()?(_=m,x=l.y,S=y-_,b=l.height,m=_+S):(_=l.x,x=m,S=l.width,b=y-x,m=x+b);var w=u[h-1].tickValue;w!=null&&c.set(w,v),e.add(new de({anid:w!=null?"area_"+w:null,shape:{x:_,y:x,width:S,height:b},style:$({fill:s[v]},g),autoBatch:!0,silent:!0})),v=(v+1)%f}mT(r).splitAreaColors=c}}}function n0(r){mT(r).splitAreaColors=null}var wq=["splitArea","splitLine","minorSplitLine","breakArea"],Mz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="CartesianAxisPointer",t}return e.prototype.render=function(t,i,a,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Q,this.group.add(this._axisGroup),!!Cu(t)){this._axisGroup.add(t.axis.axisBuilder.group),T(wq,function(l){t.get([l,"show"])&&Tq[l](this,this._axisGroup,t,t.getCoordSysModel(),a)},this);var s=n&&n.type==="changeAxisOrder"&&n.isInitSort;s||Eo(o,this._axisGroup,t),r.prototype.render.call(this,t,i,a,n)}},e.prototype.remove=function(){n0(this)},e.type="cartesianAxis",e})(Ri),Tq={splitLine:function(r,e,t,i,a){var n=t.axis;if(!n.scale.isBlank()){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=V(l)?l:[l];for(var p=i.coordinateSystem.getRect(),c=n.isHorizontal(),v=0,h=n.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],m=[],g=s.getLineStyle(),y=0;y<h.length;y++){var _=n.toGlobalCoord(h[y].coord);if(!(y===0&&!u||y===h.length-1&&!f)){var x=h[y].tickValue;c?(d[0]=_,d[1]=p.y,m[0]=_,m[1]=p.y+p.height):(d[0]=p.x,d[1]=_,m[0]=p.x+p.width,m[1]=_);var S=v++%l.length,b=new ut({anid:x!=null?"line_"+x:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},style:$({stroke:l[S]},g),silent:!0});Ao(b.shape,g.lineWidth),e.add(b)}}}},minorSplitLine:function(r,e,t,i,a){var n=t.axis,o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=n.isHorizontal(),f=n.getMinorTicksCoords();if(f.length)for(var p=[],c=[],v=s.getLineStyle(),h=0;h<f.length;h++)for(var d=0;d<f[h].length;d++){var m=n.toGlobalCoord(f[h][d].coord);u?(p[0]=m,p[1]=l.y,c[0]=m,c[1]=l.y+l.height):(p[0]=l.x,p[1]=m,c[0]=l.x+l.width,c[1]=m);var g=new ut({anid:"minor_line_"+f[h][d].tickValue,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:c[0],y2:c[1]},style:v,silent:!0});Ao(g.shape,v.lineWidth),e.add(g)}},splitArea:function(r,e,t,i,a){a0(r,e,t,i)},breakArea:function(r,e,t,i,a){var n=zo(),o=t.axis.scale;n&&o.type!=="ordinal"&&n.rectCoordBuildBreakAxis(e,r,t,i.coordinateSystem.getRect(),a)}},gT=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e})(Mz);var Iz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=gT.type,t}return e.type="yAxis",e})(Mz);var Cq=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,i){this.group.removeAll(),t.get("show")&&this.group.add(new de({shape:t.coordinateSystem.getRect(),style:$({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e})(ze),Lz={offset:0};function o0(r){r.registerComponentView(Cq),r.registerComponentModel(Lk),r.registerCoordinateSystem("cartesian2d",Tz),hn(r,"x",e0,Lz),hn(r,"y",e0,Lz),r.registerComponentView(gT),r.registerComponentView(Iz),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var Hs="single",Pz="singleAxis",s0="singleAxis",Rz=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getCoordSysModel=function(){return this},e.type=s0,e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}},jitter:0,jitterOverlap:!0,jitterMargin:2},e})(Se);rt(Rz,Ta.prototype);var l0=Rz;function Nz(r,e){var t=r.coordinateSystem,i=t&&t.type,a=t&&t.getBaseAxis&&t.getBaseAxis(),n=a&&a.scale&&a.scale.type,o=i===Br&&n==="ordinal"||i===Hs,s=e.model.get("jitter")>0;return o&&s}var Aq=ne();function yT(r,e,t,i){if(r instanceof Hy){var a=r.scale.type;if(a!=="ordinal")return t}var n=r.model,o=n.get("jitter");if(!(o>0))return t;var s=n.get("jitterOverlap"),l=n.get("jitterMargin")||0,u=At(r.scale)?xt(r).w:null;return s?kz(t,o,u,i):Eq(r,e,t,i,o,l)}function kz(r,e,t,i){if(t===null)return r+(Math.random()-.5)*e;var a=t-i*2,n=Math.min(Math.max(0,e),a);return r+(Math.random()-.5)*n}function Eq(r,e,t,i,a,n){var o=Aq(r);o.items||(o.items=[]);var s=o.items,l=Oz(s,e,t,i,a,n,1),u=Oz(s,e,t,i,a,n,-1),f=Math.abs(l-t)<Math.abs(u-t)?l:u,p=At(r.scale)?xt(r).w:null,c=Math.abs(f-t);return c>a/2||p&&c>p/2-i?kz(t,a,p,i):(s.push({fixedCoord:e,floatCoord:f,r:i}),f)}function Oz(r,e,t,i,a,n,o){for(var s=t,l=0;l<r.length;l++){var u=r[l],f=e-u.fixedCoord,p=s-u.floatCoord,c=f*f+p*p,v=i+u.r+n;if(c<v*v){var h=u.floatCoord+Math.sqrt(v*v-f*f)*o;if(Math.abs(h-t)>a/2)return Number.MAX_VALUE;if(o===1&&h>s||o===-1&&h<s){s=h,l=-1;continue}}}return s}function _T(){return{seriesType:"scatter",plan:qr(),reset:function(r){var e=r.coordinateSystem;if(!(!e||e.type!==Br&&e.type!==Hs)){var t=e.getBaseAxis&&e.getBaseAxis(),i=t&&Nz(r,t);if(i){var a=t.dim,n=t.orient,o=n==="horizontal"&&t.type!=="category"||n==="vertical"&&t.type==="category",s=a==="y"||a==="single"&&o,l=a==="x"||a==="single"&&!o;if(!(!s&&!l))return{progress:function(u,f){for(var p=f.getLayout("points"),c=!!p,v=u.start;v<u.end;v++){var h=c?(v-u.start)*2:-1,d=c?[p[h],p[h+1]]:f.getItemLayout(v);if(d){var m=f.getItemVisual(v,"symbolSize"),g=m instanceof Array?(m[1]+m[0])/2:m;if(s){var y=yT(t,d[0],d[1],g/2);c?p[h+1]=y:d[1]=y}else if(l){var y=yT(t,d[1],d[0],g/2);c?p[h]=y:d[0]=y}}}}}}}}}}function xT(r){Ce(o0),r.registerSeriesModel(sz),r.registerChartView(fz),r.registerLayout(pn("scatter"))}function ST(r){r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,_T())}function bT(r){var e=r.polar;if(e){V(e)||(e=[e]);var t=[];T(e,function(i,a){i.indicator?(i.type&&!i.shape&&(i.shape=i.type),r.radar=r.radar||[],V(r.radar)||(r.radar=[r.radar]),r.radar.push(i)):t.push(i)}),r.polar=t}T(r.series,function(i){i&&i.type==="radar"&&i.polarIndex&&(i.radarIndex=i.polarIndex)})}var Pu="radar",Dq=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ea(X(this.getData,this),X(this.getRawData,this))},e.prototype.getInitialData=function(t,i){return qi(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=Cg(this,t);return ft("section",{header:u,sortBlocks:!0,blocks:U(s,function(p){var c=n.get(n.mapDimension(p.dim),t);return ft("nameValue",{markerType:"subItem",markerColor:f,name:p.name,value:c,sortParam:c})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var i=this.getData(),a=this.coordinateSystem,n=i.getValues(U(a.dimensions,function(u){return i.mapDimension(u)}),t),o=0,s=n.length;o<s;o++)if(!isNaN(n[o])){var l=a.getIndicatorAxes();return a.coordToPoint(l[o].dataToCoord(n[o]),o)}}},e.type="series."+Pu,e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e})(ke),zz=Dq;var Mq=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Pu,t}return e.prototype.render=function(t,i,a){var n=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(c,v){var h=c.getItemVisual(v,"symbol")||"circle";if(h!=="none"){var d=tn(c.getItemVisual(v,"symbolSize")),m=je(h,-1,-1,2,2),g=c.getItemVisual(v,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:g*Math.PI/180||0}),m}}function f(c,v,h,d,m,g){h.removeAll();for(var y=0;y<v.length-1;y++){var _=u(d,m);_&&(_.__dimIdx=y,c[y]?(_.setPosition(c[y]),Te[g?"initProps":"updateProps"](_,{x:v[y][0],y:v[y][1]},t,m)):_.setPosition(v[y]),h.add(_))}}function p(c){return U(c,function(v){return[n.cx,n.cy]})}s.diff(l).add(function(c){var v=s.getItemLayout(c);if(v){var h=new yt,d=new vt,m={shape:{points:v}};h.shape.points=p(v),d.shape.points=p(v),Ge(h,m,t,c),Ge(d,m,t,c);var g=new Q,y=new Q;g.add(d),g.add(h),g.add(y),f(d.shape.points,v,y,s,c,!0),s.setItemGraphicEl(c,g)}}).update(function(c,v){var h=l.getItemGraphicEl(v),d=h.childAt(0),m=h.childAt(1),g=h.childAt(2),y={shape:{points:s.getItemLayout(c)}};y.shape.points&&(f(d.shape.points,y.shape.points,g,s,c,!1),Bt(m),Bt(d),Ae(d,y,t),Ae(m,y,t),s.setItemGraphicEl(c,h))}).remove(function(c){o.remove(l.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,v){var h=s.getItemModel(v),d=c.childAt(0),m=c.childAt(1),g=c.childAt(2),y=s.getItemVisual(v,"style"),_=y.fill;o.add(c),d.useStyle($(h.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),st(d,h,"lineStyle"),st(m,h,"areaStyle");var x=h.getModel("areaStyle"),S=x.isEmpty()&&x.parentModel.isEmpty();m.ignore=S,T(["emphasis","select","blur"],function(w){var A=h.getModel([w,"areaStyle"]),C=A.isEmpty()&&A.parentModel.isEmpty();m.ensureState(w).ignore=C&&S;var E=h.getModel([w,"lineStyle"]).getLineStyle();d.ensureState(w).style=E;var D=A.getAreaStyle();m.ensureState(w).style=D;var I=h.getModel([w,"itemStyle"]).getItemStyle();g.eachChild(function(M){M.ensureState(w).style=ee(I)})}),m.useStyle($(h.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:y.decal}));var b=h.getModel("emphasis");g.eachChild(function(w){if(w instanceof lt){var A=w.style;w.useStyle(k({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},y))}else w.useStyle(y),w.setColor(_),w.style.strokeNoScale=!0;var C=s.getStore().get(s.getDimensionIndex(w.__dimIdx),v);(C==null||isNaN(C))&&(C=""),it(w,tt(h),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:w.__dimIdx,defaultText:C,inheritColor:_,defaultOpacity:y.opacity})}),Be(c,b.get("focus"),b.get("blurScope"),b.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type=Pu,e})(Le),Vz=Mq;var mh=t0.value,Lp="radar",wT=Lp,Uz=Lp,TT=5;function u0(r,e){return $({show:e},r)}var Iq=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this.get("boundaryGap"),i=this.get("splitNumber"),a=this.get("clockwise"),n=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),f=this.get(["axisName","show"]),p=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),v=this.get("triggerEvent"),h=U(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var m=u;d.color!=null&&(m=$({color:d.color},u));var g=ve(ee(d),{boundaryGap:t,splitNumber:i,clockwise:a,scale:n,axisLine:o,axisTick:s,axisLabel:l,name:d.text,showName:f,nameLocation:"end",nameGap:c,nameTextStyle:m,triggerEvent:v},!1);if(H(p)){var y=g.name;g.name=p.replace("{value}",y??"")}else J(p)&&(g.name=p(g.name,g));var _=new Ee(g,null,this.ecModel);return rt(_,Ta.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=Ei("ec_radar"),_},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type=wT,e.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:N.color.axisLabel},boundaryGap:[0,0],splitNumber:TT,axisNameGap:15,scale:!1,shape:"polygon",axisLine:ve({lineStyle:{color:N.color.neutral20}},mh.axisLine),axisLabel:u0(mh.axisLabel,!1),axisTick:u0(mh.axisTick,!1),splitLine:u0(mh.splitLine,!0),splitArea:u0(mh.splitArea,!0),indicator:[]},e})(Se),Bz=Iq;var Lq=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=this.group;n.removeAll(),this._buildAxes(t,a),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t,i){var a=t.coordinateSystem,n=a.getIndicatorAxes(),o=U(n,function(s){var l=s.model.get("showName")?s.name:"",u=new Ar(s.model,i,{axisName:l,position:[a.cx,a.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});T(o,function(s){s.build(),this.group.add(s.group)},this)},e.prototype._buildSplitLineAndArea=function(t){var i=t.coordinateSystem,a=i.getIndicatorAxes();if(!a.length)return;var n=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),p=s.get("show"),c=l.get("color"),v=u.get("color"),h=V(c)?c:[c],d=V(v)?v:[v],m=[],g=[];function y(O,R,z){var B=z%R.length;return O[B]=O[B]||[],B}if(n==="circle")for(var _=a[0].getTicksCoords(),x=i.cx,S=i.cy,b=0;b<_.length;b++){if(f){var w=y(m,h,b);m[w].push(new Sr({shape:{cx:x,cy:S,r:_[b].coord}}))}if(p&&b<_.length-1){var w=y(g,d,b);g[w].push(new bo({shape:{cx:x,cy:S,r0:_[b].coord,r:_[b+1].coord}}))}}else for(var A,C=U(a,function(O,R){var z=O.getTicksCoords();return A=A==null?z.length-1:Math.min(z.length-1,A),U(z,function(B){return i.coordToPoint(B.coord,R)})}),E=[],b=0;b<=A;b++){for(var D=[],I=0;I<a.length;I++)D.push(C[I][b]);if(D[0]&&D.push(D[0].slice()),f){var w=y(m,h,b);m[w].push(new vt({shape:{points:D}}))}if(p&&E){var w=y(g,d,b-1);g[w].push(new yt({shape:{points:D.concat(E)}}))}E=D.slice().reverse()}var M=l.getLineStyle(),P=u.getAreaStyle();T(g,function(O,R){this.group.add(vr(O,{style:$({stroke:"none",fill:d[R%d.length]},P),silent:!0}))},this),T(m,function(O,R){this.group.add(vr(O,{style:$({fill:"none",stroke:h[R%h.length]},M),silent:!0}))},this)},e.type="radar",e})(ze),Fz=Lq;var Pq=(function(r){L(e,r);function e(t,i,a){var n=r.call(this,t,i,a)||this;return n.type="value",n.angle=0,n.name="",n}return e})(ur),Gz=Pq;var Rq=(function(){function r(e,t,i){this.type=Lp,this.dimensions=[],this._model=e,this._indicatorAxes=U(e.getIndicatorModels(),function(a,n){var o="indicator_"+n,s=new Gz(o,new Wn);return s.name=a.get("name"),s.model=a,a.axis=s,this.dimensions.push(o),s},this),this.resize(e,i)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var i=this._indicatorAxes[t];return this.coordToPoint(i.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var i=this._indicatorAxes[t],a=i.angle,n=this.cx+e*Math.cos(a),o=this.cy-e*Math.sin(a);return[n,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,a=Math.sqrt(t*t+i*i);t/=a,i/=a;for(var n=Math.atan2(-i,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],p=Math.abs(n-f.angle);p<o&&(s=f,l=u,o=p)}return[l,+(s&&s.coordToData(a))]},r.prototype.resize=function(e,t){var i=Qe(e,t).refContainer,a=e.get("center"),n=e.get("clockwise")||!1,o=Math.min(i.width,i.height)/2;this.cx=j(a[0],i.width)+i.x,this.cy=j(a[1],i.height)+i.y,this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(H(s)||_e(s))&&(s=[0,s]),this.r0=j(s[0],o),this.r=j(s[1],o);var l=n?-1:1;T(this._indicatorAxes,function(u,f){u.setExtent(this.r0,this.r);var p=this.startAngle+l*f*Math.PI*2/this._indicatorAxes.length;p=Math.atan2(Math.sin(p),Math.cos(p)),u.angle=p},this)},r.prototype.update=function(e,t){var i=this._indicatorAxes,a=this._model,n=bu(a.get("splitNumber"),TT),o=new Wn;o.setExtent(0,n),o.setConfig({interval:1}),T(i,function(s){Zi(s,on),r0(s,o)})},r.prototype.convertToPixel=function(e,t,i){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,i){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var i=[];return e.eachComponent(wT,function(a){var n=new r(a,e,t);i.push(n),a.coordinateSystem=n}),e.eachSeriesByType(Uz,function(a){if(a.get("coordinateSystem")===Lp){var n=a.coordinateSystem=i[a.get("radarIndex")||0];n&&T(n.getIndicatorAxes(),function(o){Ca(o,a,Lp)})}}),i},r.dimensions=[],r})(),Hz=Rq;function Yz(r){r.registerCoordinateSystem("radar",Hz),r.registerComponentModel(Bz),r.registerComponentView(Fz),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(i){t.setItemVisual(i,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}var Zz=qe(Pu,Oq);function Oq(r){r.eachSeriesByType(Pu,function(e){var t=e.getData(),i=[],a=e.coordinateSystem;if(a){var n=a.getIndicatorAxes();T(n,function(o,s){t.each(t.mapDimension(n[s].dim),function(l,u){i[u]=i[u]||[];var f=a.dataToPoint(l,s);i[u][s]=Wz(f)?f:Xz(a)})}),t.each(function(o){var s=ui(i[o],function(l){return Wz(l)})||Xz(a);i[o].push(s.slice()),t.setItemLayout(o,i[o])})}})}function Wz(r){return!isNaN(r[0])&&!isNaN(r[1])}function Xz(r){return[r.cx,r.cy]}function CT(r){Ce(Yz),r.registerChartView(Vz),r.registerSeriesModel(zz),r.registerLayout(Zz),r.registerProcessor(cn("radar")),r.registerPreprocessor(bT)}var AT=ne();function Kz(r,e,t){AT(r)[e]=t}function qz(r,e,t){var i=AT(r),a=i[e];a===t&&(i[e]=null)}function ET(r,e){return!!AT(r)[e]}Jr({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},et);var Nq={axisPointer:1,tooltip:1,brush:1};function f0(r,e,t){var i=e.getComponentByElement(r.topTarget);if(!i||i===t||Nq.hasOwnProperty(i.mainType))return!1;var a=i.coordinateSystem;if(!a||a.model===t)return!1;var n=da(i),o=da(t);return!((n.zlevel-o.zlevel||n.z-o.z)<=0)}var kq=(function(r){L(e,r);function e(t){var i=r.call(this)||this;i._zr=t;var a=X(i._mousedownHandler,i),n=X(i._mousemoveHandler,i),o=X(i._mouseupHandler,i),s=X(i._mousewheelHandler,i),l=X(i._pinchHandler,i);return i.enable=function(u,f){var p=f.zInfo,c=da(p.component),v=c.z,h=c.zlevel,d={component:p.component,z:v,zlevel:h,z2:Z(p.z2,-1/0)},m=k({},f.triggerInfo);this._opt=$(k({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:d,triggerInfo:m,cursorGrab:"grab",cursorGrabbing:"grabbing"}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this.disable(),this._enabled=!0,(u===!0||u==="move"||u==="pan")&&(yh(t,"mousedown",a,d),yh(t,"mousemove",n,d),yh(t,"mouseup",o,d)),(u===!0||u==="scale"||u==="zoom")&&(yh(t,"mousewheel",s,d),yh(t,"pinch",l,d)))},i.disable=function(){this._enabled&&(this._enabled=!1,_h(t,"mousedown",a),_h(t,"mousemove",n),_h(t,"mouseup",o),_h(t,"mousewheel",s),_h(t,"pinch",l))},i}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,i,a){var n=this._opt,o=n.zInfoParsed;if(f0(t,n.api,o.component))return!1;var s=n.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(t,i,a)),u&&s.isInClip&&!s.isInClip(t,i,a)&&(u=!1),u},e.prototype._decideCursorStyle=function(t,i,a,n){var o=t.target;if(!o&&this._checkPointer(t,i,a))return this._opt.cursorGrab;if(n)return o&&o.cursor||"default"},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(yx(t)||gh(t))){for(var i=t.target;i;){if(i.draggable)return;i=i.__hostTarget||i.parent}var a=t.offsetX,n=t.offsetY;this._checkPointer(t,a,n)&&(this._x=a,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var i=this._zr;if(!(t.gestureEvent==="pinch"||ET(i,"globalPan")||gh(t))){var a=t.offsetX,n=t.offsetY;if(!this._dragging||!p0("moveOnMouseMove",t,this._opt)){var o=this._decideCursorStyle(t,a,n,!1);o&&i.setCursorStyle(o);return}i.setCursorStyle(this._opt.cursorGrabbing);var s=this._x,l=this._y,u=a-s,f=n-l;this._x=a,this._y=n,this._opt.preventDefaultMouseMove&&vi(t.event),t.__ecRoamConsumed=!0,Jz(this,"pan","moveOnMouseMove",t,{dx:u,dy:f,oldX:s,oldY:l,newX:a,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!gh(t)){var i=this._zr;if(!yx(t)){this._dragging=!1;var a=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);a&&i.setCursorStyle(a)}}},e.prototype._mousewheelHandler=function(t){if(!gh(t)){var i=p0("zoomOnMouseWheel",t,this._opt),a=p0("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,o=Math.abs(n),s=t.offsetX,l=t.offsetY;if(!(n===0||!i&&!a)){if(i){var u=o>3?1.4:o>1?1.2:1.1,f=n>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(a){var p=Math.abs(n),c=(n>0?1:-1)*(p>3?.4:p>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:c,originX:s,originY:l,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(ET(this._zr,"globalPan")||gh(t))){var i=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:i,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,i,a,n,o){t._checkPointer(n,o.originX,o.originY)&&(vi(n.event),n.__ecRoamConsumed=!0,Jz(t,i,a,n,o))},e})(Jt);function gh(r){return r.__ecRoamConsumed}var zq=ne();function c0(r){var e=zq(r);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function yh(r,e,t,i){for(var a=c0(r),n=a.roam,o=n[e]=n[e]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-i.zlevel||l.z-i.z||l.z2-i.z2)<=0)break}o.splice(s,0,{listener:t,zInfoParsed:i}),Vq(r,e)}function _h(r,e,t){for(var i=c0(r),a=i.roam[e]||[],n=0;n<a.length;n++)if(a[n].listener===t){a.splice(n,1),a.length||Uq(r,e);return}}function Vq(r,e){var t=c0(r);t.uniform[e]||r.on(e,t.uniform[e]=function(i){var a=t.roam[e];if(a)for(var n=0;n<a.length;n++)a[n].listener(i)})}function Uq(r,e){var t=c0(r),i=t.uniform;i[e]&&(r.off(e,i[e]),i[e]=null)}function Jz(r,e,t,i,a){a.isAvailableBehavior=X(p0,null,t,i),r.trigger(e,a)}function p0(r,e,t){var i=t[r];return!r||i&&(!H(i)||e.event[i+"Key"])}var Oi=kq;function v0(r){if(H(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var DT,h0={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"},Qz=ye(h0),d0={"alignment-baseline":"textBaseline","stop-color":"stopColor"},$z=ye(d0),Bq=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var i=v0(e);this._defsUsePending=[];var a=new Q;this._root=a;var n=[],o=i.getAttribute("viewBox")||"",s=parseFloat(i.getAttribute("width")||t.width),l=parseFloat(i.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),ji(i,a,null,!0,!1);for(var u=i.firstChild;u;)this._parseNode(u,a,n,null,!1,!1),u=u.nextSibling;Hq(this._defs,this._defsUsePending),this._defsUsePending=[];var f,p;if(o){var c=m0(o);c.length>=4&&(f={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(f&&s!=null&&l!=null&&(p=IT(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var v=a;a=new Q,a.add(v),v.scaleX=v.scaleY=p.scale,v.x=p.x,v.y=p.y}return!t.ignoreRootClip&&s!=null&&l!=null&&a.setClipPath(new de({shape:{x:0,y:0,width:s,height:l}})),{root:a,width:s,height:l,viewBoxRect:f,viewBoxTransform:p,named:n}},r.prototype._parseNode=function(e,t,i,a,n,o){var s=e.nodeName.toLowerCase(),l,u=a;if(s==="defs"&&(n=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!n){var f=DT[s];if(f&&ae(DT,s)){l=f.call(this,e,t);var p=e.getAttribute("name");if(p){var c={name:p,namedFrom:null,svgNodeTagLower:s,el:l};i.push(c),s==="g"&&(u=c)}else a&&i.push({name:a.name,namedFrom:a,svgNodeTagLower:s,el:l});t.add(l)}}var v=eV[s];if(v&&ae(eV,s)){var h=v.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=h)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,i,u,n,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},r.prototype._parseText=function(e,t){var i=new yo({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Da(t,i),ji(e,i,this._defsUsePending,!1,!1),Fq(i,t);var a=i.style,n=a.fontSize;n&&n<9&&(a.fontSize=9,i.scaleX*=n/9,i.scaleY*=n/9);var o=(a.fontSize||a.fontFamily)&&[a.fontStyle,a.fontWeight,(a.fontSize||12)+"px",a.fontFamily||"sans-serif"].join(" ");a.font=o;var s=i.getBoundingRect();return this._textX+=s.width,t.add(i),i},r.internalField=(function(){DT={g:function(e,t){var i=new Q;return Da(t,i),ji(e,i,this._defsUsePending,!1,!1),i},rect:function(e,t){var i=new de;return Da(t,i),ji(e,i,this._defsUsePending,!1,!1),i.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),i.silent=!0,i},circle:function(e,t){var i=new Sr;return Da(t,i),ji(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),i.silent=!0,i},line:function(e,t){var i=new ut;return Da(t,i),ji(e,i,this._defsUsePending,!1,!1),i.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),i.silent=!0,i},ellipse:function(e,t){var i=new ql;return Da(t,i),ji(e,i,this._defsUsePending,!1,!1),i.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),i.silent=!0,i},polygon:function(e,t){var i=e.getAttribute("points"),a;i&&(a=iV(i));var n=new yt({shape:{points:a||[]},silent:!0});return Da(t,n),ji(e,n,this._defsUsePending,!1,!1),n},polyline:function(e,t){var i=e.getAttribute("points"),a;i&&(a=iV(i));var n=new vt({shape:{points:a||[]},silent:!0});return Da(t,n),ji(e,n,this._defsUsePending,!1,!1),n},image:function(e,t){var i=new lt;return Da(t,i),ji(e,i,this._defsUsePending,!1,!1),i.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),i.silent=!0,i},text:function(e,t){var i=e.getAttribute("x")||"0",a=e.getAttribute("y")||"0",n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(i)+parseFloat(n),this._textY=parseFloat(a)+parseFloat(o);var s=new Q;return Da(t,s),ji(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var i=e.getAttribute("x"),a=e.getAttribute("y");i!=null&&(this._textX=parseFloat(i)),a!=null&&(this._textY=parseFloat(a));var n=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Q;return Da(t,s),ji(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(o),s},path:function(e,t){var i=e.getAttribute("d")||"",a=_m(i);return Da(t,a),ji(e,a,this._defsUsePending,!1,!1),a.silent=!0,a}}})(),r})(),eV={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),i=parseInt(r.getAttribute("x2")||"10",10),a=parseInt(r.getAttribute("y2")||"0",10),n=new Ci(e,t,i,a);return tV(r,n),rV(r,n),n},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),i=parseInt(r.getAttribute("r")||"0",10),a=new zf(e,t,i);return tV(r,a),rV(r,a),a}};function tV(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function rV(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var i=t.getAttribute("offset"),a=void 0;i&&i.indexOf("%")>0?a=parseInt(i,10)/100:i?a=parseFloat(i):a=0;var n={};oV(t,n,n);var o=n.stopColor||t.getAttribute("stop-color")||"#000000",s=n.stopOpacity||t.getAttribute("stop-opacity");if(s){var l=Wt(o),u=l&&l[3];u&&(l[3]*=wn(s),o=Ir(l,"rgba"))}e.colorStops.push({offset:a,color:o})}t=t.nextSibling}}function Da(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),$(e.__inheritedStyle,r.__inheritedStyle))}function iV(r){for(var e=m0(r),t=[],i=0;i<e.length;i+=2){var a=parseFloat(e[i]),n=parseFloat(e[i+1]);t.push([a,n])}return t}function ji(r,e,t,i,a){var n=e,o=n.__inheritedStyle=n.__inheritedStyle||{},s={};r.nodeType===1&&(Xq(r,e),oV(r,o,s),i||Zq(r,o,s)),n.style=n.style||{},o.fill!=null&&(n.style.fill=aV(n,"fill",o.fill,t)),o.stroke!=null&&(n.style.stroke=aV(n,"stroke",o.stroke,t)),T(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(n.style[l]=parseFloat(o[l]))}),T(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(n.style[l]=o[l])}),a&&(n.__selfStyle=s),o.lineDash&&(n.style.lineDash=U(m0(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(n.invisible=!0),o.display==="none"&&(n.ignore=!0)}function Fq(r,e){var t=e.__selfStyle;if(t){var i=t.textBaseline,a=i;!i||i==="auto"||i==="baseline"?a="alphabetic":i==="before-edge"||i==="text-before-edge"?a="top":i==="after-edge"||i==="text-after-edge"?a="bottom":(i==="central"||i==="mathematical")&&(a="middle"),r.style.textBaseline=a}var n=e.__inheritedStyle;if(n){var o=n.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var Gq=/^url\(\s*#(.*?)\)/;function aV(r,e,t,i){var a=t&&t.match(Gq);if(a){var n=Gt(a[1]);i.push([r,e,n]);return}return t==="none"&&(t=null),t}function Hq(r,e){for(var t=0;t<e.length;t++){var i=e[t];i[0].style[i[1]]=r[i[2]]}}var Yq=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function m0(r){return r.match(Yq)||[]}var Wq=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,MT=Math.PI/180;function Xq(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var i=[],a=null;t.replace(Wq,function(p,c,v){return i.push(c,v),""});for(var n=i.length-1;n>0;n-=2){var o=i[n],s=i[n-1],l=m0(o);switch(a=a||Je(),s){case"translate":fr(a,a,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":dl(a,a,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":dr(a,a,-parseFloat(l[0])*MT,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*MT);Qt(a,[1,0,u,1,0,0],a);break;case"skewY":var f=Math.tan(parseFloat(l[0])*MT);Qt(a,[1,f,0,1,0,0],a);break;case"matrix":a[0]=parseFloat(l[0]),a[1]=parseFloat(l[1]),a[2]=parseFloat(l[2]),a[3]=parseFloat(l[3]),a[4]=parseFloat(l[4]),a[5]=parseFloat(l[5]);break}}e.setLocalTransform(a)}}var nV=/([^\s:;]+)\s*:\s*([^:;]+)/g;function oV(r,e,t){var i=r.getAttribute("style");if(i){nV.lastIndex=0;for(var a;(a=nV.exec(i))!=null;){var n=a[1],o=ae(h0,n)?h0[n]:null;o&&(e[o]=a[2]);var s=ae(d0,n)?d0[n]:null;s&&(t[s]=a[2])}}}function Zq(r,e,t){for(var i=0;i<Qz.length;i++){var a=Qz[i],n=r.getAttribute(a);n!=null&&(e[h0[a]]=n)}for(var i=0;i<$z.length;i++){var a=$z[i],n=r.getAttribute(a);n!=null&&(t[d0[a]]=n)}}function IT(r,e){var t=e.width/r.width,i=e.height/r.height,a=Math.min(t,i);return{scale:a,x:-(r.x+r.width/2)*a+(e.x+e.width/2),y:-(r.y+r.height/2)*a+(e.y+e.height/2)}}function sV(r,e){var t=new Bq;return t.parse(r,e)}var Kq=W(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),lV=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=W(),this._freedGraphics=[],this._mapName=e,this._parsedXML=v0(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=jq(e.named),i=t.regions,a=t.regionsMap;this._regions=i,this._regionsMap=a}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,i;try{t=e&&sV(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},i=t.root,at(i!=null)}catch(m){throw new Error(`Invalid svg format
18
+ `+m.message)}var a=new Q;a.add(i),a.isGeoSVGGraphicRoot=!0;var n=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,p=void 0,c=void 0;if(n!=null?(u=0,p=n):s&&(u=s.x,p=s.width),o!=null?(f=0,c=o):s&&(f=s.y,c=s.height),u==null||f==null){var v=i.getBoundingRect();u==null&&(u=v.x,p=v.width),f==null&&(f=v.y,c=v.height)}l=this._boundingRect=new oe(u,f,p,c)}if(s){var h=IT(s,l);i.scaleX=i.scaleY=h.scale,i.x=h.x,i.y=h.y}a.setClipPath(new de({shape:l.plain()}));var d=[];return T(t.named,function(m){Kq.get(m.svgNodeTagLower)!=null&&(d.push(m),qq(m.el))}),{root:a,boundingRect:l,named:d}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,i),i)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);i&&(t.removeKey(e),this._freedGraphics.push(i))},r})();function qq(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function jq(r){var e=[],t=W();return T(r,function(i){if(i.namedFrom==null){var a=new t2(i.name,i.el);e.push(a),t.set(i.name,a)}}),{regions:e,regionsMap:t}}var LT=[126,25],uV="\u5357\u6D77\u8BF8\u5C9B",Ou=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(Ys=0;Ys<Ou.length;Ys++)for(Ru=0;Ru<Ou[Ys].length;Ru++)Ou[Ys][Ru][0]/=10.5,Ou[Ys][Ru][1]/=-10.5/.75,Ou[Ys][Ru][0]+=LT[0],Ou[Ys][Ru][1]+=LT[1];var Ru,Ys;function PT(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===uV)return;e.push(new gy(uV,U(Ou,function(i){return{type:"polygon",exterior:i}}),LT))}}var Jq={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function RT(r,e){if(r==="china"){var t=Jq[e.name];if(t){var i=e.getCenter();i[0]+=t[0]/10.5,i[1]+=-t[1]/(10.5/.75),e.setCenter(i)}}}var Qq=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function OT(r,e){r==="china"&&e.name==="\u53F0\u6E7E"&&e.geometries.push({type:"polygon",exterior:Qq[0]})}var $q="name",fV=(function(){function r(e,t,i){this.type="geoJSON",this._parsedMap=W(),this._mapName=e,this._specialAreas=i,this._geoJSON=tj(t)}return r.prototype.load=function(e,t){t=t||$q;var i=this._parsedMap.get(t);if(!i){var a=this._parseToRegions(t);i=this._parsedMap.set(t,{regions:a,boundingRect:ej(a)})}var n=W(),o=[];return T(i.regions,function(s){var l=s.name;e&&ae(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),n.set(l,s)}),{regions:o,boundingRect:i.boundingRect||new oe(0,0,0,0),regionsMap:n}},r.prototype._parseToRegions=function(e){var t=this._mapName,i=this._geoJSON,a;try{a=i?jv(i,e):[]}catch(n){throw new Error(`Invalid geoJson format
19
+ `+n.message)}return PT(t,a),T(a,function(n){var o=n.name;RT(t,n),OT(t,n);var s=this._specialAreas&&this._specialAreas[o];s&&n.transformTo(s.left,s.top,s.width,s.height)},this),a},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function ej(r){for(var e,t=0;t<r.length;t++){var i=r[t].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function tj(r){return H(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var xh=W(),ni={registerMap:function(r,e,t){if(e.svg){var i=new lV(r,e.svg);xh.set(r,i)}else{var a=e.geoJson||e.geoJSON;a&&!e.features?t=e.specialAreas:a=e;var i=new fV(r,a,t);xh.set(r,i)}},getGeoResource:function(r){return xh.get(r)},getMapForUser:function(r){var e=xh.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var i=xh.get(r);if(i)return i.load(e,t)}};var Fo=0,Xs=1,Ji=2;var rj="view",ij=(function(r){L(e,r);function e(t,i,a){var n=r.call(this)||this;n.type=rj,n.dimensions=["x","y"];var o=n;o.invertY=t,o.lgCt=i,o.lgGeo=a;var s=o.trans=[];return s[Fo]=Ll(),s[Xs]=Ll(),s[Ji]=Ll(),o.mtRaw=Je(),o.mtRawInv=Je(),o.mtOverall=Je(),o.mtOverallInv=Je(),o.zoom=1,n}return e.prototype.getBoundingRect=function(){return VT(null,this)},e.prototype.getViewRect=function(){return bh(null,this)},e.prototype.getRoamTransform=function(){return Cn(this.trans[Xs])},e.prototype.dataToPoint=function(t,i,a){var n=i?this.mtRaw:this.mtOverall;return a=a||[],n?ot(a,t,n):jt(a,t)},e.prototype.pointToData=function(t,i,a){a=a||[];var n=this.mtOverallInv;return n?ot(a,t,n):jt(a,t)},e.prototype.convertToPixel=function(t,i,a){var n=dV(i);return n===this?n.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,i,a){var n=dV(i);return n===this?n.pointToData(a):null},e.prototype.containPoint=function(t){var i=this;return Sl(g0,i.dataRect),vd(g0,g0,i.mtOverall),KD(g0,t[0],t[1])},e.dimensions=["x","y"],e})(di),g0=Ic();function ku(r,e){return za(r||[],e.mtOverall)}function yV(r){return r.zoom}function VT(r,e){return Sl(r||Ic(),e.dataRect)}function bh(r,e){return Sl(r||Ic(),e.viewRect)}function Nu(r,e,t){return hi(r||Ll(),e.trans[t])}function UT(r){return!!(r.dataRect&&r.viewRect)}function aj(r,e,t,i){i===Xs?_V(r,e.trans[Fo],t):hi(r,t)}function pV(r,e,t){Cn(t,y0),Qt(y0,y0,e.mtRawInv),gv(r,y0)}var y0=Je();function wh(r,e){var t=r;t.centerOption=e.getShallow("center");var i=t.zoomLimit=e.getShallow("scaleLimit"),a=e.getShallow("zoom");t.zoom=T0(a||1,i)||1,UT(t)&&BT(t)}function Zs(r,e,t,i,a){var n=r;n.dataRect=new oe(e,t,i,a),UT(n)&&BT(n)}function zu(r,e,t,i,a){var n=r;n.viewRect=new oe(e,t,i,a),UT(n)&&BT(n)}function BT(r){nj(r),sj(r),lj(r)}function nj(r){var e=r.dataRect,t=r.viewRect,i=r.trans[Fo],a=r.invertY;a&&(e=Sl(oj,e),e.y=-e.y-e.height),Ax(cV,e,t),gv(i,cV),a&&(i.scaleY=-i.scaleY);var n=Cn(i,r.mtRaw);zt(r.mtRawInv,n)}var cV=Je(),oj=Ic();function sj(r){var e=xV(r),t=pj(NT,r,r.centerOption)?ot(NT,NT,r.mtRaw):e,i=r.zoom,a=r.trans[Xs];a.x=e[0]-i*t[0],a.y=e[1]-i*t[1],a.scaleX=a.scaleY=i}var NT=[];function lj(r){var e=r.trans,t=e[Xs],i=e[Fo],a=e[Ji];_V(a,i,t);var n=Cn(a,r.mtOverall),o=zt(r.mtOverallInv,n);vV(r,a,n,o),vV(r.lgGeo,a,n,o)}function vV(r,e,t,i){r&&(hi(r,e),za(r.transform||(r.transform=[]),t),za(r.invTransform||(r.invTransform=[]),i))}function _V(r,e,t){Cn(e,hV),Cn(t,_0),Qt(_0,_0,hV),gv(r,_0)}var hV=Je(),_0=Je();function dV(r){var e=r.seriesModel;return e?e.coordinateSystem:null}function xV(r){var e=r.viewRect;return kT[0]=e.x+e.width/2,kT[1]=e.y+e.height/2,kT}var kT=[];function x0(r){return r&&r.type==="view"}function Ma(r,e,t,i){var a=t;a.syncBackEl=r,a.syncBackType=e,i?Ae(r,Nu(null,t,e),i):(Nu(r,t,e),r.dirty())}function uj(r,e,t,i){var a=r,n=a.syncBackEl;n?(n.stopAnimation(),aj(Ws,a,n,a.syncBackType)):hi(Ws,a.trans[Ji]),pV(zT,a,Ws),i?fj(Ws,zT,a,i):hi(Ws,zT),pV(Ws,a,Ws),vj(a,e,t,Ws)}var Ws=Ll(),zT=Ll();function S0(r,e,t){var i=Pp(e);i&&(uj(i,e,t,r),wh(i,e))}function Pp(r){return r.__ownRoamView?r.__ownRoamView():null}function b0(r,e,t,i){t.setUpdatePayload(mv(r));var a=om(i,e);a&&a.__updateOnOwnRoam&&a.__updateOnOwnRoam(r,e,i)}function fj(r,e,t,i){i.dx!=null&&i.dy!=null&&(r.x+=i.dx,r.y+=i.dy);var a=i.zoom;if(a!=null){var n=SV(e),o=T0(n*a,t.zoomLimit),s=o/n;r.x-=(i.originX-r.x)*(s-1),r.y-=(i.originY-r.y)*(s-1),r.scaleX*=s,r.scaleY*=s}}function SV(r){return r.scaleX}function pj(r,e,t){var i=e.dataRect;if(!t)return!1;var a=e.lgCt;return a?ki(r,j(t[0],a.w),j(t[1],a.h)):i&&ki(r,j(t[0],i.width,i.x),j(t[1],i.height,i.y)),!0}function cj(r,e){var t=r.centerOption,i=r.dataRect;return!t||r.lgCt?e.slice():[mV(0,e,t,i),mV(1,e,t,i)]}function mV(r,e,t,i){return t&&i&&i[_t[r]]&&KM(t[r])?(e[r]-i[we[r]])/i[_t[r]]*100+"%":e[r]}function w0(r,e){return e&&r&&r.getShallow("legacyViewCoordSysCenterBase")?{w:e.getWidth(),h:e.getHeight()}:null}function vj(r,e,t,i){var a=xV(r),n=SV(i),o=ct(n)>1e-6;Sh[0]=o?(a[0]-i.x)/n:a[0],Sh[1]=o?(a[1]-i.y)/n:a[1],ot(Sh,Sh,r.mtRawInv);var s=cj(r,Sh);gV(e,s,n),T(t,function(l){l!==e&&gV(l,s.slice(),n)})}var Sh=[];function gV(r,e,t){var i=r.option;i.center=e,i.zoom=t}function T0(r,e){if(e){var t=e.min||0,i=e.max||1/0;r=Math.max(Math.min(i,r),t)}return r}function C0(r,e){var t=e.getShallow("nodeScaleRatio",!0)||1,i=r;return((i.zoom-1)*t+1)/(i.trans[Ji].scaleX||1)}var Ks=ij;function qs(r,e,t,i,a,n,o,s){var l=Pp(r);if(!l){t.disable();return}t.enable(Z(r.get("roam"),o),{api:e,zInfo:{component:r},triggerInfo:{roamTrigger:r.get("roamTrigger"),isInSelf:i,isInClip:function(f,p,c){return!a||a.contain(p,c)}}});function u(f){var p=r.mainType,c=mv($({type:bV(p,r.subType,FS)},f));s&&(c.componentType=p),c[p+"Id"]=r.id,e.dispatchAction(c)}t.off("pan").off("zoom").on("pan",function(f){n&&n("pan"),u({dx:f.dx,dy:f.dy})}).on("zoom",function(f){n&&n("zoom"),u({zoom:f.scale,originX:f.originX,originY:f.originY})})}function A0(r){return function(e,t,i){return FT.copy(r.getBoundingRect()),FT.applyTransform(r.getComputedTransform()),FT.contain(t,i)}}var FT=new oe(0,0,0,0);function Rp(r,e,t){var i=bV(e,t,FS);r.registerAction({type:i,event:i,update:"none"},function(a,n,o){n.eachComponent(Ef(a,e,t),function(s){S0(a,s),b0(a,s,n,o)})})}function bV(r,e,t){return(r!==xr?r:e==="map"?"geo":e)+t}function E0(r){return r.zoom!=null}function Op(r,e,t,i,a,n,o){var s=new Ks(null,w0(r.ecModel,e));return Zs(s,t,i,a,n),o?zu(s,o.x,o.y,o.width,o.height):zu(s,t,i,a,n),wh(s,r),s}var GT=["rect","circle","line","ellipse","polygon","polyline","path"],hj=W(GT),dj=W(GT.concat(["g"])),mj=W(GT.concat(["g"])),IV=ne();function D0(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function wV(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var gj=(function(){function r(e){var t=this.group=new Q,i=this._transformGroup=new Q;t.add(i),this.uid=Ei("ec_map_draw"),this._controller=new Oi(e.getZr()),i.add(this._regionsGroup=new Q),i.add(this._svgGroup=new Q)}return r.prototype.draw=function(e,t,i,a,n){var o=this,s=e.getData&&e.getData();Np(e)&&t.eachComponent({mainType:"series",subType:"map"},function(d){!s&&d.getHostGeoModel()===e&&(s=d.getData())});var l=e.coordinateSystem,u=l.view,f=this._regionsGroup,p=this._transformGroup,c=!f.childAt(0)||n,v;l.shouldClip()?(v=bh(null,u),this.group.setClipPath(new de({shape:v.clone()}))):this.group.removeClipPath(),Ma(p,Xs,u,c?null:e);var h=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0;l.resourceType==="geoJSON"?this._buildGeoJSON(u,i,l,e,s,h):l.resourceType==="geoSVG"&&this._buildSVG(u,i,l,e,s,h),qs(e,i,this._controller,function(d,m,g){return e.coordinateSystem.containPoint([m,g])},v,function(){o._mouseDownFlag=!1},!1,!0),this._updateMapSelectHandler(e,f,i,a)},r.prototype.__updateOnOwnRoam=function(e){Ma(this._transformGroup,Xs,e.coordinateSystem.view,null)},r.prototype._buildGeoJSON=function(e,t,i,a,n,o){var s=this._regionsGroupByName=W(),l=W(),u=this._regionsGroup,f=i.projection,p=f&&f.stream,c=Cn(Nu(null,e,Fo));function v(m,g){return g&&(m=g(m)),m&&ot([],m,c)}function h(m){for(var g=[],y=!p&&f&&f.project,_=0;_<m.length;++_){var x=v(m[_],y);x&&g.push(x)}return g}function d(m){return{shape:{points:h(m)}}}u.removeAll(),T(i.regions,function(m){var g=m.name,y=s.get(g),_=l.get(g)||{},x=_.dataIdx,S=_.regionModel;if(!y){y=s.set(g,new Q),u.add(y),x=n?n.indexOfName(g):null,S=Np(a)?a.getRegionModel(g):n?n.getItemModel(x):null;var b=S.get("silent",!0);b!=null&&(y.silent=b),l.set(g,{dataIdx:x,regionModel:S})}var w=[],A=[];T(m.geometries,function(D){if(D.type==="polygon"){var I=[D.exterior].concat(D.interiors||[]);p&&(I=MV(I,p)),T(I,function(P){w.push(new yt(d(P)))})}else{var M=D.points;p&&(M=MV(M,p,!0)),T(M,function(P){A.push(new vt(d(P)))})}});var C=v(m.getCenter(),f&&f.project);function E(D,I){if(D.length){var M=new Vn({culling:!0,segmentIgnoreThreshold:1,shape:{paths:D}});y.add(M),TV(t,n,o,M,x,S),CV(a,n,M,g,S,x,C),I&&(wV(M),T(M.states,wV))}}E(w),E(A,!0)}),s.each(function(m,g){var y=l.get(g),_=y.dataIdx,x=y.regionModel;AV(a,n,m,g,x,_),EV(a,n,m,g,x),DV(a,m,g,x)},this)},r.prototype._buildSVG=function(e,t,i,a,n,o){var s=i.map;Nu(this._svgGroup,e,Fo),this._svgResourceChanged(s)&&(this._freeSVG(),this._useSVG(s));var l=this._svgDispatcherMap=W(),u=!1;T(this._svgGraphicRecord.named,function(f){var p=f.name,c=f.svgNodeTagLower,v=f.el,h=n?n.indexOfName(p):null,d=a.getRegionModel(p);hj.get(c)!=null&&v instanceof Ut&&TV(t,n,o,v,h,d),v instanceof Ut&&(v.culling=!0);var m=d.get("silent",!0);if(m!=null&&(v.silent=m),v.z2EmphasisLift=0,!f.namedFrom&&(mj.get(c)!=null&&CV(a,n,v,p,d,h,null),AV(a,n,v,p,d,h),EV(a,n,v,p,d),dj.get(c)!=null)){var g=DV(a,v,p,d);g==="self"&&(u=!0);var y=l.get(p)||l.set(p,[]);y.push(v)}},this),this._enableBlurEntireSVG(u,a)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&Np(t)){var i=t.getModel(["blur","itemStyle"]).getItemStyle(),a=i.opacity;this._svgGraphicRecord.root.traverse(function(n){if(!n.isGroup){Xa(n);var o=n.ensureState("blur").style||{};o.opacity==null&&a!=null&&(o.opacity=a),n.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.disable()},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var i=t.coordinateSystem;if(i.resourceType==="geoJSON"){var a=this._regionsGroupByName;if(a){var n=a.get(e);return n?[n]:[]}}else if(i.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=ni.getGeoResource(e);if(t&&t.type==="geoSVG"){var i=t.useGraphic(this.uid);this._svgGroup.add(i.root),this._svgGraphicRecord=i,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=ni.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=IV(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,i,a){var n=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){n._mouseDownFlag=!0}),t.on("click",function(o){n._mouseDownFlag&&(n._mouseDownFlag=!1)}))},r})();function TV(r,e,t,i,a,n){var o=n.getModel("itemStyle"),s=n.getModel(["emphasis","itemStyle"]),l=n.getModel(["blur","itemStyle"]),u=n.getModel(["select","itemStyle"]),f=D0(o),p=D0(s),c=D0(u),v=D0(l);if(e){var h=e.getItemVisual(a,"style"),d=e.getItemVisual(a,"decal");t&&h.fill&&(f.fill=h.fill),d&&(f.decal=rn(d,r))}i.setStyle(f),i.style.strokeNoScale=!0,i.ensureState("emphasis").style=p,i.ensureState("select").style=c,i.ensureState("blur").style=v,Xa(i)}function CV(r,e,t,i,a,n,o){var s=e&&isNaN(e.get(e.mapDimension("value"),n)),l=e&&e.getItemLayout(n);if(Np(r)||s||l&&l.showLabel){var u=Np(r)?i:n,f=void 0;(!e||n>=0)&&(f=r);var p=o?{normal:{align:"center",verticalAlign:"middle"}}:null;it(t,tt(a),{labelFetcher:f,labelDataIndex:u,defaultText:i},p);var c=t.getTextContent();if(c&&(IV(c).ignore=c.ignore,t.textConfig&&o)){var v=t.getBoundingRect().clone();t.textConfig.layoutRect=v,t.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function AV(r,e,t,i,a,n){e?e.setItemGraphicEl(n,t):se(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:i,region:a&&a.option||{}}}function EV(r,e,t,i,a){e||Nr({el:t,componentModel:r,itemName:i,itemTooltipOption:a.get("tooltip")})}function DV(r,e,t,i){e.highDownSilentOnTouch=!!r.get("selectedMode");var a=i.getModel("emphasis"),n=a.get("focus");return Be(e,n,a.get("blurScope"),a.get("disabled")),Np(r)&&CL(e,r,t),n}function MV(r,e,t){var i=[],a;function n(){a=[]}function o(){a.length&&(i.push(a),a=[])}var s=e({polygonStart:n,polygonEnd:o,lineStart:n,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&a.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),T(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),i}function Np(r){return r.mainType==="geo"}var M0=gj;var dn="map",yj=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.getTooltipPosition=function(i){if(i!=null){var a=this.getData().getName(i),n=this.coordinateSystem,o=n.getRegion(a);return o&&n.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var i=qi(this,{coordDimensions:["value"],encodeDefaulter:me(Jf,this)}),a=W(),n=[],o=0,s=i.count();o<s;o++){var l=i.getName(o);a.set(l,o)}var u=ni.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return T(u.regions,function(f){var p=f.name,c=a.get(p),v=f.properties&&f.properties.echartsStyle,h;c==null?(h={name:p},n.push(h)):h=i.getRawDataItem(c),v&&ve(h,v)}),i.appendData(n),i},e.prototype.getHostGeoModel=function(){if(Vb(this).kind!==zb)return this.getReferringComponents("geo",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0]},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var i=this.getData();return i.get(i.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var i=this.getData();return i.getItemModel(i.indexOfName(t))},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t),l=[];return T(this.seriesGroup.f,function(u){var f=u.originalData.indexOfName(s),p=n.mapDimension("value");isNaN(u.originalData.get(p,f))||l.push(u.name)}),ft("section",{header:l.join(", "),noHeader:!l.length,blocks:[ft("nameValue",{name:s,value:o})]})},e.prototype.getLegendIcon=function(t){var i=t.icon||"roundRect",a=je(i,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return a.setStyle(t.itemStyle),a.style.stroke="none",i.indexOf("empty")>-1&&(a.style.stroke=a.style.fill,a.style.fill=N.color.neutral00,a.style.lineWidth=2),a},e.prototype.__ownRoamView=function(){return kp(this)?this.coordinateSystem.view:null},e.type="series."+dn,e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:N.color.tertiary},itemStyle:{borderWidth:.5,borderColor:N.color.border,areaColor:N.color.background},emphasis:{label:{show:!0,color:N.color.primary},itemStyle:{areaColor:N.color.highlight}},select:{label:{show:!0,color:N.color.primary},itemStyle:{color:N.color.highlight}},nameProperty:"name"},e})(ke);function I0(r){return r.indexOf("i")===0}function kp(r){return js(r.seriesGroup)===r&&!r.getHostGeoModel()}function js(r){return r.f[0]}function zp(r,e){var t={};return r.eachRawSeriesByType(dn,function(i){var a=i.getHostGeoModel(),n=a?"o"+a.id:"i"+i.getMapType(),o=t[n]=t[n]||{f:[],r:[]};!r.isSeriesFiltered(i)&&!e&&o.f.push(i),o.r.push(i)}),t}var LV=yj;var _j=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=dn,t}return e.prototype.render=function(t,i,a,n){if(!(n&&n.type==="mapToggleSelect"&&n.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){var s=this._mapDraw;s&&n&&n.type==="geoRoam"&&s.resetForLabelLayout(),n&&n.type==="geoRoam"&&n.componentType==="series"&&n.seriesId===t.id?s&&o.add(s.group):kp(t)?(s=s||(this._mapDraw=new M0(a)),o.add(s.group),s.draw(t,i,a,this,n)):this._clearMapDraw(),t.get("showLegendSymbol")&&i.getComponent("legend")&&this._renderSymbols(t)}}},e.prototype.__updateOnOwnRoam=function(t,i,a){var n=this._mapDraw;kp(i)&&n&&n.__updateOnOwnRoam(i)},e.prototype.remove=function(){this._clearMapDraw(),this.group.removeAll()},e.prototype.dispose=function(){this._clearMapDraw()},e.prototype._clearMapDraw=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t){var i=t.originalData,a=this.group;i.each(i.mapDimension("value"),function(n,o){if(!isNaN(n)){var s=i.getItemLayout(o);if(!(!s||!s.point)){var l=s.point,u=s.offset,f=new Sr({style:{fill:t.getData().getVisual("style").fill},shape:{cx:l[0]+u*9,cy:l[1],r:3},silent:!0,z2:8+(u?0:_o+1)});if(!u){var p=js(t.seriesGroup).getData(),c=i.getName(o),v=p.indexOfName(c),h=i.getItemModel(o),d=h.getModel("label"),m=p.getItemGraphicEl(v);it(f,tt(h),{labelFetcher:{getFormattedLabel:function(g,y){return t.getFormattedLabel(v,y)}},defaultText:c}),f.disableLabelAnimation=!0,d.get("position")||f.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(g){Kl(f,g)}}a.add(f)}}})},e.type=dn,e})(Le),PV=_j;var xj={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},HT=["lng","lat"],Sj=(function(r){L(e,r);function e(t,i,a){var n=r.call(this)||this;n.dimensions=HT,n.type="geo",n._nameCoordMap=W(),n.name=t;var o=a.projection,s=ni.load(i,a.nameMap,a.nameProperty),l=ni.getGeoResource(i),u=n.resourceType=l?l.type:null,f=n.regions=s.regions,p=xj[l.type];n._clip=a.clip;var c=o?!1:p.invertLongitute;n.view=new Ks(c,w0(a.ecModel,a.api),n),n.map=i,n._regionsMap=s.regionsMap,n.regions=s.regions,n.projection=o;var v;if(o)for(var h=0;h<f.length;h++){var d=f[h].getBoundingRect(o);v=v||d.clone(),v.union(d)}else v=s.boundingRect;return Zs(n.view,v.x,v.y,v.width,v.height),n.aspectScale=o?1:Z(a.aspectScale,p.aspectScale),n}return e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var i=this.regions,a=0;a<i.length;a++){var n=i[a];if(n.type==="geoJSON"&&n.contain(t))return i[a]}},e.prototype.addGeoCoord=function(t,i){this._nameCoordMap.set(t,i)},e.prototype.getGeoCoord=function(t){var i=this._regionsMap.get(t);return this._nameCoordMap.get(t)||i&&i.getCenter()},e.prototype.dataToPoint=function(t,i,a){if(H(t)&&(t=this.getGeoCoord(t)),t){var n=this.projection;return n&&(t=n.project(t)),t&&this.view.dataToPoint(t,i,a)}},e.prototype.pointToData=function(t,i,a){var n=this.projection;return n&&(t=n.unproject(t)),t&&this.view.pointToData(t,a)},e.prototype.convertToPixel=function(t,i,a){var n=RV(i);return n===this?n.dataToPoint(a):null},e.prototype.convertFromPixel=function(t,i,a){var n=RV(i);return n===this?n.pointToData(a):null},e.prototype.containPoint=function(t){return this.view.containPoint(t)},e.prototype.getArea=function(t){t=t||0;var i=bh(null,this.view);return i.x-=t,i.y-=t,i.width+=2*t,i.height+=2*t,i},e.prototype.shouldClip=function(){return this._clip},e.prototype.getBoundingRect=function(){return this.view.getBoundingRect()},e.prototype.getViewRect=function(){return this.view.getViewRect()},e.prototype.getRoamTransform=function(){return this.view.getRoamTransform()},e})(di);function RV(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Ke).models[0]||{}).coordinateSystem:null}var YT=Sj;function OV(r,e){var t=this.view,i=r.get("boundingCoords");if(i!=null){var a=i[0],n=i[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var o=this.projection;if(o){var s=a[0],l=a[1],u=n[0],f=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var p=function(b,w,A,C){for(var E=A-b,D=C-w,I=0;I<=100;I++){var M=I/100,P=o.project([b+E*M,w+D*M]);fi(a,a,P),pi(n,n,P)}};p(s,l,u,l),p(u,l,u,f),p(u,f,s,f),p(s,f,u,l)}Zs(t,a[0],a[1],n[0]-a[0],n[1]-a[1])}}var c=t.getBoundingRect(),v=r.get("layoutCenter"),h=r.get("layoutSize"),d=Qe(r,e).refContainer,m=c.width/c.height*this.aspectScale,g=!1,y,_;v&&h&&(y=[j(v[0],d.width)+d.x,j(v[1],d.height)+d.y],_=j(h,Math.min(d.width,d.height)),!isNaN(y[0])&&!isNaN(y[1])&&!isNaN(_)&&(g=!0));var x;if(g)x={},m>1?(x.width=_,x.height=_/m):(x.height=_,x.width=_*m),x.y=y[1]-x.height/2,x.x=y[0]-x.width/2;else{var S=r.getBoxLayoutParams();S.aspect=m,x=He(S,d),x=sg(r,x,m)}zu(t,x.x,x.y,x.width,x.height),wh(t,r)}function bj(r,e){T(e.get("geoCoord"),function(t,i){r.addGeoCoord(i,t)})}var wj=(function(){function r(){this.dimensions=HT}return r.prototype.create=function(e,t){var i=[];function a(n){return{nameProperty:n.get("nameProperty"),aspectScale:n.get("aspectScale"),projection:n.get("projection"),clip:n.getShallow("clip",!0)}}return e.eachComponent("geo",function(n,o){var s=n.get("map"),l=new YT(s+o,s,k({nameMap:n.get("nameMap"),api:t,ecModel:e},a(n)));i.push(l),n.coordinateSystem=l,l.model=n,l.resize=OV,l.resize(n,t)}),e.eachSeries(function(n){Bn({targetModel:n,coordSysType:"geo",coordSysProvider:function(){var o=n.subType===dn?n.getHostGeoModel():n.getReferringComponents("geo",Ke).models[0];return o&&o.coordinateSystem},allowNotFound:!0})}),T(zp(e,!0),function(n,o){if(I0(o)){var s=n.r[0],l=[];T(n.r,function(c){l.push(c.get("nameMap")),c.seriesGroup=null});var u=o.slice(1),f=new YT(u,u,k({nameMap:pl(l),api:t,ecModel:e},a(s))),p;T(n.r,function(c){p=Z(p,c.get("scaleLimit"))}),i.push(f),f.resize=OV,f.resize(s,t),T(n.r,function(c){c.coordinateSystem=f,bj(f,c)})}}),i},r.prototype.getFilledRegions=function(e,t,i,a){for(var n=(e||[]).slice(),o=W(),s=0;s<n.length;s++)o.set(n[s].name,n[s]);var l=ni.load(t,i,a);return T(l.regions,function(u){var f=u.name,p=o.get(f),c=u.properties&&u.properties.echartsStyle;p||(p={name:f},n.push(p)),c&&ve(p,c)}),n},r})(),Tj=new wj,L0=Tj;var Cj=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a);var n=ni.getGeoResource(t.map);if(n&&n.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color=t.defaultItemStyleColor||N.color.backgroundTint)}Fi(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,i=this.option;i.regions=L0.getFilledRegions(i.regions,i.map,i.nameMap,i.nameProperty);var a={};this._optionModelMap=tr(i.regions||[],function(n,o){var s=o.name;return s&&(n.set(s,new Ee(o,t,t.ecModel)),o.selected&&(a[s]=!0)),n},W()),i.selectedMap||(i.selectedMap=a)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Ee(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,i){var a=this.getRegionModel(t),n=i==="normal"?a.get(["label","formatter"]):a.get(["emphasis","label","formatter"]),o={name:t};if(J(n))return o.status=i,n(o);if(H(n))return n.replace("{a}",t??"")},e.prototype.select=function(t){var i=this.option,a=i.selectedMode;if(a){a!=="multiple"&&(i.selectedMap=null);var n=i.selectedMap||(i.selectedMap={});n[t]=!0}},e.prototype.unSelect=function(t){var i=this.option.selectedMap;i&&(i[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var i=this.option.selectedMap;return!!(i&&i[t])},e.prototype.__ownRoamView=function(){return this.coordinateSystem.view},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:N.color.tertiary},itemStyle:{borderWidth:.5,borderColor:N.color.border},emphasis:{label:{show:!0,color:N.color.primary},itemStyle:{color:N.color.highlight}},select:{label:{show:!0,color:N.color.primary},itemStyle:{color:N.color.highlight}},regions:[]},e})(Se),NV=Cj;var Aj=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,i){this._api=i},e.prototype.render=function(t,i,a,n){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new M0(a));var o=this._mapDraw;o.draw(t,i,a,this,n),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,i,a)},e.prototype.__updateOnOwnRoam=function(t,i,a){var n=this._mapDraw;n&&n.__updateOnOwnRoam(i)},e.prototype._handleRegionClick=function(t){var i;en(t.target,function(a){return(i=se(a).eventData)!=null},!0),i&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:i.name})},e.prototype.updateSelectStatus=function(t,i,a){var n=this;this._mapDraw.group.traverse(function(o){var s=se(o).eventData;if(s)return n._model.isSelected(s.name)?a.enterSelect(o):a.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e})(ze),kV=Aj;function Ej(r,e,t){ni.registerMap(r,e,t)}function Th(r){r.registerCoordinateSystem("geo",L0),r.registerComponentModel(NV),r.registerComponentView(kV),r.registerImpl("registerMap",Ej),r.registerImpl("getMap",function(t){return ni.getMapForUser(t)});function e(t,i){i.update="geo:updateSelectStatus",r.registerAction(i,function(a,n){var o={},s=[];return n.eachComponent({mainType:"geo",query:a},function(l){l[t](a.name);var u=l.coordinateSystem;T(u.regions,function(p){o[p.name]=l.isSelected(p.name)||!1});var f=[];T(o,function(p,c){o[c]&&f.push(c)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:a.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,i,a){var n=t.componentType||(t.geoId!=null||t.geoName!=null||t.geoIndex!=null?"geo":xr),o=n===xr;if(!(n!=="geo"&&!o)){var s=o?"map":null;i.eachComponent(Ef(t,n,s),function(l){o&&!kp(l)||(S0(t,l,o?l.seriesGroup.r:null),b0(t,l,i,a))})}})}var zV=qe(dn,Dj);function Dj(r){T(zp(r),function(e,t){if(!(!js(e)||!I0(t))){var i={};T(e.f,function(n){var o=n.coordinateSystem,s=n.originalData;n.get("showLegendSymbol")&&r.getComponent("legend")&&s.each(s.mapDimension("value"),function(l,u){var f=s.getName(u),p=o.getRegion(f);if(!(!p||isNaN(l))){var c=i[f]||0,v=o.dataToPoint(p.getCenter());i[f]=c+1,s.setItemLayout(u,{point:v,offset:c})}})});var a=js(e).getData();a.each(function(n){var o=a.getName(n),s=a.getItemLayout(n)||{};s.showLabel=!i[o],a.setItemLayout(n,s)})}})}function Mj(r,e){var t={};return T(r,function(i){i.each(i.mapDimension("value"),function(a,n){var o="ec-"+i.getName(n);t[o]=t[o]||[],isNaN(a)||t[o].push(a)})}),r[0].map(r[0].mapDimension("value"),function(i,a){for(var n="ec-"+r[0].getName(a),o=0,s=1/0,l=-1/0,u=t[n].length,f=0;f<u;f++)s=Math.min(s,t[n][f]),l=Math.max(l,t[n][f]),o+=t[n][f];var p;return e==="min"?p=s:e==="max"?p=l:e==="average"?p=o/u:p=o,u===0?NaN:p})}var VV=qe(dn,Ij);function Ij(r){T(zp(r),function(e){var t=js(e);if(t){var i=Mj(U(e.f,function(a){return a.getData()}),t.get("mapValueCalculation"));T(e.f,function(a){a.seriesGroup=e,a.originalData=a.getData(),a.setData(i.cloneShallow())})}})}function WT(r){Ce(Th),r.registerChartView(PV),r.registerSeriesModel(LV),r.registerLayout(zV),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,VV),Ng("map",r.registerAction)}function UV(r){var e=r;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var t=[e],i,a;i=t.pop();)if(a=i.children,i.isExpand&&a.length)for(var n=a.length,o=n-1;o>=0;o--){var s=a[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},t.push(s)}}function BV(r,e){var t=r.isExpand?r.children:[],i=r.parentNode.children,a=r.hierNode.i?i[r.hierNode.i-1]:null;if(t.length){Lj(r);var n=(t[0].hierNode.prelim+t[t.length-1].hierNode.prelim)/2;a?(r.hierNode.prelim=a.hierNode.prelim+e(r,a),r.hierNode.modifier=r.hierNode.prelim-n):r.hierNode.prelim=n}else a&&(r.hierNode.prelim=a.hierNode.prelim+e(r,a));r.parentNode.hierNode.defaultAncestor=Pj(r,a,r.parentNode.hierNode.defaultAncestor||i[0],e)}function FV(r){var e=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:e},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function KT(r){return arguments.length?r:Nj}function Vu(r,e){return r-=Math.PI/2,{x:e*Math.cos(r),y:e*Math.sin(r)}}function Lj(r){for(var e=r.children,t=e.length,i=0,a=0;--t>=0;){var n=e[t];n.hierNode.prelim+=i,n.hierNode.modifier+=i,a+=n.hierNode.change,i+=n.hierNode.shift+a}}function Pj(r,e,t,i){if(e){for(var a=r,n=r,o=n.parentNode.children[0],s=e,l=a.hierNode.modifier,u=n.hierNode.modifier,f=o.hierNode.modifier,p=s.hierNode.modifier;s=XT(s),n=ZT(n),s&&n;){a=XT(a),o=ZT(o),a.hierNode.ancestor=r;var c=s.hierNode.prelim+p-n.hierNode.prelim-u+i(s,n);c>0&&(Oj(Rj(s,r,t),r,c),u+=c,l+=c),p+=s.hierNode.modifier,u+=n.hierNode.modifier,l+=a.hierNode.modifier,f+=o.hierNode.modifier}s&&!XT(a)&&(a.hierNode.thread=s,a.hierNode.modifier+=p-l),n&&!ZT(o)&&(o.hierNode.thread=n,o.hierNode.modifier+=u-f,t=r)}return t}function XT(r){var e=r.children;return e.length&&r.isExpand?e[e.length-1]:r.hierNode.thread}function ZT(r){var e=r.children;return e.length&&r.isExpand?e[0]:r.hierNode.thread}function Rj(r,e,t){return r.hierNode.ancestor.parentNode===e.parentNode?r.hierNode.ancestor:t}function Oj(r,e,t){var i=t/(e.hierNode.i-r.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=t,e.hierNode.modifier+=t,e.hierNode.prelim+=t,r.hierNode.change+=i}function Nj(r,e){return r.parentNode===e.parentNode?1:2}var Ia=ne();function kj(r){var e=r.mainData,t=r.datas;t||(t={main:e},r.datasAttr={main:"data"}),r.datas=r.mainData=null,GV(e,t,r),T(t,function(i){T(e.TRANSFERABLE_METHODS,function(a){i.wrapMethod(a,me(zj,r))})}),e.wrapMethod("cloneShallow",me(Uj,r)),T(e.CHANGABLE_METHODS,function(i){e.wrapMethod(i,me(Vj,r))}),at(t[e.dataType]===e)}function zj(r,e){if(Gj(this)){var t=k({},Ia(this).datas);t[this.dataType]=e,GV(e,t,r)}else qT(e,this.dataType,Ia(this).mainData,r);return e}function Vj(r,e){return r.struct&&r.struct.update(),e}function Uj(r,e){return T(Ia(e).datas,function(t,i){t!==e&&qT(t.cloneShallow(),i,e,r)}),e}function Bj(r){var e=Ia(this).mainData;return r==null||e==null?e:Ia(e).datas[r]}function Fj(){var r=Ia(this).mainData;return r==null?[{data:r}]:U(ye(Ia(r).datas),function(e){return{type:e,data:Ia(r).datas[e]}})}function Gj(r){return Ia(r).mainData===r}function GV(r,e,t){Ia(r).datas={},T(e,function(i,a){qT(i,a,r,t)})}function qT(r,e,t,i){Ia(t).datas[e]=r,Ia(r).mainData=t,r.dataType=e,i.struct&&(r[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=r),r.getLinkedData=Bj,r.getLinkedDataAll=Fj}var P0=kj;var Hj=(function(){function r(e,t){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=t}return r.prototype.isRemoved=function(){return this.dataIndex<0},r.prototype.eachNode=function(e,t,i){J(e)&&(i=t,t=e,e=null),e=e||{},H(e)&&(e={order:e});var a=e.order||"preorder",n=this[e.attr||"children"],o;a==="preorder"&&(o=t.call(i,this));for(var s=0;!o&&s<n.length;s++)n[s].eachNode(e,t,i);a==="postorder"&&t.call(i,this)},r.prototype.updateDepthAndHeight=function(e){var t=0;this.depth=e;for(var i=0;i<this.children.length;i++){var a=this.children[i];a.updateDepthAndHeight(e+1),a.height>t&&(t=a.height)}this.height=t+1},r.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,i=this.children,a=i.length;t<a;t++){var n=i[t].getNodeById(e);if(n)return n}},r.prototype.contains=function(e){if(e===this)return!0;for(var t=0,i=this.children,a=i.length;t<a;t++){var n=i[t].contains(e);if(n)return n}},r.prototype.getAncestors=function(e){for(var t=[],i=e?this:this.parentNode;i;)t.push(i),i=i.parentNode;return t.reverse(),t},r.prototype.getAncestorsIndices=function(){for(var e=[],t=this;t;)e.push(t.dataIndex),t=t.parentNode;return e.reverse(),e},r.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},r.prototype.getValue=function(e){var t=this.hostTree.data;return t.getStore().get(t.getDimensionIndex(e||"value"),this.dataIndex)},r.prototype.setLayout=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},r.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},r.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},r.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},r.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},r.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},r.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},r.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t<e.length;++t)if(e[t]===this)return t;return-1}return-1},r.prototype.isAncestorOf=function(e){for(var t=e.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},r.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},r})();var Yj=(function(){function r(e){this.type="tree",this._nodes=[],this.hostModel=e}return r.prototype.eachNode=function(e,t,i){this.root.eachNode(e,t,i)},r.prototype.getNodeByDataIndex=function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},r.prototype.getNodeById=function(e){return this.root.getNodeById(e)},r.prototype.update=function(){for(var e=this.data,t=this._nodes,i=0,a=t.length;i<a;i++)t[i].dataIndex=-1;for(var i=0,a=e.count();i<a;i++)t[e.getRawIndex(i)].dataIndex=i},r.prototype.clearLayouts=function(){this.data.clearItemLayouts()},r.createTree=function(e,t,i){var a=new r(t),n=[],o=1;s(e);function s(f,p){var c=f.value;o=Math.max(o,V(c)?c.length:1),n.push(f);var v=new Hj(St(f.name,""),a);p?Wj(v,p):a.root=v,a._nodes.push(v);var h=f.children;if(h)for(var d=0;d<h.length;d++)s(h[d],v)}a.root.updateDepthAndHeight(0);var l=Sa(n,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new Ct(l,t);return u.initData(n),i&&i(u),P0({mainData:u,struct:a,structAttr:"tree"}),a.update(),a},r})();function Wj(r,e){var t=e.children;r.parentNode!==e&&(t.push(r),r.parentNode=e)}var Vp=Yj;function Go(r,e,t){if(r&&le(e,r.type)>=0){var i=t.getData().tree.root,a=r.targetNode;if(H(a)&&(a=i.getNodeById(a)),a&&i.contains(a))return{node:a};var n=r.targetNodeId;if(n!=null&&(a=i.getNodeById(n)))return{node:a}}}function jT(r){for(var e=[];r;)r=r.parentNode,r&&e.push(r);return e.reverse()}function Up(r,e){var t=jT(r);return le(t,e)>=0}function Js(r,e){for(var t=[];r;){var i=r.dataIndex;t.push({name:r.name,dataIndex:i,value:e.getRawValue(i)}),r=r.parentNode}return t.reverse(),t}var eo="tree",Xj=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t){var i={name:t.name,children:t.data},a=t.leaves||{},n=new Ee(a,this,this.ecModel),o=Vp.createTree(i,this,s);function s(p){p.wrapMethod("getItemModel",function(c,v){var h=o.getNodeByDataIndex(v);return h&&h.children.length&&h.isExpand||(c.parentModel=n),c})}var l=0;o.eachNode("preorder",function(p){p.depth>l&&(l=p.depth)});var u=t.expandAndCollapse,f=u&&t.initialTreeDepth>=0?t.initialTreeDepth:l;return o.root.eachNode("preorder",function(p){var c=p.hostTree.data.getRawDataItem(p.dataIndex);p.isExpand=c&&c.collapsed!=null?!c.collapsed:p.depth<=f}),o.data},e.prototype.getOrient=function(){var t=this.get("orient");return t==="horizontal"?t="LR":t==="vertical"&&(t="TB"),t},e.prototype.formatTooltip=function(t,i,a){for(var n=this.getData().tree,o=n.root.children[0],s=n.getNodeByDataIndex(t),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return ft("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=Js(a,this),i.collapsed=!a.isExpand,i},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+eo,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,roamTrigger:"global",nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:N.color.borderTint,width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e})(ke),HV=Xj;var Zj=(function(){function r(){this.parentPoint=[],this.childPoints=[]}return r})(),Kj=(function(r){L(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new Zj},e.prototype.buildPath=function(t,i){var a=i.childPoints,n=a.length,o=i.parentPoint,s=a[0],l=a[n-1];if(n===1){t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]);return}var u=i.orient,f=u==="TB"||u==="BT"?0:1,p=1-f,c=j(i.forkPosition,1),v=[];v[f]=o[f],v[p]=o[p]+(l[p]-o[p])*c,t.moveTo(o[0],o[1]),t.lineTo(v[0],v[1]),t.moveTo(s[0],s[1]),v[f]=s[f],t.lineTo(v[0],v[1]),v[f]=l[f],t.lineTo(v[0],v[1]),t.lineTo(l[0],l[1]);for(var h=1;h<n-1;h++){var d=a[h];t.moveTo(d[0],d[1]),v[f]=d[f],t.lineTo(v[0],v[1])}},e})(ce),qj=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=eo,t._mainGroup=new Q,t}return e.prototype.init=function(t,i){this._controller=new Oi(i.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,i,a){var n=t.getData(),o=t.layoutInfo,s=this._mainGroup,l=t.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(t,a),qs(t,a,this._controller,A0(this.group),null);var u=this._data;n.diff(u).add(function(f){YV(n,f)&&WV(n,f,null,s,t)}).update(function(f,p){var c=u.getItemGraphicEl(p);if(!YV(n,f)){c&&ZV(u,p,c,s,t);return}WV(n,f,c,s,t)}).remove(function(f){var p=u.getItemGraphicEl(f);p&&ZV(u,f,p,s,t)}).execute(),this._updateNodeAndLinkScale(t),t.get("expandAndCollapse")===!0&&n.eachItemGraphicEl(function(f,p){f.off("click").on("click",function(){a.dispatchAction({type:"treeExpandAndCollapse",seriesId:t.id,dataIndex:p})})}),this._data=n,this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,i,a){Ma(this.group,Ji,i.coordinateSystem,null),E0(t)&&this._updateNodeAndLinkScale(i)},e.prototype._updateViewCoordSys=function(t,i){var a=t.getData(),n=[];a.each(function(p){var c=a.getItemLayout(p);c&&!isNaN(c.x)&&!isNaN(c.y)&&n.push([+c.x,+c.y])});var o=[],s=[];Ul(n,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var f=t.coordinateSystem=Op(t,i,o[0],o[1],s[0]-o[0],s[1]-o[1]);Ma(this.group,Ji,f,this._firstRender?null:t),this._min=o,this._max=s},e.prototype._updateNodeAndLinkScale=function(t){var i=t.getData(),a=C0(t.coordinateSystem,t);i.eachItemGraphicEl(function(n,o){n.setSymbolScale(a)})},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type=eo,e})(Le);function YV(r,e){var t=r.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function WV(r,e,t,i,a){var n=!t,o=r.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:N.color.neutral00,f=r.tree.root,p=o.parentNode===f?o:o.parentNode||o,c=r.getItemGraphicEl(p.dataIndex),v=p.getLayout(),h=c?{x:c.__oldX,y:c.__oldY,rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:v,d=o.getLayout();n?(t=new ko(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.x=h.x,t.y=h.y):t.updateData(r,e,null,{symbolInnerColor:u,useNameLabel:!0}),t.__radialOldRawX=t.__radialRawX,t.__radialOldRawY=t.__radialRawY,t.__radialRawX=d.rawX,t.__radialRawY=d.rawY,i.add(t),r.setItemGraphicEl(e,t),t.__oldX=t.x,t.__oldY=t.y,Ae(t,{x:d.x,y:d.y},a);var m=t.getSymbolPath();if(a.get("layout")==="radial"){var g=f.children[0],y=g.getLayout(),_=g.children.length,x=void 0,S=void 0;if(d.x===y.x&&o.isExpand===!0&&g.children.length){var b={x:(g.children[0].getLayout().x+g.children[_-1].getLayout().x)/2,y:(g.children[0].getLayout().y+g.children[_-1].getLayout().y)/2};x=Math.atan2(b.y-y.y,b.x-y.x),x<0&&(x=Math.PI*2+x),S=b.x<y.x,S&&(x=x-Math.PI)}else x=Math.atan2(d.y-y.y,d.x-y.x),x<0&&(x=Math.PI*2+x),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(S=d.x<y.x,S&&(x=x-Math.PI)):(S=d.x>y.x,S||(x=x-Math.PI));var w=S?"left":"right",A=s.getModel("label"),C=A.get("rotate"),E=C*(Math.PI/180),D=m.getTextContent();D&&(m.setTextConfig({position:A.get("position")||w,rotation:C==null?-x:E,origin:"center"}),D.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),M=I==="relative"?_n(o.getAncestorsIndices(),o.getDescendantIndices()):I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():null;M&&(se(t).focus=M),jj(a,o,f,t,h,v,d,i),t.__edge&&(t.onHoverStateChange=function(P){if(P!=="blur"){var O=o.parentNode&&r.getItemGraphicEl(o.parentNode.dataIndex);O&&O.hoverState===Zl||Kl(t.__edge,P)}})}function jj(r,e,t,i,a,n,o,s){var l=e.getModel(),u=r.get("edgeShape"),f=r.get("layout"),p=r.getOrient(),c=r.get(["lineStyle","curveness"]),v=r.get("edgeForkPosition"),h=l.getModel("lineStyle").getLineStyle(),d=i.__edge;if(u==="curve")e.parentNode&&e.parentNode!==t&&(d||(d=i.__edge=new wo({shape:QT(f,p,c,a,a)})),Ae(d,{shape:QT(f,p,c,n,o)},r));else if(u==="polyline"&&f==="orthogonal"&&e!==t&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,g=[],y=0;y<m.length;y++){var _=m[y].getLayout();g.push([_.x,_.y])}d||(d=i.__edge=new Kj({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:p,forkPosition:v}})),Ae(d,{shape:{parentPoint:[o.x,o.y],childPoints:g}},r)}d&&!(u==="polyline"&&!e.isExpand)&&(d.useStyle($({strokeNoScale:!0,fill:null},h)),st(d,l,"lineStyle"),Xa(d),s.add(d))}function XV(r,e,t,i,a){var n=e.tree.root,o=KV(n,r),s=o.source,l=o.sourceLayout,u=e.getItemGraphicEl(r.dataIndex);if(u){var f=e.getItemGraphicEl(s.dataIndex),p=f.__edge,c=u.__edge||(s.isExpand===!1||s.children.length===1?p:void 0),v=i.get("edgeShape"),h=i.get("layout"),d=i.get("orient"),m=i.get(["lineStyle","curveness"]);c&&(v==="curve"?va(c,{shape:QT(h,d,m,l,l),style:{opacity:0}},i,{cb:function(){t.remove(c)},removeOpt:a}):v==="polyline"&&i.get("layout")==="orthogonal"&&va(c,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},i,{cb:function(){t.remove(c)},removeOpt:a}))}}function KV(r,e){for(var t=e.parentNode===r?e:e.parentNode||e,i;i=t.getLayout(),i==null;)t=t.parentNode===r?t:t.parentNode||t;return{source:t,sourceLayout:i}}function ZV(r,e,t,i,a){var n=r.tree.getNodeByDataIndex(e),o=r.tree.root,s=KV(o,n).sourceLayout,l={duration:a.get("animationDurationUpdate"),easing:a.get("animationEasingUpdate")};va(t,{x:s.x+1,y:s.y+1},a,{cb:function(){i.remove(t),r.setItemGraphicEl(e,null)},removeOpt:l}),t.fadeOut(null,r.hostModel,{fadeLabel:!0,animation:l}),T(n.children,function(u){XV(u,r,i,a,l)}),XV(n,r,i,a,l)}function QT(r,e,t,i,a){var n,o,s,l,u,f,p,c;if(r==="radial"){u=i.rawX,p=i.rawY,f=a.rawX,c=a.rawY;var v=Vu(u,p),h=Vu(u,p+(c-p)*t),d=Vu(f,c+(p-c)*t),m=Vu(f,c);return{x1:v.x||0,y1:v.y||0,x2:m.x||0,y2:m.y||0,cpx1:h.x||0,cpy1:h.y||0,cpx2:d.x||0,cpy2:d.y||0}}else u=i.x,p=i.y,f=a.x,c=a.y,(e==="LR"||e==="RL")&&(n=u+(f-u)*t,o=p,s=f+(u-f)*t,l=c),(e==="TB"||e==="BT")&&(n=u,o=p+(c-p)*t,s=f,l=c+(p-c)*t);return{x1:u,y1:p,x2:f,y2:c,cpx1:n,cpy1:o,cpx2:s,cpy2:l}}var qV=qj;function jV(r,e,t){for(var i=[r],a=[],n;n=i.pop();)if(a.push(n),n.isExpand){var o=n.children;if(o.length)for(var s=0;s<o.length;s++)i.push(o[s])}for(;n=a.pop();)e(n,t)}function Bp(r,e){for(var t=[r],i;i=t.pop();)if(e(i),i.isExpand){var a=i.children;if(a.length)for(var n=a.length-1;n>=0;n--)t.push(a[n])}}function $T(r,e){r.eachSeriesByType("tree",function(t){Jj(t,e)})}function Jj(r,e){var t=Qe(r,e).refContainer,i=He(r.getBoxLayoutParams(),t);r.layoutInfo=i;var a=r.get("layout"),n=0,o=0,s=null;a==="radial"?(n=2*Math.PI,o=Math.min(i.height,i.width)/2,s=KT(function(x,S){return(x.parentNode===S.parentNode?1:2)/x.depth})):(n=i.width,o=i.height,s=KT());var l=r.getData().tree.root,u=l.children[0];if(u){UV(l),jV(u,BV,s),l.hierNode.modifier=-u.hierNode.prelim,Bp(u,FV);var f=u,p=u,c=u;Bp(u,function(x){var S=x.getLayout().x;S<f.getLayout().x&&(f=x),S>p.getLayout().x&&(p=x),x.depth>c.depth&&(c=x)});var v=f===p?1:s(f,p)/2,h=v-f.getLayout().x,d=0,m=0,g=0,y=0;if(a==="radial")d=n/(p.getLayout().x+v+h),m=o/(c.depth-1||1),Bp(u,function(x){g=(x.getLayout().x+h)*d,y=(x.depth-1)*m;var S=Vu(g,y);x.setLayout({x:S.x,y:S.y,rawX:g,rawY:y},!0)});else{var _=r.getOrient();_==="RL"||_==="LR"?(m=o/(p.getLayout().x+v+h),d=n/(c.depth-1||1),Bp(u,function(x){y=(x.getLayout().x+h)*m,g=_==="LR"?(x.depth-1)*d:n-(x.depth-1)*d,x.setLayout({x:g,y},!0)})):(_==="TB"||_==="BT")&&(d=n/(p.getLayout().x+v+h),m=o/(c.depth-1||1),Bp(u,function(x){g=(x.getLayout().x+h)*d,y=_==="TB"?(x.depth-1)*m:o-(x.depth-1)*m,x.setLayout({x:g,y},!0)}))}}}function JV(r){r.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,t){t.eachComponent({mainType:xr,subType:eo,query:e},function(i){var a=e.dataIndex,n=i.getData().tree,o=n.getNodeByDataIndex(a);o.isExpand=!o.isExpand})}),Rp(r,xr,eo)}var QV=qe(eo,Qj);function Qj(r){r.eachSeriesByType(eo,function(e){var t=e.getData(),i=t.tree;i.eachNode(function(a){var n=a.getModel(),o=n.getModel("itemStyle").getItemStyle(),s=t.ensureUniqueItemVisual(a.dataIndex,"style");k(s,o)})})}function eC(r){r.registerChartView(qV),r.registerSeriesModel(HV),r.registerLayout($T),r.registerVisual(QV),JV(r)}var $V=["treemapZoomToNode","treemapRender","treemapMove"];function eU(r){for(var e=0;e<$V.length;e++)r.registerAction({type:$V[e],update:"updateView"},et);r.registerAction({type:"treemapRootToNode",update:"updateView"},function(t,i){i.eachComponent({mainType:"series",subType:"treemap",query:t},a);function a(n,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Go(t,s,n);if(l){var u=n.getViewRoot();u&&(t.direction=Up(u,l.node)?"rollUp":"drillDown"),n.resetViewRoot(l.node)}}})}function Ch(r){var e=r.getData(),t=e.tree,i={};t.eachNode(function(a){for(var n=a;n&&n.depth>1;)n=n.parentNode;var o=wv(r.ecModel,n.name||n.dataIndex+"",i);a.setVisual("decal",o)})}var $j=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventUsingHoverLayer=!0,t}return e.prototype.getInitialData=function(t,i){var a={name:t.name,children:t.data};tU(a);var n=t.levels||[],o=this.designatedVisualItemStyle={},s=new Ee({itemStyle:o},this,i);n=t.levels=eJ(n,i);var l=U(n||[],function(p){return new Ee(p,s,i)},this),u=Vp.createTree(a,this,f);function f(p){p.wrapMethod("getItemModel",function(c,v){var h=u.getNodeByDataIndex(v),d=h?l[h.depth]:null;return c.parentModel=d||s,c})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return ft("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treeAncestors=Js(a,this),i.treePathInfo=i.treeAncestors,i},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},k(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var i=this._idIndexMap;i||(i=this._idIndexMap=W(),this._idIndexMapCount=0);var a=i.get(t);return a==null&&i.set(t,a=this._idIndexMapCount++),a},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){Ch(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,coordinateSystemUsage:"box",left:N.size.l,top:N.size.xxxl,right:N.size.l,bottom:N.size.xxxl,sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25B6",zoomToNodeRatio:.32*.32,scaleLimit:{max:5,min:.2},roam:!0,roamTrigger:"global",nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",bottom:N.size.m,emptyItemWidth:25,itemStyle:{color:N.color.backgroundShade,textStyle:{color:N.color.secondary}},emphasis:{itemStyle:{color:N.color.background}}},label:{show:!0,distance:0,padding:5,position:"inside",color:N.color.neutral00,overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:N.color.neutral00,borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e})(ke);function tU(r){var e=0;T(r.children,function(i){tU(i);var a=i.value;V(a)&&(a=a[0]),e+=a});var t=r.value;V(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),V(r.value)?r.value[0]=t:r.value=t}function eJ(r,e){var t=We(e.get("color")),i=We(e.get(["aria","decal","decals"]));if(t){r=r||[];var a,n;T(r,function(s){var l=new Ee(s),u=l.get("color"),f=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(a=!0),(l.get(["itemStyle","decal"])||f&&f!=="none")&&(n=!0)});var o=r[0]||(r[0]={});return a||(o.color=t.slice()),!n&&i&&(o.decal=i.slice()),r}}var rU=$j;var tJ=8,iU=8,tC=5,rJ=(function(){function r(e){this.group=new Q,e.add(this.group)}return r.prototype.render=function(e,t,i,a){var n=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!n.get("show")||!i)){var s=n.getModel("itemStyle"),l=n.getModel("emphasis"),u=s.getModel("textStyle"),f=l.getModel(["itemStyle","textStyle"]),p=Qe(e,t).refContainer,c={left:n.get("left"),right:n.get("right"),top:n.get("top"),bottom:n.get("bottom")},v={emptyItemWidth:n.get("emptyItemWidth"),totalWidth:0,renderList:[]},h=He(c,p);this._prepare(i,v,u),this._renderContent(e,v,h,s,l,u,f,a),_s(o,c,p)}},r.prototype._prepare=function(e,t,i){for(var a=e;a;a=a.parentNode){var n=St(a.getModel().get("name"),""),o=i.getTextRect(n),s=Math.max(o.width+tJ*2,t.emptyItemWidth);t.totalWidth+=s+iU,t.renderList.push({node:a,text:n,width:s})}},r.prototype._renderContent=function(e,t,i,a,n,o,s,l){for(var u=0,f=t.emptyItemWidth,p=e.get(["breadcrumb","height"]),c=t.totalWidth,v=t.renderList,h=n.getModel("itemStyle").getItemStyle(),d=v.length-1;d>=0;d--){var m=v[d],g=m.node,y=m.width,_=m.text;c>i.width&&(c-=y-f,y=f,_=null);var x=new yt({shape:{points:iJ(u,0,y,p,d===v.length-1,d===0)},style:$(a.getItemStyle(),{lineJoin:"bevel"}),textContent:new be({style:Xe(o,{text:_})}),textConfig:{position:"inside"},z2:_o*1e4,onclick:me(l,g)});x.disableLabelAnimation=!0,x.getTextContent().ensureState("emphasis").style=Xe(s,{text:_}),x.ensureState("emphasis").style=h,Be(x,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(x),aJ(x,e,g),u+=y+iU}},r.prototype.remove=function(){this.group.removeAll()},r})();function iJ(r,e,t,i,a,n){var o=[[a?r:r-tC,e],[r+t,e],[r+t,e+i],[a?r:r-tC,e+i]];return!n&&o.splice(2,0,[r+t+tC,e+i/2]),!a&&o.push([r,e+i/2]),o}function aJ(r,e,t){se(r).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:t&&t.dataIndex,name:t&&t.name},treePathInfo:t&&Js(t,e)}}var aU=rJ;var nJ=(function(){function r(){this._storage=[],this._elExistsMap={}}return r.prototype.add=function(e,t,i,a,n){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:i,delay:a,easing:n}),!0)},r.prototype.finished=function(e){return this._finishedCallback=e,this},r.prototype.start=function(){for(var e=this,t=this._storage.length,i=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},a=0,n=this._storage.length;a<n;a++){var o=this._storage[a];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:i,aborted:i})}return this},r})();function nU(){return new nJ}var Ah=Math.max,R0=Math.min,rC=T,sU=["itemStyle","borderWidth"],sJ=["itemStyle","gapWidth"],lJ=["upperLabel","show"],uJ=["upperLabel","height"],lU={seriesType:"treemap",reset:function(r,e,t,i){var a=r.option,n=Qe(r,t).refContainer,o=He(r.getBoxLayoutParams(),n),s=i&&i.type,l=["treemapZoomToNode","treemapRootToNode"],u=Go(i,l,r),f=s==="treemapRender"||s==="treemapMove"?i.rootRect:null,p=r.getViewRoot(),c=jT(p);if(s!=="treemapMove"){var v=!1,h=s==="treemapZoomToNode"?(v=!0,dJ(r,u,p,o)):f?(v=!0,k({},f)):k({},o);if(v){var d=iC(o,h);d=aC(d,r),h.width=o.width*d,h.height=o.height*d}var m=a.sort;m&&m!=="asc"&&m!=="desc"&&(m="desc");var g={squareRatio:a.squareRatio,sort:m,leafDepth:a.leafDepth};p.hostTree.clearLayouts();var y={x:0,y:0,width:h.width,height:h.height,area:h.width*h.height};p.setLayout(y),uU(p,g,!1,0),y=p.getLayout(),rC(c,function(x,S){var b=(c[S+1]||p).getValue();x.setLayout(k({dataExtent:[b,b],borderWidth:0,upperHeight:0},y))})}var _=r.getData().tree.root;_.setLayout(mJ(o,f,u),!0),r.setLayoutInfo(o),fU(_,new oe(-o.x,-o.y,t.getWidth(),t.getHeight()),c,p,0)}};function uU(r,e,t,i){var a,n;if(!r.isRemoved()){var o=r.getLayout();a=o.width,n=o.height;var s=r.getModel(),l=s.get(sU),u=s.get(sJ)/2,f=pU(s),p=Math.max(l,f),c=l-u,v=p-u;r.setLayout({borderWidth:l,upperHeight:p,upperLabelHeight:f},!0),a=Ah(a-2*c,0),n=Ah(n-c-v,0);var h=a*n,d=fJ(r,s,h,e,t,i);if(d.length){var m={x:c,y:v,width:a,height:n},g=R0(a,n),y=1/0,_=[];_.area=0;for(var x=0,S=d.length;x<S;){var b=d[x];_.push(b),_.area+=b.getLayout().area;var w=hJ(_,g,e.squareRatio);w<=y?(x++,y=w):(_.area-=_.pop().getLayout().area,oU(_,g,m,u,!1),g=R0(m.width,m.height),_.length=_.area=0,y=1/0)}if(_.length&&oU(_,g,m,u,!0),!t){var A=s.get("childrenVisibleMin");A!=null&&h<A&&(t=!0)}for(var x=0,S=d.length;x<S;x++)uU(d[x],e,t,i+1)}}}function fJ(r,e,t,i,a,n){var o=r.children||[],s=i.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=i.leafDepth!=null&&i.leafDepth<=n;if(a&&!l)return r.viewChildren=[];o=Ie(o,function(v){return!v.isRemoved()}),cJ(o,s);var u=vJ(e,o,s);if(u.sum===0)return r.viewChildren=[];if(u.sum=pJ(e,t,u.sum,s,o),u.sum===0)return r.viewChildren=[];for(var f=0,p=o.length;f<p;f++){var c=o[f].getValue()/u.sum*t;o[f].setLayout({area:c})}return l&&(o.length&&r.setLayout({isLeafRoot:!0},!0),o.length=0),r.viewChildren=o,r.setLayout({dataExtent:u.dataExtent},!0),o}function pJ(r,e,t,i,a){if(!i)return t;for(var n=r.get("visibleMin"),o=a.length,s=o,l=o-1;l>=0;l--){var u=a[i==="asc"?o-l-1:l].getValue();u/t*e<n&&(s=l,t-=u)}return i==="asc"?a.splice(0,o-s):a.splice(s,o-s),t}function cJ(r,e){return e&&r.sort(function(t,i){var a=e==="asc"?t.getValue()-i.getValue():i.getValue()-t.getValue();return a===0?e==="asc"?t.dataIndex-i.dataIndex:i.dataIndex-t.dataIndex:a}),r}function vJ(r,e,t){for(var i=0,a=0,n=e.length;a<n;a++)i+=e[a].getValue();var o=r.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&t?(s=[e[e.length-1].getValue(),e[0].getValue()],t==="asc"&&s.reverse()):(s=Pt(),rC(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:i,dataExtent:s}}function hJ(r,e,t){for(var i=0,a=1/0,n=0,o=void 0,s=r.length;n<s;n++)o=r[n].getLayout().area,o&&(o<a&&(a=o),o>i&&(i=o));var l=r.area*r.area,u=e*e*t;return l?Ah(u*i/l,l/(u*a)):1/0}function oU(r,e,t,i,a){var n=e===t.width?0:1,o=1-n,s=["x","y"],l=["width","height"],u=t[s[n]],f=e?r.area/e:0;(a||f>t[l[o]])&&(f=t[l[o]]);for(var p=0,c=r.length;p<c;p++){var v=r[p],h={},d=f?v.getLayout().area/f:0,m=h[l[o]]=Ah(f-2*i,0),g=t[s[n]]+t[l[n]]-u,y=p===c-1||g<d?g:d,_=h[l[n]]=Ah(y-2*i,0);h[s[o]]=t[s[o]]+R0(i,m/2),h[s[n]]=u+R0(i,_/2),u+=y,v.setLayout(h,!0)}t[s[o]]+=f,t[l[o]]-=f}function dJ(r,e,t,i){var a=(e||{}).node,n=i.width,o=i.height,s=k({},i);if(!a||a===t)return s;for(var l,u=n*o,f=u*r.option.zoomToNodeRatio;l=a.parentNode;){for(var p=0,c=l.children,v=0,h=c.length;v<h;v++)p+=c[v].getValue();var d=a.getValue();if(d===0)return s;f*=p/d;var m=l.getModel(),g=m.get(sU),y=Math.max(g,pU(m));f+=4*g*g+(3*g+y)*Math.pow(f,.5),f>ls&&(f=ls),a=l}f<u&&(f=u);var _=Math.pow(f/u,.5);return{width:n*_,height:o*_}}function mJ(r,e,t){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!t)return i;var a=t.node,n=a.getLayout();if(!n)return i;for(var o=[n.width/2,n.height/2],s=a;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:r.width/2-o[0],y:r.height/2-o[1]}}function fU(r,e,t,i,a){var n=r.getLayout(),o=t[a],s=o&&o===r;if(!(o&&!s||a===t.length&&r!==i)){r.setLayout({isInView:!0,invisible:!s&&!e.intersect(n),isAboveViewRoot:s},!0);var l=new oe(e.x-n.x,e.y-n.y,e.width,e.height);rC(r.viewChildren||[],function(u){fU(u,l,t,i,a+1)})}}function pU(r){return r.get(lJ)?r.get(uJ):0}function iC(r,e){return e.width/r.width||e.height/r.height||1}function aC(r,e){return T0(r,e.get("scaleLimit",!0))}var nC=Q,cU=de,vU=3,hU="label",dU="upperLabel",gJ=_o*10,yJ=_o*2,_J=_o*3,Uu=xi([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),mU=function(r){var e=Uu(r);return e.stroke=e.fill=e.lineWidth=null,e},O0=ne(),xJ=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._state="ready",t._storage=Eh(),t}return e.prototype.render=function(t,i,a,n){var o=i.findComponents({mainType:"series",subType:"treemap",query:n});if(!(le(o,t)<0)){this.seriesModel=t,this.api=a,this.ecModel=i;var s=["treemapZoomToNode","treemapRootToNode"],l=Go(n,s,t),u=n&&n.type,f=t.layoutInfo,p=!this._oldTree,c=this._storage,v=u==="treemapRootToNode"&&l&&c?{rootNodeGroup:c.nodeGroup[l.node.getRawIndex()],direction:n.direction}:null,h=this._giveContainerGroup(f),d=t.get("animation"),m=this._doRender(h,t,v);d&&!p&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(h,m,t,v):m.renderFinally(),this._resetController(a),this._renderBreadcrumb(t,a,l)}},e.prototype._giveContainerGroup=function(t){var i=this._containerGroup;return i||(i=this._containerGroup=new nC,this._initEvents(i),this.group.add(i)),i.x=t.x,i.y=t.y,i},e.prototype._doRender=function(t,i,a){var n=i.getData().tree,o=this._oldTree,s=Eh(),l=Eh(),u=this._storage,f=[];function p(m,g,y,_){return SJ(i,l,u,a,s,f,m,g,y,_)}v(n.root?[n.root]:[],o&&o.root?[o.root]:[],t,n===o||!o,0);var c=h(u);return this._oldTree=n,this._storage=l,{lastsForAnimation:s,willDeleteEls:c,renderFinally:d};function v(m,g,y,_,x){_?(g=m,T(m,function(w,A){!w.isRemoved()&&b(A,A)})):new Tr(g,m,S,S).add(b).update(b).remove(me(b,null)).execute();function S(w){return w.getId()}function b(w,A){var C=w!=null?m[w]:null,E=A!=null?g[A]:null,D=p(C,E,y,x);D&&v(C&&C.viewChildren||[],E&&E.viewChildren||[],D,_,x+1)}}function h(m){var g=Eh();return m&&T(m,function(y,_){var x=g[_];T(y,function(S){S&&(x.push(S),O0(S).willDelete=!0)})}),g}function d(){T(c,function(m){T(m,function(g){g.parent&&g.parent.remove(g)})}),T(f,function(m){m.invisible=!0,m.dirty()})}},e.prototype._doAnimation=function(t,i,a,n){var o=a.get("animationDurationUpdate"),s=a.get("animationEasing"),l=(J(o)?0:o)||0,u=(J(s)?null:s)||"cubicOut",f=nU();T(i.willDeleteEls,function(p,c){T(p,function(v,h){if(!v.invisible){var d=v.parent,m,g=O0(d);if(n&&n.direction==="drillDown")m=d===n.rootNodeGroup?{shape:{x:0,y:0,width:g.nodeWidth,height:g.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var y=0,_=0;g.willDelete||(y=g.nodeWidth/2,_=g.nodeHeight/2),m=c==="nodeGroup"?{x:y,y:_,style:{opacity:0}}:{shape:{x:y,y:_,width:0,height:0},style:{opacity:0}}}m&&f.add(v,m,l,0,u)}})}),T(this._storage,function(p,c){T(p,function(v,h){var d=i.lastsForAnimation[c][h],m={};d&&(v instanceof Q?d.oldX!=null&&(m.x=v.x,m.y=v.y,v.x=d.oldX,v.y=d.oldY):(d.oldShape&&(m.shape=k({},v.shape),v.setShape(d.oldShape)),d.fadein?(v.setStyle("opacity",0),m.style={opacity:1}):v.style.opacity!==1&&(m.style={opacity:1})),f.add(v,m,l,0,u))})},this),this._state="animating",f.finished(X(function(){this._state="ready",i.renderFinally()},this)).start()},e.prototype._resetController=function(t){var i=this,a=this.seriesModel,n=this._controller;n||(n=this._controller=new Oi(t.getZr()),n.on("pan",X(this._onPan,this)),n.on("zoom",X(this._onZoom,this))),n.enable(a.get("roam"),{api:t,zInfo:{component:a},triggerInfo:{roamTrigger:a.get("roamTrigger"),isInSelf:function(o,s,l){var u=i._containerGroup;return u?u.getBoundingRect().contain(s-u.x,l-u.y):!1}}})},e.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},e.prototype._onPan=function(t){if(this._state!=="animating"&&(Math.abs(t.dx)>vU||Math.abs(t.dy)>vU)){var i=this.seriesModel.getData().tree.root;if(!i)return;var a=i.getLayout();if(!a)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x+t.dx,y:a.y+t.dy,width:a.width,height:a.height}})}},e.prototype._onZoom=function(t){var i=t.originX,a=t.originY,n=t.scale,o=this.seriesModel;if(this._state!=="animating"){var s=o.getData().tree.root;if(!s)return;var l=s.getLayout();if(!l)return;var u=new oe(l.x,l.y,l.width,l.height),f=o.layoutInfo,p=iC(f,l),c=p*n;c=aC(c,o);var v=c/p;i-=f.x,a-=f.y;var h=Je();fr(h,h,[-i,-a]),dl(h,h,[v,v]),fr(h,h,[i,a]),u.applyTransform(h),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x,y:u.y,width:u.width,height:u.height}})}},e.prototype._initEvents=function(t){var i=this;t.on("click",function(a){if(i._state==="ready"){var n=i.seriesModel.get("nodeClick",!0);if(n){var o=i.findTarget(a.offsetX,a.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)i._rootToNode(o);else if(n==="zoomToNode")i._zoomToNode(o);else if(n==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),f=l.get("target",!0)||"blank";u&&su(u,f)}}}}},this)},e.prototype._renderBreadcrumb=function(t,i,a){var n=this;a||(a=t.get("leafDepth",!0)!=null?{node:t.getViewRoot()}:this.findTarget(i.getWidth()/2,i.getHeight()/2),a||(a={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new aU(this.group))).render(t,i,a.node,function(o){n._state!=="animating"&&(Up(t.getViewRoot(),o)?n._rootToNode({node:o}):n._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Eh(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,i){var a,n=this.seriesModel.getViewRoot();return n.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(t,i),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)a={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),a},e.type="treemap",e})(Le);function Eh(){return{nodeGroup:[],background:[],content:[]}}function SJ(r,e,t,i,a,n,o,s,l,u){if(!o)return;var f=o.getLayout(),p=r.getData(),c=o.getModel();if(p.setItemGraphicEl(o.dataIndex,null),!f||!f.isInView)return;var v=f.width,h=f.height,d=f.borderWidth,m=f.invisible,g=o.getRawIndex(),y=s&&s.getRawIndex(),_=o.viewChildren,x=f.upperHeight,S=_&&_.length,b=c.getModel("itemStyle"),w=c.getModel(["emphasis","itemStyle"]),A=c.getModel(["blur","itemStyle"]),C=c.getModel(["select","itemStyle"]),E=b.get("borderRadius")||0,D=ue("nodeGroup",nC);if(!D)return;if(l.add(D),D.x=f.x||0,D.y=f.y||0,D.markRedraw(),O0(D).nodeWidth=v,O0(D).nodeHeight=h,f.isAboveViewRoot)return D;var I=ue("background",cU,u,yJ);I&&G(D,I,S&&f.upperLabelHeight);var M=c.getModel("emphasis"),P=M.get("focus"),O=M.get("blurScope"),R=M.get("disabled"),z=P==="ancestor"?o.getAncestorsIndices():P==="descendant"?o.getDescendantIndices():P;if(S)gs(D)&&So(D,!1),I&&(So(I,!R),p.setItemGraphicEl(o.dataIndex,I),hm(I,z,O));else{var B=ue("content",cU,u,_J);B&&Y(D,B),I.disableMorphing=!0,I&&gs(I)&&So(I,!1),So(D,!R),p.setItemGraphicEl(o.dataIndex,D);var F=c.getShallow("cursor");F&&B.attr("cursor",F),hm(D,z,O)}return D;function G(De,fe,Oe){var pe=se(fe);if(pe.dataIndex=o.dataIndex,pe.seriesIndex=r.seriesIndex,fe.setShape({x:0,y:0,width:v,height:h,r:E}),m)q(fe);else{fe.invisible=!1;var Me=o.getVisual("style"),pt=Me.stroke,Ze=mU(b);Ze.fill=pt;var nt=Uu(w);nt.fill=w.get("borderColor");var ht=Uu(A);ht.fill=A.get("borderColor");var qt=Uu(C);if(qt.fill=C.get("borderColor"),Oe){var Ni=v-2*d;re(fe,pt,Me.opacity,{x:d,y:0,width:Ni,height:x})}else fe.removeTextContent();fe.setStyle(Ze),fe.ensureState("emphasis").style=nt,fe.ensureState("blur").style=ht,fe.ensureState("select").style=qt,Xa(fe)}De.add(fe)}function Y(De,fe){var Oe=se(fe);Oe.dataIndex=o.dataIndex,Oe.seriesIndex=r.seriesIndex;var pe=Math.max(v-2*d,0),Me=Math.max(h-2*d,0);if(fe.culling=!0,fe.setShape({x:d,y:d,width:pe,height:Me,r:E}),m)q(fe);else{fe.invisible=!1;var pt=o.getVisual("style"),Ze=pt.fill,nt=mU(b);nt.fill=Ze,nt.decal=pt.decal;var ht=Uu(w),qt=Uu(A),Ni=Uu(C);re(fe,Ze,pt.opacity,null),fe.setStyle(nt),fe.ensureState("emphasis").style=ht,fe.ensureState("blur").style=qt,fe.ensureState("select").style=Ni,Xa(fe)}De.add(fe)}function q(De){!De.invisible&&n.push(De)}function re(De,fe,Oe,pe){var Me=c.getModel(pe?dU:hU),pt=St(c.get("name"),null),Ze=Me.getShallow("show");it(De,tt(c,pe?dU:hU),{defaultText:Ze?pt:null,inheritColor:fe,defaultOpacity:Oe,labelFetcher:r,labelDataIndex:o.dataIndex});var nt=De.getTextContent();if(nt){var ht=nt.style,qt=uo(ht.padding||0);pe&&(De.setTextConfig({layoutRect:pe}),nt.disableLabelLayout=!0),nt.beforeUpdate=function(){var si=Math.max((pe?pe.width:De.shape.width)-qt[1]-qt[3],0),fl=Math.max((pe?pe.height:De.shape.height)-qt[0]-qt[2],0);(ht.width!==si||ht.height!==fl)&&nt.setStyle({width:si,height:fl})},ht.truncateMinChar=2,ht.lineOverflow="truncate",ie(ht,pe,f);var Ni=nt.getState("emphasis");ie(Ni?Ni.style:null,pe,f)}}function ie(De,fe,Oe){var pe=De?De.text:null;if(!fe&&Oe.isLeafRoot&&pe!=null){var Me=r.get("drillDownIcon",!0);De.text=Me?Me+" "+pe:pe}}function ue(De,fe,Oe,pe){var Me=y!=null&&t[De][y],pt=a[De];return Me?(t[De][y]=null,Pe(pt,Me)):m||(Me=new fe,Me instanceof Ut&&(Me.z2=bJ(Oe,pe)),$e(pt,Me)),e[De][g]=Me}function Pe(De,fe){var Oe=De[g]={};fe instanceof nC?(Oe.oldX=fe.x,Oe.oldY=fe.y):Oe.oldShape=k({},fe.shape)}function $e(De,fe){var Oe=De[g]={},pe=o.parentNode,Me=fe instanceof Q;if(pe&&(!i||i.direction==="drillDown")){var pt=0,Ze=0,nt=a.background[pe.getRawIndex()];!i&&nt&&nt.oldShape&&(pt=nt.oldShape.width,Ze=nt.oldShape.height),Me?(Oe.oldX=0,Oe.oldY=Ze):Oe.oldShape={x:pt,y:Ze,width:0,height:0}}Oe.fadein=!Me}}function bJ(r,e){return r*gJ+e}var gU=xJ;var Ih=T,wJ=te,z0=-1,uC=(function(){function r(e){var t=e.mappingMethod,i=e.type,a=this.option=ee(e);this.type=i,this.mappingMethod=t,this._normalizeData=AJ[t];var n=r.visualHandlers[i];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[t],t==="piecewise"?(oC(a),TJ(a)):t==="category"?a.categories?CJ(a):oC(a,!0):(at(t!=="linear"||a.dataExtent),oC(a))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return X(this._normalizeData,this)},r.listVisualTypes=function(){return ye(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,i){te(e)?T(e,t,i):t.call(i,e)},r.mapVisual=function(e,t,i){var a,n=V(e)?[]:te(e)?{}:(a=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(i,o,s);a?n=l:n[s]=l}),n},r.retrieveVisuals=function(e){var t={},i;return e&&Ih(r.visualHandlers,function(a,n){e.hasOwnProperty(n)&&(t[n]=e[n],i=!0)}),i?t:null},r.prepareVisualTypes=function(e){if(V(e))e=e.slice();else if(wJ(e)){var t=[];Ih(e,function(i,a){t.push(a)}),e=t}else return[];return e.sort(function(i,a){return a==="color"&&i!=="color"&&i.indexOf("color")===0?1:-1}),e},r.dependsOn=function(e,t){return t==="color"?!!(e&&e.indexOf(t)===0):e===t},r.findPieceIndex=function(e,t,i){for(var a,n=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||H(l)&&l===e+"")return o;i&&c(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,p=u.close;if(f){if(f[0]===-1/0){if(k0(p[1],e,f[1]))return o}else if(f[1]===1/0){if(k0(p[0],f[0],e))return o}else if(k0(p[0],f[0],e)&&k0(p[1],e,f[1]))return o;i&&c(f[0],o),i&&c(f[1],o)}}if(i)return e===1/0?t.length-1:e===-1/0?0:a;function c(v,h){var d=Math.abs(v-e);d<n&&(n=d,a=h)}},r.visualHandlers={color:{applyVisual:Dh("color"),getColorMapper:function(){var e=this.option;return X(e.mappingMethod==="category"?function(t,i){return!i&&(t=this._normalizeData(t)),Mh.call(this,t)}:function(t,i,a){var n=!!a;return!i&&(t=this._normalizeData(t)),a=vf(t,e.parsedVisual,a),n?a:Ir(a,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Ir(vf(e,this.option.parsedVisual),"rgba")},category:Mh,piecewise:function(e,t){var i=lC.call(this,t);return i==null&&(i=Ir(vf(e,this.option.parsedVisual),"rgba")),i},fixed:Bu}},colorHue:N0(function(e,t){return Bi(e,t)}),colorSaturation:N0(function(e,t){return Bi(e,null,t)}),colorLightness:N0(function(e,t){return Bi(e,null,null,t)}),colorAlpha:N0(function(e,t){return rs(e,t)}),decal:{applyVisual:Dh("decal"),_normalizedToVisual:{linear:null,category:Mh,piecewise:null,fixed:null}},opacity:{applyVisual:Dh("opacity"),_normalizedToVisual:sC([0,1])},liftZ:{applyVisual:Dh("liftZ"),_normalizedToVisual:{linear:Bu,category:Bu,piecewise:Bu,fixed:Bu}},symbol:{applyVisual:function(e,t,i){var a=this.mapValueToVisual(e);i("symbol",a)},_normalizedToVisual:{linear:yU,category:Mh,piecewise:function(e,t){var i=lC.call(this,t);return i==null&&(i=yU.call(this,e)),i},fixed:Bu}},symbolSize:{applyVisual:Dh("symbolSize"),_normalizedToVisual:sC([0,1])}},r})();function TJ(r){var e=r.pieceList;r.hasSpecialVisual=!1,T(e,function(t,i){t.originIndex=i,t.visual!=null&&(r.hasSpecialVisual=!0)})}function CJ(r){var e=r.categories,t=r.categoryMap={},i=r.visual;if(Ih(e,function(o,s){t[o]=s}),!V(i)){var a=[];te(i)?Ih(i,function(o,s){var l=t[s];a[l??z0]=o}):a[z0]=i,i=_U(r,a)}for(var n=e.length-1;n>=0;n--)i[n]==null&&(delete t[e[n]],e.pop())}function oC(r,e){var t=r.visual,i=[];te(t)?Ih(t,function(n){i.push(n)}):t!=null&&i.push(t);var a={color:1,symbol:1};!e&&i.length===1&&!a.hasOwnProperty(r.type)&&(i[1]=i[0]),_U(r,i)}function N0(r){return{applyVisual:function(e,t,i){var a=this.mapValueToVisual(e);i("color",r(t("color"),a))},_normalizedToVisual:sC([0,1])}}function yU(r){var e=this.option.visual;return e[Math.round(Ue(r,[0,1],[0,e.length-1],!0))]||{}}function Dh(r){return function(e,t,i){i(r,this.mapValueToVisual(e))}}function Mh(r){var e=this.option.visual;return e[this.option.loop&&r!==z0?r%e.length:r]}function Bu(){return this.option.visual[0]}function sC(r){return{linear:function(e){return Ue(e,r,this.option.visual,!0)},category:Mh,piecewise:function(e,t){var i=lC.call(this,t);return i==null&&(i=Ue(e,r,this.option.visual,!0)),i},fixed:Bu}}function lC(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var i=uC.findPieceIndex(r,t),a=t[i];if(a&&a.visual)return a.visual[this.type]}}function _U(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=U(e,function(t){var i=Wt(t);return i||[0,0,0,1]})),e}var AJ={linear:function(r){return Ue(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=uC.findPieceIndex(r,e,!0);if(t!=null)return Ue(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e??z0},fixed:et};function k0(r,e,t){return r?e<=t:e<t}var Nt=uC;var EJ="itemStyle",SU=ne(),bU={seriesType:"treemap",reset:function(r){var e=r.getData().tree,t=e.root;t.isRemoved()||wU(t,{},r.getViewRoot().getAncestors(),r)}};function wU(r,e,t,i){var a=r.getModel(),n=r.getLayout(),o=r.hostTree.data;if(!(!n||n.invisible||!n.isInView)){var s=a.getModel(EJ),l=DJ(s,e,i),u=o.ensureUniqueItemVisual(r.dataIndex,"style"),f=s.get("borderColor"),p=s.get("borderColorSaturation"),c;p!=null&&(c=xU(l),f=MJ(p,c)),u.stroke=f;var v=r.viewChildren;if(!v||!v.length)c=xU(l),u.fill=c;else{var h=IJ(r,a,n,s,l,v);T(v,function(d,m){if(d.depth>=t.length||d===t[d.depth]){var g=LJ(a,l,d,m,h,i);wU(d,g,t,i)}})}}}function DJ(r,e,t){var i=k({},e),a=t.designatedVisualItemStyle;return T(["color","colorAlpha","colorSaturation"],function(n){a[n]=e[n];var o=r.get(n);a[n]=null,o!=null&&(i[n]=o)}),i}function xU(r){var e=fC(r,"color");if(e){var t=fC(r,"colorAlpha"),i=fC(r,"colorSaturation");return i&&(e=Bi(e,null,null,i)),t&&(e=rs(e,t)),e}}function MJ(r,e){return e!=null?Bi(e,null,null,r):null}function fC(r,e){var t=r[e];if(t!=null&&t!=="none")return t}function IJ(r,e,t,i,a,n){if(!(!n||!n.length)){var o=pC(e,"color")||a.color!=null&&a.color!=="none"&&(pC(e,"colorAlpha")||pC(e,"colorSaturation"));if(o){var s=e.get("visualMin"),l=e.get("visualMax"),u=t.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var f=e.get("colorMappingBy"),p={type:o.name,dataExtent:u,visual:o.range};p.type==="color"&&(f==="index"||f==="id")?(p.mappingMethod="category",p.loop=!0):p.mappingMethod="linear";var c=new Nt(p);return SU(c).drColorMappingBy=f,c}}}function pC(r,e){var t=r.get(e);return V(t)&&t.length?{name:e,range:t}:null}function LJ(r,e,t,i,a,n){var o=k({},e);if(a){var s=a.type,l=s==="color"&&SU(a).drColorMappingBy,u=l==="index"?i:l==="id"?n.mapIdToIndex(t.getId()):t.getValue(r.get("visualDimension"));o[s]=a.mapValueToVisual(u)}return o}function cC(r){r.registerSeriesModel(rU),r.registerChartView(gU),r.registerVisual(bU),r.registerLayout(lU),eU(r)}function Fp(r){return"_EC_"+r}var PJ=(function(){function r(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return r.prototype.isDirected=function(){return this._directed},r.prototype.addNode=function(e,t){e=e==null?""+t:""+e;var i=this._nodesMap;if(!i[Fp(e)]){var a=new Fu(e,t);return a.hostGraph=this,this.nodes.push(a),i[Fp(e)]=a,a}},r.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},r.prototype.getNodeById=function(e){return this._nodesMap[Fp(e)]},r.prototype.addEdge=function(e,t,i){var a=this._nodesMap,n=this._edgesMap;if(_e(e)&&(e=this.nodes[e]),_e(t)&&(t=this.nodes[t]),e instanceof Fu||(e=a[Fp(e)]),t instanceof Fu||(t=a[Fp(t)]),!(!e||!t)){var o=e.id+"-"+t.id,s=new TU(e,t,i);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),t.inEdges.push(s)),e.edges.push(s),e!==t&&t.edges.push(s),this.edges.push(s),n[o]=s,s}},r.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},r.prototype.getEdge=function(e,t){e instanceof Fu&&(e=e.id),t instanceof Fu&&(t=t.id);var i=this._edgesMap;return this._directed?i[e+"-"+t]:i[e+"-"+t]||i[t+"-"+e]},r.prototype.eachNode=function(e,t){for(var i=this.nodes,a=i.length,n=0;n<a;n++)i[n].dataIndex>=0&&e.call(t,i[n],n)},r.prototype.eachEdge=function(e,t){for(var i=this.edges,a=i.length,n=0;n<a;n++)i[n].dataIndex>=0&&i[n].node1.dataIndex>=0&&i[n].node2.dataIndex>=0&&e.call(t,i[n],n)},r.prototype.breadthFirstTraverse=function(e,t,i,a){if(t instanceof Fu||(t=this._nodesMap[Fp(t)]),!!t){for(var n=i==="out"?"outEdges":i==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(a,t,null))for(var s=[t];s.length;)for(var l=s.shift(),u=l[n],o=0;o<u.length;o++){var f=u[o],p=f.node1===l?f.node2:f.node1;if(!p.__visited){if(e.call(a,p,l))return;s.push(p),p.__visited=!0}}}},r.prototype.update=function(){for(var e=this.data,t=this.edgeData,i=this.nodes,a=this.edges,n=0,o=i.length;n<o;n++)i[n].dataIndex=-1;for(var n=0,o=e.count();n<o;n++)i[e.getRawIndex(n)].dataIndex=n;t.filterSelf(function(s){var l=a[t.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var n=0,o=a.length;n<o;n++)a[n].dataIndex=-1;for(var n=0,o=t.count();n<o;n++)a[t.getRawIndex(n)].dataIndex=n},r.prototype.clone=function(){for(var e=new r(this._directed),t=this.nodes,i=this.edges,a=0;a<t.length;a++)e.addNode(t[a].id,t[a].dataIndex);for(var a=0;a<i.length;a++){var n=i[a];e.addEdge(n.node1.id,n.node2.id,n.dataIndex)}return e},r})(),Fu=(function(){function r(e,t){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=t??-1}return r.prototype.degree=function(){return this.edges.length},r.prototype.inDegree=function(){return this.inEdges.length},r.prototype.outDegree=function(){return this.outEdges.length},r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.data.getItemModel(this.dataIndex);return i.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},t=0;t<this.edges.length;t++){var i=this.edges[t];i.dataIndex<0||(e.edge.push(i.dataIndex),e.node.push(i.node1.dataIndex,i.node2.dataIndex))}return e},r.prototype.getTrajectoryDataIndices=function(){for(var e=W(),t=W(),i=0,a=this.edges.length;i<a;i++){var n=this.edges[i];if(!(n.dataIndex<0)){e.set(n.dataIndex,!0);for(var o=[n.node1],s=[n.node2],l=0;l<o.length;){var u=o[l];l++,t.set(u.dataIndex,!0);for(var f=u.inEdges,p=0,c=f.length,v=void 0,h=void 0;p<c;p++)v=f[p],h=v.dataIndex,h>=0&&!e.hasKey(h)&&(e.set(h,!0),o.push(v.node1))}for(l=0;l<s.length;){var d=s[l];l++,t.set(d.dataIndex,!0);for(var m=d.outEdges,p=0,g=m.length,y=void 0,_=void 0;p<g;p++)y=m[p],_=y.dataIndex,_>=0&&!e.hasKey(_)&&(e.set(_,!0),s.push(y.node2))}}}return{edge:e.keys(),node:t.keys()}},r})(),TU=(function(){function r(e,t,i){this.dataIndex=-1,this.node1=e,this.node2=t,this.dataIndex=i??-1}return r.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostGraph,i=t.edgeData.getItemModel(this.dataIndex);return i.getModel(e)}},r.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},r.prototype.getTrajectoryDataIndices=function(){var e=W(),t=W();e.set(this.dataIndex,!0);for(var i=[this.node1],a=[this.node2],n=0;n<i.length;){var o=i[n];n++,t.set(o.dataIndex,!0);for(var s=o.inEdges,l=0,u=s.length,f=void 0,p=void 0;l<u;l++)f=o.inEdges[l],p=f.dataIndex,p>=0&&!e.hasKey(p)&&(e.set(p,!0),i.push(f.node1))}for(n=0;n<a.length;){var c=a[n];n++,t.set(c.dataIndex,!0);for(var v=c.outEdges,l=0,u=v.length,h=void 0,d=void 0;l<u;l++)h=c.outEdges[l],d=h.dataIndex,d>=0&&!e.hasKey(d)&&(e.set(d,!0),a.push(h.node2))}return{edge:e.keys(),node:t.keys()}},r})();function CU(r,e){return{getValue:function(t){var i=this[r][e];return i.getStore().get(i.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,i){this.dataIndex>=0&&this[r][e].setItemVisual(this.dataIndex,t,i)},getVisual:function(t){return this[r][e].getItemVisual(this.dataIndex,t)},setLayout:function(t,i){this.dataIndex>=0&&this[r][e].setItemLayout(this.dataIndex,t,i)},getLayout:function(){return this[r][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[r][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[r][e].getRawIndex(this.dataIndex)}}}rt(Fu,CU("hostGraph","data"));rt(TU,CU("hostGraph","edgeData"));var AU=PJ;function Gu(r,e,t,i,a){for(var n=new AU(i),o=0;o<r.length;o++)n.addNode(Et(r[o].id,r[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var f=e[o],p=f.source,c=f.target;n.addEdge(p,c,u)&&(l.push(f),s.push(Et(St(f.id,null),p+" > "+c)),u++)}var v=t.get("coordinateSystem"),h;if(v==="cartesian2d"||v==="polar"||v==="matrix")h=nr(r,t);else{var d=Fn.get(v),m=d?d.dimensions||[]:[];le(m,"value")<0&&m.concat(["value"]);var g=Sa(r,{coordDimensions:m,encodeDefine:t.getEncode()}).dimensions;h=new Ct(g,t),h.initData(r)}var y=new Ct(["value"],t);return y.initData(l,s),a&&a(h,y),P0({mainData:h,struct:n,structAttr:"graph",datas:{node:h,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),n.update(),n}var vC="-->",V0=function(r){return r.get("autoCurveness")||null},EU=function(r,e){var t=V0(r),i=20,a=[];if(_e(t))i=t;else if(V(t)){r.__curvenessList=t;return}e>i&&(i=e);var n=i%2?i+2:i+3;a=[];for(var o=0;o<n;o++)a.push((o%2?o+1:o)/10*(o%2?-1:1));r.__curvenessList=a},Lh=function(r,e,t){var i=[r.id,r.dataIndex].join("."),a=[e.id,e.dataIndex].join(".");return[t.uid,i,a].join(vC)},DU=function(r){var e=r.split(vC);return[e[0],e[2],e[1]].join(vC)},RJ=function(r,e){var t=Lh(r.node1,r.node2,e);return e.__edgeMap[t]},OJ=function(r,e){var t=hC(Lh(r.node1,r.node2,e),e),i=hC(Lh(r.node2,r.node1,e),e);return t+i},hC=function(r,e){var t=e.__edgeMap;return t[r]?t[r].length:0};function MU(r){V0(r)&&(r.__curvenessList=[],r.__edgeMap={},EU(r))}function IU(r,e,t,i){if(V0(t)){var a=Lh(r,e,t),n=t.__edgeMap,o=n[DU(a)];n[a]&&!o?n[a].isForward=!0:o&&n[a]&&(o.isForward=!0,n[a].isForward=!1),n[a]=n[a]||[],n[a].push(i)}}function Gp(r,e,t,i){var a=V0(e),n=V(a);if(!a)return null;var o=RJ(r,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===t){s=l;break}var u=OJ(r,e);EU(e,u),r.lineStyle=r.lineStyle||{};var f=Lh(r.node1,r.node2,e),p=e.__curvenessList,c=n||u%2?0:1;if(o.isForward)return p[c+s];var v=DU(f),h=hC(v,e),d=p[s+h+c];return i?n?a&&a[0]===0?(h+c)%2?d:-d:((h%2?0:1)+c)%2?d:-d:(h+c)%2?d:-d:p[s+h+c]}var Ft="graph",NJ=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments);var i=this;function a(){return i._categoriesData}this.legendVisualProvider=new Ea(a,a),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(t){r.prototype.mergeDefaultAndTheme.apply(this,arguments),Fi(t,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,i){var a=t.edges||t.links||[],n=t.data||t.nodes||[],o=this;if(n&&a){MU(this);var s=Gu(n,a,this,!0,l);return T(s.edges,function(u){IU(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,f){u.wrapMethod("getItemModel",function(h){var d=o._categoriesModels,m=h.getShallow("category"),g=d[m];return g&&(g.parentModel=h.parentModel,h.parentModel=g),h});var p=Ee.prototype.getModel;function c(h,d){var m=p.call(this,h,d);return m.resolveParentPath=v,m}f.wrapMethod("getItemModel",function(h){return h.resolveParentPath=v,h.getModel=c,h});function v(h){if(h&&(h[0]==="label"||h[1]==="label")){var d=h.slice();return h[0]==="label"?d[0]="edgeLabel":h[1]==="label"&&(d[1]="edgeLabel"),d}return h}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,i,a){if(a==="edge"){var n=this.getData(),o=this.getDataParams(t,a),s=n.graph.getEdgeByIndex(t),l=n.getName(s.node1.dataIndex),u=n.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ft("nameValue",{name:f.join(" > "),value:o.value,noValue:o.value==null})}var p=Dg({series:this,dataIndex:t,multipleSeries:i});return p},e.prototype._updateCategoriesData=function(){var t=U(this.option.categories||[],function(a){return a.value!=null?a:k({value:0},a)}),i=new Ct(["value"],this);i.initData(t),this._categoriesData=i,this._categoriesModels=i.mapArray(function(a){return i.getItemModel(a)})},e.prototype.isAnimationEnabled=function(){return r.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.prototype.__ownRoamView=function(){var t=this.coordinateSystem;return x0(t)&&t},e.type="series."+Ft,e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:N.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:N.color.primary}}},e})(ke),LU=NJ;function U0(r){return r instanceof Array||(r=[r,r]),r}var PU=qe(Ft,kJ);function kJ(r){r.eachSeriesByType(Ft,function(e){var t=e.getGraph(),i=e.getEdgeData(),a=U0(e.get("edgeSymbol")),n=U0(e.get("edgeSymbolSize"));i.setVisual("fromSymbol",a&&a[0]),i.setVisual("toSymbol",a&&a[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),i.setVisual("style",e.getModel("lineStyle").getLineStyle()),i.each(function(o){var s=i.getItemModel(o),l=t.getEdgeByIndex(o),u=U0(s.getShallow("symbol",!0)),f=U0(s.getShallow("symbolSize",!0)),p=s.getModel("lineStyle").getLineStyle(),c=i.ensureUniqueItemVisual(o,"style");switch(k(c,p),c.stroke){case"source":{var v=l.node1.getVisual("style");c.stroke=v&&v.fill;break}case"target":{var v=l.node2.getVisual("style");c.stroke=v&&v.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),f[0]&&l.setVisual("fromSymbolSize",f[0]),f[1]&&l.setVisual("toSymbolSize",f[1])})})}function B0(r){var e=r.coordinateSystem;if(!(e&&e.type!=="view")){var t=r.getGraph();t.eachNode(function(i){var a=i.getModel();i.setLayout([+a.get("x"),+a.get("y")])}),Ph(t,r)}}function Ph(r,e){r.eachEdge(function(t,i){var a=Dt(t.getModel().get(["lineStyle","curveness"]),-Gp(t,e,i,!0),0),n=Gr(t.node1.getLayout()),o=Gr(t.node2.getLayout()),s=[n,o];+a&&s.push([(n[0]+o[0])/2-(n[1]-o[1])*a,(n[1]+o[1])/2-(o[0]-n[0])*a]),t.setLayout(s)})}var RU=qe(Ft,zJ);function zJ(r,e){r.eachSeriesByType(Ft,function(t){var i=t.get("layout"),a=t.coordinateSystem;if(a&&a.type!=="view"){var n=t.getData(),o=[];T(a.dimensions,function(c){o=o.concat(n.mapDimensionsAll(c))});for(var s=0;s<n.count();s++){for(var l=[],u=!1,f=0;f<o.length;f++){var p=n.get(o[f],s);isNaN(p)||(u=!0),l.push(p)}u?n.setItemLayout(s,a.dataToPoint(l)):n.setItemLayout(s,[NaN,NaN])}Ph(n.graph,t)}else(!i||i==="none")&&B0(t)})}function Hu(r){var e=r.coordinateSystem;return x0(e)?C0(e,r):1}function Yu(r){var e=r.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var OU=Math.PI,dC=[];function Hp(r,e,t,i){var a=r.coordinateSystem;if(!(a&&a.type!=="view")){var n=a.getBoundingRect(),o=r.getData(),s=o.graph,l=n.width/2+n.x,u=n.height/2+n.y,f=Math.min(n.width,n.height)/2,p=o.count();if(o.setLayout({cx:l,cy:u}),!!p){if(t){var c=a.pointToData(i),v=c[0],h=c[1],d=[v-l,h-u];zi(d,d),vl(d,d,f),t.setLayout([l+d[0],u+d[1]],!0);var m=r.get(["circular","rotateLabel"]);mC(t,m,l,u)}VJ[e](r,s,o,f,l,u,p),s.eachEdge(function(g,y){var _=Dt(g.getModel().get(["lineStyle","curveness"]),Gp(g,r,y),0),x=Gr(g.node1.getLayout()),S=Gr(g.node2.getLayout()),b,w=(x[0]+S[0])/2,A=(x[1]+S[1])/2;+_&&(_*=3,b=[l*_+w*(1-_),u*_+A*(1-_)]),g.setLayout([x,S,b])})}}}var VJ={value:function(r,e,t,i,a,n,o){var s=0,l=t.getSum("value"),u=Math.PI*2/(l||o);e.eachNode(function(f){var p=f.getValue("value"),c=u*(l?p:1)/2;s+=c,f.setLayout([i*Math.cos(s)+a,i*Math.sin(s)+n]),s+=c})},symbolSize:function(r,e,t,i,a,n,o){var s=0;dC.length=o;var l=Hu(r);e.eachNode(function(p){var c=Yu(p);isNaN(c)&&(c=2),c<0&&(c=0),c*=l;var v=Math.asin(c/2/i);isNaN(v)&&(v=OU/2),dC[p.dataIndex]=v,s+=v*2});var u=(2*OU-s)/o/2,f=0;e.eachNode(function(p){var c=u+dC[p.dataIndex];f+=c,(!p.getLayout()||!p.getLayout().fixed)&&p.setLayout([i*Math.cos(f)+a,i*Math.sin(f)+n]),f+=c})}};function mC(r,e,t,i){var a=r.getGraphicEl();if(a){var n=r.getModel(),o=n.get(["label","rotate"])||0,s=a.getSymbolPath();if(e){var l=r.getLayout(),u=Math.atan2(l[1]-i,l[0]-t);u<0&&(u=Math.PI*2+u);var f=l[0]<t;f&&(u=u-Math.PI);var p=f?"left":"right";s.setTextConfig({rotation:-u,position:p,origin:"center"});var c=s.ensureState("emphasis");k(c.textConfig||(c.textConfig={}),{position:p})}else s.setTextConfig({rotation:o*=Math.PI/180})}}var NU=qe(Ft,UJ);function UJ(r){r.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&Hp(e,"symbolSize")})}var Yp=nf;function kU(r,e,t){for(var i=r,a=e,n=t.rect,o=n.width,s=n.height,l=[n.x+o/2,n.y+s/2],u=t.gravity==null?.1:t.gravity,f=0;f<i.length;f++){var p=i[f];p.p||(p.p=ka(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),p.pp=Gr(p.p),p.edges=null}var c=t.friction==null?.6:t.friction,v=c,h,d;return{warmUp:function(){v=c*.8},setFixed:function(m){i[m].fixed=!0},setUnfixed:function(m){i[m].fixed=!1},beforeStep:function(m){h=m},afterStep:function(m){d=m},step:function(m){h&&h(i,a);for(var g=[],y=i.length,_=0;_<a.length;_++){var x=a[_];if(!x.ignoreForceLayout){var S=x.n1,b=x.n2;ta(g,b.p,S.p);var w=of(g)-x.d,A=b.w/(S.w+b.w);isNaN(A)&&(A=0),zi(g,g),!S.fixed&&Yp(S.p,S.p,g,A*w*v),!b.fixed&&Yp(b.p,b.p,g,-(1-A)*w*v)}}for(var _=0;_<y;_++){var C=i[_];C.fixed||(ta(g,l,C.p),Yp(C.p,C.p,g,u*v))}for(var _=0;_<y;_++)for(var S=i[_],E=_+1;E<y;E++){var b=i[E];ta(g,b.p,S.p);var w=of(g);w===0&&(ki(g,Math.random()-.5,Math.random()-.5),w=1);var D=(S.rep+b.rep)/w/w;!S.fixed&&Yp(S.pp,S.pp,g,D),!b.fixed&&Yp(b.pp,b.pp,g,-D)}for(var I=[],_=0;_<y;_++){var C=i[_];C.fixed||(ta(I,C.p,C.pp),Yp(C.p,C.p,I,v),jt(C.pp,C.p))}v=v*.992;var M=v<.01;d&&d(i,a,M),m&&m(M)}}}var zU=qe(Ft,BJ);function BJ(r){r.eachSeriesByType(Ft,function(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view"))if(e.get("layout")==="force"){var i=e.preservedPoints||{},a=e.getGraph(),n=a.data,o=a.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?n.each(function(_){var x=n.getId(_);n.setItemLayout(_,i[x]||[NaN,NaN])}):!l||l==="none"?B0(e):l==="circular"&&Hp(e,"value");var u=n.getDataExtent("value"),f=o.getDataExtent("value"),p=s.get("repulsion"),c=s.get("edgeLength"),v=V(p)?p:[p,p],h=V(c)?c:[c,c];h=[h[1],h[0]];var d=n.mapArray("value",function(_,x){var S=n.getItemLayout(x),b=Ue(_,u,v);return isNaN(b)&&(b=(v[0]+v[1])/2),{w:b,rep:b,fixed:n.getItemModel(x).get("fixed"),p:!S||isNaN(S[0])||isNaN(S[1])?null:S}}),m=o.mapArray("value",function(_,x){var S=a.getEdgeByIndex(x),b=Ue(_,f,h);isNaN(b)&&(b=(h[0]+h[1])/2);var w=S.getModel(),A=Dt(S.getModel().get(["lineStyle","curveness"]),-Gp(S,e,x,!0),0);return{n1:d[S.node1.dataIndex],n2:d[S.node2.dataIndex],d:b,curveness:A,ignoreForceLayout:w.get("ignoreForceLayout")}}),g=t.getBoundingRect(),y=kU(d,m,{rect:g,gravity:s.get("gravity"),friction:s.get("friction")});y.beforeStep(function(_,x){for(var S=0,b=_.length;S<b;S++)_[S].fixed&&jt(_[S].p,a.getNodeByIndex(S).getLayout())}),y.afterStep(function(_,x,S){for(var b=0,w=_.length;b<w;b++)_[b].fixed||a.getNodeByIndex(b).setLayout(_[b].p),i[n.getId(b)]=_[b].p;for(var b=0,w=x.length;b<w;b++){var A=x[b],C=a.getEdgeByIndex(b),E=A.n1.p,D=A.n2.p,I=C.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],jt(I[0],E),jt(I[1],D),+A.curveness&&(I[2]=[(E[0]+D[0])/2-(E[1]-D[1])*A.curveness,(E[1]+D[1])/2-(D[0]-E[0])*A.curveness]),C.setLayout(I)}}),e.forceLayout=y,e.preservedPoints=i,y.step()}else e.forceLayout=null})}function FJ(r,e,t){var i=Qe(r,e),a=k(r.getBoxLayoutParams(),{aspect:t}),n=He(a,i.refContainer);return sg(r,n,t)}function gC(r,e){var t=[];return r.eachSeriesByType("graph",function(i){Bn({targetModel:i,coordSysType:"view",coordSysProvider:a,isDefaultDataCoordSys:!0});function a(){var n=i.getData(),o=n.mapArray(function(h){var d=n.getItemModel(h);return[+d.get("x"),+d.get("y")]}),s=[],l=[];Ul(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),f=FJ(i,e,u);isNaN(u)&&(s=[f.x,f.y],l=[f.x+f.width,f.y+f.height]);var p=l[0]-s[0],c=l[1]-s[1],v=Op(i,e,s[0],s[1],p,c,f);return t.push(v),v}}),t}var VU=ut.prototype,yC=wo.prototype,UU=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),jRe=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e})(UU);function _C(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var GJ=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i.type="ec-line",i}return e.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new UU},e.prototype.buildPath=function(t,i){_C(i)?VU.buildPath.call(this,t,i):yC.buildPath.call(this,t,i)},e.prototype.pointAt=function(t){return _C(this.shape)?VU.pointAt.call(this,t):yC.pointAt.call(this,t)},e.prototype.tangentAt=function(t){var i=this.shape,a=_C(i)?[i.x2-i.x1,i.y2-i.y1]:yC.tangentAt.call(this,t);return zi(a,a)},e})(ce),F0=GJ;var xC=["fromSymbol","toSymbol"];function BU(r){return"_"+r+"Type"}function FU(r,e,t){var i=e.getItemVisual(t,r);if(!i||i==="none")return i;var a=e.getItemVisual(t,r+"Size"),n=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=tn(a),u=Xi(o||0,l);return i+l+u+(n||"")+(s||"")}function GU(r,e,t){var i=e.getItemVisual(t,r);if(!(!i||i==="none")){var a=e.getItemVisual(t,r+"Size"),n=e.getItemVisual(t,r+"Rotate"),o=e.getItemVisual(t,r+"Offset"),s=e.getItemVisual(t,r+"KeepAspect"),l=tn(a),u=Xi(o||0,l),f=je(i,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return f.__specifiedRotation=n==null||isNaN(n)?void 0:+n*Math.PI/180||0,f.name=r,f}}function HJ(r){var e=new F0({name:"line",subPixelOptimize:!0});return SC(e.shape,r),e}function SC(r,e){r.x1=e[0][0],r.y1=e[0][1],r.x2=e[1][0],r.y2=e[1][1],r.percent=1;var t=e[2];t?(r.cpx1=t[0],r.cpy1=t[1]):(r.cpx1=NaN,r.cpy1=NaN)}var YJ=(function(r){L(e,r);function e(t,i,a){var n=r.call(this)||this;return n._createLine(t,i,a),n}return e.prototype._createLine=function(t,i,a){var n=t.hostModel,o=t.getItemLayout(i),s=t.getItemVisual(i,"z2"),l=HJ(o);l.shape.percent=0,Ge(l,{z2:Z(s,0),shape:{percent:1}},n,i),this.add(l),T(xC,function(u){var f=GU(u,t,i);this.add(f),this[BU(u)]=FU(u,t,i)},this),this._updateCommonStl(t,i,a)},e.prototype.updateData=function(t,i,a){var n=t.hostModel,o=this.childOfName("line"),s=t.getItemLayout(i),l={shape:{}};SC(l.shape,s),Ae(o,l,n,i),T(xC,function(u){var f=FU(u,t,i),p=BU(u);if(this[p]!==f){this.remove(this.childOfName(u));var c=GU(u,t,i);this.add(c)}this[p]=f},this),this._updateCommonStl(t,i,a)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(t,i,a){var n=t.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,f=a&&a.labelStatesModels,p=a&&a.emphasisDisabled,c=a&&a.focus,v=a&&a.blurScope;if(!a||t.hasItemOption){var h=t.getItemModel(i),d=h.getModel("emphasis");s=d.getModel("lineStyle").getLineStyle(),l=h.getModel(["blur","lineStyle"]).getLineStyle(),u=h.getModel(["select","lineStyle"]).getLineStyle(),p=d.get("disabled"),c=d.get("focus"),v=d.get("blurScope"),f=tt(h)}var m=t.getItemVisual(i,"style"),g=m.stroke;o.useStyle(m),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,T(xC,function(b){var w=this.childOfName(b);if(w){w.setColor(g),w.style.opacity=m.opacity;for(var A=0;A<ir.length;A++){var C=ir[A],E=o.getState(C);if(E){var D=E.style||{},I=w.ensureState(C),M=I.style||(I.style={});D.stroke!=null&&(M[w.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(M.opacity=D.opacity)}}w.markRedraw()}},this);var y=n.getRawValue(i);it(this,f,{labelDataIndex:i,labelFetcher:{getFormattedLabel:function(b,w){return n.getFormattedLabel(b,w,t.dataType)}},inheritColor:g||N.color.neutral99,defaultOpacity:m.opacity,defaultText:(y==null?t.getName(i):isFinite(y)?Ne(y,10):y)+""});var _=this.getTextContent();if(_){var x=f.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=x.get("position")||"middle";var S=x.get("distance");V(S)||(S=[S,S]),_.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),Be(this,c,v,p)},e.prototype.highlight=function(){Pr(this)},e.prototype.downplay=function(){Rr(this)},e.prototype.updateLayout=function(t,i){this.childOfName("line").stopAnimation(),this.setLinePoints(t.getItemLayout(i))},e.prototype.setLinePoints=function(t){var i=this.childOfName("line");SC(i.shape,t),i.dirty()},e.prototype.beforeUpdate=function(){var t=this,i=t.childOfName("fromSymbol"),a=t.childOfName("toSymbol"),n=t.getTextContent();if(!i&&!a&&(!n||n.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=t.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,f=l.pointAt(0),p=l.pointAt(u),c=ta([],p,f);zi(c,c);function v(E,D){var I=E.__specifiedRotation;if(I==null){var M=l.tangentAt(D);E.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(M[1],M[0]))}else E.attr("rotation",I)}if(i&&(i.setPosition(f),v(i,0),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&(a.setPosition(p),v(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var h=void 0,d=void 0,m=n.__labelDistance,g=m[0]*o,y=m[1]*o,_=u/2,x=l.tangentAt(_),S=[x[1],-x[0]],b=l.pointAt(_);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var w=x[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var A=-Math.atan2(x[1],x[0]);p[0]<f[0]&&(A=Math.PI+A),n.rotation=A}var C=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":C=-y,d="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":C=y,d="top";break;default:C=0,d="middle"}switch(n.__position){case"end":n.x=c[0]*g+p[0],n.y=c[1]*y+p[1],h=c[0]>.8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*g+f[0],n.y=-c[1]*y+f[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=g*w+f[0],n.y=f[1]+C,h=x[0]<0?"right":"left",n.originX=-g*w,n.originY=-C;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=b[0],n.y=b[1]+C,h="center",n.originY=-C;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-g*w+p[0],n.y=p[1]+C,h=x[0]>=0?"right":"left",n.originX=g*w,n.originY=-C;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||h})}},e})(Q),Wp=YJ;var WJ=(function(){function r(e){this.group=new Q,this._LineCtor=e||Wp}return r.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var i=this,a=i.group,n=i._lineData;i._lineData=e,n||a.removeAll();var o=HU(e);e.diff(n).add(function(s){t._doAdd(e,s,o)}).update(function(s,l){t._doUpdate(n,e,l,s,o)}).remove(function(s){a.remove(n.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(t,i){t.updateLayout(e,i)},this)},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=HU(e),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,i){this._progressiveEls=[];function a(l){!l.isGroup&&!XJ(l)&&(l.incremental=i,l.ensureState("emphasis").hoverLayer=Ka)}for(var n=e.start;n<e.end;n++){var o=t.getItemLayout(n);if(bC(o)){var s=new this._LineCtor(t,n,this._seriesScope);s.traverse(a),this.group.add(s),t.setItemGraphicEl(n,s),this._progressiveEls.push(s)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(e){Kr(this._progressiveEls||this.group,e)},r.prototype._doAdd=function(e,t,i){var a=e.getItemLayout(t);if(bC(a)){var n=new this._LineCtor(e,t,i);e.setItemGraphicEl(t,n),this.group.add(n)}},r.prototype._doUpdate=function(e,t,i,a,n){var o=e.getItemGraphicEl(i);if(!bC(t.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(t,a,n):o=new this._LineCtor(t,a,n),t.setItemGraphicEl(a,o),this.group.add(o)},r})();function XJ(r){return r.animators&&r.animators.length>0}function HU(r){var e=r.hostModel,t=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:t.get("disabled"),blurScope:t.get("blurScope"),focus:t.get("focus"),labelStatesModels:tt(e)}}function YU(r){return isNaN(r[0])||isNaN(r[1])}function bC(r){return r&&!YU(r[0])&&!YU(r[1])}var Xp=WJ;var wC=[],TC=[],CC=[],Zp=Vt,AC=xn,WU=Math.abs;function XU(r,e,t){for(var i=r[0],a=r[1],n=r[2],o=1/0,s,l=t*t,u=.1,f=.1;f<=.9;f+=.1){wC[0]=Zp(i[0],a[0],n[0],f),wC[1]=Zp(i[1],a[1],n[1],f);var p=WU(AC(wC,e)-l);p<o&&(o=p,s=f)}for(var c=0;c<32;c++){var v=s+u;TC[0]=Zp(i[0],a[0],n[0],s),TC[1]=Zp(i[1],a[1],n[1],s),CC[0]=Zp(i[0],a[0],n[0],v),CC[1]=Zp(i[1],a[1],n[1],v);var p=AC(TC,e)-l;if(WU(p)<.01)break;var h=AC(CC,e)-l;u/=2,p<0?h>=0?s=s+u:s=s-u:h>=0?s=s-u:s=s+u}return s}function Rh(r,e){var t=[],i=es,a=[[],[],[]],n=[[],[]],o=[];e/=2,r.eachEdge(function(s,l){var u=s.getLayout(),f=s.getVisual("fromSymbol"),p=s.getVisual("toSymbol");u.__original||(u.__original=[Gr(u[0]),Gr(u[1])],u[2]&&u.__original.push(Gr(u[2])));var c=u.__original;if(u[2]!=null){if(jt(a[0],c[0]),jt(a[1],c[2]),jt(a[2],c[1]),f&&f!=="none"){var v=Yu(s.node1),h=XU(a,c[0],v*e);i(a[0][0],a[1][0],a[2][0],h,t),a[0][0]=t[3],a[1][0]=t[4],i(a[0][1],a[1][1],a[2][1],h,t),a[0][1]=t[3],a[1][1]=t[4]}if(p&&p!=="none"){var v=Yu(s.node2),h=XU(a,c[1],v*e);i(a[0][0],a[1][0],a[2][0],h,t),a[1][0]=t[1],a[2][0]=t[2],i(a[0][1],a[1][1],a[2][1],h,t),a[1][1]=t[1],a[2][1]=t[2]}jt(u[0],a[0]),jt(u[1],a[2]),jt(u[2],a[1])}else{if(jt(n[0],c[0]),jt(n[1],c[1]),ta(o,n[1],n[0]),zi(o,o),f&&f!=="none"){var v=Yu(s.node1);nf(n[0],n[0],o,v*e)}if(p&&p!=="none"){var v=Yu(s.node2);nf(n[1],n[1],o,-v*e)}jt(u[0],n[0]),jt(u[1],n[1])}})}var ZU=ne();function KU(r){if(r)return ZU(r).bridge}function EC(r,e){r&&(ZU(r).bridge=e)}var ZJ=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Ft,t}return e.prototype.init=function(t,i){var a=new $n,n=new Xp,o=this.group,s=new Q;this._controller=new Oi(i.getZr()),s.add(a.group),s.add(n.group),o.add(s),this._symbolDraw=a,this._lineDraw=n,this._mainGroup=s,this._firstRender=!0},e.prototype.render=function(t,i,a){var n=this,o=Pp(t),s=!1;this._model=t,this._api=a,this._active=!0;var l=this._mainGroup,u=this._getThumbnailInfo();u&&u.bridge.reset(a);var f=this._symbolDraw,p=this._lineDraw;o&&Ma(l,Ji,o,this._firstRender?null:t),Rh(t.getGraph(),Hu(t));var c=t.getData();f.updateData(c);var v=t.getEdgeData();p.updateData(v),this._updateNodeAndLinkScale(),o&&qs(t,a,this._controller,function(x,S,b){return t.coordinateSystem.containPoint([S,b])},null),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&(s=!0,this._startForceLayoutIteration(h,a,d));var m=t.get("layout");c.graph.eachNode(function(x){var S=x.dataIndex,b=x.getGraphicEl(),w=x.getModel();if(b){b.off("drag").off("dragend");var A=w.get("draggable");A&&b.on("drag",function(E){switch(m){case"force":h.warmUp(),!n._layouting&&n._startForceLayoutIteration(h,a,d),h.setFixed(S),c.setItemLayout(S,[b.x,b.y]);break;case"circular":c.setItemLayout(S,[b.x,b.y]),x.setLayout({fixed:!0},!0),Hp(t,"symbolSize",x,[E.offsetX,E.offsetY]),n.updateLayout(t);break;default:c.setItemLayout(S,[b.x,b.y]),Ph(t.getGraph(),t),n.updateLayout(t);break}}).on("dragend",function(){h&&h.setUnfixed(S)}),b.setDraggable(A,!!w.get("cursor"));var C=w.get(["emphasis","focus"]);C==="adjacency"&&(se(b).focus=x.getAdjacentDataIndices())}}),c.graph.eachEdge(function(x){var S=x.getGraphicEl(),b=x.getModel().get(["emphasis","focus"]);S&&b==="adjacency"&&(se(S).focus={edge:[x.dataIndex],node:[x.node1.dataIndex,x.node2.dataIndex]})});var g=t.get("layout")==="circular"&&t.get(["circular","rotateLabel"]),y=c.getLayout("cx"),_=c.getLayout("cy");c.graph.eachNode(function(x){mC(x,g,y,_)}),this._firstRender=!1,s||this._renderThumbnail(t,a,this._symbolDraw,this._lineDraw)},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose()},e.prototype._startForceLayoutIteration=function(t,i,a){var n=this,o=!1;(function s(){t.step(function(l){n.updateLayout(n._model),(l||!o)&&(o=!0,n._renderThumbnail(n._model,i,n._symbolDraw,n._lineDraw)),(n._layouting=!l)&&(a?n._layoutTimeout=setTimeout(s,16):s())})})()},e.prototype.__updateOnOwnRoam=function(t,i,a){var n=Pp(i);!this._active||!n||(Ma(this._mainGroup,Ji,n,null),E0(t)&&(this._updateNodeAndLinkScale(),Rh(i.getGraph(),Hu(i)),this._lineDraw.updateLayout(),a.updateLabelLayout()),this._updateThumbnailWindow())},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,i=t.getData(),a=Hu(t);i.eachItemGraphicEl(function(n,o){n&&n.setSymbolScale(a)})},e.prototype.updateLayout=function(t){this._active&&(Rh(t.getGraph(),Hu(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},e.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},e.prototype._getThumbnailInfo=function(){var t=this._model,i=t.coordinateSystem;if(i.type==="view"){var a=KU(t);if(a)return{bridge:a,coordSys:i}}},e.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(ku(null,t.coordSys),this._api)},e.prototype._renderThumbnail=function(t,i,a,n){var o=this._getThumbnailInfo();if(o){var s=new Q,l=a.group.children(),u=n.group.children(),f=new Q,p=new Q;s.add(p),s.add(f);for(var c=0;c<l.length;c++){var v=l[c],h=v.children()[0],d=v.x,m=v.y,g=ee(h.shape),y=k(g,{width:h.scaleX,height:h.scaleY,x:d-h.scaleX/2,y:m-h.scaleY/2}),_=ee(h.style),x=new h.constructor({shape:y,style:_,z2:151});p.add(x)}for(var c=0;c<u.length;c++){var v=u[c],S=v.children()[0],_=ee(S.style),y=ee(S.shape),b=new F0({style:_,shape:y,z2:151});f.add(b)}o.bridge.renderContent({api:i,roamType:t.get("roam"),viewportRect:null,group:s,targetTrans:ku(null,o.coordSys)})}},e.type=Ft,e})(Le),qU=ZJ;var jU=qe(Ft,KJ);function KJ(r){var e=r.findComponents({mainType:"legend"});!e||!e.length||r.eachSeriesByType(Ft,function(t){var i=t.getCategoriesData(),a=t.getGraph(),n=a.data,o=i.mapArray(i.getName);n.filterSelf(function(s){var l=n.getItemModel(s),u=l.getShallow("category");if(u!=null){_e(u)&&(u=o[u]);for(var f=0;f<e.length;f++)if(!e[f].isSelected(u))return!1}return!0})})}var JU=qe(Ft,qJ);function qJ(r){var e={};r.eachSeriesByType(Ft,function(t){var i=t.getCategoriesData(),a=t.getData(),n={};i.each(function(o){var s=i.getName(o);n["ec-"+s]=o;var l=i.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=t.getColorFromPalette(s,e)),i.setItemVisual(o,"style",u);for(var f=["symbol","symbolSize","symbolKeepAspect"],p=0;p<f.length;p++){var c=l.getShallow(f[p],!0);c!=null&&i.setItemVisual(o,f[p],c)}}),i.count()&&a.each(function(o){var s=a.getItemModel(o),l=s.getShallow("category");if(l!=null){H(l)&&(l=n["ec-"+l]);var u=i.getItemVisual(l,"style"),f=a.ensureUniqueItemVisual(o,"style");k(f,u);for(var p=["symbol","symbolSize","symbolKeepAspect"],c=0;c<p.length;c++)a.setItemVisual(o,p[c],i.getItemVisual(l,p[c]))}})})}function DC(r){r.registerChartView(qU),r.registerSeriesModel(LU),r.registerProcessor(jU),r.registerVisual(JU),r.registerVisual(PU),r.registerLayout(RU),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,NU),r.registerLayout(zU),r.registerCoordinateSystem("graphView",{dimensions:Ks.dimensions,create:gC}),r.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},et),r.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},et),Rp(r,xr,Ft)}var Wu="chord",jJ=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this.legendVisualProvider=new Ea(X(this.getData,this),X(this.getRawData,this))},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links)},e.prototype.getInitialData=function(t,i){var a=t.edges||t.links||[],n=t.data||t.nodes||[];if(n&&a){var o=Gu(n,a,this,!0,s);return o.data}function s(l,u){var f=Ee.prototype.getModel;function p(v,h){var d=f.call(this,v,h);return d.resolveParentPath=c,d}u.wrapMethod("getItemModel",function(v){return v.resolveParentPath=c,v.getModel=p,v});function c(v){if(v&&(v[0]==="label"||v[1]==="label")){var h=v.slice();return v[0]==="label"?h[0]="edgeLabel":v[1]==="label"&&(h[1]="edgeLabel"),h}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,i,a){var n=this.getDataParams(t,a);if(a==="edge"){var o=this.getData(),s=o.graph.getEdgeByIndex(t),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),f=[];return l!=null&&f.push(l),u!=null&&f.push(u),ft("nameValue",{name:f.join(" > "),value:n.value,noValue:n.value==null})}return ft("nameValue",{name:n.name,value:n.value,noValue:n.value==null})},e.prototype.getDataParams=function(t,i){var a=r.prototype.getDataParams.call(this,t,i);if(i==="node"){var n=this.getData(),o=this.getGraph().getNodeByIndex(t);if(a.name==null&&(a.name=n.getName(t)),a.value==null){var s=o.getLayout().value;a.value=s}}return a},e.type="series."+Wu,e.defaultOption={z:2,coordinateSystem:"none",legendHoverLink:!0,colorBy:"data",left:0,top:0,right:0,bottom:0,width:null,height:null,center:["50%","50%"],radius:["70%","80%"],clockwise:!0,startAngle:90,endAngle:"auto",minAngle:0,padAngle:3,itemStyle:{borderRadius:[0,0,5,5]},lineStyle:{width:0,color:"source",opacity:.2},label:{show:!0,position:"outside",distance:5},emphasis:{focus:"adjacency",lineStyle:{opacity:.5}}},e})(ke),QU=jJ;var JJ=(function(r){L(e,r);function e(t,i,a){var n=r.call(this)||this;se(n).dataType="node",n.z2=2;var o=new be;return n.setTextContent(o),n.updateData(t,i,a,!0),n}return e.prototype.updateData=function(t,i,a,n){var o=this,s=t.graph.getNodeByIndex(i),l=t.hostModel,u=s.getModel(),f=u.getModel("emphasis"),p=t.getItemLayout(i),c=k(ai(u.getModel("itemStyle"),p,!0),p),v=this;if(isNaN(c.startAngle)){v.setShape(c);return}n?v.setShape(c):Ae(v,{shape:c},l,i);var h=k(ai(u.getModel("itemStyle"),p,!0),p);o.setShape(h),o.useStyle(t.getItemVisual(i,"style")),st(o,u),this._updateLabel(l,u,s),t.setItemGraphicEl(i,v),st(v,u,"itemStyle");var d=f.get("focus");Be(this,d==="adjacency"?s.getAdjacentDataIndices():d,f.get("blurScope"),f.get("disabled"))},e.prototype._updateLabel=function(t,i,a){var n=this.getTextContent(),o=a.getLayout(),s=(o.startAngle+o.endAngle)/2,l=Math.cos(s),u=Math.sin(s),f=i.getModel("label");n.ignore=!f.get("show");var p=tt(i),c=a.getVisual("style");it(n,p,{labelFetcher:{getFormattedLabel:function(y,_,x,S,b,w){return t.getFormattedLabel(y,_,"node",S,Dt(b,p.normal&&p.normal.get("formatter"),i.get("name")),w)}},labelDataIndex:a.dataIndex,defaultText:a.dataIndex+"",inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:"startArc"});var v=f.get("position")||"outside",h=f.get("distance")||0,d;v==="outside"?d=o.r+h:d=(o.r+o.r0)/2,this.textConfig={inside:v!=="outside"};var m=v!=="outside"?f.get("align")||"center":l>0?"left":"right",g=v!=="outside"?f.get("verticalAlign")||"middle":u>0?"top":"bottom";n.attr({x:l*d+o.cx,y:u*d+o.cy,rotation:0,style:{align:m,verticalAlign:g}})},e})(Tt),MC=JJ;var eB=(function(r){L(e,r);function e(t,i,a,n){var o=r.call(this)||this;return se(o).dataType="edge",o.updateData(t,i,a,n,!0),o}return e.prototype.buildPath=function(t,i){t.moveTo(i.s1[0],i.s1[1]);var a=.7,n=i.clockwise;t.arc(i.cx,i.cy,i.r,i.sStartAngle,i.sEndAngle,!n),t.bezierCurveTo((i.cx-i.s2[0])*a+i.s2[0],(i.cy-i.s2[1])*a+i.s2[1],(i.cx-i.t1[0])*a+i.t1[0],(i.cy-i.t1[1])*a+i.t1[1],i.t1[0],i.t1[1]),t.arc(i.cx,i.cy,i.r,i.tStartAngle,i.tEndAngle,!n),t.bezierCurveTo((i.cx-i.t2[0])*a+i.t2[0],(i.cy-i.t2[1])*a+i.t2[1],(i.cx-i.s1[0])*a+i.s1[0],(i.cy-i.s1[1])*a+i.s1[1],i.s1[0],i.s1[1]),t.closePath()},e.prototype.updateData=function(t,i,a,n,o){var s=t.hostModel,l=i.graph.getEdgeByIndex(a),u=l.getLayout(),f=l.node1.getModel(),p=i.getItemModel(l.dataIndex),c=p.getModel("lineStyle"),v=p.getModel("emphasis"),h=v.get("focus"),d=k(ai(f.getModel("itemStyle"),u,!0),u),m=this;if(isNaN(d.sStartAngle)||isNaN(d.tStartAngle)){m.setShape(d);return}o?(m.setShape(d),$U(m,l,t,c)):(Bt(m),$U(m,l,t,c),Ae(m,{shape:d},s,a)),Be(this,h==="adjacency"?l.getAdjacentDataIndices():h,v.get("blurScope"),v.get("disabled")),st(m,p,"lineStyle"),i.setItemGraphicEl(l.dataIndex,m)},e})(ce);function $U(r,e,t,i){var a=e.node1,n=e.node2,o=r.style;r.setStyle(i.getLineStyle());var s=i.get("color");switch(s){case"source":o.fill=t.getItemVisual(a.dataIndex,"style").fill,o.decal=a.getVisual("style").decal;break;case"target":o.fill=t.getItemVisual(n.dataIndex,"style").fill,o.decal=n.getVisual("style").decal;break;case"gradient":var l=t.getItemVisual(a.dataIndex,"style").fill,u=t.getItemVisual(n.dataIndex,"style").fill;if(H(l)&&H(u)){var f=r.shape,p=(f.s1[0]+f.s2[0])/2,c=(f.s1[1]+f.s2[1])/2,v=(f.t1[0]+f.t2[0])/2,h=(f.t1[1]+f.t2[1])/2;o.fill=new Ci(p,c,v,h,[{offset:0,color:l},{offset:1,color:u}],!0)}break}}var QJ=Math.PI/180,$J=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Wu,t}return e.prototype.init=function(t,i){},e.prototype.render=function(t,i,a){var n=t.getData(),o=this._data,s=this.group,l=-t.get("startAngle")*QJ;if(n.diff(o).add(function(f){var p=n.getItemLayout(f);if(p){var c=new MC(n,f,l);se(c).dataIndex=f,s.add(c)}}).update(function(f,p){var c=o.getItemGraphicEl(p),v=n.getItemLayout(f);if(!v){c&&Ai(c,t,p);return}c?c.updateData(n,f,l):c=new MC(n,f,l),s.add(c)}).remove(function(f){var p=o.getItemGraphicEl(f);p&&Ai(p,t,f)}).execute(),!o){var u=t.get("center");this.group.scaleX=.01,this.group.scaleY=.01,this.group.originX=j(u[0],a.getWidth()),this.group.originY=j(u[1],a.getHeight()),Ge(this.group,{scaleX:1,scaleY:1},t)}this._data=n,this.renderEdges(t,l)},e.prototype.renderEdges=function(t,i){var a=t.getData(),n=t.getEdgeData(),o=this._edgeData,s=this.group;n.diff(o).add(function(l){var u=new eB(a,n,l,i);se(u).dataIndex=l,s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(a,n,l,i),s.add(f)}).remove(function(l){var u=o.getItemGraphicEl(l);u&&Ai(u,t,l)}).execute(),this._edgeData=n},e.prototype.dispose=function(){},e.type=Wu,e})(Le),tB=$J;var IC=Math.PI/180,rB=qe(Wu,eQ);function eQ(r,e){r.eachSeriesByType(Wu,function(t){tQ(t,e)})}function tQ(r,e){var t=r.getData(),i=t.graph,a=r.getEdgeData(),n=a.count();if(n){var o=og(r,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,p=Math.max((r.get("padAngle")||0)*IC,0),c=Math.max((r.get("minAngle")||0)*IC,0),v=-r.get("startAngle")*IC,h=v+Math.PI*2,d=r.get("clockwise"),m=d?1:-1,g=[v,h];Yl(g,!d);var y=g[0],_=g[1],x=_-y,S=t.getSum("value")===0&&a.getSum("value")===0,b=[],w=0;i.eachEdge(function(F){var G=S?1:F.getValue("value");S&&(G>0||c)&&(w+=2);var Y=F.node1.dataIndex,q=F.node2.dataIndex;b[Y]=(b[Y]||0)+G,b[q]=(b[q]||0)+G});var A=0;if(i.eachNode(function(F){var G=F.getValue("value");isNaN(G)||(b[F.dataIndex]=Math.max(G,b[F.dataIndex]||0)),!S&&(b[F.dataIndex]>0||c)&&w++,A+=b[F.dataIndex]||0}),!(w===0||A===0)){p*w>=Math.abs(x)&&(p=Math.max(0,(Math.abs(x)-c*w)/w)),(p+c)*w>=Math.abs(x)&&(c=(Math.abs(x)-p*w)/w);var C=(x-p*w*m)/A,E=0,D=0,I=0,M=1/0;i.eachNode(function(F){var G=b[F.dataIndex]||0,Y=C*(A?G:1)*m;Math.abs(Y)<c?E+=c-Math.abs(Y):(M=Math.min(M,Math.abs(Y)-c),D+=Math.abs(Y)-c,I+=Math.abs(Y)),F.setLayout({angle:Y,value:G})});var P=!1;if(E>D){var O=E/D;i.eachNode(function(F){var G=F.getLayout().angle;Math.abs(G)>=c?F.setLayout({angle:G*O,ratio:O},!0):F.setLayout({angle:c,ratio:c===0?1:G/c},!0)})}else i.eachNode(function(F){if(!P){var G=F.getLayout().angle,Y=Math.min(G/I,1),q=Y*E;G-q<c&&(P=!0)}});var R=E;i.eachNode(function(F){if(!(R<=0)){var G=F.getLayout().angle;if(G>c&&c>0){var Y=P?1:Math.min(G/I,1),q=G-c,re=Math.min(q,Math.min(R,E*Y));R-=re,F.setLayout({angle:G-re,ratio:(G-re)/G},!0)}else c>0&&F.setLayout({angle:c,ratio:G===0?1:c/G},!0)}});var z=y,B=[];i.eachNode(function(F){var G=Math.max(F.getLayout().angle,c);F.setLayout({cx:s,cy:l,r0:f,r:u,startAngle:z,endAngle:z+G*m,clockwise:d},!0),B[F.dataIndex]=z,z+=(G+p)*m}),i.eachEdge(function(F){var G=S?1:F.getValue("value"),Y=C*(A?G:1)*m,q=F.node1.dataIndex,re=B[q]||0,ie=Math.abs((F.node1.getLayout().ratio||1)*Y),ue=re+ie*m,Pe=[s+f*Math.cos(re),l+f*Math.sin(re)],$e=[s+f*Math.cos(ue),l+f*Math.sin(ue)],De=F.node2.dataIndex,fe=B[De]||0,Oe=Math.abs((F.node2.getLayout().ratio||1)*Y),pe=fe+Oe*m,Me=[s+f*Math.cos(fe),l+f*Math.sin(fe)],pt=[s+f*Math.cos(pe),l+f*Math.sin(pe)];F.setLayout({s1:Pe,s2:$e,sStartAngle:re,sEndAngle:ue,t1:Me,t2:pt,tStartAngle:fe,tEndAngle:pe,cx:s,cy:l,r:f,value:G,clockwise:d}),B[q]=ue,B[De]=pe})}}}function LC(r){r.registerChartView(tB),r.registerSeriesModel(QU),r.registerLayout(r.PRIORITY.VISUAL.POST_CHART_LAYOUT,rB),r.registerProcessor(cn("chord"))}var rQ=(function(){function r(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return r})(),iQ=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i.type="pointer",i}return e.prototype.getDefaultShape=function(){return new rQ},e.prototype.buildPath=function(t,i){var a=Math.cos,n=Math.sin,o=i.r,s=i.width,l=i.angle,u=i.x-a(l)*s*(s>=o/3?1:2),f=i.y-n(l)*s*(s>=o/3?1:2);l=i.angle-Math.PI/2,t.moveTo(u,f),t.lineTo(i.x+a(l)*s,i.y+n(l)*s),t.lineTo(i.x+a(i.angle)*o,i.y+n(i.angle)*o),t.lineTo(i.x-a(l)*s,i.y-n(l)*s),t.lineTo(u,f)},e})(ce),iB=iQ;function aQ(r,e){var t=r.get("center"),i=e.getWidth(),a=e.getHeight(),n=Math.min(i,a),o=j(t[0],e.getWidth()),s=j(t[1],e.getHeight()),l=j(r.get("radius"),n/2);return{cx:o,cy:s,r:l}}function G0(r,e){var t=r==null?"":r+"";return e&&(H(e)?t=e.replace("{value}",t):J(e)&&(t=e(r))),t}var nQ=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),o=aQ(t,a);this._renderMain(t,i,a,n,o),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,i,a,n,o){var s=this.group,l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,f=-t.get("endAngle")/180*Math.PI,p=t.getModel("axisLine"),c=p.get("roundCap"),v=c?Mp:Tt,h=p.get("show"),d=p.getModel("lineStyle"),m=d.get("width"),g=[u,f];Yl(g,!l),u=g[0],f=g[1];for(var y=f-u,_=u,x=[],S=0;h&&S<n.length;S++){var b=Math.min(Math.max(n[S][0],0),1);f=u+y*b;var w=new v({shape:{startAngle:_,endAngle:f,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-m,r:o.r},silent:!0});w.setStyle({fill:n[S][1]}),w.setStyle(d.getLineStyle(["color","width"])),x.push(w),_=f}x.reverse(),T(x,function(C){return s.add(C)});var A=function(C){if(C<=0)return n[0][1];var E;for(E=0;E<n.length;E++)if(n[E][0]>=C&&(E===0?0:n[E-1][0])<C)return n[E][1];return n[E-1][1]};this._renderTicks(t,i,a,A,o,u,f,l,m),this._renderTitleAndDetail(t,i,a,A,o),this._renderAnchor(t,o),this._renderPointer(t,i,a,A,o,u,f,l,m)},e.prototype._renderTicks=function(t,i,a,n,o,s,l,u,f){for(var p=this.group,c=o.cx,v=o.cy,h=o.r,d=+t.get("min"),m=+t.get("max"),g=t.getModel("splitLine"),y=t.getModel("axisTick"),_=t.getModel("axisLabel"),x=t.get("splitNumber"),S=y.get("splitNumber"),b=j(g.get("length"),h),w=j(y.get("length"),h),A=s,C=(l-s)/x,E=C/S,D=g.getModel("lineStyle").getLineStyle(),I=y.getModel("lineStyle").getLineStyle(),M=g.get("distance"),P,O,R=0;R<=x;R++){if(P=Math.cos(A),O=Math.sin(A),g.get("show")){var z=M?M+f:f,B=new ut({shape:{x1:P*(h-z)+c,y1:O*(h-z)+v,x2:P*(h-b-z)+c,y2:O*(h-b-z)+v},style:D,silent:!0});D.stroke==="auto"&&B.setStyle({stroke:n(R/x)}),p.add(B)}if(_.get("show")){var z=_.get("distance")+M,F=G0(Ne(R*(m-d)/x+d,ZM),_.get("formatter")),G=n(R/x),Y=P*(h-b-z)+c,q=O*(h-b-z)+v,re=_.get("rotate"),ie=0;re==="radial"?(ie=-A+2*Math.PI,ie>Math.PI/2&&(ie+=Math.PI)):re==="tangential"?ie=-A-Math.PI/2:_e(re)&&(ie=re*Math.PI/180),ie===0?p.add(new be({style:Xe(_,{text:F,x:Y,y:q,verticalAlign:O<-.8?"top":O>.8?"bottom":"middle",align:P<-.4?"left":P>.4?"right":"center"},{inheritColor:G}),silent:!0})):p.add(new be({style:Xe(_,{text:F,x:Y,y:q,verticalAlign:"middle",align:"center"},{inheritColor:G}),silent:!0,originX:Y,originY:q,rotation:ie}))}if(y.get("show")&&R!==x){var z=y.get("distance");z=z?z+f:f;for(var ue=0;ue<=S;ue++){P=Math.cos(A),O=Math.sin(A);var Pe=new ut({shape:{x1:P*(h-z)+c,y1:O*(h-z)+v,x2:P*(h-w-z)+c,y2:O*(h-w-z)+v},silent:!0,style:I});I.stroke==="auto"&&Pe.setStyle({stroke:n((R+ue/S)/x)}),p.add(Pe),A+=E}A-=E}else A+=C}},e.prototype._renderPointer=function(t,i,a,n,o,s,l,u,f){var p=this.group,c=this._data,v=this._progressEls,h=[],d=t.get(["pointer","show"]),m=t.getModel("progress"),g=m.get("show"),y=t.getData(),_=y.mapDimension("value"),x=+t.get("min"),S=+t.get("max"),b=[x,S],w=[s,l];function A(E,D){var I=y.getItemModel(E),M=I.getModel("pointer"),P=j(M.get("width"),o.r),O=j(M.get("length"),o.r),R=t.get(["pointer","icon"]),z=M.get("offsetCenter"),B=j(z[0],o.r),F=j(z[1],o.r),G=M.get("keepAspect"),Y;return R?Y=je(R,B-P/2,F-O,P,O,null,G):Y=new iB({shape:{angle:-Math.PI/2,width:P,r:O,x:B,y:F}}),Y.rotation=-(D+Math.PI/2),Y.x=o.cx,Y.y=o.cy,Y}function C(E,D){var I=m.get("roundCap"),M=I?Mp:Tt,P=m.get("overlap"),O=P?m.get("width"):f/y.count(),R=P?o.r-O:o.r-(E+1)*O,z=P?o.r:o.r-E*O,B=new M({shape:{startAngle:s,endAngle:D,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:z}});return P&&(B.z2=Ue(y.get(_,E),[x,S],[100,0],!0)),B}(g||d)&&(y.diff(c).add(function(E){var D=y.get(_,E);if(d){var I=A(E,s);Ge(I,{rotation:-((isNaN(+D)?w[0]:Ue(D,b,w,!0))+Math.PI/2)},t),p.add(I),y.setItemGraphicEl(E,I)}if(g){var M=C(E,s),P=m.get("clip");Ge(M,{shape:{endAngle:Ue(D,b,w,P)}},t),p.add(M),iv(t.seriesIndex,y.dataType,E,M),h[E]=M}}).update(function(E,D){var I=y.get(_,E);if(d){var M=c.getItemGraphicEl(D),P=M?M.rotation:s,O=A(E,P);O.rotation=P,Ae(O,{rotation:-((isNaN(+I)?w[0]:Ue(I,b,w,!0))+Math.PI/2)},t),p.add(O),y.setItemGraphicEl(E,O)}if(g){var R=v[D],z=R?R.shape.endAngle:s,B=C(E,z),F=m.get("clip");Ae(B,{shape:{endAngle:Ue(I,b,w,F)}},t),p.add(B),iv(t.seriesIndex,y.dataType,E,B),h[E]=B}}).execute(),y.each(function(E){var D=y.getItemModel(E),I=D.getModel("emphasis"),M=I.get("focus"),P=I.get("blurScope"),O=I.get("disabled"),R=n(Ue(y.get(_,E),b,[0,1],!0));if(d){var z=y.getItemGraphicEl(E),B=y.getItemVisual(E,"style"),F=B.fill;if(z instanceof lt){var G=z.style;z.useStyle(k({image:G.image,x:G.x,y:G.y,width:G.width,height:G.height},B))}else z.useStyle(B),z.type!=="pointer"&&z.setColor(F);z.setStyle(D.getModel(["pointer","itemStyle"]).getItemStyle()),z.style.fill==="auto"&&z.setStyle("fill",R),z.z2EmphasisLift=0,st(z,D),Be(z,M,P,O)}if(g){var Y=h[E];Y.useStyle(y.getItemVisual(E,"style")),Y.setStyle(D.getModel(["progress","itemStyle"]).getItemStyle()),Y.style.fill==="auto"&&Y.setStyle("fill",R),Y.z2EmphasisLift=0,st(Y,D),Be(Y,M,P,O)}}),this._progressEls=h)},e.prototype._renderAnchor=function(t,i){var a=t.getModel("anchor"),n=a.get("show");if(n){var o=a.get("size"),s=a.get("icon"),l=a.get("offsetCenter"),u=a.get("keepAspect"),f=je(s,i.cx-o/2+j(l[0],i.r),i.cy-o/2+j(l[1],i.r),o,o,null,u);f.z2=a.get("showAbove")?1:0,f.setStyle(a.getModel("itemStyle").getItemStyle()),this.group.add(f)}},e.prototype._renderTitleAndDetail=function(t,i,a,n,o){var s=this,l=t.getData(),u=l.mapDimension("value"),f=+t.get("min"),p=+t.get("max"),c=new Q,v=[],h=[],d=t.isAnimationEnabled(),m=t.get(["pointer","showAbove"]);l.diff(this._data).add(function(g){v[g]=new be({silent:!0}),h[g]=new be({silent:!0})}).update(function(g,y){v[g]=s._titleEls[y],h[g]=s._detailEls[y]}).execute(),l.each(function(g){var y=l.getItemModel(g),_=l.get(u,g),x=new Q,S=n(Ue(_,[f,p],[0,1],!0)),b=y.getModel("title");if(b.get("show")){var w=b.get("offsetCenter"),A=o.cx+j(w[0],o.r),C=o.cy+j(w[1],o.r),E=v[g];E.attr({z2:m?0:2,style:Xe(b,{x:A,y:C,text:l.getName(g),align:"center",verticalAlign:"middle"},{inheritColor:S})}),x.add(E)}var D=y.getModel("detail");if(D.get("show")){var I=D.get("offsetCenter"),M=o.cx+j(I[0],o.r),P=o.cy+j(I[1],o.r),O=j(D.get("width"),o.r),R=j(D.get("height"),o.r),z=t.get(["progress","show"])?l.getItemVisual(g,"style").fill:S,E=h[g],B=D.get("formatter");E.attr({z2:m?0:2,style:Xe(D,{x:M,y:P,text:G0(_,B),width:isNaN(O)?null:O,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:z})}),Om(E,{normal:D},_,function(G){return G0(G,B)}),d&&Nm(E,g,l,t,{getFormattedLabel:function(G,Y,q,re,ie,ue){return G0(ue?ue.interpolatedValue:_,B)}}),x.add(E)}c.add(x)}),this.group.add(c),this._titleEls=v,this._detailEls=h},e.type="gauge",e})(Le),aB=nQ;var oQ=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="itemStyle",t}return e.prototype.getInitialData=function(t,i){return qi(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,N.color.neutral10]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:N.color.axisTick,width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:N.color.axisTickMinor,width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:N.color.axisLabel,fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:N.color.neutral00,borderWidth:0,borderColor:N.color.theme[0]}},title:{show:!0,offsetCenter:[0,"20%"],color:N.color.secondary,fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:N.color.transparent,borderWidth:0,borderColor:N.color.neutral40,width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:N.color.primary,fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e})(ke),nB=oQ;function PC(r){r.registerChartView(aB),r.registerSeriesModel(nB)}var Ho="funnel",sQ=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ea(X(this.getData,this),X(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.getInitialData=function(t,i){return qi(this,{coordDimensions:["value"],encodeDefaulter:me(Jf,this)})},e.prototype._defaultLabelLine=function(t){Fi(t,"labelLine",["show"]);var i=t.labelLine,a=t.emphasis.labelLine;i.show=i.show&&t.label.show,a.show=a.show&&t.emphasis.label.show},e.prototype.getDataParams=function(t){var i=this.getData(),a=r.prototype.getDataParams.call(this,t),n=i.mapDimension("value"),o=i.getSum(n);return a.percent=o?+(i.get(n,t)/o*100).toFixed(2):0,a.$vars.push("percent"),a},e.type="series."+Ho,e.defaultOption={coordinateSystemUsage:"box",z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:65,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:N.color.neutral00,borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:N.color.primary}}},e})(ke),oB=sQ;var lQ=["itemStyle","opacity"],uQ=(function(r){L(e,r);function e(t,i){var a=r.call(this)||this,n=a,o=new vt,s=new be;return n.setTextContent(s),a.setTextGuideLine(o),a.updateData(t,i,!0),a}return e.prototype.updateData=function(t,i,a){var n=this,o=t.hostModel,s=t.getItemModel(i),l=t.getItemLayout(i),u=s.getModel("emphasis"),f=s.get(lQ);f=f??1,a||Bt(n),n.useStyle(t.getItemVisual(i,"style")),n.style.lineJoin="round",a?(n.setShape({points:l.points}),n.style.opacity=0,Ge(n,{style:{opacity:f}},o,i)):Ae(n,{style:{opacity:f},shape:{points:l.points}},o,i),st(n,s),this._updateLabel(t,i),Be(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,i){var a=this,n=this.getTextGuideLine(),o=a.getTextContent(),s=t.hostModel,l=t.getItemModel(i),u=t.getItemLayout(i),f=u.label,p=t.getItemVisual(i,"style"),c=p.fill;it(o,tt(l),{labelFetcher:t.hostModel,labelDataIndex:i,defaultOpacity:p.opacity,defaultText:t.getName(i)},{normal:{align:f.textAlign,verticalAlign:f.verticalAlign}});var v=l.getModel("label"),h=v.get("color"),d=h==="inherit"?c:null;a.setTextConfig({local:!0,inside:!!f.inside,insideStroke:d,outsideFill:d});var m=f.linePoints;n.setShape({points:m}),a.textGuideLineConfig={anchor:m?new he(m[0][0],m[0][1]):null},Ae(o,{style:{x:f.x,y:f.y}},s,i),o.attr({rotation:f.rotation,originX:f.x,originY:f.y,z2:10}),Sp(a,bp(l),{stroke:c})},e})(yt),fQ=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Ho,t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this._data,s=this.group;n.diff(o).add(function(l){var u=new uQ(n,l);n.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var f=o.getItemGraphicEl(u);f.updateData(n,l),s.add(f),n.setItemGraphicEl(l,f)}).remove(function(l){var u=o.getItemGraphicEl(l);Ai(u,t,l)}).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type=Ho,e})(Le),sB=fQ;function pQ(r,e){for(var t=r.mapDimension("value"),i=r.mapArray(t,function(l){return l}),a=[],n=e==="ascending",o=0,s=r.count();o<s;o++)a[o]=o;return J(e)?a.sort(e):e!=="none"&&a.sort(function(l,u){return n?i[l]-i[u]:i[u]-i[l]}),a}function cQ(r){var e=r.hostModel,t=uB(e);r.each(function(i){var a=r.getItemModel(i),n=a.getModel("label"),o=n.get("position"),s=a.getModel("labelLine"),l=r.getItemLayout(i),u=l.points,f=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",p,c,v,h;if(f)o==="insideLeft"?(c=(u[0][0]+u[3][0])/2+5,v=(u[0][1]+u[3][1])/2,p="left"):o==="insideRight"?(c=(u[1][0]+u[2][0])/2-5,v=(u[1][1]+u[2][1])/2,p="right"):(c=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,v=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,p="center"),h=[[c,v],[c,v]];else{var d=void 0,m=void 0,g=void 0,y=void 0,_=s.get("length");H(o)&&(!t&&le(["top","bottom"],o)>-1&&(o="left"),t&&le(["left","right"],o)>-1&&(o="bottom")),o==="left"?(d=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,g=d-_,c=g-5,p="right"):o==="right"?(d=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,g=d+_,c=g+5,p="left"):o==="top"?(d=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,y=m-_,v=y-5,p="center"):o==="bottom"?(d=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,y=m+_,v=y+5,p="center"):o==="rightTop"?(d=t?u[3][0]:u[1][0],m=t?u[3][1]:u[1][1],t?(y=m-_,v=y-5,p="center"):(g=d+_,c=g+5,p="top")):o==="rightBottom"?(d=u[2][0],m=u[2][1],t?(y=m+_,v=y+5,p="center"):(g=d+_,c=g+5,p="bottom")):o==="leftTop"?(d=u[0][0],m=t?u[0][1]:u[1][1],t?(y=m-_,v=y-5,p="center"):(g=d-_,c=g-5,p="right")):o==="leftBottom"?(d=t?u[1][0]:u[3][0],m=t?u[1][1]:u[2][1],t?(y=m+_,v=y+5,p="center"):(g=d-_,c=g-5,p="right")):(d=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,t?(y=m+_,v=y+5,p="center"):(g=d+_,c=g+5,p="left")),t?(g=d,c=g):(y=m,v=y),h=[[d,m],[g,y]]}l.label={linePoints:h,x:c,y:v,verticalAlign:"middle",textAlign:p,inside:f}})}var lB=qe(Ho,vQ);function vQ(r,e){r.eachSeriesByType(Ho,function(t){var i=t.getData(),a=i.mapDimension("value"),n=t.get("sort"),o=Qe(t,e),s=He(t.getBoxLayoutParams(),o.refContainer),l=uB(t),u=s.width,f=s.height,p=pQ(i,n),c=s.x,v=s.y,h=l?[j(t.get("minSize"),f),j(t.get("maxSize"),f)]:[j(t.get("minSize"),u),j(t.get("maxSize"),u)],d=i.getDataExtent(a),m=t.get("min"),g=t.get("max");m==null&&(m=Math.min(d[0],0)),g==null&&(g=d[1]);var y=t.get("funnelAlign"),_=t.get("gap"),x=l?u:f,S=(x-_*(i.count()-1))/i.count(),b=function(O,R){if(l){var z=i.get(a,O)||0,B=Ue(z,[m,g],h,!0),F=void 0;switch(y){case"top":F=v;break;case"center":F=v+(f-B)/2;break;case"bottom":F=v+(f-B);break}return[[R,F],[R,F+B]]}var G=i.get(a,O)||0,Y=Ue(G,[m,g],h,!0),q;switch(y){case"left":q=c;break;case"center":q=c+(u-Y)/2;break;case"right":q=c+u-Y;break}return[[q,R],[q+Y,R]]};n==="ascending"&&(S=-S,_=-_,l?c+=u:v+=f,p=p.reverse());for(var w=0;w<p.length;w++){var A=p[w],C=p[w+1],E=i.getItemModel(A);if(l){var D=E.get(["itemStyle","width"]);D==null?D=S:(D=j(D,u),n==="ascending"&&(D=-D));var I=b(A,c),M=b(C,c+D);c+=D+_,i.setItemLayout(A,{points:I.concat(M.slice().reverse())})}else{var P=E.get(["itemStyle","height"]);P==null?P=S:(P=j(P,f),n==="ascending"&&(P=-P));var I=b(A,v),M=b(C,v+P);v+=P+_,i.setItemLayout(A,{points:I.concat(M.slice().reverse())})}}cQ(i)})}function uB(r){return r.get("orient")==="horizontal"}function RC(r){r.registerChartView(sB),r.registerSeriesModel(oB),r.registerLayout(lB),r.registerProcessor(cn(Ho))}var hQ=.3,dQ=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._dataGroup=new Q,t._initialized=!1,t}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(t,i,a,n){var o=this._dataGroup;this._progressiveEls=[],o.removeAll();var s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.dimensions,p=pB(t);s.diff(l).add(c).update(v).remove(h).execute();function c(m){var g=fB(s,o,m,f,u);OC(g,s,m,p)}function v(m,g){var y=l.getItemGraphicEl(g);o.add(y);var _=cB(s,m,f,u);s.setItemGraphicEl(m,y),Ae(y,{shape:{points:_}},t,m),Bt(y),OC(y,s,m,p)}function h(m){var g=l.getItemGraphicEl(m);o.remove(g)}if(!this._initialized){this._initialized=!0;var d=mQ(u,t,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=s},e.prototype.incrementalPrepareRender=function(t,i,a){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(t,i,a){for(var n=i.getData(),o=i.coordinateSystem,s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=fB(n,this._dataGroup,l,o.dimensions,o);u.incremental=yr(i),OC(u,n,l,pB(i)),s.push(u)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e})(Le);function mQ(r,e,t){var i=r.model,a=r.getRect(),n=new de({shape:{x:a.x,y:a.y,width:a.width,height:a.height}}),o=i.get("layout")==="horizontal"?"width":"height";return n.setShape(o,0),Ge(n,{shape:{width:a.width,height:a.height}},e,t),n}function cB(r,e,t,i){for(var a=[],n=0;n<t.length;n++){var o=t[n],s=r.get(r.mapDimension(o),e);gQ(s,i.getAxis(o).type)||a.push(i.dataToPoint(s,o))}return a}function fB(r,e,t,i,a){var n=cB(r,t,i,a),o=new vt({shape:{points:n},z2:10});return e.add(o),r.setItemGraphicEl(t,o),o}function pB(r){var e=r.get("smooth",!0);return e===!0&&(e=hQ),e=gi(e),Lt(e)&&(e=0),{smooth:e}}function OC(r,e,t,i){r.useStyle(e.getItemVisual(t,"style")),r.style.fill=null,r.setShape("smooth",i.smooth);var a=e.getItemModel(t),n=a.getModel("emphasis");st(r,a,"lineStyle"),Be(r,n.get("focus"),n.get("blurScope"),n.get("disabled"))}function gQ(r,e){return e==="category"?r==null:r==null||isNaN(r)}var vB=dQ;var yQ=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.getInitialData=function(t,i){return nr(null,this,{useEncodeDefaulter:X(_Q,null,this)})},e.prototype.getRawIndicesByActiveState=function(t){var i=this.coordinateSystem,a=this.getData(),n=[];return i.eachActiveState(a,function(o,s){t===o&&n.push(a.getRawIndex(s))}),n},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:300,smooth:!1,animationEasing:"linear"},e})(ke);function _Q(r){var e=r.ecModel.getComponent("parallel",r.get("parallelIndex"));if(e){var t={};return T(e.dimensions,function(i){var a=xQ(i);t[i]=a}),t}}function xQ(r){return+r.replace("dim","")}var hB=yQ;var SQ=["lineStyle","opacity"],bQ={seriesType:"parallel",reset:function(r,e){var t=r.coordinateSystem,i={normal:r.get(["lineStyle","opacity"]),active:r.get("activeOpacity"),inactive:r.get("inactiveOpacity")};return{progress:function(a,n){t.eachActiveState(n,function(o,s){var l=i[o];if(o==="normal"&&n.hasItemOption){var u=n.getItemModel(s).get(SQ,!0);u!=null&&(l=u)}var f=n.ensureUniqueItemVisual(s,"style");f.opacity=l},a.start,a.end)}}}},dB=bQ;function NC(r){wQ(r),TQ(r)}function wQ(r){if(!r.parallel){var e=!1;T(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function TQ(r){var e=We(r.parallelAxis);T(e,function(t){if(te(t)){var i=t.parallelIndex||0,a=We(r.parallel)[i];a&&a.parallelAxisDefault&&ve(t,a.parallelAxisDefault,!1)}})}var CQ=5,AQ=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){this._model=t,this._api=a,this._handlers||(this._handlers={},T(EQ,function(n,o){a.getZr().on(o,this._handlers[o]=X(n,this))},this)),_a(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,i){Po(this,"_throttledDispatchExpand"),T(this._handlers,function(a,n){i.getZr().off(n,a)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(k({type:"parallelAxisExpand"},t))},e.type="parallel",e})(ze),EQ={mousedown:function(r){kC(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(kC(this,"click")&&e){var t=[r.offsetX,r.offsetY],i=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(i>CQ)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!kC(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),i=t.behavior;i==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(i==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:i==="jump"?null:{duration:0}})}}};function kC(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var mB=AQ;var Kp="parallel",H0=Kp,DQ=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var i=this.option;t&&ve(i,t,!0),this._initDimensions()},e.prototype.contains=function(t,i){var a=t.get("parallelIndex");return a!=null&&i.getComponent("parallel",a)===this},e.prototype.setAxisExpand=function(t){T(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(i){t.hasOwnProperty(i)&&(this.option[i]=t[i])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],i=this.parallelAxisIndex=[],a=Ie(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(n){return(n.get("parallelIndex")||0)===this.componentIndex},this);T(a,function(n){t.push("dim"+n.get("dim")),i.push(n.componentIndex)})},e.type=H0,e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e})(Se),gB=DQ;var MQ=(function(r){L(e,r);function e(t,i,a,n,o){var s=r.call(this,t,i,a)||this;return s.type=n||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(ur),yB=MQ;function oi(r,e,t,i,a,n){r=r||0;var o=ho(t[1],-t[0]);if(a!=null&&(a=qp(a,[0,o])),n!=null&&(n=Math.max(n,a??0)),i==="all"){var s=Math.abs(ho(e[1],-e[0]));s=qp(s,[0,o]),a=n=qp(s,[a,n]),i=0}e[0]=qp(e[0],t),e[1]=qp(e[1],t);var l=zC(e,i);e[i]+=r;var u=a||0,f=t.slice();l.sign<0?f[0]=ho(f[0],u):f[1]=ho(f[1],-u),e[i]=qp(e[i],f);var p;return p=zC(e,i),a!=null&&(p.sign!==l.sign||p.span<a)&&(e[1-i]=ho(e[i],l.sign*a)),p=zC(e,i),n!=null&&p.span>n&&(e[1-i]=ho(e[i],p.sign*n)),e}function zC(r,e){var t=r[e]-r[1-e];return{span:Math.abs(t),sign:t>0?-1:t<0?1:e?-1:1}}function qp(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var IQ=(function(){function r(e,t,i){this.type=Kp,this._axesMap=W(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,i)}return r.prototype._init=function(e,t,i){var a=e.dimensions,n=e.parallelAxisIndex;T(a,function(o,s){var l=n[s],u=t.getComponent("parallelAxis",l),f=Xn(u),p=this._axesMap.set(o,new yB(o,wa(u,f,!1),[0,0],f,l));p.onBand=Zn(p.scale,u),p.inverse=u.get("inverse"),u.axis=p,p.model=u,p.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){T(this.dimensions,function(i){var a=this._axesMap.get(i);Zi(a,on),qn(a)},this)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),i=t.axisBase,a=t.layoutBase,n=t.pixelDimIndex,o=e[1-n],s=e[n];return o>=i&&o<=i+t.axisLength&&s>=a&&s<=a+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype.resize=function(e,t){var i=Qe(e,t).refContainer;this._rect=He(e.getBoxLayoutParams(),i),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,i=["x","y"],a=["width","height"],n=e.get("layout"),o=n==="horizontal"?0:1,s=t[a[o]],l=[0,s],u=this.dimensions.length,f=Y0(e.get("axisExpandWidth"),l),p=Y0(e.get("axisExpandCount")||0,[0,u]),c=e.get("axisExpandable")&&u>3&&u>p&&p>1&&f>0&&s>0,v=e.get("axisExpandWindow"),h;if(v)h=Y0(v[1]-v[0],l),v[1]=v[0]+h;else{h=Y0(f*(p-1),l);var d=e.get("axisExpandCenter")||mr(u/2);v=[f*d-h/2],v[1]=v[0]+h}var m=(s-h)/(u-p);m<3&&(m=0);var g=[mr(Ne(v[0]/f,1))+1,sa(Ne(v[1]/f,1))-1],y=m/f*v[0];return{layout:n,pixelDimIndex:o,layoutBase:t[i[o]],layoutLength:s,axisBase:t[i[1-o]],axisLength:t[a[1-o]],axisExpandable:c,axisExpandWidth:f,axisCollapseWidth:m,axisExpandWindow:v,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,i=this.dimensions,a=this._makeLayoutInfo(),n=a.layout;t.each(function(o){var s=[0,a.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),T(i,function(o,s){var l=(a.axisExpandable?PQ:LQ)(s,a),u={horizontal:{x:l.position,y:a.axisLength},vertical:{x:0,y:l.position}},f={horizontal:_f/2,vertical:0},p=[u[n].x+e.x,u[n].y+e.y],c=f[n],v=Je();dr(v,v,c),fr(v,v,p),this._axesLayout[o]={position:p,rotation:c,transform:v,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,i,a){i==null&&(i=0),a==null&&(a=e.count());var n=this._axesMap,o=this.dimensions,s=[],l=[];T(o,function(m){s.push(e.mapDimension(m)),l.push(n.get(m).model)});for(var u=this.hasAxisBrushed(),f=i;f<a;f++){var p=void 0;if(!u)p="normal";else{p="active";for(var c=e.getValues(s,f),v=0,h=o.length;v<h;v++){var d=l[v].getActiveState(c[v]);if(d==="inactive"){p="inactive";break}}}t(p,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,i=!1,a=0,n=e.length;a<n;a++)t.get(e[a]).model.getActiveState()!=="normal"&&(i=!0);return i},r.prototype.axisCoordToPoint=function(e,t){var i=this._axesLayout[t];return br([e,0],i.transform)},r.prototype.getAxisLayout=function(e){return ee(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),i=t.pixelDimIndex,a=t.axisExpandWindow.slice(),n=a[1]-a[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:a};var s=e[i]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,p=this._model.get("axisExpandSlideTriggerArea"),c=p[0]!=null;if(f)c&&f&&s<n*p[0]?(u="jump",l=s-n*p[2]):c&&f&&s>n*(1-p[0])?(u="jump",l=s-n*(1-p[2])):(l=s-n*p[1])>=0&&(l=s-n*(1-p[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?oi(l,a,o,"all"):u="none";else{var v=a[1]-a[0],h=o[1]*s/v;a=[xe(0,h-v/2)],a[1]=Fe(o[1],a[0]+v),a[0]=a[1]-v}return{axisExpandWindow:a,behavior:u}},r})();function Y0(r,e){return Fe(xe(r,e[0]),e[1])}function LQ(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function PQ(r,e){var t=e.layoutLength,i=e.axisExpandWidth,a=e.axisCount,n=e.axisCollapseWidth,o=e.winInnerIndices,s,l=n,u=!1,f;return r<o[0]?(s=r*n,f=n):r<=o[1]?(s=e.axisExpandWindow0Pos+r*i-e.axisExpandWindow[0],l=i,u=!0):(s=t-(a-1-r)*n,f=n),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}var _B=IQ;function RQ(r,e){var t=[];return r.eachComponent(H0,function(i,a){var n=new _B(i,r,e);n.name="parallel_"+a,n.resize(i,e),i.coordinateSystem=n,n.model=i,t.push(n)}),r.eachSeries(function(i){if(i.get("coordinateSystem")===Kp){var a=i.getReferringComponents(H0,Ke).models[0],n=i.coordinateSystem=a.coordinateSystem;n&&T(n.dimensions,function(o){Ca(n.getAxis(o),i,Kp)})}}),t}var OQ={create:RQ},xB=OQ;var SB=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return xi([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var i=this.activeIntervals=ee(t);if(i)for(var a=i.length-1;a>=0;a--)dt(i[a])},e.prototype.getActiveState=function(t){var i=this.activeIntervals;if(!i.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(i.length===1){var a=i[0];if(a[0]<=t&&t<=a[1])return"active"}else for(var n=0,o=i.length;n<o;n++)if(i[n][0]<=t&&t<=i[n][1])return"active";return"inactive"},e})(Se);rt(SB,Ta);var VC=SB;var Xu=!0,Oh=Math.min,jp=Math.max,NQ=Math.pow,kQ=1e4,zQ=6,VQ=6,bB="globalPan",UQ={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},BQ={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},wB={brushStyle:{lineWidth:2,stroke:N.color.backgroundTint,fill:N.color.borderTint},transformable:!0,brushMode:"single",removeOnClick:!1},FQ=0,GQ=(function(r){L(e,r);function e(t){var i=r.call(this)||this;return i._track=[],i._covers=[],i._handlers={},i._zr=t,i.group=new Q,i._uid="brushController_"+FQ++,T(qQ,function(a,n){this._handlers[n]=X(a,this)},i),i}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var i=this._zr;this._enableGlobalPan||Kz(i,bB,this._uid),T(this._handlers,function(a,n){i.on(n,a)}),this._brushType=t.brushType,this._brushOption=ve(ee(wB),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;qz(t,bB,this._uid),T(this._handlers,function(i,a){t.off(a,i)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var i=this._panels={};T(t,function(a){i[a.panelId]=ee(a)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var i=this.group;return this._zr.add(i),i.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=i.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=U(t,function(c){return ve(ee(wB),c,!0)});var i="\0-brush-index-",a=this._covers,n=this._covers=[],o=this,s=this._creatingCover;return new Tr(a,t,u,l).add(f).update(f).remove(p).execute(),this;function l(c,v){return(c.id!=null?c.id:i+v)+"-"+c.brushType}function u(c,v){return l(c.__brushOption,v)}function f(c,v){var h=t[c];if(v!=null&&a[v]===s)n[c]=a[v];else{var d=n[c]=v!=null?(a[v].__brushOption=h,a[v]):MB(o,DB(o,h));YC(o,d)}}function p(c){a[c]!==s&&o.group.remove(a[c])}},e.prototype.unmount=function(){return this.enableBrush(!1),UC(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e})(Jt);function DB(r,e){var t=W0[e.brushType].createCover(r,e);return t.__brushOption=e,LB(t,e),r.group.add(t),t}function MB(r,e){var t=WC(e);return t.endCreating&&(t.endCreating(r,e),LB(e,e.__brushOption)),e}function IB(r,e){var t=e.__brushOption;WC(e).updateCoverShape(r,e,t.range,t)}function LB(r,e){var t=e.z;t==null&&(t=kQ),r.traverse(function(i){i.z=t,i.z2=t})}function YC(r,e){WC(e).updateCommon(r,e),IB(r,e)}function WC(r){return W0[r.__brushOption.brushType]}function XC(r,e,t){var i=r._panels;if(!i)return Xu;var a,n=r._transform;return T(i,function(o){o.isTargetByCursor(e,t,n)&&(a=o)}),a}function PB(r,e){var t=r._panels;if(!t)return Xu;var i=e.__brushOption.panelId;return i!=null?t[i]:Xu}function UC(r){var e=r._covers,t=e.length;return T(e,function(i){r.group.remove(i)},r),e.length=0,!!t}function Zu(r,e){var t=U(r._covers,function(i){var a=i.__brushOption,n=ee(a.range);return{brushType:a.brushType,panelId:a.panelId,range:n}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function HQ(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],i=e[0],a=t[0]-i[0],n=t[1]-i[1],o=NQ(a*a+n*n,.5);return o>zQ}function RB(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function OB(r,e,t,i){var a=new Q;return a.add(new de({name:"main",style:ZC(t),silent:!0,draggable:!0,cursor:"move",drift:me(TB,r,e,a,["n","s","w","e"]),ondragend:me(Zu,e,{isEnd:!0})})),T(i,function(n){a.add(new de({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:me(TB,r,e,a,n),ondragend:me(Zu,e,{isEnd:!0})}))}),a}function NB(r,e,t,i){var a=i.brushStyle.lineWidth||0,n=jp(a,VQ),o=t[0][0],s=t[1][0],l=o-a/2,u=s-a/2,f=t[0][1],p=t[1][1],c=f-n+a/2,v=p-n+a/2,h=f-o,d=p-s,m=h+a,g=d+a;Yo(r,e,"main",o,s,h,d),i.transformable&&(Yo(r,e,"w",l,u,n,g),Yo(r,e,"e",c,u,n,g),Yo(r,e,"n",l,u,m,n),Yo(r,e,"s",l,v,m,n),Yo(r,e,"nw",l,u,n,n),Yo(r,e,"ne",c,u,n,n),Yo(r,e,"sw",l,v,n,n),Yo(r,e,"se",c,v,n,n))}function BC(r,e){var t=e.__brushOption,i=t.transformable,a=e.childAt(0);a.useStyle(ZC(t)),a.attr({silent:!i,cursor:i?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(n){var o=e.childOfName(n.join("")),s=n.length===1?FC(r,n[0]):WQ(r,n);o&&o.attr({silent:!i,invisible:!i,cursor:i?BQ[s]+"-resize":null})})}function Yo(r,e,t,i,a,n,o){var s=e.childOfName(t);s&&s.setShape(ZQ(KC(r,e,[[i,a],[i+n,a+o]])))}function ZC(r){return $({strokeNoScale:!0},r.brushStyle)}function kB(r,e,t,i){var a=[Oh(r,t),Oh(e,i)],n=[jp(r,t),jp(e,i)];return[[a[0],n[0]],[a[1],n[1]]]}function YQ(r){return qa(r.group)}function FC(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},a=eu(t[e],YQ(r));return i[a]}function WQ(r,e){var t=[FC(r,e[0]),FC(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function TB(r,e,t,i,a,n){var o=t.__brushOption,s=r.toRectRange(o.range),l=zB(e,a,n);T(i,function(u){var f=UQ[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(kB(s[0][0],s[1][0],s[0][1],s[1][1])),YC(e,t),Zu(e,{isEnd:!1})}function XQ(r,e,t,i){var a=e.__brushOption.range,n=zB(r,t,i);T(a,function(o){o[0]+=n[0],o[1]+=n[1]}),YC(r,e),Zu(r,{isEnd:!1})}function zB(r,e,t){var i=r.group,a=i.transformCoordToLocal(e,t),n=i.transformCoordToLocal(0,0);return[a[0]-n[0],a[1]-n[1]]}function KC(r,e,t){var i=PB(r,e);return i&&i!==Xu?i.clipPath(t,r._transform):ee(t)}function ZQ(r){var e=Oh(r[0][0],r[1][0]),t=Oh(r[0][1],r[1][1]),i=jp(r[0][0],r[1][0]),a=jp(r[0][1],r[1][1]);return{x:e,y:t,width:i-e,height:a-t}}function KQ(r,e,t){if(!(!r._brushType||jQ(r,e.offsetX,e.offsetY))){var i=r._zr,a=r._covers,n=XC(r,e,t);if(!r._dragging)for(var o=0;o<a.length;o++){var s=a[o].__brushOption;if(n&&(n===Xu||s.panelId===n.panelId)&&W0[s.brushType].contain(a[o],t[0],t[1]))return}n&&i.setCursorStyle("crosshair")}}function GC(r){var e=r.event;e.preventDefault&&e.preventDefault()}function HC(r,e,t){return r.childOfName("main").contain(e,t)}function VB(r,e,t,i){var a=r._creatingCover,n=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),HQ(r)||a){if(n&&!a){o.brushMode==="single"&&UC(r);var l=ee(o);l.brushType=CB(l.brushType,n),l.panelId=n===Xu?null:n.panelId,a=r._creatingCover=DB(r,l),r._covers.push(a)}if(a){var u=W0[CB(r._brushType,n)],f=a.__brushOption;f.range=u.getCreatingRange(KC(r,a,r._track)),i&&(MB(r,a),u.updateCommon(r,a)),IB(r,a),s={isEnd:i}}}else i&&o.brushMode==="single"&&o.removeOnClick&&XC(r,e,t)&&UC(r)&&(s={isEnd:i,removeOnClick:!0});return s}function CB(r,e){return r==="auto"?e.defaultBrushType:r}var qQ={mousedown:function(r){if(this._dragging)AB(this,r);else if(!r.target||!r.target.draggable){GC(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=XC(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,i=this.group.transformCoordToLocal(e,t);if(KQ(this,r,i),this._dragging){GC(r);var a=VB(this,r,i,!1);a&&Zu(this,a)}},mouseup:function(r){AB(this,r)}};function AB(r,e){if(r._dragging){GC(e);var t=e.offsetX,i=e.offsetY,a=r.group.transformCoordToLocal(t,i),n=VB(r,e,a,!0);r._dragging=!1,r._track=[],r._creatingCover=null,n&&Zu(r,n)}}function jQ(r,e,t){var i=r._zr;return e<0||e>i.getWidth()||t<0||t>i.getHeight()}var W0={lineX:EB(0),lineY:EB(1),rect:{createCover:function(r,e){function t(i){return i}return OB({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=RB(r);return kB(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,i){NB(r,e,t,i)},updateCommon:BC,contain:HC},polygon:{createCover:function(r,e){var t=new Q;return t.add(new vt({name:"main",style:ZC(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new yt({name:"main",draggable:!0,drift:me(XQ,r,e),ondragend:me(Zu,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,i){e.childAt(0).setShape({points:KC(r,e,t)})},updateCommon:BC,contain:HC}};function EB(r){return{createCover:function(e,t){return OB({toRectRange:function(i){var a=[i,[0,100]];return r&&a.reverse(),a},fromRectRange:function(i){return i[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=RB(e),i=Oh(t[0][r],t[1][r]),a=jp(t[0][r],t[1][r]);return[i,a]},updateCoverShape:function(e,t,i,a){var n,o=PB(e,t);if(o!==Xu&&o.getLinearBrushOtherExtent)n=o.getLinearBrushOtherExtent(r);else{var s=e._zr;n=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[i,n];r&&l.reverse(),NB(e,t,l,a)},updateCommon:BC,contain:HC}}var Jp=GQ;function X0(r){return r=qC(r),function(e){return dv(e,r)}}function Z0(r,e){return r=qC(r),function(t){var i=e??t,a=i?r.width:r.height,n=i?r.x:r.y;return[n,n+(a||0)]}}function K0(r,e,t){var i=qC(r);return function(a,n){return i.contain(n[0],n[1])&&!f0(a,e,t)}}function qC(r){return oe.create(r)}var JQ=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){r.prototype.init.apply(this,arguments),(this._brushController=new Jp(i.getZr())).on("brush",X(this._onBrush,this))},e.prototype.render=function(t,i,a,n){if(!QQ(t,i,n)){this.axisModel=t,this.api=a,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Q,this.group.add(this._axisGroup),!!t.get("show")){var s=e$(t,i),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,p=t.axis.dim,c=l.getAxisLayout(p),v=k({strokeContainThreshold:f},c),h=new Ar(t,a,v);h.build(),this._axisGroup.add(h.group),this._refreshBrushController(v,u,t,s,f,a),Eo(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,i,a,n,o,s){var l=a.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),p=oe.create({x:l[0],y:-o/2,width:u,height:o});p.x-=f,p.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:X0(p),isTargetByCursor:K0(p,s,n),getLinearBrushOtherExtent:Z0(p,0)}]).enableBrush({brushType:"lineX",brushStyle:i,removeOnClick:!0}).updateCovers($Q(a))},e.prototype._onBrush=function(t){var i=t.areas,a=this.axisModel,n=a.axis,o=U(i,function(s){return[n.coordToData(s.range[0],!0),n.coordToData(s.range[1],!0)]});(!a.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:a.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(ze);function QQ(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function $Q(r){var e=r.axis;return U(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function e$(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var BB=JQ;var t$={type:"axisAreaSelect",event:"axisAreaSelected"};function FB(r){r.registerAction(t$,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(i){i.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(i){i.setAxisExpand(e)})})}var r$={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Nh(r){r.registerComponentView(mB),r.registerComponentModel(gB),r.registerCoordinateSystem("parallel",xB),r.registerPreprocessor(NC),r.registerComponentModel(VC),r.registerComponentView(BB),hn(r,"parallel",VC,r$),FB(r)}function jC(r){Ce(Nh),r.registerChartView(vB),r.registerSeriesModel(hB),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,dB)}var Qi="sankey",i$=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){var a=t.edges||t.links||[],n=t.data||t.nodes||[],o=t.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Ee(o[l],this,i));var u=Gu(n,a,this,!0,f);return u.data;function f(p,c){p.wrapMethod("getItemModel",function(v,h){var d=v.parentModel,m=d.getData().getItemLayout(h);if(m){var g=m.depth,y=d.levelModels[g];y&&(v.parentModel=y)}return v}),c.wrapMethod("getItemModel",function(v,h){var d=v.parentModel,m=d.getGraph().getEdgeByIndex(h),g=m.node1.getLayout();if(g){var y=g.depth,_=d.levelModels[y];_&&(v.parentModel=_)}return v})}},e.prototype.setNodePosition=function(t,i){var a=this.option.data||this.option.nodes,n=a[t];n.localX=i[0],n.localY=i[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,i,a){function n(v){return isNaN(v)||v==null}if(a==="edge"){var o=this.getDataParams(t,a),s=o.data,l=o.value,u=s.source+" -- "+s.target;return ft("nameValue",{name:u,value:l,noValue:n(l)})}else{var f=this.getGraph().getNodeByIndex(t),p=f.getLayout().value,c=this.getDataParams(t,a).data.name;return ft("nameValue",{name:c!=null?c+"":null,value:p,noValue:n(p)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(t,i){var a=r.prototype.getDataParams.call(this,t,i);if(a.value==null&&i==="node"){var n=this.getGraph().getNodeByIndex(t),o=n.getLayout().value;a.value=o}return a},e.prototype.__ownRoamView=function(){return this.coordinateSystem},e.type="series."+Qi,e.layoutMode="box",e.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:N.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:N.color.primary}},animationEasing:"linear",animationDuration:1e3},e})(ke),GB=i$;var a$=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return r})(),n$=(function(r){L(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new a$},e.prototype.buildPath=function(t,i){var a=i.extent;t.moveTo(i.x1,i.y1),t.bezierCurveTo(i.cpx1,i.cpy1,i.cpx2,i.cpy2,i.x2,i.y2),i.orient==="vertical"?(t.lineTo(i.x2+a,i.y2),t.bezierCurveTo(i.cpx2+a,i.cpy2,i.cpx1+a,i.cpy1,i.x1+a,i.y1)):(t.lineTo(i.x2,i.y2+a),t.bezierCurveTo(i.cpx2,i.cpy2+a,i.cpx1,i.cpy1+a,i.x1,i.y1+a)),t.closePath()},e.prototype.highlight=function(){Pr(this)},e.prototype.downplay=function(){Rr(this)},e})(ce),o$=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Qi,t._mainGroup=new Q,t}return e.prototype.init=function(t,i){this._controller=new Oi(i.getZr()),this.group.add(this._mainGroup),this._firstRender=!0},e.prototype.render=function(t,i,a){var n=t.getGraph(),o=this._mainGroup,s=t.layoutInfo,l=s.width,u=s.height,f=t.getData(),p=t.getData("edge"),c=t.get("orient");o.removeAll(),o.x=s.x,o.y=s.y,this._updateViewCoordSys(t,a),qs(t,a,this._controller,A0(o),null),n.eachEdge(function(v){var h=new n$,d=se(h);d.dataIndex=v.dataIndex,d.seriesIndex=t.seriesIndex,d.dataType="edge";var m=v.getModel(),g=m.getModel("lineStyle"),y=g.get("curveness"),_=v.node1.getLayout(),x=v.node1.getModel(),S=x.get("localX"),b=x.get("localY"),w=v.node2.getLayout(),A=v.node2.getModel(),C=A.get("localX"),E=A.get("localY"),D=v.getLayout(),I,M,P,O,R,z,B,F;h.shape.extent=Math.max(1,D.dy),h.shape.orient=c,c==="vertical"?(I=(S!=null?S*l:_.x)+D.sy,M=(b!=null?b*u:_.y)+_.dy,P=(C!=null?C*l:w.x)+D.ty,O=E!=null?E*u:w.y,R=I,z=M*(1-y)+O*y,B=P,F=M*y+O*(1-y)):(I=(S!=null?S*l:_.x)+_.dx,M=(b!=null?b*u:_.y)+D.sy,P=C!=null?C*l:w.x,O=(E!=null?E*u:w.y)+D.ty,R=I*(1-y)+P*y,z=M,B=I*y+P*(1-y),F=O),h.setShape({x1:I,y1:M,x2:P,y2:O,cpx1:R,cpy1:z,cpx2:B,cpy2:F}),h.useStyle(g.getItemStyle()),HB(h.style,c,v);var G=""+m.get("value"),Y=tt(m,"edgeLabel");it(h,Y,{labelFetcher:{getFormattedLabel:function(ie,ue,Pe,$e,De,fe){return t.getFormattedLabel(ie,ue,"edge",$e,Dt(De,Y.normal&&Y.normal.get("formatter"),G),fe)}},labelDataIndex:v.dataIndex,defaultText:G}),h.setTextConfig({position:"inside"});var q=m.getModel("emphasis");st(h,m,"lineStyle",function(ie){var ue=ie.getItemStyle();return HB(ue,c,v),ue}),o.add(h),p.setItemGraphicEl(v.dataIndex,h);var re=q.get("focus");Be(h,re==="adjacency"?v.getAdjacentDataIndices():re==="trajectory"?v.getTrajectoryDataIndices():re,q.get("blurScope"),q.get("disabled"))}),n.eachNode(function(v){var h=v.getLayout(),d=v.getModel(),m=d.get("localX"),g=d.get("localY"),y=d.getModel("emphasis"),_=d.get(["itemStyle","borderRadius"])||0,x=new de({shape:{x:m!=null?m*l:h.x,y:g!=null?g*u:h.y,width:h.dx,height:h.dy,r:_},style:d.getModel("itemStyle").getItemStyle(),z2:10});it(x,tt(d),{labelFetcher:{getFormattedLabel:function(b,w){return t.getFormattedLabel(b,w,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),x.disableLabelAnimation=!0,x.setStyle("fill",v.getVisual("color")),x.setStyle("decal",v.getVisual("style").decal),st(x,d),o.add(x),f.setItemGraphicEl(v.dataIndex,x),se(x).dataType="node";var S=y.get("focus");Be(x,S==="adjacency"?v.getAdjacentDataIndices():S==="trajectory"?v.getTrajectoryDataIndices():S,y.get("blurScope"),y.get("disabled"))}),f.eachItemGraphicEl(function(v,h){var d=f.getItemModel(h);d.get("draggable")&&(v.drift=function(m,g){this.shape.x+=m,this.shape.y+=g,this.dirty(),a.dispatchAction({type:"dragNode",seriesId:t.id,dataIndex:f.getRawIndex(h),localX:this.shape.x/l,localY:this.shape.y/u})},v.draggable=!0,v.cursor="move")}),!this._data&&t.isAnimationEnabled()&&o.setClipPath(s$(o.getBoundingRect(),t,function(){o.removeClipPath()})),this._data=t.getData(),this._firstRender=!1},e.prototype.__updateOnOwnRoam=function(t,i,a){Ma(this.group,Ji,i.coordinateSystem,null)},e.prototype.dispose=function(){this._controller&&this._controller.dispose()},e.prototype._updateViewCoordSys=function(t,i){var a=t.layoutInfo,n=t.coordinateSystem=Op(t,i,a.x,a.y,a.width,a.height);Ma(this.group,Ji,n,this._firstRender?null:t)},e.type=Qi,e})(Le);function HB(r,e,t){switch(r.fill){case"source":r.fill=t.node1.getVisual("color"),r.decal=t.node1.getVisual("style").decal;break;case"target":r.fill=t.node2.getVisual("color"),r.decal=t.node2.getVisual("style").decal;break;case"gradient":var i=t.node1.getVisual("color"),a=t.node2.getVisual("color");H(i)&&H(a)&&(r.fill=new Ci(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:i,offset:0},{color:a,offset:1}]))}}function s$(r,e,t){var i=new de({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ge(i,{shape:{width:r.width+20}},e,t),i}var YB=o$;var WB=qe(Qi,l$);function l$(r,e){r.eachSeriesByType(Qi,function(t){var i=t.get("nodeWidth"),a=t.get("nodeGap"),n=Qe(t,e).refContainer,o=He(t.getBoxLayoutParams(),n);t.layoutInfo=o;var s=o.width,l=o.height,u=t.getGraph(),f=u.nodes,p=u.edges;f$(f);var c=Ie(f,function(m){return m.getLayout().value===0}),v=c.length!==0?0:t.get("layoutIterations"),h=t.get("orient"),d=t.get("nodeAlign");u$(f,p,i,a,s,l,v,h,d)})}function u$(r,e,t,i,a,n,o,s,l){p$(r,e,t,a,n,s,l),d$(r,e,n,a,i,o,s),T$(r,s)}function f$(r){T(r,function(e){var t=Qs(e.outEdges,q0),i=Qs(e.inEdges,q0),a=e.getValue()||0,n=Math.max(t,i,a);e.setLayout({value:n},!0)})}function p$(r,e,t,i,a,n,o){for(var s=[],l=[],u=[],f=[],p=0,c=0;c<e.length;c++)s[c]=1;for(var c=0;c<r.length;c++)l[c]=r[c].inEdges.length,l[c]===0&&u.push(r[c]);for(var v=-1;u.length;){for(var h=0;h<u.length;h++){var d=u[h],m=d.hostGraph.data.getRawDataItem(d.dataIndex),g=m.depth!=null&&m.depth>=0;g&&m.depth>v&&(v=m.depth),d.setLayout({depth:g?m.depth:p},!0),n==="vertical"?d.setLayout({dy:t},!0):d.setLayout({dx:t},!0);for(var y=0;y<d.outEdges.length;y++){var _=d.outEdges[y],x=le(e,_);s[x]=0;var S=_.node2,b=le(r,S);--l[b]===0&&le(f,S)<0&&f.push(S)}}++p,u=f,f=[]}for(var c=0;c<s.length;c++)if(s[c]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var w=v>p-1?v:p-1;o&&o!=="left"&&c$(r,o,n,w);var A=n==="vertical"?(a-t)/w:(i-t)/w;h$(r,A,n)}function XB(r){var e=r.hostGraph.data.getRawDataItem(r.dataIndex);return e.depth!=null&&e.depth>=0}function c$(r,e,t,i){if(e==="right"){for(var a=[],n=r,o=0;n.length;){for(var s=0;s<n.length;s++){var l=n[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var f=l.inEdges[u];le(a,f.node1)<0&&a.push(f.node1)}}n=a,a=[],++o}T(r,function(p){XB(p)||p.setLayout({depth:Math.max(0,i-p.getLayout().skNodeHeight)},!0)})}else e==="justify"&&v$(r,i)}function v$(r,e){T(r,function(t){!XB(t)&&!t.outEdges.length&&t.setLayout({depth:e},!0)})}function h$(r,e,t){T(r,function(i){var a=i.getLayout().depth*e;t==="vertical"?i.setLayout({y:a},!0):i.setLayout({x:a},!0)})}function d$(r,e,t,i,a,n,o){var s=m$(r,o);g$(s,e,t,i,a,o),JC(s,a,t,i,o);for(var l=1;n>0;n--)l*=.99,y$(s,l,o),JC(s,a,t,i,o),w$(s,l,o),JC(s,a,t,i,o)}function m$(r,e){var t=[],i=e==="vertical"?"y":"x",a=Qc(r,function(n){return n.getLayout()[i]});return dt(a.keys),T(a.keys,function(n){t.push(a.buckets.get(n))}),t}function g$(r,e,t,i,a,n){var o=1/0;T(r,function(s){var l=s.length,u=0;T(s,function(p){u+=p.getLayout().value});var f=n==="vertical"?(i-(l-1)*a)/u:(t-(l-1)*a)/u;f<o&&(o=f)}),T(r,function(s){T(s,function(l,u){var f=l.getLayout().value*o;n==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:f},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:f},!0))})}),T(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function JC(r,e,t,i,a){var n=a==="vertical"?"x":"y";T(r,function(o){o.sort(function(d,m){return d.getLayout()[n]-m.getLayout()[n]});for(var s,l,u,f=0,p=o.length,c=a==="vertical"?"dx":"dy",v=0;v<p;v++)l=o[v],u=f-l.getLayout()[n],u>0&&(s=l.getLayout()[n]+u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]+l.getLayout()[c]+e;var h=a==="vertical"?i:t;if(u=f-e-h,u>0){s=l.getLayout()[n]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),f=s;for(var v=p-2;v>=0;--v)l=o[v],u=l.getLayout()[n]+l.getLayout()[c]+e-f,u>0&&(s=l.getLayout()[n]-u,a==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),f=l.getLayout()[n]}})}function y$(r,e,t){T(r.slice().reverse(),function(i){T(i,function(a){if(a.outEdges.length){var n=Qs(a.outEdges,_$,t)/Qs(a.outEdges,q0);if(isNaN(n)){var o=a.outEdges.length;n=o?Qs(a.outEdges,x$,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(n-$s(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(n-$s(a,t))*e;a.setLayout({y:l},!0)}}})})}function _$(r,e){return $s(r.node2,e)*r.getValue()}function x$(r,e){return $s(r.node2,e)}function S$(r,e){return $s(r.node1,e)*r.getValue()}function b$(r,e){return $s(r.node1,e)}function $s(r,e){return e==="vertical"?r.getLayout().x+r.getLayout().dx/2:r.getLayout().y+r.getLayout().dy/2}function q0(r){return r.getValue()}function Qs(r,e,t){for(var i=0,a=r.length,n=-1;++n<a;){var o=+e(r[n],t);isNaN(o)||(i+=o)}return i}function w$(r,e,t){T(r,function(i){T(i,function(a){if(a.inEdges.length){var n=Qs(a.inEdges,S$,t)/Qs(a.inEdges,q0);if(isNaN(n)){var o=a.inEdges.length;n=o?Qs(a.inEdges,b$,t)/o:0}if(t==="vertical"){var s=a.getLayout().x+(n-$s(a,t))*e;a.setLayout({x:s},!0)}else{var l=a.getLayout().y+(n-$s(a,t))*e;a.setLayout({y:l},!0)}}})})}function T$(r,e){var t=e==="vertical"?"x":"y";T(r,function(i){i.outEdges.sort(function(a,n){return a.node2.getLayout()[t]-n.node2.getLayout()[t]}),i.inEdges.sort(function(a,n){return a.node1.getLayout()[t]-n.node1.getLayout()[t]})}),T(r,function(i){var a=0,n=0;T(i.outEdges,function(o){o.setLayout({sy:a},!0),a+=o.getLayout().dy}),T(i.inEdges,function(o){o.setLayout({ty:n},!0),n+=o.getLayout().dy})})}var ZB=qe(Qi,C$);function C$(r){r.eachSeriesByType(Qi,function(e){var t=e.getGraph(),i=t.nodes,a=t.edges;if(i.length){var n=1/0,o=-1/0;T(i,function(s){var l=s.getLayout().value;l<n&&(n=l),l>o&&(o=l)}),T(i,function(s){var l=new Nt({type:"color",mappingMethod:"linear",dataExtent:[n,o],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),f=s.getModel().get(["itemStyle","color"]);f!=null?(s.setVisual("color",f),s.setVisual("style",{fill:f})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}a.length&&T(a,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function QC(r){r.registerChartView(YB),r.registerSeriesModel(GB),r.registerLayout(WB),r.registerVisual(ZB),r.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:xr,subType:Qi,query:e},function(i){i.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),Rp(r,xr,Qi)}var j0=(function(){function r(){}return r.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&t.get(e)!=null},r.prototype.getInitialData=function(e,t){var i,a=t.getComponent("xAxis",this.get("xAxisIndex")),n=t.getComponent("yAxis",this.get("yAxisIndex")),o=a.get("type"),s=n.get("type"),l,u=e.layout;o==="category"?(u="horizontal",i=a.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"&&(u="vertical",i=n.getOrdinalMeta(),l=!this._hasEncodeRule("y")),u||(u=s==="time"?"vertical":"horizontal"),this._layout=u;var f=["x","y"],p=u==="horizontal"?0:1,c=this._baseAxisDim=f[p],v=f[1-p],h=[a,n],d=h[p].get("type"),m=h[1-p].get("type"),g=e.data;if(g&&l){var y=[];T(g,function(S,b){var w;V(S)?(w=S.slice(),S.unshift(b)):V(S.value)?(w=k({},S),w.value=w.value.slice(),S.value.unshift(b)):w=S,y.push(w)}),e.data=y}var _=this.defaultValueDimensions,x=[{name:c,type:xu(d),ordinalMeta:i,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:v,type:xu(m),dimsDef:_.slice()}];return qi(this,{coordDimensions:x,dimensionsCount:_.length+1,encodeDefaulter:me(ug,x,this)})},r.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},r.prototype.getWhiskerBoxesLayout=function(){return this._layout},r})();function Qp(r,e){for(var t=e.ends.length,i=0,a=0;a<t;a++)r.contain(e.ends[a][0],e.ends[a][1])&&i++;return i?i<t?Ns:Os:ks}var La="boxplot",KB=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}return e.type="series."+La,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,boxWidth:[7,50],itemStyle:{color:N.color.neutral00,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:N.color.shadow}},animationDuration:800},e})(ke);rt(KB,j0,!0);var qB=KB;var A$=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=La,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=t.getWhiskerBoxesLayout()==="horizontal"?1:0,u=t.get("clip",!0),f=t.coordinateSystem,p=f.getArea&&f.getArea(),c=u&&Ki(f,!1,t);n.diff(s).add(function(v){if(n.hasValue(v)){var h=n.getItemLayout(v),d=u?Qp(p,h):Os;if(d===ks)return;var m=jB(h,n,v,l,!0);zs(d===Ns,m,c),n.setItemGraphicEl(v,m),o.add(m)}}).update(function(v,h){var d=s.getItemGraphicEl(h);if(!n.hasValue(v)){o.remove(d);return}var m=n.getItemLayout(v),g=u?Qp(p,m):Os;if(g===ks){o.remove(d);return}d?(Bt(d),JB(m,d,n,v)):d=jB(m,n,v,l),zs(g===Ns,d,c),o.add(d),n.setItemGraphicEl(v,d)}).remove(function(v){var h=s.getItemGraphicEl(v);h&&o.remove(h)}).execute(),this._data=n},e.prototype.remove=function(t){var i=this.group,a=this._data;this._data=null,a&&a.eachItemGraphicEl(function(n){n&&i.remove(n)})},e.type=La,e})(Le),E$=(function(){function r(){}return r})(),D$=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i.type="boxplotBoxPath",i}return e.prototype.getDefaultShape=function(){return new E$},e.prototype.buildPath=function(t,i){var a=i.points,n=0;for(t.moveTo(a[n][0],a[n][1]),n++;n<4;n++)t.lineTo(a[n][0],a[n][1]);for(t.closePath();n<a.length;n++)t.moveTo(a[n][0],a[n][1]),n++,t.lineTo(a[n][0],a[n][1])},e})(ce);function jB(r,e,t,i,a){var n=r.ends,o=new D$({shape:{points:a?M$(n,i,r):n}});return JB(r,o,e,t,a),o}function JB(r,e,t,i,a){var n=t.hostModel,o=Te[a?"initProps":"updateProps"];o(e,{shape:{points:r.ends}},n,i),e.useStyle(t.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=t.getItemModel(i),l=s.getModel("emphasis");st(e,s),Be(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function M$(r,e,t){return U(r,function(i){return i=i.slice(),i[e]=t.initBaseline,i})}var QB=A$;var I$=ua(),$B=qe(La,L$);function L$(r){var e=Uo(La);yp(r,e,function(t){var i=VN(t,e);if(i){var a=P$(t,i);Kn(t,e,function(n){var o=n.seriesIndex;R$(n,a.boxOffsetList[o],a.boxWidthList[o])})}})}function P$(r,e){var t=[],i=[],a=[],n=xt(r,{fromStat:{key:Uo(La)},min:1}).w;Kn(r,Uo(La),function(f){var p=f.get("boxWidth");V(p)||(p=[p,p]),a[f.seriesIndex]=[j(p[0],n)||0,j(p[1],n)||0]});var o=n*.8-2,s=o/e*.3,l=(o-s*(e-1))/e,u=l/2-o/2;return Kn(r,Uo(La),function(f){var p=f.seriesIndex;i[p]=u,u+=s+l,t[p]=Fe(xe(l,a[p][0]),a[p][1])}),{boxOffsetList:i,boxWidthList:t}}function R$(r,e,t){var i=r.coordinateSystem,a=r.getData(),n=t/2,o=r.getWhiskerBoxesLayout()==="horizontal"?0:1,s=1-o,l=["x","y"],u=a.mapDimension(l[o]),f=a.mapDimensionsAll(l[s]);if(u==null||f.length<5)return;for(var p=0;p<a.count();p++){var c=a.get(u,p),v=_(c,f[2],p),h=_(c,f[0],p),d=_(c,f[1],p),m=_(c,f[3],p),g=_(c,f[4],p),y=[];x(y,d,!1),x(y,m,!0),y.push(h,d,g,m),S(y,h),S(y,g),S(y,v),a.setItemLayout(p,{initBaseline:v[s],ends:y})}function _(b,w,A){var C=a.get(w,A),E=[];E[o]=b,E[s]=C;var D;return isNaN(b)||isNaN(C)?D=[NaN,NaN]:(D=i.dataToPoint(E),D[o]+=e),D}function x(b,w,A){var C=w.slice(),E=w.slice();C[o]+=n,E[o]-=n,A?b.push(C,E):b.push(E,C)}function S(b,w){var A=w.slice(),C=w.slice();A[o]-=n,C[o]+=n,b.push(A,C)}}function eF(r){I$(r,function(){var e=Uo(La);_p(r,{key:e,seriesType:La,getMetrics:Ep}),Is(e,Fs(e))})}function $C(r,e){e=e||{};for(var t=[],i=[],a=e.boundIQR,n=a==="none"||a===0,o=0;o<r.length;o++){var s=dt(r[o].slice()),l=Tf(s,.25),u=Tf(s,.5),f=Tf(s,.75),p=s[0],c=s[s.length-1],v=(a??1.5)*(f-l),h=n?p:Math.max(p,l-v),d=n?c:Math.min(c,f+v),m=e.itemNameFormatter,g=J(m)?m({value:o}):H(m)?m.replace("{value}",o+""):o+"";t.push([g,h,l,u,f,d]);for(var y=0;y<s.length;y++){var _=s[y];if(_<h||_>d){var x=[g,_];i.push(x)}}}return{boxData:t,outliers:i}}var tF={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Ot){var i="";Ye(i)}var a=$C(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:a.boxData},{data:a.outliers}]}};function eA(r){r.registerSeriesModel(qB),r.registerChartView(QB),r.registerLayout($B),r.registerTransform(tF),eF(r)}var Pa="candlestick",rF=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,i,a){var n=i.getItemLayout(t);return n&&a.rect(n.brushRect)},e.type="series."+Pa,e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e})(ke);rt(rF,j0,!0);var iF=rF;var O$=["itemStyle","borderColor"],N$=["itemStyle","borderColor0"],k$=["itemStyle","borderColorDoji"],z$=["itemStyle","color"],V$=["itemStyle","color0"];function J0(r,e){return e.get(r>0?z$:V$)}function Q0(r,e){return e.get(r===0?k$:r>0?O$:N$)}var U$={seriesType:Pa,plan:qr(),performRawSeries:!0,reset:function(r,e){if(!e.isSeriesFiltered(r)){var t=r.pipelineContext.large;return!t&&{progress:function(i,a){for(var n;(n=i.next())!=null;){var o=a.getItemModel(n),s=a.getItemLayout(n).sign,l=o.getItemStyle();l.fill=J0(s,o),l.stroke=Q0(s,o)||l.fill;var u=a.ensureUniqueItemVisual(n,"style");k(u,l)}}}}}},aF=U$;var B$=["color","borderColor"],F$=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,i,a){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,i,a,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,i):this._incrementalRenderNormal(t,i)},e.prototype.eachRendered=function(t){Kr(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var i=t.pipelineContext.large;(this._isLargeDraw==null||i!==this._isLargeDraw)&&(this._isLargeDraw=i,this._clear())},e.prototype._renderNormal=function(t){var i=t.getData(),a=this._data,n=this.group,o=i.getLayout("isSimpleBox"),s=t.get("clip",!0),l=t.coordinateSystem,u=l.getArea&&l.getArea(),f=s&&Ki(l,!1,t);this._data||n.removeAll();var p=nF(t);i.diff(a).add(function(c){if(i.hasValue(c)){var v=i.getItemLayout(c),h=s?Qp(u,v):Os;if(h===ks)return;var d=tA(v,c,p,!0);Ge(d,{shape:{points:v.ends}},t,c),zs(h===Ns,d,f),rA(d,i,c,o),n.add(d),i.setItemGraphicEl(c,d)}}).update(function(c,v){var h=a.getItemGraphicEl(v);if(!i.hasValue(c)){n.remove(h);return}var d=i.getItemLayout(c),m=s?Qp(u,d):Os;if(m===ks){n.remove(h);return}h?(Ae(h,{shape:{points:d.ends}},t,c),Bt(h)):h=tA(d,c,p),rA(h,i,c,o),zs(m===Ns,h,f),n.add(h),i.setItemGraphicEl(c,h)}).remove(function(c){var v=a.getItemGraphicEl(c);v&&n.remove(v)}).execute(),this._data=i},e.prototype._renderLarge=function(t){this._clear(),oF(t,this.group);var i=t.get("clip",!0)?Ki(t.coordinateSystem,!1,t):null;zs(!!i,this.group,i)},e.prototype._incrementalRenderNormal=function(t,i){for(var a=i.getData(),n=a.getLayout("isSimpleBox"),o=nF(i),s;(s=t.next())!=null;){var l=a.getItemLayout(s),u=tA(l,s,o);rA(u,a,s,n),u.incremental=yr(i),this.group.add(u),this._progressiveEls.push(u)}},e.prototype._incrementalRenderLarge=function(t,i){oF(i,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),zs(!1,this.group,null),this._data=null},e.type=Pa,e})(Le),G$=(function(){function r(){}return r})(),H$=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i.type="normalCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new G$},e.prototype.buildPath=function(t,i){var a=i.points;this.__simpleBox?(t.moveTo(a[4][0],a[4][1]),t.lineTo(a[6][0],a[6][1])):(t.moveTo(a[0][0],a[0][1]),t.lineTo(a[1][0],a[1][1]),t.lineTo(a[2][0],a[2][1]),t.lineTo(a[3][0],a[3][1]),t.closePath(),t.moveTo(a[4][0],a[4][1]),t.lineTo(a[5][0],a[5][1]),t.moveTo(a[6][0],a[6][1]),t.lineTo(a[7][0],a[7][1]))},e})(ce);function tA(r,e,t,i){var a=r.ends;return new H$({shape:{points:i?Y$(a,t,r):a},z2:100})}function rA(r,e,t,i){var a=e.getItemModel(t);r.useStyle(e.getItemVisual(t,"style")),r.style.strokeNoScale=!0;var n=a.getShallow("cursor");n&&r.attr("cursor",n),r.__simpleBox=i,st(r,a);var o=e.getItemLayout(t).sign;T(r.states,function(l,u){var f=a.getModel(u),p=J0(o,f),c=Q0(o,f)||p,v=l.style||(l.style={});p&&(v.fill=p),c&&(v.stroke=c)});var s=a.getModel("emphasis");Be(r,s.get("focus"),s.get("blurScope"),s.get("disabled"))}function Y$(r,e,t){return U(r,function(i){return i=i.slice(),i[e]=t.initBaseline,i})}function nF(r){return r.getWhiskerBoxesLayout()==="horizontal"?1:0}var W$=(function(){function r(){}return r})(),iA=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i.type="largeCandlestickBox",i}return e.prototype.getDefaultShape=function(){return new W$},e.prototype.buildPath=function(t,i){for(var a=i.points,n=0;n<a.length;)if(this.__sign===a[n++]){var o=a[n++];t.moveTo(o,a[n++]),t.lineTo(o,a[n++])}else n+=3},e})(ce);function oF(r,e,t,i){var a=r.getData(),n=a.getLayout("largePoints"),o=new iA({shape:{points:n},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new iA({shape:{points:n},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new iA({shape:{points:n},__sign:0,ignoreCoarsePointer:!0});e.add(l),aA(1,o,r,a),aA(-1,s,r,a),aA(0,l,r,a),i&&(o.incremental=yr(r),s.incremental=yr(r),l.incremental=yr(r)),t&&t.push(o,s,l)}function aA(r,e,t,i){var a=Q0(r,t)||J0(r,t),n=t.getModel("itemStyle").getItemStyle(B$);e.useStyle(n),e.style.fill=null,e.style.stroke=a;var o=t.get("cursor");o&&e.attr("cursor",o)}var sF=F$;function nA(r){!r||!V(r.series)||T(r.series,function(e){te(e)&&e.type==="k"&&(e.type=Pa)})}var X$=ua(),uF={seriesType:Pa,plan:qr(),reset:function(r){var e=r.coordinateSystem,t=r.getData(),i=Z$(r,t),a=r.getWhiskerBoxesLayout()==="horizontal"?0:1,n=1-a,o=["x","y"],s=t.getDimensionIndex(t.mapDimension(o[a])),l=U(t.mapDimensionsAll(o[n]),t.getDimensionIndex,t),u=l[0],f=l[1],p=l[2],c=l[3];if(t.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),s<0||l.length<4)return;return{progress:r.pipelineContext.large?h:v};function v(d,m){for(var g,y=m.getStore();(g=d.next())!=null;){var _=y.get(s,g),x=y.get(u,g),S=y.get(f,g),b=y.get(p,g),w=y.get(c,g),A=Fe(x,S),C=xe(x,S),E=z(A,_),D=z(C,_),I=z(b,_),M=z(w,_),P=[];B(P,D,0),B(P,E,1),P.push(G(M),G(D),G(I),G(E));var O=m.getItemModel(g),R=!!O.get(["itemStyle","borderColorDoji"]);m.setItemLayout(g,{sign:lF(y,g,x,S,f,R),initBaseline:x>S?D[n]:E[n],ends:P,brushRect:F(b,w,_)})}function z(Y,q){var re=[];return re[a]=q,re[n]=Y,isNaN(q)||isNaN(Y)?[NaN,NaN]:e.dataToPoint(re)}function B(Y,q,re){var ie=q.slice(),ue=q.slice();ie[a]=hv(ie[a]+i/2,1,!1),ue[a]=hv(ue[a]-i/2,1,!0),re?Y.push(ie,ue):Y.push(ue,ie)}function F(Y,q,re){var ie=z(Y,re),ue=z(q,re);return ie[a]-=i/2,ue[a]-=i/2,{x:ie[0],y:ie[1],width:n?i:ue[0]-ie[0],height:n?ue[1]-ie[1]:i}}function G(Y){return Y[a]=hv(Y[a],1),Y}}function h(d,m){for(var g=ri(d.count*4),y=0,_,x=[],S=[],b,w=m.getStore(),A=!!r.get(["itemStyle","borderColorDoji"]);(b=d.next())!=null;){var C=w.get(s,b),E=w.get(u,b),D=w.get(f,b),I=w.get(p,b),M=w.get(c,b);if(isNaN(C)||isNaN(I)||isNaN(M)){g[y++]=NaN,y+=3;continue}g[y++]=lF(w,b,E,D,f,A),x[a]=C,x[n]=I,_=e.dataToPoint(x,null,S),g[y++]=_?_[0]:NaN,g[y++]=_?_[1]:NaN,x[n]=M,_=e.dataToPoint(x,null,S),g[y++]=_?_[1]:NaN}m.setLayout("largePoints",g)}}};function lF(r,e,t,i,a,n){var o;return t>i?o=-1:t<i?o=1:o=n?0:e>0?r.get(a,e-1)<=i?1:-1:1,o}function Z$(r,e){var t=r.getBaseAxis(),i=xt(t,{fromStat:{key:Uo(Pa)},min:1}).w,a=j(Z(r.get("barMaxWidth"),i),i),n=j(Z(r.get("barMinWidth"),1),i),o=r.get("barWidth");return o!=null?j(o,i):xe(Fe(i/2,a),n)}function fF(r){X$(r,function(){var e=Uo(Pa);_p(r,{key:e,seriesType:Pa,getMetrics:Ep}),Is(e,Fs(e))})}function oA(r){r.registerChartView(sF),r.registerSeriesModel(iF),r.registerPreprocessor(nA),r.registerVisual(aF),r.registerLayout(uF),fF(r)}function pF(r,e){var t=e.rippleEffectColor||e.color;r.eachChild(function(i){i.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?t:null,fill:e.brushType==="fill"?t:null}})})}var K$=(function(r){L(e,r);function e(t,i){var a=r.call(this)||this,n=new ko(t,i),o=new Q;return a.add(n),a.add(o),a.updateData(t,i),a}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var i=t.symbolType,a=t.color,n=t.rippleNumber,o=this.childAt(1),s=0;s<n;s++){var l=je(i,-1,-1,2,2,a);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/n*t.period+t.effectOffset;l.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(t.period,{opacity:0}).delay(u).start(),o.add(l)}pF(o,t)},e.prototype.updateEffectAnimation=function(t){for(var i=this._effectCfg,a=this.childAt(1),n=["symbolType","period","rippleScale","rippleNumber"],o=0;o<n.length;o++){var s=n[o];if(i[s]!==t[s]){this.stopEffectAnimation(),this.startEffectAnimation(t);return}}pF(a,t)},e.prototype.highlight=function(){Pr(this)},e.prototype.downplay=function(){Rr(this)},e.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},e.prototype.updateData=function(t,i){var a=this,n=t.hostModel;this.childAt(0).updateData(t,i);var o=this.childAt(1),s=t.getItemModel(i),l=t.getItemVisual(i,"symbol"),u=tn(t.getItemVisual(i,"symbolSize")),f=t.getItemVisual(i,"style"),p=f&&f.fill,c=s.getModel("emphasis");o.setScale(u),o.traverse(function(m){m.setStyle("fill",p)});var v=Xi(t.getItemVisual(i,"symbolOffset"),u);v&&(o.x=v[0],o.y=v[1]);var h=t.getItemVisual(i,"symbolRotate");o.rotation=(h||0)*Math.PI/180||0;var d={};d.showEffectOn=n.get("showEffectOn"),d.rippleScale=s.get(["rippleEffect","scale"]),d.brushType=s.get(["rippleEffect","brushType"]),d.period=s.get(["rippleEffect","period"])*1e3,d.effectOffset=i/t.count(),d.z=n.getShallow("z")||0,d.zlevel=n.getShallow("zlevel")||0,d.symbolType=l,d.color=p,d.rippleEffectColor=s.get(["rippleEffect","color"]),d.rippleNumber=s.get(["rippleEffect","number"]),d.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(m){m==="emphasis"?d.showEffectOn!=="render"&&a.startEffectAnimation(d):m==="normal"&&d.showEffectOn!=="render"&&a.stopEffectAnimation()}),this._effectCfg=d,Be(this,c.get("focus"),c.get("blurScope"),c.get("disabled"))},e.prototype.fadeOut=function(t){t&&t()},e})(Q),cF=K$;var q$=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._symbolDraw=new $n(cF)},e.prototype.render=function(t,i,a){var n=t.getData(),o=this._symbolDraw;o.updateData(n,vF(t)),this.group.add(o.group)},e.prototype.updateTransform=function(t,i,a){var n=t.getData();this.group.dirty();var o=pn("").reset(t,i,a);o.progress&&o.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(vF(t))},e.prototype._updateGroupTransform=function(t){var i=t.coordinateSystem;i&&i.getRoamTransform&&(this.group.transform=xx(i.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(t,i){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e})(Le);function vF(r){return{clipShape:By(r)}}var hF=q$;var j$=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t}return e.prototype.getInitialData=function(t,i){return nr(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(t,i,a){return a.point(i.getItemLayout(t))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e})(ke),dF=j$;function sA(r){r.registerChartView(hF),r.registerSeriesModel(dF),r.registerLayout(pn("effectScatter"))}var J$=(function(r){L(e,r);function e(t,i,a){var n=r.call(this)||this;return n.add(n.createLine(t,i,a)),n._updateEffectSymbol(t,i),n}return e.prototype.createLine=function(t,i,a){return new Wp(t,i,a)},e.prototype._updateEffectSymbol=function(t,i){var a=t.getItemModel(i),n=a.getModel("effect"),o=n.get("symbolSize"),s=n.get("symbol");V(o)||(o=[o,o]);var l=t.getItemVisual(i,"style"),u=n.get("color")||l&&l.stroke,f=this.childAt(1);this._symbolType!==s&&(this.remove(f),f=je(s,-.5,-.5,1,1,u),f.z2=100,f.culling=!0,this.add(f)),f&&(f.setStyle("shadowColor",u),f.setStyle(n.getItemStyle(["color"])),f.scaleX=o[0],f.scaleY=o[1],f.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(t,n,i))},e.prototype._updateEffectAnimation=function(t,i,a){var n=this.childAt(1);if(n){var o=t.getItemLayout(a),s=i.get("period")*1e3,l=i.get("loop"),u=i.get("roundTrip"),f=i.get("constantSpeed"),p=Et(i.get("delay"),function(v){return v/t.count()*s/3});if(n.ignore=!0,this._updateAnimationPoints(n,o),f>0&&(s=this._getLineLength(n)/f*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){n.stopAnimation();var c=void 0;J(p)?c=p(a):c=p,n.__t>0&&(c=-s*n.__t),this._animateSymbol(n,s,c,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(t,i,a,n,o){if(i>0){t.__t=0;var s=this,l=t.animate("",n).when(o?i*2:i,{__t:o?2:1}).delay(a).during(function(){s._updateSymbolPosition(t)});n||l.done(function(){s.remove(t)}),l.start()}},e.prototype._getLineLength=function(t){return Vi(t.__p1,t.__cp1)+Vi(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,i){t.__p1=i[0],t.__p2=i[1],t.__cp1=i[2]||[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2]},e.prototype.updateData=function(t,i,a){this.childAt(0).updateData(t,i,a),this._updateEffectSymbol(t,i)},e.prototype._updateSymbolPosition=function(t){var i=t.__p1,a=t.__p2,n=t.__cp1,o=t.__t<=1?t.__t:2-t.__t,s=[t.x,t.y],l=s.slice(),u=Vt,f=Oc;s[0]=u(i[0],n[0],a[0],o),s[1]=u(i[1],n[1],a[1],o);var p=t.__t<=1?f(i[0],n[0],a[0],o):f(a[0],n[0],i[0],1-o),c=t.__t<=1?f(i[1],n[1],a[1],o):f(a[1],n[1],i[1],1-o);t.rotation=-Math.atan2(c,p)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(t.__lastT!==void 0&&t.__lastT<t.__t?(t.scaleY=Vi(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):t.__lastT===1?t.scaleY=2*Vi(i,s):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=s[0],t.y=s[1]},e.prototype.updateLayout=function(t,i){this.childAt(0).updateLayout(t,i);var a=t.getItemModel(i).getModel("effect");this._updateEffectAnimation(t,a,i)},e})(Q),$0=J$;var Q$=(function(r){L(e,r);function e(t,i,a){var n=r.call(this)||this;return n._createPolyline(t,i,a),n}return e.prototype._createPolyline=function(t,i,a){var n=t.getItemLayout(i),o=new vt({shape:{points:n}});this.add(o),this._updateCommonStl(t,i,a)},e.prototype.updateData=function(t,i,a){var n=t.hostModel,o=this.childAt(0),s={shape:{points:t.getItemLayout(i)}};Ae(o,s,n,i),this._updateCommonStl(t,i,a)},e.prototype._updateCommonStl=function(t,i,a){var n=this.childAt(0),o=t.getItemModel(i),s=a&&a.emphasisLineStyle,l=a&&a.focus,u=a&&a.blurScope,f=a&&a.emphasisDisabled;if(!a||t.hasItemOption){var p=o.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),f=p.get("disabled"),l=p.get("focus"),u=p.get("blurScope")}n.useStyle(t.getItemVisual(i,"style")),n.style.fill=null,n.style.strokeNoScale=!0;var c=n.ensureState("emphasis");c.style=s,Be(this,l,u,f)},e.prototype.updateLayout=function(t,i){var a=this.childAt(0);a.stopAnimation(),a.setShape("points",t.getItemLayout(i))},e})(Q),e_=Q$;var $$=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}return e.prototype.createLine=function(t,i,a){return new e_(t,i,a)},e.prototype._updateAnimationPoints=function(t,i){this._points=i;for(var a=[0],n=0,o=1;o<i.length;o++){var s=i[o-1],l=i[o];n+=Vi(s,l),a.push(n)}if(n===0){this._length=0;return}for(var o=0;o<a.length;o++)a[o]/=n;this._offsets=a,this._length=n},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(t){var i=t.__t<=1?t.__t:2-t.__t,a=this._points,n=this._offsets,o=a.length;if(n){var s=this._lastFrame,l;if(i<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(n[l]<=i);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(n[l]>i);l++);l=Math.min(l-1,o-2)}var f=(i-n[l])/(n[l+1]-n[l]),p=a[l],c=a[l+1];t.x=p[0]*(1-f)+f*c[0],t.y=p[1]*(1-f)+f*c[1];var v=t.__t<=1?c[0]-p[0]:p[0]-c[0],h=t.__t<=1?c[1]-p[1]:p[1]-c[1];t.rotation=-Math.atan2(h,v)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=i,t.ignore=!1}},e})($0),mF=$$;var eee=(function(){function r(){this.polyline=!1,this.curveness=0,this.segs=[]}return r})(),tee=(function(r){L(e,r);function e(t){var i=r.call(this,t)||this;return i._off=0,i.hoverDataIdx=-1,i}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.beforeBrush=function(t){t&&!t.contentRetained&&this.reset()},e.prototype.getDefaultStyle=function(){return{stroke:N.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new eee},e.prototype.buildPath=function(t,i){var a=i.segs,n=i.curveness,o;if(i.polyline)for(o=this._off;o<a.length;){var s=a[o++];if(s>0){t.moveTo(a[o++],a[o++]);for(var l=1;l<s;l++)t.lineTo(a[o++],a[o++])}}else for(o=this._off;o<a.length;){var u=a[o++],f=a[o++],p=a[o++],c=a[o++];if(t.moveTo(u,f),n>0){var v=(u+p)/2-(f-c)*n,h=(f+c)/2-(p-u)*n;t.quadraticCurveTo(v,h,p,c)}else t.lineTo(p,c)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,i){var a=this.shape,n=a.segs,o=a.curveness,s=this.style.lineWidth;if(a.polyline)for(var l=0,u=0;u<n.length;){var f=n[u++];if(f>0)for(var p=n[u++],c=n[u++],v=1;v<f;v++){var h=n[u++],d=n[u++];if(On(p,c,h,d,s,t,i))return l}l++}else for(var l=0,u=0;u<n.length;){var p=n[u++],c=n[u++],h=n[u++],d=n[u++];if(o>0){var m=(p+h)/2-(c-d)*o,g=(c+d)/2-(h-p)*o;if(im(p,c,m,g,h,d,s,t,i))return l}else if(On(p,c,h,d,s,t,i))return l;l++}return-1},e.prototype.contain=function(t,i){var a=this.transformCoordToLocal(t,i),n=this.getBoundingRect();if(t=a[0],i=a[1],n.contain(t,i)){var o=this.hoverDataIdx=this.findDataIndex(t,i);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var i=this.shape,a=i.segs,n=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<a.length;){var f=a[u++],p=a[u++];n=Math.min(f,n),s=Math.max(f,s),o=Math.min(p,o),l=Math.max(p,l)}t=this._rect=new oe(n,o,s,l)}return t},e})(ce),ree=(function(){function r(){this.group=new Q}return r.prototype.updateData=function(e){this._clear();var t=this._create();t.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(t,e)},r.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},r.prototype.incrementalUpdate=function(e,t,i){var a=this._newAdded[0],n=t.getLayout("linesPoints"),o=a&&a.shape.segs;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+n.length);l.set(o),l.set(n,s),a.setShape({segs:l})}else{this._newAdded=[];var u=this._create();u.incremental=i,u.setShape({segs:n}),this._setCommon(u,t),u.__startIndex=e.start}},r.prototype.remove=function(){this._clear()},r.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},r.prototype._create=function(){var e=new tee({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},r.prototype._setCommon=function(e,t,i){var a=t.hostModel;e.setShape({polyline:a.get("polyline"),curveness:a.get(["lineStyle","curveness"])}),e.useStyle(a.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var n=t.getVisual("style");n&&n.stroke&&e.setStyle("stroke",n.stroke),e.setStyle("fill",null);var o=se(e);o.seriesIndex=a.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},r.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},r})(),gF=ree;var iee={seriesType:"lines",plan:qr(),reset:function(r){var e=r.coordinateSystem;if(e){var t=r.get("polyline"),i=r.pipelineContext.large;return{progress:function(a,n){var o=[];if(i){var s=void 0,l=a.end-a.start;if(t){for(var u=0,f=a.start;f<a.end;f++)u+=r.getLineCoordsCount(f);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var p=0,c=[],f=a.start;f<a.end;f++){var v=r.getLineCoords(f,o);t&&(s[p++]=v);for(var h=0;h<v;h++)c=e.dataToPoint(o[h],!1,c),s[p++]=c[0],s[p++]=c[1]}n.setLayout("linesPoints",s)}else for(var f=a.start;f<a.end;f++){var d=n.getItemModel(f),v=r.getLineCoords(f,o),m=[];if(t)for(var g=0;g<v;g++)m.push(e.dataToPoint(o[g]));else{m[0]=e.dataToPoint(o[0]),m[1]=e.dataToPoint(o[1]);var y=d.get(["lineStyle","curveness"]);+y&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*y,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*y])}n.setItemLayout(f,m)}}}}}},t_=iee;var aee=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this._updateLineDraw(n,t),s=t.get("zlevel"),l=t.get(["effect","trailLength"]),u=a.getZr(),f=!!Pm(a);f&&u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&f&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&l>0&&f&&u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)}),o.updateData(n);var p=t.get("clip",!0)&&Ki(t.coordinateSystem,!1,t);p?this.group.setClipPath(p):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,i,a){var n=t.getData(),o=this._updateLineDraw(n,t);o.incrementalPrepareUpdate(n),this._clearLayer(a),this._finished=!1},e.prototype.incrementalRender=function(t,i,a){this._lineDraw.incrementalUpdate(t,i.getData(),yr(i)),this._finished=t.end===i.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,i,a){var n=t.getData(),o=this._lineDraw;if(!this._finished||!o||!o.updateLayout)return{update:!0};var s=t_.reset(t,i,a);s.progress&&s.progress({start:0,end:n.count(),count:n.count()},n),o.updateLayout(),this._clearLayer(a)},e.prototype._updateLineDraw=function(t,i){var a=this._lineDraw,n=this._showEffect(i),o=!!i.get("polyline"),s=i.pipelineContext,l=s.large;return(!a||n!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(a&&a.remove(),a=this._lineDraw=l?new gF:new Xp(o?n?mF:e_:n?$0:Wp),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=l),this.group.add(a.group),a},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var i=Pm(t);i&&this._lastZlevel!=null&&i.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,i){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(i)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.type="lines",e})(Le),yF=aee;var nee=typeof Uint32Array>"u"?Array:Uint32Array,oee=typeof Float64Array>"u"?Array:Float64Array;function _F(r){var e=r.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(r.data=U(e,function(t){var i=[t[0].coord,t[1].coord],a={coords:i};return t[0].name&&(a.fromName=t[0].name),t[1].name&&(a.toName=t[1].name),pl([a,t[0],t[1]])}))}var see=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}return e.prototype.init=function(t){t.data=t.data||[],_F(t);var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count)),r.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(t){if(_F(t),t.data){var i=this._processFlatCoordsArray(t.data);this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset,i.flatCoords&&(t.data=new Float32Array(i.count))}r.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var i=this._processFlatCoordsArray(t.data);i.flatCoords&&(this._flatCoords?(this._flatCoords=_n(this._flatCoords,i.flatCoords),this._flatCoordsOffset=_n(this._flatCoordsOffset,i.flatCoordsOffset)):(this._flatCoords=i.flatCoords,this._flatCoordsOffset=i.flatCoordsOffset),t.data=new Float32Array(i.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var i=this.getData().getItemModel(t),a=i.option instanceof Array?i.option:i.getShallow("coords");return a},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[t*2+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,i){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[t*2],n=this._flatCoordsOffset[t*2+1],o=0;o<n;o++)i[o]=i[o]||[],i[o][0]=this._flatCoords[a+o*2],i[o][1]=this._flatCoords[a+o*2+1];return n}else{for(var s=this._getCoordsFromItemModel(t),o=0;o<s.length;o++)i[o]=i[o]||[],i[o][0]=s[o][0],i[o][1]=s[o][1];return s.length}},e.prototype._processFlatCoordsArray=function(t){var i=0;if(this._flatCoords&&(i=this._flatCoords.length),_e(t[0])){for(var a=t.length,n=new nee(a),o=new oee(a),s=0,l=0,u=0,f=0;f<a;){u++;var p=t[f++];n[l++]=s+i,n[l++]=p;for(var c=0;c<p;c++){var v=t[f++],h=t[f++];o[s++]=v,o[s++]=h,f>a}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},e.prototype.getInitialData=function(t,i){if(0)var a;var n=new Ct(["value"],this);return n.hasItemOption=!1,n.initData(t.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;n.hasItemOption=!0;var f=o.value;if(f!=null)return f instanceof Array?f[u]:f}),n},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.getRawValue(t),s=n.getItemModel(t),l=s.get("name");if(!l){var u=s.get("fromName"),f=s.get("toName"),p=[];u!=null&&p.push(u),f!=null&&p.push(f),l=p.join(" > ")}return ft("nameValue",{name:l,value:o,noValue:o==null||isNaN(o)})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return t??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return t??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),i=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&i>0?i+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e})(ke),xF=see;function r_(r){return r instanceof Array||(r=[r,r]),r}var lee={seriesType:"lines",reset:function(r){var e=r_(r.get("symbol")),t=r_(r.get("symbolSize")),i=r.getData();i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",t&&t[0]),i.setVisual("toSymbolSize",t&&t[1]);function a(n,o){var s=n.getItemModel(o),l=r_(s.getShallow("symbol",!0)),u=r_(s.getShallow("symbolSize",!0));l[0]&&n.setItemVisual(o,"fromSymbol",l[0]),l[1]&&n.setItemVisual(o,"toSymbol",l[1]),u[0]&&n.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&n.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:i.hasItemOption?a:null}}},SF=lee;function lA(r){r.registerChartView(yF),r.registerSeriesModel(xF),r.registerLayout(t_),r.registerVisual(SF)}var uee=256,fee=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=wt.createCanvas();this.canvas=e}return r.prototype.update=function(e,t,i,a,n,o){var s=this._getBrush(),l=this._getGradient(n,"inRange"),u=this._getGradient(n,"outOfRange"),f=this.pointSize+this.blurSize,p=this.canvas,c=p.getContext("2d"),v=e.length;p.width=t,p.height=i;for(var h=0;h<v;++h){var d=e[h],m=d[0],g=d[1],y=d[2],_=a(y);c.globalAlpha=_,c.drawImage(s,m-f,g-f)}if(!p.width||!p.height)return p;for(var x=c.getImageData(0,0,p.width,p.height),S=x.data,b=0,w=S.length,A=this.minOpacity,C=this.maxOpacity,E=C-A;b<w;){var _=S[b+3]/256,D=Math.floor(_*(uee-1))*4;if(_>0){var I=o(_)?l:u;_>0&&(_=_*E+A),S[b++]=I[D],S[b++]=I[D+1],S[b++]=I[D+2],S[b++]=I[D+3]*_*256}else b+=4}return c.putImageData(x,0,0),p},r.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=wt.createCanvas()),t=this.pointSize+this.blurSize,i=t*2;e.width=i,e.height=i;var a=e.getContext("2d");return a.clearRect(0,0,i,i),a.shadowOffsetX=i,a.shadowBlur=this.blurSize,a.shadowColor=N.color.neutral99,a.beginPath(),a.arc(-t,t,this.pointSize,0,Math.PI*2,!0),a.closePath(),a.fill(),e},r.prototype._getGradient=function(e,t){for(var i=this._gradientPixels,a=i[t]||(i[t]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,s=0;s<256;s++)e[t](s/255,!0,n),a[o++]=n[0],a[o++]=n[1],a[o++]=n[2],a[o++]=n[3];return a},r})(),bF=fee;function pee(r,e,t){var i=r[1]-r[0];e=U(e,function(o){return{interval:[(o.interval[0]-r[0])/i,(o.interval[1]-r[0])/i]}});var a=e.length,n=0;return function(o){var s;for(s=n;s<a;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}if(s===a)for(s=n-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){n=s;break}}return s>=0&&s<a&&t[s]}}function cee(r,e){var t=r[1]-r[0];return e=[(e[0]-r[0])/t,(e[1]-r[0])/t],function(i){return i>=e[0]&&i<=e[1]}}var vee=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n;i.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===t&&(n=s)})}),this._progressiveEls=null,this.group.removeAll();var o=t.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(t,a,0,t.getData().count()):Uw(o)&&this._renderOnGeo(o,t,n,a)},e.prototype.incrementalPrepareRender=function(t,i,a){this.group.removeAll()},e.prototype.incrementalRender=function(t,i,a,n){var o=i.coordinateSystem;o&&(Uw(o)?this.render(i,a,n):(this._progressiveEls=[],this._renderOnGridLike(i,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Kr(this._progressiveEls||this.group,t)},e.prototype._renderOnGridLike=function(t,i,a,n,o){var s=t.coordinateSystem,l=Aa(s,"cartesian2d"),u=Aa(s,"matrix"),f,p,c,v;if(l){var h=s.getAxis("x"),d=s.getAxis("y");f=xt(h).w+.5,p=xt(d).w+.5,c=h.scale.getExtent(),v=d.scale.getExtent()}for(var m=this.group,g=t.getData(),y=t.getModel(["emphasis","itemStyle"]).getItemStyle(),_=t.getModel(["blur","itemStyle"]).getItemStyle(),x=t.getModel(["select","itemStyle"]).getItemStyle(),S=t.get(["itemStyle","borderRadius"]),b=tt(t),w=t.getModel("emphasis"),A=w.get("focus"),C=w.get("blurScope"),E=w.get("disabled"),D=l||u?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],I=a;I<n;I++){var M=void 0,P=g.getItemVisual(I,"style");if(l){var O=g.get(D[0],I),R=g.get(D[1],I);if(isNaN(g.get(D[2],I))||isNaN(O)||isNaN(R)||O<c[0]||O>c[1]||R<v[0]||R>v[1])continue;var z=s.dataToPoint([O,R]);M=new de({shape:{x:z[0]-f/2,y:z[1]-p/2,width:f,height:p},style:P})}else if(u){var B=s.dataToLayout([g.get(D[0],I),g.get(D[1],I)]).rect;if(Lt(B.x))continue;M=new de({z2:1,shape:B,style:P})}else{if(isNaN(g.get(D[1],I)))continue;var F=s.dataToLayout([g.get(D[0],I)]),B=F.contentRect||F.rect;if(Lt(B.x)||Lt(B.y))continue;M=new de({z2:1,shape:B,style:P})}if(g.hasItemOption){var G=g.getItemModel(I),Y=G.getModel("emphasis");y=Y.getModel("itemStyle").getItemStyle(),_=G.getModel(["blur","itemStyle"]).getItemStyle(),x=G.getModel(["select","itemStyle"]).getItemStyle(),S=G.get(["itemStyle","borderRadius"]),A=Y.get("focus"),C=Y.get("blurScope"),E=Y.get("disabled"),b=tt(G)}M.shape.r=S;var q=t.getRawValue(I),re="-";q&&q[2]!=null&&(re=q[2]+""),it(M,b,{labelFetcher:t,labelDataIndex:I,defaultOpacity:P.opacity,defaultText:re}),M.ensureState("emphasis").style=y,M.ensureState("blur").style=_,M.ensureState("select").style=x,Be(M,A,C,E),M.incremental=yr(t,o),o&&(M.states.emphasis.hoverLayer=Ka),m.add(M),g.setItemGraphicEl(I,M),this._progressiveEls&&this._progressiveEls.push(M)}},e.prototype._renderOnGeo=function(t,i,a,n){var o=a.targetVisuals.inRange,s=a.targetVisuals.outOfRange,l=i.getData(),u=this._hmLayer||this._hmLayer||new bF;u.blurSize=i.get("blurSize"),u.pointSize=i.get("pointSize"),u.minOpacity=i.get("minOpacity"),u.maxOpacity=i.get("maxOpacity");var f=t.getViewRect().clone(),p=t.getRoamTransform();f.applyTransform(p);var c=Math.max(f.x,0),v=Math.max(f.y,0),h=Math.min(f.width+f.x,n.getWidth()),d=Math.min(f.height+f.y,n.getHeight()),m=h-c,g=d-v,y=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(y,function(w,A,C){var E=t.dataToPoint([w,A]);return E[0]-=c,E[1]-=v,E.push(C),E}),x=a.getExtent(),S=a.type==="visualMap.continuous"?cee(x,a.option.range):pee(x,a.getPieceList(),a.option.selected);u.update(_,m,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var b=new lt({style:{width:m,height:g,x:c,y:v,image:u.canvas},silent:!0});this.group.add(b)},e.type="heatmap",e})(Le),wF=vee;var hee=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.getInitialData=function(t,i){return nr(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var t=Fn.get(this.get("coordinateSystem"));if(t&&t.dimensions)return t.dimensions[0]==="lng"&&t.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:N.color.primary}}},e})(ke),TF=hee;function uA(r){r.registerChartView(wF),r.registerSeriesModel(TF)}var dee=["itemStyle","borderWidth"],CF=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],fA=new Sr,mee=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Gs,t}return e.prototype.render=function(t,i,a){var n=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),p=l.master.getRect(),c={ecSize:{width:a.getWidth(),height:a.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[p.x,p.x+p.width],[p.y,p.y+p.height]],isHorizontal:f,valueDim:CF[+f],categoryDim:CF[1-+f]};o.diff(s).add(function(h){if(o.hasValue(h)){var d=EF(o,h),m=AF(o,h,d,c),g=DF(o,c,m);o.setItemGraphicEl(h,g),n.add(g),IF(g,c,m)}}).update(function(h,d){var m=s.getItemGraphicEl(d);if(!o.hasValue(h)){n.remove(m);return}var g=EF(o,h),y=AF(o,h,g,c),_=zF(o,y);m&&_!==m.__pictorialShapeStr&&(n.remove(m),o.setItemGraphicEl(h,null),m=null),m?wee(m,c,y):m=DF(o,c,y,!0),o.setItemGraphicEl(h,m),m.__pictorialSymbolMeta=y,n.add(m),IF(m,c,y)}).remove(function(h){var d=s.getItemGraphicEl(h);d&&MF(s,h,d.__pictorialSymbolMeta.animationModel,d)}).execute();var v=t.get("clip",!0)?Ki(t.coordinateSystem,!1,t):null;return v?n.setClipPath(v):n.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,i){var a=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl(function(o){MF(n,se(o).dataIndex,t,o)}):a.removeAll()},e.type=Gs,e})(Le);function AF(r,e,t,i){var a=r.getItemLayout(e),n=t.get("symbolRepeat"),o=t.get("symbolClip"),s=t.get("symbolPosition")||"start",l=t.get("symbolRotate"),u=(l||0)*Math.PI/180||0,f=t.get("symbolPatternSize")||2,p=t.isAnimationEnabled(),c={dataIndex:e,layout:a,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:n,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:p?t:null,hoverScale:p&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};gee(t,n,a,i,c),yee(r,e,a,n,o,c.boundingLength,c.pxSign,f,i,c),_ee(t,c.symbolScale,u,i,c);var v=c.symbolSize,h=Xi(t.get("symbolOffset"),v);return xee(t,v,a,n,o,h,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function gee(r,e,t,i,a){var n=i.valueDim,o=r.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[n.wh]<=0),f;if(V(o)){var p=[pA(s,o[0])-l,pA(s,o[1])-l];p[1]<p[0]&&p.reverse(),f=p[u]}else o!=null?f=pA(s,o)-l:e?f=i.coordSysExtent[n.index][u]-l:f=t[n.wh];a.boundingLength=f,e&&(a.repeatCutLength=t[n.wh]);var c=n.xy==="x",v=s.inverse;a.pxSign=c&&!v||!c&&v?f>=0?1:-1:f>0?1:-1}function pA(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function yee(r,e,t,i,a,n,o,s,l,u){var f=l.valueDim,p=l.categoryDim,c=Math.abs(t[p.wh]),v=r.getItemVisual(e,"symbolSize"),h;V(v)?h=v.slice():v==null?h=["100%","100%"]:h=[v,v],h[p.index]=j(h[p.index],c),h[f.index]=j(h[f.index],i?c:Math.abs(n)),u.symbolSize=h;var d=u.symbolScale=[h[0]/s,h[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function _ee(r,e,t,i,a){var n=r.get(dee)||0;n&&(fA.attr({scaleX:e[0],scaleY:e[1],rotation:t}),fA.updateTransform(),n/=fA.getLineScale(),n*=e[i.valueDim.index]),a.valueLineWidth=n||0}function xee(r,e,t,i,a,n,o,s,l,u,f,p){var c=f.categoryDim,v=f.valueDim,h=p.pxSign,d=Math.max(e[v.index]+s,0),m=d;if(i){var g=Math.abs(l),y=Et(r.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var x=j(y,e[v.index]),S=Math.max(d+x*2,0),b=_?0:x*2,w=Nl(i),A=w?i:LF((g+b)/S),C=g-A*d;x=C/2/(_?A:Math.max(A-1,1)),S=d+x*2,b=_?0:x*2,!w&&i!=="fixed"&&(A=u?LF((Math.abs(u)+b)/S):0),m=A*S-b,p.repeatTimes=A,p.symbolMargin=x}var E=h*(m/2),D=p.pathPosition=[];D[c.index]=t[c.wh]/2,D[v.index]=o==="start"?E:o==="end"?l-E:l/2,n&&(D[0]+=n[0],D[1]+=n[1]);var I=p.bundlePosition=[];I[c.index]=t[c.xy],I[v.index]=t[v.xy];var M=p.barRectShape=k({},t);M[v.wh]=h*Math.max(Math.abs(t[v.wh]),Math.abs(D[v.index]+E)),M[c.wh]=t[c.wh];var P=p.clipShape={};P[c.xy]=-t[c.xy],P[c.wh]=f.ecSize[c.wh],P[v.xy]=0,P[v.wh]=t[v.wh]}function PF(r){var e=r.symbolPatternSize,t=je(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function RF(r,e,t,i){var a=r.__pictorialBundle,n=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,p=n[e.valueDim.index]+o+t.symbolMargin*2;for(cA(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f<u?$p(d,null,h(f),t,i):$p(d,null,{scaleX:0,scaleY:0},t,i,function(){a.remove(d)}),f++});f<u;f++){var c=PF(t);c.__pictorialAnimationIndex=f,c.__pictorialRepeatTimes=u,a.add(c);var v=h(f);$p(c,{x:v.x,y:v.y,scaleX:0,scaleY:0},{scaleX:v.scaleX,scaleY:v.scaleY,rotation:v.rotation},t,i)}function h(d){var m=s.slice(),g=t.pxSign,y=d;return(t.symbolRepeatDirection==="start"?g>0:g<0)&&(y=u-1-d),m[l.index]=p*(y-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function OF(r,e,t,i){var a=r.__pictorialBundle,n=r.__pictorialMainPath;n?$p(n,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,i):(n=r.__pictorialMainPath=PF(t),a.add(n),$p(n,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,i))}function NF(r,e,t){var i=k({},e.barRectShape),a=r.__pictorialBarRect;a?$p(a,null,{shape:i},e,t):(a=r.__pictorialBarRect=new de({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),a.disableMorphing=!0,r.add(a))}function kF(r,e,t,i){if(t.symbolClip){var a=r.__pictorialClipPath,n=k({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(a)Ae(a,{shape:n},s,l);else{n[o.wh]=0,a=new de({shape:n}),r.__pictorialBundle.setClipPath(a),r.__pictorialClipPath=a;var u={};u[o.wh]=t.clipShape[o.wh],Te[i?"updateProps":"initProps"](a,{shape:u},s,l)}}}function EF(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=See,t.isAnimationEnabled=bee,t}function See(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function bee(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function DF(r,e,t,i){var a=new Q,n=new Q;return a.add(n),a.__pictorialBundle=n,n.x=t.bundlePosition[0],n.y=t.bundlePosition[1],t.symbolRepeat?RF(a,e,t):OF(a,e,t),NF(a,t,i),kF(a,e,t,i),a.__pictorialShapeStr=zF(r,t),a.__pictorialSymbolMeta=t,a}function wee(r,e,t){var i=t.animationModel,a=t.dataIndex,n=r.__pictorialBundle;Ae(n,{x:t.bundlePosition[0],y:t.bundlePosition[1]},i,a),t.symbolRepeat?RF(r,e,t,!0):OF(r,e,t,!0),NF(r,t,!0),kF(r,e,t,!0)}function MF(r,e,t,i){var a=i.__pictorialBarRect;a&&a.removeTextContent();var n=[];cA(i,function(o){n.push(o)}),i.__pictorialMainPath&&n.push(i.__pictorialMainPath),i.__pictorialClipPath&&(t=null),T(n,function(o){va(o,{scaleX:0,scaleY:0},t,e,function(){i.parent&&i.parent.remove(i)})}),r.setItemGraphicEl(e,null)}function zF(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function cA(r,e,t){T(r.__pictorialBundle.children(),function(i){i!==r.__pictorialBarRect&&e.call(t,i)})}function $p(r,e,t,i,a,n){e&&r.attr(e),i.symbolClip&&!a?t&&r.attr(t):t&&Te[a?"updateProps":"initProps"](r,t,i.animationModel,i.dataIndex,n)}function IF(r,e,t){var i=t.dataIndex,a=t.itemModel,n=a.getModel("emphasis"),o=n.getModel("itemStyle").getItemStyle(),s=a.getModel(["blur","itemStyle"]).getItemStyle(),l=a.getModel(["select","itemStyle"]).getItemStyle(),u=a.getShallow("cursor"),f=n.get("focus"),p=n.get("blurScope"),c=n.get("scale");cA(r,function(d){if(d instanceof lt){var m=d.style;d.useStyle(k({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},t.style))}else d.useStyle(t.style);var g=d.ensureState("emphasis");g.style=o,c&&(g.scaleX=d.scaleX*1.1,g.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var v=e.valueDim.posDesc[+(t.boundingLength>0)],h=r.__pictorialBarRect;h.ignoreClip=!0,it(h,tt(a),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:fn(e.seriesModel.getData(),i),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:v}),Be(r,f,p,n.get("disabled"))}function LF(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}var VF=mee;var Tee=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}return e.prototype.getInitialData=function(t){return t.stack=null,r.prototype.getInitialData.apply(this,arguments)},e.type="series."+Gs,e.dependencies=["grid"],e.defaultOption=kr(Dp.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:N.color.primary}}}),e})(Dp),UF=Tee;function vA(r){r.registerChartView(VF),r.registerSeriesModel(UF),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Zy(Gs)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Ky(Gs)),qy(r)}var hA=2,Wo="themeRiver",Cee=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ea(X(this.getData,this),X(this.getRawData,this))},e.prototype.fixData=function(t){var i=t.length,a={},n=Qc(t,function(c){return a.hasOwnProperty(c[0]+"")||(a[c[0]+""]=-1),c[2]}),o=[];n.buckets.each(function(c,v){o.push({name:v,dataList:c})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,f=0;f<o[l].dataList.length;++f){var p=o[l].dataList[f][0]+"";a[p]=l}for(var p in a)a.hasOwnProperty(p)&&a[p]!==l&&(a[p]=l,t[i]=[p,0,u],i++)}return t},e.prototype.getInitialData=function(t,i){for(var a=this.getReferringComponents("singleAxis",Ke).models[0],n=a.get("type"),o=Ie(t.data,function(h){return h[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=W(),f=0,p=0;p<s.length;++p)l.push(s[p][hA]),u.get(s[p][hA])||(u.set(s[p][hA],f),f++);var c=Sa(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:xu(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,v=new Ct(c,this);return v.initData(s),v},e.prototype.getLayerSeries=function(){for(var t=this.getData(),i=t.count(),a=[],n=0;n<i;++n)a[n]=n;var o=t.mapDimension("single"),s=Qc(a,function(u){return t.get("name",u)}),l=[];return s.buckets.each(function(u,f){u.sort(function(p,c){return t.get(o,p)-t.get(o,c)}),l.push({name:f,indices:u})}),l},e.prototype.getAxisTooltipData=function(t,i,a){V(t)||(t=t?[t]:[]);for(var n=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,f=0;f<l;++f){for(var p=Number.MAX_VALUE,c=-1,v=o[f].indices.length,h=0;h<v;++h){var d=n.get(t[0],o[f].indices[h]),m=Math.abs(d-i);m<=p&&(u=d,p=m,c=o[f].indices[h])}s.push(c)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=n.getName(t),s=n.get(n.mapDimension("value"),t);return ft("nameValue",{name:o,value:s})},e.type="series."+Wo,e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e})(ke),BF=Cee;var Aee=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=Wo,t._layers=[],t}return e.prototype.render=function(t,i,a){var n=t.getData(),o=this,s=this.group,l=t.getLayerSeries(),u=n.getLayout("layoutInfo"),f=u.rect,p=u.boundaryGap;s.x=0,s.y=f.y+p[0];function c(m){return m.name}var v=new Tr(this._layersSeries||[],l,c,c),h=[];v.add(X(d,this,"add")).update(X(d,this,"update")).remove(X(d,this,"remove")).execute();function d(m,g,y){var _=o._layers;if(m==="remove"){s.remove(_[g]);return}for(var x=[],S=[],b,w=l[g].indices,A=0;A<w.length;A++){var C=n.getItemLayout(w[A]),E=C.x,D=C.y0,I=C.y;x.push(E,D),S.push(E,D+I),b=n.getItemVisual(w[A],"style")}var M,P=n.getItemLayout(w[0]),O=t.getModel("label"),R=O.get("margin"),z=t.getModel("emphasis");if(m==="add"){var B=h[g]=new Q;M=new Uy({shape:{points:x,stackedOnPoints:S,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),B.add(M),s.add(B),t.isAnimationEnabled()&&M.setClipPath(Eee(M.getBoundingRect(),t,function(){M.removeClipPath()}))}else{var B=_[y];M=B.childAt(0),s.add(B),h[g]=B,Ae(M,{shape:{points:x,stackedOnPoints:S}},t),Bt(M)}it(M,tt(t),{labelDataIndex:w[A-1],defaultText:n.getName(w[A-1]),inheritColor:b.fill},{normal:{verticalAlign:"middle"}}),M.setTextConfig({position:null,local:!0});var F=M.getTextContent();F&&(F.x=P.x-R,F.y=P.y0+P.y/2),M.useStyle(b),n.setItemGraphicEl(g,M),st(M,t),Be(M,z.get("focus"),z.get("blurScope"),z.get("disabled"))}this._layersSeries=l,this._layers=h},e.type=Wo,e})(Le);function Eee(r,e,t){var i=new de({shape:{x:r.x-10,y:r.y-10,width:0,height:r.height+20}});return Ge(i,{shape:{x:r.x-50,width:r.width+100,height:r.height+20}},e,t),i}var FF=Aee;var HF=qe(Wo,Dee);function Dee(r,e){r.eachSeriesByType(Wo,function(t){var i=t.getData(),a=t.coordinateSystem,n={},o=a.getRect();n.rect=o;var s=t.get("boundaryGap"),l=a.getAxis();if(n.boundaryGap=s,l.orient==="horizontal"){s[0]=j(s[0],o.height),s[1]=j(s[1],o.height);var u=o.height-s[0]-s[1];GF(i,t,u)}else{s[0]=j(s[0],o.width),s[1]=j(s[1],o.width);var f=o.width-s[0]-s[1];GF(i,t,f)}i.setLayout("layoutInfo",n)})}function GF(r,e,t){if(r.count())for(var i=e.coordinateSystem,a=e.getLayerSeries(),n=r.mapDimension("single"),o=r.mapDimension("value"),s=U(a,function(m){return U(m.indices,function(g){var y=i.dataToPoint(r.get(n,g));return y[1]=r.get(o,g),y})}),l=Mee(s),u=l.y0,f=t/l.max,p=a.length,c=a[0].indices.length,v,h=0;h<c;++h){v=u[h]*f,r.setItemLayout(a[0].indices[h],{layerIndex:0,x:s[0][h][0],y0:v,y:s[0][h][1]*f});for(var d=1;d<p;++d)v+=s[d-1][h][1]*f,r.setItemLayout(a[d].indices[h],{layerIndex:d,x:s[d][h][0],y0:v,y:s[d][h][1]*f})}}function Mee(r){for(var e=r.length,t=r[0].length,i=[],a=[],n=0,o=0;o<t;++o){for(var s=0,l=0;l<e;++l)s+=r[l][o][1];s>n&&(n=s),i.push(s)}for(var u=0;u<t;++u)a[u]=(n-i[u])/2;n=0;for(var f=0;f<t;++f){var p=i[f]+a[f];p>n&&(n=p)}return{y0:a,max:n}}function dA(r){r.registerChartView(FF),r.registerSeriesModel(BF),r.registerLayout(HF),r.registerProcessor(cn(Wo))}var Iee=2,Lee=4,Pee=(function(r){L(e,r);function e(t,i,a,n){var o=r.call(this)||this;o.z2=Iee,o.textConfig={inside:!0},se(o).seriesIndex=i.seriesIndex;var s=new be({z2:Lee,silent:t.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,t,i,a,n),o}return e.prototype.updateData=function(t,i,a,n,o){this.node=i,i.piece=this,a=a||this._seriesModel,n=n||this._ecModel;var s=this;se(s).dataIndex=i.dataIndex;var l=i.getModel(),u=l.getModel("emphasis"),f=i.getLayout(),p=k({},f);p.label=null;var c=i.getVisual("style");c.lineJoin="bevel";var v=i.getVisual("decal");v&&(c.decal=rn(v,o));var h=ai(l.getModel("itemStyle"),p,!0);k(p,h),T(ir,function(y){var _=s.ensureState(y),x=l.getModel([y,"itemStyle"]);_.style=x.getItemStyle();var S=ai(x,p);S&&(_.shape=S)}),t?(s.setShape(p),s.shape.r=f.r0,Ge(s,{shape:{r:f.r}},a,i.dataIndex)):(Ae(s,{shape:p},a),Bt(s)),s.useStyle(c),this._updateLabel(a);var d=l.getShallow("cursor");d&&s.attr("cursor",d),this._seriesModel=a||this._seriesModel,this._ecModel=n||this._ecModel;var m=u.get("focus"),g=m==="relative"?_n(i.getAncestorsIndices(),i.getDescendantIndices()):m==="ancestor"?i.getAncestorsIndices():m==="descendant"?i.getDescendantIndices():m;Be(this,g,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t){var i=this,a=this.node.getModel(),n=a.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),f=Math.sin(l),p=this,c=p.getTextContent(),v=this.node.dataIndex,h=n.get("minAngle")/180*Math.PI,d=n.get("show")&&!(h!=null&&Math.abs(s)<h);c.ignore=!d,T(ds,function(g){var y=g==="normal"?a.getModel("label"):a.getModel([g,"label"]),_=g==="normal",x=_?c:c.ensureState(g),S=t.getFormattedLabel(v,g);_&&(S=S||i.node.name),x.style=Xe(y,{},null,g!=="normal",!0),S&&(x.style.text=S);var b=y.get("show");b!=null&&!_&&(x.ignore=!b);var w=m(y,"position"),A=_?p:p.states[g],C=A.style.fill;A.textConfig={outsideFill:y.get("color")==="inherit"?C:null,inside:w!=="outside"};var E,D=m(y,"distance")||0,I=m(y,"align"),M=m(y,"rotate"),P=Math.PI*.5,O=Math.PI*1.5,R=_r(M==="tangential"?Math.PI/2-l:l),z=R>P&&!An(R-P)&&R<O;w==="outside"?(E=o.r+D,I=z?"right":"left"):!I||I==="center"?(o.r0===0&&An(s-2*Math.PI)?E=0:E=(o.r+o.r0)/2,I="center"):I==="left"?(E=o.r0+D,I=z?"right":"left"):I==="right"&&(E=o.r-D,I=z?"left":"right"),x.style.align=I,x.style.verticalAlign=m(y,"verticalAlign")||"middle",x.x=E*u+o.cx,x.y=E*f+o.cy;var B=0;M==="radial"?B=_r(-l)+(z?Math.PI:0):M==="tangential"?B=_r(Math.PI/2-l)+(z?Math.PI:0):_e(M)&&(B=M*Math.PI/180),x.rotation=_r(B)});function m(g,y){var _=g.get(y);return _??n.get(y)}c.dirtyStyle()},e})(Tt),mA=Pee;var to="sunburst",Ree=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.ignoreStyleOnData=!0,t}return e.prototype.getInitialData=function(t,i){var a={name:t.name,children:t.data};YF(a);var n=this._levelModels=U(t.levels||[],function(l){return new Ee(l,this,i)},this),o=Vp.createTree(a,this,s);function s(l){l.wrapMethod("getItemModel",function(u,f){var p=o.getNodeByDataIndex(f),c=n[p.depth];return c&&(u.parentModel=c),u})}return o.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(t){var i=r.prototype.getDataParams.apply(this,arguments),a=this.getData().tree.getNodeByDataIndex(t);return i.treePathInfo=Js(a,this),i},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var i=this.getRawData().tree.root;(!t||t!==i&&!i.contains(t))&&(this._viewRoot=i)},e.prototype.enableAriaDecal=function(){Ch(this)},e.type="series."+to,e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e})(ke);function YF(r){var e=0;T(r.children,function(i){YF(i);var a=i.value;V(a)&&(a=a[0]),e+=a});var t=r.value;V(t)&&(t=t[0]),(t==null||isNaN(t))&&(t=e),t<0&&(t=0),V(r.value)?r.value[0]=t:r.value=t}var WF=Ree;var i_="sunburstRootToNode",XF="sunburstHighlight",Oee="sunburstUnhighlight";function ZF(r){r.registerAction({type:i_,update:"updateView"},function(e,t){t.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(a,n){var o=Go(e,[i_],a);if(o){var s=a.getViewRoot();s&&(e.direction=Up(s,o.node)?"rollUp":"drillDown"),a.resetViewRoot(o.node)}}}),r.registerAction({type:XF,update:"none"},function(e,t,i){e=k({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},a);function a(n){var o=Go(e,[XF],n);o&&(e.dataIndex=o.node.dataIndex)}i.dispatchAction(k(e,{type:"highlight"}))}),r.registerAction({type:Oee,update:"updateView"},function(e,t,i){e=k({},e),i.dispatchAction(k(e,{type:"downplay"}))})}var Nee=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=to,t}return e.prototype.render=function(t,i,a,n){var o=this;this.seriesModel=t,this.api=a,this.ecModel=i;var s=t.getData(),l=s.tree.root,u=t.getViewRoot(),f=this.group,p=t.get("renderLabelForZeroData"),c=[];u.eachNode(function(y){c.push(y)});var v=this._oldChildren||[];h(c,v),g(l,u),this._initEvents(),this._oldChildren=c;function h(y,_){if(y.length===0&&_.length===0)return;new Tr(_,y,x,x).add(S).update(S).remove(me(S,null)).execute();function x(b){return b.getId()}function S(b,w){var A=b==null?null:y[b],C=w==null?null:_[w];d(A,C)}}function d(y,_){if(!p&&y&&!y.getValue()&&(y=null),y!==l&&_!==l){if(_&&_.piece)y?(_.piece.updateData(!1,y,t,i,a),s.setItemGraphicEl(y.dataIndex,_.piece)):m(_);else if(y){var x=new mA(y,t,i,a);f.add(x),s.setItemGraphicEl(y.dataIndex,x)}}}function m(y){y&&y.piece&&(f.remove(y.piece),y.piece=null)}function g(y,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,y,t,i,a):(o.virtualPiece=new mA(y,t,i,a),f.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(x){o._rootToNode(_.parentNode)})):o.virtualPiece&&(f.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(i){var a=!1,n=t.seriesModel.getViewRoot();n.eachNode(function(o){if(!a&&o.piece&&o.piece===i.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")t._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var f=l.get("target",!0)||"_blank";su(u,f)}}a=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:i_,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,i){var a=i.getData(),n=a.getItemLayout(0);if(n){var o=t[0]-n.cx,s=t[1]-n.cy,l=Math.sqrt(o*o+s*s);return l<=n.r&&l>=n.r0}},e.type=to,e})(Le),KF=Nee;var qF=qe(to,kee);function kee(r){var e={};function t(i,a,n){if(i.depth===0)return N.color.neutral50;for(var o=i;o&&o.depth>1;)o=o.parentNode;var s=a.getColorFromPalette(o.name||o.dataIndex+"",e);return i.depth>1&&H(s)&&(s=zc(s,(i.depth-1)/(n-1)*.5)),s}r.eachSeriesByType(to,function(i){var a=i.getData(),n=a.tree;n.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=t(o,i,n.root.height));var u=a.ensureUniqueItemVisual(o.dataIndex,"style");k(u,l)})})}var jF=Math.PI/180,JF=qe(to,zee);function zee(r,e){r.eachSeriesByType(to,function(t){var i=t.get("center"),a=t.get("radius");V(a)||(a=[0,a]),V(i)||(i=[i,i]);var n=e.getWidth(),o=e.getHeight(),s=Math.min(n,o),l=j(i[0],n),u=j(i[1],o),f=j(a[0],s/2),p=j(a[1],s/2),c=-t.get("startAngle")*jF,v=t.get("minAngle")*jF,h=t.getData().tree.root,d=t.getViewRoot(),m=d.depth,g=t.get("sort");g!=null&&QF(d,g);var y=0;T(d.children,function(O){!isNaN(O.getValue())&&y++});var _=d.getValue(),x=Math.PI/(_||y)*2,S=d.depth>0,b=d.height-(S?-1:1),w=(p-f)/(b||1),A=t.get("clockwise"),C=t.get("stillShowZeroSum"),E=A?1:-1,D=function(O,R){if(O){var z=R;if(O!==h){var B=O.getValue(),F=_===0&&C?x:B*x;F<v&&(F=v),z=R+E*F;var G=O.depth-m-(S?-1:1),Y=f+w*G,q=f+w*(G+1),re=t.getLevelModel(O);if(re){var ie=re.get("r0",!0),ue=re.get("r",!0),Pe=re.get("radius",!0);Pe!=null&&(ie=Pe[0],ue=Pe[1]),ie!=null&&(Y=j(ie,s/2)),ue!=null&&(q=j(ue,s/2))}O.setLayout({angle:F,startAngle:R,endAngle:z,clockwise:A,cx:l,cy:u,r0:Y,r:q})}if(O.children&&O.children.length){var $e=0;T(O.children,function(De){$e+=D(De,R+$e)})}return z-R}};if(S){var I=f,M=f+w,P=Math.PI*2;h.setLayout({angle:P,startAngle:c,endAngle:c+P,clockwise:A,cx:l,cy:u,r0:I,r:M})}D(d,c)})}function QF(r,e){var t=r.children||[];r.children=Vee(t,e),t.length&&T(r.children,function(i){QF(i,e)})}function Vee(r,e){if(J(e)){var t=U(r,function(a,n){var o=a.getValue();return{params:{depth:a.depth,height:a.height,dataIndex:a.dataIndex,getValue:function(){return o}},index:n}});return t.sort(function(a,n){return e(a.params,n.params)}),U(t,function(a){return r[a.index]})}else{var i=e==="asc";return r.sort(function(a,n){var o=(a.getValue()-n.getValue())*(i?1:-1);return o===0?(a.dataIndex-n.dataIndex)*(i?-1:1):o})}}function gA(r){r.registerChartView(KF),r.registerSeriesModel(WF),r.registerLayout(JF),r.registerVisual(qF),ZF(r)}var yA={color:"fill",borderColor:"stroke"},$F={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ro=ne(),Uee=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,i){return nr(null,this)},e.prototype.getDataParams=function(t,i,a){var n=r.prototype.getDataParams.call(this,t,i);return a&&(n.info=ro(a).info),n},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e})(ke),eG=Uee;function Bee(r,e){return e=e||[0,0],U(["x","y"],function(t,i){var a=this.getAxis(t),n=e[i],o=r[i]/2;return a.type==="category"?xt(a).w:Math.abs(a.dataToCoord(n-o)-a.dataToCoord(n+o))},this)}function _A(r){var e=r.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:X(Bee,r)}}}function Fee(r,e){return e=e||[0,0],U([0,1],function(t){var i=e[t],a=r[t]/2,n=[],o=[];return n[t]=i-a,o[t]=i+a,n[1-t]=o[1-t]=e[1-t],Math.abs(this.dataToPoint(n)[t]-this.dataToPoint(o)[t])},this)}function xA(r){var e=r.view,t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:yV(e)},api:{coord:function(i){return r.dataToPoint(i)},size:X(Fee,r)}}}function Gee(r,e){var t=this.getAxis(),i=e instanceof Array?e[0]:e,a=(r instanceof Array?r[0]:r)/2;return t.type==="category"?xt(t).w:Math.abs(t.dataToCoord(i-a)-t.dataToCoord(i+a))}function SA(r){var e=r.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t){return r.dataToPoint(t)},size:X(Gee,r)}}}function Hee(r,e){return e=e||[0,0],U(["Radius","Angle"],function(t,i){var a="get"+t+"Axis",n=this[a](),o=e[i],s=r[i]/2,l=n.type==="category"?xt(n).w:Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s));return t==="Angle"&&(l=l*Math.PI/180),l},this)}function bA(r){var e=r.getRadiusAxis(),t=r.getAngleAxis(),i=e.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:i[1],r0:i[0]},api:{coord:function(a){var n=e.dataToRadius(a[0]),o=t.dataToAngle(a[1]),s=r.coordToPoint([n,o]);return s.push(n,o*Math.PI/180),s},size:X(Hee,r)}}}function wA(r){var e=r.getRect(),t=r.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:t.start,end:t.end,weeks:t.weeks,dayCount:t.allDay}},api:{coord:function(i,a){return r.dataToPoint(i,a)},layout:function(i,a){return r.dataToLayout(i,a)}}}}function TA(r){var e=r.getRect();return{coordSys:{type:"matrix",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(t,i){return r.dataToPoint(t,i)},layout:function(t,i){return r.dataToLayout(t,i)}}}}var iG={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},tG=ye(iG),QGe=tr(oa,function(r,e){return r[e]=1,r},{}),$Ge=oa.join(", "),kh=["","style","shape","extra"],ec=ne();function AA(r,e,t,i,a){var n=r+"Animation",o=Un(r,i,a)||{},s=ec(e).userDuring;return o.duration>0&&(o.during=s?X(Kee,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),k(o,t[n]),o}function tc(r,e,t,i){i=i||{};var a=i.dataIndex,n=i.isInit,o=i.clearStyle,s=t.isAnimationEnabled(),l=ec(r),u=e.style;l.userDuring=e.during;var f={},p={};if(jee(r,e,p),r.type==="compound")for(var c=r.shape.paths,v=e.shape.paths,h=0;h<v.length;h++){var d=v[h];CA("shape",d,c[h])}else CA("shape",e,p),CA("extra",e,p);if(!n&&s&&(qee(r,e,f),rG("shape",r,e,f),rG("extra",r,e,f),Jee(r,e,u,f)),p.style=u,Yee(r,p,o),Xee(r,e),s)if(n){var m={};T(kh,function(y){var _=y?e[y]:e;_&&_.enterFrom&&(y&&(m[y]=m[y]||{}),k(y?m[y]:m,_.enterFrom))});var g=AA("enter",r,e,t,a);g.duration>0&&r.animateFrom(m,g)}else Wee(r,e,a||0,t,f);EA(r,e),u?r.dirty():r.markRedraw()}function EA(r,e){for(var t=ec(r).leaveToProps,i=0;i<kh.length;i++){var a=kh[i],n=a?e[a]:e;n&&n.leaveTo&&(t||(t=ec(r).leaveToProps={}),a&&(t[a]=t[a]||{}),k(a?t[a]:t,n.leaveTo))}}function rc(r,e,t,i){if(r){var a=r.parent,n=ec(r).leaveToProps;if(n){var o=AA("update",r,e,t,0);o.done=function(){a&&a.remove(r),i&&i()},r.animateTo(n,o)}else a&&a.remove(r),i&&i()}}function el(r){return r==="all"}function Yee(r,e,t){var i=e.style;if(!r.isGroup&&i){if(t){r.useStyle({});for(var a=r.animators,n=0;n<a.length;n++){var o=a[n];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(i)}e&&(e.style=null,e&&r.attr(e),e.style=i)}function Wee(r,e,t,i,a){if(a){var n=AA("update",r,e,i,t);n.duration>0&&r.animateFrom(a,n)}}function Xee(r,e){ae(e,"silent")&&(r.silent=e.silent),ae(e,"ignore")&&(r.ignore=e.ignore),r instanceof Ut&&ae(e,"invisible")&&(r.invisible=e.invisible),r instanceof ce&&ae(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var io={},Zee={setTransform:function(r,e){return io.el[r]=e,this},getTransform:function(r){return io.el[r]},setShape:function(r,e){var t=io.el,i=t.shape||(t.shape={});return i[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=io.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=io.el,i=t.style;return i&&(i[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=io.el.style;if(e)return e[r]},setExtra:function(r,e){var t=io.el.extra||(io.el.extra={});return t[r]=e,this},getExtra:function(r){var e=io.el.extra;if(e)return e[r]}};function Kee(){var r=this,e=r.el;if(e){var t=ec(e).userDuring,i=r.userDuring;if(t!==i){r.el=r.userDuring=null;return}io.el=e,i(Zee)}}function rG(r,e,t,i){var a=t[r];if(a){var n=e[r],o;if(n){var s=t.transition,l=a.transition;if(l)if(!o&&(o=i[r]={}),el(l))k(o,n);else for(var u=We(l),f=0;f<u.length;f++){var p=u[f],c=n[p];o[p]=c}else if(el(s)||le(s,r)>=0){!o&&(o=i[r]={});for(var v=ye(n),f=0;f<v.length;f++){var p=v[f],c=n[p];Qee(a[p],c)&&(o[p]=c)}}}}}function CA(r,e,t){var i=e[r];if(i)for(var a=t[r]={},n=ye(i),o=0;o<n.length;o++){var s=n[o];a[s]=Al(i[s])}}function qee(r,e,t){for(var i=e.transition,a=el(i)?oa:We(i||[]),n=0;n<a.length;n++){var o=a[n];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function jee(r,e,t){for(var i=0;i<tG.length;i++){var a=tG[i],n=iG[a],o=e[a];o&&(t[n[0]]=o[0],t[n[1]]=o[1])}for(var i=0;i<oa.length;i++){var s=oa[i];e[s]!=null&&(t[s]=e[s])}}function Jee(r,e,t,i){if(t){var a=r.style,n;if(a){var o=t.transition,s=e.transition;if(o&&!el(o)){var l=We(o);!n&&(n=i.style={});for(var u=0;u<l.length;u++){var f=l[u],p=a[f];n[f]=p}}else if(r.getAnimationStyleProps&&(el(s)||el(o)||le(s,"style")>=0)){var c=r.getAnimationStyleProps(),v=c?c.style:null;if(v){!n&&(n=i.style={});for(var h=ye(t),u=0;u<h.length;u++){var f=h[u];if(v[f]){var p=a[f];n[f]=p}}}}}}}function Qee(r,e){return It(r)?r!==e:r!=null&&isFinite(r)}var aG=ne(),$ee=["percent","easing","shape","style","extra"];function a_(r){r.stopAnimation("keyframe"),r.attr(aG(r))}function ic(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(V(e)){T(e,function(s){ic(r,s,t)});return}var i=e.keyframes,a=e.duration;if(t&&a==null){var n=Un("enter",t,0);a=n&&n.duration}if(!(!i||!a)){var o=aG(r);T(kh,function(s){if(!(s&&!r[s])){var l,u=!1;i.sort(function(f,p){return f.percent-p.percent}),T(i,function(f){var p=r.animators,c=s?f[s]:f;if(c){var v=ye(c);if(s||(v=Ie(v,function(m){return le($ee,m)<0})),!!v.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var h=0;h<p.length;h++)p[h]!==l&&p[h].targetName===l.targetName&&p[h].stopTracks(v);s&&(o[s]=o[s]||{});var d=s?o[s]:o;T(v,function(m){d[m]=((s?r[s]:r)||{})[m]}),l.whenWithKeys(a*f.percent,c,v,f.easing)}}}),l&&l.delay(e.delay||0).duration(a).start(e.easing)}})}}}var Xo="emphasis",tl="normal",RA="blur",OA="select",rl=[tl,Xo,RA,OA],DA={normal:["itemStyle"],emphasis:[Xo,"itemStyle"],blur:[RA,"itemStyle"],select:[OA,"itemStyle"]},MA={normal:["label"],emphasis:[Xo,"label"],blur:[RA,"label"],select:[OA,"label"]},ete=["x","y"],tte="e\0\0",Ra={normal:{},emphasis:{},blur:{},select:{}},rte={cartesian2d:_A,geo:xA,single:SA,polar:bA,calendar:wA,matrix:TA};function LA(r){return r instanceof ce}function PA(r){return r instanceof Ut}function ite(r,e){e.copyTransform(r),PA(e)&&PA(r)&&(e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e.invisible=r.invisible,e.ignore=r.ignore,LA(e)&&LA(r)&&e.setShape(r.shape))}var ate=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a,n){this._progressiveEls=null;var o=this._data,s=t.getData(),l=this.group,u=nG(t,s,i,a);o||l.removeAll(),s.diff(o).add(function(p){IA(a,null,p,u(p,n),t,l,s)}).remove(function(p){var c=o.getItemGraphicEl(p);c&&rc(c,ro(c).option,t)}).update(function(p,c){var v=o.getItemGraphicEl(c);IA(a,v,p,u(p,n),t,l,s)}).execute();var f=t.get("clip",!0)?Ki(t.coordinateSystem,!1,t):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(t,i,a){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,i,a,n,o){var s=i.getData(),l=nG(i,s,a,n),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=yr(i),v.ensureState("emphasis").hoverLayer=Ka)}for(var p=t.start;p<t.end;p++){var c=IA(null,null,p,l(p,o),i,this.group,s);c&&(c.traverse(f),u.push(c))}},e.prototype.eachRendered=function(t){Kr(this._progressiveEls||this.group,t)},e.prototype.filterForExposedEvent=function(t,i,a,n){var o=i.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},e.type="custom",e})(Le),uG=ate;function NA(r){var e=r.type,t;if(e==="path"){var i=r.shape,a=i.width!=null&&i.height!=null?{x:i.x||0,y:i.y||0,width:i.width,height:i.height}:null,n=cG(i);t=Co(n,null,a,i.layout||"center"),ro(t).customPathData=n}else if(e==="image")t=new lt({}),ro(t).customImagePath=r.style.image;else if(e==="text")t=new be({});else if(e==="group")t=new Q;else if(e==="compoundPath"){var i=r.shape;if(!i||!i.paths){var o="";Ye(o)}var s=U(i.paths,function(f){if(f.type==="path")return Co(f.shape.pathData,f,null);var p=ys(f.type);if(!p){var c="";Ye(c)}return new p});t=new Vn({shape:{paths:s}})}else{var l=ys(e);if(!l){var o="";Ye(o)}t=new l}return ro(t).customGraphicType=e,t.name=r.name,t.z2EmphasisLift=1,t.z2SelectLift=1,t}function kA(r,e,t,i,a,n,o){a_(e);var s=a&&a.normal.cfg;s&&e.setTextConfig(s),i&&i.transition==null&&(i.transition=ete);var l=i&&i.style;if(l){if(e.type==="text"){var u=l;ae(u,"textFill")&&(u.fill=u.textFill),ae(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,p=LA(e)?l.decal:null;r&&p&&(p.dirty=!0,f=rn(p,r)),l.__decalPattern=f}if(PA(e)&&l){var f=l.__decalPattern;f&&(l.decal=f)}tc(e,i,n,{dataIndex:t,isInit:o,clearStyle:!0}),ic(e,i.keyframeAnimation,n)}function fG(r,e,t,i,a){var n=e.isGroup?null:e,o=a&&a[r].cfg;if(n){var s=n.ensureState(r);if(i===!1){var l=n.getState(r);l&&(l.style=null)}else s.style=i||null;o&&(s.textConfig=o),Xa(n)}}function nte(r,e,t){if(!r.isGroup){var i=r,a=t.currentZ,n=t.currentZLevel;i.z=a,i.zlevel=n;var o=e.z2;o!=null&&(i.z2=o||0);for(var s=0;s<rl.length;s++)ote(i,e,rl[s])}}function ote(r,e,t){var i=t===tl,a=i?e:n_(e,t),n=a?a.z2:null,o;n!=null&&(o=i?r:r.ensureState(t),o.z2=n||0)}function nG(r,e,t,i){var a=r.get("renderItem");if(typeof a=="string"){var n=rO(a);n&&(a=n)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):rte[o.type](o));for(var l=$({getWidth:i.getWidth,getHeight:i.getHeight,getZr:i.getZr,getDevicePixelRatio:i.getDevicePixelRatio,value:S,style:w,ordinalRawValue:b,styleEmphasis:A,visual:D,barLayout:I,currentSeriesIndices:M,font:P},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:e.count(),encode:ste(r.getData()),itemPayload:r.get("itemPayload")||{}},f,p,c={},v={},h={},d={},m=0;m<rl.length;m++){var g=rl[m];h[g]=r.getModel(DA[g]),d[g]=r.getModel(MA[g])}function y(O){return O===f?p||(p=e.getItemModel(O)):e.getItemModel(O)}function _(O,R){return e.hasItemOption?O===f?c[R]||(c[R]=y(O).getModel(DA[R])):y(O).getModel(DA[R]):h[R]}function x(O,R){return e.hasItemOption?O===f?v[R]||(v[R]=y(O).getModel(MA[R])):y(O).getModel(MA[R]):d[R]}return function(O,R){return f=O,p=null,c={},v={},a&&a($({dataIndexInside:O,dataIndex:e.getRawIndex(O),actionType:R?R.type:null},u),l)};function S(O,R){return R==null&&(R=f),e.getStore().get(e.getDimensionIndex(O||0),R)}function b(O,R){R==null&&(R=f),O=O||0;var z=e.getDimensionInfo(O);if(!z){var B=e.getDimensionIndex(O);return B>=0?e.getStore().get(B,R):void 0}var F=e.get(z.name,R),G=z&&z.ordinalMeta;return G?G.categories[F]:F}function w(O,R){R==null&&(R=f);var z=e.getItemVisual(R,"style"),B=z&&z.fill,F=z&&z.opacity,G=_(R,tl).getItemStyle();B!=null&&(G.fill=B),F!=null&&(G.opacity=F);var Y={inheritColor:H(B)?B:N.color.neutral99},q=x(R,tl),re=Xe(q,null,Y,!1,!0);re.text=q.getShallow("show")?Z(r.getFormattedLabel(R,tl),fn(e,R)):null;var ie=yv(q,Y,!1);return E(O,G),G=Bw(G,re,ie),O&&C(G,O),G.legacy=!0,G}function A(O,R){R==null&&(R=f);var z=_(R,Xo).getItemStyle(),B=x(R,Xo),F=Xe(B,null,null,!0,!0);F.text=B.getShallow("show")?Dt(r.getFormattedLabel(R,Xo),r.getFormattedLabel(R,tl),fn(e,R)):null;var G=yv(B,null,!0);return E(O,z),z=Bw(z,F,G),O&&C(z,O),z.legacy=!0,z}function C(O,R){for(var z in R)ae(R,z)&&(O[z]=R[z])}function E(O,R){O&&(O.textFill&&(R.textFill=O.textFill),O.textPosition&&(R.textPosition=O.textPosition))}function D(O,R){if(R==null&&(R=f),ae(yA,O)){var z=e.getItemVisual(R,"style");return z?z[yA[O]]:null}if(ae($F,O))return e.getItemVisual(R,O)}function I(O){if(o.type==="cartesian2d"){var R=o.getBaseAxis();return Rk($({axis:R},O))}}function M(){return t.getCurrentSeriesIndices()}function P(O){return Ff(O,t)}}function ste(r){var e={};return T(r.dimensions,function(t){var i=r.getDimensionInfo(t);if(!i.isExtraCoord){var a=i.coordDim,n=e[a]=e[a]||[];n[i.coordDimIndex]=r.getDimensionIndex(t)}}),e}function IA(r,e,t,i,a,n,o){if(!i){n.remove(e);return}var s=zA(r,e,t,i,a,n);return s&&o.setItemGraphicEl(t,s),s&&Be(s,i.focus,i.blurScope,i.emphasisDisabled),s}function zA(r,e,t,i,a,n){var o=-1,s=e;e&&pG(e,i,a)&&(o=le(n.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=NA(i),s&&ite(s,u)),i.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),i.tooltipDisabled&&(u.tooltipDisabled=!0),Ra.normal.cfg=Ra.normal.conOpt=Ra.emphasis.cfg=Ra.emphasis.conOpt=Ra.blur.cfg=Ra.blur.conOpt=Ra.select.cfg=Ra.select.conOpt=null,Ra.isLegacy=!1,ute(u,t,i,a,l,Ra),lte(u,t,i,a,l),kA(r,u,t,i,Ra,a,l),ae(i,"info")&&(ro(u).info=i.info);for(var f=0;f<rl.length;f++){var p=rl[f];if(p!==tl){var c=n_(i,p),v=VA(i,c,p);fG(p,u,c,v,Ra)}}return nte(u,i,a),i.type==="group"&&fte(r,u,t,i,a),o>=0?n.replaceAt(u,o):n.add(u),u}function pG(r,e,t){var i=ro(r),a=e.type,n=e.shape,o=e.style;return t.isUniversalTransitionEnabled()||a!=null&&a!==i.customGraphicType||a==="path"&&hte(n)&&cG(n)!==i.customPathData||a==="image"&&ae(o,"image")&&o.image!==i.customImagePath}function lte(r,e,t,i,a){var n=t.clipPath;if(n===!1)r&&r.getClipPath()&&r.removeClipPath();else if(n){var o=r.getClipPath();o&&pG(o,n,i)&&(o=null),o||(o=NA(n),r.setClipPath(o)),kA(null,o,e,n,null,i,a)}}function ute(r,e,t,i,a,n){if(!(r.isGroup||r.type==="compoundPath")){oG(t,null,n),oG(t,Xo,n);var o=n.normal.conOpt,s=n.emphasis.conOpt,l=n.blur.conOpt,u=n.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=NA(o),r.setTextContent(f)),kA(null,f,e,o,null,i,a);for(var p=o&&o.style,c=0;c<rl.length;c++){var v=rl[c];if(v!==tl){var h=n[v].conOpt;fG(v,f,h,VA(o,h,v),null)}}p?f.dirty():f.markRedraw()}}}}function oG(r,e,t){var i=e?n_(r,e):r,a=e?VA(r,i,Xo):r.style,n=r.type,o=i?i.textConfig:null,s=r.textContent,l=s?e?n_(s,e):s:null;if(a&&(t.isLegacy||Fy(a,n,!!o,!!l))){t.isLegacy=!0;var u=Gy(a,n,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var f=l;!f.type&&(f.type="text")}var p=e?t[e]:t.normal;p.cfg=o,p.conOpt=l}function n_(r,e){return e?r?r[e]:null:r}function VA(r,e,t){var i=e&&e.style;return i==null&&t===Xo&&r&&(i=r.styleEmphasis),i}function fte(r,e,t,i,a){var n=i.children,o=n?n.length:0,s=i.$mergeChildren,l=s==="byName"||i.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){cte({api:r,oldChildren:e.children()||[],newChildren:n||[],dataIndex:t,seriesModel:a,group:e});return}u&&e.removeAll();for(var f=0;f<o;f++){var p=n[f],c=e.childAt(f);p?(p.ignore==null&&(p.ignore=!1),zA(r,c,t,p,a,e)):c.ignore=!0}for(var v=e.childCount()-1;v>=f;v--){var h=e.childAt(v);pte(e,h,a)}}}function pte(r,e,t){e&&rc(e,ro(r).option,t)}function cte(r){new Tr(r.oldChildren,r.newChildren,sG,sG,r).add(lG).update(lG).remove(vte).execute()}function sG(r,e){var t=r&&r.name;return t??tte+e}function lG(r,e){var t=this.context,i=r!=null?t.newChildren[r]:null,a=e!=null?t.oldChildren[e]:null;zA(t.api,a,t.dataIndex,i,t.seriesModel,t.group)}function vte(r){var e=this.context,t=e.oldChildren[r];t&&rc(t,ro(t).option,e.seriesModel)}function cG(r){return r&&(r.pathData||r.d)}function hte(r){return r&&(ae(r,"pathData")||ae(r,"d"))}function UA(r){r.registerChartView(uG),r.registerSeriesModel(eG)}var Ku=ne(),vG=ee,BA=X,dte=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,i,a){var n=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=i,!(!a&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,n,e,t,i);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=f;var p=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new Q,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),i.getZr().add(s);else{var c=me(hG,t,p);this.updatePointerEl(s,u,c),this.updateLabelEl(s,u,c,t)}mG(s,t,!0),this._renderHandle(n)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var i=t.get("animation"),a=e.axis,n=a.type==="category",o=t.get("snap");if(!o&&!n)return!1;if(i==="auto"||i==null){var s=this.animationThreshold;if(n&&xt(a).w>s)return!0;if(o){var l=i0(e).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return i===!0},r.prototype.makeElOption=function(e,t,i,a,n){},r.prototype.createPointerEl=function(e,t,i,a){var n=t.pointer;if(n){var o=Ku(e).pointerEl=new Te[n.type](vG(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,i,a){if(t.label){var n=Ku(e).labelEl=new be(vG(t.label));e.add(n),dG(n,a)}},r.prototype.updatePointerEl=function(e,t,i){var a=Ku(e).pointerEl;a&&t.pointer&&(a.setStyle(t.pointer.style),i(a,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,i,a){var n=Ku(e).labelEl;n&&(n.setStyle(t.label.style),i(n,{x:t.label.x,y:t.label.y}),dG(n,a))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,i=this._api.getZr(),a=this._handle,n=t.getModel("handle"),o=t.get("status");if(!n.get("show")||!o||o==="hide"){a&&i.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=ja(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){vi(u.event)},onmousedown:BA(this._onHandleDragMove,this,0,0),drift:BA(this._onHandleDragMove,this),ondragend:BA(this._onHandleDragEnd,this)}),i.add(a)),mG(a,t,!1),a.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");V(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,_a(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){hG(this._axisPointerModel,!t&&this._moveAnimation,this._handle,FA(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var i=this._handle;if(i){this._dragging=!0;var a=this.updateHandleTransform(FA(i),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=a,i.stopAnimation(),i.attr(FA(a)),Ku(i).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),i=this._group,a=this._handle;t&&i&&(this._lastGraphicKey=null,i&&t.remove(i),a&&t.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Po(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,i){return i=i||0,{x:e[i],y:e[1-i],width:t[i],height:t[1-i]}},r})();function hG(r,e,t,i){gG(Ku(t).lastProp,i)||(Ku(t).lastProp=i,e?Ae(t,i,r):(t.stopAnimation(),t.attr(i)))}function gG(r,e){if(te(r)&&te(e)){var t=!0;return T(e,function(i,a){t=t&&gG(r[a],i)}),!!t}else return r===e}function dG(r,e){r[e.get(["label","show"])?"show":"hide"]()}function FA(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function mG(r,e,t){var i=e.get("z"),a=e.get("zlevel");r&&r.traverse(function(n){n.type!=="group"&&(i!=null&&(n.z=i),a!=null&&(n.zlevel=a),n.silent=t)})}var ac=dte;function nc(r){var e=r.get("type"),t=r.getModel(e+"Style"),i;return e==="line"?(i=t.getLineStyle(),i.fill=null):e==="shadow"&&(i=t.getAreaStyle(),i.stroke=null),i}function GA(r,e,t,i,a){var n=t.get("value"),o=HA(n,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=ma(s.get("padding")||0),u=s.getFont(),f=as(o,u),p=a.position,c=f.width+l[1]+l[3],v=f.height+l[0]+l[2],h=a.align;h==="right"&&(p[0]-=c),h==="center"&&(p[0]-=c/2);var d=a.verticalAlign;d==="bottom"&&(p[1]-=v),d==="middle"&&(p[1]-=v/2),mte(p,c,v,i);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),r.label={x:p[0],y:p[1],style:Xe(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function mte(r,e,t,i){var a=i.getWidth(),n=i.getHeight();r[0]=Math.min(r[0]+e,a)-e,r[1]=Math.min(r[1]+t,n)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function HA(r,e,t,i,a){r=e.scale.parse(r);var n=e.scale.getLabel({value:r},{precision:a.precision}),o=a.formatter;if(o){var s={value:mp(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};T(i,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=u&&u.getDataParams(f);p&&s.seriesData.push(p)}),H(o)?n=o.replace("{value}",n):J(o)&&(n=o(s))}return n}function zh(r,e,t){var i=Je();return dr(i,i,t.rotation),fr(i,i,t.position),br([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],i)}function o_(r,e,t,i,a,n){var o=Ar.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=a.get(["label","margin"]),GA(e,i,a,n,{position:zh(i.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function oc(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function s_(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function YA(r,e,t,i,a,n){return{cx:r,cy:e,r0:t,r:i,startAngle:a,endAngle:n,clockwise:!0}}function sc(r,e,t){return xt(r,{fromStat:{sers:U(e,function(i){return t.getSeriesByIndex(i.seriesIndex)})},min:1}).w}function lc(r,e,t){return[xe(Fe(e[0],e[1]),r-t/2),Fe(r+t/2,xe(e[0],e[1]))]}var gte=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis,l=s.grid,u=n.get("type"),f=s.getGlobalExtent(),p=yG(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(i,!0));if(u&&u!=="none"){var v=nc(n),h=yte[u](s,c,f,p,n.get("seriesDataIndices"),n.ecModel);h.style=v,t.graphicKey=h.type,t.pointer=h}var d=vh(l.getRect(),a);o_(i,t,d,a,n,o)},e.prototype.getHandleTransform=function(t,i,a){var n=vh(i.axis.grid.getRect(),i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=zh(i.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,a,n){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=yG(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,p=[t.x,t.y];p[f]+=i[f],p[f]=Fe(l[1],p[f]),p[f]=xe(l[0],p[f]);var c=(u[1]+u[0])/2,v=[c,c];v[f]=p[f];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:t.rotation,cursorPoint:v,tooltipOption:h[f]}},e})(ac);function yG(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var yte={line:function(r,e,t,i){var a=oc([e,i[0]],[e,i[1]],_G(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t,i,a,n){var o=sc(r,a,n),s=i[1]-i[0],l=lc(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:s_([u,i[0]],[f-u,s],_G(r))}}};function _G(r){return r.dim==="x"?0:1}var xG=gte;var _te=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:N.color.border,width:1,type:"dashed"},shadowStyle:{color:N.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:N.color.neutral00,padding:[5,7,5,7],backgroundColor:N.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:N.color.accent40,throttle:40}},e})(Se),SG=_te;var Zo=ne(),xte=T;function u_(r,e,t){if(!Re.node){var i=e.getZr();Zo(i).records||(Zo(i).records={}),Ste(i,e);var a=Zo(i).records[r]||(Zo(i).records[r]={});a.handler=t}}function Ste(r,e){if(Zo(r).initialized)return;Zo(r).initialized=!0,t("click",me(WA,"click")),t("mousemove",me(WA,"mousemove")),t("mousewheel",me(WA,"mousewheel")),t("globalout",wte);function t(i,a){r.on(i,function(n){var o=Tte(e);xte(Zo(r).records,function(s){s&&a(s,n,o.dispatchAction)}),bte(o.pendings,e)})}}function bte(r,e){var t=r.showTip.length,i=r.hideTip.length,a;t?a=r.showTip[t-1]:i&&(a=r.hideTip[i-1]),a&&(a.dispatchAction=null,e.dispatchAction(a))}function wte(r,e,t){r.handler("leave",null,t)}function WA(r,e,t,i){e.handler(r,t,i)}function Tte(r){var e={showTip:[],hideTip:[]},t=function(i){var a=e[i.type];a?a.push(i):(i.dispatchAction=t,r.dispatchAction(i))};return{dispatchAction:t,pendings:e}}function Vh(r,e){if(!Re.node){var t=e.getZr(),i=(Zo(t).records||{})[r];i&&(Zo(t).records[r]=null)}}var Cte=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=i.getComponent("tooltip"),o=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click|mousewheel";u_("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(t,i){Vh("axisPointer",i)},e.prototype.dispose=function(t,i){Vh("axisPointer",i)},e.type="axisPointer",e})(ze),wG=Cte;function Uh(r,e){var t=[],i=r.seriesIndex,a;if(i==null||!(a=e.getSeriesByIndex(i)))return{point:[]};var n=a.getData(),o=la(n,r);if(o==null||o<0||V(o))return{point:[]};var s=n.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)t=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),p=f.dim,c=u.dim,v=p==="x"||p==="radius"?1:0,h=n.mapDimension(c),d=[];d[v]=n.get(h,o),d[1-v]=n.get(n.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(n.getValues(U(l.dimensions,function(g){return n.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),t=[m.x+m.width/2,m.y+m.height/2]}return{point:t,el:s}}var TG=ne();function XA(r,e,t){var i=r.currTrigger,a=[r.x,r.y],n=r,o=r.dispatchAction||X(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){f_(a)&&(a=Uh({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},e).point);var l=f_(a),u=n.axesInfo,f=s.axesInfo,p=i==="leave"||f_(a),c={},v={},h={list:[],map:{}},d={showPointer:me(Ete,v),showTooltip:me(Dte,h)};T(s.coordSysMap,function(g,y){var _=l||g.containPoint(a);T(s.coordSysAxesInfo[y],function(x,S){var b=x.axis,w=Pte(u,x);if(!p&&_&&(!u||w)){var A=w&&w.value;A==null&&!l&&(A=b.pointToData(a)),A!=null&&CG(x,A,d,!1,c)}})});var m={};return T(f,function(g,y){var _=g.linkGroup;_&&!v[y]&&T(_.axesInfo,function(x,S){var b=v[S];if(x!==g&&b){var w=b.value;_.mapper&&(w=g.axis.scale.parse(_.mapper(w,AG(x),AG(g)))),m[g.key]=w}})}),T(m,function(g,y){CG(f[y],g,d,!0,c)}),Mte(v,f,c),Ite(h,a,r,o),Lte(f,o,t),c}}function CG(r,e,t,i,a){var n=r.axis;if(!(n.scale.isBlank()||!n.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=Ate(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&k(a,s[0]),!i&&r.snap&&n.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function Ate(r,e){var t=e.axis,i=t.dim,a=r,n=[],o=Number.MAX_VALUE,s=-1;return T(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(i),p,c;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,t);c=v.dataIndices,p=v.nestestValue}else{if(c=l.indicesOfNearest(i,f[0],r,t.type==="category"?.5:null),!c.length)return;p=l.getData().get(f[0],c[0])}if(rr(p)){var h=r-p,d=Math.abs(h);d<=o&&((d<o||h>=0&&s<0)&&(o=d,s=h,a=p,n.length=0),T(c,function(m){n.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:n,snapToValue:a}}function Ete(r,e,t,i){r[e.key]={value:t,payloadBatch:i}}function Dte(r,e,t,i){var a=t.payloadBatch,n=e.axis,o=n.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!a.length)){var l=e.coordSys.model,u=Ip(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function Mte(r,e,t){var i=t.axesInfo=[];T(e,function(a,n){var o=a.axisPointerModel.option,s=r[n];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&i.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function Ite(r,e,t,i){if(f_(e)||!r.list.length){i({type:"hideTip"});return}var a=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:r.list})}function Lte(r,e,t){var i=t.getZr(),a="axisPointerLastHighlights",n=TG(i)[a]||{},o=TG(i)[a]={};T(r,function(f,p){var c=f.axisPointerModel.option;c.status==="show"&&f.triggerEmphasis&&T(c.seriesDataIndices,function(v){o[v.seriesIndex+"|"+v.dataIndex]=v})});var s=[],l=[];function u(f){return{seriesIndex:f.seriesIndex,dataIndex:f.dataIndex}}T(n,function(f,p){!o[p]&&l.push(u(f))}),T(o,function(f,p){!n[p]&&s.push(u(f))}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Pte(r,e){for(var t=0;t<(r||[]).length;t++){var i=r[t];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}function AG(r){var e=r.axis.model,t={},i=t.axisDim=r.axis.dim;return t.axisIndex=t[i+"AxisIndex"]=e.componentIndex,t.axisName=t[i+"AxisName"]=e.name,t.axisId=t[i+"AxisId"]=e.id,t}function f_(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function mn(r){Ri.registerAxisPointerClass("CartesianAxisPointer",xG),r.registerComponentModel(SG),r.registerComponentView(wG),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!V(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=Cz(e,t)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},XA)}function ZA(r){Ce(o0),Ce(mn)}var Rte=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=s.getExtent(),f=l.getOtherAxis(s).getExtent(),p=s.dataToCoord(i),c=n.get("type");if(c&&c!=="none"){var v=nc(n),h=Nte[c](s,l,p,u,f,n.get("seriesDataIndices"),n.ecModel);h.style=v,t.graphicKey=h.type,t.pointer=h}var d=n.get(["label","margin"]),m=Ote(i,a,n,l,d);GA(t,a,n,o,m)},e})(ac);function Ote(r,e,t,i,a){var n=e.axis,o=n.dataToCoord(r),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=i.getRadiusAxis().getExtent(),u,f,p;if(n.dim==="radius"){var c=Je();dr(c,c,s),fr(c,c,[i.cx,i.cy]),u=br([o,-a],c);var v=e.getModel("axisLabel").get("rotate")||0,h=Ar.innerTextLayout(s,v*Math.PI/180,-1);f=h.textAlign,p=h.textVerticalAlign}else{var d=l[1];u=i.coordToPoint([d+a,o]);var m=i.cx,g=i.cy;f=Math.abs(u[0]-m)/d<.3?"center":u[0]>m?"left":"right",p=Math.abs(u[1]-g)/d<.3?"middle":u[1]>g?"top":"bottom"}return{position:u,align:f,verticalAlign:p}}var Nte={line:function(r,e,t,i,a){return r.dim==="angle"?{type:"Line",shape:oc(e.coordToPoint([a[0],t]),e.coordToPoint([a[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,i,a,n,o){var s=Math.PI/180,l=sc(r,n,o),u;if(r.dim==="angle")u=YA(e.cx,e.cy,a[0],a[1],(-t-l/2)*s,(-t+l/2)*s);else{var f=lc(t,i,l),p=f[0],c=f[1];u=YA(e.cx,e.cy,p,c,0,Math.PI*2)}return{type:"Sector",shape:u}}},EG=Rte;var $i="polar",KA=$i,kte=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.findAxisModel=function(t){var i,a=this.ecModel;return a.eachComponent(t,function(n){n.getCoordSysModel()===this&&(i=n)},this),i},e.type=$i,e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e})(Se),DG=kte;var qA=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ke).models[0]},e.type="polarAxis",e})(Se);rt(qA,Ta);var MG=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e})(qA);var IG=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e})(qA);var jA=(function(r){L(e,r);function e(t,i){return r.call(this,"radius",t,i)||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e})(ur);jA.prototype.dataToRadius=ur.prototype.dataToCoord;jA.prototype.radiusToData=ur.prototype.coordToData;var LG=jA;var zte=ne(),JA=(function(r){L(e,r);function e(t,i){return r.call(this,"angle",t,i||[0,360])||this}return e.prototype.pointToData=function(t,i){return this.polar.pointToData(t,i)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,i=t.getLabelModel(),a=t.scale,n=a.getExtent(),o=a.count();if(n[1]-n[0]<1)return 0;var s=n[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=as(s==null?"":s+"",i.getFont(),"center","top"),p=Math.max(f.height,7),c=p/u;isNaN(c)&&(c=1/0);var v=Math.max(0,Math.floor(c)),h=zte(t.model),d=h.lastAutoInterval,m=h.lastTickCount;return d!=null&&m!=null&&Math.abs(d-v)<=1&&Math.abs(m-o)<=1&&d>v?v=d:(h.lastTickCount=o,h.lastAutoInterval=v),v},e})(ur);JA.prototype.dataToAngle=ur.prototype.dataToCoord;JA.prototype.angleToData=ur.prototype.coordToData;var PG=JA;var QA=["radius","angle"],Vte=(function(){function r(e){this.dimensions=QA,this.type=$i,this.cx=0,this.cy=0,this._radiusAxis=new LG,this._angleAxis=new PG,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return r.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},r.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},r.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},r.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},r.prototype.getAxesByScale=function(e){var t=[],i=this._angleAxis,a=this._radiusAxis;return i.scale.type===e&&t.push(i),a.scale.type===e&&t.push(a),t},r.prototype.getAngleAxis=function(){return this._angleAxis},r.prototype.getRadiusAxis=function(){return this._radiusAxis},r.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},r.prototype.getTooltipAxes=function(e){var t=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},r.prototype.dataToPoint=function(e,t,i){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)],i)},r.prototype.pointToData=function(e,t,i){i=i||[];var a=this.pointToCoord(e);return i[0]=this._radiusAxis.radiusToData(a[0],t),i[1]=this._angleAxis.angleToData(a[1],t),i},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,i=e[1]-this.cy,a=this.getAngleAxis(),n=a.getExtent(),o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);a.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+i*i);t/=l,i/=l;for(var u=Math.atan2(-i,t)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e,t){t=t||[];var i=e[0],a=e[1]/180*Math.PI;return t[0]=Math.cos(a)*i+this.cx,t[1]=-Math.sin(a)*i+this.cy,t},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),i=t.getExtent().slice();i[0]>i[1]&&i.reverse();var a=e.getExtent(),n=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:i[0],r:i[1],startAngle:-a[0]*n,endAngle:-a[1]*n,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,p=u*u+f*f,c=this.r,v=this.r0;return c!==v&&p-o<=c*c&&p+o>=v*v},x:this.cx-i[1],y:this.cy-i[1],width:i[1]*2,height:i[1]*2}},r.prototype.convertToPixel=function(e,t,i){var a=RG(t);return a===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var a=RG(t);return a===this?this.pointToData(i):null},r})();function RG(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var OG=Vte;function Ute(r,e,t){var i=e.get("center"),a=Qe(e,t).refContainer;r.cx=j(i[0],a.width)+a.x,r.cy=j(i[1],a.height)+a.y;var n=r.getRadiusAxis(),o=Math.min(a.width,a.height)/2,s=e.get("radius");s==null?s=[0,"100%"]:V(s)||(s=[0,s]);var l=[j(s[0],o),j(s[1],o)];n.inverse?n.setExtent(l[1],l[0]):n.setExtent(l[0],l[1])}function Bte(r,e){var t=this,i=t.getAngleAxis(),a=t.getRadiusAxis();if(Zi(i,on),Zi(a,on),qn(i),qn(a),i.type==="category"&&!i.onBand){var n=i.getExtent(),o=360/i.scale.count();i.inverse?n[1]+=o:n[1]-=o,i.setExtent(n[0],n[1])}}function Fte(r){return r.mainType==="angleAxis"}function NG(r,e){var t;if(r.type=Xn(e),r.scale=wa(e,r.type,!1),r.onBand=Zn(r.scale,e),r.inverse=e.get("inverse"),Fte(e)){r.inverse=r.inverse!==e.get("clockwise");var i=e.get("startAngle"),a=(t=e.get("endAngle"))!==null&&t!==void 0?t:i+(r.inverse?-360:360);r.setExtent(i,a)}e.axis=r,r.model=e}var Gte={dimensions:QA,create:function(r,e){var t=[];return r.eachComponent(KA,function(i,a){var n=new OG(a+"");n.update=Bte;var o=n.getRadiusAxis(),s=n.getAngleAxis(),l=i.findAxisModel("radiusAxis"),u=i.findAxisModel("angleAxis");NG(o,l),NG(s,u),Ute(n,i,e),t.push(n),i.coordinateSystem=n,n.model=i}),r.eachSeries(function(i){if(i.get("coordinateSystem")===$i){var a=i.getReferringComponents(KA,Ke).models[0],n=i.coordinateSystem=a.coordinateSystem;n&&(Ca(n.getRadiusAxis(),i,$i),Ca(n.getAngleAxis(),i,$i))}}),t}},kG=Gte;var Hte=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function p_(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var i=r.coordToPoint([e[0],t]),a=r.coordToPoint([e[1],t]);return{x1:i[0],y1:i[1],x2:a[0],y2:a[1]}}function c_(r){var e=r.getRadiusAxis();return e.inverse?0:1}function zG(r){var e=r[0],t=r[r.length-1];e&&t&&Math.abs(Math.abs(e.coord-t.coord)-360)<1e-4&&r.pop()}var Yte=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i){if(this.group.removeAll(),!!t.get("show")){var a=t.axis,n=a.polar,o=n.getRadiusAxis().getExtent(),s=a.getTicksCoords({breakTicks:"none"}),l=a.getMinorTicksCoords(),u=[];T(a.getViewLabels(),function(f){if(!f.tick.offInterval){f=ee(f);var p=a.scale;f.coord=a.dataToCoord(nn(p,f.tick)),u.push(f)}}),zG(u),zG(s),T(Hte,function(f){t.get([f,"show"])&&(!a.scale.isBlank()||f==="axisLine")&&Wte[f](this.group,t,n,s,l,o,u)},this)}},e.type="angleAxis",e})(Ri),Wte={axisLine:function(r,e,t,i,a,n){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=c_(t),p=f?0:1,c,v=Math.abs(u[1]-u[0])===360?"Circle":"Arc";n[p]===0?c=new Te[v]({shape:{cx:t.cx,cy:t.cy,r:n[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):c=new bo({shape:{cx:t.cx,cy:t.cy,r:n[f],r0:n[p]},style:o.getLineStyle(),z2:1,silent:!0}),c.style.fill=null,r.add(c)},axisTick:function(r,e,t,i,a,n){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=n[c_(t)],u=U(i,function(f){return new ut({shape:p_(t,[l,l+s],f.coord)})});r.add(vr(u,{style:$(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,i,a,n){if(a.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=n[c_(t)],f=[],p=0;p<a.length;p++)for(var c=0;c<a[p].length;c++)f.push(new ut({shape:p_(t,[u,u+l],a[p][c].coord)}));r.add(vr(f,{style:$(s.getModel("lineStyle").getLineStyle(),$(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,i,a,n,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");T(o,function(p,c){var v=l,h=p.tick.value,d=n[c_(t)],m=t.coordToPoint([d+u,p.coord]),g=t.cx,y=t.cy,_=Math.abs(m[0]-g)/d<.3?"center":m[0]>g?"left":"right",x=Math.abs(m[1]-y)/d<.3?"middle":m[1]>y?"top":"bottom";if(s&&s[h]){var S=s[h];te(S)&&S.textStyle&&(v=new Ee(S.textStyle,l,l.ecModel))}var b=new be({silent:Ar.isLabelSilent(e),style:Xe(v,{x:m[0],y:m[1],fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:p.formattedLabel,align:_,verticalAlign:x})});if(r.add(b),Nr({el:b,componentModel:e,itemName:p.formattedLabel,formatterParamsExtra:{isTruncated:function(){return b.isTruncated},value:p.rawLabel,tickIndex:c}}),f){var w=Ar.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=p.rawLabel,se(b).eventData=w}},this)},splitLine:function(r,e,t,i,a,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],p=0;p<i.length;p++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new ut({shape:p_(t,n,i[p].coord)}))}for(var p=0;p<f.length;p++)r.add(vr(f[p],{style:$({stroke:l[p%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,i,a,n){if(a.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<a.length;u++)for(var f=0;f<a[u].length;f++)l.push(new ut({shape:p_(t,n,a[u][f].coord)}));r.add(vr(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,i,a,n){if(i.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],p=Math.PI/180,c=-i[0].coord*p,v=Math.min(n[0],n[1]),h=Math.max(n[0],n[1]),d=e.get("clockwise"),m=1,g=i.length;m<=g;m++){var y=m===g?i[0].coord:i[m].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new Tt({shape:{cx:t.cx,cy:t.cy,r0:v,r:h,startAngle:c,endAngle:-y*p,clockwise:d},silent:!0})),c=-y*p}for(var m=0;m<f.length;m++)r.add(vr(f[m],{style:$({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}},VG=Yte;var Xte=["splitLine","splitArea","minorSplitLine"],Zte=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="PolarAxisPointer",t}return e.prototype.render=function(t,i,a){if(this.group.removeAll(),!!t.get("show")){var n=this._axisGroup,o=this._axisGroup=new Q;this.group.add(o);var s=t.axis,l=s.polar,u=l.getAngleAxis(),f=s.getTicksCoords(),p=s.getMinorTicksCoords(),c=u.getExtent()[0],v=s.getExtent(),h=qte(l,t,c),d=new Ar(t,a,h);d.build(),o.add(d.group),Eo(n,o,t),T(Xte,function(m){t.get([m,"show"])&&!s.scale.isBlank()&&Kte[m](this.group,t,l,c,v,f,p)},this)}},e.type="radiusAxis",e})(Ri),Kte={splitLine:function(r,e,t,i,a,n){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=t.getAngleAxis(),p=Math.PI/180,c=f.getExtent(),v=Math.abs(c[1]-c[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var h=[],d=0;d<n.length;d++){var m=u++%l.length;h[m]=h[m]||[],h[m].push(new Te[v]({shape:{cx:t.cx,cy:t.cy,r:Math.max(n[d].coord,0),startAngle:-c[0]*p,endAngle:-c[1]*p,clockwise:f.inverse}}))}for(var d=0;d<h.length;d++)r.add(vr(h[d],{style:$({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,i,a,n,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var p=0;p<o[f].length;p++)u.push(new Sr({shape:{cx:t.cx,cy:t.cy,r:o[f][p].coord}}));r.add(vr(u,{style:$({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,i,a,n){if(n.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],p=n[0].coord,c=1;c<n.length;c++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new Tt({shape:{cx:t.cx,cy:t.cy,r0:p,r:n[c].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),p=n[c].coord}for(var c=0;c<f.length;c++)r.add(vr(f[c],{style:$({fill:l[c%l.length]},s.getAreaStyle()),silent:!0}))}}};function qte(r,e,t){return{position:[r.cx,r.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}var UG=Zte;var jte=ua();function BG(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}var FG=qe(ii,Jte);function Jte(r){var e=Bo(ii,$i);yp(r,e,function(t){var i=$te(t,ii),a={};Kn(t,e,function(n){Qte(t,n,i,a)})})}function Qte(r,e,t,i){var a=e.getData(),n=BG(e),o=t[n],s=o.offset,l=o.width,u=e.coordinateSystem,f=u.getOtherAxis(r),p=u.cx,c=u.cy,v=e.get("barMinHeight")||0,h=e.get("barMinAngle")||0;i[n]=i[n]||[];for(var d=a.mapDimension(f.dim),m=a.mapDimension(r.dim),g=Qr(a,d),y=r.dim!=="radius"||!e.get("roundCap",!0),_=f.dataToCoord(Xy(f)),x=0,S=a.count();x<S;x++){var b=a.get(d,x),w=a.get(m,x),A=b>=0?"p":"n",C=_;g&&(i[n][w]||(i[n][w]={p:_,n:_}),C=i[n][w][A]);var E=void 0,D=void 0,I=void 0,M=void 0;if(f.dim==="radius"){var P=f.dataToCoord(b)-_,O=r.dataToCoord(w);ct(P)<v&&(P=(P<0?-1:1)*v),E=C,D=C+P,I=O-s,M=I-l,g&&(i[n][w][A]=D)}else{var R=f.dataToCoord(b,y)-_,z=r.dataToCoord(w);ct(R)<h&&(R=(R<0?-1:1)*h),E=z+s,D=E+l,I=C,M=C+R,g&&(i[n][w][A]=M)}a.setItemLayout(x,{cx:p,cy:c,r0:E,r:D,startAngle:-I*_f/180,endAngle:-M*_f/180,clockwise:I>=M})}}function $te(r,e){var t=Bo(e,$i),i=xt(r,{fromStat:{key:t},min:1}).w,a=i,n=0,o="20%",s="30%",l={};Kn(r,t,function(m){var g=BG(m);l[g]||n++,l[g]=l[g]||{width:0,maxWidth:0};var y=j(m.get("barWidth"),i),_=j(m.get("barMaxWidth"),i),x=m.get("barGap"),S=m.get("barCategoryGap");y&&!l[g].width&&(y=Fe(a,y),l[g].width=y,a-=y),_&&(l[g].maxWidth=_),x!=null&&(s=x),S!=null&&(o=S)});var u={},f=j(o,i),p=j(s,1),c=(a-f)/(n+(n-1)*p);c=xe(c,0),T(l,function(m,g){var y=m.maxWidth;y&&y<c&&(y=Fe(y,a),m.width&&(y=Fe(y,m.width)),a-=y,m.width=y,n--)}),c=(a-f)/(n+(n-1)*p),c=xe(c,0);var v=0,h;T(l,function(m,g){m.width||(m.width=c),h=m,v+=m.width*(1+p)}),h&&(v-=h.width*p);var d=-v/2;return T(l,function(m,g){u[g]=u[g]||{offset:d,width:m.width},d+=m.width*(1+p)}),u}function GG(r,e){jte(r,function(){var t=Bo(e,$i);Wy(r,t,e,$i),Is(t,Fs(t))})}var ere={startAngle:90,clockwise:!0,splitNumber:12,containShape:!1,axisLabel:{rotate:0}},tre={splitNumber:5},rre=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e})(ze);function $A(r){Ce(mn),Ri.registerAxisPointerClass("PolarAxisPointer",EG),r.registerCoordinateSystem("polar",kG),r.registerComponentModel(DG),r.registerComponentView(rre),hn(r,"angle",MG,ere),hn(r,"radius",IG,tre),r.registerComponentView(VG),r.registerComponentView(UG),r.registerLayout(FG),GG(r,ii)}function Bh(r,e){e=e||{};var t=r.coordinateSystem,i=r.axis,a={},n=i.position,o=i.orient,s=t.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};a.position=[o==="vertical"?u.vertical[n]:l[0],o==="horizontal"?u.horizontal[n]:l[3]];var f={horizontal:0,vertical:1};a.rotation=Math.PI/2*f[o];var p={top:-1,bottom:1,right:1,left:-1};a.labelDirection=a.tickDirection=a.nameDirection=p[n],r.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Et(e.labelInside,r.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var c=r.get(["axisLabel","rotate"]);return a.labelRotate=n==="top"?-c:c,a.z2=1,a}var ire=["splitArea","splitLine","breakArea"],are=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.axisPointerClass="SingleAxisPointer",t}return e.prototype.render=function(t,i,a,n){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Q;var l=Bh(t),u=new Ar(t,a,l);u.build(),o.add(this._axisGroup),o.add(u.group),T(ire,function(f){t.get([f,"show"])&&nre[f](this,this.group,this._axisGroup,t,a)},this),Eo(s,this._axisGroup,t),r.prototype.render.call(this,t,i,a,n)},e.prototype.remove=function(){n0(this)},e.type="singleAxis",e})(Ri),nre={splitLine:function(r,e,t,i,a){var n=i.axis;if(!n.scale.isBlank()){var o=i.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color");l=l instanceof Array?l:[l];for(var u=s.get("width"),f=i.coordinateSystem.getRect(),p=n.isHorizontal(),c=[],v=0,h=n.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),d=[],m=[],g=0;g<h.length;++g){var y=n.toGlobalCoord(h[g].coord);p?(d[0]=y,d[1]=f.y,m[0]=y,m[1]=f.y+f.height):(d[0]=f.x,d[1]=y,m[0]=f.x+f.width,m[1]=y);var _=new ut({shape:{x1:d[0],y1:d[1],x2:m[0],y2:m[1]},silent:!0});Ao(_.shape,u);var x=v++%l.length;c[x]=c[x]||[],c[x].push(_)}for(var S=s.getLineStyle(["color"]),g=0;g<c.length;++g)e.add(vr(c[g],{style:$({stroke:l[g%l.length]},S),silent:!0}))}},splitArea:function(r,e,t,i,a){a0(r,t,i,i)},breakArea:function(r,e,t,i,a){var n=zo(),o=i.axis.scale;n&&o.type!=="ordinal"&&n.rectCoordBuildBreakAxis(e,r,i,i.coordinateSystem.getRect(),a)}},YG=are;var ore=(function(r){L(e,r);function e(t,i,a,n,o){var s=r.call(this,t,i,a)||this;return s.type=n||"value",s.position=o||"bottom",s}return e.prototype.isHorizontal=function(){var t=this.position;return t==="top"||t==="bottom"},e.prototype.pointToData=function(t,i){return this.coordinateSystem.pointToData(t)[0]},e})(ur),WG=ore;var eE=["single"],sre=(function(){function r(e,t,i){this.type=Hs,this.dimension="single",this.dimensions=eE,this.axisPointerEnabled=!0,this.model=e,this._init(e,t,i)}return r.prototype._init=function(e,t,i){var a=this.dimension,n=Xn(e),o=new WG(a,wa(e,n,!0),[0,0],n,e.get("position"));o.onBand=Zn(o.scale,e),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},r.prototype.update=function(e,t){var i=this._axis;Zi(i,on),qn(i)},r.prototype.resize=function(e,t){var i=Qe(e,t).refContainer;this._rect=He(e.getBoxLayoutParams(),i),this._adjustAxis()},r.prototype.getRect=function(){return this._rect},r.prototype._adjustAxis=function(){var e=this._rect,t=this._axis,i=t.isHorizontal(),a=i?[0,e.width]:[0,e.height],n=t.inverse?1:0;t.setExtent(a[n],a[1-n]),this._updateAxisTransform(t,i?e.x:e.y)},r.prototype._updateAxisTransform=function(e,t){var i=e.getExtent(),a=i[0]+i[1],n=e.isHorizontal();e.toGlobalCoord=n?function(o){return o+t}:function(o){return a-o+t},e.toLocalCoord=n?function(o){return o-t}:function(o){return a-o+t}},r.prototype.getAxis=function(){return this._axis},r.prototype.getBaseAxis=function(){return this._axis},r.prototype.getAxes=function(){return[this._axis]},r.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},r.prototype.containPoint=function(e){var t=this.getRect(),i=this.getAxis(),a=i.orient;return a==="horizontal"?i.contain(i.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:i.contain(i.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},r.prototype.pointToData=function(e,t,i){i=i||[];var a=this.getAxis();return i[0]=a.coordToData(a.toLocalCoord(e[a.orient==="horizontal"?0:1])),i},r.prototype.dataToPoint=function(e,t,i){var a=this.getAxis(),n=this.getRect();i=i||[];var o=a.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[o]=a.toGlobalCoord(a.dataToCoord(+e)),i[1-o]=o===0?n.y+n.height/2:n.x+n.width/2,i},r.prototype.convertToPixel=function(e,t,i){var a=XG(t);return a===this?this.dataToPoint(i):null},r.prototype.convertFromPixel=function(e,t,i){var a=XG(t);return a===this?this.pointToData(i):null},r})();function XG(r){var e=r.seriesModel,t=r.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var ZG=sre;function lre(r,e){var t=[];return r.eachComponent(s0,function(i,a){var n=new ZG(i,r,e);n.name="single_"+a,n.resize(i,e),i.coordinateSystem=n,t.push(n)}),r.eachSeries(function(i){if(i.get("coordinateSystem")===Pz){var a=i.getReferringComponents(s0,Ke).models[0],n=i.coordinateSystem=a&&a.coordinateSystem;n&&Ca(n.getAxis(),i,Hs)}}),t}var ure={create:lre,dimensions:eE},KG=ure;var qG=["x","y"],fre=["width","height"],pre=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,i,a,n,o){var s=a.axis,l=s.coordinateSystem,u=h_(s),f=v_(l,u),p=v_(l,1-u),c=l.dataToPoint(i)[0],v=n.get("type");if(v&&v!=="none"){var h=nc(n),d=cre[v](s,c,f,p,n.get("seriesDataIndices"),n.ecModel);d.style=h,t.graphicKey=d.type,t.pointer=d}var m=Bh(a);o_(i,t,m,a,n,o)},e.prototype.getHandleTransform=function(t,i,a){var n=Bh(i,{labelInside:!1});n.labelMargin=a.get(["handle","margin"]);var o=zh(i.axis,t,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,i,a,n){var o=a.axis,s=o.coordinateSystem,l=h_(o),u=v_(s,l),f=[t.x,t.y];f[l]+=i[l],f[l]=Math.min(u[1],f[l]),f[l]=Math.max(u[0],f[l]);var p=v_(s,1-l),c=(p[1]+p[0])/2,v=[c,c];return v[l]=f[l],{x:f[0],y:f[1],rotation:t.rotation,cursorPoint:v,tooltipOption:{verticalAlign:"middle"}}},e})(ac),cre={line:function(r,e,t,i){var a=oc([e,i[0]],[e,i[1]],h_(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,e,t,i,a,n){var o=sc(r,a,n),s=i[1]-i[0],l=lc(e,t,o),u=l[0],f=l[1];return{type:"Rect",shape:s_([u,i[0]],[f-u,s],h_(r))}}};function h_(r){return r.isHorizontal()?0:1}function v_(r,e){var t=r.getRect();return[t[qG[e]],t[qG[e]]+t[fre[e]]]}var jG=pre;var vre=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="single",e})(ze);function tE(r){Ce(mn),Ri.registerAxisPointerClass("SingleAxisPointer",jG),r.registerComponentView(vre),r.registerComponentView(YG),r.registerComponentModel(l0),hn(r,"single",l0,l0.defaultOption),r.registerCoordinateSystem("single",KG)}var hre=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,a){var n=Mi(t);r.prototype.init.apply(this,arguments),JG(t,n)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),JG(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.layoutMode="box",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:N.color.axisLine,width:1,type:"solid"}},itemStyle:{color:N.color.neutral00,borderWidth:1,borderColor:N.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:N.size.s,color:N.color.secondary},monthLabel:{show:!0,position:"start",margin:N.size.s,align:"center",formatter:null,color:N.color.secondary},yearLabel:{show:!0,position:null,margin:N.size.xl,formatter:null,color:N.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e})(Se);function JG(r,e){var t=r.cellSize,i;V(t)?i=t:i=r.cellSize=[t,t],i.length===1&&(i[1]=i[0]);var a=U([0,1],function(n){return OP(e,n)&&(i[n]="auto"),i[n]!=null&&i[n]!=="auto"});wr(r,e,{type:"box",ignoreSize:a})}var QG=hre;var dre=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){var n=this.group;n.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=i.getLocaleModel();this._renderDayRect(t,s,n),this._renderLines(t,s,l,n),this._renderYearText(t,s,l,n),this._renderMonthText(t,u,l,n),this._renderWeekText(t,u,s,l,n)},e.prototype._renderDayRect=function(t,i,a){for(var n=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=n.getCellWidth(),l=n.getCellHeight(),u=i.start.time;u<=i.end.time;u=n.getNextNDay(u,1).time){var f=n.dataToCalendarLayout([u],!1).tl,p=new de({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});a.add(p)}},e.prototype._renderLines=function(t,i,a,n){var o=this,s=t.coordinateSystem,l=t.getModel(["splitLine","lineStyle"]).getLineStyle(),u=t.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var p=i.start,c=0;p.time<=i.end.time;c++){h(p.formatedDate),c===0&&(p=s.getDateInfo(i.start.y+"-"+i.start.m));var v=p.date;v.setMonth(v.getMonth()+1),p=s.getDateInfo(v)}h(s.getNextNDay(i.end.time,1).formatedDate);function h(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToCalendarLayout([d],!1).tl);var m=o._getLinePointsOfOneWeek(t,d,a);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,n)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,a),l,n),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,a),l,n)},e.prototype._getEdgesPoints=function(t,i,a){var n=[t[0].slice(),t[t.length-1].slice()],o=a==="horizontal"?0:1;return n[0][o]=n[0][o]-i/2,n[1][o]=n[1][o]+i/2,n},e.prototype._drawSplitline=function(t,i,a){var n=new vt({z2:20,shape:{points:t},style:i});a.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,i,a){for(var n=t.coordinateSystem,o=n.getDateInfo(i),s=[],l=0;l<7;l++){var u=n.getNextNDay(o.time,l),f=n.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[a==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,i){return H(t)&&t?Jm(t,i):J(t)?t(i):i.nameMap},e.prototype._yearTextPositionControl=function(t,i,a,n,o){var s=i[0],l=i[1],u=["center","bottom"];n==="bottom"?(l+=o,u=["center","top"]):n==="left"?s-=o:n==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(n==="left"||n==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,i,a,n){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=a!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,p=(u[0][1]+u[1][1])/2,c=a==="horizontal"?0:1,v={top:[f,u[c][1]],bottom:[f,u[1-c][1]],left:[u[1-c][0],p],right:[u[c][0],p]},h=i.start.y;+i.end.y>+i.start.y&&(h=h+"-"+i.end.y);var d=o.get("formatter"),m={start:i.start.y,end:i.end.y,nameMap:h},g=this._formatterLabel(d,m),y=new be({z2:30,style:Xe(o,{text:g}),silent:o.get("silent")});y.attr(this._yearTextPositionControl(y,v[l],a,l,s)),n.add(y)}},e.prototype._monthTextPositionControl=function(t,i,a,n,o){var s="left",l="top",u=t[0],f=t[1];return a==="horizontal"?(f=f+o,i&&(s="center"),n==="start"&&(l="bottom")):(u=u+o,i&&(l="middle"),n==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,i,a,n){var o=t.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),p=[this._tlpoints,this._blpoints];(!s||H(s))&&(s&&(i=_v(s)||i),s=i.get(["time","monthAbbr"])||[]);var c=u==="start"?0:1,v=a==="horizontal"?0:1;l=u==="start"?-l:l;for(var h=f==="center",d=o.get("silent"),m=0;m<p[c].length-1;m++){var g=p[c][m].slice(),y=this._firstDayOfMonth[m];if(h){var _=this._firstDayPoints[m];g[v]=(_[v]+p[0][m+1][v])/2}var x=o.get("formatter"),S=s[+y.m-1],b={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:S},w=this._formatterLabel(x,b),A=new be({z2:30,style:k(Xe(o,{text:w}),this._monthTextPositionControl(g,h,a,u,l)),silent:d});n.add(A)}}},e.prototype._weekTextPositionControl=function(t,i,a,n,o){var s="center",l="middle",u=t[0],f=t[1],p=a==="start";return i==="horizontal"?(u=u+n+(p?1:-1)*o[0]/2,s=p?"right":"left"):(f=f+n+(p?1:-1)*o[1]/2,l=p?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,i,a,n,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),p=s.get("margin"),c=l.getFirstDayOfWeek();if(!f||H(f)){f&&(i=_v(f)||i);var v=i.get(["time","dayOfWeekShort"]);f=v||U(i.get(["time","dayOfWeekAbbr"]),function(b){return b[0]})}var h=l.getNextNDay(a.end.time,7-a.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];p=j(p,Math.min(d[1],d[0])),u==="start"&&(h=l.getNextNDay(a.start.time,-(7+a.fweek)).time,p=-p);for(var m=s.get("silent"),g=0;g<7;g++){var y=l.getNextNDay(h,g),_=l.dataToCalendarLayout([y.time],!1).center,x=g;x=Math.abs((g+c)%7);var S=new be({z2:30,style:k(Xe(s,{text:f[x]}),this._weekTextPositionControl(_,n,u,p,d)),silent:m});o.add(S)}}},e.type="calendar",e})(ze),$G=dre;var rE=864e5,mre=(function(){function r(e,t,i){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e,this._update(t,i)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(e){e=gr(e);var t=e.getFullYear(),i=e.getMonth()+1,a=i<10?"0"+i:""+i,n=e.getDate(),o=n<10?"0"+n:""+n,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:a,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+a+"-"+o,date:e}},r.prototype.getNextNDay=function(e,t){return t=t||0,t===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+t),this.getDateInfo(e))},r.prototype._update=function(e,t){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var i=this._rangeInfo.weeks||1,a=["width","height"],n=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[i,7]:[7,i];T([0,1],function(p){f(n,p)&&(o[a[p]]=n[p]*s[p])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=He(o,l);T([0,1],function(p){f(n,p)||(n[p]=u[a[p]]/s[p])});function f(p,c){return p[c]!=null&&p[c]!=="auto"}this._sw=n[0],this._sh=n[1]},r.prototype.dataToPoint=function(e,t,i){i=i||[],V(e)&&(e=e[0]),t==null&&(t=!0);var a=this.getDateInfo(e),n=this._rangeInfo,o=a.formatedDate;if(t&&!(a.time>=n.start.time&&a.time<n.end.time+rE))return i[0]=i[1]=NaN,i;var s=a.day,l=this._getRangeInfo([n.start.time,o]).nthWeek;return this._orient==="vertical"?(i[0]=this._rect.x+s*this._sw+this._sw/2,i[1]=this._rect.y+l*this._sh+this._sh/2):(i[0]=this._rect.x+l*this._sw+this._sw/2,i[1]=this._rect.y+s*this._sh+this._sh/2),i},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToLayout=function(e,t,i){i=i||{};var a=i.rect=i.rect||{},n=i.contentRect=i.contentRect||{},o=this.dataToPoint(e,t);return a.x=o[0]-this._sw/2,a.y=o[1]-this._sh/2,a.width=this._sw,a.height=this._sh,oe.copy(n,a),ha(n,this._lineWidth/2,!0,!0),i},r.prototype.dataToCalendarLayout=function(e,t){var i=this.dataToPoint(e,t);return{center:i,tl:[i[0]-this._sw/2,i[1]-this._sh/2],tr:[i[0]+this._sw/2,i[1]-this._sh/2],br:[i[0]+this._sw/2,i[1]+this._sh/2],bl:[i[0]-this._sw/2,i[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,i=Math.floor((e[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(i,t-1,a):this._getDateByWeeksAndDay(t,i-1,a)},r.prototype.convertToPixel=function(e,t,i){var a=iE(t);return a===this?a.dataToPoint(i):null},r.prototype.convertToLayout=function(e,t,i){var a=iE(t);return a===this?a.dataToLayout(i):null},r.prototype.convertFromPixel=function(e,t,i){var a=iE(t);return a===this?a.pointToData(i):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(V(e)&&e.length===1&&(e=e[0]),V(e))t=e;else{var i=e.toString();if(/^\d{4}$/.test(i)&&(t=[i+"-01-01",i+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(i)){var a=this.getDateInfo(i),n=a.date;n.setMonth(n.getMonth()+1);var o=this.getNextNDay(n,-1);t=[a.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(i)&&(t=[i,i])}if(!t)return e;var s=this._getRangeInfo(t);return s.start.time>s.end.time&&t.reverse(),t},r.prototype._getRangeInfo=function(e){var t=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],i;t[0].time>t[1].time&&(i=!0,t.reverse());var a=Math.floor(t[1].time/rE)-Math.floor(t[0].time/rE)+1,n=new Date(t[0].time),o=n.getDate(),s=t[1].date.getDate();n.setDate(o+a-1);var l=n.getDate();if(l!==s)for(var u=n.getTime()-t[1].time>0?1:-1;(l=n.getDate())!==s&&(n.getTime()-t[1].time)*u>0;)a-=u,n.setDate(l-u);var f=Math.floor((a+t[0].day+6)/7),p=i?-f+1:f-1;return i&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:a,weeks:f,nthWeek:p,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,i){var a=this._getRangeInfo(i);if(e>a.weeks||e===0&&t<a.fweek||e===a.weeks&&t>a.lweek)return null;var n=(e-1)*7-a.fweek+t,o=new Date(a.start.time);return o.setDate(+a.start.d+n),this.getDateInfo(o)},r.create=function(e,t){var i=[];return e.eachComponent("calendar",function(a){var n=new r(a,e,t);i.push(n),a.coordinateSystem=n}),e.eachComponent(function(a,n){Bn({targetModel:n,coordSysType:"calendar",coordSysProvider:ig})}),i},r.dimensions=["time","value"],r})();function iE(r){var e=r.calendarModel,t=r.seriesModel,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}var eH=mre;function aE(r){r.registerComponentModel(QG),r.registerComponentView($G),r.registerCoordinateSystem("calendar",eH)}var gn={level:1,leaf:2,nonLeaf:3},yn={none:0,all:1,body:2,corner:3};function nE(r,e,t){var i=e[we[t]].getCell(r);return!i&&_e(r)&&r<0&&(i=e[we[1-t]].getUnitLayoutInfo(t,Math.round(r))),i}function d_(r){var e=r||[];return e[0]=e[0]||[],e[1]=e[1]||[],e[0][0]=e[0][1]=e[1][0]=e[1][1]=NaN,e}function m_(r,e,t,i,a){tH(r[0],e,a,t,i,0),tH(r[1],e,a,t,i,1)}function tH(r,e,t,i,a,n){r[0]=1/0,r[1]=-1/0;var o=i[n],s=V(o)?o:[o],l=s.length,u=!!t;if(l>=1?(rH(r,e,s,u,a,n,0),l>1&&rH(r,e,s,u,a,n,l-1)):r[0]=r[1]=NaN,u){var f=-a[we[1-n]].getLocatorCount(n),p=a[we[n]].getLocatorCount(n)-1;t===yn.body?f=xe(0,f):t===yn.corner&&(p=Fe(-1,p)),p<f&&(f=p=NaN),Lt(r[0])&&(r[0]=f),Lt(r[1])&&(r[1]=p),r[0]=xe(Fe(r[0],p),f),r[1]=xe(Fe(r[1],p),f)}}function rH(r,e,t,i,a,n,o){var s=nE(t[o],a,n);if(!s){r[0]=r[1]=NaN;return}var l=s.id[we[n]],u=l,f=_re(s);f&&(u+=f.span[we[n]]-1),r[0]=Fe(r[0],l,u),r[1]=xe(r[1],l,u)}function Fh(r,e){return Lt(r[e][0])||Lt(r[e][1])}function oE(r,e,t,i){e=e||gre;for(var a=0;a<i;a++)e[a]=!1;for(;;){for(var n=!1,a=0;a<i;a++){var o=t[a];!e[a]&&o.cellMergeOwner&&yre(r,o.locatorRange)&&(e[a]=!0,n=!0)}if(!n)break}}var gre=[];function yre(r,e){return!iH(r[0],e[0])||!iH(r[1],e[1])?!1:(r[0][0]=Fe(r[0][0],e[0][0]),r[0][1]=xe(r[0][1],e[0][1]),r[1][0]=Fe(r[1][0],e[1][0]),r[1][1]=xe(r[1][1],e[1][1]),!0)}function iH(r,e){return r[1]>=e[0]&&r[0]<=e[1]}function sE(r,e){r.id.set(e[0][0],e[1][0]),r.span.set(e[0][1]-r.id.x+1,e[1][1]-r.id.y+1)}function aH(r,e){r[0][0]=e[0][0],r[0][1]=e[0][1],r[1][0]=e[1][0],r[1][1]=e[1][1]}function lE(r,e,t,i){var a=nE(e[i][0],t,i),n=nE(e[i][1],t,i);r[we[i]]=r[_t[i]]=NaN,a&&n&&(r[we[i]]=a.xy,r[_t[i]]=n.xy+n.wh-a.xy)}function uc(r,e,t,i){return r[we[e]]=t,r[we[1-e]]=i,r}function _re(r){return r&&(r.type===gn.leaf||r.type===gn.nonLeaf)?r:null}function qu(){return{x:NaN,y:NaN,width:NaN,height:NaN}}var uE=(function(){function r(e,t){this._cells=[],this._levels=[],this.dim=e,this.dimIdx=e==="x"?0:1,this._model=t,this._uniqueValueGen=xre(e);var i=t.get("data",!0),a=t.get("length",!0);if(i!=null&&!V(i)&&(i=[]),i)this._initByDimModelData(i);else if(a!=null){i=Array(a);for(var n=0;n<a;n++)i[n]=null;this._initByDimModelData(i)}else this._initBySeriesData()}return r.prototype._initByDimModelData=function(e){var t=this,i=t._cells,a=t._levels,n=[],o=0;t._leavesCount=s(e,0,0),l();return;function s(u,f,p){var c=0;return u&&T(u,function(v,h){var d=!1,m;H(v)?m={value:v}:te(v)?(m=v,v.value!=null&&!H(v.value)&&(d=!0,m={value:null})):(m={value:null},v!=null&&(d=!0));var g={type:gn.nonLeaf,ordinal:NaN,level:p,firstLeafLocator:f,id:new he,span:uc(new he,t.dimIdx,1,1),option:m,xy:NaN,wh:NaN,dim:t,rect:qu()};o++,(n[f]||(n[f]=[])).push(g),a[p]||(a[p]={type:gn.level,xy:NaN,wh:NaN,option:null,id:new he,dim:t});var y=s(m.children,f,p+1),_=Math.max(1,y);g.span[we[t.dimIdx]]=_,c+=_,f+=_}),c}function l(){for(var u=[];i.length<o;)for(var f=0;f<n.length;f++){var p=n[f].pop();if(p){p.ordinal=u.length;var c=p.option.value;u.push(c),i.push(p),t._uniqueValueGen.calcDupBase(c)}}t._uniqueValueGen.ensureValueUnique(u,i);var v=t._ordinalMeta=new Ds({categories:u,needCollect:!1,deduplication:!1});t._scale=new wu({ordinalMeta:v});for(var h=0;h<t._leavesCount;h++){var d=t._cells[h];d.type=gn.leaf,d.span[we[1-t.dimIdx]]=t._levels.length-d.level}t._initCellsId(),t._initLevelIdOptions()}},r.prototype._initBySeriesData=function(){var e=this;e._leavesCount=0,e._levels=[{type:gn.level,xy:NaN,wh:NaN,option:null,id:new he,dim:e}],e._initLevelIdOptions();var t=e._ordinalMeta=new Ds({needCollect:!0,deduplication:!0,onCollect:function(i,a){var n=e._cells[a]={type:gn.leaf,ordinal:a,level:0,firstLeafLocator:a,id:new he,span:uc(new he,e.dimIdx,1,1),option:{value:i+""},xy:NaN,wh:NaN,dim:e,rect:qu()};e._leavesCount++,e._setCellId(n)}});e._scale=new wu({ordinalMeta:t})},r.prototype._setCellId=function(e){var t=this._levels.length,i=this.dimIdx;uc(e.id,i,e.firstLeafLocator,e.level-t)},r.prototype._initCellsId=function(){var e=this._levels.length,t=this.dimIdx;T(this._cells,function(i){uc(i.id,t,i.firstLeafLocator,i.level-e)})},r.prototype._initLevelIdOptions=function(){var e=this._levels.length,t=this.dimIdx,i=this._model.get("levels",!0);i=V(i)?i:[],T(this._levels,function(a,n){uc(a.id,t,0,n-e),a.option=i[n]})},r.prototype.shouldShow=function(){return!!this._model.getShallow("show",!0)},r.prototype.resetLayoutIterator=function(e,t,i,a){if(e=e||new Ya,t===this.dimIdx){var n=this._leavesCount,o=i!=null?Math.max(0,i):0;a=a!=null?Math.min(a,n):n,e.reset(this._cells,o,o+a)}else{var n=this._levels.length,o=i!=null?Math.max(0,i+n):0;a=a!=null?Math.min(a,n):n,e.reset(this._levels,o,o+a)}return e},r.prototype.resetCellIterator=function(e){return(e||new Ya).reset(this._cells,0)},r.prototype.resetLevelIterator=function(e){return(e||new Ya).reset(this._levels,0)},r.prototype.getLayout=function(e,t,i){var a=this.getUnitLayoutInfo(t,i);e[we[t]]=a?a.xy:NaN,e[_t[t]]=a?a.wh:NaN},r.prototype.getUnitLayoutInfo=function(e,t){return e===this.dimIdx?t<this._leavesCount?this._cells[t]:void 0:this._levels[t+this._levels.length]},r.prototype.getCell=function(e){var t=this._scale.parse(e);return Lt(t)?void 0:this._cells[t]},r.prototype.getLocatorCount=function(e){return e===this.dimIdx?this._leavesCount:this._levels.length},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r})();function xre(r){var e=r.toUpperCase(),t=new RegExp("^"+e+"([0-9]+)$"),i=0;function a(s){var l;s!=null&&(l=s.match(t))&&(i=xe(i,+l[1]+1))}function n(){return""+e+i++}function o(s,l){for(var u=W(),f=0;f<s.length;f++){var p=s[f];(p==null||u.get(p)!=null)&&(s[f]=p=n(),l[f].option=$({value:p},l[f].option)),u.set(p,!0)}}return{calcDupBase:a,ensureValueUnique:o}}var pE=(function(){function r(e,t,i){this._model=t,this._dims=i,this._kind=e,this._cellMergeOwnerList=[]}return r.prototype._ensureCellMap=function(){var e=this,t=e._cellMap;return t||(t=e._cellMap=W(),i()),t;function i(){var n=[],o=e._model.getShallow("data");o&&!V(o)&&(o=null),T(o,function(h,d){if(!(!te(h)||!V(h.coord))){var m=d_([]),g=null;if(m_(m,g,h.coord,e._dims,h.coordClamp?yn[e._kind]:yn.none),!(Fh(m,0)||Fh(m,1))){var y=h&&h.mergeCells,_={id:new he,span:new he,locatorRange:m,option:h,cellMergeOwner:y};sE(_,m),n.push(_)}}});for(var s=[],l=0;l<n.length;l++){var u=n[l];if(u.cellMergeOwner){var f=u.locatorRange;oE(f,s,n,l);for(var p=0;p<l;p++)s[p]&&(n[p].cellMergeOwner=!1);if(f[0][0]!==u.id.x||f[1][0]!==u.id.y){u.cellMergeOwner=!1;var c=k({},u.option);c.coord=null;var v={id:new he,span:new he,locatorRange:f,option:c,cellMergeOwner:!0};sE(v,f),n.push(v)}}}T(n,function(h){var d=a(h.id.x,h.id.y);if(h.cellMergeOwner&&(d.cellMergeOwner=!0,d.span=h.span,d.locatorRange=h.locatorRange,d.spanRect=qu(),e._cellMergeOwnerList.push(d)),!(!h.cellMergeOwner&&!h.option))for(var m=0;m<h.span.y;m++)for(var g=0;g<h.span.x;g++){var y=a(h.id.x+g,h.id.y+m);y.option=h.option,h.cellMergeOwner&&(y.inSpanOf=d)}})}function a(n,o){var s=nH(n,o),l=t.get(s);return l||(l=t.set(s,{id:new he(n,o),option:null,inSpanOf:null,span:null,spanRect:null,locatorRange:null,cellMergeOwner:!1})),l}},r.prototype.getCell=function(e){return this._ensureCellMap().get(nH(e[0],e[1]))},r.prototype.travelExistingCells=function(e){this._ensureCellMap().each(e)},r.prototype.expandRangeByCellMerge=function(e){if(!Fh(e,0)&&!Fh(e,1)&&e[0][0]===e[0][1]&&e[1][0]===e[1][1]){fE[0]=e[0][0],fE[1]=e[1][0];var t=this.getCell(fE),i=t&&t.inSpanOf;if(i){aH(e,i.locatorRange);return}}var a=this._cellMergeOwnerList;oE(e,null,a,a.length)},r})();var fE=[];function nH(r,e){return r+"|"+e}var cE={show:!0,color:N.color.secondary,overflow:"break",lineOverflow:"truncate",padding:[2,3,2,3],distance:0};function vE(r){return{color:"none",borderWidth:1,borderColor:r?"none":N.color.borderTint}}var oH={show:!0,label:cE,itemStyle:vE(!1),silent:void 0,dividerLineStyle:{width:1,color:N.color.border}},Sre={label:cE,itemStyle:vE(!1),silent:void 0},bre={label:cE,itemStyle:vE(!0),silent:void 0},wre={z:-50,left:"10%",top:"10%",right:"10%",bottom:"10%",x:oH,y:oH,body:Sre,corner:bre,backgroundStyle:{color:"none",borderColor:N.color.axisLine,borderWidth:1},triggerEvent:!1},Tre=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){var t=this._dimModels={x:new sH(this.get("x",!0)||{}),y:new sH(this.get("y",!0)||{})};t.x.option.type=t.y.option.type="category";var i=t.x.dim=new uE("x",t.x),a=t.y.dim=new uE("y",t.y),n={x:i,y:a};this._body=new pE("body",new Ee(this.getShallow("body")),n),this._corner=new pE("corner",new Ee(this.getShallow("corner")),n)},e.prototype.getDimensionModel=function(t){return this._dimModels[t]},e.prototype.getBody=function(){return this._body},e.prototype.getCorner=function(){return this._corner},e.type="matrix",e.layoutMode="box",e.defaultOption=wre,e})(Se),sH=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getOrdinalMeta=function(){return this.dim.getOrdinalMeta()},e})(Ee);var lH=Tre;var g_=Math.round,Cre=0,Are=99,Ere={normal:25,special:100},Dre={normal:50,special:125},Mre=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i){this.group.removeAll();var a=this.group,n=t.coordinateSystem,o=n.getRect(),s=t.getDimensionModel("x"),l=t.getDimensionModel("y"),u=s.dim,f=l.dim;Ire(a,t,i),Lre(a,t,u,f,i);var p=t.getShallow("borderZ2",!0),c=Z(p,Are),v=c-1,h=t.getModel("backgroundStyle").getItemStyle(["borderWidth"]);h.lineWidth=0;var d=t.getModel("backgroundStyle").getItemStyle(["color","decal","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]);d.fill="none";var m=hE(o.clone(),h,Cre),g=hE(o.clone(),d,c);m.silent=!0,g.silent=!0,a.add(m),a.add(g);var y=u.getUnitLayoutInfo(0,0),_=f.getUnitLayoutInfo(1,0);y&&_&&(u.shouldShow()&&a.add(uH({x1:o.x,y1:_.xy,x2:o.x+o.width,y2:_.xy},s.getModel("dividerLineStyle").getLineStyle(),v)),f.shouldShow()&&a.add(uH({x1:y.xy,y1:o.y,x2:y.xy,y2:o.y+o.height},l.getModel("dividerLineStyle").getLineStyle(),v)))},e.type="matrix",e})(ze);function Ire(r,e,t){i(0),i(1);function i(a){var n=e.getDimensionModel(we[a]),o=n.dim;if(o.shouldShow())for(var s=n.getModel("itemStyle"),l=n.getModel("label"),u=e.getShallow("tooltip",!0),f=[],p=o.resetCellIterator();p.next();){var c=p.item,v={};oe.copy(v,c.rect),ki(f,c.id.x,c.id.y),fH(f,e,r,t,c.option,s,l,n,v,c.option.value,Dre,u,a===0?"x":"y")}}}function Lre(r,e,t,i,a){n("body",e.getBody(),t,i),t.shouldShow()&&i.shouldShow()&&n("corner",e.getCorner(),i,t);function n(o,s,l,u){var f=new Ee(e.getShallow(o,!0)),p=f.getModel("itemStyle"),c=f.getModel("label"),v=new Ya,h=new Ya,d=[],m=e.getShallow("tooltip",!0);for(u.resetLayoutIterator(h,1);h.next();)for(l.resetLayoutIterator(v,0);v.next();){var g=v.item,y=h.item;ki(d,g.id.x,y.id.y);var _=s.getCell(d);if(!(_&&_.inSpanOf&&_.inSpanOf!==_)){var x={};_&&_.span?oe.copy(x,_.spanRect):(g.dim.getLayout(x,0,d[0]),y.dim.getLayout(x,1,d[1]));var S=_?_.option:null;fH(d,e,r,a,S,p,c,f,x,S?S.value:null,Ere,m,o)}}}}function fH(r,e,t,i,a,n,o,s,l,u,f,p,c){var v;y_.option=a?a.itemStyle:null,y_.parentModel=n,fc.option=a,fc.parentModel=s;var h=Z(fc.getShallow("z2"),a&&a.itemStyle?f.special:f.normal),d=p&&p.show,m=hE(l,y_.getItemStyle(),h);t.add(m);var g=fc.get("cursor");g!=null&&m.attr("cursor",g);var y;if(u!=null){var _=u+"";ju.option=a?a.label:null,ju.parentModel=o,ju.ecModel=i;var x=ju.getShallow("formatter");if(x){var S={componentType:"matrix",componentIndex:e.componentIndex,name:_,value:u,coord:r.slice(),$vars:["name","value","coord"]};if(H(x))_=Jm(x,S);else if(J(x)){var b=x(S);b!=null&&(_=b+"")}}if(it(m,{normal:ju},{defaultText:_,autoOverflowArea:!0,layoutRect:ee(m.shape)}),y=m.getTextContent(),y){y.z2=h+1;var w=y.style;if(w&&w.overflow&&w.overflow!=="none"&&w.lineOverflow){var A={};oe.copy(A,l),ha(A,(((v=m.style)===null||v===void 0?void 0:v.lineWidth)||0)/2,!0,!0),m.updateInnerText(),y.getLocalTransform(__),zt(__,__),oe.applyTransform(A,A,__),y.setClipPath(new de({shape:A}))}}Nr({el:m,componentModel:e,itemName:_,itemTooltipOption:p,formatterParamsExtra:{xyLocator:r.slice()}})}var C=e.get("triggerEvent",!0);if(y){var E=ju.get("silent");E==null&&(E=!(C||d)),y.silent=E,y.ignoreHostSilent=!0}var D=fc.get("silent");if(D==null&&(D=!m.style||m.style.fill==="none"||!m.style.fill),m.silent=D,C&&m){var I={componentType:"matrix",componentIndex:e.componentIndex,matrixIndex:e.componentIndex,targetType:c,name:y&&y.style?y.style.text:void 0,value:u,coord:r.slice()};se(m).eventData=I}jd(fc),jd(y_),jd(ju)}var fc=new Ee,y_=new Ee,ju=new Ee,__=[];function hE(r,e,t){var i=e.lineWidth;if(i){var a=r.x+r.width,n=r.y+r.height;r.x=Xr(r.x,i,!0),r.y=Xr(r.y,i,!0),r.width=Xr(a,i,!0)-r.x,r.height=Xr(n,i,!0)-r.y}return new de({shape:r,style:e,z2:t})}function uH(r,e,t){var i=e.lineWidth;return i&&(g_(r.x1*2)===g_(r.x2*2)&&(r.x1=r.x2=Xr(r.x1,i,!0)),g_(r.y1*2)===g_(r.y2*2)&&(r.y1=r.y2=Xr(r.y1,i,!0))),new ut({shape:r,style:e,silent:!0,z2:t})}var pH=Mre;var Pre=(function(){function r(e,t,i){this.dimensions=r.dimensions,this.type="matrix",this._model=e;var a=this._dimModels={x:e.getDimensionModel("x"),y:e.getDimensionModel("y")};this._dims={x:a.x.dim,y:a.y.dim},this._resize(e,i)}return r.getDimensionsInfo=function(){return[{name:"x",type:"ordinal"},{name:"y",type:"ordinal"},{name:"value"}]},r.create=function(e,t){var i=[];return e.eachComponent("matrix",function(a){var n=new r(a,e,t);i.push(n),a.coordinateSystem=n}),e.eachComponent(function(a,n){Bn({targetModel:n,coordSysType:"matrix",coordSysProvider:ig})}),i},r.prototype.getRect=function(){return this._rect},r.prototype._resize=function(e,t){var i=this._dims,a=this._dimModels,n=this._rect=He(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});cH(a,i,n,0),cH(a,i,n,1),vH(0,i),vH(1,i),hH(this._model.getBody(),i),hH(this._model.getCorner(),i)},r.prototype.dataToPoint=function(e,t,i){return i=i||[],this.dataToLayout(e,t,Gh),i[0]=Gh.rect.x+Gh.rect.width/2,i[1]=Gh.rect.y+Gh.rect.height/2,i},r.prototype.dataToLayout=function(e,t,i){var a=this._dims;i=i||{};var n=i.rect=i.rect||{};n.x=n.y=n.width=n.height=NaN;var o=i.matrixXYLocatorRange=d_(i.matrixXYLocatorRange);return V(e)&&(m_(o,null,e,a,Z(t&&t.clamp,yn.none)),(!t||!t.ignoreMergeCells)&&((!t||t.clamp!==yn.corner)&&this._model.getBody().expandRangeByCellMerge(o),(!t||t.clamp!==yn.body)&&this._model.getCorner().expandRangeByCellMerge(o)),lE(n,o,a,0),lE(n,o,a,1)),i},r.prototype.pointToData=function(e,t,i){var a=this._dims;return dH(ao,0,a,e,t&&t.clamp),dH(ao,1,a,e,t&&t.clamp),i=i||[],i[0]=i[1]=NaN,ao.y===Er.inCorner&&ao.x===Er.inBody?mH(ao,i,0,a):ao.x===Er.inCorner&&ao.y===Er.inBody?mH(ao,i,1,a):(gH(ao,i,0,a),gH(ao,i,1,a)),i},r.prototype.convertToPixel=function(e,t,i,a){var n=mE(t);return n===this?n.dataToPoint(i,a):void 0},r.prototype.convertToLayout=function(e,t,i,a){var n=mE(t);return n===this?n.dataToLayout(i,a):void 0},r.prototype.convertFromPixel=function(e,t,i,a){var n=mE(t);return n===this?n.pointToData(i,a):void 0},r.prototype.containPoint=function(e){return this._rect.contain(e[0],e[1])},r.dimensions=["x","y","value"],r})(),Gh={rect:qu()},x_=new Ya,dE=new Ya;function cH(r,e,t,i){for(var a=1-i,n=e[we[i]],o=e[we[a]],s=o.shouldShow(),l=n.resetCellIterator();l.next();)l.item.wh=l.item.xy=NaN;for(var u=o.resetLayoutIterator(null,i);u.next();)u.item.wh=u.item.xy=NaN;for(var f=t[_t[i]],p=n.getLocatorCount(i)+o.getLocatorCount(i),c=new Ee,v=o.resetLevelIterator();v.next();)c.option=v.item.option,c.parentModel=r[we[a]],m(v.item,s?c.get("levelSize"):0);for(var h=new Ee,d=n.resetCellIterator();d.next();)d.item.type===gn.leaf&&(h.option=d.item.option,h.parentModel=void 0,m(d.item,h.get("size")));function m(w,A){var C=Rre(A,i,t);Lt(C)||(w.wh=gE(C,f),f=gE(f-w.wh),p--)}var g=p?f/p:0,y=!p&&f>=1,_=t[we[i]],x=n.getLocatorCount(i)-1,S=new Ya;for(o.resetLayoutIterator(S,i);S.next();)b(S.item);for(n.resetLayoutIterator(S,i);S.next();)b(S.item);function b(w){Lt(w.wh)&&(w.wh=g),w.xy=_,w.id[we[i]]===x&&!y&&(w.wh=t[we[i]]+t[_t[i]]-w.xy),_+=w.wh}}function vH(r,e){for(var t=e[we[r]].resetCellIterator();t.next();){var i=t.item;S_(i.rect,r,i.id,i.span,e),S_(i.rect,1-r,i.id,i.span,e),i.type===gn.nonLeaf&&(i.xy=i.rect[we[r]],i.wh=i.rect[_t[r]])}}function hH(r,e){r.travelExistingCells(function(t){var i=t.span;if(i){var a=t.spanRect,n=t.id;S_(a,0,n,i,e),S_(a,1,n,i,e)}})}function S_(r,e,t,i,a){r[_t[e]]=0;var n=t[we[e]],o=n<0?a[we[1-e]]:a[we[e]],s=o.getUnitLayoutInfo(e,t[we[e]]);if(r[we[e]]=s.xy,r[_t[e]]=s.wh,i[we[e]]>1){var l=o.getUnitLayoutInfo(e,t[we[e]]+i[we[e]]-1);r[_t[e]]=l.xy+l.wh-s.xy}}function Rre(r,e,t){var i=xf(r,t[_t[e]]);return gE(i,t[_t[e]])}function gE(r,e){return Math.max(Math.min(r,Z(e,1/0)),0)}function mE(r){var e=r.matrixModel,t=r.seriesModel,i=e?e.coordinateSystem:t?t.coordinateSystem:null;return i}var Er={inBody:1,inCorner:2,outside:3},ao={x:null,y:null,point:[]};function dH(r,e,t,i,a){var n=t[we[e]],o=t[we[1-e]],s=n.getUnitLayoutInfo(e,n.getLocatorCount(e)-1),l=n.getUnitLayoutInfo(e,0),u=o.getUnitLayoutInfo(e,-o.getLocatorCount(e)),f=o.shouldShow()?o.getUnitLayoutInfo(e,-1):null,p=r.point[e]=i[e];if(!l&&!f){r[we[e]]=Er.outside;return}if(a===yn.body){l?(r[we[e]]=Er.inBody,p=Fe(s.xy+s.wh,xe(l.xy,p)),r.point[e]=p):r[we[e]]=Er.outside;return}else if(a===yn.corner){f?(r[we[e]]=Er.inCorner,p=Fe(f.xy+f.wh,xe(u.xy,p)),r.point[e]=p):r[we[e]]=Er.outside;return}var c=l?l.xy:f?f.xy+f.wh:NaN,v=u?u.xy:c,h=s?s.xy+s.wh:c;if(p<v){if(!a){r[we[e]]=Er.outside;return}p=v}else if(p>h){if(!a){r[we[e]]=Er.outside;return}p=h}r.point[e]=p,r[we[e]]=c<=p&&p<=h?Er.inBody:v<=p&&p<=c?Er.inCorner:Er.outside}function mH(r,e,t,i){var a=1-t;if(r[we[t]]!==Er.outside)for(i[we[t]].resetCellIterator(dE);dE.next();){var n=dE.item;if(yH(r.point[t],n.rect,t)&&yH(r.point[a],n.rect,a)){e[t]=n.ordinal,e[a]=n.id[we[a]];return}}}function gH(r,e,t,i){if(r[we[t]]!==Er.outside){var a=r[we[t]]===Er.inCorner?i[we[1-t]]:i[we[t]];for(a.resetLayoutIterator(x_,t);x_.next();)if(Ore(r.point[t],x_.item)){e[t]=x_.item.id[we[t]];return}}}function Ore(r,e){return e.xy<=r&&r<=e.xy+e.wh}function yH(r,e,t){return e[we[t]]<=r&&r<=e[we[t]]+e[_t[t]]}var _H=Pre;function yE(r){r.registerComponentModel(lH),r.registerComponentView(pH),r.registerCoordinateSystem("matrix",_H)}function Nre(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var i=e.parentOption;i?e.parentId=i.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function xH(r,e){var t;return T(e,function(i){r[i]!=null&&r[i]!=="auto"&&(t=!0)}),t}function kre(r,e,t){var i=k({},t),a=r[e],n=t.$action||"merge";if(n==="merge")if(a){if(0)var o;ve(a,i,!0),wr(a,i,{ignoreSize:!0}),Fb(t,a),b_(t,a),b_(t,a,"shape"),b_(t,a,"style"),b_(t,a,"extra"),t.clipPath=a.clipPath}else r[e]=i;else n==="replace"?r[e]=i:n==="remove"&&a&&(r[e]=null)}var SH=["transition","enterFrom","leaveTo"],zre=SH.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function b_(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var i=t?SH:zre,a=0;a<i.length;a++){var n=i[a];r[n]==null&&e[n]!=null&&(r[n]=e[n])}}function Vre(r,e){if(r&&(r.hv=e.hv=[xH(e,["left","right"]),xH(e,["top","bottom"])],r.type==="group")){var t=r,i=e;t.width==null&&(t.width=i.width=0),t.height==null&&(t.height=i.height=0)}}var bH=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.mergeOption=function(t,i){var a=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,i),this.option.elements=a},e.prototype.optionUpdated=function(t,i){var a=this.option,n=(i?a:t).elements,o=a.elements=i?[]:a.elements,s=[];this._flatten(n,s,null);var l=Kd(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];T(l,function(f,p){var c=f.newOption;c&&(u.push(c),Nre(f,c),kre(o,p,c),Vre(o[p],c))},this),a.elements=Ie(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(t,i,a){T(t,function(n){if(n){a&&(n.parentOption=a),i.push(n);var o=n.children;o&&o.length&&this._flatten(o,i,n),delete n.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e})(Se);var wH={path:null,compoundPath:null,group:Q,image:lt,text:be},Oa=ne(),AH=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this._elMap=W()},e.prototype.render=function(t,i,a){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,a)},e.prototype._updateElements=function(t){var i=t.useElOptionsToUpdate();if(i){var a=this._elMap,n=this.group,o=t.get("z"),s=t.get("zlevel");T(i,function(l){var u=St(l.id,null),f=u!=null?a.get(u):null,p=St(l.parentId,null),c=p!=null?a.get(p):n,v=l.type,h=l.style;v==="text"&&h&&l.hv&&l.hv[1]&&(h.textVerticalAlign=h.textBaseline=h.verticalAlign=h.align=null);var d=l.textContent,m=l.textConfig;if(h&&Fy(h,v,!!m,!!d)){var g=Gy(h,v,!0);!m&&g.textConfig&&(m=l.textConfig=g.textConfig),!d&&g.textContent&&(d=g.textContent)}var y=Ure(l),_=l.$action||"merge",x=_==="merge",S=_==="replace";if(x){var b=!f,w=f;b?w=TH(u,c,l.type,a):(w&&(Oa(w).isNew=!1),a_(w)),w&&(tc(w,y,t,{isInit:b}),CH(w,l,o,s))}else if(S){w_(f,l,a,t);var A=TH(u,c,l.type,a);A&&(tc(A,y,t,{isInit:!0}),CH(A,l,o,s))}else _==="remove"&&(EA(f,l),w_(f,l,a,t));var C=a.get(u);if(C&&d)if(x){var E=C.getTextContent();E?E.attr(d):C.setTextContent(new be(d))}else S&&C.setTextContent(new be(d));if(C){var D=l.clipPath;if(D){var I=D.type,M=void 0,b=!1;if(x){var P=C.getClipPath();b=!P||Oa(P).type!==I,M=b?_E(I):P}else S&&(b=!0,M=_E(I));C.setClipPath(M),tc(M,D,t,{isInit:b}),ic(M,D.keyframeAnimation,t)}var O=Oa(C);C.setTextConfig(m),O.option=l,Bre(C,t,l),Nr({el:C,componentModel:t,itemName:C.name,itemTooltipOption:l.tooltip}),ic(C,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,i){for(var a=t.option.elements,n=this.group,o=this._elMap,s=i.getWidth(),l=i.getHeight(),u=["x","y"],f=0;f<a.length;f++){var p=a[f],c=St(p.id,null),v=c!=null?o.get(c):null;if(!(!v||!v.isGroup)){var h=v.parent,d=h===n,m=Oa(v),g=Oa(h);m.width=j(m.option.width,d?s:g.width)||0,m.height=j(m.option.height,d?l:g.height)||0}}for(var f=a.length-1;f>=0;f--){var p=a[f],c=St(p.id,null),v=c!=null?o.get(c):null;if(v){var h=v.parent,g=Oa(h),y=h===n?{width:s,height:l}:{width:g.width,height:g.height},_={},x=_s(v,p,y,null,{hv:p.hv,boundingMode:p.bounding},_);if(!Oa(v).isNew&&x){for(var S=p.transition,b={},w=0;w<u.length;w++){var A=u[w],C=_[A];S&&(el(S)||le(S,A)>=0)?b[A]=C:v[A]=C}Ae(v,b,t,0)}else v.attr(_)}}},e.prototype._clear=function(){var t=this,i=this._elMap;i.each(function(a){w_(a,Oa(a).option,i,t._lastGraphicModel)}),this._elMap=W()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e})(ze);function _E(r){var e=ae(wH,r)?wH[r]:ys(r),t=new e({});return Oa(t).type=r,t}function TH(r,e,t,i){var a=_E(t);return e.add(a),i.set(r,a),Oa(a).id=r,Oa(a).isNew=!0,a}function w_(r,e,t,i){var a=r&&r.parent;a&&(r.type==="group"&&r.traverse(function(n){w_(n,e,t,i)}),rc(r,e,i),t.removeKey(Oa(r).id))}function CH(r,e,t,i){r.isGroup||T([["cursor",Ut.prototype.cursor],["zlevel",i||0],["z",t||0],["z2",0]],function(a){var n=a[0];ae(e,n)?r[n]=Z(e[n],a[1]):r[n]==null&&(r[n]=a[1])}),T(ye(e),function(a){if(a.indexOf("on")===0){var n=e[a];r[a]=J(n)?n:null}}),ae(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function Ure(r){return r=k({},r),T(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Ub),function(e){delete r[e]}),r}function Bre(r,e,t){var i=se(r).eventData;!r.silent&&!r.ignore&&!i&&(i=se(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),i&&(i.info=t.info)}function xE(r){r.registerComponentModel(bH),r.registerComponentView(AH),r.registerPreprocessor(function(e){var t=e.graphic;V(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var SE=["x","y","radius","angle","single"],Fre=ne(),Gre=["cartesian2d","polar","singleAxis"];function EH(r){var e=r.get("coordinateSystem");return le(Gre,e)>=0}function Na(r){return r+"Axis"}function DH(r,e){var t=W(),i=[],a=W();r.eachComponent({mainType:"dataZoom",query:e},function(f){a.get(f.uid)||s(f)});var n;do n=!1,r.eachComponent("dataZoom",o);while(n);function o(f){!a.get(f.uid)&&l(f)&&(s(f),n=!0)}function s(f){a.set(f.uid,!0),i.push(f),u(f)}function l(f){var p=!1;return f.eachTargetAxis(function(c,v){var h=t.get(c);h&&h[v]&&(p=!0)}),p}function u(f){f.eachTargetAxis(function(p,c){(t.get(p)||t.set(p,[]))[c]=!0})}return i}function T_(r){var e=r.ecModel,t={infoList:[],infoMap:W()};return r.eachTargetAxis(function(i,a){var n=e.getComponent(Na(i),a);if(n){var o=n.getCoordSysModel();if(o){var s=o.uid,l=t.infoMap.get(s);l||(l={model:o,axisModels:[]},t.infoList.push(l),t.infoMap.set(s,l)),l.axisModels.push(n)}}}),t}function MH(r){var e=Fre(Vg(r));return e.axisProxyMap||(e.axisProxyMap=W())}function pc(r){if(r)return MH(r.ecModel).get(r.uid)}function IH(r,e){MH(r.ecModel).set(r.uid,e)}function C_(r,e){var t=e.getAxisModel().axis.__alignTo;return t&&r.getAxisProxy(t.dim,t.model.componentIndex)?pc(t.model):null}var bE=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},r})(),Hre=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}return e.prototype.init=function(t,i,a){var n=LH(t);this.settledOption=n,this.mergeDefaultAndTheme(t,a),this._doInit(n)},e.prototype.mergeOption=function(t){var i=LH(t);ve(this.option,t,!0),ve(this.settledOption,i,!0),this._doInit(i)},e.prototype._doInit=function(t){var i=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var a=this.settledOption;T([["start","startValue"],["end","endValue"]],function(n,o){this._rangePropMode[o]==="value"&&(i[n[0]]=a[n[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),i=this._targetAxisInfoMap=W(),a=this._fillSpecifiedTargetAxis(i);a?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(i,this._orient)),this._noTarget=!0,i.each(function(n){n.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var i=!1;return T(SE,function(a){var n=this.getReferringComponents(Na(a),pI);if(n.specified){i=!0;var o=new bE;T(n.models,function(s){o.add(s.componentIndex)}),t.set(a,o)}},this),i},e.prototype._fillAutoTargetAxisByOrient=function(t,i){var a=this.ecModel,n=!0;if(n){var o=i==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(n){var s=a.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===i}});l(s,"single")}function l(u,f){var p=u[0];if(p){var c=new bE;if(c.add(p.componentIndex),t.set(f,c),n=!1,f==="x"||f==="y"){var v=p.getReferringComponents("grid",Ke).models[0];v&&T(u,function(h){p.componentIndex!==h.componentIndex&&v===h.getReferringComponents("grid",Ke).models[0]&&c.add(h.componentIndex)})}}}n&&T(SE,function(u){if(n){var f=a.findComponents({mainType:Na(u),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var p=new bE;p.add(f[0].componentIndex),t.set(u,p),n=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(i){!t&&(t=i)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var i=this.ecModel.option;this.option.throttle=i.animation&&i.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var i=this._rangePropMode,a=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(n,o){var s=t[n[0]]!=null,l=t[n[1]]!=null;s&&!l?i[o]="percent":!s&&l?i[o]="value":a?i[o]=a[o]:s&&(i[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(i,a){t==null&&(t=this.ecModel.getComponent(Na(i),a))},this),t},e.prototype.eachTargetAxis=function(t,i){this._targetAxisInfoMap.each(function(a,n){T(a.indexList,function(o){t.call(i,n,o)})})},e.prototype.getAxisProxy=function(t,i){return pc(this.getAxisModel(t,i))},e.prototype.getAxisModel=function(t,i){var a=this._targetAxisInfoMap.get(t);if(a&&a.indexMap[i])return this.ecModel.getComponent(Na(t),i)},e.prototype.setRawRange=function(t){var i=this.option,a=this.settledOption;T([["start","startValue"],["end","endValue"]],function(n){(t[n[0]]!=null||t[n[1]]!=null)&&(i[n[0]]=a[n[0]]=t[n[0]],i[n[1]]=a[n[1]]=t[n[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var i=this.option;T(["start","startValue","end","endValue"],function(a){i[a]=t[a]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,i){if(t==null&&i==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getWindow().value}else return this.getAxisProxy(t,i).getWindow().value},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return pc(t);for(var i,a=this._targetAxisInfoMap.keys(),n=0;n<a.length;n++)for(var o=a[n],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;i||(i=u)}return i},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e})(Se);function LH(r){var e={};return T(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}var il=Hre;var Yre=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(il),PH=Yre;var Wre=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a,n){this.dataZoomModel=t,this.ecModel=i,this.api=a},e.type="dataZoom",e})(ze),cc=Wre;var Xre=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.select",e})(cc),RH=Xre;var Zre=(function(){function r(e,t,i,a){this._dimName=e,this._axisIndex=t,this.ecModel=a,this._dataZoomModel=i}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getWindow=function(){return ee(this._window)},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(EH(t)){var i=Na(this._dimName),a=t.getReferringComponents(i,Ke).models[0];a&&this._axisIndex===a.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return ee(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._extent,i=this.getAxisModel().axis,a=i.scale,n=this._dataZoomModel,o=n.getRangePropMode(),s=[0,100],l=[],u=[],f,p=[!1,!1];T(["start","end"],function(_,x){var S=e[_],b=e[_+"Value"];o[x]==="percent"?(S==null&&(S=s[x]),b=Ue(S,s,t),p[x]=!0):(f=!0,b==null?b=t[x]:(b=a.parse(b),a.sanitize&&(b=a.sanitize(b,t))),S=Ue(b,t,s)),u[x]=b==null||isNaN(b)?t[x]:b,l[x]=S==null||isNaN(S)?s[x]:S}),dt(u),dt(l);var c=this._minMaxSpan;f?v(u,l,t,s,!1):v(l,u,s,t,!0);function v(_,x,S,b,w){var A=w?"Span":"ValueSpan";oi(0,_,S,"all",c["min"+A],c["max"+A]);for(var C=0;C<2;C++)x[C]=Ue(_[C],S,b,!0),w&&(x[C]=x[C],p[C]=!0);Df(x)}var h=At(a)||Hn(a),d=i.getExtent(),m=ct(d[1]-d[0]),g=h?0:Sf(u,m,.5);T([[0,sa],[1,mr]],function(_){var x=_[0],S=_[1];!p[x]||!isFinite(g)||(u[x]=Ne(u[x],g),u[x]=Fe(t[1],xe(t[0],u[x])),l[x]===s[x]&&(u[x]=t[x],h&&(u[x]=S(u[x]))))}),Df(u);var y=[Ue(u[0],t,s,!0),Ue(u[1],t,s,!0)];return Df(y),{value:u,percent:l,percentInverted:y,valuePrecision:g}},r.prototype.reset=function(e,t){if(this.hostedBy(e)){var i=this.getAxisModel().axis;Zi(i,HN);var a=i.scale.rawExtentInfo;this._extent=a.makeNoZoom(),this._updateMinMaxSpan();var n=e.settledOption;t&&(n=$({start:t[0],end:t[1]},n));var o=this._window=this.calculateDataWindow(n),s=o.percent,l=o.value;s[0]!==0&&a.setZoomMM(0,l[0]),s[1]!==100&&a.setZoomMM(1,l[1])}},r.prototype.filterData=function(e,t){if(!this.hostedBy(e))return;var i=this._dimName,a=this.getTargetSeriesModels(),n=e.get("filterMode"),o=this._window.value;if(n==="none")return;T(a,function(l){var u=l.getData(),f=u.mapDimensionsAll(i);if(f.length){if(n==="weakFilter"){var p=u.getStore(),c=U(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var h,d,m,g=0;g<f.length;g++){var y=p.get(c[g],v),_=!isNaN(y),x=y<o[0],S=y>o[1];if(_&&!x&&!S)return!0;_&&(m=!0),x&&(h=!0),S&&(d=!0)}return m&&h&&d})}else T(f,function(v){if(n==="empty")l.setData(u=u.map(v,function(d){return s(d)?d:NaN}));else{var h={};h[v]=o,u.selectRange(h)}});T(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,i=this._extent;T(["min","max"],function(a){var n=t.get(a+"Span"),o=t.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?n=Ue(i[0]+o,i,[0,100],!0):n!=null&&(o=Ue(n,[0,100],i,!0)-i[0]),e[a+"Span"]=n,e[a+"ValueSpan"]=o},this)},r})(),OH=Zre;var Kre={dirtyOnOverallProgress:!0,getTargetSeries:function(r){function e(a){r.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){var l=r.getComponent(Na(o),s);a(o,s,l,n)})})}var t=[];e(function(a,n,o,s){if(!pc(o)){var l=new OH(a,n,s,r);t.push(l),IH(o,l)}});var i=W();return T(t,function(a){T(a.getTargetSeriesModels(),function(n){i.set(n.uid,n)})}),i},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){var i=[];t.eachTargetAxis(function(a,n){var o=t.getAxisProxy(a,n),s=C_(t,o);s?i.push([o,s]):o.reset(t,null)}),T(i,function(a){a[0].reset(t,a[1].getWindow().percentInverted)}),t.eachTargetAxis(function(a,n){t.getAxisProxy(a,n).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var i=t.findRepresentativeAxisProxy();if(i){var a=i.getWindow(),n=a.percent,o=a.value;t.setCalculatedRange({start:n[0],end:n[1],startValue:o[0],endValue:o[1]})}})}},NH=Kre;function wE(r){r.registerAction("dataZoom",function(e,t){var i=DH(t,e);T(i,function(a){a.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var qre=ua();function Ju(r){qre(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,NH),wE(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function kH(r){r.registerComponentModel(PH),r.registerComponentView(RH),Ju(r)}var Dr=(function(){function r(){}return r})();var zH={};function al(r,e){zH[r]=e}function A_(r){return zH[r]}var Jre=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i,a){var n=a.getTheme().get("toolbox"),o=n?n.feature:null;o&&(this._themeFeatureOption=k({},o),n.feature={}),r.prototype.init.call(this,t,i,a),o&&(n.feature=o)},e.prototype.optionUpdated=function(){T(this.option.feature,function(t,i){var a=this._themeFeatureOption,n=A_(i);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(this.ecModel)),a&&a[i]&&(ve(t,a[i]),a[i]=null),ve(t,n.defaultOption))},this)},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:N.color.border,borderRadius:0,borderWidth:0,padding:N.size.m,itemSize:15,itemGap:N.size.s,showTitle:!0,iconStyle:{borderColor:N.color.accent50,color:"none"},emphasis:{iconStyle:{borderColor:N.color.accent70}},tooltip:{show:!1,position:"bottom"}},e})(Se),VH=Jre;function E_(r,e){var t=ma(e.get("padding")),i=e.getItemStyle(["color","opacity"]);i.fill=e.get("backgroundColor");var a=new de({shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1});return a}var $re=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a,n){var o=this.group;if(o.removeAll(),!t.get("show"))return;var s=+t.get("itemSize"),l=t.get("orient")==="vertical",u=t.get("feature")||{},f=this._features||(this._features=W()),p=[];T(u,function(y,_){p.push(_)}),new Tr(this._featureNames||[],p).add(c).update(c).remove(me(c,null)).execute(),this._featureNames=Ie(p,function(y){return f.hasKey(y)});function c(y,_){var x=y!=null&&_==null,S=y!=null&&_!=null,b=y==null,w=x||S?p[y]:p[_],A=u[w],C=x||S?new Ee(A,t,i):null,E=C&&C.get("show"),D;if(x){if(!E)return;if(eie(w))D={onclick:C.option.onclick,featureName:w};else{var I=A_(w);if(!I)return;D=new I}f.set(w,D)}else D=f.get(w);if(b||!E){UH(D)&&D.dispose&&D.dispose(i,a),f.removeKey(w);return}n&&n.newTitle!=null&&n.featureName===w&&(A.title=n.newTitle),x&&(D.uid=Ei("toolbox-feature")),D.model=C,D.ecModel=i,D.api=a,v(C,D,w),C.setIconStatus=function(M,P){var O=this.option,R=this.iconPaths;O.iconStatus=O.iconStatus||{},O.iconStatus[M]=P,R[M]&&(P==="emphasis"?Pr:Rr)(R[M])},UH(D)&&D.render&&D.render(C,i,a,n)}function v(y,_,x){var S=y.getModel("iconStyle"),b=y.getModel(["emphasis","iconStyle"]),w=_ instanceof Dr&&_.getIcons?_.getIcons():y.get("icon"),A=y.get("title")||{},C,E;H(w)?(C={},C[x]=w):C=w,H(A)?(E={},E[x]=A):E=A;var D=y.iconPaths={};T(C,function(I,M){var P=ja(I,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(S.getItemStyle());var O=P.ensureState("emphasis");O.style=b.getItemStyle();var R=new be({style:{text:E[M],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:Ff({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},i)},ignore:!0});P.setTextContent(R),Nr({el:P,componentModel:t,itemName:M,formatterParamsExtra:{title:E[M]}}),P.__title=E[M],P.on("mouseover",function(){var z=b.getItemStyle(),B=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";R.setStyle({fill:b.get("textFill")||z.fill||z.stroke||N.color.neutral99,backgroundColor:b.get("textBackgroundColor")}),P.setTextConfig({position:b.get("textPosition")||B}),R.ignore=!t.get("showTitle"),a.enterEmphasis(this)}).on("mouseout",function(){y.get(["iconStatus",M])!=="emphasis"&&a.leaveEmphasis(this),R.hide()}),(y.get(["iconStatus",M])==="emphasis"?Pr:Rr)(P),o.add(P),P.on("click",X(_.onclick,_,i,a,M)),D[M]=P})}var h=Qe(t,a).refContainer,d=t.getBoxLayoutParams(),m=t.get("padding"),g=He(d,h,m);Qa(t.get("orient"),o,t.get("itemGap"),g.width,g.height),_s(o,d,h,m),o.add(E_(o.getBoundingRect(),t)),l||o.eachChild(function(y){var _=y.__title,x=y.ensureState("emphasis"),S=x.textConfig||(x.textConfig={}),b=y.getTextContent(),w=b&&b.ensureState("emphasis");if(w&&!J(w)&&_){var A=w.style||(w.style={}),C=as(_,be.makeFont(A)),E=y.x+o.x,D=y.y+o.y+s,I=!1;D+C.height>a.getHeight()&&(S.position="top",I=!0);var M=I?-5-C.height:s+10;E+C.width/2>a.getWidth()?(S.position=["100%",M],A.align="right"):E-C.width/2<0&&(S.position=[0,M],A.align="left")}})},e.prototype.updateView=function(t,i,a,n){T(this._features,function(o){o&&o instanceof Dr&&o.updateView&&o.updateView(o.model,i,a,n)})},e.prototype.dispose=function(t,i){T(this._features,function(a){a&&a instanceof Dr&&a.dispose&&a.dispose(t,i)})},e.type="toolbox",e})(ze);function eie(r){return r.indexOf("my")===0}function UH(r){return r instanceof Dr}var BH=$re;var tie=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){var a=this.model,n=a.get("name")||t.get("title.0.text")||"echarts",o=i.getZr().painter.getType()==="svg",s=o?"svg":a.get("type",!0)||"png",l=i.getConnectedDataURL({type:s,backgroundColor:a.get("backgroundColor",!0)||t.get("backgroundColor")||N.color.neutral00,connectedBackgroundColor:a.get("connectedBackgroundColor"),excludeComponents:a.get("excludeComponents"),pixelRatio:a.get("pixelRatio")}),u=Re.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=n+"."+s,f.target="_blank",f.href=l;var p=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(p)}else if(window.navigator.msSaveOrOpenBlob||o){var c=l.split(","),v=c[0].indexOf("base64")>-1,h=o?decodeURIComponent(c[1]):c[1];v&&(h=window.atob(h));var d=n+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=h.length,g=new Uint8Array(m);m--;)g[m]=h.charCodeAt(m);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var x=_.contentWindow,S=x.document;S.open("image/svg+xml","replace"),S.write(h),S.close(),x.focus(),S.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var b=a.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',A=window.open();A.document.write(w),A.document.title=n}},e.getDefaultOption=function(t){var i={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:N.color.neutral00,name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return i},e})(Dr),FH=tie;var GH="__ec_magicType_stack__";var rie=[["line","bar"],["stack"]],iie=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,i=t.get("icon"),a={};return T(t.get("type"),function(n){i[n]&&(a[n]=i[n])}),a},e.getDefaultOption=function(t){var i={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return i},e.prototype.onclick=function(t,i,a){var n=this.model,o=n.get(["seriesIndex",a]);if(HH[a]){var s={series:[]},l=function(p){var c=p.subType,v=p.id,h=HH[a](c,v,p,n);h&&($(h,p.option),s.series.push(h));var d=p.coordinateSystem;if(d&&d.type==="cartesian2d"&&(a==="line"||a==="bar")){var m=d.getAxesByScale("ordinal")[0];if(m){var g=m.dim,y=g+"Axis",_=p.getReferringComponents(y,Ke).models[0],x=_.componentIndex;s[y]=s[y]||[];for(var S=0;S<=x;S++)s[y][x]=s[y][x]||{};s[y][x].boundaryGap=a==="bar"}}};T(rie,function(p){le(p,a)>=0&&T(p,function(c){n.setIconStatus(c,"normal")})}),n.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=a;a==="stack"&&(u=ve({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),n.get(["iconStatus",a])!=="emphasis"&&(f="tiled")),i.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e})(Dr),HH={line:function(r,e,t,i){if(r==="bar")return ve({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(r,e,t,i){if(r==="line")return ve({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(r,e,t,i){var a=t.get("stack")===GH;if(r==="line"||r==="bar")return i.setIconStatus("stack",a?"normal":"emphasis"),ve({id:e,stack:a?"":GH},i.get(["option","stack"])||{},!0)}};Jr({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});var YH=iie;var M_=new Array(60).join("-"),vc=" ";function aie(r){var e={},t=[],i=[];return r.eachRawSeries(function(a){var n=a.coordinateSystem;if(n&&(n.type==="cartesian2d"||n.type==="polar")){var o=n.getBaseAxis();if(o.type==="category"){var s=Mk(o);e[s]||(e[s]={categoryAxis:o,valueAxis:n.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(a)}else t.push(a)}else t.push(a)}),{seriesGroupByCategoryAxis:e,other:t,meta:i}}function nie(r){var e=[];return T(r,function(t,i){var a=t.categoryAxis,n=t.valueAxis,o=n.dim,s=[" "].concat(U(t.series,function(v){return v.name})),l=[a.model.getCategories()];T(t.series,function(v){var h=v.getRawData();l.push(v.getRawData().mapArray(h.mapDimension(o),function(d){return d}))});for(var u=[s.join(vc)],f=0;f<l[0].length;f++){for(var p=[],c=0;c<l.length;c++)p.push(l[c][f]);u.push(p.join(vc))}e.push(u.join(`
20
+ `))}),e.join(`
21
+
22
+ `+M_+`
23
+
24
+ `)}function oie(r){return U(r,function(e){var t=e.getRawData(),i=[e.name],a=[];return t.each(t.dimensions,function(){for(var n=arguments.length,o=arguments[n-1],s=t.getName(o),l=0;l<n-1;l++)a[l]=arguments[l];i.push((s?s+vc:"")+a.join(vc))}),i.join(`
25
+ `)}).join(`
26
+
27
+ `+M_+`
28
+
29
+ `)}function sie(r){var e=aie(r);return{value:Ie([nie(e.seriesGroupByCategoryAxis),oie(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
30
+
31
+ `+M_+`
32
+
33
+ `),meta:e.meta}}function D_(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function lie(r){var e=r.slice(0,r.indexOf(`
34
+ `));if(e.indexOf(vc)>=0)return!0}var TE=new RegExp("["+vc+"]+","g");function uie(r){for(var e=r.split(/\n+/g),t=D_(e.shift()).split(TE),i=[],a=U(t,function(l){return{name:l,data:[]}}),n=0;n<e.length;n++){var o=D_(e[n]).split(TE);i.push(o.shift());for(var s=0;s<o.length;s++)a[s]&&(a[s].data[n]=o[s])}return{series:a,categories:i}}function fie(r){for(var e=r.split(/\n+/g),t=D_(e.shift()),i=[],a=0;a<e.length;a++){var n=D_(e[a]);if(n){var o=n.split(TE),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),i[a]={name:s,value:[]},l=i[a].value):l=i[a]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?i[a].value=l[0]:i[a]=l[0])}}return{name:t,data:i}}function pie(r,e){var t=r.split(new RegExp(`
35
+ *`+M_+`
36
+ *`,"g")),i={series:[]};return T(t,function(a,n){if(lie(a)){var o=uie(a),s=e[n],l=s.axisDim+"Axis";s&&(i[l]=i[l]||[],i[l][s.axisIndex]={data:o.categories},i.series=i.series.concat(o.series))}else{var o=fie(a);i.series.push(o)}}),i}var cie=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var a=i.getDom(),n=this.model;this._dom&&a.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=n.get("backgroundColor")||N.color.neutral00;var s=document.createElement("h4"),l=n.get("lang")||[];s.innerHTML=l[0]||n.get("title"),s.style.cssText="margin:10px 20px",s.style.color=n.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var p=n.get("optionToContent"),c=n.get("contentToOption"),v=sie(t);if(J(p)){var h=p(i.getOption());H(h)?u.innerHTML=h:so(h)&&u.appendChild(h)}else{f.readOnly=n.get("readOnly");var d=f.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=n.get("textColor"),d.borderColor=n.get("textareaBorderColor"),d.backgroundColor=n.get("textareaColor"),f.value=v.value,u.appendChild(f)}var m=v.meta,g=document.createElement("div");g.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),x=document.createElement("div");y+=";background-color:"+n.get("buttonColor"),y+=";color:"+n.get("buttonTextColor");var S=this;function b(){a.removeChild(o),S._dom=null}Ec(_,"click",b),Ec(x,"click",function(){if(c==null&&p!=null||c!=null&&p==null){b();return}var w;try{J(c)?w=c(u,i.getOption()):w=pie(f.value,m)}catch(A){throw b(),new Error("Data view format error "+A)}w&&i.dispatchAction({type:"changeDataView",newOption:w}),b()}),_.innerHTML=l[1],x.innerHTML=l[2],x.style.cssText=_.style.cssText=y,!n.get("readOnly")&&g.appendChild(x),g.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(g),u.style.height=a.clientHeight-80+"px",a.appendChild(o),this._dom=o},e.prototype.dispose=function(t,i){this._dom&&i.getDom().removeChild(this._dom)},e.getDefaultOption=function(t){var i={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:N.color.background,textColor:N.color.primary,textareaColor:N.color.background,textareaBorderColor:N.color.border,buttonColor:N.color.accent50,buttonTextColor:N.color.neutral00};return i},e})(Dr);function vie(r,e){return U(r,function(t,i){var a=e&&e[i];if(te(a)&&!V(a)){var n=te(t)&&!V(t);n||(t={value:t});var o=a.name!=null&&t.name==null;return t=$(t,a),o&&delete t.name,t}else return t})}Jr({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];T(r.newOption.series,function(i){var a=e.getSeriesByName(i.name)[0];if(!a)t.push(k({type:"scatter"},i));else{var n=a.get("data");t.push({name:i.name,data:vie(i.data,n)})}}),e.mergeOption($({series:t},r.newOption))});var WH=cie;var XH=T,ZH=ne();function KH(r,e){var t=CE(r);XH(e,function(i,a){for(var n=t.length-1;n>=0;n--){var o=t[n];if(o[a])break}if(n<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:a})[0];if(s){var l=s.getPercentRange();t[0][a]={dataZoomId:a,start:l[0],end:l[1]}}}}),t.push(e)}function qH(r){var e=CE(r),t=e[e.length-1];e.length>1&&e.pop();var i={};return XH(t,function(a,n){for(var o=e.length-1;o>=0;o--)if(a=e[o][n],a){i[n]=a;break}}),i}function jH(r){ZH(r).snapshots=null}function JH(r){return CE(r).length}function CE(r){var e=ZH(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var hie=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){jH(t),i.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var i={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])};return i},e})(Dr);Jr({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});var $H=hie;var die=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],mie=(function(){function r(e,t,i){var a=this;this._targetInfoList=[];var n=e5(t,e);T(gie,function(o,s){(!i||!i.include||le(i.include,s)>=0)&&o(n,a._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(i,a,n){if((i.coordRanges||(i.coordRanges=[])).push(a),!i.coordRange){i.coordRange=a;var o=AE[i.brushType](0,n,a);i.__rangeOffset={offset:a5[i.brushType](o.values,i.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,i){T(e,function(a){var n=this.findTargetInfo(a,t);n&&n!==!0&&T(n.coordSyses,function(o){var s=AE[a.brushType](1,o,a.range,!0);i(a,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){T(e,function(i){var a=this.findTargetInfo(i,t);if(i.range=i.range||[],a&&a!==!0){i.panelId=a.panelId;var n=AE[i.brushType](0,a.coordSys,i.coordRange),o=i.__rangeOffset;i.range=o?a5[i.brushType](n.values,o.offset,yie(n.xyMinMax,o.xyMinMax)):n.values}},this)},r.prototype.makePanelOpts=function(e,t){return U(this._targetInfoList,function(i){var a=i.getPanelRect();return{panelId:i.panelId,defaultBrushType:t?t(i):null,clipPath:X0(a),isTargetByCursor:K0(a,e,i.coordSysModel),getLinearBrushOtherExtent:Z0(a)}})},r.prototype.controlSeries=function(e,t,i){var a=this.findTargetInfo(e,i);return a===!0||a&&le(a.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var i=this._targetInfoList,a=e5(t,e),n=0;n<i.length;n++){var o=i[n],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<t5.length;l++)if(t5[l](a,o))return o}return!0},r})();function EE(r){return r[0]>r[1]&&r.reverse(),r}function e5(r,e){return En(r,e,{includeMainTypes:die})}var gie={grid:function(r,e){var t=r.xAxisModels,i=r.yAxisModels,a=r.gridModels,n=W(),o={},s={};!t&&!i&&!a||(T(t,function(l){var u=l.axis.grid.model;n.set(u.id,u),o[u.id]=!0}),T(i,function(l){var u=l.axis.grid.model;n.set(u.id,u),s[u.id]=!0}),T(a,function(l){n.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),n.each(function(l){var u=l.coordinateSystem,f=[];T(u.getCartesians(),function(p,c){(le(t,p.getAxis("x").model)>=0||le(i,p.getAxis("y").model)>=0)&&f.push(p)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:r5.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){T(r.geoModels,function(t){var i=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:i,coordSyses:[i],getPanelRect:r5.geo})})}},t5=[function(r,e){var t=r.xAxisModel,i=r.yAxisModel,a=r.gridModel;return!a&&t&&(a=t.axis.grid.model),!a&&i&&(a=i.axis.grid.model),a&&a===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],r5={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys.view,e=VT(null,r);return vd(e,e,ku(null,r)),e}},AE={lineX:me(i5,0),lineY:me(i5,1),rect:function(r,e,t,i){var a=r?e.pointToData([t[0][0],t[1][0]],i):e.dataToPoint([t[0][0],t[1][0]],i),n=r?e.pointToData([t[0][1],t[1][1]],i):e.dataToPoint([t[0][1],t[1][1]],i),o=[EE([a[0],n[0]]),EE([a[1],n[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,i){var a=[Pt(),Pt()],n=U(t,function(o){var s=r?e.pointToData(o,i):e.dataToPoint(o,i);return a[0][0]=Math.min(a[0][0],s[0]),a[1][0]=Math.min(a[1][0],s[1]),a[0][1]=Math.max(a[0][1],s[0]),a[1][1]=Math.max(a[1][1],s[1]),s});return{values:n,xyMinMax:a}}};function i5(r,e,t,i){var a=t.getAxis(["x","y"][r]),n=EE(U([0,1],function(s){return e?a.coordToData(a.toLocalCoord(i[s]),!0):a.toGlobalCoord(a.dataToCoord(i[s]))})),o=[];return o[r]=n,o[1-r]=[NaN,NaN],{values:n,xyMinMax:o}}var a5={lineX:me(n5,0),lineY:me(n5,1),rect:function(r,e,t){return[[r[0][0]-t[0]*e[0][0],r[0][1]-t[0]*e[0][1]],[r[1][0]-t[1]*e[1][0],r[1][1]-t[1]*e[1][1]]]},polygon:function(r,e,t){return U(r,function(i,a){return[i[0]-t[0]*e[a][0],i[1]-t[1]*e[a][1]]})}};function n5(r,e,t,i){return[e[0]-i[r]*t[0],e[1]-i[r]*t[1]]}function yie(r,e){var t=o5(r),i=o5(e),a=[t[0]/i[0],t[1]/i[1]];return isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a}function o5(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Hh=mie;var DE=T,_ie=lI("toolbox-dataZoom_");var xie={x:"width",y:"height"},Sie=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a,n){this._brushController||(this._brushController=new Jp(a.getZr()),this._brushController.on("brush",X(this._onBrush,this)).mount()),Tie(t,i,this,n,a),wie(t,i)},e.prototype.onclick=function(t,i,a){bie[a].call(this)},e.prototype.dispose=function(t,i){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var i=t.areas;if(!t.isEnd||!i.length)return;var a={},n=this.ecModel;this._brushController.updateCovers([]);var o=new Hh(ME(this.model),n,{include:["grid"]});o.matchOutputRanges(i,n,function(u,f,p){if(p.type==="cartesian2d"){var c=p.master.getRect().clone(),v=u.brushType;v==="rect"?(s("x",p,c,f[0]),s("y",p,c,f[1])):s({lineX:"x",lineY:"y"}[v],p,c,f)}}),KH(n,a),this._dispatchZoomAction(a);function s(u,f,p,c){var v=f.getAxis(u),h=v.model,d=l(u,h,n),m=d.findRepresentativeAxisProxy(h).getMinMaxSpan(),g=v.scale.getExtent();(m.minValueSpan!=null||m.maxValueSpan!=null)&&(c=oi(0,c.slice(),g,0,m.minValueSpan,m.maxValueSpan));var y=Sf(g,p[xie[u]],.5);d&&(a[d.id]={dataZoomId:d.id,startValue:isFinite(y)?Ne(c[0],y):c[0],endValue:isFinite(y)?Ne(c[1],y):c[1]})}function l(u,f,p){var c;return p.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var h=v.getAxisModel(u,f.componentIndex);h&&(c=v)}),c}},e.prototype._dispatchZoomAction=function(t){var i=[];DE(t,function(a,n){i.push(ee(a))}),i.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:i})},e.getDefaultOption=function(t){var i={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:N.color.backgroundTint}};return i},e})(Dr),bie={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(qH(this.ecModel))}};function ME(r){var e={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function wie(r,e){r.setIconStatus("back",JH(e)>1?"emphasis":"normal")}function Tie(r,e,t,i,a){var n=t._isZoomActive;i&&i.type==="takeGlobalCursor"&&(n=i.key==="dataZoomSelect"?i.dataZoomSelectActive:!1),t._isZoomActive=n,r.setIconStatus("zoom",n?"emphasis":"normal");var o=new Hh(ME(r),e,{include:["grid"]}),s=o.makePanelOpts(a,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(n&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}FP("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var i=e.getModel(t),a=[],n=ME(i),o=En(r,n);DE(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),DE(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var p=l.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:_ie+u+p};c[f]=p,a.push(c)}return a});var s5=Sie;function IE(r){r.registerComponentModel(VH),r.registerComponentView(BH),al("saveAsImage",FH),al("magicType",YH),al("dataView",WH),al("dataZoom",s5),al("restore",$H),Ce(kH)}var Cie=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:N.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:N.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:N.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:N.color.tertiary,fontSize:14}},e})(Se),l5=Cie;function I_(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function u5(r){if(Re.domSupported){for(var e=document.documentElement.style,t=0,i=r.length;t<i;t++)if(r[t]in e)return r[t]}}var LE=u5(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),f5=u5(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function PE(r,e){if(!r)return e;e=Xf(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function p5(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var Aie=PE(f5,"transition"),RE=PE(LE,"transform"),Eie="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Re.transform3dSupported?"will-change:transform;":"");function Die(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function Mie(r,e,t){if(!H(t)||t==="inside")return"";var i=r.get("backgroundColor"),a=r.get("borderWidth");e=Ja(e);var n=Die(t),o=Math.max(Math.round(a)*1.5,6),s="",l=RE+":",u;le(["left","right"],n)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var f=u*Math.PI/180,p=o+a,c=p*Math.abs(Math.cos(f))+p*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*a)/2+Math.SQRT2*a-(c-p)/2)*100)/100;s+=";"+n+":-"+v+"px";var h=e+" solid "+a+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+h,"border-right:"+h,"background-color:"+i+";"];return'<div style="'+d.join("")+'"></div>'}function Iie(r,e,t){var i="cubic-bezier(0.23,1,0.32,1)",a="",n="";return t&&(a=" "+r/2+"s "+i,n="opacity"+a+",visibility"+a),e||(a=" "+r+"s "+i,n+=(n.length?",":"")+(Re.transformSupported?""+RE+a:",left"+a+",top"+a)),Aie+":"+n}function c5(r,e,t){var i=r.toFixed(0)+"px",a=e.toFixed(0)+"px";if(!Re.transformSupported)return t?"top:"+a+";left:"+i+";":[["top",a],["left",i]];var n=Re.transform3dSupported,o="translate"+(n?"3d":"")+"("+i+","+a+(n?",0":"")+")";return t?"top:0;left:0;"+RE+":"+o+";":[["top",0],["left",0],[LE,o]]}function Lie(r){var e=[],t=r.get("fontSize"),i=r.getTextColor();i&&e.push("color:"+i),e.push("font:"+r.getFont());var a=Z(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+a+"px");var n=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return n&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+n),T(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function Pie(r,e,t,i){var a=[],n=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),p=r.getModel("textStyle"),c=Ag(r,"html"),v=u+"px "+f+"px "+s+"px "+l;return a.push("box-shadow:"+v),e&&n>0&&a.push(Iie(n,t,i)),o&&a.push("background-color:"+o),T(["width","color","radius"],function(h){var d="border-"+h,m=Xf(d),g=r.get(m);g!=null&&a.push(d+":"+g+(h==="color"?"":"px"))}),a.push(Lie(p)),c!=null&&a.push("padding:"+ma(c).join("px ")+"px"),a.join(";")+";"}function v5(r,e,t,i,a){var n=e&&e.painter;if(t){var o=n&&n.getViewportRoot();o&&BD(r,o,t,i,a)}else{r[0]=i,r[1]=a;var s=n&&n.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var Rie=(function(){function r(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Re.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=e.getZr(),n=t.appendTo,o=n&&(H(n)?document.querySelector(n):so(n)?n:J(n)&&n(e.getDom()));v5(this._styleCoord,a,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(i),this._api=e,this._container=o;var s=this;i.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},i.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,f=a.painter.getViewportRoot();ci(f,l,!0),u.dispatch("mousemove",l)}},i.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),i=p5(t,"position"),a=t.style;a.position!=="absolute"&&i!=="absolute"&&(a.position="relative")}var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this._enableDisplayTransition=e.get("displayTransition")&&e.get("transitionDuration")>0,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,a=i.style,n=this._styleCoord;i.innerHTML?a.cssText=Eie+Pie(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+c5(n[0],n[1],!0)+("border-color:"+Ja(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,i,a,n){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(H(n)&&i.get("trigger")==="item"&&!I_(i)&&(s=Mie(i,a,n)),H(e))o.innerHTML=e+s;else if(e){o.innerHTML="",V(e)||(e=[e]);for(var l=0;l<e.length;l++)so(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},r.prototype.moveTo=function(e,t){if(this.el){var i=this._styleCoord;if(v5(i,this._zr,this._container,e,t),i[0]!=null&&i[1]!=null){var a=this.el.style,n=c5(i[0],i[1]);T(n,function(o){a[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility="hidden",t.opacity="0"):t.display="none",Re.transform3dSupported&&(t.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(X(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;FD(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var i=t.parentNode;i&&i.removeChild(t)}this.el=this._container=null},r})(),h5=Rie;var Oie=(function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),m5(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return r.prototype.update=function(e){var t=e.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(e,t,i,a,n){var o=this;te(e)&&Ye(""),this.el&&this._zr.remove(this.el);var s=i.getModel("textStyle");this.el=new be({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:Ag(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=i.get(u)}),T(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(e){this._enterable=e},r.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),i=d5(e.style);return[t.width+i.left+i.right,t.height+i.top+i.bottom]},r.prototype.moveTo=function(e,t){var i=this.el;if(i){var a=this._styleCoord;m5(a,this._zr,e,t),e=a[0],t=a[1];var n=i.style,o=nl(n.borderWidth||0),s=d5(n);i.x=e+o+s.left,i.y=t+o+s.top,i.markRedraw()}},r.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(X(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function nl(r){return Math.max(0,r)}function d5(r){var e=nl(r.shadowBlur||0),t=nl(r.shadowOffsetX||0),i=nl(r.shadowOffsetY||0);return{left:nl(e-t),right:nl(e+t),top:nl(e-i),bottom:nl(e+i)}}function m5(r,e,t,i){r[0]=t,r[1]=i,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var g5=Oie;var Nie=new de({shape:{x:-1,y:-1,width:2,height:2}}),kie=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){if(!(Re.node||!i.getDom())){var a=t.getComponent("tooltip"),n=this._renderMode=vI(a.get("renderMode"));this._tooltipContent=n==="richText"?new g5(i):new h5(i,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},e.prototype.render=function(t,i,a){if(!(Re.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=i,this._api=a;var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?_a(this,"_updatePosition",50,"fixRate"):Po(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,i=t.get("triggerOn");u_("itemTooltip",this._api,X(function(a,n,o){i!=="none"&&(i.indexOf(a)>=0?this._tryShow(n,o):a==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,i=this._ecModel,a=this._api,n=t.get("triggerOn");if(t.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(t,i,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,i,a,n){if(!(n.from===this.uid||Re.node||!a.getDom())){var o=y5(n,a);this._ticket="";var s=n.dataByCoordSys,l=Bie(n,i,a);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:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var f=Nie;f.x=n.x,f.y=n.y,f.update(),se(f).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:f},o)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(t,i,a,n))return;var p=Uh(n,i),c=p.point[0],v=p.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:p.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:a.getZr().findHover(n.x,n.y).target},o))}},e.prototype.manuallyHideTip=function(t,i,a,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,n.from!==this.uid&&this._hide(y5(n,a))},e.prototype._manuallyAxisShowTip=function(t,i,a,n){var o=n.seriesIndex,s=n.dataIndex,l=i.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=i.getSeriesByIndex(o);if(u){var f=u.getData(),p=Yh([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(p.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},e.prototype._tryShow=function(t,i){var a=t.target,n=this._tooltipModel;if(n){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(a){var s=se(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;en(a,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(se(f).dataIndex!=null?l=f:se(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(t,l,i):u?this._showComponentItemTooltip(t,u,i):this._hide(i)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(i)}},e.prototype._showOrMove=function(t,i){var a=t.get("showDelay");i=X(i,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(i,a):i()},e.prototype._showAxisTooltip=function(t,i){var a=this._ecModel,n=this._tooltipModel,o=[i.offsetX,i.offsetY],s=Yh([i.tooltipOption],n),l=this._renderMode,u=[],f=ft("section",{blocks:[],noHeader:!0}),p=[],c=new Eg;T(t,function(y){T(y.dataByAxis,function(_){var x=a.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value,b=x.axis,w=b.scale.parse(S);if(!(!x||S==null)){var A=HA(S,b,a,_.seriesDataIndices,_.valueLabelOpt),C=ft("section",{header:A,noHeader:!Gt(A),sortBlocks:!0,blocks:[]});f.blocks.push(C),T(_.seriesDataIndices,function(E){var D=a.getSeriesByIndex(E.seriesIndex),I=E.dataIndexInside,M=D.getDataParams(I);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=mp(x.axis,{value:w}),M.axisValueLabel=A,M.marker=c.makeTooltipMarker("item",Ja(M.color),l);var P=$b(D.formatTooltip(I,!0,null)),O=P.frag;if(O){var R=Yh([D],n).get("valueFormatter");C.blocks.push(R?k({valueFormatter:R},O):O)}P.text&&p.push(P.text),u.push(M)}})}})}),f.blocks.reverse(),p.reverse();var v=i.position,h=s.get("order"),d=o1(f,c,l,h,a.get("useUTC"),s.get("textStyle"));d&&p.unshift(d);var m=l==="richText"?`
37
+
38
+ `:"<br/>",g=p.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,c)})},e.prototype._showSeriesItemTooltip=function(t,i,a){var n=this._ecModel,o=se(i),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,p=o.dataType,c=u.getData(p),v=this._renderMode,h=t.positionDefault,d=Yh([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),m=d.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(f,p),y=new Eg;g.marker=y.makeTooltipMarker("item",Ja(g.color),v);var _=$b(u.formatTooltip(f,!1,p)),x=d.get("order"),S=d.get("valueFormatter"),b=_.frag,w=b?o1(S?k({valueFormatter:S},b):b,y,v,x,n.get("useUTC"),d.get("textStyle")):_.text,A="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,g,A,t.offsetX,t.offsetY,t.position,t.target,y)}),a({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,a){var n=this._renderMode==="html",o=se(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(H(l)){var f=l;l={content:f,formatter:f},u=!0}u&&n&&l.content&&(l=ee(l),l.content=Yt(l.content));var p=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&p.push(c),p.push({formatter:l.content});var v=t.positionDefault,h=Yh(p,this._tooltipModel,v?{position:v}:null),d=h.get("content"),m=Math.random()+"",g=new Eg;this._showOrMove(h,function(){var y=ee(h.get("formatterParams")||{});this._showTooltipContent(h,d,y,m,t.offsetX,t.offsetY,t.position,i,g)}),a({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,a,n,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var p=this._tooltipContent;p.setEnterable(t.get("enterable"));var c=t.get("formatter");l=l||t.get("position");var v=i,h=this._getNearestPoint([o,s],a,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),d=h.color;if(c)if(H(c)){var m=t.ecModel.get("useUTC"),g=V(a)?a[0]:a,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=c,y&&(v=Mo(g.axisValue,v,m)),v=Zf(v,a,!0)}else if(J(c)){var _=X(function(x,S){x===this._ticket&&(p.setContent(S,f,t,d,l),this._updatePosition(t,l,o,s,p,a,u))},this);this._ticket=n,v=c(a,n,_)}else v=c;p.setContent(v,f,t,d,l),p.show(t,d),this._updatePosition(t,l,o,s,p,a,u)}},e.prototype._getNearestPoint=function(t,i,a,n,o){if(a==="axis"||V(i))return{color:n||o};if(!V(i))return{color:n||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,a,n,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||t.get("position");var p=o.getSize(),c=t.get("align"),v=t.get("verticalAlign"),h=l&&l.getBoundingRect().clone();if(l&&h.applyTransform(l.transform),J(i)&&(i=i([a,n],s,o.el,h,{viewSize:[u,f],contentSize:p.slice()})),V(i))a=j(i[0],u),n=j(i[1],f);else if(te(i)){var d=i;d.width=p[0],d.height=p[1];var m=He(d,{width:u,height:f});a=m.x,n=m.y,c=null,v=null}else if(H(i)&&l){var g=Uie(i,h,p,t.get("borderWidth"));a=g[0],n=g[1]}else{var g=zie(a,n,o,u,f,c?null:20,v?null:20);a=g[0],n=g[1]}if(c&&(a-=_5(c)?p[0]/2:c==="right"?p[0]:0),v&&(n-=_5(v)?p[1]/2:v==="bottom"?p[1]:0),I_(t)){var g=Vie(a,n,o,u,f);a=g[0],n=g[1]}o.moveTo(a,n)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var a=this._lastDataByCoordSys,n=this._cbParamsList,o=!!a&&a.length===t.length;return o&&T(a,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},p=f.dataByAxis||[];o=o&&u.length===p.length,o&&T(u,function(c,v){var h=p[v]||{},d=c.seriesDataIndices||[],m=h.seriesDataIndices||[];o=o&&c.value===h.value&&c.axisType===h.axisType&&c.axisId===h.axisId&&d.length===m.length,o&&T(d,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),n&&T(c.seriesDataIndices,function(g){var y=g.seriesIndex,_=i[y],x=n[y];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,i){Re.node||!i.getDom()||(Po(this,"_updatePosition"),this._tooltipContent.dispose(),Vh("itemTooltip",i),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e})(ze);function Yh(r,e,t){var i=e.ecModel,a;t?(a=new Ee(t,i,i),a=new Ee(e.option,a,i)):a=e;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof Ee&&(o=o.get("tooltip",!0)),H(o)&&(o={formatter:o}),o&&(a=new Ee(o,a,i)))}return a}function y5(r,e){return r.dispatchAction||X(e.dispatchAction,e)}function zie(r,e,t,i,a,n,o){var s=t.getSize(),l=s[0],u=s[1];return n!=null&&(r+l+n+2>i?r-=l+n:r+=n),o!=null&&(e+u+o>a?e-=u+o:e+=o),[r,e]}function Vie(r,e,t,i,a){var n=t.getSize(),o=n[0],s=n[1];return r=Math.min(r+o,i)-o,e=Math.min(e+s,a)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function Uie(r,e,t,i){var a=t[0],n=t[1],o=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-a/2,l=e.y+f/2-n/2;break;case"top":s=e.x+u/2-a/2,l=e.y-n-o;break;case"bottom":s=e.x+u/2-a/2,l=e.y+f+o;break;case"left":s=e.x-a-o,l=e.y+f/2-n/2;break;case"right":s=e.x+u+o,l=e.y+f/2-n/2}return[s,l]}function _5(r){return r==="center"||r==="middle"}function Bie(r,e,t){var i=Jc(r).queryOptionMap,a=i.keys()[0];if(!(!a||a==="series")){var n=Dn(e,a,i.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=se(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}var x5=kie;function OE(r){Ce(mn),r.registerComponentModel(l5),r.registerComponentView(x5),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},et),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},et)}var Fie=["rect","polygon","keep","clear"];function NE(r,e){var t=We(r?r.brush:[]);if(t.length){var i=[];T(t,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(i=i.concat(u))});var a=r&&r.toolbox;V(a)&&(a=a[0]),a||(a={feature:{}},r.toolbox=[a]);var n=a.feature||(a.feature={}),o=n.brush||(n.brush={}),s=o.type||(o.type=[]);s.push.apply(s,i),us(s,function(l){return l+""},null),e&&!s.length&&s.push.apply(s,Fie)}}var S5=T;function b5(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function Wh(r,e,t){var i={};return S5(e,function(n){var o=i[n]=a();S5(r[n],function(s,l){if(Nt.isValidType(l)){var u={type:l,visual:s};t&&t(u,n),o[l]=new Nt(u),l==="opacity"&&(u=ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Nt(u))}})}),i;function a(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function L_(r,e,t){var i;T(t,function(a){e.hasOwnProperty(a)&&b5(e[a])&&(i=!0)}),i&&T(t,function(a){e.hasOwnProperty(a)&&b5(e[a])?r[a]=ee(e[a]):delete r[a]})}function w5(r,e,t,i,a,n){var o={};T(r,function(p){var c=Nt.prepareVisualTypes(e[p]);o[p]=c});var s;function l(p){return Ov(t,s,p)}function u(p,c){v1(t,s,p,c)}n==null?t.each(f):t.each([n],f);function f(p,c){s=n==null?p:c;var v=t.getRawDataItem(s);if(!(v&&v.visualMap===!1))for(var h=i.call(a,p),d=e[h],m=o[h],g=0,y=m.length;g<y;g++){var _=m[g];d[_]&&d[_].applyVisual(p,l,u)}}}function T5(r,e,t,i){var a={};return T(r,function(n){var o=Nt.prepareVisualTypes(e[n]);a[n]=o}),{progress:function(o,s){var l;i!=null&&(l=s.getDimensionIndex(i));function u(S){return Ov(s,p,S)}function f(S,b){v1(s,p,S,b)}for(var p,c=s.getStore();(p=o.next())!=null;){var v=s.getRawDataItem(p);if(!(v&&v.visualMap===!1))for(var h=i!=null?c.get(l,p):p,d=t(h),m=e[d],g=a[d],y=0,_=g.length;y<_;y++){var x=g[y];m[x]&&m[x].applyVisual(h,u,f)}}}}}function E5(r){var e=r.brushType,t={point:function(i){return C5[e].point(i,t,r)},rect:function(i){return C5[e].rect(i,t,r)}};return t}var C5={lineX:A5(0),lineY:A5(1),rect:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])},rect:function(r,e,t){return r&&t.boundingRect.intersect(r)}},polygon:{point:function(r,e,t){return r&&t.boundingRect.contain(r[0],r[1])&&No(t.range,r[0],r[1])},rect:function(r,e,t){var i=t.range;if(!r||i.length<=1)return!1;var a=r.x,n=r.y,o=r.width,s=r.height,l=i[0];if(No(i,a,n)||No(i,a+o,n)||No(i,a,n+s)||No(i,a+o,n+s)||oe.create(r).contain(l[0],l[1])||Uf(a,n,a+o,n,i)||Uf(a,n,a,n+s,i)||Uf(a+o,n,a+o,n+s,i)||Uf(a,n+s,a+o,n+s,i))return!0}}};function A5(r){var e=["x","y"],t=["width","height"];return{point:function(i,a,n){if(i){var o=n.range,s=i[r];return Xh(s,o)}},rect:function(i,a,n){if(i){var o=n.range,s=[i[e[r]],i[e[r]]+i[t[r]]];return s[1]<s[0]&&s.reverse(),Xh(s[0],o)||Xh(s[1],o)||Xh(o[0],s)||Xh(o[1],s)}}}}function Xh(r,e){return e[0]<=r&&r<=e[1]}var D5=["inBrush","outOfBrush"],kE="__ecBrushSelect",zE="__ecInBrushSelectEvent";function VE(r){r.eachComponent({mainType:"brush"},function(e){var t=e.brushTargetManager=new Hh(e.option,r);t.setInputRanges(e.areas,r)})}var L5=Mn(Gie);function Gie(r,e,t){var i=[],a,n;r.eachComponent({mainType:"brush"},function(o){t&&t.type==="takeGlobalCursor"&&o.setBrushOption(t.key==="brush"?t.brushOption:{brushType:!1})}),VE(r),r.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:ee(o.areas),selected:[]};i.push(l);var u=o.option,f=u.brushLink,p=[],c=[],v=[],h=!1;s||(a=u.throttleType,n=u.throttleDelay);var d=U(o.areas,function(S){var b=Xie[S.brushType],w=$({boundingRect:b?b(S):void 0},S);return w.selectors=E5(w),w}),m=Wh(o.option,D5,function(S){S.mappingMethod="fixed"});V(f)&&T(f,function(S){p[S]=1});function g(S){return f==="all"||!!p[S]}function y(S){return!!S.length}r.eachSeries(function(S,b){var w=v[b]=[];S.subType==="parallel"?_(S,b):x(S,b,w)});function _(S,b){var w=S.coordinateSystem;h=h||w.hasAxisBrushed(),g(b)&&w.eachActiveState(S.getData(),function(A,C){A==="active"&&(c[C]=1)})}function x(S,b,w){if(!(!S.brushSelector||Wie(o,b))&&(T(d,function(C){o.brushTargetManager.controlSeries(C,S,r)&&w.push(C),h=h||y(w)}),g(b)&&y(w))){var A=S.getData();A.each(function(C){M5(S,w,A,C)&&(c[C]=1)})}}r.eachSeries(function(S,b){var w={seriesId:S.id,seriesIndex:b,seriesName:S.name,dataIndex:[]};l.selected.push(w);var A=v[b],C=S.getData(),E=g(b)?function(D){return c[D]?(w.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"}:function(D){return M5(S,A,C,D)?(w.dataIndex.push(C.getRawIndex(D)),"inBrush"):"outOfBrush"};(g(b)?h:y(A))&&w5(D5,m,C,E)})}),Hie(e,a,n,i,t)}function Hie(r,e,t,i,a){if(a){var n=r.getZr();if(!n[zE]){n[kE]||(n[kE]=Yie);var o=_a(n,kE,t,e);o(r,i)}}}function Yie(r,e){if(!r.isDisposed()){var t=r.getZr();t[zE]=!0,r.dispatchAction({type:"brushSelect",batch:e}),t[zE]=!1}}function M5(r,e,t,i){for(var a=0,n=e.length;a<n;a++){var o=e[a];if(r.brushSelector(i,t,o.selectors,o))return!0}}function Wie(r,e){var t=r.option.seriesIndex;return t!=null&&t!=="all"&&(V(t)?le(t,e)<0:e!==t)}var Xie={rect:function(r){return I5(r.range)},polygon:function(r){for(var e,t=r.range,i=0,a=t.length;i<a;i++){e=e||[Pt(),Pt()];var n=t[i];n[0]<e[0][0]&&(e[0][0]=n[0]),n[0]>e[0][1]&&(e[0][1]=n[0]),n[1]<e[1][0]&&(e[1][0]=n[1]),n[1]>e[1][1]&&(e[1][1]=n[1])}return e&&I5(e)}};function I5(r){return new oe(r[0][0],r[1][0],r[0][1]-r[0][0],r[1][1]-r[1][0])}var Zie=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i,this.model,(this._brushController=new Jp(i.getZr())).on("brush",X(this._onBrush,this)).mount()},e.prototype.render=function(t,i,a,n){this.model=t,this._updateController(t,i,a,n)},e.prototype.updateTransform=function(t,i,a,n){VE(i),this._updateController(t,i,a,n)},e.prototype.updateVisual=function(t,i,a,n){this.updateTransform(t,i,a,n)},e.prototype.updateView=function(t,i,a,n){this._updateController(t,i,a,n)},e.prototype._updateController=function(t,i,a,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(a)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var i=this.model.id,a=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:i,areas:ee(a),$from:i}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:i,areas:ee(a),$from:i})},e.type="brush",e})(ze),P5=Zie;var Kie=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.areas=[],t.brushOption={},t}return e.prototype.optionUpdated=function(t,i){var a=this.option;!i&&L_(a,t,["inBrush","outOfBrush"]);var n=a.inBrush=a.inBrush||{};a.outOfBrush=a.outOfBrush||{color:this.option.defaultOutOfBrushColor},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=U(t,function(i){return R5(this.option,i)},this))},e.prototype.setBrushOption=function(t){this.brushOption=R5(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:N.color.backgroundTint,borderColor:N.color.borderTint},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4,defaultOutOfBrushColor:N.color.disabled},e})(Se);function R5(r,e){return ve({brushType:r.brushType,brushMode:r.brushMode,transformable:r.transformable,brushStyle:new Ee(r.brushStyle).getItemStyle(),removeOnClick:r.removeOnClick,z:r.z},e,!0)}var O5=Kie;var qie=["rect","polygon","lineX","lineY","keep","clear"],jie=(function(r){L(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,i,a){var n,o,s;i.eachComponent({mainType:"brush"},function(l){n=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=n,this._brushMode=o,T(t.get("type",!0),function(l){t.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===n)?"emphasis":"normal")})},e.prototype.updateView=function(t,i,a){this.render(t,i,a)},e.prototype.getIcons=function(){var t=this.model,i=t.get("icon",!0),a={};return T(t.get("type",!0),function(n){i[n]&&(a[n]=i[n])}),a},e.prototype.onclick=function(t,i,a){var n=this._brushType,o=this._brushMode;a==="clear"?(i.dispatchAction({type:"axisAreaSelect",intervals:[]}),i.dispatchAction({type:"brush",command:"clear",areas:[]})):i.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:a==="keep"?n:n===a?!1:a,brushMode:a==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(t){var i={show:!0,type:qie.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])};return i},e})(Dr),N5=jie;function UE(r){r.registerComponentView(P5),r.registerComponentModel(O5),r.registerPreprocessor(NE),r.registerVisual(r.PRIORITY.VISUAL.BRUSH,L5),r.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(i){i.setAreas(e.areas)})}),r.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},et),r.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},et),al("brush",N5)}var Jie=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:N.size.m,backgroundColor:N.color.transparent,borderColor:N.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:N.color.primary},subtextStyle:{fontSize:12,color:N.color.quaternary}},e})(Se),Qie=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){if(this.group.removeAll(),!!t.get("show")){var n=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=Z(t.get("textBaseline"),t.get("textVerticalAlign")),f=new be({style:Xe(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),p=f.getBoundingRect(),c=t.get("subtext"),v=new be({style:Xe(s,{text:c,fill:s.getTextColor(),y:p.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=t.get("link"),d=t.get("sublink"),m=t.get("triggerEvent",!0);f.silent=!h&&!m,v.silent=!d&&!m,h&&f.on("click",function(){su(h,"_"+t.get("target"))}),d&&v.on("click",function(){su(d,"_"+t.get("subtarget"))}),se(f).eventData=se(v).eventData=m?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(f),c&&n.add(v);var g=n.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var _=Qe(t,a),x=He(y,_.refContainer,t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?x.x+=x.width:l==="center"&&(x.x+=x.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?x.y+=x.height:u==="middle"&&(x.y+=x.height/2),u=u||"top"),n.x=x.x,n.y=x.y,n.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),v.setStyle(S),g=n.getBoundingRect();var b=x.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var A=new de({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});n.add(A)}},e.type="title",e})(ze);function BE(r){r.registerComponentModel(Jie),r.registerComponentView(Qie)}var $ie=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode="box",t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a),this._initData()},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){t==null&&(t=this.option.currentIndex);var i=this._data.count();this.option.loop?t=(t%i+i)%i:(t>=i&&(t=i-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t=this.option,i=t.data||[],a=t.axisType,n=this._names=[],o;a==="category"?(o=[],T(i,function(u,f){var p=St(Ha(u),""),c;te(u)?(c=ee(u),c.value=f):c=f,o.push(c),n.push(p)})):o=i;var s={category:"ordinal",time:"time",value:"number"}[a]||"number",l=this._data=new Ct([{name:"value",type:s}],this);l.initData(o,n)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:N.size.m,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:N.color.secondary},data:[]},e})(Se),FE=$ie;var k5=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline.slider",e.defaultOption=kr(FE.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:N.color.border,borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:N.color.accent10},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:N.color.tertiary},itemStyle:{color:N.color.accent20,borderWidth:0},checkpointStyle:{symbol:"circle",symbolSize:15,color:N.color.accent50,borderColor:N.color.accent50,borderWidth:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0, 0, 0, 0)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10.6699C11.5 9.90014 12.3333 9.41887 13 9.80371L20.5 14.1338C21.1667 14.5187 21.1667 15.4813 20.5 15.8662L13 20.1963C12.3333 20.5811 11.5 20.0999 11.5 19.3301V10.6699Z",stopIcon:"path://M15 0C23.2843 0 30 6.71573 30 15C30 23.2843 23.2843 30 15 30C6.71573 30 0 23.2843 0 15C0 6.71573 6.71573 0 15 0ZM15 3C8.37258 3 3 8.37258 3 15C3 21.6274 8.37258 27 15 27C21.6274 27 27 21.6274 27 15C27 8.37258 21.6274 3 15 3ZM11.5 10C12.3284 10 13 10.6716 13 11.5V18.5C13 19.3284 12.3284 20 11.5 20C10.6716 20 10 19.3284 10 18.5V11.5C10 10.6716 10.6716 10 11.5 10ZM18.5 10C19.3284 10 20 10.6716 20 11.5V18.5C20 19.3284 19.3284 20 18.5 20C17.6716 20 17 19.3284 17 18.5V11.5C17 10.6716 17.6716 10 18.5 10Z",nextIcon:"path://M0.838834 18.7383C0.253048 18.1525 0.253048 17.2028 0.838834 16.617L7.55635 9.89949L0.838834 3.18198C0.253048 2.59619 0.253048 1.64645 0.838834 1.06066C1.42462 0.474874 2.37437 0.474874 2.96015 1.06066L10.7383 8.83883L10.8412 8.95277C11.2897 9.50267 11.2897 10.2963 10.8412 10.8462L10.7383 10.9602L2.96015 18.7383C2.37437 19.3241 1.42462 19.3241 0.838834 18.7383Z",prevIcon:"path://M10.9602 1.06066C11.5459 1.64645 11.5459 2.59619 10.9602 3.18198L4.24264 9.89949L10.9602 16.617C11.5459 17.2028 11.5459 18.1525 10.9602 18.7383C10.3744 19.3241 9.42462 19.3241 8.83883 18.7383L1.06066 10.9602L0.957771 10.8462C0.509245 10.2963 0.509245 9.50267 0.957771 8.95277L1.06066 8.83883L8.83883 1.06066C9.42462 0.474874 10.3744 0.474874 10.9602 1.06066Z",prevBtnSize:18,nextBtnSize:18,color:N.color.accent50,borderColor:N.color.accent50,borderWidth:0},emphasis:{label:{show:!0,color:N.color.accent60},itemStyle:{color:N.color.accent60,borderColor:N.color.accent60},controlStyle:{color:N.color.accent70,borderColor:N.color.accent70}},progress:{lineStyle:{color:N.color.accent30},itemStyle:{color:N.color.accent40}},data:[]}),e})(FE);rt(k5,hu.prototype);var z5=k5;var eae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e})(ze),V5=eae;var tae=(function(r){L(e,r);function e(t,i,a,n){var o=r.call(this,t,i,a)||this;return o.type=n||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e})(ur),U5=tae;var GE=Math.PI,B5=ne(),rae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,i){this.api=i},e.prototype.render=function(t,i,a){if(this.model=t,this.api=a,this.ecModel=i,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,a),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(n,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return ft("nameValue",{noName:!0,value:f})},T(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](n,o,l,t)},this),this._renderAxisLabel(n,s,l,t),this._position(n,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,i){var a=t.get(["label","position"]),n=t.get("orient"),o=iae(t,i),s;a==null||a==="auto"?s=n==="horizontal"?o.y+o.height/2<i.getHeight()/2?"-":"+":o.x+o.width/2<i.getWidth()/2?"+":"-":H(a)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[n][a]:s=a;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:GE/2},p=n==="vertical"?o.height:o.width,c=t.getModel("controlStyle"),v=c.get("show",!0),h=v?c.get("itemSize"):0,d=v?c.get("itemGap"):0,m=h+d,g=t.get(["label","rotate"])||0;g=g*GE/180;var y,_,x,S=c.get("position",!0),b=v&&c.get("showPlayBtn",!0),w=v&&c.get("showPrevBtn",!0),A=v&&c.get("showNextBtn",!0),C=0,E=p;S==="left"||S==="bottom"?(b&&(y=[0,0],C+=m),w&&(_=[C,0],C+=m),A&&(x=[E-h,0],E-=m)):(b&&(y=[E-h,0],E-=m),w&&(_=[0,0],C+=m),A&&(x=[E-h,0],E-=m));var D=[C,E];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:p,orient:n,rotation:f[n],labelRotation:g,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[n],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[n],playPosition:y,prevBtnPosition:_,nextBtnPosition:x,axisExtent:D,controlSize:h,controlGap:d}},e.prototype._position=function(t,i){var a=this._mainGroup,n=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=Je(),l=o.x,u=o.y+o.height;fr(s,s,[-l,-u]),dr(s,s,-GE/2),fr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=y(o),p=y(a.getBoundingRect()),c=y(n.getBoundingRect()),v=[a.x,a.y],h=[n.x,n.y];h[0]=v[0]=f[0][0];var d=t.labelPosOpt;if(d==null||H(d)){var m=d==="+"?0:1;_(v,p,f,1,m),_(h,c,f,1,1-m)}else{var m=d>=0?0:1;_(v,p,f,1,m),h[1]=v[1]+d}a.setPosition(v),n.setPosition(h),a.rotation=n.rotation=t.rotation,g(a),g(n);function g(x){x.originX=f[0][0]-x.x,x.originY=f[1][0]-x.y}function y(x){return[[x.x,x.x+x.width],[x.y,x.y+x.height]]}function _(x,S,b,w,A){x[w]+=b[w][A]-S[w][A]}},e.prototype._createAxis=function(t,i){var a=i.getData(),n=i.get("axisType")||i.get("type");n!=="category"&&n!=="time"&&(n="value");var o=wa(i,n,!1);o.getTicks=function(){return a.mapArray(["value"],function(u){return{value:u}})};var s=a.getDataExtent("value");o.setExtent(s[0],s[1]),K1(o,{fixMinMax:[!0,!0]});var l=new U5("value",o,t.axisExtent,n);return l.model=i,l},e.prototype._createGroup=function(t){var i=this[t]=new Q;return this.group.add(i),i},e.prototype._renderAxisLine=function(t,i,a,n){var o=a.getExtent();if(n.get(["lineStyle","show"])){var s=new ut({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:k({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});i.add(s);var l=this._progressLine=new ut({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:$({lineCap:"round",lineWidth:s.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});i.add(l)}},e.prototype._renderAxisTick=function(t,i,a,n){var o=this,s=n.getData(),l=a.scale.getTicks();this._tickSymbols=[],T(l,function(u){var f=a.dataToCoord(u.value),p=s.getItemModel(u.value),c=p.getModel("itemStyle"),v=p.getModel(["emphasis","itemStyle"]),h=p.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:X(o._changeTimeline,o,u.value)},m=F5(p,c,i,d);m.ensureState("emphasis").style=v.getItemStyle(),m.ensureState("progress").style=h.getItemStyle(),ca(m);var g=se(m);p.get("tooltip")?(g.dataIndex=u.value,g.dataModel=n):g.dataIndex=g.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(t,i,a,n){var o=this,s=a.getLabelModel();if(s.get("show")){var l=n.getData(),u=a.getViewLabels();this._tickLabels=[],T(u,function(f){if(!f.tick.offInterval){var p=f.tick.value,c=l.getItemModel(p),v=c.getModel("label"),h=c.getModel(["emphasis","label"]),d=c.getModel(["progress","label"]),m=a.dataToCoord(p),g=new be({x:m,y:0,rotation:t.labelRotation-t.rotation,onclick:X(o._changeTimeline,o,p),silent:!1,style:Xe(v,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});g.ensureState("emphasis").style=Xe(h),g.ensureState("progress").style=Xe(d),i.add(g),ca(g),B5(g).dataIndex=p,o._tickLabels.push(g)}})}},e.prototype._renderControl=function(t,i,a,n){var o=t.controlSize,s=t.rotation,l=n.getModel("controlStyle").getItemStyle(),u=n.getModel(["emphasis","controlStyle"]).getItemStyle(),f=n.getPlayState(),p=n.get("inverse",!0);c(t.nextBtnPosition,"next",X(this._changeTimeline,this,p?"-":"+")),c(t.prevBtnPosition,"prev",X(this._changeTimeline,this,p?"+":"-")),c(t.playPosition,f?"stop":"play",X(this._handlePlayClick,this,!f),!0);function c(v,h,d,m){if(v){var g=Lr(Z(n.get(["controlStyle",h+"BtnSize"]),o),o),y=[0,-g/2,g,g],_=aae(n,h+"Icon",y,{x:v[0],y:v[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,i.add(_),ca(_)}}},e.prototype._renderCurrentPointer=function(t,i,a,n){var o=n.getData(),s=n.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(p){p.draggable=!0,p.drift=X(u._handlePointerDrag,u),p.ondragend=X(u._handlePointerDragend,u),G5(p,u._progressLine,s,a,n,!0)},onUpdate:function(p){G5(p,u._progressLine,s,a,n)}};this._currentPointer=F5(l,l,this._mainGroup,{},this._currentPointer,f)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,i,a){this._clearTimer(),this._pointerChangeTimeline([a.offsetX,a.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,i){var a=this._toAxisCoord(t)[0],n=this._axis,o=dt(n.getExtent().slice());a>o[1]&&(a=o[1]),a<o[0]&&(a=o[0]),this._currentPointer.x=a,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=a,s.dirty());var l=this._findNearestTick(a),u=this.model;(i||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var t=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var i=t.model;t._changeTimeline(i.getCurrentIndex()+(i.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var i=this._mainGroup.getLocalTransform();return br(t,i,!0)},e.prototype._findNearestTick=function(t){var i=this.model.getData(),a=1/0,n,o=this._axis;return i.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<a&&(a=f,n=l)}),n},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var i=this.model.getCurrentIndex();t==="+"?t=i+1:t==="-"&&(t=i-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),i=this._tickSymbols,a=this._tickLabels;if(i)for(var n=0;n<i.length;n++)i&&i[n]&&i[n].toggleState("progress",n<t);if(a)for(var n=0;n<a.length;n++)a&&a[n]&&a[n].toggleState("progress",B5(a[n]).dataIndex<=t)},e.type="timeline.slider",e})(V5);function iae(r,e){return He(r.getBoxLayoutParams(),Qe(r,e).refContainer,r.get("padding"))}function aae(r,e,t,i){var a=i.style,n=ja(r.get(["controlStyle",e]),i||{},new oe(t[0],t[1],t[2],t[3]));return a&&n.setStyle(a),n}function F5(r,e,t,i,a,n){var o=e.get("color");if(a)a.setColor(o),t.add(a),n&&n.onUpdate(a);else{var s=r.get("symbol");a=je(s,-1,-1,2,2,o),a.setStyle("strokeNoScale",!0),t.add(a),n&&n.onCreate(a)}var l=e.getItemStyle(["color"]);a.setStyle(l),i=ve({rectHover:!0,z2:100},i,!0);var u=tn(r.get("symbolSize"));i.scaleX=u[0]/2,i.scaleY=u[1]/2;var f=Xi(r.get("symbolOffset"),u);f&&(i.x=(i.x||0)+f[0],i.y=(i.y||0)+f[1]);var p=r.get("symbolRotate");return i.rotation=(p||0)*Math.PI/180||0,a.attr(i),a.updateTransform(),a}function G5(r,e,t,i,a,n){if(!r.dragging){var o=a.getModel("checkpointStyle"),s=i.dataToCoord(a.getData().get("value",t));if(n||!o.get("animation",!0))r.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};r.stopAnimation(null,!0),r.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var H5=rae;function Y5(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,i){var a=t.getComponent("timeline");return a&&e.currentIndex!=null&&(a.setCurrentIndex(e.currentIndex),!a.get("loop",!0)&&a.isIndexMax()&&a.getPlayState()&&(a.setPlayState(!1),i.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:a.get("replaceMerge",!0)}),$({currentIndex:a.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var i=t.getComponent("timeline");i&&e.playState!=null&&i.setPlayState(e.playState)})}function HE(r){var e=r&&r.timeline;V(e)||(e=e?[e]:[]),T(e,function(t){t&&nae(t)})}function nae(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),W5(r),Qu(r,"controlPosition")){var i=r.controlStyle||(r.controlStyle={});Qu(i,"position")||(i.position=r.controlPosition),i.position==="none"&&!Qu(i,"show")&&(i.show=!1,delete i.position),delete r.controlPosition}T(r.data||[],function(a){te(a)&&!V(a)&&(!Qu(a,"value")&&Qu(a,"name")&&(a.value=a.name),W5(a))})}function W5(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),i=r.label||r.label||{},a=i.normal||(i.normal={}),n={normal:1,emphasis:1};T(i,function(o,s){!n[s]&&!Qu(a,s)&&(a[s]=o)}),t.label&&!Qu(i,"emphasis")&&(i.emphasis=t.label,delete t.label)}function Qu(r,e){return r.hasOwnProperty(e)}function YE(r){r.registerComponentModel(z5),r.registerComponentView(H5),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),Y5(r),r.registerPreprocessor(HE)}function $u(r,e){if(!r)return!1;for(var t=V(r)?r:[r],i=0;i<t.length;i++)if(t[i]&&t[i][e])return!0;return!1}function R_(r){Fi(r,"label",["show"])}var O_=ne(),X5=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.createdBySelf=!1,t.preventAutoZ=!0,t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a),this._mergeOption(t,a,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Re.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,i){this._mergeOption(t,i,!1,!1)},e.prototype._mergeOption=function(t,i,a,n){var o=this.mainType;a||i.eachSeries(function(s){var l=s.get(this.mainType,!0),u=O_(s)[o];if(!l||!l.data){O_(s)[o]=null;return}u?u._mergeOption(l,i,!0):(n&&R_(l),T(l.data,function(f){f instanceof Array?(R_(f[0]),R_(f[1])):R_(f)}),u=this.createMarkerModelFromSeries(l,this,i),k(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),O_(s)[o]=u},this)},e.prototype.formatTooltip=function(t,i,a){var n=this.getData(),o=this.getRawValue(t),s=n.getName(t);return ft("section",{header:this.name,blocks:[ft("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.prototype.getDataParams=function(t,i){var a=hu.prototype.getDataParams.call(this,t,i),n=this.__hostSeries;return n&&(a.seriesId=n.id,a.seriesName=n.name,a.seriesType=n.subType),a},e.getMarkerModelFromSeries=function(t,i){return O_(t)[i]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e})(Se);rt(X5,hu.prototype);var Fr=X5;var oae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,a){return new e(t,i,a)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e})(Fr),Z5=oae;function WE(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function sae(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function N_(r,e,t,i,a,n,o){var s=[],l=Qr(e,a),u=l?e.getCalculationInfo("stackResultDimension"):a,f=Zh(e,u,r),p=e.hostModel,c=p.indicesOfNearest(t,u,f)[0];s[n]=e.get(i,c),s[o]=e.get(u,c);var v=e.get(a,c),h=Hr(e.get(a,c));return h=Math.min(h,20),h>=0&&(s[o]=+s[o].toFixed(h)),[s,v]}var k_={min:me(N_,"min"),max:me(N_,"max"),average:me(N_,"average"),median:me(N_,"median")};function ol(r,e){if(e){var t=r.getData(),i=r.coordinateSystem,a=i&&i.dimensions;if(!sae(e)&&!V(e.coord)&&V(a)){var n=XE(e,t,i,r);if(e=ee(e),e.type&&k_[e.type]&&n.baseAxis&&n.valueAxis){var o=le(a,n.baseAxis.dim),s=le(a,n.valueAxis.dim),l=k_[e.type](t,n.valueAxis.dim,n.baseDataDim,n.valueDataDim,o,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!V(a)){e.coord=[];var u=r.getBaseAxis();if(u&&e.type&&k_[e.type]){var f=i.getOtherAxis(u);f&&(e.value=Zh(t,t.mapDimension(f.dim),e.type))}}else for(var p=e.coord,c=0;c<2;c++)k_[p[c]]&&(p[c]=Zh(t,t.mapDimension(a[c]),p[c]));return e}}function XE(r,e,t,i){var a={};return r.valueIndex!=null||r.valueDim!=null?(a.valueDataDim=r.valueIndex!=null?e.getDimension(r.valueIndex):r.valueDim,a.valueAxis=t.getAxis(lae(i,a.valueDataDim)),a.baseAxis=t.getOtherAxis(a.valueAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim)):(a.baseAxis=i.getBaseAxis(),a.valueAxis=t.getOtherAxis(a.baseAxis),a.baseDataDim=e.mapDimension(a.baseAxis.dim),a.valueDataDim=e.mapDimension(a.valueAxis.dim)),a}function lae(r,e){var t=r.getData().getDimensionInfo(e);return t&&t.coordDim}function sl(r,e){return r&&r.containData&&e.coord&&!WE(e)?r.containData(e.coord):!0}function K5(r,e,t){return r&&r.containZone&&e.coord&&t.coord&&!WE(e)&&!WE(t)?r.containZone(e.coord,t.coord):!0}function z_(r,e){return r?function(t,i,a,n){var o=n<2?t.coord&&t.coord[n]:t.value;return ya(o,e[n])}:function(t,i,a,n){return ya(t.value,e[n])}}function Zh(r,e,t){if(t==="average"){var i=0,a=0;return r.each(e,function(n,o){isNaN(n)||(i+=n,a++)}),i/a}else return t==="median"?r.getMedian(e):r.getDataExtent(e)[t==="max"?1:0]}var KE=ne(),uae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){this.markerGroupMap=W()},e.prototype.render=function(t,i,a){var n=this,o=this.markerGroupMap;o.each(function(s){KE(s).keep=!1}),i.eachSeries(function(s){var l=Fr.getMarkerModelFromSeries(s,n.type);l&&n.renderSeries(s,l,i,a)}),o.each(function(s){!KE(s).keep&&n.group.remove(s.group)}),fae(i,o,this.type)},e.prototype.markKeep=function(t){KE(t).keep=!0},e.prototype.toggleBlurSeries=function(t,i){var a=this;T(t,function(n){var o=Fr.getMarkerModelFromSeries(n,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(i?cm(l):lv(l))})}})},e.type="marker",e})(ze);function fae(r,e,t){r.eachSeries(function(i){var a=Fr.getMarkerModelFromSeries(i,t),n=e.get(i.id);if(a&&n&&n.group){var o=da(a),s=o.z,l=o.zlevel;tu(n.group,s,l)}})}var hc=uae;function q5(r,e,t){var i=e.coordinateSystem,a=t.getWidth(),n=t.getHeight(),o=i&&i.getArea&&i.getArea();r.each(function(s){var l=r.getItemModel(s),u=l.get("relativeTo")==="coordinate",f=u?o?o.width:0:a,p=u?o?o.height:0:n,c=u&&o?o.x:0,v=u&&o?o.y:0,h,d=j(l.get("x"),f)+c,m=j(l.get("y"),p)+v;if(!isNaN(d)&&!isNaN(m))h=[d,m];else if(e.getMarkerPosition)h=e.getMarkerPosition(r.getValues(r.dimensions,s));else if(i){var g=r.get(i.dimensions[0],s),y=r.get(i.dimensions[1],s);h=i.dataToPoint([g,y])}isNaN(d)||(h[0]=d),isNaN(m)||(h[1]=m),r.setItemLayout(s,h)})}var pae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,a){i.eachSeries(function(n){var o=Fr.getMarkerModelFromSeries(n,"markPoint");o&&(q5(o.getData(),n,a),this.markerGroupMap.get(n.id).updateLayout())},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new $n),p=cae(o,t,i);i.setData(p),q5(i.getData(),t,n),p.each(function(c){var v=p.getItemModel(c),h=v.getShallow("symbol"),d=v.getShallow("symbolSize"),m=v.getShallow("symbolRotate"),g=v.getShallow("symbolOffset"),y=v.getShallow("symbolKeepAspect");if(J(h)||J(d)||J(m)||J(g)){var _=i.getRawValue(c),x=i.getDataParams(c);J(h)&&(h=h(_,x)),J(d)&&(d=d(_,x)),J(m)&&(m=m(_,x)),J(g)&&(g=g(_,x))}var S=v.getModel("itemStyle").getItemStyle(),b=v.get("z2"),w=Gn(l,"color");S.fill||(S.fill=w),p.setItemVisual(c,{z2:Z(b,0),symbol:h,symbolSize:d,symbolRotate:m,symbolOffset:g,symbolKeepAspect:y,style:S})}),f.updateData(p),this.group.add(f.group),p.eachItemGraphicEl(function(c){c.traverse(function(v){se(v).dataModel=i})}),this.markKeep(f),f.group.silent=i.get("silent")||t.get("silent")},e.type="markPoint",e})(hc);function cae(r,e,t){var i;r?i=U(r&&r.dimensions,function(s){var l=e.getData(),u=l.getDimensionInfo(l.mapDimension(s))||{};return k(k({},u),{name:s,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var a=new Ct(i,t),n=U(t.get("data"),me(ol,e));r&&(n=Ie(n,me(sl,r)));var o=z_(!!r,i);return a.initData(n,null,o),a}var j5=pae;function qE(r){r.registerComponentModel(Z5),r.registerComponentView(j5),r.registerPreprocessor(function(e){$u(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var vae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,a){return new e(t,i,a)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e})(Fr),J5=vae;var V_=ne(),hae=function(r,e,t,i){var a=r.getData(),n;if(V(i))n=i;else{var o=i.type;if(o==="min"||o==="max"||o==="average"||o==="median"||i.xAxis!=null||i.yAxis!=null){var s=void 0,l=void 0;if(i.yAxis!=null||i.xAxis!=null)s=e.getAxis(i.yAxis!=null?"y":"x"),l=Et(i.yAxis,i.xAxis);else{var u=XE(i,a,e,r);s=u.valueAxis;var f=lp(a,u.valueDataDim);l=Zh(a,f,o)}var p=s.dim==="x"?0:1,c=1-p,v=ee(i),h={coord:[]};v.type=null,v.coord=[],v.coord[c]=-1/0,h.coord[c]=1/0;var d=t.get("precision");d>=0&&_e(l)&&(l=+l.toFixed(Math.min(d,20))),v.coord[p]=h.coord[p]=l,n=[v,h,{type:o,valueIndex:i.valueIndex,value:l}]}else n=[]}var m=[ol(r,n[0]),ol(r,n[1]),k({},n[2])];return m[2].type=m[2].type||null,ve(m[2],m[0]),ve(m[2],m[1]),m};function U_(r){return!isNaN(r)&&!isFinite(r)}function Q5(r,e,t,i){var a=1-r,n=i.dimensions[r];return U_(e[a])&&U_(t[a])&&e[r]===t[r]&&i.getAxis(n).containData(e[r])}function dae(r,e){if(r.type==="cartesian2d"){var t=e[0].coord,i=e[1].coord;if(t&&i&&(Q5(1,t,i,r)||Q5(0,t,i,r)))return!0}return sl(r,e[0])&&sl(r,e[1])}function jE(r,e,t,i,a){var n=i.coordinateSystem,o=r.getItemModel(e),s,l=j(o.get("x"),a.getWidth()),u=j(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition)s=i.getMarkerPosition(r.getValues(r.dimensions,e));else{var f=n.dimensions,p=r.get(f[0],e),c=r.get(f[1],e);s=n.dataToPoint([p,c])}if(Aa(n,"cartesian2d")){var v=n.getAxis("x"),h=n.getAxis("y"),f=n.dimensions;U_(r.get(f[0],e))?s[0]=v.toGlobalCoord(v.getExtent()[t?0:1]):U_(r.get(f[1],e))&&(s[1]=h.toGlobalCoord(h.getExtent()[t?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(e,s)}var mae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,a){i.eachSeries(function(n){var o=Fr.getMarkerModelFromSeries(n,"markLine");if(o){var s=o.getData(),l=V_(o).from,u=V_(o).to;l.each(function(f){jE(l,f,!0,n,a),jE(u,f,!1,n,a)}),s.each(function(f){s.setItemLayout(f,[l.getItemLayout(f),u.getItemLayout(f)])}),this.markerGroupMap.get(n.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,new Xp);this.group.add(f.group);var p=gae(o,t,i),c=p.from,v=p.to,h=p.line;V_(i).from=c,V_(i).to=v,i.setData(h);var d=i.get("symbol"),m=i.get("symbolSize"),g=i.get("symbolRotate"),y=i.get("symbolOffset");V(d)||(d=[d,d]),V(m)||(m=[m,m]),V(g)||(g=[g,g]),V(y)||(y=[y,y]),p.from.each(function(x){_(c,x,!0),_(v,x,!1)}),h.each(function(x){var S=h.getItemModel(x),b=S.getModel("lineStyle").getLineStyle();h.setItemLayout(x,[c.getItemLayout(x),v.getItemLayout(x)]);var w=S.get("z2");b.stroke==null&&(b.stroke=c.getItemVisual(x,"style").fill),h.setItemVisual(x,{z2:Z(w,0),fromSymbolKeepAspect:c.getItemVisual(x,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(x,"symbolOffset"),fromSymbolRotate:c.getItemVisual(x,"symbolRotate"),fromSymbolSize:c.getItemVisual(x,"symbolSize"),fromSymbol:c.getItemVisual(x,"symbol"),toSymbolKeepAspect:v.getItemVisual(x,"symbolKeepAspect"),toSymbolOffset:v.getItemVisual(x,"symbolOffset"),toSymbolRotate:v.getItemVisual(x,"symbolRotate"),toSymbolSize:v.getItemVisual(x,"symbolSize"),toSymbol:v.getItemVisual(x,"symbol"),style:b})}),f.updateData(h),p.line.eachItemGraphicEl(function(x){se(x).dataModel=i,x.traverse(function(S){se(S).dataModel=i})});function _(x,S,b){var w=x.getItemModel(S);jE(x,S,b,t,n);var A=w.getModel("itemStyle").getItemStyle();A.fill==null&&(A.fill=Gn(l,"color")),x.setItemVisual(S,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Z(w.get("symbolOffset",!0),y[b?0:1]),symbolRotate:Z(w.get("symbolRotate",!0),g[b?0:1]),symbolSize:Z(w.get("symbolSize"),m[b?0:1]),symbol:Z(w.get("symbol",!0),d[b?0:1]),style:A})}this.markKeep(f),f.group.silent=i.get("silent")||t.get("silent")},e.type="markLine",e})(hc);function gae(r,e,t){var i;r?i=U(r&&r.dimensions,function(u){var f=e.getData(),p=f.getDimensionInfo(f.mapDimension(u))||{};return k(k({},p),{name:u,ordinalMeta:null})}):i=[{name:"value",type:"float"}];var a=new Ct(i,t),n=new Ct(i,t),o=new Ct([],t),s=U(t.get("data"),me(hae,e,r,t));r&&(s=Ie(s,me(dae,r)));var l=z_(!!r,i);return a.initData(U(s,function(u){return u[0]}),null,l),n.initData(U(s,function(u){return u[1]}),null,l),o.initData(U(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:n,line:o}}var $5=mae;function JE(r){r.registerComponentModel(J5),r.registerComponentView($5),r.registerPreprocessor(function(e){$u(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var yae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.createMarkerModelFromSeries=function(t,i,a){return new e(t,i,a)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e})(Fr),e3=yae;var B_=ne(),_ae=function(r,e,t,i){var a=i[0],n=i[1];if(!(!a||!n)){var o=ol(r,a),s=ol(r,n),l=o.coord,u=s.coord;l[0]=Et(l[0],-1/0),l[1]=Et(l[1],-1/0),u[0]=Et(u[0],1/0),u[1]=Et(u[1],1/0);var f=pl([{},o,s]);return f.coord=[o.coord,s.coord],f.x0=o.x,f.y0=o.y,f.x1=s.x,f.y1=s.y,f}};function F_(r){return!isNaN(r)&&!isFinite(r)}function t3(r,e,t,i){var a=1-r;return F_(e[a])&&F_(t[a])}function xae(r,e){var t=e.coord[0],i=e.coord[1],a={coord:t,x:e.x0,y:e.y0},n={coord:i,x:e.x1,y:e.y1};return Aa(r,"cartesian2d")?t&&i&&(t3(1,t,i,r)||t3(0,t,i,r))?!0:K5(r,a,n):sl(r,a)||sl(r,n)}function r3(r,e,t,i,a){var n=i.coordinateSystem,o=r.getItemModel(e),s,l=j(o.get(t[0]),a.getWidth()),u=j(o.get(t[1]),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(i.getMarkerPosition){var f=r.getValues(["x0","y0"],e),p=r.getValues(["x1","y1"],e),c=n.clampData(f),v=n.clampData(p),h=[];t[0]==="x0"?h[0]=c[0]>v[0]?p[0]:f[0]:h[0]=c[0]>v[0]?f[0]:p[0],t[1]==="y0"?h[1]=c[1]>v[1]?p[1]:f[1]:h[1]=c[1]>v[1]?f[1]:p[1],s=i.getMarkerPosition(h,t,!0)}else{var d=r.get(t[0],e),m=r.get(t[1],e),g=[d,m];n.clampData&&n.clampData(g,g),s=n.dataToPoint(g,!0)}if(Aa(n,"cartesian2d")){var y=n.getAxis("x"),_=n.getAxis("y"),d=r.get(t[0],e),m=r.get(t[1],e);F_(d)?s[0]=y.toGlobalCoord(y.getExtent()[t[0]==="x0"?0:1]):F_(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[t[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var i3=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Sae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.updateTransform=function(t,i,a){i.eachSeries(function(n){var o=Fr.getMarkerModelFromSeries(n,"markArea");if(o){var s=o.getData();s.each(function(l){var u=U(i3,function(p){return r3(s,l,p,n,a)});s.setItemLayout(l,u);var f=s.getItemGraphicEl(l);f.setShape("points",u)})}},this)},e.prototype.renderSeries=function(t,i,a,n){var o=t.coordinateSystem,s=t.id,l=t.getData(),u=this.markerGroupMap,f=u.get(s)||u.set(s,{group:new Q});this.group.add(f.group),this.markKeep(f);var p=bae(o,t,i);i.setData(p),p.each(function(c){var v=U(i3,function(E){return r3(p,c,E,t,n)}),h=o.getAxis("x").scale,d=o.getAxis("y").scale,m=h.getExtent(),g=d.getExtent(),y=[h.parse(p.get("x0",c)),h.parse(p.get("x1",c))],_=[d.parse(p.get("y0",c)),d.parse(p.get("y1",c))];dt(y),dt(_);var x=!(m[0]>y[1]||m[1]<y[0]||g[0]>_[1]||g[1]<_[0]),S=!x;p.setItemLayout(c,{points:v,allClipped:S});var b=p.getItemModel(c),w=b.getModel("itemStyle").getItemStyle(),A=b.get("z2"),C=Gn(l,"color");w.fill||(w.fill=C,H(w.fill)&&(w.fill=rs(w.fill,.4))),w.stroke||(w.stroke=C),p.setItemVisual(c,"style",w),p.setItemVisual(c,"z2",Z(A,0))}),p.diff(B_(f).data).add(function(c){var v=p.getItemLayout(c),h=p.getItemVisual(c,"z2");if(!v.allClipped){var d=new yt({z2:Z(h,0),shape:{points:v.points}});p.setItemGraphicEl(c,d),f.group.add(d)}}).update(function(c,v){var h=B_(f).data.getItemGraphicEl(v),d=p.getItemLayout(c),m=p.getItemVisual(c,"z2");d.allClipped?h&&f.group.remove(h):(h?Ae(h,{z2:Z(m,0),shape:{points:d.points}},i,c):h=new yt({shape:{points:d.points}}),p.setItemGraphicEl(c,h),f.group.add(h))}).remove(function(c){var v=B_(f).data.getItemGraphicEl(c);f.group.remove(v)}).execute(),p.eachItemGraphicEl(function(c,v){var h=p.getItemModel(v),d=p.getItemVisual(v,"style");c.useStyle(p.getItemVisual(v,"style")),it(c,tt(h),{labelFetcher:i,labelDataIndex:v,defaultText:p.getName(v)||"",inheritColor:H(d.fill)?rs(d.fill,1):N.color.neutral99}),st(c,h),Be(c,null,null,h.get(["emphasis","disabled"])),se(c).dataModel=i}),B_(f).data=p,f.group.silent=i.get("silent")||t.get("silent")},e.type="markArea",e})(hc);function bae(r,e,t){var i,a,n=["x0","y0","x1","y1"];if(r){var o=U(r&&r.dimensions,function(u){var f=e.getData(),p=f.getDimensionInfo(f.mapDimension(u))||{};return k(k({},p),{name:u,ordinalMeta:null})});a=U(n,function(u,f){return{name:u,type:o[f%2].type}}),i=new Ct(a,t)}else a=[{name:"value",type:"float"}],i=new Ct(a,t);var s=U(t.get("data"),me(_ae,e,r,t));r&&(s=Ie(s,me(xae,r)));var l=r?function(u,f,p,c){var v=u.coord[Math.floor(c/2)][c%2];return ya(v,a[c])}:function(u,f,p,c){return ya(u.value,a[c])};return i.initData(s,null,l),i.hasItemOption=!0,i}var a3=Sae;function QE(r){r.registerComponentModel(e3),r.registerComponentView(a3),r.registerPreprocessor(function(e){$u(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var wae=function(r,e){if(e==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},Tae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.layoutMode={type:"box",ignoreSize:!0},t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),this._updateSelector(t)},e.prototype._updateSelector=function(t){var i=t.selector,a=this.ecModel;i===!0&&(i=t.selector=["all","inverse"]),V(i)&&T(i,function(n,o){H(n)&&(n={type:n}),i[o]=ve(n,wae(a,n.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var i=!1,a=0;a<t.length;a++){var n=t[a].get("name");if(this.isSelected(n)){this.select(n),i=!0;break}}!i&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var i=[],a=[];t.eachRawSeries(function(l){var u=l.name;a.push(u);var f;if(l.legendVisualProvider){var p=l.legendVisualProvider,c=p.getAllNames();t.isSeriesFiltered(l)||(a=a.concat(c)),c.length?i=i.concat(c):f=!0}else f=!0;f&&Af(l)&&i.push(l.name)}),this._availableNames=a;var n=this.get("data")||i,o=W(),s=U(n,function(l){return(H(l)||_e(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ee(l,this,this.ecModel))},this);this._data=Ie(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var i=this.option.selected,a=this.get("selectedMode");if(a==="single"){var n=this._data;T(n,function(o){i[o.get("name")]=!1})}i[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var i=this.option.selected;i.hasOwnProperty(t)||(i[t]=!0),this[i[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,i=this.option.selected;T(t,function(a){i[a.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,i=this.option.selected;T(t,function(a){var n=a.get("name",!0);i.hasOwnProperty(n)||(i[n]=!0),i[n]=!i[n]})},e.prototype.isSelected=function(t){var i=this.option.selected;return!(i.hasOwnProperty(t)&&!i[t])&&le(this._availableNames,t)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:N.size.m,align:"auto",backgroundColor:N.color.transparent,borderColor:N.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:N.color.disabled,inactiveBorderColor:N.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:N.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:N.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:N.color.tertiary,borderWidth:1,borderColor:N.color.border},emphasis:{selectorLabel:{show:!0,color:N.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},e})(Se),Kh=Tae;var dc=me,$E=T,G_=Q,Cae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!1,t}return e.prototype.init=function(){this.group.add(this._contentGroup=new G_),this.group.add(this._selectorGroup=new G_),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,i,a){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!t.get("show",!0)){var o=t.get("align"),s=t.get("orient");(!o||o==="auto")&&(o=t.get("left")==="right"&&s==="vertical"?"right":"left");var l=t.get("selector",!0),u=t.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,t,i,a,l,s,u);var f=Qe(t,a).refContainer,p=t.getBoxLayoutParams(),c=t.get("padding"),v=He(p,f,c),h=this.layoutInner(t,o,v,n,l,u),d=He($({width:h.width,height:h.height},p),f,c);this.group.x=d.x-h.x,this.group.y=d.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=E_(h,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,i,a,n,o,s,l){var u=this.getContentGroup(),f=W(),p=i.get("selectedMode"),c=i.get("triggerEvent"),v=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&v.push(h.id)}),$E(i.getData(),function(h,d){var m=this,g=h.get("name");if(!this.newlineDisabled&&(g===""||g===`
39
+ `)){var y=new G_;y.newline=!0,u.add(y);return}var _=a.getSeriesByName(g)[0];if(!f.get(g))if(_){var x=_.getData(),S=x.getVisual("legendLineStyle")||{},b=x.getVisual("legendIcon"),w=x.getVisual("style"),A=this._createItem(_,g,d,h,i,t,S,w,b,p,n);A.on("click",dc(n3,g,null,n,v)).on("mouseover",dc(eD,_.name,null,n,v)).on("mouseout",dc(tD,_.name,null,n,v)),a.ssr&&A.eachChild(function(C){var E=se(C);E.seriesIndex=_.seriesIndex,E.dataIndex=d,E.ssrType="legend"}),c&&A.eachChild(function(C){m.packEventData(C,i,_,d,g)}),f.set(g,!0)}else a.eachRawSeries(function(C){var E=this;if(!f.get(g)&&C.legendVisualProvider){var D=C.legendVisualProvider;if(!D.containName(g))return;var I=D.indexOfName(g),M=D.getItemVisual(I,"style"),P=D.getItemVisual(I,"legendIcon"),O=Wt(M.fill);O&&O[3]===0&&(O[3]=.2,M=k(k({},M),{fill:Ir(O,"rgba")}));var R=this._createItem(C,g,d,h,i,t,{},M,P,p,n);R.on("click",dc(n3,null,g,n,v)).on("mouseover",dc(eD,null,g,n,v)).on("mouseout",dc(tD,null,g,n,v)),a.ssr&&R.eachChild(function(z){var B=se(z);B.seriesIndex=C.seriesIndex,B.dataIndex=d,B.ssrType="legend"}),c&&R.eachChild(function(z){E.packEventData(z,i,C,d,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,i,n,s,l)},e.prototype.packEventData=function(t,i,a,n,o){var s={componentType:"legend",componentIndex:i.componentIndex,dataIndex:n,value:o,seriesIndex:a.seriesIndex};se(t).eventData=s},e.prototype._createSelector=function(t,i,a,n,o){var s=this.getSelectorGroup();$E(t,function(u){var f=u.type,p=new be({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});s.add(p);var c=i.getModel("selectorLabel"),v=i.getModel(["emphasis","selectorLabel"]);it(p,{normal:c,emphasis:v},{defaultText:u.title}),ca(p)})},e.prototype._createItem=function(t,i,a,n,o,s,l,u,f,p,c){var v=t.visualDrawType,h=o.get("itemWidth"),d=o.get("itemHeight"),m=o.isSelected(i),g=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),_=n.get("icon");f=_||f||"roundRect";var x=Aae(f,n,l,u,v,m,c),S=new G_,b=n.getModel("textStyle");if(J(t.getLegendIcon)&&(!_||_==="inherit"))S.add(t.getLegendIcon({itemWidth:h,itemHeight:d,icon:f,iconRotate:g,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?g==="inherit"?t.getData().getVisual("symbolRotate"):g:0;S.add(Eae({itemWidth:h,itemHeight:d,icon:f,iconRotate:w,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:y}))}var A=s==="left"?h+5:-5,C=s,E=o.get("formatter"),D=i;H(E)&&E?D=E.replace("{name}",i??""):J(E)&&(D=E(i));var I=m?b.getTextColor():n.get("inactiveColor");S.add(new be({style:Xe(b,{text:D,x:A,y:d/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var M=new de({shape:S.getBoundingRect(),style:{fill:"transparent"}}),P=n.getModel("tooltip");return P.get("show")&&Nr({el:M,componentModel:o,itemName:i,itemTooltipOption:P.option}),S.add(M),S.eachChild(function(O){O.silent=!0}),M.silent=!p,this.getContentGroup().add(S),ca(S),S.__legendDataIndex=a,S},e.prototype.layoutInner=function(t,i,a,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Qa(t.get("orient"),l,t.get("itemGap"),a.width,a.height);var f=l.getBoundingRect(),p=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Qa("horizontal",u,t.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],h=t.get("selectorButtonGap",!0),d=t.getOrient().index,m=d===0?"width":"height",g=d===0?"height":"width",y=d===0?"y":"x";s==="end"?v[d]+=f[m]+h:p[d]+=c[m]+h,v[1-d]+=f[g]/2-c[g]/2,u.x=v[0],u.y=v[1],l.x=p[0],l.y=p[1];var _={x:0,y:0};return _[m]=f[m]+h+c[m],_[g]=Math.max(f[g],c[g]),_[y]=Math.min(0,c[y]+v[1-d]),_}else return l.x=p[0],l.y=p[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e})(ze);function Aae(r,e,t,i,a,n,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),$E(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",p=l.getShallow("decal");u.decal=!p||p==="inherit"?i.decal:rn(p,o),u.fill==="inherit"&&(u.fill=i[a]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?i:t).opacity),s(u,i);var c=e.getModel("lineStyle"),v=c.getLineStyle();if(s(v,t),u.fill==="auto"&&(u.fill=i.fill),u.stroke==="auto"&&(u.stroke=i.fill),v.stroke==="auto"&&(v.stroke=i.fill),!n){var h=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=h==="auto"?i.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function Eae(r){var e=r.icon||"roundRect",t=je(e,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return t.setStyle(r.itemStyle),t.rotation=(r.iconRotate||0)*Math.PI/180,t.setOrigin([r.itemWidth/2,r.itemHeight/2]),e.indexOf("empty")>-1&&(t.style.stroke=t.style.fill,t.style.fill=N.color.neutral00,t.style.lineWidth=2),t}function n3(r,e,t,i){tD(r,e,t,i),t.dispatchAction({type:"legendToggleSelect",name:r??e}),eD(r,e,t,i)}function eD(r,e,t,i){t.usingTHL()||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:i})}function tD(r,e,t,i){t.usingTHL()||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:i})}var H_=Cae;function qh(r,e,t){var i=r==="allSelect"||r==="inverseSelect",a={},n=[];t.eachComponent({mainType:"legend",query:e},function(s){i?s[r]():s[r](e.name),o3(s,a),n.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){T(a,function(l,u){s[l?"select":"unSelect"](u)}),o3(s,o)}),i?{selected:o,legendIndex:n}:{name:e.name,selected:o}}function o3(r,e){var t=e||{};return T(r.getData(),function(i){var a=i.get("name");if(!(a===`
40
+ `||a==="")){var n=r.isSelected(a);ae(t,a)?t[a]=t[a]&&n:t[a]=n}}),t}function s3(r){r.registerAction("legendToggleSelect","legendselectchanged",me(qh,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",me(qh,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",me(qh,"inverseSelect")),r.registerAction("legendSelect","legendselected",me(qh,"select")),r.registerAction("legendUnSelect","legendunselected",me(qh,"unSelect"))}var l3=Mn(Dae);function Dae(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var i=0;i<e.length;i++)if(!e[i].isSelected(t.name))return!1;return!0})}function Y_(r){r.registerComponentModel(Kh),r.registerComponentView(H_),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,l3),r.registerSubTypeDefaulter("legend",function(){return"plain"}),s3(r)}var Mae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,i,a){var n=Mi(t);r.prototype.init.call(this,t,i,a),u3(this,t,n)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),u3(this,this.option,t)},e.type="legend.scroll",e.defaultOption=kr(Kh.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:N.color.accent50,pageIconInactiveColor:N.color.accent10,pageIconSize:15,pageTextStyle:{color:N.color.tertiary},animationDurationUpdate:800}),e})(Kh);function u3(r,e,t){var i=r.getOrient(),a=[1,1];a[i.index]=0,wr(e,t,{type:"box",ignoreSize:!!a})}var f3=Mae;var p3=Q,rD=["width","height"],iD=["x","y"],Iae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new p3),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new p3)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,i,a,n,o,s,l){var u=this;r.prototype.renderInner.call(this,t,i,a,n,o,s,l);var f=this._controllerGroup,p=i.get("pageIconSize",!0),c=V(p)?p:[p,p];h("pagePrev",0);var v=i.getModel("pageTextStyle");f.add(new be({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1);function h(d,m){var g=d+"DataIndex",y=ja(i.get("pageIcons",!0)[i.getOrient().name][m],{onclick:X(u._pageGo,u,g,i,n)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});y.name=d,f.add(y)}},e.prototype.layoutInner=function(t,i,a,n,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=rD[u],p=iD[u],c=rD[1-u],v=iD[1-u];o&&Qa("horizontal",l,t.get("selectorItemGap",!0));var h=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),m=[-d.x,-d.y],g=ee(a);o&&(g[f]=a[f]-d[f]-h);var y=this._layoutContentAndController(t,n,g,u,f,c,v,p);if(o){if(s==="end")m[u]+=y[f]+h;else{var _=d[f]+h;m[u]-=_,y[p]-=_}y[f]+=d[f]+h,m[1-u]+=y[v]+y[c]/2-d[c]/2,y[c]=Math.max(y[c],d[c]),y[v]=Math.min(y[v],d[v]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,i,a,n,o,s,l,u){var f=this.getContentGroup(),p=this._containerGroup,c=this._controllerGroup;Qa(t.get("orient"),f,t.get("itemGap"),n?a.width:null,n?null:a.height),Qa("horizontal",c,t.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),h=c.getBoundingRect(),d=this._showController=v[o]>a[o],m=[-v.x,-v.y];i||(m[n]=f[u]);var g=[0,0],y=[-h.x,-h.y],_=Z(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var x=t.get("pageButtonPosition",!0);x==="end"?y[n]+=a[o]-h[o]:g[n]+=h[o]+_}y[1-n]+=v[s]/2-h[s]/2,f.setPosition(m),p.setPosition(g),c.setPosition(y);var S={x:0,y:0};if(S[o]=d?a[o]:v[o],S[s]=Math.max(v[s],h[s]),S[l]=Math.min(0,h[l]+y[1-n]),p.__rectSize=a[o],d){var b={x:0,y:0};b[o]=Math.max(a[o]-h[o]-_,0),b[s]=S[s],p.setClipPath(new de({shape:b})),p.__rectSize=b[o]}else c.eachChild(function(A){A.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(t);return w.pageIndex!=null&&Ae(f,{x:w.contentPosition[0],y:w.contentPosition[1]},d?t:null),this._updatePageInfoView(t,w),S},e.prototype._pageGo=function(t,i,a){var n=this._getPageInfo(i)[t];n!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:i.id})},e.prototype._updatePageInfoView=function(t,i){var a=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var p=f+"DataIndex",c=i[p]!=null,v=a.childOfName(f);v&&(v.setStyle("fill",c?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var n=a.childOfName("pageText"),o=t.get("pageFormatter"),s=i.pageIndex,l=s!=null?s+1:0,u=i.pageCount;n&&o&&n.setStyle("text",H(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var i=t.get("scrollDataIndex",!0),a=this.getContentGroup(),n=this._containerGroup.__rectSize,o=t.getOrient().index,s=rD[o],l=iD[o],u=this._findTargetItemIndex(i),f=a.children(),p=f[u],c=f.length,v=c?1:0,h={contentPosition:[a.x,a.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return h;var d=x(p);h.contentPosition[o]=-d.s;for(var m=u+1,g=d,y=d,_=null;m<=c;++m)_=x(f[m]),(!_&&y.e>g.s+n||_&&!S(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(h.pageNextDataIndex==null&&(h.pageNextDataIndex=g.i),++h.pageCount)),y=_;for(var m=u-1,g=d,y=d,_=null;m>=-1;--m)_=x(f[m]),(!_||!S(y,_.s))&&g.i<y.i&&(y=g,h.pagePrevDataIndex==null&&(h.pagePrevDataIndex=g.i),++h.pageCount,++h.pageIndex),g=_;return h;function x(b){if(b){var w=b.getBoundingRect(),A=w[l]+b[l];return{s:A,e:A+w[s],i:b.__legendDataIndex}}}function S(b,w){return b.e>=w&&b.s<=w+n}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var i,a=this.getContentGroup(),n;return a.eachChild(function(o,s){var l=o.__legendDataIndex;n==null&&l!=null&&(n=s),l===t&&(i=s)}),i??n},e.type="legend.scroll",e})(H_),c3=Iae;function aD(r){r.registerAction("legendScroll","legendscroll",function(e,t){var i=e.scrollDataIndex;i!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(a){a.setScrollDataIndex(i)})})}function v3(r){Ce(Y_),r.registerComponentModel(f3),r.registerComponentView(c3),aD(r)}function nD(r){Ce(Y_),Ce(v3)}var Lae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.inside",e.defaultOption=kr(il.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e})(il),h3=Lae;var oD=ne();function d3(r,e,t){oD(r).coordSysRecordMap.each(function(i){var a=i.dataZoomInfoMap.get(e.uid);a&&(a.getRange=t)})}function m3(r,e){for(var t=oD(r).coordSysRecordMap,i=t.keys(),a=0;a<i.length;a++){var n=i[a],o=t.get(n),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||g3(t,o))}}}function g3(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function Pae(r,e){var t={model:e,containsPoint:me(Oae,e),dispatchAction:me(Rae,r),dataZoomInfoMap:null,controller:null},i=t.controller=new Oi(r.getZr());return T(["pan","zoom","scrollMove"],function(a){i.on(a,function(n){var o=[];t.dataZoomInfoMap.each(function(s){if(n.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,n);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&t.dispatchAction(o)})}),t}function Rae(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Oae(r,e,t,i){return r.coordinateSystem.containPoint([t,i])}function Nae(r,e,t){var i,a="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0,s,l;return r.each(function(u){var f=u.model,p=f.get("disabled",!0)?!1:f.get("zoomLock",!0)?"move":!0;n[a+p]>n[a+i]&&(i=p),o=o&&f.get("preventDefaultMouseMove",!0),s=Z(f.get("cursorGrab",!0),s),l=Z(f.get("cursorGrabbing",!0),l)}),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:t,zInfo:{component:e.model},triggerInfo:{roamTrigger:null,isInSelf:e.containsPoint},cursorGrab:s,cursorGrabbing:l}}}function y3(r){r.registerUpdateLifecycle("coordsys:aftercreate",function(e,t){var i=oD(t),a=i.coordSysRecordMap||(i.coordSysRecordMap=W());a.each(function(n){n.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(n){var o=T_(n);T(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,Pae(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=W());f.set(n.uid,{dzReferCoordSysInfo:s,model:n,getRange:null})})}),a.each(function(n){var o=n.controller,s,l=n.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){g3(a,n);return}var f=Nae(l,n,t);o.enable(f.controlType,f.opt),_a(n,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var zae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return e.prototype.render=function(t,i,a){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),d3(a,t,{pan:X(sD.pan,this),zoom:X(sD.zoom,this),scrollMove:X(sD.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){m3(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e})(cc),sD={zoom:function(r,e,t,i){var a=this.range,n=a.slice(),o=r.axisModels[0];if(o){var s=lD[e](null,[i.originX,i.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(n[1]-n[0])+n[0],u=Math.max(1/i.scale,0);n[0]=(n[0]-l)*u+l,n[1]=(n[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(oi(0,n,[0,100],0,f.minSpan,f.maxSpan),this.range=n,a[0]!==n[0]||a[1]!==n[1])return n}},pan:_3(function(r,e,t,i,a,n){var o=lD[i]([n.oldX,n.oldY],[n.newX,n.newY],e,a,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:_3(function(r,e,t,i,a,n){var o=lD[i]([0,0],[n.scrollDelta,n.scrollDelta],e,a,t);return o.signal*(r[1]-r[0])*n.scrollDelta})};function _3(r){return function(e,t,i,a){var n=this.range,o=n.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,i,a);if(oi(l,o,[0,100],"all"),this.range=o,n[0]!==o[0]||n[1]!==o[1])return o}}}var lD={grid:function(r,e,t,i,a){var n=t.axis,o={},s=a.model.coordinateSystem.getRect();return r=r||[0,0],n.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=n.inverse?-1:1),o},polar:function(r,e,t,i,a){var n=t.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],e=s.pointToCoord(e),t.mainType==="radiusAxis"?(o.pixel=e[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=n.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=n.inverse?-1:1),o},singleAxis:function(r,e,t,i,a){var n=t.axis,o=a.model.coordinateSystem.getRect(),s={};return r=r||[0,0],n.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=n.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=n.inverse?-1:1),s}},x3=zae;function jh(r){Ju(r),r.registerComponentModel(h3),r.registerComponentView(x3),y3(r)}var Vae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=kr(il.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:N.color.accent10,borderRadius:0,backgroundColor:N.color.transparent,dataBackground:{lineStyle:{color:N.color.accent30,width:.5},areaStyle:{color:N.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:N.color.accent40,width:.5},areaStyle:{color:N.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:N.color.neutral00,borderColor:N.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:N.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:N.color.tertiary},brushSelect:!0,brushStyle:{color:N.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:N.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e})(il),S3=Vae;var Jh=de,Uae=1,uD=30,Bae=7,Qh="horizontal",b3="vertical",Fae=5,Gae=["line","bar","candlestick","scatter"],Hae={easing:"cubicOut",duration:100,delay:0},Yae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._displayables={},t}return e.prototype.init=function(t,i){this.api=i,this._onBrush=X(this._onBrush,this),this._onBrushEnd=X(this._onBrushEnd,this)},e.prototype.render=function(t,i,a,n){if(r.prototype.render.apply(this,arguments),_a(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),t.get("show")===!1){this.group.removeAll();return}if(t.noTarget()){this._clear(),this.group.removeAll();return}(!n||n.type!=="dataZoom"||n.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Po(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var i=this._displayables.sliderGroup=new Q;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(i),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,i=this.api,a=t.get("brushSelect"),n=a?Bae:0,o=Qe(t,i).refContainer,s=this._findCoordRect(),l=t.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Qh?{right:o.width-s.x-s.width,top:o.height-uD-l-n,width:s.width,height:uD}:{right:l,top:s.y,width:uD,height:s.height},f=Mi(t.option);T(["right","top","width","height"],function(c){f[c]==="ph"&&(f[c]=u[c])});var p=He(f,o);this._location={x:p.x,y:p.y},this._size=[p.width,p.height],this._orient===b3&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,i=this._location,a=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),o=n&&n.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Qh&&!o?{scaleY:l?1:-1,scaleX:1}:a===Qh&&o?{scaleY:l?1:-1,scaleX:-1}:a===b3&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=t.getBoundingRect([s]),f=isNaN(u.x)?0:u.x,p=isNaN(u.y)?0:u.y;t.x=i.x-f,t.y=i.y-p,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,i=this._size,a=this._displayables.sliderGroup,n=t.get("brushSelect");a.add(new Jh({silent:!0,shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Jh({shape:{x:0,y:0,width:i[0],height:i[1]},style:{fill:"transparent"},z2:0,onclick:X(this._onClickPanel,this)}),s=this.api.getZr();n?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var i=this._size,a=this._shadowSize||[],n=t.series,o=n.getRawData(),s=n.getShadowDim&&n.getShadowDim(),l=s&&o.getDimensionInfo(s)?n.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||i[0]!==a[0]||i[1]!==a[1]){var p=o.getDataExtent(t.thisDim),c=o.getDataExtent(l),v=(c[1]-c[0])*.3;c=[c[0]-v,c[1]+v];var h=[0,i[1]],d=[0,i[0]],m=[[i[0],0],[0,0]],g=[],y=d[1]/Math.max(1,o.count()-1),_=i[0]/(p[1]-p[0]),x=t.thisAxis.type==="time",S=-y,b=Math.round(o.count()/i[0]),w;o.each([t.thisDim,l],function(I,M,P){if(b>0&&P%b){x||(S+=y);return}S=x?(+I-p[0])*_:S+y;var O=M==null||isNaN(M)||M==="",R=O?0:Ue(M,c,h,!0);O&&!w&&P?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!O&&w&&(m.push([S,0]),g.push([S,0])),O||(m.push([S,R]),g.push([S,R])),w=O}),u=this._shadowPolygonPts=m,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[i[0],i[1]];var A=this.dataZoomModel;function C(I){var M=A.getModel(I?"selectedDataBackground":"dataBackground"),P=new Q,O=new yt({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new vt({shape:{points:f},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return P.add(O),P.add(R),P}for(var E=0;E<3;E++){var D=C(E===1);this._displayables.sliderGroup.add(D),this._displayables.dataShadowSegs.push(D)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,i=t.get("showDataShadow");if(i!==!1){var a,n=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();T(l,function(u){if(!a&&!(i!==!0&&le(Gae,u.get("type"))<0)){var f=n.getComponent(Na(o),s).axis,p=Wae(o),c,v=u.coordinateSystem;p!=null&&v.getOtherAxis&&(c=v.getOtherAxis(f).inverse),p=u.getData().mapDimension(p);var h=u.getData().mapDimension(o);a={thisAxis:f,series:u,thisDim:h,otherDim:p,otherAxisInverse:c}}},this)},this),a}},e.prototype._renderHandle=function(){var t=this.group,i=this._displayables,a=i.handles=[null,null],n=i.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,p=l.get("brushSelect"),c=i.filler=new Jh({silent:p,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(c),o.add(new Jh({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:Uae,fill:N.color.transparent}})),T([0,1],function(_){var x=l.get("handleIcon");!Nv[x]&&x.indexOf("path://")<0&&x.indexOf("image://")<0&&(x="path://"+x);var S=je(x,-1,0,2,2,null,!0);S.attr({cursor:Xae(this._orient),draggable:!0,drift:X(this._onDragMove,this,_),ondragend:X(this._onDragEnd,this),onmouseover:X(this._onOverDataInfoTriggerArea,this,!0),onmouseout:X(this._onOverDataInfoTriggerArea,this,!1),z2:5});var b=S.getBoundingRect(),w=l.get("handleSize");this._handleHeight=j(w,this._size[1]),this._handleWidth=b.width/b.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ca(S);var A=l.get("handleColor");A!=null&&(S.style.fill=A),o.add(a[_]=S);var C=l.getModel("textStyle"),E=l.get("handleLabel")||{},D=E.show||!1;t.add(n[_]=new be({silent:!0,invisible:!D,style:Xe(C,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:C.getTextColor(),font:C.getFont()}),z2:10}))},this);var v=c;if(p){var h=j(l.get("moveHandleSize"),s[1]),d=i.moveHandle=new de({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:h}}),m=h*.8,g=i.moveHandleIcon=je(l.get("moveHandleIcon"),-m/2,-m/2,m,m,N.color.neutral00,!0);g.silent=!0,g.y=s[1]+h/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(s[1]/2,Math.max(h,10));v=i.moveZone=new de({invisible:!0,shape:{y:s[1]-y,height:h+y}}),v.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(g),o.add(v)}v.attr({draggable:!0,cursor:"grab",drift:X(this._onActualMoveZoneDrift,this),ondragstart:X(this._onActualMoveZoneDragStart,this),ondragend:X(this._onActualMoveZoneDragEnd,this),onmouseover:X(this._onOverDataInfoTriggerArea,this,!0),onmouseout:X(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),i=this._getViewExtent();this._handleEnds=[Ue(t[0],[0,100],i,!0),Ue(t[1],[0,100],i,!0)]},e.prototype._updateInterval=function(t,i){var a=this.dataZoomModel,n=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];oi(i,n,o,a.get("zoomLock")?"all":t,s.minSpan!=null?Ue(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ue(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=dt([Ue(n[0],o,l,!0),Ue(n[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var i=this._displayables,a=this._handleEnds,n=dt(a.slice()),o=this._size;T([0,1],function(v){var h=i.handles[v],d=this._handleHeight;h.attr({scaleX:d/2,scaleY:d/2,x:a[v]+(v?-1:1),y:o[1]/2-d/2})},this),i.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:o[1]});var s={x:n[0],width:n[1]-n[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,n[0],n[1],o[0]],f=0;f<l.length;f++){var p=l[f],c=p.getClipPath();c||(c=new de,p.setClipPath(c)),c.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var i=this.dataZoomModel,a=this._displayables,n=a.handleLabels,o=this._orient,s=["",""];if(i.get("showDetail")){var l=i.findRepresentativeAxisProxy(),u=l.getAxisModel().axis.scale;if(l){var f=this._range,p;if(t){var c={start:f[0],end:f[1]},v=C_(i,l);if(v){var h=v.calculateDataWindow(c).percentInverted;c={start:h[0],end:h[1]}}p=l.calculateDataWindow(c)}else p=l.getWindow();s=[w3(i,0,p,u),w3(i,1,p,u)]}}var d=dt(this._handleEnds.slice());m.call(this,0),m.call(this,1);function m(g){var y=qa(a.handles[g].parent,this.group),_=eu(g===0?"right":"left",y),x=this._handleWidth/2+Fae,S=br([d[g]+(g===0?-x:x),this._size[1]/2],y);n[g].setStyle({x:S[0],y:S[1],verticalAlign:o===Qh?"middle":_,align:o===Qh?_:"center",text:s[g]})}},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var i=this.dataZoomModel.get("handleLabel")||{},a=i.show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=n.get("show")||!1,s=t||this._dragging?o:a,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(t,i,a){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,i,a)},e.prototype._onActualMoveZoneDragStart=function(t){t.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(t){t.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(t,i,a,n){this._dragging=!0,vi(n.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=br([i,a],o,!0),l=this._updateInterval(t,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var i=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(a[0]<0||a[0]>i[0]||a[1]<0||a[1]>i[1])){var n=this._handleEnds,o=(n[0]+n[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var i=t.offsetX,a=t.offsetY;this._brushStart=new he(i,a),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var i=this._displayables.brushRect;if(this._brushing=!1,!!i){i.attr("ignore",!0);var a=i.shape,n=+new Date;if(!(n-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[a.x,a.x+a.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();oi(0,l,o,0,u.minSpan!=null?Ue(u.minSpan,s,o,!0):null,u.maxSpan!=null?Ue(u.maxSpan,s,o,!0):null),this._range=dt([Ue(l[0],o,s,!0),Ue(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(vi(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,i){var a=this._displayables,n=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Jh({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,i),f=l.transformCoordToLocal(s.x,s.y),p=this._size;u[0]=Math.max(Math.min(p[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:p[1]})},e.prototype._dispatchZoomAction=function(t){var i=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?Hae:null,start:i[0],end:i[1]})},e.prototype._findCoordRect=function(){var t,i=T_(this.dataZoomModel).infoList;if(!t&&i.length){var a=i[0].model.coordinateSystem;t=a.getRect&&a.getRect()}if(!t){var n=this.api.getWidth(),o=this.api.getHeight();t={x:n*.2,y:o*.2,width:n*.6,height:o*.6}}return t},e.type="dataZoom.slider",e})(cc);function w3(r,e,t,i){var a=r.get("labelFormatter"),n=r.get("labelPrecision");(n==null||n==="auto")&&(n=t.valuePrecision);var o=t.value[e],s=o==null||isNaN(o)?"":At(i)||Hn(i)?i.getLabel({value:Math.round(o)}):isFinite(n)?Ne(o,n,!0):o+"";return J(a)?a(o,s):H(a)?a.replace("{value}",s):s}function Wae(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function Xae(r){return r==="vertical"?"ns-resize":"ew-resize"}var T3=Yae;function $h(r){r.registerComponentModel(S3),r.registerComponentView(T3),Ju(r)}function fD(r){Ce(jh),Ce($h)}var Zae={get:function(r,e,t){var i=ee((Kae[r]||{})[e]);return t&&V(i)?i[i.length-1]:i}},Kae={color:{active:["#006edd","#e0ffff"],inactive:[N.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},W_=Zae;var C3=Nt.mapVisual,qae=Nt.eachVisual,jae=V,pD=T,Jae=dt,Qae=Ue,$ae=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return e.prototype.init=function(t,i,a){this.mergeDefaultAndTheme(t,a)},e.prototype.optionUpdated=function(t,i){var a=this.option;!i&&L_(a,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var i=this.stateList;t=X(t,this),this.controllerVisuals=Wh(this.option.controller,i,t),this.targetVisuals=Wh(this.option.target,i,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this,i=this.option.seriesTargets;if(i){var a=[];return pD(i,function(l){if(l.seriesIndex!=null)a.push(l.seriesIndex);else if(l.seriesId!=null){var u;t.ecModel.eachSeries(function(f){f.id===l.seriesId&&(u=f)}),u&&a.push(u.componentIndex)}}),a}var n=this.option.seriesId,o=this.option.seriesIndex;o==null&&n==null&&(o="all");var s=Dn(this.ecModel,"series",{index:o,id:n},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return U(s,function(l){return l.componentIndex})},e.prototype.eachTargetSeries=function(t,i){T(this.getTargetSeriesIndices(),function(a){var n=this.ecModel.getSeriesByIndex(a);n&&t.call(i,n)},this)},e.prototype.isTargetSeries=function(t){var i=!1;return this.eachTargetSeries(function(a){a===t&&(i=!0)}),i},e.prototype.formatValueText=function(t,i,a){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;a=a||["<",">"],V(t)&&(t=t.slice(),u=!0);var f=i?t:u?[p(t[0]),p(t[1])]:p(t);if(H(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(J(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?a[0]+" "+f[1]:t[1]===s[1]?a[1]+" "+f[0]:f[0]+" - "+f[1];return f;function p(c){return c===s[0]?"min":c===s[1]?"max":(+c).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,i=Jae([t.min,t.max]);this._dataExtent=i},e.prototype.getDimension=function(t){var i=this,a=this.option.seriesTargets;if(a){var n=ui(a,function(o){return o.seriesIndex!=null&&o.seriesIndex===t||o.seriesId!=null&&o.seriesId===i.ecModel.getSeriesByIndex(t).id});if(n)return n.dimension}return this.option.dimension},e.prototype.getDataDimensionIndex=function(t){var i=t.hostModel.seriesIndex,a=this.getDimension(i);if(a!=null)return t.getDimensionIndex(a);for(var n=t.dimensions,o=n.length-1;o>=0;o--){var s=n[o],l=t.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,i=this.option,a={inRange:i.inRange,outOfRange:i.outOfRange},n=i.target||(i.target={}),o=i.controller||(i.controller={});ve(n,a),ve(o,a);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),f.call(this,o);function l(p){jae(i.color)&&!p.inRange&&(p.inRange={color:i.color.slice().reverse()}),p.inRange=p.inRange||{color:t.get("gradientColor")}}function u(p,c,v){var h=p[c],d=p[v];h&&!d&&(d=p[v]={},pD(h,function(m,g){if(Nt.isValidType(g)){var y=W_.get(g,"inactive",s);y!=null&&(d[g]=y,g==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(p){var c=(p.inRange||{}).symbol||(p.outOfRange||{}).symbol,v=(p.inRange||{}).symbolSize||(p.outOfRange||{}).symbolSize,h=this.get("inactiveColor"),d=this.getItemSymbol(),m=d||"roundRect";pD(this.stateList,function(g){var y=this.itemSize,_=p[g];_||(_=p[g]={color:s?h:[h]}),_.symbol==null&&(_.symbol=c&&ee(c)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=v&&ee(v)||(s?y[0]:[y[0],y[0]])),_.symbol=C3(_.symbol,function(b){return b==="none"?m:b});var x=_.symbolSize;if(x!=null){var S=-1/0;qae(x,function(b){b>S&&(S=b)}),_.symbolSize=C3(x,function(b){return Qae(b,[0,S],[0,y[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:N.color.transparent,borderColor:N.color.borderTint,contentColor:N.color.theme[0],inactiveColor:N.color.disabled,borderWidth:0,padding:N.size.m,textGap:10,precision:0,textStyle:{color:N.color.secondary}},e})(Se),mc=$ae;var A3=[20,140],ene=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(a){a.mappingMethod="linear",a.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(t[0]==null||isNaN(t[0]))&&(t[0]=A3[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=A3[1])},e.prototype._resetRange=function(){var t=this.getExtent(),i=this.option.range;!i||i.auto?(t.auto=1,this.option.range=t):V(i)&&(i[0]>i[1]&&i.reverse(),i[0]=Math.max(i[0],t[0]),i[1]=Math.min(i[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(t){var i=this.option.controller[t].symbolSize;i&&i[0]!==i[1]&&(i[0]=i[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),i=dt((this.get("range")||[]).slice());return i[0]>t[1]&&(i[0]=t[1]),i[1]>t[1]&&(i[1]=t[1]),i[0]<t[0]&&(i[0]=t[0]),i[1]<t[0]&&(i[1]=t[0]),i},e.prototype.getValueState=function(t){var i=this.option.range,a=this.getExtent(),n=Z(this.option.unboundedRange,!0);return(n&&i[0]<=a[0]||i[0]<=t)&&(n&&i[1]>=a[1]||t<=i[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[];return this.eachTargetSeries(function(a){var n=[],o=a.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&n.push(l)},this),i.push({seriesId:a.id,dataIndex:n})},this),i},e.prototype.getVisualMeta=function(t){var i=E3(this,"outOfRange",this.getExtent()),a=E3(this,"inRange",this.option.range.slice()),n=[];function o(v,h){n.push({value:v,color:t(v,h)})}for(var s=0,l=0,u=a.length,f=i.length;l<f&&(!a.length||i[l]<=a[0]);l++)i[l]<a[s]&&o(i[l],"outOfRange");for(var p=1;s<u;s++,p=0)p&&n.length&&o(a[s],"outOfRange"),o(a[s],"inRange");for(var p=1;l<f;l++)(!a.length||a[a.length-1]<i[l])&&(p&&(n.length&&o(n[n.length-1].value,"outOfRange"),p=0),o(i[l],"outOfRange"));var c=n.length;return{stops:n,outerColors:[c?n[0].color:"transparent",c?n[c-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=kr(mc.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:N.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:N.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:N.color.shadow}}),e})(mc);function E3(r,e,t){if(t[0]===t[1])return t.slice();for(var i=200,a=(t[1]-t[0])/i,n=t[0],o=[],s=0;s<=i&&n<t[1];s++)o.push(n),n+=a;return o.push(t[1]),o}var D3=ene;var tne=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}return e.prototype.init=function(t,i){this.ecModel=t,this.api=i},e.prototype.render=function(t,i,a,n){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,i,a,n)},e.prototype.renderBackground=function(t){var i=this.visualMapModel,a=ma(i.get("padding")||0),n=t.getBoundingRect();t.add(new de({z2:-1,silent:!0,shape:{x:n.x-a[3],y:n.y-a[0],width:n.width+a[3]+a[1],height:n.height+a[0]+a[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,i,a){a=a||{};var n=a.forceState,o=this.visualMapModel,s={};if(i==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,h){s[v]=h}var p=o.controllerVisuals[n||o.getValueState(t)],c=Nt.prepareVisualTypes(p);return T(c,function(v){var h=p[v];a.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",h=p.__alphaForOpacity),Nt.dependsOn(v,i)&&h&&h.applyVisual(t,u,f)}),s[i]},e.prototype.positionGroup=function(t){var i=this.visualMapModel,a=this.api,n=Qe(i,a).refContainer;_s(t,i.getBoxLayoutParams(),n)},e.prototype.doRender=function(t,i,a,n){},e.type="visualMap",e})(ze),X_=tne;var M3=[["left","right","width"],["top","bottom","height"]];function Z_(r,e,t){var i=r.option,a=i.align;if(a!=null&&a!=="auto")return a;for(var n={width:e.getWidth(),height:e.getHeight()},o=i.orient==="horizontal"?1:0,s=M3[o],l=[0,null,10],u={},f=0;f<3;f++)u[M3[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:i[s[f]];var p=[["x","width",3],["y","height",0]][o],c=He(u,n,i.padding);return s[(c.margin[p[2]]||0)+c[p[0]]+c[p[1]]*.5<n[p[1]]*.5?0:1]}function gc(r,e){return T(r||[],function(t){t.dataIndex!=null&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),r}var no=Ue,rne=T,L3=Math.min,cD=Math.max,ine=12,ane=6,nne=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}return e.prototype.init=function(t,i){r.prototype.init.call(this,t,i),this._hoverLinkFromSeriesMouseOver=X(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=X(this._hideIndicator,this)},e.prototype.doRender=function(t,i,a,n){(!n||n.type!=="selectDataRange"||n.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,i=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(i);var a=t.get("text");this._renderEndsText(i,a,0),this._renderEndsText(i,a,1),this._updateView(!0),this.renderBackground(i),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(i)},e.prototype._renderEndsText=function(t,i,a){if(i){var n=i[1-a];n=n!=null?n+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,a===0?-s:l[1]+s],u),p=this._applyTransform(a===0?"bottom":"top",u),c=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new be({style:Xe(v,{x:f[0],y:f[1],verticalAlign:v.get("verticalAlign")||(c==="horizontal"?"middle":p),align:v.get("align")||(c==="horizontal"?p:"center"),text:n})}))}},e.prototype._renderBar=function(t){var i=this.visualMapModel,a=this._shapes,n=i.itemSize,o=this._orient,s=this._useHandle,l=Z_(i,this.api,n),u=a.mainGroup=this._createBarGroup(l),f=new Q;u.add(f),f.add(a.outOfRange=P3()),f.add(a.inRange=P3(null,s?O3(this._orient):null,X(this._dragHandle,this,"all",!1),X(this._dragHandle,this,"all",!0))),f.setClipPath(new de({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var p=i.textStyleModel.getTextRect("\u56FD"),c=cD(p.width,p.height);s&&(a.handleThumbs=[],a.handleLabels=[],a.handleLabelPoints=[],this._createHandle(i,u,0,n,c,o),this._createHandle(i,u,1,n,c,o)),this._createIndicator(i,u,n,c,o),t.add(u)},e.prototype._createHandle=function(t,i,a,n,o,s){var l=X(this._dragHandle,this,a,!1),u=X(this._dragHandle,this,a,!0),f=Lr(t.get("handleSize"),n[0]),p=je(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),c=O3(this._orient);p.attr({cursor:c,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){vi(g.event)}}),p.x=n[0]/2,p.useStyle(t.getModel("handleStyle").getItemStyle()),p.setStyle({strokeNoScale:!0,strokeFirst:!0}),p.style.lineWidth*=2,p.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),So(p,!0),i.add(p);var v=this.visualMapModel.textStyleModel,h=new be({cursor:c,draggable:!0,drift:l,onmousemove:function(g){vi(g.event)},ondragend:u,style:Xe(v,{x:0,y:0,text:""})});h.ensureState("blur").style={opacity:.1},h.stateTransition={duration:200},this.group.add(h);var d=[f,0],m=this._shapes;m.handleThumbs[a]=p,m.handleLabelPoints[a]=d,m.handleLabels[a]=h},e.prototype._createIndicator=function(t,i,a,n,o){var s=Lr(t.get("indicatorSize"),a[0]),l=je(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:a[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof lt){var f=l.style;l.useStyle(k({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);i.add(l);var p=this.visualMapModel.textStyleModel,c=new be({silent:!0,invisible:!0,style:Xe(p,{x:0,y:0,text:""})});this.group.add(c);var v=[(o==="horizontal"?n/2:ane)+a[0]/2,0],h=this._shapes;h.indicator=l,h.indicatorLabel=c,h.indicatorLabelPoint=v,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,i,a,n){if(this._useHandle){if(this._dragging=!i,!i){var o=this._applyTransform([a,n],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}i===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),i?!this._hovering&&this._clearHoverLinkToSeries():R3(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,i=this._dataInterval=t.getSelected(),a=t.getExtent(),n=[0,t.itemSize[1]];this._handleEnds=[no(i[0],a,n,!0),no(i[1],a,n,!0)]},e.prototype._updateInterval=function(t,i){i=i||0;var a=this.visualMapModel,n=this._handleEnds,o=[0,a.itemSize[1]];oi(i,n,o,t,0);var s=a.getExtent();this._dataInterval=[no(n[0],o,s,!0),no(n[1],o,s,!0)]},e.prototype._updateView=function(t){var i=this.visualMapModel,a=i.getExtent(),n=this._shapes,o=[0,i.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,a,s,"inRange"),u=this._createBarVisual(a,a,o,"outOfRange");n.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),n.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,i,a,n){var o={forceState:n,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(a,l);return{barColor:new Ci(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,i){var a=100,n=[],o=(t[1]-t[0])/a;n.push({color:this.getControllerVisual(t[0],"color",i),offset:0});for(var s=1;s<a;s++){var l=t[0]+o*s;if(l>t[1])break;n.push({color:this.getControllerVisual(l,"color",i),offset:s/a})}return n.push({color:this.getControllerVisual(t[1],"color",i),offset:1}),n},e.prototype._createBarPoints=function(t,i){var a=this.visualMapModel.itemSize;return[[a[0]-i[0],t[0]],[a[0],t[0]],[a[0],t[1]],[a[0]-i[1],t[1]]]},e.prototype._createBarGroup=function(t){var i=this._orient,a=this.visualMapModel.get("inverse");return new Q(i==="horizontal"&&!a?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:i==="horizontal"&&a?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:i==="vertical"&&!a?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,i){if(this._useHandle){var a=this._shapes,n=this.visualMapModel,o=a.handleThumbs,s=a.handleLabels,l=n.itemSize,u=n.getExtent(),f=this._applyTransform("left",a.mainGroup);rne([0,1],function(p){var c=o[p];c.setStyle("fill",i.handlesColor[p]),c.y=t[p];var v=no(t[p],[0,l[1]],u,!0),h=this.getControllerVisual(v,"symbolSize");c.scaleX=c.scaleY=h/l[0],c.x=l[0]-h/2;var d=br(a.handleLabelPoints[p],qa(c,this.group));if(this._orient==="horizontal"){var m=f==="left"||f==="top"?(l[0]-h)/2:(l[0]-h)/-2;d[1]+=m}s[p].setStyle({x:d[0],y:d[1],text:n.formatValueText(this._dataInterval[p]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",a.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,i,a,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,p=f.indicator;if(p){p.attr("invisible",!1);var c={convertOpacityToAlpha:!0},v=this.getControllerVisual(t,"color",c),h=this.getControllerVisual(t,"symbolSize"),d=no(t,s,u,!0),m=l[0]-h/2,g={x:p.x,y:p.y};p.y=d,p.x=m;var y=br(f.indicatorLabelPoint,qa(p,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var x=this._applyTransform("left",f.mainGroup),S=this._orient,b=S==="horizontal";_.setStyle({text:(a||"")+o.formatValueText(i),verticalAlign:b?x:"middle",align:b?"center":x});var w={x:m,y:d,style:{fill:v}},A={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var C={duration:100,easing:"cubicInOut",additive:!0};p.x=g.x,p.y=g.y,p.animateTo(w,C),_.animateTo(A,C)}else p.attr(w),_.attr(A);this._firstShowIndicator=!1;var E=this._shapes.handleLabels;if(E)for(var D=0;D<E.length;D++)this.api.enterBlur(E[D])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(i){if(t._hovering=!0,!t._dragging){var a=t.visualMapModel.itemSize,n=t._applyTransform([i.offsetX,i.offsetY],t._shapes.mainGroup,!0,!0);n[1]=L3(cD(0,n[1]),a[1]),t._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=a[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(t,i){var a=this.visualMapModel,n=a.itemSize;if(a.option.hoverLink){var o=[0,n[1]],s=a.getExtent();t=L3(cD(o[0],t),o[1]);var l=one(a,s,o),u=[t-l,t+l],f=no(t,o,s,!0),p=[no(u[0],o,s,!0),no(u[1],o,s,!0)];u[0]<o[0]&&(p[0]=-1/0),u[1]>o[1]&&(p[1]=1/0),i&&(p[0]===-1/0?this._showIndicator(f,p[1],"< ",l):p[1]===1/0?this._showIndicator(f,p[0],"> ",l):this._showIndicator(f,f,"\u2248 ",l));var c=this._hoverLinkDataIndices,v=[];(i||R3(a))&&(v=this._hoverLinkDataIndices=a.findTargetDataIndices(p));var h=fI(c,v);this._dispatchHighDown("downplay",gc(h[0],a)),this._dispatchHighDown("highlight",gc(h[1],a))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var i;if(en(t.target,function(l){var u=se(l);if(u.dataIndex!=null)return i=u,!0},!0),!!i){var a=this.ecModel.getSeriesByIndex(i.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(a)){var o=a.getData(i.dataType),s=o.getStore().get(n.getDataDimensionIndex(o),i.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var i=this._shapes.handleLabels;if(i)for(var a=0;a<i.length;a++)this.api.leaveBlur(i[a])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",gc(t,this.visualMapModel)),t.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(t,i,a,n){var o=qa(i,n?null:this.group);return V(t)?br(t,o,a):eu(t,o,a)},e.prototype._dispatchHighDown=function(t,i){i&&i.length&&this.api.dispatchAction({type:t,batch:i})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e})(X_);function P3(r,e,t,i){return new yt({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(a){vi(a.event)},ondragend:i})}function one(r,e,t){var i=ine/2,a=r.get("hoverLinkDataSize");return a&&(i=no(a,e,t,!0)/2),i}function R3(r){var e=r.get("hoverLinkOnHandle");return!!(e??r.get("realtime"))}function O3(r){return r==="vertical"?"ns-resize":"ew-resize"}var N3=nne;var k3={type:"selectDataRange",event:"dataRangeSelected",update:"update"},z3=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})};var V3=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(i){var a=r.pipelineContext;!i.isTargetSeries(r)||a&&a.large||t.push(T5(i.stateList,i.targetVisuals,X(i.getValueState,i),i.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),i=[];e.eachComponent("visualMap",function(a){if(a.isTargetSeries(r)){var n=a.getVisualMeta(X(sne,null,r,a))||{stops:[],outerColors:[]},o=a.getDataDimensionIndex(t);o>=0&&(n.dimension=o,i.push(n))}}),r.getData().setVisual("visualMeta",i)}}];function sne(r,e,t,i){for(var a=e.targetVisuals[i],n=Nt.prepareVisualTypes(a),o={color:Gn(r.getData(),"color")},s=0,l=n.length;s<l;s++){var u=n[s],f=a[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,p,c)}return o.color;function p(v){return o[v]}function c(v,h){o[v]=h}}var U3=T;function vD(r){var e=r&&r.visualMap;V(e)||(e=e?[e]:[]),U3(e,function(t){if(t){yc(t,"splitList")&&!yc(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var i=t.pieces;if(i&&V(i)&&U3(i,function(n){te(n)&&(yc(n,"start")&&!yc(n,"min")&&(n.min=n.start),yc(n,"end")&&!yc(n,"max")&&(n.max=n.end))}),0)var a}})}function yc(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var B3=!1;function ed(r){B3||(B3=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(k3,z3),T(V3,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(vD))}function td(r){r.registerComponentModel(D3),r.registerComponentView(N3),ed(r)}var lne=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t._pieceList=[],t}return e.prototype.optionUpdated=function(t,i){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var a=this._mode=this._determineMode();this._pieceList=[],une[this._mode].call(this,this._pieceList),this._resetSelected(t,i);var n=this.option.categories;this.resetVisual(function(o,s){a==="categories"?(o.mappingMethod="category",o.categories=ee(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=U(this._pieceList,function(l){return l=ee(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,i={},a=Nt.listVisualTypes(),n=this.isCategory();T(t.pieces,function(s){T(a,function(l){s.hasOwnProperty(l)&&(i[l]=1)})}),T(i,function(s,l){var u=!1;T(this.stateList,function(f){u=u||o(t,f,l)||o(t.target,f,l)},this),!u&&T(this.stateList,function(f){(t[f]||(t[f]={}))[l]=W_.get(l,f==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,i){var a=this.option,n=this._pieceList,o=(i?a:t).selected||{};if(a.selected=o,T(n,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),a.selectedMode==="single"){var s=!1;T(n,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return this._mode==="categories"?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=ee(t)},e.prototype.getValueState=function(t){var i=Nt.findPieceIndex(t,this._pieceList);return i!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[i])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var i=[],a=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=Nt.findPieceIndex(l,a);f===t&&o.push(u)},this),i.push({seriesId:n.id,dataIndex:o})},this),i},e.prototype.getRepresentValue=function(t){var i;if(this.isCategory())i=t.value;else if(t.value!=null)i=t.value;else{var a=t.interval||[];i=a[0]===-1/0&&a[1]===1/0?0:(a[0]+a[1])/2}return i},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var i=[],a=["",""],n=this;function o(f,p){var c=n.getRepresentValue({interval:f});p||(p=n.getValueState(c));var v=t(c,p);f[0]===-1/0?a[0]=v:f[1]===1/0?a[1]=v:i.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return T(s,function(f){var p=f.interval;p&&(p[0]>u&&o([u,p[0]],"outOfRange"),o(p.slice()),u=p[1])},this),{stops:i,outerColors:a}},e.type="visualMap.piecewise",e.defaultOption=kr(mc.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e})(mc),une={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),i=this.getExtent(),a=e.splitNumber;a=Math.max(parseInt(a,10),1),e.splitNumber=a;for(var n=(i[1]-i[0])/a;+n.toFixed(t)!==n&&t<5;)t++;e.precision=t,n=+n.toFixed(t),e.minOpen&&r.push({interval:[-1/0,i[0]],close:[0,0]});for(var o=0,s=i[0];o<a;s+=n,o++){var l=o===a-1?i[1]:s+n;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[i[1],1/0],close:[0,0]}),Kc(r),T(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var e=this.option;T(e.categories,function(t){r.push({text:this.formatValueText(t,!0),value:t})},this),F3(e,r)},pieces:function(r){var e=this.option;T(e.pieces,function(t,i){te(t)||(t={value:t});var a={text:"",index:i};if(t.label!=null&&(a.text=t.label),t.hasOwnProperty("value")){var n=a.value=t.value;a.interval=[n,n],a.close=[1,1]}else{for(var o=a.interval=[],s=a.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],p=0;p<2;p++){for(var c=[["gte","gt","min"],["lte","lt","max"]][p],v=0;v<3&&o[p]==null;v++)o[p]=t[c[v]],s[p]=l[v],f[p]=v===2;o[p]==null&&(o[p]=u[p])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(a.value=o[0])}a.visual=Nt.retrieveVisuals(t),r.push(a)},this),F3(e,r),Kc(r),T(r,function(t){var i=t.close,a=[["<","\u2264"][i[1]],[">","\u2265"][i[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,a)},this)}};function F3(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}var G3=lne;var fne=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.doRender=function(){var t=this.group;t.removeAll();var i=this.visualMapModel,a=i.get("textGap"),n=i.textStyleModel,o=this._getItemAlign(),s=i.itemSize,l=this._getViewData(),u=l.endsText,f=Et(i.get("showLabel",!0),!u),p=!i.get("selectedMode");u&&this._renderEndsText(t,u[0],s,f,o),T(l.viewPieceList,function(c){var v=c.piece,h=new Q;h.onclick=X(this._onItemClick,this,v),this._enableHoverLink(h,c.indexInModelPieceList);var d=i.getRepresentValue(v);if(this._createItemSymbol(h,d,[0,0,s[0],s[1]],p),f){var m=this.visualMapModel.getValueState(d),g=n.get("align")||o;h.add(new be({style:Xe(n,{x:g==="right"?-a:s[0]+a,y:s[1]/2,text:v.text,verticalAlign:n.get("verticalAlign")||"middle",align:g,opacity:Z(n.get("opacity"),m==="outOfRange"?.5:1)}),silent:p}))}t.add(h)},this),u&&this._renderEndsText(t,u[1],s,f,o),Qa(i.get("orient"),t,i.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,i){var a=this;t.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=a.visualMapModel;s.option.hoverLink&&a.api.dispatchAction({type:o,batch:gc(s.findTargetDataIndices(i),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,i=t.option;if(i.orient==="vertical")return Z_(t,this.api,t.itemSize);var a=i.align;return(!a||a==="auto")&&(a="left"),a},e.prototype._renderEndsText=function(t,i,a,n,o){if(i){var s=new Q,l=this.visualMapModel.textStyleModel;s.add(new be({style:Xe(l,{x:n?o==="right"?a[0]:0:a[0]/2,y:a[1]/2,verticalAlign:"middle",align:n?o:"center",text:i})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,i=U(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),a=t.get("text"),n=t.get("orient"),o=t.get("inverse");return(n==="horizontal"?o:!o)?i.reverse():a&&(a=a.slice().reverse()),{viewPieceList:i,endsText:a}},e.prototype._createItemSymbol=function(t,i,a,n){var o=je(this.getControllerVisual(i,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(i,"color"));o.silent=n,t.add(o)},e.prototype._onItemClick=function(t){var i=this.visualMapModel,a=i.option,n=a.selectedMode;if(n){var o=ee(a.selected),s=i.getSelectedMapKey(t);n==="single"||n===!0?(o[s]=!0,T(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e})(X_),H3=fne;function rd(r){r.registerComponentModel(G3),r.registerComponentView(H3),ed(r)}function hD(r){Ce(td),Ce(rd)}var Y3=(function(){function r(e){this._thumbnailModel=e}return r.prototype.reset=function(e){this._renderVersion=e.getECUpdateCycleVersion()},r.prototype.renderContent=function(e){var t=e.api.getViewOfComponentModel(this._thumbnailModel);t&&(e.group.silent=!0,t.renderContent({group:e.group,targetTrans:e.targetTrans,z2Range:vb(e.group),roamType:e.roamType,viewportRect:e.viewportRect,renderVersion:this._renderVersion}))},r.prototype.updateWindow=function(e,t){var i=t.getViewOfComponentModel(this._thumbnailModel);i&&i.updateWindow({targetTrans:e,renderVersion:this._renderVersion})},r})();var W3=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.preventAutoZ=!0,t}return e.prototype.optionUpdated=function(t,i){this._updateBridge()},e.prototype._updateBridge=function(){var t=this._birdge=this._birdge||new Y3(this);if(this._target=null,this.ecModel.eachSeries(function(a){EC(a,null)}),this.shouldShow()){var i=this.getTarget();EC(i.baseMapProvider,t)}},e.prototype.shouldShow=function(){return this.getShallow("show",!0)},e.prototype.getBridge=function(){return this._birdge},e.prototype.getTarget=function(){if(this._target)return this._target;var t=this.getReferringComponents("series",{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];return t?t.subType!=="graph"&&(t=null):t=this.ecModel.queryComponents({mainType:"series",subType:"graph"})[0],this._target={baseMapProvider:t},this._target},e.type="thumbnail",e.layoutMode="box",e.dependencies=["series","geo"],e.defaultOption={show:!0,right:1,bottom:1,height:"25%",width:"25%",itemStyle:{borderColor:N.color.border,borderWidth:2},windowStyle:{borderWidth:1,color:N.color.neutral30,borderColor:N.color.neutral40,opacity:.3},z:10},e})(Se);var K3=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,i,a){if(this._api=a,this._model=t,this._coordSys||(this._coordSys=new Ks),!this._isEnabled()){this._clear();return}this._renderVersion=a.getECUpdateCycleVersion();var n=this.group;n.removeAll();var o=t.getModel("itemStyle"),s=o.getItemStyle();s.fill==null&&(s.fill=i.get("backgroundColor")||N.color.neutral00);var l=Qe(t,a).refContainer,u=He(ng(t,!0),l),f=s.lineWidth||0,p=this._contentRect=ha(u.clone(),f/2,!0,!0),c=new Q;n.add(c),c.setClipPath(new de({shape:p.plain()}));var v=this._targetGroup=new Q;c.add(v);var h=u.plain();h.r=o.getShallow("borderRadius",!0),n.add(this._bgRect=new de({style:s,shape:h,silent:!1,cursor:"grab"}));var d=t.getModel("windowStyle"),m=d.getShallow("borderRadius",!0);c.add(this._windowRect=new de({shape:{x:0,y:0,width:0,height:0,r:m},style:d.getItemStyle(),silent:!1,cursor:"grab"})),this._dealRenderContent(),this._dealUpdateWindow(),Z3(t,this)},e.prototype.renderContent=function(t){this._bridgeRendered=t,this._isEnabled()&&(this._dealRenderContent(),this._dealUpdateWindow(),Z3(this._model,this))},e.prototype._dealRenderContent=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var i=this._targetGroup,a=this._coordSys,n=this._contentRect;if(i.removeAll(),!!t){var o=t.group,s=o.getBoundingRect();i.add(o),this._bgRect.z2=t.z2Range.min-10,Zs(a,s.x,s.y,s.width,s.height);var l=He({left:"center",top:"center",aspect:s.width/s.height},n);zu(a,l.x,l.y,l.width,l.height),Nu(o,a,Fo),o.dirty(),this._windowRect.z2=t.z2Range.max+10,this._resetRoamController(t.roamType)}}},e.prototype.updateWindow=function(t){var i=this._bridgeRendered;i&&i.renderVersion===t.renderVersion&&(i.targetTrans=t.targetTrans),this._isEnabled()&&this._dealUpdateWindow()},e.prototype._dealUpdateWindow=function(){var t=this._bridgeRendered;if(!(!t||t.renderVersion!==this._renderVersion)){var i=zt([],t.targetTrans),a=Qt([],ku(null,this._coordSys),i);this._transThisToTarget=zt([],a);var n=t.viewportRect;n?n=n.clone():n=new oe(0,0,this._api.getWidth(),this._api.getHeight()),n.applyTransform(a);var o=this._windowRect,s=o.shape.r;o.setShape($({r:s},n))}},e.prototype._resetRoamController=function(t){var i=this,a=this._api,n=this._roamController;if(n||(n=this._roamController=new Oi(a.getZr())),!t||!this._isEnabled()){n.disable();return}n.enable(t,{api:a,zInfo:{component:this._model},triggerInfo:{roamTrigger:null,isInSelf:function(o,s,l){return i._contentRect.contain(s,l)}}}),n.off("pan").off("zoom").on("pan",X(this._onPan,this)).on("zoom",X(this._onZoom,this))},e.prototype._onPan=function(t){var i=this._transThisToTarget;if(!(!this._isEnabled()||!i)){var a=ot([],[t.oldX,t.oldY],i),n=ot([],[t.oldX-t.dx,t.oldY-t.dy],i);this._api.dispatchAction(X3(this._model.getTarget().baseMapProvider,{dx:n[0]-a[0],dy:n[1]-a[1]}))}},e.prototype._onZoom=function(t){var i=this._transThisToTarget;if(!(!this._isEnabled()||!i)){var a=ot([],[t.originX,t.originY],i);this._api.dispatchAction(X3(this._model.getTarget().baseMapProvider,{zoom:1/t.scale,originX:a[0],originY:a[1]}))}},e.prototype._isEnabled=function(){var t=this._model;if(!t||!t.shouldShow())return!1;var i=t.getTarget().baseMapProvider;return!!i},e.prototype._clear=function(){this.group.removeAll(),this._bridgeRendered=null,this._roamController&&this._roamController.disable()},e.prototype.remove=function(){this._clear()},e.prototype.dispose=function(){this._clear()},e.type="thumbnail",e})(ze);function X3(r,e){var t=r.mainType==="series"?r.subType+"Roam":r.mainType+"Roam",i={type:t};return i[r.mainType+"Id"]=r.id,k(i,e),i}function Z3(r,e){var t=da(r);tu(e.group,t.z,t.zlevel)}function dD(r){r.registerComponentModel(W3),r.registerComponentView(K3)}var pne={label:{enabled:!0},decal:{show:!1}},q3=ne(),j3=ne(),J3=Mn(cne);function cne(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var i=j3(r).scope||(j3(r).scope={}),a=ee(pne);ve(a.label,r.getLocaleModel().get("aria"),!1),ve(t.option,a,!1),n(),o();function n(){var f=t.getModel("decal"),p=f.get("show");if(p){var c=W();r.eachSeries(function(v){v.isColorBySeries()||(q3(v).scope=c.get(v.type)||c.set(v.type,{}))}),r.eachSeries(function(v){if(J(v.enableAriaDecal)){v.enableAriaDecal();return}var h=v.getData();if(v.isColorBySeries()){var _=wv(v.ecModel,v.name,i,r.getSeriesCount()),x=h.getVisual("decal");h.setVisual("decal",S(x,_))}else{var d=v.getRawData(),m={},g=q3(v).scope;h.each(function(b){var w=h.getRawIndex(b);m[w]=b});var y=d.count();d.each(function(b){var w=m[b],A=d.getName(b)||b+"",C=wv(v.ecModel,A,g,y),E=h.getItemVisual(w,"decal");h.setItemVisual(w,"decal",S(E,C))})}function S(b,w){var A=b?k(k({},w),b):w;return A.dirty=!0,A}})}}function o(){var f=e.getZr().dom;if(f){var p=r.getLocaleModel().get("aria"),c=t.getModel("label");if(c.option=$(c.option,p),!!c.get("enabled")){if(f.setAttribute("role","img"),c.get("description")){f.setAttribute("aria-label",c.get("description"));return}var v=r.getSeriesCount(),h=c.get(["data","maxCount"])||10,d=c.get(["series","maxCount"])||10,m=Math.min(v,d),g;if(!(v<1)){var y=l();if(y){var _=c.get(["general","withTitle"]);g=s(_,{title:y})}else g=c.get(["general","withoutTitle"]);var x=[],S=v>1?c.get(["series","multiple","prefix"]):c.get(["series","single","prefix"]);g+=s(S,{seriesCount:v}),r.eachSeries(function(C,E){if(E<m){var D=void 0,I=C.get("name"),M=I?"withName":"withoutName";D=v>1?c.get(["series","multiple",M]):c.get(["series","single",M]),D=s(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:u(C.subType)});var P=C.getData();if(P.count()>h){var O=c.get(["data","partialData"]);D+=s(O,{displayCnt:h})}else D+=c.get(["data","allData"]);for(var R=c.get(["data","separator","middle"]),z=c.get(["data","separator","end"]),B=c.get(["data","excludeDimensionId"]),F=[],G=0;G<P.count();G++)if(G<h){var Y=P.getName(G),q=B?Ie(P.getValues(G),function(ie,ue){return le(B,ue)===-1}):P.getValues(G),re=c.get(["data",Y?"withName":"withoutName"]);F.push(s(re,{name:Y,value:q.join(R)}))}D+=F.join(R)+z,x.push(D)}});var b=c.getModel(["series","multiple","separator"]),w=b.get("middle"),A=b.get("end");g+=x.join(w)+A,f.setAttribute("aria-label",g)}}}}function s(f,p){if(!H(f))return f;var c=f;return T(p,function(v,h){c=c.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),v)}),c}function l(){var f=r.get("title");return f&&f.length&&(f=f[0]),f&&f.text}function u(f){var p=r.getLocaleModel().get(["series","typeNames"]);return p[f]||p.chart}}function mD(r){if(!(!r||!r.aria)){var e=r.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},T(["description","general","series","data"],function(t){e[t]!=null&&(e.label[t]=e[t])})}}function gD(r){r.registerPreprocessor(mD),r.registerVisual(r.PRIORITY.VISUAL.ARIA,J3)}var Q3={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},vne=(function(){function r(e){var t=this._condVal=H(e)?new RegExp(e):fx(e)?e:null;if(t==null){var i="";Ye(i)}}return r.prototype.evaluate=function(e){var t=typeof e;return H(t)?this._condVal.test(e):_e(t)?this._condVal.test(e+""):!1},r})(),hne=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),dne=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(!e[t].evaluate())return!1;return!0},r})(),mne=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=this.children,t=0;t<e.length;t++)if(e[t].evaluate())return!0;return!1},r})(),gne=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),yne=(function(){function r(){}return r.prototype.evaluate=function(){for(var e=!!this.valueParser,t=this.getValue,i=t(this.valueGetterParam),a=e?this.valueParser(i):null,n=0;n<this.subCondList.length;n++)if(!this.subCondList[n].evaluate(e?a:i))return!1;return!0},r})();function yD(r,e){if(r===!0||r===!1){var t=new hne;return t.value=r,t}var i="";return eY(r)||Ye(i),r.and?$3("and",r,e):r.or?$3("or",r,e):r.not?_ne(r,e):xne(r,e)}function $3(r,e,t){var i=e[r],a="";V(i)||Ye(a),i.length||Ye(a);var n=r==="and"?new dne:new mne;return n.children=U(i,function(o){return yD(o,t)}),n.children.length||Ye(a),n}function _ne(r,e){var t=r.not,i="";eY(t)||Ye(i);var a=new gne;return a.child=yD(t,e),a.child||Ye(i),a}function xne(r,e){for(var t="",i=e.prepareGetValue(r),a=[],n=ye(r),o=r.parser,s=o?_g(o):null,l=0;l<n.length;l++){var u=n[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var f=ae(Q3,u)?Q3[u]:u,p=r[u],c=s?s(p):p,v=hR(f,c)||f==="reg"&&new vne(c);v||Ye(t),a.push(v)}}a.length||Ye(t);var h=new yne;return h.valueGetterParam=i,h.valueParser=s,h.getValue=e.getValue,h.subCondList=a,h}function eY(r){return te(r)&&!It(r)}var Sne=(function(){function r(e,t){this._cond=yD(e,t)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function tY(r,e){return new Sne(r,e)}var rY={type:"echarts:filter",transform:function(r){for(var e=r.upstream,t,i=tY(r.config,{valueGetterAttrMap:W({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;ae(s,"dimension")||Ye(l);var f=e.getDimensionInfo(u);return f||Ye(l),{dimIdx:f.index}},getValue:function(s){return e.retrieveValueFromItem(t,s.dimIdx)}}),a=[],n=0,o=e.count();n<o;n++)t=e.getRawDataItem(n),i.evaluate()&&a.push(t);return{data:a}}};var iY={type:"echarts:sort",transform:function(r){var e=r.upstream,t=r.config,i="",a=We(t);a.length||Ye(i);var n=[];T(a,function(f){var p=f.dimension,c=f.order,v=f.parser,h=f.incomparable;if(p==null&&Ye(i),c!=="asc"&&c!=="desc"&&Ye(i),h&&h!=="min"&&h!=="max"){var d="";Ye(d)}if(c!=="asc"&&c!=="desc"){var m="";Ye(m)}var g=e.getDimensionInfo(p);g||Ye(i);var y=v?_g(v):null;v&&!y&&Ye(i),n.push({dimIdx:g.index,parser:y,comparator:new xg(c,h)})});var o=e.sourceFormat;o!==Ot&&o!==pr&&Ye(i);for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(f,p){for(var c=0;c<n.length;c++){var v=n[c],h=e.retrieveValueFromItem(f,v.dimIdx),d=e.retrieveValueFromItem(p,v.dimIdx);v.parser&&(h=v.parser(h),d=v.parser(d));var m=v.comparator.evaluate(h,d);if(m!==0)return m}return 0}),{data:s}}};function _D(r){r.registerTransform(rY),r.registerTransform(iY)}var bne=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,i,a){r.prototype.init.call(this,t,i,a),this._sourceManager=new Tg(this),i1(this)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),i1(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Zr},e})(Se);var wne=(function(r){L(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e})(ze);function xD(r){r.registerComponentModel(bne),r.registerComponentView(wne)}var oo=or.CMD;function _c(r,e){return Math.abs(r-e)<1e-5}function K_(r){var e=r.data,t=r.len(),i=[],a,n=0,o=0,s=0,l=0;function u(M,P){a&&a.length>2&&i.push(a),a=[M,P]}function f(M,P,O,R){_c(M,O)&&_c(P,R)||a.push(M,P,O,R,O,R)}function p(M,P,O,R,z,B){var F=Math.abs(P-M),G=Math.tan(F/4)*4/3,Y=P<M?-1:1,q=Math.cos(M),re=Math.sin(M),ie=Math.cos(P),ue=Math.sin(P),Pe=q*z+O,$e=re*B+R,De=ie*z+O,fe=ue*B+R,Oe=z*G*Y,pe=B*G*Y;a.push(Pe-Oe*re,$e+pe*q,De+Oe*ue,fe-pe*ie,De,fe)}for(var c,v,h,d,m=0;m<t;){var g=e[m++],y=m===1;switch(y&&(n=e[m],o=e[m+1],s=n,l=o,(g===oo.L||g===oo.C||g===oo.Q)&&(a=[s,l])),g){case oo.M:n=s=e[m++],o=l=e[m++],u(s,l);break;case oo.L:c=e[m++],v=e[m++],f(n,o,c,v),n=c,o=v;break;case oo.C:a.push(e[m++],e[m++],e[m++],e[m++],n=e[m++],o=e[m++]);break;case oo.Q:c=e[m++],v=e[m++],h=e[m++],d=e[m++],a.push(n+2/3*(c-n),o+2/3*(v-o),h+2/3*(c-h),d+2/3*(v-d),h,d),n=h,o=d;break;case oo.A:var _=e[m++],x=e[m++],S=e[m++],b=e[m++],w=e[m++],A=e[m++]+w;m+=1;var C=!e[m++];c=Math.cos(w)*S+_,v=Math.sin(w)*b+x,y?(s=c,l=v,u(s,l)):f(n,o,c,v),n=Math.cos(A)*S+_,o=Math.sin(A)*b+x;for(var E=(C?-1:1)*Math.PI/2,D=w;C?D>A:D<A;D+=E){var I=C?Math.max(D+E,A):Math.min(D+E,A);p(D,I,_,x,S,b)}break;case oo.R:s=n=e[m++],l=o=e[m++],c=s+e[m++],v=l+e[m++],u(c,l),f(c,l,c,v),f(c,v,s,v),f(s,v,s,l),f(s,l,c,l);break;case oo.Z:a&&f(n,o,s,l),n=s,o=l;break}}return a&&a.length>2&&i.push(a),i}function SD(r,e,t,i,a,n,o,s,l,u){if(_c(r,t)&&_c(e,i)&&_c(a,o)&&_c(n,s)){l.push(o,s);return}var f=2/u,p=f*f,c=o-r,v=s-e,h=Math.sqrt(c*c+v*v);c/=h,v/=h;var d=t-r,m=i-e,g=a-o,y=n-s,_=d*d+m*m,x=g*g+y*y;if(_<p&&x<p){l.push(o,s);return}var S=c*d+v*m,b=-c*g-v*y,w=_-S*S,A=x-b*b;if(w<p&&S>=0&&A<p&&b>=0){l.push(o,s);return}var C=[],E=[];aa(r,t,a,o,.5,C),aa(e,i,n,s,.5,E),SD(C[0],E[0],C[1],E[1],C[2],E[2],C[3],E[3],l,u),SD(C[4],E[4],C[5],E[5],C[6],E[6],C[7],E[7],l,u)}function aY(r,e){var t=K_(r),i=[];e=e||1;for(var a=0;a<t.length;a++){var n=t[a],o=[],s=n[0],l=n[1];o.push(s,l);for(var u=2;u<n.length;){var f=n[u++],p=n[u++],c=n[u++],v=n[u++],h=n[u++],d=n[u++];SD(s,l,f,p,c,v,h,d,o,e),s=h,l=d}i.push(o)}return i}function lY(r,e,t){var i=r[e],a=r[1-e],n=Math.abs(i/a),o=Math.ceil(Math.sqrt(n*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var f=o*s,p=t-f;if(p>0)for(var u=0;u<p;u++)l[u%o]+=1;return l}function nY(r,e,t){for(var i=r.r0,a=r.r,n=r.startAngle,o=r.endAngle,s=Math.abs(o-n),l=s*a,u=a-i,f=l>Math.abs(u),p=lY([l,u],f?0:1,e),c=(f?s:u)/p.length,v=0;v<p.length;v++)for(var h=(f?u:s)/p[v],d=0;d<p[v];d++){var m={};f?(m.startAngle=n+c*v,m.endAngle=n+c*(v+1),m.r0=i+h*d,m.r=i+h*(d+1)):(m.startAngle=n+h*d,m.endAngle=n+h*(d+1),m.r0=i+c*v,m.r=i+c*(v+1)),m.clockwise=r.clockwise,m.cx=r.cx,m.cy=r.cy,t.push(m)}}function Tne(r,e,t){for(var i=r.width,a=r.height,n=i>a,o=lY([i,a],n?0:1,e),s=n?"width":"height",l=n?"height":"width",u=n?"x":"y",f=n?"y":"x",p=r[s]/o.length,c=0;c<o.length;c++)for(var v=r[l]/o[c],h=0;h<o[c];h++){var d={};d[u]=c*p,d[f]=h*v,d[s]=p,d[l]=v,d.x+=r.x,d.y+=r.y,t.push(d)}}function oY(r,e,t,i){return r*i-t*e}function Cne(r,e,t,i,a,n,o,s){var l=t-r,u=i-e,f=o-a,p=s-n,c=oY(f,p,l,u);if(Math.abs(c)<1e-6)return null;var v=r-a,h=e-n,d=oY(v,h,f,p)/c;return d<0||d>1?null:new he(d*l+r,d*u+e)}function Ane(r,e,t){var i=new he;he.sub(i,t,e),i.normalize();var a=new he;he.sub(a,r,e);var n=a.dot(i);return n}function xc(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function Ene(r,e,t){for(var i=r.length,a=[],n=0;n<i;n++){var o=r[n],s=r[(n+1)%i],l=Cne(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&a.push({projPt:Ane(l,e,t),pt:l,idx:n})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(m,g){return m.projPt-g.projPt});var u=a[0],f=a[a.length-1];if(f.idx<u.idx){var p=u;u=f,f=p}for(var c=[u.pt.x,u.pt.y],v=[f.pt.x,f.pt.y],h=[c],d=[v],n=u.idx+1;n<=f.idx;n++)xc(h,r[n].slice());xc(h,v),xc(h,c);for(var n=f.idx+1;n<=u.idx+i;n++)xc(d,r[n%i].slice());return xc(d,c),xc(d,v),[{points:h},{points:d}]}function sY(r){var e=r.points,t=[],i=[];Ul(e,t,i);var a=new oe(t[0],t[1],i[0]-t[0],i[1]-t[1]),n=a.width,o=a.height,s=a.x,l=a.y,u=new he,f=new he;return n>o?(u.x=f.x=s+n/2,u.y=l,f.y=l+o):(u.y=f.y=l+o/2,u.x=s,f.x=s+n),Ene(e,u,f)}function q_(r,e,t,i){if(t===1)i.push(e);else{var a=Math.floor(t/2),n=r(e);q_(r,n[0],a,i),q_(r,n[1],t-a,i)}return i}function Dne(r,e){for(var t=[],i=0;i<e;i++)t.push(Nf(r));return t}function Mne(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function Ine(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function uY(r,e){var t=[],i=r.shape,a;switch(r.type){case"rect":Tne(i,e,t),a=de;break;case"sector":nY(i,e,t),a=Tt;break;case"circle":nY({r0:0,r:i.r,startAngle:0,endAngle:Math.PI*2,cx:i.cx,cy:i.cy},e,t),a=Tt;break;default:var n=r.getComputedTransform(),o=n?Math.sqrt(Math.max(n[0]*n[0]+n[1]*n[1],n[2]*n[2]+n[3]*n[3])):1,s=U(aY(r.getUpdatedPathProxy(),o),function(g){return Ine(g)}),l=s.length;if(l===0)q_(sY,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var f=0,p=U(s,function(g){var y=[],_=[];Ul(g,y,_);var x=(_[1]-y[1])*(_[0]-y[0]);return f+=x,{poly:g,area:x}});p.sort(function(g,y){return y.area-g.area});for(var c=e,u=0;u<l;u++){var v=p[u];if(c<=0)break;var h=u===l-1?c:Math.ceil(v.area/f*e);h<0||(q_(sY,{points:v.poly},h,t),c-=h)}}a=yt;break}if(!a)return Dne(r,e);for(var d=[],u=0;u<t.length;u++){var m=new a;m.setShape(t[u]),Mne(r,m),d.push(m)}return d}function Lne(r,e){var t=r.length,i=e.length;if(t===i)return[r,e];for(var a=[],n=[],o=t<i?r:e,s=Math.min(t,i),l=Math.abs(i-t)/6,u=(s-2)/6,f=Math.ceil(l/u)+1,p=[o[0],o[1]],c=l,v=2;v<s;){var h=o[v-2],d=o[v-1],m=o[v++],g=o[v++],y=o[v++],_=o[v++],x=o[v++],S=o[v++];if(c<=0){p.push(m,g,y,_,x,S);continue}for(var b=Math.min(c,f-1)+1,w=1;w<=b;w++){var A=w/b;aa(h,m,y,x,A,a),aa(d,g,_,S,A,n),h=a[3],d=n[3],p.push(a[1],n[1],a[2],n[2],h,d),m=a[5],g=n[5],y=a[6],_=n[6]}c-=b-1}return o===r?[p,e]:[r,p]}function fY(r,e){for(var t=r.length,i=r[t-2],a=r[t-1],n=[],o=0;o<e.length;)n[o++]=i,n[o++]=a;return n}function Pne(r,e){for(var t,i,a,n=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],f=void 0,p=void 0;l?u?(t=Lne(l,u),f=t[0],p=t[1],i=f,a=p):(p=fY(a||l,l),f=l):(f=fY(i||u,u),p=u),n.push(f),o.push(p)}return[n,o]}function pY(r){for(var e=0,t=0,i=0,a=r.length,n=0,o=a-2;n<a;o=n,n+=2){var s=r[o],l=r[o+1],u=r[n],f=r[n+1],p=s*f-u*l;e+=p,t+=(s+u)*p,i+=(l+f)*p}return e===0?[r[0]||0,r[1]||0]:[t/e/3,i/e/3,e]}function Rne(r,e,t,i){for(var a=(r.length-2)/6,n=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var f=u*6,p=0,c=0;c<s;c+=2){var v=c===0?f:(f+c-2)%l+2,h=r[v]-t[0],d=r[v+1]-t[1],m=e[c]-i[0],g=e[c+1]-i[1],y=m-h,_=g-d;p+=y*y+_*_}p<n&&(n=p,o=u)}return o}function One(r){for(var e=[],t=r.length,i=0;i<t;i+=2)e[i]=r[t-i-2],e[i+1]=r[t-i-1];return e}function Nne(r,e,t,i){for(var a=[],n,o=0;o<r.length;o++){var s=r[o],l=e[o],u=pY(s),f=pY(l);n==null&&(n=u[2]<0!=f[2]<0);var p=[],c=[],v=0,h=1/0,d=[],m=s.length;n&&(s=One(s));for(var g=Rne(s,l,u,f)*6,y=m-2,_=0;_<y;_+=2){var x=(g+_)%y+2;p[_+2]=s[x]-u[0],p[_+3]=s[x+1]-u[1]}if(p[0]=s[g]-u[0],p[1]=s[g+1]-u[1],t>0)for(var S=i/t,b=-i/2;b<=i/2;b+=S){for(var w=Math.sin(b),A=Math.cos(b),C=0,_=0;_<s.length;_+=2){var E=p[_],D=p[_+1],I=l[_]-f[0],M=l[_+1]-f[1],P=I*A-M*w,O=I*w+M*A;d[_]=P,d[_+1]=O;var R=P-E,z=O-D;C+=R*R+z*z}if(C<h){h=C,v=b;for(var B=0;B<d.length;B++)c[B]=d[B]}}else for(var F=0;F<m;F+=2)c[F]=l[F]-f[0],c[F+1]=l[F+1]-f[1];a.push({from:p,to:c,fromCp:u,toCp:f,rotation:-v})}return a}function ad(r){return r.__isCombineMorphing}var vY="__mOriginal_";function j_(r,e,t){var i=vY+e,a=r[i]||r[e];r[i]||(r[i]=r[e]);var n=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),n?u=n.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function id(r,e){var t=vY+e;r[t]&&(r[e]=r[t],r[t]=null)}function cY(r,e){for(var t=0;t<r.length;t++)for(var i=r[t],a=0;a<i.length;){var n=i[a],o=i[a+1];i[a++]=e[0]*n+e[2]*o+e[4],i[a++]=e[1]*n+e[3]*o+e[5]}}function hY(r,e){var t=r.getUpdatedPathProxy(),i=e.getUpdatedPathProxy(),a=Pne(K_(t),K_(i)),n=a[0],o=a[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&cY(n,s),l&&cY(o,l),j_(e,"updateTransform",{replace:u}),e.transform=null;var f=Nne(n,o,10,Math.PI),p=[];j_(e,"buildPath",{replace:function(c){for(var v=e.__morphT,h=1-v,d=[],m=0;m<f.length;m++){var g=f[m],y=g.from,_=g.to,x=g.rotation*v,S=g.fromCp,b=g.toCp,w=Math.sin(x),A=Math.cos(x);hl(d,S,b,v);for(var C=0;C<y.length;C+=2){var E=y[C],D=y[C+1],I=_[C],M=_[C+1],P=E*h+I*v,O=D*h+M*v;p[C]=P*A-O*w+d[0],p[C+1]=P*w+O*A+d[1]}var R=p[0],z=p[1];c.moveTo(R,z);for(var C=2;C<y.length;){var I=p[C++],M=p[C++],B=p[C++],F=p[C++],G=p[C++],Y=p[C++];R===I&&z===M&&B===G&&F===Y?c.lineTo(G,Y):c.bezierCurveTo(I,M,B,F,G,Y),R=G,z=Y}}}})}function Q_(r,e,t){if(!r||!e)return e;var i=t.done,a=t.during;hY(r,e),e.__morphT=0;function n(){id(e,"buildPath"),id(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},$({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){n(),i&&i()}},t)),e}function kne(r,e,t,i,a,n){var o=16;r=a===t?0:Math.round(32767*(r-t)/(a-t)),e=n===i?0:Math.round(32767*(e-i)/(n-i));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var f=0,p=0;(r&u)>0&&(f=1),(e&u)>0&&(p=1),s+=u*u*(3*f^p),p===0&&(f===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function J_(r){var e=1/0,t=1/0,i=-1/0,a=-1/0,n=U(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),f=l.x+l.width/2+(u?u[4]:0),p=l.y+l.height/2+(u?u[5]:0);return e=Math.min(f,e),t=Math.min(p,t),i=Math.max(f,i),a=Math.max(p,a),[f,p]}),o=U(n,function(s,l){return{cp:s,z:kne(s[0],s[1],e,t,i,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function dY(r){return uY(r.path,r.count)}function bD(){return{fromIndividuals:[],toIndividuals:[],count:0}}function mY(r,e,t){var i=[];function a(S){for(var b=0;b<S.length;b++){var w=S[b];ad(w)?a(w.childrenRef()):w instanceof ce&&i.push(w)}}a(r);var n=i.length;if(!n)return bD();var o=t.dividePath||dY,s=o({path:e,count:n});if(s.length!==n)return console.error("Invalid morphing: unmatched splitted path"),bD();i=J_(i),s=J_(s);for(var l=t.done,u=t.during,f=t.individualDelay,p=new di,c=0;c<n;c++){var v=i[c],h=s[c];h.parent=e,h.copyTransform(p),f||hY(v,h)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function d(S){for(var b=0;b<s.length;b++)s[b].addSelfToZr(S)}j_(e,"addSelfToZr",{after:function(S){d(S)}}),j_(e,"removeSelfFromZr",{after:function(S){for(var b=0;b<s.length;b++)s[b].removeSelfFromZr(S)}});function m(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,id(e,"addSelfToZr"),id(e,"removeSelfFromZr")}var g=s.length;if(f)for(var y=g,_=function(){y--,y===0&&(m(),l&&l())},c=0;c<g;c++){var x=f?$({delay:(t.delay||0)+f(c,g,i[c],s[c]),done:_},t):t;Q_(i[c],s[c],x)}else e.__morphT=0,e.animateTo({__morphT:1},$({during:function(S){for(var b=0;b<g;b++){var w=s[b];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(S)},done:function(){m();for(var S=0;S<r.length;S++)id(r[S],"updateTransform");l&&l()}},t));return e.__zr&&d(e.__zr),{fromIndividuals:i,toIndividuals:s,count:g}}function gY(r,e,t){var i=e.length,a=[],n=t.dividePath||dY;function o(v){for(var h=0;h<v.length;h++){var d=v[h];ad(d)?o(d.childrenRef()):d instanceof ce&&a.push(d)}}if(ad(r)){o(r.childrenRef());var s=a.length;if(s<i)for(var l=0,u=s;u<i;u++)a.push(Nf(a[l++%s]));a.length=i}else{a=n({path:r,count:i});for(var f=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(f);if(a.length!==i)return console.error("Invalid morphing: unmatched splitted path"),bD()}a=J_(a),e=J_(e);for(var p=t.individualDelay,u=0;u<i;u++){var c=p?$({delay:(t.delay||0)+p(u,i,a[u],e[u])},t):t;Q_(a[u],e[u],c)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function yY(r){return V(r[0])}function _Y(r,e){for(var t=[],i=r.length,a=0;a<i;a++)t.push({one:r[a],many:[]});for(var a=0;a<e.length;a++){var n=e[a].length,o=void 0;for(o=0;o<n;o++)t[o%i].many.push(e[a][o])}for(var s=0,a=i-1;a>=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var n=l.length,u=Math.ceil(n/2);t[a].many=l.slice(u,n),t[s].many=l.slice(0,u),s++}return t}var zne={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),i=0;i<r.count;i++){var a=Nf(r.path);a.setStyle("opacity",t),e.push(a)}return e},split:null};function $_(r,e,t,i,a,n){if(!r.length||!e.length)return;var o=Un("update",i,a);if(!(o&&o.duration>0))return;var s=i.getModel("universalTransition").get("delay"),l=k({setToFinal:!0},o),u,f;yY(r)&&(u=r,f=e),yY(e)&&(u=e,f=r);function p(g,y,_,x,S){var b=g.many,w=g.one;if(b.length===1&&!S){var A=y?b[0]:w,C=y?w:b[0];if(ad(A))p({many:[A],one:C},!0,_,x,!0);else{var E=s?$({delay:s(_,x)},l):l;Q_(A,C,E),n(A,C,A,C,E)}}else for(var D=$({dividePath:zne[t],individualDelay:s&&function(z,B,F,G){return s(z+_,x)}},l),I=y?mY(b,w,D):gY(w,b,D),M=I.fromIndividuals,P=I.toIndividuals,O=M.length,R=0;R<O;R++){var E=s?$({delay:s(R,O)},l):l;n(M[R],P[R],y?b[R]:g.one,y?g.one:b[R],E)}}for(var c=u?u===r:r.length>e.length,v=u?_Y(f,u):_Y(c?e:r,[c?r:e]),h=0,d=0;d<v.length;d++)h+=v[d].many.length;for(var m=0,d=0;d<v.length;d++)p(v[d],c,m,h),m+=v[d].many.length}function ll(r){if(!r)return[];if(V(r)){for(var e=[],t=0;t<r.length;t++)e.push(ll(r[t]));return e}var i=[];return r.traverse(function(a){a instanceof ce&&!a.disableMorphing&&!a.invisible&&!a.ignore&&i.push(a)}),i}var EY=1e4,Vne=0,xY=1,SY=2,Une=ne();function Bne(r,e){for(var t=r.dimensions,i=0;i<t.length;i++){var a=r.getDimensionInfo(t[i]);if(a&&a.otherDims[e]===0)return t[i]}}function Fne(r,e,t){var i=r.getDimensionInfo(t),a=i&&i.ordinalMeta;if(i){var n=r.get(i.name,e);return a&&a.categories[n]||n+""}}function bY(r,e,t,i){var a=i?"itemChildGroupId":"itemGroupId",n=Bne(r,a);if(n){var o=Fne(r,e,n);return o}var s=r.getRawDataItem(e),l=i?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!i)return t||r.getId(e)}function wY(r){var e=[];return T(r,function(t){var i=t.data,a=t.dataGroupId;if(!(i.count()>EY))for(var n=i.getIndices(),o=0;o<n.length;o++)e.push({data:i,groupId:bY(i,o,a,!1),childGroupId:bY(i,o,a,!0),divide:t.divide,dataIndex:o})}),e}function wD(r,e,t){r.traverse(function(i){i instanceof ce&&Ge(i,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function TD(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function Sc(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function Gne(r,e,t){var i=Un("update",t,e);i&&r.traverse(function(a){if(a instanceof Ut){var n=rP(a);n&&a.animateFrom({style:n},i)}})}function Hne(r,e){var t=r.length;if(t!==e.length)return!1;for(var i=0;i<t;i++){var a=r[i],n=e[i];if(a.data.getId(a.dataIndex)!==n.data.getId(n.dataIndex))return!1}return!0}function DY(r,e,t){var i=wY(r),a=wY(e);function n(_,x,S,b,w){(S||_)&&x.animateFrom({style:S&&S!==_?k(k({},S.style),_.style):_.style},w)}var o=!1,s=Vne,l=W(),u=W();T(i,function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var f=0;f<a.length;f++){var p=a[f].groupId;if(u.get(p)){s=xY;break}var c=a[f].childGroupId;if(c&&l.get(c)){s=SY;break}}function v(_,x){return function(S){var b=S.data,w=S.dataIndex;return x?b.getId(w):_?s===xY?S.childGroupId:S.groupId:s===SY?S.childGroupId:S.groupId}}var h=Hne(i,a),d={};if(!h)for(var f=0;f<a.length;f++){var m=a[f],g=m.data.getItemGraphicEl(m.dataIndex);g&&(d[g.id]=!0)}function y(_,x){var S=i[x],b=a[_],w=b.data.hostModel,A=S.data.getItemGraphicEl(S.dataIndex),C=b.data.getItemGraphicEl(b.dataIndex);if(A===C){C&&Gne(C,b.dataIndex,w);return}A&&d[A.id]||C&&(Sc(C),A?(Sc(A),TD(A),o=!0,$_(ll(A),ll(C),b.divide,w,_,n)):wD(C,w,_))}new Tr(i,a,v(!0,h),v(!1,h),null,"multiple").update(y).updateManyToOne(function(_,x){var S=a[_],b=S.data,w=b.hostModel,A=b.getItemGraphicEl(S.dataIndex),C=Ie(U(x,function(E){return i[E].data.getItemGraphicEl(i[E].dataIndex)}),function(E){return E&&E!==A&&!d[E.id]});A&&(Sc(A),C.length?(T(C,function(E){Sc(E),TD(E)}),o=!0,$_(ll(C),ll(A),S.divide,w,_,n)):wD(A,w,S.dataIndex))}).updateOneToMany(function(_,x){var S=i[x],b=S.data.getItemGraphicEl(S.dataIndex);if(!(b&&d[b.id])){var w=Ie(U(_,function(C){return a[C].data.getItemGraphicEl(a[C].dataIndex)}),function(C){return C&&C!==b}),A=a[_[0]].data.hostModel;w.length&&(T(w,function(C){return Sc(C)}),b?(Sc(b),TD(b),o=!0,$_(ll(b),ll(w),S.divide,A,_[0],n)):T(w,function(C){return wD(C,A,_[0])}))}}).updateManyToMany(function(_,x){new Tr(x,_,function(S){return i[S].data.getId(i[S].dataIndex)},function(S){return a[S].data.getId(a[S].dataIndex)}).update(function(S,b){y(_[S],x[b])}).execute()}).execute(),o&&T(e,function(_){var x=_.data,S=x.hostModel,b=S&&t.getViewOfSeriesModel(S),w=Un("update",S,0);b&&S.isAnimationEnabled()&&w&&w.duration>0&&b.group.traverse(function(A){A instanceof ce&&!A.animators.length&&A.animateFrom({style:{opacity:0}},w)})})}function TY(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function CY(r){return V(r)?r.sort().join(","):r}function ul(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function Yne(r,e){var t=W(),i=W(),a=W();T(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],f=TY(o),p=CY(f);i.set(p,{dataGroupId:l,data:u}),V(f)&&T(f,function(c){a.set(c,{key:p,dataGroupId:l,data:u})})});function n(o){t.get(o)&&rI("Duplicated seriesKey in universalTransition "+o)}return T(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=TY(o),f=CY(u),p=i.get(f);if(p)t.set(f,{oldSeries:[{dataGroupId:p.dataGroupId,divide:ul(p.data),data:p.data}],newSeries:[{dataGroupId:s,divide:ul(l),data:l}]});else if(V(u)){var c=[];T(u,function(d){var m=i.get(d);m.data&&c.push({dataGroupId:m.dataGroupId,divide:ul(m.data),data:m.data})}),c.length&&t.set(f,{oldSeries:c,newSeries:[{dataGroupId:s,data:l,divide:ul(l)}]})}else{var v=a.get(u);if(v){var h=t.get(v.key);h||(h={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:ul(v.data)}],newSeries:[]},t.set(v.key,h)),h.newSeries.push({dataGroupId:s,data:l,divide:ul(l)})}}}}),t}function AY(r,e){for(var t=0;t<r.length;t++){var i=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(i)return t}}function Wne(r,e,t,i){var a=[],n=[];T(We(r.from),function(o){var s=AY(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:ul(e.oldData[s]),groupIdDim:o.dimension})}),T(We(r.to),function(o){var s=AY(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();n.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:ul(l),groupIdDim:o.dimension})}}),a.length>0&&n.length>0&&DY(a,n,i)}function CD(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,i){T(We(i.seriesTransition),function(a){T(We(a.to),function(n){for(var o=i.updatedSeries,s=0;s<o.length;s++)(n.seriesIndex!=null&&n.seriesIndex===o[s].seriesIndex||n.seriesId!=null&&n.seriesId===o[s].id)&&(o[s][Iv]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,i){var a=Une(t);if(a.oldSeries&&i.updatedSeries&&i.optionChanged){var n=i.seriesTransition;if(n)T(We(n),function(v){Wne(v,a,i,t)});else{var o=Yne(a,i);T(o.keys(),function(v){var h=o.get(v);DY(h.oldSeries,h.newSeries,t)})}T(i.updatedSeries,function(v){v[Iv]&&(v[Iv]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],f=a.oldData=[],p=0;p<s.length;p++){var c=s[p].getData();c.count()<EY&&(l.push(s[p]),u.push(s[p].get("dataGroupId")),f.push(c))}})}var Xne=(function(){function r(e,t){pp(this,r.decoratedMethods),this._outOfBrk=iy(null,t);var i=this._linear=iy(null,t);cp(this,i),this.breaks=e&&e.breaks||[]}return r.prototype.hasBreaks=function(){return!!this.breaks.length},r.prototype.calcNiceTickMultiple=function(e,t){for(var i=0;i<this.breaks.length;i++){var a=this.breaks[i];if(a.vmin<e&&e<a.vmax){var n=t(e,a.vmax);return n}}return 0},r.decoratedMethods={needTransform:function(){return!this.breaks.length},getExtent:function(){return this._outOfBrk.getExtent()},getExtentUnsafe:function(e,t){return t==null||t===ba?this._outOfBrk.getExtentUnsafe(e,null):this._linear.getExtentUnsafe(e,null)},setExtent:function(e,t){this.setExtent2(Cr,e,t)},setExtent2:function(e,t,i){Wa(t,i)&&(e===Cr&&Kne(this,[t,i]),this._outOfBrk.setExtent2(e,t,i),this._linear.setExtent2(e,this.transformIn(t,null),this.transformIn(i,null)))},normalize:function(e){return this._linear.normalize(this.transformIn(e,null))},scale:function(e){return this.transformOut(this._linear.scale(e),null)},contain:function(e){return this._outOfBrk.contain(e)},transformIn:function(e,t){if(t&&t.depth===ba)return e;for(var i=MY,a=IY,n=!0,o=0;o<this.breaks.length;o++){var s=this.breaks[o];if(e<=s.vmax){e>s.vmin?i+=s.vmin-a+(e-s.vmin)/(s.vmax-s.vmin)*s.gapReal:i+=e-a,a=s.vmax,n=!1;break}i+=s.vmin-a+s.gapReal,a=s.vmax}return n&&(i+=e-a),i},transformOut:function(e,t){if(t&&t.depth===ba)return e;for(var i=MY,a=IY,n=!0,o=0,s=0;s<this.breaks.length;s++){var l=this.breaks[s],u=i+l.vmin-a,f=u+l.gapReal;if(e<=f){e>u?o=l.vmin+(e-u)/(f-u)*(l.vmax-l.vmin):o=a+e-i,a=l.vmax,n=!1;break}i=f,a=l.vmax}return n&&(o=a+e-i),o}},r})();function Zne(r,e){return new Xne(r,e)}var MY=0,IY=0;function Kne(r,e){var t=0,i={tpAbs:{span:0,val:0},tpPrct:{span:0,val:0}},a=function(){return{has:!1,span:NaN,inExtFrac:NaN,val:NaN}},n={S:{tpAbs:a(),tpPrct:a()},E:{tpAbs:a(),tpPrct:a()}};T(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(t+=l.val);var u=DD(s,e);if(u){var f=u.vmin!==s.vmin,p=u.vmax!==s.vmax,c=u.vmax-u.vmin;if(!(f&&p))if(f||p){var v=f?"S":"E";n[v][l.type].has=!0,n[v][l.type].span=c,n[v][l.type].inExtFrac=c/(s.vmax-s.vmin),n[v][l.type].val=l.val}else i[l.type].span+=c,i[l.type].val+=l.val}});var o=t*(0+(e[1]-e[0])+(i.tpAbs.val-i.tpAbs.span)+(n.S.tpAbs.has?(n.S.tpAbs.val-n.S.tpAbs.span)*n.S.tpAbs.inExtFrac:0)+(n.E.tpAbs.has?(n.E.tpAbs.val-n.E.tpAbs.span)*n.E.tpAbs.inExtFrac:0)-i.tpPrct.span-(n.S.tpPrct.has?n.S.tpPrct.span*n.S.tpPrct.inExtFrac:0)-(n.E.tpPrct.has?n.E.tpPrct.span*n.E.tpPrct.inExtFrac:0))/(1-i.tpPrct.val-(n.S.tpPrct.has?n.S.tpPrct.val*n.S.tpPrct.inExtFrac:0)-(n.E.tpPrct.has?n.E.tpPrct.val*n.E.tpPrct.inExtFrac:0));T(r.breaks,function(s){var l=s.gapParsed;l.type==="tpPrct"&&(s.gapReal=t!==0?xe(o,0)*l.val/t:0),l.type==="tpAbs"&&(s.gapReal=l.val),s.gapReal==null&&(s.gapReal=0)})}function qne(r,e,t,i,a,n){r!=="no"&&T(t,function(o){var s=DD(o,n);if(s)for(var l=e.length-1;l>=0;l--){var u=e[l],f=i(u),p=a*3/4;f>s.vmin-p&&f<s.vmax+p&&(r!=="preserve_extent_bound"||f!==n[0]&&f!==n[1])&&e.splice(l,1)}})}function jne(r,e,t,i){T(e,function(a){var n=DD(a,t);n&&(r.push({value:n.vmin,break:{type:"vmin",parsedBreak:n},time:i?i(n):void 0}),r.push({value:n.vmax,break:{type:"vmax",parsedBreak:n},time:i?i(n):void 0}))}),e.length&&r.sort(function(a,n){return a.value-n.value})}function DD(r,e){var t=xe(r.vmin,e[0]),i=Fe(r.vmax,e[1]);return t<i||t===i&&t>e[0]&&t<e[1]?{vmin:t,vmax:i,breakOption:r.breakOption,gapParsed:r.gapParsed,gapReal:r.gapReal}:null}function AD(r,e,t){var i=[];if(!r)return{breaks:i};function a(o,s){return o>=0&&o<1-1e-5}T(r,function(o){if(!(!o||o.start==null||o.end==null)&&!o.isExpanded){var s={breakOption:ee(o),vmin:e.parse(o.start),vmax:e.parse(o.end),gapParsed:{type:"tpAbs",val:0},gapReal:null};if(o.gap!=null){var l=!1;if(H(o.gap)){var u=Gt(o.gap);if(u.match(/%$/)){var f=parseFloat(u)/100;a(f,"Percent gap")||(f=0),s.gapParsed.type="tpPrct",s.gapParsed.val=f,l=!0}}if(!l){var p=e.parse(o.gap);(!isFinite(p)||p<0)&&(p=0),s.gapParsed.type="tpAbs",s.gapParsed.val=p}}if(s.vmin===s.vmax&&(s.gapParsed.type="tpAbs",s.gapParsed.val=0),t&&t.noNegative&&T(["vmin","vmax"],function(v){s[v]<0&&(s[v]=0)}),s.vmin>s.vmax){var c=s.vmax;s.vmax=s.vmin,s.vmin=c}i.push(s)}}),i.sort(function(o,s){return o.vmin-s.vmin});var n=-1/0;return T(i,function(o,s){n>o.vmin&&(i[s]=null),n=o.vmax}),{breaks:Ie(i,function(o){return!!o})}}function MD(r,e){return ED(e)===ED(r)}function ED(r){return r.start+"_\0_"+r.end}function Jne(r,e,t){var i=[];T(r,function(n,o){var s=e(n);s&&s.type==="vmin"&&i.push([o])}),T(r,function(n,o){var s=e(n);if(s&&s.type==="vmax"){var l=ui(i,function(u){return MD(e(r[u[0]]).parsedBreak.breakOption,s.parsedBreak.breakOption)});l&&l.push(o)}});var a=[];return T(i,function(n){n.length===2&&a.push(t?n:[r[n[0]],r[n[1]]])}),a}function Qne(r,e,t,i){if(e.break){var a=e.break.parsedBreak,n=ui(t,function(f){return MD(f.breakOption,e.break.parsedBreak.breakOption)}),o={lookup:i,depth:ba},s=r.transformOut(a.vmin,o),l=r.transformOut(a.vmax,o),u={vmin:s,vmax:l,breakOption:a.breakOption,gapParsed:ee(n.gapParsed),gapReal:a.gapReal};return{tickVal:u[e.break.type],vBreak:{type:e.break.type,parsedBreak:u}}}}function $ne(r,e,t,i,a){a.original=AD(r,e,t);var n=a.transformed=AD(r,e,t),o=a.lookup;n.breaks=U(n.breaks,function(s,l){var u={depth:ba},f=e.transformIn(s.vmin,u),p=e.transformIn(s.vmax,u),c={type:s.gapParsed.type,val:s.gapParsed.type==="tpAbs"?e.transformIn(s.vmin+s.gapParsed.val,u)-f:s.gapParsed.val};return o.from[i+l]=f,o.to[i+l]=s.vmin,o.from[i+l+1]=p,o.to[i+l+1]=s.vmax,{vmin:f,vmax:p,gapParsed:c,gapReal:s.gapReal,breakOption:s.breakOption}})}var eoe={vmin:"start",vmax:"end"};function toe(r,e){return e&&(r=r||{},r.break={type:eoe[e.type],start:e.parsedBreak.vmin,end:e.parsedBreak.vmax}),r}function LY(){bP({createBreakScaleMapper:Zne,pruneTicksByBreak:qne,addBreaksToTicks:jne,parseAxisBreakOption:AD,identifyAxisBreak:MD,serializeAxisBreakIdentifier:ED,retrieveAxisBreakPairs:Jne,getTicksBreakOutwardTransform:Qne,parseAxisBreakOptionInwardTransform:$ne,makeAxisLabelFormatterParamBreak:toe})}var PY=ne();function roe(r,e){var t=ui(r,function(i){return mt().identifyAxisBreak(i.parsedBreak.breakOption,e.breakOption)});return t||r.push(t={zigzagRandomList:[],parsedBreak:e,shouldRemove:!1}),t}function ioe(r){T(r,function(e){return e.shouldRemove=!0})}function aoe(r){for(var e=r.length-1;e>=0;e--)r[e].shouldRemove&&r.splice(e,1)}function noe(r,e,t,i,a){var n=t.axis;if(n.scale.isBlank()||!mt())return;var o=mt().retrieveAxisBreakPairs(n.scale.getTicks({breakTicks:"only_break"}),function(C){return C.break},!1);if(!o.length)return;var s=t.getModel("breakArea"),l=s.get("zigzagAmplitude"),u=s.get("zigzagMinSpan"),f=s.get("zigzagMaxSpan");u=Math.max(2,u||0),f=Math.max(u,f||0);var p=s.get("expandOnClick"),c=s.get("zigzagZ"),v=s.getModel("itemStyle"),h=v.getItemStyle(),d=h.stroke,m=h.lineWidth,g=h.lineDash,y=h.fill,_=new Q({ignoreModelZ:!0}),x=n.isHorizontal(),S=PY(e).visualList||(PY(e).visualList=[]);ioe(S);for(var b=function(C){var E=o[C][0].break.parsedBreak,D=[];D[0]=n.toGlobalCoord(n.dataToCoord(E.vmin,!0)),D[1]=n.toGlobalCoord(n.dataToCoord(E.vmax,!0)),D[1]<D[0]&&D.reverse();var I=roe(S,E);I.shouldRemove=!1;var M=new Q;A(I.zigzagRandomList,M,D[0],D[1],x,E),p&&M.on("click",function(){var P={type:Cp,breaks:[{start:E.breakOption.start,end:E.breakOption.end}]};P[n.dim+"AxisIndex"]=t.componentIndex,a.dispatchAction(P)}),M.silent=!p,_.add(M)},w=0;w<o.length;w++)b(w);r.add(_),aoe(S);function A(C,E,D,I,M,P){var O={stroke:d,lineWidth:m,lineDash:g,fill:"none"},R=M?0:1,z=1-R,B=i[we[z]]+i[_t[z]];function F(pt){var Ze=[],nt=[];Ze[R]=nt[R]=pt,Ze[z]=i[we[z]],nt[z]=B;var ht={x1:Ze[0],y1:Ze[1],x2:nt[0],y2:nt[1]};return Xl(ht,ht,{lineWidth:1}),Ze[0]=ht.x1,Ze[1]=ht.y1,Ze[R]}D=F(D),I=F(I);for(var G=[],Y=[],q=!0,re=i[we[z]],ie=0;;ie++){var ue=re===i[we[z]],Pe=re>=B;Pe&&(re=B);var $e=[],De=[];$e[R]=D,De[R]=I,!ue&&!Pe&&($e[R]+=q?-l:l,De[R]-=q?l:-l),$e[z]=re,De[z]=re,G.push($e),Y.push(De);var fe=void 0;if(ie<C.length?fe=C[ie]:(fe=Math.random(),C.push(fe)),re+=fe*(f-u)+u,q=!q,Pe)break}var Oe=mt().serializeAxisBreakIdentifier(P.breakOption);if(E.add(new vt({anid:"break_a_"+Oe,shape:{points:G},style:O,z:c})),P.gapReal!==0){E.add(new vt({anid:"break_b_"+Oe,shape:{points:Y},style:O,z:c}));var pe=Y.slice();pe.reverse();var Me=G.concat(pe);E.add(new yt({anid:"break_c_"+Oe,shape:{points:Me},style:{fill:y,opacity:h.opacity},z:c}))}}}function ooe(r,e,t,i){var a=r.axis,n=t.transform;at(i.style);var o=a.getExtent();a.inverse&&(o=o.slice(),o.reverse());var s=mt().retrieveAxisBreakPairs(a.scale.getTicks({breakTicks:"only_break"}),function(m){return m.break},!1),l=U(s,function(m){var g=m[0].break.parsedBreak,y=[a.dataToCoord(g.vmin,!0),a.dataToCoord(g.vmax,!0)];return y[0]>y[1]&&y.reverse(),{coordPair:y,brkId:mt().serializeAxisBreakIdentifier(g.breakOption)}});l.sort(function(m,g){return m.coordPair[0]-g.coordPair[0]});for(var u=o[0],f=null,p=0;p<l.length;p++){var c=l[p],v=Math.max(c.coordPair[0],o[0]),h=Math.min(c.coordPair[1],o[1]);u<=v&&d(u,v,f,c),u=h,f=c}u<=o[1]&&d(u,o[1],f,null);function d(m,g,y,_){function x(D,I){n&&(ot(D,D,n),ot(I,I,n))}function S(D,I){var M={x1:D[0],y1:D[1],x2:I[0],y2:I[1]};Xl(M,M,i.style),D[0]=M.x1,D[1]=M.y1,I[0]=M.x2,I[1]=M.y2}var b=[m,0],w=[g,0],A=[m,5],C=[g,5];x(b,A),S(b,A),x(w,C),S(w,C),S(b,w);var E=new ut(k({shape:{x1:b[0],y1:b[1],x2:w[0],y2:w[1]}},i));e.add(E),E.anid="breakLine_"+(y?y.brkId:"\0")+"_\0_"+(_?_.brkId:"\0")}}function soe(r,e,t){if(ui(t,function(y){return!y}))return;var i=new he;if(!wp(t[0],t[1],i,{direction:-(r?e+Math.PI:e),touchThreshold:0,bidirectional:!1}))return;var a=Je();dr(a,a,-e);var n=U(t,function(y){return y.transform?Qt(Je(),a,y.transform):a});function o(y){var _=t[0].localRect,x=new he(_[_t[y]]*n[0][0],_[_t[y]]*n[0][1]);return Math.abs(x.y)<1e-5}var s=.5;if(o(0)||o(1)){var l=U(t,function(y,_){var x=y.localRect.clone();return x.applyTransform(n[_]),x}),u=new he;u.copy(t[0].label).add(t[1].label).scale(.5),u.transform(a);var f=i.clone().transform(a),p=l[0].x+l[1].x+(f.x>=0?l[0].width:l[1].width),c=(p+f.x)/2-u.x,v=Math.min(c,c-f.x),h=Math.max(c,c-f.x),d=h<0?h:v>0?v:0;s=(c-d)/f.x}var m=new he,g=new he;he.scale(m,i,-s),he.scale(g,i,1-s),eh(t[0],m),eh(t[1],g)}function loe(r,e){var t={breaks:[]};return T(e.breaks,function(i){if(i){var a=ui(r.get("breaks",!0),function(s){return mt().identifyAxisBreak(s,i)});if(a){var n=e.type,o={isExpanded:!!a.isExpanded};a.isExpanded=n===Cp?!0:n===Yw?!1:n===Ww?!a.isExpanded:a.isExpanded,t.breaks.push({start:a.start,end:a.end,isExpanded:!!a.isExpanded,old:o})}}}),t}function RY(){gk({adjustBreakLabelPair:soe,buildAxisBreakLine:ooe,rectCoordBuildBreakAxis:noe,updateModelAxisBreak:loe})}function ID(r){yk(r),LY(),RY()}function LD(){bz(uoe)}function uoe(r,e){T(r,function(t){if(!t.model.get(["axisLabel","inside"])){var i=foe(t);if(i){var a=t.isHorizontal()?"height":"width",n=t.model.get(["axisLabel","margin"]);e[a]-=i[a]+n,t.position==="top"?e.y+=i.height+n:t.position==="left"&&(e.x+=i.width+n)}}})}function foe(r){var e=r.model,t=r.scale;if(!e.get(["axisLabel","show"])||t.isBlank())return;var i,a,n=t.getExtent();t instanceof wu?a=t.count():(i=t.getTicks(),a=i.length);var o=r.getLabelModel(),s=Tu(r),l,u=1;a>40&&(u=Math.ceil(a/40));for(var f=0;f<a;f+=u){var p=i?i[f]:{value:n[0]+f},c=s(p,f),v=o.getTextRect(c),h=d(v,o.get("rotate")||0);l?l.union(h):l=h}return l;function d(m,g){var y=g*Math.PI/180,_=m.width,x=m.height,S=_*Math.abs(Math.cos(y))+Math.abs(x*Math.sin(y)),b=_*Math.abs(Math.sin(y))+Math.abs(x*Math.cos(y)),w=new oe(m.x,m.y,S,b);return w}}Ce([Ow]);Ce([Dw]);Ce([Gw,iT,lT,xT,CT,WT,eC,cC,DC,LC,PC,RC,jC,QC,eA,oA,sA,lA,uA,vA,dA,gA,UA]);Ce(ZA);Ce($A);Ce(Th);Ce(tE);Ce(Nh);Ce(aE);Ce(yE);Ce(xE);Ce(IE);Ce(OE);Ce(mn);Ce(UE);Ce(BE);Ce(YE);Ce(qE);Ce(JE);Ce(QE);Ce(nD);Ce(fD);Ce(jh);Ce($h);Ce(hD);Ce(td);Ce(rd);Ce(dD);Ce(gD);Ce(_D);Ce(xD);Ce(CD);Ce(sw);Ce(ID);Ce(LD);Ce(ST);export{ur as Axis,Le as ChartView,Se as ComponentModel,ze as ComponentView,Ct as List,Ee as Model,VO as PRIORITY,ke as SeriesModel,df as color,gme as connect,Cme as dataTool,dme as dependencies,yme as disConnect,DZ as disconnect,_me as dispose,Re as env,g_e as extendChartView,h_e as extendComponentModel,d_e as extendComponentView,m_e as extendSeriesModel,o2 as format,Sme as getCoordinateSystemDimensions,XO as getInstanceByDom,xme as getInstanceById,Tme as getMap,n2 as graphic,jN as helper,mme as init,Vv as innerDrawElementOnCanvas,Mr as matrix,i2 as number,jv as parseGeoJSON,jv as parseGeoJson,Jr as registerAction,jO as registerCoordinateSystem,bme as registerCustomSeries,JO as registerLayout,R1 as registerLoading,bb as registerLocale,QO as registerMap,KO as registerPostInit,qO as registerPostUpdate,I1 as registerPreprocessor,L1 as registerProcessor,ZO as registerTheme,$O as registerTransform,Qg as registerUpdateLifecycle,As as registerVisual,wme as setCanvasCreator,ix as setPlatformAPI,tp as throttle,a2 as time,Ce as use,s2 as util,Ht as vector,hme as version,K as zrUtil,sS as zrender};
41
+ /*! Bundled license information:
42
+
43
+ tslib/tslib.es6.js:
44
+ tslib/tslib.es6.js:
45
+ (*! *****************************************************************************
46
+ Copyright (c) Microsoft Corporation.
47
+
48
+ Permission to use, copy, modify, and/or distribute this software for any
49
+ purpose with or without fee is hereby granted.
50
+
51
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
52
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
53
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
54
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
55
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
56
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
57
+ PERFORMANCE OF THIS SOFTWARE.
58
+ ***************************************************************************** *)
59
+
60
+ zrender/lib/zrender.js:
61
+ (*!
62
+ * ZRender, a high performance 2d drawing library.
63
+ *
64
+ * Copyright (c) 2013, Baidu Inc.
65
+ * All rights reserved.
66
+ *
67
+ * LICENSE
68
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE
69
+ *)
70
+ */