import{c$ as P1,d0 as R1,d1 as E1,B as pv,l as k1,a2 as O1,am as N1}from"./BoB2h2qv.js";/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Ol=function(r,t){return Ol=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Ol(r,t)};function N(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ol(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var eh=12,B1="sans-serif",mn=eh+"px "+B1,F1=20,z1=100,G1="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function V1(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),i=(r.charCodeAt(e)-F1)/z1;t[n]=i}return t}var H1=V1(G1),Si={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,n){if(!r){var i=Si.createCanvas();r=i&&i.getContext("2d")}if(r)return t!==n&&(t=r.font=n||mn),r.measureText(e);e=e||"",n=n||mn;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||eh,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var u=0;u<e.length;u++){var l=H1[e[u]];s+=l==null?o:l*o}return{width:s}}})(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}},Gg=Pr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Vg=Pr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),xi=Object.prototype.toString,As=Array.prototype,W1=As.forEach,U1=As.filter,rh=As.slice,Y1=As.map,gv=(function(){}).constructor,Ya=gv?gv.prototype:null,nh="__proto__",X1=2311;function Hg(){return X1++}function ih(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function J(r){if(r==null||typeof r!="object")return r;var t=r,e=xi.call(r);if(e==="[object Array]"){if(!la(r)){t=[];for(var n=0,i=r.length;n<i;n++)t[n]=J(r[n])}}else if(Vg[e]){if(!la(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var n=0,i=r.length;n<i;n++)t[n]=r[n]}}}else if(!Gg[e]&&!la(r)&&!fi(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==nh&&(t[o]=J(r[o]))}return t}function tt(r,t,e){if(!Y(t)||!Y(r))return e?J(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==nh){var i=r[n],a=t[n];Y(a)&&Y(i)&&!z(a)&&!z(i)&&!fi(a)&&!fi(i)&&!yv(a)&&!yv(i)&&!la(a)&&!la(i)?tt(i,a,e):(e||!(n in r))&&(r[n]=J(t[n]))}return r}function B(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==nh&&(r[e]=t[e]);return r}function K(r,t,e){for(var n=yt(t),i=0,a=n.length;i<a;i++){var o=n[i];r[o]==null&&(r[o]=t[o])}return r}function nt(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function Z1(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var i in e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t}function De(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&r[a]==null&&(r[a]=t[a])}else K(r,t)}function Zt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function M(r,t,e){if(r&&t)if(r.forEach&&r.forEach===W1)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function G(r,t,e){if(!r)return[];if(!t)return ah(r);if(r.map&&r.map===Y1)return r.map(t,e);for(var n=[],i=0,a=r.length;i<a;i++)n.push(t.call(e,r[i],i,r));return n}function Pr(r,t,e,n){if(r&&t){for(var i=0,a=r.length;i<a;i++)e=t.call(n,e,r[i],i,r);return e}}function xt(r,t,e){if(!r)return[];if(!t)return ah(r);if(r.filter&&r.filter===U1)return r.filter(t,e);for(var n=[],i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r)&&n.push(r[i]);return n}function $1(r,t,e){if(r&&t){for(var n=0,i=r.length;n<i;n++)if(t.call(e,r[n],n,r))return r[n]}}function yt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function q1(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(rh.call(arguments)))}}var ht=Ya&&q(Ya.bind)?Ya.call.bind(Ya.bind):q1;function ft(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(rh.call(arguments)))}}function z(r){return Array.isArray?Array.isArray(r):xi.call(r)==="[object Array]"}function q(r){return typeof r=="function"}function W(r){return typeof r=="string"}function Nl(r){return xi.call(r)==="[object String]"}function vt(r){return typeof r=="number"}function Y(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function yv(r){return!!Gg[xi.call(r)]}function ne(r){return!!Vg[xi.call(r)]}function fi(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Ds(r){return r.colorStops!=null}function K1(r){return r.image!=null}function Q1(r){return xi.call(r)==="[object RegExp]"}function Ko(r){return r!==r}function ba(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function j(r,t){return r??t}function ua(r,t,e){return r??t??e}function ah(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return rh.apply(r,t)}function Wg(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function Ue(r,t){if(!r)throw new Error(t)}function ze(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ug="__ec_primitive__";function Qo(r){r[Ug]=!0}function la(r){return r[Ug]}var J1=(function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return yt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r})(),Yg=typeof Map=="function";function j1(){return Yg?new Map:new J1}var tS=(function(){function r(t){var e=z(t);this.data=j1();var n=this;t instanceof r?t.each(i):t&&M(t,i);function i(a,o){e?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},r.prototype.keys=function(){var t=this.data.keys();return Yg?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function Z(r){return new tS(r)}function eS(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var i=r.length,n=0;n<t.length;n++)e[n+i]=t[n];return e}function Is(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&B(e,t),e}function Xg(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Ye(r,t){return r.hasOwnProperty(t)}function Xt(){}var rS=180/Math.PI,nS=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),iS=(function(){function r(){this.browser=new nS,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})(),Q=new iS;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Q.wxa=!0,Q.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Q.worker=!0:!Q.hasGlobalWindow||"Deno"in window?(Q.node=!0,Q.svgSupported=!0):aS(navigator.userAgent,Q);function aS(r,t){var e=t.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&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}var oS=".",Gr="___EC__COMPONENT__CONTAINER___",Zg="___EC__EXTENDED_CLASS___";function Ge(r){var t={main:"",sub:""};if(r){var e=r.split(oS);t.main=e[0]||"",t.sub=e[1]||""}return t}function sS(r){Ue(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function uS(r){return!!(r&&r[Zg])}function oh(r,t){r.$constructor=r,r.extend=function(e){var n=this,i;return lS(n)?i=(function(a){N(o,a);function o(){return a.apply(this,arguments)||this}return o})(n):(i=function(){(e.$constructor||n).apply(this,arguments)},Z1(i,this)),B(i.prototype,e),i[Zg]=!0,i.extend=this.extend,i.superCall=vS,i.superApply=cS,i.superClass=n,i}}function lS(r){return q(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function $g(r,t){r.extend=t.extend}var fS=Math.round(Math.random()*10);function hS(r){var t=["__\0is_clz",fS++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function vS(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return this.superClass.prototype[t].apply(r,e)}function cS(r,t,e){return this.superClass.prototype[t].apply(r,e)}function Ls(r){var t={};r.registerClass=function(n){var i=n.type||n.prototype.type;if(i){sS(i),n.prototype.type=i;var a=Ge(i);if(!a.sub)t[a.main]=n;else if(a.sub!==Gr){var o=e(a);o[a.sub]=n}}return n},r.getClass=function(n,i,a){var o=t[n];if(o&&o[Gr]&&(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=Ge(n),a=[],o=t[i.main];return o&&o[Gr]?M(o,function(s,u){u!==Gr&&a.push(s)}):a.push(o),a},r.hasClass=function(n){var i=Ge(n);return!!t[i.main]},r.getAllClassMainTypes=function(){var n=[];return M(t,function(i,a){n.push(a)}),n},r.hasSubTypes=function(n){var i=Ge(n),a=t[i.main];return a&&a[Gr]};function e(n){var i=t[n.main];return(!i||!i[Gr])&&(i=t[n.main]={},i[Gr]=!0),i}}function Ta(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(n,i,a){for(var o={},s=0;s<r.length;s++){var u=r[s][1];if(!(i&&nt(i,u)>=0||a&&nt(a,u)<0)){var l=n.getShallow(u,t);l!=null&&(o[r[s][0]]=l)}}return o}}var dS=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],pS=Ta(dS),gS=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return pS(this,t,e)},r})(),qg=(function(){function r(t){this.value=t}return r})(),yS=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new qg(t);return this.insertEntry(e),e},r.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),Fa=(function(){function r(t){this._list=new yS,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var u=n.head;n.remove(u),delete i[u.key],a=u.value,this._lastRemovedEntry=u}s?s.value=e:s=new qg(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),Bl=new Fa(50);function mS(r){if(typeof r=="string"){var t=Bl.get(r);return t&&t.image}else return r}function Kg(r,t,e,n,i){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Bl.get(r),o={hostEl:e,cb:n,cbPayload:i};return a?(t=a.image,!Ps(t)&&a.pending.push(o)):(t=Si.loadImage(r,mv,mv),t.__zrImageSrc=r,Bl.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function mv(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],n=e.cb;n&&n(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Ps(r){return r&&r.width&&r.height}function ei(){return[1,0,0,1,0,0]}function sh(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function _S(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function ri(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],u=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=u,r}function Fl(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function uh(r,t,e,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],u=t[3],l=t[5],f=Math.sin(e),h=Math.cos(e);return r[0]=i*h+s*f,r[1]=-i*f+s*h,r[2]=a*h+u*f,r[3]=-a*f+h*u,r[4]=h*(o-n[0])+f*(l-n[1])+n[0],r[5]=h*(l-n[1])-f*(o-n[0])+n[1],r}function SS(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function Rs(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],u=e*o-a*n;return u?(u=1/u,r[0]=o*u,r[1]=-a*u,r[2]=-n*u,r[3]=e*u,r[4]=(n*s-o*i)*u,r[5]=(a*i-e*s)*u,r):null}var X=(function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r})(),Xa=Math.min,Za=Math.max,Vr=new X,Hr=new X,Wr=new X,Ur=new X,Pi=new X,Ri=new X,st=(function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=Xa(t.x,this.x),n=Xa(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Za(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Za(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=ei();return Fl(a,a,[-e.x,-e.y]),SS(a,a,[n,i]),Fl(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,u=t.x,l=t.x+t.width,f=t.y,h=t.y+t.height,c=!(a<u||l<i||s<f||h<o);if(e){var v=1/0,d=0,p=Math.abs(a-u),g=Math.abs(l-i),y=Math.abs(s-f),m=Math.abs(h-o),_=Math.min(p,g),S=Math.min(y,m);a<u||l<i?_>d&&(d=_,p<g?X.set(Ri,-p,0):X.set(Ri,g,0)):_<v&&(v=_,p<g?X.set(Pi,p,0):X.set(Pi,-g,0)),s<f||h<o?S>d&&(d=S,y<m?X.set(Ri,0,-y):X.set(Ri,0,m)):_<v&&(v=_,y<m?X.set(Pi,0,y):X.set(Pi,0,-m))}return e&&X.copy(e,c?Pi:Ri),c},r.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);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];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Vr.x=Wr.x=e.x,Vr.y=Ur.y=e.y,Hr.x=Ur.x=e.x+e.width,Hr.y=Wr.y=e.y+e.height,Vr.transform(n),Ur.transform(n),Hr.transform(n),Wr.transform(n),t.x=Xa(Vr.x,Hr.x,Wr.x,Ur.x),t.y=Xa(Vr.y,Hr.y,Wr.y,Ur.y);var u=Za(Vr.x,Hr.x,Wr.x,Ur.x),l=Za(Vr.y,Hr.y,Wr.y,Ur.y);t.width=u-t.x,t.height=l-t.y},r})(),_v={};function ae(r,t){t=t||mn;var e=_v[t];e||(e=_v[t]=new Fa(500));var n=e.get(r);return n==null&&(n=Si.measureText(r,t).width,e.put(r,n)),n}function Sv(r,t,e,n){var i=ae(r,t),a=lh(t),o=ta(0,i,e),s=Xn(0,a,n),u=new st(o,s,i,a);return u}function Es(r,t,e,n){var i=((r||"")+"").split(`
`),a=i.length;if(a===1)return Sv(i[0],t,e,n);for(var o=new st(0,0,0,0),s=0;s<i.length;s++){var u=Sv(i[s],t,e,n);s===0?o.copy(u):o.union(u)}return o}function ta(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function Xn(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function lh(r){return ae("国",r)}function Rr(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function Jo(r,t,e){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,u=e.x,l=e.y,f="left",h="top";if(n instanceof Array)u+=Rr(n[0],e.width),l+=Rr(n[1],e.height),f=null,h=null;else switch(n){case"left":u-=i,l+=s,f="right",h="middle";break;case"right":u+=i+o,l+=s,h="middle";break;case"top":u+=o/2,l-=i,f="center",h="bottom";break;case"bottom":u+=o/2,l+=a+i,f="center";break;case"inside":u+=o/2,l+=s,f="center",h="middle";break;case"insideLeft":u+=i,l+=s,h="middle";break;case"insideRight":u+=o-i,l+=s,f="right",h="middle";break;case"insideTop":u+=o/2,l+=i,f="center";break;case"insideBottom":u+=o/2,l+=a-i,f="center",h="bottom";break;case"insideTopLeft":u+=i,l+=i;break;case"insideTopRight":u+=o-i,l+=i,f="right";break;case"insideBottomLeft":u+=i,l+=a-i,h="bottom";break;case"insideBottomRight":u+=o-i,l+=a-i,f="right",h="bottom";break}return r=r||{},r.x=u,r.y=l,r.align=f,r.verticalAlign=h,r}var uu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function xS(r,t,e,n,i,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
`);a=Qg(e,n,i,a);for(var s=!1,u={},l=0,f=o.length;l<f;l++)Jg(u,o[l],a),o[l]=u.textLine,s=s||u.isTruncated;r.text=o.join(`
`),r.isTruncated=s}function Qg(r,t,e,n){n=n||{};var i=B({},n);i.font=t,e=j(e,"..."),i.maxIterations=j(n.maxIterations,2);var a=i.minChar=j(n.minChar,0);i.cnCharWidth=ae("国",t);var o=i.ascCharWidth=ae("a",t);i.placeholder=j(n.placeholder,"");for(var s=r=Math.max(0,r-1),u=0;u<a&&s>=o;u++)s-=o;var l=ae(e,t);return l>s&&(e="",l=0),s=r-l,i.ellipsis=e,i.ellipsisWidth=l,i.contentWidth=s,i.containerWidth=r,i}function Jg(r,t,e){var n=e.containerWidth,i=e.font,a=e.contentWidth;if(!n){r.textLine="",r.isTruncated=!1;return}var o=ae(t,i);if(o<=n){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=e.maxIterations){t+=e.ellipsis;break}var u=s===0?wS(t,a,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,u),o=ae(t,i)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function wS(r,t,e,n){for(var i=0,a=0,o=r.length;a<o&&i<t;a++){var s=r.charCodeAt(a);i+=0<=s&&s<=127?e:n}return a}function bS(r,t){r!=null&&(r+="");var e=t.overflow,n=t.padding,i=t.font,a=e==="truncate",o=lh(i),s=j(t.lineHeight,o),u=!!t.backgroundColor,l=t.lineOverflow==="truncate",f=!1,h=t.width,c;h!=null&&(e==="break"||e==="breakAll")?c=r?jg(r,t.font,h,e==="breakAll",0).lines:[]:c=r?r.split(`
`):[];var v=c.length*s,d=j(t.height,v);if(v>d&&l){var p=Math.floor(d/s);f=f||c.length>p,c=c.slice(0,p)}if(r&&a&&h!=null)for(var g=Qg(h,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},m=0;m<c.length;m++)Jg(y,c[m],g),c[m]=y.textLine,f=f||y.isTruncated;for(var _=d,S=0,m=0;m<c.length;m++)S=Math.max(ae(c[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]),u&&(w=h),{lines:c,height:d,outerWidth:w,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:v,width:h,isTruncated:f}}var TS=(function(){function r(){}return r})(),xv=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),CS=(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 MS(r,t){var e=new CS;if(r!=null&&(r+=""),!r)return e;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=uu.lastIndex=0,u;(u=uu.exec(r))!=null;){var l=u.index;l>s&&lu(e,r.substring(s,l),t,o),lu(e,u[2],t,o,u[1]),s=uu.lastIndex}s<r.length&&lu(e,r.substring(s,r.length),t,o);var f=[],h=0,c=0,v=t.padding,d=a==="truncate",p=t.lineOverflow==="truncate",g={};function y(V,H,U){V.width=H,V.lineHeight=U,h+=U,c=Math.max(c,H)}t:for(var m=0;m<e.lines.length;m++){for(var _=e.lines[m],S=0,w=0,x=0;x<_.tokens.length;x++){var b=_.tokens[x],T=b.styleName&&t.rich[b.styleName]||{},C=b.textPadding=T.padding,A=C?C[1]+C[3]:0,D=b.font=T.font||t.font;b.contentHeight=lh(D);var I=j(T.height,b.contentHeight);if(b.innerHeight=I,C&&(I+=C[0]+C[2]),b.height=I,b.lineHeight=ua(T.lineHeight,t.lineHeight,I),b.align=T&&T.align||t.align,b.verticalAlign=T&&T.verticalAlign||"middle",p&&i!=null&&h+b.lineHeight>i){var L=e.lines.length;x>0?(_.tokens=_.tokens.slice(0,x),y(_,w,S),e.lines=e.lines.slice(0,m+1)):e.lines=e.lines.slice(0,m),e.isTruncated=e.isTruncated||e.lines.length<L;break t}var P=T.width,R=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")b.percentWidth=P,f.push(b),b.contentWidth=ae(b.text,D);else{if(R){var E=T.backgroundColor,F=E&&E.image;F&&(F=mS(F),Ps(F)&&(b.width=Math.max(b.width,F.width*I/F.height)))}var k=d&&n!=null?n-w:null;k!=null&&k<b.width?!R||k<A?(b.text="",b.width=b.contentWidth=0):(xS(g,b.text,k-A,D,t.ellipsis,{minChar:t.truncateMinChar}),b.text=g.text,e.isTruncated=e.isTruncated||g.isTruncated,b.width=b.contentWidth=ae(b.text,D)):b.contentWidth=ae(b.text,D)}b.width+=A,w+=b.width,T&&(S=Math.max(S,b.lineHeight))}y(_,w,S)}e.outerWidth=e.width=j(n,c),e.outerHeight=e.height=j(i,h),e.contentHeight=h,e.contentWidth=c,v&&(e.outerWidth+=v[1]+v[3],e.outerHeight+=v[0]+v[2]);for(var m=0;m<f.length;m++){var b=f[m],O=b.percentWidth;b.width=parseInt(O,10)/100*e.width}return e}function lu(r,t,e,n,i){var a=t==="",o=i&&e.rich[i]||{},s=r.lines,u=o.font||e.font,l=!1,f,h;if(n){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Rr(o.width,n.width)+v;s.length>0&&d+n.accumWidth>n.width&&(f=t.split(`
`),l=!0),n.accumWidth=d}else{var p=jg(t,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+v,h=p.linesWidths,f=p.lines}}else f=t.split(`
`);for(var g=0;g<f.length;g++){var y=f[g],m=new TS;if(m.styleName=i,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:ae(y,u),!g&&!l){var _=(s[s.length-1]||(s[0]=new xv)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||a)&&_.push(m)}else s.push(new xv([m]))}}function AS(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var DS=Pr(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function IS(r){return AS(r)?!!DS[r]:!0}function jg(r,t,e,n,i){for(var a=[],o=[],s="",u="",l=0,f=0,h=0;h<r.length;h++){var c=r.charAt(h);if(c===`
`){u&&(s+=u,f+=l),a.push(s),o.push(f),s="",u="",l=0,f=0;continue}var v=ae(c,t),d=n?!1:!IS(c);if(a.length?f+v>e:i+f+v>e){f?(s||u)&&(d?(s||(s=u,u="",l=0,f=l),a.push(s),o.push(f-l),u+=c,l+=v,s="",f=l):(u&&(s+=u,u="",l=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(u),o.push(l),u=c,l=v):(a.push(c),o.push(v));continue}f+=v,d?(u+=c,l+=v):(u&&(s+=u,u="",l=0),s+=c)}return!a.length&&!s&&(s=r,u="",l=0),u&&(s+=u),s&&(a.push(s),o.push(f)),a.length===1&&(f+=i),{accumWidth:f,lines:a,linesWidths:o}}function wi(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function LS(r){return[r[0],r[1]]}function wv(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function PS(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function RS(r){return Math.sqrt(ES(r))}function ES(r){return r[0]*r[0]+r[1]*r[1]}function fu(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function kS(r,t){var e=RS(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function zl(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Gl=zl;function OS(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var ni=OS;function Oo(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function pe(r,t,e){var n=t[0],i=t[1];return r[0]=e[0]*n+e[2]*i+e[4],r[1]=e[1]*n+e[3]*i+e[5],r}function qn(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function Kn(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var bv=sh,Tv=5e-5;function Yr(r){return r>Tv||r<-Tv}var Xr=[],Dn=[],hu=ei(),vu=Math.abs,za=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return r.getLocalTransform(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return Yr(this.rotation)||Yr(this.x)||Yr(this.y)||Yr(this.scaleX-1)||Yr(this.scaleY-1)||Yr(this.skewX)||Yr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;if(!(e||t)){n&&(bv(n),this.invTransform=null);return}n=n||ei(),e?this.getLocalTransform(n):bv(n),t&&(e?ri(n,t,n):_S(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(Xr);var n=Xr[0]<0?-1:1,i=Xr[1]<0?-1:1,a=((Xr[0]-n)*e+n)/Xr[0]||0,o=((Xr[1]-i)*e+i)/Xr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||ei(),Rs(this.invTransform,t)},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||ei(),ri(Dn,t.invTransform,e),e=Dn);var n=this.originX,i=this.originY;(n||i)&&(hu[4]=n,hu[5]=i,ri(Dn,e,hu),Dn[4]-=n,Dn[5]-=i,e=Dn),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&pe(n,n,i),n},r.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&pe(n,n,i),n},r.prototype.getLineScale=function(){var t=this.transform;return t&&vu(t[0]-1)>1e-10&&vu(t[3]-1)>1e-10?Math.sqrt(vu(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){NS(this,t)},r.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,u=t.anchorY,l=t.rotation||0,f=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,v=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||u){var d=n+s,p=i+u;e[4]=-d*a-c*p*o,e[5]=-p*o-v*d*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=v*a,e[2]=c*o,l&&uh(e,e,l),e[4]+=n+f,e[5]+=i+h,e},r.initDefaultProps=(function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),r})(),Ca=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function NS(r,t){for(var e=0;e<Ca.length;e++){var n=Ca[e];r[n]=t[n]}}var fa={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-fa.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?fa.bounceIn(r*2)*.5:fa.bounceOut(r*2-1)*.5+.5}},$a=Math.pow,Dr=Math.sqrt,jo=1e-8,ty=1e-4,Cv=Dr(3),qa=1/3,Be=wi(),ce=wi(),ii=wi();function Mr(r){return r>-jo&&r<jo}function ey(r){return r>jo||r<-jo}function Lt(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function Mv(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function ts(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),u=3*(t-r),l=r-i,f=s*s-3*o*u,h=s*u-9*o*l,c=u*u-3*s*l,v=0;if(Mr(f)&&Mr(h))if(Mr(s))a[0]=0;else{var d=-u/s;d>=0&&d<=1&&(a[v++]=d)}else{var p=h*h-4*f*c;if(Mr(p)){var g=h/f,d=-s/o+g,y=-g/2;d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y)}else if(p>0){var m=Dr(p),_=f*s+1.5*o*(-h+m),S=f*s+1.5*o*(-h-m);_<0?_=-$a(-_,qa):_=$a(_,qa),S<0?S=-$a(-S,qa):S=$a(S,qa);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[v++]=d)}else{var w=(2*f*s-3*o*h)/(2*Dr(f*f*f)),x=Math.acos(w)/3,b=Dr(f),T=Math.cos(x),d=(-s-2*b*T)/(3*o),y=(-s+b*(T+Cv*Math.sin(x)))/(3*o),C=(-s+b*(T-Cv*Math.sin(x)))/(3*o);d>=0&&d<=1&&(a[v++]=d),y>=0&&y<=1&&(a[v++]=y),C>=0&&C<=1&&(a[v++]=C)}}return v}function ry(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,u=0;if(Mr(o)){if(ey(a)){var l=-s/a;l>=0&&l<=1&&(i[u++]=l)}}else{var f=a*a-4*o*s;if(Mr(f))i[0]=-a/(2*o);else if(f>0){var h=Dr(f),l=(-a+h)/(2*o),c=(-a-h)/(2*o);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function Er(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,u=(n-e)*i+e,l=(s-o)*i+o,f=(u-s)*i+s,h=(f-l)*i+l;a[0]=r,a[1]=o,a[2]=l,a[3]=h,a[4]=h,a[5]=f,a[6]=u,a[7]=n}function ny(r,t,e,n,i,a,o,s,u,l,f){var h,c=.005,v=1/0,d,p,g,y;Be[0]=u,Be[1]=l;for(var m=0;m<1;m+=.05)ce[0]=Lt(r,e,i,o,m),ce[1]=Lt(t,n,a,s,m),g=ni(Be,ce),g<v&&(h=m,v=g);v=1/0;for(var _=0;_<32&&!(c<ty);_++)d=h-c,p=h+c,ce[0]=Lt(r,e,i,o,d),ce[1]=Lt(t,n,a,s,d),g=ni(ce,Be),d>=0&&g<v?(h=d,v=g):(ii[0]=Lt(r,e,i,o,p),ii[1]=Lt(t,n,a,s,p),y=ni(ii,Be),p<=1&&y<v?(h=p,v=y):c*=.5);return f&&(f[0]=Lt(r,e,i,o,h),f[1]=Lt(t,n,a,s,h)),Dr(v)}function BS(r,t,e,n,i,a,o,s,u){for(var l=r,f=t,h=0,c=1/u,v=1;v<=u;v++){var d=v*c,p=Lt(r,e,i,o,d),g=Lt(t,n,a,s,d),y=p-l,m=g-f;h+=Math.sqrt(y*y+m*m),l=p,f=g}return h}function Gt(r,t,e,n){var i=1-n;return i*(i*r+2*n*t)+n*n*e}function Av(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function FS(r,t,e,n,i){var a=r-2*t+e,o=2*(t-r),s=r-n,u=0;if(Mr(a)){if(ey(o)){var l=-s/o;l>=0&&l<=1&&(i[u++]=l)}}else{var f=o*o-4*a*s;if(Mr(f)){var l=-o/(2*a);l>=0&&l<=1&&(i[u++]=l)}else if(f>0){var h=Dr(f),l=(-o+h)/(2*a),c=(-o-h)/(2*a);l>=0&&l<=1&&(i[u++]=l),c>=0&&c<=1&&(i[u++]=c)}}return u}function iy(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function es(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function ay(r,t,e,n,i,a,o,s,u){var l,f=.005,h=1/0;Be[0]=o,Be[1]=s;for(var c=0;c<1;c+=.05){ce[0]=Gt(r,e,i,c),ce[1]=Gt(t,n,a,c);var v=ni(Be,ce);v<h&&(l=c,h=v)}h=1/0;for(var d=0;d<32&&!(f<ty);d++){var p=l-f,g=l+f;ce[0]=Gt(r,e,i,p),ce[1]=Gt(t,n,a,p);var v=ni(ce,Be);if(p>=0&&v<h)l=p,h=v;else{ii[0]=Gt(r,e,i,g),ii[1]=Gt(t,n,a,g);var y=ni(ii,Be);g<=1&&y<h?(l=g,h=y):f*=.5}}return u&&(u[0]=Gt(r,e,i,l),u[1]=Gt(t,n,a,l)),Dr(h)}function zS(r,t,e,n,i,a,o){for(var s=r,u=t,l=0,f=1/o,h=1;h<=o;h++){var c=h*f,v=Gt(r,e,i,c),d=Gt(t,n,a,c),p=v-s,g=d-u;l+=Math.sqrt(p*p+g*g),s=v,u=d}return l}var GS=/cubic-bezier\(([0-9,\.e ]+)\)/;function oy(r){var t=r&&GS.exec(r);if(t){var e=t[1].split(","),n=+ze(e[0]),i=+ze(e[1]),a=+ze(e[2]),o=+ze(e[3]);if(isNaN(n+i+a+o))return;var s=[];return function(u){return u<=0?0:u>=1?1:ts(0,n,a,1,u,s)&&Lt(0,i,o,1,s[0])}}}var VS=(function(){function r(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Xt,this.ondestroy=t.ondestroy||Xt,this.onrestart=t.onrestart||Xt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-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 u=i%n;this._startTime=t-u,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(t){this.easing=t,this.easingFunc=q(t)?t:fa[t]||oy(t)},r})(),Dv={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 Ir(r){return r=Math.round(r),r<0?0:r>255?255:r}function Vl(r){return r<0?0:r>1?1:r}function cu(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Ir(parseFloat(t)/100*255):Ir(parseInt(t,10))}function ha(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Vl(parseFloat(t)/100):Vl(parseFloat(t))}function du(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function Ka(r,t,e){return r+(t-r)*e}function le(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function Hl(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var sy=new Fa(20),Qa=null;function In(r,t){Qa&&Hl(Qa,t),Qa=sy.put(r,Qa||t.slice())}function or(r,t){if(r){t=t||[];var e=sy.get(r);if(e)return Hl(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in Dv)return Hl(t,Dv[n]),In(r,t),t;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)){le(t,0,0,0,1);return}return le(t,(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),In(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){le(t,0,0,0,1);return}return le(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),In(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var u=n.substr(0,o),l=n.substr(o+1,s-(o+1)).split(","),f=1;switch(u){case"rgba":if(l.length!==4)return l.length===3?le(t,+l[0],+l[1],+l[2],1):le(t,0,0,0,1);f=ha(l.pop());case"rgb":if(l.length>=3)return le(t,cu(l[0]),cu(l[1]),cu(l[2]),l.length===3?f:ha(l[3])),In(r,t),t;le(t,0,0,0,1);return;case"hsla":if(l.length!==4){le(t,0,0,0,1);return}return l[3]=ha(l[3]),Iv(l,t),In(r,t),t;case"hsl":if(l.length!==3){le(t,0,0,0,1);return}return Iv(l,t),In(r,t),t;default:return}}le(t,0,0,0,1)}}function Iv(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=ha(r[1]),i=ha(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],le(t,Ir(du(o,a,e+1/3)*255),Ir(du(o,a,e)*255),Ir(du(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function Lv(r,t){var e=or(r);if(e){for(var n=0;n<3;n++)e[n]=e[n]*(1-t)|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return ks(e,e.length===4?"rgba":"rgb")}}function HS(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=or(t[i]),s=or(t[a]),u=n-i,l=ks([Ir(Ka(o[0],s[0],u)),Ir(Ka(o[1],s[1],u)),Ir(Ka(o[2],s[2],u)),Vl(Ka(o[3],s[3],u))],"rgba");return e?{color:l,leftIndex:i,rightIndex:a,value:n}:l}}function ks(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function rs(r,t){var e=or(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}var Pv=new Fa(100);function Rv(r){if(W(r)){var t=Pv.get(r);return t||(t=Lv(r,-.1),Pv.put(r,t)),t}else if(Ds(r)){var e=B({},r);return e.colorStops=G(r.colorStops,function(n){return{offset:n.offset,color:Lv(n.color,-.1)}}),e}return r}function WS(r){return r.type==="linear"}function US(r){return r.type==="radial"}(function(){return Q.hasGlobalWindow&&q(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}})();var Wl=Array.prototype.slice;function er(r,t,e){return(t-r)*e+r}function pu(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=er(t[a],e[a],n);return r}function YS(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=er(t[o][s],e[o][s],n)}return r}function Ja(r,t,e,n){for(var i=t.length,a=0;a<i;a++)r[a]=t[a]+e[a]*n;return r}function Ev(r,t,e,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*n}return r}function XS(r,t){for(var e=r.length,n=t.length,i=e>n?t:r,a=Math.min(e,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function ZS(r,t,e){var n=r,i=t;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 u=a;u<o;u++)n.push(e===1?i[u]:Wl.call(i[u]))}for(var l=n[0]&&n[0].length,u=0;u<n.length;u++)if(e===1)isNaN(n[u])&&(n[u]=i[u]);else for(var f=0;f<l;f++)isNaN(n[u][f])&&(n[u][f]=i[u][f])}}function No(r){if(Zt(r)){var t=r.length;if(Zt(r[0])){for(var e=[],n=0;n<t;n++)e.push(Wl.call(r[n]));return e}return Wl.call(r)}return r}function Bo(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 $S(r){return Zt(r&&r[0])?2:1}var ja=0,Fo=1,uy=2,ea=3,Ul=4,Yl=5,kv=6;function Ov(r){return r===Ul||r===Yl}function to(r){return r===Fo||r===uy}var Ei=[0,0,0,0],qS=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=kv,u=e;if(Zt(e)){var l=$S(e);s=l,(l===1&&!vt(e[0])||l===2&&!vt(e[0][0]))&&(o=!0)}else if(vt(e)&&!Ko(e))s=ja;else if(W(e))if(!isNaN(+e))s=ja;else{var f=or(e);f&&(u=f,s=ea)}else if(Ds(e)){var h=B({},u);h.colorStops=G(e.colorStops,function(v){return{offset:v.offset,color:or(v.color)}}),WS(e)?s=Ul:US(e)&&(s=Yl),u=h}a===0?this.valType=s:(s!==this.valType||s===kv)&&(o=!0),this.discrete=this.discrete||o;var c={time:t,value:u,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=q(n)?n:fa[n]||oy(n)),i.push(c),c},r.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(p,g){return p.time-g.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,u=to(i),l=Ov(i),f=0;f<a;f++){var h=n[f],c=h.value,v=o.value;h.percent=h.time/t,s||(u&&f!==a-1?ZS(c,v,i):l&&XS(c.colorStops,v.colorStops))}if(!s&&i!==Yl&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var d=n[0].value,f=0;f<a;f++)i===ja?n[f].additiveValue=n[f].value-d:i===ea?n[f].additiveValue=Ja([],n[f].value,d,-1):to(i)&&(n[f].additiveValue=i===Fo?Ja([],n[f].value,d,-1):Ev([],n[f].value,d,-1))}},r.prototype.step=function(t,e){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,u=this.propName,l=a===ea,f,h=this._lastFr,c=Math.min,v,d;if(s===1)v=d=o[0];else{if(e<0)f=0;else if(e<this._lastFrP){var p=c(h+1,s-1);for(f=p;f>=0&&!(o[f].percent<=e);f--);f=c(f,s-2)}else{for(f=h;f<s&&!(o[f].percent>e);f++);f=c(f-1,s-2)}d=o[f+1],v=o[f]}if(v&&d){this._lastFr=f,this._lastFrP=e;var g=d.percent-v.percent,y=g===0?1:c((e-v.percent)/g,1);d.easingFunc&&(y=d.easingFunc(y));var m=n?this._additiveValue:l?Ei:t[u];if((to(a)||l)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=y<1?v.rawValue:d.rawValue;else if(to(a))a===Fo?pu(m,v[i],d[i],y):YS(m,v[i],d[i],y);else if(Ov(a)){var _=v[i],S=d[i],w=a===Ul;t[u]={type:w?"linear":"radial",x:er(_.x,S.x,y),y:er(_.y,S.y,y),colorStops:G(_.colorStops,function(b,T){var C=S.colorStops[T];return{offset:er(b.offset,C.offset,y),color:Bo(pu([],b.color,C.color,y))}}),global:S.global},w?(t[u].x2=er(_.x2,S.x2,y),t[u].y2=er(_.y2,S.y2,y)):t[u].r=er(_.r,S.r,y)}else if(l)pu(m,v[i],d[i],y),n||(t[u]=Bo(m));else{var x=er(v[i],d[i],y);n?this._additiveValue=x:t[u]=x}n&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===ja?t[n]=t[n]+i:e===ea?(or(t[n],Ei),Ja(Ei,Ei,i,1),t[n]=Bo(Ei)):e===Fo?Ja(t[n],t[n],i,1):e===uy&&Ev(t[n],t[n],i,1)},r})(),fh=(function(){function r(t,e,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i){ih("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(t){this._target=t},r.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,yt(e),n)},r.prototype.whenWithKeys=function(t,e,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],u=a[s];if(!u){u=a[s]=new qS(s);var l=void 0,f=this._getAdditiveTrack(s);if(f){var h=f.keyframes,c=h[h.length-1];l=c&&c.value,f.valType===ea&&l&&(l=Bo(l))}else l=this._target[s];if(l==null)continue;t>0&&u.addKeyframe(0,No(l),i),this._trackKeys.push(s)}u.addKeyframe(t,No(e[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var a=n[i].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],u=this._getAdditiveTrack(o),l=s.keyframes,f=l.length;if(s.prepare(i,u),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var h=l[f-1];h&&(e._target[s.propName]=h.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var c=new VS({life:i,loop:this._loop,delay:this._delay||0,onframe:function(v){e._started=2;var d=e._additiveAnimators;if(d){for(var p=!1,g=0;g<d.length;g++)if(d[g]._clip){p=!0;break}p||(e._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(e._target,v);var y=e._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](e._target,v)},ondestroy:function(){e._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&c.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return G(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var a=e[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,u=s[n?0:s.length-1];u&&(t[a]=No(u.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||yt(t);for(var n=0;n<e.length;n++){var i=e[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})(),Ie=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var u={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=a[t].length-1,f=a[t][l];return f&&f.callAtLast?a[t].splice(l,0,u):a[t].push(u),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==e&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=i.length,u=0;u<s;u++){var l=i[u];if(!(a&&a.filter&&l.query!=null&&!a.filter(t,l.query)))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=e[o-1],u=i.length,l=0;l<u;l++){var f=i[l];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),ly=1;Q.hasGlobalWindow&&(ly=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ns=ly,Xl=.4,Zl="#333",$l="#ccc",KS="#eee",ie=1,ra=2,Zn=4,gu="__zr_normal__",yu=Ca.concat(["ignore"]),QS=Pr(Ca,function(r,t){return r[t]=!0,r},{ignore:!1}),Ln={},JS=new st(0,0,0,0),Os=(function(){function r(t){this.id=Hg(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=e.innerTransformable,o=void 0,s=void 0,u=!1;a.parent=i?this:null;var l=!1;if(a.copyTransform(e),n.position!=null){var f=JS;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ln,n,f):Jo(Ln,n,f),a.x=Ln.x,a.y=Ln.y,o=Ln.align,s=Ln.verticalAlign;var h=n.origin;if(h&&n.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=Rr(h[0],f.width),v=Rr(h[1],f.height)),l=!0,a.originX=-a.x+c+(i?0:f.x),a.originY=-a.y+v+(i?0:f.y)}}n.rotation!=null&&(a.rotation=n.rotation);var d=n.offset;d&&(a.x+=d[0],a.y+=d[1],l||(a.originX=-d[0],a.originY=-d[1]));var p=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;p&&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)&&(u=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=ie,u&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?$l:Zl},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n=typeof e=="string"&&or(e);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,ks(n,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},B(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Y(t))for(var n=t,i=yt(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==gu)){var o=i.targetName,s=o?e[o]:e;i.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,yu)},r.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(gu,!1,t)},r.prototype.useState=function(t,e,n,i){var a=t===gu,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,u=this.stateTransition;if(!(nt(s,t)>=0&&(e||s.length===1))){var l;if(this.stateProxy&&!a&&(l=this.stateProxy(t)),l||(l=this.states&&this.states[t]),!l&&!a){ih("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(l);var f=!!(l&&l.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,l,this._normalState,e,!n&&!this.__inHover&&u&&u.duration>0,u);var h=this._textContent,c=this._textGuide;return h&&h.useState(t,e,n,f),c&&c.useState(t,e,n,f),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ie),l}}},r.prototype.useStates=function(t,e,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var u=0;u<o;u++)if(t[u]!==a[u]){s=!1;break}}if(s)return;for(var u=0;u<o;u++){var l=t[u],f=void 0;this.stateProxy&&(f=this.stateProxy(l,t)),f||(f=this.states[l]),f&&i.push(f)}var h=i[o-1],c=!!(h&&h.hoverLayer||n);c&&this._toggleHoverLayerFlag(!0);var v=this._mergeStates(i),d=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,!e&&!this.__inHover&&d&&d.duration>0,d);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ie)}},r.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=nt(this.currentStates,t);if(e>=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},r.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),a=nt(i,t),o=nt(i,e)>=0;a>=0?o?i.splice(a,1):i[a]=e:n&&!o&&i.push(e),this.useStates(i)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},n,i=0;i<t.length;i++){var a=t[i];B(e,a),a.textConfig&&(n=n||{},B(n,a.textConfig))}return n&&(e.textConfig=n),e},r.prototype._applyStateObj=function(t,e,n,i,a,o){var s=!(e&&i);e&&e.textConfig?(this.textConfig=B({},i?this.textConfig:n.textConfig),B(this.textConfig,e.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var u={},l=!1,f=0;f<yu.length;f++){var h=yu[f],c=a&&QS[h];e&&e[h]!=null?c?(l=!0,u[h]=e[h]):this[h]=e[h]:s&&n[h]!=null&&(c?(l=!0,u[h]=n[h]):this[h]=n[h])}if(!a)for(var f=0;f<this.animators.length;f++){var v=this.animators[f],d=v.targetName;v.getLoop()||v.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,u,o)},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new za,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),B(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=ie;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,n){var i=t?this[t]:this,a=new fh(i,e,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(e)}).done(function(){var a=i.animators,o=nt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,n){mu(this,t,e,n)},r.prototype.animateFrom=function(t,e,n){mu(this,t,e,n,!0)},r.prototype._transitionState=function(t,e,n,i){for(var a=mu(this,e,n,i),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=ie;function e(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var u=this[i]=[];s(this,u)}return this[i]},set:function(u){this[a]=u[0],this[o]=u[1],this[i]=u,s(this,u)}});function s(u,l){Object.defineProperty(l,0,{get:function(){return u[a]},set:function(f){u[a]=f}}),Object.defineProperty(l,1,{get:function(){return u[o]},set:function(f){u[o]=f}})}}Object.defineProperty&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))})(),r})();De(Os,Ie);De(Os,za);function mu(r,t,e,n,i){e=e||{};var a=[];fy(r,"",r,t,e,n,a,i);var o=a.length,s=!1,u=e.done,l=e.aborted,f=function(){s=!0,o--,o<=0&&(s?u&&u():l&&l())},h=function(){o--,o<=0&&(s?u&&u():l&&l())};o||u&&u(),a.length>0&&e.during&&a[0].during(function(d,p){e.during(p)});for(var c=0;c<a.length;c++){var v=a[c];f&&v.done(f),h&&v.aborted(h),e.force&&v.duration(e.duration),v.start(e.easing)}return a}function _u(r,t,e){for(var n=0;n<e;n++)r[n]=t[n]}function jS(r){return Zt(r[0])}function tx(r,t,e){if(Zt(t[e]))if(Zt(r[e])||(r[e]=[]),ne(t[e])){var n=t[e].length;r[e].length!==n&&(r[e]=new t[e].constructor(n),_u(r[e],t[e],n))}else{var i=t[e],a=r[e],o=i.length;if(jS(i))for(var s=i[0].length,u=0;u<o;u++)a[u]?_u(a[u],i[u],s):a[u]=Array.prototype.slice.call(i[u]);else _u(a,i,o);a.length=i.length}else r[e]=t[e]}function ex(r,t){return r===t||Zt(r)&&Zt(t)&&rx(r,t)}function rx(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++)if(r[n]!==t[n])return!1;return!0}function fy(r,t,e,n,i,a,o,s){for(var u=yt(n),l=i.duration,f=i.delay,h=i.additive,c=i.setToFinal,v=!Y(a),d=r.animators,p=[],g=0;g<u.length;g++){var y=u[g],m=n[y];if(m!=null&&e[y]!=null&&(v||a[y]))if(Y(m)&&!Zt(m)&&!Ds(m)){if(t){s||(e[y]=m,r.updateDuringAnimation(t));continue}fy(r,y,e[y],m,i,a&&a[y],o,s)}else p.push(y);else s||(e[y]=m,r.updateDuringAnimation(t),p.push(y))}var _=p.length;if(!h&&_)for(var S=0;S<d.length;S++){var w=d[S];if(w.targetName===t){var x=w.stopTracks(p);if(x){var b=nt(d,w);d.splice(b,1)}}}if(i.force||(p=xt(p,function(D){return!ex(n[D],e[D])}),_=p.length),_>0||i.force&&!o.length){var T=void 0,C=void 0,A=void 0;if(s){C={},c&&(T={});for(var S=0;S<_;S++){var y=p[S];C[y]=e[y],c?T[y]=n[y]:e[y]=n[y]}}else if(c){A={};for(var S=0;S<_;S++){var y=p[S];A[y]=No(e[y]),tx(e,n,y)}}var w=new fh(e,!1,!1,h?xt(d,function(I){return I.targetName===t}):null);w.targetName=t,i.scope&&(w.scope=i.scope),c&&T&&w.whenWithKeys(0,T,p),A&&w.whenWithKeys(0,A,p),w.whenWithKeys(l??500,s?C:n,p).delay(f||0),r.addAnimator(w,t),o.push(w)}}var ql="__zr_style_"+Math.round(Math.random()*10),pn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ns={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};pn[ql]=!0;var Nv=["z","z2","invisible"],nx=["invisible"],bi=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var n=yt(e),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,n,i,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&ix(this,e,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 u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},t.prototype.contain=function(e,n){return this.rectContain(e,n)},t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.rectContain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect();return a.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var e=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,u=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new st(0,0,0,0)),n?st.applyTransform(e,i,n):e.copy(i),(o||s||u)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(u),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+u-o));var l=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-l),e.y=Math.floor(e.y-l),e.width=Math.ceil(e.width+1+l*2),e.height=Math.ceil(e.height+1+l*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new st(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,n){e!=="style"?r.prototype.attrKV.call(this,e,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(e,n){return typeof e=="string"?this.style[e]=n:B(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=ra,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&ra)},t.prototype.styleUpdated=function(){this.__dirty&=~ra},t.prototype.createStyle=function(e){return Is(pn,e)},t.prototype.useStyle=function(e){e[ql]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[ql]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,n,Nv)},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.style?o?a?l=n.style:(l=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(l,n.style)):(l=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(l,n.style)):u&&(l=i.style),l)if(o){var f=this.style;if(this.style=this.createStyle(u?{}:f),u)for(var h=yt(f),c=0;c<h.length;c++){var v=h[c];v in l&&(l[v]=l[v],this.style[v]=f[v])}for(var d=yt(l),c=0;c<d.length;c++){var v=d[c];this.style[v]=this.style[v]}this._transitionState(e,{style:l},s,this.getAnimationStyleProps())}else this.useStyle(l);for(var p=this.__inHover?nx:Nv,c=0;c<p.length;c++){var v=p[c];n&&n[v]!=null?this[v]=n[v]:u&&i[v]!=null&&(this[v]=i[v])}},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(e,n){return B(e,n),e},t.prototype.getAnimationStyleProps=function(){return Ns},t.initDefaultProps=(function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=ie|ra})(),t})(Os),Su=new st(0,0,0,0),xu=new st(0,0,0,0);function ix(r,t,e){return Su.copy(r.getBoundingRect()),r.transform&&Su.applyTransform(r.transform),xu.width=t,xu.height=e,!Su.intersect(xu)}var jt=Math.min,te=Math.max,wu=Math.sin,bu=Math.cos,Zr=Math.PI*2,eo=wi(),ro=wi(),no=wi();function hy(r,t,e){if(r.length!==0){for(var n=r[0],i=n[0],a=n[0],o=n[1],s=n[1],u=1;u<r.length;u++)n=r[u],i=jt(i,n[0]),a=te(a,n[0]),o=jt(o,n[1]),s=te(s,n[1]);t[0]=i,t[1]=o,e[0]=a,e[1]=s}}function Bv(r,t,e,n,i,a){i[0]=jt(r,e),i[1]=jt(t,n),a[0]=te(r,e),a[1]=te(t,n)}var Fv=[],zv=[];function ax(r,t,e,n,i,a,o,s,u,l){var f=ry,h=Lt,c=f(r,e,i,o,Fv);u[0]=1/0,u[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var v=0;v<c;v++){var d=h(r,e,i,o,Fv[v]);u[0]=jt(d,u[0]),l[0]=te(d,l[0])}c=f(t,n,a,s,zv);for(var v=0;v<c;v++){var p=h(t,n,a,s,zv[v]);u[1]=jt(p,u[1]),l[1]=te(p,l[1])}u[0]=jt(r,u[0]),l[0]=te(r,l[0]),u[0]=jt(o,u[0]),l[0]=te(o,l[0]),u[1]=jt(t,u[1]),l[1]=te(t,l[1]),u[1]=jt(s,u[1]),l[1]=te(s,l[1])}function ox(r,t,e,n,i,a,o,s){var u=iy,l=Gt,f=te(jt(u(r,e,i),1),0),h=te(jt(u(t,n,a),1),0),c=l(r,e,i,f),v=l(t,n,a,h);o[0]=jt(r,i,c),o[1]=jt(t,a,v),s[0]=te(r,i,c),s[1]=te(t,a,v)}function sx(r,t,e,n,i,a,o,s,u){var l=qn,f=Kn,h=Math.abs(i-a);if(h%Zr<1e-4&&h>1e-4){s[0]=r-e,s[1]=t-n,u[0]=r+e,u[1]=t+n;return}if(eo[0]=bu(i)*e+r,eo[1]=wu(i)*n+t,ro[0]=bu(a)*e+r,ro[1]=wu(a)*n+t,l(s,eo,ro),f(u,eo,ro),i=i%Zr,i<0&&(i=i+Zr),a=a%Zr,a<0&&(a=a+Zr),i>a&&!o?a+=Zr:i<a&&o&&(i+=Zr),o){var c=a;a=i,i=c}for(var v=0;v<a;v+=Math.PI/2)v>i&&(no[0]=bu(v)*e+r,no[1]=wu(v)*n+t,l(s,no,s),f(u,no,u))}var dt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$r=[],qr=[],Re=[],cr=[],Ee=[],ke=[],Tu=Math.min,Cu=Math.max,Kr=Math.cos,Qr=Math.sin,Je=Math.abs,Kl=Math.PI,wr=Kl*2,Mu=typeof Float32Array<"u",ki=[];function Au(r){var t=Math.round(r/Kl*1e8)/1e8;return t%2*Kl}function vy(r,t){var e=Au(r[0]);e<0&&(e+=wr);var n=e-r[0],i=r[1];i+=n,!t&&i-e>=wr?i=e+wr:t&&e-i>=wr?i=e-wr:!t&&e>i?i=e+(wr-Au(e-i)):t&&e<i&&(i=e-(wr-Au(i-e))),r[0]=e,r[1]=i}var ur=(function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,n){n=n||0,n>0&&(this._ux=Je(n/ns/t)||0,this._uy=Je(n/ns/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(dt.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=Je(t-this._xi),i=Je(e-this._yi),a=n>this._ux||i>this._uy;if(this.addData(dt.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,n,i,a,o){return this._drawPendingPt(),this.addData(dt.C,t,e,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(dt.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,a,o){this._drawPendingPt(),ki[0]=i,ki[1]=a,vy(ki,o),i=ki[0],a=ki[1];var s=a-i;return this.addData(dt.A,t,e,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,a,o),this._xi=Kr(a)*n+t,this._yi=Qr(a)*n+e,this},r.prototype.arcTo=function(t,e,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,a),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(dt.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(dt.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){var e=t.length;!(this.data&&this.data.length===e)&&Mu&&(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},r.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,a=0;a<e;a++)n+=t[a].len();Mu&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<e;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},r.prototype.addData=function(t,e,n,i,a,o,s,u,l){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var h=0;h<arguments.length;h++)f[this._len++]=arguments[h]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Mu&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){Re[0]=Re[1]=Ee[0]=Ee[1]=Number.MAX_VALUE,cr[0]=cr[1]=ke[0]=ke[1]=-Number.MAX_VALUE;var t=this.data,e=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],u=o===1;switch(u&&(e=t[o],n=t[o+1],i=e,a=n),s){case dt.M:e=i=t[o++],n=a=t[o++],Ee[0]=i,Ee[1]=a,ke[0]=i,ke[1]=a;break;case dt.L:Bv(e,n,t[o],t[o+1],Ee,ke),e=t[o++],n=t[o++];break;case dt.C:ax(e,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],Ee,ke),e=t[o++],n=t[o++];break;case dt.Q:ox(e,n,t[o++],t[o++],t[o],t[o+1],Ee,ke),e=t[o++],n=t[o++];break;case dt.A:var l=t[o++],f=t[o++],h=t[o++],c=t[o++],v=t[o++],d=t[o++]+v;o+=1;var p=!t[o++];u&&(i=Kr(v)*h+l,a=Qr(v)*c+f),sx(l,f,h,c,v,d,p,Ee,ke),e=Kr(d)*h+l,n=Qr(d)*c+f;break;case dt.R:i=e=t[o++],a=n=t[o++];var g=t[o++],y=t[o++];Bv(i,a,i+g,a+y,Ee,ke);break;case dt.Z:e=i,n=a;break}qn(Re,Re,Ee),Kn(cr,cr,ke)}return o===0&&(Re[0]=Re[1]=cr[0]=cr[1]=0),new st(Re[0],Re[1],cr[0]-Re[0],cr[1]-Re[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,f=0,h=0,c=0;c<e;){var v=t[c++],d=c===1;d&&(a=t[c],o=t[c+1],s=a,u=o);var p=-1;switch(v){case dt.M:a=s=t[c++],o=u=t[c++];break;case dt.L:{var g=t[c++],y=t[c++],m=g-a,_=y-o;(Je(m)>n||Je(_)>i||c===e-1)&&(p=Math.sqrt(m*m+_*_),a=g,o=y);break}case dt.C:{var S=t[c++],w=t[c++],g=t[c++],y=t[c++],x=t[c++],b=t[c++];p=BS(a,o,S,w,g,y,x,b,10),a=x,o=b;break}case dt.Q:{var S=t[c++],w=t[c++],g=t[c++],y=t[c++];p=zS(a,o,S,w,g,y,10),a=g,o=y;break}case dt.A:var T=t[c++],C=t[c++],A=t[c++],D=t[c++],I=t[c++],L=t[c++],P=L+I;c+=1,d&&(s=Kr(I)*A+T,u=Qr(I)*D+C),p=Cu(A,D)*Tu(wr,Math.abs(L)),a=Kr(P)*A+T,o=Qr(P)*D+C;break;case dt.R:{s=a=t[c++],u=o=t[c++];var R=t[c++],E=t[c++];p=R*2+E*2;break}case dt.Z:{var m=s-a,_=u-o;p=Math.sqrt(m*m+_*_),a=s,o=u;break}}p>=0&&(l[h++]=p,f+=p)}return this._pathLen=f,f},r.prototype.rebuildPath=function(t,e){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,u,l,f,h,c,v=e<1,d,p,g=0,y=0,m,_=0,S,w;if(!(v&&(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,p=this._pathLen,m=e*p,!m)))t:for(var x=0;x<o;){var b=n[x++],T=x===1;switch(T&&(l=n[x],f=n[x+1],s=l,u=f),b!==dt.L&&_>0&&(t.lineTo(S,w),_=0),b){case dt.M:s=l=n[x++],u=f=n[x++],t.moveTo(l,f);break;case dt.L:{h=n[x++],c=n[x++];var C=Je(h-l),A=Je(c-f);if(C>i||A>a){if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(l*(1-I)+h*I,f*(1-I)+c*I);break t}g+=D}t.lineTo(h,c),l=h,f=c,_=0}else{var L=C*C+A*A;L>_&&(S=h,w=c,_=L)}break}case dt.C:{var P=n[x++],R=n[x++],E=n[x++],F=n[x++],k=n[x++],O=n[x++];if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;Er(l,P,E,k,I,$r),Er(f,R,F,O,I,qr),t.bezierCurveTo($r[1],qr[1],$r[2],qr[2],$r[3],qr[3]);break t}g+=D}t.bezierCurveTo(P,R,E,F,k,O),l=k,f=O;break}case dt.Q:{var P=n[x++],R=n[x++],E=n[x++],F=n[x++];if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;es(l,P,E,I,$r),es(f,R,F,I,qr),t.quadraticCurveTo($r[1],qr[1],$r[2],qr[2]);break t}g+=D}t.quadraticCurveTo(P,R,E,F),l=E,f=F;break}case dt.A:var V=n[x++],H=n[x++],U=n[x++],et=n[x++],ut=n[x++],ct=n[x++],Ot=n[x++],Kt=!n[x++],Nt=U>et?U:et,At=Je(U-et)>.001,_t=ut+ct,$=!1;if(v){var D=d[y++];g+D>m&&(_t=ut+ct*(m-g)/D,$=!0),g+=D}if(At&&t.ellipse?t.ellipse(V,H,U,et,Ot,ut,_t,Kt):t.arc(V,H,Nt,ut,_t,Kt),$)break t;T&&(s=Kr(ut)*U+V,u=Qr(ut)*et+H),l=Kr(_t)*U+V,f=Qr(_t)*et+H;break;case dt.R:s=l=n[x],u=f=n[x+1],h=n[x++],c=n[x++];var rt=n[x++],Pe=n[x++];if(v){var D=d[y++];if(g+D>m){var Rt=m-g;t.moveTo(h,c),t.lineTo(h+Tu(Rt,rt),c),Rt-=rt,Rt>0&&t.lineTo(h+rt,c+Tu(Rt,Pe)),Rt-=Pe,Rt>0&&t.lineTo(h+Cu(rt-Rt,0),c+Pe),Rt-=rt,Rt>0&&t.lineTo(h,c+Cu(Pe-Rt,0));break t}g+=D}t.rect(h,c,rt,Pe);break;case dt.Z:if(v){var D=d[y++];if(g+D>m){var I=(m-g)/D;t.lineTo(l*(1-I)+s*I,f*(1-I)+u*I);break t}g+=D}t.closePath(),l=s,f=u}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.CMD=dt,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})();function Pn(r,t,e,n,i,a,o){if(i===0)return!1;var s=i,u=0,l=r;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)u=(t-n)/(r-e),l=(r*n-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var f=u*a-o+l,h=f*f/(u*u+1);return h<=s/2*s/2}function ux(r,t,e,n,i,a,o,s,u,l,f){if(u===0)return!1;var h=u;if(f>t+h&&f>n+h&&f>a+h&&f>s+h||f<t-h&&f<n-h&&f<a-h&&f<s-h||l>r+h&&l>e+h&&l>i+h&&l>o+h||l<r-h&&l<e-h&&l<i-h&&l<o-h)return!1;var c=ny(r,t,e,n,i,a,o,s,l,f,null);return c<=h/2}function lx(r,t,e,n,i,a,o,s,u){if(o===0)return!1;var l=o;if(u>t+l&&u>n+l&&u>a+l||u<t-l&&u<n-l&&u<a-l||s>r+l&&s>e+l&&s>i+l||s<r-l&&s<e-l&&s<i-l)return!1;var f=ay(r,t,e,n,i,a,s,u,null);return f<=l/2}var Gv=Math.PI*2;function rr(r){return r%=Gv,r<0&&(r+=Gv),r}var Oi=Math.PI*2;function fx(r,t,e,n,i,a,o,s,u){if(o===0)return!1;var l=o;s-=r,u-=t;var f=Math.sqrt(s*s+u*u);if(f-l>e||f+l<e)return!1;if(Math.abs(n-i)%Oi<1e-4)return!0;if(a){var h=n;n=rr(i),i=rr(h)}else n=rr(n),i=rr(i);n>i&&(i+=Oi);var c=Math.atan2(u,s);return c<0&&(c+=Oi),c>=n&&c<=i||c+Oi>=n&&c+Oi<=i}function Jr(r,t,e,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var u=o*(e-r)+r;return u===i?1/0:u>i?s:0}var dr=ur.CMD,jr=Math.PI*2,hx=1e-4;function vx(r,t){return Math.abs(r-t)<hx}var Wt=[-1,-1,-1],ve=[-1,-1];function cx(){var r=ve[0];ve[0]=ve[1],ve[1]=r}function dx(r,t,e,n,i,a,o,s,u,l){if(l>t&&l>n&&l>a&&l>s||l<t&&l<n&&l<a&&l<s)return 0;var f=ts(t,n,a,s,l,Wt);if(f===0)return 0;for(var h=0,c=-1,v=void 0,d=void 0,p=0;p<f;p++){var g=Wt[p],y=g===0||g===1?.5:1,m=Lt(r,e,i,o,g);m<u||(c<0&&(c=ry(t,n,a,s,ve),ve[1]<ve[0]&&c>1&&cx(),v=Lt(t,n,a,s,ve[0]),c>1&&(d=Lt(t,n,a,s,ve[1]))),c===2?g<ve[0]?h+=v<t?y:-y:g<ve[1]?h+=d<v?y:-y:h+=s<d?y:-y:g<ve[0]?h+=v<t?y:-y:h+=s<v?y:-y)}return h}function px(r,t,e,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var u=FS(t,n,a,s,Wt);if(u===0)return 0;var l=iy(t,n,a);if(l>=0&&l<=1){for(var f=0,h=Gt(t,n,a,l),c=0;c<u;c++){var v=Wt[c]===0||Wt[c]===1?.5:1,d=Gt(r,e,i,Wt[c]);d<o||(Wt[c]<l?f+=h<t?v:-v:f+=a<h?v:-v)}return f}else{var v=Wt[0]===0||Wt[0]===1?.5:1,d=Gt(r,e,i,Wt[0]);return d<o?0:a<t?v:-v}}function gx(r,t,e,n,i,a,o,s){if(s-=t,s>e||s<-e)return 0;var u=Math.sqrt(e*e-s*s);Wt[0]=-u,Wt[1]=u;var l=Math.abs(n-i);if(l<1e-4)return 0;if(l>=jr-1e-4){n=0,i=jr;var f=a?1:-1;return o>=Wt[0]+r&&o<=Wt[1]+r?f:0}if(n>i){var h=n;n=i,i=h}n<0&&(n+=jr,i+=jr);for(var c=0,v=0;v<2;v++){var d=Wt[v];if(d+r>o){var p=Math.atan2(s,d),f=a?1:-1;p<0&&(p=jr+p),(p>=n&&p<=i||p+jr>=n&&p+jr<=i)&&(p>Math.PI/2&&p<Math.PI*1.5&&(f=-f),c+=f)}}return c}function cy(r,t,e,n,i){for(var a=r.data,o=r.len(),s=0,u=0,l=0,f=0,h=0,c,v,d=0;d<o;){var p=a[d++],g=d===1;switch(p===dr.M&&d>1&&(e||(s+=Jr(u,l,f,h,n,i))),g&&(u=a[d],l=a[d+1],f=u,h=l),p){case dr.M:f=a[d++],h=a[d++],u=f,l=h;break;case dr.L:if(e){if(Pn(u,l,a[d],a[d+1],t,n,i))return!0}else s+=Jr(u,l,a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case dr.C:if(e){if(ux(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=dx(u,l,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case dr.Q:if(e){if(lx(u,l,a[d++],a[d++],a[d],a[d+1],t,n,i))return!0}else s+=px(u,l,a[d++],a[d++],a[d],a[d+1],n,i)||0;u=a[d++],l=a[d++];break;case dr.A:var y=a[d++],m=a[d++],_=a[d++],S=a[d++],w=a[d++],x=a[d++];d+=1;var b=!!(1-a[d++]);c=Math.cos(w)*_+y,v=Math.sin(w)*S+m,g?(f=c,h=v):s+=Jr(u,l,c,v,n,i);var T=(n-y)*S/_+y;if(e){if(fx(y,m,S,w,w+x,b,t,T,i))return!0}else s+=gx(y,m,S,w,w+x,b,T,i);u=Math.cos(w+x)*_+y,l=Math.sin(w+x)*S+m;break;case dr.R:f=u=a[d++],h=l=a[d++];var C=a[d++],A=a[d++];if(c=f+C,v=h+A,e){if(Pn(f,h,c,h,t,n,i)||Pn(c,h,c,v,t,n,i)||Pn(c,v,f,v,t,n,i)||Pn(f,v,f,h,t,n,i))return!0}else s+=Jr(c,h,c,v,n,i),s+=Jr(f,v,f,h,n,i);break;case dr.Z:if(e){if(Pn(u,l,f,h,t,n,i))return!0}else s+=Jr(u,l,f,h,n,i);u=f,l=h;break}}return!e&&!vx(l,h)&&(s+=Jr(u,l,f,h,n,i)||0),s!==0}function yx(r,t,e){return cy(r,0,!1,t,e)}function mx(r,t,e,n){return cy(r,t,!0,e,n)}var dy=K({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},pn),_x={style:K({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ns.style)},Du=Ca.concat(["invisible","culling","z","z2","zlevel","parent"]),it=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(u){e.buildPath(u,e.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<Du.length;++s)i[Du[s]]=this[Du[s]];i.__dirty|=ie}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var n=yt(e);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=e[o];o==="style"?this.style?B(this.style,s):this.useStyle(s):o==="shape"?B(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(W(e)){var n=rs(e,0);return n>.5?Zl:n>.2?KS:$l}else if(e)return $l}return Zl},t.prototype.getInsideTextStroke=function(e){var n=this.style.fill;if(W(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=rs(e,0)<Xl;if(a===o)return n}},t.prototype.buildPath=function(e,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=~Zn},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new ur(!1)},t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return!(n==null||n==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,n=this.style,i=!e;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Zn)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||i){s.copy(e);var u=n.strokeNoScale?this.getLineScale():1,l=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;l=Math.max(l,f??4)}u>1e-10&&(s.width+=l/u,s.height+=l/u,s.x-=l/u/2,s.y-=l/u/2)}return s}return e},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,n),a=this.getBoundingRect(),o=this.style;if(e=i[0],n=i[1],a.contain(e,n)){var s=this.path;if(this.hasStroke()){var u=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),mx(s,u/l,e,n)))return!0}if(this.hasFill())return yx(s,e,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Zn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,n){e==="shape"?this.setShape(n):r.prototype.attrKV.call(this,e,n)},t.prototype.setShape=function(e,n){var i=this.shape;return i||(i=this.shape={}),typeof e=="string"?i[e]=n:B(i,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Zn)},t.prototype.createStyle=function(e){return Is(dy,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=B({},this.shape))},t.prototype._applyStateObj=function(e,n,i,a,o,s){r.prototype._applyStateObj.call(this,e,n,i,a,o,s);var u=!(n&&a),l;if(n&&n.shape?o?a?l=n.shape:(l=B({},i.shape),B(l,n.shape)):(l=B({},a?this.shape:i.shape),B(l,n.shape)):u&&(l=i.shape),l)if(o){this.shape=B({},this.shape);for(var f={},h=yt(l),c=0;c<h.length;c++){var v=h[c];typeof l[v]=="object"?this.shape[v]=l[v]:f[v]=l[v]}this._transitionState(e,{shape:f},s)}else this.shape=l,this.dirtyShape()},t.prototype._mergeStates=function(e){for(var n=r.prototype._mergeStates.call(this,e),i,a=0;a<e.length;a++){var o=e[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return _x},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var n=(function(a){N(o,a);function o(s){var u=a.call(this,s)||this;return e.init&&e.init.call(u,s),u}return o.prototype.getDefaultStyle=function(){return J(e.style)},o.prototype.getDefaultShape=function(){return J(e.shape)},o})(t);for(var i in e)typeof e[i]=="function"&&(n.prototype[i]=e[i]);return n},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=ie|ra|Zn})(),t})(bi),Sx=K({strokeFirst:!0,font:mn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},dy),is=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var e=this.style,n=e.stroke;return n!=null&&n!=="none"&&e.lineWidth>0},t.prototype.hasFill=function(){var e=this.style,n=e.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(e){return Is(Sx,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var n=e.text;n!=null?n+="":n="";var i=Es(n,e.font,e.textAlign,e.textBaseline);if(i.x+=e.x||0,i.y+=e.y||0,this.hasStroke()){var a=e.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(bi);is.prototype.type="tspan";var xx=K({x:0,y:0},pn),bx={style:K({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ns.style)};function Tx(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var fr=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Is(xx,e)},t.prototype._getSize=function(e){var n=this.style,i=n[e];if(i!=null)return i;var a=Tx(n.image)?n.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=n[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return bx},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new st(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(bi);fr.prototype.type="image";function Cx(r,t){var e=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,u,l,f;i<0&&(e=e+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=u=l=f=o:o instanceof Array?o.length===1?s=u=l=f=o[0]:o.length===2?(s=l=o[0],u=f=o[1]):o.length===3?(s=o[0],u=f=o[1],l=o[2]):(s=o[0],u=o[1],l=o[2],f=o[3]):s=u=l=f=0;var h;s+u>i&&(h=s+u,s*=i/h,u*=i/h),l+f>i&&(h=l+f,l*=i/h,f*=i/h),u+l>a&&(h=u+l,u*=a/h,l*=a/h),s+f>a&&(h=s+f,s*=a/h,f*=a/h),r.moveTo(e+s,n),r.lineTo(e+i-u,n),u!==0&&r.arc(e+i-u,n+u,u,-Math.PI/2,0),r.lineTo(e+i,n+a-l),l!==0&&r.arc(e+i-l,n+a-l,l,0,Math.PI/2),r.lineTo(e+f,n+a),f!==0&&r.arc(e+f,n+a-f,f,Math.PI/2,Math.PI),r.lineTo(e,n+s),s!==0&&r.arc(e+s,n+s,s,Math.PI,Math.PI*1.5)}var Qn=Math.round;function py(r,t,e){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;r.x1=n,r.x2=i,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Qn(n*2)===Qn(i*2)&&(r.x1=r.x2=vn(n,s,!0)),Qn(a*2)===Qn(o*2)&&(r.y1=r.y2=vn(a,s,!0))),r}}function gy(r,t,e){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;r.x=n,r.y=i,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=vn(n,s,!0),r.y=vn(i,s,!0),r.width=Math.max(vn(n+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(vn(i+o,s,!1)-r.y,o===0?0:1)),r}}function vn(r,t,e){if(!t)return r;var n=Qn(r*2);return(n+Qn(t))%2===0?n/2:(n+(e?1:-1))/2}var Mx=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})(),Ax={},wt=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Mx},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var u=gy(Ax,n,this.style);i=u.x,a=u.y,o=u.width,s=u.height,u.r=n.r,n=u}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?Cx(e,n):e.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(it);wt.prototype.type="rect";var Vv={fill:"#000"},Hv=2,Dx={style:K({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ns.style)},Pt=(function(r){N(t,r);function t(e){var n=r.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Vv,n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var n=this._children[e];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var n=this.innerTransformable;return n?n.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Ex(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new st(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],u=s.getBoundingRect(),l=s.getLocalTransform(i);l?(e.copy(u),e.applyTransform(l),a=a||e.clone(),a.union(e)):(a=a||u.clone(),a.union(u))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||Vv},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,n){if(!n)return e;var i=n.rich,a=e.rich||i&&{};return B(e,n),i&&a?(this._mergeRich(a,i),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,n){for(var i=yt(n),a=0;a<i.length;a++){var o=i[a];e[o]=e[o]||{},B(e[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return Dx},t.prototype._getOrCreateChild=function(e){var n=this._children[this._childCursor];return(!n||!(n instanceof e))&&(n=new e),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var e=this.style,n=e.font||mn,i=e.padding,a=qv(e),o=bS(a,e),s=Iu(e),u=!!e.backgroundColor,l=o.outerHeight,f=o.outerWidth,h=o.contentWidth,c=o.lines,v=o.lineHeight,d=this._defaultStyle;this.isTruncated=!!o.isTruncated;var p=e.x||0,g=e.y||0,y=e.align||d.align||"left",m=e.verticalAlign||d.verticalAlign||"top",_=p,S=Xn(g,o.contentHeight,m);if(s||i){var w=ta(p,f,y),x=Xn(g,l,m);s&&this._renderBackground(e,e,w,x,f,l)}S+=v/2,i&&(_=$v(p,y,i),m==="top"?S+=i[0]:m==="bottom"&&(S-=i[2]));for(var b=0,T=!1,C=Zv("fill"in e?e.fill:(T=!0,d.fill)),A=Xv("stroke"in e?e.stroke:!u&&(!d.autoStroke||T)?(b=Hv,d.stroke):null),D=e.textShadowBlur>0,I=e.width!=null&&(e.overflow==="truncate"||e.overflow==="break"||e.overflow==="breakAll"),L=o.calculatedLineHeight,P=0;P<c.length;P++){var R=this._getOrCreateChild(is),E=R.createStyle();R.useStyle(E),E.text=c[P],E.x=_,E.y=S,E.textAlign=y,E.textBaseline="middle",E.opacity=e.opacity,E.strokeFirst=!0,D&&(E.shadowBlur=e.textShadowBlur||0,E.shadowColor=e.textShadowColor||"transparent",E.shadowOffsetX=e.textShadowOffsetX||0,E.shadowOffsetY=e.textShadowOffsetY||0),E.stroke=A,E.fill=C,A&&(E.lineWidth=e.lineWidth||b,E.lineDash=e.lineDash,E.lineDashOffset=e.lineDashOffset||0),E.font=n,Uv(E,e),S+=v,I&&R.setBoundingRect(new st(ta(E.x,h,E.textAlign),Xn(E.y,L,E.textBaseline),h,L))}},t.prototype._updateRichTexts=function(){var e=this.style,n=qv(e),i=MS(n,e),a=i.width,o=i.outerWidth,s=i.outerHeight,u=e.padding,l=e.x||0,f=e.y||0,h=this._defaultStyle,c=e.align||h.align,v=e.verticalAlign||h.verticalAlign;this.isTruncated=!!i.isTruncated;var d=ta(l,o,c),p=Xn(f,s,v),g=d,y=p;u&&(g+=u[3],y+=u[0]);var m=g+a;Iu(e)&&this._renderBackground(e,e,d,p,o,s);for(var _=!!e.backgroundColor,S=0;S<i.lines.length;S++){for(var w=i.lines[S],x=w.tokens,b=x.length,T=w.lineHeight,C=w.width,A=0,D=g,I=m,L=b-1,P=void 0;A<b&&(P=x[A],!P.align||P.align==="left");)this._placeToken(P,e,T,y,D,"left",_),C-=P.width,D+=P.width,A++;for(;L>=0&&(P=x[L],P.align==="right");)this._placeToken(P,e,T,y,I,"right",_),C-=P.width,I-=P.width,L--;for(D+=(a-(D-g)-(m-I)-C)/2;A<=L;)P=x[A],this._placeToken(P,e,T,y,D+P.width/2,"center",_),D+=P.width,A++;y+=T}},t.prototype._placeToken=function(e,n,i,a,o,s,u){var l=n.rich[e.styleName]||{};l.text=e.text;var f=e.verticalAlign,h=a+i/2;f==="top"?h=a+e.height/2:f==="bottom"&&(h=a+i-e.height/2);var c=!e.isLineHolder&&Iu(l);c&&this._renderBackground(l,n,s==="right"?o-e.width:s==="center"?o-e.width/2:o,h-e.height/2,e.width,e.height);var v=!!l.backgroundColor,d=e.textPadding;d&&(o=$v(o,s,d),h-=e.height/2-d[0]-e.innerHeight/2);var p=this._getOrCreateChild(is),g=p.createStyle();p.useStyle(g);var y=this._defaultStyle,m=!1,_=0,S=Zv("fill"in l?l.fill:"fill"in n?n.fill:(m=!0,y.fill)),w=Xv("stroke"in l?l.stroke:"stroke"in n?n.stroke:!v&&!u&&(!y.autoStroke||m)?(_=Hv,y.stroke):null),x=l.textShadowBlur>0||n.textShadowBlur>0;g.text=e.text,g.x=o,g.y=h,x&&(g.shadowBlur=l.textShadowBlur||n.textShadowBlur||0,g.shadowColor=l.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=l.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=l.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=e.font||mn,g.opacity=ua(l.opacity,n.opacity,1),Uv(g,l),w&&(g.lineWidth=ua(l.lineWidth,n.lineWidth,_),g.lineDash=j(l.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=w),S&&(g.fill=S);var b=e.contentWidth,T=e.contentHeight;p.setBoundingRect(new st(ta(g.x,b,g.textAlign),Xn(g.y,T,g.textBaseline),b,T))},t.prototype._renderBackground=function(e,n,i,a,o,s){var u=e.backgroundColor,l=e.borderWidth,f=e.borderColor,h=u&&u.image,c=u&&!h,v=e.borderRadius,d=this,p,g;if(c||e.lineHeight||l&&f){p=this._getOrCreateChild(wt),p.useStyle(p.createStyle()),p.style.fill=null;var y=p.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=v,p.dirtyShape()}if(c){var m=p.style;m.fill=u||null,m.fillOpacity=j(e.fillOpacity,1)}else if(h){g=this._getOrCreateChild(fr),g.onload=function(){d.dirtyStyle()};var _=g.style;_.image=u.image,_.x=i,_.y=a,_.width=o,_.height=s}if(l&&f){var m=p.style;m.lineWidth=l,m.stroke=f,m.strokeOpacity=j(e.strokeOpacity,1),m.lineDash=e.borderDash,m.lineDashOffset=e.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var S=(p||g).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=ua(e.opacity,n.opacity,1)},t.makeFont=function(e){var n="";return Rx(e)&&(n=[e.fontStyle,e.fontWeight,Px(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),n&&ze(n)||e.textFont||e.font},t})(bi),Ix={left:!0,right:1,center:1},Lx={top:1,bottom:1,middle:1},Wv=["fontStyle","fontWeight","fontSize","fontFamily"];function Px(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?eh+"px":r+"px"}function Uv(r,t){for(var e=0;e<Wv.length;e++){var n=Wv[e],i=t[n];i!=null&&(r[n]=i)}}function Rx(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function Ex(r){return Yv(r),M(r.rich,Yv),r}function Yv(r){if(r){r.font=Pt.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||Ix[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||Lx[e]?e:"top";var n=r.padding;n&&(r.padding=Wg(r.padding))}}function Xv(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function Zv(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function $v(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function qv(r){var t=r.text;return t!=null&&(t+=""),t}function Iu(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var Kv=1e-4,yy=20;function kx(r){return r.replace(/^\s+|\s+$/g,"")}function Cr(r,t,e,n){var i=t[0],a=t[1],o=e[0],s=e[1],u=a-i,l=s-o;if(u===0)return l===0?o:(o+s)/2;if(n)if(u>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)/u*l+o}function pt(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return W(r)?kx(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function Dt(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),yy),r=(+r).toFixed(t),e?r:+r}function Ox(r){return r.sort(function(t,e){return t-e}),r}function nr(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Nx(r)}function Nx(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,i=e>0?e:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function my(r,t){var e=Math.log,n=Math.LN10,i=Math.floor(e(r[1]-r[0])/n),a=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Bx(r,t){var e=Pr(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),i=G(r,function(v){return(isNaN(v)?0:v)/e*n*100}),a=n*100,o=G(i,function(v){return Math.floor(v)}),s=Pr(o,function(v,d){return v+d},0),u=G(i,function(v,d){return v-o[d]});s<a;){for(var l=Number.NEGATIVE_INFINITY,f=null,h=0,c=u.length;h<c;++h)u[h]>l&&(l=u[h],f=h);++o[f],u[f]=0,++s}return G(o,function(v){return v/n})}function Fx(r,t){var e=Math.max(nr(r),nr(t)),n=r+t;return e>yy?n:Dt(n,e)}function _y(r){var t=Math.PI*2;return(r%t+t)%t}function as(r){return r>-Kv&&r<Kv}var zx=/^(?:(\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 lr(r){if(r instanceof Date)return r;if(W(r)){var t=zx.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Gx(r){return Math.pow(10,hh(r))}function hh(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function Sy(r,t){var e=hh(r),n=Math.pow(10,e),i=r/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,r=a*n,e>=-20?+r.toFixed(e<0?-e:0):r}function kr(r){var t=parseFloat(r);return t==r&&(t!==0||!W(r)||r.indexOf("x")<=0)?t:NaN}function Vx(r){return!isNaN(kr(r))}function xy(){return Math.round(Math.random()*9)}function wy(r,t){return t===0?r:wy(t,r%t)}function Qv(r,t){return r==null?t:t==null?r:r*t/wy(r,t)}function ot(r){throw new Error(r)}function Jv(r,t,e){return(t-r)*e+r}var by="series\0",Ty="\0_ec_\0";function Mt(r){return r instanceof Array?r:r==null?[]:[r]}function Ql(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,i=e.length;n<i;n++){var a=e[n];!r.emphasis[t].hasOwnProperty(a)&&r[t].hasOwnProperty(a)&&(r.emphasis[t][a]=r[t][a])}}}var jv=["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 Y(r)&&!z(r)&&!(r instanceof Date)?r.value:r}function Hx(r){return Y(r)&&!(r instanceof Array)}function Wx(r,t,e){var n=e==="normalMerge",i=e==="replaceMerge",a=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=Z();M(t,function(u,l){if(!Y(u)){t[l]=null;return}});var s=Ux(r,o,e);return(n||i)&&Yx(s,r,o,t),n&&Xx(s,t),n||i?Zx(s,t,i):a&&$x(s,t),qx(s),s}function Ux(r,t,e){var n=[];if(e==="replaceAll")return n;for(var i=0;i<r.length;i++){var a=r[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:e==="replaceMerge"||Ma(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function Yx(r,t,e,n){M(n,function(i,a){if(!(!i||i.id==null)){var o=va(i.id),s=e.get(o);if(s!=null){var u=r[s];Ue(!u.newOption,'Duplicated option on id "'+o+'".'),u.newOption=i,u.existing=t[s],n[a]=null}}})}function Xx(r,t){M(t,function(e,n){if(!(!e||e.name==null))for(var i=0;i<r.length;i++){var a=r[i].existing;if(!r[i].newOption&&a&&(a.id==null||e.id==null)&&!Ma(e)&&!Ma(a)&&Cy("name",a,e)){r[i].newOption=e,t[n]=null;return}}})}function Zx(r,t,e){M(t,function(n){if(n){for(var i,a=0;(i=r[a])&&(i.newOption||Ma(i.existing)||i.existing&&n.id!=null&&!Cy("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=e):r.push({newOption:n,brandNew:e,existing:null,keyInfo:null}),a++}})}function $x(r,t){M(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function qx(r){var t=Z();M(r,function(e){var n=e.existing;n&&t.set(n.id,e)}),M(r,function(e){var n=e.newOption;Ue(!n||n.id==null||!t.get(n.id)||t.get(n.id)===e,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,e),!e.keyInfo&&(e.keyInfo={})}),M(r,function(e,n){var i=e.existing,a=e.newOption,o=e.keyInfo;if(Y(a)){if(o.name=a.name!=null?va(a.name):i?i.name:by+n,i)o.id=va(i.id);else if(a.id!=null)o.id=va(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function Cy(r,t,e){var n=He(t[r],null),i=He(e[r],null);return n!=null&&i!=null&&n===i}function va(r){return He(r,"")}function He(r,t){return r==null?t:W(r)?r:vt(r)||Nl(r)?r+"":t}function vh(r){var t=r.name;return!!(t&&t.indexOf(by))}function Ma(r){return r&&r.id!=null&&va(r.id).indexOf(Ty)===0}function Kx(r){return Ty+r}function Qx(r,t,e){M(r,function(n){var i=n.newOption;Y(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Jx(t,i,n.existing,e))})}function Jx(r,t,e,n){var i=t.type?t.type:e?e.subType:n.determineSubType(r,t);return i}function _n(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return z(t.dataIndex)?G(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return z(t.name)?G(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function mt(){var r="__ec_inner_"+jx++;return function(t){return t[r]||(t[r]={})}}var jx=xy();function ca(r,t,e){var n=ch(t,e),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,u=e?e.defaultMainType:null;return!i&&u&&a.set(u,{}),a.each(function(l,f){var h=Va(r,f,l,{useDefault:u===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=h.models,s[f+"Model"]=h.models[0]}),s}function ch(r,t){var e;if(W(r)){var n={};n[r+"Index"]=0,e=n}else e=r;var i=Z(),a={},o=!1;return M(e,function(s,u){if(u==="dataIndex"||u==="dataIndexInside"){a[u]=s;return}var l=u.match(/^(\w+)(Index|Id|Name)$/)||[],f=l[1],h=(l[2]||"").toLowerCase();if(!(!f||!h||t&&t.includeMainTypes&&nt(t.includeMainTypes,f)<0)){o=o||!!f;var c=i.get(f)||i.set(f,{});c[h]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Yt={useDefault:!0,enableAll:!1,enableNone:!1},tw={useDefault:!1,enableAll:!0,enableNone:!0};function Va(r,t,e,n){n=n||Yt;var i=e.index,a=e.id,o=e.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var u=void 0;return s.models=n.useDefault&&(u=r.getComponent(t))?[u]:[],s}return i==="none"||i===!1?(Ue(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Ue(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=r.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function My(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function ew(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function rw(r){return r==="auto"?Q.domSupported?"html":"richText":r||"html"}function Ay(r,t,e,n,i){var a=t==null||t==="auto";if(n==null)return n;if(vt(n)){var o=Jv(e||0,n,i);return Dt(o,a?Math.max(nr(e||0),nr(n)):t)}else{if(W(n))return i<1?e:n;for(var s=[],u=e,l=n,f=Math.max(u?u.length:0,l.length),h=0;h<f;++h){var c=r.getDimensionInfo(h);if(c&&c.type==="ordinal")s[h]=(i<1&&u?u:l)[h];else{var v=u&&u[h]?u[h]:0,d=l[h],o=Jv(v,d,i);s[h]=Dt(o,a?Math.max(nr(v),nr(d)):t)}}return s}}var at=mt(),nw=function(r,t,e,n){if(n){var i=at(n);i.dataIndex=e,i.dataType=t,i.seriesIndex=r,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=at(a);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},tc=1,ec={},Dy=mt(),dh=mt(),ph=0,Bs=1,Fs=2,ge=["emphasis","blur","select"],os=["normal","emphasis","blur","select"],iw=10,aw=9,gn="highlight",zo="downplay",da="select",Go="unselect",pa="toggleSelect";function Rn(r){return r!=null&&r!=="none"}function zs(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function Iy(r){zs(r,"emphasis",Fs)}function Ly(r){r.hoverState===Fs&&zs(r,"normal",ph)}function gh(r){zs(r,"blur",Bs)}function Py(r){r.hoverState===Bs&&zs(r,"normal",ph)}function ow(r){r.selected=!0}function sw(r){r.selected=!1}function rc(r,t,e){t(r,e)}function hr(r,t,e){rc(r,t,e),r.isGroup&&r.traverse(function(n){rc(n,t,e)})}function nc(r,t){switch(t){case"emphasis":r.hoverState=Fs;break;case"normal":r.hoverState=ph;break;case"blur":r.hoverState=Bs;break;case"select":r.selected=!0}}function uw(r,t,e,n){for(var i=r.style,a={},o=0;o<t.length;o++){var s=t[o],u=i[s];a[s]=u??(n&&n[s])}for(var o=0;o<r.animators.length;o++){var l=r.animators[o];l.__fromStateTransition&&l.__fromStateTransition.indexOf(e)<0&&l.targetName==="style"&&l.saveTo(a,t)}return a}function lw(r,t,e,n){var i=e&&nt(e,"select")>=0,a=!1;if(r instanceof it){var o=Dy(r),s=i&&o.selectFill||o.normalFill,u=i&&o.selectStroke||o.normalStroke;if(Rn(s)||Rn(u)){n=n||{};var l=n.style||{};l.fill==="inherit"?(a=!0,n=B({},n),l=B({},l),l.fill=s):!Rn(l.fill)&&Rn(s)?(a=!0,n=B({},n),l=B({},l),l.fill=Rv(s)):!Rn(l.stroke)&&Rn(u)&&(a||(n=B({},n),l=B({},l)),l.stroke=Rv(u)),n.style=l}}if(n&&n.z2==null){a||(n=B({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??iw)}return n}function fw(r,t,e){if(e&&e.z2==null){e=B({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??aw)}return e}function hw(r,t,e){var n=nt(r.currentStates,t)>=0,i=r.style.opacity,a=n?null:uw(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=B({},e),o=B({opacity:n?i:a.opacity*.1},o),e.style=o),e}function Lu(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return lw(this,r,t,e);if(r==="blur")return hw(this,r,e);if(r==="select")return fw(this,r,e)}return e}function vw(r){r.stateProxy=Lu;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Lu),e&&(e.stateProxy=Lu)}function ic(r,t){!Oy(r,t)&&!r.__highByOuter&&hr(r,Iy)}function ac(r,t){!Oy(r,t)&&!r.__highByOuter&&hr(r,Ly)}function hi(r,t){r.__highByOuter|=1<<(t||0),hr(r,Iy)}function vi(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&hr(r,Ly)}function cw(r){hr(r,gh)}function Ry(r){hr(r,Py)}function Ey(r){hr(r,ow)}function ky(r){hr(r,sw)}function Oy(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Ny(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(i,a){var o=dh(a),s=i==="series",u=s?r.getViewOfSeriesModel(a):r.getViewOfComponentModel(a);!s&&n.push(u),o.isBlured&&(u.group.traverse(function(l){Py(l)}),s&&e.push(a)),o.isBlured=!1}),M(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(e,!1,t)})}function Jl(r,t,e,n){var i=n.getModel();e=e||"coordinateSystem";function a(l,f){for(var h=0;h<f.length;h++){var c=l.getItemGraphicEl(f[h]);c&&Ry(c)}}if(r!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(r),s=o.coordinateSystem;s&&s.master&&(s=s.master);var u=[];i.eachSeries(function(l){var f=o===l,h=l.coordinateSystem;h&&h.master&&(h=h.master);var c=h&&s?h===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!c||t==="series"&&f)){var v=n.getViewOfSeriesModel(l);if(v.group.traverse(function(g){g.__highByOuter&&f&&t==="self"||gh(g)}),Zt(t))a(l.getData(),t);else if(Y(t))for(var d=yt(t),p=0;p<d.length;p++)a(l.getData(d[p]),t[d[p]]);u.push(l),dh(l).isBlured=!0}}),i.eachComponent(function(l,f){if(l!=="series"){var h=n.getViewOfComponentModel(f);h&&h.toggleBlurSeries&&h.toggleBlurSeries(u,!0,i)}})}}function jl(r,t,e){if(!(r==null||t==null)){var n=e.getModel().getComponent(r,t);if(n){dh(n).isBlured=!0;var i=e.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){gh(a)})}}}function dw(r,t,e){var n=r.seriesIndex,i=r.getData(t.dataType);if(i){var a=_n(i,t);a=(z(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),u=0;!o&&u<s;)o=i.getItemGraphicEl(u++);if(o){var l=at(o);Jl(n,l.focus,l.blurScope,e)}else{var f=r.get(["emphasis","focus"]),h=r.get(["emphasis","blurScope"]);f!=null&&Jl(n,f,h,e)}}}function yh(r,t,e,n){var i={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return i;var a=n.getModel().getComponent(r,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(e),u,l=0;l<s.length;l++)if(at(s[l]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:s}}function pw(r,t,e){var n=at(r),i=yh(n.componentMainType,n.componentIndex,n.componentHighDownName,e),a=i.dispatchers,o=i.focusSelf;a?(o&&jl(n.componentMainType,n.componentIndex,e),M(a,function(s){return ic(s,t)})):(Jl(n.seriesIndex,n.focus,n.blurScope,e),n.focus==="self"&&jl(n.componentMainType,n.componentIndex,e),ic(r,t))}function gw(r,t,e){Ny(e);var n=at(r),i=yh(n.componentMainType,n.componentIndex,n.componentHighDownName,e).dispatchers;i?M(i,function(a){return ac(a,t)}):ac(r,t)}function yw(r,t,e){if(rf(t)){var n=t.dataType,i=r.getData(n),a=_n(i,t);z(a)||(a=[a]),r[t.type===pa?"toggleSelect":t.type===da?"select":"unselect"](a,n)}}function oc(r){var t=r.getAllData();M(t,function(e){var n=e.data,i=e.type;n.eachItemGraphicEl(function(a,o){r.isSelected(o,i)?Ey(a):ky(a)})})}function mw(r){var t=[];return r.eachSeries(function(e){var n=e.getAllData();M(n,function(i){i.data;var a=i.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function tf(r,t,e){By(r,!0),hr(r,vw),Sw(r,t,e)}function _w(r){By(r,!1)}function ci(r,t,e,n){n?_w(r):tf(r,t,e)}function Sw(r,t,e){var n=at(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var sc=["emphasis","blur","select"],xw={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function di(r,t,e,n){e=e||"itemStyle";for(var i=0;i<sc.length;i++){var a=sc[i],o=t.getModel([a,e]),s=r.ensureState(a);s.style=o[xw[e]]()}}function By(r,t){var e=t===!1,n=r;r.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function ef(r){return!!(r&&r.__highDownDispatcher)}function ww(r){var t=ec[r];return t==null&&tc<=32&&(t=ec[r]=tc++),t}function rf(r){var t=r.type;return t===da||t===Go||t===pa}function uc(r){var t=r.type;return t===gn||t===zo}function bw(r){var t=Dy(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var En=ur.CMD,Tw=[[],[],[]],lc=Math.sqrt,Cw=Math.atan2;function Fy(r,t){if(t){var e=r.data,n=r.len(),i,a,o,s,u,l,f=En.M,h=En.C,c=En.L,v=En.R,d=En.A,p=En.Q;for(o=0,s=0;o<n;){switch(i=e[o++],s=o,a=0,i){case f:a=1;break;case c:a=1;break;case h:a=3;break;case p:a=2;break;case d:var g=t[4],y=t[5],m=lc(t[0]*t[0]+t[1]*t[1]),_=lc(t[2]*t[2]+t[3]*t[3]),S=Cw(-t[1]/_,t[0]/m);e[o]*=m,e[o++]+=g,e[o]*=_,e[o++]+=y,e[o++]*=m,e[o++]*=_,e[o++]+=S,e[o++]+=S,o+=2,s=o;break;case v:l[0]=e[o++],l[1]=e[o++],pe(l,l,t),e[s++]=l[0],e[s++]=l[1],l[0]+=e[o++],l[1]+=e[o++],pe(l,l,t),e[s++]=l[0],e[s++]=l[1]}for(u=0;u<a;u++){var w=Tw[u];w[0]=e[o++],w[1]=e[o++],pe(w,w,t),e[s++]=w[0],e[s++]=w[1]}}r.increaseVersion()}}var Pu=Math.sqrt,io=Math.sin,ao=Math.cos,Ni=Math.PI;function fc(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function nf(r,t){return(r[0]*t[0]+r[1]*t[1])/(fc(r)*fc(t))}function hc(r,t){return(r[0]*t[1]<r[1]*t[0]?-1:1)*Math.acos(nf(r,t))}function vc(r,t,e,n,i,a,o,s,u,l,f){var h=u*(Ni/180),c=ao(h)*(r-e)/2+io(h)*(t-n)/2,v=-1*io(h)*(r-e)/2+ao(h)*(t-n)/2,d=c*c/(o*o)+v*v/(s*s);d>1&&(o*=Pu(d),s*=Pu(d));var p=(i===a?-1:1)*Pu((o*o*(s*s)-o*o*(v*v)-s*s*(c*c))/(o*o*(v*v)+s*s*(c*c)))||0,g=p*o*v/s,y=p*-s*c/o,m=(r+e)/2+ao(h)*g-io(h)*y,_=(t+n)/2+io(h)*g+ao(h)*y,S=hc([1,0],[(c-g)/o,(v-y)/s]),w=[(c-g)/o,(v-y)/s],x=[(-1*c-g)/o,(-1*v-y)/s],b=hc(w,x);if(nf(w,x)<=-1&&(b=Ni),nf(w,x)>=1&&(b=0),b<0){var T=Math.round(b/Ni*1e6)/1e6;b=Ni*2+T%2*Ni}f.addData(l,m,_,o,s,S,b,h,a)}var Mw=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Aw=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Dw(r){var t=new ur;if(!r)return t;var e=0,n=0,i=e,a=n,o,s=ur.CMD,u=r.match(Mw);if(!u)return t;for(var l=0;l<u.length;l++){for(var f=u[l],h=f.charAt(0),c=void 0,v=f.match(Aw)||[],d=v.length,p=0;p<d;p++)v[p]=parseFloat(v[p]);for(var g=0;g<d;){var y=void 0,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0,b=void 0,T=e,C=n,A=void 0,D=void 0;switch(h){case"l":e+=v[g++],n+=v[g++],c=s.L,t.addData(c,e,n);break;case"L":e=v[g++],n=v[g++],c=s.L,t.addData(c,e,n);break;case"m":e+=v[g++],n+=v[g++],c=s.M,t.addData(c,e,n),i=e,a=n,h="l";break;case"M":e=v[g++],n=v[g++],c=s.M,t.addData(c,e,n),i=e,a=n,h="L";break;case"h":e+=v[g++],c=s.L,t.addData(c,e,n);break;case"H":e=v[g++],c=s.L,t.addData(c,e,n);break;case"v":n+=v[g++],c=s.L,t.addData(c,e,n);break;case"V":n=v[g++],c=s.L,t.addData(c,e,n);break;case"C":c=s.C,t.addData(c,v[g++],v[g++],v[g++],v[g++],v[g++],v[g++]),e=v[g-2],n=v[g-1];break;case"c":c=s.C,t.addData(c,v[g++]+e,v[g++]+n,v[g++]+e,v[g++]+n,v[g++]+e,v[g++]+n),e+=v[g-2],n+=v[g-1];break;case"S":y=e,m=n,A=t.len(),D=t.data,o===s.C&&(y+=e-D[A-4],m+=n-D[A-3]),c=s.C,T=v[g++],C=v[g++],e=v[g++],n=v[g++],t.addData(c,y,m,T,C,e,n);break;case"s":y=e,m=n,A=t.len(),D=t.data,o===s.C&&(y+=e-D[A-4],m+=n-D[A-3]),c=s.C,T=e+v[g++],C=n+v[g++],e+=v[g++],n+=v[g++],t.addData(c,y,m,T,C,e,n);break;case"Q":T=v[g++],C=v[g++],e=v[g++],n=v[g++],c=s.Q,t.addData(c,T,C,e,n);break;case"q":T=v[g++]+e,C=v[g++]+n,e+=v[g++],n+=v[g++],c=s.Q,t.addData(c,T,C,e,n);break;case"T":y=e,m=n,A=t.len(),D=t.data,o===s.Q&&(y+=e-D[A-4],m+=n-D[A-3]),e=v[g++],n=v[g++],c=s.Q,t.addData(c,y,m,e,n);break;case"t":y=e,m=n,A=t.len(),D=t.data,o===s.Q&&(y+=e-D[A-4],m+=n-D[A-3]),e+=v[g++],n+=v[g++],c=s.Q,t.addData(c,y,m,e,n);break;case"A":_=v[g++],S=v[g++],w=v[g++],x=v[g++],b=v[g++],T=e,C=n,e=v[g++],n=v[g++],c=s.A,vc(T,C,e,n,x,b,_,S,w,c,t);break;case"a":_=v[g++],S=v[g++],w=v[g++],x=v[g++],b=v[g++],T=e,C=n,e+=v[g++],n+=v[g++],c=s.A,vc(T,C,e,n,x,b,_,S,w,c,t);break}}(h==="z"||h==="Z")&&(c=s.Z,t.addData(c),e=i,n=a),o=c}return t.toStatic(),t}var zy=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.applyTransform=function(e){},t})(it);function Gy(r){return r.setData!=null}function Vy(r,t){var e=Dw(r),n=B({},t);return n.buildPath=function(i){if(Gy(i)){i.setData(e.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;e.rebuildPath(a,1)}},n.applyTransform=function(i){Fy(e,i),this.dirtyShape()},n}function Iw(r,t){return new zy(Vy(r,t))}function Lw(r,t){var e=Vy(r,t),n=(function(i){N(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=e.applyTransform,s.buildPath=e.buildPath,s}return a})(zy);return n}function Pw(r,t){for(var e=[],n=r.length,i=0;i<n;i++){var a=r[i];e.push(a.getUpdatedPathProxy(!0))}var o=new it(t);return o.createPathProxy(),o.buildPath=function(s){if(Gy(s)){s.appendPath(e);var u=s.getContext();u&&s.rebuildPath(u,1)}},o}function mh(r,t){t=t||{};var e=new it;return r.shape&&e.setShape(r.shape),e.setStyle(r.style),t.bakeTransform?Fy(e.path,r.getComputedTransform()):t.toLocal?e.setLocalTransform(r.getComputedTransform()):e.copyTransform(r),e.buildPath=r.buildPath,e.applyTransform=e.applyTransform,e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel,e}var Tt=(function(r){N(t,r);function t(e){var n=r.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(e),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===e)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,n){if(e&&e!==this&&e.parent!==this&&n&&n.parent===this){var i=this._children,a=i.indexOf(n);a>=0&&(i.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,n){var i=nt(this._children,e);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(e,n){var i=this._children,a=i[n];if(e&&e!==this&&e.parent!==this&&e!==a){i[n]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var n=this.__zr;n&&n!==e.__zr&&e.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(e){var n=this.__zr,i=this._children,a=nt(i,e);return a<0?this:(i.splice(a,1),e.parent=null,n&&e.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,n=this.__zr,i=0;i<e.length;i++){var a=e[i];n&&a.removeSelfFromZr(n),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];e.call(n,o,a)}return this},t.prototype.traverse=function(e,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=e.call(n,a);a.isGroup&&!o&&a.traverse(e,n)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var n=new st(0,0,0,0),i=e||this._children,a=[],o=null,s=0;s<i.length;s++){var u=i[s];if(!(u.ignore||u.invisible)){var l=u.getBoundingRect(),f=u.getLocalTransform(a);f?(st.applyTransform(n,l,f),o=o||n.clone(),o.union(n)):(o=o||l.clone(),o.union(l))}}return o||n},t})(Os);Tt.prototype.type="group";var Rw=(function(){function r(){this.cx=0,this.cy=0,this.r=0}return r})(),Ha=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Rw},t.prototype.buildPath=function(e,n){e.moveTo(n.cx+n.r,n.cy),e.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t})(it);Ha.prototype.type="circle";var Ew=(function(){function r(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return r})(),_h=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ew},t.prototype.buildPath=function(e,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,u=n.ry,l=s*i,f=u*i;e.moveTo(a-s,o),e.bezierCurveTo(a-s,o-f,a-l,o-u,a,o-u),e.bezierCurveTo(a+l,o-u,a+s,o-f,a+s,o),e.bezierCurveTo(a+s,o+f,a+l,o+u,a,o+u),e.bezierCurveTo(a-l,o+u,a-s,o+f,a-s,o),e.closePath()},t})(it);_h.prototype.type="ellipse";var Hy=Math.PI,Ru=Hy*2,tn=Math.sin,kn=Math.cos,kw=Math.acos,Bt=Math.atan2,cc=Math.abs,ga=Math.sqrt,na=Math.max,Oe=Math.min,we=1e-4;function Ow(r,t,e,n,i,a,o,s){var u=e-r,l=n-t,f=o-i,h=s-a,c=h*u-f*l;if(!(c*c<we))return c=(f*(t-a)-h*(r-i))/c,[r+c*u,t+c*l]}function oo(r,t,e,n,i,a,o){var s=r-e,u=t-n,l=(o?a:-a)/ga(s*s+u*u),f=l*u,h=-l*s,c=r+f,v=t+h,d=e+f,p=n+h,g=(c+d)/2,y=(v+p)/2,m=d-c,_=p-v,S=m*m+_*_,w=i-a,x=c*p-d*v,b=(_<0?-1:1)*ga(na(0,w*w*S-x*x)),T=(x*_-m*b)/S,C=(-x*m-_*b)/S,A=(x*_+m*b)/S,D=(-x*m+_*b)/S,I=T-g,L=C-y,P=A-g,R=D-y;return I*I+L*L>P*P+R*R&&(T=A,C=D),{cx:T,cy:C,x0:-f,y0:-h,x1:T*(i/w-1),y1:C*(i/w-1)}}function Nw(r){var t;if(z(r)){var e=r.length;if(!e)return r;e===1?t=[r[0],r[0],0,0]:e===2?t=[r[0],r[0],r[1],r[1]]:e===3?t=r.concat(r[2]):t=r}else t=[r,r,r,r];return t}function Bw(r,t){var e,n=na(t.r,0),i=na(t.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 u=t.startAngle,l=t.endAngle;if(!(isNaN(u)||isNaN(l))){var f=t.cx,h=t.cy,c=!!t.clockwise,v=cc(l-u),d=v>Ru&&v%Ru;if(d>we&&(v=d),!(n>we))r.moveTo(f,h);else if(v>Ru-we)r.moveTo(f+n*kn(u),h+n*tn(u)),r.arc(f,h,n,u,l,!c),i>we&&(r.moveTo(f+i*kn(l),h+i*tn(l)),r.arc(f,h,i,l,u,c));else{var p=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,T=void 0,C=void 0,A=void 0,D=void 0,I=void 0,L=void 0,P=void 0,R=n*kn(u),E=n*tn(u),F=i*kn(l),k=i*tn(l),O=v>we;if(O){var V=t.cornerRadius;V&&(e=Nw(V),p=e[0],g=e[1],y=e[2],m=e[3]);var H=cc(n-i)/2;if(_=Oe(H,y),S=Oe(H,m),w=Oe(H,p),x=Oe(H,g),C=b=na(_,S),A=T=na(w,x),(b>we||T>we)&&(D=n*kn(l),I=n*tn(l),L=i*kn(u),P=i*tn(u),v<Hy)){var U=Ow(R,E,L,P,D,I,F,k);if(U){var et=R-U[0],ut=E-U[1],ct=D-U[0],Ot=I-U[1],Kt=1/tn(kw((et*ct+ut*Ot)/(ga(et*et+ut*ut)*ga(ct*ct+Ot*Ot)))/2),Nt=ga(U[0]*U[0]+U[1]*U[1]);C=Oe(b,(n-Nt)/(Kt+1)),A=Oe(T,(i-Nt)/(Kt-1))}}}if(!O)r.moveTo(f+R,h+E);else if(C>we){var At=Oe(y,C),_t=Oe(m,C),$=oo(L,P,R,E,n,At,c),rt=oo(D,I,F,k,n,_t,c);r.moveTo(f+$.cx+$.x0,h+$.cy+$.y0),C<b&&At===_t?r.arc(f+$.cx,h+$.cy,C,Bt($.y0,$.x0),Bt(rt.y0,rt.x0),!c):(At>0&&r.arc(f+$.cx,h+$.cy,At,Bt($.y0,$.x0),Bt($.y1,$.x1),!c),r.arc(f,h,n,Bt($.cy+$.y1,$.cx+$.x1),Bt(rt.cy+rt.y1,rt.cx+rt.x1),!c),_t>0&&r.arc(f+rt.cx,h+rt.cy,_t,Bt(rt.y1,rt.x1),Bt(rt.y0,rt.x0),!c))}else r.moveTo(f+R,h+E),r.arc(f,h,n,u,l,!c);if(!(i>we)||!O)r.lineTo(f+F,h+k);else if(A>we){var At=Oe(p,A),_t=Oe(g,A),$=oo(F,k,D,I,i,-_t,c),rt=oo(R,E,L,P,i,-At,c);r.lineTo(f+$.cx+$.x0,h+$.cy+$.y0),A<T&&At===_t?r.arc(f+$.cx,h+$.cy,A,Bt($.y0,$.x0),Bt(rt.y0,rt.x0),!c):(_t>0&&r.arc(f+$.cx,h+$.cy,_t,Bt($.y0,$.x0),Bt($.y1,$.x1),!c),r.arc(f,h,i,Bt($.cy+$.y1,$.cx+$.x1),Bt(rt.cy+rt.y1,rt.cx+rt.x1),c),At>0&&r.arc(f+rt.cx,h+rt.cy,At,Bt(rt.y1,rt.x1),Bt(rt.y0,rt.x0),!c))}else r.lineTo(f+F,h+k),r.arc(f,h,i,l,u,c)}r.closePath()}}}var Fw=(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})(),Xe=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Fw},t.prototype.buildPath=function(e,n){Bw(e,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(it);Xe.prototype.type="sector";var zw=(function(){function r(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return r})(),Gs=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new zw},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.PI*2;e.moveTo(i+n.r,a),e.arc(i,a,n.r,0,o,!1),e.moveTo(i+n.r0,a),e.arc(i,a,n.r0,0,o,!0)},t})(it);Gs.prototype.type="ring";function Gw(r,t,e,n){var i=[],a=[],o=[],s=[],u,l,f,h;if(n){f=[1/0,1/0],h=[-1/0,-1/0];for(var c=0,v=r.length;c<v;c++)qn(f,f,r[c]),Kn(h,h,r[c]);qn(f,f,n[0]),Kn(h,h,n[1])}for(var c=0,v=r.length;c<v;c++){var d=r[c];if(e)u=r[c?c-1:v-1],l=r[(c+1)%v];else if(c===0||c===v-1){i.push(LS(r[c]));continue}else u=r[c-1],l=r[c+1];PS(a,l,u),fu(a,a,t);var p=zl(d,u),g=zl(d,l),y=p+g;y!==0&&(p/=y,g/=y),fu(o,a,-p),fu(s,a,g);var m=wv([],d,o),_=wv([],d,s);n&&(Kn(m,m,f),qn(m,m,h),Kn(_,_,f),qn(_,_,h)),i.push(m),i.push(_)}return e&&i.push(i.shift()),i}function Wy(r,t,e){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=Gw(i,n,e,t.smoothConstraint);r.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(e?o:o-1);s++){var u=a[s*2],l=a[s*2+1],f=i[(s+1)%o];r.bezierCurveTo(u[0],u[1],l[0],l[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])}e&&r.closePath()}}var Vw=(function(){function r(){this.points=null,this.smooth=0,this.smoothConstraint=null}return r})(),Cn=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Vw},t.prototype.buildPath=function(e,n){Wy(e,n,!0)},t})(it);Cn.prototype.type="polygon";var Hw=(function(){function r(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return r})(),zr=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Hw},t.prototype.buildPath=function(e,n){Wy(e,n,!1)},t})(it);zr.prototype.type="polyline";var Ww={},Uw=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})(),Or=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Uw},t.prototype.buildPath=function(e,n){var i,a,o,s;if(this.subPixelOptimize){var u=py(Ww,n,this.style);i=u.x1,a=u.y1,o=u.x2,s=u.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var l=n.percent;l!==0&&(e.moveTo(i,a),l<1&&(o=i*(1-l)+o*l,s=a*(1-l)+s*l),e.lineTo(o,s))},t.prototype.pointAt=function(e){var n=this.shape;return[n.x1*(1-e)+n.x2*e,n.y1*(1-e)+n.y2*e]},t})(it);Or.prototype.type="line";var Qt=[],Yw=(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 dc(r,t,e){var n=r.cpx2,i=r.cpy2;return n!=null||i!=null?[(e?Mv:Lt)(r.x1,r.cpx1,r.cpx2,r.x2,t),(e?Mv:Lt)(r.y1,r.cpy1,r.cpy2,r.y2,t)]:[(e?Av:Gt)(r.x1,r.cpx1,r.x2,t),(e?Av:Gt)(r.y1,r.cpy1,r.y2,t)]}var Sh=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Yw},t.prototype.buildPath=function(e,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,u=n.cpx1,l=n.cpy1,f=n.cpx2,h=n.cpy2,c=n.percent;c!==0&&(e.moveTo(i,a),f==null||h==null?(c<1&&(es(i,u,o,c,Qt),u=Qt[1],o=Qt[2],es(a,l,s,c,Qt),l=Qt[1],s=Qt[2]),e.quadraticCurveTo(u,l,o,s)):(c<1&&(Er(i,u,f,o,c,Qt),u=Qt[1],f=Qt[2],o=Qt[3],Er(a,l,h,s,c,Qt),l=Qt[1],h=Qt[2],s=Qt[3]),e.bezierCurveTo(u,l,f,h,o,s)))},t.prototype.pointAt=function(e){return dc(this.shape,e,!1)},t.prototype.tangentAt=function(e){var n=dc(this.shape,e,!0);return kS(n,n)},t})(it);Sh.prototype.type="bezier-curve";var Xw=(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})(),Vs=(function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Xw},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,u=n.endAngle,l=n.clockwise,f=Math.cos(s),h=Math.sin(s);e.moveTo(f*o+i,h*o+a),e.arc(i,a,o,s,u,!l)},t})(it);Vs.prototype.type="arc";var Zw=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,n=this.shapeChanged(),i=0;i<e.length;i++)n=n||e[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<e.length;i++)e[i].path||e[i].createPathProxy(),e[i].path.setScale(n[0],n[1],e[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,n){for(var i=n.paths||[],a=0;a<i.length;a++)i[a].buildPath(e,i[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],n=0;n<e.length;n++)e[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),it.prototype.getBoundingRect.call(this)},t})(it),Uy=(function(){function r(t){this.colorStops=t||[]}return r.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},r})(),Yy=(function(r){N(t,r);function t(e,n,i,a,o,s){var u=r.call(this,o)||this;return u.x=e??0,u.y=n??0,u.x2=i??1,u.y2=a??0,u.type="linear",u.global=s||!1,u}return t})(Uy),$w=(function(r){N(t,r);function t(e,n,i,a,o){var s=r.call(this,a)||this;return s.x=e??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t})(Uy),en=[0,0],rn=[0,0],so=new X,uo=new X,ss=(function(){function r(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new X;for(var n=0;n<2;n++)this._axes[n]=new X;t&&this.fromBoundingRect(t,e)}return r.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,u=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,u),n[3].set(a,u),e)for(var l=0;l<4;l++)n[l].transform(e);X.sub(i[0],n[1],n[0]),X.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var l=0;l<2;l++)this._origin[l]=i[l].dot(n[0])},r.prototype.intersect=function(t,e){var n=!0,i=!e;return so.set(1/0,1/0),uo.set(0,0),!this._intersectCheckOneSide(this,t,so,uo,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,so,uo,i,-1)&&(n=!1,i)||i||X.copy(e,n?so:uo),n},r.prototype._intersectCheckOneSide=function(t,e,n,i,a,o){for(var s=!0,u=0;u<2;u++){var l=this._axes[u];if(this._getProjMinMaxOnAxis(u,t._corners,en),this._getProjMinMaxOnAxis(u,e._corners,rn),en[1]<rn[0]||en[0]>rn[1]){if(s=!1,a)return s;var f=Math.abs(rn[0]-en[1]),h=Math.abs(en[0]-rn[1]);Math.min(f,h)>i.len()&&(f<h?X.scale(i,l,-f*o):X.scale(i,l,h*o))}else if(n){var f=Math.abs(rn[0]-en[1]),h=Math.abs(en[0]-rn[1]);Math.min(f,h)<n.len()&&(f<h?X.scale(n,l,f*o):X.scale(n,l,-h*o))}}return s},r.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],a=this._origin,o=e[0].dot(i)+a[t],s=o,u=o,l=1;l<e.length;l++){var f=e[l].dot(i)+a[t];s=Math.min(f,s),u=Math.max(f,u)}n[0]=s,n[1]=u},r})(),qw=[],Kw=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return t.prototype.traverse=function(e,n){e.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,n){n?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,n){n=n||!1;for(var i=0;i<e.length;i++)this.addDisplayable(e[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var n=this._cursor;n<this._displayables.length;n++)e&&e(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)e&&e(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++){var n=this._displayables[e];n.parent=this,n.update(),n.parent=null}for(var e=0;e<this._temporaryDisplayables.length;e++){var n=this._temporaryDisplayables[e];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new st(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(qw)),e.union(a)}this._rect=e}return this._rect},t.prototype.contain=function(e,n){var i=this.transformCoordToLocal(e,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(e,n))return!0}return!1},t})(bi),Xy=mt();function Hs(r,t,e,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),u=r==="update";if(s){var l=void 0,f=void 0,h=void 0;n?(l=j(n.duration,200),f=j(n.easing,"cubicOut"),h=0):(l=t.getShallow(u?"animationDurationUpdate":"animationDuration"),f=t.getShallow(u?"animationEasingUpdate":"animationEasing"),h=t.getShallow(u?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(l=a.duration),a.easing!=null&&(f=a.easing),a.delay!=null&&(h=a.delay)),q(h)&&(h=h(e,i)),q(l)&&(l=l(e));var c={duration:l||0,delay:h,easing:f};return c}else return null}function xh(r,t,e,n,i,a,o){var s=!1,u;q(i)?(o=a,a=i,i=null):Y(i)&&(a=i.cb,o=i.during,s=i.isFrom,u=i.removeOpt,i=i.dataIndex);var l=r==="leave";l||t.stopAnimation("leave");var f=Hs(r,n,i,l?u||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var h=f.duration,c=f.delay,v=f.easing,d={duration:h,delay:c||0,easing:v,done:a,force:!!a||!!o,setToFinal:!l,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),a&&a()}function It(r,t,e,n,i,a){xh("update",r,t,e,n,i,a)}function Et(r,t,e,n,i,a){xh("enter",r,t,e,n,i,a)}function ai(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function us(r,t,e,n,i,a){ai(r)||xh("leave",r,t,e,n,i,a)}function pc(r,t,e,n){r.removeTextContent(),r.removeTextGuideLine(),us(r,{style:{opacity:0}},t,e,n)}function ls(r,t,e){function n(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(i){i.isGroup||pc(i,t,e,n)}):pc(r,t,e,n)}function Aa(r){Xy(r).oldStyle=r.style}function Qw(r){return Xy(r).oldStyle}var fs=Math.max,hs=Math.min,af={};function Jw(r){return it.extend(r)}var jw=Lw;function tb(r,t){return jw(r,t)}function Le(r,t){af[r]=t}function eb(r){if(af.hasOwnProperty(r))return af[r]}function wh(r,t,e,n){var i=Iw(r,t);return e&&(n==="center"&&(e=$y(e,i.getBoundingRect())),qy(i,e)),i}function Zy(r,t,e){var n=new fr({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(e==="center"){var a={width:i.width,height:i.height};n.setStyle($y(t,a))}}});return n}function $y(r,t){var e=t.width/t.height,n=r.height*e,i;n<=r.width?i=r.height:(n=r.width,i=n/e);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 of=Pw;function qy(r,t){if(r.applyTransform){var e=r.getBoundingRect(),n=e.calculateTransform(t);r.applyTransform(n)}}function Da(r,t){return py(r,r,{lineWidth:t}),r}function rb(r){return gy(r.shape,r.shape,r.style),r}var nb=vn;function bh(r,t){for(var e=sh([]);r&&r!==t;)ri(e,r.getLocalTransform(),e),r=r.parent;return e}function Th(r,t,e){return t&&!Zt(t)&&(t=za.getLocalTransform(t)),e&&(t=Rs([],t)),pe([],r,t)}function Ky(r,t,e){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),a=[r==="left"?-n:r==="right"?n:0,r==="top"?-i:r==="bottom"?i:0];return a=Th(a,t,e),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function gc(r){return!r.isGroup}function ib(r){return r.shape!=null}function Qy(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(u){gc(u)&&u.anid&&(s[u.anid]=u)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return ib(o)&&(s.shape=B({},o.shape)),s}var a=n(r);t.traverse(function(o){if(gc(o)&&o.anid){var s=a[o.anid];if(s){var u=i(o);o.attr(i(s)),It(o,u,e,at(o).dataIndex)}}})}function Jy(r,t){return G(r,function(e){var n=e[0];n=fs(n,t.x),n=hs(n,t.x+t.width);var i=e[1];return i=fs(i,t.y),i=hs(i,t.y+t.height),[n,i]})}function ab(r,t){var e=fs(r.x,t.x),n=hs(r.x+r.width,t.x+t.width),i=fs(r.y,t.y),a=hs(r.y+r.height,t.y+t.height);if(n>=e&&a>=i)return{x:e,y:i,width:n-e,height:a-i}}function Ws(r,t,e){var n=B({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(i.image=r.slice(8),K(i,e),new fr(n)):wh(r.replace("path://",""),n,e,"center")}function ob(r,t,e,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(jy(r,t,e,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function jy(r,t,e,n,i,a,o,s){var u=e-r,l=n-t,f=o-i,h=s-a,c=Eu(f,h,u,l);if(sb(c))return!1;var v=r-i,d=t-a,p=Eu(v,d,u,l)/c;if(p<0||p>1)return!1;var g=Eu(v,d,f,h)/c;return!(g<0||g>1)}function Eu(r,t,e,n){return r*n-e*t}function sb(r){return r<=1e-6&&r>=-1e-6}function Wa(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,i=W(t)?{formatter:t}:t,a=e.mainType,o=e.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var u=r.formatterParamsExtra;u&&M(yt(u),function(f){Ye(s,f)||(s[f]=u[f],s.$vars.push(f))});var l=at(r.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:n,option:K({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function yc(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Us(r,t){if(r)if(z(r))for(var e=0;e<r.length;e++)yc(r[e],t);else yc(r,t)}Le("circle",Ha);Le("ellipse",_h);Le("sector",Xe);Le("ring",Gs);Le("polygon",Cn);Le("polyline",zr);Le("rect",wt);Le("line",Or);Le("bezierCurve",Sh);Le("arc",Vs);const tm=Object.freeze(Object.defineProperty({__proto__:null,Arc:Vs,BezierCurve:Sh,BoundingRect:st,Circle:Ha,CompoundPath:Zw,Ellipse:_h,Group:Tt,Image:fr,IncrementalDisplayable:Kw,Line:Or,LinearGradient:Yy,OrientedBoundingRect:ss,Path:it,Point:X,Polygon:Cn,Polyline:zr,RadialGradient:$w,Rect:wt,Ring:Gs,Sector:Xe,Text:Pt,applyTransform:Th,clipPointsByRect:Jy,clipRectByRect:ab,createIcon:Ws,extendPath:tb,extendShape:Jw,getShapeClass:eb,getTransform:bh,groupTransition:Qy,initProps:Et,isElementRemoved:ai,lineLineIntersect:jy,linePolygonIntersect:ob,makeImage:Zy,makePath:wh,mergePath:of,registerShape:Le,removeElement:us,removeElementWithFadeOut:ls,resizePath:qy,setTooltipConfig:Wa,subPixelOptimize:nb,subPixelOptimizeLine:Da,subPixelOptimizeRect:rb,transformDirection:Ky,traverseElements:Us,updateProps:It},Symbol.toStringTag,{value:"Module"}));var Ys={};function em(r,t){for(var e=0;e<ge.length;e++){var n=ge[e],i=t[n],a=r.ensureState(n);a.style=a.style||{},a.style.text=i}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function sf(r,t,e){var n=r.labelFetcher,i=r.labelDataIndex,a=r.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=q(r.defaultText)?r.defaultText(i,r,e):r.defaultText);for(var u={normal:s},l=0;l<ge.length;l++){var f=ge[l],h=t[f];u[f]=j(n?n.getFormattedLabel(i,f,null,a,h&&h.get("formatter")):null,s)}return u}function Ti(r,t,e,n){e=e||Ys;for(var i=r instanceof Pt,a=!1,o=0;o<os.length;o++){var s=t[os[o]];if(s&&s.getShallow("show")){a=!0;break}}var u=i?r:r.getTextContent();if(a){i||(u||(u=new Pt,r.setTextContent(u)),r.stateProxy&&(u.stateProxy=r.stateProxy));var l=sf(e,t),f=t.normal,h=!!f.getShallow("show"),c=Nr(f,n&&n.normal,e,!1,!i);c.text=l.normal,i||r.setTextConfig(mc(f,e,!1));for(var o=0;o<ge.length;o++){var v=ge[o],s=t[v];if(s){var d=u.ensureState(v),p=!!j(s.getShallow("show"),h);if(p!==h&&(d.ignore=!p),d.style=Nr(s,n&&n[v],e,!0,!i),d.style.text=l[v],!i){var g=r.ensureState(v);g.textConfig=mc(s,e,!0)}}}u.silent=!!f.getShallow("silent"),u.style.x!=null&&(c.x=u.style.x),u.style.y!=null&&(c.y=u.style.y),u.ignore=!h,u.useStyle(c),u.dirty(),e.enableTextSetter&&(Mi(u).setLabelText=function(y){var m=sf(e,t,y);em(u,m)})}else u&&(u.ignore=!0);r.dirty()}function Ci(r,t){t=t||"label";for(var e={normal:r.getModel(t)},n=0;n<ge.length;n++){var i=ge[n];e[i]=r.getModel([i,t])}return e}function Nr(r,t,e,n,i){var a={};return ub(a,r,e,n,i),t&&B(a,t),a}function mc(r,t,e){t=t||{};var n={},i,a=r.getShallow("rotate"),o=j(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return i=r.getShallow("position")||(e?null:"inside"),i==="outside"&&(i=t.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"?t.inheritColor||null:"auto",n}function ub(r,t,e,n,i){e=e||Ys;var a=t.ecModel,o=a&&a.option.textStyle,s=lb(t),u;if(s){u={};for(var l in s)if(s.hasOwnProperty(l)){var f=t.getModel(["rich",l]);wc(u[l]={},f,o,e,n,i,!1,!0)}}u&&(r.rich=u);var h=t.get("overflow");h&&(r.overflow=h);var c=t.get("minMargin");c!=null&&(r.margin=c),wc(r,t,o,e,n,i,!0,!1)}function lb(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||Ys).rich;if(e){t=t||{};for(var n=yt(e),i=0;i<n.length;i++){var a=n[i];t[a]=1}}r=r.parentModel}return t}var _c=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Sc=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],xc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function wc(r,t,e,n,i,a,o,s){e=!i&&e||Ys;var u=n&&n.inheritColor,l=t.getShallow("color"),f=t.getShallow("textBorderColor"),h=j(t.getShallow("opacity"),e.opacity);(l==="inherit"||l==="auto")&&(u?l=u:l=null),(f==="inherit"||f==="auto")&&(u?f=u:f=null),a||(l=l||e.color,f=f||e.textBorderColor),l!=null&&(r.fill=l),f!=null&&(r.stroke=f);var c=j(t.getShallow("textBorderWidth"),e.textBorderWidth);c!=null&&(r.lineWidth=c);var v=j(t.getShallow("textBorderType"),e.textBorderType);v!=null&&(r.lineDash=v);var d=j(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);d!=null&&(r.lineDashOffset=d),!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 p=0;p<_c.length;p++){var g=_c[p],y=j(t.getShallow(g),e[g]);y!=null&&(r[g]=y)}for(var p=0;p<Sc.length;p++){var g=Sc[p],y=t.getShallow(g);y!=null&&(r[g]=y)}if(r.verticalAlign==null){var m=t.getShallow("baseline");m!=null&&(r.verticalAlign=m)}if(!o||!n.disableBox){for(var p=0;p<xc.length;p++){var g=xc[p],y=t.getShallow(g);y!=null&&(r[g]=y)}var _=t.getShallow("borderType");_!=null&&(r.borderDash=_),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&u&&(r.backgroundColor=u),(r.borderColor==="auto"||r.borderColor==="inherit")&&u&&(r.borderColor=u)}}function rm(r,t){var e=t&&t.getModel("textStyle");return ze([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Mi=mt();function fb(r,t,e,n){if(r){var i=Mi(r);i.prevValue=i.value,i.value=e;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function hb(r,t,e,n,i){var a=Mi(r);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=j(a.interpolatedValue,a.prevValue),u=a.value;function l(f){var h=Ay(e,a.precision,s,u,f);a.interpolatedValue=f===1?null:h;var c=sf({labelDataIndex:t,labelFetcher:i,defaultText:o?o(h):h+""},a.statesModels,h);em(r,c)}r.percent=0,(a.prevValue==null?Et:It)(r,{percent:1},n,t,null,l)}var vb=["textStyle","color"],ku=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ou=new Pt,cb=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(vb):null)},r.prototype.getFont=function(){return rm({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ku.length;n++)e[ku[n]]=this.getShallow(ku[n]);return Ou.useStyle(e),Ou.update(),Ou.getBoundingRect()},r})(),nm=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],db=Ta(nm),pb=(function(){function r(){}return r.prototype.getLineStyle=function(t){return db(this,t)},r})(),im=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],gb=Ta(im),yb=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return gb(this,t,e)},r})(),St=(function(){function r(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}return r.prototype.init=function(t,e,n){},r.prototype.mergeOption=function(t,e){tt(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var n=this.option,i=n==null?n:n[t];if(i==null&&!e){var a=this.parentModel;a&&(i=a.getShallow(t))}return i},r.prototype.getModel=function(t,e){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new r(a,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(J(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!Q.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},r})();oh(St);hS(St);De(St,pb);De(St,yb);De(St,gS);De(St,cb);function Bi(r){return r==null?0:r.length||1}function bc(r){return r}var Ia=(function(){function r(t,e,n,i,a,o){this._old=t,this._new=e,this._oldKeyGetter=n||bc,this._newKeyGetter=i||bc,this.context=a,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),a=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],u=n[s],l=Bi(u);if(l>1){var f=u.shift();u.length===1&&(n[s]=u[0]),this._update&&this._update(f,o)}else l===1?(n[s]=null,this._update&&this._update(u,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var u=a[s],l=n[u],f=i[u],h=Bi(l),c=Bi(f);if(h>1&&c===1)this._updateManyToOne&&this._updateManyToOne(f,l),i[u]=null;else if(h===1&&c>1)this._updateOneToMany&&this._updateOneToMany(f,l),i[u]=null;else if(h===1&&c===1)this._update&&this._update(f,l),i[u]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(f,l),i[u]=null;else if(h>1)for(var v=0;v<h;v++)this._remove&&this._remove(l[v]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},r.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],a=e[i],o=Bi(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);e[i]=null}},r.prototype._initIndexMap=function(t,e,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!e){var u=e[s],l=Bi(u);l===0?(e[s]=o,a&&n.push(s)):l===1?e[s]=[u,o]:u.push(o)}}},r})(),am=Z(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),me="original",$t="arrayRows",_e="objectRows",$e="keyedColumns",Lr="typedArray",om="unknown",We="column",Ai="row",kt={Must:1,Might:2,Not:3},sm=mt();function mb(r){sm(r).datasetMap=Z()}function _b(r,t,e){var n={},i=Ch(t);if(!i||!r)return n;var a=[],o=[],s=t.ecModel,u=sm(s).datasetMap,l=i.uid+"_"+e.seriesLayoutBy,f,h;r=r.slice(),M(r,function(p,g){var y=Y(p)?p:r[g]={name:p};y.type==="ordinal"&&f==null&&(f=g,h=d(y)),n[y.name]=[]});var c=u.get(l)||u.set(l,{categoryWayDim:h,valueWayDim:0});M(r,function(p,g){var y=p.name,m=d(p);if(f==null){var _=c.valueWayDim;v(n[y],_,m),v(o,_,m),c.valueWayDim+=m}else if(f===g)v(n[y],0,m),v(a,0,m);else{var _=c.categoryWayDim;v(n[y],_,m),v(o,_,m),c.categoryWayDim+=m}});function v(p,g,y){for(var m=0;m<y;m++)p.push(g+m)}function d(p){var g=p.dimsDef;return g?g.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function Sb(r,t,e){var n={},i=Ch(r);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===_e||a===$e)&&M(o,function(f,h){(Y(f)?f.name:f)==="name"&&(s=h)});var u=(function(){for(var f={},h={},c=[],v=0,d=Math.min(5,e);v<d;v++){var p=lm(t.data,a,t.seriesLayoutBy,o,t.startIndex,v);c.push(p);var g=p===kt.Not;if(g&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!g&&c[f.n]===kt.Not)&&(f.n=v),y(f)&&c[f.n]!==kt.Not)return f;g||(p===kt.Might&&h.v==null&&v!==s&&(h.v=v),(h.n==null||h.n===h.v)&&(h.n=v))}function y(m){return m.v!=null&&m.n!=null}return y(f)?f:y(h)?h:null})();if(u){n.value=[u.v];var l=s??u.n;n.itemName=[l],n.seriesName=[l]}return n}function Ch(r){var t=r.get("data",!0);if(!t)return Va(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Yt).models[0]}function xb(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:Va(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Yt).models}function um(r,t){return lm(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function lm(r,t,e,n,i,a){var o,s=5;if(ne(r))return kt.Not;var u,l;if(n){var f=n[a];Y(f)?(u=f.name,l=f.type):W(f)&&(u=f)}if(l!=null)return l==="ordinal"?kt.Must:kt.Not;if(t===$t){var h=r;if(e===Ai){for(var c=h[a],v=0;v<(c||[]).length&&v<s;v++)if((o=S(c[i+v]))!=null)return o}else for(var v=0;v<h.length&&v<s;v++){var d=h[i+v];if(d&&(o=S(d[a]))!=null)return o}}else if(t===_e){var p=r;if(!u)return kt.Not;for(var v=0;v<p.length&&v<s;v++){var g=p[v];if(g&&(o=S(g[u]))!=null)return o}}else if(t===$e){var y=r;if(!u)return kt.Not;var c=y[u];if(!c||ne(c))return kt.Not;for(var v=0;v<c.length&&v<s;v++)if((o=S(c[v]))!=null)return o}else if(t===me)for(var m=r,v=0;v<m.length&&v<s;v++){var g=m[v],_=Ga(g);if(!z(_))return kt.Not;if((o=S(_[a]))!=null)return o}function S(w){var x=W(w);if(w!=null&&Number.isFinite(Number(w))&&w!=="")return x?kt.Might:kt.Not;if(x&&w!=="-")return kt.Must}return kt.Not}var Xs=(function(){function r(t){this.data=t.data||(t.sourceFormat===$e?{}:[]),this.sourceFormat=t.sourceFormat||om,this.seriesLayoutBy=t.seriesLayoutBy||We,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];i.type==null&&um(this,n)===kt.Must&&(i.type="ordinal")}}return r})();function Mh(r){return r instanceof Xs}function uf(r,t,e){e=e||hm(r);var n=t.seriesLayoutBy,i=bb(r,e,n,t.sourceHeader,t.dimensions),a=new Xs({data:r,sourceFormat:e,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:J(t)});return a}function fm(r){return new Xs({data:r,sourceFormat:ne(r)?Lr:me})}function wb(r){return new Xs({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:J(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function hm(r){var t=om;if(ne(r))t=Lr;else if(z(r)){r.length===0&&(t=$t);for(var e=0,n=r.length;e<n;e++){var i=r[e];if(i!=null){if(z(i)||ne(i)){t=$t;break}else if(Y(i)){t=_e;break}}}}else if(Y(r)){for(var a in r)if(Ye(r,a)&&Zt(r[a])){t=$e;break}}return t}function bb(r,t,e,n,i){var a,o;if(!r)return{dimensionsDefine:Tc(i),startIndex:o,dimensionsDetectedCount:a};if(t===$t){var s=r;n==="auto"||n==null?Cc(function(l){l!=null&&l!=="-"&&(W(l)?o==null&&(o=1):o=0)},e,s,10):o=vt(n)?n:n?1:0,!i&&o===1&&(i=[],Cc(function(l,f){i[f]=l!=null?l+"":""},e,s,1/0)),a=i?i.length:e===Ai?s.length:s[0]?s[0].length:null}else if(t===_e)i||(i=Tb(r));else if(t===$e)i||(i=[],M(r,function(l,f){i.push(f)}));else if(t===me){var u=Ga(r[0]);a=z(u)&&u.length||1}return{startIndex:o,dimensionsDefine:Tc(i),dimensionsDetectedCount:a}}function Tb(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return yt(e)}function Tc(r){if(r){var t=Z();return G(r,function(e,n){e=Y(e)?e:{name:e};var i={name:e.name,displayName:e.displayName,type:e.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function Cc(r,t,e,n){if(t===Ai)for(var i=0;i<e.length&&i<n;i++)r(e[i]?e[i][0]:null,i);else for(var a=e[0]||[],i=0;i<a.length&&i<n;i++)r(a[i],i)}function vm(r){var t=r.sourceFormat;return t===_e||t===$e}var nn,an,on,Mc,Ac,cm=(function(){function r(t,e){var n=Mh(t)?t:fm(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Lr&&(this._offset=0,this._dimSize=e,this._data=i),Ac(this,i,n)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=(function(){var t=r.prototype;t.pure=!1,t.persistent=!0})(),r.internalField=(function(){var t;Ac=function(o,s,u){var l=u.sourceFormat,f=u.seriesLayoutBy,h=u.startIndex,c=u.dimensionsDefine,v=Mc[Ah(l,f)];if(B(o,v),l===Lr)o.getItem=e,o.count=i,o.fillStorage=n;else{var d=dm(l,f);o.getItem=ht(d,null,s,h,c);var p=pm(l,f);o.count=ht(p,null,s,h,c)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var u=this._data,l=this._dimSize,f=l*o,h=0;h<l;h++)s[h]=u[f+h];return s},n=function(o,s,u,l){for(var f=this._data,h=this._dimSize,c=0;c<h;c++){for(var v=l[c],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],g=s-o,y=u[c],m=0;m<g;m++){var _=f[m*h+c];y[o+m]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};Mc=(t={},t[$t+"_"+We]={pure:!0,appendData:a},t[$t+"_"+Ai]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[_e]={pure:!0,appendData:a},t[$e]={pure:!0,appendData:function(o){var s=this._data;M(o,function(u,l){for(var f=s[l]||(s[l]=[]),h=0;h<(u||[]).length;h++)f.push(u[h])})}},t[me]={appendData:a},t[Lr]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),Dc=function(r,t,e,n){return r[n]},Cb=(nn={},nn[$t+"_"+We]=function(r,t,e,n){return r[n+t]},nn[$t+"_"+Ai]=function(r,t,e,n,i){n+=t;for(var a=i||[],o=r,s=0;s<o.length;s++){var u=o[s];a[s]=u?u[n]:null}return a},nn[_e]=Dc,nn[$e]=function(r,t,e,n,i){for(var a=i||[],o=0;o<e.length;o++){var s=e[o].name,u=r[s];a[o]=u?u[n]:null}return a},nn[me]=Dc,nn);function dm(r,t){var e=Cb[Ah(r,t)];return e}var Ic=function(r,t,e){return r.length},Mb=(an={},an[$t+"_"+We]=function(r,t,e){return Math.max(0,r.length-t)},an[$t+"_"+Ai]=function(r,t,e){var n=r[0];return n?Math.max(0,n.length-t):0},an[_e]=Ic,an[$e]=function(r,t,e){var n=e[0].name,i=r[n];return i?i.length:0},an[me]=Ic,an);function pm(r,t){var e=Mb[Ah(r,t)];return e}var Nu=function(r,t,e){return r[t]},Ab=(on={},on[$t]=Nu,on[_e]=function(r,t,e){return r[e]},on[$e]=Nu,on[me]=function(r,t,e){var n=Ga(r);return n instanceof Array?n[t]:n},on[Lr]=Nu,on);function gm(r){var t=Ab[r];return t}function Ah(r,t){return r===$t?r+"_"+t:r}function pi(r,t,e){if(r){var n=r.getRawDataItem(t);if(n!=null){var i=r.getStore(),a=i.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=i.getDimensionProperty(o);return gm(a)(n,o,s)}else{var u=n;return a===me&&(u=Ga(n)),u}}}}var Db=(function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function Ib(r,t){var e={},n=e.encode={},i=Z(),a=[],o=[],s={};M(r.dimensions,function(c){var v=r.getDimensionInfo(c),d=v.coordDim;if(d){var p=v.coordDimIndex;Bu(n,d)[p]=c,v.isExtraCoord||(i.set(d,1),Pb(v.type)&&(a[0]=c),Bu(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}am.each(function(g,y){var m=Bu(n,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var u=[],l={};i.each(function(c,v){var d=n[v];l[v]=d[0],u=u.concat(d)}),e.dataDimsOnCoord=u,e.dataDimIndicesOnCoord=G(u,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=l;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,e.userOutput=new Db(s,t),e}function Bu(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function Lb(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function Pb(r){return!(r==="ordinal"||r==="time")}var Vo=(function(){function r(t){this.otherDims={},t!=null&&B(this,t)}return r})();function Ho(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!vt(r)&&r!=null&&r!=="-"&&(r=+lr(r)),r==null||r===""?NaN:Number(r))}var Rb=Z({number:function(r){return parseFloat(r)},time:function(r){return+lr(r)},trim:function(r){return W(r)?ze(r):r}});function ym(r){return Rb.get(r)}var mm={lt:function(r,t){return r<t},lte:function(r,t){return r<=t},gt:function(r,t){return r>t},gte:function(r,t){return r>=t}},Eb=(function(){function r(t,e){if(!vt(e)){var n="";ot(n)}this._opFn=mm[t],this._rvalFloat=kr(e)}return r.prototype.evaluate=function(t){return vt(t)?this._opFn(t,this._rvalFloat):this._opFn(kr(t),this._rvalFloat)},r})(),_m=(function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=vt(t)?t:kr(t),i=vt(e)?e:kr(e),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=W(t),u=W(e);s&&(n=u?t:0),u&&(i=s?e:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},r})(),kb=(function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=kr(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=kr(t)===this._rvalFloat)}return this._isEQ?e:!e},r})();function Ob(r,t){return r==="eq"||r==="ne"?new kb(r==="eq",t):Ye(mm,r)?new Eb(r,t):null}var Zs="undefined",Nb=typeof Uint32Array===Zs?Array:Uint32Array,Bb=typeof Uint16Array===Zs?Array:Uint16Array,Sm=typeof Int32Array===Zs?Array:Int32Array,Lc=typeof Float64Array===Zs?Array:Float64Array,xm={float:Lc,int:Sm,ordinal:Array,number:Array,time:Lc},Fu;function On(r){return r>65535?Nb:Bb}function Nn(){return[1/0,-1/0]}function Fb(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Pc(r,t,e,n,i){var a=xm[e||"float"];if(i){var o=r[t],s=o&&o.length;if(s!==n){for(var u=new a(n),l=0;l<s;l++)u[l]=o[l];r[t]=u}}else r[t]=new a(n)}var lf=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Z()}return r.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=Fu[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],vm(i),this._dimensions=G(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,a=n.get(t);if(a!=null){if(i[a].type===e)return a}else a=i.length;return i[a]={type:e},n.set(t,a),this._chunks[a]=new xm[e||"float"](this._rawCount),this._rawExtent[a]=Nn(),a},r.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Nn());for(var u=a[t],l=o;l<s;l++){var f=n[l]=e.parseAndCollect(n[l]);isNaN(f)||(u[0]=Math.min(f,u[0]),u[1]=Math.max(f,u[1]))}i.ordinalMeta=e,i.ordinalOffset=s,i.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],n=e.ordinalMeta;return n},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,n=this.count();e.appendData(t);var i=e.count();return e.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},r.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,a=i.length,o=this._rawExtent,s=this.count(),u=s+Math.max(t.length,e||0),l=0;l<a;l++){var f=i[l];Pc(n,l,f.type,u,!0)}for(var h=[],c=s;c<u;c++)for(var v=c-s,d=0;d<a;d++){var f=i[d],p=Fu.arrayRows.call(this,t[v]||h,f.property,v,d);n[d][c]=p;var g=o[d];p<g[0]&&(g[0]=p),p>g[1]&&(g[1]=p)}return this._rawCount=this._count=u,{start:s,end:u}},r.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,u=this._rawExtent,l=G(o,function(m){return m.property}),f=0;f<s;f++){var h=o[f];u[f]||(u[f]=Nn()),Pc(a,f,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,a,u);else for(var c=[],v=t;v<e;v++){c=i.getItem(v,c);for(var d=0;d<s;d++){var p=a[d],g=this._dimValueGetter(c,l[d],v,d);p[v]=g;var y=u[d];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var n=[],i=[];if(e==null){e=t,t=[];for(var a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],e));return n},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var n=this._chunks[t];return n?n[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],n=0;if(e)for(var i=0,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},r.prototype.getMedian=function(t){var e=[];this.each([t],function(a){isNaN(a)||e.push(a)});var n=e.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(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(e[o]<t)i=o+1;else if(e[o]>t)a=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,u=-1,l=0,f=0,h=this.count();f<h;f++){var c=this.getRawIndex(f),v=e-a[c],d=Math.abs(v);d<=n&&((d<s||d===s&&v>=0&&u<0)&&(s=d,u=v,l=0),v===u&&(o[l++]=f))}return o.length=l,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a<i;a++)t[a]=e[a]}else t=new n(e.buffer,0,i)}else{var n=On(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=On(n._rawCount),o=new a(i),s=[],u=t.length,l=0,f=t[0],h=n._chunks,c=0;c<i;c++){var v=void 0,d=n.getRawIndex(c);if(u===0)v=e(c);else if(u===1){var p=h[f][d];v=e(p,c)}else{for(var g=0;g<u;g++)s[g]=h[t[g]][d];s[g]=c,v=e.apply(null,s)}v&&(o[l++]=d)}return l<i&&(n._indices=o),n._count=l,n._extent=[],n._updateGetRawIdx(),n},r.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=yt(t),a=i.length;if(!a)return this;var o=e.count(),s=On(e._rawCount),u=new s(o),l=0,f=i[0],h=t[f][0],c=t[f][1],v=e._chunks,d=!1;if(!e._indices){var p=0;if(a===1){for(var g=v[i[0]],y=0;y<n;y++){var m=g[y];(m>=h&&m<=c||isNaN(m))&&(u[l++]=p),p++}d=!0}else if(a===2){for(var g=v[i[0]],_=v[i[1]],S=t[i[1]][0],w=t[i[1]][1],y=0;y<n;y++){var m=g[y],x=_[y];(m>=h&&m<=c||isNaN(m))&&(x>=S&&x<=w||isNaN(x))&&(u[l++]=p),p++}d=!0}}if(!d)if(a===1)for(var y=0;y<o;y++){var b=e.getRawIndex(y),m=v[i[0]][b];(m>=h&&m<=c||isNaN(m))&&(u[l++]=b)}else for(var y=0;y<o;y++){for(var T=!0,b=e.getRawIndex(y),C=0;C<a;C++){var A=i[C],m=v[A][b];(m<t[A][0]||m>t[A][1])&&(T=!1)}T&&(u[l++]=e.getRawIndex(y))}return l<o&&(e._indices=u),e._count=l,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,n){for(var i=t._chunks,a=[],o=e.length,s=t.count(),u=[],l=t._rawExtent,f=0;f<e.length;f++)l[e[f]]=Nn();for(var h=0;h<s;h++){for(var c=t.getRawIndex(h),v=0;v<o;v++)u[v]=i[e[v]][c];u[o]=h;var d=n&&n.apply(null,u);if(d!=null){typeof d!="object"&&(a[0]=d,d=a);for(var f=0;f<d.length;f++){var p=e[f],g=d[f],y=l[p],m=i[p];m&&(m[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},r.prototype.lttbDownSample=function(t,e){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,u=Math.floor(1/e),l=this.getRawIndex(0),f,h,c,v=new(On(this._rawCount))(Math.min((Math.ceil(o/u)+2)*2,o));v[s++]=l;for(var d=1;d<o-1;d+=u){for(var p=Math.min(d+u,o-1),g=Math.min(d+u*2,o),y=(g+p)/2,m=0,_=p;_<g;_++){var S=this.getRawIndex(_),w=a[S];isNaN(w)||(m+=w)}m/=g-p;var x=d,b=Math.min(d+u,o),T=d-1,C=a[l];f=-1,c=x;for(var A=-1,D=0,_=x;_<b;_++){var S=this.getRawIndex(_),w=a[S];if(isNaN(w)){D++,A<0&&(A=S);continue}h=Math.abs((T-y)*(w-C)-(T-_)*(m-C)),h>f&&(f=h,c=S)}D>0&&D<b-x&&(v[s++]=Math.min(A,c),c=Math.max(A,c)),v[s++]=c,l=c}return v[s++]=this.getRawIndex(o-1),n._count=s,n._indices=v,n.getRawIndex=this._getRawIdx,n},r.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,a=Math.floor(1/e),o=i[t],s=this.count(),u=new(On(this._rawCount))(Math.ceil(s/a)*2),l=0,f=0;f<s;f+=a){var h=f,c=o[this.getRawIndex(h)],v=f,d=o[this.getRawIndex(v)],p=a;f+a>s&&(p=s-f);for(var g=0;g<p;g++){var y=this.getRawIndex(f+g),m=o[y];m<c&&(c=m,h=f+g),m>d&&(d=m,v=f+g)}var _=this.getRawIndex(h),S=this.getRawIndex(v);h<v?(u[l++]=_,u[l++]=S):(u[l++]=S,u[l++]=_)}return n._count=l,n._indices=u,n._updateGetRawIdx(),n},r.prototype.downSample=function(t,e,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],u=Math.floor(1/e),l=o[t],f=this.count(),h=a._rawExtent[t]=Nn(),c=new(On(this._rawCount))(Math.ceil(f/u)),v=0,d=0;d<f;d+=u){u>f-d&&(u=f-d,s.length=u);for(var p=0;p<u;p++){var g=this.getRawIndex(d+p);s[p]=l[g]}var y=n(s),m=this.getRawIndex(Math.min(d+i(s,y)||0,f-1));l[m]=y,y<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[v++]=m}return a._count=v,a._indices=c,a._updateGetRawIdx(),a},r.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:e(a);break;case 1:e(i[t[0]][s],a);break;case 2:e(i[t[0]][s],i[t[1]][s],a);break;default:for(var u=0,l=[];u<n;u++)l[u]=i[t[u]][s];l[u]=a,e.apply(null,l)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Nn();if(!e)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],u=o[1],l=0;l<i;l++){var f=this.getRawIndex(l),h=e[f];h<s&&(s=h),h>u&&(u=h)}return o=[s,u],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,a=0;a<i.length;a++)n.push(i[a][e]);return n},r.prototype.clone=function(t,e){var n=new r,i=this._chunks,a=t&&Pr(t,function(s,u){return s[u]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?Fb(i[o]):i[o];else n._chunks=i;return this._copyCommonProps(n),e||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=J(this._extent),t._rawExtent=J(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var n=this._indices.length;e=new t(n);for(var i=0;i<n;i++)e[i]=this._indices[i]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,n,i,a){return Ho(e[a],this._dimensions[a])}Fu={arrayRows:t,objectRows:function(e,n,i,a){return Ho(e[n],this._dimensions[a])},keyedColumns:t,original:function(e,n,i,a){var o=e&&(e.value==null?e:e.value);return Ho(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(e,n,i,a){return e[a]}}})(),r})(),zb=mt(),Gb={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},wm=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Cm(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return j(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=vm(this.source),n=!Mm(t),i="",a=[],o=0,s=0;o<t;o++){var u=void 0,l=void 0,f=void 0,h=this.dimensions[s];if(h&&h.storeDimIndex===o)u=e?h.name:null,l=h.type,f=h.ordinalMeta,s++;else{var c=this.getSourceDimension(o);c&&(u=e?c.name:null,l=c.type)}a.push({property:u,type:l,ordinalMeta:f}),e&&u!=null&&(!h||!h.isCalculationCoord)&&(i+=n?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),i+="$",i+=Gb[l]||"f",f&&(i+=f.uid),i+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,i].join("$$");return{dimensions:a,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===e)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function bm(r){return r instanceof wm}function Tm(r){for(var t=Z(),e=0;e<(r||[]).length;e++){var n=r[e],i=Y(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,e)}return t}function Cm(r){var t=zb(r);return t.dimNameMap||(t.dimNameMap=Tm(r.dimensionsDefine))}function Mm(r){return r>30}var Fi=Y,pr=G,Vb=typeof Int32Array>"u"?Array:Int32Array,Hb="e\0\0",Rc=-1,Wb=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Ub=["_approximateExtent"],Ec,lo,zi,Gi,zu,Vi,Gu,Am=(function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;bm(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var h=n[f],c=W(h)?new Vo({name:h}):h instanceof Vo?h:new Vo(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,l[v]!=null&&(u=!0),c.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),i&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=Z();M(o,function(g){p.set(a[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var n=this._dimIdxToName.get(e);if(n!=null)return n;var i=this._schema.getSourceDimension(e);if(i)return i.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(vt(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var i=this,a;if(t instanceof lf&&(a=t),!a){var o=this.dimensions,s=Mh(t)||Zt(t)?new cm(t,o.length):t;a=new lf;var u=pr(o,function(l){return{type:i._dimInfos[l].type,property:l}});a.initData(s,u,n)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=Ib(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var n=this._store.appendValues(t,e&&e.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s<a;s++){var u=s-i;this._nameList[s]=e[u],o&&Gu(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Lr&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===me;if(u&&!i.pure)for(var l=[],f=t;f<e;f++){var h=i.getItem(f,l);if(!this.hasItemOption&&Hx(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=He(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=He(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Gu(this,f);Ec(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Fi(t)?B(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=zi(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},r.prototype.getId=function(t){return lo(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var n=this,i=this._store;return z(t)?i.getValues(pr(t,function(a){return n._getStoreDimIndex(a)}),e):i.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var n=t&&this._invertedIndicesMap[t],i=n&&n[e];return i==null||isNaN(i)?Rc:i},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){q(t)&&(n=e,e=t,t=[]);var i=n||this,a=pr(Gi(t),this._getStoreDimIndex,this);this._store.each(a,i?ht(e,i):e)},r.prototype.filterSelf=function(t,e,n){q(t)&&(n=e,e=t,t=[]);var i=n||this,a=pr(Gi(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?ht(e,i):e),this},r.prototype.selectRange=function(t){var e=this,n={},i=yt(t);return M(i,function(a){var o=e._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){q(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},r.prototype.map=function(t,e,n,i){var a=n||i||this,o=pr(Gi(t),this._getStoreDimIndex,this),s=Vi(this);return s._store=this._store.map(o,a?ht(e,a):e),s},r.prototype.modify=function(t,e,n,i){var a=n||i||this,o=pr(Gi(t),this._getStoreDimIndex,this);this._store.modify(o,a?ht(e,a):e)},r.prototype.downSample=function(t,e,n,i){var a=Vi(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),a},r.prototype.minmaxDownSample=function(t,e){var n=Vi(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},r.prototype.lttbDownSample=function(t,e){var n=Vi(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new St(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new Ia(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return lo(t,n)},function(n){return lo(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Fi(t)?B(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return i??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),z(a)?a=a.slice():Fi(a)&&(a=B({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Fi(e)?B(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Fi(t)?B(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;nw(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){M(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:pr(this.dimensions,this._getDimInfo,this),this.hostModel)),zu(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];q(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(ah(arguments)))})},r.internalField=(function(){Ec=function(t){var e=t._invertedIndicesMap;M(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new Vb(o.categories.length);for(var u=0;u<n.length;u++)n[u]=Rc;for(var u=0;u<s.count();u++)n[s.get(a.storeDimIndex,u)]=u}})},zi=function(t,e,n){return He(t._getCategory(e,n),null)},lo=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=zi(t,t._idDimIdx,e)),n==null&&(n=Hb+e),n},Gi=function(t){return z(t)||(t=t!=null?[t]:[]),t},Vi=function(t){var e=new r(t._schema?t._schema:pr(t.dimensions,t._getDimInfo,t),t.hostModel);return zu(e,t),e},zu=function(t,e){M(Wb.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,M(Ub,function(n){t[n]=J(e[n])}),t._calculationInfo=B({},e._calculationInfo)},Gu=function(t,e){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[e],u=i[e];if(s==null&&a!=null&&(n[e]=s=zi(t,a,e)),u==null&&o!=null&&(i[e]=u=zi(t,o,e)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),i[e]=u}}})(),r})();function Dm(r,t){Mh(r)||(r=fm(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=Z(),a=[],o=Xb(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Mm(o),u=n===r.dimensionsDefine,l=u?Cm(r):Tm(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=Z(f),c=new Sm(o),v=0;v<c.length;v++)c[v]=-1;function d(C){var A=c[C];if(A<0){var D=n[C],I=Y(D)?D:{name:D},L=new Vo,P=I.name;P!=null&&l.get(P)!=null&&(L.name=L.displayName=P),I.type!=null&&(L.type=I.type),I.displayName!=null&&(L.displayName=I.displayName);var R=a.length;return c[C]=R,L.storeDimIndex=C,a.push(L),L}return a[A]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(C,A){var D=Mt(C).slice();if(D.length===1&&!W(D[0])&&D[0]<0){h.set(A,!1);return}var I=h.set(A,[]);M(D,function(L,P){var R=W(L)?l.get(L):L;R!=null&&R<o&&(I[P]=R,g(d(R),A,P))})});var p=0;M(e,function(C){var A,D,I,L;if(W(C))A=C,L={};else{L=C,A=L.name;var P=L.ordinalMeta;L.ordinalMeta=null,L=B({},L),L.ordinalMeta=P,D=L.dimsDef,I=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var R=h.get(A);if(R!==!1){if(R=Mt(R),!R.length)for(var E=0;E<(D&&D.length||1);E++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&R.push(p++)}M(R,function(F,k){var O=d(F);if(u&&L.type!=null&&(O.type=L.type),g(K(O,L),A,k),O.name==null&&D){var V=D[k];!Y(V)&&(V={name:V}),O.name=O.displayName=V.name,O.defaultTooltip=V.defaultTooltip}I&&K(O.otherDims,I)})}});function g(C,A,D){am.get(A)!=null?C.otherDims[A]=D:(C.coordDim=A,C.coordDimIndex=D,i.set(A,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var S=y||"value";function w(C){C.name==null&&(C.name=C.coordDim)}if(s)M(a,function(C){w(C)}),a.sort(function(C,A){return C.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var b=d(x),T=b.coordDim;T==null&&(b.coordDim=Zb(S,i,_),b.coordDimIndex=0,(!y||m<=0)&&(b.isExtraCoord=!0),m--),w(b),b.type==null&&(um(r,x)===kt.Must||b.isExtraCoord&&(b.otherDims.itemName!=null||b.otherDims.seriesName!=null))&&(b.type="ordinal")}return Yb(a),new wm({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Yb(r){for(var t=Z(),e=0;e<r.length;e++){var n=r[e],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Xb(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return M(t,function(a){var o;Y(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Zb(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var Vu={},Dh=(function(){function r(){this._coordinateSystems=[]}return r.prototype.create=function(t,e){var n=[];M(Vu,function(i,a){var o=i.create(t,e);n=n.concat(o||[])}),this._coordinateSystems=n},r.prototype.update=function(t,e){M(this._coordinateSystems,function(n){n.update&&n.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},r.register=function(t,e){Vu[t]=e},r.get=function(t){return Vu[t]},r})(),$b=(function(){function r(t){this.coordSysDims=[],this.axisMap=Z(),this.categoryAxisMap=Z(),this.coordSysName=t}return r})();function qb(r){var t=r.get("coordinateSystem"),e=new $b(t),n=Kb[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var Kb={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",Yt).models[0],a=r.getReferringComponents("yAxis",Yt).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),Bn(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Bn(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",Yt).models[0];t.coordSysDims=["single"],e.set("single",i),Bn(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",Yt).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Bn(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Bn(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();M(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];e.set(f,l),Bn(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})}};function Bn(r){return r.get("type")==="category"}function Qb(r,t,e){e=e||{};var n=e.byIndex,i=e.stackedCoordDimension,a,o,s;Jb(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var u=!!(r&&r.get("stack")),l,f,h,c;if(M(a,function(m,_){W(m)&&(a[_]=m={name:m}),u&&!m.isExtraCoord&&(!n&&!l&&m.ordinalMeta&&(l=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!i||i===m.coordDim)&&(f=m))}),f&&!n&&!l&&(n=!0),f){h="__\0ecstackresult_"+r.id,c="__\0ecstackedover_"+r.id,l&&(l.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;M(a,function(m){m.coordDim===v&&p++});var g={name:h,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:c,coordDim:c,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(c,d),y.storeDimIndex=s.ensureCalculationDimension(h,d)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(a.push(g),a.push(y))}return{stackedDimension:f&&f.name,stackedByDimension:l&&l.name,isStackedByIndex:n,stackedOverDimension:c,stackResultDimension:h}}function Jb(r){return!bm(r.schema)}function gi(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function jb(r,t){return gi(r,t)?r.getCalculationInfo("stackResultDimension"):t}function tT(r,t){var e=r.get("coordinateSystem"),n=Dh.get(e),i;return t&&t.coordSysDims&&(i=G(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=Lb(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function eT(r,t,e){var n,i;return e&&M(r,function(a,o){var s=a.coordDim,u=e.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function Ih(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;i=n.getSource(),a=i.sourceFormat===me;var o=qb(t),s=tT(t,o),u=e.useEncodeDefaulter,l=q(u)?u:u?ft(_b,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=Dm(i,f),c=eT(h.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=Qb(t,{schema:h,store:v}),p=new Am(h,t);p.setCalculationInfo(d);var g=c!=null&&rT(i)?function(y,m,_,S){return S===c?_:this.defaultDimValueGetter(y,m,_,S)}:null;return p.hasItemOption=!1,p.initData(a?i:v,null,g),p}function rT(r){if(r.sourceFormat===me){var t=nT(r.data||[]);return!z(Ga(t))}}function nT(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var iT=Math.round(Math.random()*10);function Ua(r){return[r||"",iT++].join("_")}function aT(r){var t={};r.registerSubTypeDefaulter=function(e,n){var i=Ge(e);t[i.main]=n},r.determineSubType=function(e,n){var i=n.type;if(!i){var a=Ge(e).main;r.hasSubTypes(e)&&t[a]&&(i=t[a](n))}return i}}function oT(r,t){r.topologicalTravel=function(a,o,s,u){if(!a.length)return;var l=e(o),f=l.graph,h=l.noEntryList,c={};for(M(a,function(m){c[m]=!0});h.length;){var v=h.pop(),d=f[v],p=!!c[v];p&&(s.call(u,v,d.originalDeps.slice()),delete c[v]),M(d.successor,p?y:g)}M(c,function(){var m="";throw new Error(m)});function g(m){f[m].entryCount--,f[m].entryCount===0&&h.push(m)}function y(m){c[m]=!0,g(m)}};function e(a){var o={},s=[];return M(a,function(u){var l=n(o,u),f=l.originalDeps=t(u),h=i(f,a);l.entryCount=h.length,l.entryCount===0&&s.push(u),M(h,function(c){nt(l.predecessor,c)<0&&l.predecessor.push(c);var v=n(o,c);nt(v.successor,c)<0&&v.successor.push(u)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return M(a,function(u){nt(o,u)>=0&&s.push(u)}),s}}function Im(r,t){return tt(tt({},r,!0),t,!0)}var sT=Math.log(2);function ff(r,t,e,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var u=Math.round(Math.log((1<<s)-1&~i)/sT);return r[e][u]}for(var l=n|1<<e,f=e+1;n&1<<f;)f++;for(var h=0,c=0,v=0;c<s;c++){var d=1<<c;d&i||(h+=(v%2?-1:1)*r[e][c]*ff(r,t-1,f,l,i|d,a),v++)}return a[o]=h,h}function kc(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},i=ff(e,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)*ff(e,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(u,l,f){var h=l*a[6]+f*a[7]+1;u[0]=(l*a[0]+f*a[1]+a[2])/h,u[1]=(l*a[3]+f*a[4]+a[5])/h}}}var Oc="___zrEVENTSAVED",Hu=[];function uT(r,t,e,n,i){return hf(Hu,t,n,i,!0)&&hf(r,e,Hu[0],Hu[1])}function hf(r,t,e,n,i){if(t.getBoundingClientRect&&Q.domSupported&&!Lm(t)){var a=t[Oc]||(t[Oc]={}),o=lT(t,a),s=fT(o,a,i);if(s)return s(r,e,n),!0}return!1}function lT(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,u=a%2,l=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[u]+":0",i[l]+":0",n[1-u]+":auto",i[1-l]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function fT(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],u=!0,l=0;l<4;l++){var f=r[l].getBoundingClientRect(),h=2*l,c=f.left,v=f.top;o.push(c,v),u=u&&a&&c===a[h]&&v===a[h+1],s.push(r[l].offsetLeft,r[l].offsetTop)}return u&&i?i:(t.srcCoords=o,t[n]=e?kc(s,o):kc(o,s))}function Lm(r){return r.nodeName.toUpperCase()==="CANVAS"}var hT=/([&<>"'])/g,vT={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ee(r){return r==null?"":(r+"").replace(hT,function(t,e){return vT[e]})}const cT={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:". "}}}},dT={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 vs="ZH",Lh="EN",oi=Lh,Wo={},Ph={},Pm=Q.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||oi).toUpperCase();return r.indexOf(vs)>-1?vs:oi})():oi;function Rm(r,t){r=r.toUpperCase(),Ph[r]=new St(t),Wo[r]=t}function pT(r){if(W(r)){var t=Wo[r.toUpperCase()]||{};return r===vs||r===Lh?J(t):tt(J(t),J(Wo[oi]),!1)}else return tt(J(r),J(Wo[oi]),!1)}function gT(r){return Ph[r]}function yT(){return Ph[oi]}Rm(Lh,cT);Rm(vs,dT);var Rh=1e3,Eh=Rh*60,ya=Eh*60,de=ya*24,Nc=de*365,ia={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},fo="{yyyy}-{MM}-{dd}",Bc={year:"{yyyy}",month:"{yyyy}-{MM}",day:fo,hour:fo+" "+ia.hour,minute:fo+" "+ia.minute,second:fo+" "+ia.second,millisecond:ia.none},Wu=["year","month","day","hour","minute","second","millisecond"],Em=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function gr(r,t){return r+="","0000".substr(0,t-r.length)+r}function si(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 mT(r){return r===si(r)}function _T(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function $s(r,t,e,n){var i=lr(r),a=i[kh(e)](),o=i[ui(e)]()+1,s=Math.floor((o-1)/3)+1,u=i[qs(e)](),l=i["get"+(e?"UTC":"")+"Day"](),f=i[La(e)](),h=(f-1)%12+1,c=i[Ks(e)](),v=i[Qs(e)](),d=i[Js(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),y=n instanceof St?n:gT(n||Pm)||yT(),m=y.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),w=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,gr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,gr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,gr(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,w[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+"").replace(/{HH}/g,gr(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,gr(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,gr(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,gr(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,gr(d,3)).replace(/{S}/g,d+"")}function ST(r,t,e,n,i){var a=null;if(W(e))a=e;else if(q(e))a=e(r.value,t,{level:r.level});else{var o=B({},ia);if(r.level>0)for(var s=0;s<Wu.length;++s)o[Wu[s]]="{primary|"+o[Wu[s]]+"}";var u=e?e.inherit===!1?e:K(e,o):o,l=km(r.value,i);if(u[l])a=u[l];else if(u.inherit){for(var f=Em.indexOf(l),s=f-1;s>=0;--s)if(u[l]){a=u[l];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 $s(new Date(r.value),a,i,n)}function km(r,t){var e=lr(r),n=e[ui(t)]()+1,i=e[qs(t)](),a=e[La(t)](),o=e[Ks(t)](),s=e[Qs(t)](),u=e[Js(t)](),l=u===0,f=l&&s===0,h=f&&o===0,c=h&&a===0,v=c&&i===1,d=v&&n===1;return d?"year":v?"month":c?"day":h?"hour":f?"minute":l?"second":"millisecond"}function Fc(r,t,e){var n=vt(r)?lr(r):r;switch(t=t||km(r,e),t){case"year":return n[kh(e)]();case"half-year":return n[ui(e)]()>=6?1:0;case"quarter":return Math.floor((n[ui(e)]()+1)/4);case"month":return n[ui(e)]();case"day":return n[qs(e)]();case"half-day":return n[La(e)]()/24;case"hour":return n[La(e)]();case"minute":return n[Ks(e)]();case"second":return n[Qs(e)]();case"millisecond":return n[Js(e)]()}}function kh(r){return r?"getUTCFullYear":"getFullYear"}function ui(r){return r?"getUTCMonth":"getMonth"}function qs(r){return r?"getUTCDate":"getDate"}function La(r){return r?"getUTCHours":"getHours"}function Ks(r){return r?"getUTCMinutes":"getMinutes"}function Qs(r){return r?"getUTCSeconds":"getSeconds"}function Js(r){return r?"getUTCMilliseconds":"getMilliseconds"}function xT(r){return r?"setUTCFullYear":"setFullYear"}function Om(r){return r?"setUTCMonth":"setMonth"}function Nm(r){return r?"setUTCDate":"setDate"}function Bm(r){return r?"setUTCHours":"setHours"}function Fm(r){return r?"setUTCMinutes":"setMinutes"}function zm(r){return r?"setUTCSeconds":"setSeconds"}function Gm(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Vm(r){if(!Vx(r))return W(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Hm(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var js=Wg;function vf(r,t,e){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=t==="time",s=r instanceof Date;if(o||s){var u=o?lr(r):r;if(isNaN(+u)){if(s)return"-"}else return $s(u,n,e)}if(t==="ordinal")return Nl(r)?i(r):vt(r)&&a(r)?r+"":"-";var l=kr(r);return a(l)?Vm(l):Nl(r)?i(r):typeof r=="boolean"?r+"":"-"}var zc=["a","b","c","d","e","f","g"],Uu=function(r,t){return"{"+r+(t??"")+"}"};function Wm(r,t,e){z(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=zc[a];r=r.replace(Uu(o),Uu(o,0))}for(var s=0;s<n;s++)for(var u=0;u<i.length;u++){var l=t[s][i[u]];r=r.replace(Uu(zc[u],s),e?ee(l):l)}return r}function wT(r,t){var e=W(r)?{color:r,extraCssText:t}:r||{},n=e.color,i=e.type;t=e.extraCssText;var a=e.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:'+ee(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ee(n)+";"+(t||"")+'"></span>';var o=e.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 Sn(r,t){return t=t||"transparent",W(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function Gc(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Uo=M,bT=["left","right","top","bottom","width","height"],ho=[["width","left","right"],["height","top","bottom"]];function Oh(r,t,e,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(u,l){var f=u.getBoundingRect(),h=t.childAt(l+1),c=h&&h.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(c?-c.x+f.x:0);v=a+p,v>n||u.newline?(a=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(c?-c.y+f.y:0);d=o+g,d>i||u.newline?(a+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}u.newline||(u.x=a,u.y=o,u.markRedraw(),r==="horizontal"?a=v+e:o=d+e)})}var li=Oh;ft(Oh,"vertical");ft(Oh,"horizontal");function Br(r,t,e){e=js(e||0);var n=t.width,i=t.height,a=pt(r.left,n),o=pt(r.top,i),s=pt(r.right,n),u=pt(r.bottom,i),l=pt(r.width,n),f=pt(r.height,i),h=e[2]+e[0],c=e[1]+e[3],v=r.aspect;switch(isNaN(l)&&(l=n-s-c-a),isNaN(f)&&(f=i-u-h-o),v!=null&&(isNaN(l)&&isNaN(f)&&(v>n/i?l=n*.8:f=i*.8),isNaN(l)&&(l=v*f),isNaN(f)&&(f=l/v)),isNaN(a)&&(a=n-s-l-c),isNaN(o)&&(o=i-u-f-h),r.left||r.right){case"center":a=n/2-l/2-e[3];break;case"right":a=n-l-c;break}switch(r.top||r.bottom){case"middle":case"center":o=i/2-f/2-e[0];break;case"bottom":o=i-f-h;break}a=a||0,o=o||0,isNaN(l)&&(l=n-c-a-(s||0)),isNaN(f)&&(f=i-h-o-(u||0));var d=new st(a+e[3],o+e[0],l,f);return d.margin=e,d}function TT(r,t,e,n,i,a){a=a||r,a.x=r.x,a.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var u=Br(K({width:o.width,height:o.height},t),e,n),l=u.x-o.x,f=u.y-o.y;return a.x+=l,a.y+=f,a===r&&r.markRedraw(),!0}function Pa(r){var t=r.layoutMode||r.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function yi(r,t,e){var n=e&&e.ignoreSize;!z(n)&&(n=[n,n]);var i=o(ho[0],0),a=o(ho[1],1);l(ho[0],r,i),l(ho[1],r,a);function o(f,h){var c={},v=0,d={},p=0,g=2;if(Uo(f,function(_){d[_]=r[_]}),Uo(f,function(_){s(t,_)&&(c[_]=d[_]=t[_]),u(c,_)&&v++,u(d,_)&&p++}),n[h])return u(t,f[1])?d[f[2]]=null:u(t,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return c;for(var y=0;y<f.length;y++){var m=f[y];if(!s(c,m)&&s(r,m)){c[m]=r[m];break}}return c}function s(f,h){return f.hasOwnProperty(h)}function u(f,h){return f[h]!=null&&f[h]!=="auto"}function l(f,h,c){Uo(f,function(v){h[v]=c[v]})}}function tu(r){return CT({},r)}function CT(r,t){return t&&r&&Uo(bT,function(e){t.hasOwnProperty(e)&&(r[e]=t[e])}),r}var MT=mt(),lt=(function(r){N(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.uid=Ua("ec_cpt_model"),a}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Pa(this),a=i?tu(e):{},o=n.getTheme();tt(e,o.get(this.mainType)),tt(e,this.getDefaultOption()),i&&yi(e,a,i)},t.prototype.mergeOption=function(e,n){tt(this.option,e,!0);var i=Pa(this);i&&yi(this.option,e,i)},t.prototype.optionUpdated=function(e,n){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!uS(e))return e.defaultOption;var n=MT(this);if(!n.defaultOption){for(var i=[],a=e;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},u=i.length-1;u>=0;u--)s=tt(s,i[u],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var i=e+"Index",a=e+"Id";return Va(this.ecModel,e,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(St);$g(lt,St);Ls(lt);aT(lt);oT(lt,AT);function AT(r){var t=[];return M(lt.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=G(t,function(e){return Ge(e).main}),r!=="dataset"&&nt(t,"dataset")<=0&&t.unshift("dataset"),t}var Vc=mt();mt();var Nh=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,n){var i=Mt(this.get("color",!0)),a=this.get("colorLayer",!0);return IT(this,Vc,i,a,t,e,n)},r.prototype.clearColorPalette=function(){LT(this,Vc)},r})();function DT(r,t){for(var e=r.length,n=0;n<e;n++)if(r[n].length>t)return r[n];return r[e-1]}function IT(r,t,e,n,i,a,o){a=a||r;var s=t(a),u=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var f=o==null||!n?e:DT(n,o);if(f=f||e,!(!f||!f.length)){var h=f[u];return i&&(l[i]=h),s.paletteIdx=(u+1)%f.length,h}}function LT(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var PT=/\{@(.+?)\}/g,RT=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),u=n.getItemVisual(t,"style"),l=u&&u[n.getItemVisual(t,"drawType")||"fill"],f=u&&u.stroke,h=this.mainType,c=h==="series",v=n.userOutput&&n.userOutput.get();return{componentType:h,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:c?this.subType:null,seriesIndex:this.seriesIndex,seriesId:c?this.id:null,seriesName:c?this.name:null,name:o,dataIndex:a,data:s,dataType:e,value:i,color:l,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,n,i,a,o){e=e||"normal";var s=this.getData(n),u=this.getDataParams(t,n);if(o&&(u.value=o.interpolatedValue),i!=null&&z(u.value)&&(u.value=u.value[i]),!a){var l=s.getItemModel(t);a=l.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(q(a))return u.status=e,u.dimensionIndex=i,a(u);if(W(a)){var f=Wm(a,u);return f.replace(PT,function(h,c){var v=c.length,d=c;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=pi(s,t,d);if(o&&z(o.interpolatedValue)){var g=s.getDimensionIndex(d);g>=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return pi(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r})();function Hc(r){var t,e;return Y(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function ma(r){return new ET(r)}var ET=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var i=this.context;i.data=i.outputData=e.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,u=f(t&&t.modBy),l=t&&t.modDataCount||0;(o!==u||s!==l)&&(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=u,this._modDataCount=l;var c=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(c!=null?this._dueIndex+c:1/0,this._dueEnd);if(!n&&(h||v<d)){var p=this._progress;if(z(p))for(var g=0;g<p.length;g++)this._doProgress(p[g],v,d,u,l);else this._doProgress(p,v,d,u,l)}this._dueIndex=d;var y=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,n,i,a){Wc.reset(e,n,i,a),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Wc.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,n;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(n=e.forceFirstProgress,e=e.progress),z(e)&&!e.length&&(e=null)),this._progress=e,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(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r})(),Wc=(function(){var r,t,e,n,i,a={reset:function(u,l,f,h){t=u,r=l,e=f,n=h,i=Math.ceil(n/e),a.next=e>1&&n>0?s:o}};return a;function o(){return t<r?t++:null}function s(){var u=t%i*e+Math.ceil(t/i),l=t>=r?null:u<n?u:t;return t++,l}})(),kT=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return Ho(t,e)},r})();function OT(r,t){var e=new kT,n=r.data,i=e.sourceFormat=r.sourceFormat,a=r.startIndex,o="";r.seriesLayoutBy!==We&&ot(o);var s=[],u={},l=r.dimensionsDefine;if(l)M(l,function(p,g){var y=p.name,m={index:g,name:y,displayName:p.displayName};if(s.push(m),y!=null){var _="";Ye(u,y)&&ot(_),u[y]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var h=dm(i,We);t.__isBuiltIn&&(e.getRawDataItem=function(p){return h(n,a,s,p)},e.getRawData=ht(NT,null,r)),e.cloneRawData=ht(BT,null,r);var c=pm(i,We);e.count=ht(c,null,n,a,s);var v=gm(i);e.retrieveValue=function(p,g){var y=h(n,a,s,p);return d(y,g)};var d=e.retrieveValueFromItem=function(p,g){if(p!=null){var y=s[g];if(y)return v(p,g,y.name)}};return e.getDimensionInfo=ht(FT,null,s,u),e.cloneAllDimensionInfo=ht(zT,null,s),e}function NT(r){var t=r.sourceFormat;if(!Bh(t)){var e="";ot(e)}return r.data}function BT(r){var t=r.sourceFormat,e=r.data;if(!Bh(t)){var n="";ot(n)}if(t===$t){for(var i=[],a=0,o=e.length;a<o;a++)i.push(e[a].slice());return i}else if(t===_e){for(var i=[],a=0,o=e.length;a<o;a++)i.push(B({},e[a]));return i}}function FT(r,t,e){if(e!=null){if(vt(e)||!isNaN(e)&&!Ye(t,e))return r[e];if(Ye(t,e))return t[e]}}function zT(r){return J(r)}var Um=Z();function GT(r){r=J(r);var t=r.type,e="";t||ot(e);var n=t.split(":");n.length!==2&&ot(e);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),r.__isBuiltIn=i,Um.set(t,r)}function VT(r,t,e){var n=Mt(r),i=n.length,a="";i||ot(a);for(var o=0,s=i;o<s;o++){var u=n[o];t=HT(u,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function HT(r,t,e,n){var i="";t.length||ot(i),Y(r)||ot(i);var a=r.type,o=Um.get(a);o||ot(i);var s=G(t,function(l){return OT(l,o)}),u=Mt(o.transform({upstream:s[0],upstreamList:s,config:J(r.config)}));return G(u,function(l,f){var h="";Y(l)||ot(h),l.data||ot(h);var c=hm(l.data);Bh(c)||ot(h);var v,d=t[0];if(d&&f===0&&!l.dimensions){var p=d.startIndex;p&&(l.data=d.data.slice(0,p).concat(l.data)),v={seriesLayoutBy:We,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:We,sourceHeader:0,dimensions:l.dimensions};return uf(l.data,v,null)})}function Bh(r){return r===$t||r===_e}var Ym=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),n=!!e.length,i,a;if(vo(t)){var o=t,s=void 0,u=void 0,l=void 0;if(n){var f=e[0];f.prepareSource(),l=f.getSource(),s=l.data,u=l.sourceFormat,a=[f._getVersionSign()]}else s=o.get("data",!0),u=ne(s)?Lr:me,a=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},v=j(h.seriesLayoutBy,c.seriesLayoutBy)||null,d=j(h.sourceHeader,c.sourceHeader),p=j(h.dimensions,c.dimensions),g=v!==c.seriesLayoutBy||!!d!=!!c.sourceHeader||p;i=g?[uf(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},u)]:[]}else{var y=t;if(n){var m=this._applyTransform(e);i=m.sourceList,a=m.upstreamSignList}else{var _=y.get("source",!0);i=[uf(_,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},r.prototype._applyTransform=function(t){var e=this._sourceHost,n=e.get("transform",!0),i=e.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&Yc(a)}var o,s=[],u=[];return M(t,function(l){l.prepareSource();var f=l.getSource(i||0),h="";i!=null&&!f&&Yc(h),s.push(f),u.push(l._getVersionSign())}),n?o=VT(n,s,{datasetIndex:e.componentIndex}):i!=null&&(o=[wb(s[0])]),{sourceList:o,upstreamSignList:u}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,n){var i=0,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var u=this._getUpstreamSourceManagers()[0];vo(this._sourceHost)&&u?s=u._innerGetDataStore(t,e,n):(s=new lf,s.initData(new cm(e,t.length),t)),o[n]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(vo(t)){var e=Ch(t);return e?[e.getSourceManager()]:[]}else return G(xb(t),function(n){return n.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,n,i;if(vo(t))e=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;e=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:n,dimensions:i}},r})();function Uc(r){var t=r.option.transform;t&&Qo(r.option.transform)}function vo(r){return r.mainType==="series"}function Yc(r){throw new Error(r)}var WT="line-height:1";function Xm(r){var t=r.lineHeight;return t==null?WT:"line-height:"+ee(t+"")+"px"}function Zm(r,t){var e=r.color||"#6e7079",n=r.fontSize||12,i=r.fontWeight||"400",a=r.color||"#464646",o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+ee(n+"")+"px;color:"+ee(e)+";font-weight:"+ee(i+""),valueStyle:"font-size:"+ee(o+"")+"px;color:"+ee(a)+";font-weight:"+ee(s+"")}:{nameStyle:{fontSize:n,fill:e,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var UT=[0,10,20,30],YT=["",`
`,`

`,`


`];function xn(r,t){return t.type=r,t}function cf(r){return r.type==="section"}function $m(r){return cf(r)?XT:ZT}function qm(r){if(cf(r)){var t=0,e=r.blocks.length,n=e>1||e>0&&!r.noHeader;return M(r.blocks,function(i){var a=qm(i);a>=t&&(t=a+ +(n&&(!a||cf(i)&&!i.noHeader)))}),t}return 0}function XT(r,t,e,n){var i=t.noHeader,a=$T(qm(t)),o=[],s=t.blocks||[];Ue(!s||z(s)),s=s||[];var u=r.orderMode;if(t.sortBlocks&&u){s=s.slice();var l={valueAsc:"asc",valueDesc:"desc"};if(Ye(l,u)){var f=new _m(l[u],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else u==="seriesDesc"&&s.reverse()}M(s,function(p,g){var y=t.valueFormatter,m=$m(p)(y?B(B({},r),{valueFormatter:y}):r,p,g>0?a.html:0,n);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(a.richText):df(n,o.join(""),i?e:a.html);if(i)return h;var c=vf(t.header,"ordinal",r.useUTC),v=Zm(n,r.renderMode).nameStyle,d=Xm(n);return r.renderMode==="richText"?Km(r,c,v)+a.richText+h:df(n,'<div style="'+v+";"+d+';">'+ee(c)+"</div>"+h,e)}function ZT(r,t,e,n){var i=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,u=t.name,l=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],G(S,function(w,x){return vf(w,z(v)?v[x]:v,l)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),c=a?"":vf(u,"ordinal",l),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!a,g=!s&&a,y=Zm(n,i),m=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":h)+(a?"":Km(r,c,m))+(o?"":QT(r,d,p,g,_)):df(n,(s?"":h)+(a?"":qT(c,!s,m))+(o?"":KT(d,p,g,_)),e)}}function Xc(r,t,e,n,i,a){if(r){var o=$m(r),s={useUTC:i,renderMode:e,orderMode:n,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function $T(r){return{html:UT[r],richText:YT[r]}}function df(r,t,e){var n='<div style="clear:both"></div>',i="margin: "+e+"px 0 0",a=Xm(r);return'<div style="'+i+";"+a+';">'+t+n+"</div>"}function qT(r,t,e){var n=t?"margin-left:2px":"";return'<span style="'+e+";"+n+'">'+ee(r)+"</span>"}function KT(r,t,e,n){var i=e?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return r=z(r)?r:[r],'<span style="'+a+";"+n+'">'+G(r,function(o){return ee(o)}).join("&nbsp;&nbsp;")+"</span>"}function Km(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function QT(r,t,e,n,i){var a=[i],o=n?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(t)?t.join("  "):t,a)}function Qm(r,t){var e=r.getData().getItemVisual(t,"style"),n=e[r.visualDrawType];return Sn(n)}function Jm(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Yu=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=xy()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,n){var i=n==="richText"?this._generateStyleName():null,a=wT({color:e,type:t,renderMode:n,markerId:i});return W(a)?a:(this.richTextStyles[i]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var n={};z(e)?M(e,function(a){return B(n,a)}):B(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},r})();function JT(r){var t=r.series,e=r.dataIndex,n=r.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),u=z(s),l=Qm(t,e),f,h,c,v;if(o>1||u&&!o){var d=jT(s,t,e,a,l);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);v=f=pi(i,e,a[0]),h=p.type}else v=f=u?s[0]:s;var g=vh(t),y=g&&t.name||"",m=i.getName(e),_=n?y:m;return xn("section",{header:y,noHeader:n||!g,sortParam:v,blocks:[xn("nameValue",{markerType:"item",markerColor:l,name:_,noName:!ze(_),value:f,valueType:h,dataIndex:e})].concat(c||[])})}function jT(r,t,e,n,i){var a=t.getData(),o=Pr(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],u=[],l=[];n.length?M(n,function(h){f(pi(a,e,h),h)}):M(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?l.push(xn("nameValue",{markerType:"subItem",markerColor:i,name:v.displayName,value:h,valueType:v.type})):(s.push(h),u.push(v.type)))}return{inlineValues:s,inlineValueTypes:u,blocks:l}}var yr=mt();function co(r,t){return r.getName(t)||r.getId(t)}var Yo="__universalTransitionEnabled",ye=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,n,i){this.seriesIndex=this.componentIndex,this.dataTask=ma({count:eC,reset:rC}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,i);var a=yr(this).sourceManager=new Ym(this);a.prepareSource();var o=this.getInitialData(e,i);$c(o,this),this.dataTask.context.data=o,yr(this).dataBeforeProcessed=o,Zc(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,n){var i=Pa(this),a=i?tu(e):{},o=this.subType;lt.hasClass(o)&&(o+="Series"),tt(e,n.getTheme().get(this.subType)),tt(e,this.getDefaultOption()),Ql(e,"label",["show"]),this.fillDataTextStyle(e.data),i&&yi(e,a,i)},t.prototype.mergeOption=function(e,n){e=tt(this.option,e,!0),this.fillDataTextStyle(e.data);var i=Pa(this);i&&yi(this.option,e,i);var a=yr(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(e,n);$c(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,yr(this).dataBeforeProcessed=o,Zc(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!ne(e))for(var n=["show"],i=0;i<e.length;i++)e[i]&&e[i].label&&Ql(e[i],"label",n)},t.prototype.getInitialData=function(e,n){},t.prototype.appendData=function(e){var n=this.getRawData();n.appendData(e.data)},t.prototype.getData=function(e){var n=pf(this);if(n){var i=n.context.data;return e==null||!i.getLinkedData?i:i.getLinkedData(e)}else return yr(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var n=pf(this);if(n){var i=n.context;i.outputData=e,n!==this.dataTask&&(i.data=e)}yr(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return Z(e)},t.prototype.getSourceManager=function(){return yr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return yr(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.formatTooltip=function(e,n,i){return JT({series:this,dataIndex:e,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(Q.node&&!(e&&e.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,n,i){var a=this.ecModel,o=Nh.prototype.getColorFromPalette.call(this,e,n,i);return o||(o=a.getColorFromPalette(e,n,i)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,n){this._innerSelect(this.getData(n),e)},t.prototype.unselect=function(e,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<e.length;s++){var u=e[s],l=co(o,u);i[l]=!1,this._selectedDataIndicesMap[l]=-1}}},t.prototype.toggleSelect=function(e,n){for(var i=[],a=0;a<e.length;a++)i[0]=e[a],this.isSelected(e[a],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,n=yt(e),i=[],a=0;a<n.length;a++){var o=e[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(e,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[co(a,e)])&&!a.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Yo])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,n){var i,a,o=this.option,s=o.selectedMode,u=n.length;if(!(!s||!u)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Y(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,f=0;f<u;f++){var h=n[f],c=co(e,h);l[c]=!0,this._selectedDataIndicesMap[c]=e.getRawIndex(h)}}else if(s==="single"||s===!0){var v=n[u-1],c=co(e,v);o.selectedMap=(i={},i[c]=!0,i),this._selectedDataIndicesMap=(a={},a[c]=e.getRawIndex(v),a)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var n=[];e.hasItemOption&&e.each(function(i){var a=e.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(e,n)}},t.registerClass=function(e){return lt.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(lt);De(ye,RT);De(ye,Nh);$g(ye,lt);function Zc(r){var t=r.name;vh(r)||(r.name=tC(r)||t)}function tC(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),n=[];return M(e,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function eC(r){return r.model.getRawData().count()}function rC(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),nC}function nC(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function $c(r,t){M(eS(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,ft(iC,t))})}function iC(r,t){var e=pf(r);return e&&e.setOutputEnd((t||this).count()),t}function pf(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var n=e.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(r.uid))}return n}}var aC=it.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n+a),r.lineTo(e-i,n+a),r.closePath()}}),oC=it.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,n=t.cy,i=t.width/2,a=t.height/2;r.moveTo(e,n-a),r.lineTo(e+i,n),r.lineTo(e,n+a),r.lineTo(e-i,n),r.closePath()}}),sC=it.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,n=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),u=n-a+o+s,l=Math.asin(s/o),f=Math.cos(l)*o,h=Math.sin(l),c=Math.cos(l),v=o*.6,d=o*.7;r.moveTo(e-f,u+s),r.arc(e,u,o,Math.PI-l,Math.PI*2+l),r.bezierCurveTo(e+f-h*v,u+s+c*v,e,n-d,e,n),r.bezierCurveTo(e,n-d,e-f+h*v,u+s+c*v,e-f,u+s),r.closePath()}}),uC=it.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,n=t.width,i=t.x,a=t.y,o=n/3*2;r.moveTo(i,a),r.lineTo(i+o,a+e),r.lineTo(i,a+e/4*3),r.lineTo(i-o,a+e),r.lineTo(i,a),r.closePath()}}),lC={line:Or,rect:wt,roundRect:wt,square:wt,circle:Ha,diamond:oC,pin:sC,arrow:uC,triangle:aC},fC={line:function(r,t,e,n,i){i.x1=r,i.y1=t+n/2,i.x2=r+e,i.y2=t+n/2},rect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n},roundRect:function(r,t,e,n,i){i.x=r,i.y=t,i.width=e,i.height=n,i.r=Math.min(e,n)/4},square:function(r,t,e,n,i){var a=Math.min(e,n);i.x=r,i.y=t,i.width=a,i.height=a},circle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.r=Math.min(e,n)/2},diamond:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n},pin:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},arrow:function(r,t,e,n,i){i.x=r+e/2,i.y=t+n/2,i.width=e,i.height=n},triangle:function(r,t,e,n,i){i.cx=r+e/2,i.cy=t+n/2,i.width=e,i.height=n}},gf={};M(lC,function(r,t){gf[t]=new r});var hC=it.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var n=Jo(r,t,e),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=e.y+e.height*.4),n},buildPath:function(r,t,e){var n=t.symbolType;if(n!=="none"){var i=gf[n];i||(n="rect",i=gf[n]),fC[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(r,i.shape,e)}}});function vC(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||"#fff",e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function wn(r,t,e,n,i,a,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var u;return r.indexOf("image://")===0?u=Zy(r.slice(8),new st(t,e,n,i),o?"center":"cover"):r.indexOf("path://")===0?u=wh(r.slice(7),{},new st(t,e,n,i),o?"center":"cover"):u=new hC({shape:{symbolType:r,x:t,y:e,width:n,height:i}}),u.__isEmptyBrush=s,u.setColor=vC,a&&u.setColor(a),u}function jm(r){return z(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function t0(r,t){if(r!=null)return z(r)||(r=[r,r]),[pt(r[0],t[0])||0,pt(j(r[1],r[0]),t[1])||0]}var cC=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return Ih(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var n=new Tt,i=wn("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);n.add(i),i.setStyle(e.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,u=e.itemHeight*.8,l=wn(s,(e.itemWidth-u)/2,(e.itemHeight-u)/2,u,u,e.itemStyle.fill);n.add(l),l.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return l.rotation=f*Math.PI/180,l.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(l.style.stroke=l.style.fill,l.style.fill="#fff",l.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(ye);function Fh(r,t){var e=r.mapDimensionsAll("defaultedLabel"),n=e.length;if(n===1){var i=pi(r,t,e[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<e.length;o++)a.push(pi(r,t,e[o]));return a.join(" ")}}function e0(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!z(t))return t+"";for(var n=[],i=0;i<e.length;i++){var a=r.getDimensionIndex(e[i]);a>=0&&n.push(t[a])}return n.join(" ")}var zh=(function(r){N(t,r);function t(e,n,i,a){var o=r.call(this)||this;return o.updateData(e,n,i,a),o}return t.prototype._createSymbol=function(e,n,i,a,o){this.removeAll();var s=wn(e,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=dC,this._symbolType=e,this.add(s)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){hi(this.childAt(0))},t.prototype.downplay=function(){vi(this.childAt(0))},t.prototype.setZ=function(e,n){var i=this.childAt(0);i.zlevel=e,i.z=n},t.prototype.setDraggable=function(e,n){var i=this.childAt(0);i.draggable=e,i.cursor=!n&&e?"move":i.cursor},t.prototype.updateData=function(e,n,i,a){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",s=e.hostModel,u=t.getSymbolSize(e,n),l=o!==this._symbolType,f=a&&a.disableAnimation;if(l){var h=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,u,h)}else{var c=this.childAt(0);c.silent=!1;var v={scaleX:u[0]/2,scaleY:u[1]/2};f?c.attr(v):It(c,v,s,n),Aa(c)}if(this._updateCommon(e,n,u,i,a),l){var c=this.childAt(0);if(!f){var v={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:c.style.opacity}};c.scaleX=c.scaleY=0,c.style.opacity=0,Et(c,v,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,n,i,a,o){var s=this.childAt(0),u=e.hostModel,l,f,h,c,v,d,p,g,y;if(a&&(l=a.emphasisItemStyle,f=a.blurItemStyle,h=a.selectItemStyle,c=a.focus,v=a.blurScope,p=a.labelStatesModels,g=a.hoverScale,y=a.cursorStyle,d=a.emphasisDisabled),!a||e.hasItemOption){var m=a&&a.itemModel?a.itemModel:e.getItemModel(n),_=m.getModel("emphasis");l=_.getModel("itemStyle").getItemStyle(),h=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),c=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=Ci(m),g=_.getShallow("scale"),y=m.getShallow("cursor")}var S=e.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var w=t0(e.getItemVisual(n,"symbolOffset"),i);w&&(s.x=w[0],s.y=w[1]),y&&s.attr("cursor",y);var x=e.getItemVisual(n,"style"),b=x.fill;if(s instanceof fr){var T=s.style;s.useStyle(B({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(B({},x)):s.useStyle(x),s.style.decal=null,s.setColor(b,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var C=e.getItemVisual(n,"liftZ"),A=this._z2;C!=null?A==null&&(this._z2=s.z2,s.z2+=C):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;Ti(s,p,{labelFetcher:u,labelDataIndex:n,defaultText:I,inheritColor:b,defaultOpacity:x.opacity});function I(R){return D?e.getName(R):Fh(e,R)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var L=s.ensureState("emphasis");L.style=l,s.ensureState("select").style=h,s.ensureState("blur").style=f;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;L.scaleX=this._sizeX*P,L.scaleY=this._sizeY*P,this.setSymbolScale(1),ci(this,c,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,n,i){var a=this.childAt(0),o=at(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var u=a.getTextContent();u&&us(u,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();us(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,n){return jm(e.getItemVisual(n,"symbolSize"))},t})(Tt);function dC(r,t){this.parent.drift(r,t)}function Xu(r,t,e,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(e))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function qc(r){return r!=null&&!Y(r)&&(r={isIgnore:r}),r||{}}function Kc(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Ci(t),cursorStyle:t.get("cursor")}}var pC=(function(){function r(t){this.group=new Tt,this._SymbolCtor=t||zh}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=qc(e);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=e.disableAnimation,u=Kc(t),l={disableAnimation:s},f=e.getSymbolPoint||function(h){return t.getItemLayout(h)};a||n.removeAll(),t.diff(a).add(function(h){var c=f(h);if(Xu(t,c,h,e)){var v=new o(t,h,u,l);v.setPosition(c),t.setItemGraphicEl(h,v),n.add(v)}}).update(function(h,c){var v=a.getItemGraphicEl(c),d=f(h);if(!Xu(t,d,h,e)){n.remove(v);return}var p=t.getItemVisual(h,"symbol")||"circle",g=v&&v.getSymbolType&&v.getSymbolType();if(!v||g&&g!==p)n.remove(v),v=new o(t,h,u,l),v.setPosition(d);else{v.updateData(t,h,u,l);var y={x:d[0],y:d[1]};s?v.attr(y):It(v,y,i)}n.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var c=a.getItemGraphicEl(h);c&&c.fadeOut(function(){n.remove(c)},i)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Kc(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,n){this._progressiveEls=[],n=qc(n);function i(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=e.getItemLayout(a);if(Xu(e,o,a,n)){var s=new this._SymbolCtor(e,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){Us(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){e.remove(i)},n.hostModel)}):e.removeAll()},r})();function r0(r,t,e){var n=r.getBaseAxis(),i=r.getOtherAxis(n),a=gC(i,e),o=n.dim,s=i.dim,u=t.mapDimension(s),l=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,h=G(r.dimensions,function(d){return t.mapDimension(d)}),c=!1,v=t.getCalculationInfo("stackResultDimension");return gi(t,h[0])&&(c=!0,h[0]=v),gi(t,h[1])&&(c=!0,h[1]=v),{dataDimsForPoint:h,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!c,valueDim:u,baseDim:l,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function gC(r,t){var e=0,n=r.scale.getExtent();return t==="start"?e=n[0]:t==="end"?e=n[1]:vt(t)&&!isNaN(t)?e=t:n[0]>0?e=n[0]:n[1]<0&&(e=n[1]),e}function n0(r,t,e,n){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=r.valueStart);var a=r.baseDataOffset,o=[];return o[a]=e.get(r.baseDim,n),o[1-a]=i,t.dataToPoint(o)}var i0=typeof Float32Array<"u",yC=i0?Float32Array:Array;function ir(r){return z(r)?i0?new Float32Array(r):r:new yC(r)}function mC(r,t){var e=[];return t.diff(r).add(function(n){e.push({cmd:"+",idx:n})}).update(function(n,i){e.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){e.push({cmd:"-",idx:n})}).execute(),e}function _C(r,t,e,n,i,a,o,s){for(var u=mC(r,t),l=[],f=[],h=[],c=[],v=[],d=[],p=[],g=r0(i,t,o),y=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<u.length;_++){var S=u[_],w=!0,x=void 0,b=void 0;switch(S.cmd){case"=":x=S.idx*2,b=S.idx1*2;var T=y[x],C=y[x+1],A=m[b],D=m[b+1];(isNaN(T)||isNaN(C))&&(T=A,C=D),l.push(T,C),f.push(A,D),h.push(e[x],e[x+1]),c.push(n[b],n[b+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var I=S.idx,L=g.dataDimsForPoint,P=i.dataToPoint([t.get(L[0],I),t.get(L[1],I)]);b=I*2,l.push(P[0],P[1]),f.push(m[b],m[b+1]);var R=n0(g,i,t,I);h.push(R[0],R[1]),c.push(n[b],n[b+1]),p.push(t.getRawIndex(I));break;case"-":w=!1}w&&(v.push(S),d.push(d.length))}d.sort(function(ct,Ot){return p[ct]-p[Ot]});for(var E=l.length,F=ir(E),k=ir(E),O=ir(E),V=ir(E),H=[],_=0;_<d.length;_++){var U=d[_],et=_*2,ut=U*2;F[et]=l[ut],F[et+1]=l[ut+1],k[et]=f[ut],k[et+1]=f[ut+1],O[et]=h[ut],O[et+1]=h[ut+1],V[et]=c[ut],V[et+1]=c[ut+1],H[_]=v[U]}return{current:F,next:k,stackedOnCurrent:O,stackedOnNext:V,status:H}}var mr=Math.min,_r=Math.max;function yn(r,t){return isNaN(r)||isNaN(t)}function yf(r,t,e,n,i,a,o,s,u){for(var l,f,h,c,v,d,p=e,g=0;g<n;g++){var y=t[p*2],m=t[p*2+1];if(p>=i||p<0)break;if(yn(y,m)){if(u){p+=a;continue}break}if(p===e)r[a>0?"moveTo":"lineTo"](y,m),h=y,c=m;else{var _=y-l,S=m-f;if(_*_+S*S<.5){p+=a;continue}if(o>0){for(var w=p+a,x=t[w*2],b=t[w*2+1];x===y&&b===m&&g<n;)g++,w+=a,p+=a,x=t[w*2],b=t[w*2+1],y=t[p*2],m=t[p*2+1],_=y-l,S=m-f;var T=g+1;if(u)for(;yn(x,b)&&T<n;)T++,w+=a,x=t[w*2],b=t[w*2+1];var C=.5,A=0,D=0,I=void 0,L=void 0;if(T>=n||yn(x,b))v=y,d=m;else{A=x-l,D=b-f;var P=y-l,R=x-y,E=m-f,F=b-m,k=void 0,O=void 0;if(s==="x"){k=Math.abs(P),O=Math.abs(R);var V=A>0?1:-1;v=y-V*k*o,d=m,I=y+V*O*o,L=m}else if(s==="y"){k=Math.abs(E),O=Math.abs(F);var H=D>0?1:-1;v=y,d=m-H*k*o,I=y,L=m+H*O*o}else k=Math.sqrt(P*P+E*E),O=Math.sqrt(R*R+F*F),C=O/(O+k),v=y-A*o*(1-C),d=m-D*o*(1-C),I=y+A*o*C,L=m+D*o*C,I=mr(I,_r(x,y)),L=mr(L,_r(b,m)),I=_r(I,mr(x,y)),L=_r(L,mr(b,m)),A=I-y,D=L-m,v=y-A*k/O,d=m-D*k/O,v=mr(v,_r(l,y)),d=mr(d,_r(f,m)),v=_r(v,mr(l,y)),d=_r(d,mr(f,m)),A=y-v,D=m-d,I=y+A*O/k,L=m+D*O/k}r.bezierCurveTo(h,c,v,d,y,m),h=I,c=L}else r.lineTo(y,m)}l=y,f=m,p+=a}return g}var a0=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),SC=(function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new a0},t.prototype.buildPath=function(e,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&yn(i[o*2-2],i[o*2-1]);o--);for(;a<o&&yn(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=yf(e,i,a,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(e,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,a=i.data,o=ur.CMD,s,u,l=n==="x",f=[],h=0;h<a.length;){var c=a[h++],v=void 0,d=void 0,p=void 0,g=void 0,y=void 0,m=void 0,_=void 0;switch(c){case o.M:s=a[h++],u=a[h++];break;case o.L:if(v=a[h++],d=a[h++],_=l?(e-s)/(v-s):(e-u)/(d-u),_<=1&&_>=0){var S=l?(d-u)*_+u:(v-s)*_+s;return l?[e,S]:[S,e]}s=v,u=d;break;case o.C:v=a[h++],d=a[h++],p=a[h++],g=a[h++],y=a[h++],m=a[h++];var w=l?ts(s,v,p,y,e,f):ts(u,d,g,m,e,f);if(w>0)for(var x=0;x<w;x++){var b=f[x];if(b<=1&&b>=0){var S=l?Lt(u,d,g,m,b):Lt(s,v,p,y,b);return l?[e,S]:[S,e]}}s=y,u=m;break}}},t})(it),xC=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(a0),wC=(function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new xC},t.prototype.buildPath=function(e,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,u=n.smoothMonotone;if(n.connectNulls){for(;s>0&&yn(i[s*2-2],i[s*2-1]);s--);for(;o<s&&yn(i[o*2],i[o*2+1]);o++);}for(;o<s;){var l=yf(e,i,o,s,s,1,n.smooth,u,n.connectNulls);yf(e,a,o+l-1,l,s,-1,n.stackedOnSmooth,u,n.connectNulls),o+=l+1,e.closePath()}},t})(it);function Gh(){var r=mt();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,a=!!e.progressiveRender,o=e.large=!!(n&&n.large),s=e.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var o0=mt(),bC=Gh(),oe=(function(){function r(){this.group=new Tt,this.uid=Ua("viewChart"),this.renderTask=ma({plan:TC,reset:CC}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.highlight=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&Jc(a,i,"emphasis")},r.prototype.downplay=function(t,e,n,i){var a=t.getData(i&&i.dataType);a&&Jc(a,i,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},r.prototype.eachRendered=function(t){Us(this.group,t)},r.markUpdateMethod=function(t,e){o0(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function Qc(r,t,e){r&&ef(r)&&(t==="emphasis"?hi:vi)(r,e)}function Jc(r,t,e){var n=_n(r,t),i=t&&t.highlightKey!=null?ww(t.highlightKey):null;n!=null?M(Mt(n),function(a){Qc(r.getItemGraphicEl(a),e,i)}):r.eachItemGraphicEl(function(a){Qc(a,e,i)})}oh(oe);Ls(oe);function TC(r){return bC(r.model)}function CC(r){var t=r.model,e=r.ecModel,n=r.api,i=r.payload,a=t.pipelineContext.progressiveRender,o=r.view,s=i&&o0(i).updateMethod,u=a?"incrementalPrepareRender":s&&o[s]?s:"render";return u!=="render"&&o[u](t,e,n,i),MC[u]}var MC={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function s0(r,t,e,n,i){var a=r.getArea(),o=a.x,s=a.y,u=a.width,l=a.height,f=e.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,u+=f,l+=f,u=Math.ceil(u),o!==Math.floor(o)&&(o=Math.floor(o),u++);var h=new wt({shape:{x:o,y:s,width:u,height:l}});if(t){var c=r.getBaseAxis(),v=c.isHorizontal(),d=c.inverse;v?(d&&(h.shape.x+=u),h.shape.width=0):(d||(h.shape.y+=l),h.shape.height=0);var p=q(i)?function(g){i(g,h)}:null;Et(h,{shape:{width:u,height:l,x:o,y:s}},e,null,n,p)}return h}function u0(r,t,e){var n=r.getArea(),i=Dt(n.r0,1),a=Dt(n.r,1),o=new Xe({shape:{cx:Dt(r.cx,1),cy:Dt(r.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,Et(o,{shape:{endAngle:n.endAngle,r:a}},e)}return o}function AC(r,t,e,n,i){if(r){if(r.type==="polar")return u0(r,t,e);if(r.type==="cartesian2d")return s0(r,t,e,n,i)}else return null;return null}function Vh(r,t){return r.type===t}function jc(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function td(r){for(var t=1/0,e=1/0,n=-1/0,i=-1/0,a=0;a<r.length;){var o=r[a++],s=r[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(e=Math.min(s,e),i=Math.max(s,i))}return[[t,e],[n,i]]}function ed(r,t){var e=td(r),n=e[0],i=e[1],a=td(t),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 rd(r){return vt(r)?r:r?.5:0}function DC(r,t,e){if(!e.valueDim)return[];for(var n=t.count(),i=ir(n*2),a=0;a<n;a++){var o=n0(e,r,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Sr(r,t,e,n,i){var a=e.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,s=[],u=0,l=[],f=[],h=[],c=[];if(i){for(u=0;u<r.length;u+=2){var v=t||r;!isNaN(v[u])&&!isNaN(v[u+1])&&c.push(r[u],r[u+1])}r=c}for(u=0;u<r.length-2;u+=2)switch(h[0]=r[u+2],h[1]=r[u+3],f[0]=r[u],f[1]=r[u+1],s.push(f[0],f[1]),n){case"end":l[o]=h[o],l[1-o]=f[1-o],s.push(l[0],l[1]);break;case"middle":var d=(f[o]+h[o])/2,p=[];l[o]=p[o]=d,l[1-o]=f[1-o],p[1-o]=h[1-o],s.push(l[0],l[1]),s.push(p[0],p[1]);break;default:l[o]=f[o],l[1-o]=h[1-o],s.push(l[0],l[1])}return s.push(r[u++],r[u++]),s}function IC(r,t){var e=[],n=r.length,i,a;function o(f,h,c){var v=f.coord,d=(c-v)/(h.coord-v),p=HS(d,[f.color,h.color]);return{coord:c,color:p}}for(var s=0;s<n;s++){var u=r[s],l=u.coord;if(l<0)i=u;else if(l>t){a?e.push(o(a,u,t)):i&&e.push(o(i,u,0),o(i,u,t));break}else i&&(e.push(o(i,u,0)),i=null),e.push(u),a=u}return e}function LC(r,t,e){var n=r.getVisual("visualMeta");if(!(!n||!n.length||!r.count())&&t.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 u=t.getAxis(i),l=G(a.stops,function(_){return{coord:u.toGlobalCoord(u.dataToCoord(_.value)),color:_.color}}),f=l.length,h=a.outerColors.slice();f&&l[0].coord>l[f-1].coord&&(l.reverse(),h.reverse());var c=IC(l,i==="x"?e.getWidth():e.getHeight()),v=c.length;if(!v&&f)return l[0].coord<0?h[1]?h[1]:l[f-1].color:h[0]?h[0]:l[0].color;var d=10,p=c[0].coord-d,g=c[v-1].coord+d,y=g-p;if(y<.001)return"transparent";M(c,function(_){_.offset=(_.coord-p)/y}),c.push({offset:v?c[v-1].offset:.5,color:h[1]||"transparent"}),c.unshift({offset:v?c[0].offset:.5,color:h[0]||"transparent"});var m=new Yy(0,0,0,0,c,!0);return m[i]=p,m[i+"2"]=g,m}}}function PC(r,t,e){var n=r.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=e.getAxesByScale("ordinal")[0];if(a&&!(i&&RC(a,t))){var o=t.mapDimension(a.dim),s={};return M(a.getViewLabels(),function(u){var l=a.scale.getRawOrdinalNumber(u.tickValue);s[l]=1}),function(u){return!s.hasOwnProperty(t.get(o,u))}}}}function RC(r,t){var e=r.getExtent(),n=Math.abs(e[1]-e[0])/r.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(zh.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>n)return!1;return!0}function EC(r,t){return isNaN(r)||isNaN(t)}function kC(r){for(var t=r.length/2;t>0&&EC(r[t*2-2],r[t*2-1]);t--);return t-1}function nd(r,t){return[r[t*2],r[t*2+1]]}function OC(r,t,e){for(var n=r.length/2,i=e==="x"?0:1,a,o,s=0,u=-1,l=0;l<n;l++)if(o=r[l*2+i],!(isNaN(o)||isNaN(r[l*2+1-i]))){if(l===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){u=l;break}s=l,a=o}return{range:[s,u],t:(t-a)/(o-a)}}function l0(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<ge.length;t++)if(r.get([ge[t],"endLabel","show"]))return!0;return!1}function Zu(r,t,e,n){if(Vh(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},u=l0(n)?function(v,d){r._endLabelOnDuring(v,d,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),f=s0(t,e,n,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},u);if(!n.get("clip",!0)){var h=f.shape,c=Math.max(h.width,h.height);l?(h.y-=c,h.height+=c*2):(h.x-=c,h.width+=c*2)}return u&&u(1,f),f}else return u0(t,e,n)}function NC(r,t){var e=t.getBaseAxis(),n=e.isHorizontal(),i=e.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 BC=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new Tt,n=new pC;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=e,this._changePolyState=ht(this._changePolyState,this)},t.prototype.render=function(e,n,i){var a=e.coordinateSystem,o=this.group,s=e.getData(),u=e.getModel("lineStyle"),l=e.getModel("areaStyle"),f=s.getLayout("points")||[],h=a.type==="polar",c=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,g=this._lineGroup,y=!n.ssr&&e.get("animation"),m=!l.isEmpty(),_=l.get("origin"),S=r0(a,s,_),w=m&&DC(a,s,S),x=e.get("showSymbol"),b=e.get("connectNulls"),T=x&&!h&&PC(e,s,a),C=this._data;C&&C.eachItemGraphicEl(function(ct,Ot){ct.__temp&&(o.remove(ct),C.setItemGraphicEl(Ot,null))}),x||v.remove(),o.add(g);var A=h?!1:e.get("step"),D;a&&a.getArea&&e.get("clip",!0)&&(D=a.getArea(),D.width!=null?(D.x-=.1,D.y-=.1,D.width+=.2,D.height+=.2):D.r0&&(D.r0-=.5,D.r+=.5)),this._clipShapeForSymbol=D;var I=LC(s,a,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&c.type===a.type&&A===this._step))x&&v.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(ct){return[f[ct*2],f[ct*2+1]]}}),y&&this._initSymbolLabelAnimation(s,a,D),A&&(w&&(w=Sr(w,f,a,A,b)),f=Sr(f,null,a,A,b)),d=this._newPolyline(f),m?p=this._newPolygon(f,w):p&&(g.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,Sn(I)),g.setClipPath(Zu(this,a,!0,e));else{m&&!p?p=this._newPolygon(f,w):p&&!m&&(g.remove(p),p=this._polygon=null),h||this._initOrUpdateEndLabel(e,a,Sn(I));var L=g.getClipPath();if(L){var P=Zu(this,a,!1,e);Et(L,{shape:P.shape},e)}else g.setClipPath(Zu(this,a,!0,e));x&&v.updateData(s,{isIgnore:T,clipShape:D,disableAnimation:!0,getSymbolPoint:function(ct){return[f[ct*2],f[ct*2+1]]}}),(!jc(this._stackedOnPoints,w)||!jc(this._points,f))&&(y?this._doUpdateAnimation(s,w,a,i,A,_,b):(A&&(w&&(w=Sr(w,f,a,A,b)),f=Sr(f,null,a,A,b)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:w})))}var R=e.getModel("emphasis"),E=R.get("focus"),F=R.get("blurScope"),k=R.get("disabled");if(d.useStyle(K(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),di(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var O=d.getState("emphasis").style;O.lineWidth=+d.style.lineWidth+1}at(d).seriesIndex=e.seriesIndex,ci(d,E,F,k);var V=rd(e.get("smooth")),H=e.get("smoothMonotone");if(d.setShape({smooth:V,smoothMonotone:H,connectNulls:b}),p){var U=s.getCalculationInfo("stackedOnSeries"),et=0;p.useStyle(K(l.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),U&&(et=rd(U.get("smooth"))),p.setShape({smooth:V,stackedOnSmooth:et,smoothMonotone:H,connectNulls:b}),di(p,e,"areaStyle"),at(p).seriesIndex=e.seriesIndex,ci(p,E,F,k)}var ut=this._changePolyState;s.eachItemGraphicEl(function(ct){ct&&(ct.onHoverStateChange=ut)}),this._polyline.onHoverStateChange=ut,this._data=s,this._coordSys=a,this._stackedOnPoints=w,this._points=f,this._step=A,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,n){at(n).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,n,i,a){var o=e.getData(),s=_n(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var u=o.getLayout("points"),l=o.getItemGraphicEl(s);if(!l){var f=u[s*2],h=u[s*2+1];if(isNaN(f)||isNaN(h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,h))return;var c=e.get("zlevel")||0,v=e.get("z")||0;l=new zh(o,s),l.x=f,l.y=h,l.setZ(c,v);var d=l.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=v,d.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(s,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else oe.prototype.highlight.call(this,e,n,i,a)},t.prototype.downplay=function(e,n,i,a){var o=e.getData(),s=_n(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var u=o.getItemGraphicEl(s);u&&(u.__temp?(o.setItemGraphicEl(s,null),this.group.remove(u)):u.downplay())}else oe.prototype.downplay.call(this,e,n,i,a)},t.prototype._changePolyState=function(e){var n=this._polygon;nc(this._polyline,e),n&&nc(n,e)},t.prototype._newPolyline=function(e){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new SC({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(e,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new wC({shape:{points:e,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,n,i){var a,o,s=n.getBaseAxis(),u=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var l=e.hostModel,f=l.get("animationDuration");q(f)&&(f=f(null));var h=l.get("animationDelay")||0,c=q(h)?h(null):h;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var g=[v.x,v.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,_=v.x):(y=x.y+x.height,m=x.y,_=v.y)}var b=m===y?0:(_-y)/(m-y);u&&(b=1-b);var T=q(h)?h(d):f*b+c,C=p.getSymbolPath(),A=C.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),C.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,n,i){var a=e.getModel("endLabel");if(l0(e)){var o=e.getData(),s=this._polyline,u=o.getLayout("points");if(!u){s.removeTextContent(),this._endLabel=null;return}var l=this._endLabel;l||(l=this._endLabel=new Pt({z2:200}),l.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=kC(u);f>=0&&(Ti(s,Ci(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:f,defaultText:function(h,c,v){return v!=null?e0(o,v):Fh(o,h)},enableTextSetter:!0},NC(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,n,i,a,o,s,u){var l=this._endLabel,f=this._polyline;if(l){e<1&&a.originalX==null&&(a.originalX=l.x,a.originalY=l.y);var h=i.getLayout("points"),c=i.hostModel,v=c.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,g=u.getBaseAxis(),y=g.isHorizontal(),m=g.inverse,_=n.shape,S=m?y?_.x:_.y+_.height:y?_.x+_.width:_.y,w=(y?p:0)*(m?-1:1),x=(y?0:-p)*(m?-1:1),b=y?"x":"y",T=OC(h,S,b),C=T.range,A=C[1]-C[0],D=void 0;if(A>=1){if(A>1&&!v){var I=nd(h,C[0]);l.attr({x:I[0]+w,y:I[1]+x}),o&&(D=c.getRawValue(C[0]))}else{var I=f.getPointOn(S,b);I&&l.attr({x:I[0]+w,y:I[1]+x});var L=c.getRawValue(C[0]),P=c.getRawValue(C[1]);o&&(D=Ay(i,d,L,P,T.t))}a.lastFrameIndex=C[0]}else{var R=e===1||a.lastFrameIndex>0?C[0]:0,I=nd(h,R);o&&(D=c.getRawValue(R)),l.attr({x:I[0]+w,y:I[1]+x})}if(o){var E=Mi(l);typeof E.setLabelText=="function"&&E.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(e,n,i,a,o,s,u){var l=this._polyline,f=this._polygon,h=e.hostModel,c=_C(this._data,e,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),v=c.current,d=c.stackedOnCurrent,p=c.next,g=c.stackedOnNext;if(o&&(d=Sr(c.stackedOnCurrent,c.current,i,o,u),v=Sr(c.current,null,i,o,u),g=Sr(c.stackedOnNext,c.next,i,o,u),p=Sr(c.next,null,i,o,u)),ed(v,p)>3e3||f&&ed(d,g)>3e3){l.stopAnimation(),l.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:g}));return}l.shape.__points=c.current,l.shape.points=v;var y={shape:{points:p}};c.current!==v&&(y.shape.__points=c.next),l.stopAnimation(),It(l,y,h),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),It(f,{shape:{stackedOnPoints:g}},h),l.shape.points!==f.shape.points&&(f.shape.points=l.shape.points));for(var m=[],_=c.status,S=0;S<_.length;S++){var w=_[S].cmd;if(w==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}l.animators&&l.animators.length&&l.animators[0].during(function(){f&&f.dirtyShape();for(var b=l.shape.__points,T=0;T<m.length;T++){var C=m[T].el,A=m[T].ptIdx*2;C.x=b[A],C.y=b[A+1],C.markRedraw()}})},t.prototype.remove=function(e){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},t.type="line",t})(oe);function FC(r,t){return{seriesType:r,plan:Gh(),reset:function(e){var n=e.getData(),i=e.coordinateSystem;if(e.pipelineContext,!!i){var a=G(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),o=a.length,s=n.getCalculationInfo("stackResultDimension");gi(n,a[0])&&(a[0]=s),gi(n,a[1])&&(a[1]=s);var u=n.getStore(),l=n.getDimensionIndex(a[0]),f=n.getDimensionIndex(a[1]);return o&&{progress:function(h,c){for(var v=h.end-h.start,d=ir(v*o),p=[],g=[],y=h.start,m=0;y<h.end;y++){var _=void 0;if(o===1){var S=u.get(l,y);_=i.dataToPoint(S,null,g)}else p[0]=u.get(l,y),p[1]=u.get(f,y),_=i.dataToPoint(p,null,g);d[m++]=_[0],d[m++]=_[1]}c.setLayout("points",d)}}}}}}var zC={average:function(r){for(var t=0,e=0,n=0;n<r.length;n++)isNaN(r[n])||(t+=r[n],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},GC=function(r){return Math.round(r.length/2)};function f0(r){return{seriesType:r,reset:function(t,e,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var u=o.getBaseAxis(),l=o.getOtherAxis(u),f=u.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(f[1]-f[0])*(h||1),v=Math.round(s/c);if(isFinite(v)&&v>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/v)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(l.dim),1/v));var d=void 0;W(a)?d=zC[a]:q(a)&&(d=a),d&&t.setData(i.downSample(i.mapDimension(l.dim),1/v,d,GC))}}}}}function VC(r){r.registerChartView(BC),r.registerSeriesModel(cC),r.registerLayout(FC("line")),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",n)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,f0("line"))}var HC="__ec_stack_";function h0(r){return r.get("stack")||HC+r.seriesIndex}function Hh(r){return r.dim+r.index}function v0(r,t){var e=[];return t.eachSeriesByType(r,function(n){d0(n)&&e.push(n)}),e}function WC(r){var t={};M(r,function(u){var l=u.coordinateSystem,f=l.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var h=u.getData(),c=f.dim+"_"+f.index,v=h.getDimensionIndex(h.mapDimension(f.dim)),d=h.getStore(),p=0,g=d.count();p<g;++p){var y=d.get(v,p);t[c]?t[c].push(y):t[c]=[y]}});var e={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(u,l){return u-l});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))}e[n]=a}}return e}function c0(r){var t=WC(r),e=[];return M(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 u=a.dim+"_"+a.index,l=t[u],f=Math.abs(o[1]-o[0]),h=a.scale.getExtent(),c=Math.abs(h[1]-h[0]);s=l?f/c*l:f}else{var v=n.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=pt(n.get("barWidth"),s),p=pt(n.get("barMaxWidth"),s),g=pt(n.get("barMinWidth")||(p0(n)?.5:1),s),y=n.get("barGap"),m=n.get("barCategoryGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:g,barGap:y,barCategoryGap:m,axisKey:Hh(a),stackId:h0(n)})}),UC(e)}function UC(r){var t={};M(r,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=s.stacks;t[a]=s;var l=n.stackId;u[l]||s.autoWidthCount++,u[l]=u[l]||{width:0,maxWidth:0};var f=n.barWidth;f&&!u[l].width&&(u[l].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var h=n.barMaxWidth;h&&(u[l].maxWidth=h);var c=n.barMinWidth;c&&(u[l].minWidth=c);var v=n.barGap;v!=null&&(s.gap=v);var d=n.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return M(t,function(n,i){e[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var u=yt(a).length;s=Math.max(35-u*4,15)+"%"}var l=pt(s,o),f=pt(n.gap,1),h=n.remainedWidth,c=n.autoWidthCount,v=(h-l)/(c+(c-1)*f);v=Math.max(v,0),M(a,function(y){var m=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),y.width=S,h-=S+f*S,c--}else{var S=v;m&&m<S&&(S=Math.min(m,h)),_&&_>S&&(S=_),S!==v&&(y.width=S,h-=S+f*S,c--)}}),v=(h-l)/(c+(c-1)*f),v=Math.max(v,0);var d=0,p;M(a,function(y,m){y.width||(y.width=v),p=y,d+=y.width*(1+f)}),p&&(d-=p.width*f);var g=-d/2;M(a,function(y,m){e[i][m]=e[i][m]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+f)})}),e}function YC(r,t,e){if(r&&t){var n=r[Hh(t)];return n}}function XC(r,t){var e=v0(r,t),n=c0(e);M(e,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),u=h0(i),l=n[Hh(s)][u],f=l.offset,h=l.width;a.setLayout({bandWidth:l.bandWidth,offset:f,size:h})})}function ZC(r){return{seriesType:r,plan:Gh(),reset:function(t){if(d0(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(a.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),u=t.get("showBackground",!0),l=e.mapDimension(a.dim),f=e.getCalculationInfo("stackResultDimension"),h=gi(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=a.isHorizontal(),v=$C(i,a),d=p0(t),p=t.get("barMinHeight")||0,g=f&&e.getDimensionIndex(f),y=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var w=_.count,x=d&&ir(w*3),b=d&&u&&ir(w*3),T=d&&ir(w),C=n.master.getRect(),A=c?C.width:C.height,D,I=S.getStore(),L=0;(D=_.next())!=null;){var P=I.get(h?g:o,D),R=I.get(s,D),E=v,F=void 0;h&&(F=+P-I.get(o,D));var k=void 0,O=void 0,V=void 0,H=void 0;if(c){var U=n.dataToPoint([P,R]);if(h){var et=n.dataToPoint([F,R]);E=et[0]}k=E,O=U[1]+m,V=U[0]-E,H=y,Math.abs(V)<p&&(V=(V<0?-1:1)*p)}else{var U=n.dataToPoint([R,P]);if(h){var et=n.dataToPoint([R,F]);E=et[1]}k=U[0]+m,O=E,V=y,H=U[1]-E,Math.abs(H)<p&&(H=(H<=0?-1:1)*p)}d?(x[L]=k,x[L+1]=O,x[L+2]=c?V:H,b&&(b[L]=c?C.x:k,b[L+1]=c?O:C.y,b[L+2]=A),T[D]=D):S.setItemLayout(D,{x:k,y:O,width:V,height:H}),L+=3}d&&S.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:b,valueAxisHorizontal:c})}}}}}}function d0(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function p0(r){return r.pipelineContext&&r.pipelineContext.large}function $C(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var mf=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,n){return Ih(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(e),s=a.dataToPoint(o);if(i)M(a.getAxes(),function(c,v){if(c.type==="category"&&n!=null){var d=c.getTicksCoords(),p=c.getTickModel().get("alignWithLabel"),g=o[v],y=n[v]==="x1"||n[v]==="y1";if(y&&!p&&(g+=1),d.length<2)return;if(d.length===2){s[v]=c.toGlobalCoord(c.getExtent()[y?1:0]);return}for(var m=void 0,_=void 0,S=1,w=0;w<d.length;w++){var x=d[w].coord,b=w===d.length-1?d[w-1].tickValue+S:d[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-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=c.toGlobalCoord(_)}});else{var u=this.getData(),l=u.getLayout("offset"),f=u.getLayout("size"),h=a.getBaseAxis().isHorizontal()?0:1;s[h]+=l+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t})(ye);ye.registerClass(mf);var qC=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return Ih(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>e&&(e=n),e},t.prototype.brushSelector=function(e,n,i){return i.rect(n.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Im(mf.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t})(mf),cs="\0__throttleOriginMethod",id="\0__throttleRate",ad="\0__throttleType";function Wh(r,t,e){var n,i=0,a=0,o=null,s,u,l,f;t=t||0;function h(){a=new Date().getTime(),o=null,r.apply(u,l||[])}var c=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];n=new Date().getTime(),u=this,l=v;var p=f||t,g=f||e;f=null,s=n-(g?i:a)-p,clearTimeout(o),g?o=setTimeout(h,p):s>=0?h():o=setTimeout(h,-s),i=n};return c.clear=function(){o&&(clearTimeout(o),o=null)},c.debounceNextCall=function(v){f=v},c}function g0(r,t,e,n){var i=r[t];if(i){var a=i[cs]||i,o=i[ad],s=i[id];if(s!==e||o!==n){if(e==null||!n)return r[t]=a;i=r[t]=Wh(a,e,n==="debounce"),i[cs]=a,i[ad]=n,i[id]=e}return i}}function _f(r,t){var e=r[t];e&&e[cs]&&(e.clear&&e.clear(),r[t]=e[cs])}var KC=(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})(),od=(function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new KC},t.prototype.buildPath=function(e,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),u=(s-o)*.5,l=o+u,f=n.startAngle,h=n.endAngle,c=n.clockwise,v=Math.PI*2,d=c?h-f<v:f-h<v;d||(f=h-(c?v:-v));var p=Math.cos(f),g=Math.sin(f),y=Math.cos(h),m=Math.sin(h);d?(e.moveTo(p*o+i,g*o+a),e.arc(p*l+i,g*l+a,u,-Math.PI+f,f,!c)):e.moveTo(p*s+i,g*s+a),e.arc(i,a,s,f,h,!c),e.arc(y*l+i,m*l+a,u,h-Math.PI*2,h-Math.PI,!c),o!==0&&e.arc(i,a,o,h,f,c)},t})(it);function QC(r,t){t=t||{};var e=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return Jo(n,i,a);var s=r(o),u=i.distance!=null?i.distance:5,l=this.shape,f=l.cx,h=l.cy,c=l.r,v=l.r0,d=(c+v)/2,p=l.startAngle,g=l.endAngle,y=(p+g)/2,m=e?Math.abs(c-v)/2:0,_=Math.cos,S=Math.sin,w=f+c*_(p),x=h+c*S(p),b="left",T="top";switch(s){case"startArc":w=f+(v-u)*_(y),x=h+(v-u)*S(y),b="center",T="top";break;case"insideStartArc":w=f+(v+u)*_(y),x=h+(v+u)*S(y),b="center",T="bottom";break;case"startAngle":w=f+d*_(p)+po(p,u+m,!1),x=h+d*S(p)+go(p,u+m,!1),b="right",T="middle";break;case"insideStartAngle":w=f+d*_(p)+po(p,-u+m,!1),x=h+d*S(p)+go(p,-u+m,!1),b="left",T="middle";break;case"middle":w=f+d*_(y),x=h+d*S(y),b="center",T="middle";break;case"endArc":w=f+(c+u)*_(y),x=h+(c+u)*S(y),b="center",T="bottom";break;case"insideEndArc":w=f+(c-u)*_(y),x=h+(c-u)*S(y),b="center",T="top";break;case"endAngle":w=f+d*_(g)+po(g,u+m,!0),x=h+d*S(g)+go(g,u+m,!0),b="left",T="middle";break;case"insideEndAngle":w=f+d*_(g)+po(g,-u+m,!0),x=h+d*S(g)+go(g,-u+m,!0),b="right",T="middle";break;default:return Jo(n,i,a)}return n=n||{},n.x=w,n.y=x,n.align=b,n.verticalAlign=T,n}}function JC(r,t,e,n){if(vt(n)){r.setTextConfig({rotation:n});return}else if(z(t)){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,u,l=e(t);switch(l){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":u=s;break;case"startAngle":case"insideStartAngle":u=a;break;case"endAngle":case"insideEndAngle":u=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-u;l==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function po(r,t,e){return t*Math.sin(r)*(e?-1:1)}function go(r,t,e){return t*Math.cos(r)*(e?1:-1)}function aa(r,t,e){var n=r.get("borderRadius");if(n==null)return e?{cornerRadius:0}:null;z(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:G(n,function(a){return Rr(a,i)})}}var $u=Math.max,qu=Math.min;function jC(r,t){var e=r.getArea&&r.getArea();if(Vh(r,"cartesian2d")){var n=r.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(e.x-=i,e.width+=i*2):(e.y-=i,e.height+=i*2)}}return e}var tM=(function(r){N(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,n,i,a){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,n,i):this._renderNormal(e,n,i,a))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,n){this._progressiveEls=[],this._incrementalRenderLarge(e,n)},t.prototype.eachRendered=function(e){Us(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var n=e.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(e,n,i,a){var o=this.group,s=e.getData(),u=this._data,l=e.coordinateSystem,f=l.getBaseAxis(),h;l.type==="cartesian2d"?h=f.isHorizontal():l.type==="polar"&&(h=f.dim==="angle");var c=e.isAnimationEnabled()?e:null,v=eM(e,l);v&&this._enableRealtimeSort(v,s,i);var d=e.get("clip",!0)||v,p=jC(l,s);o.removeClipPath();var g=e.get("roundCap",!0),y=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],w=this._backgroundEls,x=a&&a.isInitSort,b=a&&a.type==="changeAxisOrder";function T(D){var I=yo[l.type](s,D),L=uM(l,h,I);return L.useStyle(m.getItemStyle()),l.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[D]=L,L}s.diff(u).add(function(D){var I=s.getItemModel(D),L=yo[l.type](s,D,I);if(y&&T(D),!(!s.hasValue(D)||!hd[l.type](L))){var P=!1;d&&(P=sd[l.type](p,L));var R=ud[l.type](e,s,D,L,h,c,f.model,!1,g);v&&(R.forceLabelAnimation=!0),vd(R,s,D,I,L,e,h,l.type==="polar"),x?R.attr({shape:L}):v?ld(v,c,R,L,D,h,!1,!1):Et(R,{shape:L},e,D),s.setItemGraphicEl(D,R),o.add(R),R.ignore=P}}).update(function(D,I){var L=s.getItemModel(D),P=yo[l.type](s,D,L);if(y){var R=void 0;w.length===0?R=T(I):(R=w[I],R.useStyle(m.getItemStyle()),l.type==="cartesian2d"?R.setShape("r",_):R.setShape("cornerRadius",_),S[D]=R);var E=yo[l.type](s,D),F=m0(h,E,l);It(R,{shape:F},c,D)}var k=u.getItemGraphicEl(I);if(!s.hasValue(D)||!hd[l.type](P)){o.remove(k);return}var O=!1;if(d&&(O=sd[l.type](p,P),O&&o.remove(k)),k?Aa(k):k=ud[l.type](e,s,D,P,h,c,f.model,!!k,g),v&&(k.forceLabelAnimation=!0),b){var V=k.getTextContent();if(V){var H=Mi(V);H.prevValue!=null&&(H.prevValue=H.value)}}else vd(k,s,D,L,P,e,h,l.type==="polar");x?k.attr({shape:P}):v?ld(v,c,k,P,D,h,!0,b):It(k,{shape:P},e,D,null),s.setItemGraphicEl(D,k),k.ignore=O,o.add(k)}).remove(function(D){var I=u.getItemGraphicEl(D);I&&ls(I,e,D)}).execute();var C=this._backgroundGroup||(this._backgroundGroup=new Tt);C.removeAll();for(var A=0;A<S.length;++A)C.add(S[A]);o.add(C),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,n,i){this._clear(),dd(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,n){this._removeBackground(),dd(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var n=e.get("clip",!0)&&AC(e.coordinateSystem,!1,e),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,n,i){var a=this;if(n.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,e,i),this._isFirstFrame=!1;else{var s=function(u){var l=n.getItemGraphicEl(u),f=l&&l.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)}}},t.prototype._dataSort=function(e,n,i){var a=[];return e.each(e.mapDimension(n.dim),function(o,s){var u=i(s);u=u??NaN,a.push({dataIndex:s,mappedValue:u,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:G(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,n,i){for(var a=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,u=0,l=a.getOrdinalMeta().categories.length;u<l;++u){var f=e.rawIndexOf(o,a.getRawOrdinalNumber(u)),h=f<0?Number.MIN_VALUE:n(e.indexOfRawIndex(f));if(h>s)return!0;s=h}return!1},t.prototype._isOrderDifferentInView=function(e,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(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,n,i,a){if(this._isOrderChangedWithinSameData(e,n,i)){var o=this._dataSort(e,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,n,i){var a=n.baseAxis,o=this._dataSort(e,a,function(s){return e.get(e.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(e,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(e,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var n=this.group,i=this._data;e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){ls(a,e,at(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(oe),sd={cartesian2d:function(r,t){var e=t.width<0?-1:1,n=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,a=r.y+r.height,o=$u(t.x,r.x),s=qu(t.x+t.width,i),u=$u(t.y,r.y),l=qu(t.y+t.height,a),f=s<o,h=l<u;return t.x=f&&o>i?s:o,t.y=h&&u>a?l:u,t.width=f?0:s-o,t.height=h?0:l-u,e<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),f||h},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}var i=qu(t.r,r.r),a=$u(t.r0,r.r0);t.r=i,t.r0=a;var o=i-a<0;if(e<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},ud={cartesian2d:function(r,t,e,n,i,a,o,s,u){var l=new wt({shape:B({},n),z2:1});if(l.__dataIndex=e,l.name="item",a){var f=l.shape,h=i?"height":"width";f[h]=0}return l},polar:function(r,t,e,n,i,a,o,s,u){var l=!i&&u?od:Xe,f=new l({shape:n,z2:1});f.name="item";var h=y0(i);if(f.calculateTextPosition=QC(h,{isRoundCap:l===od}),a){var c=f.shape,v=i?"r":"endAngle",d={};c[v]=i?n.r0:n.startAngle,d[v]=n[v],(s?It:Et)(f,{shape:d},a)}return f}};function eM(r,t){var e=r.get("realtimeSort",!0),n=t.getBaseAxis();if(e&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function ld(r,t,e,n,i,a,o,s){var u,l;a?(l={x:n.x,width:n.width},u={y:n.y,height:n.height}):(l={y:n.y,height:n.height},u={x:n.x,width:n.width}),s||(o?It:Et)(e,{shape:u},t,i,null);var f=t?r.baseAxis.model:null;(o?It:Et)(e,{shape:l},f,i)}function fd(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var rM=["x","y","width","height"],nM=["cx","cy","r","startAngle","endAngle"],hd={cartesian2d:function(r){return!fd(r,rM)},polar:function(r){return!fd(r,nM)}},yo={cartesian2d:function(r,t,e){var n=r.getItemLayout(t),i=e?aM(e,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,t,e){var n=r.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function iM(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function y0(r){return(function(t){var e=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+e;default:return n}}})(r)}function vd(r,t,e,n,i,a,o,s){var u=t.getItemVisual(e,"style");if(s){if(!a.get("roundCap")){var f=r.shape,h=aa(n.getModel("itemStyle"),f,!0);B(f,h),r.setShape(f)}}else{var l=n.get(["itemStyle","borderRadius"])||0;r.setShape("r",l)}r.useStyle(u);var c=n.getShallow("cursor");c&&r.attr("cursor",c);var v=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",d=Ci(n);Ti(r,d,{labelFetcher:a,labelDataIndex:e,defaultText:Fh(a.getData(),e),inheritColor:u.fill,defaultOpacity:u.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var g=n.get(["label","position"]);r.textConfig.inside=g==="middle"?!0:null,JC(r,g==="outside"?v:g,y0(o),n.get(["label","rotate"]))}fb(p,d,a.getRawValue(e),function(m){return e0(t,m)});var y=n.getModel(["emphasis"]);ci(r,y.get("focus"),y.get("blurScope"),y.get("disabled")),di(r,n),iM(i)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function aM(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var n=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var oM=(function(){function r(){}return r})(),cd=(function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new oM},t.prototype.buildPath=function(e,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],u=[],l=this.barWidth,f=0;f<i.length;f+=3)u[a]=l,u[o]=i[f+2],s[a]=i[f+a],s[o]=i[f+o],e.rect(s[0],s[1],u[0],u[1])},t})(it);function dd(r,t,e,n){var i=r.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),u=r.getModel("backgroundStyle"),l=i.getLayout("largeBackgroundPoints");if(l){var f=new cd({shape:{points:l},incremental:!!n,silent:!0,z2:0});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,f.useStyle(u.getItemStyle()),t.add(f),e&&e.push(f)}var h=new cd({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});h.baseDimIdx=a,h.largeDataIndices=o,h.barWidth=s,t.add(h),h.useStyle(i.getVisual("style")),h.style.stroke=null,at(h).seriesIndex=r.seriesIndex,r.get("silent")||(h.on("mousedown",pd),h.on("mousemove",pd)),e&&e.push(h)}var pd=Wh(function(r){var t=this,e=sM(t,r.offsetX,r.offsetY);at(t).dataIndex=e>=0?e:null},30,!1);function sM(r,t,e){for(var n=r.baseDimIdx,i=1-n,a=r.shape.points,o=r.largeDataIndices,s=[],u=[],l=r.barWidth,f=0,h=a.length/3;f<h;f++){var c=f*3;if(u[n]=l,u[i]=a[c+2],s[n]=a[c+n],s[i]=a[c+i],u[i]<0&&(s[i]+=u[i],u[i]=-u[i]),t>=s[0]&&t<=s[0]+u[0]&&e>=s[1]&&e<=s[1]+u[1])return o[f]}return-1}function m0(r,t,e){if(Vh(e,"cartesian2d")){var n=t,i=e.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=e.getArea(),a=t;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 uM(r,t,e){var n=r.type==="polar"?Xe:wt;return new n({shape:m0(t,e,r),silent:!0,z2:0})}function lM(r){r.registerChartView(tM),r.registerSeriesModel(qC),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,ft(XC,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,ZC("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,f0("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var n=t.componentType||"series";e.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}function fM(r,t){function e(n,i){var a=[];return n.eachComponent({mainType:"series",subType:r,query:i},function(o){a.push(o.seriesIndex)}),a}M([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=B({},i),o.dispatchAction(B(i,{type:n[1],seriesIndex:e(a,i)}))})})}function Fn(r,t,e,n,i){var a=r+t;e.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,u=o.option.selectedMap,l=i.selected,f=0;f<l.length;f++)if(l[f].seriesIndex===s){var h=o.getData(),c=_n(h,i.fromActionPayload);e.trigger(a,{type:a,seriesId:o.id,name:z(c)?h.getName(c[0]):h.getName(c),selected:W(u)?u:B({},u)})}})}function hM(r,t,e){r.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(Fn("map","selectchanged",t,i,n),Fn("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Fn("map","selected",t,i,n),Fn("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Fn("map","unselected",t,i,n),Fn("pie","unselected",t,i,n))})}var gd=Math.PI*2,mo=Math.PI/180;function _0(r,t){return Br(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function S0(r,t){var e=_0(r,t),n=r.get("center"),i=r.get("radius");z(i)||(i=[0,i]);var a=pt(e.width,t.getWidth()),o=pt(e.height,t.getHeight()),s=Math.min(a,o),u=pt(i[0],s/2),l=pt(i[1],s/2),f,h,c=r.coordinateSystem;if(c){var v=c.dataToPoint(n);f=v[0]||0,h=v[1]||0}else z(n)||(n=[n,n]),f=pt(n[0],a)+e.x,h=pt(n[1],o)+e.y;return{cx:f,cy:h,r0:u,r:l}}function vM(r,t,e){t.eachSeriesByType(r,function(n){var i=n.getData(),a=i.mapDimension("value"),o=_0(n,e),s=S0(n,e),u=s.cx,l=s.cy,f=s.r,h=s.r0,c=-n.get("startAngle")*mo,v=n.get("endAngle"),d=n.get("padAngle")*mo;v=v==="auto"?c-gd:-v*mo;var p=n.get("minAngle")*mo,g=p+d,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 T=S?1:-1,C=[c,v],A=T*d/2;vy(C,!S),c=C[0],v=C[1];var D=x0(n);D.startAngle=c,D.endAngle=v,D.clockwise=S;var I=Math.abs(v-c),L=I,P=0,R=c;if(i.setLayout({viewRect:o,r:f}),i.each(a,function(F,k){var O;if(isNaN(F)){i.setItemLayout(k,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:u,cy:l,r0:h,r:w?NaN:f});return}w!=="area"?O=m===0&&x?_:F*_:O=I/y,O<g?(O=g,L-=g):P+=F;var V=R+T*O,H=0,U=0;d>O?(H=R+T*O/2,U=H):(H=R+A,U=V-A),i.setItemLayout(k,{angle:O,startAngle:H,endAngle:U,clockwise:S,cx:u,cy:l,r0:h,r:w?Cr(F,b,[h,f]):f}),R=V}),L<gd&&y)if(L<=.001){var E=I/y;i.each(a,function(F,k){if(!isNaN(F)){var O=i.getItemLayout(k);O.angle=E;var V=0,H=0;E<d?(V=c+T*(k+1/2)*E,H=V):(V=c+T*k*E+A,H=c+T*(k+1)*E-A),O.startAngle=V,O.endAngle=H}})}else _=L/P,R=c,i.each(a,function(F,k){if(!isNaN(F)){var O=i.getItemLayout(k),V=O.angle===g?g:F*_,H=0,U=0;V<d?(H=R+T*V/2,U=H):(H=R+A,U=R+T*V-A),O.startAngle=H,O.endAngle=U,R+=T*V}})})}var x0=mt();function w0(r){return{seriesType:r,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.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 Hi=Math.PI*2,sn=ur.CMD,cM=["top","right","bottom","left"];function dM(r,t,e,n,i){var a=e.width,o=e.height;switch(r){case"top":n.set(e.x+a/2,e.y-t),i.set(0,-1);break;case"bottom":n.set(e.x+a/2,e.y+o+t),i.set(0,1);break;case"left":n.set(e.x-t,e.y+o/2),i.set(-1,0);break;case"right":n.set(e.x+a+t,e.y+o/2),i.set(1,0);break}}function pM(r,t,e,n,i,a,o,s,u){o-=r,s-=t;var l=Math.sqrt(o*o+s*s);o/=l,s/=l;var f=o*e+r,h=s*e+t;if(Math.abs(n-i)%Hi<1e-4)return u[0]=f,u[1]=h,l-e;if(a){var c=n;n=rr(i),i=rr(c)}else n=rr(n),i=rr(i);n>i&&(i+=Hi);var v=Math.atan2(s,o);if(v<0&&(v+=Hi),v>=n&&v<=i||v+Hi>=n&&v+Hi<=i)return u[0]=f,u[1]=h,l-e;var d=e*Math.cos(n)+r,p=e*Math.sin(n)+t,g=e*Math.cos(i)+r,y=e*Math.sin(i)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(g-o)*(g-o)+(y-s)*(y-s);return m<_?(u[0]=d,u[1]=p,Math.sqrt(m)):(u[0]=g,u[1]=y,Math.sqrt(_))}function ds(r,t,e,n,i,a,o,s){var u=i-r,l=a-t,f=e-r,h=n-t,c=Math.sqrt(f*f+h*h);f/=c,h/=c;var v=u*f+l*h,d=v/c;s&&(d=Math.min(Math.max(d,0),1)),d*=c;var p=o[0]=r+d*f,g=o[1]=t+d*h;return Math.sqrt((p-i)*(p-i)+(g-a)*(g-a))}function b0(r,t,e,n,i,a,o){e<0&&(r=r+e,e=-e),n<0&&(t=t+n,n=-n);var s=r+e,u=t+n,l=o[0]=Math.min(Math.max(i,r),s),f=o[1]=Math.min(Math.max(a,t),u);return Math.sqrt((l-i)*(l-i)+(f-a)*(f-a))}var Ce=[];function gM(r,t,e){var n=b0(t.x,t.y,t.width,t.height,r.x,r.y,Ce);return e.set(Ce[0],Ce[1]),n}function yM(r,t,e){for(var n=0,i=0,a=0,o=0,s,u,l=1/0,f=t.data,h=r.x,c=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(n=f[v],i=f[v+1],a=n,o=i);var p=l;switch(d){case sn.M:a=f[v++],o=f[v++],n=a,i=o;break;case sn.L:p=ds(n,i,f[v],f[v+1],h,c,Ce,!0),n=f[v++],i=f[v++];break;case sn.C:p=ny(n,i,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],h,c,Ce),n=f[v++],i=f[v++];break;case sn.Q:p=ay(n,i,f[v++],f[v++],f[v],f[v+1],h,c,Ce),n=f[v++],i=f[v++];break;case sn.A:var g=f[v++],y=f[v++],m=f[v++],_=f[v++],S=f[v++],w=f[v++];v+=1;var x=!!(1-f[v++]);s=Math.cos(S)*m+g,u=Math.sin(S)*_+y,v<=1&&(a=s,o=u);var b=(h-g)*_/m+g;p=pM(g,y,_,S,S+w,x,b,c,Ce),n=Math.cos(S+w)*m+g,i=Math.sin(S+w)*_+y;break;case sn.R:a=n=f[v++],o=i=f[v++];var T=f[v++],C=f[v++];p=b0(a,o,T,C,h,c,Ce);break;case sn.Z:p=ds(n,i,a,o,h,c,Ce,!0),n=a,i=o;break}p<l&&(l=p,e.set(Ce[0],Ce[1]))}return l}var Ae=new X,gt=new X,bt=new X,Ve=new X,Fe=new X;function yd(r,t){if(r){var e=r.getTextGuideLine(),n=r.getTextContent();if(n&&e){var i=r.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||cM,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var u=1/0,l=i.anchor,f=r.getComputedTransform(),h=f&&Rs([],f),c=t.get("length2")||0;l&&bt.copy(l);for(var v=0;v<o.length;v++){var d=o[v];dM(d,0,s,Ae,Ve),X.scaleAndAdd(gt,Ae,Ve,c),gt.transform(h);var p=r.getBoundingRect(),g=l?l.distance(gt):r instanceof it?yM(gt,r.path,bt):gM(gt,p,bt);g<u&&(u=g,gt.transform(f),bt.transform(f),bt.toArray(a[0]),gt.toArray(a[1]),Ae.toArray(a[2]))}T0(a,t.get("minTurnAngle")),e.setShape({points:a})}}}var ps=[],Ut=new X;function T0(r,t){if(t<=180&&t>0){t=t/180*Math.PI,Ae.fromArray(r[0]),gt.fromArray(r[1]),bt.fromArray(r[2]),X.sub(Ve,Ae,gt),X.sub(Fe,bt,gt);var e=Ve.len(),n=Fe.len();if(!(e<.001||n<.001)){Ve.scale(1/e),Fe.scale(1/n);var i=Ve.dot(Fe),a=Math.cos(t);if(a<i){var o=ds(gt.x,gt.y,bt.x,bt.y,Ae.x,Ae.y,ps,!1);Ut.fromArray(ps),Ut.scaleAndAdd(Fe,o/Math.tan(Math.PI-t));var s=bt.x!==gt.x?(Ut.x-gt.x)/(bt.x-gt.x):(Ut.y-gt.y)/(bt.y-gt.y);if(isNaN(s))return;s<0?X.copy(Ut,gt):s>1&&X.copy(Ut,bt),Ut.toArray(r[1])}}}}function mM(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Ae.fromArray(r[0]),gt.fromArray(r[1]),bt.fromArray(r[2]),X.sub(Ve,gt,Ae),X.sub(Fe,bt,gt);var n=Ve.len(),i=Fe.len();if(!(n<.001||i<.001)){Ve.scale(1/n),Fe.scale(1/i);var a=Ve.dot(t),o=Math.cos(e);if(a<o){var s=ds(gt.x,gt.y,bt.x,bt.y,Ae.x,Ae.y,ps,!1);Ut.fromArray(ps);var u=Math.PI/2,l=Math.acos(Fe.dot(t)),f=u+l-e;if(f>=u)X.copy(Ut,bt);else{Ut.scaleAndAdd(Fe,s/Math.tan(Math.PI/2-f));var h=bt.x!==gt.x?(Ut.x-gt.x)/(bt.x-gt.x):(Ut.y-gt.y)/(bt.y-gt.y);if(isNaN(h))return;h<0?X.copy(Ut,gt):h>1&&X.copy(Ut,bt)}Ut.toArray(r[1])}}}}function Ku(r,t,e,n){var i=e==="normal",a=i?r:r.ensureState(e);a.ignore=t;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 _M(r,t){var e=t.smooth,n=t.points;if(n)if(r.moveTo(n[0][0],n[0][1]),e>0&&n.length>=3){var i=Gl(n[0],n[1]),a=Gl(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)*e,s=Oo([],n[1],n[0],o/i),u=Oo([],n[1],n[2],o/a),l=Oo([],s,u,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),r.bezierCurveTo(u[0],u[1],u[0],u[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 C0(r,t,e){var n=r.getTextGuideLine(),i=r.getTextContent();if(!i){n&&r.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,u=0;u<os.length;u++){var l=os[u],f=t[l],h=l==="normal";if(f){var c=f.get("show"),v=h?s:j(i.states[l]&&i.states[l].ignore,s);if(v||!j(c,o)){var d=h?n:n&&n.states[l];d&&(d.ignore=!0),n&&Ku(n,!0,l,f);continue}n||(n=new zr,r.setTextGuideLine(n),!h&&(s||!o)&&Ku(n,!0,"normal",t.normal),r.stateProxy&&(n.stateProxy=r.stateProxy)),Ku(n,!1,l,f)}}if(n){K(n.style,e),n.style.fill=null;var p=a.get("showAbove"),g=r.textGuideLineConfig=r.textGuideLineConfig||{};g.showAbove=p||!1,n.buildPath=_M}}function M0(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},n=0;n<ge.length;n++){var i=ge[n];e[i]=r.getModel([i,t])}return e}function A0(r){for(var t=[],e=0;e<r.length;e++){var n=r[e];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,u=i.style.margin||0,l=o.clone();l.applyTransform(a),l.x-=u/2,l.y-=u/2,l.width+=u,l.height+=u;var f=s?new ss(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:l,localRect:o,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function D0(r,t,e,n,i,a){var o=r.length;if(o<2)return;r.sort(function(x,b){return x.rect[t]-b.rect[t]});for(var s=0,u,l=!1,f=0;f<o;f++){var h=r[f],c=h.rect;u=c[t]-s,u<0&&(c[t]-=u,h.label[t]-=u,l=!0),s=c[t]+c[e]}var v=r[0],d=r[o-1],p,g;y(),p<0&&S(-p,.8),g<0&&S(g,.8),y(),m(p,g,1),m(g,p,-1),y(),p<0&&w(-p),g<0&&w(g);function y(){p=v.rect[t]-n,g=i-d.rect[t]-d.rect[e]}function m(x,b,T){if(x<0){var C=Math.min(b,-x);if(C>0){_(C*T,0,o);var A=C+x;A<0&&S(-A*T,1)}else S(-x*T,1)}}function _(x,b,T){x!==0&&(l=!0);for(var C=b;C<T;C++){var A=r[C],D=A.rect;D[t]+=x,A.label[t]+=x}}function S(x,b){for(var T=[],C=0,A=1;A<o;A++){var D=r[A-1].rect,I=Math.max(r[A].rect[t]-D[t]-D[e],0);T.push(I),C+=I}if(C){var L=Math.min(Math.abs(x)/C,b);if(x>0)for(var A=0;A<o-1;A++){var P=T[A]*L;_(P,0,A+1)}else for(var A=o-1;A>0;A--){var P=T[A-1]*L;_(-P,A,o)}}}function w(x){var b=x<0?-1:1;x=Math.abs(x);for(var T=Math.ceil(x/(o-1)),C=0;C<o-1;C++)if(b>0?_(T,0,C+1):_(-T,o-C-1,o),x-=T,x<=0)return}return l}function SM(r,t,e,n){return D0(r,"x","width",t,e)}function I0(r,t,e,n){return D0(r,"y","height",t,e)}function L0(r){var t=[];r.sort(function(p,g){return g.priority-p.priority});var e=new st(0,0,0,0);function n(p){if(!p.ignore){var g=p.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}p.ignore=!0}for(var i=0;i<r.length;i++){var a=r[i],o=a.axisAligned,s=a.localRect,u=a.transform,l=a.label,f=a.labelLine;e.copy(a.rect),e.width-=.1,e.height-=.1,e.x+=.05,e.y+=.05;for(var h=a.obb,c=!1,v=0;v<t.length;v++){var d=t[v];if(e.intersect(d.rect)){if(o&&d.axisAligned){c=!0;break}if(d.obb||(d.obb=new ss(d.localRect,d.transform)),h||(h=new ss(s,u)),h.intersect(d.obb)){c=!0;break}}}c?(n(l),f&&n(f)):(l.attr("ignore",a.defaultAttr.ignore),f&&f.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}var xM=Math.PI/180;function md(r,t,e,n,i,a,o,s,u,l){if(r.length<2)return;function f(p){for(var g=p.rB,y=g*g,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-e),w=n+_.len,x=w*w,b=Math.sqrt(Math.abs((1-S*S/y)*x)),T=t+(b+_.len2)*i,C=T-_.label.x,A=_.targetTextWidth-C*i;P0(_,A,!0),_.label.x=T}}function h(p){for(var g={list:[],maxY:0},y={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>e?y:g,w=Math.abs(_.label.y-e);if(w>=S.maxY){var x=_.label.x-t-_.len2*i,b=n+_.len,T=Math.abs(x)<b?Math.sqrt(w*w/(1-x*x/b/b)):b;S.rB=T,S.maxY=w}S.list.push(_)}f(g),f(y)}for(var c=r.length,v=0;v<c;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-l;r[v].linePoints[1][0]+=d,r[v].label.x=l}I0(r,u,u+o)&&h(r)}function wM(r,t,e,n,i,a,o,s){for(var u=[],l=[],f=Number.MAX_VALUE,h=-Number.MAX_VALUE,c=0;c<r.length;c++){var v=r[c].label;Qu(r[c])||(v.x<t?(f=Math.min(f,v.x),u.push(r[c])):(h=Math.max(h,v.x),l.push(r[c])))}for(var c=0;c<r.length;c++){var d=r[c];if(!Qu(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,g=void 0;d.labelAlignTo==="edge"?v.x<t?g=p[2][0]-d.labelDistance-o-d.edgeDistance:g=o+i-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?g=f-o-d.bleedMargin:g=o+i-h-d.bleedMargin:v.x<t?g=v.x-o-d.bleedMargin:g=o+i-v.x-d.bleedMargin,d.targetTextWidth=g,P0(d,g)}}md(l,t,e,n,1,i,a,o,s,h),md(u,t,e,n,-1,i,a,o,s,f);for(var c=0;c<r.length;c++){var d=r[c];if(!Qu(d)&&d.linePoints){var v=d.label,p=d.linePoints,y=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,w=d.rect.width+S,x=p[1][0]-p[2][0];y?v.x<t?p[2][0]=o+d.edgeDistance+w+d.labelDistance:p[2][0]=o+i-d.edgeDistance-w-d.labelDistance:(v.x<t?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=v.y}}}function P0(r,t,e){if(e===void 0&&(e=!1),r.labelStyleWidth==null){var n=r.label,i=n.style,a=r.rect,o=i.backgroundColor,s=i.padding,u=s?s[1]+s[3]:0,l=i.overflow,f=a.width+(o?0:u);if(t<f||e){var h=a.height;if(l&&l.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-u);var c=n.getBoundingRect();n.setStyle("width",Math.ceil(c.width)),n.setStyle("backgroundColor",o)}else{var v=t-u,d=t<f?v:e?v>r.unconstrainedWidth?null:v:null;n.setStyle("width",d)}var p=n.getBoundingRect();a.width=p.width;var g=(n.style.margin||0)+2.1;a.height=p.height+g,a.y-=(a.height-h)/2}}}function Qu(r){return r.position==="center"}function bM(r){var t=r.getData(),e=[],n,i,a=!1,o=(r.get("minShowLabelAngle")||0)*xM,s=t.getLayout("viewRect"),u=t.getLayout("r"),l=s.width,f=s.x,h=s.y,c=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var b in x.states)if(x.states[b].ignore===!1)return!0;return!1}t.each(function(x){var b=t.getItemGraphicEl(x),T=b.shape,C=b.getTextContent(),A=b.getTextGuideLine(),D=t.getItemModel(x),I=D.getModel("label"),L=I.get("position")||D.get(["emphasis","label","position"]),P=I.get("distanceToLabelLine"),R=I.get("alignTo"),E=pt(I.get("edgeDistance"),l),F=I.get("bleedMargin"),k=D.getModel("labelLine"),O=k.get("length");O=pt(O,l);var V=k.get("length2");if(V=pt(V,l),Math.abs(T.endAngle-T.startAngle)<o){M(C.states,v),C.ignore=!0,A&&(M(A.states,v),A.ignore=!0);return}if(d(C)){var H=(T.startAngle+T.endAngle)/2,U=Math.cos(H),et=Math.sin(H),ut,ct,Ot,Kt;n=T.cx,i=T.cy;var Nt=L==="inside"||L==="inner";if(L==="center")ut=T.cx,ct=T.cy,Kt="center";else{var At=(Nt?(T.r+T.r0)/2*U:T.r*U)+n,_t=(Nt?(T.r+T.r0)/2*et:T.r*et)+i;if(ut=At+U*3,ct=_t+et*3,!Nt){var $=At+U*(O+u-T.r),rt=_t+et*(O+u-T.r),Pe=$+(U<0?-1:1)*V,Rt=rt;R==="edge"?ut=U<0?f+E:f+l-E:ut=Pe+(U<0?-P:P),ct=Rt,Ot=[[At,_t],[$,rt],[Pe,Rt]]}Kt=Nt?"center":R==="edge"?U>0?"right":"left":U>0?"left":"right"}var vr=Math.PI,Qe=0,Ii=I.get("rotate");if(vt(Ii))Qe=Ii*(vr/180);else if(L==="center")Qe=0;else if(Ii==="radial"||Ii===!0){var I1=U<0?-H+vr:-H;Qe=I1}else if(Ii==="tangential"&&L!=="outside"&&L!=="outer"){var An=Math.atan2(U,et);An<0&&(An=vr*2+An);var L1=et>0;L1&&(An=vr+An),Qe=An-vr}if(a=!!Qe,C.x=ut,C.y=ct,C.rotation=Qe,C.setStyle({verticalAlign:"middle"}),Nt){C.setStyle({align:Kt});var su=C.states.select;su&&(su.x+=C.x,su.y+=C.y)}else{var Li=C.getBoundingRect().clone();Li.applyTransform(C.getComputedTransform());var dv=(C.style.margin||0)+2.1;Li.y-=dv/2,Li.height+=dv,e.push({label:C,labelLine:A,position:L,len:O,len2:V,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new X(U,et),linePoints:Ot,textAlign:Kt,labelDistance:P,labelAlignTo:R,edgeDistance:E,bleedMargin:F,rect:Li,unconstrainedWidth:Li.width,labelStyleWidth:C.style.width})}b.setTextConfig({inside:Nt})}}),!a&&r.get("avoidLabelOverlap")&&wM(e,n,i,u,l,c,f,h);for(var p=0;p<e.length;p++){var g=e[p],y=g.label,m=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(M(y.states,v),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(m){var w=g.linePoints;_||!w?(M(m.states,v),m.ignore=!0):(T0(w,g.minTurnAngle),mM(w,g.surfaceNormal,g.maxSurfaceAngle),m.setShape({points:w}),y.__hostTarget.textGuideLineConfig={anchor:new X(w[0][0],w[0][1])})}}}var TM=(function(r){N(t,r);function t(e,n,i){var a=r.call(this)||this;a.z2=2;var o=new Pt;return a.setTextContent(o),a.updateData(e,n,i,!0),a}return t.prototype.updateData=function(e,n,i,a){var o=this,s=e.hostModel,u=e.getItemModel(n),l=u.getModel("emphasis"),f=e.getItemLayout(n),h=B(aa(u.getModel("itemStyle"),f,!0),f);if(isNaN(h.startAngle)){o.setShape(h);return}if(a){o.setShape(h);var c=s.getShallow("animationType");s.ecModel.ssr?(Et(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=h.cx,o.originY=h.cy):c==="scale"?(o.shape.r=f.r0,Et(o,{shape:{r:f.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Et(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,n)):(o.shape.endAngle=f.startAngle,It(o,{shape:{endAngle:f.endAngle}},s,n))}else Aa(o),It(o,{shape:h},s,n);o.useStyle(e.getItemVisual(n,"style")),di(o,u);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,g=Math.sin(v)*d,y=u.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,e,n),o.ensureState("emphasis").shape=B({r:f.r+(l.get("scale")&&l.get("scaleSize")||0)},aa(l.getModel("itemStyle"),f)),B(o.ensureState("select"),{x:p,y:g,shape:aa(u.getModel(["select","itemStyle"]),f)}),B(o.ensureState("blur"),{shape:aa(u.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&B(m.ensureState("select"),{x:p,y:g}),B(_.ensureState("select"),{x:p,y:g}),ci(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},t.prototype._updateLabel=function(e,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),u=n.getItemVisual(i,"style"),l=u&&u.fill,f=u&&u.opacity;Ti(a,Ci(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:l,defaultOpacity:f,defaultText:e.getFormattedLabel(i,"normal")||n.getName(i)});var h=a.getTextContent();a.setTextConfig({position:null,rotation:null}),h.attr({z2:10});var c=e.get(["label","position"]);if(c!=="outside"&&c!=="outer")a.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new zr,this.setTextGuideLine(v)),C0(this,M0(o),{stroke:l,opacity:ua(s.get(["lineStyle","opacity"]),f,1)})}},t})(Xe),CM=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,n,i,a){var o=e.getData(),s=this._data,u=this.group,l;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&&(l=f.startAngle)}if(this._emptyCircleSector&&u.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var c=x0(e),v=new Xe({shape:B(S0(e,i),c)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,u.add(v)}o.diff(s).add(function(d){var p=new TM(o,d,l);o.setItemGraphicEl(d,p),u.add(p)}).update(function(d,p){var g=s.getItemGraphicEl(p);g.updateData(o,d,l),g.off("click"),u.add(g),o.setItemGraphicEl(d,g)}).remove(function(d){var p=s.getItemGraphicEl(d);ls(p,e,d)}).execute(),bM(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=e[0]-a.cx,s=e[1]-a.cy,u=Math.sqrt(o*o+s*s);return u<=a.r&&u>=a.r0}},t.type="pie",t})(oe);function R0(r,t,e){t=z(t)&&{coordDimensions:t}||B({encodeDefine:r.getEncode()},t);var n=r.getSource(),i=Dm(n,t).dimensions,a=new Am(i,r);return a.initData(n,e),a}var E0=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,e)},r})(),MM=mt(),AM=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new E0(ht(this.getData,this),ht(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return R0(this,{coordDimensions:["value"],encodeDefaulter:ft(Sb,this)})},t.prototype.getDataParams=function(e){var n=this.getData(),i=MM(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(u){o.push(u)}),a=i.seats=Bx(o,n.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=a[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ql(e,"labelLine",["show"]);var n=e.labelLine,i=e.emphasis.labelLine;n.show=n.show&&e.label.show,i.show=i.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(ye);function DM(r){return{seriesType:r,reset:function(t,e){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(vt(o)&&!isNaN(o)&&o<0)})}}}function IM(r){r.registerChartView(CM),r.registerSeriesModel(AM),fM("pie",r.registerAction),r.registerLayout(ft(vM,"pie")),r.registerProcessor(w0("pie")),r.registerProcessor(DM("pie"))}var zn=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),LM=(function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new zn(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(a,o,t),this.handler.dispatchToElement(new zn(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,u=this._dropTarget;this._dropTarget=s,e!==s&&(u&&s!==u&&this.handler.dispatchToElement(new zn(u,t),"dragleave",t.event),s&&s!==u&&this.handler.dispatchToElement(new zn(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new zn(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new zn(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),PM=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ju=[],RM=Q.browser.firefox&&+Q.browser.version.split(".")[0]<39;function Sf(r,t,e,n){return e=e||{},n?_d(r,t,e):RM&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):_d(r,t,e),e}function _d(r,t,e){if(Q.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Lm(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(hf(Ju,r,n,i)){e.zrX=Ju[0],e.zrY=Ju[1];return}}e.zrX=e.zrY=0}function Uh(r){return r||window.event}function fe(r,t,e){if(t=Uh(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Sf(r,o,t,e)}else{Sf(r,t,t,e);var a=EM(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&PM.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function EM(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function xf(r,t,e,n){r.addEventListener(t,e,n)}function kM(r,t,e,n){r.removeEventListener(t,e,n)}var k0=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},OM=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var u=i[o],l=Sf(n,u,{});a.points.push([l.zrX,l.zrY]),a.touches.push(u)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in ju)if(ju.hasOwnProperty(e)){var n=ju[e](this._track,t);if(n)return n}},r})();function Sd(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function NM(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var ju={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,i=(r[e-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Sd(n)/Sd(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=NM(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}},O0="silent";function BM(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:FM}}function FM(){k0(this.event)}var zM=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Ie),Wi=(function(){function r(t,e){this.x=t,this.y=e}return r})(),GM=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tl=new st(0,0,0,0),N0=(function(r){N(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new Wi(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new zM,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new LM(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(M(GM,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=B0(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var u=this._hovered=a?new Wi(n,i):this.findHover(n,i),l=u.target,f=this.proxy;f.setCursor&&f.setCursor(l?l.cursor:"default"),s&&l!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(u,"mousemove",e),l&&l!==s&&this.dispatchToElement(u,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Wi(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=BM(n,e,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(u){typeof u[o]=="function"&&u[o].call(u,s),u.trigger&&u.trigger(n,s)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new Wi(e,n);if(xd(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],u=this._pointerSize,l=u/2,f=new st(e-l,n-l,u,u),h=a.length-1;h>=0;h--){var c=a[h];c!==i&&!c.ignore&&!c.ignoreCoarsePointer&&(!c.parent||!c.parent.ignoreCoarsePointer)&&(tl.copy(c.getBoundingRect()),c.transform&&tl.applyTransform(c.transform),tl.intersect(f)&&s.push(c))}if(s.length)for(var v=4,d=Math.PI/12,p=Math.PI*2,g=0;g<l;g+=v)for(var y=0;y<p;y+=d){var m=e+g*Math.cos(y),_=n+g*Math.sin(y);if(xd(s,o,m,_,i),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new OM);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new Wi;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(Ie);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){N0.prototype[r]=function(t){var e=t.zrX,n=t.zrY,i=B0(this,e,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(e,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Gl(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function VM(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?O0:!0}return!1}function xd(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=VM(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==O0)){t.target=o;break}}}function B0(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var F0=32,Ui=7;function HM(r){for(var t=0;r>=F0;)t|=r&1,r>>=1;return r+t}function wd(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i<e&&n(r[i],r[i-1])<0;)i++;WM(r,t,i)}else for(;i<e&&n(r[i],r[i-1])>=0;)i++;return i-t}function WM(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function bd(r,t,e,n,i){for(n===t&&n++;n<e;n++){for(var a=r[n],o=t,s=n,u;o<s;)u=o+s>>>1,i(a,r[u])<0?s=u:o=u+1;var l=n-o;switch(l){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(;l>0;)r[o+l]=r[o+l-1],l--}r[o]=a}}function el(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])>0){for(s=n-i;u<s&&a(r,t[e+i+u])>0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}else{for(s=i+1;u<s&&a(r,t[e+i-u])<=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])>0?o=f+1:u=f}return u}function rl(r,t,e,n,i,a){var o=0,s=0,u=1;if(a(r,t[e+i])<0){for(s=i+1;u<s&&a(r,t[e+i-u])<0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s);var l=o;o=i-u,u=i-l}else{for(s=n-i;u<s&&a(r,t[e+i+u])>=0;)o=u,u=(u<<1)+1,u<=0&&(u=s);u>s&&(u=s),o+=i,u+=i}for(o++;o<u;){var f=o+(u-o>>>1);a(r,t[e+f])<0?u=f:o=f+1}return u}function UM(r,t){var e=Ui,n,i,a=0,o=[];n=[],i=[];function s(v,d){n[a]=v,i[a]=d,a+=1}function u(){for(;a>1;){var v=a-2;if(v>=1&&i[v-1]<=i[v]+i[v+1]||v>=2&&i[v-2]<=i[v]+i[v-1])i[v-1]<i[v+1]&&v--;else if(i[v]>i[v+1])break;f(v)}}function l(){for(;a>1;){var v=a-2;v>0&&i[v-1]<i[v+1]&&v--,f(v)}}function f(v){var d=n[v],p=i[v],g=n[v+1],y=i[v+1];i[v]=p+y,v===a-3&&(n[v+1]=n[v+2],i[v+1]=i[v+2]),a--;var m=rl(r[g],r,d,p,0,t);d+=m,p-=m,p!==0&&(y=el(r[d+p-1],r,g,y,y-1,t),y!==0&&(p<=y?h(d,p,g,y):c(d,p,g,y)))}function h(v,d,p,g){var y=0;for(y=0;y<d;y++)o[y]=r[v+y];var m=0,_=p,S=v;if(r[S++]=r[_++],--g===0){for(y=0;y<d;y++)r[S+y]=o[m+y];return}if(d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m];return}for(var w=e,x,b,T;;){x=0,b=0,T=!1;do if(t(r[_],o[m])<0){if(r[S++]=r[_++],b++,x=0,--g===0){T=!0;break}}else if(r[S++]=o[m++],x++,b=0,--d===1){T=!0;break}while((x|b)<w);if(T)break;do{if(x=rl(r[_],o,m,d,0,t),x!==0){for(y=0;y<x;y++)r[S+y]=o[m+y];if(S+=x,m+=x,d-=x,d<=1){T=!0;break}}if(r[S++]=r[_++],--g===0){T=!0;break}if(b=el(o[m],r,_,g,0,t),b!==0){for(y=0;y<b;y++)r[S+y]=r[_+y];if(S+=b,_+=b,g-=b,g===0){T=!0;break}}if(r[S++]=o[m++],--d===1){T=!0;break}w--}while(x>=Ui||b>=Ui);if(T)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),d===1){for(y=0;y<g;y++)r[S+y]=r[_+y];r[S+g]=o[m]}else{if(d===0)throw new Error;for(y=0;y<d;y++)r[S+y]=o[m+y]}}function c(v,d,p,g){var y=0;for(y=0;y<g;y++)o[y]=r[p+y];var m=v+d-1,_=g-1,S=p+g-1,w=0,x=0;if(r[S--]=r[m--],--d===0){for(w=S-(g-1),y=0;y<g;y++)r[w+y]=o[y];return}if(g===1){for(S-=d,m-=d,x=S+1,w=m+1,y=d-1;y>=0;y--)r[x+y]=r[w+y];r[S]=o[_];return}for(var b=e;;){var T=0,C=0,A=!1;do if(t(o[_],r[m])<0){if(r[S--]=r[m--],T++,C=0,--d===0){A=!0;break}}else if(r[S--]=o[_--],C++,T=0,--g===1){A=!0;break}while((T|C)<b);if(A)break;do{if(T=d-rl(o[_],r,v,d,d-1,t),T!==0){for(S-=T,m-=T,d-=T,x=S+1,w=m+1,y=T-1;y>=0;y--)r[x+y]=r[w+y];if(d===0){A=!0;break}}if(r[S--]=o[_--],--g===1){A=!0;break}if(C=g-el(r[m],o,0,g,g-1,t),C!==0){for(S-=C,_-=C,g-=C,x=S+1,w=_+1,y=0;y<C;y++)r[x+y]=o[w+y];if(g<=1){A=!0;break}}if(r[S--]=r[m--],--d===0){A=!0;break}b--}while(T>=Ui||C>=Ui);if(A)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),g===1){for(S-=d,m-=d,x=S+1,w=m+1,y=d-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:u,forceMergeRuns:l,pushRun:s}}function Xo(r,t,e,n){e||(e=0),n||(n=r.length);var i=n-e;if(!(i<2)){var a=0;if(i<F0){a=wd(r,e,n,t),bd(r,e,n,e+a,t);return}var o=UM(r,t),s=HM(i);do{if(a=wd(r,e,n,t),a<s){var u=i;u>s&&(u=s),bd(r,e,e+u,e+a,t),a=u}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var Td=!1;function nl(){Td||(Td=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Cd(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var YM=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Cd}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Xo(n,Cd)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e?e=e.slice():e=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),u=0;u<s.length;u++){var l=s[u];t.__dirty&&(l.__dirty|=ie),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(nl(),f.z=0),isNaN(f.z2)&&(nl(),f.z2=0),isNaN(f.zlevel)&&(nl(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var v=t.getTextContent();v&&this._updateAndAddDisplayable(v,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=nt(this._roots,t);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})(),gs;gs=Q.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};function Jn(){return new Date().getTime()}var XM=(function(r){N(t,r);function t(e){var n=r.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var n=e.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(e){if(e.animation){var n=e.prev,i=e.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var n=e.getClip();n&&this.removeClip(n),e.animation=null},t.prototype.update=function(e){for(var n=Jn()-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,e||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function n(){e._running&&(gs(n),!e._paused&&e.update())}gs(n)},t.prototype.start=function(){this._running||(this._time=Jn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Jn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Jn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var n=e.next;e.prev=e.next=e.animation=null,e=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,n){n=n||{},this.start();var i=new fh(e,n.loop);return this.addAnimator(i),i},t})(Ie),ZM=300,il=Q.domSupported,al=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=G(r,function(i){var a=i.replace("mouse","pointer");return e.hasOwnProperty(a)?a:i});return{mouse:r,touch:t,pointer:n}})(),Md={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Ad=!1;function wf(r){var t=r.pointerType;return t==="pen"||t==="touch"}function $M(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 ol(r){r&&(r.zrByTouch=!0)}function qM(r,t){return fe(r.dom,new KM(r,t),!0)}function z0(r,t){for(var e=t,n=!1;e&&e.nodeType!==9&&!(n=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return n}var KM=(function(){function r(t,e){this.stopPropagation=Xt,this.stopImmediatePropagation=Xt,this.preventDefault=Xt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),be={mousedown:function(r){r=fe(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=fe(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=fe(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=fe(this.dom,r);var t=r.toElement||r.relatedTarget;z0(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){Ad=!0,r=fe(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){Ad||(r=fe(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=fe(this.dom,r),ol(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),be.mousemove.call(this,r),be.mousedown.call(this,r)},touchmove:function(r){r=fe(this.dom,r),ol(r),this.handler.processGesture(r,"change"),be.mousemove.call(this,r)},touchend:function(r){r=fe(this.dom,r),ol(r),this.handler.processGesture(r,"end"),be.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<ZM&&be.click.call(this,r)},pointerdown:function(r){be.mousedown.call(this,r)},pointermove:function(r){wf(r)||be.mousemove.call(this,r)},pointerup:function(r){be.mouseup.call(this,r)},pointerout:function(r){wf(r)||be.mouseout.call(this,r)}};M(["click","dblclick","contextmenu"],function(r){be[r]=function(t){t=fe(this.dom,t),this.trigger(r,t)}});var bf={pointermove:function(r){wf(r)||bf.mousemove.call(this,r)},pointerup:function(r){bf.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function QM(r,t){var e=t.domHandlers;Q.pointerEventsSupported?M(al.pointer,function(n){Zo(t,n,function(i){e[n].call(r,i)})}):(Q.touchEventsSupported&&M(al.touch,function(n){Zo(t,n,function(i){e[n].call(r,i),$M(t)})}),M(al.mouse,function(n){Zo(t,n,function(i){i=Uh(i),t.touching||e[n].call(r,i)})}))}function JM(r,t){Q.pointerEventsSupported?M(Md.pointer,e):Q.touchEventsSupported||M(Md.mouse,e);function e(n){function i(a){a=Uh(a),z0(r,a.target)||(a=qM(r,a),t.domHandlers[n].call(r,a))}Zo(t,n,i,{capture:!0})}}function Zo(r,t,e,n){r.mounted[t]=e,r.listenerOpts[t]=n,xf(r.domTarget,t,e,n)}function sl(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&kM(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var Dd=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),jM=(function(r){N(t,r);function t(e,n){var i=r.call(this)||this;return i.__pointerCapturing=!1,i.dom=e,i.painterRoot=n,i._localHandlerScope=new Dd(e,be),il&&(i._globalHandlerScope=new Dd(document,bf)),QM(i,i._localHandlerScope),i}return t.prototype.dispose=function(){sl(this._localHandlerScope),il&&sl(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,il&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var n=this._globalHandlerScope;e?JM(this,n):sl(n)}},t})(Ie);/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var $o={},G0={};function tA(r){delete G0[r]}function eA(r){if(!r)return!1;if(typeof r=="string")return rs(r,1)<Xl;if(r.colorStops){for(var t=r.colorStops,e=0,n=t.length,i=0;i<n;i++)e+=rs(t[i].color,1);return e/=n,e<Xl}return!1}var rA=(function(){function r(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var a=new YM,o=n.renderer||"canvas";$o[o]||(o=yt($o)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new $o[o](e,a,n,t),u=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l=!Q.node&&!Q.worker&&!u?new jM(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,h=f==null||f==="auto"?Q.touchEventsSupported:!!f,c=44,v;h&&(v=j(n.pointerSize,c)),this.handler=new N0(a,s,l,s.root,v),this.animation=new XM({stage:{update:u?null:function(){return i._flush(!0)}}}),u||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=eA(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,n=Jn();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var i=Jn();e?(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(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Tt&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,tA(this.id))},r})();function Id(r,t){var e=new rA(Hg(),r,t);return G0[e.id]=e,e}function nA(r,t){$o[r]=t}var V0="";typeof navigator<"u"&&(V0=navigator.platform||"");var Gn="rgba(0, 0, 0, 0.2)";const iA={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Gn,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Gn,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Gn,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Gn,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Gn,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Gn,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:V0.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 Tf=Z();function aA(r,t){Ue(Tf.get(r)==null&&t),Tf.set(r,t)}function oA(r,t,e){var n=Tf.get(t);if(!n)return e;var i=n(r);return i?e.concat(i):e}var _o,Yi,Ld,Pd="\0_ec_inner",sA=1,Yh=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,i,a,o,s){a=a||{},this.option=null,this._theme=new St(a),this._locale=new St(o),this._optionManager=s},t.prototype.setOption=function(e,n,i){var a=kd(n);this._optionManager.setOption(e,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(e,n){return this._resetOption(e,kd(n))},t.prototype._resetOption=function(e,n){var i=!1,a=this._optionManager;if(!e||e==="recreate"){var o=a.mountOption(e==="recreate");!this.option||e==="recreate"?Ld(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var u=a.getMediaOption(this);u.length&&M(u,function(l){i=!0,this._mergeOption(l,n)},this)}return i},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],u=Z(),l=n&&n.replaceMergeMainTypeMap;mb(this),M(e,function(h,c){h!=null&&(lt.hasClass(c)?c&&(s.push(c),u.set(c,!0)):i[c]=i[c]==null?J(h):tt(i[c],h,!0))}),l&&l.each(function(h,c){lt.hasClass(c)&&!u.get(c)&&(s.push(c),u.set(c,!0))}),lt.topologicalTravel(s,lt.getAllClassMainTypes(),f,this);function f(h){var c=oA(this,h,Mt(e[h])),v=a.get(h),d=v?l&&l.get(h)?"replaceMerge":"normalMerge":"replaceAll",p=Wx(v,c,d);Qx(p,h,lt),i[h]=null,a.set(h,null),o.set(h,0);var g=[],y=[],m=0,_;M(p,function(S,w){var x=S.existing,b=S.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=h==="series",C=lt.getClass(h,S.keyInfo.subType,!T);if(!C)return;if(h==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===C)x.name=S.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var A=B({componentIndex:w},S.keyInfo);x=new C(b,this,this,A),B(x,A),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"&&_o(this)}this._seriesIndices||_o(this)},t.prototype.getOption=function(){var e=J(this.option);return M(e,function(n,i){if(lt.hasClass(i)){for(var a=Mt(n),o=a.length,s=!1,u=o-1;u>=0;u--)a[u]&&!Ma(a[u])?s=!0:(a[u]=null,!s&&o--);a.length=o,e[i]=a}}),delete e[Pd],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var i=this._componentsMap.get(e);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]}}},t.prototype.queryComponents=function(e){var n=e.mainType;if(!n)return[];var i=e.index,a=e.id,o=e.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var u;return i!=null?(u=[],M(Mt(i),function(l){s[l]&&u.push(s[l])})):a!=null?u=Rd("id",a,s):o!=null?u=Rd("name",o,s):u=xt(s,function(l){return!!l}),Ed(u,e)},t.prototype.findComponents=function(e){var n=e.query,i=e.mainType,a=s(n),o=a?this.queryComponents(a):xt(this._componentsMap.get(i),function(l){return!!l});return u(Ed(o,e));function s(l){var f=i+"Index",h=i+"Id",c=i+"Name";return l&&(l[f]!=null||l[h]!=null||l[c]!=null)?{mainType:i,index:l[f],id:l[h],name:l[c]}:null}function u(l){return e.filter?xt(l,e.filter):l}},t.prototype.eachComponent=function(e,n,i){var a=this._componentsMap;if(q(e)){var o=n,s=e;a.each(function(h,c){for(var v=0;h&&v<h.length;v++){var d=h[v];d&&s.call(o,c,d,d.componentIndex)}})}else for(var u=W(e)?a.get(e):Y(e)?this.findComponents(e):null,l=0;u&&l<u.length;l++){var f=u[l];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var n=He(e,null);return xt(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return xt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===e})},t.prototype.getSeries=function(){return xt(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,n){Yi(this),M(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];e.call(n,a,i)},this)},t.prototype.eachRawSeries=function(e,n){M(this._componentsMap.get("series"),function(i){i&&e.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(e,n,i){Yi(this),M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===e&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(e,n,i){return M(this.getSeriesByType(e),n,i)},t.prototype.isSeriesFiltered=function(e){return Yi(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,n){Yi(this);var i=[];M(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];e.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Z(i)},t.prototype.restoreData=function(e){_o(this);var n=this._componentsMap,i=[];n.each(function(a,o){lt.hasClass(o)&&i.push(o)}),lt.topologicalTravel(i,lt.getAllClassMainTypes(),function(a){M(n.get(a),function(o){o&&(a!=="series"||!uA(o,e))&&o.restoreData()})})},t.internalField=(function(){_o=function(e){var n=e._seriesIndices=[];M(e._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),e._seriesIndicesMap=Z(n)},Yi=function(e){},Ld=function(e,n){e.option={},e.option[Pd]=sA,e._componentsMap=Z({series:[]}),e._componentsCount=Z();var i=n.aria;Y(i)&&i.enabled==null&&(i.enabled=!0),lA(n,e._theme.option),tt(n,iA,!1),e._mergeOption(n,null)}})(),t})(St);function uA(r,t){if(t){var e=t.seriesIndex,n=t.seriesId,i=t.seriesName;return e!=null&&r.componentIndex!==e||n!=null&&r.id!==n||i!=null&&r.name!==i}}function lA(r,t){var e=r.color&&!r.colorLayer;M(t,function(n,i){i==="colorLayer"&&e||lt.hasClass(i)||(typeof n=="object"?r[i]=r[i]?tt(r[i],n,!1):J(n):r[i]==null&&(r[i]=n))})}function Rd(r,t,e){if(z(t)){var n=Z();return M(t,function(a){if(a!=null){var o=He(a,null);o!=null&&n.set(a,!0)}}),xt(e,function(a){return a&&n.get(a[r])})}else{var i=He(t,null);return xt(e,function(a){return a&&i!=null&&a[r]===i})}}function Ed(r,t){return t.hasOwnProperty("subType")?xt(r,function(e){return e&&e.subType===t.subType}):r}function kd(r){var t=Z();return r&&M(Mt(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}De(Yh,Nh);var fA=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],H0=(function(){function r(t){M(fA,function(e){this[e]=ht(t[e],t)},this)}return r})(),hA=/^(min|max)?(.+)$/,vA=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,n){t&&(M(Mt(t.series),function(o){o&&o.data&&ne(o.data)&&Qo(o.data)}),M(Mt(t.dataset),function(o){o&&o.source&&ne(o.source)&&Qo(o.source)})),t=J(t);var i=this._optionBackup,a=cA(t,e,!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(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],J(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=J(n[i.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var u=0,l=i.length;u<l;u++)dA(i[u].query,e,n)&&o.push(u);return!o.length&&a&&(o=[-1]),o.length&&!gA(o,this._currentMediaIndices)&&(s=G(o,function(f){return J(f===-1?a.option:i[f].option)})),this._currentMediaIndices=o,s},r})();function cA(r,t,e){var n=[],i,a,o=r.baseOption,s=r.timeline,u=r.options,l=r.media,f=!!r.media,h=!!(u||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((h||f)&&(r.options=r.media=null),a=r),f&&z(l)&&M(l,function(v){v&&v.option&&(v.query?n.push(v):i||(i=v))}),c(a),M(u,function(v){return c(v)}),M(n,function(v){return c(v.option)});function c(v){M(t,function(d){d(v,e)})}return{baseOption:a,timelineOptions:u||[],mediaDefault:i,mediaList:n}}function dA(r,t,e){var n={width:t,height:e,aspectratio:t/e},i=!0;return M(r,function(a,o){var s=o.match(hA);if(!(!s||!s[1]||!s[2])){var u=s[1],l=s[2].toLowerCase();pA(n[l],a,u)||(i=!1)}}),i}function pA(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function gA(r,t){return r.join(",")===t.join(",")}var Se=M,Ra=Y,Od=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ul(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=Od.length;e<n;e++){var i=Od[e],a=t.normal,o=t.emphasis;a&&a[i]&&(r[i]=r[i]||{},r[i].normal?tt(r[i].normal,a[i]):r[i].normal=a[i],a[i]=null),o&&o[i]&&(r[i]=r[i]||{},r[i].emphasis?tt(r[i].emphasis,o[i]):r[i].emphasis=o[i],o[i]=null)}}function Vt(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var n=r[t].normal,i=r[t].emphasis;n&&(e?(r[t].normal=r[t].emphasis=null,K(r[t],n)):r[t]=n),i&&(r.emphasis=r.emphasis||{},r.emphasis[t]=i,i.focus&&(r.emphasis.focus=i.focus),i.blurScope&&(r.emphasis.blurScope=i.blurScope))}}function oa(r){Vt(r,"itemStyle"),Vt(r,"lineStyle"),Vt(r,"areaStyle"),Vt(r,"label"),Vt(r,"labelLine"),Vt(r,"upperLabel"),Vt(r,"edgeLabel")}function Ct(r,t){var e=Ra(r)&&r[t],n=Ra(e)&&e.textStyle;if(n)for(var i=0,a=jv.length;i<a;i++){var o=jv[i];n.hasOwnProperty(o)&&(e[o]=n[o])}}function he(r){r&&(oa(r),Ct(r,"label"),r.emphasis&&Ct(r.emphasis,"label"))}function yA(r){if(Ra(r)){ul(r),oa(r),Ct(r,"label"),Ct(r,"upperLabel"),Ct(r,"edgeLabel"),r.emphasis&&(Ct(r.emphasis,"label"),Ct(r.emphasis,"upperLabel"),Ct(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(ul(t),he(t));var e=r.markLine;e&&(ul(e),he(e));var n=r.markArea;n&&he(n);var i=r.data;if(r.type==="graph"){i=i||r.nodes;var a=r.links||r.edges;if(a&&!ne(a))for(var o=0;o<a.length;o++)he(a[o]);M(r.categories,function(l){oa(l)})}if(i&&!ne(i))for(var o=0;o<i.length;o++)he(i[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)he(s[o]);if(e=r.markLine,e&&e.data)for(var u=e.data,o=0;o<u.length;o++)z(u[o])?(he(u[o][0]),he(u[o][1])):he(u[o]);r.type==="gauge"?(Ct(r,"axisLabel"),Ct(r,"title"),Ct(r,"detail")):r.type==="treemap"?(Vt(r.breadcrumb,"itemStyle"),M(r.levels,function(l){oa(l)})):r.type==="tree"&&oa(r.leaves)}}function je(r){return z(r)?r:r?[r]:[]}function Nd(r){return(z(r)?r[0]:r)||{}}function mA(r,t){Se(je(r.series),function(n){Ra(n)&&yA(n)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),Se(e,function(n){Se(je(r[n]),function(i){i&&(Ct(i,"axisLabel"),Ct(i.axisPointer,"label"))})}),Se(je(r.parallel),function(n){var i=n&&n.parallelAxisDefault;Ct(i,"axisLabel"),Ct(i&&i.axisPointer,"label")}),Se(je(r.calendar),function(n){Vt(n,"itemStyle"),Ct(n,"dayLabel"),Ct(n,"monthLabel"),Ct(n,"yearLabel")}),Se(je(r.radar),function(n){Ct(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)}),Se(je(r.geo),function(n){Ra(n)&&(he(n),Se(je(n.regions),function(i){he(i)}))}),Se(je(r.timeline),function(n){he(n),Vt(n,"label"),Vt(n,"itemStyle"),Vt(n,"controlStyle",!0);var i=n.data;z(i)&&M(i,function(a){Y(a)&&(Vt(a,"label"),Vt(a,"itemStyle"))})}),Se(je(r.toolbox),function(n){Vt(n,"iconStyle"),Se(n.feature,function(i){Vt(i,"iconStyle")})}),Ct(Nd(r.axisPointer),"label"),Ct(Nd(r.tooltip).axisPointer,"label")}function _A(r,t){for(var e=t.split(","),n=r,i=0;i<e.length&&(n=n&&n[e[i]],n!=null);i++);return n}function SA(r,t,e,n){for(var i=t.split(","),a=r,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=e)}function Bd(r){r&&M(xA,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var xA=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],wA=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ll=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Xi(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<ll.length;e++){var n=ll[e][1],i=ll[e][0];t[n]!=null&&(t[i]=t[n])}}function Fd(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function zd(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function bA(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function W0(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&W0(r[e].children,t)}function U0(r,t){mA(r,t),r.series=Mt(r.series),M(r.series,function(e){if(Y(e)){var n=e.type;if(n==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(n==="pie"||n==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Fd(e.label);var i=e.data;if(i&&!ne(i))for(var a=0;a<i.length;a++)Fd(i[a]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(n==="gauge"){var o=_A(e,"pointer.color");o!=null&&SA(e,"itemStyle.color",o)}else if(n==="bar"){Xi(e),Xi(e.backgroundStyle),Xi(e.emphasis);var i=e.data;if(i&&!ne(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(Xi(i[a]),Xi(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),zd(e),W0(e.data,zd)}else n==="graph"||n==="sankey"?bA(e):n==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&K(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Bd(e)}}),r.dataRange&&(r.visualMap=r.dataRange),M(wA,function(e){var n=r[e];n&&(z(n)||(n=[n]),M(n,function(i){Bd(i)}))})}function TA(r){var t=Z();r.eachSeries(function(e){var n=e.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=e.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(CA)}function CA(r){M(r,function(t,e){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,u=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(l,f,h){var c=o.get(t.stackedDimension,h);if(isNaN(c))return i;var v,d;s?d=o.getRawIndex(h):v=o.get(t.stackedByDimension,h);for(var p=NaN,g=e-1;g>=0;g--){var y=r[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,v)),d>=0){var m=y.data.getByRawIndex(y.stackResultDimension,d);if(u==="all"||u==="positive"&&m>0||u==="negative"&&m<0||u==="samesign"&&c>=0&&m>0||u==="samesign"&&c<=0&&m<0){c=Fx(c,m),p=m;break}}}return n[0]=c,n[1]=p,n})})}var qt=(function(){function r(){this.group=new Tt,this.uid=Ua("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,n,i){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,n,i){},r.prototype.updateLayout=function(t,e,n,i){},r.prototype.updateVisual=function(t,e,n,i){},r.prototype.toggleBlurSeries=function(t,e,n){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();oh(qt);Ls(qt);var Gd=mt(),Vd={itemStyle:Ta(im,!0),lineStyle:Ta(nm,!0)},MA={lineStyle:"stroke",itemStyle:"fill"};function Y0(r,t){var e=r.visualStyleMapper||Vd[t];return e||(console.warn("Unknown style type '"+t+"'."),Vd.itemStyle)}function X0(r,t){var e=r.visualDrawType||MA[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var AA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),a=Y0(r,n),o=a(i),s=i.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var u=X0(r,n),l=o[u],f=q(l)?l:null,h=o.fill==="auto"||o.stroke==="auto";if(!o[u]||f||h){var c=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[u]||(o[u]=c,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||q(o.fill)?c:o.fill,o.stroke=o.stroke==="auto"||q(o.stroke)?c:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",u),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),g=B({},o);g[u]=f(p),v.setItemVisual(d,"style",g)}}}},Zi=new St,DA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=Y0(r,n),a=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var u=o.getRawDataItem(s);if(u&&u[n]){Zi.option=u[n];var l=i(Zi),f=o.ensureUniqueItemVisual(s,"style");B(f,l),Zi.option.decal&&(o.setItemVisual(s,"decal",Zi.option.decal),Zi.option.decal.dirty=!0),a in l&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},IA={performRawSeries:!0,overallReset:function(r){var t=Z();r.eachSeries(function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),Gd(e).scope=a}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var n=e.getRawData(),i={},a=e.getData(),o=Gd(e).scope,s=e.visualStyleAccessPath||"itemStyle",u=X0(e,s);a.each(function(l){var f=a.getRawIndex(l);i[f]=l}),n.each(function(l){var f=i[l],h=a.getItemVisual(f,"colorFromPalette");if(h){var c=a.ensureUniqueItemVisual(f,"style"),v=n.getName(l)||l+"",d=n.count();c[u]=e.getColorFromPalette(v,o,d)}})}})}},So=Math.PI;function LA(r,t){t=t||{},K(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var e=new Tt,n=new wt({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(n);var i=new Pt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new wt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(a);var o;return t.showSpinner&&(o=new Vs({shape:{startAngle:-So/2,endAngle:-So/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:So*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:So*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=i.getBoundingRect().width,u=t.showSpinner?t.spinnerRadius:0,l=(r.getWidth()-u*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:u),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:l,cy:f}),a.setShape({x:l-u,y:f-u,width:u*2,height:u*2}),n.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Z0=(function(){function r(t,e,n,i){this._stageTaskMap=Z(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,u=s!=null?Math.ceil(s/o):null;return{step:o,modBy:u,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),u=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:u,large:s}},r.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Z();t.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}),e._pipe(i,i.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;M(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";Ue(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,e,n),i.overallReset&&this._createOverallStageTask(i,a,e,n)},this)},r.prototype.prepareView=function(t,e,n,i){var a=t.renderTask,o=a.context;o.model=e,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(e,a)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},r.prototype._performStageTasks=function(t,e,n,i){i=i||{};var a=!1,o=this;M(t,function(u,l){if(!(i.visualType&&i.visualType!==u.visualType)){var f=o._stageTaskMap.get(u.uid),h=f.seriesTaskMap,c=f.overallTask;if(c){var v,d=c.agentStubMap;d.each(function(g){s(i,g)&&(g.dirty(),v=!0)}),v&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,i.block);d.each(function(g){g.perform(p)}),c.perform(p)&&(a=!0)}else h&&h.each(function(g,y){s(i,g)&&g.dirty();var m=o.getPerformArgs(g,i.block);m.skip=!u.performRawSeries&&e.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(m)&&(a=!0)})}});function s(u,l){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(l.__pipeline.id))}this.unfinished=a||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(n){e=n.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,n,i){var a=this,o=e.seriesTaskMap,s=e.seriesTaskMap=Z(),u=t.seriesType,l=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):u?n.eachRawSeriesByType(u,f):l&&l(n,i).each(f);function f(h){var c=h.uid,v=s.set(c,o&&o.get(c)||ma({plan:OA,reset:NA,count:FA}));v.context={model:h,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(h,v)}},r.prototype._createOverallStageTask=function(t,e,n,i){var a=this,o=e.overallTask=e.overallTask||ma({reset:PA});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,u=o.agentStubMap=Z(),l=t.seriesType,f=t.getTargetSeries,h=!0,c=!1,v="";Ue(!t.createOnAllSeries,v),l?n.eachRawSeriesByType(l,d):f?f(n,i).each(d):(h=!1,M(n.getSeries(),d));function d(p){var g=p.uid,y=u.set(g,s&&s.get(g)||(c=!0,ma({reset:RA,onDirty:kA})));y.context={model:p,overallProgress:h},y.agent=o,y.__block=h,a._pipe(p,y)}c&&o.dirty()},r.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},r.wrapStageHandler=function(t,e){return q(t)&&(t={overallReset:t,seriesType:zA(t)}),t.uid=Ua("stageHandler"),e&&(t.visualType=e),t},r})();function PA(r){r.overallReset(r.ecModel,r.api,r.payload)}function RA(r){return r.overallProgress&&EA}function EA(){this.agent.dirty(),this.getDownstream().dirty()}function kA(){this.agent&&this.agent.dirty()}function OA(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function NA(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Mt(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?G(t,function(e,n){return $0(n)}):BA}var BA=$0(0);function $0(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function FA(r){return r.data.count()}function zA(r){ys=null;try{r(Ea,q0)}catch{}return ys}var Ea={},q0={},ys;K0(Ea,Yh);K0(q0,H0);Ea.eachSeriesByType=Ea.eachRawSeriesByType=function(r){ys=r};Ea.eachComponent=function(r){r.mainType==="series"&&r.subType&&(ys=r.subType)};function K0(r,t){for(var e in t.prototype)r[e]=Xt}var Hd=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const GA={color:Hd,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Hd]};var zt="#B9B8CE",Wd="#100C2A",xo=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"}}}},Ud=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Q0={darkMode:!0,color:Ud,backgroundColor:Wd,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:Wd},dayLabel:{color:zt},monthLabel:{color:zt},yearLabel:{color:zt}},timeAxis:xo(),logAxis:xo(),valueAxis:xo(),categoryAxis:xo(),line:{symbol:"circle"},graph:{color:Ud},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"}}};Q0.categoryAxis.splitLine.show=!1;var VA=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},n={},i={};if(W(t)){var a=Ge(t);e.mainType=a.main||null,e.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(t,function(u,l){for(var f=!1,h=0;h<o.length;h++){var c=o[h],v=l.lastIndexOf(c);if(v>0&&v===l.length-c.length){var d=l.slice(0,v);d!=="data"&&(e.mainType=d,e[c.toLowerCase()]=u,f=!0)}}s.hasOwnProperty(l)&&(n[l]=u,f=!0),f||(i[l]=u)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},r.prototype.filter=function(t,e){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 u=e.cptQuery,l=e.dataQuery;return f(u,o,"mainType")&&f(u,o,"subType")&&f(u,o,"index","componentIndex")&&f(u,o,"name")&&f(u,o,"id")&&f(l,a,"name")&&f(l,a,"dataIndex")&&f(l,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,i,a));function f(h,c,v,d){return h[v]==null||c[d||v]===h[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),Cf=["symbol","symbolSize","symbolRotate","symbolOffset"],Yd=Cf.concat(["symbolKeepAspect"]),HA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o<Cf.length;o++){var s=Cf[o],u=r.get(s);q(u)?(a=!0,i[s]=u):n[s]=u}if(n.symbol=n.symbol||r.defaultSymbol,e.setVisual(B({legendIcon:r.legendIcon||n.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},n)),t.isSeriesFiltered(r))return;var l=yt(i);function f(h,c){for(var v=r.getRawValue(c),d=r.getDataParams(c),p=0;p<l.length;p++){var g=l[p];h.setItemVisual(c,g,i[g](v,d))}}return{dataEach:a?f:null}}},WA={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<Yd.length;s++){var u=Yd[s],l=o.getShallow(u,!0);l!=null&&i.setItemVisual(a,u,l)}}return{dataEach:e.hasItemOption?n:null}}};function UA(r,t,e){switch(e){case"color":var n=r.getItemVisual(t,"style");return n[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function YA(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function sa(r,t,e){for(var n;r&&!(t(r)&&(n=r,e));)r=r.__hostTarget||r.parent;return n}var XA=Math.round(Math.random()*9),ZA=typeof Object.defineProperty=="function",$A=(function(){function r(){this._id="__ec_inner_"+XA++}return r.prototype.get=function(t){return this._guard(t)[this._id]},r.prototype.set=function(t,e){var n=this._guard(t);return ZA?Object.defineProperty(n,this._id,{value:e,enumerable:!1,configurable:!0}):n[this._id]=e,this},r.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},r.prototype.has=function(t){return!!this._guard(t)[this._id]},r.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},r})();function cn(r){return isFinite(r)}function qA(r,t,e){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*e.width+e.x,i=i*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),n=cn(n)?n:0,i=cn(i)?i:1,a=cn(a)?a:0,o=cn(o)?o:0;var s=r.createLinearGradient(n,a,i,o);return s}function KA(r,t,e){var n=e.width,i=e.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,u=t.r==null?.5:t.r;t.global||(o=o*n+e.x,s=s*i+e.y,u=u*a),o=cn(o)?o:.5,s=cn(s)?s:.5,u=u>=0&&cn(u)?u:.5;var l=r.createRadialGradient(o,s,0,o,s,u);return l}function Mf(r,t,e){for(var n=t.type==="radial"?KA(r,t,e):qA(r,t,e),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function QA(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function wo(r){return parseInt(r,10)}function bo(r,t,e){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[n]!=null&&e[n]!=="auto")return parseFloat(e[n]);var s=document.defaultView.getComputedStyle(r);return(r[i]||wo(s[n])||wo(r.style[n]))-(wo(s[a])||0)-(wo(s[o])||0)|0}function JA(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:vt(r)?[r]:z(r)?r:null}function J0(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&JA(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(e){var i=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;i&&i!==1&&(e=G(e,function(a){return a/i}),n/=i)}return[e,n]}var jA=new ur(!0);function ms(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function Xd(r){return typeof r=="string"&&r!=="none"}function _s(r){var t=r.fill;return t!=null&&t!=="none"}function Zd(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function $d(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Af(r,t,e){var n=Kg(t.image,t.__image,e);if(Ps(n)){var i=r.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*rS),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function tD(r,t,e,n){var i,a=ms(e),o=_s(e),s=e.strokePercent,u=s<1,l=!t.path;(!t.silent||u)&&l&&t.createPathProxy();var f=t.path||jA,h=t.__dirty;if(!n){var c=e.fill,v=e.stroke,d=o&&!!c.colorStops,p=a&&!!v.colorStops,g=o&&!!c.image,y=a&&!!v.image,m=void 0,_=void 0,S=void 0,w=void 0,x=void 0;(d||p)&&(x=t.getBoundingRect()),d&&(m=h?Mf(r,c,x):t.__canvasFillGradient,t.__canvasFillGradient=m),p&&(_=h?Mf(r,v,x):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=h||!t.__canvasFillPattern?Af(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(w=h||!t.__canvasStrokePattern?Af(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),d?r.fillStyle=m:g&&(S?r.fillStyle=S:o=!1),p?r.strokeStyle=_:y&&(w?r.strokeStyle=w:a=!1)}var b=t.getGlobalScale();f.setScale(b[0],b[1],t.segmentIgnoreThreshold);var T,C;r.setLineDash&&e.lineDash&&(i=J0(t),T=i[0],C=i[1]);var A=!0;(l||h&Zn)&&(f.setDPR(r.dpr),u?f.setContext(null):(f.setContext(r),A=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(r,u?s:1),T&&(r.setLineDash(T),r.lineDashOffset=C),n||(e.strokeFirst?(a&&$d(r,e),o&&Zd(r,e)):(o&&Zd(r,e),a&&$d(r,e))),T&&r.setLineDash([])}function eD(r,t,e){var n=t.__image=Kg(e.image,t.__image,t,t.onload);if(!(!n||!Ps(n))){var i=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),u=n.width/n.height;if(o==null&&s!=null?o=s*u:s==null&&o!=null?s=o/u:o==null&&s==null&&(o=n.width,s=n.height),e.sWidth&&e.sHeight){var l=e.sx||0,f=e.sy||0;r.drawImage(n,l,f,e.sWidth,e.sHeight,i,a,o,s)}else if(e.sx&&e.sy){var l=e.sx,f=e.sy,h=o-l,c=s-f;r.drawImage(n,l,f,h,c,i,a,o,s)}else r.drawImage(n,i,a,o,s)}}function rD(r,t,e){var n,i=e.text;if(i!=null&&(i+=""),i){r.font=e.font||mn,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(n=J0(t),a=n[0],o=n[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(ms(e)&&r.strokeText(i,e.x,e.y),_s(e)&&r.fillText(i,e.x,e.y)):(_s(e)&&r.fillText(i,e.x,e.y),ms(e)&&r.strokeText(i,e.x,e.y)),a&&r.setLineDash([])}}var qd=["shadowBlur","shadowOffsetX","shadowOffsetY"],Kd=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function j0(r,t,e,n,i){var a=!1;if(!n&&(e=e||{},t===e))return!1;if(n||t.opacity!==e.opacity){re(r,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?pn.opacity:o}(n||t.blend!==e.blend)&&(a||(re(r,i),a=!0),r.globalCompositeOperation=t.blend||pn.blend);for(var s=0;s<qd.length;s++){var u=qd[s];(n||t[u]!==e[u])&&(a||(re(r,i),a=!0),r[u]=r.dpr*(t[u]||0))}return(n||t.shadowColor!==e.shadowColor)&&(a||(re(r,i),a=!0),r.shadowColor=t.shadowColor||pn.shadowColor),a}function Qd(r,t,e,n,i){var a=ka(t,i.inHover),o=n?null:e&&ka(e,i.inHover)||{};if(a===o)return!1;var s=j0(r,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(re(r,i),s=!0),Xd(a.fill)&&(r.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(re(r,i),s=!0),Xd(a.stroke)&&(r.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(re(r,i),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var u=a.lineWidth,l=u/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==l&&(s||(re(r,i),s=!0),r.lineWidth=l)}for(var f=0;f<Kd.length;f++){var h=Kd[f],c=h[0];(n||a[c]!==o[c])&&(s||(re(r,i),s=!0),r[c]=a[c]||h[1])}return s}function nD(r,t,e,n,i){return j0(r,ka(t,i.inHover),e&&ka(e,i.inHover),n,i)}function t_(r,t){var e=t.transform,n=r.dpr||1;e?r.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):r.setTransform(n,0,0,n,0,0)}function iD(r,t,e){for(var n=!1,i=0;i<r.length;i++){var a=r[i];n=n||a.isZeroArea(),t_(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=n}function aD(r,t){return r&&t?r[0]!==t[0]||r[1]!==t[1]||r[2]!==t[2]||r[3]!==t[3]||r[4]!==t[4]||r[5]!==t[5]:!(!r&&!t)}var Jd=1,jd=2,tp=3,ep=4;function oD(r){var t=_s(r),e=ms(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function re(r,t){t.batchFill&&r.fill(),t.batchStroke&&r.stroke(),t.batchFill="",t.batchStroke=""}function ka(r,t){return t&&r.__hoverStyle||r.style}function e_(r,t){dn(r,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function dn(r,t,e,n){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~ie,t.__isRendered=!1;return}var a=t.__clipPaths,o=e.prevElClipPaths,s=!1,u=!1;if((!o||QA(a,o))&&(o&&o.length&&(re(r,e),r.restore(),u=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),a&&a.length&&(re(r,e),r.save(),iD(a,r,e),s=!0),e.prevElClipPaths=a),e.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var l=e.prevEl;l||(u=s=!0);var f=t instanceof it&&t.autoBatch&&oD(t.style);s||aD(i,l.transform)?(re(r,e),t_(r,t)):f||re(r,e);var h=ka(t,e.inHover);t instanceof it?(e.lastDrawType!==Jd&&(u=!0,e.lastDrawType=Jd),Qd(r,t,l,u,e),(!f||!e.batchFill&&!e.batchStroke)&&r.beginPath(),tD(r,t,h,f),f&&(e.batchFill=h.fill||"",e.batchStroke=h.stroke||"")):t instanceof is?(e.lastDrawType!==tp&&(u=!0,e.lastDrawType=tp),Qd(r,t,l,u,e),rD(r,t,h)):t instanceof fr?(e.lastDrawType!==jd&&(u=!0,e.lastDrawType=jd),nD(r,t,l,u,e),eD(r,t,h)):t.getTemporalDisplayables&&(e.lastDrawType!==ep&&(u=!0,e.lastDrawType=ep),sD(r,t,e)),f&&n&&re(r,e),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function sD(r,t,e){var n=t.getDisplayables(),i=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var u=n[o];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),dn(r,u,a,o===s-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}for(var l=0,f=i.length;l<f;l++){var u=i[l];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),dn(r,u,a,l===f-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),a.prevEl=u}t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}var fl=new $A,rp=new Fa(100),np=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Df(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";r.dirty&&fl.delete(r);var a=fl.get(r);if(a)return a;var o=K(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return u(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/e,fl.set(r,s),r.dirty=!1,s;function u(l){for(var f=[e],h=!0,c=0;c<np.length;++c){var v=o[np[c]];if(v!=null&&!z(v)&&!W(v)&&!vt(v)&&typeof v!="boolean"){h=!1;break}f.push(v)}var d;if(h){d=f.join(",")+(i?"-svg":"");var p=rp.get(d);p&&(i?l.svgElement=p:l.image=p)}var g=n_(o.dashArrayX),y=uD(o.dashArrayY),m=r_(o.symbol),_=lD(g),S=i_(y),w=!i&&Si.createCanvas(),x=i&&{tag:"g",attrs:{},key:"dcl",children:[]},b=C(),T;w&&(w.width=b.width*e,w.height=b.height*e,T=w.getContext("2d")),A(),h&&rp.put(d,w||x),l.image=w,l.svgElement=x,l.svgWidth=b.width,l.svgHeight=b.height;function C(){for(var D=1,I=0,L=_.length;I<L;++I)D=Qv(D,_[I]);for(var P=1,I=0,L=m.length;I<L;++I)P=Qv(P,m[I].length);D*=P;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 A(){T&&(T.clearRect(0,0,w.width,w.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,w.width,w.height)));for(var D=0,I=0;I<y.length;++I)D+=y[I];if(D<=0)return;for(var L=-S,P=0,R=0,E=0;L<b.height;){if(P%2===0){for(var F=R/2%m.length,k=0,O=0,V=0;k<b.width*2;){for(var H=0,I=0;I<g[E].length;++I)H+=g[E][I];if(H<=0)break;if(O%2===0){var U=(1-o.symbolSize)*.5,et=k+g[E][O]*U,ut=L+y[P]*U,ct=g[E][O]*o.symbolSize,Ot=y[P]*o.symbolSize,Kt=V/2%m[F].length;Nt(et,ut,ct,Ot,m[F][Kt])}k+=g[E][O],++V,++O,O===g[E].length&&(O=0)}++E,E===g.length&&(E=0)}L+=y[P],++R,++P,P===y.length&&(P=0)}function Nt(At,_t,$,rt,Pe){var Rt=i?1:e,vr=wn(Pe,At*Rt,_t*Rt,$*Rt,rt*Rt,o.color,o.symbolKeepAspect);if(i){var Qe=n.painter.renderOneToVNode(vr);Qe&&x.children.push(Qe)}else e_(T,vr)}}}}function r_(r){if(!r||r.length===0)return[["rect"]];if(W(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!W(r[e])){t=!1;break}if(t)return r_([r]);for(var n=[],e=0;e<r.length;++e)W(r[e])?n.push([r[e]]):n.push(r[e]);return n}function n_(r){if(!r||r.length===0)return[[0,0]];if(vt(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,n=0;n<r.length;++n)if(!vt(r[n])){e=!1;break}if(e)return n_([r]);for(var i=[],n=0;n<r.length;++n)if(vt(r[n])){var t=Math.ceil(r[n]);i.push([t,t])}else{var t=G(r[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function uD(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(vt(r)){var t=Math.ceil(r);return[t,t]}var e=G(r,function(n){return Math.ceil(n)});return r.length%2?e.concat(e):e}function lD(r){return G(r,function(t){return i_(t)})}function i_(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function fD(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var n=e.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var u=n.ensureUniqueItemVisual(o,"style");u.decal=Df(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Df(i,t)}}})}var Te=new Ie,a_={};function hD(r,t){a_[r]=t}function vD(r){return a_[r]}var cD=1,dD=800,pD=900,gD=1e3,yD=2e3,mD=5e3,o_=1e3,_D=1100,Xh=2e3,s_=3e3,SD=4e3,eu=4500,xD=4600,wD=5e3,bD=6e3,u_=7e3,TD={PROCESSOR:{FILTER:gD,SERIES_FILTER:dD,STATISTIC:mD},VISUAL:{LAYOUT:o_,PROGRESSIVE_LAYOUT:_D,GLOBAL:Xh,CHART:s_,POST_CHART_LAYOUT:xD,COMPONENT:SD,BRUSH:wD,CHART_ITEM:eu,ARIA:bD,DECAL:u_}},Ft="__flagInMainProcess",Jt="__pendingUpdate",hl="__needsUpdateStatus",ip=/^[a-zA-Z0-9_]+$/,vl="__connectUpdateStatus",ap=0,CD=1,MD=2;function l_(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return h_(this,r,t)}}function f_(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return h_(this,r,t)}}function h_(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Ie.prototype[t].apply(r,e)}var v_=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Ie),c_=v_.prototype;c_.on=f_("on");c_.off=f_("off");var Vn,cl,To,xr,dl,pl,gl,$i,qi,op,sp,yl,up,Co,lp,d_,se,fp,p_=(function(r){N(t,r);function t(e,n,i){var a=r.call(this,new VA)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},W(n)&&(n=g_[n]),a._dom=e;var o="canvas",s="auto",u=!1;i.ssr;var l=a._zr=Id(e,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:j(i.useDirtyRect,u),useCoarsePointer:j(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=Wh(ht(l.flush,l),17),n=J(n),n&&U0(n,!0),a._theme=n,a._locale=pT(i.locale||Pm),a._coordSysMgr=new Dh;var f=a._api=lp(a);function h(c,v){return c.__prio-v.__prio}return Xo(xs,h),Xo(If,h),a._scheduler=new Z0(a,f,If,xs),a._messageCenter=new v_,a._initEvents(),a.resize=ht(a.resize,a),l.animation.on("frame",a._onframe,a),op(l,a),sp(l,a),Qo(a),a}return t.prototype._onframe=function(){if(!this._disposed){fp(this);var e=this._scheduler;if(this[Jt]){var n=this[Jt].silent;this[Ft]=!0;try{Vn(this),xr.update.call(this,null,this[Jt].updateParams)}catch(u){throw this[Ft]=!1,this[Jt]=null,u}this._zr.flush(),this[Ft]=!1,this[Jt]=null,$i.call(this,n),qi.call(this,n)}else if(e.unfinished){var i=cD,a=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(a),e.performDataProcessorTasks(a),pl(this,a),e.performVisualTasks(a),Co(this,this._model,o,"remain",{}),i-=+new Date-s}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,n,i){if(!this[Ft]){if(this._disposed){this.id;return}var a,o,s;if(Y(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ft]=!0,!this._model||n){var u=new vA(this._api),l=this._theme,f=this._model=new Yh;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,l,this._locale,u)}this._model.setOption(e,{replaceMerge:o},Lf);var h={seriesTransition:s,optionChanged:!0};if(i)this[Jt]={silent:a,updateParams:h},this[Ft]=!1,this.getZr().wakeUp();else{try{Vn(this),xr.update.call(this,null,h)}catch(c){throw this[Jt]=null,this[Ft]=!1,c}this._ssr||this._zr.flush(),this[Jt]=null,this[Ft]=!1,$i.call(this,a),qi.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Q.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var n=this._zr.painter;return n.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(Q.svgSupported){var e=this._zr,n=e.storage.getDisplayList();return M(n,function(i){i.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var n=e.excludeComponents,i=this._model,a=[],o=this;M(n,function(u){i.eachComponent({mainType:u},function(l){var f=o._componentsMap[l.__viewId];f.group.ignore||(a.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return M(a,function(u){u.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var n=e.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(hp[i]){var u=s,l=s,f=-s,h=-s,c=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();M(Sa,function(_,S){if(_.group===i){var w=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(J(e)),x=_.getDom().getBoundingClientRect();u=a(x.left,u),l=a(x.top,l),f=o(x.right,f),h=o(x.bottom,h),c.push({dom:w,left:x.left,top:x.top})}}),u*=v,l*=v,f*=v,h*=v;var d=f-u,p=h-l,g=Si.createCanvas(),y=Id(g,{renderer:n?"svg":"canvas"});if(y.resize({width:d,height:p}),n){var m="";return M(c,function(_){var S=_.left-u,w=_.top-l;m+='<g transform="translate('+S+","+w+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&y.painter.setBackgroundColor(e.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return e.connectedBackgroundColor&&y.add(new wt({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),M(c,function(_){var S=new fr({style:{x:_.left*v-u,y:_.top*v-l,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,n){return dl(this,"convertToPixel",e,n)},t.prototype.convertFromPixel=function(e,n){return dl(this,"convertFromPixel",e,n)},t.prototype.containPixel=function(e,n){if(this._disposed){this.id;return}var i=this._model,a,o=ca(i,e);return M(o,function(s,u){u.indexOf("Models")>=0&&M(s,function(l){var f=l.coordinateSystem;if(f&&f.containPoint)a=a||!!f.containPoint(n);else if(u==="seriesModels"){var h=this._chartsMap[l.__viewId];h&&h.containPoint&&(a=a||h.containPoint(n,l))}},this)},this),!!a},t.prototype.getVisual=function(e,n){var i=this._model,a=ca(i,e,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),u=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return u!=null?UA(s,u,n):YA(s,n)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;M(AD,function(n){var i=function(a){var o=e.getModel(),s=a.target,u,l=n==="globalout";if(l?u={}:s&&sa(s,function(d){var p=at(d);if(p&&p.dataIndex!=null){var g=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return u=g&&g.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return u=B({},p.eventData),!0},!0),u){var f=u.componentType,h=u.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",h=u.seriesIndex);var c=f&&h!=null&&o.getComponent(f,h),v=c&&e[c.mainType==="series"?"_chartsMap":"_componentsMap"][c.__viewId];u.event=a,u.type=n,e._$eventProcessor.eventInfo={targetEl:s,packedEvent:u,model:c,view:v},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)}),M(_a,function(n,i){e._messageCenter.on(i,function(a){this.trigger(i,a)},e)}),M(["selectchanged"],function(n){e._messageCenter.on(n,function(i){this.trigger(n,i)},e)}),hM(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&My(this.getDom(),$h,"");var n=this,i=n._api,a=n._model;M(n._componentsViews,function(o){o.dispose(a,i)}),M(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 Sa[n.id]},t.prototype.resize=function(e){if(!this[Ft]){if(this._disposed){this.id;return}this._zr.resize(e);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=e&&e.silent;this[Jt]&&(a==null&&(a=this[Jt].silent),i=!0,this[Jt]=null),this[Ft]=!0;try{i&&Vn(this),xr.update.call(this,{type:"resize",animation:B({duration:0},e&&e.animation)})}catch(o){throw this[Ft]=!1,o}this[Ft]=!1,$i.call(this,a),qi.call(this,a)}}},t.prototype.showLoading=function(e,n){if(this._disposed){this.id;return}if(Y(e)&&(n=e,e=""),e=e||"default",this.hideLoading(),!!Pf[e]){var i=Pf[e](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var n=B({},e);return n.type=_a[e.type],n},t.prototype.dispatchAction=function(e,n){if(this._disposed){this.id;return}if(Y(n)||(n={silent:!!n}),!!Ss[e.type]&&this._model){if(this[Ft]){this._pendingActions.push(e);return}var i=n.silent;gl.call(this,e,i);var a=n.flush;a?this._zr.flush():a!==!1&&Q.browser.weChat&&this._throttledZrFlush(),$i.call(this,i),qi.call(this,i)}},t.prototype.updateLabelLayout=function(){Te.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var n=e.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){Vn=function(h){var c=h._scheduler;c.restorePipelines(h._model),c.prepareStageTasks(),cl(h,!0),cl(h,!1),c.plan()},cl=function(h,c){for(var v=h._model,d=h._scheduler,p=c?h._componentsViews:h._chartsViews,g=c?h._componentsMap:h._chartsMap,y=h._zr,m=h._api,_=0;_<p.length;_++)p[_].__alive=!1;c?v.eachComponent(function(x,b){x!=="series"&&S(b)}):v.eachSeries(S);function S(x){var b=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,C=!b&&g[T];if(!C){var A=Ge(x.type),D=c?qt.getClass(A.main,A.sub):oe.getClass(A.sub);C=new D,C.init(v,m),g[T]=C,p.push(C),y.add(C.group)}x.__viewId=C.__id=T,C.__alive=!0,C.__model=x,C.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!c&&d.prepareView(C,x,v,m)}for(var _=0;_<p.length;){var w=p[_];w.__alive?_++:(!c&&w.renderTask.dispose(),y.remove(w.group),w.dispose(v,m),p.splice(_,1),g[w.__id]===w&&delete g[w.__id],w.__id=w.group.__ecComponentInfo=null)}},To=function(h,c,v,d,p){var g=h._model;if(g.setUpdatePayload(v),!d){M([].concat(h._componentsViews).concat(h._chartsViews),w);return}var y={};y[d+"Id"]=v[d+"Id"],y[d+"Index"]=v[d+"Index"],y[d+"Name"]=v[d+"Name"];var m={mainType:d,query:y};p&&(m.subType=p);var _=v.excludeSeriesId,S;_!=null&&(S=Z(),M(Mt(_),function(x){var b=He(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(uc(v))if(x instanceof ye)v.type===gn&&!v.notBlur&&!x.get(["emphasis","disabled"])&&dw(x,v,h._api);else{var T=yh(x.mainType,x.componentIndex,v.name,h._api),C=T.focusSelf,A=T.dispatchers;v.type===gn&&C&&!v.notBlur&&jl(x.mainType,x.componentIndex,h._api),A&&M(A,function(D){v.type===gn?hi(D):vi(D)})}else rf(v)&&x instanceof ye&&(yw(x,v,h._api),oc(x),se(h))},h),g&&g.eachComponent(m,function(x){var b=S&&S.get(x.id)!=null;b||w(h[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},h);function w(x){x&&x.__alive&&x[c]&&x[c](x.__model,g,h._api,v)}},xr={prepareAndUpdate:function(h){Vn(this),xr.update.call(this,h,{optionChanged:h.newOption!=null})},update:function(h,c){var v=this._model,d=this._api,p=this._zr,g=this._coordSysMgr,y=this._scheduler;if(v){v.setUpdatePayload(h),y.restoreData(v,h),y.performSeriesTasks(v),g.create(v,d),y.performDataProcessorTasks(v,h),pl(this,v),g.update(v,d),e(v),y.performVisualTasks(v,h),yl(this,v,d,h,c);var m=v.get("backgroundColor")||"transparent",_=v.get("darkMode");p.setBackgroundColor(m),_!=null&&_!=="auto"&&p.setDarkMode(_),Te.trigger("afterupdate",v,d)}},updateTransform:function(h){var c=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(h);var p=[];v.eachComponent(function(y,m){if(y!=="series"){var _=c.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,h);S&&S.update&&p.push(_)}else p.push(_)}});var g=Z();v.eachSeries(function(y){var m=c._chartsMap[y.__viewId];if(m.updateTransform){var _=m.updateTransform(y,v,d,h);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),e(v),this._scheduler.performVisualTasks(v,h,{setDirty:!0,dirtyMap:g}),Co(this,v,d,h,{},g),Te.trigger("afterupdate",v,d)}},updateView:function(h){var c=this._model;c&&(c.setUpdatePayload(h),oe.markUpdateMethod(h,"updateView"),e(c),this._scheduler.performVisualTasks(c,h,{setDirty:!0}),yl(this,c,this._api,h,{}),Te.trigger("afterupdate",c,this._api))},updateVisual:function(h){var c=this,v=this._model;v&&(v.setUpdatePayload(h),v.eachSeries(function(d){d.getData().clearAllVisual()}),oe.markUpdateMethod(h,"updateVisual"),e(v),this._scheduler.performVisualTasks(v,h,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var g=c.getViewOfComponentModel(p);g&&g.__alive&&g.updateVisual(p,v,c._api,h)}}),v.eachSeries(function(d){var p=c._chartsMap[d.__viewId];p.updateVisual(d,v,c._api,h)}),Te.trigger("afterupdate",v,this._api))},updateLayout:function(h){xr.update.call(this,h)}},dl=function(h,c,v,d){if(h._disposed){h.id;return}for(var p=h._model,g=h._coordSysMgr.getCoordinateSystems(),y,m=ca(p,v),_=0;_<g.length;_++){var S=g[_];if(S[c]&&(y=S[c](p,m,d))!=null)return y}},pl=function(h,c){var v=h._chartsMap,d=h._scheduler;c.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},gl=function(h,c){var v=this,d=this.getModel(),p=h.type,g=h.escapeConnect,y=Ss[p],m=y.actionInfo,_=(m.update||"update").split(":"),S=_.pop(),w=_[0]!=null&&Ge(_[0]);this[Ft]=!0;var x=[h],b=!1;h.batch&&(b=!0,x=G(h.batch,function(P){return P=K(B({},P),h),P.batch=null,P}));var T=[],C,A=rf(h),D=uc(h);if(D&&Ny(this._api),M(x,function(P){if(C=y.action(P,v._model,v._api),C=C||B({},P),C.type=m.event||C.type,T.push(C),D){var R=ch(h),E=R.queryOptionMap,F=R.mainTypeSpecified,k=F?E.keys()[0]:"series";To(v,S,P,k),se(v)}else A?(To(v,S,P,"series"),se(v)):w&&To(v,S,P,w.main,w.sub)}),S!=="none"&&!D&&!A&&!w)try{this[Jt]?(Vn(this),xr.update.call(this,h),this[Jt]=null):xr[S].call(this,h)}catch(P){throw this[Ft]=!1,P}if(b?C={type:m.event||p,escapeConnect:g,batch:T}:C=T[0],this[Ft]=!1,!c){var I=this._messageCenter;if(I.trigger(C.type,C),A){var L={type:"selectchanged",escapeConnect:g,selected:mw(d),isFromClick:h.isFromClick||!1,fromAction:h.type,fromActionPayload:h};I.trigger(L.type,L)}}},$i=function(h){for(var c=this._pendingActions;c.length;){var v=c.shift();gl.call(this,v,h)}},qi=function(h){!h&&this.trigger("updated")},op=function(h,c){h.on("rendered",function(v){c.trigger("rendered",v),h.animation.isFinished()&&!c[Jt]&&!c._scheduler.unfinished&&!c._pendingActions.length&&c.trigger("finished")})},sp=function(h,c){h.on("mouseover",function(v){var d=v.target,p=sa(d,ef);p&&(pw(p,v,c._api),se(c))}).on("mouseout",function(v){var d=v.target,p=sa(d,ef);p&&(gw(p,v,c._api),se(c))}).on("click",function(v){var d=v.target,p=sa(d,function(m){return at(m).dataIndex!=null},!0);if(p){var g=p.selected?"unselect":"select",y=at(p);c._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function e(h){h.clearColorPalette(),h.eachSeries(function(c){c.clearColorPalette()})}function n(h){var c=[],v=[],d=!1;if(h.eachComponent(function(m,_){var S=_.get("zlevel")||0,w=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?v:c).push({zlevel:S,z:w,idx:_.componentIndex,type:m,key:x})}),d){var p=c.concat(v),g,y;Xo(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),M(p,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)})}}yl=function(h,c,v,d,p){n(c),up(h,c,v,d,p),M(h._chartsViews,function(g){g.__alive=!1}),Co(h,c,v,d,p),M(h._chartsViews,function(g){g.__alive||g.remove(c,v)})},up=function(h,c,v,d,p,g){M(g||h._componentsViews,function(y){var m=y.__model;l(m,y),y.render(m,c,v,d),s(m,y),f(m,y)})},Co=function(h,c,v,d,p,g){var y=h._scheduler;p=B(p||{},{updatedSeries:c.getSeries()}),Te.trigger("series:beforeupdate",c,v,p);var m=!1;c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];S.__alive=!0;var w=S.renderTask;y.updatePayload(w,d),l(_,S),g&&g.get(_.uid)&&w.dirty(),w.perform(y.getPerformArgs(w))&&(m=!0),S.group.silent=!!_.get("silent"),o(_,S),oc(_)}),y.unfinished=m||y.unfinished,Te.trigger("series:layoutlabels",c,v,p),Te.trigger("series:transition",c,v,p),c.eachSeries(function(_){var S=h._chartsMap[_.__viewId];s(_,S),f(_,S)}),a(h,c),Te.trigger("series:afterupdate",c,v,p)},se=function(h){h[hl]=!0,h.getZr().wakeUp()},fp=function(h){h[hl]&&(h.getZr().storage.traverse(function(c){ai(c)||i(c)}),h[hl]=!1)};function i(h){for(var c=[],v=h.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||c.push(p)}h.selected&&h.states.select&&c.push("select"),h.hoverState===Fs&&h.states.emphasis?c.push("emphasis"):h.hoverState===Bs&&h.states.blur&&c.push("blur"),h.useStates(c)}function a(h,c){var v=h._zr,d=v.storage,p=0;d.traverse(function(g){g.isGroup||p++}),p>c.get("hoverLayerThreshold")&&!Q.node&&!Q.worker&&c.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=h._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function o(h,c){var v=h.get("blendMode")||null;c.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function s(h,c){if(!h.preventAutoZ){var v=h.get("z")||0,d=h.get("zlevel")||0;c.eachRendered(function(p){return u(p,v,d,-1/0),!0})}}function u(h,c,v,d){var p=h.getTextContent(),g=h.getTextGuideLine(),y=h.isGroup;if(y)for(var m=h.childrenRef(),_=0;_<m.length;_++)d=Math.max(u(m[_],c,v,d),d);else h.z=c,h.zlevel=v,d=Math.max(h.z2,d);if(p&&(p.z=c,p.zlevel=v,isFinite(d)&&(p.z2=d+2)),g){var S=h.textGuideLineConfig;g.z=c,g.zlevel=v,isFinite(d)&&(g.z2=d+(S&&S.showAbove?1:-1))}return d}function l(h,c){c.eachRendered(function(v){if(!ai(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(h,c){var v=h.getModel("stateAnimation"),d=h.isAnimationEnabled(),p=v.get("duration"),g=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;c.eachRendered(function(y){if(y.states&&y.states.emphasis){if(ai(y))return;if(y instanceof it&&bw(y),y.__dirty){var m=y.prevStates;m&&y.useStates(m)}if(d){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&i(y)}})}lp=function(h){return new((function(c){N(v,c);function v(){return c!==null&&c.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return h._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return h._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){hi(d,p),se(h)},v.prototype.leaveEmphasis=function(d,p){vi(d,p),se(h)},v.prototype.enterBlur=function(d){cw(d),se(h)},v.prototype.leaveBlur=function(d){Ry(d),se(h)},v.prototype.enterSelect=function(d){Ey(d),se(h)},v.prototype.leaveSelect=function(d){ky(d),se(h)},v.prototype.getModel=function(){return h.getModel()},v.prototype.getViewOfComponentModel=function(d){return h.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return h.getViewOfSeriesModel(d)},v})(H0))(h)},d_=function(h){function c(v,d){for(var p=0;p<v.length;p++){var g=v[p];g[vl]=d}}M(_a,function(v,d){h._messageCenter.on(d,function(p){if(hp[h.group]&&h[vl]!==ap){if(p&&p.escapeConnect)return;var g=h.makeActionFromEvent(p),y=[];M(Sa,function(m){m!==h&&m.group===h.group&&y.push(m)}),c(y,ap),M(y,function(m){m[vl]!==CD&&m.dispatchAction(g)}),c(y,MD)}})})}})(),t})(Ie),Zh=p_.prototype;Zh.on=l_("on");Zh.off=l_("off");Zh.one=function(r,t,e){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(r,i)}this.on.call(this,r,i,e)};var AD=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Ss={},_a={},If=[],Lf=[],xs=[],g_={},Pf={},Sa={},hp={},DD=+new Date-0,$h="_echarts_instance_";function ID(r,t,e){{var n=LD(r);if(n)return n}var i=new p_(r,t,e);return i.id="ec_"+DD++,Sa[i.id]=i,My(r,$h,i.id),d_(i),Te.trigger("afterinit",i),i}function LD(r){return Sa[ew(r,$h)]}function y_(r,t){g_[r]=t}function m_(r){nt(Lf,r)<0&&Lf.push(r)}function __(r,t){Kh(If,r,t,yD)}function PD(r){qh("afterinit",r)}function RD(r){qh("afterupdate",r)}function qh(r,t){Te.on(r,t)}function qe(r,t,e){q(t)&&(e=t,t="");var n=Y(r)?r.type:[r,r={event:t}][0];r.event=(r.event||n).toLowerCase(),t=r.event,!_a[t]&&(Ue(ip.test(n)&&ip.test(t)),Ss[n]||(Ss[n]={action:e,actionInfo:r}),_a[t]=n)}function ED(r,t){Dh.register(r,t)}function kD(r,t){Kh(xs,r,t,o_,"layout")}function Mn(r,t){Kh(xs,r,t,s_,"visual")}var vp=[];function Kh(r,t,e,n,i){if((q(t)||Y(t))&&(e=t,t=n),!(nt(vp,e)>=0)){vp.push(e);var a=Z0.wrapStageHandler(e,i);a.__prio=t,a.__raw=e,r.push(a)}}function S_(r,t){Pf[r]=t}function OD(r,t,e){var n=vD("registerMap");n&&n(r,t,e)}var ND=GT;Mn(Xh,AA);Mn(eu,DA);Mn(eu,IA);Mn(Xh,HA);Mn(eu,WA);Mn(u_,fD);m_(U0);__(pD,TA);S_("default",LA);qe({type:gn,event:gn,update:gn},Xt);qe({type:zo,event:zo,update:zo},Xt);qe({type:da,event:da,update:da},Xt);qe({type:Go,event:Go,update:Go},Xt);qe({type:pa,event:pa,update:pa},Xt);y_("light",GA);y_("dark",Q0);var cp=[],BD={registerPreprocessor:m_,registerProcessor:__,registerPostInit:PD,registerPostUpdate:RD,registerUpdateLifecycle:qh,registerAction:qe,registerCoordinateSystem:ED,registerLayout:kD,registerVisual:Mn,registerTransform:ND,registerLoading:S_,registerMap:OD,registerImpl:hD,PRIORITY:TD,ComponentModel:lt,ComponentView:qt,SeriesModel:ye,ChartView:oe,registerComponentModel:function(r){lt.registerClass(r)},registerComponentView:function(r){qt.registerClass(r)},registerSeriesModel:function(r){ye.registerClass(r)},registerChartView:function(r){oe.registerClass(r)},registerSubTypeDefaulter:function(r,t){lt.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){nA(r,t)}};function Ze(r){if(z(r)){M(r,function(t){Ze(t)});return}nt(cp,r)>=0||(cp.push(r),q(r)&&(r={install:r}),r.install(BD))}var FD=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t})(lt),x_=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r})(),Rf=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Yt).models[0]},t.type="cartesian2dAxis",t})(lt);De(Rf,x_);var w_={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)"]}}},zD=tt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},w_),Qh=tt({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}}},w_),GD=tt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Qh),VD=K({logBase:10},Qh);const b_={category:zD,value:Qh,time:GD,log:VD};var HD=0,Ef=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++HD}return r.createByAxisModel=function(t){var e=t.option,n=e.data,i=n&&G(n,WD);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!W(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=Z(this.categories))},r})();function WD(r){return Y(r)&&r.value!=null?r.value:r+""}var UD={value:1,category:1,time:1,log:1};function dp(r,t,e,n){M(UD,function(i,a){var o=tt(tt({},b_[a],!0),n,!0),s=(function(u){N(l,u);function l(){var f=u!==null&&u.apply(this,arguments)||this;return f.type=t+"Axis."+a,f}return l.prototype.mergeDefaultAndTheme=function(f,h){var c=Pa(this),v=c?tu(f):{},d=h.getTheme();tt(f,d.get(a+"Axis")),tt(f,this.getDefaultOption()),f.type=pp(f),c&&yi(f,v,c)},l.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Ef.createByAxisModel(this))},l.prototype.getCategories=function(f){var h=this.option;if(h.type==="category")return f?h.data:this.__ordinalMeta.categories},l.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},l.type=t+"Axis."+a,l.defaultOption=o,l})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",pp)}function pp(r){return r.type||(r.data?"category":"value")}var Ke=(function(){function r(t){this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},r.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();Ls(Ke);function kf(r){return r.type==="interval"||r.type==="log"}function YD(r,t,e,n){var i={},a=r[1]-r[0],o=i.interval=Sy(a/t);e!=null&&o<e&&(o=i.interval=e),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=T_(o),u=i.niceTickExtent=[Dt(Math.ceil(r[0]/o)*o,s),Dt(Math.floor(r[1]/o)*o,s)];return XD(u,r),i}function ml(r){var t=Math.pow(10,hh(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Dt(e*t)}function T_(r){return nr(r)+2}function gp(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function XD(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),gp(r,0,t),gp(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function ru(r,t){return r>=t[0]&&r<=t[1]}function nu(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function iu(r,t){return r*(t[1]-t[0])+t[0]}var Jh=(function(r){N(t,r);function t(e){var n=r.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Ef({})),z(i)&&(i=new Ef({categories:G(i,function(a){return Y(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(e){return e==null?NaN:W(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),ru(e,this._extent)&&this._ordinalMeta.categories[e]!=null},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),nu(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(iu(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],n=this._extent,i=n[0];i<=n[1];)e.push({value:i}),i++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,u=Math.min(s,n.length);o<u;++o){var l=n[o];i[o]=l,a[l]=o}for(var f=0;o<s;++o){for(;a[f]!=null;)f++;i.push(f),a[f]=o}},t.prototype._getTickNumber=function(e){var n=this._ticksByOrdinalNumber;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getRawOrdinalNumber=function(e){var n=this._ordinalNumbersByTick;return n&&e>=0&&e<n.length?n[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var n=this.getRawOrdinalNumber(e.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(Ke);Ke.registerClass(Jh);var un=Dt,Fr=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return ru(e,this._extent)},t.prototype.normalize=function(e){return nu(e,this._extent)},t.prototype.scale=function(e){return iu(e,this._extent)},t.prototype.setExtent=function(e,n){var i=this._extent;isNaN(e)||(i[0]=parseFloat(e)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=T_(e)},t.prototype.getTicks=function(e){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var u=1e4;i[0]<a[0]&&(e?s.push({value:un(a[0]-n,o)}):s.push({value:i[0]}));for(var l=a[0];l<=a[1]&&(s.push({value:l}),l=un(l+n,o),l!==s[s.length-1].value);)if(s.length>u)return[];var f=s.length?s[s.length-1].value:a[1];return i[1]>f&&(e?s.push({value:un(f+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(e){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],u=n[o-1],l=0,f=[],h=s.value-u.value,c=h/e;l<e-1;){var v=un(u.value+(l+1)*c);v>a[0]&&v<a[1]&&f.push(v),l++}i.push(f)}return i},t.prototype.getLabel=function(e,n){if(e==null)return"";var i=n&&n.precision;i==null?i=nr(e.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=un(e.value,i,!0);return Vm(a)},t.prototype.calcNiceTicks=function(e,n,i){e=e||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=YD(a,e,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);e.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(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval;e.fixMin||(n[0]=un(Math.floor(n[0]/o)*o)),e.fixMax||(n[1]=un(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(e,n){this._niceExtent=[e,n]},t.type="interval",t})(Ke);Ke.registerClass(Fr);var ZD=function(r,t,e,n){for(;e<n;){var i=e+n>>>1;r[i][1]<t?e=i+1:n=i}return e},C_=(function(r){N(t,r);function t(e){var n=r.call(this,e)||this;return n.type="time",n}return t.prototype.getLabel=function(e){var n=this.getSetting("useUTC");return $s(e.value,Bc[_T(si(this._minLevelUnit))]||Bc.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return ST(e,n,i,o,a)},t.prototype.getTicks=function(){var e=this._interval,n=this._extent,i=[];if(!e)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=tI(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(e){var n=this._extent;if(n[0]===n[1]&&(n[0]-=de,n[1]+=de),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]-de}this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,n,i){e=e||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/e,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Mo.length,u=Math.min(ZD(Mo,this._approxInterval,0,s),s-1);this._interval=Mo[u][1],this._minLevelUnit=Mo[Math.max(u-1,0)][0]},t.prototype.parse=function(e){return vt(e)?e:+lr(e)},t.prototype.contain=function(e){return ru(this.parse(e),this._extent)},t.prototype.normalize=function(e){return nu(this.parse(e),this._extent)},t.prototype.scale=function(e){return iu(e,this._extent)},t.type="time",t})(Fr),Mo=[["second",Rh],["minute",Eh],["hour",ya],["quarter-day",ya*6],["half-day",ya*12],["day",de*1.2],["half-week",de*3.5],["week",de*7],["month",de*31],["quarter",de*95],["half-year",Nc/2],["year",Nc]];function $D(r,t,e,n){var i=lr(t),a=lr(e),o=function(d){return Fc(i,d,n)===Fc(a,d,n)},s=function(){return o("year")},u=function(){return s()&&o("month")},l=function(){return u()&&o("day")},f=function(){return l()&&o("hour")},h=function(){return f()&&o("minute")},c=function(){return h()&&o("second")},v=function(){return c()&&o("millisecond")};switch(r){case"year":return s();case"month":return u();case"day":return l();case"hour":return f();case"minute":return h();case"second":return c();case"millisecond":return v()}}function qD(r,t){return r/=de,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function KD(r){var t=30*de;return r/=t,r>6?6:r>3?3:r>2?2:1}function QD(r){return r/=ya,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function yp(r,t){return r/=t?Eh:Rh,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function JD(r){return Sy(r)}function jD(r,t,e){var n=new Date(r);switch(si(t)){case"year":case"month":n[Om(e)](0);case"day":n[Nm(e)](1);case"hour":n[Bm(e)](0);case"minute":n[Fm(e)](0);case"second":n[zm(e)](0),n[Gm(e)](0)}return n.getTime()}function tI(r,t,e,n){var i=1e4,a=Em,o=0;function s(A,D,I,L,P,R,E){for(var F=new Date(D),k=D,O=F[L]();k<I&&k<=n[1];)E.push({value:k}),O+=A,F[P](O),k=F.getTime();E.push({value:k,notAdd:!0})}function u(A,D,I){var L=[],P=!D.length;if(!$D(si(A),n[0],n[1],e)){P&&(D=[{value:jD(new Date(n[0]),A,e)},{value:n[1]}]);for(var R=0;R<D.length-1;R++){var E=D[R].value,F=D[R+1].value;if(E!==F){var k=void 0,O=void 0,V=void 0,H=!1;switch(A){case"year":k=Math.max(1,Math.round(t/de/365)),O=kh(e),V=xT(e);break;case"half-year":case"quarter":case"month":k=KD(t),O=ui(e),V=Om(e);break;case"week":case"half-week":case"day":k=qD(t),O=qs(e),V=Nm(e),H=!0;break;case"half-day":case"quarter-day":case"hour":k=QD(t),O=La(e),V=Bm(e);break;case"minute":k=yp(t,!0),O=Ks(e),V=Fm(e);break;case"second":k=yp(t,!1),O=Qs(e),V=zm(e);break;case"millisecond":k=JD(t),O=Js(e),V=Gm(e);break}s(k,E,F,O,V,H,L),A==="year"&&I.length>1&&R===0&&I.unshift({value:I[0].value-k})}}for(var R=0;R<L.length;R++)I.push(L[R]);return L}}for(var l=[],f=[],h=0,c=0,v=0;v<a.length&&o++<i;++v){var d=si(a[v]);if(mT(a[v])){u(a[v],l[l.length-1]||[],f);var p=a[v+1]?si(a[v+1]):null;if(d!==p){if(f.length){c=h,f.sort(function(A,D){return A.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])/t;if(h>_*1.5&&c>_/1.5||(l.push(g),h>_||r===a[v]))break}f=[]}}}for(var S=xt(G(l,function(A){return xt(A,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(A){return A.length>0}),w=[],x=S.length-1,v=0;v<S.length;++v)for(var b=S[v],T=0;T<b.length;++T)w.push({value:b[T].value,level:x-v});w.sort(function(A,D){return A.value-D.value});for(var C=[],v=0;v<w.length;++v)(v===0||w[v].value!==w[v-1].value)&&C.push(w[v]);return C}Ke.registerClass(C_);var mp=Ke.prototype,xa=Fr.prototype,eI=Dt,rI=Math.floor,nI=Math.ceil,Ao=Math.pow,xe=Math.log,jh=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Fr,e._interval=0,e}return t.prototype.getTicks=function(e){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=xa.getTicks.call(this,e);return G(o,function(s){var u=s.value,l=Dt(Ao(this.base,u));return l=u===i[0]&&this._fixMin?Do(l,a[0]):l,l=u===i[1]&&this._fixMax?Do(l,a[1]):l,{value:l}},this)},t.prototype.setExtent=function(e,n){var i=xe(this.base);e=xe(Math.max(0,e))/i,n=xe(Math.max(0,n))/i,xa.setExtent.call(this,e,n)},t.prototype.getExtent=function(){var e=this.base,n=mp.getExtent.call(this);n[0]=Ao(e,n[0]),n[1]=Ao(e,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=Do(n[0],a[0])),this._fixMax&&(n[1]=Do(n[1],a[1])),n},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var n=this.base;e[0]=xe(e[0])/xe(n),e[1]=xe(e[1])/xe(n),mp.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(e){e=e||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var a=Gx(i),o=e/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Dt(nI(n[0]/a)*a),Dt(rI(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){xa.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=xe(e)/xe(this.base),ru(e,this._extent)},t.prototype.normalize=function(e){return e=xe(e)/xe(this.base),nu(e,this._extent)},t.prototype.scale=function(e){return e=iu(e,this._extent),Ao(this.base,e)},t.type="log",t})(Ke),M_=jh.prototype;M_.getMinorTicks=xa.getMinorTicks;M_.getLabel=xa.getLabel;function Do(r,t){return eI(r,nr(t))}Ke.registerClass(jh);var iI=(function(){function r(t,e,n){this._prepareParams(t,e,n)}return r.prototype._prepareParams=function(t,e,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var a=e.get("min",!0);a==null&&(a=e.get("startValue",!0));var o=this._modelMinRaw=a;q(o)?this._modelMinNum=Io(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=Io(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(q(s)?this._modelMaxNum=Io(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Io(t,s)),i)this._axisDataLen=e.getCategories().length;else{var u=e.get("boundaryGap"),l=z(u)?u:[u||0,u||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Rr(l[0],1),Rr(l[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,l=s!=null,f=u!=null;s==null&&(s=t?i?0:NaN:e-a[0]*o),u==null&&(u=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(u==null||!isFinite(u))&&(u=NaN);var h=Ko(s)||Ko(u)||t&&!i;this._needCrossZero&&(s>0&&u>0&&!l&&(s=0),s<0&&u<0&&!f&&(u=0));var c=this._determinedMin,v=this._determinedMax;return c!=null&&(s=c,l=!0),v!=null&&(u=v,f=!0),{min:s,max:u,minFixed:l,maxFixed:f,isBlank:h}},r.prototype.modifyDataMinMax=function(t,e){this[oI[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var n=aI[t];this[n]=e},r.prototype.freeze=function(){this.frozen=!0},r})(),aI={min:"_determinedMin",max:"_determinedMax"},oI={min:"_dataMin",max:"_dataMax"};function A_(r,t,e){var n=r.rawExtentInfo;return n||(n=new iI(r,t,e),r.rawExtentInfo=n,n)}function Io(r,t){return t==null?null:Ko(t)?NaN:r.parse(t)}function D_(r,t){var e=r.type,n=A_(r,t,r.getExtent()).calculate();r.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&e==="time"){var s=v0("bar",o),u=!1;if(M(s,function(h){u=u||h.getBaseAxis()===t.axis}),u){var l=c0(s),f=sI(i,a,t,l);i=f.min,a=f.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function sI(r,t,e,n){var i=e.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=YC(n,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;M(o,function(v){s=Math.min(v.offset,s)});var u=-1/0;M(o,function(v){u=Math.max(v.offset+v.width,u)}),s=Math.abs(s),u=Math.abs(u);var l=s+u,f=t-r,h=1-(s+u)/a,c=f/h-f;return t+=c*(u/l),r-=c*(s/l),{min:r,max:t}}function _p(r,t){var e=t,n=D_(r,e),i=n.extent,a=e.get("splitNumber");r instanceof jh&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),u=o==="interval"||o==="time";r.setExtent(i[0],i[1]),r.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:u?e.get("minInterval"):null,maxInterval:u?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function uI(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new Jh({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new C_({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(Ke.getClass(t)||Fr)}}function lI(r){var t=r.scale.getExtent(),e=t[0],n=t[1];return!(e>0&&n>0||e<0&&n<0)}function Di(r){var t=r.getLabelModel().get("formatter"),e=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)}})(t):W(t)?(function(n){return function(i){var a=r.scale.getLabel(i),o=n.replace("{value}",a??"");return o}})(t):q(t)?(function(n){return function(i,a){return e!=null&&(a=i.value-e),n(tv(r,i),a,i.level!=null?{level:i.level}:null)}})(t):function(n){return r.scale.getLabel(n)}}function tv(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function fI(r){var t=r.model,e=r.scale;if(!(!t.get(["axisLabel","show"])||e.isBlank())){var n,i,a=e.getExtent();e instanceof Jh?i=e.count():(n=e.getTicks(),i=n.length);var o=r.getLabelModel(),s=Di(r),u,l=1;i>40&&(l=Math.ceil(i/40));for(var f=0;f<i;f+=l){var h=n?n[f]:{value:a[0]+f},c=s(h,f),v=o.getTextRect(c),d=hI(v,o.get("rotate")||0);u?u.union(d):u=d}return u}}function hI(r,t){var e=t*Math.PI/180,n=r.width,i=r.height,a=n*Math.abs(Math.cos(e))+Math.abs(i*Math.sin(e)),o=n*Math.abs(Math.sin(e))+Math.abs(i*Math.cos(e)),s=new st(r.x,r.y,a,o);return s}function ev(r){var t=r.get("interval");return t??"auto"}function I_(r){return r.type==="category"&&ev(r.getLabelModel())===0}function L_(r,t){var e={};return M(r.mapDimensionsAll(t),function(n){e[jb(r,n)]=!0}),yt(e)}function vI(r,t,e){t&&M(L_(t,e),function(n){var i=t.getApproximateExtent(n);i[0]<r[0]&&(r[0]=i[0]),i[1]>r[1]&&(r[1]=i[1])})}var cI=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return G(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),xt(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),Of=["x","y"];function Sp(r){return r.type==="interval"||r.type==="time"}var dI=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Of,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!Sp(e)||!Sp(n))){var i=e.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),u=i[1]-i[0],l=a[1]-a[0];if(!(!u||!l)){var f=(s[0]-o[0])/u,h=(s[1]-o[1])/l,c=o[0]-i[0]*f,v=o[1]-a[0]*h,d=this._transform=[f,0,0,h,c,v];this._invTransform=Rs([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,n){var i=this.dataToPoint(e),a=this.dataToPoint(n),o=this.getArea(),s=new st(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,n,i){i=i||[];var a=e[0],o=e[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return pe(i,e,this._transform);var s=this.getAxis("x"),u=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=u.toGlobalCoord(u.dataToCoord(o,n)),i},t.prototype.clampData=function(e,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),u=i.parse(e[0]),l=a.parse(e[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),u),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),l),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(e,n){var i=[];if(this._invTransform)return pe(i,e,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(e[0]),n),i[1]=o.coordToData(o.toLocalCoord(e[1]),n),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-e,o=Math.min(i[0],i[1])-e,s=Math.max(n[0],n[1])-a+e,u=Math.max(i[0],i[1])-o+e;return new st(a,o,s,u)},t})(cI),Oa=mt();function P_(r,t){var e=G(t,function(n){return r.scale.parse(n)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function pI(r){var t=r.getLabelModel().get("customValues");if(t){var e=Di(r),n=r.scale.getExtent(),i=P_(r,t),a=xt(i,function(o){return o>=n[0]&&o<=n[1]});return{labels:G(a,function(o){var s={value:o};return{formattedLabel:e(s),rawLabel:r.scale.getLabel(s),tickValue:o}})}}return r.type==="category"?yI(r):_I(r)}function gI(r,t){var e=r.getTickModel().get("customValues");if(e){var n=r.scale.getExtent(),i=P_(r,e);return{ticks:xt(i,function(a){return a>=n[0]&&a<=n[1]})}}return r.type==="category"?mI(r,t):{ticks:G(r.scale.getTicks(),function(a){return a.value})}}function yI(r){var t=r.getLabelModel(),e=R_(r,t);return!t.get("show")||r.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}function R_(r,t){var e=E_(r,"labels"),n=ev(t),i=k_(e,n);if(i)return i;var a,o;return q(n)?a=B_(r,n):(o=n==="auto"?SI(r):n,a=N_(r,o)),O_(e,n,{labels:a,labelCategoryInterval:o})}function mI(r,t){var e=E_(r,"ticks"),n=ev(t),i=k_(e,n);if(i)return i;var a,o;if((!t.get("show")||r.scale.isBlank())&&(a=[]),q(n))a=B_(r,n,!0);else if(n==="auto"){var s=R_(r,r.getLabelModel());o=s.labelCategoryInterval,a=G(s.labels,function(u){return u.tickValue})}else o=n,a=N_(r,o,!0);return O_(e,n,{ticks:a,tickCategoryInterval:o})}function _I(r){var t=r.scale.getTicks(),e=Di(r);return{labels:G(t,function(n,i){return{level:n.level,formattedLabel:e(n,i),rawLabel:r.scale.getLabel(n),tickValue:n.value}})}}function E_(r,t){return Oa(r)[t]||(Oa(r)[t]=[])}function k_(r,t){for(var e=0;e<r.length;e++)if(r[e].key===t)return r[e].value}function O_(r,t,e){return r.push({key:t,value:e}),e}function SI(r){var t=Oa(r).autoInterval;return t??(Oa(r).autoInterval=r.calculateCategoryInterval())}function xI(r){var t=wI(r),e=Di(r),n=(t.axisRotate-t.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 u=a[0],l=r.dataToCoord(u+1)-r.dataToCoord(u),f=Math.abs(l*Math.cos(n)),h=Math.abs(l*Math.sin(n)),c=0,v=0;u<=a[1];u+=s){var d=0,p=0,g=Es(e({value:u}),t.font,"center","top");d=g.width*1.3,p=g.height*1.3,c=Math.max(c,d,7),v=Math.max(v,p,7)}var y=c/f,m=v/h;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var _=Math.max(0,Math.floor(Math.min(y,m))),S=Oa(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 wI(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function N_(r,t,e){var n=Di(r),i=r.scale,a=i.getExtent(),o=r.getLabelModel(),s=[],u=Math.max((t||0)+1,1),l=a[0],f=i.count();l!==0&&u>1&&f/u>2&&(l=Math.round(Math.ceil(l/u)*u));var h=I_(r),c=o.get("showMinLabel")||h,v=o.get("showMaxLabel")||h;c&&l!==a[0]&&p(a[0]);for(var d=l;d<=a[1];d+=u)p(d);v&&d-u!==a[1]&&p(a[1]);function p(g){var y={value:g};s.push(e?g:{formattedLabel:n(y),rawLabel:i.getLabel(y),tickValue:g})}return s}function B_(r,t,e){var n=r.scale,i=Di(r),a=[];return M(n.getTicks(),function(o){var s=n.getLabel(o),u=o.value;t(o.value,s)&&a.push(e?u:{formattedLabel:i(o),rawLabel:s,tickValue:u})}),a}var xp=[0,1],F_=(function(){function r(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return r.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},r.prototype.containData=function(t){return this.scale.contain(t)},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return my(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},r.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),wp(n,i.count())),Cr(t,xp,n,e)},r.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),wp(n,i.count()));var a=Cr(t,n,xp,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),n=gI(this,e),i=n.ticks,a=G(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return bI(this,a,o,t.clamp),a},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var n=this.scale.getMinorTicks(e),i=G(n,function(a){return G(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(){return pI(this).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},r.prototype.calculateCategoryInterval=function(){return xI(this)},r})();function wp(r,t){var e=r[1]-r[0],n=t,i=e/n/2;r[0]+=i,r[1]-=i}function bI(r,t,e,n){var i=t.length;if(!r.onBand||e||!i)return;var a=r.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var u=t[i-1].tickValue-t[0].tickValue,l=(t[i-1].coord-t[0].coord)/u;M(t,function(v){v.coord-=l/2});var f=r.scale.getExtent();s=1+f[1]-t[i-1].tickValue,o={coord:t[i-1].coord+l*s,tickValue:f[1]+1},t.push(o)}var h=a[0]>a[1];c(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&c(a[0],t[0].coord)&&t.unshift({coord:a[0]}),c(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&c(o.coord,a[1])&&t.push({coord:a[1]});function c(v,d){return v=Dt(v),d=Dt(d),h?v>d:v<d}}var TI=(function(r){N(t,r);function t(e,n,i,a,o){var s=r.call(this,e,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),e&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(e,n){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(F_);function Nf(r,t,e){e=e||{};var n=r.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,u=o?"onZero":s,l=i.dim,f=n.getRect(),h=[f.x,f.x+f.width,f.y,f.y+f.height],c={left:0,right:1,top:0,bottom:1,onZero:2},v=t.get("offset")||0,d=l==="x"?[h[2]-v,h[3]+v]:[h[0]-v,h[1]+v];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));d[c.onZero]=Math.max(Math.min(p,d[1]),d[0])}a.position=[l==="y"?d[c[u]]:h[0],l==="x"?d[c[u]]:h[3]],a.rotation=Math.PI/2*(l==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=g[s],a.labelOffset=o?d[c[s]]-d[c.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),ba(e.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=t.get(["axisLabel","rotate"]);return a.labelRotate=u==="top"?-y:y,a.z2=1,a}function bp(r){return r.get("coordinateSystem")==="cartesian2d"}function Tp(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,n){var i=n.replace(/Model$/,""),a=r.getReferringComponents(i,Yt).models[0];t[n]=a}),t}var _l=Math.log;function z_(r,t,e){var n=Fr.prototype,i=n.getTicks.call(e),a=n.getTicks.call(e,!0),o=i.length-1,s=n.getInterval.call(e),u=D_(r,t),l=u.extent,f=u.fixMin,h=u.fixMax;if(r.type==="log"){var c=_l(r.base);l=[_l(l[0])/c,_l(l[1])/c]}r.setExtent(l[0],l[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:h});var v=n.getExtent.call(r);f&&(l[0]=v[0]),h&&(l[1]=v[1]);var d=n.getInterval.call(r),p=l[0],g=l[1];if(f&&h)d=(g-p)/o;else if(f)for(g=l[0]+d*o;g<l[1]&&isFinite(g)&&isFinite(l[1]);)d=ml(d),g=l[0]+d*o;else if(h)for(p=l[1]-d*o;p>l[0]&&isFinite(p)&&isFinite(l[0]);)d=ml(d),p=l[1]-d*o;else{var y=r.getTicks().length-1;y>o&&(d=ml(d));var m=d*o;g=Math.ceil(l[1]/d)*d,p=Dt(g-m),p<0&&l[0]>=0?(p=0,g=Dt(m)):g>0&&l[1]<=0&&(g=0,p=-Dt(m))}var _=(i[0].value-a[0].value)/s,S=(i[o].value-a[o].value)/s;n.setExtent.call(r,p+d*_,g+d*S),n.setInterval.call(r,d),(_||S)&&n.setNiceExtent.call(r,p+d,g-d)}var CI=(function(){function r(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Of,this._initCartesian(t,e,n),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,u=yt(o),l=u.length;if(l){for(var f=[],h=l-1;h>=0;h--){var c=+u[h],v=o[c],d=v.model,p=v.scale;kf(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(_p(p,d),kf(p)&&(s=v))}f.length&&(s||(s=f.pop(),_p(s.scale,s.model)),M(f,function(g){z_(g.scale,g.model,s.scale)}))}}i(n.x),i(n.y);var a={};M(n.x,function(o){Cp(n,"y",o,a)}),M(n.y,function(o){Cp(n,"x",o,a)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Br(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var s=this._axesList;u(),a&&(M(s,function(l){if(!l.model.get(["axisLabel","inside"])){var f=fI(l);if(f){var h=l.isHorizontal()?"height":"width",c=l.model.get(["axisLabel","margin"]);o[h]-=f[h]+c,l.position==="top"?o.y+=f.height+c:l.position==="left"&&(o.x+=f.width+c)}}}),u()),M(this._coordsList,function(l){l.calcAffineTransform()});function u(){M(s,function(l){var f=l.isHorizontal(),h=f?[0,o.width]:[0,o.height],c=l.inverse?1:0;l.setExtent(h[c],h[1-c]),MI(l,f?o.x:o.y)})}},r.prototype.getAxis=function(t,e){var n=this._axesMap[t];if(n!=null)return n[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var n="x"+t+"y"+e;return this._coordsMap[n]}Y(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===e)return a[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},r.prototype.convertFromPixel=function(t,e,n){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,n=t.xAxisModel||e&&e.getReferringComponents("xAxis",Yt).models[0],i=t.yAxisModel||e&&e.getReferringComponents("yAxis",Yt).models[0],a=t.gridModel,o=this._coordsList,s,u;if(e)s=e.coordinateSystem,nt(o,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)u=this.getAxis("x",n.componentIndex);else if(i)u=this.getAxis("y",i.componentIndex);else if(a){var l=a.coordinateSystem;l===this&&(s=this._coordsList[0])}return{cartesian:s,axis:u}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,n){var i=this,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},u={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,M(s.x,function(f,h){M(s.y,function(c,v){var d="x"+h+"y"+v,p=new dI(d);p.master=i,p.model=t,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(f),p.addAxis(c)})});function l(f){return function(h,c){if(Sl(h,t)){var v=h.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new TI(f,uI(h),[0,0],h.get("type"),v),p=d.type==="category";d.onBand=p&&h.get("boundaryGap"),d.inverse=h.get("inverse"),h.axis=d,d.model=h,d.grid=a,d.index=c,a._axesList.push(d),s[f][c]=d,u[f]++}}}},r.prototype._updateScale=function(t,e){M(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)}}),t.eachSeries(function(i){if(bp(i)){var a=Tp(i),o=a.xAxisModel,s=a.yAxisModel;if(!Sl(o,e)||!Sl(s,e))return;var u=this.getCartesian(o.componentIndex,s.componentIndex),l=i.getData(),f=u.getAxis("x"),h=u.getAxis("y");n(l,f),n(l,h)}},this);function n(i,a){M(L_(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],n=[];return M(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);nt(e,a)<0&&e.push(a),nt(n,o)<0&&n.push(o)}),{baseAxes:e,otherAxes:n}},r.create=function(t,e){var n=[];return t.eachComponent("grid",function(i,a){var o=new r(i,t,e);o.name="grid_"+a,o.resize(i,e,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(bp(i)){var a=Tp(i),o=a.xAxisModel,s=a.yAxisModel,u=o.getCoordSysModel(),l=u.coordinateSystem;i.coordinateSystem=l.getCartesian(o.componentIndex,s.componentIndex)}}),n},r.dimensions=Of,r})();function Sl(r,t){return r.getCoordSysModel()===t}function Cp(r,t,e,n){e.getAxesOnZeroOf=function(){return a?[a]:[]};var i=r[t],a,o=e.model,s=o.get(["axisLine","onZero"]),u=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(u!=null)Mp(i[u])&&(a=i[u]);else for(var l in i)if(i.hasOwnProperty(l)&&Mp(i[l])&&!n[f(i[l])]){a=i[l];break}a&&(n[f(a)]=!0);function f(h){return h.dim+"_"+h.index}}function Mp(r){return r&&r.type!=="category"&&r.type!=="time"&&lI(r)}function MI(r,t){var e=r.getExtent(),n=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+t}:function(i){return n-i+t},r.toLocalCoord=r.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}var Ar=Math.PI,sr=(function(){function r(t,e){this.group=new Tt,this.opt=e,this.axisModel=t,K(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Tt({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return r.prototype.hasBuilder=function(t){return!!Ap[t]},r.prototype.add=function(t){Ap[t](this.opt,this.axisModel,this.group,this._transformGroup)},r.prototype.getGroup=function(){return this.group},r.innerTextLayout=function(t,e,n){var i=_y(e-t),a,o;return as(i)?(o=n>0?"top":"bottom",a="center"):as(i-Ar)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Ar?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),Ap={axisLine:function(r,t,e,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&r.handleAutoShown&&(i=r.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],u=[a[1],0],l=s[0]>u[0];o&&(pe(s,s,o),pe(u,u,o));var f=B({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new Or({shape:{x1:s[0],y1:s[1],x2:u[0],y2:u[1]},style:f,strokeContainThreshold:r.strokeContainThreshold||5,silent:!0,z2:1});Da(h.shape,h.style.lineWidth),h.anid="line",e.add(h);var c=t.get(["axisLine","symbol"]);if(c!=null){var v=t.get(["axisLine","symbolSize"]);W(c)&&(c=[c,c]),(W(v)||vt(v))&&(v=[v,v]);var d=t0(t.get(["axisLine","symbolOffset"])||0,v),p=v[0],g=v[1];M([{rotate:r.rotation+Math.PI/2,offset:d[0],r:0},{rotate:r.rotation-Math.PI/2,offset:d[1],r:Math.sqrt((s[0]-u[0])*(s[0]-u[0])+(s[1]-u[1])*(s[1]-u[1]))}],function(y,m){if(c[m]!=="none"&&c[m]!=null){var _=wn(c[m],-p/2,-g/2,p,g,f.stroke,!0),S=y.r+y.offset,w=l?u: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}),e.add(_)}})}}},axisTickLabel:function(r,t,e,n){var i=II(e,n,t,r),a=PI(e,n,t,r);if(DI(t,a,i),LI(e,n,t,r.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=A0(G(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));L0(o)}},axisName:function(r,t,e,n){var i=ba(r.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=r.nameDirection,s=t.getModel("nameTextStyle"),u=t.get("nameGap")||0,l=t.axis.getExtent(),f=l[0]>l[1]?-1:1,h=[a==="start"?l[0]-f*u:a==="end"?l[1]+f*u:(l[0]+l[1])/2,Ip(a)?r.labelOffset+o*u:0],c,v=t.get("nameRotate");v!=null&&(v=v*Ar/180);var d;Ip(a)?c=sr.innerTextLayout(r.rotation,v??r.rotation,o):(c=AI(r.rotation,a,v||0,l),d=r.axisNameAvailableWidth,d!=null&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var p=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,m=ba(r.nameTruncateMaxWidth,g.maxWidth,d),_=new Pt({x:h[0],y:h[1],rotation:c.rotation,silent:sr.isLabelSilent(t),style:Nr(s,{text:i,font:p,overflow:"truncate",width:m,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||c.textAlign,verticalAlign:s.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(Wa({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var S=sr.makeAxisEventDataBase(t);S.targetType="axisName",S.name=i,at(_).eventData=S}n.add(_),_.updateTransform(),e.add(_),_.decomposeTransform()}}};function AI(r,t,e,n){var i=_y(e-r),a,o,s=n[0]>n[1],u=t==="start"&&!s||t!=="start"&&s;return as(i-Ar/2)?(o=u?"bottom":"top",a="center"):as(i-Ar*1.5)?(o=u?"top":"bottom",a="center"):(o="middle",i<Ar*1.5&&i>Ar/2?a=u?"left":"right":a=u?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function DI(r,t,e){if(!I_(r.axis)){var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]);t=t||[],e=e||[];var a=t[0],o=t[1],s=t[t.length-1],u=t[t.length-2],l=e[0],f=e[1],h=e[e.length-1],c=e[e.length-2];n===!1?(ue(a),ue(l)):Dp(a,o)&&(n?(ue(o),ue(f)):(ue(a),ue(l))),i===!1?(ue(s),ue(h)):Dp(u,s)&&(i?(ue(u),ue(c)):(ue(s),ue(h)))}}function ue(r){r&&(r.ignore=!0)}function Dp(r,t){var e=r&&r.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!e||!n)){var i=sh([]);return uh(i,i,-r.rotation),e.applyTransform(ri([],i,r.getLocalTransform())),n.applyTransform(ri([],i,t.getLocalTransform())),e.intersect(n)}}function Ip(r){return r==="middle"||r==="center"}function G_(r,t,e,n,i){for(var a=[],o=[],s=[],u=0;u<r.length;u++){var l=r[u].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=e,t&&(pe(o,o,t),pe(s,s,t));var f=new Or({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Da(f.shape,f.style.lineWidth),f.anid=i+"_"+r[u].tickValue,a.push(f)}return a}function II(r,t,e,n){var i=e.axis,a=e.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"),u=n.tickDirection*a.get("length"),l=i.getTicksCoords(),f=G_(l,t.transform,u,K(s.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;h<f.length;h++)r.add(f[h]);return f}}function LI(r,t,e,n){var i=e.axis,a=e.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),u=n*a.get("length"),l=K(s.getLineStyle(),K(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<o.length;f++)for(var h=G_(o[f],t.transform,u,l,"minorticks_"+f),c=0;c<h.length;c++)r.add(h[c])}}function PI(r,t,e,n){var i=e.axis,a=ba(n.axisLabelShow,e.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=e.getModel("axisLabel"),s=o.get("margin"),u=i.getViewLabels(),l=(ba(n.labelRotate,o.get("rotate"))||0)*Ar/180,f=sr.innerTextLayout(n.rotation,l,n.labelDirection),h=e.getCategories&&e.getCategories(!0),c=[],v=sr.isLabelSilent(e),d=e.get("triggerEvent");return M(u,function(p,g){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(p.tickValue):p.tickValue,m=p.formattedLabel,_=p.rawLabel,S=o;if(h&&h[y]){var w=h[y];Y(w)&&w.textStyle&&(S=new St(w.textStyle,o,e.ecModel))}var x=S.getTextColor()||e.get(["axisLine","lineStyle","color"]),b=i.dataToCoord(y),T=S.getShallow("align",!0)||f.textAlign,C=j(S.getShallow("alignMinLabel",!0),T),A=j(S.getShallow("alignMaxLabel",!0),T),D=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||f.textVerticalAlign,I=j(S.getShallow("verticalAlignMinLabel",!0),D),L=j(S.getShallow("verticalAlignMaxLabel",!0),D),P=new Pt({x:b,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:v,z2:10+(p.level||0),style:Nr(S,{text:m,align:g===0?C:g===u.length-1?A:T,verticalAlign:g===0?I:g===u.length-1?L:D,fill:q(x)?x(i.type==="category"?_:i.type==="value"?y+"":y,g):x})});if(P.anid="label_"+y,Wa({el:P,componentModel:e,itemName:m,formatterParamsExtra:{isTruncated:function(){return P.isTruncated},value:_,tickIndex:g}}),d){var R=sr.makeAxisEventDataBase(e);R.targetType="axisLabel",R.value=_,R.tickIndex=g,i.type==="category"&&(R.dataIndex=y),at(P).eventData=R}t.add(P),P.updateTransform(),c.push(P),r.add(P),P.decomposeTransform()}),c}}function RI(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return EI(e,r,t),e.seriesInvolved&&OI(e,r),e}function EI(r,t,e){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];M(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var u=Na(s.model),l=r.coordSysAxesInfo[u]={};r.coordSysMap[u]=s;var f=s.model,h=f.getModel("tooltip",n);if(M(s.getAxes(),ft(p,!1,null)),s.getTooltipAxes&&n&&h.get("show")){var c=h.get("trigger")==="axis",v=h.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(h.get(["axisPointer","axis"]));(c||v)&&M(d.baseAxes,ft(p,v?"cross":!0,c)),v&&M(d.otherAxes,ft(p,"cross",!1))}function p(g,y,m){var _=m.model.getModel("axisPointer",i),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Bf(_))){y==null&&(y=_.get("triggerTooltip")),_=g?kI(m,h,i,t,g,y):_;var w=_.get("snap"),x=_.get("triggerEmphasis"),b=Na(m.model),T=y||w||m.type==="category",C=r.axesInfo[b]={key:b,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:T,snap:w,useHandle:Bf(_),seriesModels:[],linkGroup:null};l[b]=C,r.seriesInvolved=r.seriesInvolved||T;var A=NI(a,m);if(A!=null){var D=o[A]||(o[A]={axesInfo:{}});D.axesInfo[b]=C,D.mapper=a[A].mapper,C.linkGroup=D}}}})}function kI(r,t,e,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};M(s,function(c){u[c]=J(o.get(c))}),u.snap=r.type!=="category"&&!!a,o.get("type")==="cross"&&(u.type="line");var l=u.label||(u.label={});if(l.show==null&&(l.show=!1),i==="cross"){var f=o.get(["label","show"]);if(l.show=f??!0,!a){var h=u.lineStyle=o.get("crossStyle");h&&K(l,h.textStyle)}}return r.model.getModel("axisPointer",new St(u,e,n))}function OI(r,t){t.eachSeries(function(e){var n=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),a=e.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||e.get(["axisPointer","show"],!0)===!1||M(r.coordSysAxesInfo[Na(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function NI(r,t){for(var e=t.model,n=t.dim,i=0;i<r.length;i++){var a=r[i]||{};if(xl(a[n+"AxisId"],e.id)||xl(a[n+"AxisIndex"],e.componentIndex)||xl(a[n+"AxisName"],e.name))return i}}function xl(r,t){return r==="all"||z(r)&&nt(r,t)>=0||r===t}function BI(r){var t=rv(r);if(t){var e=t.axisPointerModel,n=t.axis.scale,i=e.option,a=e.get("status"),o=e.get("value");o!=null&&(o=n.parse(o));var s=Bf(e);a==null&&(i.status=s?"show":"hide");var u=n.getExtent().slice();u[0]>u[1]&&u.reverse(),(o==null||o>u[1])&&(o=u[1]),o<u[0]&&(o=u[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function rv(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Na(r)]}function FI(r){var t=rv(r);return t&&t.axisPointerModel}function Bf(r){return!!r.get(["handle","show"])}function Na(r){return r.type+"||"+r.id}var Lp={},V_=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this.axisPointerClass&&BI(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},t.prototype.updateAxisPointer=function(e,n,i,a){this._doUpdateAxisPointerClass(e,i,!1)},t.prototype.remove=function(e,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(e,n){this._disposeAxisPointer(n),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,i){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=FI(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,n){Lp[e]=n},t.getAxisPointerClass=function(e){return e&&Lp[e]},t.type="axis",t})(qt),Ff=mt();function zI(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),u=n.coordinateSystem.getRect(),l=i.getTicksCoords({tickModel:a,clamp:!0});if(l.length){var f=s.length,h=Ff(r).splitAreaColors,c=Z(),v=0;if(h)for(var d=0;d<l.length;d++){var p=h.get(l[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var g=i.toGlobalCoord(l[0].coord),y=o.getAreaStyle();s=z(s)?s:[s];for(var d=1;d<l.length;d++){var m=i.toGlobalCoord(l[d].coord),_=void 0,S=void 0,w=void 0,x=void 0;i.isHorizontal()?(_=g,S=u.y,w=m-_,x=u.height,g=_+w):(_=u.x,S=g,w=u.width,x=m-S,g=S+x);var b=l[d-1].tickValue;b!=null&&c.set(b,v),t.add(new wt({anid:b!=null?"area_"+b:null,shape:{x:_,y:S,width:w,height:x},style:K({fill:s[v]},y),autoBatch:!0,silent:!0})),v=(v+1)%f}Ff(r).splitAreaColors=c}}}function GI(r){Ff(r).splitAreaColors=null}var VI=["axisLine","axisTickLabel","axisName"],HI=["splitArea","splitLine","minorSplitLine"],H_=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,n,i,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Tt,this.group.add(this._axisGroup),!!e.get("show")){var s=e.getCoordSysModel(),u=Nf(s,e),l=new sr(e,B({handleAutoShown:function(h){for(var c=s.coordinateSystem.getCartesians(),v=0;v<c.length;v++)if(kf(c[v].getOtherAxis(e.axis).scale))return!0;return!1}},u));M(VI,l.add,l),this._axisGroup.add(l.getGroup()),M(HI,function(h){e.get([h,"show"])&&WI[h](this,this._axisGroup,e,s)},this);var f=a&&a.type==="changeAxisOrder"&&a.isInitSort;f||Qy(o,this._axisGroup,e),r.prototype.render.call(this,e,n,i,a)}},t.prototype.remove=function(){GI(this)},t.type="cartesianAxis",t})(V_),WI={splitLine:function(r,t,e,n){var i=e.axis;if(!i.scale.isBlank()){var a=e.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color"),u=a.get("showMinLine")!==!1,l=a.get("showMaxLine")!==!1;s=z(s)?s:[s];for(var f=n.coordinateSystem.getRect(),h=i.isHorizontal(),c=0,v=i.getTicksCoords({tickModel:a}),d=[],p=[],g=o.getLineStyle(),y=0;y<v.length;y++){var m=i.toGlobalCoord(v[y].coord);if(!(y===0&&!u||y===v.length-1&&!l)){var _=v[y].tickValue;h?(d[0]=m,d[1]=f.y,p[0]=m,p[1]=f.y+f.height):(d[0]=f.x,d[1]=m,p[0]=f.x+f.width,p[1]=m);var S=c++%s.length,w=new Or({anid:_!=null?"line_"+_:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:K({stroke:s[S]},g),silent:!0});Da(w.shape,g.lineWidth),t.add(w)}}}},minorSplitLine:function(r,t,e,n){var i=e.axis,a=e.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),u=i.isHorizontal(),l=i.getMinorTicksCoords();if(l.length)for(var f=[],h=[],c=o.getLineStyle(),v=0;v<l.length;v++)for(var d=0;d<l[v].length;d++){var p=i.toGlobalCoord(l[v][d].coord);u?(f[0]=p,f[1]=s.y,h[0]=p,h[1]=s.y+s.height):(f[0]=s.x,f[1]=p,h[0]=s.x+s.width,h[1]=p);var g=new Or({anid:"minor_line_"+l[v][d].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:h[0],y2:h[1]},style:c,silent:!0});Da(g.shape,c.lineWidth),t.add(g)}},splitArea:function(r,t,e,n){zI(r,t,e,n)}},W_=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(H_),UI=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=W_.type,e}return t.type="yAxis",t})(H_),YI=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,n){this.group.removeAll(),e.get("show")&&this.group.add(new wt({shape:e.coordinateSystem.getRect(),style:K({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(qt),Pp={offset:0};function XI(r){r.registerComponentView(YI),r.registerComponentModel(FD),r.registerCoordinateSystem("cartesian2d",CI),dp(r,"x",Rf,Pp),dp(r,"y",Rf,Pp),r.registerComponentView(W_),r.registerComponentView(UI),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function ZI(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),n=[],i=t.coordinateSystem;if(i){var a=i.getIndicatorAxes();M(a,function(o,s){e.each(e.mapDimension(a[s].dim),function(u,l){n[l]=n[l]||[];var f=i.dataToPoint(u,s);n[l][s]=Rp(f)?f:Ep(i)})}),e.each(function(o){var s=$1(n[o],function(u){return Rp(u)})||Ep(i);n[o].push(s.slice()),e.setItemLayout(o,n[o])})}})}function Rp(r){return!isNaN(r[0])&&!isNaN(r[1])}function Ep(r){return[r.cx,r.cy]}function $I(r){var t=r.polar;if(t){z(t)||(t=[t]);var e=[];M(t,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)):e.push(n)}),r.polar=e}M(r.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var qI=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=e.coordinateSystem,o=this.group,s=e.getData(),u=this._data;function l(c,v){var d=c.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=jm(c.getItemVisual(v,"symbolSize")),g=wn(d,-1,-1,2,2),y=c.getItemVisual(v,"symbolRotate")||0;return g.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:y*Math.PI/180||0}),g}}function f(c,v,d,p,g,y){d.removeAll();for(var m=0;m<v.length-1;m++){var _=l(p,g);_&&(_.__dimIdx=m,c[m]?(_.setPosition(c[m]),tm[y?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},e,g)):_.setPosition(v[m]),d.add(_))}}function h(c){return G(c,function(v){return[a.cx,a.cy]})}s.diff(u).add(function(c){var v=s.getItemLayout(c);if(v){var d=new Cn,p=new zr,g={shape:{points:v}};d.shape.points=h(v),p.shape.points=h(v),Et(d,g,e,c),Et(p,g,e,c);var y=new Tt,m=new Tt;y.add(p),y.add(d),y.add(m),f(p.shape.points,v,m,s,c,!0),s.setItemGraphicEl(c,y)}}).update(function(c,v){var d=u.getItemGraphicEl(v),p=d.childAt(0),g=d.childAt(1),y=d.childAt(2),m={shape:{points:s.getItemLayout(c)}};m.shape.points&&(f(p.shape.points,m.shape.points,y,s,c,!1),Aa(g),Aa(p),It(p,m,e),It(g,m,e),s.setItemGraphicEl(c,d))}).remove(function(c){o.remove(u.getItemGraphicEl(c))}).execute(),s.eachItemGraphicEl(function(c,v){var d=s.getItemModel(v),p=c.childAt(0),g=c.childAt(1),y=c.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(c),p.useStyle(K(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),di(p,d,"lineStyle"),di(g,d,"areaStyle");var S=d.getModel("areaStyle"),w=S.isEmpty()&&S.parentModel.isEmpty();g.ignore=w,M(["emphasis","select","blur"],function(T){var C=d.getModel([T,"areaStyle"]),A=C.isEmpty()&&C.parentModel.isEmpty();g.ensureState(T).ignore=A&&w}),g.useStyle(K(S.getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=d.getModel("emphasis"),b=x.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof fr){var C=T.style;T.useStyle(B({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},m))}else T.useStyle(m),T.setColor(_),T.style.strokeNoScale=!0;var A=T.ensureState("emphasis");A.style=J(b);var D=s.getStore().get(s.getDimensionIndex(T.__dimIdx),v);(D==null||isNaN(D))&&(D=""),Ti(T,Ci(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:T.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:m.opacity})}),ci(c,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t})(oe),KI=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new E0(ht(this.getData,this),ht(this.getRawData,this))},t.prototype.getInitialData=function(e,n){return R0(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),u=this.getData().getName(e),l=u===""?this.name:u,f=Qm(this,e);return xn("section",{header:l,sortBlocks:!0,blocks:G(s,function(h){var c=a.get(a.mapDimension(h.dim),e);return xn("nameValue",{markerType:"subItem",markerColor:f,name:h.name,value:c,sortParam:c})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(G(i.dimensions,function(l){return n.mapDimension(l)}),e),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var u=i.getIndicatorAxes();return i.coordToPoint(u[o].dataToCoord(a[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t})(ye),Ki=b_.value;function Lo(r,t){return K({show:t},r)}var QI=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),u=this.get("axisName"),l=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),h=this.get("axisNameGap"),c=this.get("triggerEvent"),v=G(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=u;d.color!=null&&(p=K({color:d.color},u));var g=tt(J(d),{boundaryGap:e,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:d.text,showName:l,nameLocation:"end",nameGap:h,nameTextStyle:p,triggerEvent:c},!1);if(W(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else q(f)&&(g.name=f(g.name,g));var m=new St(g,null,this.ecModel);return De(m,x_.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:tt({lineStyle:{color:"#bbb"}},Ki.axisLine),axisLabel:Lo(Ki.axisLabel,!1),axisTick:Lo(Ki.axisTick,!1),splitLine:Lo(Ki.splitLine,!0),splitArea:Lo(Ki.splitArea,!0),indicator:[]},t})(lt),JI=["axisLine","axisTickLabel","axisName"],jI=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=this.group;a.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes(),a=G(i,function(o){var s=o.model.get("showName")?o.name:"",u=new sr(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});M(a,function(o){M(JI,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var n=e.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),u=o.getModel("lineStyle"),l=s.getModel("areaStyle"),f=o.get("show"),h=s.get("show"),c=u.get("color"),v=l.get("color"),d=z(c)?c:[c],p=z(v)?v:[v],g=[],y=[];function m(R,E,F){var k=F%E.length;return R[k]=R[k]||[],k}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,d,x);g[b].push(new Ha({shape:{cx:S,cy:w,r:_[x].coord}}))}if(h&&x<_.length-1){var b=m(y,p,x);y[b].push(new Gs({shape:{cx:S,cy:w,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,C=G(i,function(R,E){var F=R.getTicksCoords();return T=T==null?F.length-1:Math.min(F.length-1,T),G(F,function(k){return n.coordToPoint(k.coord,E)})}),A=[],x=0;x<=T;x++){for(var D=[],I=0;I<i.length;I++)D.push(C[I][x]);if(D[0]&&D.push(D[0].slice()),f){var b=m(g,d,x);g[b].push(new zr({shape:{points:D}}))}if(h&&A){var b=m(y,p,x-1);y[b].push(new Cn({shape:{points:D.concat(A)}}))}A=D.slice().reverse()}var L=u.getLineStyle(),P=l.getAreaStyle();M(y,function(R,E){this.group.add(of(R,{style:K({stroke:"none",fill:p[E%p.length]},P),silent:!0}))},this),M(g,function(R,E){this.group.add(of(R,{style:K({fill:"none",stroke:d[E%d.length]},L),silent:!0}))},this)},t.type="radar",t})(qt),tL=(function(r){N(t,r);function t(e,n,i){var a=r.call(this,e,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return t})(F_),eL=(function(){function r(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=G(t.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new tL(o,new Fr);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle,a=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[a,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var a=Math.atan2(-n,e),o=1/0,s,u=-1,l=0;l<this._indicatorAxes.length;l++){var f=this._indicatorAxes[l],h=Math.abs(a-f.angle);h<o&&(s=f,u=l,o=h)}return[u,+(s&&s.coordToData(i))]},r.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),a=e.getHeight(),o=Math.min(i,a)/2;this.cx=pt(n[0],i),this.cy=pt(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(W(s)||vt(s))&&(s=[0,s]),this.r0=pt(s[0],o),this.r=pt(s[1],o),M(this._indicatorAxes,function(u,l){u.setExtent(this.r0,this.r);var f=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),u.angle=f},this)},r.prototype.update=function(t,e){var n=this._indicatorAxes,i=this._model;M(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,u){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var l=s.getData();M(n,function(f){f.scale.unionExtentFromData(l,l.mapDimension(f.dim))})}},this);var a=i.get("splitNumber"),o=new Fr;o.setExtent(0,a),o.setInterval(1),M(n,function(s,u){z_(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var n=[];return t.eachComponent("radar",function(i){var a=new r(i,t,e);n.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},r.dimensions=[],r})();function rL(r){r.registerCoordinateSystem("radar",eL),r.registerComponentModel(QI),r.registerComponentView(jI),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(n){e.setItemVisual(n,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function nL(r){Ze(rL),r.registerChartView(qI),r.registerSeriesModel(KI),r.registerLayout(ZI),r.registerProcessor(w0("radar")),r.registerPreprocessor($I)}var kp="\0_ec_interaction_mutex";function iL(r,t,e){var n=U_(r);n[t]=e}function aL(r,t,e){var n=U_(r),i=n[t];i===e&&(n[t]=null)}function U_(r){return r[kp]||(r[kp]={})}qe({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Xt);var oL={axisPointer:1,tooltip:1,brush:1};function sL(r,t,e){var n=t.getComponentByElement(r.topTarget),i=n&&n.coordinateSystem;return n&&n!==e&&!oL.hasOwnProperty(n.mainType)&&i&&i.model!==e}function Y_(r,t,e,n,i,a){r=r||0;var o=e[1]-e[0];if(i!=null&&(i=Hn(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Hn(s,[0,o]),i=a=Hn(s,[i,a]),n=0}t[0]=Hn(t[0],e),t[1]=Hn(t[1],e);var u=wl(t,n);t[n]+=r;var l=i||0,f=e.slice();u.sign<0?f[0]+=l:f[1]-=l,t[n]=Hn(t[n],f);var h;return h=wl(t,n),i!=null&&(h.sign!==u.sign||h.span<i)&&(t[1-n]=t[n]+u.sign*i),h=wl(t,n),a!=null&&h.span>a&&(t[1-n]=t[n]+h.sign*a),t}function wl(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Hn(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var bn=!0,Ba=Math.min,mi=Math.max,uL=Math.pow,lL=1e4,fL=6,hL=6,Op="globalPan",vL={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},cL={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Np={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},dL=0,pL=(function(r){N(t,r);function t(e){var n=r.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new Tt,n._uid="brushController_"+dL++,M(wL,function(i,a){this._handlers[a]=ht(i,this)},n),n}return t.prototype.enableBrush=function(e){return this._brushType&&this._doDisableBrush(),e.brushType&&this._doEnableBrush(e),this},t.prototype._doEnableBrush=function(e){var n=this._zr;this._enableGlobalPan||iL(n,Op,this._uid),M(this._handlers,function(i,a){n.on(a,i)}),this._brushType=e.brushType,this._brushOption=tt(J(Np),e,!0)},t.prototype._doDisableBrush=function(){var e=this._zr;aL(e,Op,this._uid),M(this._handlers,function(n,i){e.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(e){if(e&&e.length){var n=this._panels={};M(e,function(i){n[i.panelId]=J(i)})}else this._panels=null;return this},t.prototype.mount=function(e){e=e||{},this._enableGlobalPan=e.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:e.x||0,y:e.y||0,rotation:e.rotation||0,scaleX:e.scaleX||1,scaleY:e.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(e){e=G(e,function(c){return tt(J(Np),c,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new Ia(i,e,l,u).add(f).update(f).remove(h).execute(),this;function u(c,v){return(c.id!=null?c.id:n+v)+"-"+c.brushType}function l(c,v){return u(c.__brushOption,v)}function f(c,v){var d=e[c];if(v!=null&&i[v]===s)a[c]=i[v];else{var p=a[c]=v!=null?(i[v].__brushOption=d,i[v]):Z_(o,X_(o,d));nv(o,p)}}function h(c){i[c]!==s&&o.group.remove(i[c])}},t.prototype.unmount=function(){return this.enableBrush(!1),zf(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t})(Ie);function X_(r,t){var e=au[t.brushType].createCover(r,t);return e.__brushOption=t,q_(e,t),r.group.add(e),e}function Z_(r,t){var e=iv(t);return e.endCreating&&(e.endCreating(r,t),q_(t,t.__brushOption)),t}function $_(r,t){var e=t.__brushOption;iv(t).updateCoverShape(r,t,e.range,e)}function q_(r,t){var e=t.z;e==null&&(e=lL),r.traverse(function(n){n.z=e,n.z2=e})}function nv(r,t){iv(t).updateCommon(r,t),$_(r,t)}function iv(r){return au[r.__brushOption.brushType]}function av(r,t,e){var n=r._panels;if(!n)return bn;var i,a=r._transform;return M(n,function(o){o.isTargetByCursor(t,e,a)&&(i=o)}),i}function K_(r,t){var e=r._panels;if(!e)return bn;var n=t.__brushOption.panelId;return n!=null?e[n]:bn}function zf(r){var t=r._covers,e=t.length;return M(t,function(n){r.group.remove(n)},r),t.length=0,!!e}function Tn(r,t){var e=G(r._covers,function(n){var i=n.__brushOption,a=J(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});r.trigger("brush",{areas:e,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function gL(r){var t=r._track;if(!t.length)return!1;var e=t[t.length-1],n=t[0],i=e[0]-n[0],a=e[1]-n[1],o=uL(i*i+a*a,.5);return o>fL}function Q_(r){var t=r.length-1;return t<0&&(t=0),[r[0],r[t]]}function J_(r,t,e,n){var i=new Tt;return i.add(new wt({name:"main",style:ov(e),silent:!0,draggable:!0,cursor:"move",drift:ft(Bp,r,t,i,["n","s","w","e"]),ondragend:ft(Tn,t,{isEnd:!0})})),M(n,function(a){i.add(new wt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ft(Bp,r,t,i,a),ondragend:ft(Tn,t,{isEnd:!0})}))}),i}function j_(r,t,e,n){var i=n.brushStyle.lineWidth||0,a=mi(i,hL),o=e[0][0],s=e[1][0],u=o-i/2,l=s-i/2,f=e[0][1],h=e[1][1],c=f-a+i/2,v=h-a+i/2,d=f-o,p=h-s,g=d+i,y=p+i;tr(r,t,"main",o,s,d,p),n.transformable&&(tr(r,t,"w",u,l,a,y),tr(r,t,"e",c,l,a,y),tr(r,t,"n",u,l,g,a),tr(r,t,"s",u,v,g,a),tr(r,t,"nw",u,l,a,a),tr(r,t,"ne",c,l,a,a),tr(r,t,"sw",u,v,a,a),tr(r,t,"se",c,v,a,a))}function Gf(r,t){var e=t.__brushOption,n=e.transformable,i=t.childAt(0);i.useStyle(ov(e)),i.attr({silent:!n,cursor:n?"move":"default"}),M([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?Vf(r,a[0]):mL(r,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?cL[s]+"-resize":null})})}function tr(r,t,e,n,i,a,o){var s=t.childOfName(e);s&&s.setShape(SL(sv(r,t,[[n,i],[n+a,i+o]])))}function ov(r){return K({strokeNoScale:!0},r.brushStyle)}function t1(r,t,e,n){var i=[Ba(r,e),Ba(t,n)],a=[mi(r,e),mi(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function yL(r){return bh(r.group)}function Vf(r,t){var e={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=Ky(e[t],yL(r));return n[i]}function mL(r,t){var e=[Vf(r,t[0]),Vf(r,t[1])];return(e[0]==="e"||e[0]==="w")&&e.reverse(),e.join("")}function Bp(r,t,e,n,i,a){var o=e.__brushOption,s=r.toRectRange(o.range),u=e1(t,i,a);M(n,function(l){var f=vL[l];s[f[0]][f[1]]+=u[f[0]]}),o.range=r.fromRectRange(t1(s[0][0],s[1][0],s[0][1],s[1][1])),nv(t,e),Tn(t,{isEnd:!1})}function _L(r,t,e,n){var i=t.__brushOption.range,a=e1(r,e,n);M(i,function(o){o[0]+=a[0],o[1]+=a[1]}),nv(r,t),Tn(r,{isEnd:!1})}function e1(r,t,e){var n=r.group,i=n.transformCoordToLocal(t,e),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function sv(r,t,e){var n=K_(r,t);return n&&n!==bn?n.clipPath(e,r._transform):J(e)}function SL(r){var t=Ba(r[0][0],r[1][0]),e=Ba(r[0][1],r[1][1]),n=mi(r[0][0],r[1][0]),i=mi(r[0][1],r[1][1]);return{x:t,y:e,width:n-t,height:i-e}}function xL(r,t,e){if(!(!r._brushType||bL(r,t.offsetX,t.offsetY))){var n=r._zr,i=r._covers,a=av(r,t,e);if(!r._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===bn||s.panelId===a.panelId)&&au[s.brushType].contain(i[o],e[0],e[1]))return}a&&n.setCursorStyle("crosshair")}}function Hf(r){var t=r.event;t.preventDefault&&t.preventDefault()}function Wf(r,t,e){return r.childOfName("main").contain(t,e)}function r1(r,t,e,n){var i=r._creatingCover,a=r._creatingPanel,o=r._brushOption,s;if(r._track.push(e.slice()),gL(r)||i){if(a&&!i){o.brushMode==="single"&&zf(r);var u=J(o);u.brushType=Fp(u.brushType,a),u.panelId=a===bn?null:a.panelId,i=r._creatingCover=X_(r,u),r._covers.push(i)}if(i){var l=au[Fp(r._brushType,a)],f=i.__brushOption;f.range=l.getCreatingRange(sv(r,i,r._track)),n&&(Z_(r,i),l.updateCommon(r,i)),$_(r,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&av(r,t,e)&&zf(r)&&(s={isEnd:n,removeOnClick:!0});return s}function Fp(r,t){return r==="auto"?t.defaultBrushType:r}var wL={mousedown:function(r){if(this._dragging)zp(this,r);else if(!r.target||!r.target.draggable){Hf(r);var t=this.group.transformCoordToLocal(r.offsetX,r.offsetY);this._creatingCover=null;var e=this._creatingPanel=av(this,r,t);e&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(r){var t=r.offsetX,e=r.offsetY,n=this.group.transformCoordToLocal(t,e);if(xL(this,r,n),this._dragging){Hf(r);var i=r1(this,r,n,!1);i&&Tn(this,i)}},mouseup:function(r){zp(this,r)}};function zp(r,t){if(r._dragging){Hf(t);var e=t.offsetX,n=t.offsetY,i=r.group.transformCoordToLocal(e,n),a=r1(r,t,i,!0);r._dragging=!1,r._track=[],r._creatingCover=null,a&&Tn(r,a)}}function bL(r,t,e){var n=r._zr;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}var au={lineX:Gp(0),lineY:Gp(1),rect:{createCover:function(r,t){function e(n){return n}return J_({toRectRange:e,fromRectRange:e},r,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(r){var t=Q_(r);return t1(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(r,t,e,n){j_(r,t,e,n)},updateCommon:Gf,contain:Wf},polygon:{createCover:function(r,t){var e=new Tt;return e.add(new zr({name:"main",style:ov(t),silent:!0})),e},getCreatingRange:function(r){return r},endCreating:function(r,t){t.remove(t.childAt(0)),t.add(new Cn({name:"main",draggable:!0,drift:ft(_L,r,t),ondragend:ft(Tn,r,{isEnd:!0})}))},updateCoverShape:function(r,t,e,n){t.childAt(0).setShape({points:sv(r,t,e)})},updateCommon:Gf,contain:Wf}};function Gp(r){return{createCover:function(t,e){return J_({toRectRange:function(n){var i=[n,[0,100]];return r&&i.reverse(),i},fromRectRange:function(n){return n[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){var e=Q_(t),n=Ba(e[0][r],e[1][r]),i=mi(e[0][r],e[1][r]);return[n,i]},updateCoverShape:function(t,e,n,i){var a,o=K_(t,e);if(o!==bn&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(r);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-r]]}var u=[n,a];r&&u.reverse(),j_(t,e,u,i)},updateCommon:Gf,contain:Wf}}function TL(r){return r=uv(r),function(t){return Jy(t,r)}}function CL(r,t){return r=uv(r),function(e){var n=t??e,i=n?r.width:r.height,a=n?r.x:r.y;return[a,a+(i||0)]}}function ML(r,t,e){var n=uv(r);return function(i,a){return n.contain(a[0],a[1])&&!sL(i,t,e)}}function uv(r){return st.create(r)}var hn=mt(),Vp=J,bl=ht,AL=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,n,i){var a=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,u=this._handle;if(!o||o==="hide"){s&&s.hide(),u&&u.hide();return}s&&s.show(),u&&u.show();var l={};this.makeElOption(l,a,t,e,n);var f=l.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var h=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new Tt,this.createPointerEl(s,l,t,e),this.createLabelEl(s,l,t,e),n.getZr().add(s);else{var c=ft(Hp,e,h);this.updatePointerEl(s,l,c),this.updateLabelEl(s,l,c,e)}Up(s,e,!0),this._renderHandle(a)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,a=i.type==="category",o=e.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 u=rv(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/u>s}return!1}return n===!0},r.prototype.makeElOption=function(t,e,n,i,a){},r.prototype.createPointerEl=function(t,e,n,i){var a=e.pointer;if(a){var o=hn(t).pointerEl=new tm[a.type](Vp(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,n,i){if(e.label){var a=hn(t).labelEl=new Pt(Vp(e.label));t.add(a),Wp(a,i)}},r.prototype.updatePointerEl=function(t,e,n){var i=hn(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,n,i){var a=hn(t).labelEl;a&&(a.setStyle(e.label.style),n(a,{x:e.label.x,y:e.label.y}),Wp(a,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=e.getModel("handle"),o=e.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=Ws(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(l){k0(l.event)},onmousedown:bl(this._onHandleDragMove,this,0,0),drift:bl(this._onHandleDragMove,this),ondragend:bl(this._onHandleDragEnd,this)}),n.add(i)),Up(i,e,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=a.get("size");z(u)||(u=[u,u]),i.scaleX=u[0]/2,i.scaleY=u[1]/2,g0(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){Hp(this._axisPointerModel,!e&&this._moveAnimation,this._handle,Tl(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Tl(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Tl(i)),hn(n).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),_f(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}},r})();function Hp(r,t,e,n){n1(hn(e).lastProp,n)||(hn(e).lastProp=n,t?It(e,n,r):(e.stopAnimation(),e.attr(n)))}function n1(r,t){if(Y(r)&&Y(t)){var e=!0;return M(t,function(n,i){e=e&&n1(r[i],n)}),!!e}else return r===t}function Wp(r,t){r[t.get(["label","show"])?"show":"hide"]()}function Tl(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function Up(r,t,e){var n=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=e)})}function DL(r){var t=r.get("type"),e=r.getModel(t+"Style"),n;return t==="line"?(n=e.getLineStyle(),n.fill=null):t==="shadow"&&(n=e.getAreaStyle(),n.stroke=null),n}function IL(r,t,e,n,i){var a=e.get("value"),o=i1(a,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),u=js(s.get("padding")||0),l=s.getFont(),f=Es(o,l),h=i.position,c=f.width+u[1]+u[3],v=f.height+u[0]+u[2],d=i.align;d==="right"&&(h[0]-=c),d==="center"&&(h[0]-=c/2);var p=i.verticalAlign;p==="bottom"&&(h[1]-=v),p==="middle"&&(h[1]-=v/2),LL(h,c,v,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),r.label={x:h[0],y:h[1],style:Nr(s,{text:o,font:l,fill:s.getTextColor(),padding:u,backgroundColor:g}),z2:10}}function LL(r,t,e,n){var i=n.getWidth(),a=n.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,a)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function i1(r,t,e,n,i){r=t.scale.parse(r);var a=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:tv(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(n,function(u){var l=e.getSeriesByIndex(u.seriesIndex),f=u.dataIndexInside,h=l&&l.getDataParams(f);h&&s.seriesData.push(h)}),W(o)?a=o.replace("{value}",a):q(o)&&(a=o(s))}return a}function a1(r,t,e){var n=ei();return uh(n,n,e.rotation),Fl(n,n,e.position),Th([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],n)}function PL(r,t,e,n,i,a){var o=sr.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),IL(t,n,i,a,{position:a1(n.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function RL(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function EL(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var kL=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,n,i,a,o){var s=i.axis,u=s.grid,l=a.get("type"),f=Yp(u,s).getOtherAxis(s).getGlobalExtent(),h=s.toGlobalCoord(s.dataToCoord(n,!0));if(l&&l!=="none"){var c=DL(a),v=OL[l](s,h,f);v.style=c,e.graphicKey=v.type,e.pointer=v}var d=Nf(u.model,i);PL(n,e,d,i,a,o)},t.prototype.getHandleTransform=function(e,n,i){var a=Nf(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=a1(n.axis,e,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,n,i,a){var o=i.axis,s=o.grid,u=o.getGlobalExtent(!0),l=Yp(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,h=[e.x,e.y];h[f]+=n[f],h[f]=Math.min(u[1],h[f]),h[f]=Math.max(u[0],h[f]);var c=(l[1]+l[0])/2,v=[c,c];v[f]=h[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:h[0],y:h[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t})(AL);function Yp(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var OL={line:function(r,t,e){var n=RL([t,e[0]],[t,e[1]],Xp(r));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(r,t,e){var n=Math.max(1,r.getBandWidth()),i=e[1]-e[0];return{type:"Rect",shape:EL([t-n/2,e[0]],[n,i],Xp(r))}}};function Xp(r){return r.dim==="x"?0:1}var NL=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t})(lt),ar=mt(),BL=M;function o1(r,t,e){if(!Q.node){var n=t.getZr();ar(n).records||(ar(n).records={}),FL(n,t);var i=ar(n).records[r]||(ar(n).records[r]={});i.handler=e}}function FL(r,t){if(ar(r).initialized)return;ar(r).initialized=!0,e("click",ft(Zp,"click")),e("mousemove",ft(Zp,"mousemove")),e("globalout",GL);function e(n,i){r.on(n,function(a){var o=VL(t);BL(ar(r).records,function(s){s&&i(s,a,o.dispatchAction)}),zL(o.pendings,t)})}}function zL(r,t){var e=r.showTip.length,n=r.hideTip.length,i;e?i=r.showTip[e-1]:n&&(i=r.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function GL(r,t,e){r.handler("leave",null,e)}function Zp(r,t,e,n){t.handler(r,e,n)}function VL(r){var t={showTip:[],hideTip:[]},e=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=e,r.dispatchAction(n))};return{dispatchAction:e,pendings:t}}function Uf(r,t){if(!Q.node){var e=t.getZr(),n=(ar(e).records||{})[r];n&&(ar(e).records[r]=null)}}var HL=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){var a=n.getComponent("tooltip"),o=e.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";o1("axisPointer",i,function(s,u,l){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&l({type:"updateAxisPointer",currTrigger:s,x:u&&u.offsetX,y:u&&u.offsetY})})},t.prototype.remove=function(e,n){Uf("axisPointer",n)},t.prototype.dispose=function(e,n){Uf("axisPointer",n)},t.type="axisPointer",t})(qt);function s1(r,t){var e=[],n=r.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=_n(a,r);if(o==null||o<0||z(o))return{point:[]};var s=a.getItemGraphicEl(o),u=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(u&&u.dataToPoint)if(r.isStacked){var l=u.getBaseAxis(),f=u.getOtherAxis(l),h=f.dim,c=l.dim,v=h==="x"||h==="radius"?1:0,d=a.mapDimension(c),p=[];p[v]=a.get(d,o),p[1-v]=a.get(a.getCalculationInfo("stackResultDimension"),o),e=u.dataToPoint(p)||[]}else e=u.dataToPoint(a.getValues(G(u.dimensions,function(y){return a.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),e=[g.x+g.width/2,g.y+g.height/2]}return{point:e,el:s}}var $p=mt();function WL(r,t,e){var n=r.currTrigger,i=[r.x,r.y],a=r,o=r.dispatchAction||ht(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){qo(i)&&(i=s1({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var u=qo(i),l=a.axesInfo,f=s.axesInfo,h=n==="leave"||qo(i),c={},v={},d={list:[],map:{}},p={showPointer:ft(YL,v),showTooltip:ft(XL,d)};M(s.coordSysMap,function(y,m){var _=u||y.containPoint(i);M(s.coordSysAxesInfo[m],function(S,w){var x=S.axis,b=KL(l,S);if(!h&&_&&(!l||b)){var T=b&&b.value;T==null&&!u&&(T=x.pointToData(i)),T!=null&&qp(S,T,p,!1,c)}})});var g={};return M(f,function(y,m){var _=y.linkGroup;_&&!v[m]&&M(_.axesInfo,function(S,w){var x=v[w];if(S!==y&&x){var b=x.value;_.mapper&&(b=y.axis.scale.parse(_.mapper(b,Kp(S),Kp(y)))),g[y.key]=b}})}),M(g,function(y,m){qp(f[m],y,p,!0,c)}),ZL(v,f,c),$L(d,i,r,o),qL(f,o,e),c}}function qp(r,t,e,n,i){var a=r.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=UL(t,r),s=o.payloadBatch,u=o.snapToValue;s[0]&&i.seriesIndex==null&&B(i,s[0]),!n&&r.snap&&a.containData(u)&&u!=null&&(t=u),e.showPointer(r,t,s),e.showTooltip(r,o,u)}}function UL(r,t){var e=t.axis,n=e.dim,i=r,a=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(u,l){var f=u.getData().mapDimensionsAll(n),h,c;if(u.getAxisTooltipData){var v=u.getAxisTooltipData(f,r,e);c=v.dataIndices,h=v.nestestValue}else{if(c=u.getData().indicesOfNearest(f[0],r,e.type==="category"?.5:null),!c.length)return;h=u.getData().get(f[0],c[0])}if(!(h==null||!isFinite(h))){var d=r-h,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=h,a.length=0),M(c,function(g){a.push({seriesIndex:u.seriesIndex,dataIndexInside:g,dataIndex:u.getData().getRawIndex(g)})}))}}),{payloadBatch:a,snapToValue:i}}function YL(r,t,e,n){r[t.key]={value:e,payloadBatch:n}}function XL(r,t,e,n){var i=e.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var u=t.coordSys.model,l=Na(u),f=r.map[l];f||(f=r.map[l]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.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 ZL(r,t,e){var n=e.axesInfo=[];M(t,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 $L(r,t,e,n){if(qo(t)||!r.list.length){n({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function qL(r,t,e){var n=e.getZr(),i="axisPointerLastHighlights",a=$p(n)[i]||{},o=$p(n)[i]={};M(r,function(l,f){var h=l.axisPointerModel.option;h.status==="show"&&l.triggerEmphasis&&M(h.seriesDataIndices,function(c){var v=c.seriesIndex+" | "+c.dataIndex;o[v]=c})});var s=[],u=[];M(a,function(l,f){!o[f]&&u.push(l)}),M(o,function(l,f){!a[f]&&s.push(l)}),u.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function KL(r,t){for(var e=0;e<(r||[]).length;e++){var n=r[e];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Kp(r){var t=r.axis.model,e={},n=e.axisDim=r.axis.dim;return e.axisIndex=e[n+"AxisIndex"]=t.componentIndex,e.axisName=e[n+"AxisName"]=t.name,e.axisId=e[n+"AxisId"]=t.id,e}function qo(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function u1(r){V_.registerAxisPointerClass("CartesianAxisPointer",kL),r.registerComponentModel(NL),r.registerComponentView(HL),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!z(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=RI(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},WL)}function QL(r){Ze(XI),Ze(u1)}var Qp=["x","y","radius","angle","single"],JL=["cartesian2d","polar","singleAxis"];function jL(r){var t=r.get("coordinateSystem");return nt(JL,t)>=0}function jn(r){return r+"Axis"}function t2(r,t){var e=Z(),n=[],i=Z();r.eachComponent({mainType:"dataZoom",query:t},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)&&u(f)&&(s(f),a=!0)}function s(f){i.set(f.uid,!0),n.push(f),l(f)}function u(f){var h=!1;return f.eachTargetAxis(function(c,v){var d=e.get(c);d&&d[v]&&(h=!0)}),h}function l(f){f.eachTargetAxis(function(h,c){(e.get(h)||e.set(h,[]))[c]=!0})}return n}var Cl=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r})(),e2=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,n,i){var a=Jp(e);this.settledOption=a,this.mergeDefaultAndTheme(e,i),this._doInit(a)},t.prototype.mergeOption=function(e){var n=Jp(e);tt(this.option,e,!0),tt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(e){var n=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),n=this._targetAxisInfoMap=Z(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var n=!1;return M(Qp,function(i){var a=this.getReferringComponents(jn(i),tw);if(a.specified){n=!0;var o=new Cl;M(a.models,function(s){o.add(s.componentIndex)}),e.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(e,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});u(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===n}});u(s,"single")}function u(l,f){var h=l[0];if(h){var c=new Cl;if(c.add(h.componentIndex),e.set(f,c),a=!1,f==="x"||f==="y"){var v=h.getReferringComponents("grid",Yt).models[0];v&&M(l,function(d){h.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Yt).models[0]&&c.add(d.componentIndex)})}}}a&&M(Qp,function(l){if(a){var f=i.findComponents({mainType:jn(l),filter:function(c){return c.get("type",!0)==="category"}});if(f[0]){var h=new Cl;h.add(f[0].componentIndex),e.set(l,h),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(n){!e&&(e=n)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var n=this._rangePropMode,i=this.get("rangeMode");M([["start","startValue"],["end","endValue"]],function(a,o){var s=e[a[0]]!=null,u=e[a[1]]!=null;s&&!u?n[o]="percent":!s&&u?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(n,i){e==null&&(e=this.ecModel.getComponent(jn(n),i))},this),e},t.prototype.eachTargetAxis=function(e,n){this._targetAxisInfoMap.each(function(i,a){M(i.indexList,function(o){e.call(n,a,o)})})},t.prototype.getAxisProxy=function(e,n){var i=this.getAxisModel(e,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(e,n){var i=this._targetAxisInfoMap.get(e);if(i&&i.indexMap[n])return this.ecModel.getComponent(jn(e),n)},t.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;M([["start","startValue"],["end","endValue"]],function(a){(e[a[0]]!=null||e[a[1]]!=null)&&(n[a[0]]=i[a[0]]=e[a[0]],n[a[1]]=i[a[1]]=e[a[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var n=this.option;M(["start","startValue","end","endValue"],function(i){n[i]=e[i]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,n){if(e==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(e,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),u=0;u<s.indexList.length;u++){var l=this.getAxisProxy(o,s.indexList[u]);if(l.hostedBy(this))return l;n||(n=l)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t})(lt);function Jp(r){var t={};return M(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var r2=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t})(e2),n2=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i,a){this.dataZoomModel=e,this.ecModel=n,this.api=i},t.type="dataZoom",t})(qt),i2=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.select",t})(n2),$n=M,jp=Ox,a2=(function(){function r(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(jL(e)){var n=jn(this._dimName),i=e.getReferringComponents(n,Yt).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return J(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],u=[],l;$n(["start","end"],function(c,v){var d=t[c],p=t[c+"Value"];a[v]==="percent"?(d==null&&(d=o[v]),p=i.parse(Cr(d,o,e))):(l=!0,p=p==null?e[v]:i.parse(p),d=Cr(p,e,o)),u[v]=p==null||isNaN(p)?e[v]:p,s[v]=d==null||isNaN(d)?o[v]:d}),jp(u),jp(s);var f=this._minMaxSpan;l?h(u,s,e,o,!1):h(s,u,o,e,!0);function h(c,v,d,p,g){var y=g?"Span":"ValueSpan";Y_(0,c,d,"all",f["min"+y],f["max"+y]);for(var m=0;m<2;m++)v[m]=Cr(c[m],d,p,!0),g&&(v[m]=i.parse(v[m]))}return{valueWindow:u,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=o2(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;$n(i,function(u){var l=u.getData(),f=l.mapDimensionsAll(n);if(f.length){if(a==="weakFilter"){var h=l.getStore(),c=G(f,function(v){return l.getDimensionIndex(v)},l);l.filterSelf(function(v){for(var d,p,g,y=0;y<f.length;y++){var m=h.get(c[y],v),_=!isNaN(m),S=m<o[0],w=m>o[1];if(_&&!S&&!w)return!0;_&&(g=!0),S&&(d=!0),w&&(p=!0)}return g&&d&&p})}else $n(f,function(v){if(a==="empty")u.setData(l=l.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,l.selectRange(d)}});$n(f,function(v){l.setApproximateExtent(o,v)})}});function s(u){return u>=o[0]&&u<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;$n(["min","max"],function(i){var a=e.get(i+"Span"),o=e.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Cr(n[0]+o,n,[0,100],!0):a!=null&&(o=Cr(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=my(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;e[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),e[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},r})();function o2(r,t,e){var n=[1/0,-1/0];$n(e,function(o){vI(n,o.getData(),t)});var i=r.getAxisModel(),a=A_(i.axis.scale,i,n).calculate();return[a.min,a.max]}var s2={getTargetSeries:function(r){function t(i){r.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var u=r.getComponent(jn(o),s);i(o,s,u,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var e=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new a2(i,a,s,r),e.push(o.__dzAxisProxy))});var n=Z();return M(e,function(i){M(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).reset(e)}),e.eachTargetAxis(function(n,i){e.getAxisProxy(n,i).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var n=e.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();e.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function u2(r){r.registerAction("dataZoom",function(t,e){var n=t2(e,t);M(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var tg=!1;function l2(r){tg||(tg=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,s2),u2(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function f2(r){r.registerComponentModel(r2),r.registerComponentView(i2),l2(r)}var Me=(function(){function r(){}return r})(),l1={};function Qi(r,t){l1[r]=t}function f1(r){return l1[r]}var h2=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){r.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;M(this.option.feature,function(n,i){var a=f1(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(e)),tt(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t})(lt);function v2(r,t,e){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:e.getWidth(),height:e.getHeight()},o=Br(n,a,i);li(t.get("orient"),r,t.get("itemGap"),o.width,o.height),TT(r,n,a,i)}function h1(r,t){var e=js(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),r=new wt({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),r}var c2=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){var o=this.group;if(o.removeAll(),!e.get("show"))return;var s=+e.get("itemSize"),u=e.get("orient")==="vertical",l=e.get("feature")||{},f=this._features||(this._features={}),h=[];M(l,function(d,p){h.push(p)}),new Ia(this._featureNames||[],h).add(c).update(c).remove(ft(c,null)).execute(),this._featureNames=h;function c(d,p){var g=h[d],y=h[p],m=l[g],_=new St(m,e,e.ecModel),S;if(a&&a.newTitle!=null&&a.featureName===g&&(m.title=a.newTitle),g&&!y){if(d2(g))S={onclick:_.option.onclick,featureName:g};else{var w=f1(g);if(!w)return;S=new w}f[g]=S}else if(S=f[y],!S)return;S.uid=Ua("toolbox-feature"),S.model=_,S.ecModel=n,S.api=i;var x=S instanceof Me;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}v(_,S,g),_.setIconStatus=function(b,T){var C=this.option,A=this.iconPaths;C.iconStatus=C.iconStatus||{},C.iconStatus[b]=T,A[b]&&(T==="emphasis"?hi:vi)(A[b])},S instanceof Me&&S.render&&S.render(_,n,i,a)}function v(d,p,g){var y=d.getModel("iconStyle"),m=d.getModel(["emphasis","iconStyle"]),_=p instanceof Me&&p.getIcons?p.getIcons():d.get("icon"),S=d.get("title")||{},w,x;W(_)?(w={},w[g]=_):w=_,W(S)?(x={},x[g]=S):x=S;var b=d.iconPaths={};M(w,function(T,C){var A=Ws(T,{},{x:-s/2,y:-s/2,width:s,height:s});A.setStyle(y.getItemStyle());var D=A.ensureState("emphasis");D.style=m.getItemStyle();var I=new Pt({style:{text:x[C],align:m.get("textAlign"),borderRadius:m.get("textBorderRadius"),padding:m.get("textPadding"),fill:null,font:rm({fontStyle:m.get("textFontStyle"),fontFamily:m.get("textFontFamily"),fontSize:m.get("textFontSize"),fontWeight:m.get("textFontWeight")},n)},ignore:!0});A.setTextContent(I),Wa({el:A,componentModel:e,itemName:C,formatterParamsExtra:{title:x[C]}}),A.__title=x[C],A.on("mouseover",function(){var L=m.getItemStyle(),P=u?e.get("right")==null&&e.get("left")!=="right"?"right":"left":e.get("bottom")==null&&e.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:m.get("textFill")||L.fill||L.stroke||"#000",backgroundColor:m.get("textBackgroundColor")}),A.setTextConfig({position:m.get("textPosition")||P}),I.ignore=!e.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){d.get(["iconStatus",C])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(d.get(["iconStatus",C])==="emphasis"?hi:vi)(A),o.add(A),A.on("click",ht(p.onclick,p,n,i,C)),b[C]=A})}v2(o,e,i),o.add(h1(o.getBoundingRect(),e)),u||o.eachChild(function(d){var p=d.__title,g=d.ensureState("emphasis"),y=g.textConfig||(g.textConfig={}),m=d.getTextContent(),_=m&&m.ensureState("emphasis");if(_&&!q(_)&&p){var S=_.style||(_.style={}),w=Es(p,Pt.makeFont(S)),x=d.x+o.x,b=d.y+o.y+s,T=!1;b+w.height>i.getHeight()&&(y.position="top",T=!0);var C=T?-5-w.height:s+10;x+w.width/2>i.getWidth()?(y.position=["100%",C],S.align="right"):x-w.width/2<0&&(y.position=[0,C],S.align="left")}})},t.prototype.updateView=function(e,n,i,a){M(this._features,function(o){o instanceof Me&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(e,n){M(this._features,function(i){i instanceof Me&&i.remove&&i.remove(e,n)}),this.group.removeAll()},t.prototype.dispose=function(e,n){M(this._features,function(i){i instanceof Me&&i.dispose&&i.dispose(e,n)})},t.type="toolbox",t})(qt);function d2(r){return r.indexOf("my")===0}var p2=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){var i=this.model,a=i.get("name")||e.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",u=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),l=Q.browser;if(typeof MouseEvent=="function"&&(l.newEdge||!l.ie&&!l.edge)){var f=document.createElement("a");f.download=a+"."+s,f.target="_blank",f.href=u;var h=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});f.dispatchEvent(h)}else if(window.navigator.msSaveOrOpenBlob||o){var c=u.split(","),v=c[0].indexOf("base64")>-1,d=o?decodeURIComponent(c[1]):c[1];v&&(d=window.atob(d));var p=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var g=d.length,y=new Uint8Array(g);g--;)y[g]=d.charCodeAt(g);var m=new Blob([y]);window.navigator.msSaveOrOpenBlob(m,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var S=_.contentWindow,w=S.document;w.open("image/svg+xml","replace"),w.write(d),w.close(),S.focus(),w.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var x=i.get("lang"),b='<body style="margin:0;"><img src="'+u+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(b),T.document.title=a}},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t})(Me),eg="__ec_magicType_stack__",g2=[["line","bar"],["stack"]],y2=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getIcons=function(){var e=this.model,n=e.get("icon"),i={};return M(e.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(e,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(rg[i]){var s={series:[]},u=function(h){var c=h.subType,v=h.id,d=rg[i](c,v,h,a);d&&(K(d,h.option),s.series.push(d));var p=h.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var g=p.getAxesByScale("ordinal")[0];if(g){var y=g.dim,m=y+"Axis",_=h.getReferringComponents(m,Yt).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"}}};M(g2,function(h){nt(h,i)>=0&&M(h,function(c){a.setIconStatus(c,"normal")})}),a.setIconStatus(i,"emphasis"),e.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},u);var l,f=i;i==="stack"&&(l=tt({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:l,featureName:"magicType"})}},t})(Me),rg={line:function(r,t,e,n){if(r==="bar")return tt({id:t,type:"line",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(r,t,e,n){if(r==="line")return tt({id:t,type:"bar",data:e.get("data"),stack:e.get("stack"),markPoint:e.get("markPoint"),markLine:e.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(r,t,e,n){var i=e.get("stack")===eg;if(r==="line"||r==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),tt({id:t,stack:i?"":eg},n.get(["option","stack"])||{},!0)}};qe({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(r,t){t.mergeOption(r.newOption)});var ou=new Array(60).join("-"),_i="	";function m2(r){var t={},e=[],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;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else e.push(i)}else e.push(i)}),{seriesGroupByCategoryAxis:t,other:e,meta:n}}function _2(r){var t=[];return M(r,function(e,n){var i=e.categoryAxis,a=e.valueAxis,o=a.dim,s=[" "].concat(G(e.series,function(v){return v.name})),u=[i.model.getCategories()];M(e.series,function(v){var d=v.getRawData();u.push(v.getRawData().mapArray(d.mapDimension(o),function(p){return p}))});for(var l=[s.join(_i)],f=0;f<u[0].length;f++){for(var h=[],c=0;c<u.length;c++)h.push(u[c][f]);l.push(h.join(_i))}t.push(l.join(`
`))}),t.join(`

`+ou+`

`)}function S2(r){return G(r,function(t){var e=t.getRawData(),n=[t.name],i=[];return e.each(e.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=e.getName(o),u=0;u<a-1;u++)i[u]=arguments[u];n.push((s?s+_i:"")+i.join(_i))}),n.join(`
`)}).join(`

`+ou+`

`)}function x2(r){var t=m2(r);return{value:xt([_2(t.seriesGroupByCategoryAxis),S2(t.other)],function(e){return!!e.replace(/[\n\t\s]/g,"")}).join(`

`+ou+`

`),meta:t.meta}}function ws(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function w2(r){var t=r.slice(0,r.indexOf(`
`));if(t.indexOf(_i)>=0)return!0}var Yf=new RegExp("["+_i+"]+","g");function b2(r){for(var t=r.split(/\n+/g),e=ws(t.shift()).split(Yf),n=[],i=G(e,function(u){return{name:u,data:[]}}),a=0;a<t.length;a++){var o=ws(t[a]).split(Yf);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 T2(r){for(var t=r.split(/\n+/g),e=ws(t.shift()),n=[],i=0;i<t.length;i++){var a=ws(t[i]);if(a){var o=a.split(Yf),s="",u=void 0,l=!1;isNaN(o[0])?(l=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},u=n[i].value):u=n[i]=[];for(var f=0;f<o.length;f++)u.push(+o[f]);u.length===1&&(l?n[i].value=u[0]:n[i]=u[0])}}return{name:e,data:n}}function C2(r,t){var e=r.split(new RegExp(`
*`+ou+`
*`,"g")),n={series:[]};return M(e,function(i,a){if(w2(i)){var o=b2(i),s=t[a],u=s.axisDim+"Axis";s&&(n[u]=n[u]||[],n[u][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=T2(i);n.series.push(o)}}),n}var M2=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,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"),u=a.get("lang")||[];s.innerHTML=u[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var l=document.createElement("div"),f=document.createElement("textarea");l.style.cssText="overflow:auto";var h=a.get("optionToContent"),c=a.get("contentToOption"),v=x2(e);if(q(h)){var d=h(n.getOption());W(d)?l.innerHTML=d:fi(d)&&l.appendChild(d)}else{f.readOnly=a.get("readOnly");var p=f.style;p.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=a.get("textColor"),p.borderColor=a.get("textareaBorderColor"),p.backgroundColor=a.get("textareaColor"),f.value=v.value,l.appendChild(f)}var g=v.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+a.get("buttonColor"),m+=";color:"+a.get("buttonTextColor");var w=this;function x(){i.removeChild(o),w._dom=null}xf(_,"click",x),xf(S,"click",function(){if(c==null&&h!=null||c!=null&&h==null){x();return}var b;try{q(c)?b=c(l,n.getOption()):b=C2(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}b&&n.dispatchAction({type:"changeDataView",newOption:b}),x()}),_.innerHTML=u[1],S.innerHTML=u[2],S.style.cssText=_.style.cssText=m,!a.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(l),o.appendChild(y),l.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(e,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(e,n){this.remove(e,n)},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","dataView","title"]),lang:e.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t})(Me);function A2(r,t){return G(r,function(e,n){var i=t&&t[n];if(Y(i)&&!z(i)){var a=Y(e)&&!z(e);a||(e={value:e});var o=i.name!=null&&e.name==null;return e=K(e,i),o&&delete e.name,e}else return e})}qe({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,t){var e=[];M(r.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)e.push(B({type:"scatter"},n));else{var a=i.get("data");e.push({name:n.name,data:A2(n.data,a)})}}),t.mergeOption(K({series:e},r.newOption))});var v1=M,c1=mt();function D2(r,t){var e=lv(r);v1(t,function(n,i){for(var a=e.length-1;a>=0;a--){var o=e[a];if(o[i])break}if(a<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var u=s.getPercentRange();e[0][i]={dataZoomId:i,start:u[0],end:u[1]}}}}),e.push(t)}function I2(r){var t=lv(r),e=t[t.length-1];t.length>1&&t.pop();var n={};return v1(e,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function L2(r){c1(r).snapshots=null}function P2(r){return lv(r).length}function lv(r){var t=c1(r);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var R2=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.onclick=function(e,n){L2(e),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","restore","title"])};return n},t})(Me);qe({type:"restore",event:"restore",update:"prepareAndUpdate"},function(r,t){t.resetOption("recreate")});var E2=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],d1=(function(){function r(t,e,n){var i=this;this._targetInfoList=[];var a=ng(e,t);M(k2,function(o,s){(!n||!n.include||nt(n.include,s)>=0)&&o(a,i._targetInfoList)})}return r.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=Ml[n.brushType](0,a,i);n.__rangeOffset={offset:sg[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},r.prototype.matchOutputRanges=function(t,e,n){M(t,function(i){var a=this.findTargetInfo(i,e);a&&a!==!0&&M(a.coordSyses,function(o){var s=Ml[i.brushType](1,o,i.range,!0);n(i,s.values,o,e)})},this)},r.prototype.setInputRanges=function(t,e){M(t,function(n){var i=this.findTargetInfo(n,e);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=Ml[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?sg[n.brushType](a.values,o.offset,O2(a.xyMinMax,o.xyMinMax)):a.values}},this)},r.prototype.makePanelOpts=function(t,e){return G(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:TL(i),isTargetByCursor:ML(i,t,n.coordSysModel),getLinearBrushOtherExtent:CL(i)}})},r.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return i===!0||i&&nt(i.coordSyses,e.coordinateSystem)>=0},r.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=ng(e,t),a=0;a<n.length;a++){var o=n[a],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var u=0;u<ig.length;u++)if(ig[u](i,o))return o}return!0},r})();function Xf(r){return r[0]>r[1]&&r.reverse(),r}function ng(r,t){return ca(r,t,{includeMainTypes:E2})}var k2={grid:function(r,t){var e=r.xAxisModels,n=r.yAxisModels,i=r.gridModels,a=Z(),o={},s={};!e&&!n&&!i||(M(e,function(u){var l=u.axis.grid.model;a.set(l.id,l),o[l.id]=!0}),M(n,function(u){var l=u.axis.grid.model;a.set(l.id,l),s[l.id]=!0}),M(i,function(u){a.set(u.id,u),o[u.id]=!0,s[u.id]=!0}),a.each(function(u){var l=u.coordinateSystem,f=[];M(l.getCartesians(),function(h,c){(nt(e,h.getAxis("x").model)>=0||nt(n,h.getAxis("y").model)>=0)&&f.push(h)}),t.push({panelId:"grid--"+u.id,gridModel:u,coordSysModel:u,coordSys:f[0],coordSyses:f,getPanelRect:ag.grid,xAxisDeclared:o[u.id],yAxisDeclared:s[u.id]})}))},geo:function(r,t){M(r.geoModels,function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:ag.geo})})}},ig=[function(r,t){var e=r.xAxisModel,n=r.yAxisModel,i=r.gridModel;return!i&&e&&(i=e.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(r,t){var e=r.geoModel;return e&&e===t.geoModel}],ag={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var r=this.coordSys,t=r.getBoundingRect().clone();return t.applyTransform(bh(r)),t}},Ml={lineX:ft(og,0),lineY:ft(og,1),rect:function(r,t,e,n){var i=r?t.pointToData([e[0][0],e[1][0]],n):t.dataToPoint([e[0][0],e[1][0]],n),a=r?t.pointToData([e[0][1],e[1][1]],n):t.dataToPoint([e[0][1],e[1][1]],n),o=[Xf([i[0],a[0]]),Xf([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(r,t,e,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=G(e,function(o){var s=r?t.pointToData(o,n):t.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 og(r,t,e,n){var i=e.getAxis(["x","y"][r]),a=Xf(G([0,1],function(s){return t?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 sg={lineX:ft(ug,0),lineY:ft(ug,1),rect:function(r,t,e){return[[r[0][0]-e[0]*t[0][0],r[0][1]-e[0]*t[0][1]],[r[1][0]-e[1]*t[1][0],r[1][1]-e[1]*t[1][1]]]},polygon:function(r,t,e){return G(r,function(n,i){return[n[0]-e[0]*t[i][0],n[1]-e[1]*t[i][1]]})}};function ug(r,t,e,n){return[t[0]-n[r]*e[0],t[1]-n[r]*e[1]]}function O2(r,t){var e=lg(r),n=lg(t),i=[e[0]/n[0],e[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function lg(r){return r?[r[0][1]-r[0][0],r[1][1]-r[1][0]]:[NaN,NaN]}var Zf=M,N2=Kx("toolbox-dataZoom_"),B2=(function(r){N(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.render=function(e,n,i,a){this._brushController||(this._brushController=new pL(i.getZr()),this._brushController.on("brush",ht(this._onBrush,this)).mount()),G2(e,n,this,a,i),z2(e,n)},t.prototype.onclick=function(e,n,i){F2[i].call(this)},t.prototype.remove=function(e,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var n=e.areas;if(!e.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new d1(fv(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(l,f,h){if(h.type==="cartesian2d"){var c=l.brushType;c==="rect"?(s("x",h,f[0]),s("y",h,f[1])):s({lineX:"x",lineY:"y"}[c],h,f)}}),D2(a,i),this._dispatchZoomAction(i);function s(l,f,h){var c=f.getAxis(l),v=c.model,d=u(l,v,a),p=d.findRepresentativeAxisProxy(v).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(h=Y_(0,h.slice(),c.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),d&&(i[d.id]={dataZoomId:d.id,startValue:h[0],endValue:h[1]})}function u(l,f,h){var c;return h.eachComponent({mainType:"dataZoom",subType:"select"},function(v){var d=v.getAxisModel(l,f.componentIndex);d&&(c=v)}),c}},t.prototype._dispatchZoomAction=function(e){var n=[];Zf(e,function(i,a){n.push(J(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t})(Me),F2={zoom:function(){var r=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:r})},back:function(){this._dispatchZoomAction(I2(this.ecModel))}};function fv(r){var t={xAxisIndex:r.get("xAxisIndex",!0),yAxisIndex:r.get("yAxisIndex",!0),xAxisId:r.get("xAxisId",!0),yAxisId:r.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function z2(r,t){r.setIconStatus("back",P2(t)>1?"emphasis":"normal")}function G2(r,t,e,n,i){var a=e._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),e._isZoomActive=a,r.setIconStatus("zoom",a?"emphasis":"normal");var o=new d1(fv(r),t,{include:["grid"]}),s=o.makePanelOpts(i,function(u){return u.xAxisDeclared&&!u.yAxisDeclared?"lineX":!u.xAxisDeclared&&u.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:r.getModel("brushStyle").getItemStyle()}:!1)}aA("dataZoom",function(r){var t=r.getComponent("toolbox",0),e=["feature","dataZoom"];if(!t||t.get(e)==null)return;var n=t.getModel(e),i=[],a=fv(n),o=ca(r,a);Zf(o.xAxisModels,function(u){return s(u,"xAxis","xAxisIndex")}),Zf(o.yAxisModels,function(u){return s(u,"yAxis","yAxisIndex")});function s(u,l,f){var h=u.componentIndex,c={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:N2+l+h};c[f]=h,i.push(c)}return i});function V2(r){r.registerComponentModel(h2),r.registerComponentView(c2),Qi("saveAsImage",p2),Qi("magicType",y2),Qi("dataView",M2),Qi("dataZoom",B2),Qi("restore",R2),Ze(f2)}var H2=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t})(lt);function p1(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function g1(r){if(Q.domSupported){for(var t=document.documentElement.style,e=0,n=r.length;e<n;e++)if(r[e]in t)return r[e]}}var y1=g1(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),W2=g1(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function m1(r,t){if(!r)return t;t=Hm(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function U2(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var Y2=m1(W2,"transition"),hv=m1(y1,"transform"),X2="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Q.transform3dSupported?"will-change:transform;":"");function Z2(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function $2(r,t,e){if(!W(e)||e==="inside")return"";var n=r.get("backgroundColor"),i=r.get("borderWidth");t=Sn(t);var a=Z2(e),o=Math.max(Math.round(i)*1.5,6),s="",u=hv+":",l;nt(["left","right"],a)>-1?(s+="top:50%",u+="translateY(-50%) rotate("+(l=a==="left"?-225:-45)+"deg)"):(s+="left:50%",u+="translateX(-50%) rotate("+(l=a==="top"?225:45)+"deg)");var f=l*Math.PI/180,h=o+i,c=h*Math.abs(Math.cos(f))+h*Math.abs(Math.sin(f)),v=Math.round(((c-Math.SQRT2*i)/2+Math.SQRT2*i-(c-h)/2)*100)/100;s+=";"+a+":-"+v+"px";var d=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+u+";","border-bottom:"+d,"border-right:"+d,"background-color:"+n+";"];return'<div style="'+p.join("")+'"></div>'}function q2(r,t){var e="cubic-bezier(0.23,1,0.32,1)",n=" "+r/2+"s "+e,i="opacity"+n+",visibility"+n;return t||(n=" "+r+"s "+e,i+=Q.transformSupported?","+hv+n:",left"+n+",top"+n),Y2+":"+i}function fg(r,t,e){var n=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!Q.transformSupported)return e?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=Q.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return e?"top:0;left:0;"+hv+":"+o+";":[["top",0],["left",0],[y1,o]]}function K2(r){var t=[],e=r.get("fontSize"),n=r.getTextColor();n&&t.push("color:"+n),t.push("font:"+r.getFont());var i=j(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+i+"px");var a=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,u=r.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+u+"px "+o+"px "+a),M(["decoration","align"],function(l){var f=r.get(l);f&&t.push("text-"+l+":"+f)}),t.join(";")}function Q2(r,t,e){var n=[],i=r.get("transitionDuration"),a=r.get("backgroundColor"),o=r.get("shadowBlur"),s=r.get("shadowColor"),u=r.get("shadowOffsetX"),l=r.get("shadowOffsetY"),f=r.getModel("textStyle"),h=Jm(r,"html"),c=u+"px "+l+"px "+o+"px "+s;return n.push("box-shadow:"+c),t&&i&&n.push(q2(i,e)),a&&n.push("background-color:"+a),M(["width","color","radius"],function(v){var d="border-"+v,p=Hm(d),g=r.get(p);g!=null&&n.push(d+":"+g+(v==="color"?"":"px"))}),n.push(K2(f)),h!=null&&n.push("padding:"+js(h).join("px ")+"px"),n.join(";")+";"}function hg(r,t,e,n,i){var a=t&&t.painter;if(e){var o=a&&a.getViewportRoot();o&&uT(r,o,e,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]/t.getWidth(),r[3]=r[1]/t.getHeight()}var J2=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Q.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=e.appendTo,o=a&&(W(a)?document.querySelector(a):fi(a)?a:q(a)&&a(t.getDom()));hg(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(u){if(u=u||window.event,!s._enterable){var l=i.handler,f=i.painter.getViewportRoot();fe(f,u,!0),l.dispatch("mousemove",u)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),n=U2(e,"position"),i=e.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=X2+Q2(t,!this._firstShow,this._longHide)+fg(a[0],a[1],!0)+("border-color:"+Sn(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(W(a)&&n.get("trigger")==="item"&&!p1(n)&&(s=$2(n,i,a)),W(t))o.innerHTML=t+s;else if(t){o.innerHTML="",z(t)||(t=[t]);for(var u=0;u<t.length;u++)fi(t[u])&&t[u].parentNode!==o&&o.appendChild(t[u]);if(s&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=s,o.appendChild(l)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var n=this._styleCoord;if(hg(n,this._zr,this._container,t,e),n[0]!=null&&n[1]!=null){var i=this.el.style,a=fg(n[0],n[1]);M(a,function(o){i[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",Q.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ht(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},r})(),j2=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),cg(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,n,i,a){var o=this;Y(t)&&ot(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new Pt({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Jm(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(l){o.el.style[l]=n.get(l)}),M(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(l){o.el.style[l]=s.get(l)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),n=vg(t.style);return[e.width+n.left+n.right,e.height+n.top+n.bottom]},r.prototype.moveTo=function(t,e){var n=this.el;if(n){var i=this._styleCoord;cg(i,this._zr,t,e),t=i[0],e=i[1];var a=n.style,o=br(a.borderWidth||0),s=vg(a);n.x=t+o+s.left,n.y=e+o+s.top,n.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(ht(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function br(r){return Math.max(0,r)}function vg(r){var t=br(r.shadowBlur||0),e=br(r.shadowOffsetX||0),n=br(r.shadowOffsetY||0);return{left:br(t-e),right:br(t+e),top:br(t-n),bottom:br(t+n)}}function cg(r,t,e,n){r[0]=e,r[1]=n,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var tP=new wt({shape:{x:-1,y:-1,width:2,height:2}}),eP=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,n){if(!(Q.node||!n.getDom())){var i=e.getComponent("tooltip"),a=this._renderMode=rw(i.get("renderMode"));this._tooltipContent=a==="richText"?new j2(n):new J2(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(e,n,i){if(!(Q.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(e),a.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?g0(this,"_updatePosition",50,"fixRate"):_f(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,n=e.get("triggerOn");o1("itemTooltip",this._api,ht(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,n=this._ecModel,i=this._api,a=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,n,i,a){if(!(a.from===this.uid||Q.node||!i.getDom())){var o=dg(a,i);this._ticket="";var s=a.dataByCoordSys,u=aP(a,n,i);if(u){var l=u.el.getBoundingRect().clone();l.applyTransform(u.el.transform),this._tryShow({offsetX:l.x+l.width/2,offsetY:l.y+l.height/2,target:u.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var f=tP;f.x=a.x,f.y=a.y,f.update(),at(f).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:f},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(e,n,i,a))return;var h=s1(a,n),c=h.point[0],v=h.point[1];c!=null&&v!=null&&this._tryShow({offsetX:c,offsetY:v,target:h.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(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))}},t.prototype.manuallyHideTip=function(e,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(dg(a,i))},t.prototype._manuallyAxisShowTip=function(e,n,i,a){var o=a.seriesIndex,s=a.dataIndex,u=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||u==null)){var l=n.getSeriesByIndex(o);if(l){var f=l.getData(),h=Ji([f.getItemModel(s),l,(l.coordinateSystem||{}).model],this._tooltipModel);if(h.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(e,n){var i=e.target,a=this._tooltipModel;if(a){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){var s=at(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,l;sa(i,function(f){if(at(f).dataIndex!=null)return u=f,!0;if(at(f).tooltipConfig!=null)return l=f,!0},!0),u?this._showSeriesItemTooltip(e,u,n):l?this._showComponentItemTooltip(e,l,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(e,n){var i=e.get("showDelay");n=ht(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(e,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ji([n.tooltipOption],a),u=this._renderMode,l=[],f=xn("section",{blocks:[],noHeader:!0}),h=[],c=new Yu;M(e,function(m){M(m.dataByAxis,function(_){var S=i.getComponent(_.axisDim+"Axis",_.axisIndex),w=_.value;if(!(!S||w==null)){var x=i1(w,S.axis,i,_.seriesDataIndices,_.valueLabelOpt),b=xn("section",{header:x,noHeader:!ze(x),sortBlocks:!0,blocks:[]});f.blocks.push(b),M(_.seriesDataIndices,function(T){var C=i.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,D=C.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=tv(S.axis,{value:w}),D.axisValueLabel=x,D.marker=c.makeTooltipMarker("item",Sn(D.color),u);var I=Hc(C.formatTooltip(A,!0,null)),L=I.frag;if(L){var P=Ji([C],a).get("valueFormatter");b.blocks.push(P?B({valueFormatter:P},L):L)}I.text&&h.push(I.text),l.push(D)}})}})}),f.blocks.reverse(),h.reverse();var v=n.position,d=s.get("order"),p=Xc(f,c,u,d,i.get("useUTC"),s.get("textStyle"));p&&h.unshift(p);var g=u==="richText"?`

`:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,y,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=at(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=e.positionDefault,p=Ji([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=l.getDataParams(f,h),m=new Yu;y.marker=m.makeTooltipMarker("item",Sn(y.color),v);var _=Hc(l.formatTooltip(f,!1,h)),S=p.get("order"),w=p.get("valueFormatter"),x=_.frag,b=x?Xc(w?B({valueFormatter:w},x):x,m,v,S,a.get("useUTC"),p.get("textStyle")):_.text,T="item_"+l.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,b,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=this._renderMode==="html",o=at(n),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(W(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=J(u),u.content=ee(u.content));var h=[u],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:u.content});var v=e.positionDefault,d=Ji(h,this._tooltipModel,v?{position:v}:null),p=d.get("content"),g=Math.random()+"",y=new Yu;this._showOrMove(d,function(){var m=J(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,g,e.offsetX,e.offsetY,e.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,u,l,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");u=u||e.get("position");var v=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),p=d.color;if(c)if(W(c)){var g=e.ecModel.get("useUTC"),y=z(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=$s(y.axisValue,v,g)),v=Wm(v,i,!0)}else if(q(c)){var _=ht(function(S,w){S===this._ticket&&(h.setContent(w,f,e,p,u),this._updatePosition(e,u,o,s,h,i,l))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,e,p,u),h.show(e,p),this._updatePosition(e,u,o,s,h,i,l)}},t.prototype._getNearestPoint=function(e,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}},t.prototype._updatePosition=function(e,n,i,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),q(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),z(n))i=pt(n[0],l),a=pt(n[1],f);else if(Y(n)){var p=n;p.width=h[0],p.height=h[1];var g=Br(p,{width:l,height:f});i=g.x,a=g.y,c=null,v=null}else if(W(n)&&u){var y=iP(n,d,h,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=rP(i,a,o,l,f,c?null:20,v?null:20);i=y[0],a=y[1]}if(c&&(i-=pg(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=pg(v)?h[1]/2:v==="bottom"?h[1]:0),p1(e)){var y=nP(i,a,o,l,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&M(i,function(s,u){var l=s.dataByAxis||[],f=e[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&M(l,function(c,v){var d=h[v]||{},p=c.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&p.length===g.length,o&&M(p,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&M(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){Q.node||!n.getDom()||(_f(this,"_updatePosition"),this._tooltipContent.dispose(),Uf("itemTooltip",n))},t.type="tooltip",t})(qt);function Ji(r,t,e){var n=t.ecModel,i;e?(i=new St(e,n,n),i=new St(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof St&&(o=o.get("tooltip",!0)),W(o)&&(o={formatter:o}),o&&(i=new St(o,i,n)))}return i}function dg(r,t){return r.dispatchAction||ht(t.dispatchAction,t)}function rP(r,t,e,n,i,a,o){var s=e.getSize(),u=s[0],l=s[1];return a!=null&&(r+u+a+2>n?r-=u+a:r+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[r,t]}function nP(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function iP(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=t.width,f=t.height;switch(r){case"inside":s=t.x+l/2-i/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-i/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-i/2,u=t.y+f+o;break;case"left":s=t.x-i-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function pg(r){return r==="center"||r==="middle"}function aP(r,t,e){var n=ch(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=Va(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=at(l).tooltipConfig;if(f&&f.name===r.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}function oP(r){Ze(u1),r.registerComponentModel(H2),r.registerComponentView(eP),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Xt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Xt)}var sP=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t})(lt),uP=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),u=e.get("textAlign"),l=j(e.get("textBaseline"),e.get("textVerticalAlign")),f=new Pt({style:Nr(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new Pt({style:Nr(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),g=e.get("triggerEvent",!0);f.silent=!d&&!g,v.silent=!p&&!g,d&&f.on("click",function(){Gc(d,"_"+e.get("target"))}),p&&v.on("click",function(){Gc(p,"_"+e.get("subtarget"))}),at(f).eventData=at(v).eventData=g?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),c&&a.add(v);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=Br(m,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),u==="middle"&&(u="center"),u==="right"?_.x+=_.width:u==="center"&&(_.x+=_.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?_.y+=_.height:l==="middle"&&(_.y+=_.height/2),l=l||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var S={align:u,verticalAlign:l};f.setStyle(S),v.setStyle(S),y=a.getBoundingRect();var w=_.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var b=new wt({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:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(b)}},t.type="title",t})(qt);function lP(r){r.registerComponentModel(sP),r.registerComponentView(uP)}var fP=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},$f=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),z(n)&&M(n,function(a,o){W(a)&&(a={type:a}),n[o]=tt(a,fP(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<e.length;i++){var a=e[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],i=[];e.eachRawSeries(function(u){var l=u.name;i.push(l);var f;if(u.legendVisualProvider){var h=u.legendVisualProvider,c=h.getAllNames();e.isSeriesFiltered(u)||(i=i.concat(c)),c.length?n=n.concat(c):f=!0}else f=!0;f&&vh(u)&&n.push(u.name)}),this._availableNames=i;var a=this.get("data")||n,o=Z(),s=G(a,function(u){return(W(u)||vt(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new St(u,this,this.ecModel))},this);this._data=xt(s,function(u){return!!u})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;M(a,function(o){n[o.get("name")]=!1})}n[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;M(e,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;M(e,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&nt(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t})(lt),Wn=ft,qf=M,Po=Tt,_1=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new Po),this.group.add(this._selectorGroup=new Po),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var u=e.get("selector",!0),l=e.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,u,s,l);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=e.get("padding"),v=Br(f,h,c),d=this.layoutInner(e,o,v,a,u,l),p=Br(K({width:d.width,height:d.height},f),h,c);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=h1(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,u){var l=this.getContentGroup(),f=Z(),h=n.get("selectedMode"),c=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),qf(n.getData(),function(v,d){var p=v.get("name");if(!this.newlineDisabled&&(p===""||p===`
`)){var g=new Po;g.newline=!0,l.add(g);return}var y=i.getSeriesByName(p)[0];if(!f.get(p))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(y,p,d,v,n,e,_,w,S,h,a);x.on("click",Wn(gg,p,null,a,c)).on("mouseover",Wn(Kf,y.name,null,a,c)).on("mouseout",Wn(Qf,y.name,null,a,c)),i.ssr&&x.eachChild(function(b){var T=at(b);T.seriesIndex=y.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(p,!0)}else i.eachRawSeries(function(b){if(!f.get(p)&&b.legendVisualProvider){var T=b.legendVisualProvider;if(!T.containName(p))return;var C=T.indexOfName(p),A=T.getItemVisual(C,"style"),D=T.getItemVisual(C,"legendIcon"),I=or(A.fill);I&&I[3]===0&&(I[3]=.2,A=B(B({},A),{fill:ks(I,"rgba")}));var L=this._createItem(b,p,d,v,n,e,{},A,D,h,a);L.on("click",Wn(gg,null,p,a,c)).on("mouseover",Wn(Kf,null,p,a,c)).on("mouseout",Wn(Qf,null,p,a,c)),i.ssr&&L.eachChild(function(P){var R=at(P);R.seriesIndex=b.seriesIndex,R.dataIndex=d,R.ssrType="legend"}),f.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,u)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();qf(e,function(l){var f=l.type,h=new Pt({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 c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);Ti(h,{normal:c,emphasis:v},{defaultText:l.title}),tf(h)})},t.prototype._createItem=function(e,n,i,a,o,s,u,l,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=hP(f,a,u,l,v,g,c),w=new Po,x=a.getModel("textStyle");if(q(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;w.add(vP({itemWidth:d,itemHeight:p,icon:f,iconRotate:b,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,A=o.get("formatter"),D=n;W(A)&&A?D=A.replace("{name}",n??""):q(A)&&(D=A(n));var I=g?x.getTextColor():a.get("inactiveColor");w.add(new Pt({style:Nr(x,{text:D,x:T,y:p/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new wt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),P=a.getModel("tooltip");return P.get("show")&&Wa({el:L,componentModel:o,itemName:n,itemTooltipOption:P.option}),w.add(L),w.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(w),tf(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(e,n,i,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();li(e.get("orient"),u,e.get("itemGap"),i.width,i.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){li("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[g]+d:h[p]+=c[g]+d,v[1-p]+=f[y]/2-c[y]/2,l.x=v[0],l.y=v[1],u.x=h[0],u.y=h[1];var _={x:0,y:0};return _[g]=f[g]+d+c[g],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-p]),_}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(qt);function hP(r,t,e,n,i,a,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),qf(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?n.decal:Df(h,o),l.fill==="inherit"&&(l.fill=n[i]),l.stroke==="inherit"&&(l.stroke=n[f]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?n:e).opacity),s(l,n);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),p=l[f];l.lineWidth=d==="auto"?n.lineWidth>0&&p?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:v}}function vP(r){var t=r.icon||"roundRect",e=wn(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}function gg(r,t,e,n){Qf(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Kf(r,t,e,n)}function S1(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;n<i&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function Kf(r,t,e,n){S1(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function Qf(r,t,e,n){S1(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}function cP(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function ji(r,t,e){var n=r==="allSelect"||r==="inverseSelect",i={},a=[];e.eachComponent({mainType:"legend",query:t},function(s){n?s[r]():s[r](t.name),yg(s,i),a.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){M(i,function(u,l){s[u?"select":"unSelect"](l)}),yg(s,o)}),n?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function yg(r,t){var e=t||{};return M(r.getData(),function(n){var i=n.get("name");if(!(i===`
`||i==="")){var a=r.isSelected(i);Ye(e,i)?e[i]=e[i]&&a:e[i]=a}}),e}function dP(r){r.registerAction("legendToggleSelect","legendselectchanged",ft(ji,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ft(ji,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ft(ji,"inverseSelect")),r.registerAction("legendSelect","legendselected",ft(ji,"select")),r.registerAction("legendUnSelect","legendunselected",ft(ji,"unSelect"))}function x1(r){r.registerComponentModel($f),r.registerComponentView(_1),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,cP),r.registerSubTypeDefaulter("legend",function(){return"plain"}),dP(r)}var pP=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,n,i){var a=tu(e);r.prototype.init.call(this,e,n,i),mg(this,e,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),mg(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Im($f.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t})($f);function mg(r,t,e){var n=r.getOrient(),i=[1,1];i[n.index]=0,yi(t,e,{type:"box",ignoreSize:!!i})}var _g=Tt,Al=["width","height"],Dl=["x","y"],gP=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new _g),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new _g)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,i,a,o,s,u){var l=this;r.prototype.renderInner.call(this,e,n,i,a,o,s,u);var f=this._controllerGroup,h=n.get("pageIconSize",!0),c=z(h)?h:[h,h];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new Pt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Ws(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:ht(l._pageGo,l,y,n,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(e,n,i,a,o,s){var u=this.getSelectorGroup(),l=e.getOrient().index,f=Al[l],h=Dl[l],c=Al[1-l],v=Dl[1-l];o&&li("horizontal",u,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=u.getBoundingRect(),g=[-p.x,-p.y],y=J(i);o&&(y[f]=i[f]-p[f]-d);var m=this._layoutContentAndController(e,a,y,l,f,c,v,h);if(o){if(s==="end")g[l]+=m[f]+d;else{var _=p[f]+d;g[l]-=_,m[h]-=_}m[f]+=p[f]+d,g[1-l]+=m[v]+m[c]/2-p[c]/2,m[c]=Math.max(m[c],p[c]),m[v]=Math.min(m[v],p[v]+g[1-l]),u.x=g[0],u.y=g[1],u.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,n,i,a,o,s,u,l){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;li(e.get("orient"),f,e.get("itemGap"),a?i.width:null,a?null:i.height),li("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),p=this._showController=v[o]>i[o],g=[-v.x,-v.y];n||(g[a]=f[l]);var y=[0,0],m=[-d.x,-d.y],_=j(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(g),h.setPosition(y),c.setPosition(m);var w={x:0,y:0};if(w[o]=p?i[o]:v[o],w[s]=Math.max(v[s],d[s]),w[u]=Math.min(0,d[u]+m[1-a]),h.__rectSize=i[o],p){var x={x:0,y:0};x[o]=Math.max(i[o]-d[o]-_,0),x[s]=w[s],h.setClipPath(new wt({shape:x})),h.__rectSize=x[o]}else c.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(e);return b.pageIndex!=null&&It(f,{x:b.contentPosition[0],y:b.contentPosition[1]},p?e:null),this._updatePageInfoView(e,b),w},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;M(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",W(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Al[o],u=Dl[o],l=this._findTargetItemIndex(n),f=i.children(),h=f[l],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var p=S(h);d.contentPosition[o]=-p.s;for(var g=l+1,y=p,m=p,_=null;g<=c;++g)_=S(f[g]),(!_&&m.e>y.s+a||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var g=l-1,y=p,m=p,_=null;g>=-1;--g)_=S(f[g]),(!_||!w(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function S(x){if(x){var b=x.getBoundingRect(),T=b[u]+x[u];return{s:T,e:T+b[s],i:x.__legendDataIndex}}}function w(x,b){return x.e>=b&&x.s<=b+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===e&&(n=s)}),n??a},t.type="legend.scroll",t})(_1);function yP(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function mP(r){Ze(x1),r.registerComponentModel(pP),r.registerComponentView(gP),yP(r)}function _P(r){Ze(x1),Ze(mP)}var Sg={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},SP=(function(){function r(t){var e=this._condVal=W(t)?new RegExp(t):Q1(t)?t:null;if(e==null){var n="";ot(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return W(e)?this._condVal.test(t):vt(e)?this._condVal.test(t+""):!1},r})(),xP=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),wP=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r})(),bP=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r})(),TP=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),CP=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},r})();function vv(r,t){if(r===!0||r===!1){var e=new xP;return e.value=r,e}var n="";return w1(r)||ot(n),r.and?xg("and",r,t):r.or?xg("or",r,t):r.not?MP(r,t):AP(r,t)}function xg(r,t,e){var n=t[r],i="";z(n)||ot(i),n.length||ot(i);var a=r==="and"?new wP:new bP;return a.children=G(n,function(o){return vv(o,e)}),a.children.length||ot(i),a}function MP(r,t){var e=r.not,n="";w1(e)||ot(n);var i=new TP;return i.child=vv(e,t),i.child||ot(n),i}function AP(r,t){for(var e="",n=t.prepareGetValue(r),i=[],a=yt(r),o=r.parser,s=o?ym(o):null,u=0;u<a.length;u++){var l=a[u];if(!(l==="parser"||t.valueGetterAttrMap.get(l))){var f=Ye(Sg,l)?Sg[l]:l,h=r[l],c=s?s(h):h,v=Ob(f,c)||f==="reg"&&new SP(c);v||ot(e),i.push(v)}}i.length||ot(e);var d=new CP;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=i,d}function w1(r){return Y(r)&&!Zt(r)}var DP=(function(){function r(t,e){this._cond=vv(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function IP(r,t){return new DP(r,t)}var LP={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=IP(r.config,{valueGetterAttrMap:Z({dimension:!0}),prepareGetValue:function(s){var u="",l=s.dimension;Ye(s,"dimension")||ot(u);var f=t.getDimensionInfo(l);return f||ot(u),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)e=t.getRawDataItem(a),n.evaluate()&&i.push(e);return{data:i}}},PP={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",i=Mt(e);i.length||ot(n);var a=[];M(i,function(f){var h=f.dimension,c=f.order,v=f.parser,d=f.incomparable;if(h==null&&ot(n),c!=="asc"&&c!=="desc"&&ot(n),d&&d!=="min"&&d!=="max"){var p="";ot(p)}if(c!=="asc"&&c!=="desc"){var g="";ot(g)}var y=t.getDimensionInfo(h);y||ot(n);var m=v?ym(v):null;v&&!m&&ot(n),a.push({dimIdx:y.index,parser:m,comparator:new _m(c,d)})});var o=t.sourceFormat;o!==$t&&o!==_e&&ot(n);for(var s=[],u=0,l=t.count();u<l;u++)s.push(t.getRawDataItem(u));return s.sort(function(f,h){for(var c=0;c<a.length;c++){var v=a[c],d=t.retrieveValueFromItem(f,v.dimIdx),p=t.retrieveValueFromItem(h,v.dimIdx);v.parser&&(d=v.parser(d),p=v.parser(p));var g=v.comparator.evaluate(d,p);if(g!==0)return g}return 0}),{data:s}}};function RP(r){r.registerTransform(LP),r.registerTransform(PP)}var EP=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,n,i){r.prototype.init.call(this,e,n,i),this._sourceManager=new Ym(this),Uc(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),Uc(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:We},t})(lt),kP=(function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t})(qt);function OP(r){r.registerComponentModel(EP),r.registerComponentView(kP)}function NP(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function BP(r,t){var e=r.label,n=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:NP(n&&n.shape.points)}}var wg=["align","verticalAlign","width","height","fontSize"],Ht=new za,Il=mt(),FP=mt();function Ro(r,t,e){for(var n=0;n<e.length;n++){var i=e[n];t[i]!=null&&(r[i]=t[i])}}var Eo=["x","y","rotation"],zP=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,n,i,a){var o=i.style,s=i.__hostTarget,u=s.textConfig||{},l=i.getComputedTransform(),f=i.getBoundingRect().plain();st.applyTransform(f,f,l),l?Ht.setLocalTransform(l):(Ht.x=Ht.y=Ht.rotation=Ht.originX=Ht.originY=0,Ht.scaleX=Ht.scaleY=1),Ht.rotation=rr(Ht.rotation);var h=i.__hostTarget,c;if(h){c=h.getBoundingRect().plain();var v=h.getComputedTransform();st.applyTransform(c,c,v)}var d=c&&h.getTextGuideLine();this._labelList.push({label:i,labelLine:d,seriesModel:n,dataIndex:t,dataType:e,layoutOption:a,computedLayoutOption:null,rect:f,hostRect:c,priority:c?c.width*c.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:d&&d.ignore,x:Ht.x,y:Ht.y,scaleX:Ht.scaleX,scaleY:Ht.scaleY,rotation:Ht.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:u.position,attachedRot:u.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(q(i)||yt(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=at(a);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,n,o,i)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();function i(_,S){return function(){yd(_,S)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,u=s.__hostTarget,l=o.defaultAttr,f=void 0;q(o.layoutOption)?f=o.layoutOption(BP(o,u)):f=o.layoutOption,f=f||{},o.computedLayoutOption=f;var h=Math.PI/180;u&&u.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:l.attachedPos,rotation:f.rotate!=null?f.rotate*h:l.attachedRot,offset:[f.dx||0,f.dy||0]});var c=!1;if(f.x!=null?(s.x=pt(f.x,e),s.setStyle("x",0),c=!0):(s.x=l.x,s.setStyle("x",l.style.x)),f.y!=null?(s.y=pt(f.y,n),s.setStyle("y",0),c=!0):(s.y=l.y,s.setStyle("y",l.style.y)),f.labelLinePoints){var v=u.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),c=!1)}var d=Il(s);d.needsUpdateLabelLine=c,s.rotation=f.rotate!=null?f.rotate*h:l.rotation,s.scaleX=l.scaleX,s.scaleY=l.scaleY;for(var p=0;p<wg.length;p++){var g=wg[p];s.setStyle(g,f[g]!=null?f[g]:l.style[g])}if(f.draggable){if(s.draggable=!0,s.cursor="move",u){var y=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);y=m.getItemModel(o.dataIndex)}s.on("drag",i(u,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=l.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),n=t.getHeight(),i=A0(this._labelList),a=xt(i,function(u){return u.layoutOption.moveOverlap==="shiftX"}),o=xt(i,function(u){return u.layoutOption.moveOverlap==="shiftY"});SM(a,0,e),I0(o,0,n);var s=xt(i,function(u){return u.layoutOption.hideOverlap});L0(s)},r.prototype.processLabelsOverall=function(){var t=this;M(this._chartViewList,function(e){var n=e.__model,i=e.ignoreLabelLineUpdate,a=n.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,u=o.getTextContent();!s&&u&&(s=Il(u).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},r.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=at(t),a=i.dataIndex;if(n&&a!=null){var o=e.getData(i.dataType),s=o.getItemModel(a),u={},l=o.getItemVisual(a,"style");if(l){var f=o.getVisual("drawType");u.stroke=l[f]}var h=s.getModel("labelLine");C0(t,M0(s),u),yd(t,h)}},r.prototype._animateLabels=function(t,e){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!ai(t))){var a=Il(n),o=a.oldLayout,s=at(t),u=s.dataIndex,l={x:n.x,y:n.y,rotation:n.rotation},f=e.getData(s.dataType);if(o){n.attr(o);var c=t.prevStates;c&&(nt(c,"select")>=0&&n.attr(a.oldLayoutSelect),nt(c,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),It(n,l,e,u)}else if(n.attr(l),!Mi(n).valueAnimation){var h=j(n.style.opacity,1);n.style.opacity=0,Et(n,{style:{opacity:h}},e,u)}if(a.oldLayout=l,n.states.select){var v=a.oldLayoutSelect={};Ro(v,l,Eo),Ro(v,n.states.select,Eo)}if(n.states.emphasis){var d=a.oldLayoutEmphasis={};Ro(d,l,Eo),Ro(d,n.states.emphasis,Eo)}hb(n,u,f,e,e)}if(i&&!i.ignore&&!i.invisible){var a=FP(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),It(i,{shape:p},e)):(i.setShape(p),i.style.strokePercent=0,Et(i,{style:{strokePercent:1}},e)),a.oldLayout=p}},r})(),Ll=mt();function GP(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){var i=Ll(e).labelManager;i||(i=Ll(e).labelManager=new zP),i.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=Ll(e).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(e.getViewOfSeriesModel(a))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}var Ne=ur.CMD;function ti(r,t){return Math.abs(r-t)<1e-5}function Jf(r){var t=r.data,e=r.len(),n=[],i,a=0,o=0,s=0,u=0;function l(L,P){i&&i.length>2&&n.push(i),i=[L,P]}function f(L,P,R,E){ti(L,R)&&ti(P,E)||i.push(L,P,R,E,R,E)}function h(L,P,R,E,F,k){var O=Math.abs(P-L),V=Math.tan(O/4)*4/3,H=P<L?-1:1,U=Math.cos(L),et=Math.sin(L),ut=Math.cos(P),ct=Math.sin(P),Ot=U*F+R,Kt=et*k+E,Nt=ut*F+R,At=ct*k+E,_t=F*V*H,$=k*V*H;i.push(Ot-_t*et,Kt+$*U,Nt+_t*ct,At-$*ut,Nt,At)}for(var c,v,d,p,g=0;g<e;){var y=t[g++],m=g===1;switch(m&&(a=t[g],o=t[g+1],s=a,u=o,(y===Ne.L||y===Ne.C||y===Ne.Q)&&(i=[s,u])),y){case Ne.M:a=s=t[g++],o=u=t[g++],l(s,u);break;case Ne.L:c=t[g++],v=t[g++],f(a,o,c,v),a=c,o=v;break;case Ne.C:i.push(t[g++],t[g++],t[g++],t[g++],a=t[g++],o=t[g++]);break;case Ne.Q:c=t[g++],v=t[g++],d=t[g++],p=t[g++],i.push(a+2/3*(c-a),o+2/3*(v-o),d+2/3*(c-d),p+2/3*(v-p),d,p),a=d,o=p;break;case Ne.A:var _=t[g++],S=t[g++],w=t[g++],x=t[g++],b=t[g++],T=t[g++]+b;g+=1;var C=!t[g++];c=Math.cos(b)*w+_,v=Math.sin(b)*x+S,m?(s=c,u=v,l(s,u)):f(a,o,c,v),a=Math.cos(T)*w+_,o=Math.sin(T)*x+S;for(var A=(C?-1:1)*Math.PI/2,D=b;C?D>T:D<T;D+=A){var I=C?Math.max(D+A,T):Math.min(D+A,T);h(D,I,_,S,w,x)}break;case Ne.R:s=a=t[g++],u=o=t[g++],c=s+t[g++],v=u+t[g++],l(c,u),f(c,u,c,v),f(c,v,s,v),f(s,v,s,u),f(s,u,c,u);break;case Ne.Z:i&&f(a,o,s,u),a=s,o=u;break}}return i&&i.length>2&&n.push(i),n}function jf(r,t,e,n,i,a,o,s,u,l){if(ti(r,e)&&ti(t,n)&&ti(i,o)&&ti(a,s)){u.push(o,s);return}var f=2/l,h=f*f,c=o-r,v=s-t,d=Math.sqrt(c*c+v*v);c/=d,v/=d;var p=e-r,g=n-t,y=i-o,m=a-s,_=p*p+g*g,S=y*y+m*m;if(_<h&&S<h){u.push(o,s);return}var w=c*p+v*g,x=-c*y-v*m,b=_-w*w,T=S-x*x;if(b<h&&w>=0&&T<h&&x>=0){u.push(o,s);return}var C=[],A=[];Er(r,e,i,o,.5,C),Er(t,n,a,s,.5,A),jf(C[0],A[0],C[1],A[1],C[2],A[2],C[3],A[3],u,l),jf(C[4],A[4],C[5],A[5],C[6],A[6],C[7],A[7],u,l)}function VP(r,t){var e=Jf(r),n=[];t=t||1;for(var i=0;i<e.length;i++){var a=e[i],o=[],s=a[0],u=a[1];o.push(s,u);for(var l=2;l<a.length;){var f=a[l++],h=a[l++],c=a[l++],v=a[l++],d=a[l++],p=a[l++];jf(s,u,f,h,c,v,d,p,o,t),s=d,u=p}n.push(o)}return n}function b1(r,t,e){var n=r[t],i=r[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*e)),s=Math.floor(e/o);s===0&&(s=1,o=e);for(var u=[],l=0;l<o;l++)u.push(s);var f=o*s,h=e-f;if(h>0)for(var l=0;l<h;l++)u[l%o]+=1;return u}function bg(r,t,e){for(var n=r.r0,i=r.r,a=r.startAngle,o=r.endAngle,s=Math.abs(o-a),u=s*i,l=i-n,f=u>Math.abs(l),h=b1([u,l],f?0:1,t),c=(f?s:l)/h.length,v=0;v<h.length;v++)for(var d=(f?l:s)/h[v],p=0;p<h[v];p++){var g={};f?(g.startAngle=a+c*v,g.endAngle=a+c*(v+1),g.r0=n+d*p,g.r=n+d*(p+1)):(g.startAngle=a+d*p,g.endAngle=a+d*(p+1),g.r0=n+c*v,g.r=n+c*(v+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,e.push(g)}}function HP(r,t,e){for(var n=r.width,i=r.height,a=n>i,o=b1([n,i],a?0:1,t),s=a?"width":"height",u=a?"height":"width",l=a?"x":"y",f=a?"y":"x",h=r[s]/o.length,c=0;c<o.length;c++)for(var v=r[u]/o[c],d=0;d<o[c];d++){var p={};p[l]=c*h,p[f]=d*v,p[s]=h,p[u]=v,p.x+=r.x,p.y+=r.y,e.push(p)}}function Tg(r,t,e,n){return r*n-e*t}function WP(r,t,e,n,i,a,o,s){var u=e-r,l=n-t,f=o-i,h=s-a,c=Tg(f,h,u,l);if(Math.abs(c)<1e-6)return null;var v=r-i,d=t-a,p=Tg(v,d,f,h)/c;return p<0||p>1?null:new X(p*u+r,p*l+t)}function UP(r,t,e){var n=new X;X.sub(n,e,t),n.normalize();var i=new X;X.sub(i,r,t);var a=i.dot(n);return a}function Un(r,t){var e=r[r.length-1];e&&e[0]===t[0]&&e[1]===t[1]||r.push(t)}function YP(r,t,e){for(var n=r.length,i=[],a=0;a<n;a++){var o=r[a],s=r[(a+1)%n],u=WP(o[0],o[1],s[0],s[1],t.x,t.y,e.x,e.y);u&&i.push({projPt:UP(u,t,e),pt:u,idx:a})}if(i.length<2)return[{points:r},{points:r}];i.sort(function(g,y){return g.projPt-y.projPt});var l=i[0],f=i[i.length-1];if(f.idx<l.idx){var h=l;l=f,f=h}for(var c=[l.pt.x,l.pt.y],v=[f.pt.x,f.pt.y],d=[c],p=[v],a=l.idx+1;a<=f.idx;a++)Un(d,r[a].slice());Un(d,v),Un(d,c);for(var a=f.idx+1;a<=l.idx+n;a++)Un(p,r[a%n].slice());return Un(p,c),Un(p,v),[{points:d},{points:p}]}function Cg(r){var t=r.points,e=[],n=[];hy(t,e,n);var i=new st(e[0],e[1],n[0]-e[0],n[1]-e[1]),a=i.width,o=i.height,s=i.x,u=i.y,l=new X,f=new X;return a>o?(l.x=f.x=s+a/2,l.y=u,f.y=u+o):(l.y=f.y=u+o/2,l.x=s,f.x=s+a),YP(t,l,f)}function bs(r,t,e,n){if(e===1)n.push(t);else{var i=Math.floor(e/2),a=r(t);bs(r,a[0],i,n),bs(r,a[1],e-i,n)}return n}function XP(r,t){for(var e=[],n=0;n<t;n++)e.push(mh(r));return e}function ZP(r,t){t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel}function $P(r){for(var t=[],e=0;e<r.length;)t.push([r[e++],r[e++]]);return t}function qP(r,t){var e=[],n=r.shape,i;switch(r.type){case"rect":HP(n,t,e),i=wt;break;case"sector":bg(n,t,e),i=Xe;break;case"circle":bg({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,e),i=Xe;break;default:var a=r.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=G(VP(r.getUpdatedPathProxy(),o),function(y){return $P(y)}),u=s.length;if(u===0)bs(Cg,{points:s[0]},t,e);else if(u===t)for(var l=0;l<u;l++)e.push({points:s[l]});else{var f=0,h=G(s,function(y){var m=[],_=[];hy(y,m,_);var S=(_[1]-m[1])*(_[0]-m[0]);return f+=S,{poly:y,area:S}});h.sort(function(y,m){return m.area-y.area});for(var c=t,l=0;l<u;l++){var v=h[l];if(c<=0)break;var d=l===u-1?c:Math.ceil(v.area/f*t);d<0||(bs(Cg,{points:v.poly},d,e),c-=d)}}i=Cn;break}if(!i)return XP(r,t);for(var p=[],l=0;l<e.length;l++){var g=new i;g.setShape(e[l]),ZP(r,g),p.push(g)}return p}function KP(r,t){var e=r.length,n=t.length;if(e===n)return[r,t];for(var i=[],a=[],o=e<n?r:t,s=Math.min(e,n),u=Math.abs(n-e)/6,l=(s-2)/6,f=Math.ceil(u/l)+1,h=[o[0],o[1]],c=u,v=2;v<s;){var d=o[v-2],p=o[v-1],g=o[v++],y=o[v++],m=o[v++],_=o[v++],S=o[v++],w=o[v++];if(c<=0){h.push(g,y,m,_,S,w);continue}for(var x=Math.min(c,f-1)+1,b=1;b<=x;b++){var T=b/x;Er(d,g,m,S,T,i),Er(p,y,_,w,T,a),d=i[3],p=a[3],h.push(i[1],a[1],i[2],a[2],d,p),g=i[5],y=a[5],m=i[6],_=a[6]}c-=x-1}return o===r?[h,t]:[r,h]}function Mg(r,t){for(var e=r.length,n=r[e-2],i=r[e-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function QP(r,t){for(var e,n,i,a=[],o=[],s=0;s<Math.max(r.length,t.length);s++){var u=r[s],l=t[s],f=void 0,h=void 0;u?l?(e=KP(u,l),f=e[0],h=e[1],n=f,i=h):(h=Mg(i||u,u),f=u):(f=Mg(n||l,l),h=l),a.push(f),o.push(h)}return[a,o]}function Ag(r){for(var t=0,e=0,n=0,i=r.length,a=0,o=i-2;a<i;o=a,a+=2){var s=r[o],u=r[o+1],l=r[a],f=r[a+1],h=s*f-l*u;t+=h,e+=(s+l)*h,n+=(u+f)*h}return t===0?[r[0]||0,r[1]||0]:[e/t/3,n/t/3,t]}function JP(r,t,e,n){for(var i=(r.length-2)/6,a=1/0,o=0,s=r.length,u=s-2,l=0;l<i;l++){for(var f=l*6,h=0,c=0;c<s;c+=2){var v=c===0?f:(f+c-2)%u+2,d=r[v]-e[0],p=r[v+1]-e[1],g=t[c]-n[0],y=t[c+1]-n[1],m=g-d,_=y-p;h+=m*m+_*_}h<a&&(a=h,o=l)}return o}function jP(r){for(var t=[],e=r.length,n=0;n<e;n+=2)t[n]=r[e-n-2],t[n+1]=r[e-n-1];return t}function tR(r,t,e,n){for(var i=[],a,o=0;o<r.length;o++){var s=r[o],u=t[o],l=Ag(s),f=Ag(u);a==null&&(a=l[2]<0!=f[2]<0);var h=[],c=[],v=0,d=1/0,p=[],g=s.length;a&&(s=jP(s));for(var y=JP(s,u,l,f)*6,m=g-2,_=0;_<m;_+=2){var S=(y+_)%m+2;h[_+2]=s[S]-l[0],h[_+3]=s[S+1]-l[1]}h[0]=s[y]-l[0],h[1]=s[y+1]-l[1];for(var w=n/e,x=-n/2;x<=n/2;x+=w){for(var b=Math.sin(x),T=Math.cos(x),C=0,_=0;_<s.length;_+=2){var A=h[_],D=h[_+1],I=u[_]-f[0],L=u[_+1]-f[1],P=I*T-L*b,R=I*b+L*T;p[_]=P,p[_+1]=R;var E=P-A,F=R-D;C+=E*E+F*F}if(C<d){d=C,v=x;for(var k=0;k<p.length;k++)c[k]=p[k]}}i.push({from:h,to:c,fromCp:l,toCp:f,rotation:-v})}return i}function Ts(r){return r.__isCombineMorphing}var T1="__mOriginal_";function Cs(r,t,e){var n=T1+t,i=r[n]||r[t];r[n]||(r[n]=r[t]);var a=e.replace,o=e.after,s=e.before;r[t]=function(){var u=arguments,l;return s&&s.apply(this,u),a?l=a.apply(this,u):l=i.apply(this,u),o&&o.apply(this,u),l}}function wa(r,t){var e=T1+t;r[e]&&(r[t]=r[e],r[e]=null)}function Dg(r,t){for(var e=0;e<r.length;e++)for(var n=r[e],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function C1(r,t){var e=r.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=QP(Jf(e),Jf(n)),a=i[0],o=i[1],s=r.getComputedTransform(),u=t.getComputedTransform();function l(){this.transform=null}s&&Dg(a,s),u&&Dg(o,u),Cs(t,"updateTransform",{replace:l}),t.transform=null;var f=tR(a,o,10,Math.PI),h=[];Cs(t,"buildPath",{replace:function(c){for(var v=t.__morphT,d=1-v,p=[],g=0;g<f.length;g++){var y=f[g],m=y.from,_=y.to,S=y.rotation*v,w=y.fromCp,x=y.toCp,b=Math.sin(S),T=Math.cos(S);Oo(p,w,x,v);for(var C=0;C<m.length;C+=2){var A=m[C],D=m[C+1],I=_[C],L=_[C+1],P=A*d+I*v,R=D*d+L*v;h[C]=P*T-R*b+p[0],h[C+1]=P*b+R*T+p[1]}var E=h[0],F=h[1];c.moveTo(E,F);for(var C=2;C<m.length;){var I=h[C++],L=h[C++],k=h[C++],O=h[C++],V=h[C++],H=h[C++];E===I&&F===L&&k===V&&O===H?c.lineTo(V,H):c.bezierCurveTo(I,L,k,O,V,H),E=V,F=H}}}})}function cv(r,t,e){if(!r||!t)return t;var n=e.done,i=e.during;C1(r,t),t.__morphT=0;function a(){wa(t,"buildPath"),wa(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},K({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},e)),t}function eR(r,t,e,n,i,a){var o=16;r=i===e?0:Math.round(32767*(r-e)/(i-e)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,u,l=(1<<o)/2;l>0;l/=2){var f=0,h=0;(r&l)>0&&(f=1),(t&l)>0&&(h=1),s+=l*l*(3*f^h),h===0&&(f===1&&(r=l-1-r,t=l-1-t),u=r,r=t,t=u)}return s}function Ms(r){var t=1/0,e=1/0,n=-1/0,i=-1/0,a=G(r,function(s){var u=s.getBoundingRect(),l=s.getComputedTransform(),f=u.x+u.width/2+(l?l[4]:0),h=u.y+u.height/2+(l?l[5]:0);return t=Math.min(f,t),e=Math.min(h,e),n=Math.max(f,n),i=Math.max(h,i),[f,h]}),o=G(a,function(s,u){return{cp:s,z:eR(s[0],s[1],t,e,n,i),path:r[u]}});return o.sort(function(s,u){return s.z-u.z}).map(function(s){return s.path})}function M1(r){return qP(r.path,r.count)}function th(){return{fromIndividuals:[],toIndividuals:[],count:0}}function rR(r,t,e){var n=[];function i(w){for(var x=0;x<w.length;x++){var b=w[x];Ts(b)?i(b.childrenRef()):b instanceof it&&n.push(b)}}i(r);var a=n.length;if(!a)return th();var o=e.dividePath||M1,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),th();n=Ms(n),s=Ms(s);for(var u=e.done,l=e.during,f=e.individualDelay,h=new za,c=0;c<a;c++){var v=n[c],d=s[c];d.parent=t,d.copyTransform(h),f||C1(v,d)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function p(w){for(var x=0;x<s.length;x++)s[x].addSelfToZr(w)}Cs(t,"addSelfToZr",{after:function(w){p(w)}}),Cs(t,"removeSelfFromZr",{after:function(w){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(w)}});function g(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,wa(t,"addSelfToZr"),wa(t,"removeSelfFromZr")}var y=s.length;if(f)for(var m=y,_=function(){m--,m===0&&(g(),u&&u())},c=0;c<y;c++){var S=f?K({delay:(e.delay||0)+f(c,y,n[c],s[c]),done:_},e):e;cv(n[c],s[c],S)}else t.__morphT=0,t.animateTo({__morphT:1},K({during:function(w){for(var x=0;x<y;x++){var b=s[x];b.__morphT=t.__morphT,b.dirtyShape()}l&&l(w)},done:function(){g();for(var w=0;w<r.length;w++)wa(r[w],"updateTransform");u&&u()}},e));return t.__zr&&p(t.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function nR(r,t,e){var n=t.length,i=[],a=e.dividePath||M1;function o(v){for(var d=0;d<v.length;d++){var p=v[d];Ts(p)?o(p.childrenRef()):p instanceof it&&i.push(p)}}if(Ts(r)){o(r.childrenRef());var s=i.length;if(s<n)for(var u=0,l=s;l<n;l++)i.push(mh(i[u++%s]));i.length=n}else{i=a({path:r,count:n});for(var f=r.getComputedTransform(),l=0;l<i.length;l++)i[l].setLocalTransform(f);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),th()}i=Ms(i),t=Ms(t);for(var h=e.individualDelay,l=0;l<n;l++){var c=h?K({delay:(e.delay||0)+h(l,n,i[l],t[l])},e):e;cv(i[l],t[l],c)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function Ig(r){return z(r[0])}function Lg(r,t){for(var e=[],n=r.length,i=0;i<n;i++)e.push({one:r[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)e[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!e[i].many.length){var u=e[s].many;if(u.length<=1)if(s)s=0;else return e;var a=u.length,l=Math.ceil(a/2);e[i].many=u.slice(l,a),e[s].many=u.slice(0,l),s++}return e}var iR={clone:function(r){for(var t=[],e=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var i=mh(r.path);i.setStyle("opacity",e),t.push(i)}return t},split:null};function Pl(r,t,e,n,i,a){if(!r.length||!t.length)return;var o=Hs("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),u=Object.assign({setToFinal:!0},o),l,f;Ig(r)&&(l=r,f=t),Ig(t)&&(l=t,f=r);function h(y,m,_,S,w){var x=y.many,b=y.one;if(x.length===1&&!w){var T=m?x[0]:b,C=m?b:x[0];if(Ts(T))h({many:[T],one:C},!0,_,S,!0);else{var A=s?K({delay:s(_,S)},u):u;cv(T,C,A),a(T,C,T,C,A)}}else for(var D=K({dividePath:iR[e],individualDelay:s&&function(F,k,O,V){return s(F+_,S)}},u),I=m?rR(x,b,D):nR(b,x,D),L=I.fromIndividuals,P=I.toIndividuals,R=L.length,E=0;E<R;E++){var A=s?K({delay:s(E,R)},u):u;a(L[E],P[E],m?x[E]:y.one,m?y.one:x[E],A)}}for(var c=l?l===r:r.length>t.length,v=l?Lg(f,l):Lg(c?t:r,[c?r:t]),d=0,p=0;p<v.length;p++)d+=v[p].many.length;for(var g=0,p=0;p<v.length;p++)h(v[p],c,g,d),g+=v[p].many.length}function fn(r){if(!r)return[];if(z(r)){for(var t=[],e=0;e<r.length;e++)t.push(fn(r[e]));return t}var n=[];return r.traverse(function(i){i instanceof it&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var A1=1e4,aR=0,Pg=1,Rg=2,oR=mt();function sR(r,t){for(var e=r.dimensions,n=0;n<e.length;n++){var i=r.getDimensionInfo(e[n]);if(i&&i.otherDims[t]===0)return e[n]}}function uR(r,t,e){var n=r.getDimensionInfo(e),i=n&&n.ordinalMeta;if(n){var a=r.get(n.name,t);return i&&i.categories[a]||a+""}}function Eg(r,t,e,n){var i=n?"itemChildGroupId":"itemGroupId",a=sR(r,i);if(a){var o=uR(r,t,a);return o}var s=r.getRawDataItem(t),u=n?"childGroupId":"groupId";if(s&&s[u])return s[u]+"";if(!n)return e||r.getId(t)}function kg(r){var t=[];return M(r,function(e){var n=e.data,i=e.dataGroupId;if(!(n.count()>A1))for(var a=n.getIndices(),o=0;o<a.length;o++)t.push({data:n,groupId:Eg(n,o,i,!1),childGroupId:Eg(n,o,i,!0),divide:e.divide,dataIndex:o})}),t}function Rl(r,t,e){r.traverse(function(n){n instanceof it&&Et(n,{style:{opacity:0}},t,{dataIndex:e,isFrom:!0})})}function El(r){if(r.parent){var t=r.getComputedTransform();r.setLocalTransform(t),r.parent.remove(r)}}function Yn(r){r.stopAnimation(),r.isGroup&&r.traverse(function(t){t.stopAnimation()})}function lR(r,t,e){var n=Hs("update",e,t);n&&r.traverse(function(i){if(i instanceof bi){var a=Qw(i);a&&i.animateFrom({style:a},n)}})}function fR(r,t){var e=r.length;if(e!==t.length)return!1;for(var n=0;n<e;n++){var i=r[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function D1(r,t,e){var n=kg(r),i=kg(t);function a(_,S,w,x,b){(w||_)&&S.animateFrom({style:w&&w!==_?B(B({},w.style),_.style):_.style},b)}var o=!1,s=aR,u=Z(),l=Z();n.forEach(function(_){_.groupId&&u.set(_.groupId,!0),_.childGroupId&&l.set(_.childGroupId,!0)});for(var f=0;f<i.length;f++){var h=i[f].groupId;if(l.get(h)){s=Pg;break}var c=i[f].childGroupId;if(c&&u.get(c)){s=Rg;break}}function v(_,S){return function(w){var x=w.data,b=w.dataIndex;return S?x.getId(b):_?s===Pg?w.childGroupId:w.groupId:s===Rg?w.childGroupId:w.groupId}}var d=fR(n,i),p={};if(!d)for(var f=0;f<i.length;f++){var g=i[f],y=g.data.getItemGraphicEl(g.dataIndex);y&&(p[y.id]=!0)}function m(_,S){var w=n[S],x=i[_],b=x.data.hostModel,T=w.data.getItemGraphicEl(w.dataIndex),C=x.data.getItemGraphicEl(x.dataIndex);if(T===C){C&&lR(C,x.dataIndex,b);return}T&&p[T.id]||C&&(Yn(C),T?(Yn(T),El(T),o=!0,Pl(fn(T),fn(C),x.divide,b,_,a)):Rl(C,b,_))}new Ia(n,i,v(!0,d),v(!1,d),null,"multiple").update(m).updateManyToOne(function(_,S){var w=i[_],x=w.data,b=x.hostModel,T=x.getItemGraphicEl(w.dataIndex),C=xt(G(S,function(A){return n[A].data.getItemGraphicEl(n[A].dataIndex)}),function(A){return A&&A!==T&&!p[A.id]});T&&(Yn(T),C.length?(M(C,function(A){Yn(A),El(A)}),o=!0,Pl(fn(C),fn(T),w.divide,b,_,a)):Rl(T,b,w.dataIndex))}).updateOneToMany(function(_,S){var w=n[S],x=w.data.getItemGraphicEl(w.dataIndex);if(!(x&&p[x.id])){var b=xt(G(_,function(C){return i[C].data.getItemGraphicEl(i[C].dataIndex)}),function(C){return C&&C!==x}),T=i[_[0]].data.hostModel;b.length&&(M(b,function(C){return Yn(C)}),x?(Yn(x),El(x),o=!0,Pl(fn(x),fn(b),w.divide,T,_[0],a)):M(b,function(C){return Rl(C,T,_[0])}))}}).updateManyToMany(function(_,S){new Ia(S,_,function(w){return n[w].data.getId(n[w].dataIndex)},function(w){return i[w].data.getId(i[w].dataIndex)}).update(function(w,x){m(_[w],S[x])}).execute()}).execute(),o&&M(t,function(_){var S=_.data,w=S.hostModel,x=w&&e.getViewOfSeriesModel(w),b=Hs("update",w,0);x&&w.isAnimationEnabled()&&b&&b.duration>0&&x.group.traverse(function(T){T instanceof it&&!T.animators.length&&T.animateFrom({style:{opacity:0}},b)})})}function Og(r){var t=r.getModel("universalTransition").get("seriesKey");return t||r.id}function Ng(r){return z(r)?r.sort().join(","):r}function Tr(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function hR(r,t){var e=Z(),n=Z(),i=Z();return M(r.oldSeries,function(a,o){var s=r.oldDataGroupIds[o],u=r.oldData[o],l=Og(a),f=Ng(l);n.set(f,{dataGroupId:s,data:u}),z(l)&&M(l,function(h){i.set(h,{key:f,dataGroupId:s,data:u})})}),M(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),u=Og(a),l=Ng(u),f=n.get(l);if(f)e.set(l,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Tr(f.data),data:f.data}],newSeries:[{dataGroupId:o,divide:Tr(s),data:s}]});else if(z(u)){var h=[];M(u,function(d){var p=n.get(d);p.data&&h.push({dataGroupId:p.dataGroupId,divide:Tr(p.data),data:p.data})}),h.length&&e.set(l,{oldSeries:h,newSeries:[{dataGroupId:o,data:s,divide:Tr(s)}]})}else{var c=i.get(u);if(c){var v=e.get(c.key);v||(v={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:Tr(c.data)}],newSeries:[]},e.set(c.key,v)),v.newSeries.push({dataGroupId:o,data:s,divide:Tr(s)})}}}}),e}function Bg(r,t){for(var e=0;e<r.length;e++){var n=t.seriesIndex!=null&&t.seriesIndex===r[e].seriesIndex||t.seriesId!=null&&t.seriesId===r[e].id;if(n)return e}}function vR(r,t,e,n){var i=[],a=[];M(Mt(r.from),function(o){var s=Bg(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:Tr(t.oldData[s]),groupIdDim:o.dimension})}),M(Mt(r.to),function(o){var s=Bg(e.updatedSeries,o);if(s>=0){var u=e.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:u,divide:Tr(u),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&D1(i,a,n)}function cR(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){M(Mt(n.seriesTransition),function(i){M(Mt(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][Yo]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(t,e,n){var i=oR(e);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)M(Mt(a),function(v){vR(v,i,n,e)});else{var o=hR(i,n);M(o.keys(),function(v){var d=o.get(v);D1(d.oldSeries,d.newSeries,e)})}M(n.updatedSeries,function(v){v[Yo]&&(v[Yo]=!1)})}for(var s=t.getSeries(),u=i.oldSeries=[],l=i.oldDataGroupIds=[],f=i.oldData=[],h=0;h<s.length;h++){var c=s[h].getData();c.count()<A1&&(u.push(s[h]),l.push(s[h].get("dataGroupId")),f.push(c))}})}function Fg(r,t,e){var n=Si.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",r)),n.width=i*e,n.height=a*e,n}var kl=(function(r){N(t,r);function t(e,n,i){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||ns,typeof e=="string"?o=Fg(e,n,i):Y(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(Xg(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=Fg("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new st(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new st(0,0,0,0);_.copy(m),o.push(_)}else{for(var S=!1,w=1/0,x=0,b=0;b<o.length;++b){var T=o[b];if(T.intersect(m)){var C=new st(0,0,0,0);C.copy(T),C.union(m),o[b]=C,S=!0;break}else if(u){l.copy(m),l.union(T);var A=m.width*m.height,D=T.width*T.height,I=l.width*l.height,L=I-A-D;L<w&&(w=L,x=b)}}if(u&&(o[x].union(m),S=!0),!S){var _=new st(0,0,0,0);_.copy(m),o.push(_)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=e[h];if(c){var v=c.shouldBePainted(i,a,!0,!0),d=c.__isRendered&&(c.__dirty&ie||!v)?c.getPrevPaintRect():null;d&&f(d);var p=v&&(c.__dirty&ie||!c.__isRendered)?c.getPaintRect():null;p&&f(p)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=n[h],v=c&&c.shouldBePainted(i,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var g;do{g=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var y=h+1;y<o.length;)o[h].intersect(o[y])?(g=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),a.width=e*i,a.height=n*i,s&&(s.width=e*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(e,n,i){var a=this.dom,o=this.ctx,s=a.width,u=a.height;n=n||this.clearColor;var l=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,u/h));var v=this.domBack;function d(p,g,y,m){if(o.clearRect(p,g,y,m),n&&n!=="transparent"){var _=void 0;if(Ds(n)){var S=n.global||n.__width===y&&n.__height===m;_=S&&n.__canvasGradient||Mf(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else K1(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=Af(o,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(p,g,y,m),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,p,g,y,m),o.restore())}!i||l?d(0,0,s,u):i.length&&M(i,function(p){d(p.x*h,p.y*h,p.width*h,p.height*h)})},t})(Ie),zg=1e5,ln=314159,ko=.01,dR=.001;function pR(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function gR(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var yR=(function(){function r(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=B({},n||{}),this.dpr=n.devicePixelRatio||ns,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Xg(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var f=t,h=f.width,c=f.height;n.width!=null&&(h=n.width),n.height!=null&&(c=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new kl(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[ln]=v,v.zlevel=ln,s.push(ln),this._domRoot=t}else{this._width=bo(t,0,n),this._height=bo(t,1,n);var l=this._domRoot=gR(this._width,this._height);t.appendChild(l)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=a===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),!!e){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(zg)),a||(a=n.ctx,a.save()),dn(a,s,i,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(zg)},r.prototype.paintOne=function(t,e){e_(t,e)},r.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;gs(function(){u._paintList(t,e,n,i)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(ln).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&a.push(l)}for(var f=!0,h=!1,c=function(p){var g=a[p],y=g.ctx,m=o&&g.createRepaintRects(t,e,v._width,v._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,w=S&&Date.now(),x=g.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,x,m);else if(_===g.__startIndex){var b=t[_];(!b.incremental||!b.notClear||n)&&g.clear(!1,x,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var T,C=function(L){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<g.__endIndex;T++){var R=t[T];if(R.__inHover&&(h=!0),i._doPaintEl(R,g,o,L,P,T===g.__endIndex-1),S){var E=Date.now()-w;if(E>15)break}}P.prevElClipPaths&&y.restore()};if(m)if(m.length===0)T=g.__endIndex;else for(var A=v.dpr,D=0;D<m.length;++D){var I=m[D];y.save(),y.beginPath(),y.rect(I.x*A,I.y*A,I.width*A,I.height*A),y.clip(),C(I),y.restore()}else y.save(),C(),y.restore();g.__drawIndex=T,g.__drawIndex<g.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return Q.wxa&&M(this._layers,function(p){p&&p.ctx&&p.ctx.draw&&p.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,n,i,a,o){var s=e.ctx;if(n){var u=t.getPaintRect();(!i||u&&u.intersect(i))&&(dn(s,t,a,o),t.setPrevPaintRect(u))}else dn(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=ln);var n=this._layers[t];return n||(n=new kl("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?tt(n,this._layerConfig[t],!0):this._layerConfig[t-ko]&&tt(n,this._layerConfig[t-ko],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,u=-1;if(!n[t]&&pR(e)){if(a>0&&t>i[0]){for(u=0;u<a-1&&!(i[u]<t&&i[u+1]>t);u++);s=n[i[u]]}if(i.splice(u+1,0,t),n[t]=e,!e.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function e(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,u;for(u=0;u<t.length;u++){var i=t[u],l=i.zlevel,f=void 0;s!==l&&(s=l,o=0),i.incremental?(f=this.getLayer(l+dR,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?ko:0),this._needsManuallyCompositing),f.__builtin__||ih("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,e(u),a=f),i.__dirty&ie&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}e(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,M(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?tt(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+ko){var o=this._layers[a];tt(o,n[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(nt(n,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),e!=null&&(i.height=e),t=bo(a,0,i),e=bo(a,1,i),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(ln).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[ln].dom;var e=new kl("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,a=e.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];dn(n,f,o,u===l-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function mR(r){r.registerPainter("canvas",yR)}Ze([lP,oP,QL,_P,OP,RP,lM,IM,VC,GP,cR,mR,V2,nL]);function SR(r,t){const e=P1(r),{system:n,store:i}=R1();let a=null;const{width:o,height:s}=E1(e),u=()=>!!(e&&a);async function l(){if(!o||!s)return;const c=i.value=="auto"?n.value:i.value;await N1(),e&&(a=ID(e.value,c),f(t.value))}async function f(c){u()&&a.setOption({backgroundColor:"transparent",...c})}function h(){a?.dispose(),a=null}return pv([o,s],async([c,v])=>{u()&&c&&v&&a?.resize()}),pv(t,c=>{f(c)}),k1(()=>{l()}),O1(()=>{h()}),{destroy:h,update:f}}export{SR as u};
