useECharts-0e07dc99-1763717014417.js 767 KB

12345678910111213141516171819202122
  1. import{t as U_,u as X_,a as oC}from"./index-2ed9b35c-1763717014417.js";import{a5 as nv,r as gl,bh as on,bi as sC,bj as lC,J as ji,ak as uC}from"./index-8ca08701-1763717014417.js";const fC=Object.prototype.toString;function ad(r,e){return fC.call(r)==="[object ".concat(e,"]")}function hC(r){return ad(r,"Function")||ad(r,"AsyncFunction")}function Zu(r,e,t=!1){if(!hC(r))throw new Error("handle is not Function!");const{readyRef:n,stop:i,start:a}=cC(e);return t?r():nv(n,o=>{o&&r()},{immediate:!1}),{readyRef:n,stop:i,start:a}}function cC(r){const e=gl(!1);let t;function n(){e.value=!1,t&&window.clearTimeout(t)}function i(){n(),t=setTimeout(()=>{e.value=!0},r)}return i(),U_(n),{readyRef:e,stop:n,start:i}}function vC({el:r=window,name:e,listener:t,options:n,autoRemove:i=!0,isDebounce:a=!0,wait:o=80}){let s=()=>{};const l=gl(!1);if(r){const u=gl(r),f=a?X_(t,o):oC(t,o),h=o?f:t,v=d=>{l.value=!0,d.removeEventListener(e,h,n)},c=d=>d.addEventListener(e,h,n),p=nv(u,(d,g,y)=>{d&&(!on(l)&&c(d),y(()=>{i&&v(d)}))},{immediate:!0});s=()=>{v(u.value),p()}}return{removeEvent:s}}/*! *****************************************************************************
  2. Copyright (c) Microsoft Corporation.
  3. Permission to use, copy, modify, and/or distribute this software for any
  4. purpose with or without fee is hereby granted.
  5. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  6. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  7. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  8. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  9. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  10. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  11. PERFORMANCE OF THIS SOFTWARE.
  12. ***************************************************************************** */var Bh=function(r,e){return Bh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},Bh(r,e)};function E(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Bh(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var pC=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),dC=function(){function r(){this.browser=new pC,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}(),rn=new dC;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(rn.wxa=!0,rn.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?rn.worker=!0:!rn.hasGlobalWindow||"Deno"in window?(rn.node=!0,rn.svgSupported=!0):gC(navigator.userAgent,rn);function gC(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),i&&(t.ie=!0,t.version=i[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[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),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}const ft=rn;var iv=12,Z_="sans-serif",mn=iv+"px "+Z_,yC=20,mC=100,_C="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function SC(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),i=(r.charCodeAt(t)-yC)/mC;e[n]=i}return e}var xC=SC(_C),_n={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,n){if(!r){var i=_n.createCanvas();r=i&&i.getContext("2d")}if(r)return e!==n&&(e=r.font=n||mn),r.measureText(t);t=t||"",n=n||mn;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||iv,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=xC[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n}};function q_(r){for(var e in _n)r[e]&&(_n[e]=r[e])}var K_=Ve(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),j_=Ve(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),pa=Object.prototype.toString,ru=Array.prototype,wC=ru.forEach,bC=ru.filter,av=ru.slice,TC=ru.map,od=(function(){}).constructor,as=od?od.prototype:null,ov="__proto__",CC=2311;function sv(){return CC++}function lv(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function Z(r){if(r==null||typeof r!="object")return r;var e=r,t=pa.call(r);if(t==="[object Array]"){if(!Qi(r)){e=[];for(var n=0,i=r.length;n<i;n++)e[n]=Z(r[n])}}else if(j_[t]){if(!Qi(r)){var a=r.constructor;if(a.from)e=a.from(r);else{e=new a(r.length);for(var n=0,i=r.length;n<i;n++)e[n]=r[n]}}}else if(!K_[t]&&!Qi(r)&&!yi(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==ov&&(e[o]=Z(r[o]))}return e}function Q(r,e,t){if(!U(e)||!U(r))return t?Z(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==ov){var i=r[n],a=e[n];U(a)&&U(i)&&!z(a)&&!z(i)&&!yi(a)&&!yi(i)&&!Nh(a)&&!Nh(i)&&!Qi(a)&&!Qi(i)?Q(i,a,t):(t||!(n in r))&&(r[n]=Z(e[n]))}return r}function J_(r,e){for(var t=r[0],n=1,i=r.length;n<i;n++)t=Q(t,r[n],e);return t}function O(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==ov&&(r[t]=e[t]);return r}function q(r,e,t){for(var n=at(e),i=0,a=n.length;i<a;i++){var o=n[i];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}var AC=_n.createCanvas;function st(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function uv(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var i in t)t.hasOwnProperty(i)&&(r.prototype[i]=t[i]);r.prototype.constructor=r,r.superClass=e}function $t(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(t?e[a]!=null:r[a]==null)&&(r[a]=e[a])}else q(r,e,t)}function Qt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function T(r,e,t){if(r&&e)if(r.forEach&&r.forEach===wC)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)e.call(t,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&e.call(t,r[a],a,r)}function V(r,e,t){if(!r)return[];if(!e)return iu(r);if(r.map&&r.map===TC)return r.map(e,t);for(var n=[],i=0,a=r.length;i<a;i++)n.push(e.call(t,r[i],i,r));return n}function Ve(r,e,t,n){if(r&&e){for(var i=0,a=r.length;i<a;i++)t=e.call(n,t,r[i],i,r);return t}}function xt(r,e,t){if(!r)return[];if(!e)return iu(r);if(r.filter&&r.filter===bC)return r.filter(e,t);for(var n=[],i=0,a=r.length;i<a;i++)e.call(t,r[i],i,r)&&n.push(r[i]);return n}function Q_(r,e,t){if(r&&e){for(var n=0,i=r.length;n<i;n++)if(e.call(t,r[n],n,r))return r[n]}}function at(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 MC(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(av.call(arguments)))}}var W=as&&K(as.bind)?as.call.bind(as.bind):MC;function ht(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(av.call(arguments)))}}function z(r){return Array.isArray?Array.isArray(r):pa.call(r)==="[object Array]"}function K(r){return typeof r=="function"}function G(r){return typeof r=="string"}function yl(r){return pa.call(r)==="[object String]"}function _t(r){return typeof r=="number"}function U(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function Nh(r){return!!K_[pa.call(r)]}function se(r){return!!j_[pa.call(r)]}function yi(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function nu(r){return r.colorStops!=null}function DC(r){return r.image!=null}function LC(r){return pa.call(r)==="[object RegExp]"}function wo(r){return r!==r}function Br(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function j(r,e){return r!=null?r:e}function Ji(r,e,t){return r!=null?r:e!=null?e:t}function iu(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return av.apply(r,e)}function fv(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 le(r,e){if(!r)throw new Error(e)}function ze(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var t1="__ec_primitive__";function ml(r){r[t1]=!0}function Qi(r){return r[t1]}var PC=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 at(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r}(),e1=typeof Map=="function";function IC(){return e1?new Map:new PC}var r1=function(){function r(e){var t=z(e);this.data=IC();var n=this;e instanceof r?e.each(i):e&&T(e,i);function i(a,o){t?n.set(a,o):n.set(o,a)}}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(n,i){e.call(t,n,i)})},r.prototype.keys=function(){var e=this.data.keys();return e1?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r}();function $(r){return new r1(r)}function n1(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var i=r.length,n=0;n<e.length;n++)t[n+i]=e[n];return t}function Xo(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&O(t,e),t}function RC(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function tt(r,e){return r.hasOwnProperty(e)}function zt(){}var so=180/Math.PI;const EC=Object.freeze(Object.defineProperty({__proto__:null,HashMap:r1,RADIAN_TO_DEGREE:so,assert:le,bind:W,clone:Z,concatArray:n1,createCanvas:AC,createHashMap:$,createObject:Xo,curry:ht,defaults:q,disableUserSelect:RC,each:T,eqNaN:wo,extend:O,filter:xt,find:Q_,guid:sv,hasOwn:tt,indexOf:st,inherits:uv,isArray:z,isArrayLike:Qt,isBuiltInObject:Nh,isDom:yi,isFunction:K,isGradientObject:nu,isImagePatternObject:DC,isNumber:_t,isObject:U,isPrimitive:Qi,isRegExp:LC,isString:G,isStringSafe:yl,isTypedArray:se,keys:at,logError:lv,map:V,merge:Q,mergeAll:J_,mixin:$t,noop:zt,normalizeCssArray:fv,reduce:Ve,retrieve:Br,retrieve2:j,retrieve3:Ji,setAsPrimitive:ml,slice:iu,trim:ze},Symbol.toStringTag,{value:"Module"}));function wi(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function i1(r,e){return r[0]=e[0],r[1]=e[1],r}function a1(r){return[r[0],r[1]]}function kC(r,e,t){return r[0]=e,r[1]=t,r}function zh(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function OC(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function o1(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function hv(r){return Math.sqrt(cv(r))}var BC=hv;function cv(r){return r[0]*r[0]+r[1]*r[1]}var NC=cv;function zC(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function VC(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function FC(r,e){return r[0]*e[0]+r[1]*e[1]}function js(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function s1(r,e){var t=hv(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function _l(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Sl=_l;function l1(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var li=l1;function GC(r,e){return r[0]=-e[0],r[1]=-e[1],r}function Js(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function Vt(r,e,t){var n=e[0],i=e[1];return r[0]=t[0]*n+t[2]*i+t[4],r[1]=t[1]*n+t[3]*i+t[5],r}function Ir(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Rr(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}const HC=Object.freeze(Object.defineProperty({__proto__:null,add:zh,applyTransform:Vt,clone:a1,copy:i1,create:wi,dist:Sl,distSquare:li,distance:_l,distanceSquare:l1,div:VC,dot:FC,len:hv,lenSquare:cv,length:BC,lengthSquare:NC,lerp:Js,max:Rr,min:Ir,mul:zC,negate:GC,normalize:s1,scale:js,scaleAndAdd:OC,set:kC,sub:o1},Symbol.toStringTag,{value:"Module"}));var Mi=function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r}(),WC=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 Mi(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(a,o,e),this.handler.dispatchToElement(new Mi(t,e),"drag",e.event);var s=this.handler.findHover(n,i,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Mi(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new Mi(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Mi(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new Mi(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r}();const $C=WC;var YC=function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof t=="function"&&(i=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===n)return this;var l={h:n,query:t,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[e].length-1,f=a[e][u];return f&&f.callAtLast?a[e].splice(u,0,l):a[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 n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var i=[],a=0,o=n[e].length;a<o;a++)n[e][a].h!==t&&i.push(n[e][a]);n[e]=i}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=t.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.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 a&&a.afterTrigger&&a.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[e],a=this._$eventProcessor;if(i)for(var o=t.length,s=t[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.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 a&&a.afterTrigger&&a.afterTrigger(e),this},r}();const rr=YC;var UC=Math.log(2);function Vh(r,e,t,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/UC);return r[t][l]}for(var u=n|1<<t,f=t+1;n&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var p=1<<v;p&i||(h+=(c%2?-1:1)*r[t][v]*Vh(r,e-1,f,u,i|p,a),c++)}return a[o]=h,h}function sd(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]]],n={},i=Vh(t,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Vh(t,7,o===0?1:0,1<<o,1<<s,n)/i*e[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var ld="___zrEVENTSAVED",qu=[];function XC(r,e,t,n,i){return Fh(qu,e,n,i,!0)&&Fh(r,t,qu[0],qu[1])}function Fh(r,e,t,n,i){if(e.getBoundingClientRect&&ft.domSupported&&!u1(e)){var a=e[ld]||(e[ld]={}),o=ZC(e,a),s=qC(o,a,i);if(s)return s(r,t,n),!0}return!1}function ZC(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return t}function qC(r,e,t){for(var n=t?"invTrans":"trans",i=e[n],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&a&&v===a[h]&&c===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[n]=t?sd(s,o):sd(o,s))}function u1(r){return r.nodeName.toUpperCase()==="CANVAS"}var KC=/([&<>"'])/g,jC={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Ht(r){return r==null?"":(r+"").replace(KC,function(e,t){return jC[t]})}var JC=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ku=[],QC=ft.browser.firefox&&+ft.browser.version.split(".")[0]<39;function Gh(r,e,t,n){return t=t||{},n?ud(r,e,t):QC&&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):ud(r,e,t),t}function ud(r,e,t){if(ft.domSupported&&r.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(u1(r)){var a=r.getBoundingClientRect();t.zrX=n-a.left,t.zrY=i-a.top;return}else if(Fh(Ku,r,n,i)){t.zrX=Ku[0],t.zrY=Ku[1];return}}t.zrX=t.zrY=0}function vv(r){return r||window.event}function Le(r,e,t){if(e=vv(e),e.zrX!=null)return e;var n=e.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&Gh(r,o,e,t)}else{Gh(r,e,e,t);var a=tA(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&JC.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function tA(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var i=Math.abs(n!==0?n:t),a=n>0?-1:n<0?1:t>0?-1:1;return 3*i*a}function Hh(r,e,t,n){r.addEventListener(e,t,n)}function eA(r,e,t,n){r.removeEventListener(e,t,n)}var Nr=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function fd(r){return r.which===2||r.which===3}var rA=function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var a={points:[],touches:[],target:t,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=Gh(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(e){for(var t in ju)if(ju.hasOwnProperty(t)){var n=ju[t](this._track,e);if(n)return n}},r}();function hd(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function nA(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var ju={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,i=(r[t-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=hd(n)/hd(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=nA(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function xe(){return[1,0,0,1,0,0]}function Zo(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function au(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 _r(r,e,t){var n=e[0]*t[0]+e[2]*t[1],i=e[1]*t[0]+e[3]*t[1],a=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]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function zr(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 Cn(r,e,t,n){n===void 0&&(n=[0,0]);var i=e[0],a=e[2],o=e[4],s=e[1],l=e[3],u=e[5],f=Math.sin(t),h=Math.cos(t);return r[0]=i*h+s*f,r[1]=-i*f+s*h,r[2]=a*h+l*f,r[3]=-a*f+h*l,r[4]=h*(o-n[0])+f*(u-n[1])+n[0],r[5]=h*(u-n[1])-f*(o-n[0])+n[1],r}function pv(r,e,t){var n=t[0],i=t[1];return r[0]=e[0]*n,r[1]=e[1]*i,r[2]=e[2]*n,r[3]=e[3]*i,r[4]=e[4]*n,r[5]=e[5]*i,r}function da(r,e){var t=e[0],n=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=t*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-t*s)*l,r):null}function iA(r){var e=xe();return au(e,r),e}const aA=Object.freeze(Object.defineProperty({__proto__:null,clone:iA,copy:au,create:xe,identity:Zo,invert:da,mul:_r,rotate:Cn,scale:pv,translate:zr},Symbol.toStringTag,{value:"Module"}));var oA=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,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},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,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+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,n){e.x=t,e.y=n},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,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},r.lerp=function(e,t,n,i){var a=1-i;e.x=a*t.x+i*n.x,e.y=a*t.y+i*n.y},r}();const rt=oA;var os=Math.min,ss=Math.max,Dn=new rt,Ln=new rt,Pn=new rt,In=new rt,Aa=new rt,Ma=new rt,sA=function(){function r(e,t,n,i){n<0&&(e=e+n,n=-n),i<0&&(t=t+i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return r.prototype.union=function(e){var t=os(e.x,this.x),n=os(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ss(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=ss(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,a=xe();return zr(a,a,[-t.x,-t.y]),pv(a,a,[n,i]),zr(a,a,[e.x,e.y]),a},r.prototype.intersect=function(e,t){if(!e)return!1;e instanceof r||(e=r.create(e));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,f=e.y,h=e.y+e.height,v=!(a<l||u<i||s<f||h<o);if(t){var c=1/0,p=0,d=Math.abs(a-l),g=Math.abs(u-i),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(d,g),S=Math.min(y,m);a<l||u<i?_>p&&(p=_,d<g?rt.set(Ma,-d,0):rt.set(Ma,g,0)):_<c&&(c=_,d<g?rt.set(Aa,d,0):rt.set(Aa,-g,0)),s<f||h<o?S>p&&(p=S,y<m?rt.set(Ma,0,-y):rt.set(Ma,0,m)):_<c&&(c=_,y<m?rt.set(Aa,0,y):rt.set(Aa,0,-m))}return t&&rt.copy(t,v?Aa:Ma),v},r.prototype.contain=function(e,t){var n=this;return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){r.copy(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.x,e.y,e.width,e.height)},r.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},r.applyTransform=function(e,t,n){if(!n){e!==t&&r.copy(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];e.x=t.x*i+o,e.y=t.y*a+s,e.width=t.width*i,e.height=t.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Dn.x=Pn.x=t.x,Dn.y=In.y=t.y,Ln.x=In.x=t.x+t.width,Ln.y=Pn.y=t.y+t.height,Dn.transform(n),In.transform(n),Ln.transform(n),Pn.transform(n),e.x=os(Dn.x,Ln.x,Pn.x,In.x),e.y=os(Dn.y,Ln.y,Pn.y,In.y);var l=ss(Dn.x,Ln.x,Pn.x,In.x),u=ss(Dn.y,Ln.y,Pn.y,In.y);e.width=l-e.x,e.height=u-e.y},r}();const ct=sA;var f1="silent";function lA(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:uA}}function uA(){Nr(this.event)}var fA=function(r){E(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}(rr),Da=function(){function r(e,t){this.x=e,this.y=t}return r}(),hA=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ju=new ct(0,0,0,0),h1=function(r){E(e,r);function e(t,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Da(0,0),s.storage=t,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new fA,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new $C(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(T(hA,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,i=t.zrY,a=c1(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new Da(n,i):this.findHover(n,i),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 n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Da(0,0)},e.prototype.dispatch=function(t,n){var i=this[t];i&&i.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,i){t=t||{};var a=t.target;if(!(a&&a.silent)){for(var o="on"+n,s=lA(n,t,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(t,n,i){var a=this.storage.getDisplayList(),o=new Da(t,n);if(cd(a,o,t,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new ct(t-u,n-u,l,l),h=a.length-1;h>=0;h--){var v=a[h];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Ju.copy(v.getBoundingRect()),v.transform&&Ju.applyTransform(v.transform),Ju.intersect(f)&&s.push(v))}if(s.length)for(var c=4,p=Math.PI/12,d=Math.PI*2,g=0;g<u;g+=c)for(var y=0;y<d;y+=p){var m=t+g*Math.cos(y),_=n+g*Math.sin(y);if(cd(s,o,m,_,i),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new rA);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;t.gestureEvent=o;var s=new Da;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(rr);T(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){h1.prototype[r]=function(e){var t=e.zrX,n=e.zrY,i=c1(this,t,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(t,n),o=a.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||Sl(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,e)}});function cA(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?f1:!0}return!1}function cd(r,e,t,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=cA(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==f1)){e.target=o;break}}}function c1(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}const vA=h1;var v1=32,La=7;function pA(r){for(var e=0;r>=v1;)e|=r&1,r>>=1;return r+e}function vd(r,e,t,n){var i=e+1;if(i===t)return 1;if(n(r[i++],r[e])<0){for(;i<t&&n(r[i],r[i-1])<0;)i++;dA(r,e,i)}else for(;i<t&&n(r[i],r[i-1])>=0;)i++;return i-e}function dA(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function pd(r,e,t,n,i){for(n===e&&n++;n<t;n++){for(var a=r[n],o=e,s=n,l;o<s;)l=o+s>>>1,i(a,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=a}}function Qu(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])>0){for(s=n-i;l<s&&a(r,e[t+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(r,e[t+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])>0?o=f+1:l=f}return l}function tf(r,e,t,n,i,a){var o=0,s=0,l=1;if(a(r,e[t+i])<0){for(s=i+1;l<s&&a(r,e[t+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(r,e[t+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(r,e[t+f])<0?l=f:o=f+1}return l}function gA(r,e){var t=La,n,i,a=0,o=[];n=[],i=[];function s(c,p){n[a]=c,i[a]=p,a+=1}function l(){for(;a>1;){var c=a-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]<i[c+1]&&c--;else if(i[c]>i[c+1])break;f(c)}}function u(){for(;a>1;){var c=a-2;c>0&&i[c-1]<i[c+1]&&c--,f(c)}}function f(c){var p=n[c],d=i[c],g=n[c+1],y=i[c+1];i[c]=d+y,c===a-3&&(n[c+1]=n[c+2],i[c+1]=i[c+2]),a--;var m=tf(r[g],r,p,d,0,e);p+=m,d-=m,d!==0&&(y=Qu(r[p+d-1],r,g,y,y-1,e),y!==0&&(d<=y?h(p,d,g,y):v(p,d,g,y)))}function h(c,p,d,g){var y=0;for(y=0;y<p;y++)o[y]=r[c+y];var m=0,_=d,S=c;if(r[S++]=r[_++],--g===0){for(y=0;y<p;y++)r[S+y]=o[m+y];return}if(p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var w=t,x,b,C;;){x=0,b=0,C=!1;do if(e(r[_],o[m])<0){if(r[S++]=r[_++],b++,x=0,--g===0){C=!0;break}}else if(r[S++]=o[m++],x++,b=0,--p===1){C=!0;break}while((x|b)<w);if(C)break;do{if(x=tf(r[_],o,m,p,0,e),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,p-=x,p<=1){C=!0;break}}if(r[S++]=r[_++],--g===0){C=!0;break}if(b=Qu(o[m],r,_,g,0,e),b!==0){for(y=0;y<b;y++)r[S+y]=r[_+y];if(S+=b,_+=b,g-=b,g===0){C=!0;break}}if(r[S++]=o[m++],--p===1){C=!0;break}w--}while(x>=La||b>=La);if(C)break;w<0&&(w=0),w+=2}if(t=w,t<1&&(t=1),p===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(p===0)throw new Error;for(y=0;y<p;y++)r[S+y]=o[m+y]}}function v(c,p,d,g){var y=0;for(y=0;y<g;y++)o[y]=r[d+y];var m=c+p-1,_=g-1,S=d+g-1,w=0,x=0;if(r[S--]=r[m--],--p===0){for(w=S-(g-1),y=0;y<g;y++)r[w+y]=o[y];return}if(g===1){for(S-=p,m-=p,x=S+1,w=m+1,y=p-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_];return}for(var b=t;;){var C=0,A=0,M=!1;do if(e(o[_],r[m])<0){if(r[S--]=r[m--],C++,A=0,--p===0){M=!0;break}}else if(r[S--]=o[_--],A++,C=0,--g===1){M=!0;break}while((C|A)<b);if(M)break;do{if(C=p-tf(o[_],r,c,p,p-1,e),C!==0){for(S-=C,m-=C,p-=C,x=S+1,w=m+1,y=C-1;y>=0;y--)r[x+y]=r[w+y];if(p===0){M=!0;break}}if(r[S--]=o[_--],--g===1){M=!0;break}if(A=g-Qu(r[m],o,0,g,g-1,e),A!==0){for(S-=A,_-=A,g-=A,x=S+1,w=_+1,y=0;y<A;y++)r[x+y]=o[w+y];if(g<=1){M=!0;break}}if(r[S--]=r[m--],--p===0){M=!0;break}b--}while(C>=La||A>=La);if(M)break;b<0&&(b=0),b+=2}if(t=b,t<1&&(t=1),g===1){for(S-=p,m-=p,x=S+1,w=m+1,y=p-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_]}else{if(g===0)throw new Error;for(w=S-(g-1),y=0;y<g;y++)r[w+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Qs(r,e,t,n){t||(t=0),n||(n=r.length);var i=n-t;if(!(i<2)){var a=0;if(i<v1){a=vd(r,t,n,e),pd(r,t,n,t+a,e);return}var o=gA(r,e),s=pA(i);do{if(a=vd(r,t,n,e),a<s){var l=i;l>s&&(l=s),pd(r,t,t+l,t+a,e),a=l}o.pushRun(t,a),o.mergeRuns(),i-=a,t+=a}while(i!==0);o.forceMergeRuns()}}var vr=1,Ja=2,Yi=4,dd=!1;function ef(){dd||(dd=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function gd(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var yA=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=gd}return r.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,i=0,a=t.length;i<a;i++)this._updateAndAddDisplayable(t[i],null,e);n.length=this._displayListLen,Qs(n,gd)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)t=null;else if(i){t?t=t.slice():t=[];for(var a=i,o=e;a;)a.parent=o,a.updateTransform(),t.push(a),o=a,a=a.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=vr),this._updateAndAddDisplayable(u,t,n)}e.__dirty=0}else{var f=e;t&&t.length?f.__clipPaths=t:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(ef(),f.z=0),isNaN(f.z2)&&(ef(),f.z2=0),isNaN(f.zlevel)&&(ef(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=e.getDecalElement&&e.getDecalElement();h&&this._updateAndAddDisplayable(h,t,n);var v=e.getTextGuideLine();v&&this._updateAndAddDisplayable(v,t,n);var c=e.getTextContent();c&&this._updateAndAddDisplayable(c,t,n)}},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,n=e.length;t<n;t++)this.delRoot(e[t]);return}var i=st(this._roots,e);i>=0&&this._roots.splice(i,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}();const mA=yA;var p1;p1=ft.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const yd=p1;var tl={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,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*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)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.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-tl.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?tl.bounceIn(r*2)*.5:tl.bounceOut(r*2-1)*.5+.5}};const d1=tl;var ls=Math.pow,pn=Math.sqrt,xl=1e-8,g1=1e-4,md=pn(3),us=1/3,pr=wi(),Ee=wi(),ta=wi();function sn(r){return r>-xl&&r<xl}function y1(r){return r>xl||r<-xl}function kt(r,e,t,n,i){var a=1-i;return a*a*(a*r+3*i*e)+i*i*(i*n+3*a*t)}function _d(r,e,t,n,i){var a=1-i;return 3*(((e-r)*a+2*(t-e)*i)*a+(n-t)*i*i)}function wl(r,e,t,n,i,a){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-i,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(sn(f)&&sn(h))if(sn(s))a[0]=0;else{var p=-l/s;p>=0&&p<=1&&(a[c++]=p)}else{var d=h*h-4*f*v;if(sn(d)){var g=h/f,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(a[c++]=p),y>=0&&y<=1&&(a[c++]=y)}else if(d>0){var m=pn(d),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-ls(-_,us):_=ls(_,us),S<0?S=-ls(-S,us):S=ls(S,us);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(a[c++]=p)}else{var w=(2*f*s-3*o*h)/(2*pn(f*f*f)),x=Math.acos(w)/3,b=pn(f),C=Math.cos(x),p=(-s-2*b*C)/(3*o),y=(-s+b*(C+md*Math.sin(x)))/(3*o),A=(-s+b*(C-md*Math.sin(x)))/(3*o);p>=0&&p<=1&&(a[c++]=p),y>=0&&y<=1&&(a[c++]=y),A>=0&&A<=1&&(a[c++]=A)}}return c}function m1(r,e,t,n,i){var a=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(sn(o)){if(y1(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(sn(f))i[0]=-a/(2*o);else if(f>0){var h=pn(f),u=(-a+h)/(2*o),v=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function bl(r,e,t,n,i,a){var o=(e-r)*i+r,s=(t-e)*i+e,l=(n-t)*i+t,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function _A(r,e,t,n,i,a,o,s,l,u,f){var h,v=.005,c=1/0,p,d,g,y;pr[0]=l,pr[1]=u;for(var m=0;m<1;m+=.05)Ee[0]=kt(r,t,i,o,m),Ee[1]=kt(e,n,a,s,m),g=li(pr,Ee),g<c&&(h=m,c=g);c=1/0;for(var _=0;_<32&&!(v<g1);_++)p=h-v,d=h+v,Ee[0]=kt(r,t,i,o,p),Ee[1]=kt(e,n,a,s,p),g=li(Ee,pr),p>=0&&g<c?(h=p,c=g):(ta[0]=kt(r,t,i,o,d),ta[1]=kt(e,n,a,s,d),y=li(ta,pr),d<=1&&y<c?(h=d,c=y):v*=.5);return f&&(f[0]=kt(r,t,i,o,h),f[1]=kt(e,n,a,s,h)),pn(c)}function SA(r,e,t,n,i,a,o,s,l){for(var u=r,f=e,h=0,v=1/l,c=1;c<=l;c++){var p=c*v,d=kt(r,t,i,o,p),g=kt(e,n,a,s,p),y=d-u,m=g-f;h+=Math.sqrt(y*y+m*m),u=d,f=g}return h}function qt(r,e,t,n){var i=1-n;return i*(i*r+2*n*e)+n*n*t}function Sd(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function xA(r,e,t,n,i){var a=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(sn(a)){if(y1(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(sn(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=pn(f),u=(-o+h)/(2*a),v=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function _1(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function Tl(r,e,t,n,i){var a=(e-r)*n+r,o=(t-e)*n+e,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=t}function wA(r,e,t,n,i,a,o,s,l){var u,f=.005,h=1/0;pr[0]=o,pr[1]=s;for(var v=0;v<1;v+=.05){Ee[0]=qt(r,t,i,v),Ee[1]=qt(e,n,a,v);var c=li(pr,Ee);c<h&&(u=v,h=c)}h=1/0;for(var p=0;p<32&&!(f<g1);p++){var d=u-f,g=u+f;Ee[0]=qt(r,t,i,d),Ee[1]=qt(e,n,a,d);var c=li(Ee,pr);if(d>=0&&c<h)u=d,h=c;else{ta[0]=qt(r,t,i,g),ta[1]=qt(e,n,a,g);var y=li(ta,pr);g<=1&&y<h?(u=g,h=y):f*=.5}}return l&&(l[0]=qt(r,t,i,u),l[1]=qt(e,n,a,u)),pn(h)}function bA(r,e,t,n,i,a,o){for(var s=r,l=e,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=qt(r,t,i,v),p=qt(e,n,a,v),d=c-s,g=p-l;u+=Math.sqrt(d*d+g*g),s=c,l=p}return u}var TA=/cubic-bezier\(([0-9,\.e ]+)\)/;function dv(r){var e=r&&TA.exec(r);if(e){var t=e[1].split(","),n=+ze(t[0]),i=+ze(t[1]),a=+ze(t[2]),o=+ze(t[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:wl(0,n,a,1,l,s)&&kt(0,i,o,1,s[0])}}}var CA=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||zt,this.ondestroy=e.ondestroy||zt,this.onrestart=e.onrestart||zt,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 n=this._life,i=e-this._startTime-this._pausedTime,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var l=i%n;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=K(e)?e:d1[e]||dv(e)},r}();const AA=CA;var S1=function(){function r(e){this.value=e}return r}(),MA=function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new S1(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,n=e.next;t?t.next=n:this.head=n,n?n.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}(),DA=function(){function r(e){this._list=new MA,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,i=this._map,a=null;if(i[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new S1(t),s.key=e,n.insertEntry(s),i[e]=s}return a},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const qo=DA;var xd={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 Je(r){return r=Math.round(r),r<0?0:r>255?255:r}function LA(r){return r=Math.round(r),r<0?0:r>360?360:r}function bo(r){return r<0?0:r>1?1:r}function rf(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?Je(parseFloat(e)/100*255):Je(parseInt(e,10))}function ui(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?bo(parseFloat(e)/100):bo(parseFloat(e))}function nf(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 ln(r,e,t){return r+(e-r)*t}function De(r,e,t,n,i){return r[0]=e,r[1]=t,r[2]=n,r[3]=i,r}function Wh(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var x1=new qo(20),fs=null;function Di(r,e){fs&&Wh(fs,e),fs=x1.put(r,fs||e.slice())}function ae(r,e){if(r){e=e||[];var t=x1.get(r);if(t)return Wh(e,t);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in xd)return Wh(e,xd[n]),Di(r,e),e;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){De(e,0,0,0,1);return}return De(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),Di(r,e),e}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){De(e,0,0,0,1);return}return De(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Di(r,e),e}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?De(e,+u[0],+u[1],+u[2],1):De(e,0,0,0,1);f=ui(u.pop());case"rgb":if(u.length>=3)return De(e,rf(u[0]),rf(u[1]),rf(u[2]),u.length===3?f:ui(u[3])),Di(r,e),e;De(e,0,0,0,1);return;case"hsla":if(u.length!==4){De(e,0,0,0,1);return}return u[3]=ui(u[3]),$h(u,e),Di(r,e),e;case"hsl":if(u.length!==3){De(e,0,0,0,1);return}return $h(u,e),Di(r,e),e;default:return}}De(e,0,0,0,1)}}function $h(r,e){var t=(parseFloat(r[0])%360+360)%360/360,n=ui(r[1]),i=ui(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return e=e||[],De(e,Je(nf(o,a,t+1/3)*255),Je(nf(o,a,t)*255),Je(nf(o,a,t-1/3)*255),1),r.length===4&&(e[3]=r[3]),e}function PA(r){if(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.min(e,t,n),a=Math.max(e,t,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var f=((a-e)/6+o/2)/o,h=((a-t)/6+o/2)/o,v=((a-n)/6+o/2)/o;e===a?l=v-h:t===a?l=1/3+f-v:n===a&&(l=2/3+h-f),l<0&&(l+=1),l>1&&(l-=1)}var c=[l*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function Yh(r,e){var t=ae(r);if(t){for(var n=0;n<3;n++)e<0?t[n]=t[n]*(1-e)|0:t[n]=(255-t[n])*e+t[n]|0,t[n]>255?t[n]=255:t[n]<0&&(t[n]=0);return Qe(t,t.length===4?"rgba":"rgb")}}function IA(r){var e=ae(r);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function lo(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){t=t||[];var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=e[i],s=e[a],l=n-i;return t[0]=Je(ln(o[0],s[0],l)),t[1]=Je(ln(o[1],s[1],l)),t[2]=Je(ln(o[2],s[2],l)),t[3]=bo(ln(o[3],s[3],l)),t}}var RA=lo;function gv(r,e,t){if(!(!(e&&e.length)||!(r>=0&&r<=1))){var n=r*(e.length-1),i=Math.floor(n),a=Math.ceil(n),o=ae(e[i]),s=ae(e[a]),l=n-i,u=Qe([Je(ln(o[0],s[0],l)),Je(ln(o[1],s[1],l)),Je(ln(o[2],s[2],l)),bo(ln(o[3],s[3],l))],"rgba");return t?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}var EA=gv;function el(r,e,t,n){var i=ae(r);if(r)return i=PA(i),e!=null&&(i[0]=LA(e)),t!=null&&(i[1]=ui(t)),n!=null&&(i[2]=ui(n)),Qe($h(i),"rgba")}function w1(r,e){var t=ae(r);if(t&&e!=null)return t[3]=bo(e),Qe(t,"rgba")}function Qe(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 To(r,e){var t=ae(r);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}function kA(){return Qe([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var wd=new qo(100);function Cl(r){if(G(r)){var e=wd.get(r);return e||(e=Yh(r,-.1),wd.put(r,e)),e}else if(nu(r)){var t=O({},r);return t.colorStops=V(r.colorStops,function(n){return{offset:n.offset,color:Yh(n.color,-.1)}}),t}return r}const OA=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:lo,fastMapToColor:RA,lerp:gv,lift:Yh,liftColor:Cl,lum:To,mapToColor:EA,modifyAlpha:w1,modifyHSL:el,parse:ae,random:kA,stringify:Qe,toHex:IA},Symbol.toStringTag,{value:"Module"}));var Al=Math.round;function Co(r){var e;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var t=ae(r);t&&(r="rgb("+t[0]+","+t[1]+","+t[2]+")",e=t[3])}return{color:r,opacity:e==null?1:e}}var bd=1e-4;function un(r){return r<bd&&r>-bd}function hs(r){return Al(r*1e3)/1e3}function Uh(r){return Al(r*1e4)/1e4}function BA(r){return"matrix("+hs(r[0])+","+hs(r[1])+","+hs(r[2])+","+hs(r[3])+","+Uh(r[4])+","+Uh(r[5])+")"}var NA={left:"start",right:"end",center:"middle",middle:"middle"};function zA(r,e,t){return t==="top"?r+=e/2:t==="bottom"&&(r-=e/2),r}function VA(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function FA(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 b1(r){return r&&!!r.image}function GA(r){return r&&!!r.svgElement}function yv(r){return b1(r)||GA(r)}function T1(r){return r.type==="linear"}function C1(r){return r.type==="radial"}function A1(r){return r&&(r.type==="linear"||r.type==="radial")}function ou(r){return"url(#"+r+")"}function M1(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 D1(r){var e=r.x||0,t=r.y||0,n=(r.rotation||0)*so,i=j(r.scaleX,1),a=j(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,l=[];return(e||t)&&l.push("translate("+e+"px,"+t+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+Al(o*so)+"deg, "+Al(s*so)+"deg)"),l.join(" ")}var HA=function(){return ft.hasGlobalWindow&&K(window.btoa)?function(r){return window.btoa(unescape(encodeURIComponent(r)))}:typeof Buffer<"u"?function(r){return Buffer.from(r).toString("base64")}:function(r){return null}}(),Xh=Array.prototype.slice;function Lr(r,e,t){return(e-r)*t+r}function af(r,e,t,n){for(var i=e.length,a=0;a<i;a++)r[a]=Lr(e[a],t[a],n);return r}function WA(r,e,t,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=Lr(e[o][s],t[o][s],n)}return r}function cs(r,e,t,n){for(var i=e.length,a=0;a<i;a++)r[a]=e[a]+t[a]*n;return r}function Td(r,e,t,n){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=e[o][s]+t[o][s]*n}return r}function $A(r,e){for(var t=r.length,n=e.length,i=t>n?e:r,a=Math.min(t,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(t,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function YA(r,e,t){var n=r,i=e;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(t===1?i[l]:Xh.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(t===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<u;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function uo(r){if(Qt(r)){var e=r.length;if(Qt(r[0])){for(var t=[],n=0;n<e;n++)t.push(Xh.call(r[n]));return t}return Xh.call(r)}return r}function rl(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 UA(r){return Qt(r&&r[0])?2:1}var vs=0,nl=1,L1=2,Qa=3,Zh=4,qh=5,Cd=6;function Ad(r){return r===Zh||r===qh}function ps(r){return r===nl||r===L1}var Pa=[0,0,0,0],XA=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,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Cd,l=t;if(Qt(t)){var u=UA(t);s=u,(u===1&&!_t(t[0])||u===2&&!_t(t[0][0]))&&(o=!0)}else if(_t(t)&&!wo(t))s=vs;else if(G(t))if(!isNaN(+t))s=vs;else{var f=ae(t);f&&(l=f,s=Qa)}else if(nu(t)){var h=O({},l);h.colorStops=V(t.colorStops,function(c){return{offset:c.offset,color:ae(c.color)}}),T1(t)?s=Zh:C1(t)&&(s=qh),l=h}a===0?this.valType=s:(s!==this.valType||s===Cd)&&(o=!0),this.discrete=this.discrete||o;var v={time:e,value:l,rawValue:t,percent:0};return n&&(v.easing=n,v.easingFunc=K(n)?n:d1[n]||dv(n)),i.push(v),v},r.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(d,g){return d.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=ps(i),u=Ad(i),f=0;f<a;f++){var h=n[f],v=h.value,c=o.value;h.percent=h.time/e,s||(l&&f!==a-1?YA(v,c,i):u&&$A(v.colorStops,c.colorStops))}if(!s&&i!==qh&&t&&this.needsAnimate()&&t.needsAnimate()&&i===t.valType&&!t._finished){this._additiveTrack=t;for(var p=n[0].value,f=0;f<a;f++)i===vs?n[f].additiveValue=n[f].value-p:i===Qa?n[f].additiveValue=cs([],n[f].value,p,-1):ps(i)&&(n[f].additiveValue=i===nl?cs([],n[f].value,p,-1):Td([],n[f].value,p,-1))}},r.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Qa,f,h=this._lastFr,v=Math.min,c,p;if(s===1)c=p=o[0];else{if(t<0)f=0;else if(t<this._lastFrP){var d=v(h+1,s-1);for(f=d;f>=0&&!(o[f].percent<=t);f--);f=v(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>t);f++);f=v(f-1,s-2)}p=o[f+1],c=o[f]}if(c&&p){this._lastFr=f,this._lastFrP=t;var g=p.percent-c.percent,y=g===0?1:v((t-c.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var m=n?this._additiveValue:u?Pa:e[l];if((ps(a)||u)&&!m&&(m=this._additiveValue=[]),this.discrete)e[l]=y<1?c.rawValue:p.rawValue;else if(ps(a))a===nl?af(m,c[i],p[i],y):WA(m,c[i],p[i],y);else if(Ad(a)){var _=c[i],S=p[i],w=a===Zh;e[l]={type:w?"linear":"radial",x:Lr(_.x,S.x,y),y:Lr(_.y,S.y,y),colorStops:V(_.colorStops,function(b,C){var A=S.colorStops[C];return{offset:Lr(b.offset,A.offset,y),color:rl(af([],b.color,A.color,y))}}),global:S.global},w?(e[l].x2=Lr(_.x2,S.x2,y),e[l].y2=Lr(_.y2,S.y2,y)):e[l].r=Lr(_.r,S.r,y)}else if(u)af(m,c[i],p[i],y),n||(e[l]=rl(m));else{var x=Lr(c[i],p[i],y);n?this._additiveValue=x:e[l]=x}n&&this._addToTarget(e)}}},r.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===vs?e[n]=e[n]+i:t===Qa?(ae(e[n],Pa),cs(Pa,Pa,i,1),e[n]=rl(Pa)):t===nl?cs(e[n],e[n],i,1):t===L1&&Td(e[n],e[n],i,1)},r}(),ZA=function(){function r(e,t,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i){lv("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}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,n){return this.whenWithKeys(e,t,at(t),n)},r.prototype.whenWithKeys=function(e,t,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new XA(s);var u=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,v=h[h.length-1];u=v&&v.value,f.valType===Qa&&u&&(u=rl(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,uo(u),i),this._trackKeys.push(s)}l.addKeyframe(e,uo(t[s]),i)}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,n=0;n<t;n++)e[n].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 n=0;n<t.length;n++)t[n].call(this)},r.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},r.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(e);a&&(t=a)}return t},r.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,f=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=u[f-1];h&&(t._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new AA({life:i,loop:this._loop,delay:this._delay||0,onframe:function(c){t._started=2;var p=t._additiveAnimators;if(p){for(var d=!1,g=0;g<p.length;g++)if(p[g]._clip){d=!0;break}d||(t._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(t._target,c);var y=t._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](t._target,c)},ondestroy:function(){t._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),e&&v.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 V(this._trackKeys,function(t){return e._tracks[t]})},r.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<e.length;a++){var o=n[e[a]];o&&!o.isFinished()&&(t?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(e,t,n){if(e){t=t||this._trackKeys;for(var i=0;i<t.length;i++){var a=t[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(e[a]=uo(l.rawValue))}}}},r.prototype.__changeFinalValue=function(e,t){t=t||at(e);for(var n=0;n<t.length;n++){var i=t[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r}();const mv=ZA;function qi(){return new Date().getTime()}var qA=function(r){E(e,r);function e(t){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}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 n=t.getClip();n&&this.addClip(n)},e.prototype.removeClip=function(t){if(t.animation){var n=t.prev,i=t.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var n=t.getClip();n&&this.removeClip(n),t.animation=null},e.prototype.update=function(t){for(var n=qi()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,t||(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0;function n(){t._running&&(yd(n),!t._paused&&t.update())}yd(n)},e.prototype.start=function(){this._running||(this._time=qi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=qi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=qi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var n=t.next;t.prev=t.next=t.animation=null,t=n}this._head=this._tail=null},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(t,n){n=n||{},this.start();var i=new mv(t,n.loop);return this.addAnimator(i),i},e}(rr);const KA=qA;var jA=300,of=ft.domSupported,sf=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},n=V(r,function(i){var a=i.replace("mouse","pointer");return t.hasOwnProperty(a)?a:i});return{mouse:r,touch:e,pointer:n}}(),Md={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Dd=!1;function Kh(r){var e=r.pointerType;return e==="pen"||e==="touch"}function JA(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 lf(r){r&&(r.zrByTouch=!0)}function QA(r,e){return Le(r.dom,new tM(r,e),!0)}function P1(r,e){for(var t=e,n=!1;t&&t.nodeType!==9&&!(n=t.domBelongToZr||t!==e&&t===r.painterRoot);)t=t.parentNode;return n}var tM=function(){function r(e,t){this.stopPropagation=zt,this.stopImmediatePropagation=zt,this.preventDefault=zt,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return r}(),qe={mousedown:function(r){r=Le(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=Le(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=Le(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=Le(this.dom,r);var e=r.toElement||r.relatedTarget;P1(this,e)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Dd=!0,r=Le(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Dd||(r=Le(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=Le(this.dom,r),lf(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),qe.mousemove.call(this,r),qe.mousedown.call(this,r)},touchmove:function(r){r=Le(this.dom,r),lf(r),this.handler.processGesture(r,"change"),qe.mousemove.call(this,r)},touchend:function(r){r=Le(this.dom,r),lf(r),this.handler.processGesture(r,"end"),qe.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<jA&&qe.click.call(this,r)},pointerdown:function(r){qe.mousedown.call(this,r)},pointermove:function(r){Kh(r)||qe.mousemove.call(this,r)},pointerup:function(r){qe.mouseup.call(this,r)},pointerout:function(r){Kh(r)||qe.mouseout.call(this,r)}};T(["click","dblclick","contextmenu"],function(r){qe[r]=function(e){e=Le(this.dom,e),this.trigger(r,e)}});var jh={pointermove:function(r){Kh(r)||jh.mousemove.call(this,r)},pointerup:function(r){jh.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 eM(r,e){var t=e.domHandlers;ft.pointerEventsSupported?T(sf.pointer,function(n){il(e,n,function(i){t[n].call(r,i)})}):(ft.touchEventsSupported&&T(sf.touch,function(n){il(e,n,function(i){t[n].call(r,i),JA(e)})}),T(sf.mouse,function(n){il(e,n,function(i){i=vv(i),e.touching||t[n].call(r,i)})}))}function rM(r,e){ft.pointerEventsSupported?T(Md.pointer,t):ft.touchEventsSupported||T(Md.mouse,t);function t(n){function i(a){a=vv(a),P1(r,a.target)||(a=QA(r,a),e.domHandlers[n].call(r,a))}il(e,n,i,{capture:!0})}}function il(r,e,t,n){r.mounted[e]=t,r.listenerOpts[e]=n,Hh(r.domTarget,e,t,n)}function uf(r){var e=r.mounted;for(var t in e)e.hasOwnProperty(t)&&eA(r.domTarget,t,e[t],r.listenerOpts[t]);r.mounted={}}var Ld=function(){function r(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t}return r}(),nM=function(r){E(e,r);function e(t,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=t,i.painterRoot=n,i._localHandlerScope=new Ld(t,qe),of&&(i._globalHandlerScope=new Ld(document,jh)),eM(i,i._localHandlerScope),i}return e.prototype.dispose=function(){uf(this._localHandlerScope),of&&uf(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,of&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var n=this._globalHandlerScope;t?rM(this,n):uf(n)}},e}(rr);const iM=nM;var I1=1;ft.hasGlobalWindow&&(I1=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Pd=I1,Jh=.4,Qh="#333",tc="#ccc",aM="#eee",Id=Zo,Rd=5e-5;function Rn(r){return r>Rd||r<-Rd}var En=[],Li=[],ff=xe(),hf=Math.abs,oM=function(){function r(){}return r.prototype.getLocalTransform=function(e){return r.getLocalTransform(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 Rn(this.rotation)||Rn(this.x)||Rn(this.y)||Rn(this.scaleX-1)||Rn(this.scaleY-1)||Rn(this.skewX)||Rn(this.skewY)},r.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;if(!(t||e)){n&&(Id(n),this.invTransform=null);return}n=n||xe(),t?this.getLocalTransform(n):Id(n),e&&(t?_r(n,e,n):au(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(En);var n=En[0]<0?-1:1,i=En[1]<0?-1:1,a=((En[0]-n)*t+n)/En[0]||0,o=((En[1]-i)*t+i)/En[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||xe(),da(this.invTransform,e)},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],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(a),t=Math.sqrt(t),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,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||xe(),_r(Li,e.invTransform,t),t=Li);var n=this.originX,i=this.originY;(n||i)&&(ff[4]=n,ff[5]=i,_r(Li,t,ff),Li[4]-=n,Li[5]-=i,t=Li),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 n=[e,t],i=this.invTransform;return i&&Vt(n,n,i),n},r.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&Vt(n,n,i),n},r.prototype.getLineScale=function(){var e=this.transform;return e&&hf(e[0]-1)>1e-10&&hf(e[3]-1)>1e-10?Math.sqrt(hf(e[0]*e[3]-e[2]*e[1])):1},r.prototype.copyTransform=function(e){R1(this,e)},r.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,f=e.x,h=e.y,v=e.skewX?Math.tan(e.skewX):0,c=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var p=n+s,d=i+l;t[4]=-p*a-v*d*o,t[5]=-d*o-c*p*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=c*a,t[2]=v*o,u&&Cn(t,t,u),t[4]+=n+f,t[5]+=i+h,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}(),Sr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function R1(r,e){for(var t=0;t<Sr.length;t++){var n=Sr[t];r[n]=e[n]}}const ri=oM;var Ed={};function we(r,e){e=e||mn;var t=Ed[e];t||(t=Ed[e]=new qo(500));var n=t.get(r);return n==null&&(n=_n.measureText(r,e).width,t.put(r,n)),n}function kd(r,e,t,n){var i=we(r,e),a=su(e),o=to(0,i,t),s=Ui(0,a,n),l=new ct(o,s,i,a);return l}function Ko(r,e,t,n){var i=((r||"")+"").split("\n"),a=i.length;if(a===1)return kd(i[0],e,t,n);for(var o=new ct(0,0,0,0),s=0;s<i.length;s++){var l=kd(i[s],e,t,n);s===0?o.copy(l):o.union(l)}return o}function to(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function Ui(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function su(r){return we("国",r)}function er(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Ml(r,e,t){var n=e.position||"inside",i=e.distance!=null?e.distance:5,a=t.height,o=t.width,s=a/2,l=t.x,u=t.y,f="left",h="top";if(n instanceof Array)l+=er(n[0],t.width),u+=er(n[1],t.height),f=null,h=null;else switch(n){case"left":l-=i,u+=s,f="right",h="middle";break;case"right":l+=i+o,u+=s,h="middle";break;case"top":l+=o/2,u-=i,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+i,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=o-i,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=i,f="center";break;case"insideBottom":l+=o/2,u+=a-i,f="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,f="right";break;case"insideBottomLeft":l+=i,u+=a-i,h="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var cf="__zr_normal__",vf=Sr.concat(["ignore"]),sM=Ve(Sr,function(r,e){return r[e]=!0,r},{ignore:!1}),Pi={},lM=new ct(0,0,0,0),_v=function(){function r(e){this.id=sv(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[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 n=this.textConfig,i=n.local,a=t.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(t),n.position!=null){var f=lM;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Pi,n,f):Ml(Pi,n,f),a.x=Pi.x,a.y=Pi.y,o=Pi.align,s=Pi.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=er(h[0],f.width),c=er(h[1],f.height)),u=!0,a.originX=-a.x+v+(i?0:f.x),a.originY=-a.y+c+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var p=n.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var d=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=n.insideFill,m=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,m=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=vr,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()?tc:Qh},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t=="string"&&ae(t);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,Qe(n,"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||{},O(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(U(e))for(var n=e,i=at(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==cf)){var o=i.targetName,s=o?t[o]:t;i.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,vf)},r.prototype._savePrimaryToNormal=function(e,t,n){for(var i=0;i<n.length;i++){var a=n[i];e[a]!=null&&!(a in t)&&(t[a]=this[a])}},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(cf,!1,e)},r.prototype.useState=function(e,t,n,i){var a=e===cf,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(st(s,e)>=0&&(t||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){lv("State "+e+" not exists.");return}a||this.saveCurrentToNormalState(u);var f=!!(u&&u.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,t,!n&&!this.__inHover&&l&&l.duration>0,l);var h=this._textContent,v=this._textGuide;return h&&h.useState(e,t,n,f),v&&v.useState(e,t,n,f),a?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~vr),u}}},r.prototype.useStates=function(e,t,n){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[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&&i.push(f)}var h=i[o-1],v=!!(h&&h.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(i),p=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(e.join(","),c,this._normalState,!1,!t&&!this.__inHover&&p&&p.duration>0,p);var d=this._textContent,g=this._textGuide;d&&d.useStates(e,t,v),g&&g.useStates(e,t,v),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~vr)}},r.prototype.isSilent=function(){for(var e=this.silent,t=this.parent;!e&&t;){if(t.silent){e=!0;break}t=t.parent}return e},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=st(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},r.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),a=st(i,e),o=st(i,t)>=0;a>=0?o?i.splice(a,1):i[a]=t:n&&!o&&i.push(t),this.useStates(i)},r.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},r.prototype._mergeStates=function(e){for(var t={},n,i=0;i<e.length;i++){var a=e[i];O(t,a),a.textConfig&&(n=n||{},O(n,a.textConfig))}return n&&(t.textConfig=n),t},r.prototype._applyStateObj=function(e,t,n,i,a,o){var s=!(t&&i);t&&t.textConfig?(this.textConfig=O({},i?this.textConfig:n.textConfig),O(this.textConfig,t.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,f=0;f<vf.length;f++){var h=vf[f],v=a&&sM[h];t&&t[h]!=null?v?(u=!0,l[h]=t[h]):this[h]=t[h]:s&&n[h]!=null&&(v?(u=!0,l[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var c=this.animators[f],p=c.targetName;c.getLoop()||c.__changeFinalValue(p?(t||n)[p]:t||n)}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 ri,this._attachComponent(e),this._textContent=e,this.markRedraw())},r.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),O(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|=vr;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var t=this._textContent,n=this._textGuide;t&&(t.__inHover=e),n&&(n.__inHover=e)},r.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);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 n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},r.prototype.animate=function(e,t,n){var i=e?this[e]:this,a=new mv(i,t,n);return e&&(a.targetName=e),this.addAnimator(a,e),a},r.prototype.addAnimator=function(e,t){var n=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(t)}).done(function(){var a=i.animators,o=st(a,e);o>=0&&a.splice(o,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(e){this.markRedraw()},r.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!e||e===s.scope?s.stop(t):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(e,t,n){pf(this,e,t,n)},r.prototype.animateFrom=function(e,t,n){pf(this,e,t,n,!0)},r.prototype._transitionState=function(e,t,n,i){for(var a=pf(this,t,n,i),o=0;o<a.length;o++)a[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.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=vr;function t(n,i,a,o){Object.defineProperty(e,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(f){l[a]=f}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(f){l[o]=f}})}}Object.defineProperty&&(t("position","_legacyPos","x","y"),t("scale","_legacyScale","scaleX","scaleY"),t("origin","_legacyOrigin","originX","originY"))}(),r}();$t(_v,rr);$t(_v,ri);function pf(r,e,t,n,i){t=t||{};var a=[];E1(r,"",r,e,t,n,a,i);var o=a.length,s=!1,l=t.done,u=t.aborted,f=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},h=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&t.during&&a[0].during(function(p,d){t.during(d)});for(var v=0;v<a.length;v++){var c=a[v];f&&c.done(f),h&&c.aborted(h),t.force&&c.duration(t.duration),c.start(t.easing)}return a}function df(r,e,t){for(var n=0;n<t;n++)r[n]=e[n]}function uM(r){return Qt(r[0])}function fM(r,e,t){if(Qt(e[t]))if(Qt(r[t])||(r[t]=[]),se(e[t])){var n=e[t].length;r[t].length!==n&&(r[t]=new e[t].constructor(n),df(r[t],e[t],n))}else{var i=e[t],a=r[t],o=i.length;if(uM(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?df(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else df(a,i,o);a.length=i.length}else r[t]=e[t]}function hM(r,e){return r===e||Qt(r)&&Qt(e)&&cM(r,e)}function cM(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++)if(r[n]!==e[n])return!1;return!0}function E1(r,e,t,n,i,a,o,s){for(var l=at(n),u=i.duration,f=i.delay,h=i.additive,v=i.setToFinal,c=!U(a),p=r.animators,d=[],g=0;g<l.length;g++){var y=l[g],m=n[y];if(m!=null&&t[y]!=null&&(c||a[y]))if(U(m)&&!Qt(m)&&!nu(m)){if(e){s||(t[y]=m,r.updateDuringAnimation(e));continue}E1(r,y,t[y],m,i,a&&a[y],o,s)}else d.push(y);else s||(t[y]=m,r.updateDuringAnimation(e),d.push(y))}var _=d.length;if(!h&&_)for(var S=0;S<p.length;S++){var w=p[S];if(w.targetName===e){var x=w.stopTracks(d);if(x){var b=st(p,w);p.splice(b,1)}}}if(i.force||(d=xt(d,function(D){return!hM(n[D],t[D])}),_=d.length),_>0||i.force&&!o.length){var C=void 0,A=void 0,M=void 0;if(s){A={},v&&(C={});for(var S=0;S<_;S++){var y=d[S];A[y]=t[y],v?C[y]=n[y]:t[y]=n[y]}}else if(v){M={};for(var S=0;S<_;S++){var y=d[S];M[y]=uo(t[y]),fM(t,n,y)}}var w=new mv(t,!1,!1,h?xt(p,function(L){return L.targetName===e}):null);w.targetName=e,i.scope&&(w.scope=i.scope),v&&C&&w.whenWithKeys(0,C,d),M&&w.whenWithKeys(0,M,d),w.whenWithKeys(u==null?500:u,s?A:n,d).delay(f||0),r.addAnimator(w,e),o.push(w)}}const k1=_v;var O1=function(r){E(e,r);function e(t){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}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 n=this._children,i=0;i<n.length;i++)if(n[i].name===t)return n[i]},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,n){if(t&&t!==this&&t.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,n){var i=st(this._children,t);return i>=0&&this.replaceAt(n,i),this},e.prototype.replaceAt=function(t,n){var i=this._children,a=i[n];if(t&&t!==this&&t.parent!==this&&t!==a){i[n]=t,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var n=this.__zr;n&&n!==t.__zr&&t.addSelfToZr(n),n&&n.refresh()},e.prototype.remove=function(t){var n=this.__zr,i=this._children,a=st(i,t);return a<0?this:(i.splice(a,1),t.parent=null,n&&t.removeSelfFromZr(n),n&&n.refresh(),this)},e.prototype.removeAll=function(){for(var t=this._children,n=this.__zr,i=0;i<t.length;i++){var a=t[i];n&&a.removeSelfFromZr(n),a.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];t.call(n,o,a)}return this},e.prototype.traverse=function(t,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=t.call(n,a);a.isGroup&&!o&&a.traverse(t,n)}return this},e.prototype.addSelfToZr=function(t){r.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(t)}},e.prototype.getBoundingRect=function(t){for(var n=new ct(0,0,0,0),i=t||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),f=l.getLocalTransform(a);f?(ct.applyTransform(n,u,f),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},e}(k1);O1.prototype.type="group";const it=O1;/*!
  13. * ZRender, a high performance 2d drawing library.
  14. *
  15. * Copyright (c) 2013, Baidu Inc.
  16. * All rights reserved.
  17. *
  18. * LICENSE
  19. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  20. */var al={},ni={};function vM(r){delete ni[r]}function pM(r){if(!r)return!1;if(typeof r=="string")return To(r,1)<Jh;if(r.colorStops){for(var e=r.colorStops,t=0,n=e.length,i=0;i<n;i++)t+=To(e[i].color,1);return t/=n,t<Jh}return!1}var dM=function(){function r(e,t,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=t,this.id=e;var a=new mA,o=n.renderer||"canvas";al[o]||(o=at(al)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new al[o](t,a,n,e),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!ft.node&&!ft.worker&&!l?new iM(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?ft.touchEventsSupported:!!f,v=44,c;h&&(c=j(n.pointerSize,v)),this.handler=new vA(a,s,u,s.root,c),this.animation=new KA({stage:{update:l?null:function(){return i._flush(!0)}}}),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=pM(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||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,n=qi();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var i=qi();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):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._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},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,n){return this._disposed||this.handler.on(e,t,n),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 it&&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,vM(this.id))},r}();function ec(r,e){var t=new dM(sv(),r,e);return ni[t.id]=t,t}function gM(r){r.dispose()}function yM(){for(var r in ni)ni.hasOwnProperty(r)&&ni[r].dispose();ni={}}function mM(r){return ni[r]}function B1(r,e){al[r]=e}var rc;function N1(r){if(typeof rc=="function")return rc(r)}function z1(r){rc=r}var _M="5.6.1";const SM=Object.freeze(Object.defineProperty({__proto__:null,dispose:gM,disposeAll:yM,getElementSSRData:N1,getInstance:mM,init:ec,registerPainter:B1,registerSSRDataGetter:z1,version:_M},Symbol.toStringTag,{value:"Module"}));var Od=1e-4,V1=20;function xM(r){return r.replace(/^\s+|\s+$/g,"")}function wt(r,e,t,n){var i=e[0],a=e[1],o=t[0],s=t[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=i)return o;if(r>=a)return s}else{if(r>=i)return o;if(r<=a)return s}else{if(r===i)return o;if(r===a)return s}return(r-i)/l*u+o}function et(r,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return G(r)?xM(r).match(/%$/)?parseFloat(r)/100*e:parseFloat(r):r==null?NaN:+r}function Pt(r,e,t){return e==null&&(e=10),e=Math.min(Math.max(0,e),V1),r=(+r).toFixed(e),t?r:+r}function gr(r){return r.sort(function(e,t){return e-t}),r}function yr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var e=1,t=0;t<15;t++,e*=10)if(Math.round(r*e)/e===r)return t}return F1(r)}function F1(r){var e=r.toString().toLowerCase(),t=e.indexOf("e"),n=t>0?+e.slice(t+1):0,i=t>0?t:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function Sv(r,e){var t=Math.log,n=Math.LN10,i=Math.floor(t(r[1]-r[0])/n),a=Math.round(t(Math.abs(e[1]-e[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function wM(r,e,t){if(!r[e])return 0;var n=G1(r,t);return n[e]||0}function G1(r,e){var t=Ve(r,function(c,p){return c+(isNaN(p)?0:p)},0);if(t===0)return[];for(var n=Math.pow(10,e),i=V(r,function(c){return(isNaN(c)?0:c)/t*n*100}),a=n*100,o=V(i,function(c){return Math.floor(c)}),s=Ve(o,function(c,p){return c+p},0),l=V(i,function(c,p){return c-o[p]});s<a;){for(var u=Number.NEGATIVE_INFINITY,f=null,h=0,v=l.length;h<v;++h)l[h]>u&&(u=l[h],f=h);++o[f],l[f]=0,++s}return V(o,function(c){return c/n})}function bM(r,e){var t=Math.max(yr(r),yr(e)),n=r+e;return t>V1?n:Pt(n,t)}var TM=9007199254740991;function xv(r){var e=Math.PI*2;return(r%e+e)%e}function Ao(r){return r>-Od&&r<Od}var CM=/^(?:(\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 be(r){if(r instanceof Date)return r;if(G(r)){var e=CM.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(Math.round(r))}function H1(r){return Math.pow(10,lu(r))}function lu(r){if(r===0)return 0;var e=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,e)>=10&&e++,e}function wv(r,e){var t=lu(r),n=Math.pow(10,t),i=r/n,a;return e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,r=a*n,t>=-20?+r.toFixed(t<0?-t:0):r}function AM(r,e){var t=(r.length-1)*e+1,n=Math.floor(t),i=+r[n-1],a=t-n;return a?i+a*(r[n]-i):i}function nc(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,t=1,n=0;n<r.length;){for(var i=r[n].interval,a=r[n].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-t),e=i[o],t=a[o];i[0]===i[1]&&a[0]*a[1]!==1?r.splice(n,1):n++}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 Mo(r){var e=parseFloat(r);return e==r&&(e!==0||!G(r)||r.indexOf("x")<=0)?e:NaN}function bv(r){return!isNaN(Mo(r))}function W1(){return Math.round(Math.random()*9)}function $1(r,e){return e===0?r:$1(e,r%e)}function Bd(r,e){return r==null?e:e==null?r:r*e/$1(r,e)}function ge(r){throw new Error(r)}function Nd(r,e,t){return(e-r)*t+r}var Y1="series\0",U1="\0_ec_\0";function Ct(r){return r instanceof Array?r:r==null?[]:[r]}function Dl(r,e,t){if(r){r[e]=r[e]||{},r.emphasis=r.emphasis||{},r.emphasis[e]=r.emphasis[e]||{};for(var n=0,i=t.length;n<i;n++){var a=t[n];!r.emphasis[e].hasOwnProperty(a)&&r[e].hasOwnProperty(a)&&(r.emphasis[e][a]=r[e][a])}}}var zd=["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 ga(r){return U(r)&&!z(r)&&!(r instanceof Date)?r.value:r}function MM(r){return U(r)&&!(r instanceof Array)}function X1(r,e,t){var n=t==="normalMerge",i=t==="replaceMerge",a=t==="replaceAll";r=r||[],e=(e||[]).slice();var o=$();T(e,function(l,u){if(!U(l)){e[u]=null;return}});var s=DM(r,o,t);return(n||i)&&LM(s,r,o,e),n&&PM(s,e),n||i?IM(s,e,i):a&&RM(s,e),EM(s),s}function DM(r,e,t){var n=[];if(t==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&e.set(a.id,i),n.push({existing:t==="replaceMerge"||Do(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function LM(r,e,t,n){T(n,function(i,a){if(!(!i||i.id==null)){var o=fo(i.id),s=t.get(o);if(s!=null){var l=r[s];le(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],n[a]=null}}})}function PM(r,e){T(e,function(t,n){if(!(!t||t.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||t.id==null)&&!Do(t)&&!Do(a)&&Z1("name",a,t)){r[i].newOption=t,e[n]=null;return}}})}function IM(r,e,t){T(e,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||Do(i.existing)||i.existing&&n.id!=null&&!Z1("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=t):r.push({newOption:n,brandNew:t,existing:null,keyInfo:null}),a++}})}function RM(r,e){T(e,function(t){r.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}function EM(r){var e=$();T(r,function(t){var n=t.existing;n&&e.set(n.id,t)}),T(r,function(t){var n=t.newOption;le(!n||n.id==null||!e.get(n.id)||e.get(n.id)===t,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&e.set(n.id,t),!t.keyInfo&&(t.keyInfo={})}),T(r,function(t,n){var i=t.existing,a=t.newOption,o=t.keyInfo;if(U(a)){if(o.name=a.name!=null?fo(a.name):i?i.name:Y1+n,i)o.id=fo(i.id);else if(a.id!=null)o.id=fo(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,t)}})}function Z1(r,e,t){var n=jt(e[r],null),i=jt(t[r],null);return n!=null&&i!=null&&n===i}function fo(r){return jt(r,"")}function jt(r,e){return r==null?e:G(r)?r:_t(r)||yl(r)?r+"":e}function Tv(r){var e=r.name;return!!(e&&e.indexOf(Y1))}function Do(r){return r&&r.id!=null&&fo(r.id).indexOf(U1)===0}function kM(r){return U1+r}function OM(r,e,t){T(r,function(n){var i=n.newOption;U(i)&&(n.keyInfo.mainType=e,n.keyInfo.subType=BM(e,i,n.existing,t))})}function BM(r,e,t,n){var i=e.type?e.type:t?t.subType:n.determineSubType(r,e);return i}function NM(r,e){var t={},n={};return i(r||[],t),i(e||[],n,t),[a(t),a(n)];function i(o,s,l){for(var u=0,f=o.length;u<f;u++){var h=jt(o[u].seriesId,null);if(h==null)return;for(var v=Ct(o[u].dataIndex),c=l&&l[h],p=0,d=v.length;p<d;p++){var g=v[p];c&&c[g]?c[g]=null:(s[h]||(s[h]={}))[g]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=a(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function mi(r,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return z(e.dataIndex)?V(e.dataIndex,function(t){return r.indexOfRawIndex(t)}):r.indexOfRawIndex(e.dataIndex);if(e.name!=null)return z(e.name)?V(e.name,function(t){return r.indexOfName(t)}):r.indexOfName(e.name)}function St(){var r="__ec_inner_"+zM++;return function(e){return e[r]||(e[r]={})}}var zM=W1();function ho(r,e,t){var n=Cv(e,t),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=t?t.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,f){var h=jo(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"]=h.models,s[f+"Model"]=h.models[0]}),s}function Cv(r,e){var t;if(G(r)){var n={};n[r+"Index"]=0,t=n}else t=r;var i=$(),a={},o=!1;return T(t,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],h=(u[2]||"").toLowerCase();if(!(!f||!h||e&&e.includeMainTypes&&st(e.includeMainTypes,f)<0)){o=o||!!f;var v=i.get(f)||i.set(f,{});v[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Ot={useDefault:!0,enableAll:!1,enableNone:!1},VM={useDefault:!1,enableAll:!0,enableNone:!0};function jo(r,e,t,n){n=n||Ot;var i=t.index,a=t.id,o=t.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=r.getComponent(e))?[l]:[],s}return i==="none"||i===!1?(le(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(le(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=r.queryComponents({mainType:e,index:i,id:a,name:o}),s)}function q1(r,e,t){r.setAttribute?r.setAttribute(e,t):r[e]=t}function FM(r,e){return r.getAttribute?r.getAttribute(e):r[e]}function GM(r){return r==="auto"?ft.domSupported?"html":"richText":r||"html"}function HM(r,e,t,n,i){var a=e==null||e==="auto";if(n==null)return n;if(_t(n)){var o=Nd(t||0,n,i);return Pt(o,a?Math.max(yr(t||0),yr(n)):e)}else{if(G(n))return i<1?t:n;for(var s=[],l=t,u=n,f=Math.max(l?l.length:0,u.length),h=0;h<f;++h){var v=r.getDimensionInfo(h);if(v&&v.type==="ordinal")s[h]=(i<1&&l?l:u)[h];else{var c=l&&l[h]?l[h]:0,p=u[h],o=Nd(c,p,i);s[h]=Pt(o,a?Math.max(yr(c),yr(p)):e)}}return s}}var WM=".",kn="___EC__COMPONENT__CONTAINER___",K1="___EC__EXTENDED_CLASS___";function mr(r){var e={main:"",sub:""};if(r){var t=r.split(WM);e.main=t[0]||"",e.sub=t[1]||""}return e}function $M(r){le(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function YM(r){return!!(r&&r[K1])}function Av(r,e){r.$constructor=r,r.extend=function(t){var n=this,i;return UM(n)?i=function(a){E(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(t.$constructor||n).apply(this,arguments)},uv(i,this)),O(i.prototype,t),i[K1]=!0,i.extend=this.extend,i.superCall=qM,i.superApply=KM,i.superClass=n,i}}function UM(r){return K(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function j1(r,e){r.extend=e.extend}var XM=Math.round(Math.random()*10);function ZM(r){var e=["__\0is_clz",XM++].join("_");r.prototype[e]=!0,r.isInstance=function(t){return!!(t&&t[e])}}function qM(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return this.superClass.prototype[e].apply(r,t)}function KM(r,e,t){return this.superClass.prototype[e].apply(r,t)}function uu(r){var e={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){$M(i),n.prototype.type=i;var a=mr(i);if(!a.sub)e[a.main]=n;else if(a.sub!==kn){var o=t(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=e[n];if(o&&o[kn]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},r.getClassesByMainType=function(n){var i=mr(n),a=[],o=e[i.main];return o&&o[kn]?T(o,function(s,l){l!==kn&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=mr(n);return!!e[i.main]},r.getAllClassMainTypes=function(){var n=[];return T(e,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=mr(n),a=e[i.main];return a&&a[kn]};function t(n){var i=e[n.main];return(!i||!i[kn])&&(i=e[n.main]={},i[kn]=!0),i}}function aa(r,e){for(var t=0;t<r.length;t++)r[t][1]||(r[t][1]=r[t][0]);return e=e||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(i&&st(i,l)>=0||a&&st(a,l)<0)){var u=n.getShallow(l,e);u!=null&&(o[r[s][0]]=u)}}return o}}var jM=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],JM=aa(jM),QM=function(){function r(){}return r.prototype.getAreaStyle=function(e,t){return JM(this,e,t)},r}(),ic=new qo(50);function tD(r){if(typeof r=="string"){var e=ic.get(r);return e&&e.image}else return r}function Mv(r,e,t,n,i){if(r)if(typeof r=="string"){if(e&&e.__zrImageSrc===r||!t)return e;var a=ic.get(r),o={hostEl:t,cb:n,cbPayload:i};return a?(e=a.image,!fu(e)&&a.pending.push(o)):(e=_n.loadImage(r,Vd,Vd),e.__zrImageSrc=r,ic.put(r,e.__cachedImgObj={image:e,pending:[o]})),e}else return r;else return e}function Vd(){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],n=t.cb;n&&n(this,t.cbPayload),t.hostEl.dirty()}r.pending.length=0}function fu(r){return r&&r.width&&r.height}var gf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function eD(r,e,t,n,i){var a={};return J1(a,r,e,t,n,i),a.text}function J1(r,e,t,n,i,a){if(!t){r.text="",r.isTruncated=!1;return}var o=(e+"").split("\n");a=Q1(t,n,i,a);for(var s=!1,l={},u=0,f=o.length;u<f;u++)tS(l,o[u],a),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join("\n"),r.isTruncated=s}function Q1(r,e,t,n){n=n||{};var i=O({},n);i.font=e,t=j(t,"..."),i.maxIterations=j(n.maxIterations,2);var a=i.minChar=j(n.minChar,0);i.cnCharWidth=we("国",e);var o=i.ascCharWidth=we("a",e);i.placeholder=j(n.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=we(t,e);return u>s&&(t="",u=0),s=r-u,i.ellipsis=t,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=r,i}function tS(r,e,t){var n=t.containerWidth,i=t.font,a=t.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var o=we(e,i);if(o<=n){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?rD(e,a,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,l),o=we(e,i)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function rD(r,e,t,n){for(var i=0,a=0,o=r.length;a<o&&i<e;a++){var s=r.charCodeAt(a);i+=0<=s&&s<=127?t:n}return a}function nD(r,e){r!=null&&(r+="");var t=e.overflow,n=e.padding,i=e.font,a=t==="truncate",o=su(i),s=j(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=!1,h=e.width,v;h!=null&&(t==="break"||t==="breakAll")?v=r?eS(r,e.font,h,t==="breakAll",0).lines:[]:v=r?r.split("\n"):[];var c=v.length*s,p=j(e.height,c);if(c>p&&u){var d=Math.floor(p/s);f=f||v.length>d,v=v.slice(0,d)}if(r&&a&&h!=null)for(var g=Q1(h,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y={},m=0;m<v.length;m++)tS(y,v[m],g),v[m]=y.textLine,f=f||y.isTruncated;for(var _=p,S=0,m=0;m<v.length;m++)S=Math.max(we(v[m],i),S);h==null&&(h=S);var w=S;return n&&(_+=n[0]+n[2],w+=n[1]+n[3],h+=n[1]+n[3]),l&&(w=h),{lines:v,height:p,outerWidth:w,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:c,width:h,isTruncated:f}}var iD=function(){function r(){}return r}(),Fd=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),aD=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 oD(r,e){var t=new aD;if(r!=null&&(r+=""),!r)return t;for(var n=e.width,i=e.height,a=e.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=gf.lastIndex=0,l;(l=gf.exec(r))!=null;){var u=l.index;u>s&&yf(t,r.substring(s,u),e,o),yf(t,l[2],e,o,l[1]),s=gf.lastIndex}s<r.length&&yf(t,r.substring(s,r.length),e,o);var f=[],h=0,v=0,c=e.padding,p=a==="truncate",d=e.lineOverflow==="truncate",g={};function y(H,X,Y){H.width=X,H.lineHeight=Y,h+=Y,v=Math.max(v,X)}t:for(var m=0;m<t.lines.length;m++){for(var _=t.lines[m],S=0,w=0,x=0;x<_.tokens.length;x++){var b=_.tokens[x],C=b.styleName&&e.rich[b.styleName]||{},A=b.textPadding=C.padding,M=A?A[1]+A[3]:0,D=b.font=C.font||e.font;b.contentHeight=su(D);var L=j(C.height,b.contentHeight);if(b.innerHeight=L,A&&(L+=A[0]+A[2]),b.height=L,b.lineHeight=Ji(C.lineHeight,e.lineHeight,L),b.align=C&&C.align||e.align,b.verticalAlign=C&&C.verticalAlign||"middle",d&&i!=null&&h+b.lineHeight>i){var P=t.lines.length;x>0?(_.tokens=_.tokens.slice(0,x),y(_,w,S),t.lines=t.lines.slice(0,m+1)):t.lines=t.lines.slice(0,m),t.isTruncated=t.isTruncated||t.lines.length<P;break t}var I=C.width,R=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")b.percentWidth=I,f.push(b),b.contentWidth=we(b.text,D);else{if(R){var k=C.backgroundColor,F=k&&k.image;F&&(F=tD(F),fu(F)&&(b.width=Math.max(b.width,F.width*L/F.height)))}var B=p&&n!=null?n-w:null;B!=null&&B<b.width?!R||B<M?(b.text="",b.width=b.contentWidth=0):(J1(g,b.text,B-M,D,e.ellipsis,{minChar:e.truncateMinChar}),b.text=g.text,t.isTruncated=t.isTruncated||g.isTruncated,b.width=b.contentWidth=we(b.text,D)):b.contentWidth=we(b.text,D)}b.width+=M,w+=b.width,C&&(S=Math.max(S,b.lineHeight))}y(_,w,S)}t.outerWidth=t.width=j(n,v),t.outerHeight=t.height=j(i,h),t.contentHeight=h,t.contentWidth=v,c&&(t.outerWidth+=c[1]+c[3],t.outerHeight+=c[0]+c[2]);for(var m=0;m<f.length;m++){var b=f[m],N=b.percentWidth;b.width=parseInt(N,10)/100*t.width}return t}function yf(r,e,t,n,i){var a=e==="",o=i&&t.rich[i]||{},s=r.lines,l=o.font||t.font,u=!1,f,h;if(n){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var p=er(o.width,n.width)+c;s.length>0&&p+n.accumWidth>n.width&&(f=e.split("\n"),u=!0),n.accumWidth=p}else{var d=eS(e,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=d.accumWidth+c,h=d.linesWidths,f=d.lines}}else f=e.split("\n");for(var g=0;g<f.length;g++){var y=f[g],m=new iD;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:we(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new Fd)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||a)&&_.push(m)}else s.push(new Fd([m]))}}function sD(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var lD=Ve(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function uD(r){return sD(r)?!!lD[r]:!0}function eS(r,e,t,n,i){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var v=r.charAt(h);if(v==="\n"){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var c=we(v,e),p=n?!1:!uD(v);if(a.length?f+c>t:i+f+c>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=v,f=c)):p?(a.push(l),o.push(u),l=v,u=c):(a.push(v),o.push(c));continue}f+=c,p?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}var ac="__zr_style_"+Math.round(Math.random()*10),fi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},hu={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};fi[ac]=!0;var Gd=["z","z2","invisible"],fD=["invisible"],hD=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var n=at(t),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(t[a]):r.prototype.attrKV.call(this,a,t[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&cD(this,t,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,n){return this.rectContain(t,n)},e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.rectContain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ct(0,0,0,0)),n?ct.applyTransform(t,i,n):t.copy(i),(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 ct(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,n){t!=="style"?r.prototype.attrKV.call(this,t,n):this.style?this.setStyle(n):this.useStyle(n)},e.prototype.setStyle=function(t,n){return typeof t=="string"?this.style[t]=n:O(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Ja,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Ja)},e.prototype.styleUpdated=function(){this.__dirty&=~Ja},e.prototype.createStyle=function(t){return Xo(fi,t)},e.prototype.useStyle=function(t){t[ac]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[ac]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,Gd)},e.prototype._applyStateObj=function(t,n,i,a,o,s){r.prototype._applyStateObj.call(this,t,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var h=at(f),v=0;v<h.length;v++){var c=h[v];c in u&&(u[c]=u[c],this.style[c]=f[c])}for(var p=at(u),v=0;v<p.length;v++){var c=p[v];this.style[c]=this.style[c]}this._transitionState(t,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var d=this.__inHover?fD:Gd,v=0;v<d.length;v++){var c=d[v];n&&n[c]!=null?this[c]=n[c]:l&&i[c]!=null&&(this[c]=i[c])}},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),i,a=0;a<t.length;a++){var o=t[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},e.prototype._mergeStyle=function(t,n){return O(t,n),t},e.prototype.getAnimationStyleProps=function(){return hu},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=!1,t._rect=null,t.dirtyRectTolerance=0,t.__dirty=vr|Ja}(),e}(k1),mf=new ct(0,0,0,0),_f=new ct(0,0,0,0);function cD(r,e,t){return mf.copy(r.getBoundingRect()),r.transform&&mf.applyTransform(r.transform),_f.width=e,_f.height=t,!mf.intersect(_f)}const Vr=hD;var ke=Math.min,Oe=Math.max,Sf=Math.sin,xf=Math.cos,On=Math.PI*2,ds=wi(),gs=wi(),ys=wi();function Hd(r,e,t,n,i,a){i[0]=ke(r,t),i[1]=ke(e,n),a[0]=Oe(r,t),a[1]=Oe(e,n)}var Wd=[],$d=[];function vD(r,e,t,n,i,a,o,s,l,u){var f=m1,h=kt,v=f(r,t,i,o,Wd);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<v;c++){var p=h(r,t,i,o,Wd[c]);l[0]=ke(p,l[0]),u[0]=Oe(p,u[0])}v=f(e,n,a,s,$d);for(var c=0;c<v;c++){var d=h(e,n,a,s,$d[c]);l[1]=ke(d,l[1]),u[1]=Oe(d,u[1])}l[0]=ke(r,l[0]),u[0]=Oe(r,u[0]),l[0]=ke(o,l[0]),u[0]=Oe(o,u[0]),l[1]=ke(e,l[1]),u[1]=Oe(e,u[1]),l[1]=ke(s,l[1]),u[1]=Oe(s,u[1])}function pD(r,e,t,n,i,a,o,s){var l=_1,u=qt,f=Oe(ke(l(r,t,i),1),0),h=Oe(ke(l(e,n,a),1),0),v=u(r,t,i,f),c=u(e,n,a,h);o[0]=ke(r,i,v),o[1]=ke(e,a,c),s[0]=Oe(r,i,v),s[1]=Oe(e,a,c)}function dD(r,e,t,n,i,a,o,s,l){var u=Ir,f=Rr,h=Math.abs(i-a);if(h%On<1e-4&&h>1e-4){s[0]=r-t,s[1]=e-n,l[0]=r+t,l[1]=e+n;return}if(ds[0]=xf(i)*t+r,ds[1]=Sf(i)*n+e,gs[0]=xf(a)*t+r,gs[1]=Sf(a)*n+e,u(s,ds,gs),f(l,ds,gs),i=i%On,i<0&&(i=i+On),a=a%On,a<0&&(a=a+On),i>a&&!o?a+=On:i<a&&o&&(i+=On),o){var v=a;a=i,i=v}for(var c=0;c<a;c+=Math.PI/2)c>i&&(ys[0]=xf(c)*t+r,ys[1]=Sf(c)*n+e,u(s,ys,s),f(l,ys,l))}var mt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Bn=[],Nn=[],or=[],Zr=[],sr=[],lr=[],wf=Math.min,bf=Math.max,zn=Math.cos,Vn=Math.sin,Ar=Math.abs,oc=Math.PI,nn=oc*2,Tf=typeof Float32Array<"u",Ia=[];function Cf(r){var e=Math.round(r/oc*1e8)/1e8;return e%2*oc}function rS(r,e){var t=Cf(r[0]);t<0&&(t+=nn);var n=t-r[0],i=r[1];i+=n,!e&&i-t>=nn?i=t+nn:e&&t-i>=nn?i=t-nn:!e&&t>i?i=t+(nn-Cf(t-i)):e&&t<i&&(i=t-(nn-Cf(i-t))),r[0]=t,r[1]=i}var gD=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,n){n=n||0,n>0&&(this._ux=Ar(n/Pd/e)||0,this._uy=Ar(n/Pd/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(mt.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 n=Ar(e-this._xi),i=Ar(t-this._yi),a=n>this._ux||i>this._uy;if(this.addData(mt.L,e,t),this._ctx&&a&&this._ctx.lineTo(e,t),a)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(e,t,n,i,a,o){return this._drawPendingPt(),this.addData(mt.C,e,t,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(mt.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(e,t,n,i,a,o){this._drawPendingPt(),Ia[0]=i,Ia[1]=a,rS(Ia,o),i=Ia[0],a=Ia[1];var s=a-i;return this.addData(mt.A,e,t,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,a,o),this._xi=zn(a)*n+e,this._yi=Vn(a)*n+t,this},r.prototype.arcTo=function(e,t,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,a),this},r.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(mt.R,e,t,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(mt.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,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){var t=e.length;!(this.data&&this.data.length===t)&&Tf&&(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t},r.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var t=e.length,n=0,i=this._len,a=0;a<t;a++)n+=e[a].len();Tf&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<t;a++)for(var o=e[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},r.prototype.addData=function(e,t,n,i,a,o,s,l,u){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var 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,Tf&&this._len>11&&(this.data=new Float32Array(e)))}},r.prototype.getBoundingRect=function(){or[0]=or[1]=sr[0]=sr[1]=Number.MAX_VALUE,Zr[0]=Zr[1]=lr[0]=lr[1]=-Number.MAX_VALUE;var e=this.data,t=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(t=e[o],n=e[o+1],i=t,a=n),s){case mt.M:t=i=e[o++],n=a=e[o++],sr[0]=i,sr[1]=a,lr[0]=i,lr[1]=a;break;case mt.L:Hd(t,n,e[o],e[o+1],sr,lr),t=e[o++],n=e[o++];break;case mt.C:vD(t,n,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],sr,lr),t=e[o++],n=e[o++];break;case mt.Q:pD(t,n,e[o++],e[o++],e[o],e[o+1],sr,lr),t=e[o++],n=e[o++];break;case mt.A:var u=e[o++],f=e[o++],h=e[o++],v=e[o++],c=e[o++],p=e[o++]+c;o+=1;var d=!e[o++];l&&(i=zn(c)*h+u,a=Vn(c)*v+f),dD(u,f,h,v,c,p,d,sr,lr),t=zn(p)*h+u,n=Vn(p)*v+f;break;case mt.R:i=t=e[o++],a=n=e[o++];var g=e[o++],y=e[o++];Hd(i,a,i+g,a+y,sr,lr);break;case mt.Z:t=i,n=a;break}Ir(or,or,sr),Rr(Zr,Zr,lr)}return o===0&&(or[0]=or[1]=Zr[0]=Zr[1]=0),new ct(or[0],or[1],Zr[0]-or[0],Zr[1]-or[1])},r.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,f=0,h=0,v=0;v<t;){var c=e[v++],p=v===1;p&&(a=e[v],o=e[v+1],s=a,l=o);var d=-1;switch(c){case mt.M:a=s=e[v++],o=l=e[v++];break;case mt.L:{var g=e[v++],y=e[v++],m=g-a,_=y-o;(Ar(m)>n||Ar(_)>i||v===t-1)&&(d=Math.sqrt(m*m+_*_),a=g,o=y);break}case mt.C:{var S=e[v++],w=e[v++],g=e[v++],y=e[v++],x=e[v++],b=e[v++];d=SA(a,o,S,w,g,y,x,b,10),a=x,o=b;break}case mt.Q:{var S=e[v++],w=e[v++],g=e[v++],y=e[v++];d=bA(a,o,S,w,g,y,10),a=g,o=y;break}case mt.A:var C=e[v++],A=e[v++],M=e[v++],D=e[v++],L=e[v++],P=e[v++],I=P+L;v+=1,p&&(s=zn(L)*M+C,l=Vn(L)*D+A),d=bf(M,D)*wf(nn,Math.abs(P)),a=zn(I)*M+C,o=Vn(I)*D+A;break;case mt.R:{s=a=e[v++],l=o=e[v++];var R=e[v++],k=e[v++];d=R*2+k*2;break}case mt.Z:{var m=s-a,_=l-o;d=Math.sqrt(m*m+_*_),a=s,o=l;break}}d>=0&&(u[h++]=d,f+=d)}return this._pathLen=f,f},r.prototype.rebuildPath=function(e,t){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,f,h,v,c=t<1,p,d,g=0,y=0,m,_=0,S,w;if(!(c&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,d=this._pathLen,m=t*d,!m)))t:for(var x=0;x<o;){var b=n[x++],C=x===1;switch(C&&(u=n[x],f=n[x+1],s=u,l=f),b!==mt.L&&_>0&&(e.lineTo(S,w),_=0),b){case mt.M:s=u=n[x++],l=f=n[x++],e.moveTo(u,f);break;case mt.L:{h=n[x++],v=n[x++];var A=Ar(h-u),M=Ar(v-f);if(A>i||M>a){if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+h*L,f*(1-L)+v*L);break t}g+=D}e.lineTo(h,v),u=h,f=v,_=0}else{var P=A*A+M*M;P>_&&(S=h,w=v,_=P)}break}case mt.C:{var I=n[x++],R=n[x++],k=n[x++],F=n[x++],B=n[x++],N=n[x++];if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;bl(u,I,k,B,L,Bn),bl(f,R,F,N,L,Nn),e.bezierCurveTo(Bn[1],Nn[1],Bn[2],Nn[2],Bn[3],Nn[3]);break t}g+=D}e.bezierCurveTo(I,R,k,F,B,N),u=B,f=N;break}case mt.Q:{var I=n[x++],R=n[x++],k=n[x++],F=n[x++];if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;Tl(u,I,k,L,Bn),Tl(f,R,F,L,Nn),e.quadraticCurveTo(Bn[1],Nn[1],Bn[2],Nn[2]);break t}g+=D}e.quadraticCurveTo(I,R,k,F),u=k,f=F;break}case mt.A:var H=n[x++],X=n[x++],Y=n[x++],ot=n[x++],vt=n[x++],yt=n[x++],Yt=n[x++],he=!n[x++],Nt=Y>ot?Y:ot,Mt=Ar(Y-ot)>.001,bt=vt+yt,J=!1;if(c){var D=p[y++];g+D>m&&(bt=vt+yt*(m-g)/D,J=!0),g+=D}if(Mt&&e.ellipse?e.ellipse(H,X,Y,ot,Yt,vt,bt,he):e.arc(H,X,Nt,vt,bt,he),J)break t;C&&(s=zn(vt)*Y+H,l=Vn(vt)*ot+X),u=zn(bt)*Y+H,f=Vn(bt)*ot+X;break;case mt.R:s=u=n[x],l=f=n[x+1],h=n[x++],v=n[x++];var lt=n[x++],ce=n[x++];if(c){var D=p[y++];if(g+D>m){var Dt=m-g;e.moveTo(h,v),e.lineTo(h+wf(Dt,lt),v),Dt-=lt,Dt>0&&e.lineTo(h+lt,v+wf(Dt,ce)),Dt-=ce,Dt>0&&e.lineTo(h+bf(lt-Dt,0),v+ce),Dt-=lt,Dt>0&&e.lineTo(h,v+bf(ce-Dt,0));break t}g+=D}e.rect(h,v,lt,ce);break;case mt.Z:if(c){var D=p[y++];if(g+D>m){var L=(m-g)/D;e.lineTo(u*(1-L)+s*L,f*(1-L)+l*L);break t}g+=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.CMD=mt,r.initDefaultProps=function(){var e=r.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),r}();const Fr=gD;function Ii(r,e,t,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=r;if(o>e+s&&o>n+s||o<e-s&&o<n-s||a>r+s&&a>t+s||a<r-s&&a<t-s)return!1;if(r!==t)l=(e-n)/(r-t),u=(r*n-t*e)/(r-t);else return Math.abs(a-r)<=s/2;var f=l*a-o+u,h=f*f/(l*l+1);return h<=s/2*s/2}function yD(r,e,t,n,i,a,o,s,l,u,f){if(l===0)return!1;var h=l;if(f>e+h&&f>n+h&&f>a+h&&f>s+h||f<e-h&&f<n-h&&f<a-h&&f<s-h||u>r+h&&u>t+h&&u>i+h&&u>o+h||u<r-h&&u<t-h&&u<i-h&&u<o-h)return!1;var v=_A(r,e,t,n,i,a,o,s,u,f,null);return v<=h/2}function mD(r,e,t,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>n+u&&l>a+u||l<e-u&&l<n-u&&l<a-u||s>r+u&&s>t+u&&s>i+u||s<r-u&&s<t-u&&s<i-u)return!1;var f=wA(r,e,t,n,i,a,s,l,null);return f<=u/2}var Yd=Math.PI*2;function ms(r){return r%=Yd,r<0&&(r+=Yd),r}var Ra=Math.PI*2;function _D(r,e,t,n,i,a,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(n-i)%Ra<1e-4)return!0;if(a){var h=n;n=ms(i),i=ms(h)}else n=ms(n),i=ms(i);n>i&&(i+=Ra);var v=Math.atan2(l,s);return v<0&&(v+=Ra),v>=n&&v<=i||v+Ra>=n&&v+Ra<=i}function Pr(r,e,t,n,i,a){if(a>e&&a>n||a<e&&a<n||n===e)return 0;var o=(a-e)/(n-e),s=n<e?1:-1;(o===1||o===0)&&(s=n<e?.5:-.5);var l=o*(t-r)+r;return l===i?1/0:l>i?s:0}var qr=Fr.CMD,Fn=Math.PI*2,SD=1e-4;function xD(r,e){return Math.abs(r-e)<SD}var ee=[-1,-1,-1],Ie=[-1,-1];function wD(){var r=Ie[0];Ie[0]=Ie[1],Ie[1]=r}function bD(r,e,t,n,i,a,o,s,l,u){if(u>e&&u>n&&u>a&&u>s||u<e&&u<n&&u<a&&u<s)return 0;var f=wl(e,n,a,s,u,ee);if(f===0)return 0;for(var h=0,v=-1,c=void 0,p=void 0,d=0;d<f;d++){var g=ee[d],y=g===0||g===1?.5:1,m=kt(r,t,i,o,g);m<l||(v<0&&(v=m1(e,n,a,s,Ie),Ie[1]<Ie[0]&&v>1&&wD(),c=kt(e,n,a,s,Ie[0]),v>1&&(p=kt(e,n,a,s,Ie[1]))),v===2?g<Ie[0]?h+=c<e?y:-y:g<Ie[1]?h+=p<c?y:-y:h+=s<p?y:-y:g<Ie[0]?h+=c<e?y:-y:h+=s<c?y:-y)}return h}function TD(r,e,t,n,i,a,o,s){if(s>e&&s>n&&s>a||s<e&&s<n&&s<a)return 0;var l=xA(e,n,a,s,ee);if(l===0)return 0;var u=_1(e,n,a);if(u>=0&&u<=1){for(var f=0,h=qt(e,n,a,u),v=0;v<l;v++){var c=ee[v]===0||ee[v]===1?.5:1,p=qt(r,t,i,ee[v]);p<o||(ee[v]<u?f+=h<e?c:-c:f+=a<h?c:-c)}return f}else{var c=ee[0]===0||ee[0]===1?.5:1,p=qt(r,t,i,ee[0]);return p<o?0:a<e?c:-c}}function CD(r,e,t,n,i,a,o,s){if(s-=e,s>t||s<-t)return 0;var l=Math.sqrt(t*t-s*s);ee[0]=-l,ee[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Fn-1e-4){n=0,i=Fn;var f=a?1:-1;return o>=ee[0]+r&&o<=ee[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=Fn,i+=Fn);for(var v=0,c=0;c<2;c++){var p=ee[c];if(p+r>o){var d=Math.atan2(s,p),f=a?1:-1;d<0&&(d=Fn+d),(d>=n&&d<=i||d+Fn>=n&&d+Fn<=i)&&(d>Math.PI/2&&d<Math.PI*1.5&&(f=-f),v+=f)}}return v}function nS(r,e,t,n,i){for(var a=r.data,o=r.len(),s=0,l=0,u=0,f=0,h=0,v,c,p=0;p<o;){var d=a[p++],g=p===1;switch(d===qr.M&&p>1&&(t||(s+=Pr(l,u,f,h,n,i))),g&&(l=a[p],u=a[p+1],f=l,h=u),d){case qr.M:f=a[p++],h=a[p++],l=f,u=h;break;case qr.L:if(t){if(Ii(l,u,a[p],a[p+1],e,n,i))return!0}else s+=Pr(l,u,a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case qr.C:if(t){if(yD(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],e,n,i))return!0}else s+=bD(l,u,a[p++],a[p++],a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case qr.Q:if(t){if(mD(l,u,a[p++],a[p++],a[p],a[p+1],e,n,i))return!0}else s+=TD(l,u,a[p++],a[p++],a[p],a[p+1],n,i)||0;l=a[p++],u=a[p++];break;case qr.A:var y=a[p++],m=a[p++],_=a[p++],S=a[p++],w=a[p++],x=a[p++];p+=1;var b=!!(1-a[p++]);v=Math.cos(w)*_+y,c=Math.sin(w)*S+m,g?(f=v,h=c):s+=Pr(l,u,v,c,n,i);var C=(n-y)*S/_+y;if(t){if(_D(y,m,S,w,w+x,b,e,C,i))return!0}else s+=CD(y,m,S,w,w+x,b,C,i);l=Math.cos(w+x)*_+y,u=Math.sin(w+x)*S+m;break;case qr.R:f=l=a[p++],h=u=a[p++];var A=a[p++],M=a[p++];if(v=f+A,c=h+M,t){if(Ii(f,h,v,h,e,n,i)||Ii(v,h,v,c,e,n,i)||Ii(v,c,f,c,e,n,i)||Ii(f,c,f,h,e,n,i))return!0}else s+=Pr(v,h,v,c,n,i),s+=Pr(f,c,f,h,n,i);break;case qr.Z:if(t){if(Ii(l,u,f,h,e,n,i))return!0}else s+=Pr(l,u,f,h,n,i);l=f,u=h;break}}return!t&&!xD(u,h)&&(s+=Pr(l,u,f,h,n,i)||0),s!==0}function AD(r,e,t){return nS(r,0,!1,e,t)}function MD(r,e,t,n){return nS(r,e,!0,t,n)}var Ll=q({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},fi),DD={style:q({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},hu.style)},Af=Sr.concat(["invisible","culling","z","z2","zlevel","parent"]),LD=function(r){E(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 n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(l){t.buildPath(l,t.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<Af.length;++s)i[Af[s]]=this[Af[s]];i.__dirty|=vr}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(t){var n=at(t);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=t[o];o==="style"?this.style?O(this.style,s):this.useStyle(s):o==="shape"?O(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},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(G(t)){var n=To(t,0);return n>.5?Qh:n>.2?aM:tc}else if(t)return tc}return Qh},e.prototype.getInsideTextStroke=function(t){var n=this.style.fill;if(G(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=To(t,0)<Jh;if(a===o)return n}},e.prototype.buildPath=function(t,n,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Yi},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 Fr(!1)},e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return!(n==null||n==="none"||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.getBoundingRect=function(){var t=this._rect,n=this.style,i=!t;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Yi)&&(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||i){s.copy(t);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;u=Math.max(u,f==null?4:f)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return t},e.prototype.contain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect(),o=this.style;if(t=i[0],n=i[1],a.contain(t,n)){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)),MD(s,l/u,t,n)))return!0}if(this.hasFill())return AD(s,t,n)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Yi,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,n){t==="shape"?this.setShape(n):r.prototype.attrKV.call(this,t,n)},e.prototype.setShape=function(t,n){var i=this.shape;return i||(i=this.shape={}),typeof t=="string"?i[t]=n:O(i,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Yi)},e.prototype.createStyle=function(t){return Xo(Ll,t)},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=O({},this.shape))},e.prototype._applyStateObj=function(t,n,i,a,o,s){r.prototype._applyStateObj.call(this,t,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=O({},i.shape),O(u,n.shape)):(u=O({},a?this.shape:i.shape),O(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=O({},this.shape);for(var f={},h=at(u),v=0;v<h.length;v++){var c=h[v];typeof u[c]=="object"?this.shape[c]=u[c]:f[c]=u[c]}this._transitionState(t,{shape:f},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(t){for(var n=r.prototype._mergeStates.call(this,t),i,a=0;a<t.length;a++){var o=t[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},e.prototype.getAnimationStyleProps=function(){return DD},e.prototype.isZeroArea=function(){return!1},e.extend=function(t){var n=function(a){E(o,a);function o(s){var l=a.call(this,s)||this;return t.init&&t.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return Z(t.style)},o.prototype.getDefaultShape=function(){return Z(t.shape)},o}(e);for(var i in t)typeof t[i]=="function"&&(n.prototype[i]=t[i]);return n},e.initDefaultProps=function(){var t=e.prototype;t.type="path",t.strokeContainThreshold=5,t.segmentIgnoreThreshold=0,t.subPixelOptimize=!1,t.autoBatch=!1,t.__dirty=vr|Ja|Yi}(),e}(Vr);const gt=LD;var PD=q({strokeFirst:!0,font:mn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ll),iS=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var t=this.style,n=t.stroke;return n!=null&&n!=="none"&&t.lineWidth>0},e.prototype.hasFill=function(){var t=this.style,n=t.fill;return n!=null&&n!=="none"},e.prototype.createStyle=function(t){return Xo(PD,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var n=t.text;n!=null?n+="":n="";var i=Ko(n,t.font,t.textAlign,t.textBaseline);if(i.x+=t.x||0,i.y+=t.y||0,this.hasStroke()){var a=t.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=function(){var t=e.prototype;t.dirtyRectTolerance=10}(),e}(Vr);iS.prototype.type="tspan";const Lo=iS;var ID=q({x:0,y:0},fi),RD={style:q({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},hu.style)};function ED(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var aS=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.createStyle=function(t){return Xo(ID,t)},e.prototype._getSize=function(t){var n=this.style,i=n[t];if(i!=null)return i;var a=ED(n.image)?n.image:this.__image;if(!a)return 0;var o=t==="width"?"height":"width",s=n[o];return s==null?a[t]:a[t]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return RD},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ct(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(Vr);aS.prototype.type="image";const fe=aS;function kD(r,e){var t=e.x,n=e.y,i=e.width,a=e.height,o=e.r,s,l,u,f;i<0&&(t=t+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=f=o:o instanceof Array?o.length===1?s=l=u=f=o[0]:o.length===2?(s=u=o[0],l=f=o[1]):o.length===3?(s=o[0],l=f=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],f=o[3]):s=l=u=f=0;var h;s+l>i&&(h=s+l,s*=i/h,l*=i/h),u+f>i&&(h=u+f,u*=i/h,f*=i/h),l+u>a&&(h=l+u,l*=a/h,u*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(t+s,n),r.lineTo(t+i-l,n),l!==0&&r.arc(t+i-l,n+l,l,-Math.PI/2,0),r.lineTo(t+i,n+a-u),u!==0&&r.arc(t+i-u,n+a-u,u,0,Math.PI/2),r.lineTo(t+f,n+a),f!==0&&r.arc(t+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(t,n+s),s!==0&&r.arc(t+s,n+s,s,Math.PI,Math.PI*1.5)}var Ki=Math.round;function oS(r,e,t){if(e){var n=e.x1,i=e.x2,a=e.y1,o=e.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=t&&t.lineWidth;return s&&(Ki(n*2)===Ki(i*2)&&(r.x1=r.x2=ii(n,s,!0)),Ki(a*2)===Ki(o*2)&&(r.y1=r.y2=ii(a,s,!0))),r}}function sS(r,e,t){if(e){var n=e.x,i=e.y,a=e.width,o=e.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=t&&t.lineWidth;return s&&(r.x=ii(n,s,!0),r.y=ii(i,s,!0),r.width=Math.max(ii(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(ii(i+o,s,!1)-r.y,o===0?0:1)),r}}function ii(r,e,t){if(!e)return r;var n=Ki(r*2);return(n+Ki(e))%2===0?n/2:(n+(t?1:-1))/2}var OD=function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r}(),BD={},lS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new OD},e.prototype.buildPath=function(t,n){var i,a,o,s;if(this.subPixelOptimize){var l=sS(BD,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?kD(t,n):t.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(gt);lS.prototype.type="rect";const pt=lS;var Ud={fill:"#000"},Xd=2,ND={style:q({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},hu.style)},uS=function(r){E(e,r);function e(t){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Ud,n.attr(t),n}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 n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},e.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):r.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.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,FD(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 n=0;n<this._children.length;n++)this._children[n].__zr=t},e.prototype.removeSelfFromZr=function(t){r.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new ct(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(t.copy(l),t.applyTransform(u),a=a||t.clone(),a.union(t)):(a=a||l.clone(),a.union(l))}this._rect=a||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Ud},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,n){if(!n)return t;var i=n.rich,a=t.rich||i&&{};return O(t,n),i&&a?(this._mergeRich(a,i),t.rich=a):a&&(t.rich=a),t},e.prototype._mergeRich=function(t,n){for(var i=at(n),a=0;a<i.length;a++){var o=i[a];t[o]=t[o]||{},O(t[o],n[o])}},e.prototype.getAnimationStyleProps=function(){return ND},e.prototype._getOrCreateChild=function(t){var n=this._children[this._childCursor];return(!n||!(n instanceof t))&&(n=new t),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},e.prototype._updatePlainTexts=function(){var t=this.style,n=t.font||mn,i=t.padding,a=tg(t),o=nD(a,t),s=Mf(t),l=!!t.backgroundColor,u=o.outerHeight,f=o.outerWidth,h=o.contentWidth,v=o.lines,c=o.lineHeight,p=this._defaultStyle;this.isTruncated=!!o.isTruncated;var d=t.x||0,g=t.y||0,y=t.align||p.align||"left",m=t.verticalAlign||p.verticalAlign||"top",_=d,S=Ui(g,o.contentHeight,m);if(s||i){var w=to(d,f,y),x=Ui(g,u,m);s&&this._renderBackground(t,t,w,x,f,u)}S+=c/2,i&&(_=Qd(d,y,i),m==="top"?S+=i[0]:m==="bottom"&&(S-=i[2]));for(var b=0,C=!1,A=Jd("fill"in t?t.fill:(C=!0,p.fill)),M=jd("stroke"in t?t.stroke:!l&&(!p.autoStroke||C)?(b=Xd,p.stroke):null),D=t.textShadowBlur>0,L=t.width!=null&&(t.overflow==="truncate"||t.overflow==="break"||t.overflow==="breakAll"),P=o.calculatedLineHeight,I=0;I<v.length;I++){var R=this._getOrCreateChild(Lo),k=R.createStyle();R.useStyle(k),k.text=v[I],k.x=_,k.y=S,y&&(k.textAlign=y),k.textBaseline="middle",k.opacity=t.opacity,k.strokeFirst=!0,D&&(k.shadowBlur=t.textShadowBlur||0,k.shadowColor=t.textShadowColor||"transparent",k.shadowOffsetX=t.textShadowOffsetX||0,k.shadowOffsetY=t.textShadowOffsetY||0),k.stroke=M,k.fill=A,M&&(k.lineWidth=t.lineWidth||b,k.lineDash=t.lineDash,k.lineDashOffset=t.lineDashOffset||0),k.font=n,qd(k,t),S+=c,L&&R.setBoundingRect(new ct(to(k.x,h,k.textAlign),Ui(k.y,P,k.textBaseline),h,P))}},e.prototype._updateRichTexts=function(){var t=this.style,n=tg(t),i=oD(n,t),a=i.width,o=i.outerWidth,s=i.outerHeight,l=t.padding,u=t.x||0,f=t.y||0,h=this._defaultStyle,v=t.align||h.align,c=t.verticalAlign||h.verticalAlign;this.isTruncated=!!i.isTruncated;var p=to(u,o,v),d=Ui(f,s,c),g=p,y=d;l&&(g+=l[3],y+=l[0]);var m=g+a;Mf(t)&&this._renderBackground(t,t,p,d,o,s);for(var _=!!t.backgroundColor,S=0;S<i.lines.length;S++){for(var w=i.lines[S],x=w.tokens,b=x.length,C=w.lineHeight,A=w.width,M=0,D=g,L=m,P=b-1,I=void 0;M<b&&(I=x[M],!I.align||I.align==="left");)this._placeToken(I,t,C,y,D,"left",_),A-=I.width,D+=I.width,M++;for(;P>=0&&(I=x[P],I.align==="right");)this._placeToken(I,t,C,y,L,"right",_),A-=I.width,L-=I.width,P--;for(D+=(a-(D-g)-(m-L)-A)/2;M<=P;)I=x[M],this._placeToken(I,t,C,y,D+I.width/2,"center",_),D+=I.width,M++;y+=C}},e.prototype._placeToken=function(t,n,i,a,o,s,l){var u=n.rich[t.styleName]||{};u.text=t.text;var f=t.verticalAlign,h=a+i/2;f==="top"?h=a+t.height/2:f==="bottom"&&(h=a+i-t.height/2);var v=!t.isLineHolder&&Mf(u);v&&this._renderBackground(u,n,s==="right"?o-t.width:s==="center"?o-t.width/2:o,h-t.height/2,t.width,t.height);var c=!!u.backgroundColor,p=t.textPadding;p&&(o=Qd(o,s,p),h-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(Lo),g=d.createStyle();d.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Jd("fill"in u?u.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=jd("stroke"in u?u.stroke:"stroke"in n?n.stroke:!c&&!l&&(!y.autoStroke||m)?(_=Xd,y.stroke):null),x=u.textShadowBlur>0||n.textShadowBlur>0;g.text=t.text,g.x=o,g.y=h,x&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=t.font||mn,g.opacity=Ji(u.opacity,n.opacity,1),qd(g,u),w&&(g.lineWidth=Ji(u.lineWidth,n.lineWidth,_),g.lineDash=j(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),S&&(g.fill=S);var b=t.contentWidth,C=t.contentHeight;d.setBoundingRect(new ct(to(g.x,b,g.textAlign),Ui(g.y,C,g.textBaseline),b,C))},e.prototype._renderBackground=function(t,n,i,a,o,s){var l=t.backgroundColor,u=t.borderWidth,f=t.borderColor,h=l&&l.image,v=l&&!h,c=t.borderRadius,p=this,d,g;if(v||t.lineHeight||u&&f){d=this._getOrCreateChild(pt),d.useStyle(d.createStyle()),d.style.fill=null;var y=d.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=c,d.dirtyShape()}if(v){var m=d.style;m.fill=l||null,m.fillOpacity=j(t.fillOpacity,1)}else if(h){g=this._getOrCreateChild(fe),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&f){var m=d.style;m.lineWidth=u,m.stroke=f,m.strokeOpacity=j(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,d.strokeContainThreshold=0,d.hasFill()&&d.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(d||g).style;S.shadowBlur=t.shadowBlur||0,S.shadowColor=t.shadowColor||"transparent",S.shadowOffsetX=t.shadowOffsetX||0,S.shadowOffsetY=t.shadowOffsetY||0,S.opacity=Ji(t.opacity,n.opacity,1)},e.makeFont=function(t){var n="";return hS(t)&&(n=[t.fontStyle,t.fontWeight,fS(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),n&&ze(n)||t.textFont||t.font},e}(Vr),zD={left:!0,right:1,center:1},VD={top:1,bottom:1,middle:1},Zd=["fontStyle","fontWeight","fontSize","fontFamily"];function fS(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?iv+"px":r+"px"}function qd(r,e){for(var t=0;t<Zd.length;t++){var n=Zd[t],i=e[n];i!=null&&(r[n]=i)}}function hS(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function FD(r){return Kd(r),T(r.rich,Kd),r}function Kd(r){if(r){r.font=uS.makeFont(r);var e=r.align;e==="middle"&&(e="center"),r.align=e==null||zD[e]?e:"left";var t=r.verticalAlign;t==="center"&&(t="middle"),r.verticalAlign=t==null||VD[t]?t:"top";var n=r.padding;n&&(r.padding=fv(r.padding))}}function jd(r,e){return r==null||e<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Jd(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function Qd(r,e,t){return e==="right"?r-t[1]:e==="center"?r+t[3]/2-t[1]/2:r+t[3]}function tg(r){var e=r.text;return e!=null&&(e+=""),e}function Mf(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}const dt=uS;var nt=St(),GD=function(r,e,t,n){if(n){var i=nt(n);i.dataIndex=t,i.dataType=e,i.seriesIndex=r,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=nt(a);o.seriesIndex=r,o.dataIndex=t,o.dataType=e,o.ssrType="chart"})}},eg=1,rg={},cS=St(),Dv=St(),Lv=0,cu=1,vu=2,Fe=["emphasis","blur","select"],Pl=["normal","emphasis","blur","select"],vS=10,HD=9,hi="highlight",ol="downplay",co="select",sl="unselect",vo="toggleSelect";function Ri(r){return r!=null&&r!=="none"}function pu(r,e,t){r.onHoverStateChange&&(r.hoverState||0)!==t&&r.onHoverStateChange(e),r.hoverState=t}function pS(r){pu(r,"emphasis",vu)}function dS(r){r.hoverState===vu&&pu(r,"normal",Lv)}function Pv(r){pu(r,"blur",cu)}function gS(r){r.hoverState===cu&&pu(r,"normal",Lv)}function WD(r){r.selected=!0}function $D(r){r.selected=!1}function ng(r,e,t){e(r,t)}function Hr(r,e,t){ng(r,e,t),r.isGroup&&r.traverse(function(n){ng(n,e,t)})}function sc(r,e){switch(e){case"emphasis":r.hoverState=vu;break;case"normal":r.hoverState=Lv;break;case"blur":r.hoverState=cu;break;case"select":r.selected=!0}}function YD(r,e,t,n){for(var i=r.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l==null?n&&n[s]:l}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(a,e)}return a}function UD(r,e,t,n){var i=t&&st(t,"select")>=0,a=!1;if(r instanceof gt){var o=cS(r),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Ri(s)||Ri(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=O({},n),u=O({},u),u.fill=s):!Ri(u.fill)&&Ri(s)?(a=!0,n=O({},n),u=O({},u),u.fill=Cl(s)):!Ri(u.stroke)&&Ri(l)&&(a||(n=O({},n),u=O({},u)),u.stroke=Cl(l)),n.style=u}}if(n&&n.z2==null){a||(n=O({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f!=null?f:vS)}return n}function XD(r,e,t){if(t&&t.z2==null){t=O({},t);var n=r.z2SelectLift;t.z2=r.z2+(n!=null?n:HD)}return t}function ZD(r,e,t){var n=st(r.currentStates,e)>=0,i=r.style.opacity,a=n?null:YD(r,["opacity"],e,{opacity:1});t=t||{};var o=t.style||{};return o.opacity==null&&(t=O({},t),o=O({opacity:n?i:a.opacity*.1},o),t.style=o),t}function Df(r,e){var t=this.states[r];if(this.style){if(r==="emphasis")return UD(this,r,e,t);if(r==="blur")return ZD(this,r,t);if(r==="select")return XD(this,r,t)}return t}function Iv(r){r.stateProxy=Df;var e=r.getTextContent(),t=r.getTextGuideLine();e&&(e.stateProxy=Df),t&&(t.stateProxy=Df)}function ig(r,e){!SS(r,e)&&!r.__highByOuter&&Hr(r,pS)}function ag(r,e){!SS(r,e)&&!r.__highByOuter&&Hr(r,dS)}function oa(r,e){r.__highByOuter|=1<<(e||0),Hr(r,pS)}function sa(r,e){!(r.__highByOuter&=~(1<<(e||0)))&&Hr(r,dS)}function qD(r){Hr(r,Pv)}function yS(r){Hr(r,gS)}function mS(r){Hr(r,WD)}function _S(r){Hr(r,$D)}function SS(r,e){return r.__highDownSilentOnTouch&&e.zrByTouch}function xS(r){var e=r.getModel(),t=[],n=[];e.eachComponent(function(i,a){var o=Dv(a),s=i==="series",l=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){gS(u)}),s&&t.push(a)),o.isBlured=!1}),T(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(t,!1,e)})}function lc(r,e,t,n){var i=n.getModel();t=t||"coordinateSystem";function a(u,f){for(var h=0;h<f.length;h++){var v=u.getItemGraphicEl(f[h]);v&&yS(v)}}if(r!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var f=o===u,h=u.coordinateSystem;h&&h.master&&(h=h.master);var v=h&&s?h===s:f;if(!(t==="series"&&!f||t==="coordinateSystem"&&!v||e==="series"&&f)){var c=n.getViewOfSeriesModel(u);if(c.group.traverse(function(g){g.__highByOuter&&f&&e==="self"||Pv(g)}),Qt(e))a(u.getData(),e);else if(U(e))for(var p=at(e),d=0;d<p.length;d++)a(u.getData(p[d]),e[p[d]]);l.push(u),Dv(u).isBlured=!0}}),i.eachComponent(function(u,f){if(u!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(l,!0,i)}})}}function uc(r,e,t){if(!(r==null||e==null)){var n=t.getModel().getComponent(r,e);if(n){Dv(n).isBlured=!0;var i=t.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Pv(a)})}}}function KD(r,e,t){var n=r.seriesIndex,i=r.getData(e.dataType);if(i){var a=mi(i,e);a=(z(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=nt(o);lc(n,u.focus,u.blurScope,t)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&lc(n,f,h,t)}}}function Rv(r,e,t,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||e==null||t==null)return i;var a=n.getModel().getComponent(r,e);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(t),l,u=0;u<s.length;u++)if(nt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function jD(r,e,t){var n=nt(r),i=Rv(n.componentMainType,n.componentIndex,n.componentHighDownName,t),a=i.dispatchers,o=i.focusSelf;a?(o&&uc(n.componentMainType,n.componentIndex,t),T(a,function(s){return ig(s,e)})):(lc(n.seriesIndex,n.focus,n.blurScope,t),n.focus==="self"&&uc(n.componentMainType,n.componentIndex,t),ig(r,e))}function JD(r,e,t){xS(t);var n=nt(r),i=Rv(n.componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers;i?T(i,function(a){return ag(a,e)}):ag(r,e)}function QD(r,e,t){if(hc(e)){var n=e.dataType,i=r.getData(n),a=mi(i,e);z(a)||(a=[a]),r[e.type===vo?"toggleSelect":e.type===co?"select":"unselect"](a,n)}}function og(r){var e=r.getAllData();T(e,function(t){var n=t.data,i=t.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?mS(a):_S(a)})})}function t2(r){var e=[];return r.eachSeries(function(t){var n=t.getAllData();T(n,function(i){i.data;var a=i.type,o=t.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:t.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function dn(r,e,t){Ev(r,!0),Hr(r,Iv),r2(r,e,t)}function e2(r){Ev(r,!1)}function Sn(r,e,t,n){n?e2(r):dn(r,e,t)}function r2(r,e,t){var n=nt(r);e!=null?(n.focus=e,n.blurScope=t):n.focus&&(n.focus=null)}var sg=["emphasis","blur","select"],n2={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function la(r,e,t,n){t=t||"itemStyle";for(var i=0;i<sg.length;i++){var a=sg[i],o=e.getModel([a,t]),s=r.ensureState(a);s.style=n?n(o):o[n2[t]]()}}function Ev(r,e){var t=e===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!t||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!t)}function fc(r){return!!(r&&r.__highDownDispatcher)}function i2(r,e,t){var n=nt(r);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=t}function a2(r){var e=rg[r];return e==null&&eg<=32&&(e=rg[r]=eg++),e}function hc(r){var e=r.type;return e===co||e===sl||e===vo}function lg(r){var e=r.type;return e===hi||e===ol}function o2(r){var e=cS(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 Ei=Fr.CMD,s2=[[],[],[]],ug=Math.sqrt,l2=Math.atan2;function u2(r,e){if(e){var t=r.data,n=r.len(),i,a,o,s,l,u,f=Ei.M,h=Ei.C,v=Ei.L,c=Ei.R,p=Ei.A,d=Ei.Q;for(o=0,s=0;o<n;){switch(i=t[o++],s=o,a=0,i){case f:a=1;break;case v:a=1;break;case h:a=3;break;case d:a=2;break;case p:var g=e[4],y=e[5],m=ug(e[0]*e[0]+e[1]*e[1]),_=ug(e[2]*e[2]+e[3]*e[3]),S=l2(-e[1]/_,e[0]/m);t[o]*=m,t[o++]+=g,t[o]*=_,t[o++]+=y,t[o++]*=m,t[o++]*=_,t[o++]+=S,t[o++]+=S,o+=2,s=o;break;case c:u[0]=t[o++],u[1]=t[o++],Vt(u,u,e),t[s++]=u[0],t[s++]=u[1],u[0]+=t[o++],u[1]+=t[o++],Vt(u,u,e),t[s++]=u[0],t[s++]=u[1]}for(l=0;l<a;l++){var w=s2[l];w[0]=t[o++],w[1]=t[o++],Vt(w,w,e),t[s++]=w[0],t[s++]=w[1]}}r.increaseVersion()}}var Lf=Math.sqrt,_s=Math.sin,Ss=Math.cos,Ea=Math.PI;function fg(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function cc(r,e){return(r[0]*e[0]+r[1]*e[1])/(fg(r)*fg(e))}function hg(r,e){return(r[0]*e[1]<r[1]*e[0]?-1:1)*Math.acos(cc(r,e))}function cg(r,e,t,n,i,a,o,s,l,u,f){var h=l*(Ea/180),v=Ss(h)*(r-t)/2+_s(h)*(e-n)/2,c=-1*_s(h)*(r-t)/2+Ss(h)*(e-n)/2,p=v*v/(o*o)+c*c/(s*s);p>1&&(o*=Lf(p),s*=Lf(p));var d=(i===a?-1:1)*Lf((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,g=d*o*c/s,y=d*-s*v/o,m=(r+t)/2+Ss(h)*g-_s(h)*y,_=(e+n)/2+_s(h)*g+Ss(h)*y,S=hg([1,0],[(v-g)/o,(c-y)/s]),w=[(v-g)/o,(c-y)/s],x=[(-1*v-g)/o,(-1*c-y)/s],b=hg(w,x);if(cc(w,x)<=-1&&(b=Ea),cc(w,x)>=1&&(b=0),b<0){var C=Math.round(b/Ea*1e6)/1e6;b=Ea*2+C%2*Ea}f.addData(u,m,_,o,s,S,b,h,a)}var f2=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,h2=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function c2(r){var e=new Fr;if(!r)return e;var t=0,n=0,i=t,a=n,o,s=Fr.CMD,l=r.match(f2);if(!l)return e;for(var u=0;u<l.length;u++){for(var f=l[u],h=f.charAt(0),v=void 0,c=f.match(h2)||[],p=c.length,d=0;d<p;d++)c[d]=parseFloat(c[d]);for(var g=0;g<p;){var y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,C=t,A=n,M=void 0,D=void 0;switch(h){case"l":t+=c[g++],n+=c[g++],v=s.L,e.addData(v,t,n);break;case"L":t=c[g++],n=c[g++],v=s.L,e.addData(v,t,n);break;case"m":t+=c[g++],n+=c[g++],v=s.M,e.addData(v,t,n),i=t,a=n,h="l";break;case"M":t=c[g++],n=c[g++],v=s.M,e.addData(v,t,n),i=t,a=n,h="L";break;case"h":t+=c[g++],v=s.L,e.addData(v,t,n);break;case"H":t=c[g++],v=s.L,e.addData(v,t,n);break;case"v":n+=c[g++],v=s.L,e.addData(v,t,n);break;case"V":n=c[g++],v=s.L,e.addData(v,t,n);break;case"C":v=s.C,e.addData(v,c[g++],c[g++],c[g++],c[g++],c[g++],c[g++]),t=c[g-2],n=c[g-1];break;case"c":v=s.C,e.addData(v,c[g++]+t,c[g++]+n,c[g++]+t,c[g++]+n,c[g++]+t,c[g++]+n),t+=c[g-2],n+=c[g-1];break;case"S":y=t,m=n,M=e.len(),D=e.data,o===s.C&&(y+=t-D[M-4],m+=n-D[M-3]),v=s.C,C=c[g++],A=c[g++],t=c[g++],n=c[g++],e.addData(v,y,m,C,A,t,n);break;case"s":y=t,m=n,M=e.len(),D=e.data,o===s.C&&(y+=t-D[M-4],m+=n-D[M-3]),v=s.C,C=t+c[g++],A=n+c[g++],t+=c[g++],n+=c[g++],e.addData(v,y,m,C,A,t,n);break;case"Q":C=c[g++],A=c[g++],t=c[g++],n=c[g++],v=s.Q,e.addData(v,C,A,t,n);break;case"q":C=c[g++]+t,A=c[g++]+n,t+=c[g++],n+=c[g++],v=s.Q,e.addData(v,C,A,t,n);break;case"T":y=t,m=n,M=e.len(),D=e.data,o===s.Q&&(y+=t-D[M-4],m+=n-D[M-3]),t=c[g++],n=c[g++],v=s.Q,e.addData(v,y,m,t,n);break;case"t":y=t,m=n,M=e.len(),D=e.data,o===s.Q&&(y+=t-D[M-4],m+=n-D[M-3]),t+=c[g++],n+=c[g++],v=s.Q,e.addData(v,y,m,t,n);break;case"A":_=c[g++],S=c[g++],w=c[g++],x=c[g++],b=c[g++],C=t,A=n,t=c[g++],n=c[g++],v=s.A,cg(C,A,t,n,x,b,_,S,w,v,e);break;case"a":_=c[g++],S=c[g++],w=c[g++],x=c[g++],b=c[g++],C=t,A=n,t+=c[g++],n+=c[g++],v=s.A,cg(C,A,t,n,x,b,_,S,w,v,e);break}}(h==="z"||h==="Z")&&(v=s.Z,e.addData(v),t=i,n=a),o=v}return e.toStatic(),e}var wS=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.applyTransform=function(t){},e}(gt);function bS(r){return r.setData!=null}function TS(r,e){var t=c2(r),n=O({},e);return n.buildPath=function(i){if(bS(i)){i.setData(t.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;t.rebuildPath(a,1)}},n.applyTransform=function(i){u2(t,i),this.dirtyShape()},n}function CS(r,e){return new wS(TS(r,e))}function v2(r,e){var t=TS(r,e),n=function(i){E(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=t.applyTransform,s.buildPath=t.buildPath,s}return a}(wS);return n}function p2(r,e){for(var t=[],n=r.length,i=0;i<n;i++){var a=r[i];t.push(a.getUpdatedPathProxy(!0))}var o=new gt(e);return o.createPathProxy(),o.buildPath=function(s){if(bS(s)){s.appendPath(t);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var d2=function(){function r(){this.cx=0,this.cy=0,this.r=0}return r}(),AS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new d2},e.prototype.buildPath=function(t,n){t.moveTo(n.cx+n.r,n.cy),t.arc(n.cx,n.cy,n.r,0,Math.PI*2)},e}(gt);AS.prototype.type="circle";const Wr=AS;var g2=function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r}(),MS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new g2},e.prototype.buildPath=function(t,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,f=l*i;t.moveTo(a-s,o),t.bezierCurveTo(a-s,o-f,a-u,o-l,a,o-l),t.bezierCurveTo(a+u,o-l,a+s,o-f,a+s,o),t.bezierCurveTo(a+s,o+f,a+u,o+l,a,o+l),t.bezierCurveTo(a-u,o+l,a-s,o+f,a-s,o),t.closePath()},e}(gt);MS.prototype.type="ellipse";const du=MS;var DS=Math.PI,Pf=DS*2,Gn=Math.sin,ki=Math.cos,y2=Math.acos,Ut=Math.atan2,vg=Math.abs,po=Math.sqrt,eo=Math.max,ur=Math.min,Ze=1e-4;function m2(r,e,t,n,i,a,o,s){var l=t-r,u=n-e,f=o-i,h=s-a,v=h*l-f*u;if(!(v*v<Ze))return v=(f*(e-a)-h*(r-i))/v,[r+v*l,e+v*u]}function xs(r,e,t,n,i,a,o){var s=r-t,l=e-n,u=(o?a:-a)/po(s*s+l*l),f=u*l,h=-u*s,v=r+f,c=e+h,p=t+f,d=n+h,g=(v+p)/2,y=(c+d)/2,m=p-v,_=d-c,S=m*m+_*_,w=i-a,x=v*d-p*c,b=(_<0?-1:1)*po(eo(0,w*w*S-x*x)),C=(x*_-m*b)/S,A=(-x*m-_*b)/S,M=(x*_+m*b)/S,D=(-x*m+_*b)/S,L=C-g,P=A-y,I=M-g,R=D-y;return L*L+P*P>I*I+R*R&&(C=M,A=D),{cx:C,cy:A,x0:-f,y0:-h,x1:C*(i/w-1),y1:A*(i/w-1)}}function _2(r){var e;if(z(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 S2(r,e){var t,n=eo(e.r,0),i=eo(e.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var f=e.cx,h=e.cy,v=!!e.clockwise,c=vg(u-l),p=c>Pf&&c%Pf;if(p>Ze&&(c=p),!(n>Ze))r.moveTo(f,h);else if(c>Pf-Ze)r.moveTo(f+n*ki(l),h+n*Gn(l)),r.arc(f,h,n,l,u,!v),i>Ze&&(r.moveTo(f+i*ki(u),h+i*Gn(u)),r.arc(f,h,i,u,l,v));else{var d=void 0,g=void 0,y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,C=void 0,A=void 0,M=void 0,D=void 0,L=void 0,P=void 0,I=void 0,R=n*ki(l),k=n*Gn(l),F=i*ki(u),B=i*Gn(u),N=c>Ze;if(N){var H=e.cornerRadius;H&&(t=_2(H),d=t[0],g=t[1],y=t[2],m=t[3]);var X=vg(n-i)/2;if(_=ur(X,y),S=ur(X,m),w=ur(X,d),x=ur(X,g),A=b=eo(_,S),M=C=eo(w,x),(b>Ze||C>Ze)&&(D=n*ki(u),L=n*Gn(u),P=i*ki(l),I=i*Gn(l),c<DS)){var Y=m2(R,k,P,I,D,L,F,B);if(Y){var ot=R-Y[0],vt=k-Y[1],yt=D-Y[0],Yt=L-Y[1],he=1/Gn(y2((ot*yt+vt*Yt)/(po(ot*ot+vt*vt)*po(yt*yt+Yt*Yt)))/2),Nt=po(Y[0]*Y[0]+Y[1]*Y[1]);A=ur(b,(n-Nt)/(he+1)),M=ur(C,(i-Nt)/(he-1))}}}if(!N)r.moveTo(f+R,h+k);else if(A>Ze){var Mt=ur(y,A),bt=ur(m,A),J=xs(P,I,R,k,n,Mt,v),lt=xs(D,L,F,B,n,bt,v);r.moveTo(f+J.cx+J.x0,h+J.cy+J.y0),A<b&&Mt===bt?r.arc(f+J.cx,h+J.cy,A,Ut(J.y0,J.x0),Ut(lt.y0,lt.x0),!v):(Mt>0&&r.arc(f+J.cx,h+J.cy,Mt,Ut(J.y0,J.x0),Ut(J.y1,J.x1),!v),r.arc(f,h,n,Ut(J.cy+J.y1,J.cx+J.x1),Ut(lt.cy+lt.y1,lt.cx+lt.x1),!v),bt>0&&r.arc(f+lt.cx,h+lt.cy,bt,Ut(lt.y1,lt.x1),Ut(lt.y0,lt.x0),!v))}else r.moveTo(f+R,h+k),r.arc(f,h,n,l,u,!v);if(!(i>Ze)||!N)r.lineTo(f+F,h+B);else if(M>Ze){var Mt=ur(d,M),bt=ur(g,M),J=xs(F,B,D,L,i,-bt,v),lt=xs(R,k,P,I,i,-Mt,v);r.lineTo(f+J.cx+J.x0,h+J.cy+J.y0),M<C&&Mt===bt?r.arc(f+J.cx,h+J.cy,M,Ut(J.y0,J.x0),Ut(lt.y0,lt.x0),!v):(bt>0&&r.arc(f+J.cx,h+J.cy,bt,Ut(J.y0,J.x0),Ut(J.y1,J.x1),!v),r.arc(f,h,i,Ut(J.cy+J.y1,J.cx+J.x1),Ut(lt.cy+lt.y1,lt.cx+lt.x1),v),Mt>0&&r.arc(f+lt.cx,h+lt.cy,Mt,Ut(lt.y1,lt.x1),Ut(lt.y0,lt.x0),!v))}else r.lineTo(f+F,h+B),r.arc(f,h,i,u,l,v)}r.closePath()}}}var x2=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}(),LS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new x2},e.prototype.buildPath=function(t,n){S2(t,n)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(gt);LS.prototype.type="sector";const wr=LS;var w2=function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r}(),PS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new w2},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.PI*2;t.moveTo(i+n.r,a),t.arc(i,a,n.r,0,o,!1),t.moveTo(i+n.r0,a),t.arc(i,a,n.r0,0,o,!0)},e}(gt);PS.prototype.type="ring";const Jo=PS;function b2(r,e,t,n){var i=[],a=[],o=[],s=[],l,u,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var v=0,c=r.length;v<c;v++)Ir(f,f,r[v]),Rr(h,h,r[v]);Ir(f,f,n[0]),Rr(h,h,n[1])}for(var v=0,c=r.length;v<c;v++){var p=r[v];if(t)l=r[v?v-1:c-1],u=r[(v+1)%c];else if(v===0||v===c-1){i.push(a1(r[v]));continue}else l=r[v-1],u=r[v+1];o1(a,u,l),js(a,a,e);var d=_l(p,l),g=_l(p,u),y=d+g;y!==0&&(d/=y,g/=y),js(o,a,-d),js(s,a,g);var m=zh([],p,o),_=zh([],p,s);n&&(Rr(m,m,f),Ir(m,m,h),Rr(_,_,f),Ir(_,_,h)),i.push(m),i.push(_)}return t&&i.push(i.shift()),i}function IS(r,e,t){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var a=b2(i,n,t,e.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(t?o:o-1);s++){var l=a[s*2],u=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(l[0],l[1],u[0],u[1],f[0],f[1])}}else{r.moveTo(i[0][0],i[0][1]);for(var s=1,h=i.length;s<h;s++)r.lineTo(i[s][0],i[s][1])}t&&r.closePath()}}var T2=function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r}(),RS=function(r){E(e,r);function e(t){return r.call(this,t)||this}return e.prototype.getDefaultShape=function(){return new T2},e.prototype.buildPath=function(t,n){IS(t,n,!0)},e}(gt);RS.prototype.type="polygon";const br=RS;var C2=function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r}(),ES=function(r){E(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 C2},e.prototype.buildPath=function(t,n){IS(t,n,!1)},e}(gt);ES.prototype.type="polyline";const Ge=ES;var A2={},M2=function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r}(),kS=function(r){E(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 M2},e.prototype.buildPath=function(t,n){var i,a,o,s;if(this.subPixelOptimize){var l=oS(A2,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(t.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),t.lineTo(o,s))},e.prototype.pointAt=function(t){var n=this.shape;return[n.x1*(1-t)+n.x2*t,n.y1*(1-t)+n.y2*t]},e}(gt);kS.prototype.type="line";const ie=kS;var pe=[],D2=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 pg(r,e,t){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(t?_d:kt)(r.x1,r.cpx1,r.cpx2,r.x2,e),(t?_d:kt)(r.y1,r.cpy1,r.cpy2,r.y2,e)]:[(t?Sd:qt)(r.x1,r.cpx1,r.x2,e),(t?Sd:qt)(r.y1,r.cpy1,r.y2,e)]}var OS=function(r){E(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 D2},e.prototype.buildPath=function(t,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,f=n.cpx2,h=n.cpy2,v=n.percent;v!==0&&(t.moveTo(i,a),f==null||h==null?(v<1&&(Tl(i,l,o,v,pe),l=pe[1],o=pe[2],Tl(a,u,s,v,pe),u=pe[1],s=pe[2]),t.quadraticCurveTo(l,u,o,s)):(v<1&&(bl(i,l,f,o,v,pe),l=pe[1],f=pe[2],o=pe[3],bl(a,u,h,s,v,pe),u=pe[1],h=pe[2],s=pe[3]),t.bezierCurveTo(l,u,f,h,o,s)))},e.prototype.pointAt=function(t){return pg(this.shape,t,!1)},e.prototype.tangentAt=function(t){var n=pg(this.shape,t,!0);return s1(n,n)},e}(gt);OS.prototype.type="bezier-curve";const kv=OS;var L2=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}(),BS=function(r){E(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 L2},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,f=Math.cos(s),h=Math.sin(s);t.moveTo(f*o+i,h*o+a),t.arc(i,a,o,s,l,!u)},e}(gt);BS.prototype.type="arc";const gu=BS;var P2=function(r){E(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,n=this.shapeChanged(),i=0;i<t.length;i++)n=n||t[i].shapeChanged();n&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(n[0],n[1],t[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(t,i[a].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],n=0;n<t.length;n++)t[n].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),gt.prototype.getBoundingRect.call(this)},e}(gt);const yu=P2;var I2=function(){function r(e){this.colorStops=e||[]}return r.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},r}();const NS=I2;var R2=function(r){E(e,r);function e(t,n,i,a,o,s){var l=r.call(this,o)||this;return l.x=t==null?0:t,l.y=n==null?0:n,l.x2=i==null?1:i,l.y2=a==null?0:a,l.type="linear",l.global=s||!1,l}return e}(NS);const Qo=R2;var E2=function(r){E(e,r);function e(t,n,i,a,o){var s=r.call(this,a)||this;return s.x=t==null?.5:t,s.y=n==null?.5:n,s.r=i==null?.5:i,s.type="radial",s.global=o||!1,s}return e}(NS);const Ov=E2;var Hn=[0,0],Wn=[0,0],ws=new rt,bs=new rt,k2=function(){function r(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new rt;for(var n=0;n<2;n++)this._axes[n]=new rt;e&&this.fromBoundingRect(e,t)}return r.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),t)for(var u=0;u<4;u++)n[u].transform(t);rt.sub(i[0],n[1],n[0]),rt.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},r.prototype.intersect=function(e,t){var n=!0,i=!t;return ws.set(1/0,1/0),bs.set(0,0),!this._intersectCheckOneSide(this,e,ws,bs,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(e,this,ws,bs,i,-1)&&(n=!1,i)||i||rt.copy(t,n?ws:bs),n},r.prototype._intersectCheckOneSide=function(e,t,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,Hn),this._getProjMinMaxOnAxis(l,t._corners,Wn),Hn[1]<Wn[0]||Hn[0]>Wn[1]){if(s=!1,a)return s;var f=Math.abs(Wn[0]-Hn[1]),h=Math.abs(Hn[0]-Wn[1]);Math.min(f,h)>i.len()&&(f<h?rt.scale(i,u,-f*o):rt.scale(i,u,h*o))}else if(n){var f=Math.abs(Wn[0]-Hn[1]),h=Math.abs(Hn[0]-Wn[1]);Math.min(f,h)<n.len()&&(f<h?rt.scale(n,u,f*o):rt.scale(n,u,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var i=this._axes[e],a=this._origin,o=t[0].dot(i)+a[e],s=o,l=o,u=1;u<t.length;u++){var f=t[u].dot(i)+a[e];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},r}();const Il=k2;var O2=[],B2=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return e.prototype.traverse=function(t,n){t.call(n,this)},e.prototype.useStyle=function(){this.style={}},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,n){n?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,n){n=n||!1;for(var i=0;i<t.length;i++)this.addDisplayable(t[i],n)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var n=this._cursor;n<this._displayables.length;n++)t&&t(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)t&&t(this._temporaryDisplayables[n])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var n=this._displayables[t];n.parent=this,n.update(),n.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var n=this._temporaryDisplayables[t];n.parent=this,n.update(),n.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ct(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(O2)),t.union(a)}this._rect=t}return this._rect},e.prototype.contain=function(t,n){var i=this.transformCoordToLocal(t,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(t,n))return!0}return!1},e}(Vr);const zS=B2;var N2=St();function Bv(r,e,t,n,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,h=void 0;n?(u=j(n.duration,200),f=j(n.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),f=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),K(h)&&(h=h(t,i)),K(u)&&(u=u(t));var v={duration:u||0,delay:h,easing:f};return v}else return null}function Nv(r,e,t,n,i,a,o){var s=!1,l;K(i)?(o=a,a=i,i=null):U(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=r==="leave";u||e.stopAnimation("leave");var f=Bv(r,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,i):null);if(f&&f.duration>0){var h=f.duration,v=f.delay,c=f.easing,p={duration:h,delay:v||0,easing:c,done:a,force:!!a||!!o,setToFinal:!u,scope:r,during:o};s?e.animateFrom(t,p):e.animateTo(t,p)}else e.stopAnimation(),!s&&e.attr(t),o&&o(1),a&&a()}function It(r,e,t,n,i,a){Nv("update",r,e,t,n,i,a)}function oe(r,e,t,n,i,a){Nv("enter",r,e,t,n,i,a)}function go(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 Po(r,e,t,n,i,a){go(r)||Nv("leave",r,e,t,n,i,a)}function dg(r,e,t,n){r.removeTextContent(),r.removeTextGuideLine(),Po(r,{style:{opacity:0}},e,t,n)}function Rl(r,e,t){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||dg(i,e,t,n)}):dg(r,e,t,n)}function Io(r){N2(r).oldStyle=r.style}var El=Math.max,kl=Math.min,vc={};function VS(r){return gt.extend(r)}var z2=v2;function FS(r,e){return z2(r,e)}function He(r,e){vc[r]=e}function zv(r){if(vc.hasOwnProperty(r))return vc[r]}function mu(r,e,t,n){var i=CS(r,e);return t&&(n==="center"&&(t=GS(t,i.getBoundingRect())),Fv(i,t)),i}function Vv(r,e,t){var n=new fe({style:{image:r,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(t==="center"){var a={width:i.width,height:i.height};n.setStyle(GS(e,a))}}});return n}function GS(r,e){var t=e.width/e.height,n=r.height*t,i;n<=r.width?i=r.height:(n=r.width,i=n/t);var a=r.x+r.width/2,o=r.y+r.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Be=p2;function Fv(r,e){if(r.applyTransform){var t=r.getBoundingRect(),n=t.calculateTransform(e);r.applyTransform(n)}}function Ro(r,e){return oS(r,r,{lineWidth:e}),r}function V2(r){return sS(r.shape,r.shape,r.style),r}var F2=ii;function gn(r,e){for(var t=Zo([]);r&&r!==e;)_r(t,r.getLocalTransform(),t),r=r.parent;return t}function tr(r,e,t){return e&&!Qt(e)&&(e=ri.getLocalTransform(e)),t&&(e=da([],e)),Vt([],r,e)}function _u(r,e,t){var n=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),a=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=tr(a,e,t),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function gg(r){return!r.isGroup}function G2(r){return r.shape!=null}function Su(r,e,t){if(!r||!e)return;function n(o){var s={};return o.traverse(function(l){gg(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return G2(o)&&(s.shape=O({},o.shape)),s}var a=n(r);e.traverse(function(o){if(gg(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),It(o,l,t,nt(o).dataIndex)}}})}function Gv(r,e){return V(r,function(t){var n=t[0];n=El(n,e.x),n=kl(n,e.x+e.width);var i=t[1];return i=El(i,e.y),i=kl(i,e.y+e.height),[n,i]})}function HS(r,e){var t=El(r.x,e.x),n=kl(r.x+r.width,e.x+e.width),i=El(r.y,e.y),a=kl(r.y+r.height,e.y+e.height);if(n>=t&&a>=i)return{x:t,y:i,width:n-t,height:a-i}}function ya(r,e,t){var n=O({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(t=t||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),q(i,t),new fe(n)):mu(r.replace("path://",""),n,t,"center")}function H2(r,e,t,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(WS(r,e,t,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function WS(r,e,t,n,i,a,o,s){var l=t-r,u=n-e,f=o-i,h=s-a,v=If(f,h,l,u);if(W2(v))return!1;var c=r-i,p=e-a,d=If(c,p,l,u)/v;if(d<0||d>1)return!1;var g=If(c,p,f,h)/v;return!(g<0||g>1)}function If(r,e,t,n){return r*n-t*e}function W2(r){return r<=1e-6&&r>=-1e-6}function bi(r){var e=r.itemTooltipOption,t=r.componentModel,n=r.itemName,i=G(e)?{formatter:e}:e,a=t.mainType,o=t.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=r.formatterParamsExtra;l&&T(at(l),function(f){tt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=nt(r.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:q({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function yg(r,e){var t;r.isGroup&&(t=e(r)),t||r.traverse(e)}function xu(r,e){if(r)if(z(r))for(var t=0;t<r.length;t++)yg(r[t],e);else yg(r,e)}He("circle",Wr);He("ellipse",du);He("sector",wr);He("ring",Jo);He("polygon",br);He("polyline",Ge);He("rect",pt);He("line",ie);He("bezierCurve",kv);He("arc",gu);const ma=Object.freeze(Object.defineProperty({__proto__:null,Arc:gu,BezierCurve:kv,BoundingRect:ct,Circle:Wr,CompoundPath:yu,Ellipse:du,Group:it,Image:fe,IncrementalDisplayable:zS,Line:ie,LinearGradient:Qo,OrientedBoundingRect:Il,Path:gt,Point:rt,Polygon:br,Polyline:Ge,RadialGradient:Ov,Rect:pt,Ring:Jo,Sector:wr,Text:dt,applyTransform:tr,clipPointsByRect:Gv,clipRectByRect:HS,createIcon:ya,extendPath:FS,extendShape:VS,getShapeClass:zv,getTransform:gn,groupTransition:Su,initProps:oe,isElementRemoved:go,lineLineIntersect:WS,linePolygonIntersect:H2,makeImage:Vv,makePath:mu,mergePath:Be,registerShape:He,removeElement:Po,removeElementWithFadeOut:Rl,resizePath:Fv,setTooltipConfig:bi,subPixelOptimize:F2,subPixelOptimizeLine:Ro,subPixelOptimizeRect:V2,transformDirection:_u,traverseElements:xu,updateProps:It},Symbol.toStringTag,{value:"Module"}));var wu={};function $2(r,e){for(var t=0;t<Fe.length;t++){var n=Fe[t],i=e[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:e.normal}),r.useStates(o,!0)}function mg(r,e,t){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=e.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),t!=null?{interpolatedValue:t}:null)),s==null&&(s=K(r.defaultText)?r.defaultText(i,r,t):r.defaultText);for(var l={normal:s},u=0;u<Fe.length;u++){var f=Fe[u],h=e[f];l[f]=j(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return l}function $r(r,e,t,n){t=t||wu;for(var i=r instanceof dt,a=!1,o=0;o<Pl.length;o++){var s=e[Pl[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?r:r.getTextContent();if(a){i||(l||(l=new dt,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=mg(t,e),f=e.normal,h=!!f.getShallow("show"),v=Et(f,n&&n.normal,t,!1,!i);v.text=u.normal,i||r.setTextConfig(_g(f,t,!1));for(var o=0;o<Fe.length;o++){var c=Fe[o],s=e[c];if(s){var p=l.ensureState(c),d=!!j(s.getShallow("show"),h);if(d!==h&&(p.ignore=!d),p.style=Et(s,n&&n[c],t,!0,!i),p.style.text=u[c],!i){var g=r.ensureState(c);g.textConfig=_g(s,t,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!h,l.useStyle(v),l.dirty(),t.enableTextSetter&&(bu(l).setLabelText=function(y){var m=mg(t,e,y);$2(l,m)})}else l&&(l.ignore=!0);r.dirty()}function Yr(r,e){e=e||"label";for(var t={normal:r.getModel(e)},n=0;n<Fe.length;n++){var i=Fe[n];t[i]=r.getModel([i,e])}return t}function Et(r,e,t,n,i){var a={};return Y2(a,r,t,n,i),e&&O(a,e),a}function _g(r,e,t){e=e||{};var n={},i,a=r.getShallow("rotate"),o=j(r.getShallow("distance"),t?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(t?null:"inside"),i==="outside"&&(i=e.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=r.get("color")==="inherit"?e.inheritColor||null:"auto",n}function Y2(r,e,t,n,i){t=t||wu;var a=e.ecModel,o=a&&a.option.textStyle,s=U2(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var f=e.getModel(["rich",u]);bg(l[u]={},f,o,t,n,i,!1,!0)}}l&&(r.rich=l);var h=e.get("overflow");h&&(r.overflow=h);var v=e.get("minMargin");v!=null&&(r.margin=v),bg(r,e,o,t,n,i,!0,!1)}function U2(r){for(var e;r&&r!==r.ecModel;){var t=(r.option||wu).rich;if(t){e=e||{};for(var n=at(t),i=0;i<n.length;i++){var a=n[i];e[a]=1}}r=r.parentModel}return e}var Sg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],xg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],wg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function bg(r,e,t,n,i,a,o,s){t=!i&&t||wu;var l=n&&n.inheritColor,u=e.getShallow("color"),f=e.getShallow("textBorderColor"),h=j(e.getShallow("opacity"),t.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),a||(u=u||t.color,f=f||t.textBorderColor),u!=null&&(r.fill=u),f!=null&&(r.stroke=f);var v=j(e.getShallow("textBorderWidth"),t.textBorderWidth);v!=null&&(r.lineWidth=v);var c=j(e.getShallow("textBorderType"),t.textBorderType);c!=null&&(r.lineDash=c);var p=j(e.getShallow("textBorderDashOffset"),t.textBorderDashOffset);p!=null&&(r.lineDashOffset=p),!i&&h==null&&!s&&(h=n&&n.defaultOpacity),h!=null&&(r.opacity=h),!i&&!a&&r.fill==null&&n.inheritColor&&(r.fill=n.inheritColor);for(var d=0;d<Sg.length;d++){var g=Sg[d],y=j(e.getShallow(g),t[g]);y!=null&&(r[g]=y)}for(var d=0;d<xg.length;d++){var g=xg[d],y=e.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=e.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!n.disableBox){for(var d=0;d<wg.length;d++){var g=wg[d],y=e.getShallow(g);y!=null&&(r[g]=y)}var _=e.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&l&&(r.backgroundColor=l),(r.borderColor==="auto"||r.borderColor==="inherit")&&l&&(r.borderColor=l)}}function $S(r,e){var t=e&&e.getModel("textStyle");return ze([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 bu=St();function X2(r,e,t,n){if(r){var i=bu(r);i.prevValue=i.value,i.value=t;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=e)}}var Z2=["textStyle","color"],Rf=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ef=new dt,q2=function(){function r(){}return r.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow("color")||(!e&&t?t.get(Z2):null)},r.prototype.getFont=function(){return $S({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")},n=0;n<Rf.length;n++)t[Rf[n]]=this.getShallow(Rf[n]);return Ef.useStyle(t),Ef.update(),Ef.getBoundingRect()},r}();const K2=q2;var YS=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],j2=aa(YS),J2=function(){function r(){}return r.prototype.getLineStyle=function(e){return j2(this,e)},r}(),US=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Q2=aa(US),tL=function(){function r(){}return r.prototype.getItemStyle=function(e,t){return Q2(this,e,t)},r}(),Ti=function(){function r(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return r.prototype.init=function(e,t,n){},r.prototype.mergeOption=function(e,t){Q(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 n=this.option,i=n==null?n:n[e];if(i==null&&!t){var a=this.parentModel;a&&(i=a.getShallow(e))}return i},r.prototype.getModel=function(e,t){var n=e!=null,i=n?this.parsePath(e):null,a=n?this._doGet(i):this.option;return t=t||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,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(Z(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(!ft.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 n=this.option;if(!e)return n;for(var i=0;i<e.length&&!(e[i]&&(n=n&&typeof n=="object"?n[e[i]]:null,n==null));i++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},r}();Av(Ti);ZM(Ti);$t(Ti,J2);$t(Ti,tL);$t(Ti,QM);$t(Ti,K2);const Tt=Ti;var eL=Math.round(Math.random()*10);function _a(r){return[r||"",eL++].join("_")}function rL(r){var e={};r.registerSubTypeDefaulter=function(t,n){var i=mr(t);e[i.main]=n},r.determineSubType=function(t,n){var i=n.type;if(!i){var a=mr(t).main;r.hasSubTypes(t)&&e[a]&&(i=e[a](n))}return i}}function nL(r,e){r.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=t(o),f=u.graph,h=u.noEntryList,v={};for(T(a,function(m){v[m]=!0});h.length;){var c=h.pop(),p=f[c],d=!!v[c];d&&(s.call(l,c,p.originalDeps.slice()),delete v[c]),T(p.successor,d?y:g)}T(v,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){v[m]=!0,g(m)}};function t(a){var o={},s=[];return T(a,function(l){var u=n(o,l),f=u.originalDeps=e(l),h=i(f,a);u.entryCount=h.length,u.entryCount===0&&s.push(l),T(h,function(v){st(u.predecessor,v)<0&&u.predecessor.push(v);var c=n(o,v);st(c.successor,v)<0&&c.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return T(a,function(l){st(o,l)>=0&&s.push(l)}),s}}function An(r,e){return Q(Q({},r,!0),e,!0)}const iL={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:". "}}}},aL={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Ol="ZH",Hv="EN",ea=Hv,ll={},Wv={},XS=ft.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ea).toUpperCase();return r.indexOf(Ol)>-1?Ol:ea}():ea;function $v(r,e){r=r.toUpperCase(),Wv[r]=new Tt(e),ll[r]=e}function oL(r){if(G(r)){var e=ll[r.toUpperCase()]||{};return r===Ol||r===Hv?Z(e):Q(Z(e),Z(ll[ea]),!1)}else return Q(Z(r),Z(ll[ea]),!1)}function pc(r){return Wv[r]}function sL(){return Wv[ea]}$v(Hv,iL);$v(Ol,aL);var Yv=1e3,Uv=Yv*60,yo=Uv*60,Ne=yo*24,Tg=Ne*365,ro={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Ts="{yyyy}-{MM}-{dd}",Cg={year:"{yyyy}",month:"{yyyy}-{MM}",day:Ts,hour:Ts+" "+ro.hour,minute:Ts+" "+ro.minute,second:Ts+" "+ro.second,millisecond:ro.none},kf=["year","month","day","hour","minute","second","millisecond"],ZS=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function re(r,e){return r+="","0000".substr(0,e-r.length)+r}function ra(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 lL(r){return r===ra(r)}function uL(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ts(r,e,t,n){var i=be(r),a=i[Xv(t)](),o=i[na(t)]()+1,s=Math.floor((o-1)/3)+1,l=i[Tu(t)](),u=i["get"+(t?"UTC":"")+"Day"](),f=i[Eo(t)](),h=(f-1)%12+1,v=i[Cu(t)](),c=i[Au(t)](),p=i[Mu(t)](),d=f>=12?"pm":"am",g=d.toUpperCase(),y=n instanceof Tt?n:pc(n||XS)||sL(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),w=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,d+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,re(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,re(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,re(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,re(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,re(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,re(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,re(c,2)).replace(/{s}/g,c+"").replace(/{SSS}/g,re(p,3)).replace(/{S}/g,p+"")}function fL(r,e,t,n,i){var a=null;if(G(t))a=t;else if(K(t))a=t(r.value,e,{level:r.level});else{var o=O({},ro);if(r.level>0)for(var s=0;s<kf.length;++s)o[kf[s]]="{primary|"+o[kf[s]]+"}";var l=t?t.inherit===!1?t:q(t,o):o,u=qS(r.value,i);if(l[u])a=l[u];else if(l.inherit){for(var f=ZS.indexOf(u),s=f-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(z(a)){var h=r.level==null?0:r.level>=0?r.level:a.length+r.level;h=Math.min(h,a.length-1),a=a[h]}}return ts(new Date(r.value),a,i,n)}function qS(r,e){var t=be(r),n=t[na(e)]()+1,i=t[Tu(e)](),a=t[Eo(e)](),o=t[Cu(e)](),s=t[Au(e)](),l=t[Mu(e)](),u=l===0,f=u&&s===0,h=f&&o===0,v=h&&a===0,c=v&&i===1,p=c&&n===1;return p?"year":c?"month":v?"day":h?"hour":f?"minute":u?"second":"millisecond"}function Ag(r,e,t){var n=_t(r)?be(r):r;switch(e=e||qS(r,t),e){case"year":return n[Xv(t)]();case"half-year":return n[na(t)]()>=6?1:0;case"quarter":return Math.floor((n[na(t)]()+1)/4);case"month":return n[na(t)]();case"day":return n[Tu(t)]();case"half-day":return n[Eo(t)]()/24;case"hour":return n[Eo(t)]();case"minute":return n[Cu(t)]();case"second":return n[Au(t)]();case"millisecond":return n[Mu(t)]()}}function Xv(r){return r?"getUTCFullYear":"getFullYear"}function na(r){return r?"getUTCMonth":"getMonth"}function Tu(r){return r?"getUTCDate":"getDate"}function Eo(r){return r?"getUTCHours":"getHours"}function Cu(r){return r?"getUTCMinutes":"getMinutes"}function Au(r){return r?"getUTCSeconds":"getSeconds"}function Mu(r){return r?"getUTCMilliseconds":"getMilliseconds"}function hL(r){return r?"setUTCFullYear":"setFullYear"}function KS(r){return r?"setUTCMonth":"setMonth"}function jS(r){return r?"setUTCDate":"setDate"}function JS(r){return r?"setUTCHours":"setHours"}function QS(r){return r?"setUTCMinutes":"setMinutes"}function tx(r){return r?"setUTCSeconds":"setSeconds"}function ex(r){return r?"setUTCMilliseconds":"setMilliseconds"}function cL(r,e,t,n,i,a,o,s){var l=new dt({style:{text:r,font:e,align:t,verticalAlign:n,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function Zv(r){if(!bv(r))return G(r)?r:"-";var e=(r+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function qv(r,e){return r=(r||"").toLowerCase().replace(/-(.)/g,function(t,n){return n.toUpperCase()}),e&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Sa=fv;function dc(r,e,t){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&ze(f)?f:"-"}function a(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=e==="time",s=r instanceof Date;if(o||s){var l=o?be(r):r;if(isNaN(+l)){if(s)return"-"}else return ts(l,n,t)}if(e==="ordinal")return yl(r)?i(r):_t(r)&&a(r)?r+"":"-";var u=Mo(r);return a(u)?Zv(u):yl(r)?i(r):typeof r=="boolean"?r+"":"-"}var Mg=["a","b","c","d","e","f","g"],Of=function(r,e){return"{"+r+(e==null?"":e)+"}"};function Kv(r,e,t){z(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=Mg[a];r=r.replace(Of(o),Of(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];r=r.replace(Of(Mg[l],s),t?Ht(u):u)}return r}function vL(r,e,t){return T(e,function(n,i){r=r.replace("{"+i+"}",t?Ht(n):n)}),r}function rx(r,e){var t=G(r)?{color:r,extraCssText:e}:r||{},n=t.color,i=t.type;e=t.extraCssText;var a=t.renderMode||"html";if(!n)return"";if(a==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ht(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ht(n)+";"+(e||"")+'"></span>';var o=t.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function pL(r,e,t){(r==="week"||r==="month"||r==="quarter"||r==="half-year"||r==="year")&&(r="MM-dd\nyyyy");var n=be(e),i=t?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),f=n[i+"Seconds"](),h=n[i+"Milliseconds"]();return r=r.replace("MM",re(o,2)).replace("M",o).replace("yyyy",a).replace("yy",re(a%100+"",2)).replace("dd",re(s,2)).replace("d",s).replace("hh",re(l,2)).replace("h",l).replace("mm",re(u,2)).replace("m",u).replace("ss",re(f,2)).replace("s",f).replace("SSS",re(h,3)),r}function dL(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function _i(r,e){return e=e||"transparent",G(r)?r:U(r)&&r.colorStops&&(r.colorStops[0]||{}).color||e}function Dg(r,e){if(e==="_blank"||e==="blank"){var t=window.open();t.opener=null,t.location.href=r}else window.open(r,e)}var ul=T,nx=["left","right","top","bottom","width","height"],ai=[["width","left","right"],["height","top","bottom"]];function jv(r,e,t,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var f=l.getBoundingRect(),h=e.childAt(u+1),v=h&&h.getBoundingRect(),c,p;if(r==="horizontal"){var d=f.width+(v?-v.x+f.x:0);c=a+d,c>n||l.newline?(a=0,c=d,o+=s+t,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(v?-v.y+f.y:0);p=o+g,p>i||l.newline?(a+=s+t,o=0,p=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),r==="horizontal"?a=c+t:o=p+t)})}var ci=jv;ht(jv,"vertical");ht(jv,"horizontal");function ue(r,e,t){t=Sa(t||0);var n=e.width,i=e.height,a=et(r.left,n),o=et(r.top,i),s=et(r.right,n),l=et(r.bottom,i),u=et(r.width,n),f=et(r.height,i),h=t[2]+t[0],v=t[1]+t[3],c=r.aspect;switch(isNaN(u)&&(u=n-s-v-a),isNaN(f)&&(f=i-l-h-o),c!=null&&(isNaN(u)&&isNaN(f)&&(c>n/i?u=n*.8:f=i*.8),isNaN(u)&&(u=c*f),isNaN(f)&&(f=u/c)),isNaN(a)&&(a=n-s-u-v),isNaN(o)&&(o=i-l-f-h),r.left||r.right){case"center":a=n/2-u/2-t[3];break;case"right":a=n-u-v;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-t[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(u)&&(u=n-v-a-(s||0)),isNaN(f)&&(f=i-h-o-(l||0));var p=new ct(a+t[3],o+t[0],u,f);return p.margin=t,p}function Jv(r,e,t,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||r,a.x=r.x,a.y=r.y,!o&&!s)return!1;var u;if(l==="raw")u=r.type==="group"?new ct(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 h=ue(q({width:u.width,height:u.height},e),t,n),v=o?h.x-u.x:0,c=s?h.y-u.y:0;return l==="raw"?(a.x=v,a.y=c):(a.x+=v,a.y+=c),a===r&&r.markRedraw(),!0}function gL(r,e){return r[ai[e][0]]!=null||r[ai[e][1]]!=null&&r[ai[e][2]]!=null}function ko(r){var e=r.layoutMode||r.constructor.layoutMode;return U(e)?e:e?{type:e}:null}function xn(r,e,t){var n=t&&t.ignoreSize;!z(n)&&(n=[n,n]);var i=o(ai[0],0),a=o(ai[1],1);u(ai[0],r,i),u(ai[1],r,a);function o(f,h){var v={},c=0,p={},d=0,g=2;if(ul(f,function(_){p[_]=r[_]}),ul(f,function(_){s(e,_)&&(v[_]=p[_]=e[_]),l(v,_)&&c++,l(p,_)&&d++}),n[h])return l(e,f[1])?p[f[2]]=null:l(e,f[2])&&(p[f[1]]=null),p;if(d===g||!c)return p;if(c>=g)return v;for(var y=0;y<f.length;y++){var m=f[y];if(!s(v,m)&&s(r,m)){v[m]=r[m];break}}return v}function s(f,h){return f.hasOwnProperty(h)}function l(f,h){return f[h]!=null&&f[h]!=="auto"}function u(f,h,v){ul(f,function(c){h[c]=v[c]})}}function xa(r){return ix({},r)}function ix(r,e){return e&&r&&ul(nx,function(t){e.hasOwnProperty(t)&&(r[t]=e[t])}),r}var yL=St(),wa=function(r){E(e,r);function e(t,n,i){var a=r.call(this,t,n,i)||this;return a.uid=_a("ec_cpt_model"),a}return e.prototype.init=function(t,n,i){this.mergeDefaultAndTheme(t,i)},e.prototype.mergeDefaultAndTheme=function(t,n){var i=ko(this),a=i?xa(t):{},o=n.getTheme();Q(t,o.get(this.mainType)),Q(t,this.getDefaultOption()),i&&xn(t,a,i)},e.prototype.mergeOption=function(t,n){Q(this.option,t,!0);var i=ko(this);i&&xn(this.option,t,i)},e.prototype.optionUpdated=function(t,n){},e.prototype.getDefaultOption=function(){var t=this.constructor;if(!YM(t))return t.defaultOption;var n=yL(this);if(!n.defaultOption){for(var i=[],a=t;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Q(s,i[l],!0);n.defaultOption=s}return n.defaultOption},e.prototype.getReferringComponents=function(t,n){var i=t+"Index",a=t+"Id";return jo(this.ecModel,t,{index:this.get(i,!0),id:this.get(a,!0)},n)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},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}(Tt);j1(wa,Tt);uu(wa);rL(wa);nL(wa,mL);function mL(r){var e=[];return T(wa.getClassesByMainType(r),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=V(e,function(t){return mr(t).main}),r!=="dataset"&&st(e,"dataset")<=0&&e.unshift("dataset"),e}const ut=wa;var ax="";typeof navigator<"u"&&(ax=navigator.platform||"");var Oi="rgba(0, 0, 0, 0.2)";const _L={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Oi,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Oi,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Oi,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Oi,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Oi,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Oi,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ax.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 ox=$(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),We="original",_e="arrayRows",nr="objectRows",Tr="keyedColumns",yn="typedArray",sx="unknown",Or="column",ba="row",Ft={Must:1,Might:2,Not:3},lx=St();function SL(r){lx(r).datasetMap=$()}function xL(r,e,t){var n={},i=Qv(e);if(!i||!r)return n;var a=[],o=[],s=e.ecModel,l=lx(s).datasetMap,u=i.uid+"_"+t.seriesLayoutBy,f,h;r=r.slice(),T(r,function(d,g){var y=U(d)?d:r[g]={name:d};y.type==="ordinal"&&f==null&&(f=g,h=p(y)),n[y.name]=[]});var v=l.get(u)||l.set(u,{categoryWayDim:h,valueWayDim:0});T(r,function(d,g){var y=d.name,m=p(d);if(f==null){var _=v.valueWayDim;c(n[y],_,m),c(o,_,m),v.valueWayDim+=m}else if(f===g)c(n[y],0,m),c(a,0,m);else{var _=v.categoryWayDim;c(n[y],_,m),c(o,_,m),v.categoryWayDim+=m}});function c(d,g,y){for(var m=0;m<y;m++)d.push(g+m)}function p(d){var g=d.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function ux(r,e,t){var n={},i=Qv(r);if(!i)return n;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===nr||a===Tr)&&T(o,function(f,h){(U(f)?f.name:f)==="name"&&(s=h)});var l=function(){for(var f={},h={},v=[],c=0,p=Math.min(5,t);c<p;c++){var d=hx(e.data,a,e.seriesLayoutBy,o,e.startIndex,c);v.push(d);var g=d===Ft.Not;if(g&&f.v==null&&c!==s&&(f.v=c),(f.n==null||f.n===f.v||!g&&v[f.n]===Ft.Not)&&(f.n=c),y(f)&&v[f.n]!==Ft.Not)return f;g||(d===Ft.Might&&h.v==null&&c!==s&&(h.v=c),(h.n==null||h.n===h.v)&&(h.n=c))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null}();if(l){n.value=[l.v];var u=s!=null?s:l.n;n.itemName=[u],n.seriesName=[u]}return n}function Qv(r){var e=r.get("data",!0);if(!e)return jo(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ot).models[0]}function wL(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:jo(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ot).models}function fx(r,e){return hx(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,e)}function hx(r,e,t,n,i,a){var o,s=5;if(se(r))return Ft.Not;var l,u;if(n){var f=n[a];U(f)?(l=f.name,u=f.type):G(f)&&(l=f)}if(u!=null)return u==="ordinal"?Ft.Must:Ft.Not;if(e===_e){var h=r;if(t===ba){for(var v=h[a],c=0;c<(v||[]).length&&c<s;c++)if((o=S(v[i+c]))!=null)return o}else for(var c=0;c<h.length&&c<s;c++){var p=h[i+c];if(p&&(o=S(p[a]))!=null)return o}}else if(e===nr){var d=r;if(!l)return Ft.Not;for(var c=0;c<d.length&&c<s;c++){var g=d[c];if(g&&(o=S(g[l]))!=null)return o}}else if(e===Tr){var y=r;if(!l)return Ft.Not;var v=y[l];if(!v||se(v))return Ft.Not;for(var c=0;c<v.length&&c<s;c++)if((o=S(v[c]))!=null)return o}else if(e===We)for(var m=r,c=0;c<m.length&&c<s;c++){var g=m[c],_=ga(g);if(!z(_))return Ft.Not;if((o=S(_[a]))!=null)return o}function S(w){var x=G(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return x?Ft.Might:Ft.Not;if(x&&w!=="-")return Ft.Must}return Ft.Not}var gc=$();function bL(r,e){le(gc.get(r)==null&&e),gc.set(r,e)}function TL(r,e,t){var n=gc.get(e);if(!n)return t;var i=n(r);return i?t.concat(i):t}var Lg=St(),CL=St(),tp=function(){function r(){}return r.prototype.getColorFromPalette=function(e,t,n){var i=Ct(this.get("color",!0)),a=this.get("colorLayer",!0);return cx(this,Lg,i,a,e,t,n)},r.prototype.clearColorPalette=function(){ML(this,Lg)},r}();function Pg(r,e,t,n){var i=Ct(r.get(["aria","decal","decals"]));return cx(r,CL,i,null,e,t,n)}function AL(r,e){for(var t=r.length,n=0;n<t;n++)if(r[n].length>e)return r[n];return r[t-1]}function cx(r,e,t,n,i,a,o){a=a||r;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var f=o==null||!n?t:AL(n,o);if(f=f||t,!(!f||!f.length)){var h=f[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%f.length,h}}function ML(r,e){e(r).paletteIdx=0,e(r).paletteNameMap={}}var Cs,ka,Ig,Rg="\0_ec_inner",DL=1,vx=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Tt(a),this._locale=new Tt(o),this._optionManager=s},e.prototype.setOption=function(t,n,i){var a=Og(n);this._optionManager.setOption(t,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(t,n){return this._resetOption(t,Og(n))},e.prototype._resetOption=function(t,n){var i=!1,a=this._optionManager;if(!t||t==="recreate"){var o=a.mountOption(t==="recreate");!this.option||t==="recreate"?Ig(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((t==="timeline"||t==="media")&&this.restoreData(),!t||t==="recreate"||t==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!t||t==="recreate"||t==="media"){var l=a.getMediaOption(this);l.length&&T(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=$(),u=n&&n.replaceMergeMainTypeMap;SL(this),T(t,function(h,v){h!=null&&(ut.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?Z(h):Q(i[v],h,!0))}),u&&u.each(function(h,v){ut.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),ut.topologicalTravel(s,ut.getAllClassMainTypes(),f,this);function f(h){var v=TL(this,h,Ct(t[h])),c=a.get(h),p=c?u&&u.get(h)?"replaceMerge":"normalMerge":"replaceAll",d=X1(c,v,p);OM(d,h,ut),i[h]=null,a.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;T(d,function(S,w){var x=S.existing,b=S.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var C=h==="series",A=ut.getClass(h,S.keyInfo.subType,!C);if(!A)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===A)x.name=S.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var M=O({componentIndex:w},S.keyInfo);x=new A(b,this,this,M),O(x,M),S.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),m++):(g.push(void 0),y.push(void 0))},this),i[h]=g,a.set(h,y),o.set(h,m),h==="series"&&Cs(this)}this._seriesIndices||Cs(this)},e.prototype.getOption=function(){var t=Z(this.option);return T(t,function(n,i){if(ut.hasClass(i)){for(var a=Ct(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Do(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,t[i]=a}}),delete t[Rg],t},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,n){var i=this._componentsMap.get(t);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(t){var n=t.mainType;if(!n)return[];var i=t.index,a=t.id,o=t.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],T(Ct(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=Eg("id",a,s):o!=null?l=Eg("name",o,s):l=xt(s,function(u){return!!u}),kg(l,t)},e.prototype.findComponents=function(t){var n=t.query,i=t.mainType,a=s(n),o=a?this.queryComponents(a):xt(this._componentsMap.get(i),function(u){return!!u});return l(kg(o,t));function s(u){var f=i+"Index",h=i+"Id",v=i+"Name";return u&&(u[f]!=null||u[h]!=null||u[v]!=null)?{mainType:i,index:u[f],id:u[h],name:u[v]}:null}function l(u){return t.filter?xt(u,t.filter):u}},e.prototype.eachComponent=function(t,n,i){var a=this._componentsMap;if(K(t)){var o=n,s=t;a.each(function(h,v){for(var c=0;h&&c<h.length;c++){var p=h[c];p&&s.call(o,v,p,p.componentIndex)}})}else for(var l=G(t)?a.get(t):U(t)?this.findComponents(t):null,u=0;l&&u<l.length;u++){var f=l[u];f&&n.call(i,f,f.componentIndex)}},e.prototype.getSeriesByName=function(t){var n=jt(t,null);return xt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return xt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===t})},e.prototype.getSeries=function(){return xt(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,n){ka(this),T(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];t.call(n,a,i)},this)},e.prototype.eachRawSeries=function(t,n){T(this._componentsMap.get("series"),function(i){i&&t.call(n,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(t,n,i){ka(this),T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===t&&n.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(t,n,i){return T(this.getSeriesByType(t),n,i)},e.prototype.isSeriesFiltered=function(t){return ka(this),this._seriesIndicesMap.get(t.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,n){ka(this);var i=[];T(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];t.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=$(i)},e.prototype.restoreData=function(t){Cs(this);var n=this._componentsMap,i=[];n.each(function(a,o){ut.hasClass(o)&&i.push(o)}),ut.topologicalTravel(i,ut.getAllClassMainTypes(),function(a){T(n.get(a),function(o){o&&(a!=="series"||!LL(o,t))&&o.restoreData()})})},e.internalField=function(){Cs=function(t){var n=t._seriesIndices=[];T(t._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),t._seriesIndicesMap=$(n)},ka=function(t){},Ig=function(t,n){t.option={},t.option[Rg]=DL,t._componentsMap=$({series:[]}),t._componentsCount=$();var i=n.aria;U(i)&&i.enabled==null&&(i.enabled=!0),PL(n,t._theme.option),Q(n,_L,!1),t._mergeOption(n,null)}}(),e}(Tt);function LL(r,e){if(e){var t=e.seriesIndex,n=e.seriesId,i=e.seriesName;return t!=null&&r.componentIndex!==t||n!=null&&r.id!==n||i!=null&&r.name!==i}}function PL(r,e){var t=r.color&&!r.colorLayer;T(e,function(n,i){i==="colorLayer"&&t||ut.hasClass(i)||(typeof n=="object"?r[i]=r[i]?Q(r[i],n,!1):Z(n):r[i]==null&&(r[i]=n))})}function Eg(r,e,t){if(z(e)){var n=$();return T(e,function(a){if(a!=null){var o=jt(a,null);o!=null&&n.set(a,!0)}}),xt(t,function(a){return a&&n.get(a[r])})}else{var i=jt(e,null);return xt(t,function(a){return a&&i!=null&&a[r]===i})}}function kg(r,e){return e.hasOwnProperty("subType")?xt(r,function(t){return t&&t.subType===e.subType}):r}function Og(r){var e=$();return r&&T(Ct(r.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}$t(vx,tp);const px=vx;var IL=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],RL=function(){function r(e){T(IL,function(t){this[t]=W(e[t],e)},this)}return r}();const dx=RL;var Bf={},EL=function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(e,t){var n=[];T(Bf,function(i,a){var o=i.create(e,t);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(e,t){T(this._coordinateSystems,function(n){n.update&&n.update(e,t)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(e,t){Bf[e]=t},r.get=function(e){return Bf[e]},r}();const Du=EL;var kL=/^(min|max)?(.+)$/,OL=function(){function r(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return r.prototype.setOption=function(e,t,n){e&&(T(Ct(e.series),function(o){o&&o.data&&se(o.data)&&ml(o.data)}),T(Ct(e.dataset),function(o){o&&o.source&&se(o.source)&&ml(o.source)})),e=Z(e);var i=this._optionBackup,a=BL(e,t,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},r.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],Z(e?t.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var i=e.getComponent("timeline");i&&(t=Z(n[i.getCurrentIndex()]))}return t},r.prototype.getMediaOption=function(e){var t=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)NL(i[l].query,t,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!VL(o,this._currentMediaIndices)&&(s=V(o,function(f){return Z(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},r}();function BL(r,e,t){var n=[],i,a,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,h=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&z(u)&&T(u,function(c){c&&c.option&&(c.query?n.push(c):i||(i=c))}),v(a),T(l,function(c){return v(c)}),T(n,function(c){return v(c.option)});function v(c){T(e,function(p){p(c,t)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function NL(r,e,t){var n={width:e,height:t,aspectratio:e/t},i=!0;return T(r,function(a,o){var s=o.match(kL);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();zL(n[u],a,l)||(i=!1)}}),i}function zL(r,e,t){return t==="min"?r>=e:t==="max"?r<=e:r===e}function VL(r,e){return r.join(",")===e.join(",")}const FL=OL;var Ue=T,Oo=U,Bg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Nf(r){var e=r&&r.itemStyle;if(e)for(var t=0,n=Bg.length;t<n;t++){var i=Bg[t],a=e.normal,o=e.emphasis;a&&a[i]&&(r[i]=r[i]||{},r[i].normal?Q(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(r[i]=r[i]||{},r[i].emphasis?Q(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function Kt(r,e,t){if(r&&r[e]&&(r[e].normal||r[e].emphasis)){var n=r[e].normal,i=r[e].emphasis;n&&(t?(r[e].normal=r[e].emphasis=null,q(r[e],n)):r[e]=n),i&&(r.emphasis=r.emphasis||{},r.emphasis[e]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function no(r){Kt(r,"itemStyle"),Kt(r,"lineStyle"),Kt(r,"areaStyle"),Kt(r,"label"),Kt(r,"labelLine"),Kt(r,"upperLabel"),Kt(r,"edgeLabel")}function Rt(r,e){var t=Oo(r)&&r[e],n=Oo(t)&&t.textStyle;if(n)for(var i=0,a=zd.length;i<a;i++){var o=zd[i];n.hasOwnProperty(o)&&(t[o]=n[o])}}function Pe(r){r&&(no(r),Rt(r,"label"),r.emphasis&&Rt(r.emphasis,"label"))}function GL(r){if(Oo(r)){Nf(r),no(r),Rt(r,"label"),Rt(r,"upperLabel"),Rt(r,"edgeLabel"),r.emphasis&&(Rt(r.emphasis,"label"),Rt(r.emphasis,"upperLabel"),Rt(r.emphasis,"edgeLabel"));var e=r.markPoint;e&&(Nf(e),Pe(e));var t=r.markLine;t&&(Nf(t),Pe(t));var n=r.markArea;n&&Pe(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!se(a))for(var o=0;o<a.length;o++)Pe(a[o]);T(r.categories,function(u){no(u)})}if(i&&!se(i))for(var o=0;o<i.length;o++)Pe(i[o]);if(e=r.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Pe(s[o]);if(t=r.markLine,t&&t.data)for(var l=t.data,o=0;o<l.length;o++)z(l[o])?(Pe(l[o][0]),Pe(l[o][1])):Pe(l[o]);r.type==="gauge"?(Rt(r,"axisLabel"),Rt(r,"title"),Rt(r,"detail")):r.type==="treemap"?(Kt(r.breadcrumb,"itemStyle"),T(r.levels,function(u){no(u)})):r.type==="tree"&&no(r.leaves)}}function Mr(r){return z(r)?r:r?[r]:[]}function Ng(r){return(z(r)?r[0]:r)||{}}function HL(r,e){Ue(Mr(r.series),function(n){Oo(n)&&GL(n)});var t=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&t.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ue(t,function(n){Ue(Mr(r[n]),function(i){i&&(Rt(i,"axisLabel"),Rt(i.axisPointer,"label"))})}),Ue(Mr(r.parallel),function(n){var i=n&&n.parallelAxisDefault;Rt(i,"axisLabel"),Rt(i&&i.axisPointer,"label")}),Ue(Mr(r.calendar),function(n){Kt(n,"itemStyle"),Rt(n,"dayLabel"),Rt(n,"monthLabel"),Rt(n,"yearLabel")}),Ue(Mr(r.radar),function(n){Rt(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Ue(Mr(r.geo),function(n){Oo(n)&&(Pe(n),Ue(Mr(n.regions),function(i){Pe(i)}))}),Ue(Mr(r.timeline),function(n){Pe(n),Kt(n,"label"),Kt(n,"itemStyle"),Kt(n,"controlStyle",!0);var i=n.data;z(i)&&T(i,function(a){U(a)&&(Kt(a,"label"),Kt(a,"itemStyle"))})}),Ue(Mr(r.toolbox),function(n){Kt(n,"iconStyle"),Ue(n.feature,function(i){Kt(i,"iconStyle")})}),Rt(Ng(r.axisPointer),"label"),Rt(Ng(r.tooltip).axisPointer,"label")}function WL(r,e){for(var t=e.split(","),n=r,i=0;i<t.length&&(n=n&&n[t[i]],n!=null);i++);return n}function $L(r,e,t,n){for(var i=e.split(","),a=r,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];(n||a[i[s]]==null)&&(a[i[s]]=t)}function zg(r){r&&T(YL,function(e){e[0]in r&&!(e[1]in r)&&(r[e[1]]=r[e[0]])})}var YL=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],UL=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],zf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Oa(r){var e=r&&r.itemStyle;if(e)for(var t=0;t<zf.length;t++){var n=zf[t][1],i=zf[t][0];e[n]!=null&&(e[i]=e[n])}}function Vg(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function Fg(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function XL(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function gx(r,e){if(r)for(var t=0;t<r.length;t++)e(r[t]),r[t]&&gx(r[t].children,e)}function yx(r,e){HL(r,e),r.series=Ct(r.series),T(r.series,function(t){if(U(t)){var n=t.type;if(n==="line")t.clipOverflow!=null&&(t.clip=t.clipOverflow);else if(n==="pie"||n==="gauge"){t.clockWise!=null&&(t.clockwise=t.clockWise),Vg(t.label);var i=t.data;if(i&&!se(i))for(var a=0;a<i.length;a++)Vg(i[a]);t.hoverOffset!=null&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if(n==="gauge"){var o=WL(t,"pointer.color");o!=null&&$L(t,"itemStyle.color",o)}else if(n==="bar"){Oa(t),Oa(t.backgroundStyle),Oa(t.emphasis);var i=t.data;if(i&&!se(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Oa(i[a]),Oa(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=t.highlightPolicy;s&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=s)),Fg(t),gx(t.data,Fg)}else n==="graph"||n==="sankey"?XL(t):n==="map"&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&q(t,t.mapLocation));t.hoverAnimation!=null&&(t.emphasis=t.emphasis||{},t.emphasis&&t.emphasis.scale==null&&(t.emphasis.scale=t.hoverAnimation)),zg(t)}}),r.dataRange&&(r.visualMap=r.dataRange),T(UL,function(t){var n=r[t];n&&(z(n)||(n=[n]),T(n,function(i){zg(i)}))})}function ZL(r){var e=$();r.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),a=t.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(qL)}function qL(r){T(r,function(e,t){var n=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,f,h){var v=o.get(e.stackedDimension,h);if(isNaN(v))return i;var c,p;s?p=o.getRawIndex(h):c=o.get(e.stackedByDimension,h);for(var d=NaN,g=t-1;g>=0;g--){var y=r[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,c)),p>=0){var m=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&v>=0&&m>0||l==="samesign"&&v<=0&&m<0){v=bM(v,m),d=m;break}}}return n[0]=v,n[1]=d,n})})}var Lu=function(){function r(e){this.data=e.data||(e.sourceFormat===Tr?{}:[]),this.sourceFormat=e.sourceFormat||sx,this.seriesLayoutBy=e.seriesLayoutBy||Or,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var i=t[n];i.type==null&&fx(this,n)===Ft.Must&&(i.type="ordinal")}}return r}();function ep(r){return r instanceof Lu}function yc(r,e,t){t=t||mx(r);var n=e.seriesLayoutBy,i=jL(r,t,n,e.sourceHeader,e.dimensions),a=new Lu({data:r,sourceFormat:t,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Z(e)});return a}function rp(r){return new Lu({data:r,sourceFormat:se(r)?yn:We})}function KL(r){return new Lu({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:Z(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function mx(r){var e=sx;if(se(r))e=yn;else if(z(r)){r.length===0&&(e=_e);for(var t=0,n=r.length;t<n;t++){var i=r[t];if(i!=null){if(z(i)||se(i)){e=_e;break}else if(U(i)){e=nr;break}}}}else if(U(r)){for(var a in r)if(tt(r,a)&&Qt(r[a])){e=Tr;break}}return e}function jL(r,e,t,n,i){var a,o;if(!r)return{dimensionsDefine:Gg(i),startIndex:o,dimensionsDetectedCount:a};if(e===_e){var s=r;n==="auto"||n==null?Hg(function(u){u!=null&&u!=="-"&&(G(u)?o==null&&(o=1):o=0)},t,s,10):o=_t(n)?n:n?1:0,!i&&o===1&&(i=[],Hg(function(u,f){i[f]=u!=null?u+"":""},t,s,1/0)),a=i?i.length:t===ba?s.length:s[0]?s[0].length:null}else if(e===nr)i||(i=JL(r));else if(e===Tr)i||(i=[],T(r,function(u,f){i.push(f)}));else if(e===We){var l=ga(r[0]);a=z(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Gg(i),dimensionsDetectedCount:a}}function JL(r){for(var e=0,t;e<r.length&&!(t=r[e++]););if(t)return at(t)}function Gg(r){if(r){var e=$();return V(r,function(t,n){t=U(t)?t:{name:t};var i={name:t.name,displayName:t.displayName,type:t.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function Hg(r,e,t,n){if(e===ba)for(var i=0;i<t.length&&i<n;i++)r(t[i]?t[i][0]:null,i);else for(var a=t[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function _x(r){var e=r.sourceFormat;return e===nr||e===Tr}var $n,Yn,Un,Wg,$g,Sx=function(){function r(e,t){var n=ep(e)?e:rp(e);this._source=n;var i=this._data=n.data;n.sourceFormat===yn&&(this._offset=0,this._dimSize=t,this._data=i),$g(this,i,n)}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;$g=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,h=l.startIndex,v=l.dimensionsDefine,c=Wg[np(u,f)];if(O(o,c),u===yn)o.getItem=t,o.count=i,o.fillStorage=n;else{var p=xx(u,f);o.getItem=W(p,null,s,h,v);var d=bx(u,f);o.count=W(d,null,s,h,v)}};var t=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,h=0;h<u;h++)s[h]=l[f+h];return s},n=function(o,s,l,u){for(var f=this._data,h=this._dimSize,v=0;v<h;v++){for(var c=u[v],p=c[0]==null?1/0:c[0],d=c[1]==null?-1/0:c[1],g=s-o,y=l[v],m=0;m<g;m++){var _=f[m*h+v];y[o+m]=_,_<p&&(p=_),_>d&&(d=_)}c[0]=p,c[1]=d}},i=function(){return this._data?this._data.length/this._dimSize:0};Wg=(e={},e[_e+"_"+Or]={pure:!0,appendData:a},e[_e+"_"+ba]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[nr]={pure:!0,appendData:a},e[Tr]={pure:!0,appendData:function(o){var s=this._data;T(o,function(l,u){for(var f=s[u]||(s[u]=[]),h=0;h<(l||[]).length;h++)f.push(l[h])})}},e[We]={appendData:a},e[yn]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),r}(),Yg=function(r,e,t,n){return r[n]},QL=($n={},$n[_e+"_"+Or]=function(r,e,t,n){return r[n+e]},$n[_e+"_"+ba]=function(r,e,t,n,i){n+=e;for(var a=i||[],o=r,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},$n[nr]=Yg,$n[Tr]=function(r,e,t,n,i){for(var a=i||[],o=0;o<t.length;o++){var s=t[o].name,l=r[s];a[o]=l?l[n]:null}return a},$n[We]=Yg,$n);function xx(r,e){var t=QL[np(r,e)];return t}var Ug=function(r,e,t){return r.length},tP=(Yn={},Yn[_e+"_"+Or]=function(r,e,t){return Math.max(0,r.length-e)},Yn[_e+"_"+ba]=function(r,e,t){var n=r[0];return n?Math.max(0,n.length-e):0},Yn[nr]=Ug,Yn[Tr]=function(r,e,t){var n=t[0].name,i=r[n];return i?i.length:0},Yn[We]=Ug,Yn);function bx(r,e){var t=tP[np(r,e)];return t}var Vf=function(r,e,t){return r[e]},eP=(Un={},Un[_e]=Vf,Un[nr]=function(r,e,t){return r[t]},Un[Tr]=Vf,Un[We]=function(r,e,t){var n=ga(r);return n instanceof Array?n[e]:n},Un[yn]=Vf,Un);function Tx(r){var e=eP[r];return e}function np(r,e){return r===_e?r+"_"+e:r}function ua(r,e,t){if(r){var n=r.getRawDataItem(e);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(t!=null){var o=r.getDimensionIndex(t),s=i.getDimensionProperty(o);return Tx(a)(n,o,s)}else{var l=n;return a===We&&(l=ga(n)),l}}}}var rP=/\{@(.+?)\}/g,Cx=function(){function r(){}return r.prototype.getDataParams=function(e,t){var n=this.getData(t),i=this.getRawValue(e,t),a=n.getRawIndex(e),o=n.getName(e),s=n.getRawDataItem(e),l=n.getItemVisual(e,"style"),u=l&&l[n.getItemVisual(e,"drawType")||"fill"],f=l&&l.stroke,h=this.mainType,v=h==="series",c=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:o,dataIndex:a,data:s,dataType:t,value:i,color:u,borderColor:f,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(e,t,n,i,a,o){t=t||"normal";var s=this.getData(n),l=this.getDataParams(e,n);if(o&&(l.value=o.interpolatedValue),i!=null&&z(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(t==="normal"?["label","formatter"]:[t,"label","formatter"])}if(K(a))return l.status=t,l.dimensionIndex=i,a(l);if(G(a)){var f=Kv(a,l);return f.replace(rP,function(h,v){var c=v.length,p=v;p.charAt(0)==="["&&p.charAt(c-1)==="]"&&(p=+p.slice(1,c-1));var d=ua(s,e,p);if(o&&z(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(d=o.interpolatedValue[g])}return d!=null?d+"":""})}},r.prototype.getRawValue=function(e,t){return ua(this.getData(t),e)},r.prototype.formatTooltip=function(e,t,n){},r}();function Xg(r){var e,t;return U(r)?r.type&&(t=r):e=r,{text:e,frag:t}}function mo(r){return new nP(r)}var nP=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,n=e&&e.skip;if(this._dirty&&t){var i=this.context;i.data=i.outputData=t.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=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)&&(a="reset");function f(m){return!(m>=1)&&(m=1),m}var h;(this._dirty||a==="reset")&&(this._dirty=!1,h=this._doReset(n)),this._modBy=l,this._modDataCount=u;var v=e&&e.step;if(t?this._dueEnd=t._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var c=this._dueIndex,p=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(h||c<p)){var d=this._progress;if(z(d))for(var g=0;g<d.length;g++)this._doProgress(d[g],c,p,l,u);else this._doProgress(d,c,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(e,t,n,i,a){Zg.reset(t,n,i,a),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Zg.next},this.context)},r.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var t,n;!e&&this._reset&&(t=this._reset(this.context),t&&t.progress&&(n=t.forceFirstProgress,t=t.progress),z(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},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}(),Zg=function(){var r,e,t,n,i,a={reset:function(l,u,f,h){e=l,r=u,t=f,n=h,i=Math.ceil(n/t),a.next=t>1&&n>0?s:o}};return a;function o(){return e<r?e++:null}function s(){var l=e%i*t+Math.ceil(e/i),u=e>=r?null:l<n?l:e;return e++,u}}();function fl(r,e){var t=e&&e.type;return t==="ordinal"?r:(t==="time"&&!_t(r)&&r!=null&&r!=="-"&&(r=+be(r)),r==null||r===""?NaN:Number(r))}$({number:function(r){return parseFloat(r)},time:function(r){return+be(r)},trim:function(r){return G(r)?ze(r):r}});var iP=function(){function r(e,t){var n=e==="desc";this._resultLT=n?1:-1,t==null&&(t=n?"min":"max"),this._incomparable=t==="min"?-1/0:1/0}return r.prototype.evaluate=function(e,t){var n=_t(e)?e:Mo(e),i=_t(t)?t:Mo(t),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=G(e),l=G(t);s&&(n=l?e:0),l&&(i=s?t:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r}(),aP=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 fl(e,t)},r}();function oP(r,e){var t=new aP,n=r.data,i=t.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==Or&&ge(o);var s=[],l={},u=r.dimensionsDefine;if(u)T(u,function(d,g){var y=d.name,m={index:g,name:y,displayName:d.displayName};if(s.push(m),y!=null){var _="";tt(l,y)&&ge(_),l[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=xx(i,Or);e.__isBuiltIn&&(t.getRawDataItem=function(d){return h(n,a,s,d)},t.getRawData=W(sP,null,r)),t.cloneRawData=W(lP,null,r);var v=bx(i,Or);t.count=W(v,null,n,a,s);var c=Tx(i);t.retrieveValue=function(d,g){var y=h(n,a,s,d);return p(y,g)};var p=t.retrieveValueFromItem=function(d,g){if(d!=null){var y=s[g];if(y)return c(d,g,y.name)}};return t.getDimensionInfo=W(uP,null,s,l),t.cloneAllDimensionInfo=W(fP,null,s),t}function sP(r){var e=r.sourceFormat;if(!ip(e)){var t="";ge(t)}return r.data}function lP(r){var e=r.sourceFormat,t=r.data;if(!ip(e)){var n="";ge(n)}if(e===_e){for(var i=[],a=0,o=t.length;a<o;a++)i.push(t[a].slice());return i}else if(e===nr){for(var i=[],a=0,o=t.length;a<o;a++)i.push(O({},t[a]));return i}}function uP(r,e,t){if(t!=null){if(_t(t)||!isNaN(t)&&!tt(e,t))return r[t];if(tt(e,t))return e[t]}}function fP(r){return Z(r)}var Ax=$();function hP(r){r=Z(r);var e=r.type,t="";e||ge(t);var n=e.split(":");n.length!==2&&ge(t);var i=!1;n[0]==="echarts"&&(e=n[1],i=!0),r.__isBuiltIn=i,Ax.set(e,r)}function cP(r,e,t){var n=Ct(r),i=n.length,a="";i||ge(a);for(var o=0,s=i;o<s;o++){var l=n[o];e=vP(l,e),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function vP(r,e,t,n){var i="";e.length||ge(i),U(r)||ge(i);var a=r.type,o=Ax.get(a);o||ge(i);var s=V(e,function(u){return oP(u,o)}),l=Ct(o.transform({upstream:s[0],upstreamList:s,config:Z(r.config)}));return V(l,function(u,f){var h="";U(u)||ge(h),u.data||ge(h);var v=mx(u.data);ip(v)||ge(h);var c,p=e[0];if(p&&f===0&&!u.dimensions){var d=p.startIndex;d&&(u.data=p.data.slice(0,d).concat(u.data)),c={seriesLayoutBy:Or,sourceHeader:d,dimensions:p.metaRawOption.dimensions}}else c={seriesLayoutBy:Or,sourceHeader:0,dimensions:u.dimensions};return yc(u.data,c,null)})}function ip(r){return r===_e||r===nr}var Pu="undefined",pP=typeof Uint32Array===Pu?Array:Uint32Array,dP=typeof Uint16Array===Pu?Array:Uint16Array,Mx=typeof Int32Array===Pu?Array:Int32Array,qg=typeof Float64Array===Pu?Array:Float64Array,Dx={float:qg,int:Mx,ordinal:Array,number:Array,time:qg},Ff;function Bi(r){return r>65535?pP:dP}function Ni(){return[1/0,-1/0]}function gP(r){var e=r.constructor;return e===Array?r.slice():new e(r)}function Kg(r,e,t,n,i){var a=Dx[t||"float"];if(i){var o=r[e],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];r[e]=l}}else r[e]=new a(n)}var yP=function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=$()}return r.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=Ff[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],_x(i),this._dimensions=V(t,function(o){return{type:o.type,property:o.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 n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(e);if(a!=null){if(i[a].type===t)return a}else a=i.length;return i[a]={type:t},n.set(e,a),this._chunks[a]=new Dx[t||"float"](this._rawCount),this._rawExtent[a]=Ni(),a},r.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[e]=Ni());for(var l=a[e],u=o;u<s;u++){var f=n[u]=t.parseAndCollect(n[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=t,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(e){var t=this._dimensions[e],n=t.ordinalMeta;return n},r.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},r.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var i=t.count();return t.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},r.prototype.appendValues=function(e,t){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,t||0),u=0;u<a;u++){var f=i[u];Kg(n,u,f.type,l,!0)}for(var h=[],v=s;v<l;v++)for(var c=v-s,p=0;p<a;p++){var f=i[p],d=Ff.arrayRows.call(this,e[c]||h,f.property,c,p);n[p][v]=d;var g=o[p];d<g[0]&&(g[0]=d),d>g[1]&&(g[1]=d)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=V(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];l[f]||(l[f]=Ni()),Kg(a,f,h.type,t,n)}if(i.fillStorage)i.fillStorage(e,t,a,l);else for(var v=[],c=e;c<t;c++){v=i.getItem(c,v);for(var p=0;p<s;p++){var d=a[p],g=this._dimValueGetter(v,u[p],c,p);d[c]=g;var y=l[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.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 n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},r.prototype.getValues=function(e,t){var n=[],i=[];if(t==null){t=e,e=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],t));return n},r.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},r.prototype.getSum=function(e){var t=this._chunks[e],n=0;if(t)for(var i=0,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(e){var t=[];this.each([e],function(a){isNaN(a)||t.push(a)});var n=t.sort(function(a,o){return a-o}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[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,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(t[o]<e)i=o+1;else if(t[o]>e)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks,a=i[e],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,h=this.count();f<h;f++){var v=this.getRawIndex(f),c=t-a[v],p=Math.abs(c);p<=n&&((p<s||p===s&&c>=0&&l<0)&&(s=p,l=c,u=0),c===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var a=0;a<i;a++)e[a]=t[a]}else e=new n(t.buffer,0,i)}else{var n=Bi(this._rawCount);e=new n(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},r.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=Bi(n._rawCount),o=new a(i),s=[],l=e.length,u=0,f=e[0],h=n._chunks,v=0;v<i;v++){var c=void 0,p=n.getRawIndex(v);if(l===0)c=t(v);else if(l===1){var d=h[f][p];c=t(d,v)}else{for(var g=0;g<l;g++)s[g]=h[e[g]][p];s[g]=v,c=t.apply(null,s)}c&&(o[u++]=p)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var i=at(e),a=i.length;if(!a)return this;var o=t.count(),s=Bi(t._rawCount),l=new s(o),u=0,f=i[0],h=e[f][0],v=e[f][1],c=t._chunks,p=!1;if(!t._indices){var d=0;if(a===1){for(var g=c[i[0]],y=0;y<n;y++){var m=g[y];(m>=h&&m<=v||isNaN(m))&&(l[u++]=d),d++}p=!0}else if(a===2){for(var g=c[i[0]],_=c[i[1]],S=e[i[1]][0],w=e[i[1]][1],y=0;y<n;y++){var m=g[y],x=_[y];(m>=h&&m<=v||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(l[u++]=d),d++}p=!0}}if(!p)if(a===1)for(var y=0;y<o;y++){var b=t.getRawIndex(y),m=c[i[0]][b];(m>=h&&m<=v||isNaN(m))&&(l[u++]=b)}else for(var y=0;y<o;y++){for(var C=!0,b=t.getRawIndex(y),A=0;A<a;A++){var M=i[A],m=c[M][b];(m<e[M][0]||m>e[M][1])&&(C=!1)}C&&(l[u++]=t.getRawIndex(y))}return u<o&&(t._indices=l),t._count=u,t._extent=[],t._updateGetRawIdx(),t},r.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},r.prototype.modify=function(e,t){this._updateDims(this,e,t)},r.prototype._updateDims=function(e,t,n){for(var i=e._chunks,a=[],o=t.length,s=e.count(),l=[],u=e._rawExtent,f=0;f<t.length;f++)u[t[f]]=Ni();for(var h=0;h<s;h++){for(var v=e.getRawIndex(h),c=0;c<o;c++)l[c]=i[t[c]][v];l[o]=h;var p=n&&n.apply(null,l);if(p!=null){typeof p!="object"&&(a[0]=p,p=a);for(var f=0;f<p.length;f++){var d=t[f],g=p[f],y=u[d],m=i[d];m&&(m[v]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(e,t){var n=this.clone([e],!0),i=n._chunks,a=i[e],o=this.count(),s=0,l=Math.floor(1/t),u=this.getRawIndex(0),f,h,v,c=new(Bi(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));c[s++]=u;for(var p=1;p<o-1;p+=l){for(var d=Math.min(p+l,o-1),g=Math.min(p+l*2,o),y=(g+d)/2,m=0,_=d;_<g;_++){var S=this.getRawIndex(_),w=a[S];isNaN(w)||(m+=w)}m/=g-d;var x=p,b=Math.min(p+l,o),C=p-1,A=a[u];f=-1,v=x;for(var M=-1,D=0,_=x;_<b;_++){var S=this.getRawIndex(_),w=a[S];if(isNaN(w)){D++,M<0&&(M=S);continue}h=Math.abs((C-y)*(w-A)-(C-_)*(m-A)),h>f&&(f=h,v=S)}D>0&&D<b-x&&(c[s++]=Math.min(M,v),v=Math.max(M,v)),c[s++]=v,u=v}return c[s++]=this.getRawIndex(o-1),n._count=s,n._indices=c,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),i=n._chunks,a=Math.floor(1/t),o=i[e],s=this.count(),l=new(Bi(this._rawCount))(Math.ceil(s/a)*2),u=0,f=0;f<s;f+=a){var h=f,v=o[this.getRawIndex(h)],c=f,p=o[this.getRawIndex(c)],d=a;f+a>s&&(d=s-f);for(var g=0;g<d;g++){var y=this.getRawIndex(f+g),m=o[y];m<v&&(v=m,h=f+g),m>p&&(p=m,c=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(c);h<c?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return n._count=u,n._indices=l,n._updateGetRawIdx(),n},r.prototype.downSample=function(e,t,n,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/t),u=o[e],f=this.count(),h=a._rawExtent[e]=Ni(),v=new(Bi(this._rawCount))(Math.ceil(f/l)),c=0,p=0;p<f;p+=l){l>f-p&&(l=f-p,s.length=l);for(var d=0;d<l;d++){var g=this.getRawIndex(p+d);s[d]=u[g]}var y=n(s),m=this.getRawIndex(Math.min(p+i(s,y)||0,f-1));u[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),v[c++]=m}return a._count=c,a._indices=v,a._updateGetRawIdx(),a},r.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:t(a);break;case 1:t(i[e[0]][s],a);break;case 2:t(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[e[l]][s];u[l]=a,t.apply(null,u)}}},r.prototype.getDataExtent=function(e){var t=this._chunks[e],n=Ni();if(!t)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var f=this.getRawIndex(u),h=t[f];h<s&&(s=h),h>l&&(l=h)}return o=[s,l],this._extent[e]=o,o},r.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][t]);return n},r.prototype.clone=function(e,t){var n=new r,i=this._chunks,a=e&&Ve(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?gP(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),t||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Z(this._extent),e._rawExtent=Z(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var i=0;i<n;i++)t[i]=this._indices[i]}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,n,i,a){return fl(t[a],this._dimensions[a])}Ff={arrayRows:e,objectRows:function(t,n,i,a){return fl(t[n],this._dimensions[a])},keyedColumns:e,original:function(t,n,i,a){var o=t&&(t.value==null?t:t.value);return fl(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(t,n,i,a){return t[a]}}}(),r}();const mc=yP;var mP=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(),n=!!t.length,i,a;if(As(e)){var o=e,s=void 0,l=void 0,u=void 0;if(n){var f=t[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),l=se(s)?yn:We,a=[];var h=this._getSourceMetaRawOption()||{},v=u&&u.metaRawOption||{},c=j(h.seriesLayoutBy,v.seriesLayoutBy)||null,p=j(h.sourceHeader,v.sourceHeader),d=j(h.dimensions,v.dimensions),g=c!==v.seriesLayoutBy||!!p!=!!v.sourceHeader||d;i=g?[yc(s,{seriesLayoutBy:c,sourceHeader:p,dimensions:d},l)]:[]}else{var y=e;if(n){var m=this._applyTransform(t);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[yc(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(e){var t=this._sourceHost,n=t.get("transform",!0),i=t.get("fromTransformResult",!0);if(i!=null){var a="";e.length!==1&&jg(a)}var o,s=[],l=[];return T(e,function(u){u.prepareSource();var f=u.getSource(i||0),h="";i!=null&&!f&&jg(h),s.push(f),l.push(u._getVersionSign())}),n?o=cP(n,s,{datasetIndex:t.componentIndex}):i!=null&&(o=[KL(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 n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},r.prototype.getSource=function(e){e=e||0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[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,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];As(this._sourceHost)&&l?s=l._innerGetDataStore(e,t,n):(s=new mc,s.initData(new Sx(t,e.length),e)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(As(e)){var t=Qv(e);return t?[t.getSourceManager()]:[]}else return V(wL(e),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,t,n,i;if(As(e))t=e.get("seriesLayoutBy",!0),n=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;t=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:t,sourceHeader:n,dimensions:i}},r}();function As(r){return r.mainType==="series"}function jg(r){throw new Error(r)}var _P="line-height:1";function Lx(r){var e=r.lineHeight;return e==null?_P:"line-height:"+Ht(e+"")+"px"}function Px(r,e){var t=r.color||"#6e7079",n=r.fontSize||12,i=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Ht(n+"")+"px;color:"+Ht(t)+";font-weight:"+Ht(i+""),valueStyle:"font-size:"+Ht(o+"")+"px;color:"+Ht(a)+";font-weight:"+Ht(s+"")}:{nameStyle:{fontSize:n,fill:t,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var SP=[0,10,20,30],xP=["","\n","\n\n","\n\n\n"];function xr(r,e){return e.type=r,e}function _c(r){return r.type==="section"}function Ix(r){return _c(r)?wP:bP}function Rx(r){if(_c(r)){var e=0,t=r.blocks.length,n=t>1||t>0&&!r.noHeader;return T(r.blocks,function(i){var a=Rx(i);a>=e&&(e=a+ +(n&&(!a||_c(i)&&!i.noHeader)))}),e}return 0}function wP(r,e,t,n){var i=e.noHeader,a=TP(Rx(e)),o=[],s=e.blocks||[];le(!s||z(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(tt(u,l)){var f=new iP(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}T(s,function(d,g){var y=e.valueFormatter,m=Ix(d)(y?O(O({},r),{valueFormatter:y}):r,d,g>0?a.html:0,n);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):Sc(n,o.join(""),i?t:a.html);if(i)return h;var v=dc(e.header,"ordinal",r.useUTC),c=Px(n,r.renderMode).nameStyle,p=Lx(n);return r.renderMode==="richText"?Ex(r,v,c)+a.richText+h:Sc(n,'<div style="'+c+";"+p+';">'+Ht(v)+"</div>"+h,t)}function bP(r,e,t,n){var i=r.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],V(S,function(w,x){return dc(w,z(c)?c[x]:c,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),v=a?"":dc(l,"ordinal",u),c=e.valueType,p=o?[]:f(e.value,e.dataIndex),d=!s||!a,g=!s&&a,y=Px(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":Ex(r,v,m))+(o?"":MP(r,p,d,g,_)):Sc(n,(s?"":h)+(a?"":CP(v,!s,m))+(o?"":AP(p,d,g,_)),t)}}function Jg(r,e,t,n,i,a){if(r){var o=Ix(r),s={useUTC:i,renderMode:t,orderMode:n,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function TP(r){return{html:SP[r],richText:xP[r]}}function Sc(r,e,t){var n='<div style="clear:both"></div>',i="margin: "+t+"px 0 0",a=Lx(r);return'<div style="'+i+";"+a+';">'+e+n+"</div>"}function CP(r,e,t){var n=e?"margin-left:2px":"";return'<span style="'+t+";"+n+'">'+Ht(r)+"</span>"}function AP(r,e,t,n){var i=t?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return r=z(r)?r:[r],'<span style="'+a+";"+n+'">'+V(r,function(o){return Ht(o)}).join("&nbsp;&nbsp;")+"</span>"}function Ex(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function MP(r,e,t,n,i){var a=[i],o=n?10:20;return t&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(e)?e.join(" "):e,a)}function kx(r,e){var t=r.getData().getItemVisual(e,"style"),n=t[r.visualDrawType];return _i(n)}function Ox(r,e){var t=r.get("padding");return t!=null?t:e==="richText"?[8,10]:10}var Gf=function(){function r(){this.richTextStyles={},this._nextStyleNameId=W1()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,n){var i=n==="richText"?this._generateStyleName():null,a=rx({color:t,type:e,renderMode:n,markerId:i});return G(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(e,t){var n={};z(t)?T(t,function(a){return O(n,a)}):O(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},r}();function DP(r){var e=r.series,t=r.dataIndex,n=r.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(t),l=z(s),u=kx(e,t),f,h,v,c;if(o>1||l&&!o){var p=LP(s,e,t,a,u);f=p.inlineValues,h=p.inlineValueTypes,v=p.blocks,c=p.inlineValues[0]}else if(o){var d=i.getDimensionInfo(a[0]);c=f=ua(i,t,a[0]),h=d.type}else c=f=l?s[0]:s;var g=Tv(e),y=g&&e.name||"",m=i.getName(t),_=n?y:m;return xr("section",{header:y,noHeader:n||!g,sortParam:c,blocks:[xr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!ze(_),value:f,valueType:h,dataIndex:t})].concat(v||[])})}function LP(r,e,t,n,i){var a=e.getData(),o=Ve(r,function(h,v,c){var p=a.getDimensionInfo(c);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?T(n,function(h){f(ua(a,t,h),h)}):T(r,f);function f(h,v){var c=a.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(xr("nameValue",{markerType:"subItem",markerColor:i,name:c.displayName,value:h,valueType:c.type})):(s.push(h),l.push(c.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Kr=St();function Ms(r,e){return r.getName(e)||r.getId(e)}var PP="__universalTransitionEnabled",Iu=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return e.prototype.init=function(t,n,i){this.seriesIndex=this.componentIndex,this.dataTask=mo({count:RP,reset:EP}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i);var a=Kr(this).sourceManager=new mP(this);a.prepareSource();var o=this.getInitialData(t,i);ty(o,this),this.dataTask.context.data=o,Kr(this).dataBeforeProcessed=o,Qg(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(t,n){var i=ko(this),a=i?xa(t):{},o=this.subType;ut.hasClass(o)&&(o+="Series"),Q(t,n.getTheme().get(this.subType)),Q(t,this.getDefaultOption()),Dl(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&xn(t,a,i)},e.prototype.mergeOption=function(t,n){t=Q(this.option,t,!0),this.fillDataTextStyle(t.data);var i=ko(this);i&&xn(this.option,t,i);var a=Kr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(t,n);ty(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Kr(this).dataBeforeProcessed=o,Qg(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(t){if(t&&!se(t))for(var n=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&Dl(t[i],"label",n)},e.prototype.getInitialData=function(t,n){},e.prototype.appendData=function(t){var n=this.getRawData();n.appendData(t.data)},e.prototype.getData=function(t){var n=xc(this);if(n){var i=n.context.data;return t==null||!i.getLinkedData?i:i.getLinkedData(t)}else return Kr(this).data},e.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},e.prototype.setData=function(t){var n=xc(this);if(n){var i=n.context;i.outputData=t,n!==this.dataTask&&(i.data=t)}Kr(this).data=t},e.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return $(t)},e.prototype.getSourceManager=function(){return Kr(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Kr(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.formatTooltip=function(t,n,i){return DP({series:this,dataIndex:t,multipleSeries:n})},e.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(ft.node&&!(t&&t.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,n,i){var a=this.ecModel,o=tp.prototype.getColorFromPalette.call(this,t,n,i);return o||(o=a.getColorFromPalette(t,n,i)),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,n){this._innerSelect(this.getData(n),t)},e.prototype.unselect=function(t,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<t.length;s++){var l=t[s],u=Ms(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(t,n){for(var i=[],a=0;a<t.length;a++)i[0]=t[a],this.isSelected(t[a],n)?this.unselect(i,n):this.select(i,n)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,n=at(t),i=[],a=0;a<n.length;a++){var o=t[n[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(t,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[Ms(a,t)])&&!a.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[PP])return!0;var t=this.option.universalTransition;return t?t===!0?!0:t&&t.enabled:!1},e.prototype._innerSelect=function(t,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){U(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var h=n[f],v=Ms(t,h);u[v]=!0,this._selectedDataIndicesMap[v]=t.getRawIndex(h)}}else if(s==="single"||s===!0){var c=n[l-1],v=Ms(t,c);o.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(a={},a[v]=t.getRawIndex(c),a)}}},e.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var n=[];t.hasItemOption&&t.each(function(i){var a=t.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(t,n)}},e.registerClass=function(t){return ut.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}(ut);$t(Iu,Cx);$t(Iu,tp);j1(Iu,ut);function Qg(r){var e=r.name;Tv(r)||(r.name=IP(r)||e)}function IP(r){var e=r.getRawData(),t=e.mapDimensionsAll("seriesName"),n=[];return T(t,function(i){var a=e.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function RP(r){return r.model.getRawData().count()}function EP(r){var e=r.model;return e.setData(e.getRawData().cloneShallow()),kP}function kP(r,e){e.outputData&&r.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ty(r,e){T(n1(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(t){r.wrapMethod(t,ht(OP,e))})}function OP(r,e){var t=xc(r);return t&&t.setOutputEnd((e||this).count()),e}function xc(r){var e=(r.ecModel||{}).scheduler,t=e&&e.getPipeline(r.uid);if(t){var n=t.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}const Te=Iu;var ap=function(){function r(){this.group=new it,this.uid=_a("viewComponent")}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,i){},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,i){},r.prototype.updateLayout=function(e,t,n,i){},r.prototype.updateVisual=function(e,t,n,i){},r.prototype.toggleBlurSeries=function(e,t,n){},r.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},r}();Av(ap);uu(ap);const At=ap;function op(){var r=St();return function(e){var t=r(e),n=e.pipelineContext,i=!!t.large,a=!!t.progressiveRender,o=t.large=!!(n&&n.large),s=t.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Bx=St(),BP=op(),sp=function(){function r(){this.group=new it,this.uid=_a("viewChart"),this.renderTask=mo({plan:NP,reset:zP}),this.renderTask.context={view:this}}return r.prototype.init=function(e,t){},r.prototype.render=function(e,t,n,i){},r.prototype.highlight=function(e,t,n,i){var a=e.getData(i&&i.dataType);a&&ry(a,i,"emphasis")},r.prototype.downplay=function(e,t,n,i){var a=e.getData(i&&i.dataType);a&&ry(a,i,"normal")},r.prototype.remove=function(e,t){this.group.removeAll()},r.prototype.dispose=function(e,t){},r.prototype.updateView=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.updateLayout=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.updateVisual=function(e,t,n,i){this.render(e,t,n,i)},r.prototype.eachRendered=function(e){xu(this.group,e)},r.markUpdateMethod=function(e,t){Bx(e).updateMethod=t},r.protoInitialize=function(){var e=r.prototype;e.type="chart"}(),r}();function ey(r,e,t){r&&fc(r)&&(e==="emphasis"?oa:sa)(r,t)}function ry(r,e,t){var n=mi(r,e),i=e&&e.highlightKey!=null?a2(e.highlightKey):null;n!=null?T(Ct(n),function(a){ey(r.getItemGraphicEl(a),t,i)}):r.eachItemGraphicEl(function(a){ey(a,t,i)})}Av(sp);uu(sp);function NP(r){return BP(r.model)}function zP(r){var e=r.model,t=r.ecModel,n=r.api,i=r.payload,a=e.pipelineContext.progressiveRender,o=r.view,s=i&&Bx(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,t,n,i),VP[l]}var VP={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)}}};const Jt=sp;var Bl="\0__throttleOriginMethod",ny="\0__throttleRate",iy="\0__throttleType";function Ru(r,e,t){var n,i=0,a=0,o=null,s,l,u,f;e=e||0;function h(){a=new Date().getTime(),o=null,r.apply(l,u||[])}var v=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];n=new Date().getTime(),l=this,u=c;var d=f||e,g=f||t;f=null,s=n-(g?i:a)-d,clearTimeout(o),g?o=setTimeout(h,d):s>=0?h():o=setTimeout(h,-s),i=n};return v.clear=function(){o&&(clearTimeout(o),o=null)},v.debounceNextCall=function(c){f=c},v}function es(r,e,t,n){var i=r[e];if(i){var a=i[Bl]||i,o=i[iy],s=i[ny];if(s!==t||o!==n){if(t==null||!n)return r[e]=a;i=r[e]=Ru(a,t,n==="debounce"),i[Bl]=a,i[iy]=n,i[ny]=t}return i}}function Bo(r,e){var t=r[e];t&&t[Bl]&&(t.clear&&t.clear(),r[e]=t[Bl])}var ay=St(),oy={itemStyle:aa(US,!0),lineStyle:aa(YS,!0)},FP={lineStyle:"stroke",itemStyle:"fill"};function Nx(r,e){var t=r.visualStyleMapper||oy[e];return t||(console.warn("Unknown style type '"+e+"'."),oy.itemStyle)}function zx(r,e){var t=r.visualDrawType||FP[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var GP={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=Nx(r,n),o=a(i),s=i.getShallow("decal");s&&(t.setVisual("decal",s),s.dirty=!0);var l=zx(r,n),u=o[l],f=K(u)?u:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||h){var v=r.getColorFromPalette(r.name,null,e.getSeriesCount());o[l]||(o[l]=v,t.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||K(o.fill)?v:o.fill,o.stroke=o.stroke==="auto"||K(o.stroke)?v:o.stroke}if(t.setVisual("style",o),t.setVisual("drawType",l),!e.isSeriesFiltered(r)&&f)return t.setVisual("colorFromPalette",!1),{dataEach:function(c,p){var d=r.getDataParams(p),g=O({},o);g[l]=f(d),c.setItemVisual(p,"style",g)}}}},Ba=new Tt,HP={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!(r.ignoreStyleOnData||e.isSeriesFiltered(r))){var t=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=Nx(r,n),a=t.getVisual("drawType");return{dataEach:t.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ba.option=l[n];var u=i(Ba),f=o.ensureUniqueItemVisual(s,"style");O(f,u),Ba.option.decal&&(o.setItemVisual(s,"decal",Ba.option.decal),Ba.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},WP={performRawSeries:!0,overallReset:function(r){var e=$();r.eachSeries(function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,a=e.get(i);a||(a={},e.set(i,a)),ay(t).scope=a}}),r.eachSeries(function(t){if(!(t.isColorBySeries()||r.isSeriesFiltered(t))){var n=t.getRawData(),i={},a=t.getData(),o=ay(t).scope,s=t.visualStyleAccessPath||"itemStyle",l=zx(t,s);a.each(function(u){var f=a.getRawIndex(u);i[f]=u}),n.each(function(u){var f=i[u],h=a.getItemVisual(f,"colorFromPalette");if(h){var v=a.ensureUniqueItemVisual(f,"style"),c=n.getName(u)||u+"",p=n.count();v[l]=t.getColorFromPalette(c,o,p)}})}})}},Ds=Math.PI;function $P(r,e){e=e||{},q(e,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new it,n=new pt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});t.add(n);var i=new dt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new pt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});t.add(a);var o;return e.showSpinner&&(o=new gu({shape:{startAngle:-Ds/2,endAngle:-Ds/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:Ds*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Ds*3/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var s=i.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}),a.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},t.resize(),t}var YP=function(){function r(e,t,n,i){this._stageTaskMap=$(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,a=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.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 n=this._pipelineMap.get(e.uid),i=e.getData(),a=i.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&a>=n.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=$();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),t._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;T(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";le(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,t,n),i.overallReset&&this._createOverallStageTask(i,a,t,n)},this)},r.prototype.prepareView=function(e,t,n,i){var a=e.renderTask,o=a.context;o.model=t,o.ecModel=n,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(t,a)},r.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},r.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},r.prototype._performStageTasks=function(e,t,n,i){i=i||{};var a=!1,o=this;T(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),h=f.seriesTaskMap,v=f.overallTask;if(v){var c,p=v.agentStubMap;p.each(function(g){s(i,g)&&(g.dirty(),c=!0)}),c&&v.dirty(),o.updatePayload(v,n);var d=o.getPerformArgs(v,i.block);p.each(function(g){g.perform(d)}),v.perform(d)&&(a=!0)}else h&&h.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!l.performRawSeries&&t.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(n){t=n.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,n,i){var a=this,o=t.seriesTaskMap,s=t.seriesTaskMap=$(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):u&&u(n,i).each(f);function f(h){var v=h.uid,c=s.set(v,o&&o.get(v)||mo({plan:KP,reset:jP,count:QP}));c.context={model:h,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(h,c)}},r.prototype._createOverallStageTask=function(e,t,n,i){var a=this,o=t.overallTask=t.overallTask||mo({reset:UP});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=$(),u=e.seriesType,f=e.getTargetSeries,h=!0,v=!1,c="";le(!e.createOnAllSeries,c),u?n.eachRawSeriesByType(u,p):f?f(n,i).each(p):(h=!1,T(n.getSeries(),p));function p(d){var g=d.uid,y=l.set(g,s&&s.get(g)||(v=!0,mo({reset:XP,onDirty:qP})));y.context={model:d,overallProgress:h},y.agent=o,y.__block=h,a._pipe(d,y)}v&&o.dirty()},r.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},r.wrapStageHandler=function(e,t){return K(e)&&(e={overallReset:e,seriesType:tI(e)}),e.uid=_a("stageHandler"),t&&(e.visualType=t),e},r}();function UP(r){r.overallReset(r.ecModel,r.api,r.payload)}function XP(r){return r.overallProgress&&ZP}function ZP(){this.agent.dirty(),this.getDownstream().dirty()}function qP(){this.agent&&this.agent.dirty()}function KP(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function jP(r){r.useClearVisual&&r.data.clearAllVisual();var e=r.resetDefines=Ct(r.reset(r.model,r.ecModel,r.api,r.payload));return e.length>1?V(e,function(t,n){return Vx(n)}):JP}var JP=Vx(0);function Vx(r){return function(e,t){var n=t.data,i=t.resetDefines[r];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(e,n)}}function QP(r){return r.data.count()}function tI(r){Nl=null;try{r(No,Fx)}catch(e){}return Nl}var No={},Fx={},Nl;Gx(No,px);Gx(Fx,dx);No.eachSeriesByType=No.eachRawSeriesByType=function(r){Nl=r};No.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Nl=r.subType)};function Gx(r,e){for(var t in e.prototype)r[t]=zt}const Hx=YP;var sy=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const eI={color:sy,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],sy]};var Zt="#B9B8CE",ly="#100C2A",Ls=function(){return{axisLine:{lineStyle:{color:Zt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},uy=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Wx={darkMode:!0,color:uy,backgroundColor:ly,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Zt},pageTextStyle:{color:Zt}},textStyle:{color:Zt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Zt}},dataZoom:{borderColor:"#71708A",textStyle:{color:Zt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:Zt}},timeline:{lineStyle:{color:Zt},label:{color:Zt},controlStyle:{color:Zt,borderColor:Zt}},calendar:{itemStyle:{color:ly},dayLabel:{color:Zt},monthLabel:{color:Zt},yearLabel:{color:Zt}},timeAxis:Ls(),logAxis:Ls(),valueAxis:Ls(),categoryAxis:Ls(),line:{symbol:"circle"},graph:{color:uy},gauge:{title:{color:Zt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Zt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Wx.categoryAxis.splitLine.show=!1;const rI=Wx;var nI=function(){function r(){}return r.prototype.normalizeQuery=function(e){var t={},n={},i={};if(G(e)){var a=mr(e);t.mainType=a.main||null,t.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};T(e,function(l,u){for(var f=!1,h=0;h<o.length;h++){var v=o[h],c=u.lastIndexOf(v);if(c>0&&c===u.length-v.length){var p=u.slice(0,c);p!=="data"&&(t.mainType=p,t[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(n[u]=l,f=!0),f||(i[u]=l)})}return{cptQuery:t,dataQuery:n,otherQuery:i}},r.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.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,a,"name")&&f(u,a,"dataIndex")&&f(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,t.otherQuery,i,a));function f(h,v,c,p){return h[c]==null||v[p||c]===h[c]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r}(),wc=["symbol","symbolSize","symbolRotate","symbolOffset"],fy=wc.concat(["symbolKeepAspect"]),iI={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 n={},i={},a=!1,o=0;o<wc.length;o++){var s=wc[o],l=r.get(s);K(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||r.defaultSymbol,t.setVisual(O({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),e.isSeriesFiltered(r))return;var u=at(i);function f(h,v){for(var c=r.getRawValue(v),p=r.getDataParams(v),d=0;d<u.length;d++){var g=u[d];h.setItemVisual(v,g,i[g](c,p))}}return{dataEach:a?f:null}}},aI={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,e){if(!r.hasSymbolVisual||e.isSeriesFiltered(r))return;var t=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<fy.length;s++){var l=fy[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:t.hasItemOption?n:null}}};function $x(r,e,t){switch(t){case"color":var n=r.getItemVisual(e,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(e,t)}}function Yx(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)}}function oI(r,e,t,n){switch(t){case"color":var i=r.ensureUniqueItemVisual(e,"style");i[r.getVisual("drawType")]=n,r.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(e,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(e,t,n);break}}function Ux(r,e){function t(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}T([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){e(n[0],function(i,a,o){i=O({},i),o.dispatchAction(O(i,{type:n[1],seriesIndex:t(a,i)}))})})}function zi(r,e,t,n,i){var a=r+e;t.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,f=0;f<u.length;f++)if(u[f].seriesIndex===s){var h=o.getData(),v=mi(h,i.fromActionPayload);t.trigger(a,{type:a,seriesId:o.id,name:z(v)?h.getName(v[0]):h.getName(v),selected:G(l)?l:O({},l)})}})}function sI(r,e,t){r.on("selectchanged",function(n){var i=t.getModel();n.isFromClick?(zi("map","selectchanged",e,i,n),zi("pie","selectchanged",e,i,n)):n.fromAction==="select"?(zi("map","selected",e,i,n),zi("pie","selected",e,i,n)):n.fromAction==="unselect"&&(zi("map","unselected",e,i,n),zi("pie","unselected",e,i,n))})}function oi(r,e,t){for(var n;r&&!(e(r)&&(n=r,t));)r=r.__hostTarget||r.parent;return n}var lI=Math.round(Math.random()*9),uI=typeof Object.defineProperty=="function",fI=function(){function r(){this._id="__ec_inner_"+lI++}return r.prototype.get=function(e){return this._guard(e)[this._id]},r.prototype.set=function(e,t){var n=this._guard(e);return uI?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[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}();const hI=fI;var cI=gt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,i=e.width/2,a=e.height/2;r.moveTo(t,n-a),r.lineTo(t+i,n+a),r.lineTo(t-i,n+a),r.closePath()}}),vI=gt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,e){var t=e.cx,n=e.cy,i=e.width/2,a=e.height/2;r.moveTo(t,n-a),r.lineTo(t+i,n),r.lineTo(t,n+a),r.lineTo(t-i,n),r.closePath()}}),pI=gt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.x,n=e.y,i=e.width/5*3,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,h=Math.sin(u),v=Math.cos(u),c=o*.6,p=o*.7;r.moveTo(t-f,l+s),r.arc(t,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(t+f-h*c,l+s+v*c,t,n-p,t,n),r.bezierCurveTo(t,n-p,t-f+h*c,l+s+v*c,t-f,l+s),r.closePath()}}),dI=gt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,e){var t=e.height,n=e.width,i=e.x,a=e.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+t),r.lineTo(i,a+t/4*3),r.lineTo(i-o,a+t),r.lineTo(i,a),r.closePath()}}),gI={line:ie,rect:pt,roundRect:pt,square:pt,circle:Wr,diamond:vI,pin:pI,arrow:dI,triangle:cI},yI={line:function(r,e,t,n,i){i.x1=r,i.y1=e+n/2,i.x2=r+t,i.y2=e+n/2},rect:function(r,e,t,n,i){i.x=r,i.y=e,i.width=t,i.height=n},roundRect:function(r,e,t,n,i){i.x=r,i.y=e,i.width=t,i.height=n,i.r=Math.min(t,n)/4},square:function(r,e,t,n,i){var a=Math.min(t,n);i.x=r,i.y=e,i.width=a,i.height=a},circle:function(r,e,t,n,i){i.cx=r+t/2,i.cy=e+n/2,i.r=Math.min(t,n)/2},diamond:function(r,e,t,n,i){i.cx=r+t/2,i.cy=e+n/2,i.width=t,i.height=n},pin:function(r,e,t,n,i){i.x=r+t/2,i.y=e+n/2,i.width=t,i.height=n},arrow:function(r,e,t,n,i){i.x=r+t/2,i.y=e+n/2,i.width=t,i.height=n},triangle:function(r,e,t,n,i){i.cx=r+t/2,i.cy=e+n/2,i.width=t,i.height=n}},zl={};T(gI,function(r,e){zl[e]=new r});var mI=gt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,e,t){var n=Ml(r,e,t),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(n.y=t.y+t.height*.4),n},buildPath:function(r,e,t){var n=e.symbolType;if(n!=="none"){var i=zl[n];i||(n="rect",i=zl[n]),yI[n](e.x,e.y,e.width,e.height,i.shape),i.buildPath(r,i.shape,t)}}});function _I(r,e){if(this.type!=="image"){var t=this.style;this.__isEmptyBrush?(t.stroke=r,t.fill=e||"#fff",t.lineWidth=2):this.shape.symbolType==="line"?t.stroke=r:t.fill=r,this.markRedraw()}}function te(r,e,t,n,i,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=Vv(r.slice(8),new ct(e,t,n,i),o?"center":"cover"):r.indexOf("path://")===0?l=mu(r.slice(7),{},new ct(e,t,n,i),o?"center":"cover"):l=new mI({shape:{symbolType:r,x:e,y:t,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=_I,a&&l.setColor(a),l}function lp(r){return z(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Eu(r,e){if(r!=null)return z(r)||(r=[r,r]),[et(r[0],e[0])||0,et(j(r[1],r[0]),e[1])||0]}function si(r){return isFinite(r)}function SI(r,e,t){var n=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(n=n*t.width+t.x,i=i*t.width+t.x,a=a*t.height+t.y,o=o*t.height+t.y),n=si(n)?n:0,i=si(i)?i:1,a=si(a)?a:0,o=si(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function xI(r,e,t){var n=t.width,i=t.height,a=Math.min(n,i),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*n+t.x,s=s*i+t.y,l=l*a),o=si(o)?o:.5,s=si(s)?s:.5,l=l>=0&&si(l)?l:.5;var u=r.createRadialGradient(o,s,0,o,s,l);return u}function hy(r,e,t){for(var n=e.type==="radial"?xI(r,e,t):SI(r,e,t),i=e.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function wI(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 Ps(r){return parseInt(r,10)}function cy(r,e,t){var n=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(t[n]!=null&&t[n]!=="auto")return parseFloat(t[n]);var s=document.defaultView.getComputedStyle(r);return(r[i]||Ps(s[n])||Ps(r.style[n]))-(Ps(s[a])||0)-(Ps(s[o])||0)|0}function bI(r,e){return!r||r==="solid"||!(e>0)?null:r==="dashed"?[4*e,2*e]:r==="dotted"?[e]:_t(r)?[r]:z(r)?r:null}function up(r){var e=r.style,t=e.lineDash&&e.lineWidth>0&&bI(e.lineDash,e.lineWidth),n=e.lineDashOffset;if(t){var i=e.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(t=V(t,function(a){return a/i}),n/=i)}return[t,n]}var TI=new Fr(!0);function Vl(r){var e=r.stroke;return!(e==null||e==="none"||!(r.lineWidth>0))}function vy(r){return typeof r=="string"&&r!=="none"}function Fl(r){var e=r.fill;return e!=null&&e!=="none"}function py(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 dy(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 gy(r,e,t){var n=Mv(e.image,e.__image,t);if(fu(n)){var i=r.createPattern(n,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*so),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function CI(r,e,t,n){var i,a=Vl(t),o=Fl(t),s=t.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var f=e.path||TI,h=e.__dirty;if(!n){var v=t.fill,c=t.stroke,p=o&&!!v.colorStops,d=a&&!!c.colorStops,g=o&&!!v.image,y=a&&!!c.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(p||d)&&(x=e.getBoundingRect()),p&&(m=h?hy(r,v,x):e.__canvasFillGradient,e.__canvasFillGradient=m),d&&(_=h?hy(r,c,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),g&&(S=h||!e.__canvasFillPattern?gy(r,v,e):e.__canvasFillPattern,e.__canvasFillPattern=S),y&&(w=h||!e.__canvasStrokePattern?gy(r,c,e):e.__canvasStrokePattern,e.__canvasStrokePattern=S),p?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),d?r.strokeStyle=_:y&&(w?r.strokeStyle=w:a=!1)}var b=e.getGlobalScale();f.setScale(b[0],b[1],e.segmentIgnoreThreshold);var C,A;r.setLineDash&&t.lineDash&&(i=up(e),C=i[0],A=i[1]);var M=!0;(u||h&Yi)&&(f.setDPR(r.dpr),l?f.setContext(null):(f.setContext(r),M=!1),f.reset(),e.buildPath(f,e.shape,n),f.toStatic(),e.pathUpdated()),M&&f.rebuildPath(r,l?s:1),C&&(r.setLineDash(C),r.lineDashOffset=A),n||(t.strokeFirst?(a&&dy(r,t),o&&py(r,t)):(o&&py(r,t),a&&dy(r,t))),C&&r.setLineDash([])}function AI(r,e,t){var n=e.__image=Mv(t.image,e.__image,e,e.onload);if(!(!n||!fu(n))){var i=t.x||0,a=t.y||0,o=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),t.sWidth&&t.sHeight){var u=t.sx||0,f=t.sy||0;r.drawImage(n,u,f,t.sWidth,t.sHeight,i,a,o,s)}else if(t.sx&&t.sy){var u=t.sx,f=t.sy,h=o-u,v=s-f;r.drawImage(n,u,f,h,v,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function MI(r,e,t){var n,i=t.text;if(i!=null&&(i+=""),i){r.font=t.font||mn,r.textAlign=t.textAlign,r.textBaseline=t.textBaseline;var a=void 0,o=void 0;r.setLineDash&&t.lineDash&&(n=up(e),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),t.strokeFirst?(Vl(t)&&r.strokeText(i,t.x,t.y),Fl(t)&&r.fillText(i,t.x,t.y)):(Fl(t)&&r.fillText(i,t.x,t.y),Vl(t)&&r.strokeText(i,t.x,t.y)),a&&r.setLineDash([])}}var yy=["shadowBlur","shadowOffsetX","shadowOffsetY"],my=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Xx(r,e,t,n,i){var a=!1;if(!n&&(t=t||{},e===t))return!1;if(n||e.opacity!==t.opacity){ye(r,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);r.globalAlpha=isNaN(o)?fi.opacity:o}(n||e.blend!==t.blend)&&(a||(ye(r,i),a=!0),r.globalCompositeOperation=e.blend||fi.blend);for(var s=0;s<yy.length;s++){var l=yy[s];(n||e[l]!==t[l])&&(a||(ye(r,i),a=!0),r[l]=r.dpr*(e[l]||0))}return(n||e.shadowColor!==t.shadowColor)&&(a||(ye(r,i),a=!0),r.shadowColor=e.shadowColor||fi.shadowColor),a}function _y(r,e,t,n,i){var a=zo(e,i.inHover),o=n?null:t&&zo(t,i.inHover)||{};if(a===o)return!1;var s=Xx(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ye(r,i),s=!0),vy(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ye(r,i),s=!0),vy(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ye(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);r.lineWidth!==u&&(s||(ye(r,i),s=!0),r.lineWidth=u)}for(var f=0;f<my.length;f++){var h=my[f],v=h[0];(n||a[v]!==o[v])&&(s||(ye(r,i),s=!0),r[v]=a[v]||h[1])}return s}function DI(r,e,t,n,i){return Xx(r,zo(e,i.inHover),t&&zo(t,i.inHover),n,i)}function Zx(r,e){var t=e.transform,n=r.dpr||1;t?r.setTransform(n*t[0],n*t[1],n*t[2],n*t[3],n*t[4],n*t[5]):r.setTransform(n,0,0,n,0,0)}function LI(r,e,t){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),Zx(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}t.allClipped=n}function PI(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 Sy=1,xy=2,wy=3,by=4;function II(r){var e=Fl(r),t=Vl(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 ye(r,e){e.batchFill&&r.fill(),e.batchStroke&&r.stroke(),e.batchFill="",e.batchStroke=""}function zo(r,e){return e&&r.__hoverStyle||r.style}function qx(r,e){bc(r,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function bc(r,e,t,n){var i=e.transform;if(!e.shouldBePainted(t.viewWidth,t.viewHeight,!1,!1)){e.__dirty&=~vr,e.__isRendered=!1;return}var a=e.__clipPaths,o=t.prevElClipPaths,s=!1,l=!1;if((!o||wI(a,o))&&(o&&o.length&&(ye(r,t),r.restore(),l=s=!0,t.prevElClipPaths=null,t.allClipped=!1,t.prevEl=null),a&&a.length&&(ye(r,t),r.save(),LI(a,r,t),s=!0),t.prevElClipPaths=a),t.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=t.prevEl;u||(l=s=!0);var f=e instanceof gt&&e.autoBatch&&II(e.style);s||PI(i,u.transform)?(ye(r,t),Zx(r,e)):f||ye(r,t);var h=zo(e,t.inHover);e instanceof gt?(t.lastDrawType!==Sy&&(l=!0,t.lastDrawType=Sy),_y(r,e,u,l,t),(!f||!t.batchFill&&!t.batchStroke)&&r.beginPath(),CI(r,e,h,f),f&&(t.batchFill=h.fill||"",t.batchStroke=h.stroke||"")):e instanceof Lo?(t.lastDrawType!==wy&&(l=!0,t.lastDrawType=wy),_y(r,e,u,l,t),MI(r,e,h)):e instanceof fe?(t.lastDrawType!==xy&&(l=!0,t.lastDrawType=xy),DI(r,e,u,l,t),AI(r,e,h)):e.getTemporalDisplayables&&(t.lastDrawType!==by&&(l=!0,t.lastDrawType=by),RI(r,e,t)),f&&n&&ye(r,t),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),t.prevEl=e,e.__dirty=0,e.__isRendered=!0}function RI(r,e,t){var n=e.getDisplayables(),i=e.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:t.viewWidth,viewHeight:t.viewHeight,inHover:t.inHover},o,s;for(o=e.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),bc(r,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,f=i.length;u<f;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),bc(r,l,a,u===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,r.restore()}var Hf=new hI,Ty=new qo(100),Cy=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Gl(r,e){if(r==="none")return null;var t=e.getDevicePixelRatio(),n=e.getZr(),i=n.painter.type==="svg";r.dirty&&Hf.delete(r);var a=Hf.get(r);if(a)return a;var o=q(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=i?1:1/t,Hf.set(r,s),r.dirty=!1,s;function l(u){for(var f=[t],h=!0,v=0;v<Cy.length;++v){var c=o[Cy[v]];if(c!=null&&!z(c)&&!G(c)&&!_t(c)&&typeof c!="boolean"){h=!1;break}f.push(c)}var p;if(h){p=f.join(",")+(i?"-svg":"");var d=Ty.get(p);d&&(i?u.svgElement=d:u.image=d)}var g=jx(o.dashArrayX),y=EI(o.dashArrayY),m=Kx(o.symbol),_=kI(g),S=Jx(y),w=!i&&_n.createCanvas(),x=i&&{tag:"g",attrs:{},key:"dcl",children:[]},b=A(),C;w&&(w.width=b.width*t,w.height=b.height*t,C=w.getContext("2d")),M(),h&&Ty.put(p,w||x),u.image=w,u.svgElement=x,u.svgWidth=b.width,u.svgHeight=b.height;function A(){for(var D=1,L=0,P=_.length;L<P;++L)D=Bd(D,_[L]);for(var I=1,L=0,P=m.length;L<P;++L)I=Bd(I,m[L].length);D*=I;var R=S*_.length*m.length;return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(R,o.maxTileHeight))}}function M(){C&&(C.clearRect(0,0,w.width,w.height),o.backgroundColor&&(C.fillStyle=o.backgroundColor,C.fillRect(0,0,w.width,w.height)));for(var D=0,L=0;L<y.length;++L)D+=y[L];if(D<=0)return;for(var P=-S,I=0,R=0,k=0;P<b.height;){if(I%2===0){for(var F=R/2%m.length,B=0,N=0,H=0;B<b.width*2;){for(var X=0,L=0;L<g[k].length;++L)X+=g[k][L];if(X<=0)break;if(N%2===0){var Y=(1-o.symbolSize)*.5,ot=B+g[k][N]*Y,vt=P+y[I]*Y,yt=g[k][N]*o.symbolSize,Yt=y[I]*o.symbolSize,he=H/2%m[F].length;Nt(ot,vt,yt,Yt,m[F][he])}B+=g[k][N],++H,++N,N===g[k].length&&(N=0)}++k,k===g.length&&(k=0)}P+=y[I],++R,++I,I===y.length&&(I=0)}function Nt(Mt,bt,J,lt,ce){var Dt=i?1:t,$e=te(ce,Mt*Dt,bt*Dt,J*Dt,lt*Dt,o.color,o.symbolKeepAspect);if(i){var ve=n.painter.renderOneToVNode($e);ve&&x.children.push(ve)}else qx(C,$e)}}}}function Kx(r){if(!r||r.length===0)return[["rect"]];if(G(r))return[[r]];for(var e=!0,t=0;t<r.length;++t)if(!G(r[t])){e=!1;break}if(e)return Kx([r]);for(var n=[],t=0;t<r.length;++t)G(r[t])?n.push([r[t]]):n.push(r[t]);return n}function jx(r){if(!r||r.length===0)return[[0,0]];if(_t(r)){var e=Math.ceil(r);return[[e,e]]}for(var t=!0,n=0;n<r.length;++n)if(!_t(r[n])){t=!1;break}if(t)return jx([r]);for(var i=[],n=0;n<r.length;++n)if(_t(r[n])){var e=Math.ceil(r[n]);i.push([e,e])}else{var e=V(r[n],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function EI(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(_t(r)){var e=Math.ceil(r);return[e,e]}var t=V(r,function(n){return Math.ceil(n)});return r.length%2?t.concat(t):t}function kI(r){return V(r,function(e){return Jx(e)})}function Jx(r){for(var e=0,t=0;t<r.length;++t)e+=r[t];return r.length%2===1?e*2:e}function OI(r,e){r.eachRawSeries(function(t){if(!r.isSeriesFiltered(t)){var n=t.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Gl(s,e)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Gl(i,e)}}})}var BI=new rr;const Ke=BI;var Qx={};function NI(r,e){Qx[r]=e}function tw(r){return Qx[r]}var zI="5.6.0",VI={zrender:"5.6.1"},FI=1,GI=800,HI=900,WI=1e3,$I=2e3,YI=5e3,ew=1e3,UI=1100,fp=2e3,rw=3e3,XI=4e3,ku=4500,ZI=4600,qI=5e3,KI=6e3,nw=7e3,iw={PROCESSOR:{FILTER:WI,SERIES_FILTER:GI,STATISTIC:YI},VISUAL:{LAYOUT:ew,PROGRESSIVE_LAYOUT:UI,GLOBAL:fp,CHART:rw,POST_CHART_LAYOUT:ZI,COMPONENT:XI,BRUSH:qI,CHART_ITEM:ku,ARIA:KI,DECAL:nw}},Xt="__flagInMainProcess",de="__pendingUpdate",Wf="__needsUpdateStatus",Ay=/^[a-zA-Z0-9_]+$/,$f="__connectUpdateStatus",My=0,jI=1,JI=2;function aw(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this.isDisposed()){this.id;return}return sw(this,r,e)}}function ow(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return sw(this,r,e)}}function sw(r,e,t){return t[0]=t[0]&&t[0].toLowerCase(),rr.prototype[e].apply(r,t)}var lw=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(rr),uw=lw.prototype;uw.on=ow("on");uw.off=ow("off");var Vi,Yf,Is,jr,Uf,Xf,Zf,Na,za,Dy,Ly,qf,Py,Rs,Iy,fw,Ce,Ry,Hl=function(r){E(e,r);function e(t,n,i){var a=r.call(this,new nI)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},G(n)&&(n=hw[n]),a._dom=t;var o="canvas",s="auto",l=!1;i.ssr&&z1(function(v){var c=nt(v),p=c.dataIndex;if(p!=null){var d=$();return d.set("series_index",c.seriesIndex),d.set("data_index",p),c.ssrType&&d.set("ssr_type",c.ssrType),d}});var u=a._zr=ec(t,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:j(i.useDirtyRect,l),useCoarsePointer:j(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Ru(W(u.flush,u),17),n=Z(n),n&&yx(n,!0),a._theme=n,a._locale=oL(i.locale||XS),a._coordSysMgr=new Du;var f=a._api=Iy(a);function h(v,c){return v.__prio-c.__prio}return Qs($l,h),Qs(Tc,h),a._scheduler=new Hx(a,f,Tc,$l),a._messageCenter=new lw,a._initEvents(),a.resize=W(a.resize,a),u.animation.on("frame",a._onframe,a),Dy(u,a),Ly(u,a),ml(a),a}return e.prototype._onframe=function(){if(!this._disposed){Ry(this);var t=this._scheduler;if(this[de]){var n=this[de].silent;this[Xt]=!0;try{Vi(this),jr.update.call(this,null,this[de].updateParams)}catch(l){throw this[Xt]=!1,this[de]=null,l}this._zr.flush(),this[Xt]=!1,this[de]=null,Na.call(this,n),za.call(this,n)}else if(t.unfinished){var i=FI,a=this._model,o=this._api;t.unfinished=!1;do{var s=+new Date;t.performSeriesTasks(a),t.performDataProcessorTasks(a),Xf(this,a),t.performVisualTasks(a),Rs(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,n,i){if(!this[Xt]){if(this._disposed){this.id;return}var a,o,s;if(U(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Xt]=!0,!this._model||n){var l=new FL(this._api),u=this._theme,f=this._model=new px;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(t,{replaceMerge:o},Cc);var h={seriesTransition:s,optionChanged:!0};if(i)this[de]={silent:a,updateParams:h},this[Xt]=!1,this.getZr().wakeUp();else{try{Vi(this),jr.update.call(this,null,h)}catch(v){throw this[de]=null,this[Xt]=!1,v}this._ssr||this._zr.flush(),this[de]=null,this[Xt]=!1,Na.call(this,a),za.call(this,a)}}},e.prototype.setTheme=function(){},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||ft.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){t=t||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){t=t||{};var n=this._zr.painter;return n.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(ft.svgSupported){var t=this._zr,n=t.storage.getDisplayList();return T(n,function(i){i.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(this._disposed){this.id;return}t=t||{};var n=t.excludeComponents,i=this._model,a=[],o=this;T(n,function(l){i.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return T(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(t){if(this._disposed){this.id;return}var n=t.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Yl[i]){var l=s,u=s,f=-s,h=-s,v=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();T(vi,function(_,S){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Z(t)),x=_.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),f=o(x.right,f),h=o(x.bottom,h),v.push({dom:w,left:x.left,top:x.top})}}),l*=c,u*=c,f*=c,h*=c;var p=f-l,d=h-u,g=_n.createCanvas(),y=ec(g,{renderer:n?"svg":"canvas"});if(y.resize({width:p,height:d}),n){var m="";return T(v,function(_){var S=_.left-l,w=_.top-u;m+='<g transform="translate('+S+","+w+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&y.painter.setBackgroundColor(t.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return t.connectedBackgroundColor&&y.add(new pt({shape:{x:0,y:0,width:p,height:d},style:{fill:t.connectedBackgroundColor}})),T(v,function(_){var S=new fe({style:{x:_.left*c-l,y:_.top*c-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}else return this.getDataURL(t)},e.prototype.convertToPixel=function(t,n){return Uf(this,"convertToPixel",t,n)},e.prototype.convertFromPixel=function(t,n){return Uf(this,"convertFromPixel",t,n)},e.prototype.containPixel=function(t,n){if(this._disposed){this.id;return}var i=this._model,a,o=ho(i,t);return T(o,function(s,l){l.indexOf("Models")>=0&&T(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(l==="seriesModels"){var h=this._chartsMap[u.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,u))}},this)},this),!!a},e.prototype.getVisual=function(t,n){var i=this._model,a=ho(i,t,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?$x(s,l,n):Yx(s,n)},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(QI,function(n){var i=function(a){var o=t.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&oi(s,function(p){var d=nt(p);if(d&&d.dataIndex!=null){var g=d.dataModel||o.getSeriesByIndex(d.seriesIndex);return l=g&&g.getDataParams(d.dataIndex,d.dataType,s)||{},!0}else if(d.eventData)return l=O({},d.eventData),!0},!0),l){var f=l.componentType,h=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=l.seriesIndex);var v=f&&h!=null&&o.getComponent(f,h),c=v&&t[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=a,l.type=n,t._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:c},t.trigger(n,l)}};i.zrEventfulCallAtLast=!0,t._zr.on(n,i,t)}),T(_o,function(n,i){t._messageCenter.on(i,function(a){this.trigger(i,a)},t)}),T(["selectchanged"],function(n){t._messageCenter.on(n,function(i){this.trigger(n,i)},t)}),sI(this._messageCenter,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&&q1(this.getDom(),cp,"");var n=this,i=n._api,a=n._model;T(n._componentsViews,function(o){o.dispose(a,i)}),T(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete vi[n.id]},e.prototype.resize=function(t){if(!this[Xt]){if(this._disposed){this.id;return}this._zr.resize(t);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=t&&t.silent;this[de]&&(a==null&&(a=this[de].silent),i=!0,this[de]=null),this[Xt]=!0;try{i&&Vi(this),jr.update.call(this,{type:"resize",animation:O({duration:0},t&&t.animation)})}catch(o){throw this[Xt]=!1,o}this[Xt]=!1,Na.call(this,a),za.call(this,a)}}},e.prototype.showLoading=function(t,n){if(this._disposed){this.id;return}if(U(t)&&(n=t,t=""),t=t||"default",this.hideLoading(),!!Ac[t]){var i=Ac[t](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},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 n=O({},t);return n.type=_o[t.type],n},e.prototype.dispatchAction=function(t,n){if(this._disposed){this.id;return}if(U(n)||(n={silent:!!n}),!!Wl[t.type]&&this._model){if(this[Xt]){this._pendingActions.push(t);return}var i=n.silent;Zf.call(this,t,i);var a=n.flush;a?this._zr.flush():a!==!1&&ft.browser.weChat&&this._throttledZrFlush(),Na.call(this,i),za.call(this,i)}},e.prototype.updateLabelLayout=function(){Ke.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed){this.id;return}var n=t.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Vi=function(h){var v=h._scheduler;v.restorePipelines(h._model),v.prepareStageTasks(),Yf(h,!0),Yf(h,!1),v.plan()},Yf=function(h,v){for(var c=h._model,p=h._scheduler,d=v?h._componentsViews:h._chartsViews,g=v?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<d.length;_++)d[_].__alive=!1;v?c.eachComponent(function(x,b){x!=="series"&&S(b)}):c.eachSeries(S);function S(x){var b=x.__requireNewView;x.__requireNewView=!1;var C="_ec_"+x.id+"_"+x.type,A=!b&&g[C];if(!A){var M=mr(x.type),D=v?At.getClass(M.main,M.sub):Jt.getClass(M.sub);A=new D,A.init(c,m),g[C]=A,d.push(A),y.add(A.group)}x.__viewId=A.__id=C,A.__alive=!0,A.__model=x,A.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!v&&p.prepareView(A,x,c,m)}for(var _=0;_<d.length;){var w=d[_];w.__alive?_++:(!v&&w.renderTask.dispose(),y.remove(w.group),w.dispose(c,m),d.splice(_,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},Is=function(h,v,c,p,d){var g=h._model;if(g.setUpdatePayload(c),!p){T([].concat(h._componentsViews).concat(h._chartsViews),w);return}var y={};y[p+"Id"]=c[p+"Id"],y[p+"Index"]=c[p+"Index"],y[p+"Name"]=c[p+"Name"];var m={mainType:p,query:y};d&&(m.subType=d);var _=c.excludeSeriesId,S;_!=null&&(S=$(),T(Ct(_),function(x){var b=jt(x,null);b!=null&&S.set(b,!0)})),g&&g.eachComponent(m,function(x){var b=S&&S.get(x.id)!=null;if(!b)if(lg(c))if(x instanceof Te)c.type===hi&&!c.notBlur&&!x.get(["emphasis","disabled"])&&KD(x,c,h._api);else{var C=Rv(x.mainType,x.componentIndex,c.name,h._api),A=C.focusSelf,M=C.dispatchers;c.type===hi&&A&&!c.notBlur&&uc(x.mainType,x.componentIndex,h._api),M&&T(M,function(D){c.type===hi?oa(D):sa(D)})}else hc(c)&&x instanceof Te&&(QD(x,c,h._api),og(x),Ce(h))},h),g&&g.eachComponent(m,function(x){var b=S&&S.get(x.id)!=null;b||w(h[p==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},h);function w(x){x&&x.__alive&&x[v]&&x[v](x.__model,g,h._api,c)}},jr={prepareAndUpdate:function(h){Vi(this),jr.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,v){var c=this._model,p=this._api,d=this._zr,g=this._coordSysMgr,y=this._scheduler;if(c){c.setUpdatePayload(h),y.restoreData(c,h),y.performSeriesTasks(c),g.create(c,p),y.performDataProcessorTasks(c,h),Xf(this,c),g.update(c,p),t(c),y.performVisualTasks(c,h),qf(this,c,p,h,v);var m=c.get("backgroundColor")||"transparent",_=c.get("darkMode");d.setBackgroundColor(m),_!=null&&_!=="auto"&&d.setDarkMode(_),Ke.trigger("afterupdate",c,p)}},updateTransform:function(h){var v=this,c=this._model,p=this._api;if(c){c.setUpdatePayload(h);var d=[];c.eachComponent(function(y,m){if(y!=="series"){var _=v.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,c,p,h);S&&S.update&&d.push(_)}else d.push(_)}});var g=$();c.eachSeries(function(y){var m=v._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,c,p,h);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),t(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0,dirtyMap:g}),Rs(this,c,p,h,{},g),Ke.trigger("afterupdate",c,p)}},updateView:function(h){var v=this._model;v&&(v.setUpdatePayload(h),Jt.markUpdateMethod(h,"updateView"),t(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0}),qf(this,v,this._api,h,{}),Ke.trigger("afterupdate",v,this._api))},updateVisual:function(h){var v=this,c=this._model;c&&(c.setUpdatePayload(h),c.eachSeries(function(p){p.getData().clearAllVisual()}),Jt.markUpdateMethod(h,"updateVisual"),t(c),this._scheduler.performVisualTasks(c,h,{visualType:"visual",setDirty:!0}),c.eachComponent(function(p,d){if(p!=="series"){var g=v.getViewOfComponentModel(d);g&&g.__alive&&g.updateVisual(d,c,v._api,h)}}),c.eachSeries(function(p){var d=v._chartsMap[p.__viewId];d.updateVisual(p,c,v._api,h)}),Ke.trigger("afterupdate",c,this._api))},updateLayout:function(h){jr.update.call(this,h)}},Uf=function(h,v,c,p){if(h._disposed){h.id;return}for(var d=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,m=ho(d,c),_=0;_<g.length;_++){var S=g[_];if(S[v]&&(y=S[v](d,m,p))!=null)return y}},Xf=function(h,v){var c=h._chartsMap,p=h._scheduler;v.eachSeries(function(d){p.updateStreamModes(d,c[d.__viewId])})},Zf=function(h,v){var c=this,p=this.getModel(),d=h.type,g=h.escapeConnect,y=Wl[d],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),w=_[0]!=null&&mr(_[0]);this[Xt]=!0;var x=[h],b=!1;h.batch&&(b=!0,x=V(h.batch,function(I){return I=q(O({},I),h),I.batch=null,I}));var C=[],A,M=hc(h),D=lg(h);if(D&&xS(this._api),T(x,function(I){if(A=y.action(I,c._model,c._api),A=A||O({},I),A.type=m.event||A.type,C.push(A),D){var R=Cv(h),k=R.queryOptionMap,F=R.mainTypeSpecified,B=F?k.keys()[0]:"series";Is(c,S,I,B),Ce(c)}else M?(Is(c,S,I,"series"),Ce(c)):w&&Is(c,S,I,w.main,w.sub)}),S!=="none"&&!D&&!M&&!w)try{this[de]?(Vi(this),jr.update.call(this,h),this[de]=null):jr[S].call(this,h)}catch(I){throw this[Xt]=!1,I}if(b?A={type:m.event||d,escapeConnect:g,batch:C}:A=C[0],this[Xt]=!1,!v){var L=this._messageCenter;if(L.trigger(A.type,A),M){var P={type:"selectchanged",escapeConnect:g,selected:t2(p),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};L.trigger(P.type,P)}}},Na=function(h){for(var v=this._pendingActions;v.length;){var c=v.shift();Zf.call(this,c,h)}},za=function(h){!h&&this.trigger("updated")},Dy=function(h,v){h.on("rendered",function(c){v.trigger("rendered",c),h.animation.isFinished()&&!v[de]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},Ly=function(h,v){h.on("mouseover",function(c){var p=c.target,d=oi(p,fc);d&&(jD(d,c,v._api),Ce(v))}).on("mouseout",function(c){var p=c.target,d=oi(p,fc);d&&(JD(d,c,v._api),Ce(v))}).on("click",function(c){var p=c.target,d=oi(p,function(m){return nt(m).dataIndex!=null},!0);if(d){var g=d.selected?"unselect":"select",y=nt(d);v._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function t(h){h.clearColorPalette(),h.eachSeries(function(v){v.clearColorPalette()})}function n(h){var v=[],c=[],p=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,w=_.get("z")||0,x=_.getZLevelKey();p=p||!!x,(m==="series"?c:v).push({zlevel:S,z:w,idx:_.componentIndex,type:m,key:x})}),p){var d=v.concat(c),g,y;Qs(d,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),T(d,function(m){var _=h.getComponent(m.type,m.idx),S=m.zlevel,w=m.key;g!=null&&(S=Math.max(g,S)),w?(S===g&&w!==y&&S++,y=w):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}qf=function(h,v,c,p,d){n(v),Py(h,v,c,p,d),T(h._chartsViews,function(g){g.__alive=!1}),Rs(h,v,c,p,d),T(h._chartsViews,function(g){g.__alive||g.remove(v,c)})},Py=function(h,v,c,p,d,g){T(g||h._componentsViews,function(y){var m=y.__model;u(m,y),y.render(m,v,c,p),s(m,y),f(m,y)})},Rs=function(h,v,c,p,d,g){var y=h._scheduler;d=O(d||{},{updatedSeries:v.getSeries()}),Ke.trigger("series:beforeupdate",v,c,d);var m=!1;v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var w=S.renderTask;y.updatePayload(w,p),u(_,S),g&&g.get(_.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),og(_)}),y.unfinished=m||y.unfinished,Ke.trigger("series:layoutlabels",v,c,d),Ke.trigger("series:transition",v,c,d),v.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),a(h,v),Ke.trigger("series:afterupdate",v,c,d)},Ce=function(h){h[Wf]=!0,h.getZr().wakeUp()},Ry=function(h){h[Wf]&&(h.getZr().storage.traverse(function(v){go(v)||i(v)}),h[Wf]=!1)};function i(h){for(var v=[],c=h.currentStates,p=0;p<c.length;p++){var d=c[p];d==="emphasis"||d==="blur"||d==="select"||v.push(d)}h.selected&&h.states.select&&v.push("select"),h.hoverState===vu&&h.states.emphasis?v.push("emphasis"):h.hoverState===cu&&h.states.blur&&v.push("blur"),h.useStates(v)}function a(h,v){var c=h._zr,p=c.storage,d=0;p.traverse(function(g){g.isGroup||d++}),d>v.get("hoverLayerThreshold")&&!ft.node&&!ft.worker&&v.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,v){var c=h.get("blendMode")||null;v.eachRendered(function(p){p.isGroup||(p.style.blend=c)})}function s(h,v){if(!h.preventAutoZ){var c=h.get("z")||0,p=h.get("zlevel")||0;v.eachRendered(function(d){return l(d,c,p,-1/0),!0})}}function l(h,v,c,p){var d=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)p=Math.max(l(m[_],v,c,p),p);else h.z=v,h.zlevel=c,p=Math.max(h.z2,p);if(d&&(d.z=v,d.zlevel=c,isFinite(p)&&(d.z2=p+2)),g){var S=h.textGuideLineConfig;g.z=v,g.zlevel=c,isFinite(p)&&(g.z2=p+(S&&S.showAbove?1:-1))}return p}function u(h,v){v.eachRendered(function(c){if(!go(c)){var p=c.getTextContent(),d=c.getTextGuideLine();c.stateTransition&&(c.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),c.hasState()?(c.prevStates=c.currentStates,c.clearStates()):c.prevStates&&(c.prevStates=null)}})}function f(h,v){var c=h.getModel("stateAnimation"),p=h.isAnimationEnabled(),d=c.get("duration"),g=d>0?{duration:d,delay:c.get("delay"),easing:c.get("easing")}:null;v.eachRendered(function(y){if(y.states&&y.states.emphasis){if(go(y))return;if(y instanceof gt&&o2(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}Iy=function(h){return new(function(v){E(c,v);function c(){return v!==null&&v.apply(this,arguments)||this}return c.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},c.prototype.getComponentByElement=function(p){for(;p;){var d=p.__ecComponentInfo;if(d!=null)return h._model.getComponent(d.mainType,d.index);p=p.parent}},c.prototype.enterEmphasis=function(p,d){oa(p,d),Ce(h)},c.prototype.leaveEmphasis=function(p,d){sa(p,d),Ce(h)},c.prototype.enterBlur=function(p){qD(p),Ce(h)},c.prototype.leaveBlur=function(p){yS(p),Ce(h)},c.prototype.enterSelect=function(p){mS(p),Ce(h)},c.prototype.leaveSelect=function(p){_S(p),Ce(h)},c.prototype.getModel=function(){return h.getModel()},c.prototype.getViewOfComponentModel=function(p){return h.getViewOfComponentModel(p)},c.prototype.getViewOfSeriesModel=function(p){return h.getViewOfSeriesModel(p)},c}(dx))(h)},fw=function(h){function v(c,p){for(var d=0;d<c.length;d++){var g=c[d];g[$f]=p}}T(_o,function(c,p){h._messageCenter.on(p,function(d){if(Yl[h.group]&&h[$f]!==My){if(d&&d.escapeConnect)return;var g=h.makeActionFromEvent(d),y=[];T(vi,function(m){m!==h&&m.group===h.group&&y.push(m)}),v(y,My),T(y,function(m){m[$f]!==jI&&m.dispatchAction(g)}),v(y,JI)}})})}}(),e}(rr),hp=Hl.prototype;hp.on=aw("on");hp.off=aw("off");hp.one=function(r,e,t){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),n.off(r,i)}this.on.call(this,r,i,t)};var QI=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Wl={},_o={},Tc=[],Cc=[],$l=[],hw={},Ac={},vi={},Yl={},tR=+new Date-0,eR=+new Date-0,cp="_echarts_instance_";function rR(r,e,t){var n=!(t&&t.ssr);if(n){var i=vp(r);if(i)return i}var a=new Hl(r,e,t);return a.id="ec_"+tR++,vi[a.id]=a,n&&q1(r,cp,a.id),fw(a),Ke.trigger("afterinit",a),a}function nR(r){if(z(r)){var e=r;r=null,T(e,function(t){t.group!=null&&(r=t.group)}),r=r||"g_"+eR++,T(e,function(t){t.group=r})}return Yl[r]=!0,r}function cw(r){Yl[r]=!1}var iR=cw;function aR(r){G(r)?r=vi[r]:r instanceof Hl||(r=vp(r)),r instanceof Hl&&!r.isDisposed()&&r.dispose()}function vp(r){return vi[FM(r,cp)]}function oR(r){return vi[r]}function pp(r,e){hw[r]=e}function dp(r){st(Cc,r)<0&&Cc.push(r)}function gp(r,e){yp(Tc,r,e,$I)}function vw(r){Ou("afterinit",r)}function pw(r){Ou("afterupdate",r)}function Ou(r,e){Ke.on(r,e)}function ir(r,e,t){K(e)&&(t=e,e="");var n=U(r)?r.type:[r,r={event:e}][0];r.event=(r.event||n).toLowerCase(),e=r.event,!_o[e]&&(le(Ay.test(n)&&Ay.test(e)),Wl[n]||(Wl[n]={action:t,actionInfo:r}),_o[e]=n)}function dw(r,e){Du.register(r,e)}function sR(r){var e=Du.get(r);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function gw(r,e){yp($l,r,e,ew,"layout")}function Mn(r,e){yp($l,r,e,rw,"visual")}var Ey=[];function yp(r,e,t,n,i){if((K(e)||U(e))&&(t=e,e=n),!(st(Ey,t)>=0)){Ey.push(t);var a=Hx.wrapStageHandler(t,i);a.__prio=e,a.__raw=t,r.push(a)}}function mp(r,e){Ac[r]=e}function lR(r){q_({createCanvas:r})}function yw(r,e,t){var n=tw("registerMap");n&&n(r,e,t)}function uR(r){var e=tw("getMap");return e&&e(r)}var mw=hP;Mn(fp,GP);Mn(ku,HP);Mn(ku,WP);Mn(fp,iI);Mn(ku,aI);Mn(nw,OI);dp(yx);gp(HI,ZL);mp("default",$P);ir({type:hi,event:hi,update:hi},zt);ir({type:ol,event:ol,update:ol},zt);ir({type:co,event:co,update:co},zt);ir({type:sl,event:sl,update:sl},zt);ir({type:vo,event:vo,update:vo},zt);pp("light",eI);pp("dark",rI);var fR={};function Va(r){return r==null?0:r.length||1}function ky(r){return r}var hR=function(){function r(e,t,n,i,a,o){this._old=e,this._new=t,this._oldKeyGetter=n||ky,this._newKeyGetter=i||ky,this.context=a,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,n={},i=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=n[s],u=Va(l);if(u>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],f=i[l],h=Va(u),v=Va(f);if(h>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,u),i[l]=null;else if(h===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,u),i[l]=null;else if(h===1&&v===1)this._update&&this._update(f,u),i[l]=null;else if(h>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,u),i[l]=null;else if(h>1)for(var c=0;c<h;c++)this._remove&&this._remove(u[c]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},r.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var i=e[n],a=t[i],o=Va(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);t[i]=null}},r.prototype._initIndexMap=function(e,t,n,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(n[o]=s),!!t){var l=t[s],u=Va(l);u===0?(t[s]=o,a&&n.push(s)):u===1?t[s]=[l,o]:l.push(o)}}},r}();const _p=hR;var cR=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 vR(r,e){var t={},n=t.encode={},i=$(),a=[],o=[],s={};T(r.dimensions,function(v){var c=r.getDimensionInfo(v),p=c.coordDim;if(p){var d=c.coordDimIndex;Kf(n,p)[d]=v,c.isExtraCoord||(i.set(p,1),dR(c.type)&&(a[0]=v),Kf(s,p)[d]=r.getDimensionIndex(c.name)),c.defaultTooltip&&o.push(v)}ox.each(function(g,y){var m=Kf(n,y),_=c.otherDims[y];_!=null&&_!==!1&&(m[_]=c.name)})});var l=[],u={};i.each(function(v,c){var p=n[c];u[c]=p[0],l=l.concat(p)}),t.dataDimsOnCoord=l,t.dataDimIndicesOnCoord=V(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),t.encodeFirstDimNotExtra=u;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,t.userOutput=new cR(s,e),t}function Kf(r,e){return r.hasOwnProperty(e)||(r[e]=[]),r[e]}function pR(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function dR(r){return!(r==="ordinal"||r==="time")}var gR=function(){function r(e){this.otherDims={},e!=null&&O(this,e)}return r}();const hl=gR;var yR=St(),mR={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},_w=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=ww(this.source)))},r.prototype.getSourceDimensionIndex=function(e){return j(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=_x(this.source),n=!bw(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)l=t?h.name:null,u=h.type,f=h.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=t?v.name:null,u=v.type)}a.push({property:l,type:u,ordinalMeta:f}),t&&l!=null&&(!h||!h.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=mR[u]||"f",f&&(i+=f.uid),i+="$"}var c=this.source,p=[c.seriesLayoutBy,c.startIndex,i].join("$$");return{dimensions:a,hash:p}},r.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===t)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(t);o&&(i=o.name)}e.push(i)}return e},r.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r}();function Sw(r){return r instanceof _w}function xw(r){for(var e=$(),t=0;t<(r||[]).length;t++){var n=r[t],i=U(n)?n.name:n;i!=null&&e.get(i)==null&&e.set(i,t)}return e}function ww(r){var e=yR(r);return e.dimNameMap||(e.dimNameMap=xw(r.dimensionsDefine))}function bw(r){return r>30}var Fa=U,Jr=V,_R=typeof Int32Array>"u"?Array:Int32Array,SR="e\0\0",Oy=-1,xR=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],wR=["_approximateExtent"],By,Es,Ga,Ha,jf,Wa,Jf,bR=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 n,i=!1;Sw(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},f=0;f<n.length;f++){var h=n[f],v=G(h)?new hl({name:h}):h instanceof hl?h:new hl(h),c=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=c,v.coordDimIndex=0);var p=v.otherDims=v.otherDims||{};o.push(c),a[c]=v,u[c]!=null&&(l=!0),v.createInvertedIndices&&(s[c]=[]),p.itemName===0&&(this._nameDimIdx=f),p.itemId===0&&(this._idDimIdx=f),i&&(v.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var d=this._dimIdxToName=$();T(o,function(g){d.set(a[g].storeDimIndex,g)})}}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 n=this._dimIdxToName.get(t);if(n!=null)return n;var i=this._schema.getSourceDimension(t);if(i)return i.name},r.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},r.prototype._recognizeDimIndex=function(e){if(_t(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(n){return t.hasOwnProperty(n)?t[n]:void 0}:function(n){return t[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var i=n.encode[e];return i?i[t]:null},r.prototype.mapDimensionsAll=function(e){var t=this._dimSummary,n=t.encode[e];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(e,t,n){var i=this,a;if(e instanceof mc&&(a=e),!a){var o=this.dimensions,s=ep(e)||Qt(e)?new Sx(e,o.length):e;a=new mc;var l=Jr(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=vR(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 n=this._store.appendValues(e,t&&t.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=t[l],o&&Jf(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var i=this._dimInfos[t[n]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==yn&&!e.fillStorage},r.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===We;if(l&&!i.pure)for(var u=[],f=e;f<t;f++){var h=i.getItem(f,u);if(!this.hasItemOption&&MM(h)&&(this.hasItemOption=!0),h){var v=h.name;a[f]==null&&v!=null&&(a[f]=jt(v,null));var c=h.id;o[f]==null&&c!=null&&(o[f]=jt(c,null))}}if(this._shouldMakeIdFromName())for(var f=e;f<t;f++)Jf(this,f);By(this)}},r.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},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){Fa(e)?O(this._calculationInfo,e):this._calculationInfo[e]=t},r.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=Ga(this,this._nameDimIdx,t)),n==null&&(n=""),n},r.prototype._getCategory=function(e,t){var n=this._store.get(e,t),i=this._store.getOrdinalMeta(e);return i?i.categories[n]:n},r.prototype.getId=function(e){return Es(this,this.getRawIndex(e))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.get(i.storeDimIndex,t)},r.prototype.getByRawIndex=function(e,t){var n=this._store,i=this._dimInfos[e];if(i)return n.getByRawIndex(i.storeDimIndex,t)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},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 n=this,i=this._store;return z(e)?i.getValues(Jr(e,function(a){return n._getStoreDimIndex(a)}),t):i.getValues(e)},r.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,i=t.length;n<i;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},r.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;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 n=e&&this._invertedIndicesMap[e],i=n&&n[t];return i==null||isNaN(i)?Oy:i},r.prototype.indicesOfNearest=function(e,t,n){return this._store.indicesOfNearest(this._getStoreDimIndex(e),t,n)},r.prototype.each=function(e,t,n){K(e)&&(n=t,t=e,e=[]);var i=n||this,a=Jr(Ha(e),this._getStoreDimIndex,this);this._store.each(a,i?W(t,i):t)},r.prototype.filterSelf=function(e,t,n){K(e)&&(n=t,t=e,e=[]);var i=n||this,a=Jr(Ha(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?W(t,i):t),this},r.prototype.selectRange=function(e){var t=this,n={},i=at(e);return T(i,function(a){var o=t._getStoreDimIndex(a);n[o]=e[a]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(e,t,n){K(e)&&(n=t,t=e,e=[]),n=n||this;var i=[];return this.each(e,function(){i.push(t&&t.apply(this,arguments))},n),i},r.prototype.map=function(e,t,n,i){var a=n||i||this,o=Jr(Ha(e),this._getStoreDimIndex,this),s=Wa(this);return s._store=this._store.map(o,a?W(t,a):t),s},r.prototype.modify=function(e,t,n,i){var a=n||i||this,o=Jr(Ha(e),this._getStoreDimIndex,this);this._store.modify(o,a?W(t,a):t)},r.prototype.downSample=function(e,t,n,i){var a=Wa(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),t,n,i),a},r.prototype.minmaxDownSample=function(e,t){var n=Wa(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},r.prototype.lttbDownSample=function(e,t){var n=Wa(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},r.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},r.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Tt(n,t,t&&t.ecModel)},r.prototype.diff=function(e){var t=this;return new _p(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Es(e,n)},function(n){return Es(t,n)})},r.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},r.prototype.setVisual=function(e,t){this._visual=this._visual||{},Fa(e)?O(this._visual,e):this._visual[e]=t},r.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e],i=n&&n[t];return i==null?this.getVisual(t):i},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var a=i[t];return a==null&&(a=this.getVisual(t),z(a)?a=a.slice():Fa(a)&&(a=O({},a)),i[t]=a),a},r.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Fa(t)?O(i,t):i[t]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(e,t){Fa(e)?O(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,n){this._itemLayouts[e]=n?O(this._itemLayouts[e]||{},t):t},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;GD(n,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(n,i){n&&e&&e.call(t,n,i)})},r.prototype.cloneShallow=function(e){return e||(e=new r(this._schema?this._schema:Jr(this.dimensions,this._getDimInfo,this),this.hostModel)),jf(e,this),e._store=this._store,e},r.prototype.wrapMethod=function(e,t){var n=this[e];K(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=n.apply(this,arguments);return t.apply(this,[i].concat(iu(arguments)))})},r.internalField=function(){By=function(e){var t=e._invertedIndicesMap;T(t,function(n,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){n=t[i]=new _R(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Oy;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Ga=function(e,t,n){return jt(e._getCategory(t,n),null)},Es=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=Ga(e,e._idDimIdx,t)),n==null&&(n=SR+t),n},Ha=function(e){return z(e)||(e=e!=null?[e]:[]),e},Wa=function(e){var t=new r(e._schema?e._schema:Jr(e.dimensions,e._getDimInfo,e),e.hostModel);return jf(t,e),t},jf=function(e,t){T(xR.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,T(wR,function(n){e[n]=Z(t[n])}),e._calculationInfo=O({},t._calculationInfo)},Jf=function(e,t){var n=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=n[t],l=i[t];if(s==null&&a!=null&&(n[t]=s=Ga(e,a,t)),l==null&&o!=null&&(i[t]=l=Ga(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),i[t]=l}}}(),r}();const Bu=bR;function TR(r,e){return Sp(r,e).dimensions}function Sp(r,e){ep(r)||(r=rp(r)),e=e||{};var t=e.coordDimensions||[],n=e.dimensionsDefine||r.dimensionsDefine||[],i=$(),a=[],o=AR(r,t,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&bw(o),l=n===r.dimensionsDefine,u=l?ww(r):xw(n),f=e.encodeDefine;!f&&e.encodeDefaulter&&(f=e.encodeDefaulter(r,o));for(var h=$(f),v=new Mx(o),c=0;c<v.length;c++)v[c]=-1;function p(A){var M=v[A];if(M<0){var D=n[A],L=U(D)?D:{name:D},P=new hl,I=L.name;I!=null&&u.get(I)!=null&&(P.name=P.displayName=I),L.type!=null&&(P.type=L.type),L.displayName!=null&&(P.displayName=L.displayName);var R=a.length;return v[A]=R,P.storeDimIndex=A,a.push(P),P}return a[M]}if(!s)for(var c=0;c<o;c++)p(c);h.each(function(A,M){var D=Ct(A).slice();if(D.length===1&&!G(D[0])&&D[0]<0){h.set(M,!1);return}var L=h.set(M,[]);T(D,function(P,I){var R=G(P)?u.get(P):P;R!=null&&R<o&&(L[I]=R,g(p(R),M,I))})});var d=0;T(t,function(A){var M,D,L,P;if(G(A))M=A,P={};else{P=A,M=P.name;var I=P.ordinalMeta;P.ordinalMeta=null,P=O({},P),P.ordinalMeta=I,D=P.dimsDef,L=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var R=h.get(M);if(R!==!1){if(R=Ct(R),!R.length)for(var k=0;k<(D&&D.length||1);k++){for(;d<o&&p(d).coordDim!=null;)d++;d<o&&R.push(d++)}T(R,function(F,B){var N=p(F);if(l&&P.type!=null&&(N.type=P.type),g(q(N,P),M,B),N.name==null&&D){var H=D[B];!U(H)&&(H={name:H}),N.name=N.displayName=H.name,N.defaultTooltip=H.defaultTooltip}L&&q(N.otherDims,L)})}});function g(A,M,D){ox.get(M)!=null?A.otherDims[M]=D:(A.coordDim=M,A.coordDimIndex=D,i.set(M,!0))}var y=e.generateCoord,m=e.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function w(A){A.name==null&&(A.name=A.coordDim)}if(s)T(a,function(A){w(A)}),a.sort(function(A,M){return A.storeDimIndex-M.storeDimIndex});else for(var x=0;x<o;x++){var b=p(x),C=b.coordDim;C==null&&(b.coordDim=MR(S,i,_),b.coordDimIndex=0,(!y||m<=0)&&(b.isExtraCoord=!0),m--),w(b),b.type==null&&(fx(r,x)===Ft.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return CR(a),new _w({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function CR(r){for(var e=$(),t=0;t<r.length;t++){var n=r[t],i=n.name,a=e.get(i)||0;a>0&&(n.name=i+(a-1)),a++,e.set(i,a)}}function AR(r,e,t,n){var i=Math.max(r.dimensionsDetectedCount||1,e.length,t.length,n||0);return T(e,function(a){var o;U(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function MR(r,e,t){if(t||e.hasKey(r)){for(var n=0;e.hasKey(r+n);)n++;r+=n}return e.set(r,!0),r}var DR=function(){function r(e){this.coordSysDims=[],this.axisMap=$(),this.categoryAxisMap=$(),this.coordSysName=e}return r}();function LR(r){var e=r.get("coordinateSystem"),t=new DR(e),n=PR[e];if(n)return n(r,t,t.axisMap,t.categoryAxisMap),t}var PR={cartesian2d:function(r,e,t,n){var i=r.getReferringComponents("xAxis",Ot).models[0],a=r.getReferringComponents("yAxis",Ot).models[0];e.coordSysDims=["x","y"],t.set("x",i),t.set("y",a),Fi(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Fi(a)&&(n.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,n){var i=r.getReferringComponents("singleAxis",Ot).models[0];e.coordSysDims=["single"],t.set("single",i),Fi(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(r,e,t,n){var i=r.getReferringComponents("polar",Ot).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",a),t.set("angle",o),Fi(a)&&(n.set("radius",a),e.firstCategoryDimIndex=0),Fi(o)&&(n.set("angle",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,n){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();T(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),f=o[l];t.set(f,u),Fi(u)&&(n.set(f,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Fi(r){return r.get("type")==="category"}function Tw(r,e,t){t=t||{};var n=t.byIndex,i=t.stackedCoordDimension,a,o,s;IR(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(r&&r.get("stack")),u,f,h,v;if(T(a,function(m,_){G(m)&&(a[_]=m={name:m}),l&&!m.isExtraCoord&&(!n&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!u&&(n=!0),f){h="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var c=f.coordDim,p=f.type,d=0;T(a,function(m){m.coordDim===c&&d++});var g={name:h,coordDim:c,coordDimIndex:d,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:v,coordDim:v,coordDimIndex:d+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(v,p),y.storeDimIndex=s.ensureCalculationDimension(h,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:h}}function IR(r){return!Sw(r.schema)}function wn(r,e){return!!e&&e===r.getCalculationInfo("stackedDimension")}function Cw(r,e){return wn(r,e)?r.getCalculationInfo("stackResultDimension"):e}function RR(r,e){var t=r.get("coordinateSystem"),n=Du.get(t),i;return e&&e.coordSysDims&&(i=V(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=pR(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function ER(r,e,t){var n,i;return t&&T(r,function(a,o){var s=a.coordDim,l=t.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function Nu(r,e,t){t=t||{};var n=e.getSourceManager(),i,a=!1;r?(a=!0,i=rp(r)):(i=n.getSource(),a=i.sourceFormat===We);var o=LR(e),s=RR(e,o),l=t.useEncodeDefaulter,u=K(l)?l:l?ht(xL,s,e):null,f={coordDimensions:s,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},h=Sp(i,f),v=ER(h.dimensions,t.createInvertedIndices,o),c=a?null:n.getSharedDataStore(h),p=Tw(e,{schema:h,store:c}),d=new Bu(h,e);d.setCalculationInfo(p);var g=v!=null&&kR(i)?function(y,m,_,S){return S===v?_:this.defaultDimValueGetter(y,m,_,S)}:null;return d.hasItemOption=!1,d.initData(a?i:c,null,g),d}function kR(r){if(r.sourceFormat===We){var e=OR(r.data||[]);return!z(ga(e))}}function OR(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var Aw=function(){function r(e){this._setting=e||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(e){return this._setting[e]},r.prototype.unionExtent=function(e){var t=this._extent;e[0]<t[0]&&(t[0]=e[0]),e[1]>t[1]&&(t[1]=e[1])},r.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},r.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(e){this._isBlank=e},r}();uu(Aw);const Ur=Aw;var BR=0,NR=function(){function r(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++BR}return r.createByAxisModel=function(e){var t=e.option,n=t.data,i=n&&V(n,zR);return new r({categories:i,needCollect:!i,deduplication:t.dedplication!==!1})},r.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},r.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!G(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),t==null&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},r.prototype._getOrCreateMap=function(){return this._map||(this._map=$(this.categories))},r}();function zR(r){return U(r)&&r.value!=null?r.value:r+""}const Mc=NR;function Dc(r){return r.type==="interval"||r.type==="log"}function VR(r,e,t,n){var i={},a=r[1]-r[0],o=i.interval=wv(a/e,!0);t!=null&&o<t&&(o=i.interval=t),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=Mw(o),l=i.niceTickExtent=[Pt(Math.ceil(r[0]/o)*o,s),Pt(Math.floor(r[1]/o)*o,s)];return FR(l,r),i}function Qf(r){var e=Math.pow(10,lu(r)),t=r/e;return t?t===2?t=3:t===3?t=5:t*=2:t=1,Pt(t*e)}function Mw(r){return yr(r)+2}function Ny(r,e,t){r[e]=Math.max(Math.min(r[e],t[1]),t[0])}function FR(r,e){!isFinite(r[0])&&(r[0]=e[0]),!isFinite(r[1])&&(r[1]=e[1]),Ny(r,0,e),Ny(r,1,e),r[0]>r[1]&&(r[0]=r[1])}function zu(r,e){return r>=e[0]&&r<=e[1]}function Vu(r,e){return e[1]===e[0]?.5:(r-e[0])/(e[1]-e[0])}function Fu(r,e){return r*(e[1]-e[0])+e[0]}var Dw=function(r){E(e,r);function e(t){var n=r.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Mc({})),z(i)&&(i=new Mc({categories:V(i,function(a){return U(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return e.prototype.parse=function(t){return t==null?NaN:G(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),zu(t,this._extent)&&this._ordinalMeta.categories[t]!=null},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),Vu(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(Fu(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],n=this._extent,i=n[0];i<=n[1];)t.push({value:i}),i++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(t==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},e.prototype._getTickNumber=function(t){var n=this._ticksByOrdinalNumber;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getRawOrdinalNumber=function(t){var n=this._ordinalNumbersByTick;return n&&t>=0&&t<n.length?n[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var n=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(Ur);Ur.registerClass(Dw);const xp=Dw;var Xn=Pt,Lw=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return zu(t,this._extent)},e.prototype.normalize=function(t){return Vu(t,this._extent)},e.prototype.scale=function(t){return Fu(t,this._extent)},e.prototype.setExtent=function(t,n){var i=this._extent;isNaN(t)||(i[0]=parseFloat(t)),isNaN(n)||(i[1]=parseFloat(n))},e.prototype.unionExtent=function(t){var n=this._extent;t[0]<n[0]&&(n[0]=t[0]),t[1]>n[1]&&(n[1]=t[1]),this.setExtent(n[0],n[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Mw(t)},e.prototype.getTicks=function(t){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(t?s.push({value:Xn(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Xn(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(t?s.push({value:Xn(f+n,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(t){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,f=[],h=s.value-l.value,v=h/t;u<t-1;){var c=Xn(l.value+(u+1)*v);c>a[0]&&c<a[1]&&f.push(c),u++}i.push(f)}return i},e.prototype.getLabel=function(t,n){if(t==null)return"";var i=n&&n.precision;i==null?i=yr(t.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Xn(t.value,i,!0);return Zv(a)},e.prototype.calcNiceTicks=function(t,n,i){t=t||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=VR(a,t,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);t.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var o=this._interval;t.fixMin||(n[0]=Xn(Math.floor(n[0]/o)*o)),t.fixMax||(n[1]=Xn(Math.ceil(n[1]/o)*o))},e.prototype.setNiceExtent=function(t,n){this._niceExtent=[t,n]},e.type="interval",e}(Ur);Ur.registerClass(Lw);const bn=Lw;var Pw=typeof Float32Array<"u",GR=Pw?Float32Array:Array;function Er(r){return z(r)?Pw?new Float32Array(r):r:new GR(r)}var HR="__ec_stack_";function wp(r){return r.get("stack")||HR+r.seriesIndex}function bp(r){return r.dim+r.index}function Iw(r,e){var t=[];return e.eachSeriesByType(r,function(n){Ow(n)&&t.push(n)}),t}function WR(r){var e={};T(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=l.getData(),v=f.dim+"_"+f.index,c=h.getDimensionIndex(h.mapDimension(f.dim)),p=h.getStore(),d=0,g=p.count();d<g;++d){var y=p.get(c,d);e[v]?e[v].push(y):e[v]=[y]}});var t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}t[n]=a}}return t}function Rw(r){var e=WR(r),t=[];return T(r,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),v=Math.abs(h[1]-h[0]);s=u?f/v*u:f}else{var c=n.getData();s=Math.abs(o[1]-o[0])/c.count()}var p=et(n.get("barWidth"),s),d=et(n.get("barMaxWidth"),s),g=et(n.get("barMinWidth")||(Bw(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");t.push({bandWidth:s,barWidth:p,barMaxWidth:d,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:bp(a),stackId:wp(n)})}),$R(t)}function $R(r){var e={};T(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(l[u].maxWidth=h);var v=n.barMinWidth;v&&(l[u].minWidth=v);var c=n.barGap;c!=null&&(s.gap=c);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var t={};return T(e,function(n,i){t[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=at(a).length;s=Math.max(35-l*4,15)+"%"}var u=et(s,o),f=et(n.gap,1),h=n.remainedWidth,v=n.autoWidthCount,c=(h-u)/(v+(v-1)*f);c=Math.max(c,0),T(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,v--}else{var S=c;m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==c&&(y.width=S,h-=S+f*S,v--)}}),c=(h-u)/(v+(v-1)*f),c=Math.max(c,0);var p=0,d;T(a,function(y,m){y.width||(y.width=c),d=y,p+=y.width*(1+f)}),d&&(p-=d.width*f);var g=-p/2;T(a,function(y,m){t[i][m]=t[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),t}function YR(r,e,t){if(r&&e){var n=r[bp(e)];return n!=null&&t!=null?n[wp(t)]:n}}function Ew(r,e){var t=Iw(r,e),n=Rw(t);T(t,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=wp(i),u=n[bp(s)][l],f=u.offset,h=u.width;a.setLayout({bandWidth:u.bandWidth,offset:f,size:h})})}function kw(r){return{seriesType:r,plan:op(),reset:function(e){if(Ow(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(a.dim)),s=t.getDimensionIndex(t.mapDimension(i.dim)),l=e.get("showBackground",!0),u=t.mapDimension(a.dim),f=t.getCalculationInfo("stackResultDimension"),h=wn(t,u)&&!!t.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),c=UR(i,a),p=Bw(e),d=e.get("barMinHeight")||0,g=f&&t.getDimensionIndex(f),y=t.getLayout("size"),m=t.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=p&&Er(w*3),b=p&&l&&Er(w*3),C=p&&Er(w),A=n.master.getRect(),M=v?A.width:A.height,D,L=S.getStore(),P=0;(D=_.next())!=null;){var I=L.get(h?g:o,D),R=L.get(s,D),k=c,F=void 0;h&&(F=+I-L.get(o,D));var B=void 0,N=void 0,H=void 0,X=void 0;if(v){var Y=n.dataToPoint([I,R]);if(h){var ot=n.dataToPoint([F,R]);k=ot[0]}B=k,N=Y[1]+m,H=Y[0]-k,X=y,Math.abs(H)<d&&(H=(H<0?-1:1)*d)}else{var Y=n.dataToPoint([R,I]);if(h){var ot=n.dataToPoint([R,F]);k=ot[1]}B=Y[0]+m,N=k,H=y,X=Y[1]-k,Math.abs(X)<d&&(X=(X<=0?-1:1)*d)}p?(x[P]=B,x[P+1]=N,x[P+2]=v?H:X,b&&(b[P]=v?A.x:B,b[P+1]=v?N:A.y,b[P+2]=M),C[D]=D):S.setItemLayout(D,{x:B,y:N,width:H,height:X}),P+=3}p&&S.setLayout({largePoints:x,largeDataIndices:C,largeBackgroundPoints:b,valueAxisHorizontal:v})}}}}}}function Ow(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Bw(r){return r.pipelineContext&&r.pipelineContext.large}function UR(r,e){var t=e.model.get("startValue");return t||(t=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?t>0?t:1:t))}var XR=function(r,e,t,n){for(;t<n;){var i=t+n>>>1;r[i][1]<e?t=i+1:n=i}return t},Nw=function(r){E(e,r);function e(t){var n=r.call(this,t)||this;return n.type="time",n}return e.prototype.getLabel=function(t){var n=this.getSetting("useUTC");return ts(t.value,Cg[uL(ra(this._minLevelUnit))]||Cg.second,n,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return fL(t,n,i,o,a)},e.prototype.getTicks=function(){var t=this._interval,n=this._extent,i=[];if(!t)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=tE(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},e.prototype.calcNiceExtent=function(t){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Ne,n[1]+=Ne),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Ne}this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},e.prototype.calcNiceTicks=function(t,n,i){t=t||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/t,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=ks.length,l=Math.min(XR(ks,this._approxInterval,0,s),s-1);this._interval=ks[l][1],this._minLevelUnit=ks[Math.max(l-1,0)][0]},e.prototype.parse=function(t){return _t(t)?t:+be(t)},e.prototype.contain=function(t){return zu(this.parse(t),this._extent)},e.prototype.normalize=function(t){return Vu(this.parse(t),this._extent)},e.prototype.scale=function(t){return Fu(t,this._extent)},e.type="time",e}(bn),ks=[["second",Yv],["minute",Uv],["hour",yo],["quarter-day",yo*6],["half-day",yo*12],["day",Ne*1.2],["half-week",Ne*3.5],["week",Ne*7],["month",Ne*31],["quarter",Ne*95],["half-year",Tg/2],["year",Tg]];function ZR(r,e,t,n){var i=be(e),a=be(t),o=function(p){return Ag(i,p,n)===Ag(a,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},f=function(){return u()&&o("hour")},h=function(){return f()&&o("minute")},v=function(){return h()&&o("second")},c=function(){return v()&&o("millisecond")};switch(r){case"year":return s();case"month":return l();case"day":return u();case"hour":return f();case"minute":return h();case"second":return v();case"millisecond":return c()}}function qR(r,e){return r/=Ne,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function KR(r){var e=30*Ne;return r/=e,r>6?6:r>3?3:r>2?2:1}function jR(r){return r/=yo,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function zy(r,e){return r/=e?Uv:Yv,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function JR(r){return wv(r,!0)}function QR(r,e,t){var n=new Date(r);switch(ra(e)){case"year":case"month":n[KS(t)](0);case"day":n[jS(t)](1);case"hour":n[JS(t)](0);case"minute":n[QS(t)](0);case"second":n[tx(t)](0),n[ex(t)](0)}return n.getTime()}function tE(r,e,t,n){var i=1e4,a=ZS,o=0;function s(M,D,L,P,I,R,k){for(var F=new Date(D),B=D,N=F[P]();B<L&&B<=n[1];)k.push({value:B}),N+=M,F[I](N),B=F.getTime();k.push({value:B,notAdd:!0})}function l(M,D,L){var P=[],I=!D.length;if(!ZR(ra(M),n[0],n[1],t)){I&&(D=[{value:QR(new Date(n[0]),M,t)},{value:n[1]}]);for(var R=0;R<D.length-1;R++){var k=D[R].value,F=D[R+1].value;if(k!==F){var B=void 0,N=void 0,H=void 0,X=!1;switch(M){case"year":B=Math.max(1,Math.round(e/Ne/365)),N=Xv(t),H=hL(t);break;case"half-year":case"quarter":case"month":B=KR(e),N=na(t),H=KS(t);break;case"week":case"half-week":case"day":B=qR(e),N=Tu(t),H=jS(t),X=!0;break;case"half-day":case"quarter-day":case"hour":B=jR(e),N=Eo(t),H=JS(t);break;case"minute":B=zy(e,!0),N=Cu(t),H=QS(t);break;case"second":B=zy(e,!1),N=Au(t),H=tx(t);break;case"millisecond":B=JR(e),N=Mu(t),H=ex(t);break}s(B,k,F,N,H,X,P),M==="year"&&L.length>1&&R===0&&L.unshift({value:L[0].value-B})}}for(var R=0;R<P.length;R++)L.push(P[R]);return P}}for(var u=[],f=[],h=0,v=0,c=0;c<a.length&&o++<i;++c){var p=ra(a[c]);if(lL(a[c])){l(a[c],u[u.length-1]||[],f);var d=a[c+1]?ra(a[c+1]):null;if(p!==d){if(f.length){v=h,f.sort(function(M,D){return M.value-D.value});for(var g=[],y=0;y<f.length;++y){var m=f[y].value;(y===0||f[y-1].value!==m)&&(g.push(f[y]),m>=n[0]&&m<=n[1]&&h++)}var _=(n[1]-n[0])/e;if(h>_*1.5&&v>_/1.5||(u.push(g),h>_||r===a[c]))break}f=[]}}}for(var S=xt(V(u,function(M){return xt(M,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(M){return M.length>0}),w=[],x=S.length-1,c=0;c<S.length;++c)for(var b=S[c],C=0;C<b.length;++C)w.push({value:b[C].value,level:x-c});w.sort(function(M,D){return M.value-D.value});for(var A=[],c=0;c<w.length;++c)(c===0||w[c].value!==w[c-1].value)&&A.push(w[c]);return A}Ur.registerClass(Nw);const zw=Nw;var Vy=Ur.prototype,So=bn.prototype,eE=Pt,rE=Math.floor,nE=Math.ceil,Os=Math.pow,Xe=Math.log,Tp=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new bn,t._interval=0,t}return e.prototype.getTicks=function(t){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=So.getTicks.call(this,t);return V(o,function(s){var l=s.value,u=Pt(Os(this.base,l));return u=l===i[0]&&this._fixMin?Bs(u,a[0]):u,u=l===i[1]&&this._fixMax?Bs(u,a[1]):u,{value:u}},this)},e.prototype.setExtent=function(t,n){var i=Xe(this.base);t=Xe(Math.max(0,t))/i,n=Xe(Math.max(0,n))/i,So.setExtent.call(this,t,n)},e.prototype.getExtent=function(){var t=this.base,n=Vy.getExtent.call(this);n[0]=Os(t,n[0]),n[1]=Os(t,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=Bs(n[0],a[0])),this._fixMax&&(n[1]=Bs(n[1],a[1])),n},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var n=this.base;t[0]=Xe(t[0])/Xe(n),t[1]=Xe(t[1])/Xe(n),Vy.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.calcNiceTicks=function(t){t=t||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=H1(i),o=t/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Pt(nE(n[0]/a)*a),Pt(rE(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(t){So.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return t=Xe(t)/Xe(this.base),zu(t,this._extent)},e.prototype.normalize=function(t){return t=Xe(t)/Xe(this.base),Vu(t,this._extent)},e.prototype.scale=function(t){return t=Fu(t,this._extent),Os(this.base,t)},e.type="log",e}(Ur),Vw=Tp.prototype;Vw.getMinorTicks=So.getMinorTicks;Vw.getLabel=So.getLabel;function Bs(r,e){return eE(r,yr(e))}Ur.registerClass(Tp);const iE=Tp;var aE=function(){function r(e,t,n){this._prepareParams(e,t,n)}return r.prototype._prepareParams=function(e,t,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&t.getNeedCrossZero&&t.getNeedCrossZero();var a=t.get("min",!0);a==null&&(a=t.get("startValue",!0));var o=this._modelMinRaw=a;K(o)?this._modelMinNum=Ns(e,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Ns(e,o));var s=this._modelMaxRaw=t.get("max",!0);if(K(s)?this._modelMaxNum=Ns(e,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Ns(e,s)),i)this._axisDataLen=t.getCategories().length;else{var l=t.get("boundaryGap"),u=z(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[er(u[0],1),er(u[1],1)]}},r.prototype.calculate=function(){var e=this._isOrdinal,t=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=e?null:n-t||Math.abs(t),s=this._modelMinRaw==="dataMin"?t:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=e?i?0:NaN:t-a[0]*o),l==null&&(l=e?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var h=wo(s)||wo(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,c=this._determinedMax;return v!=null&&(s=v,u=!0),c!=null&&(l=c,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(e,t){this[sE[e]]=t},r.prototype.setDeterminedMinMax=function(e,t){var n=oE[e];this[n]=t},r.prototype.freeze=function(){this.frozen=!0},r}(),oE={min:"_determinedMin",max:"_determinedMax"},sE={min:"_dataMin",max:"_dataMax"};function Fw(r,e,t){var n=r.rawExtentInfo;return n||(n=new aE(r,e,t),r.rawExtentInfo=n,n)}function Ns(r,e){return e==null?null:wo(e)?NaN:r.parse(e)}function Gw(r,e){var t=r.type,n=Fw(r,e,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=e.ecModel;if(o&&t==="time"){var s=Iw("bar",o),l=!1;if(T(s,function(h){l=l||h.getBaseAxis()===e.axis}),l){var u=Rw(s),f=lE(i,a,e,u);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function lE(r,e,t,n){var i=t.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=YR(n,t.axis);if(o===void 0)return{min:r,max:e};var s=1/0;T(o,function(c){s=Math.min(c.offset,s)});var l=-1/0;T(o,function(c){l=Math.max(c.offset+c.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=e-r,h=1-(s+l)/a,v=f/h-f;return e+=v*(l/u),r-=v*(s/u),{min:r,max:e}}function fa(r,e){var t=e,n=Gw(r,t),i=n.extent,a=t.get("splitNumber");r instanceof iE&&(r.base=t.get("logBase"));var o=r.type,s=t.get("interval"),l=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?t.get("minInterval"):null,maxInterval:l?t.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function Gu(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new xp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new zw({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ur.getClass(e)||bn)}}function uE(r){var e=r.scale.getExtent(),t=e[0],n=e[1];return!(t>0&&n>0||t<0&&n<0)}function Ta(r){var e=r.getLabelModel().get("formatter"),t=r.type==="category"?r.scale.getExtent()[0]:null;return r.scale.type==="time"?function(n){return function(i,a){return r.scale.getFormattedLabel(i,a,n)}}(e):G(e)?function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a!=null?a:"");return o}}(e):K(e)?function(n){return function(i,a){return t!=null&&(a=i.value-t),n(Cp(r,i),a,i.level!=null?{level:i.level}:null)}}(e):function(n){return r.scale.getLabel(n)}}function Cp(r,e){return r.type==="category"?r.scale.getLabel(e):e.value}function fE(r){var e=r.model,t=r.scale;if(!(!e.get(["axisLabel","show"])||t.isBlank())){var n,i,a=t.getExtent();t instanceof xp?i=t.count():(n=t.getTicks(),i=n.length);var o=r.getLabelModel(),s=Ta(r),l,u=1;i>40&&(u=Math.ceil(i/40));for(var f=0;f<i;f+=u){var h=n?n[f]:{value:a[0]+f},v=s(h,f),c=o.getTextRect(v),p=hE(c,o.get("rotate")||0);l?l.union(p):l=p}return l}}function hE(r,e){var t=e*Math.PI/180,n=r.width,i=r.height,a=n*Math.abs(Math.cos(t))+Math.abs(i*Math.sin(t)),o=n*Math.abs(Math.sin(t))+Math.abs(i*Math.cos(t)),s=new ct(r.x,r.y,a,o);return s}function Ap(r){var e=r.get("interval");return e==null?"auto":e}function Hw(r){return r.type==="category"&&Ap(r.getLabelModel())===0}function Ul(r,e){var t={};return T(r.mapDimensionsAll(e),function(n){t[Cw(r,n)]=!0}),at(t)}function cE(r,e,t){e&&T(Ul(e,t),function(n){var i=e.getApproximateExtent(n);i[0]<r[0]&&(r[0]=i[0]),i[1]>r[1]&&(r[1]=i[1])})}var rs=function(){function r(){}return r.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},r.prototype.getCoordSysModel=function(){},r}();function vE(r){return Nu(null,r)}var pE={isDimensionStacked:wn,enableDataStack:Tw,getStackedDimension:Cw};function dE(r,e){var t=e;e instanceof Tt||(t=new Tt(e));var n=Gu(t);return n.setExtent(r[0],r[1]),fa(n,t),n}function gE(r){$t(r,rs)}function yE(r,e){return e=e||{},Et(r,null,null,e.state!=="normal")}const mE=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:TR,createList:vE,createScale:dE,createSymbol:te,createTextStyle:yE,dataStack:pE,enableHoverEmphasis:dn,getECData:nt,getLayoutRect:ue,mixinAxisModelCommonMethods:gE},Symbol.toStringTag,{value:"Module"}));var Fy=[],_E={registerPreprocessor:dp,registerProcessor:gp,registerPostInit:vw,registerPostUpdate:pw,registerUpdateLifecycle:Ou,registerAction:ir,registerCoordinateSystem:dw,registerLayout:gw,registerVisual:Mn,registerTransform:mw,registerLoading:mp,registerMap:yw,registerImpl:NI,PRIORITY:iw,ComponentModel:ut,ComponentView:At,SeriesModel:Te,ChartView:Jt,registerComponentModel:function(r){ut.registerClass(r)},registerComponentView:function(r){At.registerClass(r)},registerSeriesModel:function(r){Te.registerClass(r)},registerChartView:function(r){Jt.registerClass(r)},registerSubTypeDefaulter:function(r,e){ut.registerSubTypeDefaulter(r,e)},registerPainter:function(r,e){B1(r,e)}};function Wt(r){if(z(r)){T(r,function(e){Wt(e)});return}st(Fy,r)>=0||(Fy.push(r),K(r)&&(r={install:r}),r.install(_E))}var SE=1e-8;function Gy(r,e){return Math.abs(r-e)<SE}function Hy(r,e,t){var n=0,i=r[0];if(!i)return!1;for(var a=1;a<r.length;a++){var o=r[a];n+=Pr(i[0],i[1],o[0],o[1],e,t),i=o}var s=r[0];return(!Gy(i[0],s[0])||!Gy(i[1],s[1]))&&(n+=Pr(i[0],i[1],s[0],s[1],e,t)),n!==0}var xE=[];function th(r,e){for(var t=0;t<r.length;t++)Vt(r[t],r[t],e)}function Wy(r,e,t,n){for(var i=0;i<r.length;i++){var a=r[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(Ir(e,e,a),Rr(t,t,a))}}function wE(r){for(var e=0,t=0,n=0,i=r.length,a=r[i-1][0],o=r[i-1][1],s=0;s<i;s++){var l=r[s][0],u=r[s][1],f=a*u-l*o;e+=f,t+=(a+l)*f,n+=(o+u)*f,a=l,o=u}return e?[t/e/3,n/e/3,e]:[r[0][0]||0,r[0][1]||0]}var Ww=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}(),$y=function(){function r(e,t){this.type="polygon",this.exterior=e,this.interiors=t}return r}(),Yy=function(){function r(e){this.type="linestring",this.points=e}return r}(),$w=function(r){E(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return e.prototype.calcCenter=function(){for(var t=this.geometries,n,i=0,a=0;a<t.length;a++){var o=t[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return wE(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(t){var n=this._rect;if(n&&!t)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return T(o,function(s){s.type==="polygon"?Wy(s.exterior,i,a,t):T(s.points,function(l){Wy(l,i,a,t)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new ct(i[0],i[1],a[0]-i[0],a[1]-i[1]),t||(this._rect=n),n},e.prototype.contain=function(t){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(t[0],t[1]))return!1;t:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Hy(l,t[0],t[1])){for(var f=0;f<(u?u.length:0);f++)if(Hy(u[f],t[0],t[1]))continue t;return!0}}}return!1},e.prototype.transformTo=function(t,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new ct(t,n,i,a),u=o.calculateTransform(l),f=this.geometries,h=0;h<f.length;h++){var v=f[h];v.type==="polygon"?(th(v.exterior,u),T(v.interiors,function(c){th(c,u)})):T(v.points,function(c){th(c,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 n=new e(t,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},e}(Ww),bE=function(r){E(e,r);function e(t,n){var i=r.call(this,t)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return e.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,n=t.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=Zo(xE),o=t;o&&!o.isGeoSVGGraphicRoot;)_r(a,o.getLocalTransform(),a),o=o.parent;return da(a,a),Vt(i,i,a),i},e}(Ww);function TE(r){if(!r.UTF8Encoding)return r;var e=r,t=e.UTF8Scale;t==null&&(t=1024);var n=e.features;return T(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=Yw(s,o,t);break;case"Polygon":eh(s,o,t);break;case"MultiLineString":eh(s,o,t);break;case"MultiPolygon":T(s,function(l,u){return eh(l,o[u],t)})}}),e.UTF8Encoding=!1,e}function eh(r,e,t){for(var n=0;n<r.length;n++)r[n]=Yw(r[n],e[n],t)}function Yw(r,e,t){for(var n=[],i=e[0],a=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+=i,l+=a,i=s,a=l,n.push([s/t,l/t])}return n}function Lc(r,e){return r=TE(r),V(xt(r.features,function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0}),function(t){var n=t.properties,i=t.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new $y(o[0],o.slice(1)));break;case"MultiPolygon":T(i.coordinates,function(l){l[0]&&a.push(new $y(l[0],l.slice(1)))});break;case"LineString":a.push(new Yy([i.coordinates]));break;case"MultiLineString":a.push(new Yy(i.coordinates))}var s=new $w(n[e||"name"],a,n.cp);return s.properties=n,s})}const CE=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:TM,asc:gr,getPercentWithPrecision:wM,getPixelPrecision:Sv,getPrecision:yr,getPrecisionSafe:F1,isNumeric:bv,isRadianAroundZero:Ao,linearMap:wt,nice:wv,numericToNumber:Mo,parseDate:be,quantile:AM,quantity:H1,quantityExponent:lu,reformIntervals:nc,remRadian:xv,round:Pt},Symbol.toStringTag,{value:"Module"})),AE=Object.freeze(Object.defineProperty({__proto__:null,format:ts,parse:be},Symbol.toStringTag,{value:"Module"})),ME=Object.freeze(Object.defineProperty({__proto__:null,Arc:gu,BezierCurve:kv,BoundingRect:ct,Circle:Wr,CompoundPath:yu,Ellipse:du,Group:it,Image:fe,IncrementalDisplayable:zS,Line:ie,LinearGradient:Qo,Polygon:br,Polyline:Ge,RadialGradient:Ov,Rect:pt,Ring:Jo,Sector:wr,Text:dt,clipPointsByRect:Gv,clipRectByRect:HS,createIcon:ya,extendPath:FS,extendShape:VS,getShapeClass:zv,getTransform:gn,initProps:oe,makeImage:Vv,makePath:mu,mergePath:Be,registerShape:He,resizePath:Fv,updateProps:It},Symbol.toStringTag,{value:"Module"})),DE=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Zv,capitalFirst:dL,encodeHTML:Ht,formatTime:pL,formatTpl:Kv,getTextRect:cL,getTooltipMarker:rx,normalizeCssArray:Sa,toCamelCase:qv,truncateText:eD},Symbol.toStringTag,{value:"Module"})),LE=Object.freeze(Object.defineProperty({__proto__:null,bind:W,clone:Z,curry:ht,defaults:q,each:T,extend:O,filter:xt,indexOf:st,inherits:uv,isArray:z,isFunction:K,isObject:U,isString:G,map:V,merge:Q,reduce:Ve},Symbol.toStringTag,{value:"Module"}));var Vo=St();function Uw(r,e){var t=V(e,function(n){return r.scale.parse(n)});return r.type==="time"&&t.length>0&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function PE(r){var e=r.getLabelModel().get("customValues");if(e){var t=Ta(r),n=r.scale.getExtent(),i=Uw(r,e),a=xt(i,function(o){return o>=n[0]&&o<=n[1]});return{labels:V(a,function(o){var s={value:o};return{formattedLabel:t(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?RE(r):kE(r)}function IE(r,e){var t=r.getTickModel().get("customValues");if(t){var n=r.scale.getExtent(),i=Uw(r,t);return{ticks:xt(i,function(a){return a>=n[0]&&a<=n[1]})}}return r.type==="category"?EE(r,e):{ticks:V(r.scale.getTicks(),function(a){return a.value})}}function RE(r){var e=r.getLabelModel(),t=Xw(r,e);return!e.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:t.labelCategoryInterval}:t}function Xw(r,e){var t=Zw(r,"labels"),n=Ap(e),i=qw(t,n);if(i)return i;var a,o;return K(n)?a=Jw(r,n):(o=n==="auto"?OE(r):n,a=jw(r,o)),Kw(t,n,{labels:a,labelCategoryInterval:o})}function EE(r,e){var t=Zw(r,"ticks"),n=Ap(e),i=qw(t,n);if(i)return i;var a,o;if((!e.get("show")||r.scale.isBlank())&&(a=[]),K(n))a=Jw(r,n,!0);else if(n==="auto"){var s=Xw(r,r.getLabelModel());o=s.labelCategoryInterval,a=V(s.labels,function(l){return l.tickValue})}else o=n,a=jw(r,o,!0);return Kw(t,n,{ticks:a,tickCategoryInterval:o})}function kE(r){var e=r.scale.getTicks(),t=Ta(r);return{labels:V(e,function(n,i){return{level:n.level,formattedLabel:t(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function Zw(r,e){return Vo(r)[e]||(Vo(r)[e]=[])}function qw(r,e){for(var t=0;t<r.length;t++)if(r[t].key===e)return r[t].value}function Kw(r,e,t){return r.push({key:e,value:t}),t}function OE(r){var e=Vo(r).autoInterval;return e!=null?e:Vo(r).autoInterval=r.calculateCategoryInterval()}function BE(r){var e=NE(r),t=Ta(r),n=(e.axisRotate-e.labelRotate)/180*Math.PI,i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=r.dataToCoord(l+1)-r.dataToCoord(l),f=Math.abs(u*Math.cos(n)),h=Math.abs(u*Math.sin(n)),v=0,c=0;l<=a[1];l+=s){var p=0,d=0,g=Ko(t({value:l}),e.font,"center","top");p=g.width*1.3,d=g.height*1.3,v=Math.max(v,p,7),c=Math.max(c,d,7)}var y=v/f,m=c/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Vo(r.model),w=r.getExtent(),x=S.lastAutoInterval,b=S.lastTickCount;return x!=null&&b!=null&&Math.abs(x-_)<=1&&Math.abs(b-o)<=1&&x>_&&S.axisExtent0===w[0]&&S.axisExtent1===w[1]?_=x:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=w[0],S.axisExtent1=w[1]),_}function NE(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 jw(r,e,t){var n=Ta(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],f=i.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Hw(r),v=o.get("showMinLabel")||h,c=o.get("showMaxLabel")||h;v&&u!==a[0]&&d(a[0]);for(var p=u;p<=a[1];p+=l)d(p);c&&p-l!==a[1]&&d(a[1]);function d(g){var y={value:g};s.push(t?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function Jw(r,e,t){var n=r.scale,i=Ta(r),a=[];return T(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;e(o.value,s)&&a.push(t?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Uy=[0,1],zE=function(){function r(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return r.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},r.prototype.containData=function(e){return this.scale.contain(e)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(e){return Sv(e||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},r.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(n=n.slice(),Xy(n,i.count())),wt(e,Uy,n,t)},r.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),Xy(n,i.count()));var a=wt(e,n,Uy,t);return this.scale.scale(a)},r.prototype.pointToData=function(e,t){},r.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=IE(this,t),i=n.ticks,a=V(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=t.get("alignWithLabel");return VE(this,a,o,e.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=V(n,function(a){return V(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return PE(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return BE(this)},r}();function Xy(r,e){var t=r[1]-r[0],n=e,i=t/n/2;r[0]+=i,r[1]-=i}function VE(r,e,t,n){var i=e.length;if(!r.onBand||t||!i)return;var a=r.getExtent(),o,s;if(i===1)e[0].coord=a[0],o=e[1]={coord:a[1],tickValue:e[0].tickValue};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;T(e,function(c){c.coord-=u/2});var f=r.scale.getExtent();s=1+f[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s,tickValue:f[1]+1},e.push(o)}var h=a[0]>a[1];v(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&v(a[0],e[0].coord)&&e.unshift({coord:a[0]}),v(a[1],o.coord)&&(n?o.coord=a[1]:e.pop()),n&&v(o.coord,a[1])&&e.push({coord:a[1]});function v(c,p){return c=Pt(c),p=Pt(p),h?c>p:c<p}}const ar=zE;function FE(r){var e=ut.extend(r);return ut.registerClass(e),e}function GE(r){var e=At.extend(r);return At.registerClass(e),e}function HE(r){var e=Te.extend(r);return Te.registerClass(e),e}function WE(r){var e=Jt.extend(r);return Jt.registerClass(e),e}Fr.CMD;function Qw(r,e,t,n,i,a,o,s){var l=i-r,u=a-e,f=t-r,h=n-e,v=Math.sqrt(f*f+h*h);f/=v,h/=v;var c=l*f+u*h,p=c/v;s&&(p=Math.min(Math.max(p,0),1)),p*=v;var d=o[0]=r+p*f,g=o[1]=e+p*h;return Math.sqrt((d-i)*(d-i)+(g-a)*(g-a))}var fn=new rt,Lt=new rt,Gt=new rt,hn=new rt,dr=new rt,Xl=[],ne=new rt;function $E(r,e){if(e<=180&&e>0){e=e/180*Math.PI,fn.fromArray(r[0]),Lt.fromArray(r[1]),Gt.fromArray(r[2]),rt.sub(hn,fn,Lt),rt.sub(dr,Gt,Lt);var t=hn.len(),n=dr.len();if(!(t<.001||n<.001)){hn.scale(1/t),dr.scale(1/n);var i=hn.dot(dr),a=Math.cos(e);if(a<i){var o=Qw(Lt.x,Lt.y,Gt.x,Gt.y,fn.x,fn.y,Xl,!1);ne.fromArray(Xl),ne.scaleAndAdd(dr,o/Math.tan(Math.PI-e));var s=Gt.x!==Lt.x?(ne.x-Lt.x)/(Gt.x-Lt.x):(ne.y-Lt.y)/(Gt.y-Lt.y);if(isNaN(s))return;s<0?rt.copy(ne,Lt):s>1&&rt.copy(ne,Gt),ne.toArray(r[1])}}}}function YE(r,e,t){if(t<=180&&t>0){t=t/180*Math.PI,fn.fromArray(r[0]),Lt.fromArray(r[1]),Gt.fromArray(r[2]),rt.sub(hn,Lt,fn),rt.sub(dr,Gt,Lt);var n=hn.len(),i=dr.len();if(!(n<.001||i<.001)){hn.scale(1/n),dr.scale(1/i);var a=hn.dot(e),o=Math.cos(t);if(a<o){var s=Qw(Lt.x,Lt.y,Gt.x,Gt.y,fn.x,fn.y,Xl,!1);ne.fromArray(Xl);var l=Math.PI/2,u=Math.acos(dr.dot(e)),f=l+u-t;if(f>=l)rt.copy(ne,Gt);else{ne.scaleAndAdd(dr,s/Math.tan(Math.PI/2-f));var h=Gt.x!==Lt.x?(ne.x-Lt.x)/(Gt.x-Lt.x):(ne.y-Lt.y)/(Gt.y-Lt.y);if(isNaN(h))return;h<0?rt.copy(ne,Lt):h>1&&rt.copy(ne,Gt)}ne.toArray(r[1])}}}}function rh(r,e,t,n){var i=t==="normal",a=i?r:r.ensureState(t);a.ignore=e;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?r.useStyle(s):a.style=s}function UE(r,e){var t=e.smooth,n=e.points;if(n)if(r.moveTo(n[0][0],n[0][1]),t>0&&n.length>=3){var i=Sl(n[0],n[1]),a=Sl(n[1],n[2]);if(!i||!a){r.lineTo(n[1][0],n[1][1]),r.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*t,s=Js([],n[1],n[0],o/i),l=Js([],n[1],n[2],o/a),u=Js([],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],n[2][0],n[2][1])}else for(var f=1;f<n.length;f++)r.lineTo(n[f][0],n[f][1])}function XE(r,e,t){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<Pl.length;l++){var u=Pl[l],f=e[u],h=u==="normal";if(f){var v=f.get("show"),c=h?s:j(i.states[u]&&i.states[u].ignore,s);if(c||!j(v,o)){var p=h?n:n&&n.states[u];p&&(p.ignore=!0),n&&rh(n,!0,u,f);continue}n||(n=new Ge,r.setTextGuideLine(n),!h&&(s||!o)&&rh(n,!0,"normal",e.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),rh(n,!1,u,f)}}if(n){q(n.style,t),n.style.fill=null;var d=a.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=d||!1,n.buildPath=UE}}function ZE(r,e){e=e||"labelLine";for(var t={normal:r.getModel(e)},n=0;n<Fe.length;n++){var i=Fe[n];t[i]=r.getModel([i,e])}return t}function qE(r){for(var e=[],t=0;t<r.length;t++){var n=r[t];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var f=s?new Il(o,a):null;e.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return e}function KE(r,e,t,n,i,a){var o=r.length;if(o<2)return;r.sort(function(C,A){return C.rect[e]-A.rect[e]});for(var s=0,l,u=!1,f=0,h=0;h<o;h++){var v=r[h],c=v.rect;l=c[e]-s,l<0&&(c[e]-=l,v.label[e]-=l,u=!0);var p=Math.max(-l,0);f+=p,s=c[e]+c[t]}f>0&&a&&w(-f/o,0,o);var d=r[0],g=r[o-1],y,m;_(),y<0&&x(-y,.8),m<0&&x(m,.8),_(),S(y,m,1),S(m,y,-1),_(),y<0&&b(-y),m<0&&b(m);function _(){y=d.rect[e]-n,m=i-g.rect[e]-g.rect[t]}function S(C,A,M){if(C<0){var D=Math.min(A,-C);if(D>0){w(D*M,0,o);var L=D+C;L<0&&x(-L*M,1)}else x(-C*M,1)}}function w(C,A,M){C!==0&&(u=!0);for(var D=A;D<M;D++){var L=r[D],P=L.rect;P[e]+=C,L.label[e]+=C}}function x(C,A){for(var M=[],D=0,L=1;L<o;L++){var P=r[L-1].rect,I=Math.max(r[L].rect[e]-P[e]-P[t],0);M.push(I),D+=I}if(D){var R=Math.min(Math.abs(C)/D,A);if(C>0)for(var L=0;L<o-1;L++){var k=M[L]*R;w(k,0,L+1)}else for(var L=o-1;L>0;L--){var k=M[L-1]*R;w(-k,L,o)}}}function b(C){var A=C<0?-1:1;C=Math.abs(C);for(var M=Math.ceil(C/(o-1)),D=0;D<o-1;D++)if(A>0?w(M,0,D+1):w(-M,o-D-1,o),C-=M,C<=0)return}return u}function jE(r,e,t,n){return KE(r,"y","height",e,t,n)}function JE(r){var e=[];r.sort(function(d,g){return g.priority-d.priority});var t=new ct(0,0,0,0);function n(d){if(!d.ignore){var g=d.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}d.ignore=!0}for(var i=0;i<r.length;i++){var a=r[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,f=a.labelLine;t.copy(a.rect),t.width-=.1,t.height-=.1,t.x+=.05,t.y+=.05;for(var h=a.obb,v=!1,c=0;c<e.length;c++){var p=e[c];if(t.intersect(p.rect)){if(o&&p.axisAligned){v=!0;break}if(p.obb||(p.obb=new Il(p.localRect,p.transform)),h||(h=new Il(s,l)),h.intersect(p.obb)){v=!0;break}}}v?(n(u),f&&n(f)):(u.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),e.push(a))}}const Zy=Object.freeze(Object.defineProperty({__proto__:null,Axis:ar,ChartView:Jt,ComponentModel:ut,ComponentView:At,List:Bu,Model:Tt,PRIORITY:iw,SeriesModel:Te,color:OA,connect:nR,dataTool:fR,dependencies:VI,disConnect:iR,disconnect:cw,dispose:aR,env:ft,extendChartView:WE,extendComponentModel:FE,extendComponentView:GE,extendSeriesModel:HE,format:DE,getCoordinateSystemDimensions:sR,getInstanceByDom:vp,getInstanceById:oR,getMap:uR,graphic:ME,helper:mE,init:rR,innerDrawElementOnCanvas:qx,matrix:aA,number:CE,parseGeoJSON:Lc,parseGeoJson:Lc,registerAction:ir,registerCoordinateSystem:dw,registerLayout:gw,registerLoading:mp,registerLocale:$v,registerMap:yw,registerPostInit:vw,registerPostUpdate:pw,registerPreprocessor:dp,registerProcessor:gp,registerTheme:pp,registerTransform:mw,registerUpdateLifecycle:Ou,registerVisual:Mn,setCanvasCreator:lR,setPlatformAPI:q_,throttle:Ru,time:AE,use:Wt,util:LE,vector:HC,version:zI,zrUtil:EC,zrender:SM},Symbol.toStringTag,{value:"Module"}));var QE=function(r){E(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){return Nu(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var n=new it,i=te("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);n.add(i),i.setStyle(t.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=t.itemHeight*.8,u=te(s,(t.itemWidth-l)/2,(t.itemHeight-l)/2,l,l,t.itemStyle.fill);n.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="#fff",u.style.lineWidth=2),n},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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(Te);const tk=QE;function Hu(r,e){var t=r.mapDimensionsAll("defaultedLabel"),n=t.length;if(n===1){var i=ua(r,e,t[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<t.length;o++)a.push(ua(r,e,t[o]));return a.join(" ")}}function tb(r,e){var t=r.mapDimensionsAll("defaultedLabel");if(!z(e))return e+"";for(var n=[],i=0;i<t.length;i++){var a=r.getDimensionIndex(t[i]);a>=0&&n.push(e[a])}return n.join(" ")}var ek=function(r){E(e,r);function e(t,n,i,a){var o=r.call(this)||this;return o.updateData(t,n,i,a),o}return e.prototype._createSymbol=function(t,n,i,a,o){this.removeAll();var s=te(t,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=rk,this._symbolType=t,this.add(s)},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(){oa(this.childAt(0))},e.prototype.downplay=function(){sa(this.childAt(0))},e.prototype.setZ=function(t,n){var i=this.childAt(0);i.zlevel=t,i.z=n},e.prototype.setDraggable=function(t,n){var i=this.childAt(0);i.draggable=t,i.cursor=!n&&t?"move":i.cursor},e.prototype.updateData=function(t,n,i,a){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",s=t.hostModel,l=e.getSymbolSize(t,n),u=o!==this._symbolType,f=a&&a.disableAnimation;if(u){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,l,h)}else{var v=this.childAt(0);v.silent=!1;var c={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(c):It(v,c,s,n),Io(v)}if(this._updateCommon(t,n,l,i,a),u){var v=this.childAt(0);if(!f){var c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,oe(v,c,s,n)}}f&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,n,i,a,o){var s=this.childAt(0),l=t.hostModel,u,f,h,v,c,p,d,g,y;if(a&&(u=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,v=a.focus,c=a.blurScope,d=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,p=a.emphasisDisabled),!a||t.hasItemOption){var m=a&&a.itemModel?a.itemModel:t.getItemModel(n),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),c=_.get("blurScope"),p=_.get("disabled"),d=Yr(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=t.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=Eu(t.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var x=t.getItemVisual(n,"style"),b=x.fill;if(s instanceof fe){var C=s.style;s.useStyle(O({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},x))}else s.__isEmptyBrush?s.useStyle(O({},x)):s.useStyle(x),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var A=t.getItemVisual(n,"liftZ"),M=this._z2;A!=null?M==null&&(this._z2=s.z2,s.z2+=A):M!=null&&(s.z2=M,this._z2=null);var D=o&&o.useNameLabel;$r(s,d,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:b,defaultOpacity:x.opacity});function L(R){return D?t.getName(R):Hu(t,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=h,s.ensureState("blur").style=f;var I=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*I,P.scaleY=this._sizeY*I,this.setSymbolScale(1),Sn(this,v,c,p)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,n,i){var a=this.childAt(0),o=nt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Po(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Po(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:t,removeOpt:s})},e.getSymbolSize=function(t,n){return lp(t.getItemVisual(n,"symbolSize"))},e}(it);function rk(r,e){this.parent.drift(r,e)}const Mp=ek;function nh(r,e,t,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(t))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&r.getItemVisual(t,"symbol")!=="none"}function qy(r){return r!=null&&!U(r)&&(r={isIgnore:r}),r||{}}function Ky(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:Yr(e),cursorStyle:e.get("cursor")}}var nk=function(){function r(e){this.group=new it,this._SymbolCtor=e||Mp}return r.prototype.updateData=function(e,t){this._progressiveEls=null,t=qy(t);var n=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=Ky(e),u={disableAnimation:s},f=t.getSymbolPoint||function(h){return e.getItemLayout(h)};a||n.removeAll(),e.diff(a).add(function(h){var v=f(h);if(nh(e,v,h,t)){var c=new o(e,h,l,u);c.setPosition(v),e.setItemGraphicEl(h,c),n.add(c)}}).update(function(h,v){var c=a.getItemGraphicEl(v),p=f(h);if(!nh(e,p,h,t)){n.remove(c);return}var d=e.getItemVisual(h,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==d)n.remove(c),c=new o(e,h,l,u),c.setPosition(p);else{c.updateData(e,h,l,u);var y={x:p[0],y:p[1]};s?c.attr(y):It(c,y,i)}n.add(c),e.setItemGraphicEl(h,c)}).remove(function(h){var v=a.getItemGraphicEl(h);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=e},r.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl(function(n,i){var a=e._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=Ky(e),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(e,t,n){this._progressiveEls=[],n=qy(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(nh(t,o,a,n)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(e){xu(this._progressiveEls||this.group,e)},r.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(i){i.fadeOut(function(){t.remove(i)},n.hostModel)}):t.removeAll()},r}();const ik=nk;function eb(r,e,t){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=ak(i,t),o=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=V(r.dimensions,function(p){return e.mapDimension(p)}),v=!1,c=e.getCalculationInfo("stackResultDimension");return wn(e,h[0])&&(v=!0,h[0]=c),wn(e,h[1])&&(v=!0,h[1]=c),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function ak(r,e){var t=0,n=r.scale.getExtent();return e==="start"?t=n[0]:e==="end"?t=n[1]:_t(e)&&!isNaN(e)?t=e:n[0]>0?t=n[0]:n[1]<0&&(t=n[1]),t}function rb(r,e,t,n){var i=NaN;r.stacked&&(i=t.get(t.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=t.get(r.baseDim,n),o[1-a]=i,e.dataToPoint(o)}function ok(r,e){var t=[];return e.diff(r).add(function(n){t.push({cmd:"+",idx:n})}).update(function(n,i){t.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){t.push({cmd:"-",idx:n})}).execute(),t}function sk(r,e,t,n,i,a,o,s){for(var l=ok(r,e),u=[],f=[],h=[],v=[],c=[],p=[],d=[],g=eb(i,e,o),y=r.getLayout("points")||[],m=e.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],w=!0,x=void 0,b=void 0;switch(S.cmd){case"=":x=S.idx*2,b=S.idx1*2;var C=y[x],A=y[x+1],M=m[b],D=m[b+1];(isNaN(C)||isNaN(A))&&(C=M,A=D),u.push(C,A),f.push(M,D),h.push(t[x],t[x+1]),v.push(n[b],n[b+1]),d.push(e.getRawIndex(S.idx1));break;case"+":var L=S.idx,P=g.dataDimsForPoint,I=i.dataToPoint([e.get(P[0],L),e.get(P[1],L)]);b=L*2,u.push(I[0],I[1]),f.push(m[b],m[b+1]);var R=rb(g,i,e,L);h.push(R[0],R[1]),v.push(n[b],n[b+1]),d.push(e.getRawIndex(L));break;case"-":w=!1}w&&(c.push(S),p.push(p.length))}p.sort(function(yt,Yt){return d[yt]-d[Yt]});for(var k=u.length,F=Er(k),B=Er(k),N=Er(k),H=Er(k),X=[],_=0;_<p.length;_++){var Y=p[_],ot=_*2,vt=Y*2;F[ot]=u[vt],F[ot+1]=u[vt+1],B[ot]=f[vt],B[ot+1]=f[vt+1],N[ot]=h[vt],N[ot+1]=h[vt+1],H[ot]=v[vt],H[ot+1]=v[vt+1],X[_]=c[Y]}return{current:F,next:B,stackedOnCurrent:N,stackedOnNext:H,status:X}}var Qr=Math.min,tn=Math.max;function pi(r,e){return isNaN(r)||isNaN(e)}function Pc(r,e,t,n,i,a,o,s,l){for(var u,f,h,v,c,p,d=t,g=0;g<n;g++){var y=e[d*2],m=e[d*2+1];if(d>=i||d<0)break;if(pi(y,m)){if(l){d+=a;continue}break}if(d===t)r[a>0?"moveTo":"lineTo"](y,m),h=y,v=m;else{var _=y-u,S=m-f;if(_*_+S*S<.5){d+=a;continue}if(o>0){for(var w=d+a,x=e[w*2],b=e[w*2+1];x===y&&b===m&&g<n;)g++,w+=a,d+=a,x=e[w*2],b=e[w*2+1],y=e[d*2],m=e[d*2+1],_=y-u,S=m-f;var C=g+1;if(l)for(;pi(x,b)&&C<n;)C++,w+=a,x=e[w*2],b=e[w*2+1];var A=.5,M=0,D=0,L=void 0,P=void 0;if(C>=n||pi(x,b))c=y,p=m;else{M=x-u,D=b-f;var I=y-u,R=x-y,k=m-f,F=b-m,B=void 0,N=void 0;if(s==="x"){B=Math.abs(I),N=Math.abs(R);var H=M>0?1:-1;c=y-H*B*o,p=m,L=y+H*N*o,P=m}else if(s==="y"){B=Math.abs(k),N=Math.abs(F);var X=D>0?1:-1;c=y,p=m-X*B*o,L=y,P=m+X*N*o}else B=Math.sqrt(I*I+k*k),N=Math.sqrt(R*R+F*F),A=N/(N+B),c=y-M*o*(1-A),p=m-D*o*(1-A),L=y+M*o*A,P=m+D*o*A,L=Qr(L,tn(x,y)),P=Qr(P,tn(b,m)),L=tn(L,Qr(x,y)),P=tn(P,Qr(b,m)),M=L-y,D=P-m,c=y-M*B/N,p=m-D*B/N,c=Qr(c,tn(u,y)),p=Qr(p,tn(f,m)),c=tn(c,Qr(u,y)),p=tn(p,Qr(f,m)),M=y-c,D=m-p,L=y+M*N/B,P=m+D*N/B}r.bezierCurveTo(h,v,c,p,y,m),h=L,v=P}else r.lineTo(y,m)}u=y,f=m,d+=a}return g}var nb=function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r}(),lk=function(r){E(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polyline",n}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nb},e.prototype.buildPath=function(t,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&pi(i[o*2-2],i[o*2-1]);o--);for(;a<o&&pi(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=Pc(t,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},e.prototype.getPointOn=function(t,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=Fr.CMD,s,l,u=n==="x",f=[],h=0;h<a.length;){var v=a[h++],c=void 0,p=void 0,d=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(v){case o.M:s=a[h++],l=a[h++];break;case o.L:if(c=a[h++],p=a[h++],_=u?(t-s)/(c-s):(t-l)/(p-l),_<=1&&_>=0){var S=u?(p-l)*_+l:(c-s)*_+s;return u?[t,S]:[S,t]}s=c,l=p;break;case o.C:c=a[h++],p=a[h++],d=a[h++],g=a[h++],y=a[h++],m=a[h++];var w=u?wl(s,c,d,y,t,f):wl(l,p,g,m,t,f);if(w>0)for(var x=0;x<w;x++){var b=f[x];if(b<=1&&b>=0){var S=u?kt(l,p,g,m,b):kt(s,c,d,y,b);return u?[t,S]:[S,t]}}s=y,l=m;break}}},e}(gt),uk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e}(nb),fk=function(r){E(e,r);function e(t){var n=r.call(this,t)||this;return n.type="ec-polygon",n}return e.prototype.getDefaultShape=function(){return new uk},e.prototype.buildPath=function(t,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&pi(i[s*2-2],i[s*2-1]);s--);for(;o<s&&pi(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=Pc(t,i,o,s,s,1,n.smooth,l,n.connectNulls);Pc(t,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,t.closePath()}},e}(gt);function ib(r,e,t,n,i){var a=r.getArea(),o=a.x,s=a.y,l=a.width,u=a.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 h=new pt({shape:{x:o,y:s,width:l,height:u}});if(e){var v=r.getBaseAxis(),c=v.isHorizontal(),p=v.inverse;c?(p&&(h.shape.x+=l),h.shape.width=0):(p||(h.shape.y+=u),h.shape.height=0);var d=K(i)?function(g){i(g,h)}:null;oe(h,{shape:{width:l,height:u,x:o,y:s}},t,null,n,d)}return h}function ab(r,e,t){var n=r.getArea(),i=Pt(n.r0,1),a=Pt(n.r,1),o=new wr({shape:{cx:Pt(r.cx,1),cy:Pt(r.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(e){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,oe(o,{shape:{endAngle:n.endAngle,r:a}},t)}return o}function ob(r,e,t,n,i){if(r){if(r.type==="polar")return ab(r,e,t);if(r.type==="cartesian2d")return ib(r,e,t,n,i)}else return null;return null}function Dp(r,e){return r.type===e}function jy(r,e){if(r.length===e.length){for(var t=0;t<r.length;t++)if(r[t]!==e[t])return;return!0}}function Jy(r){for(var e=1/0,t=1/0,n=-1/0,i=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(e=Math.min(o,e),n=Math.max(o,n)),isNaN(s)||(t=Math.min(s,t),i=Math.max(s,i))}return[[e,t],[n,i]]}function Qy(r,e){var t=Jy(r),n=t[0],i=t[1],a=Jy(e),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function tm(r){return _t(r)?r:r?.5:0}function hk(r,e,t){if(!t.valueDim)return[];for(var n=e.count(),i=Er(n*2),a=0;a<n;a++){var o=rb(t,r,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function en(r,e,t,n,i){var a=t.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],l=0,u=[],f=[],h=[],v=[];if(i){for(l=0;l<r.length;l+=2){var c=e||r;!isNaN(c[l])&&!isNaN(c[l+1])&&v.push(r[l],r[l+1])}r=v}for(l=0;l<r.length-2;l+=2)switch(h[0]=r[l+2],h[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),n){case"end":u[o]=h[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var p=(f[o]+h[o])/2,d=[];u[o]=d[o]=p,u[1-o]=f[1-o],d[1-o]=h[1-o],s.push(u[0],u[1]),s.push(d[0],d[1]);break;default:u[o]=f[o],u[1-o]=h[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function ck(r,e){var t=[],n=r.length,i,a;function o(f,h,v){var c=f.coord,p=(v-c)/(h.coord-c),d=gv(p,[f.color,h.color]);return{coord:v,color:d}}for(var s=0;s<n;s++){var l=r[s],u=l.coord;if(u<0)i=l;else if(u>e){a?t.push(o(a,l,e)):i&&t.push(o(i,l,0),o(i,l,e));break}else i&&(t.push(o(i,l,0)),i=null),t.push(l),a=l}return t}function vk(r,e,t){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&e.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=r.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=e.getAxis(i),u=V(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,h=a.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),h.reverse());var v=ck(u,i==="x"?t.getWidth():t.getHeight()),c=v.length;if(!c&&f)return u[0].coord<0?h[1]?h[1]:u[f-1].color:h[0]?h[0]:u[0].color;var p=10,d=v[0].coord-p,g=v[c-1].coord+p,y=g-d;if(y<.001)return"transparent";T(v,function(_){_.offset=(_.coord-d)/y}),v.push({offset:c?v[c-1].offset:.5,color:h[1]||"transparent"}),v.unshift({offset:c?v[0].offset:.5,color:h[0]||"transparent"});var m=new Qo(0,0,0,0,v,!0);return m[i]=d,m[i+"2"]=g,m}}}function pk(r,e,t){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=t.getAxesByScale("ordinal")[0];if(a&&!(i&&dk(a,e))){var o=e.mapDimension(a.dim),s={};return T(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function dk(r,e){var t=r.getExtent(),n=Math.abs(t[1]-t[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=e.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Mp.getSymbolSize(e,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function gk(r,e){return isNaN(r)||isNaN(e)}function yk(r){for(var e=r.length/2;e>0&&gk(r[e*2-2],r[e*2-1]);e--);return e-1}function em(r,e){return[r[e*2],r[e*2+1]]}function mk(r,e,t){for(var n=r.length/2,i=t==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=r[u*2+i],!(isNaN(o)||isNaN(r[u*2+1-i]))){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function sb(r){if(r.get(["endLabel","show"]))return!0;for(var e=0;e<Fe.length;e++)if(r.get([Fe[e],"endLabel","show"]))return!0;return!1}function ih(r,e,t,n){if(Dp(e,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=sb(n)?function(c,p){r._endLabelOnDuring(c,p,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),f=ib(e,t,n,function(){var c=r._endLabel;c&&t&&s.originalX!=null&&c.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var h=f.shape,v=Math.max(h.width,h.height);u?(h.y-=v,h.height+=v*2):(h.x-=v,h.width+=v*2)}return l&&l(1,f),f}else return ab(e,t,n)}function _k(r,e){var t=e.getBaseAxis(),n=t.isHorizontal(),i=t.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||a,verticalAlign:r.get("verticalAlign")||o}}}var Sk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(){var t=new it,n=new ik;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=t,this._changePolyState=W(this._changePolyState,this)},e.prototype.render=function(t,n,i){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=t.getModel("lineStyle"),u=t.getModel("areaStyle"),f=s.getLayout("points")||[],h=a.type==="polar",v=this._coordSys,c=this._symbolDraw,p=this._polyline,d=this._polygon,g=this._lineGroup,y=!n.ssr&&t.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=eb(a,s,_),w=m&&hk(a,s,S),x=t.get("showSymbol"),b=t.get("connectNulls"),C=x&&!h&&pk(t,s,a),A=this._data;A&&A.eachItemGraphicEl(function(yt,Yt){yt.__temp&&(o.remove(yt),A.setItemGraphicEl(Yt,null))}),x||c.remove(),o.add(g);var M=h?!1:t.get("step"),D;a&&a.getArea&&t.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var L=vk(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(p&&v.type===a.type&&M===this._step))x&&c.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(yt){return[f[yt*2],f[yt*2+1]]}}),y&&this._initSymbolLabelAnimation(s,a,D),M&&(w&&(w=en(w,f,a,M,b)),f=en(f,null,a,M,b)),p=this._newPolyline(f),m?d=this._newPolygon(f,w):d&&(g.remove(d),d=this._polygon=null),h||this._initOrUpdateEndLabel(t,a,_i(L)),g.setClipPath(ih(this,a,!0,t));else{m&&!d?d=this._newPolygon(f,w):d&&!m&&(g.remove(d),d=this._polygon=null),h||this._initOrUpdateEndLabel(t,a,_i(L));var P=g.getClipPath();if(P){var I=ih(this,a,!1,t);oe(P,{shape:I.shape},t)}else g.setClipPath(ih(this,a,!0,t));x&&c.updateData(s,{isIgnore:C,clipShape:D,disableAnimation:!0,getSymbolPoint:function(yt){return[f[yt*2],f[yt*2+1]]}}),(!jy(this._stackedOnPoints,w)||!jy(this._points,f))&&(y?this._doUpdateAnimation(s,w,a,i,M,_,b):(M&&(w&&(w=en(w,f,a,M,b)),f=en(f,null,a,M,b)),p.setShape({points:f}),d&&d.setShape({points:f,stackedOnPoints:w})))}var R=t.getModel("emphasis"),k=R.get("focus"),F=R.get("blurScope"),B=R.get("disabled");if(p.useStyle(q(l.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"})),la(p,t,"lineStyle"),p.style.lineWidth>0&&t.get(["emphasis","lineStyle","width"])==="bolder"){var N=p.getState("emphasis").style;N.lineWidth=+p.style.lineWidth+1}nt(p).seriesIndex=t.seriesIndex,Sn(p,k,F,B);var H=tm(t.get("smooth")),X=t.get("smoothMonotone");if(p.setShape({smooth:H,smoothMonotone:X,connectNulls:b}),d){var Y=s.getCalculationInfo("stackedOnSeries"),ot=0;d.useStyle(q(u.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Y&&(ot=tm(Y.get("smooth"))),d.setShape({smooth:H,stackedOnSmooth:ot,smoothMonotone:X,connectNulls:b}),la(d,t,"areaStyle"),nt(d).seriesIndex=t.seriesIndex,Sn(d,k,F,B)}var vt=this._changePolyState;s.eachItemGraphicEl(function(yt){yt&&(yt.onHoverStateChange=vt)}),this._polyline.onHoverStateChange=vt,this._data=s,this._coordSys=a,this._stackedOnPoints=w,this._points=f,this._step=M,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,p),d&&this.packEventData(t,d))},e.prototype.packEventData=function(t,n){nt(n).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,n,i,a){var o=t.getData(),s=mi(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],h=l[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var v=t.get("zlevel")||0,c=t.get("z")||0;u=new Mp(o,s),u.x=f,u.y=h,u.setZ(v,c);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=v,p.z=c,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Jt.prototype.highlight.call(this,t,n,i,a)},e.prototype.downplay=function(t,n,i,a){var o=t.getData(),s=mi(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Jt.prototype.downplay.call(this,t,n,i,a)},e.prototype._changePolyState=function(t){var n=this._polygon;sc(this._polyline,t),n&&sc(n,t)},e.prototype._newPolyline=function(t){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new lk({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},e.prototype._newPolygon=function(t,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new fk({shape:{points:t,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=t.hostModel,f=u.get("animationDuration");K(f)&&(f=f(null));var h=u.get("animationDelay")||0,v=K(h)?h(null):h;t.eachItemGraphicEl(function(c,p){var d=c;if(d){var g=[c.x,c.y],y=void 0,m=void 0,_=void 0;if(i)if(o){var S=i,w=n.pointToCoord(g);a?(y=S.startAngle,m=S.endAngle,_=-w[1]/180*Math.PI):(y=S.r0,m=S.r,_=w[0])}else{var x=i;a?(y=x.x,m=x.x+x.width,_=c.x):(y=x.y+x.height,m=x.y,_=c.y)}var b=m===y?0:(_-y)/(m-y);l&&(b=1-b);var C=K(h)?h(p):f*b+v,A=d.getSymbolPath(),M=A.getTextContent();d.attr({scaleX:0,scaleY:0}),d.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:C}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,n,i){var a=t.getModel("endLabel");if(sb(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 dt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=yk(l);f>=0&&($r(s,Yr(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:f,defaultText:function(h,v,c){return c!=null?tb(o,c):Hu(o,h)},enableTextSetter:!0},_k(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,n,i,a,o,s,l){var u=this._endLabel,f=this._polyline;if(u){t<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var h=i.getLayout("points"),v=i.hostModel,c=v.get("connectNulls"),p=s.get("precision"),d=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?d:0)*(m?-1:1),x=(y?0:-d)*(m?-1:1),b=y?"x":"y",C=mk(h,S,b),A=C.range,M=A[1]-A[0],D=void 0;if(M>=1){if(M>1&&!c){var L=em(h,A[0]);u.attr({x:L[0]+w,y:L[1]+x}),o&&(D=v.getRawValue(A[0]))}else{var L=f.getPointOn(S,b);L&&u.attr({x:L[0]+w,y:L[1]+x});var P=v.getRawValue(A[0]),I=v.getRawValue(A[1]);o&&(D=HM(i,p,P,I,C.t))}a.lastFrameIndex=A[0]}else{var R=t===1||a.lastFrameIndex>0?A[0]:0,L=em(h,R);o&&(D=v.getRawValue(R)),u.attr({x:L[0]+w,y:L[1]+x})}if(o){var k=bu(u);typeof k.setLabelText=="function"&&k.setLabelText(D)}}},e.prototype._doUpdateAnimation=function(t,n,i,a,o,s,l){var u=this._polyline,f=this._polygon,h=t.hostModel,v=sk(this._data,t,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),c=v.current,p=v.stackedOnCurrent,d=v.next,g=v.stackedOnNext;if(o&&(p=en(v.stackedOnCurrent,v.current,i,o,l),c=en(v.current,null,i,o,l),g=en(v.stackedOnNext,v.next,i,o,l),d=en(v.next,null,i,o,l)),Qy(c,d)>3e3||f&&Qy(p,g)>3e3){u.stopAnimation(),u.setShape({points:d}),f&&(f.stopAnimation(),f.setShape({points:d,stackedOnPoints:g}));return}u.shape.__points=v.current,u.shape.points=c;var y={shape:{points:d}};v.current!==c&&(y.shape.__points=v.next),u.stopAnimation(),It(u,y,h),f&&(f.setShape({points:c,stackedOnPoints:p}),f.stopAnimation(),It(f,{shape:{stackedOnPoints:g}},h),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=v.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=t.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var b=u.shape.__points,C=0;C<m.length;C++){var A=m[C].el,M=m[C].ptIdx*2;A.x=b[M],A.y=b[M+1],A.markRedraw()}})},e.prototype.remove=function(t){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(Jt);const xk=Sk;function wk(r,e){return{seriesType:r,plan:op(),reset:function(t){var n=t.getData(),i=t.coordinateSystem,a=t.pipelineContext,o=e||a.large;if(i){var s=V(i.dimensions,function(c){return n.mapDimension(c)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");wn(n,s[0])&&(s[0]=u),wn(n,s[1])&&(s[1]=u);var f=n.getStore(),h=n.getDimensionIndex(s[0]),v=n.getDimensionIndex(s[1]);return l&&{progress:function(c,p){for(var d=c.end-c.start,g=o&&Er(d*l),y=[],m=[],_=c.start,S=0;_<c.end;_++){var w=void 0;if(l===1){var x=f.get(h,_);w=i.dataToPoint(x,null,m)}else y[0]=f.get(h,_),y[1]=f.get(v,_),w=i.dataToPoint(y,null,m);o?(g[S++]=w[0],g[S++]=w[1]):p.setItemLayout(_,w.slice())}o&&p.setLayout("points",g)}}}}}}var bk={average:function(r){for(var e=0,t=0,n=0;n<r.length;n++)isNaN(r[n])||(e+=r[n],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]}},Tk=function(r){return Math.round(r.length/2)};function lb(r){return{seriesType:r,reset:function(e,t,n){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),h=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(h||1),c=Math.round(s/v);if(isFinite(c)&&c>1){a==="lttb"?e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/c)):a==="minmax"&&e.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/c));var p=void 0;G(a)?p=bk[a]:K(a)&&(p=a),p&&e.setData(i.downSample(i.mapDimension(u.dim),1/c,p,Tk))}}}}}function Ck(r){r.registerChartView(xk),r.registerSeriesModel(tk),r.registerLayout(wk("line",!0)),r.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,lb("line"))}var ub=function(r){E(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,n){return Nu(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(t),s=a.dataToPoint(o);if(i)T(a.getAxes(),function(v,c){if(v.type==="category"&&n!=null){var p=v.getTicksCoords(),d=v.getTickModel().get("alignWithLabel"),g=o[c],y=n[c]==="x1"||n[c]==="y1";if(y&&!d&&(g+=1),p.length<2)return;if(p.length===2){s[c]=v.toGlobalCoord(v.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,w=0;w<p.length;w++){var x=p[w].coord,b=w===p.length-1?p[w-1].tickValue+S:p[w].tickValue;if(b===g){_=x;break}else if(b<g)m=x;else if(m!=null&&b>g){_=(x+m)/2;break}w===1&&(S=b-p[0].tickValue)}_==null&&(m?m&&(_=p[p.length-1].coord):_=p[0].coord),s[c]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=u+f/2}return s}return[NaN,NaN]},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"},e}(Te);Te.registerClass(ub);const Zl=ub;var Ak=function(r){E(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 Nu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>t&&(t=n),t},e.prototype.brushSelector=function(t,n,i){return i.rect(n.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=An(Zl.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Zl);const Mk=Ak;var Dk=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}(),Lk=function(r){E(e,r);function e(t){var n=r.call(this,t)||this;return n.type="sausage",n}return e.prototype.getDefaultShape=function(){return new Dk},e.prototype.buildPath=function(t,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,f=n.startAngle,h=n.endAngle,v=n.clockwise,c=Math.PI*2,p=v?h-f<c:f-h<c;p||(f=h-(v?c:-c));var d=Math.cos(f),g=Math.sin(f),y=Math.cos(h),m=Math.sin(h);p?(t.moveTo(d*o+i,g*o+a),t.arc(d*u+i,g*u+a,l,-Math.PI+f,f,!v)):t.moveTo(d*s+i,g*s+a),t.arc(i,a,s,f,h,!v),t.arc(y*u+i,m*u+a,l,h-Math.PI*2,h-Math.PI,!v),o!==0&&t.arc(i,a,o,h,f,v)},e}(gt);const rm=Lk;function Pk(r,e){e=e||{};var t=e.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Ml(n,i,a);var s=r(o),l=i.distance!=null?i.distance:5,u=this.shape,f=u.cx,h=u.cy,v=u.r,c=u.r0,p=(v+c)/2,d=u.startAngle,g=u.endAngle,y=(d+g)/2,m=t?Math.abs(v-c)/2:0,_=Math.cos,S=Math.sin,w=f+v*_(d),x=h+v*S(d),b="left",C="top";switch(s){case"startArc":w=f+(c-l)*_(y),x=h+(c-l)*S(y),b="center",C="top";break;case"insideStartArc":w=f+(c+l)*_(y),x=h+(c+l)*S(y),b="center",C="bottom";break;case"startAngle":w=f+p*_(d)+zs(d,l+m,!1),x=h+p*S(d)+Vs(d,l+m,!1),b="right",C="middle";break;case"insideStartAngle":w=f+p*_(d)+zs(d,-l+m,!1),x=h+p*S(d)+Vs(d,-l+m,!1),b="left",C="middle";break;case"middle":w=f+p*_(y),x=h+p*S(y),b="center",C="middle";break;case"endArc":w=f+(v+l)*_(y),x=h+(v+l)*S(y),b="center",C="bottom";break;case"insideEndArc":w=f+(v-l)*_(y),x=h+(v-l)*S(y),b="center",C="top";break;case"endAngle":w=f+p*_(g)+zs(g,l+m,!0),x=h+p*S(g)+Vs(g,l+m,!0),b="left",C="middle";break;case"insideEndAngle":w=f+p*_(g)+zs(g,-l+m,!0),x=h+p*S(g)+Vs(g,-l+m,!0),b="right",C="middle";break;default:return Ml(n,i,a)}return n=n||{},n.x=w,n.y=x,n.align=b,n.verticalAlign=C,n}}function Ik(r,e,t,n){if(_t(n)){r.setTextConfig({rotation:n});return}else if(z(e)){r.setTextConfig({rotation:0});return}var i=r.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+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=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function zs(r,e,t){return e*Math.sin(r)*(t?-1:1)}function Vs(r,e,t){return e*Math.cos(r)*(t?1:-1)}function io(r,e,t){var n=r.get("borderRadius");if(n==null)return t?{cornerRadius:0}:null;z(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:V(n,function(a){return er(a,i)})}}var ah=Math.max,oh=Math.min;function Rk(r,e){var t=r.getArea&&r.getArea();if(Dp(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=e.getLayout("bandWidth");n.isHorizontal()?(t.x-=i,t.width+=i*2):(t.y-=i,t.height+=i*2)}}return t}var Ek=function(r){E(e,r);function e(){var t=r.call(this)||this;return t.type=e.type,t._isFirstFrame=!0,t}return e.prototype.render=function(t,n,i,a){this._model=t,this._removeOnRenderedListener(i),this._updateDrawMode(t);var o=t.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,n,i):this._renderNormal(t,n,i,a))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,n){this._progressiveEls=[],this._incrementalRenderLarge(t,n)},e.prototype.eachRendered=function(t){xu(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var n=t.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},e.prototype._renderNormal=function(t,n,i,a){var o=this.group,s=t.getData(),l=this._data,u=t.coordinateSystem,f=u.getBaseAxis(),h;u.type==="cartesian2d"?h=f.isHorizontal():u.type==="polar"&&(h=f.dim==="angle");var v=t.isAnimationEnabled()?t:null,c=kk(t,u);c&&this._enableRealtimeSort(c,s,i);var p=t.get("clip",!0)||c,d=Rk(u,s);o.removeClipPath();var g=t.get("roundCap",!0),y=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],w=this._backgroundEls,x=a&&a.isInitSort,b=a&&a.type==="changeAxisOrder";function C(D){var L=Fs[u.type](s,D),P=Gk(u,h,L);return P.useStyle(m.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),S[D]=P,P}s.diff(l).add(function(D){var L=s.getItemModel(D),P=Fs[u.type](s,D,L);if(y&&C(D),!(!s.hasValue(D)||!sm[u.type](P))){var I=!1;p&&(I=nm[u.type](d,P));var R=im[u.type](t,s,D,P,h,v,f.model,!1,g);c&&(R.forceLabelAnimation=!0),lm(R,s,D,L,P,t,h,u.type==="polar"),x?R.attr({shape:P}):c?am(c,v,R,P,D,h,!1,!1):oe(R,{shape:P},t,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=I}}).update(function(D,L){var P=s.getItemModel(D),I=Fs[u.type](s,D,P);if(y){var R=void 0;w.length===0?R=C(L):(R=w[L],R.useStyle(m.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[D]=R);var k=Fs[u.type](s,D),F=hb(h,k,u);It(R,{shape:F},v,D)}var B=l.getItemGraphicEl(L);if(!s.hasValue(D)||!sm[u.type](I)){o.remove(B);return}var N=!1;if(p&&(N=nm[u.type](d,I),N&&o.remove(B)),B?Io(B):B=im[u.type](t,s,D,I,h,v,f.model,!!B,g),c&&(B.forceLabelAnimation=!0),b){var H=B.getTextContent();if(H){var X=bu(H);X.prevValue!=null&&(X.prevValue=X.value)}}else lm(B,s,D,P,I,t,h,u.type==="polar");x?B.attr({shape:I}):c?am(c,v,B,I,D,h,!0,b):It(B,{shape:I},t,D,null),s.setItemGraphicEl(D,B),B.ignore=N,o.add(B)}).remove(function(D){var L=l.getItemGraphicEl(D);L&&Rl(L,t,D)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new it);A.removeAll();for(var M=0;M<S.length;++M)A.add(S[M]);o.add(A),this._backgroundEls=S,this._data=s},e.prototype._renderLarge=function(t,n,i){this._clear(),fm(t,this.group),this._updateLargeClip(t)},e.prototype._incrementalRenderLarge=function(t,n){this._removeBackground(),fm(n,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(t){var n=t.get("clip",!0)&&ob(t.coordinateSystem,!1,t),i=this.group;n?i.setClipPath(n):i.removeClipPath()},e.prototype._enableRealtimeSort=function(t,n,i){var a=this;if(n.count()){var o=t.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,t,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(t,n,i){var a=[];return t.each(t.mapDimension(n.dim),function(o,s){var l=i(s);l=l==null?NaN:l,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:V(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(t,n,i){for(var a=i.scale,o=t.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var f=t.rawIndexOf(o,a.getRawOrdinalNumber(l)),h=f<0?Number.MIN_VALUE:n(t.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},e.prototype._isOrderDifferentInView=function(t,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(t.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(t,n,i,a){if(this._isOrderChangedWithinSameData(t,n,i)){var o=this._dataSort(t,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(t,n,i){var a=n.baseAxis,o=this._dataSort(t,a,function(s){return t.get(t.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},e.prototype.remove=function(t,n){this._clear(this._model),this._removeOnRenderedListener(n)},e.prototype.dispose=function(t,n){this._removeOnRenderedListener(n)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var n=this.group,i=this._data;t&&t.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){Rl(a,t,nt(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Jt),nm={cartesian2d:function(r,e){var t=e.width<0?-1:1,n=e.height<0?-1:1;t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=r.x+r.width,a=r.y+r.height,o=ah(e.x,r.x),s=oh(e.x+e.width,i),l=ah(e.y,r.y),u=oh(e.y+e.height,a),f=s<o,h=u<l;return e.x=f&&o>i?s:o,e.y=h&&l>a?u:l,e.width=f?0:s-o,e.height=h?0:u-l,t<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),f||h},polar:function(r,e){var t=e.r0<=e.r?1:-1;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}var i=oh(e.r,r.r),a=ah(e.r0,r.r0);e.r=i,e.r0=a;var o=i-a<0;if(t<0){var n=e.r;e.r=e.r0,e.r0=n}return o}},im={cartesian2d:function(r,e,t,n,i,a,o,s,l){var u=new pt({shape:O({},n),z2:1});if(u.__dataIndex=t,u.name="item",a){var f=u.shape,h=i?"height":"width";f[h]=0}return u},polar:function(r,e,t,n,i,a,o,s,l){var u=!i&&l?rm:wr,f=new u({shape:n,z2:1});f.name="item";var h=fb(i);if(f.calculateTextPosition=Pk(h,{isRoundCap:u===rm}),a){var v=f.shape,c=i?"r":"endAngle",p={};v[c]=i?n.r0:n.startAngle,p[c]=n[c],(s?It:oe)(f,{shape:p},a)}return f}};function kk(r,e){var t=r.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&n.type==="category"&&e.type==="cartesian2d")return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}function am(r,e,t,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?It:oe)(t,{shape:l},e,i,null);var f=e?r.baseAxis.model:null;(o?It:oe)(t,{shape:u},f,i)}function om(r,e){for(var t=0;t<e.length;t++)if(!isFinite(r[e[t]]))return!0;return!1}var Ok=["x","y","width","height"],Bk=["cx","cy","r","startAngle","endAngle"],sm={cartesian2d:function(r){return!om(r,Ok)},polar:function(r){return!om(r,Bk)}},Fs={cartesian2d:function(r,e,t){var n=r.getItemLayout(e),i=t?zk(t,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(r,e,t){var n=r.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Nk(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function fb(r){return function(e){var t=e?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+t;default:return n}}}(r)}function lm(r,e,t,n,i,a,o,s){var l=e.getItemVisual(t,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=io(n.getModel("itemStyle"),f,!0);O(f,h),r.setShape(f)}}else{var u=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=n.getShallow("cursor");v&&r.attr("cursor",v);var c=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=Yr(n);$r(r,p,{labelFetcher:a,labelDataIndex:t,defaultText:Hu(a.getData(),t),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=r.getTextContent();if(s&&d){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,Ik(r,g==="outside"?c:g,fb(o),n.get(["label","rotate"]))}X2(d,p,a.getRawValue(t),function(m){return tb(e,m)});var y=n.getModel(["emphasis"]);Sn(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),la(r,n),Nk(i)&&(r.style.fill="none",r.style.stroke="none",T(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function zk(r,e){var t=r.get(["itemStyle","borderColor"]);if(!t||t==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(n,i,a)}var Vk=function(){function r(){}return r}(),um=function(r){E(e,r);function e(t){var n=r.call(this,t)||this;return n.type="largeBar",n}return e.prototype.getDefaultShape=function(){return new Vk},e.prototype.buildPath=function(t,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<i.length;f+=3)l[a]=u,l[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],t.rect(s[0],s[1],l[0],l[1])},e}(gt);function fm(r,e,t,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var f=new um({shape:{points:u},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),e.add(f),t&&t.push(f)}var h=new um({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,e.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,nt(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",hm),h.on("mousemove",hm)),t&&t.push(h)}var hm=Ru(function(r){var e=this,t=Fk(e,r.offsetX,r.offsetY);nt(e).dataIndex=t>=0?t:null},30,!1);function Fk(r,e,t){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,h=a.length/3;f<h;f++){var v=f*3;if(l[n]=u,l[i]=a[v+2],s[n]=a[v+n],s[i]=a[v+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&t>=s[1]&&t<=s[1]+l[1])return o[f]}return-1}function hb(r,e,t){if(Dp(t,"cartesian2d")){var n=e,i=t.getArea();return{x:r?n.x:i.x,y:r?i.y:n.y,width:r?n.width:i.width,height:r?i.height:n.height}}else{var i=t.getArea(),a=e;return{cx:i.cx,cy:i.cy,r0:r?i.r0:a.r0,r:r?i.r:a.r,startAngle:r?a.startAngle:0,endAngle:r?a.endAngle:Math.PI*2}}}function Gk(r,e,t){var n=r.type==="polar"?wr:pt;return new n({shape:hb(e,t,r),silent:!0,z2:0})}const Hk=Ek;function Wk(r){r.registerChartView(Hk),r.registerSeriesModel(Mk),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ht(Ew,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kw("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,lb("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var cm=Math.PI*2,Gs=Math.PI/180;function cb(r,e){return ue(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function vb(r,e){var t=cb(r,e),n=r.get("center"),i=r.get("radius");z(i)||(i=[0,i]);var a=et(t.width,e.getWidth()),o=et(t.height,e.getHeight()),s=Math.min(a,o),l=et(i[0],s/2),u=et(i[1],s/2),f,h,v=r.coordinateSystem;if(v){var c=v.dataToPoint(n);f=c[0]||0,h=c[1]||0}else z(n)||(n=[n,n]),f=et(n[0],a)+t.x,h=et(n[1],o)+t.y;return{cx:f,cy:h,r0:l,r:u}}function $k(r,e,t){e.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=cb(n,t),s=vb(n,t),l=s.cx,u=s.cy,f=s.r,h=s.r0,v=-n.get("startAngle")*Gs,c=n.get("endAngle"),p=n.get("padAngle")*Gs;c=c==="auto"?v-cm:-c*Gs;var d=n.get("minAngle")*Gs,g=d+p,y=0;i.each(a,function(F){!isNaN(F)&&y++});var m=i.getSum(a),_=Math.PI/(m||y)*2,S=n.get("clockwise"),w=n.get("roseType"),x=n.get("stillShowZeroSum"),b=i.getDataExtent(a);b[0]=0;var C=S?1:-1,A=[v,c],M=C*p/2;rS(A,!S),v=A[0],c=A[1];var D=pb(n);D.startAngle=v,D.endAngle=c,D.clockwise=S;var L=Math.abs(c-v),P=L,I=0,R=v;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(F,B){var N;if(isNaN(F)){i.setItemLayout(B,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:h,r:w?NaN:f});return}w!=="area"?N=m===0&&x?_:F*_:N=L/y,N<g?(N=g,P-=g):I+=F;var H=R+C*N,X=0,Y=0;p>N?(X=R+C*N/2,Y=X):(X=R+M,Y=H-M),i.setItemLayout(B,{angle:N,startAngle:X,endAngle:Y,clockwise:S,cx:l,cy:u,r0:h,r:w?wt(F,b,[h,f]):f}),R=H}),P<cm&&y)if(P<=.001){var k=L/y;i.each(a,function(F,B){if(!isNaN(F)){var N=i.getItemLayout(B);N.angle=k;var H=0,X=0;k<p?(H=v+C*(B+1/2)*k,X=H):(H=v+C*B*k+M,X=v+C*(B+1)*k-M),N.startAngle=H,N.endAngle=X}})}else _=P/I,R=v,i.each(a,function(F,B){if(!isNaN(F)){var N=i.getItemLayout(B),H=N.angle===g?g:F*_,X=0,Y=0;H<p?(X=R+C*H/2,Y=X):(X=R+M,Y=R+C*H-M),N.startAngle=X,N.endAngle=Y,R+=C*H}})})}var pb=St();function db(r){return{seriesType:r,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=e.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var Yk=Math.PI/180;function vm(r,e,t,n,i,a,o,s,l,u){if(r.length<2)return;function f(d){for(var g=d.rB,y=g*g,m=0;m<d.list.length;m++){var _=d.list[m],S=Math.abs(_.label.y-t),w=n+_.len,x=w*w,b=Math.sqrt(Math.abs((1-S*S/y)*x)),C=e+(b+_.len2)*i,A=C-_.label.x,M=_.targetTextWidth-A*i;gb(_,M,!0),_.label.x=C}}function h(d){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<d.length;m++)if(d[m].labelAlignTo==="none"){var _=d[m],S=_.label.y>t?y:g,w=Math.abs(_.label.y-t);if(w>=S.maxY){var x=_.label.x-e-_.len2*i,b=n+_.len,C=Math.abs(x)<b?Math.sqrt(w*w/(1-x*x/b/b)):b;S.rB=C,S.maxY=w}S.list.push(_)}f(g),f(y)}for(var v=r.length,c=0;c<v;c++)if(r[c].position==="outer"&&r[c].labelAlignTo==="labelLine"){var p=r[c].label.x-u;r[c].linePoints[1][0]+=p,r[c].label.x=u}jE(r,l,l+o)&&h(r)}function Uk(r,e,t,n,i,a,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,v=0;v<r.length;v++){var c=r[v].label;sh(r[v])||(c.x<e?(f=Math.min(f,c.x),l.push(r[v])):(h=Math.max(h,c.x),u.push(r[v])))}for(var v=0;v<r.length;v++){var p=r[v];if(!sh(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var c=p.label,d=p.linePoints,g=void 0;p.labelAlignTo==="edge"?c.x<e?g=d[2][0]-p.labelDistance-o-p.edgeDistance:g=o+i-p.edgeDistance-d[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?c.x<e?g=f-o-p.bleedMargin:g=o+i-h-p.bleedMargin:c.x<e?g=c.x-o-p.bleedMargin:g=o+i-c.x-p.bleedMargin,p.targetTextWidth=g,gb(p,g)}}vm(u,e,t,n,1,i,a,o,s,h),vm(l,e,t,n,-1,i,a,o,s,f);for(var v=0;v<r.length;v++){var p=r[v];if(!sh(p)&&p.linePoints){var c=p.label,d=p.linePoints,y=p.labelAlignTo==="edge",m=c.style.padding,_=m?m[1]+m[3]:0,S=c.style.backgroundColor?0:_,w=p.rect.width+S,x=d[1][0]-d[2][0];y?c.x<e?d[2][0]=o+p.edgeDistance+w+p.labelDistance:d[2][0]=o+i-p.edgeDistance-w-p.labelDistance:(c.x<e?d[2][0]=c.x+p.labelDistance:d[2][0]=c.x-p.labelDistance,d[1][0]=d[2][0]+x),d[1][1]=d[2][1]=c.y}}}function gb(r,e,t){if(t===void 0&&(t=!1),r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,f=a.width+(o?0:l);if(e<f||t){var h=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",e-l);var v=n.getBoundingRect();n.setStyle("width",Math.ceil(v.width)),n.setStyle("backgroundColor",o)}else{var c=e-l,p=e<f?c:t?c>r.unconstrainedWidth?null:c:null;n.setStyle("width",p)}var d=n.getBoundingRect();a.width=d.width;var g=(n.style.margin||0)+2.1;a.height=d.height+g,a.y-=(a.height-h)/2}}}function sh(r){return r.position==="center"}function Xk(r){var e=r.getData(),t=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*Yk,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,f=s.x,h=s.y,v=s.height;function c(x){x.ignore=!0}function p(x){if(!x.ignore)return!0;for(var b in x.states)if(x.states[b].ignore===!1)return!0;return!1}e.each(function(x){var b=e.getItemGraphicEl(x),C=b.shape,A=b.getTextContent(),M=b.getTextGuideLine(),D=e.getItemModel(x),L=D.getModel("label"),P=L.get("position")||D.get(["emphasis","label","position"]),I=L.get("distanceToLabelLine"),R=L.get("alignTo"),k=et(L.get("edgeDistance"),u),F=L.get("bleedMargin"),B=D.getModel("labelLine"),N=B.get("length");N=et(N,u);var H=B.get("length2");if(H=et(H,u),Math.abs(C.endAngle-C.startAngle)<o){T(A.states,c),A.ignore=!0,M&&(T(M.states,c),M.ignore=!0);return}if(p(A)){var X=(C.startAngle+C.endAngle)/2,Y=Math.cos(X),ot=Math.sin(X),vt,yt,Yt,he;n=C.cx,i=C.cy;var Nt=P==="inside"||P==="inner";if(P==="center")vt=C.cx,yt=C.cy,he="center";else{var Mt=(Nt?(C.r+C.r0)/2*Y:C.r*Y)+n,bt=(Nt?(C.r+C.r0)/2*ot:C.r*ot)+i;if(vt=Mt+Y*3,yt=bt+ot*3,!Nt){var J=Mt+Y*(N+l-C.r),lt=bt+ot*(N+l-C.r),ce=J+(Y<0?-1:1)*H,Dt=lt;R==="edge"?vt=Y<0?f+k:f+u-k:vt=ce+(Y<0?-I:I),yt=Dt,Yt=[[Mt,bt],[J,lt],[ce,Dt]]}he=Nt?"center":R==="edge"?Y>0?"right":"left":Y>0?"left":"right"}var $e=Math.PI,ve=0,Cr=L.get("rotate");if(_t(Cr))ve=Cr*($e/180);else if(P==="center")ve=0;else if(Cr==="radial"||Cr===!0){var Ai=Y<0?-X+$e:-X;ve=Ai}else if(Cr==="tangential"&&P!=="outside"&&P!=="outer"){var Ye=Math.atan2(Y,ot);Ye<0&&(Ye=$e*2+Ye);var is=ot>0;is&&(Ye=$e+Ye),ve=Ye-$e}if(a=!!ve,A.x=vt,A.y=yt,A.rotation=ve,A.setStyle({verticalAlign:"middle"}),Nt){A.setStyle({align:he});var Xu=A.states.select;Xu&&(Xu.x+=A.x,Xu.y+=A.y)}else{var Xr=A.getBoundingRect().clone();Xr.applyTransform(A.getComputedTransform());var id=(A.style.margin||0)+2.1;Xr.y-=id/2,Xr.height+=id,t.push({label:A,labelLine:M,position:P,len:N,len2:H,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new rt(Y,ot),linePoints:Yt,textAlign:he,labelDistance:I,labelAlignTo:R,edgeDistance:k,bleedMargin:F,rect:Xr,unconstrainedWidth:Xr.width,labelStyleWidth:A.style.width})}b.setTextConfig({inside:Nt})}}),!a&&r.get("avoidLabelOverlap")&&Uk(t,n,i,l,u,v,f,h);for(var d=0;d<t.length;d++){var g=t[d],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(T(y.states,c),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var w=g.linePoints;_||!w?(T(m.states,c),m.ignore=!0):($E(w,g.minTurnAngle),YE(w,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new rt(w[0][0],w[0][1])})}}}var Zk=function(r){E(e,r);function e(t,n,i){var a=r.call(this)||this;a.z2=2;var o=new dt;return a.setTextContent(o),a.updateData(t,n,i,!0),a}return e.prototype.updateData=function(t,n,i,a){var o=this,s=t.hostModel,l=t.getItemModel(n),u=l.getModel("emphasis"),f=t.getItemLayout(n),h=O(io(l.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var v=s.getShallow("animationType");s.ecModel.ssr?(oe(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):v==="scale"?(o.shape.r=f.r0,oe(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),oe(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,It(o,{shape:{endAngle:f.endAngle}},s,n))}else Io(o),It(o,{shape:h},s,n);o.useStyle(t.getItemVisual(n,"style")),la(o,l);var c=(f.startAngle+f.endAngle)/2,p=s.get("selectedOffset"),d=Math.cos(c)*p,g=Math.sin(c)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,t,n),o.ensureState("emphasis").shape=O({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},io(u.getModel("itemStyle"),f)),O(o.ensureState("select"),{x:d,y:g,shape:io(l.getModel(["select","itemStyle"]),f)}),O(o.ensureState("blur"),{shape:io(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&O(m.ensureState("select"),{x:d,y:g}),O(_.ensureState("select"),{x:d,y:g}),Sn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(t,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,f=l&&l.opacity;$r(a,Yr(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:f,defaultText:t.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var v=t.get(["label","position"]);if(v!=="outside"&&v!=="outer")a.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new Ge,this.setTextGuideLine(c)),XE(this,ZE(o),{stroke:u,opacity:Ji(s.get(["lineStyle","opacity"]),f,1)})}},e}(wr),qk=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}return e.prototype.render=function(t,n,i,a){var o=t.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),h=1;isNaN(f&&f.startAngle)&&h<o.count();++h)f=o.getItemLayout(h);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&t.get("showEmptyCircle")){var v=pb(t),c=new wr({shape:O(vb(t,i),v)});c.useStyle(t.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=c,l.add(c)}o.diff(s).add(function(p){var d=new Zk(o,p,u);o.setItemGraphicEl(p,d),l.add(d)}).update(function(p,d){var g=s.getItemGraphicEl(d);g.updateData(o,p,u),g.off("click"),l.add(g),o.setItemGraphicEl(p,g)}).remove(function(p){var d=s.getItemGraphicEl(p);Rl(d,t,p)}).execute(),Xk(t),t.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(t,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=t[0]-a.cx,s=t[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="pie",e}(Jt);const Kk=qk;function Lp(r,e,t){e=z(e)&&{coordDimensions:e}||O({encodeDefine:r.getEncode()},e);var n=r.getSource(),i=Sp(n,e).dimensions,a=new Bu(i,r);return a.initData(n,t),a}var jk=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 n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},r}();const yb=jk;var Jk=St(),Qk=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.init=function(t){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new yb(W(this.getData,this),W(this.getRawData,this)),this._defaultLabelLine(t)},e.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Lp(this,{coordDimensions:["value"],encodeDefaulter:ht(ux,this)})},e.prototype.getDataParams=function(t){var n=this.getData(),i=Jk(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=G1(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,t);return s.percent=a[t]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){Dl(t,"labelLine",["show"]);var n=t.labelLine,i=t.emphasis.labelLine;n.show=n.show&&t.label.show,i.show=i.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Te);const tO=Qk;function eO(r){return{seriesType:r,reset:function(e,t){var n=e.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(_t(o)&&!isNaN(o)&&o<0)})}}}function rO(r){r.registerChartView(Kk),r.registerSeriesModel(tO),Ux("pie",r.registerAction),r.registerLayout(ht($k,"pie")),r.registerProcessor(db("pie")),r.registerProcessor(eO("pie"))}var nO=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(ut);const iO=nO;var Ic=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ot).models[0]},e.type="cartesian2dAxis",e}(ut);$t(Ic,rs);var mb={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},aO=Q({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},mb),Pp=Q({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},mb),oO=Q({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Pp),sO=q({logBase:10},Pp);const _b={category:aO,value:Pp,time:oO,log:sO};var lO={value:1,category:1,time:1,log:1};function Fo(r,e,t,n){T(lO,function(i,a){var o=Q(Q({},_b[a],!0),n,!0),s=function(l){E(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=e+"Axis."+a,f}return u.prototype.mergeDefaultAndTheme=function(f,h){var v=ko(this),c=v?xa(f):{},p=h.getTheme();Q(f,p.get(a+"Axis")),Q(f,this.getDefaultOption()),f.type=pm(f),v&&xn(f,c,v)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Mc.createByAxisModel(this))},u.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=e+"Axis."+a,u.defaultOption=o,u}(t);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(e+"Axis",pm)}function pm(r){return r.type||(r.data?"category":"value")}var uO=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 V(this._dimList,function(e){return this._axes[e]},this)},r.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),xt(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}();const fO=uO;var Rc=["x","y"];function dm(r){return r.type==="interval"||r.type==="time"}var hO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=Rc,t}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!dm(t)||!dm(n))){var i=t.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,h=(s[1]-o[1])/u,v=o[0]-i[0]*f,c=o[1]-a[0]*h,p=this._transform=[f,0,0,h,v,c];this._invTransform=da([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(t[0]))&&i.contain(i.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,n){var i=this.dataToPoint(t),a=this.dataToPoint(n),o=this.getArea(),s=new ct(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(t,n,i){i=i||[];var a=t[0],o=t[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return Vt(i,t,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},e.prototype.clampData=function(t,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(t[0]),u=a.parse(t[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},e.prototype.pointToData=function(t,n){var i=[];if(this._invTransform)return Vt(i,t,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(t[0]),n),i[1]=o.coordToData(o.toLocalCoord(t[1]),n),i},e.prototype.getOtherAxis=function(t){return this.getAxis(t.dim==="x"?"y":"x")},e.prototype.getArea=function(t){t=t||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-t,o=Math.min(i[0],i[1])-t,s=Math.max(n[0],n[1])-a+t,l=Math.max(i[0],i[1])-o+t;return new ct(a,o,s,l)},e}(fO),cO=function(r){E(e,r);function e(t,n,i,a,o){var s=r.call(this,t,n,i)||this;return s.index=0,s.type=a||"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 n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),t&&n[0]>n[1]&&n.reverse(),n},e.prototype.pointToData=function(t,n){return this.coordToData(this.toLocalCoord(t[this.dim==="x"?0:1]),n)},e.prototype.setCategorySortInfo=function(t){if(this.type!=="category")return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(ar);const vO=cO;function Ec(r,e,t){t=t||{};var n=r.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},c=e.get("offset")||0,p=u==="x"?[h[2]-c,h[3]+c]:[h[0]-c,h[1]+c];if(o){var d=o.toGlobalCoord(o.dataToCoord(0));p[v.onZero]=Math.max(Math.min(d,p[1]),p[0])}a.position=[u==="y"?p[v[l]]:h[0],u==="x"?p[v[l]]:h[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?p[v[s]]-p[v.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Br(t.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function gm(r){return r.get("coordinateSystem")==="cartesian2d"}function ym(r){var e={xAxisModel:null,yAxisModel:null};return T(e,function(t,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,Ot).models[0];e[n]=a}),e}var lh=Math.log;function Sb(r,e,t){var n=bn.prototype,i=n.getTicks.call(t),a=n.getTicks.call(t,!0),o=i.length-1,s=n.getInterval.call(t),l=Gw(r,e),u=l.extent,f=l.fixMin,h=l.fixMax;if(r.type==="log"){var v=lh(r.base);u=[lh(u[0])/v,lh(u[1])/v]}r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var c=n.getExtent.call(r);f&&(u[0]=c[0]),h&&(u[1]=c[1]);var p=n.getInterval.call(r),d=u[0],g=u[1];if(f&&h)p=(g-d)/o;else if(f)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=Qf(p),g=u[0]+p*o;else if(h)for(d=u[1]-p*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)p=Qf(p),d=u[1]-p*o;else{var y=r.getTicks().length-1;y>o&&(p=Qf(p));var m=p*o;g=Math.ceil(u[1]/p)*p,d=Pt(g-m),d<0&&u[0]>=0?(d=0,g=Pt(m)):g>0&&u[1]<=0&&(g=0,d=-Pt(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,d+p*_,g+p*S),n.setInterval.call(r,p),(_||S)&&n.setNiceExtent.call(r,d+p,g-p)}var pO=function(){function r(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Rc,this._initCartesian(e,t,n),this.model=e}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(e,t){var n=this._axesMap;this._updateScale(e,this.model);function i(o){var s,l=at(o),u=l.length;if(u){for(var f=[],h=u-1;h>=0;h--){var v=+l[h],c=o[v],p=c.model,d=c.scale;Dc(d)&&p.get("alignTicks")&&p.get("interval")==null?f.push(c):(fa(d,p),Dc(d)&&(s=c))}f.length&&(s||(s=f.pop(),fa(s.scale,s.model)),T(f,function(g){Sb(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};T(n.x,function(o){mm(n,"y",o,a)}),T(n.y,function(o){mm(n,"x",o,a)}),this.resize(this.model,t)},r.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),a=!n&&e.get("containLabel"),o=ue(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(T(s,function(u){if(!u.model.get(["axisLabel","inside"])){var f=fE(u);if(f){var h=u.isHorizontal()?"height":"width",v=u.model.get(["axisLabel","margin"]);o[h]-=f[h]+v,u.position==="top"?o.y+=f.height+v:u.position==="left"&&(o.x+=f.width+v)}}}),l()),T(this._coordsList,function(u){u.calcAffineTransform()});function l(){T(s,function(u){var f=u.isHorizontal(),h=f?[0,o.width]:[0,o.height],v=u.inverse?1:0;u.setExtent(h[v],h[1-v]),dO(u,f?o.x:o.y)})}},r.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n="x"+e+"y"+t;return this._coordsMap[n]}U(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===t)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(e,t,n){var i=this._findConvertTarget(t);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(e){var t=e.seriesModel,n=e.xAxisModel||t&&t.getReferringComponents("xAxis",Ot).models[0],i=e.yAxisModel||t&&t.getReferringComponents("yAxis",Ot).models[0],a=e.gridModel,o=this._coordsList,s,l;if(t)s=t.coordinateSystem,st(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(a){var u=a.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,n){var i=this,a=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,h){T(s.y,function(v,c){var p="x"+h+"y"+c,d=new hO(p);d.master=i,d.model=e,i._coordsMap[p]=d,i._coordsList.push(d),d.addAxis(f),d.addAxis(v)})});function u(f){return function(h,v){if(uh(h,e)){var c=h.get("position");f==="x"?c!=="top"&&c!=="bottom"&&(c=o.bottom?"top":"bottom"):c!=="left"&&c!=="right"&&(c=o.left?"right":"left"),o[c]=!0;var p=new vO(f,Gu(h),[0,0],h.get("type"),c),d=p.type==="category";p.onBand=d&&h.get("boundaryGap"),p.inverse=h.get("inverse"),h.axis=p,p.model=h,p.grid=a,p.index=v,a._axesList.push(p),s[f][v]=p,l[f]++}}}},r.prototype._updateScale=function(e,t){T(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),e.eachSeries(function(i){if(gm(i)){var a=ym(i),o=a.xAxisModel,s=a.yAxisModel;if(!uh(o,t)||!uh(s,t))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),f=l.getAxis("x"),h=l.getAxis("y");n(u,f),n(u,h)}},this);function n(i,a){T(Ul(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(e){var t=[],n=[];return T(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);st(t,a)<0&&t.push(a),st(n,o)<0&&n.push(o)}),{baseAxes:t,otherAxes:n}},r.create=function(e,t){var n=[];return e.eachComponent("grid",function(i,a){var o=new r(i,e,t);o.name="grid_"+a,o.resize(i,t,!0),i.coordinateSystem=o,n.push(o)}),e.eachSeries(function(i){if(gm(i)){var a=ym(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=Rc,r}();function uh(r,e){return r.getCoordSysModel()===e}function mm(r,e,t,n){t.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[e],a,o=t.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)_m(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&_m(i[u])&&!n[f(i[u])]){a=i[u];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function _m(r){return r&&r.type!=="category"&&r.type!=="time"&&uE(r)}function dO(r,e){var t=r.getExtent(),n=t[0]+t[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+e}:function(i){return n-i+e},r.toLocalCoord=r.dim==="x"?function(i){return i-e}:function(i){return n-i+e}}const gO=pO;var cn=Math.PI,di=function(){function r(e,t){this.group=new it,this.opt=t,this.axisModel=e,q(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new it({x:t.position[0],y:t.position[1],rotation:t.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(e){return!!Sm[e]},r.prototype.add=function(e){Sm[e](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(e,t,n){var i=xv(t-e),a,o;return Ao(i)?(o=n>0?"top":"bottom",a="center"):Ao(i-cn)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<cn?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,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}(),Sm={axisLine:function(r,e,t,n){var i=e.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(Vt(s,s,o),Vt(l,l,o));var f=O({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new ie({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Ro(h.shape,h.style.lineWidth),h.anid="line",t.add(h);var v=e.get(["axisLine","symbol"]);if(v!=null){var c=e.get(["axisLine","symbolSize"]);G(v)&&(v=[v,v]),(G(c)||_t(c))&&(c=[c,c]);var p=Eu(e.get(["axisLine","symbolOffset"])||0,c),d=c[0],g=c[1];T([{rotate:r.rotation+Math.PI/2,offset:p[0],r:0},{rotate:r.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,m){if(v[m]!=="none"&&v[m]!=null){var _=te(v[m],-d/2,-g/2,d,g,f.stroke,!0),S=y.r+y.offset,w=u?l:s;_.attr({rotation:y.rotate,x:w[0]+S*Math.cos(r.rotation),y:w[1]-S*Math.sin(r.rotation),silent:!0,z2:11}),t.add(_)}})}}},axisTickLabel:function(r,e,t,n){var i=_O(t,n,e,r),a=xO(t,n,e,r);if(mO(e,a,i),SO(t,n,e,r.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=qE(V(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));JE(o)}},axisName:function(r,e,t,n){var i=Br(r.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),o=r.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),f=u[0]>u[1]?-1:1,h=[a==="start"?u[0]-f*l:a==="end"?u[1]+f*l:(u[0]+u[1])/2,wm(a)?r.labelOffset+o*l:0],v,c=e.get("nameRotate");c!=null&&(c=c*cn/180);var p;wm(a)?v=di.innerTextLayout(r.rotation,c!=null?c:r.rotation,o):(v=yO(r.rotation,a,c||0,u),p=r.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(v.rotation)),!isFinite(p)&&(p=null)));var d=s.getFont(),g=e.get("nameTruncate",!0)||{},y=g.ellipsis,m=Br(r.nameTruncateMaxWidth,g.maxWidth,p),_=new dt({x:h[0],y:h[1],rotation:v.rotation,silent:di.isLabelSilent(e),style:Et(s,{text:i,font:d,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(bi({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var S=di.makeAxisEventDataBase(e);S.targetType="axisName",S.name=i,nt(_).eventData=S}n.add(_),_.updateTransform(),t.add(_),_.decomposeTransform()}}};function yO(r,e,t,n){var i=xv(t-r),a,o,s=n[0]>n[1],l=e==="start"&&!s||e!=="start"&&s;return Ao(i-cn/2)?(o=l?"bottom":"top",a="center"):Ao(i-cn*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<cn*1.5&&i>cn/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function mO(r,e,t){if(!Hw(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);e=e||[],t=t||[];var a=e[0],o=e[1],s=e[e.length-1],l=e[e.length-2],u=t[0],f=t[1],h=t[t.length-1],v=t[t.length-2];n===!1?(Ae(a),Ae(u)):xm(a,o)&&(n?(Ae(o),Ae(f)):(Ae(a),Ae(u))),i===!1?(Ae(s),Ae(h)):xm(l,s)&&(i?(Ae(l),Ae(v)):(Ae(s),Ae(h)))}}function Ae(r){r&&(r.ignore=!0)}function xm(r,e){var t=r&&r.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(!(!t||!n)){var i=Zo([]);return Cn(i,i,-r.rotation),t.applyTransform(_r([],i,r.getLocalTransform())),n.applyTransform(_r([],i,e.getLocalTransform())),t.intersect(n)}}function wm(r){return r==="middle"||r==="center"}function xb(r,e,t,n,i){for(var a=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=t,e&&(Vt(o,o,e),Vt(s,s,e));var f=new ie({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Ro(f.shape,f.style.lineWidth),f.anid=i+"_"+r[l].tickValue,a.push(f)}return a}function _O(r,e,t,n){var i=t.axis,a=t.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),f=xb(u,e.transform,l,q(s.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function SO(r,e,t,n){var i=t.axis,a=t.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=q(s.getLineStyle(),q(t.getModel("axisTick").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=xb(o[f],e.transform,l,u,"minorticks_"+f),v=0;v<h.length;v++)r.add(h[v])}}function xO(r,e,t,n){var i=t.axis,a=Br(n.axisLabelShow,t.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=t.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Br(n.labelRotate,o.get("rotate"))||0)*cn/180,f=di.innerTextLayout(n.rotation,u,n.labelDirection),h=t.getCategories&&t.getCategories(!0),v=[],c=di.isLabelSilent(t),p=t.get("triggerEvent");return T(l,function(d,g){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(d.tickValue):d.tickValue,m=d.formattedLabel,_=d.rawLabel,S=o;if(h&&h[y]){var w=h[y];U(w)&&w.textStyle&&(S=new Tt(w.textStyle,o,t.ecModel))}var x=S.getTextColor()||t.get(["axisLine","lineStyle","color"]),b=i.dataToCoord(y),C=S.getShallow("align",!0)||f.textAlign,A=j(S.getShallow("alignMinLabel",!0),C),M=j(S.getShallow("alignMaxLabel",!0),C),D=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,L=j(S.getShallow("verticalAlignMinLabel",!0),D),P=j(S.getShallow("verticalAlignMaxLabel",!0),D),I=new dt({x:b,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:c,z2:10+(d.level||0),style:Et(S,{text:m,align:g===0?A:g===l.length-1?M:C,verticalAlign:g===0?L:g===l.length-1?P:D,fill:K(x)?x(i.type==="category"?_:i.type==="value"?y+"":y,g):x})});if(I.anid="label_"+y,bi({el:I,componentModel:t,itemName:m,formatterParamsExtra:{isTruncated:function(){return I.isTruncated},value:_,tickIndex:g}}),p){var R=di.makeAxisEventDataBase(t);R.targetType="axisLabel",R.value=_,R.tickIndex=g,i.type==="category"&&(R.dataIndex=y),nt(I).eventData=R}e.add(I),I.updateTransform(),v.push(I),r.add(I),I.decomposeTransform()}),v}}const Tn=di;function wO(r,e){var t={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return bO(t,r,e),t.seriesInvolved&&CO(t,r),t}function bO(r,e,t){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];T(t.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Go(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,h=f.getModel("tooltip",n);if(T(s.getAxes(),ht(d,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var v=h.get("trigger")==="axis",c=h.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(h.get(["axisPointer","axis"]));(v||c)&&T(p.baseAxes,ht(d,c?"cross":!0,v)),c&&T(p.otherAxes,ht(d,"cross",!1))}function d(g,y,m){var _=m.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!kc(_))){y==null&&(y=_.get("triggerTooltip")),_=g?TO(m,h,i,e,g,y):_;var w=_.get("snap"),x=_.get("triggerEmphasis"),b=Go(m.model),C=y||w||m.type==="category",A=r.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:C,snap:w,useHandle:kc(_),seriesModels:[],linkGroup:null};u[b]=A,r.seriesInvolved=r.seriesInvolved||C;var M=AO(a,m);if(M!=null){var D=o[M]||(o[M]={axesInfo:{}});D.axesInfo[b]=A,D.mapper=a[M].mapper,A.linkGroup=D}}}})}function TO(r,e,t,n,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};T(s,function(v){l[v]=Z(o.get(v))}),l.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var f=o.get(["label","show"]);if(u.show=f!=null?f:!0,!a){var h=l.lineStyle=o.get("crossStyle");h&&q(u,h.textStyle)}}return r.model.getModel("axisPointer",new Tt(l,t,n))}function CO(r,e){e.eachSeries(function(t){var n=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),a=t.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||t.get(["axisPointer","show"],!0)===!1||T(r.coordSysAxesInfo[Go(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(t),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=t.getData().count())})})}function AO(r,e){for(var t=e.model,n=e.dim,i=0;i<r.length;i++){var a=r[i]||{};if(fh(a[n+"AxisId"],t.id)||fh(a[n+"AxisIndex"],t.componentIndex)||fh(a[n+"AxisName"],t.name))return i}}function fh(r,e){return r==="all"||z(r)&&st(r,e)>=0||r===e}function MO(r){var e=Ip(r);if(e){var t=e.axisPointerModel,n=e.axis.scale,i=t.option,a=t.get("status"),o=t.get("value");o!=null&&(o=n.parse(o));var s=kc(t);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function Ip(r){var e=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Go(r)]}function DO(r){var e=Ip(r);return e&&e.axisPointerModel}function kc(r){return!!r.get(["handle","show"])}function Go(r){return r.type+"||"+r.id}var bm={},LO=function(r){E(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,n,i,a){this.axisPointerClass&&MO(t),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,i,!0)},e.prototype.updateAxisPointer=function(t,n,i,a){this._doUpdateAxisPointerClass(t,i,!1)},e.prototype.remove=function(t,n){var i=this._axisPointer;i&&i.remove(n)},e.prototype.dispose=function(t,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,n,i){var a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=DO(t);o?(this._axisPointer||(this._axisPointer=new a)).render(t,o,n,i):this._disposeAxisPointer(n)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,n){bm[t]=n},e.getAxisPointerClass=function(t){return t&&bm[t]},e.type="axis",e}(At);const ns=LO;var Oc=St();function PO(r,e,t,n){var i=t.axis;if(!i.scale.isBlank()){var a=t.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var f=s.length,h=Oc(r).splitAreaColors,v=$(),c=0;if(h)for(var p=0;p<u.length;p++){var d=h.get(u[p].tickValue);if(d!=null){c=(d+(f-1)*p)%f;break}}var g=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=z(s)?s:[s];for(var p=1;p<u.length;p++){var m=i.toGlobalCoord(u[p].coord),_=void 0,S=void 0,w=void 0,x=void 0;i.isHorizontal()?(_=g,S=l.y,w=m-_,x=l.height,g=_+w):(_=l.x,S=g,w=l.width,x=m-S,g=S+x);var b=u[p-1].tickValue;b!=null&&v.set(b,c),e.add(new pt({anid:b!=null?"area_"+b:null,shape:{x:_,y:S,width:w,height:x},style:q({fill:s[c]},y),autoBatch:!0,silent:!0})),c=(c+1)%f}Oc(r).splitAreaColors=v}}}function IO(r){Oc(r).splitAreaColors=null}var RO=["axisLine","axisTickLabel","axisName"],EO=["splitArea","splitLine","minorSplitLine"],wb=function(r){E(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,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new it,this.group.add(this._axisGroup),!!t.get("show")){var s=t.getCoordSysModel(),l=Ec(s,t),u=new Tn(t,O({handleAutoShown:function(h){for(var v=s.coordinateSystem.getCartesians(),c=0;c<v.length;c++)if(Dc(v[c].getOtherAxis(t.axis).scale))return!0;return!1}},l));T(RO,u.add,u),this._axisGroup.add(u.getGroup()),T(EO,function(h){t.get([h,"show"])&&kO[h](this,this._axisGroup,t,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||Su(o,this._axisGroup,t),r.prototype.render.call(this,t,n,i,a)}},e.prototype.remove=function(){IO(this)},e.type="cartesianAxis",e}(ns),kO={splitLine:function(r,e,t,n){var i=t.axis;if(!i.scale.isBlank()){var a=t.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),l=a.get("showMinLine")!==!1,u=a.get("showMaxLine")!==!1;s=z(s)?s:[s];for(var f=n.coordinateSystem.getRect(),h=i.isHorizontal(),v=0,c=i.getTicksCoords({tickModel:a}),p=[],d=[],g=o.getLineStyle(),y=0;y<c.length;y++){var m=i.toGlobalCoord(c[y].coord);if(!(y===0&&!l||y===c.length-1&&!u)){var _=c[y].tickValue;h?(p[0]=m,p[1]=f.y,d[0]=m,d[1]=f.y+f.height):(p[0]=f.x,p[1]=m,d[0]=f.x+f.width,d[1]=m);var S=v++%s.length,w=new ie({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:d[0],y2:d[1]},style:q({stroke:s[S]},g),silent:!0});Ro(w.shape,g.lineWidth),e.add(w)}}}},minorSplitLine:function(r,e,t,n){var i=t.axis,a=t.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var f=[],h=[],v=o.getLineStyle(),c=0;c<u.length;c++)for(var p=0;p<u[c].length;p++){var d=i.toGlobalCoord(u[c][p].coord);l?(f[0]=d,f[1]=s.y,h[0]=d,h[1]=s.y+s.height):(f[0]=s.x,f[1]=d,h[0]=s.x+s.width,h[1]=d);var g=new ie({anid:"minor_line_"+u[c][p].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:v,silent:!0});Ro(g.shape,v.lineWidth),e.add(g)}},splitArea:function(r,e,t,n){PO(r,e,t,n)}},bb=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="xAxis",e}(wb),OO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=bb.type,t}return e.type="yAxis",e}(wb),BO=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="grid",t}return e.prototype.render=function(t,n){this.group.removeAll(),t.get("show")&&this.group.add(new pt({shape:t.coordinateSystem.getRect(),style:q({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(At),Tm={offset:0};function NO(r){r.registerComponentView(BO),r.registerComponentModel(iO),r.registerCoordinateSystem("cartesian2d",gO),Fo(r,"x",Ic,Tm),Fo(r,"y",Ic,Tm),r.registerComponentView(bb),r.registerComponentView(OO),r.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function zO(r){r.eachSeriesByType("radar",function(e){var t=e.getData(),n=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();T(a,function(o,s){t.each(t.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var f=i.dataToPoint(l,s);n[u][s]=Cm(f)?f:Am(i)})}),t.each(function(o){var s=Q_(n[o],function(l){return Cm(l)})||Am(i);n[o].push(s.slice()),t.setItemLayout(o,n[o])})}})}function Cm(r){return!isNaN(r[0])&&!isNaN(r[1])}function Am(r){return[r.cx,r.cy]}function VO(r){var e=r.polar;if(e){z(e)||(e=[e]);var t=[];T(e,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),r.radar=r.radar||[],z(r.radar)||(r.radar=[r.radar]),r.radar.push(n)):t.push(n)}),r.polar=t}T(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var FO=function(r){E(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,n,i){var a=t.coordinateSystem,o=this.group,s=t.getData(),l=this._data;function u(v,c){var p=v.getItemVisual(c,"symbol")||"circle";if(p!=="none"){var d=lp(v.getItemVisual(c,"symbolSize")),g=te(p,-1,-1,2,2),y=v.getItemVisual(c,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:d[0]/2,scaleY:d[1]/2,rotation:y*Math.PI/180||0}),g}}function f(v,c,p,d,g,y){p.removeAll();for(var m=0;m<c.length-1;m++){var _=u(d,g);_&&(_.__dimIdx=m,v[m]?(_.setPosition(v[m]),ma[y?"initProps":"updateProps"](_,{x:c[m][0],y:c[m][1]},t,g)):_.setPosition(c[m]),p.add(_))}}function h(v){return V(v,function(c){return[a.cx,a.cy]})}s.diff(l).add(function(v){var c=s.getItemLayout(v);if(c){var p=new br,d=new Ge,g={shape:{points:c}};p.shape.points=h(c),d.shape.points=h(c),oe(p,g,t,v),oe(d,g,t,v);var y=new it,m=new it;y.add(d),y.add(p),y.add(m),f(d.shape.points,c,m,s,v,!0),s.setItemGraphicEl(v,y)}}).update(function(v,c){var p=l.getItemGraphicEl(c),d=p.childAt(0),g=p.childAt(1),y=p.childAt(2),m={shape:{points:s.getItemLayout(v)}};m.shape.points&&(f(d.shape.points,m.shape.points,y,s,v,!1),Io(g),Io(d),It(d,m,t),It(g,m,t),s.setItemGraphicEl(v,p))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,c){var p=s.getItemModel(c),d=v.childAt(0),g=v.childAt(1),y=v.childAt(2),m=s.getItemVisual(c,"style"),_=m.fill;o.add(v),d.useStyle(q(p.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),la(d,p,"lineStyle"),la(g,p,"areaStyle");var S=p.getModel("areaStyle"),w=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=w,T(["emphasis","select","blur"],function(C){var A=p.getModel([C,"areaStyle"]),M=A.isEmpty()&&A.parentModel.isEmpty();g.ensureState(C).ignore=M&&w}),g.useStyle(q(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=p.getModel("emphasis"),b=x.getModel("itemStyle").getItemStyle();y.eachChild(function(C){if(C instanceof fe){var A=C.style;C.useStyle(O({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},m))}else C.useStyle(m),C.setColor(_),C.style.strokeNoScale=!0;var M=C.ensureState("emphasis");M.style=Z(b);var D=s.getStore().get(s.getDimensionIndex(C.__dimIdx),c);(D==null||isNaN(D))&&(D=""),$r(C,Yr(p),{labelFetcher:s.hostModel,labelDataIndex:c,labelDimIndex:C.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:m.opacity})}),Sn(v,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Jt);const GO=FO;var HO=function(r){E(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 yb(W(this.getData,this),W(this.getRawData,this))},e.prototype.getInitialData=function(t,n){return Lp(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(t,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(t),u=l===""?this.name:l,f=kx(this,t);return xr("section",{header:u,sortBlocks:!0,blocks:V(s,function(h){var v=a.get(a.mapDimension(h.dim),t);return xr("nameValue",{markerType:"subItem",markerColor:f,name:h.name,value:v,sortParam:v})})})},e.prototype.getTooltipPosition=function(t){if(t!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(V(i.dimensions,function(u){return n.mapDimension(u)}),t),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},e.type="series.radar",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}(Te);const WO=HO;var $a=_b.value;function Hs(r,e){return q({show:e},r)}var $O=function(r){E(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"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),v=this.get("triggerEvent"),c=V(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var d=l;p.color!=null&&(d=q({color:p.color},l));var g=Q(Z(p),{boundaryGap:t,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:p.text,showName:u,nameLocation:"end",nameGap:h,nameTextStyle:d,triggerEvent:v},!1);if(G(f)){var y=g.name;g.name=f.replace("{value}",y!=null?y:"")}else K(f)&&(g.name=f(g.name,g));var m=new Tt(g,null,this.ecModel);return $t(m,rs.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=c},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Q({lineStyle:{color:"#bbb"}},$a.axisLine),axisLabel:Hs($a.axisLabel,!1),axisTick:Hs($a.axisTick,!1),splitLine:Hs($a.splitLine,!0),splitArea:Hs($a.splitArea,!0),indicator:[]},e}(ut);const YO=$O;var UO=["axisLine","axisTickLabel","axisName"],XO=function(r){E(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,n,i){var a=this.group;a.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var n=t.coordinateSystem,i=n.getIndicatorAxes(),a=V(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Tn(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});T(a,function(o){T(UO,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=t.get("shape"),o=t.getModel("splitLine"),s=t.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),v=l.get("color"),c=u.get("color"),p=z(v)?v:[v],d=z(c)?c:[c],g=[],y=[];function m(R,k,F){var B=F%k.length;return R[B]=R[B]||[],B}if(a==="circle")for(var _=i[0].getTicksCoords(),S=n.cx,w=n.cy,x=0;x<_.length;x++){if(f){var b=m(g,p,x);g[b].push(new Wr({shape:{cx:S,cy:w,r:_[x].coord}}))}if(h&&x<_.length-1){var b=m(y,d,x);y[b].push(new Jo({shape:{cx:S,cy:w,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var C,A=V(i,function(R,k){var F=R.getTicksCoords();return C=C==null?F.length-1:Math.min(F.length-1,C),V(F,function(B){return n.coordToPoint(B.coord,k)})}),M=[],x=0;x<=C;x++){for(var D=[],L=0;L<i.length;L++)D.push(A[L][x]);if(D[0]&&D.push(D[0].slice()),f){var b=m(g,p,x);g[b].push(new Ge({shape:{points:D}}))}if(h&&M){var b=m(y,d,x-1);y[b].push(new br({shape:{points:D.concat(M)}}))}M=D.slice().reverse()}var P=l.getLineStyle(),I=u.getAreaStyle();T(y,function(R,k){this.group.add(Be(R,{style:q({stroke:"none",fill:d[k%d.length]},I),silent:!0}))},this),T(g,function(R,k){this.group.add(Be(R,{style:q({fill:"none",stroke:p[k%p.length]},P),silent:!0}))},this)},e.type="radar",e}(At);const ZO=XO;var qO=function(r){E(e,r);function e(t,n,i){var a=r.call(this,t,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return e}(ar);const KO=qO;var jO=function(){function r(e,t,n){this.dimensions=[],this._model=e,this._indicatorAxes=V(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new KO(o,new bn);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(e,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(e,t){var n=this._indicatorAxes[t];return this.coordToPoint(n.dataToCoord(e),t)},r.prototype.coordToPoint=function(e,t){var n=this._indicatorAxes[t],i=n.angle,a=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[a,o]},r.prototype.pointToData=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=Math.sqrt(t*t+n*n);t/=i,n/=i;for(var a=Math.atan2(-n,t),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],h=Math.abs(a-f.angle);h<o&&(s=f,l=u,o=h)}return[l,+(s&&s.coordToData(i))]},r.prototype.resize=function(e,t){var n=e.get("center"),i=t.getWidth(),a=t.getHeight(),o=Math.min(i,a)/2;this.cx=et(n[0],i),this.cy=et(n[1],a),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(G(s)||_t(s))&&(s=[0,s]),this.r0=et(s[0],o),this.r=et(s[1],o),T(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var f=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),l.angle=f},this)},r.prototype.update=function(e,t){var n=this._indicatorAxes,i=this._model;T(n,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();T(n,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var a=i.get("splitNumber"),o=new bn;o.setExtent(0,a),o.setInterval(1),T(n,function(s,l){Sb(s.scale,s.model,o)})},r.prototype.convertToPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(e,t,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.create=function(e,t){var n=[];return e.eachComponent("radar",function(i){var a=new r(i,e,t);n.push(a),i.coordinateSystem=a}),e.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},r.dimensions=[],r}();const JO=jO;function Tb(r){r.registerCoordinateSystem("radar",JO),r.registerComponentModel(YO),r.registerComponentView(ZO),r.registerVisual({seriesType:"radar",reset:function(e){var t=e.getData();t.each(function(n){t.setItemVisual(n,"legendIcon","roundRect")}),t.setVisual("legendIcon","roundRect")}})}function QO(r){Wt(Tb),r.registerChartView(GO),r.registerSeriesModel(WO),r.registerLayout(zO),r.registerProcessor(db("radar")),r.registerPreprocessor(VO)}var Mm="\0_ec_interaction_mutex";function tB(r,e,t){var n=Rp(r);n[e]=t}function eB(r,e,t){var n=Rp(r),i=n[e];i===t&&(n[e]=null)}function Dm(r,e){return!!Rp(r)[e]}function Rp(r){return r[Mm]||(r[Mm]={})}ir({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},zt);var rB=function(r){E(e,r);function e(t){var n=r.call(this)||this;n._zr=t;var i=W(n._mousedownHandler,n),a=W(n._mousemoveHandler,n),o=W(n._mouseupHandler,n),s=W(n._mousewheelHandler,n),l=W(n._pinchHandler,n);return n.enable=function(u,f){this.disable(),this._opt=q(Z(f)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(t.on("mousedown",i),t.on("mousemove",a),t.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(t.on("mousewheel",s),t.on("pinch",l))},n.disable=function(){t.off("mousedown",i),t.off("mousemove",a),t.off("mouseup",o),t.off("mousewheel",s),t.off("pinch",l)},n}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!fd(t)){for(var n=t.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=t.offsetX,a=t.offsetY;this.pointerChecker&&this.pointerChecker(t,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(!(!this._dragging||!cl("moveOnMouseMove",t,this._opt)||t.gestureEvent==="pinch"||Dm(this._zr,"globalPan"))){var n=t.offsetX,i=t.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&Nr(t.event),Cb(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){fd(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var n=cl("zoomOnMouseWheel",t,this._opt),i=cl("moveOnMouseWheel",t,this._opt),a=t.wheelDelta,o=Math.abs(a),s=t.offsetX,l=t.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,f=a>0?u:1/u;hh(this,"zoom","zoomOnMouseWheel",t,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(i){var h=Math.abs(a),v=(a>0?1:-1)*(h>3?.4:h>1?.15:.05);hh(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:v,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){if(!Dm(this._zr,"globalPan")){var n=t.pinchScale>1?1.1:1/1.1;hh(this,"zoom",null,t,{scale:n,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e}(rr);function hh(r,e,t,n,i){r.pointerChecker&&r.pointerChecker(n,i.originX,i.originY)&&(Nr(n.event),Cb(r,e,t,n,i))}function Cb(r,e,t,n,i){i.isAvailableBehavior=W(cl,null,t,n),r.trigger(e,i)}function cl(r,e,t){var n=t[r];return!r||n&&(!G(n)||e.event[n+"Key"])}const Ab=rB;function nB(r,e,t){var n=r.target;n.x+=e,n.y+=t,n.dirty()}function iB(r,e,t,n){var i=r.target,a=r.zoomLimit,o=r.zoom=r.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/r.zoom;r.zoom=o,i.x-=(t-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var aB={axisPointer:1,tooltip:1,brush:1};function Mb(r,e,t){var n=e.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==t&&!aB.hasOwnProperty(n.mainType)&&i&&i.model!==t}function Db(r){if(G(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 ch,ql={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Lm=at(ql),Kl={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Pm=at(Kl),oB=function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var n=Db(e);this._defsUsePending=[];var i=new it;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||t.width),l=parseFloat(n.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Se(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;uB(this._defs,this._defsUsePending),this._defsUsePending=[];var f,h;if(o){var v=Wu(o);v.length>=4&&(f={x:parseFloat(v[0]||0),y:parseFloat(v[1]||0),width:parseFloat(v[2]),height:parseFloat(v[3])})}if(f&&s!=null&&l!=null&&(h=Pb(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=i;i=new it,i.add(c),c.scaleX=c.scaleY=h.scale,c.x=h.x,c.y=h.y}return!t.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new pt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:f,viewBoxTransform:h,named:a}},r.prototype._parseNode=function(e,t,n,i,a,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!a){var f=ch[s];if(f&&tt(ch,s)){l=f.call(this,e,t);var h=e.getAttribute("name");if(h){var v={name:h,namedFrom:null,svgNodeTagLower:s,el:l};n.push(v),s==="g"&&(u=v)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});t.add(l)}}var c=Im[s];if(c&&tt(Im,s)){var p=c.call(this,e),d=e.getAttribute("id");d&&(this._defs[d]=p)}}if(l&&l.isGroup)for(var g=e.firstChild;g;)g.nodeType===1?this._parseNode(g,l,n,u,a,o):g.nodeType===3&&o&&this._parseText(g,l),g=g.nextSibling},r.prototype._parseText=function(e,t){var n=new Lo({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Me(t,n),Se(e,n,this._defsUsePending,!1,!1),sB(n,t);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,t.add(n),n},r.internalField=function(){ch={g:function(e,t){var n=new it;return Me(t,n),Se(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new pt;return Me(t,n),Se(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},circle:function(e,t){var n=new Wr;return Me(t,n),Se(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new ie;return Me(t,n),Se(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},ellipse:function(e,t){var n=new du;return Me(t,n),Se(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},polygon:function(e,t){var n=e.getAttribute("points"),i;n&&(i=km(n));var a=new br({shape:{points:i||[]},silent:!0});return Me(t,a),Se(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,t){var n=e.getAttribute("points"),i;n&&(i=km(n));var a=new Ge({shape:{points:i||[]},silent:!0});return Me(t,a),Se(e,a,this._defsUsePending,!1,!1),a},image:function(e,t){var n=new fe;return Me(t,n),Se(e,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new it;return Me(t,s),Se(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new it;return Me(t,s),Se(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(e,t){var n=e.getAttribute("d")||"",i=CS(n);return Me(t,i),Se(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),r}(),Im={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),n=parseInt(r.getAttribute("x2")||"10",10),i=parseInt(r.getAttribute("y2")||"0",10),a=new Qo(e,t,n,i);return Rm(r,a),Em(r,a),a},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),n=parseInt(r.getAttribute("r")||"0",10),i=new Ov(e,t,n);return Rm(r,i),Em(r,i),i}};function Rm(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Em(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var n=t.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};Lb(t,a,a);var o=a.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}t=t.nextSibling}}function Me(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),q(e.__inheritedStyle,r.__inheritedStyle))}function km(r){for(var e=Wu(r),t=[],n=0;n<e.length;n+=2){var i=parseFloat(e[n]),a=parseFloat(e[n+1]);t.push([i,a])}return t}function Se(r,e,t,n,i){var a=e,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};r.nodeType===1&&(cB(r,e),Lb(r,o,s),n||vB(r,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=Om(a,"fill",o.fill,t)),o.stroke!=null&&(a.style.stroke=Om(a,"stroke",o.stroke,t)),T(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),T(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=V(Wu(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function sB(r,e){var t=e.__selfStyle;if(t){var n=t.textBaseline,i=n;!n||n==="auto"||n==="baseline"?i="alphabetic":n==="before-edge"||n==="text-before-edge"?i="top":n==="after-edge"||n==="text-after-edge"?i="bottom":(n==="central"||n==="mathematical")&&(i="middle"),r.style.textBaseline=i}var a=e.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var lB=/^url\(\s*#(.*?)\)/;function Om(r,e,t,n){var i=t&&t.match(lB);if(i){var a=ze(i[1]);n.push([r,e,a]);return}return t==="none"&&(t=null),t}function uB(r,e){for(var t=0;t<e.length;t++){var n=e[t];n[0].style[n[1]]=r[n[2]]}}var fB=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Wu(r){return r.match(fB)||[]}var hB=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,vh=Math.PI/180;function cB(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var n=[],i=null;t.replace(hB,function(h,v,c){return n.push(v,c),""});for(var a=n.length-1;a>0;a-=2){var o=n[a],s=n[a-1],l=Wu(o);switch(i=i||xe(),s){case"translate":zr(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":pv(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Cn(i,i,-parseFloat(l[0])*vh,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*vh);_r(i,[1,0,u,1,0,0],i);break;case"skewY":var f=Math.tan(parseFloat(l[0])*vh);_r(i,[1,f,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var Bm=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Lb(r,e,t){var n=r.getAttribute("style");if(n){Bm.lastIndex=0;for(var i;(i=Bm.exec(n))!=null;){var a=i[1],o=tt(ql,a)?ql[a]:null;o&&(e[o]=i[2]);var s=tt(Kl,a)?Kl[a]:null;s&&(t[s]=i[2])}}}function vB(r,e,t){for(var n=0;n<Lm.length;n++){var i=Lm[n],a=r.getAttribute(i);a!=null&&(e[ql[i]]=a)}for(var n=0;n<Pm.length;n++){var i=Pm[n],a=r.getAttribute(i);a!=null&&(t[Kl[i]]=a)}}function Pb(r,e){var t=e.width/r.width,n=e.height/r.height,i=Math.min(t,n);return{scale:i,x:-(r.x+r.width/2)*i+(e.x+e.width/2),y:-(r.y+r.height/2)*i+(e.y+e.height/2)}}function pB(r,e){var t=new oB;return t.parse(r,e)}var dB=$(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),gB=function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=$(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Db(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=mB(e.named),n=t.regions,i=t.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,n;try{t=e&&pB(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=t.root,le(n!=null)}catch(g){throw new Error("Invalid svg format\n"+g.message)}var i=new it;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,v=void 0;if(a!=null?(u=0,h=a):s&&(u=s.x,h=s.width),o!=null?(f=0,v=o):s&&(f=s.y,v=s.height),u==null||f==null){var c=n.getBoundingRect();u==null&&(u=c.x,h=c.width),f==null&&(f=c.y,v=c.height)}l=this._boundingRect=new ct(u,f,h,v)}if(s){var p=Pb(s,l);n.scaleX=n.scaleY=p.scale,n.x=p.x,n.y=p.y}i.setClipPath(new pt({shape:l.plain()}));var d=[];return T(t.named,function(g){dB.get(g.svgNodeTagLower)!=null&&(d.push(g),yB(g.el))}),{root:i,boundingRect:l,named:d}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,n),n)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,n=t.get(e);n&&(t.removeKey(e),this._freedGraphics.push(n))},r}();function yB(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function mB(r){var e=[],t=$();return T(r,function(n){if(n.namedFrom==null){var i=new bE(n.name,n.el);e.push(i),t.set(n.name,i)}}),{regions:e,regionsMap:t}}var Bc=[126,25],Nm="南海诸岛",Kn=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Zn=0;Zn<Kn.length;Zn++)for(var Gi=0;Gi<Kn[Zn].length;Gi++)Kn[Zn][Gi][0]/=10.5,Kn[Zn][Gi][1]/=-10.5/.75,Kn[Zn][Gi][0]+=Bc[0],Kn[Zn][Gi][1]+=Bc[1];function _B(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===Nm)return;e.push(new $w(Nm,V(Kn,function(n){return{type:"polygon",exterior:n}}),Bc))}}var SB={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function xB(r,e){if(r==="china"){var t=SB[e.name];if(t){var n=e.getCenter();n[0]+=t[0]/10.5,n[1]+=-t[1]/(10.5/.75),e.setCenter(n)}}}var wB=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function bB(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:wB[0]})}var TB="name",CB=function(){function r(e,t,n){this.type="geoJSON",this._parsedMap=$(),this._mapName=e,this._specialAreas=n,this._geoJSON=MB(t)}return r.prototype.load=function(e,t){t=t||TB;var n=this._parsedMap.get(t);if(!n){var i=this._parseToRegions(t);n=this._parsedMap.set(t,{regions:i,boundingRect:AB(i)})}var a=$(),o=[];return T(n.regions,function(s){var l=s.name;e&&tt(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new ct(0,0,0,0),regionsMap:a}},r.prototype._parseToRegions=function(e){var t=this._mapName,n=this._geoJSON,i;try{i=n?Lc(n,e):[]}catch(a){throw new Error("Invalid geoJson format\n"+a.message)}return _B(t,i),T(i,function(a){var o=a.name;xB(t,a),bB(t,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),i},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function AB(r){for(var e,t=0;t<r.length;t++){var n=r[t].getBoundingRect();e=e||n.clone(),e.union(n)}return e}function MB(r){return G(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var Ya=$();const Gr={registerMap:function(r,e,t){if(e.svg){var n=new gB(r,e.svg);Ya.set(r,n)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?t=e.specialAreas:i=e;var n=new CB(r,i,t);Ya.set(r,n)}},getGeoResource:function(r){return Ya.get(r)},getMapForUser:function(r){var e=Ya.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var n=Ya.get(r);if(n)return n.load(e,t)}};var Ep=["rect","circle","line","ellipse","polygon","polyline","path"],DB=$(Ep),LB=$(Ep.concat(["g"])),PB=$(Ep.concat(["g"])),Ib=St();function Ws(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function zm(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var IB=function(){function r(e){var t=new it;this.uid=_a("ec_map_draw"),this._controller=new Ab(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new it),t.add(this._svgGroup=new it)}return r.prototype.draw=function(e,t,n,i,a){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,h=l.getTransformInfo(),v=h.raw,c=h.roam,p=!u.childAt(0)||a;p?(f.x=c.x,f.y=c.y,f.scaleX=c.scaleX,f.scaleY=c.scaleY,f.dirty()):It(f,c,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:n,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,n),this._updateMapSelectHandler(e,u,n,i)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=$(),n=$(),i=this._regionsGroup,a=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,p){return p&&(c=p(c)),c&&[c[0]*a.scaleX+a.x,c[1]*a.scaleY+a.y]}function h(c){for(var p=[],d=!u&&l&&l.project,g=0;g<c.length;++g){var y=f(c[g],d);y&&p.push(y)}return p}function v(c){return{shape:{points:h(c)}}}i.removeAll(),T(e.geo.regions,function(c){var p=c.name,d=t.get(p),g=n.get(p)||{},y=g.dataIdx,m=g.regionModel;if(!d){d=t.set(p,new it),i.add(d),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(d.silent=_),n.set(p,{dataIdx:y,regionModel:m})}var S=[],w=[];T(c.geometries,function(C){if(C.type==="polygon"){var A=[C.exterior].concat(C.interiors||[]);u&&(A=$m(A,u)),T(A,function(D){S.push(new br(v(D)))})}else{var M=C.points;u&&(M=$m(M,u,!0)),T(M,function(D){w.push(new Ge(v(D)))})}});var x=f(c.getCenter(),l&&l.project);function b(C,A){if(C.length){var M=new yu({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});d.add(M),Vm(e,M,y,m),Fm(e,M,p,m,o,y,x),A&&(zm(M),T(M.states,zm))}}b(S),b(w,!0)}),t.each(function(c,p){var d=n.get(p),g=d.dataIdx,y=d.regionModel;Gm(e,c,p,y,o,g),Hm(e,c,p,y,o),Wm(e,c,p,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,n=e.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var i=this._svgDispatcherMap=$(),a=!1;T(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,h=o.el,v=u?u.indexOfName(s):null,c=l.getRegionModel(s);DB.get(f)!=null&&h instanceof Vr&&Vm(e,h,v,c),h instanceof Vr&&(h.culling=!0);var p=c.get("silent",!0);if(p!=null&&(h.silent=p),h.z2EmphasisLift=0,!o.namedFrom&&(PB.get(f)!=null&&Fm(e,h,s,c,l,v,null),Gm(e,h,s,c,l,v),Hm(e,h,s,c,l),LB.get(f)!=null)){var d=Wm(e,h,s,c,l);d==="self"&&(a=!0);var g=i.get(s)||i.set(s,[]);g.push(h)}},this),this._enableBlurEntireSVG(a,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var n=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){Iv(a);var o=a.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),a.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var n=t.coordinateSystem;if(n.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var a=i.get(e);return a?[a]:[]}}else if(n.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=Gr.getGeoResource(e);if(t&&t.type==="geoSVG"){var n=t.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=Gr.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,n){var i=e.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),a.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,nB(o,u.dx,u.dy),n.dispatchAction(O(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,iB(o,u.scale,u.originX,u.originY),n.dispatchAction(O(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,f,h){return i.containPoint([f,h])&&!Mb(u,n,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=Ib(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,n,i){var a=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){a._mouseDownFlag=!0}),t.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},r}();function Vm(r,e,t,n){var i=n.getModel("itemStyle"),a=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=Ws(i),u=Ws(a),f=Ws(s),h=Ws(o),v=r.data;if(v){var c=v.getItemVisual(t,"style"),p=v.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&c.fill&&(l.fill=c.fill),p&&(l.decal=Gl(p,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=f,e.ensureState("blur").style=h,Iv(e)}function Fm(r,e,t,n,i,a,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),f=s&&s.getItemLayout(a);if(l||u||f&&f.showLabel){var h=l?t:a,v=void 0;(!s||a>=0)&&(v=i);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;$r(e,Yr(n),{labelFetcher:v,labelDataIndex:h,defaultText:t},c);var p=e.getTextContent();if(p&&(Ib(p).ignore=p.ignore,e.textConfig&&o)){var d=e.getBoundingRect().clone();e.textConfig.layoutRect=d,e.textConfig.position=[(o[0]-d.x)/d.width*100+"%",(o[1]-d.y)/d.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function Gm(r,e,t,n,i,a){r.data?r.data.setItemGraphicEl(a,e):nt(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:t,region:n&&n.option||{}}}function Hm(r,e,t,n,i){r.data||bi({el:e,componentModel:i,itemName:t,itemTooltipOption:n.get("tooltip")})}function Wm(r,e,t,n,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Sn(e,o,a.get("blurScope"),a.get("disabled")),r.isGeo&&i2(e,i,t),o}function $m(r,e,t){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.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(),n}const Rb=IB;var RB=function(r){E(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,n,i,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===t.id){var s=this._mapDraw;s&&o.add(s.group)}else if(t.needsDrawMap){var s=this._mapDraw||new Rb(i);o.add(s.group),s.draw(t,n,i,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(t,n,i)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(t,n,i){var a=t.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var f=u.point,h=u.offset,v=new Wr({style:{fill:t.getData().getVisual("style").fill},shape:{cx:f[0]+h*9,cy:f[1],r:3},silent:!0,z2:8+(h?0:vS+1)});if(!h){var c=t.mainSeries.getData(),p=a.getName(l),d=c.indexOfName(p),g=a.getItemModel(l),y=g.getModel("label"),m=c.getItemGraphicEl(d);$r(v,Yr(g),{labelFetcher:{getFormattedLabel:function(_,S){return t.getFormattedLabel(d,S)}},defaultText:p}),v.disableLabelAnimation=!0,y.get("position")||v.setTextConfig({position:"bottom"}),m.onHoverStateChange=function(_){sc(v,_)}}o.add(v)}}})},e.type="map",e}(Jt);const EB=RB;var kB=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(n){if(n!=null){var i=this.getData().getName(n),a=this.coordinateSystem,o=a.getRegion(i);return o&&a.dataToPoint(o.getCenter())}},t}return e.prototype.getInitialData=function(t){for(var n=Lp(this,{coordDimensions:["value"],encodeDefaulter:ht(ux,this)}),i=$(),a=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);i.set(l,o)}var u=Gr.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return T(u.regions,function(f){var h=f.name,v=i.get(h),c=f.properties&&f.properties.echartsStyle,p;v==null?(p={name:h},a.push(p)):p=n.getRawDataItem(v),c&&Q(p,c)}),n.appendData(a),n},e.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return t!=null?this.ecModel.getComponent("geo",t):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(t){var n=this.getData();return n.get(n.mapDimension("value"),t)},e.prototype.getRegionModel=function(t){var n=this.getData();return n.getItemModel(n.indexOfName(t))},e.prototype.formatTooltip=function(t,n,i){for(var a=this.getData(),o=this.getRawValue(t),s=a.getName(t),l=this.seriesGroup,u=[],f=0;f<l.length;f++){var h=l[f].originalData.indexOfName(s),v=a.mapDimension("value");isNaN(l[f].originalData.get(v,h))||u.push(l[f].name)}return xr("section",{header:u.join(", "),noHeader:!u.length,blocks:[xr("nameValue",{name:s,value:o})]})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.getLegendIcon=function(t){var n=t.icon||"roundRect",i=te(n,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return i.setStyle(t.itemStyle),i.style.stroke="none",n.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",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:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Te);const OB=kB;function BB(r,e){var t={};return T(r,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);t[o]=t[o]||[],isNaN(i)||t[o].push(i)})}),r[0].map(r[0].mapDimension("value"),function(n,i){for(var a="ec-"+r[0].getName(i),o=0,s=1/0,l=-1/0,u=t[a].length,f=0;f<u;f++)s=Math.min(s,t[a][f]),l=Math.max(l,t[a][f]),o+=t[a][f];var h;return e==="min"?h=s:e==="max"?h=l:e==="average"?h=o/u:h=o,u===0?NaN:h})}function NB(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),T(e,function(t,n){for(var i=BB(V(t,function(o){return o.getData()}),t[0].get("mapValueCalculation")),a=0;a<t.length;a++)t[a].originalData=t[a].getData();for(var a=0;a<t.length;a++)t[a].seriesGroup=t,t[a].needsDrawMap=a===0&&!t[a].getHostGeoModel(),t[a].setData(i.cloneShallow()),t[a].mainSeries=t[0]})}function zB(r){var e={};r.eachSeriesByType("map",function(t){var n=t.getMapType();if(!(t.getHostGeoModel()||e[n])){var i={};T(t.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&r.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,f){var h=l.getName(f),v=s.getRegion(h);if(!(!v||isNaN(u))){var c=i[h]||0,p=s.dataToPoint(v.getCenter());i[h]=c+1,l.setItemLayout(f,{point:p,offset:c})}})});var a=t.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!i[s],a.setItemLayout(o,l)}),e[n]=!0}})}var Ym=Vt,VB=function(r){E(e,r);function e(t){var n=r.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new ri,n._rawTransformable=new ri,n.name=t,n}return e.prototype.setBoundingRect=function(t,n,i,a){return this._rect=new ct(t,n,i,a),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(t,n,i,a){this._transformTo(t,n,i,a),this._viewRect=new ct(t,n,i,a)},e.prototype._transformTo=function(t,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ct(t,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(t,n){t&&(this._center=[et(t[0],n.getWidth()),et(t[1],n.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(t){t=t||1;var n=this.zoomLimit;n&&(n.max!=null&&(t=Math.min(n.max,t)),n.min!=null&&(t=Math.max(n.min,t))),this._zoom=t,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var t=this.getBoundingRect(),n=t.x+t.width/2,i=t.y+t.height/2;return[n,i]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=Vt([],a,t),i=Vt([],i,t),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var t=this._roamTransformable,n=this._rawTransformable;n.parent=t,t.updateTransform(),n.updateTransform(),au(this.transform||(this.transform=[]),n.transform||xe()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],da(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var t=this._rawTransformable,n=this._roamTransformable,i=new ri;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},e.prototype.dataToPoint=function(t,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?Ym(i,t,a):i1(i,t)},e.prototype.pointToData=function(t){var n=this.invTransform;return n?Ym([],t,n):[t[0],t[1]]},e.prototype.convertToPixel=function(t,n,i){var a=Um(n);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,n,i){var a=Um(n);return a===this?a.pointToData(i):null},e.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},e.dimensions=["x","y"],e}(ri);function Um(r){var e=r.seriesModel;return e?e.coordinateSystem:null}const Eb=VB;var FB={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},kb=["lng","lat"],Ob=function(r){E(e,r);function e(t,n,i){var a=r.call(this,t)||this;a.dimensions=kb,a.type="geo",a._nameCoordMap=$(),a.map=n;var o=i.projection,s=Gr.load(n,i.nameMap,i.nameProperty),l=Gr.getGeoResource(n);a.resourceType=l?l.type:null;var u=a.regions=s.regions,f=FB[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var h;if(o)for(var v=0;v<u.length;v++){var c=u[v].getBoundingRect(o);h=h||c.clone(),h.union(c)}else h=s.boundingRect;return a.setBoundingRect(h.x,h.y,h.width,h.height),a.aspectScale=o?1:j(i.aspectScale,f.aspectScale),a._invertLongitute=o?!1:f.invertLongitute,a}return e.prototype._transformTo=function(t,n,i,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new ct(t,n,i,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var n=this.regions,i=0;i<n.length;i++){var a=n[i];if(a.type==="geoJSON"&&a.contain(t))return n[i]}},e.prototype.addGeoCoord=function(t,n){this._nameCoordMap.set(t,n)},e.prototype.getGeoCoord=function(t){var n=this._regionsMap.get(t);return this._nameCoordMap.get(t)||n&&n.getCenter()},e.prototype.dataToPoint=function(t,n,i){if(G(t)&&(t=this.getGeoCoord(t)),t){var a=this.projection;return a&&(t=a.project(t)),t&&this.projectedToPoint(t,n,i)}},e.prototype.pointToData=function(t){var n=this.projection;return n&&(t=n.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,n,i){return r.prototype.dataToPoint.call(this,t,n,i)},e.prototype.convertToPixel=function(t,n,i){var a=Xm(n);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(t,n,i){var a=Xm(n);return a===this?a.pointToData(i):null},e}(Eb);$t(Ob,Eb);function Xm(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",Ot).models[0]||{}).coordinateSystem:null}const Zm=Ob;function qm(r,e){var t=r.get("boundingCoords");if(t!=null){var n=t[0],i=t[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=n[0],s=n[1],l=i[0],u=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var f=function(x,b,C,A){for(var M=C-x,D=A-b,L=0;L<=100;L++){var P=L/100,I=a.project([x+M*P,b+D*P]);Ir(n,n,I),Rr(i,i,I)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(n[0],n[1],i[0]-n[0],i[1]-n[1])}}var h=this.getBoundingRect(),v=r.get("layoutCenter"),c=r.get("layoutSize"),p=e.getWidth(),d=e.getHeight(),g=h.width/h.height*this.aspectScale,y=!1,m,_;v&&c&&(m=[et(v[0],p),et(v[1],d)],_=et(c,Math.min(p,d)),!isNaN(m[0])&&!isNaN(m[1])&&!isNaN(_)&&(y=!0));var S;if(y)S={},g>1?(S.width=_,S.height=_/g):(S.height=_,S.width=_*g),S.y=m[1]-S.height/2,S.x=m[0]-S.width/2;else{var w=r.getBoxLayoutParams();w.aspect=g,S=ue(w,{width:p,height:d})}this.setViewRect(S.x,S.y,S.width,S.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function GB(r,e){T(e.get("geoCoord"),function(t,n){r.addGeoCoord(n,t)})}var HB=function(){function r(){this.dimensions=kb}return r.prototype.create=function(e,t){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Zm(l+s,l,O({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=qm,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),T(a,function(o,s){var l=V(o,function(f){return f.get("nameMap")}),u=new Zm(s,s,O({nameMap:J_(l)},i(o[0])));u.zoomLimit=Br.apply(null,V(o,function(f){return f.get("scaleLimit")})),n.push(u),u.resize=qm,u.resize(o[0],t),T(o,function(f){f.coordinateSystem=u,GB(u,f)})}),n},r.prototype.getFilledRegions=function(e,t,n,i){for(var a=(e||[]).slice(),o=$(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=Gr.load(t,n,i);return T(l.regions,function(u){var f=u.name,h=o.get(f),v=u.properties&&u.properties.echartsStyle;h||(h={name:f},a.push(h)),v&&Q(h,v)}),a},r}(),WB=new HB;const Bb=WB;var $B=function(r){E(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,n,i){var a=Gr.getGeoResource(t.map);if(a&&a.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,i),Dl(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,n=this.option;n.regions=Bb.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var i={};this._optionModelMap=Ve(n.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new Tt(o,t,t.ecModel)),o.selected&&(i[s]=!0)),a},$()),n.selectedMap||(n.selectedMap=i)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Tt(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,n){var i=this.getRegionModel(t),a=n==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:t};if(K(a))return o.status=n,a(o);if(G(a))return a.replace("{a}",t!=null?t:"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var n=this.option,i=n.selectedMode;if(i){i!=="multiple"&&(n.selectedMap=null);var a=n.selectedMap||(n.selectedMap={});a[t]=!0}},e.prototype.unSelect=function(t){var n=this.option.selectedMap;n&&(n[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var n=this.option.selectedMap;return!!(n&&n[t])},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:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(ut);const YB=$B;function Km(r,e){return r.pointToProjected?r.pointToProjected(e):r.pointToData(e)}function UB(r,e,t,n){var i=r.getZoom(),a=r.getCenter(),o=e.zoom,s=r.projectedToPoint?r.projectedToPoint(a):r.dataToPoint(a);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,r.setCenter(Km(r,s),n)),o!=null){if(t){var l=t.min||0,u=t.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}r.scaleX*=o,r.scaleY*=o;var f=(e.originX-r.x)*(o-1),h=(e.originY-r.y)*(o-1);r.x-=f,r.y-=h,r.updateTransform(),r.setCenter(Km(r,s),n),r.setZoom(o*i)}return{center:r.getCenter(),zoom:r.getZoom()}}var XB=function(r){E(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,n){this._api=n},e.prototype.render=function(t,n,i,a){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Rb(i));var o=this._mapDraw;o.draw(t,n,i,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,n,i)},e.prototype._handleRegionClick=function(t){var n;oi(t.target,function(i){return(n=nt(i).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},e.prototype.updateSelectStatus=function(t,n,i){var a=this;this._mapDraw.group.traverse(function(o){var s=nt(o).eventData;if(s)return a._model.isSelected(s.name)?i.enterSelect(o):i.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}(At);const ZB=XB;function qB(r,e,t){Gr.registerMap(r,e,t)}function KB(r){r.registerCoordinateSystem("geo",Bb),r.registerComponentModel(YB),r.registerComponentView(ZB),r.registerImpl("registerMap",qB),r.registerImpl("getMap",function(t){return Gr.getMapForUser(t)});function e(t,n){n.update="geo:updateSelectStatus",r.registerAction(n,function(i,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:i},function(l){l[t](i.name);var u=l.coordinateSystem;T(u.regions,function(h){o[h.name]=l.isSelected(h.name)||!1});var f=[];T(o,function(h,v){o[v]&&f.push(v)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:i.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,n,i){var a=t.componentType||"series";n.eachComponent({mainType:a,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=UB(s,t,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&T(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function jB(r){Wt(KB),r.registerChartView(EB),r.registerSeriesModel(OB),r.registerLayout(zB),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,NB),Ux("map",r.registerAction)}var Ho=T,JB=U,jl=-1,kp=function(){function r(e){var t=e.mappingMethod,n=e.type,i=this.option=Z(e);this.type=n,this.mappingMethod=t,this._normalizeData=eN[t];var a=r.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[t],t==="piecewise"?(ph(i),QB(i)):t==="category"?i.categories?tN(i):ph(i,!0):(le(t!=="linear"||i.dataExtent),ph(i))}return r.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},r.prototype.getNormalizer=function(){return W(this._normalizeData,this)},r.listVisualTypes=function(){return at(r.visualHandlers)},r.isValidType=function(e){return r.visualHandlers.hasOwnProperty(e)},r.eachVisual=function(e,t,n){U(e)?T(e,t,n):t.call(n,e)},r.mapVisual=function(e,t,n){var i,a=z(e)?[]:U(e)?{}:(i=!0,null);return r.eachVisual(e,function(o,s){var l=t.call(n,o,s);i?a=l:a[s]=l}),a},r.retrieveVisuals=function(e){var t={},n;return e&&Ho(r.visualHandlers,function(i,a){e.hasOwnProperty(a)&&(t[a]=e[a],n=!0)}),n?t:null},r.prepareVisualTypes=function(e){if(z(e))e=e.slice();else if(JB(e)){var t=[];Ho(e,function(n,i){t.push(i)}),e=t}else return[];return e.sort(function(n,i){return i==="color"&&n!=="color"&&n.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,n){for(var i,a=1/0,o=0,s=t.length;o<s;o++){var l=t[o].value;if(l!=null){if(l===e||G(l)&&l===e+"")return o;n&&v(l,o)}}for(var o=0,s=t.length;o<s;o++){var u=t[o],f=u.interval,h=u.close;if(f){if(f[0]===-1/0){if(Ys(h[1],e,f[1]))return o}else if(f[1]===1/0){if(Ys(h[0],f[0],e))return o}else if(Ys(h[0],f[0],e)&&Ys(h[1],e,f[1]))return o;n&&v(f[0],o),n&&v(f[1],o)}}if(n)return e===1/0?t.length-1:e===-1/0?0:i;function v(c,p){var d=Math.abs(c-e);d<a&&(a=d,i=p)}},r.visualHandlers={color:{applyVisual:Ua("color"),getColorMapper:function(){var e=this.option;return W(e.mappingMethod==="category"?function(t,n){return!n&&(t=this._normalizeData(t)),ao.call(this,t)}:function(t,n,i){var a=!!i;return!n&&(t=this._normalizeData(t)),i=lo(t,e.parsedVisual,i),a?i:Qe(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return Qe(lo(e,this.option.parsedVisual),"rgba")},category:ao,piecewise:function(e,t){var n=zc.call(this,t);return n==null&&(n=Qe(lo(e,this.option.parsedVisual),"rgba")),n},fixed:jn}},colorHue:$s(function(e,t){return el(e,t)}),colorSaturation:$s(function(e,t){return el(e,null,t)}),colorLightness:$s(function(e,t){return el(e,null,null,t)}),colorAlpha:$s(function(e,t){return w1(e,t)}),decal:{applyVisual:Ua("decal"),_normalizedToVisual:{linear:null,category:ao,piecewise:null,fixed:null}},opacity:{applyVisual:Ua("opacity"),_normalizedToVisual:Nc([0,1])},liftZ:{applyVisual:Ua("liftZ"),_normalizedToVisual:{linear:jn,category:jn,piecewise:jn,fixed:jn}},symbol:{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("symbol",i)},_normalizedToVisual:{linear:jm,category:ao,piecewise:function(e,t){var n=zc.call(this,t);return n==null&&(n=jm.call(this,e)),n},fixed:jn}},symbolSize:{applyVisual:Ua("symbolSize"),_normalizedToVisual:Nc([0,1])}},r}();function QB(r){var e=r.pieceList;r.hasSpecialVisual=!1,T(e,function(t,n){t.originIndex=n,t.visual!=null&&(r.hasSpecialVisual=!0)})}function tN(r){var e=r.categories,t=r.categoryMap={},n=r.visual;if(Ho(e,function(o,s){t[o]=s}),!z(n)){var i=[];U(n)?Ho(n,function(o,s){var l=t[s];i[l!=null?l:jl]=o}):i[jl]=n,n=Nb(r,i)}for(var a=e.length-1;a>=0;a--)n[a]==null&&(delete t[e[a]],e.pop())}function ph(r,e){var t=r.visual,n=[];U(t)?Ho(t,function(a){n.push(a)}):t!=null&&n.push(t);var i={color:1,symbol:1};!e&&n.length===1&&!i.hasOwnProperty(r.type)&&(n[1]=n[0]),Nb(r,n)}function $s(r){return{applyVisual:function(e,t,n){var i=this.mapValueToVisual(e);n("color",r(t("color"),i))},_normalizedToVisual:Nc([0,1])}}function jm(r){var e=this.option.visual;return e[Math.round(wt(r,[0,1],[0,e.length-1],!0))]||{}}function Ua(r){return function(e,t,n){n(r,this.mapValueToVisual(e))}}function ao(r){var e=this.option.visual;return e[this.option.loop&&r!==jl?r%e.length:r]}function jn(){return this.option.visual[0]}function Nc(r){return{linear:function(e){return wt(e,r,this.option.visual,!0)},category:ao,piecewise:function(e,t){var n=zc.call(this,t);return n==null&&(n=wt(e,r,this.option.visual,!0)),n},fixed:jn}}function zc(r){var e=this.option,t=e.pieceList;if(e.hasSpecialVisual){var n=kp.findPieceIndex(r,t),i=t[n];if(i&&i.visual)return i.visual[this.type]}}function Nb(r,e){return r.visual=e,r.type==="color"&&(r.parsedVisual=V(e,function(t){var n=ae(t);return n||[0,0,0,1]})),e}var eN={linear:function(r){return wt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var e=this.option.pieceList,t=kp.findPieceIndex(r,e,!0);if(t!=null)return wt(t,[0,e.length-1],[0,1],!0)},category:function(r){var e=this.option.categories?this.option.categoryMap[r]:r;return e==null?jl:e},fixed:zt};function Ys(r,e,t){return r?e<=t:e<t}const me=kp;function rN(r){nN(r),iN(r)}function nN(r){if(!r.parallel){var e=!1;T(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function iN(r){var e=Ct(r.parallelAxis);T(e,function(t){if(U(t)){var n=t.parallelIndex||0,i=Ct(r.parallel)[n];i&&i.parallelAxisDefault&&Q(t,i.parallelAxisDefault,!1)}})}var aN=5,oN=function(r){E(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,n,i){this._model=t,this._api=i,this._handlers||(this._handlers={},T(sN,function(a,o){i.getZr().on(o,this._handlers[o]=W(a,this))},this)),es(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,n){Bo(this,"_throttledDispatchExpand"),T(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(O({type:"parallelAxisExpand"},t))},e.type="parallel",e}(At),sN={mousedown:function(r){dh(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(dh(this,"click")&&e){var t=[r.offsetX,r.offsetY],n=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(n>aN)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!dh(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),n=t.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function dh(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}const lN=oN;var uN=function(r){E(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 n=this.option;t&&Q(n,t,!0),this._initDimensions()},e.prototype.contains=function(t,n){var i=t.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(t){T(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){t.hasOwnProperty(n)&&(this.option[n]=t[n])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],n=this.parallelAxisIndex=[],i=xt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);T(i,function(a){t.push("dim"+a.get("dim")),n.push(a.componentIndex)})},e.type="parallel",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}(ut);const fN=uN;var hN=function(r){E(e,r);function e(t,n,i,a,o){var s=r.call(this,t,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(ar);const cN=hN;function Ci(r,e,t,n,i,a){r=r||0;var o=t[1]-t[0];if(i!=null&&(i=Hi(i,[0,o])),a!=null&&(a=Math.max(a,i!=null?i:0)),n==="all"){var s=Math.abs(e[1]-e[0]);s=Hi(s,[0,o]),i=a=Hi(s,[i,a]),n=0}e[0]=Hi(e[0],t),e[1]=Hi(e[1],t);var l=gh(e,n);e[n]+=r;var u=i||0,f=t.slice();l.sign<0?f[0]+=u:f[1]-=u,e[n]=Hi(e[n],f);var h;return h=gh(e,n),i!=null&&(h.sign!==l.sign||h.span<i)&&(e[1-n]=e[n]+l.sign*i),h=gh(e,n),a!=null&&h.span>a&&(e[1-n]=e[n]+h.sign*a),e}function gh(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 Hi(r,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,r))}var yh=T,zb=Math.min,Vb=Math.max,Jm=Math.floor,vN=Math.ceil,Qm=Pt,pN=Math.PI,dN=function(){function r(e,t,n){this.type="parallel",this._axesMap=$(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return r.prototype._init=function(e,t,n){var i=e.dimensions,a=e.parallelAxisIndex;yh(i,function(o,s){var l=a[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new cN(o,Gu(u),[0,0],u.get("type"),l)),h=f.type==="category";f.onBand=h&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,a=t.pixelDimIndex,o=e[1-a],s=e[a];return o>=n&&o<=n+t.axisLength&&s>=i&&s<=i+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(n){if(e.contains(n,t)){var i=n.getData();yh(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),fa(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=ue(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,n=["x","y"],i=["width","height"],a=e.get("layout"),o=a==="horizontal"?0:1,s=t[i[o]],l=[0,s],u=this.dimensions.length,f=Us(e.get("axisExpandWidth"),l),h=Us(e.get("axisExpandCount")||0,[0,u]),v=e.get("axisExpandable")&&u>3&&u>h&&h>1&&f>0&&s>0,c=e.get("axisExpandWindow"),p;if(c)p=Us(c[1]-c[0],l),c[1]=c[0]+p;else{p=Us(f*(h-1),l);var d=e.get("axisExpandCenter")||Jm(u/2);c=[f*d-p/2],c[1]=c[0]+p}var g=(s-p)/(u-h);g<3&&(g=0);var y=[Jm(Qm(c[0]/f,1))+1,vN(Qm(c[1]/f,1))-1],m=g/f*c[0];return{layout:a,pixelDimIndex:o,layoutBase:t[n[o]],layoutLength:s,axisBase:t[n[1-o]],axisLength:t[i[1-o]],axisExpandable:v,axisExpandWidth:f,axisCollapseWidth:g,axisExpandWindow:c,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:m}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;t.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),yh(n,function(o,s){var l=(i.axisExpandable?yN:gN)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},f={horizontal:pN/2,vertical:0},h=[u[a].x+e.x,u[a].y+e.y],v=f[a],c=xe();Cn(c,c,v),zr(c,c,h),this._axesLayout[o]={position:h,rotation:v,transform:c,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,n,i){n==null&&(n=0),i==null&&(i=e.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];T(o,function(g){s.push(e.mapDimension(g)),l.push(a.get(g).model)});for(var u=this.hasAxisBrushed(),f=n;f<i;f++){var h=void 0;if(!u)h="normal";else{h="active";for(var v=e.getValues(s,f),c=0,p=o.length;c<p;c++){var d=l[c].getActiveState(v[c]);if(d==="inactive"){h="inactive";break}}}t(h,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,n=!1,i=0,a=e.length;i<a;i++)t.get(e[i]).model.getActiveState()!=="normal"&&(n=!0);return n},r.prototype.axisCoordToPoint=function(e,t){var n=this._axesLayout[t];return tr([e,0],n.transform)},r.prototype.getAxisLayout=function(e){return Z(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),n=t.pixelDimIndex,i=t.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var s=e[n]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,h=this._model.get("axisExpandSlideTriggerArea"),v=h[0]!=null;if(f)v&&f&&s<a*h[0]?(u="jump",l=s-a*h[2]):v&&f&&s>a*(1-h[0])?(u="jump",l=s-a*(1-h[2])):(l=s-a*h[1])>=0&&(l=s-a*(1-h[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?Ci(l,i,o,"all"):u="none";else{var c=i[1]-i[0],p=o[1]*s/c;i=[Vb(0,p-c/2)],i[1]=zb(o[1],i[0]+c),i[0]=i[1]-c}return{axisExpandWindow:i,behavior:u}},r}();function Us(r,e){return zb(Vb(r,e[0]),e[1])}function gN(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function yN(r,e){var t=e.layoutLength,n=e.axisExpandWidth,i=e.axisCount,a=e.axisCollapseWidth,o=e.winInnerIndices,s,l=a,u=!1,f;return r<o[0]?(s=r*a,f=a):r<=o[1]?(s=e.axisExpandWindow0Pos+r*n-e.axisExpandWindow[0],l=n,u=!0):(s=t-(i-1-r)*a,f=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}const mN=dN;function _N(r,e){var t=[];return r.eachComponent("parallel",function(n,i){var a=new mN(n,r,e);a.name="parallel_"+i,a.resize(n,e),n.coordinateSystem=a,a.model=n,t.push(a)}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var i=n.getReferringComponents("parallel",Ot).models[0];n.coordinateSystem=i.coordinateSystem}}),t}var SN={create:_N};const xN=SN;var Fb=function(r){E(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 aa([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var n=this.activeIntervals=Z(t);if(n)for(var i=n.length-1;i>=0;i--)gr(n[i])},e.prototype.getActiveState=function(t){var n=this.activeIntervals;if(!n.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=t&&t<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=t&&t<=n[a][1])return"active";return"inactive"},e}(ut);$t(Fb,rs);const t0=Fb;var Si=!0,Wo=Math.min,ha=Math.max,wN=Math.pow,bN=1e4,TN=6,CN=6,e0="globalPan",AN={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},MN={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},r0={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},DN=0,LN=function(r){E(e,r);function e(t){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=t,n.group=new it,n._uid="brushController_"+DN++,T(BN,function(i,a){this._handlers[a]=W(i,this)},n),n}return e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var n=this._zr;this._enableGlobalPan||tB(n,e0,this._uid),T(this._handlers,function(i,a){n.on(a,i)}),this._brushType=t.brushType,this._brushOption=Q(Z(r0),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;eB(t,e0,this._uid),T(this._handlers,function(n,i){t.off(i,n)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var n=this._panels={};T(t,function(i){n[i.panelId]=Z(i)})}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=n.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=V(t,function(v){return Q(Z(r0),v,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new _p(i,t,u,l).add(f).update(f).remove(h).execute(),this;function l(v,c){return(v.id!=null?v.id:n+c)+"-"+v.brushType}function u(v,c){return l(v.__brushOption,c)}function f(v,c){var p=t[v];if(c!=null&&i[c]===s)a[v]=i[c];else{var d=a[v]=c!=null?(i[c].__brushOption=p,i[c]):Hb(o,Gb(o,p));Op(o,d)}}function h(v){i[v]!==s&&o.group.remove(i[v])}},e.prototype.unmount=function(){return this.enableBrush(!1),Vc(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(rr);function Gb(r,e){var t=$u[e.brushType].createCover(r,e);return t.__brushOption=e,$b(t,e),r.group.add(t),t}function Hb(r,e){var t=Bp(e);return t.endCreating&&(t.endCreating(r,e),$b(e,e.__brushOption)),e}function Wb(r,e){var t=e.__brushOption;Bp(e).updateCoverShape(r,e,t.range,t)}function $b(r,e){var t=e.z;t==null&&(t=bN),r.traverse(function(n){n.z=t,n.z2=t})}function Op(r,e){Bp(e).updateCommon(r,e),Wb(r,e)}function Bp(r){return $u[r.__brushOption.brushType]}function Np(r,e,t){var n=r._panels;if(!n)return Si;var i,a=r._transform;return T(n,function(o){o.isTargetByCursor(e,t,a)&&(i=o)}),i}function Yb(r,e){var t=r._panels;if(!t)return Si;var n=e.__brushOption.panelId;return n!=null?t[n]:Si}function Vc(r){var e=r._covers,t=e.length;return T(e,function(n){r.group.remove(n)},r),e.length=0,!!t}function xi(r,e){var t=V(r._covers,function(n){var i=n.__brushOption,a=Z(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:t,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function PN(r){var e=r._track;if(!e.length)return!1;var t=e[e.length-1],n=e[0],i=t[0]-n[0],a=t[1]-n[1],o=wN(i*i+a*a,.5);return o>TN}function Ub(r){var e=r.length-1;return e<0&&(e=0),[r[0],r[e]]}function Xb(r,e,t,n){var i=new it;return i.add(new pt({name:"main",style:zp(t),silent:!0,draggable:!0,cursor:"move",drift:ht(n0,r,e,i,["n","s","w","e"]),ondragend:ht(xi,e,{isEnd:!0})})),T(n,function(a){i.add(new pt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ht(n0,r,e,i,a),ondragend:ht(xi,e,{isEnd:!0})}))}),i}function Zb(r,e,t,n){var i=n.brushStyle.lineWidth||0,a=ha(i,CN),o=t[0][0],s=t[1][0],l=o-i/2,u=s-i/2,f=t[0][1],h=t[1][1],v=f-a+i/2,c=h-a+i/2,p=f-o,d=h-s,g=p+i,y=d+i;Dr(r,e,"main",o,s,p,d),n.transformable&&(Dr(r,e,"w",l,u,a,y),Dr(r,e,"e",v,u,a,y),Dr(r,e,"n",l,u,g,a),Dr(r,e,"s",l,c,g,a),Dr(r,e,"nw",l,u,a,a),Dr(r,e,"ne",v,u,a,a),Dr(r,e,"sw",l,c,a,a),Dr(r,e,"se",v,c,a,a))}function Fc(r,e){var t=e.__brushOption,n=t.transformable,i=e.childAt(0);i.useStyle(zp(t)),i.attr({silent:!n,cursor:n?"move":"default"}),T([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),s=a.length===1?Gc(r,a[0]):RN(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?MN[s]+"-resize":null})})}function Dr(r,e,t,n,i,a,o){var s=e.childOfName(t);s&&s.setShape(kN(Vp(r,e,[[n,i],[n+a,i+o]])))}function zp(r){return q({strokeNoScale:!0},r.brushStyle)}function qb(r,e,t,n){var i=[Wo(r,t),Wo(e,n)],a=[ha(r,t),ha(e,n)];return[[i[0],a[0]],[i[1],a[1]]]}function IN(r){return gn(r.group)}function Gc(r,e){var t={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=_u(t[e],IN(r));return n[i]}function RN(r,e){var t=[Gc(r,e[0]),Gc(r,e[1])];return(t[0]==="e"||t[0]==="w")&&t.reverse(),t.join("")}function n0(r,e,t,n,i,a){var o=t.__brushOption,s=r.toRectRange(o.range),l=Kb(e,i,a);T(n,function(u){var f=AN[u];s[f[0]][f[1]]+=l[f[0]]}),o.range=r.fromRectRange(qb(s[0][0],s[1][0],s[0][1],s[1][1])),Op(e,t),xi(e,{isEnd:!1})}function EN(r,e,t,n){var i=e.__brushOption.range,a=Kb(r,t,n);T(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Op(r,e),xi(r,{isEnd:!1})}function Kb(r,e,t){var n=r.group,i=n.transformCoordToLocal(e,t),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function Vp(r,e,t){var n=Yb(r,e);return n&&n!==Si?n.clipPath(t,r._transform):Z(t)}function kN(r){var e=Wo(r[0][0],r[1][0]),t=Wo(r[0][1],r[1][1]),n=ha(r[0][0],r[1][0]),i=ha(r[0][1],r[1][1]);return{x:e,y:t,width:n-e,height:i-t}}function ON(r,e,t){if(!(!r._brushType||NN(r,e.offsetX,e.offsetY))){var n=r._zr,i=r._covers,a=Np(r,e,t);if(!r._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===Si||s.panelId===a.panelId)&&$u[s.brushType].contain(i[o],t[0],t[1]))return}a&&n.setCursorStyle("crosshair")}}function Hc(r){var e=r.event;e.preventDefault&&e.preventDefault()}function Wc(r,e,t){return r.childOfName("main").contain(e,t)}function jb(r,e,t,n){var i=r._creatingCover,a=r._creatingPanel,o=r._brushOption,s;if(r._track.push(t.slice()),PN(r)||i){if(a&&!i){o.brushMode==="single"&&Vc(r);var l=Z(o);l.brushType=i0(l.brushType,a),l.panelId=a===Si?null:a.panelId,i=r._creatingCover=Gb(r,l),r._covers.push(i)}if(i){var u=$u[i0(r._brushType,a)],f=i.__brushOption;f.range=u.getCreatingRange(Vp(r,i,r._track)),n&&(Hb(r,i),u.updateCommon(r,i)),Wb(r,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&Np(r,e,t)&&Vc(r)&&(s={isEnd:n,removeOnClick:!0});return s}function i0(r,e){return r==="auto"?e.defaultBrushType:r}var BN={mousedown:function(r){if(this._dragging)a0(this,r);else if(!r.target||!r.target.draggable){Hc(r);var e=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var t=this._creatingPanel=Np(this,r,e);t&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(r){var e=r.offsetX,t=r.offsetY,n=this.group.transformCoordToLocal(e,t);if(ON(this,r,n),this._dragging){Hc(r);var i=jb(this,r,n,!1);i&&xi(this,i)}},mouseup:function(r){a0(this,r)}};function a0(r,e){if(r._dragging){Hc(e);var t=e.offsetX,n=e.offsetY,i=r.group.transformCoordToLocal(t,n),a=jb(r,e,i,!0);r._dragging=!1,r._track=[],r._creatingCover=null,a&&xi(r,a)}}function NN(r,e,t){var n=r._zr;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var $u={lineX:o0(0),lineY:o0(1),rect:{createCover:function(r,e){function t(n){return n}return Xb({toRectRange:t,fromRectRange:t},r,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var e=Ub(r);return qb(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(r,e,t,n){Zb(r,e,t,n)},updateCommon:Fc,contain:Wc},polygon:{createCover:function(r,e){var t=new it;return t.add(new Ge({name:"main",style:zp(e),silent:!0})),t},getCreatingRange:function(r){return r},endCreating:function(r,e){e.remove(e.childAt(0)),e.add(new br({name:"main",draggable:!0,drift:ht(EN,r,e),ondragend:ht(xi,r,{isEnd:!0})}))},updateCoverShape:function(r,e,t,n){e.childAt(0).setShape({points:Vp(r,e,t)})},updateCommon:Fc,contain:Wc}};function o0(r){return{createCover:function(e,t){return Xb({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},e,t,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(e){var t=Ub(e),n=Wo(t[0][r],t[1][r]),i=ha(t[0][r],t[1][r]);return[n,i]},updateCoverShape:function(e,t,n,i){var a,o=Yb(e,t);if(o!==Si&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var l=[n,a];r&&l.reverse(),Zb(e,t,l,i)},updateCommon:Fc,contain:Wc}}const Jb=LN;function Qb(r){return r=Fp(r),function(e){return Gv(e,r)}}function tT(r,e){return r=Fp(r),function(t){var n=e!=null?e:t,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function eT(r,e,t){var n=Fp(r);return function(i,a){return n.contain(a[0],a[1])&&!Mb(i,e,t)}}function Fp(r){return ct.create(r)}var zN=["axisLine","axisTickLabel","axisName"],VN=function(r){E(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,n){r.prototype.init.apply(this,arguments),(this._brushController=new Jb(n.getZr())).on("brush",W(this._onBrush,this))},e.prototype.render=function(t,n,i,a){if(!FN(t,n,a)){this.axisModel=t,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new it,this.group.add(this._axisGroup),!!t.get("show")){var s=HN(t,n),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,h=t.axis.dim,v=l.getAxisLayout(h),c=O({strokeContainThreshold:f},v),p=new Tn(t,c);T(zN,p.add,p),this._axisGroup.add(p.getGroup()),this._refreshBrushController(c,u,t,s,f,i),Su(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),h=ct.create({x:l[0],y:-o/2,width:u,height:o});h.x-=f,h.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:Qb(h),isTargetByCursor:eT(h,s,a),getLinearBrushOtherExtent:tT(h,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(GN(i))},e.prototype._onBrush=function(t){var n=t.areas,i=this.axisModel,a=i.axis,o=V(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(At);function FN(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function GN(r){var e=r.axis;return V(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function HN(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}const WN=VN;var $N={type:"axisAreaSelect",event:"axisAreaSelected"};function YN(r){r.registerAction($N,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(n){n.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(n){n.setAxisExpand(e)})})}var UN={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function XN(r){r.registerComponentView(lN),r.registerComponentModel(fN),r.registerCoordinateSystem("parallel",xN),r.registerPreprocessor(rN),r.registerComponentModel(t0),r.registerComponentView(WN),Fo(r,"parallel",t0,UN),YN(r)}var ZN=["itemStyle","borderWidth"],s0=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],mh=new Wr,qN=function(r){E(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,n,i){var a=this.group,o=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis(),f=u.isHorizontal(),h=l.master.getRect(),v={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:t,coordSys:l,coordSysExtent:[[h.x,h.x+h.width],[h.y,h.y+h.height]],isHorizontal:f,valueDim:s0[+f],categoryDim:s0[1-+f]};o.diff(s).add(function(p){if(o.hasValue(p)){var d=u0(o,p),g=l0(o,p,d,v),y=f0(o,v,g);o.setItemGraphicEl(p,y),a.add(y),c0(y,v,g)}}).update(function(p,d){var g=s.getItemGraphicEl(d);if(!o.hasValue(p)){a.remove(g);return}var y=u0(o,p),m=l0(o,p,y,v),_=sT(o,m);g&&_!==g.__pictorialShapeStr&&(a.remove(g),o.setItemGraphicEl(p,null),g=null),g?r5(g,v,m):g=f0(o,v,m,!0),o.setItemGraphicEl(p,g),g.__pictorialSymbolMeta=m,a.add(g),c0(g,v,m)}).remove(function(p){var d=s.getItemGraphicEl(p);d&&h0(s,p,d.__pictorialSymbolMeta.animationModel,d)}).execute();var c=t.get("clip",!0)?ob(t.coordinateSystem,!1,t):null;return c?a.setClipPath(c):a.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(t,n){var i=this.group,a=this._data;t.get("animation")?a&&a.eachItemGraphicEl(function(o){h0(a,nt(o).dataIndex,t,o)}):i.removeAll()},e.type="pictorialBar",e}(Jt);function l0(r,e,t,n){var i=r.getItemLayout(e),a=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,h=t.isAnimationEnabled(),v={dataIndex:e,layout:i,itemModel:t,symbolType:r.getItemVisual(e,"symbol")||"circle",style:r.getItemVisual(e,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:t.get("symbolRepeatDirection"),symbolPatternSize:f,rotation:u,animationModel:h?t:null,hoverScale:h&&t.get(["emphasis","scale"]),z2:t.getShallow("z",!0)||0};KN(t,a,i,n,v),jN(r,e,i,a,o,v.boundingLength,v.pxSign,f,n,v),JN(t,v.symbolScale,u,n,v);var c=v.symbolSize,p=Eu(t.get("symbolOffset"),c);return QN(t,c,i,a,o,p,s,v.valueLineWidth,v.boundingLength,v.repeatCutLength,n,v),v}function KN(r,e,t,n,i){var a=n.valueDim,o=r.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(t[a.wh]<=0),f;if(z(o)){var h=[_h(s,o[0])-l,_h(s,o[1])-l];h[1]<h[0]&&h.reverse(),f=h[u]}else o!=null?f=_h(s,o)-l:e?f=n.coordSysExtent[a.index][u]-l:f=t[a.wh];i.boundingLength=f,e&&(i.repeatCutLength=t[a.wh]);var v=a.xy==="x",c=s.inverse;i.pxSign=v&&!c||!v&&c?f>=0?1:-1:f>0?1:-1}function _h(r,e){return r.toGlobalCoord(r.dataToCoord(r.scale.parse(e)))}function jN(r,e,t,n,i,a,o,s,l,u){var f=l.valueDim,h=l.categoryDim,v=Math.abs(t[h.wh]),c=r.getItemVisual(e,"symbolSize"),p;z(c)?p=c.slice():c==null?p=["100%","100%"]:p=[c,c],p[h.index]=et(p[h.index],v),p[f.index]=et(p[f.index],n?v:Math.abs(a)),u.symbolSize=p;var d=u.symbolScale=[p[0]/s,p[1]/s];d[f.index]*=(l.isHorizontal?-1:1)*o}function JN(r,e,t,n,i){var a=r.get(ZN)||0;a&&(mh.attr({scaleX:e[0],scaleY:e[1],rotation:t}),mh.updateTransform(),a/=mh.getLineScale(),a*=e[n.valueDim.index]),i.valueLineWidth=a||0}function QN(r,e,t,n,i,a,o,s,l,u,f,h){var v=f.categoryDim,c=f.valueDim,p=h.pxSign,d=Math.max(e[c.index]+s,0),g=d;if(n){var y=Math.abs(l),m=Br(r.get("symbolMargin"),"15%")+"",_=!1;m.lastIndexOf("!")===m.length-1&&(_=!0,m=m.slice(0,m.length-1));var S=et(m,e[c.index]),w=Math.max(d+S*2,0),x=_?0:S*2,b=bv(n),C=b?n:v0((y+x)/w),A=y-C*d;S=A/2/(_?C:Math.max(C-1,1)),w=d+S*2,x=_?0:S*2,!b&&n!=="fixed"&&(C=u?v0((Math.abs(u)+x)/w):0),g=C*w-x,h.repeatTimes=C,h.symbolMargin=S}var M=p*(g/2),D=h.pathPosition=[];D[v.index]=t[v.wh]/2,D[c.index]=o==="start"?M:o==="end"?l-M:l/2,a&&(D[0]+=a[0],D[1]+=a[1]);var L=h.bundlePosition=[];L[v.index]=t[v.xy],L[c.index]=t[c.xy];var P=h.barRectShape=O({},t);P[c.wh]=p*Math.max(Math.abs(t[c.wh]),Math.abs(D[c.index]+M)),P[v.wh]=t[v.wh];var I=h.clipShape={};I[v.xy]=-t[v.xy],I[v.wh]=f.ecSize[v.wh],I[c.xy]=0,I[c.wh]=t[c.wh]}function rT(r){var e=r.symbolPatternSize,t=te(r.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),t.type!=="image"&&t.setStyle({strokeNoScale:!0}),t}function nT(r,e,t,n){var i=r.__pictorialBundle,a=t.symbolSize,o=t.valueLineWidth,s=t.pathPosition,l=e.valueDim,u=t.repeatTimes||0,f=0,h=a[e.valueDim.index]+o+t.symbolMargin*2;for(Gp(r,function(d){d.__pictorialAnimationIndex=f,d.__pictorialRepeatTimes=u,f<u?ia(d,null,p(f),t,n):ia(d,null,{scaleX:0,scaleY:0},t,n,function(){i.remove(d)}),f++});f<u;f++){var v=rT(t);v.__pictorialAnimationIndex=f,v.__pictorialRepeatTimes=u,i.add(v);var c=p(f);ia(v,{x:c.x,y:c.y,scaleX:0,scaleY:0},{scaleX:c.scaleX,scaleY:c.scaleY,rotation:c.rotation},t,n)}function p(d){var g=s.slice(),y=t.pxSign,m=d;return(t.symbolRepeatDirection==="start"?y>0:y<0)&&(m=u-1-d),g[l.index]=h*(m-u/2+.5)+s[l.index],{x:g[0],y:g[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation}}}function iT(r,e,t,n){var i=r.__pictorialBundle,a=r.__pictorialMainPath;a?ia(a,null,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:t.symbolScale[0],scaleY:t.symbolScale[1],rotation:t.rotation},t,n):(a=r.__pictorialMainPath=rT(t),i.add(a),ia(a,{x:t.pathPosition[0],y:t.pathPosition[1],scaleX:0,scaleY:0,rotation:t.rotation},{scaleX:t.symbolScale[0],scaleY:t.symbolScale[1]},t,n))}function aT(r,e,t){var n=O({},e.barRectShape),i=r.__pictorialBarRect;i?ia(i,null,{shape:n},e,t):(i=r.__pictorialBarRect=new pt({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,r.add(i))}function oT(r,e,t,n){if(t.symbolClip){var i=r.__pictorialClipPath,a=O({},t.clipShape),o=e.valueDim,s=t.animationModel,l=t.dataIndex;if(i)It(i,{shape:a},s,l);else{a[o.wh]=0,i=new pt({shape:a}),r.__pictorialBundle.setClipPath(i),r.__pictorialClipPath=i;var u={};u[o.wh]=t.clipShape[o.wh],ma[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function u0(r,e){var t=r.getItemModel(e);return t.getAnimationDelayParams=t5,t.isAnimationEnabled=e5,t}function t5(r){return{index:r.__pictorialAnimationIndex,count:r.__pictorialRepeatTimes}}function e5(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function f0(r,e,t,n){var i=new it,a=new it;return i.add(a),i.__pictorialBundle=a,a.x=t.bundlePosition[0],a.y=t.bundlePosition[1],t.symbolRepeat?nT(i,e,t):iT(i,e,t),aT(i,t,n),oT(i,e,t,n),i.__pictorialShapeStr=sT(r,t),i.__pictorialSymbolMeta=t,i}function r5(r,e,t){var n=t.animationModel,i=t.dataIndex,a=r.__pictorialBundle;It(a,{x:t.bundlePosition[0],y:t.bundlePosition[1]},n,i),t.symbolRepeat?nT(r,e,t,!0):iT(r,e,t,!0),aT(r,t,!0),oT(r,e,t,!0)}function h0(r,e,t,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];Gp(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(t=null),T(a,function(o){Po(o,{scaleX:0,scaleY:0},t,e,function(){n.parent&&n.parent.remove(n)})}),r.setItemGraphicEl(e,null)}function sT(r,e){return[r.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function Gp(r,e,t){T(r.__pictorialBundle.children(),function(n){n!==r.__pictorialBarRect&&e.call(t,n)})}function ia(r,e,t,n,i,a){e&&r.attr(e),n.symbolClip&&!i?t&&r.attr(t):t&&ma[i?"updateProps":"initProps"](r,t,n.animationModel,n.dataIndex,a)}function c0(r,e,t){var n=t.dataIndex,i=t.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),f=a.get("focus"),h=a.get("blurScope"),v=a.get("scale");Gp(r,function(d){if(d instanceof fe){var g=d.style;d.useStyle(O({image:g.image,x:g.x,y:g.y,width:g.width,height:g.height},t.style))}else d.useStyle(t.style);var y=d.ensureState("emphasis");y.style=o,v&&(y.scaleX=d.scaleX*1.1,y.scaleY=d.scaleY*1.1),d.ensureState("blur").style=s,d.ensureState("select").style=l,u&&(d.cursor=u),d.z2=t.z2});var c=e.valueDim.posDesc[+(t.boundingLength>0)],p=r.__pictorialBarRect;p.ignoreClip=!0,$r(p,Yr(i),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:Hu(e.seriesModel.getData(),n),inheritColor:t.style.fill,defaultOpacity:t.style.opacity,defaultOutsidePosition:c}),Sn(r,f,h,a.get("disabled"))}function v0(r){var e=Math.round(r);return Math.abs(r-e)<1e-4?e:Math.ceil(r)}const n5=qN;var i5=function(r){E(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.pictorialBar",e.dependencies=["grid"],e.defaultOption=An(Zl.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Zl);const a5=i5;function o5(r){r.registerChartView(n5),r.registerSeriesModel(a5),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ht(Ew,"pictorialBar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,kw("pictorialBar"))}function s5(r,e,t,n){return r&&(r.legacy||r.legacy!==!1&&!t&&!n&&e!=="tspan"&&(e==="text"||tt(r,"text")))}function l5(r,e,t){var n=r,i,a,o;if(e==="text")o=n;else{o={},tt(n,"text")&&(o.text=n.text),tt(n,"rich")&&(o.rich=n.rich),tt(n,"textFill")&&(o.fill=n.textFill),tt(n,"textStroke")&&(o.stroke=n.textStroke),tt(n,"fontFamily")&&(o.fontFamily=n.fontFamily),tt(n,"fontSize")&&(o.fontSize=n.fontSize),tt(n,"fontStyle")&&(o.fontStyle=n.fontStyle),tt(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=tt(n,"textPosition");t?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),tt(n,"textPosition")&&(i.position=n.textPosition),tt(n,"textOffset")&&(i.offset=n.textOffset),tt(n,"textRotation")&&(i.rotation=n.textRotation),tt(n,"textDistance")&&(i.distance=n.textDistance)}return p0(o,r),T(o.rich,function(l){p0(l,l)}),{textConfig:i,textContent:a}}function p0(r,e){e&&(e.font=e.textFont||e.font,tt(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),tt(e,"textAlign")&&(r.align=e.textAlign),tt(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),tt(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),tt(e,"textWidth")&&(r.width=e.textWidth),tt(e,"textHeight")&&(r.height=e.textHeight),tt(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),tt(e,"textPadding")&&(r.padding=e.textPadding),tt(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),tt(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),tt(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),tt(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),tt(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),tt(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),tt(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}var lT={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},d0=at(lT);Ve(Sr,function(r,e){return r[e]=1,r},{});Sr.join(", ");var Jl=["","style","shape","extra"],ca=St();function Hp(r,e,t,n,i){var a=r+"Animation",o=Bv(r,n,i)||{},s=ca(e).userDuring;return o.duration>0&&(o.during=s?W(p5,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),O(o,t[a]),o}function Sh(r,e,t,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=t.isAnimationEnabled(),l=ca(r),u=e.style;l.userDuring=e.during;var f={},h={};if(g5(r,e,h),y0("shape",e,h),y0("extra",e,h),!a&&s&&(d5(r,e,f),g0("shape",r,e,f),g0("extra",r,e,f),y5(r,e,u,f)),h.style=u,f5(r,h,o),c5(r,e),s)if(a){var v={};T(Jl,function(p){var d=p?e[p]:e;d&&d.enterFrom&&(p&&(v[p]=v[p]||{}),O(p?v[p]:v,d.enterFrom))});var c=Hp("enter",r,e,t,i);c.duration>0&&r.animateFrom(v,c)}else h5(r,e,i||0,t,f);uT(r,e),u?r.dirty():r.markRedraw()}function uT(r,e){for(var t=ca(r).leaveToProps,n=0;n<Jl.length;n++){var i=Jl[n],a=i?e[i]:e;a&&a.leaveTo&&(t||(t=ca(r).leaveToProps={}),i&&(t[i]=t[i]||{}),O(i?t[i]:t,a.leaveTo))}}function u5(r,e,t,n){if(r){var i=r.parent,a=ca(r).leaveToProps;if(a){var o=Hp("update",r,e,t,0);o.done=function(){i.remove(r),n&&n()},r.animateTo(a,o)}else i.remove(r),n&&n()}}function gi(r){return r==="all"}function f5(r,e,t){var n=e.style;if(!r.isGroup&&n){if(t){r.useStyle({});for(var i=r.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(n)}e&&(e.style=null,e&&r.attr(e),e.style=n)}function h5(r,e,t,n,i){if(i){var a=Hp("update",r,e,n,t);a.duration>0&&r.animateFrom(i,a)}}function c5(r,e){tt(e,"silent")&&(r.silent=e.silent),tt(e,"ignore")&&(r.ignore=e.ignore),r instanceof Vr&&tt(e,"invisible")&&(r.invisible=e.invisible),r instanceof gt&&tt(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var fr={},v5={setTransform:function(r,e){return fr.el[r]=e,this},getTransform:function(r){return fr.el[r]},setShape:function(r,e){var t=fr.el,n=t.shape||(t.shape={});return n[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=fr.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=fr.el,n=t.style;return n&&(n[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=fr.el.style;if(e)return e[r]},setExtra:function(r,e){var t=fr.el.extra||(fr.el.extra={});return t[r]=e,this},getExtra:function(r){var e=fr.el.extra;if(e)return e[r]}};function p5(){var r=this,e=r.el;if(e){var t=ca(e).userDuring,n=r.userDuring;if(t!==n){r.el=r.userDuring=null;return}fr.el=e,n(v5)}}function g0(r,e,t,n){var i=t[r];if(i){var a=e[r],o;if(a){var s=t.transition,l=i.transition;if(l)if(!o&&(o=n[r]={}),gi(l))O(o,a);else for(var u=Ct(l),f=0;f<u.length;f++){var h=u[f],v=a[h];o[h]=v}else if(gi(s)||st(s,r)>=0){!o&&(o=n[r]={});for(var c=at(a),f=0;f<c.length;f++){var h=c[f],v=a[h];m5(i[h],v)&&(o[h]=v)}}}}}function y0(r,e,t){var n=e[r];if(n)for(var i=t[r]={},a=at(n),o=0;o<a.length;o++){var s=a[o];i[s]=uo(n[s])}}function d5(r,e,t){for(var n=e.transition,i=gi(n)?Sr:Ct(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function g5(r,e,t){for(var n=0;n<d0.length;n++){var i=d0[n],a=lT[i],o=e[i];o&&(t[a[0]]=o[0],t[a[1]]=o[1])}for(var n=0;n<Sr.length;n++){var s=Sr[n];e[s]!=null&&(t[s]=e[s])}}function y5(r,e,t,n){if(t){var i=r.style,a;if(i){var o=t.transition,s=e.transition;if(o&&!gi(o)){var l=Ct(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var f=l[u],h=i[f];a[f]=h}}else if(r.getAnimationStyleProps&&(gi(s)||gi(o)||st(s,"style")>=0)){var v=r.getAnimationStyleProps(),c=v?v.style:null;if(c){!a&&(a=n.style={});for(var p=at(t),u=0;u<p.length;u++){var f=p[u];if(c[f]){var h=i[f];a[f]=h}}}}}}}function m5(r,e){return Qt(r)?r!==e:r!=null&&isFinite(r)}var fT=St(),_5=["percent","easing","shape","style","extra"];function S5(r){r.stopAnimation("keyframe"),r.attr(fT(r))}function $c(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(z(e)){T(e,function(s){$c(r,s,t)});return}var n=e.keyframes,i=e.duration;if(t&&i==null){var a=Bv("enter",t,0);i=a&&a.duration}if(!(!n||!i)){var o=fT(r);T(Jl,function(s){if(!(s&&!r[s])){var l;n.sort(function(u,f){return u.percent-f.percent}),T(n,function(u){var f=r.animators,h=s?u[s]:u;if(h){var v=at(h);if(s||(v=xt(v,function(d){return st(_5,d)<0})),!!v.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var c=0;c<f.length;c++)f[c]!==l&&f[c].targetName===l.targetName&&f[c].stopTracks(v);s&&(o[s]=o[s]||{});var p=s?o[s]:o;T(v,function(d){p[d]=((s?r[s]:r)||{})[d]}),l.whenWithKeys(i*u.percent,h,v,u.easing)}}}),l&&l.delay(e.delay||0).duration(i).start(e.easing)}})}}}var Qn=St(),m0=Z,xh=W,x5=function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(e,t,n,i){var a=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,e,t,n);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(e,t);if(!s)s=this._group=new it,this.createPointerEl(s,u,e,t),this.createLabelEl(s,u,e,t),n.getZr().add(s);else{var v=ht(_0,t,h);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,t)}x0(s,t,!0),this._renderHandle(a)}},r.prototype.remove=function(e){this.clear(e)},r.prototype.dispose=function(e){this.clear(e)},r.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,a=i.type==="category",o=t.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=Ip(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},r.prototype.makeElOption=function(e,t,n,i,a){},r.prototype.createPointerEl=function(e,t,n,i){var a=t.pointer;if(a){var o=Qn(e).pointerEl=new ma[a.type](m0(t.pointer));e.add(o)}},r.prototype.createLabelEl=function(e,t,n,i){if(t.label){var a=Qn(e).labelEl=new dt(m0(t.label));e.add(a),S0(a,i)}},r.prototype.updatePointerEl=function(e,t,n){var i=Qn(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},r.prototype.updateLabelEl=function(e,t,n,i){var a=Qn(e).labelEl;a&&(a.setStyle(t.label.style),n(a,{x:t.label.x,y:t.label.y}),S0(a,i))},r.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var t=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=t.getModel("handle"),o=t.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=ya(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Nr(u.event)},onmousedown:xh(this._onHandleDragMove,this,0,0),drift:xh(this._onHandleDragMove,this),ondragend:xh(this._onHandleDragEnd,this)}),n.add(i)),x0(i,t,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");z(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,es(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},r.prototype._moveHandleToValue=function(e,t){_0(this._axisPointerModel,!t&&this._moveAnimation,this._handle,wh(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(wh(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(wh(i)),Qn(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.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(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),Bo(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},r}();function _0(r,e,t,n){hT(Qn(t).lastProp,n)||(Qn(t).lastProp=n,e?It(t,n,r):(t.stopAnimation(),t.attr(n)))}function hT(r,e){if(U(r)&&U(e)){var t=!0;return T(e,function(n,i){t=t&&hT(r[i],n)}),!!t}else return r===e}function S0(r,e){r[e.get(["label","show"])?"show":"hide"]()}function wh(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function x0(r,e,t){var n=e.get("z"),i=e.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=t)})}const cT=x5;function vT(r){var e=r.get("type"),t=r.getModel(e+"Style"),n;return e==="line"?(n=t.getLineStyle(),n.fill=null):e==="shadow"&&(n=t.getAreaStyle(),n.stroke=null),n}function pT(r,e,t,n,i){var a=t.get("value"),o=dT(a,e.axis,e.ecModel,t.get("seriesDataIndices"),{precision:t.get(["label","precision"]),formatter:t.get(["label","formatter"])}),s=t.getModel("label"),l=Sa(s.get("padding")||0),u=s.getFont(),f=Ko(o,u),h=i.position,v=f.width+l[1]+l[3],c=f.height+l[0]+l[2],p=i.align;p==="right"&&(h[0]-=v),p==="center"&&(h[0]-=v/2);var d=i.verticalAlign;d==="bottom"&&(h[1]-=c),d==="middle"&&(h[1]-=c/2),w5(h,v,c,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=e.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Et(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function w5(r,e,t,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+e,i)-e,r[1]=Math.min(r[1]+t,a)-t,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function dT(r,e,t,n,i){r=e.scale.parse(r);var a=e.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Cp(e,{value:r}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};T(n,function(l){var u=t.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,h=u&&u.getDataParams(f);h&&s.seriesData.push(h)}),G(o)?a=o.replace("{value}",a):K(o)&&(a=o(s))}return a}function gT(r,e,t){var n=xe();return Cn(n,n,t.rotation),zr(n,n,t.position),tr([r.dataToCoord(e),(t.labelOffset||0)+(t.labelDirection||1)*(t.labelMargin||0)],n)}function b5(r,e,t,n,i,a){var o=Tn.innerTextLayout(t.rotation,0,t.labelDirection);t.labelMargin=i.get(["label","margin"]),pT(e,n,i,a,{position:gT(n.axis,r,t),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function yT(r,e,t){return t=t||0,{x1:r[t],y1:r[1-t],x2:e[t],y2:e[1-t]}}function T5(r,e,t){return t=t||0,{x:r[t],y:r[1-t],width:e[t],height:e[1-t]}}function w0(r,e,t,n,i,a){return{cx:r,cy:e,r0:t,r:n,startAngle:i,endAngle:a,clockwise:!0}}var C5=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),f=b0(l,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var v=vT(a),c=A5[u](s,h,f);c.style=v,t.graphicKey=c.type,t.pointer=c}var p=Ec(l.model,i);b5(n,t,p,i,a,o)},e.prototype.getHandleTransform=function(t,n,i){var a=Ec(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=gT(n.axis,t,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=b0(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[t.x,t.y];h[f]+=n[f],h[f]=Math.min(l[1],h[f]),h[f]=Math.max(l[0],h[f]);var v=(u[1]+u[0])/2,c=[v,v];c[f]=h[f];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:c,tooltipOption:p[f]}},e}(cT);function b0(r,e){var t={};return t[e.dim+"AxisIndex"]=e.index,r.getCartesian(t)}var A5={line:function(r,e,t){var n=yT([e,t[0]],[e,t[1]],T0(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,e,t){var n=Math.max(1,r.getBandWidth()),i=t[1]-t[0];return{type:"Rect",shape:T5([e-n/2,t[0]],[n,i],T0(r))}}};function T0(r){return r.dim==="x"?0:1}const M5=C5;var D5=function(r){E(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:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(ut);const L5=D5;var kr=St(),P5=T;function mT(r,e,t){if(!ft.node){var n=e.getZr();kr(n).records||(kr(n).records={}),I5(n,e);var i=kr(n).records[r]||(kr(n).records[r]={});i.handler=t}}function I5(r,e){if(kr(r).initialized)return;kr(r).initialized=!0,t("click",ht(C0,"click")),t("mousemove",ht(C0,"mousemove")),t("globalout",E5);function t(n,i){r.on(n,function(a){var o=k5(e);P5(kr(r).records,function(s){s&&i(s,a,o.dispatchAction)}),R5(o.pendings,e)})}}function R5(r,e){var t=r.showTip.length,n=r.hideTip.length,i;t?i=r.showTip[t-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function E5(r,e,t){r.handler("leave",null,t)}function C0(r,e,t,n){e.handler(r,t,n)}function k5(r){var e={showTip:[],hideTip:[]},t=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=t,r.dispatchAction(n))};return{dispatchAction:t,pendings:e}}function Yc(r,e){if(!ft.node){var t=e.getZr(),n=(kr(t).records||{})[r];n&&(kr(t).records[r]=null)}}var O5=function(r){E(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,n,i){var a=n.getComponent("tooltip"),o=t.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";mT("axisPointer",i,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,n){Yc("axisPointer",n)},e.prototype.dispose=function(t,n){Yc("axisPointer",n)},e.type="axisPointer",e}(At);const B5=O5;function _T(r,e){var t=[],n=r.seriesIndex,i;if(n==null||!(i=e.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=mi(a,r);if(o==null||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)t=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),h=f.dim,v=u.dim,c=h==="x"||h==="radius"?1:0,p=a.mapDimension(v),d=[];d[c]=a.get(p,o),d[1-c]=a.get(a.getCalculationInfo("stackResultDimension"),o),t=l.dataToPoint(d)||[]}else t=l.dataToPoint(a.getValues(V(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),t=[g.x+g.width/2,g.y+g.height/2]}return{point:t,el:s}}var A0=St();function N5(r,e,t){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||W(t.dispatchAction,t),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){vl(i)&&(i=_T({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=vl(i),u=a.axesInfo,f=s.axesInfo,h=n==="leave"||vl(i),v={},c={},p={list:[],map:{}},d={showPointer:ht(V5,c),showTooltip:ht(F5,p)};T(s.coordSysMap,function(y,m){var _=l||y.containPoint(i);T(s.coordSysAxesInfo[m],function(S,w){var x=S.axis,b=$5(u,S);if(!h&&_&&(!u||b)){var C=b&&b.value;C==null&&!l&&(C=x.pointToData(i)),C!=null&&M0(S,C,d,!1,v)}})});var g={};return T(f,function(y,m){var _=y.linkGroup;_&&!c[m]&&T(_.axesInfo,function(S,w){var x=c[w];if(S!==y&&x){var b=x.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,D0(S),D0(y)))),g[y.key]=b}})}),T(g,function(y,m){M0(f[m],y,d,!0,v)}),G5(c,f,v),H5(p,i,r,o),W5(f,o,t),v}}function M0(r,e,t,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!r.involveSeries){t.showPointer(r,e);return}var o=z5(e,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&O(i,s[0]),!n&&r.snap&&a.containData(l)&&l!=null&&(e=l),t.showPointer(r,e,s),t.showTooltip(r,o,l)}}function z5(r,e){var t=e.axis,n=t.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return T(e.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(n),h,v;if(l.getAxisTooltipData){var c=l.getAxisTooltipData(f,r,t);v=c.dataIndices,h=c.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],r,t.type==="category"?.5:null),!v.length)return;h=l.getData().get(f[0],v[0])}if(!(h==null||!isFinite(h))){var p=r-h,d=Math.abs(p);d<=o&&((d<o||p>=0&&s<0)&&(o=d,s=p,i=h,a.length=0),T(v,function(g){a.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function V5(r,e,t,n){r[e.key]={value:t,payloadBatch:n}}function F5(r,e,t,n){var i=t.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Go(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function G5(r,e,t){var n=t.axesInfo=[];T(e,function(i,a){var o=i.axisPointerModel.option,s=r[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function H5(r,e,t,n){if(vl(e)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:t.tooltipOption,position:t.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function W5(r,e,t){var n=t.getZr(),i="axisPointerLastHighlights",a=A0(n)[i]||{},o=A0(n)[i]={};T(r,function(u,f){var h=u.axisPointerModel.option;h.status==="show"&&u.triggerEmphasis&&T(h.seriesDataIndices,function(v){var c=v.seriesIndex+" | "+v.dataIndex;o[c]=v})});var s=[],l=[];T(a,function(u,f){!o[f]&&l.push(u)}),T(o,function(u,f){!a[f]&&s.push(u)}),l.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function $5(r,e){for(var t=0;t<(r||[]).length;t++){var n=r[t];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}function D0(r){var e=r.axis.model,t={},n=t.axisDim=r.axis.dim;return t.axisIndex=t[n+"AxisIndex"]=e.componentIndex,t.axisName=t[n+"AxisName"]=e.name,t.axisId=t[n+"AxisId"]=e.id,t}function vl(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Wp(r){ns.registerAxisPointerClass("CartesianAxisPointer",M5),r.registerComponentModel(L5),r.registerComponentView(B5),r.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!z(t)&&(e.axisPointer.link=[t])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=wO(e,t)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},N5)}function Y5(r){Wt(NO),Wt(Wp)}var U5=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.makeElOption=function(t,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),f=u.getExtent(),h=s.dataToCoord(n),v=a.get("type");if(v&&v!=="none"){var c=vT(a),p=Z5[v](s,l,h,f);p.style=c,t.graphicKey=p.type,t.pointer=p}var d=a.get(["label","margin"]),g=X5(n,i,a,l,d);pT(t,i,a,o,g)},e}(cT);function X5(r,e,t,n,i){var a=e.axis,o=a.dataToCoord(r),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,f,h;if(a.dim==="radius"){var v=xe();Cn(v,v,s),zr(v,v,[n.cx,n.cy]),u=tr([o,-i],v);var c=e.getModel("axisLabel").get("rotate")||0,p=Tn.innerTextLayout(s,c*Math.PI/180,-1);f=p.textAlign,h=p.textVerticalAlign}else{var d=l[1];u=n.coordToPoint([d+i,o]);var g=n.cx,y=n.cy;f=Math.abs(u[0]-g)/d<.3?"center":u[0]>g?"left":"right",h=Math.abs(u[1]-y)/d<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:f,verticalAlign:h}}var Z5={line:function(r,e,t,n){return r.dim==="angle"?{type:"Line",shape:yT(e.coordToPoint([n[0],t]),e.coordToPoint([n[1],t]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:t}}},shadow:function(r,e,t,n){var i=Math.max(1,r.getBandWidth()),a=Math.PI/180;return r.dim==="angle"?{type:"Sector",shape:w0(e.cx,e.cy,n[0],n[1],(-t-i/2)*a,(-t+i/2)*a)}:{type:"Sector",shape:w0(e.cx,e.cy,t-i/2,t+i/2,0,Math.PI*2)}}};const q5=U5;var K5=function(r){E(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 n,i=this.ecModel;return i.eachComponent(t,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(ut);const j5=K5;var $p=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Ot).models[0]},e.type="polarAxis",e}(ut);$t($p,rs);var J5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="angleAxis",e}($p),Q5=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="radiusAxis",e}($p),Yp=function(r){E(e,r);function e(t,n){return r.call(this,"radius",t,n)||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e}(ar);Yp.prototype.dataToRadius=ar.prototype.dataToCoord;Yp.prototype.radiusToData=ar.prototype.coordToData;const tz=Yp;var ez=St(),Up=function(r){E(e,r);function e(t,n){return r.call(this,"angle",t,n||[0,360])||this}return e.prototype.pointToData=function(t,n){return this.polar.pointToData(t,n)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,n=t.getLabelModel(),i=t.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l),f=Ko(s==null?"":s+"",n.getFont(),"center","top"),h=Math.max(f.height,7),v=h/u;isNaN(v)&&(v=1/0);var c=Math.max(0,Math.floor(v)),p=ez(t.model),d=p.lastAutoInterval,g=p.lastTickCount;return d!=null&&g!=null&&Math.abs(d-c)<=1&&Math.abs(g-o)<=1&&d>c?c=d:(p.lastTickCount=o,p.lastAutoInterval=c),c},e}(ar);Up.prototype.dataToAngle=ar.prototype.dataToCoord;Up.prototype.angleToData=ar.prototype.coordToData;const rz=Up;var ST=["radius","angle"],nz=function(){function r(e){this.dimensions=ST,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new tz,this._angleAxis=new rz,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=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),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){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},r.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},r.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(t*t+n*n);t/=l,n/=l;for(var u=Math.atan2(-n,t)/Math.PI*180,f=u<o?1:-1;u<o||u>s;)u+=f*360;return[l,u]},r.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,a=-Math.sin(n)*t+this.cy;return[i,a]},r.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),a=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:e.inverse,contain:function(s,l){var u=s-this.cx,f=l-this.cy,h=u*u+f*f,v=this.r,c=this.r0;return v!==c&&h-o<=v*v&&h+o>=c*c}}},r.prototype.convertToPixel=function(e,t,n){var i=L0(t);return i===this?this.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var i=L0(t);return i===this?this.pointToData(n):null},r}();function L0(r){var e=r.seriesModel,t=r.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}const iz=nz;function az(r,e,t){var n=e.get("center"),i=t.getWidth(),a=t.getHeight();r.cx=et(n[0],i),r.cy=et(n[1],a);var o=r.getRadiusAxis(),s=Math.min(i,a)/2,l=e.get("radius");l==null?l=[0,"100%"]:z(l)||(l=[0,l]);var u=[et(l[0],s),et(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function oz(r,e){var t=this,n=t.getAngleAxis(),i=t.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),r.eachSeries(function(s){if(s.coordinateSystem===t){var l=s.getData();T(Ul(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),T(Ul(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),fa(n.scale,n.model),fa(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function sz(r){return r.mainType==="angleAxis"}function P0(r,e){var t;if(r.type=e.get("type"),r.scale=Gu(e),r.onBand=e.get("boundaryGap")&&r.type==="category",r.inverse=e.get("inverse"),sz(e)){r.inverse=r.inverse!==e.get("clockwise");var n=e.get("startAngle"),i=(t=e.get("endAngle"))!==null&&t!==void 0?t:n+(r.inverse?-360:360);r.setExtent(n,i)}e.axis=r,r.model=e}var lz={dimensions:ST,create:function(r,e){var t=[];return r.eachComponent("polar",function(n,i){var a=new iz(i+"");a.update=oz;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");P0(o,l),P0(s,u),az(a,n,e),t.push(a),n.coordinateSystem=a,a.model=n}),r.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",Ot).models[0];n.coordinateSystem=i.coordinateSystem}}),t}};const uz=lz;var fz=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function Xs(r,e,t){e[1]>e[0]&&(e=e.slice().reverse());var n=r.coordToPoint([e[0],t]),i=r.coordToPoint([e[1],t]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function Zs(r){var e=r.getRadiusAxis();return e.inverse?0:1}function I0(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 hz=function(r){E(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,n){if(this.group.removeAll(),!!t.get("show")){var i=t.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=V(i.getViewLabels(),function(f){f=Z(f);var h=i.scale,v=h.type==="ordinal"?h.getRawOrdinalNumber(f.tickValue):f.tickValue;return f.coord=i.dataToCoord(v),f});I0(u),I0(s),T(fz,function(f){t.get([f,"show"])&&(!i.scale.isBlank()||f==="axisLine")&&cz[f](this.group,t,a,s,l,o,u)},this)}},e.type="angleAxis",e}(ns),cz={axisLine:function(r,e,t,n,i,a){var o=e.getModel(["axisLine","lineStyle"]),s=t.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),f=Zs(t),h=f?0:1,v,c=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[h]===0?v=new ma[c]({shape:{cx:t.cx,cy:t.cy,r:a[f],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):v=new Jo({shape:{cx:t.cx,cy:t.cy,r:a[f],r0:a[h]},style:o.getLineStyle(),z2:1,silent:!0}),v.style.fill=null,r.add(v)},axisTick:function(r,e,t,n,i,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[Zs(t)],u=V(n,function(f){return new ie({shape:Xs(t,[l,l+s],f.coord)})});r.add(Be(u,{style:q(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(r,e,t,n,i,a){if(i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[Zs(t)],f=[],h=0;h<i.length;h++)for(var v=0;v<i[h].length;v++)f.push(new ie({shape:Xs(t,[u,u+l],i[h][v].coord)}));r.add(Be(f,{style:q(s.getModel("lineStyle").getLineStyle(),q(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(r,e,t,n,i,a,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),f=e.get("triggerEvent");T(o,function(h,v){var c=l,p=h.tickValue,d=a[Zs(t)],g=t.coordToPoint([d+u,h.coord]),y=t.cx,m=t.cy,_=Math.abs(g[0]-y)/d<.3?"center":g[0]>y?"left":"right",S=Math.abs(g[1]-m)/d<.3?"middle":g[1]>m?"top":"bottom";if(s&&s[p]){var w=s[p];U(w)&&w.textStyle&&(c=new Tt(w.textStyle,l,l.ecModel))}var x=new dt({silent:Tn.isLabelSilent(e),style:Et(c,{x:g[0],y:g[1],fill:c.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:h.formattedLabel,align:_,verticalAlign:S})});if(r.add(x),f){var b=Tn.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=h.rawLabel,nt(x).eventData=b}},this)},splitLine:function(r,e,t,n,i,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=0;h<n.length;h++){var v=u++%l.length;f[v]=f[v]||[],f[v].push(new ie({shape:Xs(t,a,n[h].coord)}))}for(var h=0;h<f.length;h++)r.add(Be(f[h],{style:q({stroke:l[h%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(r,e,t,n,i,a){if(i.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var f=0;f<i[u].length;f++)l.push(new ie({shape:Xs(t,a,i[u][f].coord)}));r.add(Be(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(r,e,t,n,i,a){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=[],h=Math.PI/180,v=-n[0].coord*h,c=Math.min(a[0],a[1]),p=Math.max(a[0],a[1]),d=e.get("clockwise"),g=1,y=n.length;g<=y;g++){var m=g===y?n[0].coord:n[g].coord,_=u++%l.length;f[_]=f[_]||[],f[_].push(new wr({shape:{cx:t.cx,cy:t.cy,r0:c,r:p,startAngle:v,endAngle:-m*h,clockwise:d},silent:!0})),v=-m*h}for(var g=0;g<f.length;g++)r.add(Be(f[g],{style:q({fill:l[g%l.length]},s.getAreaStyle()),silent:!0}))}}};const vz=hz;var pz=["axisLine","axisTickLabel","axisName"],dz=["splitLine","splitArea","minorSplitLine"],gz=function(r){E(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,n){if(this.group.removeAll(),!!t.get("show")){var i=this._axisGroup,a=this._axisGroup=new it;this.group.add(a);var o=t.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),f=o.getMinorTicksCoords(),h=l.getExtent()[0],v=o.getExtent(),c=mz(s,t,h),p=new Tn(t,c);T(pz,p.add,p),a.add(p.getGroup()),Su(i,a,t),T(dz,function(d){t.get([d,"show"])&&!o.scale.isBlank()&&yz[d](this.group,t,s,h,v,u,f)},this)}},e.type="radiusAxis",e}(ns),yz={splitLine:function(r,e,t,n,i,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,f=t.getAngleAxis(),h=Math.PI/180,v=f.getExtent(),c=Math.abs(v[1]-v[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var p=[],d=0;d<a.length;d++){var g=u++%l.length;p[g]=p[g]||[],p[g].push(new ma[c]({shape:{cx:t.cx,cy:t.cy,r:Math.max(a[d].coord,0),startAngle:-v[0]*h,endAngle:-v[1]*h,clockwise:f.inverse}}))}for(var d=0;d<p.length;d++)r.add(Be(p[d],{style:q({stroke:l[d%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(r,e,t,n,i,a,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],f=0;f<o.length;f++)for(var h=0;h<o[f].length;h++)u.push(new Wr({shape:{cx:t.cx,cy:t.cy,r:o[f][h].coord}}));r.add(Be(u,{style:q({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(r,e,t,n,i,a){if(a.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var f=[],h=a[0].coord,v=1;v<a.length;v++){var c=u++%l.length;f[c]=f[c]||[],f[c].push(new wr({shape:{cx:t.cx,cy:t.cy,r0:h,r:a[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),h=a[v].coord}for(var v=0;v<f.length;v++)r.add(Be(f[v],{style:q({fill:l[v%l.length]},s.getAreaStyle()),silent:!0}))}}};function mz(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}}const _z=gz;function xT(r){return r.get("stack")||"__ec_stack_"+r.seriesIndex}function wT(r,e){return e.dim+r.model.componentIndex}function Sz(r,e,t){var n={},i=xz(xt(e.getSeriesByType(r),function(a){return!e.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));e.eachSeriesByType(r,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=wT(s,l),f=xT(a),h=i[u][f],v=h.offset,c=h.width,p=s.getOtherAxis(l),d=a.coordinateSystem.cx,g=a.coordinateSystem.cy,y=a.get("barMinHeight")||0,m=a.get("barMinAngle")||0;n[f]=n[f]||[];for(var _=o.mapDimension(p.dim),S=o.mapDimension(l.dim),w=wn(o,_),x=l.dim!=="radius"||!a.get("roundCap",!0),b=p.model,C=b.get("startValue"),A=p.dataToCoord(C||0),M=0,D=o.count();M<D;M++){var L=o.get(_,M),P=o.get(S,M),I=L>=0?"p":"n",R=A;w&&(n[f][P]||(n[f][P]={p:A,n:A}),R=n[f][P][I]);var k=void 0,F=void 0,B=void 0,N=void 0;if(p.dim==="radius"){var H=p.dataToCoord(L)-A,X=l.dataToCoord(P);Math.abs(H)<y&&(H=(H<0?-1:1)*y),k=R,F=R+H,B=X-v,N=B-c,w&&(n[f][P][I]=F)}else{var Y=p.dataToCoord(L,x)-A,ot=l.dataToCoord(P);Math.abs(Y)<m&&(Y=(Y<0?-1:1)*m),k=ot+v,F=k+c,B=R,N=R+Y,w&&(n[f][P][I]=N)}o.setItemLayout(M,{cx:d,cy:g,r0:k,r:F,startAngle:-B*Math.PI/180,endAngle:-N*Math.PI/180,clockwise:B>=N})}}})}function xz(r){var e={};T(r,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=wT(o,s),u=s.getExtent(),f=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),h=e[l]||{bandWidth:f,remainedWidth:f,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},v=h.stacks;e[l]=h;var c=xT(n);v[c]||h.autoWidthCount++,v[c]=v[c]||{width:0,maxWidth:0};var p=et(n.get("barWidth"),f),d=et(n.get("barMaxWidth"),f),g=n.get("barGap"),y=n.get("barCategoryGap");p&&!v[c].width&&(p=Math.min(h.remainedWidth,p),v[c].width=p,h.remainedWidth-=p),d&&(v[c].maxWidth=d),g!=null&&(h.gap=g),y!=null&&(h.categoryGap=y)});var t={};return T(e,function(n,i){t[i]={};var a=n.stacks,o=n.bandWidth,s=et(n.categoryGap,o),l=et(n.gap,1),u=n.remainedWidth,f=n.autoWidthCount,h=(u-s)/(f+(f-1)*l);h=Math.max(h,0),T(a,function(d,g){var y=d.maxWidth;y&&y<h&&(y=Math.min(y,u),d.width&&(y=Math.min(y,d.width)),u-=y,d.width=y,f--)}),h=(u-s)/(f+(f-1)*l),h=Math.max(h,0);var v=0,c;T(a,function(d,g){d.width||(d.width=h),c=d,v+=d.width*(1+l)}),c&&(v-=c.width*l);var p=-v/2;T(a,function(d,g){t[i][g]=t[i][g]||{offset:p,width:d.width},p+=d.width*(1+l)})}),t}var wz={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},bz={splitNumber:5},Tz=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="polar",e}(At);function Cz(r){Wt(Wp),ns.registerAxisPointerClass("PolarAxisPointer",q5),r.registerCoordinateSystem("polar",uz),r.registerComponentModel(j5),r.registerComponentView(Tz),Fo(r,"angle",J5,wz),Fo(r,"radius",Q5,bz),r.registerComponentView(vz),r.registerComponentView(_z),r.registerLayout(ht(Sz,"bar"))}var Az=function(r){E(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,n,i){var a=xa(t);r.prototype.init.apply(this,arguments),R0(t,a)},e.prototype.mergeOption=function(t){r.prototype.mergeOption.apply(this,arguments),R0(this.option,t)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(ut);function R0(r,e){var t=r.cellSize,n;z(t)?n=t:n=r.cellSize=[t,t],n.length===1&&(n[1]=n[0]);var i=V([0,1],function(a){return gL(e,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});xn(r,e,{type:"box",ignoreSize:i})}const Mz=Az;var Dz=function(r){E(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,n,i){var a=this.group;a.removeAll();var o=t.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(t,s,a),this._renderLines(t,s,l,a),this._renderYearText(t,s,l,a),this._renderMonthText(t,u,l,a),this._renderWeekText(t,u,s,l,a)},e.prototype._renderDayRect=function(t,n,i){for(var a=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var f=a.dataToRect([u],!1).tl,h=new pt({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});i.add(h)}},e.prototype._renderLines=function(t,n,i,a){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 h=n.start,v=0;h.time<=n.end.time;v++){p(h.formatedDate),v===0&&(h=s.getDateInfo(n.start.y+"-"+n.start.m));var c=h.date;c.setMonth(c.getMonth()+1),h=s.getDateInfo(c)}p(s.getNextNDay(n.end.time,1).formatedDate);function p(d){o._firstDayOfMonth.push(s.getDateInfo(d)),o._firstDayPoints.push(s.dataToRect([d],!1).tl);var g=o._getLinePointsOfOneWeek(t,d,i);o._tlpoints.push(g[0]),o._blpoints.push(g[g.length-1]),u&&o._drawSplitline(g,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,i),l,a)},e.prototype._getEdgesPoints=function(t,n,i){var a=[t[0].slice(),t[t.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},e.prototype._drawSplitline=function(t,n,i){var a=new Ge({z2:20,shape:{points:t},style:n});i.add(a)},e.prototype._getLinePointsOfOneWeek=function(t,n,i){for(var a=t.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),f=a.dataToRect([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(t,n){return G(t)&&t?vL(t,n):K(t)?t(n):n.nameMap},e.prototype._yearTextPositionControl=function(t,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(a==="left"||a==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(t,n,i,a){var o=t.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,h=(u[0][1]+u[1][1])/2,v=i==="horizontal"?0:1,c={top:[f,u[v][1]],bottom:[f,u[1-v][1]],left:[u[1-v][0],h],right:[u[v][0],h]},p=n.start.y;+n.end.y>+n.start.y&&(p=p+"-"+n.end.y);var d=o.get("formatter"),g={start:n.start.y,end:n.end.y,nameMap:p},y=this._formatterLabel(d,g),m=new dt({z2:30,style:Et(o,{text:y}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,c[l],i,l,s)),a.add(m)}},e.prototype._monthTextPositionControl=function(t,n,i,a,o){var s="left",l="top",u=t[0],f=t[1];return i==="horizontal"?(f=f+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(t,n,i,a){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"),h=[this._tlpoints,this._blpoints];(!s||G(s))&&(s&&(n=pc(s)||n),s=n.get(["time","monthAbbr"])||[]);var v=u==="start"?0:1,c=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var p=f==="center",d=o.get("silent"),g=0;g<h[v].length-1;g++){var y=h[v][g].slice(),m=this._firstDayOfMonth[g];if(p){var _=this._firstDayPoints[g];y[c]=(_[c]+h[0][g+1][c])/2}var S=o.get("formatter"),w=s[+m.m-1],x={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:w},b=this._formatterLabel(S,x),C=new dt({z2:30,style:O(Et(o,{text:b}),this._monthTextPositionControl(y,p,i,u,l)),silent:d});a.add(C)}}},e.prototype._weekTextPositionControl=function(t,n,i,a,o){var s="center",l="middle",u=t[0],f=t[1],h=i==="start";return n==="horizontal"?(u=u+a+(h?1:-1)*o[0]/2,s=h?"right":"left"):(f=f+a+(h?1:-1)*o[1]/2,l=h?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(t,n,i,a,o){var s=t.getModel("dayLabel");if(s.get("show")){var l=t.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),h=s.get("margin"),v=l.getFirstDayOfWeek();if(!f||G(f)){f&&(n=pc(f)||n);var c=n.get(["time","dayOfWeekShort"]);f=c||V(n.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var p=l.getNextNDay(i.end.time,7-i.lweek).time,d=[l.getCellWidth(),l.getCellHeight()];h=et(h,Math.min(d[1],d[0])),u==="start"&&(p=l.getNextNDay(i.start.time,-(7+i.fweek)).time,h=-h);for(var g=s.get("silent"),y=0;y<7;y++){var m=l.getNextNDay(p,y),_=l.dataToRect([m.time],!1).center,S=y;S=Math.abs((y+v)%7);var w=new dt({z2:30,style:O(Et(s,{text:f[S]}),this._weekTextPositionControl(_,a,u,h,d)),silent:g});o.add(w)}}},e.type="calendar",e}(At);const Lz=Dz;var bh=864e5,Pz=function(){function r(e,t,n){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=e}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=be(e);var t=e.getFullYear(),n=e.getMonth()+1,i=n<10?"0"+n:""+n,a=e.getDate(),o=a<10?"0"+a:""+a,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:t+"",m:i,d:o,day:s,time:e.getTime(),formatedDate:t+"-"+i+"-"+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 n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];T([0,1],function(h){f(a,h)&&(o[i[h]]=a[h]*s[h])});var l={width:t.getWidth(),height:t.getHeight()},u=this._rect=ue(o,l);T([0,1],function(h){f(a,h)||(a[h]=u[i[h]]/s[h])});function f(h,v){return h[v]!=null&&h[v]!=="auto"}this._sw=a[0],this._sh=a[1]},r.prototype.dataToPoint=function(e,t){z(e)&&(e=e[0]),t==null&&(t=!0);var n=this.getDateInfo(e),i=this._rangeInfo,a=n.formatedDate;if(t&&!(n.time>=i.start.time&&n.time<i.end.time+bh))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},r.prototype.pointToData=function(e){var t=this.pointToDate(e);return t&&t.time},r.prototype.dataToRect=function(e,t){var n=this.dataToPoint(e,t);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},r.prototype.pointToDate=function(e){var t=Math.floor((e[0]-this._rect.x)/this._sw)+1,n=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,t-1,i):this._getDateByWeeksAndDay(t,n-1,i)},r.prototype.convertToPixel=function(e,t,n){var i=E0(t);return i===this?i.dataToPoint(n):null},r.prototype.convertFromPixel=function(e,t,n){var i=E0(t);return i===this?i.pointToData(n):null},r.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var e=this._model.get("range"),t;if(z(e)&&e.length===1&&(e=e[0]),z(e))t=e;else{var n=e.toString();if(/^\d{4}$/.test(n)&&(t=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),a=i.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);t=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(t=[n,n])}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])],n;t[0].time>t[1].time&&(n=!0,t.reverse());var i=Math.floor(t[1].time/bh)-Math.floor(t[0].time/bh)+1,a=new Date(t[0].time),o=a.getDate(),s=t[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-t[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-t[1].time)*u>0;)i-=u,a.setDate(l-u);var f=Math.floor((i+t[0].day+6)/7),h=n?-f+1:f-1;return n&&t.reverse(),{range:[t[0].formatedDate,t[1].formatedDate],start:t[0],end:t[1],allDay:i,weeks:f,nthWeek:h,fweek:t[0].day,lweek:t[1].day}},r.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||e===0&&t<i.fweek||e===i.weeks&&t>i.lweek)return null;var a=(e-1)*7-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},r.create=function(e,t){var n=[];return e.eachComponent("calendar",function(i){var a=new r(i);n.push(a),i.coordinateSystem=a}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},r.dimensions=["time","value"],r}();function E0(r){var e=r.calendarModel,t=r.seriesModel,n=e?e.coordinateSystem:t?t.coordinateSystem:null;return n}const Iz=Pz;function Rz(r){r.registerComponentModel(Mz),r.registerComponentView(Lz),r.registerCoordinateSystem("calendar",Iz)}function Ez(r,e){var t=r.existing;if(e.id=r.keyInfo.id,!e.type&&t&&(e.type=t.type),e.parentId==null){var n=e.parentOption;n?e.parentId=n.id:t&&(e.parentId=t.parentId)}e.parentOption=null}function k0(r,e){var t;return T(e,function(n){r[n]!=null&&r[n]!=="auto"&&(t=!0)}),t}function kz(r,e,t){var n=O({},t),i=r[e],a=t.$action||"merge";a==="merge"?i?(Q(i,n,!0),xn(i,n,{ignoreSize:!0}),ix(t,i),qs(t,i),qs(t,i,"shape"),qs(t,i,"style"),qs(t,i,"extra"),t.clipPath=i.clipPath):r[e]=n:a==="replace"?r[e]=n:a==="remove"&&i&&(r[e]=null)}var bT=["transition","enterFrom","leaveTo"],Oz=bT.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function qs(r,e,t){if(t&&(!r[t]&&e[t]&&(r[t]={}),r=r[t],e=e[t]),!(!r||!e))for(var n=t?bT:Oz,i=0;i<n.length;i++){var a=n[i];r[a]==null&&e[a]!=null&&(r[a]=e[a])}}function Bz(r,e){if(r&&(r.hv=e.hv=[k0(e,["left","right"]),k0(e,["top","bottom"])],r.type==="group")){var t=r,n=e;t.width==null&&(t.width=n.width=0),t.height==null&&(t.height=n.height=0)}}var Nz=function(r){E(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,n){var i=this.option.elements;this.option.elements=null,r.prototype.mergeOption.call(this,t,n),this.option.elements=i},e.prototype.optionUpdated=function(t,n){var i=this.option,a=(n?i:t).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var l=X1(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];T(l,function(f,h){var v=f.newOption;v&&(u.push(v),Ez(f,v),kz(o,h,v),Bz(o[h],v))},this),i.elements=xt(o,function(f){return f&&delete f.$action,f!=null})},e.prototype._flatten=function(t,n,i){T(t,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(ut),O0={path:null,compoundPath:null,group:it,image:fe,text:dt},Re=St(),zz=function(r){E(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=$()},e.prototype.render=function(t,n,i){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,i)},e.prototype._updateElements=function(t){var n=t.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=t.get("z"),s=t.get("zlevel");T(n,function(l){var u=jt(l.id,null),f=u!=null?i.get(u):null,h=jt(l.parentId,null),v=h!=null?i.get(h):a,c=l.type,p=l.style;c==="text"&&p&&l.hv&&l.hv[1]&&(p.textVerticalAlign=p.textBaseline=p.verticalAlign=p.align=null);var d=l.textContent,g=l.textConfig;if(p&&s5(p,c,!!g,!!d)){var y=l5(p,c,!0);!g&&y.textConfig&&(g=l.textConfig=y.textConfig),!d&&y.textContent&&(d=y.textContent)}var m=Vz(l),_=l.$action||"merge",S=_==="merge",w=_==="replace";if(S){var x=!f,b=f;x?b=B0(u,v,l.type,i):(b&&(Re(b).isNew=!1),S5(b)),b&&(Sh(b,m,t,{isInit:x}),N0(b,l,o,s))}else if(w){pl(f,l,i,t);var C=B0(u,v,l.type,i);C&&(Sh(C,m,t,{isInit:!0}),N0(C,l,o,s))}else _==="remove"&&(uT(f,l),pl(f,l,i,t));var A=i.get(u);if(A&&d)if(S){var M=A.getTextContent();M?M.attr(d):A.setTextContent(new dt(d))}else w&&A.setTextContent(new dt(d));if(A){var D=l.clipPath;if(D){var L=D.type,P=void 0,x=!1;if(S){var I=A.getClipPath();x=!I||Re(I).type!==L,P=x?Uc(L):I}else w&&(x=!0,P=Uc(L));A.setClipPath(P),Sh(P,D,t,{isInit:x}),$c(P,D.keyframeAnimation,t)}var R=Re(A);A.setTextConfig(g),R.option=l,Fz(A,t,l),bi({el:A,componentModel:t,itemName:A.name,itemTooltipOption:l.tooltip}),$c(A,l.keyframeAnimation,t)}})}},e.prototype._relocate=function(t,n){for(var i=t.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],f=0;f<i.length;f++){var h=i[f],v=jt(h.id,null),c=v!=null?o.get(v):null;if(!(!c||!c.isGroup)){var p=c.parent,d=p===a,g=Re(c),y=Re(p);g.width=et(g.option.width,d?s:y.width)||0,g.height=et(g.option.height,d?l:y.height)||0}}for(var f=i.length-1;f>=0;f--){var h=i[f],v=jt(h.id,null),c=v!=null?o.get(v):null;if(c){var p=c.parent,y=Re(p),m=p===a?{width:s,height:l}:{width:y.width,height:y.height},_={},S=Jv(c,h,m,null,{hv:h.hv,boundingMode:h.bounding},_);if(!Re(c).isNew&&S){for(var w=h.transition,x={},b=0;b<u.length;b++){var C=u[b],A=_[C];w&&(gi(w)||st(w,C)>=0)?x[C]=A:c[C]=A}It(c,x,t,0)}else c.attr(_)}}},e.prototype._clear=function(){var t=this,n=this._elMap;n.each(function(i){pl(i,Re(i).option,n,t._lastGraphicModel)}),this._elMap=$()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(At);function Uc(r){var e=tt(O0,r)?O0[r]:zv(r),t=new e({});return Re(t).type=r,t}function B0(r,e,t,n){var i=Uc(t);return e.add(i),n.set(r,i),Re(i).id=r,Re(i).isNew=!0,i}function pl(r,e,t,n){var i=r&&r.parent;i&&(r.type==="group"&&r.traverse(function(a){pl(a,e,t,n)}),u5(r,e,n),t.removeKey(Re(r).id))}function N0(r,e,t,n){r.isGroup||T([["cursor",Vr.prototype.cursor],["zlevel",n||0],["z",t||0],["z2",0]],function(i){var a=i[0];tt(e,a)?r[a]=j(e[a],i[1]):r[a]==null&&(r[a]=i[1])}),T(at(e),function(i){if(i.indexOf("on")===0){var a=e[i];r[i]=K(a)?a:null}}),tt(e,"draggable")&&(r.draggable=e.draggable),e.name!=null&&(r.name=e.name),e.id!=null&&(r.id=e.id)}function Vz(r){return r=O({},r),T(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(nx),function(e){delete r[e]}),r}function Fz(r,e,t){var n=nt(r).eventData;!r.silent&&!r.ignore&&!n&&(n=nt(r).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:r.name}),n&&(n.info=t.info)}function Gz(r){r.registerComponentModel(Nz),r.registerComponentView(zz),r.registerPreprocessor(function(e){var t=e.graphic;z(t)?!t[0]||!t[0].elements?e.graphic=[{elements:t}]:e.graphic=[e.graphic[0]]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var z0=["x","y","radius","angle","single"],Hz=["cartesian2d","polar","singleAxis"];function Wz(r){var e=r.get("coordinateSystem");return st(Hz,e)>=0}function vn(r){return r+"Axis"}function $z(r,e){var t=$(),n=[],i=$();r.eachComponent({mainType:"dataZoom",query:e},function(f){i.get(f.uid)||s(f)});var a;do a=!1,r.eachComponent("dataZoom",o);while(a);function o(f){!i.get(f.uid)&&l(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),u(f)}function l(f){var h=!1;return f.eachTargetAxis(function(v,c){var p=t.get(v);p&&p[c]&&(h=!0)}),h}function u(f){f.eachTargetAxis(function(h,v){(t.get(h)||t.set(h,[]))[v]=!0})}return n}function TT(r){var e=r.ecModel,t={infoList:[],infoMap:$()};return r.eachTargetAxis(function(n,i){var a=e.getComponent(vn(n),i);if(a){var o=a.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(a)}}}),t}var Th=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}(),Yz=function(r){E(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,n,i){var a=V0(t);this.settledOption=a,this.mergeDefaultAndTheme(t,i),this._doInit(a)},e.prototype.mergeOption=function(t){var n=V0(t);Q(this.option,t,!0),Q(this.settledOption,n,!0),this._doInit(n)},e.prototype._doInit=function(t){var n=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),n=this._targetAxisInfoMap=$(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var n=!1;return T(z0,function(i){var a=this.getReferringComponents(vn(i),VM);if(a.specified){n=!0;var o=new Th;T(a.models,function(s){o.add(s.componentIndex)}),t.set(i,o)}},this),n},e.prototype._fillAutoTargetAxisByOrient=function(t,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});l(s,"single")}function l(u,f){var h=u[0];if(h){var v=new Th;if(v.add(h.componentIndex),t.set(f,v),a=!1,f==="x"||f==="y"){var c=h.getReferringComponents("grid",Ot).models[0];c&&T(u,function(p){h.componentIndex!==p.componentIndex&&c===p.getReferringComponents("grid",Ot).models[0]&&v.add(p.componentIndex)})}}}a&&T(z0,function(u){if(a){var f=i.findComponents({mainType:vn(u),filter:function(v){return v.get("type",!0)==="category"}});if(f[0]){var h=new Th;h.add(f[0].componentIndex),t.set(u,h),a=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(n){!t&&(t=n)},this),t==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var n=this._rangePropMode,i=this.get("rangeMode");T([["start","startValue"],["end","endValue"]],function(a,o){var s=t[a[0]]!=null,l=t[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(n,i){t==null&&(t=this.ecModel.getComponent(vn(n),i))},this),t},e.prototype.eachTargetAxis=function(t,n){this._targetAxisInfoMap.each(function(i,a){T(i.indexList,function(o){t.call(n,a,o)})})},e.prototype.getAxisProxy=function(t,n){var i=this.getAxisModel(t,n);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(t,n){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[n])return this.ecModel.getComponent(vn(t),n)},e.prototype.setRawRange=function(t){var n=this.option,i=this.settledOption;T([["start","startValue"],["end","endValue"]],function(a){(t[a[0]]!=null||t[a[1]]!=null)&&(n[a[0]]=i[a[0]]=t[a[0]],n[a[1]]=i[a[1]]=t[a[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var n=this.option;T(["start","startValue","end","endValue"],function(i){n[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,n){if(t==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(t,n).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},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}(ut);function V0(r){var e={};return T(["start","end","startValue","endValue","throttle"],function(t){r.hasOwnProperty(t)&&(e[t]=r[t])}),e}const $o=Yz;var Uz=function(r){E(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}($o);const Xz=Uz;var Zz=function(r){E(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,n,i,a){this.dataZoomModel=t,this.ecModel=n,this.api=i},e.type="dataZoom",e}(At);const Xp=Zz;var qz=function(r){E(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}(Xp);const Kz=qz;var Xi=T,F0=gr,jz=function(){function r(e,t,n,i){this._dimName=e,this._axisIndex=t,this.ecModel=i,this._dataZoomModel=n}return r.prototype.hostedBy=function(e){return this._dataZoomModel===e},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(t){if(Wz(t)){var n=vn(this._dimName),i=t.getReferringComponents(n,Ot).models[0];i&&this._axisIndex===i.componentIndex&&e.push(t)}},this),e},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return Z(this._minMaxSpan)},r.prototype.calculateDataWindow=function(e){var t=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Xi(["start","end"],function(v,c){var p=e[v],d=e[v+"Value"];a[c]==="percent"?(p==null&&(p=o[c]),d=i.parse(wt(p,o,t))):(u=!0,d=d==null?t[c]:i.parse(d),p=wt(d,t,o)),l[c]=d==null||isNaN(d)?t[c]:d,s[c]=p==null||isNaN(p)?o[c]:p}),F0(l),F0(s);var f=this._minMaxSpan;u?h(l,s,t,o,!1):h(s,l,o,t,!0);function h(v,c,p,d,g){var y=g?"Span":"ValueSpan";Ci(0,v,p,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)c[m]=wt(v[m],p,d,!0),g&&(c[m]=i.parse(c[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(e){if(e===this._dataZoomModel){var t=this.getTargetSeriesModels();this._dataExtent=Jz(this,this._dimName,t),this._updateMinMaxSpan();var n=this.calculateDataWindow(e.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(e,t){if(e!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=e.get("filterMode"),o=this._valueWindow;if(a==="none")return;Xi(i,function(l){var u=l.getData(),f=u.mapDimensionsAll(n);if(f.length){if(a==="weakFilter"){var h=u.getStore(),v=V(f,function(c){return u.getDimensionIndex(c)},u);u.filterSelf(function(c){for(var p,d,g,y=0;y<f.length;y++){var m=h.get(v[y],c),_=!isNaN(m),S=m<o[0],w=m>o[1];if(_&&!S&&!w)return!0;_&&(g=!0),S&&(p=!0),w&&(d=!0)}return g&&p&&d})}else Xi(f,function(c){if(a==="empty")l.setData(u=u.map(c,function(d){return s(d)?d:NaN}));else{var p={};p[c]=o,u.selectRange(p)}});Xi(f,function(c){u.setApproximateExtent(o,c)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;Xi(["min","max"],function(i){var a=t.get(i+"Span"),o=t.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=wt(n[0]+o,n,[0,100],!0):a!=null&&(o=wt(a,[0,100],n,!0)-n[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=Sv(n,[0,500]);i=Math.min(i,20);var a=e.axis.scale.rawExtentInfo;t[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),t[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r}();function Jz(r,e,t){var n=[1/0,-1/0];Xi(t,function(o){cE(n,o.getData(),e)});var i=r.getAxisModel(),a=Fw(i.axis.scale,i,n).calculate();return[a.min,a.max]}const Qz=jz;var tV={getTargetSeries:function(r){function e(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=r.getComponent(vn(o),s);i(o,s,l,a)})})}e(function(i,a,o,s){o.__dzAxisProxy=null});var t=[];e(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new Qz(i,a,s,r),t.push(o.__dzAxisProxy))});var n=$();return T(t,function(i){T(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,e){r.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),r.eachComponent("dataZoom",function(t){var n=t.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();t.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};const eV=tV;function rV(r){r.registerAction("dataZoom",function(e,t){var n=$z(t,e);T(n,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var G0=!1;function Zp(r){G0||(G0=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,eV),rV(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function nV(r){r.registerComponentModel(Xz),r.registerComponentView(Kz),Zp(r)}var je=function(){function r(){}return r}(),CT={};function Xa(r,e){CT[r]=e}function AT(r){return CT[r]}var iV=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;T(this.option.feature,function(n,i){var a=AT(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(t)),Q(n,a.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(ut);const aV=iV;function oV(r,e,t){var n=e.getBoxLayoutParams(),i=e.get("padding"),a={width:t.getWidth(),height:t.getHeight()},o=ue(n,a,i);ci(e.get("orient"),r,e.get("itemGap"),o.width,o.height),Jv(r,n,a,i)}function MT(r,e){var t=Sa(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),r=new pt({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:n,silent:!0,z2:-1}),r}var sV=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,i,a){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={}),h=[];T(u,function(p,d){h.push(d)}),new _p(this._featureNames||[],h).add(v).update(v).remove(ht(v,null)).execute(),this._featureNames=h;function v(p,d){var g=h[p],y=h[d],m=u[g],_=new Tt(m,t,t.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(m.title=a.newTitle),g&&!y){if(lV(g))S={onclick:_.option.onclick,featureName:g};else{var w=AT(g);if(!w)return;S=new w}f[g]=S}else if(S=f[y],!S)return;S.uid=_a("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var x=S instanceof je;if(!g&&y){x&&S.dispose&&S.dispose(n,i);return}if(!_.get("show")||x&&S.unusable){x&&S.remove&&S.remove(n,i);return}c(_,S,g),_.setIconStatus=function(b,C){var A=this.option,M=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[b]=C,M[b]&&(C==="emphasis"?oa:sa)(M[b])},S instanceof je&&S.render&&S.render(_,n,i,a)}function c(p,d,g){var y=p.getModel("iconStyle"),m=p.getModel(["emphasis","iconStyle"]),_=d instanceof je&&d.getIcons?d.getIcons():p.get("icon"),S=p.get("title")||{},w,x;G(_)?(w={},w[g]=_):w=_,G(S)?(x={},x[g]=S):x=S;var b=p.iconPaths={};T(w,function(C,A){var M=ya(C,{},{x:-s/2,y:-s/2,width:s,height:s});M.setStyle(y.getItemStyle());var D=M.ensureState("emphasis");D.style=m.getItemStyle();var L=new dt({style:{text:x[A],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:$S({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},n)},ignore:!0});M.setTextContent(L),bi({el:M,componentModel:t,itemName:A,formatterParamsExtra:{title:x[A]}}),M.__title=x[A],M.on("mouseover",function(){var P=m.getItemStyle(),I=l?t.get("right")==null&&t.get("left")!=="right"?"right":"left":t.get("bottom")==null&&t.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:m.get("textFill")||P.fill||P.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),M.setTextConfig({position:m.get("textPosition")||I}),L.ignore=!t.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){p.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),L.hide()}),(p.get(["iconStatus",A])==="emphasis"?oa:sa)(M),o.add(M),M.on("click",W(d.onclick,d,n,i,A)),b[A]=M})}oV(o,t,i),o.add(MT(o.getBoundingRect(),t)),l||o.eachChild(function(p){var d=p.__title,g=p.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=p.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!K(_)&&d){var S=_.style||(_.style={}),w=Ko(d,dt.makeFont(S)),x=p.x+o.x,b=p.y+o.y+s,C=!1;b+w.height>i.getHeight()&&(y.position="top",C=!0);var A=C?-5-w.height:s+10;x+w.width/2>i.getWidth()?(y.position=["100%",A],S.align="right"):x-w.width/2<0&&(y.position=[0,A],S.align="left")}})},e.prototype.updateView=function(t,n,i,a){T(this._features,function(o){o instanceof je&&o.updateView&&o.updateView(o.model,n,i,a)})},e.prototype.remove=function(t,n){T(this._features,function(i){i instanceof je&&i.remove&&i.remove(t,n)}),this.group.removeAll()},e.prototype.dispose=function(t,n){T(this._features,function(i){i instanceof je&&i.dispose&&i.dispose(t,n)})},e.type="toolbox",e}(At);function lV(r){return r.indexOf("my")===0}const uV=sV;var fV=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){var i=this.model,a=i.get("name")||t.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=ft.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=l;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var v=l.split(","),c=v[0].indexOf("base64")>-1,p=o?decodeURIComponent(v[1]):v[1];c&&(p=window.atob(p));var d=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=p.length,y=new Uint8Array(g);g--;)y[g]=p.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,d)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(p),w.close(),S.focus(),w.execCommand("SaveAs",!0,d),document.body.removeChild(_)}}else{var x=i.get("lang"),b='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',C=window.open();C.document.write(b),C.document.title=a}},e.getDefaultOption=function(t){var n={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:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},e}(je);const hV=fV;var H0="__ec_magicType_stack__",cV=[["line","bar"],["stack"]],vV=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getIcons=function(){var t=this.model,n=t.get("icon"),i={};return T(t.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},e.getDefaultOption=function(t){var n={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 n},e.prototype.onclick=function(t,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(W0[i]){var s={series:[]},l=function(h){var v=h.subType,c=h.id,p=W0[i](v,c,h,a);p&&(q(p,h.option),s.series.push(p));var d=h.coordinateSystem;if(d&&d.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=d.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,Ot).models[0],S=_.componentIndex;s[m]=s[m]||[];for(var w=0;w<=S;w++)s[m][S]=s[m][S]||{};s[m][S].boundaryGap=i==="bar"}}};T(cV,function(h){st(h,i)>=0&&T(h,function(v){a.setIconStatus(v,"normal")})}),a.setIconStatus(i,"emphasis"),t.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,f=i;i==="stack"&&(u=Q({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(f="tiled")),n.dispatchAction({type:"changeMagicType",currentType:f,newOption:s,newTitle:u,featureName:"magicType"})}},e}(je),W0={line:function(r,e,t,n){if(r==="bar")return Q({id:e,type:"line",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,e,t,n){if(r==="line")return Q({id:e,type:"bar",data:t.get("data"),stack:t.get("stack"),markPoint:t.get("markPoint"),markLine:t.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,e,t,n){var i=t.get("stack")===H0;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),Q({id:e,stack:i?"":H0},n.get(["option","stack"])||{},!0)}};ir({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,e){e.mergeOption(r.newOption)});const pV=vV;var Yu=new Array(60).join("-"),va=" ";function dV(r){var e={},t=[],n=[];return r.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else t.push(i)}else t.push(i)}),{seriesGroupByCategoryAxis:e,other:t,meta:n}}function gV(r){var e=[];return T(r,function(t,n){var i=t.categoryAxis,a=t.valueAxis,o=a.dim,s=[" "].concat(V(t.series,function(c){return c.name})),l=[i.model.getCategories()];T(t.series,function(c){var p=c.getRawData();l.push(c.getRawData().mapArray(p.mapDimension(o),function(d){return d}))});for(var u=[s.join(va)],f=0;f<l[0].length;f++){for(var h=[],v=0;v<l.length;v++)h.push(l[v][f]);u.push(h.join(va))}e.push(u.join("\n"))}),e.join("\n\n"+Yu+"\n\n")}function yV(r){return V(r,function(e){var t=e.getRawData(),n=[e.name],i=[];return t.each(t.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=t.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];n.push((s?s+va:"")+i.join(va))}),n.join("\n")}).join("\n\n"+Yu+"\n\n")}function mV(r){var e=dV(r);return{value:xt([gV(e.seriesGroupByCategoryAxis),yV(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join("\n\n"+Yu+"\n\n"),meta:e.meta}}function Ql(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function _V(r){var e=r.slice(0,r.indexOf("\n"));if(e.indexOf(va)>=0)return!0}var Xc=new RegExp("["+va+"]+","g");function SV(r){for(var e=r.split(/\n+/g),t=Ql(e.shift()).split(Xc),n=[],i=V(t,function(l){return{name:l,data:[]}}),a=0;a<e.length;a++){var o=Ql(e[a]).split(Xc);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function xV(r){for(var e=r.split(/\n+/g),t=Ql(e.shift()),n=[],i=0;i<e.length;i++){var a=Ql(e[i]);if(a){var o=a.split(Xc),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:t,data:n}}function wV(r,e){var t=r.split(new RegExp("\n*"+Yu+"\n*","g")),n={series:[]};return T(t,function(i,a){if(_V(i)){var o=SV(i),s=e[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=xV(i);n.series.push(o)}}),n}var bV=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=a.get("optionToContent"),v=a.get("contentToOption"),c=mV(t);if(K(h)){var p=h(n.getOption());G(p)?u.innerHTML=p:yi(p)&&u.appendChild(p)}else{f.readOnly=a.get("readOnly");var d=f.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=a.get("textColor"),d.borderColor=a.get("textareaBorderColor"),d.backgroundColor=a.get("textareaColor"),f.value=c.value,u.appendChild(f)}var g=c.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+a.get("buttonColor"),m+=";color:"+a.get("buttonTextColor");var w=this;function x(){i.removeChild(o),w._dom=null}Hh(_,"click",x),Hh(S,"click",function(){if(v==null&&h!=null||v!=null&&h==null){x();return}var b;try{K(v)?b=v(u,n.getOption()):b=wV(f.value,g)}catch(C){throw x(),new Error("Data view format error "+C)}b&&n.dispatchAction({type:"changeDataView",newOption:b}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!a.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},e.prototype.remove=function(t,n){this._dom&&n.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,n){this.remove(t,n)},e.getDefaultOption=function(t){var n={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:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},e}(je);function TV(r,e){return V(r,function(t,n){var i=e&&e[n];if(U(i)&&!z(i)){var a=U(t)&&!z(t);a||(t={value:t});var o=i.name!=null&&t.name==null;return t=q(t,i),o&&delete t.name,t}else return t})}ir({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];T(r.newOption.series,function(n){var i=e.getSeriesByName(n.name)[0];if(!i)t.push(O({type:"scatter"},n));else{var a=i.get("data");t.push({name:n.name,data:TV(n.data,a)})}}),e.mergeOption(q({series:t},r.newOption))});const CV=bV;var DT=T,LT=St();function AV(r,e){var t=qp(r);DT(e,function(n,i){for(var a=t.length-1;a>=0;a--){var o=t[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();t[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),t.push(e)}function MV(r){var e=qp(r),t=e[e.length-1];e.length>1&&e.pop();var n={};return DT(t,function(i,a){for(var o=e.length-1;o>=0;o--)if(i=e[o][a],i){n[a]=i;break}}),n}function DV(r){LT(r).snapshots=null}function LV(r){return qp(r).length}function qp(r){var e=LT(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var PV=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,n){DV(t),n.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(t){var n={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 n},e}(je);ir({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,e){e.resetOption("recreate")});const IV=PV;var RV=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],EV=function(){function r(e,t,n){var i=this;this._targetInfoList=[];var a=$0(t,e);T(kV,function(o,s){(!n||!n.include||st(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=Ch[n.brushType](0,a,i);n.__rangeOffset={offset:Z0[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},r.prototype.matchOutputRanges=function(e,t,n){T(e,function(i){var a=this.findTargetInfo(i,t);a&&a!==!0&&T(a.coordSyses,function(o){var s=Ch[i.brushType](1,o,i.range,!0);n(i,s.values,o,t)})},this)},r.prototype.setInputRanges=function(e,t){T(e,function(n){var i=this.findTargetInfo(n,t);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=Ch[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?Z0[n.brushType](a.values,o.offset,OV(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(e,t){return V(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:Qb(i),isTargetByCursor:eT(i,e,n.coordSysModel),getLinearBrushOtherExtent:tT(i)}})},r.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return i===!0||i&&st(i.coordSyses,t.coordinateSystem)>=0},r.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=$0(t,e),a=0;a<n.length;a++){var o=n[a],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<Y0.length;l++)if(Y0[l](i,o))return o}return!0},r}();function Zc(r){return r[0]>r[1]&&r.reverse(),r}function $0(r,e){return ho(r,e,{includeMainTypes:RV})}var kV={grid:function(r,e){var t=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=$(),o={},s={};!t&&!n&&!i||(T(t,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),T(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),T(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,f=[];T(u.getCartesians(),function(h,v){(st(t,h.getAxis("x").model)>=0||st(n,h.getAxis("y").model)>=0)&&f.push(h)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:f[0],coordSyses:f,getPanelRect:U0.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(r,e){T(r.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:U0.geo})})}},Y0=[function(r,e){var t=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&t&&(i=t.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===e.gridModel},function(r,e){var t=r.geoModel;return t&&t===e.geoModel}],U0={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,e=r.getBoundingRect().clone();return e.applyTransform(gn(r)),e}},Ch={lineX:ht(X0,0),lineY:ht(X0,1),rect:function(r,e,t,n){var i=r?e.pointToData([t[0][0],t[1][0]],n):e.dataToPoint([t[0][0],t[1][0]],n),a=r?e.pointToData([t[0][1],t[1][1]],n):e.dataToPoint([t[0][1],t[1][1]],n),o=[Zc([i[0],a[0]]),Zc([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,e,t,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=V(t,function(o){var s=r?e.pointToData(o,n):e.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function X0(r,e,t,n){var i=t.getAxis(["x","y"][r]),a=Zc(V([0,1],function(s){return e?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[r]=a,o[1-r]=[NaN,NaN],{values:a,xyMinMax:o}}var Z0={lineX:ht(q0,0),lineY:ht(q0,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 V(r,function(n,i){return[n[0]-t[0]*e[i][0],n[1]-t[1]*e[i][1]]})}};function q0(r,e,t,n){return[e[0]-n[r]*t[0],e[1]-n[r]*t[1]]}function OV(r,e){var t=K0(r),n=K0(e),i=[t[0]/n[0],t[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function K0(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}const PT=EV;var qc=T,BV=kM("toolbox-dataZoom_"),NV=function(r){E(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(t,n,i,a){this._brushController||(this._brushController=new Jb(i.getZr()),this._brushController.on("brush",W(this._onBrush,this)).mount()),FV(t,n,this,a,i),VV(t,n)},e.prototype.onclick=function(t,n,i){zV[i].call(this)},e.prototype.remove=function(t,n){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,n){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var n=t.areas;if(!t.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new PT(Kp(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,f,h){if(h.type==="cartesian2d"){var v=u.brushType;v==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[v],h,f)}}),AV(a,i),this._dispatchZoomAction(i);function s(u,f,h){var v=f.getAxis(u),c=v.model,p=l(u,c,a),d=p.findRepresentativeAxisProxy(c).getMinMaxSpan();(d.minValueSpan!=null||d.maxValueSpan!=null)&&(h=Ci(0,h.slice(),v.scale.getExtent(),0,d.minValueSpan,d.maxValueSpan)),p&&(i[p.id]={dataZoomId:p.id,startValue:h[0],endValue:h[1]})}function l(u,f,h){var v;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(c){var p=c.getAxisModel(u,f.componentIndex);p&&(v=c)}),v}},e.prototype._dispatchZoomAction=function(t){var n=[];qc(t,function(i,a){n.push(Z(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},e.getDefaultOption=function(t){var n={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:"rgba(210,219,238,0.2)"}};return n},e}(je),zV={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(MV(this.ecModel))}};function Kp(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 VV(r,e){r.setIconStatus("back",LV(e)>1?"emphasis":"normal")}function FV(r,e,t,n,i){var a=t._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),t._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new PT(Kp(r),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});t._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}bL("dataZoom",function(r){var e=r.getComponent("toolbox",0),t=["feature","dataZoom"];if(!e||e.get(t)==null)return;var n=e.getModel(t),i=[],a=Kp(n),o=ho(r,a);qc(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),qc(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,f){var h=l.componentIndex,v={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:BV+u+h};v[f]=h,i.push(v)}return i});const GV=NV;function HV(r){r.registerComponentModel(aV),r.registerComponentView(uV),Xa("saveAsImage",hV),Xa("magicType",pV),Xa("dataView",CV),Xa("dataZoom",GV),Xa("restore",IV),Wt(nV)}var WV=function(r){E(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",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(ut);const $V=WV;function IT(r){var e=r.get("confine");return e!=null?!!e:r.get("renderMode")==="richText"}function RT(r){if(ft.domSupported){for(var e=document.documentElement.style,t=0,n=r.length;t<n;t++)if(r[t]in e)return r[t]}}var ET=RT(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),YV=RT(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function kT(r,e){if(!r)return e;e=qv(e,!0);var t=r.indexOf(e);return r=t===-1?e:"-"+r.slice(0,t)+"-"+e,r.toLowerCase()}function UV(r,e){var t=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return t?e?t[e]:t:null}var XV=kT(YV,"transition"),jp=kT(ET,"transform"),ZV="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ft.transform3dSupported?"will-change:transform;":"");function qV(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function KV(r,e,t){if(!G(t)||t==="inside")return"";var n=r.get("backgroundColor"),i=r.get("borderWidth");e=_i(e);var a=qV(t),o=Math.max(Math.round(i)*1.5,6),s="",l=jp+":",u;st(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var f=u*Math.PI/180,h=o+i,v=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),c=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-h)/2)*100)/100;s+=";"+a+":-"+c+"px";var p=e+" solid "+i+"px;",d=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'<div style="'+d.join("")+'"></div>'}function jV(r,e){var t="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+t,i="opacity"+n+",visibility"+n;return e||(n=" "+r+"s "+t,i+=ft.transformSupported?","+jp+n:",left"+n+",top"+n),XV+":"+i}function j0(r,e,t){var n=r.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!ft.transformSupported)return t?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=ft.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return t?"top:0;left:0;"+jp+":"+o+";":[["top",0],["left",0],[ET,o]]}function JV(r){var e=[],t=r.get("fontSize"),n=r.getTextColor();n&&e.push("color:"+n),e.push("font:"+r.getFont());var i=j(r.get("lineHeight"),Math.round(t*3/2));t&&e.push("line-height:"+i+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return a&&o&&e.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),T(["decoration","align"],function(u){var f=r.get(u);f&&e.push("text-"+u+":"+f)}),e.join(";")}function QV(r,e,t){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),l=r.get("shadowOffsetX"),u=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=Ox(r,"html"),v=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+v),e&&i&&n.push(jV(i,t)),a&&n.push("background-color:"+a),T(["width","color","radius"],function(c){var p="border-"+c,d=qv(p),g=r.get(d);g!=null&&n.push(p+":"+g+(c==="color"?"":"px"))}),n.push(JV(f)),h!=null&&n.push("padding:"+Sa(h).join("px ")+"px"),n.join(";")+";"}function J0(r,e,t,n,i){var a=e&&e.painter;if(t){var o=a&&a.getViewportRoot();o&&XC(r,o,t,n,i)}else{r[0]=n,r[1]=i;var s=a&&a.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}var tF=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,ft.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=e.getZr(),a=t.appendTo,o=a&&(G(a)?document.querySelector(a):yi(a)?a:K(a)&&a(e.getDom()));J0(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,f=i.painter.getViewportRoot();Le(f,l,!0),u.dispatch("mousemove",l)}},n.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(),n=UV(t,"position"),i=t.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=e.get("className")||""},r.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=ZV+QV(e,!this._firstShow,this._longHide)+j0(a[0],a[1],!0)+("border-color:"+_i(t)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(e,t,n,i,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(G(a)&&n.get("trigger")==="item"&&!IT(n)&&(s=KV(n,i,a)),G(e))o.innerHTML=e+s;else if(e){o.innerHTML="",z(e)||(e=[e]);for(var l=0;l<e.length;l++)yi(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 n=this._styleCoord;if(J0(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var i=this.el.style,a=j0(n[0],n[1]);T(a,function(o){i[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;t.visibility="hidden",t.opacity="0",ft.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(W(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.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},r}();const eF=tF;var rF=function(){function r(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),t_(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,n,i,a){var o=this;U(e)&&ge(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new dt({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Ox(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),T(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.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(),n=Q0(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},r.prototype.moveTo=function(e,t){var n=this.el;if(n){var i=this._styleCoord;t_(i,this._zr,e,t),e=i[0],t=i[1];var a=n.style,o=an(a.borderWidth||0),s=Q0(a);n.x=e+o+s.left,n.y=t+o+s.top,n.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(W(this.hide,this),e)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r}();function an(r){return Math.max(0,r)}function Q0(r){var e=an(r.shadowBlur||0),t=an(r.shadowOffsetX||0),n=an(r.shadowOffsetY||0);return{left:an(e-t),right:an(e+t),top:an(e-n),bottom:an(e+n)}}function t_(r,e,t,n){r[0]=t,r[1]=n,r[2]=r[0]/e.getWidth(),r[3]=r[1]/e.getHeight()}const nF=rF;var iF=new pt({shape:{x:-1,y:-1,width:2,height:2}}),aF=function(r){E(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,n){if(!(ft.node||!n.getDom())){var i=t.getComponent("tooltip"),a=this._renderMode=GM(i.get("renderMode"));this._tooltipContent=a==="richText"?new nF(n):new eF(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(t,n,i){if(!(ft.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=t,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(t),a.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&t.get("transitionDuration")?es(this,"_updatePosition",50,"fixRate"):Bo(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel,n=t.get("triggerOn");mT("itemTooltip",this._api,W(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,n=this._ecModel,i=this._api,a=t.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(t,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,n,i,a){if(!(a.from===this.uid||ft.node||!i.getDom())){var o=e_(a,i);this._ticket="";var s=a.dataByCoordSys,l=uF(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=iF;f.x=a.x,f.y=a.y,f.update(),nt(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(t,n,i,a))return;var h=_T(a,n),v=h.point[0],c=h.point[1];v!=null&&c!=null&&this._tryShow({offsetX:v,offsetY:c,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(t,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(e_(a,i))},e.prototype._manuallyAxisShowTip=function(t,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var f=u.getData(),h=Za([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(t,n){var i=t.target,a=this._tooltipModel;if(a){this._lastX=t.offsetX,this._lastY=t.offsetY;var o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){var s=nt(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;oi(i,function(f){if(nt(f).dataIndex!=null)return l=f,!0;if(nt(f).tooltipConfig!=null)return u=f,!0},!0),l?this._showSeriesItemTooltip(t,l,n):u?this._showComponentItemTooltip(t,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},e.prototype._showOrMove=function(t,n){var i=t.get("showDelay");n=W(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},e.prototype._showAxisTooltip=function(t,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Za([n.tooltipOption],a),l=this._renderMode,u=[],f=xr("section",{blocks:[],noHeader:!0}),h=[],v=new Gf;T(t,function(m){T(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=dT(w,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=xr("section",{header:x,noHeader:!ze(x),sortBlocks:!0,blocks:[]});f.blocks.push(b),T(_.seriesDataIndices,function(C){var A=i.getSeriesByIndex(C.seriesIndex),M=C.dataIndexInside,D=A.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Cp(S.axis,{value:w}),D.axisValueLabel=x,D.marker=v.makeTooltipMarker("item",_i(D.color),l);var L=Xg(A.formatTooltip(M,!0,null)),P=L.frag;if(P){var I=Za([A],a).get("valueFormatter");b.blocks.push(I?O({valueFormatter:I},P):P)}L.text&&h.push(L.text),u.push(D)}})}})}),f.blocks.reverse(),h.reverse();var c=n.position,p=s.get("order"),d=Jg(f,v,l,p,i.get("useUTC"),s.get("textStyle"));d&&h.unshift(d);var g=l==="richText"?"\n\n":"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,n,i){var a=this._ecModel,o=nt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,p=t.positionDefault,d=Za([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Gf;y.marker=m.makeTooltipMarker("item",_i(y.color),c);var _=Xg(u.formatTooltip(f,!1,h)),S=d.get("order"),w=d.get("valueFormatter"),x=_.frag,b=x?Jg(w?O({valueFormatter:w},x):x,m,c,S,a.get("useUTC"),d.get("textStyle")):_.text,C="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,b,y,C,t.offsetX,t.offsetY,t.position,t.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,n,i){var a=this._renderMode==="html",o=nt(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(G(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=Z(l),l.content=Ht(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=t.positionDefault,p=Za(h,this._tooltipModel,c?{position:c}:null),d=p.get("content"),g=Math.random()+"",y=new Gf;this._showOrMove(p,function(){var m=Z(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,t.offsetX,t.offsetY,t.position,n,y)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,n,i,a,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=n,p=this._getNearestPoint([o,s],i,t.get("trigger"),t.get("borderColor")),d=p.color;if(v)if(G(v)){var g=t.ecModel.get("useUTC"),y=z(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=ts(y.axisValue,c,g)),c=Kv(c,i,!0)}else if(K(v)){var _=W(function(S,w){S===this._ticket&&(h.setContent(w,f,t,d,l),this._updatePosition(t,l,o,s,h,i,u))},this);this._ticket=a,c=v(i,a,_)}else c=v;h.setContent(c,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,i,u)}},e.prototype._getNearestPoint=function(t,n,i,a){if(i==="axis"||z(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!z(n))return{color:a||n.color||n.borderColor}},e.prototype._updatePosition=function(t,n,i,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();n=n||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),K(n)&&(n=n([i,a],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),z(n))i=et(n[0],u),a=et(n[1],f);else if(U(n)){var d=n;d.width=h[0],d.height=h[1];var g=ue(d,{width:u,height:f});i=g.x,a=g.y,v=null,c=null}else if(G(n)&&l){var y=lF(n,p,h,t.get("borderWidth"));i=y[0],a=y[1]}else{var y=oF(i,a,o,u,f,v?null:20,c?null:20);i=y[0],a=y[1]}if(v&&(i-=r_(v)?h[0]/2:v==="right"?h[0]:0),c&&(a-=r_(c)?h[1]/2:c==="bottom"?h[1]:0),IT(t)){var y=sF(i,a,o,u,f);i=y[0],a=y[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(t,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===t.length;return o&&T(i,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&T(u,function(v,c){var p=h[c]||{},d=v.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&v.value===p.value&&v.axisType===p.axisType&&v.axisId===p.axisId&&d.length===g.length,o&&T(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&T(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=n,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,n){ft.node||!n.getDom()||(Bo(this,"_updatePosition"),this._tooltipContent.dispose(),Yc("itemTooltip",n))},e.type="tooltip",e}(At);function Za(r,e,t){var n=e.ecModel,i;t?(i=new Tt(t,n,n),i=new Tt(e.option,i,n)):i=e;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof Tt&&(o=o.get("tooltip",!0)),G(o)&&(o={formatter:o}),o&&(i=new Tt(o,i,n)))}return i}function e_(r,e){return r.dispatchAction||W(e.dispatchAction,e)}function oF(r,e,t,n,i,a,o){var s=t.getSize(),l=s[0],u=s[1];return a!=null&&(r+l+a+2>n?r-=l+a:r+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[r,e]}function sF(r,e,t,n,i){var a=t.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,e=Math.min(e+s,i)-s,r=Math.max(r,0),e=Math.max(e,0),[r,e]}function lF(r,e,t,n){var i=t[0],a=t[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,f=e.height;switch(r){case"inside":s=e.x+u/2-i/2,l=e.y+f/2-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+f+o;break;case"left":s=e.x-i-o,l=e.y+f/2-a/2;break;case"right":s=e.x+u+o,l=e.y+f/2-a/2}return[s,l]}function r_(r){return r==="center"||r==="middle"}function uF(r,e,t){var n=Cv(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=jo(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=t.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=nt(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}const fF=aF;function hF(r){Wt(Wp),r.registerComponentModel($V),r.registerComponentView(fF),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},zt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},zt)}var n_=T;function i_(r){if(r){for(var e in r)if(r.hasOwnProperty(e))return!0}}function a_(r,e,t){var n={};return n_(e,function(a){var o=n[a]=i();n_(r[a],function(s,l){if(me.isValidType(l)){var u={type:l,visual:s};t&&t(u,a),o[l]=new me(u),l==="opacity"&&(u=Z(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new me(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function cF(r,e,t){var n;T(t,function(i){e.hasOwnProperty(i)&&i_(e[i])&&(n=!0)}),n&&T(t,function(i){e.hasOwnProperty(i)&&i_(e[i])?r[i]=Z(e[i]):delete r[i]})}function vF(r,e,t,n){var i={};return T(r,function(a){var o=me.prepareVisualTypes(e[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(w){return $x(s,h,w)}function f(w,x){oI(s,h,w,x)}for(var h,v=s.getStore();(h=o.next())!=null;){var c=s.getRawDataItem(h);if(!(c&&c.visualMap===!1))for(var p=n!=null?v.get(l,h):h,d=t(p),g=e[d],y=i[d],m=0,_=y.length;m<_;m++){var S=y[m];g[S]&&g[S].applyVisual(p,u,f)}}}}}var pF=function(r){E(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:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(ut),dF=function(r){E(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,n,i){if(this.group.removeAll(),!!t.get("show")){var a=this.group,o=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=j(t.get("textBaseline"),t.get("textVerticalAlign")),f=new dt({style:Et(o,{text:t.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),v=t.get("subtext"),c=new dt({style:Et(s,{text:v,fill:s.getTextColor(),y:h.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=t.get("link"),d=t.get("sublink"),g=t.get("triggerEvent",!0);f.silent=!p&&!g,c.silent=!d&&!g,p&&f.on("click",function(){Dg(p,"_"+t.get("target"))}),d&&c.on("click",function(){Dg(d,"_"+t.get("subtarget"))}),nt(f).eventData=nt(c).eventData=g?{componentType:"title",componentIndex:t.componentIndex}:null,a.add(f),v&&a.add(c);var y=a.getBoundingRect(),m=t.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=ue(m,{width:i.getWidth(),height:i.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=t.get("top")||t.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:l,verticalAlign:u};f.setStyle(S),c.setStyle(S),y=a.getBoundingRect();var w=_.margin,x=t.getItemStyle(["color","opacity"]);x.fill=t.get("backgroundColor");var b=new pt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:t.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(b)}},e.type="title",e}(At);function gF(r){r.registerComponentModel(pF),r.registerComponentView(dF)}var yF=function(r){E(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,n,i){this.mergeDefaultAndTheme(t,i),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 n=this._data.count();this.option.loop?t=(t%n+n)%n:(t>=n&&(t=n-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,n=t.data||[],i=t.axisType,a=this._names=[],o;i==="category"?(o=[],T(n,function(u,f){var h=jt(ga(u),""),v;U(u)?(v=Z(u),v.value=f):v=f,o.push(v),a.push(h)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new Bu([{name:"value",type:s}],this);l.initData(o,a)},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:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(ut);const o_=yF;var OT=function(r){E(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=An(o_.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(o_);$t(OT,Cx.prototype);const mF=OT;var _F=function(r){E(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.type="timeline",e}(At);const SF=_F;var xF=function(r){E(e,r);function e(t,n,i,a){var o=r.call(this,t,n,i)||this;return o.type=a||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(ar);const wF=xF;var Ah=Math.PI,s_=St(),bF=function(r){E(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,n){this.api=n},e.prototype.render=function(t,n,i){if(this.model=t,this.api=i,this.ecModel=n,this.group.removeAll(),t.get("show",!0)){var a=this._layout(t,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,t);t.formatTooltip=function(u){var f=l.scale.getLabel({value:u});return xr("nameValue",{noName:!0,value:f})},T(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,t)},this),this._renderAxisLabel(a,s,l,t),this._position(a,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,n){var i=t.get(["label","position"]),a=t.get("orient"),o=CF(t,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":G(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},f={horizontal:0,vertical:Ah/2},h=a==="vertical"?o.height:o.width,v=t.getModel("controlStyle"),c=v.get("show",!0),p=c?v.get("itemSize"):0,d=c?v.get("itemGap"):0,g=p+d,y=t.get(["label","rotate"])||0;y=y*Ah/180;var m,_,S,w=v.get("position",!0),x=c&&v.get("showPlayBtn",!0),b=c&&v.get("showPrevBtn",!0),C=c&&v.get("showNextBtn",!0),A=0,M=h;w==="left"||w==="bottom"?(x&&(m=[0,0],A+=g),b&&(_=[A,0],A+=g),C&&(S=[M-p,0],M-=g)):(x&&(m=[M-p,0],M-=g),b&&(_=[0,0],A+=g),C&&(S=[M-p,0],M-=g));var D=[A,M];return t.get("inverse")&&D.reverse(),{viewRect:o,mainLength:h,orient:a,rotation:f[a],labelRotation:y,labelPosOpt:s,labelAlign:t.get(["label","align"])||l[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||u[a],playPosition:m,prevBtnPosition:_,nextBtnPosition:S,axisExtent:D,controlSize:p,controlGap:d}},e.prototype._position=function(t,n){var i=this._mainGroup,a=this._labelGroup,o=t.viewRect;if(t.orient==="vertical"){var s=xe(),l=o.x,u=o.y+o.height;zr(s,s,[-l,-u]),Cn(s,s,-Ah/2),zr(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var f=m(o),h=m(i.getBoundingRect()),v=m(a.getBoundingRect()),c=[i.x,i.y],p=[a.x,a.y];p[0]=c[0]=f[0][0];var d=t.labelPosOpt;if(d==null||G(d)){var g=d==="+"?0:1;_(c,h,f,1,g),_(p,v,f,1,1-g)}else{var g=d>=0?0:1;_(c,h,f,1,g),p[1]=c[1]+d}i.setPosition(c),a.setPosition(p),i.rotation=a.rotation=t.rotation,y(i),y(a);function y(S){S.originX=f[0][0]-S.x,S.originY=f[1][0]-S.y}function m(S){return[[S.x,S.x+S.width],[S.y,S.y+S.height]]}function _(S,w,x,b,C){S[b]+=x[b][C]-w[b][C]}},e.prototype._createAxis=function(t,n){var i=n.getData(),a=n.get("axisType"),o=TF(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new wF("value",o,t.axisExtent,a);return l.model=n,l},e.prototype._createGroup=function(t){var n=this[t]=new it;return this.group.add(n),n},e.prototype._renderAxisLine=function(t,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new ie({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:O({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new ie({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:q({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},e.prototype._renderAxisTick=function(t,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],T(l,function(u){var f=i.dataToCoord(u.value),h=s.getItemModel(u.value),v=h.getModel("itemStyle"),c=h.getModel(["emphasis","itemStyle"]),p=h.getModel(["progress","itemStyle"]),d={x:f,y:0,onclick:W(o._changeTimeline,o,u.value)},g=l_(h,v,n,d);g.ensureState("emphasis").style=c.getItemStyle(),g.ensureState("progress").style=p.getItemStyle(),dn(g);var y=nt(g);h.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(g)})},e.prototype._renderAxisLabel=function(t,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],T(u,function(f){var h=f.tickValue,v=l.getItemModel(h),c=v.getModel("label"),p=v.getModel(["emphasis","label"]),d=v.getModel(["progress","label"]),g=i.dataToCoord(f.tickValue),y=new dt({x:g,y:0,rotation:t.labelRotation-t.rotation,onclick:W(o._changeTimeline,o,h),silent:!1,style:Et(c,{text:f.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});y.ensureState("emphasis").style=Et(p),y.ensureState("progress").style=Et(d),n.add(y),dn(y),s_(y).dataIndex=h,o._tickLabels.push(y)})}},e.prototype._renderControl=function(t,n,i,a){var o=t.controlSize,s=t.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),f=a.getPlayState(),h=a.get("inverse",!0);v(t.nextBtnPosition,"next",W(this._changeTimeline,this,h?"-":"+")),v(t.prevBtnPosition,"prev",W(this._changeTimeline,this,h?"+":"-")),v(t.playPosition,f?"stop":"play",W(this._handlePlayClick,this,!f),!0);function v(c,p,d,g){if(c){var y=er(j(a.get(["controlStyle",p+"BtnSize"]),o),o),m=[0,-y/2,y,y],_=AF(a,p+"Icon",m,{x:c[0],y:c[1],originX:o/2,originY:0,rotation:g?-s:0,rectHover:!0,style:l,onclick:d});_.ensureState("emphasis").style=u,n.add(_),dn(_)}}},e.prototype._renderCurrentPointer=function(t,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,f={onCreate:function(h){h.draggable=!0,h.drift=W(u._handlePointerDrag,u),h.ondragend=W(u._handlePointerDragend,u),u_(h,u._progressLine,s,i,a,!0)},onUpdate:function(h){u_(h,u._progressLine,s,i,a)}};this._currentPointer=l_(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,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,n){var i=this._toAxisCoord(t)[0],a=this._axis,o=gr(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(n||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 n=t.model;t._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(t){var n=this._mainGroup.getLocalTransform();return tr(t,n,!0)},e.prototype._findNearestTick=function(t){var n=this.model.getData(),i=1/0,a,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),f=Math.abs(u-t);f<i&&(i=f,a=l)}),a},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(t){var n=this.model.getCurrentIndex();t==="+"?t=n+1:t==="-"&&(t=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},e.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),n=this._tickSymbols,i=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<t);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",s_(i[a]).dataIndex<=t)},e.type="timeline.slider",e}(SF);function TF(r,e){if(e=e||r.get("type"),e)switch(e){case"category":return new xp({ordinalMeta:r.getCategories(),extent:[1/0,-1/0]});case"time":return new zw({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new bn}}function CF(r,e){return ue(r.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},r.get("padding"))}function AF(r,e,t,n){var i=n.style,a=ya(r.get(["controlStyle",e]),n||{},new ct(t[0],t[1],t[2],t[3]));return i&&a.setStyle(i),a}function l_(r,e,t,n,i,a){var o=e.get("color");if(i)i.setColor(o),t.add(i),a&&a.onUpdate(i);else{var s=r.get("symbol");i=te(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),t.add(i),a&&a.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),n=Q({rectHover:!0,z2:100},n,!0);var u=lp(r.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var f=Eu(r.get("symbolOffset"),u);f&&(n.x=(n.x||0)+f[0],n.y=(n.y||0)+f[1]);var h=r.get("symbolRotate");return n.rotation=(h||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function u_(r,e,t,n,i,a){if(!r.dragging){var o=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",t));if(a||!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)}}}const MF=bF;function DF(r){r.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t,n){var i=t.getComponent("timeline");return i&&e.currentIndex!=null&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),t.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),q({currentIndex:i.option.currentIndex},e)}),r.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var n=t.getComponent("timeline");n&&e.playState!=null&&n.setPlayState(e.playState)})}function LF(r){var e=r&&r.timeline;z(e)||(e=e?[e]:[]),T(e,function(t){t&&PF(t)})}function PF(r){var e=r.type,t={number:"value",time:"time"};if(t[e]&&(r.axisType=t[e],delete r.type),f_(r),ti(r,"controlPosition")){var n=r.controlStyle||(r.controlStyle={});ti(n,"position")||(n.position=r.controlPosition),n.position==="none"&&!ti(n,"show")&&(n.show=!1,delete n.position),delete r.controlPosition}T(r.data||[],function(i){U(i)&&!z(i)&&(!ti(i,"value")&&ti(i,"name")&&(i.value=i.name),f_(i))})}function f_(r){var e=r.itemStyle||(r.itemStyle={}),t=e.emphasis||(e.emphasis={}),n=r.label||r.label||{},i=n.normal||(n.normal={}),a={normal:1,emphasis:1};T(n,function(o,s){!a[s]&&!ti(i,s)&&(i[s]=o)}),t.label&&!ti(n,"emphasis")&&(n.emphasis=t.label,delete t.label)}function ti(r,e){return r.hasOwnProperty(e)}function IF(r){r.registerComponentModel(mF),r.registerComponentView(MF),r.registerSubTypeDefaulter("timeline",function(){return"slider"}),DF(r),r.registerPreprocessor(LF)}var RF=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"])}},EF=function(r){E(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,n,i){this.mergeDefaultAndTheme(t,i),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},e.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;n===!0&&(n=t.selector=["all","inverse"]),z(n)&&T(n,function(a,o){G(a)&&(a={type:a}),n[o]=Q(a,RF(i,a.type))})},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<t.length;i++){var a=t[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(t[0].get("name"))}},e.prototype._updateData=function(t){var n=[],i=[];t.eachRawSeries(function(l){var u=l.name;i.push(u);var f;if(l.legendVisualProvider){var h=l.legendVisualProvider,v=h.getAllNames();t.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&Tv(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=$(),s=V(a,function(l){return(G(l)||_t(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Tt(l,this,this.ecModel))},this);this._data=xt(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(t){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;T(a,function(o){n[o.get("name")]=!1})}n[t]=!0},e.prototype.unSelect=function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},e.prototype.toggleSelected=function(t){var n=this.option.selected;n.hasOwnProperty(t)||(n[t]=!0),this[n[t]?"unSelect":"select"](t)},e.prototype.allSelect=function(){var t=this._data,n=this.option.selected;T(t,function(i){n[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var t=this._data,n=this.option.selected;T(t,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},e.prototype.isSelected=function(t){var n=this.option.selected;return!(n.hasOwnProperty(t)&&!n[t])&&st(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",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(ut);const Kc=EF;var Wi=ht,jc=T,Ks=it,kF=function(r){E(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 Ks),this.group.add(this._selectorGroup=new Ks),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,n,i){var a=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,n,i,l,s,u);var f=t.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},v=t.get("padding"),c=ue(f,h,v),p=this.layoutInner(t,o,c,a,l,u),d=ue(q({width:p.width,height:p.height},f),h,v);this.group.x=d.x-p.x,this.group.y=d.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=MT(p,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,n,i,a,o,s,l){var u=this.getContentGroup(),f=$(),h=n.get("selectedMode"),v=[];i.eachRawSeries(function(c){!c.get("legendHoverLink")&&v.push(c.id)}),jc(n.getData(),function(c,p){var d=c.get("name");if(!this.newlineDisabled&&(d===""||d==="\n")){var g=new Ks;g.newline=!0,u.add(g);return}var y=i.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(y,d,p,c,n,t,_,w,S,h,a);x.on("click",Wi(h_,d,null,a,v)).on("mouseover",Wi(Jc,y.name,null,a,v)).on("mouseout",Wi(Qc,y.name,null,a,v)),i.ssr&&x.eachChild(function(b){var C=nt(b);C.seriesIndex=y.seriesIndex,C.dataIndex=p,C.ssrType="legend"}),f.set(d,!0)}else i.eachRawSeries(function(b){if(!f.get(d)&&b.legendVisualProvider){var C=b.legendVisualProvider;if(!C.containName(d))return;var A=C.indexOfName(d),M=C.getItemVisual(A,"style"),D=C.getItemVisual(A,"legendIcon"),L=ae(M.fill);L&&L[3]===0&&(L[3]=.2,M=O(O({},M),{fill:Qe(L,"rgba")}));var P=this._createItem(b,d,p,c,n,t,{},M,D,h,a);P.on("click",Wi(h_,null,d,a,v)).on("mouseover",Wi(Jc,null,d,a,v)).on("mouseout",Wi(Qc,null,d,a,v)),i.ssr&&P.eachChild(function(I){var R=nt(I);R.seriesIndex=b.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},e.prototype._createSelector=function(t,n,i,a,o){var s=this.getSelectorGroup();jc(t,function(u){var f=u.type,h=new dt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var v=n.getModel("selectorLabel"),c=n.getModel(["emphasis","selectorLabel"]);$r(h,{normal:v,emphasis:c},{defaultText:u.title}),dn(h)})},e.prototype._createItem=function(t,n,i,a,o,s,l,u,f,h,v){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=OF(f,a,l,u,c,g,v),w=new Ks,x=a.getModel("textStyle");if(K(t.getLegendIcon)&&(!_||_==="inherit"))w.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;w.add(BF({itemWidth:p,itemHeight:d,icon:f,iconRotate:b,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var C=s==="left"?p+5:-5,A=s,M=o.get("formatter"),D=n;G(M)&&M?D=M.replace("{name}",n!=null?n:""):K(M)&&(D=M(n));var L=g?x.getTextColor():a.get("inactiveColor");w.add(new dt({style:Et(x,{text:D,x:C,y:d/2,fill:L,align:A,verticalAlign:"middle"},{inheritColor:L})}));var P=new pt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&bi({el:P,componentModel:o,itemName:n,itemTooltipOption:I.option}),w.add(P),w.eachChild(function(R){R.silent=!0}),P.silent=!h,this.getContentGroup().add(w),dn(w),w.__legendDataIndex=i,w},e.prototype.layoutInner=function(t,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ci(t.get("orient"),l,t.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){ci("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?c[d]+=f[g]+p:h[d]+=v[g]+p,c[1-d]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(At);function OF(r,e,t,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),jc(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?n.decal:Gl(h,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[f]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:t).opacity),s(u,n);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),!a){var p=e.get("inactiveBorderWidth"),d=u[f];u.lineWidth=p==="auto"?n.lineWidth>0&&d?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),c.stroke=v.get("inactiveColor"),c.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:c}}function BF(r){var e=r.icon||"roundRect",t=te(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="#fff",t.style.lineWidth=2),t}function h_(r,e,t,n){Qc(r,e,t,n),t.dispatchAction({type:"legendToggleSelect",name:r!=null?r:e}),Jc(r,e,t,n)}function BT(r){for(var e=r.getZr().storage.getDisplayList(),t,n=0,i=e.length;n<i&&!(t=e[n].states.emphasis);)n++;return t&&t.hoverLayer}function Jc(r,e,t,n){BT(t)||t.dispatchAction({type:"highlight",seriesName:r,name:e,excludeSeriesId:n})}function Qc(r,e,t,n){BT(t)||t.dispatchAction({type:"downplay",seriesName:r,name:e,excludeSeriesId:n})}const NT=kF;function NF(r){var e=r.findComponents({mainType:"legend"});e&&e.length&&r.filterSeries(function(t){for(var n=0;n<e.length;n++)if(!e[n].isSelected(t.name))return!1;return!0})}function qa(r,e,t){var n=r==="allSelect"||r==="inverseSelect",i={},a=[];t.eachComponent({mainType:"legend",query:e},function(s){n?s[r]():s[r](e.name),c_(s,i),a.push(s.componentIndex)});var o={};return t.eachComponent("legend",function(s){T(i,function(l,u){s[l?"select":"unSelect"](u)}),c_(s,o)}),n?{selected:o,legendIndex:a}:{name:e.name,selected:o}}function c_(r,e){var t=e||{};return T(r.getData(),function(n){var i=n.get("name");if(!(i==="\n"||i==="")){var a=r.isSelected(i);tt(t,i)?t[i]=t[i]&&a:t[i]=a}}),t}function zF(r){r.registerAction("legendToggleSelect","legendselectchanged",ht(qa,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ht(qa,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ht(qa,"inverseSelect")),r.registerAction("legendSelect","legendselected",ht(qa,"select")),r.registerAction("legendUnSelect","legendunselected",ht(qa,"unSelect"))}function zT(r){r.registerComponentModel(Kc),r.registerComponentView(NT),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,NF),r.registerSubTypeDefaulter("legend",function(){return"plain"}),zF(r)}var VF=function(r){E(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,n,i){var a=xa(t);r.prototype.init.call(this,t,n,i),v_(this,t,a)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),v_(this,this.option,t)},e.type="legend.scroll",e.defaultOption=An(Kc.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(Kc);function v_(r,e,t){var n=r.getOrient(),i=[1,1];i[n.index]=0,xn(e,t,{type:"box",ignoreSize:!!i})}const FF=VF;var p_=it,Mh=["width","height"],Dh=["x","y"],GF=function(r){E(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 p_),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new p_)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,n,i,a,o,s,l){var u=this;r.prototype.renderInner.call(this,t,n,i,a,o,s,l);var f=this._controllerGroup,h=n.get("pageIconSize",!0),v=z(h)?h:[h,h];p("pagePrev",0);var c=n.getModel("pageTextStyle");f.add(new dt({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=ya(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:W(u._pageGo,u,y,n,a)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=d,f.add(m)}},e.prototype.layoutInner=function(t,n,i,a,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=Mh[u],h=Dh[u],v=Mh[1-u],c=Dh[1-u];o&&ci("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=Z(i);o&&(y[f]=i[f]-d[f]-p);var m=this._layoutContentAndController(t,a,y,u,f,v,c,h);if(o){if(s==="end")g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[h]-=_}m[f]+=d[f]+p,g[1-u]+=m[c]+m[v]/2-d[v]/2,m[v]=Math.max(m[v],d[v]),m[c]=Math.min(m[c],d[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,n,i,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;ci(t.get("orient"),f,t.get("itemGap"),a?i.width:null,a?null:i.height),ci("horizontal",v,t.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),p=v.getBoundingRect(),d=this._showController=c[o]>i[o],g=[-c.x,-c.y];n||(g[a]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=j(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-p[o]:y[a]+=p[o]+_}m[1-a]+=c[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var w={x:0,y:0};if(w[o]=d?i[o]:c[o],w[s]=Math.max(c[s],p[s]),w[l]=Math.min(0,p[l]+m[1-a]),h.__rectSize=i[o],d){var x={x:0,y:0};x[o]=Math.max(i[o]-p[o]-_,0),x[s]=w[s],h.setClipPath(new pt({shape:x})),h.__rectSize=x[o]}else v.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return b.pageIndex!=null&&It(f,{x:b.contentPosition[0],y:b.contentPosition[1]},d?t:null),this._updatePageInfoView(t,b),w},e.prototype._pageGo=function(t,n,i){var a=this._getPageInfo(n)[t];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},e.prototype._updatePageInfoView=function(t,n){var i=this._controllerGroup;T(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",v=n[h]!=null,c=i.childOfName(f);c&&(c.setStyle("fill",v?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),c.cursor=v?"pointer":"default")});var a=i.childOfName("pageText"),o=t.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",G(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(t){var n=t.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=t.getOrient().index,s=Mh[o],l=Dh[o],u=this._findTargetItemIndex(n),f=i.children(),h=f[u],v=f.length,c=v?1:0,p={contentPosition:[i.x,i.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return p;var d=S(h);p.contentPosition[o]=-d.s;for(var g=u+1,y=d,m=d,_=null;g<=v;++g)_=S(f[g]),(!_&&m.e>y.s+a||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),m=_;for(var g=u-1,y=d,m=d,_=null;g>=-1;--g)_=S(f[g]),(!_||!w(m,_.s))&&y.i<m.i&&(m=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function S(x){if(x){var b=x.getBoundingRect(),C=b[l]+x[l];return{s:C,e:C+b[s],i:x.__legendDataIndex}}}function w(x,b){return x.e>=b&&x.s<=b+a}},e.prototype._findTargetItemIndex=function(t){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===t&&(n=s)}),n!=null?n:a},e.type="legend.scroll",e}(NT);const HF=GF;function WF(r){r.registerAction("legendScroll","legendscroll",function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(n)})})}function $F(r){Wt(zT),r.registerComponentModel(FF),r.registerComponentView(HF),WF(r)}function YF(r){Wt(zT),Wt($F)}var UF=function(r){E(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=An($o.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}($o);const XF=UF;var Jp=St();function ZF(r,e,t){Jp(r).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(e.uid);i&&(i.getRange=t)})}function qF(r,e){for(var t=Jp(r).coordSysRecordMap,n=t.keys(),i=0;i<n.length;i++){var a=n[i],o=t.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||VT(t,o))}}}function VT(r,e){if(e){r.removeKey(e.model.uid);var t=e.controller;t&&t.dispose()}}function KF(r,e){var t={model:e,containsPoint:ht(JF,e),dispatchAction:ht(jF,r),dataZoomInfoMap:null,controller:null},n=t.controller=new Ab(r.getZr());return T(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];t.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,t.model.mainType,t.controller,a);!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 jF(r,e){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function JF(r,e,t,n){return r.coordinateSystem.containPoint([t,n])}function QF(r){var e,t="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return r.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[t+s]>n[t+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function tG(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(e,t){var n=Jp(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=$());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=TT(a);T(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,KF(t,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=$());f.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){VT(i,a);return}var f=QF(l);o.enable(f.controlType,f.opt),o.setPointerChecker(a.containsPoint),es(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var eG=function(r){E(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,n,i){if(r.prototype.render.apply(this,arguments),t.noTarget()){this._clear();return}this.range=t.getPercentRange(),ZF(i,t,{pan:W(Lh.pan,this),zoom:W(Lh.zoom,this),scrollMove:W(Lh.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){qF(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(Xp),Lh={zoom:function(r,e,t,n){var i=this.range,a=i.slice(),o=r.axisModels[0];if(o){var s=Ph[e](null,[n.originX,n.originY],o,t,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ci(0,a,[0,100],0,f.minSpan,f.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:d_(function(r,e,t,n,i,a){var o=Ph[n]([a.oldX,a.oldY],[a.newX,a.newY],e,i,t);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:d_(function(r,e,t,n,i,a){var o=Ph[n]([0,0],[a.scrollDelta,a.scrollDelta],e,i,t);return o.signal*(r[1]-r[0])*a.scrollDelta})};function d_(r){return function(e,t,n,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=r(o,s,e,t,n,i);if(Ci(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Ph={grid:function(r,e,t,n,i){var a=t.axis,o={},s=i.model.coordinateSystem.getRect();return r=r||[0,0],a.dim==="x"?(o.pixel=e[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(r,e,t,n,i){var a=t.axis,o={},s=i.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=a.inverse?1:-1):(o.pixel=e[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(r,e,t,n,i){var a=t.axis,o=i.model.coordinateSystem.getRect(),s={};return r=r||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};const rG=eG;function nG(r){Zp(r),r.registerComponentModel(XF),r.registerComponentView(rG),tG(r)}var iG=function(r){E(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=An($o.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}($o);const aG=iG;var Ka=pt,g_=7,oG=1,Ih=30,sG=7,ja="horizontal",y_="vertical",lG=5,uG=["line","bar","candlestick","scatter"],fG={easing:"cubicOut",duration:100,delay:0},hG=function(r){E(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,n){this.api=n,this._onBrush=W(this._onBrush,this),this._onBrushEnd=W(this._onBrushEnd,this)},e.prototype.render=function(t,n,i,a){if(r.prototype.render.apply(this,arguments),es(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}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Bo(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 n=this._displayables.sliderGroup=new it;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(n),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,n=this.api,i=t.get("brushSelect"),a=i?sG:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===ja?{right:s.width-o.x-o.width,top:s.height-Ih-g_-a,width:o.width,height:Ih}:{right:g_,top:o.y,width:Ih,height:o.height},u=xa(t.option);T(["right","top","width","height"],function(h){u[h]==="ph"&&(u[h]=l[h])});var f=ue(u,s);this._location={x:f.x,y:f.y},this._size=[f.width,f.height],this._orient===y_&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===ja&&!o?{scaleY:l?1:-1,scaleX:1}:i===ja&&o?{scaleY:l?1:-1,scaleX:-1}:i===y_&&!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]);t.x=n.x-u.x,t.y=n.y-u.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=t.get("brushSelect");i.add(new Ka({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var o=new Ka({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:W(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!t)return;var n=this._size,i=this._shadowSize||[],a=t.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():t.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var c=[0,n[1]],p=[0,n[0]],d=[[n[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),m=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(A,M){if(_>0&&M%_){m+=y;return}var D=A==null||isNaN(A)||A==="",L=D?0:wt(A,h,c,!0);D&&!S&&M?(d.push([d[d.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&S&&(d.push([m,0]),g.push([m,0])),d.push([m,L]),g.push([m,L]),m+=y,S=D}),u=this._shadowPolygonPts=d,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var w=this.dataZoomModel;function x(A){var M=w.getModel(A?"selectedDataBackground":"dataBackground"),D=new it,L=new br({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Ge({shape:{points:f},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(L),D.add(P),D}for(var b=0;b<3;b++){var C=x(b===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,n=t.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return t.eachTargetAxis(function(o,s){var l=t.getAxisProxy(o,s).getTargetSeriesModels();T(l,function(u){if(!i&&!(n!==!0&&st(uG,u.get("type"))<0)){var f=a.getComponent(vn(o),s).axis,h=cG(o),v,c=u.coordinateSystem;h!=null&&c.getOtherAxis&&(v=c.getOtherAxis(f).inverse),h=u.getData().mapDimension(h),i={thisAxis:f,series:u,thisDim:o,otherDim:h,otherAxisInverse:v}}},this)},this),i}},e.prototype._renderHandle=function(){var t=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,h=l.get("brushSelect"),v=n.filler=new Ka({silent:h,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(v),o.add(new Ka({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:oG,fill:"rgba(0,0,0,0)"}})),T([0,1],function(_){var S=l.get("handleIcon");!zl[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var w=te(S,-1,0,2,2,null,!0);w.attr({cursor:m_(this._orient),draggable:!0,drift:W(this._onDragMove,this,_),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1),z2:5});var x=w.getBoundingRect(),b=l.get("handleSize");this._handleHeight=et(b,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,w.setStyle(l.getModel("handleStyle").getItemStyle()),w.style.strokeNoScale=!0,w.rectHover=!0,w.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),dn(w);var C=l.get("handleColor");C!=null&&(w.style.fill=C),o.add(i[_]=w);var A=l.getModel("textStyle"),M=l.get("handleLabel")||{},D=M.show||!1;t.add(a[_]=new dt({silent:!0,invisible:!D,style:Et(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var c=v;if(h){var p=et(l.get("moveHandleSize"),s[1]),d=n.moveHandle=new pt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=n.moveHandleIcon=te(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,d.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(p,10));c=n.moveZone=new pt({invisible:!0,shape:{y:s[1]-m,height:p+m}}),c.on("mouseover",function(){u.enterEmphasis(d)}).on("mouseout",function(){u.leaveEmphasis(d)}),o.add(d),o.add(y),o.add(c)}c.attr({draggable:!0,cursor:m_(this._orient),drift:W(this._onDragMove,this,"all"),ondragstart:W(this._showDataInfo,this,!0),ondragend:W(this._onDragEnd,this),onmouseover:W(this._showDataInfo,this,!0),onmouseout:W(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[wt(t[0],[0,100],n,!0),wt(t[1],[0,100],n,!0)]},e.prototype._updateInterval=function(t,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Ci(n,a,o,i.get("zoomLock")?"all":t,s.minSpan!=null?wt(s.minSpan,l,o,!0):null,s.maxSpan!=null?wt(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=gr([wt(a[0],o,l,!0),wt(a[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},e.prototype._updateView=function(t){var n=this._displayables,i=this._handleEnds,a=gr(i.slice()),o=this._size;T([0,1],function(c){var p=n.handles[c],d=this._handleHeight;p.attr({scaleX:d/2,scaleY:d/2,x:i[c]+(c?-1:1),y:o[1]/2-d/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],f=0;f<l.length;f++){var h=l[f],v=h.getClipPath();v||(v=new pt,h.setClipPath(v)),v.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,h=t?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var v=gr(this._handleEnds.slice());c.call(this,0),c.call(this,1);function c(p){var d=gn(i.handles[p].parent,this.group),g=_u(p===0?"right":"left",d),y=this._handleWidth/2+lG,m=tr([v[p]+(p===0?-y:y),this._size[1]/2],d);a[p].setStyle({x:m[0],y:m[1],verticalAlign:o===ja?"middle":g,align:o===ja?g:"center",text:s[p]})}},e.prototype._formatLabel=function(t,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=t==null||isNaN(t)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(o,20));return K(a)?a(t,s):G(a)?a.replace("{value}",s):s},e.prototype._showDataInfo=function(t){var n=this.dataZoomModel.get("handleLabel")||{},i=n.show||!1,a=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=a.get("show")||!1,s=t||this._dragging?o:i,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._onDragMove=function(t,n,i,a){this._dragging=!0,Nr(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=tr([n,i],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._showDataInfo(!1);var t=this.dataZoomModel.get("realtime");!t&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var n=t.offsetX,i=t.offsetY;this._brushStart=new rt(n,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=gr([wt(i.x,o,s,!0),wt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Nr(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Ka({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(t,n),f=l.transformCoordToLocal(s.x,s.y),h=this._size;u[0]=Math.max(Math.min(h[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?fG:null,start:n[0],end:n[1]})},e.prototype._findCoordRect=function(){var t,n=TT(this.dataZoomModel).infoList;if(!t&&n.length){var i=n[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var a=this.api.getWidth(),o=this.api.getHeight();t={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return t},e.type="dataZoom.slider",e}(Xp);function cG(r){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[r]}function m_(r){return r==="vertical"?"ns-resize":"ew-resize"}const vG=hG;function pG(r){r.registerComponentModel(aG),r.registerComponentView(vG),Zp(r)}function dG(r){Wt(nG),Wt(pG)}var gG={get:function(r,e,t){var n=Z((yG[r]||{})[e]);return t&&z(n)?n[n.length-1]:n}},yG={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const FT=gG;var __=me.mapVisual,mG=me.eachVisual,_G=z,S_=T,SG=gr,xG=wt,wG=function(r){E(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,n,i){this.mergeDefaultAndTheme(t,i)},e.prototype.optionUpdated=function(t,n){var i=this.option;!n&&cF(i,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var n=this.stateList;t=W(t,this),this.controllerVisuals=a_(this.option.controller,n,t),this.targetVisuals=a_(this.option.target,n,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return t==null||t==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=Ct(t),n},e.prototype.eachTargetSeries=function(t,n){T(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&t.call(n,a)},this)},e.prototype.isTargetSeries=function(t){var n=!1;return this.eachTargetSeries(function(i){i===t&&(n=!0)}),n},e.prototype.formatValueText=function(t,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],z(t)&&(t=t.slice(),u=!0);var f=n?t:u?[h(t[0]),h(t[1])]:h(t);if(G(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(K(l))return u?l(t[0],t[1]):l(t);if(u)return t[0]===s[0]?i[0]+" "+f[1]:t[1]===s[1]?i[1]+" "+f[0]:f[0]+" - "+f[1];return f;function h(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,n=SG([t.min,t.max]);this._dataExtent=n},e.prototype.getDataDimensionIndex=function(t){var n=this.option.dimension;if(n!=null)return t.getDimensionIndex(n);for(var i=t.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=t.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});Q(a,i),Q(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),f.call(this,o);function l(h){_G(n.color)&&!h.inRange&&(h.inRange={color:n.color.slice().reverse()}),h.inRange=h.inRange||{color:t.get("gradientColor")}}function u(h,v,c){var p=h[v],d=h[c];p&&!d&&(d=h[c]={},S_(p,function(g,y){if(me.isValidType(y)){var m=FT.get(y,"inactive",s);m!=null&&(d[y]=m,y==="color"&&!d.hasOwnProperty("opacity")&&!d.hasOwnProperty("colorAlpha")&&(d.opacity=[0,0]))}}))}function f(h){var v=(h.inRange||{}).symbol||(h.outOfRange||{}).symbol,c=(h.inRange||{}).symbolSize||(h.outOfRange||{}).symbolSize,p=this.get("inactiveColor"),d=this.getItemSymbol(),g=d||"roundRect";S_(this.stateList,function(y){var m=this.itemSize,_=h[y];_||(_=h[y]={color:s?p:[p]}),_.symbol==null&&(_.symbol=v&&Z(v)||(s?g:[g])),_.symbolSize==null&&(_.symbolSize=c&&Z(c)||(s?m[0]:[m[0],m[0]])),_.symbol=__(_.symbol,function(x){return x==="none"?g:x});var S=_.symbolSize;if(S!=null){var w=-1/0;mG(S,function(x){x>w&&(w=x)}),_.symbolSize=__(S,function(x){return xG(x,[0,w],[0,m[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,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(ut);const tu=wG;var x_=[20,140],bG=function(r){E(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,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.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]=x_[0]),(t[1]==null||isNaN(t[1]))&&(t[1]=x_[1])},e.prototype._resetRange=function(){var t=this.getExtent(),n=this.option.range;!n||n.auto?(t.auto=1,this.option.range=t):z(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],t[0]),n[1]=Math.min(n[1],t[1]))},e.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),T(this.stateList,function(t){var n=this.option.controller[t].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),n=gr((this.get("range")||[]).slice());return n[0]>t[1]&&(n[0]=t[1]),n[1]>t[1]&&(n[1]=t[1]),n[0]<t[0]&&(n[0]=t[0]),n[1]<t[0]&&(n[1]=t[0]),n},e.prototype.getValueState=function(t){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=t)&&(n[1]>=i[1]||t<=n[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){t[0]<=s&&s<=t[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},e.prototype.getVisualMeta=function(t){var n=w_(this,"outOfRange",this.getExtent()),i=w_(this,"inRange",this.option.range.slice()),a=[];function o(c,p){a.push({value:c,color:t(c,p)})}for(var s=0,l=0,u=i.length,f=n.length;l<f&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var h=1;s<u;s++,h=0)h&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var h=1;l<f;l++)(!i.length||i[i.length-1]<n[l])&&(h&&(a.length&&o(a[a.length-1].value,"outOfRange"),h=0),o(n[l],"outOfRange"));var v=a.length;return{stops:a,outerColors:[v?a[0].color:"transparent",v?a[v-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=An(tu.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(tu);function w_(r,e,t){if(t[0]===t[1])return t.slice();for(var n=200,i=(t[1]-t[0])/n,a=t[0],o=[],s=0;s<=n&&a<t[1];s++)o.push(a),a+=i;return o.push(t[1]),o}const TG=bG;var CG=function(r){E(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,n){this.ecModel=t,this.api=n},e.prototype.render=function(t,n,i,a){if(this.visualMapModel=t,t.get("show")===!1){this.group.removeAll();return}this.doRender(t,n,i,a)},e.prototype.renderBackground=function(t){var n=this.visualMapModel,i=Sa(n.get("padding")||0),a=t.getBoundingRect();t.add(new pt({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},e.prototype.getControllerVisual=function(t,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(c){return s[c]}function f(c,p){s[c]=p}var h=o.controllerVisuals[a||o.getValueState(t)],v=me.prepareVisualTypes(h);return T(v,function(c){var p=h[c];i.convertOpacityToAlpha&&c==="opacity"&&(c="colorAlpha",p=h.__alphaForOpacity),me.dependsOn(c,n)&&p&&p.applyVisual(t,u,f)}),s[n]},e.prototype.positionGroup=function(t){var n=this.visualMapModel,i=this.api;Jv(t,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(t,n,i,a){},e.type="visualMap",e}(At);const GT=CG;var b_=[["left","right","width"],["top","bottom","height"]];function HT(r,e,t){var n=r.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:e.getWidth(),height:e.getHeight()},o=n.orient==="horizontal"?1:0,s=b_[o],l=[0,null,10],u={},f=0;f<3;f++)u[b_[1-o][f]]=l[f],u[s[f]]=f===2?t[0]:n[s[f]];var h=[["x","width",3],["y","height",0]][o],v=ue(u,a,n.padding);return s[(v.margin[h[2]]||0)+v[h[0]]+v[h[1]]*.5<a[h[1]]*.5?0:1]}function dl(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 hr=wt,AG=T,T_=Math.min,Rh=Math.max,MG=12,DG=6,LG=function(r){E(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,n){r.prototype.init.call(this,t,n),this._hoverLinkFromSeriesMouseOver=W(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=W(this._hideIndicator,this)},e.prototype.doRender=function(t,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,n=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(n);var i=t.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},e.prototype._renderEndsText=function(t,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),h=this._applyTransform(i===0?"bottom":"top",u),v=this._orient,c=this.visualMapModel.textStyleModel;this.group.add(new dt({style:Et(c,{x:f[0],y:f[1],verticalAlign:v==="horizontal"?"middle":h,align:v==="horizontal"?h:"center",text:a})}))}},e.prototype._renderBar=function(t){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=HT(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),f=new it;u.add(f),f.add(i.outOfRange=C_()),f.add(i.inRange=C_(null,s?M_(this._orient):null,W(this._dragHandle,this,"all",!1),W(this._dragHandle,this,"all",!0))),f.setClipPath(new pt({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var h=n.textStyleModel.getTextRect("国"),v=Rh(h.width,h.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,v,o),this._createHandle(n,u,1,a,v,o)),this._createIndicator(n,u,a,v,o),t.add(u)},e.prototype._createHandle=function(t,n,i,a,o,s){var l=W(this._dragHandle,this,i,!1),u=W(this._dragHandle,this,i,!0),f=er(t.get("handleSize"),a[0]),h=te(t.get("handleIcon"),-f/2,-f/2,f,f,null,!0),v=M_(this._orient);h.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){Nr(y.event)}}),h.x=a[0]/2,h.useStyle(t.getModel("handleStyle").getItemStyle()),h.setStyle({strokeNoScale:!0,strokeFirst:!0}),h.style.lineWidth*=2,h.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Ev(h,!0),n.add(h);var c=this.visualMapModel.textStyleModel,p=new dt({cursor:v,draggable:!0,drift:l,onmousemove:function(y){Nr(y.event)},ondragend:u,style:Et(c,{x:0,y:0,text:""})});p.ensureState("blur").style={opacity:.1},p.stateTransition={duration:200},this.group.add(p);var d=[f,0],g=this._shapes;g.handleThumbs[i]=h,g.handleLabelPoints[i]=d,g.handleLabels[i]=p},e.prototype._createIndicator=function(t,n,i,a,o){var s=er(t.get("indicatorSize"),i[0]),l=te(t.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=t.getModel("indicatorStyle").getItemStyle();if(l instanceof fe){var f=l.style;l.useStyle(O({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);n.add(l);var h=this.visualMapModel.textStyleModel,v=new dt({silent:!0,invisible:!0,style:Et(h,{x:0,y:0,text:""})});this.group.add(v);var c=[(o==="horizontal"?a/2:DG)+i[0]/2,0],p=this._shapes;p.indicator=l,p.indicatorLabel=v,p.indicatorLabelPoint=c,this._firstShowIndicator=!0},e.prototype._dragHandle=function(t,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(t,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():A_(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1)}},e.prototype._resetInterval=function(){var t=this.visualMapModel,n=this._dataInterval=t.getSelected(),i=t.getExtent(),a=[0,t.itemSize[1]];this._handleEnds=[hr(n[0],i,a,!0),hr(n[1],i,a,!0)]},e.prototype._updateInterval=function(t,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];Ci(n,a,o,t,0);var s=i.getExtent();this._dataInterval=[hr(a[0],o,s,!0),hr(a[1],o,s,!0)]},e.prototype._updateView=function(t){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=t?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(t,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(t,o),l=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new Qo(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(t,n){var i=100,a=[],o=(t[1]-t[0])/i;a.push({color:this.getControllerVisual(t[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=t[0]+o*s;if(l>t[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(t[1],"color",n),offset:1}),a},e.prototype._createBarPoints=function(t,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],t[0]],[i[0],t[0]],[i[0],t[1]],[i[0]-n[1],t[1]]]},e.prototype._createBarGroup=function(t){var n=this._orient,i=this.visualMapModel.get("inverse");return new it(n==="horizontal"&&!i?{scaleX:t==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:t==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:t==="left"?1:-1,scaleY:-1}:{scaleX:t==="left"?1:-1})},e.prototype._updateHandle=function(t,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent(),f=this._applyTransform("left",i.mainGroup);AG([0,1],function(h){var v=o[h];v.setStyle("fill",n.handlesColor[h]),v.y=t[h];var c=hr(t[h],[0,l[1]],u,!0),p=this.getControllerVisual(c,"symbolSize");v.scaleX=v.scaleY=p/l[0],v.x=l[0]-p/2;var d=tr(i.handleLabelPoints[h],gn(v,this.group));if(this._orient==="horizontal"){var g=f==="left"||f==="top"?(l[0]-p)/2:(l[0]-p)/-2;d[1]+=g}s[h].setStyle({x:d[0],y:d[1],text:a.formatValueText(this._dataInterval[h]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,h=f.indicator;if(h){h.attr("invisible",!1);var v={convertOpacityToAlpha:!0},c=this.getControllerVisual(t,"color",v),p=this.getControllerVisual(t,"symbolSize"),d=hr(t,s,u,!0),g=l[0]-p/2,y={x:h.x,y:h.y};h.y=d,h.x=g;var m=tr(f.indicatorLabelPoint,gn(h,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),w=this._orient,x=w==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:x?S:"middle",align:x?"center":S});var b={x:g,y:d,style:{fill:c}},C={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};h.x=y.x,h.y=y.y,h.animateTo(b,A),_.animateTo(C,A)}else h.attr(b),_.attr(C);this._firstShowIndicator=!1;var M=this._shapes.handleLabels;if(M)for(var D=0;D<M.length;D++)this.api.enterBlur(M[D])}},e.prototype._enableHoverLinkToSeries=function(){var t=this;this._shapes.mainGroup.on("mousemove",function(n){if(t._hovering=!0,!t._dragging){var i=t.visualMapModel.itemSize,a=t._applyTransform([n.offsetX,n.offsetY],t._shapes.mainGroup,!0,!0);a[1]=T_(Rh(0,a[1]),i[1]),t._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[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,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();t=T_(Rh(o[0],t),o[1]);var l=PG(i,s,o),u=[t-l,t+l],f=hr(t,o,s,!0),h=[hr(u[0],o,s,!0),hr(u[1],o,s,!0)];u[0]<o[0]&&(h[0]=-1/0),u[1]>o[1]&&(h[1]=1/0),n&&(h[0]===-1/0?this._showIndicator(f,h[1],"< ",l):h[1]===1/0?this._showIndicator(f,h[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var v=this._hoverLinkDataIndices,c=[];(n||A_(i))&&(c=this._hoverLinkDataIndices=i.findTargetDataIndices(h));var p=NM(v,c);this._dispatchHighDown("downplay",dl(p[0],i)),this._dispatchHighDown("highlight",dl(p[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(t){var n;if(oi(t.target,function(l){var u=nt(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.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 n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",dl(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,n,i,a){var o=gn(n,a?null:this.group);return z(t)?tr(t,o,i):_u(t,o,i)},e.prototype._dispatchHighDown=function(t,n){n&&n.length&&this.api.dispatchAction({type:t,batch:n})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(GT);function C_(r,e,t,n){return new br({shape:{points:r},draggable:!!t,cursor:e,drift:t,onmousemove:function(i){Nr(i.event)},ondragend:n})}function PG(r,e,t){var n=MG/2,i=r.get("hoverLinkDataSize");return i&&(n=hr(i,e,t,!0)/2),n}function A_(r){var e=r.get("hoverLinkOnHandle");return!!(e==null?r.get("realtime"):e)}function M_(r){return r==="vertical"?"ns-resize":"ew-resize"}const IG=LG;var RG={type:"selectDataRange",event:"dataRangeSelected",update:"update"},EG=function(r,e){e.eachComponent({mainType:"visualMap",query:r},function(t){t.setSelected(r.selected)})},kG=[{createOnAllSeries:!0,reset:function(r,e){var t=[];return e.eachComponent("visualMap",function(n){var i=r.pipelineContext;!n.isTargetSeries(r)||i&&i.large||t.push(vF(n.stateList,n.targetVisuals,W(n.getValueState,n),n.getDataDimensionIndex(r.getData())))}),t}},{createOnAllSeries:!0,reset:function(r,e){var t=r.getData(),n=[];e.eachComponent("visualMap",function(i){if(i.isTargetSeries(r)){var a=i.getVisualMeta(W(OG,null,r,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(t);o>=0&&(a.dimension=o,n.push(a))}}),r.getData().setVisual("visualMeta",n)}}];function OG(r,e,t,n){for(var i=e.targetVisuals[n],a=me.prepareVisualTypes(i),o={color:Yx(r.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],f=i[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(t,h,v)}return o.color;function h(c){return o[c]}function v(c,p){o[c]=p}}var D_=T;function BG(r){var e=r&&r.visualMap;z(e)||(e=e?[e]:[]),D_(e,function(t){if(t){$i(t,"splitList")&&!$i(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var n=t.pieces;n&&z(n)&&D_(n,function(i){U(i)&&($i(i,"start")&&!$i(i,"min")&&(i.min=i.start),$i(i,"end")&&!$i(i,"max")&&(i.max=i.end))})}})}function $i(r,e){return r&&r.hasOwnProperty&&r.hasOwnProperty(e)}var L_=!1;function WT(r){L_||(L_=!0,r.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),r.registerAction(RG,EG),T(kG,function(e){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,e)}),r.registerPreprocessor(BG))}function NG(r){r.registerComponentModel(TG),r.registerComponentView(IG),WT(r)}var zG=function(r){E(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,n){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],VG[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=Z(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=V(this._pieceList,function(l){return l=Z(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var t=this.option,n={},i=me.listVisualTypes(),a=this.isCategory();T(t.pieces,function(s){T(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),T(n,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]=FT.get(l,f==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,n){var i=this.option,a=this._pieceList,o=(n?i:t).selected||{};if(i.selected=o,T(a,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),i.selectedMode==="single"){var s=!1;T(a,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=Z(t)},e.prototype.getValueState=function(t){var n=me.findPieceIndex(t,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=me.findPieceIndex(l,i);f===t&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},e.prototype.getRepresentValue=function(t){var n;if(this.isCategory())n=t.value;else if(t.value!=null)n=t.value;else{var i=t.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},e.prototype.getVisualMeta=function(t){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(f,h){var v=a.getRepresentValue({interval:f});h||(h=a.getValueState(v));var c=t(v,h);f[0]===-1/0?i[0]=c:f[1]===1/0?i[1]=c:n.push({value:f[0],color:c},{value:f[1],color:c})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return T(s,function(f){var h=f.interval;h&&(h[0]>u&&o([u,h[0]],"outOfRange"),o(h.slice()),u=h[1])},this),{stops:n,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=An(tu.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(tu),VG={splitNumber:function(r){var e=this.option,t=Math.min(e.precision,20),n=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(t)!==a&&t<5;)t++;e.precision=t,a=+a.toFixed(t),e.minOpen&&r.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;r.push({interval:[s,l],close:[1,1]})}e.maxOpen&&r.push({interval:[n[1],1/0],close:[0,0]}),nc(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),P_(e,r)},pieces:function(r){var e=this.option;T(e.pieces,function(t,n){U(t)||(t={value:t});var i={text:"",index:n};if(t.label!=null&&(i.text=t.label),t.hasOwnProperty("value")){var a=i.value=t.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],h=0;h<2;h++){for(var v=[["gte","gt","min"],["lte","lt","max"]][h],c=0;c<3&&o[h]==null;c++)o[h]=t[v[c]],s[h]=l[c],f[h]=c===2;o[h]==null&&(o[h]=u[h])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=me.retrieveVisuals(t),r.push(i)},this),P_(e,r),nc(r),T(r,function(t){var n=t.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];t.text=t.text||this.formatValueText(t.value!=null?t.value:t.interval,!1,i)},this)}};function P_(r,e){var t=r.inverse;(r.orient==="vertical"?!t:t)&&e.reverse()}const FG=zG;var GG=function(r){E(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 n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,f=this._getViewData(),h=f.endsText,v=Br(n.get("showLabel",!0),!h),c=!n.get("selectedMode");h&&this._renderEndsText(t,h[0],u,v,l),T(f.viewPieceList,function(p){var d=p.piece,g=new it;g.onclick=W(this._onItemClick,this,d),this._enableHoverLink(g,p.indexInModelPieceList);var y=n.getRepresentValue(d);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]],c),v){var m=this.visualMapModel.getValueState(y);g.add(new dt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:d.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:m==="outOfRange"?.5:1},silent:c}))}t.add(g)},this),h&&this._renderEndsText(t,h[1],u,v,l),ci(n.get("orient"),t,n.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,n){var i=this;t.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:dl(s.findTargetDataIndices(n),s)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,n=t.option;if(n.orient==="vertical")return HT(t,this.api,t.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(t,n,i,a,o){if(n){var s=new it,l=this.visualMapModel.textStyleModel;s.add(new dt({style:Et(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),t.add(s)}},e.prototype._getViewData=function(){var t=this.visualMapModel,n=V(t.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=t.get("text"),a=t.get("orient"),o=t.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},e.prototype._createItemSymbol=function(t,n,i,a){var o=te(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color"));o.silent=a,t.add(o)},e.prototype._onItemClick=function(t){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=Z(i.selected),s=n.getSelectedMapKey(t);a==="single"||a===!0?(o[s]=!0,T(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(GT);const HG=GG;function WG(r){r.registerComponentModel(FG),r.registerComponentView(HG),WT(r)}function $G(r){Wt(NG),Wt(WG)}var YG={label:{enabled:!0},decal:{show:!1}},I_=St(),UG={};function XG(r,e){var t=r.getModel("aria");if(!t.get("enabled"))return;var n=Z(YG);Q(n.label,r.getLocaleModel().get("aria"),!1),Q(t.option,n,!1),i(),a();function i(){var u=t.getModel("decal"),f=u.get("show");if(f){var h=$();r.eachSeries(function(v){if(!v.isColorBySeries()){var c=h.get(v.type);c||(c={},h.set(v.type,c)),I_(v).scope=c}}),r.eachRawSeries(function(v){if(r.isSeriesFiltered(v))return;if(K(v.enableAriaDecal)){v.enableAriaDecal();return}var c=v.getData();if(v.isColorBySeries()){var m=Pg(v.ecModel,v.name,UG,r.getSeriesCount()),_=c.getVisual("decal");c.setVisual("decal",S(_,m))}else{var p=v.getRawData(),d={},g=I_(v).scope;c.each(function(w){var x=c.getRawIndex(w);d[x]=w});var y=p.count();p.each(function(w){var x=d[w],b=p.getName(w)||w+"",C=Pg(v.ecModel,b,g,y),A=c.getItemVisual(x,"decal");c.setItemVisual(x,"decal",S(A,C))})}function S(w,x){var b=w?O(O({},x),w):x;return b.dirty=!0,b}})}}function a(){var u=e.getZr().dom;if(u){var f=r.getLocaleModel().get("aria"),h=t.getModel("label");if(h.option=q(h.option,f),!!h.get("enabled")){if(u.setAttribute("role","img"),h.get("description")){u.setAttribute("aria-label",h.get("description"));return}var v=r.getSeriesCount(),c=h.get(["data","maxCount"])||10,p=h.get(["series","maxCount"])||10,d=Math.min(v,p),g;if(!(v<1)){var y=s();if(y){var m=h.get(["general","withTitle"]);g=o(m,{title:y})}else g=h.get(["general","withoutTitle"]);var _=[],S=v>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);g+=o(S,{seriesCount:v}),r.eachSeries(function(C,A){if(A<d){var M=void 0,D=C.get("name"),L=D?"withName":"withoutName";M=v>1?h.get(["series","multiple",L]):h.get(["series","single",L]),M=o(M,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:l(C.subType)});var P=C.getData();if(P.count()>c){var I=h.get(["data","partialData"]);M+=o(I,{displayCnt:c})}else M+=h.get(["data","allData"]);for(var R=h.get(["data","separator","middle"]),k=h.get(["data","separator","end"]),F=h.get(["data","excludeDimensionId"]),B=[],N=0;N<P.count();N++)if(N<c){var H=P.getName(N),X=F?xt(P.getValues(N),function(ot,vt){return st(F,vt)===-1}):P.getValues(N),Y=h.get(["data",H?"withName":"withoutName"]);B.push(o(Y,{name:H,value:X.join(R)}))}M+=B.join(R)+k,_.push(M)}});var w=h.getModel(["series","multiple","separator"]),x=w.get("middle"),b=w.get("end");g+=_.join(x)+b,u.setAttribute("aria-label",g)}}}}function o(u,f){if(!G(u))return u;var h=u;return T(f,function(v,c){h=h.replace(new RegExp("\\{\\s*"+c+"\\s*\\}","g"),v)}),h}function s(){var u=r.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var f=r.getLocaleModel().get(["series","typeNames"]);return f[u]||f.chart}}function ZG(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 qG(r){r.registerPreprocessor(ZG),r.registerVisual(r.PRIORITY.VISUAL.ARIA,XG)}var Eh=Math.sin,kh=Math.cos,$T=Math.PI,qn=Math.PI*2,KG=180/$T,jG=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,n,i,a,o){this._add("C",e,t,n,i,a,o)},r.prototype.quadraticCurveTo=function(e,t,n,i){this._add("Q",e,t,n,i)},r.prototype.arc=function(e,t,n,i,a,o){this.ellipse(e,t,n,n,0,i,a,o)},r.prototype.ellipse=function(e,t,n,i,a,o,s,l){var u=s-o,f=!l,h=Math.abs(u),v=un(h-qn)||(f?u>=qn:-u>=qn),c=u>0?u%qn:u%qn+qn,p=!1;v?p=!0:un(h)?p=!1:p=c>=$T==!!f;var d=e+n*kh(o),g=t+i*Eh(o);this._start&&this._add("M",d,g);var y=Math.round(a*KG);if(v){var m=1/this._p,_=(f?1:-1)*(qn-m);this._add("A",n,i,y,1,+f,e+n*kh(o+_),t+i*Eh(o+_)),m>.01&&this._add("A",n,i,y,0,+f,d,g)}else{var S=e+n*kh(s),w=t+i*Eh(s);this._add("A",n,i,y,+p,+f,S,w)}},r.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(e,t,n,i,a,o,s,l,u){for(var f=[],h=this._p,v=1;v<arguments.length;v++){var c=arguments[v];if(isNaN(c)){this._invalid=!0;return}f.push(Math.round(c*h)/h)}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}();const YT=jG;var xo="none",JG=Math.round;function QG(r){var e=r.fill;return e!=null&&e!==xo}function t3(r){var e=r.stroke;return e!=null&&e!==xo}var tv=["lineCap","miterLimit","lineJoin"],e3=V(tv,function(r){return"stroke-"+r.toLowerCase()});function r3(r,e,t,n){var i=e.opacity==null?1:e.opacity;if(t instanceof fe){r("opacity",i);return}if(QG(e)){var a=Co(e.fill);r("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*i:a.opacity*i;(n||o<1)&&r("fill-opacity",o)}else r("fill",xo);if(t3(e)){var s=Co(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*i:s.opacity*i,h=e.strokeFirst;if((n||u!==1)&&r("stroke-width",u),(n||h)&&r("paint-order",h?"stroke":"fill"),(n||f<1)&&r("stroke-opacity",f),e.lineDash){var v=up(t),c=v[0],p=v[1];c&&(p=JG(p||0),r("stroke-dasharray",c.join(",")),(p||n)&&r("stroke-dashoffset",p))}else n&&r("stroke-dasharray",xo);for(var d=0;d<tv.length;d++){var g=tv[d];if(n||e[g]!==Ll[g]){var y=e[g]||Ll[g];y&&r(e3[d],y)}}}else n&&r("stroke",xo)}var UT="http://www.w3.org/2000/svg",XT="http://www.w3.org/1999/xlink",n3="http://www.w3.org/2000/xmlns/",i3="http://www.w3.org/XML/1998/namespace",R_="ecmeta_";function ZT(r){return document.createElementNS(UT,r)}function Bt(r,e,t,n,i){return{tag:r,attrs:t||{},children:n,text:i,key:e}}function a3(r,e){var t=[];if(e)for(var n in e){var i=e[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),t.push(a))}return"<"+r+" "+t.join(" ")+">"}function o3(r){return"</"+r+">"}function Qp(r,e){e=e||{};var t=e.newline?"\n":"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return a3(o,s)+(o!=="style"?Ht(l):l||"")+(a?""+t+V(a,function(u){return n(u)}).join(t)+t:"")+o3(o)}return n(r)}function s3(r,e,t){t=t||{};var n=t.newline?"\n":"",i=" {"+n,a=n+"}",o=V(at(r),function(l){return l+i+V(at(r[l]),function(u){return u+":"+r[l][u]+";"}).join(n)+a}).join(n),s=V(at(e),function(l){return"@keyframes "+l+i+V(at(e[l]),function(u){return u+i+V(at(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function ev(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function E_(r,e,t,n){return Bt("svg","root",{width:r,height:e,xmlns:UT,"xmlns:xlink":XT,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+r+" "+e:!1},t)}var l3=0;function qT(){return l3++}var k_={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"},Jn="transform-origin";function u3(r,e,t){var n=O({},r.shape);O(n,e),r.buildPath(t,n);var i=new YT;return i.reset(M1(r)),t.rebuildPath(i,1),i.generateStr(),i.getStr()}function f3(r,e){var t=e.originX,n=e.originY;(t||n)&&(r[Jn]=t+"px "+n+"px")}var h3={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function KT(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function c3(r,e,t){var n=r.shape.paths,i={},a,o;if(T(n,function(l){var u=ev(t.zrId);u.animation=!0,Uu(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=at(f),c=v.length;if(c){o=v[c-1];var p=f[o];for(var d in p){var g=p[d];i[d]=i[d]||{d:""},i[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(a=m)}}}),!!a){e.d=!1;var s=KT(i,t);return a.replace(o,s)}}function O_(r){return G(r)?k_[r]?"cubic-bezier("+k_[r]+")":dv(r)?r:"":""}function Uu(r,e,t,n){var i=r.animators,a=i.length,o=[];if(r instanceof yu){var s=c3(r,e,t);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var f=i[u],h=[f.getMaxTime()/1e3+"s"],v=O_(f.getClip().easing),c=f.getDelay();v?h.push(v):h.push("linear"),c&&h.push(c/1e3+"s"),f.getLoop()&&h.push("infinite");var p=h.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(f)}function d(m){var _=m[1],S=_.length,w={},x={},b={},C="animation-timing-function";function A(Nt,Mt,bt){for(var J=Nt.getTracks(),lt=Nt.getMaxTime(),ce=0;ce<J.length;ce++){var Dt=J[ce];if(Dt.needsAnimate()){var $e=Dt.keyframes,ve=Dt.propName;if(bt&&(ve=bt(ve)),ve)for(var Cr=0;Cr<$e.length;Cr++){var Ai=$e[Cr],Ye=Math.round(Ai.time/lt*100)+"%",is=O_(Ai.easing),Xr=Ai.rawValue;(G(Xr)||_t(Xr))&&(Mt[Ye]=Mt[Ye]||{},Mt[Ye][ve]=Ai.rawValue,is&&(Mt[Ye][C]=is))}}}}for(var M=0;M<S;M++){var D=_[M],L=D.targetName;L?L==="shape"&&A(D,x):!n&&A(D,w)}for(var P in w){var I={};R1(I,r),O(I,w[P]);var R=D1(I),k=w[P][C];b[P]=R?{transform:R}:{},f3(b[P],I),k&&(b[P][C]=k)}var F,B=!0;for(var P in x){b[P]=b[P]||{};var N=!F,k=x[P][C];N&&(F=new Fr);var H=F.len();F.reset(),b[P].d=u3(r,x[P],F);var X=F.len();if(!N&&H!==X){B=!1;break}k&&(b[P][C]=k)}if(!B)for(var P in b)delete b[P].d;if(!n)for(var M=0;M<S;M++){var D=_[M],L=D.targetName;L==="style"&&A(D,b,function(J){return h3[J]})}for(var Y=at(b),ot=!0,vt,M=1;M<Y.length;M++){var yt=Y[M-1],Yt=Y[M];if(b[yt][Jn]!==b[Yt][Jn]){ot=!1;break}vt=b[yt][Jn]}if(ot&&vt){for(var P in b)b[P][Jn]&&delete b[P][Jn];e[Jn]=vt}if(xt(Y,function(Nt){return at(b[Nt]).length>0}).length){var he=KT(b,t);return he+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+qT();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function v3(r,e,t){if(!r.ignore)if(r.isSilent()){var n={"pointer-events":"none"};B_(n,e,t,!0)}else{var i=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},a=i.fill;if(!a){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(a=Cl(l))}var u=i.lineWidth;if(u){var f=!i.strokeNoScale&&r.transform?r.transform[0]:1;u=u/f}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),B_(n,e,t,!0)}}function B_(r,e,t,n){var i=JSON.stringify(r),a=t.cssStyleCache[i];a||(a=t.zrId+"-cls-"+qT(),t.cssStyleCache[i]=a,t.cssNodes["."+a+(n?":hover":"")]=r),e.class=e.class?e.class+" "+a:a}var Yo=Math.round;function jT(r){return r&&G(r.src)}function JT(r){return r&&K(r.toDataURL)}function td(r,e,t,n){r3(function(i,a){var o=i==="fill"||i==="stroke";o&&A1(a)?tC(e,r,i,n):o&&yv(a)?eC(t,r,i,n):r[i]=a,o&&n.ssr&&a==="none"&&(r["pointer-events"]="visible")},e,t,!1),S3(t,r,n)}function ed(r,e){var t=N1(e);t&&(t.each(function(n,i){n!=null&&(r[(R_+i).toLowerCase()]=n+"")}),e.isSilent()&&(r[R_+"silent"]="true"))}function N_(r){return un(r[0]-1)&&un(r[1])&&un(r[2])&&un(r[3]-1)}function p3(r){return un(r[4])&&un(r[5])}function rd(r,e,t){if(e&&!(p3(e)&&N_(e))){var n=t?10:1e4;r.transform=N_(e)?"translate("+Yo(e[4]*n)/n+" "+Yo(e[5]*n)/n+")":BA(e)}}function z_(r,e,t){for(var n=r.points,i=[],a=0;a<n.length;a++)i.push(Yo(n[a][0]*t)/t),i.push(Yo(n[a][1]*t)/t);e.points=i.join(" ")}function V_(r){return!r.smooth}function d3(r){var e=V(r,function(t){return typeof t=="string"?[t,t]:t});return function(t,n,i){for(var a=0;a<e.length;a++){var o=e[a],s=t[o[0]];s!=null&&(n[o[1]]=Yo(s*i)/i)}}}var g3={circle:[d3(["cx","cy","r"])],polyline:[z_,V_],polygon:[z_,V_]};function y3(r){for(var e=r.animators,t=0;t<e.length;t++)if(e[t].targetName==="shape")return!0;return!1}function QT(r,e){var t=r.style,n=r.shape,i=g3[r.type],a={},o=e.animation,s="path",l=r.style.strokePercent,u=e.compress&&M1(r)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&y3(r))&&!(l<1)){s=r.type;var f=Math.pow(10,u);i[0](n,a,f)}else{var h=!r.path||r.shapeChanged();r.path||r.createPathProxy();var v=r.path;h&&(v.beginPath(),r.buildPath(v,r.shape),r.pathUpdated());var c=v.getVersion(),p=r,d=p.__svgPathBuilder;(p.__svgPathVersion!==c||!d||l!==p.__svgPathStrokePercent)&&(d||(d=p.__svgPathBuilder=new YT),d.reset(u),v.rebuildPath(d,l),d.generateStr(),p.__svgPathVersion=c,p.__svgPathStrokePercent=l),a.d=d.getStr()}return rd(a,r.transform),td(a,t,r,e),ed(a,r),e.animation&&Uu(r,a,e),e.emphasis&&v3(r,a,e),Bt(s,r.id+"",a)}function m3(r,e){var t=r.style,n=t.image;if(n&&!G(n)&&(jT(n)?n=n.src:JT(n)&&(n=n.toDataURL())),!!n){var i=t.x||0,a=t.y||0,o=t.width,s=t.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),rd(l,r.transform),td(l,t,r,e),ed(l,r),e.animation&&Uu(r,l,e),Bt("image",r.id+"",l)}}function _3(r,e){var t=r.style,n=t.text;if(n!=null&&(n+=""),!(!n||isNaN(t.x)||isNaN(t.y))){var i=t.font||mn,a=t.x||0,o=zA(t.y||0,su(i),t.textBaseline),s=NA[t.textAlign]||t.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(hS(t)){var u="",f=t.fontStyle,h=fS(t.fontSize);if(!parseFloat(h))return;var v=t.fontFamily||Z_,c=t.fontWeight;u+="font-size:"+h+";font-family:"+v+";",f&&f!=="normal"&&(u+="font-style:"+f+";"),c&&c!=="normal"&&(u+="font-weight:"+c+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),rd(l,r.transform),td(l,t,r,e),ed(l,r),e.animation&&Uu(r,l,e),Bt("text",r.id+"",l,void 0,n)}}function F_(r,e){if(r instanceof gt)return QT(r,e);if(r instanceof fe)return m3(r,e);if(r instanceof Lo)return _3(r,e)}function S3(r,e,t){var n=r.style;if(VA(n)){var i=FA(r),a=t.shadowCache,o=a[i];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var f=n.shadowOffsetX||0,h=n.shadowOffsetY||0,v=n.shadowBlur,c=Co(n.shadowColor),p=c.opacity,d=c.color,g=v/2/l,y=v/2/u,m=g+" "+y;o=t.zrId+"-s"+t.shadowIdx++,t.defs[o]=Bt("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Bt("feDropShadow","",{dx:f/l,dy:h/u,stdDeviation:m,"flood-color":d,"flood-opacity":p})]),a[i]=o}e.filter=ou(o)}}function tC(r,e,t,n){var i=r[t],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(T1(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(C1(i))a="radialGradient",o.cx=j(i.x,.5),o.cy=j(i.y,.5),o.r=j(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,f=s.length;u<f;++u){var h=Uh(s[u].offset)*100+"%",v=s[u].color,c=Co(v),p=c.color,d=c.opacity,g={offset:h};g["stop-color"]=p,d<1&&(g["stop-opacity"]=d),l.push(Bt("stop",u+"",g))}var y=Bt(a,"",o,l),m=Qp(y),_=n.gradientCache,S=_[m];S||(S=n.zrId+"-g"+n.gradientIdx++,_[m]=S,o.id=S,n.defs[S]=Bt(a,S,o,l)),e[t]=ou(S)}function eC(r,e,t,n){var i=r.style[t],a=r.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",f=s==="repeat-y",h;if(b1(i)){var v=i.imageWidth,c=i.imageHeight,p=void 0,d=i.image;if(G(d)?p=d:jT(d)?p=d.src:JT(d)&&(p=d.toDataURL()),typeof Image>"u"){var g="Image width/height must been given explictly in svg-ssr renderer.";le(v,g),le(c,g)}else if(v==null||c==null){var y=function(M,D){if(M){var L=M.elm,P=v||D.width,I=c||D.height;M.tag==="pattern"&&(u?(I=1,P/=a.width):f&&(P=1,I/=a.height)),M.attrs.width=P,M.attrs.height=I,L&&(L.setAttribute("width",P),L.setAttribute("height",I))}},m=Mv(p,null,r,function(M){l||y(x,M),y(h,M)});m&&m.width&&m.height&&(v=v||m.width,c=c||m.height)}h=Bt("image","img",{href:p,width:v,height:c}),o.width=v,o.height=c}else i.svgElement&&(h=Z(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(h){var _,S;l?_=S=1:u?(S=1,_=o.width/a.width):f?(_=1,S=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),S!=null&&!isNaN(S)&&(o.height=S);var w=D1(i);w&&(o.patternTransform=w);var x=Bt("pattern","",o,[h]),b=Qp(x),C=n.patternCache,A=C[b];A||(A=n.zrId+"-p"+n.patternIdx++,C[b]=A,o.id=A,x=n.defs[A]=Bt("pattern",A,o,[h])),e[t]=ou(A)}}function x3(r,e,t){var n=t.clipPathCache,i=t.defs,a=n[r.id];if(!a){a=t.zrId+"-c"+t.clipPathIdx++;var o={id:a};n[r.id]=a,i[a]=Bt("clipPath",a,o,[QT(r,t)])}e["clip-path"]=ou(a)}function G_(r){return document.createTextNode(r)}function ei(r,e,t){r.insertBefore(e,t)}function H_(r,e){r.removeChild(e)}function W_(r,e){r.appendChild(e)}function rC(r){return r.parentNode}function nC(r){return r.nextSibling}function Oh(r,e){r.textContent=e}var $_=58,w3=120,b3=Bt("","");function rv(r){return r===void 0}function cr(r){return r!==void 0}function T3(r,e,t){for(var n={},i=e;i<=t;++i){var a=r[i].key;a!==void 0&&(n[a]=i)}return n}function oo(r,e){var t=r.key===e.key,n=r.tag===e.tag;return n&&t}function Uo(r){var e,t=r.children,n=r.tag;if(cr(n)){var i=r.elm=ZT(n);if(nd(b3,r),z(t))for(e=0;e<t.length;++e){var a=t[e];a!=null&&W_(i,Uo(a))}else cr(r.text)&&!U(r.text)&&W_(i,G_(r.text))}else r.elm=G_(r.text);return r.elm}function iC(r,e,t,n,i){for(;n<=i;++n){var a=t[n];a!=null&&ei(r,Uo(a),e)}}function eu(r,e,t,n){for(;t<=n;++t){var i=e[t];if(i!=null)if(cr(i.tag)){var a=rC(i.elm);H_(a,i.elm)}else H_(r,i.elm)}}function nd(r,e){var t,n=e.elm,i=r&&r.attrs||{},a=e.attrs||{};if(i!==a){for(t in a){var o=a[t],s=i[t];s!==o&&(o===!0?n.setAttribute(t,""):o===!1?n.removeAttribute(t):t==="style"?n.style.cssText=o:t.charCodeAt(0)!==w3?n.setAttribute(t,o):t==="xmlns:xlink"||t==="xmlns"?n.setAttributeNS(n3,t,o):t.charCodeAt(3)===$_?n.setAttributeNS(i3,t,o):t.charCodeAt(5)===$_?n.setAttributeNS(XT,t,o):n.setAttribute(t,o))}for(t in i)t in a||n.removeAttribute(t)}}function C3(r,e,t){for(var n=0,i=0,a=e.length-1,o=e[0],s=e[a],l=t.length-1,u=t[0],f=t[l],h,v,c,p;n<=a&&i<=l;)o==null?o=e[++n]:s==null?s=e[--a]:u==null?u=t[++i]:f==null?f=t[--l]:oo(o,u)?(Zi(o,u),o=e[++n],u=t[++i]):oo(s,f)?(Zi(s,f),s=e[--a],f=t[--l]):oo(o,f)?(Zi(o,f),ei(r,o.elm,nC(s.elm)),o=e[++n],f=t[--l]):oo(s,u)?(Zi(s,u),ei(r,s.elm,o.elm),s=e[--a],u=t[++i]):(rv(h)&&(h=T3(e,n,a)),v=h[u.key],rv(v)?ei(r,Uo(u),o.elm):(c=e[v],c.tag!==u.tag?ei(r,Uo(u),o.elm):(Zi(c,u),e[v]=void 0,ei(r,c.elm,o.elm))),u=t[++i]);(n<=a||i<=l)&&(n>a?(p=t[l+1]==null?null:t[l+1].elm,iC(r,p,t,i,l)):eu(r,e,n,a))}function Zi(r,e){var t=e.elm=r.elm,n=r.children,i=e.children;r!==e&&(nd(r,e),rv(e.text)?cr(n)&&cr(i)?n!==i&&C3(t,n,i):cr(i)?(cr(r.text)&&Oh(t,""),iC(t,null,i,0,i.length-1)):cr(n)?eu(t,n,0,n.length-1):cr(r.text)&&Oh(t,""):r.text!==e.text&&(cr(n)&&eu(t,n,0,n.length-1),Oh(t,e.text)))}function A3(r,e){if(oo(r,e))Zi(r,e);else{var t=r.elm,n=rC(t);Uo(e),n!==null&&(ei(n,e.elm,nC(t)),eu(n,[r],0,0))}return e}var M3=0,D3=function(){function r(e,t,n){if(this.type="svg",this.refreshHover=Y_(),this.configLayer=Y_(),this.storage=t,this._opts=n=O({},n),this.root=e,this._id="zr"+M3++,this._oldVNode=E_(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=ZT("svg");nd(null,this._oldVNode),i.appendChild(a),e.appendChild(i)}this.resize(n.width,n.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",A3(this._oldVNode,e),this._oldVNode=e}},r.prototype.renderOneToVNode=function(e){return F_(e,ev(this._id))},r.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=ev(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=L3(n,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=Bt("g","main",{},[]);this._paintList(t,a,l?l.children:o),l&&o.push(l);var u=V(at(a.defs),function(v){return a.defs[v]});if(u.length&&o.push(Bt("defs","defs",{},u)),e.animation){var f=s3(a.cssNodes,a.cssAnims,{newline:!0});if(f){var h=Bt("style","stl",{},[],f);o.push(h)}}return E_(n,i,o,e.useViewBox)},r.prototype.renderToString=function(e){return e=e||{},Qp(this.renderToVNode({animation:j(e.cssAnimation,!0),emphasis:j(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:j(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,n){for(var i=e.length,a=[],o=0,s,l,u=0,f=0;f<i;f++){var h=e[f];if(!h.invisible){var v=h.__clipPaths,c=v&&v.length||0,p=l&&l.length||0,d=void 0;for(d=Math.max(c-1,p-1);d>=0&&!(v&&l&&v[d]===l[d]);d--);for(var g=p-1;g>d;g--)o--,s=a[o-1];for(var y=d+1;y<c;y++){var m={};x3(v[y],m,t);var _=Bt("g","clip-g-"+u++,m,[]);(s?s.children:n).push(_),a[o++]=_,s=_}l=v;var S=F_(h,t);S&&(s?s.children:n).push(S)}}},r.prototype.resize=function(e,t){var n=this._opts,i=this.root,a=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),i&&a&&(a.style.display="none",e=cy(i,0,n),t=cy(i,1,n),a.style.display=""),this._width!==e||this._height!==t){if(this._width=e,this._height=t,a){var o=a.style;o.width=e+"px",o.height=t+"px"}if(yv(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(),n="data:image/svg+xml;";return e?(t=HA(t),t&&n+"base64,"+t):n+"charset=UTF-8,"+encodeURIComponent(t)},r}();function Y_(r){return function(){}}function L3(r,e,t,n){var i;if(t&&t!=="none")if(i=Bt("rect","bg",{width:r,height:e,x:"0",y:"0"}),A1(t))tC({fill:t},i.attrs,"fill",n);else if(yv(t))eC({style:{fill:t},dirty:zt,getBoundingRect:function(){return{width:r,height:e}}},i.attrs,"fill",n);else{var a=Co(t),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}const P3=D3;function I3(r){r.registerPainter("svg",P3)}Wt([YF,gF,hF,Y5,Cz,qG,XN,Wk,Ck,rO,jB,QO,I3,o5,Tb,HV,dG,$G,IF,Rz,Gz]);const{darkTheme:R3,appTheme:E3,appThemeList:k3}=lC,O3=sC({id:"app-design-setting",state:()=>({darkTheme:R3,appTheme:E3,appThemeList:k3}),getters:{getDarkTheme(){return this.darkTheme},getAppTheme(){return this.appTheme},getAppThemeList(){return this.appThemeList}},actions:{}});function B3(){const r=O3(),e=ji(()=>r.darkTheme),t=ji(()=>r.appTheme),n=ji(()=>r.appThemeList);return{getDarkTheme:e,getAppTheme:t,getAppThemeList:n}}var aC=(r=>(r[r.XS=480]="XS",r[r.SM=576]="SM",r[r.MD=768]="MD",r[r.LG=992]="LG",r[r.XL=1200]="XL",r[r.XXL=1600]="XXL",r))(aC||{});const Ca=new Map;Ca.set("XS",480);Ca.set("SM",576);Ca.set("MD",768);Ca.set("LG",992);Ca.set("XL",1200);Ca.set("XXL",1600);let N3,z3,V3;function F3(){return{screenRef:ji(()=>on(N3)),widthRef:z3,screenEnum:aC,realWidthRef:V3}}function W3(r,e="default"){const{getDarkTheme:t}=B3(),n=ji(()=>{const p=t.value?"dark":"light";return e==="default"?p:e});let i=null,a=h;const o=gl({});let s=()=>{};a=X_(h,200);const l=ji(()=>n.value!=="dark"?o.value:{backgroundColor:"transparent",...o.value});function u(p=e){const d=on(r);if(!d||!on(d))return;i=Zy.init(d,p);const{removeEvent:g}=vC({el:window,name:"resize",listener:a});s=g;const{widthRef:y,screenEnum:m}=F3();(on(y)<=m.MD||d.offsetHeight===0)&&Zu(()=>{a()},30)}function f(p,d=!0){var g;if(o.value=p,((g=on(r))==null?void 0:g.offsetHeight)===0){Zu(()=>{f(on(l))},30);return}uC(()=>{Zu(()=>{!i&&(u(n.value),!i)||(d&&(i==null||i.clear()),i==null||i.setOption(on(l)))},30)})}function h(){i==null||i.resize()}nv(()=>n.value,p=>{i&&(i.dispose(),u(p),f(o.value))}),U_(c);function v(){return i||u(n.value),i}function c(){i&&(s(),i.dispose(),i=null)}return{setOptions:f,resize:h,echarts:Zy,getInstance:v,disposeInstance:c}}export{W3 as u};