epmet 工作端 小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 lines
637 KiB

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).echarts={})}(this,function(t){"use strict";var h=function(t,e){return(h=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var c=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},w=new function(){this.browser=new c,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="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(w.wxa=!0,w.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?w.worker=!0:"undefined"==typeof navigator||0===navigator.userAgent.indexOf("Node.js")?(w.node=!0,w.svgSupported=!0):(J=navigator.userAgent,re=(Ft=w).browser,rt=J.match(/Firefox\/([\d.]+)/),T=J.match(/MSIE\s([\d.]+)/)||J.match(/Trident\/.+?rv:(([\d.]+))/),Q=J.match(/Edge?\/([\d.]+)/),J=/micromessenger/i.test(J),rt&&(re.firefox=!0,re.version=rt[1]),T&&(re.ie=!0,re.version=T[1]),Q&&(re.edge=!0,re.version=Q[1],re.newEdge=18<+Q[1].split(".")[0]),J&&(re.weChat=!0),Ft.svgSupported="undefined"!=typeof SVGRect,Ft.touchEventsSupported="ontouchstart"in window&&!re.ie&&!re.edge,Ft.pointerEventsSupported="onpointerdown"in window&&(re.edge||re.ie&&11<=+re.version),Ft.domSupported="undefined"!=typeof document,rt=document.documentElement.style,Ft.transform3dSupported=(re.ie&&"transition"in rt||re.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in rt)&&!("OTransition"in rt),Ft.transformSupported=Ft.transform3dSupported||re.ie&&9<=+re.version);var K="12px sans-serif";var p,m,v=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),o=(t.charCodeAt(n)-20)/100;e[i]=o}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),$={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(p||(n=$.createCanvas(),p=n&&n.getContext("2d")),p)return m!==e&&(m=p.font=e||K),p.measureText(t);t=t||"",e=e||K;var n=/(\d+)px/.exec(e),i=n&&+n[1]||12,o=0;if(0<=e.indexOf("mono"))o=i*t.length;else for(var r=0;r<t.length;r++){var a=v[t[r]];o+=null==a?i:a*i}return{width:o}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function _(t){for(var e in $)t[e]&&($[e]=t[e])}var x=ut(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),b=ut(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),I=Object.prototype.toString,T=Array.prototype,k=T.forEach,A=T.filter,L=T.slice,R=T.map,Q=function(){}.constructor,J=Q?Q.prototype:null,tt="__proto__",et=2311;function nt(){return et++}function it(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function y(t){if(null==t||"object"!=typeof t)return t;var e=t,n=I.call(t);if("[object Array]"===n){if(!Dt(t))for(var e=[],i=0,o=t.length;i<o;i++)e[i]=y(t[i])}else if(b[n]){if(!Dt(t)){var r=t.constructor;if(r.from)e=r.from(t);else{e=new r(t.length);for(i=0,o=t.length;i<o;i++)e[i]=t[i]}}}else if(!x[n]&&!Dt(t)&&!gt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==tt&&(e[a]=y(t[a]));return e}function d(t,e,n){if(!P(e)||!P(t))return n?y(e):t;for(var i in e){var o,r;e.hasOwnProperty(i)&&i!==tt&&(o=t[i],!P(r=e[i])||!P(o)||F(r)||F(o)||gt(r)||gt(o)||dt(r)||dt(o)||Dt(r)||Dt(o)?!n&&i in t||(t[i]=y(e[i])):d(o,r,n))}return t}function ot(t,e){for(var n=t[0],i=1,o=t.length;i<o;i++)n=d(n,t[i],e);return n}function V(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==tt&&(t[n]=e[n]);return t}function z(t,e,n){for(var i=W(e),o=0;o<i.length;o++){var r=i[o];(n?null!=e[r]:null==t[r])&&(t[r]=e[r])}return t}var rt=$.createCanvas;function G(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function at(t,e){var n,i=t.prototype;function o(){}for(n in o.prototype=e.prototype,t.prototype=new o,i)i.hasOwnProperty(n)&&(t.prototype[n]=i[n]);(t.prototype.constructor=t).superClass=e}function st(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),o=0;o<i.length;o++){var r=i[o];"constructor"!==r&&(n?null!=e[r]:null==t[r])&&(t[r]=e[r])}else z(t,e,n)}function lt(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function H(t,e,n){if(t&&e)if(t.forEach&&t.forEach===k)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t);else for(var r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r,t)}function B(t,e,n){if(!t)return[];if(!e)return wt(t);if(t.map&&t.map===R)return t.map(e,n);for(var i=[],o=0,r=t.length;o<r;o++)i.push(e.call(n,t[o],o,t));return i}function ut(t,e,n,i){if(t&&e){for(var o=0,r=t.length;o<r;o++)n=e.call(i,n,t[o],o,t);return n}}function ht(t,e,n){if(!t)return[];if(!e)return wt(t);if(t.filter&&t.filter===A)return t.filter(e,n);for(var i=[],o=0,r=t.length;o<r;o++)e.call(n,t[o],o,t)&&i.push(t[o]);return i}function ct(t,e,n){if(t&&e)for(var i=0,o=t.length;i<o;i++)if(e.call(n,t[i],i,t))return t[i]}function W(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n}var S=J&&C(J.bind)?J.call.bind(J.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(L.call(arguments)))}};function M(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(L.call(arguments)))}}function F(t){return Array.isArray?Array.isArray(t):"[object Array]"===I.call(t)}function C(t){return"function"==typeof t}function X(t){return"string"==typeof t}function pt(t){return"[object String]"===I.call(t)}function Y(t){return"number"==typeof t}function P(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function dt(t){return!!x[I.call(t)]}function ft(t){return!!b[I.call(t)]}function gt(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function yt(t){return null!=t.colorStops}function mt(t){return null!=t.image}function vt(t){return"[object RegExp]"===I.call(t)}function _t(t){return t!=t}function xt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function O(t,e){return null!=t?t:e}function bt(t,e,n){return null!=t?t:null!=e?e:n}function wt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return L.apply(t,e)}function St(t){var e;return"number"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function Mt(t,e){if(!t)throw new Error(e)}function It(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Tt="__ec_primitive__";function Ct(t){t[Tt]=!0}function Dt(t){return t[Tt]}At.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},At.prototype.has=function(t){return this.data.hasOwnProperty(t)},At.prototype.get=function(t){return this.data[t]},At.prototype.set=function(t,e){return this.data[t]=e,this},At.prototype.keys=function(){return W(this.data)},At.prototype.forEach=function(t){var e,n=this.data;for(e in n)n.hasOwnProperty(e)&&t(n[e],e)};var kt=At;function At(){this.data={}}var Lt="function"==typeof Map;Ot.prototype.hasKey=function(t){return this.data.has(t)},Ot.prototype.get=function(t){return this.data.get(t)},Ot.prototype.set=function(t,e){return this.data.set(t,e),e},Ot.prototype.each=function(n,i){this.data.forEach(function(t,e){n.call(i,t,e)})},Ot.prototype.keys=function(){var t=this.data.keys();return Lt?Array.from(t):t},Ot.prototype.removeKey=function(t){this.data.delete(t)};var Pt=Ot;function Ot(t){var n=F(t),i=(this.data=new(Lt?Map:kt),this);function e(t,e){n?i.set(t,e):i.set(e,t)}t instanceof Ot?t.each(e):t&&H(t,e)}function N(t){return new Pt(t)}function Nt(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var o=t.length,i=0;i<e.length;i++)n[i+o]=e[i];return n}function Rt(t,e){var n,t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&V(t,e),t}function Et(t){t=t.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function U(t,e){return t.hasOwnProperty(e)}function zt(){}var Bt=180/Math.PI,Ft=Object.freeze({__proto__:null,HashMap:Pt,RADIAN_TO_DEGREE:Bt,assert:Mt,bind:S,clone:y,concatArray:Nt,createCanvas:rt,createHashMap:N,createObject:Rt,curry:M,defaults:z,disableUserSelect:Et,each:H,eqNaN:_t,extend:V,filter:ht,find:ct,guid:nt,hasOwn:U,indexOf:G,inherits:at,isArray:F,isArrayLike:lt,isBuiltInObject:dt,isDom:gt,isFunction:C,isGradientObject:yt,isImagePatternObject:mt,isNumber:Y,isObject:P,isPrimitive:Dt,isRegExp:vt,isString:X,isStringSafe:pt,isTypedArray:ft,keys:W,logError:it,map:B,merge:d,mergeAll:ot,mixin:st,noop:zt,normalizeCssArray:St,reduce:ut,retrieve:xt,retrieve2:O,retrieve3:bt,setAsPrimitive:Ct,slice:wt,trim:It});function Vt(t,e){return[t=null==t?0:t,e=null==e?0:e]}function Gt(t,e){return t[0]=e[0],t[1]=e[1],t}function Ht(t){return[t[0],t[1]]}function Wt(t,e,n){return t[0]=e,t[1]=n,t}function Xt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Yt(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function Ut(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Zt(t){return Math.sqrt(qt(t))}function qt(t){return t[0]*t[0]+t[1]*t[1]}function jt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Kt(t,e){var n=Zt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function $t(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Qt=$t;function Jt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var te=Jt;function ee(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function ne(t,e,n){var i=e[0],e=e[1];return t[0]=n[0]*i+n[2]*e+n[4],t[1]=n[1]*i+n[3]*e+n[5],t}function ie(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function oe(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var re=Object.freeze({__proto__:null,add:Xt,applyTransform:ne,clone:Ht,copy:Gt,create:Vt,dist:Qt,distSquare:te,distance:$t,distanceSquare:Jt,div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:Zt,lenSquare:qt,length:Zt,lengthSquare:qt,lerp:ee,max:oe,min:ie,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:Kt,scale:jt,scaleAndAdd:Yt,set:Wt,sub:Ut}),ae=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},se=(le.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new ae(e,t),"dragstart",t.event))},le.prototype._drag=function(t){var e,n,i,o,r=this._draggingTarget;r&&(e=t.offsetX,n=t.offsetY,i=e-this._x,o=n-this._y,this._x=e,this._y=n,r.drift(i,o,t),this.handler.dispatchToElement(new ae(r,t),"drag",t.event),i=this.handler.findHover(e,n,r).target,o=this._dropTarget,r!==(this._dropTarget=i))&&(o&&i!==o&&this.handler.dispatchToElement(new ae(o,t),"dragleave",t.event),i)&&i!==o&&this.handler.dispatchToElement(new ae(i,t),"dragenter",t.event)},le.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new ae(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ae(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},le);function le(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}he.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),n&&t){var r=this._$eventProcessor;null!=e&&r&&r.normalizeQuery&&(e=r.normalizeQuery(e)),o[t]||(o[t]=[]);for(var a=0;a<o[t].length;a++)if(o[t][a].h===n)return this;r={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},e=o[t].length-1,i=o[t][e];i&&i.callAtLast?o[t].splice(e,0,r):o[t].push(r)}return this},he.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},he.prototype.off=function(t,e){var n=this._$handlers;if(n)if(t)if(e){if(n[t]){for(var i=[],o=0,r=n[t].length;o<r;o++)n[t][o].h!==e&&i.push(n[t][o]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];else this._$handlers={};return this},he.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var r=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!o||!o.filter||null==l.query||o.filter(t,l.query))switch(r){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)}}o&&o.afterTrigger&&o.afterTrigger(t)}return this},he.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var r=e.length,a=e[r-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!o||!o.filter||null==u.query||o.filter(t,u.query))switch(r){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,r-1))}}o&&o.afterTrigger&&o.afterTrigger(t)}return this};var ue=he;function he(t){t&&(this._$eventProcessor=t)}var ce=Math.log(2);function pe(t,e,n,i,o,r){var a,s=i+"-"+o,l=t.length;if(r.hasOwnProperty(s))return r[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~o)/ce),t[n][a];for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<l;p++){var f=1<<p;f&o||(c+=(d%2?-1:1)*t[n][p]*pe(t,e-1,h,u,o|f,r),d++)}return r[s]=c}function de(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},o=pe(n,8,0,0,0,i);if(0!==o){for(var r=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==r[s]&&(r[s]=0),r[s]+=((a+s)%2?-1:1)*pe(n,7,0===a?1:0,1<<a,1<<s,i)/o*e[a];return function(t,e,n){var i=e*r[6]+n*r[7]+1;t[0]=(e*r[0]+n*r[1]+r[2])/i,t[1]=(e*r[3]+n*r[4]+r[5])/i}}}var fe="___zrEVENTSAVED",ge=[];function ye(t,e,n,i,o){if(e.getBoundingClientRect&&w.domSupported&&!me(e)){var r=e[fe]||(e[fe]={}),e=function(t,e,n){for(var i=n?"invTrans":"trans",o=e[i],r=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,h=h.top;a.push(p,h),l=l&&r&&p===r[c]&&h===r[1+c],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&o?o:(e.srcCoords=a,e[i]=n?de(s,a):de(a,s))}(function(t,e){var n=e.markers;if(!n){n=e.markers=[];for(var i=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,u=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}}return n}(e,r),r,o);if(e)return e(t,n,i),!0}return!1}function me(t){return"CANVAS"===t.nodeName.toUpperCase()}var ve=/([&<>"'])/g,_e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function xe(t){return null==t?"":(t+"").replace(ve,function(t,e){return _e[e]})}var be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,we=[],Se=w.browser.firefox&&+w.browser.version.split(".")[0]<39;function Me(t,e,n,i){return n=n||{},i?Ie(t,e,n):Se&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Ie(t,e,n),n}function Ie(t,e,n){if(w.domSupported&&t.getBoundingClientRect){var i,o=e.clientX,e=e.clientY;if(me(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,void(n.zrY=e-i.top);if(ye(we,t,o,e))return n.zrX=we[0],void(n.zrY=we[1])}n.zrX=n.zrY=0}function Te(t){return t||window.event}function Ce(t,e,n){var i;return null==(e=Te(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Me(t,i,e,n):(Me(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0<t||!(t<0)&&0<n?-1:1):e}(e),e.zrDelta=i?i/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&be.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}var De=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function ke(t){return 2===t.which||3===t.which}Le.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},Le.prototype.clear=function(){return this._track.length=0,this},Le.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var o={points:[],touches:[],target:e,event:t},r=0,a=i.length;r<a;r++){var s=i[r],l=Me(n,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},Le.prototype._recognize=function(t){for(var e in Oe)if(Oe.hasOwnProperty(e)){e=Oe[e](this._track,t);if(e)return e}};var Ae=Le;function Le(){this._track=[]}function Pe(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}var Oe={pinch:function(t,e){var n,i=t.length;if(i)return n=(t[i-1]||{}).points,(i=(t[i-2]||{}).points||n)&&1<i.length&&n&&1<n.length?(i=Pe(n)/Pe(i),isFinite(i)||(i=1),e.pinchScale=i,i=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2],e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}):void 0}};function Ne(){return[1,0,0,1,0,0]}function Re(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ee(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ze(t,e,n){var i=e[0]*n[0]+e[2]*n[1],o=e[1]*n[0]+e[3]*n[1],r=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],n=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=o,t[2]=r,t[3]=a,t[4]=s,t[5]=n,t}function Be(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Fe(t,e,n,i){void 0===i&&(i=[0,0]);var o=e[0],r=e[2],a=e[4],s=e[1],l=e[3],e=e[5],u=Math.sin(n),n=Math.cos(n);return t[0]=o*n+s*u,t[1]=-o*u+s*n,t[2]=r*n+l*u,t[3]=-r*u+n*l,t[4]=n*(a-i[0])+u*(e-i[1])+i[0],t[5]=n*(e-i[1])-u*(a-i[0])+i[1],t}function Ve(t,e,n){var i=n[0],n=n[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Ge(t,e){var n=e[0],i=e[2],o=e[4],r=e[1],a=e[3],e=e[5],s=n*a-r*i;return s?(t[0]=a*(s=1/s),t[1]=-r*s,t[2]=-i*s,t[3]=n*s,t[4]=(i*e-a*o)*s,t[5]=(r*o-n*e)*s,t):null}var He=Object.freeze({__proto__:null,clone:function(t){var e=Ne();return Ee(e,t),e},copy:Ee,create:Ne,identity:Re,invert:Ge,mul:ze,rotate:Fe,scale:Ve,translate:Be}),E=(We.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},We.prototype.clone=function(){return new We(this.x,this.y)},We.prototype.set=function(t,e){return this.x=t,this.y=e,this},We.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},We.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},We.prototype.scale=function(t){this.x*=t,this.y*=t},We.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},We.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},We.prototype.dot=function(t){return this.x*t.x+this.y*t.y},We.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},We.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},We.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},We.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},We.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},We.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},We.prototype.transform=function(t){var e,n;if(t)return e=this.x,n=this.y,this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this},We.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},We.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},We.set=function(t,e,n){t.x=e,t.y=n},We.copy=function(t,e){t.x=e.x,t.y=e.y},We.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},We.lenSquare=function(t){return t.x*t.x+t.y*t.y},We.dot=function(t,e){return t.x*e.x+t.y*e.y},We.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},We.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},We.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},We.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},We.lerp=function(t,e,n,i){var o=1-i;t.x=o*e.x+i*n.x,t.y=o*e.y+i*n.y},We);function We(t,e){this.x=t||0,this.y=e||0}var Xe=Math.min,Ye=Math.max,Ue=new E,Ze=new E,qe=new E,je=new E,Ke=new E,$e=new E,Z=(Qe.prototype.union=function(t){var e=Xe(t.x,this.x),n=Xe(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ye(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ye(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},Qe.prototype.applyTransform=function(t){Qe.applyTransform(this,this,t)},Qe.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=Ne();return Be(i,i,[-this.x,-this.y]),Ve(i,i,[e,n]),Be(i,i,[t.x,t.y]),i},Qe.prototype.intersect=function(t,e){if(!t)return!1;t instanceof Qe||(t=Qe.create(t));var n,i,o,r,a,s,l,u,h=this,c=h.x,p=h.x+h.width,d=h.y,h=h.y+h.height,f=t.x,g=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<f||g<c||h<y||t<d);return e&&(n=1/0,i=0,o=Math.abs(p-f),r=Math.abs(g-c),a=Math.abs(h-y),s=Math.abs(t-d),l=Math.min(o,r),u=Math.min(a,s),p<f||g<c?i<l&&(i=l,o<r?E.set($e,-o,0):E.set($e,r,0)):l<n&&(n=l,o<r?E.set(Ke,o,0):E.set(Ke,-r,0)),h<y||t<d?i<u&&(i=u,a<s?E.set($e,0,-a):E.set($e,0,s)):l<n&&(n=l,a<s?E.set(Ke,0,a):E.set(Ke,0,-s))),e&&E.copy(e,m?Ke:$e),m},Qe.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},Qe.prototype.clone=function(){return new Qe(this.x,this.y,this.width,this.height)},Qe.prototype.copy=function(t){Qe.copy(this,t)},Qe.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Qe.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Qe.prototype.isZero=function(){return 0===this.width||0===this.height},Qe.create=function(t){return new Qe(t.x,t.y,t.width,t.height)},Qe.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Qe.applyTransform=function(t,e,n){var i,o,r,a;n?n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]?(i=n[0],o=n[3],r=n[4],a=n[5],t.x=e.x*i+r,t.y=e.y*o+a,t.width=e.width*i,t.height=e.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(Ue.x=qe.x=e.x,Ue.y=je.y=e.y,Ze.x=je.x=e.x+e.width,Ze.y=qe.y=e.y+e.height,Ue.transform(n),je.transform(n),Ze.transform(n),qe.transform(n),t.x=Xe(Ue.x,Ze.x,qe.x,je.x),t.y=Xe(Ue.y,Ze.y,qe.y,je.y),r=Ye(Ue.x,Ze.x,qe.x,je.x),a=Ye(Ue.y,Ze.y,qe.y,je.y),t.width=r-t.x,t.height=a-t.y):t!==e&&Qe.copy(t,e)},Qe);function Qe(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}var Je="silent";function tn(){De(this.event)}u(on,en=ue),on.prototype.dispose=function(){},on.prototype.setCursor=function(){};var en,nn=on;function on(){var t=null!==en&&en.apply(this,arguments)||this;return t.handler=null,t}var rn,an=function(t,e){this.x=t,this.y=e},sn=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ln=new Z(0,0,0,0),un=(u(hn,rn=ue),hn.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(H(sn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},hn.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=pn(this,e,n),o=this._hovered,r=o.target,i=(r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target),this._hovered=i?new an(e,n):this.findHover(e,n)),e=i.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:"default"),r&&e!==r&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(i,"mousemove",t),e&&e!==r&&this.dispatchToElement(i,"mouseover",t)},hn.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},hn.prototype.resize=function(){this._hovered=new an(0,0)},hn.prototype.dispatch=function(t,e){t=this[t];t&&t.call(this,e)},hn.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},hn.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},hn.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var o="on"+e,r={type:e,event:n,target:(t=t).target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:tn};i&&(i[o]&&(r.cancelBubble=!!i[o].call(i,r)),i.trigger(e,r),i=i.__hostTarget||i.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,r),t.trigger&&t.trigger(e,r)}))}},hn.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),o=new an(t,e);if(cn(i,o,t,e,n),this._pointerSize&&!o.target){for(var r=[],a=this._pointerSize,s=a/2,l=new Z(t-s,e-s,a,a),u=i.length-1;0<=u;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(ln.copy(h.getBoundingRect()),h.transform&&ln.applyTransform(h.transform),ln.intersect(l)&&r.push(h))}if(r.length)for(var c=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=c)if(cn(r,o,t+d*Math.cos(f),e+d*Math.sin(f),n),o.target)return o}return o},hn.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Ae);var n=this._gestureMgr,i=("start"===e&&n.clear(),n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&n.clear(),i&&(e=i.type,t.gestureEvent=e,(n=new an).target=i.target,this.dispatchToElement(n,e,i.event))},hn);function hn(t,e,n,i,o){var r=rn.call(this)||this;return r._hovered=new an(0,0),r.storage=t,r.painter=e,r.painterRoot=i,r._pointerSize=o,n=n||new nn,r.proxy=null,r.setHandlerProxy(n),r._draggingMgr=new se(r),r}function cn(t,e,n,i,o){for(var r=t.length-1;0<=r;r--){var a=t[r],s=void 0;if(a!==o&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,o=void 0,r=!1;i;){if(!(r=i.ignoreClip?!0:r)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(o=!0);a=i.__hostTarget,i=a||i.parent}return!o||Je}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==Je)){e.target=a;break}}}function pn(t,e,n){t=t.painter;return e<0||e>t.getWidth()||n<0||n>t.getHeight()}H(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){un.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=pn(this,i,o);if("mouseup"===a&&r||(n=(e=this.findHover(i,o)).target),"mousedown"===a)this._downEl=n,this._downPoint=[t.zrX,t.zrY],this._upEl=n;else if("mouseup"===a)this._upEl=n;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||4<Qt(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(e,a,t)}});var dn=32,fn=7;function gn(t,e,n,i){var o=e+1;if(o===n)return 1;if(i(t[o++],t[e])<0){for(;o<n&&i(t[o],t[o-1])<0;)o++;var r=t,a=e,s=o;for(s--;a<s;){var l=r[a];r[a++]=r[s],r[s--]=l}}else for(;o<n&&0<=i(t[o],t[o-1]);)o++;return o-e}function yn(t,e,n,i,o){for(i===e&&i++;i<n;i++){for(var r,a=t[i],s=e,l=i;s<l;)o(a,t[r=s+l>>>1])<0?l=r:s=1+r;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;0<u;)t[s+u]=t[s+u-1],u--}t[s]=a}}function mn(t,e,n,i,o,r){var a=0,s=0,l=1;if(0<r(t,e[n+o])){for(s=i-o;l<s&&0<r(t,e[n+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}else{for(s=o+1;l<s&&r(t,e[n+o-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);i=a,a=o-(l=s<l?s:l),l=o-i}for(a++;a<l;){var u=a+(l-a>>>1);0<r(t,e[n+u])?a=u+1:l=u}return l}function vn(t,e,n,i,o,r){var a=0,s=0,l=1;if(r(t,e[n+o])<0){for(s=o+1;l<s&&r(t,e[n+o-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a,a=o-(l=s<l?s:l),l=o-u}else{for(s=i-o;l<s&&0<=r(t,e[n+o+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=o,l+=o}for(a++;a<l;){var h=a+(l-a>>>1);r(t,e[n+h])<0?l=h:a=h+1}return l}function _n(A,L){var P,O,N=fn,R=0,E=[];function e(t){var e=P[t],n=O[t],i=P[t+1],o=O[t+1],t=(O[t]=n+o,t===R-3&&(P[t+1]=P[t+2],O[t+1]=O[t+2]),R--,vn(A[i],A,e,n,0,L));if(e+=t,0!=(n-=t)&&0!==(o=mn(A[e+n-1],A,i,o,o-1,L)))if(n<=o){var r=e,a=n,t=i,s=o,l=0;for(l=0;l<a;l++)E[l]=A[r+l];var u=0,h=t,c=r;if(A[c++]=A[h++],0==--s)for(l=0;l<a;l++)A[c+l]=E[u+l];else if(1===a){for(l=0;l<s;l++)A[c+l]=A[h+l];A[c+s]=E[u]}else{for(var p,d,f,g=N;;){d=p=0,f=!1;do{if(L(A[h],E[u])<0){if(A[c++]=A[h++],d++,(p=0)==--s){f=!0;break}}else if(A[c++]=E[u++],p++,d=0,1==--a){f=!0;break}}while((p|d)<g);if(f)break;do{if(0!==(p=vn(A[h],E,u,a,0,L))){for(l=0;l<p;l++)A[c+l]=E[u+l];if(c+=p,u+=p,(a-=p)<=1){f=!0;break}}if(A[c++]=A[h++],0==--s){f=!0;break}if(0!==(d=mn(E[u],A,h,s,0,L))){for(l=0;l<d;l++)A[c+l]=A[h+l];if(c+=d,h+=d,0===(s-=d)){f=!0;break}}if(A[c++]=E[u++],1==--a){f=!0;break}}while(g--,fn<=p||fn<=d);if(f)break;g<0&&(g=0),g+=2}if((N=g)<1&&(N=1),1===a){for(l=0;l<s;l++)A[c+l]=A[h+l];A[c+s]=E[u]}else{if(0===a)throw new Error;for(l=0;l<a;l++)A[c+l]=E[u+l]}}}else{var y=e,m=n,v=i,_=o,x=0;for(x=0;x<_;x++)E[x]=A[v+x];var b=y+m-1,w=_-1,S=v+_-1,M=0,I=0;if(A[S--]=A[b--],0==--m)for(M=S-(_-1),x=0;x<_;x++)A[M+x]=E[x];else if(1===_){for(I=(S-=m)+1,M=(b-=m)+1,x=m-1;0<=x;x--)A[I+x]=A[M+x];A[S]=E[w]}else{for(var T=N;;){var C=0,D=0,k=!1;do{if(L(E[w],A[b])<0){if(A[S--]=A[b--],C++,(D=0)==--m){k=!0;break}}else if(A[S--]=E[w--],D++,C=0,1==--_){k=!0;break}}while((C|D)<T);if(k)break;do{if(0!==(C=m-vn(E[w],A,y,m,m-1,L))){for(m-=C,I=(S-=C)+1,M=(b-=C)+1,x=C-1;0<=x;x--)A[I+x]=A[M+x];if(0===m){k=!0;break}}if(A[S--]=E[w--],1==--_){k=!0;break}if(0!==(D=_-mn(A[b],E,0,_,_-1,L))){for(_-=D,I=(S-=D)+1,M=(w-=D)+1,x=0;x<D;x++)A[I+x]=E[M+x];if(_<=1){k=!0;break}}if(A[S--]=A[b--],0==--m){k=!0;break}}while(T--,fn<=C||fn<=D);if(k)break;T<0&&(T=0),T+=2}if((N=T)<1&&(N=1),1===_){for(I=(S-=m)+1,M=(b-=m)+1,x=m-1;0<=x;x--)A[I+x]=A[M+x];A[S]=E[w]}else{if(0===_)throw new Error;for(M=S-(_-1),x=0;x<_;x++)A[M+x]=E[x]}}}}return P=[],O=[],{mergeRuns:function(){for(;1<R;){var t=R-2;if(1<=t&&O[t-1]<=O[t]+O[t+1]||2<=t&&O[t-2]<=O[t]+O[t-1])O[t-1]<O[t+1]&&t--;else if(O[t]>O[t+1])break;e(t)}},forceMergeRuns:function(){for(;1<R;){var t=R-2;0<t&&O[t-1]<O[t+1]&&t--,e(t)}},pushRun:function(t,e){P[R]=t,O[R]=e,R+=1}}}function xn(t,e,n,i){var o=(i=i||t.length)-(n=n||0);if(!(o<2)){var r=0;if(o<dn)yn(t,n,i,n+(r=gn(t,n,i,e)),e);else{var a,s=_n(t,e),l=function(t){for(var e=0;dn<=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((r=gn(t,n,i,e))<l&&(yn(t,n,n+(a=l<(a=o)?l:o),n+r,e),r=a),s.pushRun(n,r),s.mergeRuns(),n+=r,0!==(o-=r));s.forceMergeRuns()}}}var bn=1,wn=4,Sn=!1;function Mn(){Sn||(Sn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function In(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}Cn.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},Cn.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},Cn.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,o=e.length;i<o;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,xn(n,In)},Cn.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():[];for(var o=i,r=t;o;)o.parent=r,o.updateTransform(),e.push(o),o=(r=o).getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=bn),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{i=t;e&&e.length?i.__clipPaths=e:i.__clipPaths&&0<i.__clipPaths.length&&(i.__clipPaths=[]),isNaN(i.z)&&(Mn(),i.z=0),isNaN(i.z2)&&(Mn(),i.z2=0),isNaN(i.zlevel)&&(Mn(),i.zlevel=0),this._displayList[this._displayListLen++]=i}i=t.getDecalElement&&t.getDecalElement(),i=(i&&this._updateAndAddDisplayable(i,e,n),t.getTextGuideLine()),i=(i&&this._updateAndAddDisplayable(i,e,n),t.getTextContent());i&&this._updateAndAddDisplayable(i,e,n)}},Cn.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Cn.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=G(this._roots,t);0<=i&&this._roots.splice(i,1)}},Cn.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Cn.prototype.getRoots=function(){return this._roots},Cn.prototype.dispose=function(){this._displayList=null,this._roots=null};var Tn=Cn;function Cn(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=In}var Dn=w.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},kn={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(e=!n||n<1?(n=1,.1):.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*--t)*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)},bounceIn:function(t){return 1-kn.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*kn.bounceIn(2*t):.5*kn.bounceOut(2*t-1)+.5}},An=Math.pow,Ln=Math.sqrt,Pn=1e-8,On=Ln(3),Nn=1/3,Rn=Vt(),En=Vt(),zn=Vt();function Bn(t){return-Pn<t&&t<Pn}function Fn(t){return Pn<t||t<-Pn}function Vn(t,e,n,i,o){var r=1-o;return r*r*(r*t+3*o*e)+o*o*(o*i+3*r*n)}function Gn(t,e,n,i,o){var r=1-o;return 3*(((e-t)*r+2*(n-e)*o)*r+(i-n)*o*o)}function Hn(t,e,n,i,o,r){var a,s,i=i+3*(e-n)-t,n=3*(n-2*e+t),e=3*(e-t),t=t-o,o=n*n-3*i*e,l=n*e-9*i*t,t=e*e-3*n*t,u=0;return Bn(o)&&Bn(l)?Bn(n)?r[0]=0:0<=(a=-e/n)&&a<=1&&(r[u++]=a):Bn(e=l*l-4*o*t)?(s=-(t=l/o)/2,0<=(a=-n/i+t)&&a<=1&&(r[u++]=a),0<=s&&s<=1&&(r[u++]=s)):0<e?(e=o*n+1.5*i*(-l-(t=Ln(e))),0<=(a=(-n-((t=(t=o*n+1.5*i*(-l+t))<0?-An(-t,Nn):An(t,Nn))+(e=e<0?-An(-e,Nn):An(e,Nn))))/(3*i))&&a<=1&&(r[u++]=a)):(t=(2*o*n-3*i*l)/(2*Ln(o*o*o)),e=Math.acos(t)/3,a=(-n-2*(l=Ln(o))*(t=Math.cos(e)))/(3*i),s=(-n+l*(t+On*Math.sin(e)))/(3*i),o=(-n+l*(t-On*Math.sin(e)))/(3*i),0<=a&&a<=1&&(r[u++]=a),0<=s&&s<=1&&(r[u++]=s),0<=o&&o<=1&&(r[u++]=o)),u}function Wn(t,e,n,i,o){var r,a=6*n-12*e+6*t,i=9*e+3*i-3*t-9*n,n=3*e-3*t,e=0;return Bn(i)?Fn(a)&&0<=(r=-n/a)&&r<=1&&(o[e++]=r):Bn(t=a*a-4*i*n)?o[0]=-a/(2*i):0<t&&(t=(-a-(n=Ln(t)))/(2*i),0<=(r=(-a+n)/(2*i))&&r<=1&&(o[e++]=r),0<=t)&&t<=1&&(o[e++]=t),e}function Xn(t,e,n,i,o,r){var a=(e-t)*o+t,e=(n-e)*o+e,n=(i-n)*o+n,s=(e-a)*o+a,e=(n-e)*o+e,o=(e-s)*o+s;r[0]=t,r[1]=a,r[2]=s,r[3]=o,r[4]=o,r[5]=e,r[6]=n,r[7]=i}function Yn(t,e,n,i,o,r,a,s,l,u,h){var c,p,d,f,g=.005,y=1/0;Rn[0]=l,Rn[1]=u;for(var m=0;m<1;m+=.05)En[0]=Vn(t,n,o,a,m),En[1]=Vn(e,i,r,s,m),(d=te(Rn,En))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,En[0]=Vn(t,n,o,a,f=c-g),En[1]=Vn(e,i,r,s,f),d=te(En,Rn),0<=f&&d<y?(c=f,y=d):(zn[0]=Vn(t,n,o,a,p),zn[1]=Vn(e,i,r,s,p),f=te(zn,Rn),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=Vn(t,n,o,a,c),h[1]=Vn(e,i,r,s,c)),Ln(y)}function Un(t,e,n,i){var o=1-i;return o*(o*t+2*i*e)+i*i*n}function Zn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function qn(t,e,n){n=t+n-2*e;return 0==n?.5:(t-e)/n}function jn(t,e,n,i,o){var r=(e-t)*i+t,e=(n-e)*i+e,i=(e-r)*i+r;o[0]=t,o[1]=r,o[2]=i,o[3]=i,o[4]=e,o[5]=n}function Kn(t,e,n,i,o,r,a,s,l){var u,h=.005,c=1/0;Rn[0]=a,Rn[1]=s;for(var p=0;p<1;p+=.05)En[0]=Un(t,n,o,p),En[1]=Un(e,i,r,p),(y=te(Rn,En))<c&&(u=p,c=y);for(var c=1/0,d=0;d<32&&!(h<1e-4);d++){var f=u-h,g=u+h,y=(En[0]=Un(t,n,o,f),En[1]=Un(e,i,r,f),te(En,Rn));0<=f&&y<c?(u=f,c=y):(zn[0]=Un(t,n,o,g),zn[1]=Un(e,i,r,g),f=te(zn,Rn),g<=1&&f<c?(u=g,c=f):h*=.5)}return l&&(l[0]=Un(t,n,o,u),l[1]=Un(e,i,r,u)),Ln(c)}var $n=/cubic-bezier\(([0-9,\.e ]+)\)/;function Qn(t){t=t&&$n.exec(t);if(t){var e,t=t[1].split(","),n=+It(t[0]),i=+It(t[1]),o=+It(t[2]),r=+It(t[3]);if(!isNaN(n+i+o+r))return e=[],function(t){return t<=0?0:1<=t?1:Hn(0,n,o,1,t,e)&&Vn(0,i,r,1,e[0])}}}ti.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,o=i/n,r=(o<0&&(o=0),o=Math.min(o,1),this.easingFunc),r=r?r(o):o;if(this.onframe(r),1===o){if(!this.loop)return!0;this._startTime=t-i%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},ti.prototype.pause=function(){this._paused=!0},ti.prototype.resume=function(){this._paused=!1},ti.prototype.setEasing=function(t){this.easing=t,this.easingFunc=C(t)?t:kn[t]||Qn(t)};var Jn=ti;function ti(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||zt,this.ondestroy=t.ondestroy||zt,this.onrestart=t.onrestart||zt,t.easing&&this.setEasing(t.easing)}var ei=function(t){this.value=t},ni=(ii.prototype.insert=function(t){t=new ei(t);return this.insertEntry(t),t},ii.prototype.insertEntry=function(t){this.head?((this.tail.next=t).prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},ii.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--},ii.prototype.len=function(){return this._len},ii.prototype.clear=function(){this.head=this.tail=null,this._len=0},ii);function ii(){this._len=0}ri.prototype.put=function(t,e){var n,i,o=this._list,r=this._map,a=null;return null==r[t]&&(i=o.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0<i&&(i=o.head,o.remove(i),delete r[i.key],a=i.value,this._lastRemovedEntry=i),n?n.value=e:n=new ei(e),n.key=t,o.insertEntry(n),r[t]=n),a},ri.prototype.get=function(t){var t=this._map[t],e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},ri.prototype.clear=function(){this._list.clear(),this._map={}},ri.prototype.len=function(){return this._list.len()};var oi=ri;function ri(t){this._list=new ni,this._maxSize=10,this._map={},this._maxSize=t}var ai={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 si(t){return(t=Math.round(t))<0?0:255<t?255:t}function li(t){return t<0?0:1<t?1:t}function ui(t){return t.length&&"%"===t.charAt(t.length-1)?si(parseFloat(t)/100*255):si(parseInt(t,10))}function hi(t){return t.length&&"%"===t.charAt(t.length-1)?li(parseFloat(t)/100):li(parseFloat(t))}function ci(t,e,n){return n<0?n+=1:1<n&&--n,6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function pi(t,e,n){return t+(e-t)*n}function di(t,e,n,i,o){return t[0]=e,t[1]=n,t[2]=i,t[3]=o,t}function fi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var gi=new oi(20),yi=null;function mi(t,e){yi&&fi(yi,e),yi=gi.put(t,yi||e.slice())}function vi(t,e){if(t){e=e||[];var n=gi.get(t);if(n)return fi(e,n);n=(t+="").replace(/ /g,"").toLowerCase();if(n in ai)return fi(e,ai[n]),mi(t,e),e;var i=n.length;if("#"===n.charAt(0))return 4===i||5===i?0<=(o=parseInt(n.slice(1,4),16))&&o<=4095?(di(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===i?parseInt(n.slice(4),16)/15:1),mi(t,e),e):void di(e,0,0,0,1):7===i||9===i?0<=(o=parseInt(n.slice(1,7),16))&&o<=16777215?(di(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),mi(t,e),e):void di(e,0,0,0,1):void 0;var o=n.indexOf("("),r=n.indexOf(")");if(-1!==o&&r+1===i){var i=n.substr(0,o),a=n.substr(o+1,r-(o+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?di(e,+a[0],+a[1],+a[2],1):di(e,0,0,0,1);s=hi(a.pop());case"rgb":return 3<=a.length?(di(e,ui(a[0]),ui(a[1]),ui(a[2]),3===a.length?s:hi(a[3])),mi(t,e),e):void di(e,0,0,0,1);case"hsla":return 4!==a.length?void di(e,0,0,0,1):(a[3]=hi(a[3]),_i(a,e),mi(t,e),e);case"hsl":return 3!==a.length?void di(e,0,0,0,1):(_i(a,e),mi(t,e),e);default:return}}di(e,0,0,0,1)}}function _i(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=hi(t[1]),o=hi(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return di(e=e||[],si(255*ci(o,i,n+1/3)),si(255*ci(o,i,n)),si(255*ci(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function xi(t,e){var n=vi(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,255<n[i]?n[i]=255:n[i]<0&&(n[i]=0);return Ii(n,4===n.length?"rgba":"rgb")}}function bi(t,e,n){var i,o,r;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t=t*(e.length-1),i=Math.floor(t),r=Math.ceil(t),o=e[i],e=e[r],n[0]=si(pi(o[0],e[0],r=t-i)),n[1]=si(pi(o[1],e[1],r)),n[2]=si(pi(o[2],e[2],r)),n[3]=li(pi(o[3],e[3],r)),n}var wi=bi;function Si(t,e,n){var i,o,r,a;if(e&&e.length&&0<=t&&t<=1)return t=t*(e.length-1),i=Math.floor(t),o=Math.ceil(t),a=vi(e[i]),e=vi(e[o]),a=Ii([si(pi(a[0],e[0],r=t-i)),si(pi(a[1],e[1],r)),si(pi(a[2],e[2],r)),li(pi(a[3],e[3],r))],"rgba"),n?{color:a,leftIndex:i,rightIndex:o,value:t}:a}var e=Si;function Mi(t,e){t=vi(t);if(t&&null!=e)return t[3]=li(e),Ii(t,"rgba")}function Ii(t,e){var n;if(t&&t.length)return n=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}function Ti(t,e){t=vi(t);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Ci=new oi(100);function Di(t){var e;return X(t)?((e=Ci.get(t))||(e=xi(t,-.1),Ci.put(t,e)),e):yt(t)?((e=V({},t)).colorStops=B(t.colorStops,function(t){return{offset:t.offset,color:xi(t.color,-.1)}}),e):t}wi=Object.freeze({__proto__:null,fastLerp:bi,fastMapToColor:wi,lerp:Si,lift:xi,liftColor:Di,lum:Ti,mapToColor:e,modifyAlpha:Mi,modifyHSL:function(t,e,n,i){var o=vi(t);if(t)return o=function(t){var e,n,i,o,r,a,s,l,u,h;if(t)return h=t[0]/255,e=t[1]/255,n=t[2]/255,s=Math.min(h,e,n),o=((i=Math.max(h,e,n))+s)/2,0==(u=i-s)?a=r=0:(a=o<.5?u/(i+s):u/(2-i-s),s=((i-h)/6+u/2)/u,l=((i-e)/6+u/2)/u,u=((i-n)/6+u/2)/u,h===i?r=u-l:e===i?r=1/3+s-u:n===i&&(r=2/3+l-s),r<0&&(r+=1),1<r&&--r),h=[360*r,a,o],null!=t[3]&&h.push(t[3]),h}(o),null!=e&&(o[0]=(t=e,(t=Math.round(t))<0?0:360<t?360:t)),null!=n&&(o[1]=hi(n)),null!=i&&(o[2]=hi(i)),Ii(_i(o),"rgba")},parse:vi,random:function(){return Ii([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:Ii,toHex:function(t){if(t=vi(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}});w.hasGlobalWindow&&C(window.btoa);var ki=Array.prototype.slice;function Ai(t,e,n){return(e-t)*n+t}function Li(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=Ai(e[r],n[r],i);return t}function Pi(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=e[r]+n[r]*i;return t}function Oi(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Ni(t){if(lt(t)){var e=t.length;if(lt(t[0])){for(var n=[],i=0;i<e;i++)n.push(ki.call(t[i]));return n}return ki.call(t)}return t}function Ri(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function Ei(t){return 4===t||5===t}function zi(t){return 1===t||2===t}var Bi=[0,0,0,0],Fi=(Vi.prototype.isFinished=function(){return this._finished},Vi.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},Vi.prototype.needsAnimate=function(){return 1<=this.keyframes.length},Vi.prototype.getAdditiveTrack=function(){return this._additiveTrack},Vi.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i,o=this.keyframes,r=o.length,a=!1,s=6,l=e,u=(lt(e)?(1==(s=i=lt((i=e)&&i[0])?2:1)&&!Y(e[0])||2==i&&!Y(e[0][0]))&&(a=!0):Y(e)&&!_t(e)?s=0:X(e)?isNaN(+e)?(i=vi(e))&&(l=i,s=3):s=0:yt(e)&&((u=V({},l)).colorStops=B(e.colorStops,function(t){return{offset:t.offset,color:vi(t.color)}}),"linear"===e.type?s=4:"radial"===e.type&&(s=5),l=u),0===r?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:t,value:l,rawValue:e,percent:0});return n&&(u.easing=n,u.easingFunc=C(n)?n:kn[n]||Qn(n)),o.push(u),u},Vi.prototype.prepare=function(t,e){for(var n=this.keyframes,i=(this._needsSort&&n.sort(function(t,e){return t.time-e.time}),this.valType),o=n.length,r=n[o-1],a=this.discrete,s=zi(i),l=Ei(i),u=0;u<o;u++){var h=n[u],c=h.value,p=r.value;if(h.percent=h.time/t,!a)if(s&&u!==o-1){x=_=v=m=y=g=f=d=h=void 0;var d=p,f=i,g=h=c,y=d;if(g.push&&y.push){var h=g.length,m=y.length;if(h!==m)if(m<h)g.length=m;else for(var v=h;v<m;v++)g.push(1===f?y[v]:ki.call(y[v]));for(var _=g[0]&&g[0].length,v=0;v<g.length;v++)if(1===f)isNaN(g[v])&&(g[v]=y[v]);else for(var x=0;x<_;x++)isNaN(g[v][x])&&(g[v][x]=y[v][x])}}else if(l){I=M=S=w=b=h=d=void 0;for(var d=c.colorStops,h=p.colorStops,b=d.length,w=h.length,S=w<b?h:d,h=Math.min(b,w),M=S[h-1]||{color:[0,0,0,0],offset:0},I=h;I<Math.max(b,w);I++)S.push({offset:M.offset,color:M.color.slice()})}}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var T=n[0].value,u=0;u<o;u++)0===i?n[u].additiveValue=n[u].value-T:3===i?n[u].additiveValue=Pi([],n[u].value,T,-1):zi(i)&&(n[u].additiveValue=(1===i?Pi:Oi)([],n[u].value,T,-1))}},Vi.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,o,r,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,h=u.length,c=this.propName,p=3===l,d=this._lastFr,f=Math.min;if(1===h)n=i=u[0];else{if(e<0)g=0;else if(e<this._lastFrP){for(var g=f(d+1,h-1);0<=g&&!(u[g].percent<=e);g--);g=f(g,h-2)}else{for(g=d;g<h&&!(u[g].percent>e);g++);g=f(g-1,h-2)}i=u[g+1],n=u[g]}n&&i&&(this._lastFr=g,this._lastFrP=e,d=i.percent-n.percent,o=0==d?1:f((e-n.percent)/d,1),i.easingFunc&&(o=i.easingFunc(o)),f=a?this._additiveValue:p?Bi:t[c],(zi(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(o<1?n:i).rawValue:zi(l)?(1===l?Li:function(t,e,n,i){for(var o=e.length,r=o&&e[0].length,a=0;a<o;a++){t[a]||(t[a]=[]);for(var s=0;s<r;s++)t[a][s]=Ai(e[a][s],n[a][s],i)}})(f,n[s],i[s],o):Ei(l)?(d=n[s],r=i[s],t[c]={type:(l=4===l)?"linear":"radial",x:Ai(d.x,r.x,o),y:Ai(d.y,r.y,o),colorStops:B(d.colorStops,function(t,e){e=r.colorStops[e];return{offset:Ai(t.offset,e.offset,o),color:Ri(Li([],t.color,e.color,o))}}),global:r.global},l?(t[c].x2=Ai(d.x2,r.x2,o),t[c].y2=Ai(d.y2,r.y2,o)):t[c].r=Ai(d.r,r.r,o)):p?(Li(f,n[s],i[s],o),a||(t[c]=Ri(f))):(l=Ai(n[s],i[s],o),a?this._additiveValue=l:t[c]=l),a)&&this._addToTarget(t)}},Vi.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(vi(t[n],Bi),Pi(Bi,Bi,i,1),t[n]=Ri(Bi)):1===e?Pi(t[n],t[n],i,1):2===e&&Oi(t[n],t[n],i,1)},Vi);function Vi(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}Hi.prototype.getMaxTime=function(){return this._maxTime},Hi.prototype.getDelay=function(){return this._delay},Hi.prototype.getLoop=function(){return this._loop},Hi.prototype.getTarget=function(){return this._target},Hi.prototype.changeTarget=function(t){this._target=t},Hi.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,W(e),n)},Hi.prototype.whenWithKeys=function(t,e,n,i){for(var o=this._tracks,r=0;r<n.length;r++){var a=n[r];if(!(l=o[a])){var s,l=o[a]=new Fi(a),u=void 0,h=this._getAdditiveTrack(a);if(h?(u=(s=(s=h.keyframes)[s.length-1])&&s.value,3===h.valType&&(u=u&&Ri(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,Ni(u),i),this._trackKeys.push(a)}l.addKeyframe(t,Ni(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},Hi.prototype.pause=function(){this._clip.pause(),this._paused=!0},Hi.prototype.resume=function(){this._clip.resume(),this._paused=!1},Hi.prototype.isPaused=function(){return!!this._paused},Hi.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},Hi.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)},Hi.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)},Hi.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},Hi.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var o=n[i].getTrack(t);o&&(e=o)}return e},Hi.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,r=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],o=this._getAdditiveTrack(o),l=s.keyframes,u=l.length;s.prepare(n,o),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((o=l[u-1])&&(r._target[s.propName]=o.rawValue),s.setFinished()):a.push(s))}return a.length||this._force?(e=new Jn({life:n,loop:this._loop,delay:this._delay||0,onframe:function(t){r._started=2;var e=r._additiveAnimators;if(e){for(var n=!1,i=0;i<e.length;i++)if(e[i]._clip){n=!0;break}n||(r._additiveAnimators=null)}for(i=0;i<a.length;i++)a[i].step(r._target,t);var o=r._onframeCbs;if(o)for(i=0;i<o.length;i++)o[i](r._target,t)},ondestroy:function(){r._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},Hi.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},Hi.prototype.delay=function(t){return this._delay=t,this},Hi.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},Hi.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},Hi.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},Hi.prototype.getClip=function(){return this._clip},Hi.prototype.getTrack=function(t){return this._tracks[t]},Hi.prototype.getTracks=function(){var e=this;return B(this._trackKeys,function(t){return e._tracks[t]})},Hi.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var r=n[t[o]];r&&!r.isFinished()&&(e?r.step(this._target,1):1===this._started&&r.step(this._target,0),r.setFinished())}for(var a=!0,o=0;o<i.length;o++)if(!n[i[o]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},Hi.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var o=e[i],r=this._tracks[o];r&&!r.isFinished()&&(r=(r=r.keyframes)[n?0:r.length-1])&&(t[o]=Ni(r.rawValue))}}},Hi.prototype.__changeFinalValue=function(t,e){e=e||W(t);for(var n=0;n<e.length;n++){var i,o=e[n],r=this._tracks[o];r&&1<(i=r.keyframes).length&&(i=i.pop(),r.addKeyframe(i.time,t[o]),r.prepare(this._maxTime,r.getAdditiveTrack()))}};var Gi=Hi;function Hi(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&i?it("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}function Wi(){return(new Date).getTime()}u(Ui,Xi=ue),Ui.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?((this._tail.next=t).prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},Ui.prototype.addAnimator=function(t){t.animation=this;t=t.getClip();t&&this.addClip(t)},Ui.prototype.removeClip=function(t){var e,n;t.animation&&(e=t.prev,n=t.next,e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null)},Ui.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},Ui.prototype.update=function(t){for(var e=Wi()-this._pausedTime,n=e-this._time,i=this._head;i;)var o=i.next,i=(i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),o);this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},Ui.prototype._startLoop=function(){var e=this;this._running=!0,Dn(function t(){e._running&&(Dn(t),e._paused||e.update())})},Ui.prototype.start=function(){this._running||(this._time=Wi(),this._pausedTime=0,this._startLoop())},Ui.prototype.stop=function(){this._running=!1},Ui.prototype.pause=function(){this._paused||(this._pauseStart=Wi(),this._paused=!0)},Ui.prototype.resume=function(){this._paused&&(this._pausedTime+=Wi()-this._pauseStart,this._paused=!1)},Ui.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},Ui.prototype.isFinished=function(){return null==this._head},Ui.prototype.animate=function(t,e){e=e||{},this.start();t=new Gi(t,e.loop);return this.addAnimator(t),t};var Xi,Yi=Ui;function Ui(t){var e=Xi.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e}var Zi,qi=w.domSupported,ji=(Zi={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:B(e,function(t){var e=t.replace("mouse","pointer");return Zi.hasOwnProperty(e)?e:t})}),Ki=["mousemove","mouseup"],$i=["pointermove","pointerup"],Qi=!1;function Ji(t){t=t.pointerType;return"pen"===t||"touch"===t}function to(t){t&&(t.zrByTouch=!0)}function eo(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var no=function(t,e){this.stopPropagation=zt,this.stopImmediatePropagation=zt,this.preventDefault=zt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},io={mousedown:function(t){t=Ce(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Ce(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Ce(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){eo(this,(t=Ce(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Qi=!0,t=Ce(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Qi||(t=Ce(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){to(t=Ce(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),io.mousemove.call(this,t),io.mousedown.call(this,t)},touchmove:function(t){to(t=Ce(this.dom,t)),this.handler.processGesture(t,"change"),io.mousemove.call(this,t)},touchend:function(t){to(t=Ce(this.dom,t)),this.handler.processGesture(t,"end"),io.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&io.click.call(this,t)},pointerdown:function(t){io.mousedown.call(this,t)},pointermove:function(t){Ji(t)||io.mousemove.call(this,t)},pointerup:function(t){io.mouseup.call(this,t)},pointerout:function(t){Ji(t)||io.mouseout.call(this,t)}},oo=(H(["click","dblclick","contextmenu"],function(e){io[e]=function(t){t=Ce(this.dom,t),this.trigger(e,t)}}),{pointermove:function(t){Ji(t)||oo.mousemove.call(this,t)},pointerup:function(t){oo.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}});function ro(i,o){var r=o.domHandlers;w.pointerEventsSupported?H(ji.pointer,function(e){so(o,e,function(t){r[e].call(i,t)})}):(w.touchEventsSupported&&H(ji.touch,function(n){so(o,n,function(t){var e;r[n].call(i,t),(e=o).touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)})}),H(ji.mouse,function(e){so(o,e,function(t){t=Te(t),o.touching||r[e].call(i,t)})}))}function ao(i,o){function t(n){so(o,n,function(t){var e;t=Te(t),eo(i,t.target)||(e=t,t=Ce(i.dom,new no(i,e),!0),o.domHandlers[n].call(i,t))},{capture:!0})}w.pointerEventsSupported?H($i,t):w.touchEventsSupported||H(Ki,t)}function so(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,t.domTarget.addEventListener(e,n,i)}function lo(t){var e,n,i,o,r,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,o=a[i=e],r=t.listenerOpts[e],n.removeEventListener(i,o,r));t.mounted={}}var uo,ho=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},co=(u(po,uo=ue),po.prototype.dispose=function(){lo(this._localHandlerScope),qi&&lo(this._globalHandlerScope)},po.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},po.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,qi&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?ao(this,e):lo(e))},po);function po(t,e){var n=uo.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new ho(t,io),qi&&(n._globalHandlerScope=new ho(document,oo)),ro(n,n._localHandlerScope),n}var e=1,fo=e=w.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):e,go="#333",yo="#ccc",mo=Re;function vo(t){return 5e-5<t||t<-5e-5}var _o=[],xo=[],bo=Ne(),wo=Math.abs,So=(Mo.prototype.getLocalTransform=function(t){return Mo.getLocalTransform(this,t)},Mo.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},Mo.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},Mo.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},Mo.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},Mo.prototype.needLocalTransform=function(){return vo(this.rotation)||vo(this.x)||vo(this.y)||vo(this.scaleX-1)||vo(this.scaleY-1)||vo(this.skewX)||vo(this.skewY)},Mo.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||Ne(),e?this.getLocalTransform(n):mo(n),t&&(e?ze(n,t,n):Ee(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(mo(n),this.invTransform=null)},Mo.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(_o),n=((_o[1]-(n=_o[1]<0?-1:1))*i+n)/_o[1]||0,t[0]*=i=((_o[0]-(e=_o[0]<0?-1:1))*i+e)/_o[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||Ne(),Ge(this.invTransform,t)},Mo.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},Mo.prototype.setLocalTransform=function(t){var e,n,i,o;t&&(o=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),n=Math.PI/2+e-Math.atan2(t[3],t[2]),i=Math.sqrt(i)*Math.cos(n),o=Math.sqrt(o),this.skewX=n,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=o,this.scaleY=i,this.originX=0,this.originY=0)},Mo.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(e.invTransform=e.invTransform||Ne(),ze(xo,e.invTransform,t),t=xo),e=this.originX,n=this.originY,(e||n)&&(bo[4]=e,bo[5]=n,ze(xo,t,bo),xo[4]-=e,xo[5]-=n,t=xo),this.setLocalTransform(t))},Mo.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[0]=1,t[1]=1),t},Mo.prototype.transformCoordToLocal=function(t,e){t=[t,e],e=this.invTransform;return e&&ne(t,t,e),t},Mo.prototype.transformCoordToGlobal=function(t,e){t=[t,e],e=this.transform;return e&&ne(t,t,e),t},Mo.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<wo(t[0]-1)&&1e-10<wo(t[3]-1)?Math.sqrt(wo(t[0]*t[3]-t[2]*t[1])):1},Mo.prototype.copyTransform=function(t){for(var e=this,n=t,i=0;i<Io.length;i++){var o=Io[i];e[o]=n[o]}},Mo.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,o=t.scaleX,r=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,t=t.skewY?Math.tan(-t.skewY):0;return n||i||a||s?(e[4]=-(a=n+a)*o-c*(s=i+s)*r,e[5]=-s*r-t*a*o):e[4]=e[5]=0,e[0]=o,e[3]=r,e[1]=t*o,e[2]=c*r,l&&Fe(e,e,l),e[4]+=n+u,e[5]+=i+h,e},Mo.initDefaultProps=((e=Mo.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),Mo);function Mo(){}var Io=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];var To={};function Co(t,e){var n=To[e=e||K],i=(n=n||(To[e]=new oi(500))).get(t);return null==i&&(i=$.measureText(t,e).width,n.put(t,i)),i}function Do(t,e,n,i){t=Co(t,e),e=Po(e),n=Ao(0,t,n),i=Lo(0,e,i);return new Z(n,i,t,e)}function ko(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return Do(o[0],e,n,i);for(var r=new Z(0,0,0,0),a=0;a<o.length;a++){var s=Do(o[a],e,n,i);0===a?r.copy(s):r.union(s)}return r}function Ao(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Lo(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Po(t){return Co("国",t)}function Oo(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function No(t,e,n){var i=e.position||"inside",o=null!=e.distance?e.distance:5,r=n.height,a=n.width,s=r/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=Oo(i[0],n.width),u+=Oo(i[1],n.height),c=h=null;else switch(i){case"left":l-=o,u+=s,h="right",c="middle";break;case"right":l+=o+a,u+=s,c="middle";break;case"top":l+=a/2,u-=o,h="center",c="bottom";break;case"bottom":l+=a/2,u+=r+o,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=o,u+=s,c="middle";break;case"insideRight":l+=a-o,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=o,h="center";break;case"insideBottom":l+=a/2,u+=r-o,h="center",c="bottom";break;case"insideTopLeft":l+=o,u+=o;break;case"insideTopRight":l+=a-o,u+=o,h="right";break;case"insideBottomLeft":l+=o,u+=r-o,c="bottom";break;case"insideBottomRight":l+=a-o,u+=r-o,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var Ro,Eo="__zr_normal__",zo=Io.concat(["ignore"]),Bo=ut(Io,function(t,e){return t[e]=!0,t},{ignore:!1}),Fo={},Vo=new Z(0,0,0,0),e=(n.prototype._init=function(t){this.attr(t)},n.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;(i=i||(this.transform=[1,0,0,1,0,0]))[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(t){var e,n,i,o,r,a,s,l,u,h,c=this._textContent;!c||c.ignore&&!t||(this.textConfig||(this.textConfig={}),l=(t=this.textConfig).local,i=n=void 0,o=!1,(e=c.innerTransformable).parent=l?this:null,h=!1,e.copyTransform(c),null!=t.position&&(u=Vo,t.layoutRect?u.copy(t.layoutRect):u.copy(this.getBoundingRect()),l||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Fo,t,u):No(Fo,t,u),e.x=Fo.x,e.y=Fo.y,n=Fo.align,i=Fo.verticalAlign,r=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===r?(a=.5*u.width,.5*u.height):(a=Oo(r[0],u.width),Oo(r[1],u.height)),h=!0,e.originX=-e.x+a+(l?0:u.x),e.originY=-e.y+s+(l?0:u.y)),null!=t.rotation&&(e.rotation=t.rotation),(r=t.offset)&&(e.x+=r[0],e.y+=r[1],h||(e.originX=-r[0],e.originY=-r[1])),a=null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),h=u=l=void 0,a&&this.canBeInsideText()?(l=t.insideFill,u=t.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=u&&"auto"!==u||(u=this.getInsideTextStroke(l),h=!0)):(l=t.outsideFill,u=t.outsideStroke,null!=l&&"auto"!==l||(l=this.getOutsideFill()),null!=u&&"auto"!==u||(u=this.getOutsideStroke(l),h=!0)),(l=l||"#000")===s.fill&&u===s.stroke&&h===s.autoStroke&&n===s.align&&i===s.verticalAlign||(o=!0,s.fill=l,s.stroke=u,s.autoStroke=h,s.align=n,s.verticalAlign=i,c.setDefaultTextStyle(s)),c.__dirty|=bn,o&&c.dirtyStyle(!0))},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(t){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?yo:go},n.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&vi(e),i=(n=n||[255,255,255,1])[3],o=this.__zr.isDarkMode(),r=0;r<3;r++)n[r]=n[r]*i+(o?0:255)*(1-i);return n[3]=1,Ii(n,"rgba")},n.prototype.traverse=function(t,e){},n.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},V(this.extra,e)):this[t]=e},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(P(t))for(var n=W(t),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,t[o])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],o=i.__fromStateTransition;i.getLoop()||o&&o!==Eo||(o=(o=i.targetName)?e[o]:e,i.saveTo(o))}},n.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,zo)},n.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null==t[o]||o in e||(e[o]=this[o])}},n.prototype.hasState=function(){return 0<this.currentStates.length},n.prototype.getState=function(t){return this.states[t]},n.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},n.prototype.clearStates=function(t){this.useState(Eo,!1,t)},n.prototype.useState=function(t,e,n,i){var o=t===Eo,r=this.hasState();if(r||!o){var a,r=this.currentStates,s=this.stateTransition;if(!(0<=G(r,t))||!e&&1!==r.length){if((a=(a=this.stateProxy&&!o?this.stateProxy(t):a)||this.states&&this.states[t])||o)return o||this.saveCurrentToNormalState(a),(r=!!(a&&a.hoverLayer||i))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,a,this._normalState,e,!n&&!this.__inHover&&s&&0<s.duration,s),i=this._textContent,s=this._textGuide,i&&i.useState(t,e,n,r),s&&s.useState(t,e,n,r),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!r&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~bn),a;it("State "+t+" not exists.")}}},n.prototype.useStates=function(t,e,n){if(t.length){var i=[],o=this.currentStates,r=t.length,a=r===o.length;if(a)for(var s=0;s<r;s++)if(t[s]!==o[s]){a=!1;break}if(!a){for(s=0;s<r;s++){var l=t[s],u=void 0;(u=(u=this.stateProxy?this.stateProxy(l,t):u)||this.states[l])&&i.push(u)}var h=i[r-1],h=!!(h&&h.hoverLayer||n),n=(h&&this._toggleHoverLayerFlag(!0),this._mergeStates(i)),c=this.stateTransition,n=(this.saveCurrentToNormalState(n),this._applyStateObj(t.join(","),n,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent),c=this._textGuide;n&&n.useStates(t,e,h),c&&c.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~bn)}}else this.clearStates()},n.prototype.isSilent=function(){for(var t=this.silent,e=this.parent;!t&&e;){if(e.silent){t=!0;break}e=e.parent}return t},n.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},n.prototype.removeState=function(t){var e,t=G(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},n.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),t=G(i,t),o=0<=G(i,e);0<=t?o?i.splice(t,1):i[t]=e:n&&!o&&i.push(e),this.useStates(i)},n.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},n.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var o=t[i];V(n,o),o.textConfig&&V(e=e||{},o.textConfig)}return e&&(n.textConfig=e),n},n.prototype._applyStateObj=function(t,e,n,i,o,r){for(var a=!(e&&i),s=(e&&e.textConfig?(this.textConfig=V({},(i?this:n).textConfig),V(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig),{}),l=!1,u=0;u<zo.length;u++){var h=zo[u],c=o&&Bo[h];e&&null!=e[h]?c?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(c?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!o)for(u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,r)},n.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},n.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},n.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new So,this._attachComponent(t),this._textContent=t,this.markRedraw())},n.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),V(this.textConfig,t),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=bn;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},n.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)}},n.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)}},n.prototype.animate=function(t,e,n){var i=t?this[t]:this,i=new Gi(i,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},n.prototype.addAnimator=function(n,t){var e=this.__zr,i=this;n.during(function(){i.updateDuringAnimation(t)}).done(function(){var t=i.animators,e=G(t,n);0<=e&&t.splice(e,1)}),this.animators.push(n),e&&e.animation.addAnimator(n),e&&e.wakeUp()},n.prototype.updateDuringAnimation=function(t){this.markRedraw()},n.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,o=[],r=0;r<i;r++){var a=n[r];t&&t!==a.scope?o.push(a):a.stop(e)}return this.animators=o,this},n.prototype.animateTo=function(t,e,n){Ho(this,t,e,n)},n.prototype.animateFrom=function(t,e,n){Ho(this,t,e,n,!0)},n.prototype._transitionState=function(t,e,n,i){for(var o=Ho(this,e,n,i),r=0;r<o.length;r++)o[r].__fromStateTransition=t},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=((Ro=n.prototype).type="element",Ro.name="",Ro.ignore=Ro.silent=Ro.isGroup=Ro.draggable=Ro.dragging=Ro.ignoreClip=Ro.__inHover=!1,Ro.__dirty=bn,void(Object.defineProperty&&(Go("position","_legacyPos","x","y"),Go("scale","_legacyScale","scaleX","scaleY"),Go("origin","_legacyOrigin","originX","originY")))),n);function n(t){this.id=et++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function Go(t,e,n,i){function o(e,t){Object.defineProperty(t,0,{get:function(){return e[n]},set:function(t){e[n]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(Ro,t,{get:function(){var t;return this[e]||(t=this[e]=[],o(this,t)),this[e]},set:function(t){this[n]=t[0],this[i]=t[1],this[e]=t,o(this,t)}})}function Ho(t,e,n,i,o){function r(){u=!0,--l<=0&&(u?h&&h():c&&c())}function a(){--l<=0&&(u?h&&h():c&&c())}var s=[],l=(!function t(e,n,i,o,r,a,s,l){var u=W(o);var h=r.duration;var c=r.delay;var p=r.additive;var d=r.setToFinal;var f=!P(a);var g=e.animators;var y=[];for(var m=0;m<u.length;m++){var v=u[m],_=o[v];null!=_&&null!=i[v]&&(f||a[v])?!P(_)||lt(_)||yt(_)?y.push(v):n?l||(i[v]=_,e.updateDuringAnimation(n)):t(e,v,i[v],_,r,a&&a[v],s,l):l||(i[v]=_,e.updateDuringAnimation(n),y.push(v))}var x=y.length;if(!p&&x)for(var b,w=0;w<g.length;w++)(S=g[w]).targetName===n&&S.stopTracks(y)&&(b=G(g,S),g.splice(b,1));r.force||(y=ht(y,function(t){return!Yo(o[t],i[t])}),x=y.length);if(0<x||r.force&&!s.length){var S,M=void 0,I=void 0,T=void 0;if(l){I={},d&&(M={});for(w=0;w<x;w++){v=y[w];I[v]=i[v],d?M[v]=o[v]:i[v]=o[v]}}else if(d){T={};for(w=0;w<x;w++){v=y[w];T[v]=Ni(i[v]),Xo(i,o,v)}}(S=new Gi(i,!1,!1,p?ht(g,function(t){return t.targetName===n}):null)).targetName=n,r.scope&&(S.scope=r.scope),d&&M&&S.whenWithKeys(0,M,y),T&&S.whenWithKeys(0,T,y),S.whenWithKeys(null==h?500:h,l?I:o,y).delay(c||0),e.addAnimator(S,n),s.push(S)}}(t,"",t,e,n=n||{},i,s,o),s.length),u=!1,h=n.done,c=n.aborted;l||h&&h(),0<s.length&&n.during&&s[0].during(function(t,e){n.during(e)});for(var p=0;p<s.length;p++){var d=s[p];d.done(r),d.aborted(a),n.force&&d.duration(n.duration),d.start(n.easing)}return s}function Wo(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Xo(t,e,n){if(lt(e[n]))if(lt(t[n])||(t[n]=[]),ft(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),Wo(t[n],e[n],i))}else{var o=e[n],r=t[n],a=o.length;if(lt(o[0]))for(var s=o[0].length,l=0;l<a;l++)r[l]?Wo(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else Wo(r,o,a);r.length=o.length}else t[n]=e[n]}function Yo(t,e){return t===e||lt(t)&&lt(e)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(t,e)}st(e,ue),st(e,So);u(qo,Uo=e),qo.prototype.childrenRef=function(){return this._children},qo.prototype.children=function(){return this._children.slice()},qo.prototype.childAt=function(t){return this._children[t]},qo.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},qo.prototype.childCount=function(){return this._children.length},qo.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},qo.prototype.addBefore=function(t,e){var n;return t&&t!==this&&t.parent!==this&&e&&e.parent===this&&0<=(e=(n=this._children).indexOf(e))&&(n.splice(e,0,t),this._doAdd(t)),this},qo.prototype.replace=function(t,e){t=G(this._children,t);return 0<=t&&this.replaceAt(e,t),this},qo.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];return t&&t!==this&&t.parent!==this&&t!==i&&(n[e]=t,i.parent=null,(n=this.__zr)&&i.removeSelfFromZr(n),this._doAdd(t)),this},qo.prototype._doAdd=function(t){t.parent&&t.parent.remove(t);var e=(t.parent=this).__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},qo.prototype.remove=function(t){var e=this.__zr,n=this._children,i=G(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},qo.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n<t.length;n++){var i=t[n];e&&i.removeSelfFromZr(e),i.parent=null}return t.length=0,this},qo.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var o=n[i];t.call(e,o,i)}return this},qo.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],o=t.call(e,i);i.isGroup&&!o&&i.traverse(t,e)}return this},qo.prototype.addSelfToZr=function(t){Uo.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},qo.prototype.removeSelfFromZr=function(t){Uo.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},qo.prototype.getBoundingRect=function(t){for(var e=new Z(0,0,0,0),n=t||this._children,i=[],o=null,r=0;r<n.length;r++){var a,s=n[r];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(i))?(Z.applyTransform(e,a,s),(o=o||e.clone()).union(e)):(o=o||a.clone()).union(a))}return o||e};var Uo,Zo=qo;function qo(t){var e=Uo.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}Zo.prototype.type="group";var jo={},Ko={};Jo.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},Jo.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},Jo.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},Jo.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return Ti(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,o=0;o<i;o++)n+=Ti(e[o].color,1);return(n/=i)<.4}}return!1}(t))},Jo.prototype.getBackgroundColor=function(){return this._backgroundColor},Jo.prototype.setDarkMode=function(t){this._darkMode=t},Jo.prototype.isDarkMode=function(){return this._darkMode},Jo.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},Jo.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},Jo.prototype.flush=function(){this._disposed||this._flush(!1)},Jo.prototype._flush=function(t){var e,n=Wi(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),Wi());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)&&this.animation.stop()},Jo.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},Jo.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},Jo.prototype.refreshHover=function(){this._needsRefreshHover=!0},Jo.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},Jo.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},Jo.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},Jo.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},Jo.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},Jo.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},Jo.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},Jo.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},Jo.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},Jo.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},Jo.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Zo&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},Jo.prototype.dispose=function(){var t;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,t=this.id,delete Ko[t])};var $o,Qo=Jo;function Jo(t,e,n){var i,o=this,r=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new Tn),a=n.renderer||"canvas",a=(jo[a]||(a=W(jo)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new jo[a](e,r,n,t)),e=n.ssr||a.ssrOnly,t=(this.storage=r,this.painter=a,w.node||w.worker||e?null:new co(a.getViewportRoot(),a.root)),s=n.useCoarsePointer;(null==s||"auto"===s?w.touchEventsSupported:!!s)&&(i=O(n.pointerSize,44)),this.handler=new un(r,a,t,a.root,i),this.animation=new Yi({stage:{update:e?null:function(){return o._flush(!0)}}}),e||this.animation.start()}function tr(t,e){t=new Qo(et++,t,e);return Ko[t.id]=t}function er(t,e){jo[t]=e}function nr(t){$o=t}var ir=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in Ko)Ko.hasOwnProperty(t)&&Ko[t].dispose();Ko={}},getElementSSRData:function(t){if("function"==typeof $o)return $o(t)},getInstance:function(t){return Ko[t]},init:tr,registerPainter:er,registerSSRDataGetter:nr,version:"5.5.0"}),or=20;function rr(t,e,n,i){var o=e[0],e=e[1],r=n[0],n=n[1],a=e-o,s=n-r;if(0==a)return 0==s?r:(r+n)/2;if(i)if(0<a){if(t<=o)return r;if(e<=t)return n}else{if(o<=t)return r;if(t<=e)return n}else{if(t===o)return r;if(t===e)return n}return(t-o)/a*s+r}function q(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return X(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function ar(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),or),t=(+t).toFixed(e),n?t:+t}function sr(t){return t.sort(function(t,e){return t-e}),t}function lr(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return ur(t)}function ur(t){var t=t.toString().toLowerCase(),e=t.indexOf("e"),n=0<e?+t.slice(e+1):0,e=0<e?e:t.length,t=t.indexOf(".");return Math.max(0,(t<0?0:e-1-t)-n)}function hr(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(Math.abs(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}function cr(t,e){var n=ut(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),e=B(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,r=B(e,function(t){return Math.floor(t)}),a=ut(r,function(t,e){return t+e},0),s=B(e,function(t,e){return t-r[e]});a<o;){for(var l=Number.NEGATIVE_INFINITY,u=null,h=0,c=s.length;h<c;++h)s[h]>l&&(l=s[h],u=h);++r[u],s[u]=0,++a}return B(r,function(t){return t/i})}function pr(t){var e=2*Math.PI;return(t%e+e)%e}function dr(t){return-1e-4<t&&t<1e-4}var fr=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function gr(t){var e,n;return t instanceof Date?t:X(t)?(e=fr.exec(t))?e[8]?(n=+e[4]||0,"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))):new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t))}function yr(t){return Math.pow(10,mr(t))}function mr(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function vr(t,e){var n=mr(t),i=Math.pow(10,n),o=t/i,e=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10;return t=e*i,-20<=n?+t.toFixed(n<0?-n:0):t}function _r(t){var e=parseFloat(t);return e==t&&(0!==e||!X(t)||t.indexOf("x")<=0)?e:NaN}function xr(t){return!isNaN(_r(t))}function br(){return Math.round(9*Math.random())}function wr(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function f(t){throw new Error(t)}function Sr(t,e,n){return(e-t)*n+t}var Mr="series\0";function Ir(t){return t instanceof Array?t:null==t?[]:[t]}function Tr(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,o=n.length;i<o;i++){var r=n[i];!t.emphasis[e].hasOwnProperty(r)&&t[e].hasOwnProperty(r)&&(t.emphasis[e][r]=t[e][r])}}}var Cr=["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 Dr(t){return!P(t)||F(t)||t instanceof Date?t:t.value}function kr(t,n,e){var r,a,s,l,o,u,i,h,c,p,d="normalMerge"===e,f="replaceMerge"===e,g="replaceAll"===e,y=(t=t||[],n=(n||[]).slice(),N()),e=(H(n,function(t,e){P(t)||(n[e]=null)}),function(t,e,n){var i=[];if("replaceAll"!==n)for(var o=0;o<t.length;o++){var r=t[o];r&&null!=r.id&&e.set(r.id,o),i.push({existing:"replaceMerge"===n||Nr(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}(t,y,e));return(d||f)&&(r=e,a=t,s=y,H(l=n,function(t,e){var n,i,o;t&&null!=t.id&&(n=Lr(t.id),null!=(i=s.get(n)))&&(Mt(!(o=r[i]).newOption,'Duplicated option on id "'+n+'".'),o.newOption=t,o.existing=a[i],l[e]=null)})),d&&(o=e,H(u=n,function(t,e){if(t&&null!=t.name)for(var n=0;n<o.length;n++){var i=o[n].existing;if(!o[n].newOption&&i&&(null==i.id||null==t.id)&&!Nr(t)&&!Nr(i)&&Ar("name",i,t))return o[n].newOption=t,void(u[e]=null)}})),d||f?(h=e,c=f,H(n,function(t){if(t){for(var e,n=0;(e=h[n])&&(e.newOption||Nr(e.existing)||e.existing&&null!=t.id&&!Ar("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=c):h.push({newOption:t,brandNew:c,existing:null,keyInfo:null}),n++}})):g&&(i=e,H(n,function(t){i.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=e,p=N(),H(t,function(t){var e=t.existing;e&&p.set(e.id,t)}),H(t,function(t){var e=t.newOption;Mt(!e||null==e.id||!p.get(e.id)||p.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&p.set(e.id,t),t.keyInfo||(t.keyInfo={})}),H(t,function(t,e){var n=t.existing,i=t.newOption,o=t.keyInfo;if(P(i)){if(o.name=null!=i.name?Lr(i.name):n?n.name:Mr+e,n)o.id=Lr(n.id);else if(null!=i.id)o.id=Lr(i.id);else for(var r=0;o.id="\0"+o.name+"\0"+r++,p.get(o.id););p.set(o.id,t)}}),e}function Ar(t,e,n){e=Pr(e[t],null),n=Pr(n[t],null);return null!=e&&null!=n&&e===n}function Lr(t){return Pr(t,"")}function Pr(t,e){return null==t?e:X(t)?t:Y(t)||pt(t)?t+"":e}function Or(t){t=t.name;return!(!t||!t.indexOf(Mr))}function Nr(t){return t&&null!=t.id&&0===Lr(t.id).indexOf("\0_ec_\0")}function Rr(t,o,r){H(t,function(t){var e,n,i=t.newOption;P(i)&&(t.keyInfo.mainType=o,t.keyInfo.subType=(e=o,i=i,t=t.existing,n=r,i.type||(t?t.subType:n.determineSubType(e,i))))})}function Er(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?F(t.dataIndex)?B(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?F(t.name)?B(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function zr(){var e="__ec_inner_"+Br++;return function(t){return t[e]||(t[e]={})}}var Br=br();function Fr(n,t,i){var t=Vr(t,i),e=t.mainTypeSpecified,o=t.queryOptionMap,r=t.others,a=i?i.defaultMainType:null;return!e&&a&&o.set(a,{}),o.each(function(t,e){t=Hr(n,e,t,{useDefault:a===e,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});r[e+"Models"]=t.models,r[e+"Model"]=t.models[0]}),r}function Vr(t,i){var e=X(t)?((e={})[t+"Index"]=0,e):t,o=N(),r={},a=!1;return H(e,function(t,e){var n;"dataIndex"===e||"dataIndexInside"===e?r[e]=t:(n=(e=e.match(/^(\w+)(Index|Id|Name)$/)||[])[1],e=(e[2]||"").toLowerCase(),!n||!e||i&&i.includeMainTypes&&G(i.includeMainTypes,n)<0||(a=a||!!n,(o.get(n)||o.set(n,{}))[e]=t))}),{mainTypeSpecified:a,queryOptionMap:o,others:r}}var Gr={useDefault:!0,enableAll:!1,enableNone:!1};function Hr(t,e,n,i){i=i||Gr;var o=n.index,r=n.id,n=n.name,a={models:null,specified:null!=o||null!=r||null!=n};return a.specified?"none"===o||!1===o?(Mt(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===o&&(Mt(i.enableAll,'`"all"` is not a valid value on index option.'),o=r=n=null),a.models=t.queryComponents({mainType:e,index:o,id:r,name:n})):(o=void 0,a.models=i.useDefault&&(o=t.getComponent(e))?[o]:[]),a}function Wr(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function Xr(t,e,n,i,o){var r=null==e||"auto"===e;if(null==i)return i;if(Y(i))return ar(p=Sr(n||0,i,o),r?Math.max(lr(n||0),lr(i)):e);if(X(i))return o<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),h=0;h<u;++h){var c,p,d=t.getDimensionInfo(h);d&&"ordinal"===d.type?a[h]=(o<1&&s?s:l)[h]:(p=Sr(d=s&&s[h]?s[h]:0,c=l[h],o),a[h]=ar(p,r?Math.max(lr(d),lr(c)):e))}return a}var Yr=".",Ur="___EC__COMPONENT__CONTAINER___",Zr="___EC__EXTENDED_CLASS___";function qr(t){var e={main:"",sub:""};return t&&(t=t.split(Yr),e.main=t[0]||"",e.sub=t[1]||""),e}function jr(t){(t.$constructor=t).extend=function(t){var e,n,i,o=this;function r(){return n.apply(this,arguments)||this}return C(i=o)&&/^class\s/.test(Function.prototype.toString.call(i))?(u(r,n=o),e=r):at(e=function(){(t.$constructor||o).apply(this,arguments)},this),V(e.prototype,t),e[Zr]=!0,e.extend=this.extend,e.superCall=Qr,e.superApply=Jr,e.superClass=o,e}}function Kr(t,e){t.extend=e.extend}var $r=Math.round(10*Math.random());function Qr(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function Jr(t,e,n){return this.superClass.prototype[e].apply(t,n)}function ta(t){var o={};t.registerClass=function(t){var e,n=t.type||t.prototype.type;return n&&(Mt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e=n),'componentType "'+e+'" illegal'),(e=qr(t.prototype.type=n)).sub?e.sub!==Ur&&(function(t){var e=o[t.main];e&&e[Ur]||(e=o[t.main]={___EC__COMPONENT__CONTAINER___:!0});return e}(e)[e.sub]=t):o[e.main]=t),t},t.getClass=function(t,e,n){var i=o[t];if(i&&i[Ur]&&(i=e?i[e]:null),n&&!i)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var t=qr(t),n=[],t=o[t.main];return t&&t[Ur]?H(t,function(t,e){e!==Ur&&n.push(t)}):n.push(t),n},t.hasClass=function(t){t=qr(t);return!!o[t.main]},t.getAllClassMainTypes=function(){var n=[];return H(o,function(t,e){n.push(e)}),n},t.hasSubTypes=function(t){t=qr(t),t=o[t.main];return t&&t[Ur]}}function ea(a,s){for(var t=0;t<a.length;t++)a[t][1]||(a[t][1]=a[t][0]);return s=s||!1,function(t,e,n){for(var i={},o=0;o<a.length;o++){var r=a[o][1];e&&0<=G(e,r)||n&&G(n,r)<0||null!=(r=t.getShallow(r,s))&&(i[a[o][0]]=r)}return i}}var na=ea([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),ia=(oa.prototype.getAreaStyle=function(t,e){return na(this,t,e)},oa);function oa(){}var ra=new oi(50);function aa(t,e,n,i,o){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:o},(i=ra.get(t))?la(e=i.image)||i.pending.push(n):((e=$.loadImage(t,sa,sa)).__zrImageSrc=t,ra.put(t,e.__cachedImgObj={image:e,pending:[n]}))),e):t:e}function sa(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function la(t){return t&&t.width&&t.height}var ua=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ha(t,e,n,i,o){if(!e)return"";var r=(t+"").split("\n");o=ca(e,n,i,o);for(var a=0,s=r.length;a<s;a++)r[a]=pa(r[a],o);return r.join("\n")}function ca(t,e,n,i){for(var o=V({},i=i||{}),r=(o.font=e,n=O(n,"..."),o.maxIterations=O(i.maxIterations,2),o.minChar=O(i.minChar,0)),a=(o.cnCharWidth=Co("国",e),o.ascCharWidth=Co("a",e)),s=(o.placeholder=O(i.placeholder,""),t=Math.max(0,t-1)),l=0;l<r&&a<=s;l++)s-=a;i=Co(n,e);return s<i&&(n="",i=0),s=t-i,o.ellipsis=n,o.ellipsisWidth=i,o.contentWidth=s,o.containerWidth=t,o}function pa(t,e){var n=e.containerWidth,i=e.font,o=e.contentWidth;if(!n)return"";var r=Co(t,i);if(!(r<=n)){for(var a=0;;a++){if(r<=o||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?function(t,e,n,i){for(var o=0,r=0,a=t.length;r<a&&o<e;r++){var s=t.charCodeAt(r);o+=0<=s&&s<=127?n:i}return r}(t,o,e.ascCharWidth,e.cnCharWidth):0<r?Math.floor(t.length*o/r):0,r=Co(t=t.substr(0,s),i)}""===t&&(t=e.placeholder)}return t}var da=function(){},fa=function(t){this.tokens=[],t&&(this.tokens=t)},ga=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function ya(t,e){var n=new ga;if(null!=t&&(t+=""),t){for(var i,o=e.width,r=e.height,a=e.overflow,s="break"!==a&&"breakAll"!==a||null==o?null:{width:o,accumWidth:0,breakAll:"breakAll"===a},l=ua.lastIndex=0;null!=(i=ua.exec(t));){var u=i.index;l<u&&ma(n,t.substring(l,u),e,s),ma(n,i[2],e,s,i[1]),l=ua.lastIndex}l<t.length&&ma(n,t.substring(l,t.length),e,s);var h,c=[],p=0,d=0,f=e.padding,g="truncate"===a,y="truncate"===e.lineOverflow;t:for(var m=0;m<n.lines.length;m++){for(var v=n.lines[m],_=0,x=0,b=0;b<v.tokens.length;b++){var w=(k=v.tokens[b]).styleName&&e.rich[k.styleName]||{},S=k.textPadding=w.padding,M=S?S[1]+S[3]:0,I=k.font=w.font||e.font,T=(k.contentHeight=Po(I),O(w.height,k.contentHeight));if(k.innerHeight=T,S&&(T+=S[0]+S[2]),k.height=T,k.lineHeight=bt(w.lineHeight,e.lineHeight,T),k.align=w&&w.align||e.align,k.verticalAlign=w&&w.verticalAlign||"middle",y&&null!=r&&p+k.lineHeight>r){0<b?(v.tokens=v.tokens.slice(0,b),L(v,x,_),n.lines=n.lines.slice(0,m+1)):n.lines=n.lines.slice(0,m);break t}var C,S=w.width,D=null==S||"auto"===S;"string"==typeof S&&"%"===S.charAt(S.length-1)?(k.percentWidth=S,c.push(k),k.contentWidth=Co(k.text,I)):(D&&(S=(S=w.backgroundColor)&&S.image)&&(C=void 0,la(S="string"==typeof(h=S)?(C=ra.get(h))&&C.image:h))&&(k.width=Math.max(k.width,S.width*T/S.height)),null!=(C=g&&null!=o?o-x:null)&&C<k.width?!D||C<M?(k.text="",k.width=k.contentWidth=0):(k.text=ha(k.text,C-M,I,e.ellipsis,{minChar:e.truncateMinChar}),k.width=k.contentWidth=Co(k.text,I)):k.contentWidth=Co(k.text,I)),k.width+=M,x+=k.width,w&&(_=Math.max(_,k.lineHeight))}L(v,x,_)}n.outerWidth=n.width=O(o,d),n.outerHeight=n.height=O(r,p),n.contentHeight=p,n.contentWidth=d,f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]);for(m=0;m<c.length;m++){var k,A=(k=c[m]).percentWidth;k.width=parseInt(A,10)/100*n.width}}return n;function L(t,e,n){t.width=e,t.lineHeight=n,p+=n,d=Math.max(d,e)}}function ma(t,e,n,i,o){var r,a,s=""===e,l=o&&n.rich[o]||{},u=t.lines,h=l.font||n.font,c=!1;i?(n=(t=l.padding)?t[1]+t[3]:0,null!=l.width&&"auto"!==l.width?(t=Oo(l.width,i.width)+n,0<u.length&&t+i.accumWidth>i.width&&(r=e.split("\n"),c=!0),i.accumWidth=t):(t=_a(e,h,i.width,i.breakAll,i.accumWidth),i.accumWidth=t.accumWidth+n,a=t.linesWidths,r=t.lines)):r=e.split("\n");for(var p=0;p<r.length;p++){var d,f,g=r[p],y=new da;y.styleName=o,y.text=g,y.isLineHolder=!g&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[p]:Co(g,h),p||c?u.push(new fa([y])):1===(f=(d=(u[u.length-1]||(u[0]=new fa)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!s||d.push(y)}}var va=ut(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function _a(t,e,n,i,o){for(var r,a=[],s=[],l="",u="",h=0,c=0,p=0;p<t.length;p++){var d,f,g=t.charAt(p);"\n"===g?(u&&(l+=u,c+=h),a.push(l),s.push(c),u=l="",c=h=0):(d=Co(g,e),f=!(i||(f=void 0,!(32<=(f=(f=r=g).charCodeAt(0))&&f<=591||880<=f&&f<=4351||4608<=f&&f<=5119||7680<=f&&f<=8303))||!!va[r]),(a.length?n<c+d:n<o+c+d)?c?(l||u)&&(c=f?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=g,l="",h+=d):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=g,d)):f?(a.push(u),s.push(h),u=g,h=d):(a.push(g),s.push(d)):(c+=d,f?(u+=g,h+=d):(u&&(l+=u,u="",h=0),l+=g)))}return a.length||l||(l=t,u="",h=0),u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=o),{accumWidth:c,lines:a,linesWidths:s}}var xa,ba="__zr_style_"+Math.round(10*Math.random()),wa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Sa={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Ma=(wa[ba]=!0,["z","z2","invisible"]),Ia=["invisible"],Ta=(u(Ca,xa=e),Ca.prototype._init=function(t){for(var e=W(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):xa.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},Ca.prototype.beforeBrush=function(){},Ca.prototype.afterBrush=function(){},Ca.prototype.innerBeforeBrush=function(){},Ca.prototype.innerAfterBrush=function(){},Ca.prototype.shouldBePainted=function(t,e,n,i){var o=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){Da.copy(t.getBoundingRect()),t.transform&&Da.applyTransform(t.transform);return ka.width=e,ka.height=n,!Da.intersect(ka)}(this,t,e)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths)for(var r=0;r<this.__clipPaths.length;++r)if(this.__clipPaths[r].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},Ca.prototype.contain=function(t,e){return this.rectContain(t,e)},Ca.prototype.traverse=function(t,e){t.call(e,this)},Ca.prototype.rectContain=function(t,e){t=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(t[0],t[1])},Ca.prototype.getPaintRect=function(){var t,e,n,i,o,r=this._paintRect;return this._paintRect&&!this.__dirty||(o=this.transform,t=this.getBoundingRect(),e=(i=this.style).shadowBlur||0,n=i.shadowOffsetX||0,i=i.shadowOffsetY||0,r=this._paintRect||(this._paintRect=new Z(0,0,0,0)),o?Z.applyTransform(r,t,o):r.copy(t),(e||n||i)&&(r.width+=2*e+Math.abs(n),r.height+=2*e+Math.abs(i),r.x=Math.min(r.x,r.x+n-e),r.y=Math.min(r.y,r.y+i-e)),o=this.dirtyRectTolerance,r.isZero())||(r.x=Math.floor(r.x-o),r.y=Math.floor(r.y-o),r.width=Math.ceil(r.width+1+2*o),r.height=Math.ceil(r.height+1+2*o)),r},Ca.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new Z(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},Ca.prototype.getPrevPaintRect=function(){return this._prevPaintRect},Ca.prototype.animateStyle=function(t){return this.animate("style",t)},Ca.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},Ca.prototype.attrKV=function(t,e){"style"!==t?xa.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},Ca.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:V(this.style,t),this.dirtyStyle(),this},Ca.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},Ca.prototype.dirty=function(){this.dirtyStyle()},Ca.prototype.styleChanged=function(){return!!(2&this.__dirty)},Ca.prototype.styleUpdated=function(){this.__dirty&=-3},Ca.prototype.createStyle=function(t){return Rt(wa,t)},Ca.prototype.useStyle=function(t){t[ba]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},Ca.prototype.isStyleObject=function(t){return t[ba]},Ca.prototype._innerSaveToNormal=function(t){xa.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.style&&!e.style&&(e.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,e,Ma)},Ca.prototype._applyStateObj=function(t,e,n,i,o,r){xa.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.style?o?i?a=e.style:(a=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(a,e.style)):(a=this._mergeStyle(this.createStyle(),(i?this:n).style),this._mergeStyle(a,e.style)):s&&(a=n.style),a)if(o){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=W(l),h=0;h<u.length;h++)(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=W(a),h=0;h<c.length;h++){var p=c[h];this.style[p]=this.style[p]}this._transitionState(t,{style:a},r,this.getAnimationStyleProps())}else this.useStyle(a);for(var d=this.__inHover?Ia:Ma,h=0;h<d.length;h++){p=d[h];e&&null!=e[p]?this[p]=e[p]:s&&null!=n[p]&&(this[p]=n[p])}},Ca.prototype._mergeStates=function(t){for(var e,n=xa.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&this._mergeStyle(e=e||{},o.style)}return e&&(n.style=e),n},Ca.prototype._mergeStyle=function(t,e){return V(t,e),t},Ca.prototype.getAnimationStyleProps=function(){return Sa},Ca.initDefaultProps=((e=Ca.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,void(e.__dirty=2|bn)),Ca);function Ca(t){return xa.call(this,t)||this}var Da=new Z(0,0,0,0),ka=new Z(0,0,0,0);var Aa=Math.min,La=Math.max,Pa=Math.sin,Oa=Math.cos,Na=2*Math.PI,Ra=Vt(),Ea=Vt(),za=Vt();function Ba(t,e,n){if(0!==t.length){for(var i=t[0],o=i[0],r=i[0],a=i[1],s=i[1],l=1;l<t.length;l++)i=t[l],o=Aa(o,i[0]),r=La(r,i[0]),a=Aa(a,i[1]),s=La(s,i[1]);e[0]=o,e[1]=a,n[0]=r,n[1]=s}}function Fa(t,e,n,i,o,r){o[0]=Aa(t,n),o[1]=Aa(e,i),r[0]=La(t,n),r[1]=La(e,i)}var Va=[],Ga=[];var Ha={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Wa=[],Xa=[],Ya=[],Ua=[],Za=[],qa=[],ja=Math.min,Ka=Math.max,$a=Math.cos,Qa=Math.sin,Ja=Math.abs,ts=Math.PI,es=2*ts,ns="undefined"!=typeof Float32Array,is=[];function os(t){return Math.round(t/ts*1e8)/1e8%2*ts}function rs(t,e){var n=os(t[0]),i=(n<0&&(n+=es),n-t[0]),o=t[1];o+=i,!e&&es<=o-n?o=n+es:e&&es<=n-o?o=n-es:!e&&o<n?o=n+(es-os(n-o)):e&&n<o&&(o=n-(es-os(o-n))),t[0]=n,t[1]=o}i.prototype.increaseVersion=function(){this._version++},i.prototype.getVersion=function(){return this._version},i.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=Ja(n/fo/t)||0,this._uy=Ja(n/fo/e)||0)},i.prototype.setDPR=function(t){this.dpr=t},i.prototype.setContext=function(t){this._ctx=t},i.prototype.getContext=function(){return this._ctx},i.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},i.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},i.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ha.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},i.prototype.lineTo=function(t,e){var n=Ja(t-this._xi),i=Ja(e-this._yi),o=n>this._ux||i>this._uy;return this.addData(Ha.L,t,e),this._ctx&&o&&this._ctx.lineTo(t,e),o?(this._xi=t,this._yi=e,this._pendingPtDist=0):(o=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o),this},i.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(Ha.C,t,e,n,i,o,r),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,o,r),this._xi=o,this._yi=r,this},i.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Ha.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},i.prototype.arc=function(t,e,n,i,o,r){return this._drawPendingPt(),is[0]=i,is[1]=o,rs(is,r),this.addData(Ha.A,t,e,n,n,i=is[0],(o=is[1])-i,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=$a(o)*n+t,this._yi=Qa(o)*n+e,this},i.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},i.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Ha.R,t,e,n,i),this},i.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ha.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},i.prototype.fill=function(t){t&&t.fill(),this.toStatic()},i.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},i.prototype.len=function(){return this._len},i.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!ns||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},i.prototype.appendPath=function(t){for(var e=(t=t instanceof Array?t:[t]).length,n=0,i=this._len,o=0;o<e;o++)n+=t[o].len();ns&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(o=0;o<e;o++)for(var r=t[o].data,a=0;a<r.length;a++)this.data[i++]=r[a];this._len=i},i.prototype.addData=function(t,e,n,i,o,r,a,s,l){if(this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var h=0;h<arguments.length;h++)u[this._len++]=arguments[h]}},i.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},i.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}},i.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,ns)&&11<this._len&&(this.data=new Float32Array(t))},i.prototype.getBoundingRect=function(){Ya[0]=Ya[1]=Za[0]=Za[1]=Number.MAX_VALUE,Ua[0]=Ua[1]=qa[0]=qa[1]=-Number.MAX_VALUE;for(var t,e=this.data,n=0,i=0,o=0,r=0,a=0;a<this._len;){var E=e[a++],z=1===a;switch(z&&(o=n=e[a],r=i=e[a+1]),E){case Ha.M:n=o=e[a++],i=r=e[a++],Za[0]=o,Za[1]=r,qa[0]=o,qa[1]=r;break;case Ha.L:Fa(n,i,e[a],e[a+1],Za,qa),n=e[a++],i=e[a++];break;case Ha.C:H=G=m=y=V=g=f=d=p=c=F=B=h=u=l=s=void 0;var s=n,l=i,u=e[a++],h=e[a++],B=e[a++],F=e[a++],c=e[a],p=e[a+1],d=Za,f=qa,g=Wn,V=Vn,y=g(s,u,B,c,Va);d[0]=1/0,d[1]=1/0,f[0]=-1/0,f[1]=-1/0;for(var m=0;m<y;m++){var G=V(s,u,B,c,Va[m]);d[0]=Aa(G,d[0]),f[0]=La(G,f[0])}for(y=g(l,h,F,p,Ga),m=0;m<y;m++){var H=V(l,h,F,p,Ga[m]);d[1]=Aa(H,d[1]),f[1]=La(H,f[1])}d[0]=Aa(s,d[0]),f[0]=La(s,f[0]),d[0]=Aa(c,d[0]),f[0]=La(c,f[0]),d[1]=Aa(l,d[1]),f[1]=La(l,f[1]),d[1]=Aa(p,d[1]),f[1]=La(p,f[1]),n=e[a++],i=e[a++];break;case Ha.Q:g=n,P=i,M=e[a++],x=e[a++],S=e[a],v=e[a+1],w=Za,I=qa,t=b=t=_=void 0,_=Un,t=La(Aa((b=qn)(g,M,S),1),0),b=La(Aa(b(P,x,v),1),0),M=_(g,M,S,t),t=_(P,x,v,b),w[0]=Aa(g,S,M),w[1]=Aa(P,v,t),I[0]=La(g,S,M),I[1]=La(P,v,t),n=e[a++],i=e[a++];break;case Ha.A:var v,_=e[a++],x=e[a++],b=e[a++],w=e[a++],S=e[a++],M=e[a++]+S,I=(a+=1,!e[a++]),T=(z&&(o=$a(S)*b+_,r=Qa(S)*w+x),R=v=X=W=N=O=P=L=A=k=D=C=T=void 0,_),C=x,D=b,k=w,A=S,L=M,P=I,O=Za,N=qa,W=ie,X=oe;if((v=Math.abs(A-L))%Na<1e-4&&1e-4<v)O[0]=T-D,O[1]=C-k,N[0]=T+D,N[1]=C+k;else{Ra[0]=Oa(A)*D+T,Ra[1]=Pa(A)*k+C,Ea[0]=Oa(L)*D+T,Ea[1]=Pa(L)*k+C,W(O,Ra,Ea),X(N,Ra,Ea),(A%=Na)<0&&(A+=Na),(L%=Na)<0&&(L+=Na),L<A&&!P?L+=Na:A<L&&P&&(A+=Na),P&&(v=L,L=A,A=v);for(var R=0;R<L;R+=Math.PI/2)A<R&&(za[0]=Oa(R)*D+T,za[1]=Pa(R)*k+C,W(O,za,O),X(N,za,N))}n=$a(M)*b+_,i=Qa(M)*w+x;break;case Ha.R:Fa(o=n=e[a++],r=i=e[a++],o+e[a++],r+e[a++],Za,qa);break;case Ha.Z:n=o,i=r}ie(Ya,Ya,Za),oe(Ua,Ua,qa)}return 0===a&&(Ya[0]=Ya[1]=Ua[0]=Ua[1]=0),new Z(Ya[0],Ya[1],Ua[0]-Ya[0],Ua[1]-Ya[1])},i.prototype._calculateLength=function(){for(var t=this.data,e=this._len,n=this._ux,i=this._uy,o=0,r=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),u=0,h=0,c=0;c<e;){var p=t[c++],d=1===c,f=(d&&(a=o=t[c],s=r=t[c+1]),-1);switch(p){case Ha.M:o=a=t[c++],r=s=t[c++];break;case Ha.L:var g=t[c++],y=(_=t[c++])-r;(Ja(C=g-o)>n||Ja(y)>i||c===e-1)&&(f=Math.sqrt(C*C+y*y),o=g,r=_);break;case Ha.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],b=t[c++],f=function(t,e,n,i,o,r,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Vn(t,n,o,a,f),f=Vn(e,i,r,s,f),y=g-u,m=f-h;c+=Math.sqrt(y*y+m*m),u=g,h=f}return c}(o,r,m,v,g,_,x,b,10),o=x,r=b;break;case Ha.Q:f=function(t,e,n,i,o,r,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=Un(t,n,o,p),p=Un(e,i,r,p),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(o,r,m=t[c++],v=t[c++],g=t[c++],_=t[c++],10),o=g,r=_;break;case Ha.A:var x=t[c++],b=t[c++],w=t[c++],S=t[c++],M=t[c++],I=t[c++],T=I+M;c+=1,d&&(a=$a(M)*w+x,s=Qa(M)*S+b),f=Ka(w,S)*ja(es,Math.abs(I)),o=$a(T)*w+x,r=Qa(T)*S+b;break;case Ha.R:a=o=t[c++],s=r=t[c++];f=2*t[c++]+2*t[c++];break;case Ha.Z:var C=a-o,y=s-r;f=Math.sqrt(C*C+y*y),o=a,r=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},i.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,h=this.data,E=this._ux,z=this._uy,B=this._len,c=e<1,p=0,d=0,f=0;if(!c||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var g=0;g<B;){var y=h[g++],F=1===g;switch(F&&(n=o=h[g],i=r=h[g+1]),y!==Ha.L&&0<f&&(t.lineTo(l,u),f=0),y){case Ha.M:n=o=h[g++],i=r=h[g++],t.moveTo(o,r);break;case Ha.L:var m=h[g++],v=h[g++],_=Ja(m-o),x=Ja(v-r);if(E<_||z<x){if(c){if(s<p+(R=a[d++])){var b=(s-p)/R;t.lineTo(o*(1-b)+m*b,r*(1-b)+v*b);break t}p+=R}t.lineTo(m,v),o=m,r=v,f=0}else{_=_*_+x*x;f<_&&(l=m,u=v,f=_)}break;case Ha.C:var w=h[g++],S=h[g++],M=h[g++],I=h[g++],x=h[g++],_=h[g++];if(c){if(s<p+(R=a[d++])){Xn(o,w,M,x,b=(s-p)/R,Wa),Xn(r,S,I,_,b,Xa),t.bezierCurveTo(Wa[1],Xa[1],Wa[2],Xa[2],Wa[3],Xa[3]);break t}p+=R}t.bezierCurveTo(w,S,M,I,x,_),o=x,r=_;break;case Ha.Q:w=h[g++],S=h[g++],M=h[g++],I=h[g++];if(c){if(s<p+(R=a[d++])){jn(o,w,M,b=(s-p)/R,Wa),jn(r,S,I,b,Xa),t.quadraticCurveTo(Wa[1],Xa[1],Wa[2],Xa[2]);break t}p+=R}t.quadraticCurveTo(w,S,M,I),o=M,r=I;break;case Ha.A:var T=h[g++],C=h[g++],D=h[g++],k=h[g++],A=h[g++],L=h[g++],P=h[g++],V=!h[g++],G=k<D?D:k,O=.001<Ja(D-k),N=A+L,H=!1;if(c&&(s<p+(R=a[d++])&&(N=A+L*(s-p)/R,H=!0),p+=R),O&&t.ellipse?t.ellipse(T,C,D,k,P,A,N,V):t.arc(T,C,G,A,N,V),H)break t;F&&(n=$a(A)*D+T,i=Qa(A)*k+C),o=$a(N)*D+T,r=Qa(N)*k+C;break;case Ha.R:n=o=h[g],i=r=h[g+1],m=h[g++],v=h[g++];var R,L=h[g++],O=h[g++];if(c){if(s<p+(R=a[d++])){P=s-p;t.moveTo(m,v),t.lineTo(m+ja(P,L),v),0<(P-=L)&&t.lineTo(m+L,v+ja(P,O)),0<(P-=O)&&t.lineTo(m+Ka(L-P,0),v+O),0<(P-=L)&&t.lineTo(m,v+Ka(O-P,0));break t}p+=R}t.rect(m,v,L,O);break;case Ha.Z:if(c){if(s<p+(R=a[d++])){b=(s-p)/R;t.lineTo(o*(1-b)+n*b,r*(1-b)+i*b);break t}p+=R}t.closePath(),o=n,r=i}}},i.prototype.clone=function(){var t=new i,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},i.CMD=Ha,i.initDefaultProps=((e=i.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0));var as=i;function i(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=[])}function ss(t,e,n,i,o,r,a){var s;if(0!==o)return s=0,!(e+(o=o)<a&&i+o<a||a<e-o&&a<i-o||t+o<r&&n+o<r||r<t-o&&r<n-o)&&(t===n?Math.abs(r-t)<=o/2:(r=(s=(e-i)/(t-n))*r-a+(t*i-n*e)/(t-n))*r/(s*s+1)<=o/2*o/2)}var ls=2*Math.PI;function us(t){return(t%=ls)<0&&(t+=ls),t}var hs=2*Math.PI;function cs(t,e,n,i,o,r){return e<r&&i<r||r<e&&r<i||i===e?0:(n=(r=(r-e)/(i-e))*(n-t)+t)===o?1/0:o<n?1!=r&&0!=r?i<e?1:-1:i<e?.5:-.5:0}var ps=as.CMD,ds=2*Math.PI,fs=1e-4;var gs=[-1,-1,-1],ys=[-1,-1];function ms(t,e,n,i,o,r,a,s,l,u){if(e<u&&i<u&&r<u&&s<u||u<e&&u<i&&u<r&&u<s)return 0;var h=Hn(e,i,r,s,u,gs);if(0===h)return 0;for(var c,p=0,d=-1,f=void 0,g=void 0,y=0;y<h;y++){var m=gs[y],v=0===m||1===m?.5:1;Vn(t,n,o,a,m)<l||(d<0&&(d=Wn(e,i,r,s,ys),ys[1]<ys[0]&&1<d&&(c=void 0,c=ys[0],ys[0]=ys[1],ys[1]=c),f=Vn(e,i,r,s,ys[0]),1<d)&&(g=Vn(e,i,r,s,ys[1])),2===d?m<ys[0]?p+=f<e?v:-v:m<ys[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<ys[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function vs(t,e,n,i,o,r,a,s){if(e<s&&i<s&&r<s||s<e&&s<i&&s<r)return 0;c=gs,h=(l=e)-2*(u=i)+(h=r),u=2*(u-l),l-=s=s,s=0,Bn(h)?Fn(u)&&0<=(p=-l/u)&&p<=1&&(c[s++]=p):Bn(l=u*u-4*h*l)?0<=(p=-u/(2*h))&&p<=1&&(c[s++]=p):0<l&&(d=(-u-(l=Ln(l)))/(2*h),0<=(p=(-u+l)/(2*h))&&p<=1&&(c[s++]=p),0<=d)&&d<=1&&(c[s++]=d);var l,u,h,c,p,d,f=s;if(0===f)return 0;var g=qn(e,i,r);if(0<=g&&g<=1){for(var y=0,m=Un(e,i,r,g),v=0;v<f;v++){var _=0===gs[v]||1===gs[v]?.5:1;Un(t,n,o,gs[v])<a||(gs[v]<g?y+=m<e?_:-_:y+=r<m?_:-_)}return y}return _=0===gs[0]||1===gs[0]?.5:1,Un(t,n,o,gs[0])<a?0:r<e?_:-_}function _s(t,e,n,i,o){for(var r,a=t.data,s=t.len(),l=0,u=0,h=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===ps.M&&1<d&&(n||(l+=cs(u,h,c,p,i,o))),g&&(c=u=a[d],p=h=a[d+1]),f){case ps.M:u=c=a[d++],h=p=a[d++];break;case ps.L:if(n){if(ss(u,h,a[d],a[d+1],e,i,o))return!0}else l+=cs(u,h,a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case ps.C:if(n){if(function(t,e,n,i,o,r,a,s,l,u,h){if(0!==l)return!(e+(l=l)<h&&i+l<h&&r+l<h&&s+l<h||h<e-l&&h<i-l&&h<r-l&&h<s-l||t+l<u&&n+l<u&&o+l<u&&a+l<u||u<t-l&&u<n-l&&u<o-l&&u<a-l)&&Yn(t,e,n,i,o,r,a,s,u,h,null)<=l/2}(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,o))return!0}else l+=ms(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case ps.Q:if(n){if(function(t,e,n,i,o,r,a,s,l){if(0!==a)return!(e+(a=a)<l&&i+a<l&&r+a<l||l<e-a&&l<i-a&&l<r-a||t+a<s&&n+a<s&&o+a<s||s<t-a&&s<n-a&&s<o-a)&&Kn(t,e,n,i,o,r,s,l,null)<=a/2}(u,h,a[d++],a[d++],a[d],a[d+1],e,i,o))return!0}else l+=vs(u,h,a[d++],a[d++],a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case ps.A:var y=a[d++],m=a[d++],v=a[d++],_=a[d++],x=a[d++],b=a[d++],w=(d+=1,!!(1-a[d++])),S=Math.cos(x)*v+y,M=Math.sin(x)*_+m,I=(g?(c=S,p=M):l+=cs(u,h,S,M,i,o),(i-y)*_/v+y);if(n){if(function(t,e,n,i,o,r,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(n<(t=Math.sqrt(s*s+l*l))-a||t+a<n)&&(Math.abs(i-o)%hs<1e-4||((o=r?(e=i,i=us(o),us(e)):(i=us(i),us(o)))<i&&(o+=hs),(t=Math.atan2(l,s))<0&&(t+=hs),i<=t&&t<=o)||i<=t+hs&&t+hs<=o)}(y,m,_,x,x+b,w,e,I,o))return!0}else l+=function(t,e,n,i,o,r,a,s){if(n<(s-=e)||s<-n)return 0;var e=Math.sqrt(n*n-s*s);if(gs[0]=-e,gs[1]=e,(n=Math.abs(i-o))<1e-4)return 0;if(ds-1e-4<=n)return o=ds,h=r?1:-1,a>=gs[i=0]+t&&a<=gs[1]+t?h:0;o<i&&(e=i,i=o,o=e),i<0&&(i+=ds,o+=ds);for(var l=0,u=0;u<2;u++){var h,c=gs[u];a<c+t&&(h=r?1:-1,i<=(c=(c=Math.atan2(s,c))<0?ds+c:c)&&c<=o||i<=c+ds&&c+ds<=o)&&(l+=h=c>Math.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+b,w,I,o);u=Math.cos(x+b)*v+y,h=Math.sin(x+b)*_+m;break;case ps.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(ss(c,p,S,p,e,i,o)||ss(S,p,S,M,e,i,o)||ss(S,M,c,M,e,i,o)||ss(c,M,c,p,e,i,o))return!0}else l=(l+=cs(S,p,S,M,i,o))+cs(c,M,c,p,i,o);break;case ps.Z:if(n){if(ss(u,h,c,p,e,i,o))return!0}else l+=cs(u,h,c,p,i,o);u=c,h=p}}return n||(t=h,r=p,Math.abs(t-r)<fs)||(l+=cs(u,h,c,p,i,o)||0),0!==l}var xs,bs=z({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},wa),ws={style:z({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Sa.style)},Ss=Io.concat(["invisible","culling","z","z2","zlevel","parent"]),j=(u(a,xs=Ta),a.prototype.update=function(){var e=this,t=(xs.prototype.update.call(this),this.style);if(t.decal){var n,i=this._decalEl=this._decalEl||new a,o=(i.buildPath===a.prototype.buildPath&&(i.buildPath=function(t){e.buildPath(t,e.shape)}),i.silent=!0,i.style);for(n in t)o[n]!==t[n]&&(o[n]=t[n]);o.fill=t.fill?t.decal:null,o.decal=null,o.shadowColor=null,t.strokeFirst&&(o.stroke=null);for(var r=0;r<Ss.length;++r)i[Ss[r]]=this[Ss[r]];i.__dirty|=bn}else this._decalEl&&(this._decalEl=null)},a.prototype.getDecalElement=function(){return this._decalEl},a.prototype._init=function(t){var e=W(t),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var i=0;i<e.length;i++){var o=e[i],r=t[o];"style"===o?this.style?V(this.style,r):this.useStyle(r):"shape"===o?V(this.shape,r):xs.prototype.attrKV.call(this,o,r)}this.style||this.useStyle({})},a.prototype.getDefaultStyle=function(){return null},a.prototype.getDefaultShape=function(){return{}},a.prototype.canBeInsideText=function(){return this.hasFill()},a.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(X(e))return.5<(t=Ti(e,0))?go:.2<t?"#eee":yo;if(e)return yo}return go},a.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(X(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Ti(t,0)<.4)return e}},a.prototype.buildPath=function(t,e,n){},a.prototype.pathUpdated=function(){this.__dirty&=~wn},a.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},a.prototype.createPathProxy=function(){this.path=new as(!1)},a.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},a.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},a.prototype.getBoundingRect=function(){var t,e,n=this._rect,i=this.style,o=!n;return o&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&wn)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),n=e.getBoundingRect()),this._rect=n,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=n.clone()),(this.__dirty||o)&&(t.copy(n),e=i.strokeNoScale?this.getLineScale():1,o=i.lineWidth,this.hasFill()||(i=this.strokeContainThreshold,o=Math.max(o,null==i?4:i)),1e-10<e)&&(t.width+=o/e,t.height+=o/e,t.x-=o/e/2,t.y-=o/e/2),t):n},a.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),o=this.style;if(t=n[0],e=n[1],i.contain(t,e)){n=this.path;if(this.hasStroke()){i=o.lineWidth,o=o.strokeNoScale?this.getLineScale():1;if(1e-10<o&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),_s(n,i/o,!0,t,e)))return!0}if(this.hasFill())return _s(n,0,!1,t,e)}return!1},a.prototype.dirtyShape=function(){this.__dirty|=wn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},a.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},a.prototype.animateShape=function(t){return this.animate("shape",t)},a.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},a.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):xs.prototype.attrKV.call(this,t,e)},a.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:V(n,t),this.dirtyShape(),this},a.prototype.shapeChanged=function(){return!!(this.__dirty&wn)},a.prototype.createStyle=function(t){return Rt(bs,t)},a.prototype._innerSaveToNormal=function(t){xs.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=V({},this.shape))},a.prototype._applyStateObj=function(t,e,n,i,o,r){xs.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.shape?o?i?a=e.shape:(a=V({},n.shape),V(a,e.shape)):(a=V({},(i?this:n).shape),V(a,e.shape)):s&&(a=n.shape),a)if(o){this.shape=V({},this.shape);for(var l={},u=W(a),h=0;h<u.length;h++){var c=u[h];"object"==typeof a[c]?this.shape[c]=a[c]:l[c]=a[c]}this._transitionState(t,{shape:l},r)}else this.shape=a,this.dirtyShape()},a.prototype._mergeStates=function(t){for(var e,n=xs.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&this._mergeStyle(e=e||{},o.shape)}return e&&(n.shape=e),n},a.prototype.getAnimationStyleProps=function(){return ws},a.prototype.isZeroArea=function(){return!1},a.extend=function(n){u(o,i=a),o.prototype.getDefaultStyle=function(){return y(n.style)},o.prototype.getDefaultShape=function(){return y(n.shape)};var i,t,e=o;function o(t){var e=i.call(this,t)||this;return n.init&&n.init.call(e,t),e}for(t in n)"function"==typeof n[t]&&(e.prototype[t]=n[t]);return e},a.initDefaultProps=((e=a.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,void(e.__dirty=2|bn|wn)),a);function a(t){return xs.call(this,t)||this}var Ms,Is=z({strokeFirst:!0,font:K,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},bs),Ts=(u(Cs,Ms=Ta),Cs.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},Cs.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Cs.prototype.createStyle=function(t){return Rt(Is,t)},Cs.prototype.setBoundingRect=function(t){this._rect=t},Cs.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=ko(t,e.font,e.textAlign,e.textBaseline)).x+=e.x||0,t.y+=e.y||0,this.hasStroke()&&(e=e.lineWidth,t.x-=e/2,t.y-=e/2,t.width+=e,t.height+=e),this._rect=t),this._rect},Cs.initDefaultProps=void(Cs.prototype.dirtyRectTolerance=10),Cs);function Cs(){return null!==Ms&&Ms.apply(this,arguments)||this}Ts.prototype.type="tspan";var Ds=z({x:0,y:0},wa),ks={style:z({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Sa.style)};u(Ps,As=Ta),Ps.prototype.createStyle=function(t){return Rt(Ds,t)},Ps.prototype._getSize=function(t){var e,n=this.style,i=n[t];return null!=i?i:(i=(i=n.image)&&"string"!=typeof i&&i.width&&i.height?n.image:this.__image)?null==(e=n[n="width"===t?"height":"width"])?i[t]:i[t]/i[n]*e:0},Ps.prototype.getWidth=function(){return this._getSize("width")},Ps.prototype.getHeight=function(){return this._getSize("height")},Ps.prototype.getAnimationStyleProps=function(){return ks},Ps.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Z(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var As,Ls=Ps;function Ps(){return null!==As&&As.apply(this,arguments)||this}Ls.prototype.type="image";var Os=Math.round;function Ns(t,e,n){var i,o,r;if(e)return i=e.x1,o=e.x2,r=e.y1,e=e.y2,t.x1=i,t.x2=o,t.y1=r,t.y2=e,(n=n&&n.lineWidth)&&(Os(2*i)===Os(2*o)&&(t.x1=t.x2=Es(i,n,!0)),Os(2*r)===Os(2*e))&&(t.y1=t.y2=Es(r,n,!0)),t}function Rs(t,e,n){var i,o,r;if(e)return i=e.x,o=e.y,r=e.width,e=e.height,t.x=i,t.y=o,t.width=r,t.height=e,(n=n&&n.lineWidth)&&(t.x=Es(i,n,!0),t.y=Es(o,n,!0),t.width=Math.max(Es(i+r,n,!1)-t.x,0===r?0:1),t.height=Math.max(Es(o+e,n,!1)-t.y,0===e?0:1)),t}function Es(t,e,n){var i;return e?((i=Os(2*t))+Os(e))%2==0?i/2:(i+(n?1:-1))/2:t}var zs,Bs=function(){this.x=0,this.y=0,this.width=0,this.height=0},Fs={},Vs=(u(Gs,zs=j),Gs.prototype.getDefaultShape=function(){return new Bs},Gs.prototype.buildPath=function(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,f,g;this.subPixelOptimize?(n=(a=Rs(Fs,e,this.style)).x,i=a.y,o=a.width,r=a.height,a.r=e.r,e=a):(n=e.x,i=e.y,o=e.width,r=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=u=h=e:e instanceof Array?1===e.length?s=l=u=h=e[0]:2===e.length?(s=u=e[0],l=h=e[1]):3===e.length?(s=e[0],l=h=e[1],u=e[2]):(s=e[0],l=e[1],u=e[2],h=e[3]):s=l=u=h=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<u+h&&(u*=f/(c=u+h),h*=f/c),g<l+u&&(l*=g/(c=l+u),u*=g/c),g<s+h&&(s*=g/(c=s+h),h*=g/c),a.moveTo(p+s,d),a.lineTo(p+f-l,d),0!==l&&a.arc(p+f-l,d+l,l,-Math.PI/2,0),a.lineTo(p+f,d+g-u),0!==u&&a.arc(p+f-u,d+g-u,u,0,Math.PI/2),a.lineTo(p+h,d+g),0!==h&&a.arc(p+h,d+g-h,h,Math.PI/2,Math.PI),a.lineTo(p,d+s),0!==s&&a.arc(p+s,d+s,s,Math.PI,1.5*Math.PI)):t.rect(n,i,o,r)},Gs.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},Gs);function Gs(t){return zs.call(this,t)||this}Vs.prototype.type="rect";var Hs,Ws={fill:"#000"},Xs={style:z({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},Sa.style)},Ys=(u(Us,Hs=Ta),Us.prototype.childrenRef=function(){return this._children},Us.prototype.update=function(){Hs.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var e=this._children[t];e.zlevel=this.zlevel,e.z=this.z,e.z2=this.z2,e.culling=this.culling,e.cursor=this.cursor,e.invisible=this.invisible}},Us.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):Hs.prototype.updateTransform.call(this)},Us.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):Hs.prototype.getLocalTransform.call(this,t)},Us.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),Hs.prototype.getComputedTransform.call(this)},Us.prototype._updateSubTexts=function(){var t;this._childCursor=0,$s(t=this.style),H(t.rich,$s),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Us.prototype.addSelfToZr=function(t){Hs.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},Us.prototype.removeSelfFromZr=function(t){Hs.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},Us.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Z(0,0,0,0),e=this._children,n=[],i=null,o=0;o<e.length;o++){var r=e[o],a=r.getBoundingRect(),r=r.getLocalTransform(n);r?(t.copy(a),t.applyTransform(r),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},Us.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Ws},Us.prototype.setTextContent=function(t){},Us.prototype._mergeStyle=function(t,e){var n,i;return e&&(n=e.rich,i=t.rich||n&&{},V(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i)),t},Us.prototype._mergeRich=function(t,e){for(var n=W(e),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},V(t[o],e[o])}},Us.prototype.getAnimationStyleProps=function(){return Xs},Us.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),(this._children[this._childCursor++]=e).__zr=this.__zr,e.parent=this,e},Us.prototype._updatePlainTexts=function(){for(var t,e=this.style,n=e.font||K,i=e.padding,o=function(t,e){null!=t&&(t+="");var n,i=e.overflow,o=e.padding,r=e.font,a="truncate"===i,s=Po(r),l=O(e.lineHeight,s),u=!!e.backgroundColor,h="truncate"===e.lineOverflow,c=e.width,i=(n=null==c||"break"!==i&&"breakAll"!==i?t?t.split("\n"):[]:t?_a(t,e.font,c,"breakAll"===i,0).lines:[]).length*l,p=O(e.height,i);if(p<i&&h&&(h=Math.floor(p/l),n=n.slice(0,h)),t&&a&&null!=c)for(var d=ca(c,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<n.length;f++)n[f]=pa(n[f],d);for(var h=p,g=0,f=0;f<n.length;f++)g=Math.max(Co(n[f],r),g);return null==c&&(c=g),t=g,o&&(h+=o[0]+o[2],t+=o[1]+o[3],c+=o[1]+o[3]),{lines:n,height:p,outerWidth:t=u?c:t,outerHeight:h,lineHeight:l,calculatedLineHeight:s,contentWidth:g,contentHeight:i,width:c}}(el(e),e),r=nl(e),a=!!e.backgroundColor,s=o.outerHeight,l=o.outerWidth,u=o.contentWidth,h=o.lines,c=o.lineHeight,p=this._defaultStyle,d=e.x||0,f=e.y||0,g=e.align||p.align||"left",y=e.verticalAlign||p.verticalAlign||"top",m=d,v=Lo(f,o.contentHeight,y),_=((r||i)&&(t=Ao(d,l,g),f=Lo(f,s,y),r)&&this._renderBackground(e,e,t,f,l,s),v+=c/2,i&&(m=tl(d,g,i),"top"===y?v+=i[0]:"bottom"===y&&(v-=i[2])),0),r=!1,x=(Js(("fill"in e?e:(r=!0,p)).fill)),b=(Qs("stroke"in e?e.stroke:a||p.autoStroke&&!r?null:(_=2,p.stroke))),w=0<e.textShadowBlur,S=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),M=o.calculatedLineHeight,I=0;I<h.length;I++){var T=this._getOrCreateChild(Ts),C=T.createStyle();T.useStyle(C),C.text=h[I],C.x=m,C.y=v,g&&(C.textAlign=g),C.textBaseline="middle",C.opacity=e.opacity,C.strokeFirst=!0,w&&(C.shadowBlur=e.textShadowBlur||0,C.shadowColor=e.textShadowColor||"transparent",C.shadowOffsetX=e.textShadowOffsetX||0,C.shadowOffsetY=e.textShadowOffsetY||0),C.stroke=b,C.fill=x,b&&(C.lineWidth=e.lineWidth||_,C.lineDash=e.lineDash,C.lineDashOffset=e.lineDashOffset||0),C.font=n,Ks(C,e),v+=c,S&&T.setBoundingRect(new Z(Ao(C.x,e.width,C.textAlign),Lo(C.y,M,C.textBaseline),u,M))}},Us.prototype._updateRichTexts=function(){for(var t=this.style,e=ya(el(t),t),n=e.width,i=e.outerWidth,o=e.outerHeight,r=t.padding,a=t.x||0,s=t.y||0,l=this._defaultStyle,u=t.align||l.align,l=t.verticalAlign||l.verticalAlign,a=Ao(a,i,u),u=Lo(s,o,l),h=a,c=u,p=(r&&(h+=r[3],c+=r[0]),h+n),d=(nl(t)&&this._renderBackground(t,t,a,u,i,o),!!t.backgroundColor),f=0;f<e.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,b=h,w=p,S=m-1,M=void 0;x<m&&(!(M=y[x]).align||"left"===M.align);)this._placeToken(M,t,v,c,b,"left",d),_-=M.width,b+=M.width,x++;for(;0<=S&&"right"===(M=y[S]).align;)this._placeToken(M,t,v,c,w,"right",d),_-=M.width,w-=M.width,S--;for(b+=(n-(b-h)-(p-w)-_)/2;x<=S;)M=y[x],this._placeToken(M,t,v,c,b+M.width/2,"center",d),b+=M.width,x++;c+=v}},Us.prototype._placeToken=function(t,e,n,i,o,r,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2);!t.isLineHolder&&nl(s)&&this._renderBackground(s,e,"right"===r?o-t.width:"center"===r?o-t.width/2:o,u-t.height/2,t.width,t.height);var l=!!s.backgroundColor,i=t.textPadding,n=(i&&(o=tl(o,r,i),u-=t.height/2-i[0]-t.innerHeight/2),this._getOrCreateChild(Ts)),i=n.createStyle(),h=(n.useStyle(i),this._defaultStyle),c=!1,p=0,d=Js(("fill"in s?s:"fill"in e?e:(c=!0,h)).fill),l=Qs("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||h.autoStroke&&!c?null:(p=2,h.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur,c=(i.text=t.text,i.x=o,i.y=u,a&&(i.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,i.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",i.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,i.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),i.textAlign=r,i.textBaseline="middle",i.font=t.font||K,i.opacity=bt(s.opacity,e.opacity,1),Ks(i,s),l&&(i.lineWidth=bt(s.lineWidth,e.lineWidth,p),i.lineDash=O(s.lineDash,e.lineDash),i.lineDashOffset=e.lineDashOffset||0,i.stroke=l),d&&(i.fill=d),t.contentWidth),h=t.contentHeight;n.setBoundingRect(new Z(Ao(i.x,c,i.textAlign),Lo(i.y,h,i.textBaseline),c,h))},Us.prototype._renderBackground=function(t,e,n,i,o,r){var a,s,l,u,h=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=h&&h.image,f=h&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(Vs)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=n,l.y=i,l.width=o,l.height=r,l.r=g,a.dirtyShape()),f?((u=a.style).fill=h||null,u.fillOpacity=O(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(Ls)).onload=function(){y.dirtyStyle()},(l=s.style).image=h.image,l.x=n,l.y=i,l.width=o,l.height=r),c&&p&&((u=a.style).lineWidth=c,u.stroke=p,u.strokeOpacity=O(t.strokeOpacity,1),u.lineDash=t.borderDash,u.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2),(a||s).style);g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||"transparent",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=bt(t.opacity,e.opacity,1)},Us.makeFont=function(t){var e,n="";return(n=null!=(e=t).fontSize||e.fontFamily||e.fontWeight?[t.fontStyle,t.fontWeight,"string"!=typeof(e=t.fontSize)||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e,t.fontFamily||"sans-serif"].join(" "):n)&&It(n)||t.textFont||t.font},Us);function Us(t){var e=Hs.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=Ws,e.attr(t),e}var Zs={left:!0,right:1,center:1},qs={top:1,bottom:1,middle:1},js=["fontStyle","fontWeight","fontSize","fontFamily"];function Ks(t,e){for(var n=0;n<js.length;n++){var i=js[n],o=e[i];null!=o&&(t[i]=o)}}function $s(t){var e;t&&(t.font=Ys.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||Zs[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||qs[e]?e:"top",t.padding)&&(t.padding=St(t.padding))}function Qs(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Js(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function tl(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function el(t){t=t.text;return null!=t&&(t+=""),t}function nl(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var D=zr(),il=1,ol={},rl=zr(),al=zr(),sl=0,ll=1,ul=2,hl=["emphasis","blur","select"],cl=["normal","emphasis","blur","select"],pl="highlight",dl="downplay",fl="select",gl="unselect",yl="toggleSelect";function ml(t){return null!=t&&"none"!==t}function vl(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function _l(t){vl(t,"emphasis",ul)}function xl(t){t.hoverState===ul&&vl(t,"normal",sl)}function bl(t){vl(t,"blur",ll)}function wl(t){t.hoverState===ll&&vl(t,"normal",sl)}function Sl(t){t.selected=!0}function Ml(t){t.selected=!1}function Il(t,e,n){e(t,n)}function Tl(t,e,n){Il(t,e,n),t.isGroup&&t.traverse(function(t){Il(t,e,n)})}function Cl(t,e){switch(e){case"emphasis":t.hoverState=ul;break;case"normal":t.hoverState=sl;break;case"blur":t.hoverState=ll;break;case"select":t.selected=!0}}function Dl(t,e,n){var i=0<=G(t.currentStates,e),o=t.style.opacity,t=i?null:function(t,e,n,i){for(var o=t.style,r={},a=0;a<e.length;a++){var s=e[a],l=o[s];r[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(r,e)}return r}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{};return null==e.opacity&&(n=V({},n),e=V({opacity:i?o:.1*t.opacity},e),n.style=e),n}function kl(t,e){var n,i,o,r,a,s=this.states[t];if(this.style){if("emphasis"===t)return n=this,i=s,e=(e=e)&&0<=G(e,"select"),a=!1,n instanceof j&&(o=rl(n),r=e&&o.selectFill||o.normalFill,e=e&&o.selectStroke||o.normalStroke,ml(r)||ml(e))&&("inherit"===(o=(i=i||{}).style||{}).fill?(a=!0,i=V({},i),(o=V({},o)).fill=r):!ml(o.fill)&&ml(r)?(a=!0,i=V({},i),(o=V({},o)).fill=Di(r)):!ml(o.stroke)&&ml(e)&&(a||(i=V({},i),o=V({},o)),o.stroke=Di(e)),i.style=o),i&&null==i.z2&&(a||(i=V({},i)),r=n.z2EmphasisLift,i.z2=n.z2+(null!=r?r:10)),i;if("blur"===t)return Dl(this,t,s);if("select"===t)return e=this,(o=s)&&null==o.z2&&(o=V({},o),a=e.z2SelectLift,o.z2=e.z2+(null!=a?a:9)),o}return s}function Al(t){t.stateProxy=kl;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=kl),t&&(t.stateProxy=kl)}function Ll(t,e){Fl(t,e)||t.__highByOuter||Tl(t,_l)}function Pl(t,e){Fl(t,e)||t.__highByOuter||Tl(t,xl)}function Ol(t,e){t.__highByOuter|=1<<(e||0),Tl(t,_l)}function Nl(t,e){(t.__highByOuter&=~(1<<(e||0)))||Tl(t,xl)}function Rl(t){Tl(t,bl)}function El(t){Tl(t,wl)}function zl(t){Tl(t,Sl)}function Bl(t){Tl(t,Ml)}function Fl(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function Vl(o){var e=o.getModel(),r=[],a=[];e.eachComponent(function(t,e){var n=al(e),t="series"===t,i=t?o.getViewOfSeriesModel(e):o.getViewOfComponentModel(e);t||a.push(i),n.isBlured&&(i.group.traverse(function(t){wl(t)}),t)&&r.push(e),n.isBlured=!1}),H(a,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(r,!1,e)})}function Gl(t,r,a,s){var l,u,h,n=s.getModel();function c(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&El(i)}}a=a||"coordinateSystem",null!=t&&r&&"none"!==r&&(l=n.getSeriesByIndex(t),(u=l.coordinateSystem)&&u.master&&(u=u.master),h=[],n.eachSeries(function(t){var e=l===t,n=t.coordinateSystem,n=(n=n&&n.master?n.master:n)&&u?n===u:e;if(!("series"===a&&!e||"coordinateSystem"===a&&!n||"series"===r&&e)){if(s.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&e&&"self"===r||bl(t)}),lt(r))c(t.getData(),r);else if(P(r))for(var i=W(r),o=0;o<i.length;o++)c(t.getData(i[o]),r[i[o]]);h.push(t),al(t).isBlured=!0}}),n.eachComponent(function(t,e){"series"!==t&&(t=s.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(h,!0,n)}))}function Hl(t,e,n){var i;null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(al(t).isBlured=!0,i=n.getViewOfComponentModel(t))&&i.focusBlurEnabled&&i.group.traverse(function(t){bl(t)})}function Wl(t,e,n,i){var o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return o;t=i.getModel().getComponent(t,e);if(!t)return o;e=i.getViewOfComponentModel(t);if(!e||!e.findHighDownDispatchers)return o;for(var r,a=e.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===D(a[s]).focus){r=!0;break}return{focusSelf:r,dispatchers:a}}function Xl(i){H(i.getAllData(),function(t){var e=t.data,n=t.type;e.eachItemGraphicEl(function(t,e){(i.isSelected(e,n)?zl:Bl)(t)})})}function Yl(t,e,n){Kl(t,!0),Tl(t,Al);t=D(t),null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}function Ul(t,e,n,i){i?Kl(t,!1):Yl(t,e,n)}var Zl=["emphasis","blur","select"],ql={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function jl(t,e,n,i){n=n||"itemStyle";for(var o=0;o<Zl.length;o++){var r=Zl[o],a=e.getModel([r,n]);t.ensureState(r).style=i?i(a):a[ql[n]]()}}function Kl(t,e){var e=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),e&&!n.__highDownDispatcher||(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function $l(t){return!(!t||!t.__highDownDispatcher)}function Ql(t){t=t.type;return t===fl||t===gl||t===yl}function Jl(t){t=t.type;return t===pl||t===dl}var tu=as.CMD,eu=[[],[],[]],nu=Math.sqrt,iu=Math.atan2;var ou=Math.sqrt,ru=Math.sin,au=Math.cos,su=Math.PI;function lu(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function uu(t,e){return(t[0]*e[0]+t[1]*e[1])/(lu(t)*lu(e))}function hu(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(uu(t,e))}function cu(t,e,n,i,o,r,a,s,l,u,h){var l=l*(su/180),c=au(l)*(t-n)/2+ru(l)*(e-i)/2,p=-1*ru(l)*(t-n)/2+au(l)*(e-i)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=ou(d),s*=ou(d)),(o===r?-1:1)*ou((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),o=d*a*p/s,d=d*-s*c/a,t=(t+n)/2+au(l)*o-ru(l)*d,n=(e+i)/2+ru(l)*o+au(l)*d,e=hu([1,0],[(c-o)/a,(p-d)/s]),i=[(c-o)/a,(p-d)/s],c=[(-1*c-o)/a,(-1*p-d)/s],o=hu(i,c);uu(i,c)<=-1&&(o=su),(o=1<=uu(i,c)?0:o)<0&&(p=Math.round(o/su*1e6)/1e6,o=2*su+p%2*su),h.addData(u,t,n,a,s,e,o,l,r)}var pu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,du=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;u(yu,fu=j),yu.prototype.applyTransform=function(t){};var fu,gu=yu;function yu(){return null!==fu&&fu.apply(this,arguments)||this}function mu(t){return null!=t.setData}function vu(t,e){var S=function(t){var e=new as;if(t){var n,i=0,o=0,r=i,a=o,s=as.CMD,l=t.match(pu);if(l){for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,d=h.match(du)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var y=0;y<f;){var m=void 0,v=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=i,I=o,T=void 0,C=void 0;switch(c){case"l":i+=d[y++],o+=d[y++],p=s.L,e.addData(p,i,o);break;case"L":i=d[y++],o=d[y++],p=s.L,e.addData(p,i,o);break;case"m":i+=d[y++],o+=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,c="l";break;case"M":i=d[y++],o=d[y++],p=s.M,e.addData(p,i,o),r=i,a=o,c="L";break;case"h":i+=d[y++],p=s.L,e.addData(p,i,o);break;case"H":i=d[y++],p=s.L,e.addData(p,i,o);break;case"v":o+=d[y++],p=s.L,e.addData(p,i,o);break;case"V":o=d[y++],p=s.L,e.addData(p,i,o);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],o=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o,d[y++]+i,d[y++]+o),i+=d[y-2],o+=d[y-1];break;case"S":m=i,v=o,T=e.len(),C=e.data,n===s.C&&(m+=i-C[T-4],v+=o-C[T-3]),p=s.C,M=d[y++],I=d[y++],i=d[y++],o=d[y++],e.addData(p,m,v,M,I,i,o);break;case"s":m=i,v=o,T=e.len(),C=e.data,n===s.C&&(m+=i-C[T-4],v+=o-C[T-3]),p=s.C,M=i+d[y++],I=o+d[y++],i+=d[y++],o+=d[y++],e.addData(p,m,v,M,I,i,o);break;case"Q":M=d[y++],I=d[y++],i=d[y++],o=d[y++],p=s.Q,e.addData(p,M,I,i,o);break;case"q":M=d[y++]+i,I=d[y++]+o,i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,M,I,i,o);break;case"T":m=i,v=o,T=e.len(),C=e.data,n===s.Q&&(m+=i-C[T-4],v+=o-C[T-3]),i=d[y++],o=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case"t":m=i,v=o,T=e.len(),C=e.data,n===s.Q&&(m+=i-C[T-4],v+=o-C[T-3]),i+=d[y++],o+=d[y++],p=s.Q,e.addData(p,m,v,i,o);break;case"A":_=d[y++],x=d[y++],b=d[y++],w=d[y++],S=d[y++],cu(M=i,I=o,i=d[y++],o=d[y++],w,S,_,x,b,p=s.A,e);break;case"a":_=d[y++],x=d[y++],b=d[y++],w=d[y++],S=d[y++],cu(M=i,I=o,i+=d[y++],o+=d[y++],w,S,_,x,b,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),i=r,o=a),n=p}e.toStatic()}}return e}(t),t=V({},e);return t.buildPath=function(t){var e;mu(t)?(t.setData(S.data),(e=t.getContext())&&t.rebuildPath(e,1)):S.rebuildPath(e=t,1)},t.applyTransform=function(t){var e=S,n=t;if(n){for(var i,o,r,a,s=e.data,l=e.len(),u=tu.M,h=tu.C,c=tu.L,p=tu.R,d=tu.A,f=tu.Q,g=0,y=0;g<l;){switch(i=s[g++],y=g,o=0,i){case u:case c:o=1;break;case h:o=3;break;case f:o=2;break;case d:var m=n[4],v=n[5],_=nu(n[0]*n[0]+n[1]*n[1]),x=nu(n[2]*n[2]+n[3]*n[3]),b=iu(-n[1]/x,n[0]/_);s[g]*=_,s[g++]+=m,s[g]*=x,s[g++]+=v,s[g++]*=_,s[g++]*=x,s[g++]+=b,s[g++]+=b,y=g+=2;break;case p:a[0]=s[g++],a[1]=s[g++],ne(a,a,n),s[y++]=a[0],s[y++]=a[1],a[0]+=s[g++],a[1]+=s[g++],ne(a,a,n),s[y++]=a[0],s[y++]=a[1]}for(r=0;r<o;r++){var w=eu[r];w[0]=s[g++],w[1]=s[g++],ne(w,w,n),s[y++]=w[0],s[y++]=w[1]}}e.increaseVersion()}this.dirtyShape()},t}var _u,xu=function(){this.cx=0,this.cy=0,this.r=0},bu=(u(wu,_u=j),wu.prototype.getDefaultShape=function(){return new xu},wu.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},wu);function wu(t){return _u.call(this,t)||this}bu.prototype.type="circle";var Su,Mu=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},e=(u(Iu,Su=j),Iu.prototype.getDefaultShape=function(){return new Mu},Iu.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=e.rx,e=e.ry,r=.5522848*o,a=.5522848*e;t.moveTo(n-o,i),t.bezierCurveTo(n-o,i-a,n-r,i-e,n,i-e),t.bezierCurveTo(n+r,i-e,n+o,i-a,n+o,i),t.bezierCurveTo(n+o,i+a,n+r,i+e,n,i+e),t.bezierCurveTo(n-r,i+e,n-o,i+a,n-o,i),t.closePath()},Iu);function Iu(t){return Su.call(this,t)||this}e.prototype.type="ellipse";var Tu=Math.PI,Cu=2*Tu,Du=Math.sin,ku=Math.cos,Au=Math.acos,Lu=Math.atan2,Pu=Math.abs,Ou=Math.sqrt,Nu=Math.max,Ru=Math.min,Eu=1e-4;function zu(t,e,n,i,o,r,a){var s=t-n,l=e-i,a=(a?r:-r)/Ou(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=n+l,n=i+a,i=(s+e)/2,u=(t+n)/2,h=e-s,c=n-t,p=h*h+c*c,r=o-r,s=s*n-e*t,n=(c<0?-1:1)*Ou(Nu(0,r*r*p-s*s)),e=(s*c-h*n)/p,t=(-s*h-c*n)/p,d=(s*c+h*n)/p,s=(-s*h+c*n)/p,h=e-i,c=t-u,n=d-i,p=s-u;return n*n+p*p<h*h+c*c&&(e=d,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(o/r-1),y1:t*(o/r-1)}}function Bu(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x,b,w,S,M,I,T,C,D,k,A,L,P=Nu(e.r,0),O=Nu(e.r0||0,0),N=0<P;(N||0<O)&&(N||(P=O,O=0),P<O&&(N=P,P=O,O=N),N=e.startAngle,n=e.endAngle,isNaN(N)||isNaN(n)||(i=e.cx,o=e.cy,r=!!e.clockwise,m=Pu(n-N),Eu<(a=Cu<m&&m%Cu)&&(m=a),Eu<P?Cu-Eu<m?(t.moveTo(i+P*ku(N),o+P*Du(N)),t.arc(i,o,P,N,n,!r),Eu<O&&(t.moveTo(i+O*ku(n),o+O*Du(n)),t.arc(i,o,O,n,N,r))):(S=w=b=x=_=v=c=h=C=T=I=M=u=l=s=a=void 0,p=P*ku(N),d=P*Du(N),f=O*ku(n),g=O*Du(n),(y=Eu<m)&&((e=e.cornerRadius)&&(a=(e=function(t){if(F(t)){var e=t.length;if(!e)return t;e=1===e?[t[0],t[0],0,0]:2===e?[t[0],t[0],t[1],t[1]]:3===e?t.concat(t[2]):t}else e=[t,t,t,t];return e}(e))[0],s=e[1],l=e[2],u=e[3]),e=Pu(P-O)/2,M=Ru(e,l),I=Ru(e,u),T=Ru(e,a),C=Ru(e,s),v=h=Nu(M,I),_=c=Nu(T,C),Eu<h||Eu<c)&&(x=P*ku(n),b=P*Du(n),w=O*ku(N),S=O*Du(N),m<Tu)&&(e=function(t,e,n,i,o,r,a,s){var l=(s=s-r)*(n=n-t)-(a=a-o)*(i=i-e);if(!(l*l<Eu))return[t+(l=(a*(e-r)-s*(t-o))/l)*n,e+l*i]}(p,d,w,S,x,b,f,g))&&(M=p-e[0],I=d-e[1],T=x-e[0],C=b-e[1],m=1/Du(Au((M*T+I*C)/(Ou(M*M+I*I)*Ou(T*T+C*C)))/2),M=Ou(e[0]*e[0]+e[1]*e[1]),v=Ru(h,(P-M)/(1+m)),_=Ru(c,(O-M)/(m-1))),y?Eu<v?(D=Ru(l,v),k=Ru(u,v),A=zu(w,S,p,d,P,D,r),L=zu(x,b,f,g,P,k,r),t.moveTo(i+A.cx+A.x0,o+A.cy+A.y0),v<h&&D===k?t.arc(i+A.cx,o+A.cy,v,Lu(A.y0,A.x0),Lu(L.y0,L.x0),!r):(0<D&&t.arc(i+A.cx,o+A.cy,D,Lu(A.y0,A.x0),Lu(A.y1,A.x1),!r),t.arc(i,o,P,Lu(A.cy+A.y1,A.cx+A.x1),Lu(L.cy+L.y1,L.cx+L.x1),!r),0<k&&t.arc(i+L.cx,o+L.cy,k,Lu(L.y1,L.x1),Lu(L.y0,L.x0),!r))):(t.moveTo(i+p,o+d),t.arc(i,o,P,N,n,!r)):t.moveTo(i+p,o+d),Eu<O&&y?Eu<_?(D=Ru(a,_),A=zu(f,g,x,b,O,-(k=Ru(s,_)),r),L=zu(p,d,w,S,O,-D,r),t.lineTo(i+A.cx+A.x0,o+A.cy+A.y0),_<c&&D===k?t.arc(i+A.cx,o+A.cy,_,Lu(A.y0,A.x0),Lu(L.y0,L.x0),!r):(0<k&&t.arc(i+A.cx,o+A.cy,k,Lu(A.y0,A.x0),Lu(A.y1,A.x1),!r),t.arc(i,o,O,Lu(A.cy+A.y1,A.cx+A.x1),Lu(L.cy+L.y1,L.cx+L.x1),r),0<D&&t.arc(i+L.cx,o+L.cy,D,Lu(L.y1,L.x1),Lu(L.y0,L.x0),!r))):(t.lineTo(i+f,o+g),t.arc(i,o,O,n,N,r)):t.lineTo(i+f,o+g)):t.moveTo(i,o),t.closePath()))}var Fu,Vu=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Gu=(u(Hu,Fu=j),Hu.prototype.getDefaultShape=function(){return new Vu},Hu.prototype.buildPath=function(t,e){Bu(t,e)},Hu.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},Hu);function Hu(t){return Fu.call(this,t)||this}Gu.prototype.type="sector";var Wu,Xu=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Yu=(u(Uu,Wu=j),Uu.prototype.getDefaultShape=function(){return new Xu},Uu.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,o,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,o,!0)},Uu);function Uu(t){return Wu.call(this,t)||this}function Zu(t,e,n){var i=e.smooth,o=e.points;if(o&&2<=o.length){if(i)for(var r=function(t,e,n,i){var o,r,a=[],s=[],l=[],u=[];if(i){for(var h=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)ie(h,h,t[p]),oe(c,c,t[p]);ie(h,h,i[0]),oe(c,c,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)o=t[p?p-1:d-1],r=t[(p+1)%d];else{if(0===p||p===d-1){a.push(Ht(t[p]));continue}o=t[p-1],r=t[p+1]}Ut(s,r,o),jt(s,s,e);var g=$t(f,o),y=$t(f,r),m=g+y,m=(0!==m&&(g/=m,y/=m),jt(l,s,-g),jt(u,s,y),Xt([],f,l)),g=Xt([],f,u);i&&(oe(m,m,h),ie(m,m,c),oe(g,g,h),ie(g,g,c)),a.push(m),a.push(g)}return n&&a.push(a.shift()),a}(o,i,n,e.smoothConstraint),a=(t.moveTo(o[0][0],o[0][1]),o.length),s=0;s<(n?a:a-1);s++){var l=r[2*s],u=r[2*s+1],h=o[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}else{t.moveTo(o[0][0],o[0][1]);for(var s=1,c=o.length;s<c;s++)t.lineTo(o[s][0],o[s][1])}n&&t.closePath()}}Yu.prototype.type="ring";var qu,ju=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Ku=(u($u,qu=j),$u.prototype.getDefaultShape=function(){return new ju},$u.prototype.buildPath=function(t,e){Zu(t,e,!0)},$u);function $u(t){return qu.call(this,t)||this}Ku.prototype.type="polygon";var Qu,Ju=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},th=(u(eh,Qu=j),eh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},eh.prototype.getDefaultShape=function(){return new Ju},eh.prototype.buildPath=function(t,e){Zu(t,e,!1)},eh);function eh(t){return Qu.call(this,t)||this}th.prototype.type="polyline";var nh,ih={},oh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},rh=(u(ah,nh=j),ah.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},ah.prototype.getDefaultShape=function(){return new oh},ah.prototype.buildPath=function(t,e){r=(this.subPixelOptimize?(n=(r=Ns(ih,e,this.style)).x1,i=r.y1,o=r.x2,r):(n=e.x1,i=e.y1,o=e.x2,e)).y2;var n,i,o,r,e=e.percent;0!==e&&(t.moveTo(n,i),e<1&&(o=n*(1-e)+o*e,r=i*(1-e)+r*e),t.lineTo(o,r))},ah.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},ah);function ah(t){return nh.call(this,t)||this}rh.prototype.type="line";var sh=[],lh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function uh(t,e,n){var i=t.cpx2,o=t.cpy2;return null!=i||null!=o?[(n?Gn:Vn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Gn:Vn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Zn:Un)(t.x1,t.cpx1,t.x2,e),(n?Zn:Un)(t.y1,t.cpy1,t.y2,e)]}u(ph,hh=j),ph.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},ph.prototype.getDefaultShape=function(){return new lh},ph.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,o=e.x2,r=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,u=e.cpy2,e=e.percent;0!==e&&(t.moveTo(n,i),null==l||null==u?(e<1&&(jn(n,a,o,e,sh),a=sh[1],o=sh[2],jn(i,s,r,e,sh),s=sh[1],r=sh[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(Xn(n,a,l,o,e,sh),a=sh[1],l=sh[2],o=sh[3],Xn(i,s,u,r,e,sh),s=sh[1],u=sh[2],r=sh[3]),t.bezierCurveTo(a,s,l,u,o,r)))},ph.prototype.pointAt=function(t){return uh(this.shape,t,!1)},ph.prototype.tangentAt=function(t){t=uh(this.shape,t,!0);return Kt(t,t)};var hh,ch=ph;function ph(t){return hh.call(this,t)||this}ch.prototype.type="bezier-curve";var dh,fh=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},gh=(u(yh,dh=j),yh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},yh.prototype.getDefaultShape=function(){return new fh},yh.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r,0),r=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(r),l=Math.sin(r);t.moveTo(s*o+n,l*o+i),t.arc(n,i,o,r,a,!e)},yh);function yh(t){return dh.call(this,t)||this}gh.prototype.type="arc";u(_h,mh=j),_h.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n<t.length;n++)e=e||t[n].shapeChanged();e&&this.dirtyShape()},_h.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),n=0;n<t.length;n++)t[n].path||t[n].createPathProxy(),t[n].path.setScale(e[0],e[1],t[n].segmentIgnoreThreshold)},_h.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},_h.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},_h.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),j.prototype.getBoundingRect.call(this)};var mh,vh=_h;function _h(){var t=null!==mh&&mh.apply(this,arguments)||this;return t.type="compound",t}bh.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var xh=bh;function bh(t){this.colorStops=t||[]}u(Mh,wh=xh);var wh,Sh=Mh;function Mh(t,e,n,i,o,r){o=wh.call(this,o)||this;return o.x=null==t?0:t,o.y=null==e?0:e,o.x2=null==n?1:n,o.y2=null==i?0:i,o.type="linear",o.global=r||!1,o}u(Th,Ih=xh);var Ih,xh=Th;function Th(t,e,n,i,o){i=Ih.call(this,i)||this;return i.x=null==t?.5:t,i.y=null==e?.5:e,i.r=null==n?.5:n,i.type="radial",i.global=o||!1,i}var Ch=[0,0],Dh=[0,0],kh=new E,Ah=new E,Lh=(Ph.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,o=t.x,r=t.y,a=o+t.width,t=r+t.height;if(n[0].set(o,r),n[1].set(a,r),n[2].set(a,t),n[3].set(o,t),e)for(var s=0;s<4;s++)n[s].transform(e);E.sub(i[0],n[1],n[0]),E.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(s=0;s<2;s++)this._origin[s]=i[s].dot(n[0])},Ph.prototype.intersect=function(t,e){var n=!0,i=!e;return kh.set(1/0,1/0),Ah.set(0,0),!this._intersectCheckOneSide(this,t,kh,Ah,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,kh,Ah,i,-1)&&(n=!1,i)||i||E.copy(e,n?kh:Ah),n},Ph.prototype._intersectCheckOneSide=function(t,e,n,i,o,r){for(var a=!0,s=0;s<2;s++){var l=this._axes[s];if(this._getProjMinMaxOnAxis(s,t._corners,Ch),this._getProjMinMaxOnAxis(s,e._corners,Dh),Ch[1]<Dh[0]||Dh[1]<Ch[0]){if(a=!1,o)return a;var u=Math.abs(Dh[0]-Ch[1]),h=Math.abs(Ch[0]-Dh[1]);Math.min(u,h)>i.len()&&(u<h?E.scale(i,l,-u*r):E.scale(i,l,h*r))}else n&&(u=Math.abs(Dh[0]-Ch[1]),h=Math.abs(Ch[0]-Dh[1]),Math.min(u,h)<n.len())&&(u<h?E.scale(n,l,u*r):E.scale(n,l,-h*r))}return a},Ph.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],o=this._origin,r=e[0].dot(i)+o[t],a=r,s=r,l=1;l<e.length;l++)var u=e[l].dot(i)+o[t],a=Math.min(u,a),s=Math.max(u,s);n[0]=a,n[1]=s},Ph);function Ph(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new E;for(n=0;n<2;n++)this._axes[n]=new E;t&&this.fromBoundingRect(t,e)}var Oh,Nh=[],Rh=(u(Eh,Oh=Ta),Eh.prototype.traverse=function(t,e){t.call(e,this)},Eh.prototype.useStyle=function(){this.style={}},Eh.prototype.getCursor=function(){return this._cursor},Eh.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},Eh.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},Eh.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},Eh.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},Eh.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},Eh.prototype.getDisplayables=function(){return this._displayables},Eh.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},Eh.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},Eh.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++)(e=this._displayables[t]).parent=this,e.update(),e.parent=null;for(var e,t=0;t<this._temporaryDisplayables.length;t++)(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null},Eh.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Z(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(Nh)),t.union(i)}this._rect=t}return this._rect},Eh.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},Eh);function Eh(){var t=null!==Oh&&Oh.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}var zh=zr();function Bh(t,e,n,i,o){var r;e&&e.ecModel&&(r=(r=e.ecModel.getUpdatePayload())&&r.animation);var a,s,l,t="update"===t;return e&&e.isAnimationEnabled()?(l=s=a=void 0,l=i?(a=O(i.duration,200),s=O(i.easing,"cubicOut"),0):(a=e.getShallow(t?"animationDurationUpdate":"animationDuration"),s=e.getShallow(t?"animationEasingUpdate":"animationEasing"),e.getShallow(t?"animationDelayUpdate":"animationDelay")),C(l=r&&(null!=r.duration&&(a=r.duration),null!=r.easing&&(s=r.easing),null!=r.delay)?r.delay:l)&&(l=l(n,o)),{duration:(a=C(a)?a(n):a)||0,delay:l,easing:s}):null}function Fh(t,e,n,i,o,r,a){var s=!1,l=(C(o)?(a=r,r=o,o=null):P(o)&&(r=o.cb,a=o.during,s=o.isFrom,u=o.removeOpt,o=o.dataIndex),"leave"===t),u=(l||e.stopAnimation("leave"),Bh(t,i,o,l?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null));u&&0<u.duration?(i={duration:u.duration,delay:u.delay||0,easing:u.easing,done:r,force:!!r||!!a,setToFinal:!l,scope:t,during:a},s?e.animateFrom(n,i):e.animateTo(n,i)):(e.stopAnimation(),s||e.attr(n),a&&a(1),r&&r())}function Vh(t,e,n,i,o,r){Fh("update",t,e,n,i,o,r)}function Gh(t,e,n,i,o,r){Fh("enter",t,e,n,i,o,r)}function Hh(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function Wh(t,e,n,i,o,r){Hh(t)||Fh("leave",t,e,n,i,o,r)}function Xh(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),Wh(t,{style:{opacity:0}},e,n,i)}function Yh(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||Xh(t,e,n,i)}):Xh(t,e,n,i)}function Uh(t){zh(t).oldStyle=t.style}var Zh=Math.max,qh=Math.min,jh={};function Kh(t){return j.extend(t)}var $h=function(t,e){var n,i=vu(t,e);function o(t){t=n.call(this,t)||this;return t.applyTransform=i.applyTransform,t.buildPath=i.buildPath,t}return u(o,n=gu),o};function Qh(t,e){return $h(t,e)}function Jh(t,e){jh[t]=e}function tc(t){if(jh.hasOwnProperty(t))return jh[t]}function ec(t,e,n,i){t=new gu(vu(t,e));return n&&("center"===i&&(n=ic(n,t.getBoundingRect())),rc(t,n)),t}function nc(t,e,n){var i=new Ls({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===n&&(t={width:t.width,height:t.height},i.setStyle(ic(e,t)))}});return i}function ic(t,e){var e=e.width/e.height,n=t.height*e,e=n<=t.width?t.height:(n=t.width)/e;return{x:t.x+t.width/2-n/2,y:t.y+t.height/2-e/2,width:n,height:e}}var oc=function(t,e){for(var n=[],i=t.length,o=0;o<i;o++){var r=t[o];n.push(r.getUpdatedPathProxy(!0))}return(e=new j(e)).createPathProxy(),e.buildPath=function(t){var e;mu(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},e};function rc(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function ac(t,e){return Ns(t,t,{lineWidth:e}),t}var sc=Es;function lc(t,e){for(var n=Re([]);t&&t!==e;)ze(n,t.getLocalTransform(),n),t=t.parent;return n}function uc(t,e,n){return e&&!lt(e)&&(e=So.getLocalTransform(e)),ne([],t,e=n?Ge([],e):e)}function hc(t){return!t.isGroup}function cc(t,e,i){var o,n;function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=V({},t.shape)),e}t&&e&&(n={},t.traverse(function(t){hc(t)&&t.anid&&(n[t.anid]=t)}),o=n,e.traverse(function(t){var e,n;hc(t)&&t.anid&&(e=o[t.anid])&&(n=r(t),t.attr(r(e)),Vh(t,n,i,D(t).dataIndex))}))}function pc(t,n){return B(t,function(t){var e=t[0],e=Zh(e,n.x),t=(e=qh(e,n.x+n.width),t[1]),t=Zh(t,n.y);return[e,qh(t,n.y+n.height)]})}function dc(t,e){var n=Zh(t.x,e.x),i=qh(t.x+t.width,e.x+e.width),o=Zh(t.y,e.y),t=qh(t.y+t.height,e.y+e.height);if(n<=i&&o<=t)return{x:n,y:o,width:i-n,height:t-o}}function fc(t,e,n){var e=V({rectHover:!0},e),i=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),z(i,n),new Ls(e)):ec(t.replace("path://",""),e,n,"center")}function gc(t,e,n,i,o,r,a,s){var l,n=n-t,i=i-e,a=a-o,s=s-r,u=a*i-n*s;return!((l=u)<=1e-6&&-1e-6<=l||(o=((l=t-o)*i-n*(t=e-r))/u)<0||1<o||(i=(l*s-a*t)/u)<0||1<i)}function yc(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,e=X(e)?{formatter:e}:e,o=n.mainType,n=n.componentIndex,r={componentType:o,name:i,$vars:["name"]},a=(r[o+"Index"]=n,t.formatterParamsExtra),t=(a&&H(W(a),function(t){U(r,t)||(r[t]=a[t],r.$vars.push(t))}),D(t.el));t.componentMainType=o,t.componentIndex=n,t.tooltipConfig={name:i,option:z({content:i,formatterParams:r},e)}}function mc(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function vc(t,e){if(t)if(F(t))for(var n=0;n<t.length;n++)mc(t[n],e);else mc(t,e)}Jh("circle",bu),Jh("ellipse",e),Jh("sector",Gu),Jh("ring",Yu),Jh("polygon",Ku),Jh("polyline",th),Jh("rect",Vs),Jh("line",rh),Jh("bezierCurve",ch),Jh("arc",gh);var _c=Object.freeze({__proto__:null,Arc:gh,BezierCurve:ch,BoundingRect:Z,Circle:bu,CompoundPath:vh,Ellipse:e,Group:Zo,Image:Ls,IncrementalDisplayable:Rh,Line:rh,LinearGradient:Sh,OrientedBoundingRect:Lh,Path:j,Point:E,Polygon:Ku,Polyline:th,RadialGradient:xh,Rect:Vs,Ring:Yu,Sector:Gu,Text:Ys,applyTransform:uc,clipPointsByRect:pc,clipRectByRect:dc,createIcon:fc,extendPath:Qh,extendShape:Kh,getShapeClass:tc,getTransform:lc,groupTransition:cc,initProps:Gh,isElementRemoved:Hh,lineLineIntersect:gc,linePolygonIntersect:function(t,e,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(gc(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:nc,makePath:ec,mergePath:oc,registerShape:Jh,removeElement:Wh,removeElementWithFadeOut:Yh,resizePath:rc,setTooltipConfig:yc,subPixelOptimize:sc,subPixelOptimizeLine:ac,subPixelOptimizeRect:function(t){return Rs(t.shape,t.shape,t.style),t},transformDirection:function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),o=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),i=uc(["left"===t?-i:"right"===t?i:0,"top"===t?-o:"bottom"===t?o:0],e,n);return Math.abs(i[0])>Math.abs(i[1])?0<i[0]?"right":"left":0<i[1]?"bottom":"top"},traverseElements:vc,updateProps:Vh}),xc={};function bc(t,e){for(var n=0;n<hl.length;n++){var i=hl[n],o=e[i],i=t.ensureState(i);i.style=i.style||{},i.style.text=o}var r=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(r,!0)}function wc(t,e,n){for(var i,o=t.labelFetcher,r=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:i=null==(i=o?o.getFormattedLabel(r,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):i)?C(t.defaultText)?t.defaultText(r,t,n):t.defaultText:i},u=0;u<hl.length;u++){var h=hl[u],c=e[h];l[h]=O(o?o.getFormattedLabel(r,h,null,a,c&&c.get("formatter")):null,i)}return l}function Sc(t,e,n,i){n=n||xc;for(var o=t instanceof Ys,r=!1,a=0;a<cl.length;a++)if((p=e[cl[a]])&&p.getShallow("show")){r=!0;break}var s=o?t:t.getTextContent();if(r){o||(s||(s=new Ys,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=wc(n,e),u=e.normal,h=!!u.getShallow("show"),c=Ic(u,i&&i.normal,n,!1,!o);c.text=l.normal,o||t.setTextConfig(Tc(u,n,!1));for(a=0;a<hl.length;a++){var p,d,f,g=hl[a];(p=e[g])&&(d=s.ensureState(g),(f=!!O(p.getShallow("show"),h))!=h&&(d.ignore=!f),d.style=Ic(p,i&&i[g],n,!0,!o),d.style.text=l[g],o||(t.ensureState(g).textConfig=Tc(p,n,!0)))}s.silent=!!u.getShallow("silent"),null!=s.style.x&&(c.x=s.style.x),null!=s.style.y&&(c.y=s.style.y),s.ignore=!h,s.useStyle(c),s.dirty(),n.enableTextSetter&&(Pc(s).setLabelText=function(t){t=wc(n,e,t);bc(s,t)})}else s&&(s.ignore=!0);t.dirty()}function Mc(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<hl.length;i++){var o=hl[i];n[o]=t.getModel([o,e])}return n}function Ic(t,e,n,i,o){var r,a={},s=a,l=t,u=n,h=i,c=o;u=u||xc;var p,t=l.ecModel,d=t&&t.option.textStyle,f=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||xc).rich;if(n){e=e||{};for(var i=W(n),o=0;o<i.length;o++){var r=i[o];e[r]=1}}t=t.parentModel}return e}(l);if(f)for(var g in p={},f)f.hasOwnProperty(g)&&(r=l.getModel(["rich",g]),Ac(p[g]={},r,d,u,h,c,!1,!0));return p&&(s.rich=p),(t=l.get("overflow"))&&(s.overflow=t),null!=(t=l.get("minMargin"))&&(s.margin=t),Ac(s,l,d,u,h,c,!0,!1),e&&V(a,e),a}function Tc(t,e,n){e=e||{};var i={},o=t.getShallow("rotate"),r=O(t.getShallow("distance"),n?null:5),a=t.getShallow("offset"),n=t.getShallow("position")||(n?null:"inside");return null!=(n="outside"===n?e.defaultOutsidePosition||"top":n)&&(i.position=n),null!=a&&(i.offset=a),null!=o&&(o*=Math.PI/180,i.rotation=o),null!=r&&(i.distance=r),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",i}var Cc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Dc=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],kc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Ac(t,e,n,i,o,r,a,s){n=!o&&n||xc;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=O(e.getShallow("opacity"),n.opacity),u=("inherit"!==u&&"auto"!==u||(u=l||null),"inherit"!==h&&"auto"!==h||(h=l||null),r||(u=u||n.color,h=h||n.textBorderColor),null!=u&&(t.fill=u),null!=h&&(t.stroke=h),O(e.getShallow("textBorderWidth"),n.textBorderWidth)),h=(null!=u&&(t.lineWidth=u),O(e.getShallow("textBorderType"),n.textBorderType)),u=(null!=h&&(t.lineDash=h),O(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset));null!=u&&(t.lineDashOffset=u),null!=(c=o||null!=c||s?c:i&&i.defaultOpacity)&&(t.opacity=c),o||r||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var p=0;p<Cc.length;p++){var d=Cc[p];null!=(f=O(e.getShallow(d),n[d]))&&(t[d]=f)}for(var p=0;p<Dc.length;p++){d=Dc[p];null!=(f=e.getShallow(d))&&(t[d]=f)}if(null==t.verticalAlign&&null!=(h=e.getShallow("baseline"))&&(t.verticalAlign=h),!a||!i.disableBox){for(p=0;p<kc.length;p++){var f,d=kc[p];null!=(f=e.getShallow(d))&&(t[d]=f)}u=e.getShallow("borderType");null!=u&&(t.borderDash=u),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function Lc(t,e){e=e&&e.getModel("textStyle");return It([t.fontStyle||e&&e.getShallow("fontStyle")||"",t.fontWeight||e&&e.getShallow("fontWeight")||"",(t.fontSize||e&&e.getShallow("fontSize")||12)+"px",t.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var Pc=zr();function Oc(n,i,o,t,r){var a,s,l,u=Pc(n);u.valueAnimation&&u.prevValue!==u.value&&(a=u.defaultInterpolatedText,s=O(u.interpolatedValue,u.prevValue),l=u.value,n.percent=0,(null==u.prevValue?Gh:Vh)(n,{percent:1},t,i,null,function(t){var e=Xr(o,u.precision,s,l,t),t=(u.interpolatedValue=1===t?null:e,wc({labelDataIndex:i,labelFetcher:r,defaultText:a?a(e):e+""},u.statesModels,e));bc(n,t)}))}var Nc=["textStyle","color"],Rc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ec=new Ys,sc=(zc.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Nc):null)},zc.prototype.getFont=function(){return Lc({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},zc.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Rc.length;n++)e[Rc[n]]=this.getShallow(Rc[n]);return Ec.useStyle(e),Ec.update(),Ec.getBoundingRect()},zc);function zc(){}var Bc=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Fc=ea(Bc),Vc=(Gc.prototype.getLineStyle=function(t){return Fc(this,t)},Gc);function Gc(){}var Hc=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Wc=ea(Hc),Xc=(Yc.prototype.getItemStyle=function(t,e){return Wc(this,t,e)},Yc);function Yc(){}qc.prototype.init=function(t,e,n){},qc.prototype.mergeOption=function(t,e){d(this.option,t,!0)},qc.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},qc.prototype.getShallow=function(t,e){var n=this.option,n=null==n?n:n[t];return null!=n||e||(e=this.parentModel)&&(n=e.getShallow(t)),n},qc.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new qc(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},qc.prototype.isEmpty=function(){return null==this.option},qc.prototype.restoreData=function(){},qc.prototype.clone=function(){return new this.constructor(y(this.option))},qc.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},qc.prototype.resolveParentPath=function(t){return t},qc.prototype.isAnimationEnabled=function(){if(!w.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},qc.prototype._doGet=function(t,e){var n=this.option;if(t){for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel))}return n};var Uc,Zc=qc;function qc(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}jr(Zc),hp=Zc,Uc=["__\0is_clz",$r++].join("_"),hp.prototype[Uc]=!0,hp.isInstance=function(t){return!(!t||!t[Uc])},st(Zc,Vc),st(Zc,Xc),st(Zc,ia),st(Zc,sc);var jc=Math.round(10*Math.random());function Kc(t){return[t||"",jc++].join("_")}function $c(t,e){return d(d({},t,!0),e,!0)}var Qc="ZH",Jc="EN",tp=Jc,ep={},np={},ip=w.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage||tp).toUpperCase().indexOf(Qc)?Qc:tp;function op(t,e){t=t.toUpperCase(),np[t]=new Zc(e),ep[t]=e}op(Jc,{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:". "}}}}),op(Qc,{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 rp=1e3,ap=60*rp,sp=60*ap,lp=24*sp,$r=365*lp,up={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}"},hp="{yyyy}-{MM}-{dd}",cp={year:"{yyyy}",month:"{yyyy}-{MM}",day:hp,hour:hp+" "+up.hour,minute:hp+" "+up.minute,second:hp+" "+up.second,millisecond:up.none},pp=["year","month","day","hour","minute","second","millisecond"],dp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function fp(t,e){return"0000".substr(0,e-(t+="").length)+t}function gp(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function yp(t,e,n,i){var t=gr(t),o=t[_p(n)](),r=t[xp(n)]()+1,a=Math.floor((r-1)/3)+1,s=t[bp(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[wp(n)](),h=(u-1)%12+1,c=t[Sp(n)](),p=t[Mp(n)](),t=t[Ip(n)](),n=(i instanceof Zc?i:np[i||ip]||np[tp]).getModel("time"),i=n.get("month"),d=n.get("monthAbbr"),f=n.get("dayOfWeek"),n=n.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,fp(o%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,i[r-1]).replace(/{MMM}/g,d[r-1]).replace(/{MM}/g,fp(r,2)).replace(/{M}/g,r+"").replace(/{dd}/g,fp(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,f[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,fp(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,fp(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,fp(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,fp(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,fp(t,3)).replace(/{S}/g,t+"")}function mp(t,e){var t=gr(t),n=t[xp(e)]()+1,i=t[bp(e)](),o=t[wp(e)](),r=t[Sp(e)](),a=t[Mp(e)](),t=0===t[Ip(e)](),e=t&&0===a,a=e&&0===r,r=a&&0===o,o=r&&1===i;return o&&1===n?"year":o?"month":r?"day":a?"hour":e?"minute":t?"second":"millisecond"}function vp(t,e,n){var i=Y(t)?gr(t):t;switch(e=e||mp(t,n)){case"year":return i[_p(n)]();case"half-year":return 6<=i[xp(n)]()?1:0;case"quarter":return Math.floor((i[xp(n)]()+1)/4);case"month":return i[xp(n)]();case"day":return i[bp(n)]();case"half-day":return i[wp(n)]()/24;case"hour":return i[wp(n)]();case"minute":return i[Sp(n)]();case"second":return i[Mp(n)]();case"millisecond":return i[Ip(n)]()}}function _p(t){return t?"getUTCFullYear":"getFullYear"}function xp(t){return t?"getUTCMonth":"getMonth"}function bp(t){return t?"getUTCDate":"getDate"}function wp(t){return t?"getUTCHours":"getHours"}function Sp(t){return t?"getUTCMinutes":"getMinutes"}function Mp(t){return t?"getUTCSeconds":"getSeconds"}function Ip(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Tp(t){return t?"setUTCMonth":"setMonth"}function Cp(t){return t?"setUTCDate":"setDate"}function Dp(t){return t?"setUTCHours":"setHours"}function kp(t){return t?"setUTCMinutes":"setMinutes"}function Ap(t){return t?"setUTCSeconds":"setSeconds"}function Lp(t){return t?"setUTCMilliseconds":"setMilliseconds"}function Pp(t){var e;return xr(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):X(t)?t:"-"}function Op(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t}var Np=St;function Rp(t,e,n){function i(t){return t&&It(t)?t:"-"}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}var r="time"===e,a=t instanceof Date;if(r||a){var r=r?gr(t):t;if(!isNaN(+r))return yp(r,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?pt(t)?i(t):Y(t)&&o(t)?t+"":"-":o(r=_r(t))?Pp(r):pt(t)?i(t):"boolean"==typeof t?t+"":"-"}function Ep(t,e){return"{"+t+(null==e?"":e)+"}"}var zp=["a","b","c","d","e","f","g"];function Bp(t,e,n){var i=(e=F(e)?e:[e]).length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=zp[r];t=t.replace(Ep(a),Ep(a,0))}for(var s=0;s<i;s++)for(var l=0;l<o.length;l++){var u=e[s][o[l]];t=t.replace(Ep(zp[l],s),n?xe(u):u)}return t}function Fp(t,e){var t=X(t)?{color:t,extraCssText:e}:t||{},n=t.color,i=t.type,o=(e=t.extraCssText,t.renderMode||"html");return n?"html"===o?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+xe(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+xe(n)+";"+(e||"")+'"></span>':{renderMode:o,content:"{"+(t.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function Vp(t,e){return e=e||"transparent",X(t)?t:P(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Gp(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var Hp=H,Wp=["left","right","top","bottom","width","height"],Xp=[["width","left","right"],["height","top","bottom"]];function Yp(a,s,l,u,h){var c=0,p=0,d=(null==u&&(u=1/0),null==h&&(h=1/0),0);s.eachChild(function(t,e){var n,i,o,r=t.getBoundingRect(),e=s.childAt(e+1),e=e&&e.getBoundingRect();d="horizontal"===a?(i=r.width+(e?-e.x+r.x:0),u<(n=c+i)||t.newline?(c=0,n=i,p+=d+l,r.height):Math.max(d,r.height)):(i=r.height+(e?-e.y+r.y:0),h<(o=p+i)||t.newline?(c+=d+l,p=0,o=i,r.width):Math.max(d,r.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=o+l)})}var Up=Yp;function Zp(t,e,n){n=Np(n||0);var i=e.width,o=e.height,r=q(t.left,i),a=q(t.top,o),e=q(t.right,i),s=q(t.bottom,o),l=q(t.width,i),u=q(t.height,o),h=n[2]+n[0],c=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-c-r),isNaN(u)&&(u=o-s-h-a),null!=p&&(isNaN(l)&&isNaN(u)&&(i/o<p?l=.8*i:u=.8*o),isNaN(l)&&(l=p*u),isNaN(u))&&(u=l/p),isNaN(r)&&(r=i-e-l-c),isNaN(a)&&(a=o-s-u-h),t.left||t.right){case"center":r=i/2-l/2-n[3];break;case"right":r=i-l-c}switch(t.top||t.bottom){case"middle":case"center":a=o/2-u/2-n[0];break;case"bottom":a=o-u-h}r=r||0,a=a||0,isNaN(l)&&(l=i-c-r-(e||0)),isNaN(u)&&(u=o-h-a-(s||0));p=new Z(r+n[3],a+n[0],l,u);return p.margin=n,p}function qp(t){t=t.layoutMode||t.constructor.layoutMode;return P(t)?t:t?{type:t}:null}function jp(l,u,t){var h=t&&t.ignoreSize,t=(F(h)||(h=[h,h]),n(Xp[0],0)),e=n(Xp[1],1);function n(t,e){var n={},i=0,o={},r=0;if(Hp(t,function(t){o[t]=l[t]}),Hp(t,function(t){c(u,t)&&(n[t]=o[t]=u[t]),p(n,t)&&i++,p(o,t)&&r++}),h[e])p(u,t[1])?o[t[2]]=null:p(u,t[2])&&(o[t[1]]=null);else if(2!==r&&i){if(!(2<=i))for(var a=0;a<t.length;a++){var s=t[a];if(!c(n,s)&&c(l,s)){n[s]=l[s];break}}return n}return o}function c(t,e){return t.hasOwnProperty(e)}function p(t,e){return null!=t[e]&&"auto"!==t[e]}function i(t,e,n){Hp(t,function(t){e[t]=n[t]})}i(Xp[0],l,t),i(Xp[1],l,e)}function Kp(t){return $p({},t)}function $p(e,n){return n&&e&&Hp(Wp,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e}M(Yp,"vertical"),M(Yp,"horizontal");var Qp,Jp,td,ed,nd=zr(),g=(u(id,Qp=Zc),id.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},id.prototype.mergeDefaultAndTheme=function(t,e){var n=qp(this),i=n?Kp(t):{};d(t,e.getTheme().get(this.mainType)),d(t,this.getDefaultOption()),n&&jp(t,i,n)},id.prototype.mergeOption=function(t,e){d(this.option,t,!0);var n=qp(this);n&&jp(this.option,t,n)},id.prototype.optionUpdated=function(t,e){},id.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[Zr])return t.defaultOption;var e=nd(this);if(!e.defaultOption){for(var n=[],i=t;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var r={},a=n.length-1;0<=a;a--)r=d(r,n[a],!0);e.defaultOption=r}return e.defaultOption},id.prototype.getReferringComponents=function(t,e){var n=t+"Id";return Hr(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},id.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},id.prototype.getZLevelKey=function(){return""},id.prototype.setZLevel=function(t){this.option.zlevel=t},id.protoInitialize=((Vc=id.prototype).type="component",Vc.id="",Vc.name="",Vc.mainType="",Vc.subType="",void(Vc.componentIndex=0)),id);function id(t,e,n){t=Qp.call(this,t,e,n)||this;return t.uid=Kc("ec_cpt_model"),t}function od(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}Kr(g,Zc),ta(g),td={},(Jp=g).registerSubTypeDefaulter=function(t,e){t=qr(t);td[t.main]=e},Jp.determineSubType=function(t,e){var n,i=e.type;return i||(n=qr(t).main,Jp.hasSubTypes(t)&&td[n]&&(i=td[n](e))),i},ed=function(t){var e=[];H(g.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=B(e,function(t){return qr(t).main}),"dataset"!==t&&G(e,"dataset")<=0&&e.unshift("dataset");return e},g.topologicalTravel=function(t,e,n,i){if(t.length){a={},s=[],H(r=e,function(n){var e,i,o=od(a,n),t=o.originalDeps=ed(n),t=(e=r,i=[],H(t,function(t){0<=G(e,t)&&i.push(t)}),i);o.entryCount=t.length,0===o.entryCount&&s.push(n),H(t,function(t){G(o.predecessor,t)<0&&o.predecessor.push(t);var e=od(a,t);G(e.successor,t)<0&&e.successor.push(n)})});var r,a,s,e={graph:a,noEntryList:s},o=e.graph,l=e.noEntryList,u={};for(H(t,function(t){u[t]=!0});l.length;){var h=l.pop(),c=o[h],p=!!u[h];p&&(n.call(i,h,c.originalDeps.slice()),delete u[h]),H(c.successor,p?f:d)}H(u,function(){throw new Error("")})}function d(t){o[t].entryCount--,0===o[t].entryCount&&l.push(t)}function f(t){u[t]=!0,d(t)}};var Xc="",ia=("undefined"!=typeof navigator&&(Xc=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),rd={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ia,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ia,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ia,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ia,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ia,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ia,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Xc.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},ad=N(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),sd="original",ld="arrayRows",ud="objectRows",hd="keyedColumns",cd="typedArray",pd="unknown",dd="column",fd="row",gd={Must:1,Might:2,Not:3},yd=zr();function md(n,t,e){var o,r,a,i,s,l={},u=_d(t);return u&&n&&(o=[],r=[],t=t.ecModel,t=yd(t).datasetMap,u=u.uid+"_"+e.seriesLayoutBy,H(n=n.slice(),function(t,e){t=P(t)?t:n[e]={name:t};"ordinal"===t.type&&null==a&&(a=e,i=c(t)),l[t.name]=[]}),s=t.get(u)||t.set(u,{categoryWayDim:i,valueWayDim:0}),H(n,function(t,e){var n,i=t.name,t=c(t);null==a?(n=s.valueWayDim,h(l[i],n,t),h(r,n,t),s.valueWayDim+=t):a===e?(h(l[i],0,t),h(o,0,t)):(n=s.categoryWayDim,h(l[i],n,t),h(r,n,t),s.categoryWayDim+=t)}),o.length&&(l.itemName=o),r.length)&&(l.seriesName=r),l;function h(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function c(t){t=t.dimsDef;return t?t.length:1}}function vd(t,l,u){var h,c,p,e={};return _d(t)&&(h=l.sourceFormat,c=l.dimensionsDefine,h!==ud&&h!==hd||H(c,function(t,e){"name"===(P(t)?t.name:t)&&(p=e)}),t=function(){for(var t={},e={},n=[],i=0,o=Math.min(5,u);i<o;i++){var r=bd(l.data,h,l.seriesLayoutBy,c,l.startIndex,i),a=(n.push(r),r===gd.Not);if(a&&null==t.v&&i!==p&&(t.v=i),null!=t.n&&t.n!==t.v&&(a||n[t.n]!==gd.Not)||(t.n=i),s(t)&&n[t.n]!==gd.Not)return t;a||(r===gd.Might&&null==e.v&&i!==p&&(e.v=i),null!=e.n&&e.n!==e.v)||(e.n=i)}function s(t){return null!=t.v&&null!=t.n}return s(t)?t:s(e)?e:null}())&&(e.value=[t.v],t=null!=p?p:t.n,e.itemName=[t],e.seriesName=[t]),e}function _d(t){if(!t.get("data",!0))return Hr(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},Gr).models[0]}function xd(t,e){return bd(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function bd(t,e,n,i,o,r){var a,s,l;if(!ft(t)){if(i&&(P(i=i[r])?(s=i.name,l=i.type):X(i)&&(s=i)),null!=l)return"ordinal"===l?gd.Must:gd.Not;if(e===ld){var u=t;if(n===fd){for(var h=u[r],c=0;c<(h||[]).length&&c<5;c++)if(null!=(a=m(h[o+c])))return a}else for(c=0;c<u.length&&c<5;c++){var p=u[o+c];if(p&&null!=(a=m(p[r])))return a}}else if(e===ud){var d=t;if(!s)return gd.Not;for(c=0;c<d.length&&c<5;c++)if((g=d[c])&&null!=(a=m(g[s])))return a}else if(e===hd){if(!s)return gd.Not;if(!(h=t[s])||ft(h))return gd.Not;for(c=0;c<h.length&&c<5;c++)if(null!=(a=m(h[c])))return a}else if(e===sd)for(var f=t,c=0;c<f.length&&c<5;c++){var g,y=Dr(g=f[c]);if(!F(y))return gd.Not;if(null!=(a=m(y[r])))return a}}return gd.Not;function m(t){var e=X(t);return null!=t&&isFinite(t)&&""!==t?e?gd.Might:gd.Not:e&&"-"!==t?gd.Must:void 0}}var wd=N();var Sd,Md,Id,Td=zr(),Cd=(zr(),Dd.prototype.getColorFromPalette=function(t,e,n){var i=Ir(this.get("color",!0)),o=this.get("colorLayer",!0),r=this,a=Td;return a=a(e=e||r),r=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(o=(o=n==null||!o?i:kd(o,n))||i)&&o.length?(n=o[r],t&&(e[t]=n),a.paletteIdx=(r+1)%o.length,n):void 0},Dd.prototype.clearColorPalette=function(){var t,e;(e=Td)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Dd);function Dd(){}function kd(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}var Ad,Ld="\0_ec_inner",Pd=(u(Od,Ad=Zc),Od.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new Zc(i),this._locale=new Zc(o),this._optionManager=r},Od.prototype.setOption=function(t,e,n){e=Ed(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},Od.prototype.resetOption=function(t,e){return this._resetOption(t,Ed(e))},Od.prototype._resetOption=function(t,e){var n,i=!1,o=this._optionManager;return t&&"recreate"!==t||(n=o.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Id(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=o.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=o.getMediaOption(this)).length&&H(n,function(t){i=!0,this._mergeOption(t,e)},this),i},Od.prototype.mergeOption=function(t){this._mergeOption(t,null)},Od.prototype._mergeOption=function(i,t){var o=this.option,h=this._componentsMap,c=this._componentsCount,n=[],r=N(),p=t&&t.replaceMergeMainTypeMap;yd(this).datasetMap=N(),H(i,function(t,e){null!=t&&(g.hasClass(e)?e&&(n.push(e),r.set(e,!0)):o[e]=null==o[e]?y(t):d(o[e],t,!0))}),p&&p.each(function(t,e){g.hasClass(e)&&!r.get(e)&&(n.push(e),r.set(e,!0))}),g.topologicalTravel(n,g.getAllClassMainTypes(),function(r){var a,t=function(t,e,n){return(e=(e=wd.get(e))&&e(t))?n.concat(e):n}(this,r,Ir(i[r])),e=h.get(r),n=e?p&&p.get(r)?"replaceMerge":"normalMerge":"replaceAll",e=kr(e,t,n),s=(Rr(e,r,g),o[r]=null,h.set(r,null),c.set(r,0),[]),l=[],u=0;H(e,function(t,e){var n=t.existing,i=t.newOption;if(i){var o=g.getClass(r,t.keyInfo.subType,!("series"===r));if(!o)return;if("tooltip"===r){if(a)return;a=!0}n&&n.constructor===o?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=V({componentIndex:e},t.keyInfo),V(n=new o(i,this,this,e),e),t.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(s.push(n.option),l.push(n),u++):(s.push(void 0),l.push(void 0))},this),o[r]=s,h.set(r,l),c.set(r,u),"series"===r&&Sd(this)},this),this._seriesIndices||Sd(this)},Od.prototype.getOption=function(){var a=y(this.option);return H(a,function(t,e){if(g.hasClass(e)){for(var n=Ir(t),i=n.length,o=!1,r=i-1;0<=r;r--)n[r]&&!Nr(n[r])?o=!0:(n[r]=null,o||i--);n.length=i,a[e]=n}}),delete a[Ld],a},Od.prototype.getTheme=function(){return this._theme},Od.prototype.getLocaleModel=function(){return this._locale},Od.prototype.setUpdatePayload=function(t){this._payload=t},Od.prototype.getUpdatePayload=function(){return this._payload},Od.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){t=n[e||0];if(t)return t;if(null==e)for(var i=0;i<n.length;i++)if(n[i])return n[i]}},Od.prototype.queryComponents=function(t){var e,n,i,o,r,a=t.mainType;return a&&(e=t.index,n=t.id,i=t.name,o=this._componentsMap.get(a))&&o.length?(null!=e?(r=[],H(Ir(e),function(t){o[t]&&r.push(o[t])})):r=null!=n?Nd("id",n,o):null!=i?Nd("name",i,o):ht(o,function(t){return!!t}),Rd(r,t)):[]},Od.prototype.findComponents=function(t){var e,n=t.query,i=t.mainType,o=(o=i+"Index",r=i+"Id",e=i+"Name",!(n=n)||null==n[o]&&null==n[r]&&null==n[e]?null:{mainType:i,index:n[o],id:n[r],name:n[e]}),r=o?this.queryComponents(o):ht(this._componentsMap.get(i),function(t){return!!t});return n=Rd(r,t),t.filter?ht(n,t.filter):n},Od.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(C(t)){var o=e,r=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&r.call(o,e,i,i.componentIndex)}})}else for(var a=X(t)?i.get(t):P(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},Od.prototype.getSeriesByName=function(t){var e=Pr(t,null);return ht(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},Od.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},Od.prototype.getSeriesByType=function(e){return ht(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},Od.prototype.getSeries=function(){return ht(this._componentsMap.get("series"),function(t){return!!t})},Od.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},Od.prototype.eachSeries=function(n,i){Md(this),H(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)},this)},Od.prototype.eachRawSeries=function(e,n){H(this._componentsMap.get("series"),function(t){t&&e.call(n,t,t.componentIndex)})},Od.prototype.eachSeriesByType=function(n,i,o){Md(this),H(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];e.subType===n&&i.call(o,e,t)},this)},Od.prototype.eachRawSeriesByType=function(t,e,n){return H(this.getSeriesByType(t),e,n)},Od.prototype.isSeriesFiltered=function(t){return Md(this),null==this._seriesIndicesMap.get(t.componentIndex)},Od.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},Od.prototype.filterSeries=function(n,i){Md(this);var o=[];H(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)&&o.push(t)},this),this._seriesIndices=o,this._seriesIndicesMap=N(o)},Od.prototype.restoreData=function(n){Sd(this);var t=this._componentsMap,i=[];t.each(function(t,e){g.hasClass(e)&&i.push(e)}),g.topologicalTravel(i,g.getAllClassMainTypes(),function(e){H(t.get(e),function(t){!t||"series"===e&&function(t,e){{var n,i;if(e)return n=e.seriesIndex,i=e.seriesId,e=e.seriesName,null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e}}(t,n)||t.restoreData()})})},Od.internalField=(Sd=function(t){var e=t._seriesIndices=[];H(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=N(e)},Md=function(t){},void(Id=function(t,e){t.option={},t.option[Ld]=1,t._componentsMap=N({series:[]}),t._componentsCount=N();var n,i,o=e.aria;P(o)&&null==o.enabled&&(o.enabled=!0),n=e,o=t._theme.option,i=n.color&&!n.colorLayer,H(o,function(t,e){"colorLayer"===e&&i||g.hasClass(e)||("object"==typeof t?n[e]=n[e]?d(n[e],t,!1):y(t):null==n[e]&&(n[e]=t))}),d(e,rd,!1),t._mergeOption(e,null)})),Od);function Od(){return null!==Ad&&Ad.apply(this,arguments)||this}function Nd(e,t,n){var i,o;return F(t)?(i=N(),H(t,function(t){null!=t&&null!=Pr(t,null)&&i.set(t,!0)}),ht(n,function(t){return t&&i.get(t[e])})):(o=Pr(t,null),ht(n,function(t){return t&&null!=o&&t[e]===o}))}function Rd(t,e){return e.hasOwnProperty("subType")?ht(t,function(t){return t&&t.subType===e.subType}):t}function Ed(t){var e=N();return t&&H(Ir(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}st(Pd,Cd);function zd(e){H(Bd,function(t){this[t]=S(e[t],e)},this)}var Bd=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Fd={},Vd=(Gd.prototype.create=function(n,i){var o=[];H(Fd,function(t,e){t=t.create(n,i);o=o.concat(t||[])}),this._coordinateSystems=o},Gd.prototype.update=function(e,n){H(this._coordinateSystems,function(t){t.update&&t.update(e,n)})},Gd.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},Gd.register=function(t,e){Fd[t]=e},Gd.get=function(t){return Fd[t]},Gd);function Gd(){this._coordinateSystems=[]}var Hd=/^(min|max)?(.+)$/,Wd=(Xd.prototype.setOption=function(t,e,n){t&&(H(Ir(t.series),function(t){t&&t.data&&ft(t.data)&&Ct(t.data)}),H(Ir(t.dataset),function(t){t&&t.source&&ft(t.source)&&Ct(t.source)})),t=y(t);var i=this._optionBackup,t=function(t,n,i){var e,o,r=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,h=!!t.media,c=!!(l||s||a&&a.timeline);a?(o=a).timeline||(o.timeline=s):((c||h)&&(t.options=t.media=null),o=t);h&&F(u)&&H(u,function(t){t&&t.option&&(t.query?r.push(t):e=e||t)});function p(e){H(n,function(t){t(e,i)})}return p(o),H(l,p),H(r,function(t){return p(t.option)}),{baseOption:o,timelineOptions:l||[],mediaDefault:e,mediaList:r}}(t,e,!i);this._newBaseOption=t.baseOption,i?(t.timelineOptions.length&&(i.timelineOptions=t.timelineOptions),t.mediaList.length&&(i.mediaList=t.mediaList),t.mediaDefault&&(i.mediaDefault=t.mediaDefault)):this._optionBackup=t},Xd.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],y(t?e.baseOption:this._newBaseOption)},Xd.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?y(n[t.getCurrentIndex()]):e},Xd.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,r=[],a=[];if(i.length||o){for(var s,l,u=0,h=i.length;u<h;u++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},o=!0;return H(t,function(t,e){var n,e=e.match(Hd);e&&e[1]&&e[2]&&(n=e[1],e=e[2].toLowerCase(),e=i[e],t=t,("min"===(n=n)?t<=e:"max"===n?e<=t:e===t)||(o=!1))}),o}(i[u].query,e,n)||r.push(u);(r=!r.length&&o?[-1]:r).length&&(s=r,l=this._currentMediaIndices,s.join(",")!==l.join(","))&&(a=B(r,function(t){return y((-1===t?o:i[t]).option)})),this._currentMediaIndices=r}return a},Xd);function Xd(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}var Yd=H,Ud=P,Zd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function qd(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Zd.length;n<i;n++){var o=Zd[n],r=e.normal,a=e.emphasis;r&&r[o]&&(t[o]=t[o]||{},t[o].normal?d(t[o].normal,r[o]):t[o].normal=r[o],r[o]=null),a&&a[o]&&(t[o]=t[o]||{},t[o].emphasis?d(t[o].emphasis,a[o]):t[o].emphasis=a[o],a[o]=null)}}function jd(t,e,n){var i,o;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(i=t[e].normal,o=t[e].emphasis,i&&(n?(t[e].normal=t[e].emphasis=null,z(t[e],i)):t[e]=i),o)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=o).focus&&(t.emphasis.focus=o.focus),o.blurScope)&&(t.emphasis.blurScope=o.blurScope)}function Kd(t){jd(t,"itemStyle"),jd(t,"lineStyle"),jd(t,"areaStyle"),jd(t,"label"),jd(t,"labelLine"),jd(t,"upperLabel"),jd(t,"edgeLabel")}function $d(t,e){var n=Ud(t)&&t[e],i=Ud(n)&&n.textStyle;if(i)for(var o=0,r=Cr.length;o<r;o++){var a=Cr[o];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Qd(t){t&&(Kd(t),$d(t,"label"),t.emphasis)&&$d(t.emphasis,"label")}function Jd(t){return F(t)?t:t?[t]:[]}function tf(t){return(F(t)?t[0]:t)||{}}function ef(e,t){Yd(Jd(e.series),function(t){if(Ud(t))if(Ud(t)){qd(t),Kd(t),$d(t,"label"),$d(t,"upperLabel"),$d(t,"edgeLabel"),t.emphasis&&($d(t.emphasis,"label"),$d(t.emphasis,"upperLabel"),$d(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(qd(e),Qd(e)),t.markLine),i=(n&&(qd(n),Qd(n)),t.markArea),o=(i&&Qd(i),t.data);if("graph"===t.type){var o=o||t.nodes,r=t.links||t.edges;if(r&&!ft(r))for(var a=0;a<r.length;a++)Qd(r[a]);H(t.categories,function(t){Kd(t)})}if(o&&!ft(o))for(a=0;a<o.length;a++)Qd(o[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Qd(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)F(l[a])?(Qd(l[a][0]),Qd(l[a][1])):Qd(l[a]);"gauge"===t.type?($d(t,"axisLabel"),$d(t,"title"),$d(t,"detail")):"treemap"===t.type?(jd(t.breadcrumb,"itemStyle"),H(t.levels,function(t){Kd(t)})):"tree"===t.type&&Kd(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Yd(n,function(t){Yd(Jd(e[t]),function(t){t&&($d(t,"axisLabel"),$d(t.axisPointer,"label"))})}),Yd(Jd(e.parallel),function(t){t=t&&t.parallelAxisDefault;$d(t,"axisLabel"),$d(t&&t.axisPointer,"label")}),Yd(Jd(e.calendar),function(t){jd(t,"itemStyle"),$d(t,"dayLabel"),$d(t,"monthLabel"),$d(t,"yearLabel")}),Yd(Jd(e.radar),function(t){$d(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),Yd(Jd(e.geo),function(t){Ud(t)&&(Qd(t),Yd(Jd(t.regions),function(t){Qd(t)}))}),Yd(Jd(e.timeline),function(t){Qd(t),jd(t,"label"),jd(t,"itemStyle"),jd(t,"controlStyle",!0);t=t.data;F(t)&&H(t,function(t){P(t)&&(jd(t,"label"),jd(t,"itemStyle"))})}),Yd(Jd(e.toolbox),function(t){jd(t,"iconStyle"),Yd(t.feature,function(t){jd(t,"iconStyle")})}),$d(tf(e.axisPointer),"label"),$d(tf(e.tooltip).axisPointer,"label")}function nf(e){e&&H(of,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var of=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],rf=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],af=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function sf(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<af.length;n++){var i=af[n][1],o=af[n][0];null!=e[i]&&(e[o]=e[i])}}function lf(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function uf(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function hf(e,t){ef(e,t),e.series=Ir(e.series),H(e.series,function(t){if(P(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),lf(t.label),(e=t.data)&&!ft(e))for(var i=0;i<e.length;i++)lf(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===n){var o=function(t,e){for(var n=e.split(","),i=t,o=0;o<n.length&&null!=(i=i&&i[n[o]]);o++);return i}(t,"pointer.color");if(null!=o){var r=t;var a="itemStyle.color";var s=void 0;for(var l,u=a.split(","),h=r,c=0;c<u.length-1;c++)null==h[l=u[c]]&&(h[l]={}),h=h[l];!s&&null!=h[u[c]]||(h[u[c]]=o)}}else if("bar"===n){if(sf(t),sf(t.backgroundStyle),sf(t.emphasis),(e=t.data)&&!ft(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(sf(e[i]),sf(e[i]&&e[i].emphasis))}else"sunburst"===n?((a=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),uf(t),function t(e,n){if(e)for(var i=0;i<e.length;i++)n(e[i]),e[i]&&t(e[i].children,n)}(t.data,uf)):"graph"===n||"sankey"===n?(r=t)&&null!=r.focusNodeAdjacency&&(r.emphasis=r.emphasis||{},null==r.emphasis.focus)&&(r.emphasis.focus="adjacency"):"map"===n&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation)&&z(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),nf(t)}}),e.dataRange&&(e.visualMap=e.dataRange),H(rf,function(t){t=e[t];t&&H(t=F(t)?t:[t],function(t){nf(t)})})}function cf(_){H(_,function(p,d){var f=[],g=[NaN,NaN],t=[p.stackResultDimension,p.stackedOverDimension],y=p.data,m=p.isStackedByIndex,v=p.seriesModel.get("stackStrategy")||"samesign";y.modify(t,function(t,e,n){var i,o,r=y.get(p.stackedDimension,n);if(isNaN(r))return g;m?o=y.getRawIndex(n):i=y.get(p.stackedByDimension,n);for(var a,s,l,u=NaN,h=d-1;0<=h;h--){var c=_[h];if(0<=(o=m?o:c.data.rawIndexOf(c.stackedByDimension,i))){c=c.data.getByRawIndex(c.stackResultDimension,o);if("all"===v||"positive"===v&&0<c||"negative"===v&&c<0||"samesign"===v&&0<=r&&0<c||"samesign"===v&&r<=0&&c<0){a=r,s=c,l=void 0,l=Math.max(lr(a),lr(s)),a+=s,r=or<l?a:ar(a,l),u=c;break}}}return f[0]=r,f[1]=u,f})})}var pf,df,ff=function(t){this.data=t.data||(t.sourceFormat===hd?{}:[]),this.sourceFormat=t.sourceFormat||pd,this.seriesLayoutBy=t.seriesLayoutBy||dd,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];null==i.type&&xd(this,n)===gd.Must&&(i.type="ordinal")}};function gf(t){return t instanceof ff}function yf(t,e,n){n=n||vf(t);var i=e.seriesLayoutBy,o=function(t,e,n,i,o){var r,a;if(!t)return{dimensionsDefine:_f(o),startIndex:a,dimensionsDetectedCount:r};{var s;e===ld?(s=t,"auto"===i||null==i?xf(function(t){null!=t&&"-"!==t&&(X(t)?null==a&&(a=1):a=0)},n,s,10):a=Y(i)?i:i?1:0,o||1!==a||(o=[],xf(function(t,e){o[e]=null!=t?t+"":""},n,s,1/0)),r=o?o.length:n===fd?s.length:s[0]?s[0].length:null):e===ud?o=o||function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return W(e)}(t):e===hd?o||(o=[],H(t,function(t,e){o.push(e)})):e===sd&&(i=Dr(t[0]),r=F(i)&&i.length||1)}return{startIndex:a,dimensionsDefine:_f(o),dimensionsDetectedCount:r}}(t,n,i,e.sourceHeader,e.dimensions);return new ff({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:y(e)})}function mf(t){return new ff({data:t,sourceFormat:ft(t)?cd:sd})}function vf(t){var e=pd;if(ft(t))e=cd;else if(F(t)){0===t.length&&(e=ld);for(var n=0,i=t.length;n<i;n++){var o=t[n];if(null!=o){if(F(o)||ft(o)){e=ld;break}if(P(o)){e=ud;break}}}}else if(P(t))for(var r in t)if(U(t,r)&&lt(t[r])){e=hd;break}return e}function _f(t){var i;if(t)return i=N(),B(t,function(t,e){var n,t={name:(t=P(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(n=i.get(t.name))?t.name+="-"+n.count++:i.set(t.name,{count:1})),t})}function xf(t,e,n,i){if(e===fd)for(var o=0;o<n.length&&o<i;o++)t(n[o]?n[o][0]:null,o);else for(var r=n[0]||[],o=0;o<r.length&&o<i;o++)t(r[o],o)}function bf(t){t=t.sourceFormat;return t===ud||t===hd}Tf.prototype.getSource=function(){return this._source},Tf.prototype.count=function(){return 0},Tf.prototype.getItem=function(t,e){},Tf.prototype.appendData=function(t){},Tf.prototype.clean=function(){},Tf.protoInitialize=((sc=Tf.prototype).pure=!1,void(sc.persistent=!0)),Tf.internalField=(df=function(t,e,n){var i,o=n.sourceFormat,r=n.seriesLayoutBy,a=n.startIndex,n=n.dimensionsDefine;V(t,pf[zf(o,r)]),o===cd?(t.getItem=wf,t.count=Mf,t.fillStorage=Sf):(i=Af(o,r),t.getItem=S(i,null,e,a,n),i=Of(o,r),t.count=S(i,null,e,a,n))},wf=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,o=i*t,r=0;r<i;r++)e[r]=n[o+r];return e},Sf=function(t,e,n,i){for(var o=this._data,r=this._dimSize,a=0;a<r;a++){for(var s=i[a],l=null==s[0]?1/0:s[0],u=null==s[1]?-1/0:s[1],h=e-t,c=n[a],p=0;p<h;p++){var d=o[p*r+a];(c[t+p]=d)<l&&(l=d),u<d&&(u=d)}s[0]=l,s[1]=u}},Mf=function(){return this._data?this._data.length/this._dimSize:0},(sc={})[ld+"_"+dd]={pure:!0,appendData:Cf},sc[ld+"_"+fd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},sc[ud]={pure:!0,appendData:Cf},sc[hd]={pure:!0,appendData:function(t){var o=this._data;H(t,function(t,e){for(var n=o[e]||(o[e]=[]),i=0;i<(t||[]).length;i++)n.push(t[i])})}},sc[sd]={appendData:Cf},sc[cd]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(pf=sc));var wf,Sf,Mf,If=Tf;function Tf(t,e){var t=gf(t)?t:mf(t),n=(this._source=t,this._data=t.data);t.sourceFormat===cd&&(this._offset=0,this._dimSize=e,this._data=n),df(this,n,t)}function Cf(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function Df(t,e,n,i){return t[i]}(hp={})[ld+"_"+dd]=function(t,e,n,i){return t[i+e]},hp[ld+"_"+fd]=function(t,e,n,i,o){i+=e;for(var r=o||[],a=t,s=0;s<a.length;s++){var l=a[s];r[s]=l?l[i]:null}return r},hp[ud]=Df,hp[hd]=function(t,e,n,i,o){for(var r=o||[],a=0;a<n.length;a++){var s=t[n[a].name];r[a]=s?s[i]:null}return r},hp[sd]=Df;var kf=hp;function Af(t,e){return kf[zf(t,e)]}function Lf(t,e,n){return t.length}(Vc={})[ld+"_"+dd]=function(t,e,n){return Math.max(0,t.length-e)},Vc[ld+"_"+fd]=function(t,e,n){t=t[0];return t?Math.max(0,t.length-e):0},Vc[ud]=Lf,Vc[hd]=function(t,e,n){t=t[n[0].name];return t?t.length:0},Vc[sd]=Lf;var Pf=Vc;function Of(t,e){return Pf[zf(t,e)]}function Nf(t,e,n){return t[e]}(ia={})[ld]=Nf,ia[ud]=function(t,e,n){return t[n]},ia[hd]=Nf,ia[sd]=function(t,e,n){t=Dr(t);return t instanceof Array?t[e]:t},ia[cd]=Nf;var Rf=ia;function Ef(t){return Rf[t]}function zf(t,e){return t===ld?t+"_"+e:t}function Bf(t,e,n){if(t){var i,o,e=t.getRawDataItem(e);if(null!=e)return i=(o=t.getStore()).getSource().sourceFormat,null!=n?(t=t.getDimensionIndex(n),n=o.getDimensionProperty(t),Ef(i)(e,t,n)):(o=e,i===sd?Dr(e):o)}}var Ff=/\{@(.+?)\}/g,Xc=(Vf.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),o=n.getRawIndex(t),r=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),t=s&&s[n.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,u="series"===l,n=n.userOutput&&n.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:r,dataIndex:o,data:a,dataType:e,value:i,color:t,borderColor:s,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},Vf.prototype.getFormattedLabel=function(i,t,e,n,o,r){t=t||"normal";var a=this.getData(e),e=this.getDataParams(i,e);return r&&(e.value=r.interpolatedValue),null!=n&&F(e.value)&&(e.value=e.value[n]),C(o=o||a.getItemModel(i).get("normal"===t?["label","formatter"]:[t,"label","formatter"]))?(e.status=t,e.dimensionIndex=n,o(e)):X(o)?Bp(o,e).replace(Ff,function(t,e){var n=e.length,n=("["===e.charAt(0)&&"]"===e.charAt(n-1)&&(e=+e.slice(1,n-1)),Bf(a,i,e));return null!=(n=r&&F(r.interpolatedValue)&&0<=(e=a.getDimensionIndex(e))?r.interpolatedValue[e]:n)?n+"":""}):void 0},Vf.prototype.getRawValue=function(t,e){return Bf(this.getData(e),t)},Vf.prototype.formatTooltip=function(t,e,n){},Vf);function Vf(){}function Gf(t){var e,n;return P(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Hf(t){return new Wf(t)}Xf.prototype.perform=function(t){var e,n,i=this._upstream,o=t&&t.skip,r=(this._dirty&&i&&((r=this.context).data=r.outputData=i.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(e=this._plan(this.context)),u(this._modBy)),a=this._modDataCount||0,s=u(t&&t.modBy),l=t&&t.modDataCount||0;function u(t){return t=1<=t?t:1}r===s&&a===l||(e="reset"),!this._dirty&&"reset"!==e||(this._dirty=!1,n=this._doReset(o)),this._modBy=s,this._modDataCount=l;r=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,c=Math.min(null!=r?this._dueIndex+r:1/0,this._dueEnd);if(!o&&(n||h<c)){var p=this._progress;if(F(p))for(var d=0;d<p.length;d++)this._doProgress(p[d],h,c,s,l);else this._doProgress(p,h,c,s,l)}this._dueIndex=c;a=null!=this._settedOutputEnd?this._settedOutputEnd:c;this._outputDueEnd=a}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},Xf.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},Xf.prototype._doProgress=function(t,e,n,i,o){$f.reset(e,n,i,o),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:$f.next},this.context)},Xf.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),F(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,n,t=this._downstream;return t&&t.dirty(),n},Xf.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},Xf.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},Xf.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},Xf.prototype.getUpstream=function(){return this._upstream},Xf.prototype.getDownstream=function(){return this._downstream},Xf.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var Wf=Xf;function Xf(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}var Yf,Uf,Zf,qf,jf,Kf,$f=Kf={reset:function(t,e,n,i){Uf=t,Yf=e,Zf=n,qf=i,jf=Math.ceil(qf/Zf),Kf.next=1<Zf&&0<qf?Jf:Qf}};function Qf(){return Uf<Yf?Uf++:null}function Jf(){var t=Uf%jf*Zf+Math.ceil(Uf/jf),t=Yf<=Uf?null:t<qf?t:Uf;return Uf++,t}function tg(t,e){e=e&&e.type;return"ordinal"===e?t:null==(t="time"!==e||Y(t)||null==t||"-"===t?t:+gr(t))||""===t?NaN:+t}var eg=N({number:function(t){return parseFloat(t)},time:function(t){return+gr(t)},trim:function(t){return X(t)?It(t):t}});function ng(t){return eg.get(t)}var ig={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return e<t},gte:function(t,e){return e<=t}},og=(rg.prototype.evaluate=function(t){return Y(t)?this._opFn(t,this._rvalFloat):this._opFn(_r(t),this._rvalFloat)},rg);function rg(t,e){Y(e)||f(""),this._opFn=ig[t],this._rvalFloat=_r(e)}sg.prototype.evaluate=function(t,e){var n=Y(t)?t:_r(t),i=Y(e)?e:_r(e),o=isNaN(n),r=isNaN(i);return o&&(n=this._incomparable),r&&(i=this._incomparable),o&&r&&(o=X(t),r=X(e),o&&(n=r?t:0),r)&&(i=o?e:0),n<i?this._resultLT:i<n?-this._resultLT:0};var ag=sg;function sg(t,e){t="desc"===t;this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}ug.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=_r(t)===this._rvalFloat),this._isEQ?n:!n};var lg=ug;function ug(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=_r(e)}cg.prototype.getRawData=function(){throw new Error("not supported")},cg.prototype.getRawDataItem=function(t){throw new Error("not supported")},cg.prototype.cloneRawData=function(){},cg.prototype.getDimensionInfo=function(t){},cg.prototype.cloneAllDimensionInfo=function(){},cg.prototype.count=function(){},cg.prototype.retrieveValue=function(t,e){},cg.prototype.retrieveValueFromItem=function(t,e){},cg.prototype.convertValue=tg;var hg=cg;function cg(){}function pg(t){return vg(t.sourceFormat)||f(""),t.data}function dg(t){var e=t.sourceFormat,n=t.data;if(vg(e)||f(""),e===ld){for(var i=[],o=0,r=n.length;o<r;o++)i.push(n[o].slice());return i}if(e===ud){for(i=[],o=0,r=n.length;o<r;o++)i.push(V({},n[o]));return i}}function fg(t,e,n){if(null!=n)return Y(n)||!isNaN(n)&&!U(e,n)?t[n]:U(e,n)?e[n]:void 0}function gg(t){return y(t)}var yg=N();function mg(t,e){var n=Ir(t),t=n.length;t||f("");for(var i=0,o=t;i<o;i++)e=function(t,i){i.length||f("");P(t)||f("");var e=t.type,d=yg.get(e);d||f("");e=B(i,function(t){var e=t,t=d,n=new hg,i=e.data,o=n.sourceFormat=e.sourceFormat,r=e.startIndex,a=(e.seriesLayoutBy!==dd&&f(""),[]),s={};if(h=e.dimensionsDefine)H(h,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};a.push(e),null!=n&&(U(s,n)&&f(""),s[n]=e)});else for(var l=0;l<e.dimensionsDetectedCount;l++)a.push({index:l});var u=Af(o,dd),h=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return u(i,r,a,t)},n.getRawData=S(pg,null,e)),n.cloneRawData=S(dg,null,e),Of(o,dd)),c=(n.count=S(h,null,i,r,a),Ef(o)),p=(n.retrieveValue=function(t,e){t=u(i,r,a,t);return p(t,e)},n.retrieveValueFromItem=function(t,e){var n;return null!=t&&(n=a[e])?c(t,e,n.name):void 0});return n.getDimensionInfo=S(fg,null,a,s),n.cloneAllDimensionInfo=S(gg,null,a),n});return B(Ir(d.transform({upstream:e[0],upstreamList:e,config:y(t.config)})),function(t,e){P(t)||f(""),t.data||f("");vg(vf(t.data))||f("");var n=i[0],e=n&&0===e&&!t.dimensions?((e=n.startIndex)&&(t.data=n.data.slice(0,e).concat(t.data)),{seriesLayoutBy:dd,sourceHeader:e,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:dd,sourceHeader:0,dimensions:t.dimensions};return yf(t.data,e,null)})}(n[i],e),i!==o-1&&(e.length=Math.max(e.length,1));return e}function vg(t){return t===ld||t===ud}var _g,sc="undefined",xg=typeof Uint32Array==sc?Array:Uint32Array,bg=typeof Uint16Array==sc?Array:Uint16Array,wg=typeof Int32Array==sc?Array:Int32Array,hp=typeof Float64Array==sc?Array:Float64Array,Sg={float:hp,int:wg,ordinal:Array,number:Array,time:hp};function Mg(t){return 65535<t?xg:bg}function Ig(){return[1/0,-1/0]}function Tg(t,e,n,i,o){n=Sg[n||"float"];if(o){var r=t[e],a=r&&r.length;if(a!==i){for(var s=new n(i),l=0;l<a;l++)s[l]=r[l];t[e]=s}}else t[e]=new n(i)}l.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=_g[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[],bf(i),this._dimensions=B(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},l.prototype.getProvider=function(){return this._provider},l.prototype.getSource=function(){return this._provider.getSource()},l.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,o=n.get(t);if(null!=o){if(i[o].type===e)return o}else o=i.length;return i[o]={type:e},n.set(t,o),this._chunks[o]=new Sg[e||"float"](this._rawCount),this._rawExtent[o]=Ig(),o},l.prototype.collectOrdinalMeta=function(t,e){for(var n=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,r=i.ordinalOffset||0,a=n.length,s=(0===r&&(o[t]=Ig()),o[t]),l=r;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},l.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},l.prototype.getDimensionProperty=function(t){t=this._dimensions[t];return t&&t.property},l.prototype.appendData=function(t){var e=this._provider,n=this.count(),t=(e.appendData(t),e.count());return e.persistent||(t+=n),n<t&&this._initDataFromProvider(n,t,!0),[n,t]},l.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,o=i.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<o;l++)Tg(n,l,(d=i[l]).type,s,!0);for(var u=[],h=a;h<s;h++)for(var c=h-a,p=0;p<o;p++){var d=i[p],f=_g.arrayRows.call(this,t[c]||u,d.property,c,p),g=(n[p][h]=f,r[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},l.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=B(r,function(t){return t.property}),u=0;u<a;u++){var h=r[u];s[u]||(s[u]=Ig()),Tg(o,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,o,s);else for(var c=[],p=t;p<e;p++)for(var c=i.getItem(p,c),d=0;d<a;d++){var f=o[d],g=this._dimValueGetter(c,l[d],p,d),f=(f[p]=g,s[d]);g<f[0]&&(f[0]=g),g>f[1]&&(f[1]=g)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},l.prototype.count=function(){return this._count},l.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},l.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,r=i.length;o<r;o++)n.push(this.get(i[o],e));return n},l.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},l.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(e+=o)}return e},l.prototype.getMedian=function(t){var e=[],t=(this.each([t],function(t){isNaN(t)||e.push(t)}),e.sort(function(t,e){return t-e})),n=this.count();return 0===n?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},l.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,o=this._count-1;i<=o;){var r=(i+o)/2|0;if(e[r]<t)i=1+r;else{if(!(e[r]>t))return r;o=r-1}}}return-1},l.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],o=[];if(i){null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var h=e-i[this.getRawIndex(l)],c=Math.abs(h);c<=n&&((c<r||c===r&&0<=h&&a<0)&&(r=c,a=h,s=0),h===a)&&(o[s++]=l)}o.length=s}return o},l.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),o=0;o<n;o++)i[o]=t[o];else i=new e(t.buffer,0,n)}else{i=new(e=Mg(this._rawCount))(this.count());for(o=0;o<i.length;o++)i[o]=o}return i},l.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=new(Mg(n._rawCount))(i),r=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,p=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d<a;d++)r[d]=u[t[d]][p];r[d]=h,c=e.apply(null,r)}c&&(o[s++]=p)}return s<i&&(n._indices=o),n._count=s,n._extent=[],n._updateGetRawIdx(),n},l.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=W(t),o=i.length;if(!o)return this;var r=e.count(),a=new(Mg(e._rawCount))(r),s=0,l=i[0],u=t[l][0],h=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===o){for(var d=c[i[0]],f=0;f<n;f++)(u<=(v=d[f])&&v<=h||isNaN(v))&&(a[s++]=p),p++;l=!0}else if(2===o){for(var d=c[i[0]],g=c[i[1]],y=t[i[1]][0],m=t[i[1]][1],f=0;f<n;f++){var v=d[f],_=g[f];(u<=v&&v<=h||isNaN(v))&&(y<=_&&_<=m||isNaN(_))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===o)for(f=0;f<r;f++){var x=e.getRawIndex(f);(u<=(v=c[i[0]][x])&&v<=h||isNaN(v))&&(a[s++]=x)}else for(f=0;f<r;f++){for(var b=!0,x=e.getRawIndex(f),w=0;w<o;w++){var S=i[w];((v=c[S][x])<t[S][0]||v>t[S][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return s<r&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},l.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},l.prototype.modify=function(t,e){this._updateDims(this,t,e)},l.prototype._updateDims=function(t,e,n){for(var i=t._chunks,o=[],r=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=Ig();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<r;p++)s[p]=i[e[p]][c];s[r]=h;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(o[0]=d,d=o);for(u=0;u<d.length;u++){var f=e[u],g=d[u],y=l[f],f=i[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},l.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),o=i._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(Mg(this._rawCount))(Math.min(2*(Math.ceil(r/s)+2),r));u[a++]=l;for(var h=1;h<r-1;h+=s){for(var c=Math.min(h+s,r-1),p=Math.min(h+2*s,r),d=(p+c)/2,f=0,g=c;g<p;g++){var y=o[M=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=h,m=Math.min(h+s,r),v=h-1,_=o[l],x=-1,b=c,w=-1,S=0,g=c;g<m;g++){var M,y=o[M=this.getRawIndex(g)];isNaN(y)?(S++,w<0&&(w=M)):x<(n=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=n,b=M)}0<S&&S<m-c&&(u[a++]=Math.min(w,b),b=Math.max(w,b)),l=u[a++]=b}return u[a++]=this.getRawIndex(r-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},l.prototype.downSample=function(t,e,n,i){for(var o=this.clone([t],!0),r=o._chunks,a=[],s=Math.floor(1/e),l=r[t],u=this.count(),h=o._rawExtent[t]=Ig(),c=new(Mg(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){u-d<s&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),m=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));(l[m]=y)<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},l.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(n){case 0:e(o);break;case 1:e(i[t[0]][a],o);break;case 2:e(i[t[0]][a],i[t[1]][a],o);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=o,e.apply(null,l)}}},l.prototype.getDataExtent=function(t){var e=this._chunks[t],n=Ig();if(!e)return n;var i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(o=this._extent[t])return o.slice();for(var o,r=(o=n)[0],a=o[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<r&&(r=l),a<l&&(a=l)}return this._extent[t]=o=[r,a]},l.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,o=0;o<i.length;o++)n.push(i[o][e]);return n},l.prototype.clone=function(t,e){var n,i,o=new l,r=this._chunks,a=t&&ut(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<r.length;s++)o._chunks[s]=a[s]?(n=r[s],i=void 0,(i=n.constructor)===Array?n.slice():new i(n)):r[s];else o._chunks=r;return this._copyCommonProps(o),e||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},l.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=y(this._extent),t._rawExtent=y(this._rawExtent)},l.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var n=this._indices.length,e=new t(n),i=0;i<n;i++)e[i]=this._indices[i];else e=new t(this._indices);return e}return null},l.prototype._getRawIdxIdentity=function(t){return t},l.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},l.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},l.internalField=void(_g={arrayRows:Dg,objectRows:function(t,e,n,i){return tg(t[e],this._dimensions[i])},keyedColumns:Dg,original:function(t,e,n,i){t=t&&(null==t.value?t:t.value);return tg(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var Cg=l;function l(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=N()}function Dg(t,e,n,i){return tg(t[i],this._dimensions[i])}Ag.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Ag.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},Ag.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Ag.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Ag.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,o,r,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;Pg(s)?(i=s,o=t=r=void 0,e=u?((e=l[0]).prepareSource(),r=(o=e.getSource()).data,t=o.sourceFormat,[e._getVersionSign()]):(t=ft(r=i.get("data",!0))?cd:sd,[]),i=this._getSourceMetaRawOption()||{},o=o&&o.metaRawOption||{},a=O(i.seriesLayoutBy,o.seriesLayoutBy)||null,n=O(i.sourceHeader,o.sourceHeader),i=O(i.dimensions,o.dimensions),o=a!==o.seriesLayoutBy||!!n!=!!o.sourceHeader||i?[yf(r,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(r=s,e=u?(o=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(o=[yf(r.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(o,e)},Ag.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),o=n.get("fromTransformResult",!0),r=(null!=o&&1!==t.length&&Og(""),[]),a=[];return H(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||Og(""),r.push(e),a.push(t._getVersionSign())}),i?e=mg(i,r,n.componentIndex):null!=o&&(e=[new ff({data:(t=r[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:y(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:a}},Ag.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}},Ag.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Ag.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Ag.prototype._innerGetDataStore=function(t,e,n){var i,o=this._storeList,r=o[0],o=(r=r||(o[0]={}))[n];return o||(i=this._getUpstreamSourceManagers()[0],Pg(this._sourceHost)&&i?o=i._innerGetDataStore(t,e,n):(o=new Cg).initData(new If(e,t.length),t),r[n]=o),o},Ag.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Pg(e)?(t=_d(e))?[t.getSourceManager()]:[]:B((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?Hr(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},Gr).models:[],function(t){return t.getSourceManager()})},Ag.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return Pg(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(i=i).get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}};var kg=Ag;function Ag(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Lg(t){t.option.transform&&Ct(t.option.transform)}function Pg(t){return"series"===t.mainType}function Og(t){throw new Error(t)}var Ng="line-height:1";function Rg(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,o=t.fontWeight||"400",r=t.color||"#464646",a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+xe(i+"")+"px;color:"+xe(n)+";font-weight:"+xe(o+""),valueStyle:"font-size:"+xe(a+"")+"px;color:"+xe(r)+";font-weight:"+xe(t+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:t}}}var Eg=[0,10,20,30],zg=["","\n","\n\n","\n\n\n"];function Bg(t,e){return e.type=t,e}function Fg(t){return"section"===t.type}function Vg(t){return Fg(t)?Gg:Hg}function Gg(i,o,t,r){var n,e=o.noHeader,a=(l=function n(t){var i,e,o;return Fg(t)?(i=0,e=t.blocks.length,o=1<e||0<e&&!t.noHeader,H(t.blocks,function(t){var e=n(t);i<=e&&(i=e+ +(o&&(!e||Fg(t)&&!t.noHeader)))}),i):0}(o),{html:Eg[l],richText:zg[l]}),s=[],l=o.blocks||[],u=(Mt(!l||F(l)),l=l||[],i.orderMode),h=(o.sortBlocks&&u&&(l=l.slice(),U(h={valueAsc:"asc",valueDesc:"desc"},u)?(n=new ag(h[u],null),l.sort(function(t,e){return n.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===u&&l.reverse()),H(l,function(t,e){var n=o.valueFormatter,n=Vg(t)(n?V(V({},i),{valueFormatter:n}):i,t,0<e?a.html:0,r);null!=n&&s.push(n)}),"richText"===i.renderMode?s.join(a.richText):Xg(s.join(""),e?t:a.html));return e?h:(u=Rp(o.header,"ordinal",i.useUTC),l=Rg(r,i.renderMode).nameStyle,"richText"===i.renderMode?Yg(i,u,l)+a.richText+h:Xg('<div style="'+l+";"+Ng+';">'+xe(u)+"</div>"+h,t))}function Hg(t,e,n,i){var o,r,a,s,l=t.renderMode,u=e.noName,h=e.noValue,c=!e.markerType,p=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return B(t=F(t)?t:[t],function(t,e){return Rp(t,F(r)?r[e]:r,d)})};if(!u||!h)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":Rp(p,"ordinal",d),r=e.valueType,f=h?[]:f(e.value,e.dataIndex),e=!c||!u,a=!c&&u,i=Rg(i,l),s=i.nameStyle,i=i.valueStyle,"richText"===l?(c?"":o)+(u?"":Yg(t,p,s))+(h?"":function(t,e,n,i,o){o=[o],i=i?10:20;return n&&o.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(F(e)?e.join(" "):e,o)}(t,f,e,a,i)):Xg((c?"":o)+(u?"":'<span style="'+s+";"+(!c?"margin-left:2px":"")+'">'+xe(p)+"</span>")+(h?"":function(t,e,n,i){n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"";return t=F(t)?t:[t],'<span style="'+e+";"+i+'">'+B(t,xe).join("&nbsp;&nbsp;")+"</span>"}(f,e,a,i)),n)}function Wg(t,e,n,i,o,r){if(t)return Vg(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function Xg(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+Ng+';">'+t+'<div style="clear:both"></div></div>'}function Yg(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Ug(t,e){return Vp(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Zg(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}jg.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},jg.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=Fp({color:e,type:t,renderMode:n,markerId:i});return X(e)?e:(this.richTextStyles[i]=e.style,e.content)},jg.prototype.wrapRichTextStyle=function(t,e){var n={},e=(F(e)?H(e,function(t){return V(n,t)}):V(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var qg=jg;function jg(){this.richTextStyles={},this._nextStyleNameId=br()}function Kg(t){var e,n,i,o,r,a,s,l,u,h,c,p=t.series,d=t.dataIndex,t=t.multipleSeries,f=p.getData(),g=f.mapDimensionsAll("defaultedTooltip"),y=g.length,m=p.getRawValue(d),v=F(m),_=Ug(p,d);function x(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(Bg("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),h.push(e.type)))}1<y||v&&!y?(i=m,o=d,r=g,a=_,s=p.getData(),l=ut(i,function(t,e,n){n=s.getDimensionInfo(n);return t||n&&!1!==n.tooltip&&null!=n.displayName},!1),u=[],h=[],c=[],r.length?H(r,function(t){x(Bf(s,o,t),t)}):H(i,x),i=(r={inlineValues:u,inlineValueTypes:h,blocks:c}).inlineValueTypes,e=r.blocks,n=(r=r.inlineValues)[0]):y?(y=f.getDimensionInfo(g[0]),n=r=Bf(f,d,g[0]),i=y.type):n=r=v?m[0]:m;g=Or(p),y=g&&p.name||"",v=f.getName(d),m=t?y:v;return Bg("section",{header:y,noHeader:t||!g,sortParam:n,blocks:[Bg("nameValue",{markerType:"item",markerColor:_,name:m,noName:!It(m),value:r,valueType:i,dataIndex:d})].concat(e||[])})}var $g=zr();function Qg(t,e){return t.getName(e)||t.getId(e)}u(o,Jg=g),o.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Hf({count:ny,reset:iy}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);($g(this).sourceManager=new kg(this)).prepareSource();t=this.getInitialData(t,n);ry(t,this),this.dataTask.context.data=t,$g(this).dataBeforeProcessed=t,ey(this),this._initSelectedMapFromData(t)},o.prototype.mergeDefaultAndTheme=function(t,e){var n=qp(this),i=n?Kp(t):{},o=this.subType;g.hasClass(o),d(t,e.getTheme().get(this.subType)),d(t,this.getDefaultOption()),Tr(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&jp(t,i,n)},o.prototype.mergeOption=function(t,e){t=d(this.option,t,!0),this.fillDataTextStyle(t.data);var n=qp(this),n=(n&&jp(this.option,t,n),$g(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));ry(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,$g(this).dataBeforeProcessed=n,ey(this),this._initSelectedMapFromData(n)},o.prototype.fillDataTextStyle=function(t){if(t&&!ft(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Tr(t[n],"label",e)},o.prototype.getInitialData=function(t,e){},o.prototype.appendData=function(t){this.getRawData().appendData(t.data)},o.prototype.getData=function(t){var e=sy(this);return e?(e=e.context.data,null==t?e:e.getLinkedData(t)):$g(this).data},o.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},o.prototype.setData=function(t){var e,n=sy(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),$g(this).data=t},o.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return N(t)},o.prototype.getSourceManager=function(){return $g(this).sourceManager},o.prototype.getSource=function(){return this.getSourceManager().getSource()},o.prototype.getRawData=function(){return $g(this).dataBeforeProcessed},o.prototype.getColorBy=function(){return this.get("colorBy")||"series"},o.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},o.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},o.prototype.formatTooltip=function(t,e,n){return Kg({series:this,dataIndex:t,multipleSeries:e})},o.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!w.node||t&&t.ssr)&&!!(t=(t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold")?!1:t)},o.prototype.restoreData=function(){this.dataTask.dirty()},o.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Cd.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},o.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},o.prototype.getProgressive=function(){return this.get("progressive")},o.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},o.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},o.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(e);if("series"===i||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var r=0;r<t.length;r++){var a=Qg(o,t[r]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},o.prototype.toggleSelect=function(t,e){for(var n=[],i=0;i<t.length;i++)n[0]=t[i],this.isSelected(t[i],e)?this.unselect(n,e):this.select(n,e)},o.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=W(t),n=[],i=0;i<e.length;i++){var o=t[e[i]];0<=o&&n.push(o)}return n},o.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),"all"===n||n[Qg(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},o.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},o.prototype._innerSelect=function(t,e){var n=this.option,i=n.selectedMode,o=e.length;if(i&&o)if("series"===i)n.selectedMap="all";else if("multiple"===i){P(n.selectedMap)||(n.selectedMap={});for(var r=n.selectedMap,a=0;a<o;a++){var s,l=e[a];r[s=Qg(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==i&&!0!==i||(s=Qg(t,i=e[o-1]),n.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=t.getRawIndex(i),n))},o.prototype._initSelectedMapFromData=function(n){var i;this.option.selectedMap||(i=[],n.hasItemOption&&n.each(function(t){var e=n.getRawDataItem(t);e&&e.selected&&i.push(t)}),0<i.length&&this._innerSelect(n,i))},o.registerClass=function(t){return g.registerClass(t)},o.protoInitialize=((Vc=o.prototype).type="series.__base__",Vc.seriesIndex=0,Vc.ignoreStyleOnData=!1,Vc.hasSymbolVisual=!1,Vc.defaultSymbol="circle",Vc.visualStyleAccessPath="itemStyle",void(Vc.visualDrawType="fill"));var Jg,ty=o;function o(){var t=null!==Jg&&Jg.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function ey(t){var e,n,i=t.name;Or(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],H(t,function(t){t=e.getDimensionInfo(t);t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function ny(t){return t.model.getRawData().count()}function iy(t){t=t.model;return t.setData(t.getRawData().cloneShallow()),oy}function oy(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function ry(e,n){H(Nt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,M(ay,n))})}function ay(t,e){t=sy(t);return t&&t.setOutputEnd((e||this).count()),e}function sy(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}st(ty,Xc),st(ty,Cd),Kr(ty,g);uy.prototype.init=function(t,e){},uy.prototype.render=function(t,e,n,i){},uy.prototype.dispose=function(t,e){},uy.prototype.updateView=function(t,e,n,i){},uy.prototype.updateLayout=function(t,e,n,i){},uy.prototype.updateVisual=function(t,e,n,i){},uy.prototype.toggleBlurSeries=function(t,e,n){},uy.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var ly=uy;function uy(){this.group=new Zo,this.uid=Kc("viewComponent")}function hy(){var r=zr();return function(t){var e=r(t),t=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(n==o&&i==e)&&"reset"}}jr(ly),ta(ly);var cy=zr(),py=hy(),dy=(fy.prototype.init=function(t,e){},fy.prototype.render=function(t,e,n,i){},fy.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&yy(t,i,"emphasis")},fy.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&yy(t,i,"normal")},fy.prototype.remove=function(t,e){this.group.removeAll()},fy.prototype.dispose=function(t,e){},fy.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},fy.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},fy.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},fy.prototype.eachRendered=function(t){vc(this.group,t)},fy.markUpdateMethod=function(t,e){cy(t).updateMethod=e},fy.protoInitialize=void(fy.prototype.type="chart"),fy);function fy(){this.group=new Zo,this.uid=Kc("viewChart"),this.renderTask=Hf({plan:my,reset:vy}),this.renderTask.context={view:this}}function gy(t,e,n){t&&$l(t)&&("emphasis"===e?Ol:Nl)(t,n)}function yy(e,t,n){var i,o=Er(e,t),r=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=ol[t])&&il<=32?ol[t]=il++:i):null;null!=o?H(Ir(o),function(t){gy(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){gy(t,n,r)})}function my(t){return py(t.model)}function vy(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&cy(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,n,i,o),_y[r]}jr(dy),ta(dy);var _y={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},xy="\0__throttleOriginMethod",by="\0__throttleRate",wy="\0__throttleType";function Sy(t,o,r){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}o=o||0;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a=(new Date).getTime(),l=this,u=t;var n=h||o,i=h||r;h=null,s=a-(i?c:p)-n,clearTimeout(d),i?d=setTimeout(f,n):0<=s?f():d=setTimeout(f,-s),c=a}return e.clear=function(){d&&(clearTimeout(d),d=null)},e.debounceNextCall=function(t){h=t},e}function My(t,e,n,i){var o=t[e];if(o){var r=o[xy]||o,a=o[wy];if(o[by]!==n||a!==i){if(null==n||!i)return t[e]=r;(o=t[e]=Sy(r,n,"debounce"===i))[xy]=r,o[wy]=i,o[by]=n}}}function Iy(t,e){var n=t[e];n&&n[xy]&&(n.clear&&n.clear(),t[e]=n[xy])}var Ty=zr(),Cy={itemStyle:ea(Hc,!0),lineStyle:ea(Bc,!0)},Dy={lineStyle:"stroke",itemStyle:"fill"};function ky(t,e){t=t.visualStyleMapper||Cy[e];return t||(console.warn("Unknown style type '"+e+"'."),Cy.itemStyle)}function Ay(t,e){t=t.visualDrawType||Dy[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var ia={createOnAllSeries:!0,performRawSeries:!0,reset:function(o,t){var e=o.getData(),n=o.visualStyleAccessPath||"itemStyle",i=o.getModel(n),r=ky(o,n)(i),i=i.getShallow("decal"),a=(i&&(e.setVisual("decal",i),i.dirty=!0),Ay(o,n)),i=r[a],s=C(i)?i:null,n="auto"===r.fill||"auto"===r.stroke;if(r[a]&&!s&&!n||(i=o.getColorFromPalette(o.name,null,t.getSeriesCount()),r[a]||(r[a]=i,e.setVisual("colorFromPalette",!0)),r.fill="auto"===r.fill||C(r.fill)?i:r.fill,r.stroke="auto"===r.stroke||C(r.stroke)?i:r.stroke),e.setVisual("style",r),e.setVisual("drawType",a),!t.isSeriesFiltered(o)&&s)return e.setVisual("colorFromPalette",!1),{dataEach:function(t,e){var n=o.getDataParams(e),i=V({},r);i[a]=s(n),t.setItemVisual(e,"style",i)}}}},Ly=new Zc,sc={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i,o,r;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=ky(t,i),r=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var n=t.getRawDataItem(e);n&&n[i]&&(Ly.option=n[i],n=o(Ly),V(t.ensureUniqueItemVisual(e,"style"),n),Ly.option.decal&&(t.setItemVisual(e,"decal",Ly.option.decal),Ly.option.decal.dirty=!0),r in n)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},hp={performRawSeries:!0,overallReset:function(e){var i=N();e.eachSeries(function(t){var e,n=t.getColorBy();t.isColorBySeries()||(n=t.type+"-"+n,(e=i.get(n))||i.set(n,e={}),Ty(t).scope=e)}),e.eachSeries(function(i){var o,r,a,s,t,l;i.isColorBySeries()||e.isSeriesFiltered(i)||(o=i.getRawData(),r={},a=i.getData(),s=Ty(i).scope,t=i.visualStyleAccessPath||"itemStyle",l=Ay(i,t),a.each(function(t){var e=a.getRawIndex(t);r[e]=t}),o.each(function(t){var e,n=r[t];a.getItemVisual(n,"colorFromPalette")&&(n=a.ensureUniqueItemVisual(n,"style"),t=o.getName(t)||t+"",e=o.count(),n[l]=i.getColorFromPalette(t,s,e))}))})}},Py=Math.PI;Ny.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){t=t.overallTask;t&&t.dirty()})},Ny.prototype.getPerformArgs=function(t,e){var n,i;if(t.__pipeline)return i=(n=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},Ny.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Ny.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:o}},Ny.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=N();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;o.set(n,{id:n,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:e&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(e||700),count:0}),i._pipe(t,t.dataTask)})},Ny.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;H(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});Mt(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},Ny.prototype.prepareView=function(t,e,n,i){var o=t.renderTask,r=o.context;r.model=e,r.ecModel=n,r.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(e,o)},Ny.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Ny.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Ny.prototype._performStageTasks=function(t,s,l,u){u=u||{};var h=!1,c=this;function p(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}H(t,function(i,t){var e,n,o,r,a;u.visualType&&u.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((r=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),o=!0)}),o&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),r.each(function(t){t.perform(a)}),n.perform(a)&&(h=!0)):e&&e.each(function(t,e){p(u,t)&&t.dirty();var n=c.getPerformArgs(t,u.block);n.skip=!i.performRawSeries&&s.isSeriesFiltered(t.context.model),c.updatePayload(t,l),t.perform(n)&&(h=!0)}))}),this.unfinished=h||this.unfinished},Ny.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Ny.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}}while(e=e.getUpstream())})},Ny.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Ny.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=N(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||Hf({plan:Fy,reset:Vy,count:Wy}));e.context={model:t,ecModel:i,api:o,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:r},r._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):t?i.eachRawSeriesByType(t,l):e&&e(i,o).each(l)},Ny.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||Hf({reset:Ry}),a=(r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=N(),e=t.seriesType,l=t.getTargetSeries,u=!0,h=!1;function c(t){var e=t.uid,e=s.set(e,a&&a.get(e)||(h=!0,Hf({reset:Ey,onDirty:By})));e.context={model:t,overallProgress:u},e.agent=r,e.__block=u,o._pipe(t,e)}Mt(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,H(n.getSeries(),c)),h&&r.dirty()},Ny.prototype._pipe=function(t,e){t=t.uid,t=this._pipelineMap.get(t);t.head||(t.head=e),t.tail&&t.tail.pipe(e),(t.tail=e).__idxInPipeline=t.count++,e.__pipeline=t},Ny.wrapStageHandler=function(t,e){return(t=C(t)?{overallReset:t,seriesType:function(t){Xy=null;try{t(Yy,Uy)}catch(t){}return Xy}(t)}:t).uid=Kc("stageHandler"),e&&(t.visualType=e),t};var Oy=Ny;function Ny(t,e,n,i){this._stageTaskMap=N(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Ry(t){t.overallReset(t.ecModel,t.api,t.payload)}function Ey(t){return t.overallProgress&&zy}function zy(){this.agent.dirty(),this.getDownstream().dirty()}function By(){this.agent&&this.agent.dirty()}function Fy(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Vy(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Ir(t.reset(t.model,t.ecModel,t.api,t.payload));return 1<t.length?B(t,function(t,e){return Hy(e)}):Gy}var Gy=Hy(0);function Hy(r){return function(t,e){var n=e.data,i=e.resetDefines[r];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(n,o);else i&&i.progress&&i.progress(t,n)}}function Wy(t){return t.data.count()}var Xy,Yy={},Uy={};function Zy(t,e){for(var n in e.prototype)t[n]=zt}Zy(Yy,Pd),Zy(Uy,zd),Yy.eachSeriesByType=Yy.eachRawSeriesByType=function(t){Xy=t},Yy.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Xy=t.subType)};function qy(){return{axisLine:{lineStyle:{color:jy}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}var Vc=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],Hc={color:Vc,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Vc]},jy="#B9B8CE",Bc="#100C2A",Vc=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Bc={darkMode:!0,color:Vc,backgroundColor:Bc,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:jy}},textStyle:{color:jy},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:jy}},dataZoom:{borderColor:"#71708A",textStyle:{color:jy},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:jy}},timeline:{lineStyle:{color:jy},label:{color:jy},controlStyle:{color:jy,borderColor:jy}},calendar:{itemStyle:{color:Bc},dayLabel:{color:jy},monthLabel:{color:jy},yearLabel:{color:jy}},timeAxis:qy(),logAxis:qy(),valueAxis:qy(),categoryAxis:qy(),line:{symbol:"circle"},graph:{color:Vc},gauge:{title:{color:jy},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:jy},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},Ky=(Bc.categoryAxis.splitLine.show=!1,$y.prototype.normalizeQuery=function(t){var e,a,s,l={},u={},h={};return X(t)?(e=qr(t),l.mainType=e.main||null,l.subType=e.sub||null):(a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1},H(t,function(t,e){for(var n=!1,i=0;i<a.length;i++){var o=a[i],r=e.lastIndexOf(o);0<r&&r===e.length-o.length&&"data"!==(r=e.slice(0,r))&&(l.mainType=r,l[o.toLowerCase()]=t,n=!0)}s.hasOwnProperty(e)&&(u[e]=t,n=!0),n||(h[e]=t)})),{cptQuery:l,dataQuery:u,otherQuery:h}},$y.prototype.filter=function(t,e){var n,i,o,r,a,s=this.eventInfo;return!s||(n=s.targetEl,i=s.packedEvent,o=s.model,s=s.view,!o)||!s||(r=e.cptQuery,a=e.dataQuery,l(r,o,"mainType")&&l(r,o,"subType")&&l(r,o,"index","componentIndex")&&l(r,o,"name")&&l(r,o,"id")&&l(a,i,"name")&&l(a,i,"dataIndex")&&l(a,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i)));function l(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},$y.prototype.afterTrigger=function(){this.eventInfo=null},$y);function $y(){}var Qy=["symbol","symbolSize","symbolRotate","symbolOffset"],Jy=Qy.concat(["symbolKeepAspect"]),Vc={createOnAllSeries:!0,performRawSeries:!0,reset:function(a,t){var e=a.getData();if(a.legendIcon&&e.setVisual("legendIcon",a.legendIcon),a.hasSymbolVisual){for(var s,n={},l={},i=!1,o=0;o<Qy.length;o++){var r=Qy[o],u=a.get(r);C(u)?(i=!0,l[r]=u):n[r]=u}if(n.symbol=n.symbol||a.defaultSymbol,e.setVisual(V({legendIcon:a.legendIcon||n.symbol,symbolKeepAspect:a.get("symbolKeepAspect")},n)),!t.isSeriesFiltered(a))return s=W(l),{dataEach:i?function(t,e){for(var n=a.getRawValue(e),i=a.getDataParams(e),o=0;o<s.length;o++){var r=s[o];t.setItemVisual(e,r,l[r](n,i))}}:null}}}},tm={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<Jy.length;i++){var o=Jy[i],r=n.getShallow(o,!0);null!=r&&t.setItemVisual(e,o,r)}}:null}}};function em(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function nm(r,t){H([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(o){t(o[0],function(t,e,n){var i;t=V({},t),n.dispatchAction(V(t,{type:o[1],seriesIndex:(n=t,i=[],e.eachComponent({mainType:"series",subType:r,query:n},function(t){i.push(t.seriesIndex)}),i)}))})})}function im(t,e,s,n,l){var u=t+e;s.isSilent(u)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,n,i=t.seriesIndex,o=t.option.selectedMap,r=l.selected,a=0;a<r.length;a++)r[a].seriesIndex===i&&(n=Er(e=t.getData(),l.fromActionPayload),s.trigger(u,{type:u,seriesId:t.id,name:F(n)?e.getName(n[0]):e.getName(n),selected:X(o)?o:V({},o)}))})}function om(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var rm=Math.round(9*Math.random()),am="function"==typeof Object.defineProperty,sm=(lm.prototype.get=function(t){return this._guard(t)[this._id]},lm.prototype.set=function(t,e){t=this._guard(t);return am?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},lm.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},lm.prototype.has=function(t){return!!this._guard(t)[this._id]},lm.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},lm);function lm(){this._id="__ec_inner_"+rm++}var um=j.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i+e),t.lineTo(n-o,i+e),t.closePath()}}),hm=j.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,o=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+o,i),t.lineTo(n,i+e),t.lineTo(n-o,i),t.closePath()}}),cm=j.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,o=e.width/5*3,e=Math.max(o,e.height),o=o/2,r=o*o/(e-o),e=i-e+o+r,a=Math.asin(r/o),s=Math.cos(a)*o,l=Math.sin(a),u=Math.cos(a),h=.6*o,c=.7*o;t.moveTo(n-s,e+r),t.arc(n,e,o,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(n+s-l*h,e+r+u*h,n,i-c,n,i),t.bezierCurveTo(n,i-c,n-s+l*h,e+r+u*h,n-s,e+r),t.closePath()}}),pm=j.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,o=e.x,e=e.y,i=i/3*2;t.moveTo(o,e),t.lineTo(o+i,e+n),t.lineTo(o,e+n/4*3),t.lineTo(o-i,e+n),t.lineTo(o,e),t.closePath()}}),dm={line:function(t,e,n,i,o){o.x1=t,o.y1=e+i/2,o.x2=t+n,o.y2=e+i/2},rect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i},roundRect:function(t,e,n,i,o){o.x=t,o.y=e,o.width=n,o.height=i,o.r=Math.min(n,i)/4},square:function(t,e,n,i,o){n=Math.min(n,i);o.x=t,o.y=e,o.width=n,o.height=n},circle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.r=Math.min(n,i)/2},diamond:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i},pin:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},arrow:function(t,e,n,i,o){o.x=t+n/2,o.y=e+i/2,o.width=n,o.height=i},triangle:function(t,e,n,i,o){o.cx=t+n/2,o.cy=e+i/2,o.width=n,o.height=i}},fm={},gm=(H({line:rh,rect:Vs,roundRect:Vs,square:Vs,circle:bu,diamond:hm,pin:cm,arrow:pm,triangle:um},function(t,e){fm[e]=new t}),j.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var t=No(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(t.y=n.y+.4*n.height),t},buildPath:function(t,e,n){var i,o=e.symbolType;"none"!==o&&(i=(i=fm[o])||fm[o="rect"],dm[o](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}}));function ym(t,e){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw())}function mm(t,e,n,i,o,r,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?nc(t.slice(8),new Z(e,n,i,o),a?"center":"cover"):0===t.indexOf("path://")?ec(t.slice(7),{},new Z(e,n,i,o),a?"center":"cover"):new gm({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=s,a.setColor=ym,r&&a.setColor(r),a}function vm(t){return[(t=F(t)?t:[+t,+t])[0]||0,t[1]||0]}function _m(t,e){if(null!=t)return[q((t=F(t)?t:[t,t])[0],e[0])||0,q(O(t[1],t[0]),e[1])||0]}function xm(t){return isFinite(t)}function bm(t,e,n){for(var i,o,r,a,s,l,u,h,c,p="radial"===e.type?(i=t,o=e,a=(r=n).width,s=r.height,l=Math.min(a,s),u=null==o.x?.5:o.x,h=null==o.y?.5:o.y,c=null==o.r?.5:o.r,o.global||(u=u*a+r.x,h=h*s+r.y,c*=l),u=xm(u)?u:.5,h=xm(h)?h:.5,c=0<=c&&xm(c)?c:.5,i.createRadialGradient(u,h,0,u,h,c)):(o=t,a=n,r=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,i=null==s.y?0:s.y,u=null==s.y2?0:s.y2,s.global||(r=r*a.width+a.x,l=l*a.width+a.x,i=i*a.height+a.y,u=u*a.height+a.y),r=xm(r)?r:0,l=xm(l)?l:1,i=xm(i)?i:0,u=xm(u)?u:0,o.createLinearGradient(r,i,l,u)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function wm(t){return parseInt(t,10)}function Sm(t,e,n){var i=["width","height"][e],o=["clientWidth","clientHeight"][e],r=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=document.defaultView.getComputedStyle(t),(t[o]||wm(n[i])||wm(t.style[i]))-(wm(n[r])||0)-(wm(n[e])||0)|0)}function Mm(t){var e,n=t.style,i=n.lineDash&&0<n.lineWidth&&(o=n.lineDash,i=n.lineWidth,o&&"solid"!==o&&0<i?"dashed"===o?[4*i,2*i]:"dotted"===o?[i]:Y(o)?[o]:F(o)?o:null:null),o=n.lineDashOffset;return i&&(e=n.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(i=B(i,function(t){return t/e}),o/=e),[i,o]}var Im=new as(!0);function Tm(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function Cm(t){return"string"==typeof t&&"none"!==t}function Dm(t){t=t.fill;return null!=t&&"none"!==t}function km(t,e){var n;null!=e.fillOpacity&&1!==e.fillOpacity?(n=t.globalAlpha,t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n):t.fill()}function Am(t,e){var n;null!=e.strokeOpacity&&1!==e.strokeOpacity?(n=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n):t.stroke()}function Lm(t,e,n){var n=aa(e.image,e.__image,n);if(la(n))return t=t.createPattern(n,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t&&t.setTransform&&((n=new DOMMatrix).translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*Bt),n.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(n)),t}var Pm=["shadowBlur","shadowOffsetX","shadowOffsetY"],Om=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Nm(t,e,n,i,o){var r,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(Gm(t,o),a=!0,r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?wa.opacity:r),!i&&e.blend===n.blend||(a||(Gm(t,o),a=!0),t.globalCompositeOperation=e.blend||wa.blend);for(var s=0;s<Pm.length;s++){var l=Pm[s];!i&&e[l]===n[l]||(a||(Gm(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(Gm(t,o),a=!0),t.shadowColor=e.shadowColor||wa.shadowColor),a}function Rm(t,e,n,i,o){var r=Hm(e,o.inHover),a=i?null:n&&Hm(n,o.inHover)||{};if(r!==a){var s=Nm(t,r,a,i,o);(i||r.fill!==a.fill)&&(s||(Gm(t,o),s=!0),Cm(r.fill))&&(t.fillStyle=r.fill),(i||r.stroke!==a.stroke)&&(s||(Gm(t,o),s=!0),Cm(r.stroke))&&(t.strokeStyle=r.stroke),!i&&r.opacity===a.opacity||(s||(Gm(t,o),s=!0),t.globalAlpha=null==r.opacity?1:r.opacity),e.hasStroke()&&(n=r.lineWidth/(r.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==n)&&(s||(Gm(t,o),s=!0),t.lineWidth=n);for(var l=0;l<Om.length;l++){var u=Om[l],h=u[0];!i&&r[h]===a[h]||(s||(Gm(t,o),s=!0),t[h]=r[h]||u[1])}}}function Em(t,e){var e=e.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)}var zm=1,Bm=2,Fm=3,Vm=4;function Gm(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Hm(t,e){return e&&t.__hoverStyle||t.style}function Wm(t,e){Xm(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Xm(t,e,n,E){var i=e.transform;if(e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){var o=e.__clipPaths,r=n.prevElClipPaths,a=!1,s=!1;if(!r||function(t,e){if(t!==e&&(t||e)){if(!t||!e||t.length!==e.length)return 1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return 1}}(o,r)){if(r&&r.length&&(Gm(t,n),t.restore(),s=a=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length){Gm(t,n),t.save();for(var z=o,l=t,r=n,B=!1,F=0;F<z.length;F++){var V=z[F],B=B||V.isZeroArea();Em(l,V),l.beginPath(),V.buildPath(l,V.shape),l.clip()}r.allClipped=B,a=!0}n.prevElClipPaths=o}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u,h,c,p,d,f,g,y,m,v,_,x,b,G,w,S,M,I,T,C,D,k,A,r=n.prevEl,L=(r||(s=a=!0),e instanceof j&&e.autoBatch&&(o=e.style,L=Dm(o),u=Tm(o),!(o.lineDash||!(+L^+u)||L&&"string"!=typeof o.fill||u&&"string"!=typeof o.stroke||o.strokePercent<1||o.strokeOpacity<1||o.fillOpacity<1))),a=(a||(u=i,o=r.transform,u&&o?u[0]!==o[0]||u[1]!==o[1]||u[2]!==o[2]||u[3]!==o[3]||u[4]!==o[4]||u[5]!==o[5]:u||o)?(Gm(t,n),Em(t,e)):L||Gm(t,n),Hm(e,n.inHover));if(e instanceof j)n.lastDrawType!==zm&&(s=!0,n.lastDrawType=zm),Rm(t,e,r,s,n),L&&(n.batchFill||n.batchStroke)||t.beginPath(),i=t,o=e,N=L,w=Tm(p=a),S=Dm(p),M=p.strokePercent,I=M<1,T=!o.path,o.silent&&!I||!T||o.createPathProxy(),C=o.path||Im,D=o.__dirty,N||(d=p.fill,A=p.stroke,f=S&&!!d.colorStops,g=w&&!!A.colorStops,y=S&&!!d.image,m=w&&!!A.image,k=b=x=_=v=void 0,(f||g)&&(k=o.getBoundingRect()),f&&(v=D?bm(i,d,k):o.__canvasFillGradient,o.__canvasFillGradient=v),g&&(_=D?bm(i,A,k):o.__canvasStrokeGradient,o.__canvasStrokeGradient=_),y&&(x=D||!o.__canvasFillPattern?Lm(i,d,o):o.__canvasFillPattern,o.__canvasFillPattern=x),m&&(b=D||!o.__canvasStrokePattern?Lm(i,A,o):o.__canvasStrokePattern,o.__canvasStrokePattern=x),f?i.fillStyle=v:y&&(x?i.fillStyle=x:S=!1),g?i.strokeStyle=_:m&&(b?i.strokeStyle=b:w=!1)),k=o.getGlobalScale(),C.setScale(k[0],k[1],o.segmentIgnoreThreshold),i.setLineDash&&p.lineDash&&(G=(d=Mm(o))[0],O=d[1]),A=!0,(T||D&wn)&&(C.setDPR(i.dpr),I?C.setContext(null):(C.setContext(i),A=!1),C.reset(),o.buildPath(C,o.shape,N),C.toStatic(),o.pathUpdated()),A&&C.rebuildPath(i,I?M:1),G&&(i.setLineDash(G),i.lineDashOffset=O),N||(p.strokeFirst?(w&&Am(i,p),S&&km(i,p)):(S&&km(i,p),w&&Am(i,p))),G&&i.setLineDash([]),L&&(n.batchFill=a.fill||"",n.batchStroke=a.stroke||"");else if(e instanceof Ts)n.lastDrawType!==Fm&&(s=!0,n.lastDrawType=Fm),Rm(t,e,r,s,n),f=t,v=e,null!=(x=(y=a).text)&&(x+=""),x&&(f.font=y.font||K,f.textAlign=y.textAlign,f.textBaseline=y.textBaseline,_=g=void 0,f.setLineDash&&y.lineDash&&(g=(v=Mm(v))[0],_=v[1]),g&&(f.setLineDash(g),f.lineDashOffset=_),y.strokeFirst?(Tm(y)&&f.strokeText(x,y.x,y.y),Dm(y)&&f.fillText(x,y.x,y.y)):(Dm(y)&&f.fillText(x,y.x,y.y),Tm(y)&&f.strokeText(x,y.x,y.y)),g)&&f.setLineDash([]);else if(e instanceof Ls)n.lastDrawType!==Bm&&(s=!0,n.lastDrawType=Bm),m=r,b=s,Nm(t,Hm(e,(k=n).inHover),m&&Hm(m,k.inHover),b,k),d=t,T=a,(o=(D=e).__image=aa(T.image,D.__image,D,D.onload))&&la(o)&&(A=T.x||0,C=T.y||0,I=D.getWidth(),D=D.getHeight(),M=o.width/o.height,null==I&&null!=D?I=D*M:null==D&&null!=I?D=I/M:null==I&&null==D&&(I=o.width,D=o.height),T.sWidth&&T.sHeight?(h=T.sx||0,c=T.sy||0,d.drawImage(o,h,c,T.sWidth,T.sHeight,A,C,I,D)):T.sx&&T.sy?(h=T.sx,c=T.sy,d.drawImage(o,h,c,I-h,D-c,A,C,I,D)):d.drawImage(o,A,C,I,D));else if(e.getTemporalDisplayables){n.lastDrawType!==Vm&&(s=!0,n.lastDrawType=Vm);var P,H,W=t,O=e,N=n,X=O.getDisplayables(),Y=O.getTemporalDisplayables(),U=(W.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:N.viewWidth,viewHeight:N.viewHeight,inHover:N.inHover});for(P=O.getCursor(),H=X.length;P<H;P++)(R=X[P]).beforeBrush&&R.beforeBrush(),R.innerBeforeBrush(),Xm(W,R,U,P===H-1),R.innerAfterBrush(),R.afterBrush&&R.afterBrush(),U.prevEl=R;for(var R,Z=0,q=Y.length;Z<q;Z++)(R=Y[Z]).beforeBrush&&R.beforeBrush(),R.innerBeforeBrush(),Xm(W,R,U,Z===q-1),R.innerAfterBrush(),R.afterBrush&&R.afterBrush(),U.prevEl=R;O.clearTemporalDisplayables(),O.notClear=!0,W.restore()}L&&E&&Gm(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~bn,e.__isRendered=!1}var Ym=new sm,Um=new oi(100),Zm=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function qm(t,e){if("none"===t)return null;var a=e.getDevicePixelRatio(),s=e.getZr(),l="svg"===s.painter.type,e=(t.dirty&&Ym.delete(t),Ym.get(t));if(e)return e;for(var n,u=z(t,{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}),e=("none"===u.backgroundColor&&(u.backgroundColor=null),{repeat:"repeat"}),i=e,o=[a],r=!0,h=0;h<Zm.length;++h){var c=u[Zm[h]];if(null!=c&&!F(c)&&!X(c)&&!Y(c)&&"boolean"!=typeof c){r=!1;break}o.push(c)}r&&(n=o.join(",")+(l?"-svg":""),v=Um.get(n))&&(l?i.svgElement=v:i.image=v);var p,d=function t(e){if(!e||0===e.length)return[[0,0]];if(Y(e))return[[r=Math.ceil(e),r]];var n=!0;for(var i=0;i<e.length;++i)if(!Y(e[i])){n=!1;break}if(n)return t([e]);var o=[];for(i=0;i<e.length;++i){var r;Y(e[i])?(r=Math.ceil(e[i]),o.push([r,r])):(r=B(e[i],function(t){return Math.ceil(t)})).length%2==1?o.push(r.concat(r)):o.push(r)}return o}(u.dashArrayX),f=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(Y(t))return[e=Math.ceil(t),e];var e=B(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(u.dashArrayY),g=function t(e){if(!e||0===e.length)return[["rect"]];if(X(e))return[[e]];var n=!0;for(var i=0;i<e.length;++i)if(!X(e[i])){n=!1;break}if(n)return t([e]);var o=[];for(i=0;i<e.length;++i)X(e[i])?o.push([e[i]]):o.push(e[i]);return o}(u.symbol),y=function(t){return B(t,jm)}(d),m=jm(f),v=!l&&$.createCanvas(),_=l&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=y.length;e<n;++e)t=wr(t,y[e]);for(var i=1,e=0,n=g.length;e<n;++e)i=wr(i,g[e].length);t*=i;var o=m*y.length*g.length;return{width:Math.max(1,Math.min(t,u.maxTileWidth)),height:Math.max(1,Math.min(o,u.maxTileHeight))}}();v&&(v.width=x.width*a,v.height=x.height*a,p=v.getContext("2d")),p&&(p.clearRect(0,0,v.width,v.height),u.backgroundColor)&&(p.fillStyle=u.backgroundColor,p.fillRect(0,0,v.width,v.height));for(var b=0,w=0;w<f.length;++w)b+=f[w];if(!(b<=0))for(var S=-m,M=0,I=0,T=0;S<x.height;){if(M%2==0){for(var C=I/2%g.length,D=0,k=0,A=0;D<2*x.width;){for(var L,P,O,N,R,E=0,w=0;w<d[T].length;++w)E+=d[T][w];if(E<=0)break;k%2==0&&(P=.5*(1-u.symbolSize),L=D+d[T][k]*P,P=S+f[M]*P,O=d[T][k]*u.symbolSize,N=f[M]*u.symbolSize,R=A/2%g[C].length,function(t,e,n,i,o){var r=l?1:a,o=mm(o,t*r,e*r,n*r,i*r,u.color,u.symbolKeepAspect);l?(t=s.painter.renderOneToVNode(o))&&_.children.push(t):Wm(p,o)}(L,P,O,N,g[C][R])),D+=d[T][k],++A,++k===d[T].length&&(k=0)}++T===d.length&&(T=0)}S+=f[M],++I,++M===f.length&&(M=0)}return r&&Um.put(n,v||_),i.image=v,i.svgElement=_,i.svgWidth=x.width,i.svgHeight=x.height,e.rotation=u.rotation,e.scaleX=e.scaleY=l?1:1/a,Ym.set(t,e),t.dirty=!1,e}function jm(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var Km=new ue,$m={};var hm={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},Qm="__flagInMainProcess",Jm="__pendingUpdate",t0="__needsUpdateStatus",e0=/^[a-zA-Z0-9_]+$/,n0="__connectUpdateStatus";function i0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return r0(this,n,t);this.id}}function o0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r0(this,n,t)}}function r0(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ue.prototype[e].apply(t,n)}u(l0,a0=ue);var a0,s0=l0;function l0(){return null!==a0&&a0.apply(this,arguments)||this}var u0,h0,c0,p0,d0,f0,g0,y0,m0,v0,_0,x0,b0,w0,S0,M0,I0,T0,C0,cm=s0.prototype,D0=(cm.on=o0("on"),cm.off=o0("off"),u(r,C0=ue),r.prototype._onframe=function(){if(!this._disposed){T0(this);var t=this._scheduler;if(this[Jm]){var e=this[Jm].silent;this[Qm]=!0;try{u0(this),p0.update.call(this,null,this[Jm].updateParams)}catch(t){throw this[Qm]=!1,this[Jm]=null,t}this._zr.flush(),this[Qm]=!1,this[Jm]=null,y0.call(this,e),m0.call(this,e)}else if(t.unfinished){var n=1,i=this._model,o=this._api;t.unfinished=!1;do{var r=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),f0(this,i),t.performVisualTasks(i),w0(this,this._model,o,"remain",{}),0<(n-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},r.prototype.getDom=function(){return this._dom},r.prototype.getId=function(){return this.id},r.prototype.getZr=function(){return this._zr},r.prototype.isSSR=function(){return this._ssr},r.prototype.setOption=function(t,e,n){if(!this[Qm])if(this._disposed)this.id;else{P(e)&&(n=e.lazyUpdate,i=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this[Qm]=!0,this._model&&!e||(e=new Wd(this._api),a=this._theme,(s=this._model=new Pd).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:o},B0);var i,o,r,a,s={seriesTransition:r,optionChanged:!0};if(n)this[Jm]={silent:i,updateParams:s},this[Qm]=!1,this.getZr().wakeUp();else{try{u0(this),p0.update.call(this,null,s)}catch(t){throw this[Jm]=null,this[Qm]=!1,t}this._ssr||this._zr.flush(),this[Jm]=null,this[Qm]=!1,y0.call(this,i),m0.call(this,i)}}},r.prototype.setTheme=function(){},r.prototype.getModel=function(){return this._model},r.prototype.getOption=function(){return this._model&&this._model.getOption()},r.prototype.getWidth=function(){return this._zr.getWidth()},r.prototype.getHeight=function(){return this._zr.getHeight()},r.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||w.hasGlobalWindow&&window.devicePixelRatio||1},r.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},r.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},r.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},r.prototype.getSvgDataURL=function(){var t;if(w.svgSupported)return H((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},r.prototype.getDataURL=function(t){var e,n,i,o;if(!this._disposed)return o=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,H(o,function(t){e.eachComponent({mainType:t},function(t){t=i._componentsMap[t.__viewId];t.group.ignore||(n.push(t),t.group.ignore=!0)})}),o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),H(n,function(t){t.group.ignore=!1}),o;this.id},r.prototype.getConnectedDataURL=function(i){var o,r,a,s,l,u,h,c,p,e,t,n,d,f,g;if(!this._disposed)return o="svg"===i.type,r=this.group,a=Math.min,s=Math.max,W0[r]?(u=l=1/0,c=h=-1/0,p=[],e=i&&i.pixelRatio||this.getDevicePixelRatio(),H(H0,function(t,e){var n;t.group===r&&(n=o?t.getZr().painter.getSvgDom().innerHTML:t.renderToCanvas(y(i)),t=t.getDom().getBoundingClientRect(),l=a(t.left,l),u=a(t.top,u),h=s(t.right,h),c=s(t.bottom,c),p.push({dom:n,left:t.left,top:t.top}))}),t=(h*=e)-(l*=e),n=(c*=e)-(u*=e),d=$.createCanvas(),(f=tr(d,{renderer:o?"svg":"canvas"})).resize({width:t,height:n}),o?(g="",H(p,function(t){var e=t.left-l,n=t.top-u;g+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),f.painter.getSvgRoot().innerHTML=g,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()):(i.connectedBackgroundColor&&f.add(new Vs({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),H(p,function(t){t=new Ls({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i);this.id},r.prototype.convertToPixel=function(t,e){return d0(this,"convertToPixel",t,e)},r.prototype.convertFromPixel=function(t,e){return d0(this,"convertFromPixel",t,e)},r.prototype.containPixel=function(t,i){var o;if(!this._disposed)return H(Fr(this._model,t),function(t,n){0<=n.indexOf("Models")&&H(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?o=o||!!e.containPoint(i):"seriesModels"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(o=o||e.containPoint(i,t))},this)},this),!!o;this.id},r.prototype.getVisual=function(t,e){var t=Fr(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null==t)return em(n,e);var i=n,o=t,r=e;switch(r){case"color":return i.getItemVisual(o,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(o,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(o,r)}},r.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},r.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},r.prototype._initEvents=function(){var t,n,i,s=this;H(N0,function(a){function t(t){var n,e,i,o=s.getModel(),r=t.target;"globalout"===a?n={}:r&&om(r,function(t){var e,t=D(t);return t&&null!=t.dataIndex?(e=t.dataModel||o.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,r)||{},1):t.eventData&&(n=V({},t.eventData),1)},!0),n&&(e=n.componentType,i=n.componentIndex,"markLine"!==e&&"markPoint"!==e&&"markArea"!==e||(e="series",i=n.seriesIndex),i=(e=e&&null!=i&&o.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:r,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),H(E0,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),H(["selectchanged"],function(e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),t=this._messageCenter,i=(n=this)._api,t.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(im("map","selectchanged",n,e,t),im("pie","selectchanged",n,e,t)):"select"===t.fromAction?(im("map","selected",n,e,t),im("pie","selected",n,e,t)):"unselect"===t.fromAction&&(im("map","unselected",n,e,t),im("pie","unselected",n,e,t))})},r.prototype.isDisposed=function(){return this._disposed},r.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},r.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&Wr(this.getDom(),U0,""),e=(t=this)._api,n=t._model,H(t._componentsViews,function(t){t.dispose(n,e)}),H(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete H0[t.id])},r.prototype.resize=function(t){if(!this[Qm])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption("media"),n=t&&t.silent;this[Jm]&&(null==n&&(n=this[Jm].silent),e=!0,this[Jm]=null),this[Qm]=!0;try{e&&u0(this),p0.update.call(this,{type:"resize",animation:V({duration:0},t&&t.animation)})}catch(t){throw this[Qm]=!1,t}this[Qm]=!1,y0.call(this,n),m0.call(this,n)}}},r.prototype.showLoading=function(t,e){this._disposed?this.id:(P(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),G0[t]&&(t=G0[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},r.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},r.prototype.makeActionFromEvent=function(t){var e=V({},t);return e.type=E0[t.type],e},r.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(P(e)||(e={silent:!!e}),R0[t.type]&&this._model&&(this[Qm]?this._pendingActions.push(t):(n=e.silent,g0.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&w.browser.weChat&&this._throttledZrFlush(),y0.call(this,n),m0.call(this,n))))},r.prototype.updateLabelLayout=function(){Km.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},r.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},r.internalField=(u0=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),h0(t,!0),h0(t,!1),e.plan()},h0=function(t,o){for(var r=t._model,a=t._scheduler,s=o?t._componentsViews:t._chartsViews,l=o?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;e<s.length;e++)s[e].__alive=!1;function n(t){var e,n=t.__requireNewView,i=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type),n=!n&&l[i];n||(e=qr(t.type),(n=new(o?ly.getClass(e.main,e.sub):dy.getClass(e.sub))).init(r,h),l[i]=n,s.push(n),u.add(n.group)),t.__viewId=n.__id=i,n.__alive=!0,n.__model=t,n.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},o||a.prepareView(n,t,r,h)}o?r.eachComponent(function(t,e){"series"!==t&&n(e)}):r.eachSeries(n);for(e=0;e<s.length;){var i=s[e];i.__alive?e++:(o||i.renderTask.dispose(),u.remove(i.group),i.dispose(r,h),s.splice(e,1),l[i.__id]===i&&delete l[i.__id],i.__id=i.group.__ecComponentInfo=null)}},c0=function(c,e,p,n,t){var i,d,o=c._model;function r(t){t&&t.__alive&&t[e]&&t[e](t.__model,o,c._api,p)}o.setUpdatePayload(p),n?((i={})[n+"Id"]=p[n+"Id"],i[n+"Index"]=p[n+"Index"],i[n+"Name"]=p[n+"Name"],i={mainType:n,query:i},t&&(i.subType=t),null!=(t=p.excludeSeriesId)&&(d=N(),H(Ir(t),function(t){t=Pr(t,null);null!=t&&d.set(t,!0)})),o&&o.eachComponent(i,function(t){var e,n,i=d&&null!=d.get(t.id);if(!i)if(Jl(p))if(t instanceof ty){if(p.type===pl&&!p.notBlur&&!t.get(["emphasis","disabled"])){var i=t,o=p,r=c._api,a=i.seriesIndex,s=i.getData(o.dataType);if(s){var o=(F(o=Er(s,o))?o[0]:o)||0,l=s.getItemGraphicEl(o);if(!l)for(var u=s.count(),h=0;!l&&h<u;)l=s.getItemGraphicEl(h++);l?Gl(a,(o=D(l)).focus,o.blurScope,r):(o=i.get(["emphasis","focus"]),i=i.get(["emphasis","blurScope"]),null!=o&&Gl(a,o,i,r))}}}else{a=Wl(t.mainType,t.componentIndex,p.name,c._api),o=a.focusSelf,i=a.dispatchers;p.type===pl&&o&&!p.notBlur&&Hl(t.mainType,t.componentIndex,c._api),i&&H(i,function(t){(p.type===pl?Ol:Nl)(t)})}else Ql(p)&&t instanceof ty&&(r=t,i=p,c._api,Ql(i)&&(e=i.dataType,F(n=Er(r.getData(e),i))||(n=[n]),r[i.type===yl?"toggleSelect":i.type===fl?"select":"unselect"](n,e)),Xl(t),I0(c))},c),o&&o.eachComponent(i,function(t){d&&null!=d.get(t.id)||r(c["series"===n?"_chartsMap":"_componentsMap"][t.__viewId])},c)):H([].concat(c._componentsViews).concat(c._chartsViews),r)},p0={prepareAndUpdate:function(t){u0(this),p0.update.call(this,t,{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,i=this._api,o=this._zr,r=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),r.create(n,i),a.performDataProcessorTasks(n,t),f0(this,n),r.update(n,i),k0(n),a.performVisualTasks(n,t),x0(this,n,i,t,e),r=n.get("backgroundColor")||"transparent",a=n.get("darkMode"),o.setBackgroundColor(r),null!=a&&"auto"!==a&&o.setDarkMode(a),Km.trigger("afterupdate",n,i))},updateTransform:function(n){var i,o,r=this,a=this._model,s=this._api;a&&(a.setUpdatePayload(n),i=[],a.eachComponent(function(t,e){"series"!==t&&(t=r.getViewOfComponentModel(e))&&t.__alive&&(!t.updateTransform||(e=t.updateTransform(e,a,s,n))&&e.update)&&i.push(t)}),o=N(),a.eachSeries(function(t){var e=r._chartsMap[t.__viewId];(!e.updateTransform||(e=e.updateTransform(t,a,s,n))&&e.update)&&o.set(t.uid,1)}),k0(a),this._scheduler.performVisualTasks(a,n,{setDirty:!0,dirtyMap:o}),w0(this,a,s,n,{},o),Km.trigger("afterupdate",a,s))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),dy.markUpdateMethod(t,"updateView"),k0(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),x0(this,e,this._api,t,{}),Km.trigger("afterupdate",e,this._api))},updateVisual:function(n){var i=this,o=this._model;o&&(o.setUpdatePayload(n),o.eachSeries(function(t){t.getData().clearAllVisual()}),dy.markUpdateMethod(n,"updateVisual"),k0(o),this._scheduler.performVisualTasks(o,n,{visualType:"visual",setDirty:!0}),o.eachComponent(function(t,e){"series"!==t&&(t=i.getViewOfComponentModel(e))&&t.__alive&&t.updateVisual(e,o,i._api,n)}),o.eachSeries(function(t){i._chartsMap[t.__viewId].updateVisual(t,o,i._api,n)}),Km.trigger("afterupdate",o,this._api))},updateLayout:function(t){p0.update.call(this,t)}},d0=function(t,e,n,i){if(t._disposed)t.id;else for(var o=t._model,r=t._coordSysMgr.getCoordinateSystems(),a=Fr(o,n),s=0;s<r.length;s++){var l=r[s];if(l[e]&&null!=(l=l[e](o,a,i)))return l}},f0=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},g0=function(i,t){var o,r,a=this,e=this.getModel(),n=i.type,s=i.escapeConnect,l=R0[n],u=l.actionInfo,h=(u.update||"update").split(":"),c=h.pop(),p=null!=h[0]&&qr(h[0]),h=(this[Qm]=!0,[i]),d=!1,f=(i.batch&&(d=!0,h=B(i.batch,function(t){return(t=z(V({},t),i)).batch=null,t})),[]),g=Ql(i),y=Jl(i);if(y&&Vl(this._api),H(h,function(t){var e,n;(o=(o=l.action(t,a._model,a._api))||V({},t)).type=u.event||o.type,f.push(o),y?(e=(n=Vr(i)).queryOptionMap,n=n.mainTypeSpecified?e.keys()[0]:"series",c0(a,c,t,n),I0(a)):g?(c0(a,c,t,"series"),I0(a)):p&&c0(a,c,t,p.main,p.sub)}),"none"!==c&&!y&&!g&&!p)try{this[Jm]?(u0(this),p0.update.call(this,i),this[Jm]=null):p0[c].call(this,i)}catch(t){throw this[Qm]=!1,t}o=d?{type:u.event||n,escapeConnect:s,batch:f}:f[0],this[Qm]=!1,t||((h=this._messageCenter).trigger(o.type,o),g&&(d={type:"selectchanged",escapeConnect:s,selected:(r=[],e.eachSeries(function(n){H(n.getAllData(),function(t){t.data;var t=t.type,e=n.getSelectedDataIndices();0<e.length&&(e={dataIndex:e,seriesIndex:n.seriesIndex},null!=t&&(e.dataType=t),r.push(e))})}),r),isFromClick:i.isFromClick||!1,fromAction:i.type,fromActionPayload:i},h.trigger(d.type,d)))},y0=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();g0.call(this,n,t)}},m0=function(t){t||this.trigger("updated")},v0=function(e,n){e.on("rendered",function(t){n.trigger("rendered",t),!e.animation.isFinished()||n[Jm]||n._scheduler.unfinished||n._pendingActions.length||n.trigger("finished")})},_0=function(t,a){t.on("mouseover",function(t){var e,n,i,o,r=om(t.target,$l);r&&(r=r,e=t,t=a._api,n=D(r),i=(o=Wl(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,o=o.focusSelf,i?(o&&Hl(n.componentMainType,n.componentIndex,t),H(i,function(t){return Ll(t,e)})):(Gl(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&Hl(n.componentMainType,n.componentIndex,t),Ll(r,e)),I0(a))}).on("mouseout",function(t){var e,n,i=om(t.target,$l);i&&(i=i,e=t,Vl(t=a._api),(n=Wl((n=D(i)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?H(n,function(t){return Pl(t,e)}):Pl(i,e),I0(a))}).on("click",function(t){var e,t=om(t.target,function(t){return null!=D(t).dataIndex},!0);t&&(e=t.selected?"unselect":"select",t=D(t),a._api.dispatchAction({type:e,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},x0=function(t,e,n,i,o){var r,a,s,l,u,h,c;u=[],c=!(h=[]),(r=e).eachComponent(function(t,e){var n=e.get("zlevel")||0,i=e.get("z")||0,o=e.getZLevelKey();c=c||!!o,("series"===t?h:u).push({zlevel:n,z:i,idx:e.componentIndex,type:t,key:o})}),c&&(xn(a=u.concat(h),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),H(a,function(t){var e=r.getComponent(t.type,t.idx),n=t.zlevel,t=t.key;null!=s&&(n=Math.max(s,n)),t?(n===s&&t!==l&&n++,l=t):l&&(n===s&&n++,l=""),s=n,e.setZLevel(n)})),b0(t,e,n,i,o),H(t._chartsViews,function(t){t.__alive=!1}),w0(t,e,n,i,o),H(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},b0=function(t,n,i,o,e,r){H(r||t._componentsViews,function(t){var e=t.__model;P0(0,t),t.render(e,n,i,o),L0(e,t),O0(e,t)})},w0=function(o,t,e,r,n,a){var i,s,l,u,h=o._scheduler,c=(n=V(n||{},{updatedSeries:t.getSeries()}),Km.trigger("series:beforeupdate",t,e,n),!1);t.eachSeries(function(t){var e,n=o._chartsMap[t.__viewId],i=(n.__alive=!0,n.renderTask);h.updatePayload(i,r),P0(0,n),a&&a.get(t.uid)&&i.dirty(),i.perform(h.getPerformArgs(i))&&(c=!0),n.group.silent=!!t.get("silent"),i=n,e=t.get("blendMode")||null,i.eachRendered(function(t){t.isGroup||(t.style.blend=e)}),Xl(t)}),h.unfinished=c||h.unfinished,Km.trigger("series:layoutlabels",t,e,n),Km.trigger("series:transition",t,e,n),t.eachSeries(function(t){var e=o._chartsMap[t.__viewId];L0(t,e),O0(t,e)}),s=t,l=(i=o)._zr.storage,u=0,l.traverse(function(t){t.isGroup||u++}),u>s.get("hoverLayerThreshold")&&!w.node&&!w.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=i._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),Km.trigger("series:afterupdate",t,e,n)},I0=function(t){t[t0]=!0,t.getZr().wakeUp()},T0=function(t){t[t0]&&(t.getZr().storage.traverse(function(t){Hh(t)||A0(t)}),t[t0]=!1)},S0=function(n){return u(t,e=zd),t.prototype.getCoordinateSystems=function(){return n._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return n._model.getComponent(e.mainType,e.index);t=t.parent}},t.prototype.enterEmphasis=function(t,e){Ol(t,e),I0(n)},t.prototype.leaveEmphasis=function(t,e){Nl(t,e),I0(n)},t.prototype.enterBlur=function(t){Rl(t),I0(n)},t.prototype.leaveBlur=function(t){El(t),I0(n)},t.prototype.enterSelect=function(t){zl(t),I0(n)},t.prototype.leaveSelect=function(t){Bl(t),I0(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(M0=function(i){function o(t,e){for(var n=0;n<t.length;n++)t[n][n0]=e}H(E0,function(t,e){i._messageCenter.on(e,function(t){var e,n;!W0[i.group]||0===i[n0]||t&&t.escapeConnect||(e=i.makeActionFromEvent(t),n=[],H(H0,function(t){t!==i&&t.group===i.group&&n.push(t)}),o(n,0),H(n,function(t){1!==t[n0]&&t.dispatchAction(e)}),o(n,2))})})})),r);function r(t,e,n){var i=C0.call(this,new Ky)||this,t=(i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},X(e)&&(e=V0[e]),i._dom=t,n.ssr&&nr(function(t){var e,t=D(t),n=t.dataIndex;if(null!=n)return(e=N()).set("series_index",t.seriesIndex),e.set("data_index",n),t.ssrType&&e.set("ssr_type",t.ssrType),e}),i._zr=tr(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:O(n.useDirtyRect,!1),useCoarsePointer:O(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize})),n=(i._ssr=n.ssr,i._throttledZrFlush=Sy(S(t.flush,t),17),(e=y(e))&&hf(e,!0),i._theme=e,i._locale=X(e=n.locale||ip)?(n=ep[e.toUpperCase()]||{},e===Qc||e===Jc?y(n):d(y(n),y(ep[tp]),!1)):d(y(e),y(ep[tp]),!1),i._coordSysMgr=new Vd,i._api=S0(i));function o(t,e){return t.__prio-e.__prio}return xn(F0,o),xn(z0,o),i._scheduler=new Oy(i,n,z0,F0),i._messageCenter=new s0,i._initEvents(),i.resize=S(i.resize,i),t.animation.on("frame",i._onframe,i),v0(t,i),_0(t,i),Ct(i),i}function k0(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function A0(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var o=n[i];"emphasis"!==o&&"blur"!==o&&"select"!==o&&e.push(o)}t.selected&&t.states.select&&e.push("select"),t.hoverState===ul&&t.states.emphasis?e.push("emphasis"):t.hoverState===ll&&t.states.blur&&e.push("blur"),t.useStates(e)}function L0(t,e){var n,i;t.preventAutoZ||(n=t.get("z")||0,i=t.get("zlevel")||0,e.eachRendered(function(t){return function t(e,n,i,o){var r=e.getTextContent();var a=e.getTextGuideLine();var s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u<l.length;u++)o=Math.max(t(l[u],n,i,o),o);else e.z=n,e.zlevel=i,o=Math.max(e.z2,o);r&&(r.z=n,r.zlevel=i,isFinite(o))&&(r.z2=o+2);a&&(s=e.textGuideLineConfig,a.z=n,a.zlevel=i,isFinite(o))&&(a.z2=o+(s&&s.showAbove?1:-1));return o}(t,n,i,-1/0),!0}))}function P0(t,e){e.eachRendered(function(t){var e,n;Hh(t)||(e=t.getTextContent(),n=t.getTextGuideLine(),t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null))})}function O0(t,e){var n=t.getModel("stateAnimation"),o=t.isAnimationEnabled(),t=n.get("duration"),r=0<t?{duration:t,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered(function(t){var e,n,i;t.states&&t.states.emphasis&&(Hh(t)||(t instanceof j&&((i=rl(n=t)).normalFill=n.style.fill,i.normalStroke=n.style.stroke,n=n.states.select||{},i.selectFill=n.style&&n.style.fill||null,i.selectStroke=n.style&&n.style.stroke||null),t.__dirty&&(i=t.prevStates)&&t.useStates(i),o&&(t.stateTransition=r,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=r),e)&&(e.stateTransition=r),t.__dirty&&A0(t)))})}var pm=D0.prototype,N0=(pm.on=i0("on"),pm.off=i0("off"),pm.one=function(i,o,t){var r=this;this.on.call(this,i,function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];o&&o.apply&&o.apply(this,e),r.off(i,t)},t)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]);var R0={},E0={},z0=[],B0=[],F0=[],V0={},G0={},H0={},W0={},X0=+new Date,Y0=+new Date,U0="_echarts_instance_";function Z0(t){W0[t]=!1}um=Z0;function q0(t){return H0[e=U0,(t=t).getAttribute?t.getAttribute(e):t[e]];var e}function j0(t,e){V0[t]=e}function K0(t){G(B0,t)<0&&B0.push(t)}function $0(t,e){av(z0,t,e,2e3)}function Q0(t){tv("afterinit",t)}function J0(t){tv("afterupdate",t)}function tv(t,e){Km.on(t,e)}function ev(t,e,n){C(e)&&(n=e,e="");var i=P(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,E0[e]||(Mt(e0.test(i)&&e0.test(e)),R0[i]||(R0[i]={action:n,actionInfo:t}),E0[e]=i)}function nv(t,e){Vd.register(t,e)}function iv(t,e){av(F0,t,e,1e3,"layout")}function ov(t,e){av(F0,t,e,3e3,"visual")}var rv=[];function av(t,e,n,i,o){(C(e)||P(e))&&(n=e,e=i),0<=G(rv,n)||(rv.push(n),(i=Oy.wrapStageHandler(n,o)).__prio=e,i.__raw=n,t.push(i))}function sv(t,e){G0[t]=e}function lv(t,e,n){var i=$m.registerMap;i&&i(t,e,n)}function uv(t){var e=(t=y(t)).type,n=(e||f(""),e.split(":")),i=(2!==n.length&&f(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,yg.set(e,t)}ov(2e3,ia),ov(4500,sc),ov(4500,hp),ov(2e3,Vc),ov(4500,tm),ov(7e3,function(e,i){e.eachRawSeries(function(t){var n;!e.isSeriesFiltered(t)&&((n=t.getData()).hasItemVisual()&&n.each(function(t){var e=n.getItemVisual(t,"decal");e&&(n.ensureUniqueItemVisual(t,"style").decal=qm(e,i))}),t=n.getVisual("decal"))&&(n.getVisual("style").decal=qm(t,i))})}),K0(hf),$0(900,function(t){var i=N();t.eachSeries(function(t){var e,n=t.get("stack");n&&(n=i.get(n)||i.set(n,[]),(t={stackResultDimension:(e=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:e.getCalculationInfo("stackedOverDimension"),stackedDimension:e.getCalculationInfo("stackedDimension"),stackedByDimension:e.getCalculationInfo("stackedByDimension"),isStackedByIndex:e.getCalculationInfo("isStackedByIndex"),data:e,seriesModel:t}).stackedDimension)&&(t.isStackedByIndex||t.stackedByDimension)&&(n.length&&e.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(t))}),i.each(cf)}),sv("default",function(i,o){z(o=o||{},{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 r,t=new Zo,a=new Vs({style:{fill:o.maskColor},zlevel:o.zlevel,z:1e4}),s=(t.add(a),new Ys({style:{text:o.text,fill:o.textColor,fontSize:o.fontSize,fontWeight:o.fontWeight,fontStyle:o.fontStyle,fontFamily:o.fontFamily},zlevel:o.zlevel,z:10001})),l=new Vs({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:o.zlevel,z:10001});return t.add(l),o.showSpinner&&((r=new gh({shape:{startAngle:-Py/2,endAngle:-Py/2+.1,r:o.spinnerRadius},style:{stroke:o.color,lineCap:"round",lineWidth:o.lineWidth},zlevel:o.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Py/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Py/2}).delay(300).start("circularInOut"),t.add(r)),t.resize=function(){var t=s.getBoundingRect().width,e=o.showSpinner?o.spinnerRadius:0,t=(i.getWidth()-2*e-(o.showSpinner&&t?10:0)-t)/2-(o.showSpinner&&t?0:5+t/2)+(o.showSpinner?0:t/2)+(t?0:e),n=i.getHeight()/2;o.showSpinner&&r.setShape({cx:t,cy:n}),l.setShape({x:t-e,y:n-e,width:2*e,height:2*e}),a.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},t.resize(),t}),ev({type:pl,event:pl,update:pl},zt),ev({type:dl,event:dl,update:dl},zt),ev({type:fl,event:fl,update:fl},zt),ev({type:gl,event:gl,update:gl},zt),ev({type:yl,event:yl,update:yl},zt),j0("light",Hc),j0("dark",Bc);function hv(t){return null==t?0:t.length||1}function cv(t){return t}dv.prototype.add=function(t){return this._add=t,this},dv.prototype.update=function(t){return this._update=t,this},dv.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},dv.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},dv.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},dv.prototype.remove=function(t){return this._remove=t,this},dv.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},dv.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),o=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var r=0;r<t.length;r++){var a,s=i[r],l=n[s],u=hv(l);1<u?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,r)):1===u?(n[s]=null,this._update&&this._update(l,r)):this._remove&&this._remove(r)}this._performRestAdd(o,n)},dv.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],r=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var a=0;a<o.length;a++){var s=o[a],l=n[s],u=i[s],h=hv(l),c=hv(u);if(1<h&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&1<c)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(1<h&&1<c)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(1<h)for(var p=0;p<h;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(r,i)},dv.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],r=hv(o);if(1<r)for(var a=0;a<r;a++)this._add&&this._add(o[a]);else 1===r&&this._add&&this._add(o);e[i]=null}},dv.prototype._initIndexMap=function(t,e,n,i){for(var o=this._diffModeMultiple,r=0;r<t.length;r++){var a,s,l="_ec_"+this[i](t[r],r);o||(n[r]=l),e&&(0===(s=hv(a=e[l]))?(e[l]=r,o&&n.push(l)):1===s?e[l]=[a,r]:a.push(r))}};var pv=dv;function dv(t,e,n,i,o,r){this._old=t,this._new=e,this._oldKeyGetter=n||cv,this._newKeyGetter=i||cv,this.context=o,this._diffModeMultiple="multiple"===r}gv.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},gv.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var fv=gv;function gv(t,e){this._encode=t,this._schema=e}function yv(r,t){var e={},a=e.encode={},s=N(),l=[],u=[],h={},i=(H(r.dimensions,function(t){var e,n,i=r.getDimensionInfo(t),o=i.coordDim;o&&(e=i.coordDimIndex,mv(a,o)[e]=t,i.isExtraCoord||(s.set(o,1),"ordinal"!==(n=i.type)&&"time"!==n&&(l[0]=t),mv(h,o)[e]=r.getDimensionIndex(i.name)),i.defaultTooltip)&&u.push(t),ad.each(function(t,e){var n=mv(a,e),e=i.otherDims[e];null!=e&&!1!==e&&(n[e]=i.name)})}),[]),o={},n=(s.each(function(t,e){var n=a[e];o[e]=n[0],i=i.concat(n)}),e.dataDimsOnCoord=i,e.dataDimIndicesOnCoord=B(i,function(t){return r.getDimensionInfo(t).storeDimIndex}),e.encodeFirstDimNotExtra=o,a.label),n=(n&&n.length&&(l=n.slice()),a.tooltip);return n&&n.length?u=n.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,e.userOutput=new fv(h,t),e}function mv(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var vv=function(t){this.otherDims={},null!=t&&V(this,t)},_v=zr(),xv={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},bv=(wv.prototype.isDimensionOmitted=function(){return this._dimOmitted},wv.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=Iv(this.source))},wv.prototype.getSourceDimensionIndex=function(t){return O(this._dimNameMap.get(t),-1)},wv.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},wv.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=bf(this.source),n=!(30<t),i="",o=[],r=0,a=0;r<t;r++){var s,l=void 0,u=void 0,h=void 0,c=this.dimensions[a];c&&c.storeDimIndex===r?(l=e?c.name:null,u=c.type,h=c.ordinalMeta,a++):(s=this.getSourceDimension(r))&&(l=e?s.name:null,u=s.type),o.push({property:l,type:u,ordinalMeta:h}),!e||null==l||c&&c.isCalculationCoord||(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i=i+"$"+(xv[u]||"f"),h&&(i+=h.uid),i+="$"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},wv.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,o=this.dimensions[n];o&&o.storeDimIndex===e?(o.isCalculationCoord||(i=o.name),n++):(o=this.getSourceDimension(e))&&(i=o.name),t.push(i)}return t},wv.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},wv);function wv(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function Sv(t){return t instanceof bv}function Mv(t){for(var e=N(),n=0;n<(t||[]).length;n++){var i=t[n],i=P(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Iv(t){var e=_v(t);return e.dimNameMap||(e.dimNameMap=Mv(t.dimensionsDefine))}var Tv,Cv,Dv,kv,Av,Lv,Pv,Ov=P,Nv=B,Rv="undefined"==typeof Int32Array?Array:Int32Array,Ev=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],zv=["_approximateExtent"],Bv=(s.prototype.getDimension=function(t){var e;return null==(e=this._recognizeDimIndex(t))?t:(e=t,this._dimOmitted?null!=(t=this._dimIdxToName.get(e))?t:(t=this._schema.getSourceDimension(e))?t.name:void 0:this.dimensions[e])},s.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);return null!=e?e:null==t?-1:(e=this._getDimInfo(t))?e.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},s.prototype._recognizeDimIndex=function(t){if(Y(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},s.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},s.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},s.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},s.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},s.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},s.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},s.prototype.getStore=function(){return this._store},s.prototype.initData=function(t,e,n){var i,o,r=this;(i=t instanceof Cg?t:i)||(o=this.dimensions,t=gf(t)||lt(t)?new If(t,o.length):t,i=new Cg,o=Nv(o,function(t){return{type:r._dimInfos[t].type,property:t}}),i.initData(t,o,n)),this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=yv(this,this._schema),this.userOutput=this._dimSummary.userOutput},s.prototype.appendData=function(t){t=this._store.appendData(t);this._doInit(t[0],t[1])},s.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e.length),n=t.start,i=t.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var r=n;r<i;r++)this._nameList[r]=e[r-n],o&&Pv(this,r)},s.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)}},s.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==cd&&!t.fillStorage},s.prototype._doInit=function(t,e){if(!(e<=t)){var n=this._store.getProvider(),i=(this._updateOrdinalMeta(),this._nameList),o=this._idList;if(n.getSource().sourceFormat===sd&&!n.pure)for(var r=[],a=t;a<e;a++){var s,l=n.getItem(a,r);this.hasItemOption||!P(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==i[a]&&null!=s&&(i[a]=Pr(s,null)),l=l.id,null==o[a])&&null!=l&&(o[a]=Pr(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)Pv(this,a);Tv(this)}},s.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},s.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},s.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},s.prototype.setCalculationInfo=function(t,e){Ov(t)?V(this._calculationInfo,t):this._calculationInfo[t]=e},s.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?Dv(this,this._nameDimIdx,t):e)?"":e},s.prototype._getCategory=function(t,e){e=this._store.get(t,e),t=this._store.getOrdinalMeta(t);return t?t.categories[e]:e},s.prototype.getId=function(t){return Cv(this,this.getRawIndex(t))},s.prototype.count=function(){return this._store.count()},s.prototype.get=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},s.prototype.getByRawIndex=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},s.prototype.getIndices=function(){return this._store.getIndices()},s.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},s.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},s.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},s.prototype.getValues=function(t,e){var n=this,i=this._store;return F(t)?i.getValues(Nv(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},s.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},s.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},s.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},s.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},s.prototype.rawIndexOf=function(t,e){t=(t&&this._invertedIndicesMap[t])[e];return null==t||isNaN(t)?-1:t},s.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},s.prototype.each=function(t,e,n){C(t)&&(n=e,e=t,t=[]);n=n||this,t=Nv(kv(t),this._getStoreDimIndex,this);this._store.each(t,n?S(e,n):e)},s.prototype.filterSelf=function(t,e,n){C(t)&&(n=e,e=t,t=[]);n=n||this,t=Nv(kv(t),this._getStoreDimIndex,this);return this._store=this._store.filter(t,n?S(e,n):e),this},s.prototype.selectRange=function(n){var i=this,o={};return H(W(n),function(t){var e=i._getStoreDimIndex(t);o[e]=n[t]}),this._store=this._store.selectRange(o),this},s.prototype.mapArray=function(t,e,n){C(t)&&(n=e,e=t,t=[]);var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n=n||this),i},s.prototype.map=function(t,e,n,i){n=n||i||this,i=Nv(kv(t),this._getStoreDimIndex,this),t=Lv(this);return t._store=this._store.map(i,n?S(e,n):e),t},s.prototype.modify=function(t,e,n,i){n=n||i||this,i=Nv(kv(t),this._getStoreDimIndex,this);this._store.modify(i,n?S(e,n):e)},s.prototype.downSample=function(t,e,n,i){var o=Lv(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),o},s.prototype.lttbDownSample=function(t,e){var n=Lv(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},s.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},s.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new Zc(t,e,e&&e.ecModel)},s.prototype.diff=function(e){var n=this;return new pv(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return Cv(e,t)},function(t){return Cv(n,t)})},s.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},s.prototype.setVisual=function(t,e){this._visual=this._visual||{},Ov(t)?V(this._visual,t):this._visual[t]=e},s.prototype.getItemVisual=function(t,e){t=this._itemVisuals[t],t=t&&t[e];return null==t?this.getVisual(e):t},s.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},s.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],n=(i=i||(n[t]={}))[e];return null==n&&(F(n=this.getVisual(e))?n=n.slice():Ov(n)&&(n=V({},n)),i[e]=n),n},s.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Ov(e)?V(i,e):i[e]=n},s.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},s.prototype.setLayout=function(t,e){Ov(t)?V(this._layout,t):this._layout[t]=e},s.prototype.getLayout=function(t){return this._layout[t]},s.prototype.getItemLayout=function(t){return this._itemLayouts[t]},s.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?V(this._itemLayouts[t]||{},e):e},s.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},s.prototype.setItemGraphicEl=function(t,e){var n,i,o,r,a=this.hostModel&&this.hostModel.seriesIndex;n=a,i=this.dataType,o=t,(a=e)&&((r=D(a)).dataIndex=o,r.dataType=i,r.seriesIndex=n,r.ssrType="chart","group"===a.type)&&a.traverse(function(t){t=D(t);t.seriesIndex=n,t.dataIndex=o,t.dataType=i,t.ssrType="chart"}),this._graphicEls[t]=e},s.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},s.prototype.eachItemGraphicEl=function(n,i){H(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},s.prototype.cloneShallow=function(t){return t=t||new s(this._schema||Nv(this.dimensions,this._getDimInfo,this),this.hostModel),Av(t,this),t._store=this._store,t},s.prototype.wrapMethod=function(t,e){var n=this[t];C(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(wt(arguments)))})},s.internalField=(Tv=function(a){var s=a._invertedIndicesMap;H(s,function(t,e){var n=a._dimInfos[e],i=n.ordinalMeta,o=a._store;if(i){t=s[e]=new Rv(i.categories.length);for(var r=0;r<t.length;r++)t[r]=-1;for(r=0;r<o.count();r++)t[o.get(n.storeDimIndex,r)]=r}})},Dv=function(t,e,n){return Pr(t._getCategory(e,n),null)},Cv=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?Dv(t,t._idDimIdx,e):n)?"e\0\0"+e:n},kv=function(t){return t=F(t)?t:null!=t?[t]:[]},Lv=function(t){var e=new s(t._schema||Nv(t.dimensions,t._getDimInfo,t),t.hostModel);return Av(e,t),e},Av=function(e,n){H(Ev.concat(n.__wrappedMethods||[]),function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e.__wrappedMethods=n.__wrappedMethods,H(zv,function(t){e[t]=y(n[t])}),e._calculationInfo=V({},n._calculationInfo)},void(Pv=function(t,e){var n=t._nameList,i=t._idList,o=t._nameDimIdx,r=t._idDimIdx,a=n[e],s=i[e];null==a&&null!=o&&(n[e]=a=Dv(t,o,e)),null==s&&null!=r&&(i[e]=s=Dv(t,r,e)),null==s&&null!=a&&(s=a,1<(o=(n=t._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+="__ec__"+o),i[e]=s)})),s);function s(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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"];for(var n,i,o=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]),r=(Sv(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(o=!0,n=t),n=n||["x","y"],{}),a=[],s={},l=!1,u={},h=0;h<n.length;h++){var c=n[h],c=X(c)?new vv({name:c}):c instanceof vv?c:new vv(c),p=c.name,d=(c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0),c.otherDims=c.otherDims||{});a.push(p),null!=u[p]&&(l=!0),(r[p]=c).createInvertedIndices&&(s[p]=[]),0===d.itemName&&(this._nameDimIdx=h),0===d.itemId&&(this._idDimIdx=h),o&&(c.storeDimIndex=h)}this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(i=this._dimIdxToName=N(),H(a,function(t){i.set(r[t].storeDimIndex,t)}))}function Fv(t,e){gf(t)||(t=mf(t));for(var n,i,o=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=N(),s=[],l=(u=t,n=o,p=e.dimensionsCount,i=Math.max(u.dimensionsDetectedCount||1,n.length,r.length,p||0),H(n,function(t){P(t)&&(t=t.dimsDef)&&(i=Math.max(i,t.length))}),i),u=e.canOmitUnusedDimensions&&30<l,h=r===t.dimensionsDefine,c=h?Iv(t):Mv(r),p=e.encodeDefine,d=N(p=!p&&e.encodeDefaulter?e.encodeDefaulter(t,l):p),f=new wg(l),g=0;g<f.length;g++)f[g]=-1;function y(t){var e,n,i,o=f[t];return o<0?(e=P(e=r[t])?e:{name:e},n=new vv,null!=(i=e.name)&&null!=c.get(i)&&(n.name=n.displayName=i),null!=e.type&&(n.type=e.type),null!=e.displayName&&(n.displayName=e.displayName),f[t]=s.length,n.storeDimIndex=t,s.push(n),n):s[o]}if(!u)for(g=0;g<l;g++)y(g);d.each(function(t,n){var i,t=Ir(t).slice();1===t.length&&!X(t[0])&&t[0]<0?d.set(n,!1):(i=d.set(n,[]),H(t,function(t,e){t=X(t)?c.get(t):t;null!=t&&t<l&&v(y(i[e]=t),n,e)}))});var m=0;function v(t,e,n){null!=ad.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,a.set(e,!0))}H(o,function(t){X(t)?(r=t,o={}):(r=(o=t).name,t=o.ordinalMeta,o.ordinalMeta=null,(o=V({},o)).ordinalMeta=t,n=o.dimsDef,i=o.otherDims,o.name=o.coordDim=o.coordDimIndex=o.dimsDef=o.otherDims=null);var n,i,o,r,e=d.get(r);if(!1!==e){if(!(e=Ir(e)).length)for(var a=0;a<(n&&n.length||1);a++){for(;m<l&&null!=y(m).coordDim;)m++;m<l&&e.push(m++)}H(e,function(t,e){t=y(t);h&&null!=o.type&&(t.type=o.type),v(z(t,o),r,e),null==t.name&&n&&(P(e=n[e])||(e={name:e}),t.name=t.displayName=e.name,t.defaultTooltip=e.defaultTooltip),i&&z(t.otherDims,i)})}});var _=e.generateCoord,x=null!=(b=e.generateCoordCount),b=_?b||1:0,w=_||"value";function S(t){null==t.name&&(t.name=t.coordDim)}if(u)H(s,function(t){S(t)}),s.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var M=0;M<l;M++){var I=y(M);null==I.coordDim&&(I.coordDim=function(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}(w,a,x),I.coordDimIndex=0,(!_||b<=0)&&(I.isExtraCoord=!0),b--),S(I),null!=I.type||xd(t,M)!==gd.Must&&(!I.isExtraCoord||null==I.otherDims.itemName&&null==I.otherDims.seriesName)||(I.type="ordinal")}for(var T=s,C=N(),D=0;D<T.length;D++){var k=T[D],A=k.name,L=C.get(A)||0;0<L&&(k.name=A+(L-1)),L++,C.set(A,L)}return new bv({source:t,dimensions:s,fullDimensionCount:l,dimensionOmitted:u})}var Vv=function(t){this.coordSysDims=[],this.axisMap=N(),this.categoryAxisMap=N(),this.coordSysName=t};var Gv={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis",Gr).models[0],t=t.getReferringComponents("yAxis",Gr).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",t),Hv(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),Hv(t)&&(i.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",Gr).models[0];e.coordSysDims=["single"],n.set("single",t),Hv(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar",Gr).models[0],o=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",t),Hv(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),Hv(t)&&(i.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,i,o,r){var a=t.ecModel,t=a.getComponent("parallel",t.get("parallelIndex")),s=i.coordSysDims=t.dimensions.slice();H(t.parallelAxisIndex,function(t,e){var t=a.getComponent("parallelAxis",t),n=s[e];o.set(n,t),Hv(t)&&(r.set(n,t),null==i.firstCategoryDimIndex)&&(i.firstCategoryDimIndex=e)})}};function Hv(t){return"category"===t.get("type")}function Wv(t,e,n){var i,o,r,a,s,l,u,h,c,p=(n=n||{}).byIndex,d=n.stackedCoordDimension,f=(Sv(e.schema)?(o=e.schema,i=o.dimensions,r=e.store):i=e,!(!t||!t.get("stack")));return H(i,function(t,e){X(t)&&(i[e]=t={name:t}),f&&!t.isExtraCoord&&(p||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||d&&d!==t.coordDim||(s=t))}),!s||p||a||(p=!0),s&&(l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),h=s.coordDim,n=s.type,c=0,H(i,function(t){t.coordDim===h&&c++}),e={name:l,coordDim:h,coordDimIndex:c,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},t={name:u,coordDim:u,coordDimIndex:c+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1},o?(r&&(e.storeDimIndex=r.ensureCalculationDimension(u,n),t.storeDimIndex=r.ensureCalculationDimension(l,n)),o.appendCalculationDimension(e),o.appendCalculationDimension(t)):(i.push(e),i.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:u,stackResultDimension:l}}function Xv(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Yv(t,e){return Xv(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Uv(t,e,n){n=n||{};var i,o,r,a,s,l,u=e.getSourceManager(),h=!1,t=(t?(h=!0,i=mf(t)):h=(i=u.getSource()).sourceFormat===sd,function(t){var e=t.get("coordinateSystem"),n=new Vv(e);if(e=Gv[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),c=(o=t,c=(c=e).get("coordinateSystem"),c=Vd.get(c),p=(p=o&&o.coordSysDims?B(o.coordSysDims,function(t){var e={name:t},t=o.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=n.useEncodeDefaulter,p=C(p)?p:p?M(md,c,e):null,c={coordDimensions:c,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h},p=Fv(i,c),d=(c=p.dimensions,r=n.createInvertedIndices,(a=t)&&H(c,function(t,e){var n=t.coordDim,n=a.categoryAxisMap.get(n);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta(),r)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(c[s].otherDims.itemName=0),s),n=h?null:u.getSharedDataStore(p),t=Wv(e,{schema:p,store:n}),c=new Bv(p,e),p=(c.setCalculationInfo(t),null==d||(u=i).sourceFormat!==sd||F(Dr(function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(u.data||[])))?null:function(t,e,n,i){return i===d?n:this.defaultDimValueGetter(t,e,n,i)});return c.hasItemOption=!1,c.initData(h?i:n,null,p),c}qv.prototype.getSetting=function(t){return this._setting[t]},qv.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},qv.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},qv.prototype.getExtent=function(){return this._extent.slice()},qv.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},qv.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},qv.prototype.isBlank=function(){return this._isBlank},qv.prototype.setBlank=function(t){this._isBlank=t};var Zv=qv;function qv(t){this._setting=t||{},this._extent=[1/0,-1/0]}ta(Zv);var jv=0,Kv=($v.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&B(e,Qv);return new $v({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},$v.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},$v.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return X(t)||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n)):n=NaN),n):t},$v.prototype._getOrCreateMap=function(){return this._map||(this._map=N(this.categories))},$v);function $v(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++jv}function Qv(t){return P(t)&&null!=t.value?t.value:t+""}function Jv(t){return"interval"===t.type||"log"===t.type}function t_(t,e,n,i){var o={},r=t[1]-t[0],r=o.interval=vr(r/e,!0),e=(null!=n&&r<n&&(r=o.interval=n),null!=i&&i<r&&(r=o.interval=i),o.intervalPrecision=n_(r)),n=o.niceTickExtent=[ar(Math.ceil(t[0]/r)*r,e),ar(Math.floor(t[1]/r)*r,e)];return i=n,r=t,isFinite(i[0])||(i[0]=r[0]),isFinite(i[1])||(i[1]=r[1]),i_(i,0,r),i_(i,1,r),i[0]>i[1]&&(i[0]=i[1]),o}function e_(t){var e=Math.pow(10,mr(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,ar(t*e)}function n_(t){return lr(t)+2}function i_(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function o_(t,e){return t>=e[0]&&t<=e[1]}function r_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function a_(t,e){return t*(e[1]-e[0])+e[0]}u(u_,s_=Zv),u_.prototype.parse=function(t){return null==t?NaN:X(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},u_.prototype.contain=function(t){return o_(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},u_.prototype.normalize=function(t){return r_(t=this._getTickNumber(this.parse(t)),this._extent)},u_.prototype.scale=function(t){return t=Math.round(a_(t,this._extent)),this.getRawOrdinalNumber(t)},u_.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},u_.prototype.getMinorTicks=function(t){},u_.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);o<a;++o){var s=e[o];i[n[o]=s]=o}for(var l=0;o<r;++o){for(;null!=i[l];)l++;n.push(l),i[l]=o}}},u_.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},u_.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},u_.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},u_.prototype.count=function(){return this._extent[1]-this._extent[0]+1},u_.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},u_.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},u_.prototype.getOrdinalMeta=function(){return this._ordinalMeta},u_.prototype.calcNiceTicks=function(){},u_.prototype.calcNiceExtent=function(){},u_.type="ordinal";var s_,l_=u_;function u_(t){var t=s_.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return F(e=e||new Kv({}))&&(e=new Kv({categories:B(e,function(t){return P(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}Zv.registerClass(l_);var h_,c_=ar,p_=(u(d_,h_=Zv),d_.prototype.parse=function(t){return t},d_.prototype.contain=function(t){return o_(t,this._extent)},d_.prototype.normalize=function(t){return r_(t,this._extent)},d_.prototype.scale=function(t){return a_(t,this._extent)},d_.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},d_.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},d_.prototype.getInterval=function(){return this._interval},d_.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=n_(t)},d_.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(e){n[0]<i[0]&&r.push(t?{value:c_(i[0]-e,o)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(r.push({value:a}),(a=c_(a+e,o))!==r[r.length-1].value);)if(1e4<r.length)return[];var s=r.length?r[r.length-1].value:i[1];n[1]>s&&r.push(t?{value:c_(s+e,o)}:{value:n[1]})}return r},d_.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),o=1;o<e.length;o++){for(var r=e[o],a=e[o-1],s=0,l=[],u=(r.value-a.value)/t;s<t-1;){var h=c_(a.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},d_.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=lr(t.value)||0:"auto"===e&&(e=this._intervalPrecision),Pp(c_(t.value,e,!0)))},d_.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,o=i[1]-i[0];isFinite(o)&&(o<0&&i.reverse(),o=t_(i,t,e,n),this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent)},d_.prototype.calcNiceExtent=function(t){var e=this._extent,n=(e[0]===e[1]&&(0!==e[0]?(n=Math.abs(e[0]),t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]),n=(isFinite(n)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval);t.fixMin||(e[0]=c_(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=c_(Math.ceil(e[1]/n)*n))},d_.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},d_.type="interval",d_);function d_(){var t=null!==h_&&h_.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}Zv.registerClass(p_);var f_="undefined"!=typeof Float32Array,g_=f_?Float32Array:Array;function y_(t){return F(t)?f_?new Float32Array(t):t:new g_(t)}var m_="__ec_stack_";function v_(t){return t.get("stack")||m_+t.seriesIndex}function __(t){return t.dim+t.index}function x_(t,e){var n=[];return e.eachSeriesByType(t,function(t){M_(t)&&n.push(t)}),n}function b_(t){var l=function(t){var e,l={},n=(H(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),n=e.dim+"_"+e.index,i=t.getDimensionIndex(t.mapDimension(e.dim)),o=t.getStore(),r=0,a=o.count();r<a;++r){var s=o.get(i,r);l[n]?l[n].push(s):l[n]=[s]}}),{});for(e in l)if(l.hasOwnProperty(e)){var i=l[e];if(i){i.sort(function(t,e){return t-e});for(var o=null,r=1;r<i.length;++r){var a=i[r]-i[r-1];0<a&&(o=null===o?a:Math.min(o,a))}n[e]=o}}return n}(t),u=[];return H(t,function(t){var e,n=t.coordinateSystem.getBaseAxis(),i=n.getExtent(),o=(e="category"===n.type?n.getBandWidth():"value"===n.type||"time"===n.type?(e=n.dim+"_"+n.index,e=l[e],o=Math.abs(i[1]-i[0]),r=n.scale.getExtent(),r=Math.abs(r[1]-r[0]),e?o/r*e:o):(r=t.getData(),Math.abs(i[1]-i[0])/r.count()),q(t.get("barWidth"),e)),i=q(t.get("barMaxWidth"),e),r=q(t.get("barMinWidth")||(I_(t)?.5:1),e),a=t.get("barGap"),s=t.get("barCategoryGap");u.push({bandWidth:e,barWidth:o,barMaxWidth:i,barMinWidth:r,barGap:a,barCategoryGap:s,axisKey:__(n),stackId:v_(t)})}),w_(u)}function w_(t){var a={},d=(H(t,function(t,e){var n=t.axisKey,i=t.bandWidth,i=a[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=i.stacks,n=(a[n]=i,t.stackId),r=(o[n]||i.autoWidthCount++,o[n]=o[n]||{width:0,maxWidth:0},t.barWidth),r=(r&&!o[n].width&&(o[n].width=r,r=Math.min(i.remainedWidth,r),i.remainedWidth-=r),t.barMaxWidth),r=(r&&(o[n].maxWidth=r),t.barMinWidth),o=(r&&(o[n].minWidth=r),t.barGap),n=(null!=o&&(i.gap=o),t.barCategoryGap);null!=n&&(i.categoryGap=n)}),{});return H(a,function(t,n){d[n]={};var i,e=t.stacks,o=t.bandWidth,r=t.categoryGap,a=(null==r&&(a=W(e).length,r=Math.max(35-4*a,15)+"%"),q(r,o)),s=q(t.gap,1),l=t.remainedWidth,u=t.autoWidthCount,h=(l-a)/(u+(u-1)*s),h=Math.max(h,0),c=(H(e,function(t){var e,n=t.maxWidth,i=t.minWidth;t.width?(e=t.width,n&&(e=Math.min(e,n)),i&&(e=Math.max(e,i)),t.width=e,l-=e+s*e,u--):(e=h,n&&n<e&&(e=Math.min(n,l)),(e=i&&e<i?i:e)!==h&&(t.width=e,l-=e+s*e,u--))}),h=(l-a)/(u+(u-1)*s),h=Math.max(h,0),0),p=(H(e,function(t,e){t.width||(t.width=h),c+=(i=t).width*(1+s)}),i&&(c-=i.width*s),-c/2);H(e,function(t,e){d[n][e]=d[n][e]||{bandWidth:o,offset:p,width:t.width},p+=t.width*(1+s)})}),d}function S_(t,e){var t=x_(t,e),o=b_(t);H(t,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),t=v_(t),n=o[__(n)][t],t=n.offset,i=n.width;e.setLayout({bandWidth:n.bandWidth,offset:t,size:i})})}function M_(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function I_(t){return t.pipelineContext&&t.pipelineContext.large}u(D_,T_=p_),D_.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return yp(t.value,cp[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(gp(this._minLevelUnit))]||cp.second,e,this.getSetting("locale"))},D_.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale"),r=null;if(X(n))r=n;else if(C(n))r=n(t.value,e,{level:t.level});else{var a=V({},up);if(0<t.level)for(var s=0;s<pp.length;++s)a[pp[s]]="{primary|"+a[pp[s]]+"}";var l=n?!1===n.inherit?n:z(n,a):a,u=mp(t.value,i);if(l[u])r=l[u];else if(l.inherit){for(s=dp.indexOf(u)-1;0<=s;--s)if(l[u]){r=l[u];break}r=r||a.none}F(r)&&(e=null==t.level?0:0<=t.level?t.level:r.length+t.level,r=r[e=Math.min(e,r.length-1)])}return yp(new Date(t.value),r,i,o)},D_.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];return t&&(n.push({value:e[0],level:0}),t=this.getSetting("useUTC"),t=function(t,w,S,M){var e=dp,n=0;function i(t,e,n){var i=[],o=!e.length;if(!function(t,e,n,i){function o(t){return vp(c,t,i)===vp(p,t,i)}function r(){return o("year")}function a(){return r()&&o("month")}function s(){return a()&&o("day")}function l(){return s()&&o("hour")}function u(){return l()&&o("minute")}function h(){return u()&&o("second")}var c=gr(e),p=gr(n);switch(t){case"year":return r();case"month":return a();case"day":return s();case"hour":return l();case"minute":return u();case"second":return h();case"millisecond":return h()&&o("millisecond")}}(gp(t),M[0],M[1],S)){o&&(e=[{value:function(t,e,n){var i=new Date(t);switch(gp(e)){case"year":case"month":i[Tp(n)](0);case"day":i[Cp(n)](1);case"hour":i[Dp(n)](0);case"minute":i[kp(n)](0);case"second":i[Ap(n)](0),i[Lp(n)](0)}return i.getTime()}(new Date(M[0]),t,S)},{value:M[1]}]);for(var r,a,s=0;s<e.length-1;s++){var l=e[s].value,u=e[s+1].value;if(l!==u){var h=void 0,c=void 0,p=void 0;switch(t){case"year":h=Math.max(1,Math.round(w/lp/365)),c=_p(S),p=S?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":a=w,h=6<(a/=30*lp)?6:3<a?3:2<a?2:1,c=xp(S),p=Tp(S);break;case"week":case"half-week":case"day":a=w,h=16<(a/=lp)?16:7.5<a?7:3.5<a?4:1.5<a?2:1,c=bp(S),p=Cp(S),0;break;case"half-day":case"quarter-day":case"hour":r=w,h=12<(r/=sp)?12:6<r?6:3.5<r?4:2<r?2:1,c=wp(S),p=Dp(S);break;case"minute":h=A_(w,!0),c=Sp(S),p=kp(S);break;case"second":h=A_(w,!1),c=Mp(S),p=Ap(S);break;case"millisecond":h=vr(w,!0),c=Ip(S),p=Lp(S)}b=x=_=v=m=y=g=f=d=void 0;for(var d=h,f=l,g=u,y=c,m=p,v=i,_=new Date(f),x=f,b=_[y]();x<g&&x<=M[1];)v.push({value:x}),_[m](b+=d),x=_.getTime();v.push({value:x,notAdd:!0}),"year"===t&&1<n.length&&0===s&&n.unshift({value:n[0].value-h})}}for(s=0;s<i.length;s++)n.push(i[s])}}for(var o=[],r=[],a=0,s=0,l=0;l<e.length&&n++<1e4;++l){var u=gp(e[l]);if(function(t){return t===gp(t)}(e[l])){i(e[l],o[o.length-1]||[],r);var h=e[l+1]?gp(e[l+1]):null;if(u!==h){if(r.length){s=a,r.sort(function(t,e){return t.value-e.value});for(var c=[],p=0;p<r.length;++p){var d=r[p].value;0!==p&&r[p-1].value===d||(c.push(r[p]),d>=M[0]&&d<=M[1]&&a++)}u=(M[1]-M[0])/w;if(1.5*u<a&&u/1.5<s)break;if(o.push(c),u<a||t===e[l])break}r=[]}}}for(var f=ht(B(o,function(t){return ht(t,function(t){return t.value>=M[0]&&t.value<=M[1]&&!t.notAdd})}),function(t){return 0<t.length}),g=[],y=f.length-1,l=0;l<f.length;++l)for(var m=f[l],v=0;v<m.length;++v)g.push({value:m[v].value,level:y-l});g.sort(function(t,e){return t.value-e.value});for(var _=[],l=0;l<g.length;++l)0!==l&&g[l].value===g[l-1].value||_.push(g[l]);return _}(this._minLevelUnit,this._approxInterval,t,e),(n=n.concat(t)).push({value:e[1],level:0})),n},D_.prototype.calcNiceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=lp,n[1]+=lp),n[1]===-1/0&&n[0]===1/0&&(e=new Date,n[1]=+new Date(e.getFullYear(),e.getMonth(),e.getDate()),n[0]=n[1]-lp),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},D_.prototype.calcNiceTicks=function(t,e,n){var i=this._extent,i=i[1]-i[0],i=(this._approxInterval=i/(t=t||10),null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n),k_.length),t=Math.min(function(t,e,n,i){for(;n<i;){var o=n+i>>>1;t[o][1]<e?n=1+o:i=o}return n}(k_,this._approxInterval,0,i),i-1);this._interval=k_[t][1],this._minLevelUnit=k_[Math.max(t-1,0)][0]},D_.prototype.parse=function(t){return Y(t)?t:+gr(t)},D_.prototype.contain=function(t){return o_(this.parse(t),this._extent)},D_.prototype.normalize=function(t){return r_(this.parse(t),this._extent)},D_.prototype.scale=function(t){return a_(t,this._extent)},D_.type="time";var T_,C_=D_;function D_(t){t=T_.call(this,t)||this;return t.type="time",t}var k_=[["second",rp],["minute",ap],["hour",sp],["quarter-day",6*sp],["half-day",12*sp],["day",1.2*lp],["half-week",3.5*lp],["week",7*lp],["month",31*lp],["quarter",95*lp],["half-year",$r/2],["year",$r]];function A_(t,e){return 30<(t/=e?ap:rp)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}Zv.registerClass(C_);var L_,P_=Zv.prototype,O_=p_.prototype,N_=ar,R_=Math.floor,E_=Math.ceil,z_=Math.pow,B_=Math.log,F_=(u(V_,L_=Zv),V_.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return B(O_.getTicks.call(this,t),function(t){var t=t.value,e=ar(z_(this.base,t)),e=t===n[0]&&this._fixMin?G_(e,i[0]):e;return{value:t===n[1]&&this._fixMax?G_(e,i[1]):e}},this)},V_.prototype.setExtent=function(t,e){var n=B_(this.base);t=B_(Math.max(0,t))/n,e=B_(Math.max(0,e))/n,O_.setExtent.call(this,t,e)},V_.prototype.getExtent=function(){var t=this.base,e=P_.getExtent.call(this);e[0]=z_(t,e[0]),e[1]=z_(t,e[1]);t=this._originalScale.getExtent();return this._fixMin&&(e[0]=G_(e[0],t[0])),this._fixMax&&(e[1]=G_(e[1],t[1])),e},V_.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=B_(t[0])/B_(e),t[1]=B_(t[1])/B_(e),P_.unionExtent.call(this,t)},V_.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},V_.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=yr(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[ar(E_(e[0]/i)*i),ar(R_(e[1]/i)*i)];this._interval=i,this._niceExtent=t}},V_.prototype.calcNiceExtent=function(t){O_.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},V_.prototype.parse=function(t){return t},V_.prototype.contain=function(t){return o_(t=B_(t)/B_(this.base),this._extent)},V_.prototype.normalize=function(t){return r_(t=B_(t)/B_(this.base),this._extent)},V_.prototype.scale=function(t){return t=a_(t,this._extent),z_(this.base,t)},V_.type="log",V_);function V_(){var t=null!==L_&&L_.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new p_,t._interval=0,t}sm=F_.prototype;function G_(t,e){return N_(t,lr(e))}sm.getMinorTicks=O_.getMinorTicks,sm.getLabel=O_.getLabel,Zv.registerClass(F_);W_.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="ordinal"===t.type,o=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),this._modelMinRaw=e.get("min",!0)),o=(C(o)?this._modelMinNum=U_(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=U_(t,o)),this._modelMaxRaw=e.get("max",!0));C(o)?this._modelMaxNum=U_(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=U_(t,o)),i?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=F(n=e.get("boundaryGap"))?n:[n||0,n||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Oo(t[0],1),Oo(t[1],1)]},W_.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,r=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s,e=(null==a&&(a=t?i?0:NaN:e-o[0]*r),null==s&&(s=t?i?i-1:NaN:n+o[1]*r),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),_t(a)||_t(s)||t&&!i),n=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!u&&(s=0),this._determinedMin),o=this._determinedMax;return null!=n&&(a=n,l=!0),null!=o&&(s=o,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:e}},W_.prototype.modifyDataMinMax=function(t,e){this[Y_[t]]=e},W_.prototype.setDeterminedMinMax=function(t,e){this[X_[t]]=e},W_.prototype.freeze=function(){this.frozen=!0};var H_=W_;function W_(t,e,n){this._prepareParams(t,e,n)}var X_={min:"_determinedMin",max:"_determinedMax"},Y_={min:"_dataMin",max:"_dataMax"};function U_(t,e){return null==e?null:_t(e)?NaN:t.parse(e)}function Z_(t,e){var n,i,o,r,a,s=t.type,l=(l=e,u=(h=t).getExtent(),(c=h.rawExtentInfo)||(c=new H_(h,l,u),h.rawExtentInfo=c),c.calculate()),u=(t.setBlank(l.isBlank),l.min),h=l.max,c=e.ecModel;return c&&"time"===s&&(t=x_("bar",c),n=!1,H(t,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(s=b_(t),c=u,t=h,s=s,a=(a=(i=e).axis.getExtent())[1]-a[0],void 0!==(s=function(t,e,n){if(t&&e)return null!=(t=t[__(e)])&&null!=n?t[v_(n)]:t}(s,i.axis))&&(o=1/0,H(s,function(t){o=Math.min(t.offset,o)}),r=-1/0,H(s,function(t){r=Math.max(t.offset+t.width,r)}),o=Math.abs(o),r=Math.abs(r),t+=r/(i=o+r)*(a=(s=t-c)/(1-(o+r)/a)-s),c-=o/i*a),u=(s={min:c,max:t}).min,h=s.max),{extent:[u,h],fixMin:l.minFixed,fixMax:l.maxFixed}}function q_(t,e){var n=Z_(t,e),i=n.extent,o=e.get("splitNumber"),r=(t instanceof F_&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),r="interval"===r||"time"===r;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:r?e.get("minInterval"):null,maxInterval:r?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function j_(t,e){if(e=e||t.get("type"))switch(e){case"category":return new l_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new C_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Zv.getClass(e)||p_)}}function K_(n){var i,e,o,t=n.getLabelModel().get("formatter"),r="category"===n.type?n.scale.getExtent()[0]:null;return"time"===n.scale.type?(o=t,function(t,e){return n.scale.getFormattedLabel(t,e,o)}):X(t)?(e=t,function(t){t=n.scale.getLabel(t);return e.replace("{value}",null!=t?t:"")}):C(t)?(i=t,function(t,e){return null!=r&&(e=t.value-r),i($_(n,t),e,null!=t.level?{level:t.level}:null)}):function(t){return n.scale.getLabel(t)}}function $_(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Q_(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,r=n.getExtent(),a=n instanceof l_?n.count():(i=n.getTicks()).length,s=t.getLabelModel(),l=K_(t),u=1;40<a&&(u=Math.ceil(a/40));for(var h,c,p,d=0;d<a;d+=u){var f=l(i?i[d]:{value:r[0]+d},d),f=s.getTextRect(f),g=(f=f,h=s.get("rotate")||0,c=p=g=c=void 0,h=h*Math.PI/180,c=f.width,g=f.height,p=c*Math.abs(Math.cos(h))+Math.abs(g*Math.sin(h)),c=c*Math.abs(Math.sin(h))+Math.abs(g*Math.cos(h)),new Z(f.x,f.y,p,c));o?o.union(g):o=g}return o}}function J_(t){t=t.get("interval");return null==t?"auto":t}function t1(t){return"category"===t.type&&0===J_(t.getLabelModel())}n1.prototype.getNeedCrossZero=function(){return!this.option.scale},n1.prototype.getCoordSysModel=function(){};var e1=n1;function n1(){}var cm=Object.freeze({__proto__:null,createDimensions:function(t,e){return Fv(t,e).dimensions},createList:function(t){return Uv(null,t)},createScale:function(t,e){var n=e;return(e=j_(n=e instanceof Zc?n:new Zc(e))).setExtent(t[0],t[1]),q_(e,n),e},createSymbol:mm,createTextStyle:function(t,e){return Ic(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:Xv,enableDataStack:Wv,getStackedDimension:Yv},enableHoverEmphasis:Yl,getECData:D,getLayoutRect:Zp,mixinAxisModelCommonMethods:function(t){st(t,e1)}}),i1=[],o1={registerPreprocessor:K0,registerProcessor:$0,registerPostInit:Q0,registerPostUpdate:J0,registerUpdateLifecycle:tv,registerAction:ev,registerCoordinateSystem:nv,registerLayout:iv,registerVisual:ov,registerTransform:uv,registerLoading:sv,registerMap:lv,registerImpl:function(t,e){$m[t]=e},PRIORITY:hm,ComponentModel:g,ComponentView:ly,SeriesModel:ty,ChartView:dy,registerComponentModel:function(t){g.registerClass(t)},registerComponentView:function(t){ly.registerClass(t)},registerSeriesModel:function(t){ty.registerClass(t)},registerChartView:function(t){dy.registerClass(t)},registerSubTypeDefaulter:function(t,e){g.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){er(t,e)}};function r1(t){F(t)?H(t,function(t){r1(t)}):0<=G(i1,t)||(i1.push(t),(t=C(t)?{install:t}:t).install(o1))}var a1=1e-8;function s1(t,e){return Math.abs(t-e)<a1}function l1(t,e,n){var i=0,o=t[0];if(o){for(var r=1;r<t.length;r++){var a=t[r];i+=cs(o[0],o[1],a[0],a[1],e,n),o=a}var s=t[0];return s1(o[0],s[0])&&s1(o[1],s[1])||(i+=cs(o[0],o[1],s[0],s[1],e,n)),0!==i}}var u1=[];function h1(t,e){for(var n=0;n<t.length;n++)ne(t[n],t[n],e)}function c1(t,e,n,i){for(var o=0;o<t.length;o++){var r=t[o];(r=i?i.project(r):r)&&isFinite(r[0])&&isFinite(r[1])&&(ie(e,e,r),oe(n,n,r))}}p1.prototype.setCenter=function(t){this._center=t},p1.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())};pm=p1;function p1(t){this.name=t}var d1,f1,g1=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},y1=function(t){this.type="linestring",this.points=t},m1=(u(v1,d1=pm),v1.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var o=e[i],r=o.exterior,r=r&&r.length;n<r&&(t=o,n=r)}if(t){for(var a=t.exterior,s=0,l=0,u=0,h=a.length,c=a[h-1][0],p=a[h-1][1],d=0;d<h;d++){var f=a[d][0],g=a[d][1],y=c*g-f*p;s+=y,l+=(c+f)*y,u+=(p+g)*y,c=f,p=g}return s?[l/s/3,u/s/3,s]:[a[0][0]||0,a[0][1]||0]}var m=this.getBoundingRect();return[m.x+m.width/2,m.y+m.height/2]},v1.prototype.getBoundingRect=function(e){var n,i,t=this._rect;return t&&!e||(n=[1/0,1/0],i=[-1/0,-1/0],H(this.geometries,function(t){"polygon"===t.type?c1(t.exterior,n,i,e):H(t.points,function(t){c1(t,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new Z(n[0],n[1],i[0]-n[0],i[1]-n[1]),e)||(this._rect=t),t},v1.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var i=0,o=n.length;i<o;i++){var r=n[i];if("polygon"===r.type){var a=r.exterior,s=r.interiors;if(l1(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(l1(s[l],t[0],t[1]))continue t;return!0}}}return!1},v1.prototype.transformTo=function(t,e,n,i){for(var o=this.getBoundingRect(),r=o.width/o.height,r=(n?i=i||n/r:n=r*i,new Z(t,e,n,i)),a=o.calculateTransform(r),s=this.geometries,l=0;l<s.length;l++){var u=s[l];"polygon"===u.type?(h1(u.exterior,a),H(u.interiors,function(t){h1(t,a)})):H(u.points,function(t){h1(t,a)})}(o=this._rect).copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},v1.prototype.cloneShallow=function(t){t=new v1(t=null==t?this.name:t,this.geometries,this._center);return t._rect=this._rect,t.transformTo=null,t},v1);function v1(t,e,n){t=d1.call(this,t)||this;return t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}function _1(t,e){t=f1.call(this,t)||this;return t.type="geoSVG",t._elOnlyForCalculate=e,t}function x1(t,e,n){for(var i=0;i<t.length;i++)t[i]=b1(t[i],e[i],n)}function b1(t,e,n){for(var i=[],o=e[0],r=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(o=s+=o)/n,(r=l+=r)/n])}return i}function w1(t,r){var e,n,o;return B(ht((t=(e=t).UTF8Encoding?(null==(o=(n=e).UTF8Scale)&&(o=1024),H(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=b1(i,n,o);break;case"Polygon":case"MultiLineString":x1(i,n,o);break;case"MultiPolygon":H(i,function(t,e){return x1(t,n[e],o)})}}),n.UTF8Encoding=!1,n):e).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var e=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var o=n.coordinates;i.push(new g1(o[0],o.slice(1)));break;case"MultiPolygon":H(n.coordinates,function(t){t[0]&&i.push(new g1(t[0],t.slice(1)))});break;case"LineString":i.push(new y1([n.coordinates]));break;case"MultiLineString":i.push(new y1(n.coordinates))}t=new m1(e[r||"name"],i,e.cp);return t.properties=e,t})}u(_1,f1=pm),_1.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=Re(u1),i=t;i&&!i.isGeoSVGGraphicRoot;)ze(n,i.getLocalTransform(),n),i=i.parent;return Ge(n,n),ne(e,e,n),e};var ia=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:sr,getPercentWithPrecision:function(t,e,n){return t[e]&&cr(t,n)[e]||0},getPixelPrecision:hr,getPrecision:lr,getPrecisionSafe:ur,isNumeric:xr,isRadianAroundZero:dr,linearMap:rr,nice:vr,numericToNumber:_r,parseDate:gr,quantile:function(t,e){var e=(t.length-1)*e+1,n=Math.floor(e),i=+t[n-1];return(e=e-n)?i+e*(t[n]-i):i},quantity:yr,quantityExponent:mr,reformIntervals:function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var o=t[i].interval,r=t[i].close,a=0;a<2;a++)o[a]<=e&&(o[a]=e,r[a]=a?1:1-n),e=o[a],n=r[a];o[0]===o[1]&&r[0]*r[1]!=1?t.splice(i,1):i++}return t},remRadian:pr,round:ar}),sc=Object.freeze({__proto__:null,format:yp,parse:gr}),hp=Object.freeze({__proto__:null,Arc:gh,BezierCurve:ch,BoundingRect:Z,Circle:bu,CompoundPath:vh,Ellipse:e,Group:Zo,Image:Ls,IncrementalDisplayable:Rh,Line:rh,LinearGradient:Sh,Polygon:Ku,Polyline:th,RadialGradient:xh,Rect:Vs,Ring:Yu,Sector:Gu,Text:Ys,clipPointsByRect:pc,clipRectByRect:dc,createIcon:fc,extendPath:Qh,extendShape:Kh,getShapeClass:tc,getTransform:lc,initProps:Gh,makeImage:nc,makePath:ec,mergePath:oc,registerShape:Jh,resizePath:rc,updateProps:Vh}),Vc=Object.freeze({__proto__:null,addCommas:Pp,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:xe,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(e=gr(e))[(n=n?"getUTC":"get")+"FullYear"](),o=e[n+"Month"]()+1,r=e[n+"Date"](),a=e[n+"Hours"](),s=e[n+"Minutes"](),l=e[n+"Seconds"](),e=e[n+"Milliseconds"]();return t=t.replace("MM",fp(o,2)).replace("M",o).replace("yyyy",i).replace("yy",fp(i%100+"",2)).replace("dd",fp(r,2)).replace("d",r).replace("hh",fp(a,2)).replace("h",a).replace("mm",fp(s,2)).replace("m",s).replace("ss",fp(l,2)).replace("s",l).replace("SSS",fp(e,3))},formatTpl:Bp,getTextRect:function(t,e,n,i,o,r,a,s){return new Ys({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:Fp,normalizeCssArray:Np,toCamelCase:Op,truncateText:ha}),tm=Object.freeze({__proto__:null,bind:S,clone:y,curry:M,defaults:z,each:H,extend:V,filter:ht,indexOf:G,inherits:at,isArray:F,isFunction:C,isObject:P,isString:X,map:B,merge:d,reduce:ut}),S1=zr();function M1(t){return"category"===t.type?(o=(e=t).getLabelModel(),r=T1(e,o),!o.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r):(o=(n=t).scale.getTicks(),i=K_(n),{labels:B(o,function(t,e){return{level:t.level,formattedLabel:i(t,e),rawLabel:n.scale.getLabel(t),tickValue:t.value}})});var n,i,e,o,r}function I1(t,e){var n,i,o,r,a,s;return"category"===t.type?(e=e,r=C1(n=t,"ticks"),a=J_(e),(s=D1(r,a))||(e.get("show")&&!n.scale.isBlank()||(i=[]),i=C(a)?L1(n,a,!0):"auto"===a?(s=T1(n,n.getLabelModel()),o=s.labelCategoryInterval,B(s.labels,function(t){return t.tickValue})):A1(n,o=a,!0),k1(r,a,{ticks:i,tickCategoryInterval:o}))):{ticks:B(t.scale.getTicks(),function(t){return t.value})}}function T1(t,e){var n,i=C1(t,"labels"),e=J_(e),o=D1(i,e);return o||k1(i,e,{labels:C(e)?L1(t,e):A1(t,n="auto"===e?null!=(i=S1(o=t).autoInterval)?i:S1(o).autoInterval=o.calculateCategoryInterval():e),labelCategoryInterval:n})}function C1(t,e){return S1(t)[e]||(S1(t)[e]=[])}function D1(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function k1(t,e,n){return t.push({key:e,value:n}),n}function A1(t,e,n){for(var i=K_(t),o=t.scale,r=o.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),e=r[0],u=o.count(),u=(0!==e&&1<l&&2<u/l&&(e=Math.round(Math.ceil(e/l)*l)),t1(t)),t=a.get("showMinLabel")||u,a=a.get("showMaxLabel")||u,h=(t&&e!==r[0]&&c(r[0]),e);h<=r[1];h+=l)c(h);function c(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:o.getLabel(e),tickValue:t})}return a&&h-l!==r[1]&&c(r[1]),s}function L1(t,i,o){var r=t.scale,a=K_(t),s=[];return H(r.getTicks(),function(t){var e=r.getLabel(t),n=t.value;i(t.value,e)&&s.push(o?n:{formattedLabel:a(t),rawLabel:e,tickValue:n})}),s}var P1=[0,1],Hc=(O1.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),e=Math.max(e[0],e[1]);return n<=t&&t<=e},O1.prototype.containData=function(t){return this.scale.contain(t)},O1.prototype.getExtent=function(){return this._extent.slice()},O1.prototype.getPixelPrecision=function(t){return hr(t||this.scale.getExtent(),this._extent)},O1.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},O1.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&N1(n=n.slice(),i.count()),rr(t,P1,n,e)},O1.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&N1(n=n.slice(),i.count()),rr(t,n,P1,e));return this.scale.scale(i)},O1.prototype.pointToData=function(t,e){},O1.prototype.getTicksCoords=function(t){var e,n,i,o,r,a,s,l=(t=t||{}).tickModel||this.getTickModel(),u=B(I1(this,l).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),l=l.get("alignWithLabel");function h(t,e){return t=ar(t),e=ar(e),a?e<t:t<e}return e=this,n=u,l=l,t=t.clamp,s=n.length,e.onBand&&!l&&s&&(l=e.getExtent(),1===s?(n[0].coord=l[0],i=n[1]={coord:l[1]}):(r=n[s-1].tickValue-n[0].tickValue,o=(n[s-1].coord-n[0].coord)/r,H(n,function(t){t.coord-=o/2}),e=1+(r=e.scale.getExtent())[1]-n[s-1].tickValue,i={coord:n[s-1].coord+o*e},n.push(i)),a=l[0]>l[1],h(n[0].coord,l[0])&&(t?n[0].coord=l[0]:n.shift()),t&&h(l[0],n[0].coord)&&n.unshift({coord:l[0]}),h(l[1],i.coord)&&(t?i.coord=l[1]:n.pop()),t)&&h(i.coord,l[1])&&n.push({coord:l[1]}),u},O1.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),B(this.scale.getMinorTicks(t=0<t&&t<100?t:5),function(t){return B(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this))},O1.prototype.getViewLabels=function(){return M1(this).labels},O1.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},O1.prototype.getTickModel=function(){return this.model.getModel("axisTick")},O1.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),e=e[1]-e[0]+(this.onBand?1:0),t=(0===e&&(e=1),Math.abs(t[1]-t[0]));return Math.abs(t)/e},O1.prototype.calculateCategoryInterval=function(){o=(n=d=this).getLabelModel();var t={axisRotate:n.getRotate?n.getRotate():n.isHorizontal&&!n.isHorizontal()?90:0,labelRotate:o.get("rotate")||0,font:o.getFont()},e=K_(d),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=(o=d.scale).getExtent(),o=o.count();if(i[1]-i[0]<1)return 0;for(var r=1,a=(40<o&&(r=Math.max(1,Math.floor(o/40))),i[0]),s=d.dataToCoord(a+1)-d.dataToCoord(a),l=Math.abs(s*Math.cos(n)),s=Math.abs(s*Math.sin(n)),u=0,h=0;a<=i[1];a+=r)var c=1.3*(p=ko(e({value:a}),t.font,"center","top")).width,p=1.3*p.height,u=Math.max(u,c,7),h=Math.max(h,p,7);var n=u/l,l=h/s,s=(isNaN(n)&&(n=1/0),isNaN(l)&&(l=1/0),Math.max(0,Math.floor(Math.min(n,l)))),n=S1(d.model),l=d.getExtent(),d=n.lastAutoInterval,f=n.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-o)<=1&&s<d&&n.axisExtent0===l[0]&&n.axisExtent1===l[1]?s=d:(n.lastTickCount=o,n.lastAutoInterval=s,n.axisExtent0=l[0],n.axisExtent1=l[1]),s},O1);function O1(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function N1(t,e){e=(t[1]-t[0])/e/2;t[0]+=e,t[1]-=e}var R1=2*Math.PI,E1=as.CMD,z1=["top","right","bottom","left"];function B1(t,e,n,i,o,r,a,s){var l=o-t,u=r-e,n=n-t,i=i-e,h=Math.sqrt(n*n+i*i),l=(l*(n/=h)+u*(i/=h))/h,u=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=h)*n),s=a[1]=e+l*i;return Math.sqrt((u-o)*(u-o)+(s-r)*(s-r))}function F1(t,e,n,i,o,r,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);n=t+n,i=e+i,t=a[0]=Math.min(Math.max(o,t),n),n=a[1]=Math.min(Math.max(r,e),i);return Math.sqrt((t-o)*(t-o)+(n-r)*(n-r))}var V1=[];function G1(t,e,n){for(var i,o,r,a,s,l,u,h,c,p=0,d=0,f=0,g=0,y=1/0,m=e.data,v=t.x,_=t.y,x=0;x<m.length;){var b=m[x++],w=(1===x&&(f=p=m[x],g=d=m[x+1]),y);switch(b){case E1.M:p=f=m[x++],d=g=m[x++];break;case E1.L:w=B1(p,d,m[x],m[x+1],v,_,V1,!0),p=m[x++],d=m[x++];break;case E1.C:w=Yn(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,V1),p=m[x++],d=m[x++];break;case E1.Q:w=Kn(p,d,m[x++],m[x++],m[x],m[x+1],v,_,V1),p=m[x++],d=m[x++];break;case E1.A:var S=m[x++],M=m[x++],I=m[x++],T=m[x++],C=m[x++],D=m[x++],k=(x+=1,!!(1-m[x++])),A=Math.cos(C)*I+S,L=Math.sin(C)*T+M;x<=1&&(f=A,g=L),L=(A=C)+D,k=k,a=(v-S)*(r=T)/I+S,s=_,l=V1,c=h=u=void 0,a-=i=S,s-=o=M,u=Math.sqrt(a*a+s*s),h=(a/=u)*r+i,c=(s/=u)*r+o,w=Math.abs(A-L)%R1<1e-4||((L=k?(k=A,A=us(L),us(k)):(A=us(A),us(L)))<A&&(L+=R1),(k=Math.atan2(s,a))<0&&(k+=R1),A<=k&&k<=L)||A<=k+R1&&k+R1<=L?(l[0]=h,l[1]=c,u-r):(c=((k=r*Math.cos(A)+i)-a)*(k-a)+((h=r*Math.sin(A)+o)-s)*(h-s))<(i=((u=r*Math.cos(L)+i)-a)*(u-a)+((A=r*Math.sin(L)+o)-s)*(A-s))?(l[0]=k,l[1]=h,Math.sqrt(c)):(l[0]=u,l[1]=A,Math.sqrt(i)),p=Math.cos(C+D)*I+S,d=Math.sin(C+D)*T+M;break;case E1.R:w=F1(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,V1);break;case E1.Z:w=B1(p,d,f,g,v,_,V1,!0),p=f,d=g}w<y&&(y=w,n.set(V1[0],V1[1]))}return y}var H1=new E,W1=new E,X1=new E,Y1=new E,U1=new E;function Z1(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var o=t.textGuideLineConfig||{},r=[[0,0],[0,0],[0,0]],a=o.candidates||z1,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=o.anchor,h=t.getComputedTransform(),c=h&&Ge([],h),p=e.get("length2")||0;u&&X1.copy(u);for(var d,f=0;f<a.length;f++){var g=a[f],y=(w=b=x=_=v=m=y=void 0,g),m=0,v=s,_=H1,x=Y1,b=v.width,w=v.height;switch(y){case"top":_.set(v.x+b/2,v.y-m),x.set(0,-1);break;case"bottom":_.set(v.x+b/2,v.y+w+m),x.set(0,1);break;case"left":_.set(v.x-m,v.y+w/2),x.set(-1,0);break;case"right":_.set(v.x+b+m,v.y+w/2),x.set(1,0)}E.scaleAndAdd(W1,H1,Y1,p),W1.transform(c);g=t.getBoundingRect(),g=u?u.distance(W1):t instanceof j?G1(W1,t.path,X1):(y=X1,d=F1((d=g).x,g.y,g.width,g.height,W1.x,W1.y,V1),y.set(V1[0],V1[1]),d);g<l&&(l=g,W1.transform(h),X1.transform(h),X1.toArray(r[0]),W1.toArray(r[1]),H1.toArray(r[2]))}K1(r,e.get("minTurnAngle")),n.setShape({points:r})}}}var q1=[],j1=new E;function K1(t,e){var n,i;e<=180&&0<e&&(e=e/180*Math.PI,H1.fromArray(t[0]),W1.fromArray(t[1]),X1.fromArray(t[2]),E.sub(Y1,H1,W1),E.sub(U1,X1,W1),i=Y1.len(),n=U1.len(),i<.001||n<.001||(Y1.scale(1/i),U1.scale(1/n),i=Y1.dot(U1),Math.cos(e)<i&&(n=B1(W1.x,W1.y,X1.x,X1.y,H1.x,H1.y,q1,!1),j1.fromArray(q1),j1.scaleAndAdd(U1,n/Math.tan(Math.PI-e)),i=X1.x!==W1.x?(j1.x-W1.x)/(X1.x-W1.x):(j1.y-W1.y)/(X1.y-W1.y),isNaN(i)||(i<0?E.copy(j1,W1):1<i&&E.copy(j1,X1),j1.toArray(t[1])))))}function $1(t,e,n,i){var o="normal"===n,n=o?t:t.ensureState(n),e=(n.ignore=e,i.get("smooth")),e=(e&&!0===e&&(e=.3),n.shape=n.shape||{},0<e&&(n.shape.smooth=e),i.getModel("lineStyle").getLineStyle());o?t.useStyle(e):n.style=e}function Q1(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),0<n&&3<=i.length){var e=Qt(i[0],i[1]),o=Qt(i[1],i[2]);e&&o?(n=Math.min(e,o)*n,e=ee([],i[1],i[0],n/e),n=ee([],i[1],i[2],n/o),o=ee([],e,n,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],o[0],o[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],i[2][0],i[2][1])):(t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]))}else for(var r=1;r<i.length;r++)t.lineTo(i[r][0],i[r][1])}function J1(t,e,n){var i=t.getTextGuideLine(),o=t.getTextContent();if(o){for(var r=e.normal,a=r.get("show"),s=o.ignore,l=0;l<cl.length;l++){var u,h=cl[l],c=e[h],p="normal"===h;c&&(u=c.get("show"),(p?s:O(o.states[h]&&o.states[h].ignore,s))||!O(u,a)?((u=p?i:i&&i.states[h])&&(u.ignore=!0),i&&$1(i,!0,h,c)):(i||(i=new th,t.setTextGuideLine(i),p||!s&&a||$1(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),$1(i,!1,h,c)))}i&&(z(i.style,n),i.style.fill=null,n=r.get("showAbove"),(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=n||!1,i.buildPath=Q1)}else i&&t.removeTextGuideLine()}function tx(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<hl.length;i++){var o=hl[i];n[o]=t.getModel([o,e])}return n}function ex(t){for(var e=[],n=0;n<t.length;n++){var i,o,r,a,s,l,u=t[n];u.defaultAttr.ignore||(o=(i=u.label).getComputedTransform(),r=i.getBoundingRect(),a=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,(s=r.clone()).applyTransform(o),s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l,l=a?new Lh(r,o):null,e.push({label:i,labelLine:u.labelLine,rect:s,localRect:r,obb:l,priority:u.priority,defaultAttr:u.defaultAttr,layoutOption:u.computedLayoutOption,axisAligned:a,transform:o}))}return e}function nx(s,l,u,t,e,n){var h=s.length;if(!(h<2)){s.sort(function(t,e){return t.rect[l]-e.rect[l]});for(var i=0,r=!1,o=0,a=0;a<h;a++){var c,p=s[a],d=p.rect;(c=d[l]-i)<0&&(d[l]-=c,p.label[l]-=c,r=!0),o+=Math.max(-c,0),i=d[l]+d[u]}0<o&&n&&x(-o/h,0,h);var f,g,y=s[0],m=s[h-1];return v(),f<0&&b(-f,.8),g<0&&b(g,.8),v(),_(f,g,1),_(g,f,-1),v(),f<0&&w(-f),g<0&&w(g),r}function v(){f=y.rect[l]-t,g=e-m.rect[l]-m.rect[u]}function _(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(x(e*n,0,h),(e=e+t)<0&&b(-e*n,1)):b(-t*n,1))}function x(t,e,n){0!==t&&(r=!0);for(var i=e;i<n;i++){var o=s[i];o.rect[l]+=t,o.label[l]+=t}}function b(t,e){for(var n=[],i=0,o=1;o<h;o++){var r=s[o-1].rect,r=Math.max(s[o].rect[l]-r[l]-r[u],0);n.push(r),i+=r}if(i){var a=Math.min(Math.abs(t)/i,e);if(0<t)for(o=0;o<h-1;o++)x(n[o]*a,0,o+1);else for(o=h-1;0<o;o--)x(-(n[o-1]*a),o,h)}}function w(t){for(var e=t<0?-1:1,n=(t=Math.abs(t),Math.ceil(t/(h-1))),i=0;i<h-1;i++)if(0<e?x(n,0,i+1):x(-n,h-i-1,h),(t-=n)<=0)return}}function ix(t,e,n,i){return nx(t,"y","height",e,n,i)}function ox(t){var e=[],n=(t.sort(function(t,e){return e.priority-t.priority}),new Z(0,0,0,0));function i(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}for(var o=0;o<t.length;o++){for(var r=t[o],a=r.axisAligned,s=r.localRect,l=r.transform,u=r.label,h=r.labelLine,c=(n.copy(r.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05,r.obb),p=!1,d=0;d<e.length;d++){var f=e[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new Lh(f.localRect,f.transform)),(c=c||new Lh(s,l)).intersect(f.obb)){p=!0;break}}}p?(i(u),h&&i(h)):(u.attr("ignore",r.defaultAttr.ignore),h&&h.attr("ignore",r.defaultAttr.labelGuideIgnore),e.push(r))}}function rx(t,e){var n=t.label,e=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:function(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}(e&&e.shape.points)}}var ax=["align","verticalAlign","width","height","fontSize"],sx=new So,lx=zr(),ux=zr();function hx(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null!=e[o]&&(t[o]=e[o])}}var cx=["x","y","rotation"],px=(dx.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},dx.prototype._addLabel=function(t,e,n,i,o){var r,a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain(),l=(Z.applyTransform(u,u,l),l?sx.setLocalTransform(l):(sx.x=sx.y=sx.rotation=sx.originX=sx.originY=0,sx.scaleX=sx.scaleY=1),sx.rotation=us(sx.rotation),i.__hostTarget),h=(l&&(r=l.getBoundingRect().plain(),h=l.getComputedTransform(),Z.applyTransform(r,r,h)),r&&l.getTextGuideLine());this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:u,hostRect:r,priority:r?r.width*r.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:sx.x,y:sx.y,scaleX:sx.scaleX,scaleY:sx.scaleY,rotation:sx.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},dx.prototype.addLabelsOfSeries=function(t){var n=this,i=(this._chartViewList.push(t),t.__model),o=i.get("labelLayout");(C(o)||W(o).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var e=t.getTextContent(),t=D(t);e&&!e.disableLabelLayout&&n._addLabel(t.dataIndex,t.dataType,i,e,o)})},dx.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],r=o.label,a=r.__hostTarget,s=o.defaultAttr,l=void 0,l=C(o.layoutOption)?o.layoutOption(rx(o,a)):o.layoutOption,u=(o.computedLayoutOption=l=l||{},Math.PI/180),h=(a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]}),!1);null!=l.x?(r.x=q(l.x,e),r.setStyle("x",0),h=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=l.y?(r.y=q(l.y,n),r.setStyle("y",0),h=!0):(r.y=s.y,r.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),h=!1),lx(r).needsUpdateLabelLine=h,r.rotation=null!=l.rotate?l.rotate*u:s.rotation,r.scaleX=s.scaleX,r.scaleY=s.scaleY;for(var c,p=0;p<ax.length;p++){var d=ax[p];r.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(r.draggable=!0,r.cursor="move",a&&(c=o.seriesModel,null!=o.dataIndex&&(c=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),r.on("drag",function(t,e){return function(){Z1(t,e)}}(a,c.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},dx.prototype.layout=function(t){var e,n=t.getWidth(),t=t.getHeight(),i=ex(this._labelList),o=ht(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),r=ht(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});nx(o,"x","width",0,n,e),ix(r,0,t),ox(ht(i,function(t){return t.layoutOption.hideOverlap}))},dx.prototype.processLabelsOverall=function(){var a=this;H(this._chartViewList,function(t){var i=t.__model,o=t.ignoreLabelLineUpdate,r=i.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var e=!o,n=t.getTextContent();(e=!e&&n?lx(n).needsUpdateLabelLine:e)&&a._updateLabelLine(t,i),r&&a._animateLabels(t,i)})})},dx.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=D(t),o=i.dataIndex;n&&null!=o&&(e=(n=e.getData(i.dataType)).getItemModel(o),i={},(o=n.getItemVisual(o,"style"))&&(n=n.getVisual("drawType"),i.stroke=o[n]),o=e.getModel("labelLine"),J1(t,tx(e),i),Z1(t,o))},dx.prototype._animateLabels=function(t,e){var n,i,o,r,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||Hh(t))||(r=(o=lx(s)).oldLayout,n=(i=D(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},i=e.getData(i.dataType),r?(s.attr(r),(t=t.prevStates)&&(0<=G(t,"select")&&s.attr(o.oldLayoutSelect),0<=G(t,"emphasis"))&&s.attr(o.oldLayoutEmphasis),Vh(s,a,e,n)):(s.attr(a),Pc(s).valueAnimation||(t=O(s.style.opacity,1),s.style.opacity=0,Gh(s,{style:{opacity:t}},e,n))),o.oldLayout=a,s.states.select&&(hx(t=o.oldLayoutSelect={},a,cx),hx(t,s.states.select,cx)),s.states.emphasis&&(hx(t=o.oldLayoutEmphasis={},a,cx),hx(t,s.states.emphasis,cx)),Oc(s,n,i,e,e)),!l||l.ignore||l.invisible||(r=(o=ux(l)).oldLayout,a={points:l.shape.points},r?(l.attr({shape:r}),Vh(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,Gh(l,{style:{strokePercent:1}},e)),o.oldLayout=a)},dx);function dx(){this._labelList=[],this._chartViewList=[]}var fx=zr();function gx(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){(fx(e).labelManager||(fx(e).labelManager=new px)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=fx(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function yx(t,e,n){var i=$.createCanvas(),o=e.getWidth(),e=e.getHeight(),r=i.style;return r&&(r.position="absolute",r.left="0",r.top="0",r.width=o+"px",r.height=e+"px",i.setAttribute("data-zr-dom-id",t)),i.width=o*n,i.height=e*n,i}r1(gx);u(_x,mx=ue),_x.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},_x.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},_x.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},_x.prototype.setUnpainted=function(){this.__firstTimePaint=!0},_x.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=yx("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},_x.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var l=[],u=this.maxRepaintRectCount,h=!1,c=new Z(0,0,0,0);function o(t){if(t.isFinite()&&!t.isZero())if(0===l.length)(e=new Z(0,0,0,0)).copy(t),l.push(e);else{for(var e,n=!1,i=1/0,o=0,r=0;r<l.length;++r){var a=l[r];if(a.intersect(t)){var s=new Z(0,0,0,0);s.copy(a),s.union(t),l[r]=s,n=!0;break}h&&(c.copy(t),c.union(a),s=t.width*t.height,a=a.width*a.height,(a=c.width*c.height-s-a)<i)&&(i=a,o=r)}h&&(l[o].union(t),n=!0),n||((e=new Z(0,0,0,0)).copy(t),l.push(e)),h=h||l.length>=u}}for(var r,a=this.__startIndex;a<this.__endIndex;++a)(s=t[a])&&(d=s.shouldBePainted(n,i,!0,!0),(p=s.__isRendered&&(s.__dirty&bn||!d)?s.getPrevPaintRect():null)&&o(p),r=d&&(s.__dirty&bn||!s.__isRendered)?s.getPaintRect():null)&&o(r);for(a=this.__prevStartIndex;a<this.__prevEndIndex;++a){var s,p,d=(s=e[a])&&s.shouldBePainted(n,i,!0,!0);!s||d&&s.__zr||!s.__isRendered||(p=s.getPrevPaintRect())&&o(p)}do{for(var f=!1,a=0;a<l.length;)if(l[a].isZero())l.splice(a,1);else{for(var g=a+1;g<l.length;)l[a].intersect(l[g])?(f=!0,l[a].union(l[g]),l.splice(g,1)):g++;a++}}while(f);return this._paintRects=l},_x.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},_x.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,o=i.style,r=this.domBack;o&&(o.width=t+"px",o.height=e+"px"),i.width=t*n,i.height=e*n,r&&(r.width=t*n,r.height=e*n,1!==n)&&this.ctxBack.scale(n,n)},_x.prototype.clear=function(t,r,e){var n=this.dom,a=this.ctx,i=n.width,o=n.height,s=(r=r||this.clearColor,this.motionBlur&&!t),l=this.lastFrameAlpha,u=this.dpr,h=this,c=(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,i/u,o/u)),this.domBack);function p(t,e,n,i){var o;a.clearRect(t,e,n,i),r&&"transparent"!==r&&(o=void 0,yt(r)?(o=(r.global||r.__width===n&&r.__height===i)&&r.__canvasGradient||bm(a,r,{x:0,y:0,width:n,height:i}),r.__canvasGradient=o,r.__width=n,r.__height=i):mt(r)&&(r.scaleX=r.scaleX||u,r.scaleY=r.scaleY||u,o=Lm(a,r,{dirty:function(){h.setUnpainted(),h.painter.refresh()}})),a.save(),a.fillStyle=o||r,a.fillRect(t,e,n,i),a.restore()),s&&(a.save(),a.globalAlpha=l,a.drawImage(c,t,e,n,i),a.restore())}!e||s?p(0,0,i,o):e.length&&H(e,function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)})};var mx,vx=_x;function _x(t,e,n){var i,o=mx.call(this)||this,t=(o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,n=n||fo,"string"==typeof t?i=yx(t,e,n):P(t)&&(t=(i=t).id),o.id=t,(o.dom=i).style);return t&&(Et(i),i.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),o.painter=e,o.dpr=n,o}var xx=314159;Sx.prototype.getType=function(){return"canvas"},Sx.prototype.isSingleCanvas=function(){return this._singleCanvas},Sx.prototype.getViewportRoot=function(){return this._domRoot},Sx.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},Sx.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 o=0;o<i.length;o++){var r,a=i[o],a=this._layers[a];!a.__builtin__&&a.refresh&&(r=0===o?this._backgroundColor:null,a.refresh(r))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},Sx.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},Sx.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,o={inHover:!0,viewWidth:this._width,viewHeight:this._height},r=0;r<e;r++){var a=t[r];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),Xm(i,a,o,r===e-1))}i&&i.restore()}},Sx.prototype.getHoverLayer=function(){return this.getLayer(1e5)},Sx.prototype.paintOne=function(t,e){Wm(t,e)},Sx.prototype._paintList=function(t,e,n,i){var o,r,a;this._redrawId===i&&(n=n||!1,this._updateLayerStatus(t),o=(r=this._doPaintList(t,e,n)).finished,r=r.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),r&&this._paintHoverList(t),o?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,Dn(function(){a._paintList(t,e,n,i)})))},Sx.prototype._compositeManually=function(){var e=this.getLayer(xx).ctx,n=this._domRoot.width,i=this._domRoot.height;e.clearRect(0,0,n,i),this.eachBuiltinLayer(function(t){t.virtual&&e.drawImage(t.dom,0,0,n,i)})},Sx.prototype._doPaintList=function(d,f,g){for(var y=this,m=[],v=this._opts.useDirtyRect,t=0;t<this._zlevelList.length;t++){var e=this._zlevelList[t],e=this._layers[e];e.__builtin__&&e!==this._hoverlayer&&(e.__dirty||g)&&m.push(e)}for(var _=!0,x=!1,n=function(t){function e(t){var e={inHover:!1,allClipped:!1,prevEl:null,viewWidth:y._width,viewHeight:y._height};for(i=s;i<o.__endIndex;i++){var n=d[i];if(n.__inHover&&(x=!0),y._doPaintEl(n,o,v,t,e,i===o.__endIndex-1),l)if(15<Date.now()-u)break}e.prevElClipPaths&&r.restore()}var n,i,o=m[t],r=o.ctx,a=v&&o.createRepaintRects(d,f,b._width,b._height),s=g?o.__startIndex:o.__drawIndex,l=!g&&o.incremental&&Date.now,u=l&&Date.now(),t=o.zlevel===b._zlevelList[0]?b._backgroundColor:null;o.__startIndex!==o.__endIndex&&(s!==o.__startIndex||(n=d[s]).incremental&&n.notClear&&!g)||o.clear(!1,t,a),-1===s&&(console.error("For some unknown reason. drawIndex is -1"),s=o.__startIndex);if(a)if(0===a.length)i=o.__endIndex;else for(var h=b.dpr,c=0;c<a.length;++c){var p=a[c];r.save(),r.beginPath(),r.rect(p.x*h,p.y*h,p.width*h,p.height*h),r.clip(),e(p),r.restore()}else r.save(),e(),r.restore();o.__drawIndex=i,o.__drawIndex<o.__endIndex&&(_=!1)},b=this,i=0;i<m.length;i++)n(i);return w.wxa&&H(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:_,needsRefreshHover:x}},Sx.prototype._doPaintEl=function(t,e,n,i,o,r){e=e.ctx;n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(Xm(e,t,o,r),t.setPrevPaintRect(n))):Xm(e,t,o,r)},Sx.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=xx);var n=this._layers[t];return n||((n=new vx("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?d(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&d(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},Sx.prototype.insertLayer=function(t,e){var n,i=this._layers,o=this._zlevelList,r=o.length,a=this._domRoot,s=null,l=-1;if(!i[t]&&(n=e)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<r&&t>o[0]){for(l=0;l<r-1&&!(o[l]<t&&o[l+1]>t);l++);s=i[o[l]]}o.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},Sx.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i];t.call(e,this._layers[o],o)}},Sx.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__&&t.call(e,r,o)}},Sx.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],r=this._layers[o];r.__builtin__||t.call(e,r,o)}},Sx.prototype.getLayers=function(){return this._layers},Sx.prototype._updateLayerStatus=function(t){function e(t){o&&(o.__endIndex!==t&&(o.__dirty=!0),o.__endIndex=t)}if(this.eachBuiltinLayer(function(t,e){t.__dirty=t.__used=!1}),this._singleCanvas)for(var n=1;n<t.length;n++)if((s=t[n]).zlevel!==t[n-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}for(var i,o=null,r=0,a=0;a<t.length;a++){var s,l=(s=t[a]).zlevel,u=void 0;i!==l&&(i=l,r=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,r=1):u=this.getLayer(l+(0<r?.01:0),this._needsManuallyCompositing),u.__builtin__||it("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==a&&(u.__dirty=!0),u.__startIndex=a,u.incremental?u.__drawIndex=-1:u.__drawIndex=a,e(a),o=u),s.__dirty&bn&&!s.__inHover&&(u.__dirty=!0,u.incremental)&&u.__drawIndex<0&&(u.__drawIndex=a)}e(a),this.eachBuiltinLayer(function(t,e){!t.__used&&0<t.getElementCount()&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},Sx.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},Sx.prototype._clearLayer=function(t){t.clear()},Sx.prototype.setBackgroundColor=function(t){this._backgroundColor=t,H(this._layers,function(t){t.setUnpainted()})},Sx.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?d(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];o!==t&&o!==t+.01||d(this._layers[o],n[t],!0)}}},Sx.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(G(n,t),1))},Sx.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot,i=(n.style.display="none",this._opts),o=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=Sm(o,0,i),e=Sm(o,1,i),n.style.display="",this._width!==t||e!==this._height){for(var r in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(xx).resize(t,e)}return this},Sx.prototype.clearLayer=function(t){t=this._layers[t];t&&t.clear()},Sx.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},Sx.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[xx].dom;var e=new vx("image",this,(t=t||{}).pixelRatio||this.dpr),n=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,o=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,o):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var r={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];Xm(n,u,r,s===l-1)}return e.dom},Sx.prototype.getWidth=function(){return this._width},Sx.prototype.getHeight=function(){return this._height};var bx=Sx;function Sx(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=V({},n||{}),this.dpr=n.devicePixelRatio||fo,this._singleCanvas=o;(this.root=t).style&&(Et(t),t.innerHTML=""),this.storage=e;var r,a,e=this._zlevelList,s=(this._prevDisplayList=[],this._layers);o?(r=(o=t).width,a=o.height,null!=n.width&&(r=n.width),null!=n.height&&(a=n.height),this.dpr=n.devicePixelRatio||1,o.width=r*this.dpr,o.height=a*this.dpr,this._width=r,this._height=a,(r=new vx(o,this,this.dpr)).__builtin__=!0,r.initContext(),(s[xx]=r).zlevel=xx,e.push(xx),this._domRoot=t):(this._width=Sm(t,0,n),this._height=Sm(t,1,n),r=this._domRoot=(a=this._width,o=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+o+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(r))}u(Tx,Mx=g),Tx.prototype.init=function(t,e,n){Mx.prototype.init.call(this,t,e,n),this._sourceManager=new kg(this),Lg(this)},Tx.prototype.mergeOption=function(t,e){Mx.prototype.mergeOption.call(this,t,e),Lg(this)},Tx.prototype.optionUpdated=function(){this._sourceManager.dirty()},Tx.prototype.getSourceManager=function(){return this._sourceManager},Tx.type="dataset",Tx.defaultOption={seriesLayoutBy:dd};var Mx,Ix=Tx;function Tx(){var t=null!==Mx&&Mx.apply(this,arguments)||this;return t.type="dataset",t}u(kx,Cx=ly),kx.type="dataset";var Cx,Dx=kx;function kx(){var t=null!==Cx&&Cx.apply(this,arguments)||this;return t.type="dataset",t}function Ax(t){t.registerComponentModel(Ix),t.registerComponentView(Dx)}r1([function(t){t.registerPainter("canvas",bx)},Ax]),r1(gx);var Lx={average:function(t){for(var e=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(e+=t[i],n++);return 0===n?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,n=-1/0,i=0;i<t.length;i++){var o=t[i],r=Math.abs(o);e<r&&(e=r,n=o)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},Px=function(t){return Math.round(t.length/2)};function Ox(t){return{seriesType:t,reset:function(t,e,n){var i,o=t.getData(),r=t.get("sampling"),a=t.coordinateSystem,s=o.count();10<s&&"cartesian2d"===a.type&&r&&(i=a.getBaseAxis(),a=a.getOtherAxis(i),i=i.getExtent(),n=n.getDevicePixelRatio(),i=Math.abs(i[1]-i[0])*(n||1),n=Math.round(s/i),isFinite(n))&&1<n&&("lttb"===r&&t.setData(o.lttbDownSample(o.mapDimension(a.dim),1/n)),s=void 0,X(r)?s=Lx[r]:C(r)&&(s=r),s)&&t.setData(o.downSample(o.mapDimension(a.dim),1/n,s,Px))}}}u(Rx,Nx=ty),Rx.prototype.getInitialData=function(t,e){return Uv(null,this,{useEncodeDefaulter:!0})},Rx.prototype.getMarkerPosition=function(t,p,e){var d,f,n=this.coordinateSystem;return n&&n.clampData?(d=n.clampData(t),f=n.dataToPoint(d),e?H(n.getAxes(),function(t,e){if("category"===t.type&&null!=p){var n=t.getTicksCoords(),i=t.getTickModel().get("alignWithLabel"),o=d[e],r="x1"===p[e]||"y1"===p[e];if(r&&!i&&(o+=1),!(n.length<2))if(2===n.length)f[e]=t.toGlobalCoord(t.getExtent()[r?1:0]);else{for(var a=void 0,s=void 0,l=1,u=0;u<n.length;u++){var h=n[u].coord,c=u===n.length-1?n[u-1].tickValue+l:n[u].tickValue;if(c===o){s=h;break}if(c<o)a=h;else if(null!=a&&o<c){s=(h+a)/2;break}1===u&&(l=c-n[0].tickValue)}null==s&&(s=(a?n[n.length-1]:n[0]).coord),f[e]=t.toGlobalCoord(s)}}}):(e=(t=this.getData()).getLayout("offset"),t=t.getLayout("size"),n=n.getBaseAxis().isHorizontal()?0:1,f[n]+=e+t/2),f):[NaN,NaN]},Rx.type="series.__base_bar__",Rx.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"};var Nx,Bc=Rx;function Rx(){var t=null!==Nx&&Nx.apply(this,arguments)||this;return t.type=Rx.type,t}ty.registerClass(Bc);u(Bx,Ex=Bc),Bx.prototype.getInitialData=function(){return Uv(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},Bx.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},Bx.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return t=t<e?e:t},Bx.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},Bx.type="series.bar",Bx.dependencies=["grid","polar"],Bx.defaultOption=$c(Bc.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});var Ex,zx=Bx;function Bx(){var t=null!==Ex&&Ex.apply(this,arguments)||this;return t.type=Bx.type,t}function Fx(t,e,n,i,o){var r=t.getArea(),a=r.x,s=r.y,l=r.width,r=r.height,u=n.get(["lineStyle","width"])||2,h=(a-=u/2,s-=u/2,l+=u,r+=u,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++),new Vs({shape:{x:a,y:s,width:l,height:r}}));return e&&(e=(u=t.getBaseAxis()).isHorizontal(),t=u.inverse,e?(t&&(h.shape.x+=l),h.shape.width=0):(t||(h.shape.y+=r),h.shape.height=0),u=C(o)?function(t){o(t,h)}:null,Gh(h,{shape:{width:l,height:r,x:a,y:s}},n,null,i,u)),h}function Vx(t,e,n){var i=t.getArea(),o=ar(i.r0,1),r=ar(i.r,1),a=new Gu({shape:{cx:ar(t.cx,1),cy:ar(t.cy,1),r0:o,r:r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=o,Gh(a,{shape:{endAngle:i.endAngle,r:r}},n)),a}function Gx(t,e,n,i,o){return t?"polar"===t.type?Vx(t,e,n):"cartesian2d"===t.type?Fx(t,e,n,i,o):null:null}var Hx,Wx=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Xx=(u(Yx,Hx=j),Yx.prototype.getDefaultShape=function(){return new Wx},Yx.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r0||0,0),r=Math.max(e.r,0),a=.5*(r-o),s=o+a,l=e.startAngle,u=e.endAngle,e=e.clockwise,h=2*Math.PI,c=e?u-l<h:l-u<h,h=(c||(l=u-(e?h:-h)),Math.cos(l)),p=Math.sin(l),d=Math.cos(u),f=Math.sin(u);c?(t.moveTo(h*o+n,p*o+i),t.arc(h*s+n,p*s+i,a,-Math.PI+l,l,!e)):t.moveTo(h*r+n,p*r+i),t.arc(n,i,r,l,u,!e),t.arc(d*s+n,f*s+i,a,u-2*Math.PI,u-Math.PI,!e),0!==o&&t.arc(n,i,o,u,l,e)},Yx);function Yx(t){t=Hx.call(this,t)||this;return t.type="sausage",t}function Ux(t,e){return t.type===e}function Zx(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),o=i.length;if(1===o)return null!=(n=Bf(t,e,i[0]))?n+"":null;if(o){for(var r=[],a=0;a<i.length;a++)r.push(Bf(t,e,i[a]));return r.join(" ")}}function qx(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!F(e))return e+"";for(var i=[],o=0;o<n.length;o++){var r=t.getDimensionIndex(n[o]);0<=r&&i.push(e[r])}return i.join(" ")}function jx(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Kx(t,e,n){return e*Math.cos(t)*(n?1:-1)}function $x(t,e,n){t=t.get("borderRadius");if(null==t)return n?{cornerRadius:0}:null;F(t)||(t=[t,t,t,t]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:B(t,function(t){return Oo(t,i)})}}var Qx=Math.max,Jx=Math.min;u(nb,tb=dy),nb.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var o=t.get("coordinateSystem");"cartesian2d"!==o&&"polar"!==o||(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},nb.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},nb.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},nb.prototype.eachRendered=function(t){vc(this._progressiveEls||this.group,t)},nb.prototype._updateDrawMode=function(t){t=t.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},nb.prototype._renderNormal=function(a,t,e,n){var s,i,o,l=this.group,u=a.getData(),h=this._data,c=a.coordinateSystem,p=c.getBaseAxis(),d=("cartesian2d"===c.type?s=p.isHorizontal():"polar"===c.type&&(s="angle"===p.dim),a.isAnimationEnabled()?a:null),f=function(t,e){var t=t.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&"category"===n.type&&"cartesian2d"===e.type)return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}(a,c),g=(f&&this._enableRealtimeSort(f,u,e),a.get("clip",!0)||f),y=(e=u,o=(i=c).getArea&&i.getArea(),!Ux(i,"cartesian2d")||"category"===(i=i.getBaseAxis()).type&&i.onBand||(e=e.getLayout("bandWidth"),i.isHorizontal()?(o.x-=e,o.width+=2*e):(o.y-=e,o.height+=2*e)),o),m=(l.removeClipPath(),a.get("roundCap",!0)),v=a.get("showBackground",!0),_=a.getModel("backgroundStyle"),x=_.get("borderRadius")||0,b=[],w=this._backgroundEls,S=n&&n.isInitSort,M=n&&"changeAxisOrder"===n.type;function I(t){var e=hb[c.type](u,t),n=(n=s,new("polar"===c.type?Gu:Vs)({shape:_b(n,e,c),silent:!0,z2:0}));return n.useStyle(_.getItemStyle()),"cartesian2d"===c.type?n.setShape("r",x):n.setShape("cornerRadius",x),b[t]=n}u.diff(h).add(function(t){var e,n,i=u.getItemModel(t),o=hb[c.type](u,t,i);v&&I(t),u.hasValue(t)&&ub[c.type](o)&&(e=!1,g&&(e=ib[c.type](y,o)),n=ob[c.type](a,u,t,o,s,d,p.model,!1,m),f&&(n.forceLabelAnimation=!0),pb(n,u,t,i,o,a,s,"polar"===c.type),S?n.attr({shape:o}):f?rb(f,d,n,o,t,s,!1,!1):Gh(n,{shape:o},a,t),u.setItemGraphicEl(t,n),l.add(n),n.ignore=e)}).update(function(t,e){var n,i=u.getItemModel(t),o=hb[c.type](u,t,i),r=(v&&(r=void 0,0===w.length?r=I(e):((r=w[e]).useStyle(_.getItemStyle()),"cartesian2d"===c.type?r.setShape("r",x):r.setShape("cornerRadius",x),b[t]=r),n=hb[c.type](u,t),Vh(r,{shape:_b(s,n,c)},d,t)),h.getItemGraphicEl(e));u.hasValue(t)&&ub[c.type](o)?(n=!1,g&&(n=ib[c.type](y,o))&&l.remove(r),r?Uh(r):r=ob[c.type](a,u,t,o,s,d,p.model,!!r,m),f&&(r.forceLabelAnimation=!0),M?(e=r.getTextContent())&&null!=(e=Pc(e)).prevValue&&(e.prevValue=e.value):pb(r,u,t,i,o,a,s,"polar"===c.type),S?r.attr({shape:o}):f?rb(f,d,r,o,t,s,!0,M):Vh(r,{shape:o},a,t,null),u.setItemGraphicEl(t,r),r.ignore=n,l.add(r)):l.remove(r)}).remove(function(t){var e=h.getItemGraphicEl(t);e&&Yh(e,a,t)}).execute();var r=this._backgroundGroup||(this._backgroundGroup=new Zo);r.removeAll();for(var T=0;T<b.length;++T)r.add(b[T]);l.add(r),this._backgroundEls=b,this._data=u},nb.prototype._renderLarge=function(t,e,n){this._clear(),mb(t,this.group),this._updateLargeClip(t)},nb.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),mb(e,this.group,this._progressiveEls,!0)},nb.prototype._updateLargeClip=function(t){var t=t.get("clip",!0)&&Gx(t.coordinateSystem,!1,t),e=this.group;t?e.setClipPath(t):e.removeClipPath()},nb.prototype._enableRealtimeSort=function(t,e,n){var i,o,r=this;e.count()&&(i=t.baseAxis,this._isFirstFrame?(this._dispatchInitSort(e,t,n),this._isFirstFrame=!1):(o=function(t){t=e.getItemGraphicEl(t),t=t&&t.shape;return t&&Math.abs(i.isHorizontal()?t.height:t.width)||0},this._onRendered=function(){r._updateSortWithinSameData(e,o,i,n)},n.getZr().on("rendered",this._onRendered)))},nb.prototype._dataSort=function(t,e,i){var o=[];return t.each(t.mapDimension(e.dim),function(t,e){var n=i(e);o.push({dataIndex:e,mappedValue:null==n?NaN:n,ordinalNumber:t})}),o.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:B(o,function(t){return t.ordinalNumber})}},nb.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,o=t.mapDimension(n.dim),r=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(o,i.getRawOrdinalNumber(a)),l=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(r<l)return!0;r=l}return!1},nb.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,e=n.getExtent(),i=Math.max(0,e[0]),o=Math.min(e[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},nb.prototype._updateSortWithinSameData=function(t,e,n,i){this._isOrderChangedWithinSameData(t,e,n)&&(t=this._dataSort(t,n,e),this._isOrderDifferentInView(t,n))&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:t}))},nb.prototype._dispatchInitSort=function(e,n,t){var i=n.baseAxis,o=this._dataSort(e,i,function(t){return e.get(e.mapDimension(n.otherAxis.dim),t)});t.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},nb.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},nb.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},nb.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},nb.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Yh(t,e,D(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},nb.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},nb.type="bar";var tb,eb=nb;function nb(){var t=tb.call(this)||this;return t.type=nb.type,t._isFirstFrame=!0,t}var ib={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1,o=(n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),t.x+t.width),r=t.y+t.height,a=Qx(e.x,t.x),s=Jx(e.x+e.width,o),t=Qx(e.y,t.y),l=Jx(e.y+e.height,r),u=s<a,h=l<t;return e.x=u&&o<a?s:a,e.y=h&&r<t?l:t,e.width=u?0:s-a,e.height=h?0:l-t,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),u||h},polar:function(t,e){var n,i=e.r0<=e.r?1:-1,o=(i<0&&(n=e.r,e.r=e.r0,e.r0=n),Jx(e.r,t.r)),t=Qx(e.r0,t.r0),o=(e.r=o)-(e.r0=t)<0;return i<0&&(n=e.r,e.r=e.r0,e.r0=n),o}},ob={cartesian2d:function(t,e,n,i,o,r,a,s,l){i=new Vs({shape:V({},i),z2:1});return i.__dataIndex=n,i.name="item",r&&(i.shape[o?"height":"width"]=0),i},polar:function(t,e,n,i,o,r,a,s,l){var b,w,l=!o&&l?Xx:Gu,u=new l({shape:i,z2:1}),h=(u.name="item",cb(o));return u.calculateTextPosition=(b=h,w=({isRoundCap:l===Xx}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return No(t,e,n);var i=b(i),o=null!=e.distance?e.distance:5,r=this.shape,a=r.cx,s=r.cy,l=r.r,u=r.r0,h=(l+u)/2,c=r.startAngle,p=r.endAngle,d=(c+p)/2,f=w?Math.abs(l-u)/2:0,g=Math.cos,y=Math.sin,m=a+l*g(c),v=s+l*y(c),_="left",x="top";switch(i){case"startArc":m=a+(u-o)*g(d),v=s+(u-o)*y(d),_="center",x="top";break;case"insideStartArc":m=a+(u+o)*g(d),v=s+(u+o)*y(d),_="center",x="bottom";break;case"startAngle":m=a+h*g(c)+jx(c,o+f,!1),v=s+h*y(c)+Kx(c,o+f,!1),_="right",x="middle";break;case"insideStartAngle":m=a+h*g(c)+jx(c,f-o,!1),v=s+h*y(c)+Kx(c,f-o,!1),_="left",x="middle";break;case"middle":m=a+h*g(d),v=s+h*y(d),_="center",x="middle";break;case"endArc":m=a+(l+o)*g(d),v=s+(l+o)*y(d),_="center",x="bottom";break;case"insideEndArc":m=a+(l-o)*g(d),v=s+(l-o)*y(d),_="center",x="top";break;case"endAngle":m=a+h*g(p)+jx(p,o+f,!0),v=s+h*y(p)+Kx(p,o+f,!0),_="left",x="middle";break;case"insideEndAngle":m=a+h*g(p)+jx(p,f-o,!0),v=s+h*y(p)+Kx(p,f-o,!0),_="right",x="middle";break;default:return No(t,e,n)}return(t=t||{}).x=m,t.y=v,t.align=_,t.verticalAlign=x,t}),r&&(h={},u.shape[l=o?"r":"endAngle"]=o?i.r0:i.startAngle,h[l]=i[l],(s?Vh:Gh)(u,{shape:h},r)),u}};function rb(t,e,n,i,o,r,a,s){var l,r=r?(l={x:i.x,width:i.width},{y:i.y,height:i.height}):(l={y:i.y,height:i.height},{x:i.x,width:i.width});s||(a?Vh:Gh)(n,{shape:r},e,o,null),(a?Vh:Gh)(n,{shape:l},e?t.baseAxis.model:null,o)}function ab(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return 1}var sb=["x","y","width","height"],lb=["cx","cy","r","startAngle","endAngle"],ub={cartesian2d:function(t){return!ab(t,sb)},polar:function(t){return!ab(t,lb)}},hb={cartesian2d:function(t,e,n){var t=t.getItemLayout(e),i=n&&(e=t,i=(n=n).get(["itemStyle","borderColor"]))&&"none"!==i?(i=n.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),e=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height),Math.min(i,n,e)):0,n=0<t.width?1:-1,e=0<t.height?1:-1;return{x:t.x+n*i/2,y:t.y+e*i/2,width:t.width-n*i,height:t.height-e*i}},polar:function(t,e,n){t=t.getItemLayout(e);return{cx:t.cx,cy:t.cy,r0:t.r0,r:t.r,startAngle:t.startAngle,endAngle:t.endAngle,clockwise:t.clockwise}}};function cb(t){return e=t?"Arc":"Angle",function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}};var e}function pb(t,e,n,i,o,r,a,s){var l=e.getItemVisual(n,"style"),u=(s?r.get("roundCap")||(V(u=t.shape,$x(i.getModel("itemStyle"),u,!0)),t.setShape(u)):(u=i.get(["itemStyle","borderRadius"])||0,t.setShape("r",u)),t.useStyle(l),i.getShallow("cursor")),u=(u&&t.attr("cursor",u),s?a?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":a?0<=o.height?"bottom":"top":0<=o.width?"right":"left"),h=Mc(i),l=(Sc(t,h,{labelFetcher:r,labelDataIndex:n,defaultText:Zx(r.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u}),t.getTextContent()),h=(s&&l&&(s=i.get(["label","position"]),t.textConfig.inside="middle"===s||null,function(t,e,n,i){if(Y(i))t.setTextConfig({rotation:i});else if(F(e))t.setTextConfig({rotation:0});else{var o,i=t.shape,r=i.clockwise?i.startAngle:i.endAngle,a=i.clockwise?i.endAngle:i.startAngle,s=(r+a)/2,i=n(e);switch(i){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=s;break;case"startAngle":case"insideStartAngle":o=r;break;case"endAngle":case"insideEndAngle":o=a;break;default:return t.setTextConfig({rotation:0})}n=1.5*Math.PI-o;"middle"===i&&n>Math.PI/2&&n<1.5*Math.PI&&(n-=Math.PI),t.setTextConfig({rotation:n})}}(t,"outside"===s?u:s,cb(a),i.get(["label","rotate"]))),u=l,s=h,a=r.getRawValue(n),l=function(t){return qx(e,t)},u&&((u=Pc(u)).prevValue=u.value,u.value=a,a=s.normal,u.valueAnimation=a.get("valueAnimation"),u.valueAnimation)&&(u.precision=a.get("precision"),u.defaultInterpolatedText=l,u.statesModels=s),i.getModel(["emphasis"]));Ul(t,h.get("focus"),h.get("blurScope"),h.get("disabled")),jl(t,i),null!=(r=o).startAngle&&null!=r.endAngle&&r.startAngle===r.endAngle&&(t.style.fill="none",t.style.stroke="none",H(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var db,fb=function(){},gb=(u(yb,db=j),yb.prototype.getDefaultShape=function(){return new fb},yb.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,o=1-this.baseDimIdx,r=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[o]=n[l+2],r[i]=n[l+i],r[o]=n[l+o],t.rect(r[0],r[1],a[0],a[1])},yb);function yb(t){t=db.call(this,t)||this;return t.type="largeBar",t}function mb(t,e,n,i){var o=t.getData(),r=o.getLayout("valueAxisHorizontal")?1:0,a=o.getLayout("largeDataIndices"),s=o.getLayout("size"),l=t.getModel("backgroundStyle"),u=o.getLayout("largeBackgroundPoints"),l=(u&&((u=new gb({shape:{points:u},incremental:!!i,silent:!0,z2:0})).baseDimIdx=r,u.largeDataIndices=a,u.barWidth=s,u.useStyle(l.getItemStyle()),e.add(u),n)&&n.push(u),new gb({shape:{points:o.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1}));l.baseDimIdx=r,l.largeDataIndices=a,l.barWidth=s,e.add(l),l.useStyle(o.getVisual("style")),D(l).seriesIndex=t.seriesIndex,t.get("silent")||(l.on("mousedown",vb),l.on("mousemove",vb)),n&&n.push(l)}var vb=Sy(function(t){t=function(t,e,n){for(var i=t.baseDimIdx,o=1-i,r=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,h=0,c=r.length/3;h<c;h++){var p=3*h;if(l[i]=u,l[o]=r[2+p],s[i]=r[p+i],s[o]=r[p+o],l[o]<0&&(s[o]+=l[o],l[o]=-l[o]),s[0]<=e&&e<=s[0]+l[0]&&s[1]<=n&&n<=s[1]+l[1])return a[h]}return-1}(this,t.offsetX,t.offsetY);D(this).dataIndex=0<=t?t:null},30,!1);function _b(t,e,n){var i,o;return Ux(n,"cartesian2d")?(i=e,o=n.getArea(),{x:(t?i:o).x,y:(t?o:i).y,width:(t?i:o).width,height:(t?o:i).height}):{cx:(o=n.getArea()).cx,cy:o.cy,r0:(t?o:e).r0,r:(t?o:e).r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}r1(function(t){t.registerChartView(eb),t.registerSeriesModel(zx),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,M(S_,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,{seriesType:"bar",plan:hy(),reset:function(t){var e,x,n,b,w,S,i,o,M,I,T,C,D,k,A,L;if(M_(t))return e=t.getData(),i=(x=t.coordinateSystem).getBaseAxis(),n=x.getOtherAxis(i),b=e.getDimensionIndex(e.mapDimension(n.dim)),w=e.getDimensionIndex(e.mapDimension(i.dim)),S=t.get("showBackground",!0),i=e.mapDimension(n.dim),o=e.getCalculationInfo("stackResultDimension"),M=Xv(e,i)&&!!e.getCalculationInfo("stackedOnSeries"),I=n.isHorizontal(),T=n.toGlobalCoord(n.dataToCoord("log"===n.type?1:0)),C=I_(t),D=t.get("barMinHeight")||0,k=o&&e.getDimensionIndex(o),A=e.getLayout("size"),L=e.getLayout("offset"),{progress:function(t,e){for(var n,i=t.count,o=C&&y_(3*i),r=C&&S&&y_(3*i),a=C&&y_(i),s=x.master.getRect(),l=I?s.width:s.height,u=e.getStore(),h=0;null!=(n=t.next());){var c,p=u.get(M?k:b,n),d=u.get(w,n),f=T,g=void 0,y=(M&&(g=+p-u.get(b,n)),void 0),m=void 0,v=void 0,_=void 0;I?(c=x.dataToPoint([p,d]),y=f=M?x.dataToPoint([g,d])[0]:f,m=c[1]+L,v=c[0]-f,_=A,Math.abs(v)<D&&(v=(v<0?-1:1)*D)):(c=x.dataToPoint([d,p]),M&&(f=x.dataToPoint([d,g])[1]),y=c[0]+L,m=f,v=A,_=c[1]-f,Math.abs(_)<D&&(_=(_<=0?-1:1)*D)),C?(o[h]=y,o[h+1]=m,o[h+2]=I?v:_,r&&(r[h]=I?s.x:y,r[h+1]=I?m:s.y,r[h+2]=l),a[n]=n):e.setItemLayout(n,{x:y,y:m,width:v,height:_}),h+=3}C&&e.setLayout({largePoints:o,largeDataIndices:a,largeBackgroundPoints:r,valueAxisHorizontal:I})}}}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Ox("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})});u(wb,xb=ty),wb.prototype.getInitialData=function(t){return Uv(null,this,{useEncodeDefaulter:!0})},wb.prototype.getLegendIcon=function(t){var e=new Zo,n=mm("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),n=(e.add(n),n.setStyle(t.lineStyle),this.getData().getVisual("symbol")),i=this.getData().getVisual("symbolRotate"),n="none"===n?"circle":n,o=.8*t.itemHeight,o=mm(n,(t.itemWidth-o)/2,(t.itemHeight-o)/2,o,o,t.itemStyle.fill),i=(e.add(o),o.setStyle(t.itemStyle),"inherit"===t.iconRotate?i:t.iconRotate||0);return o.rotation=i*Math.PI/180,o.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<n.indexOf("empty")&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),e},wb.type="series.line",wb.dependencies=["grid","polar"],wb.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};var xb,bb=wb;function wb(){var t=null!==xb&&xb.apply(this,arguments)||this;return t.type=wb.type,t.hasSymbolVisual=!0,t}u(Ib,Sb=Zo),Ib.prototype._createSymbol=function(t,e,n,i,o){this.removeAll();o=mm(t,-1,-1,2,2,null,o);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Tb,this._symbolType=t,this.add(o)},Ib.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},Ib.prototype.getSymbolType=function(){return this._symbolType},Ib.prototype.getSymbolPath=function(){return this.childAt(0)},Ib.prototype.highlight=function(){Ol(this.childAt(0))},Ib.prototype.downplay=function(){Nl(this.childAt(0))},Ib.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},Ib.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},Ib.prototype.updateData=function(t,e,n,i){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=Ib.getSymbolSize(t,e),h=s!==this._symbolType,c=i&&i.disableAnimation;h?(o=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,o)):((r=this.childAt(0)).silent=!1,a={scaleX:u[0]/2,scaleY:u[1]/2},c?r.attr(a):Vh(r,a,l,e),Uh(r)),this._updateCommon(t,e,u,n,i),h&&(r=this.childAt(0),c||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:r.style.opacity}},r.scaleX=r.scaleY=0,r.style.opacity=0,Gh(r,a,l,e))),c&&this.childAt(0).stopAnimation("leave")},Ib.prototype._updateCommon=function(e,t,n,i,o){var r,a,s,l,u,h,c,p,d=this.childAt(0),f=e.hostModel,g=(i&&(r=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,y=i.cursorStyle,h=i.emphasisDisabled),i&&!e.hasItemOption||(r=(g=(i=i&&i.itemModel?i.itemModel:e.getItemModel(t)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=i.getModel(["select","itemStyle"]).getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=g.get("focus"),u=g.get("blurScope"),h=g.get("disabled"),c=Mc(i),p=g.getShallow("scale"),y=i.getShallow("cursor")),e.getItemVisual(t,"symbolRotate")),i=(d.attr("rotation",(g||0)*Math.PI/180||0),_m(e.getItemVisual(t,"symbolOffset"),n)),g=(i&&(d.x=i[0],d.y=i[1]),y&&d.attr("cursor",y),e.getItemVisual(t,"style")),i=g.fill,y=(d instanceof Ls?(y=d.style,d.useStyle(V({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},g))):(d.__isEmptyBrush?d.useStyle(V({},g)):d.useStyle(g),d.style.decal=null,d.setColor(i,o&&o.symbolInnerColor),d.style.strokeNoScale=!0),e.getItemVisual(t,"liftZ")),m=this._z2,v=(null!=y?null==m&&(this._z2=d.z2,d.z2+=y):null!=m&&(d.z2=m,this._z2=null),o&&o.useNameLabel);Sc(d,c,{labelFetcher:f,labelDataIndex:t,defaultText:function(t){return v?e.getName(t):Zx(e,t)},inheritColor:i,defaultOpacity:g.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;y=d.ensureState("emphasis"),y.style=r,d.ensureState("select").style=a,d.ensureState("blur").style=s,m=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&0<p?+p:1;y.scaleX=this._sizeX*m,y.scaleY=this._sizeY*m,this.setSymbolScale(1),Ul(this,l,u,h)},Ib.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},Ib.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),o=D(this).dataIndex,r=n&&n.animation;this.silent=i.silent=!0,n&&n.fadeLabel?(n=i.getTextContent())&&Wh(n,{style:{opacity:0}},e,{dataIndex:o,removeOpt:r,cb:function(){i.removeTextContent()}}):i.removeTextContent(),Wh(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:o,cb:t,removeOpt:r})},Ib.getSymbolSize=function(t,e){return vm(t.getItemVisual(e,"symbolSize"))};var Sb,Mb=Ib;function Ib(t,e,n,i){var o=Sb.call(this)||this;return o.updateData(t,e,n,i),o}function Tb(t,e){this.parent.drift(t,e)}function Cb(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&(!i.isIgnore||!i.isIgnore(n))&&(!i.clipShape||i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function Db(t){return(t=null==t||P(t)?t:{isIgnore:t})||{}}function kb(t){var t=t.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:Mc(t),cursorStyle:t.get("cursor")}}Lb.prototype.updateData=function(r,a){this._progressiveEls=null,a=Db(a);var s=this.group,l=r.hostModel,u=this._data,h=this._SymbolCtor,c=a.disableAnimation,p=kb(r),d={disableAnimation:c},f=a.getSymbolPoint||function(t){return r.getItemLayout(t)};u||s.removeAll(),r.diff(u).add(function(t){var e,n=f(t);Cb(r,n,t,a)&&((e=new h(r,t,p,d)).setPosition(n),r.setItemGraphicEl(t,e),s.add(e))}).update(function(t,e){var n,i,e=u.getItemGraphicEl(e),o=f(t);Cb(r,o,t,a)?(n=r.getItemVisual(t,"symbol")||"circle",i=e&&e.getSymbolType&&e.getSymbolType(),!e||i&&i!==n?(s.remove(e),(e=new h(r,t,p,d)).setPosition(o)):(e.updateData(r,t,p,d),i={x:o[0],y:o[1]},c?e.attr(i):Vh(e,i,l)),s.add(e),r.setItemGraphicEl(t,e)):s.remove(e)}).remove(function(t){var e=u.getItemGraphicEl(t);e&&e.fadeOut(function(){s.remove(e)},l)}).execute(),this._getSymbolPoint=f,this._data=r},Lb.prototype.updateLayout=function(){var n=this,t=this._data;t&&t.eachItemGraphicEl(function(t,e){e=n._getSymbolPoint(e);t.setPosition(e),t.markRedraw()})},Lb.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=kb(t),this._data=null,this.group.removeAll()},Lb.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Db(n);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);Cb(e,a,o,n)&&((r=new this._SymbolCtor(e,o,this._seriesScope)).traverse(i),r.setPosition(a),this.group.add(r),e.setItemGraphicEl(o,r),this._progressiveEls.push(r))}},Lb.prototype.eachRendered=function(t){vc(this._progressiveEls||this.group,t)},Lb.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()};var Ab=Lb;function Lb(t){this.group=new Zo,this._SymbolCtor=t||Mb}function Pb(t,e,n){var i=t.getBaseAxis(),o=t.getOtherAxis(i),n=function(t,e){var n=0,t=t.scale.getExtent();"start"===e?n=t[0]:"end"===e?n=t[1]:Y(e)&&!isNaN(e)?n=e:0<t[0]?n=t[0]:t[1]<0&&(n=t[1]);return n}(o,n),i=i.dim,o=o.dim,r=e.mapDimension(o),a=e.mapDimension(i),s="x"===o||"radius"===o?1:0,t=B(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,u=e.getCalculationInfo("stackResultDimension");return Xv(e,t[0])&&(l=!0,t[0]=u),Xv(e,t[1])&&(l=!0,t[1]=u),{dataDimsForPoint:t,valueStart:n,valueAxisDim:o,baseAxisDim:i,stacked:!!l,valueDim:r,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Ob(t,e,n,i){var o=NaN,r=(t.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=t.valueStart),t.baseDataOffset),a=[];return a[r]=n.get(t.baseDim,i),a[1-r]=o,e.dataToPoint(a)}var Nb=Math.min,Rb=Math.max;function Eb(t,e){return isNaN(t)||isNaN(e)}function zb(t,e,n,i,o,r,a,s,l){for(var u,h,c,p,d=n,f=0;f<i;f++){var g=e[2*d],y=e[2*d+1];if(o<=d||d<0)break;if(Eb(g,y)){if(l){d+=r;continue}break}if(d===n)t[0<r?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-u,v=y-h;if(m*m+v*v<.5){d+=r;continue}if(0<a){for(var _=d+r,x=e[2*_],b=e[2*_+1];x===g&&b===y&&f<i;)f++,d+=r,x=e[2*(_+=r)],b=e[2*_+1],g=e[2*d],y=e[2*d+1];var w=f+1;if(l)for(;Eb(x,b)&&w<i;)w++,x=e[2*(_+=r)],b=e[2*_+1];var S,M,I,T,C,D,k,A,L,m=0,v=0,P=void 0,O=void 0;i<=w||Eb(x,b)?(k=g,A=y):(m=x-u,v=b-h,S=g-u,M=x-g,I=y-h,T=b-y,D=C=void 0,O="x"===s?(k=g-(L=0<m?1:-1)*(C=Math.abs(S))*a,A=y,P=g+L*(D=Math.abs(M))*a,y):"y"===s?(A=y-(L=0<v?1:-1)*(C=Math.abs(I))*a,P=k=g,y+L*(D=Math.abs(T))*a):(C=Math.sqrt(S*S+I*I),k=g-m*a*(1-(S=(D=Math.sqrt(M*M+T*T))/(D+C))),A=y-v*a*(1-S),O=y+v*a*S,P=Nb(P=g+m*a*S,Rb(x,g)),O=Nb(O,Rb(b,y)),P=Rb(P,Nb(x,g)),A=y-(v=(O=Rb(O,Nb(b,y)))-y)*C/D,k=Nb(k=g-(m=P-g)*C/D,Rb(u,g)),A=Nb(A,Rb(h,y)),P=g+(m=g-(k=Rb(k,Nb(u,g))))*D/C,y+(v=y-(A=Rb(A,Nb(h,y))))*D/C)),t.bezierCurveTo(c,p,k,A,g,y),c=P,p=O}else t.lineTo(g,y)}u=g,h=y,d+=r}return f}var Bb,Fb=function(){this.smooth=0,this.smoothConstraint=!0},Vb=(u(Gb,Bb=j),Gb.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Gb.prototype.getDefaultShape=function(){return new Fb},Gb.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;0<o&&Eb(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Eb(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=zb(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},Gb.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,r=as.CMD,a="x"===e,s=[],l=0;l<o.length;){var u=void 0,h=void 0;switch(o[l++]){case r.M:n=o[l++],i=o[l++];break;case r.L:var c,u=o[l++],h=o[l++];if((c=a?(t-n)/(u-n):(t-i)/(h-i))<=1&&0<=c)return v=a?(h-i)*c+i:(u-n)*c+n,a?[t,v]:[v,t];n=u,i=h;break;case r.C:u=o[l++],h=o[l++];var p=o[l++],d=o[l++],f=o[l++],g=o[l++],y=a?Hn(n,u,p,f,t,s):Hn(i,h,d,g,t,s);if(0<y)for(var m=0;m<y;m++){var v,_=s[m];if(_<=1&&0<=_)return v=a?Vn(i,h,d,g,_):Vn(n,u,p,f,_),a?[t,v]:[v,t]}n=f,i=g}}},Gb);function Gb(t){t=Bb.call(this,t)||this;return t.type="ec-polyline",t}u(Xb,Hb=Fb);var Hb,Wb=Xb;function Xb(){return null!==Hb&&Hb.apply(this,arguments)||this}u(Zb,Yb=j),Zb.prototype.getDefaultShape=function(){return new Wb},Zb.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,o=0,r=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<r&&Eb(n[2*r-2],n[2*r-1]);r--);for(;o<r&&Eb(n[2*o],n[2*o+1]);o++);}for(;o<r;){var s=zb(t,n,o,r,r,1,e.smooth,a,e.connectNulls);zb(t,i,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}};var Yb,Ub=Zb;function Zb(t){t=Yb.call(this,t)||this;return t.type="ec-polygon",t}function qb(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function jb(t){for(var e=1/0,n=1/0,i=-1/0,o=-1/0,r=0;r<t.length;){var a=t[r++],s=t[r++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),o=Math.max(s,o))}return[[e,n],[i,o]]}function Kb(t,e){var t=jb(t),n=t[0],t=t[1],e=jb(e),i=e[0],e=e[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function $b(t){return Y(t)?t:t?.5:0}function Qb(t,e,n,i){var e=e.getBaseAxis(),o="x"===e.dim||"radius"===e.dim?0:1,r=[],a=0,s=[],l=[],u=[],h=[];if(i){for(a=0;a<t.length;a+=2)isNaN(t[a])||isNaN(t[a+1])||h.push(t[a],t[a+1]);t=h}for(a=0;a<t.length-2;a+=2)switch(u[0]=t[a+2],u[1]=t[a+3],l[0]=t[a],l[1]=t[a+1],r.push(l[0],l[1]),n){case"end":s[o]=u[o],s[1-o]=l[1-o],r.push(s[0],s[1]);break;case"middle":var c=[];s[o]=c[o]=(l[o]+u[o])/2,s[1-o]=l[1-o],c[1-o]=u[1-o],r.push(s[0],s[1]),r.push(c[0],c[1]);break;default:s[o]=l[o],s[1-o]=u[1-o],r.push(s[0],s[1])}return r.push(t[a++],t[a++]),r}function Jb(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var o,r=i.length-1;0<=r;r--){var a,s=t.getDimensionInfo(i[r].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){o=i[r];break}}if(o){var l=e.getAxis(a),e=B(o.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),u=e.length,h=o.outerColors.slice(),n=(u&&e[0].coord>e[u-1].coord&&(e.reverse(),h.reverse()),function(t,e){var n,i,o=[],r=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:Si((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;s<r;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(e<u){i?o.push(a(i,l,e)):n&&o.push(a(n,l,0),a(n,l,e));break}n&&(o.push(a(n,l,0)),n=null),o.push(l),i=l}}return o}(e,"x"===a?n.getWidth():n.getHeight())),c=n.length;if(!c&&u)return e[0].coord<0?h[1]||e[u-1].color:h[0]||e[0].color;var p=n[0].coord-10,u=n[c-1].coord+10,d=u-p;if(d<.001)return"transparent";H(n,function(t){t.offset=(t.coord-p)/d}),n.push({offset:c?n[c-1].offset:.5,color:h[1]||"transparent"}),n.unshift({offset:c?n[0].offset:.5,color:h[0]||"transparent"});e=new Sh(0,0,0,0,n,!0);return e[a]=p,e[a+"2"]=u,e}}}function tw(t,e,n){var t=t.get("showAllSymbol"),i="auto"===t;if(!t||i){var o,r,a=n.getAxesByScale("ordinal")[0];if(a)if(!i||!function(t,e){for(var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count(),o=(isNaN(i)&&(i=0),e.count()),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*Mb.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return;return 1}(a,e))return o=e.mapDimension(a.dim),r={},H(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function ew(t){for(var e,n,i=t.length/2;0<i&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}function nw(t,e){return[t[2*e],t[2*e+1]]}function iw(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<hl.length;e++)if(t.get([hl[e],"endLabel","show"]))return 1}function ow(n,i,e,t){var o,r,a,s,l,u,h,c,p;return Ux(i,"cartesian2d")?(o=t.getModel("endLabel"),r=o.get("valueAnimation"),a=t.getData(),s={lastFrameIndex:0},l=iw(t)?function(t,e){n._endLabelOnDuring(t,e,a,s,r,o,i)}:null,u=i.getBaseAxis().isHorizontal(),h=Fx(i,e,t,function(){var t=n._endLabel;t&&e&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},l),t.get("clip",!0)||(c=h.shape,p=Math.max(c.width,c.height),u?(c.y-=p,c.height+=2*p):(c.x-=p,c.width+=2*p)),l&&l(1,h),h):Vx(i,e,t)}u(sw,rw=dy),sw.prototype.init=function(){var t=new Zo,e=new Ab;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},sw.prototype.render=function(t,e,n){function i(t){r._changePolyState(t)}var o,r=this,a=t.coordinateSystem,s=this.group,l=t.getData(),u=t.getModel("lineStyle"),h=t.getModel("areaStyle"),c=l.getLayout("points")||[],p="polar"===a.type,d=this._coordSys,f=this._symbolDraw,g=this._polyline,y=this._polygon,m=this._lineGroup,e=!e.ssr&&t.get("animation"),v=!h.isEmpty(),_=h.get("origin"),x=Pb(a,l,_),x=v&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),o=y_(2*i),r=0;r<i;r++){var a=Ob(n,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(a,l,x),b=t.get("showSymbol"),w=t.get("connectNulls"),S=b&&!p&&tw(t,l,a),M=this._data,I=(M&&M.eachItemGraphicEl(function(t,e){t.__temp&&(s.remove(t),M.setItemGraphicEl(e,null))}),b||f.remove(),s.add(m),!p&&t.get("step")),T=(a&&a.getArea&&t.get("clip",!0)&&(null!=(o=a.getArea()).width?(o.x-=.1,o.y-=.1,o.width+=.2,o.height+=.2):o.r0&&(o.r0-=.5,o.r+=.5)),this._clipShapeForSymbol=o,Jb(l,a,n)||l.getVisual("style")[l.getVisual("drawType")]),d=(g&&d.type===a.type&&I===this._step?(v&&!y?y=this._newPolygon(c,x):y&&!v&&(m.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,Vp(T)),(d=m.getClipPath())?Gh(d,{shape:ow(this,a,!1,t).shape},t):m.setClipPath(ow(this,a,!0,t)),b&&f.updateData(l,{isIgnore:S,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),qb(this._stackedOnPoints,x)&&qb(this._points,c)||(e?this._doUpdateAnimation(l,x,a,n,I,_,w):(I&&(c=Qb(c,a,I,w),x=x&&Qb(x,a,I,w)),g.setShape({points:c}),y&&y.setShape({points:c,stackedOnPoints:x})))):(b&&f.updateData(l,{isIgnore:S,clipShape:o,disableAnimation:!0,getSymbolPoint:function(t){return[c[2*t],c[2*t+1]]}}),e&&this._initSymbolLabelAnimation(l,a,o),I&&(c=Qb(c,a,I,w),x=x&&Qb(x,a,I,w)),g=this._newPolyline(c),v?y=this._newPolygon(c,x):y&&(m.remove(y),y=this._polygon=null),p||this._initOrUpdateEndLabel(t,a,Vp(T)),m.setClipPath(ow(this,a,!0,t))),t.getModel("emphasis")),n=d.get("focus"),b=d.get("blurScope"),f=d.get("disabled"),S=(g.useStyle(z(u.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),jl(g,t,"lineStyle"),0<g.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(g.getState("emphasis").style.lineWidth=+g.style.lineWidth+1),D(g).seriesIndex=t.seriesIndex,Ul(g,n,b,f),$b(t.get("smooth"))),e=t.get("smoothMonotone");g.setShape({smooth:S,smoothMonotone:e,connectNulls:w}),y&&(o=l.getCalculationInfo("stackedOnSeries"),v=0,y.useStyle(z(h.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),o&&(v=$b(o.get("smooth"))),y.setShape({smooth:S,stackedOnSmooth:v,smoothMonotone:e,connectNulls:w}),jl(y,t,"areaStyle"),D(y).seriesIndex=t.seriesIndex,Ul(y,n,b,f));l.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=i)}),this._polyline.onHoverStateChange=i,this._data=l,this._coordSys=a,this._stackedOnPoints=x,this._points=c,this._step=I,this._valueOrigin=_,t.get("triggerLineEvent")&&(this.packEventData(t,g),y)&&this.packEventData(t,y)},sw.prototype.packEventData=function(t,e){D(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},sw.prototype.highlight=function(t,e,n,i){var o=t.getData(),r=Er(o,i);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&0<=r){var a=o.getLayout("points");if(!(l=o.getItemGraphicEl(r))){var s=a[2*r],a=a[2*r+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,u=t.get("zlevel")||0,h=t.get("z")||0,s=((l=new Mb(o,r)).x=s,l.y=a,l.setZ(u,h),l.getSymbolPath().getTextContent());s&&(s.zlevel=u,s.z=h,s.z2=this._polyline.z2+1),l.__temp=!0,o.setItemGraphicEl(r,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else dy.prototype.highlight.call(this,t,e,n,i)},sw.prototype.downplay=function(t,e,n,i){var o,r=t.getData(),a=Er(r,i);this._changePolyState("normal"),null!=a&&0<=a?(o=r.getItemGraphicEl(a))&&(o.__temp?(r.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay()):dy.prototype.downplay.call(this,t,e,n,i)},sw.prototype._changePolyState=function(t){var e=this._polygon;Cl(this._polyline,t),e&&Cl(e,t)},sw.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Vb({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},sw.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Ub({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},sw.prototype._initSymbolLabelAnimation=function(t,l,u){var h,c,e=l.getBaseAxis(),p=e.inverse,e=("cartesian2d"===l.type?(h=e.isHorizontal(),c=!1):"polar"===l.type&&(h="angle"===e.dim,c=!0),t.hostModel),d=e.get("animationDuration"),f=(C(d)&&(d=d(null)),e.get("animationDelay")||0),g=C(f)?f(null):f;t.eachItemGraphicEl(function(t,e){var n,i,o,r,a,s=t;s&&(r=[t.x,t.y],a=i=n=void 0,u&&(a=c?(o=u,r=l.pointToCoord(r),h?(n=o.startAngle,i=o.endAngle,-r[1]/180*Math.PI):(n=o.r0,i=o.r,r[0])):h?(n=u.x,i=u.x+u.width,t.x):(n=u.y+u.height,i=u.y,t.y)),o=i===n?0:(a-n)/(i-n),p&&(o=1-o),r=C(f)?f(e):d*o+g,a=(t=s.getSymbolPath()).getTextContent(),s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:r}),a&&a.animateFrom({style:{opacity:0}},{duration:300,delay:r}),t.disableLabelAnimation=!0)})},sw.prototype._initOrUpdateEndLabel=function(t,e,n){var i,o,r,a=t.getModel("endLabel");iw(t)?(i=t.getData(),o=this._polyline,(r=i.getLayout("points"))?(this._endLabel||((this._endLabel=new Ys({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0),0<=(r=ew(r))&&(Sc(o,Mc(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:r,defaultText:function(t,e,n){return null!=n?qx(i,n):Zx(i,t)},enableTextSetter:!0},(n=a,r=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,a=r?t?"right":"left":"center",r=r?"middle":t?"top":"bottom",{normal:{align:n.get("align")||a,verticalAlign:n.get("verticalAlign")||r}})),o.textConfig.position=null)):(o.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},sw.prototype._endLabelOnDuring=function(t,e,n,i,o,r,a){var s,l,u,h,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==i.originalX&&(i.originalX=m.x,i.originalY=m.y),s=n.getLayout("points"),g=(l=n.hostModel).get("connectNulls"),u=r.get("precision"),r=r.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,h=(c?r:0)*(a?-1:1),r=(c?0:-r)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,n){for(var i,o,r=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<r;u++)if(o=t[2*u+a],!isNaN(o)&&!isNaN(t[2*u+1-a])){if(0!==u){if(i<=e&&e<=o||e<=i&&o<=e){l=u;break}s=u}i=o}return{range:[s,l],t:(e-i)/(o-i)}}(s,a=a?c?e.x:e.y+e.height:c?e.x+e.width:e.y,e=c?"x":"y")).range)[1]-p[0])?(1<f&&!g?(y=nw(s,p[0]),m.attr({x:y[0]+h,y:y[1]+r}),o&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+h,y:y[1]+r}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),o&&(d=Xr(n,u,f,g,c.t))),i.lastFrameIndex=p[0]):(y=nw(s,v=1===t||0<i.lastFrameIndex?p[0]:0),o&&(d=l.getRawValue(v)),m.attr({x:y[0]+h,y:y[1]+r})),o)&&"function"==typeof(a=Pc(m)).setLabelText&&a.setLabelText(d)},sw.prototype._doUpdateAnimation=function(t,e,n,i,o,r,a){var s=this._polyline,l=this._polygon,u=t.hostModel,e=function(t,e,n,i,o,r){a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute();for(var a,s=a,l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=Pb(o,e,r),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,b=void 0;switch(_.cmd){case"=":var w=2*_.idx,b=2*_.idx1,S=y[w],M=y[1+w],I=m[b],T=m[b+1];(isNaN(S)||isNaN(M))&&(S=I,M=T),l.push(S,M),u.push(I,T),h.push(n[w],n[1+w]),c.push(i[b],i[b+1]),f.push(e.getRawIndex(_.idx1));break;case"+":S=_.idx,M=g.dataDimsForPoint,I=o.dataToPoint([e.get(M[0],S),e.get(M[1],S)]),T=(b=2*S,l.push(I[0],I[1]),u.push(m[b],m[b+1]),Ob(g,o,e,S));h.push(T[0],T[1]),c.push(i[b],i[b+1]),f.push(e.getRawIndex(S));break;case"-":x=!1}x&&(p.push(_),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var C=y_(r=l.length),D=y_(r),k=y_(r),A=y_(r),L=[],v=0;v<d.length;v++){var P=d[v],O=2*v,N=2*P;C[O]=l[N],C[1+O]=l[1+N],D[O]=u[N],D[1+O]=u[1+N],k[O]=h[N],k[1+O]=h[1+N],A[O]=c[N],A[1+O]=c[1+N],L[v]=p[P]}return{current:C,next:D,stackedOnCurrent:k,stackedOnNext:A,status:L}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),h=e.current,c=e.stackedOnCurrent,p=e.next,d=e.stackedOnNext;if(o&&(h=Qb(e.current,n,o,a),c=Qb(e.stackedOnCurrent,n,o,a),p=Qb(e.next,n,o,a),d=Qb(e.stackedOnNext,n,o,a)),3e3<Kb(h,p)||l&&3e3<Kb(c,d))s.stopAnimation(),s.setShape({points:p}),l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:d}));else{s.shape.__points=e.current,s.shape.points=h;for(var f,n={shape:{points:p}},g=(e.current!==h&&(n.shape.__points=e.next),s.stopAnimation(),Vh(s,n,u),l&&(l.setShape({points:h,stackedOnPoints:c}),l.stopAnimation(),Vh(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points)&&(l.shape.points=s.shape.points),[]),y=e.status,m=0;m<y.length;m++)"="===y[m].cmd&&(f=t.getItemGraphicEl(y[m].idx1))&&g.push({el:f,ptIdx:m});s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<g.length;e++){var n=g[e].el,i=2*g[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})}},sw.prototype.remove=function(t){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(t,e){t.__temp&&(n.remove(t),i.setItemGraphicEl(e,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},sw.type="line";var rw,aw=sw;function sw(){return null!==rw&&rw.apply(this,arguments)||this}r1(function(t){var i;t.registerChartView(aw),t.registerSeriesModel(bb),t.registerLayout((i=!0,{seriesType:"line",plan:hy(),reset:function(t){var h,e,c,p,d,n=t.getData(),f=t.coordinateSystem,t=t.pipelineContext,g=i||t.large;if(f)return t=B(f.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),h=t.length,e=n.getCalculationInfo("stackResultDimension"),Xv(n,t[0])&&(t[0]=e),Xv(n,t[1])&&(t[1]=e),c=n.getStore(),p=n.getDimensionIndex(t[0]),d=n.getDimensionIndex(t[1]),h&&{progress:function(t,e){for(var n=t.end-t.start,i=g&&y_(n*h),o=[],r=[],a=t.start,s=0;a<t.end;a++){var l,u=void 0;u=1===h?(l=c.get(p,a),f.dataToPoint(l,null,r)):(o[0]=c.get(p,a),o[1]=c.get(d,a),f.dataToPoint(o,null,r)),g?(i[s++]=u[0],i[s++]=u[1]):e.setItemLayout(a,u.slice())}g&&e.setLayout("points",i)}}}})),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),t=t.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",t)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Ox("line"))});var lw=2*Math.PI,uw=Math.PI/180;function hw(t,e){return Zp(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function cw(t,e){var n,i=hw(t,e),o=t.get("center"),r=t.get("radius"),a=(F(r)||(r=[0,r]),q(i.width,e.getWidth())),e=q(i.height,e.getHeight()),s=Math.min(a,e),l=q(r[0],s/2),r=q(r[1],s/2),s=t.coordinateSystem;return s=s?(n=(t=s.dataToPoint(o))[0]||0,t[1]||0):(n=q((o=F(o)?o:[o,o])[0],a)+i.x,q(o[1],e)+i.y),{cx:n,cy:s,r0:l,r:r}}function pw(t,e,T){e.eachSeriesByType(t,function(t){var o,a=t.getData(),e=a.mapDimension("value"),n=hw(t,T),i=cw(t,T),s=i.cx,l=i.cy,u=i.r,h=i.r0,r=-t.get("startAngle")*uw,i=t.get("endAngle"),c=t.get("padAngle")*uw,i="auto"===i?r-lw:-i*uw,p=t.get("minAngle")*uw+c,d=0,f=(a.each(e,function(t){isNaN(t)||d++}),a.getSum(e)),g=Math.PI/(f||d)*2,y=t.get("clockwise"),m=t.get("roseType"),v=t.get("stillShowZeroSum"),_=a.getDataExtent(e),x=(_[0]=0,y?1:-1),t=[r,i],b=x*c/2,w=(rs(t,!y),r=t[0],Math.abs(t[1]-r)),S=w,M=0,I=r;a.setLayout({viewRect:n,r:u}),a.each(e,function(t,e){var n,i,o,r;isNaN(t)?a.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:s,cy:l,r0:h,r:m?NaN:u}):((n="area"!==m?0===f&&v?g:t*g:w/d)<p?S-=n=p:M+=t,i=I+x*n,r=o=0,r=n<c?o=I+x*n/2:(o=I+b,i-b),a.setItemLayout(e,{angle:n,startAngle:o,endAngle:r,clockwise:y,cx:s,cy:l,r0:h,r:m?rr(t,_,[h,u]):u}),I=i)}),S<lw&&d&&(S<=.001?(o=w/d,a.each(e,function(t,e){var n,i;isNaN(t)||(i=t=0,i=((n=a.getItemLayout(e)).angle=o)<c?t=r+x*(e+.5)*o:(t=r+x*e*o+b,r+x*(e+1)*o-b),n.startAngle=t,n.endAngle=i)})):(g=S/M,I=r,a.each(e,function(t,e){var n,i;isNaN(t)||(i=n=0,i=(t=(e=a.getItemLayout(e)).angle===p?p:t*g)<c?n=I+x*t/2:(n=I+b,I+x*t-b),e.startAngle=n,e.endAngle=i,I+=x*t)})))})}function dw(t){return{seriesType:t,reset:function(t,e){var i,o=e.findComponents({mainType:"legend"});o&&o.length&&(i=t.getData()).filterSelf(function(t){for(var e=i.getName(t),n=0;n<o.length;n++)if(!o[n].isSelected(e))return!1;return!0})}}}var fw=Math.PI/180;function gw(t,s,l,u,h,e,n,i,o,r){if(!(t.length<2)){for(var a,c=t.length,p=0;p<c;p++)"outer"===t[p].position&&"labelLine"===t[p].labelAlignTo&&(a=t[p].label.x-r,t[p].linePoints[1][0]+=a,t[p].label.x=r);if(ix(t,o,o+n)){for(var d,f,g,y,m,v=t,_={list:[],maxY:0},x={list:[],maxY:0},b=0;b<v.length;b++)"none"===v[b].labelAlignTo&&(f=(d=v[b]).label.y>l?x:_,(g=Math.abs(d.label.y-l))>=f.maxY&&(m=d.label.x-s-d.len2*h,y=u+d.len,m=Math.abs(m)<y?Math.sqrt(g*g/(1-m*m/y/y)):y,f.rB=m,f.maxY=g),f.list.push(d));w(_),w(x)}}function w(t){for(var e=t.rB,n=e*e,i=0;i<t.list.length;i++){var o=t.list[i],r=Math.abs(o.label.y-l),a=u+o.len,a=a*a,r=Math.sqrt((1-Math.abs(r*r/n))*a),a=s+(r+o.len2)*h,r=a-o.label.x;yw(o,o.targetTextWidth-r*h,!0),o.label.x=a}}}function yw(t,e,n){var i,o,r,a,s,l,u;void 0===n&&(n=!1),null==t.labelStyleWidth&&(s=(i=t.label).style,o=t.rect,l=s.backgroundColor,u=(u=s.padding)?u[1]+u[3]:0,s=s.overflow,e<(r=o.width+(l?0:u))||n)&&(a=o.height,s&&s.match("break")?(i.setStyle("backgroundColor",null),i.setStyle("width",e-u),s=i.getBoundingRect(),i.setStyle("width",Math.ceil(s.width)),i.setStyle("backgroundColor",l)):(s=e-u,l=!(e<r)&&(!n||s>t.unconstrainedWidth)?null:s,i.setStyle("width",l)),u=i.getBoundingRect(),o.width=u.width,e=(i.style.margin||0)+2.1,o.height=u.height+e,o.y-=(o.height-a)/2)}function mw(t){return"center"===t.position}function vw(t){var S,M,I=t.getData(),T=[],C=!1,D=(t.get("minShowLabelAngle")||0)*fw,e=I.getLayout("viewRect"),k=I.getLayout("r"),A=e.width,L=e.x,n=e.y,e=e.height;function P(t){t.ignore=!0}if(I.each(function(t){var e,n,i,o,r,a,s,l,u,h,c=I.getItemGraphicEl(t),p=c.shape,d=c.getTextContent(),f=c.getTextGuideLine(),t=I.getItemModel(t),g=t.getModel("label"),y=g.get("position")||t.get(["emphasis","label","position"]),m=g.get("distanceToLabelLine"),v=g.get("alignTo"),_=q(g.get("edgeDistance"),A),x=g.get("bleedMargin"),t=t.getModel("labelLine"),b=q(t.get("length"),A),w=q(t.get("length2"),A);Math.abs(p.endAngle-p.startAngle)<D?(H(d.states,P),d.ignore=!0,f&&(H(f.states,P),f.ignore=!0)):function(t){if(!t.ignore)return 1;for(var e in t.states)if(!1===t.states[e].ignore)return 1}(d)&&(h=(p.startAngle+p.endAngle)/2,e=Math.cos(h),n=Math.sin(h),S=p.cx,M=p.cy,i="inside"===y||"inner"===y,s="center"===y?(o=p.cx,r=p.cy,"center"):(o=(s=(i?(p.r+p.r0)/2*e:p.r*e)+S)+3*e,r=(l=(i?(p.r+p.r0)/2*n:p.r*n)+M)+3*n,i||(a=s+e*(b+k-p.r),p=l+n*(b+k-p.r),u=a+(e<0?-1:1)*w,o="edge"===v?e<0?L+_:L+A-_:u+(e<0?-m:m),a=[[s,l],[a,r=p],[u,p]]),i?"center":"edge"===v?0<e?"right":"left":0<e?"left":"right"),l=Math.PI,u=0,Y(p=g.get("rotate"))?u=p*(l/180):"center"===y?u=0:"radial"===p||!0===p?u=e<0?-h+l:-h:"tangential"===p&&"outside"!==y&&"outer"!==y&&((g=Math.atan2(e,n))<0&&(g=2*l+g),u=(g=0<n?l+g:g)-l),C=!!u,d.x=o,d.y=r,d.rotation=u,d.setStyle({verticalAlign:"middle"}),i?(d.setStyle({align:s}),(h=d.states.select)&&(h.x+=d.x,h.y+=d.y)):((p=d.getBoundingRect().clone()).applyTransform(d.getComputedTransform()),g=(d.style.margin||0)+2.1,p.y-=g/2,p.height+=g,T.push({label:d,labelLine:f,position:y,len:b,len2:w,minTurnAngle:t.get("minTurnAngle"),maxSurfaceAngle:t.get("maxSurfaceAngle"),surfaceNormal:new E(e,n),linePoints:a,textAlign:s,labelDistance:m,labelAlignTo:v,edgeDistance:_,bleedMargin:x,rect:p,unconstrainedWidth:p.width,labelStyleWidth:d.style.width})),c.setTextConfig({inside:i}))}),!C&&t.get("avoidLabelOverlap")){for(var i=T,o=S,t=M,r=k,a=A,s=L,l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p<i.length;p++){var d=i[p].label;mw(i[p])||(d.x<o?(h=Math.min(h,d.x),l):(c=Math.max(c,d.x),u)).push(i[p])}for(var f,p=0;p<i.length;p++)!mw(g=i[p])&&g.linePoints&&null==g.labelStyleWidth&&(d=g.label,y=g.linePoints,f=void 0,f="edge"===g.labelAlignTo?d.x<o?y[2][0]-g.labelDistance-s-g.edgeDistance:s+a-g.edgeDistance-y[2][0]-g.labelDistance:"labelLine"===g.labelAlignTo?d.x<o?h-s-g.bleedMargin:s+a-c-g.bleedMargin:d.x<o?d.x-s-g.bleedMargin:s+a-d.x-g.bleedMargin,g.targetTextWidth=f,yw(g,f));gw(u,o,t,r,1,0,e,0,n,c),gw(l,o,t,r,-1,0,e,0,n,h);for(var g,y,m,v,_,p=0;p<i.length;p++)!mw(g=i[p])&&g.linePoints&&(d=g.label,y=g.linePoints,m="edge"===g.labelAlignTo,v=(v=d.style.padding)?v[1]+v[3]:0,v=d.style.backgroundColor?0:v,v=g.rect.width+v,_=y[1][0]-y[2][0],m?d.x<o?y[2][0]=s+g.edgeDistance+v+g.labelDistance:y[2][0]=s+a-g.edgeDistance-v-g.labelDistance:(d.x<o?y[2][0]=d.x+g.labelDistance:y[2][0]=d.x-g.labelDistance,y[1][0]=y[2][0]+_),y[1][1]=y[2][1]=d.y)}for(var x=0;x<T.length;x++){var b,w=T[x],O=w.label,N=w.labelLine,R=isNaN(O.x)||isNaN(O.y);O&&(O.setStyle({align:w.textAlign}),R&&(H(O.states,P),O.ignore=!0),b=O.states.select)&&(b.x+=O.x,b.y+=O.y),N&&(b=w.linePoints,R||!b?(H(N.states,P),N.ignore=!0):(K1(b,w.minTurnAngle),function(t,e,n){if(n<=180&&0<n){n=n/180*Math.PI,H1.fromArray(t[0]),W1.fromArray(t[1]),X1.fromArray(t[2]),E.sub(Y1,W1,H1),E.sub(U1,X1,W1);var i=Y1.len(),o=U1.len();if(!(i<.001||o<.001))if(Y1.scale(1/i),U1.scale(1/o),Y1.dot(e)<Math.cos(n)){i=B1(W1.x,W1.y,X1.x,X1.y,H1.x,H1.y,q1,!1),o=(j1.fromArray(q1),Math.PI/2),e=o+Math.acos(U1.dot(e))-n;if(o<=e)E.copy(j1,X1);else{j1.scaleAndAdd(U1,i/Math.tan(Math.PI/2-e));n=X1.x!==W1.x?(j1.x-W1.x)/(X1.x-W1.x):(j1.y-W1.y)/(X1.y-W1.y);if(isNaN(n))return;n<0?E.copy(j1,W1):1<n&&E.copy(j1,X1)}j1.toArray(t[1])}}}(b,w.surfaceNormal,w.maxSurfaceAngle),N.setShape({points:b}),O.__hostTarget.textGuideLineConfig={anchor:new E(b[0][0],b[0][1])}))}}u(bw,_w=Gu),bw.prototype.updateData=function(t,e,n,i){var o=this,r=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=V($x(a.getModel("itemStyle"),l,!0),l);isNaN(u.startAngle)?o.setShape(u):(i?(o.setShape(u),i=r.getShallow("animationType"),r.ecModel.ssr?(Gh(o,{scaleX:0,scaleY:0},r,{dataIndex:e,isFrom:!0}),o.originX=u.cx,o.originY=u.cy):"scale"===i?(o.shape.r=l.r0,Gh(o,{shape:{r:l.r}},r,e)):null!=n?(o.setShape({startAngle:n,endAngle:n}),Gh(o,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},r,e)):(o.shape.endAngle=l.startAngle,Vh(o,{shape:{endAngle:l.endAngle}},r,e))):(Uh(o),Vh(o,{shape:u},r,e)),o.useStyle(t.getItemVisual(e,"style")),jl(o,a),i=(l.startAngle+l.endAngle)/2,n=r.get("selectedOffset"),u=Math.cos(i)*n,i=Math.sin(i)*n,(n=a.getShallow("cursor"))&&o.attr("cursor",n),this._updateLabel(r,t,e),o.ensureState("emphasis").shape=V({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},$x(s.getModel("itemStyle"),l)),V(o.ensureState("select"),{x:u,y:i,shape:$x(a.getModel(["select","itemStyle"]),l)}),V(o.ensureState("blur"),{shape:$x(a.getModel(["blur","itemStyle"]),l)}),n=o.getTextGuideLine(),r=o.getTextContent(),n&&V(n.ensureState("select"),{x:u,y:i}),V(r.ensureState("select"),{x:u,y:i}),Ul(this,s.get("focus"),s.get("blurScope"),s.get("disabled")))},bw.prototype._updateLabel=function(t,e,n){var i=e.getItemModel(n),o=i.getModel("labelLine"),r=e.getItemVisual(n,"style"),a=r&&r.fill,r=r&&r.opacity,e=(Sc(this,Mc(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:r,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)}),this.getTextContent()),n=(this.setTextConfig({position:null,rotation:null}),e.attr({z2:10}),t.get(["label","position"]));"outside"!==n&&"outer"!==n?this.removeTextGuideLine():(this.getTextGuideLine()||(e=new th,this.setTextGuideLine(e)),J1(this,tx(i),{stroke:a,opacity:bt(o.get(["lineStyle","opacity"]),r,1)}))};var _w,xw=bw;function bw(t,e,n){var i=_w.call(this)||this,o=(i.z2=2,new Ys);return i.setTextContent(o),i.updateData(t,e,n,!0),i}u(Mw,ww=dy),Mw.prototype.render=function(e,t,n,i){var o,r=e.getData(),a=this._data,s=this.group;if(!a&&0<r.count()){for(var l=r.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u<r.count();++u)l=r.getItemLayout(u);l&&(o=l.startAngle)}this._emptyCircleSector&&s.remove(this._emptyCircleSector),0===r.count()&&e.get("showEmptyCircle")&&((n=new Gu({shape:cw(e,n)})).useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=n,s.add(n)),r.diff(a).add(function(t){var e=new xw(r,t,o);r.setItemGraphicEl(t,e),s.add(e)}).update(function(t,e){e=a.getItemGraphicEl(e);e.updateData(r,t,o),e.off("click"),s.add(e),r.setItemGraphicEl(t,e)}).remove(function(t){Yh(a.getItemGraphicEl(t),e,t)}).execute(),vw(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=r)},Mw.prototype.dispose=function(){},Mw.prototype.containPoint=function(t,e){var n,e=e.getData().getItemLayout(0);if(e)return n=t[0]-e.cx,t=t[1]-e.cy,(n=Math.sqrt(n*n+t*t))<=e.r&&n>=e.r0},Mw.type="pie";var ww,Sw=Mw;function Mw(){var t=null!==ww&&ww.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}function Iw(t,e,n){e=F(e)?{coordDimensions:e}:V({encodeDefine:t.getEncode()},e);var i=t.getSource(),e=Fv(i,e).dimensions,e=new Bv(e,t);return e.initData(i,n),e}Cw.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},Cw.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},Cw.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},Cw.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var Tw=Cw;function Cw(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}var Dw,kw=zr(),Aw=(u(Lw,Dw=ty),Lw.prototype.init=function(t){Dw.prototype.init.apply(this,arguments),this.legendVisualProvider=new Tw(S(this.getData,this),S(this.getRawData,this)),this._defaultLabelLine(t)},Lw.prototype.mergeOption=function(){Dw.prototype.mergeOption.apply(this,arguments)},Lw.prototype.getInitialData=function(){return Iw(this,{coordDimensions:["value"],encodeDefaulter:M(vd,this)})},Lw.prototype.getDataParams=function(t){var e,n=this.getData(),i=kw(n),o=i.seats,i=(o||(e=[],n.each(n.mapDimension("value"),function(t){e.push(t)}),o=i.seats=cr(e,n.hostModel.get("percentPrecision"))),Dw.prototype.getDataParams.call(this,t));return i.percent=o[t]||0,i.$vars.push("percent"),i},Lw.prototype._defaultLabelLine=function(t){Tr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},Lw.type="series.pie",Lw.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"},Lw);function Lw(){return null!==Dw&&Dw.apply(this,arguments)||this}function Pw(t){t.eachSeriesByType("radar",function(t){var e,i=t.getData(),o=[],r=t.coordinateSystem;r&&(H(e=r.getIndicatorAxes(),function(t,n){i.each(i.mapDimension(e[n].dim),function(t,e){o[e]=o[e]||[];t=r.dataToPoint(t,n);o[e][n]=Ow(t)?t:Nw(r)})}),i.each(function(t){var e=ct(o[t],Ow)||Nw(r);o[t].push(e.slice()),i.setItemLayout(t,o[t])}))})}function Ow(t){return!isNaN(t[0])&&!isNaN(t[1])}function Nw(t){return[t.cx,t.cy]}function Rw(n){var i,t=n.polar;t&&(F(t)||(t=[t]),i=[],H(t,function(t,e){(t.indicator?(t.type&&!t.shape&&(t.shape=t.type),n.radar=n.radar||[],F(n.radar)||(n.radar=[n.radar]),n.radar):i).push(t)}),n.polar=i),H(n.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}r1(function(t){t.registerChartView(Sw),t.registerSeriesModel(Aw),nm("pie",t.registerAction),t.registerLayout(M(pw,"pie")),t.registerProcessor(dw("pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension("value"),e=n.get(e,t);return!(Y(e)&&!isNaN(e)&&e<0)})}})});u(Bw,Ew=dy),Bw.prototype.render=function(l,t,e){var n=l.coordinateSystem,h=this.group,c=l.getData(),a=this._data;function s(t,e,n,i,o,r){n.removeAll();for(var a=0;a<e.length-1;a++){var s=function(t,e){var n,i=t.getItemVisual(e,"symbol")||"circle";if("none"!==i)return n=vm(t.getItemVisual(e,"symbolSize")),i=mm(i,-1,-1,2,2),t=t.getItemVisual(e,"symbolRotate")||0,i.attr({style:{strokeNoScale:!0},z2:100,scaleX:n[0]/2,scaleY:n[1]/2,rotation:t*Math.PI/180||0}),i}(i,o);s&&(t[s.__dimIdx=a]?(s.setPosition(t[a]),_c[r?"initProps":"updateProps"](s,{x:e[a][0],y:e[a][1]},l,o)):s.setPosition(e[a]),n.add(s))}}function u(t){return B(t,function(t){return[n.cx,n.cy]})}c.diff(a).add(function(t){var e,n,i,o,r=c.getItemLayout(t);r&&(e=new Ku,n=new th,i={shape:{points:r}},e.shape.points=u(r),n.shape.points=u(r),Gh(e,i,l,t),Gh(n,i,l,t),i=new Zo,o=new Zo,i.add(n),i.add(e),i.add(o),s(n.shape.points,r,o,c,t,!0),c.setItemGraphicEl(t,i))}).update(function(t,e){var e=a.getItemGraphicEl(e),n=e.childAt(0),i=e.childAt(1),o=e.childAt(2),r={shape:{points:c.getItemLayout(t)}};r.shape.points&&(s(n.shape.points,r.shape.points,o,c,t,!1),Uh(i),Uh(n),Vh(n,r,l),Vh(i,r,l),c.setItemGraphicEl(t,e))}).remove(function(t){h.remove(a.getItemGraphicEl(t))}).execute(),c.eachItemGraphicEl(function(t,n){var i=c.getItemModel(n),e=t.childAt(0),o=t.childAt(1),r=t.childAt(2),a=c.getItemVisual(n,"style"),s=a.fill,e=(h.add(t),e.useStyle(z(i.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:s})),jl(e,i,"lineStyle"),jl(o,i,"areaStyle"),i.getModel("areaStyle")),l=e.isEmpty()&&e.parentModel.isEmpty(),e=(o.ignore=l,H(["emphasis","select","blur"],function(t){var e=i.getModel([t,"areaStyle"]),e=e.isEmpty()&&e.parentModel.isEmpty();o.ensureState(t).ignore=e&&l}),o.useStyle(z(e.getAreaStyle(),{fill:s,opacity:.7,decal:a.decal})),i.getModel("emphasis")),u=e.getModel("itemStyle").getItemStyle();r.eachChild(function(t){t instanceof Ls?(e=t.style,t.useStyle(V({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},a))):(t.useStyle(a),t.setColor(s),t.style.strokeNoScale=!0);t.ensureState("emphasis").style=y(u);var e=c.getStore().get(c.getDimensionIndex(t.__dimIdx),n);null!=e&&!isNaN(e)||(e=""),Sc(t,Mc(i),{labelFetcher:c.hostModel,labelDataIndex:n,labelDimIndex:t.__dimIdx,defaultText:e,inheritColor:s,defaultOpacity:a.opacity})}),Ul(t,e.get("focus"),e.get("blurScope"),e.get("disabled"))}),this._data=c},Bw.prototype.remove=function(){this.group.removeAll(),this._data=null},Bw.type="radar";var Ew,zw=Bw;function Bw(){var t=null!==Ew&&Ew.apply(this,arguments)||this;return t.type=Bw.type,t}u(Gw,Fw=ty),Gw.prototype.init=function(t){Fw.prototype.init.apply(this,arguments),this.legendVisualProvider=new Tw(S(this.getData,this),S(this.getRawData,this))},Gw.prototype.getInitialData=function(t,e){return Iw(this,{generateCoord:"indicator_",generateCoordCount:1/0})},Gw.prototype.formatTooltip=function(n,t,e){var i=this.getData(),o=this.coordinateSystem.getIndicatorAxes(),r=this.getData().getName(n),r=""===r?this.name:r,a=Ug(this,n);return Bg("section",{header:r,sortBlocks:!0,blocks:B(o,function(t){var e=i.get(i.mapDimension(t.dim),n);return Bg("nameValue",{markerType:"subItem",markerColor:a,name:t.name,value:e,sortParam:e})})})},Gw.prototype.getTooltipPosition=function(t){if(null!=t)for(var e,n=this.getData(),i=this.coordinateSystem,o=n.getValues(B(i.dimensions,function(t){return n.mapDimension(t)}),t),r=0,a=o.length;r<a;r++)if(!isNaN(o[r]))return e=i.getIndicatorAxes(),i.coordToPoint(e[r].dataToCoord(o[r]),r)},Gw.type="series.radar",Gw.dependencies=["radar"],Gw.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8};var Fw,Vw=Gw;function Gw(){var t=null!==Fw&&Fw.apply(this,arguments)||this;return t.type=Gw.type,t.hasSymbolVisual=!0,t}var $r={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},sm=d({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},$r),pm=d({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}}},$r),Hw={category:sm,value:pm,time:d({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},pm),log:z({logBase:10},pm)},vh=Hw.value;function Ww(t,e){return z({show:e},t)}u(Uw,Xw=g),Uw.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),i=this.get("splitNumber"),o=this.get("scale"),r=this.get("axisLine"),a=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),h=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),p=this.get("triggerEvent"),t=B(this.get("indicator")||[],function(t){null!=t.max&&0<t.max&&!t.min?t.min=0:null!=t.min&&t.min<0&&!t.max&&(t.max=0);var e=l,t=(null!=t.color&&(e=z({color:t.color},l)),d(y(t),{boundaryGap:n,splitNumber:i,scale:o,axisLine:r,axisTick:a,axisLabel:s,name:t.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:e,triggerEvent:p},!1)),e=(X(h)?(e=t.name,t.name=h.replace("{value}",null!=e?e:"")):C(h)&&(t.name=h(t.name,t)),new Zc(t,null,this.ecModel));return st(e,e1.prototype),e.mainType="radar",e.componentIndex=this.componentIndex,e},this);this._indicatorModels=t},Uw.prototype.getIndicatorModels=function(){return this._indicatorModels},Uw.type="radar",Uw.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:d({lineStyle:{color:"#bbb"}},vh.axisLine),axisLabel:Ww(vh.axisLabel,!1),axisTick:Ww(vh.axisTick,!1),splitLine:Ww(vh.splitLine,!0),splitArea:Ww(vh.splitArea,!0),indicator:[]};var Xw,Yw=Uw;function Uw(){var t=null!==Xw&&Xw.apply(this,arguments)||this;return t.type=Uw.type,t}var Zw=Math.PI,qw=(jw.prototype.hasBuilder=function(t){return!!Kw[t]},jw.prototype.add=function(t){Kw[t](this.opt,this.axisModel,this.group,this._transformGroup)},jw.prototype.getGroup=function(){return this.group},jw.innerTextLayout=function(t,e,n){var i,e=pr(e-t),t=dr(e)?(i=0<n?"top":"bottom","center"):dr(e-Zw)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<Zw?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},jw.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},jw.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},jw);function jw(t,e){this.group=new Zo,this.opt=e,this.axisModel=t,z(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});t=new Zo({x:e.position[0],y:e.position[1],rotation:e.rotation});t.updateTransform(),this._transformGroup=t}var Kw={axisLine:function(i,t,o,e){var r,a,s,l,u,h,c,n=t.get(["axisLine","show"]);(n="auto"===n&&i.handleAutoShown?i.handleAutoShown("axisLine"):n)&&(n=t.axis.getExtent(),e=e.transform,r=[n[0],0],a=[n[1],0],s=a[0]<r[0],e&&(ne(r,r,e),ne(a,a,e)),l=V({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),ac((n=new rh({shape:{x1:r[0],y1:r[1],x2:a[0],y2:a[1]},style:l,strokeContainThreshold:i.strokeContainThreshold||5,silent:!0,z2:1})).shape,n.style.lineWidth),n.anid="line",o.add(n),null!=(u=t.get(["axisLine","symbol"])))&&(e=t.get(["axisLine","symbolSize"]),X(u)&&(u=[u,u]),(X(e)||Y(e))&&(e=[e,e]),n=_m(t.get(["axisLine","symbolOffset"])||0,e),h=e[0],c=e[1],H([{rotate:i.rotation+Math.PI/2,offset:n[0],r:0},{rotate:i.rotation-Math.PI/2,offset:n[1],r:Math.sqrt((r[0]-a[0])*(r[0]-a[0])+(r[1]-a[1])*(r[1]-a[1]))}],function(t,e){var n;"none"!==u[e]&&null!=u[e]&&(e=mm(u[e],-h/2,-c/2,h,c,l.stroke,!0),n=t.r+t.offset,e.attr({rotation:t.rotate,x:(t=s?a:r)[0]+n*Math.cos(i.rotation),y:t[1]-n*Math.sin(i.rotation),silent:!0,z2:11}),o.add(e))}))},axisTickLabel:function(t,e,n,i){var o,r,a,s,l,u=function(t,e,n,i){var o=n.axis,r=n.getModel("axisTick"),a=r.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(a&&!o.scale.isBlank()){for(var a=r.getModel("lineStyle"),i=i.tickDirection*r.get("length"),s=tS(o.getTicksCoords(),e.transform,i,z(a.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)t.add(s[l]);return s}}(n,i,e,t),h=function(f,g,y,m){var v,_,x,b,w,S,M,I,T=y.axis,t=xt(m.axisLabelShow,y.get(["axisLabel","show"]));if(t&&!T.scale.isBlank())return v=y.getModel("axisLabel"),_=v.get("margin"),x=T.getViewLabels(),t=(xt(m.labelRotate,v.get("rotate"))||0)*Zw/180,b=qw.innerTextLayout(m.rotation,t,m.labelDirection),w=y.getCategories&&y.getCategories(!0),S=[],M=qw.isLabelSilent(y),I=y.get("triggerEvent"),H(x,function(t,e){var n="ordinal"===T.scale.type?T.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,i=t.formattedLabel,o=t.rawLabel,r=v,a=(r=w&&w[n]&&P(a=w[n])&&a.textStyle?new Zc(a.textStyle,v,y.ecModel):r).getTextColor()||y.get(["axisLine","lineStyle","color"]),s=T.dataToCoord(n),l=r.getShallow("align",!0)||b.textAlign,u=O(r.getShallow("alignMinLabel",!0),l),h=O(r.getShallow("alignMaxLabel",!0),l),c=r.getShallow("verticalAlign",!0)||r.getShallow("baseline",!0)||b.textVerticalAlign,p=O(r.getShallow("verticalAlignMinLabel",!0),c),d=O(r.getShallow("verticalAlignMaxLabel",!0),c),s=new Ys({x:s,y:m.labelOffset+m.labelDirection*_,rotation:b.rotation,silent:M,z2:10+(t.level||0),style:Ic(r,{text:i,align:0===e?u:e===x.length-1?h:l,verticalAlign:0===e?p:e===x.length-1?d:c,fill:C(a)?a("category"===T.type?o:"value"===T.type?n+"":n,e):a})});s.anid="label_"+n,I&&((t=qw.makeAxisEventDataBase(y)).targetType="axisLabel",t.value=o,t.tickIndex=e,"category"===T.type&&(t.dataIndex=n),D(s).eventData=t),g.add(s),s.updateTransform(),S.push(s),f.add(s),s.decomposeTransform()}),S}(n,i,e,t),c=(r=h,u=u,t1((o=e).axis)||(d=o.get(["axisLabel","showMinLabel"]),o=o.get(["axisLabel","showMaxLabel"]),u=u||[],y=(r=r||[])[0],f=r[1],a=r[r.length-1],r=r[r.length-2],s=u[0],g=u[1],l=u[u.length-1],u=u[u.length-2],!1===d?($w(y),$w(s)):Qw(y,f)&&(d?($w(f),$w(g)):($w(y),$w(s))),!1===o?($w(a),$w(l)):Qw(r,a)&&(o?($w(r),$w(u)):($w(a),$w(l)))),n),p=i,d=e,f=t.tickDirection,g=d.axis,y=d.getModel("minorTick");if(y.get("show")&&!g.scale.isBlank()){var m=g.getMinorTicksCoords();if(m.length)for(var g=y.getModel("lineStyle"),v=f*y.get("length"),_=z(g.getLineStyle(),z(d.getModel("axisTick").getLineStyle(),{stroke:d.get(["axisLine","lineStyle","color"])})),x=0;x<m.length;x++)for(var b=tS(m[x],p.transform,v,_,"minorticks_"+x),w=0;w<b.length;w++)c.add(b[w])}e.get(["axisLabel","hideOverlap"])&&ox(ex(B(h,function(t){return{label:t,priority:t.z2,defaultAttr:{ignore:t.ignore}}})))},axisName:function(t,e,n,i){var o,r,a,s,l,u,h,c,p=xt(t.axisName,e.get("name"));p&&(c=e.get("nameLocation"),l=t.nameDirection,o=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,r=(h=e.axis.getExtent())[0]>h[1]?-1:1,r=["start"===c?h[0]-r*u:"end"===c?h[1]+r*u:(h[0]+h[1])/2,Jw(c)?t.labelOffset+l*u:0],null!=(u=e.get("nameRotate"))&&(u=u*Zw/180),Jw(c)?a=qw.innerTextLayout(t.rotation,null!=u?u:t.rotation,l):(a=function(t,e,n,i){var o,n=pr(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;e=dr(n-Zw/2)?(o=i?"bottom":"top","center"):dr(n-1.5*Zw)?(o=i?"top":"bottom","center"):(o="middle",n<1.5*Zw&&Zw/2<n?i?"left":"right":i?"right":"left");return{rotation:n,textAlign:e,textVerticalAlign:o}}(t.rotation,c,u||0,h),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(a.rotation)),isFinite(s)||(s=null))),l=o.getFont(),u=(c=e.get("nameTruncate",!0)||{}).ellipsis,h=xt(t.nameTruncateMaxWidth,c.maxWidth,s),yc({el:t=new Ys({x:r[0],y:r[1],rotation:a.rotation,silent:qw.isLabelSilent(e),style:Ic(o,{text:p,font:l,overflow:"truncate",width:h,ellipsis:u,fill:o.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:o.get("align")||a.textAlign,verticalAlign:o.get("verticalAlign")||a.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((c=qw.makeAxisEventDataBase(e)).targetType="axisName",c.name=p,D(t).eventData=c),i.add(t),t.updateTransform(),n.add(t),t.decomposeTransform())}};function $w(t){t&&(t.ignore=!0)}function Qw(t,e){var n,i=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(i&&o)return Fe(n=Re([]),n,-t.rotation),i.applyTransform(ze([],n,t.getLocalTransform())),o.applyTransform(ze([],n,e.getLocalTransform())),i.intersect(o)}function Jw(t){return"middle"===t||"center"===t}function tS(t,e,n,i,o){for(var r=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord,u=(a[0]=u,s[a[1]=0]=u,s[1]=n,e&&(ne(a,a,e),ne(s,s,e)),new rh({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0}));ac(u.shape,u.style.lineWidth),u.anid=o+"_"+t[l].tickValue,r.push(u)}return r}var eS,nS=["axisLine","axisTickLabel","axisName"],iS=(u(oS,eS=ly),oS.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},oS.prototype._buildAxes=function(t){var n=t.coordinateSystem;H(B(n.getIndicatorAxes(),function(t){var e=t.model.get("showName")?t.name:"";return new qw(t.model,{axisName:e,position:[n.cx,n.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){H(nS,t.add,t),this.group.add(t.getGroup())},this)},oS.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,e=n.getIndicatorAxes();if(e.length){var i=t.get("shape"),o=t.getModel("splitLine"),t=t.getModel("splitArea"),r=o.getModel("lineStyle"),a=t.getModel("areaStyle"),s=o.get("show"),l=t.get("show"),o=r.get("color"),t=a.get("color"),u=F(o)?o:[o],h=F(t)?t:[t],c=[],p=[];if("circle"===i)for(var d=e[0].getTicksCoords(),f=n.cx,g=n.cy,y=0;y<d.length;y++)s&&c[M(c,u,y)].push(new bu({shape:{cx:f,cy:g,r:d[y].coord}})),l&&y<d.length-1&&p[M(p,h,y)].push(new Yu({shape:{cx:f,cy:g,r0:d[y].coord,r:d[y+1].coord}}));else for(var m,v=B(e,function(t,e){t=t.getTicksCoords();return m=null==m?t.length-1:Math.min(t.length-1,m),B(t,function(t){return n.coordToPoint(t.coord,e)})}),_=[],y=0;y<=m;y++){for(var x=[],b=0;b<e.length;b++)x.push(v[b][y]);x[0]&&x.push(x[0].slice()),s&&c[M(c,u,y)].push(new th({shape:{points:x}})),l&&_&&p[M(p,h,y-1)].push(new Ku({shape:{points:x.concat(_)}})),_=x.slice().reverse()}var w=r.getLineStyle(),S=a.getAreaStyle();H(p,function(t,e){this.group.add(oc(t,{style:z({stroke:"none",fill:h[e%h.length]},S),silent:!0}))},this),H(c,function(t,e){this.group.add(oc(t,{style:z({fill:"none",stroke:u[e%u.length]},w),silent:!0}))},this)}function M(t,e,n){n%=e.length;return t[n]=t[n]||[],n}},oS.type="radar",oS);function oS(){var t=null!==eS&&eS.apply(this,arguments)||this;return t.type=oS.type,t}u(sS,rS=Hc);var rS,aS=sS;function sS(t,e,n){t=rS.call(this,t,e,n)||this;return t.type="value",t.angle=0,t.name="",t}var lS=Math.log;function uS(t,e,n){var i=p_.prototype,o=i.getTicks.call(n),r=i.getTicks.call(n,!0),a=o.length-1,n=i.getInterval.call(n),e=Z_(t,e),s=e.extent,l=e.fixMin,e=e.fixMax,u=("log"===t.type&&(u=lS(t.base),s=[lS(s[0])/u,lS(s[1])/u]),t.setExtent(s[0],s[1]),t.calcNiceExtent({splitNumber:a,fixMin:l,fixMax:e}),i.getExtent.call(t)),h=(l&&(s[0]=u[0]),e&&(s[1]=u[1]),i.getInterval.call(t)),c=s[0],p=s[1];if(l&&e)h=(p-c)/a;else if(l)for(p=s[0]+h*a;p<s[1]&&isFinite(p)&&isFinite(s[1]);)h=e_(h),p=s[0]+h*a;else if(e)for(c=s[1]-h*a;c>s[0]&&isFinite(c)&&isFinite(s[0]);)h=e_(h),c=s[1]-h*a;else{u=(h=a<t.getTicks().length-1?e_(h):h)*a;(c=ar((p=Math.ceil(s[1]/h)*h)-u))<0&&0<=s[0]?(c=0,p=ar(u)):0<p&&s[1]<=0&&(p=0,c=-ar(u))}l=(o[0].value-r[0].value)/n,e=(o[a].value-r[a].value)/n;i.setExtent.call(t,c+h*l,p+h*e),i.setInterval.call(t,h),(l||e)&&i.setNiceExtent.call(t,c+h,p-h)}cS.prototype.getIndicatorAxes=function(){return this._indicatorAxes},cS.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},cS.prototype.coordToPoint=function(t,e){e=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(e),this.cy-t*Math.sin(e)]},cS.prototype.pointToData=function(t){for(var e,n=t[0]-this.cx,t=t[1]-this.cy,i=Math.sqrt(n*n+t*t),o=(n/=i,t/=i,Math.atan2(-t,n)),r=1/0,a=-1,s=0;s<this._indicatorAxes.length;s++){var l=this._indicatorAxes[s],u=Math.abs(o-l.angle);u<r&&(e=l,a=s,r=u)}return[a,+(e&&e.coordToData(i))]},cS.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),e=e.getHeight(),o=Math.min(i,e)/2,i=(this.cx=q(n[0],i),this.cy=q(n[1],e),this.startAngle=t.get("startAngle")*Math.PI/180,t.get("radius"));(X(i)||Y(i))&&(i=[0,i]),this.r0=q(i[0],o),this.r=q(i[1],o),H(this._indicatorAxes,function(t,e){t.setExtent(this.r0,this.r);e=this.startAngle+e*Math.PI*2/this._indicatorAxes.length,e=Math.atan2(Math.sin(e),Math.cos(e));t.angle=e},this)},cS.prototype.update=function(i,t){var o=this._indicatorAxes,r=this._model,e=(H(o,function(t){t.scale.setExtent(1/0,-1/0)}),i.eachSeriesByType("radar",function(t,e){var n;"radar"===t.get("coordinateSystem")&&i.getComponent("radar",t.get("radarIndex"))===r&&(n=t.getData(),H(o,function(t){t.scale.unionExtentFromData(n,n.mapDimension(t.dim))}))},this),r.get("splitNumber")),n=new p_;n.setExtent(0,e),n.setInterval(1),H(o,function(t,e){uS(t.scale,t.model,n)})},cS.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},cS.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},cS.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},cS.create=function(t,n){var i=[];return t.eachComponent("radar",function(t){var e=new cS(t,0,n);i.push(e),t.coordinateSystem=e}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},cS.dimensions=[];var hS=cS;function cS(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=B(t.getIndicatorModels(),function(t,e){var e="indicator_"+e,n=new aS(e,new p_);return n.name=t.get("name"),(n.model=t).axis=n,this.dimensions.push(e),n},this),this.resize(t,n)}function pS(t){t.registerCoordinateSystem("radar",hS),t.registerComponentModel(Yw),t.registerComponentView(iS),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(t){e.setItemVisual(t,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function dS(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,o=t.hierNode.i?i[t.hierNode.i-1]:null;if(n.length){for(var r=t.children,a=r.length,s=0,l=0;0<=--a;){var u=r[a];u.hierNode.prelim+=s,u.hierNode.modifier+=s,l+=u.hierNode.change,s+=u.hierNode.shift+l}n=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;o?(t.hierNode.prelim=o.hierNode.prelim+e(t,o),t.hierNode.modifier=t.hierNode.prelim-n):t.hierNode.prelim=n}else o&&(t.hierNode.prelim=o.hierNode.prelim+e(t,o));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var o=t,r=t,a=r.parentNode.children[0],s=e,l=o.hierNode.modifier,u=r.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=mS(s),r=vS(r),s&&r;){o=mS(o),a=vS(a),o.hierNode.ancestor=t;var p=s.hierNode.prelim+c-r.hierNode.prelim-u+i(s,r);0<p&&(!function(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}(function(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}(s,t,n),t,p),u+=p,l+=p),c+=s.hierNode.modifier,u+=r.hierNode.modifier,l+=o.hierNode.modifier,h+=a.hierNode.modifier}s&&!mS(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=c-l),r&&!vS(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=u-h,n=t)}return n}(t,o,t.parentNode.hierNode.defaultAncestor||i[0],e)}function fS(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function gS(t){return arguments.length?t:_S}function yS(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function mS(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function vS(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function _S(t,e){return t.parentNode===e.parentNode?1:2}r1(function(t){r1(pS),t.registerChartView(zw),t.registerSeriesModel(Vw),t.registerLayout(Pw),t.registerProcessor(dw("radar")),t.registerPreprocessor(Rw)});var xS,bS=ne,wS=(u(SS,xS=So),SS.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new Z(t,e,n,i),this._rect},SS.prototype.getBoundingRect=function(){return this._rect},SS.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new Z(t,e,n,i)},SS.prototype._transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=this._rawTransformable,o=(r.transform=o.calculateTransform(new Z(t,e,n,i)),r.parent);r.parent=null,r.decomposeTransform(),r.parent=o,this._updateTransform()},SS.prototype.setCenter=function(t,e){t&&(this._center=[q(t[0],e.getWidth()),q(t[1],e.getHeight())],this._updateCenterAndZoom())},SS.prototype.setZoom=function(t){t=t||1;var e=this.zoomLimit;e&&(null!=e.max&&(t=Math.min(e.max,t)),null!=e.min)&&(t=Math.max(e.min,t)),this._zoom=t,this._updateCenterAndZoom()},SS.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},SS.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},SS.prototype.getZoom=function(){return this._zoom||1},SS.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},SS.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom(),i=ne([],i,t),n=ne([],n,t);e.originX=i[0],e.originY=i[1],e.x=n[0]-i[0],e.y=n[1]-i[1],e.scaleX=e.scaleY=o,this._updateTransform()},SS.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;(e.parent=t).updateTransform(),e.updateTransform(),Ee(this.transform||(this.transform=[]),e.transform||Ne()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Ge(this.invTransform,this.transform),this.decomposeTransform()},SS.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new So;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},SS.prototype.getViewRect=function(){return this._viewRect},SS.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},SS.prototype.dataToPoint=function(t,e,n){e=e?this._rawTransform:this.transform;return n=n||[],e?bS(n,t,e):Gt(n,t)},SS.prototype.pointToData=function(t){var e=this.invTransform;return e?bS([],t,e):[t[0],t[1]]},SS.prototype.convertToPixel=function(t,e,n){e=MS(e);return e===this?e.dataToPoint(n):null},SS.prototype.convertFromPixel=function(t,e,n){e=MS(e);return e===this?e.pointToData(n):null},SS.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},SS.dimensions=["x","y"],SS);function SS(t){var e=xS.call(this)||this;return e.type="view",e.dimensions=["x","y"],e._roamTransformable=new So,e._rawTransformable=new So,e.name=t,e}function MS(t){t=t.seriesModel;return t?t.coordinateSystem:null}function IS(t,e,n){t=t.target;t.x+=e,t.y+=n,t.dirty()}function TS(t,e,n,i){var o=t.target,r=t.zoomLimit,a=t.zoom=t.zoom||1,r=(a*=e,r&&(e=r.min||0,r=r.max||1/0,a=Math.max(Math.min(r,a),e)),a/t.zoom);t.zoom=a,o.x-=(n-o.x)*(r-1),o.y-=(i-o.y)*(r-1),o.scaleX*=r,o.scaleY*=r,o.dirty()}var CS="\0_ec_interaction_mutex";function DS(t,e){return((t=t)[CS]||(t[CS]={}))[e]}ev({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},zt);u(LS,kS=ue),LS.prototype.isDragging=function(){return this._dragging},LS.prototype.isPinching=function(){return this._pinching},LS.prototype.setPointerChecker=function(t){this.pointerChecker=t},LS.prototype.dispose=function(){this.disable()},LS.prototype._mousedownHandler=function(t){if(!ke(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this.pointerChecker&&this.pointerChecker(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},LS.prototype._mousemoveHandler=function(t){var e,n,i,o,r,a;this._dragging&&NS("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!DS(this._zr,"globalPan")&&(e=t.offsetX,n=t.offsetY,r=e-(i=this._x),a=n-(o=this._y),this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&De(t.event),OS(this,"pan","moveOnMouseMove",t,{dx:r,dy:a,oldX:i,oldY:o,newX:e,newY:n,isAvailableBehavior:null}))},LS.prototype._mouseupHandler=function(t){ke(t)||(this._dragging=!1)},LS.prototype._mousewheelHandler=function(t){var e=NS("zoomOnMouseWheel",t,this._opt),n=NS("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),r=t.offsetX,a=t.offsetY;0!==i&&(e||n)&&(e&&(e=3<o?1.4:1<o?1.2:1.1,PS(this,"zoom","zoomOnMouseWheel",t,{scale:0<i?e:1/e,originX:r,originY:a,isAvailableBehavior:null})),n)&&PS(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(0<i?1:-1)*(3<(o=Math.abs(i))?.4:1<o?.15:.05),originX:r,originY:a,isAvailableBehavior:null})},LS.prototype._pinchHandler=function(t){DS(this._zr,"globalPan")||PS(this,"zoom",null,t,{scale:1<t.pinchScale?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})};var kS,AS=LS;function LS(n){var t=kS.call(this)||this,i=(t._zr=n,S(t._mousedownHandler,t)),o=S(t._mousemoveHandler,t),r=S(t._mouseupHandler,t),a=S(t._mousewheelHandler,t),s=S(t._pinchHandler,t);return t.enable=function(t,e){this.disable(),this._opt=z(y(e)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),!0!==(t=null==t?!0:t)&&"move"!==t&&"pan"!==t||(n.on("mousedown",i),n.on("mousemove",o),n.on("mouseup",r)),!0!==t&&"scale"!==t&&"zoom"!==t||(n.on("mousewheel",a),n.on("pinch",s))},t.disable=function(){n.off("mousedown",i),n.off("mousemove",o),n.off("mouseup",r),n.off("mousewheel",a),n.off("pinch",s)},t}function PS(t,e,n,i,o){t.pointerChecker&&t.pointerChecker(i,o.originX,o.originY)&&(De(i.event),OS(t,e,n,i,o))}function OS(t,e,n,i,o){o.isAvailableBehavior=S(NS,null,n,i),t.trigger(e,o)}function NS(t,e,n){n=n[t];return!t||n&&(!X(n)||e.event[n+"Key"])}var RS={axisPointer:1,tooltip:1,brush:1};function ES(t,e,n){e=e.getComponentByElement(t.topTarget),t=e&&e.coordinateSystem;return e&&e!==n&&!RS.hasOwnProperty(e.mainType)&&t&&t.model!==n}var zS,BS=function(){this.parentPoint=[],this.childPoints=[]},FS=(u(VS,zS=j),VS.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},VS.prototype.getDefaultShape=function(){return new BS},VS.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,o=e.parentPoint,r=n[0],a=n[i-1];if(1===i)t.moveTo(o[0],o[1]),t.lineTo(r[0],r[1]);else{var s=e.orient,l="TB"===s||"BT"===s?0:1,s=1-l,e=q(e.forkPosition,1),u=[];u[l]=o[l],u[s]=o[s]+(a[s]-o[s])*e,t.moveTo(o[0],o[1]),t.lineTo(u[0],u[1]),t.moveTo(r[0],r[1]),u[l]=r[l],t.lineTo(u[0],u[1]),u[l]=a[l],t.lineTo(u[0],u[1]),t.lineTo(a[0],a[1]);for(var h=1;h<i-1;h++){var c=n[h];t.moveTo(c[0],c[1]),u[l]=c[l],t.lineTo(u[0],u[1])}}},VS);function VS(t){return zS.call(this,t)||this}u(WS,GS=dy),WS.prototype.init=function(t,e){this._controller=new AS(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},WS.prototype.render=function(i,t,n){var o=i.getData(),e=i.layoutInfo,r=this._mainGroup,a=("radial"===i.get("layout")?(r.x=e.x+e.width/2,r.y=e.y+e.height/2):(r.x=e.x,r.y=e.y),this._updateViewCoordSys(i,n),this._updateController(i,t,n),this._data);o.diff(a).add(function(t){XS(o,t)&&YS(o,t,null,r,i)}).update(function(t,e){var n=a.getItemGraphicEl(e);XS(o,t)?YS(o,t,n,r,i):n&&qS(a,e,n,r,i)}).remove(function(t){var e=a.getItemGraphicEl(t);e&&qS(a,t,e,r,i)}).execute(),this._nodeScaleRatio=i.get("nodeScaleRatio"),this._updateNodeAndLinkScale(i),!0===i.get("expandAndCollapse")&&o.eachItemGraphicEl(function(t,e){t.off("click").on("click",function(){n.dispatchAction({type:"treeExpandAndCollapse",seriesId:i.id,dataIndex:e})})}),this._data=o},WS.prototype._updateViewCoordSys=function(t,e){var n=t.getData(),i=[],o=(n.each(function(t){t=n.getItemLayout(t);!t||isNaN(t.x)||isNaN(t.y)||i.push([+t.x,+t.y])}),[]),r=[],a=(Ba(i,o,r),this._min),s=this._max,a=(r[0]-o[0]==0&&(o[0]=a?a[0]:o[0]-1,r[0]=s?s[0]:r[0]+1),r[1]-o[1]==0&&(o[1]=a?a[1]:o[1]-1,r[1]=s?s[1]:r[1]+1),t.coordinateSystem=new wS);a.zoomLimit=t.get("scaleLimit"),a.setBoundingRect(o[0],o[1],r[0]-o[0],r[1]-o[1]),a.setCenter(t.get("center"),e),a.setZoom(t.get("zoom")),this.group.attr({x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY}),this._min=o,this._max=r},WS.prototype._updateController=function(o,t,r){var e=this,n=this._controller,i=this._controllerHost,a=this.group;n.setPointerChecker(function(t,e,n){var i=a.getBoundingRect();return i.applyTransform(a.transform),i.contain(e,n)&&!ES(t,r,o)}),n.enable(o.get("roam")),i.zoomLimit=o.get("scaleLimit"),i.zoom=o.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",function(t){IS(i,t.dx,t.dy),r.dispatchAction({seriesId:o.id,type:"treeRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){TS(i,t.scale,t.originX,t.originY),r.dispatchAction({seriesId:o.id,type:"treeRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),e._updateNodeAndLinkScale(o),r.updateLabelLayout()})},WS.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl(function(t,e){t.setSymbolScale(n)})},WS.prototype._getNodeGlobalScale=function(t){var e,n,t=t.coordinateSystem;return"view"!==t.type?1:(e=this._nodeScaleRatio,n=t.scaleX||1,((t.getZoom()-1)*e+1)/n)},WS.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},WS.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},WS.type="tree";var GS,HS=WS;function WS(){var t=null!==GS&&GS.apply(this,arguments)||this;return t.type=WS.type,t._mainGroup=new Zo,t}function XS(t,e){t=t.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function YS(n,t,i,e,o){var r=!i,a=n.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,l=!1===a.isExpand&&0!==a.children.length?l:"#fff",u=n.tree.root,h=a.parentNode!==u&&a.parentNode||a,c=n.getItemGraphicEl(h.dataIndex),h=h.getLayout(),c=c?{x:c.__oldX,y:c.__oldY,rawX:c.__radialOldRawX,rawY:c.__radialOldRawY}:h,p=a.getLayout(),r=(r?((i=new Mb(n,t,null,{symbolInnerColor:l,useNameLabel:!0})).x=c.x,i.y=c.y):i.updateData(n,t,null,{symbolInnerColor:l,useNameLabel:!0}),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=p.rawX,i.__radialRawY=p.rawY,e.add(i),n.setItemGraphicEl(t,i),i.__oldX=i.x,i.__oldY=i.y,Vh(i,{x:p.x,y:p.y},o),i.getSymbolPath()),r=("radial"===o.get("layout")&&(t=(l=u.children[0]).getLayout(),d=l.children.length,y=g=void 0,p.x===t.x&&!0===a.isExpand&&l.children.length?(f=(l.children[0].getLayout().x+l.children[d-1].getLayout().x)/2,l=(l.children[0].getLayout().y+l.children[d-1].getLayout().y)/2,(g=Math.atan2(l-t.y,f-t.x))<0&&(g=2*Math.PI+g),(y=f<t.x)&&(g-=Math.PI)):((g=Math.atan2(p.y-t.y,p.x-t.x))<0&&(g=2*Math.PI+g),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(y=p.x<t.x)&&(g-=Math.PI):(y=p.x>t.x)||(g-=Math.PI)),d=y?"left":"right",t=(f=(l=s.getModel("label")).get("rotate"))*(Math.PI/180),y=r.getTextContent())&&(r.setTextConfig({position:l.get("position")||d,rotation:null==f?-g:t,origin:"center"}),y.setStyle("verticalAlign","middle")),s.get(["emphasis","focus"])),l="relative"===r?Nt(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===r?a.getAncestorsIndices():"descendant"===r?a.getDescendantIndices():null,d=(l&&(D(i).focus=l),o),f=a,g=u,t=i,y=c,s=h,r=p,l=e,o=f.getModel(),u=d.get("edgeShape"),c=d.get("layout"),h=d.getOrient(),p=d.get(["lineStyle","curveness"]),e=d.get("edgeForkPosition"),m=o.getModel("lineStyle").getLineStyle(),v=t.__edge;if("curve"===u)f.parentNode&&f.parentNode!==g&&Vh(v=v||(t.__edge=new ch({shape:jS(c,h,p,y,y)})),{shape:jS(c,h,p,s,r)},d);else if("polyline"===u&&"orthogonal"===c&&f!==g&&f.children&&0!==f.children.length&&!0===f.isExpand){for(var _=f.children,x=[],b=0;b<_.length;b++){var w=_[b].getLayout();x.push([w.x,w.y])}Vh(v=v||(t.__edge=new FS({shape:{parentPoint:[r.x,r.y],childPoints:[[r.x,r.y]],orient:h,forkPosition:e}})),{shape:{parentPoint:[r.x,r.y],childPoints:x}},d)}v&&("polyline"!==u||f.isExpand)&&(v.useStyle(z({strokeNoScale:!0,fill:null},m)),jl(v,o,"lineStyle"),Al(v),l.add(v)),i.__edge&&(i.onHoverStateChange=function(t){var e;"blur"===t||(e=a.parentNode&&n.getItemGraphicEl(a.parentNode.dataIndex))&&e.hoverState===ll||Cl(i.__edge,t)})}function US(t,e,n,i,o){var r,a,s=ZS(e.tree.root,t),l=s.source,s=s.sourceLayout,t=e.getItemGraphicEl(t.dataIndex);t&&(e=e.getItemGraphicEl(l.dataIndex).__edge,r=t.__edge||(!1===l.isExpand||1===l.children.length?e:void 0),t=i.get("edgeShape"),l=i.get("layout"),e=i.get("orient"),a=i.get(["lineStyle","curveness"]),r)&&("curve"===t?Wh(r,{shape:jS(l,e,a,s,s),style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}):"polyline"===t&&"orthogonal"===i.get("layout")&&Wh(r,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}))}function ZS(t,e){for(var n,i=e.parentNode!==t&&e.parentNode||e;null==(n=i.getLayout());)i=i.parentNode!==t&&i.parentNode||i;return{source:i,sourceLayout:n}}function qS(e,t,n,i,o){var r=e.tree.getNodeByDataIndex(t),a=ZS(e.tree.root,r).sourceLayout,s={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};Wh(n,{x:a.x+1,y:a.y+1},o,{cb:function(){i.remove(n),e.setItemGraphicEl(t,null)},removeOpt:s}),n.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:s}),r.children.forEach(function(t){US(t,e,i,o,s)}),US(r,e,i,o,s)}function jS(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,f,g;return"radial"===t?(u=i.rawX,h=i.rawY,c=o.rawX,p=o.rawY,t=yS(u,h),d=yS(u,h+(p-h)*n),f=yS(c,p+(h-p)*n),g=yS(c,p),{x1:t.x||0,y1:t.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:f.x||0,cpy2:f.y||0}):(u=i.x,h=i.y,c=o.x,p=o.y,"LR"!==e&&"RL"!==e||(r=u+(c-u)*n,a=h,s=c+(u-c)*n,l=p),"TB"!==e&&"BT"!==e||(r=u,a=h+(p-h)*n,s=c,l=p+(h-p)*n),{x1:u,y1:h,x2:c,y2:p,cpx1:r,cpy1:a,cpx2:s,cpy2:l})}var KS=zr();function $S(n){var i=n.mainData,t=n.datas;t||(t={main:i},n.datasAttr={main:"data"}),n.datas=n.mainData=null,iM(i,t,n),H(t,function(e){H(i.TRANSFERABLE_METHODS,function(t){e.wrapMethod(t,M(QS,n))})}),i.wrapMethod("cloneShallow",M(tM,n)),H(i.CHANGABLE_METHODS,function(t){i.wrapMethod(t,M(JS,n))}),Mt(t[i.dataType]===i)}function QS(t,e){var n;return KS(n=this).mainData===n?iM((n=V({},KS(this).datas))[this.dataType]=e,n,t):oM(e,this.dataType,KS(this).mainData,t),e}function JS(t,e){return t.struct&&t.struct.update(),e}function tM(n,i){return H(KS(i).datas,function(t,e){t!==i&&oM(t.cloneShallow(),e,i,n)}),i}function eM(t){var e=KS(this).mainData;return null==t||null==e?e:KS(e).datas[t]}function nM(){var e=KS(this).mainData;return null==e?[{data:e}]:B(W(KS(e).datas),function(t){return{type:t,data:KS(e).datas[t]}})}function iM(n,t,i){KS(n).datas={},H(t,function(t,e){oM(t,e,n,i)})}function oM(t,e,n,i){KS(n).datas[e]=t,KS(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=eM,t.getLinkedDataAll=nM}aM.prototype.isRemoved=function(){return this.dataIndex<0},aM.prototype.eachNode=function(t,e,n){C(t)&&(n=e,e=t,t=null);var i,o=(t=X(t=t||{})?{order:t}:t).order||"preorder",r=this[t.attr||"children"];"preorder"===o&&(i=e.call(n,this));for(var a=0;!i&&a<r.length;a++)r[a].eachNode(t,e,n);"postorder"===o&&e.call(n,this)},aM.prototype.updateDepthAndHeight=function(t){var e=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>e&&(e=i.height)}this.height=e+1},aM.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].getNodeById(t);if(o)return o}},aM.prototype.contains=function(t){if(t===this)return!0;for(var e=0,n=this.children,i=n.length;e<i;e++){var o=n[e].contains(t);if(o)return o}},aM.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},aM.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},aM.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},aM.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},aM.prototype.setLayout=function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},aM.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},aM.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},aM.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},aM.prototype.setVisual=function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},aM.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},aM.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},aM.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},aM.prototype.getChildIndex=function(){if(this.parentNode)for(var t=this.parentNode.children,e=0;e<t.length;++e)if(t[e]===this)return e;return-1},aM.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},aM.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)};var rM=aM;function aM(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}lM.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},lM.prototype.getNodeByDataIndex=function(t){t=this.data.getRawIndex(t);return this._nodes[t]},lM.prototype.getNodeById=function(t){return this.root.getNodeById(t)},lM.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n<i;n++)e[n].dataIndex=-1;for(n=0,i=t.count();n<i;n++)e[t.getRawIndex(n)].dataIndex=n},lM.prototype.clearLayouts=function(){this.data.clearItemLayouts()},lM.createTree=function(t,e,n){var s=new lM(e),l=[],u=1;!function t(e,n){var i=e.value;u=Math.max(u,F(i)?i.length:1);l.push(e);var o=new rM(Pr(e.name,""),s);n?uM(o,n):s.root=o;s._nodes.push(o);var r=e.children;if(r)for(var a=0;a<r.length;a++)t(r[a],o)}(t),s.root.updateDepthAndHeight(0);t=Fv(l,{coordDimensions:["value"],dimensionsCount:u}).dimensions,t=new Bv(t,e);return t.initData(l),n&&n(t),$S({mainData:t,struct:s,structAttr:"tree"}),s.update(),s};var sM=lM;function lM(t){this.type="tree",this._nodes=[],this.hostModel=t}function uM(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}u(pM,hM=ty),pM.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Zc(n,this,this.ecModel),o=sM.createTree(e,this,function(t){t.wrapMethod("getItemModel",function(t,e){e=o.getNodeByDataIndex(e);return e&&e.children.length&&e.isExpand||(t.parentModel=i),t})});var r=0;o.eachNode("preorder",function(t){t.depth>r&&(r=t.depth)});var a=t.expandAndCollapse&&0<=t.initialTreeDepth?t.initialTreeDepth:r;return o.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),o.data},pM.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},pM.prototype.setZoom=function(t){this.option.zoom=t},pM.prototype.setCenter=function(t){this.option.center=t},pM.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,o=i.root.children[0],r=i.getNodeByDataIndex(t),i=r.getValue(),a=r.name;r&&r!==o;)a=r.parentNode.name+"."+a,r=r.parentNode;return Bg("nameValue",{name:a,value:i,noValue:isNaN(i)||null==i})},pM.prototype.getDataParams=function(t){var e=hM.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=function(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}(t,this),e.collapsed=!t.isExpand,e},pM.type="series.tree",pM.layoutMode="box",pM.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500};var hM,cM=pM;function pM(){var t=null!==hM&&hM.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}function dM(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var o=n.children;if(o.length)for(var r=o.length-1;0<=r;r--)i.push(o[r])}}function fM(t,k){t.eachSeriesByType("tree",function(t){var e=function(t,e){return Zp(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e=k),n=(t.layoutInfo=e,t.get("layout")),i=0,o=0,r=null;r="radial"===n?(i=2*Math.PI,o=Math.min(e.height,e.width)/2,gS(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(i=e.width,o=e.height,gS());var a,s,l,u,h,c,p,d,f,g=(e=t.getData().tree.root).children[0];if(g){var y=e;y.hierNode={defaultAncestor:null,ancestor:y,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var m,v,_=[y];m=_.pop();)if(v=m.children,m.isExpand&&v.length)for(var x=v.length-1;0<=x;x--){var b=v[x];b.hierNode={defaultAncestor:null,ancestor:b,prelim:0,modifier:0,change:0,shift:0,i:x,thread:null},_.push(b)}for(var w,S=dS,M=r,I=[g],T=[];w=I.pop();)if(T.push(w),w.isExpand){var C=w.children;if(C.length)for(var D=0;D<C.length;D++)I.push(C[D])}for(;w=T.pop();)S(w,M);e.hierNode.modifier=-g.hierNode.prelim,dM(g,fS),dM(l=s=a=g,function(t){var e=t.getLayout().x;e<a.getLayout().x&&(a=t),e>s.getLayout().x&&(s=t),t.depth>l.depth&&(l=t)}),e=a===s?1:r(a,s)/2,u=e-a.getLayout().x,d=p=c=h=0,"radial"===n?(h=i/(s.getLayout().x+e+u),c=o/(l.depth-1||1),dM(g,function(t){p=(t.getLayout().x+u)*h,d=(t.depth-1)*c;var e=yS(p,d);t.setLayout({x:e.x,y:e.y,rawX:p,rawY:d},!0)})):"RL"===(f=t.getOrient())||"LR"===f?(c=o/(s.getLayout().x+e+u),h=i/(l.depth-1||1),dM(g,function(t){d=(t.getLayout().x+u)*c,p="LR"===f?(t.depth-1)*h:i-(t.depth-1)*h,t.setLayout({x:p,y:d},!0)})):"TB"!==f&&"BT"!==f||(h=i/(s.getLayout().x+e+u),c=o/(l.depth-1||1),dM(g,function(t){p=(t.getLayout().x+u)*h,d="TB"===f?(t.depth-1)*c:o-(t.depth-1)*c,t.setLayout({x:p,y:d},!0)}))}})}function gM(t){t.eachSeriesByType("tree",function(t){var n=t.getData();n.tree.eachNode(function(t){var e=t.getModel().getModel("itemStyle").getItemStyle();V(n.ensureUniqueItemVisual(t.dataIndex,"style"),e)})})}function yM(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function mM(t,e,n,i){var o,r=t.getZoom(),a=t.getCenter(),s=e.zoom,a=t.projectedToPoint?t.projectedToPoint(a):t.dataToPoint(a);return null!=e.dx&&null!=e.dy&&(a[0]-=e.dx,a[1]-=e.dy,t.setCenter(yM(t,a),i)),null!=s&&(n&&(o=n.min||0,n=n.max||1/0,s=Math.max(Math.min(r*s,n),o)/r),t.scaleX*=s,t.scaleY*=s,n=(e.originX-t.x)*(s-1),o=(e.originY-t.y)*(s-1),t.x-=n,t.y-=o,t.updateTransform(),t.setCenter(yM(t,a),i),t.setZoom(s*r)),{center:t.getCenter(),zoom:t.getZoom()}}function vM(t){var r=t.findComponents({mainType:"legend"});r&&r.length&&t.eachSeriesByType("graph",function(t){var e=t.getCategoriesData(),i=t.getGraph().data,o=e.mapArray(e.getName);i.filterSelf(function(t){var e=i.getItemModel(t).getShallow("category");if(null!=e){Y(e)&&(e=o[e]);for(var n=0;n<r.length;n++)if(!r[n].isSelected(e))return!1}return!0})})}function _M(t){var h={};t.eachSeriesByType("graph",function(s){var l=s.getCategoriesData(),r=s.getData(),u={};l.each(function(t){for(var e=l.getName(t),n=(u["ec-"+e]=t,l.getItemModel(t)),i=n.getModel("itemStyle").getItemStyle(),o=(i.fill||(i.fill=s.getColorFromPalette(e,h)),l.setItemVisual(t,"style",i),["symbol","symbolSize","symbolKeepAspect"]),r=0;r<o.length;r++){var a=n.getShallow(o[r],!0);null!=a&&l.setItemVisual(t,o[r],a)}}),l.count()&&r.each(function(t){var e=r.getItemModel(t).getShallow("category");if(null!=e){X(e)&&(e=u["ec-"+e]);for(var n=l.getItemVisual(e,"style"),i=(V(r.ensureUniqueItemVisual(t,"style"),n),["symbol","symbolSize","symbolKeepAspect"]),o=0;o<i.length;o++)r.setItemVisual(t,i[o],l.getItemVisual(e,i[o]))}})})}function xM(t){return t=t instanceof Array?t:[t,t]}function bM(t){t.eachSeriesByType("graph",function(t){var s=t.getGraph(),l=t.getEdgeData(),e=xM(t.get("edgeSymbol")),n=xM(t.get("edgeSymbolSize"));l.setVisual("fromSymbol",e&&e[0]),l.setVisual("toSymbol",e&&e[1]),l.setVisual("fromSymbolSize",n&&n[0]),l.setVisual("toSymbolSize",n&&n[1]),l.setVisual("style",t.getModel("lineStyle").getLineStyle()),l.each(function(t){var e=l.getItemModel(t),n=s.getEdgeByIndex(t),i=xM(e.getShallow("symbol",!0)),o=xM(e.getShallow("symbolSize",!0)),e=e.getModel("lineStyle").getLineStyle(),r=l.ensureUniqueItemVisual(t,"style");switch(V(r,e),r.stroke){case"source":var a=n.node1.getVisual("style");r.stroke=a&&a.fill;break;case"target":a=n.node2.getVisual("style");r.stroke=a&&a.fill}i[0]&&n.setVisual("fromSymbol",i[0]),i[1]&&n.setVisual("toSymbol",i[1]),o[0]&&n.setVisual("fromSymbolSize",o[0]),o[1]&&n.setVisual("toSymbolSize",o[1])})})}r1(function(t){t.registerChartView(HS),t.registerSeriesModel(cM),t.registerLayout(fM),t.registerVisual(gM),(t=t).registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(n,t){t.eachComponent({mainType:"series",subType:"tree",query:n},function(t){var e=n.dataIndex,t=t.getData().tree.getNodeByDataIndex(e);t.isExpand=!t.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(n,t,i){t.eachComponent({mainType:"series",subType:"tree",query:n},function(t){var e=mM(t.coordinateSystem,n,void 0,i);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})})});var wM="--\x3e",SM=function(t){return t.get("autoCurveness")||null},MM=function(t,e){var n=SM(t),i=20,o=[];if(Y(n))i=n;else if(F(n))return void(t.__curvenessList=n);for(var r=(i=i<e?e:i)%2?i+2:i+3,o=[],a=0;a<r;a++)o.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=o},IM=function(t,e,n){t=[t.id,t.dataIndex].join("."),e=[e.id,e.dataIndex].join(".");return[n.uid,t,e].join(wM)},TM=function(t){t=t.split(wM);return[t[0],t[2],t[1]].join(wM)},CM=function(t,e){t=IM(t.node1,t.node2,e);return e.__edgeMap[t]},DM=function(t,e){return kM(IM(t.node1,t.node2,e),e)+kM(IM(t.node2,t.node1,e),e)},kM=function(t,e){e=e.__edgeMap;return e[t]?e[t].length:0};function AM(t,e,n,i){var o=SM(e),r=F(o);if(!o)return null;var a=CM(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=DM(t,e),t=(MM(e,u),t.lineStyle=t.lineStyle||{},IM(t.node1,t.node2,e)),h=e.__curvenessList,u=r||u%2?0:1;return a.isForward?h[u+s]:(t=TM(t),e=h[s+(t=kM(t,e))+u],i?!r||o&&0===o[0]?(t+u)%2?e:-e:((t%2?0:1)+u)%2?e:-e:h[s+t+u])}function LM(t){var e=t.coordinateSystem;e&&"view"!==e.type||((e=t.getGraph()).eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),PM(e,t))}function PM(t,r){t.eachEdge(function(t,e){var e=bt(t.getModel().get(["lineStyle","curveness"]),-AM(t,r,e,!0),0),n=Ht(t.node1.getLayout()),i=Ht(t.node2.getLayout()),o=[n,i];+e&&o.push([(n[0]+i[0])/2-(n[1]-i[1])*e,(n[1]+i[1])/2-(i[0]-n[0])*e]),t.setLayout(o)})}function OM(t,e){t.eachSeriesByType("graph",function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),o=[];H(n.dimensions,function(t){o=o.concat(i.mapDimensionsAll(t))});for(var r=0;r<i.count();r++){for(var a=[],s=!1,l=0;l<o.length;l++){var u=i.get(o[l],r);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(r,n.dataToPoint(a)):i.setItemLayout(r,[NaN,NaN])}PM(i.graph,t)}else e&&"none"!==e||LM(t)})}function NM(t){var e,n=t.coordinateSystem;return"view"!==n.type?1:(t=t.option.nodeScaleRatio,e=n.scaleX,((n.getZoom()-1)*t+1)/e)}function RM(t){t=t.getVisual("symbolSize");return+(t=t instanceof Array?(t[0]+t[1])/2:t)}var EM=Math.PI,zM=[];function BM(s,t,e,n){var i,o,l,u,r,a,h=s.coordinateSystem;h&&"view"!==h.type||(r=h.getBoundingRect(),o=(i=s.getData()).graph,l=r.width/2+r.x,u=r.height/2+r.y,r=Math.min(r.width,r.height)/2,a=i.count(),i.setLayout({cx:l,cy:u}),a&&(e&&(n=(h=h.pointToData(n))[0],h=h[1],Kt(n=[n-l,h-u],n),jt(n,n,r),e.setLayout([l+n[0],u+n[1]],!0),VM(e,s.get(["circular","rotateLabel"]),l,u)),FM[t](s,o,i,r,l,u,a),o.eachEdge(function(t,e){var n,e=bt(t.getModel().get(["lineStyle","curveness"]),AM(t,s,e),0),i=Ht(t.node1.getLayout()),o=Ht(t.node2.getLayout()),r=(i[0]+o[0])/2,a=(i[1]+o[1])/2;+e&&(n=[l*(e*=3)+r*(1-e),u*e+a*(1-e)]),t.setLayout([i,o,n])})))}var FM={value:function(t,e,n,i,o,r,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode(function(t){var e=t.getValue("value"),e=u*(l?e:1)/2;s+=e,t.setLayout([i*Math.cos(s)+o,i*Math.sin(s)+r]),s+=e})},symbolSize:function(t,e,n,i,o,r,a){var s=0,l=(zM.length=a,NM(t)),u=(e.eachNode(function(t){var e=RM(t),e=((e=isNaN(e)?2:e)<0&&(e=0),e*=l,Math.asin(e/2/i));isNaN(e)&&(e=EM/2),zM[t.dataIndex]=e,s+=2*e}),(2*EM-s)/a/2),h=0;e.eachNode(function(t){var e=u+zM[t.dataIndex];h+=e,t.getLayout()&&t.getLayout().fixed||t.setLayout([i*Math.cos(h)+o,i*Math.sin(h)+r]),h+=e})}};function VM(t,e,n,i){var o,r=t.getGraphicEl();r&&(o=t.getModel().get(["label","rotate"])||0,r=r.getSymbolPath(),e?(e=t.getLayout(),(t=Math.atan2(e[1]-i,e[0]-n))<0&&(t=2*Math.PI+t),(i=e[0]<n)&&(t-=Math.PI),r.setTextConfig({rotation:-t,position:e=i?"left":"right",origin:"center"}),V((n=r.ensureState("emphasis")).textConfig||(n.textConfig={}),{position:e})):r.setTextConfig({rotation:o*=Math.PI/180}))}function GM(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&BM(t,"symbolSize")})}var HM=Yt;function WM(t){t.eachSeriesByType("graph",function(o){var h,c,p,t,i,r,a,s,l,e,n,u,d=o.coordinateSystem;d&&"view"!==d.type||("force"===o.get("layout")?(h=o.preservedPoints||{},c=o.getGraph(),p=c.data,u=c.edgeData,e=(t=o.getModel("force")).get("initLayout"),o.preservedPoints?p.each(function(t){var e=p.getId(t);p.setItemLayout(t,h[e]||[NaN,NaN])}):e&&"none"!==e?"circular"===e&&BM(o,"value"):LM(o),i=p.getDataExtent("value"),r=u.getDataExtent("value"),e=t.get("repulsion"),n=t.get("edgeLength"),a=F(e)?e:[e,e],s=[(s=F(n)?n:[n,n])[1],s[0]],l=p.mapArray("value",function(t,e){var n=p.getItemLayout(e),t=rr(t,i,a);return{w:t=isNaN(t)?(a[0]+a[1])/2:t,rep:t,fixed:p.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),e=u.mapArray("value",function(t,e){var n=c.getEdgeByIndex(e),t=rr(t,r,s),i=(isNaN(t)&&(t=(s[0]+s[1])/2),n.getModel()),e=bt(n.getModel().get(["lineStyle","curveness"]),-AM(n,o,e,!0),0);return{n1:l[n.node1.dataIndex],n2:l[n.node2.dataIndex],d:t,curveness:e,ignoreForceLayout:i.get("ignoreForceLayout")}}),n=d.getBoundingRect(),(u=function(t,e,n){for(var d=t,f=e,i=(t=n.rect).width,o=t.height,g=[t.x+i/2,t.y+o/2],y=null==n.gravity?.1:n.gravity,r=0;r<d.length;r++){var a=d[r];a.p||(a.p=Vt(i*(Math.random()-.5)+g[0],o*(Math.random()-.5)+g[1])),a.pp=Ht(a.p),a.edges=null}var m,v,s=null==n.friction?.6:n.friction,_=s;return{warmUp:function(){_=.8*s},setFixed:function(t){d[t].fixed=!0},setUnfixed:function(t){d[t].fixed=!1},beforeStep:function(t){m=t},afterStep:function(t){v=t},step:function(t){m&&m(d,f);for(var e=[],n=d.length,i=0;i<f.length;i++){var o=f[i];o.ignoreForceLayout||(a=o.n1,Ut(e,(r=o.n2).p,a.p),l=Zt(e)-o.d,o=r.w/(a.w+r.w),isNaN(o)&&(o=0),Kt(e,e),a.fixed||HM(a.p,a.p,e,o*l*_),r.fixed)||HM(r.p,r.p,e,-(1-o)*l*_)}for(i=0;i<n;i++)(h=d[i]).fixed||(Ut(e,g,h.p),HM(h.p,h.p,e,y*_));for(i=0;i<n;i++)for(var r,a=d[i],s=i+1;s<n;s++){Ut(e,(r=d[s]).p,a.p);0===(l=Zt(e))&&(Wt(e,Math.random()-.5,Math.random()-.5),l=1);var l,u=(a.rep+r.rep)/l/l;a.fixed||HM(a.pp,a.pp,e,u),r.fixed||HM(r.pp,r.pp,e,-u)}for(var h,c=[],i=0;i<n;i++)(h=d[i]).fixed||(Ut(c,h.p,h.pp),HM(h.p,h.p,c,_),Gt(h.pp,h.p));var p=(_*=.992)<.01;v&&v(d,f,p),t&&t(p)}}}(l,e,{rect:n,gravity:t.get("gravity"),friction:t.get("friction")})).beforeStep(function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].fixed&&Gt(t[n].p,c.getNodeByIndex(n).getLayout())}),u.afterStep(function(t,e,n){for(var i=0,o=t.length;i<o;i++)t[i].fixed||c.getNodeByIndex(i).setLayout(t[i].p),h[p.getId(i)]=t[i].p;for(i=0,o=e.length;i<o;i++){var r=e[i],a=c.getEdgeByIndex(i),s=r.n1.p,l=r.n2.p,u=a.getLayout();(u=u?u.slice():[])[0]=u[0]||[],u[1]=u[1]||[],Gt(u[0],s),Gt(u[1],l),+r.curveness&&(u[2]=[(s[0]+l[0])/2-(s[1]-l[1])*r.curveness,(s[1]+l[1])/2-(l[0]-s[0])*r.curveness]),a.setLayout(u)}}),o.forceLayout=u,o.preservedPoints=h,u.step()):o.forceLayout=null)})}function XM(t,u){var h=[];return t.eachSeriesByType("graph",function(t){var e,n,i,o,r,a,s,l=t.get("coordinateSystem");l&&"view"!==l||(l=[],i=[],Ba((e=t.getData()).mapArray(function(t){t=e.getItemModel(t);return[+t.get("x"),+t.get("y")]}),l,i),i[0]-l[0]==0&&(i[0]+=1,--l[0]),i[1]-l[1]==0&&(i[1]+=1,--l[1]),n=(i[0]-l[0])/(i[1]-l[1]),a=u,s=n,s=Zp(V(t.getBoxLayoutParams(),{aspect:s}),{width:a.getWidth(),height:a.getHeight()}),isNaN(n)&&(l=[s.x,s.y],i=[s.x+s.width,s.y+s.height]),a=i[0]-l[0],n=i[1]-l[1],i=s.width,o=s.height,(r=t.coordinateSystem=new wS).zoomLimit=t.get("scaleLimit"),r.setBoundingRect(l[0],l[1],a,n),r.setViewRect(s.x,s.y,i,o),r.setCenter(t.get("center"),u),r.setZoom(t.get("zoom")),h.push(r))}),h}var YM,UM=rh.prototype,ZM=ch.prototype,qM=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function jM(){return null!==YM&&YM.apply(this,arguments)||this}function KM(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}u(jM,YM=qM);u(JM,$M=j),JM.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},JM.prototype.getDefaultShape=function(){return new qM},JM.prototype.buildPath=function(t,e){(KM(e)?UM:ZM).buildPath.call(this,t,e)},JM.prototype.pointAt=function(t){return(KM(this.shape)?UM:ZM).pointAt.call(this,t)},JM.prototype.tangentAt=function(t){var e=this.shape,e=KM(e)?[e.x2-e.x1,e.y2-e.y1]:ZM.tangentAt.call(this,t);return Kt(e,e)};var $M,QM=JM;function JM(t){t=$M.call(this,t)||this;return t.type="ec-line",t}var tI=["fromSymbol","toSymbol"];function eI(t){return"_"+t+"Type"}function nI(t,e,n){var i,o,r,a=e.getItemVisual(n,t);return a&&"none"!==a?(i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),r=e.getItemVisual(n,t+"Offset"),e=e.getItemVisual(n,t+"KeepAspect"),a+(n=vm(i))+_m(r||0,n)+(o||"")+(e||"")):a}function iI(t,e,n){var i,o,r,a=e.getItemVisual(n,t);if(a&&"none"!==a)return r=e.getItemVisual(n,t+"Size"),i=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),e=e.getItemVisual(n,t+"KeepAspect"),o=_m(o||0,n=vm(r)),(r=mm(a,-n[0]/2+o[0],-n[1]/2+o[1],n[0],n[1],null,e)).__specifiedRotation=null==i||isNaN(i)?void 0:+i*Math.PI/180||0,r.name=t,r}function oI(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;e=e[2];e?(t.cpx1=e[0],t.cpy1=e[1]):(t.cpx1=NaN,t.cpy1=NaN)}u(sI,rI=Zo),sI.prototype._createLine=function(n,i,t){var e,o=n.hostModel,r=n.getItemLayout(i),r=(r=r,oI((e=new QM({name:"line",subPixelOptimize:!0})).shape,r),e);r.shape.percent=0,Gh(r,{shape:{percent:1}},o,i),this.add(r),H(tI,function(t){var e=iI(t,n,i);this.add(e),this[eI(t)]=nI(t,n,i)},this),this._updateCommonStl(n,i,t)},sI.prototype.updateData=function(i,o,t){var e=i.hostModel,n=this.childOfName("line"),r=i.getItemLayout(o),a={shape:{}};oI(a.shape,r),Vh(n,a,e,o),H(tI,function(t){var e=nI(t,i,o),n=eI(t);this[n]!==e&&(this.remove(this.childOfName(t)),t=iI(t,i,o),this.add(t)),this[n]=e},this),this._updateCommonStl(i,o,t)},sI.prototype.getLinePath=function(){return this.childAt(0)},sI.prototype._updateCommonStl=function(n,t,e){var i=n.hostModel,r=this.childOfName("line"),o=e&&e.emphasisLineStyle,a=e&&e.blurLineStyle,s=e&&e.selectLineStyle,l=e&&e.labelStatesModels,u=e&&e.emphasisDisabled,h=e&&e.focus,c=e&&e.blurScope,p=(e&&!n.hasItemOption||(o=(f=(e=n.getItemModel(t)).getModel("emphasis")).getModel("lineStyle").getLineStyle(),a=e.getModel(["blur","lineStyle"]).getLineStyle(),s=e.getModel(["select","lineStyle"]).getLineStyle(),u=f.get("disabled"),h=f.get("focus"),c=f.get("blurScope"),l=Mc(e)),n.getItemVisual(t,"style")),d=p.stroke,f=(r.useStyle(p),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,H(tI,function(t){var e=this.childOfName(t);if(e){e.setColor(d),e.style.opacity=p.opacity;for(var n=0;n<hl.length;n++){var i=hl[n],o=r.getState(i);o&&(o=o.style||{},i=(i=e.ensureState(i)).style||(i.style={}),null!=o.stroke&&(i[e.__isEmptyBrush?"stroke":"fill"]=o.stroke),null!=o.opacity)&&(i.opacity=o.opacity)}e.markRedraw()}},this),i.getRawValue(t)),e=(Sc(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,e){return i.getFormattedLabel(t,e,n.dataType)}},inheritColor:d||"#000",defaultOpacity:p.opacity,defaultText:(null==f?n.getName(t):isFinite(f)?ar(f):f)+""}),this.getTextContent());e&&(o=l.normal,e.__align=e.style.align,e.__verticalAlign=e.style.verticalAlign,e.__position=o.get("position")||"middle",F(a=o.get("distance"))||(a=[a,a]),e.__labelDistance=a),this.setTextConfig({position:null,local:!0,inside:!1}),Ul(this,h,c,u)},sI.prototype.highlight=function(){Ol(this)},sI.prototype.downplay=function(){Nl(this)},sI.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},sI.prototype.setLinePoints=function(t){var e=this.childOfName("line");oI(e.shape,t),e.dirty()},sI.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.getTextContent();if(t||e||n&&!n.ignore){for(var i=1,o=this.parent;o;)o.scaleX&&(i/=o.scaleX),o=o.parent;var r=this.childOfName("line");if(this.__dirty||r.__dirty){var a=r.shape.percent,s=r.pointAt(0),l=r.pointAt(a),u=Ut([],l,s);if(Kt(u,u),t&&(t.setPosition(s),v(t,0),t.scaleX=t.scaleY=i*a,t.markRedraw()),e&&(e.setPosition(l),v(e,1),e.scaleX=e.scaleY=i*a,e.markRedraw()),n&&!n.ignore){n.x=n.y=0;var h=void(n.originX=n.originY=0),c=void 0,t=n.__labelDistance,p=t[0]*i,d=t[1]*i,e=a/2,f=r.tangentAt(e),t=[f[1],-f[0]],g=r.pointAt(e),y=(0<t[1]&&(t[0]=-t[0],t[1]=-t[1]),f[0]<0?-1:1),m=("start"!==n.__position&&"end"!==n.__position&&(a=-Math.atan2(f[1],f[0]),l[0]<s[0]&&(a=Math.PI+a),n.rotation=a),void 0);switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":m=-d,c="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":m=d,c="top";break;default:m=0,c="middle"}switch(n.__position){case"end":n.x=u[0]*p+l[0],n.y=u[1]*d+l[1],h=.8<u[0]?"left":u[0]<-.8?"right":"center",c=.8<u[1]?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*p+s[0],n.y=-u[1]*d+s[1],h=.8<u[0]?"right":u[0]<-.8?"left":"center",c=.8<u[1]?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=p*y+s[0],n.y=s[1]+m,h=f[0]<0?"right":"left",n.originX=-p*y,n.originY=-m;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=g[0],n.y=g[1]+m,h="center",n.originY=-m;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-p*y+l[0],n.y=l[1]+m,h=0<=f[0]?"right":"left",n.originX=p*y,n.originY=-m}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||c,align:n.__align||h})}}}function v(t,e){var n,i=t.__specifiedRotation;null==i?(n=r.tangentAt(e),t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))):t.attr("rotation",i)}};var rI,aI=sI;function sI(t,e,n){var i=rI.call(this)||this;return i._createLine(t,e,n),i}uI.prototype.updateData=function(n){var i=this,e=(this._progressiveEls=null,this.group),o=this._lineData,r=(this._lineData=n,o||e.removeAll(),hI(n));n.diff(o).add(function(t){i._doAdd(n,t,r)}).update(function(t,e){i._doUpdate(o,n,e,t,r)}).remove(function(t){e.remove(o.getItemGraphicEl(t))}).execute()},uI.prototype.updateLayout=function(){var n=this._lineData;n&&n.eachItemGraphicEl(function(t,e){t.updateLayout(n,e)},this)},uI.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=hI(t),this._lineData=null,this.group.removeAll()},uI.prototype.incrementalUpdate=function(t,e){function n(t){var e;t.isGroup||(e=t).animators&&0<e.animators.length||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i,o=t.start;o<t.end;o++)pI(e.getItemLayout(o))&&((i=new this._LineCtor(e,o,this._seriesScope)).traverse(n),this.group.add(i),e.setItemGraphicEl(o,i),this._progressiveEls.push(i))},uI.prototype.remove=function(){this.group.removeAll()},uI.prototype.eachRendered=function(t){vc(this._progressiveEls||this.group,t)},uI.prototype._doAdd=function(t,e,n){pI(t.getItemLayout(e))&&(n=new this._LineCtor(t,e,n),t.setItemGraphicEl(e,n),this.group.add(n))},uI.prototype._doUpdate=function(t,e,n,i,o){t=t.getItemGraphicEl(n);pI(e.getItemLayout(i))?(t?t.updateData(e,i,o):t=new this._LineCtor(e,i,o),e.setItemGraphicEl(i,t),this.group.add(t)):this.group.remove(t)};var lI=uI;function uI(t){this.group=new Zo,this._LineCtor=t||aI}function hI(t){var t=t.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Mc(t)}}function cI(t){return isNaN(t[0])||isNaN(t[1])}function pI(t){return t&&!cI(t[0])&&!cI(t[1])}var dI=[],fI=[],gI=[],yI=Un,mI=te,vI=Math.abs;function _I(t,e,n){for(var i,o=t[0],r=t[1],a=t[2],s=1/0,l=n*n,u=.1,h=.1;h<=.9;h+=.1)dI[0]=yI(o[0],r[0],a[0],h),dI[1]=yI(o[1],r[1],a[1],h),(d=vI(mI(dI,e)-l))<s&&(s=d,i=h);for(var c=0;c<32;c++){var p=i+u,d=(fI[0]=yI(o[0],r[0],a[0],i),fI[1]=yI(o[1],r[1],a[1],i),gI[0]=yI(o[0],r[0],a[0],p),gI[1]=yI(o[1],r[1],a[1],p),mI(fI,e)-l);if(vI(d)<.01)break;p=mI(gI,e)-l;u/=2,d<0?0<=p?i+=u:i-=u:0<=p?i-=u:i+=u}return i}function xI(t,l){var u=[],h=jn,c=[[],[],[]],p=[[],[]],d=[];l/=2,t.eachEdge(function(t,e){var n,i,o=t.getLayout(),r=t.getVisual("fromSymbol"),a=t.getVisual("toSymbol"),s=(o.__original||(o.__original=[Ht(o[0]),Ht(o[1])],o[2]&&o.__original.push(Ht(o[2]))),o.__original);null!=o[2]?(Gt(c[0],s[0]),Gt(c[1],s[2]),Gt(c[2],s[1]),r&&"none"!==r&&(i=RM(t.node1),n=_I(c,s[0],i*l),h(c[0][0],c[1][0],c[2][0],n,u),c[0][0]=u[3],c[1][0]=u[4],h(c[0][1],c[1][1],c[2][1],n,u),c[0][1]=u[3],c[1][1]=u[4]),a&&"none"!==a&&(i=RM(t.node2),n=_I(c,s[1],i*l),h(c[0][0],c[1][0],c[2][0],n,u),c[1][0]=u[1],c[2][0]=u[2],h(c[0][1],c[1][1],c[2][1],n,u),c[1][1]=u[1],c[2][1]=u[2]),Gt(o[0],c[0]),Gt(o[1],c[2]),Gt(o[2],c[1])):(Gt(p[0],s[0]),Gt(p[1],s[1]),Ut(d,p[1],p[0]),Kt(d,d),r&&"none"!==r&&(i=RM(t.node1),Yt(p[0],p[0],d,i*l)),a&&"none"!==a&&(i=RM(t.node2),Yt(p[1],p[1],d,-i*l)),Gt(o[0],p[0]),Gt(o[1],p[1]))})}function bI(t){return"view"===t.type}u(MI,wI=dy),MI.prototype.init=function(t,e){var n=new Ab,i=new lI,o=this.group;this._controller=new AS(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},MI.prototype.render=function(r,t,e){var a=this,n=r.coordinateSystem,i=(this._model=r,this._symbolDraw),o=this._lineDraw,s=this.group,l=(bI(n)&&(n={x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},this._firstRender?s.attr(n):Vh(s,n,r)),xI(r.getGraph(),NM(r)),r.getData()),s=(i.updateData(l),r.getEdgeData()),u=(o.updateData(s),this._updateNodeAndLinkScale(),this._updateController(r,t,e),clearTimeout(this._layoutTimeout),r.forceLayout),h=r.get(["force","layoutAnimation"]),c=(u&&this._startForceLayoutIteration(u,h),r.get("layout")),p=(l.graph.eachNode(function(e){var t,n=e.dataIndex,i=e.getGraphicEl(),o=e.getModel();i&&(i.off("drag").off("dragend"),(t=o.get("draggable"))&&i.on("drag",function(t){switch(c){case"force":u.warmUp(),a._layouting||a._startForceLayoutIteration(u,h),u.setFixed(n),l.setItemLayout(n,[i.x,i.y]);break;case"circular":l.setItemLayout(n,[i.x,i.y]),e.setLayout({fixed:!0},!0),BM(r,"symbolSize",e,[t.offsetX,t.offsetY]),a.updateLayout(r);break;default:l.setItemLayout(n,[i.x,i.y]),PM(r.getGraph(),r),a.updateLayout(r)}}).on("dragend",function(){u&&u.setUnfixed(n)}),i.setDraggable(t,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"]))&&(D(i).focus=e.getAdjacentDataIndices())}),l.graph.eachEdge(function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(D(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}),"circular"===r.get("layout")&&r.get(["circular","rotateLabel"])),d=l.getLayout("cx"),f=l.getLayout("cy");l.graph.eachNode(function(t){VM(t,p,d,f)}),this._firstRender=!1},MI.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},MI.prototype._startForceLayoutIteration=function(t,n){var i=this;!function e(){t.step(function(t){i.updateLayout(i._model),(i._layouting=!t)&&(n?i._layoutTimeout=setTimeout(e,16):e())})}()},MI.prototype._updateController=function(o,t,r){var e=this,n=this._controller,i=this._controllerHost,a=this.group;n.setPointerChecker(function(t,e,n){var i=a.getBoundingRect();return i.applyTransform(a.transform),i.contain(e,n)&&!ES(t,r,o)}),bI(o.coordinateSystem)?(n.enable(o.get("roam")),i.zoomLimit=o.get("scaleLimit"),i.zoom=o.coordinateSystem.getZoom(),n.off("pan").off("zoom").on("pan",function(t){IS(i,t.dx,t.dy),r.dispatchAction({seriesId:o.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){TS(i,t.scale,t.originX,t.originY),r.dispatchAction({seriesId:o.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),e._updateNodeAndLinkScale(),xI(o.getGraph(),NM(o)),e._lineDraw.updateLayout(),r.updateLabelLayout()})):n.disable()},MI.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=NM(t);e.eachItemGraphicEl(function(t,e){t&&t.setSymbolScale(n)})},MI.prototype.updateLayout=function(t){xI(t.getGraph(),NM(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},MI.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},MI.type="graph";var wI,SI=MI;function MI(){var t=null!==wI&&wI.apply(this,arguments)||this;return t.type=MI.type,t}function II(t){return"_EC_"+t}CI.prototype.isDirected=function(){return this._directed},CI.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[II(t)])return((e=new DI(t,e)).hostGraph=this).nodes.push(e),n[II(t)]=e},CI.prototype.getNodeByIndex=function(t){t=this.data.getRawIndex(t);return this.nodes[t]},CI.prototype.getNodeById=function(t){return this._nodesMap[II(t)]},CI.prototype.addEdge=function(t,e,n){var i=this._nodesMap,o=this._edgesMap;if(Y(t)&&(t=this.nodes[t]),Y(e)&&(e=this.nodes[e]),t instanceof DI||(t=i[II(t)]),e instanceof DI||(e=i[II(e)]),t&&e)return i=t.id+"-"+e.id,((n=new AI(t,e,n)).hostGraph=this)._directed&&(t.outEdges.push(n),e.inEdges.push(n)),t.edges.push(n),t!==e&&e.edges.push(n),this.edges.push(n),o[i]=n},CI.prototype.getEdgeByIndex=function(t){t=this.edgeData.getRawIndex(t);return this.edges[t]},CI.prototype.getEdge=function(t,e){t instanceof DI&&(t=t.id),e instanceof DI&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},CI.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,o=0;o<i;o++)0<=n[o].dataIndex&&t.call(e,n[o],o)},CI.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,o=0;o<i;o++)0<=n[o].dataIndex&&0<=n[o].node1.dataIndex&&0<=n[o].node2.dataIndex&&t.call(e,n[o],o)},CI.prototype.breadthFirstTraverse=function(t,e,n,i){if(e=e instanceof DI?e:this._nodesMap[II(e)]){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",r=0;r<this.nodes.length;r++)this.nodes[r].__visited=!1;if(!t.call(i,e,null))for(var a=[e];a.length;)for(var s=a.shift(),l=s[o],r=0;r<l.length;r++){var u=l[r],u=u.node1===s?u.node2:u.node1;if(!u.__visited){if(t.call(i,u,s))return;a.push(u),u.__visited=!0}}}},CI.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,o=0,r=n.length;o<r;o++)n[o].dataIndex=-1;for(o=0,r=t.count();o<r;o++)n[t.getRawIndex(o)].dataIndex=o;e.filterSelf(function(t){t=i[e.getRawIndex(t)];return 0<=t.node1.dataIndex&&0<=t.node2.dataIndex});for(o=0,r=i.length;o<r;o++)i[o].dataIndex=-1;for(o=0,r=e.count();o<r;o++)i[e.getRawIndex(o)].dataIndex=o},CI.prototype.clone=function(){for(var t=new CI(this._directed),e=this.nodes,n=this.edges,i=0;i<e.length;i++)t.addNode(e[i].id,e[i].dataIndex);for(i=0;i<n.length;i++){var o=n[i];t.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return t};var TI=CI;function CI(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}kI.prototype.degree=function(){return this.edges.length},kI.prototype.inDegree=function(){return this.inEdges.length},kI.prototype.outDegree=function(){return this.outEdges.length},kI.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},kI.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},e=0;e<this.edges.length;e++){var n=this.edges[e];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},kI.prototype.getTrajectoryDataIndices=function(){for(var t=N(),e=N(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var o=[i.node1],r=[i.node2],a=0;a<o.length;){var s=o[a];a++,e.set(s.dataIndex,!0);for(var l=0;l<s.inEdges.length;l++)t.set(s.inEdges[l].dataIndex,!0),o.push(s.inEdges[l].node1)}for(a=0;a<r.length;){var u=r[a];a++,e.set(u.dataIndex,!0);for(l=0;l<u.outEdges.length;l++)t.set(u.outEdges[l].dataIndex,!0),r.push(u.outEdges[l].node2)}}}return{edge:t.keys(),node:e.keys()}};var DI=kI;function kI(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}LI.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},LI.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},LI.prototype.getTrajectoryDataIndices=function(){for(var t=N(),e=N(),n=(t.set(this.dataIndex,!0),[this.node1]),i=[this.node2],o=0;o<n.length;){var r=n[o];o++,e.set(r.dataIndex,!0);for(var a=0;a<r.inEdges.length;a++)t.set(r.inEdges[a].dataIndex,!0),n.push(r.inEdges[a].node1)}for(o=0;o<i.length;){var s=i[o];o++,e.set(s.dataIndex,!0);for(a=0;a<s.outEdges.length;a++)t.set(s.outEdges[a].dataIndex,!0),i.push(s.outEdges[a].node2)}return{edge:t.keys(),node:e.keys()}};var AI=LI;function LI(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}function PI(n,i){return{getValue:function(t){var e=this[n][i];return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,e){0<=this.dataIndex&&this[n][i].setItemVisual(this.dataIndex,t,e)},getVisual:function(t){return this[n][i].getItemVisual(this.dataIndex,t)},setLayout:function(t,e){0<=this.dataIndex&&this[n][i].setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this[n][i].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][i].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][i].getRawIndex(this.dataIndex)}}}st(DI,PI("hostGraph","data")),st(AI,PI("hostGraph","edgeData"));u(RI,OI=ty),RI.prototype.init=function(t){OI.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new Tw(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},RI.prototype.mergeOption=function(t){OI.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},RI.prototype.mergeDefaultAndTheme=function(t){OI.prototype.mergeDefaultAndTheme.apply(this,arguments),Tr(t,"edgeLabel",["show"])},RI.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],t=t.data||t.nodes||[],r=this;if(t&&i)return SM(n=this)&&(n.__curvenessList=[],n.__edgeMap={},MM(n)),H((n=function(t,e,n,i,o){for(var r=new TI(i),a=0;a<t.length;a++)r.addNode(xt(t[a].id,t[a].name,a),a);for(var s,l=[],u=[],h=0,a=0;a<e.length;a++){var c=e[a],p=c.source,d=c.target;r.addEdge(p,d,h)&&(u.push(c),l.push(xt(Pr(c.id,null),p+" > "+d)),h++)}return"cartesian2d"===(i=n.get("coordinateSystem"))||"polar"===i?s=Uv(t,n):(G(i=(i=Vd.get(i))&&i.dimensions||[],"value")<0&&i.concat(["value"]),i=Fv(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(s=new Bv(i,n)).initData(t)),(i=new Bv(["value"],n)).initData(u,l),o&&o(s,i),$S({mainData:s,struct:r,structAttr:"graph",datas:{node:s,edge:i},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}(t,i,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=Zc.prototype.getModel;function i(t,e){t=n.call(this,t,e);return t.resolveParentPath=o,t}function o(t){var e;return!t||"label"!==t[0]&&"label"!==t[1]?t:(e=t.slice(),"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e)}e.wrapMethod("getItemModel",function(t){return t.resolveParentPath=o,t.getModel=i,t})})).edges,function(t){var e,n,i;e=t.node1,n=t.node2,i=this,t=t.dataIndex,SM(i)&&(e=IM(e,n,i),i=(n=i.__edgeMap)[TM(e)],n[e]&&!i?n[e].isForward=!0:i&&n[e]&&(i.isForward=!0,n[e].isForward=!1),n[e]=n[e]||[],n[e].push(t))},this),n.data},RI.prototype.getGraph=function(){return this.getData().graph},RI.prototype.getEdgeData=function(){return this.getGraph().edgeData},RI.prototype.getCategoriesData=function(){return this._categoriesData},RI.prototype.formatTooltip=function(t,e,n){var i,o,r;return"edge"===n?(o=this.getData(),n=this.getDataParams(t,n),r=o.graph.getEdgeByIndex(t),i=o.getName(r.node1.dataIndex),o=o.getName(r.node2.dataIndex),r=[],null!=i&&r.push(i),null!=o&&r.push(o),Bg("nameValue",{name:r.join(" > "),value:n.value,noValue:null==n.value})):Kg({series:this,dataIndex:t,multipleSeries:e})},RI.prototype._updateCategoriesData=function(){var t=B(this.option.categories||[],function(t){return null!=t.value?t:V({value:0},t)}),e=new Bv(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},RI.prototype.setZoom=function(t){this.option.zoom=t},RI.prototype.setCenter=function(t){this.option.center=t},RI.prototype.isAnimationEnabled=function(){return OI.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},RI.type="series.graph",RI.dependencies=["grid","polar","geo","singleAxis","calendar"],RI.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}};var OI,NI=RI;function RI(){var t=null!==OI&&OI.apply(this,arguments)||this;return t.type=RI.type,t.hasSymbolVisual=!0,t}var EI={type:"graphRoam",event:"graphRoam",update:"none"};r1(function(t){t.registerChartView(SI),t.registerSeriesModel(NI),t.registerProcessor(vM),t.registerVisual(_M),t.registerVisual(bM),t.registerLayout(OM),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,GM),t.registerLayout(WM),t.registerCoordinateSystem("graphView",{dimensions:wS.dimensions,create:XM}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},zt),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},zt),t.registerAction(EI,function(n,t,i){t.eachComponent({mainType:"series",query:n},function(t){var e=mM(t.coordinateSystem,n,void 0,i);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})})});var zI,BI={color:"fill",borderColor:"stroke"},FI={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},VI=zr(),GI=(u(HI,zI=ty),HI.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},HI.prototype.getInitialData=function(t,e){return Uv(null,this)},HI.prototype.getDataParams=function(t,e,n){t=zI.prototype.getDataParams.call(this,t,e);return n&&(t.info=VI(n).info),t},HI.type="series.custom",HI.dependencies=["grid","polar","geo","singleAxis","calendar"],HI.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},HI);function HI(){var t=null!==zI&&zI.apply(this,arguments)||this;return t.type=HI.type,t}function WI(i,o){return o=o||[0,0],B(["x","y"],function(t,e){var t=this.getAxis(t),n=o[e],e=i[e]/2;return"category"===t.type?t.getBandWidth():Math.abs(t.dataToCoord(n-e)-t.dataToCoord(n+e))},this)}function XI(r,a){return a=a||[0,0],B([0,1],function(t){var e=a[t],n=r[t]/2,i=[],o=[];return i[t]=e-n,o[t]=e+n,i[1-t]=o[1-t]=a[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function YI(t,e){var n=this.getAxis(),e=e instanceof Array?e[0]:e,t=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(e-t)-n.dataToCoord(e+t))}function UI(o,r){return r=r||[0,0],B(["Radius","Angle"],function(t,e){var n=this["get"+t+"Axis"](),i=r[e],e=o[e]/2,n="category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-e)-n.dataToCoord(i+e));return n="Angle"===t?n*Math.PI/180:n},this)}function ZI(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||U(t,"text")))}function qI(t,e,n){var i,o,r,a=t;return"text"===e?i=a:(i={},U(a,"text")&&(i.text=a.text),U(a,"rich")&&(i.rich=a.rich),U(a,"textFill")&&(i.fill=a.textFill),U(a,"textStroke")&&(i.stroke=a.textStroke),U(a,"fontFamily")&&(i.fontFamily=a.fontFamily),U(a,"fontSize")&&(i.fontSize=a.fontSize),U(a,"fontStyle")&&(i.fontStyle=a.fontStyle),U(a,"fontWeight")&&(i.fontWeight=a.fontWeight),o={type:"text",style:i,silent:!0},r={},e=U(a,"textPosition"),n?r.position=e?a.textPosition:"inside":e&&(r.position=a.textPosition),U(a,"textPosition")&&(r.position=a.textPosition),U(a,"textOffset")&&(r.offset=a.textOffset),U(a,"textRotation")&&(r.rotation=a.textRotation),U(a,"textDistance")&&(r.distance=a.textDistance)),jI(i,t),H(i.rich,function(t){jI(t,t)}),{textConfig:r,textContent:o}}function jI(t,e){e&&(e.font=e.textFont||e.font,U(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),U(e,"textAlign")&&(t.align=e.textAlign),U(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),U(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),U(e,"textWidth")&&(t.width=e.textWidth),U(e,"textHeight")&&(t.height=e.textHeight),U(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),U(e,"textPadding")&&(t.padding=e.textPadding),U(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),U(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),U(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),U(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),U(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),U(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),U(e,"textBoxShadowOffsetY"))&&(t.shadowOffsetY=e.textBoxShadowOffsetY)}function KI(t,e,n){var i=t,o=(i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance),0<=i.textPosition.indexOf("inside")),r=t.fill||"#000",a=($I(i,e),null==i.textFill);return o?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),i.textStroke||(i.textStroke=r),null==i.textStrokeWidth)&&(i.textStrokeWidth=2):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,H(e.rich,function(t){$I(t,t)}),i}function $I(t,e){e&&(U(e,"fill")&&(t.textFill=e.fill),U(e,"stroke")&&(t.textStroke=e.fill),U(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),U(e,"font")&&(t.font=e.font),U(e,"fontStyle")&&(t.fontStyle=e.fontStyle),U(e,"fontWeight")&&(t.fontWeight=e.fontWeight),U(e,"fontSize")&&(t.fontSize=e.fontSize),U(e,"fontFamily")&&(t.fontFamily=e.fontFamily),U(e,"align")&&(t.textAlign=e.align),U(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),U(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),U(e,"width")&&(t.textWidth=e.width),U(e,"height")&&(t.textHeight=e.height),U(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),U(e,"padding")&&(t.textPadding=e.padding),U(e,"borderColor")&&(t.textBorderColor=e.borderColor),U(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),U(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),U(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),U(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),U(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),U(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),U(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),U(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),U(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),U(e,"textShadowOffsetY"))&&(t.textShadowOffsetY=e.textShadowOffsetY)}var QI={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},JI=W(QI),tT=(ut(Io,function(t,e){return t[e]=1,t},{}),Io.join(", "),["","style","shape","extra"]),eT=zr();function nT(t,e,n,i,o){var r=t+"Animation",i=Bh(t,i,o)||{},o=eT(e).userDuring;return 0<i.duration&&(i.during=o?S(uT,{el:e,userDuring:o}):null,i.setToFinal=!0,i.scope=t),V(i,n[r]),i}function iT(t,n,e,i){for(var o,r=(i=i||{}).dataIndex,a=i.isInit,i=i.clearStyle,s=e.isAnimationEnabled(),l=eT(t),u=n.style,l=(l.userDuring=n.during,{}),h={},c=n,p=h,d=0;d<JI.length;d++){var f=JI[d],g=QI[f],f=c[f];f&&(p[g[0]]=f[0],p[g[1]]=f[1])}for(d=0;d<Io.length;d++){var y=Io[d];null!=c[y]&&(p[y]=c[y])}if(cT("shape",n,h),cT("extra",n,h),!a&&s){for(var E=t,m=n,z=l,v=aT(m=n.transition)?Io:Ir(m||[]),_=0;_<v.length;_++){var x,b=v[_];"style"!==b&&"shape"!==b&&"extra"!==b&&(x=E[b],z[b]=x)}hT("shape",t,n,l),hT("extra",t,n,l);var m=t,w=n,S=u,M=l;if(S){var I,T=m.style;if(T){var C=S.transition,w=w.transition;if(C&&!aT(C)){var D=Ir(C);I=I||(M.style={});for(var k=0;k<D.length;k++){var A=D[k],L=T[A];I[A]=L}}else if(m.getAnimationStyleProps&&(aT(w)||aT(C)||0<=G(w,"style"))){var C=m.getAnimationStyleProps(),P=C?C.style:null;if(P){I=I||(M.style={});for(var O=W(S),k=0;k<O.length;k++){A=O[k];P[A]&&(L=T[A],I[A]=L)}}}}}}h.style=u;var N=t,w=h,m=i,C=w.style;if(!N.isGroup&&C){if(m){N.useStyle({});for(var B=N.animators,R=0;R<B.length;R++){var F=B[R];"style"===F.targetName&&F.changeTarget(N.style)}}N.setStyle(C)}w&&(w.style=null,w&&N.attr(w),w.style=C);M=t,S=n;U(S,"silent")&&(M.silent=S.silent),U(S,"ignore")&&(M.ignore=S.ignore),M instanceof Ta&&U(S,"invisible")&&(M.invisible=S.invisible),M instanceof j&&U(S,"autoBatch")&&(M.autoBatch=S.autoBatch),s&&(a?(o={},H(tT,function(t){var e=t?n[t]:n;e&&e.enterFrom&&(t&&(o[t]=o[t]||{}),V(t?o[t]:o,e.enterFrom))}),0<(h=nT("enter",t,n,e,r)).duration&&t.animateFrom(o,h)):(i=t,s=n,a=r||0,h=e,(r=l)&&0<(s=nT("update",i,s,h,a)).duration&&i.animateFrom(r,s))),oT(t,n),u?t.dirty():t.markRedraw()}function oT(t,e){for(var n=eT(t).leaveToProps,i=0;i<tT.length;i++){var o=tT[i],r=o?e[o]:e;r&&r.leaveTo&&(n=n||(eT(t).leaveToProps={}),o&&(n[o]=n[o]||{}),V(o?n[o]:n,r.leaveTo))}}function rT(t,e,n,i){var o,r;t&&(o=t.parent,(r=eT(t).leaveToProps)?((e=nT("update",t,e,n,0)).done=function(){o.remove(t),i&&i()},t.animateTo(r,e)):(o.remove(t),i&&i()))}function aT(t){return"all"===t}var sT={},lT={setTransform:function(t,e){return sT.el[t]=e,this},getTransform:function(t){return sT.el[t]},setShape:function(t,e){var n=sT.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=sT.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=sT.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle)&&n.dirtyStyle(),this},getStyle:function(t){var e=sT.el.style;if(e)return e[t]},setExtra:function(t,e){return(sT.el.extra||(sT.el.extra={}))[t]=e,this},getExtra:function(t){var e=sT.el.extra;if(e)return e[t]}};function uT(){var t,e=this.el;e&&(eT(e).userDuring!==(t=this.userDuring)?this.el=this.userDuring=null:(sT.el=e,t(lT)))}function hT(t,e,n,i){var o=n[t];if(o){var r,a,s=e[t];if(s){e=n.transition,n=o.transition;if(n)if(c=c||(i[t]={}),aT(n))V(c,s);else for(var l=Ir(n),u=0;u<l.length;u++){var h=s[d=l[u]];c[d]=h}else if(aT(e)||0<=G(e,t))for(var c=c||(i[t]={}),p=W(s),u=0;u<p.length;u++){var d,h=s[d=p[u]];r=o[d],a=h,(lt(r)?r!==a:null!=r&&isFinite(r))&&(c[d]=h)}}}}function cT(t,e,n){var i=e[t];if(i)for(var o=n[t]={},r=W(i),a=0;a<r.length;a++){var s=r[a];o[s]=Ni(i[s])}}var pT=zr(),dT=["percent","easing","shape","style","extra"];function fT(t){t.stopAnimation("keyframe"),t.attr(pT(t))}function gT(l,u,e){var t,n,h,c;e.isAnimationEnabled()&&u&&(F(u)?H(u,function(t){gT(l,t,e)}):(t=u.keyframes,h=u.duration,e&&null==h&&(n=Bh("enter",e,0),h=n&&n.duration),t&&h&&(c=pT(l),H(tT,function(a){var s;a&&!l[a]||(t.sort(function(t,e){return t.percent-e.percent}),H(t,function(t){var e=l.animators,n=a?t[a]:t;if(n){var i=W(n);if((i=a?i:ht(i,function(t){return G(dT,t)<0})).length){s||((s=l.animate(a,u.loop,!0)).scope="keyframe");for(var o=0;o<e.length;o++)e[o]!==s&&e[o].targetName===s.targetName&&e[o].stopTracks(i);a&&(c[a]=c[a]||{});var r=a?c[a]:c;H(i,function(t){r[t]=((a?l[a]:l)||{})[t]}),s.whenWithKeys(h*t.percent,n,i,t.easing)}}}),s&&s.delay(u.delay||0).duration(h).start(u.easing))}))))}var yT="emphasis",mT="normal",e="blur",Rh="select",vT=[mT,yT,e,Rh],_T={normal:["itemStyle"],emphasis:[yT,"itemStyle"],blur:[e,"itemStyle"],select:[Rh,"itemStyle"]},xT={normal:["label"],emphasis:[yT,"label"],blur:[e,"label"],select:[Rh,"label"]},bT=["x","y"],wT="e\0\0",ST={normal:{},emphasis:{},blur:{},select:{}},MT={cartesian2d:function(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:S(WI,e)}}},geo:function(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:S(XI,e)}}},single:function(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:S(YI,e)}}},polar:function(i){var o=i.getRadiusAxis(),r=i.getAngleAxis(),t=o.getExtent();return t[0]>t[1]&&t.reverse(),{coordSys:{type:"polar",cx:i.cx,cy:i.cy,r:t[1],r0:t[0]},api:{coord:function(t){var e=o.dataToRadius(t[0]),t=r.dataToAngle(t[1]),n=i.coordToPoint([e,t]);return n.push(e,t*Math.PI/180),n},size:S(UI,i)}}},calendar:function(n){var t=n.getRect(),e=n.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:n.getCellWidth(),cellHeight:n.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(t,e){return n.dataToPoint(t,e)}}}}};function IT(t){return t instanceof j}function TT(t){return t instanceof Ta}u(kT,CT=dy),kT.prototype.render=function(n,t,i,o){this._progressiveEls=null;var r=this._data,a=n.getData(),s=this.group,l=NT(n,a,t,i),t=(r||s.removeAll(),a.diff(r).add(function(t){RT(i,null,t,l(t,o),n,s,a)}).remove(function(t){t=r.getItemGraphicEl(t);t&&rT(t,VI(t).option,n)}).update(function(t,e){e=r.getItemGraphicEl(e);RT(i,e,t,l(t,o),n,s,a)}).execute(),n.get("clip",!0)?Gx(n.coordinateSystem,!1,n):null);t?s.setClipPath(t):s.removeClipPath(),this._data=a},kT.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},kT.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=NT(e,r,n,i),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u<t.end;u++){var h=RT(null,null,u,a(u,o),e,this.group,r);h&&(h.traverse(l),s.push(h))}},kT.prototype.eachRendered=function(t){vc(this._progressiveEls||this.group,t)},kT.prototype.filterForExposedEvent=function(t,e,n,i){var o=e.element;if(null==o||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},kT.type="custom";var CT,DT=kT;function kT(){var t=null!==CT&&CT.apply(this,arguments)||this;return t.type=kT.type,t}function AT(t){var e=t.type;if("path"===e){var n=t.shape,i=null!=n.width&&null!=n.height?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,o=XT(n),i=ec(o,null,i,n.layout||"center");VI(i).customPathData=o}else if("image"===e)i=new Ls({}),VI(i).customImagePath=t.style.image;else if("text"===e)i=new Ys({});else if("group"===e)i=new Zo;else{if("compoundPath"===e)throw new Error('"compoundPath" is not supported yet.');n=tc(e);n||f(""),i=new n}return VI(i).customGraphicType=e,i.name=t.name,i.z2EmphasisLift=1,i.z2SelectLift=1,i}function LT(t,e,n,i,o,r,a){fT(e);var s,l,o=o&&o.normal.cfg,o=(o&&e.setTextConfig(o),i&&null==i.transition&&(i.transition=bT),i&&i.style);o&&(l=void("text"===e.type&&(U(l=o,"textFill")&&(l.fill=l.textFill),U(l,"textStroke"))&&(l.stroke=l.textStroke)),s=IT(e)?o.decal:null,t&&s&&(s.dirty=!0,l=qm(s,t)),o.__decalPattern=l),TT(e)&&o&&(l=o.__decalPattern)&&(o.decal=l),iT(e,i,r,{dataIndex:n,isInit:a,clearStyle:!0}),gT(e,i.keyframeAnimation,r)}function PT(t,e,n,i,o){var r,e=e.isGroup?null:e,o=o&&o[t].cfg;e&&(r=e.ensureState(t),!1===i?(t=e.getState(t))&&(t.style=null):r.style=i||null,o&&(r.textConfig=o),Al(e))}function OT(t,e,n){if(!t.isGroup){var i=t,t=n.currentZ,n=n.currentZLevel,t=(i.z=t,i.zlevel=n,e.z2);null!=t&&(i.z2=t||0);for(var o,r,a,s,l=0;l<vT.length;l++)o=i,r=e,a=vT[l],s=void 0,null!=(r=(r=(s=a===mT)?r:FT(r,a))?r.z2:null)&&((s?o:o.ensureState(a)).z2=r||0)}}function NT(a,s,e,t){for(var i,o,l,n,r=a.get("renderItem"),u=a.coordinateSystem,h={},c=(u&&(h=u.prepareCustoms?u.prepareCustoms(u):MT[u.type](u)),z({getWidth:t.getWidth,getHeight:t.getHeight,getZr:t.getZr,getDevicePixelRatio:t.getDevicePixelRatio,value:function(t,e){return null==e&&(e=l),s.getStore().get(s.getDimensionIndex(t||0),e)},style:function(t,e){null==e&&(e=l);var n=s.getItemVisual(e,"style"),i=n&&n.fill,n=n&&n.opacity,o=x(e,mT).getItemStyle(),n=(null!=i&&(o.fill=i),null!=n&&(o.opacity=n),{inheritColor:X(i)?i:"#000"}),i=b(e,mT),r=Ic(i,null,n,!1,!0),e=(r.text=i.getShallow("show")?O(a.getFormattedLabel(e,mT),Zx(s,e)):null,Tc(i,n,!1));return S(t,o),o=KI(o,r,e),t&&w(o,t),o.legacy=!0,o},ordinalRawValue:function(t,e){null==e&&(e=l),t=t||0;var n,i=s.getDimensionInfo(t);return i?(n=s.get(i.name,e),(i=i&&i.ordinalMeta)?i.categories[n]:n):0<=(i=s.getDimensionIndex(t))?s.getStore().get(i,e):void 0},styleEmphasis:function(t,e){var n=x(e=null==e?l:e,yT).getItemStyle(),i=b(e,yT),o=Ic(i,null,null,!0,!0),e=(o.text=i.getShallow("show")?bt(a.getFormattedLabel(e,yT),a.getFormattedLabel(e,mT),Zx(s,e)):null,Tc(i,null,!0));return S(t,n),n=KI(n,o,e),t&&w(n,t),n.legacy=!0,n},visual:function(t,e){{var n;if(null==e&&(e=l),U(BI,t))return(n=s.getItemVisual(e,"style"))?n[BI[t]]:null}if(U(FI,t))return s.getItemVisual(e,t)},barLayout:function(t){if("cartesian2d"===u.type)return function(t){var e=[],n=t.axis;if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<t.count;o++)e.push(z({bandWidth:i,axisKey:"axis0",stackId:m_+o},t));for(var r=w_(e),a=[],o=0;o<t.count;o++){var s=r.axis0[m_+o];s.offsetCenter=s.offset+s.width/2,a.push(s)}return a}}(z({axis:u.getBaseAxis()},t))},currentSeriesIndices:function(){return e.getCurrentSeriesIndices()},font:function(t){return Lc(t,e)}},h.api||{})),p={context:{},seriesId:a.id,seriesName:a.name,seriesIndex:a.seriesIndex,coordSys:h.coordSys,dataInsideLength:s.count(),encode:(i=a.getData(),o={},H(i.dimensions,function(t){var e,n=i.getDimensionInfo(t);n.isExtraCoord||(e=n.coordDim,(o[e]=o[e]||[])[n.coordDimIndex]=i.getDimensionIndex(t))}),o)},d={},f={},g={},y={},m=0;m<vT.length;m++){var v=vT[m];g[v]=a.getModel(_T[v]),y[v]=a.getModel(xT[v])}function _(t){return t===l?n=n||s.getItemModel(t):s.getItemModel(t)}function x(t,e){return s.hasItemOption?t===l?d[e]||(d[e]=_(t).getModel(_T[e])):_(t).getModel(_T[e]):g[e]}function b(t,e){return s.hasItemOption?t===l?f[e]||(f[e]=_(t).getModel(xT[e])):_(t).getModel(xT[e]):y[e]}return function(t,e){return l=t,n=null,d={},f={},r&&r(z({dataIndexInside:t,dataIndex:s.getRawIndex(t),actionType:e?e.type:null},p),c)};function w(t,e){for(var n in e)U(e,n)&&(t[n]=e[n])}function S(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition)&&(e.textPosition=t.textPosition)}}function RT(t,e,n,i,o,r,a){if(i)return(t=ET(t,e,n,i,o,r))&&a.setItemGraphicEl(n,t),t&&Ul(t,i.focus,i.blurScope,i.emphasisDisabled),t;r.remove(e)}function ET(t,e,n,i,o,r){var a=-1,s=e,l=(e&&zT(e,i,o)&&(a=G(r.childrenRef(),e),e=null),!e),u=e,s=(u?u.clearStates():(u=AT(i),s&&(e=s,(s=u).copyTransform(e),TT(s))&&TT(e)&&(s.setStyle(e.style),s.z=e.z,s.z2=e.z2,s.zlevel=e.zlevel,s.invisible=e.invisible,s.ignore=e.ignore,IT(s))&&IT(e)&&s.setShape(e.shape)),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ST.normal.cfg=ST.normal.conOpt=ST.emphasis.cfg=ST.emphasis.conOpt=ST.blur.cfg=ST.blur.conOpt=ST.select.cfg=ST.select.conOpt=null,ST.isLegacy=!1,u),e=n,h=i,c=o,p=l,d=ST;if(!s.isGroup){BT(h,null,d),BT(h,yT,d);var f=d.normal.conOpt,h=d.emphasis.conOpt,g=d.blur.conOpt,y=d.select.conOpt;if(null!=f||null!=h||null!=y||null!=g){var m=s.getTextContent();if(!1===f)m&&s.removeTextContent();else{f=d.normal.conOpt=f||{type:"text"},m?m.clearStates():(m=AT(f),s.setTextContent(m)),LT(null,m,e,f,null,c,p);for(var h=f&&f.style,v=0;v<vT.length;v++){var _,x=vT[v];x!==mT&&(_=d[x].conOpt,PT(x,m,0,VT(f,_,x),null))}h?m.dirty():m.markRedraw()}}}y=u,g=n,s=i,e=o,c=l;!1===(s=s.clipPath)?y&&y.getClipPath()&&y.removeClipPath():s&&((p=(p=y.getClipPath())&&zT(p,s,e)?null:p)||(p=AT(s),y.setClipPath(p)),LT(null,p,g,s,null,e,c)),LT(t,u,n,i,ST,o,l),U(i,"info")&&(VI(u).info=i.info);for(var b=0;b<vT.length;b++){var w,S=vT[b];S!==mT&&(w=VT(i,FT(i,S),S),PT(S,u,0,w,ST))}if(OT(u,i,o),"group"===i.type){var M=t,I=u,T=n,C=o,D=(h=i).children,k=D?D.length:0,h="byName"===(p=h.$mergeChildren)||h.diffChildrenByName,p=!1===p;if(k||h||p)if(h){h={api:M,oldChildren:I.children()||[],newChildren:D||[],dataIndex:T,seriesModel:C,group:I};new pv(h.oldChildren,h.newChildren,GT,GT,h).add(HT).update(HT).remove(WT).execute()}else{p&&I.removeAll();for(var A=0;A<k;A++){var L=D[A],P=I.childAt(A);L?(null==L.ignore&&(L.ignore=!1),ET(M,P,T,L,C,I)):P.ignore=!0}for(var O=I.childCount()-1;A<=O;O--){var N=I.childAt(O);!function(t,e,n){e&&rT(e,VI(t).option,n)}(I,N,C)}}}return 0<=a?r.replaceAt(u,a):r.add(u),u}function zT(t,e,n){var t=VI(t),i=e.type,o=e.shape,e=e.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==t.customGraphicType||"path"===i&&(n=o)&&(U(n,"pathData")||U(n,"d"))&&XT(o)!==t.customPathData||"image"===i&&U(e,"image")&&e.image!==t.customImagePath}function BT(t,e,n){var i=e?FT(t,e):t,o=e?VT(t,i,yT):t.style,r=t.type,i=i?i.textConfig:null,t=t.textContent,t=t?e?FT(t,e):t:null,o=(o&&(n.isLegacy||ZI(o,r,!!i,!!t))&&(n.isLegacy=!0,o=qI(o,r,!e),!i&&o.textConfig&&(i=o.textConfig),!t)&&o.textContent&&(t=o.textContent),e||!t||(r=t).type||(r.type="text"),e?n[e]:n.normal);o.cfg=i,o.conOpt=t}function FT(t,e){return e?t?t[e]:null:t}function VT(t,e,n){e=e&&e.style;return e=null==e&&n===yT&&t?t.styleEmphasis:e}function GT(t,e){t=t&&t.name;return null!=t?t:wT+e}function HT(t,e){var n=this.context,t=null!=t?n.newChildren[t]:null,e=null!=e?n.oldChildren[e]:null;ET(n.api,e,n.dataIndex,t,n.seriesModel,n.group)}function WT(t){var e=this.context,t=e.oldChildren[t];t&&rT(t,VI(t).option,e.seriesModel)}function XT(t){return t&&(t.pathData||t.d)}r1(function(t){t.registerChartView(DT),t.registerSeriesModel(GI)});u(ZT,YT=g),ZT.type="grid",ZT.dependencies=["xAxis","yAxis"],ZT.layoutMode="box",ZT.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"};var YT,UT=ZT;function ZT(){return null!==YT&&YT.apply(this,arguments)||this}u(KT,qT=g),KT.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Gr).models[0]},KT.type="cartesian2dAxis";var qT,jT=KT;function KT(){return null!==qT&&qT.apply(this,arguments)||this}st(jT,e1);var $T={value:1,category:1,time:1,log:1};function QT(r,a,s,l){H($T,function(t,o){var e,n=d(d({},Hw[o],!0),l,!0),n=(u(i,e=s),i.prototype.mergeDefaultAndTheme=function(t,e){var n=qp(this),i=n?Kp(t):{};d(t,e.getTheme().get(o+"Axis")),d(t,this.getDefaultOption()),t.type=JT(t),n&&jp(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Kv.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.type=a+"Axis."+o,i.defaultOption=n,i);function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a+"Axis."+o,t}r.registerComponentModel(n)}),r.registerSubTypeDefaulter(a+"Axis",JT)}function JT(t){return t.type||(t.data?"category":"value")}function tC(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}tC.prototype.getAxis=function(t){return this._axes[t]},tC.prototype.getAxes=function(){return B(this._dimList,function(t){return this._axes[t]},this)},tC.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ht(this.getAxes(),function(t){return t.scale.type===e})},tC.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var eC=["x","y"];function nC(t){return"interval"===t.type||"time"===t.type}u(rC,iC=tC),rC.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,o=this.getAxis("x").scale,r=this.getAxis("y").scale;nC(o)&&nC(r)&&(o=o.getExtent(),r=r.getExtent(),i=this.dataToPoint([o[0],r[0]]),e=this.dataToPoint([o[1],r[1]]),t=o[1]-o[0],n=r[1]-r[0],t)&&n&&(t=(e[0]-i[0])/t,e=(e[1]-i[1])/n,n=i[0]-o[0]*t,o=i[1]-r[0]*e,i=this._transform=[t,0,0,e,n,o],this._invTransform=Ge([],i))},rC.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},rC.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},rC.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},rC.prototype.containZone=function(t,e){var t=this.dataToPoint(t),e=this.dataToPoint(e),n=this.getArea(),e=new Z(t[0],t[1],e[0]-t[0],e[1]-t[1]);return n.intersect(e)},rC.prototype.dataToPoint=function(t,e,n){n=n||[];var i,o=t[0],r=t[1];return this._transform&&null!=o&&isFinite(o)&&null!=r&&isFinite(r)?ne(n,t,this._transform):(t=this.getAxis("x"),i=this.getAxis("y"),n[0]=t.toGlobalCoord(t.dataToCoord(o,e)),n[1]=i.toGlobalCoord(i.dataToCoord(r,e)),n)},rC.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),n=n.parse(t[0]),i=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(o[0],o[1]),n),Math.max(o[0],o[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),i),Math.max(r[0],r[1])),e},rC.prototype.pointToData=function(t,e){var n,i,o=[];return this._invTransform?ne(o,t,this._invTransform):(n=this.getAxis("x"),i=this.getAxis("y"),o[0]=n.coordToData(n.toLocalCoord(t[0]),e),o[1]=i.coordToData(i.toLocalCoord(t[1]),e),o)},rC.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},rC.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,o=Math.min(n[0],n[1])-t,e=Math.max(e[0],e[1])-i+t,n=Math.max(n[0],n[1])-o+t;return new Z(i,o,e,n)};var iC,oC=rC;function rC(){var t=null!==iC&&iC.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=eC,t}u(lC,aC=Hc),lC.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},lC.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},lC.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},lC.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var aC,sC=lC;function lC(t,e,n,i,o){t=aC.call(this,t,e,n)||this;return t.index=0,t.type=i||"value",t.position=o||"bottom",t}function uC(t,e,n){n=n||{};var t=t.coordinateSystem,i=e.axis,o={},r=i.getAxesOnZeroOf()[0],a=i.position,s=r?"onZero":a,i=i.dim,t=t.getRect(),t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},u=e.get("offset")||0,u="x"===i?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],h=(r&&(h=r.toGlobalCoord(r.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),o.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[s]]:t[3]],o.rotation=Math.PI/2*("x"===i?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],o.labelOffset=r?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),xt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.get(["axisLabel","rotate"]));return o.labelRotate="top"===s?-h:h,o.z2=1,o}function hC(t){return"cartesian2d"===t.get("coordinateSystem")}function cC(i){var o={xAxisModel:null,yAxisModel:null};return H(o,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,Gr).models[0];o[e]=n}),o}dC.prototype.getRect=function(){return this._rect},dC.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=W(t),i=n.length;if(i){for(var o=[],r=i-1;0<=r;r--){var a=t[+n[r]],s=a.model,l=a.scale;Jv(l)&&s.get("alignTicks")&&null==s.get("interval")?o.push(a):(q_(l,s),Jv(l)&&(e=a))}o.length&&(e||q_((e=o.pop()).scale,e.model),H(o,function(t){uS(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var o={};H(n.x,function(t){gC(n,"y",t,o)}),H(n.y,function(t){gC(n,"x",t,o)}),this.resize(this.model,e)},dC.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),n=!n&&t.get("containLabel"),a=Zp(i,{width:e.getWidth(),height:e.getHeight()}),o=(this._rect=a,this._axesList);function r(){H(o,function(t){var e,n,i=t.isHorizontal(),o=i?[0,a.width]:[0,a.height],r=t.inverse?1:0;t.setExtent(o[r],o[1-r]),o=t,e=i?a.x:a.y,r=o.getExtent(),n=r[0]+r[1],o.toGlobalCoord="x"===o.dim?function(t){return t+e}:function(t){return n-t+e},o.toLocalCoord="x"===o.dim?function(t){return t-e}:function(t){return n-t+e}})}r(),n&&(H(o,function(t){var e,n,i;t.model.get(["axisLabel","inside"])||(e=Q_(t))&&(n=t.isHorizontal()?"height":"width",i=t.model.get(["axisLabel","margin"]),a[n]-=e[n]+i,"top"===t.position?a.y+=e.height+i:"left"===t.position&&(a.x+=e.width+i))}),r()),H(this._coordsList,function(t){t.calcAffineTransform()})},dC.prototype.getAxis=function(t,e){t=this._axesMap[t];if(null!=t)return t[e||0]},dC.prototype.getAxes=function(){return this._axesList.slice()},dC.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];P(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},dC.prototype.getCartesians=function(){return this._coordsList.slice()},dC.prototype.convertToPixel=function(t,e,n){e=this._findConvertTarget(e);return e.cartesian?e.cartesian.dataToPoint(n):e.axis?e.axis.toGlobalCoord(e.axis.dataToCoord(n)):null},dC.prototype.convertFromPixel=function(t,e,n){e=this._findConvertTarget(e);return e.cartesian?e.cartesian.pointToData(n):e.axis?e.axis.coordToData(e.axis.toLocalCoord(n)):null},dC.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis",Gr).models[0],r=t.yAxisModel||i&&i.getReferringComponents("yAxis",Gr).models[0],t=t.gridModel,a=this._coordsList;return i?G(a,e=i.coordinateSystem)<0&&(e=null):o&&r?e=this.getCartesian(o.componentIndex,r.componentIndex):o?n=this.getAxis("x",o.componentIndex):r?n=this.getAxis("y",r.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},dC.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},dC.prototype._initCartesian=function(r,t,e){var a=this,s=this,l={left:!1,right:!1,top:!1,bottom:!1},u={x:{},y:{}},h={x:0,y:0};function n(o){return function(t,e){var n,i;fC(t,r)&&(n=t.get("position"),"x"===o?"top"!==n&&"bottom"!==n&&(n=l.bottom?"top":"bottom"):"left"!==n&&"right"!==n&&(n=l.left?"right":"left"),l[n]=!0,i="category"===(n=new sC(o,j_(t),[0,0],t.get("type"),n)).type,n.onBand=i&&t.get("boundaryGap"),n.inverse=t.get("inverse"),(t.axis=n).model=t,n.grid=s,n.index=e,s._axesList.push(n),u[o][e]=n,h[o]++)}}t.eachComponent("xAxis",n("x"),this),t.eachComponent("yAxis",n("y"),this),h.x&&h.y?H((this._axesMap=u).x,function(i,o){H(u.y,function(t,e){var e="x"+o+"y"+e,n=new oC(e);n.master=a,n.model=r,a._coordsMap[e]=n,a._coordsList.push(n),n.addAxis(i),n.addAxis(t)})}):(this._axesMap={},this._axesList=[])},dC.prototype._updateScale=function(t,i){function o(e,n){var i,t,o;H((i=e,t=n.dim,o={},H(i.mapDimensionsAll(t),function(t){o[Yv(i,t)]=!0}),W(o)),function(t){n.scale.unionExtentFromData(e,t)})}H(this._axesList,function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setSortInfo(e))}),t.eachSeries(function(t){var e,n;hC(t)&&(n=(e=cC(t)).xAxisModel,e=e.yAxisModel,fC(n,i))&&fC(e,i)&&(n=this.getCartesian(n.componentIndex,e.componentIndex),e=t.getData(),t=n.getAxis("x"),n=n.getAxis("y"),o(e,t),o(e,n))},this)},dC.prototype.getTooltipAxes=function(n){var i=[],o=[];return H(this.getCartesians(),function(t){var e=null!=n&&"auto"!==n?t.getAxis(n):t.getBaseAxis(),t=t.getOtherAxis(e);G(i,e)<0&&i.push(e),G(o,t)<0&&o.push(t)}),{baseAxes:i,otherAxes:o}},dC.create=function(i,o){var r=[];return i.eachComponent("grid",function(t,e){var n=new dC(t,i,o);n.name="grid_"+e,n.resize(t,o,!0),t.coordinateSystem=n,r.push(n)}),i.eachSeries(function(t){var e,n,i;hC(t)&&(e=(n=cC(t)).xAxisModel,n=n.yAxisModel,i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))}),r},dC.dimensions=eC;var pC=dC;function dC(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=eC,this._initCartesian(t,e,n),this.model=t}function fC(t,e){return t.getCoordSysModel()===e}function gC(t,e,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=t[e],t=n.model,e=t.get(["axisLine","onZero"]),n=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=n)yC(r[n])&&(o=r[n]);else for(var a in r)if(r.hasOwnProperty(a)&&yC(r[a])&&!i[s(r[a])]){o=r[a];break}o&&(i[s(o)]=!0)}function s(t){return t.dim+"_"+t.index}}function yC(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(t=t).scale.getExtent())[0],t=t[1],!(0<e&&0<t||e<0&&t<0));var e}function mC(t,e){var h,c,o,p,d,f,r,n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return h=n,e=e,o=(c=t).getComponent("tooltip"),p=c.getComponent("axisPointer"),d=p.get("link",!0)||[],f=[],H(e.getCoordinateSystems(),function(s){var l,u,t,e,n;function i(t,e,n){var i,o,r=n.model.getModel("axisPointer",p),a=r.get("show");a&&("auto"!==a||t||xC(r))&&(null==e&&(e=r.get("triggerTooltip")),a=(r=t?function(t,e,n,i,o,r){var a=e.getModel("axisPointer"),s={};H(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=y(a.get(t))}),s.snap="category"!==t.type&&!!r,"cross"===a.get("type")&&(s.type="line");e=s.label||(s.label={});null==e.show&&(e.show=!1),"cross"===o&&(o=a.get(["label","show"]),e.show=null==o||o,r||(o=s.lineStyle=a.get("crossStyle"))&&z(e,o.textStyle));return t.model.getModel("axisPointer",new Zc(s,n,i))}(n,u,p,c,t,e):r).get("snap"),t=r.get("triggerEmphasis"),i=bC(n.model),o=e||a||"category"===n.type,e=h.axesInfo[i]={key:i,axis:n,coordSys:s,axisPointerModel:r,triggerTooltip:e,triggerEmphasis:t,involveSeries:o,snap:a,useHandle:xC(r),seriesModels:[],linkGroup:null},l[i]=e,h.seriesInvolved=h.seriesInvolved||o,null!=(t=function(t,e){for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(vC(r[i+"AxisId"],n.id)||vC(r[i+"AxisIndex"],n.componentIndex)||vC(r[i+"AxisName"],n.name))return o}}(d,n)))&&((a=f[t]||(f[t]={axesInfo:{}})).axesInfo[i]=e,a.mapper=d[t].mapper,e.linkGroup=a)}s.axisPointerEnabled&&(t=bC(s.model),l=h.coordSysAxesInfo[t]={},u=(h.coordSysMap[t]=s).model.getModel("tooltip",o),H(s.getAxes(),M(i,!1,null)),s.getTooltipAxes)&&o&&u.get("show")&&(t="axis"===u.get("trigger"),e="cross"===u.get(["axisPointer","type"]),n=s.getTooltipAxes(u.get(["axisPointer","axis"])),(t||e)&&H(n.baseAxes,M(i,!e||"cross",t)),e)&&H(n.otherAxes,M(i,"cross",!1))}),n.seriesInvolved&&(r=n,t.eachSeries(function(n){var i=n.coordinateSystem,t=n.get(["tooltip","trigger"],!0),e=n.get(["tooltip","show"],!0);i&&"none"!==t&&!1!==t&&"item"!==t&&!1!==e&&!1!==n.get(["axisPointer","show"],!0)&&H(r.coordSysAxesInfo[bC(i.model)],function(t){var e=t.axis;i.getAxis(e.dim)===e&&(t.seriesModels.push(n),null==t.seriesDataCount&&(t.seriesDataCount=0),t.seriesDataCount+=n.getData().count())})})),n}function vC(t,e){return"all"===t||F(t)&&0<=G(t,e)||t===e}function _C(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[bC(t)]}function xC(t){return!!t.get(["handle","show"])}function bC(t){return t.type+"||"+t.id}var wC,SC={},MC=(u(IC,wC=ly),IC.prototype.render=function(t,e,n,i){var o,r,a,s,l,u;this.axisPointerClass&&(o=_C(o=t))&&(l=o.axisPointerModel,r=o.axis.scale,a=l.option,u=l.get("status"),null!=(s=l.get("value"))&&(s=r.parse(s)),l=xC(l),null==u&&(a.status=l?"show":"hide"),(u=r.getExtent().slice())[0]>u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)<u[0]&&(s=u[0]),a.value=s,l)&&(a.status=o.axis.scale.isBlank()?"hide":"show"),wC.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},IC.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},IC.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},IC.prototype.dispose=function(t,e){this._disposeAxisPointer(e),wC.prototype.dispose.apply(this,arguments)},IC.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,o=IC.getAxisPointerClass(this.axisPointerClass);o&&((i=(i=_C(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,i,e,n):this._disposeAxisPointer(e))},IC.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},IC.registerAxisPointerClass=function(t,e){SC[t]=e},IC.getAxisPointerClass=function(t){return t&&SC[t]},IC.type="axis",IC);function IC(){var t=null!==wC&&wC.apply(this,arguments)||this;return t.type=IC.type,t}var TC=zr();var CC,DC=["axisLine","axisTickLabel","axisName"],kC=["splitArea","splitLine","minorSplitLine"],xh=(u(AC,CC=MC),AC.prototype.render=function(i,t,e,n){this.group.removeAll();var o,r,a=this._axisGroup;this._axisGroup=new Zo,this.group.add(this._axisGroup),i.get("show")&&(r=uC(o=i.getCoordSysModel(),i),r=new qw(i,V({handleAutoShown:function(t){for(var e=o.coordinateSystem.getCartesians(),n=0;n<e.length;n++)if(Jv(e[n].getOtherAxis(i.axis).scale))return!0;return!1}},r)),H(DC,r.add,r),this._axisGroup.add(r.getGroup()),H(kC,function(t){i.get([t,"show"])&&PC[t](this,this._axisGroup,i,o)},this),n&&"changeAxisOrder"===n.type&&n.isInitSort||cc(a,this._axisGroup,i),CC.prototype.render.call(this,i,t,e,n))},AC.prototype.remove=function(){TC(this).splitAreaColors=null},AC.type="cartesianAxis",AC);function AC(){var t=null!==CC&&CC.apply(this,arguments)||this;return t.type=AC.type,t.axisPointerClass="CartesianAxisPointer",t}var LC,PC={splitLine:function(t,e,n,i){var o=n.axis;if(!o.scale.isBlank())for(var n=n.getModel("splitLine"),r=n.getModel("lineStyle"),a=F(a=r.get("color"))?a:[a],s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=0,h=o.getTicksCoords({tickModel:n}),c=[],p=[],d=r.getLineStyle(),f=0;f<h.length;f++){var g=o.toGlobalCoord(h[f].coord),g=(l?(c[0]=g,c[1]=s.y,p[0]=g,p[1]=s.y+s.height):(c[0]=s.x,c[1]=g,p[0]=s.x+s.width,p[1]=g),u++%a.length),y=h[f].tickValue,y=new rh({anid:null!=y?"line_"+h[f].tickValue:null,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:z({stroke:a[g]},d),silent:!0});ac(y.shape,d.lineWidth),e.add(y)}},minorSplitLine:function(t,e,n,i){var o=n.axis,n=n.getModel("minorSplitLine").getModel("lineStyle"),r=i.coordinateSystem.getRect(),a=o.isHorizontal(),s=o.getMinorTicksCoords();if(s.length)for(var l=[],u=[],h=n.getLineStyle(),c=0;c<s.length;c++)for(var p=0;p<s[c].length;p++){var d=o.toGlobalCoord(s[c][p].coord),d=(a?(l[0]=d,l[1]=r.y,u[0]=d,u[1]=r.y+r.height):(l[0]=r.x,l[1]=d,u[0]=r.x+r.width,u[1]=d),new rh({anid:"minor_line_"+s[c][p].tickValue,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,silent:!0}));ac(d.shape,h.lineWidth),e.add(d)}},splitArea:function(t,e,n,i){var o=e,e=i,r=(i=n).axis;if(!r.scale.isBlank()){var i=i.getModel("splitArea"),n=i.getModel("areaStyle"),a=n.get("color"),s=e.coordinateSystem.getRect(),l=r.getTicksCoords({tickModel:i,clamp:!0});if(l.length){var u=a.length,h=TC(t).splitAreaColors,c=N(),p=0;if(h)for(var d=0;d<l.length;d++){var f=h.get(l[d].tickValue);if(null!=f){p=(f+(u-1)*d)%u;break}}for(var g=r.toGlobalCoord(l[0].coord),y=n.getAreaStyle(),a=F(a)?a:[a],d=1;d<l.length;d++){var m=r.toGlobalCoord(l[d].coord),v=void 0,_=void 0,x=void 0,b=void 0,g=r.isHorizontal()?(v=g,_=s.y,b=s.height,v+(x=m-v)):(v=s.x,_=g,x=s.width,_+(b=m-_)),m=l[d-1].tickValue;null!=m&&c.set(m,p),o.add(new Vs({anid:null!=m?"area_"+m:null,shape:{x:v,y:_,width:x,height:b},style:z({fill:a[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%u}TC(t).splitAreaColors=c}}}},OC=(u(NC,LC=xh),NC.type="xAxis",NC);function NC(){var t=null!==LC&&LC.apply(this,arguments)||this;return t.type=NC.type,t}u(zC,RC=xh),zC.type="yAxis";var RC,EC=zC;function zC(){var t=null!==RC&&RC.apply(this,arguments)||this;return t.type=OC.type,t}u(VC,BC=ly),VC.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new Vs({shape:t.coordinateSystem.getRect(),style:z({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},VC.type="grid";var BC,FC=VC;function VC(){var t=null!==BC&&BC.apply(this,arguments)||this;return t.type="grid",t}var GC={offset:0};r1(function(t){t.registerComponentView(FC),t.registerComponentModel(UT),t.registerCoordinateSystem("cartesian2d",pC),QT(t,"x",jT,GC),QT(t,"y",jT,GC),t.registerComponentView(OC),t.registerComponentView(EC),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})});u(XC,HC=g),XC.type="title",XC.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"}};var HC,WC=XC;function XC(){var t=null!==HC&&HC.apply(this,arguments)||this;return t.type=XC.type,t.layoutMode={type:"box",ignoreSize:!0},t}u(ZC,YC=ly),ZC.prototype.render=function(t,e,n){var i,o,r,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),o=t.getModel("subtextStyle"),h=t.get("textAlign"),c=O(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new Ys({style:Ic(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),o=new Ys({style:Ic(o,{text:l,fill:o.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),r=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),u.silent=!r&&!s,o.silent=!a&&!s,r&&u.on("click",function(){Gp(r,"_"+t.get("target"))}),a&&o.on("click",function(){Gp(a,"_"+t.get("subtarget"))}),D(u).eventData=D(o).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),l&&i.add(o),s=i.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=Zp(l,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),h||("right"===(h="middle"===(h=t.get("left")||t.get("right"))?"center":h)?l.x+=l.width:"center"===h&&(l.x+=l.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?l.y+=l.height:"middle"===c&&(l.y+=l.height/2),c=c||"top"),i.x=l.x,i.y=l.y,i.markRedraw(),u.setStyle(n={align:h,verticalAlign:c}),o.setStyle(n),s=i.getBoundingRect(),u=l.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new Vs({shape:{x:s.x-u[3],y:s.y-u[0],width:s.width+u[1]+u[3],height:s.height+u[0]+u[2],r:t.get("borderRadius")},style:h,subPixelOptimize:!0,silent:!0}),i.add(c))},ZC.type="title";var YC,UC=ZC;function ZC(){var t=null!==YC&&YC.apply(this,arguments)||this;return t.type=ZC.type,t}r1(function(t){t.registerComponentModel(WC),t.registerComponentView(UC)});u(KC,qC=g),KC.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},KC.prototype.mergeOption=function(t,e){qC.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},KC.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;F(n=!0===n?t.selector=["all","inverse"]:n)&&H(n,function(t,e){X(t)&&(t={type:t}),n[e]=d(t,(e=i,"all"===(t=t.type)?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0))})},KC.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n<t.length;n++){var i=t[n].get("name");if(this.isSelected(i)){this.select(i),e=!0;break}}e||this.select(t[0].get("name"))}},KC.prototype._updateData=function(i){var o=[],r=[],t=(i.eachRawSeries(function(t){var e,n=t.name;r.push(n),t.legendVisualProvider&&(n=t.legendVisualProvider.getAllNames(),i.isSeriesFiltered(t)||(r=r.concat(n)),n.length)?o=o.concat(n):e=!0,e&&Or(t)&&o.push(t.name)}),this._availableNames=r,this.get("data")||o),e=N(),t=B(t,function(t){return(X(t)||Y(t))&&(t={name:t}),e.get(t.name)?null:(e.set(t.name,!0),new Zc(t,this,this.ecModel))},this);this._data=ht(t,function(t){return!!t})},KC.prototype.getData=function(){return this._data},KC.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&H(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},KC.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},KC.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},KC.prototype.allSelect=function(){var t=this._data,e=this.option.selected;H(t,function(t){e[t.get("name",!0)]=!0})},KC.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;H(t,function(t){t=t.get("name",!0);e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},KC.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=G(this._availableNames,t)},KC.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},KC.type="legend.plain",KC.dependencies=["series"],KC.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}};var qC,jC=KC;function KC(){var t=null!==qC&&qC.apply(this,arguments)||this;return t.type=KC.type,t.layoutMode={type:"box",ignoreSize:!0},t}var $C,QC=M,JC=H,t2=Zo,e2=(u(n2,$C=ly),n2.prototype.init=function(){this.group.add(this._contentGroup=new t2),this.group.add(this._selectorGroup=new t2),this._isFirstRender=!0},n2.prototype.getContentGroup=function(){return this._contentGroup},n2.prototype.getSelectorGroup=function(){return this._selectorGroup},n2.prototype.render=function(t,e,n){var i,o,r,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(o=t.get("align"),i=t.get("orient"),o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===i?"right":"left"),a=t.get("selector",!0),s=t.get("selectorPosition",!0),this.renderInner(o,t,e,n,a,i,s=!a||s&&"auto"!==s?s:"horizontal"===i?"end":"start"),r=Zp(e=t.getBoxLayoutParams(),i={width:n.getWidth(),height:n.getHeight()},n=t.get("padding")),r=Zp(z({width:(o=this.layoutInner(t,o,r,l,a,s)).width,height:o.height},e),i,n),this.group.x=r.x-o.x,this.group.y=r.y-o.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(l=o,s=Np((a=t).get("padding")),(e=a.getItemStyle(["color","opacity"])).fill=a.get("backgroundColor"),l=new Vs({shape:{x:l.x-s[3],y:l.y-s[0],width:l.width+s[1]+s[3],height:l.height+s[0]+s[2],r:a.get("borderRadius")},style:e,silent:!0,z2:-1}))))},n2.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},n2.prototype.renderInner=function(s,l,u,h,t,e,n){var c=this.getContentGroup(),p=N(),d=l.get("selectedMode"),f=[];u.eachRawSeries(function(t){t.get("legendHoverLink")||f.push(t.id)}),JC(l.getData(),function(o,r){var e,t,n,i,a=o.get("name");this.newlineDisabled||""!==a&&"\n"!==a?(e=u.getSeriesByName(a)[0],p.get(a)||(e?(i=(n=e.getData()).getVisual("legendLineStyle")||{},t=n.getVisual("legendIcon"),n=n.getVisual("style"),(i=this._createItem(e,a,r,o,l,s,i,n,t,d,h)).on("click",QC(i2,a,null,h,f)).on("mouseover",QC(r2,e.name,null,h,f)).on("mouseout",QC(a2,e.name,null,h,f)),u.ssr&&i.eachChild(function(t){t=D(t);t.seriesIndex=e.seriesIndex,t.dataIndex=r,t.ssrType="legend"}),p.set(a,!0)):u.eachRawSeries(function(e){var t,n,i;p.get(a)||e.legendVisualProvider&&(n=e.legendVisualProvider).containName(a)&&(i=n.indexOfName(a),t=n.getItemVisual(i,"style"),n=n.getItemVisual(i,"legendIcon"),(i=vi(t.fill))&&0===i[3]&&(i[3]=.2,t=V(V({},t),{fill:Ii(i,"rgba")})),(i=this._createItem(e,a,r,o,l,s,{},t,n,d,h)).on("click",QC(i2,null,a,h,f)).on("mouseover",QC(r2,null,a,h,f)).on("mouseout",QC(a2,null,a,h,f)),u.ssr&&i.eachChild(function(t){t=D(t);t.seriesIndex=e.seriesIndex,t.dataIndex=r,t.ssrType="legend"}),p.set(a,!0))},this))):((n=new t2).newline=!0,c.add(n))},this),t&&this._createSelector(t,l,h,e,n)},n2.prototype._createSelector=function(t,i,o,e,n){var r=this.getSelectorGroup();JC(t,function(t){var e=t.type,n=new Ys({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:"all"===e?"legendAllSelect":"legendInverseSelect"})}});r.add(n),Sc(n,{normal:i.getModel("selectorLabel"),emphasis:i.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Yl(n)})},n2.prototype._createItem=function(t,e,n,i,o,r,a,s,l,u,h){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),f=o.isSelected(e),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon"),a=function(t,e,n,i,o,r,a){function s(n,i){"auto"===n.lineWidth&&(n.lineWidth=0<i.lineWidth?2:0),JC(n,function(t,e){"inherit"===n[e]&&(n[e]=i[e])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),t=0===t.lastIndexOf("empty",0)?"fill":"stroke",l=l.getShallow("decal");u.decal=l&&"inherit"!==l?qm(l,a):i.decal,"inherit"===u.fill&&(u.fill=i[o]);"inherit"===u.stroke&&(u.stroke=i[t]);"inherit"===u.opacity&&(u.opacity=("fill"===o?i:n).opacity);s(u,i);l=e.getModel("lineStyle"),a=l.getLineStyle();s(a,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===a.stroke&&(a.stroke=i.fill),r||(o=e.get("inactiveBorderWidth"),n=u[t],u.lineWidth="auto"===o?0<i.lineWidth&&n?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),a.stroke=l.get("inactiveColor"),a.lineWidth=l.get("inactiveWidth"));return{itemStyle:u,lineStyle:a}}(l=m||l||"roundRect",i,a,s,c,f,h),s=new t2,c=i.getModel("textStyle"),m=(!C(t.getLegendIcon)||m&&"inherit"!==m?(h="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0,s.add(function(t){var e=t.icon||"roundRect",n=mm(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<e.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:p,itemHeight:d,icon:l,iconRotate:h,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y}))):s.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y})),"left"===r?p+5:-5),h=r,t=o.get("formatter"),l=e,g=(X(t)&&t?l=t.replace("{name}",null!=e?e:""):C(t)&&(l=t(e)),f?c.getTextColor():i.get("inactiveColor")),a=(s.add(new Ys({style:Ic(c,{text:l,x:m,y:d/2,fill:g,align:h,verticalAlign:"middle"},{inheritColor:g})})),new Vs({shape:s.getBoundingRect(),style:{fill:"transparent"}})),y=i.getModel("tooltip");return y.get("show")&&yc({el:a,componentModel:o,itemName:e,itemTooltipOption:y.option}),s.add(a),s.eachChild(function(t){t.silent=!0}),a.silent=!u,this.getContentGroup().add(s),Yl(s),s.__legendDataIndex=n,s},n2.prototype.layoutInner=function(t,e,n,i,o,r){var a,s,l,u,h,c=this.getContentGroup(),p=this.getSelectorGroup(),n=(Up(t.get("orient"),c,t.get("itemGap"),n.width,n.height),c.getBoundingRect()),d=[-n.x,-n.y];return p.markRedraw(),c.markRedraw(),o?(Up("horizontal",p,t.get("selectorItemGap",!0)),a=[-(o=p.getBoundingRect()).x,-o.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",u=0===t?"height":"width",h=0===t?"y":"x","end"===r?a[t]+=n[l]+s:d[t]+=o[l]+s,a[1-t]+=n[u]/2-o[u]/2,p.x=a[0],p.y=a[1],c.x=d[0],c.y=d[1],(r={x:0,y:0})[l]=n[l]+s+o[l],r[u]=Math.max(n[u],o[u]),r[h]=Math.min(0,o[h]+a[1-t]),r):(c.x=d[0],c.y=d[1],this.group.getBoundingRect())},n2.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},n2.type="legend.plain",n2);function n2(){var t=null!==$C&&$C.apply(this,arguments)||this;return t.type=n2.type,t.newlineDisabled=!1,t}function i2(t,e,n,i){a2(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),r2(t,e,n,i)}function o2(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,o=n.length;i<o&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function r2(t,e,n,i){o2(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function a2(t,e,n,i){o2(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function s2(t){var n=t.findComponents({mainType:"legend"});n&&n.length&&t.filterSeries(function(t){for(var e=0;e<n.length;e++)if(!n[e].isSelected(t.name))return!1;return!0})}function l2(t,e,n){var i,o={},r="toggleSelected"===t;return n.eachComponent("legend",function(n){r&&null!=i?n[i?"select":"unSelect"](e.name):"allSelect"===t||"inverseSelect"===t?n[t]():(n[t](e.name),i=n.isSelected(e.name)),H(n.getData(),function(t){var e,t=t.get("name");"\n"!==t&&""!==t&&(e=n.isSelected(t),o.hasOwnProperty(t)?o[t]=o[t]&&e:o[t]=e)})}),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}function u2(t){t.registerComponentModel(jC),t.registerComponentView(e2),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,s2),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",M(l2,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",M(l2,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",M(l2,"inverseSelect")),t.registerAction("legendSelect","legendselected",M(l2,"select")),t.registerAction("legendUnSelect","legendunselected",M(l2,"unSelect"))}u(p2,h2=jC),p2.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},p2.prototype.init=function(t,e,n){var i=Kp(t);h2.prototype.init.call(this,t,e,n),d2(this,t,i)},p2.prototype.mergeOption=function(t,e){h2.prototype.mergeOption.call(this,t,e),d2(this,this.option,t)},p2.type="legend.scroll",p2.defaultOption=$c(jC.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});var h2,c2=p2;function p2(){var t=null!==h2&&h2.apply(this,arguments)||this;return t.type=p2.type,t}function d2(t,e,n){var i=[1,1];i[t.getOrient().index]=0,jp(e,n,{type:"box",ignoreSize:!!i})}var f2,g2=Zo,y2=["width","height"],m2=["x","y"],v2=(u(_2,f2=e2),_2.prototype.init=function(){f2.prototype.init.call(this),this.group.add(this._containerGroup=new g2),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new g2)},_2.prototype.resetInner=function(){f2.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},_2.prototype.renderInner=function(t,i,e,o,n,r,a){var s=this,l=(f2.prototype.renderInner.call(this,t,i,e,o,n,r,a),this._controllerGroup),t=i.get("pageIconSize",!0),u=F(t)?t:[t,t],e=(h("pagePrev",0),i.getModel("pageTextStyle"));function h(t,e){var n=t+"DataIndex",e=fc(i.get("pageIcons",!0)[i.getOrient().name][e],{onclick:S(s._pageGo,s,n,i,o)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});e.name=t,l.add(e)}l.add(new Ys({name:"pageText",style:{text:"xx/xx",fill:e.getTextColor(),font:e.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},_2.prototype.layoutInner=function(t,e,n,i,o,r){var a=this.getSelectorGroup(),s=t.getOrient().index,l=y2[s],u=m2[s],h=y2[1-s],c=m2[1-s],p=(o&&Up("horizontal",a,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),d=a.getBoundingRect(),f=[-d.x,-d.y],g=y(n),n=(o&&(g[l]=n[l]-d[l]-p),this._layoutContentAndController(t,i,g,s,l,h,c,u));return o&&("end"===r?f[s]+=n[l]+p:(t=d[l]+p,f[s]-=t,n[u]-=t),n[l]+=d[l]+p,f[1-s]+=n[c]+n[h]/2-d[h]/2,n[h]=Math.max(n[h],d[h]),n[c]=Math.min(n[c],d[c]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()),n},_2.prototype._layoutContentAndController=function(t,e,n,i,o,r,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup,c=(Up(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),Up("horizontal",h,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=h.getBoundingRect(),d=this._showController=c[o]>n[o],f=[-c.x,-c.y],e=(e||(f[i]=l[s]),[0,0]),s=[-p.x,-p.y],g=O(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[o]-p[o]:e[i]+=p[o]+g),s[1-i]+=c[r]/2-p[r]/2,l.setPosition(f),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(f[o]=(d?n:c)[o],f[r]=Math.max(c[r],p[r]),f[a]=Math.min(0,p[a]+s[1-i]),u.__rectSize=n[o],d?((e={x:0,y:0})[o]=Math.max(n[o]-p[o]-g,0),e[r]=f[r],u.setClipPath(new Vs({shape:e})),u.__rectSize=e[o]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&Vh(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},_2.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},_2.prototype._updatePageInfoView=function(n,i){var o=this._controllerGroup,t=(H(["pagePrev","pageNext"],function(t){var e=null!=i[t+"DataIndex"],t=o.childOfName(t);t&&(t.setStyle("fill",e?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),t.cursor=e?"pointer":"default")}),o.childOfName("pageText")),e=n.get("pageFormatter"),r=i.pageIndex,r=null!=r?r+1:0,a=i.pageCount;t&&e&&t.setStyle("text",X(e)?e.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):e({current:r,total:a}))},_2.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,t=t.getOrient().index,o=y2[t],r=m2[t],e=this._findTargetItemIndex(e),a=n.children(),s=a[e],l=a.length,u=l?1:0,h={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(s){n=g(s);h.contentPosition[t]=-n.s;for(var c=e+1,p=n,d=n,f=null;c<=l;++c)(!(f=g(a[c]))&&d.e>p.s+i||f&&!y(f,p.s))&&(p=d.i>p.i?d:f)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=p.i),++h.pageCount),d=f;for(c=e-1,p=n,d=n,f=null;-1<=c;--c)(f=g(a[c]))&&y(d,f.s)||!(p.i<d.i)||(d=p,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=p.i),++h.pageCount,++h.pageIndex),p=f}return h;function g(t){var e,n;if(t)return{s:n=(e=t.getBoundingRect())[r]+t[r],e:n+e[o],i:t.__legendDataIndex}}function y(t,e){return t.e>=e&&t.s<=e+i}},_2.prototype._findTargetItemIndex=function(n){var i,o;return this._showController?(this.getContentGroup().eachChild(function(t,e){t=t.__legendDataIndex;null==o&&null!=t&&(o=e),t===n&&(i=e)}),null!=i?i:o):0},_2.type="legend.scroll",_2);function _2(){var t=null!==f2&&f2.apply(this,arguments)||this;return t.type=_2.type,t.newlineDisabled=!0,t._currentIndex=0,t}r1(function(t){r1(u2),t.registerComponentModel(c2),t.registerComponentView(v2),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})});var x2=zr(),b2=y,w2=S;function S2(){this._dragging=!1,this.animationThreshold=15}function M2(t,e,n,i){!function n(i,t){{var o;return P(i)&&P(t)?(o=!0,H(t,function(t,e){o=o&&n(i[e],t)}),!!o):i===t}}(x2(n).lastProp,i)&&(x2(n).lastProp=i,e?Vh(n,i,t):(n.stopAnimation(),n.attr(i)))}function I2(t,e){t[e.get(["label","show"])?"show":"hide"]()}function T2(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function C2(t,e,n){var i=e.get("z"),o=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),t.silent=n)})}function D2(t,e,n,i,o){var r=k2(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),n=n.getModel("label"),a=Np(n.get("padding")||0),s=n.getFont(),l=ko(r,s),u=o.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=o.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),o.verticalAlign),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),o=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),o[0]=Math.min(o[0]+c,i)-c,o[1]=Math.min(o[1]+h,l)-h,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:Ic(n,{text:r,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function k2(t,e,n,i,o){t=e.scale.parse(t);var r,a=e.scale.getLabel({value:t},{precision:o.precision}),o=o.formatter;return o&&(r={value:$_(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},H(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)}),X(o)?a=o.replace("{value}",a):C(o)&&(a=o(r))),a}function A2(t,e,n){var i=Ne();return Fe(i,i,n.rotation),Be(i,i,n.position),uc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}S2.prototype.render=function(t,e,n,i){var o,r,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,i=this._group,o=this._handle,s&&"hide"!==s?(i&&i.show(),o&&o.show(),this.makeElOption(s={},a,t,e,n),(r=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=r,r=this._moveAnimation=this.determineAnimation(t,e),i?(r=M(M2,e,r),this.updatePointerEl(i,s,r),this.updateLabelEl(i,s,r,e)):(i=this._group=new Zo,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),C2(i,e,!0),this._renderHandle(a)):(i&&i.hide(),o&&o.hide()))},S2.prototype.remove=function(t){this.clear(t)},S2.prototype.dispose=function(t){this.clear(t)},S2.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),o=t.axis,r="category"===o.type,e=e.get("snap");return!(!e&&!r)&&("auto"===i||null==i?(n=this.animationThreshold,r&&o.getBandWidth()>n||!!e&&(r=_C(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},S2.prototype.makeElOption=function(t,e,n,i,o){},S2.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(o=x2(t).pointerEl=new _c[o.type](b2(e.pointer)),t.add(o))},S2.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=x2(t).labelEl=new Ys(b2(e.label)),t.add(e),I2(e,i))},S2.prototype.updatePointerEl=function(t,e,n){t=x2(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},S2.prototype.updateLabelEl=function(t,e,n,i){t=x2(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),I2(t,i))},S2.prototype._renderHandle=function(t){var e,n,i,o,r,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=e.getModel("handle"),a=e.get("status"),o.get("show")&&a&&"hide"!==a?(this._handle||(r=!0,i=this._handle=fc(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){De(t.event)},onmousedown:w2(this._onHandleDragMove,this,0,0),drift:w2(this._onHandleDragMove,this),ondragend:w2(this._onHandleDragEnd,this)}),n.add(i)),C2(i,e,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),F(a=o.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,My(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,r)):(i&&n.remove(i),this._handle=null))},S2.prototype._moveHandleToValue=function(t,e){M2(this._axisPointerModel,!e&&this._moveAnimation,this._handle,T2(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},S2.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(T2(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(T2(t)),x2(n).lastProp=null,this._doDispatchAxisPointer())},S2.prototype._doDispatchAxisPointer=function(){var t,e;this._handle&&(t=this._payloadInfo,e=this._axisModel,this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]}))},S2.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},S2.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Iy(this,"_doDispatchAxisPointer")},S2.prototype.doClear=function(){},S2.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}};u(O2,L2=S2),O2.prototype.makeElOption=function(t,e,n,i,o){var r,a,s=n.axis,l=s.grid,u=i.get("type"),h=N2(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(u&&"none"!==u&&(r=(a=i).get("type"),a=a.getModel(r+"Style"),"line"===r?(p=a.getLineStyle()).fill=null:"shadow"===r&&((p=a.getAreaStyle()).stroke=null),r=p,(a=R2[u](s,c,h)).style=r,t.graphicKey=a.type,t.pointer=a),uC(l.model,n));u=e,s=t,c=p,h=n,r=i,a=o,l=qw.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=r.get(["label","margin"]),D2(s,h,r,a,{position:A2(h.axis,u,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},O2.prototype.getHandleTransform=function(t,e,n){var i=uC(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),A2(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},O2.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.grid,r=n.getGlobalExtent(!0),o=N2(o,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(r[1],a[n]),a[n]=Math.max(r[0],a[n]),(o[1]+o[0])/2),r=[e,e];r[n]=a[n];return{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var L2,P2=O2;function O2(){return null!==L2&&L2.apply(this,arguments)||this}function N2(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var R2={line:function(t,e,n){var i;return i=[e,n[0]],e=[e,n[1]],n=E2(t),{type:"Line",subPixelOptimize:!0,shape:{x1:i[n=n||0],y1:i[1-n],x2:e[n],y2:e[1-n]}}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,o],i=E2(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};function E2(t){return"x"===t.dim?0:1}u(F2,z2=g),F2.type="axisPointer",F2.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}};var z2,B2=F2;function F2(){var t=null!==z2&&z2.apply(this,arguments)||this;return t.type=F2.type,t}var V2=zr(),G2=H;function H2(t,e,n){var i,c,p;function o(t,h){c.on(t,function(e){n=p;var n,i,o={dispatchAction:r,pendings:i={showTip:[],hideTip:[]}};function r(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=r,n.dispatchAction(t))}G2(V2(c).records,function(t){t&&h(t,e,o.dispatchAction)});var t,a=o.pendings,s=p,l=a.showTip.length,u=a.hideTip.length;l?t=a.showTip[l-1]:u&&(t=a.hideTip[u-1]),t&&(t.dispatchAction=null,s.dispatchAction(t))})}w.node||(i=e.getZr(),V2(i).records||(V2(i).records={}),p=e,V2(c=i).initialized||(V2(c).initialized=!0,o("click",M(X2,"click")),o("mousemove",M(X2,"mousemove")),o("globalout",W2)),(V2(i).records[t]||(V2(i).records[t]={})).handler=n)}function W2(t,e,n){t.handler("leave",null,n)}function X2(t,e,n,i){e.handler(t,n,i)}function Y2(t,e){w.node||(e=e.getZr(),(V2(e).records||{})[t]&&(V2(e).records[t]=null))}u(q2,U2=ly),q2.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";H2("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},q2.prototype.remove=function(t,e){Y2("axisPointer",e)},q2.prototype.dispose=function(t,e){Y2("axisPointer",e)},q2.type="axisPointer";var U2,Z2=q2;function q2(){var t=null!==U2&&U2.apply(this,arguments)||this;return t.type=q2.type,t}function j2(t,e){var n,i,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=Er(n=e.getData(),t))||s<0||F(s)?{point:[]}:(i=n.getItemGraphicEl(s),o=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:o&&o.dataToPoint?a=t.isStacked?(e=o.getBaseAxis(),t=o.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(r=[])[t]=n.get(e,s),r[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),o.dataToPoint(r)||[]):o.dataToPoint(n.getValues(B(o.dimensions,function(t){return n.mapDimension(t)}),s))||[]:i&&((e=i.getBoundingRect().clone()).applyTransform(i.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:i})}var K2=zr();function $2(t,e,n){var r,a,i,s,l,o,u,h,c,p,d,f,g,y,m=t.currTrigger,v=[t.x,t.y],_=t,x=t.dispatchAction||S(n.dispatchAction,n),b=e.getComponent("axisPointer").coordSysAxesInfo;if(b)return nD(v)&&(v=j2({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),r=nD(v),a=_.axesInfo,i=b.axesInfo,s="leave"===m||nD(v),l={},e={list:[],map:{}},u={showPointer:M(J2,o={}),showTooltip:M(tD,e)},H(b.coordSysMap,function(t,e){var o=r||t.containPoint(v);H(b.coordSysAxesInfo[e],function(t,e){var n=t.axis,i=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(a,t);s||!o||a&&!i||null!=(i=null!=(i=i&&i.value)||r?i:n.pointToData(v))&&Q2(t,i,u,!1,l)})}),h={},H(i,function(n,t){var i=n.linkGroup;i&&!o[t]&&H(i.axesInfo,function(t,e){var e=o[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,eD(t),eD(n)))),h[n.key]=e)})}),H(h,function(t,e){Q2(i[e],t,u,!0,l)}),c=o,_=i,p=l.axesInfo=[],H(_,function(t,e){var n=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),m=e,_=t,e=x,nD(t=v)||!m.list.length?e({type:"hideTip"}):(x=((m.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:_.tooltipOption,position:_.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:m.list})),e=i,_=(t=n).getZr(),x="axisPointerLastHighlights",d=K2(_)[x]||{},f=K2(_)[x]={},H(e,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&H(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;f[e]=t})}),g=[],y=[],H(d,function(t,e){f[e]||y.push(t)}),H(f,function(t,e){d[e]||g.push(t)}),y.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:y}),g.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:g}),l}function Q2(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(a=e,s=t.axis,l=s.dim,u=a,h=[],c=Number.MAX_VALUE,p=-1,H(t.seriesModels,function(e,t){var n,i=e.getData().mapDimensionsAll(l);if(e.getAxisTooltipData)var o=e.getAxisTooltipData(i,a,s),r=o.dataIndices,o=o.nestestValue;else{if(!(r=e.getData().indicesOfNearest(i[0],a,"category"===s.type?.5:null)).length)return;o=e.getData().get(i[0],r[0])}null!=o&&isFinite(o)&&(i=a-o,(n=Math.abs(i))<=c)&&((n<c||0<=i&&p<0)&&(c=n,p=i,u=o,h.length=0),H(r,function(t){h.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}),f=(r={payloadBatch:h,snapToValue:u}).snapToValue,(d=r.payloadBatch)[0]&&null==o.seriesIndex&&V(o,d[0]),!i&&t.snap&&g.containData(f)&&null!=f&&(e=f),n.showPointer(t,e,d),n.showTooltip(t,r,f)):n.showPointer(t,e))}function J2(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function tD(t,e,n,i){var o,r,n=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(o=bC(e=e.coordSys.model),(r=t.map[o])||(r=t.map[o]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(r)),r.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:n.slice()}))}function eD(t){var e=t.axis.model,n={},t=n.axisDim=t.axis.dim;return n.axisIndex=n[t+"AxisIndex"]=e.componentIndex,n.axisName=n[t+"AxisName"]=e.name,n.axisId=n[t+"AxisId"]=e.id,n}function nD(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function iD(t){MC.registerAxisPointerClass("CartesianAxisPointer",P2),t.registerComponentModel(B2),t.registerComponentView(Z2),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!F(e)&&(t.axisPointer.link=[e])}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=mC(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},$2)}u(aD,oD=g),aD.type="tooltip",aD.dependencies=["axisPointer"],aD.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}};var oD,rD=aD;function aD(){var t=null!==oD&&oD.apply(this,arguments)||this;return t.type=aD.type,t}function sD(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function lD(t){if(w.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var uD=lD(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function hD(t,e){if(!t)return e;e=Op(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var cD=hD(lD(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),pD=hD(uD,"transform"),dD="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(w.transform3dSupported?"will-change:transform;":"");function fD(t,e,n){var i,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return w.transformSupported?(i="translate"+((i=w.transform3dSupported)?"3d":"")+"("+t+","+e+(i?",0":"")+")",n?"top:0;left:0;"+pD+":"+i+";":[["top",0],["left",0],[uD,i]]):n?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function gD(i,t,e){var n,o,r=[],a=i.get("transitionDuration"),s=i.get("backgroundColor"),l=i.get("shadowBlur"),u=i.get("shadowColor"),h=i.get("shadowOffsetX"),c=i.get("shadowOffsetY"),p=i.getModel("textStyle"),d=Zg(i,"html");return r.push("box-shadow:"+(h+"px "+c+"px "+l+"px "+u)),t&&a&&r.push((u="opacity"+(l=" "+(h=a)/2+"s "+(c="cubic-bezier(0.23,1,0.32,1)"))+",visibility"+l,e||(l=" "+h+"s "+c,u+=w.transformSupported?","+pD+l:",left"+l+",top"+l),cD+":"+u)),s&&r.push("background-color:"+s),H(["width","color","radius"],function(t){var e="border-"+t,n=Op(e),n=i.get(n);null!=n&&r.push(e+":"+n+("color"===t?"":"px"))}),r.push((o=[],t=(n=p).get("fontSize"),(a=n.getTextColor())&&o.push("color:"+a),o.push("font:"+n.getFont()),t&&o.push("line-height:"+Math.round(3*t/2)+"px"),a=n.get("textShadowColor"),t=n.get("textShadowBlur")||0,e=n.get("textShadowOffsetX")||0,h=n.get("textShadowOffsetY")||0,a&&t&&o.push("text-shadow:"+e+"px "+h+"px "+t+"px "+a),H(["decoration","align"],function(t){var e=n.get(t);e&&o.push("text-"+t+":"+e)}),o.join(";"))),null!=d&&r.push("padding:"+Np(d).join("px ")+"px"),r.join(";")+";"}function yD(t,e,n,i,o){var r,a,s=e&&e.painter;n?(r=s&&s.getViewportRoot())&&(a=t,n=n,ye(ge,r,i,o,!0))&&ye(a,n,ge[0],ge[1]):(t[0]=i,t[1]=o,(r=s&&s.getViewportRootOffset())&&(t[0]+=r.offsetLeft,t[1]+=r.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}vD.prototype.update=function(t){this._container||(i=this._api.getDom(),n="position",n=(e=(e=i).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?n?e[n]:e:null,"absolute"!==(e=i.style).position&&"absolute"!==n&&(e.position="relative"));var e,n,i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},vD.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=dD+gD(t,!this._firstShow,this._longHide)+fD(o[0],o[1],!0)+"border-color:"+Vp(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},vD.prototype.setContent=function(t,e,n,i,o){var r=this.el;if(null==t)r.innerHTML="";else{var a,s,l,u,h,c="";if(X(o)&&"item"===n.get("trigger")&&!sD(n)&&(n=n,i=i,c=X(o=o)&&"inside"!==o?(a=n.get("backgroundColor"),n=n.get("borderWidth"),i=Vp(i),o=o="left"===(o=o)?"right":"right"===o?"left":"top"===o?"bottom":"top",p=Math.max(1.5*Math.round(n),6),s="",l=pD+":",-1<G(["left","right"],o)?(s+="top:50%",l+="translateY(-50%) rotate("+(h="left"==o?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(h="top"==o?225:45)+"deg)"),h=h*Math.PI/180,h=(u=p+n)*Math.abs(Math.cos(h))+u*Math.abs(Math.sin(h)),i=i+" solid "+n+"px;",'<div style="'+["position:absolute;width:"+p+"px;height:"+p+"px;z-index:-1;",(s+=";"+o+":-"+Math.round(100*((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-u)/2))/100+"px")+";"+l+";","border-bottom:"+i,"border-right:"+i,"background-color:"+a+";"].join("")+'"></div>'):""),X(t))r.innerHTML=t+c;else if(t){r.innerHTML="",F(t)||(t=[t]);for(var p,d=0;d<t.length;d++)gt(t[d])&&t[d].parentNode!==r&&r.appendChild(t[d]);c&&r.childNodes.length&&((p=document.createElement("div")).innerHTML=c,r.appendChild(p))}}},vD.prototype.setEnterable=function(t){this._enterable=t},vD.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},vD.prototype.moveTo=function(t,e){var n,i=this._styleCoord;yD(i,this._zr,this._container,t,e),null!=i[0]&&null!=i[1]&&(n=this.el.style,H(fD(i[0],i[1]),function(t){n[t[0]]=t[1]}))},vD.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},vD.prototype.hide=function(){var t=this,e=this.el.style;e.visibility="hidden",e.opacity="0",w.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},vD.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(S(this.hide,this),t)):this.hide())},vD.prototype.isShow=function(){return this._show},vD.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null};var mD=vD;function vD(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,w.wxa)return null;var n=document.createElement("div"),i=(n.domBelongToZr=!0,this.el=n,this._zr=t.getZr()),e=e.appendTo,e=e&&(X(e)?document.querySelector(e):gt(e)?e:C(e)&&e(t.getDom())),o=(yD(this._styleCoord,i,e,t.getWidth()/2,t.getHeight()/2),(e||t.getDom()).appendChild(n),this._api=t,this._container=e,this);n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(t){var e;t=t||window.event,o._enterable||(e=i.handler,Ce(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}xD.prototype.update=function(t){t=t.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},xD.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},xD.prototype.setContent=function(t,e,n,i,o){var r=this,a=(P(t)&&f(""),this.el&&this._zr.remove(this.el),n.getModel("textStyle")),s=(this.el=new Ys({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Zg(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),H(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){r.el.style[t]=n.get(t)}),H(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){r.el.style[t]=a.get(t)||0}),this._zr.add(this.el),this);this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},xD.prototype.setEnterable=function(t){this._enterable=t},xD.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=wD(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},xD.prototype.moveTo=function(t,e){var n,i,o=this.el;o&&(SD(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=bD((i=o.style).borderWidth||0),i=wD(i),o.x=t+n+i.left,o.y=e+n+i.top,o.markRedraw())},xD.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},xD.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},xD.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(S(this.hide,this),t)):this.hide())},xD.prototype.isShow=function(){return this._show},xD.prototype.dispose=function(){this._zr.remove(this.el)};var _D=xD;function xD(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),SD(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function bD(t){return Math.max(0,t)}function wD(t){var e=bD(t.shadowBlur||0),n=bD(t.shadowOffsetX||0),t=bD(t.shadowOffsetY||0);return{left:bD(e-n),right:bD(e+n),top:bD(e-t),bottom:bD(e+t)}}function SD(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var MD,ID=new Vs({shape:{x:-1,y:-1,width:2,height:2}}),TD=(u(CD,MD=ly),CD.prototype.init=function(t,e){var n;!w.node&&e.getDom()&&(t=t.getComponent("tooltip"),n=this._renderMode="auto"===(n=t.get("renderMode"))?w.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===n?new _D(e):new mD(e,{appendTo:t.get("appendToBody",!0)?"body":t.get("appendTo",!0)}))},CD.prototype.render=function(t,e,n){!w.node&&n.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?My(this,"_updatePosition",50,"fixRate"):Iy(this,"_updatePosition"))},CD.prototype._initGlobalListener=function(){var i=this._tooltipModel.get("triggerOn");H2("itemTooltip",this._api,S(function(t,e,n){"none"!==i&&(0<=i.indexOf(t)?this._tryShow(e,n):"leave"===t&&this._hide(n))},this))},CD.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api,o=e.get("triggerOn");null!=this._lastX&&null!=this._lastY&&"none"!==o&&"click"!==o&&(t=this,clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.isDisposed()||t.manuallyShowTip(e,n,i,{x:t._lastX,y:t._lastY,dataByCoordSys:t._lastDataByCoordSys})}))},CD.prototype.manuallyShowTip=function(t,e,n,i){var o,r,a,s;i.from!==this.uid&&!w.node&&n.getDom()&&(o=kD(i,n),this._ticket="",s=i.dataByCoordSys,(r=function(n,t,e){var i=Vr(n).queryOptionMap,o=i.keys()[0];if(o&&"series"!==o){var r,t=Hr(t,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(t)if(e.getViewOfComponentModel(t).group.traverse(function(t){var e=D(t).tooltipConfig;if(e&&e.name===n.name)return r=t,!0}),r)return{componentMainType:o,componentIndex:t.componentIndex,el:r}}}(i,e,n))?((a=r.el.getBoundingRect().clone()).applyTransform(r.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:r.el,position:i.position,positionDefault:"bottom"},o)):i.tooltip&&null!=i.x&&null!=i.y?((a=ID).x=i.x,a.y=i.y,a.update(),D(a).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:a},o)):s?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(a=(r=j2(i,e)).point[0],s=r.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:r.el,position:i.position,positionDefault:"bottom"},o)):null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o)))},CD.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(kD(i,n))},CD.prototype._manuallyAxisShowTip=function(t,e,n,i){var o=i.seriesIndex,r=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=o&&null!=r&&null!=a){a=e.getSeriesByIndex(o);if(a){e=DD([a.getData().getItemModel(r),a,(a.coordinateSystem||{}).model],this._tooltipModel);if("axis"===e.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:i.position}),!0}}},CD.prototype._tryShow=function(t,e){var n,i,o,r=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):r?"legend"!==D(r).ssrType&&(om(r,function(t){return null!=D(t).dataIndex?(i=t,1):null!=D(t).tooltipConfig&&(o=t,1)},!(this._lastDataByCoordSys=null)),i?this._showSeriesItemTooltip(t,i,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},CD.prototype._showOrMove=function(t,e){t=t.get("showDelay");e=S(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},CD.prototype._showAxisTooltip=function(t,e){var u=this._ecModel,h=this._tooltipModel,n=[e.offsetX,e.offsetY],i=DD([e.tooltipOption],h),c=this._renderMode,p=[],d=Bg("section",{blocks:[],noHeader:!0}),f=[],g=new qg,o=(H(t,function(t){H(t.dataByAxis,function(o){var r,a,s=u.getComponent(o.axisDim+"Axis",o.axisIndex),l=o.value;s&&null!=l&&(r=k2(l,s.axis,u,o.seriesDataIndices,o.valueLabelOpt),a=Bg("section",{header:r,noHeader:!It(r),sortBlocks:!0,blocks:[]}),d.blocks.push(a),H(o.seriesDataIndices,function(t){var e,n=u.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,i=n.getDataParams(t);i.dataIndex<0||(i.axisDim=o.axisDim,i.axisIndex=o.axisIndex,i.axisType=o.axisType,i.axisId=o.axisId,i.axisValue=$_(s.axis,{value:l}),i.axisValueLabel=r,i.marker=g.makeTooltipMarker("item",Vp(i.color),c),(e=(t=Gf(n.formatTooltip(t,!0,null))).frag)&&(n=DD([n],h).get("valueFormatter"),a.blocks.push(n?V({valueFormatter:n},e):e)),t.text&&f.push(t.text),p.push(i))}))})}),d.blocks.reverse(),f.reverse(),e.position),e=i.get("order"),e=Wg(d,g,c,e,u.get("useUTC"),i.get("textStyle")),e=(e&&f.unshift(e),"richText"===c?"\n\n":"<br/>"),r=f.join(e);this._showOrMove(i,function(){this._updateContentNotChangedOnAxis(t,p)?this._updatePosition(i,o,n[0],n[1],this._tooltipContent,p):this._showTooltipContent(i,r,p,Math.random()+"",n[0],n[1],o,null,g)})},CD.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s,l=this._ecModel,e=D(e),u=e.seriesIndex,h=l.getSeriesByIndex(u),c=e.dataModel||h,p=e.dataIndex,e=e.dataType,d=c.getData(e),f=this._renderMode,g=t.positionDefault,y=DD([d.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),h=y.get("trigger");null!=h&&"item"!==h||(i=c.getDataParams(p,e),o=new qg,i.marker=o.makeTooltipMarker("item",Vp(i.color),f),g=Gf(c.formatTooltip(p,!1,e)),h=y.get("order"),e=y.get("valueFormatter"),r=g.frag,a=r?Wg(e?V({valueFormatter:e},r):r,o,f,h,l.get("useUTC"),y.get("textStyle")):g.text,s="item_"+c.name+"_"+p,this._showOrMove(y,function(){this._showTooltipContent(y,a,i,s,t.offsetX,t.offsetY,t.position,t.target,o)}),n({type:"showTip",dataIndexInside:p,dataIndex:d.getRawIndex(p),seriesIndex:u,from:this.uid}))},CD.prototype._showComponentItemTooltip=function(e,n,t){var i=D(n),o=i.tooltipConfig.option||{},r=[o=X(o)?{content:o,formatter:o}:o],i=this._ecModel.getComponent(i.componentMainType,i.componentIndex),i=(i&&r.push(i),r.push({formatter:o.content}),e.positionDefault),a=DD(r,this._tooltipModel,i?{position:i}:null),s=a.get("content"),l=Math.random()+"",u=new qg;this._showOrMove(a,function(){var t=y(a.get("formatterParams")||{});this._showTooltipContent(a,s,t,l,e.offsetX,e.offsetY,e.position,n,u)}),t({type:"showTip",from:this.uid})},CD.prototype._showTooltipContent=function(n,t,i,e,o,r,a,s,l){var u,h,c,p,d;this._ticket="",n.get("showContent")&&n.get("show")&&((u=this._tooltipContent).setEnterable(n.get("enterable")),h=n.get("formatter"),a=a||n.get("position"),t=t,c=this._getNearestPoint([o,r],i,n.get("trigger"),n.get("borderColor")).color,h&&(t=X(h)?(p=n.ecModel.get("useUTC"),t=h,Bp(t=(d=F(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?yp(d.axisValue,t,p):t,i,!0)):C(h)?(d=S(function(t,e){t===this._ticket&&(u.setContent(e,l,n,c,a),this._updatePosition(n,a,o,r,u,i,s))},this),this._ticket=e,h(i,e,d)):h),u.setContent(t,l,n,c,a),u.show(n,c),this._updatePosition(n,a,o,r,u,i,s))},CD.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||F(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:F(e)?void 0:{color:i||e.color||e.borderColor}},CD.prototype._updatePosition=function(t,e,n,i,o,r,a){var s,l=this._api.getWidth(),u=this._api.getHeight(),h=(e=e||t.get("position"),o.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),F(e=C(e)?e([n,i],r,o.el,d,{viewSize:[l,u],contentSize:h.slice()}):e)?(n=q(e[0],l),i=q(e[1],u)):P(e)?((r=e).width=h[0],r.height=h[1],n=(r=Zp(r,{width:l,height:u})).x,i=r.y,p=c=null):i=(n=(s=X(e)&&a?function(t,e,n,i){var o=n[0],r=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-o/2,l=e.y+h/2-r/2;break;case"top":s=e.x+u/2-o/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-o/2,l=e.y+h+a;break;case"left":s=e.x-o-a,l=e.y+h/2-r/2;break;case"right":s=e.x+u+a,l=e.y+h/2-r/2}return[s,l]}(e,d,h,t.get("borderWidth")):function(t,e,n,i,o,r,a){var n=n.getSize(),s=n[0],n=n[1];null!=r&&(i<t+s+r+2?t-=s+r:t+=r);null!=a&&(o<e+n+a?e-=n+a:e+=a);return[t,e]}(n,i,o,l,u,c?null:20,p?null:20))[0],s[1]),c&&(n-=AD(c)?h[0]/2:"right"===c?h[0]:0),p&&(i-=AD(p)?h[1]/2:"bottom"===p?h[1]:0),sD(t)&&(r=n,a=i,e=l,d=u,c=(c=o).getSize(),p=c[0],c=c[1],r=Math.min(r+p,e)-p,a=Math.min(a+c,d)-c,r=Math.max(r,0),a=Math.max(a,0),n=(s=[r,a])[0],i=s[1]),o.moveTo(n,i)},CD.prototype._updateContentNotChangedOnAxis=function(n,r){var t=this._lastDataByCoordSys,a=this._cbParamsList,s=!!t&&t.length===n.length;return s&&H(t,function(t,e){var t=t.dataByAxis||[],o=(n[e]||{}).dataByAxis||[];(s=s&&t.length===o.length)&&H(t,function(t,e){var e=o[e]||{},n=t.seriesDataIndices||[],i=e.seriesDataIndices||[];(s=s&&t.value===e.value&&t.axisType===e.axisType&&t.axisId===e.axisId&&n.length===i.length)&&H(n,function(t,e){e=i[e];s=s&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),a&&H(t.seriesDataIndices,function(t){var t=t.seriesIndex,e=r[t],t=a[t];e&&t&&t.data!==e.data&&(s=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!s},CD.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},CD.prototype.dispose=function(t,e){!w.node&&e.getDom()&&(Iy(this,"_updatePosition"),this._tooltipContent.dispose(),Y2("itemTooltip",e))},CD.type="tooltip",CD);function CD(){var t=null!==MD&&MD.apply(this,arguments)||this;return t.type=CD.type,t}function DD(t,e,n){for(var i=e.ecModel,o=n?(o=new Zc(n,i,i),new Zc(e.option,o,i)):e,r=t.length-1;0<=r;r--){var a=t[r];(a=a&&(X(a=a instanceof Zc?a.get("tooltip",!0):a)?{formatter:a}:a))&&(o=new Zc(a,o,i))}return o}function kD(t,e){return t.dispatchAction||S(e.dispatchAction,e)}function AD(t){return"center"===t||"middle"===t}function LD(t,e){if(t)for(var n=F(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return 1}function PD(t){Tr(t,"label",["show"])}r1(function(t){r1(iD),t.registerComponentModel(rD),t.registerComponentView(TD),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},zt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},zt)});var OD,ND=zr(),RD=(u(ED,OD=g),ED.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},ED.prototype.isAnimationEnabled=function(){var t;return!w.node&&(t=this.__hostSeries,this.getShallow("animation"))&&t&&t.isAnimationEnabled()},ED.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},ED.prototype._mergeOption=function(t,i,e,o){var r=this.mainType;e||i.eachSeries(function(t){var e=t.get(this.mainType,!0),n=ND(t)[r];e&&e.data?(n?n._mergeOption(e,i,!0):(o&&PD(e),H(e.data,function(t){t instanceof Array?(PD(t[0]),PD(t[1])):PD(t)}),V(n=this.createMarkerModelFromSeries(e,this,i),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),n.__hostSeries=t),ND(t)[r]=n):ND(t)[r]=null},this)},ED.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t),i=i.getName(t);return Bg("section",{header:this.name,blocks:[Bg("nameValue",{name:i,value:o,noName:!i,noValue:null==o})]})},ED.prototype.getData=function(){return this._data},ED.prototype.setData=function(t){this._data=t},ED.getMarkerModelFromSeries=function(t,e){return ND(t)[e]},ED.type="marker",ED.dependencies=["series","grid","polar","geo"],ED);function ED(){var t=null!==OD&&OD.apply(this,arguments)||this;return t.type=ED.type,t.createdBySelf=!1,t}st(RD,Xc.prototype);u(FD,zD=RD),FD.prototype.createMarkerModelFromSeries=function(t,e,n){return new FD(t,e,n)},FD.type="markPoint",FD.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}};var zD,BD=FD;function FD(){var t=null!==zD&&zD.apply(this,arguments)||this;return t.type=FD.type,t}function VD(t){return!isNaN(parseFloat(t.x))||!isNaN(parseFloat(t.y))}function GD(t,e,n,i,o,r){var a=[],s=Xv(e,i)?e.getCalculationInfo("stackResultDimension"):i,t=ZD(e,s,t),t=e.indicesOfNearest(s,t)[0],o=(a[o]=e.get(n,t),a[r]=e.get(s,t),e.get(i,t)),n=lr(e.get(i,t));return 0<=(n=Math.min(n,20))&&(a[r]=+a[r].toFixed(n)),[a,o]}var HD={min:M(GD,"min"),max:M(GD,"max"),average:M(GD,"average"),median:M(GD,"median")};function WD(t,e){if(e){var n,i=t.getData(),o=t.coordinateSystem,r=o&&o.dimensions;if(n=e,(isNaN(parseFloat(n.x))||isNaN(parseFloat(n.y)))&&!F(e.coord)&&F(r)&&(n=XD(e,i,o,t),(e=y(e)).type&&HD[e.type]&&n.baseAxis&&n.valueAxis?(o=G(r,n.baseAxis.dim),t=G(r,n.valueAxis.dim),n=HD[e.type](i,n.baseDataDim,n.valueDataDim,o,t),e.coord=n[0],e.value=n[1]):e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]),null!=e.coord&&F(r))for(var a=e.coord,s=0;s<2;s++)HD[a[s]]&&(a[s]=ZD(i,i.mapDimension(r[s]),a[s]));else e.coord=[];return e}}function XD(t,e,n,i){var o={};return null!=t.valueIndex||null!=t.valueDim?(o.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,o.valueAxis=n.getAxis(function(t,e){t=t.getData().getDimensionInfo(e);return t&&t.coordDim}(i,o.valueDataDim)),o.baseAxis=n.getOtherAxis(o.valueAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim)):(o.baseAxis=i.getBaseAxis(),o.valueAxis=n.getOtherAxis(o.baseAxis),o.baseDataDim=e.mapDimension(o.baseAxis.dim),o.valueDataDim=e.mapDimension(o.valueAxis.dim)),o}function YD(t,e){return!(t&&t.containData&&e.coord&&!VD(e))||t.containData(e.coord)}function UD(t,o){return t?function(t,e,n,i){return tg(i<2?t.coord&&t.coord[i]:t.value,o[i])}:function(t,e,n,i){return tg(t.value,o[i])}}function ZD(t,e,n){var i,o;return"average"===n?(o=i=0,t.each(e,function(t,e){isNaN(t)||(i+=t,o++)}),i/o):"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var qD,jD=zr(),Bc=(u(KD,qD=ly),KD.prototype.init=function(){this.markerGroupMap=N()},KD.prototype.render=function(t,n,i){var o=this,e=this.markerGroupMap;e.each(function(t){jD(t).keep=!1}),n.eachSeries(function(t){var e=RD.getMarkerModelFromSeries(t,o.type);e&&o.renderSeries(t,e,n,i)}),e.each(function(t){jD(t).keep||o.group.remove(t.group)})},KD.prototype.markKeep=function(t){jD(t).keep=!0},KD.prototype.toggleBlurSeries=function(t,e){var n=this;H(t,function(t){t=RD.getMarkerModelFromSeries(t,n.type);t&&t.getData().eachItemGraphicEl(function(t){t&&(e?Rl:El)(t)})})},KD.type="marker",KD);function KD(){var t=null!==qD&&qD.apply(this,arguments)||this;return t.type=KD.type,t}function $D(a,s,l){var u=s.coordinateSystem;a.each(function(t){var e,n,i,o=a.getItemModel(t),r=q(o.get("x"),l.getWidth()),o=q(o.get("y"),l.getHeight());isNaN(r)||isNaN(o)?s.getMarkerPosition?i=s.getMarkerPosition(a.getValues(a.dimensions,t)):u&&(e=a.get(u.dimensions[0],t),n=a.get(u.dimensions[1],t),i=u.dataToPoint([e,n])):i=[r,o],isNaN(r)||(i[0]=r),isNaN(o)||(i[1]=o),a.setItemLayout(t,i)})}u(tk,QD=Bc),tk.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=RD.getMarkerModelFromSeries(t,"markPoint");e&&($D(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},tk.prototype.renderSeries=function(t,u,e,n){var i=t.coordinateSystem,o=t.id,h=t.getData(),r=this.markerGroupMap,r=r.get(o)||r.set(o,new Ab),c=function(t,e,n){var i;i=t?B(t&&t.dimensions,function(t){return V(V({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var o=new Bv(i,n),n=B(n.get("data"),M(WD,e));t&&(n=ht(n,M(YD,t)));t=UD(!!t,i);return o.initData(n,null,t),o}(i,t,u);u.setData(c),$D(u.getData(),t,n),c.each(function(t){var e=c.getItemModel(t),n=e.getShallow("symbol"),i=e.getShallow("symbolSize"),o=e.getShallow("symbolRotate"),r=e.getShallow("symbolOffset"),a=e.getShallow("symbolKeepAspect"),s=((C(n)||C(i)||C(o)||C(r))&&(s=u.getRawValue(t),l=u.getDataParams(t),C(n)&&(n=n(s,l)),C(i)&&(i=i(s,l)),C(o)&&(o=o(s,l)),C(r))&&(r=r(s,l)),e.getModel("itemStyle").getItemStyle()),l=em(h,"color");s.fill||(s.fill=l),c.setItemVisual(t,{symbol:n,symbolSize:i,symbolRotate:o,symbolOffset:r,symbolKeepAspect:a,style:s})}),r.updateData(c),this.group.add(r.group),c.eachItemGraphicEl(function(t){t.traverse(function(t){D(t).dataModel=u})}),this.markKeep(r),r.group.silent=u.get("silent")||t.get("silent")},tk.type="markPoint";var QD,JD=tk;function tk(){var t=null!==QD&&QD.apply(this,arguments)||this;return t.type=tk.type,t}r1(function(t){t.registerComponentModel(BD),t.registerComponentView(JD),t.registerPreprocessor(function(t){LD(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})});u(ik,ek=RD),ik.prototype.createMarkerModelFromSeries=function(t,e,n){return new ik(t,e,n)},ik.type="markLine",ik.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"};var ek,nk=ik;function ik(){var t=null!==ek&&ek.apply(this,arguments)||this;return t.type=ik.type,t}function ok(t,e,n,i){var o,r,a,s,l=t.getData();return(e=[WD(t,(n=F(i)?i:"min"===(o=i.type)||"max"===o||"average"===o||"median"===o||null!=i.xAxis||null!=i.yAxis?(r=s=void 0,r=null!=i.yAxis||null!=i.xAxis?(s=e.getAxis(null!=i.yAxis?"y":"x"),xt(i.yAxis,i.xAxis)):(s=(e=XD(i,l,e,t)).valueAxis,ZD(l,Yv(l,e.valueDataDim),o)),e=1-(l="x"===s.dim?0:1),s={coord:[]},(a=y(i)).type=null,a.coord=[],a.coord[e]=-1/0,s.coord[e]=1/0,0<=(e=n.get("precision"))&&Y(r)&&(r=+r.toFixed(Math.min(e,20))),a.coord[l]=s.coord[l]=r,[a,s,{type:o,valueIndex:i.valueIndex,value:r}]):[])[0]),WD(t,n[1]),V({},n[2])])[2].type=e[2].type||null,d(e[2],e[0]),d(e[2],e[1]),e}var rk=zr();function ak(t){return!isNaN(t)&&!isFinite(t)}function sk(t,e,n,i){var o=1-t,r=i.dimensions[t];return ak(e[o])&&ak(n[o])&&e[t]===n[t]&&i.getAxis(r).containData(e[t])}function lk(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(sk(1,n,i,t)||sk(0,n,i,t)))return!0}return YD(t,e[0])&&YD(t,e[1])}function uk(t,e,n,i,o){var r,a,s=i.coordinateSystem,l=t.getItemModel(e),u=q(l.get("x"),o.getWidth()),l=q(l.get("y"),o.getHeight());isNaN(u)||isNaN(l)?(r=i.getMarkerPosition?i.getMarkerPosition(t.getValues(t.dimensions,e)):(a=s.dimensions,o=t.get(a[0],e),i=t.get(a[1],e),s.dataToPoint([o,i])),Ux(s,"cartesian2d")&&(o=s.getAxis("x"),i=s.getAxis("y"),a=s.dimensions,ak(t.get(a[0],e))?r[0]=o.toGlobalCoord(o.getExtent()[n?0:1]):ak(t.get(a[1],e))&&(r[1]=i.toGlobalCoord(i.getExtent()[n?0:1]))),isNaN(u)||(r[0]=u),isNaN(l)||(r[1]=l)):r=[u,l],t.setItemLayout(e,r)}u(pk,hk=Bc),pk.prototype.updateTransform=function(t,e,r){e.eachSeries(function(e){var n,i,o,t=RD.getMarkerModelFromSeries(e,"markLine");t&&(n=t.getData(),i=rk(t).from,o=rk(t).to,i.each(function(t){uk(i,t,!0,e,r),uk(o,t,!1,e,r)}),n.each(function(t){n.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(e.id).updateLayout())},this)},pk.prototype.renderSeries=function(r,e,t,a){var n=r.coordinateSystem,i=r.id,s=r.getData(),o=this.markerGroupMap,o=o.get(i)||o.set(i,new lI),i=(this.group.add(o.group),function(t,e,n){var i;i=t?B(t&&t.dimensions,function(t){return V(V({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}];var o=new Bv(i,n),r=new Bv(i,n),a=new Bv([],n),n=B(n.get("data"),M(ok,e,t,n));t&&(n=ht(n,M(lk,t)));t=UD(!!t,i);return o.initData(B(n,function(t){return t[0]}),null,t),r.initData(B(n,function(t){return t[1]}),null,t),a.initData(B(n,function(t){return t[2]})),a.hasItemOption=!0,{from:o,to:r,line:a}}(n,r,e)),l=i.from,u=i.to,h=i.line,c=(rk(e).from=l,rk(e).to=u,e.setData(h),e.get("symbol")),p=e.get("symbolSize"),d=e.get("symbolRotate"),f=e.get("symbolOffset");function g(t,e,n){var i=t.getItemModel(e),o=(uk(t,e,n,r,a),i.getModel("itemStyle").getItemStyle());null==o.fill&&(o.fill=em(s,"color")),t.setItemVisual(e,{symbolKeepAspect:i.get("symbolKeepAspect"),symbolOffset:O(i.get("symbolOffset",!0),f[n?0:1]),symbolRotate:O(i.get("symbolRotate",!0),d[n?0:1]),symbolSize:O(i.get("symbolSize"),p[n?0:1]),symbol:O(i.get("symbol",!0),c[n?0:1]),style:o})}F(c)||(c=[c,c]),F(p)||(p=[p,p]),F(d)||(d=[d,d]),F(f)||(f=[f,f]),i.from.each(function(t){g(l,t,!0),g(u,t,!1)}),h.each(function(t){var e=h.getItemModel(t).getModel("lineStyle").getLineStyle();h.setItemLayout(t,[l.getItemLayout(t),u.getItemLayout(t)]),null==e.stroke&&(e.stroke=l.getItemVisual(t,"style").fill),h.setItemVisual(t,{fromSymbolKeepAspect:l.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:l.getItemVisual(t,"symbolOffset"),fromSymbolRotate:l.getItemVisual(t,"symbolRotate"),fromSymbolSize:l.getItemVisual(t,"symbolSize"),fromSymbol:l.getItemVisual(t,"symbol"),toSymbolKeepAspect:u.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:u.getItemVisual(t,"symbolOffset"),toSymbolRotate:u.getItemVisual(t,"symbolRotate"),toSymbolSize:u.getItemVisual(t,"symbolSize"),toSymbol:u.getItemVisual(t,"symbol"),style:e})}),o.updateData(h),i.line.eachItemGraphicEl(function(t){D(t).dataModel=e,t.traverse(function(t){D(t).dataModel=e})}),this.markKeep(o),o.group.silent=e.get("silent")||r.get("silent")},pk.type="markLine";var hk,ck=pk;function pk(){var t=null!==hk&&hk.apply(this,arguments)||this;return t.type=pk.type,t}r1(function(t){t.registerComponentModel(nk),t.registerComponentView(ck),t.registerPreprocessor(function(t){LD(t.series,"markLine")&&(t.markLine=t.markLine||{})})});u(gk,dk=RD),gk.prototype.createMarkerModelFromSeries=function(t,e,n){return new gk(t,e,n)},gk.type="markArea",gk.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}};var dk,fk=gk;function gk(){var t=null!==dk&&dk.apply(this,arguments)||this;return t.type=gk.type,t}function yk(t,e,n,i){var o,r=i[0],i=i[1];if(r&&i)return r=WD(t,r),t=WD(t,i),i=r.coord,o=t.coord,i[0]=xt(i[0],-1/0),i[1]=xt(i[1],-1/0),o[0]=xt(o[0],1/0),o[1]=xt(o[1],1/0),(i=ot([{},r,t])).coord=[r.coord,t.coord],i.x0=r.x,i.y0=r.y,i.x1=t.x,i.y1=t.y,i}var mk=zr();function vk(t){return!isNaN(t)&&!isFinite(t)}function _k(t,e,n){t=1-t;return vk(e[t])&&vk(n[t])}function xk(t,e){var n,i,o,r=e.coord[0],a=e.coord[1],s={coord:r,x:e.x0,y:e.y0},e={coord:a,x:e.x1,y:e.y1};return Ux(t,"cartesian2d")?!((!r||!a||!_k(1,r,a)&&!_k(0,r,a))&&(i=s,o=e,n=t)&&n.containZone&&i.coord&&o.coord&&!VD(i)&&!VD(o))||n.containZone(i.coord,o.coord):YD(t,s)||YD(t,e)}function bk(t,e,n,i,o){var r,a,s,l,u,h,c=i.coordinateSystem,p=t.getItemModel(e),d=q(p.get(n[0]),o.getWidth()),p=q(p.get(n[1]),o.getHeight());return isNaN(d)||isNaN(p)?(h=i.getMarkerPosition?(o=t.getValues(["x0","y0"],e),s=t.getValues(["x1","y1"],e),a=c.clampData(o),h=c.clampData(s),r=[],"x0"===n[0]?r[0]=(a[0]>h[0]?s:o)[0]:r[0]=(a[0]>h[0]?o:s)[0],"y0"===n[1]?r[1]=(a[1]>h[1]?s:o)[1]:r[1]=(a[1]>h[1]?o:s)[1],i.getMarkerPosition(r,n,!0)):(a=[l=t.get(n[0],e),u=t.get(n[1],e)],c.clampData&&c.clampData(a,a),c.dataToPoint(a,!0)),Ux(c,"cartesian2d")&&(o=c.getAxis("x"),s=c.getAxis("y"),l=t.get(n[0],e),u=t.get(n[1],e),vk(l)?h[0]=o.toGlobalCoord(o.getExtent()["x0"===n[0]?0:1]):vk(u)&&(h[1]=s.toGlobalCoord(s.getExtent()["y0"===n[1]?0:1]))),isNaN(d)||(h[0]=d),isNaN(p)||(h[1]=p)):h=[d,p],h}var wk,Sk=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Mk=(u(Ik,wk=Bc),Ik.prototype.updateTransform=function(t,e,o){e.eachSeries(function(n){var i,t=RD.getMarkerModelFromSeries(n,"markArea");t&&(i=t.getData()).each(function(e){var t=B(Sk,function(t){return bk(i,e,t,n,o)});i.setItemLayout(e,t),i.getItemGraphicEl(e).setShape("points",t)})},this)},Ik.prototype.renderSeries=function(a,o,t,s){var l=a.coordinateSystem,e=a.id,u=a.getData(),n=this.markerGroupMap,i=n.get(e)||n.set(e,{group:new Zo}),h=(this.group.add(i.group),this.markKeep(i),function(t,n,e){var i,o;{var r;i=t?(r=B(t&&t.dimensions,function(t){var e=n.getData();return V(V({},e.getDimensionInfo(e.mapDimension(t))||{}),{name:t,ordinalMeta:null})}),o=B(["x0","y0","x1","y1"],function(t,e){return{name:t,type:r[e%2].type}}),new Bv(o,e)):new Bv(o=[{name:"value",type:"float"}],e)}e=B(e.get("data"),M(yk,n,t,e));t&&(e=ht(e,M(xk,t)));t=t?function(t,e,n,i){return tg(t.coord[Math.floor(i/2)][i%2],o[i])}:function(t,e,n,i){return tg(t.value,o[i])};return i.initData(e,null,t),i.hasItemOption=!0,i}(l,a,o));o.setData(h),h.each(function(e){var t=B(Sk,function(t){return bk(h,e,t,a,s)}),n=l.getAxis("x").scale,i=l.getAxis("y").scale,o=n.getExtent(),r=i.getExtent(),n=[n.parse(h.get("x0",e)),n.parse(h.get("x1",e))],i=[i.parse(h.get("y0",e)),i.parse(h.get("y1",e))],o=(sr(n),sr(i),!(o[0]>n[1]||o[1]<n[0]||r[0]>i[1]||r[1]<i[0])),n=(h.setItemLayout(e,{points:t,allClipped:!o}),h.getItemModel(e).getModel("itemStyle").getItemStyle()),r=em(u,"color");n.fill||(n.fill=r,X(n.fill)&&(n.fill=Mi(n.fill,.4))),n.stroke||(n.stroke=r),h.setItemVisual(e,"style",n)}),h.diff(mk(i).data).add(function(t){var e=h.getItemLayout(t);e.allClipped||(e=new Ku({shape:{points:e.points}}),h.setItemGraphicEl(t,e),i.group.add(e))}).update(function(t,e){var e=mk(i).data.getItemGraphicEl(e),n=h.getItemLayout(t);n.allClipped?e&&i.group.remove(e):(e?Vh(e,{shape:{points:n.points}},o,t):e=new Ku({shape:{points:n.points}}),h.setItemGraphicEl(t,e),i.group.add(e))}).remove(function(t){t=mk(i).data.getItemGraphicEl(t);i.group.remove(t)}).execute(),h.eachItemGraphicEl(function(t,e){var n=h.getItemModel(e),i=h.getItemVisual(e,"style");t.useStyle(h.getItemVisual(e,"style")),Sc(t,Mc(n),{labelFetcher:o,labelDataIndex:e,defaultText:h.getName(e)||"",inheritColor:X(i.fill)?Mi(i.fill,1):"#000"}),jl(t,n),Ul(t,null,null,n.get(["emphasis","disabled"])),D(t).dataModel=o}),mk(i).data=h,i.group.silent=o.get("silent")||a.get("silent")},Ik.type="markArea",Ik);function Ik(){var t=null!==wk&&wk.apply(this,arguments)||this;return t.type=Ik.type,t}r1(function(t){t.registerComponentModel(fk),t.registerComponentView(Mk),t.registerPreprocessor(function(t){LD(t.series,"markArea")&&(t.markArea=t.markArea||{})})});u(Ck,Tk=g),Ck.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},Ck.prototype.mergeOption=function(t){Tk.prototype.mergeOption.apply(this,arguments),this._initData()},Ck.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t=e<=t?e-1:t)<0&&(t=0),this.option.currentIndex=t},Ck.prototype.getCurrentIndex=function(){return this.option.currentIndex},Ck.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},Ck.prototype.setPlayState=function(t){this.option.autoPlay=!!t},Ck.prototype.getPlayState=function(){return!!this.option.autoPlay},Ck.prototype._initData=function(){var o,t=this.option,e=t.data||[],t=t.axisType,r=this._names=[],e=("category"===t?(o=[],H(e,function(t,e){var n,i=Pr(Dr(t),"");P(t)?(n=y(t)).value=e:n=e,o.push(n),r.push(i)})):o=e,{category:"ordinal",time:"time",value:"number"}[t]||"number");(this._data=new Bv([{name:"value",type:e}],this)).initData(o,r)},Ck.prototype.getData=function(){return this._data},Ck.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},Ck.type="timeline",Ck.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]};var Tk,$r=Ck;function Ck(){var t=null!==Tk&&Tk.apply(this,arguments)||this;return t.type=Ck.type,t.layoutMode="box",t}u(Ak,Dk=$r),Ak.type="timeline.slider",Ak.defaultOption=$c($r.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]});var Dk,kk=Ak;function Ak(){var t=null!==Dk&&Dk.apply(this,arguments)||this;return t.type=Ak.type,t}st(kk,Xc.prototype);u(Pk,Lk=ly),Pk.type="timeline";var Lk,sm=Pk;function Pk(){var t=null!==Lk&&Lk.apply(this,arguments)||this;return t.type=Pk.type,t}u(Rk,Ok=Hc),Rk.prototype.getLabelModel=function(){return this.model.getModel("label")},Rk.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")};var Ok,Nk=Rk;function Rk(t,e,n,i){t=Ok.call(this,t,e,n)||this;return t.type=i||"value",t}var Ek,zk=Math.PI,Bk=zr(),Fk=(u(Vk,Ek=sm),Vk.prototype.init=function(t,e){this.api=e},Vk.prototype.render=function(e,t,n){var i,o,r;this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)&&(i=this._layout(e,n),o=this._createGroup("_mainGroup"),t=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,e),e.formatTooltip=function(t){return Bg("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},H(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](i,o,r,e)},this),this._renderAxisLabel(i,t,r,e),this._position(i,e)),this._doPlayStop(),this._updateTicksStatus()},Vk.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},Vk.prototype.dispose=function(){this._clearTimer()},Vk.prototype._layout=function(t,e){var n,i,o,r=t.get(["label","position"]),a=t.get("orient"),s=(s=e,Zp((l=t).getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()},l.get("padding"))),l=null==r||"auto"===r?"horizontal"===a?s.y+s.height/2<e.getHeight()/2?"-":"+":s.x+s.width/2<e.getWidth()/2?"+":"-":X(r)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][r]:r,e={horizontal:"center",vertical:0<=l||"+"===l?"left":"right"},r={horizontal:0<=l||"+"===l?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:zk/2},h="vertical"===a?s.height:s.width,c=t.getModel("controlStyle"),p=c.get("show",!0),d=p?c.get("itemSize"):0,f=p?c.get("itemGap"):0,g=d+f,y=(t.get(["label","rotate"])||0)*zk/180,m=c.get("position",!0),v=p&&c.get("showPlayBtn",!0),_=p&&c.get("showPrevBtn",!0),p=p&&c.get("showNextBtn",!0),c=0,x=h,m=("left"===m||"bottom"===m?(v&&(n=[0,0],c+=g),_&&(i=[c,0],c+=g)):(v&&(n=[x-d,0],x-=g),_&&(i=[0,0],c+=g)),p&&(o=[x-d,0],x-=g),[c,x]);return t.get("inverse")&&m.reverse(),{viewRect:s,mainLength:h,orient:a,rotation:u[a],labelRotation:y,labelPosOpt:l,labelAlign:t.get(["label","align"])||e[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||r[a],playPosition:n,prevBtnPosition:i,nextBtnPosition:o,axisExtent:m,controlSize:d,controlGap:f}},Vk.prototype._position=function(t,e){var n,i=this._mainGroup,o=this._labelGroup,r=t.viewRect,a=("vertical"===t.orient&&(Be(u=Ne(),u,[-(s=r.x),-(l=r.y+r.height)]),Fe(u,u,-zk/2),Be(u,u,[s,l]),(r=r.clone()).applyTransform(u)),p(r)),s=p(i.getBoundingRect()),l=p(o.getBoundingRect()),u=[i.x,i.y],r=[o.x,o.y],h=(r[0]=u[0]=a[0][0],t.labelPosOpt);function c(t){t.originX=a[0][0]-t.x,t.originY=a[1][0]-t.y}function p(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function d(t,e,n,i,o){t[i]+=n[i][o]-e[i][o]}null==h||X(h)?(d(u,s,a,1,n="+"===h?0:1),d(r,l,a,1,1-n)):(d(u,s,a,1,n=0<=h?0:1),r[1]=u[1]+h),i.setPosition(u),o.setPosition(r),i.rotation=o.rotation=t.rotation,c(i),c(o)},Vk.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),o=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new l_({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new C_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new p_}}(e,i),r=(o.getTicks=function(){return n.mapArray(["value"],function(t){return{value:t}})},n.getDataExtent("value")),r=(o.setExtent(r[0],r[1]),o.calcNiceTicks(),new Nk("value",o,t.axisExtent,i));return r.model=e,r},Vk.prototype._createGroup=function(t){t=this[t]=new Zo;return this.group.add(t),t},Vk.prototype._renderAxisLine=function(t,e,n,i){var o,n=n.getExtent();i.get(["lineStyle","show"])&&(o=new rh({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:V({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}),e.add(o),n=this._progressLine=new rh({shape:{x1:n[0],x2:this._currentPointer?this._currentPointer.x:n[0],y1:0,y2:0},style:z({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1}),e.add(n))},Vk.prototype._renderAxisTick=function(t,a,s,l){var u=this,h=l.getData(),e=s.scale.getTicks();this._tickSymbols=[],H(e,function(t){var e=s.dataToCoord(t.value),n=h.getItemModel(t.value),i=n.getModel("itemStyle"),o=n.getModel(["emphasis","itemStyle"]),r=n.getModel(["progress","itemStyle"]),e={x:e,y:0,onclick:S(u._changeTimeline,u,t.value)},i=Gk(n,i,a,e),e=(i.ensureState("emphasis").style=o.getItemStyle(),i.ensureState("progress").style=r.getItemStyle(),Yl(i),D(i));n.get("tooltip")?(e.dataIndex=t.value,e.dataModel=l):e.dataIndex=e.dataModel=null,u._tickSymbols.push(i)})},Vk.prototype._renderAxisLabel=function(a,s,l,t){var u,h=this;l.getLabelModel().get("show")&&(u=t.getData(),t=l.getViewLabels(),this._tickLabels=[],H(t,function(t){var e=t.tickValue,n=u.getItemModel(e),i=n.getModel("label"),o=n.getModel(["emphasis","label"]),n=n.getModel(["progress","label"]),r=l.dataToCoord(t.tickValue),r=new Ys({x:r,y:0,rotation:a.labelRotation-a.rotation,onclick:S(h._changeTimeline,h,e),silent:!1,style:Ic(i,{text:t.formattedLabel,align:a.labelAlign,verticalAlign:a.labelBaseline})});r.ensureState("emphasis").style=Ic(o),r.ensureState("progress").style=Ic(n),s.add(r),Yl(r),Bk(r).dataIndex=e,h._tickLabels.push(r)}))},Vk.prototype._renderControl=function(t,r,e,a){var s=t.controlSize,l=t.rotation,u=a.getModel("controlStyle").getItemStyle(),h=a.getModel(["emphasis","controlStyle"]).getItemStyle(),n=a.getPlayState(),i=a.get("inverse",!0);function o(t,e,n,i){var o;t&&(o=Oo(O(a.get(["controlStyle",e+"BtnSize"]),s),s),(e=function(t,e,n,i){var o=i.style,t=fc(t.get(["controlStyle",e]),i||{},new Z(n[0],n[1],n[2],n[3]));o&&t.setStyle(o);return t}(a,e+"Icon",[0,-o/2,o,o],{x:t[0],y:t[1],originX:s/2,originY:0,rotation:i?-l:0,rectHover:!0,style:u,onclick:n})).ensureState("emphasis").style=h,r.add(e),Yl(e))}o(t.nextBtnPosition,"next",S(this._changeTimeline,this,i?"-":"+")),o(t.prevBtnPosition,"prev",S(this._changeTimeline,this,i?"+":"-")),o(t.playPosition,n?"stop":"play",S(this._handlePlayClick,this,!n),!0)},Vk.prototype._renderCurrentPointer=function(t,e,n,i){var o=i.getData(),r=i.getCurrentIndex(),o=o.getItemModel(r).getModel("checkpointStyle"),a=this;this._currentPointer=Gk(o,o,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=S(a._handlePointerDrag,a),t.ondragend=S(a._handlePointerDragend,a),Hk(t,a._progressLine,r,n,i,!0)},onUpdate:function(t){Hk(t,a._progressLine,r,n,i)}})},Vk.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},Vk.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},Vk.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},Vk.prototype._pointerChangeTimeline=function(t,e){var t=this._toAxisCoord(t)[0],n=sr(this._axis.getExtent().slice()),n=((t=t>n[1]?n[1]:t)<n[0]&&(t=n[0]),this._currentPointer.x=t,this._currentPointer.markRedraw(),this._progressLine),n=(n&&(n.shape.x2=t,n.dirty()),this._findNearestTick(t)),t=this.model;(e||n!==t.getCurrentIndex()&&t.get("realtime"))&&this._changeTimeline(n)},Vk.prototype._doPlayStop=function(){var e=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var t=e.model;e._changeTimeline(t.getCurrentIndex()+(t.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},Vk.prototype._toAxisCoord=function(t){return uc(t,this._mainGroup.getLocalTransform(),!0)},Vk.prototype._findNearestTick=function(n){var i,t=this.model.getData(),o=1/0,r=this._axis;return t.each(["value"],function(t,e){t=r.dataToCoord(t),t=Math.abs(t-n);t<o&&(o=t,i=e)}),i},Vk.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},Vk.prototype._changeTimeline=function(t){var e=this.model.getCurrentIndex();"+"===t?t=e+1:"-"===t&&(t=e-1),this.api.dispatchAction({type:"timelineChange",currentIndex:t,from:this.uid})},Vk.prototype._updateTicksStatus=function(){var t=this.model.getCurrentIndex(),e=this._tickSymbols,n=this._tickLabels;if(e)for(var i=0;i<e.length;i++)e&&e[i]&&e[i].toggleState("progress",i<t);if(n)for(i=0;i<n.length;i++)n&&n[i]&&n[i].toggleState("progress",Bk(n[i]).dataIndex<=t)},Vk.type="timeline.slider",Vk);function Vk(){var t=null!==Ek&&Ek.apply(this,arguments)||this;return t.type=Vk.type,t}function Gk(t,e,n,i,o,r){var a=e.get("color"),a=(o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=mm(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(o),r&&r.onCreate(o)),e.getItemStyle(["color"])),n=(o.setStyle(a),i=d({rectHover:!0,z2:100},i,!0),vm(t.get("symbolSize"))),r=(i.scaleX=n[0]/2,i.scaleY=n[1]/2,_m(t.get("symbolOffset"),n)),e=(r&&(i.x=(i.x||0)+r[0],i.y=(i.y||0)+r[1]),t.get("symbolRotate"));return i.rotation=(e||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function Hk(t,e,n,i,o,r){var a;t.dragging||(a=o.getModel("checkpointStyle"),i=i.dataToCoord(o.getData().get("value",n)),r||!a.get("animation",!0)?(t.attr({x:i,y:0}),e&&e.attr({shape:{x2:i}})):(o={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)},t.stopAnimation(null,!0),t.animateTo({x:i,y:0},o),e&&e.animateTo({shape:{x2:i}},o)))}function Wk(t){t=t&&t.timeline;H(t=F(t)?t:t?[t]:[],function(t){var e,n;t&&(e=(t=t).type,(n={number:"value",time:"time"})[e]&&(t.axisType=n[e],delete t.type),Xk(t),Yk(t,"controlPosition")&&(Yk(n=t.controlStyle||(t.controlStyle={}),"position")||(n.position=t.controlPosition),"none"!==n.position||Yk(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition),H(t.data||[],function(t){P(t)&&!F(t)&&(!Yk(t,"value")&&Yk(t,"name")&&(t.value=t.name),Xk(t))}))})}function Xk(t){var e=t.itemStyle||(t.itemStyle={}),e=e.emphasis||(e.emphasis={}),t=t.label||t.label||{},n=t.normal||(t.normal={}),i={normal:1,emphasis:1};H(t,function(t,e){i[e]||Yk(n,e)||(n[e]=t)}),e.label&&!Yk(t,"emphasis")&&(t.emphasis=e.label,delete e.label)}function Yk(t,e){return t.hasOwnProperty(e)}function Uk(e,t){var n;return H(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}r1(function(t){var e;t.registerComponentModel(kk),t.registerComponentView(Fk),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),(e=t).registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e,n){var i=e.getComponent("timeline");return i&&null!=t.currentIndex&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0))&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from})),e.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),z({currentIndex:i.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){e=e.getComponent("timeline");e&&null!=t.playState&&e.setPlayState(t.playState)}),t.registerPreprocessor(Wk)});var Zk=["transition","enterFrom","leaveTo"],qk=Zk.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function jk(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?Zk:qk,o=0;o<i.length;o++){var r=i[o];null==t[r]&&null!=e[r]&&(t[r]=e[r])}}u(Qk,Kk=g),Qk.prototype.mergeOption=function(t,e){var n=this.option.elements;this.option.elements=null,Kk.prototype.mergeOption.call(this,t,e),this.option.elements=n},Qk.prototype.optionUpdated=function(t,e){var n=this.option,t=(e?n:t).elements,l=n.elements=e?[]:n.elements,e=[],t=(this._flatten(t,e,null),kr(l,e,"normalMerge")),u=this._elOptionsToUpdate=[];H(t,function(t,e){var n,i,o,r,a,s=t.newOption;s&&(u.push(s),r=s,n=(t=t).existing,r.id=t.keyInfo.id,!r.type&&n&&(r.type=n.type),null==r.parentId&&((t=r.parentOption)?r.parentId=t.id:n&&(r.parentId=n.parentId)),r.parentOption=null,t=l,n=e,a=V({},r=s),i=t[n],"merge"===(o=r.$action||"merge")?i?(d(i,a,!0),jp(i,a,{ignoreSize:!0}),$p(r,i),jk(r,i),jk(r,i,"shape"),jk(r,i,"style"),jk(r,i,"extra"),r.clipPath=i.clipPath):t[n]=a:"replace"===o?t[n]=a:"remove"===o&&i&&(t[n]=null),r=l[e],a=s,r)&&(r.hv=a.hv=[Uk(a,["left","right"]),Uk(a,["top","bottom"])],"group"===r.type)&&(a=a,null==(r=r).width&&(r.width=a.width=0),null==r.height)&&(r.height=a.height=0)},this),n.elements=ht(l,function(t){return t&&delete t.$action,null!=t})},Qk.prototype._flatten=function(t,n,i){H(t,function(t){var e;t&&(i&&(t.parentOption=i),n.push(t),(e=t.children)&&e.length&&this._flatten(e,n,t),delete t.children)},this)},Qk.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},Qk.type="graphic",Qk.defaultOption={elements:[]};var Kk,$k=Qk;function Qk(){var t=null!==Kk&&Kk.apply(this,arguments)||this;return t.type=Qk.type,t.preventAutoZ=!0,t}var Jk,tA={path:null,compoundPath:null,group:Zo,image:Ls,text:Ys},eA=zr(),nA=(u(iA,Jk=ly),iA.prototype.init=function(){this._elMap=N()},iA.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},iA.prototype._updateElements=function(d){var f,g,y,m,t=d.useElOptionsToUpdate();t&&(f=this._elMap,g=this.group,y=d.get("z"),m=d.get("zlevel"),H(t,function(t){var e,n,i,o=Pr(t.id,null),r=null!=o?f.get(o):null,a=Pr(t.parentId,null),a=null!=a?f.get(a):g,s=t.type,l=t.style,u=("text"===s&&l&&t.hv&&t.hv[1]&&(l.textVerticalAlign=l.textBaseline=l.verticalAlign=l.align=null),t.textContent),h=t.textConfig,s=(l&&ZI(l,s,!!h,!!u)&&(l=qI(l,s,!0),!h&&l.textConfig&&(h=t.textConfig=l.textConfig),!u)&&l.textContent&&(u=l.textContent),e=V({},e=t),H(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Wp),function(t){delete e[t]}),e),l=t.$action||"merge",c="merge"===l,p="replace"===l,a=(c?((i=!(n=r))?n=rA(o,a,t.type,f):(n&&(eA(n).isNew=!1),fT(n)),n&&(iT(n,s,d,{isInit:i}),sA(n,t,y,m))):p?(aA(r,t,f,d),(n=rA(o,a,t.type,f))&&(iT(n,s,d,{isInit:!0}),sA(n,t,y,m))):"remove"===l&&(oT(r,t),aA(r,t,f,d)),f.get(o));a&&u&&(c?(s=a.getTextContent())?s.attr(u):a.setTextContent(new Ys(u)):p&&a.setTextContent(new Ys(u))),a&&((n=t.clipPath)&&(l=n.type,r=void 0,i=!1,c?r=(i=!(o=a.getClipPath())||eA(o).type!==l)?oA(l):o:p&&(i=!0,r=oA(l)),a.setClipPath(r),iT(r,n,d,{isInit:i}),gT(r,n.keyframeAnimation,d)),s=eA(a),a.setTextConfig(h),s.option=t,u=d,c=t,p=D(o=a).eventData,(p=o.silent||o.ignore?p:p||(D(o).eventData={componentType:"graphic",componentIndex:u.componentIndex,name:o.name}))&&(p.info=c.info),yc({el:a,componentModel:d,itemName:a.name,itemTooltipOption:t.tooltip}),gT(a,t.keyframeAnimation,d))}))},iA.prototype._relocate=function(t,e){for(var n,i,o=t.option.elements,r=this.group,a=this._elMap,s=e.getWidth(),l=e.getHeight(),u=["x","y"],h=0;h<o.length;h++)(d=null!=(p=Pr((c=o[h]).id,null))?a.get(p):null)&&d.isGroup&&(n=(f=d.parent)===r,i=eA(d),g=eA(f),i.width=q(i.option.width,n?s:g.width)||0,i.height=q(i.option.height,n?l:g.height)||0);for(var c,p,d,h=o.length-1;0<=h;h--)if(d=null!=(p=Pr((c=o[h]).id,null))?a.get(p):null){var f=d.parent,g=eA(f),y={},m=function(t,e,n,i,o,r){var a,s=!o||!o.hv||o.hv[0],l=!o||!o.hv||o.hv[1],o=o&&o.boundingMode||"all";if((r=r||t).x=t.x,r.y=t.y,!s&&!l)return!1;"raw"===o?a="group"===t.type?new Z(0,0,+e.width||0,+e.height||0):t.getBoundingRect():(a=t.getBoundingRect(),t.needLocalTransform()&&(u=t.getLocalTransform(),(a=a.clone()).applyTransform(u)));var u=Zp(z({width:a.width,height:a.height},e),n,i),e=s?u.x-a.x:0,n=l?u.y-a.y:0;return"raw"===o?(r.x=e,r.y=n):(r.x+=e,r.y+=n),r===t&&t.markRedraw(),!0}(d,c,f===r?{width:s,height:l}:{width:g.width,height:g.height},null,{hv:c.hv,boundingMode:c.bounding},y);if(!eA(d).isNew&&m){for(var v=c.transition,_={},x=0;x<u.length;x++){var b=u[x],w=y[b];v&&(aT(v)||0<=G(v,b))?_[b]=w:d[b]=w}Vh(d,_,t,0)}else d.attr(y)}},iA.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(t){aA(t,eA(t).option,n,e._lastGraphicModel)}),this._elMap=N()},iA.prototype.dispose=function(){this._clear()},iA.type="graphic",iA);function iA(){var t=null!==Jk&&Jk.apply(this,arguments)||this;return t.type=iA.type,t}function oA(t){var e=new(U(tA,t)?tA[t]:tc(t))({});return eA(e).type=t,e}function rA(t,e,n,i){n=oA(n);return e.add(n),i.set(t,n),eA(n).id=t,eA(n).isNew=!0,n}function aA(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse(function(t){aA(t,e,n,i)}),rT(t,e,i),n.removeKey(eA(t).id))}function sA(n,i,t,e){n.isGroup||H([["cursor",Ta.prototype.cursor],["zlevel",e||0],["z",t||0],["z2",0]],function(t){var e=t[0];U(i,e)?n[e]=O(i[e],t[1]):null==n[e]&&(n[e]=t[1])}),H(W(i),function(t){var e;0===t.indexOf("on")&&(e=i[t],n[t]=C(e)?e:null)}),U(i,"draggable")&&(n.draggable=i.draggable),null!=i.name&&(n.name=i.name),null!=i.id&&(n.id=i.id)}r1(function(t){t.registerComponentModel($k),t.registerComponentView(nA),t.registerPreprocessor(function(t){var e=t.graphic;F(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}),r1(Ax);var lA={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},uA=(hA.prototype.evaluate=function(t){var e=typeof t;return X(e)?this._condVal.test(t):!!Y(e)&&this._condVal.test(t+"")},hA);function hA(t){null==(this._condVal=X(t)?new RegExp(t):vt(t)?t:null)&&f("")}pA.prototype.evaluate=function(){return this.value};var cA=pA;function pA(){}fA.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var dA=fA;function fA(){}yA.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var gA=yA;function yA(){}vA.prototype.evaluate=function(){return!this.child.evaluate()};var mA=vA;function vA(){}xA.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0};var _A=xA;function xA(){}function bA(t,e){if(!0===t||!1===t)return(n=new cA).value=t,n;var n;if(SA(t)||f(""),t.and)return wA("and",t,e);if(t.or)return wA("or",t,e);if(t.not)return n=e,SA(r=(r=t).not)||f(""),(l=new mA).child=bA(r,n),l.child||f(""),l;for(var i=t,o=e,r=o.prepareGetValue(i),a=[],s=W(i),l=i.parser,u=l?ng(l):null,h=0;h<s.length;h++){var c,p=s[h];"parser"===p||o.valueGetterAttrMap.get(p)||(c=U(lA,p)?lA[p]:p,p=i[p],p=u?u(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new lg("eq"===t,e):U(ig,t)?new og(t,e):null}(c,p)||"reg"===c&&new uA(p))||f(""),a.push(c))}return a.length||f(""),(l=new _A).valueGetterParam=r,l.valueParser=u,l.getValue=o.getValue,l.subCondList=a,l}function wA(t,e,n){e=e[t],F(e)||f(""),e.length||f(""),t=new("and"===t?dA:gA);return t.children=B(e,function(t){return bA(t,n)}),t.children.length||f(""),t}function SA(t){return P(t)&&!lt(t)}IA.prototype.evaluate=function(){return this._cond.evaluate()};var MA=IA;function IA(t,e){this._cond=bA(t,e)}var TA={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,o=(t=t.config,n={valueGetterAttrMap:N({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(U(t,"dimension")||f(""),i.getDimensionInfo(e));return t||f(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new MA(t,n)),r=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),o.evaluate()&&r.push(e);return{data:r}}},CA={type:"echarts:sort",transform:function(t){for(var a=t.upstream,t=t.config,t=Ir(t),s=(t.length||f(""),[]),t=(H(t,function(t){var e=t.dimension,n=t.order,i=t.parser,t=t.incomparable,e=(null==e&&f(""),"asc"!==n&&"desc"!==n&&f(""),t&&"min"!==t&&"max"!==t&&f(""),"asc"!==n&&"desc"!==n&&f(""),a.getDimensionInfo(e)),o=(e||f(""),i?ng(i):null);i&&!o&&f(""),s.push({dimIdx:e.index,parser:o,comparator:new ag(n,t)})}),a.sourceFormat),e=(t!==ld&&t!==ud&&f(""),[]),n=0,i=a.count();n<i;n++)e.push(a.getRawDataItem(n));return e.sort(function(t,e){for(var n=0;n<s.length;n++){var i=s[n],o=a.retrieveValueFromItem(t,i.dimIdx),r=a.retrieveValueFromItem(e,i.dimIdx),i=(i.parser&&(o=i.parser(o),r=i.parser(r)),i.comparator.evaluate(o,r));if(0!==i)return i}return 0}),{data:e}}};r1(function(t){t.registerTransform(TA),t.registerTransform(CA)}),t.Axis=Hc,t.ChartView=dy,t.ComponentModel=g,t.ComponentView=ly,t.List=Bv,t.Model=Zc,t.PRIORITY=hm,t.SeriesModel=ty,t.color=wi,t.connect=function(e){var t;return F(e)&&(t=e,e=null,H(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+Y0++,H(t,function(t){t.group=e})),W0[e]=!0,e},t.dataTool={},t.dependencies={zrender:"5.5.0"},t.disConnect=um,t.disconnect=Z0,t.dispose=function(t){X(t)?t=H0[t]:t instanceof D0||(t=q0(t)),t instanceof D0&&!t.isDisposed()&&t.dispose()},t.env=w,t.extendChartView=function(t){return t=dy.extend(t),dy.registerClass(t),t},t.extendComponentModel=function(t){return t=g.extend(t),g.registerClass(t),t},t.extendComponentView=function(t){return t=ly.extend(t),ly.registerClass(t),t},t.extendSeriesModel=function(t){return t=ty.extend(t),ty.registerClass(t),t},t.format=Vc,t.getCoordinateSystemDimensions=function(t){if(t=Vd.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.getInstanceByDom=q0,t.getInstanceById=function(t){return H0[t]},t.getMap=function(t){var e=$m.getMap;return e&&e(t)},t.graphic=hp,t.helper=cm,t.init=function(t,e,n){var i=!(n&&n.ssr);if(i){var o=q0(t);if(o)return o}return(o=new D0(t,e,n)).id="ec_"+X0++,H0[o.id]=o,i&&Wr(t,U0,o.id),M0(o),Km.trigger("afterinit",o),o},t.innerDrawElementOnCanvas=Wm,t.matrix=He,t.number=ia,t.parseGeoJSON=w1,t.parseGeoJson=w1,t.registerAction=ev,t.registerCoordinateSystem=nv,t.registerLayout=iv,t.registerLoading=sv,t.registerLocale=op,t.registerMap=lv,t.registerPostInit=Q0,t.registerPostUpdate=J0,t.registerPreprocessor=K0,t.registerProcessor=$0,t.registerTheme=j0,t.registerTransform=uv,t.registerUpdateLifecycle=tv,t.registerVisual=ov,t.setCanvasCreator=function(t){_({createCanvas:t})},t.setPlatformAPI=_,t.throttle=Sy,t.time=sc,t.use=r1,t.util=tm,t.vector=re,t.version="5.5.0",t.zrUtil=Ft,t.zrender=ir});