1 |
- !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 a=function(t,e){return(a=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}a(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function s(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}var w=new function(){this.browser=new s,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?(w.node=!0,w.svgSupported=!0):(tt=navigator.userAgent,le=(Gt=w).browser,st=tt.match(/Firefox\/([\d.]+)/),_=tt.match(/MSIE\s([\d.]+)/)||tt.match(/Trident\/.+?rv:(([\d.]+))/),k=tt.match(/Edge?\/([\d.]+)/),tt=/micromessenger/i.test(tt),st&&(le.firefox=!0,le.version=st[1]),_&&(le.ie=!0,le.version=_[1]),k&&(le.edge=!0,le.version=k[1],le.newEdge=18<+k[1].split(".")[0]),tt&&(le.weChat=!0),Gt.svgSupported="undefined"!=typeof SVGRect,Gt.touchEventsSupported="ontouchstart"in window&&!le.ie&&!le.edge,Gt.pointerEventsSupported="onpointerdown"in window&&(le.edge||le.ie&&11<=+le.version),Gt.domSupported="undefined"!=typeof document,st=document.documentElement.style,Gt.transform3dSupported=(le.ie&&"transition"in st||le.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in st)&&!("OTransition"in st),Gt.transformSupported=Gt.transform3dSupported||le.ie&&9<=+le.version);var l=12,f="sans-serif",J=l+"px "+f;var h,c,p=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"),Q={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(h||(n=Q.createCanvas(),h=n&&n.getContext("2d")),h)return c!==e&&(c=h.font=e||J),h.measureText(t);t=t||"";var n=/(\d+)px/.exec(e=e||J),i=n&&+n[1]||l,o=0;if(0<=e.indexOf("mono"))o=i*t.length;else for(var r=0;r<t.length;r++){var a=p[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 y(t){for(var e in Q)t[e]&&(Q[e]=t[e])}var m=ct(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),v=ct(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),x=Object.prototype.toString,_=Array.prototype,b=_.forEach,M=_.filter,I=_.slice,A=_.map,k=function(){}.constructor,tt=k?k.prototype:null,nt="__proto__",it=2311;function ot(){return it++}function rt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function S(t){if(null==t||"object"!=typeof t)return t;var e=t,n=x.call(t);if("[object Array]"===n){if(!kt(t))for(var e=[],i=0,o=t.length;i<o;i++)e[i]=S(t[i])}else if(v[n]){if(!kt(t)){var r=t.constructor;if(r.from)e=r.from(t);else for(e=new r(t.length),i=0,o=t.length;i<o;i++)e[i]=t[i]}}else if(!m[n]&&!kt(t)&&!mt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==nt&&(e[a]=S(t[a]));return e}function d(t,e,n){if(!O(e)||!O(t))return n?S(e):t;for(var i in e){var o,r;e.hasOwnProperty(i)&&i!==nt&&(o=t[i],!O(r=e[i])||!O(o)||W(r)||W(o)||mt(r)||mt(o)||ft(r)||ft(o)||kt(r)||kt(o)?!n&&i in t||(t[i]=S(e[i])):d(o,r,n))}return t}function at(t,e){for(var n=t[0],i=1,o=t.length;i<o;i++)n=d(n,t[i],e);return n}function H(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==nt&&(t[n]=e[n]);return t}function V(t,e,n){for(var i=G(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 st=Q.createCanvas;function F(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 lt(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 ut(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 V(t,e,n)}function ht(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function et(t,e,n){if(t&&e)if(t.forEach&&t.forEach===b)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 Mt(t);if(t.map&&t.map===A)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 ct(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 pt(t,e,n){if(!t)return[];if(!e)return Mt(t);if(t.filter&&t.filter===M)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 dt(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 G(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 T=tt&&D(tt.bind)?tt.call.bind(tt.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(I.call(arguments)))}};function P(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(I.call(arguments)))}}function W(t){return Array.isArray?Array.isArray(t):"[object Array]"===x.call(t)}function D(t){return"function"==typeof t}function Y(t){return"string"==typeof t}function gt(t){return"[object String]"===x.call(t)}function X(t){return"number"==typeof t}function O(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function ft(t){return!!m[x.call(t)]}function yt(t){return!!v[x.call(t)]}function mt(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function vt(t){return null!=t.colorStops}function xt(t){return null!=t.image}function _t(t){return"[object RegExp]"===x.call(t)}function bt(t){return t!=t}function wt(){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 R(t,e){return null!=t?t:e}function St(t,e,n){return null!=t?t:null!=e?e:n}function Mt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return I.apply(t,e)}function It(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 Tt(t,e){if(!t)throw new Error(e)}function Ct(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Dt="__ec_primitive__";function At(t){t[Dt]=!0}function kt(t){return t[Dt]}Ot.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},Ot.prototype.has=function(t){return this.data.hasOwnProperty(t)},Ot.prototype.get=function(t){return this.data[t]},Ot.prototype.set=function(t,e){return this.data[t]=e,this},Ot.prototype.keys=function(){return G(this.data)},Ot.prototype.forEach=function(t){var e,n=this.data;for(e in n)n.hasOwnProperty(e)&&t(n[e],e)};var Lt=Ot,Pt="function"==typeof Map;function Ot(){this.data={}}Nt.prototype.hasKey=function(t){return this.data.has(t)},Nt.prototype.get=function(t){return this.data.get(t)},Nt.prototype.set=function(t,e){return this.data.set(t,e),e},Nt.prototype.each=function(n,i){this.data.forEach(function(t,e){n.call(i,t,e)})},Nt.prototype.keys=function(){var t=this.data.keys();return Pt?Array.from(t):t},Nt.prototype.removeKey=function(t){this.data.delete(t)};var Rt=Nt;function Nt(t){var n=W(t),i=(this.data=new(Pt?Map:Lt),this);function e(t,e){n?i.set(t,e):i.set(e,t)}t instanceof Nt?t.each(e):t&&et(t,e)}function N(t){return new Rt(t)}function Et(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 zt(t,e){var n,t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&H(t,e),t}function Vt(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 Bt(){}var Ft=180/Math.PI,Gt=Object.freeze({__proto__:null,HashMap:Rt,RADIAN_TO_DEGREE:Ft,assert:Tt,bind:T,clone:S,concatArray:Et,createCanvas:st,createHashMap:N,createObject:zt,curry:P,defaults:V,disableUserSelect:Vt,each:et,eqNaN:bt,extend:H,filter:pt,find:dt,guid:ot,hasOwn:U,indexOf:F,inherits:lt,isArray:W,isArrayLike:ht,isBuiltInObject:ft,isDom:mt,isFunction:D,isGradientObject:vt,isImagePatternObject:xt,isNumber:X,isObject:O,isPrimitive:kt,isRegExp:_t,isString:Y,isStringSafe:gt,isTypedArray:yt,keys:G,logError:rt,map:B,merge:d,mergeAll:at,mixin:ut,noop:Bt,normalizeCssArray:It,reduce:ct,retrieve:wt,retrieve2:R,retrieve3:St,setAsPrimitive:At,slice:Mt,trim:Ct});function Wt(t,e){return[t=null==t?0:t,e=null==e?0:e]}function Ht(t,e){return t[0]=e[0],t[1]=e[1],t}function Yt(t){return[t[0],t[1]]}function Xt(t,e,n){return t[0]=e,t[1]=n,t}function Ut(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Zt(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function jt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function qt(t){return Math.sqrt(Kt(t))}function Kt(t){return t[0]*t[0]+t[1]*t[1]}function $t(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Jt(t,e){var n=qt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Qt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var te=Qt;function ee(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ne=ee;function ie(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 oe(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 re(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function ae(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function se(t,e){this.target=t,this.topTarget=e&&e.topTarget}var le=Object.freeze({__proto__:null,add:Ut,applyTransform:oe,clone:Yt,copy:Ht,create:Wt,dist:te,distSquare:ne,distance:Qt,distanceSquare:ee,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:qt,lenSquare:Kt,length:qt,lengthSquare:Kt,lerp:ie,max:ae,min:re,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:Jt,scale:$t,scaleAndAdd:Zt,set:Xt,sub:jt}),ue=(he.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 se(e,t),"dragstart",t.event))},he.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 se(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 se(o,t),"dragleave",t.event),i)&&i!==o&&this.handler.dispatchToElement(new se(i,t),"dragenter",t.event)},he.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new se(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new se(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},he);function he(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}pe.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},pe.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},pe.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},pe.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},pe.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 ce=pe;function pe(t){t&&(this._$eventProcessor=t)}var de=Math.log(2);function ge(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)/de),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 g=1<<p;g&o||(c+=(d%2?-1:1)*t[n][p]*ge(t,e-1,h,u,o|g,r),d++)}return r[s]=c}function fe(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=ge(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)*ge(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 ye="___zrEVENTSAVED",me=[];function ve(t,e,n,i,o){if(e.getBoundingClientRect&&w.domSupported&&!xe(e)){var r=e[ye]||(e[ye]={}),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?fe(s,a):fe(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=r%2,l=(r>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",o[l]+":0",i[1-s]+":auto",o[1-l]+":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 xe(t){return"CANVAS"===t.nodeName.toUpperCase()}var _e=/([&<>"'])/g,be={"&":"&","<":"<",">":">",'"':""","'":"'"};function we(t){return null==t?"":(t+"").replace(_e,function(t,e){return be[e]})}var Se=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Me=[],Ie=w.browser.firefox&&+w.browser.version.split(".")[0]<39;function Te(t,e,n,i){return n=n||{},i?Ce(t,e,n):Ie&&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):Ce(t,e,n),n}function Ce(t,e,n){if(w.domSupported&&t.getBoundingClientRect){var i,o=e.clientX,e=e.clientY;if(xe(t))return i=t.getBoundingClientRect(),n.zrX=o-i.left,n.zrY=e-i.top;if(ve(Me,t,o,e))return n.zrX=Me[0],n.zrY=Me[1]}n.zrX=n.zrY=0}function De(t){return t||window.event}function Ae(t,e,n){var i;return null==(e=De(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Te(t,i,e,n):(Te(t,e,e,n),t=(t=(i=e).wheelDelta)||(n=i.deltaX,i=i.deltaY,null==n||null==i?t:3*(0!==i?Math.abs(i):Math.abs(n))*(0<i||!(i<0)&&0<n?-1:1)),e.zrDelta=t?t/120:-(e.detail||0)/3),i=e.button,null==e.which&&void 0!==i&&Se.test(e.type))&&(e.which=1&i?1:2&i?3:4&i?2:0),e}function ke(t,e,n,i){t.addEventListener(e,n,i)}var Le=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Pe(t){return 2===t.which||3===t.which}Re.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},Re.prototype.clear=function(){return this._track.length=0,this},Re.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=Te(n,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},Re.prototype._recognize=function(t){for(var e in Ee)if(Ee.hasOwnProperty(e)){e=Ee[e](this._track,t);if(e)return e}};var Oe=Re;function Re(){this._track=[]}function Ne(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}var Ee={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,n=(t[n-2]||{}).points||i;if(n&&1<n.length&&i&&1<i.length)return n=Ne(i)/Ne(n),isFinite(n)||(n=1),e.pinchScale=n,n=[(i[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2],e.pinchX=n[0],e.pinchY=n[1],{type:"pinch",target:t[0].target,event:e}}}};function ze(){return[1,0,0,1,0,0]}function Ve(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Be(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 Fe(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 Ge(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 We(t,e,n){var i=e[0],o=e[2],r=e[4],a=e[1],s=e[3],e=e[5],l=Math.sin(n),n=Math.cos(n);return t[0]=i*n+a*l,t[1]=-i*l+a*n,t[2]=o*n+s*l,t[3]=-o*l+n*s,t[4]=n*r+l*e,t[5]=n*e-l*r,t}function He(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 Ye(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}function Xe(t){var e=ze();return Be(e,t),e}var Ue=Object.freeze({__proto__:null,clone:Xe,copy:Be,create:ze,identity:Ve,invert:Ye,mul:Fe,rotate:We,scale:He,translate:Ge}),E=(Ze.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},Ze.prototype.clone=function(){return new Ze(this.x,this.y)},Ze.prototype.set=function(t,e){return this.x=t,this.y=e,this},Ze.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},Ze.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},Ze.prototype.scale=function(t){this.x*=t,this.y*=t},Ze.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},Ze.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},Ze.prototype.dot=function(t){return this.x*t.x+this.y*t.y},Ze.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},Ze.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},Ze.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},Ze.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},Ze.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},Ze.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},Ze.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},Ze.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},Ze.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},Ze.set=function(t,e,n){t.x=e,t.y=n},Ze.copy=function(t,e){t.x=e.x,t.y=e.y},Ze.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},Ze.lenSquare=function(t){return t.x*t.x+t.y*t.y},Ze.dot=function(t,e){return t.x*e.x+t.y*e.y},Ze.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},Ze.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},Ze.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},Ze.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},Ze.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},Ze);function Ze(t,e){this.x=t||0,this.y=e||0}var je=Math.min,qe=Math.max,Ke=new E,$e=new E,Je=new E,Qe=new E,tn=new E,en=new E,z=(nn.prototype.union=function(t){var e=je(t.x,this.x),n=je(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=qe(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=qe(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},nn.prototype.applyTransform=function(t){nn.applyTransform(this,this,t)},nn.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=ze();return Ge(i,i,[-this.x,-this.y]),He(i,i,[e,n]),Ge(i,i,[t.x,t.y]),i},nn.prototype.intersect=function(t,e){if(!t)return!1;t instanceof nn||(t=nn.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,g=t.x,f=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<g||f<c||h<y||t<d);return e&&(n=1/0,i=0,o=Math.abs(p-g),r=Math.abs(f-c),a=Math.abs(h-y),s=Math.abs(t-d),l=Math.min(o,r),u=Math.min(a,s),p<g||f<c?i<l&&(i=l,o<r?E.set(en,-o,0):E.set(en,r,0)):l<n&&(n=l,o<r?E.set(tn,o,0):E.set(tn,-r,0)),h<y||t<d?i<u&&(i=u,a<s?E.set(en,0,-a):E.set(en,0,s)):l<n&&(n=l,a<s?E.set(tn,0,a):E.set(tn,0,-s))),e&&E.copy(e,m?tn:en),m},nn.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},nn.prototype.clone=function(){return new nn(this.x,this.y,this.width,this.height)},nn.prototype.copy=function(t){nn.copy(this,t)},nn.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},nn.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},nn.prototype.isZero=function(){return 0===this.width||0===this.height},nn.create=function(t){return new nn(t.x,t.y,t.width,t.height)},nn.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},nn.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)):(Ke.x=Je.x=e.x,Ke.y=Qe.y=e.y,$e.x=Qe.x=e.x+e.width,$e.y=Je.y=e.y+e.height,Ke.transform(n),Qe.transform(n),$e.transform(n),Je.transform(n),t.x=je(Ke.x,$e.x,Je.x,Qe.x),t.y=je(Ke.y,$e.y,Je.y,Qe.y),r=qe(Ke.x,$e.x,Je.x,Qe.x),a=qe(Ke.y,$e.y,Je.y,Qe.y),t.width=r-t.x,t.height=a-t.y):t!==e&&nn.copy(t,e)},nn);function nn(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 on="silent";function rn(){Le(this.event)}function an(t,e){this.x=t,this.y=e}u(gn,ln=ce),gn.prototype.dispose=function(){},gn.prototype.setCursor=function(){};var sn,ln,un=gn,hn=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],cn=new z(0,0,0,0),pn=(u(dn,sn=ce),dn.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(et(hn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},dn.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=yn(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)},dn.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})},dn.prototype.resize=function(){this._hovered=new an(0,0)},dn.prototype.dispatch=function(t,e){t=this[t];t&&t.call(this,e)},dn.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},dn.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},dn.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:rn};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)}))}},dn.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),o=new an(t,e);if(fn(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||(cn.copy(h.getBoundingRect()),h.transform&&cn.applyTransform(h.transform),cn.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 g=0;g<p;g+=c)if(fn(r,o,t+d*Math.cos(g),e+d*Math.sin(g),n),o.target)return o}return o},dn.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Oe);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))},dn);function dn(t,e,n,i,o){var r=sn.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 un,r.proxy=null,r.setHandlerProxy(n),r._draggingMgr=new ue(r),r}function gn(){var t=null!==ln&&ln.apply(this,arguments)||this;return t.handler=null,t}function fn(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)}i=i.__hostTarget||i.parent}return!o||on}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==on)){e.target=a;break}}}function yn(t,e,n){t=t.painter;return e<0||e>t.getWidth()||n<0||n>t.getHeight()}et(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){pn.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=yn(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<te(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(e,a,t)}});var mn=32,vn=7;function xn(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 _n(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 bn(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 wn(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 Sn(t,e,n,i){var g,f,r,a,y,s,m,o=(i=i||t.length)-(n=n||0);if(!(o<2)){var l=0;if(o<mn)_n(t,n,i,n+(l=xn(t,n,i,e)),e);else{f=e,y=vn,s=0,(g=t).length,m=[],r=[],a=[];var u,h={mergeRuns:function(){for(;1<s;){var t=s-2;if(1<=t&&a[t-1]<=a[t]+a[t+1]||2<=t&&a[t-2]<=a[t]+a[t-1])a[t-1]<a[t+1]&&t--;else if(a[t]>a[t+1])break;p(t)}},forceMergeRuns:function(){for(;1<s;){var t=s-2;0<t&&a[t-1]<a[t+1]&&t--,p(t)}},pushRun:function(t,e){r[s]=t,a[s]=e,s+=1}},c=function(t){for(var e=0;mn<=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((l=xn(t,n,i,e))<c&&(_n(t,n,n+(u=c<(u=o)?c:o),n+l,e),l=u),h.pushRun(n,l),h.mergeRuns(),n+=l,0!==(o-=l));h.forceMergeRuns()}}function p(t){var e=r[t],n=a[t],i=r[t+1],o=a[t+1],t=(a[t]=n+o,t===s-3&&(r[t+1]=r[t+2],a[t+1]=a[t+2]),s--,wn(g[i],g,e,n,0,f));e+=t,0!=(n-=t)&&0!==(o=bn(g[e+n-1],g,i,o,o-1,f))&&(n<=o?function(t,e,n,i){for(var o=0,o=0;o<e;o++)m[o]=g[t+o];var r=0,a=n,s=t;if(g[s++]=g[a++],0==--i)for(o=0;o<e;o++)g[s+o]=m[r+o];else{if(1===e){for(o=0;o<i;o++)g[s+o]=g[a+o];return g[s+i]=m[r]}for(var l,u,h,c=y;;){u=l=0,h=!1;do{if(f(g[a],m[r])<0){if(g[s++]=g[a++],u++,(l=0)==--i){h=!0;break}}else if(g[s++]=m[r++],l++,u=0,1==--e){h=!0;break}}while((l|u)<c);if(h)break;do{if(0!==(l=wn(g[a],m,r,e,0,f))){for(o=0;o<l;o++)g[s+o]=m[r+o];if(s+=l,r+=l,(e-=l)<=1){h=!0;break}}if(g[s++]=g[a++],0==--i){h=!0;break}if(0!==(u=bn(m[r],g,a,i,0,f))){for(o=0;o<u;o++)g[s+o]=g[a+o];if(s+=u,a+=u,0==(i-=u)){h=!0;break}}if(g[s++]=m[r++],1==--e){h=!0;break}}while(c--,vn<=l||vn<=u);if(h)break;c<0&&(c=0),c+=2}if((y=c)<1&&(y=1),1===e){for(o=0;o<i;o++)g[s+o]=g[a+o];g[s+i]=m[r]}else{if(0===e)throw new Error;for(o=0;o<e;o++)g[s+o]=m[r+o]}}}:function(t,e,n,i){for(var o=0,o=0;o<i;o++)m[o]=g[n+o];var r=t+e-1,a=i-1,s=n+i-1,l=0,u=0;if(g[s--]=g[r--],0==--e)for(l=s-(i-1),o=0;o<i;o++)g[l+o]=m[o];else{if(1===i){for(u=1+(s-=e),l=1+(r-=e),o=e-1;0<=o;o--)g[u+o]=g[l+o];return g[s]=m[a]}for(var h=y;;){var c=0,p=0,d=!1;do{if(f(m[a],g[r])<0){if(g[s--]=g[r--],c++,(p=0)==--e){d=!0;break}}else if(g[s--]=m[a--],p++,c=0,1==--i){d=!0;break}}while((c|p)<h);if(d)break;do{if(0!=(c=e-wn(m[a],g,t,e,e-1,f))){for(e-=c,u=1+(s-=c),l=1+(r-=c),o=c-1;0<=o;o--)g[u+o]=g[l+o];if(0===e){d=!0;break}}if(g[s--]=m[a--],1==--i){d=!0;break}if(0!=(p=i-bn(g[r],m,0,i,i-1,f))){for(i-=p,u=1+(s-=p),l=1+(a-=p),o=0;o<p;o++)g[u+o]=m[l+o];if(i<=1){d=!0;break}}if(g[s--]=g[r--],0==--e){d=!0;break}}while(h--,vn<=c||vn<=p);if(d)break;h<0&&(h=0),h+=2}if((y=h)<1&&(y=1),1===i){for(u=1+(s-=e),l=1+(r-=e),o=e-1;0<=o;o--)g[u+o]=g[l+o];g[s]=m[a]}else{if(0===i)throw new Error;for(l=s-(i-1),o=0;o<i;o++)g[l+o]=m[o]}}})(e,n,i,o)}}var Mn=1,In=4,Tn=!1;function Cn(){Tn||(Tn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Dn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}kn.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},kn.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},kn.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,Sn(n,Dn)},kn.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|=Mn),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)&&(Cn(),i.z=0),isNaN(i.z2)&&(Cn(),i.z2=0),isNaN(i.zlevel)&&(Cn(),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)}},kn.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},kn.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=F(this._roots,t);0<=i&&this._roots.splice(i,1)}},kn.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},kn.prototype.getRoots=function(){return this._roots},kn.prototype.dispose=function(){this._displayList=null,this._roots=null};var An=kn;function kn(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Dn}var Ln=w.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Pn={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-Pn.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*Pn.bounceIn(2*t):.5*Pn.bounceOut(2*t-1)+.5}},On=Math.pow,Rn=Math.sqrt,Nn=1e-8,En=1e-4,zn=Rn(3),Vn=1/3,Bn=Wt(),Fn=Wt(),Gn=Wt();function Wn(t){return-Nn<t&&t<Nn}function Hn(t){return Nn<t||t<-Nn}function Yn(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 Xn(t,e,n,i,o){var r=1-o;return 3*(((e-t)*r+2*(n-e)*o)*r+(i-n)*o*o)}function Un(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 Wn(o)&&Wn(l)?Wn(n)?r[0]=0:0<=(s=-e/n)&&s<=1&&(r[u++]=s):Wn(e=l*l-4*o*t)?(a=-(t=l/o)/2,0<=(s=-n/i+t)&&s<=1&&(r[u++]=s),0<=a&&a<=1&&(r[u++]=a)):0<e?(e=o*n+1.5*i*(-l-(t=Rn(e))),0<=(s=(-n-((t=(t=o*n+1.5*i*(-l+t))<0?-On(-t,Vn):On(t,Vn))+(e=e<0?-On(-e,Vn):On(e,Vn))))/(3*i))&&s<=1&&(r[u++]=s)):(t=(2*o*n-3*i*l)/(2*Rn(o*o*o)),e=Math.acos(t)/3,s=(-n-2*(l=Rn(o))*(t=Math.cos(e)))/(3*i),a=(-n+l*(t+zn*Math.sin(e)))/(3*i),o=(-n+l*(t-zn*Math.sin(e)))/(3*i),0<=s&&s<=1&&(r[u++]=s),0<=a&&a<=1&&(r[u++]=a),0<=o&&o<=1&&(r[u++]=o)),u}function Zn(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 Wn(i)?Hn(a)&&0<=(r=-n/a)&&r<=1&&(o[e++]=r):Wn(t=a*a-4*i*n)?o[0]=-a/(2*i):0<t&&(t=(-a-(n=Rn(t)))/(2*i),0<=(r=(-a+n)/(2*i))&&r<=1&&(o[e++]=r),0<=t)&&t<=1&&(o[e++]=t),e}function jn(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 qn(t,e,n,i,o,r,a,s,l,u,h){var c,p,d,g,f=.005,y=1/0;Bn[0]=l,Bn[1]=u;for(var m=0;m<1;m+=.05)Fn[0]=Yn(t,n,o,a,m),Fn[1]=Yn(e,i,r,s,m),(d=ne(Bn,Fn))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(f<En);v++)p=c+f,Fn[0]=Yn(t,n,o,a,g=c-f),Fn[1]=Yn(e,i,r,s,g),d=ne(Fn,Bn),0<=g&&d<y?(c=g,y=d):(Gn[0]=Yn(t,n,o,a,p),Gn[1]=Yn(e,i,r,s,p),g=ne(Gn,Bn),p<=1&&g<y?(c=p,y=g):f*=.5);return h&&(h[0]=Yn(t,n,o,a,c),h[1]=Yn(e,i,r,s,c)),Rn(y)}function Kn(t,e,n,i){var o=1-i;return o*(o*t+2*i*e)+i*i*n}function $n(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Jn(t,e,n){n=t+n-2*e;return 0==n?.5:(t-e)/n}function Qn(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 ti(t,e,n,i,o,r,a,s,l){var u,h=.005,c=1/0;Bn[0]=a,Bn[1]=s;for(var p=0;p<1;p+=.05)Fn[0]=Kn(t,n,o,p),Fn[1]=Kn(e,i,r,p),(y=ne(Bn,Fn))<c&&(u=p,c=y);for(var c=1/0,d=0;d<32&&!(h<En);d++){var g=u-h,f=u+h,y=(Fn[0]=Kn(t,n,o,g),Fn[1]=Kn(e,i,r,g),ne(Fn,Bn));0<=g&&y<c?(u=g,c=y):(Gn[0]=Kn(t,n,o,f),Gn[1]=Kn(e,i,r,f),g=ne(Gn,Bn),f<=1&&g<c?(u=f,c=g):h*=.5)}return l&&(l[0]=Kn(t,n,o,u),l[1]=Kn(e,i,r,u)),Rn(c)}var ei=/cubic-bezier\(([0-9,\.e ]+)\)/;function ni(t){t=t&&ei.exec(t);if(t){var e,t=t[1].split(","),n=+Ct(t[0]),i=+Ct(t[1]),o=+Ct(t[2]),r=+Ct(t[3]);if(!isNaN(n+i+o+r))return e=[],function(t){return t<=0?0:1<=t?1:Un(0,n,o,1,t,e)&&Yn(0,i,r,1,e[0])}}}oi.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},oi.prototype.pause=function(){this._paused=!0},oi.prototype.resume=function(){this._paused=!1},oi.prototype.setEasing=function(t){this.easing=t,this.easingFunc=D(t)?t:Pn[t]||ni(t)};var ii=oi;function oi(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||Bt,this.ondestroy=t.ondestroy||Bt,this.onrestart=t.onrestart||Bt,t.easing&&this.setEasing(t.easing)}function ri(t){this.value=t}si.prototype.insert=function(t){t=new ri(t);return this.insertEntry(t),t},si.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++},si.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--},si.prototype.len=function(){return this._len},si.prototype.clear=function(){this.head=this.tail=null,this._len=0};var ai=si;function si(){this._len=0}ui.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 ri(e),n.key=t,o.insertEntry(n),r[t]=n),a},ui.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},ui.prototype.clear=function(){this._list.clear(),this._map={}},ui.prototype.len=function(){return this._list.len()};var li=ui;function ui(t){this._list=new ai,this._maxSize=10,this._map={},this._maxSize=t}var hi={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 ci(t){return(t=Math.round(t))<0?0:255<t?255:t}function pi(t){return t<0?0:1<t?1:t}function di(t){return t.length&&"%"===t.charAt(t.length-1)?ci(parseFloat(t)/100*255):ci(parseInt(t,10))}function gi(t){return t.length&&"%"===t.charAt(t.length-1)?pi(parseFloat(t)/100):pi(parseFloat(t))}function fi(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 yi(t,e,n){return t+(e-t)*n}function mi(t,e,n,i,o){return t[0]=e,t[1]=n,t[2]=i,t[3]=o,t}function vi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var xi=new li(20),_i=null;function bi(t,e){_i&&vi(_i,e),_i=xi.put(t,_i||e.slice())}function wi(t,e){if(t){e=e||[];var n=xi.get(t);if(n)return vi(e,n);n=(t+="").replace(/ /g,"").toLowerCase();if(n in hi)return vi(e,hi[n]),bi(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?(mi(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),bi(t,e),e):void mi(e,0,0,0,1):7===i||9===i?0<=(o=parseInt(n.slice(1,7),16))&&o<=16777215?(mi(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===i?parseInt(n.slice(7),16)/255:1),bi(t,e),e):void mi(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?mi(e,+a[0],+a[1],+a[2],1):mi(e,0,0,0,1);s=gi(a.pop());case"rgb":return 3<=a.length?(mi(e,di(a[0]),di(a[1]),di(a[2]),3===a.length?s:gi(a[3])),bi(t,e),e):void mi(e,0,0,0,1);case"hsla":return 4!==a.length?void mi(e,0,0,0,1):(a[3]=gi(a[3]),Si(a,e),bi(t,e),e);case"hsl":return 3!==a.length?void mi(e,0,0,0,1):(Si(a,e),bi(t,e),e);default:return}}mi(e,0,0,0,1)}}function Si(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=gi(t[1]),o=gi(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return mi(e=e||[],ci(255*fi(o,i,n+1/3)),ci(255*fi(o,i,n)),ci(255*fi(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Mi(t,e){var n=wi(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 Ai(n,4===n.length?"rgba":"rgb")}}function Ii(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]=ci(yi(o[0],e[0],r=t-i)),n[1]=ci(yi(o[1],e[1],r)),n[2]=ci(yi(o[2],e[2],r)),n[3]=pi(yi(o[3],e[3],r)),n}function Ti(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=wi(e[i]),e=wi(e[o]),a=Ai([ci(yi(a[0],e[0],r=t-i)),ci(yi(a[1],e[1],r)),ci(yi(a[2],e[2],r)),pi(yi(a[3],e[3],r))],"rgba"),n?{color:a,leftIndex:i,rightIndex:o,value:t}:a}function Ci(t,e,n,i){var o=wi(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,n=t[1]/255,i=t[2]/255,s=Math.min(h,n,i),r=((o=Math.max(h,n,i))+s)/2,0==(u=o-s)?a=e=0:(a=r<.5?u/(o+s):u/(2-o-s),s=((o-h)/6+u/2)/u,l=((o-n)/6+u/2)/u,u=((o-i)/6+u/2)/u,h===o?e=u-l:n===o?e=1/3+s-u:i===o&&(e=2/3+l-s),e<0&&(e+=1),1<e&&--e),h=[360*e,a,r],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]=gi(n)),null!=i&&(o[2]=gi(i)),Ai(Si(o),"rgba")}function Di(t,e){t=wi(t);if(t&&null!=e)return t[3]=pi(e),Ai(t,"rgba")}function Ai(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 ki(t,e){t=wi(t);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Li=Object.freeze({__proto__:null,fastLerp:Ii,fastMapToColor:Ii,lerp:Ti,lift:Mi,lum:ki,mapToColor:Ti,modifyAlpha:Di,modifyHSL:Ci,parse:wi,random:function(){return Ai([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:Ai,toHex:function(t){if(t=wi(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}}),Pi=Math.round;function Oi(t){var e,n;return t&&"transparent"!==t?"string"==typeof t&&-1<t.indexOf("rgba")&&(n=wi(t))&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3]):t="none",{color:t,opacity:null==e?1:e}}function Ri(t){return t<1e-4&&-1e-4<t}function Ni(t){return Pi(1e3*t)/1e3}function Ei(t){return Pi(1e4*t)/1e4}var zi={left:"start",right:"end",center:"middle",middle:"middle"};function Vi(t){return t&&!!t.image}function Bi(t){return Vi(t)||(t=t)&&!!t.svgElement}function Fi(t){return"linear"===t.type}function Gi(t){return"radial"===t.type}function Wi(t){return t&&("linear"===t.type||"radial"===t.type)}function Hi(t){return"url(#"+t+")"}function Yi(t){t=t.getGlobalScale(),t=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Xi(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*Ft,o=R(t.scaleX,1),r=R(t.scaleY,1),a=t.skewX||0,t=t.skewY||0,s=[];return(e||n)&&s.push("translate("+e+"px,"+n+"px)"),i&&s.push("rotate("+i+")"),1===o&&1===r||s.push("scale("+o+","+r+")"),(a||t)&&s.push("skew("+Pi(a*Ft)+"deg, "+Pi(t*Ft)+"deg)"),s.join(" ")}var Ui=w.hasGlobalWindow&&D(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},Zi=Array.prototype.slice;function ji(t,e,n){return(e-t)*n+t}function qi(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=ji(e[r],n[r],i);return t}function Ki(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=e[r]+n[r]*i;return t}function $i(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 Ji(t){if(ht(t)){var e=t.length;if(ht(t[0])){for(var n=[],i=0;i<e;i++)n.push(Zi.call(t[i]));return n}return Zi.call(t)}return t}function Qi(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 to(t){return 4===t||5===t}function eo(t){return 1===t||2===t}var no=[0,0,0,0],io=(ao.prototype.isFinished=function(){return this._finished},ao.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},ao.prototype.needsAnimate=function(){return 1<=this.keyframes.length},ao.prototype.getAdditiveTrack=function(){return this._additiveTrack},ao.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i,o=this.keyframes,r=o.length,a=!1,s=6,l=e,u=(ht(e)?(1==(s=i=ht((i=e)&&i[0])?2:1)&&!X(e[0])||2==i&&!X(e[0][0]))&&(a=!0):X(e)&&!bt(e)?s=0:Y(e)?isNaN(+e)?(i=wi(e))&&(l=i,s=3):s=0:vt(e)&&((u=H({},l)).colorStops=B(e.colorStops,function(t){return{offset:t.offset,color:wi(t.color)}}),Fi(e)?s=4:Gi(e)&&(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=D(n)?n:Pn[n]||ni(n)),o.push(u),u},ao.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort(function(t,e){return t.time-e.time});for(var i=this.valType,o=n.length,r=n[o-1],a=this.discrete,s=eo(i),l=to(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){h=void 0;d=void 0;g=void 0;f=void 0;y=void 0;m=void 0;v=void 0;x=void 0;_=void 0;h=c;var d=p;var g=i;var f=h,y=d;if(f.push&&y.push){var h=f.length,m=y.length;if(h!==m)if(m<h)f.length=m;else for(var v=h;v<m;v++)f.push(1===g?y[v]:Zi.call(y[v]));for(var x=f[0]&&f[0].length,v=0;v<f.length;v++)if(1===g)isNaN(f[v])&&(f[v]=y[v]);else for(var _=0;_<x;_++)isNaN(f[v][_])&&(f[v][_]=y[v][_])}}else if(l){d=void 0;h=void 0;b=void 0;w=void 0;S=void 0;M=void 0;I=void 0;d=c.colorStops;h=p.colorStops;for(var 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=Ki([],n[u].value,T,-1):eo(i)&&(n[u].additiveValue=(1===i?Ki:$i)([],n[u].value,T,-1))}},ao.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,o,r,a,s=null!=this._additiveTrack,l=s?"additiveValue":"value",u=this.valType,h=this.keyframes,c=h.length,p=this.propName,d=3===u,g=this._lastFr,f=Math.min;if(1===c)i=o=h[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=f(g+1,c-1);0<=n&&!(h[n].percent<=e);n--);n=f(n,c-2)}else{for(n=g;n<c&&!(h[n].percent>e);n++);n=f(n-1,c-2)}o=h[n+1],i=h[n]}i&&o&&(this._lastFr=n,this._lastFrP=e,g=o.percent-i.percent,r=0==g?1:f((e-i.percent)/g,1),o.easingFunc&&(r=o.easingFunc(r)),f=s?this._additiveValue:d?no:t[p],(eo(u)||d)&&(f=f||(this._additiveValue=[])),this.discrete?t[p]=(r<1?i:o).rawValue:eo(u)?(1===u?qi: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]=ji(e[a][s],n[a][s],i)}})(f,i[l],o[l],r):to(u)?(g=i[l],a=o[l],t[p]={type:(u=4===u)?"linear":"radial",x:ji(g.x,a.x,r),y:ji(g.y,a.y,r),colorStops:B(g.colorStops,function(t,e){e=a.colorStops[e];return{offset:ji(t.offset,e.offset,r),color:Qi(qi([],t.color,e.color,r))}}),global:a.global},u?(t[p].x2=ji(g.x2,a.x2,r),t[p].y2=ji(g.y2,a.y2,r)):t[p].r=ji(g.r,a.r,r)):d?(qi(f,i[l],o[l],r),s||(t[p]=Qi(f))):(u=ji(i[l],o[l],r),s?this._additiveValue=u:t[p]=u),s)&&this._addToTarget(t)}},ao.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(wi(t[n],no),Ki(no,no,i,1),t[n]=Qi(no)):1===e?Ki(t[n],t[n],i,1):2===e&&$i(t[n],t[n],i,1)},ao),oo=(ro.prototype.getMaxTime=function(){return this._maxTime},ro.prototype.getDelay=function(){return this._delay},ro.prototype.getLoop=function(){return this._loop},ro.prototype.getTarget=function(){return this._target},ro.prototype.changeTarget=function(t){this._target=t},ro.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,G(e),n)},ro.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 io(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&&Qi(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,Ji(u),i),this._trackKeys.push(a)}l.addKeyframe(t,Ji(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},ro.prototype.pause=function(){this._clip.pause(),this._paused=!0},ro.prototype.resume=function(){this._clip.resume(),this._paused=!1},ro.prototype.isPaused=function(){return!!this._paused},ro.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},ro.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)},ro.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)},ro.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},ro.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},ro.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 ii({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}},ro.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},ro.prototype.delay=function(t){return this._delay=t,this},ro.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},ro.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},ro.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},ro.prototype.getClip=function(){return this._clip},ro.prototype.getTrack=function(t){return this._tracks[t]},ro.prototype.getTracks=function(){var e=this;return B(this._trackKeys,function(t){return e._tracks[t]})},ro.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},ro.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]=Ji(r.rawValue))}}},ro.prototype.__changeFinalValue=function(t,e){e=e||G(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()))}},ro);function ro(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&i?rt("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}function ao(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}function so(){return(new Date).getTime()}u(ho,lo=ce),ho.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},ho.prototype.addAnimator=function(t){t.animation=this;t=t.getClip();t&&this.addClip(t)},ho.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)},ho.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},ho.prototype.update=function(t){for(var e=so()-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())},ho.prototype._startLoop=function(){var e=this;this._running=!0,Ln(function t(){e._running&&(Ln(t),!e._paused)&&e.update()})},ho.prototype.start=function(){this._running||(this._time=so(),this._pausedTime=0,this._startLoop())},ho.prototype.stop=function(){this._running=!1},ho.prototype.pause=function(){this._paused||(this._pauseStart=so(),this._paused=!0)},ho.prototype.resume=function(){this._paused&&(this._pausedTime+=so()-this._pauseStart,this._paused=!1)},ho.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},ho.prototype.isFinished=function(){return null==this._head},ho.prototype.animate=function(t,e){e=e||{},this.start();t=new oo(t,e.loop);return this.addAnimator(t),t};var lo,uo=ho;function ho(t){var e=lo.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 co,po=w.domSupported,go=(co={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 co.hasOwnProperty(e)?e:t})}),fo=["mousemove","mouseup"],yo=["pointermove","pointerup"],mo=!1;function vo(t){t=t.pointerType;return"pen"===t||"touch"===t}function xo(t){t&&(t.zrByTouch=!0)}function _o(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 bo=function(t,e){this.stopPropagation=Bt,this.stopImmediatePropagation=Bt,this.preventDefault=Bt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},wo={mousedown:function(t){t=Ae(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Ae(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=Ae(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){_o(this,(t=Ae(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){mo=!0,t=Ae(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){mo||(t=Ae(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){xo(t=Ae(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),wo.mousemove.call(this,t),wo.mousedown.call(this,t)},touchmove:function(t){xo(t=Ae(this.dom,t)),this.handler.processGesture(t,"change"),wo.mousemove.call(this,t)},touchend:function(t){xo(t=Ae(this.dom,t)),this.handler.processGesture(t,"end"),wo.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&wo.click.call(this,t)},pointerdown:function(t){wo.mousedown.call(this,t)},pointermove:function(t){vo(t)||wo.mousemove.call(this,t)},pointerup:function(t){wo.mouseup.call(this,t)},pointerout:function(t){vo(t)||wo.mouseout.call(this,t)}},So=(et(["click","dblclick","contextmenu"],function(e){wo[e]=function(t){t=Ae(this.dom,t),this.trigger(e,t)}}),{pointermove:function(t){vo(t)||So.mousemove.call(this,t)},pointerup:function(t){So.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 Mo(i,o){var r=o.domHandlers;w.pointerEventsSupported?et(go.pointer,function(e){To(o,e,function(t){r[e].call(i,t)})}):(w.touchEventsSupported&&et(go.touch,function(n){To(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)})}),et(go.mouse,function(e){To(o,e,function(t){t=De(t),o.touching||r[e].call(i,t)})}))}function Io(i,o){function t(n){To(o,n,function(t){var e;t=De(t),_o(i,t.target)||(e=t,t=Ae(i.dom,new bo(i,e),!0),o.domHandlers[n].call(i,t))},{capture:!0})}w.pointerEventsSupported?et(yo,t):w.touchEventsSupported||et(fo,t)}function To(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,ke(t.domTarget,e,n,i)}function Co(t){var e,n,i,o,r,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,i=e,o=a[e],r=t.listenerOpts[e],n.removeEventListener(i,o,r));t.mounted={}}function Do(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}u(Lo,Ao=ce),Lo.prototype.dispose=function(){Co(this._localHandlerScope),po&&Co(this._globalHandlerScope)},Lo.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},Lo.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,po&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?Io(this,e):Co(e))};var Ao,ko=Lo;function Lo(t,e){var n=Ao.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new Do(t,wo),po&&(n._globalHandlerScope=new Do(document,So)),Mo(n,n._localHandlerScope),n}var e=1,Po=e=w.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):e,Oo="#333",Ro="#ccc",No=Ve;function Eo(t){return 5e-5<t||t<-5e-5}var zo=[],Vo=[],Bo=ze(),Fo=Math.abs,Go=(Wo.prototype.getLocalTransform=function(t){return Wo.getLocalTransform(this,t)},Wo.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},Wo.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},Wo.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},Wo.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},Wo.prototype.needLocalTransform=function(){return Eo(this.rotation)||Eo(this.x)||Eo(this.y)||Eo(this.scaleX-1)||Eo(this.scaleY-1)||Eo(this.skewX)||Eo(this.skewY)},Wo.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||ze(),e?this.getLocalTransform(n):No(n),t&&(e?Fe(n,t,n):Be(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(No(n),this.invTransform=null)},Wo.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(zo),n=((zo[1]-(n=zo[1]<0?-1:1))*i+n)/zo[1]||0,t[0]*=i=((zo[0]-(e=zo[0]<0?-1:1))*i+e)/zo[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||ze(),Ye(this.invTransform,t)},Wo.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},Wo.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)},Wo.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(Fe(Vo,e.invTransform,t),t=Vo),e=this.originX,n=this.originY,(e||n)&&(Bo[4]=e,Bo[5]=n,Fe(Vo,t,Bo),Vo[4]-=e,Vo[5]-=n,t=Vo),this.setLocalTransform(t))},Wo.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},Wo.prototype.transformCoordToLocal=function(t,e){t=[t,e],e=this.invTransform;return e&&oe(t,t,e),t},Wo.prototype.transformCoordToGlobal=function(t,e){t=[t,e],e=this.transform;return e&&oe(t,t,e),t},Wo.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<Fo(t[0]-1)&&1e-10<Fo(t[3]-1)?Math.sqrt(Fo(t[0]*t[3]-t[2]*t[1])):1},Wo.prototype.copyTransform=function(t){Yo(this,t)},Wo.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&&We(e,e,l),e[4]+=n+u,e[5]+=i+h,e},Wo.initDefaultProps=((e=Wo.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)),Wo);function Wo(){}var Ho=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Yo(t,e){for(var n=0;n<Ho.length;n++){var i=Ho[n];t[i]=e[i]}}var Xo={};function Uo(t,e){var n=Xo[e=e||J],i=(n=n||(Xo[e]=new li(500))).get(t);return null==i&&(i=Q.measureText(t,e).width,n.put(t,i)),i}function Zo(t,e,n,i){t=Uo(t,e),e=$o(e),n=qo(0,t,n),i=Ko(0,e,i);return new z(n,i,t,e)}function jo(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return Zo(o[0],e,n,i);for(var r=new z(0,0,0,0),a=0;a<o.length;a++){var s=Zo(o[a],e,n,i);0===a?r.copy(s):r.union(s)}return r}function qo(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Ko(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function $o(t){return Uo("国",t)}function Jo(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function Qo(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+=Jo(i[0],n.width),u+=Jo(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 tr,er="__zr_normal__",nr=Ho.concat(["ignore"]),ir=ct(Ho,function(t,e){return t[e]=!0,t},{ignore:!1}),or={},rr=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=rr,t.layoutRect?u.copy(t.layoutRect):u.copy(this.getBoundingRect()),l||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(or,t,u):Qo(or,t,u),e.x=or.x,e.y=or.y,n=or.align,i=or.verticalAlign,r=t.origin)&&null!=t.rotation&&(s=a=void 0,s="center"===r?(a=.5*u.width,.5*u.height):(a=Jo(r[0],u.width),Jo(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|=Mn,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()?Ro:Oo},n.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&wi(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,Ai(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||{},H(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(O(t))for(var n=G(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!==er||(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,nr)},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(er,!1,t)},n.prototype.useState=function(t,e,n,i){var o=t===er;if(this.hasState()||!o){var r,a=this.currentStates,s=this.stateTransition;if(!(0<=F(a,t))||!e&&1!==a.length){if((r=(r=this.stateProxy&&!o?this.stateProxy(t):r)||this.states&&this.states[t])||o)return o||this.saveCurrentToNormalState(r),(a=!!(r&&r.hoverLayer||i))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,r,this._normalState,e,!n&&!this.__inHover&&s&&0<s.duration,s),i=this._textContent,s=this._textGuide,i&&i.useState(t,e,n,a),s&&s.useState(t,e,n,a),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!a&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Mn),r;rt("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&=~Mn)}}else this.clearStates()},n.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},n.prototype.removeState=function(t){var e,t=F(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=F(i,t),o=0<=F(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];H(n,o),o.textConfig&&H(e=e||{},o.textConfig)}return e&&(n.textConfig=e),n},n.prototype._applyStateObj=function(t,e,n,i,o,r){var a=!(e&&i);e&&e.textConfig?(this.textConfig=H({},(i?this:n).textConfig),H(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<nr.length;u++){var h=nr[u],c=o&&ir[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 Go,this._attachComponent(t),this._textContent=t,this.markRedraw())},n.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),H(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|=Mn;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 oo(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=F(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){sr(this,t,e,n)},n.prototype.animateFrom=function(t,e,n){sr(this,t,e,n,!0)},n.prototype._transitionState=function(t,e,n,i){for(var o=sr(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=((tr=n.prototype).type="element",tr.name="",tr.ignore=tr.silent=tr.isGroup=tr.draggable=tr.dragging=tr.ignoreClip=tr.__inHover=!1,tr.__dirty=Mn,void(Object.defineProperty&&(ar("position","_legacyPos","x","y"),ar("scale","_legacyScale","scaleX","scaleY"),ar("origin","_legacyOrigin","originX","originY")))),n);function n(t){this.id=it++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function ar(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(tr,t,{get:function(){return this[e]||o(this,this[e]=[]),this[e]},set:function(t){this[n]=t[0],this[i]=t[1],this[e]=t,o(this,t)}})}function sr(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){for(var u=G(o),h=r.duration,c=r.delay,p=r.additive,d=r.setToFinal,g=!O(a),f=e.animators,y=[],m=0;m<u.length;m++){var v=u[m],x=o[v];null!=x&&null!=i[v]&&(g||a[v])?!O(x)||ht(x)||vt(x)?y.push(v):n?l||(i[v]=x,e.updateDuringAnimation(n)):t(e,v,i[v],x,r,a&&a[v],s,l):l||(i[v]=x,e.updateDuringAnimation(n),y.push(v))}var _=y.length;if(!p&&_)for(var b=0;b<f.length;b++){var w;(S=f[b]).targetName===n&&S.stopTracks(y)&&(w=F(f,S),f.splice(w,1))}if(r.force||(_=(y=pt(y,function(t){return!hr(o[t],i[t])})).length),0<_||r.force&&!s.length){var S,M=void 0,I=void 0,T=void 0;if(l)for(I={},d&&(M={}),b=0;b<_;b++)I[v=y[b]]=i[v],d?M[v]=o[v]:i[v]=o[v];else if(d)for(T={},b=0;b<_;b++)T[v=y[b]]=Ji(i[v]),ur(i,o,v);(S=new oo(i,!1,!1,p?pt(f,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 lr(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function ur(t,e,n){if(ht(e[n]))if(ht(t[n])||(t[n]=[]),yt(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),lr(t[n],e[n],i))}else{var o=e[n],r=t[n],a=o.length;if(ht(o[0]))for(var s=o[0].length,l=0;l<a;l++)r[l]?lr(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else lr(r,o,a);r.length=o.length}else t[n]=e[n]}function hr(t,e){return t===e||ht(t)&&ht(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)}ut(e,ce),ut(e,Go);u(pr,cr=e),pr.prototype.childrenRef=function(){return this._children},pr.prototype.children=function(){return this._children.slice()},pr.prototype.childAt=function(t){return this._children[t]},pr.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},pr.prototype.childCount=function(){return this._children.length},pr.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},pr.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},pr.prototype.replace=function(t,e){t=F(this._children,t);return 0<=t&&this.replaceAt(e,t),this},pr.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},pr.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()},pr.prototype.remove=function(t){var e=this.__zr,n=this._children,i=F(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},pr.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},pr.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},pr.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},pr.prototype.addSelfToZr=function(t){cr.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},pr.prototype.removeSelfFromZr=function(t){cr.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},pr.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 cr,Z=pr;function pr(t){var e=cr.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}Z.prototype.type="group";var dr={},gr={};yr.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},yr.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},yr.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},yr.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return ki(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,o=0;o<i;o++)n+=ki(e[o].color,1);return(n/=i)<.4}}return!1}(t)},yr.prototype.getBackgroundColor=function(){return this._backgroundColor},yr.prototype.setDarkMode=function(t){this._darkMode=t},yr.prototype.isDarkMode=function(){return this._darkMode},yr.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},yr.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},yr.prototype.flush=function(){this._flush(!1)},yr.prototype._flush=function(t){var e,n=so(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),so());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)&&this.animation.stop()},yr.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},yr.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},yr.prototype.refreshHover=function(){this._needsRefreshHover=!0},yr.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},yr.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},yr.prototype.clearAnimation=function(){this.animation.clear()},yr.prototype.getWidth=function(){return this.painter.getWidth()},yr.prototype.getHeight=function(){return this.painter.getHeight()},yr.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},yr.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},yr.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},yr.prototype.off=function(t,e){this.handler.off(t,e)},yr.prototype.trigger=function(t,e){this.handler.trigger(t,e)},yr.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof Z&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},yr.prototype.dispose=function(){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,t=this.id,delete gr[t]};var fr=yr;function yr(t,e,n){var i=this,o=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new An),r=n.renderer||"canvas",r=(dr[r]||(r=G(dr)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new dr[r](e,o,n,t)),e=n.ssr||r.ssrOnly;this.storage=o,this.painter=r;var a,t=w.node||w.worker||e?null:new ko(r.getViewportRoot(),r.root),s=n.useCoarsePointer;(null==s||"auto"===s?w.touchEventsSupported:s)&&(a=R(n.pointerSize,44)),this.handler=new pn(o,r,t,r.root,a),this.animation=new uo({stage:{update:e?null:function(){return i._flush(!0)}}}),e||this.animation.start()}function mr(t,e){t=new fr(it++,t,e);return gr[t.id]=t}function vr(t,e){dr[t]=e}var xr=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in gr)gr.hasOwnProperty(t)&&gr[t].dispose();gr={}},getInstance:function(t){return gr[t]},init:mr,registerPainter:vr,version:"5.4.4"}),_r=20;function br(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 j(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 Y(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function wr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),_r),t=(+t).toFixed(e),n?t:+t}function Sr(t){return t.sort(function(t,e){return t-e}),t}function Mr(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 Ir(t)}function Ir(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 Tr(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=ct(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=ct(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})}var Dr=9007199254740991;function Ar(t){var e=2*Math.PI;return(t%e+e)%e}function kr(t){return-1e-4<t&&t<1e-4}var Lr=/^(?:(\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 Pr(t){var e,n;return t instanceof Date?t:Y(t)?(e=Lr.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 Or(t){return Math.pow(10,Rr(t))}function Rr(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function Nr(t,e){var n=Rr(t),i=Math.pow(10,n),o=t/i;return t=(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)*i,-20<=n?+t.toFixed(n<0?-n:0):t}function Er(t,e){var e=(t.length-1)*e+1,n=Math.floor(e),i=+t[n-1],e=e-n;return e?i+e*(t[n]-i):i}function zr(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}function Vr(t){var e=parseFloat(t);return e==t&&(0!==e||!Y(t)||t.indexOf("x")<=0)?e:NaN}function Br(t){return!isNaN(Vr(t))}function Fr(){return Math.round(9*Math.random())}function Gr(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 Wr(t){throw new Error(t)}function Hr(t,e,n){return(e-t)*n+t}var Yr="series\0",Xr="\0_ec_\0";function Ur(t){return t instanceof Array?t:null==t?[]:[t]}function Zr(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 jr=["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 qr(t){return!O(t)||W(t)||t instanceof Date?t:t.value}function Kr(t,n,e){var a,i,o,r,s,l,u,h,c,p,d="normalMerge"===e,g="replaceMerge"===e,f="replaceAll"===e,y=(t=t||[],n=(n||[]).slice(),N()),e=(et(n,function(t,e){O(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||ea(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}(t,y,e));return(d||g)&&(u=e,h=t,c=y,et(p=n,function(t,e){var n,i,o;t&&null!=t.id&&(n=Jr(t.id),null!=(i=c.get(n)))&&(Tt(!(o=u[i]).newOption,'Duplicated option on id "'+n+'".'),o.newOption=t,o.existing=h[i],p[e]=null)})),d&&(s=e,et(l=n,function(t,e){if(t&&null!=t.name)for(var n=0;n<s.length;n++){var i=s[n].existing;if(!s[n].newOption&&i&&(null==i.id||null==t.id)&&!ea(t)&&!ea(i)&&$r("name",i,t))return s[n].newOption=t,void(l[e]=null)}})),d||g?(o=e,r=g,et(n,function(t){if(t){for(var e,n=0;(e=o[n])&&(e.newOption||ea(e.existing)||e.existing&&null!=t.id&&!$r("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=r):o.push({newOption:t,brandNew:r,existing:null,keyInfo:null}),n++}})):f&&(i=e,et(n,function(t){i.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=e,a=N(),et(t,function(t){var e=t.existing;e&&a.set(e.id,t)}),et(t,function(t){var e=t.newOption;Tt(!e||null==e.id||!a.get(e.id)||a.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&a.set(e.id,t),t.keyInfo||(t.keyInfo={})}),et(t,function(t,e){var n=t.existing,i=t.newOption,o=t.keyInfo;if(O(i)){if(o.name=null!=i.name?Jr(i.name):n?n.name:Yr+e,n)o.id=Jr(n.id);else if(null!=i.id)o.id=Jr(i.id);else for(var r=0;o.id="\0"+o.name+"\0"+r++,a.get(o.id););a.set(o.id,t)}}),e}function $r(t,e,n){e=Qr(e[t],null),n=Qr(n[t],null);return null!=e&&null!=n&&e===n}function Jr(t){return Qr(t,"")}function Qr(t,e){return null==t?e:Y(t)?t:X(t)||gt(t)?t+"":e}function ta(t){t=t.name;return!(!t||!t.indexOf(Yr))}function ea(t){return t&&null!=t.id&&0===Jr(t.id).indexOf(Xr)}function na(t,o,r){et(t,function(t){var e,n,i=t.newOption;O(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 ia(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?W(t.dataIndex)?B(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?W(t.name)?B(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function i(){var e="__ec_inner_"+oa++;return function(t){return t[e]||(t[e]={})}}var oa=Fr();function ra(n,t,i){var t=aa(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=ua(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 aa(t,o){var e=Y(t)?((e={})[t+"Index"]=0,e):t,r=N(),a={},s=!1;return et(e,function(t,e){var n,i;"dataIndex"!==e&&"dataIndexInside"!==e?(n=(i=e.match(/^(\w+)(Index|Id|Name)$/)||[])[1],i=(i[2]||"").toLowerCase(),!n||!i||o&&o.includeMainTypes&&F(o.includeMainTypes,n)<0||(s=s||!!n,(r.get(n)||r.set(n,{}))[i]=t)):a[e]=t}),{mainTypeSpecified:s,queryOptionMap:r,others:a}}var sa={useDefault:!0,enableAll:!1,enableNone:!1},la={useDefault:!1,enableAll:!0,enableNone:!0};function ua(t,e,n,i){i=i||sa;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?(Tt(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),a.models=[]):("all"===o&&(Tt(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 ha(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function ca(t,n){var i=N(),o=[];return et(t,function(t){var e=n(t);(i.get(e)||(o.push(e),i.set(e,[]))).push(t)}),{keys:o,buckets:i}}function pa(t,e,n,i,o){var r=null==e||"auto"===e;if(null==i)return i;if(X(i))return wr(p=Hr(n||0,i,o),r?Math.max(Mr(n||0),Mr(i)):e);if(Y(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=Hr(d=s&&s[h]?s[h]:0,c=l[h],o),a[h]=wr(p,r?Math.max(Mr(d),Mr(c)):e))}return a}var da=".",ga="___EC__COMPONENT__CONTAINER___",fa="___EC__EXTENDED_CLASS___";function ya(t){var e={main:"",sub:""};return t&&(t=t.split(da),e.main=t[0]||"",e.sub=t[1]||""),e}function ma(t){(t.$constructor=t).extend=function(t){var e,n,i,o=this;return D(i=o)&&/^class\s/.test(Function.prototype.toString.call(i))?(u(r,n=o),e=r):lt(e=function(){(t.$constructor||o).apply(this,arguments)},this),H(e.prototype,t),e[fa]=!0,e.extend=this.extend,e.superCall=_a,e.superApply=ba,e.superClass=o,e;function r(){return n.apply(this,arguments)||this}}}function va(t,e){t.extend=e.extend}var xa=Math.round(10*Math.random());function _a(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 ba(t,e,n){return this.superClass.prototype[e].apply(t,n)}function wa(t){var o={};t.registerClass=function(t){var e,n=t.type||t.prototype.type;return n&&(Tt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e=n),'componentType "'+e+'" illegal'),(e=ya(t.prototype.type=n)).sub?e.sub!==ga&&((n=o[e.main])&&n[ga]||((n=o[e.main]={})[ga]=!0),n[e.sub]=t):o[e.main]=t),t},t.getClass=function(t,e,n){var i=o[t];if(i&&i[ga]&&(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=ya(t),n=[],t=o[t.main];return t&&t[ga]?et(t,function(t,e){e!==ga&&n.push(t)}):n.push(t),n},t.hasClass=function(t){t=ya(t);return!!o[t.main]},t.getAllClassMainTypes=function(){var n=[];return et(o,function(t,e){n.push(e)}),n},t.hasSubTypes=function(t){t=ya(t),t=o[t.main];return t&&t[ga]}}function Sa(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<=F(e,r)||n&&F(n,r)<0||null!=(r=t.getShallow(r,s))&&(i[a[o][0]]=r)}return i}}var Ma=Sa([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Ia=(Ta.prototype.getAreaStyle=function(t,e){return Ma(this,t,e)},Ta);function Ta(){}var Ca=new li(50);function Da(t,e,n,i,o){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:o},(i=Ca.get(t))?ka(e=i.image)||i.pending.push(n):((e=Q.loadImage(t,Aa,Aa)).__zrImageSrc=t,Ca.put(t,e.__cachedImgObj={image:e,pending:[n]}))),e):t:e}function Aa(){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 ka(t){return t&&t.width&&t.height}var La=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Pa(t,e,n,i,o){if(!e)return"";var r=(t+"").split("\n");o=Oa(e,n,i,o);for(var a=0,s=r.length;a<s;a++)r[a]=Ra(r[a],o);return r.join("\n")}function Oa(t,e,n,i){var o=H({},i=i||{}),r=(o.font=e,n=R(n,"..."),o.maxIterations=R(i.maxIterations,2),o.minChar=R(i.minChar,0)),a=(o.cnCharWidth=Uo("国",e),o.ascCharWidth=Uo("a",e));o.placeholder=R(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<r&&a<=s;l++)s-=a;i=Uo(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 Ra(t,e){var n=e.containerWidth,i=e.font,o=e.contentWidth;if(!n)return"";var r=Uo(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=Uo(t=t.substr(0,s),i)}""===t&&(t=e.placeholder)}return t}function Na(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}var Ea=function(){},za=function(t){this.tokens=[],t&&(this.tokens=t)};function Va(t,e){var n=new Na;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=La.lastIndex=0;null!=(i=La.exec(t));){var u=i.index;l<u&&Ba(n,t.substring(l,u),e,s),Ba(n,i[2],e,s,i[1]),l=La.lastIndex}l<t.length&&Ba(n,t.substring(l,t.length),e,s);var h,c=[],p=0,d=0,g=e.padding,f="truncate"===a,y="truncate"===e.lineOverflow;t:for(var m=0;m<n.lines.length;m++){for(var v=n.lines[m],x=0,_=0,b=0;b<v.tokens.length;b++){var w=(A=v.tokens[b]).styleName&&e.rich[A.styleName]||{},S=A.textPadding=w.padding,M=S?S[1]+S[3]:0,I=A.font=w.font||e.font,T=(A.contentHeight=$o(I),R(w.height,A.contentHeight));if(A.innerHeight=T,S&&(T+=S[0]+S[2]),A.height=T,A.lineHeight=St(w.lineHeight,e.lineHeight,T),A.align=w&&w.align||e.align,A.verticalAlign=w&&w.verticalAlign||"middle",y&&null!=r&&p+A.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)?(A.percentWidth=S,c.push(A),A.contentWidth=Uo(A.text,I)):(D&&(S=(S=w.backgroundColor)&&S.image)&&(C=void 0,ka(S="string"==typeof(h=S)?(C=Ca.get(h))&&C.image:h))&&(A.width=Math.max(A.width,S.width*T/S.height)),null!=(C=f&&null!=o?o-_:null)&&C<A.width?!D||C<M?(A.text="",A.width=A.contentWidth=0):(A.text=Pa(A.text,C-M,I,e.ellipsis,{minChar:e.truncateMinChar}),A.width=A.contentWidth=Uo(A.text,I)):A.contentWidth=Uo(A.text,I)),A.width+=M,_+=A.width,w&&(x=Math.max(x,A.lineHeight))}L(v,_,x)}for(n.outerWidth=n.width=R(o,d),n.outerHeight=n.height=R(r,p),n.contentHeight=p,n.contentWidth=d,g&&(n.outerWidth+=g[1]+g[3],n.outerHeight+=g[0]+g[2]),m=0;m<c.length;m++){var A,k=(A=c[m]).percentWidth;A.width=parseInt(k,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 Ba(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=Jo(l.width,i.width)+n,0<u.length&&t+i.accumWidth>i.width&&(r=e.split("\n"),c=!0),i.accumWidth=t):(t=Ga(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,g,f=r[p],y=new Ea;y.styleName=o,y.text=f,y.isLineHolder=!f&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[p]:Uo(f,h),p||c?u.push(new za([y])):1===(g=(d=(u[u.length-1]||(u[0]=new za)).tokens).length)&&d[0].isLineHolder?d[0]=y:!f&&g&&!s||d.push(y)}}var Fa=ct(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Ga(t,e,n,i,o){for(var r,a=[],s=[],l="",u="",h=0,c=0,p=0;p<t.length;p++){var d,g,f=t.charAt(p);"\n"!==f?(d=Uo(f,e),g=!(i||(g=void 0,!(32<=(g=(g=r=f).charCodeAt(0))&&g<=591||880<=g&&g<=4351||4608<=g&&g<=5119||7680<=g&&g<=8303))||Fa[r]),(a.length?n<c+d:n<o+c+d)?c?(l||u)&&(c=g?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=f,l="",h+=d):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=f,d)):g?(a.push(u),s.push(h),u=f,h=d):(a.push(f),s.push(d)):(c+=d,g?(u+=f,h+=d):(u&&(l+=u,u="",h=0),l+=f))):(u&&(l+=u,c+=h),a.push(l),s.push(c),u=l="",c=h=0)}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 Wa,Ha="__zr_style_"+Math.round(10*Math.random()),Ya={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Xa={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Ua=(Ya[Ha]=!0,["z","z2","invisible"]),Za=["invisible"],ja=(u($a,Wa=e),$a.prototype._init=function(t){for(var e=G(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):Wa.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},$a.prototype.beforeBrush=function(){},$a.prototype.afterBrush=function(){},$a.prototype.innerBeforeBrush=function(){},$a.prototype.innerAfterBrush=function(){},$a.prototype.shouldBePainted=function(t,e,n,i){var o,r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(o=this,t=t,e=e,qa.copy(o.getBoundingRect()),o.transform&&qa.applyTransform(o.transform),Ka.width=t,Ka.height=e,!qa.intersect(Ka))||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths)for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1;if(i&&this.parent)for(var s=this.parent;s;){if(s.ignore)return!1;s=s.parent}return!0},$a.prototype.contain=function(t,e){return this.rectContain(t,e)},$a.prototype.traverse=function(t,e){t.call(e,this)},$a.prototype.rectContain=function(t,e){t=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(t[0],t[1])},$a.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},$a.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new z(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},$a.prototype.getPrevPaintRect=function(){return this._prevPaintRect},$a.prototype.animateStyle=function(t){return this.animate("style",t)},$a.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},$a.prototype.attrKV=function(t,e){"style"!==t?Wa.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},$a.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:H(this.style,t),this.dirtyStyle(),this},$a.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},$a.prototype.dirty=function(){this.dirtyStyle()},$a.prototype.styleChanged=function(){return!!(2&this.__dirty)},$a.prototype.styleUpdated=function(){this.__dirty&=-3},$a.prototype.createStyle=function(t){return zt(Ya,t)},$a.prototype.useStyle=function(t){t[Ha]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},$a.prototype.isStyleObject=function(t){return t[Ha]},$a.prototype._innerSaveToNormal=function(t){Wa.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,Ua)},$a.prototype._applyStateObj=function(t,e,n,i,o,r){Wa.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=G(l),h=0;h<u.length;h++)(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=G(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);var d=this.__inHover?Za:Ua;for(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])},$a.prototype._mergeStates=function(t){for(var e,n=Wa.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},$a.prototype._mergeStyle=function(t,e){return H(t,e),t},$a.prototype.getAnimationStyleProps=function(){return Xa},$a.initDefaultProps=((e=$a.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|Mn)),$a),qa=new z(0,0,0,0),Ka=new z(0,0,0,0);function $a(t){return Wa.call(this,t)||this}var Ja=Math.min,Qa=Math.max,ts=Math.sin,es=Math.cos,ns=2*Math.PI,is=Wt(),os=Wt(),rs=Wt();function as(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=Ja(o,i[0]),r=Qa(r,i[0]),a=Ja(a,i[1]),s=Qa(s,i[1]);e[0]=o,e[1]=a,n[0]=r,n[1]=s}}function ss(t,e,n,i,o,r){o[0]=Ja(t,n),o[1]=Ja(e,i),r[0]=Qa(t,n),r[1]=Qa(e,i)}var ls=[],us=[];var hs={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},cs=[],ps=[],ds=[],gs=[],fs=[],ys=[],ms=Math.min,vs=Math.max,xs=Math.cos,_s=Math.sin,bs=Math.abs,ws=Math.PI,Ss=2*ws,Ms="undefined"!=typeof Float32Array,Is=[];function Ts(t){return Math.round(t/ws*1e8)/1e8%2*ws}function Cs(t,e){var n=Ts(t[0]),i=(n<0&&(n+=Ss),n-t[0]),o=t[1];o+=i,!e&&Ss<=o-n?o=n+Ss:e&&Ss<=n-o?o=n-Ss:!e&&o<n?o=n+(Ss-Ts(n-o)):e&&n<o&&(o=n-(Ss-Ts(o-n))),t[0]=n,t[1]=o}As.prototype.increaseVersion=function(){this._version++},As.prototype.getVersion=function(){return this._version},As.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=bs(n/Po/t)||0,this._uy=bs(n/Po/e)||0)},As.prototype.setDPR=function(t){this.dpr=t},As.prototype.setContext=function(t){this._ctx=t},As.prototype.getContext=function(){return this._ctx},As.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},As.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},As.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(hs.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},As.prototype.lineTo=function(t,e){var n=bs(t-this._xi),i=bs(e-this._yi),o=n>this._ux||i>this._uy;return this.addData(hs.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},As.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this._drawPendingPt(),this.addData(hs.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},As.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(hs.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},As.prototype.arc=function(t,e,n,i,o,r){this._drawPendingPt(),Is[0]=i,Is[1]=o,Cs(Is,r);var a=(o=Is[1])-(i=Is[0]);return this.addData(hs.A,t,e,n,n,i,a,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=xs(o)*n+t,this._yi=_s(o)*n+e,this},As.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},As.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(hs.R,t,e,n,i),this},As.prototype.closePath=function(){this._drawPendingPt(),this.addData(hs.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},As.prototype.fill=function(t){t&&t.fill(),this.toStatic()},As.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},As.prototype.len=function(){return this._len},As.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Ms||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},As.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();for(Ms&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n)),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},As.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]}},As.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},As.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}},As.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,Ms)&&11<this._len&&(this.data=new Float32Array(t))},As.prototype.getBoundingRect=function(){ds[0]=ds[1]=fs[0]=fs[1]=Number.MAX_VALUE,gs[0]=gs[1]=ys[0]=ys[1]=-Number.MAX_VALUE;for(var t,e,n,i=this.data,o=0,r=0,a=0,s=0,l=0;l<this._len;){var u=i[l++],h=1===l;switch(h&&(a=o=i[l],s=r=i[l+1]),u){case hs.M:o=a=i[l++],r=s=i[l++],fs[0]=a,fs[1]=s,ys[0]=a,ys[1]=s;break;case hs.L:ss(o,r,i[l],i[l+1],fs,ys),o=i[l++],r=i[l++];break;case hs.C:T=I=M=S=w=b=_=x=v=m=y=f=g=d=p=c=void 0;var c=o,p=r,d=i[l++],g=i[l++],f=i[l++],y=i[l++],m=i[l],v=i[l+1],x=fs,_=ys,b=Zn,w=Yn,S=b(c,d,f,m,ls);x[0]=1/0,x[1]=1/0,_[0]=-1/0,_[1]=-1/0;for(var M=0;M<S;M++){var I=w(c,d,f,m,ls[M]);x[0]=Ja(I,x[0]),_[0]=Qa(I,_[0])}for(S=b(p,g,y,v,us),M=0;M<S;M++){var T=w(p,g,y,v,us[M]);x[1]=Ja(T,x[1]),_[1]=Qa(T,_[1])}x[0]=Ja(c,x[0]),_[0]=Qa(c,_[0]),x[0]=Ja(m,x[0]),_[0]=Qa(m,_[0]),x[1]=Ja(p,x[1]),_[1]=Qa(p,_[1]),x[1]=Ja(v,x[1]),_[1]=Qa(v,_[1]),o=i[l++],r=i[l++];break;case hs.Q:b=o,t=r,P=i[l++],D=i[l++],L=i[l],e=i[l+1],k=fs,O=ys,n=A=n=C=void 0,C=Kn,n=Qa(Ja((A=Jn)(b,P,L),1),0),A=Qa(Ja(A(t,D,e),1),0),P=C(b,P,L,n),n=C(t,D,e,A),k[0]=Ja(b,L,P),k[1]=Ja(t,e,n),O[0]=Qa(b,L,P),O[1]=Qa(t,e,n),o=i[l++],r=i[l++];break;case hs.A:var C=i[l++],D=i[l++],A=i[l++],k=i[l++],L=i[l++],P=i[l++]+L,O=(l+=1,!i[l++]);h&&(a=xs(L)*A+C,s=_s(L)*k+D),function(t,e,n,i,o,r,a,s,l){var u=re,h=ae,c=Math.abs(o-r);if(c%ns<1e-4&&1e-4<c)return s[0]=t-n,s[1]=e-i,l[0]=t+n,l[1]=e+i;is[0]=es(o)*n+t,is[1]=ts(o)*i+e,os[0]=es(r)*n+t,os[1]=ts(r)*i+e,u(s,is,os),h(l,is,os),(o%=ns)<0&&(o+=ns),(r%=ns)<0&&(r+=ns),r<o&&!a?r+=ns:o<r&&a&&(o+=ns),a&&(c=r,r=o,o=c);for(var p=0;p<r;p+=Math.PI/2)o<p&&(rs[0]=es(p)*n+t,rs[1]=ts(p)*i+e,u(s,rs,s),h(l,rs,l))}(C,D,A,k,L,P,O,fs,ys),o=xs(P)*A+C,r=_s(P)*k+D;break;case hs.R:ss(a=o=i[l++],s=r=i[l++],a+i[l++],s+i[l++],fs,ys);break;case hs.Z:o=a,r=s}re(ds,ds,fs),ae(gs,gs,ys)}return 0===l&&(ds[0]=ds[1]=gs[0]=gs[1]=0),new z(ds[0],ds[1],gs[0]-ds[0],gs[1]-ds[1])},As.prototype._calculateLength=function(){var t=this.data,e=this._len,n=this._ux,i=this._uy,o=0,r=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,u=0,h=0,c=0;c<e;){var p=t[c++],d=1===c,g=(d&&(a=o=t[c],s=r=t[c+1]),-1);switch(p){case hs.M:o=a=t[c++],r=s=t[c++];break;case hs.L:var f=t[c++],y=(x=t[c++])-r;(bs(C=f-o)>n||bs(y)>i||c===e-1)&&(g=Math.sqrt(C*C+y*y),o=f,r=x);break;case hs.C:var m=t[c++],v=t[c++],x=(f=t[c++],t[c++]),_=t[c++],b=t[c++],g=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 g=d*p,f=Yn(t,n,o,a,g),g=Yn(e,i,r,s,g),y=f-u,m=g-h;c+=Math.sqrt(y*y+m*m),u=f,h=g}return c}(o,r,m,v,f,x,_,b,10),o=_,r=b;break;case hs.Q:g=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=Kn(t,n,o,p),p=Kn(e,i,r,p),g=d-s,f=p-l;u+=Math.sqrt(g*g+f*f),s=d,l=p}return u}(o,r,m=t[c++],v=t[c++],f=t[c++],x=t[c++],10),o=f,r=x;break;case hs.A:var _=t[c++],b=t[c++],w=t[c++],S=t[c++],M=t[c++],I=t[c++],T=I+M;c+=1,t[c++],d&&(a=xs(M)*w+_,s=_s(M)*S+b),g=vs(w,S)*ms(Ss,Math.abs(I)),o=xs(T)*w+_,r=_s(T)*S+b;break;case hs.R:a=o=t[c++],s=r=t[c++],g=2*t[c++]+2*t[c++];break;case hs.Z:var C=a-o,y=s-r;g=Math.sqrt(C*C+y*y),o=a,r=s}0<=g&&(u+=l[h++]=g)}return this._pathLen=u},As.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,h=this.data,E=this._ux,z=this._uy,V=this._len,c=e<1,p=0,d=0,g=0;if(!c||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var f=0;f<V;){var y,m=h[f++],B=1===f;switch(B&&(n=o=h[f],i=r=h[f+1]),m!==hs.L&&0<g&&(t.lineTo(l,u),g=0),m){case hs.M:n=o=h[f++],i=r=h[f++],t.moveTo(o,r);break;case hs.L:var v=h[f++],x=h[f++],_=bs(v-o),b=bs(x-r);if(E<_||z<b){if(c){if(p+(y=a[d++])>s){var w=(s-p)/y;t.lineTo(o*(1-w)+v*w,r*(1-w)+x*w);break t}p+=y}t.lineTo(v,x),o=v,r=x,g=0}else{_=_*_+b*b;g<_&&(l=v,u=x,g=_)}break;case hs.C:var S=h[f++],M=h[f++],I=h[f++],T=h[f++],b=h[f++],_=h[f++];if(c){if(p+(y=a[d++])>s){jn(o,S,I,b,w=(s-p)/y,cs),jn(r,M,T,_,w,ps),t.bezierCurveTo(cs[1],ps[1],cs[2],ps[2],cs[3],ps[3]);break t}p+=y}t.bezierCurveTo(S,M,I,T,b,_),o=b,r=_;break;case hs.Q:if(S=h[f++],M=h[f++],I=h[f++],T=h[f++],c){if(p+(y=a[d++])>s){Qn(o,S,I,w=(s-p)/y,cs),Qn(r,M,T,w,ps),t.quadraticCurveTo(cs[1],ps[1],cs[2],ps[2]);break t}p+=y}t.quadraticCurveTo(S,M,I,T),o=I,r=T;break;case hs.A:var C=h[f++],D=h[f++],A=h[f++],k=h[f++],L=h[f++],P=h[f++],O=h[f++],F=!h[f++],G=k<A?A:k,R=.001<bs(A-k),N=L+P,W=!1;if(c&&(p+(y=a[d++])>s&&(N=L+P*(s-p)/y,W=!0),p+=y),R&&t.ellipse?t.ellipse(C,D,A,k,O,L,N,F):t.arc(C,D,G,L,N,F),W)break t;B&&(n=xs(L)*A+C,i=_s(L)*k+D),o=xs(N)*A+C,r=_s(N)*k+D;break;case hs.R:n=o=h[f],i=r=h[f+1],v=h[f++],x=h[f++];P=h[f++],R=h[f++];if(c){if(p+(y=a[d++])>s){O=s-p;t.moveTo(v,x),t.lineTo(v+ms(O,P),x),0<(O-=P)&&t.lineTo(v+P,x+ms(O,R)),0<(O-=R)&&t.lineTo(v+vs(P-O,0),x+R),0<(O-=P)&&t.lineTo(v,x+vs(R-O,0));break t}p+=y}t.rect(v,x,P,R);break;case hs.Z:if(c){if(p+(y=a[d++])>s){t.lineTo(o*(1-(w=(s-p)/y))+n*w,r*(1-w)+i*w);break t}p+=y}t.closePath(),o=n,r=i}}},As.prototype.clone=function(){var t=new As,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},As.CMD=hs,As.initDefaultProps=((e=As.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0));var Ds=As;function As(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 ks(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)}function Ls(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)&&ti(t,e,n,i,o,r,s,l,null)<=a/2}var Ps=2*Math.PI;function Os(t){return(t%=Ps)<0&&(t+=Ps),t}var Rs=2*Math.PI;function Ns(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 Es=Ds.CMD,zs=2*Math.PI,Vs=1e-4;var Bs=[-1,-1,-1],Fs=[-1,-1];function Gs(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=Un(e,i,r,s,u,Bs);if(0===h)return 0;for(var c,p=0,d=-1,g=void 0,f=void 0,y=0;y<h;y++){var m=Bs[y],v=0===m||1===m?.5:1;Yn(t,n,o,a,m)<l||(d<0&&(d=Zn(e,i,r,s,Fs),Fs[1]<Fs[0]&&1<d&&(c=void 0,c=Fs[0],Fs[0]=Fs[1],Fs[1]=c),g=Yn(e,i,r,s,Fs[0]),1<d)&&(f=Yn(e,i,r,s,Fs[1])),2===d?m<Fs[0]?p+=g<e?v:-v:m<Fs[1]?p+=f<g?v:-v:p+=s<f?v:-v:m<Fs[0]?p+=g<e?v:-v:p+=s<g?v:-v)}return p}function Ws(t,e,n,i,o,r,a,s){if(e<s&&i<s&&r<s||s<e&&s<i&&s<r)return 0;c=Bs,h=(l=e)-2*(u=i)+(h=r),u=2*(u-l),l-=s=s,s=0,Wn(h)?Hn(u)&&0<=(p=-l/u)&&p<=1&&(c[s++]=p):Wn(l=u*u-4*h*l)?0<=(p=-u/(2*h))&&p<=1&&(c[s++]=p):0<l&&(d=(-u-(l=Rn(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,g=s;if(0===g)return 0;var f=Jn(e,i,r);if(0<=f&&f<=1){for(var y=0,m=Kn(e,i,r,f),v=0;v<g;v++){var x=0===Bs[v]||1===Bs[v]?.5:1;Kn(t,n,o,Bs[v])<a||(Bs[v]<f?y+=m<e?x:-x:y+=r<m?x:-x)}return y}return x=0===Bs[0]||1===Bs[0]?.5:1,Kn(t,n,o,Bs[0])<a?0:r<e?x:-x}function Hs(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 g=a[d++],f=1===d;switch(g===Es.M&&1<d&&(n||(l+=Ns(u,h,c,p,i,o))),f&&(c=u=a[d],p=h=a[d+1]),g){case Es.M:u=c=a[d++],h=p=a[d++];break;case Es.L:if(n){if(ks(u,h,a[d],a[d+1],e,i,o))return!0}else l+=Ns(u,h,a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case Es.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)&&qn(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+=Gs(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 Es.Q:if(n){if(Ls(u,h,a[d++],a[d++],a[d],a[d+1],e,i,o))return!0}else l+=Ws(u,h,a[d++],a[d++],a[d],a[d+1],i,o)||0;u=a[d++],h=a[d++];break;case Es.A:var y=a[d++],m=a[d++],v=a[d++],x=a[d++],_=a[d++],b=a[d++],w=(d+=1,!!(1-a[d++])),S=Math.cos(_)*v+y,M=Math.sin(_)*x+m,I=(f?(c=S,p=M):l+=Ns(u,h,S,M,i,o),(i-y)*x/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)%Rs<1e-4||((o=r?(e=i,i=Os(o),Os(e)):(i=Os(i),Os(o)))<i&&(o+=Rs),(t=Math.atan2(l,s))<0&&(t+=Rs),i<=t&&t<=o)||i<=t+Rs&&t+Rs<=o)}(y,m,x,_,_+b,w,e,I,o))return!0}else l+=function(t,e,n,i,o,r,a,s){if((s-=e)>n||s<-n)return 0;var e=Math.sqrt(n*n-s*s);if(Bs[0]=-e,Bs[1]=e,(n=Math.abs(i-o))<1e-4)return 0;if(zs-1e-4<=n)return o=zs,h=r?1:-1,a>=Bs[i=0]+t&&a<=Bs[1]+t?h:0;o<i&&(e=i,i=o,o=e),i<0&&(i+=zs,o+=zs);for(var l=0,u=0;u<2;u++){var h,c=Bs[u];a<c+t&&(h=r?1:-1,i<=(c=(c=Math.atan2(s,c))<0?zs+c:c)&&c<=o||i<=c+zs&&c+zs<=o)&&(l+=h=c>Math.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,x,_,_+b,w,I,o);u=Math.cos(_+b)*v+y,h=Math.sin(_+b)*x+m;break;case Es.R:if(c=u=a[d++],p=h=a[d++],S=c+a[d++],M=p+a[d++],n){if(ks(c,p,S,p,e,i,o)||ks(S,p,S,M,e,i,o)||ks(S,M,c,M,e,i,o)||ks(c,M,c,p,e,i,o))return!0}else l=(l+=Ns(S,p,S,M,i,o))+Ns(c,M,c,p,i,o);break;case Es.Z:if(n){if(ks(u,h,c,p,e,i,o))return!0}else l+=Ns(u,h,c,p,i,o);u=c,h=p}}return n||(t=h,r=p,Math.abs(t-r)<Vs)||(l+=Ns(u,h,c,p,i,o)||0),0!==l}var Ys,Xs=V({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ya),Us={style:V({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Xa.style)},Zs=Ho.concat(["invisible","culling","z","z2","zlevel","parent"]),q=(u(js,Ys=ja),js.prototype.update=function(){var e=this,t=(Ys.prototype.update.call(this),this.style);if(t.decal){var n,i=this._decalEl=this._decalEl||new js,o=(i.buildPath===js.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<Zs.length;++r)i[Zs[r]]=this[Zs[r]];i.__dirty|=Mn}else this._decalEl&&(this._decalEl=null)},js.prototype.getDecalElement=function(){return this._decalEl},js.prototype._init=function(t){var e=G(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?H(this.style,r):this.useStyle(r):"shape"===o?H(this.shape,r):Ys.prototype.attrKV.call(this,o,r)}this.style||this.useStyle({})},js.prototype.getDefaultStyle=function(){return null},js.prototype.getDefaultShape=function(){return{}},js.prototype.canBeInsideText=function(){return this.hasFill()},js.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(Y(e))return.5<(t=ki(e,0))?Oo:.2<t?"#eee":Ro;if(e)return Ro}return Oo},js.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Y(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==ki(t,0)<.4)return e}},js.prototype.buildPath=function(t,e,n){},js.prototype.pathUpdated=function(){this.__dirty&=~In},js.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},js.prototype.createPathProxy=function(){this.path=new Ds(!1)},js.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},js.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},js.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&In)&&(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},js.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)),Hs(n,i/o,!0,t,e)))return!0}if(this.hasFill())return Hs(n,0,!1,t,e)}return!1},js.prototype.dirtyShape=function(){this.__dirty|=In,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},js.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},js.prototype.animateShape=function(t){return this.animate("shape",t)},js.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},js.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):Ys.prototype.attrKV.call(this,t,e)},js.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:H(n,t),this.dirtyShape(),this},js.prototype.shapeChanged=function(){return!!(this.__dirty&In)},js.prototype.createStyle=function(t){return zt(Xs,t)},js.prototype._innerSaveToNormal=function(t){Ys.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=H({},this.shape))},js.prototype._applyStateObj=function(t,e,n,i,o,r){Ys.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=H({},n.shape),H(a,e.shape)):(a=H({},(i?this:n).shape),H(a,e.shape)):s&&(a=n.shape),a)if(o){this.shape=H({},this.shape);for(var l={},u=G(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()},js.prototype._mergeStates=function(t){for(var e,n=Ys.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},js.prototype.getAnimationStyleProps=function(){return Us},js.prototype.isZeroArea=function(){return!1},js.extend=function(n){u(o,i=js),o.prototype.getDefaultStyle=function(){return S(n.style)},o.prototype.getDefaultShape=function(){return S(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},js.initDefaultProps=((e=js.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,void(e.__dirty=2|Mn|In)),js);function js(t){return Ys.call(this,t)||this}var qs,Ks=V({strokeFirst:!0,font:J,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Xs),$s=(u(Js,qs=ja),Js.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},Js.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Js.prototype.createStyle=function(t){return zt(Ks,t)},Js.prototype.setBoundingRect=function(t){this._rect=t},Js.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=jo(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},Js.initDefaultProps=void(Js.prototype.dirtyRectTolerance=10),Js);function Js(){return null!==qs&&qs.apply(this,arguments)||this}$s.prototype.type="tspan";var Qs=V({x:0,y:0},Ya),tl={style:V({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Xa.style)};u(il,el=ja),il.prototype.createStyle=function(t){return zt(Qs,t)},il.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},il.prototype.getWidth=function(){return this._getSize("width")},il.prototype.getHeight=function(){return this._getSize("height")},il.prototype.getAnimationStyleProps=function(){return tl},il.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 el,nl=il;function il(){return null!==el&&el.apply(this,arguments)||this}nl.prototype.type="image";var ol=Math.round;function rl(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)&&(ol(2*i)===ol(2*o)&&(t.x1=t.x2=sl(i,n,!0)),ol(2*r)===ol(2*e))&&(t.y1=t.y2=sl(r,n,!0)),t}function al(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=sl(i,n,!0),t.y=sl(o,n,!0),t.width=Math.max(sl(i+r,n,!1)-t.x,0===r?0:1),t.height=Math.max(sl(o+e,n,!1)-t.y,0===e?0:1)),t}function sl(t,e,n){var i;return e?((i=ol(2*t))+ol(e))%2==0?i/2:(i+(n?1:-1))/2:t}function ll(){this.x=0,this.y=0,this.width=0,this.height=0}var ul,hl={},L=(u(cl,ul=q),cl.prototype.getDefaultShape=function(){return new ll},cl.prototype.buildPath=function(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,g,f;this.subPixelOptimize?(n=(a=al(hl,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,g=e.width,f=e.height,e=e.r,g<0&&(p+=g,g=-g),f<0&&(d+=f,f=-f),"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,g<s+l&&(s*=g/(c=s+l),l*=g/c),g<u+h&&(u*=g/(c=u+h),h*=g/c),f<l+u&&(l*=f/(c=l+u),u*=f/c),f<s+h&&(s*=f/(c=s+h),h*=f/c),a.moveTo(p+s,d),a.lineTo(p+g-l,d),0!==l&&a.arc(p+g-l,d+l,l,-Math.PI/2,0),a.lineTo(p+g,d+f-u),0!==u&&a.arc(p+g-u,d+f-u,u,0,Math.PI/2),a.lineTo(p+h,d+f),0!==h&&a.arc(p+h,d+f-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)},cl.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},cl);function cl(t){return ul.call(this,t)||this}L.prototype.type="rect";var pl,dl={fill:"#000"},gl={style:V({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},Xa.style)},K=(u(vl,pl=ja),vl.prototype.childrenRef=function(){return this._children},vl.prototype.update=function(){pl.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}},vl.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):pl.prototype.updateTransform.call(this)},vl.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):pl.prototype.getLocalTransform.call(this,t)},vl.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),pl.prototype.getComputedTransform.call(this)},vl.prototype._updateSubTexts=function(){var t;this._childCursor=0,wl(t=this.style),et(t.rich,wl),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},vl.prototype.addSelfToZr=function(t){pl.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},vl.prototype.removeSelfFromZr=function(t){pl.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},vl.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},vl.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||dl},vl.prototype.setTextContent=function(t){},vl.prototype._mergeStyle=function(t,e){var n,i;return e&&(n=e.rich,i=t.rich||n&&{},H(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i)),t},vl.prototype._mergeRich=function(t,e){for(var n=G(e),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},H(t[o],e[o])}},vl.prototype.getAnimationStyleProps=function(){return gl},vl.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},vl.prototype._updatePlainTexts=function(){var t,e=this.style,n=e.font||J,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=$o(r),l=R(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?Ga(t,e.font,c,"breakAll"===i,0).lines:[]).length*l,p=R(e.height,i);if(p<i&&h&&(h=Math.floor(p/l),n=n.slice(0,h)),t&&a&&null!=c)for(var d=Oa(c,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g<n.length;g++)n[g]=Ra(n[g],d);for(var h=p,f=0,g=0;g<n.length;g++)f=Math.max(Uo(n[g],r),f);return null==c&&(c=f),t=f,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:f,contentHeight:i,width:c}}(Tl(e),e),r=Cl(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,g=e.y||0,f=e.align||p.align||"left",y=e.verticalAlign||p.verticalAlign||"top",m=d,v=Ko(g,o.contentHeight,y);(r||i)&&(t=qo(d,l,f),g=Ko(g,s,y),r)&&this._renderBackground(e,e,t,g,l,s),v+=c/2,i&&(m=Il(d,f,i),"top"===y?v+=i[0]:"bottom"===y&&(v-=i[2]));for(var x=0,r=!1,_=(Ml(("fill"in e?e:(r=!0,p)).fill)),b=(Sl("stroke"in e?e.stroke:a||p.autoStroke&&!r?null:(x=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($s),C=T.createStyle();T.useStyle(C),C.text=h[I],C.x=m,C.y=v,f&&(C.textAlign=f),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=_,b&&(C.lineWidth=e.lineWidth||x,C.lineDash=e.lineDash,C.lineDashOffset=e.lineDashOffset||0),C.font=n,_l(C,e),v+=c,S&&T.setBoundingRect(new z(qo(C.x,e.width,C.textAlign),Ko(C.y,M,C.textBaseline),u,M))}},vl.prototype._updateRichTexts=function(){var t=this.style,e=Va(Tl(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=qo(a,i,u),u=Ko(s,o,l),h=a,c=u,p=(r&&(h+=r[3],c+=r[0]),h+n);Cl(t)&&this._renderBackground(t,t,a,u,i,o);for(var d=!!t.backgroundColor,g=0;g<e.lines.length;g++){for(var f=e.lines[g],y=f.tokens,m=y.length,v=f.lineHeight,x=f.width,_=0,b=h,w=p,S=m-1,M=void 0;_<m&&(!(M=y[_]).align||"left"===M.align);)this._placeToken(M,t,v,c,b,"left",d),x-=M.width,b+=M.width,_++;for(;0<=S&&"right"===(M=y[S]).align;)this._placeToken(M,t,v,c,w,"right",d),x-=M.width,w-=M.width,S--;for(b+=(n-(b-h)-(p-w)-x)/2;_<=S;)M=y[_],this._placeToken(M,t,v,c,b+M.width/2,"center",d),b+=M.width,_++;c+=v}},vl.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,l=("top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Cl(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),!!s.backgroundColor),i=t.textPadding,n=(i&&(o=Il(o,r,i),u-=t.height/2-i[0]-t.innerHeight/2),this._getOrCreateChild($s)),i=n.createStyle(),h=(n.useStyle(i),this._defaultStyle),c=!1,p=0,d=Ml(("fill"in s?s:"fill"in e?e:(c=!0,h)).fill),l=Sl("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||J,i.opacity=St(s.opacity,e.opacity,1),_l(i,s),l&&(i.lineWidth=St(s.lineWidth,e.lineWidth,p),i.lineDash=R(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(qo(i.x,c,i.textAlign),Ko(i.y,h,i.textBaseline),c,h))},vl.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,g=h&&!d,f=t.borderRadius,y=this,f=((g||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(L)).useStyle(a.createStyle()),a.style.fill=null,(u=a.shape).x=n,u.y=i,u.width=o,u.height=r,u.r=f,a.dirtyShape()),g?((l=a.style).fill=h||null,l.fillOpacity=R(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(nl)).onload=function(){y.dirtyStyle()},(u=s.style).image=h.image,u.x=n,u.y=i,u.width=o,u.height=r),c&&p&&((l=a.style).lineWidth=c,l.stroke=p,l.strokeOpacity=R(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2),(a||s).style);f.shadowBlur=t.shadowBlur||0,f.shadowColor=t.shadowColor||"transparent",f.shadowOffsetX=t.shadowOffsetX||0,f.shadowOffsetY=t.shadowOffsetY||0,f.opacity=St(t.opacity,e.opacity,1)},vl.makeFont=function(t){var e="";return(e=bl(t)?[t.fontStyle,t.fontWeight,xl(t.fontSize),t.fontFamily||"sans-serif"].join(" "):e)&&Ct(e)||t.textFont||t.font},vl),fl={left:!0,right:1,center:1},yl={top:1,bottom:1,middle:1},ml=["fontStyle","fontWeight","fontSize","fontFamily"];function vl(t){var e=pl.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=dl,e.attr(t),e}function xl(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?l+"px":t+"px":t}function _l(t,e){for(var n=0;n<ml.length;n++){var i=ml[n],o=e[i];null!=o&&(t[i]=o)}}function bl(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function wl(t){var e;t&&(t.font=K.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||fl[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||yl[e]?e:"top",t.padding)&&(t.padding=It(t.padding))}function Sl(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ml(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Il(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Tl(t){t=t.text;return null!=t&&(t+=""),t}function Cl(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}function Dl(e,n,i,t){var o;t&&((o=$(t)).dataIndex=i,o.dataType=n,o.seriesIndex=e,"group"===t.type)&&t.traverse(function(t){t=$(t);t.seriesIndex=e,t.dataIndex=i,t.dataType=n})}var $=i(),Al=1,kl={},Ll=i(),Pl=i(),Ol=0,Rl=1,Nl=2,El=["emphasis","blur","select"],zl=["normal","emphasis","blur","select"],Vl="highlight",Bl="downplay",Fl="select",Gl="unselect",Wl="toggleSelect";function Hl(t){return null!=t&&"none"!==t}var Yl=new li(100);function Xl(t){var e;return Y(t)?((e=Yl.get(t))||(e=Mi(t,-.1),Yl.put(t,e)),e):vt(t)?((e=H({},t)).colorStops=B(t.colorStops,function(t){return{offset:t.offset,color:Mi(t.color,-.1)}}),e):t}function Ul(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Zl(t){Ul(t,"emphasis",Nl)}function jl(t){t.hoverState===Nl&&Ul(t,"normal",Ol)}function ql(t){Ul(t,"blur",Rl)}function Kl(t){t.hoverState===Rl&&Ul(t,"normal",Ol)}function $l(t){t.selected=!0}function Jl(t){t.selected=!1}function Ql(t,e,n){e(t,n)}function tu(t,e,n){Ql(t,e,n),t.isGroup&&t.traverse(function(t){Ql(t,e,n)})}function eu(t,e){switch(e){case"emphasis":t.hoverState=Nl;break;case"normal":t.hoverState=Ol;break;case"blur":t.hoverState=Rl;break;case"select":t.selected=!0}}function nu(t,e,n){var i=0<=F(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=H({},n),e=H({opacity:i?o:.1*t.opacity},e),n.style=e),n}function iu(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<=F(e,"select"),a=!1,n instanceof q&&(o=Ll(n),r=e&&o.selectFill||o.normalFill,e=e&&o.selectStroke||o.normalStroke,Hl(r)||Hl(e))&&("inherit"===(o=(i=i||{}).style||{}).fill?(a=!0,i=H({},i),(o=H({},o)).fill=r):!Hl(o.fill)&&Hl(r)?(a=!0,i=H({},i),(o=H({},o)).fill=Xl(r)):!Hl(o.stroke)&&Hl(e)&&(a||(i=H({},i),o=H({},o)),o.stroke=Xl(e)),i.style=o),i&&null==i.z2&&(a||(i=H({},i)),r=n.z2EmphasisLift,i.z2=n.z2+(null!=r?r:10)),i;if("blur"===t)return nu(this,t,s);if("select"===t)return e=this,(o=s)&&null==o.z2&&(o=H({},o),a=e.z2SelectLift,o.z2=e.z2+(null!=a?a:9)),o}return s}function ou(t){t.stateProxy=iu;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=iu),t&&(t.stateProxy=iu)}function ru(t,e){du(t,e)||t.__highByOuter||tu(t,Zl)}function au(t,e){du(t,e)||t.__highByOuter||tu(t,jl)}function su(t,e){t.__highByOuter|=1<<(e||0),tu(t,Zl)}function lu(t,e){(t.__highByOuter&=~(1<<(e||0)))||tu(t,jl)}function uu(t){tu(t,ql)}function hu(t){tu(t,Kl)}function cu(t){tu(t,$l)}function pu(t){tu(t,Jl)}function du(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function gu(o){var e=o.getModel(),r=[],a=[];e.eachComponent(function(t,e){var n=Pl(e),t="series"===t,i=t?o.getViewOfSeriesModel(e):o.getViewOfComponentModel(e);t||a.push(i),n.isBlured&&(i.group.traverse(function(t){Kl(t)}),t)&&r.push(e),n.isBlured=!1}),et(a,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(r,!1,e)})}function fu(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&&hu(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;if(n&&n.master&&(n=n.master),!("series"===a&&!e||"coordinateSystem"===a&&!(n&&u?n===u:e)||"series"===r&&e)){if(s.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&e&&"self"===r||ql(t)}),ht(r))c(t.getData(),r);else if(O(r))for(var i=G(r),o=0;o<i.length;o++)c(t.getData(i[o]),r[i[o]]);h.push(t),Pl(t).isBlured=!0}}),n.eachComponent(function(t,e){"series"!==t&&(t=s.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(h,!0,n)}))}function yu(t,e,n){null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(Pl(t).isBlured=!0,e=n.getViewOfComponentModel(t))&&e.focusBlurEnabled&&e.group.traverse(function(t){ql(t)})}function mu(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"===$(a[s]).focus){r=!0;break}return{focusSelf:r,dispatchers:a}}function vu(i){et(i.getAllData(),function(t){var e=t.data,n=t.type;e.eachItemGraphicEl(function(t,e){(i.isSelected(e,n)?cu:pu)(t)})})}function xu(t,e,n){Iu(t,!0),tu(t,ou),bu(t,e,n)}function _u(t,e,n,i){i?Iu(t,!1):xu(t,e,n)}function bu(t,e,n){t=$(t);null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}var wu=["emphasis","blur","select"],Su={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Mu(t,e,n,i){n=n||"itemStyle";for(var o=0;o<wu.length;o++){var r=wu[o],a=e.getModel([r,n]);t.ensureState(r).style=i?i(a):a[Su[n]]()}}function Iu(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 Tu(t){return!(!t||!t.__highDownDispatcher)}function Cu(t){t=t.type;return t===Fl||t===Gl||t===Wl}function Du(t){t=t.type;return t===Vl||t===Bl}var Au=Ds.CMD,ku=[[],[],[]],Lu=Math.sqrt,Pu=Math.atan2;var Ou=Math.sqrt,Ru=Math.sin,Nu=Math.cos,Eu=Math.PI;function zu(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Vu(t,e){return(t[0]*e[0]+t[1]*e[1])/(zu(t)*zu(e))}function Bu(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Vu(t,e))}function Fu(t,e,n,i,o,r,a,s,l,u,h){var l=l*(Eu/180),c=Nu(l)*(t-n)/2+Ru(l)*(e-i)/2,p=-1*Ru(l)*(t-n)/2+Nu(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+Nu(l)*o-Ru(l)*d,n=(e+i)/2+Ru(l)*o+Nu(l)*d,e=Bu([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=Bu(i,c);Vu(i,c)<=-1&&(o=Eu),(o=1<=Vu(i,c)?0:o)<0&&(p=Math.round(o/Eu*1e6)/1e6,o=2*Eu+p%2*Eu),h.addData(u,t,n,a,s,e,o,l,r)}var Gu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Wu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;u(Xu,Hu=q),Xu.prototype.applyTransform=function(t){};var Hu,Yu=Xu;function Xu(){return null!==Hu&&Hu.apply(this,arguments)||this}function Uu(t){return null!=t.setData}function Zu(t,e){var S=function(t){var e=new Ds;if(t){var n,i=0,o=0,r=i,a=o,s=Ds.CMD,l=t.match(Gu);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(Wu)||[],g=d.length,f=0;f<g;f++)d[f]=parseFloat(d[f]);for(var y=0;y<g;){var m=void 0,v=void 0,x=void 0,_=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":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],Fu(M=i,I=o,i=d[y++],o=d[y++],w,S,x,_,b,p=s.A,e);break;case"a":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],Fu(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=H({},e);return t.buildPath=function(t){var e;Uu(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=Au.M,h=Au.C,c=Au.L,p=Au.R,d=Au.A,g=Au.Q,f=0,y=0;f<l;){switch(i=s[f++],y=f,o=0,i){case u:case c:o=1;break;case h:o=3;break;case g:o=2;break;case d:var m=n[4],v=n[5],x=Lu(n[0]*n[0]+n[1]*n[1]),_=Lu(n[2]*n[2]+n[3]*n[3]),b=Pu(-n[1]/_,n[0]/x);s[f]*=x,s[f++]+=m,s[f]*=_,s[f++]+=v,s[f++]*=x,s[f++]*=_,s[f++]+=b,s[f++]+=b,y=f+=2;break;case p:a[0]=s[f++],a[1]=s[f++],oe(a,a,n),s[y++]=a[0],s[y++]=a[1],a[0]+=s[f++],a[1]+=s[f++],oe(a,a,n),s[y++]=a[0],s[y++]=a[1]}for(r=0;r<o;r++){var w=ku[r];w[0]=s[f++],w[1]=s[f++],oe(w,w,n),s[y++]=w[0],s[y++]=w[1]}}e.increaseVersion()}this.dirtyShape()},t}function ju(t,e){return new Yu(Zu(t,e))}function qu(){this.cx=0,this.cy=0,this.r=0}u(Ju,Ku=q),Ju.prototype.getDefaultShape=function(){return new qu},Ju.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)};var Ku,$u=Ju;function Ju(t){return Ku.call(this,t)||this}$u.prototype.type="circle";function Qu(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}u(nh,th=q),nh.prototype.getDefaultShape=function(){return new Qu},nh.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()};var th,eh=nh;function nh(t){return th.call(this,t)||this}eh.prototype.type="ellipse";var ih=Math.PI,oh=2*ih,rh=Math.sin,ah=Math.cos,sh=Math.acos,lh=Math.atan2,uh=Math.abs,hh=Math.sqrt,ch=Math.max,ph=Math.min,dh=1e-4;function gh(t,e,n,i,o,r,a){var s=t-n,l=e-i,a=(a?r:-r)/hh(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)*hh(ch(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 fh(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,g,f,y,m,v,x,_,b,w,S,M,I,T,C,D,A,k,L,P=ch(e.r,0),O=ch(e.r0||0,0),R=0<P;(R||0<O)&&(R||(P=O,O=0),P<O&&(R=P,P=O,O=R),R=e.startAngle,n=e.endAngle,isNaN(R)||isNaN(n)||(i=e.cx,o=e.cy,r=!!e.clockwise,b=uh(n-R),dh<(a=oh<b&&b%oh)&&(b=a),dh<P?oh-dh<b?(t.moveTo(i+P*ah(R),o+P*rh(R)),t.arc(i,o,P,R,n,!r),dh<O&&(t.moveTo(i+O*ah(n),o+O*rh(n)),t.arc(i,o,O,n,R,r))):(f=g=d=p=S=w=c=h=C=T=I=M=u=l=s=a=void 0,y=P*ah(R),m=P*rh(R),v=O*ah(n),x=O*rh(n),(_=dh<b)&&((e=e.cornerRadius)&&(a=(e=function(t){if(W(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=uh(P-O)/2,M=ph(e,l),I=ph(e,u),T=ph(e,a),C=ph(e,s),w=h=ch(M,I),S=c=ch(T,C),dh<h||dh<c)&&(p=P*ah(n),d=P*rh(n),g=O*ah(R),f=O*rh(R),b<ih)&&((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<dh))return[t+(l=(a*(e-r)-s*(t-o))/l)*n,e+l*i]}(y,m,g,f,p,d,v,x))&&(M=y-e[0],I=m-e[1],T=p-e[0],C=d-e[1],b=1/rh(sh((M*T+I*C)/(hh(M*M+I*I)*hh(T*T+C*C)))/2),M=hh(e[0]*e[0]+e[1]*e[1]),w=ph(h,(P-M)/(1+b)),S=ph(c,(O-M)/(b-1)))),_?dh<w?(D=ph(l,w),A=ph(u,w),k=gh(g,f,y,m,P,D,r),L=gh(p,d,v,x,P,A,r),t.moveTo(i+k.cx+k.x0,o+k.cy+k.y0),w<h&&D===A?t.arc(i+k.cx,o+k.cy,w,lh(k.y0,k.x0),lh(L.y0,L.x0),!r):(0<D&&t.arc(i+k.cx,o+k.cy,D,lh(k.y0,k.x0),lh(k.y1,k.x1),!r),t.arc(i,o,P,lh(k.cy+k.y1,k.cx+k.x1),lh(L.cy+L.y1,L.cx+L.x1),!r),0<A&&t.arc(i+L.cx,o+L.cy,A,lh(L.y1,L.x1),lh(L.y0,L.x0),!r))):(t.moveTo(i+y,o+m),t.arc(i,o,P,R,n,!r)):t.moveTo(i+y,o+m),dh<O&&_?dh<S?(D=ph(a,S),k=gh(v,x,p,d,O,-(A=ph(s,S)),r),L=gh(y,m,g,f,O,-D,r),t.lineTo(i+k.cx+k.x0,o+k.cy+k.y0),S<c&&D===A?t.arc(i+k.cx,o+k.cy,S,lh(k.y0,k.x0),lh(L.y0,L.x0),!r):(0<A&&t.arc(i+k.cx,o+k.cy,A,lh(k.y0,k.x0),lh(k.y1,k.x1),!r),t.arc(i,o,O,lh(k.cy+k.y1,k.cx+k.x1),lh(L.cy+L.y1,L.cx+L.x1),r),0<D&&t.arc(i+L.cx,o+L.cy,D,lh(L.y1,L.x1),lh(L.y0,L.x0),!r))):(t.lineTo(i+v,o+x),t.arc(i,o,O,n,R,r)):t.lineTo(i+v,o+x)):t.moveTo(i,o),t.closePath()))}function yh(){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}u(xh,mh=q),xh.prototype.getDefaultShape=function(){return new yh},xh.prototype.buildPath=function(t,e){fh(t,e)},xh.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0};var mh,vh=xh;function xh(t){return mh.call(this,t)||this}vh.prototype.type="sector";function _h(){this.cx=0,this.cy=0,this.r=0,this.r0=0}u(Sh,bh=q),Sh.prototype.getDefaultShape=function(){return new _h},Sh.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)};var bh,wh=Sh;function Sh(t){return bh.call(this,t)||this}function Mh(t,e,n){var i=e.smooth,o=e.points;if(o&&2<=o.length){if(i){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++)re(h,h,t[p]),ae(c,c,t[p]);re(h,h,i[0]),ae(c,c,i[1])}for(p=0,d=t.length;p<d;p++){var g=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(Yt(t[p]));continue}o=t[p-1],r=t[p+1]}jt(s,r,o),$t(s,s,e);var f=Qt(g,o),y=Qt(g,r),m=f+y,m=(0!==m&&(f/=m,y/=m),$t(l,s,-f),$t(u,s,y),Ut([],g,l)),f=Ut([],g,u);i&&(ae(m,m,h),re(m,m,c),ae(f,f,h),re(f,f,c)),a.push(m),a.push(f)}return n&&a.push(a.shift()),a}(o,i,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var a=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()}}wh.prototype.type="ring";function Ih(){this.points=null,this.smooth=0,this.smoothConstraint=null}u(Dh,Th=q),Dh.prototype.getDefaultShape=function(){return new Ih},Dh.prototype.buildPath=function(t,e){Mh(t,e,!0)};var Th,Ch=Dh;function Dh(t){return Th.call(this,t)||this}Ch.prototype.type="polygon";function Ah(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}u(Ph,kh=q),Ph.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Ph.prototype.getDefaultShape=function(){return new Ah},Ph.prototype.buildPath=function(t,e){Mh(t,e,!1)};var kh,Lh=Ph;function Ph(t){return kh.call(this,t)||this}Lh.prototype.type="polyline";function Oh(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}var Rh,Nh={},Eh=(u(zh,Rh=q),zh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},zh.prototype.getDefaultShape=function(){return new Oh},zh.prototype.buildPath=function(t,e){r=(this.subPixelOptimize?(n=(r=rl(Nh,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))},zh.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},zh);function zh(t){return Rh.call(this,t)||this}Eh.prototype.type="line";function Vh(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}var Bh=[];function Fh(t,e,n){var i=t.cpx2,o=t.cpy2;return null!=i||null!=o?[(n?Xn:Yn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Xn:Yn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?$n:Kn)(t.x1,t.cpx1,t.x2,e),(n?$n:Kn)(t.y1,t.cpy1,t.y2,e)]}u(Hh,Gh=q),Hh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Hh.prototype.getDefaultShape=function(){return new Vh},Hh.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&&(Qn(n,a,o,e,Bh),a=Bh[1],o=Bh[2],Qn(i,s,r,e,Bh),s=Bh[1],r=Bh[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(jn(n,a,l,o,e,Bh),a=Bh[1],l=Bh[2],o=Bh[3],jn(i,s,u,r,e,Bh),s=Bh[1],u=Bh[2],r=Bh[3]),t.bezierCurveTo(a,s,l,u,o,r)))},Hh.prototype.pointAt=function(t){return Fh(this.shape,t,!1)},Hh.prototype.tangentAt=function(t){t=Fh(this.shape,t,!0);return Jt(t,t)};var Gh,Wh=Hh;function Hh(t){return Gh.call(this,t)||this}Wh.prototype.type="bezier-curve";function Yh(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}u(Zh,Xh=q),Zh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Zh.prototype.getDefaultShape=function(){return new Yh},Zh.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)};var Xh,Uh=Zh;function Zh(t){return Xh.call(this,t)||this}Uh.prototype.type="arc";u(Kh,jh=q),Kh.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()},Kh.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)},Kh.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},Kh.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},Kh.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),q.prototype.getBoundingRect.call(this)};var jh,qh=Kh;function Kh(){var t=null!==jh&&jh.apply(this,arguments)||this;return t.type="compound",t}$h.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};e=$h;function $h(t){this.colorStops=t||[]}u(tc,Jh=e);var Jh,Qh=tc;function tc(t,e,n,i,o,r){o=Jh.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(ic,ec=e);var ec,nc=ic;function ic(t,e,n,i,o){i=ec.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 oc=[0,0],rc=[0,0],ac=new E,sc=new E,lc=(uc.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);for(E.sub(i[0],n[1],n[0]),E.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize(),s=0;s<2;s++)this._origin[s]=i[s].dot(n[0])},uc.prototype.intersect=function(t,e){var n=!0,i=!e;return ac.set(1/0,1/0),sc.set(0,0),!this._intersectCheckOneSide(this,t,ac,sc,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,ac,sc,i,-1)&&(n=!1,i)||i||E.copy(e,n?ac:sc),n},uc.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,oc),this._getProjMinMaxOnAxis(s,e._corners,rc),oc[1]<rc[0]||rc[1]<oc[0]){if(a=!1,o)return a;var u=Math.abs(rc[0]-oc[1]),h=Math.abs(oc[0]-rc[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(rc[0]-oc[1]),h=Math.abs(oc[0]-rc[1]),Math.min(u,h)<n.len())&&(u<h?E.scale(n,l,u*r):E.scale(n,l,-h*r))}return a},uc.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},uc);function uc(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 hc,cc=[],e=(u(pc,hc=ja),pc.prototype.traverse=function(t,e){t.call(e,this)},pc.prototype.useStyle=function(){this.style={}},pc.prototype.getCursor=function(){return this._cursor},pc.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},pc.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},pc.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},pc.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},pc.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},pc.prototype.getDisplayables=function(){return this._displayables},pc.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},pc.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])},pc.prototype.update=function(){this.updateTransform();for(var t,e=this._cursor;e<this._displayables.length;e++)(t=this._displayables[e]).parent=this,t.update(),t.parent=null;for(e=0;e<this._temporaryDisplayables.length;e++)(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null},pc.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(cc)),t.union(i)}this._rect=t}return this._rect},pc.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},pc);function pc(){var t=null!==hc&&hc.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}var dc=i();function gc(t,e,n,i,o){e&&e.ecModel&&(r=(r=e.ecModel.getUpdatePayload())&&r.animation);var r,a,s,l,t="update"===t;return e&&e.isAnimationEnabled()?(l=s=a=void 0,l=i?(a=R(i.duration,200),s=R(i.easing,"cubicOut"),0):(a=e.getShallow(t?"animationDurationUpdate":"animationDuration"),s=e.getShallow(t?"animationEasingUpdate":"animationEasing"),e.getShallow(t?"animationDelayUpdate":"animationDelay")),D(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=D(a)?a(n):a)||0,delay:l,easing:s}):null}function fc(t,e,n,i,o,r,a){var s=!1,l=(D(o)?(a=r,r=o,o=null):O(o)&&(r=o.cb,a=o.during,s=o.isFrom,u=o.removeOpt,o=o.dataIndex),"leave"===t),u=(l||e.stopAnimation("leave"),gc(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 C(t,e,n,i,o,r){fc("update",t,e,n,i,o,r)}function yc(t,e,n,i,o,r){fc("enter",t,e,n,i,o,r)}function mc(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 vc(t,e,n,i,o,r){mc(t)||fc("leave",t,e,n,i,o,r)}function xc(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),vc(t,{style:{opacity:0}},e,n,i)}function _c(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||xc(t,e,n,i)}):xc(t,e,n,i)}function bc(t){dc(t).oldStyle=t.style}var wc=Math.max,Sc=Math.min,Mc={};function Ic(t){return q.extend(t)}var Tc=function(t,e){var n,i=Zu(t,e);return u(o,n=Yu),o;function o(t){t=n.call(this,t)||this;return t.applyTransform=i.applyTransform,t.buildPath=i.buildPath,t}};function Cc(t,e){return Tc(t,e)}function Dc(t,e){Mc[t]=e}function Ac(t){if(Mc.hasOwnProperty(t))return Mc[t]}function kc(t,e,n,i){t=ju(t,e);return n&&("center"===i&&(n=Pc(n,t.getBoundingRect())),Rc(t,n)),t}function Lc(t,e,n){var i=new nl({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(Pc(e,t)))}});return i}function Pc(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 q(e)).createPathProxy(),e.buildPath=function(t){var e;Uu(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 Nc(t,e){return rl(t,t,{lineWidth:e}),t}var Ec=sl;function zc(t,e){for(var n=Ve([]);t&&t!==e;)Fe(n,t.getLocalTransform(),n),t=t.parent;return n}function Vc(t,e,n){return e&&!ht(e)&&(e=Go.getLocalTransform(e)),oe([],t,e=n?Ye([],e):e)}function Bc(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=Vc(["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"}function Fc(t){return!t.isGroup}function Gc(t,e,i){var n,o;function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=H({},t.shape)),e}t&&e&&(n={},t.traverse(function(t){Fc(t)&&t.anid&&(n[t.anid]=t)}),o=n,e.traverse(function(t){var e,n;Fc(t)&&t.anid&&(e=o[t.anid])&&(n=r(t),t.attr(r(e)),C(t,n,i,$(t).dataIndex))}))}function Wc(t,n){return B(t,function(t){var e=t[0],e=wc(e,n.x),t=(e=Sc(e,n.x+n.width),t[1]),t=wc(t,n.y);return[e,Sc(t,n.y+n.height)]})}function Hc(t,e){var n=wc(t.x,e.x),i=Sc(t.x+t.width,e.x+e.width),o=wc(t.y,e.y),t=Sc(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 Yc(t,e,n){var e=H({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),V(i,n),new nl(e)):kc(t.replace("path://",""),e,n,"center")}function Xc(t,e,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(Uc(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function Uc(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 Zc(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,e=Y(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&&et(G(a),function(t){U(r,t)||(r[t]=a[t],r.$vars.push(t))}),$(t.el));t.componentMainType=o,t.componentIndex=n,t.tooltipConfig={name:i,option:V({content:i,formatterParams:r},e)}}function jc(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function qc(t,e){if(t)if(W(t))for(var n=0;n<t.length;n++)jc(t[n],e);else jc(t,e)}Dc("circle",$u),Dc("ellipse",eh),Dc("sector",vh),Dc("ring",wh),Dc("polygon",Ch),Dc("polyline",Lh),Dc("rect",L),Dc("line",Eh),Dc("bezierCurve",Wh),Dc("arc",Uh);var Kc=Object.freeze({__proto__:null,Arc:Uh,BezierCurve:Wh,BoundingRect:z,Circle:$u,CompoundPath:qh,Ellipse:eh,Group:Z,Image:nl,IncrementalDisplayable:e,Line:Eh,LinearGradient:Qh,OrientedBoundingRect:lc,Path:q,Point:E,Polygon:Ch,Polyline:Lh,RadialGradient:nc,Rect:L,Ring:wh,Sector:vh,Text:K,applyTransform:Vc,clipPointsByRect:Wc,clipRectByRect:Hc,createIcon:Yc,extendPath:Cc,extendShape:Ic,getShapeClass:Ac,getTransform:zc,groupTransition:Gc,initProps:yc,isElementRemoved:mc,lineLineIntersect:Uc,linePolygonIntersect:Xc,makeImage:Lc,makePath:kc,mergePath:Oc,registerShape:Dc,removeElement:vc,removeElementWithFadeOut:_c,resizePath:Rc,setTooltipConfig:Zc,subPixelOptimize:Ec,subPixelOptimizeLine:Nc,subPixelOptimizeRect:function(t){return al(t.shape,t.shape,t.style),t},transformDirection:Bc,traverseElements:qc,updateProps:C}),$c={};function Jc(t,e){for(var n=0;n<El.length;n++){var i=El[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 Qc(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)?D(t.defaultText)?t.defaultText(r,t,n):t.defaultText:i},u=0;u<El.length;u++){var h=El[u],c=e[h];l[h]=R(o?o.getFormattedLabel(r,h,null,a,c&&c.get("formatter")):null,i)}return l}function tp(t,e,n,i){n=n||$c;for(var o=t instanceof K,r=!1,a=0;a<zl.length;a++)if((p=e[zl[a]])&&p.getShallow("show")){r=!0;break}var s=o?t:t.getTextContent();if(r){o||(s||(s=new K,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Qc(n,e),u=e.normal,h=!!u.getShallow("show"),c=np(u,i&&i.normal,n,!1,!o);for(c.text=l.normal,o||t.setTextConfig(ip(u,n,!1)),a=0;a<El.length;a++){var p,d,g,f=El[a];(p=e[f])&&(d=s.ensureState(f),(g=!!R(p.getShallow("show"),h))!=h&&(d.ignore=!g),d.style=np(p,i&&i[f],n,!0,!o),d.style.text=l[f],o||(t.ensureState(f).textConfig=ip(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&&(up(s).setLabelText=function(t){t=Qc(n,e,t);Jc(s,t)})}else s&&(s.ignore=!0);t.dirty()}function ep(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<El.length;i++){var o=El[i];n[o]=t.getModel([o,e])}return n}function np(t,e,n,i,o){var r,a={},s=a,l=t,u=n,h=i,c=o;u=u||$c;var p,t=l.ecModel,d=t&&t.option.textStyle,g=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||$c).rich;if(n){e=e||{};for(var i=G(n),o=0;o<i.length;o++)e[i[o]]=1}t=t.parentModel}return e}(l);if(g)for(var f in p={},g)g.hasOwnProperty(f)&&(r=l.getModel(["rich",f]),sp(p[f]={},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),sp(s,l,d,u,h,c,!0,!1),e&&H(a,e),a}function ip(t,e,n){e=e||{};var i={},o=t.getShallow("rotate"),r=R(t.getShallow("distance"),n?null:5),a=t.getShallow("offset");return null!=(n="outside"===(n=t.getShallow("position")||(n?null:"inside"))?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 op=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],rp=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],ap=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function sp(t,e,n,i,o,r,a,s){n=!o&&n||$c;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=R(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),R(e.getShallow("textBorderWidth"),n.textBorderWidth)),h=(null!=u&&(t.lineWidth=u),R(e.getShallow("textBorderType"),n.textBorderType)),u=(null!=h&&(t.lineDash=h),R(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<op.length;p++){var d=op[p];null!=(g=R(e.getShallow(d),n[d]))&&(t[d]=g)}for(p=0;p<rp.length;p++)d=rp[p],null!=(g=e.getShallow(d))&&(t[d]=g);if(null==t.verticalAlign&&null!=(h=e.getShallow("baseline"))&&(t.verticalAlign=h),!a||!i.disableBox){for(p=0;p<ap.length;p++){var g,d=ap[p];null!=(g=e.getShallow(d))&&(t[d]=g)}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 lp(t,e){e=e&&e.getModel("textStyle");return Ct([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 up=i();function hp(t,e,n,i){t&&((t=up(t)).prevValue=t.value,t.value=n,n=e.normal,t.valueAnimation=n.get("valueAnimation"),t.valueAnimation)&&(t.precision=n.get("precision"),t.defaultInterpolatedText=i,t.statesModels=e)}function cp(n,i,o,t,r){var a,s,l,u=up(n);u.valueAnimation&&u.prevValue!==u.value&&(a=u.defaultInterpolatedText,s=R(u.interpolatedValue,u.prevValue),l=u.value,n.percent=0,(null==u.prevValue?yc:C)(n,{percent:1},t,i,null,function(t){var e=pa(o,u.precision,s,l,t),t=(u.interpolatedValue=1===t?null:e,Qc({labelDataIndex:i,labelFetcher:r,defaultText:a?a(e):e+""},u.statesModels,e));Jc(n,t)}))}var pp=["textStyle","color"],dp=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],gp=new K,fp=(yp.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(pp):null)},yp.prototype.getFont=function(){return lp({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},yp.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<dp.length;n++)e[dp[n]]=this.getShallow(dp[n]);return gp.useStyle(e),gp.update(),gp.getBoundingRect()},yp);function yp(){}var mp=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],vp=Sa(mp),xp=(_p.prototype.getLineStyle=function(t){return vp(this,t)},_p);function _p(){}var bp=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],wp=Sa(bp),Sp=(Mp.prototype.getItemStyle=function(t,e){return wp(this,t,e)},Mp);function Mp(){}Cp.prototype.init=function(t,e,n){for(var i=3;i<arguments.length;i++)i-3,0},Cp.prototype.mergeOption=function(t,e){d(this.option,t,!0)},Cp.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Cp.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},Cp.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new Cp(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Cp.prototype.isEmpty=function(){return null==this.option},Cp.prototype.restoreData=function(){},Cp.prototype.clone=function(){return new this.constructor(S(this.option))},Cp.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Cp.prototype.resolveParentPath=function(t){return t},Cp.prototype.isAnimationEnabled=function(){if(!w.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Cp.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 Ip,Tp=Cp;function Cp(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}ma(Tp),Yp=Tp,Ip=["__\0is_clz",xa++].join("_"),Yp.prototype[Ip]=!0,Yp.isInstance=function(t){return!(!t||!t[Ip])},ut(Tp,xp),ut(Tp,Sp),ut(Tp,Ia),ut(Tp,fp);var Dp=Math.round(10*Math.random());function Ap(t){return[t||"",Dp++].join("_")}function kp(t,e){return d(d({},t,!0),e,!0)}var Lp="ZH",Pp="EN",Op=Pp,Rp={},Np={},Ep=w.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(Lp)?Lp:Op;function zp(t,e){t=t.toUpperCase(),Np[t]=new Tp(e),Rp[t]=e}function Vp(t){return Np[t]}zp(Pp,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),zp(Lp,{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:"旭日图"}},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 Bp=1e3,Fp=60*Bp,Gp=60*Fp,Wp=24*Gp,xa=365*Wp,Hp={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}"},Yp="{yyyy}-{MM}-{dd}",Xp={year:"{yyyy}",month:"{yyyy}-{MM}",day:Yp,hour:Yp+" "+Hp.hour,minute:Yp+" "+Hp.minute,second:Yp+" "+Hp.second,millisecond:Hp.none},Up=["year","month","day","hour","minute","second","millisecond"],Zp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function jp(t,e){return"0000".substr(0,e-(t+="").length)+t}function qp(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 Kp(t,e,n,i){var t=Pr(t),o=t[Qp(n)](),r=t[td(n)]()+1,a=Math.floor((r-1)/3)+1,s=t[ed(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[nd(n)](),h=(u-1)%12+1,c=t[id(n)](),p=t[od(n)](),t=t[rd(n)](),n=(i instanceof Tp?i:Vp(i||Ep)||Np[Op]).getModel("time"),i=n.get("month"),d=n.get("monthAbbr"),g=n.get("dayOfWeek"),n=n.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,jp(o%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,i[r-1]).replace(/{MMM}/g,d[r-1]).replace(/{MM}/g,jp(r,2)).replace(/{M}/g,r+"").replace(/{dd}/g,jp(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,g[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,jp(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,jp(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,jp(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,jp(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,jp(t,3)).replace(/{S}/g,t+"")}function $p(t,e){var t=Pr(t),n=t[td(e)]()+1,i=t[ed(e)](),o=t[nd(e)](),r=t[id(e)](),a=t[od(e)](),t=0===t[rd(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 Jp(t,e,n){var i=X(t)?Pr(t):t;switch(e=e||$p(t,n)){case"year":return i[Qp(n)]();case"half-year":return 6<=i[td(n)]()?1:0;case"quarter":return Math.floor((i[td(n)]()+1)/4);case"month":return i[td(n)]();case"day":return i[ed(n)]();case"half-day":return i[nd(n)]()/24;case"hour":return i[nd(n)]();case"minute":return i[id(n)]();case"second":return i[od(n)]();case"millisecond":return i[rd(n)]()}}function Qp(t){return t?"getUTCFullYear":"getFullYear"}function td(t){return t?"getUTCMonth":"getMonth"}function ed(t){return t?"getUTCDate":"getDate"}function nd(t){return t?"getUTCHours":"getHours"}function id(t){return t?"getUTCMinutes":"getMinutes"}function od(t){return t?"getUTCSeconds":"getSeconds"}function rd(t){return t?"getUTCMilliseconds":"getMilliseconds"}function ad(t){return t?"setUTCMonth":"setMonth"}function sd(t){return t?"setUTCDate":"setDate"}function ld(t){return t?"setUTCHours":"setHours"}function ud(t){return t?"setUTCMinutes":"setMinutes"}function hd(t){return t?"setUTCSeconds":"setSeconds"}function cd(t){return t?"setUTCMilliseconds":"setMilliseconds"}function pd(t){var e;return Br(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):Y(t)?t:"-"}function dd(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 gd=It;function fd(t,e,n){function i(t){return t&&Ct(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?Pr(t):t;if(!isNaN(+r))return Kp(r,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?gt(t)?i(t):X(t)&&o(t)?t+"":"-":o(r=Vr(t))?pd(r):gt(t)?i(t):"boolean"==typeof t?t+"":"-"}function yd(t,e){return"{"+t+(null==e?"":e)+"}"}var md=["a","b","c","d","e","f","g"];function vd(t,e,n){var i=(e=W(e)?e:[e]).length;if(!i)return"";for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=md[r];t=t.replace(yd(a),yd(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(yd(md[l],s),n?we(u):u)}return t}function xd(t,e){var t=Y(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:'+we(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+we(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 _d(t,e){return e=e||"transparent",Y(t)?t:O(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function bd(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var wd=et,Sd=["left","right","top","bottom","width","height"],Md=[["width","left","right"],["height","top","bottom"]];function Id(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?(o=r.width+(e?-e.x+r.x:0),(n=c+o)>u||t.newline?(c=0,n=o,p+=d+l,r.height):Math.max(d,r.height)):(o=r.height+(e?-e.y+r.y:0),(i=p+o)>h||t.newline?(c+=d+l,p=0,i=o,r.width):Math.max(d,r.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=i+l)})}var Td=Id;function Cd(t,e,n){n=gd(n||0);var i=e.width,o=e.height,r=j(t.left,i),a=j(t.top,o),e=j(t.right,i),s=j(t.bottom,o),l=j(t.width,i),u=j(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 Dd(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=Cd(V({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}function Ad(t){t=t.layoutMode||t.constructor.layoutMode;return O(t)?t:t?{type:t}:null}function kd(l,u,t){var h=t&&t.ignoreSize,t=(W(h)||(h=[h,h]),n(Md[0],0)),e=n(Md[1],1);function n(t,e){var n={},i=0,o={},r=0;if(wd(t,function(t){o[t]=l[t]}),wd(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){wd(t,function(t){e[t]=n[t]})}i(Md[0],l,t),i(Md[1],l,e)}function Ld(t){return Pd({},t)}function Pd(e,n){return n&&e&&wd(Sd,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e}P(Id,"vertical"),P(Id,"horizontal");var Od,Rd,Nd,Ed,zd=i(),g=(u(Vd,Od=Tp),Vd.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},Vd.prototype.mergeDefaultAndTheme=function(t,e){var n=Ad(this),i=n?Ld(t):{};d(t,e.getTheme().get(this.mainType)),d(t,this.getDefaultOption()),n&&kd(t,i,n)},Vd.prototype.mergeOption=function(t,e){d(this.option,t,!0);var n=Ad(this);n&&kd(this.option,t,n)},Vd.prototype.optionUpdated=function(t,e){},Vd.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[fa])return t.defaultOption;var e=zd(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},Vd.prototype.getReferringComponents=function(t,e){var n=t+"Id";return ua(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},Vd.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")}},Vd.prototype.getZLevelKey=function(){return""},Vd.prototype.setZLevel=function(t){this.option.zlevel=t},Vd.protoInitialize=((xp=Vd.prototype).type="component",xp.id="",xp.name="",xp.mainType="",xp.subType="",void(xp.componentIndex=0)),Vd);function Vd(t,e,n){t=Od.call(this,t,e,n)||this;return t.uid=Ap("ec_cpt_model"),t}function Bd(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}va(g,Tp),wa(g),Ed={},(Nd=g).registerSubTypeDefaulter=function(t,e){t=ya(t);Ed[t.main]=e},Nd.determineSubType=function(t,e){var n,i=e.type;return i||(n=ya(t).main,Nd.hasSubTypes(t)&&Ed[n]&&(i=Ed[n](e))),i},Rd=function(t){var e=[];return et(g.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=B(e,function(t){return ya(t).main}),"dataset"!==t&&F(e,"dataset")<=0&&e.unshift("dataset"),e},g.topologicalTravel=function(t,e,n,i){if(t.length){c={},p=[],et(h=e,function(n){var e,i,o=Bd(c,n),t=(t=o.originalDeps=Rd(n),e=h,i=[],et(t,function(t){0<=F(e,t)&&i.push(t)}),i);o.entryCount=t.length,0===o.entryCount&&p.push(n),et(t,function(t){F(o.predecessor,t)<0&&o.predecessor.push(t);var e=Bd(c,t);F(e.successor,t)<0&&e.successor.push(n)})});var e={graph:c,noEntryList:p},o=e.graph,r=e.noEntryList,a={};for(et(t,function(t){a[t]=!0});r.length;){var s=r.pop(),l=o[s],u=!!a[s];u&&(n.call(i,s,l.originalDeps.slice()),delete a[s]),et(l.successor,u?g:d)}et(a,function(){throw new Error("")})}var h,c,p;function d(t){o[t].entryCount--,0===o[t].entryCount&&r.push(t)}function g(t){a[t]=!0,d(t)}};var Sp="",Ia=("undefined"!=typeof navigator&&(Sp=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),Fd={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:Sp.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},Gd=N(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Wd="original",Hd="arrayRows",Yd="objectRows",Xd="keyedColumns",Ud="typedArray",Zd="unknown",jd="column",qd="row",Kd={Must:1,Might:2,Not:3},$d=i();function Jd(n,t,e){var o,i,r,a,s,l={},u=tg(t);return u&&n&&(r=[],a=[],t=t.ecModel,t=$d(t).datasetMap,u=u.uid+"_"+e.seriesLayoutBy,et(n=n.slice(),function(t,e){t=O(t)?t:n[e]={name:t};"ordinal"===t.type&&null==o&&(o=e,i=c(t)),l[t.name]=[]}),s=t.get(u)||t.set(u,{categoryWayDim:i,valueWayDim:0}),et(n,function(t,e){var n,i=t.name,t=c(t);null==o?(n=s.valueWayDim,h(l[i],n,t),h(a,n,t),s.valueWayDim+=t):o===e?(h(l[i],0,t),h(r,0,t)):(n=s.categoryWayDim,h(l[i],n,t),h(a,n,t),s.categoryWayDim+=t)}),r.length&&(l.itemName=r),a.length)&&(l.seriesName=a),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 Qd(t,l,u){var h,c,p,e={};return tg(t)&&(c=l.sourceFormat,p=l.dimensionsDefine,c!==Yd&&c!==Xd||et(p,function(t,e){"name"===(O(t)?t.name:t)&&(h=e)}),t=function(){for(var t={},e={},n=[],i=0,o=Math.min(5,u);i<o;i++){var r=ng(l.data,c,l.seriesLayoutBy,p,l.startIndex,i),a=(n.push(r),r===Kd.Not);if(a&&null==t.v&&i!==h&&(t.v=i),null!=t.n&&t.n!==t.v&&(a||n[t.n]!==Kd.Not)||(t.n=i),s(t)&&n[t.n]!==Kd.Not)return t;a||(r===Kd.Might&&null==e.v&&i!==h&&(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!=h?h:t.n,e.itemName=[t],e.seriesName=[t]),e}function tg(t){if(!t.get("data",!0))return ua(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},sa).models[0]}function eg(t,e){return ng(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function ng(t,e,n,i,o,r){var a,s,l;if(!yt(t)){if(i&&(O(i=i[r])?(s=i.name,l=i.type):Y(i)&&(s=i)),null!=l)return"ordinal"===l?Kd.Must:Kd.Not;if(e===Hd){var u=t;if(n===qd){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===Yd){var d=t;if(!s)return Kd.Not;for(c=0;c<d.length&&c<5;c++)if((f=d[c])&&null!=(a=m(f[s])))return a}else if(e===Xd){if(!s)return Kd.Not;if(!(h=t[s])||yt(h))return Kd.Not;for(c=0;c<h.length&&c<5;c++)if(null!=(a=m(h[c])))return a}else if(e===Wd)for(var g=t,c=0;c<g.length&&c<5;c++){var f=g[c],y=qr(f);if(!W(y))return Kd.Not;if(null!=(a=m(y[r])))return a}}return Kd.Not;function m(t){var e=Y(t);return null!=t&&isFinite(t)&&""!==t?e?Kd.Might:Kd.Not:e&&"-"!==t?Kd.Must:void 0}}var ig=N();var og=i(),rg=i(),ag=(sg.prototype.getColorFromPalette=function(t,e,n){var i=Ur(this.get("color",!0)),o=this.get("colorLayer",!0);return lg(this,og,i,o,t,e,n)},sg.prototype.clearColorPalette=function(){var t,e;(e=og)(t=this).paletteIdx=0,e(t).paletteNameMap={}},sg);function sg(){}function lg(t,e,n,i,o,r,a){e=e(r=r||t),t=e.paletteIdx||0,r=e.paletteNameMap=e.paletteNameMap||{};return r.hasOwnProperty(o)?r[o]:(i=(null!=a&&i?function(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}(i,a):n)||n)&&i.length?(a=i[t],o&&(r[o]=a),e.paletteIdx=(t+1)%i.length,a):void 0}var ug,hg,cg,pg,dg="\0_ec_inner",gg=(u(fg,pg=Tp),fg.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new Tp(i),this._locale=new Tp(o),this._optionManager=r},fg.prototype.setOption=function(t,e,n){e=vg(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},fg.prototype.resetOption=function(t,e){return this._resetOption(t,vg(e))},fg.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)):cg(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&&et(n,function(t){i=!0,this._mergeOption(t,e)},this),i},fg.prototype.mergeOption=function(t){this._mergeOption(t,null)},fg.prototype._mergeOption=function(i,t){var o=this.option,h=this._componentsMap,c=this._componentsCount,n=[],r=N(),p=t&&t.replaceMergeMainTypeMap;$d(this).datasetMap=N(),et(i,function(t,e){null!=t&&(g.hasClass(e)?e&&(n.push(e),r.set(e,!0)):o[e]=null==o[e]?S(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){t=this,n=Ur(i[e=r]);var t=(e=(e=ig.get(e))&&e(t))?n.concat(e):n,e=h.get(r),n=Kr(e,t,e?p&&p.get(r)?"replaceMerge":"normalMerge":"replaceAll");na(n,r,g),o[r]=null,h.set(r,null),c.set(r,0);var a,s=[],l=[],u=0;et(n,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=H({componentIndex:e},t.keyInfo),H(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&&ug(this)},this),this._seriesIndices||ug(this)},fg.prototype.getOption=function(){var a=S(this.option);return et(a,function(t,e){if(g.hasClass(e)){for(var n=Ur(t),i=n.length,o=!1,r=i-1;0<=r;r--)n[r]&&!ea(n[r])?o=!0:(n[r]=null,o||i--);n.length=i,a[e]=n}}),delete a[dg],a},fg.prototype.getTheme=function(){return this._theme},fg.prototype.getLocaleModel=function(){return this._locale},fg.prototype.setUpdatePayload=function(t){this._payload=t},fg.prototype.getUpdatePayload=function(){return this._payload},fg.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]}},fg.prototype.queryComponents=function(t){var e,n,i,o,r,a=t.mainType;return a&&(n=t.index,i=t.id,o=t.name,r=this._componentsMap.get(a))&&r.length?(null!=n?(e=[],et(Ur(n),function(t){r[t]&&e.push(r[t])})):e=null!=i?yg("id",i,r):null!=o?yg("name",o,r):pt(r,function(t){return!!t}),mg(e,t)):[]},fg.prototype.findComponents=function(t){var e,n=t.query,i=t.mainType,o=(o=i+"Index",r=i+"Id",e=i+"Name",!n||null==n[o]&&null==n[r]&&null==n[e]?null:{mainType:i,index:n[o],id:n[r],name:n[e]}),r=mg(o?this.queryComponents(o):pt(this._componentsMap.get(i),function(t){return!!t}),t);return t.filter?pt(r,t.filter):r},fg.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(D(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=Y(t)?i.get(t):O(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},fg.prototype.getSeriesByName=function(t){var e=Qr(t,null);return pt(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},fg.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},fg.prototype.getSeriesByType=function(e){return pt(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},fg.prototype.getSeries=function(){return pt(this._componentsMap.get("series"),function(t){return!!t})},fg.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},fg.prototype.eachSeries=function(n,i){hg(this),et(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)},this)},fg.prototype.eachRawSeries=function(e,n){et(this._componentsMap.get("series"),function(t){t&&e.call(n,t,t.componentIndex)})},fg.prototype.eachSeriesByType=function(n,i,o){hg(this),et(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];e.subType===n&&i.call(o,e,t)},this)},fg.prototype.eachRawSeriesByType=function(t,e,n){return et(this.getSeriesByType(t),e,n)},fg.prototype.isSeriesFiltered=function(t){return hg(this),null==this._seriesIndicesMap.get(t.componentIndex)},fg.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},fg.prototype.filterSeries=function(n,i){hg(this);var o=[];et(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)},fg.prototype.restoreData=function(n){ug(this);var t=this._componentsMap,i=[];t.each(function(t,e){g.hasClass(e)&&i.push(e)}),g.topologicalTravel(i,g.getAllClassMainTypes(),function(e){et(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()})})},fg.internalField=(ug=function(t){var e=t._seriesIndices=[];et(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=N(e)},hg=function(t){},void(cg=function(t,e){t.option={},t.option[dg]=1,t._componentsMap=N({series:[]}),t._componentsCount=N();var n,i,o=e.aria;O(o)&&null==o.enabled&&(o.enabled=!0),n=e,o=t._theme.option,i=n.color&&!n.colorLayer,et(o,function(t,e){"colorLayer"===e&&i||g.hasClass(e)||("object"==typeof t?n[e]=n[e]?d(n[e],t,!1):S(t):null==n[e]&&(n[e]=t))}),d(e,Fd,!1),t._mergeOption(e,null)})),fg);function fg(){return null!==pg&&pg.apply(this,arguments)||this}function yg(e,t,n){var i,o;return W(t)?(i=N(),et(t,function(t){null!=t&&null!=Qr(t,null)&&i.set(t,!0)}),pt(n,function(t){return t&&i.get(t[e])})):(o=Qr(t,null),pt(n,function(t){return t&&null!=o&&t[e]===o}))}function mg(t,e){return e.hasOwnProperty("subType")?pt(t,function(t){return t&&t.subType===e.subType}):t}function vg(t){var e=N();return t&&et(Ur(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}ut(gg,ag);function xg(e){et(_g,function(t){this[t]=T(e[t],e)},this)}var _g=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],bg={},wg=(Sg.prototype.create=function(n,i){var o=[];et(bg,function(t,e){t=t.create(n,i);o=o.concat(t||[])}),this._coordinateSystems=o},Sg.prototype.update=function(e,n){et(this._coordinateSystems,function(t){t.update&&t.update(e,n)})},Sg.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},Sg.register=function(t,e){bg[t]=e},Sg.get=function(t){return bg[t]},Sg);function Sg(){this._coordinateSystems=[]}var Mg=/^(min|max)?(.+)$/,Ig=(Tg.prototype.setOption=function(t,e,n){t&&(et(Ur(t.series),function(t){t&&t.data&&yt(t.data)&&At(t.data)}),et(Ur(t.dataset),function(t){t&&t.source&&yt(t.source)&&At(t.source)})),t=S(t);var i,o,r,a,s,l,u,h,c,p,d=this._optionBackup,t=(i=e,o=!d,s=[],t=(e=t).baseOption,l=e.timeline,u=e.options,h=e.media,c=!!e.media,p=!!(u||l||t&&t.timeline),t?(a=t).timeline||(a.timeline=l):((p||c)&&(e.options=e.media=null),a=e),c&&W(h)&&et(h,function(t){t&&t.option&&(t.query?s.push(t):r=r||t)}),g(a),et(u,g),et(s,function(t){return g(t.option)}),{baseOption:a,timelineOptions:u||[],mediaDefault:r,mediaList:s});function g(e){et(i,function(t){t(e,o)})}this._newBaseOption=t.baseOption,d?(t.timelineOptions.length&&(d.timelineOptions=t.timelineOptions),t.mediaList.length&&(d.mediaList=t.mediaList),t.mediaDefault&&(d.mediaDefault=t.mediaDefault)):this._optionBackup=t},Tg.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],S(t?e.baseOption:this._newBaseOption)},Tg.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?S(n[t.getCurrentIndex()]):e},Tg.prototype.getMediaOption=function(t){var e,n,i=this._api.getWidth(),o=this._api.getHeight(),r=this._mediaList,a=this._mediaDefault,s=[],l=[];if(r.length||a){for(var u=0,h=r.length;u<h;u++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},o=!0;return et(t,function(t,e){var n,e=e.match(Mg);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}(r[u].query,i,o)||s.push(u);(s=!s.length&&a?[-1]:s).length&&(e=s,n=this._currentMediaIndices,e.join(",")!==n.join(","))&&(l=B(s,function(t){return S((-1===t?a:r[t]).option)})),this._currentMediaIndices=s}return l},Tg);function Tg(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}var Cg=et,Dg=O,Ag=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function kg(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Ag.length;n<i;n++){var o=Ag[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 Lg(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,V(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 Pg(t){Lg(t,"itemStyle"),Lg(t,"lineStyle"),Lg(t,"areaStyle"),Lg(t,"label"),Lg(t,"labelLine"),Lg(t,"upperLabel"),Lg(t,"edgeLabel")}function Og(t,e){var n=Dg(t)&&t[e],i=Dg(n)&&n.textStyle;if(i)for(var o=0,r=jr.length;o<r;o++){var a=jr[o];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Rg(t){t&&(Pg(t),Og(t,"label"),t.emphasis)&&Og(t.emphasis,"label")}function Ng(t){return W(t)?t:t?[t]:[]}function Eg(t){return(W(t)?t[0]:t)||{}}function zg(e,t){Cg(Ng(e.series),function(t){if(Dg(t))if(Dg(t)){kg(t),Pg(t),Og(t,"label"),Og(t,"upperLabel"),Og(t,"edgeLabel"),t.emphasis&&(Og(t.emphasis,"label"),Og(t.emphasis,"upperLabel"),Og(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(kg(e),Rg(e)),t.markLine),i=(n&&(kg(n),Rg(n)),t.markArea),o=(i&&Rg(i),t.data);if("graph"===t.type){var o=o||t.nodes,r=t.links||t.edges;if(r&&!yt(r))for(var a=0;a<r.length;a++)Rg(r[a]);et(t.categories,function(t){Pg(t)})}if(o&&!yt(o))for(a=0;a<o.length;a++)Rg(o[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Rg(s[a]);if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)W(l[a])?(Rg(l[a][0]),Rg(l[a][1])):Rg(l[a])}"gauge"===t.type?(Og(t,"axisLabel"),Og(t,"title"),Og(t,"detail")):"treemap"===t.type?(Lg(t.breadcrumb,"itemStyle"),et(t.levels,function(t){Pg(t)})):"tree"===t.type&&Pg(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Cg(n,function(t){Cg(Ng(e[t]),function(t){t&&(Og(t,"axisLabel"),Og(t.axisPointer,"label"))})}),Cg(Ng(e.parallel),function(t){t=t&&t.parallelAxisDefault;Og(t,"axisLabel"),Og(t&&t.axisPointer,"label")}),Cg(Ng(e.calendar),function(t){Lg(t,"itemStyle"),Og(t,"dayLabel"),Og(t,"monthLabel"),Og(t,"yearLabel")}),Cg(Ng(e.radar),function(t){Og(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)}),Cg(Ng(e.geo),function(t){Dg(t)&&(Rg(t),Cg(Ng(t.regions),function(t){Rg(t)}))}),Cg(Ng(e.timeline),function(t){Rg(t),Lg(t,"label"),Lg(t,"itemStyle"),Lg(t,"controlStyle",!0);t=t.data;W(t)&&et(t,function(t){O(t)&&(Lg(t,"label"),Lg(t,"itemStyle"))})}),Cg(Ng(e.toolbox),function(t){Lg(t,"iconStyle"),Cg(t.feature,function(t){Lg(t,"iconStyle")})}),Og(Eg(e.axisPointer),"label"),Og(Eg(e.tooltip).axisPointer,"label")}function Vg(e){e&&et(Bg,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Bg=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Fg=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Gg=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Wg(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Gg.length;n++){var i=Gg[n][1],o=Gg[n][0];null!=e[i]&&(e[o]=e[i])}}function Hg(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Yg(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Xg(e,t){zg(e,t),e.series=Ur(e.series),et(e.series,function(t){if(O(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),Hg(t.label),(e=t.data)&&!yt(e))for(var i=0;i<e.length;i++)Hg(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(Wg(t),Wg(t.backgroundStyle),Wg(t.emphasis),(e=t.data)&&!yt(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(Wg(e[i]),Wg(e[i]&&e[i].emphasis))}else"sunburst"===n?((a=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),Yg(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,Yg)):"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)&&V(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),Vg(t)}}),e.dataRange&&(e.visualMap=e.dataRange),et(Fg,function(t){t=e[t];t&&et(t=W(t)?t:[t],function(t){Vg(t)})})}function Ug(x){et(x,function(p,d){var g=[],f=[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 f;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=x[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(Mr(a),Mr(s)),a+=s,r=_r<l?a:wr(a,l),u=c;break}}}return g[0]=r,g[1]=u,g})})}var Zg,jg,qg=function(t){this.data=t.data||(t.sourceFormat===Xd?{}:[]),this.sourceFormat=t.sourceFormat||Zd,this.seriesLayoutBy=t.seriesLayoutBy||jd,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&&eg(this,n)===Kd.Must&&(i.type="ordinal")}};function Kg(t){return t instanceof qg}function $g(t,e,n){n=n||Qg(t);var i=e.seriesLayoutBy,o=function(t,e,n,i,o){var r,a;if(!t)return{dimensionsDefine:tf(o),startIndex:a,dimensionsDetectedCount:r};{var s;e===Hd?(s=t,"auto"===i||null==i?ef(function(t){null!=t&&"-"!==t&&(Y(t)?null==a&&(a=1):a=0)},n,s,10):a=X(i)?i:i?1:0,o||1!==a||(o=[],ef(function(t,e){o[e]=null!=t?t+"":""},n,s,1/0)),r=o?o.length:n===qd?s.length:s[0]?s[0].length:null):e===Yd?o=o||function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return G(e)}(t):e===Xd?o||(o=[],et(t,function(t,e){o.push(e)})):e===Wd&&(i=qr(t[0]),r=W(i)&&i.length||1)}return{startIndex:a,dimensionsDefine:tf(o),dimensionsDetectedCount:r}}(t,n,i,e.sourceHeader,e.dimensions);return new qg({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:S(e)})}function Jg(t){return new qg({data:t,sourceFormat:yt(t)?Ud:Wd})}function Qg(t){var e=Zd;if(yt(t))e=Ud;else if(W(t)){0===t.length&&(e=Hd);for(var n=0,i=t.length;n<i;n++){var o=t[n];if(null!=o){if(W(o)){e=Hd;break}if(O(o)){e=Yd;break}}}}else if(O(t))for(var r in t)if(U(t,r)&&ht(t[r])){e=Xd;break}return e}function tf(t){var i;if(t)return i=N(),B(t,function(t,e){var n,t={name:(t=O(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 ef(t,e,n,i){if(e===qd)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 nf(t){t=t.sourceFormat;return t===Yd||t===Xd}lf.prototype.getSource=function(){return this._source},lf.prototype.count=function(){return 0},lf.prototype.getItem=function(t,e){},lf.prototype.appendData=function(t){},lf.prototype.clean=function(){},lf.protoInitialize=((fp=lf.prototype).pure=!1,void(fp.persistent=!0)),lf.internalField=(jg=function(t,e,n){var i,o=n.sourceFormat,r=n.seriesLayoutBy,a=n.startIndex,n=n.dimensionsDefine;H(t,Zg[xf(o,r)]),o===Ud?(t.getItem=of,t.count=af,t.fillStorage=rf):(i=pf(o,r),t.getItem=T(i,null,e,a,n),i=ff(o,r),t.count=T(i,null,e,a,n))},of=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},rf=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}},af=function(){return this._data?this._data.length/this._dimSize:0},(fp={})[Hd+"_"+jd]={pure:!0,appendData:uf},fp[Hd+"_"+qd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},fp[Yd]={pure:!0,appendData:uf},fp[Xd]={pure:!0,appendData:function(t){var o=this._data;et(t,function(t,e){for(var n=o[e]||(o[e]=[]),i=0;i<(t||[]).length;i++)n.push(t[i])})}},fp[Wd]={appendData:uf},fp[Ud]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(Zg=fp));var of,rf,af,sf=lf;function lf(t,e){var t=Kg(t)?t:Jg(t),n=(this._source=t,this._data=t.data);t.sourceFormat===Ud&&(this._offset=0,this._dimSize=e,this._data=n),jg(this,n,t)}function uf(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function hf(t,e,n,i){return t[i]}(Yp={})[Hd+"_"+jd]=function(t,e,n,i){return t[i+e]},Yp[Hd+"_"+qd]=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},Yp[Yd]=hf,Yp[Xd]=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},Yp[Wd]=hf;var cf=Yp;function pf(t,e){return cf[xf(t,e)]}function df(t,e,n){return t.length}(xp={})[Hd+"_"+jd]=function(t,e,n){return Math.max(0,t.length-e)},xp[Hd+"_"+qd]=function(t,e,n){t=t[0];return t?Math.max(0,t.length-e):0},xp[Yd]=df,xp[Xd]=function(t,e,n){t=t[n[0].name];return t?t.length:0},xp[Wd]=df;var gf=xp;function ff(t,e){return gf[xf(t,e)]}function yf(t,e,n){return t[e]}(Ia={})[Hd]=yf,Ia[Yd]=function(t,e,n){return t[n]},Ia[Xd]=yf,Ia[Wd]=function(t,e,n){t=qr(t);return t instanceof Array?t[e]:t},Ia[Ud]=yf;var mf=Ia;function vf(t){return mf[t]}function xf(t,e){return t===Hd?t+"_"+e:t}function _f(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),vf(i)(e,t,n)):(o=e,i===Wd?qr(e):o)}}var bf=/\{@(.+?)\}/g,Sp=(wf.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"]}},wf.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&&W(e.value)&&(e.value=e.value[n]),D(o=o||a.getItemModel(i).get("normal"===t?["label","formatter"]:[t,"label","formatter"]))?(e.status=t,e.dimensionIndex=n,o(e)):Y(o)?vd(o,e).replace(bf,function(t,e){var n=e.length,n=("["===e.charAt(0)&&"]"===e.charAt(n-1)&&(e=+e.slice(1,n-1)),_f(a,i,e));return null!=(n=r&&W(r.interpolatedValue)&&0<=(e=a.getDimensionIndex(e))?r.interpolatedValue[e]:n)?n+"":""}):void 0},wf.prototype.getRawValue=function(t,e){return _f(this.getData(e),t)},wf.prototype.formatTooltip=function(t,e,n){},wf);function wf(){}function Sf(t){var e,n;return O(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Mf(t){return new If(t)}Tf.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;this._dirty&&n&&((r=this.context).data=r.outputData=n.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,r=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,o=this._doReset(i)),this._modBy=s,this._modDataCount=l;r=t&&t.step;if(this._dueEnd=n?n._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(!i&&(o||h<c)){var p=this._progress;if(W(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()},Tf.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},Tf.prototype._doProgress=function(t,e,n,i,o){Of.reset(e,n,i,o),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Of.next},this.context)},Tf.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),W(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,n,t=this._downstream;return t&&t.dirty(),n},Tf.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},Tf.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},Tf.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},Tf.prototype.getUpstream=function(){return this._upstream},Tf.prototype.getDownstream=function(){return this._downstream},Tf.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var If=Tf;function Tf(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}var Cf,Df,Af,kf,Lf,Pf,Of=Pf={reset:function(t,e,n,i){Df=t,Cf=e,Af=n,kf=i,Lf=Math.ceil(kf/Af),Pf.next=1<Af&&0<kf?Nf:Rf}};function Rf(){return Df<Cf?Df++:null}function Nf(){var t=Df%Lf*Af+Math.ceil(Df/Lf),t=Cf<=Df?null:t<kf?t:Df;return Df++,t}function Ef(t,e){e=e&&e.type;return"ordinal"===e?t:null==(t="time"!==e||X(t)||null==t||"-"===t?t:+Pr(t))||""===t?NaN:+t}var zf=N({number:function(t){return parseFloat(t)},time:function(t){return+Pr(t)},trim:function(t){return Y(t)?Ct(t):t}});function Vf(t){return zf.get(t)}var Bf={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}},Ff=(Hf.prototype.evaluate=function(t){return X(t)?this._opFn(t,this._rvalFloat):this._opFn(Vr(t),this._rvalFloat)},Hf),Gf=(Wf.prototype.evaluate=function(t,e){var n=X(t)?t:Vr(t),i=X(e)?e:Vr(e),o=isNaN(n),r=isNaN(i);return o&&(n=this._incomparable),r&&(i=this._incomparable),o&&r&&(o=Y(t),r=Y(e),o&&(n=r?t:0),r)&&(i=o?e:0),n<i?this._resultLT:i<n?-this._resultLT:0},Wf);function Wf(t,e){t="desc"===t;this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}function Hf(t,e){X(e)||Wr(""),this._opFn=Bf[t],this._rvalFloat=Vr(e)}Xf.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=Vr(t)===this._rvalFloat),this._isEQ?n:!n};var Yf=Xf;function Xf(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Vr(e)}Zf.prototype.getRawData=function(){throw new Error("not supported")},Zf.prototype.getRawDataItem=function(t){throw new Error("not supported")},Zf.prototype.cloneRawData=function(){},Zf.prototype.getDimensionInfo=function(t){},Zf.prototype.cloneAllDimensionInfo=function(){},Zf.prototype.count=function(){},Zf.prototype.retrieveValue=function(t,e){},Zf.prototype.retrieveValueFromItem=function(t,e){},Zf.prototype.convertValue=Ef;var Uf=Zf;function Zf(){}function jf(t){return ty(t.sourceFormat)||Wr(""),t.data}function qf(t){var e=t.sourceFormat,n=t.data;if(ty(e)||Wr(""),e===Hd){for(var i=[],o=0,r=n.length;o<r;o++)i.push(n[o].slice());return i}if(e===Yd){for(i=[],o=0,r=n.length;o<r;o++)i.push(H({},n[o]));return i}}function Kf(t,e,n){if(null!=n)return X(n)||!isNaN(n)&&!U(e,n)?t[n]:U(e,n)?e[n]:void 0}function $f(t){return S(t)}var Jf=N();function Qf(t,e){var n=Ur(t),t=n.length;t||Wr("");for(var i=0,o=t;i<o;i++)e=function(t,i){i.length||Wr(""),O(t)||Wr("");var e=t.type,d=Jf.get(e),e=(d||Wr(""),B(i,function(t){var e=t,t=d,n=new Uf,i=e.data,o=n.sourceFormat=e.sourceFormat,r=e.startIndex,a=(e.seriesLayoutBy!==jd&&Wr(""),[]),s={};if(h=e.dimensionsDefine)et(h,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};a.push(e),null!=n&&(U(s,n)&&Wr(""),s[n]=e)});else for(var l=0;l<e.dimensionsDetectedCount;l++)a.push({index:l});var u=pf(o,jd),h=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return u(i,r,a,t)},n.getRawData=T(jf,null,e)),n.cloneRawData=T(qf,null,e),ff(o,jd)),c=(n.count=T(h,null,i,r,a),vf(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=T(Kf,null,a,s),n.cloneAllDimensionInfo=T($f,null,a),n}));return B(Ur(d.transform({upstream:e[0],upstreamList:e,config:S(t.config)})),function(t,e){O(t)||Wr(""),t.data||Wr(""),ty(Qg(t.data))||Wr("");var n=i[0],e=n&&0===e&&!t.dimensions?((e=n.startIndex)&&(t.data=n.data.slice(0,e).concat(t.data)),{seriesLayoutBy:jd,sourceHeader:e,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:jd,sourceHeader:0,dimensions:t.dimensions};return $g(t.data,e,null)})}(n[i],e),i!==o-1&&(e.length=Math.max(e.length,1));return e}function ty(t){return t===Hd||t===Yd}var ey,fp="undefined",ny=typeof Uint32Array==fp?Array:Uint32Array,iy=typeof Uint16Array==fp?Array:Uint16Array,oy=typeof Int32Array==fp?Array:Int32Array,Yp=typeof Float64Array==fp?Array:Float64Array,ry={float:Yp,int:oy,ordinal:Array,number:Array,time:Yp};function ay(t){return 65535<t?ny:iy}function sy(){return[1/0,-1/0]}function ly(t,e,n,i,o){n=ry[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)}hy.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=ey[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[],nf(i),this._dimensions=B(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},hy.prototype.getProvider=function(){return this._provider},hy.prototype.getSource=function(){return this._provider.getSource()},hy.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 ry[e||"float"](this._rawCount),this._rawExtent[o]=sy(),o},hy.prototype.collectOrdinalMeta=function(t,e){var n=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,r=i.ordinalOffset||0,a=n.length;0===r&&(o[t]=sy());for(var s=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"},hy.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},hy.prototype.getDimensionProperty=function(t){t=this._dimensions[t];return t&&t.property},hy.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]},hy.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++)ly(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],g=ey.arrayRows.call(this,t[c]||u,d.property,c,p),f=(n[p][h]=g,r[p]);g<f[0]&&(f[0]=g),g>f[1]&&(f[1]=g)}return{start:a,end:this._rawCount=this._count=s}},hy.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]=sy()),ly(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 g=o[d],f=this._dimValueGetter(c,l[d],p,d),g=(g[p]=f,s[d]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},hy.prototype.count=function(){return this._count},hy.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},hy.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},hy.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},hy.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},hy.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},hy.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},hy.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},hy.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 for(i=new(e=ay(this._rawCount))(this.count()),o=0;o<i.length;o++)i[o]=o;return i},hy.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=new(ay(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},hy.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=G(t),o=i.length;if(!o)return this;var r=e.count(),a=new(ay(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]],g=0;g<n;g++)((v=d[g])>=u&&v<=h||isNaN(v))&&(a[s++]=p),p++;l=!0}else if(2===o){for(var d=c[i[0]],f=c[i[1]],y=t[i[1]][0],m=t[i[1]][1],g=0;g<n;g++){var v=d[g],x=f[g];(u<=v&&v<=h||isNaN(v))&&(y<=x&&x<=m||isNaN(x))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===o)for(g=0;g<r;g++){var _=e.getRawIndex(g);((v=c[i[0]][_])>=u&&v<=h||isNaN(v))&&(a[s++]=_)}else for(g=0;g<r;g++){for(var b=!0,w=(_=e.getRawIndex(g),0);w<o;w++){var S=i[w];((v=c[S][_])<t[S][0]||v>t[S][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(g))}return s<r&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},hy.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},hy.prototype.modify=function(t,e){this._updateDims(this,t,e)},hy.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]]=sy();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)for("object"!=typeof d&&(o[0]=d,d=o),u=0;u<d.length;u++){var g=e[u],f=d[u],y=l[g],g=i[g];g&&(g[c]=f),f<y[0]&&(y[0]=f),f>y[1]&&(y[1]=f)}}},hy.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(ay(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,g=0,f=c;f<p;f++){var y=o[M=this.getRawIndex(f)];isNaN(y)||(g+=y)}g/=p-c;for(var c=h,m=Math.min(h+s,r),v=h-1,x=o[l],_=-1,b=c,w=-1,S=0,f=c;f<m;f++){var M,y=o[M=this.getRawIndex(f)];isNaN(y)?(S++,w<0&&(w=M)):(n=Math.abs((v-d)*(y-x)-(v-f)*(g-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},hy.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]=sy(),c=new(ay(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){u-d<s&&(a.length=s=u-d);for(var g=0;g<s;g++){var f=this.getRawIndex(d+g);a[g]=l[f]}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},hy.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)}}},hy.prototype.getDataExtent=function(t){var e=this._chunks[t],n=sy();if(!e)return n;var i,o=this.count();if(!this._indices)return this._rawExtent[t].slice();if(i=this._extent[t])return i.slice();for(var r=(i=n)[0],a=i[1],s=0;s<o;s++){var l=e[this.getRawIndex(s)];l<r&&(r=l),a<l&&(a=l)}return this._extent[t]=i=[r,a]},hy.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},hy.prototype.clone=function(t,e){var n,i,o=new hy,r=this._chunks,a=t&&ct(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},hy.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=S(this._extent),t._rawExtent=S(this._rawExtent)},hy.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},hy.prototype._getRawIdxIdentity=function(t){return t},hy.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},hy.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},hy.internalField=void(ey={arrayRows:cy,objectRows:function(t,e,n,i){return Ef(t[e],this._dimensions[i])},keyedColumns:cy,original:function(t,e,n,i){t=t&&(null==t.value?t:t.value);return Ef(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var uy=hy;function hy(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=N()}function cy(t,e,n,i){return Ef(t[i],this._dimensions[i])}dy.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},dy.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},dy.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},dy.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},dy.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,o,r,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;fy(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=yt(r=i.get("data",!0))?Ud:Wd,[]),i=this._getSourceMetaRawOption()||{},o=o&&o.metaRawOption||{},a=R(i.seriesLayoutBy,o.seriesLayoutBy)||null,n=R(i.sourceHeader,o.sourceHeader),i=R(i.dimensions,o.dimensions),o=a!==o.seriesLayoutBy||!!n!=!!o.sourceHeader||i?[$g(r,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(r=s,e=u?(o=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(o=[$g(r.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(o,e)},dy.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&&yy(""),[]),a=[];return et(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||yy(""),r.push(e),a.push(t._getVersionSign())}),i?e=Qf(i,r,n.componentIndex):null!=o&&(e=[new qg({data:(t=r[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:S(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:a}},dy.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}},dy.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},dy.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},dy.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],fy(this._sourceHost)&&i?o=i._innerGetDataStore(t,e,n):(o=new uy).initData(new sf(e,t.length),t),r[n]=o),o},dy.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return fy(e)?(t=tg(e))?[t.getSourceManager()]:[]:B((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?ua(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},sa).models:[],function(t){return t.getSourceManager()})},dy.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return fy(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 py=dy;function dy(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function gy(t){t.option.transform&&At(t.option.transform)}function fy(t){return"series"===t.mainType}function yy(t){throw new Error(t)}var my="line-height:1";function vy(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:"+we(i+"")+"px;color:"+we(n)+";font-weight:"+we(o+""),valueStyle:"font-size:"+we(a+"")+"px;color:"+we(r)+";font-weight:"+we(t+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:a,fill:r,fontWeight:t}}}var xy=[0,10,20,30],_y=["","\n","\n\n","\n\n\n"];function by(t,e){return e.type=t,e}function wy(t){return"section"===t.type}function Sy(t){return wy(t)?My:Iy}function My(i,o,t,r){var n,e=o.noHeader,a=(l=function n(t){var i,e,o;return wy(t)?(i=0,e=t.blocks.length,o=1<e||0<e&&!t.noHeader,et(t.blocks,function(t){var e=n(t);i<=e&&(i=e+ +(o&&(!e||wy(t)&&!t.noHeader)))}),i):0}(o),{html:xy[l],richText:_y[l]}),s=[],l=o.blocks||[],u=(Tt(!l||W(l)),l=l||[],i.orderMode),h=(o.sortBlocks&&u&&(l=l.slice(),U(h={valueAsc:"asc",valueDesc:"desc"},u)?(n=new Gf(h[u],null),l.sort(function(t,e){return n.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===u&&l.reverse()),et(l,function(t,e){var n=o.valueFormatter,n=Sy(t)(n?H(H({},i),{valueFormatter:n}):i,t,0<e?a.html:0,r);null!=n&&s.push(n)}),"richText"===i.renderMode?s.join(a.richText):Cy(s.join(""),e?t:a.html));return e?h:(u=fd(o.header,"ordinal",i.useUTC),l=vy(r,i.renderMode).nameStyle,"richText"===i.renderMode?Dy(i,u,l)+a.richText+h:Cy('<div style="'+l+";"+my+';">'+we(u)+"</div>"+h,t))}function Iy(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,g=e.valueFormatter||t.valueFormatter||function(t){return B(t=W(t)?t:[t],function(t,e){return fd(t,W(r)?r[e]:r,d)})};if(!u||!h)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":fd(p,"ordinal",d),r=e.valueType,g=h?[]:g(e.value),e=!c||!u,a=!c&&u,i=vy(i,l),s=i.nameStyle,i=i.valueStyle,"richText"===l?(c?"":o)+(u?"":Dy(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(W(e)?e.join(" "):e,o)}(t,g,e,a,i)):Cy((c?"":o)+(u?"":'<span style="'+s+";"+(!c?"margin-left:2px":"")+'">'+we(p)+"</span>")+(h?"":function(t,e,n,i){e=e?"float:right;margin-left:"+(n?"10px":"20px"):"";return t=W(t)?t:[t],'<span style="'+e+";"+i+'">'+B(t,we).join(" ")+"</span>"}(g,e,a,i)),n)}function Ty(t,e,n,i,o,r){if(t)return Sy(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function Cy(t,e){return'<div style="margin: '+e+"px 0 0;"+my+';">'+t+'<div style="clear:both"></div></div>'}function Dy(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Ay(t,e){return _d(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function ky(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}Py.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Py.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=xd({color:e,type:t,renderMode:n,markerId:i});return Y(e)?e:(this.richTextStyles[i]=e.style,e.content)},Py.prototype.wrapRichTextStyle=function(t,e){var n={},e=(W(e)?et(e,function(t){return H(n,t)}):H(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var Ly=Py;function Py(){this.richTextStyles={},this._nextStyleNameId=Fr()}function Oy(t){var e,n,i,o,r,a,s,l,u,h,c,p=t.series,d=t.dataIndex,t=t.multipleSeries,g=p.getData(),f=g.mapDimensionsAll("defaultedTooltip"),y=f.length,m=p.getRawValue(d),v=W(m),x=Ay(p,d);function _(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(by("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=f,a=x,s=p.getData(),l=ct(i,function(t,e,n){n=s.getDimensionInfo(n);return t||n&&!1!==n.tooltip&&null!=n.displayName},!1),u=[],h=[],c=[],r.length?et(r,function(t){_(_f(s,o,t),t)}):et(i,_),i=(r={inlineValues:u,inlineValueTypes:h,blocks:c}).inlineValueTypes,e=r.blocks,n=(r=r.inlineValues)[0]):y?(y=g.getDimensionInfo(f[0]),n=r=_f(g,d,f[0]),i=y.type):n=r=v?m[0]:m;f=ta(p),y=f&&p.name||"",v=g.getName(d),m=t?y:v;return by("section",{header:y,noHeader:t||!f,sortParam:n,blocks:[by("nameValue",{markerType:"item",markerColor:x,name:m,noName:!Ct(m),value:r,valueType:i})].concat(e||[])})}var Ry=i();function Ny(t,e){return t.getName(e)||t.getId(e)}u(Vy,Ey=g),Vy.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Mf({count:Fy,reset:Gy}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Ry(this).sourceManager=new py(this)).prepareSource();t=this.getInitialData(t,n);Hy(t,this),this.dataTask.context.data=t,Ry(this).dataBeforeProcessed=t,By(this),this._initSelectedMapFromData(t)},Vy.prototype.mergeDefaultAndTheme=function(t,e){var n=Ad(this),i=n?Ld(t):{},o=this.subType;g.hasClass(o),d(t,e.getTheme().get(this.subType)),d(t,this.getDefaultOption()),Zr(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&kd(t,i,n)},Vy.prototype.mergeOption=function(t,e){t=d(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Ad(this),n=(n&&kd(this.option,t,n),Ry(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));Hy(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,Ry(this).dataBeforeProcessed=n,By(this),this._initSelectedMapFromData(n)},Vy.prototype.fillDataTextStyle=function(t){if(t&&!yt(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Zr(t[n],"label",e)},Vy.prototype.getInitialData=function(t,e){},Vy.prototype.appendData=function(t){this.getRawData().appendData(t.data)},Vy.prototype.getData=function(t){var e=Xy(this);return e?(e=e.context.data,null==t?e:e.getLinkedData(t)):Ry(this).data},Vy.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},Vy.prototype.setData=function(t){var e,n=Xy(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),Ry(this).data=t},Vy.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return N(t)},Vy.prototype.getSourceManager=function(){return Ry(this).sourceManager},Vy.prototype.getSource=function(){return this.getSourceManager().getSource()},Vy.prototype.getRawData=function(){return Ry(this).dataBeforeProcessed},Vy.prototype.getColorBy=function(){return this.get("colorBy")||"series"},Vy.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},Vy.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},Vy.prototype.formatTooltip=function(t,e,n){return Oy({series:this,dataIndex:t,multipleSeries:e})},Vy.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)},Vy.prototype.restoreData=function(){this.dataTask.dirty()},Vy.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return ag.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},Vy.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},Vy.prototype.getProgressive=function(){return this.get("progressive")},Vy.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},Vy.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},Vy.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=Ny(o,t[r]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},Vy.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)},Vy.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=G(t),n=[],i=0;i<e.length;i++){var o=t[e[i]];0<=o&&n.push(o)}return n},Vy.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),"all"===n||n[Ny(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},Vy.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},Vy.prototype._innerSelect=function(t,e){var n,i=this.option,o=i.selectedMode,r=e.length;if(o&&r)if("series"===o)i.selectedMap="all";else if("multiple"===o){O(i.selectedMap)||(i.selectedMap={});for(var a=i.selectedMap,s=0;s<r;s++){var l=e[s];a[n=Ny(t,l)]=!0,this._selectedDataIndicesMap[n]=t.getRawIndex(l)}}else"single"!==o&&!0!==o||(n=Ny(t,o=e[r-1]),i.selectedMap=((i={})[n]=!0,i),this._selectedDataIndicesMap=((i={})[n]=t.getRawIndex(o),i))},Vy.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))},Vy.registerClass=function(t){return g.registerClass(t)},Vy.protoInitialize=((xp=Vy.prototype).type="series.__base__",xp.seriesIndex=0,xp.ignoreStyleOnData=!1,xp.hasSymbolVisual=!1,xp.defaultSymbol="circle",xp.visualStyleAccessPath="itemStyle",void(xp.visualDrawType="fill"));var Ey,zy=Vy;function Vy(){var t=null!==Ey&&Ey.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function By(t){var e,n,i=t.name;ta(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],et(t,function(t){t=e.getDimensionInfo(t);t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function Fy(t){return t.model.getRawData().count()}function Gy(t){t=t.model;return t.setData(t.getRawData().cloneShallow()),Wy}function Wy(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Hy(e,n){et(Et(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,P(Yy,n))})}function Yy(t,e){t=Xy(t);return t&&t.setOutputEnd((e||this).count()),e}function Xy(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}ut(zy,Sp),ut(zy,ag),va(zy,g);Zy.prototype.init=function(t,e){},Zy.prototype.render=function(t,e,n,i){},Zy.prototype.dispose=function(t,e){},Zy.prototype.updateView=function(t,e,n,i){},Zy.prototype.updateLayout=function(t,e,n,i){},Zy.prototype.updateVisual=function(t,e,n,i){},Zy.prototype.toggleBlurSeries=function(t,e,n){},Zy.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Uy=Zy;function Zy(){this.group=new Z,this.uid=Ap("viewComponent")}function jy(){var r=i();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"}}ma(Uy),wa(Uy);var qy=i(),Ky=jy(),$y=(Jy.prototype.init=function(t,e){},Jy.prototype.render=function(t,e,n,i){},Jy.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&tm(t,i,"emphasis")},Jy.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&tm(t,i,"normal")},Jy.prototype.remove=function(t,e){this.group.removeAll()},Jy.prototype.dispose=function(t,e){},Jy.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},Jy.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},Jy.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},Jy.prototype.eachRendered=function(t){qc(this.group,t)},Jy.markUpdateMethod=function(t,e){qy(t).updateMethod=e},Jy.protoInitialize=void(Jy.prototype.type="chart"),Jy);function Jy(){this.group=new Z,this.uid=Ap("viewChart"),this.renderTask=Mf({plan:em,reset:nm}),this.renderTask.context={view:this}}function Qy(t,e,n){t&&Tu(t)&&("emphasis"===e?su:lu)(t,n)}function tm(e,t,n){var i,o=ia(e,t),r=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=kl[t])&&Al<=32?kl[t]=Al++:i):null;null!=o?et(Ur(o),function(t){Qy(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){Qy(t,n,r)})}function em(t){return Ky(t.model)}function nm(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&qy(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,n,i,o),im[r]}ma($y),wa($y);var im={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)}}},om="\0__throttleOriginMethod",rm="\0__throttleRate",am="\0__throttleType";function sm(t,o,r){var a,s,l,u,h,c=0,p=0,d=null;function g(){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(g,n):0<=s?g():d=setTimeout(g,-s),c=a}return e.clear=function(){d&&(clearTimeout(d),d=null)},e.debounceNextCall=function(t){h=t},e}function lm(t,e,n,i){var o=t[e];if(o){var r=o[om]||o,a=o[am];if(o[rm]!==n||a!==i){if(null==n||!i)return t[e]=r;(o=t[e]=sm(r,n,"debounce"===i))[om]=r,o[am]=i,o[rm]=n}return o}}function um(t,e){var n=t[e];n&&n[om]&&(n.clear&&n.clear(),t[e]=n[om])}var hm=i(),cm={itemStyle:Sa(bp,!0),lineStyle:Sa(mp,!0)},pm={lineStyle:"stroke",itemStyle:"fill"};function dm(t,e){return t.visualStyleMapper||cm[e]||(console.warn("Unknown style type '"+e+"'."),cm.itemStyle)}function gm(t,e){return t.visualDrawType||pm[e]||(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=dm(o,n)(i),i=i.getShallow("decal"),a=(i&&(e.setVisual("decal",i),i.dirty=!0),gm(o,n)),i=r[a],s=D(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||D(r.fill)?i:r.fill,r.stroke="auto"===r.stroke||D(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=H({},r);i[a]=s(n),t.setItemVisual(e,"style",i)}}}},fm=new Tp,fp={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=dm(t,i),r=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var n=t.getRawDataItem(e);n&&n[i]&&(fm.option=n[i],n=o(fm),H(t.ensureUniqueItemVisual(e,"style"),n),fm.option.decal&&(t.setItemVisual(e,"decal",fm.option.decal),fm.option.decal.dirty=!0),r in n)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},Yp={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={}),hm(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=hm(i).scope,t=i.visualStyleAccessPath||"itemStyle",l=gm(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))}))})}},ym=Math.PI;vm.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){t=t.overallTask;t&&t.dirty()})},vm.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}},vm.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},vm.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}},vm.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)})},vm.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;et(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});Tt(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},vm.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)},vm.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},vm.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},vm.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))}et(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},vm.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},vm.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())})},vm.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},vm.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)||Mf({plan:Sm,reset:Mm,count:Cm}));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)},vm.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||Mf({reset:xm}),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,Mf({reset:_m,onDirty:wm})));e.context={model:t,overallProgress:u},e.agent=r,e.__block=u,o._pipe(t,e)}Tt(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,et(n.getSeries(),c)),h&&r.dirty()},vm.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},vm.wrapStageHandler=function(t,e){return(t=D(t)?{overallReset:t,seriesType:function(t){Dm=null;try{t(Am,km)}catch(t){}return Dm}(t)}:t).uid=Ap("stageHandler"),e&&(t.visualType=e),t};var mm=vm;function vm(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 xm(t){t.overallReset(t.ecModel,t.api,t.payload)}function _m(t){return t.overallProgress&&bm}function bm(){this.agent.dirty(),this.getDownstream().dirty()}function wm(){this.agent&&this.agent.dirty()}function Sm(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Mm(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Ur(t.reset(t.model,t.ecModel,t.api,t.payload));return 1<t.length?B(t,function(t,e){return Tm(e)}):Im}var Im=Tm(0);function Tm(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 Cm(t){return t.data.count()}var Dm,Am={},km={};function Lm(t,e){for(var n in e.prototype)t[n]=Bt}Lm(Am,gg),Lm(km,xg),Am.eachSeriesByType=Am.eachRawSeriesByType=function(t){Dm=t},Am.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Dm=t.subType)};function Pm(){return{axisLine:{lineStyle:{color:Om}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}var xp=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],bp={color:xp,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],xp]},Om="#B9B8CE",mp="#100C2A",xp=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],mp={darkMode:!0,color:xp,backgroundColor:mp,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Om}},textStyle:{color:Om},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Om}},dataZoom:{borderColor:"#71708A",textStyle:{color:Om},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:Om}},timeline:{lineStyle:{color:Om},label:{color:Om},controlStyle:{color:Om,borderColor:Om}},calendar:{itemStyle:{color:mp},dayLabel:{color:Om},monthLabel:{color:Om},yearLabel:{color:Om}},timeAxis:Pm(),logAxis:Pm(),valueAxis:Pm(),categoryAxis:Pm(),line:{symbol:"circle"},graph:{color:xp},gauge:{title:{color:Om},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Om},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},Rm=(mp.categoryAxis.splitLine.show=!1,Nm.prototype.normalizeQuery=function(t){var e,a,s,l={},u={},h={};return Y(t)?(e=ya(t),l.mainType=e.main||null,l.subType=e.sub||null):(a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1},et(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}},Nm.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]}},Nm.prototype.afterTrigger=function(){this.eventInfo=null},Nm);function Nm(){}var Em=["symbol","symbolSize","symbolRotate","symbolOffset"],zm=Em.concat(["symbolKeepAspect"]),xp={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<Em.length;o++){var r=Em[o],u=a.get(r);D(u)?(i=!0,l[r]=u):n[r]=u}if(n.symbol=n.symbol||a.defaultSymbol,e.setVisual(H({legendIcon:a.legendIcon||n.symbol,symbolKeepAspect:a.get("symbolKeepAspect")},n)),!t.isSeriesFiltered(a))return s=G(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}}}},Vm={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<zm.length;i++){var o=zm[i],r=n.getShallow(o,!0);null!=r&&t.setItemVisual(e,o,r)}}:null}}};function Bm(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function Fm(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 Gm(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}function Wm(r,t){et([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(o){t(o[0],function(t,e,n){var i;t=H({},t),n.dispatchAction(H(t,{type:o[1],seriesIndex:(n=t,i=[],e.eachComponent({mainType:"series",subType:r,query:n},function(t){i.push(t.seriesIndex)}),i)}))})})}function Hm(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=ia(e=t.getData(),l.fromActionPayload),s.trigger(u,{type:u,seriesId:t.id,name:W(n)?e.getName(n[0]):e.getName(n),selected:Y(o)?o:H({},o)}))})}function Ym(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var Xm=Math.round(9*Math.random()),Um="function"==typeof Object.defineProperty,Zm=(jm.prototype.get=function(t){return this._guard(t)[this._id]},jm.prototype.set=function(t,e){t=this._guard(t);return Um?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},jm.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},jm.prototype.has=function(t){return!!this._guard(t)[this._id]},jm.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},jm);function jm(){this._id="__ec_inner_"+Xm++}var qm=q.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()}}),Km=q.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()}}),$m=q.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()}}),Jm=q.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()}}),Qm={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}},t0={},e0=(et({line:Eh,rect:L,roundRect:L,square:L,circle:$u,diamond:Km,pin:$m,arrow:Jm,triangle:qm},function(t,e){t0[e]=new t}),q.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var t=Qo(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=t0[o])||t0[o="rect"],Qm[o](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}}));function n0(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 i0(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://")?Lc(t.slice(8),new z(e,n,i,o),a?"center":"cover"):0===t.indexOf("path://")?kc(t.slice(7),{},new z(e,n,i,o),a?"center":"cover"):new e0({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=s,a.setColor=n0,r&&a.setColor(r),a}function o0(t){return[(t=W(t)?t:[+t,+t])[0]||0,t[1]||0]}function r0(t,e){if(null!=t)return[j((t=W(t)?t:[t,t])[0],e[0])||0,j(R(t[1],t[0]),e[1])||0]}function a0(t){return isFinite(t)}function s0(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=a0(u)?u:.5,h=a0(h)?h:.5,c=0<=c&&a0(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=a0(r)?r:0,l=a0(l)?l:1,i=a0(i)?i:0,u=a0(u)?u:0,o.createLinearGradient(r,i,l,u)),d=e.colorStops,g=0;g<d.length;g++)p.addColorStop(d[g].offset,d[g].color);return p}function l0(t){return parseInt(t,10)}function u0(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]||l0(n[i])||l0(t.style[i]))-(l0(n[r])||0)-(l0(n[e])||0)|0)}function h0(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]:X(o)?[o]:W(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 c0=new Ds(!0);function p0(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function d0(t){return"string"==typeof t&&"none"!==t}function g0(t){t=t.fill;return null!=t&&"none"!==t}function f0(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 y0(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 m0(t,e,n){var n=Da(e.image,e.__image,n);if(ka(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)*Ft),n.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(n)),t}var v0=["shadowBlur","shadowOffsetX","shadowOffsetY"],x0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function _0(t,e,n,i,o){var r,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(C0(t,o),a=!0,r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?Ya.opacity:r),!i&&e.blend===n.blend||(a||(C0(t,o),a=!0),t.globalCompositeOperation=e.blend||Ya.blend);for(var s=0;s<v0.length;s++){var l=v0[s];!i&&e[l]===n[l]||(a||(C0(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(C0(t,o),a=!0),t.shadowColor=e.shadowColor||Ya.shadowColor),a}function b0(t,e,n,i,o){var r=D0(e,o.inHover),a=i?null:n&&D0(n,o.inHover)||{};if(r!==a){var s=_0(t,r,a,i,o);(i||r.fill!==a.fill)&&(s||(C0(t,o),s=!0),d0(r.fill))&&(t.fillStyle=r.fill),(i||r.stroke!==a.stroke)&&(s||(C0(t,o),s=!0),d0(r.stroke))&&(t.strokeStyle=r.stroke),!i&&r.opacity===a.opacity||(s||(C0(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||(C0(t,o),s=!0),t.lineWidth=n);for(var l=0;l<x0.length;l++){var u=x0[l],h=u[0];!i&&r[h]===a[h]||(s||(C0(t,o),s=!0),t[h]=r[h]||u[1])}}}function w0(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 S0=1,M0=2,I0=3,T0=4;function C0(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function D0(t,e){return e&&t.__hoverStyle||t.style}function A0(t,e){k0(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function k0(t,e,n,E){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return e.__dirty&=~Mn,e.__isRendered=!1;var o,r,a,s,l,u,h,c,p,d,g,f,y,m,v,x,_,b,w,S,M,I,T,C=e.__clipPaths,D=n.prevElClipPaths,A=!1,k=!1;if(!D||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}}(C,D)){if(D&&D.length&&(C0(t,n),t.restore(),k=A=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),C&&C.length){C0(t,n),t.save();var z=C,V=t;D=n;for(var B=!1,F=0;F<z.length;F++){var G=z[F],B=B||G.isZeroArea();w0(V,G),V.beginPath(),G.buildPath(V,G.shape),V.clip()}D.allClipped=B,A=!0}n.prevElClipPaths=C}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var D=n.prevEl,L=(D||(k=A=!0),e instanceof q&&e.autoBatch&&(C=e.style,L=g0(C),T=p0(C),!(C.lineDash||!(+L^+T)||L&&"string"!=typeof C.fill||T&&"string"!=typeof C.stroke||C.strokePercent<1||C.strokeOpacity<1||C.fillOpacity<1))),A=(A||(T=i,C=D.transform,T&&C?T[0]!==C[0]||T[1]!==C[1]||T[2]!==C[2]||T[3]!==C[3]||T[4]!==C[4]||T[5]!==C[5]:T||C)?(C0(t,n),w0(t,e)):L||C0(t,n),D0(e,n.inHover));if(e instanceof q)n.lastDrawType!==S0&&(k=!0,n.lastDrawType=S0),b0(t,e,D,k,n),L&&(n.batchFill||n.batchStroke)||t.beginPath(),i=t,C=e,O=L,y=p0(a=A),m=g0(a),v=a.strokePercent,x=v<1,_=!C.path,C.silent&&!x||!_||C.createPathProxy(),b=C.path||c0,w=C.__dirty,O||(s=a.fill,I=a.stroke,l=m&&!!s.colorStops,u=y&&!!I.colorStops,h=m&&!!s.image,c=y&&!!I.image,M=f=g=d=p=void 0,(l||u)&&(M=C.getBoundingRect()),l&&(p=w?s0(i,s,M):C.__canvasFillGradient,C.__canvasFillGradient=p),u&&(d=w?s0(i,I,M):C.__canvasStrokeGradient,C.__canvasStrokeGradient=d),h&&(g=w||!C.__canvasFillPattern?m0(i,s,C):C.__canvasFillPattern,C.__canvasFillPattern=g),c&&(f=w||!C.__canvasStrokePattern?m0(i,I,C):C.__canvasStrokePattern,C.__canvasStrokePattern=g),l?i.fillStyle=p:h&&(g?i.fillStyle=g:m=!1),u?i.strokeStyle=d:c&&(f?i.strokeStyle=f:y=!1)),M=C.getGlobalScale(),b.setScale(M[0],M[1],C.segmentIgnoreThreshold),i.setLineDash&&a.lineDash&&(S=(s=h0(C))[0],P=s[1]),I=!0,(_||w&In)&&(b.setDPR(i.dpr),x?b.setContext(null):(b.setContext(i),I=!1),b.reset(),C.buildPath(b,C.shape,O),b.toStatic(),C.pathUpdated()),I&&b.rebuildPath(i,x?v:1),S&&(i.setLineDash(S),i.lineDashOffset=P),O||(a.strokeFirst?(y&&y0(i,a),m&&f0(i,a)):(m&&f0(i,a),y&&y0(i,a))),S&&i.setLineDash([]),L&&(n.batchFill=A.fill||"",n.batchStroke=A.stroke||"");else if(e instanceof $s)n.lastDrawType!==I0&&(k=!0,n.lastDrawType=I0),b0(t,e,D,k,n),l=t,p=e,null!=(g=(h=A).text)&&(g+=""),g&&(l.font=h.font||J,l.textAlign=h.textAlign,l.textBaseline=h.textBaseline,d=u=void 0,l.setLineDash&&h.lineDash&&(u=(p=h0(p))[0],d=p[1]),u&&(l.setLineDash(u),l.lineDashOffset=d),h.strokeFirst?(p0(h)&&l.strokeText(g,h.x,h.y),g0(h)&&l.fillText(g,h.x,h.y)):(g0(h)&&l.fillText(g,h.x,h.y),p0(h)&&l.strokeText(g,h.x,h.y)),u)&&l.setLineDash([]);else if(e instanceof nl)n.lastDrawType!==M0&&(k=!0,n.lastDrawType=M0),c=D,f=k,_0(t,D0(e,(M=n).inHover),c&&D0(c,M.inHover),f,M),s=t,_=A,(C=(w=e).__image=Da(_.image,w.__image,w,w.onload))&&ka(C)&&(I=_.x||0,b=_.y||0,x=w.getWidth(),w=w.getHeight(),v=C.width/C.height,null==x&&null!=w?x=w*v:null==w&&null!=x?w=x/v:null==x&&null==w&&(x=C.width,w=C.height),_.sWidth&&_.sHeight?(o=_.sx||0,r=_.sy||0,s.drawImage(C,o,r,_.sWidth,_.sHeight,I,b,x,w)):_.sx&&_.sy?(v=x-(o=_.sx),_=w-(r=_.sy),s.drawImage(C,o,r,v,_,I,b,x,w)):s.drawImage(C,I,b,x,w));else if(e.getTemporalDisplayables){n.lastDrawType!==T0&&(k=!0,n.lastDrawType=T0);{var W=t;var P=e;var O=n;var H=P.getDisplayables(),Y=P.getTemporalDisplayables();W.save();var R,X,U={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:O.viewWidth,viewHeight:O.viewHeight,inHover:O.inHover};for(R=P.getCursor(),X=H.length;R<X;R++)(N=H[R]).beforeBrush&&N.beforeBrush(),N.innerBeforeBrush(),k0(W,N,U,R===X-1),N.innerAfterBrush(),N.afterBrush&&N.afterBrush(),U.prevEl=N;for(var N,Z=0,j=Y.length;Z<j;Z++)(N=Y[Z]).beforeBrush&&N.beforeBrush(),N.innerBeforeBrush(),k0(W,N,U,Z===j-1),N.innerAfterBrush(),N.afterBrush&&N.afterBrush(),U.prevEl=N;P.clearTemporalDisplayables(),P.notClear=!0,W.restore()}}L&&E&&C0(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}var L0=new Zm,P0=new li(100),O0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function R0(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),o="svg"===i.painter.type,e=(t.dirty&&L0.delete(t),L0.get(t));if(e)return e;for(var r,a=V(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"===a.backgroundColor&&(a.backgroundColor=null),{repeat:"repeat"}),s=e,l=[n],u=!0,h=0;h<O0.length;++h){var c=a[O0[h]];if(null!=c&&!W(c)&&!Y(c)&&!X(c)&&"boolean"!=typeof c){u=!1;break}l.push(c)}u&&(r=l.join(",")+(o?"-svg":""),v=P0.get(r))&&(o?s.svgElement=v:s.image=v);var p,d=function t(e){if(!e||0===e.length)return[[0,0]];if(X(e))return[[r=Math.ceil(e),r]];for(var n=!0,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){var r;X(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}(a.dashArrayX),g=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(X(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}(a.dashArrayY),f=function t(e){if(!e||0===e.length)return[["rect"]];if(Y(e))return[[e]];for(var n=!0,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)Y(e[i])?o.push([e[i]]):o.push(e[i]);return o}(a.symbol),y=B(d,N0),m=N0(g),v=!o&&Q.createCanvas(),x=o&&{tag:"g",attrs:{},key:"dcl",children:[]},_=function(){for(var t=1,e=0,n=y.length;e<n;++e)t=Gr(t,y[e]);for(var i=1,e=0,n=f.length;e<n;++e)i=Gr(i,f[e].length);t*=i;var o=m*y.length*f.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(o,a.maxTileHeight))}}();v&&(v.width=_.width*n,v.height=_.height*n,p=v.getContext("2d")),p&&(p.clearRect(0,0,v.width,v.height),a.backgroundColor)&&(p.fillStyle=a.backgroundColor,p.fillRect(0,0,v.width,v.height));for(var b=0,w=0;w<g.length;++w)b+=g[w];if(!(b<=0))for(var S,M=-m,I=0,T=0,C=0;M<_.height;){if(I%2==0){for(var D=T/2%f.length,A=0,k=0,L=0;A<2*_.width;){for(var P,O,R,E,N,z=0,w=0;w<d[C].length;++w)z+=d[C][w];if(z<=0)break;k%2==0&&(O=.5*(1-a.symbolSize),P=A+d[C][k]*O,O=M+g[I]*O,R=d[C][k]*a.symbolSize,E=g[I]*a.symbolSize,N=L/2%f[D].length,P=P,N=f[D][N],S=void 0,N=i0(N,P*(S=o?1:n),O*S,R*S,E*S,a.color,a.symbolKeepAspect),o?(P=i.painter.renderOneToVNode(N))&&x.children.push(P):A0(p,N)),A+=d[C][k],++L,++k===d[C].length&&(k=0)}++C===d.length&&(C=0)}M+=g[I],++T,++I===g.length&&(I=0)}return u&&P0.put(r,v||x),s.image=v,s.svgElement=x,s.svgWidth=_.width,s.svgHeight=_.height,e.rotation=a.rotation,e.scaleX=e.scaleY=o?1:1/n,L0.set(t,e),t.dirty=!1,e}function N0(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var E0=new ce,z0={};var Km={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}},V0="__flagInMainProcess",B0="__pendingUpdate",F0="__needsUpdateStatus",G0=/^[a-zA-Z0-9_]+$/,W0="__connectUpdateStatus";function H0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return X0(this,n,t);this.id}}function Y0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return X0(this,n,t)}}function X0(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ce.prototype[e].apply(t,n)}u(pv,hv=ce);var U0,Z0,j0,q0,K0,$0,J0,Q0,tv,ev,nv,iv,ov,rv,av,sv,lv,uv,hv,cv=pv,$m=cv.prototype;function pv(){return null!==hv&&hv.apply(this,arguments)||this}$m.on=Y0("on"),$m.off=Y0("off");u(fv,dv=ce),fv.prototype._onframe=function(){if(!this._disposed){uv(this);var t=this._scheduler;if(this[B0]){var e=this[B0].silent;this[V0]=!0;try{U0(this),q0.update.call(this,null,this[B0].updateParams)}catch(t){throw this[V0]=!1,this[B0]=null,t}this._zr.flush(),this[V0]=!1,this[B0]=null,Q0.call(this,e),tv.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),$0(this,i),t.performVisualTasks(i),rv(this,this._model,o,"remain",{}),0<(n-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},fv.prototype.getDom=function(){return this._dom},fv.prototype.getId=function(){return this.id},fv.prototype.getZr=function(){return this._zr},fv.prototype.isSSR=function(){return this._ssr},fv.prototype.setOption=function(t,e,n){if(!this[V0])if(this._disposed)this.id;else{O(e)&&(n=e.lazyUpdate,i=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this[V0]=!0,this._model&&!e||(e=new Ig(this._api),a=this._theme,(s=this._model=new gg).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:o},Iv);var i,o,r,a,s={seriesTransition:r,optionChanged:!0};if(n)this[B0]={silent:i,updateParams:s},this[V0]=!1,this.getZr().wakeUp();else{try{U0(this),q0.update.call(this,null,s)}catch(t){throw this[B0]=null,this[V0]=!1,t}this._ssr||this._zr.flush(),this[B0]=null,this[V0]=!1,Q0.call(this,i),tv.call(this,i)}}},fv.prototype.setTheme=function(){},fv.prototype.getModel=function(){return this._model},fv.prototype.getOption=function(){return this._model&&this._model.getOption()},fv.prototype.getWidth=function(){return this._zr.getWidth()},fv.prototype.getHeight=function(){return this._zr.getHeight()},fv.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||w.hasGlobalWindow&&window.devicePixelRatio||1},fv.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},fv.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},fv.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},fv.prototype.getSvgDataURL=function(){var t;if(w.svgSupported)return et((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},fv.prototype.getDataURL=function(t){var e,n,i,o;if(!this._disposed)return o=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,et(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")),et(n,function(t){t.group.ignore=!1}),o;this.id},fv.prototype.getConnectedDataURL=function(i){var o,r,a,s,l,u,h,c,p,e,t,n,d,g,f;if(!this._disposed)return o="svg"===i.type,r=this.group,a=Math.min,s=Math.max,kv[r]?(u=l=1/0,c=h=-1/0,p=[],e=i&&i.pixelRatio||this.getDevicePixelRatio(),et(Av,function(t,e){var n;t.group===r&&(n=o?t.getZr().painter.getSvgDom().innerHTML:t.renderToCanvas(S(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=Q.createCanvas(),(g=mr(d,{renderer:o?"svg":"canvas"})).resize({width:t,height:n}),o?(f="",et(p,function(t){var e=t.left-l,n=t.top-u;f+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=f,i.connectedBackgroundColor&&g.painter.setBackgroundColor(i.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()):(i.connectedBackgroundColor&&g.add(new L({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),et(p,function(t){t=new nl({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});g.add(t)}),g.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i);this.id},fv.prototype.convertToPixel=function(t,e){return K0(this,"convertToPixel",t,e)},fv.prototype.convertFromPixel=function(t,e){return K0(this,"convertFromPixel",t,e)},fv.prototype.containPixel=function(t,i){var o;if(!this._disposed)return et(ra(this._model,t),function(t,n){0<=n.indexOf("Models")&&et(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},fv.prototype.getVisual=function(t,e){var t=ra(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=t?Bm(n,t,e):Fm(n,e)},fv.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},fv.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},fv.prototype._initEvents=function(){var t,n,i,s=this;et(bv,function(a){function t(t){var n,e,i,o=s.getModel(),r=t.target;"globalout"===a?n={}:r&&Ym(r,function(t){var e,t=$(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=H({},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)}),et(Sv,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),et(["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?(Hm("map","selectchanged",n,e,t),Hm("pie","selectchanged",n,e,t)):"select"===t.fromAction?(Hm("map","selected",n,e,t),Hm("pie","selected",n,e,t)):"unselect"===t.fromAction&&(Hm("map","unselected",n,e,t),Hm("pie","unselected",n,e,t))})},fv.prototype.isDisposed=function(){return this._disposed},fv.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},fv.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&ha(this.getDom(),Ov,""),e=(t=this)._api,n=t._model,et(t._componentsViews,function(t){t.dispose(n,e)}),et(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 Av[t.id])},fv.prototype.resize=function(t){if(!this[V0])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[B0]&&(null==n&&(n=this[B0].silent),e=!0,this[B0]=null),this[V0]=!0;try{e&&U0(this),q0.update.call(this,{type:"resize",animation:H({duration:0},t&&t.animation)})}catch(t){throw this[V0]=!1,t}this[V0]=!1,Q0.call(this,n),tv.call(this,n)}}},fv.prototype.showLoading=function(t,e){this._disposed?this.id:(O(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Dv[t]&&(t=Dv[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},fv.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},fv.prototype.makeActionFromEvent=function(t){var e=H({},t);return e.type=Sv[t.type],e},fv.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(O(e)||(e={silent:!!e}),wv[t.type]&&this._model&&(this[V0]?this._pendingActions.push(t):(n=e.silent,J0.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&w.browser.weChat&&this._throttledZrFlush(),Q0.call(this,n),tv.call(this,n))))},fv.prototype.updateLabelLayout=function(){E0.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},fv.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())},fv.internalField=(U0=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),Z0(t,!0),Z0(t,!1),e.plan()},Z0=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=ya(t.type),(n=new(o?Uy.getClass(e.main,e.sub):$y.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)}for(o?r.eachComponent(function(t,e){"series"!==t&&n(e)}):r.eachSeries(n),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)}},j0=function(p,e,d,n,t){var i,g,o=p._model;function r(t){t&&t.__alive&&t[e]&&t[e](t.__model,o,p._api,d)}o.setUpdatePayload(d),n?((i={})[n+"Id"]=d[n+"Id"],i[n+"Index"]=d[n+"Index"],i[n+"Name"]=d[n+"Name"],i={mainType:n,query:i},t&&(i.subType=t),null!=(t=d.excludeSeriesId)&&(g=N(),et(Ur(t),function(t){t=Qr(t,null);null!=t&&g.set(t,!0)})),o&&o.eachComponent(i,function(t){if(!g||null==g.get(t.id))if(Du(d))if(t instanceof zy){if(d.type===Vl&&!d.notBlur&&!t.get(["emphasis","disabled"])){var e=t,n=d,i=p._api,o=e.seriesIndex,r=e.getData(n.dataType);if(r){var n=(W(n=ia(r,n))?n[0]:n)||0,a=r.getItemGraphicEl(n);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);a?fu(o,(n=$(a)).focus,n.blurScope,i):(n=e.get(["emphasis","focus"]),e=e.get(["emphasis","blurScope"]),null!=n&&fu(o,n,e,i))}}}else n=(o=mu(t.mainType,t.componentIndex,d.name,p._api)).focusSelf,e=o.dispatchers,d.type===Vl&&n&&!d.notBlur&&yu(t.mainType,t.componentIndex,p._api),e&&et(e,function(t){(d.type===Vl?su:lu)(t)});else Cu(d)&&t instanceof zy&&(i=t,u=d,p._api,Cu(u)&&(h=u.dataType,W(c=ia(i.getData(h),u))||(c=[c]),i[u.type===Wl?"toggleSelect":u.type===Fl?"select":"unselect"](c,h)),vu(t),lv(p));var u,h,c},p),o&&o.eachComponent(i,function(t){g&&null!=g.get(t.id)||r(p["series"===n?"_chartsMap":"_componentsMap"][t.__viewId])},p)):et([].concat(p._componentsViews).concat(p._chartsViews),r)},q0={prepareAndUpdate:function(t){U0(this),q0.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),$0(this,n),r.update(n,i),yv(n),a.performVisualTasks(n,t),iv(this,n,i,t,e),r=n.get("backgroundColor")||"transparent",a=n.get("darkMode"),o.setBackgroundColor(r),null!=a&&"auto"!==a&&o.setDarkMode(a),E0.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)}),yv(a),this._scheduler.performVisualTasks(a,n,{setDirty:!0,dirtyMap:o}),rv(this,a,s,n,{},o),E0.trigger("afterupdate",a,s))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),$y.markUpdateMethod(t,"updateView"),yv(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),iv(this,e,this._api,t,{}),E0.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()}),$y.markUpdateMethod(n,"updateVisual"),yv(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)}),E0.trigger("afterupdate",o,this._api))},updateLayout:function(t){q0.update.call(this,t)}},K0=function(t,e,n,i){if(t._disposed)t.id;else for(var o=t._model,r=t._coordSysMgr.getCoordinateSystems(),a=ra(o,n),s=0;s<r.length;s++){var l=r[s];if(l[e]&&null!=(l=l[e](o,a,i)))return l}},$0=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},J0=function(i,t){var o=this,e=this.getModel(),n=i.type,r=i.escapeConnect,a=wv[n],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),h=null!=l[0]&&ya(l[0]),l=(this[V0]=!0,[i]),c=!1;i.batch&&(c=!0,l=B(i.batch,function(t){return(t=V(H({},t),i)).batch=null,t}));var p=[],d=Cu(i),g=Du(i);if(g&&gu(this._api),et(l,function(t){var e,n;(y=(y=a.action(t,o._model,o._api))||H({},t)).type=s.event||y.type,p.push(y),g?(e=(n=aa(i)).queryOptionMap,n=n.mainTypeSpecified?e.keys()[0]:"series",j0(o,u,t,n),lv(o)):d?(j0(o,u,t,"series"),lv(o)):h&&j0(o,u,t,h.main,h.sub)}),"none"!==u&&!g&&!d&&!h)try{this[B0]?(U0(this),q0.update.call(this,i),this[B0]=null):q0[u].call(this,i)}catch(i){throw this[V0]=!1,i}var f,y=c?{type:s.event||n,escapeConnect:r,batch:p}:p[0];this[V0]=!1,t||((l=this._messageCenter).trigger(y.type,y),d&&(c={type:"selectchanged",escapeConnect:r,selected:(f=[],e.eachSeries(function(n){et(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),f.push(e))})}),f),isFromClick:i.isFromClick||!1,fromAction:i.type,fromActionPayload:i},l.trigger(c.type,c)))},Q0=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();J0.call(this,n,t)}},tv=function(t){t||this.trigger("updated")},ev=function(e,n){e.on("rendered",function(t){n.trigger("rendered",t),!e.animation.isFinished()||n[B0]||n._scheduler.unfinished||n._pendingActions.length||n.trigger("finished")})},nv=function(t,a){t.on("mouseover",function(t){var e,n,i,o,r=Ym(t.target,Tu);r&&(r=r,e=t,t=a._api,n=$(r),i=(o=mu(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,o=o.focusSelf,i?(o&&yu(n.componentMainType,n.componentIndex,t),et(i,function(t){return ru(t,e)})):(fu(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&yu(n.componentMainType,n.componentIndex,t),ru(r,e)),lv(a))}).on("mouseout",function(t){var e,n,i=Ym(t.target,Tu);i&&(i=i,e=t,gu(t=a._api),(n=mu((n=$(i)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?et(n,function(t){return au(t,e)}):au(i,e),lv(a))}).on("click",function(t){var e,t=Ym(t.target,function(t){return null!=$(t).dataIndex},!0);t&&(e=t.selected?"unselect":"select",t=$(t),a._api.dispatchAction({type:e,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},iv=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&&(Sn(l=u.concat(h),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),et(l,function(t){var e=r.getComponent(t.type,t.idx),n=t.zlevel,t=t.key;null!=a&&(n=Math.max(a,n)),t?(n===a&&t!==s&&n++,s=t):s&&(n===a&&n++,s=""),a=n,e.setZLevel(n)})),ov(t,e,n,i,o),et(t._chartsViews,function(t){t.__alive=!1}),rv(t,e,n,i,o),et(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},ov=function(t,n,i,o,e,r){et(r||t._componentsViews,function(t){var e=t.__model;xv(0,t),t.render(e,n,i,o),vv(e,t),_v(e,t)})},rv=function(o,t,e,r,n,a){var i,s,l,u,h=o._scheduler,c=(n=H(n||{},{updatedSeries:t.getSeries()}),E0.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),xv(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)}),vu(t)}),h.unfinished=c||h.unfinished,E0.trigger("series:layoutlabels",t,e,n),E0.trigger("series:transition",t,e,n),t.eachSeries(function(t){var e=o._chartsMap[t.__viewId];vv(t,e),_v(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)})}),E0.trigger("series:afterupdate",t,e,n)},lv=function(t){t[F0]=!0,t.getZr().wakeUp()},uv=function(t){t[F0]&&(t.getZr().storage.traverse(function(t){mc(t)||mv(t)}),t[F0]=!1)},av=function(n){return u(t,e=xg),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){su(t,e),lv(n)},t.prototype.leaveEmphasis=function(t,e){lu(t,e),lv(n)},t.prototype.enterBlur=function(t){uu(t),lv(n)},t.prototype.leaveBlur=function(t){hu(t),lv(n)},t.prototype.enterSelect=function(t){cu(t),lv(n)},t.prototype.leaveSelect=function(t){pu(t),lv(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(sv=function(i){function o(t,e){for(var n=0;n<t.length;n++)t[n][W0]=e}et(Sv,function(t,e){i._messageCenter.on(e,function(t){var e,n;!kv[i.group]||0===i[W0]||t&&t.escapeConnect||(e=i.makeActionFromEvent(t),n=[],et(Av,function(t){t!==i&&t.group===i.group&&n.push(t)}),o(n,0),et(n,function(t){1!==t[W0]&&t.dispatchAction(e)}),o(n,2))})})}));var dv,gv=fv,Jm=gv.prototype;function fv(t,e,n){var i=dv.call(this,new Rm)||this,t=(i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},Y(e)&&(e=Cv[e]),i._dom=t,i._zr=mr(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:R(n.useDirtyRect,!1),useCoarsePointer:R(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize})),n=(i._ssr=n.ssr,i._throttledZrFlush=sm(T(t.flush,t),17),(e=S(e))&&Xg(e,!0),i._theme=e,i._locale=Y(e=n.locale||Ep)?(n=Rp[e.toUpperCase()]||{},e===Lp||e===Pp?S(n):d(S(n),S(Rp[Op]),!1)):d(S(e),S(Rp[Op]),!1),i._coordSysMgr=new wg,i._api=av(i));function o(t,e){return t.__prio-e.__prio}return Sn(Tv,o),Sn(Mv,o),i._scheduler=new mm(i,n,Mv,Tv),i._messageCenter=new cv,i._initEvents(),i.resize=T(i.resize,i),t.animation.on("frame",i._onframe,i),ev(t,i),nv(t,i),At(i),i}function yv(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function mv(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===Nl&&t.states.emphasis?e.push("emphasis"):t.hoverState===Rl&&t.states.blur&&e.push("blur"),t.useStates(e)}function vv(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(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)o=Math.max(t(s[l],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&&(r=e.textGuideLineConfig,a.z=n,a.zlevel=i,isFinite(o))&&(a.z2=o+(r&&r.showAbove?1:-1));return o}(t,n,i,-1/0),!0}))}function xv(t,e){e.eachRendered(function(t){var e,n;mc(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 _v(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&&(mc(t)||(t instanceof q&&((i=Ll(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&&mv(t)))})}Jm.on=H0("on"),Jm.off=H0("off"),Jm.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)};var bv=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var wv={},Sv={},Mv=[],Iv=[],Tv=[],Cv={},Dv={},Av={},kv={},Lv=+new Date,Pv=+new Date,Ov="_echarts_instance_";function Rv(t){kv[t]=!1}qm=Rv;function Nv(t){return Av[e=Ov,(t=t).getAttribute?t.getAttribute(e):t[e]];var e}function Ev(t,e){Cv[t]=e}function zv(t){F(Iv,t)<0&&Iv.push(t)}function Vv(t,e){Zv(Mv,t,e,2e3)}function Bv(t){Gv("afterinit",t)}function Fv(t){Gv("afterupdate",t)}function Gv(t,e){E0.on(t,e)}function Wv(t,e,n){D(e)&&(n=e,e="");var i=O(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,Sv[e]||(Tt(G0.test(i)&&G0.test(e)),wv[i]||(wv[i]={action:n,actionInfo:t}),Sv[e]=i)}function Hv(t,e){wg.register(t,e)}function Yv(t,e){Zv(Tv,t,e,1e3,"layout")}function Xv(t,e){Zv(Tv,t,e,3e3,"visual")}var Uv=[];function Zv(t,e,n,i,o){(D(e)||O(e))&&(n=e,e=i),0<=F(Uv,n)||(Uv.push(n),(i=mm.wrapStageHandler(n,o)).__prio=e,i.__raw=n,t.push(i))}function jv(t,e){Dv[t]=e}function qv(t,e,n){var i=z0.registerMap;i&&i(t,e,n)}function Kv(t){var e=(t=S(t)).type,n=(e||Wr(""),e.split(":")),i=(2!==n.length&&Wr(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Jf.set(e,t)}Xv(2e3,Ia),Xv(4500,fp),Xv(4500,Yp),Xv(2e3,xp),Xv(4500,Vm),Xv(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=R0(e,i))}),t=n.getVisual("decal"))&&(n.getVisual("style").decal=R0(t,i))})}),zv(Xg),Vv(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(Ug)}),jv("default",function(i,o){V(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 t=new Z,r=new L({style:{fill:o.maskColor},zlevel:o.zlevel,z:1e4});t.add(r);var a,s=new K({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 L({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:o.zlevel,z:10001});return t.add(l),o.showSpinner&&((a=new Uh({shape:{startAngle:-ym/2,endAngle:-ym/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*ym/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*ym/2}).delay(300).start("circularInOut"),t.add(a)),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&&a.setShape({cx:t,cy:n}),l.setShape({x:t-e,y:n-e,width:2*e,height:2*e}),r.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},t.resize(),t}),Wv({type:Vl,event:Vl,update:Vl},Bt),Wv({type:Bl,event:Bl,update:Bl},Bt),Wv({type:Fl,event:Fl,update:Fl},Bt),Wv({type:Gl,event:Gl,update:Gl},Bt),Wv({type:Wl,event:Wl,update:Wl},Bt),Ev("light",bp),Ev("dark",mp);function $v(t){return null==t?0:t.length||1}function Jv(t){return t}t1.prototype.add=function(t){return this._add=t,this},t1.prototype.update=function(t){return this._update=t,this},t1.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t1.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t1.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t1.prototype.remove=function(t){return this._remove=t,this},t1.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t1.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=$v(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)},t1.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=$v(l),c=$v(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)},t1.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],r=$v(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}},t1.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=$v(a=e[l]))?(e[l]=r,o&&n.push(l)):1===s?e[l]=[a,r]:a.push(r))}};var Qv=t1;function t1(t,e,n,i,o,r){this._old=t,this._new=e,this._oldKeyGetter=n||Jv,this._newKeyGetter=i||Jv,this.context=o,this._diffModeMultiple="multiple"===r}n1.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},n1.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var e1=n1;function n1(t,e){this._encode=t,this._schema=e}function i1(r,t){var e={},a=e.encode={},s=N(),l=[],u=[],h={},i=(et(r.dimensions,function(t){var e,n,i=r.getDimensionInfo(t),o=i.coordDim;o&&(e=i.coordDimIndex,o1(a,o)[e]=t,i.isExtraCoord||(s.set(o,1),"ordinal"!==(n=i.type)&&"time"!==n&&(l[0]=t),o1(h,o)[e]=r.getDimensionIndex(i.name)),i.defaultTooltip)&&u.push(t),Gd.each(function(t,e){var n=o1(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 e1(h,t),e}function o1(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function r1(t){return"category"===t?"ordinal":"time"===t?"time":"float"}var a1=function(t){this.otherDims={},null!=t&&H(this,t)},s1=i(),l1={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},u1=(h1.prototype.isDimensionOmitted=function(){return this._dimOmitted},h1.prototype._updateDimOmitted=function(t){!(this._dimOmitted=t)||this._dimNameMap||(this._dimNameMap=d1(this.source))},h1.prototype.getSourceDimensionIndex=function(t){return R(this._dimNameMap.get(t),-1)},h1.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},h1.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=nf(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+"$"+(l1[u]||"f"),h&&(i+=h.uid),i+="$"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},h1.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},h1.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},h1);function h1(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function c1(t){return t instanceof u1}function p1(t){for(var e=N(),n=0;n<(t||[]).length;n++){var i=t[n],i=O(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function d1(t){var e=s1(t);return e.dimNameMap||(e.dimNameMap=p1(t.dimensionsDefine))}var g1,f1,y1,m1,v1,x1,_1,b1=O,w1=B,S1="undefined"==typeof Int32Array?Array:Int32Array,M1=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],I1=["_approximateExtent"],T1=(o.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])},o.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},o.prototype._recognizeDimIndex=function(t){if(X(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},o.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},o.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},o.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]}},o.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},o.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},o.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},o.prototype.getStore=function(){return this._store},o.prototype.initData=function(t,e,n){var i,o,r=this;(i=t instanceof uy?t:i)||(o=this.dimensions,t=Kg(t)||ht(t)?new sf(t,o.length):t,i=new uy,o=w1(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=i1(this,this._schema),this.userOutput=this._dimSummary.userOutput},o.prototype.appendData=function(t){t=this._store.appendData(t);this._doInit(t[0],t[1])},o.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&&_1(this,r)},o.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)}},o.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Ud&&!t.fillStorage},o.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===Wd&&!n.pure)for(var r=[],a=t;a<e;a++){var s=n.getItem(a,r);this.hasItemOption||!O(l=s)||l instanceof Array||(this.hasItemOption=!0),s&&(l=s.name,null==i[a]&&null!=l&&(i[a]=Qr(l,null)),s=s.id,null==o[a])&&null!=s&&(o[a]=Qr(s,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)_1(this,a);g1(this)}var l},o.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},o.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},o.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},o.prototype.setCalculationInfo=function(t,e){b1(t)?H(this._calculationInfo,t):this._calculationInfo[t]=e},o.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?y1(this,this._nameDimIdx,t):e)?"":e},o.prototype._getCategory=function(t,e){e=this._store.get(t,e),t=this._store.getOrdinalMeta(t);return t?t.categories[e]:e},o.prototype.getId=function(t){return f1(this,this.getRawIndex(t))},o.prototype.count=function(){return this._store.count()},o.prototype.get=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},o.prototype.getByRawIndex=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},o.prototype.getIndices=function(){return this._store.getIndices()},o.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},o.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},o.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},o.prototype.getValues=function(t,e){var n=this,i=this._store;return W(t)?i.getValues(w1(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},o.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},o.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},o.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},o.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},o.prototype.rawIndexOf=function(t,e){t=(t&&this._invertedIndicesMap[t])[e];return null==t||isNaN(t)?-1:t},o.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},o.prototype.each=function(t,e,n){D(t)&&(n=e,e=t,t=[]);n=n||this,t=w1(m1(t),this._getStoreDimIndex,this);this._store.each(t,n?T(e,n):e)},o.prototype.filterSelf=function(t,e,n){D(t)&&(n=e,e=t,t=[]);n=n||this,t=w1(m1(t),this._getStoreDimIndex,this);return this._store=this._store.filter(t,n?T(e,n):e),this},o.prototype.selectRange=function(n){var i=this,o={};return et(G(n),function(t){var e=i._getStoreDimIndex(t);o[e]=n[t]}),this._store=this._store.selectRange(o),this},o.prototype.mapArray=function(t,e,n){D(t)&&(n=e,e=t,t=[]);var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n=n||this),i},o.prototype.map=function(t,e,n,i){n=n||i||this,i=w1(m1(t),this._getStoreDimIndex,this),t=x1(this);return t._store=this._store.map(i,n?T(e,n):e),t},o.prototype.modify=function(t,e,n,i){n=n||i||this,i=w1(m1(t),this._getStoreDimIndex,this);this._store.modify(i,n?T(e,n):e)},o.prototype.downSample=function(t,e,n,i){var o=x1(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),o},o.prototype.lttbDownSample=function(t,e){var n=x1(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},o.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},o.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new Tp(t,e,e&&e.ecModel)},o.prototype.diff=function(e){var n=this;return new Qv(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return f1(e,t)},function(t){return f1(n,t)})},o.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},o.prototype.setVisual=function(t,e){this._visual=this._visual||{},b1(t)?H(this._visual,t):this._visual[t]=e},o.prototype.getItemVisual=function(t,e){t=this._itemVisuals[t],t=t&&t[e];return null==t?this.getVisual(e):t},o.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},o.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],n=(i=i||(n[t]={}))[e];return null==n&&(W(n=this.getVisual(e))?n=n.slice():b1(n)&&(n=H({},n)),i[e]=n),n},o.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,b1(e)?H(i,e):i[e]=n},o.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},o.prototype.setLayout=function(t,e){b1(t)?H(this._layout,t):this._layout[t]=e},o.prototype.getLayout=function(t){return this._layout[t]},o.prototype.getItemLayout=function(t){return this._itemLayouts[t]},o.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?H(this._itemLayouts[t]||{},e):e},o.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},o.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Dl(n,this.dataType,t,e),this._graphicEls[t]=e},o.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},o.prototype.eachItemGraphicEl=function(n,i){et(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},o.prototype.cloneShallow=function(t){return t=t||new o(this._schema||w1(this.dimensions,this._getDimInfo,this),this.hostModel),v1(t,this),t._store=this._store,t},o.prototype.wrapMethod=function(t,e){var n=this[t];D(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(Mt(arguments)))})},o.internalField=(g1=function(a){var s=a._invertedIndicesMap;et(s,function(t,e){var n=a._dimInfos[e],i=n.ordinalMeta,o=a._store;if(i){t=s[e]=new S1(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}})},y1=function(t,e,n){return Qr(t._getCategory(e,n),null)},f1=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?y1(t,t._idDimIdx,e):n)?"e\0\0"+e:n},m1=function(t){return t=W(t)?t:null!=t?[t]:[]},x1=function(t){var e=new o(t._schema||w1(t.dimensions,t._getDimInfo,t),t.hostModel);return v1(e,t),e},v1=function(e,n){et(M1.concat(n.__wrappedMethods||[]),function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e.__wrappedMethods=n.__wrappedMethods,et(I1,function(t){e[t]=S(n[t])}),e._calculationInfo=H({},n._calculationInfo)},void(_1=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=y1(t,o,e)),null==s&&null!=r&&(i[e]=s=y1(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)})),o);function o(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"];var n=!(this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"]);c1(t)?(o=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,o=t);for(var i,o=o||["x","y"],r={},a=[],s={},l=!1,u={},h=0;h<o.length;h++){var c=o[h],c=Y(c)?new a1({name:c}):c instanceof a1?c:new a1(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),n&&(c.storeDimIndex=h)}this.dimensions=a,this._dimInfos=r,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(i=this._dimIdxToName=N(),et(a,function(t){i.set(r[t].storeDimIndex,t)}))}function C1(t,e){Kg(t)||(t=Jg(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),et(n,function(t){O(t)&&(t=t.dimsDef)&&(i=Math.max(i,t.length))}),i),u=e.canOmitUnusedDimensions&&30<l,h=r===t.dimensionsDefine,c=h?d1(t):p1(r),p=e.encodeDefine,d=N(p=!p&&e.encodeDefaulter?e.encodeDefaulter(t,l):p),g=new oy(l),f=0;f<g.length;f++)g[f]=-1;function y(t){var e,n,i,o=g[t];return o<0?(e=O(e=r[t])?e:{name:e},n=new a1,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),g[t]=s.length,n.storeDimIndex=t,s.push(n),n):s[o]}if(!u)for(f=0;f<l;f++)y(f);d.each(function(t,n){var i,t=Ur(t).slice();1===t.length&&!Y(t[0])&&t[0]<0?d.set(n,!1):(i=d.set(n,[]),et(t,function(t,e){t=Y(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!=Gd.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,a.set(e,!0))}et(o,function(t){Y(t)?(r=t,o={}):(r=(o=t).name,t=o.ordinalMeta,o.ordinalMeta=null,(o=H({},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=Ur(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++)}et(e,function(t,e){t=y(t);h&&null!=o.type&&(t.type=o.type),v(V(t,o),r,e),null==t.name&&n&&(O(e=n[e])||(e={name:e}),t.name=t.displayName=e.name,t.defaultTooltip=e.defaultTooltip),i&&V(t.otherDims,i)})}});var x=e.generateCoord,_=null!=(b=e.generateCoordCount),b=x?b||1:0,w=x||"value";function S(t){null==t.name&&(t.name=t.coordDim)}if(u)et(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,_),I.coordDimIndex=0,(!x||b<=0)&&(I.isExtraCoord=!0),b--),S(I),null!=I.type||eg(t,M)!==Kd.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 A=T[D],k=A.name,L=C.get(k)||0;0<L&&(A.name=k+(L-1)),L++,C.set(k,L)}return new u1({source:t,dimensions:s,fullDimensionCount:l,dimensionOmitted:u})}function D1(t){this.coordSysDims=[],this.axisMap=N(),this.categoryAxisMap=N(),this.coordSysName=t}var A1={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis",sa).models[0],t=t.getReferringComponents("yAxis",sa).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",t),k1(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),k1(t)&&(i.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",sa).models[0];e.coordSysDims=["single"],n.set("single",t),k1(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar",sa).models[0],o=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",t),k1(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),k1(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();et(t.parallelAxisIndex,function(t,e){var t=a.getComponent("parallelAxis",t),n=s[e];o.set(n,t),k1(t)&&(r.set(n,t),null==i.firstCategoryDimIndex)&&(i.firstCategoryDimIndex=e)})}};function k1(t){return"category"===t.get("type")}function L1(t,e,n){var i,o,r,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;c1(e.schema)?(o=e.schema,i=o.dimensions,r=e.store):i=e;var l,u,h,c,p,d,g=!(!t||!t.get("stack"));return et(i,function(t,e){Y(t)&&(i[e]=t={name:t}),g&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))}),!u||a||l||(a=!0),u&&(h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0),p=u.coordDim,n=u.type,d=0,et(i,function(t){t.coordDim===p&&d++}),e={name:h,coordDim:p,coordDimIndex:d,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},t={name:c,coordDim:c,coordDimIndex:d+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1},o?(r&&(e.storeDimIndex=r.ensureCalculationDimension(c,n),t.storeDimIndex=r.ensureCalculationDimension(h,n)),o.appendCalculationDimension(e),o.appendCalculationDimension(t)):(i.push(e),i.push(t))),{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function P1(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function O1(t,e){return P1(t,e)?t.getCalculationInfo("stackResultDimension"):e}function R1(t,e,n){n=n||{};var i,o,r,a,s,l,u=e.getSourceManager(),h=!1,t=(t?(h=!0,i=Jg(t)):h=(i=u.getSource()).sourceFormat===Wd,function(t){var e=t.get("coordinateSystem"),n=new D1(e);if(e=A1[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),c=(l=t,c=(c=e).get("coordinateSystem"),c=wg.get(c),p=(p=l&&l.coordSysDims?B(l.coordSysDims,function(t){var e={name:t},t=l.axisMap.get(t);return t&&(t=t.get("type"),e.type=r1(t)),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=n.useEncodeDefaulter,p=D(p)?p:p?P(Jd,c,e):null,c={coordDimensions:c,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h},p=C1(i,c),d=(c=p.dimensions,o=n.createInvertedIndices,(r=t)&&et(c,function(t,e){var n=t.coordDim,n=r.categoryAxisMap.get(n);n&&(null==a&&(a=e),t.ordinalMeta=n.getOrdinalMeta(),o)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(s=!0)}),s||null==a||(c[a].otherDims.itemName=0),a),n=h?null:u.getSharedDataStore(p),t=L1(e,{schema:p,store:n}),c=new T1(p,e),p=(c.setCalculationInfo(t),null==d||(u=i).sourceFormat!==Wd||W(qr(function(t){for(var e=0;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}E1.prototype.getSetting=function(t){return this._setting[t]},E1.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},E1.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},E1.prototype.getExtent=function(){return this._extent.slice()},E1.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},E1.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},E1.prototype.isBlank=function(){return this._isBlank},E1.prototype.setBlank=function(t){this._isBlank=t};var N1=E1;function E1(t){this._setting=t||{},this._extent=[1/0,-1/0]}wa(N1);var z1=0,V1=(B1.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&B(e,F1);return new B1({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},B1.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},B1.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return Y(t)||i?(i&&!this._deduplication?(e=this.categories.length,this.categories[e]=t):null==(e=(n=this._getOrCreateMap()).get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e):t},B1.prototype._getOrCreateMap=function(){return this._map||(this._map=N(this.categories))},B1);function B1(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++z1}function F1(t){return O(t)&&null!=t.value?t.value:t+""}function G1(t){return"interval"===t.type||"log"===t.type}function W1(t,e,n,i){var o={},r=t[1]-t[0],r=o.interval=Nr(r/e,!0),e=(null!=n&&r<n&&(r=o.interval=n),null!=i&&i<r&&(r=o.interval=i),o.intervalPrecision=Y1(r));return n=o.niceTickExtent=[wr(Math.ceil(t[0]/r)*r,e),wr(Math.floor(t[1]/r)*r,e)],i=t,isFinite(n[0])||(n[0]=i[0]),isFinite(n[1])||(n[1]=i[1]),X1(n,0,i),X1(n,1,i),n[0]>n[1]&&(n[0]=n[1]),o}function H1(t){var e=Math.pow(10,Rr(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,wr(t*e)}function Y1(t){return Mr(t)+2}function X1(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function U1(t,e){return t>=e[0]&&t<=e[1]}function Z1(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function j1(t,e){return t*(e[1]-e[0])+e[0]}u($1,q1=N1),$1.prototype.parse=function(t){return null==t?NaN:Y(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},$1.prototype.contain=function(t){return U1(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},$1.prototype.normalize=function(t){return Z1(t=this._getTickNumber(this.parse(t)),this._extent)},$1.prototype.scale=function(t){return t=Math.round(j1(t,this._extent)),this.getRawOrdinalNumber(t)},$1.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},$1.prototype.getMinorTicks=function(t){},$1.prototype.setSortInfo=function(t){if(null!=t){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}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},$1.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},$1.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},$1.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},$1.prototype.count=function(){return this._extent[1]-this._extent[0]+1},$1.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},$1.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},$1.prototype.getOrdinalMeta=function(){return this._ordinalMeta},$1.prototype.calcNiceTicks=function(){},$1.prototype.calcNiceExtent=function(){},$1.type="ordinal";var q1,K1=$1;function $1(t){var t=q1.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return W(e=e||new V1({}))&&(e=new V1({categories:B(e,function(t){return O(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}N1.registerClass(K1);var J1,Q1=wr,tx=(u(ex,J1=N1),ex.prototype.parse=function(t){return t},ex.prototype.contain=function(t){return U1(t,this._extent)},ex.prototype.normalize=function(t){return Z1(t,this._extent)},ex.prototype.scale=function(t){return j1(t,this._extent)},ex.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},ex.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])},ex.prototype.getInterval=function(){return this._interval},ex.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Y1(t)},ex.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:Q1(i[0]-e,o)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(r.push({value:a}),(a=Q1(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:Q1(s+e,o)}:{value:n[1]})}return r},ex.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=Q1(a.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},ex.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=Mr(t.value)||0:"auto"===e&&(e=this._intervalPrecision),pd(Q1(t.value,e,!0)))},ex.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=W1(i,t,e,n),this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent)},ex.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]=Q1(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=Q1(Math.ceil(e[1]/n)*n))},ex.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},ex.type="interval",ex);function ex(){var t=null!==J1&&J1.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}N1.registerClass(tx);var nx="undefined"!=typeof Float32Array,ix=nx?Float32Array:Array;function ox(t){return W(t)?nx?new Float32Array(t):t:new ix(t)}var rx="__ec_stack_";function ax(t){return t.get("stack")||rx+t.seriesIndex}function sx(t){return t.dim+t.index}function lx(t,e){var n=[];return e.eachSeriesByType(t,function(t){dx(t)&&n.push(t)}),n}function ux(t){var l=function(t){var e,l={},n=(et(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 et(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()),j(t.get("barWidth"),e)),i=j(t.get("barMaxWidth"),e),r=j(t.get("barMinWidth")||(gx(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:sx(n),stackId:ax(t)})}),hx(u)}function hx(t){var a={},d=(et(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 et(a,function(t,n){d[n]={};var e=t.stacks,i=t.bandWidth,o=t.categoryGap,r=(null==o&&(r=G(e).length,o=Math.max(35-4*r,15)+"%"),j(o,i)),a=j(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-r)/(l+(l-1)*a),u=Math.max(u,0);et(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,s-=e+a*e,l--):(e=u,n&&n<e&&(e=Math.min(n,s)),(e=i&&e<i?i:e)!==u&&(t.width=e,s-=e+a*e,l--))}),u=(s-r)/(l+(l-1)*a),u=Math.max(u,0);var h,c=0,p=(et(e,function(t,e){t.width||(t.width=u),c+=(h=t).width*(1+a)}),h&&(c-=h.width*a),-c/2);et(e,function(t,e){d[n][e]=d[n][e]||{bandWidth:i,offset:p,width:t.width},p+=t.width*(1+a)})}),d}function cx(t,e){var t=lx(t,e),o=ux(t);et(t,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),t=ax(t),n=o[sx(n)][t],t=n.offset,i=n.width;e.setLayout({bandWidth:n.bandWidth,offset:t,size:i})})}function px(t){return{seriesType:t,plan:jy(),reset:function(t){var e,_,n,b,w,S,i,o,M,I,T,C,D,A,k,L;if(dx(t))return e=t.getData(),i=(_=t.coordinateSystem).getBaseAxis(),n=_.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=P1(e,i)&&!!e.getCalculationInfo("stackedOnSeries"),I=n.isHorizontal(),T=n.toGlobalCoord(n.dataToCoord("log"===n.type?1:0)),C=gx(t),D=t.get("barMinHeight")||0,A=o&&e.getDimensionIndex(o),k=e.getLayout("size"),L=e.getLayout("offset"),{progress:function(t,e){for(var n,i=t.count,o=C&&ox(3*i),r=C&&S&&ox(3*i),a=C&&ox(i),s=_.master.getRect(),l=I?s.width:s.height,u=e.getStore(),h=0;null!=(n=t.next());){var c,p=u.get(M?A:b,n),d=u.get(w,n),g=T,f=void 0,y=(M&&(f=+p-u.get(b,n)),void 0),m=void 0,v=void 0,x=void 0;I?(c=_.dataToPoint([p,d]),y=g=M?_.dataToPoint([f,d])[0]:g,m=c[1]+L,v=c[0]-g,x=k,Math.abs(v)<D&&(v=(v<0?-1:1)*D)):(c=_.dataToPoint([d,p]),M&&(g=_.dataToPoint([d,f])[1]),y=c[0]+L,m=g,v=k,x=c[1]-g,Math.abs(x)<D&&(x=(x<=0?-1:1)*D)),C?(o[h]=y,o[h+1]=m,o[h+2]=I?v:x,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:x}),h+=3}C&&e.setLayout({largePoints:o,largeDataIndices:a,largeBackgroundPoints:r,valueAxisHorizontal:I})}}}}}function dx(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function gx(t){return t.pipelineContext&&t.pipelineContext.large}u(vx,fx=tx),vx.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Kp(t.value,Xp[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(qp(this._minLevelUnit))]||Xp.second,e,this.getSetting("locale"))},vx.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale"),r=null;if(Y(n))r=n;else if(D(n))r=n(t.value,e,{level:t.level});else{var a=H({},Hp);if(0<t.level)for(var s=0;s<Up.length;++s)a[Up[s]]="{primary|"+a[Up[s]]+"}";var l=n?!1===n.inherit?n:V(n,a):a,u=$p(t.value,i);if(l[u])r=l[u];else if(l.inherit){for(s=Zp.indexOf(u)-1;0<=s;--s)if(l[u]){r=l[u];break}r=r||a.none}W(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 Kp(new Date(t.value),r,i,o)},vx.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=Zp,n=0;function i(t,e,n){var i,o,r=[],a=!e.length;if(!function(t,e,n,i){function o(t){return Jp(c,t,i)===Jp(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=Pr(e),p=Pr(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")}}(qp(t),M[0],M[1],S)){a&&(e=[{value:function(t,e,n){var i=new Date(t);switch(qp(e)){case"year":case"month":i[ad(n)](0);case"day":i[sd(n)](1);case"hour":i[ld(n)](0);case"minute":i[ud(n)](0);case"second":i[hd(n)](0),i[cd(n)](0)}return i.getTime()}(new Date(M[0]),t,S)},{value:M[1]}]);for(var 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/Wp/365)),c=Qp(S),p=S?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":o=w,h=6<(o/=30*Wp)?6:3<o?3:2<o?2:1,c=td(S),p=ad(S);break;case"week":case"half-week":case"day":o=w,h=16<(o/=Wp)?16:7.5<o?7:3.5<o?4:1.5<o?2:1,c=ed(S),p=sd(S);break;case"half-day":case"quarter-day":case"hour":i=w,h=12<(i/=Gp)?12:6<i?6:3.5<i?4:2<i?2:1,c=nd(S),p=ld(S);break;case"minute":h=xx(w,!0),c=id(S),p=ud(S);break;case"second":h=xx(w,!1),c=od(S),p=hd(S);break;case"millisecond":h=Nr(w,!0),c=rd(S),p=cd(S)}b=_=x=v=m=y=f=g=d=void 0;for(var d=h,g=l,f=u,y=c,m=p,v=r,x=new Date(g),_=g,b=x[y]();_<f&&_<=M[1];)v.push({value:_}),x[m](b+=d),_=x.getTime();v.push({value:_,notAdd:!0}),"year"===t&&1<n.length&&0===s&&n.unshift({value:n[0].value-h})}}for(s=0;s<r.length;s++)n.push(r[s])}}for(var o=[],r=[],a=0,s=0,l=0;l<e.length&&n++<1e4;++l){var u=qp(e[l]);if(function(t){return t===qp(t)}(e[l])&&(i(e[l],o[o.length-1]||[],r),u!==(e[l+1]?qp(e[l+1]):null))){if(r.length){s=a,r.sort(function(t,e){return t.value-e.value});for(var h=[],c=0;c<r.length;++c){var p=r[c].value;0!==c&&r[c-1].value===p||(h.push(r[c]),p>=M[0]&&p<=M[1]&&a++)}u=(M[1]-M[0])/w;if(1.5*u<a&&u/1.5<s)break;if(o.push(h),u<a||t===e[l])break}r=[]}}var d=pt(B(o,function(t){return pt(t,function(t){return t.value>=M[0]&&t.value<=M[1]&&!t.notAdd})}),function(t){return 0<t.length}),g=[],f=d.length-1;for(l=0;l<d.length;++l)for(var y=d[l],m=0;m<y.length;++m)g.push({value:y[m].value,level:f-l});g.sort(function(t,e){return t.value-e.value});var v=[];for(l=0;l<g.length;++l)0!==l&&g[l].value===g[l-1].value||v.push(g[l]);return v}(this._minLevelUnit,this._approxInterval,t,e),(n=n.concat(t)).push({value:e[1],level:0})),n},vx.prototype.calcNiceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=Wp,n[1]+=Wp),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]-Wp),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},vx.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),mx.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}(mx,this._approxInterval,0,i),i-1);this._interval=mx[t][1],this._minLevelUnit=mx[Math.max(t-1,0)][0]},vx.prototype.parse=function(t){return X(t)?t:+Pr(t)},vx.prototype.contain=function(t){return U1(this.parse(t),this._extent)},vx.prototype.normalize=function(t){return Z1(this.parse(t),this._extent)},vx.prototype.scale=function(t){return j1(t,this._extent)},vx.type="time";var fx,yx=vx,mx=[["second",Bp],["minute",Fp],["hour",Gp],["quarter-day",6*Gp],["half-day",12*Gp],["day",1.2*Wp],["half-week",3.5*Wp],["week",7*Wp],["month",31*Wp],["quarter",95*Wp],["half-year",xa/2],["year",xa]];function vx(t){t=fx.call(this,t)||this;return t.type="time",t}function xx(t,e){return 30<(t/=e?Fp:Bp)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}N1.registerClass(yx);var _x,bx=N1.prototype,Sx=tx.prototype,Mx=wr,Ix=Math.floor,Tx=Math.ceil,Cx=Math.pow,Dx=Math.log,Ax=(u(kx,_x=N1),kx.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return B(Sx.getTicks.call(this,t),function(t){var t=t.value,e=wr(Cx(this.base,t)),e=t===n[0]&&this._fixMin?Lx(e,i[0]):e;return{value:t===n[1]&&this._fixMax?Lx(e,i[1]):e}},this)},kx.prototype.setExtent=function(t,e){var n=Dx(this.base);t=Dx(Math.max(0,t))/n,e=Dx(Math.max(0,e))/n,Sx.setExtent.call(this,t,e)},kx.prototype.getExtent=function(){var t=this.base,e=bx.getExtent.call(this),t=(e[0]=Cx(t,e[0]),e[1]=Cx(t,e[1]),this._originalScale.getExtent());return this._fixMin&&(e[0]=Lx(e[0],t[0])),this._fixMax&&(e[1]=Lx(e[1],t[1])),e},kx.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=Dx(t[0])/Dx(e),t[1]=Dx(t[1])/Dx(e),bx.unionExtent.call(this,t)},kx.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},kx.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=Or(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[wr(Tx(e[0]/i)*i),wr(Ix(e[1]/i)*i)];this._interval=i,this._niceExtent=t}},kx.prototype.calcNiceExtent=function(t){Sx.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},kx.prototype.parse=function(t){return t},kx.prototype.contain=function(t){return U1(t=Dx(t)/Dx(this.base),this._extent)},kx.prototype.normalize=function(t){return Z1(t=Dx(t)/Dx(this.base),this._extent)},kx.prototype.scale=function(t){return t=j1(t,this._extent),Cx(this.base,t)},kx.type="log",kx),Zm=Ax.prototype;function kx(){var t=null!==_x&&_x.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new tx,t._interval=0,t}function Lx(t,e){return Mx(t,Mr(e))}Zm.getMinorTicks=Sx.getMinorTicks,Zm.getLabel=Sx.getLabel,N1.registerClass(Ax);Ox.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=(D(o)?this._modelMinNum=zx(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=zx(t,o)),this._modelMaxRaw=e.get("max",!0));D(o)?this._modelMaxNum=zx(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=zx(t,o)),i?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=W(n=e.get("boundaryGap"))?n:[n||0,n||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Jo(t[0],1),Jo(t[1],1)]},Ox.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),bt(a)||bt(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}},Ox.prototype.modifyDataMinMax=function(t,e){this[Nx[t]]=e},Ox.prototype.setDeterminedMinMax=function(t,e){this[Rx[t]]=e},Ox.prototype.freeze=function(){this.frozen=!0};var Px=Ox;function Ox(t,e,n){this._prepareParams(t,e,n)}var Rx={min:"_determinedMin",max:"_determinedMax"},Nx={min:"_dataMin",max:"_dataMax"};function Ex(t,e,n){return t.rawExtentInfo||(e=new Px(t,e,n),t.rawExtentInfo=e)}function zx(t,e){return null==e?null:bt(e)?NaN:t.parse(e)}function Vx(t,e){var n,i,o,r,a,s,l=t.type,u=Ex(t,e,t.getExtent()).calculate(),t=(t.setBlank(u.isBlank),u.min),h=u.max,c=e.ecModel;return c&&"time"===l&&(l=lx("bar",c),n=!1,et(l,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(c=ux(l),l=t,i=h,c=c,s=(s=(o=e).axis.getExtent())[1]-s[0],t=(c=void 0===(c=function(t,e,n){if(t&&e)return null!=(t=t[sx(e)])&&null!=n?t[ax(n)]:t}(c,o.axis))?{min:l,max:i}:(r=1/0,et(c,function(t){r=Math.min(t.offset,r)}),a=-1/0,et(c,function(t){a=Math.max(t.offset+t.width,a)}),r=Math.abs(r),a=Math.abs(a),{min:l-=r/(o=r+a)*(s=(c=i-l)/(1-(r+a)/s)-c),max:i+=a/o*s})).min,h=c.max),{extent:[t,h],fixMin:u.minFixed,fixMax:u.maxFixed}}function Bx(t,e){var n=Vx(t,e),i=n.extent,o=e.get("splitNumber"),r=(t instanceof Ax&&(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 Fx(t,e){if(e=e||t.get("type"))switch(e){case"category":return new K1({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new yx({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(N1.getClass(e)||tx)}}function Gx(n){var i,o,e,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)}):Y(t)?(e=t,function(t){t=n.scale.getLabel(t);return e.replace("{value}",null!=t?t:"")}):D(t)?(i=t,function(t,e){return null!=r&&(e=t.value-r),i(Wx(n,t),e,null!=t.level?{level:t.level}:null)}):function(t){return n.scale.getLabel(t)}}function Wx(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Hx(t){var e,n,i,o=t.model,r=t.scale;if(o.get(["axisLabel","show"])&&!r.isBlank()){var a,s,l=r.getExtent(),u=r instanceof K1?r.count():(a=r.getTicks()).length,h=t.getLabelModel(),c=Gx(t),p=1;40<u&&(p=Math.ceil(u/40));for(var d=0;d<u;d+=p){var g=c(a?a[d]:{value:l[0]+d},d),f=(g=h.getTextRect(g),e=h.get("rotate")||0,n=i=f=n=void 0,e=e*Math.PI/180,n=g.width,f=g.height,i=n*Math.abs(Math.cos(e))+Math.abs(f*Math.sin(e)),n=n*Math.abs(Math.sin(e))+Math.abs(f*Math.cos(e)),new z(g.x,g.y,i,n));s?s.union(f):s=f}return s}}function Yx(t){t=t.get("interval");return null==t?"auto":t}function Xx(t){return"category"===t.type&&0===Yx(t.getLabelModel())}function Ux(e,t){var n={};return et(e.mapDimensionsAll(t),function(t){n[O1(e,t)]=!0}),G(n)}jx.prototype.getNeedCrossZero=function(){return!this.option.scale},jx.prototype.getCoordSysModel=function(){};var Zx=jx;function jx(){}var $m=Object.freeze({__proto__:null,createDimensions:function(t,e){return C1(t,e).dimensions},createList:function(t){return R1(null,t)},createScale:function(t,e){var n=e;return(e=Fx(n=e instanceof Tp?n:new Tp(e))).setExtent(t[0],t[1]),Bx(e,n),e},createSymbol:i0,createTextStyle:function(t,e){return np(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:P1,enableDataStack:L1,getStackedDimension:O1},enableHoverEmphasis:xu,getECData:$,getLayoutRect:Cd,mixinAxisModelCommonMethods:function(t){ut(t,Zx)}}),qx=[],Kx={registerPreprocessor:zv,registerProcessor:Vv,registerPostInit:Bv,registerPostUpdate:Fv,registerUpdateLifecycle:Gv,registerAction:Wv,registerCoordinateSystem:Hv,registerLayout:Yv,registerVisual:Xv,registerTransform:Kv,registerLoading:jv,registerMap:qv,registerImpl:function(t,e){z0[t]=e},PRIORITY:Km,ComponentModel:g,ComponentView:Uy,SeriesModel:zy,ChartView:$y,registerComponentModel:function(t){g.registerClass(t)},registerComponentView:function(t){Uy.registerClass(t)},registerSeriesModel:function(t){zy.registerClass(t)},registerChartView:function(t){$y.registerClass(t)},registerSubTypeDefaulter:function(t,e){g.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){vr(t,e)}};function r(t){W(t)?et(t,function(t){r(t)}):0<=F(qx,t)||(qx.push(t),(t=D(t)?{install:t}:t).install(Kx))}var $x=1e-8;function Jx(t,e){return Math.abs(t-e)<$x}function Qx(t,e,n){var i=0,o=t[0];if(!o)return!1;for(var r=1;r<t.length;r++){var a=t[r];i+=Ns(o[0],o[1],a[0],a[1],e,n),o=a}var s=t[0];return Jx(o[0],s[0])&&Jx(o[1],s[1])||(i+=Ns(o[0],o[1],s[0],s[1],e,n)),0!==i}var t_=[];function e_(t,e){for(var n=0;n<t.length;n++)oe(t[n],t[n],e)}function n_(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])&&(re(e,e,r),ae(n,n,r))}}i_.prototype.setCenter=function(t){this._center=t},i_.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())};Jm=i_;function i_(t){this.name=t}function o_(t,e){this.type="polygon",this.exterior=t,this.interiors=e}function r_(t){this.type="linestring",this.points=t}u(l_,a_=Jm),l_.prototype.calcCenter=function(){for(var t,e,n=this.geometries,i=0,o=0;o<n.length;o++){var r=n[o],a=r.exterior,a=a&&a.length;i<a&&(t=r,i=a)}if(t){for(var s=t.exterior,l=0,u=0,h=0,c=s.length,p=s[c-1][0],d=s[c-1][1],g=0;g<c;g++){var f=s[g][0],y=s[g][1],m=p*y-f*d;l+=m,u+=(p+f)*m,h+=(d+y)*m,p=f,d=y}return l?[u/l/3,h/l/3,l]:[s[0][0]||0,s[0][1]||0]}return[(e=this.getBoundingRect()).x+e.width/2,e.y+e.height/2]},l_.prototype.getBoundingRect=function(e){var n,i,t=this._rect;return t&&!e||(n=[1/0,1/0],i=[-1/0,-1/0],et(this.geometries,function(t){"polygon"===t.type?n_(t.exterior,n,i,e):et(t.points,function(t){n_(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},l_.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(Qx(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(Qx(s[l],t[0],t[1]))continue t;return!0}}}return!1},l_.prototype.transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=o.width/o.height;n?i=i||n/r:n=r*i;for(var r=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?(e_(u.exterior,a),et(u.interiors,function(t){e_(t,a)})):et(u.points,function(t){e_(t,a)})}(o=this._rect).copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},l_.prototype.cloneShallow=function(t){t=new l_(t=null==t?this.name:t,this.geometries,this._center);return t._rect=this._rect,t.transformTo=null,t};var a_,s_=l_;function l_(t,e,n){t=a_.call(this,t)||this;return t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}u(c_,u_=Jm),c_.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=Ve(t_),i=t;i&&!i.isGeoSVGGraphicRoot;)Fe(n,i.getLocalTransform(),n),i=i.parent;return Ye(n,n),oe(e,e,n),e};var u_,h_=c_;function c_(t,e){t=u_.call(this,t)||this;return t.type="geoSVG",t._elOnlyForCalculate=e,t}function p_(t,e,n){for(var i=0;i<t.length;i++)t[i]=d_(t[i],e[i],n)}function d_(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),o=s+=o,r=l+=r;i.push([s/n,l/n])}return i}function g_(t,r){return B(pt((t=(e=t).UTF8Encoding?(null==(o=(n=e).UTF8Scale)&&(o=1024),et(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=d_(i,n,o);break;case"Polygon":case"MultiLineString":p_(i,n,o);break;case"MultiPolygon":et(i,function(t,e){return p_(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 o_(o[0],o.slice(1)));break;case"MultiPolygon":et(n.coordinates,function(t){t[0]&&i.push(new o_(t[0],t.slice(1)))});break;case"LineString":i.push(new r_([n.coordinates]));break;case"MultiLineString":i.push(new r_(n.coordinates))}t=new s_(e[r||"name"],i,e.cp);return t.properties=e,t});var e,n,o}var Ia=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:Dr,asc:Sr,getPercentWithPrecision:function(t,e,n){return t[e]&&Cr(t,n)[e]||0},getPixelPrecision:Tr,getPrecision:Mr,getPrecisionSafe:Ir,isNumeric:Br,isRadianAroundZero:kr,linearMap:br,nice:Nr,numericToNumber:Vr,parseDate:Pr,quantile:Er,quantity:Or,quantityExponent:Rr,reformIntervals:zr,remRadian:Ar,round:wr}),fp=Object.freeze({__proto__:null,format:Kp,parse:Pr}),Yp=Object.freeze({__proto__:null,Arc:Uh,BezierCurve:Wh,BoundingRect:z,Circle:$u,CompoundPath:qh,Ellipse:eh,Group:Z,Image:nl,IncrementalDisplayable:e,Line:Eh,LinearGradient:Qh,Polygon:Ch,Polyline:Lh,RadialGradient:nc,Rect:L,Ring:wh,Sector:vh,Text:K,clipPointsByRect:Wc,clipRectByRect:Hc,createIcon:Yc,extendPath:Cc,extendShape:Ic,getShapeClass:Ac,getTransform:zc,initProps:yc,makeImage:Lc,makePath:kc,mergePath:Oc,registerShape:Dc,resizePath:Rc,updateProps:C}),xp=Object.freeze({__proto__:null,addCommas:pd,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:we,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(e=Pr(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.replace("MM",jp(o,2)).replace("M",o).replace("yyyy",i).replace("yy",jp(i%100+"",2)).replace("dd",jp(r,2)).replace("d",r).replace("hh",jp(a,2)).replace("h",a).replace("mm",jp(s,2)).replace("m",s).replace("ss",jp(l,2)).replace("s",l).replace("SSS",jp(e,3))},formatTpl:vd,getTextRect:function(t,e,n,i,o,r,a,s){return new K({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:xd,normalizeCssArray:gd,toCamelCase:dd,truncateText:Pa}),Vm=Object.freeze({__proto__:null,bind:T,clone:S,curry:P,defaults:V,each:et,extend:H,filter:pt,indexOf:F,inherits:lt,isArray:W,isFunction:D,isObject:O,isString:Y,map:B,merge:d,reduce:ct}),f_=i();function y_(t){return"category"===t.type?(o=(e=t).getLabelModel(),r=v_(e,o),!o.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r):(o=(n=t).scale.getTicks(),i=Gx(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 m_(t,e){var n,i,o,r,a,s;return"category"===t.type?(e=e,r=x_(n=t,"ticks"),a=Yx(e),(s=__(r,a))||(e.get("show")&&!n.scale.isBlank()||(i=[]),i=D(a)?S_(n,a,!0):"auto"===a?(s=v_(n,n.getLabelModel()),o=s.labelCategoryInterval,B(s.labels,function(t){return t.tickValue})):w_(n,o=a,!0),b_(r,a,{ticks:i,tickCategoryInterval:o}))):{ticks:B(t.scale.getTicks(),function(t){return t.value})}}function v_(t,e){var n,i=x_(t,"labels"),e=Yx(e);return __(i,e)||b_(i,e,{labels:D(e)?S_(t,e):w_(t,n="auto"===e?null!=(t=f_(i=t).autoInterval)?t:f_(i).autoInterval=i.calculateCategoryInterval():e),labelCategoryInterval:n})}function x_(t,e){return f_(t)[e]||(f_(t)[e]=[])}function __(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function b_(t,e,n){return t.push({key:e,value:n}),n}function w_(t,e,n){var i=Gx(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)),Xx(t)),t=a.get("showMinLabel")||u,a=a.get("showMaxLabel")||u;t&&e!==r[0]&&c(r[0]);for(var h=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 S_(t,i,o){var r=t.scale,a=Gx(t),s=[];return et(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 M_=[0,1],bp=(I_.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},I_.prototype.containData=function(t){return this.scale.contain(t)},I_.prototype.getExtent=function(){return this._extent.slice()},I_.prototype.getPixelPrecision=function(t){return Tr(t||this.scale.getExtent(),this._extent)},I_.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},I_.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&T_(n=n.slice(),i.count()),br(t,M_,n,e)},I_.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&T_(n=n.slice(),i.count()),br(t,n,M_,e));return this.scale.scale(i)},I_.prototype.pointToData=function(t,e){},I_.prototype.getTicksCoords=function(t){var e,n,i,o,r=(t=t||{}).tickModel||this.getTickModel(),a=B(m_(this,r).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),s=this,l=a,r=r.get("alignWithLabel"),t=t.clamp,u=l.length;function h(t,e){return t=wr(t),e=wr(e),o?e<t:t<e}return s.onBand&&!r&&u&&(r=s.getExtent(),1===u?(l[0].coord=r[0],e=l[1]={coord:r[1]}):(n=l[u-1].tickValue-l[0].tickValue,i=(l[u-1].coord-l[0].coord)/n,et(l,function(t){t.coord-=i/2}),n=1+s.scale.getExtent()[1]-l[u-1].tickValue,e={coord:l[u-1].coord+i*n},l.push(e)),o=r[0]>r[1],h(l[0].coord,r[0])&&(t?l[0].coord=r[0]:l.shift()),t&&h(r[0],l[0].coord)&&l.unshift({coord:r[0]}),h(r[1],e.coord)&&(t?e.coord=r[1]:l.pop()),t)&&h(e.coord,r[1])&&l.push({coord:r[1]}),a},I_.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))},I_.prototype.getViewLabels=function(){return y_(this).labels},I_.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},I_.prototype.getTickModel=function(){return this.model.getModel("axisTick")},I_.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},I_.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=Gx(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;var r=1;40<o&&(r=Math.max(1,Math.floor(o/40)));for(var a=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=jo(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=f_(d.model),l=d.getExtent(),d=n.lastAutoInterval,g=n.lastTickCount;return null!=d&&null!=g&&Math.abs(d-s)<=1&&Math.abs(g-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},I_);function I_(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function T_(t,e){e=(t[1]-t[0])/e/2;t[0]+=e,t[1]-=e}var C_=2*Math.PI,D_=Ds.CMD,A_=["top","right","bottom","left"];function k_(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 L_(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 P_=[];function O_(t,e,n){for(var i,o,r,a,s,l,u,h,c,p=0,d=0,g=0,f=0,y=1/0,m=e.data,v=t.x,x=t.y,_=0;_<m.length;){var b=m[_++],w=(1===_&&(g=p=m[_],f=d=m[_+1]),y);switch(b){case D_.M:p=g=m[_++],d=f=m[_++];break;case D_.L:w=k_(p,d,m[_],m[_+1],v,x,P_,!0),p=m[_++],d=m[_++];break;case D_.C:w=qn(p,d,m[_++],m[_++],m[_++],m[_++],m[_],m[_+1],v,x,P_),p=m[_++],d=m[_++];break;case D_.Q:w=ti(p,d,m[_++],m[_++],m[_],m[_+1],v,x,P_),p=m[_++],d=m[_++];break;case D_.A:var S=m[_++],M=m[_++],I=m[_++],T=m[_++],C=m[_++],D=m[_++],A=(_+=1,!!(1-m[_++])),k=Math.cos(C)*I+S,L=Math.sin(C)*T+M;_<=1&&(g=k,f=L),L=(k=C)+D,A=A,a=(v-(i=S))*(r=T)/I+S,s=x,l=P_,c=h=u=void 0,a-=i,s-=o=M,u=Math.sqrt(a*a+s*s),h=(a/=u)*r+i,c=(s/=u)*r+o,w=Math.abs(k-L)%C_<1e-4||((L=A?(A=k,k=Os(L),Os(A)):(k=Os(k),Os(L)))<k&&(L+=C_),(A=Math.atan2(s,a))<0&&(A+=C_),k<=A&&A<=L)||k<=A+C_&&A+C_<=L?(l[0]=h,l[1]=c,u-r):(c=((A=r*Math.cos(k)+i)-a)*(A-a)+((h=r*Math.sin(k)+o)-s)*(h-s))<(i=((u=r*Math.cos(L)+i)-a)*(u-a)+((k=r*Math.sin(L)+o)-s)*(k-s))?(l[0]=A,l[1]=h,Math.sqrt(c)):(l[0]=u,l[1]=k,Math.sqrt(i)),p=Math.cos(C+D)*I+S,d=Math.sin(C+D)*T+M;break;case D_.R:w=L_(g=p=m[_++],f=d=m[_++],m[_++],m[_++],v,x,P_);break;case D_.Z:w=k_(p,d,g,f,v,x,P_,!0),p=g,d=f}w<y&&(y=w,n.set(P_[0],P_[1]))}return y}var R_=new E,N_=new E,E_=new E,z_=new E,V_=new E;function B_(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||A_,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=o.anchor,h=t.getComputedTransform(),c=h&&Ye([],h),p=e.get("length2")||0;u&&E_.copy(u);for(var d=0;d<a.length;d++){_=x=v=m=y=f=g=void 0;var g=a[d],f=0,y=s,m=R_,v=z_,x=y.width,_=y.height;switch(g){case"top":m.set(y.x+x/2,y.y-f),v.set(0,-1);break;case"bottom":m.set(y.x+x/2,y.y+_+f),v.set(0,1);break;case"left":m.set(y.x-f,y.y+_/2),v.set(-1,0);break;case"right":m.set(y.x+x+f,y.y+_/2),v.set(1,0)}E.scaleAndAdd(N_,R_,z_,p),N_.transform(c);g=t.getBoundingRect(),g=u?u.distance(N_):t instanceof q?O_(N_,t.path,E_):(w=E_,b=L_((b=g).x,g.y,g.width,g.height,N_.x,N_.y,P_),w.set(P_[0],P_[1]),b);g<l&&(l=g,N_.transform(h),E_.transform(h),E_.toArray(r[0]),N_.toArray(r[1]),R_.toArray(r[2]))}W_(r,e.get("minTurnAngle")),n.setShape({points:r})}}var b,w}var F_=[],G_=new E;function W_(t,e){var n,i;e<=180&&0<e&&(e=e/180*Math.PI,R_.fromArray(t[0]),N_.fromArray(t[1]),E_.fromArray(t[2]),E.sub(z_,R_,N_),E.sub(V_,E_,N_),i=z_.len(),n=V_.len(),i<.001||n<.001||(z_.scale(1/i),V_.scale(1/n),i=z_.dot(V_),Math.cos(e)<i&&(n=k_(N_.x,N_.y,E_.x,E_.y,R_.x,R_.y,F_,!1),G_.fromArray(F_),G_.scaleAndAdd(V_,n/Math.tan(Math.PI-e)),i=E_.x!==N_.x?(G_.x-N_.x)/(E_.x-N_.x):(G_.y-N_.y)/(E_.y-N_.y),isNaN(i)||(i<0?E.copy(G_,N_):1<i&&E.copy(G_,E_),G_.toArray(t[1])))))}function H_(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 Y_(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=te(i[0],i[1]),o=te(i[1],i[2]);e&&o?(n=Math.min(e,o)*n,e=ie([],i[1],i[0],n/e),n=ie([],i[1],i[2],n/o),o=ie([],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 X_(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<zl.length;l++){var u,h=zl[l],c=e[h],p="normal"===h;c&&(u=c.get("show"),(p?s:R(o.states[h]&&o.states[h].ignore,s))||!R(u,a)?(u=p?i:i&&i.states[h])&&(u.ignore=!0):(i||(i=new Lh,t.setTextGuideLine(i),p||!s&&a||H_(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),H_(i,!1,h,c)))}i&&(V(i.style,n),i.style.fill=null,n=r.get("showAbove"),(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=n||!1,i.buildPath=Y_)}else i&&t.removeTextGuideLine()}function U_(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<El.length;i++){var o=El[i];n[o]=t.getModel([o,e])}return n}function Z_(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 lc(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 j_(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,o=0,r=!1,a=[],c=0,p=0;p<h;p++){var d=s[p],g=d.rect,d=((i=g[l]-o)<0&&(g[l]-=i,d.label[l]-=i,r=!0),Math.max(-i,0));a.push(d),c+=d,o=g[l]+g[u]}0<c&&n&&b(-c/h,0,h);var f,y,m=s[0],v=s[h-1];return x(),f<0&&w(-f,.8),y<0&&w(y,.8),x(),_(f,y,1),_(y,f,-1),x(),f<0&&S(-f),y<0&&S(y),r}function x(){f=m.rect[l]-t,y=e-v.rect[l]-v.rect[u]}function _(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(b(e*n,0,h),(e=e+t)<0&&w(-e*n,1)):w(-t*n,1))}function b(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 w(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++)b(n[o]*a,0,o+1);else for(o=h-1;0<o;o--)b(-n[o-1]*a,o,h)}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(h-1)),i=0;i<h-1;i++)if(0<e?b(n,0,i+1):b(-n,h-i-1,h),(t-=n)<=0)return}}function q_(t,e,n,i){return j_(t,"y","height",e,n,i)}function K_(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++){var r=t[o],a=r.axisAligned,s=r.localRect,l=r.transform,u=r.label,h=r.labelLine;n.copy(r.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var c=r.obb,p=!1,d=0;d<e.length;d++){var g=e[d];if(n.intersect(g.rect)){if(a&&g.axisAligned){p=!0;break}if(g.obb||(g.obb=new lc(g.localRect,g.transform)),(c=c||new lc(s,l)).intersect(g.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 $_(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 J_=["align","verticalAlign","width","height","fontSize"],Q_=new Go,tb=i(),eb=i();function nb(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null!=e[o]&&(t[o]=e[o])}}var ib=["x","y","rotation"],ob=(rb.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},rb.prototype._addLabel=function(t,e,n,i,o){var r=i.style,a=i.__hostTarget.textConfig||{},s=i.getComputedTransform(),l=i.getBoundingRect().plain();z.applyTransform(l,l,s),s?Q_.setLocalTransform(s):(Q_.x=Q_.y=Q_.rotation=Q_.originX=Q_.originY=0,Q_.scaleX=Q_.scaleY=1),Q_.rotation=Os(Q_.rotation);var u,s=i.__hostTarget,h=(s&&(u=s.getBoundingRect().plain(),h=s.getComputedTransform(),z.applyTransform(u,u,h)),u&&s.getTextGuideLine());this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOption:o,computedLayoutOption:null,rect:l,hostRect:u,priority:u?u.width*u.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:Q_.x,y:Q_.y,scaleX:Q_.scaleX,scaleY:Q_.scaleY,rotation:Q_.rotation,style:{x:r.x,y:r.y,align:r.align,verticalAlign:r.verticalAlign,width:r.width,height:r.height,fontSize:r.fontSize},cursor:i.cursor,attachedPos:a.position,attachedRot:a.rotation}})},rb.prototype.addLabelsOfSeries=function(t){var n=this,i=(this._chartViewList.push(t),t.__model),o=i.get("labelLayout");(D(o)||G(o).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var e=t.getTextContent(),t=$(t);e&&!e.disableLabelLayout&&n._addLabel(t.dataIndex,t.dataType,i,e,o)})},rb.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=(D(o.layoutOption)?o.layoutOption($_(o,a)):o.layoutOption)||{},u=(o.computedLayoutOption=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=j(l.x,e),r.setStyle("x",0),h=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=l.y?(r.y=j(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),tb(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<J_.length;p++){var d=J_[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(){B_(t,e)}}(a,c.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},rb.prototype.layout=function(t){var e,n=t.getWidth(),t=t.getHeight(),i=Z_(this._labelList),o=pt(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),r=pt(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});j_(o,"x","width",0,n,e),q_(r,0,t),K_(pt(i,function(t){return t.layoutOption.hideOverlap}))},rb.prototype.processLabelsOverall=function(){var a=this;et(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?tb(n).needsUpdateLabelLine:e)&&a._updateLabelLine(t,i),r&&a._animateLabels(t,i)})})},rb.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=$(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"),X_(t,U_(e),i),B_(t,o))},rb.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||mc(t))||(o=(r=tb(s)).oldLayout,n=(i=$(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},i=e.getData(i.dataType),o?(s.attr(o),(t=t.prevStates)&&(0<=F(t,"select")&&s.attr(r.oldLayoutSelect),0<=F(t,"emphasis"))&&s.attr(r.oldLayoutEmphasis),C(s,a,e,n)):(s.attr(a),up(s).valueAnimation||(t=R(s.style.opacity,1),s.style.opacity=0,yc(s,{style:{opacity:t}},e,n))),r.oldLayout=a,s.states.select&&(nb(t=r.oldLayoutSelect={},a,ib),nb(t,s.states.select,ib)),s.states.emphasis&&(nb(t=r.oldLayoutEmphasis={},a,ib),nb(t,s.states.emphasis,ib)),cp(s,n,i,e,e)),!l||l.ignore||l.invisible||(o=(r=eb(l)).oldLayout,a={points:l.shape.points},o?(l.attr({shape:o}),C(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,yc(l,{style:{strokePercent:1}},e)),r.oldLayout=a)},rb);function rb(){this._labelList=[],this._chartViewList=[]}var ab=i();function sb(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){(ab(e).labelManager||(ab(e).labelManager=new ob)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=ab(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function lb(t,e,n){var i=Q.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}r(sb);u(cb,ub=ce),cb.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},cb.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},cb.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},cb.prototype.setUnpainted=function(){this.__firstTimePaint=!0},cb.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=lb("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},cb.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o,l=[],u=this.maxRepaintRectCount,h=!1,c=new z(0,0,0,0);function r(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 a,s=this.__startIndex;s<this.__endIndex;++s)(p=t[s])&&(g=p.shouldBePainted(n,i,!0,!0),(d=p.__isRendered&&(p.__dirty&Mn||!g)?p.getPrevPaintRect():null)&&r(d),a=g&&(p.__dirty&Mn||!p.__isRendered)?p.getPaintRect():null)&&r(a);for(s=this.__prevStartIndex;s<this.__prevEndIndex;++s){var p,d,g=(p=e[s]).shouldBePainted(n,i,!0,!0);!p||g&&p.__zr||!p.__isRendered||(d=p.getPrevPaintRect())&&r(d)}do{for(o=!1,s=0;s<l.length;)if(l[s].isZero())l.splice(s,1);else{for(var f=s+1;f<l.length;)l[s].intersect(l[f])?(o=!0,l[s].union(l[f]),l.splice(f,1)):f++;s++}}while(o);return this._paintRects=l},cb.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},cb.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)},cb.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,vt(r)?(o=(r.global||r.__width===n&&r.__height===i)&&r.__canvasGradient||s0(a,r,{x:0,y:0,width:n,height:i}),r.__canvasGradient=o,r.__width=n,r.__height=i):xt(r)&&(r.scaleX=r.scaleX||u,r.scaleY=r.scaleY||u,o=m0(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&&et(e,function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)})};var ub,hb=cb;function cb(t,e,n){var i,o=ub.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||Po,"string"==typeof t?i=lb(t,e,n):O(t)&&(t=(i=t).id),o.id=t,(o.dom=i).style);return t&&(Vt(i),i.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),o.painter=e,o.dpr=n,o}var pb=314159;gb.prototype.getType=function(){return"canvas"},gb.prototype.isSingleCanvas=function(){return this._singleCanvas},gb.prototype.getViewportRoot=function(){return this._domRoot},gb.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},gb.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},gb.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},gb.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(),k0(i,a,o,r===e-1))}i&&i.restore()}},gb.prototype.getHoverLayer=function(){return this.getLayer(1e5)},gb.prototype.paintOne=function(t,e){A0(t,e)},gb.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,Ln(function(){a._paintList(t,e,n,i)})))},gb.prototype._compositeManually=function(){var e=this.getLayer(pb).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)})},gb.prototype._doPaintList=function(d,g,f){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||f)&&m.push(e)}for(var x=!0,_=!1,b=this,n=0;n<m.length;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&&(_=!0),y._doPaintEl(n,o,v,t,e,i===o.__endIndex-1),l&&15<Date.now()-u)break}e.prevElClipPaths&&r.restore()}var i,n,o=m[t],r=o.ctx,a=v&&o.createRepaintRects(d,g,b._width,b._height),s=f?o.__startIndex:o.__drawIndex,l=!f&&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&&!f)||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&&(x=!1)}(n);return w.wxa&&et(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:x,needsRefreshHover:_}},gb.prototype._doPaintEl=function(t,e,n,i,o,r){e=e.ctx;n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(k0(e,t,o,r),t.setPrevPaintRect(n))):k0(e,t,o,r)},gb.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=pb);var n=this._layers[t];return n||((n=new hb("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},gb.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=this}},gb.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)}},gb.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)}},gb.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)}},gb.prototype.getLayers=function(){return this._layers},gb.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__||rt("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&Mn&&!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)})},gb.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},gb.prototype._clearLayer=function(t){t.clear()},gb.prototype.setBackgroundColor=function(t){this._backgroundColor=t,et(this._layers,function(t){t.setUnpainted()})},gb.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)}}},gb.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(F(n,t),1))},gb.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=u0(o,0,i),e=u0(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(pb).resize(t,e)}return this},gb.prototype.clearLayer=function(t){t=this._layers[t];t&&t.clear()},gb.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},gb.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[pb].dom;var e=new hb("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];k0(n,u,r,s===l-1)}return e.dom},gb.prototype.getWidth=function(){return this._width},gb.prototype.getHeight=function(){return this._height};var db=gb;function gb(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o,r,a=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase(),e=(this._opts=n=H({},n||{}),this.dpr=n.devicePixelRatio||Po,this._singleCanvas=a,(this.root=t).style&&(Vt(t),t.innerHTML=""),this.storage=e,this._zlevelList),s=(this._prevDisplayList=[],this._layers);a?(o=(a=t).width,r=a.height,null!=n.width&&(o=n.width),null!=n.height&&(r=n.height),this.dpr=n.devicePixelRatio||1,a.width=o*this.dpr,a.height=r*this.dpr,this._width=o,this._height=r,(o=new hb(a,this,this.dpr)).__builtin__=!0,o.initContext(),(s[pb]=o).zlevel=pb,e.push(pb),this._domRoot=t):(this._width=u0(t,0,n),this._height=u0(t,1,n),o=this._domRoot=(r=this._width,a=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+r+"px","height:"+a+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(o))}u(mb,fb=g),mb.prototype.init=function(t,e,n){fb.prototype.init.call(this,t,e,n),this._sourceManager=new py(this),gy(this)},mb.prototype.mergeOption=function(t,e){fb.prototype.mergeOption.call(this,t,e),gy(this)},mb.prototype.optionUpdated=function(){this._sourceManager.dirty()},mb.prototype.getSourceManager=function(){return this._sourceManager},mb.type="dataset",mb.defaultOption={seriesLayoutBy:jd};var fb,yb=mb;function mb(){var t=null!==fb&&fb.apply(this,arguments)||this;return t.type="dataset",t}u(_b,vb=Uy),_b.type="dataset";var vb,xb=_b;function _b(){var t=null!==vb&&vb.apply(this,arguments)||this;return t.type="dataset",t}function bb(t){t.registerComponentModel(yb),t.registerComponentView(xb)}r([function(t){t.registerPainter("canvas",db)},bb]),r(sb);var wb={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},nearest:function(t){return t[0]}},Sb=function(t){return Math.round(t.length/2)};function Mb(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,Y(r)?s=wb[r]:D(r)&&(s=r),s)&&t.setData(o.downSample(o.mapDimension(a.dim),1/n,s,Sb))}}}u(Tb,Ib=zy),Tb.prototype.getInitialData=function(t,e){return R1(null,this,{useEncodeDefaulter:!0})},Tb.prototype.getMarkerPosition=function(t,c,e){var p,d,n=this.coordinateSystem;return n&&n.clampData?(p=n.clampData(t),d=n.dataToPoint(p),e?et(n.getAxes(),function(t,e){if("category"===t.type&&null!=c){var n=t.getTicksCoords(),i=p[e],o="x1"===c[e]||"y1"===c[e];if(o&&(i+=1),!(n.length<2))if(2===n.length)d[e]=t.toGlobalCoord(t.getExtent()[o?1:0]);else{for(var r=void 0,a=void 0,s=1,l=0;l<n.length;l++){var u=n[l].coord,h=l===n.length-1?n[l-1].tickValue+s:n[l].tickValue;if(h===i){a=u;break}if(h<i)r=u;else if(null!=r&&i<h){a=(u+r)/2;break}1===l&&(s=h-n[0].tickValue)}null==a&&(a=(r?n[n.length-1]:n[0]).coord),d[e]=t.toGlobalCoord(a)}}}):(e=(t=this.getData()).getLayout("offset"),t=t.getLayout("size"),n=n.getBaseAxis().isHorizontal()?0:1,d[n]+=e+t/2),d):[NaN,NaN]},Tb.type="series.__base_bar__",Tb.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"};var Ib,mp=Tb;function Tb(){var t=null!==Ib&&Ib.apply(this,arguments)||this;return t.type=Tb.type,t}zy.registerClass(mp);u(Ab,Cb=mp),Ab.prototype.getInitialData=function(){return R1(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},Ab.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},Ab.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return t=t<e?e:t},Ab.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},Ab.type="series.bar",Ab.dependencies=["grid","polar"],Ab.defaultOption=kp(mp.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 Cb,Db=Ab;function Ab(){var t=null!==Cb&&Cb.apply(this,arguments)||this;return t.type=Ab.type,t}function kb(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,a=Math.floor(a),l=Math.round(l),new L({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=D(o)?function(t){o(t,h)}:null,yc(h,{shape:{width:l,height:r,x:a,y:s}},n,null,i,u)),h}function Lb(t,e,n){var i=t.getArea(),o=wr(i.r0,1),r=wr(i.r,1),a=new vh({shape:{cx:wr(t.cx,1),cy:wr(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,yc(a,{shape:{endAngle:i.endAngle,r:r}},n)),a}function Pb(t,e,n,i,o){return t?"polar"===t.type?Lb(t,e,n):"cartesian2d"===t.type?kb(t,e,n,i,o):null:null}function Ob(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}u(Eb,Rb=q),Eb.prototype.getDefaultShape=function(){return new Ob},Eb.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),g=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,g*s+i,a,u-2*Math.PI,u-Math.PI,!e),0!==o&&t.arc(n,i,o,u,l,e)};var Rb,Nb=Eb;function Eb(t){t=Rb.call(this,t)||this;return t.type="sausage",t}function zb(t,e){return t.type===e}function Vb(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),o=i.length;if(1===o)return null!=(n=_f(t,e,i[0]))?n+"":null;if(o){for(var r=[],a=0;a<i.length;a++)r.push(_f(t,e,i[a]));return r.join(" ")}}function Bb(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!W(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 Fb(t,e,n){return e*Math.sin(t)*(n?-1:1)}function Gb(t,e,n){return e*Math.cos(t)*(n?1:-1)}function Wb(t,e,n){t=t.get("borderRadius");if(null==t)return n?{cornerRadius:0}:null;W(t)||(t=[t,t,t,t]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:B(t,function(t){return Jo(t,i)})}}var Hb=Math.max,Yb=Math.min;u(qb,Xb=$y),qb.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))},qb.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},qb.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},qb.prototype.eachRendered=function(t){qc(this._progressiveEls||this.group,t)},qb.prototype._updateDrawMode=function(t){t=t.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},qb.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),g=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),f=(g&&this._enableRealtimeSort(g,u,e),a.get("clip",!0)||g),y=(e=u,o=(i=c).getArea&&i.getArea(),!zb(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),x=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=ew[c.type](u,t),n=(n=s,new("polar"===c.type?vh:L)({shape:hw(n,e,c),silent:!0,z2:0}));return n.useStyle(x.getItemStyle()),"cartesian2d"===c.type?n.setShape("r",_):n.setShape("cornerRadius",_),b[t]=n}u.diff(h).add(function(t){var e,n,i=u.getItemModel(t),o=ew[c.type](u,t,i);v&&I(t),u.hasValue(t)&&tw[c.type](o)&&(e=!1,f&&(e=Zb[c.type](y,o)),n=jb[c.type](a,u,t,o,s,d,p.model,!1,m),g&&(n.forceLabelAnimation=!0),iw(n,u,t,i,o,a,s,"polar"===c.type),S?n.attr({shape:o}):g?Kb(g,d,n,o,t,s,!1,!1):yc(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=ew[c.type](u,t,i),r=(v&&(r=void 0,0===w.length?r=I(e):((r=w[e]).useStyle(x.getItemStyle()),"cartesian2d"===c.type?r.setShape("r",_):r.setShape("cornerRadius",_),b[t]=r),n=ew[c.type](u,t),C(r,{shape:hw(s,n,c)},d,t)),h.getItemGraphicEl(e));u.hasValue(t)&&tw[c.type](o)?(n=!1,f&&(n=Zb[c.type](y,o))&&l.remove(r),r?bc(r):r=jb[c.type](a,u,t,o,s,d,p.model,!!r,m),g&&(r.forceLabelAnimation=!0),M?(e=r.getTextContent())&&null!=(e=up(e)).prevValue&&(e.prevValue=e.value):iw(r,u,t,i,o,a,s,"polar"===c.type),S?r.attr({shape:o}):g?Kb(g,d,r,o,t,s,!0,M):C(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&&_c(e,a,t)}).execute();var r=this._backgroundGroup||(this._backgroundGroup=new Z);r.removeAll();for(var T=0;T<b.length;++T)r.add(b[T]);l.add(r),this._backgroundEls=b,this._data=u},qb.prototype._renderLarge=function(t,e,n){this._clear(),lw(t,this.group),this._updateLargeClip(t)},qb.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),lw(e,this.group,this._progressiveEls,!0)},qb.prototype._updateLargeClip=function(t){var t=t.get("clip",!0)&&Pb(t.coordinateSystem,!1,t),e=this.group;t?e.setClipPath(t):e.removeClipPath()},qb.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)))},qb.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})}},qb.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},qb.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},qb.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}))},qb.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})},qb.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},qb.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},qb.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},qb.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){_c(t,e,$(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},qb.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},qb.type="bar";var Xb,Ub=qb,Zb={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=Hb(e.x,t.x),s=Yb(e.x+e.width,o),t=Hb(e.y,t.y),l=Yb(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),Yb(e.r,t.r)),t=Hb(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}},jb={cartesian2d:function(t,e,n,i,o,r,a,s,l){i=new L({shape:H({},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?Nb:vh,u=new l({shape:i,z2:1}),h=(u.name="item",nw(o));return u.calculateTextPosition=(b=h,w=({isRoundCap:l===Nb}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return Qo(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,g=w?Math.abs(l-u)/2:0,f=Math.cos,y=Math.sin,m=a+l*f(c),v=s+l*y(c),x="left",_="top";switch(i){case"startArc":m=a+(u-o)*f(d),v=s+(u-o)*y(d),x="center",_="top";break;case"insideStartArc":m=a+(u+o)*f(d),v=s+(u+o)*y(d),x="center",_="bottom";break;case"startAngle":m=a+h*f(c)+Fb(c,o+g,!1),v=s+h*y(c)+Gb(c,o+g,!1),x="right",_="middle";break;case"insideStartAngle":m=a+h*f(c)+Fb(c,g-o,!1),v=s+h*y(c)+Gb(c,g-o,!1),x="left",_="middle";break;case"middle":m=a+h*f(d),v=s+h*y(d),x="center",_="middle";break;case"endArc":m=a+(l+o)*f(d),v=s+(l+o)*y(d),x="center",_="bottom";break;case"insideEndArc":m=a+(l-o)*f(d),v=s+(l-o)*y(d),x="center",_="top";break;case"endAngle":m=a+h*f(p)+Fb(p,o+g,!0),v=s+h*y(p)+Gb(p,o+g,!0),x="left",_="middle";break;case"insideEndAngle":m=a+h*f(p)+Fb(p,g-o,!0),v=s+h*y(p)+Gb(p,g-o,!0),x="right",_="middle";break;default:return Qo(t,e,n)}return(t=t||{}).x=m,t.y=v,t.align=x,t.verticalAlign=_,t}),r&&(h={},u.shape[l=o?"r":"endAngle"]=o?i.r0:i.startAngle,h[l]=i[l],(s?C:yc)(u,{shape:h},r)),u}};function qb(){var t=Xb.call(this)||this;return t.type=qb.type,t._isFirstFrame=!0,t}function Kb(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?C:yc)(n,{shape:r},e,o,null),(a?C:yc)(n,{shape:l},e?t.baseAxis.model:null,o)}function $b(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return 1}var Jb=["x","y","width","height"],Qb=["cx","cy","r","startAngle","endAngle"],tw={cartesian2d:function(t){return!$b(t,Jb)},polar:function(t){return!$b(t,Qb)}},ew={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 nw(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 iw(t,e,n,i,o,r,a,s){var l=e.getItemVisual(n,"style"),u=(s?r.get("roundCap")||(H(u=t.shape,Wb(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=ep(i),l=(tp(t,h,{labelFetcher:r,labelDataIndex:n,defaultText:Vb(r.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u}),t.getTextContent()),u=(s&&l&&(s=i.get(["label","position"]),t.textConfig.inside="middle"===s||null,function(t,e,n,i){if(X(i))t.setTextConfig({rotation:i});else if(W(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,nw(a),i.get(["label","rotate"]))),hp(l,h,r.getRawValue(n),function(t){return Bb(e,t)}),i.getModel(["emphasis"]));_u(t,u.get("focus"),u.get("blurScope"),u.get("disabled")),Mu(t,i),null!=(s=o).startAngle&&null!=s.endAngle&&s.startAngle===s.endAngle&&(t.style.fill="none",t.style.stroke="none",et(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}function ow(){}u(sw,rw=q),sw.prototype.getDefaultShape=function(){return new ow},sw.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])};var rw,aw=sw;function sw(t){t=rw.call(this,t)||this;return t.type="largeBar",t}function lw(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 aw({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 aw({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")),$(l).seriesIndex=t.seriesIndex,t.get("silent")||(l.on("mousedown",uw),l.on("mousemove",uw)),n&&n.push(l)}var uw=sm(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);$(this).dataIndex=0<=t?t:null},30,!1);function hw(t,e,n){var i,o;return zb(n,"cartesian2d")?(o=e,i=n.getArea(),{x:(t?o:i).x,y:(t?i:o).y,width:(t?o:i).width,height:(t?i:o).height}):(o=e,{cx:(i=n.getArea()).cx,cy:i.cy,r0:(t?i:o).r0,r:(t?i:o).r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI})}r(function(t){t.registerChartView(Ub),t.registerSeriesModel(Db),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,P(cx,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,px("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Mb("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(dw,cw=zy),dw.prototype.getInitialData=function(t){return R1(null,this,{useEncodeDefaulter:!0})},dw.prototype.getLegendIcon=function(t){var e=new Z,n=i0("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=i0(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},dw.type="series.line",dw.dependencies=["grid","polar"],dw.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 cw,pw=dw;function dw(){var t=null!==cw&&cw.apply(this,arguments)||this;return t.type=dw.type,t.hasSymbolVisual=!0,t}u(yw,gw=Z),yw.prototype._createSymbol=function(t,e,n,i,o){this.removeAll();o=i0(t,-1,-1,2,2,null,o);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=mw,this._symbolType=t,this.add(o)},yw.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},yw.prototype.getSymbolType=function(){return this._symbolType},yw.prototype.getSymbolPath=function(){return this.childAt(0)},yw.prototype.highlight=function(){su(this.childAt(0))},yw.prototype.downplay=function(){lu(this.childAt(0))},yw.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},yw.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},yw.prototype.updateData=function(t,e,n,i){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=yw.getSymbolSize(t,e),h=s!==this._symbolType,c=i&&i.disableAnimation;h?(o=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,o)):((a=this.childAt(0)).silent=!1,r={scaleX:u[0]/2,scaleY:u[1]/2},c?a.attr(r):C(a,r,l,e),bc(a)),this._updateCommon(t,e,u,n,i),h&&(a=this.childAt(0),c||(r={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:a.style.opacity}},a.scaleX=a.scaleY=0,a.style.opacity=0,yc(a,r,l,e))),c&&this.childAt(0).stopAnimation("leave")},yw.prototype._updateCommon=function(e,t,n,i,o){var r,a,s,l,u,h,c,p,d=this.childAt(0),g=e.hostModel,f=(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=(f=(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=f.get("focus"),u=f.get("blurScope"),h=f.get("disabled"),c=ep(i),p=f.getShallow("scale"),y=i.getShallow("cursor")),e.getItemVisual(t,"symbolRotate")),i=(d.attr("rotation",(f||0)*Math.PI/180||0),r0(e.getItemVisual(t,"symbolOffset"),n)),f=(i&&(d.x=i[0],d.y=i[1]),y&&d.attr("cursor",y),e.getItemVisual(t,"style")),i=f.fill,y=(d instanceof nl?(y=d.style,d.useStyle(H({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},f))):(d.__isEmptyBrush?d.useStyle(H({},f)):d.useStyle(f),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),y=(tp(d,c,{labelFetcher:g,labelDataIndex:t,defaultText:function(t){return v?e.getName(t):Vb(e,t)},inheritColor:i,defaultOpacity:f.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2,d.ensureState("emphasis")),m=(y.style=r,d.ensureState("select").style=a,d.ensureState("blur").style=s,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),_u(this,l,u,h)},yw.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},yw.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),o=$(this).dataIndex,r=n&&n.animation;this.silent=i.silent=!0,n&&n.fadeLabel?(n=i.getTextContent())&&vc(n,{style:{opacity:0}},e,{dataIndex:o,removeOpt:r,cb:function(){i.removeTextContent()}}):i.removeTextContent(),vc(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:o,cb:t,removeOpt:r})},yw.getSymbolSize=function(t,e){return o0(t.getItemVisual(e,"symbolSize"))};var gw,fw=yw;function yw(t,e,n,i){var o=gw.call(this)||this;return o.updateData(t,e,n,i),o}function mw(t,e){this.parent.drift(t,e)}function vw(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 xw(t){return(t=null==t||O(t)?t:{isIgnore:t})||{}}function _w(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:ep(t),cursorStyle:t.get("cursor")}}ww.prototype.updateData=function(r,a){this._progressiveEls=null,a=xw(a);var s=this.group,l=r.hostModel,u=this._data,h=this._SymbolCtor,c=a.disableAnimation,p=_w(r),d={disableAnimation:c},g=a.getSymbolPoint||function(t){return r.getItemLayout(t)};u||s.removeAll(),r.diff(u).add(function(t){var e,n=g(t);vw(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=g(t);vw(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):C(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=g,this._data=r},ww.prototype.updateLayout=function(){var n=this,t=this._data;t&&t.eachItemGraphicEl(function(t,e){e=n._getSymbolPoint(e);t.setPosition(e),t.markRedraw()})},ww.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=_w(t),this._data=null,this.group.removeAll()},ww.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=xw(n);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);vw(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))}},ww.prototype.eachRendered=function(t){qc(this._progressiveEls||this.group,t)},ww.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 bw=ww;function ww(t){this.group=new Z,this._SymbolCtor=t||fw}function Sw(t,e,n){var i=t.getBaseAxis(),o=t.getOtherAxis(i),n=(n=n,a=0,r=(r=o).scale.getExtent(),"start"===n?a=r[0]:"end"===n?a=r[1]:X(n)&&!isNaN(n)?a=n:0<r[0]?a=r[0]:r[1]<0&&(a=r[1]),a),r=i.dim,a=o.dim,i=e.mapDimension(a),o=e.mapDimension(r),s="x"===a||"radius"===a?1:0,t=B(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,u=e.getCalculationInfo("stackResultDimension");return P1(e,t[0])&&(l=!0,t[0]=u),P1(e,t[1])&&(l=!0,t[1]=u),{dataDimsForPoint:t,valueStart:n,valueAxisDim:a,baseAxisDim:r,stacked:!!l,valueDim:i,baseDim:o,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function Mw(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 Iw=Math.min,Tw=Math.max;function Cw(t,e){return isNaN(t)||isNaN(e)}function Dw(t,e,n,i,o,r,a,s,l){for(var u,h,c,p,d=n,g=0;g<i;g++){var f=e[2*d],y=e[2*d+1];if(o<=d||d<0)break;if(Cw(f,y)){if(l){d+=r;continue}break}if(d===n)t[0<r?"moveTo":"lineTo"](f,y),c=f,p=y;else{var m=f-u,v=y-h;if(m*m+v*v<.5){d+=r;continue}if(0<a){for(var x=d+r,_=e[2*x],b=e[2*x+1];_===f&&b===y&&g<i;)g++,d+=r,_=e[2*(x+=r)],b=e[2*x+1],f=e[2*d],y=e[2*d+1];var w=g+1;if(l)for(;Cw(_,b)&&w<i;)w++,_=e[2*(x+=r)],b=e[2*x+1];var S,M,I,T,C,D,A,k,L,m=0,v=0,P=void 0,O=void 0;i<=w||Cw(_,b)?(A=f,k=y):(m=_-u,v=b-h,S=f-u,M=_-f,I=y-h,T=b-y,D=C=void 0,O="x"===s?(A=f-(L=0<m?1:-1)*(C=Math.abs(S))*a,k=y,P=f+L*(D=Math.abs(M))*a,y):"y"===s?(A=f,k=y-(L=0<v?1:-1)*(C=Math.abs(I))*a,P=f,y+L*(D=Math.abs(T))*a):(C=Math.sqrt(S*S+I*I),A=f-m*a*(1-(S=(D=Math.sqrt(M*M+T*T))/(D+C))),k=y-v*a*(1-S),O=y+v*a*S,P=Iw(P=f+m*a*S,Tw(_,f)),O=Iw(O,Tw(b,y)),P=Tw(P,Iw(_,f)),k=y-(v=(O=Tw(O,Iw(b,y)))-y)*C/D,A=Iw(A=f-(m=P-f)*C/D,Tw(u,f)),k=Iw(k,Tw(h,y)),P=f+(m=f-(A=Tw(A,Iw(u,f))))*D/C,y+(v=y-(k=Tw(k,Iw(h,y))))*D/C)),t.bezierCurveTo(c,p,A,k,f,y),c=P,p=O}else t.lineTo(f,y)}u=f,h=y,d+=r}return g}function Aw(){this.smooth=0,this.smoothConstraint=!0}u(Pw,kw=q),Pw.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Pw.prototype.getDefaultShape=function(){return new Aw},Pw.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;0<o&&Cw(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Cw(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=Dw(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},Pw.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,r=Ds.CMD,a="x"===e,s=[],l=0;l<o.length;){var u,h=void 0,c=void 0;switch(o[l++]){case r.M:n=o[l++],i=o[l++];break;case r.L:var p,h=o[l++],c=o[l++];if((u=a?(t-n)/(h-n):(t-i)/(c-i))<=1&&0<=u)return p=a?(c-i)*u+i:(h-n)*u+n,a?[t,p]:[p,t];n=h,i=c;break;case r.C:h=o[l++],c=o[l++];var d=o[l++],g=o[l++],f=o[l++],y=o[l++],m=a?Un(n,h,d,f,t,s):Un(i,c,g,y,t,s);if(0<m)for(var v=0;v<m;v++){var x=s[v];if(x<=1&&0<=x)return p=a?Yn(i,c,g,y,x):Yn(n,h,d,f,x),a?[t,p]:[p,t]}n=f,i=y}}};var kw,Lw=Pw;function Pw(t){t=kw.call(this,t)||this;return t.type="ec-polyline",t}u(Vw,Rw=Aw);var Ow,Rw,Nw=Vw,Ew=(u(zw,Ow=q),zw.prototype.getDefaultShape=function(){return new Nw},zw.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&&Cw(n[2*r-2],n[2*r-1]);r--);for(;o<r&&Cw(n[2*o],n[2*o+1]);o++);}for(;o<r;){var s=Dw(t,n,o,r,r,1,e.smooth,a,e.connectNulls);Dw(t,i,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}},zw);function zw(t){t=Ow.call(this,t)||this;return t.type="ec-polygon",t}function Vw(){return null!==Rw&&Rw.apply(this,arguments)||this}function Bw(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function Fw(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 Gw(t,e){var t=Fw(t),n=t[0],t=t[1],e=Fw(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 Ww(t){return X(t)?t:t?.5:0}function Hw(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 Yw(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var o,r,a=i.length-1;0<=a;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(o=s&&s.coordDim)||"y"===o){r=i[a];break}}if(r){var l=e.getAxis(o),e=B(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),u=e.length,h=r.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:Ti((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"===o?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";et(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 Qh(0,0,0,0,n,!0);return e[o]=p,e[o+"2"]=u,e}}}function Xw(t,e,n){var t=t.get("showAllSymbol"),i="auto"===t;if(!t||i){var o,r,a=n.getAxesByScale("ordinal")[0];if(a&&(!i||!function(t,e){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var o=e.count(),r=Math.max(1,Math.round(o/5)),a=0;a<o;a+=r)if(1.5*fw.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return;return 1}(a,e)))return o=e.mapDimension(a.dim),r={},et(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function Uw(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 Zw(t,e){return[t[2*e],t[2*e+1]]}function jw(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<El.length;e++)if(t.get([El[e],"endLabel","show"]))return 1}function qw(n,i,e,t){var o,r,a,s,l,u,h,c,p;return zb(i,"cartesian2d")?(o=t.getModel("endLabel"),r=o.get("valueAnimation"),a=t.getData(),s={lastFrameIndex:0},l=jw(t)?function(t,e){n._endLabelOnDuring(t,e,a,s,r,o,i)}:null,u=i.getBaseAxis().isHorizontal(),h=kb(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):Lb(i,e,t)}u(Jw,Kw=$y),Jw.prototype.init=function(){var t=new Z,e=new bw;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},Jw.prototype.render=function(t,e,n){var i=this,o=t.coordinateSystem,r=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],h="polar"===o.type,c=this._coordSys,p=this._symbolDraw,d=this._polyline,g=this._polygon,f=this._lineGroup,e=!e.ssr&&t.isAnimationEnabled(),y=!l.isEmpty(),m=l.get("origin"),v=Sw(o,a,m),v=y&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),o=ox(2*i),r=0;r<i;r++){var a=Mw(n,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(o,a,v),x=t.get("showSymbol"),_=t.get("connectNulls"),b=x&&!h&&Xw(t,a,o),w=this._data;w&&w.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),w.setItemGraphicEl(e,null))}),x||p.remove(),r.add(f);function S(t){i._changePolyState(t)}var M,I=!h&&t.get("step"),T=(o&&o.getArea&&t.get("clip",!0)&&(null!=(M=o.getArea()).width?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M,Yw(a,o,n)||a.getVisual("style")[a.getVisual("drawType")]),c=(d&&c.type===o.type&&I===this._step?(y&&!g?g=this._newPolygon(u,v):g&&!y&&(f.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,_d(T)),(c=f.getClipPath())?yc(c,{shape:qw(this,o,!1,t).shape},t):f.setClipPath(qw(this,o,!0,t)),x&&p.updateData(a,{isIgnore:b,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),Bw(this._stackedOnPoints,v)&&Bw(this._points,u)||(e?this._doUpdateAnimation(a,v,o,n,I,m,_):(I&&(u=Hw(u,o,I,_),v=v&&Hw(v,o,I,_)),d.setShape({points:u}),g&&g.setShape({points:u,stackedOnPoints:v})))):(x&&p.updateData(a,{isIgnore:b,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),e&&this._initSymbolLabelAnimation(a,o,M),I&&(u=Hw(u,o,I,_),v=v&&Hw(v,o,I,_)),d=this._newPolyline(u),y?g=this._newPolygon(u,v):g&&(f.remove(g),g=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,_d(T)),f.setClipPath(qw(this,o,!0,t))),t.getModel("emphasis")),n=c.get("focus"),x=c.get("blurScope"),p=c.get("disabled"),b=(d.useStyle(V(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),Mu(d,t,"lineStyle"),0<d.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),$(d).seriesIndex=t.seriesIndex,_u(d,n,x,p),Ww(t.get("smooth"))),e=t.get("smoothMonotone");d.setShape({smooth:b,smoothMonotone:e,connectNulls:_}),g&&(M=a.getCalculationInfo("stackedOnSeries"),y=0,g.useStyle(V(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),M&&(y=Ww(M.get("smooth"))),g.setShape({smooth:b,stackedOnSmooth:y,smoothMonotone:e,connectNulls:_}),Mu(g,t,"areaStyle"),$(g).seriesIndex=t.seriesIndex,_u(g,n,x,p));a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=S)}),this._polyline.onHoverStateChange=S,this._data=a,this._coordSys=o,this._stackedOnPoints=v,this._points=u,this._step=I,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),g)&&this.packEventData(t,g)},Jw.prototype.packEventData=function(t,e){$(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},Jw.prototype.highlight=function(t,e,n,i){var o=t.getData(),r=ia(o,i);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&0<=r){var a=o.getLayout("points"),s=o.getItemGraphicEl(r);if(!s){var l=a[2*r],a=a[2*r+1];if(isNaN(l)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,a))return;var u=t.get("zlevel")||0,h=t.get("z")||0,l=((s=new fw(o,r)).x=l,s.y=a,s.setZ(u,h),s.getSymbolPath().getTextContent());l&&(l.zlevel=u,l.z=h,l.z2=this._polyline.z2+1),s.__temp=!0,o.setItemGraphicEl(r,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else $y.prototype.highlight.call(this,t,e,n,i)},Jw.prototype.downplay=function(t,e,n,i){var o,r=t.getData(),a=ia(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()):$y.prototype.downplay.call(this,t,e,n,i)},Jw.prototype._changePolyState=function(t){var e=this._polygon;eu(this._polyline,t),e&&eu(e,t)},Jw.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Lw({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},Jw.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new Ew({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},Jw.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"),g=(D(d)&&(d=d(null)),e.get("animationDelay")||0),f=D(g)?g(null):g;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=D(g)?g(e):d*o+f,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)})},Jw.prototype._initOrUpdateEndLabel=function(t,e,n){var i,o,r,a=t.getModel("endLabel");jw(t)?(i=t.getData(),o=this._polyline,(r=i.getLayout("points"))?(this._endLabel||((this._endLabel=new K({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0),0<=(r=Uw(r))&&(tp(o,ep(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:r,defaultText:function(t,e,n){return null!=n?Bb(i,n):Vb(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)},Jw.prototype._endLabelOnDuring=function(t,e,n,i,o,r,a){var s,l,u,h,c,p,d,g,f,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"),f=(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<=(g=(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<g&&!f?(y=Zw(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}),g=l.getRawValue(p[0]),f=l.getRawValue(p[1]),o&&(d=pa(n,u,g,f,c.t))),i.lastFrameIndex=p[0]):(y=Zw(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=up(m)).setLabelText&&a.setLabelText(d)},Jw.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=[],g=[],f=Sw(o,e,r),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var x=s[v],_=!0,b=void 0;switch(x.cmd){case"=":var w=2*x.idx,b=2*x.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]),g.push(e.getRawIndex(x.idx1));break;case"+":S=x.idx,M=f.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]),Mw(f,o,e,S));h.push(T[0],T[1]),c.push(i[b],i[b+1]),g.push(e.getRawIndex(S));break;case"-":_=!1}_&&(p.push(x),d.push(d.length))}d.sort(function(t,e){return g[t]-g[e]});for(var C=ox(r=l.length),D=ox(r),A=ox(r),k=ox(r),L=[],v=0;v<d.length;v++){var P=d[v],O=2*v,R=2*P;C[O]=l[R],C[1+O]=l[1+R],D[O]=u[R],D[1+O]=u[1+R],A[O]=h[R],A[1+O]=h[1+R],k[O]=c[R],k[1+O]=c[1+R],L[v]=p[P]}return{current:C,next:D,stackedOnCurrent:A,stackedOnNext:k,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=Hw(e.current,n,o,a),c=Hw(e.stackedOnCurrent,n,o,a),p=Hw(e.next,n,o,a),d=Hw(e.stackedOnNext,n,o,a)),3e3<Gw(h,p)||l&&3e3<Gw(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;n={shape:{points:p}};e.current!==h&&(n.shape.__points=e.next),s.stopAnimation(),C(s,n,u),l&&(l.setShape({points:h,stackedOnPoints:c}),l.stopAnimation(),C(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points)&&(l.shape.points=s.shape.points);for(var g,f=[],y=e.status,m=0;m<y.length;m++)"="===y[m].cmd&&(g=t.getItemGraphicEl(y[m].idx1))&&f.push({el:g,ptIdx:m});s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<f.length;e++){var n=f[e].el,i=2*f[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})}},Jw.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},Jw.type="line";var Kw,$w=Jw;function Jw(){return null!==Kw&&Kw.apply(this,arguments)||this}function Qw(t,i){return{seriesType:t,plan:jy(),reset:function(t){var h,e,c,p,d,n=t.getData(),g=t.coordinateSystem,t=t.pipelineContext,f=i||t.large;if(g)return t=B(g.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),h=t.length,e=n.getCalculationInfo("stackResultDimension"),P1(n,t[0])&&(t[0]=e),P1(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=f&&ox(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),g.dataToPoint(l,null,r)):(o[0]=c.get(p,a),o[1]=c.get(d,a),g.dataToPoint(o,null,r)),f?(i[s++]=u[0],i[s++]=u[1]):e.setItemLayout(a,u.slice())}f&&e.setLayout("points",i)}}}}}r(function(t){t.registerChartView($w),t.registerSeriesModel(pw),t.registerLayout(Qw("line",!0)),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,Mb("line"))});var tS=2*Math.PI,eS=Math.PI/180;function nS(t,e){return Cd(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function iS(t,e){var n=nS(t,e),i=t.get("center"),o=t.get("radius");W(o)||(o=[0,o]);var r,a=j(n.width,e.getWidth()),e=j(n.height,e.getHeight()),s=Math.min(a,e),l=j(o[0],s/2),o=j(o[1],s/2),s=t.coordinateSystem;return s=s?(r=(t=s.dataToPoint(i))[0]||0,t[1]||0):(r=j((i=W(i)?i:[i,i])[0],a)+n.x,j(i[1],e)+n.y),{cx:r,cy:s,r0:l,r:o}}function oS(t,e,S){e.eachSeriesByType(t,function(t){var n,o=t.getData(),e=o.mapDimension("value"),i=nS(t,S),r=iS(t,S),a=r.cx,s=r.cy,l=r.r,u=r.r0,h=-t.get("startAngle")*eS,c=t.get("minAngle")*eS,p=0,d=(o.each(e,function(t){isNaN(t)||p++}),o.getSum(e)),g=Math.PI/(d||p)*2,f=t.get("clockwise"),y=t.get("roseType"),m=t.get("stillShowZeroSum"),v=o.getDataExtent(e),x=(v[0]=0,tS),_=0,b=h,w=f?1:-1;o.setLayout({viewRect:i,r:l}),o.each(e,function(t,e){var n,i;isNaN(t)?o.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:f,cx:a,cy:s,r0:u,r:y?NaN:l}):((n="area"!==y?0===d&&m?g:t*g:tS/p)<c?x-=n=c:_+=t,i=b+w*n,o.setItemLayout(e,{angle:n,startAngle:b,endAngle:i,clockwise:f,cx:a,cy:s,r0:u,r:y?br(t,v,[u,l]):l}),b=i)}),x<tS&&p&&(x<=.001?(n=tS/p,o.each(e,function(t,e){isNaN(t)||((t=o.getItemLayout(e)).angle=n,t.startAngle=h+w*e*n,t.endAngle=h+w*(e+1)*n)})):(g=x/_,b=h,o.each(e,function(t,e){isNaN(t)||(t=(e=o.getItemLayout(e)).angle===c?c:t*g,e.startAngle=b,e.endAngle=b+w*t,b+=w*t)})))})}function rS(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 aS=Math.PI/180;function sS(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(q_(t,o,o+n)){for(var d,g,f,y,m,v=t,x={list:[],maxY:0},_={list:[],maxY:0},b=0;b<v.length;b++)"none"===v[b].labelAlignTo&&(g=(d=v[b]).label.y>l?_:x,(f=Math.abs(d.label.y-l))>=g.maxY&&(m=d.label.x-s-d.len2*h,y=u+d.len,m=Math.abs(m)<y?Math.sqrt(f*f/(1-m*m/y/y)):y,g.rB=m,g.maxY=f),g.list.push(d));w(x),w(_)}}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;lS(o,o.targetTextWidth-r*h,!0),o.label.x=a}}}function lS(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 uS(t){return"center"===t.position}function hS(t){var S,M,I=t.getData(),T=[],C=!1,D=(t.get("minShowLabelAngle")||0)*aS,e=I.getLayout("viewRect"),A=I.getLayout("r"),k=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,p=I.getItemGraphicEl(t),d=p.shape,g=p.getTextContent(),f=p.getTextGuideLine(),t=I.getItemModel(t),y=t.getModel("label"),m=y.get("position")||t.get(["emphasis","label","position"]),v=y.get("distanceToLabelLine"),x=y.get("alignTo"),_=j(y.get("edgeDistance"),k),b=y.get("bleedMargin"),t=t.getModel("labelLine"),w=j(t.get("length"),k);e=j(t.get("length2"),k),Math.abs(d.endAngle-d.startAngle)<D?(et(g.states,P),g.ignore=!0,f&&(et(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}(g)&&(c=(d.startAngle+d.endAngle)/2,n=Math.cos(c),i=Math.sin(c),S=d.cx,M=d.cy,o="inside"===m||"inner"===m,l="center"===m?(r=d.cx,a=d.cy,"center"):(r=(l=(o?(d.r+d.r0)/2*n:d.r*n)+S)+3*n,a=(u=(o?(d.r+d.r0)/2*i:d.r*i)+M)+3*i,o||(s=l+n*(w+A-d.r),d=u+i*(w+A-d.r),h=s+(n<0?-1:1)*e,r="edge"===x?n<0?L+_:L+k-_:h+(n<0?-v:v),s=[[l,u],[s,a=d],[h,d]]),o?"center":"edge"===x?0<n?"right":"left":0<n?"left":"right"),u=Math.PI,h=0,X(d=y.get("rotate"))?h=d*(u/180):"center"===m?h=0:"radial"===d||!0===d?h=n<0?-c+u:-c:"tangential"===d&&"outside"!==m&&"outer"!==m&&((y=Math.atan2(n,i))<0&&(y=2*u+y),h=(y=0<i?u+y:y)-u),C=!!h,g.x=r,g.y=a,g.rotation=h,g.setStyle({verticalAlign:"middle"}),o?(g.setStyle({align:l}),(c=g.states.select)&&(c.x+=g.x,c.y+=g.y)):((d=g.getBoundingRect().clone()).applyTransform(g.getComputedTransform()),y=(g.style.margin||0)+2.1,d.y-=y/2,d.height+=y,T.push({label:g,labelLine:f,position:m,len:w,len2:e,minTurnAngle:t.get("minTurnAngle"),maxSurfaceAngle:t.get("maxSurfaceAngle"),surfaceNormal:new E(n,i),linePoints:s,textAlign:l,labelDistance:v,labelAlignTo:x,edgeDistance:_,bleedMargin:b,rect:d,unconstrainedWidth:d.width,labelStyleWidth:g.style.width})),p.setTextConfig({inside:o}))}),!C&&t.get("avoidLabelOverlap")){for(var i=T,o=S,r=(t=M,A),a=k,s=L,l,u,h,c,p,d,g=[],f=[],y=Number.MAX_VALUE,m=-Number.MAX_VALUE,v=0;v<i.length;v++){var x=i[v].label;uS(i[v])||(x.x<o?(y=Math.min(y,x.x),g):(m=Math.max(m,x.x),f)).push(i[v])}for(v=0;v<i.length;v++)!uS(u=i[v])&&u.linePoints&&null==u.labelStyleWidth&&(x=u.label,h=u.linePoints,l=void 0,l="edge"===u.labelAlignTo?x.x<o?h[2][0]-u.labelDistance-s-u.edgeDistance:s+a-u.edgeDistance-h[2][0]-u.labelDistance:"labelLine"===u.labelAlignTo?x.x<o?y-s-u.bleedMargin:s+a-m-u.bleedMargin:x.x<o?x.x-s-u.bleedMargin:s+a-x.x-u.bleedMargin,u.targetTextWidth=l,lS(u,l));for(sS(f,o,t,r,1,0,e,0,n,m),sS(g,o,t,r,-1,0,e,0,n,y),v=0;v<i.length;v++)!uS(u=i[v])&&u.linePoints&&(x=u.label,h=u.linePoints,c="edge"===u.labelAlignTo,p=(p=x.style.padding)?p[1]+p[3]:0,p=x.style.backgroundColor?0:p,p=u.rect.width+p,d=h[1][0]-h[2][0],c?x.x<o?h[2][0]=s+u.edgeDistance+p+u.labelDistance:h[2][0]=s+a-u.edgeDistance-p-u.labelDistance:(x.x<o?h[2][0]=x.x+u.labelDistance:h[2][0]=x.x-u.labelDistance,h[1][0]=h[2][0]+d),h[1][1]=h[2][1]=x.y)}for(var _=0;_<T.length;_++){var b,w=T[_],O=w.label,R=w.labelLine,N=isNaN(O.x)||isNaN(O.y);O&&(O.setStyle({align:w.textAlign}),N&&(et(O.states,P),O.ignore=!0),b=O.states.select)&&(b.x+=O.x,b.y+=O.y),R&&(b=w.linePoints,N||!b?(et(R.states,P),R.ignore=!0):(W_(b,w.minTurnAngle),function(t,e,n){if(n<=180&&0<n){n=n/180*Math.PI,R_.fromArray(t[0]),N_.fromArray(t[1]),E_.fromArray(t[2]),E.sub(z_,N_,R_),E.sub(V_,E_,N_);var i=z_.len(),o=V_.len();if(!(i<.001||o<.001)&&(z_.scale(1/i),V_.scale(1/o),z_.dot(e)<Math.cos(n))){i=k_(N_.x,N_.y,E_.x,E_.y,R_.x,R_.y,F_,!1),o=(G_.fromArray(F_),Math.PI/2),e=o+Math.acos(V_.dot(e))-n;if(o<=e)E.copy(G_,E_);else{G_.scaleAndAdd(V_,i/Math.tan(Math.PI/2-e));n=E_.x!==N_.x?(G_.x-N_.x)/(E_.x-N_.x):(G_.y-N_.y)/(E_.y-N_.y);if(isNaN(n))return;n<0?E.copy(G_,N_):1<n&&E.copy(G_,E_)}G_.toArray(t[1])}}}(b,w.surfaceNormal,w.maxSurfaceAngle),R.setShape({points:b}),O.__hostTarget.textGuideLineConfig={anchor:new E(b[0][0],b[0][1])}))}}u(yS,pS=vh),yS.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=H(Wb(a.getModel("itemStyle"),l,!0),l);isNaN(u.startAngle)?o.setShape(u):(i?(o.setShape(u),i=r.getShallow("animationType"),r.ecModel.ssr?(yc(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,yc(o,{shape:{r:l.r}},r,e)):null!=n?(o.setShape({startAngle:n,endAngle:n}),yc(o,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},r,e)):(o.shape.endAngle=l.startAngle,C(o,{shape:{endAngle:l.endAngle}},r,e))):(bc(o),C(o,{shape:u},r,e)),o.useStyle(t.getItemVisual(e,"style")),Mu(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=H({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},Wb(s.getModel("itemStyle"),l)),H(o.ensureState("select"),{x:u,y:i,shape:Wb(a.getModel(["select","itemStyle"]),l)}),H(o.ensureState("blur"),{shape:Wb(a.getModel(["blur","itemStyle"]),l)}),n=o.getTextGuideLine(),r=o.getTextContent(),n&&H(n.ensureState("select"),{x:u,y:i}),H(r.ensureState("select"),{x:u,y:i}),_u(this,s.get("focus"),s.get("blurScope"),s.get("disabled")))},yS.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=(tp(this,ep(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 Lh,this.setTextGuideLine(e)),X_(this,U_(i),{stroke:a,opacity:St(o.get(["lineStyle","opacity"]),r,1)}))};var cS,pS,dS=yS,gS=(u(fS,cS=$y),fS.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 vh({shape:iS(e,n)})).useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=n,s.add(n)),r.diff(a).add(function(t){var e=new dS(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){_c(a.getItemGraphicEl(t),e,t)}).execute(),hS(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=r)},fS.prototype.dispose=function(){},fS.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},fS.type="pie",fS);function fS(){var t=null!==cS&&cS.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}function yS(t,e,n){var i=pS.call(this)||this,o=(i.z2=2,new K);return i.setTextContent(o),i.updateData(t,e,n,!0),i}function mS(t,e,n){e=W(e)?{coordDimensions:e}:H({encodeDefine:t.getEncode()},e);var i=t.getSource(),e=C1(i,e).dimensions,e=new T1(e,t);return e.initData(i,n),e}xS.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},xS.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},xS.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},xS.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var vS=xS;function xS(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}var _S,bS=i(),wS=(u(SS,_S=zy),SS.prototype.init=function(t){_S.prototype.init.apply(this,arguments),this.legendVisualProvider=new vS(T(this.getData,this),T(this.getRawData,this)),this._defaultLabelLine(t)},SS.prototype.mergeOption=function(){_S.prototype.mergeOption.apply(this,arguments)},SS.prototype.getInitialData=function(){return mS(this,{coordDimensions:["value"],encodeDefaulter:P(Qd,this)})},SS.prototype.getDataParams=function(t){var e,n=this.getData(),i=bS(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"))),_S.prototype.getDataParams.call(this,t));return i.percent=o[t]||0,i.$vars.push("percent"),i},SS.prototype._defaultLabelLine=function(t){Zr(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},SS.type="series.pie",SS.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},SS);function SS(){return null!==_S&&_S.apply(this,arguments)||this}r(function(t){t.registerChartView(gS),t.registerSeriesModel(wS),Wm("pie",t.registerAction),t.registerLayout(P(oS,"pie")),t.registerProcessor(rS("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!(X(e)&&!isNaN(e)&&e<0)})}})});u(TS,MS=zy),TS.prototype.getInitialData=function(t,e){return R1(null,this,{useEncodeDefaulter:!0})},TS.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},TS.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},TS.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},TS.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},TS.type="series.scatter",TS.dependencies=["grid","polar","geo","singleAxis","calendar"],TS.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}};var MS,IS=TS;function TS(){var t=null!==MS&&MS.apply(this,arguments)||this;return t.type=TS.type,t.hasSymbolVisual=!0,t}function CS(){}u(PS,DS=q),PS.prototype.getDefaultShape=function(){return new CS},PS.prototype.reset=function(){this.notClear=!1,this._off=0},PS.prototype.buildPath=function(t,e){var n,i=e.points,o=e.size,r=this.symbolProxy,a=r.shape,e=t.getContext?t.getContext():t,s=e&&o[0]<4,l=this.softClipShape;if(s)this._ctx=e;else{for(this._ctx=null,n=this._off;n<i.length;){var u=i[n++],h=i[n++];isNaN(u)||isNaN(h)||l&&!l.contain(u,h)||(a.x=u-o[0]/2,a.y=h-o[1]/2,a.width=o[0],a.height=o[1],r.buildPath(t,a,!0))}this.incremental&&(this._off=n,this.notClear=!0)}},PS.prototype.afterBrush=function(){var t,e=this.shape,n=e.points,i=e.size,o=this._ctx,r=this.softClipShape;if(o){for(t=this._off;t<n.length;){var a=n[t++],s=n[t++];isNaN(a)||isNaN(s)||r&&!r.contain(a,s)||o.fillRect(a-i[0]/2,s-i[1]/2,i[0],i[1])}this.incremental&&(this._off=t,this.notClear=!0)}},PS.prototype.findDataIndex=function(t,e){for(var n=this.shape,i=n.points,n=n.size,o=Math.max(n[0],4),r=Math.max(n[1],4),a=i.length/2-1;0<=a;a--){var s=2*a,l=i[s]-o/2,s=i[1+s]-r/2;if(l<=t&&s<=e&&t<=l+o&&e<=s+r)return a}return-1},PS.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?0<=(this.hoverDataIdx=this.findDataIndex(t,e)):!(this.hoverDataIdx=-1)},PS.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,n=e.points,e=e.size,i=e[0],e=e[1],o=1/0,r=1/0,a=-1/0,s=-1/0,l=0;l<n.length;)var u=n[l++],h=n[l++],o=Math.min(u,o),a=Math.max(u,a),r=Math.min(h,r),s=Math.max(h,s);t=this._rect=new z(o-i/2,r-e/2,a-o+i,s-r+e)}return t};var DS,AS=PS,kS=(LS.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},LS.prototype.updateLayout=function(t){var i=t.getLayout("points");this.group.eachChild(function(t){var e,n;null!=t.startIndex&&(e=2*(t.endIndex-t.startIndex),n=4*t.startIndex*2,i=new Float32Array(i.buffer,n,e)),t.setShape("points",i),t.reset()})},LS.prototype.incrementalPrepareUpdate=function(t){this._clear()},LS.prototype.incrementalUpdate=function(t,e,n){var i,o,r=this._newAdded[0],a=e.getLayout("points"),s=r&&r.shape.points;s&&s.length<2e4?(i=s.length,(o=new Float32Array(i+a.length)).set(s),o.set(a,i),r.endIndex=t.end,r.setShape({points:o})):(this._newAdded=[],(s=this._create()).startIndex=t.start,s.endIndex=t.end,s.incremental=!0,s.setShape({points:a}),this._setCommon(s,e,n))},LS.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},LS.prototype._create=function(){var t=new AS({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},LS.prototype._setCommon=function(n,t,e){var i=t.hostModel,o=(e=e||{},t.getVisual("symbolSize")),o=(n.setShape("size",o instanceof Array?o:[o,o]),n.softClipShape=e.clipShape||null,n.symbolProxy=i0(t.getVisual("symbol"),0,0,0,0),n.setColor=n.symbolProxy.setColor,n.shape.size[0]<4),e=(n.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"])),t.getVisual("style")),o=e&&e.fill,r=(o&&n.setColor(o),$(n));r.seriesIndex=i.seriesIndex,n.on("mousemove",function(t){r.dataIndex=null;var e=n.hoverDataIdx;0<=e&&(r.dataIndex=e+(n.startIndex||0))})},LS.prototype.remove=function(){this._clear()},LS.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},LS);function LS(){this.group=new Z}function PS(t){t=DS.call(this,t)||this;return t._off=0,t.hoverDataIdx=-1,t}u(NS,OS=$y),NS.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},NS.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},NS.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},NS.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||1e4<i.count())return{update:!0};t=Qw("").reset(t,e,n);t.progress&&t.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},NS.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},NS.prototype._getClipShape=function(t){var e=t.coordinateSystem,e=e&&e.getArea&&e.getArea();return t.get("clip",!0)?e:null},NS.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,e=e.pipelineContext.large;return n&&e===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=new(e?kS:bw),this._isLargeDraw=e,this.group.removeAll()),this.group.add(n.group),n},NS.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},NS.prototype.dispose=function(){},NS.type="scatter";var OS,RS=NS;function NS(){var t=null!==OS&&OS.apply(this,arguments)||this;return t.type=NS.type,t}u(VS,ES=g),VS.type="grid",VS.dependencies=["xAxis","yAxis"],VS.layoutMode="box",VS.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 ES,zS=VS;function VS(){return null!==ES&&ES.apply(this,arguments)||this}u(GS,BS=g),GS.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",sa).models[0]},GS.type="cartesian2dAxis";var BS,FS=GS;function GS(){return null!==BS&&BS.apply(this,arguments)||this}ut(FS,Zx);var xa={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)"]}}},Zm=d({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},xa),Jm=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}}},xa),WS={category:Zm,value:Jm,time:d({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Jm),log:V({logBase:10},Jm)},HS={value:1,category:1,time:1,log:1};function YS(r,a,s,l){et(HS,function(t,o){var e,n=d(d({},WS[o],!0),l,!0),n=(u(i,e=s),i.prototype.mergeDefaultAndTheme=function(t,e){var n=Ad(this),i=n?Ld(t):{};d(t,e.getTheme().get(o+"Axis")),d(t,this.getDefaultOption()),t.type=XS(t),n&&kd(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=V1.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",XS)}function XS(t){return t.type||(t.data?"category":"value")}function US(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}US.prototype.getAxis=function(t){return this._axes[t]},US.prototype.getAxes=function(){return B(this._dimList,function(t){return this._axes[t]},this)},US.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),pt(this.getAxes(),function(t){return t.scale.type===e})},US.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var ZS=["x","y"];function jS(t){return"interval"===t.type||"time"===t.type}u($S,qS=US),$S.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,o=this.getAxis("x").scale,r=this.getAxis("y").scale;jS(o)&&jS(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=Ye([],i))},$S.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},$S.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]))},$S.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},$S.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)},$S.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)?oe(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)},$S.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},$S.prototype.pointToData=function(t,e){var n,i,o=[];return this._invTransform?oe(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)},$S.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},$S.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),t=Math.max(t[0],t[1])-n,e=Math.max(e[0],e[1])-i;return new z(n,i,t,e)};var qS,KS=$S;function $S(){var t=null!==qS&&qS.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=ZS,t}u(tM,JS=bp),tM.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},tM.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},tM.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},tM.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var JS,QS=tM;function tM(t,e,n,i,o){t=JS.call(this,t,e,n)||this;return t.index=0,t.type=i||"value",t.position=o||"bottom",t}function eM(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),wt(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 nM(t){return"cartesian2d"===t.get("coordinateSystem")}function iM(i){var o={xAxisModel:null,yAxisModel:null};return et(o,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,sa).models[0];o[e]=n}),o}var oM=Math.log;function rM(t,e,n){var i=tx.prototype,o=i.getTicks.call(n),r=i.getTicks.call(n,!0),a=o.length-1,n=i.getInterval.call(n),e=Vx(t,e),s=e.extent,l=e.fixMin,e=e.fixMax,u=("log"===t.type&&(u=oM(t.base),s=[oM(s[0])/u,oM(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=H1(h),p=s[0]+h*a;else if(e)for(c=s[1]-h*a;c>s[0]&&isFinite(c)&&isFinite(s[0]);)h=H1(h),c=s[1]-h*a;else{u=(h=t.getTicks().length-1>a?H1(h):h)*a;(c=wr((p=Math.ceil(s[1]/h)*h)-u))<0&&0<=s[0]?(c=0,p=wr(u)):0<p&&s[1]<=0&&(p=0,c=-wr(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)}sM.prototype.getRect=function(){return this._rect},sM.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=G(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;G1(l)&&s.get("alignTicks")&&null==s.get("interval")?o.push(a):(Bx(l,s),G1(l)&&(e=a))}o.length&&(e||Bx((e=o.pop()).scale,e.model),et(o,function(t){rM(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var o={};et(n.x,function(t){uM(n,"y",t,o)}),et(n.y,function(t){uM(n,"x",t,o)}),this.resize(this.model,e)},sM.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),n=!n&&t.get("containLabel"),a=Cd(i,{width:e.getWidth(),height:e.getHeight()}),o=(this._rect=a,this._axesList);function r(){et(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&&(et(o,function(t){var e,n,i;t.model.get(["axisLabel","inside"])||(e=Hx(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()),et(this._coordsList,function(t){t.calcAffineTransform()})},sM.prototype.getAxis=function(t,e){t=this._axesMap[t];if(null!=t)return t[e||0]},sM.prototype.getAxes=function(){return this._axesList.slice()},sM.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];O(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]},sM.prototype.getCartesians=function(){return this._coordsList.slice()},sM.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},sM.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},sM.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis",sa).models[0],r=t.yAxisModel||i&&i.getReferringComponents("yAxis",sa).models[0],t=t.gridModel,a=this._coordsList;return i?F(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}},sM.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},sM.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;lM(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 QS(o,Fx(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?et((this._axesMap=u).x,function(i,o){et(u.y,function(t,e){var e="x"+o+"y"+e,n=new KS(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=[])},sM.prototype._updateScale=function(t,i){function o(e,n){et(Ux(e,n.dim),function(t){n.scale.unionExtentFromData(e,t)})}et(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;nM(t)&&(n=(e=iM(t)).xAxisModel,e=e.yAxisModel,lM(n,i))&&lM(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)},sM.prototype.getTooltipAxes=function(n){var i=[],o=[];return et(this.getCartesians(),function(t){var e=null!=n&&"auto"!==n?t.getAxis(n):t.getBaseAxis(),t=t.getOtherAxis(e);F(i,e)<0&&i.push(e),F(o,t)<0&&o.push(t)}),{baseAxes:i,otherAxes:o}},sM.create=function(i,o){var r=[];return i.eachComponent("grid",function(t,e){var n=new sM(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;nM(t)&&(e=(n=iM(t)).xAxisModel,n=n.yAxisModel,i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))}),r},sM.dimensions=ZS;var aM=sM;function sM(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ZS,this._initCartesian(t,e,n),this.model=t}function lM(t,e){return t.getCoordSysModel()===e}function uM(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)hM(r[n])&&(o=r[n]);else for(var a in r)if(r.hasOwnProperty(a)&&hM(r[a])&&!i[s(r[a])]){o=r[a];break}o&&(i[s(o)]=!0)}function s(t){return t.dim+"_"+t.index}}function hM(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}var cM=Math.PI,pM=(gM.prototype.hasBuilder=function(t){return!!dM[t]},gM.prototype.add=function(t){dM[t](this.opt,this.axisModel,this.group,this._transformGroup)},gM.prototype.getGroup=function(){return this.group},gM.innerTextLayout=function(t,e,n){var i,e=Ar(e-t),t=kr(e)?(i=0<n?"top":"bottom","center"):kr(e-cM)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<cM?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},gM.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},gM.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},gM),dM={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&&(oe(r,r,e),oe(a,a,e)),l=H({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),Nc((n=new Eh({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"]),Y(u)&&(u=[u,u]),(Y(e)||X(e))&&(e=[e,e]),n=r0(t.get(["axisLine","symbolOffset"])||0,e),h=e[0],c=e[1],et([{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=i0(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=function(t,e,n,i){var o=n.axis,r=n.getModel("axisTick"),a=r.get("show");if((a="auto"===a&&i.handleAutoShown?i.handleAutoShown("axisTick"):a)&&!o.scale.isBlank()){for(var a=r.getModel("lineStyle"),i=i.tickDirection*r.get("length"),s=vM(o.getTicksCoords(),e.transform,i,V(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),l=function(l,u,h,c){var p=h.axis;{var d,g,t,e,f,y,m,v,x;if(wt(c.axisLabelShow,h.get(["axisLabel","show"]))&&!p.scale.isBlank())return d=h.getModel("axisLabel"),g=d.get("margin"),t=p.getViewLabels(),e=(wt(c.labelRotate,d.get("rotate"))||0)*cM/180,f=pM.innerTextLayout(c.rotation,e,c.labelDirection),y=h.getCategories&&h.getCategories(!0),m=[],v=pM.isLabelSilent(h),x=h.get("triggerEvent"),et(t,function(t,e){var n="ordinal"===p.scale.type?p.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,i=t.formattedLabel,o=t.rawLabel,r=d,a=(r=y&&y[n]&&O(a=y[n])&&a.textStyle?new Tp(a.textStyle,d,h.ecModel):r).getTextColor()||h.get(["axisLine","lineStyle","color"]),s=p.dataToCoord(n),s=new K({x:s,y:c.labelOffset+c.labelDirection*g,rotation:f.rotation,silent:v,z2:10+(t.level||0),style:np(r,{text:i,align:r.getShallow("align",!0)||f.textAlign,verticalAlign:r.getShallow("verticalAlign",!0)||r.getShallow("baseline",!0)||f.textVerticalAlign,fill:D(a)?a("category"===p.type?o:"value"===p.type?n+"":n,e):a})});s.anid="label_"+n,x&&((t=pM.makeAxisEventDataBase(h)).targetType="axisLabel",t.value=o,t.tickIndex=e,"category"===p.type&&(t.dataIndex=n),$(s).eventData=t),u.add(s),s.updateTransform(),m.push(s),l.add(s),s.decomposeTransform()}),m}}(n,i,e,t),u=e,h=l,c=(Xx(u.axis)||(d=u.get(["axisLabel","showMinLabel"]),u=u.get(["axisLabel","showMaxLabel"]),s=s||[],y=(h=h||[])[0],g=h[1],o=h[h.length-1],h=h[h.length-2],r=s[0],f=s[1],a=s[s.length-1],s=s[s.length-2],!1===d?(fM(y),fM(r)):yM(y,g)&&(d?(fM(g),fM(f)):(fM(y),fM(r))),!1===u?(fM(o),fM(a)):yM(h,o)&&(u?(fM(h),fM(s)):(fM(o),fM(a)))),n),p=i,d=e,g=t.tickDirection,f=d.axis,y=d.getModel("minorTick");if(y.get("show")&&!f.scale.isBlank()){var m=f.getMinorTicksCoords();if(m.length)for(var f=y.getModel("lineStyle"),v=g*y.get("length"),x=V(f.getLineStyle(),V(d.getModel("axisTick").getLineStyle(),{stroke:d.get(["axisLine","lineStyle","color"])})),_=0;_<m.length;_++)for(var b=vM(m[_],p.transform,v,x,"minorticks_"+_),w=0;w<b.length;w++)c.add(b[w])}e.get(["axisLabel","hideOverlap"])&&K_(Z_(B(l,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=wt(t.axisName,e.get("name"));p&&(l=e.get("nameLocation"),s=t.nameDirection,r=e.getModel("nameTextStyle"),u=e.get("nameGap")||0,a=(h=e.axis.getExtent())[0]>h[1]?-1:1,a=["start"===l?h[0]-a*u:"end"===l?h[1]+a*u:(h[0]+h[1])/2,mM(l)?t.labelOffset+s*u:0],null!=(u=e.get("nameRotate"))&&(u=u*cM/180),mM(l)?o=pM.innerTextLayout(t.rotation,null!=u?u:t.rotation,s):(s=t.rotation,l=l,h=h,u=Ar((u=u||0)-s),s=h[0]>h[1],h="start"===l&&!s||"start"!==l&&s,l=kr(u-cM/2)?(c=h?"bottom":"top","center"):kr(u-1.5*cM)?(c=h?"top":"bottom","center"):(c="middle",u<1.5*cM&&cM/2<u?h?"left":"right":h?"right":"left"),o={rotation:u,textAlign:l,textVerticalAlign:c},null==(c=t.axisNameAvailableWidth)||(c=Math.abs(c/Math.sin(o.rotation)),isFinite(c))||(c=null)),s=r.getFont(),u=(h=e.get("nameTruncate",!0)||{}).ellipsis,l=wt(t.nameTruncateMaxWidth,h.maxWidth,c),Zc({el:t=new K({x:a[0],y:a[1],rotation:o.rotation,silent:pM.isLabelSilent(e),style:np(r,{text:p,font:s,overflow:"truncate",width:l,ellipsis:u,fill:r.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:r.get("align")||o.textAlign,verticalAlign:r.get("verticalAlign")||o.textVerticalAlign}),z2:1}),componentModel:e,itemName:p}),t.__fullText=p,t.anid="name",e.get("triggerEvent")&&((h=pM.makeAxisEventDataBase(e)).targetType="axisName",h.name=p,$(t).eventData=h),i.add(t),t.updateTransform(),n.add(t),t.decomposeTransform())}};function gM(t,e){this.group=new Z,this.opt=e,this.axisModel=t,V(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});t=new Z({x:e.position[0],y:e.position[1],rotation:e.rotation});t.updateTransform(),this._transformGroup=t}function fM(t){t&&(t.ignore=!0)}function yM(t,e){var n,i=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(i&&o)return We(n=Ve([]),n,-t.rotation),i.applyTransform(Fe([],n,t.getLocalTransform())),o.applyTransform(Fe([],n,e.getLocalTransform())),i.intersect(o)}function mM(t){return"middle"===t||"center"===t}function vM(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&&(oe(a,a,e),oe(s,s,e)),new Eh({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0}));Nc(u.shape,u.style.lineWidth),u.anid=o+"_"+t[l].tickValue,r.push(u)}return r}function xM(t,e){var o,h,c,r,p,d,g,n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return h=n,e=e,r=(c=t).getComponent("tooltip"),p=c.getComponent("axisPointer"),d=p.get("link",!0)||[],g=[],et(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||wM(r))&&(null==e&&(e=r.get("triggerTooltip")),a=(r=t?function(t,e,n,i,o,r){var a=e.getModel("axisPointer"),s={},e=(et(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=S(a.get(t))}),s.snap="category"!==t.type&&!!r,"cross"===a.get("type")&&(s.type="line"),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"))&&V(e,o.textStyle));return t.model.getModel("axisPointer",new Tp(s,n,i))}(n,u,p,c,t,e):r).get("snap"),t=r.get("triggerEmphasis"),i=SM(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:wM(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(_M(r[i+"AxisId"],n.id)||_M(r[i+"AxisIndex"],n.componentIndex)||_M(r[i+"AxisName"],n.name))return o}}(d,n)))&&((a=g[t]||(g[t]={axesInfo:{}})).axesInfo[i]=e,a.mapper=d[t].mapper,e.linkGroup=a)}s.axisPointerEnabled&&(t=SM(s.model),l=h.coordSysAxesInfo[t]={},u=(h.coordSysMap[t]=s).model.getModel("tooltip",r),et(s.getAxes(),P(i,!1,null)),s.getTooltipAxes)&&r&&u.get("show")&&(t="axis"===u.get("trigger"),e="cross"===u.get(["axisPointer","type"]),n=s.getTooltipAxes(u.get(["axisPointer","axis"])),(t||e)&&et(n.baseAxes,P(i,!e||"cross",t)),e)&&et(n.otherAxes,P(i,"cross",!1))}),n.seriesInvolved&&(o=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)&&et(o.coordSysAxesInfo[SM(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 _M(t,e){return"all"===t||W(t)&&0<=F(t,e)||t===e}function bM(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[SM(t)]}function wM(t){return!!t.get(["handle","show"])}function SM(t){return t.type+"||"+t.id}var MM,IM={},TM=(u(CM,MM=Uy),CM.prototype.render=function(t,e,n,i){var o,r,a,s,l,u;this.axisPointerClass&&(o=bM(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=wM(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"),MM.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},CM.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},CM.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},CM.prototype.dispose=function(t,e){this._disposeAxisPointer(e),MM.prototype.dispose.apply(this,arguments)},CM.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,o=CM.getAxisPointerClass(this.axisPointerClass);o&&((i=(i=bM(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,i,e,n):this._disposeAxisPointer(e))},CM.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},CM.registerAxisPointerClass=function(t,e){IM[t]=e},CM.getAxisPointerClass=function(t){return t&&IM[t]},CM.type="axis",CM);function CM(){var t=null!==MM&&MM.apply(this,arguments)||this;return t.type=CM.type,t}var DM=i();function AM(t,e,n,i){var o=n.axis;if(!o.scale.isBlank()){var n=n.getModel("splitArea"),r=n.getModel("areaStyle"),a=r.get("color"),s=i.coordinateSystem.getRect(),l=o.getTicksCoords({tickModel:n,clamp:!0});if(l.length){var u=a.length,h=DM(t).splitAreaColors,c=N(),p=0;if(h)for(var d=0;d<l.length;d++){var g=h.get(l[d].tickValue);if(null!=g){p=(g+(u-1)*d)%u;break}}for(var f=o.toGlobalCoord(l[0].coord),y=r.getAreaStyle(),a=W(a)?a:[a],d=1;d<l.length;d++){var m=o.toGlobalCoord(l[d].coord),v=void 0,x=void 0,_=void 0,b=void 0,f=o.isHorizontal()?(v=f,x=s.y,b=s.height,v+(_=m-v)):(v=s.x,x=f,_=s.width,x+(b=m-x)),m=l[d-1].tickValue;null!=m&&c.set(m,p),e.add(new L({anid:null!=m?"area_"+m:null,shape:{x:v,y:x,width:_,height:b},style:V({fill:a[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%u}DM(t).splitAreaColors=c}}}function kM(t){DM(t).splitAreaColors=null}var LM,PM,OM=["axisLine","axisTickLabel","axisName"],RM=["splitArea","splitLine","minorSplitLine"],e=(u(VM,PM=TM),VM.prototype.render=function(i,t,e,n){this.group.removeAll();var o,r,a=this._axisGroup;this._axisGroup=new Z,this.group.add(this._axisGroup),i.get("show")&&(r=eM(o=i.getCoordSysModel(),i),r=new pM(i,H({handleAutoShown:function(t){for(var e=o.coordinateSystem.getCartesians(),n=0;n<e.length;n++)if(G1(e[n].getOtherAxis(i.axis).scale))return!0;return!1}},r)),et(OM,r.add,r),this._axisGroup.add(r.getGroup()),et(RM,function(t){i.get([t,"show"])&&NM[t](this,this._axisGroup,i,o)},this),n&&"changeAxisOrder"===n.type&&n.isInitSort||Gc(a,this._axisGroup,i),PM.prototype.render.call(this,i,t,e,n))},VM.prototype.remove=function(){kM(this)},VM.type="cartesianAxis",VM),NM={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=W(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(),g=0;g<h.length;g++){var f=o.toGlobalCoord(h[g].coord),f=(l?(c[0]=f,c[1]=s.y,p[0]=f,p[1]=s.y+s.height):(c[0]=s.x,c[1]=f,p[0]=s.x+s.width,p[1]=f),u++%a.length),y=h[g].tickValue,y=new Eh({anid:null!=y?"line_"+h[g].tickValue:null,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:V({stroke:a[f]},d),silent:!0});Nc(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 Eh({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}));Nc(d.shape,h.lineWidth),e.add(d)}},splitArea:function(t,e,n,i){AM(t,e,n,i)}},EM=(u(zM,LM=e),zM.type="xAxis",zM);function zM(){var t=null!==LM&&LM.apply(this,arguments)||this;return t.type=zM.type,t}function VM(){var t=null!==PM&&PM.apply(this,arguments)||this;return t.type=VM.type,t.axisPointerClass="CartesianAxisPointer",t}u(GM,BM=e),GM.type="yAxis";var BM,FM=GM;function GM(){var t=null!==BM&&BM.apply(this,arguments)||this;return t.type=EM.type,t}u(XM,WM=Uy),XM.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new L({shape:t.coordinateSystem.getRect(),style:V({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},XM.type="grid";var WM,HM=XM,YM={offset:0};function XM(){var t=null!==WM&&WM.apply(this,arguments)||this;return t.type="grid",t}function UM(t){t.registerComponentView(HM),t.registerComponentModel(zS),t.registerCoordinateSystem("cartesian2d",aM),YS(t,"x",FS,YM),YS(t,"y",FS,YM),t.registerComponentView(EM),t.registerComponentView(FM),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function ZM(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})})}r(function(t){r(UM),t.registerSeriesModel(IS),t.registerChartView(RS),t.registerLayout(Qw("scatter"))});u(KM,jM=Z),KM.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},KM.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,o=this.childAt(1),r=0;r<i;r++){var a=i0(e,-1,-1,2,2,n),s=(a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5}),-r/i*t.period+t.effectOffset);a.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(s).start(),a.animateStyle(!0).when(t.period,{opacity:0}).delay(s).start(),o.add(a)}ZM(o,t)},KM.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale","rippleNumber"],o=0;o<i.length;o++){var r=i[o];if(e[r]!==t[r])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}ZM(n,t)},KM.prototype.highlight=function(){su(this)},KM.prototype.downplay=function(){lu(this)},KM.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},KM.prototype.updateData=function(t,e){var n=this,i=t.hostModel,o=(this.childAt(0).updateData(t,e),this.childAt(1)),r=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=o0(t.getItemVisual(e,"symbolSize")),l=t.getItemVisual(e,"style"),u=l&&l.fill,l=r.getModel("emphasis"),s=(o.setScale(s),o.traverse(function(t){t.setStyle("fill",u)}),r0(t.getItemVisual(e,"symbolOffset"),s)),s=(s&&(o.x=s[0],o.y=s[1]),t.getItemVisual(e,"symbolRotate")),h=(o.rotation=(s||0)*Math.PI/180||0,{});h.showEffectOn=i.get("showEffectOn"),h.rippleScale=r.get(["rippleEffect","scale"]),h.brushType=r.get(["rippleEffect","brushType"]),h.period=1e3*r.get(["rippleEffect","period"]),h.effectOffset=e/t.count(),h.z=i.getShallow("z")||0,h.zlevel=i.getShallow("zlevel")||0,h.symbolType=a,h.color=u,h.rippleEffectColor=r.get(["rippleEffect","color"]),h.rippleNumber=r.get(["rippleEffect","number"]),"render"===h.showEffectOn?(this._effectCfg?this.updateEffectAnimation(h):this.startEffectAnimation(h),this._effectCfg=h):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(t){"emphasis"===t?"render"!==h.showEffectOn&&n.startEffectAnimation(h):"normal"===t&&"render"!==h.showEffectOn&&n.stopEffectAnimation()}),this._effectCfg=h,_u(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},KM.prototype.fadeOut=function(t){t&&t()};var jM,qM=KM;function KM(t,e){var n=jM.call(this)||this,i=new fw(t,e),o=new Z;return n.add(i),n.add(o),n.updateData(t,e),n}u(QM,$M=$y),QM.prototype.init=function(){this._symbolDraw=new bw(qM)},QM.prototype.render=function(t,e,n){var i=t.getData(),o=this._symbolDraw;o.updateData(i,{clipShape:this._getClipShape(t)}),this.group.add(o.group)},QM.prototype._getClipShape=function(t){var e=t.coordinateSystem,e=e&&e.getArea&&e.getArea();return t.get("clip",!0)?e:null},QM.prototype.updateTransform=function(t,e,n){var i=t.getData(),t=(this.group.dirty(),Qw("").reset(t,e,n));t.progress&&t.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},QM.prototype._updateGroupTransform=function(t){t=t.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=Xe(t.getRoamTransform()),this.group.decomposeTransform())},QM.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},QM.type="effectScatter";var $M,JM=QM;function QM(){var t=null!==$M&&$M.apply(this,arguments)||this;return t.type=QM.type,t}u(nI,tI=zy),nI.prototype.getInitialData=function(t,e){return R1(null,this,{useEncodeDefaulter:!0})},nI.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},nI.type="series.effectScatter",nI.dependencies=["grid","polar"],nI.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10};var tI,eI=nI;function nI(){var t=null!==tI&&tI.apply(this,arguments)||this;return t.type=nI.type,t.hasSymbolVisual=!0,t}r(function(t){t.registerChartView(JM),t.registerSeriesModel(eI),t.registerLayout(Qw("effectScatter"))});function iI(){}var oI,rI,aI=["color","borderColor"],sI=(u(hI,rI=$y),hI.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},hI.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},hI.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},hI.prototype.eachRendered=function(t){qc(this._progressiveEls||this.group,t)},hI.prototype._updateDrawMode=function(t){t=t.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},hI.prototype._renderNormal=function(i){var o=i.getData(),r=this._data,a=this.group,s=o.getLayout("isSimpleBox"),l=i.get("clip",!0),t=i.coordinateSystem,u=t.getArea&&t.getArea();this._data||a.removeAll(),o.diff(r).add(function(t){var e,n;o.hasValue(t)&&(e=o.getItemLayout(t),l&&pI(u,e)||(yc(n=cI(e,0,!0),{shape:{points:e.ends}},i,t),dI(n,o,t,s),a.add(n),o.setItemGraphicEl(t,n)))}).update(function(t,e){var n,e=r.getItemGraphicEl(e);!o.hasValue(t)||(n=o.getItemLayout(t),l&&pI(u,n))?a.remove(e):(e?(C(e,{shape:{points:n.ends}},i,t),bc(e)):e=cI(n),dI(e,o,t,s),a.add(e),o.setItemGraphicEl(t,e))}).remove(function(t){t=r.getItemGraphicEl(t);t&&a.remove(t)}).execute(),this._data=o},hI.prototype._renderLarge=function(t){this._clear(),vI(t,this.group);t=t.get("clip",!0)?Pb(t.coordinateSystem,!1,t):null;t?this.group.setClipPath(t):this.group.removeClipPath()},hI.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),o=i.getLayout("isSimpleBox");null!=(n=t.next());){var r=cI(i.getItemLayout(n));dI(r,i,n,o),r.incremental=!0,this.group.add(r),this._progressiveEls.push(r)}},hI.prototype._incrementalRenderLarge=function(t,e){vI(e,this.group,this._progressiveEls,!0)},hI.prototype.remove=function(t){this._clear()},hI.prototype._clear=function(){this.group.removeAll(),this._data=null},hI.type="candlestick",hI),lI=(u(uI,oI=q),uI.prototype.getDefaultShape=function(){return new iI},uI.prototype.buildPath=function(t,e){e=e.points;this.__simpleBox?(t.moveTo(e[4][0],e[4][1]),t.lineTo(e[6][0],e[6][1])):(t.moveTo(e[0][0],e[0][1]),t.lineTo(e[1][0],e[1][1]),t.lineTo(e[2][0],e[2][1]),t.lineTo(e[3][0],e[3][1]),t.closePath(),t.moveTo(e[4][0],e[4][1]),t.lineTo(e[5][0],e[5][1]),t.moveTo(e[6][0],e[6][1]),t.lineTo(e[7][0],e[7][1]))},uI);function uI(t){t=oI.call(this,t)||this;return t.type="normalCandlestickBox",t}function hI(){var t=null!==rI&&rI.apply(this,arguments)||this;return t.type=hI.type,t}function cI(t,e,n){var i,o=t.ends;return new lI({shape:{points:n?(i=t,B(o,function(t){return(t=t.slice())[1]=i.initBaseline,t})):o},z2:100})}function pI(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function dI(t,e,n,i){var o=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,Mu(t,o)}function gI(){}u(mI,fI=q),mI.prototype.getDefaultShape=function(){return new gI},mI.prototype.buildPath=function(t,e){for(var n,i=e.points,o=0;o<i.length;)this.__sign===i[o++]?(n=i[o++],t.moveTo(n,i[o++]),t.lineTo(n,i[o++])):o+=3};var fI,yI=mI;function mI(t){t=fI.call(this,t)||this;return t.type="largeCandlestickBox",t}function vI(t,e,n,i){var o=t.getData().getLayout("largePoints"),r=new yI({shape:{points:o},__sign:1,ignoreCoarsePointer:!0}),a=(e.add(r),new yI({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0})),o=(e.add(a),new yI({shape:{points:o},__sign:0,ignoreCoarsePointer:!0}));e.add(o),xI(1,r,t),xI(-1,a,t),xI(0,o,t),i&&(r.incremental=!0,a.incremental=!0),n&&n.push(r,a)}function xI(t,e,n){var i=n.get(["itemStyle",0<t?"borderColor":"borderColor0"])||n.get(["itemStyle",0<t?"color":"color0"]),t=(0===t&&(i=n.get(["itemStyle","borderColorDoji"])),n.getModel("itemStyle").getItemStyle(aI));e.useStyle(t),e.style.fill=null,e.style.stroke=i}_I.prototype.getInitialData=function(t,e){var n,i,o=e.getComponent("xAxis",this.get("xAxisIndex")),e=e.getComponent("yAxis",this.get("yAxisIndex")),r=o.get("type"),a=e.get("type"),r=("category"===r?(t.layout="horizontal",n=o.getOrdinalMeta(),l=!0):"category"===a?(t.layout="vertical",n=e.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal",["x","y"]),a="horizontal"===t.layout?0:1,s=this._baseAxisDim=r[a],r=r[1-a],o=[o,e],e=o[a].get("type"),o=o[1-a].get("type"),a=t.data,l=(a&&l&&(i=[],et(a,function(t,e){var n;W(t)?(n=t.slice(),t.unshift(e)):W(t.value)?((n=H({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,i.push(n)}),t.data=i),this.defaultValueDimensions),a=[{name:s,type:r1(e),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:r,type:r1(o),dimsDef:l.slice()}];return mS(this,{coordDimensions:a,dimensionsCount:l.length+1,encodeDefaulter:P(Jd,a,this)})},_I.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis};xa=_I;function _I(){}u(SI,bI=zy),SI.prototype.getShadowDim=function(){return"open"},SI.prototype.brushSelector=function(t,e,n){e=e.getItemLayout(t);return e&&n.rect(e.brushRect)},SI.type="series.candlestick",SI.dependencies=["xAxis","yAxis","grid"],SI.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300};var bI,wI=SI;function SI(){var t=null!==bI&&bI.apply(this,arguments)||this;return t.type=SI.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}function MI(t){t&&W(t.series)&&et(t.series,function(t){O(t)&&"k"===t.type&&(t.type="candlestick")})}ut(wI,xa,!0);var II=["itemStyle","borderColor"],TI=["itemStyle","borderColor0"],CI=["itemStyle","borderColorDoji"],DI=["itemStyle","color"],AI=["itemStyle","color0"],kI={seriesType:"candlestick",plan:jy(),performRawSeries:!0,reset:function(t,e){if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n;null!=(n=t.next());){var i=e.getItemModel(n),o=e.getItemLayout(n).sign,r=i.getItemStyle();r.fill=i.get(0<o?DI:AI),r.stroke=(o=o,i.get(0===o?CI:0<o?II:TI)||r.fill),H(e.ensureUniqueItemVisual(n,"style"),r)}}}}},LI={seriesType:"candlestick",plan:jy(),reset:function(g){var t,e,m=g.coordinateSystem,n=g.getData(),v=(t=n,o="category"===(o=(i=g).getBaseAxis()).type?o.getBandWidth():(o=o.getExtent(),Math.abs(o[1]-o[0])/t.count()),t=j(R(i.get("barMaxWidth"),o),o),e=j(R(i.get("barMinWidth"),1),o),null!=(i=i.get("barWidth"))?j(i,o):Math.max(Math.min(o/2,t),e)),i=["x","y"],x=n.getDimensionIndex(n.mapDimension(i[0])),o=B(n.mapDimensionsAll(i[1]),n.getDimensionIndex,n),_=o[0],b=o[1],w=o[2],S=o[3];if(n.setLayout({candleWidth:v,isSimpleBox:v<=1.3}),!(x<0||o.length<4))return{progress:g.pipelineContext.large?function(t,e){for(var n,i=ox(4*t.count),o=0,r=[],a=[],s=e.getStore(),l=!!g.get(["itemStyle","borderColorDoji"]);null!=(n=t.next());){var u=s.get(x,n),h=s.get(_,n),c=s.get(b,n),p=s.get(w,n),d=s.get(S,n);isNaN(u)||isNaN(p)||isNaN(d)?(i[o++]=NaN,o+=3):(i[o++]=PI(s,n,h,c,b,l),r[0]=u,r[1]=p,n=m.dataToPoint(r,null,a),i[o++]=n?n[0]:NaN,i[o++]=n?n[1]:NaN,r[1]=d,n=m.dataToPoint(r,null,a),i[o++]=n?n[1]:NaN)}e.setLayout("largePoints",i)}:function(t,e){for(var n,i=e.getStore();null!=(n=t.next());){var o=i.get(x,n),r=i.get(_,n),a=i.get(b,n),s=i.get(w,n),l=i.get(S,n),u=Math.min(r,a),h=Math.max(r,a),u=g(u,o),h=g(h,o),c=g(s,o),p=g(l,o),d=[],p=(f(d,h,0),f(d,u,1),d.push(y(p),y(h),y(c),y(u)),!!e.getItemModel(n).get(["itemStyle","borderColorDoji"]));e.setItemLayout(n,{sign:PI(i,n,r,a,b,p),initBaseline:(a<r?h:u)[1],ends:d,brushRect:function(t,e,n){t=g(t,n),e=g(e,n);return t[0]-=v/2,e[0]-=v/2,{x:t[0],y:t[1],width:v,height:e[1]-t[1]}}(s,l,o)})}function g(t,e){var n=[];return n[0]=e,n[1]=t,isNaN(e)||isNaN(t)?[NaN,NaN]:m.dataToPoint(n)}function f(t,e,n){var i=e.slice(),e=e.slice();i[0]=Ec(i[0]+v/2,1,!1),e[0]=Ec(e[0]-v/2,1,!0),n?t.push(i,e):t.push(e,i)}function y(t){return t[0]=Ec(t[0],1),t}}}}};function PI(t,e,n,i,o,r){return i<n?-1:n<i?1:r?0:!(0<e)||t.get(o,e-1)<=i?1:-1}function OI(t){t.eachSeriesByType("radar",function(t){var e,i=t.getData(),o=[],r=t.coordinateSystem;r&&(et(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]=RI(t)?t:NI(r)})}),i.each(function(t){var e=dt(o[t],RI)||NI(r);o[t].push(e.slice()),i.setItemLayout(t,o[t])}))})}function RI(t){return!isNaN(t[0])&&!isNaN(t[1])}function NI(t){return[t.cx,t.cy]}function EI(n){var i,t=n.polar;t&&(W(t)||(t=[t]),i=[],et(t,function(t,e){(t.indicator?(t.type&&!t.shape&&(t.shape=t.type),n.radar=n.radar||[],W(n.radar)||(n.radar=[n.radar]),n.radar):i).push(t)}),n.polar=i),et(n.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}r(function(t){t.registerChartView(sI),t.registerSeriesModel(wI),t.registerPreprocessor(MI),t.registerVisual(kI),t.registerLayout(LI)});u(BI,zI=$y),BI.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=o0(t.getItemVisual(e,"symbolSize")),i=i0(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]),Kc[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 Ch,n=new Lh,i={shape:{points:r}},e.shape.points=u(r),n.shape.points=u(r),yc(e,i,l,t),yc(n,i,l,t),i=new Z,o=new Z,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),bc(i),bc(n),C(n,r,l),C(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(V(i.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:s})),Mu(e,i,"lineStyle"),Mu(o,i,"areaStyle"),i.getModel("areaStyle")),l=e.isEmpty()&&e.parentModel.isEmpty(),e=(o.ignore=l,et(["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(V(e.getAreaStyle(),{fill:s,opacity:.7,decal:a.decal})),i.getModel("emphasis")),u=e.getModel("itemStyle").getItemStyle();r.eachChild(function(t){t instanceof nl?(e=t.style,t.useStyle(H({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=S(u);var e=c.getStore().get(c.getDimensionIndex(t.__dimIdx),n);null!=e&&!isNaN(e)||(e=""),tp(t,ep(i),{labelFetcher:c.hostModel,labelDataIndex:n,labelDimIndex:t.__dimIdx,defaultText:e,inheritColor:s,defaultOpacity:a.opacity})}),_u(t,e.get("focus"),e.get("blurScope"),e.get("disabled"))}),this._data=c},BI.prototype.remove=function(){this.group.removeAll(),this._data=null},BI.type="radar";var zI,VI=BI;function BI(){var t=null!==zI&&zI.apply(this,arguments)||this;return t.type=BI.type,t}u(WI,FI=zy),WI.prototype.init=function(t){FI.prototype.init.apply(this,arguments),this.legendVisualProvider=new vS(T(this.getData,this),T(this.getRawData,this))},WI.prototype.getInitialData=function(t,e){return mS(this,{generateCoord:"indicator_",generateCoordCount:1/0})},WI.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=Ay(this,n);return by("section",{header:r,sortBlocks:!0,blocks:B(o,function(t){var e=i.get(i.mapDimension(t.dim),n);return by("nameValue",{markerType:"subItem",markerColor:a,name:t.name,value:e,sortParam:e})})})},WI.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(B(n.dimensions,function(t){return e.mapDimension(t)}),t),o=0,r=i.length;o<r;o++){var a;if(!isNaN(i[o]))return a=n.getIndicatorAxes(),n.coordToPoint(a[o].dataToCoord(i[o]),o)}},WI.type="series.radar",WI.dependencies=["radar"],WI.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8};var FI,GI=WI;function WI(){var t=null!==FI&&FI.apply(this,arguments)||this;return t.type=WI.type,t.hasSymbolVisual=!0,t}Zm=WS.value;function HI(t,e){return V({show:e},t)}u(UI,YI=g),UI.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=V({color:t.color},l)),d(S(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=(Y(h)?(e=t.name,t.name=h.replace("{value}",null!=e?e:"")):D(h)&&(t.name=h(t.name,t)),new Tp(t,null,this.ecModel));return ut(e,Zx.prototype),e.mainType="radar",e.componentIndex=this.componentIndex,e},this);this._indicatorModels=t},UI.prototype.getIndicatorModels=function(){return this._indicatorModels},UI.type="radar",UI.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"}},Zm.axisLine),axisLabel:HI(Zm.axisLabel,!1),axisTick:HI(Zm.axisTick,!1),splitLine:HI(Zm.splitLine,!0),splitArea:HI(Zm.splitArea,!0),indicator:[]};var YI,XI=UI;function UI(){var t=null!==YI&&YI.apply(this,arguments)||this;return t.type=UI.type,t}var ZI,jI=["axisLine","axisTickLabel","axisName"],qI=(u(KI,ZI=Uy),KI.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},KI.prototype._buildAxes=function(t){var n=t.coordinateSystem;et(B(n.getIndicatorAxes(),function(t){var e=t.model.get("showName")?t.name:"";return new pM(t.model,{axisName:e,position:[n.cx,n.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){et(jI,t.add,t),this.group.add(t.getGroup())},this)},KI.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=W(o)?o:[o],h=W(t)?t:[t],c=[],p=[];if("circle"===i)for(var d=e[0].getTicksCoords(),g=n.cx,f=n.cy,y=0;y<d.length;y++)s&&c[M(c,u,y)].push(new $u({shape:{cx:g,cy:f,r:d[y].coord}})),l&&y<d.length-1&&p[M(p,h,y)].push(new wh({shape:{cx:g,cy:f,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)})}),x=[],y=0;y<=m;y++){for(var _=[],b=0;b<e.length;b++)_.push(v[b][y]);_[0]&&_.push(_[0].slice()),s&&c[M(c,u,y)].push(new Lh({shape:{points:_}})),l&&x&&p[M(p,h,y-1)].push(new Ch({shape:{points:_.concat(x)}})),x=_.slice().reverse()}var w=r.getLineStyle(),S=a.getAreaStyle();et(p,function(t,e){this.group.add(Oc(t,{style:V({stroke:"none",fill:h[e%h.length]},S),silent:!0}))},this),et(c,function(t,e){this.group.add(Oc(t,{style:V({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}},KI.type="radar",KI);function KI(){var t=null!==ZI&&ZI.apply(this,arguments)||this;return t.type=KI.type,t}u(QI,$I=bp);var $I,JI=QI;function QI(t,e,n){t=$I.call(this,t,e,n)||this;return t.type="value",t.angle=0,t.name="",t}e2.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e2.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},e2.prototype.coordToPoint=function(t,e){e=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(e),this.cy-t*Math.sin(e)]},e2.prototype.pointToData=function(t){var e=t[0]-this.cx,t=t[1]-this.cy,n=Math.sqrt(e*e+t*t);e/=n,t/=n;for(var i,o=Math.atan2(-t,e),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&&(i=l,a=s,r=u)}return[a,+(i&&i.coordToData(n))]},e2.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=j(n[0],i),this.cy=j(n[1],e),this.startAngle=t.get("startAngle")*Math.PI/180,t.get("radius"));(Y(i)||X(i))&&(i=[0,i]),this.r0=j(i[0],o),this.r=j(i[1],o),et(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)},e2.prototype.update=function(i,t){var o=this._indicatorAxes,r=this._model,e=(et(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(),et(o,function(t){t.scale.unionExtentFromData(n,n.mapDimension(t.dim))}))},this),r.get("splitNumber")),n=new tx;n.setExtent(0,e),n.setInterval(1),et(o,function(t,e){rM(t.scale,t.model,n)})},e2.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},e2.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},e2.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e2.create=function(t,n){var i=[];return t.eachComponent("radar",function(t){var e=new e2(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},e2.dimensions=[];var t2=e2;function e2(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=B(t.getIndicatorModels(),function(t,e){var e="indicator_"+e,n=new JI(e,new tx);return n.name=t.get("name"),(n.model=t).axis=n,this.dimensions.push(e),n},this),this.resize(t,n)}function n2(t){t.registerCoordinateSystem("radar",t2),t.registerComponentModel(XI),t.registerComponentView(qI),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(t){e.setItemVisual(t,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}r(function(t){r(n2),t.registerChartView(VI),t.registerSeriesModel(GI),t.registerLayout(OI),t.registerProcessor(rS("radar")),t.registerPreprocessor(EI)});o2.prototype.update=function(t,e,n,i,o,r){var a=this._getBrush(),s=this._getGradient(o,"inRange"),l=this._getGradient(o,"outOfRange"),u=this.pointSize+this.blurSize,o=this.canvas,h=o.getContext("2d"),c=t.length;o.width=e,o.height=n;for(var p=0;p<c;++p){var d=t[p],g=d[0],f=d[1],y=i(d[2]);h.globalAlpha=y,h.drawImage(a,g-u,f-u)}if(o.width&&o.height){for(var e=h.getImageData(0,0,o.width,o.height),m=e.data,v=0,x=m.length,_=this.minOpacity,b=this.maxOpacity-_;v<x;){var w,y=m[v+3]/256,S=4*Math.floor(255*y);0<y?(w=r(y)?s:l,0<y&&(y=y*b+_),m[v++]=w[S],m[v++]=w[1+S],m[v++]=w[2+S],m[v++]=w[3+S]*y*256):v+=4}h.putImageData(e,0,0)}return o},o2.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Q.createCanvas()),e=this.pointSize+this.blurSize,n=2*e,i=(t.width=n,t.height=n,t.getContext("2d"));return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},o2.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),o=[0,0,0,0],r=0,a=0;a<256;a++)t[e](a/255,!0,o),i[r++]=o[0],i[r++]=o[1],i[r++]=o[2],i[r++]=o[3];return i};var i2=o2;function o2(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Q.createCanvas();this.canvas=t}function r2(t){t=t.dimensions;return"lng"===t[0]&&"lat"===t[1]}u(l2,a2=$y),l2.prototype.render=function(n,t,e){t.eachComponent("visualMap",function(e){e.eachTargetSeries(function(t){t===n&&(i=e)})}),this._progressiveEls=null,this.group.removeAll();var i,t=n.coordinateSystem;"cartesian2d"===t.type||"calendar"===t.type?this._renderOnCartesianAndCalendar(n,e,0,n.getData().count()):r2(t)&&this._renderOnGeo(t,n,i,e)},l2.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},l2.prototype.incrementalRender=function(t,e,n,i){var o=e.coordinateSystem;o&&(r2(o)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},l2.prototype.eachRendered=function(t){qc(this._progressiveEls||this.group,t)},l2.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,o){var r,a,s,l,u,h=t.coordinateSystem,c=zb(h,"cartesian2d");c&&(x=h.getAxis("x"),r=h.getAxis("y"),a=x.getBandWidth()+.5,s=r.getBandWidth()+.5,l=x.scale.getExtent(),u=r.scale.getExtent());for(var p=this.group,d=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),f=t.getModel(["blur","itemStyle"]).getItemStyle(),y=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),v=ep(t),x=t.getModel("emphasis"),_=x.get("focus"),b=x.get("blurScope"),w=x.get("disabled"),S=c?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],M=n;M<i;M++){var I=void 0,T=d.getItemVisual(M,"style");if(c){var C=d.get(S[0],M),D=d.get(S[1],M);if(isNaN(d.get(S[2],M))||isNaN(C)||isNaN(D)||C<l[0]||C>l[1]||D<u[0]||D>u[1])continue;var C=h.dataToPoint([C,D]),I=new L({shape:{x:C[0]-a/2,y:C[1]-s/2,width:a,height:s},style:T})}else{if(isNaN(d.get(S[1],M)))continue;I=new L({z2:1,shape:h.dataToRect([d.get(S[0],M)]).contentShape,style:T})}d.hasItemOption&&(g=(C=(D=d.getItemModel(M)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),f=D.getModel(["blur","itemStyle"]).getItemStyle(),y=D.getModel(["select","itemStyle"]).getItemStyle(),m=D.get(["itemStyle","borderRadius"]),_=C.get("focus"),b=C.get("blurScope"),w=C.get("disabled"),v=ep(D)),I.shape.r=m;var A=t.getRawValue(M),k="-";A&&null!=A[2]&&(k=A[2]+""),tp(I,v,{labelFetcher:t,labelDataIndex:M,defaultOpacity:T.opacity,defaultText:k}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=f,I.ensureState("select").style=y,_u(I,_,b,w),(I.incremental=o)&&(I.states.emphasis.hoverLayer=!0),p.add(I),d.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},l2.prototype._renderOnGeo=function(i,t,e,n){var o,r,a,s,l,u,h,c=e.targetVisuals.inRange,p=e.targetVisuals.outOfRange,d=t.getData(),g=this._hmLayer||this._hmLayer||new i2,t=(g.blurSize=t.get("blurSize"),g.pointSize=t.get("pointSize"),g.minOpacity=t.get("minOpacity"),g.maxOpacity=t.get("maxOpacity"),i.getViewRect().clone()),f=i.getRoamTransform(),y=(t.applyTransform(f),Math.max(t.x,0)),m=Math.max(t.y,0),f=Math.min(t.width+t.x,n.getWidth()),t=Math.min(t.height+t.y,n.getHeight()),n=f-y,f=t-m,t=[d.mapDimension("lng"),d.mapDimension("lat"),d.mapDimension("value")],d=d.mapArray(t,function(t,e,n){t=i.dataToPoint([t,e]);return t[0]-=y,t[1]-=m,t.push(n),t}),t=e.getExtent(),v="visualMap.continuous"===e.type?(h=e.option.range,v=t[1]-t[0],h=[(h[0]-t[0])/v,(h[1]-t[0])/v],function(t){return t>=h[0]&&t<=h[1]}):(o=t,r=e.getPieceList(),a=e.option.selected,s=o[1]-o[0],l=(r=B(r,function(t){return{interval:[(t.interval[0]-o[0])/s,(t.interval[1]-o[0])/s]}})).length,u=0,function(t){for(var e,n=u;n<l;n++)if((e=r[n].interval)[0]<=t&&t<=e[1]){u=n;break}if(n===l)for(n=u-1;0<=n;n--)if((e=r[n].interval)[0]<=t&&t<=e[1]){u=n;break}return 0<=n&&n<l&&a[n]}),t=(g.update(d,n,f,c.color.getNormalizer(),{inRange:c.color.getColorMapper(),outOfRange:p.color.getColorMapper()},v),new nl({style:{width:n,height:f,x:y,y:m,image:g.canvas},silent:!0}));this.group.add(t)},l2.type="heatmap";var a2,s2=l2;function l2(){var t=null!==a2&&a2.apply(this,arguments)||this;return t.type=l2.type,t}u(c2,u2=zy),c2.prototype.getInitialData=function(t,e){return R1(null,this,{generateCoord:"value"})},c2.prototype.preventIncremental=function(){var t=wg.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},c2.type="series.heatmap",c2.dependencies=["grid","geo","calendar"],c2.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}};var u2,h2=c2;function c2(){var t=null!==u2&&u2.apply(this,arguments)||this;return t.type=c2.type,t}function p2(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=y2(s),r=m2(r),s&&r;){o=y2(o),a=m2(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&&!y2(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=c-l),r&&!m2(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=u-h,n=t)}return n}(t,o,t.parentNode.hierNode.defaultAncestor||i[0],e)}function d2(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function g2(t){return arguments.length?t:v2}function f2(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function y2(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function m2(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function v2(t,e){return t.parentNode===e.parentNode?1:2}r(function(t){t.registerChartView(s2),t.registerSeriesModel(h2)});var x2,_2=oe,b2=(u(w2,x2=Go),w2.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new z(t,e,n,i),this._rect},w2.prototype.getBoundingRect=function(){return this._rect},w2.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new z(t,e,n,i)},w2.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()},w2.prototype.setCenter=function(t,e){t&&(this._center=[j(t[0],e.getWidth()),j(t[1],e.getHeight())],this._updateCenterAndZoom())},w2.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()},w2.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},w2.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},w2.prototype.getZoom=function(){return this._zoom||1},w2.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},w2.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom(),i=oe([],i,t),n=oe([],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()},w2.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;(e.parent=t).updateTransform(),e.updateTransform(),Be(this.transform||(this.transform=[]),e.transform||ze()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Ye(this.invTransform,this.transform),this.decomposeTransform()},w2.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new Go;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}}},w2.prototype.getViewRect=function(){return this._viewRect},w2.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},w2.prototype.dataToPoint=function(t,e,n){e=e?this._rawTransform:this.transform;return n=n||[],e?_2(n,t,e):Ht(n,t)},w2.prototype.pointToData=function(t){var e=this.invTransform;return e?_2([],t,e):[t[0],t[1]]},w2.prototype.convertToPixel=function(t,e,n){e=S2(e);return e===this?e.dataToPoint(n):null},w2.prototype.convertFromPixel=function(t,e,n){e=S2(e);return e===this?e.pointToData(n):null},w2.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},w2.dimensions=["x","y"],w2);function w2(t){var e=x2.call(this)||this;return e.type="view",e.dimensions=["x","y"],e._roamTransformable=new Go,e._rawTransformable=new Go,e.name=t,e}function S2(t){t=t.seriesModel;return t?t.coordinateSystem:null}function M2(t,e,n){t=t.target;t.x+=e,t.y+=n,t.dirty()}function I2(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 T2="\0_ec_interaction_mutex";function C2(t,e){return D2(t)[e]}function D2(t){return t[T2]||(t[T2]={})}Wv({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Bt);u(L2,A2=ce),L2.prototype.isDragging=function(){return this._dragging},L2.prototype.isPinching=function(){return this._pinching},L2.prototype.setPointerChecker=function(t){this.pointerChecker=t},L2.prototype.dispose=function(){this.disable()},L2.prototype._mousedownHandler=function(t){if(!Pe(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)}},L2.prototype._mousemoveHandler=function(t){var e,n,i,o,r,a;this._dragging&&R2("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!C2(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&&Le(t.event),O2(this,"pan","moveOnMouseMove",t,{dx:r,dy:a,oldX:i,oldY:o,newX:e,newY:n,isAvailableBehavior:null}))},L2.prototype._mouseupHandler=function(t){Pe(t)||(this._dragging=!1)},L2.prototype._mousewheelHandler=function(t){var e=R2("zoomOnMouseWheel",t,this._opt),n=R2("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,P2(this,"zoom","zoomOnMouseWheel",t,{scale:0<i?e:1/e,originX:r,originY:a,isAvailableBehavior:null})),n)&&P2(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})},L2.prototype._pinchHandler=function(t){C2(this._zr,"globalPan")||P2(this,"zoom",null,t,{scale:1<t.pinchScale?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})};var A2,k2=L2;function L2(n){var t=A2.call(this)||this,i=(t._zr=n,T(t._mousedownHandler,t)),o=T(t._mousemoveHandler,t),r=T(t._mouseupHandler,t),a=T(t._mousewheelHandler,t),s=T(t._pinchHandler,t);return t.enable=function(t,e){this.disable(),this._opt=V(S(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 P2(t,e,n,i,o){t.pointerChecker&&t.pointerChecker(i,o.originX,o.originY)&&(Le(i.event),O2(t,e,n,i,o))}function O2(t,e,n,i,o){o.isAvailableBehavior=T(R2,null,n,i),t.trigger(e,o)}function R2(t,e,n){n=n[t];return!t||n&&(!Y(n)||e.event[n+"Key"])}var N2={axisPointer:1,tooltip:1,brush:1};function E2(t,e,n){e=e.getComponentByElement(t.topTarget),t=e&&e.coordinateSystem;return e&&e!==n&&!N2.hasOwnProperty(e.mainType)&&t&&t.model!==n}function z2(){this.parentPoint=[],this.childPoints=[]}u(H2,B2=q),H2.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},H2.prototype.getDefaultShape=function(){return new z2},H2.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=j(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])}}};var V2,B2,F2=H2,G2=(u(W2,V2=$y),W2.prototype.init=function(t,e){this._controller=new k2(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},W2.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){Y2(o,t)&&X2(o,t,null,r,i)}).update(function(t,e){var n=a.getItemGraphicEl(e);Y2(o,t)?X2(o,t,n,r,i):n&&j2(a,e,n,r,i)}).remove(function(t){var e=a.getItemGraphicEl(t);e&&j2(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},W2.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=(as(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 b2);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},W2.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)&&!E2(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){M2(i,t.dx,t.dy),r.dispatchAction({seriesId:o.id,type:"treeRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){I2(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()})},W2.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl(function(t,e){t.setSymbolScale(n)})},W2.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)},W2.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},W2.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},W2.type="tree",W2);function W2(){var t=null!==V2&&V2.apply(this,arguments)||this;return t.type=W2.type,t._mainGroup=new Z,t}function H2(t){return B2.call(this,t)||this}function Y2(t,e){t=t.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function X2(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 fw(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,C(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=f=void 0,p.x===t.x&&!0===a.isExpand&&l.children.length?(g=(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,(f=Math.atan2(l-t.y,g-t.x))<0&&(f=2*Math.PI+f),(y=g<t.x)&&(f-=Math.PI)):((f=Math.atan2(p.y-t.y,p.x-t.x))<0&&(f=2*Math.PI+f),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(y=p.x<t.x)&&(f-=Math.PI):(y=p.x>t.x)||(f-=Math.PI)),d=y?"left":"right",t=(g=(l=s.getModel("label")).get("rotate"))*(Math.PI/180),y=r.getTextContent())&&(r.setTextConfig({position:l.get("position")||d,rotation:null==g?-f:t,origin:"center"}),y.setStyle("verticalAlign","middle")),s.get(["emphasis","focus"])),l="relative"===r?Et(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===r?a.getAncestorsIndices():"descendant"===r?a.getDescendantIndices():null,d=(l&&($(i).focus=l),o),g=a,f=u,t=i,y=c,s=h,r=p,l=e,o=g.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)g.parentNode&&g.parentNode!==f&&C(v=v||(t.__edge=new Wh({shape:q2(c,h,p,y,y)})),{shape:q2(c,h,p,s,r)},d);else if("polyline"===u&&"orthogonal"===c&&g!==f&&g.children&&0!==g.children.length&&!0===g.isExpand){for(var x=g.children,_=[],b=0;b<x.length;b++){var w=x[b].getLayout();_.push([w.x,w.y])}C(v=v||(t.__edge=new F2({shape:{parentPoint:[r.x,r.y],childPoints:[[r.x,r.y]],orient:h,forkPosition:e}})),{shape:{parentPoint:[r.x,r.y],childPoints:_}},d)}v&&("polyline"!==u||g.isExpand)&&(v.useStyle(V({strokeNoScale:!0,fill:null},m)),Mu(v,o,"lineStyle"),ou(v),l.add(v)),i.__edge&&(i.onHoverStateChange=function(t){var e;"blur"===t||(e=a.parentNode&&n.getItemGraphicEl(a.parentNode.dataIndex))&&e.hoverState===Rl||eu(i.__edge,t)})}function U2(t,e,n,i,o){var r,a,s=Z2(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?vc(r,{shape:q2(l,e,a,s,s),style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}):"polyline"===t&&"orthogonal"===i.get("layout")&&vc(r,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}))}function Z2(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 j2(e,t,n,i,o){var r=e.tree.getNodeByDataIndex(t),a=Z2(e.tree.root,r).sourceLayout,s={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};vc(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){U2(t,e,i,o,s)}),U2(r,e,i,o,s)}function q2(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,g,f;return"radial"===t?(u=i.rawX,h=i.rawY,c=o.rawX,p=o.rawY,t=f2(u,h),d=f2(u,h+(p-h)*n),g=f2(c,p+(h-p)*n),f=f2(c,p),{x1:t.x||0,y1:t.y||0,x2:f.x||0,y2:f.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:g.x||0,cpy2:g.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 K2=i();function $2(n){var i=n.mainData,t=n.datas;t||(t={main:i},n.datasAttr={main:"data"}),n.datas=n.mainData=null,iT(i,t,n),et(t,function(e){et(i.TRANSFERABLE_METHODS,function(t){e.wrapMethod(t,P(J2,n))})}),i.wrapMethod("cloneShallow",P(tT,n)),et(i.CHANGABLE_METHODS,function(t){i.wrapMethod(t,P(Q2,n))}),Tt(t[i.dataType]===i)}function J2(t,e){var n;return K2(n=this).mainData===n?iT((n=H({},K2(this).datas))[this.dataType]=e,n,t):oT(e,this.dataType,K2(this).mainData,t),e}function Q2(t,e){return t.struct&&t.struct.update(),e}function tT(n,i){return et(K2(i).datas,function(t,e){t!==i&&oT(t.cloneShallow(),e,i,n)}),i}function eT(t){var e=K2(this).mainData;return null==t||null==e?e:K2(e).datas[t]}function nT(){var e=K2(this).mainData;return null==e?[{data:e}]:B(G(K2(e).datas),function(t){return{type:t,data:K2(e).datas[t]}})}function iT(n,t,i){K2(n).datas={},et(t,function(t,e){oT(t,e,n,i)})}function oT(t,e,n,i){K2(n).datas[e]=t,K2(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=eT,t.getLinkedDataAll=nT}aT.prototype.isRemoved=function(){return this.dataIndex<0},aT.prototype.eachNode=function(t,e,n){D(t)&&(n=e,e=t,t=null);var i,o=(t=Y(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)},aT.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},aT.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}},aT.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}},aT.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},aT.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},aT.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},aT.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},aT.prototype.setLayout=function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},aT.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},aT.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},aT.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},aT.prototype.setVisual=function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},aT.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},aT.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},aT.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},aT.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},aT.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},aT.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)};var rT=aT;function aT(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}lT.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},lT.prototype.getNodeByDataIndex=function(t){t=this.data.getRawIndex(t);return this._nodes[t]},lT.prototype.getNodeById=function(t){return this.root.getNodeById(t)},lT.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},lT.prototype.clearLayouts=function(){this.data.clearItemLayouts()},lT.createTree=function(t,e,n){var l=new lT(e),u=[],h=1,t=(!function t(e,n){var i,o=e.value,r=(h=Math.max(h,W(o)?o.length:1),u.push(e),new rT(Qr(e.name,""),l)),a=(n?(o=r,i=(n=n).children,o.parentNode!==n&&(i.push(o),o.parentNode=n)):l.root=r,l._nodes.push(r),e.children);if(a)for(var s=0;s<a.length;s++)t(a[s],r)}(t),l.root.updateDepthAndHeight(0),C1(u,{coordDimensions:["value"],dimensionsCount:h}).dimensions),t=new T1(t,e);return t.initData(u),n&&n(t),$2({mainData:t,struct:l,structAttr:"tree"}),l.update(),l};var sT=lT;function lT(t){this.type="tree",this._nodes=[],this.hostModel=t}function uT(t,e,n){if(t&&0<=F(e,t.type))return e=n.getData().tree.root,(n=Y(n=t.targetNode)?e.getNodeById(n):n)&&e.contains(n)||null!=(t=t.targetNodeId)&&(n=e.getNodeById(t))?{node:n}:void 0}function hT(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function cT(t,e){return 0<=F(hT(t),e)}function pT(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}u(fT,dT=zy),fT.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Tp(n,this,this.ecModel),o=sT.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})}),r=0,a=(o.eachNode("preorder",function(t){t.depth>r&&(r=t.depth)}),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},fT.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},fT.prototype.setZoom=function(t){this.option.zoom=t},fT.prototype.setCenter=function(t){this.option.center=t},fT.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 by("nameValue",{name:a,value:i,noValue:isNaN(i)||null==i})},fT.prototype.getDataParams=function(t){var e=dT.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=pT(t,this),e.collapsed=!t.isExpand,e},fT.type="series.tree",fT.layoutMode="box",fT.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 dT,gT=fT;function fT(){var t=null!==dT&&dT.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}function yT(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 mT(t,A){t.eachSeriesByType("tree",function(t){var e=function(t,e){return Cd(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e=A),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,g2(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(i=e.width,o=e.height,g2());var a,s,l,u,h,c,p,d,g,f=(e=t.getData().tree.root).children[0];if(f){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,x=[y];m=x.pop();)if(v=m.children,m.isExpand&&v.length)for(var _=v.length-1;0<=_;_--){var b=v[_];b.hierNode={defaultAncestor:null,ancestor:b,prelim:0,modifier:0,change:0,shift:0,i:_,thread:null},x.push(b)}for(var w,S=p2,M=r,I=[f],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=-f.hierNode.prelim,yT(f,d2),yT(l=s=a=f,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),yT(f,function(t){p=(t.getLayout().x+u)*h,d=(t.depth-1)*c;var e=f2(p,d);t.setLayout({x:e.x,y:e.y,rawX:p,rawY:d},!0)})):"RL"===(g=t.getOrient())||"LR"===g?(c=o/(s.getLayout().x+e+u),h=i/(l.depth-1||1),yT(f,function(t){d=(t.getLayout().x+u)*c,p="LR"===g?(t.depth-1)*h:i-(t.depth-1)*h,t.setLayout({x:p,y:d},!0)})):"TB"!==g&&"BT"!==g||(h=i/(s.getLayout().x+e+u),c=o/(l.depth-1||1),yT(f,function(t){p=(t.getLayout().x+u)*h,d="TB"===g?(t.depth-1)*c:o-(t.depth-1)*c,t.setLayout({x:p,y:d},!0)}))}})}function vT(t){t.eachSeriesByType("tree",function(t){var n=t.getData();n.tree.eachNode(function(t){var e=t.getModel().getModel("itemStyle").getItemStyle();H(n.ensureUniqueItemVisual(t.dataIndex,"style"),e)})})}function xT(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function _T(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(xT(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(xT(t,a),i),t.setZoom(s*r)),{center:t.getCenter(),zoom:t.getZoom()}}r(function(t){t.registerChartView(G2),t.registerSeriesModel(gT),t.registerLayout(mT),t.registerVisual(vT),(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=_T(t.coordinateSystem,n,void 0,i);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})})});var bT=["treemapZoomToNode","treemapRender","treemapMove"];function wT(s){var t=s.getData().tree,l={};t.eachNode(function(t){for(var e=t;e&&1<e.depth;)e=e.parentNode;a=s.ecModel,n=e.name||e.dataIndex+"",i=l,r=Ur(a.get(["aria","decal","decals"]));var n,i,o,r,a=lg(a,rg,r,null,n,i,o);t.setVisual("decal",a)})}u(IT,ST=zy),IT.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data},i=(!function e(t){var n=0;et(t.children,function(t){e(t);t=t.value;W(t)&&(t=t[0]),n+=t});var i=t.value;W(i)&&(i=i[0]),null!=i&&!isNaN(i)||(i=n),i<0&&(i=0),W(t.value)?t.value[0]=i:t.value=i}(n),t.levels||[]),o=this.designatedVisualItemStyle={},r=new Tp({itemStyle:o},this,e),a=B((t.levels=function(t,e){var i,o,n=Ur(e.get("color")),e=Ur(e.get(["aria","decal","decals"]));{var r;if(n)return et(t=t||[],function(t){var t=new Tp(t),e=t.get("color"),n=t.get("decal");(t.get(["itemStyle","color"])||e&&"none"!==e)&&(i=!0),(t.get(["itemStyle","decal"])||n&&"none"!==n)&&(o=!0)}),r=t[0]||(t[0]={}),i||(r.color=n.slice()),!o&&e&&(r.decal=e.slice()),t}}(i,e))||[],function(t){return new Tp(t,r,e)},this),s=sT.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){e=s.getNodeByDataIndex(e),e=e?a[e.depth]:null;return t.parentModel=e||r,t})});return s.data},IT.prototype.optionUpdated=function(){this.resetViewRoot()},IT.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t);return by("nameValue",{name:i.getName(t),value:o})},IT.prototype.getDataParams=function(t){var e=ST.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=pT(t,this),e.treePathInfo=e.treeAncestors,e},IT.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},H(this.layoutInfo,t)},IT.prototype.mapIdToIndex=function(t){var e=this._idIndexMap,n=(e||(e=this._idIndexMap=N(),this._idIndexMapCount=0),e.get(t));return null==n&&e.set(t,n=this._idIndexMapCount++),n},IT.prototype.getViewRoot=function(){return this._viewRoot},IT.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},IT.prototype.enableAriaDecal=function(){wT(this)},IT.type="series.treemap",IT.layoutMode="box",IT.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]};var ST,MT=IT;function IT(){var t=null!==ST&&ST.apply(this,arguments)||this;return t.type=IT.type,t.preventUsingHoverLayer=!0,t}CT.prototype.render=function(t,e,n,i){var o,r,a,s,l=t.getModel("breadcrumb"),u=this.group;u.removeAll(),l.get("show")&&n&&(o=l.getModel("itemStyle"),r=l.getModel("emphasis"),a=o.getModel("textStyle"),s=r.getModel(["itemStyle","textStyle"]),e={pos:{left:l.get("left"),right:l.get("right"),top:l.get("top"),bottom:l.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:l.get("emptyItemWidth"),totalWidth:0,renderList:[]},this._prepare(n,e,a),this._renderContent(t,e,o,r,a,s,i),Dd(u,e.pos,e.box))},CT.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var o=Qr(i.getModel().get("name"),""),r=n.getTextRect(o),r=Math.max(r.width+16,e.emptyItemWidth);e.totalWidth+=r+8,e.renderList.push({node:i,text:o,width:r})}},CT.prototype._renderContent=function(t,e,n,i,o,r,a){for(var s,l,u,h,c,p,d,g,f,y,m,v,x,_=0,b=e.emptyItemWidth,w=t.get(["breadcrumb","height"]),S=(p=e.pos,d=e.box,f=d.width,d=d.height,y=j(p.left,f),m=j(p.top,d),v=j(p.right,f),x=j(p.bottom,d),(isNaN(y)||isNaN(parseFloat(p.left)))&&(y=0),(isNaN(v)||isNaN(parseFloat(p.right)))&&(v=f),(isNaN(m)||isNaN(parseFloat(p.top)))&&(m=0),(isNaN(x)||isNaN(parseFloat(p.bottom)))&&(x=d),g=gd(g||0),{width:Math.max(v-y-g[1]-g[3],0),height:Math.max(x-m-g[0]-g[2],0)}),M=e.totalWidth,I=e.renderList,T=i.getModel("itemStyle").getItemStyle(),C=I.length-1;0<=C;C--){var D=I[C],A=D.node,k=D.width,D=D.text,L=(S.width<M&&(M-=k-b,k=b,D=null),new Ch({shape:{points:(s=_,l=0,L=k,u=w,h=C===I.length-1,c=void 0,c=[[h?s:s-5,l],[s+L,l],[s+L,l+u],[h?s:s-5,l+u]],0===C||c.splice(2,0,[s+L+5,l+u/2]),h||c.push([s,l+u/2]),c)},style:V(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new K({style:np(o,{text:D})}),textConfig:{position:"inside"},z2:1e5,onclick:P(a,A)}));L.disableLabelAnimation=!0,L.getTextContent().ensureState("emphasis").style=np(r,{text:D}),L.ensureState("emphasis").style=T,_u(L,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(L),h=t,s=A,$(L).eventData={componentType:"series",componentSubType:"treemap",componentIndex:h.componentIndex,seriesIndex:h.seriesIndex,seriesName:h.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:s&&s.dataIndex,name:s&&s.name},treePathInfo:s&&pT(s,h)},_+=k+8}},CT.prototype.remove=function(){this.group.removeAll()};var TT=CT;function CT(t){this.group=new Z,t.add(this.group)}AT.prototype.add=function(t,e,n,i,o){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:o}),!0)},AT.prototype.finished=function(t){return this._finishedCallback=t,this},AT.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback)&&t._finishedCallback()},i=0,o=this._storage.length;i<o;i++){var r=this._storage[i];r.el.animateTo(r.target,{duration:r.duration,delay:r.delay,easing:r.easing,setToFinal:!0,done:n,aborted:n})}return this};var DT=AT;function AT(){this._storage=[],this._elExistsMap={}}var kT,LT=Z,PT=L,OT="label",RT="upperLabel",NT=100,ET=20,zT=30,VT=Sa([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),BT=function(t){t=VT(t);return t.stroke=t.fill=t.lineWidth=null,t},FT=i(),GT=(u(WT,kT=$y),WT.prototype.render=function(t,e,n,i){var o,r,a,s,l;F(e.findComponents({mainType:"series",subType:"treemap",query:i}),t)<0||(this.seriesModel=t,this.api=n,this.ecModel=e,e=uT(i,["treemapZoomToNode","treemapRootToNode"],t),o=i&&i.type,s=t.layoutInfo,r=!this._oldTree,a=this._storage,a="treemapRootToNode"===o&&e&&a?{rootNodeGroup:a.nodeGroup[e.node.getRawIndex()],direction:i.direction}:null,i=this._giveContainerGroup(s),s=t.get("animation"),l=this._doRender(i,t,a),!s||r||o&&"treemapZoomToNode"!==o&&"treemapRootToNode"!==o?l.renderFinally():this._doAnimation(i,l,t,a),this._resetController(n),this._renderBreadcrumb(t,n,e))},WT.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new LT,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},WT.prototype._doRender=function(t,z,V){var i,e=z.getData().tree,n=this._oldTree,B=HT(),F=HT(),G=this._storage,W=[],o=(!function n(i,o,N,r,E){function t(t){return t.getId()}function a(t,e){var O=null!=t?i[t]:null,R=null!=e?o[e]:null,t=function(){var u=z,l=F,h=G,c=V,p=B,e=W,d=O,t=R,n=N,i=E;if(d){var g=d.getLayout(),o=u.getData(),f=d.getModel();if(o.setItemGraphicEl(d.dataIndex,null),g&&g.isInView){var r,a,s,y=g.width,m=g.height,v=g.borderWidth,x=g.invisible,_=d.getRawIndex(),b=t&&t.getRawIndex(),t=d.viewChildren,w=g.upperHeight,t=t&&t.length,S=f.getModel("itemStyle"),M=f.getModel(["emphasis","itemStyle"]),I=f.getModel(["blur","itemStyle"]),T=f.getModel(["select","itemStyle"]),C=S.get("borderRadius")||0,D=P("nodeGroup",LT);if(D)return n.add(D),D.x=g.x||0,D.y=g.y||0,D.markRedraw(),FT(D).nodeWidth=y,FT(D).nodeHeight=m,g.isAboveViewRoot||((n=P("background",PT,i,ET))&&function(t,e,n){var i,o,r,a,s,l=$(e);l.dataIndex=d.dataIndex,l.seriesIndex=u.seriesIndex,e.setShape({x:0,y:0,width:y,height:m,r:C}),(x?A:(e.invisible=!1,i=(l=d.getVisual("style")).stroke,(o=BT(S)).fill=i,(r=VT(M)).fill=M.get("borderColor"),(a=VT(I)).fill=I.get("borderColor"),(s=VT(T)).fill=T.get("borderColor"),n?k(e,i,l.opacity,{x:v,y:0,width:y-2*v,height:w}):e.removeTextContent(),e.setStyle(o),e.ensureState("emphasis").style=r,e.ensureState("blur").style=a,e.ensureState("select").style=s,ou))(e),t.add(e)}(D,n,t&&g.upperLabelHeight),a=f.getModel("emphasis"),s=a.get("focus"),r=a.get("blurScope"),a=a.get("disabled"),s="ancestor"===s?d.getAncestorsIndices():"descendant"===s?d.getDescendantIndices():s,t?(Tu(D)&&Iu(D,!1),n&&(Iu(n,!a),o.setItemGraphicEl(d.dataIndex,n),bu(n,s,r))):((t=P("content",PT,i,zT))&&function(t,e){var n,i,o,r,a=$(e),a=(a.dataIndex=d.dataIndex,a.seriesIndex=u.seriesIndex,Math.max(y-2*v,0)),s=Math.max(m-2*v,0);e.culling=!0,e.setShape({x:v,y:v,width:a,height:s,r:C}),(x?A:(e.invisible=!1,s=(a=d.getVisual("style")).fill,(n=BT(S)).fill=s,n.decal=a.decal,i=VT(M),o=VT(I),r=VT(T),k(e,s,a.opacity,null),e.setStyle(n),e.ensureState("emphasis").style=i,e.ensureState("blur").style=o,e.ensureState("select").style=r,ou))(e),t.add(e)}(D,t),n.disableMorphing=!0,n&&Tu(n)&&Iu(n,!1),Iu(D,!a),o.setItemGraphicEl(d.dataIndex,D),bu(D,s,r))),D}}function A(t){t.invisible||e.push(t)}function k(n,t,e,i){var o,r,a=f.getModel(i?RT:OT),s=Qr(f.get("name"),null),a=a.getShallow("show"),l=(tp(n,ep(f,i?RT:OT),{defaultText:a?s:null,inheritColor:t,defaultOpacity:e,labelFetcher:u,labelDataIndex:d.dataIndex}),n.getTextContent());l&&(o=l.style,r=It(o.padding||0),i&&(n.setTextConfig({layoutRect:i}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var t=Math.max((i||n.shape).width-r[1]-r[3],0),e=Math.max((i||n.shape).height-r[0]-r[2],0);o.width===t&&o.height===e||l.setStyle({width:t,height:e})},o.truncateMinChar=2,o.lineOverflow="truncate",L(o,i,g),L((a=l.getState("emphasis"))?a.style:null,i,g))}function L(t,e,n){var i=t?t.text:null;!e&&n.isLeafRoot&&null!=i&&(e=u.get("drillDownIcon",!0),t.text=e?e+" "+i:i)}function P(t,e,n,i){var o,r,a=null!=b&&h[t][b],s=p[t];return a?(h[t][b]=null,o=a,r=s[_]={},o instanceof LT?(r.oldX=o.x,r.oldY=o.y):r.oldShape=H({},o.shape)):x||((a=new e)instanceof ja&&(a.z2=n*NT+i),r=a,o=s[_]={},e=d.parentNode,r=r instanceof Z,!e||c&&"drillDown"!==c.direction||(i=n=0,e=p.background[e.getRawIndex()],!c&&e&&e.oldShape&&(n=e.oldShape.width,i=e.oldShape.height),r?(o.oldX=0,o.oldY=i):o.oldShape={x:n,y:i,width:0,height:0}),o.fadein=!r),l[t][_]=a}}();t&&n(O&&O.viewChildren||[],R&&R.viewChildren||[],t,r,E+1)}r?et(o=i,function(t,e){t.isRemoved()||a(e,e)}):new Qv(o,i,t,t).add(a).update(a).remove(P(a,null)).execute()}(e.root?[e.root]:[],n&&n.root?[n.root]:[],t,e===n||!n,0),i=HT(),G&&et(G,function(t,e){var n=i[e];et(t,function(t){t&&(n.push(t),FT(t).willDelete=!0)})}),i);return this._oldTree=e,this._storage=F,{lastsForAnimation:B,willDeleteEls:o,renderFinally:function(){et(o,function(t){et(t,function(t){t.parent&&t.parent.remove(t)})}),et(W,function(t){t.invisible=!0,t.dirty()})}}},WT.prototype._doAnimation=function(t,o,e,a){var n=e.get("animationDurationUpdate"),e=e.get("animationEasing"),s=(D(n)?0:n)||0,l=(D(e)?null:e)||"cubicOut",u=new DT;et(o.willDeleteEls,function(t,r){et(t,function(t,e){var n,i,o;!t.invisible&&(n=t.parent,o=FT(n),o=a&&"drillDown"===a.direction?n===a.rootNodeGroup?{shape:{x:0,y:0,width:o.nodeWidth,height:o.nodeHeight},style:{opacity:0}}:{style:{opacity:0}}:(i=n=0,o.willDelete||(n=o.nodeWidth/2,i=o.nodeHeight/2),"nodeGroup"===r?{x:n,y:i,style:{opacity:0}}:{shape:{x:n,y:i,width:0,height:0},style:{opacity:0}}))&&u.add(t,o,s,0,l)})}),et(this._storage,function(t,i){et(t,function(t,e){var e=o.lastsForAnimation[i][e],n={};e&&(t instanceof Z?null!=e.oldX&&(n.x=t.x,n.y=t.y,t.x=e.oldX,t.y=e.oldY):(e.oldShape&&(n.shape=H({},t.shape),t.setShape(e.oldShape)),e.fadein?(t.setStyle("opacity",0),n.style={opacity:1}):1!==t.style.opacity&&(n.style={opacity:1})),u.add(t,n,s,0,l))})},this),this._state="animating",u.finished(T(function(){this._state="ready",o.renderFinally()},this)).start()},WT.prototype._resetController=function(t){var e=this._controller,i=(e||((e=this._controller=new k2(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",T(this._onPan,this)),e.on("zoom",T(this._onZoom,this))),new z(0,0,t.getWidth(),t.getHeight()));e.setPointerChecker(function(t,e,n){return i.contain(e,n)})},WT.prototype._clearController=function(){var t=this._controller;t&&t.dispose()},WT.prototype._onPan=function(t){var e;"animating"!==this._state&&(3<Math.abs(t.dx)||3<Math.abs(t.dy))&&(e=this.seriesModel.getData().tree.root)&&(e=e.getLayout())&&this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:e.x+t.dx,y:e.y+t.dy,width:e.width,height:e.height}})},WT.prototype._onZoom=function(t){var e,n,i,o=t.originX,r=t.originY;"animating"!==this._state&&(e=this.seriesModel.getData().tree.root)&&(e=e.getLayout())&&(e=new z(e.x,e.y,e.width,e.height),Ge(i=ze(),i,[-(o-=(n=this.seriesModel.layoutInfo).x),-(r-=n.y)]),He(i,i,[t.scale,t.scale]),Ge(i,i,[o,r]),e.applyTransform(i),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:e.x,y:e.y,width:e.width,height:e.height}}))},WT.prototype._initEvents=function(t){var i=this;t.on("click",function(t){var e,n;"ready"===i._state&&(e=i.seriesModel.get("nodeClick",!0))&&(t=i.findTarget(t.offsetX,t.offsetY))&&((n=t.node).getLayout().isLeafRoot?i._rootToNode(t):"zoomToNode"===e?i._zoomToNode(t):"link"===e&&(e=(t=n.hostTree.data.getItemModel(n.dataIndex)).get("link",!0),n=t.get("target",!0)||"blank",e)&&bd(e,n))},this)},WT.prototype._renderBreadcrumb=function(e,t,n){var i=this;n=(n=n||(null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2)))||{node:e.getData().tree.root},(this._breadcrumb||(this._breadcrumb=new TT(this.group))).render(e,t,n.node,function(t){"animating"!==i._state&&(cT(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))})},WT.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=HT(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},WT.prototype.dispose=function(){this._clearController()},WT.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},WT.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},WT.prototype.findTarget=function(i,o){var r;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(t){var e=this._storage.background[t.getRawIndex()];if(e){var n=e.transformCoordToLocal(i,o),e=e.shape;if(!(e.x<=n[0]&&n[0]<=e.x+e.width&&e.y<=n[1]&&n[1]<=e.y+e.height))return!1;r={node:t,offsetX:n[0],offsetY:n[1]}}},this),r},WT.type="treemap",WT);function WT(){var t=null!==kT&&kT.apply(this,arguments)||this;return t.type=WT.type,t._state="ready",t._storage=HT(),t}function HT(){return{nodeGroup:[],background:[],content:[]}}var YT=et,XT=O,UT=-1,ZT=(jT.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},jT.prototype.getNormalizer=function(){return T(this._normalizeData,this)},jT.listVisualTypes=function(){return G(jT.visualHandlers)},jT.isValidType=function(t){return jT.visualHandlers.hasOwnProperty(t)},jT.eachVisual=function(t,e,n){O(t)?et(t,e,n):e.call(n,t)},jT.mapVisual=function(t,n,i){var o,r=W(t)?[]:O(t)?{}:(o=!0,null);return jT.eachVisual(t,function(t,e){t=n.call(i,t,e);o?r=t:r[e]=t}),r},jT.retrieveVisuals=function(n){var i,o={};return n&&YT(jT.visualHandlers,function(t,e){n.hasOwnProperty(e)&&(o[e]=n[e],i=!0)}),i?o:null},jT.prepareVisualTypes=function(t){if(W(t))t=t.slice();else{if(!XT(t))return[];var n=[];YT(t,function(t,e){n.push(e)}),t=n}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},jT.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},jT.findPieceIndex=function(n,t,e){for(var i,o=1/0,r=0,a=t.length;r<a;r++){var s=t[r].value;if(null!=s){if(s===n||Y(s)&&s===n+"")return r;e&&h(s,r)}}for(r=0,a=t.length;r<a;r++){var l=t[r],u=l.interval,l=l.close;if(u){if(u[0]===-1/0){if(rC(l[1],n,u[1]))return r}else if(u[1]===1/0){if(rC(l[0],u[0],n))return r}else if(rC(l[0],u[0],n)&&rC(l[1],n,u[1]))return r;e&&h(u[0],r),e&&h(u[1],r)}}if(e)return n===1/0?t.length-1:n===-1/0?0:i;function h(t,e){t=Math.abs(t-n);t<o&&(o=t,i=e)}},jT.visualHandlers={color:{applyVisual:JT("color"),getColorMapper:function(){var o=this.option;return T("category"===o.mappingMethod?function(t,e){return e||(t=this._normalizeData(t)),QT.call(this,t)}:function(t,e,n){var i=!!n;return n=Ii(t=e?t:this._normalizeData(t),o.parsedVisual,n),i?n:Ai(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Ai(Ii(t,this.option.parsedVisual),"rgba")},category:QT,piecewise:function(t,e){e=nC.call(this,e);return e=null==e?Ai(Ii(t,this.option.parsedVisual),"rgba"):e},fixed:tC}},colorHue:KT(function(t,e){return Ci(t,e)}),colorSaturation:KT(function(t,e){return Ci(t,null,e)}),colorLightness:KT(function(t,e){return Ci(t,null,null,e)}),colorAlpha:KT(Di),decal:{applyVisual:JT("decal"),_normalizedToVisual:{linear:null,category:QT,piecewise:null,fixed:null}},opacity:{applyVisual:JT("opacity"),_normalizedToVisual:eC([0,1])},liftZ:{applyVisual:JT("liftZ"),_normalizedToVisual:{linear:tC,category:tC,piecewise:tC,fixed:tC}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:$T,category:QT,piecewise:function(t,e){e=nC.call(this,e);return e=null==e?$T.call(this,t):e},fixed:tC}},symbolSize:{applyVisual:JT("symbolSize"),_normalizedToVisual:eC([0,1])}},jT);function jT(t){var n,i,e=t.mappingMethod,o=t.type,t=this.option=S(t),o=(this.type=o,this.mappingMethod=e,this._normalizeData=oC[e],jT.visualHandlers[o]);if(this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[e],"piecewise"===e)qT(t),o=(i=t).pieceList,i.hasSpecialVisual=!1,et(o,function(t,e){t.originIndex=e,null!=t.visual&&(i.hasSpecialVisual=!0)});else if("category"===e)if(t.categories){var r=(o=t).categories,a=o.categoryMap={},s=o.visual;YT(r,function(t,e){a[t]=e}),W(s)||(n=[],O(s)?YT(s,function(t,e){e=a[e];n[null!=e?e:UT]=t}):n[UT]=s,s=iC(o,n));for(var l=r.length-1;0<=l;l--)null==s[l]&&(delete a[r[l]],r.pop())}else qT(t,!0);else Tt("linear"!==e||t.dataExtent),qT(t)}function qT(t,e){var n=t.visual,i=[];O(n)?YT(n,function(t){i.push(t)}):null!=n&&i.push(n),e||1!==i.length||{color:1,symbol:1}.hasOwnProperty(t.type)||(i[1]=i[0]),iC(t,i)}function KT(i){return{applyVisual:function(t,e,n){t=this.mapValueToVisual(t);n("color",i(e("color"),t))},_normalizedToVisual:eC([0,1])}}function $T(t){var e=this.option.visual;return e[Math.round(br(t,[0,1],[0,e.length-1],!0))]||{}}function JT(i){return function(t,e,n){n(i,this.mapValueToVisual(t))}}function QT(t){var e=this.option.visual;return e[this.option.loop&&t!==UT?t%e.length:t]}function tC(){return this.option.visual[0]}function eC(n){return{linear:function(t){return br(t,n,this.option.visual,!0)},category:QT,piecewise:function(t,e){e=nC.call(this,e);return e=null==e?br(t,n,this.option.visual,!0):e},fixed:tC}}function nC(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){e=n[ZT.findPieceIndex(t,n)];if(e&&e.visual)return e.visual[this.type]}}function iC(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=B(e,function(t){t=wi(t);return t||[0,0,0,1]})),e}var oC={linear:function(t){return br(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,t=ZT.findPieceIndex(t,e,!0);if(null!=t)return br(t,[0,e.length-1],[0,1],!0)},category:function(t){t=this.option.categories?this.option.categoryMap[t]:t;return null==t?UT:t},fixed:Bt};function rC(t,e,n){return t?e<=n:e<n}var aC="itemStyle",sC=i(),lC={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||function n(t,e,i,o){var r=t.getModel(),a=t.getLayout(),s=t.hostTree.data;{var l,u,h,c,p;a&&!a.invisible&&a.isInView&&(u=r.getModel(aC),h=uC(u,e,o),e=s.ensureUniqueItemVisual(t.dataIndex,"style"),s=u.get("borderColor"),null!=(c=u.get("borderColorSaturation"))&&(s=cC(c,l=hC(h))),e.stroke=s,(c=t.viewChildren)&&c.length?(p=dC(0,r,a,0,h,c),et(c,function(t,e){(t.depth>=i.length||t===i[t.depth])&&n(t,fC(r,h,t,e,p,o),i,o)})):(l=hC(h),e.fill=l))}}(e,{},t.getViewRoot().getAncestors(),t)}};function uC(n,i,t){var o=H({},i),r=t.designatedVisualItemStyle;return et(["color","colorAlpha","colorSaturation"],function(t){r[t]=i[t];var e=n.get(t);(r[t]=null)!=e&&(o[t]=e)}),o}function hC(t){var e,n=pC(t,"color");if(n)return e=pC(t,"colorAlpha"),(t=pC(t,"colorSaturation"))&&(n=Ci(n,null,null,t)),e?Di(n,e):n}function cC(t,e){return null!=e?Ci(e,null,null,t):null}function pC(t,e){t=t[e];if(null!=t&&"none"!==t)return t}function dC(t,e,n,i,o,r){if(r&&r.length){var a,r=gC(e,"color")||null!=o.color&&"none"!==o.color&&(gC(e,"colorAlpha")||gC(e,"colorSaturation"));if(r)return o=e.get("visualMin"),a=e.get("visualMax"),n=n.dataExtent.slice(),null!=o&&o<n[0]&&(n[0]=o),null!=a&&a>n[1]&&(n[1]=a),o=e.get("colorMappingBy"),"color"!==(a={type:r.name,dataExtent:n,visual:r.range}).type||"index"!==o&&"id"!==o?a.mappingMethod="linear":(a.mappingMethod="category",a.loop=!0),e=new ZT(a),sC(e).drColorMappingBy=o,e}}function gC(t,e){t=t.get(e);return W(t)&&t.length?{name:e,range:t}:null}function fC(t,e,n,i,o,r){var a,s,e=H({},e);return o&&(i="index"===(s="color"===(a=o.type)&&sC(o).drColorMappingBy)?i:"id"===s?r.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension")),e[a]=o.mapValueToVisual(i)),e}var yC=Math.max,mC=Math.min,vC=wt,xC=et,_C=["itemStyle","borderWidth"],bC=["itemStyle","gapWidth"],wC=["upperLabel","show"],SC=["upperLabel","height"],MC={seriesType:"treemap",reset:function(t,e,n,i){var o,r=n.getWidth(),a=n.getHeight(),s=t.option,n=Cd(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=s.size||[],u=j(vC(n.width,l[0]),r),l=j(vC(n.height,l[1]),a),h=i&&i.type,c=uT(i,["treemapZoomToNode","treemapRootToNode"],t),i="treemapRender"===h||"treemapMove"===h?i.rootRect:null,p=t.getViewRoot(),d=hT(p),u=("treemapMove"!==h&&(h="treemapZoomToNode"===h?function(t,e,n,i,o){var r,a=(e||{}).node,s=[i,o];if(!a||a===n)return s;for(var e=i*o,l=e*t.option.zoomToNodeRatio;r=a.parentNode;){for(var u=0,h=r.children,c=0,p=h.length;c<p;c++)u+=h[c].getValue();var d=a.getValue();if(0===d)return s;l*=u/d;var d=r.getModel(),g=d.get(_C);(l+=4*g*g+(3*g+Math.max(g,DC(d)))*Math.pow(l,.5))>Dr&&(l=Dr),a=r}l<e&&(l=e);n=Math.pow(l/e,.5);return[i*n,o*n]}(t,c,p,u,l):i?[i.width,i.height]:[u,l],u=s.sort,l={squareRatio:s.squareRatio,sort:u=u&&"asc"!==u&&"desc"!==u?"desc":u,leafDepth:s.leafDepth},p.hostTree.clearLayouts(),o={x:0,y:0,width:h[0],height:h[1],area:h[0]*h[1]},p.setLayout(o),function t(e,n,i,o){var r;if(!e.isRemoved()){var a=e.getLayout(),s=(r=a.width,a=a.height,e.getModel()),l=s.get(_C),u=s.get(bC)/2,h=DC(s),c=Math.max(l,h),p=l-u,d=c-u,l=(e.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:h},!0),(r=yC(r-2*p,0))*(a=yC(a-p-d,0))),g=IC(e,s,l,n,i,o);if(g.length){for(var f={x:p,y:d,width:r,height:a},y=mC(r,a),m=1/0,v=[],x=v.area=0,_=g.length;x<_;){var b=g[x],b=(v.push(b),v.area+=b.getLayout().area,TC(v,y,n.squareRatio));m=b<=m?(x++,b):(v.area-=v.pop().getLayout().area,CC(v,y,f,u,!1),y=mC(f.width,f.height),1/(v.length=v.area=0))}for(v.length&&CC(v,y,f,u,!0),i||null!=(c=s.get("childrenVisibleMin"))&&l<c&&(i=!0),x=0,_=g.length;x<_;x++)t(g[x],n,i,o+1)}}}(p,l,!1,0),o=p.getLayout(),xC(d,function(t,e){e=(d[e+1]||p).getValue();t.setLayout(H({dataExtent:[e,e],borderWidth:0,upperHeight:0},o))})),t.getData().tree.root);u.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};e={x:0,y:0};if(!n)return e;var n=n.node,i=n.getLayout();if(!i)return e;for(var o=[i.width/2,i.height/2],r=n;r;){var a=r.getLayout();o[0]+=a.x,o[1]+=a.y,r=r.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}(n,i,c),!0),t.setLayoutInfo(n),function e(t,n,i,o,r){var a=t.getLayout(),s=i[r],l=s&&s===t;{var u;s&&!l||r===i.length&&t!==o||(t.setLayout({isInView:!0,invisible:!l&&!n.intersect(a),isAboveViewRoot:l},!0),u=new z(n.x-a.x,n.y-a.y,n.width,n.height),xC(t.viewChildren||[],function(t){e(t,u,i,o,r+1)}))}}(u,new z(-n.x,-n.y,r,a),d,p,0)}};function IC(t,e,n,i,o,r){var a,s=t.children||[],l=i.sort,i=("asc"!==l&&"desc"!==l&&(l=null),null!=i.leafDepth&&i.leafDepth<=r);if(o&&!i)return t.viewChildren=[];r=s=pt(s,function(t){return!t.isRemoved()}),(a=l)&&r.sort(function(t,e){var n="asc"===a?t.getValue()-e.getValue():e.getValue()-t.getValue();return 0==n?"asc"===a?t.dataIndex-e.dataIndex:e.dataIndex-t.dataIndex:n});var u=function(t,e,n){for(var i=0,o=0,r=e.length;o<r;o++)i+=e[o].getValue();var a,s=t.get("visualDimension");return e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],xC(e,function(t){t=t.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)})):a=[NaN,NaN],{sum:i,dataExtent:a}}(e,s,l);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,o){if(i){for(var r=t.get("visibleMin"),a=o.length,s=a,l=a-1;0<=l;l--){var u=o["asc"===i?a-l-1:l].getValue();u/n*e<r&&(s=l,n-=u)}"asc"===i?o.splice(0,a-s):o.splice(s,a-s)}return n}(e,n,u.sum,l,s),0===u.sum)return t.viewChildren=[];for(var h=0,c=s.length;h<c;h++){var p=s[h].getValue()/u.sum*n;s[h].setLayout({area:p})}return i&&(s.length&&t.setLayout({isLeafRoot:!0},!0),s.length=0),t.viewChildren=s,t.setLayout({dataExtent:u.dataExtent},!0),s}function TC(t,e,n){for(var i,o=0,r=1/0,a=0,s=t.length;a<s;a++)(i=t[a].getLayout().area)&&(i<r&&(r=i),o<i)&&(o=i);var l=t.area*t.area,e=e*e*n;return l?yC(e*o/l,l/(e*r)):1/0}function CC(t,e,n,i,o){var r=e===n.width?0:1,a=1-r,s=["x","y"],l=["width","height"],u=n[s[r]],h=e?t.area/e:0;(o||h>n[l[a]])&&(h=n[l[a]]);for(var c=0,p=t.length;c<p;c++){var d=t[c],g={},f=h?d.getLayout().area/h:0,y=g[l[a]]=yC(h-2*i,0),m=n[s[r]]+n[l[r]]-u,m=c===p-1||m<f?m:f,f=g[l[r]]=yC(m-2*i,0);g[s[a]]=n[s[a]]+mC(i,y/2),g[s[r]]=u+mC(i,f/2),u+=m,d.setLayout(g,!0)}n[s[a]]+=h,n[l[a]]-=h}function DC(t){return t.get(wC)?t.get(SC):0}r(function(t){t.registerSeriesModel(MT),t.registerChartView(GT),t.registerVisual(lC),t.registerLayout(MC);for(var e=t,n=0;n<bT.length;n++)e.registerAction({type:bT[n],update:"updateView"},Bt);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(o,t){t.eachComponent({mainType:"series",subType:"treemap",query:o},function(t,e){var n,i=uT(o,["treemapZoomToNode","treemapRootToNode"],t);i&&((n=t.getViewRoot())&&(o.direction=cT(n,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node))})})});u(LC,AC=vh),LC.prototype.updateData=function(t,e,n,i,o){(this.node=e).piece=this,n=n||this._seriesModel,i=i||this._ecModel;var r=this,a=($(r).dataIndex=e.dataIndex,e.getModel()),s=a.getModel("emphasis"),l=e.getLayout(),u=H({},l),h=(u.label=null,e.getVisual("style")),c=(h.lineJoin="bevel",e.getVisual("decal")),c=(c&&(h.decal=R0(c,o)),Wb(a.getModel("itemStyle"),u,!0)),o=(H(u,c),et(El,function(t){var e=r.ensureState(t),t=a.getModel([t,"itemStyle"]),t=(e.style=t.getItemStyle(),Wb(t,u));t&&(e.shape=t)}),t?(r.setShape(u),r.shape.r=l.r0,yc(r,{shape:{r:l.r}},n,e.dataIndex)):(C(r,{shape:u},n),bc(r)),r.useStyle(h),this._updateLabel(n),a.getShallow("cursor")),c=(o&&r.attr("cursor",o),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel,s.get("focus"));_u(this,"ancestor"===c?e.getAncestorsIndices():"descendant"===c?e.getDescendantIndices():c,s.get("blurScope"),s.get("disabled"))},LC.prototype._updateLabel=function(a){var s=this,l=this.node.getModel(),n=l.getModel("label"),u=this.node.getLayout(),h=u.endAngle-u.startAngle,c=(u.startAngle+u.endAngle)/2,p=Math.cos(c),d=Math.sin(c),g=this,f=g.getTextContent(),y=this.node.dataIndex,t=n.get("minAngle")/180*Math.PI,t=n.get("show")&&!(null!=t&&Math.abs(h)<t);function m(t,e){t=t.get(e);return null==t?n.get(e):t}f.ignore=!t,et(zl,function(t){var e="normal"===t?l.getModel("label"):l.getModel([t,"label"]),n="normal"===t,i=n?f:f.ensureState(t),o=a.getFormattedLabel(y,t),o=(n&&(o=o||s.node.name),i.style=np(e,{},null,"normal"!==t,!0),o&&(i.style.text=o),e.get("show"));null==o||n||(i.ignore=!o);var r,o=m(e,"position"),n=n?g:g.states[t],t=n.style.fill,n=(n.textConfig={outsideFill:"inherit"===e.get("color")?t:null,inside:"outside"!==o},m(e,"distance")||0),t=m(e,"align"),o=("outside"===o?(r=u.r+n,t=c>Math.PI/2?"right":"left"):t&&"center"!==t?"left"===t?(r=u.r0+n,c>Math.PI/2&&(t="right")):"right"===t&&(r=u.r-n,c>Math.PI/2)&&(t="left"):(r=h==2*Math.PI&&0===u.r0?0:(u.r+u.r0)/2,t="center"),i.style.align=t,i.style.verticalAlign=m(e,"verticalAlign")||"middle",i.x=r*p+u.cx,i.y=r*d+u.cy,m(e,"rotate")),n=0;"radial"===o?(n=Os(-c))>Math.PI/2&&n<1.5*Math.PI&&(n+=Math.PI):"tangential"===o?(n=Math.PI/2-c)>Math.PI/2?n-=Math.PI:n<-Math.PI/2&&(n+=Math.PI):X(o)&&(n=o*Math.PI/180),i.rotation=Os(n)}),f.dirtyStyle()};var AC,kC=LC;function LC(t,e,n,i){var o=AC.call(this)||this,r=(o.z2=2,o.textConfig={inside:!0},$(o).seriesIndex=e.seriesIndex,new K({z2:4,silent:t.getModel().get(["label","silent"])}));return o.setTextContent(r),o.updateData(!0,t,e,n,i),o}var PC="sunburstRootToNode",OC="sunburstHighlight",RC="sunburstUnhighlight";u(zC,NC=$y),zC.prototype.render=function(n,i,o,t){var e,r,a,s=this,l=(this.seriesModel=n,this.api=o,this.ecModel=i,n.getData()),u=l.tree.root,h=n.getViewRoot(),c=this.group,p=n.get("renderLabelForZeroData"),d=[],g=(h.eachNode(function(t){d.push(t)}),this._oldChildren||[]);function f(t){return t.getId()}function y(t,e){t=null==t?null:r[t],e=null==e?null:a[e],(t=p||!t||t.getValue()?t:null)!==u&&e!==u&&(e&&e.piece?t?(e.piece.updateData(!1,t,n,i,o),l.setItemGraphicEl(t.dataIndex,e.piece)):(e=e)&&e.piece&&(c.remove(e.piece),e.piece=null):t&&(e=new kC(t,n,i,o),c.add(e),l.setItemGraphicEl(t.dataIndex,e)))}a=g,0===(r=d).length&&0===a.length||new Qv(a,r,f,f).add(y).update(y).remove(P(y,null)).execute(),g=u,0<(e=h).depth?(s.virtualPiece?s.virtualPiece.updateData(!1,g,n,i,o):(s.virtualPiece=new kC(g,n,i,o),c.add(s.virtualPiece)),e.piece.off("click"),s.virtualPiece.on("click",function(t){s._rootToNode(e.parentNode)})):s.virtualPiece&&(c.remove(s.virtualPiece),s.virtualPiece=null),this._initEvents(),this._oldChildren=d},zC.prototype._initEvents=function(){var o=this;this.group.off("click"),this.group.on("click",function(n){var i=!1;o.seriesModel.getViewRoot().eachNode(function(t){var e;!i&&t.piece&&t.piece===n.target&&("rootToNode"===(e=t.getModel().get("nodeClick"))?o._rootToNode(t):"link"===e&&(t=(e=t.getModel()).get("link"))&&bd(t,e.get("target",!0)||"_blank"),i=!0)})})},zC.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:PC,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},zC.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},zC.type="sunburst";var NC,EC=zC;function zC(){var t=null!==NC&&NC.apply(this,arguments)||this;return t.type=zC.type,t}u(FC,VC=zy),FC.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data},i=(!function e(t){var n=0;et(t.children,function(t){e(t);t=t.value;W(t)&&(t=t[0]),n+=t});var i=t.value;W(i)&&(i=i[0]),null!=i&&!isNaN(i)||(i=n),i<0&&(i=0),W(t.value)?t.value[0]=i:t.value=i}(n),this._levelModels=B(t.levels||[],function(t){return new Tp(t,this,e)},this)),o=sT.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){e=o.getNodeByDataIndex(e),e=i[e.depth];return e&&(t.parentModel=e),t})});return o.data},FC.prototype.optionUpdated=function(){this.resetViewRoot()},FC.prototype.getDataParams=function(t){var e=VC.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=pT(t,this),e},FC.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},FC.prototype.getViewRoot=function(){return this._viewRoot},FC.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},FC.prototype.enableAriaDecal=function(){wT(this)},FC.type="series.sunburst",FC.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"};var VC,BC=FC;function FC(){var t=null!==VC&&VC.apply(this,arguments)||this;return t.type=FC.type,t.ignoreStyleOnData=!0,t}var GC=Math.PI/180;function WC(t,e,r){e.eachSeriesByType(t,function(h){var t=h.get("center"),e=h.get("radius"),n=(W(e)||(e=[0,e]),W(t)||(t=[t,t]),r.getWidth()),i=r.getHeight(),c=Math.min(n,i),p=j(t[0],n),d=j(t[1],i),g=j(e[0],c/2),n=j(e[1],c/2),t=-h.get("startAngle")*GC,f=h.get("minAngle")*GC,y=h.getData().tree.root,i=h.getViewRoot(),m=i.depth,e=h.get("sort"),o=(null!=e&&function e(t,n){var i=t.children||[];t.children=HC(i,n),i.length&&et(t.children,function(t){e(t,n)})}(i,e),0),v=(et(i.children,function(t){isNaN(t.getValue())||o++}),i.getValue()),x=Math.PI/(v||o)*2,_=0<i.depth,e=i.height-(_?-1:1),b=(n-g)/(e||1),w=h.get("clockwise"),S=h.get("stillShowZeroSum"),M=w?1:-1,I=function(t,e){var n,i,o,r,a,s,l,u;if(t)return n=e,t!==y&&(i=t.getValue(),n=e+M*(i=(i=0===v&&S?x:i*x)<f?f:i),r=t.depth-m-(_?-1:1),o=g+b*r,r=g+b*(1+r),(l=h.getLevelModel(t))&&(a=l.get("r0",!0),s=l.get("r",!0),null!=(l=l.get("radius",!0))&&(a=l[0],s=l[1]),null!=a&&(o=j(a,c/2)),null!=s)&&(r=j(s,c/2)),t.setLayout({angle:i,startAngle:e,endAngle:n,clockwise:w,cx:p,cy:d,r0:o,r:r})),t.children&&t.children.length&&(u=0,et(t.children,function(t){u+=I(t,e+u)})),n-e};_&&(n=2*Math.PI,y.setLayout({angle:n,startAngle:t,endAngle:t+n,clockwise:w,cx:p,cy:d,r0:g,r:g+b})),I(i,t)})}function HC(e,n){var t,i;return D(n)?((t=B(e,function(t,e){var n=t.getValue();return{params:{depth:t.depth,height:t.height,dataIndex:t.dataIndex,getValue:function(){return n}},index:e}})).sort(function(t,e){return n(t.params,e.params)}),B(t,function(t){return e[t.index]})):(i="asc"===n,e.sort(function(t,e){var n=(t.getValue()-e.getValue())*(i?1:-1);return 0==n?(t.dataIndex-e.dataIndex)*(i?-1:1):n}))}function YC(t){var r={};t.eachSeriesByType("sunburst",function(n){var i=n.getData(),o=i.tree;o.eachNode(function(t){var e=t.getModel().getModel("itemStyle").getItemStyle();e.fill||(e.fill=function(t,e,n){for(var i=t;i&&1<i.depth;)i=i.parentNode;e=e.getColorFromPalette(i.name||i.dataIndex+"",r);return e=1<t.depth&&Y(e)?Mi(e,(t.depth-1)/(n-1)*.5):e}(t,n,o.root.height)),H(i.ensureUniqueItemVisual(t.dataIndex,"style"),e)})})}function XC(t){var e=t=Y(t)?(new DOMParser).parseFromString(t,"text/xml"):t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}r(function(t){t.registerChartView(EC),t.registerSeriesModel(BC),t.registerLayout(P(WC,"sunburst")),t.registerProcessor(P(rS,"sunburst")),t.registerVisual(YC),(t=t).registerAction({type:PC,update:"updateView"},function(o,t){t.eachComponent({mainType:"series",subType:"sunburst",query:o},function(t,e){var n,i=uT(o,[PC],t);i&&((n=t.getViewRoot())&&(o.direction=cT(n,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node))})}),t.registerAction({type:OC,update:"none"},function(e,t,n){e=H({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t){t=uT(e,[OC],t);t&&(e.dataIndex=t.node.dataIndex)}),n.dispatchAction(H(e,{type:"highlight"}))}),t.registerAction({type:RC,update:"updateView"},function(t,e,n){t=H({},t),n.dispatchAction(H(t,{type:"downplay"}))})});var UC,ZC={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},jC=G(ZC),qC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},KC=G(qC),$C=(QC.prototype.parse=function(t,e){e=e||{};var t=XC(t),n=(this._defsUsePending=[],new Z),i=(this._root=n,[]),o=t.getAttribute("viewBox")||"",r=parseFloat(t.getAttribute("width")||e.width),a=parseFloat(t.getAttribute("height")||e.height);isNaN(r)&&(r=null),isNaN(a)&&(a=null),oD(t,n,null,!0,!1);for(var s,l,u=t.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;for(var h=this._defs,c=this._defsUsePending,p=0;p<c.length;p++){var d=c[p];d[0].style[d[1]]=h[d[2]]}return this._defsUsePending=[],(s=o&&4<=(t=lD(o)).length?{x:parseFloat(t[0]||0),y:parseFloat(t[1]||0),width:parseFloat(t[2]),height:parseFloat(t[3])}:s)&&null!=r&&null!=a&&(l=dD(s,{x:0,y:0,width:r,height:a}),!e.ignoreViewBox)&&(o=n,(n=new Z).add(o),o.scaleX=o.scaleY=l.scale,o.x=l.x,o.y=l.y),e.ignoreRootClip||null==r||null==a||n.setClipPath(new L({shape:{x:0,y:0,width:r,height:a}})),{root:n,width:r,height:a,viewBoxRect:s,viewBoxTransform:l,named:i}},QC.prototype._parseNode=function(t,e,n,i,o,r){var a,s,l=t.nodeName.toLowerCase(),u=i;if("defs"===l&&(o=!0),"text"===l&&(r=!0),"defs"===l||"switch"===l?a=e:(o||(s=UC[l])&&U(UC,l)&&(a=s.call(this,t,e),(s=t.getAttribute("name"))?(n.push(s={name:s,namedFrom:null,svgNodeTagLower:l,el:a}),"g"===l&&(u=s)):i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:l,el:a}),e.add(a)),(s=JC[l])&&U(JC,l)&&(i=s.call(this,t),e=t.getAttribute("id"))&&(this._defs[e]=i)),a&&a.isGroup)for(var h=t.firstChild;h;)1===h.nodeType?this._parseNode(h,a,n,u,o,r):3===h.nodeType&&r&&this._parseText(h,a),h=h.nextSibling},QC.prototype._parseText=function(t,e){var n=new $s({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0}),t=(nD(e,n),oD(t,n,this._defsUsePending,!1,!1),n),i=e,o=i.__selfStyle,o=(o&&(o=o.textBaseline,!(r=o)||"auto"===o||"baseline"===o?r="alphabetic":"before-edge"===o||"text-before-edge"===o?r="top":"after-edge"===o||"text-after-edge"===o?r="bottom":"central"!==o&&"mathematical"!==o||(r="middle"),t.style.textBaseline=r),(o=i.__inheritedStyle)&&(r=o.textAlign,i=r)&&("middle"===r&&(i="center"),t.style.textAlign=i),n.style),r=o.fontSize,t=(r&&r<9&&(o.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9),(o.fontSize||o.fontFamily)&&[o.fontStyle,o.fontWeight,(o.fontSize||12)+"px",o.fontFamily||"sans-serif"].join(" ")),i=(o.font=t,n.getBoundingRect());return this._textX+=i.width,e.add(n),n},QC.internalField=void(UC={g:function(t,e){var n=new Z;return nD(e,n),oD(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new L;return nD(e,n),oD(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new $u;return nD(e,n),oD(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Eh;return nD(e,n),oD(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new eh;return nD(e,n),oD(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points"),i=(i&&(n=iD(i)),new Ch({shape:{points:n||[]},silent:!0}));return nD(e,i),oD(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,i=t.getAttribute("points"),i=(i&&(n=iD(i)),new Lh({shape:{points:n||[]},silent:!0}));return nD(e,i),oD(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new nl;return nD(e,n),oD(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",r=t.getAttribute("dy")||"0",n=(this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(r),new Z);return nD(e,n),oD(t,n,this._defsUsePending,!1,!0),n},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y"),n=(null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i)),t.getAttribute("dx")||"0"),i=t.getAttribute("dy")||"0",o=new Z;return nD(e,o),oD(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(i),o},path:function(t,e){var n=ju(t.getAttribute("d")||"");return nD(e,n),oD(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),QC),JC={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),o=parseInt(t.getAttribute("y2")||"0",10),e=new Qh(e,n,i,o);return tD(t,e),eD(t,e),e},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),e=new nc(e,n,i);return tD(t,e),eD(t,e),e}};function QC(){this._defs={},this._root=null}function tD(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function eD(t,e){for(var n,i,o=t.firstChild;o;)1===o.nodeType&&"stop"===o.nodeName.toLocaleLowerCase()&&(n=void 0,n=(i=o.getAttribute("offset"))&&0<i.indexOf("%")?parseInt(i,10)/100:i?parseFloat(i):0,pD(o,i={},i),i=i.stopColor||o.getAttribute("stop-color")||"#000000",e.colorStops.push({offset:n,color:i})),o=o.nextSibling}function nD(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),V(e.__inheritedStyle,t.__inheritedStyle))}function iD(t){for(var e=lD(t),n=[],i=0;i<e.length;i+=2){var o=parseFloat(e[i]),r=parseFloat(e[i+1]);n.push([o,r])}return n}function oD(t,e,n,i,o){var r=e,a=r.__inheritedStyle=r.__inheritedStyle||{},s={};if(1===t.nodeType){var l=t;if(l=l.getAttribute("transform")){l=l.replace(/,/g," ");var u=[],h=null;l.replace(uD,function(t,e,n){return u.push(e,n),""});for(var c=u.length-1;0<c;c-=2){var p=u[c-1],d=lD(u[c]);switch(h=h||ze(),p){case"translate":Ge(h,h,[parseFloat(d[0]),parseFloat(d[1]||"0")]);break;case"scale":He(h,h,[parseFloat(d[0]),parseFloat(d[1]||d[0])]);break;case"rotate":We(h,h,-parseFloat(d[0])*hD);break;case"skewX":var g=Math.tan(parseFloat(d[0])*hD);Fe(h,[1,0,g,1,0,0],h);break;case"skewY":g=Math.tan(parseFloat(d[0])*hD);Fe(h,[1,g,0,1,0,0],h);break;case"matrix":h[0]=parseFloat(d[0]),h[1]=parseFloat(d[1]),h[2]=parseFloat(d[2]),h[3]=parseFloat(d[3]),h[4]=parseFloat(d[4]),h[5]=parseFloat(d[5])}}e.setLocalTransform(h)}if(pD(t,a,s),!i){for(var f=t,y=a,m=s,v,x=0;x<jC.length;x++){var _=jC[x];null!=(v=f.getAttribute(_))&&(y[ZC[_]]=v)}for(x=0;x<KC.length;x++)_=KC[x],null!=(v=f.getAttribute(_))&&(m[qC[_]]=v)}}r.style=r.style||{},null!=a.fill&&(r.style.fill=aD(r,"fill",a.fill,n)),null!=a.stroke&&(r.style.stroke=aD(r,"stroke",a.stroke,n)),et(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){null!=a[t]&&(r.style[t]=parseFloat(a[t]))}),et(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(t){null!=a[t]&&(r.style[t]=a[t])}),o&&(r.__selfStyle=s),a.lineDash&&(r.style.lineDash=B(lD(a.lineDash),function(t){return parseFloat(t)})),"hidden"!==a.visibility&&"collapse"!==a.visibility||(r.invisible=!0),"none"===a.display&&(r.ignore=!0)}var rD=/^url\(\s*#(.*?)\)/;function aD(t,e,n,i){var o=n&&n.match(rD);if(!o)return n="none"===n?null:n;n=Ct(o[1]);i.push([t,e,n])}var sD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function lD(t){return t.match(sD)||[]}var uD=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,hD=Math.PI/180;var cD=/([^\s:;]+)\s*:\s*([^:;]+)/g;function pD(t,e,n){var i,o=t.getAttribute("style");if(o)for(cD.lastIndex=0;null!=(i=cD.exec(o));){var r=i[1],a=U(ZC,r)?ZC[r]:null,a=(a&&(e[a]=i[2]),U(qC,r)?qC[r]:null);a&&(n[a]=i[2])}}function dD(t,e){var n=e.width/t.width,i=e.height/t.height,n=Math.min(n,i);return{scale:n,x:-(t.x+t.width/2)*n+(e.x+e.width/2),y:-(t.y+t.height/2)*n+(e.y+e.height/2)}}var gD=N(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),fD=(yD.prototype.load=function(){var t,e,n,i;return this._firstGraphic||(e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone(),e=e.named,n=[],i=N(),et(e,function(t){var e;null==t.namedFrom&&(e=new h_(t.name,t.el),n.push(e),i.set(t.name,e))}),t=(e={regions:n,regionsMap:i}).regionsMap,this._regions=e.regions,this._regionsMap=t),{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},yD.prototype._buildGraphic=function(t){var e,n,i,o;try{Tt(null!=(n=(e=t&&(i=t,o={ignoreViewBox:!0,ignoreRootClip:!0},(new $C).parse(i,o))||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var r,a,s,l,u=new Z,h=(u.add(n),u.isGeoSVGGraphicRoot=!0,e.width),c=e.height,p=e.viewBoxRect,d=this._boundingRect,g=(d||(l=s=a=r=void 0,null!=h?(r=0,s=h):p&&(r=p.x,s=p.width),null!=c?(a=0,l=c):p&&(a=p.y,l=p.height),null!=r&&null!=a||(h=n.getBoundingRect(),null==r&&(r=h.x,s=h.width),null==a&&(a=h.y,l=h.height)),d=this._boundingRect=new z(r,a,s,l)),p&&(c=dD(p,d),n.scaleX=n.scaleY=c.scale,n.x=c.x,n.y=c.y),u.setClipPath(new L({shape:d.plain()})),[]);return et(e.named,function(t){null!=gD.get(t.svgNodeTagLower)&&(g.push(t),(t=t.el).silent=!1,t.isGroup)&&t.traverse(function(t){t.silent=!1})}),{root:u,boundingRect:d,named:g}},yD.prototype.useGraphic=function(t){var e,n=this._usedGraphicMap;return n.get(t)||(e=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(t,e),e)},yD.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},yD);function yD(t,e){this.type="geoSVG",this._usedGraphicMap=N(),this._freedGraphics=[],this._mapName=t,this._parsedXML=XC(e)}for(var mD=[126,25],vD=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],xD=0;xD<vD.length;xD++)for(var _D=0;_D<vD[xD].length;_D++)vD[xD][_D][0]/=10.5,vD[xD][_D][1]/=-14,vD[xD][_D][0]+=mD[0],vD[xD][_D][1]+=mD[1];var bD={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var wD=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];MD.prototype.load=function(n,t){var e,i=this._parsedMap.get(t=t||"name"),o=(i||(e=this._parseToRegions(t),i=this._parsedMap.set(t,{regions:e,boundingRect:function(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}(e)})),N()),r=[];return et(i.regions,function(t){var e=t.name;n&&U(n,e)&&(t=t.cloneShallow(e=n[e])),r.push(t),o.set(e,t)}),{regions:r,boundingRect:i.boundingRect||new z(0,0,0,0),regionsMap:o}},MD.prototype._parseToRegions=function(t){var e,r=this._mapName,n=this._geoJSON;try{e=n?g_(n,t):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return function(t,e){if("china"===t){for(var n=0;n<e.length;n++)if("南海诸岛"===e[n].name)return;e.push(new s_("南海诸岛",B(vD,function(t){return{type:"polygon",exterior:t}}),mD))}}(r,e),et(e,function(t){var e,n,i=t.name,o=(o=t,"china"===(e=r)&&(e=bD[o.name])&&((n=o.getCenter())[0]+=e[0]/10.5,n[1]+=-e[1]/14,o.setCenter(n)),e=t,"china"===r&&"台湾"===e.name&&e.geometries.push({type:"polygon",exterior:wD[0]}),this._specialAreas&&this._specialAreas[i]);o&&t.transformTo(o.left,o.top,o.width,o.height)},this),e},MD.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}};var SD=MD;function MD(t,e,n){this.type="geoJSON",this._parsedMap=N(),this._mapName=t,this._specialAreas=n,this._geoJSON=Y(t=e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var ID=N(),TD={registerMap:function(t,e,n){var i,e=e.svg?new fD(t,e.svg):((i=e.geoJson||e.geoJSON)&&!e.features?n=e.specialAreas:i=e,new SD(t,i,n));ID.set(t,e)},getGeoResource:function(t){return ID.get(t)},getMapForUser:function(t){t=ID.get(t);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(t,e,n){t=ID.get(t);if(t)return t.load(e,n)}},Jm=["rect","circle","line","ellipse","polygon","polyline","path"],CD=N(Jm),DD=N(Jm.concat(["g"])),AD=N(Jm.concat(["g"])),kD=i();function LD(t){var e=t.getItemStyle(),t=t.get("areaColor");return null!=t&&(e.fill=t),e}function PD(t){t=t.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}RD.prototype.draw=function(e,t,n,i,o){var r="geo"===e.mainType,a=e.getData&&e.getData(),s=(r&&t.eachComponent({mainType:"series",subType:"map"},function(t){a||t.getHostGeoModel()!==e||(a=t.getData())}),e.coordinateSystem),l=this._regionsGroup,u=this.group,h=s.getTransformInfo(),c=h.raw,h=h.roam,o=(!l.childAt(0)||o?(u.x=h.x,u.y=h.y,u.scaleX=h.scaleX,u.scaleY=h.scaleY,u.dirty()):C(u,h,e),a&&a.getVisual("visualMeta")&&0<a.getVisual("visualMeta").length),u={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:o,isGeo:r,transformInfoRaw:c};"geoJSON"===s.resourceType?this._buildGeoJSON(u):"geoSVG"===s.resourceType&&this._buildSVG(u),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},RD.prototype._buildGeoJSON=function(h){var c=this._regionsGroupByName=N(),p=N(),d=this._regionsGroup,n=h.transformInfoRaw,g=h.mapOrGeoModel,f=h.data,y=h.geo.projection,m=y&&y.stream;function v(t,e){return(t=e?e(t):t)&&[t[0]*n.scaleX+n.x,t[1]*n.scaleY+n.y]}function x(t){return{shape:{points:function(t){for(var e=[],n=!m&&y&&y.project,i=0;i<t.length;++i){var o=v(t[i],n);o&&e.push(o)}return e}(t)}}}d.removeAll(),et(h.geo.regions,function(t){var n=t.name,i=c.get(n),e=p.get(n)||{},o=e.dataIdx,r=e.regionModel,a=(i||(i=c.set(n,new Z),d.add(i),o=f?f.indexOfName(n):null,r=h.isGeo?g.getRegionModel(n):f?f.getItemModel(o):null,p.set(n,{dataIdx:o,regionModel:r})),[]),s=[],l=(et(t.geometries,function(t){var e;"polygon"===t.type?(e=[t.exterior].concat(t.interiors||[]),et(e=m?FD(e,m):e,function(t){a.push(new Ch(x(t)))})):(e=t.points,et(e=m?FD(e,m,!0):e,function(t){s.push(new Lh(x(t)))}))}),v(t.getCenter(),y&&y.project));function u(t,e){t.length&&(t=new qh({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}}),i.add(t),ND(h,t,o,r),ED(h,t,n,r,g,o,l),e)&&(PD(t),et(t.states,PD))}u(a),u(s,!0)}),c.each(function(t,e){var n=p.get(e),i=n.dataIdx,n=n.regionModel;zD(h,t,e,n,g,i),VD(h,t,e,n,g),BD(h,t,e,n,g)},this)},RD.prototype._buildSVG=function(s){var t=s.geo.map,e=s.transformInfoRaw,l=(this._svgGroup.x=e.x,this._svgGroup.y=e.y,this._svgGroup.scaleX=e.scaleX,this._svgGroup.scaleY=e.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t)),this._svgDispatcherMap=N()),u=!1;et(this._svgGraphicRecord.named,function(t){var e=t.name,n=s.mapOrGeoModel,i=s.data,o=t.svgNodeTagLower,r=t.el,i=i?i.indexOfName(e):null,a=n.getRegionModel(e);null!=CD.get(o)&&r instanceof ja&&ND(s,r,i,a),r instanceof ja&&(r.culling=!0),r.z2EmphasisLift=0,t.namedFrom||(null!=AD.get(o)&&ED(s,r,e,a,n,i,null),zD(s,r,e,a,n,i),VD(s,r,e,a,n),null!=DD.get(o)&&("self"===BD(s,r,e,a,n)&&(u=!0),(l.get(e)||l.set(e,[])).push(r)))},this),this._enableBlurEntireSVG(u,s)},RD.prototype._enableBlurEntireSVG=function(t,e){var n;t&&e.isGeo&&(n=e.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle().opacity,this._svgGraphicRecord.root.traverse(function(t){var e;t.isGroup||(ou(t),null==(e=t.ensureState("blur").style||{}).opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis"))}))},RD.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},RD.prototype.findHighDownDispatchers=function(t,e){if(null==t)return[];e=e.coordinateSystem;if("geoJSON"===e.resourceType){var n=this._regionsGroupByName;if(n)return(n=n.get(t))?[n]:[]}else if("geoSVG"===e.resourceType)return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},RD.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},RD.prototype._useSVG=function(t){var e=TD.getGeoResource(t);e&&"geoSVG"===e.type&&(e=e.useGraphic(this.uid),this._svgGroup.add(e.root),this._svgGraphicRecord=e,this._svgMapName=t)},RD.prototype._freeSVG=function(){var t=this._svgMapName;null!=t&&((t=TD.getGeoResource(t))&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null)},RD.prototype._updateController=function(i,t,o){var r=i.coordinateSystem,e=this._controller,n=this._controllerHost,a=(n.zoomLimit=i.get("scaleLimit"),n.zoom=r.getZoom(),e.enable(i.get("roam")||!1),i.mainType);function s(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=i.id,t}e.off("pan").on("pan",function(t){this._mouseDownFlag=!1,M2(n,t.dx,t.dy),o.dispatchAction(H(s(),{dx:t.dx,dy:t.dy,animation:{duration:0}}))},this),e.off("zoom").on("zoom",function(t){this._mouseDownFlag=!1,I2(n,t.scale,t.originX,t.originY),o.dispatchAction(H(s(),{zoom:t.scale,originX:t.originX,originY:t.originY,animation:{duration:0}}))},this),e.setPointerChecker(function(t,e,n){return r.containPoint([e,n])&&!E2(t,o,i)})},RD.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){t=t.getTextContent();t&&(t.ignore=kD(t).ignore)})},RD.prototype._updateMapSelectHandler=function(t,e,n,i){var o=this;e.off("mousedown"),e.off("click"),t.get("selectedMode")&&(e.on("mousedown",function(){o._mouseDownFlag=!0}),e.on("click",function(t){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))};var OD=RD;function RD(t){var e=new Z;this.uid=Ap("ec_map_draw"),this._controller=new k2(t.getZr()),this._controllerHost={target:e},(this.group=e).add(this._regionsGroup=new Z),e.add(this._svgGroup=new Z)}function ND(t,e,n,i){var o,r=i.getModel("itemStyle"),a=i.getModel(["emphasis","itemStyle"]),s=i.getModel(["blur","itemStyle"]),i=i.getModel(["select","itemStyle"]),r=LD(r),a=LD(a),i=LD(i),s=LD(s),l=t.data;l&&(o=l.getItemVisual(n,"style"),l=l.getItemVisual(n,"decal"),t.isVisualEncodedByVisualMap&&o.fill&&(r.fill=o.fill),l)&&(r.decal=R0(l,t.api)),e.setStyle(r),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=a,e.ensureState("select").style=i,e.ensureState("blur").style=s,ou(e)}function ED(t,e,n,i,o,r,a){var s=t.data,t=t.isGeo,l=s&&isNaN(s.get(s.mapDimension("value"),r)),u=s&&s.getItemLayout(r);t||l||u&&u.showLabel?(l=t?n:r,u=!s||0<=r?o:void 0,t=a?{normal:{align:"center",verticalAlign:"middle"}}:null,tp(e,ep(i),{labelFetcher:u,labelDataIndex:l,defaultText:n},t),(s=e.getTextContent())&&(kD(s).ignore=s.ignore,e.textConfig)&&a&&(r=e.getBoundingRect().clone(),e.textConfig.layoutRect=r,e.textConfig.position=[(a[0]-r.x)/r.width*100+"%",(a[1]-r.y)/r.height*100+"%"]),e.disableLabelAnimation=!0):(e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null)}function zD(t,e,n,i,o,r){t.data?t.data.setItemGraphicEl(r,e):$(e).eventData={componentType:"geo",componentIndex:o.componentIndex,geoIndex:o.componentIndex,name:n,region:i&&i.option||{}}}function VD(t,e,n,i,o){t.data||Zc({el:e,componentModel:o,itemName:n,itemTooltipOption:i.get("tooltip")})}function BD(t,e,n,i,o){e.highDownSilentOnTouch=!!o.get("selectedMode");var i=i.getModel("emphasis"),r=i.get("focus");return _u(e,r,i.get("blurScope"),i.get("disabled")),t.isGeo&&(i=o,t=n,(o=$(o=e)).componentMainType=i.mainType,o.componentIndex=i.componentIndex,o.componentHighDownName=t),r}function FD(t,e,n){var i,o=[];function r(){i=[]}function a(){i.length&&(o.push(i),i=[])}var s=e({polygonStart:r,polygonEnd:a,lineStart:r,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return n||s.polygonStart(),et(t,function(t){s.lineStart();for(var e=0;e<t.length;e++)s.point(t[e][0],t[e][1]);s.lineEnd()}),n||s.polygonEnd(),o}u(HD,GD=$y),HD.prototype.render=function(t,e,n,i){var o,r;i&&"mapToggleSelect"===i.type&&i.from===this.uid||((o=this.group).removeAll(),t.getHostGeoModel())||(this._mapDraw&&i&&"geoRoam"===i.type&&this._mapDraw.resetForLabelLayout(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id?(r=this._mapDraw)&&o.add(r.group):t.needsDrawMap?(r=this._mapDraw||new OD(n),o.add(r.group),r.draw(t,e,n,this,i),this._mapDraw=r):(this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null),t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n))},HD.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},HD.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},HD.prototype._renderSymbols=function(a,t,e){var s=a.originalData,l=this.group;s.each(s.mapDimension("value"),function(t,e){var n,i,o,r;isNaN(t)||(t=s.getItemLayout(e))&&t.point&&(r=t.point,t=t.offset,n=new $u({style:{fill:a.getData().getVisual("style").fill},shape:{cx:r[0]+9*t,cy:r[1],r:3},silent:!0,z2:8+(t?0:11)}),t||(r=a.mainSeries.getData(),t=s.getName(e),i=r.indexOfName(t),o=(e=s.getItemModel(e)).getModel("label"),r=r.getItemGraphicEl(i),tp(n,ep(e),{labelFetcher:{getFormattedLabel:function(t,e){return a.getFormattedLabel(i,e)}},defaultText:t}),n.disableLabelAnimation=!0,o.get("position")||n.setTextConfig({position:"bottom"}),r.onHoverStateChange=function(t){eu(n,t)}),l.add(n))})},HD.type="map";var GD,WD=HD;function HD(){var t=null!==GD&&GD.apply(this,arguments)||this;return t.type=HD.type,t}u(UD,YD=zy),UD.prototype.getInitialData=function(t){for(var e=mS(this,{coordDimensions:["value"],encodeDefaulter:P(Qd,this)}),n=N(),i=[],o=0,r=e.count();o<r;o++){var a=e.getName(o);n.set(a,!0)}return et(TD.load(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(t){t=t.name;n.get(t)||i.push(t)}),e.appendValues([],i),e},UD.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},UD.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},UD.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},UD.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},UD.prototype.formatTooltip=function(t,e,n){for(var i=this.getData(),o=this.getRawValue(t),r=i.getName(t),a=this.seriesGroup,s=[],l=0;l<a.length;l++){var u=a[l].originalData.indexOfName(r),h=i.mapDimension("value");isNaN(a[l].originalData.get(h,u))||s.push(a[l].name)}return by("section",{header:s.join(", "),noHeader:!s.length,blocks:[by("nameValue",{name:r,value:o})]})},UD.prototype.setZoom=function(t){this.option.zoom=t},UD.prototype.setCenter=function(t){this.option.center=t},UD.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=i0(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill);return n.setStyle(t.itemStyle),n.style.stroke="none",-1<e.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},UD.type="series.map",UD.dependencies=["geo"],UD.layoutMode="box",UD.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"};var YD,XD=UD;function UD(){var t=null!==YD&&YD.apply(this,arguments)||this;return t.type=UD.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(t){var e;if(null!=t)return t=this.getData().getName(t),(t=(e=this.coordinateSystem).getRegion(t))&&e.dataToPoint(t.getCenter())},t}function ZD(t){var n={};t.eachSeriesByType("map",function(t){var e=t.getHostGeoModel(),e=e?"o"+e.id:"i"+t.getMapType();(n[e]=n[e]||[]).push(t)}),et(n,function(t,e){l=B(t,function(t){return t.getData()}),u=t[0].get("mapValueCalculation"),h={},et(l,function(n){n.each(n.mapDimension("value"),function(t,e){e="ec-"+n.getName(e);h[e]=h[e]||[],isNaN(t)||h[e].push(t)})});for(var l,u,h,n=l[0].map(l[0].mapDimension("value"),function(t,e){for(var n="ec-"+l[0].getName(e),i=0,o=1/0,r=-1/0,a=h[n].length,s=0;s<a;s++)o=Math.min(o,h[n][s]),r=Math.max(r,h[n][s]),i+=h[n][s];return 0===a?NaN:"min"===u?o:"max"===u?r:"average"===u?i/a:i}),i=0;i<t.length;i++)t[i].originalData=t[i].getData();for(i=0;i<t.length;i++)(t[i].seriesGroup=t)[i].needsDrawMap=0===i&&!t[i].getHostGeoModel(),t[i].setData(n.cloneShallow()),t[i].mainSeries=t[0]})}function jD(n){var o={};n.eachSeriesByType("map",function(t){var a,i,e=t.getMapType();t.getHostGeoModel()||o[e]||(a={},et(t.seriesGroup,function(t){var o=t.coordinateSystem,r=t.originalData;t.get("showLegendSymbol")&&n.getComponent("legend")&&r.each(r.mapDimension("value"),function(t,e){var n=r.getName(e),i=o.getRegion(n);i&&!isNaN(t)&&(t=a[n]||0,i=o.dataToPoint(i.getCenter()),a[n]=t+1,r.setItemLayout(e,{point:i,offset:t}))})}),(i=t.getData()).each(function(t){var e=i.getName(t),n=i.getItemLayout(t)||{};n.showLabel=!a[e],i.setItemLayout(t,n)}),o[e]=!0)})}var qD,KD={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},$D=["lng","lat"],JD=(u(QD,qD=b2),QD.prototype._transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=this._invertLongitute,o=o.clone(),a=(r&&(o.y=-o.y-o.height),this._rawTransformable),o=(a.transform=o.calculateTransform(new z(t,e,n,i)),a.parent);a.parent=null,a.decomposeTransform(),a.parent=o,r&&(a.scaleY=-a.scaleY),this._updateTransform()},QD.prototype.getRegion=function(t){return this._regionsMap.get(t)},QD.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++){var i=e[n];if("geoJSON"===i.type&&i.contain(t))return e[n]}},QD.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},QD.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},QD.prototype.dataToPoint=function(t,e,n){var i;if(t=Y(t)?this.getGeoCoord(t):t)return(t=(i=this.projection)?i.project(t):t)&&this.projectedToPoint(t,e,n)},QD.prototype.pointToData=function(t){var e=this.projection;return(t=e?e.unproject(t):t)&&this.pointToProjected(t)},QD.prototype.pointToProjected=function(t){return qD.prototype.pointToData.call(this,t)},QD.prototype.projectedToPoint=function(t,e,n){return qD.prototype.dataToPoint.call(this,t,e,n)},QD.prototype.convertToPixel=function(t,e,n){e=tA(e);return e===this?e.dataToPoint(n):null},QD.prototype.convertFromPixel=function(t,e,n){e=tA(e);return e===this?e.pointToData(n):null},QD);function QD(t,e,n){t=qD.call(this,t)||this;t.dimensions=$D,t.type="geo",t._nameCoordMap=N(),t.map=e;var i,o=n.projection,r=TD.load(e,n.nameMap,n.nameProperty),e=TD.getGeoResource(e),a=(t.resourceType=e?e.type:null,t.regions=r.regions),e=KD[e.type];if(t._regionsMap=r.regionsMap,t.regions=r.regions,t.projection=o)for(var s=0;s<a.length;s++){var l=a[s].getBoundingRect(o);(i=i||l.clone()).union(l)}else i=r.boundingRect;return t.setBoundingRect(i.x,i.y,i.width,i.height),t.aspectScale=o?1:R(n.aspectScale,e.aspectScale),t._invertLongitute=!o&&e.invertLongitute,t}function tA(t){var e=t.geoModel,t=t.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",sa).models[0]||{}).coordinateSystem:null}function eA(t,e){var l,u,h,n=t.get("boundingCoords");null!=n&&(u=n[0],h=n[1],isFinite(u[0]))&&isFinite(u[1])&&isFinite(h[0])&&isFinite(h[1])&&((l=this.projection)&&(n=u[0],p=u[1],c=h[0],s=h[1],u=[1/0,1/0],h=[-1/0,-1/0],(a=function(t,e,n,i){for(var o=n-t,r=i-e,a=0;a<=100;a++){var s=a/100,s=l.project([t+o*s,e+r*s]);re(u,u,s),ae(h,h,s)}})(n,p,c,p),a(c,p,c,s),a(c,s,n,s),a(n,s,c,p)),this.setBoundingRect(u[0],u[1],h[0]-u[0],h[1]-u[1]));var i,o,r,a=this.getBoundingRect(),n=t.get("layoutCenter"),s=t.get("layoutSize"),c=e.getWidth(),p=e.getHeight(),a=a.width/a.height*this.aspectScale,d=!1;(d=!(!n||!s||(i=[j(n[0],c),j(n[1],p)],o=j(s,Math.min(c,p)),isNaN(i[0]))||isNaN(i[1])||isNaN(o))||d)?(r={},1<a?(r.width=o,r.height=o/a):(r.height=o,r.width=o*a),r.y=i[1]-r.height/2,r.x=i[0]-r.width/2):((n=t.getBoxLayoutParams()).aspect=a,r=Cd(n,{width:c,height:p})),this.setViewRect(r.x,r.y,r.width,r.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}ut(JD,b2),iA.prototype.create=function(t,o){var r=[];function a(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",function(t,e){var n=t.get("map"),e=new JD(n+e,n,H({nameMap:t.get("nameMap")},a(t)));e.zoomLimit=t.get("scaleLimit"),r.push(e),(t.coordinateSystem=e).model=t,e.resize=eA,e.resize(t,o)}),t.eachSeries(function(t){var e;"geo"===t.get("coordinateSystem")&&(e=t.get("geoIndex")||0,t.coordinateSystem=r[e])});var n={};return t.eachSeriesByType("map",function(t){var e;t.getHostGeoModel()||(e=t.getMapType(),n[e]=n[e]||[],n[e].push(t))}),et(n,function(t,e){var n=B(t,function(t){return t.get("nameMap")}),i=new JD(e,e,H({nameMap:at(n)},a(t[0])));i.zoomLimit=wt.apply(null,B(t,function(t){return t.get("scaleLimit")})),r.push(i),i.resize=eA,i.resize(t[0],o),et(t,function(t){var n;t.coordinateSystem=i,n=i,et(t.get("geoCoord"),function(t,e){n.addGeoCoord(e,t)})})}),r},iA.prototype.getFilledRegions=function(t,e,n,i){for(var o=(t||[]).slice(),r=N(),a=0;a<o.length;a++)r.set(o[a].name,o[a]);return et(TD.load(e,n,i).regions,function(t){t=t.name;r.get(t)||o.push({name:t})}),o};var nA=new iA;function iA(){this.dimensions=$D}u(aA,oA=g),aA.prototype.init=function(t,e,n){var i=TD.getGeoResource(t.map);!i||"geoJSON"!==i.type||"color"in(i=t.itemStyle=t.itemStyle||{})||(i.color="#eee"),this.mergeDefaultAndTheme(t,n),Zr(t,"label",["show"])},aA.prototype.optionUpdated=function(){var i=this,t=this.option,o=(t.regions=nA.getFilledRegions(t.regions,t.map,t.nameMap,t.nameProperty),{});this._optionModelMap=ct(t.regions||[],function(t,e){var n=e.name;return n&&(t.set(n,new Tp(e,i,i.ecModel)),e.selected)&&(o[n]=!0),t},N()),t.selectedMap||(t.selectedMap=o)},aA.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Tp(null,this,this.ecModel)},aA.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),n="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),i={name:t};return D(n)?(i.status=e,n(i)):Y(n)?n.replace("{a}",null!=t?t:""):void 0},aA.prototype.setZoom=function(t){this.option.zoom=t},aA.prototype.setCenter=function(t){this.option.center=t},aA.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},aA.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},aA.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},aA.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},aA.type="geo",aA.layoutMode="box",aA.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]};var oA,rA=aA;function aA(){var t=null!==oA&&oA.apply(this,arguments)||this;return t.type=aA.type,t}u(uA,sA=Uy),uA.prototype.init=function(t,e){this._api=e},uA.prototype.render=function(t,e,n,i){var o;(this._model=t).get("show")?(this._mapDraw||(this._mapDraw=new OD(n)),(o=this._mapDraw).draw(t,e,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,e,n)):(this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null)},uA.prototype._handleRegionClick=function(t){var e;Ym(t.target,function(t){return null!=(e=$(t).eventData)},!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},uA.prototype.updateSelectStatus=function(t,e,n){var i=this;this._mapDraw.group.traverse(function(t){var e=$(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0})},uA.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},uA.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},uA.type="geo";var sA,lA=uA;function uA(){var t=null!==sA&&sA.apply(this,arguments)||this;return t.type=uA.type,t.focusBlurEnabled=!0,t}function hA(t,e,n){TD.registerMap(t,e,n)}function cA(e){function t(r,t){t.update="geo:updateSelectStatus",e.registerAction(t,function(t,e){var i={},o=[];return e.eachComponent({mainType:"geo",query:t},function(e){e[r](t.name);et(e.coordinateSystem.regions,function(t){i[t.name]=e.isSelected(t.name)||!1});var n=[];et(i,function(t,e){i[e]&&n.push(e)}),o.push({geoIndex:e.componentIndex,name:n})}),{selected:i,allSelected:o,name:t.name}})}e.registerCoordinateSystem("geo",nA),e.registerComponentModel(rA),e.registerComponentView(lA),e.registerImpl("registerMap",hA),e.registerImpl("getMap",function(t){return TD.getMapForUser(t)}),t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(i,t,o){var r=i.componentType||"series";t.eachComponent({mainType:r,query:i},function(t){var e,n=t.coordinateSystem;"geo"===n.type&&(e=_T(n,i,t.get("scaleLimit"),o),t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom),"series"===r)&&et(t.seriesGroup,function(t){t.setCenter(e.center),t.setZoom(e.zoom)})})})}r(function(t){r(cA),t.registerChartView(WD),t.registerSeriesModel(XD),t.registerLayout(jD),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,ZD),Wm("map",t.registerAction)});function pA(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}var dA,gA=Eh.prototype,fA=Wh.prototype;function yA(){return null!==dA&&dA.apply(this,arguments)||this}function mA(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}u(yA,dA=pA);u(_A,vA=q),_A.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},_A.prototype.getDefaultShape=function(){return new pA},_A.prototype.buildPath=function(t,e){(mA(e)?gA:fA).buildPath.call(this,t,e)},_A.prototype.pointAt=function(t){return(mA(this.shape)?gA:fA).pointAt.call(this,t)},_A.prototype.tangentAt=function(t){var e=this.shape,e=mA(e)?[e.x2-e.x1,e.y2-e.y1]:fA.tangentAt.call(this,t);return Jt(e,e)};var vA,xA=_A;function _A(t){t=vA.call(this,t)||this;return t.type="ec-line",t}var bA=["fromSymbol","toSymbol"];function wA(t){return"_"+t+"Type"}function SA(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=o0(i))+r0(r||0,n)+(o||"")+(e||"")):a}function MA(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=r0(o||0,n=o0(r)),(r=i0(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 IA(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(DA,TA=Z),DA.prototype._createLine=function(n,i,t){var e,o=n.hostModel,r=(r=n.getItemLayout(i),IA((e=new xA({name:"line",subPixelOptimize:!0})).shape,r),e);r.shape.percent=0,yc(r,{shape:{percent:1}},o,i),this.add(r),et(bA,function(t){var e=MA(t,n,i);this.add(e),this[wA(t)]=SA(t,n,i)},this),this._updateCommonStl(n,i,t)},DA.prototype.updateData=function(i,o,t){var e=i.hostModel,n=this.childOfName("line"),r=i.getItemLayout(o),a={shape:{}};IA(a.shape,r),C(n,a,e,o),et(bA,function(t){var e=SA(t,i,o),n=wA(t);this[n]!==e&&(this.remove(this.childOfName(t)),t=MA(t,i,o),this.add(t)),this[n]=e},this),this._updateCommonStl(i,o,t)},DA.prototype.getLinePath=function(){return this.childAt(0)},DA.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=(g=(e=n.getItemModel(t)).getModel("emphasis")).getModel("lineStyle").getLineStyle(),a=e.getModel(["blur","lineStyle"]).getLineStyle(),s=e.getModel(["select","lineStyle"]).getLineStyle(),u=g.get("disabled"),h=g.get("focus"),c=g.get("blurScope"),l=ep(e)),n.getItemVisual(t,"style")),d=p.stroke,g=(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,et(bA,function(t){var e=this.childOfName(t);if(e){e.setColor(d),e.style.opacity=p.opacity;for(var n=0;n<El.length;n++){var i=El[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=(tp(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,e){return i.getFormattedLabel(t,e,n.dataType)}},inheritColor:d||"#000",defaultOpacity:p.opacity,defaultText:(null==g?n.getName(t):isFinite(g)?wr(g):g)+""}),this.getTextContent());e&&(o=l.normal,e.__align=e.style.align,e.__verticalAlign=e.style.verticalAlign,e.__position=o.get("position")||"middle",W(a=o.get("distance"))||(a=[a,a]),e.__labelDistance=a),this.setTextConfig({position:null,local:!0,inside:!1}),_u(this,h,c,u)},DA.prototype.highlight=function(){su(this)},DA.prototype.downplay=function(){lu(this)},DA.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},DA.prototype.setLinePoints=function(t){var e=this.childOfName("line");IA(e.shape,t),e.dirty()},DA.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=jt([],l,s);if(Jt(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,g=r.tangentAt(e),t=[g[1],-g[0]],f=r.pointAt(e),y=(0<t[1]&&(t[0]=-t[0],t[1]=-t[1]),g[0]<0?-1:1),m=("start"!==n.__position&&"end"!==n.__position&&(a=-Math.atan2(g[1],g[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=g[0]<0?"right":"left",n.originX=-p*y,n.originY=-m;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=f[0],n.y=f[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<=g[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 TA,CA=DA;function DA(t,e,n){var i=TA.call(this)||this;return i._createLine(t,e,n),i}kA.prototype.updateData=function(n){var i=this,e=(this._progressiveEls=null,this.group),o=this._lineData,r=(this._lineData=n,o||e.removeAll(),LA(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()},kA.prototype.updateLayout=function(){var n=this._lineData;n&&n.eachItemGraphicEl(function(t,e){t.updateLayout(n,e)},this)},kA.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=LA(t),this._lineData=null,this.group.removeAll()},kA.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++)OA(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))},kA.prototype.remove=function(){this.group.removeAll()},kA.prototype.eachRendered=function(t){qc(this._progressiveEls||this.group,t)},kA.prototype._doAdd=function(t,e,n){OA(t.getItemLayout(e))&&(n=new this._LineCtor(t,e,n),t.setItemGraphicEl(e,n),this.group.add(n))},kA.prototype._doUpdate=function(t,e,n,i,o){t=t.getItemGraphicEl(n);OA(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 AA=kA;function kA(t){this.group=new Z,this._LineCtor=t||CA}function LA(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:ep(t)}}function PA(t){return isNaN(t[0])||isNaN(t[1])}function OA(t){return t&&!PA(t[0])&&!PA(t[1])}u(EA,RA=Z),EA.prototype.createLine=function(t,e,n){return new CA(t,e,n)},EA.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),i=n.get("symbolSize"),o=n.get("symbol"),r=(W(i)||(i=[i,i]),t.getItemVisual(e,"style")),r=n.get("color")||r&&r.stroke,a=this.childAt(1);this._symbolType!==o&&(this.remove(a),(a=i0(o,-.5,-.5,1,1,r)).z2=100,a.culling=!0,this.add(a)),a&&(a.setStyle("shadowColor",r),a.setStyle(n.getItemStyle(["color"])),a.scaleX=i[0],a.scaleY=i[1],a.setColor(r),this._symbolType=o,this._symbolScale=i,this._updateEffectAnimation(t,n,e))},EA.prototype._updateEffectAnimation=function(e,t,n){var i,o,r,a,s,l=this.childAt(1);l&&(s=e.getItemLayout(n),i=1e3*t.get("period"),o=t.get("loop"),r=t.get("roundTrip"),a=t.get("constantSpeed"),t=wt(t.get("delay"),function(t){return t/e.count()*i/3}),l.ignore=!0,this._updateAnimationPoints(l,s),(i=0<a?this._getLineLength(l)/a*1e3:i)===this._period&&o===this._loop&&r===this._roundTrip||(l.stopAnimation(),s=void 0,s=D(t)?t(n):t,0<l.__t&&(s=-i*l.__t),this._animateSymbol(l,i,s,o,r)),this._period=i,this._loop=o,this._roundTrip=r)},EA.prototype._animateSymbol=function(t,e,n,i,o){var r;0<e&&(t.__t=0,r=this,e=t.animate("",i).when(o?2*e:e,{__t:o?2:1}).delay(n).during(function(){r._updateSymbolPosition(t)}),i||e.done(function(){r.remove(t)}),e.start())},EA.prototype._getLineLength=function(t){return te(t.__p1,t.__cp1)+te(t.__cp1,t.__p2)},EA.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},EA.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},EA.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t<1?t.__t:2-t.__t,r=[t.x,t.y],a=r.slice(),s=Kn,l=$n,s=(r[0]=s(e[0],i[0],n[0],o),r[1]=s(e[1],i[1],n[1],o),t.__t<1?l(e[0],i[0],n[0],o):l(n[0],i[0],e[0],1-o)),l=t.__t<1?l(e[1],i[1],n[1],o):l(n[1],i[1],e[1],1-o);t.rotation=-Math.atan2(l,s)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT<t.__t?(t.scaleY=1.05*te(a,r),1===o&&(r[0]=a[0]+(r[0]-a[0])/2,r[1]=a[1]+(r[1]-a[1])/2)):1===t.__lastT?t.scaleY=2*te(e,r):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=r[0],t.y=r[1]},EA.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)};var RA,NA=EA;function EA(t,e,n){var i=RA.call(this)||this;return i.add(i.createLine(t,e,n)),i._updateEffectSymbol(t,e),i}u(BA,zA=Z),BA.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),i=new Lh({shape:{points:i}});this.add(i),this._updateCommonStl(t,e,n)},BA.prototype.updateData=function(t,e,n){var i=t.hostModel;C(this.childAt(0),{shape:{points:t.getItemLayout(e)}},i,e),this._updateCommonStl(t,e,n)},BA.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),o=t.getItemModel(e),r=n&&n.emphasisLineStyle,a=n&&n.focus,s=n&&n.blurScope,l=n&&n.emphasisDisabled;n&&!t.hasItemOption||(r=(n=o.getModel("emphasis")).getModel("lineStyle").getLineStyle(),l=n.get("disabled"),a=n.get("focus"),s=n.get("blurScope")),i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=r,_u(this,a,s,l)},BA.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))};var zA,VA=BA;function BA(t,e,n){var i=zA.call(this)||this;return i._createPolyline(t,e,n),i}u(WA,FA=NA),WA.prototype.createLine=function(t,e,n){return new VA(t,e,n)},WA.prototype._updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,o=1;o<e.length;o++){var r=e[o-1],a=e[o];i+=te(r,a),n.push(i)}if(0!==i){for(o=0;o<n.length;o++)n[o]/=i;this._offsets=n,this._length=i}else this._length=0},WA.prototype._getLineLength=function(){return this._length},WA.prototype._updateSymbolPosition=function(t){var e=t.__t<1?t.__t:2-t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var r,a=this._lastFrame;if(e<this._lastFramePercent){for(r=Math.min(a+1,o-1);0<=r&&!(i[r]<=e);r--);r=Math.min(r,o-2)}else{for(r=a;r<o&&!(i[r]>e);r++);r=Math.min(r-1,o-2)}var a=(e-i[r])/(i[r+1]-i[r]),s=n[r],n=n[r+1],a=(t.x=s[0]*(1-a)+a*n[0],t.y=s[1]*(1-a)+a*n[1],t.__t<1?n[0]-s[0]:s[0]-n[0]),s=t.__t<1?n[1]-s[1]:s[1]-n[1];t.rotation=-Math.atan2(s,a)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=e,t.ignore=!1}};var FA,GA=WA;function WA(){var t=null!==FA&&FA.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}function HA(){this.polyline=!1,this.curveness=0,this.segs=[]}u(jA,YA=q),jA.prototype.reset=function(){this.notClear=!1,this._off=0},jA.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},jA.prototype.getDefaultShape=function(){return new HA},jA.prototype.buildPath=function(t,e){var n,i=e.segs,o=e.curveness;if(e.polyline)for(n=this._off;n<i.length;){var r=i[n++];if(0<r){t.moveTo(i[n++],i[n++]);for(var a=1;a<r;a++)t.lineTo(i[n++],i[n++])}}else for(n=this._off;n<i.length;){var s=i[n++],l=i[n++],u=i[n++],h=i[n++];t.moveTo(s,l),0<o?t.quadraticCurveTo((s+u)/2-(l-h)*o,(l+h)/2-(u-s)*o,u,h):t.lineTo(u,h)}this.incremental&&(this._off=n,this.notClear=!0)},jA.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,o=n.curveness,r=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s<i.length;){var l=i[s++];if(0<l)for(var u=i[s++],h=i[s++],c=1;c<l;c++){var p=i[s++],d=i[s++];if(ks(u,h,p,d,r,t,e))return a}a++}else for(s=a=0;s<i.length;){u=i[s++],h=i[s++],p=i[s++],d=i[s++];if(0<o){if(Ls(u,h,(u+p)/2-(h-d)*o,(h+d)/2-(p-u)*o,p,d,r,t,e))return a}else if(ks(u,h,p,d,r,t,e))return a;a++}return-1},jA.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.contain(t,e)?0<=(this.hoverDataIdx=this.findDataIndex(t,e)):!(this.hoverDataIdx=-1)},jA.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,n=1/0,i=1/0,o=-1/0,r=-1/0,a=0;a<e.length;)var s=e[a++],l=e[a++],n=Math.min(s,n),o=Math.max(s,o),i=Math.min(l,i),r=Math.max(l,r);t=this._rect=new z(n,i,o,r)}return t};var YA,XA=jA,UA=(ZA.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},ZA.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},ZA.prototype.incrementalUpdate=function(t,e){var n,i,o=this._newAdded[0],r=e.getLayout("linesPoints"),a=o&&o.shape.segs;a&&a.length<2e4?(n=a.length,(i=new Float32Array(n+r.length)).set(a),i.set(r,n),o.setShape({segs:i})):(this._newAdded=[],(a=this._create()).incremental=!0,a.setShape({segs:r}),this._setCommon(a,e),a.__startIndex=t.start)},ZA.prototype.remove=function(){this._clear()},ZA.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},ZA.prototype._create=function(){var t=new XA({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},ZA.prototype._setCommon=function(n,t,e){var i=t.hostModel,t=(n.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),n.useStyle(i.getModel("lineStyle").getLineStyle()),n.style.strokeNoScale=!0,t.getVisual("style")),o=(t&&t.stroke&&n.setStyle("stroke",t.stroke),n.setStyle("fill",null),$(n));o.seriesIndex=i.seriesIndex,n.on("mousemove",function(t){o.dataIndex=null;var e=n.hoverDataIdx;0<e&&(o.dataIndex=e+n.__startIndex)})},ZA.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},ZA);function ZA(){this.group=new Z}function jA(t){t=YA.call(this,t)||this;return t._off=0,t.hoverDataIdx=-1,t}var qA,KA={seriesType:"lines",plan:jy(),reset:function(g){var f,y,m=g.coordinateSystem;if(m)return f=g.get("polyline"),y=g.pipelineContext.large,{progress:function(t,e){var n=[];if(y){var i=void 0,o=t.end-t.start;if(f){for(var r=0,a=t.start;a<t.end;a++)r+=g.getLineCoordsCount(a);i=new Float32Array(o+2*r)}else i=new Float32Array(4*o);for(var s=0,l=[],a=t.start;a<t.end;a++){var u=g.getLineCoords(a,n);f&&(i[s++]=u);for(var h=0;h<u;h++)l=m.dataToPoint(n[h],!1,l),i[s++]=l[0],i[s++]=l[1]}e.setLayout("linesPoints",i)}else for(a=t.start;a<t.end;a++){var c=e.getItemModel(a),p=(u=g.getLineCoords(a,n),[]);if(f)for(var d=0;d<u;d++)p.push(m.dataToPoint(n[d]));else{p[0]=m.dataToPoint(n[0]),p[1]=m.dataToPoint(n[1]);c=c.get(["lineStyle","curveness"]);+c&&(p[2]=[(p[0][0]+p[1][0])/2-(p[0][1]-p[1][1])*c,(p[0][1]+p[1][1])/2-(p[1][0]-p[0][0])*c])}e.setItemLayout(a,p)}}}}},$A=(u(JA,qA=$y),JA.prototype.render=function(t,e,n){var i=t.getData(),o=this._updateLineDraw(i,t),r=t.get("zlevel"),a=t.get(["effect","trailLength"]),n=n.getZr(),s="svg"===n.painter.getType(),s=(s||n.painter.getLayer(r).clear(!0),null==this._lastZlevel||s||n.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&0<a&&!s&&n.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)}),o.updateData(i),t.get("clip",!0)&&Pb(t.coordinateSystem,!1,t));s?this.group.setClipPath(s):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},JA.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},JA.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},JA.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},JA.prototype.updateTransform=function(t,e,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};o=KA.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},JA.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),o=!!e.get("polyline"),e=e.pipelineContext.large;return n&&i===this._hasEffet&&o===this._isPolyline&&e===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=e?new UA:new AA(o?i?GA:VA:i?NA:CA),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=e),this.group.add(n.group),n},JA.prototype._showEffect=function(t){return!!t.get(["effect","show"])},JA.prototype._clearLayer=function(t){t=t.getZr();"svg"!==t.painter.getType()&&null!=this._lastZlevel&&t.painter.getLayer(this._lastZlevel).clear(!0)},JA.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},JA.prototype.dispose=function(t,e){this.remove(t,e)},JA.type="lines",JA);function JA(){var t=null!==qA&&qA.apply(this,arguments)||this;return t.type=JA.type,t}var QA="undefined"==typeof Uint32Array?Array:Uint32Array,tk="undefined"==typeof Float64Array?Array:Float64Array;function ek(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=B(e,function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),at([e,t[0],t[1]])}))}u(ok,nk=zy),ok.prototype.init=function(t){t.data=t.data||[],ek(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),nk.prototype.init.apply(this,arguments)},ok.prototype.mergeOption=function(t){var e;ek(t),t.data&&(e=this._processFlatCoordsArray(t.data),this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords)&&(t.data=new Float32Array(e.count)),nk.prototype.mergeOption.apply(this,arguments)},ok.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Et(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Et(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},ok.prototype._getCoordsFromItemModel=function(t){t=this.getData().getItemModel(t);return t.option instanceof Array?t.option:t.getShallow("coords")},ok.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},ok.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],o=0;o<i;o++)e[o]=e[o]||[],e[o][0]=this._flatCoords[n+2*o],e[o][1]=this._flatCoords[n+2*o+1];return i}for(var r=this._getCoordsFromItemModel(t),o=0;o<r.length;o++)e[o]=e[o]||[],e[o][0]=r[o][0],e[o][1]=r[o][1];return r.length},ok.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),X(t[0])){for(var n=t.length,i=new QA(n),o=new tk(n),r=0,a=0,s=0,l=0;l<n;){s++;var u=t[l++];i[a++]=r+e,i[a++]=u;for(var h=0;h<u;h++){var c=t[l++],p=t[l++];o[r++]=c,o[r++]=p}}return{flatCoordsOffset:new Uint32Array(i.buffer,0,a),flatCoords:o,count:s}}return{flatCoordsOffset:null,flatCoords:null,count:t.length}},ok.prototype.getInitialData=function(t,e){var o=new T1(["value"],this);return o.hasItemOption=!1,o.initData(t.data,[],function(t,e,n,i){if(t instanceof Array)return NaN;o.hasItemOption=!0;t=t.value;return null!=t?t instanceof Array?t[i]:t:void 0}),o},ok.prototype.formatTooltip=function(t,e,n){var i,t=this.getData().getItemModel(t),o=t.get("name");return o||(o=t.get("fromName"),t=t.get("toName"),i=[],null!=o&&i.push(o),null!=t&&i.push(t),by("nameValue",{name:i.join(" > ")}))},ok.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},ok.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},ok.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},ok.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&0<e?e+"":""},ok.type="series.lines",ok.dependencies=["grid","polar","geo","calendar"],ok.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}};var nk,ik=ok;function ok(){var t=null!==nk&&nk.apply(this,arguments)||this;return t.type=ok.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}function rk(t){return t=t instanceof Array?t:[t,t]}var ak={seriesType:"lines",reset:function(t){var e=rk(t.get("symbol")),n=rk(t.get("symbolSize")),t=t.getData();return t.setVisual("fromSymbol",e&&e[0]),t.setVisual("toSymbol",e&&e[1]),t.setVisual("fromSymbolSize",n&&n[0]),t.setVisual("toSymbolSize",n&&n[1]),{dataEach:t.hasItemOption?function(t,e){var n=t.getItemModel(e),i=rk(n.getShallow("symbol",!0)),n=rk(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),n[0]&&t.setItemVisual(e,"fromSymbolSize",n[0]),n[1]&&t.setItemVisual(e,"toSymbolSize",n[1])}:null}}};function sk(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){X(e)&&(e=o[e]);for(var n=0;n<r.length;n++)if(!r[n].isSelected(e))return!1}return!0})})}function lk(t){var h={};t.eachSeriesByType("graph",function(s){var l=s.getCategoriesData(),r=s.getData(),u={};l.each(function(t){var e=l.getName(t),n=(u["ec-"+e]=t,l.getItemModel(t)),i=n.getModel("itemStyle").getItemStyle();i.fill||(i.fill=s.getColorFromPalette(e,h)),l.setItemVisual(t,"style",i);for(var o=["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){Y(e)&&(e=u["ec-"+e]);var n=l.getItemVisual(e,"style");H(r.ensureUniqueItemVisual(t,"style"),n);for(var i=["symbol","symbolSize","symbolKeepAspect"],o=0;o<i.length;o++)r.setItemVisual(t,i[o],l.getItemVisual(e,i[o]))}})})}function uk(t){return t=t instanceof Array?t:[t,t]}function hk(t){t.eachSeriesByType("graph",function(t){var s=t.getGraph(),l=t.getEdgeData(),e=uk(t.get("edgeSymbol")),n=uk(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=uk(e.getShallow("symbol",!0)),o=uk(e.getShallow("symbolSize",!0)),e=e.getModel("lineStyle").getLineStyle(),r=l.ensureUniqueItemVisual(t,"style");switch(H(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])})})}r(function(t){t.registerChartView($A),t.registerSeriesModel(ik),t.registerLayout(KA),t.registerVisual(ak)});var ck="--\x3e",pk=function(t){return t.get("autoCurveness")||null},dk=function(t,e){var n=pk(t),i=20,o=[];if(X(n))i=n;else if(W(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},gk=function(t,e,n){t=[t.id,t.dataIndex].join("."),e=[e.id,e.dataIndex].join(".");return[n.uid,t,e].join(ck)},fk=function(t){t=t.split(ck);return[t[0],t[2],t[1]].join(ck)},yk=function(t,e){t=gk(t.node1,t.node2,e);return e.__edgeMap[t]},mk=function(t,e){return vk(gk(t.node1,t.node2,e),e)+vk(gk(t.node2,t.node1,e),e)},vk=function(t,e){e=e.__edgeMap;return e[t]?e[t].length:0};function xk(t,e,n,i){var o=pk(e),r=W(o);if(!o)return null;var a=yk(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=mk(t,e),t=(dk(e,u),t.lineStyle=t.lineStyle||{},gk(t.node1,t.node2,e)),h=e.__curvenessList,u=r||u%2?0:1;return a.isForward?h[u+s]:(t=fk(t),e=h[s+(t=vk(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 _k(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")])}),bk(e,t))}function bk(t,r){t.eachEdge(function(t,e){var e=St(t.getModel().get(["lineStyle","curveness"]),-xk(t,r,e,!0),0),n=Yt(t.node1.getLayout()),i=Yt(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 wk(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=[];et(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])}bk(i.graph,t)}else e&&"none"!==e||_k(t)})}function Sk(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 Mk(t){t=t.getVisual("symbolSize");return+(t=t instanceof Array?(t[0]+t[1])/2:t)}var Ik=Math.PI,Tk=[];function Ck(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],Jt(n=[n-l,h-u],n),$t(n,n,r),e.setLayout([l+n[0],u+n[1]],!0),Ak(e,s.get(["circular","rotateLabel"]),l,u)),Dk[t](s,o,i,r,l,u,a),o.eachEdge(function(t,e){var n,e=St(t.getModel().get(["lineStyle","curveness"]),xk(t,s,e),0),i=Yt(t.node1.getLayout()),o=Yt(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 Dk={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=(Tk.length=a,Sk(t)),u=(e.eachNode(function(t){var e=Mk(t),e=((e=isNaN(e)?2:e)<0&&(e=0),e*=l,Math.asin(e/2/i));isNaN(e)&&(e=Ik/2),Tk[t.dataIndex]=e,s+=2*e}),(2*Ik-s)/a/2),h=0;e.eachNode(function(t){var e=u+Tk[t.dataIndex];h+=e,t.getLayout()&&t.getLayout().fixed||t.setLayout([i*Math.cos(h)+o,i*Math.sin(h)+r]),h+=e})}};function Ak(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"}),H((n=r.ensureState("emphasis")).textConfig||(n.textConfig={}),{position:e})):r.setTextConfig({rotation:o*=Math.PI/180}))}function kk(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&Ck(t,"symbolSize")})}var Lk=Zt;function Pk(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&&Ck(o,"value"):_k(o),i=p.getDataExtent("value"),r=u.getDataExtent("value"),e=t.get("repulsion"),n=t.get("edgeLength"),a=W(e)?e:[e,e],s=[(s=W(n)?n:[n,n])[1],s[0]],l=p.mapArray("value",function(t,e){var n=p.getItemLayout(e),t=br(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=br(t,r,s),i=(isNaN(t)&&(t=(s[0]+s[1])/2),n.getModel()),e=St(n.getModel().get(["lineStyle","curveness"]),-xk(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,g=e,i=(t=n.rect).width,o=t.height,f=[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=Wt(i*(Math.random()-.5)+f[0],o*(Math.random()-.5)+f[1])),a.pp=Yt(a.p),a.edges=null}var m,v,s=null==n.friction?.6:n.friction,x=s;return{warmUp:function(){x=.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,g);for(var e=[],n=d.length,i=0;i<g.length;i++){var o,r,a=g[i];a.ignoreForceLayout||(s=a.n1,jt(e,(o=a.n2).p,s.p),r=qt(e)-a.d,a=o.w/(s.w+o.w),isNaN(a)&&(a=0),Jt(e,e),s.fixed||Lk(s.p,s.p,e,a*r*x),o.fixed)||Lk(o.p,o.p,e,-(1-a)*r*x)}for(i=0;i<n;i++)(h=d[i]).fixed||(jt(e,f,h.p),Lk(h.p,h.p,e,y*x));for(i=0;i<n;i++)for(var s=d[i],l=i+1;l<n;l++){jt(e,(o=d[l]).p,s.p),0===(r=qt(e))&&(Xt(e,Math.random()-.5,Math.random()-.5),r=1);var u=(s.rep+o.rep)/r/r;s.fixed||Lk(s.pp,s.pp,e,u),o.fixed||Lk(o.pp,o.pp,e,-u)}for(var h,c=[],i=0;i<n;i++)(h=d[i]).fixed||(jt(c,h.p,h.pp),Lk(h.p,h.p,c,x),Ht(h.pp,h.p));var p=(x*=.992)<.01;v&&v(d,g,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&&Ht(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]||[],Ht(u[0],s),Ht(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 Ok(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=[],as((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=Cd(H(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 b2).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 Rk=[],Nk=[],Ek=[],zk=Kn,Vk=ne,Bk=Math.abs;function Fk(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)Rk[0]=zk(o[0],r[0],a[0],h),Rk[1]=zk(o[1],r[1],a[1],h),(d=Bk(Vk(Rk,e)-l))<s&&(s=d,i=h);for(var c=0;c<32;c++){var p=i+u,d=(Nk[0]=zk(o[0],r[0],a[0],i),Nk[1]=zk(o[1],r[1],a[1],i),Ek[0]=zk(o[0],r[0],a[0],p),Ek[1]=zk(o[1],r[1],a[1],p),Vk(Nk,e)-l);if(Bk(d)<.01)break;p=Vk(Ek,e)-l;u/=2,d<0?0<=p?i+=u:i-=u:0<=p?i-=u:i+=u}return i}function Gk(t,l){var u=[],h=Qn,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=[Yt(o[0]),Yt(o[1])],o[2]&&o.__original.push(Yt(o[2]))),o.__original);null!=o[2]?(Ht(c[0],s[0]),Ht(c[1],s[2]),Ht(c[2],s[1]),r&&"none"!==r&&(n=Mk(t.node1),i=Fk(c,s[0],n*l),h(c[0][0],c[1][0],c[2][0],i,u),c[0][0]=u[3],c[1][0]=u[4],h(c[0][1],c[1][1],c[2][1],i,u),c[0][1]=u[3],c[1][1]=u[4]),a&&"none"!==a&&(n=Mk(t.node2),i=Fk(c,s[1],n*l),h(c[0][0],c[1][0],c[2][0],i,u),c[1][0]=u[1],c[2][0]=u[2],h(c[0][1],c[1][1],c[2][1],i,u),c[1][1]=u[1],c[2][1]=u[2]),Ht(o[0],c[0]),Ht(o[1],c[2]),Ht(o[2],c[1])):(Ht(p[0],s[0]),Ht(p[1],s[1]),jt(d,p[1],p[0]),Jt(d,d),r&&"none"!==r&&(n=Mk(t.node1),Zt(p[0],p[0],d,n*l)),a&&"none"!==a&&(n=Mk(t.node2),Zt(p[1],p[1],d,-n*l)),Ht(o[0],p[0]),Ht(o[1],p[1]))})}function Wk(t){return"view"===t.type}u(Xk,Hk=$y),Xk.prototype.init=function(t,e){var n=new bw,i=new AA,o=this.group;this._controller=new k2(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},Xk.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=(Wk(n)&&(n={x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},this._firstRender?s.attr(n):C(s,n,r)),Gk(r.getGraph(),Sk(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),Ck(r,"symbolSize",e,[t.offsetX,t.offsetY]),a.updateLayout(r);break;default:l.setItemLayout(n,[i.x,i.y]),bk(r.getGraph(),r),a.updateLayout(r)}}).on("dragend",function(){u&&u.setUnfixed(n)}),i.setDraggable(t,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"]))&&($(i).focus=e.getAdjacentDataIndices())}),l.graph.eachEdge(function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&($(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}),"circular"===r.get("layout")&&r.get(["circular","rotateLabel"])),d=l.getLayout("cx"),g=l.getLayout("cy");l.graph.eachNode(function(t){Ak(t,p,d,g)}),this._firstRender=!1},Xk.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},Xk.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())})}()},Xk.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)&&!E2(t,r,o)}),Wk(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){M2(i,t.dx,t.dy),r.dispatchAction({seriesId:o.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){I2(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(),Gk(o.getGraph(),Sk(o)),e._lineDraw.updateLayout(),r.updateLabelLayout()})):n.disable()},Xk.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=Sk(t);e.eachItemGraphicEl(function(t,e){t&&t.setSymbolScale(n)})},Xk.prototype.updateLayout=function(t){Gk(t.getGraph(),Sk(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},Xk.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},Xk.type="graph";var Hk,Yk=Xk;function Xk(){var t=null!==Hk&&Hk.apply(this,arguments)||this;return t.type=Xk.type,t}function Uk(t){return"_EC_"+t}Jk.prototype.isDirected=function(){return this._directed},Jk.prototype.addNode=function(t,e){var n=this._nodesMap;if(!n[Uk(t=null==t?""+e:""+t)])return((e=new jk(t,e)).hostGraph=this).nodes.push(e),n[Uk(t)]=e},Jk.prototype.getNodeByIndex=function(t){t=this.data.getRawIndex(t);return this.nodes[t]},Jk.prototype.getNodeById=function(t){return this._nodesMap[Uk(t)]},Jk.prototype.addEdge=function(t,e,n){var i=this._nodesMap,o=this._edgesMap;if(X(t)&&(t=this.nodes[t]),X(e)&&(e=this.nodes[e]),t instanceof jk||(t=i[Uk(t)]),e instanceof jk||(e=i[Uk(e)]),t&&e)return i=t.id+"-"+e.id,((n=new qk(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},Jk.prototype.getEdgeByIndex=function(t){t=this.edgeData.getRawIndex(t);return this.edges[t]},Jk.prototype.getEdge=function(t,e){t instanceof jk&&(t=t.id),e instanceof jk&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},Jk.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)},Jk.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)},Jk.prototype.breadthFirstTraverse=function(t,e,n,i){if(e=e instanceof jk?e:this._nodesMap[Uk(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}}}},Jk.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;for(e.filterSelf(function(t){t=i[e.getRawIndex(t)];return 0<=t.node1.dataIndex&&0<=t.node2.dataIndex}),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},Jk.prototype.clone=function(){for(var t=new Jk(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 Zk=Jk,jk=($k.prototype.degree=function(){return this.edges.length},$k.prototype.inDegree=function(){return this.inEdges.length},$k.prototype.outDegree=function(){return this.outEdges.length},$k.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},$k.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},$k.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];for(a++,e.set(u.dataIndex,!0),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()}},$k),qk=(Kk.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},Kk.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},Kk.prototype.getTrajectoryDataIndices=function(){var t=N(),e=N();t.set(this.dataIndex,!0);for(var n=[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];for(o++,e.set(s.dataIndex,!0),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()}},Kk);function Kk(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}function $k(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}function Jk(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}function Qk(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)}}}function tL(t,e,n,i,o){for(var r=new Zk(i),a=0;a<t.length;a++)r.addNode(wt(t[a].id,t[a].name,a),a);for(var s=[],l=[],u=0,a=0;a<e.length;a++){var h=e[a],c=h.source,p=h.target;r.addEdge(c,p,u)&&(l.push(h),s.push(wt(Qr(h.id,null),c+" > "+p)),u++)}var d,i=n.get("coordinateSystem"),i=("cartesian2d"===i||"polar"===i?d=R1(t,n):(F(i=(i=wg.get(i))&&i.dimensions||[],"value")<0&&i.concat(["value"]),i=C1(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(d=new T1(i,n)).initData(t)),new T1(["value"],n));return i.initData(l,s),o&&o(d,i),$2({mainData:d,struct:r,structAttr:"graph",datas:{node:d,edge:i},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}ut(jk,Qk("hostGraph","data")),ut(qk,Qk("hostGraph","edgeData"));u(iL,eL=zy),iL.prototype.init=function(t){eL.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new vS(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},iL.prototype.mergeOption=function(t){eL.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},iL.prototype.mergeDefaultAndTheme=function(t){eL.prototype.mergeDefaultAndTheme.apply(this,arguments),Zr(t,"edgeLabel",["show"])},iL.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],t=t.data||t.nodes||[],r=this;if(t&&i)return pk(n=this)&&(n.__curvenessList=[],n.__edgeMap={},dk(n)),et((n=tL(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=Tp.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,pk(i)&&(e=gk(e,n,i),i=(n=i.__edgeMap)[fk(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},iL.prototype.getGraph=function(){return this.getData().graph},iL.prototype.getEdgeData=function(){return this.getGraph().edgeData},iL.prototype.getCategoriesData=function(){return this._categoriesData},iL.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),by("nameValue",{name:r.join(" > "),value:n.value,noValue:null==n.value})):Oy({series:this,dataIndex:t,multipleSeries:e})},iL.prototype._updateCategoriesData=function(){var t=B(this.option.categories||[],function(t){return null!=t.value?t:H({value:0},t)}),e=new T1(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},iL.prototype.setZoom=function(t){this.option.zoom=t},iL.prototype.setCenter=function(t){this.option.center=t},iL.prototype.isAnimationEnabled=function(){return eL.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},iL.type="series.graph",iL.dependencies=["grid","polar","geo","singleAxis","calendar"],iL.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 eL,nL=iL;function iL(){var t=null!==eL&&eL.apply(this,arguments)||this;return t.type=iL.type,t.hasSymbolVisual=!0,t}var oL={type:"graphRoam",event:"graphRoam",update:"none"};r(function(t){t.registerChartView(Yk),t.registerSeriesModel(nL),t.registerProcessor(sk),t.registerVisual(lk),t.registerVisual(hk),t.registerLayout(wk),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,kk),t.registerLayout(Pk),t.registerCoordinateSystem("graphView",{dimensions:b2.dimensions,create:Ok}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Bt),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Bt),t.registerAction(oL,function(n,t,i){t.eachComponent({mainType:"series",query:n},function(t){var e=_T(t.coordinateSystem,n,void 0,i);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})})});u(sL,rL=zy),sL.type="series.boxplot",sL.dependencies=["xAxis","yAxis","grid"],sL.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800};var rL,aL=sL;function sL(){var t=null!==rL&&rL.apply(this,arguments)||this;return t.type=sL.type,t.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],t.visualDrawType="stroke",t}ut(aL,xa,!0);function lL(){}u(gL,hL=$y),gL.prototype.render=function(t,e,n){var i=t.getData(),o=this.group,r=this._data,a=(this._data||o.removeAll(),"horizontal"===t.get("layout")?1:0);i.diff(r).add(function(t){var e;i.hasValue(t)&&(e=fL(i.getItemLayout(t),i,t,a,!0),i.setItemGraphicEl(t,e),o.add(e))}).update(function(t,e){var n,e=r.getItemGraphicEl(e);i.hasValue(t)?(n=i.getItemLayout(t),e?(bc(e),yL(n,e,i,t)):e=fL(n,i,t,a),o.add(e),i.setItemGraphicEl(t,e)):o.remove(e)}).remove(function(t){t=r.getItemGraphicEl(t);t&&o.remove(t)}).execute(),this._data=i},gL.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},gL.type="boxplot";var uL,hL,cL=gL,pL=(u(dL,uL=q),dL.prototype.getDefaultShape=function(){return new lL},dL.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();i<n.length;i++)t.moveTo(n[i][0],n[i][1]),t.lineTo(n[++i][0],n[i][1])},dL);function dL(t){t=uL.call(this,t)||this;return t.type="boxplotBoxPath",t}function gL(){var t=null!==hL&&hL.apply(this,arguments)||this;return t.type=gL.type,t}function fL(t,e,n,i,o){var r,a,s=t.ends,i=new pL({shape:{points:o?(r=i,a=t,B(s,function(t){return(t=t.slice())[r]=a.initBaseline,t})):s}});return yL(t,i,e,n,o),i}function yL(t,e,n,i,o){var r=n.hostModel,o=((0,Kc[o?"initProps":"updateProps"])(e,{shape:{points:t.ends}},r,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100,n.getItemModel(i)),t=o.getModel("emphasis");Mu(e,o),_u(e,t.get("focus"),t.get("blurScope"),t.get("disabled"))}var mL=et;function vL(t){var i,o;i=[],o=[],t.eachSeriesByType("boxplot",function(t){var e=t.getBaseAxis(),n=F(o,e);n<0&&(n=o.length,o[n]=e,i[n]={axis:e,seriesModels:[]}),i[n].seriesModels.push(t)}),mL(i,function(_){var e,t,n,i,o,r,a,s,l,u,h,c,p=_.seriesModels;p.length&&(l=(t=_).axis,i=t.seriesModels,o=i.length,r=t.boxWidthList=[],a=t.boxOffsetList=[],s=[],n="category"===l.type?l.getBandWidth():(e=0,mL(i,function(t){e=Math.max(e,t.getData().count())}),t=l.getExtent(),Math.abs(t[1]-t[0])/e),mL(i,function(t){t=t.get("boxWidth");W(t)||(t=[t,t]),s.push([j(t[0],n)||0,j(t[1],n)||0])}),u=(l=.8*n-2)/o*.3,c=(h=(l-u*(o-1))/o)/2-l/2,mL(i,function(t,e){a.push(c),c+=u+h,r.push(Math.min(Math.max(h,s[e][0]),s[e][1]))}),mL(p,function(t,e){var o=_.boxOffsetList[e],e=_.boxWidthList[e],r=t.coordinateSystem,a=t.getData(),s=e/2,l="horizontal"===t.get("layout")?0:1,u=1-l,e=["x","y"],n=a.mapDimension(e[l]),i=a.mapDimensionsAll(e[u]);if(!(null==n||i.length<5))for(var h=0;h<a.count();h++){var c=a.get(n,h),p=m(c,i[2],h),d=m(c,i[0],h),g=m(c,i[1],h),f=m(c,i[3],h),c=m(c,i[4],h),y=[];v(y,g,!1),v(y,f,!0),y.push(d,g,c,f),x(y,d),x(y,c),x(y,p),a.setItemLayout(h,{initBaseline:p[u],ends:y})}function m(t,e,n){var i,e=a.get(e,n),n=[];return n[l]=t,n[u]=e,isNaN(t)||isNaN(e)?i=[NaN,NaN]:(i=r.dataToPoint(n))[l]+=o,i}function v(t,e,n){var i=e.slice(),e=e.slice();i[l]+=s,e[l]-=s,n?t.push(i,e):t.push(e,i)}function x(t,e){var n=e.slice(),e=e.slice();n[l]-=s,e[l]+=s,t.push(n,e)}}))})}var xL={type:"echarts:boxplot",transform:function(t){var e=t.upstream,e=(e.sourceFormat!==Hd&&Wr(""),function(t,e){for(var n=[],i=[],o=(e=e||{}).boundIQR,r="none"===o||0===o,a=0;a<t.length;a++){var s=Sr(t[a].slice()),l=Er(s,.25),u=Er(s,.5),h=Er(s,.75),c=s[0],p=s[s.length-1],d=(null==o?1.5:o)*(h-l),g=r?c:Math.max(c,l-d),f=r?p:Math.min(p,h+d),c=e.itemNameFormatter,y=D(c)?c({value:a}):Y(c)?c.replace("{value}",a+""):a+"";n.push([y,g,l,u,h,f]);for(var m=0;m<s.length;m++){var v=s[m];(v<g||f<v)&&i.push([y,v])}}return{boxData:n,outliers:i}}(e.getRawData(),t.config));return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:e.boxData},{data:e.outliers}]}};r(function(t){t.registerSeriesModel(aL),t.registerChartView(cL),t.registerLayout(vL),t.registerTransform(xL)});u(wL,_L=$y),wL.prototype.init=function(){this.group.add(this._dataGroup)},wL.prototype.render=function(i,t,e,n){this._progressiveEls=null;var o,r,a,s,l,u=this._dataGroup,h=i.getData(),c=this._data,p=i.coordinateSystem,d=p.dimensions,g=IL(i);h.diff(c).add(function(t){TL(ML(h,u,t,d,p),h,t,g)}).update(function(t,e){var e=c.getItemGraphicEl(e),n=SL(h,t,d,p);h.setItemGraphicEl(t,e),C(e,{shape:{points:n}},i,t),bc(e),TL(e,h,t,g)}).remove(function(t){t=c.getItemGraphicEl(t);u.remove(t)}).execute(),this._initialized||(this._initialized=!0,r=i,a=function(){setTimeout(function(){u.removeClipPath()})},s=(o=p).model,o=o.getRect(),l=new L({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),s="horizontal"===s.get("layout")?"width":"height",l.setShape(s,0),yc(l,{shape:{width:o.width,height:o.height}},r,a),s=l,u.setClipPath(s)),this._data=h},wL.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},wL.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),o=e.coordinateSystem,r=o.dimensions,a=IL(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=ML(i,this._dataGroup,l,r,o);u.incremental=!0,TL(u,i,l,a),s.push(u)}},wL.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},wL.type="parallel";var _L,bL=wL;function wL(){var t=null!==_L&&_L.apply(this,arguments)||this;return t.type=wL.type,t._dataGroup=new Z,t._initialized=!1,t}function SL(t,e,n,i){for(var o,r=[],a=0;a<n.length;a++){var s=n[a],l=t.get(t.mapDimension(s),e);o=l,("category"===i.getAxis(s).type?null==o:null==o||isNaN(o))||r.push(i.dataToPoint(l,s))}return r}function ML(t,e,n,i,o){i=SL(t,n,i,o),o=new Lh({shape:{points:i},z2:10});return e.add(o),t.setItemGraphicEl(n,o),o}function IL(t){t=t.get("smooth",!0);return{smooth:t=bt(t=Vr(t=!0===t?.3:t))?0:t}}function TL(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);i=e.getItemModel(n),e=i.getModel("emphasis");Mu(t,i,"lineStyle"),_u(t,e.get("focus"),e.get("blurScope"),e.get("disabled"))}u(AL,CL=zy),AL.prototype.getInitialData=function(t,e){return R1(null,this,{useEncodeDefaulter:T(kL,null,this)})},AL.prototype.getRawIndicesByActiveState=function(n){var t=this.coordinateSystem,i=this.getData(),o=[];return t.eachActiveState(i,function(t,e){n===t&&o.push(i.getRawIndex(e))}),o},AL.type="series.parallel",AL.dependencies=["parallel"],AL.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"};var CL,DL=AL;function AL(){var t=null!==CL&&CL.apply(this,arguments)||this;return t.type=AL.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}function kL(t){var n,t=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(t)return n={},et(t.dimensions,function(t){var e=+t.replace("dim","");n[t]=e}),n}var LL=["lineStyle","opacity"],PL={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,o={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(t,i){n.eachActiveState(i,function(t,e){var n=o[t];"normal"===t&&i.hasItemOption&&null!=(t=i.getItemModel(e).get(LL,!0))&&(n=t),i.ensureUniqueItemVisual(e,"style").opacity=n},t.start,t.end)}}}};function OL(t){var e,n,i=t;i.parallel||(e=!1,et(i.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(i.parallel=[{}])),et(Ur((n=t).parallelAxis),function(t){var e;O(t)&&(e=t.parallelIndex||0,e=Ur(n.parallel)[e])&&e.parallelAxisDefault&&d(t,e.parallelAxisDefault,!1)})}u(zL,RL=Uy),zL.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},et(EL,function(t,e){n.getZr().on(e,this._handlers[e]=T(t,this))},this)),lm(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},zL.prototype.dispose=function(t,n){um(this,"_throttledDispatchExpand"),et(this._handlers,function(t,e){n.getZr().off(e,t)}),this._handlers=null},zL.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},zL.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(H({type:"parallelAxisExpand"},t))},zL.type="parallel";var RL,NL=zL,EL={mousedown:function(t){VL(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(VL(this,"click")&&e){var n=[t.offsetX,t.offsetY];if(5<Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2))return;e=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==e.behavior&&this._dispatchExpand({axisExpandWindow:e.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){var e,n;!this._mouseDownPoint&&VL(this,"mousemove")&&("jump"===(n=(t=(e=this._model).coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY])).behavior)&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:t.axisExpandWindow,animation:"jump"===n?null:{duration:0}}))}};function zL(){var t=null!==RL&&RL.apply(this,arguments)||this;return t.type=zL.type,t}function VL(t,e){t=t._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}u(GL,BL=g),GL.prototype.init=function(){BL.prototype.init.apply(this,arguments),this.mergeOption({})},GL.prototype.mergeOption=function(t){var e=this.option;t&&d(e,t,!0),this._initDimensions()},GL.prototype.contains=function(t,e){t=t.get("parallelIndex");return null!=t&&e.getComponent("parallel",t)===this},GL.prototype.setAxisExpand=function(e){et(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},GL.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[];et(pt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this),function(t){e.push("dim"+t.get("dim")),n.push(t.componentIndex)})},GL.type="parallel",GL.dependencies=["parallelAxis"],GL.layoutMode="box",GL.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null};var BL,FL=GL;function GL(){var t=null!==BL&&BL.apply(this,arguments)||this;return t.type=GL.type,t}u(YL,WL=bp),YL.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")};var WL,HL=YL;function YL(t,e,n,i,o){t=WL.call(this,t,e,n)||this;return t.type=i||"value",t.axisIndex=o,t}function XL(t,e,n,i,o,r){t=t||0;var a=n[1]-n[0],a=(null!=o&&(o=ZL(o,[0,a])),null!=r&&(r=Math.max(r,null!=o?o:0)),"all"===i&&(s=ZL(s=Math.abs(e[1]-e[0]),[0,a]),o=r=ZL(s,[o,r]),i=0),e[0]=ZL(e[0],n),e[1]=ZL(e[1],n),UL(e,i));e[i]+=t;var s=o||0,t=n.slice();return a.sign<0?t[0]+=s:t[1]-=s,e[i]=ZL(e[i],t),n=UL(e,i),null!=o&&(n.sign!==a.sign||n.span<o)&&(e[1-i]=e[i]+a.sign*o),n=UL(e,i),null!=r&&n.span>r&&(e[1-i]=e[i]+n.sign*r),e}function UL(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0<t||!(t<0)&&e?-1:1}}function ZL(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var jL=et,qL=Math.min,KL=Math.max,$L=Math.floor,JL=Math.ceil,QL=wr,tP=Math.PI,eP=(nP.prototype._init=function(t,i,e){var n=t.dimensions,o=t.parallelAxisIndex;jL(n,function(t,e){var e=o[e],n=i.getComponent("parallelAxis",e),t=this._axesMap.set(t,new HL(t,Fx(n),[0,0],n.get("type"),e)),e="category"===t.type;t.onBand=e&&n.get("boundaryGap"),t.inverse=n.get("inverse"),(n.axis=t).model=n,t.coordinateSystem=n.coordinateSystem=this},this)},nP.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},nP.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,o=e.pixelDimIndex,r=t[1-o],t=t[o];return n<=r&&r<=n+e.axisLength&&i<=t&&t<=i+e.layoutLength},nP.prototype.getModel=function(){return this._model},nP.prototype._updateAxesFromSeries=function(e,i){i.eachSeries(function(t){var n;e.contains(t,i)&&(n=t.getData(),jL(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),Bx(e.scale,e.model)},this))},this)},nP.prototype.resize=function(t,e){this._rect=Cd(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},nP.prototype.getRect=function(){return this._rect},nP.prototype._makeLayoutInfo=function(){var t=this._model,e=this._rect,n=["x","y"],i=["width","height"],o=t.get("layout"),r="horizontal"===o?0:1,a=e[i[r]],s=[0,a],l=this.dimensions.length,u=iP(t.get("axisExpandWidth"),s),h=iP(t.get("axisExpandCount")||0,[0,l]),c=t.get("axisExpandable")&&3<l&&h<l&&1<h&&0<u&&0<a,p=t.get("axisExpandWindow"),s=(p?(d=iP(p[1]-p[0],s),p[1]=p[0]+d):(d=iP(u*(h-1),s),(p=[u*(t.get("axisExpandCenter")||$L(l/2))-d/2])[1]=p[0]+d),(a-d)/(l-h)),t=(s<3&&(s=0),[$L(QL(p[0]/u,1))+1,JL(QL(p[1]/u,1))-1]),d=s/u*p[0];return{layout:o,pixelDimIndex:r,layoutBase:e[n[r]],layoutLength:a,axisBase:e[n[1-r]],axisLength:e[i[1-r]],axisExpandable:c,axisExpandWidth:u,axisCollapseWidth:s,axisExpandWindow:p,axisCount:l,winInnerIndices:t,axisExpandWindow0Pos:d}},nP.prototype._layoutAxes=function(){var r=this._rect,t=this._axesMap,e=this.dimensions,a=this._makeLayoutInfo(),s=a.layout;t.each(function(t){var e=[0,a.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),jL(e,function(t,e){var e=(a.axisExpandable?function(t,e){var n,i,o=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t<l[0]?(n=t*s,i=s):t<=l[1]?(n=e.axisExpandWindow0Pos+t*r-e.axisExpandWindow[0],u=r,h=!0):(n=o-(a-1-t)*s,i=s),{position:n,axisNameAvailableWidth:u,axisLabelShow:h,nameTruncateMaxWidth:i}}:function(t,e){e=e.layoutLength/(e.axisCount-1);return{position:e*t,axisNameAvailableWidth:e,axisLabelShow:!0}})(e,a),n={horizontal:{x:e.position,y:a.axisLength},vertical:{x:0,y:e.position}},n=[n[s].x+r.x,n[s].y+r.y],i={horizontal:tP/2,vertical:0}[s],o=ze();We(o,o,i),Ge(o,o,n),this._axesLayout[t]={position:n,rotation:i,transform:o,axisNameAvailableWidth:e.axisNameAvailableWidth,axisLabelShow:e.axisLabelShow,nameTruncateMaxWidth:e.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},nP.prototype.getAxis=function(t){return this._axesMap.get(t)},nP.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},nP.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var o=this._axesMap,r=this.dimensions,a=[],s=[];et(r,function(t){a.push(e.mapDimension(t)),s.push(o.get(t).model)});for(var l=this.hasAxisBrushed(),u=n;u<i;u++){var h=void 0;if(l){for(var h="active",c=e.getValues(a,u),p=0,d=r.length;p<d;p++)if("inactive"===s[p].getActiveState(c[p])){h="inactive";break}}else h="normal";t(h,u)}},nP.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,e=this._axesMap,n=!1,i=0,o=t.length;i<o;i++)"normal"!==e.get(t[i]).model.getActiveState()&&(n=!0);return n},nP.prototype.axisCoordToPoint=function(t,e){return Vc([t,0],this._axesLayout[e].transform)},nP.prototype.getAxisLayout=function(t){return S(this._axesLayout[t])},nP.prototype.getSlidedAxisExpandWindow=function(t){var e,n,i,o,r=this._makeLayoutInfo(),a=r.pixelDimIndex,s=r.axisExpandWindow.slice(),l=s[1]-s[0],u=[0,r.axisExpandWidth*(r.axisCount-1)];return this.containPoint(t)?(t=t[a]-r.layoutBase-r.axisExpandWindow0Pos,a="slide",n=r.axisCollapseWidth,o=null!=(i=this._model.get("axisExpandSlideTriggerArea"))[0],n?(o&&n&&t<l*i[0]?(a="jump",e=t-l*i[2]):o&&n&&t>l*(1-i[0])?(a="jump",e=t-l*(1-i[2])):0<=(e=t-l*i[1])&&(e=t-l*(1-i[1]))<=0&&(e=0),(e*=r.axisExpandWidth/n)?XL(e,s,u,"all"):a="none"):(o=s[1]-s[0],(s=[KL(0,u[1]*t/o-o/2)])[1]=qL(u[1],s[0]+o),s[0]=s[1]-o),{axisExpandWindow:s,behavior:a}):{behavior:"none",axisExpandWindow:s}},nP);function nP(t,e,n){this.type="parallel",this._axesMap=N(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}function iP(t,e){return qL(KL(t,e[0]),e[1])}var oP,rP={create:function(i,o){var r=[];return i.eachComponent("parallel",function(t,e){var n=new eP(t,i,o);n.name="parallel_"+e,n.resize(t,o),(t.coordinateSystem=n).model=t,r.push(n)}),i.eachSeries(function(t){var e;"parallel"===t.get("coordinateSystem")&&(e=t.getReferringComponents("parallel",sa).models[0],t.coordinateSystem=e.coordinateSystem)}),r}},aP=(u(sP,oP=g),sP.prototype.getAreaSelectStyle=function(){return Sa([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},sP.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=S(t);if(e)for(var n=e.length-1;0<=n;n--)Sr(e[n])},sP.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null!=t&&!isNaN(+t))if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=e.length;i<o;i++)if(e[i][0]<=t&&t<=e[i][1])return"active";return"inactive"},sP);function sP(){var t=null!==oP&&oP.apply(this,arguments)||this;return t.type=sP.type,t.activeIntervals=[],t}ut(aP,Zx);var lP,uP=!0,hP=Math.min,cP=Math.max,pP=Math.pow,dP=1e4,gP=6,fP=6,yP="globalPan",mP={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},vP={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},xP={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},_P=0,bP=(u(wP,lP=ce),wP.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},wP.prototype._doEnableBrush=function(t){var e,n,i=this._zr;this._enableGlobalPan||(e=yP,n=this._uid,D2(i)[e]=n),et(this._handlers,function(t,e){i.on(e,t)}),this._brushType=t.brushType,this._brushOption=d(S(xP),t,!0)},wP.prototype._doDisableBrush=function(){var t,e,n,i=this._zr;t=i,e=yP,n=this._uid,(t=D2(t))[e]===n&&(t[e]=null),et(this._handlers,function(t,e){i.off(e,t)}),this._brushType=this._brushOption=null},wP.prototype.setPanels=function(t){var e;return t&&t.length?(e=this._panels={},et(t,function(t){e[t.panelId]=S(t)})):this._panels=null,this},wP.prototype.mount=function(t){this._enableGlobalPan=(t=t||{}).enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},wP.prototype.updateCovers=function(i){i=B(i,function(t){return d(S(xP),t,!0)});var o=this._covers,r=this._covers=[],a=this,s=this._creatingCover;return new Qv(o,i,function(t,e){return n(t.__brushOption,e)},n).add(t).update(t).remove(function(t){o[t]!==s&&a.group.remove(o[t])}).execute(),this;function n(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function t(t,e){var n=i[t];null!=e&&o[e]===s?r[t]=o[e]:(t=r[t]=null!=e?(o[e].__brushOption=n,o[e]):MP(a,SP(a,n)),CP(a,t))}},wP.prototype.unmount=function(){return this.enableBrush(!1),LP(this),this._zr.remove(this.group),this},wP.prototype.dispose=function(){this.unmount(),this.off()},wP);function wP(t){var e=lP.call(this)||this;return e._track=[],e._covers=[],e._handlers={},e._zr=t,e.group=new Z,e._uid="brushController_"+_P++,et(KP,function(t,e){this._handlers[e]=T(t,this)},e),e}function SP(t,e){var n=JP[e.brushType].createCover(t,e);return n.__brushOption=e,TP(n,e),t.group.add(n),n}function MP(t,e){var n=DP(e);return n.endCreating&&(n.endCreating(t,e),TP(e,e.__brushOption)),e}function IP(t,e){var n=e.__brushOption;DP(e).updateCoverShape(t,e,n.range,n)}function TP(t,e){var n=e.z;null==n&&(n=dP),t.traverse(function(t){t.z=n,t.z2=n})}function CP(t,e){DP(e).updateCommon(t,e),IP(t,e)}function DP(t){return JP[t.__brushOption.brushType]}function AP(t,e,n){var i,o,r=t._panels;return r?(o=t._transform,et(r,function(t){t.isTargetByCursor(e,n,o)&&(i=t)}),i):uP}function kP(t,e){t=t._panels;return t&&null!=(e=e.__brushOption.panelId)?t[e]:uP}function LP(e){var t=e._covers,n=t.length;return et(t,function(t){e.group.remove(t)},e),t.length=0,n}function PP(t,e){var n=B(t._covers,function(t){var t=t.__brushOption,e=S(t.range);return{brushType:t.brushType,panelId:t.panelId,range:e}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function OP(t){var e=t.length-1;return[t[0],t[e=e<0?0:e]]}function RP(e,n,t,i){var o=new Z;return o.add(new L({name:"main",style:VP(t),silent:!0,draggable:!0,cursor:"move",drift:P(GP,e,n,o,["n","s","w","e"]),ondragend:P(PP,n,{isEnd:!0})})),et(i,function(t){o.add(new L({name:t.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:P(GP,e,n,o,t),ondragend:P(PP,n,{isEnd:!0})}))}),o}function NP(t,e,n,i){var o=i.brushStyle.lineWidth||0,r=cP(o,fP),a=n[0][0],s=n[1][0],l=a-o/2,u=s-o/2,h=n[0][1],n=n[1][1],c=h-r+o/2,p=n-r+o/2,h=h-a,n=n-s,d=h+o,o=n+o;zP(t,e,"main",a,s,h,n),i.transformable&&(zP(t,e,"w",l,u,r,o),zP(t,e,"e",c,u,r,o),zP(t,e,"n",l,u,d,r),zP(t,e,"s",l,p,d,r),zP(t,e,"nw",l,u,r,r),zP(t,e,"ne",c,u,r,r),zP(t,e,"sw",l,p,r,r),zP(t,e,"se",c,p,r,r))}function EP(n,i){var t=i.__brushOption,o=t.transformable,e=i.childAt(0);e.useStyle(VP(t)),e.attr({silent:!o,cursor:o?"move":"default"}),et([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(t){var e=i.childOfName(t.join("")),t=1===t.length?FP(n,t[0]):function(t,e){t=[FP(t,e[0]),FP(t,e[1])];return"e"!==t[0]&&"w"!==t[0]||t.reverse(),t.join("")}(n,t);e&&e.attr({silent:!o,invisible:!o,cursor:o?vP[t]+"-resize":null})})}function zP(t,e,n,i,o,r,a){var n=e.childOfName(n);n&&n.setShape((n=YP(t,e,[[i,o],[i+r,o+a]]),t=hP(n[0][0],n[1][0]),e=hP(n[0][1],n[1][1]),{x:t,y:e,width:cP(n[0][0],n[1][0])-t,height:cP(n[0][1],n[1][1])-e}))}function VP(t){return V({strokeNoScale:!0},t.brushStyle)}function BP(t,e,n,i){var o=[hP(t,n),hP(e,i)],t=[cP(t,n),cP(e,i)];return[[o[0],t[0]],[o[1],t[1]]]}function FP(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[Bc({w:"left",e:"right",n:"top",s:"bottom"}[e],zc(t.group))]}function GP(t,e,n,i,o,r){var a=n.__brushOption,s=t.toRectRange(a.range),l=HP(e,o,r);et(i,function(t){t=mP[t];s[t[0]][t[1]]+=l[t[0]]}),a.range=t.fromRectRange(BP(s[0][0],s[1][0],s[0][1],s[1][1])),CP(e,n),PP(e,{isEnd:!1})}function WP(t,e,n,i){var o=e.__brushOption.range,r=HP(t,n,i);et(o,function(t){t[0]+=r[0],t[1]+=r[1]}),CP(t,e),PP(t,{isEnd:!1})}function HP(t,e,n){t=t.group,e=t.transformCoordToLocal(e,n),n=t.transformCoordToLocal(0,0);return[e[0]-n[0],e[1]-n[1]]}function YP(t,e,n){e=kP(t,e);return e&&e!==uP?e.clipPath(n,t._transform):S(n)}function XP(t,e,n){if(t._brushType&&!function(t,e,n){t=t._zr;return e<0||e>t.getWidth()||n<0||n>t.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,o=t._covers,r=AP(t,e,n);if(!t._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(r===uP||s.panelId===r.panelId)&&JP[s.brushType].contain(o[a],n[0],n[1]))return}r&&i.setCursorStyle("crosshair")}}function UP(t){t=t.event;t.preventDefault&&t.preventDefault()}function ZP(t,e,n){return t.childOfName("main").contain(e,n)}function jP(t,e,n,i){var o,r,a=t._creatingCover,s=t._creatingPanel,l=t._brushOption;return t._track.push(n.slice()),function(t){var e,n;if((t=t._track).length)return n=t[t.length-1],t=t[0],e=n[0]-t[0],n=n[1]-t[1],pP(e*e+n*n,.5)>gP}(t)||a?(s&&!a&&("single"===l.brushMode&&LP(t),(r=S(l)).brushType=qP(r.brushType,s),r.panelId=s===uP?null:s.panelId,a=t._creatingCover=SP(t,r),t._covers.push(a)),a&&(r=JP[qP(t._brushType,s)],a.__brushOption.range=r.getCreatingRange(YP(t,a,t._track)),i&&(MP(t,a),r.updateCommon(t,a)),IP(t,a),o={isEnd:i})):i&&"single"===l.brushMode&&l.removeOnClick&&AP(t,e,n)&&LP(t)&&(o={isEnd:i,removeOnClick:!0}),o}function qP(t,e){return"auto"===t?e.defaultBrushType:t}var KP={mousedown:function(t){var e;this._dragging?$P(this,t):t.target&&t.target.draggable||(UP(t),e=this.group.transformCoordToLocal(t.offsetX,t.offsetY),this._creatingCover=null,(this._creatingPanel=AP(this,t,e))&&(this._dragging=!0,this._track=[e.slice()]))},mousemove:function(t){var e=t.offsetX,n=t.offsetY,e=this.group.transformCoordToLocal(e,n);XP(this,t,e),this._dragging&&(UP(t),n=jP(this,t,e,!1))&&PP(this,n)},mouseup:function(t){$P(this,t)}};function $P(t,e){var n,i;t._dragging&&(UP(e),n=e.offsetX,i=e.offsetY,n=t.group.transformCoordToLocal(n,i),i=jP(t,e,n,!0),t._dragging=!1,t._track=[],t._creatingCover=null,i)&&PP(t,i)}var JP={lineX:QP(0),lineY:QP(1),rect:{createCover:function(t,e){function n(t){return t}return RP({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){t=OP(t);return BP(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(t,e,n,i){NP(t,e,n,i)},updateCommon:EP,contain:ZP},polygon:{createCover:function(t,e){var n=new Z;return n.add(new Lh({name:"main",style:VP(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Ch({name:"main",draggable:!0,drift:P(WP,t,e),ondragend:P(PP,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:YP(t,e,n)})},updateCommon:EP,contain:ZP}};function QP(r){return{createCover:function(t,e){return RP({toRectRange:function(t){t=[t,[0,100]];return r&&t.reverse(),t},fromRectRange:function(t){return t[r]}},t,e,[[["w"],["e"]],[["n"],["s"]]][r])},getCreatingRange:function(t){t=OP(t);return[hP(t[0][r],t[1][r]),cP(t[0][r],t[1][r])]},updateCoverShape:function(t,e,n,i){var o=kP(t,e),o=[n,o!==uP&&o.getLinearBrushOtherExtent?o.getLinearBrushOtherExtent(r):[0,[(n=t._zr).getWidth(),n.getHeight()][1-r]]];r&&o.reverse(),NP(t,e,o,i)},updateCommon:EP,contain:ZP}}function tO(e){return e=iO(e),function(t){return Wc(t,e)}}function eO(n,i){return n=iO(n),function(t){var t=null!=i?i:t,e=t?n.width:n.height,t=t?n.x:n.y;return[t,t+(e||0)]}}function nO(t,n,i){var o=iO(t);return function(t,e){return o.contain(e[0],e[1])&&!E2(t,n,i)}}function iO(t){return z.create(t)}var oO,rO=["axisLine","axisTickLabel","axisName"],aO=(u(sO,oO=Uy),sO.prototype.init=function(t,e){oO.prototype.init.apply(this,arguments),(this._brushController=new bP(e.getZr())).on("brush",T(this._onBrush,this))},sO.prototype.render=function(t,e,n,i){var o,r,a,s;a=t,s=e,(i=i)&&"axisAreaSelect"===i.type&&s.findComponents({mainType:"parallelAxis",query:i})[0]===a||(this.axisModel=t,this.api=n,this.group.removeAll(),s=this._axisGroup,this._axisGroup=new Z,this.group.add(this._axisGroup),t.get("show")&&(a=(i=e.getComponent("parallel",t.get("parallelIndex"))).coordinateSystem,o=(e=t.getAreaSelectStyle()).width,r=t.axis.dim,a=H({strokeContainThreshold:o},a.getAxisLayout(r)),r=new pM(t,a),et(rO,r.add,r),this._axisGroup.add(r.getGroup()),this._refreshBrushController(a,e,t,i,o,n),Gc(s,this._axisGroup,t)))},sO.prototype._refreshBrushController=function(t,e,n,i,o,r){var a,s=n.axis.getExtent(),l=s[1]-s[0],u=Math.min(30,.1*Math.abs(l)),s=z.create({x:s[0],y:-o/2,width:l,height:o});s.x-=u,s.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:tO(s),isTargetByCursor:nO(s,r,i),getLinearBrushOtherExtent:eO(s,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers((a=n.axis,B(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[a.dataToCoord(t[0],!0),a.dataToCoord(t[1],!0)]}})))},sO.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,e=B(e,function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]});!n.option.realtime!==t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:e})},sO.prototype.dispose=function(){this._brushController.dispose()},sO.type="parallelAxis",sO);function sO(){var t=null!==oO&&oO.apply(this,arguments)||this;return t.type=sO.type,t}var lO={type:"axisAreaSelect",event:"axisAreaSelected"};var uO={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function hO(t){t.registerComponentView(NL),t.registerComponentModel(FL),t.registerCoordinateSystem("parallel",rP),t.registerPreprocessor(OL),t.registerComponentModel(aP),t.registerComponentView(aO),YS(t,"parallel",aP,uO),(t=t).registerAction(lO,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(t){t.setAxisExpand(e)})})}r(function(t){r(hO),t.registerChartView(bL),t.registerSeriesModel(DL),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,PL)});function cO(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}u(gO,pO=q),gO.prototype.getDefaultShape=function(){return new cO},gO.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,o=e.r,r=e.width,a=e.angle,s=e.x-n(a)*r*(o/3<=r?1:2),l=e.y-i(a)*r*(o/3<=r?1:2),a=e.angle-Math.PI/2;t.moveTo(s,l),t.lineTo(e.x+n(a)*r,e.y+i(a)*r),t.lineTo(e.x+n(e.angle)*o,e.y+i(e.angle)*o),t.lineTo(e.x-n(a)*r,e.y-i(a)*r),t.lineTo(s,l)};var pO,dO=gO;function gO(t){t=pO.call(this,t)||this;return t.type="pointer",t}function fO(t,e){var n=null==t?"":t+"";return e&&(Y(e)?n=e.replace("{value}",n):D(e)&&(n=e(t))),n}u(vO,yO=$y),vO.prototype.render=function(t,e,n){this.group.removeAll();var i,o,r,a,s=t.get(["axisLine","lineStyle","color"]),l=(o=n,r=(i=t).get("center"),a=o.getWidth(),l=o.getHeight(),a=Math.min(a,l),{cx:j(r[0],o.getWidth()),cy:j(r[1],o.getHeight()),r:j(i.get("radius"),a/2)});this._renderMain(t,e,n,s,l),this._data=t.getData()},vO.prototype.dispose=function(){},vO.prototype._renderMain=function(t,e,n,i,o){var r=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),h=u.get("roundCap")?Nb:vh,c=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),u=[s,l];Cs(u,!a);for(var g=(l=u[1])-(s=u[0]),f=s,y=[],m=0;c&&m<i.length;m++){var v=new h({shape:{startAngle:f,endAngle:l=s+g*Math.min(Math.max(i[m][0],0),1),cx:o.cx,cy:o.cy,clockwise:a,r0:o.r-d,r:o.r},silent:!0});v.setStyle({fill:i[m][1]}),v.setStyle(p.getLineStyle(["color","width"])),y.push(v),f=l}y.reverse(),et(y,function(t){return r.add(t)});function x(t){if(t<=0)return i[0][1];for(var e=0;e<i.length;e++)if(i[e][0]>=t&&(0===e?0:i[e-1][0])<t)return i[e][1];return i[e-1][1]}this._renderTicks(t,e,n,x,o,s,l,a,d),this._renderTitleAndDetail(t,e,n,x,o),this._renderAnchor(t,o),this._renderPointer(t,e,n,x,o,s,l,a,d)},vO.prototype._renderTicks=function(t,E,z,e,n,i,o,V,r){for(var a=this.group,s=n.cx,l=n.cy,u=n.r,h=+t.get("min"),B=+t.get("max"),c=t.getModel("splitLine"),p=t.getModel("axisTick"),d=t.getModel("axisLabel"),g=t.get("splitNumber"),f=p.get("splitNumber"),y=j(c.get("length"),u),m=j(p.get("length"),u),v=i,x=(o-i)/g,_=x/f,b=c.getModel("lineStyle").getLineStyle(),w=p.getModel("lineStyle").getLineStyle(),S=c.get("distance"),M=0;M<=g;M++){var I,T,C,D,A,k,L,P=Math.cos(v),O=Math.sin(v);if(c.get("show")&&(T=new Eh({shape:{x1:P*(u-(I=S?S+r:r))+s,y1:O*(u-I)+l,x2:P*(u-y-I)+s,y2:O*(u-y-I)+l},style:b,silent:!0}),"auto"===b.stroke&&T.setStyle({stroke:e(M/g)}),a.add(T)),d.get("show")&&(I=d.get("distance")+S,T=fO(wr(M/g*(B-h)+h),d.get("formatter")),C=e(M/g),D=P*(u-y-I)+s,A=O*(u-y-I)+l,L=0,"radial"===(k=d.get("rotate"))?(L=-v+2*Math.PI)>Math.PI/2&&(L+=Math.PI):"tangential"===k?L=-v-Math.PI/2:X(k)&&(L=k*Math.PI/180),0===L?a.add(new K({style:np(d,{text:T,x:D,y:A,verticalAlign:O<-.8?"top":.8<O?"bottom":"middle",align:P<-.4?"left":.4<P?"right":"center"},{inheritColor:C}),silent:!0})):a.add(new K({style:np(d,{text:T,x:D,y:A,verticalAlign:"middle",align:"center"},{inheritColor:C}),silent:!0,originX:D,originY:A,rotation:L}))),p.get("show")&&M!==g){I=(I=p.get("distance"))?I+r:r;for(var R=0;R<=f;R++){P=Math.cos(v),O=Math.sin(v);var N=new Eh({shape:{x1:P*(u-I)+s,y1:O*(u-I)+l,x2:P*(u-m-I)+s,y2:O*(u-m-I)+l},silent:!0,style:w});"auto"===w.stroke&&N.setStyle({stroke:e((M+R/f)/g)}),a.add(N),v+=_}v-=_}else v+=x}},vO.prototype._renderPointer=function(s,t,e,u,l,a,n,h,c){var r=this.group,p=this._data,d=this._progressEls,g=[],f=s.get(["pointer","show"]),y=s.getModel("progress"),m=y.get("show"),v=s.getData(),x=v.mapDimension("value"),i=+s.get("min"),_=+s.get("max"),b=[i,_],w=[a,n];function S(t,e){var t=v.getItemModel(t).getModel("pointer"),n=j(t.get("width"),l.r),i=j(t.get("length"),l.r),o=s.get(["pointer","icon"]),r=t.get("offsetCenter"),a=j(r[0],l.r),r=j(r[1],l.r),t=t.get("keepAspect");return(o=o?i0(o,a-n/2,r-i,n,i,null,t):new dO({shape:{angle:-Math.PI/2,width:n,r:i,x:a,y:r}})).rotation=-(e+Math.PI/2),o.x=l.cx,o.y=l.cy,o}function M(t,e){var n=y.get("roundCap")?Nb:vh,i=y.get("overlap"),o=i?y.get("width"):c/v.count(),r=i?l.r-o:l.r-(t+1)*o,o=i?l.r:l.r-t*o,n=new n({shape:{startAngle:a,endAngle:e,cx:l.cx,cy:l.cy,clockwise:h,r0:r,r:o}});return i&&(n.z2=_-v.get(x,t)%_),n}(m||f)&&(v.diff(p).add(function(t){var e,n,i=v.get(x,t);f&&(yc(e=S(t,a),{rotation:-((isNaN(+i)?w[0]:br(i,b,w,!0))+Math.PI/2)},s),r.add(e),v.setItemGraphicEl(t,e)),m&&(e=M(t,a),n=y.get("clip"),yc(e,{shape:{endAngle:br(i,b,w,n)}},s),r.add(e),Dl(s.seriesIndex,v.dataType,t,e),g[t]=e)}).update(function(t,e){var n,i,o=v.get(x,t);f&&((i=S(t,n=(n=p.getItemGraphicEl(e))?n.rotation:a)).rotation=n,C(i,{rotation:-((isNaN(+o)?w[0]:br(o,b,w,!0))+Math.PI/2)},s),r.add(i),v.setItemGraphicEl(t,i)),m&&(i=M(t,(n=d[e])?n.shape.endAngle:a),e=y.get("clip"),C(i,{shape:{endAngle:br(o,b,w,e)}},s),r.add(i),Dl(s.seriesIndex,v.dataType,t,i),g[t]=i)}).execute(),v.each(function(t){var e,n,i,o,r=v.getItemModel(t),a=r.getModel("emphasis"),s=a.get("focus"),l=a.get("blurScope"),a=a.get("disabled");f&&(e=v.getItemGraphicEl(t),i=(n=v.getItemVisual(t,"style")).fill,e instanceof nl?(o=e.style,e.useStyle(H({image:o.image,x:o.x,y:o.y,width:o.width,height:o.height},n))):(e.useStyle(n),"pointer"!==e.type&&e.setColor(i)),e.setStyle(r.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",u(br(v.get(x,t),b,[0,1],!0))),e.z2EmphasisLift=0,Mu(e,r),_u(e,s,l,a)),m&&((o=g[t]).useStyle(v.getItemVisual(t,"style")),o.setStyle(r.getModel(["progress","itemStyle"]).getItemStyle()),o.z2EmphasisLift=0,Mu(o,r),_u(o,s,l,a))}),this._progressEls=g)},vO.prototype._renderAnchor=function(t,e){var n,i,o,r,t=t.getModel("anchor");t.get("show")&&(n=t.get("size"),r=t.get("icon"),i=t.get("offsetCenter"),o=t.get("keepAspect"),(r=i0(r,e.cx-n/2+j(i[0],e.r),e.cy-n/2+j(i[1],e.r),n,n,null,o)).z2=t.get("showAbove")?1:0,r.setStyle(t.getModel("itemStyle").getItemStyle()),this.group.add(r))},vO.prototype._renderTitleAndDetail=function(c,t,e,p,d){var n=this,g=c.getData(),f=g.mapDimension("value"),y=+c.get("min"),m=+c.get("max"),v=new Z,x=[],_=[],b=c.isAnimationEnabled(),w=c.get(["pointer","showAbove"]);g.diff(this._data).add(function(t){x[t]=new K({silent:!0}),_[t]=new K({silent:!0})}).update(function(t,e){x[t]=n._titleEls[e],_[t]=n._detailEls[e]}).execute(),g.each(function(t){var e,n,i,o,a,r=g.getItemModel(t),s=g.get(f,t),l=new Z,u=p(br(s,[y,m],[0,1],!0)),h=r.getModel("title"),h=(h.get("show")&&(e=h.get("offsetCenter"),n=d.cx+j(e[0],d.r),e=d.cy+j(e[1],d.r),(o=x[t]).attr({z2:w?0:2,style:np(h,{x:n,y:e,text:g.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:u})}),l.add(o)),r.getModel("detail"));h.get("show")&&(n=h.get("offsetCenter"),e=d.cx+j(n[0],d.r),r=d.cy+j(n[1],d.r),n=j(h.get("width"),d.r),i=j(h.get("height"),d.r),u=c.get(["progress","show"])?g.getItemVisual(t,"style").fill:u,o=_[t],a=h.get("formatter"),o.attr({z2:w?0:2,style:np(h,{x:e,y:r,text:fO(s,a),width:isNaN(n)?null:n,height:isNaN(i)?null:i,align:"center",verticalAlign:"middle"},{inheritColor:u})}),hp(o,{normal:h},s,function(t){return fO(t,a)}),b&&cp(o,t,g,c,{getFormattedLabel:function(t,e,n,i,o,r){return fO(r?r.interpolatedValue:s,a)}}),l.add(o)),v.add(l)}),this.group.add(v),this._titleEls=x,this._detailEls=_},vO.type="gauge";var yO,mO=vO;function vO(){var t=null!==yO&&yO.apply(this,arguments)||this;return t.type=vO.type,t}u(bO,xO=zy),bO.prototype.getInitialData=function(t,e){return mS(this,["value"])},bO.type="series.gauge",bO.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}};var xO,_O=bO;function bO(){var t=null!==xO&&xO.apply(this,arguments)||this;return t.type=bO.type,t.visualStyleAccessPath="itemStyle",t}r(function(t){t.registerChartView(mO),t.registerSeriesModel(_O)});var wO,SO,MO=["itemStyle","opacity"],IO=(u(DO,SO=Ch),DO.prototype.updateData=function(t,e,n){var i=t.hostModel,o=t.getItemModel(e),r=t.getItemLayout(e),a=o.getModel("emphasis"),s=null==(s=o.get(MO))?1:s;n||bc(this),this.useStyle(t.getItemVisual(e,"style")),this.style.lineJoin="round",n?(this.setShape({points:r.points}),this.style.opacity=0,yc(this,{style:{opacity:s}},i,e)):C(this,{style:{opacity:s},shape:{points:r.points}},i,e),Mu(this,o),this._updateLabel(t,e),_u(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},DO.prototype._updateLabel=function(t,e){var n=this.getTextGuideLine(),i=this.getTextContent(),o=t.hostModel,r=t.getItemModel(e),a=t.getItemLayout(e).label,s=t.getItemVisual(e,"style"),l=s.fill,s=(tp(i,ep(r),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:s.opacity,defaultText:t.getName(e)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:l,outsideFill:l}),a.linePoints);n.setShape({points:s}),this.textGuideLineConfig={anchor:s?new E(s[0][0],s[0][1]):null},C(i,{style:{x:a.x,y:a.y}},o,e),i.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),X_(this,U_(r),{stroke:l})},DO),TO=(u(CO,wO=$y),CO.prototype.render=function(e,t,n){var i=e.getData(),o=this._data,r=this.group;i.diff(o).add(function(t){var e=new IO(i,t);i.setItemGraphicEl(t,e),r.add(e)}).update(function(t,e){e=o.getItemGraphicEl(e);e.updateData(i,t),r.add(e),i.setItemGraphicEl(t,e)}).remove(function(t){_c(o.getItemGraphicEl(t),e,t)}).execute(),this._data=i},CO.prototype.remove=function(){this.group.removeAll(),this._data=null},CO.prototype.dispose=function(){},CO.type="funnel",CO);function CO(){var t=null!==wO&&wO.apply(this,arguments)||this;return t.type=CO.type,t.ignoreLabelLineUpdate=!0,t}function DO(t,e){var n=SO.call(this)||this,i=n,o=new Lh,r=new K;return i.setTextContent(r),n.setTextGuideLine(o),n.updateData(t,e,!0),n}u(LO,AO=zy),LO.prototype.init=function(t){AO.prototype.init.apply(this,arguments),this.legendVisualProvider=new vS(T(this.getData,this),T(this.getRawData,this)),this._defaultLabelLine(t)},LO.prototype.getInitialData=function(t,e){return mS(this,{coordDimensions:["value"],encodeDefaulter:P(Qd,this)})},LO.prototype._defaultLabelLine=function(t){Zr(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},LO.prototype.getDataParams=function(t){var e=this.getData(),n=AO.prototype.getDataParams.call(this,t),i=e.mapDimension("value"),o=e.getSum(i);return n.percent=o?+(e.get(i,t)/o*100).toFixed(2):0,n.$vars.push("percent"),n},LO.type="series.funnel",LO.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}};var AO,kO=LO;function LO(){var t=null!==AO&&AO.apply(this,arguments)||this;return t.type=LO.type,t}function PO(t,C){t.eachSeriesByType("funnel",function(t){function e(t,e){if("horizontal"===l){var n=br(a.get(s,t)||0,[g,f],d,!0),i=void 0;switch(y){case"top":i=p;break;case"center":i=p+(h-n)/2;break;case"bottom":i=p+(h-n)}return[[e,i],[e,i+n]]}var o,r=br(a.get(s,t)||0,[g,f],d,!0);switch(y){case"left":o=c;break;case"center":o=c+(u-r)/2;break;case"right":o=c+u-r}return[[o,e],[o+r,e]]}var a=t.getData(),s=a.mapDimension("value"),n=t.get("sort"),i=(i=C,Cd(t.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})),l=t.get("orient"),u=i.width,h=i.height,o=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,function(t){return t}),o=[],r="ascending"===e,a=0,s=t.count();a<s;a++)o[a]=a;return D(e)?o.sort(e):"none"!==e&&o.sort(function(t,e){return r?i[t]-i[e]:i[e]-i[t]}),o}(a,n),c=i.x,p=i.y,d="horizontal"===l?[j(t.get("minSize"),h),j(t.get("maxSize"),h)]:[j(t.get("minSize"),u),j(t.get("maxSize"),u)],i=a.getDataExtent(s),g=t.get("min"),f=t.get("max"),y=(null==g&&(g=Math.min(i[0],0)),null==f&&(f=i[1]),t.get("funnelAlign")),r=t.get("gap"),m=(("horizontal"===l?u:h)-r*(a.count()-1))/a.count();"ascending"===n&&(m=-m,r=-r,"horizontal"===l?c+=u:p+=h,o=o.reverse());for(var v,x,_=0;_<o.length;_++){var b,w,S,M=o[_],I=o[_+1],T=a.getItemModel(M);"horizontal"===l?(null==(S=T.get(["itemStyle","width"]))?S=m:(S=j(S,u),"ascending"===n&&(S=-S)),b=e(M,c),w=e(I,c+S),c+=S+r):(null==(S=T.get(["itemStyle","height"]))?S=m:(S=j(S,h),"ascending"===n&&(S=-S)),b=e(M,p),w=e(I,p+S),p+=S+r),a.setItemLayout(M,{points:b.concat(w.slice().reverse())})}x=(v=a).hostModel.get("orient"),v.each(function(t){var e,n,i,o,r,a,s,l=v.getItemModel(t),u=l.getModel("label").get("position"),l=l.getModel("labelLine"),t=v.getItemLayout(t),h=t.points,c="inner"===u||"inside"===u||"center"===u||"insideLeft"===u||"insideRight"===u,u=c?(s="insideLeft"===u?(e=(h[0][0]+h[3][0])/2+5,n=(h[0][1]+h[3][1])/2,"left"):"insideRight"===u?(e=(h[1][0]+h[2][0])/2-5,n=(h[1][1]+h[2][1])/2,"right"):(e=(h[0][0]+h[1][0]+h[2][0]+h[3][0])/4,n=(h[0][1]+h[1][1]+h[2][1]+h[3][1])/4,"center"),[[e,n],[e,n]]):(a=r=o=i=void 0,l=l.get("length"),s="left"===u?(i=(h[3][0]+h[0][0])/2,o=(h[3][1]+h[0][1])/2,e=(r=i-l)-5,"right"):"right"===u?(i=(h[1][0]+h[2][0])/2,o=(h[1][1]+h[2][1])/2,e=(r=i+l)+5,"left"):"top"===u?(i=(h[3][0]+h[0][0])/2,n=(a=(o=(h[3][1]+h[0][1])/2)-l)-5,"center"):"bottom"===u?(i=(h[1][0]+h[2][0])/2,n=(a=(o=(h[1][1]+h[2][1])/2)+l)+5,"center"):"rightTop"===u?(i=("horizontal"===x?h[3]:h[1])[0],o=("horizontal"===x?h[3]:h[1])[1],"horizontal"===x?(n=(a=o-l)-5,"center"):(e=(r=i+l)+5,"top")):"rightBottom"===u?(i=h[2][0],o=h[2][1],"horizontal"===x?(n=(a=o+l)+5,"center"):(e=(r=i+l)+5,"bottom")):"leftTop"===u?(i=h[0][0],o=("horizontal"===x?h[0]:h[1])[1],"horizontal"===x?(n=(a=o-l)-5,"center"):(e=(r=i-l)-5,"right")):"leftBottom"===u?(i=("horizontal"===x?h[1]:h[3])[0],o=("horizontal"===x?h[1]:h[2])[1],"horizontal"===x?(n=(a=o+l)+5,"center"):(e=(r=i-l)-5,"right")):(i=(h[1][0]+h[2][0])/2,o=(h[1][1]+h[2][1])/2,"horizontal"===x?(n=(a=o+l)+5,"center"):(e=(r=i+l)+5,"left")),"horizontal"===x?e=r=i:n=a=o,[[i,o],[r,a]]);t.label={linePoints:u,x:e,y:n,verticalAlign:"middle",textAlign:s,inside:c}})})}r(function(t){t.registerChartView(TO),t.registerSeriesModel(kO),t.registerLayout(PO),t.registerProcessor(rS("funnel"))});function OO(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}u(BO,NO=q),BO.prototype.getDefaultShape=function(){return new OO},BO.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},BO.prototype.highlight=function(){su(this)},BO.prototype.downplay=function(){lu(this)};var RO,NO,EO=BO,zO=(u(VO,RO=$y),VO.prototype.render=function(b,t,i){var e,n,o=this,r=b.getGraph(),w=this.group,a=b.layoutInfo,S=a.width,M=a.height,s=b.getData(),I=b.getData("edge"),T=b.get("orient");this._model=b,w.removeAll(),w.x=a.x,w.y=a.y,r.eachEdge(function(e){var t=new EO,n=$(t);n.dataIndex=e.dataIndex,n.seriesIndex=b.seriesIndex,n.dataType="edge";var i,o,r,a,s,l,u,n=e.getModel(),h=n.getModel("lineStyle"),c=h.get("curveness"),p=e.node1.getLayout(),d=e.node1.getModel(),g=d.get("localX"),d=d.get("localY"),f=e.node2.getLayout(),y=e.node2.getModel(),m=y.get("localX"),y=y.get("localY"),v=e.getLayout(),x=(t.shape.extent=Math.max(1,v.dy),g="vertical"===(t.shape.orient=T)?(i=(null!=g?g*S:p.x)+v.sy,o=(null!=d?d*M:p.y)+p.dy,r=(null!=m?m*S:f.x)+v.ty,s=i,l=o*(1-c)+(a=null!=y?y*M:f.y)*c,u=r,o*c+a*(1-c)):(i=(null!=g?g*S:p.x)+p.dx,o=(null!=d?d*M:p.y)+v.sy,s=i*(1-c)+(r=null!=m?m*S:f.x)*c,l=o,u=i*c+r*(1-c),a=(null!=y?y*M:f.y)+v.ty),t.setShape({x1:i,y1:o,x2:r,y2:a,cpx1:s,cpy1:l,cpx2:u,cpy2:g}),t.useStyle(h.getItemStyle()),FO(t.style,T,e),""+n.get("value")),_=ep(n,"edgeLabel"),d=(tp(t,_,{labelFetcher:{getFormattedLabel:function(t,e,n,i,o,r){return b.getFormattedLabel(t,e,"edge",i,St(o,_.normal&&_.normal.get("formatter"),x),r)}},labelDataIndex:e.dataIndex,defaultText:x}),t.setTextConfig({position:"inside"}),n.getModel("emphasis")),p=(Mu(t,n,"lineStyle",function(t){t=t.getItemStyle();return FO(t,T,e),t}),w.add(t),I.setItemGraphicEl(e.dataIndex,t),d.get("focus"));_u(t,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,d.get("blurScope"),d.get("disabled"))}),r.eachNode(function(t){var e=t.getLayout(),n=t.getModel(),i=n.get("localX"),o=n.get("localY"),r=n.getModel("emphasis"),i=new L({shape:{x:null!=i?i*S:e.x,y:null!=o?o*M:e.y,width:e.dx,height:e.dy},style:n.getModel("itemStyle").getItemStyle(),z2:10}),o=(tp(i,ep(n),{labelFetcher:{getFormattedLabel:function(t,e){return b.getFormattedLabel(t,e,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),i.disableLabelAnimation=!0,i.setStyle("fill",t.getVisual("color")),i.setStyle("decal",t.getVisual("style").decal),Mu(i,n),w.add(i),s.setItemGraphicEl(t.dataIndex,i),$(i).dataType="node",r.get("focus"));_u(i,"adjacency"===o?t.getAdjacentDataIndices():"trajectory"===o?t.getTrajectoryDataIndices():o,r.get("blurScope"),r.get("disabled"))}),s.eachItemGraphicEl(function(t,n){s.getItemModel(n).get("draggable")&&(t.drift=function(t,e){o._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=e,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:b.id,dataIndex:s.getRawIndex(n),localX:this.shape.x/S,localY:this.shape.y/M})},t.ondragend=function(){o._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")}),!this._data&&b.isAnimationEnabled()&&w.setClipPath((a=w.getBoundingRect(),r=b,e=function(){w.removeClipPath()},yc(n=new L({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}}),{shape:{width:a.width+20}},r,e),n)),this._data=b.getData()},VO.prototype.dispose=function(){},VO.type="sankey",VO);function VO(){var t=null!==RO&&RO.apply(this,arguments)||this;return t.type=VO.type,t._focusAdjacencyDisabled=!1,t}function BO(t){return NO.call(this,t)||this}function FO(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),o=n.node2.getVisual("color");Y(i)&&Y(o)&&(t.fill=new Qh(0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:o,offset:1}]))}}u(HO,GO=zy),HO.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var r=this.levelModels,a=0;a<o.length;a++)null!=o[a].depth&&0<=o[a].depth&&(r[o[a].depth]=new Tp(o[a],this,e));if(i&&n)return tL(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,e=n.getData().getItemLayout(e);return e&&(e=e.depth,n=n.levelModels[e])&&(t.parentModel=n),t}),e.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,e=n.getGraph().getEdgeByIndex(e).node1.getLayout();return e&&(e=e.depth,n=n.levelModels[e])&&(t.parentModel=n),t})}).data},HO.prototype.setNodePosition=function(t,e){t=(this.option.data||this.option.nodes)[t];t.localX=e[0],t.localY=e[1]},HO.prototype.getGraph=function(){return this.getData().graph},HO.prototype.getEdgeData=function(){return this.getGraph().edgeData},HO.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}var o,r;return"edge"===n?(o=(r=this.getDataParams(t,n)).data,r=r.value,by("nameValue",{name:o.source+" -- "+o.target,value:r,noValue:i(r)})):(o=this.getGraph().getNodeByIndex(t).getLayout().value,by("nameValue",{name:null!=(r=this.getDataParams(t,n).data.name)?r+"":null,value:o,noValue:i(o)}))},HO.prototype.optionUpdated=function(){},HO.prototype.getDataParams=function(t,e){var n=GO.prototype.getDataParams.call(this,t,e);return null==n.value&&"node"===e&&(e=this.getGraph().getNodeByIndex(t).getLayout().value,n.value=e),n},HO.type="series.sankey",HO.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3};var GO,WO=HO;function HO(){var t=null!==GO&&GO.apply(this,arguments)||this;return t.type=HO.type,t}function YO(t,tt){t.eachSeriesByType("sankey",function(t){for(var E,e,n=t.get("nodeWidth"),i=t.get("nodeGap"),o=(o=tt,Cd(t.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()})),r=(t.layoutInfo=o).width,o=o.height,a=t.getGraph(),s=a.nodes,a=a.edges,l=(et(s,function(t){var e=QO(t.outEdges,JO),n=QO(t.inEdges,JO),i=t.getValue()||0,e=Math.max(e,n,i);t.setLayout({value:e},!0)}),a=a,n=n,i=i,r=r,o=o,E=0!==pt(s=s,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"),e=t.get("orient"),t=t.get("nodeAlign"),s),z=a,u=n,n=r,V=o,h=e,c=[],p=[],d=[],g=[],f=0,y=0;y<z.length;y++)c[y]=1;for(y=0;y<l.length;y++)p[y]=l[y].inEdges.length,0===p[y]&&d.push(l[y]);for(var m=-1;d.length;){for(var v=0;v<d.length;v++){var x=d[v],_=x.hostGraph.data.getRawDataItem(x.dataIndex),B=null!=_.depth&&0<=_.depth;B&&_.depth>m&&(m=_.depth),x.setLayout({depth:B?_.depth:f},!0),"vertical"===h?x.setLayout({dy:u},!0):x.setLayout({dx:u},!0);for(var b=0;b<x.outEdges.length;b++){var w=x.outEdges[b],w=(c[z.indexOf(w)]=0,w.node2);0==--p[l.indexOf(w)]&&g.indexOf(w)<0&&g.push(w)}}++f,d=g,g=[]}for(y=0;y<c.length;y++)if(1===c[y])throw new Error("Sankey is a DAG, the original data has cycle!");var S=f-1<m?m:f-1;if(t&&"left"!==t){var M=l,F=S;if("right"===t){for(var I=[],T=M,G=0;T.length;){for(var C=0;C<T.length;C++){var D=T[C];D.setLayout({skNodeHeight:G},!0);for(var W=0;W<D.inEdges.length;W++){var H=D.inEdges[W];I.indexOf(H.node1)<0&&I.push(H.node1)}}T=I,I=[],++G}et(M,function(t){XO(t)||t.setLayout({depth:Math.max(0,F-t.getLayout().skNodeHeight)},!0)})}else if("justify"===t){var Y=M;var X=F;et(Y,function(t){XO(t)||t.outEdges.length||t.setLayout({depth:X},!0)})}}var U="vertical"===h?(V-u)/S:(n-u)/S,Z=h;et(l,function(t){var e=t.getLayout().depth*U;"vertical"===Z?t.setLayout({y:e},!0):t.setLayout({x:e},!0)});var t=a,A=o,k=r,L=i,j=E,P=e,O=function(t,e){var n=[],i="vertical"===e?"y":"x",o=ca(t,function(t){return t.getLayout()[i]});return o.keys.sort(function(t,e){return t-e}),et(o.keys,function(t){n.push(o.buckets.get(t))}),n}(s,P),M=O,V=t,q=A,K=k,$=L,J=P,R=1/0;et(M,function(t){var e=t.length,n=0,t=(et(t,function(t){n+=t.getLayout().value}),"vertical"===J?(K-(e-1)*$)/n:(q-(e-1)*$)/n);t<R&&(R=t)}),et(M,function(t){et(t,function(t,e){var n=t.getLayout().value*R;"vertical"===J?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))})}),et(V,function(t){var e=+t.getValue()*R;t.setLayout({dy:e},!0)}),UO(O,L,A,k,P);for(var Q=1;0<j;j--)(function(t,i,o){et(t.slice().reverse(),function(t){et(t,function(t){var e,n;t.outEdges.length&&(e=QO(t.outEdges,ZO,o)/QO(t.outEdges,JO),isNaN(e)&&(e=(n=t.outEdges.length)?QO(t.outEdges,jO,o)/n:0),"vertical"===o?(n=t.getLayout().x+(e-$O(t,o))*i,t.setLayout({x:n},!0)):(n=t.getLayout().y+(e-$O(t,o))*i,t.setLayout({y:n},!0)))})})})(O,Q*=.99,P),UO(O,L,A,k,P),function(t,i,o){et(t,function(t){et(t,function(t){var e,n;t.inEdges.length&&(e=QO(t.inEdges,qO,o)/QO(t.inEdges,JO),isNaN(e)&&(e=(n=t.inEdges.length)?QO(t.inEdges,KO,o)/n:0),"vertical"===o?(n=t.getLayout().x+(e-$O(t,o))*i,t.setLayout({x:n},!0)):(n=t.getLayout().y+(e-$O(t,o))*i,t.setLayout({y:n},!0)))})})}(O,Q,P),UO(O,L,A,k,P);var n=s,N="vertical"===e?"x":"y";et(n,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout()[N]-e.node2.getLayout()[N]}),t.inEdges.sort(function(t,e){return t.node1.getLayout()[N]-e.node1.getLayout()[N]})}),et(n,function(t){var e=0,n=0;et(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),et(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})})}function XO(t){t=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=t.depth&&0<=t.depth}function UO(t,l,u,h,c){var p="vertical"===c?"x":"y";et(t,function(t){var e,n,i;t.sort(function(t,e){return t.getLayout()[p]-e.getLayout()[p]});for(var o=0,r=t.length,a="vertical"===c?"dx":"dy",s=0;s<r;s++)0<(i=o-(n=t[s]).getLayout()[p])&&(e=n.getLayout()[p]+i,"vertical"===c?n.setLayout({x:e},!0):n.setLayout({y:e},!0)),o=n.getLayout()[p]+n.getLayout()[a]+l;if(0<(i=o-l-("vertical"===c?h:u)))for(e=n.getLayout()[p]-i,"vertical"===c?n.setLayout({x:e},!0):n.setLayout({y:e},!0),o=e,s=r-2;0<=s;--s)0<(i=(n=t[s]).getLayout()[p]+n.getLayout()[a]+l-o)&&(e=n.getLayout()[p]-i,"vertical"===c?n.setLayout({x:e},!0):n.setLayout({y:e},!0)),o=n.getLayout()[p]})}function ZO(t,e){return $O(t.node2,e)*t.getValue()}function jO(t,e){return $O(t.node2,e)}function qO(t,e){return $O(t.node1,e)*t.getValue()}function KO(t,e){return $O(t.node1,e)}function $O(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function JO(t){return t.getValue()}function QO(t,e,n){for(var i=0,o=t.length,r=-1;++r<o;){var a=+e(t[r],n);isNaN(a)||(i+=a)}return i}function tR(t){t.eachSeriesByType("sankey",function(i){var o,r,t=i.getGraph(),e=t.nodes,t=t.edges;e.length&&(o=1/0,r=-1/0,et(e,function(t){t=t.getLayout().value;t<o&&(o=t),r<t&&(r=t)}),et(e,function(t){var e=new ZT({type:"color",mappingMethod:"linear",dataExtent:[o,r],visual:i.get("color")}).mapValueToVisual(t.getLayout().value),n=t.getModel().get(["itemStyle","color"]);null!=n?(t.setVisual("color",n),t.setVisual("style",{fill:n})):(t.setVisual("color",e),t.setVisual("style",{fill:e}))})),t.length&&et(t,function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)})})}r(function(t){t.registerChartView(zO),t.registerSeriesModel(WO),t.registerLayout(YO),t.registerVisual(tR),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})})});u(iR,eR=$y),iR.prototype.render=function(_,t,e){var b=_.getData(),w=this,S=this.group,M=_.getLayerSeries(),n=b.getLayout("layoutInfo"),i=n.rect,n=n.boundaryGap;function o(t){return t.name}S.x=0,S.y=i.y+n[0];var i=new Qv(this._layersSeries||[],M,o,o),I=[];function r(t,e,n){var i,o,r,a=w._layers;if("remove"!==t){for(var s,l=[],u=[],h=M[e].indices,c=0;c<h.length;c++){var p=b.getItemLayout(h[c]),d=p.x,g=p.y0,p=p.y;l.push(d,g),u.push(d,g+p),s=b.getItemVisual(h[c],"style")}var f,y,m=b.getItemLayout(h[0]),v=_.getModel("label").get("margin"),x=_.getModel("emphasis"),t=("add"===t?(f=I[e]=new Z,y=new Ew({shape:{points:l,stackedOnPoints:u,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),f.add(y),S.add(f),_.isAnimationEnabled()&&y.setClipPath((t=y.getBoundingRect(),i=_,o=function(){y.removeClipPath()},yc(r=new L({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}}),{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},i,o),r))):(f=a[n],y=f.childAt(0),S.add(f),I[e]=f,C(y,{shape:{points:l,stackedOnPoints:u}},_),bc(y)),tp(y,ep(_),{labelDataIndex:h[c-1],defaultText:b.getName(h[c-1]),inheritColor:s.fill},{normal:{verticalAlign:"middle"}}),y.setTextConfig({position:null,local:!0}),y.getTextContent());t&&(t.x=m.x-v,t.y=m.y0+m.y/2),y.useStyle(s),b.setItemGraphicEl(e,y),Mu(y,_),_u(y,x.get("focus"),x.get("blurScope"),x.get("disabled"))}else S.remove(a[e])}i.add(T(r,this,"add")).update(T(r,this,"update")).remove(T(r,this,"remove")).execute(),this._layersSeries=M,this._layers=I},iR.type="themeRiver";var eR,nR=iR;function iR(){var t=null!==eR&&eR.apply(this,arguments)||this;return t.type=iR.type,t._layers=[],t}u(aR,oR=zy),aR.prototype.init=function(t){oR.prototype.init.apply(this,arguments),this.legendVisualProvider=new vS(T(this.getData,this),T(this.getRawData,this))},aR.prototype.fixData=function(t){var e=t.length,n={},i=ca(t,function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]}),o=[];i.buckets.each(function(t,e){o.push({name:e,dataList:t})});for(var r=o.length,a=0;a<r;++a){for(var s=o[a].name,l=0;l<o[a].dataList.length;++l){var u=o[a].dataList[l][0]+"";n[u]=a}for(u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},aR.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",sa).models[0].get("type"),t=pt(t.data,function(t){return void 0!==t[2]}),i=this.fixData(t||[]),o=[],r=this.nameMap=N(),a=0,s=0;s<i.length;++s)o.push(i[s][2]),r.get(i[s][2])||(r.set(i[s][2],a),a++);t=C1(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:r1(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,n=new T1(t,this);return n.initData(i),n},aR.prototype.getLayerSeries=function(){for(var n=this.getData(),t=n.count(),e=[],i=0;i<t;++i)e[i]=i;var o=n.mapDimension("single"),r=ca(e,function(t){return n.get("name",t)}),a=[];return r.buckets.each(function(t,e){t.sort(function(t,e){return n.get(o,t)-n.get(o,e)}),a.push({name:e,indices:t})}),a},aR.prototype.getAxisTooltipData=function(t,e,n){W(t)||(t=t?[t]:[]);for(var i,o=this.getData(),r=this.getLayerSeries(),a=[],s=r.length,l=0;l<s;++l){for(var u=Number.MAX_VALUE,h=-1,c=r[l].indices.length,p=0;p<c;++p){var d=o.get(t[0],r[l].indices[p]),g=Math.abs(d-e);g<=u&&(i=d,u=g,h=r[l].indices[p])}a.push(h)}return{dataIndices:a,nestestValue:i}},aR.prototype.formatTooltip=function(t,e,n){var i=this.getData();return by("nameValue",{name:i.getName(t),value:i.get(i.mapDimension("value"),t)})},aR.type="series.themeRiver",aR.dependencies=["singleAxis"],aR.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}};var oR,rR=aR;function aR(){var t=null!==oR&&oR.apply(this,arguments)||this;return t.type=aR.type,t}function sR(t,e){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),n=t.coordinateSystem,i={},o=n.getRect(),r=(i.rect=o,t.get("boundaryGap")),n=n.getAxis();i.boundaryGap=r,"horizontal"===n.orient?(r[0]=j(r[0],o.height),r[1]=j(r[1],o.height),lR(e,t,o.height-r[0]-r[1])):(r[0]=j(r[0],o.width),r[1]=j(r[1],o.width),lR(e,t,o.width-r[0]-r[1])),e.setLayout("layoutInfo",i)})}function lR(n,t,e){if(n.count())for(var i,o=t.coordinateSystem,r=t.getLayerSeries(),a=n.mapDimension("single"),s=n.mapDimension("value"),l=B(r,function(t){return B(t.indices,function(t){var e=o.dataToPoint(n.get(a,t));return e[1]=n.get(s,t),e})}),t=function(t){for(var e=t.length,n=t[0].length,i=[],o=[],r=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];r<s&&(r=s),i.push(s)}for(var u=0;u<n;++u)o[u]=(r-i[u])/2;for(var h=r=0;h<n;++h){var c=i[h]+o[h];r<c&&(r=c)}return{y0:o,max:r}}(l),u=t.y0,h=e/t.max,c=r.length,p=r[0].indices.length,d=0;d<p;++d){i=u[d]*h,n.setItemLayout(r[0].indices[d],{layerIndex:0,x:l[0][d][0],y0:i,y:l[0][d][1]*h});for(var g=1;g<c;++g)i+=l[g-1][d][1]*h,n.setItemLayout(r[g].indices[d],{layerIndex:g,x:l[g][d][0],y0:i,y:l[g][d][1]*h})}}r(function(t){t.registerChartView(nR),t.registerSeriesModel(rR),t.registerLayout(sR),t.registerProcessor(rS("themeRiver"))});var uR,hR=["itemStyle","borderWidth"],cR=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],pR=new $u,dR=(u(gR,uR=$y),gR.prototype.render=function(t,e,n){var l=this.group,u=t.getData(),h=this._data,i=t.coordinateSystem,o=i.getBaseAxis().isHorizontal(),r=i.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:i,coordSysExtent:[[r.x,r.x+r.width],[r.y,r.y+r.height]],isHorizontal:o,valueDim:cR[+o],categoryDim:cR[1-+o]};return u.diff(h).add(function(t){var e,n;u.hasValue(t)&&(e=wR(u,t),e=fR(u,t,e,c),n=IR(u,c,e),u.setItemGraphicEl(t,n),l.add(n),kR(n,c,e))}).update(function(t,e){var n,i,o,r,a,s,e=h.getItemGraphicEl(e);u.hasValue(t)?(n=wR(u,t),n=fR(u,t,n,c),i=CR(u,n),e&&i!==e.__pictorialShapeStr&&(l.remove(e),u.setItemGraphicEl(t,null),e=null),e?(i=e,o=c,a=(r=n).animationModel,s=r.dataIndex,C(i.__pictorialBundle,{x:r.bundlePosition[0],y:r.bundlePosition[1]},a,s),(r.symbolRepeat?vR:xR)(i,o,r,!0),_R(i,r,!0),bR(i,o,r,!0)):e=IR(u,c,n,!0),u.setItemGraphicEl(t,e),e.__pictorialSymbolMeta=n,l.add(e),kR(e,c,n)):l.remove(e)}).remove(function(t){var e=h.getItemGraphicEl(t);e&&TR(h,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=u,this.group},gR.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(t){TR(i,$(t).dataIndex,e,t)}):n.removeAll()},gR.type="pictorialBar",gR);function gR(){var t=null!==uR&&uR.apply(this,arguments)||this;return t.type=gR.type,t}function fR(t,e,n,i){var o,r=t.getItemLayout(e),a=n.get("symbolRepeat"),s=n.get("symbolClip"),l=n.get("symbolPosition")||"start",u=(n.get("symbolRotate")||0)*Math.PI/180||0,h=n.get("symbolPatternSize")||2,c=n.isAnimationEnabled(),s={dataIndex:e,layout:r,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:s,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:h,rotation:u,animationModel:c?n:null,hoverScale:c&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0},c=n,p=a,d=r,g=i,f=s,y=g.valueDim,c=c.get("symbolBoundingData"),m=g.coordSys.getOtherAxis(g.coordSys.getBaseAxis()),v=m.toGlobalCoord(m.dataToCoord(0)),x=1-(d[y.wh]<=0),e=(o=W(c)?((o=[yR(m,c[0])-v,yR(m,c[1])-v])[1]<o[0]&&o.reverse(),o[x]):null!=c?yR(m,c)-v:p?g.coordSysExtent[y.index][x]-v:d[y.wh],f.boundingLength=o,p&&(f.repeatCutLength=d[y.wh]),f.pxSign=0<o?1:-1,m=t,c=e,g=r,x=a,v=s.boundingLength,p=s.pxSign,d=h,y=s,o=(f=i).valueDim,t=f.categoryDim,g=Math.abs(g[t.wh]),m=m.getItemVisual(c,"symbolSize"),(c=W(m)?m.slice():null==m?["100%","100%"]:[m,m])[t.index]=j(c[t.index],g),c[o.index]=j(c[o.index],x?g:Math.abs(v)),y.symbolSize=c,(y.symbolScale=[c[0]/d,c[1]/d])[o.index]*=(f.isHorizontal?-1:1)*p,n),h=s.symbolScale,m=u,t=i,x=s,g=((e=e.get(hR)||0)&&(pR.attr({scaleX:h[0],scaleY:h[1],rotation:m}),pR.updateTransform(),e=(e/=pR.getLineScale())*h[t.valueDim.index]),x.valueLineWidth=e||0,s.symbolSize),v=r0(n.get("symbolOffset"),g),y=n,c=g,d=r,f=a,p=v,u=l,m=s.valueLineWidth,h=s.boundingLength,t=s.repeatCutLength,x=i,e=s,n=x.categoryDim,g=x.valueDim,r=e.pxSign,a=m=Math.max(c[g.index]+m,0),_=(f&&(_=Math.abs(h),y=wt(y.get("symbolMargin"),"15%")+"",b=!1,y.lastIndexOf("!")===y.length-1&&(b=!0,y=y.slice(0,y.length-1)),y=j(y,c[g.index]),c=Math.max(m+2*y,0),v=b?0:2*y,w=Br(f),l=w?f:LR((_+v)/c),c=m+2*(y=(_-l*m)/2/(b?l:Math.max(l-1,1))),v=b?0:2*y,w||"fixed"===f||(l=t?LR((Math.abs(t)+v)/c):0),a=l*c-v,e.repeatTimes=l,e.symbolMargin=y),r*(a/2)),b=((m=e.pathPosition=[])[n.index]=d[n.wh]/2,m[g.index]="start"===u?_:"end"===u?h-_:h/2,p&&(m[0]+=p[0],m[1]+=p[1]),e.bundlePosition=[]),w=(b[n.index]=d[n.xy],b[g.index]=d[g.xy],e.barRectShape=H({},d));return w[g.wh]=r*Math.max(Math.abs(d[g.wh]),Math.abs(m[g.index]+_)),w[n.wh]=d[n.wh],(f=e.clipShape={})[n.xy]=-d[n.xy],f[n.wh]=x.ecSize[n.wh],f[g.xy]=0,f[g.wh]=d[g.wh],s}function yR(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function mR(t){var e=t.symbolPatternSize,t=i0(t.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),"image"!==t.type&&t.setStyle({strokeNoScale:!0}),t}function vR(t,e,o,n){var i=t.__pictorialBundle,r=o.symbolSize,a=o.valueLineWidth,s=o.pathPosition,l=e.valueDim,u=o.repeatTimes||0,h=0,c=r[e.valueDim.index]+a+2*o.symbolMargin;for(DR(t,function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h<u?AR(t,null,g(h),o,n):AR(t,null,{scaleX:0,scaleY:0},o,n,function(){i.remove(t)}),h++});h<u;h++){var p=mR(o),d=(p.__pictorialAnimationIndex=h,p.__pictorialRepeatTimes=u,i.add(p),g(h));AR(p,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},o,n)}function g(t){var e=s.slice(),n=o.pxSign,i=t;return("start"===o.symbolRepeatDirection?0<n:n<0)&&(i=u-1-t),e[l.index]=c*(i-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:o.symbolScale[0],scaleY:o.symbolScale[1],rotation:o.rotation}}}function xR(t,e,n,i){var o=t.__pictorialBundle,r=t.__pictorialMainPath;r?AR(r,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(r=t.__pictorialMainPath=mR(n),o.add(r),AR(r,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function _R(t,e,n){var i=H({},e.barRectShape),o=t.__pictorialBarRect;o?AR(o,null,{shape:i},e,n):((o=t.__pictorialBarRect=new L({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(o))}function bR(t,e,n,i){var o,r,a,s;n.symbolClip&&(o=t.__pictorialClipPath,s=H({},n.clipShape),e=e.valueDim,r=n.animationModel,a=n.dataIndex,o?C(o,{shape:s},r,a):(s[e.wh]=0,o=new L({shape:s}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o,(s={})[e.wh]=n.clipShape[e.wh],Kc[i?"updateProps":"initProps"](o,{shape:s},r,a)))}function wR(t,e){t=t.getItemModel(e);return t.getAnimationDelayParams=SR,t.isAnimationEnabled=MR,t}function SR(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function MR(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function IR(t,e,n,i){var o=new Z,r=new Z;return o.add(r),(o.__pictorialBundle=r).x=n.bundlePosition[0],r.y=n.bundlePosition[1],n.symbolRepeat?vR(o,e,n):xR(o,0,n),_R(o,n,i),bR(o,e,n,i),o.__pictorialShapeStr=CR(t,n),o.__pictorialSymbolMeta=n,o}function TR(t,e,n,i){var o=i.__pictorialBarRect,r=(o&&o.removeTextContent(),[]);DR(i,function(t){r.push(t)}),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),et(r,function(t){vc(t,{scaleX:0,scaleY:0},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function CR(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function DR(e,n,i){et(e.__pictorialBundle.children(),function(t){t!==e.__pictorialBarRect&&n.call(i,t)})}function AR(t,e,n,i,o,r){e&&t.attr(e),i.symbolClip&&!o?n&&t.attr(n):n&&Kc[o?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,r)}function kR(t,e,n){var i=n.dataIndex,o=n.itemModel,r=o.getModel("emphasis"),a=r.getModel("itemStyle").getItemStyle(),s=o.getModel(["blur","itemStyle"]).getItemStyle(),l=o.getModel(["select","itemStyle"]).getItemStyle(),u=o.getShallow("cursor"),h=r.get("focus"),c=r.get("blurScope"),p=r.get("scale"),d=(DR(t,function(t){t instanceof nl?(e=t.style,t.useStyle(H({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))):t.useStyle(n.style);var e=t.ensureState("emphasis");e.style=a,p&&(e.scaleX=1.1*t.scaleX,e.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}),e.valueDim.posDesc[+(0<n.boundingLength)]);tp(t.__pictorialBarRect,ep(o),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:Vb(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:d}),_u(t,h,c,r.get("disabled"))}function LR(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}u(RR,PR=mp),RR.prototype.getInitialData=function(t){return t.stack=null,PR.prototype.getInitialData.apply(this,arguments)},RR.type="series.pictorialBar",RR.dependencies=["grid"],RR.defaultOption=kp(mp.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}});var PR,OR=RR;function RR(){var t=null!==PR&&PR.apply(this,arguments)||this;return t.type=RR.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}r(function(t){t.registerChartView(dR),t.registerSeriesModel(OR),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,P(cx,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,px("pictorialBar"))});var NR,ER={color:"fill",borderColor:"stroke"},zR={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},VR=i(),BR=(u(FR,NR=zy),FR.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},FR.prototype.getInitialData=function(t,e){return R1(null,this)},FR.prototype.getDataParams=function(t,e,n){t=NR.prototype.getDataParams.call(this,t,e);return n&&(t.info=VR(n).info),t},FR.type="series.custom",FR.dependencies=["grid","polar","geo","singleAxis","calendar"],FR.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},FR);function FR(){var t=null!==NR&&NR.apply(this,arguments)||this;return t.type=FR.type,t}function GR(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 WR(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 HR(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 YR(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 XR(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||U(t,"text")))}function UR(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)),ZR(i,t),et(i.rich,function(t){ZR(t,t)}),{textConfig:r,textContent:o}}function ZR(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 jR(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=(qR(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,et(e.rich,function(t){qR(t,t)}),i}function qR(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 KR={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},$R=G(KR),JR=(ct(Ho,function(t,e){return t[e]=1,t},{}),Ho.join(", "),["","style","shape","extra"]),QR=i();function tN(t,e,n,i,o){var r=t+"Animation",i=gc(t,i,o)||{},o=QR(e).userDuring;return 0<i.duration&&(i.during=o?T(sN,{el:e,userDuring:o}):null,i.setToFinal=!0,i.scope=t),H(i,n[r]),i}function eN(t,n,e,i){for(var o,r=(i=i||{}).dataIndex,a=i.isInit,i=i.clearStyle,s=e.isAnimationEnabled(),l=QR(t),u=n.style,l=(l.userDuring=n.during,{}),h={},c=n,p=h,d=0;d<$R.length;d++){var g=$R[d],f=KR[g],g=c[g];g&&(p[f[0]]=g[0],p[f[1]]=g[1])}for(d=0;d<Ho.length;d++){var y=Ho[d];null!=c[y]&&(p[y]=c[y])}if(uN("shape",n,h),uN("extra",n,h),!a&&s){for(var E=t,m=n,z=l,v=oN(m=n.transition)?Ho:Ur(m||[]),x=0;x<v.length;x++){var _,b=v[x];"style"!==b&&"shape"!==b&&"extra"!==b&&(_=E[b],z[b]=_)}lN("shape",t,n,l),lN("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&&!oN(C)){var D=Ur(C);I=I||(M.style={});for(var A=0;A<D.length;A++){var k=T[P=D[A]];I[P]=k}}else if(m.getAnimationStyleProps&&(oN(w)||oN(C)||0<=F(w,"style"))){var C=m.getAnimationStyleProps(),L=C?C.style:null;if(L){I=I||(M.style={});var P,O=G(S);for(A=0;A<O.length;A++)L[P=O[A]]&&(k=T[P],I[P]=k)}}}}}h.style=u;var R=t,w=h,m=i,C=w.style;if(!R.isGroup&&C){if(m){R.useStyle({});for(var V=R.animators,N=0;N<V.length;N++){var B=V[N];"style"===B.targetName&&B.changeTarget(R.style)}}R.setStyle(C)}w&&(w.style=null,w&&R.attr(w),w.style=C),M=t,U(S=n,"silent")&&(M.silent=S.silent),U(S,"ignore")&&(M.ignore=S.ignore),M instanceof ja&&U(S,"invisible")&&(M.invisible=S.invisible),M instanceof q&&U(S,"autoBatch")&&(M.autoBatch=S.autoBatch),s&&(a?(o={},et(JR,function(t){var e=t?n[t]:n;e&&e.enterFrom&&(t&&(o[t]=o[t]||{}),H(t?o[t]:o,e.enterFrom))}),0<(h=tN("enter",t,n,e,r)).duration&&t.animateFrom(o,h)):(i=t,s=n,a=r||0,h=e,(r=l)&&0<(s=tN("update",i,s,h,a)).duration&&i.animateFrom(r,s))),nN(t,n),u?t.dirty():t.markRedraw()}function nN(t,e){for(var n=QR(t).leaveToProps,i=0;i<JR.length;i++){var o=JR[i],r=o?e[o]:e;r&&r.leaveTo&&(n=n||(QR(t).leaveToProps={}),o&&(n[o]=n[o]||{}),H(o?n[o]:n,r.leaveTo))}}function iN(t,e,n,i){var o,r;t&&(o=t.parent,(r=QR(t).leaveToProps)?((e=tN("update",t,e,n,0)).done=function(){o.remove(t),i&&i()},t.animateTo(r,e)):(o.remove(t),i&&i()))}function oN(t){return"all"===t}var rN={},aN={setTransform:function(t,e){return rN.el[t]=e,this},getTransform:function(t){return rN.el[t]},setShape:function(t,e){var n=rN.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=rN.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=rN.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle)&&n.dirtyStyle(),this},getStyle:function(t){var e=rN.el.style;if(e)return e[t]},setExtra:function(t,e){return(rN.el.extra||(rN.el.extra={}))[t]=e,this},getExtra:function(t){var e=rN.el.extra;if(e)return e[t]}};function sN(){var t,e=this.el;e&&(QR(e).userDuring===(t=this.userDuring)?(rN.el=e,t(aN)):this.el=this.userDuring=null)}function lN(t,e,n,i){var o,r,a=n[t];if(a){var s=e[t];if(s){e=n.transition,n=a.transition;if(n)if(c||(c=i[t]={}),oN(n))H(c,s);else for(var l=Ur(n),u=0;u<l.length;u++){var h=s[d=l[u]];c[d]=h}else if(oN(e)||0<=F(e,t))for(var c=c||(i[t]={}),p=G(s),u=0;u<p.length;u++){var d,h=s[d=p[u]];o=a[d],r=h,(ht(o)?o!==r:null!=o&&isFinite(o))&&(c[d]=h)}}}}function uN(t,e,n){var i=e[t];if(i)for(var o=n[t]={},r=G(i),a=0;a<r.length;a++){var s=r[a];o[s]=Ji(i[s])}}var hN=i(),cN=["percent","easing","shape","style","extra"];function pN(t){t.stopAnimation("keyframe"),t.attr(hN(t))}function dN(l,u,e){var t,n,h,c;e.isAnimationEnabled()&&u&&(W(u)?et(u,function(t){dN(l,t,e)}):(t=u.keyframes,h=u.duration,e&&null==h&&(n=gc("enter",e,0),h=n&&n.duration),t&&h&&(c=hN(l),et(JR,function(a){var s;a&&!l[a]||(t.sort(function(t,e){return t.percent-e.percent}),et(t,function(t){var e=l.animators,n=a?t[a]:t;if(n){var i=G(n);if((i=a?i:pt(i,function(t){return F(cN,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;et(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 gN="emphasis",fN="normal",e="blur",Zm="select",yN=[fN,gN,e,Zm],mN={normal:["itemStyle"],emphasis:[gN,"itemStyle"],blur:[e,"itemStyle"],select:[Zm,"itemStyle"]},vN={normal:["label"],emphasis:[gN,"label"],blur:[e,"label"],select:[Zm,"label"]},xN=["x","y"],_N="e\0\0",bN={normal:{},emphasis:{},blur:{},select:{}},wN={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:T(GR,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:T(WR,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:T(HR,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:T(YR,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 SN(t){return t instanceof q}function MN(t){return t instanceof ja}u(CN,IN=$y),CN.prototype.render=function(n,t,i,o){this._progressiveEls=null;var r=this._data,a=n.getData(),s=this.group,l=PN(n,a,t,i),t=(r||s.removeAll(),a.diff(r).add(function(t){ON(i,null,t,l(t,o),n,s,a)}).remove(function(t){t=r.getItemGraphicEl(t);t&&iN(t,VR(t).option,n)}).update(function(t,e){e=r.getItemGraphicEl(e);ON(i,e,t,l(t,o),n,s,a)}).execute(),n.get("clip",!0)?Pb(n.coordinateSystem,!1,n):null);t?s.setClipPath(t):s.removeClipPath(),this._data=a},CN.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},CN.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=PN(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=ON(null,null,u,a(u,o),e,this.group,r);h&&(h.traverse(l),s.push(h))}},CN.prototype.eachRendered=function(t){qc(this._progressiveEls||this.group,t)},CN.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},CN.type="custom";var IN,TN=CN;function CN(){var t=null!==IN&&IN.apply(this,arguments)||this;return t.type=CN.type,t}function DN(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=WN(n),i=kc(o,null,i,n.layout||"center");VR(i).customPathData=o}else if("image"===e)i=new nl({}),VR(i).customImagePath=t.style.image;else if("text"===e)i=new K({});else if("group"===e)i=new Z;else{if("compoundPath"===e)throw new Error('"compoundPath" is not supported yet.');n=Ac(e);n||Wr(""),i=new n}return VR(i).customGraphicType=e,i.name=t.name,i.z2EmphasisLift=1,i.z2SelectLift=1,i}function AN(t,e,n,i,o,r,a){pN(e);var s,l,o=o&&o.normal.cfg,o=(o&&e.setTextConfig(o),i&&null==i.transition&&(i.transition=xN),i&&i.style);o&&(s=void("text"===e.type&&(U(s=o,"textFill")&&(s.fill=s.textFill),U(s,"textStroke"))&&(s.stroke=s.textStroke)),l=SN(e)?o.decal:null,t&&l&&(l.dirty=!0,s=R0(l,t)),o.__decalPattern=s),MN(e)&&o&&(s=o.__decalPattern)&&(o.decal=s),eN(e,i,r,{dataIndex:n,isInit:a,clearStyle:!0}),dN(e,i.keyframeAnimation,r)}function kN(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),ou(e))}function LN(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=0;o<yN.length;o++)r=i,a=e,s=yN[o],l=void 0,null!=(a=(a=(l=s===fN)?a:zN(a,s))?a.z2:null)&&((l?r:r.ensureState(s)).z2=a||0)}var r,a,s,l}function PN(a,s,e,t){var n=a.get("renderItem"),l=a.coordinateSystem,i={};l&&(i=l.prepareCustoms?l.prepareCustoms(l):wN[l.type](l));for(var u,o,r,h,c=V({getWidth:t.getWidth,getHeight:t.getHeight,getZr:t.getZr,getDevicePixelRatio:t.getDevicePixelRatio,value:function(t,e){return null==e&&(e=u),s.getStore().get(s.getDimensionIndex(t||0),e)},style:function(t,e){null==e&&(e=u);var n=s.getItemVisual(e,"style"),i=n&&n.fill,n=n&&n.opacity,o=_(e,fN).getItemStyle(),n=(null!=i&&(o.fill=i),null!=n&&(o.opacity=n),{inheritColor:Y(i)?i:"#000"}),i=b(e,fN),r=np(i,null,n,!1,!0),e=(r.text=i.getShallow("show")?R(a.getFormattedLabel(e,fN),Vb(s,e)):null,ip(i,n,!1));return S(t,o),o=jR(o,r,e),t&&w(o,t),o.legacy=!0,o},ordinalRawValue:function(t,e){null==e&&(e=u);var n,i=s.getDimensionInfo(t=t||0);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=_(e=null==e?u:e,gN).getItemStyle(),i=b(e,gN),o=np(i,null,null,!0,!0),e=(o.text=i.getShallow("show")?St(a.getFormattedLabel(e,gN),a.getFormattedLabel(e,fN),Vb(s,e)):null,ip(i,null,!0));return S(t,n),n=jR(n,o,e),t&&w(n,t),n.legacy=!0,n},visual:function(t,e){var n;return null==e&&(e=u),U(ER,t)?(n=s.getItemVisual(e,"style"))?n[ER[t]]:null:U(zR,t)?s.getItemVisual(e,t):void 0},barLayout:function(t){if("cartesian2d"===l.type){var e=V({axis:l.getBaseAxis()},t),n=[],t=e.axis;if("category"===t.type){for(var i=t.getBandWidth(),o=0;o<e.count;o++)n.push(V({bandWidth:i,axisKey:"axis0",stackId:rx+o},e));for(var r=hx(n),a=[],o=0;o<e.count;o++){var s=r.axis0[rx+o];s.offsetCenter=s.offset+s.width/2,a.push(s)}return a}}},currentSeriesIndices:function(){return e.getCurrentSeriesIndices()},font:function(t){return lp(t,e)}},i.api||{}),p={context:{},seriesId:a.id,seriesName:a.name,seriesIndex:a.seriesIndex,coordSys:i.coordSys,dataInsideLength:s.count(),encode:(r=a.getData(),h={},et(r.dimensions,function(t){var e,n=r.getDimensionInfo(t);n.isExtraCoord||(e=n.coordDim,(h[e]=h[e]||[])[n.coordDimIndex]=r.getDimensionIndex(t))}),h)},d={},g={},f={},y={},m=0;m<yN.length;m++){var v=yN[m];f[v]=a.getModel(mN[v]),y[v]=a.getModel(vN[v])}function x(t){return t===u?o=o||s.getItemModel(t):s.getItemModel(t)}function _(t,e){return s.hasItemOption?t===u?d[e]||(d[e]=x(t).getModel(mN[e])):x(t).getModel(mN[e]):f[e]}function b(t,e){return s.hasItemOption?t===u?g[e]||(g[e]=x(t).getModel(vN[e])):x(t).getModel(vN[e]):y[e]}return function(t,e){return u=t,o=null,d={},g={},n&&n(V({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 ON(t,e,n,i,o,r,a){if(i)return(t=RN(t,e,n,i,o,r))&&a.setItemGraphicEl(n,t),t&&_u(t,i.focus,i.blurScope,i.emphasisDisabled),t;r.remove(e)}function RN(t,e,n,i,o,r){var a=-1,s=e,l=(e&&NN(e,i,o)&&(a=F(r.childrenRef(),e),e=null),!e),u=e,s=(u?u.clearStates():(u=DN(i),s&&(e=s,(s=u).copyTransform(e),MN(s)&&MN(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,SN(s))&&SN(e)&&s.setShape(e.shape))),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),bN.normal.cfg=bN.normal.conOpt=bN.emphasis.cfg=bN.emphasis.conOpt=bN.blur.cfg=bN.blur.conOpt=bN.select.cfg=bN.select.conOpt=null,bN.isLegacy=!1,u),e=n,h=i,c=o,p=l,d=bN;if(!s.isGroup){EN(h,null,d),EN(h,gN,d);var g=d.normal.conOpt,h=d.emphasis.conOpt,f=d.blur.conOpt,y=d.select.conOpt;if(null!=g||null!=h||null!=y||null!=f){var m=s.getTextContent();if(!1===g)m&&s.removeTextContent();else{g=d.normal.conOpt=g||{type:"text"},m?m.clearStates():(m=DN(g),s.setTextContent(m)),AN(null,m,e,g,null,c,p);for(var h=g&&g.style,v=0;v<yN.length;v++){var x,_=yN[v];_!==fN&&(x=d[_].conOpt,kN(_,m,0,VN(g,x,_),null))}h?m.dirty():m.markRedraw()}}}y=u,f=n,s=i,e=o,c=l;!1===(s=s.clipPath)?y&&y.getClipPath()&&y.removeClipPath():s&&((p=(p=y.getClipPath())&&NN(p,s,e)?null:p)||(p=DN(s),y.setClipPath(p)),AN(null,p,f,s,null,e,c)),AN(t,u,n,i,bN,o,l),U(i,"info")&&(VR(u).info=i.info);for(var b=0;b<yN.length;b++){var w=yN[b];w!==fN&&kN(w,u,0,VN(i,zN(i,w),w),bN)}if(LN(u,i,o),"group"===i.type){var S=t,M=u,I=n,T=o,C=(h=i).children,D=C?C.length:0,p,h="byName"===(p=h.$mergeChildren)||h.diffChildrenByName,p=!1===p;if(D||h||p)if(h){var A={api:S,oldChildren:M.children()||[],newChildren:C||[],dataIndex:I,seriesModel:T,group:M};new Qv(A.oldChildren,A.newChildren,BN,BN,A).add(FN).update(FN).remove(GN).execute()}else{p&&M.removeAll();for(var k=0;k<D;k++){var L=C[k],P=M.childAt(k);L?(null==L.ignore&&(L.ignore=!1),RN(S,P,I,L,T,M)):P.ignore=!0}for(var O=M.childCount()-1;k<=O;O--){var R=M.childAt(O);!function(t,e,n){e&&iN(e,VR(t).option,n)}(M,R,T)}}}return 0<=a?r.replaceAt(u,a):r.add(u),u}function NN(t,e,n){var t=VR(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"))&&WN(o)!==t.customPathData||"image"===i&&U(e,"image")&&e.image!==t.customImagePath}function EN(t,e,n){var i=e?zN(t,e):t,o=e?VN(t,i,gN):t.style,r=t.type,i=i?i.textConfig:null,t=t.textContent,t=t?e?zN(t,e):t:null,o=(o&&(n.isLegacy||XR(o,r,!!i,!!t))&&(n.isLegacy=!0,o=UR(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 zN(t,e){return e?t?t[e]:null:t}function VN(t,e,n){e=e&&e.style;return e=null==e&&n===gN&&t?t.styleEmphasis:e}function BN(t,e){t=t&&t.name;return null!=t?t:_N+e}function FN(t,e){var n=this.context,t=null!=t?n.newChildren[t]:null,e=null!=e?n.oldChildren[e]:null;RN(n.api,e,n.dataIndex,t,n.seriesModel,n.group)}function GN(t){var e=this.context,t=e.oldChildren[t];t&&iN(t,VR(t).option,e.seriesModel)}function WN(t){return t&&(t.pathData||t.d)}r(function(t){t.registerChartView(TN),t.registerSeriesModel(BR)}),r(UM);var HN=i(),YN=S,XN=T,Jm=(UN.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=P(ZN,e,r),this.updatePointerEl(i,s,r),this.updateLabelEl(i,s,r,e)):(i=this._group=new Z,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),KN(i,e,!0),this._renderHandle(a)):(i&&i.hide(),o&&o.hide()))},UN.prototype.remove=function(t){this.clear(t)},UN.prototype.dispose=function(t){this.clear(t)},UN.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=bM(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},UN.prototype.makeElOption=function(t,e,n,i,o){},UN.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(o=HN(t).pointerEl=new Kc[o.type](YN(e.pointer)),t.add(o))},UN.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=HN(t).labelEl=new K(YN(e.label)),t.add(e),jN(e,i))},UN.prototype.updatePointerEl=function(t,e,n){t=HN(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},UN.prototype.updateLabelEl=function(t,e,n,i){t=HN(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),jN(t,i))},UN.prototype._renderHandle=function(t){var e,n,i,o,r,a;!this._dragging&&this.updateHandleTransform&&(n=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=n.getModel("handle"),a=n.get("status"),r.get("show")&&a&&"hide"!==a?(this._handle||(e=!0,o=this._handle=Yc(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Le(t.event)},onmousedown:XN(this._onHandleDragMove,this,0,0),drift:XN(this._onHandleDragMove,this),ondragend:XN(this._onHandleDragEnd,this)}),i.add(o)),KN(o,n,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),W(a=r.get("size"))||(a=[a,a]),o.scaleX=a[0]/2,o.scaleY=a[1]/2,lm(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)):(o&&i.remove(o),this._handle=null))},UN.prototype._moveHandleToValue=function(t,e){ZN(this._axisPointerModel,!e&&this._moveAnimation,this._handle,qN(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},UN.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(qN(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(qN(t)),HN(n).lastProp=null,this._doDispatchAxisPointer())},UN.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}]}))},UN.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},UN.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),um(this,"_doDispatchAxisPointer")},UN.prototype.doClear=function(){},UN.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},UN);function UN(){this._dragging=!1,this.animationThreshold=15}function ZN(t,e,n,i){!function n(i,t){{var o;if(O(i)&&O(t))return o=!0,et(t,function(t,e){o=o&&n(i[e],t)}),!!o}return i===t}(HN(n).lastProp,i)&&(HN(n).lastProp=i,e?C(n,i,t):(n.stopAnimation(),n.attr(i)))}function jN(t,e){t[e.get(["label","show"])?"show":"hide"]()}function qN(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function KN(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 $N(t){var e,n=t.get("type"),t=t.getModel(n+"Style");return"line"===n?(e=t.getLineStyle()).fill=null:"shadow"===n&&((e=t.getAreaStyle()).stroke=null),e}function JN(t,e,n,i,o){var r=QN(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=gd(n.get("padding")||0),s=n.getFont(),l=jo(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:np(n,{text:r,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function QN(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:Wx(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},et(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&r.seriesData.push(e)}),Y(o)?a=o.replace("{value}",a):D(o)&&(a=o(r))),a}function t5(t,e,n){var i=ze();return We(i,i,n.rotation),Ge(i,i,n.position),Vc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function e5(t,e,n,i,o,r){var a=pM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),JN(e,i,o,r,{position:t5(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function n5(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function i5(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function o5(t,e,n,i,o,r){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}u(s5,r5=Jm),s5.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=("angle"===a.dim&&(this.animationThreshold=Math.PI/18),a.polar),l=s.getOtherAxis(a).getExtent(),u=a.dataToCoord(e),h=i.get("type"),a=(h&&"none"!==h&&(r=$N(i),(h=u5[h](a,s,u,l)).style=r,t.graphicKey=h.type,t.pointer=h),i.get(["label","margin"]));JN(t,n,i,o,function(t,e,n,i){var o=e.axis,t=o.dataToCoord(t);l=(l=n.getAngleAxis().getExtent()[0])/180*Math.PI;var r,a,s=n.getRadiusAxis().getExtent();{var l;s="radius"===o.dim?(o=ze(),We(o,o,l),Ge(o,o,[n.cx,n.cy]),r=Vc([t,-i],o),o=e.getModel("axisLabel").get("rotate")||0,e=pM.innerTextLayout(l,o*Math.PI/180,-1),a=e.textAlign,e.textVerticalAlign):(l=s[1],r=n.coordToPoint([l+i,t]),o=n.cx,e=n.cy,a=Math.abs(r[0]-o)/l<.3?"center":r[0]>o?"left":"right",Math.abs(r[1]-e)/l<.3?"middle":r[1]>e?"top":"bottom")}return{position:r,align:a,verticalAlign:s}}(e,n,s,a))};var r5,a5=s5;function s5(){return null!==r5&&r5.apply(this,arguments)||this}var l5,u5={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:n5(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var o=Math.max(1,t.getBandWidth()),r=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:o5(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:o5(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}},h5=(u(c5,l5=Jm),c5.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.grid,l=i.get("type"),u=p5(s,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(e,!0)),a=(l&&"none"!==l&&(r=$N(i),(l=d5[l](a,h,u)).style=r,t.graphicKey=l.type,t.pointer=l),eM(s.model,n));e5(e,t,a,n,i,o)},c5.prototype.getHandleTransform=function(t,e,n){var i=eM(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),t5(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},c5.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.grid,r=n.getGlobalExtent(!0),o=p5(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];return r[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:r,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}},c5);function c5(){return null!==l5&&l5.apply(this,arguments)||this}function p5(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var d5={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:n5([e,n[0]],[e,n[1]],g5(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:i5([e-i/2,n[0]],[i,o],g5(t))}}};function g5(t){return"x"===t.dim?0:1}u(m5,f5=g),m5.type="axisPointer",m5.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 f5,y5=m5;function m5(){var t=null!==f5&&f5.apply(this,arguments)||this;return t.type=m5.type,t}var v5=i(),x5=et;function _5(t,e,n){var i,c,p;function o(t,h){c.on(t,function(e){n=p;var n,i,t,o,r,a,s,l={dispatchAction:u,pendings:i={showTip:[],hideTip:[]}};function u(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=u,n.dispatchAction(t))}x5(v5(c).records,function(t){t&&h(t,e,l.dispatchAction)}),o=p,a=(t=l.pendings).showTip.length,s=t.hideTip.length,a?r=t.showTip[a-1]:s&&(r=t.hideTip[s-1]),r&&(r.dispatchAction=null,o.dispatchAction(r))})}w.node||(i=e.getZr(),v5(i).records||(v5(i).records={}),p=e,v5(c=i).initialized||(v5(c).initialized=!0,o("click",P(w5,"click")),o("mousemove",P(w5,"mousemove")),o("globalout",b5)),(v5(i).records[t]||(v5(i).records[t]={})).handler=n)}function b5(t,e,n){t.handler("leave",null,n)}function w5(t,e,n,i){e.handler(t,n,i)}function S5(t,e){w.node||(e=e.getZr(),(v5(e).records||{})[t]&&(v5(e).records[t]=null))}u(T5,M5=Uy),T5.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";_5("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})})},T5.prototype.remove=function(t,e){S5("axisPointer",e)},T5.prototype.dispose=function(t,e){S5("axisPointer",e)},T5.type="axisPointer";var M5,I5=T5;function T5(){var t=null!==M5&&M5.apply(this,arguments)||this;return t.type=T5.type,t}function C5(t,e){var n,i,o,r,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=ia(n=e.getData(),t))||s<0||W(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 D5=i();function A5(t,e,n){var r,a,i,s,l,o,u,h,c,p,d,g,f,y,m=t.currTrigger,v=[t.x,t.y],x=t,_=t.dispatchAction||T(n.dispatchAction,n),b=e.getComponent("axisPointer").coordSysAxesInfo;if(b)return R5(v)&&(v=C5({seriesIndex:x.seriesIndex,dataIndex:x.dataIndex},e).point),r=R5(v),a=x.axesInfo,i=b.axesInfo,s="leave"===m||R5(v),l={},e={list:[],map:{}},u={showPointer:P(L5,o={}),showTooltip:P(P5,e)},et(b.coordSysMap,function(t,e){var o=r||t.containPoint(v);et(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))&&k5(t,i,u,!1,l)})}),h={},et(i,function(n,t){var i=n.linkGroup;i&&!o[t]&&et(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,O5(t),O5(n)))),h[n.key]=e)})}),et(h,function(t,e){k5(i[e],t,u,!0,l)}),f=o,x=i,y=l.axesInfo=[],et(x,function(t,e){var n=t.axisPointerModel.option,e=f[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&y.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),m=e,x=t,e=_,!R5(t=v)&&m.list.length?(_=((m.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:x.tooltipOption,position:x.position,dataIndexInside:_.dataIndexInside,dataIndex:_.dataIndex,seriesIndex:_.seriesIndex,dataByCoordSys:m.list})):e({type:"hideTip"}),t=i,_=(x=n).getZr(),m="axisPointerLastHighlights",c=D5(_)[m]||{},p=D5(_)[m]={},et(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&et(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;p[e]=t})}),d=[],g=[],et(c,function(t,e){p[e]||g.push(t)}),et(p,function(t,e){c[e]||d.push(t)}),g.length&&x.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:g}),d.length&&x.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:d}),l}function k5(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,g,f=t.axis;!f.scale.isBlank()&&f.containData(e)&&(t.involveSeries?(l=e,u=t.axis,h=u.dim,c=l,p=[],d=Number.MAX_VALUE,g=-1,et(t.seriesModels,function(e,t){var n,i=e.getData().mapDimensionsAll(h);if(e.getAxisTooltipData)var o=e.getAxisTooltipData(i,l,u),r=o.dataIndices,o=o.nestestValue;else{if(!(r=e.getData().indicesOfNearest(i[0],l,"category"===u.type?.5:null)).length)return;o=e.getData().get(i[0],r[0])}null!=o&&isFinite(o)&&(i=l-o,(n=Math.abs(i))<=d)&&((n<d||0<=i&&g<0)&&(d=n,g=i,c=o,p.length=0),et(r,function(t){p.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}),s=(r={payloadBatch:p,snapToValue:c}).snapToValue,(a=r.payloadBatch)[0]&&null==o.seriesIndex&&H(o,a[0]),!i&&t.snap&&f.containData(s)&&null!=s&&(e=s),n.showPointer(t,e,a),n.showTooltip(t,r,s)):n.showPointer(t,e))}function L5(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function P5(t,e,n,i){var o,r,n=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(o=SM(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 O5(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 R5(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function N5(t){TM.registerAxisPointerClass("CartesianAxisPointer",h5),t.registerComponentModel(y5),t.registerComponentView(I5),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!W(e)&&(t.axisPointer.link=[e])}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=xM(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},A5)}u(V5,E5=g),V5.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},V5.type="polar",V5.dependencies=["radiusAxis","angleAxis"],V5.defaultOption={z:0,center:["50%","50%"],radius:"80%"};var E5,z5=V5;function V5(){var t=null!==E5&&E5.apply(this,arguments)||this;return t.type=V5.type,t}u(F5,B5=g),F5.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",sa).models[0]},F5.type="polarAxis";var B5,xa=F5;function F5(){return null!==B5&&B5.apply(this,arguments)||this}ut(xa,Zx);u(H5,G5=xa),H5.type="angleAxis";var G5,W5=H5;function H5(){var t=null!==G5&&G5.apply(this,arguments)||this;return t.type=H5.type,t}u(U5,Y5=xa),U5.type="radiusAxis";var Y5,X5=U5;function U5(){var t=null!==Y5&&Y5.apply(this,arguments)||this;return t.type=U5.type,t}u(q5,Z5=bp),q5.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]};var Z5,j5=q5;function q5(t,e){return Z5.call(this,"radius",t,e)||this}j5.prototype.dataToRadius=bp.prototype.dataToCoord,j5.prototype.radiusToData=bp.prototype.coordToData;var K5,$5=i(),J5=(u(Q5,K5=bp),Q5.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},Q5.prototype.calculateCategoryInterval=function(){var t,e,n=this.getLabelModel(),i=this.scale,o=i.getExtent(),i=i.count();return o[1]-o[0]<1?0:(o=o[0],t=this.dataToCoord(o+1)-this.dataToCoord(o),t=Math.abs(t),o=jo(null==o?"":o+"",n.getFont(),"center","top"),n=Math.max(o.height,7)/t,isNaN(n)&&(n=1/0),o=Math.max(0,Math.floor(n)),n=(t=$5(this.model)).lastAutoInterval,e=t.lastTickCount,null!=n&&null!=e&&Math.abs(n-o)<=1&&Math.abs(e-i)<=1&&o<n?o=n:(t.lastTickCount=i,t.lastAutoInterval=o),o)},Q5);function Q5(t,e){return K5.call(this,"angle",t,e||[0,360])||this}J5.prototype.dataToAngle=bp.prototype.dataToCoord,J5.prototype.angleToData=bp.prototype.coordToData;var tE=["radius","angle"],eE=(nE.prototype.containPoint=function(t){t=this.pointToCoord(t);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},nE.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},nE.prototype.getAxis=function(t){return this["_"+t+"Axis"]},nE.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},nE.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},nE.prototype.getAngleAxis=function(){return this._angleAxis},nE.prototype.getRadiusAxis=function(){return this._radiusAxis},nE.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},nE.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},nE.prototype.getTooltipAxes=function(t){t=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},nE.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},nE.prototype.pointToData=function(t,e){t=this.pointToCoord(t);return[this._radiusAxis.radiusToData(t[0],e),this._angleAxis.angleToData(t[1],e)]},nE.prototype.pointToCoord=function(t){var e=t[0]-this.cx,t=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),o=Math.min(i[0],i[1]),r=Math.max(i[0],i[1]),i=(n.inverse?o=r-360:r=o+360,Math.sqrt(e*e+t*t));e/=i,t/=i;for(var a=Math.atan2(-t,e)/Math.PI*180,s=a<o?1:-1;a<o||r<a;)a+=360*s;return[i,a]},nE.prototype.coordToPoint=function(t){var e=t[0],t=t[1]/180*Math.PI;return[Math.cos(t)*e+this.cx,-Math.sin(t)*e+this.cy]},nE.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice(),n=(e[0]>e[1]&&e.reverse(),t.getExtent()),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var t=t-this.cx,e=e-this.cy,t=t*t+e*e-1e-4,e=this.r,n=this.r0;return t<=e*e&&n*n<=t}}},nE.prototype.convertToPixel=function(t,e,n){return iE(e)===this?this.dataToPoint(n):null},nE.prototype.convertFromPixel=function(t,e,n){return iE(e)===this?this.pointToData(n):null},nE);function nE(t){this.dimensions=tE,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new j5,this._angleAxis=new J5,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}function iE(t){var e=t.seriesModel,t=t.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function oE(t,e){var n,i=this,o=i.getAngleAxis(),r=i.getRadiusAxis();o.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){var e;t.coordinateSystem===i&&(et(Ux(e=t.getData(),"radius"),function(t){r.scale.unionExtentFromData(e,t)}),et(Ux(e,"angle"),function(t){o.scale.unionExtentFromData(e,t)}))}),Bx(o.scale,o.model),Bx(r.scale,r.model),"category"!==o.type||o.onBand||(t=o.getExtent(),n=360/o.scale.count(),o.inverse?t[1]+=n:t[1]-=n,o.setExtent(t[0],t[1]))}function rE(t,e){var n;t.type=e.get("type"),t.scale=Fx(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType&&(t.inverse=t.inverse!==e.get("clockwise"),n=e.get("startAngle"),t.setExtent(n,n+(t.inverse?-360:360))),(e.axis=t).model=e}var aE={dimensions:tE,create:function(t,s){var l=[];return t.eachComponent("polar",function(t,e){var n,e=new eE(e+""),i=(e.update=oE,e.getRadiusAxis()),o=e.getAngleAxis(),r=t.findAxisModel("radiusAxis"),a=t.findAxisModel("angleAxis");rE(i,r),rE(o,a),i=e,r=s,a=(o=t).get("center"),n=r.getWidth(),r=r.getHeight(),i.cx=j(a[0],n),i.cy=j(a[1],r),a=i.getRadiusAxis(),i=Math.min(n,r)/2,null==(n=o.get("radius"))?n=[0,"100%"]:W(n)||(n=[0,n]),r=[j(n[0],i),j(n[1],i)],a.inverse?a.setExtent(r[1],r[0]):a.setExtent(r[0],r[1]),l.push(e),(t.coordinateSystem=e).model=t}),t.eachSeries(function(t){var e;"polar"===t.get("coordinateSystem")&&(e=t.getReferringComponents("polar",sa).models[0],t.coordinateSystem=e.coordinateSystem)}),l}},sE=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function lE(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),t=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:t[0],y2:t[1]}}function uE(t){return t.getRadiusAxis().inverse?0:1}function hE(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}u(gE,cE=TM),gE.prototype.render=function(e,t){var n,i,o,r,a,s;this.group.removeAll(),e.get("show")&&(n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),a=n.getMinorTicksCoords(),hE(s=B(n.getViewLabels(),function(t){t=S(t);var e=n.scale,e="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(e),t})),hE(r),et(sE,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||dE[t](this.group,e,i,r,a,o,s)},this))},gE.type="angleAxis";var cE,pE=gE,dE={axisLine:function(t,e,n,i,o,r){var e=e.getModel(["axisLine","lineStyle"]),a=uE(n),s=a?0:1;(n=0===r[s]?new $u({shape:{cx:n.cx,cy:n.cy,r:r[a]},style:e.getLineStyle(),z2:1,silent:!0}):new wh({shape:{cx:n.cx,cy:n.cy,r:r[a],r0:r[s]},style:e.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(n)},axisTick:function(t,e,n,i,o,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=r[uE(n)],r=B(i,function(t){return new Eh({shape:lE(n,[l,l+s],t.coord)})});t.add(Oc(r,{style:V(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,o,r){if(o.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=r[uE(n)],h=[],c=0;c<o.length;c++)for(var p=0;p<o[c].length;p++)h.push(new Eh({shape:lE(n,[u,u+l],o[c][p].coord)}));t.add(Oc(h,{style:V(s.getModel("lineStyle").getLineStyle(),V(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(l,u,h,t,e,c,n){var p=u.getCategories(!0),d=u.getModel("axisLabel"),g=d.get("margin"),f=u.get("triggerEvent");et(n,function(t,e){var n=d,i=t.tickValue,o=c[uE(h)],r=h.coordToPoint([o+g,t.coord]),a=h.cx,s=h.cy,a=Math.abs(r[0]-a)/o<.3?"center":r[0]>a?"left":"right",o=Math.abs(r[1]-s)/o<.3?"middle":r[1]>s?"top":"bottom",i=(p&&p[i]&&O(s=p[i])&&s.textStyle&&(n=new Tp(s.textStyle,d,d.ecModel)),new K({silent:pM.isLabelSilent(u),style:np(n,{x:r[0],y:r[1],fill:n.getTextColor()||u.get(["axisLine","lineStyle","color"]),text:t.formattedLabel,align:a,verticalAlign:o})}));l.add(i),f&&((s=pM.makeAxisEventDataBase(u)).targetType="axisLabel",s.value=t.rawLabel,$(i).eventData=s)},this)},splitLine:function(t,e,n,i,o,r){for(var a=e.getModel("splitLine").getModel("lineStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],h=0;h<i.length;h++){var c=s++%l.length;u[c]=u[c]||[],u[c].push(new Eh({shape:lE(n,r,i[h].coord)}))}for(h=0;h<u.length;h++)t.add(Oc(u[h],{style:V({stroke:l[h%l.length]},a.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,i,o,r){if(o.length){for(var a=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<o.length;l++)for(var u=0;u<o[l].length;u++)s.push(new Eh({shape:lE(n,r,o[l][u].coord)}));t.add(Oc(s,{style:a.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,i,o,r){if(i.length){for(var a=e.getModel("splitArea").getModel("areaStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],h=Math.PI/180,c=-i[0].coord*h,p=Math.min(r[0],r[1]),d=Math.max(r[0],r[1]),g=e.get("clockwise"),f=1,y=i.length;f<=y;f++){var m=(f===y?i[0]:i[f]).coord,v=s++%l.length;u[v]=u[v]||[],u[v].push(new vh({shape:{cx:n.cx,cy:n.cy,r0:p,r:d,startAngle:c,endAngle:-m*h,clockwise:g},silent:!0})),c=-m*h}for(f=0;f<u.length;f++)t.add(Oc(u[f],{style:V({fill:l[f%l.length]},a.getAreaStyle()),silent:!0}))}}};function gE(){var t=null!==cE&&cE.apply(this,arguments)||this;return t.type=gE.type,t.axisPointerClass="PolarAxisPointer",t}var fE,yE=["axisLine","axisTickLabel","axisName"],mE=["splitLine","splitArea","minorSplitLine"],vE=(u(_E,fE=TM),_E.prototype.render=function(e,t){var n,i,o,r,a,s,l,u,h;this.group.removeAll(),e.get("show")&&(n=this._axisGroup,i=this._axisGroup=new Z,this.group.add(i),o=e.axis,h=(r=o.polar).getAngleAxis(),a=o.getTicksCoords(),s=o.getMinorTicksCoords(),l=h.getExtent()[0],u=o.getExtent(),h={position:[r.cx,r.cy],rotation:l/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1},h=new pM(e,h),et(yE,h.add,h),i.add(h.getGroup()),Gc(n,i,e),et(mE,function(t){e.get([t,"show"])&&!o.scale.isBlank()&&xE[t](this.group,e,r,l,u,a,s)},this))},_E.type="radiusAxis",_E),xE={splitLine:function(t,e,n,i,o,r){for(var a=e.getModel("splitLine").getModel("lineStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],h=0;h<r.length;h++){var c=s++%l.length;u[c]=u[c]||[],u[c].push(new $u({shape:{cx:n.cx,cy:n.cy,r:Math.max(r[h].coord,0)}}))}for(h=0;h<u.length;h++)t.add(Oc(u[h],{style:V({stroke:l[h%l.length],fill:null},a.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,i,o,r,a){if(a.length){for(var e=e.getModel("minorSplitLine").getModel("lineStyle"),s=[],l=0;l<a.length;l++)for(var u=0;u<a[l].length;u++)s.push(new $u({shape:{cx:n.cx,cy:n.cy,r:a[l][u].coord}}));t.add(Oc(s,{style:V({fill:null},e.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,i,o,r){if(r.length){for(var a=e.getModel("splitArea").getModel("areaStyle"),s=0,l=(l=a.get("color"))instanceof Array?l:[l],u=[],h=r[0].coord,c=1;c<r.length;c++){var p=s++%l.length;u[p]=u[p]||[],u[p].push(new vh({shape:{cx:n.cx,cy:n.cy,r0:h,r:r[c].coord,startAngle:0,endAngle:2*Math.PI},silent:!0})),h=r[c].coord}for(c=0;c<u.length;c++)t.add(Oc(u[c],{style:V({fill:l[c%l.length]},a.getAreaStyle()),silent:!0}))}}};function _E(){var t=null!==fE&&fE.apply(this,arguments)||this;return t.type=_E.type,t.axisPointerClass="PolarAxisPointer",t}function bE(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function wE(t,e){return e.dim+t.model.componentIndex}function SE(t,e,n){var i,l,c,k={},L=(i=pt(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}),l={},et(i,function(t,e){var n=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),i=wE(i,o),r=o.getExtent(),o="category"===o.type?o.getBandWidth():Math.abs(r[1]-r[0])/n.count(),r=l[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},n=r.stacks,i=(l[i]=r,bE(t)),a=(n[i]||r.autoWidthCount++,n[i]=n[i]||{width:0,maxWidth:0},j(t.get("barWidth"),o)),o=j(t.get("barMaxWidth"),o),s=t.get("barGap"),t=t.get("barCategoryGap");a&&!n[i].width&&(a=Math.min(r.remainedWidth,a),n[i].width=a,r.remainedWidth-=a),o&&(n[i].maxWidth=o),null!=s&&(r.gap=s),null!=t&&(r.categoryGap=t)}),c={},et(l,function(t,n){c[n]={};var e=t.stacks,i=t.bandWidth,i=j(t.categoryGap,i),o=j(t.gap,1),r=t.remainedWidth,a=t.autoWidthCount,s=(r-i)/(a+(a-1)*o),s=Math.max(s,0);et(e,function(t,e){var n=t.maxWidth;n&&n<s&&(n=Math.min(n,r),t.width&&(n=Math.min(n,t.width)),r-=n,t.width=n,a--)}),s=(r-i)/(a+(a-1)*o),s=Math.max(s,0);var l,u=0,h=(et(e,function(t,e){t.width||(t.width=s),u+=(l=t).width*(1+o)}),l&&(u-=l.width*o),-u/2);et(e,function(t,e){c[n][e]=c[n][e]||{offset:h,width:t.width},h+=t.width*(1+o)})}),c);e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=wE(n,i),r=bE(t),o=L[o][r],a=o.offset,s=o.width,l=n.getOtherAxis(i),u=t.coordinateSystem.cx,h=t.coordinateSystem.cy,c=t.get("barMinHeight")||0,p=t.get("barMinAngle")||0;k[r]=k[r]||[];for(var d=e.mapDimension(l.dim),g=e.mapDimension(i.dim),f=P1(e,d),y="radius"!==i.dim||!t.get("roundCap",!0),m=l.dataToCoord(0),v=0,x=e.count();v<x;v++){var _,b,w=e.get(d,v),S=e.get(g,v),M=0<=w?"p":"n",I=m,T=(f&&(k[r][S]||(k[r][S]={p:m,n:m}),I=k[r][S][M]),void 0),C=void 0,D=void 0,A=void 0;"radius"===l.dim?(b=l.dataToCoord(w)-m,_=i.dataToCoord(S),C=(T=I)+(b=Math.abs(b)<c?(b<0?-1:1)*c:b),A=(D=_-a)-s,f&&(k[r][S][M]=C)):(b=l.dataToCoord(w,y)-m,C=(T=i.dataToCoord(S)+a)+s,A=(D=I)+(b=Math.abs(b)<p?(b<0?-1:1)*p:b),f&&(k[r][S][M]=A)),e.setItemLayout(v,{cx:u,cy:h,r0:T,r:C,startAngle:-D*Math.PI/180,endAngle:-A*Math.PI/180,clockwise:A<=D})}}})}var ME,IE={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},TE={splitNumber:5},CE=(u(DE,ME=Uy),DE.type="polar",DE);function DE(){var t=null!==ME&&ME.apply(this,arguments)||this;return t.type=DE.type,t}function AE(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,o={},r=i.position,i=i.orient,n=n.getRect(),n=[n.x,n.x+n.width,n.y,n.y+n.height],a={horizontal:{top:n[2],bottom:n[3]},vertical:{left:n[0],right:n[1]}},a=(o.position=["vertical"===i?a.vertical[r]:n[0],"horizontal"===i?a.horizontal[r]:n[3]],o.rotation=Math.PI/2*{horizontal:0,vertical:1}[i],o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,right:1,left:-1}[r],t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),wt(e.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection),e.rotate);return null==a&&(a=t.get(["axisLabel","rotate"])),o.labelRotation="top"===r?-a:a,o.z2=1,o}r(function(t){r(N5),TM.registerAxisPointerClass("PolarAxisPointer",a5),t.registerCoordinateSystem("polar",aE),t.registerComponentModel(z5),t.registerComponentView(CE),YS(t,"angle",W5,IE),YS(t,"radius",X5,TE),t.registerComponentView(pE),t.registerComponentView(vE),t.registerLayout(P(SE,"bar"))}),r(cA);var kE,LE=["axisLine","axisTickLabel","axisName"],PE=["splitArea","splitLine"],OE=(u(NE,kE=TM),NE.prototype.render=function(e,t,n,i){var o=this.group,r=(o.removeAll(),this._axisGroup),a=(this._axisGroup=new Z,AE(e)),a=new pM(e,a);et(LE,a.add,a),o.add(this._axisGroup),o.add(a.getGroup()),et(PE,function(t){e.get([t,"show"])&&RE[t](this,this.group,this._axisGroup,e)},this),Gc(r,this._axisGroup,e),kE.prototype.render.call(this,e,t,n,i)},NE.prototype.remove=function(){kM(this)},NE.type="singleAxis",NE),RE={splitLine:function(t,e,n,i){var o=i.axis;if(!o.scale.isBlank()){for(var r=i.getModel("splitLine"),a=r.getModel("lineStyle"),s=(s=a.get("color"))instanceof Array?s:[s],l=a.get("width"),u=i.coordinateSystem.getRect(),h=o.isHorizontal(),c=[],p=0,d=o.getTicksCoords({tickModel:r}),g=[],f=[],y=0;y<d.length;++y){var m=o.toGlobalCoord(d[y].coord),m=(h?(g[0]=m,g[1]=u.y,f[0]=m,f[1]=u.y+u.height):(g[0]=u.x,g[1]=m,f[0]=u.x+u.width,f[1]=m),new Eh({shape:{x1:g[0],y1:g[1],x2:f[0],y2:f[1]},silent:!0})),v=(Nc(m.shape,l),p++%s.length);c[v]=c[v]||[],c[v].push(m)}for(var x=a.getLineStyle(["color"]),y=0;y<c.length;++y)e.add(Oc(c[y],{style:V({stroke:s[y%s.length]},x),silent:!0}))}},splitArea:function(t,e,n,i){AM(t,n,i,i)}};function NE(){var t=null!==kE&&kE.apply(this,arguments)||this;return t.type=NE.type,t.axisPointerClass="SingleAxisPointer",t}u(VE,EE=g),VE.prototype.getCoordSysModel=function(){return this},VE.type="singleAxis",VE.layoutMode="box",VE.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};var EE,zE=VE;function VE(){var t=null!==EE&&EE.apply(this,arguments)||this;return t.type=VE.type,t}ut(zE,Zx.prototype);u(GE,BE=bp),GE.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},GE.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]};var BE,FE=GE;function GE(t,e,n,i,o){t=BE.call(this,t,e,n)||this;return t.type=i||"value",t.position=o||"bottom",t}var WE=["single"],HE=(YE.prototype._init=function(t,e,n){var i=this.dimension,i=new FE(i,Fx(t),[0,0],t.get("type"),t.get("position")),o="category"===i.type;i.onBand=o&&t.get("boundaryGap"),i.inverse=t.get("inverse"),i.orient=t.get("orient"),(t.axis=i).model=t,(i.coordinateSystem=this)._axis=i},YE.prototype.update=function(t,e){t.eachSeries(function(t){var e;t.coordinateSystem===this&&(et((e=t.getData()).mapDimensionsAll(this.dimension),function(t){this._axis.scale.unionExtentFromData(e,t)},this),Bx(this._axis.scale,this._axis.model))},this)},YE.prototype.resize=function(t,e){this._rect=Cd({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},YE.prototype.getRect=function(){return this._rect},YE.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],o=e.inverse?1:0;e.setExtent(i[o],i[1-o]),this._updateAxisTransform(e,n?t.x:t.y)},YE.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),i=n[0]+n[1],n=t.isHorizontal();t.toGlobalCoord=n?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=n?function(t){return t-e}:function(t){return i-t+e}},YE.prototype.getAxis=function(){return this._axis},YE.prototype.getBaseAxis=function(){return this._axis},YE.prototype.getAxes=function(){return[this._axis]},YE.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},YE.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},YE.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},YE.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],o="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[o]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-o]=0==o?n.y+n.height/2:n.x+n.width/2,i},YE.prototype.convertToPixel=function(t,e,n){return XE(e)===this?this.dataToPoint(n):null},YE.prototype.convertFromPixel=function(t,e,n){return XE(e)===this?this.pointToData(n):null},YE);function YE(t,e,n){this.type="single",this.dimension="single",this.dimensions=WE,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}function XE(t){var e=t.seriesModel,t=t.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var UE,ZE={create:function(i,o){var r=[];return i.eachComponent("singleAxis",function(t,e){var n=new HE(t,i,o);n.name="single_"+e,n.resize(t,o),t.coordinateSystem=n,r.push(n)}),i.eachSeries(function(t){var e;"singleAxis"===t.get("coordinateSystem")&&(e=t.getReferringComponents("singleAxis",sa).models[0],t.coordinateSystem=e&&e.coordinateSystem)}),r},dimensions:WE},jE=["x","y"],qE=["width","height"],KE=(u(JE,UE=Jm),JE.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.coordinateSystem,l=tz(s,1-QE(a)),s=s.dataToPoint(e)[0],u=i.get("type"),a=(u&&"none"!==u&&(r=$N(i),(u=$E[u](a,s,l)).style=r,t.graphicKey=u.type,t.pointer=u),AE(n));e5(e,t,a,n,i,o)},JE.prototype.getHandleTransform=function(t,e,n){var i=AE(e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),t5(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},JE.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.coordinateSystem,n=QE(n),r=tz(o,n),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]),tz(o,1-n)),r=(e[1]+e[0])/2,o=[r,r];return o[n]=a[n],{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:{verticalAlign:"middle"}}},JE),$E={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:n5([e,n[0]],[e,n[1]],QE(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:i5([e-i/2,n[0]],[i,o],QE(t))}}};function JE(){return null!==UE&&UE.apply(this,arguments)||this}function QE(t){return t.isHorizontal()?0:1}function tz(t,e){t=t.getRect();return[t[jE[e]],t[jE[e]]+t[qE[e]]]}u(iz,ez=Uy),iz.type="single";var ez,nz=iz;function iz(){var t=null!==ez&&ez.apply(this,arguments)||this;return t.type=iz.type,t}r(function(t){r(N5),TM.registerAxisPointerClass("SingleAxisPointer",KE),t.registerComponentView(nz),t.registerComponentView(OE),t.registerComponentModel(zE),YS(t,"single",zE,zE.defaultOption),t.registerCoordinateSystem("single",ZE)});u(az,oz=g),az.prototype.init=function(t,e,n){var i=Ld(t);oz.prototype.init.apply(this,arguments),sz(t,i)},az.prototype.mergeOption=function(t){oz.prototype.mergeOption.apply(this,arguments),sz(this.option,t)},az.prototype.getCellSize=function(){return this.option.cellSize},az.type="calendar",az.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}};var oz,rz=az;function az(){var t=null!==oz&&oz.apply(this,arguments)||this;return t.type=az.type,t}function sz(t,i){var o,e=t.cellSize,e=(1===(o=W(e)?e:t.cellSize=[e,e]).length&&(o[1]=o[0]),B([0,1],function(t){return(null!=(e=i)[Md[n=t][0]]||null!=e[Md[n][1]]&&null!=e[Md[n][2]])&&(o[t]="auto"),null!=o[t]&&"auto"!==o[t];var e,n}));kd(t,i,{type:"box",ignoreSize:e})}u(hz,lz=Uy),hz.prototype.render=function(t,e,n){var i=this.group,o=(i.removeAll(),t.coordinateSystem),r=o.getRangeInfo(),o=o.getOrient(),e=e.getLocaleModel();this._renderDayRect(t,r,i),this._renderLines(t,r,o,i),this._renderYearText(t,r,o,i),this._renderMonthText(t,e,o,i),this._renderWeekText(t,e,r,o,i)},hz.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),r=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,l=new L({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:o});n.add(l)}},hz.prototype._renderLines=function(e,t,n,i){var o=this,r=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,h=0;u.time<=t.end.time;h++){p(u.formatedDate);var c=(u=0===h?r.getDateInfo(t.start.y+"-"+t.start.m):u).date;c.setMonth(c.getMonth()+1),u=r.getDateInfo(c)}function p(t){o._firstDayOfMonth.push(r.getDateInfo(t)),o._firstDayPoints.push(r.dataToRect([t],!1).tl);t=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(t[0]),o._blpoints.push(t[t.length-1]),s&&o._drawSplitline(t,a,i)}p(r.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),a,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),a,i)},hz.prototype._getEdgesPoints=function(t,e,n){t=[t[0].slice(),t[t.length-1].slice()],n="horizontal"===n?0:1;return t[0][n]=t[0][n]-e/2,t[1][n]=t[1][n]+e/2,t},hz.prototype._drawSplitline=function(t,e,n){t=new Lh({z2:20,shape:{points:t},style:e});n.add(t)},hz.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,o=i.getDateInfo(e),r=[],a=0;a<7;a++){var s=i.getNextNDay(o.time,a),l=i.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return r},hz.prototype._formatterLabel=function(t,e){return Y(t)&&t?(n=t,et(e,function(t,e){n=n.replace("{"+e+"}",i?we(t):t)}),n):D(t)?t(e):e.nameMap;var n,i},hz.prototype._yearTextPositionControl=function(t,e,n,i,o){var r=e[0],e=e[1],a=["center","bottom"],o=("bottom"===i?(e+=o,a=["center","top"]):"left"===i?r-=o:"right"===i?(r+=o,a=["center","top"]):e-=o,0);return{rotation:o="left"!==i&&"right"!==i?o:Math.PI/2,x:r,y:e,style:{align:a[0],verticalAlign:a[1]}}},hz.prototype._renderYearText=function(t,e,n,i){var o,r,a,s,l,u,t=t.getModel("yearLabel");t.get("show")&&(o=t.get("margin"),r=(r=t.get("position"))||("horizontal"!==n?"top":"left"),a=((u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]])[0][0]+u[1][0])/2,l=(u[0][1]+u[1][1])/2,a={top:[a,u[s="horizontal"===n?0:1][1]],bottom:[a,u[1-s][1]],left:[u[1-s][0],l],right:[u[s][0],l]},u=e.start.y,+e.end.y>+e.start.y&&(u=u+"-"+e.end.y),s=t.get("formatter"),l={start:e.start.y,end:e.end.y,nameMap:u},e=this._formatterLabel(s,l),(u=new K({z2:30,style:np(t,{text:e})})).attr(this._yearTextPositionControl(u,a[r],n,r,o)),i.add(u))},hz.prototype._monthTextPositionControl=function(t,e,n,i,o){var r="left",a="top",s=t[0],t=t[1];return"horizontal"===n?(t+=o,e&&(r="center"),"start"===i&&(a="bottom")):(s+=o,e&&(a="middle"),"start"===i&&(r="right")),{x:s,y:t,align:r,verticalAlign:a}},hz.prototype._renderMonthText=function(t,e,n,i){var o=t.getModel("monthLabel");if(o.get("show"))for(var r=o.get("nameMap"),a=o.get("margin"),s=o.get("position"),t=o.get("align"),l=[this._tlpoints,this._blpoints],u=(r&&!Y(r)||(r=(e=r?Vp(r)||e:e).get(["time","monthAbbr"])||[]),"start"===s?0:1),h="horizontal"===n?0:1,a="start"===s?-a:a,c="center"===t,p=0;p<l[u].length-1;p++){var d=l[u][p].slice(),g=this._firstDayOfMonth[p],f=(c&&(f=this._firstDayPoints[p],d[h]=(f[h]+l[0][p+1][h])/2),o.get("formatter")),y=r[+g.m-1],g={yyyy:g.y,yy:(g.y+"").slice(2),MM:g.m,M:+g.m,nameMap:y},y=this._formatterLabel(f,g),g=new K({z2:30,style:H(np(o,{text:y}),this._monthTextPositionControl(d,c,n,s,a))});i.add(g)}},hz.prototype._weekTextPositionControl=function(t,e,n,i,o){var r="center",a="middle",s=t[0],t=t[1],n="start"===n;return"horizontal"===e?(s=s+i+(n?1:-1)*o[0]/2,r=n?"right":"left"):(t=t+i+(n?1:-1)*o[1]/2,a=n?"bottom":"top"),{x:s,y:t,align:r,verticalAlign:a}},hz.prototype._renderWeekText=function(t,e,n,i,o){var r=t.getModel("dayLabel");if(r.get("show")){var a=t.coordinateSystem,s=r.get("position"),l=r.get("nameMap"),u=r.get("margin"),h=a.getFirstDayOfWeek(),c=(l&&!Y(l)||(l=(e=l?Vp(l)||e:e).get(["time","dayOfWeekShort"])||B(e.get(["time","dayOfWeekAbbr"]),function(t){return t[0]})),a.getNextNDay(n.end.time,7-n.lweek).time),p=[a.getCellWidth(),a.getCellHeight()],u=j(u,Math.min(p[1],p[0]));"start"===s&&(c=a.getNextNDay(n.start.time,-(7+n.fweek)).time,u=-u);for(var d=0;d<7;d++){var g=a.getNextNDay(c,d),g=a.dataToRect([g.time],!1).center,f=Math.abs((d+h)%7),f=new K({z2:30,style:H(np(r,{text:l[f]}),this._weekTextPositionControl(g,i,s,u,p))});o.add(f)}}},hz.type="calendar";var lz,uz=hz;function hz(){var t=null!==lz&&lz.apply(this,arguments)||this;return t.type=hz.type,t}pz.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},pz.prototype.getRangeInfo=function(){return this._rangeInfo},pz.prototype.getModel=function(){return this._model},pz.prototype.getRect=function(){return this._rect},pz.prototype.getCellWidth=function(){return this._sw},pz.prototype.getCellHeight=function(){return this._sh},pz.prototype.getOrient=function(){return this._orient},pz.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},pz.prototype.getDateInfo=function(t){var e=(t=Pr(t)).getFullYear(),n=t.getMonth()+1,n=n<10?"0"+n:""+n,i=t.getDate(),i=i<10?"0"+i:""+i,o=t.getDay();return{y:e+"",m:n,d:i,day:Math.abs((o+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+n+"-"+i,date:t}},pz.prototype.getNextNDay=function(t,e){return 0!==(e=e||0)&&(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},pz.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],o=this._model.getCellSize().slice(),r=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n],n=(et([0,1],function(t){l(o,t)&&(r[i[t]]=o[t]*a[t])}),{width:e.getWidth(),height:e.getHeight()}),s=this._rect=Cd(r,n);function l(t,e){return null!=t[e]&&"auto"!==t[e]}et([0,1],function(t){l(o,t)||(o[t]=s[i[t]]/a[t])}),this._sw=o[0],this._sh=o[1]},pz.prototype.dataToPoint=function(t,e){W(t)&&(t=t[0]),null==e&&(e=!0);var t=this.getDateInfo(t),n=this._rangeInfo,i=t.formatedDate;return!e||t.time>=n.start.time&&t.time<n.end.time+864e5?(e=t.day,t=this._getRangeInfo([n.start.time,i]).nthWeek,"vertical"===this._orient?[this._rect.x+e*this._sw+this._sw/2,this._rect.y+t*this._sh+this._sh/2]:[this._rect.x+t*this._sw+this._sw/2,this._rect.y+e*this._sh+this._sh/2]):[NaN,NaN]},pz.prototype.pointToData=function(t){t=this.pointToDate(t);return t&&t.time},pz.prototype.dataToRect=function(t,e){t=this.dataToPoint(t,e);return{contentShape:{x:t[0]-(this._sw-this._lineWidth)/2,y:t[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:t,tl:[t[0]-this._sw/2,t[1]-this._sh/2],tr:[t[0]+this._sw/2,t[1]-this._sh/2],br:[t[0]+this._sw/2,t[1]+this._sh/2],bl:[t[0]-this._sw/2,t[1]+this._sh/2]}},pz.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,t=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(t,e-1,n):this._getDateByWeeksAndDay(e,t-1,n)},pz.prototype.convertToPixel=function(t,e,n){e=dz(e);return e===this?e.dataToPoint(n):null},pz.prototype.convertFromPixel=function(t,e,n){e=dz(e);return e===this?e.pointToData(n):null},pz.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},pz.prototype._initRangeOption=function(){var t,e,n,i,o=this._model.get("range");return W(o)&&1===o.length&&(o=o[0]),W(o)?n=o:(t=o.toString(),/^\d{4}$/.test(t)&&(n=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)&&((e=(i=this.getDateInfo(t)).date).setMonth(e.getMonth()+1),e=this.getNextNDay(e,-1),n=[i.formatedDate,e.formatedDate]),/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(n=[t,t])),n?((i=this._getRangeInfo(n)).start.time>i.end.time&&n.reverse(),n):o},pz.prototype._getRangeInfo=function(t){var e,n,i=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],o=(i[0].time>i[1].time&&(e=!0,i.reverse()),Math.floor(i[1].time/864e5)-Math.floor(i[0].time/864e5)+1),r=new Date(i[0].time),t=r.getDate(),a=i[1].date.getDate();if(r.setDate(t+o-1),r.getDate()!==a)for(var s=0<r.getTime()-i[1].time?1:-1;(n=r.getDate())!==a&&0<(r.getTime()-i[1].time)*s;)o-=s,r.setDate(n-s);var t=Math.floor((o+i[0].day+6)/7),l=e?1-t:t-1;return e&&i.reverse(),{range:[i[0].formatedDate,i[1].formatedDate],start:i[0],end:i[1],allDay:o,weeks:t,nthWeek:l,fweek:i[0].day,lweek:i[1].day}},pz.prototype._getDateByWeeksAndDay=function(t,e,n){n=this._getRangeInfo(n);return t>n.weeks||0===t&&e<n.fweek||t===n.weeks&&e>n.lweek?null:(t=7*(t-1)-n.fweek+e,(e=new Date(n.start.time)).setDate(+n.start.d+t),this.getDateInfo(e))},pz.create=function(t,e){var n=[];return t.eachComponent("calendar",function(t){var e=new pz(t);n.push(e),t.coordinateSystem=e}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},pz.dimensions=["time","value"];var cz=pz;function pz(t,e,n){this.type="calendar",this.dimensions=pz.dimensions,this.getDimensionsInfo=pz.getDimensionsInfo,this._model=t}function dz(t){var e=t.calendarModel,t=t.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem:null}r(function(t){t.registerComponentModel(rz),t.registerComponentView(uz),t.registerCoordinateSystem("calendar",cz)});u(xz,fz=g),xz.type="title",xz.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 gz,fz,yz=xz,mz=(u(vz,gz=Uy),vz.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=R(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new K({style:np(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),o=new K({style:np(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(){bd(r,"_"+t.get("target"))}),a&&o.on("click",function(){bd(a,"_"+t.get("subtarget"))}),$(u).eventData=$(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=Cd(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 L({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))},vz.type="title",vz);function vz(){var t=null!==gz&&gz.apply(this,arguments)||this;return t.type=vz.type,t}function xz(){var t=null!==fz&&fz.apply(this,arguments)||this;return t.type=xz.type,t.layoutMode={type:"box",ignoreSize:!0},t}r(function(t){t.registerComponentModel(yz),t.registerComponentView(mz)});u(wz,_z=g),wz.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},wz.prototype.mergeOption=function(t,e){_z.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},wz.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;W(n=!0===n?t.selector=["all","inverse"]:n)&&et(n,function(t,e){Y(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))})},wz.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"))}},wz.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&&ta(t)&&o.push(t.name)}),this._availableNames=r,this.get("data")||o),e=N(),t=B(t,function(t){return(Y(t)||X(t))&&(t={name:t}),e.get(t.name)?null:(e.set(t.name,!0),new Tp(t,this,this.ecModel))},this);this._data=pt(t,function(t){return!!t})},wz.prototype.getData=function(){return this._data},wz.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&et(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},wz.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},wz.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},wz.prototype.allSelect=function(){var t=this._data,e=this.option.selected;et(t,function(t){e[t.get("name",!0)]=!0})},wz.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;et(t,function(t){t=t.get("name",!0);e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},wz.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=F(this._availableNames,t)},wz.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},wz.type="legend.plain",wz.dependencies=["series"],wz.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 _z,bz=wz;function wz(){var t=null!==_z&&_z.apply(this,arguments)||this;return t.type=wz.type,t.layoutMode={type:"box",ignoreSize:!0},t}function Sz(t,e){var n=gd(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new L({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var Mz,Iz=P,Tz=et,Cz=Z,Dz=(u(Az,Mz=Uy),Az.prototype.init=function(){this.group.add(this._contentGroup=new Cz),this.group.add(this._selectorGroup=new Cz),this._isFirstRender=!0},Az.prototype.getContentGroup=function(){return this._contentGroup},Az.prototype.getSelectorGroup=function(){return this._selectorGroup},Az.prototype.render=function(t,e,n){var i,o,r,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(a=t.get("align"),r=t.get("orient"),a&&"auto"!==a||(a="right"===t.get("left")&&"vertical"===r?"right":"left"),i=t.get("selector",!0),o=t.get("selectorPosition",!0),this.renderInner(a,t,e,n,i,r,o=!i||o&&"auto"!==o?o:"horizontal"===r?"end":"start"),s=Cd(e=t.getBoxLayoutParams(),r={width:n.getWidth(),height:n.getHeight()},n=t.get("padding")),s=Cd(V({width:(a=this.layoutInner(t,a,s,l,i,o)).width,height:a.height},e),r,n),this.group.x=s.x-a.x,this.group.y=s.y-a.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Sz(a,t)))},Az.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},Az.prototype.renderInner=function(s,l,u,h,t,e,n){var c=this.getContentGroup(),p=N(),d=l.get("selectedMode"),g=[];u.eachRawSeries(function(t){t.get("legendHoverLink")||g.push(t.id)}),Tz(l.getData(),function(o,r){var t,e,n,i,a=o.get("name");this.newlineDisabled||""!==a&&"\n"!==a?(t=u.getSeriesByName(a)[0],p.get(a)||(t?(e=(i=t.getData()).getVisual("legendLineStyle")||{},n=i.getVisual("legendIcon"),i=i.getVisual("style"),this._createItem(t,a,r,o,l,s,e,i,n,d,h).on("click",Iz(kz,a,null,h,g)).on("mouseover",Iz(Pz,t.name,null,h,g)).on("mouseout",Iz(Oz,t.name,null,h,g)),p.set(a,!0)):u.eachRawSeries(function(t){var e,n,i;!p.get(a)&&t.legendVisualProvider&&(n=t.legendVisualProvider).containName(a)&&(i=n.indexOfName(a),e=n.getItemVisual(i,"style"),n=n.getItemVisual(i,"legendIcon"),(i=wi(e.fill))&&0===i[3]&&(i[3]=.2,e=H(H({},e),{fill:Ai(i,"rgba")})),this._createItem(t,a,r,o,l,s,{},e,n,d,h).on("click",Iz(kz,null,a,h,g)).on("mouseover",Iz(Pz,null,a,h,g)).on("mouseout",Iz(Oz,null,a,h,g)),p.set(a,!0))},this))):((e=new Cz).newline=!0,c.add(e))},this),t&&this._createSelector(t,l,h,e,n)},Az.prototype._createSelector=function(t,i,o,e,n){var r=this.getSelectorGroup();Tz(t,function(t){var e=t.type,n=new K({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:"all"===e?"legendAllSelect":"legendInverseSelect"})}});r.add(n),tp(n,{normal:i.getModel("selectorLabel"),emphasis:i.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),xu(n)})},Az.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"),g=o.isSelected(e),f=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),Tz(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"),l=(u.decal=l&&"inherit"!==l?R0(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),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,g,h),s=new Cz,c=i.getModel("textStyle"),m=(!D(t.getLegendIcon)||m&&"inherit"!==m?(h="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===f?t.getData().getVisual("symbolRotate"):f:0,s.add((m={itemWidth:p,itemHeight:d,icon:l,iconRotate:h,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y},h=m.icon||"roundRect",(v=i0(h,0,0,m.itemWidth,m.itemHeight,m.itemStyle.fill,m.symbolKeepAspect)).setStyle(m.itemStyle),v.rotation=(m.iconRotate||0)*Math.PI/180,v.setOrigin([m.itemWidth/2,m.itemHeight/2]),-1<h.indexOf("empty")&&(v.style.stroke=v.style.fill,v.style.fill="#fff",v.style.lineWidth=2),v))):s.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:f,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y})),"left"===r?p+5:-5),h=r,v=o.get("formatter"),t=e,l=(Y(v)&&v?t=v.replace("{name}",null!=e?e:""):D(v)&&(t=v(e)),g?c.getTextColor():i.get("inactiveColor")),f=(s.add(new K({style:np(c,{text:t,x:m,y:d/2,fill:l,align:h,verticalAlign:"middle"},{inheritColor:l})})),new L({shape:s.getBoundingRect(),invisible:!0})),a=i.getModel("tooltip");return a.get("show")&&Zc({el:f,componentModel:o,itemName:e,itemTooltipOption:a.option}),s.add(f),s.eachChild(function(t){t.silent=!0}),f.silent=!u,this.getContentGroup().add(s),xu(s),s.__legendDataIndex=n,s},Az.prototype.layoutInner=function(t,e,n,i,o,r){var a,s,l,u,h,c=this.getContentGroup(),p=this.getSelectorGroup(),n=(Td(t.get("orient"),c,t.get("itemGap"),n.width,n.height),c.getBoundingRect()),d=[-n.x,-n.y];return p.markRedraw(),c.markRedraw(),o?(Td("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())},Az.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},Az.type="legend.plain",Az);function Az(){var t=null!==Mz&&Mz.apply(this,arguments)||this;return t.type=Az.type,t.newlineDisabled=!1,t}function kz(t,e,n,i){Oz(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Pz(t,e,n,i)}function Lz(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 Pz(t,e,n,i){Lz(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function Oz(t,e,n,i){Lz(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function Rz(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 Nz(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)),et(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 Ez(t){t.registerComponentModel(bz),t.registerComponentView(Dz),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,Rz),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",P(Nz,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",P(Nz,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",P(Nz,"inverseSelect")),t.registerAction("legendSelect","legendselected",P(Nz,"select")),t.registerAction("legendUnSelect","legendunselected",P(Nz,"unSelect"))}u(Bz,zz=bz),Bz.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},Bz.prototype.init=function(t,e,n){var i=Ld(t);zz.prototype.init.call(this,t,e,n),Fz(this,t,i)},Bz.prototype.mergeOption=function(t,e){zz.prototype.mergeOption.call(this,t,e),Fz(this,this.option,t)},Bz.type="legend.scroll",Bz.defaultOption=kp(bz.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 zz,Vz=Bz;function Bz(){var t=null!==zz&&zz.apply(this,arguments)||this;return t.type=Bz.type,t}function Fz(t,e,n){var i=[1,1];i[t.getOrient().index]=0,kd(e,n,{type:"box",ignoreSize:!!i})}var Gz,Wz=Z,Hz=["width","height"],Yz=["x","y"],Xz=(u(Uz,Gz=Dz),Uz.prototype.init=function(){Gz.prototype.init.call(this),this.group.add(this._containerGroup=new Wz),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Wz)},Uz.prototype.resetInner=function(){Gz.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},Uz.prototype.renderInner=function(t,i,e,o,n,r,a){var s=this,l=(Gz.prototype.renderInner.call(this,t,i,e,o,n,r,a),this._controllerGroup),t=i.get("pageIconSize",!0),u=W(t)?t:[t,t],e=(h("pagePrev",0),i.getModel("pageTextStyle"));function h(t,e){var n=t+"DataIndex",e=Yc(i.get("pageIcons",!0)[i.getOrient().name][e],{onclick:T(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 K({name:"pageText",style:{text:"xx/xx",fill:e.getTextColor(),font:e.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},Uz.prototype.layoutInner=function(t,e,n,i,o,r){var a=this.getSelectorGroup(),s=t.getOrient().index,l=Hz[s],u=Yz[s],h=Hz[1-s],c=Yz[1-s],p=(o&&Td("horizontal",a,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),d=a.getBoundingRect(),g=[-d.x,-d.y],f=S(n),n=(o&&(f[l]=n[l]-d[l]-p),this._layoutContentAndController(t,i,f,s,l,h,c,u));return o&&("end"===r?g[s]+=n[l]+p:(t=d[l]+p,g[s]-=t,n[u]-=t),n[l]+=d[l]+p,g[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]+g[1-s]),a.x=g[0],a.y=g[1],a.markRedraw()),n},Uz.prototype._layoutContentAndController=function(t,e,n,i,o,r,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup,c=(Td(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),Td("horizontal",h,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=h.getBoundingRect(),d=this._showController=c[o]>n[o],g=[-c.x,-c.y],e=(e||(g[i]=l[s]),[0,0]),s=[-p.x,-p.y],f=R(t.get("pageButtonGap",!0),t.get("itemGap",!0)),g=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[o]-p[o]:e[i]+=p[o]+f),s[1-i]+=c[r]/2-p[r]/2,l.setPosition(g),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(g[o]=(d?n:c)[o],g[r]=Math.max(c[r],p[r]),g[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]-f,0),e[r]=g[r],u.setClipPath(new L({shape:e})),u.__rectSize=e[o]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&C(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),g},Uz.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},Uz.prototype._updatePageInfoView=function(n,i){var o=this._controllerGroup,t=(et(["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",Y(e)?e.replace("{current}",null==r?"":r+"").replace("{total}",null==a?"":a+""):e({current:r,total:a}))},Uz.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,t=t.getOrient().index,o=Hz[t],r=Yz[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=f(s);h.contentPosition[t]=-n.s;for(var c=e+1,p=n,d=n,g=null;c<=l;++c)(!(g=f(a[c]))&&d.e>p.s+i||g&&!y(g,p.s))&&(p=d.i>p.i?d:g)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=p.i),++h.pageCount),d=g;for(c=e-1,d=p=n,g=null;-1<=c;--c)(g=f(a[c]))&&y(d,g.s)||!(p.i<d.i)||(d=p,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=p.i),++h.pageCount,++h.pageIndex),p=g}return h;function f(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}},Uz.prototype._findTargetItemIndex=function(n){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;var i,o},Uz.type="legend.scroll",Uz);function Uz(){var t=null!==Gz&&Gz.apply(this,arguments)||this;return t.type=Uz.type,t.newlineDisabled=!0,t._currentIndex=0,t}r(function(t){r(Ez),t.registerComponentModel(Vz),t.registerComponentView(Xz),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)})})});u(qz,Zz=g),qz.type="tooltip",qz.dependencies=["axisPointer"],qz.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 Zz,jz=qz;function qz(){var t=null!==Zz&&Zz.apply(this,arguments)||this;return t.type=qz.type,t}function Kz(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function $z(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 Jz=$z(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function Qz(t,e){if(!t)return e;e=dd(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var tV=Qz($z(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),eV=Qz(Jz,"transform"),nV="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(w.transform3dSupported?"will-change:transform;":"");function iV(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;"+eV+":"+i+";":[["top",0],["left",0],[Jz,i]]):n?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function oV(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=ky(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?","+eV+l:",left"+l+",top"+l),tV+":"+u)),s&&r.push("background-color:"+s),et(["width","color","radius"],function(t){var e="border-"+t,n=dd(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),et(["decoration","align"],function(t){var e=n.get(t);e&&o.push("text-"+t+":"+e)}),o.join(";"))),null!=d&&r.push("padding:"+gd(d).join("px ")+"px"),r.join(";")+";"}function rV(t,e,n,i,o){var r,a,s=e&&e.painter;n?(n=s&&s.getViewportRoot())&&(r=t,a=document.body,ve(me,n,i,o,!0))&&ve(r,a,me[0],me[1]):(t[0]=i,t[1]=o,(n=s&&s.getViewportRootOffset())&&(t[0]+=n.offsetLeft,t[1]+=n.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}sV.prototype.update=function(t){var e=this._container,n=(n="position",(i=(i=e).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?n?i[n]:i:null),i=e.style,e=("absolute"!==i.position&&"absolute"!==n&&(i.position="relative"),t.get("alwaysShowContent"));e&&this._moveIfResized(),this._alwaysShowContent=e,this.el.className=t.get("className")||""},sV.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=nV+oV(t,!this._firstShow,this._longHide)+iV(o[0],o[1],!0)+"border-color:"+_d(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},sV.prototype.setContent=function(t,e,n,i,o){var r,a,s,l,u,h=this.el;if(null!=t){var c="";if(Y(o)&&"item"===n.get("trigger")&&!Kz(n)&&(n=n,i=i,c=Y(o=o)&&"inside"!==o?(r=n.get("backgroundColor"),n=n.get("borderWidth"),i=_d(i),o="left"===(o=o)?"right":"right"===o?"left":"top"===o?"bottom":"top",p=Math.max(1.5*Math.round(n),6),a="",s=eV+":",-1<F(["left","right"],o)?(a+="top:50%",s+="translateY(-50%) rotate("+(u="left"==o?-225:-45)+"deg)"):(a+="left:50%",s+="translateX(-50%) rotate("+(u="top"==o?225:45)+"deg)"),u=u*Math.PI/180,u=(l=p+n)*Math.abs(Math.cos(u))+l*Math.abs(Math.sin(u)),i=i+" solid "+n+"px;",'<div style="'+["position:absolute;width:"+p+"px;height:"+p+"px;z-index:-1;",(a+=";"+o+":-"+Math.round(100*((u-Math.SQRT2*n)/2+Math.SQRT2*n-(u-l)/2))/100+"px")+";"+s+";","border-bottom:"+i,"border-right:"+i,"background-color:"+r+";"].join("")+'"></div>'):""),Y(t))h.innerHTML=t+c;else if(t){h.innerHTML="",W(t)||(t=[t]);for(var p,d=0;d<t.length;d++)mt(t[d])&&t[d].parentNode!==h&&h.appendChild(t[d]);c&&h.childNodes.length&&((p=document.createElement("div")).innerHTML=c,h.appendChild(p))}}else h.innerHTML=""},sV.prototype.setEnterable=function(t){this._enterable=t},sV.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},sV.prototype.moveTo=function(t,e){var n,i=this._styleCoord;rV(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]&&(n=this.el.style,et(iV(i[0],i[1]),function(t){n[t[0]]=t[1]}))},sV.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},sV.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)},sV.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(T(this.hide,this),t)):this.hide())},sV.prototype.isShow=function(){return this._show},sV.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)};var aV=sV;function sV(t,e,n){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 i=document.createElement("div"),o=(i.domBelongToZr=!0,this.el=i,this._zr=e.getZr()),n=this._appendToBody=n&&n.appendToBody,r=(rV(this._styleCoord,o,n,e.getWidth()/2,e.getHeight()/2),(n?document.body:t).appendChild(i),this._container=t,this);i.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},i.onmousemove=function(t){var e;t=t||window.event,r._enterable||(e=o.handler,Ae(o.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},i.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._hideDelay)}}uV.prototype.update=function(t){t=t.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},uV.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},uV.prototype.setContent=function(t,e,n,i,o){var r=this,a=(O(t)&&Wr(""),this.el&&this._zr.remove(this.el),n.getModel("textStyle")),s=(this.el=new K({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:ky(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),et(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){r.el.style[t]=n.get(t)}),et(["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})},uV.prototype.setEnterable=function(t){this._enterable=t},uV.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=cV(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},uV.prototype.moveTo=function(t,e){var n,i,o=this.el;o&&(pV(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=hV((i=o.style).borderWidth||0),i=cV(i),o.x=t+n+i.left,o.y=e+n+i.top,o.markRedraw())},uV.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},uV.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},uV.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(T(this.hide,this),t)):this.hide())},uV.prototype.isShow=function(){return this._show},uV.prototype.dispose=function(){this._zr.remove(this.el)};var lV=uV;function uV(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),pV(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function hV(t){return Math.max(0,t)}function cV(t){var e=hV(t.shadowBlur||0),n=hV(t.shadowOffsetX||0),t=hV(t.shadowOffsetY||0);return{left:hV(e-n),right:hV(e+n),top:hV(e-t),bottom:hV(e+t)}}function pV(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var dV,gV=new L({shape:{x:-1,y:-1,width:2,height:2}}),fV=(u(yV,dV=Uy),yV.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 lV(e):new aV(e.getDom(),e,{appendToBody:t.get("appendToBody",!0)}))},yV.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")?lm(this,"_updatePosition",50,"fixRate"):um(this,"_updatePosition"))},yV.prototype._initGlobalListener=function(){var i=this._tooltipModel.get("triggerOn");_5("itemTooltip",this._api,T(function(t,e,n){"none"!==i&&(0<=i.indexOf(t)?this._tryShow(e,n):"leave"===t&&this._hide(n))},this))},yV.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})}))},yV.prototype.manuallyShowTip=function(t,e,n,i){var o,r,a,s;i.from!==this.uid&&!w.node&&n.getDom()&&(o=vV(i,n),this._ticket="",s=i.dataByCoordSys,(r=function(n,t,e){var i=aa(n).queryOptionMap,o=i.keys()[0];if(o&&"series"!==o){var r,t=ua(t,o,i.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(t)return e.getViewOfComponentModel(t).group.traverse(function(t){var e=$(t).tooltipConfig;if(e&&e.name===n.name)return r=t,!0}),r?{componentMainType:o,componentIndex:t.componentIndex,el:r}:void 0}}(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=gV).x=i.x,a.y=i.y,a.update(),$(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=C5(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)))},yV.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(vV(i,n))},yV.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&&"axis"===mV([a.getData().getItemModel(r),a,(a.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:i.position}),!0}},yV.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?(Ym(r,function(t){return null!=$(t).dataIndex?(i=t,1):null!=$(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)))},yV.prototype._showOrMove=function(t,e){t=t.get("showDelay");e=T(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},yV.prototype._showAxisTooltip=function(t,e){var u=this._ecModel,h=this._tooltipModel,n=[e.offsetX,e.offsetY],i=mV([e.tooltipOption],h),c=this._renderMode,p=[],d=by("section",{blocks:[],noHeader:!0}),g=[],f=new Ly,o=(et(t,function(t){et(t.dataByAxis,function(o){var r,a,s=u.getComponent(o.axisDim+"Axis",o.axisIndex),l=o.value;s&&null!=l&&(r=QN(l,s.axis,u,o.seriesDataIndices,o.valueLabelOpt),a=by("section",{header:r,noHeader:!Ct(r),sortBlocks:!0,blocks:[]}),d.blocks.push(a),et(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=Wx(s.axis,{value:l}),i.axisValueLabel=r,i.marker=f.makeTooltipMarker("item",_d(i.color),c),(e=(t=Sf(n.formatTooltip(t,!0,null))).frag)&&(n=mV([n],h).get("valueFormatter"),a.blocks.push(n?H({valueFormatter:n},e):e)),t.text&&g.push(t.text),p.push(i))}))})}),d.blocks.reverse(),g.reverse(),e.position),e=i.get("order"),e=Ty(d,f,c,e,u.get("useUTC"),i.get("textStyle")),e=(e&&g.unshift(e),"richText"===c?"\n\n":"<br/>"),r=g.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,f)})},yV.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s,l=this._ecModel,e=$(e),u=e.seriesIndex,h=l.getSeriesByIndex(u),c=e.dataModel||h,p=e.dataIndex,e=e.dataType,d=c.getData(e),g=this._renderMode,f=t.positionDefault,y=mV([d.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),h=y.get("trigger");null!=h&&"item"!==h||(i=c.getDataParams(p,e),o=new Ly,i.marker=o.makeTooltipMarker("item",_d(i.color),g),f=Sf(c.formatTooltip(p,!1,e)),h=y.get("order"),e=y.get("valueFormatter"),r=f.frag,a=r?Ty(e?H({valueFormatter:e},r):r,o,g,h,l.get("useUTC"),y.get("textStyle")):f.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}))},yV.prototype._showComponentItemTooltip=function(e,n,t){var i=$(n),o=i.tooltipConfig.option||{},r=[o=Y(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=mV(r,this._tooltipModel,i?{position:i}:null),s=a.get("content"),l=Math.random()+"",u=new Ly;this._showOrMove(a,function(){var t=S(a.get("formatterParams")||{});this._showTooltipContent(a,s,t,l,e.offsetX,e.offsetY,e.position,n,u)}),t({type:"showTip",from:this.uid})},yV.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=Y(h)?(p=n.ecModel.get("useUTC"),t=h,vd(t=(d=W(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?Kp(d.axisValue,t,p):t,i,!0)):D(h)?(d=T(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))},yV.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||W(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:W(e)?void 0:{color:i||e.color||e.borderColor}},yV.prototype._updatePosition=function(t,e,n,i,o,r,a){var s,l,u,h,c=this._api.getWidth(),p=this._api.getHeight(),d=(e=e||t.get("position"),o.getSize()),g=t.get("align"),f=t.get("verticalAlign"),y=a&&a.getBoundingRect().clone();a&&y.applyTransform(a.transform),W(e=D(e)?e([n,i],r,o.el,y,{viewSize:[c,p],contentSize:d.slice()}):e)?(n=j(e[0],c),i=j(e[1],p)):O(e)?((r=e).width=d[0],r.height=d[1],n=(r=Cd(r,{width:c,height:p})).x,i=r.y,f=g=null):i=(n=(s=Y(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,y,d,t.get("borderWidth")):(r=n,a=i,e=c,y=p,l=g?null:20,u=f?null:20,h=(h=o).getSize(),s=h[0],h=h[1],null!=l&&(e<r+s+l+2?r-=s+l:r+=l),null!=u&&(y<a+h+u?a-=h+u:a+=u),[r,a]))[0],s[1]),g&&(n-=xV(g)?d[0]/2:"right"===g?d[0]:0),f&&(i-=xV(f)?d[1]/2:"bottom"===f?d[1]:0),Kz(t)&&(e=n,l=i,y=c,h=p,u=(u=o).getSize(),r=u[0],u=u[1],e=Math.min(e+r,y)-r,l=Math.min(l+u,h)-u,n=(s=[e=Math.max(e,0),l=Math.max(l,0)])[0],i=s[1]),o.moveTo(n,i)},yV.prototype._updateContentNotChangedOnAxis=function(n,r){var t=this._lastDataByCoordSys,a=this._cbParamsList,s=!!t&&t.length===n.length;return s&&et(t,function(t,e){var t=t.dataByAxis||[],o=(n[e]||{}).dataByAxis||[];(s=s&&t.length===o.length)&&et(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)&&et(n,function(t,e){e=i[e];s=s&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),a&&et(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},yV.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},yV.prototype.dispose=function(t,e){!w.node&&e.getDom()&&(um(this,"_updatePosition"),this._tooltipContent.dispose(),S5("itemTooltip",e))},yV.type="tooltip",yV);function yV(){var t=null!==dV&&dV.apply(this,arguments)||this;return t.type=yV.type,t}function mV(t,e,n){for(var i=e.ecModel,o=n?(o=new Tp(n,i,i),new Tp(e.option,o,i)):e,r=t.length-1;0<=r;r--){var a=t[r];a&&(a=Y(a=a instanceof Tp?a.get("tooltip",!0):a)?{formatter:a}:a)&&(o=new Tp(a,o,i))}return o}function vV(t,e){return t.dispatchAction||T(e.dispatchAction,e)}function xV(t){return"center"===t||"middle"===t}function _V(t,e){if(t)for(var n=W(t)?t:[t],i=0;i<n.length;i++)if(n[i]&&n[i][e])return 1}function bV(t){Zr(t,"label",["show"])}r(function(t){r(N5),t.registerComponentModel(jz),t.registerComponentView(fV),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Bt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Bt)});var wV,SV=i(),MV=(u(IV,wV=g),IV.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},IV.prototype.isAnimationEnabled=function(){var t;return!w.node&&(t=this.__hostSeries,this.getShallow("animation"))&&t&&t.isAnimationEnabled()},IV.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},IV.prototype._mergeOption=function(t,i,e,o){var r=this.mainType;e||i.eachSeries(function(t){var e=t.get(this.mainType,!0),n=SV(t)[r];e&&e.data?(n?n._mergeOption(e,i,!0):(o&&bV(e),et(e.data,function(t){t instanceof Array?(bV(t[0]),bV(t[1])):bV(t)}),H(n=this.createMarkerModelFromSeries(e,this,i),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),n.__hostSeries=t),SV(t)[r]=n):SV(t)[r]=null},this)},IV.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t),i=i.getName(t);return by("section",{header:this.name,blocks:[by("nameValue",{name:i,value:o,noName:!i,noValue:null==o})]})},IV.prototype.getData=function(){return this._data},IV.prototype.setData=function(t){this._data=t},IV.getMarkerModelFromSeries=function(t,e){return SV(t)[e]},IV.type="marker",IV.dependencies=["series","grid","polar","geo"],IV);function IV(){var t=null!==wV&&wV.apply(this,arguments)||this;return t.type=IV.type,t.createdBySelf=!1,t}ut(MV,Sp.prototype);u(DV,TV=MV),DV.prototype.createMarkerModelFromSeries=function(t,e,n){return new DV(t,e,n)},DV.type="markPoint",DV.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}};var TV,CV=DV;function DV(){var t=null!==TV&&TV.apply(this,arguments)||this;return t.type=DV.type,t}function AV(t){return!isNaN(parseFloat(t.x))||!isNaN(parseFloat(t.y))}function kV(t,e,n,i,o,r){var a=[],s=P1(e,i)?e.getCalculationInfo("stackResultDimension"):i,t=EV(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=Mr(e.get(i,t));return 0<=(n=Math.min(n,20))&&(a[r]=+a[r].toFixed(n)),[a,o]}var LV={min:P(kV,"min"),max:P(kV,"max"),average:P(kV,"average"),median:P(kV,"median")};function PV(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,o=i&&i.dimensions;if(s=e,(isNaN(parseFloat(s.x))||isNaN(parseFloat(s.y)))&&!W(e.coord)&&W(o)&&(s=OV(e,n,i,t),(e=S(e)).type&&LV[e.type]&&s.baseAxis&&s.valueAxis?(i=F(o,s.baseAxis.dim),t=F(o,s.valueAxis.dim),s=LV[e.type](n,s.baseDataDim,s.valueDataDim,i,t),e.coord=s[0],e.value=s[1]):e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]),null!=e.coord&&W(o))for(var r=e.coord,a=0;a<2;a++)LV[r[a]]&&(r[a]=EV(n,n.mapDimension(o[a]),r[a]));else e.coord=[];return e}var s}function OV(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 RV(t,e){return!(t&&t.containData&&e.coord&&!AV(e))||t.containData(e.coord)}function NV(t,o){return t?function(t,e,n,i){return Ef(i<2?t.coord&&t.coord[i]:t.value,o[i])}:function(t,e,n,i){return Ef(t.value,o[i])}}function EV(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 zV,VV=i(),mp=(u(BV,zV=Uy),BV.prototype.init=function(){this.markerGroupMap=N()},BV.prototype.render=function(t,n,i){var o=this,e=this.markerGroupMap;e.each(function(t){VV(t).keep=!1}),n.eachSeries(function(t){var e=MV.getMarkerModelFromSeries(t,o.type);e&&o.renderSeries(t,e,n,i)}),e.each(function(t){VV(t).keep||o.group.remove(t.group)})},BV.prototype.markKeep=function(t){VV(t).keep=!0},BV.prototype.toggleBlurSeries=function(t,e){var n=this;et(t,function(t){t=MV.getMarkerModelFromSeries(t,n.type);t&&t.getData().eachItemGraphicEl(function(t){t&&(e?uu:hu)(t)})})},BV.type="marker",BV);function BV(){var t=null!==zV&&zV.apply(this,arguments)||this;return t.type=BV.type,t}function FV(a,s,l){var u=s.coordinateSystem;a.each(function(t){var e,n,i,o=a.getItemModel(t),r=j(o.get("x"),l.getWidth()),o=j(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(HV,GV=mp),HV.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=MV.getMarkerModelFromSeries(t,"markPoint");e&&(FV(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},HV.prototype.renderSeries=function(t,u,e,n){var i,o,r,a=t.coordinateSystem,s=t.id,h=t.getData(),l=this.markerGroupMap,l=l.get(s)||l.set(s,new bw),c=(i=t,s=u,o=(a=a)?B(a&&a.dimensions,function(t){return H(H({},i.getData().getDimensionInfo(i.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}],r=new T1(o,s),s=B(s.get("data"),P(PV,i)),a&&(s=pt(s,P(RV,a))),a=NV(!!a,o),r.initData(s,null,a),r);u.setData(c),FV(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=((D(n)||D(i)||D(o)||D(r))&&(s=u.getRawValue(t),l=u.getDataParams(t),D(n)&&(n=n(s,l)),D(i)&&(i=i(s,l)),D(o)&&(o=o(s,l)),D(r))&&(r=r(s,l)),e.getModel("itemStyle").getItemStyle()),l=Fm(h,"color");s.fill||(s.fill=l),c.setItemVisual(t,{symbol:n,symbolSize:i,symbolRotate:o,symbolOffset:r,symbolKeepAspect:a,style:s})}),l.updateData(c),this.group.add(l.group),c.eachItemGraphicEl(function(t){t.traverse(function(t){$(t).dataModel=u})}),this.markKeep(l),l.group.silent=u.get("silent")||t.get("silent")},HV.type="markPoint";var GV,WV=HV;function HV(){var t=null!==GV&&GV.apply(this,arguments)||this;return t.type=HV.type,t}r(function(t){t.registerComponentModel(CV),t.registerComponentView(WV),t.registerPreprocessor(function(t){_V(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})});u(UV,YV=MV),UV.prototype.createMarkerModelFromSeries=function(t,e,n){return new UV(t,e,n)},UV.type="markLine",UV.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 YV,XV=UV;function UV(){var t=null!==YV&&YV.apply(this,arguments)||this;return t.type=UV.type,t}function ZV(t,e,n,i){var o,r,a,s,l=t.getData();return(e=[PV(t,(n=W(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"),wt(i.yAxis,i.xAxis)):(s=(e=OV(i,l,e,t)).valueAxis,EV(l,O1(l,e.valueDataDim),o)),e=1-(l="x"===s.dim?0:1),s={coord:[]},(a=S(i)).type=null,a.coord=[],a.coord[e]=-1/0,s.coord[e]=1/0,0<=(e=n.get("precision"))&&X(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]),PV(t,n[1]),H({},n[2])])[2].type=e[2].type||null,d(e[2],e[0]),d(e[2],e[1]),e}var jV=i();function qV(t){return!isNaN(t)&&!isFinite(t)}function KV(t,e,n,i){var o=1-t,r=i.dimensions[t];return qV(e[o])&&qV(n[o])&&e[t]===n[t]&&i.getAxis(r).containData(e[t])}function $V(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(KV(1,n,i,t)||KV(0,n,i,t)))return!0}return RV(t,e[0])&&RV(t,e[1])}function JV(t,e,n,i,o){var r,a,s=i.coordinateSystem,l=t.getItemModel(e),u=j(l.get("x"),o.getWidth()),l=j(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])),zb(s,"cartesian2d")&&(o=s.getAxis("x"),i=s.getAxis("y"),a=s.dimensions,qV(t.get(a[0],e))?r[0]=o.toGlobalCoord(o.getExtent()[n?0:1]):qV(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(eB,QV=mp),eB.prototype.updateTransform=function(t,e,r){e.eachSeries(function(e){var n,i,o,t=MV.getMarkerModelFromSeries(e,"markLine");t&&(n=t.getData(),i=jV(t).from,o=jV(t).to,i.each(function(t){JV(i,t,!0,e,r),JV(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)},eB.prototype.renderSeries=function(r,e,t,a){var n,i,o,s,l=r.coordinateSystem,u=r.id,h=r.getData(),c=this.markerGroupMap,c=c.get(u)||c.set(u,new AA),p=(this.group.add(c.group),n=r,u=e,p=(l=l)?B(l&&l.dimensions,function(t){return H(H({},n.getData().getDimensionInfo(n.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})}):[{name:"value",type:"float"}],i=new T1(p,u),o=new T1(p,u),s=new T1([],u),u=B(u.get("data"),P(ZV,n,l,u)),l&&(u=pt(u,P($V,l))),l=NV(!!l,p),i.initData(B(u,function(t){return t[0]}),null,l),o.initData(B(u,function(t){return t[1]}),null,l),s.initData(B(u,function(t){return t[2]})),s.hasItemOption=!0,{from:i,to:o,line:s}),d=p.from,g=p.to,f=p.line,y=(jV(e).from=d,jV(e).to=g,e.setData(f),e.get("symbol")),m=e.get("symbolSize"),v=e.get("symbolRotate"),x=e.get("symbolOffset");function _(t,e,n){var i=t.getItemModel(e),o=(JV(t,e,n,r,a),i.getModel("itemStyle").getItemStyle());null==o.fill&&(o.fill=Fm(h,"color")),t.setItemVisual(e,{symbolKeepAspect:i.get("symbolKeepAspect"),symbolOffset:R(i.get("symbolOffset",!0),x[n?0:1]),symbolRotate:R(i.get("symbolRotate",!0),v[n?0:1]),symbolSize:R(i.get("symbolSize"),m[n?0:1]),symbol:R(i.get("symbol",!0),y[n?0:1]),style:o})}W(y)||(y=[y,y]),W(m)||(m=[m,m]),W(v)||(v=[v,v]),W(x)||(x=[x,x]),p.from.each(function(t){_(d,t,!0),_(g,t,!1)}),f.each(function(t){var e=f.getItemModel(t).getModel("lineStyle").getLineStyle();f.setItemLayout(t,[d.getItemLayout(t),g.getItemLayout(t)]),null==e.stroke&&(e.stroke=d.getItemVisual(t,"style").fill),f.setItemVisual(t,{fromSymbolKeepAspect:d.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(t,"symbolOffset"),fromSymbolRotate:d.getItemVisual(t,"symbolRotate"),fromSymbolSize:d.getItemVisual(t,"symbolSize"),fromSymbol:d.getItemVisual(t,"symbol"),toSymbolKeepAspect:g.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:g.getItemVisual(t,"symbolOffset"),toSymbolRotate:g.getItemVisual(t,"symbolRotate"),toSymbolSize:g.getItemVisual(t,"symbolSize"),toSymbol:g.getItemVisual(t,"symbol"),style:e})}),c.updateData(f),p.line.eachItemGraphicEl(function(t){$(t).dataModel=e,t.traverse(function(t){$(t).dataModel=e})}),this.markKeep(c),c.group.silent=e.get("silent")||r.get("silent")},eB.type="markLine";var QV,tB=eB;function eB(){var t=null!==QV&&QV.apply(this,arguments)||this;return t.type=eB.type,t}r(function(t){t.registerComponentModel(XV),t.registerComponentView(tB),t.registerPreprocessor(function(t){_V(t.series,"markLine")&&(t.markLine=t.markLine||{})})});u(oB,nB=MV),oB.prototype.createMarkerModelFromSeries=function(t,e,n){return new oB(t,e,n)},oB.type="markArea",oB.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}};var nB,iB=oB;function oB(){var t=null!==nB&&nB.apply(this,arguments)||this;return t.type=oB.type,t}function rB(t,e,n,i){var o,r=i[0],i=i[1];if(r&&i)return r=PV(t,r),t=PV(t,i),i=r.coord,o=t.coord,i[0]=wt(i[0],-1/0),i[1]=wt(i[1],-1/0),o[0]=wt(o[0],1/0),o[1]=wt(o[1],1/0),(i=at([{},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 aB=i();function sB(t){return!isNaN(t)&&!isFinite(t)}function lB(t,e,n){t=1-t;return sB(e[t])&&sB(n[t])}function uB(t,e){var n,i=e.coord[0],o=e.coord[1],r={coord:i,x:e.x0,y:e.y0},e={coord:o,x:e.x1,y:e.y1};return zb(t,"cartesian2d")?!(!i||!o||!lB(1,i,o)&&!lB(0,i,o))||(i=r,o=e,!((n=t)&&n.containZone&&i.coord&&o.coord&&!AV(i)&&!AV(o)))||n.containZone(i.coord,o.coord):RV(t,r)||RV(t,e)}function hB(t,e,n,i,o){var r,a,s,l,u,h,c=i.coordinateSystem,p=t.getItemModel(e),d=j(p.get(n[0]),o.getWidth()),p=j(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)),zb(c,"cartesian2d")&&(o=c.getAxis("x"),s=c.getAxis("y"),l=t.get(n[0],e),u=t.get(n[1],e),sB(l)?h[0]=o.toGlobalCoord(o.getExtent()["x0"===n[0]?0:1]):sB(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 cB,pB=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],dB=(u(gB,cB=mp),gB.prototype.updateTransform=function(t,e,o){e.eachSeries(function(n){var i,t=MV.getMarkerModelFromSeries(n,"markArea");t&&(i=t.getData()).each(function(e){var t=B(pB,function(t){return hB(i,e,t,n,o)});i.setItemLayout(e,t),i.getItemGraphicEl(e).setShape("points",t)})},this)},gB.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 Z}),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 H(H({},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 T1(o,e)):new T1(o=[{name:"value",type:"float"}],e)}e=B(e.get("data"),P(rB,n,t,e)),t&&(e=pt(e,P(uB,t))),t=t?function(t,e,n,i){return Ef(t.coord[Math.floor(i/2)][i%2],o[i])}:function(t,e,n,i){return Ef(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(pB,function(t){return hB(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=Fm(u,"color");n.fill||(n.fill=r,Y(n.fill)&&(n.fill=Di(n.fill,.4))),n.stroke||(n.stroke=r),h.setItemVisual(e,"style",n)}),h.diff(aB(i).data).add(function(t){var e=h.getItemLayout(t);e.allClipped||(e=new Ch({shape:{points:e.points}}),h.setItemGraphicEl(t,e),i.group.add(e))}).update(function(t,e){var e=aB(i).data.getItemGraphicEl(e),n=h.getItemLayout(t);n.allClipped?e&&i.group.remove(e):(e?C(e,{shape:{points:n.points}},o,t):e=new Ch({shape:{points:n.points}}),h.setItemGraphicEl(t,e),i.group.add(e))}).remove(function(t){t=aB(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")),tp(t,ep(n),{labelFetcher:o,labelDataIndex:e,defaultText:h.getName(e)||"",inheritColor:Y(i.fill)?Di(i.fill,1):"#000"}),Mu(t,n),_u(t,null,null,n.get(["emphasis","disabled"])),$(t).dataModel=o}),aB(i).data=h,i.group.silent=o.get("silent")||a.get("silent")},gB.type="markArea",gB);function gB(){var t=null!==cB&&cB.apply(this,arguments)||this;return t.type=gB.type,t}r(function(t){t.registerComponentModel(iB),t.registerComponentView(dB),t.registerPreprocessor(function(t){_V(t.series,"markArea")&&(t.markArea=t.markArea||{})})});u(yB,fB=g),yB.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},yB.prototype.mergeOption=function(t){fB.prototype.mergeOption.apply(this,arguments),this._initData()},yB.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},yB.prototype.getCurrentIndex=function(){return this.option.currentIndex},yB.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},yB.prototype.setPlayState=function(t){this.option.autoPlay=!!t},yB.prototype.getPlayState=function(){return!!this.option.autoPlay},yB.prototype._initData=function(){var o,t=this.option,e=t.data||[],t=t.axisType,r=this._names=[],e=("category"===t?(o=[],et(e,function(t,e){var n,i=Qr(qr(t),"");O(t)?(n=S(t)).value=e:n=e,o.push(n),r.push(i)})):o=e,{category:"ordinal",time:"time",value:"number"}[t]||"number");(this._data=new T1([{name:"value",type:e}],this)).initData(o,r)},yB.prototype.getData=function(){return this._data},yB.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},yB.type="timeline",yB.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 fB,e=yB;function yB(){var t=null!==fB&&fB.apply(this,arguments)||this;return t.type=yB.type,t.layoutMode="box",t}u(xB,mB=e),xB.type="timeline.slider",xB.defaultOption=kp(e.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 mB,vB=xB;function xB(){var t=null!==mB&&mB.apply(this,arguments)||this;return t.type=xB.type,t}ut(vB,Sp.prototype);u(bB,_B=Uy),bB.type="timeline";var _B,Zm=bB;function bB(){var t=null!==_B&&_B.apply(this,arguments)||this;return t.type=bB.type,t}u(MB,wB=bp),MB.prototype.getLabelModel=function(){return this.model.getModel("label")},MB.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")};var wB,SB=MB;function MB(t,e,n,i){t=wB.call(this,t,e,n)||this;return t.type=i||"value",t}var IB,TB=Math.PI,CB=i(),DB=(u(AB,IB=Zm),AB.prototype.init=function(t,e){this.api=e},AB.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 by("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},et(["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()},AB.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},AB.prototype.dispose=function(){this._clearTimer()},AB.prototype._layout=function(t,e){var n,i,o,r,a=t.get(["label","position"]),s=t.get("orient"),l=(l=e,Cd((r=t).getBoxLayoutParams(),{width:l.getWidth(),height:l.getHeight()},r.get("padding"))),e={horizontal:"center",vertical:0<=(r=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2<e.getHeight()/2?"-":"+":l.x+l.width/2<e.getWidth()/2?"+":"-":Y(a)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[s][a]:a)||"+"===r?"left":"right"},a={horizontal:0<=r||"+"===r?"top":"bottom",vertical:"middle"},u={horizontal:0,vertical:TB/2},h="vertical"===s?l.height:l.width,c=t.getModel("controlStyle"),p=c.get("show",!0),d=p?c.get("itemSize"):0,g=p?c.get("itemGap"):0,f=d+g,y=(t.get(["label","rotate"])||0)*TB/180,m=c.get("position",!0),v=p&&c.get("showPlayBtn",!0),x=p&&c.get("showPrevBtn",!0),p=p&&c.get("showNextBtn",!0),c=0,_=h,m=("left"===m||"bottom"===m?(v&&(n=[0,0],c+=f),x&&(i=[c,0],c+=f)):(v&&(n=[_-d,0],_-=f),x&&(i=[0,0],c+=f)),p&&(o=[_-d,0],_-=f),[c,_]);return t.get("inverse")&&m.reverse(),{viewRect:l,mainLength:h,orient:s,rotation:u[s],labelRotation:y,labelPosOpt:r,labelAlign:t.get(["label","align"])||e[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||a[s],playPosition:n,prevBtnPosition:i,nextBtnPosition:o,axisExtent:m,controlSize:d,controlGap:g}},AB.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect,r=("vertical"===t.orient&&(Ge(l=ze(),l,[-(a=o.x),-(s=o.y+o.height)]),We(l,l,-TB/2),Ge(l,l,[a,s]),(o=o.clone()).applyTransform(l)),p(o)),a=p(n.getBoundingRect()),s=p(i.getBoundingRect()),l=[n.x,n.y],o=[i.x,i.y];o[0]=l[0]=r[0][0];var u,h=t.labelPosOpt;function c(t){t.originX=r[0][0]-t.x,t.originY=r[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||Y(h)?(d(l,a,r,1,u="+"===h?0:1),d(o,s,r,1,1-u)):(d(l,a,r,1,u=0<=h?0:1),o[1]=l[1]+h),n.setPosition(l),i.setPosition(o),n.rotation=i.rotation=t.rotation,c(n),c(i)},AB.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 K1({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new yx({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new tx}}(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 SB("value",o,t.axisExtent,i));return r.model=e,r},AB.prototype._createGroup=function(t){t=this[t]=new Z;return this.group.add(t),t},AB.prototype._renderAxisLine=function(t,e,n,i){var o,n=n.getExtent();i.get(["lineStyle","show"])&&(o=new Eh({shape:{x1:n[0],y1:0,x2:n[1],y2:0},style:H({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}),e.add(o),n=this._progressLine=new Eh({shape:{x1:n[0],x2:this._currentPointer?this._currentPointer.x:n[0],y1:0,y2:0},style:V({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1}),e.add(n))},AB.prototype._renderAxisTick=function(t,a,s,l){var u=this,h=l.getData(),e=s.scale.getTicks();this._tickSymbols=[],et(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:T(u._changeTimeline,u,t.value)},i=kB(n,i,a,e),e=(i.ensureState("emphasis").style=o.getItemStyle(),i.ensureState("progress").style=r.getItemStyle(),xu(i),$(i));n.get("tooltip")?(e.dataIndex=t.value,e.dataModel=l):e.dataIndex=e.dataModel=null,u._tickSymbols.push(i)})},AB.prototype._renderAxisLabel=function(a,s,l,t){var u,h=this;l.getLabelModel().get("show")&&(u=t.getData(),t=l.getViewLabels(),this._tickLabels=[],et(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 K({x:r,y:0,rotation:a.labelRotation-a.rotation,onclick:T(h._changeTimeline,h,e),silent:!1,style:np(i,{text:t.formattedLabel,align:a.labelAlign,verticalAlign:a.labelBaseline})});r.ensureState("emphasis").style=np(o),r.ensureState("progress").style=np(n),s.add(r),xu(r),CB(r).dataIndex=e,h._tickLabels.push(r)}))},AB.prototype._renderControl=function(t,a,e,s){var l=t.controlSize,u=t.rotation,h=s.getModel("controlStyle").getItemStyle(),c=s.getModel(["emphasis","controlStyle"]).getItemStyle(),n=s.getPlayState(),i=s.get("inverse",!0);function o(t,e,n,i){var o,r;t&&(r=Jo(R(s.get(["controlStyle",e+"BtnSize"]),l),l),o=s,e=e+"Icon",r=[0,-r/2,r,r],t={x:t[0],y:t[1],originX:l/2,originY:0,rotation:i?-u:0,rectHover:!0,style:h,onclick:n},i=t.style,o=Yc(o.get(["controlStyle",e]),t||{},new z(r[0],r[1],r[2],r[3])),i&&o.setStyle(i),(n=o).ensureState("emphasis").style=c,a.add(n),xu(n))}o(t.nextBtnPosition,"next",T(this._changeTimeline,this,i?"-":"+")),o(t.prevBtnPosition,"prev",T(this._changeTimeline,this,i?"+":"-")),o(t.playPosition,n?"stop":"play",T(this._handlePlayClick,this,!n),!0)},AB.prototype._renderCurrentPointer=function(t,e,n,i){var o=i.getData(),r=i.getCurrentIndex(),o=o.getItemModel(r).getModel("checkpointStyle"),a=this;this._currentPointer=kB(o,o,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=T(a._handlePointerDrag,a),t.ondragend=T(a._handlePointerDragend,a),LB(t,a._progressLine,r,n,i,!0)},onUpdate:function(t){LB(t,a._progressLine,r,n,i)}})},AB.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},AB.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},AB.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},AB.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)},AB.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")))},AB.prototype._toAxisCoord=function(t){return Vc(t,this._mainGroup.getLocalTransform(),!0)},AB.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},AB.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},AB.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})},AB.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",CB(n[i]).dataIndex<=t)},AB.type="timeline.slider",AB);function AB(){var t=null!==IB&&IB.apply(this,arguments)||this;return t.type=AB.type,t}function kB(t,e,n,i,o,r){var a=e.get("color"),a=(o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=i0(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),o0(t.get("symbolSize"))),r=(i.scaleX=n[0]/2,i.scaleY=n[1]/2,r0(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 LB(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 PB(t){t=t&&t.timeline;et(t=W(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),OB(t),RB(t,"controlPosition")&&(RB(n=t.controlStyle||(t.controlStyle={}),"position")||(n.position=t.controlPosition),"none"!==n.position||RB(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition),et(t.data||[],function(t){O(t)&&!W(t)&&(!RB(t,"value")&&RB(t,"name")&&(t.value=t.name),OB(t))}))})}function OB(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};et(t,function(t,e){i[e]||RB(n,e)||(n[e]=t)}),e.label&&!RB(t,"emphasis")&&(t.emphasis=e.label,delete e.label)}function RB(t,e){return t.hasOwnProperty(e)}r(function(t){var e;t.registerComponentModel(vB),t.registerComponentView(DB),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)}),V({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(PB)});var NB=["x","y","radius","angle","single"],EB=["cartesian2d","polar","singleAxis"];function zB(t){return t+"Axis"}function VB(t,e){var i,o=N(),n=[],r=N();for(t.eachComponent({mainType:"dataZoom",query:e},function(t){r.get(t.uid)||s(t)});i=!1,t.eachComponent("dataZoom",a),i;);function a(t){var n;!r.get(t.uid)&&(n=!1,t.eachTargetAxis(function(t,e){t=o.get(t);t&&t[e]&&(n=!0)}),n)&&(s(t),i=!0)}function s(t){r.set(t.uid,!0),n.push(t),t.eachTargetAxis(function(t,e){(o.get(t)||o.set(t,[]))[e]=!0})}return n}function BB(t){var o=t.ecModel,r={infoList:[],infoMap:N()};return t.eachTargetAxis(function(t,e){var n,i,t=o.getComponent(zB(t),e);t&&(e=t.getCoordSysModel())&&(n=e.uid,(i=r.infoMap.get(n))||(r.infoList.push(i={model:e,axisModels:[]}),r.infoMap.set(n,i)),i.axisModels.push(t))}),r}HB.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)};var FB,GB=HB,xa=(u(WB,FB=g),WB.prototype.init=function(t,e,n){var i=YB(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},WB.prototype.mergeOption=function(t){var e=YB(t);d(this.option,t,!0),d(this.settledOption,e,!0),this._doInit(e)},WB.prototype._doInit=function(t){var n=this.option,i=(this._setDefaultThrottle(t),this._updateRangeUse(t),this.settledOption);et([["start","startValue"],["end","endValue"]],function(t,e){"value"===this._rangePropMode[e]&&(n[t[0]]=i[t[0]]=null)},this),this._resetTarget()},WB.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=N();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},WB.prototype._fillSpecifiedTargetAxis=function(i){var o=!1;return et(NB,function(t){var e,n=this.getReferringComponents(zB(t),la);n.specified&&(o=!0,e=new GB,et(n.models,function(t){e.add(t.componentIndex)}),i.set(t,e))},this),o},WB.prototype._fillAutoTargetAxisByOrient=function(r,e){var t,i=this.ecModel,a=!0;function n(t,e){var n,i,o=t[0];o&&((n=new GB).add(o.componentIndex),r.set(e,n),a=!1,"x"!==e&&"y"!==e||(i=o.getReferringComponents("grid",sa).models[0])&&et(t,function(t){o.componentIndex!==t.componentIndex&&i===t.getReferringComponents("grid",sa).models[0]&&n.add(t.componentIndex)}))}a&&n(i.findComponents({mainType:(t="vertical"===e?"y":"x")+"Axis"}),t),a&&n(i.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),a&&et(NB,function(t){var e,n;a&&(e=i.findComponents({mainType:zB(t),filter:function(t){return"category"===t.get("type",!0)}}))[0]&&((n=new GB).add(e[0].componentIndex),r.set(t,n),a=!1)},this)},WB.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){e=e||t},this),"y"===e?"vertical":"horizontal"},WB.prototype._setDefaultThrottle=function(t){t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle&&(t=this.ecModel.option,this.option.throttle=t.animation&&0<t.animationDurationUpdate?100:20)},WB.prototype._updateRangeUse=function(i){var o=this._rangePropMode,r=this.get("rangeMode");et([["start","startValue"],["end","endValue"]],function(t,e){var n=null!=i[t[0]],t=null!=i[t[1]];n&&!t?o[e]="percent":!n&&t?o[e]="value":r?o[e]=r[e]:n&&(o[e]="percent")})},WB.prototype.noTarget=function(){return this._noTarget},WB.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(t,e){null==n&&(n=this.ecModel.getComponent(zB(t),e))},this),n},WB.prototype.eachTargetAxis=function(n,i){this._targetAxisInfoMap.each(function(t,e){et(t.indexList,function(t){n.call(i,e,t)})})},WB.prototype.getAxisProxy=function(t,e){t=this.getAxisModel(t,e);if(t)return t.__dzAxisProxy},WB.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(zB(t),e)},WB.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;et([["start","startValue"],["end","endValue"]],function(t){null==e[t[0]]&&null==e[t[1]]||(n[t[0]]=i[t[0]]=e[t[0]],n[t[1]]=i[t[1]]=e[t[1]])},this),this._updateRangeUse(e)},WB.prototype.setCalculatedRange=function(e){var n=this.option;et(["start","startValue","end","endValue"],function(t){n[t]=e[t]})},WB.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},WB.prototype.getValueRange=function(t,e){return null!=t||null!=e?this.getAxisProxy(t,e).getDataValueWindow():(t=this.findRepresentativeAxisProxy())?t.getDataValueWindow():void 0},WB.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],r=this._targetAxisInfoMap.get(o),a=0;a<r.indexList.length;a++){var s=this.getAxisProxy(o,r.indexList[a]);if(s.hostedBy(this))return s;e=e||s}return e},WB.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},WB.prototype.getOrient=function(){return this._orient},WB.type="dataZoom",WB.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],WB.defaultOption={z:4,filterMode:"filter",start:0,end:100},WB);function WB(){var t=null!==FB&&FB.apply(this,arguments)||this;return t.type=WB.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}function HB(){this.indexList=[],this.indexMap=[]}function YB(e){var n={};return et(["start","end","startValue","endValue","throttle"],function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}u(ZB,XB=xa),ZB.type="dataZoom.inside",ZB.defaultOption=kp(xa.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0});var XB,UB=ZB;function ZB(){var t=null!==XB&&XB.apply(this,arguments)||this;return t.type=ZB.type,t}u(qB,jB=Uy),qB.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},qB.type="dataZoom";var jB,Jm=qB;function qB(){var t=null!==jB&&jB.apply(this,arguments)||this;return t.type=qB.type,t}var KB=i();function $B(t,e){e&&(t.removeKey(e.model.uid),t=e.controller)&&t.dispose()}function JB(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function QB(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function t3(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,a){var e=KB(a),l=e.coordSysRecordMap||(e.coordSysRecordMap=N());l.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){et(BB(o).infoList,function(t){var r,e,n=t.model.uid,i=l.get(n)||l.set(n,(n=a,i=t.model,r={model:i,containsPoint:P(QB,i),dispatchAction:P(JB,n),dataZoomInfoMap:null,controller:null},e=r.controller=new k2(n.getZr()),et(["pan","zoom","scrollMove"],function(o){e.on(o,function(n){var i=[];r.dataZoomInfoMap.each(function(t){var e;n.isAvailableBehavior(t.model.option)&&(e=(e=(t.getRange||{})[o])&&e(t.dzReferCoordSysInfo,r.model.mainType,r.controller,n),!t.model.get("disabled",!0))&&e&&i.push({dataZoomId:t.model.id,start:e[0],end:e[1]})}),i.length&&r.dispatchAction(i)})}),r));(i.dataZoomInfoMap||(i.dataZoomInfoMap=N())).set(o.uid,{dzReferCoordSysInfo:t,model:o,getRange:null})})}),l.each(function(t){var e,n,i,o,r,a=t.controller,s=t.dataZoomInfoMap;(e=s&&null!=(n=s.keys()[0])?s.get(n):e)?(o={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0,s.each(function(t){var t=t.model,e=!t.get("disabled",!0)&&(!t.get("zoomLock",!0)||"move");o["type_"+i]<o["type_"+e]&&(i=e),r=r&&t.get("preventDefaultMouseMove",!0)}),n={controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}},a.enable(n.controlType,n.opt),a.setPointerChecker(t.containsPoint),lm(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")):$B(l,t)})})}u(o3,e3=Jm),o3.prototype.render=function(t,e,n){var i,o;e3.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),n=n,i=t,o={pan:T(i3.pan,this),zoom:T(i3.zoom,this),scrollMove:T(i3.scrollMove,this)},KB(n).coordSysRecordMap.each(function(t){t=t.dataZoomInfoMap.get(i.uid);t&&(t.getRange=o)}))},o3.prototype.dispose=function(){this._clear(),e3.prototype.dispose.apply(this,arguments)},o3.prototype._clear=function(){for(var t=this.api,e=this.dataZoomModel,n=KB(t).coordSysRecordMap,i=n.keys(),o=0;o<i.length;o++){var r,a=i[o],a=n.get(a),s=a.dataZoomInfoMap;s&&(r=e.uid,s.get(r))&&(s.removeKey(r),s.keys().length||$B(n,a))}this.range=null},o3.type="dataZoom.inside";var e3,n3=o3,i3={zoom:function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a)return a=(0<(e=a3[e](null,[i.originX,i.originY],a,n,t)).signal?e.pixelStart+e.pixelLength-e.pixel:e.pixel-e.pixelStart)/e.pixelLength*(r[1]-r[0])+r[0],n=Math.max(1/i.scale,0),r[0]=(r[0]-a)*n+a,r[1]=(r[1]-a)*n+a,XL(0,r,[0,100],0,(t=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan()).minSpan,t.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0},pan:r3(function(t,e,n,i,o,r){i=a3[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,n);return i.signal*(t[1]-t[0])*i.pixel/i.pixelLength}),scrollMove:r3(function(t,e,n,i,o,r){return a3[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,n).signal*(t[1]-t[0])*r.scrollDelta})};function o3(){var t=null!==e3&&e3.apply(this,arguments)||this;return t.type="dataZoom.inside",t}function r3(s){return function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a)return XL(s(r,a,t,e,n,i),r,[0,100],"all"),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}}var a3={grid:function(t,e,n,i,o){var n=n.axis,r={},o=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===n.dim?(r.pixel=e[0]-t[0],r.pixelLength=o.width,r.pixelStart=o.x,r.signal=n.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=o.height,r.pixelStart=o.y,r.signal=n.inverse?-1:1),r},polar:function(t,e,n,i,o){var r=n.axis,a={},o=o.model.coordinateSystem,s=o.getRadiusAxis().getExtent(),l=o.getAngleAxis().getExtent();return t=t?o.pointToCoord(t):[0,0],e=o.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=s[1]-s[0],a.pixelStart=s[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?-1:1),a},singleAxis:function(t,e,n,i,o){var n=n.axis,o=o.model.coordinateSystem.getRect(),r={};return t=t||[0,0],"horizontal"===n.orient?(r.pixel=e[0]-t[0],r.pixelLength=o.width,r.pixelStart=o.x,r.signal=n.inverse?1:-1):(r.pixel=e[1]-t[1],r.pixelLength=o.height,r.pixelStart=o.y,r.signal=n.inverse?-1:1),r}},s3=et,l3=Sr,u3=(h3.prototype.hostedBy=function(t){return this._dataZoomModel===t},h3.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},h3.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},h3.prototype.getTargetSeriesModels=function(){var n=[];return this.ecModel.eachSeries(function(t){var e;e=(e=t).get("coordinateSystem"),0<=F(EB,e)&&(e=zB(this._dimName),e=t.getReferringComponents(e,sa).models[0])&&this._axisIndex===e.componentIndex&&n.push(t)},this),n},h3.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},h3.prototype.getMinMaxSpan=function(){return S(this._minMaxSpan)},h3.prototype.calculateDataWindow=function(i){var o,r=this._dataExtent,s=this.getAxisModel().axis.scale,a=this._dataZoomModel.getRangePropMode(),l=[0,100],u=[],h=[],c=(s3(["start","end"],function(t,e){var n=i[t],t=i[t+"Value"];"percent"===a[e]?t=s.parse(br(n=null==n?l[e]:n,l,r)):(o=!0,n=br(t=null==t?r[e]:s.parse(t),r,l)),h[e]=null==t||isNaN(t)?r[e]:t,u[e]=null==n||isNaN(n)?l[e]:n}),l3(h),l3(u),this._minMaxSpan);function t(t,e,n,i,o){var r=o?"Span":"ValueSpan";XL(0,t,n,"all",c["min"+r],c["max"+r]);for(var a=0;a<2;a++)e[a]=br(t[a],n,i,!0),o&&(e[a]=s.parse(e[a]))}return o?t(h,u,r,l,!1):t(u,h,l,r,!0),{valueWindow:h,percentWindow:u}},h3.prototype.reset=function(t){var e,i,n,o;t===this._dataZoomModel&&(n=this.getTargetSeriesModels(),this._dataExtent=(i=(e=this)._dimName,o=[1/0,-1/0],s3(n=n,function(t){var e,n;e=o,n=t.getData(),t=i,n&&et(Ux(n,t),function(t){t=n.getApproximateExtent(t);t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])})}),[(e=Ex((n=e.getAxisModel()).axis.scale,n,o).calculate()).min,e.max]),this._updateMinMaxSpan(),n=this.calculateDataWindow(t.settledOption),this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel())},h3.prototype.filterData=function(t,e){var o,n,r,c;t===this._dataZoomModel&&(o=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),c=this._valueWindow,"none"!==r)&&s3(n,function(n){var l,u,i=n.getData(),h=i.mapDimensionsAll(o);h.length&&("weakFilter"===r?(l=i.getStore(),u=B(h,function(t){return i.getDimensionIndex(t)},i),i.filterSelf(function(t){for(var e,n,i,o=0;o<h.length;o++){var r=l.get(u[o],t),a=!isNaN(r),s=r<c[0],r=r>c[1];if(a&&!s&&!r)return!0;a&&(i=!0),s&&(e=!0),r&&(n=!0)}return i&&e&&n})):s3(h,function(t){var e;"empty"===r?n.setData(i=i.map(t,function(t){return t>=c[0]&&t<=c[1]?t:NaN})):((e={})[t]=c,i.selectRange(e))}),s3(h,function(t){i.setApproximateExtent(c,t)}))})},h3.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},o=this._dataZoomModel,r=this._dataExtent;s3(["min","max"],function(t){var e=o.get(t+"Span"),n=o.get(t+"ValueSpan");null!=(n=null!=n?this.getAxisModel().axis.scale.parse(n):n)?e=br(r[0]+n,r,[0,100],!0):null!=e&&(n=br(e,[0,100],r,!0)-r[0]),i[t+"Span"]=e,i[t+"ValueSpan"]=n},this)},h3.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=Tr(i,[0,500]),t=Math.min(t,20),e=e.axis.scale.rawExtentInfo,0!==n[0]&&e.setDeterminedMinMax("min",+i[0].toFixed(t)),100!==n[1]&&e.setDeterminedMinMax("max",+i[1].toFixed(t)),e.freeze())},h3);function h3(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}var c3={getTargetSeries:function(r){function t(o){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){var n=r.getComponent(zB(t),e);o(t,e,n,i)})})}t(function(t,e,n,i){n.__dzAxisProxy=null});var o=[],e=(t(function(t,e,n,i){n.__dzAxisProxy||(n.__dzAxisProxy=new u3(t,e,i,r),o.push(n.__dzAxisProxy))}),N());return et(o,function(t){et(t.getTargetSeriesModels(),function(t){e.set(t.uid,t)})}),e},overallReset:function(t,i){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).reset(n)}),n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).filterData(n,i)})}),t.eachComponent("dataZoom",function(t){var e,n=t.findRepresentativeAxisProxy();n&&(e=n.getDataPercentWindow(),n=n.getDataValueWindow(),t.setCalculatedRange({start:e[0],end:e[1],startValue:n[0],endValue:n[1]}))})}};var p3=!1;function d3(t){p3||(p3=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,c3),t.registerAction("dataZoom",function(e,t){et(VB(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function g3(t){d3(t),t.registerComponentModel(UB),t.registerComponentView(n3),t3(t)}u(m3,f3=xa),m3.type="dataZoom.slider",m3.layoutMode="box",m3.defaultOption=kp(xa.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}});var f3,y3=m3;function m3(){var t=null!==f3&&f3.apply(this,arguments)||this;return t.type=m3.type,t}var v3,x3=L,_3="horizontal",b3="vertical",w3=["line","bar","candlestick","scatter"],S3={easing:"cubicOut",duration:100,delay:0},M3=(u(I3,v3=Jm),I3.prototype.init=function(t,e){this.api=e,this._onBrush=T(this._onBrush,this),this._onBrushEnd=T(this._onBrushEnd,this)},I3.prototype.render=function(t,e,n,i){v3.prototype.render.apply(this,arguments),lm(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")?t.noTarget()?(this._clear(),this.group.removeAll()):(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()):this.group.removeAll()},I3.prototype.dispose=function(){this._clear(),v3.prototype.dispose.apply(this,arguments)},I3.prototype._clear=function(){um(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},I3.prototype._buildView=function(){var t=this.group,e=(t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval(),this._displayables.sliderGroup=new Z);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},I3.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),e={width:e.getWidth(),height:e.getHeight()},o=this._orient===_3?{right:e.width-i.x-i.width,top:e.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},r=Ld(t.option),n=(et(["right","top","width","height"],function(t){"ph"===r[t]&&(r[t]=o[t])}),Cd(r,e));this._location={x:n.x,y:n.y},this._size=[n.width,n.height],this._orient===b3&&this._size.reverse()},I3.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),i=i&&i.get("inverse"),o=this._displayables.sliderGroup,r=(this._dataShadowInfo||{}).otherAxisInverse,n=(o.attr(n!==_3||i?n===_3&&i?{scaleY:r?1:-1,scaleX:-1}:n!==b3||i?{scaleY:r?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:r?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:r?1:-1,scaleX:1}),t.getBoundingRect([o]));t.x=e.x-n.x,t.y=e.y-n.y,t.markRedraw()},I3.prototype._getViewExtent=function(){return[0,this._size[0]]},I3.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect"),t=(n.add(new x3({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),new x3({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:T(this._onClickPanel,this)})),e=this.api.getZr();i?(t.on("mousedown",this._onBrushStart,this),t.cursor="crosshair",e.on("mousemove",this._onBrush),e.on("mouseup",this._onBrushEnd)):(e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)),n.add(t)},I3.prototype._renderDataShadow=function(){var t,e,n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],n){var i=this._size,o=this._shadowSize||[],r=n.series,a=r.getRawData(),s=r.getShadowDim&&r.getShadowDim(),s=s&&a.getDimensionInfo(s)?r.getShadowDim():n.otherDim;if(null!=s){var l,u,h,c,p,d,g,f,y=this._shadowPolygonPts,m=this._shadowPolylinePts;a===this._shadowData&&s===this._shadowDim&&i[0]===o[0]&&i[1]===o[1]||(r=.3*((l=a.getDataExtent(s))[1]-l[0]),l=[l[0]-r,l[1]+r],h=[0,i[1]],n=[0,i[0]],c=[[i[0],0],[0,0]],p=[],d=n[1]/(a.count()-1),g=0,f=Math.round(a.count()/i[0]),a.each([s],function(t,e){var n;0<f&&e%f?g+=d:(t=(n=null==t||isNaN(t)||""===t)?0:br(t,l,h,!0),n&&!u&&e?(c.push([c[c.length-1][0],0]),p.push([p[p.length-1][0],0])):!n&&u&&(c.push([g,0]),p.push([g,0])),c.push([g,t]),p.push([g,t]),g+=d,u=n)}),y=this._shadowPolygonPts=c,m=this._shadowPolylinePts=p),this._shadowData=a,this._shadowDim=s,this._shadowSize=[i[0],i[1]];for(var v=this.dataZoomModel,x=0;x<3;x++){t=1===x,_=e=void 0,t=v.getModel(t?"selectedDataBackground":"dataBackground"),e=new Z,_=new Ch({shape:{points:y},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),t=new Lh({shape:{points:m},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),e.add(_),e.add(t);var _=e;this._displayables.sliderGroup.add(_),this._displayables.dataShadowSegs.push(_)}}}},I3.prototype._prepareDataShadowInfo=function(){var s,l,t=this.dataZoomModel,u=t.get("showDataShadow");if(!1!==u)return l=this.ecModel,t.eachTargetAxis(function(r,a){et(t.getAxisProxy(r,a).getTargetSeriesModels(),function(t){var e,n,i,o;s||!0!==u&&F(w3,t.get("type"))<0||(n=l.getComponent(zB(r),a).axis,o=t.coordinateSystem,null!=(i={x:"y",y:"x",radius:"angle",angle:"radius"}[r])&&o.getOtherAxis&&(e=o.getOtherAxis(n).inverse),i=t.getData().mapDimension(i),s={thisAxis:n,series:t,thisDim:r,otherDim:i,otherAxisInverse:e})},this)},this),s},I3.prototype._renderHandle=function(){var t,e,o=this.group,n=this._displayables,r=n.handles=[null,null],a=n.handleLabels=[null,null],s=this._displayables.sliderGroup,i=this._size,l=this.dataZoomModel,u=this.api,h=l.get("borderRadius")||0,c=l.get("brushSelect"),p=n.filler=new x3({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}}),h=(s.add(p),s.add(new x3({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:i[0],height:i[1],r:h},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),et([0,1],function(t){var e=l.get("handleIcon"),e=i0(e=!t0[e]&&e.indexOf("path://")<0&&e.indexOf("image://")<0?"path://"+e:e,-1,0,2,2,null,!0),n=(e.attr({cursor:T3(this._orient),draggable:!0,drift:T(this._onDragMove,this,t),ondragend:T(this._onDragEnd,this),onmouseover:T(this._showDataInfo,this,!0),onmouseout:T(this._showDataInfo,this,!1),z2:5}),e.getBoundingRect()),i=l.get("handleSize"),i=(this._handleHeight=j(i,this._size[1]),this._handleWidth=n.width/n.height*this._handleHeight,e.setStyle(l.getModel("handleStyle").getItemStyle()),e.style.strokeNoScale=!0,e.rectHover=!0,e.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),xu(e),l.get("handleColor")),n=(null!=i&&(e.style.fill=i),s.add(r[t]=e),l.getModel("textStyle"));o.add(a[t]=new K({silent:!0,invisible:!0,style:np(n,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:n.getTextColor(),font:n.getFont()}),z2:10}))},this),p);c&&(p=j(l.get("moveHandleSize"),i[1]),t=n.moveHandle=new L({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:i[1]-.5,height:p}}),c=.8*p,(c=n.moveHandleIcon=i0(l.get("moveHandleIcon"),-c/2,-c/2,c,c,"#fff",!0)).silent=!0,c.y=i[1]+p/2-.5,t.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle(),e=Math.min(i[1]/2,Math.max(p,10)),(h=n.moveZone=new L({invisible:!0,shape:{y:i[1]-e,height:p+e}})).on("mouseover",function(){u.enterEmphasis(t)}).on("mouseout",function(){u.leaveEmphasis(t)}),s.add(t),s.add(c),s.add(h)),h.attr({draggable:!0,cursor:T3(this._orient),drift:T(this._onDragMove,this,"all"),ondragstart:T(this._showDataInfo,this,!0),ondragend:T(this._onDragEnd,this),onmouseover:T(this._showDataInfo,this,!0),onmouseout:T(this._showDataInfo,this,!1)})},I3.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[br(t[0],[0,100],e,!0),br(t[1],[0,100],e,!0)]},I3.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100],e=(XL(e,i,o,n.get("zoomLock")?"all":t,null!=r.minSpan?br(r.minSpan,a,o,!0):null,null!=r.maxSpan?br(r.maxSpan,a,o,!0):null),this._range),n=this._range=Sr([br(i[0],o,a,!0),br(i[1],o,a,!0)]);return!e||e[0]!==n[0]||e[1]!==n[1]},I3.prototype._updateView=function(t){var i=this._displayables,o=this._handleEnds,e=Sr(o.slice()),r=this._size,n=(et([0,1],function(t){var e=i.handles[t],n=this._handleHeight;e.attr({scaleX:n/2,scaleY:n/2,x:o[t]+(t?-1:1),y:r[1]/2-n/2})},this),i.filler.setShape({x:e[0],y:0,width:e[1]-e[0],height:r[1]}),{x:e[0],width:e[1]-e[0]});i.moveHandle&&(i.moveHandle.setShape(n),i.moveZone.setShape(n),i.moveZone.getBoundingRect(),i.moveHandleIcon)&&i.moveHandleIcon.attr("x",n.x+n.width/2);for(var a=i.dataShadowSegs,s=[0,e[0],e[1],r[0]],l=0;l<a.length;l++){var u=a[l],h=u.getClipPath();h||(h=new L,u.setClipPath(h)),h.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},I3.prototype._updateDataInfo=function(t){var e,n,i=this.dataZoomModel,o=this._displayables,r=o.handleLabels,a=this._orient,s=["",""],l=(i.get("showDetail")&&(i=i.findRepresentativeAxisProxy())&&(e=i.getAxisModel().axis,n=this._range,t=t?i.calculateDataWindow({start:n[0],end:n[1]}).valueWindow:i.getDataValueWindow(),s=[this._formatLabel(t[0],e),this._formatLabel(t[1],e)]),Sr(this._handleEnds.slice()));function u(t){var e=zc(o.handles[t].parent,this.group),n=Bc(0===t?"right":"left",e),i=this._handleWidth/2+5,i=Vc([l[t]+(0===t?-i:i),this._size[1]/2],e);r[t].setStyle({x:i[0],y:i[1],verticalAlign:a===_3?"middle":n,align:a===_3?n:"center",text:s[t]})}u.call(this,0),u.call(this,1)},I3.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),n=n.get("labelPrecision"),e=(null!=n&&"auto"!==n||(n=e.getPixelPrecision()),null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(n,20)));return D(i)?i(t,e):Y(i)?i.replace("{value}",e):e},I3.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},I3.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,Le(i.event);i=Vc([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),e=this._updateInterval(t,i[0]),n=this.dataZoomModel.get("realtime");this._updateView(!n),e&&n&&this._dispatchZoomAction(!0)},I3.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},I3.prototype._onClickPanel=function(t){var e=this._size,t=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);t[0]<0||t[0]>e[0]||t[1]<0||t[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,t=this._updateInterval("all",t[0]-e),this._updateView(),t&&this._dispatchZoomAction(!1))},I3.prototype._onBrushStart=function(t){var e=t.offsetX,t=t.offsetY;this._brushStart=new E(e,t),this._brushing=!0,this._brushStartTime=+new Date},I3.prototype._onBrushEnd=function(t){var e,n,i;this._brushing&&(e=this._displayables.brushRect,this._brushing=!1,e)&&(e.attr("ignore",!0),e=e.shape,+new Date-this._brushStartTime<200&&Math.abs(e.width)<5||(n=this._getViewExtent(),this._range=Sr([br(e.x,n,i=[0,100],!0),br(e.x+e.width,n,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1)))},I3.prototype._onBrush=function(t){this._brushing&&(Le(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},I3.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect,i=(o||(o=n.brushRect=new x3({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1),this._brushStart),n=this._displayables.sliderGroup,t=n.transformCoordToLocal(t,e),e=n.transformCoordToLocal(i.x,i.y),n=this._size;t[0]=Math.max(Math.min(n[0],t[0]),0),o.setShape({x:e[0],y:0,width:t[0]-e[0],height:n[1]})},I3.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?S3:null,start:e[0],end:e[1]})},I3.prototype._findCoordRect=function(){var t,e,n=BB(this.dataZoomModel).infoList;return t=(t=!t&&n.length?(n=n[0].model.coordinateSystem).getRect&&n.getRect():t)?t:{x:.2*(n=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*n,height:.6*e}},I3.type="dataZoom.slider",I3);function I3(){var t=null!==v3&&v3.apply(this,arguments)||this;return t.type=I3.type,t._displayables={},t}function T3(t){return"vertical"===t?"ns-resize":"ew-resize"}function C3(t){t.registerComponentModel(y3),t.registerComponentView(M3),d3(t)}r(function(t){r(g3),r(C3)});var D3=["rect","polygon","keep","clear"];function A3(t,e){var n,i,o,r=Ur(t?t.brush:[]);r.length&&(n=[],et(r,function(t){t=t.hasOwnProperty("toolbox")?t.toolbox:[];t instanceof Array&&(n=n.concat(t))}),(r=W(r=t&&t.toolbox)?r[0]:r)||(t.toolbox=[r={feature:{}}]),r=(t=r.feature||(r.feature={})).brush||(t.brush={}),(t=r.type||(r.type=[])).push.apply(t,n),o={},et(i=t,function(t){o[t]=1}),i.length=0,et(o,function(t,e){i.push(e)}),e)&&!t.length&&t.push.apply(t,D3)}var k3=et;function L3(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return 1}function P3(e,t,o){var r={};return k3(t,function(n){var t,i=r[n]=((t=function(){}).prototype.__hidden=t.prototype,new t);k3(e[n],function(t,e){ZT.isValidType(e)&&(t={type:e,visual:t},o&&o(t,n),i[e]=new ZT(t),"opacity"===e)&&((t=S(t)).type="colorAlpha",i.__hidden.__alphaForOpacity=new ZT(t))})}),r}function O3(e,n,t){var i;et(t,function(t){n.hasOwnProperty(t)&&L3(n[t])&&(i=!0)}),i&&et(t,function(t){n.hasOwnProperty(t)&&L3(n[t])?e[t]=S(n[t]):delete e[t]})}var R3={lineX:N3(0),lineY:N3(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&Qx(n.range,t[0],t[1])},rect:function(t,e,n){var i,o,r,a,s,n=n.range;return!(!t||n.length<=1)&&(i=t.x,o=t.y,r=t.width,a=t.height,s=n[0],!!(Qx(n,i,o)||Qx(n,i+r,o)||Qx(n,i,o+a)||Qx(n,i+r,o+a)||z.create(t).contain(s[0],s[1])||Xc(i,o,i+r,o,n)||Xc(i,o,i,o+a,n)||Xc(i+r,o,i+r,o+a,n)||Xc(i,o+a,i+r,o+a,n))||void 0)}}};function N3(i){var o=["x","y"],r=["width","height"];return{point:function(t,e,n){if(t)return n=n.range,E3(t[i],n)},rect:function(t,e,n){if(t)return n=n.range,(t=[t[o[i]],t[o[i]]+t[r[i]]])[1]<t[0]&&t.reverse(),E3(t[0],n)||E3(t[1],n)||E3(n[0],t)||E3(n[1],t)}}}function E3(t,e){return e[0]<=t&&t<=e[1]}var z3=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],V3=(B3.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(t,e,n){(t.coordRanges||(t.coordRanges=[])).push(e),t.coordRange||(t.coordRange=e,n=X3[t.brushType](0,n,e),t.__rangeOffset={offset:Z3[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax})}),t},B3.prototype.matchOutputRanges=function(t,i,o){et(t,function(n){var t=this.findTargetInfo(n,i);t&&!0!==t&&et(t.coordSyses,function(t){var e=X3[n.brushType](1,t,n.range,!0);o(n,e.values,t,i)})},this)},B3.prototype.setInputRanges=function(t,i){et(t,function(t){var e,n=this.findTargetInfo(t,i);t.range=t.range||[],n&&!0!==n&&(t.panelId=n.panelId,n=X3[t.brushType](0,n.coordSys,t.coordRange),e=t.__rangeOffset,t.range=e?Z3[t.brushType](n.values,e.offset,function(t,e){t=q3(t),e=q3(e),t=[t[0]/e[0],t[1]/e[1]];return isNaN(t[0])&&(t[0]=1),isNaN(t[1])&&(t[1]=1),t}(n.xyMinMax,e.xyMinMax)):n.values)},this)},B3.prototype.makePanelOpts=function(n,i){return B(this._targetInfoList,function(t){var e=t.getPanelRect();return{panelId:t.panelId,defaultBrushType:i?i(t):null,clipPath:tO(e),isTargetByCursor:nO(e,n,t.coordSysModel),getLinearBrushOtherExtent:eO(e)}})},B3.prototype.controlSeries=function(t,e,n){t=this.findTargetInfo(t,n);return!0===t||t&&0<=F(t.coordSyses,e.coordinateSystem)},B3.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=G3(e,t),o=0;o<n.length;o++){var r=n[o],a=t.panelId;if(a){if(r.panelId===a)return r}else for(var s=0;s<H3.length;s++)if(H3[s](i,r))return r}return!0},B3);function B3(t,e,n){var i=this,o=(this._targetInfoList=[],G3(e,t));et(W3,function(t,e){n&&n.include&&!(0<=F(n.include,e))||t(o,i._targetInfoList)})}function F3(t){return t[0]>t[1]&&t.reverse(),t}function G3(t,e){return ra(t,e,{includeMainTypes:z3})}var W3={grid:function(t,i){var o=t.xAxisModels,r=t.yAxisModels,t=t.gridModels,e=N(),a={},s={};(o||r||t)&&(et(o,function(t){t=t.axis.grid.model;e.set(t.id,t),a[t.id]=!0}),et(r,function(t){t=t.axis.grid.model;e.set(t.id,t),s[t.id]=!0}),et(t,function(t){e.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),e.each(function(t){var e=t.coordinateSystem,n=[];et(e.getCartesians(),function(t,e){(0<=F(o,t.getAxis("x").model)||0<=F(r,t.getAxis("y").model))&&n.push(t)}),i.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:n[0],coordSyses:n,getPanelRect:Y3.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,n){et(t.geoModels,function(t){var e=t.coordinateSystem;n.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:e,coordSyses:[e],getPanelRect:Y3.geo})})}},H3=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,t=t.gridModel;return(t=!(t=!t&&n?n.axis.grid.model:t)&&i?i.axis.grid.model:t)&&t===e.gridModel},function(t,e){t=t.geoModel;return t&&t===e.geoModel}],Y3={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(zc(t)),e}},X3={lineX:P(U3,0),lineY:P(U3,1),rect:function(t,e,n,i){var o=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),t=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),e=[F3([o[0],t[0]]),F3([o[1],t[1]])];return{values:e,xyMinMax:e}},polygon:function(e,n,t,i){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:B(t,function(t){t=e?n.pointToData(t,i):n.dataToPoint(t,i);return o[0][0]=Math.min(o[0][0],t[0]),o[1][0]=Math.min(o[1][0],t[1]),o[0][1]=Math.max(o[0][1],t[0]),o[1][1]=Math.max(o[1][1],t[1]),t}),xyMinMax:o}}};function U3(t,e,n,i){var o=n.getAxis(["x","y"][t]),n=F3(B([0,1],function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))})),r=[];return r[t]=n,r[1-t]=[NaN,NaN],{values:n,xyMinMax:r}}var Z3={lineX:P(j3,0),lineY:P(j3,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,n,i){return B(t,function(t,e){return[t[0]-i[0]*n[e][0],t[1]-i[1]*n[e][1]]})}};function j3(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function q3(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var K3=["inBrush","outOfBrush"],$3="__ecBrushSelect",J3="__ecInBrushSelectEvent";function Q3(e){e.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new V3(t.option,e)).setInputRanges(t.areas,e)})}function t4(c,t,e){var o,r,n,i,a,s,l=[];c.eachComponent({mainType:"brush"},function(t){e&&"takeGlobalCursor"===e.type&&t.setBrushOption("brush"===e.key?e.brushOption:{brushType:!1})}),Q3(c),c.eachComponent({mainType:"brush"},function(u,t){var y={brushId:u.id,brushIndex:t,brushName:u.name,areas:S(u.areas),selected:[]},e=(l.push(y),u.option),n=e.brushLink,i=[],m=[],v=[],x=!1,h=(t||(o=e.throttleType,r=e.throttleDelay),B(u.areas,function(t){var e,n,i,o=i4[t.brushType],o=V({boundingRect:o?o(t):void 0},t);return o.selectors=(n=(e=o).brushType,i={point:function(t){return R3[n].point(t,i,e)},rect:function(t){return R3[n].rect(t,i,e)}}),o})),_=P3(u.option,K3,function(t){t.mappingMethod="fixed"});function b(t){return"all"===n||i[t]}function w(t){return!!t.length}W(n)&&et(n,function(t){i[t]=1}),c.eachSeries(function(t,e){var n,i,o,r,a,s,l=v[e]=[];"parallel"===t.subType?(a=e,s=(r=t).coordinateSystem,x=x||s.hasAxisBrushed(),b(a)&&s.eachActiveState(r.getData(),function(t,e){"active"===t&&(m[e]=1)})):(a=e,i=l,(n=t).brushSelector&&!function(t,e){t=t.option.seriesIndex;return null!=t&&"all"!==t&&(W(t)?F(t,e)<0:e!==t)}(u,a)&&(et(h,function(t){u.brushTargetManager.controlSeries(t,n,c)&&i.push(t),x=x||w(i)}),b(a))&&w(i)&&(o=n.getData()).each(function(t){n4(n,i,o,t)&&(m[t]=1)}))}),c.eachSeries(function(e,t){var s,l,u,h,c,p,d,n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]},i=(y.selected.push(n),v[t]),o=e.getData(),r=b(t)?function(t){return m[t]?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return n4(e,i,o,t)?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"};function g(t){return Bm(l,p,t)}function f(t,e){Gm(l,p,t,e)}function a(t,e){p=null==c?t:e;e=l.getRawDataItem(p);if(!e||!1!==e.visualMap)for(var e=u.call(h,t),n=s[e],i=d[e],o=0,r=i.length;o<r;o++){var a=i[o];n[a]&&n[a].applyVisual(t,g,f)}}(b(t)?x:w(i))&&(s=_,l=o,u=r,d={},et(K3,function(t){var e=ZT.prepareVisualTypes(s[t]);d[t]=e}),null==c?l.each(a):l.each([c],a))})}),t=t,n=o,i=r,a=l,(s=e)&&!(s=t.getZr())[J3]&&(s[$3]||(s[$3]=e4),lm(s,$3,i,n)(t,a))}function e4(t,e){var n;t.isDisposed()||((n=t.getZr())[J3]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[J3]=!1)}function n4(t,e,n,i){for(var o=0,r=e.length;o<r;o++){var a=e[o];if(t.brushSelector(i,n,a.selectors,a))return 1}}var i4={rect:function(t){return o4(t.range)},polygon:function(t){for(var e=t.range,n=0,i=e.length;n<i;n++){var o=o||[[1/0,-1/0],[1/0,-1/0]],r=e[n];r[0]<o[0][0]&&(o[0][0]=r[0]),r[0]>o[0][1]&&(o[0][1]=r[0]),r[1]<o[1][0]&&(o[1][0]=r[1]),r[1]>o[1][1]&&(o[1][1]=r[1])}return o&&o4(o)}};function o4(t){return new z(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}u(s4,r4=Uy),s4.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new bP(e.getZr())).on("brush",T(this._onBrush,this)).mount()},s4.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},s4.prototype.updateTransform=function(t,e,n,i){Q3(e),this._updateController(t,e,n,i)},s4.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},s4.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},s4.prototype._updateController=function(t,e,n,i){i&&i.$from===t.id||this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},s4.prototype.dispose=function(){this._brushController.dispose()},s4.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:"brush",brushId:e,areas:S(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:S(n),$from:e})},s4.type="brush";var r4,a4=s4;function s4(){var t=null!==r4&&r4.apply(this,arguments)||this;return t.type=s4.type,t}u(h4,l4=g),h4.prototype.optionUpdated=function(t,e){var n=this.option,e=(e||O3(n,t,["inBrush","outOfBrush"]),n.inBrush=n.inBrush||{});n.outOfBrush=n.outOfBrush||{color:"#ddd"},e.hasOwnProperty("liftZ")||(e.liftZ=5)},h4.prototype.setAreas=function(t){t&&(this.areas=B(t,function(t){return c4(this.option,t)},this))},h4.prototype.setBrushOption=function(t){this.brushOption=c4(this.option,t),this.brushType=this.brushOption.brushType},h4.type="brush",h4.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],h4.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4};var l4,u4=h4;function h4(){var t=null!==l4&&l4.apply(this,arguments)||this;return t.type=h4.type,t.areas=[],t.brushOption={},t}function c4(t,e){return d({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Tp(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}function p4(){}var d4={};function g4(t,e){d4[t]=e}function f4(t){return d4[t]}var y4,m4=["rect","polygon","lineX","lineY","keep","clear"],v4=(u(x4,y4=p4),x4.prototype.render=function(e,t,n){var i,o,r;t.eachComponent({mainType:"brush"},function(t){i=t.brushType,o=t.brushOption.brushMode||"single",r=r||!!t.areas.length}),this._brushType=i,this._brushMode=o,et(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?r:t===i)?"emphasis":"normal")})},x4.prototype.updateView=function(t,e,n){this.render(t,e,n)},x4.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return et(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},x4.prototype.onclick=function(t,e,n){var i=this._brushType,o=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},x4.getDefaultOption=function(t){return{show:!0,type:m4.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},x4);function x4(){return null!==y4&&y4.apply(this,arguments)||this}r(function(t){t.registerComponentView(a4),t.registerComponentModel(u4),t.registerPreprocessor(A3),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,t4),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(t){t.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Bt),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Bt),g4("brush",v4)});var _4,b4=function(t,e,n){t=S((w4[t]||{})[e]);return n&&W(t)?t[t.length-1]:t},w4={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},S4=ZT.mapVisual,M4=ZT.eachVisual,I4=W,T4=et,C4=Sr,D4=br,mp=(u(A4,_4=g),A4.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},A4.prototype.optionUpdated=function(t,e){var n=this.option;e||O3(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},A4.prototype.resetVisual=function(t){var e=this.stateList;t=T(t,this),this.controllerVisuals=P3(this.option.controller,e,t),this.targetVisuals=P3(this.option.target,e,t)},A4.prototype.getItemSymbol=function(){return null},A4.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,e){n.push(e)}):n=Ur(t),n},A4.prototype.eachTargetSeries=function(e,n){et(this.getTargetSeriesIndices(),function(t){t=this.ecModel.getSeriesByIndex(t);t&&e.call(n,t)},this)},A4.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(t){t===e&&(n=!0)}),n},A4.prototype.formatValueText=function(t,e,n){var i,o=this.option,r=o.precision,a=this.dataBound,o=o.formatter,e=(n=n||["<",">"],W(t)&&(t=t.slice(),i=!0),e?t:i?[s(t[0]),s(t[1])]:s(t));return Y(o)?o.replace("{value}",i?e[0]:e).replace("{value2}",i?e[1]:e):D(o)?i?o(t[0],t[1]):o(t):i?t[0]===a[0]?n[0]+" "+e[1]:t[1]===a[1]?n[1]+" "+e[0]:e[0]+" - "+e[1]:e;function s(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(r,20))}},A4.prototype.resetExtent=function(){var t=this.option,t=C4([t.min,t.max]);this._dataExtent=t},A4.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;0<=i;i--){var o=n[i],o=t.getDimensionInfo(o);if(!o.isCalculationCoord)return o.storeDimIndex}},A4.prototype.getExtent=function(){return this._dataExtent.slice()},A4.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,t={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),o=n.controller||(n.controller={}),u=(d(i,t),d(o,t),this.isCategory());function r(t){I4(n.color)&&!t.inRange&&(t.inRange={color:n.color.slice().reverse()}),t.inRange=t.inRange||{color:e.get("gradientColor")}}r.call(this,i),r.call(this,o),function(t,e,n){var e=t[e],i=t[n];e&&!i&&(i=t[n]={},T4(e,function(t,e){var n;ZT.isValidType(e)&&null!=(n=b4(e,"inactive",u))&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}))}.call(this,i,"inRange","outOfRange"),function(o){var r=(o.inRange||{}).symbol||(o.outOfRange||{}).symbol,a=(o.inRange||{}).symbolSize||(o.outOfRange||{}).symbolSize,s=this.get("inactiveColor"),l=this.getItemSymbol()||"roundRect";T4(this.stateList,function(t){var e,n=this.itemSize,i=o[t],t=(null==(i=i||(o[t]={color:u?s:[s]})).symbol&&(i.symbol=r&&S(r)||(u?l:[l])),null==i.symbolSize&&(i.symbolSize=a&&S(a)||(u?n[0]:[n[0],n[0]])),i.symbol=S4(i.symbol,function(t){return"none"===t?l:t}),i.symbolSize);null!=t&&(e=-1/0,M4(t,function(t){e<t&&(e=t)}),i.symbolSize=S4(t,function(t){return D4(t,[0,e],[0,n[0]],!0)}))},this)}.call(this,o)},A4.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},A4.prototype.isCategory=function(){return!!this.option.categories},A4.prototype.setSelected=function(t){},A4.prototype.getSelected=function(){return null},A4.prototype.getValueState=function(t){return null},A4.prototype.getVisualMeta=function(t){return null},A4.type="visualMap",A4.dependencies=["series"],A4.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},A4);function A4(){var t=null!==_4&&_4.apply(this,arguments)||this;return t.type=A4.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}var k4,L4=[20,140],P4=(u(O4,k4=mp),O4.prototype.optionUpdated=function(t,e){k4.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},O4.prototype.resetItemSize=function(){k4.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;null!=t[0]&&!isNaN(t[0])||(t[0]=L4[0]),null!=t[1]&&!isNaN(t[1])||(t[1]=L4[1])},O4.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):W(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},O4.prototype.completeVisualOption=function(){k4.prototype.completeVisualOption.apply(this,arguments),et(this.stateList,function(t){t=this.option.controller[t].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},O4.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},O4.prototype.getSelected=function(){var t=this.getExtent(),e=Sr((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]<t[0]&&(e[0]=t[0]),e[1]<t[0]&&(e[1]=t[0]),e},O4.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent();return(e[0]<=n[0]||e[0]<=t)&&(e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},O4.prototype.findTargetDataIndices=function(i){var o=[];return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimensionIndex(e),function(t,e){i[0]<=t&&t<=i[1]&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},O4.prototype.getVisualMeta=function(n){var t=R4(0,0,this.getExtent()),e=R4(0,0,this.option.range.slice()),i=[];function o(t,e){i.push({value:t,color:n(t,e)})}for(var r=0,a=0,s=e.length,l=t.length;a<l&&(!e.length||t[a]<=e[0]);a++)t[a]<e[r]&&o(t[a],"outOfRange");for(var u=1;r<s;r++,u=0)u&&i.length&&o(e[r],"outOfRange"),o(e[r],"inRange");for(u=1;a<l;a++)(!e.length||e[e.length-1]<t[a])&&(u&&(i.length&&o(i[i.length-1].value,"outOfRange"),u=0),o(t[a],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},O4.type="visualMap.continuous",O4.defaultOption=kp(mp.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),O4);function O4(){var t=null!==k4&&k4.apply(this,arguments)||this;return t.type=O4.type,t}function R4(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,o=n[0],r=[],a=0;a<=200&&o<n[1];a++)r.push(o),o+=i;return r.push(n[1]),r}u(E4,N4=Uy),E4.prototype.init=function(t,e){this.ecModel=t,this.api=e},E4.prototype.render=function(t,e,n,i){!1!==(this.visualMapModel=t).get("show")?this.doRender(t,e,n,i):this.group.removeAll()},E4.prototype.renderBackground=function(t){var e=this.visualMapModel,n=gd(e.get("padding")||0),i=t.getBoundingRect();t.add(new L({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},E4.prototype.getControllerVisual=function(n,i,o){var t,e=(o=o||{}).forceState,r=this.visualMapModel,a={};function s(t){return a[t]}function l(t,e){a[t]=e}"color"===i&&(t=r.get("contentColor"),a.color=t);var u=r.controllerVisuals[e||r.getValueState(n)];return et(ZT.prepareVisualTypes(u),function(t){var e=u[t];o.convertOpacityToAlpha&&"opacity"===t&&(t="colorAlpha",e=u.__alphaForOpacity),ZT.dependsOn(t,i)&&e&&e.applyVisual(n,s,l)}),a[i]},E4.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Dd(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},E4.prototype.doRender=function(t,e,n,i){},E4.type="visualMap";var N4,e=E4;function E4(){var t=null!==N4&&N4.apply(this,arguments)||this;return t.type=E4.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}var z4=[["left","right","width"],["top","bottom","height"]];function V4(t,e,n){var i=t.option,t=i.align;if(null!=t&&"auto"!==t)return t;for(var t={width:e.getWidth(),height:e.getHeight()},o="horizontal"===i.orient?1:0,r=z4[o],a=[0,null,10],s={},l=0;l<3;l++)s[z4[1-o][l]]=a[l],s[r[l]]=2===l?n[0]:i[r[l]];var e=[["x","width",3],["y","height",0]][o],u=Cd(s,t,i.padding);return r[(u.margin[e[2]]||0)+u[e[0]]+.5*u[e[1]]<.5*t[e[1]]?0:1]}function B4(t,e){return et(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var F4,G4=br,W4=et,H4=Math.min,Y4=Math.max,X4=(u(U4,F4=e),U4.prototype.doRender=function(t,e,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},U4.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group,t=(this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e),t.get("text"));this._renderEndsText(e,t,0),this._renderEndsText(e,t,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},U4.prototype._renderEndsText=function(t,e,n){var i,o,r;e&&(e=null!=(e=e[1-n])?e+"":"",o=(i=this.visualMapModel).get("textGap"),i=i.itemSize,r=this._shapes.mainGroup,i=this._applyTransform([i[0]/2,0===n?-o:i[1]+o],r),o=this._applyTransform(0===n?"bottom":"top",r),n=this._orient,r=this.visualMapModel.textStyleModel,this.group.add(new K({style:np(r,{x:i[0],y:i[1],verticalAlign:"horizontal"===n?"middle":o,align:"horizontal"===n?o:"center",text:e})})))},U4.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,o=this._orient,r=this._useHandle,a=V4(e,this.api,i),a=n.mainGroup=this._createBarGroup(a),s=new Z,s=(a.add(s),s.add(n.outOfRange=Z4()),s.add(n.inRange=Z4(null,r?q4(this._orient):null,T(this._dragHandle,this,"all",!1),T(this._dragHandle,this,"all",!0))),s.setClipPath(new L({shape:{x:0,y:0,width:i[0],height:i[1],r:3}})),e.textStyleModel.getTextRect("国")),s=Y4(s.width,s.height);r&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,a,0,i,s,o),this._createHandle(e,a,1,i,s,o)),this._createIndicator(e,a,i,s,o),t.add(a)},U4.prototype._createHandle=function(t,e,n,i,o,r){var a=T(this._dragHandle,this,n,!1),s=T(this._dragHandle,this,n,!0),l=Jo(t.get("handleSize"),i[0]),u=i0(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),h=q4(this._orient),i=(u.attr({cursor:h,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){Le(t.event)}}),u.x=i[0]/2,u.useStyle(t.getModel("handleStyle").getItemStyle()),u.setStyle({strokeNoScale:!0,strokeFirst:!0}),u.style.lineWidth*=2,u.ensureState("emphasis").style=t.getModel(["emphasis","handleStyle"]).getItemStyle(),Iu(u,!0),e.add(u),this.visualMapModel.textStyleModel),t=new K({cursor:h,draggable:!0,drift:a,onmousemove:function(t){Le(t.event)},ondragend:s,style:np(i,{x:0,y:0,text:""})}),e=(t.ensureState("blur").style={opacity:.1},t.stateTransition={duration:200},this.group.add(t),[l,0]),h=this._shapes;h.handleThumbs[n]=u,h.handleLabelPoints[n]=e,h.handleLabels[n]=t},U4.prototype._createIndicator=function(t,e,n,i,o){var r=Jo(t.get("indicatorSize"),n[0]),r=i0(t.get("indicatorIcon"),-r/2,-r/2,r,r,null,!0),t=(r.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2}),t.getModel("indicatorStyle").getItemStyle()),a=(r instanceof nl?(a=r.style,r.useStyle(H({image:a.image,x:a.x,y:a.y,width:a.width,height:a.height},t))):r.useStyle(t),e.add(r),this.visualMapModel.textStyleModel),t=new K({silent:!0,invisible:!0,style:np(a,{x:0,y:0,text:""})}),e=(this.group.add(t),[("horizontal"===o?i/2:6)+n[0]/2,0]),a=this._shapes;a.indicator=r,a.indicatorLabel=t,a.indicatorLabelPoint=e,this._firstShowIndicator=!0},U4.prototype._dragHandle=function(t,e,n,i){this._useHandle&&(this._dragging=!e,e||(n=this._applyTransform([n,i],this._shapes.mainGroup,!0),this._updateInterval(t,n[1]),this._hideIndicator(),this._updateView()),e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?this._hovering||this._clearHoverLinkToSeries():j4(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1))},U4.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),t=[0,t.itemSize[1]];this._handleEnds=[G4(e[0],n,t,!0),G4(e[1],n,t,!0)]},U4.prototype._updateInterval=function(t,e){var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]],e=(XL(e=e||0,i,o,t,0),n.getExtent());this._dataInterval=[G4(i[0],o,e,!0),G4(i[1],o,e,!0)]},U4.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,e=[0,e.itemSize[1]],t=t?e:this._handleEnds,o=this._createBarVisual(this._dataInterval,n,t,"inRange"),n=this._createBarVisual(n,n,e,"outOfRange");i.inRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),i.outOfRange.setStyle({fill:n.barColor}).setShape("points",n.barPoints),this._updateHandle(t,o)},U4.prototype._createBarVisual=function(t,e,n,i){var i={forceState:i,convertOpacityToAlpha:!0},o=this._makeColorGradient(t,i),t=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],i=this._createBarPoints(n,t);return{barColor:new Qh(0,0,0,1,o),barPoints:i,handlesColor:[o[0].color,o[o.length-1].color]}},U4.prototype._makeColorGradient=function(t,e){var n=[],i=(t[1]-t[0])/100;n.push({color:this.getControllerVisual(t[0],"color",e),offset:0});for(var o=1;o<100;o++){var r=t[0]+i*o;if(r>t[1])break;n.push({color:this.getControllerVisual(r,"color",e),offset:o/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},U4.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},U4.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new Z("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},U4.prototype._updateHandle=function(i,o){var r,a,s,l,u,h;this._useHandle&&(r=this._shapes,a=this.visualMapModel,s=r.handleThumbs,l=r.handleLabels,u=a.itemSize,h=a.getExtent(),W4([0,1],function(t){var e=s[t],n=(e.setStyle("fill",o.handlesColor[t]),e.y=i[t],G4(i[t],[0,u[1]],h,!0)),n=this.getControllerVisual(n,"symbolSize"),n=(e.scaleX=e.scaleY=n/u[0],e.x=u[0]-n/2,Vc(r.handleLabelPoints[t],zc(e,this.group)));l[t].setStyle({x:n[0],y:n[1],text:a.formatValueText(this._dataInterval[t]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",r.mainGroup):"center"})},this))},U4.prototype._showIndicator=function(t,e,n,i){var o=this.visualMapModel,r=o.getExtent(),a=o.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,"symbolSize"),t=G4(t,r,s,!0),r=a[0]-c/2,s={x:u.x,y:u.y},a=(u.y=t,u.x=r,Vc(l.indicatorLabelPoint,zc(u,this.group))),c=l.indicatorLabel,l=(c.attr("invisible",!1),this._applyTransform("left",l.mainGroup)),p="horizontal"===this._orient,n=(c.setStyle({text:(n||"")+o.formatValueText(e),verticalAlign:p?l:"middle",align:p?"center":l}),{x:r,y:t,style:{fill:h}}),e={style:{x:a[0],y:a[1]}},d=(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator?(p={duration:100,easing:"cubicInOut",additive:!0},u.x=s.x,u.y=s.y,u.animateTo(n,p),c.animateTo(e,p)):(u.attr(n),c.attr(e)),this._firstShowIndicator=!1,this._shapes.handleLabels);if(d)for(var g=0;g<d.length;g++)this._api.enterBlur(d[g])}},U4.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(t){var e;n._hovering=!0,n._dragging||(e=n.visualMapModel.itemSize,(t=n._applyTransform([t.offsetX,t.offsetY],n._shapes.mainGroup,!0,!0))[1]=H4(Y4(0,t[1]),e[1]),n._doHoverLinkToSeries(t[1],0<=t[0]&&t[0]<=e[0]))}).on("mouseout",function(){n._hovering=!1,n._dragging||n._clearHoverLinkToSeries()})},U4.prototype._enableHoverLinkFromSeries=function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},U4.prototype._doHoverLinkToSeries=function(t,e){var n,i,o,r,a,s=this.visualMapModel,l=s.itemSize;function u(t,e,n){for(var i=0,o=t.length;i<o;i++){var r=Qr(t[i].seriesId,null);if(null==r)return;for(var a=Ur(t[i].dataIndex),s=n&&n[r],l=0,u=a.length;l<u;l++){var h=a[l];s&&s[h]?s[h]=null:(e[r]||(e[r]={}))[h]=1}}}function h(t,e){var n,i,o=[];for(n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e?o.push(+n):(i=h(t[n],!0)).length&&o.push({seriesId:n,dataIndex:i}));return o}s.option.hoverLink&&(l=[0,l[1]],n=s.getExtent(),t=H4(Y4(l[0],t),l[1]),o=n,r=l,a=6,i=(i=s).get("hoverLinkDataSize"),o=[t-(i=a=i?G4(i,o,r,!0)/2:a),t+i],r=G4(t,l,n,!0),a=[G4(o[0],l,n,!0),G4(o[1],l,n,!0)],o[0]<l[0]&&(a[0]=-1/0),l[1]<o[1]&&(a[1]=1/0),e&&(a[0]===-1/0?this._showIndicator(r,a[1],"< ",i):a[1]===1/0?this._showIndicator(r,a[0],"> ",i):this._showIndicator(r,r,"≈ ",i)),t=this._hoverLinkDataIndices,n=[],(e||j4(s))&&(n=this._hoverLinkDataIndices=s.findTargetDataIndices(a)),l=n,o={},u(t||[],r={}),u(l||[],o,r),i=[h(r),h(o)],this._dispatchHighDown("downplay",B4(i[0],s)),this._dispatchHighDown("highlight",B4(i[1],s)))},U4.prototype._hoverLinkFromSeriesMouseOver=function(t){var e,n;Ym(t.target,function(t){t=$(t);return null!=t.dataIndex&&(e=t,1)},!0),e&&(t=this.ecModel.getSeriesByIndex(e.seriesIndex),(n=this.visualMapModel).isTargetSeries(t))&&(n=(t=t.getData(e.dataType)).getStore().get(n.getDataDimensionIndex(t),e.dataIndex),isNaN(n)||this._showIndicator(n,n))},U4.prototype._hideIndicator=function(){var t=this._shapes,e=(t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0),this._shapes.handleLabels);if(e)for(var n=0;n<e.length;n++)this._api.leaveBlur(e[n])},U4.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",B4(t,this.visualMapModel)),t.length=0},U4.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},U4.prototype._applyTransform=function(t,e,n,i){e=zc(e,i?null:this.group);return(W(t)?Vc:Bc)(t,e,n)},U4.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},U4.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},U4.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},U4.type="visualMap.continuous",U4);function U4(){var t=null!==F4&&F4.apply(this,arguments)||this;return t.type=U4.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}function Z4(t,e,n,i){return new Ch({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Le(t.event)},ondragend:i})}function j4(t){var e=t.get("hoverLinkOnHandle");return null==e?t.get("realtime"):e}function q4(t){return"vertical"===t?"ns-resize":"ew-resize"}function K4(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})}var $4={type:"selectDataRange",event:"dataRangeSelected",update:"update"},J4=[{createOnAllSeries:!0,reset:function(n,t){var i=[];return t.eachComponent("visualMap",function(t){var g,f,y,m,e=n.pipelineContext;!t.isTargetSeries(n)||e&&e.large||i.push((e=t.stateList,g=t.targetVisuals,f=T(t.getValueState,t),y=t.getDataDimensionIndex(n.getData()),m={},et(e,function(t){var e=ZT.prepareVisualTypes(g[t]);m[t]=e}),{progress:function(t,n){var e,i;function o(t){return Bm(n,i,t)}function r(t,e){Gm(n,i,t,e)}null!=y&&(e=n.getDimensionIndex(y));for(var a=n.getStore();null!=(i=t.next());){var s=n.getRawDataItem(i);if(!s||!1!==s.visualMap)for(var l=null!=y?a.get(e,i):i,s=f(l),u=g[s],h=m[s],c=0,p=h.length;c<p;c++){var d=h[c];u[d]&&u[d].applyVisual(l,o,r)}}}}))}),i}},{createOnAllSeries:!0,reset:function(n,t){var i=n.getData(),o=[];t.eachComponent("visualMap",function(t){var e;t.isTargetSeries(n)&&(e=t.getVisualMeta(T(Q4,null,n,t))||{stops:[],outerColors:[]},0<=(t=t.getDataDimensionIndex(i)))&&(e.dimension=t,o.push(e))}),n.getData().setVisual("visualMeta",o)}}];function Q4(t,e,n,i){for(var o=e.targetVisuals[i],r=ZT.prepareVisualTypes(o),a={color:Fm(t.getData(),"color")},s=0,l=r.length;s<l;s++){var u=r[s],u=o["opacity"===u?"__alphaForOpacity":u];u&&u.applyVisual(n,h,c)}return a.color;function h(t){return a[t]}function c(t,e){a[t]=e}}var tF=et;function eF(t){t=t&&t.visualMap;W(t)||(t=t?[t]:[]),tF(t,function(t){t&&(nF(t,"splitList")&&!nF(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList),t=t.pieces)&&W(t)&&tF(t,function(t){O(t)&&(nF(t,"start")&&!nF(t,"min")&&(t.min=t.start),nF(t,"end"))&&!nF(t,"max")&&(t.max=t.end)})})}function nF(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var iF=!1;function oF(e){iF||(iF=!0,e.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?0<t.pieces.length:0<t.splitNumber)&&!t.calculable?"piecewise":"continuous"}),e.registerAction($4,K4),et(J4,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(eF))}function rF(t){t.registerComponentModel(P4),t.registerComponentView(X4),oF(t)}u(uF,aF=mp),uF.prototype.optionUpdated=function(t,e){aF.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode(),i=(this._pieceList=[],lF[this._mode].call(this,this._pieceList),this._resetSelected(t,e),this.option.categories);this.resetVisual(function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=S(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=B(this._pieceList,function(t){return t=S(t),"inRange"!==e&&(t.visual=null),t}))})},uF.prototype.completeVisualOption=function(){var i=this.option,n={},t=ZT.listVisualTypes(),o=this.isCategory();function r(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}et(i.pieces,function(e){et(t,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),et(n,function(t,e){var n=!1;et(this.stateList,function(t){n=n||r(i,t,e)||r(i.target,t,e)},this),n||et(this.stateList,function(t){(i[t]||(i[t]={}))[e]=b4(e,"inRange"===t?"active":"inactive",o)})},this),aF.prototype.completeVisualOption.apply(this,arguments)},uF.prototype._resetSelected=function(t,e){var n,i=this.option,o=this._pieceList,r=(e?i:t).selected||{};i.selected=r,et(o,function(t,e){t=this.getSelectedMapKey(t);r.hasOwnProperty(t)||(r[t]=!0)},this),"single"===i.selectedMode&&(n=!1,et(o,function(t,e){t=this.getSelectedMapKey(t);r[t]&&(n?r[t]=!1:n=!0)},this))},uF.prototype.getItemSymbol=function(){return this.get("itemSymbol")},uF.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},uF.prototype.getPieceList=function(){return this._pieceList},uF.prototype._determineMode=function(){var t=this.option;return t.pieces&&0<t.pieces.length?"pieces":this.option.categories?"categories":"splitNumber"},uF.prototype.setSelected=function(t){this.option.selected=S(t)},uF.prototype.getValueState=function(t){t=ZT.findPieceIndex(t,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},uF.prototype.findTargetDataIndices=function(i){var o=[],r=this._pieceList;return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimensionIndex(e),function(t,e){ZT.findPieceIndex(t,r)===i&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},uF.prototype.getRepresentValue=function(t){return this.isCategory()||null!=t.value?t.value:(t=t.interval||[])[0]===-1/0&&t[1]===1/0?0:(t[0]+t[1])/2},uF.prototype.getVisualMeta=function(i){var o,r,a,t,e,n;if(!this.isCategory())return o=[],r=["",""],(t=(a=this)._pieceList.slice()).length?((e=t[0].interval[0])!==-1/0&&t.unshift({interval:[-1/0,e]}),(e=t[t.length-1].interval[1])!==1/0&&t.push({interval:[e,1/0]})):t.push({interval:[-1/0,1/0]}),n=-1/0,et(t,function(t){t=t.interval;t&&(t[0]>n&&s([n,t[0]],"outOfRange"),s(t.slice()),n=t[1])},this),{stops:o,outerColors:r};function s(t,e){var n=a.getRepresentValue({interval:t}),n=(e=e||a.getValueState(n),i(n,e));t[0]===-1/0?r[0]=n:t[1]===1/0?r[1]=n:o.push({value:t[0],color:n},{value:t[1],color:n})}},uF.type="visualMap.piecewise",uF.defaultOption=kp(mp.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0});var aF,sF=uF,lF={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber,o=Math.max(parseInt(o,10),1);e.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(n)!==r&&n<5;)n++;e.precision=n,r=+r.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<o;s+=r,a++){var l=a===o-1?i[1]:s+r;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),zr(t),et(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(e){var t=this.option;et(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),hF(t,e)},pieces:function(c){var t=this.option;et(t.pieces,function(t,e){e={text:"",index:e};if(null!=(t=O(t)?t:{value:t}).label&&(e.text=t.label),t.hasOwnProperty("value")){var n=e.value=t.value;e.interval=[n,n],e.close=[1,1]}else{for(var i=e.interval=[],o=e.close=[0,0],r=[1,0,1],a=[-1/0,1/0],s=[],l=0;l<2;l++){for(var u=[["gte","gt","min"],["lte","lt","max"]][l],h=0;h<3&&null==i[l];h++)i[l]=t[u[h]],o[l]=r[h],s[l]=2===h;null==i[l]&&(i[l]=a[l])}s[0]&&i[1]===1/0&&(o[0]=0),s[1]&&i[0]===-1/0&&(o[1]=0),i[0]===i[1]&&o[0]&&o[1]&&(e.value=i[0])}e.visual=ZT.retrieveVisuals(t),c.push(e)},this),hF(t,c),zr(c),et(c,function(t){var e=t.close,e=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,e)},this)}};function uF(){var t=null!==aF&&aF.apply(this,arguments)||this;return t.type=uF.type,t._pieceList=[],t}function hF(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}u(dF,cF=e),dF.prototype.doRender=function(){var i=this.group,o=(i.removeAll(),this.visualMapModel),r=o.get("textGap"),t=o.textStyleModel,a=t.getFont(),s=t.getTextColor(),l=this._getItemAlign(),u=o.itemSize,t=this._getViewData(),e=t.endsText,h=wt(o.get("showLabel",!0),!e);e&&this._renderEndsText(i,e[0],u,h,l),et(t.viewPieceList,function(t){var e=t.piece,n=new Z,t=(n.onclick=T(this._onItemClick,this,e),this._enableHoverLink(n,t.indexInModelPieceList),o.getRepresentValue(e));this._createItemSymbol(n,t,[0,0,u[0],u[1]]),h&&(t=this.visualMapModel.getValueState(t),n.add(new K({style:{x:"right"===l?-r:u[0]+r,y:u[1]/2,text:e.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:"outOfRange"===t?.5:1}}))),i.add(n)},this),e&&this._renderEndsText(i,e[1],u,h,l),Td(o.get("orient"),i,o.get("itemGap")),this.renderBackground(i),this.positionGroup(i)},dF.prototype._enableHoverLink=function(t,n){var i=this,e=(t.on("mouseover",function(){return e("highlight")}).on("mouseout",function(){return e("downplay")}),function(t){var e=i.visualMapModel;e.option.hoverLink&&i.api.dispatchAction({type:t,batch:B4(e.findTargetDataIndices(n),e)})})},dF.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;return"vertical"===e.orient?V4(t,this.api,t.itemSize):(t=e.align)&&"auto"!==t?t:"left"},dF.prototype._renderEndsText=function(t,e,n,i,o){var r,a;e&&(r=new Z,a=this.visualMapModel.textStyleModel,r.add(new K({style:np(a,{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:e})})),t.add(r))},dF.prototype._getViewData=function(){var t=this.visualMapModel,e=B(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),t=t.get("inverse");return("horizontal"===i?t:!t)?e.reverse():n=n&&n.slice().reverse(),{viewPieceList:e,endsText:n}},dF.prototype._createItemSymbol=function(t,e,n){t.add(i0(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},dF.prototype._onItemClick=function(t){var n,i,e=this.visualMapModel,o=e.option,r=o.selectedMode;r&&(n=S(o.selected),i=e.getSelectedMapKey(t),"single"===r||!0===r?(n[i]=!0,et(n,function(t,e){n[e]=e===i})):n[i]=!n[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n}))},dF.type="visualMap.piecewise";var cF,pF=dF;function dF(){var t=null!==cF&&cF.apply(this,arguments)||this;return t.type=dF.type,t}function gF(t){t.registerComponentModel(sF),t.registerComponentView(pF),oF(t)}r(function(t){r(rF),r(gF)});u(mF,fF=xa),mF.type="dataZoom.select";var fF,yF=mF;function mF(){var t=null!==fF&&fF.apply(this,arguments)||this;return t.type=mF.type,t}u(_F,vF=Jm),_F.type="dataZoom.select";var vF,xF=_F;function _F(){var t=null!==vF&&vF.apply(this,arguments)||this;return t.type=_F.type,t}function bF(t){t.registerComponentModel(yF),t.registerComponentView(xF),d3(t)}u(MF,wF=g),MF.prototype.optionUpdated=function(){wF.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;et(this.option.feature,function(t,e){e=f4(e);e&&(e.getDefaultOption&&(e.defaultOption=e.getDefaultOption(n)),d(t,e.defaultOption))})},MF.type="toolbox",MF.layoutMode={type:"box",ignoreSize:!0},MF.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}};var wF,SF=MF;function MF(){var t=null!==wF&&wF.apply(this,arguments)||this;return t.type=MF.type,t}u(CF,IF=Uy),CF.prototype.render=function(d,g,f,y){var m,v,x,_,b,t,e,n,i,o,r,w=this.group;function a(t,e){var n,t=b[t],e=b[e],i=x[t],o=new Tp(i,d,d.ecModel);if(y&&null!=y.newTitle&&y.featureName===t&&(i.title=y.newTitle),t&&!e){if(0===t.indexOf("my"))n={onclick:o.option.onclick,featureName:t};else{i=f4(t);if(!i)return;n=new i}_[t]=n}else if(!(n=_[e]))return;n.uid=Ap("toolbox-feature"),n.model=o,n.ecModel=g,n.api=f;var r,a,s,l,u,h,c,p,i=n instanceof p4;t||!e?!o.get("show")||i&&n.unusable?i&&n.remove&&n.remove(g,f):(a=n,e=t,u=(r=o).getModel("iconStyle"),h=r.getModel(["emphasis","iconStyle"]),t=a instanceof p4&&a.getIcons?a.getIcons():r.get("icon"),c=r.get("title")||{},Y(t)?(s={})[e]=t:s=t,Y(c)?(l={})[e]=c:l=c,p=r.iconPaths={},et(s,function(t,e){var n=Yc(t,{},{x:-m/2,y:-m/2,width:m,height:m}),i=(n.setStyle(u.getItemStyle()),n.ensureState("emphasis").style=h.getItemStyle(),new K({style:{text:l[e],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0}));n.setTextContent(i),Zc({el:n,componentModel:d,itemName:e,formatterParamsExtra:{title:l[e]}}),n.__title=l[e],n.on("mouseover",function(){var t=h.getItemStyle(),e=v?null==d.get("right")&&"right"!==d.get("left")?"right":"left":null==d.get("bottom")&&"bottom"!==d.get("top")?"bottom":"top";i.setStyle({fill:h.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),n.setTextConfig({position:h.get("textPosition")||e}),i.ignore=!d.get("showTitle"),f.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==r.get(["iconStatus",e])&&f.leaveEmphasis(this),i.hide()}),("emphasis"===r.get(["iconStatus",e])?su:lu)(n),w.add(n),n.on("click",T(a.onclick,a,g,f,e)),p[e]=n}),o.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?su:lu)(i[t])},n instanceof p4&&n.render&&n.render(o,g,f,y)):i&&n.dispose&&n.dispose(g,f)}w.removeAll(),d.get("show")&&(m=+d.get("itemSize"),v="vertical"===d.get("orient"),x=d.get("feature")||{},_=this._features||(this._features={}),b=[],et(x,function(t,e){b.push(e)}),new Qv(this._featureNames||[],b).add(a).update(a).remove(P(a,null)).execute(),this._featureNames=b,t=w,n=f,i=(e=d).getBoxLayoutParams(),o=e.get("padding"),n={width:n.getWidth(),height:n.getHeight()},r=Cd(i,n,o),Td(e.get("orient"),t,e.get("itemGap"),r.width,r.height),Dd(t,i,n,o),w.add(Sz(w.getBoundingRect(),d)),v||w.eachChild(function(t){var e,n,i=t.__title,o=t.ensureState("emphasis"),o=o.textConfig||(o.textConfig={}),r=t.getTextContent(),r=r&&r.ensureState("emphasis");r&&!D(r)&&i&&(r=r.style||(r.style={}),i=jo(i,K.makeFont(r)),e=t.x+w.x,n=!1,t.y+w.y+m+i.height>f.getHeight()&&(o.position="top",n=!0),t=n?-5-i.height:m+10,e+i.width/2>f.getWidth()?(o.position=["100%",t],r.align="right"):e-i.width/2<0&&(o.position=[0,t],r.align="left"))}))},CF.prototype.updateView=function(t,e,n,i){et(this._features,function(t){t instanceof p4&&t.updateView&&t.updateView(t.model,e,n,i)})},CF.prototype.remove=function(e,n){et(this._features,function(t){t instanceof p4&&t.remove&&t.remove(e,n)}),this.group.removeAll()},CF.prototype.dispose=function(e,n){et(this._features,function(t){t instanceof p4&&t.dispose&&t.dispose(e,n)})},CF.type="toolbox";var IF,TF=CF;function CF(){return null!==IF&&IF.apply(this,arguments)||this}u(kF,DF=p4),kF.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o="svg"===e.getZr().painter.getType(),r=o?"svg":n.get("type",!0)||"png",e=e.getConnectedDataURL({type:r,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),t=w.browser;if(D(MouseEvent)&&(t.newEdge||!t.ie&&!t.edge)){var t=document.createElement("a"),a=(t.download=i+"."+r,t.target="_blank",t.href=e,new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1}));t.dispatchEvent(a)}else if(window.navigator.msSaveOrOpenBlob||o){var t=e.split(","),a=-1<t[0].indexOf("base64"),s=o?decodeURIComponent(t[1]):t[1],o=(a&&(s=window.atob(s)),i+"."+r);if(window.navigator.msSaveOrOpenBlob){for(var l=s.length,u=new Uint8Array(l);l--;)u[l]=s.charCodeAt(l);t=new Blob([u]);window.navigator.msSaveOrOpenBlob(t,o)}else{a=document.createElement("iframe"),r=(document.body.appendChild(a),a.contentWindow),t=r.document;t.open("image/svg+xml","replace"),t.write(s),t.close(),r.focus(),t.execCommand("SaveAs",!0,o),document.body.removeChild(a)}}else{r=n.get("lang"),t='<body style="margin:0;"><img src="'+e+'" style="max-width:100%;" title="'+(r&&r[0]||"")+'" /></body>',o=window.open();o.document.write(t),o.document.title=i}},kF.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}};var DF,AF=kF;function kF(){return null!==DF&&DF.apply(this,arguments)||this}var LF,PF="__ec_magicType_stack__",OF=[["line","bar"],["stack"]],RF=(u(EF,LF=p4),EF.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return et(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},EF.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},EF.prototype.onclick=function(t,e,a){var n,s,l=this.model,i=l.get(["seriesIndex",a]);NF[a]&&(s={series:[]},et(OF,function(t){0<=F(t,a)&&et(t,function(t){l.setIconStatus(t,"normal")})}),l.setIconStatus(a,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},function(t){var e=t.subType,n=t.id,e=NF[a](e,n,t,l),n=(e&&(V(e,t.option),s.series.push(e)),t.coordinateSystem);if(n&&"cartesian2d"===n.type&&("line"===a||"bar"===a)){e=n.getAxesByScale("ordinal")[0];if(e){var i=e.dim+"Axis",o=t.getReferringComponents(i,sa).models[0].componentIndex;s[i]=s[i]||[];for(var r=0;r<=o;r++)s[i][o]=s[i][o]||{};s[i][o].boundaryGap="bar"===a}}}),"stack"===(t=a)&&(n=d({stack:l.option.title.tiled,tiled:l.option.title.stack},l.option.title),"emphasis"!==l.get(["iconStatus",a]))&&(t="tiled"),e.dispatchAction({type:"changeMagicType",currentType:t,newOption:s,newTitle:n,featureName:"magicType"}))},EF),NF={line:function(t,e,n,i){if("bar"===t)return d({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return d({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){n=n.get("stack")===PF;if("line"===t||"bar"===t)return i.setIconStatus("stack",n?"normal":"emphasis"),d({id:e,stack:n?"":PF},i.get(["option","stack"])||{},!0)}};function EF(){return null!==LF&&LF.apply(this,arguments)||this}Wv({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var zF=new Array(60).join("-"),VF="\t";function BF(t){o={},r=[],a=[],t.eachRawSeries(function(t){var e,n,i=t.coordinateSystem;(i&&("cartesian2d"===i.type||"polar"===i.type)&&"category"===(e=i.getBaseAxis()).type?(n=e.dim+"_"+e.index,o[n]||(o[n]={categoryAxis:e,valueAxis:i.getOtherAxis(e),series:[]},a.push({axisDim:e.dim,axisIndex:e.index})),o[n].series):r).push(t)});var o,r,a,h,t={seriesGroupByCategoryAxis:o,other:r,meta:a};return{value:pt([(h=[],et(t.seriesGroupByCategoryAxis,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(B(t.series,function(t){return t.name})),r=[n.model.getCategories()];et(t.series,function(t){var e=t.getRawData();r.push(t.getRawData().mapArray(e.mapDimension(i),function(t){return t}))});for(var a=[o.join(VF)],s=0;s<r[0].length;s++){for(var l=[],u=0;u<r.length;u++)l.push(r[u][s]);a.push(l.join(VF))}h.push(a.join("\n"))}),h.join("\n\n"+zF+"\n\n")),B(t.other,function(t){var i=t.getRawData(),o=[t.name],r=[];return i.each(i.dimensions,function(){for(var t=arguments.length,e=i.getName(arguments[t-1]),n=0;n<t-1;n++)r[n]=arguments[n];o.push((e?e+VF:"")+r.join(VF))}),o.join("\n")}).join("\n\n"+zF+"\n\n")],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join("\n\n"+zF+"\n\n"),meta:t.meta}}function FF(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var GF=new RegExp("["+VF+"]+","g");function WF(t,o){var t=t.split(new RegExp("\n*"+zF+"\n*","g")),r={series:[]};return et(t,function(t,e){var n,i;0<=t.slice(0,t.indexOf("\n")).indexOf(VF)?(n=function(t){for(var e=t.split(/\n+/g),n=[],i=B(FF(e.shift()).split(GF),function(t){return{name:t,data:[]}}),o=0;o<e.length;o++){var r=FF(e[o]).split(GF);n.push(r.shift());for(var a=0;a<r.length;a++)i[a]&&(i[a].data[o]=r[a])}return{series:i,categories:n}}(t),i=(e=o[e]).axisDim+"Axis",e&&(r[i]=r[i]||[],r[i][e.axisIndex]={data:n.categories},r.series=r.series.concat(n.series))):(n=function(t){for(var e=t.split(/\n+/g),t=FF(e.shift()),n=[],i=0;i<e.length;i++){var o=FF(e[i]);if(o){for(var r,a=o.split(GF),s=void 0,o=!1,s=isNaN(a[0])?(o=!0,r=a[0],a=a.slice(1),n[i]={name:r,value:[]},n[i].value):n[i]=[],l=0;l<a.length;l++)s.push(+a[l]);1===s.length&&(o?n[i].value=s[0]:n[i]=s[0])}}return{name:t,data:n}}(t),r.series.push(n))}),r}u(XF,HF=p4),XF.prototype.onclick=function(t,e){setTimeout(function(){e.dispatchAction({type:"hideTip"})});var n=e.getDom(),i=this.model,o=(this._dom&&n.removeChild(this._dom),document.createElement("div")),r=(o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff",document.createElement("h4")),a=i.get("lang")||[],s=(r.innerHTML=a[0]||i.get("title"),r.style.cssText="margin:10px 20px",r.style.color=i.get("textColor"),document.createElement("div")),l=document.createElement("textarea"),u=(s.style.cssText="overflow:auto",i.get("optionToContent")),h=i.get("contentToOption"),t=BF(t),c=(D(u)?Y(p=u(e.getOption()))?s.innerHTML=p:mt(p)&&s.appendChild(p):(l.readOnly=i.get("readOnly"),(p=l.style).cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),l.value=t.value,s.appendChild(l)),t.meta),p=document.createElement("div"),t=(p.style.cssText="position:absolute;bottom:5px;left:0;right:0","float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px"),d=document.createElement("div"),g=document.createElement("div"),f=(t=(t+=";background-color:"+i.get("buttonColor"))+(";color:"+i.get("buttonTextColor")),this);function y(){n.removeChild(o),f._dom=null}ke(d,"click",y),ke(g,"click",function(){if(!(null==h&&null!=u||null!=h&&null==u)){var t;try{t=D(h)?h(s,e.getOption()):WF(l.value,c)}catch(t){throw y(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t})}y()}),d.innerHTML=a[1],g.innerHTML=a[2],g.style.cssText=d.style.cssText=t,i.get("readOnly")||p.appendChild(g),p.appendChild(d),o.appendChild(r),o.appendChild(s),o.appendChild(p),s.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},XF.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},XF.prototype.dispose=function(t,e){this.remove(t,e)},XF.getDefaultOption=function(t){return{show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}};var HF,YF=XF;function XF(){return null!==HF&&HF.apply(this,arguments)||this}Wv({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,o){var r=[];et(t.newOption.series,function(t){var e,i,n=o.getSeriesByName(t.name)[0];n?(n=n.get("data"),r.push({name:t.name,data:(e=t.data,i=n,B(e,function(t,e){var n,e=i&&i[e];return O(e)&&!W(e)&&(O(t)&&!W(t)||(t={value:t}),n=null!=e.name&&null==t.name,t=V(t,e),n)&&delete t.name,t}))})):r.push(H({type:"scatter"},t))}),o.mergeOption(V({series:r},t.newOption))});var UF=et,ZF=i();function jF(t){t=ZF(t);return t.snapshots||(t.snapshots=[{}]),t.snapshots}u($F,qF=p4),$F.prototype.onclick=function(t,e){ZF(t).snapshots=null,e.dispatchAction({type:"restore",from:this.uid})},$F.getDefaultOption=function(t){return{show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:t.getLocaleModel().get(["toolbox","restore","title"])}};var qF,KF=$F;function $F(){return null!==qF&&qF.apply(this,arguments)||this}Wv({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var JF,QF=et,tG=Xr+"toolbox-dataZoom_",eG=(u(iG,JF=p4),iG.prototype.render=function(t,e,n,i){var o,r,a,s;this._brushController||(this._brushController=new bP(n.getZr()),this._brushController.on("brush",T(this._onBrush,this)).mount()),o=t,r=e,i=i,n=n,s=(a=this)._isZoomActive,i&&"takeGlobalCursor"===i.type&&(s="dataZoomSelect"===i.key&&i.dataZoomSelectActive),a._isZoomActive=s,o.setIconStatus("zoom",s?"emphasis":"normal"),i=new V3(oG(o),r,{include:["grid"]}).makePanelOpts(n,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}),a._brushController.setPanels(i).enableBrush(!(!s||!i.length)&&{brushType:"auto",brushStyle:o.getModel("brushStyle").getItemStyle()}),t.setIconStatus("back",1<function(t){return jF(t).length}(e)?"emphasis":"normal")},iG.prototype.onclick=function(t,e,n){nG[n].call(this)},iG.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},iG.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},iG.prototype._onBrush=function(t){var s,l,o,r,e=t.areas;function i(t,e,n){var i,o,r,e=e.getAxis(t),a=e.model,t=(i=t,o=a,l.eachComponent({mainType:"dataZoom",subType:"select"},function(t){t.getAxisModel(i,o.componentIndex)&&(r=t)}),r),a=t.findRepresentativeAxisProxy(a).getMinMaxSpan();null==a.minValueSpan&&null==a.maxValueSpan||(n=XL(0,n.slice(),e.scale.getExtent(),0,a.minValueSpan,a.maxValueSpan)),t&&(s[t.id]={dataZoomId:t.id,startValue:n[0],endValue:n[1]})}t.isEnd&&e.length&&(s={},l=this.ecModel,this._brushController.updateCovers([]),new V3(oG(this.model),l,{include:["grid"]}).matchOutputRanges(e,l,function(t,e,n){"cartesian2d"===n.type&&("rect"===(t=t.brushType)?(i("x",n,e[0]),i("y",n,e[1])):i({lineX:"x",lineY:"y"}[t],n,e))}),t=s,r=jF(o=l),UF(t,function(t,e){for(var n,i=r.length-1;0<=i&&!r[i][e];i--);i<0&&(n=o.queryComponents({mainType:"dataZoom",subType:"select",id:e})[0])&&(n=n.getPercentRange(),r[0][e]={dataZoomId:e,start:n[0],end:n[1]})}),r.push(t),this._dispatchZoomAction(s))},iG.prototype._dispatchZoomAction=function(t){var n=[];QF(t,function(t,e){n.push(S(t))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},iG.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},iG),nG={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){var t,i,o;this._dispatchZoomAction((t=this.ecModel,i=jF(t),t=i[i.length-1],1<i.length&&i.pop(),o={},UF(t,function(t,e){for(var n=i.length-1;0<=n;n--)if(t=i[n][e]){o[e]=t;break}}),o))}};function iG(){return null!==JF&&JF.apply(this,arguments)||this}function oG(t){t={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function rG(e,t){var n;return et(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}Sp="dataZoom",Zm=function(t){var i,o,e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n))return i=e.getModel(n),o=[],e=ra(t,oG(i)),QF(e.xAxisModels,function(t){return r(t,"xAxis","xAxisIndex")}),QF(e.yAxisModels,function(t){return r(t,"yAxis","yAxisIndex")}),o;function r(t,e,n){t=t.componentIndex,e={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:tG+e+t};e[n]=t,o.push(e)}},Tt(null==ig.get(Sp)&&Zm),ig.set(Sp,Zm),r(function(t){t.registerComponentModel(SF),t.registerComponentView(TF),g4("saveAsImage",AF),g4("magicType",RF),g4("dataView",YF),g4("dataZoom",eG),g4("restore",KF),r(bF)});var aG=["transition","enterFrom","leaveTo"],sG=aG.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function lG(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?aG:sG,o=0;o<i.length;o++){var r=i[o];null==t[r]&&null!=e[r]&&(t[r]=e[r])}}u(cG,uG=g),cG.prototype.mergeOption=function(t,e){var n=this.option.elements;this.option.elements=null,uG.prototype.mergeOption.call(this,t,e),this.option.elements=n},cG.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=[];et(t,function(t,e){var n,i,o,r,a,s=t.newOption;s&&(u.push(s),r=s,a=(t=t).existing,r.id=t.keyInfo.id,!r.type&&a&&(r.type=a.type),null==r.parentId&&((t=r.parentOption)?r.parentId=t.id:a&&(r.parentId=a.parentId)),r.parentOption=null,t=l,a=e,n=H({},r=s),i=t[a],"merge"===(o=r.$action||"merge")?i?(d(i,n,!0),kd(i,n,{ignoreSize:!0}),Pd(r,i),lG(r,i),lG(r,i,"shape"),lG(r,i,"style"),lG(r,i,"extra"),r.clipPath=i.clipPath):t[a]=n:"replace"===o?t[a]=n:"remove"===o&&i&&(t[a]=null),r=l[e],n=s,r)&&(r.hv=n.hv=[rG(n,["left","right"]),rG(n,["top","bottom"])],"group"===r.type)&&(n=n,null==(r=r).width&&(r.width=n.width=0),null==r.height&&(r.height=n.height=0))},this),n.elements=pt(l,function(t){return t&&delete t.$action,null!=t})},cG.prototype._flatten=function(t,n,i){et(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)},cG.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},cG.type="graphic",cG.defaultOption={elements:[]};var uG,hG=cG;function cG(){var t=null!==uG&&uG.apply(this,arguments)||this;return t.type=cG.type,t.preventAutoZ=!0,t}var pG,dG={path:null,compoundPath:null,group:Z,image:nl,text:K},gG=i(),fG=(u(yG,pG=Uy),yG.prototype.init=function(){this._elMap=N()},yG.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},yG.prototype._updateElements=function(d){var g,f,y,m,t=d.useElOptionsToUpdate();t&&(g=this._elMap,f=this.group,y=d.get("z"),m=d.get("zlevel"),et(t,function(t){var e,n,i,o=Qr(t.id,null),r=null!=o?g.get(o):null,a=Qr(t.parentId,null),a=null!=a?g.get(a):f,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&&XR(l,s,!!h,!!u)&&(l=UR(l,s,!0),!h&&l.textConfig&&(h=t.textConfig=l.textConfig),!u)&&l.textContent&&(u=l.textContent),e=H({},e=t),et(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Sd),function(t){delete e[t]}),e),l=t.$action||"merge",c="merge"===l,p="replace"===l,a=(c?((i=!(n=r))?n=vG(o,a,t.type,g):(n&&(gG(n).isNew=!1),pN(n)),n&&(eN(n,s,d,{isInit:i}),_G(n,t,y,m))):p?(xG(r,t,g,d),(n=vG(o,a,t.type,g))&&(eN(n,s,d,{isInit:!0}),_G(n,t,y,m))):"remove"===l&&(nN(r,t),xG(r,t,g,d)),g.get(o));a&&u&&(c?(s=a.getTextContent())?s.attr(u):a.setTextContent(new K(u)):p&&a.setTextContent(new K(u))),a&&((n=t.clipPath)&&(l=n.type,r=void 0,i=!1,c?r=(i=!(o=a.getClipPath())||gG(o).type!==l)?mG(l):o:p&&(i=!0,r=mG(l)),a.setClipPath(r),eN(r,n,d,{isInit:i}),dN(r,n.keyframeAnimation,d)),s=gG(a),a.setTextConfig(h),s.option=t,u=d,c=t,p=$(o=a).eventData,(p=o.silent||o.ignore||p?p:$(o).eventData={componentType:"graphic",componentIndex:u.componentIndex,name:o.name})&&(p.info=c.info),Zc({el:a,componentModel:d,itemName:a.name,itemTooltipOption:t.tooltip}),dN(a,t.keyframeAnimation,d))}))},yG.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++){var c,p,d=o[h];(i=null!=(n=Qr(d.id,null))?a.get(n):null)&&i.isGroup&&(c=(g=i.parent)===r,p=gG(i),f=gG(g),p.width=j(p.option.width,c?s:f.width)||0,p.height=j(p.option.height,c?l:f.height)||0)}for(h=o.length-1;0<=h;h--)if(i=null!=(n=Qr((d=o[h]).id,null))?a.get(n):null){var g=i.parent,f=gG(g),y={},m=Dd(i,d,g===r?{width:s,height:l}:{width:f.width,height:f.height},null,{hv:d.hv,boundingMode:d.bounding},y);if(!gG(i).isNew&&m){for(var v=d.transition,x={},_=0;_<u.length;_++){var b=u[_],w=y[b];v&&(oN(v)||0<=F(v,b))?x[b]=w:i[b]=w}C(i,x,t,0)}else i.attr(y)}},yG.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(t){xG(t,gG(t).option,n,e._lastGraphicModel)}),this._elMap=N()},yG.prototype.dispose=function(){this._clear()},yG.type="graphic",yG);function yG(){var t=null!==pG&&pG.apply(this,arguments)||this;return t.type=yG.type,t}function mG(t){var e=new(U(dG,t)?dG[t]:Ac(t))({});return gG(e).type=t,e}function vG(t,e,n,i){n=mG(n);return e.add(n),i.set(t,n),gG(n).id=t,gG(n).isNew=!0,n}function xG(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse(function(t){xG(t,e,n,i)}),iN(t,e,i),n.removeKey(gG(t).id))}function _G(n,i,t,e){n.isGroup||et([["cursor",ja.prototype.cursor],["zlevel",e||0],["z",t||0],["z2",0]],function(t){var e=t[0];U(i,e)?n[e]=R(i[e],t[1]):null==n[e]&&(n[e]=t[1])}),et(G(i),function(t){var e;0===t.indexOf("on")&&(e=i[t],n[t]=D(e)?e:null)}),U(i,"draggable")&&(n.draggable=i.draggable),null!=i.name&&(n.name=i.name),null!=i.id&&(n.id=i.id)}r(function(t){t.registerComponentModel(hG),t.registerComponentView(fG),t.registerPreprocessor(function(t){var e=t.graphic;W(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])})}),r(bb);var bG={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},wG=(OG.prototype.evaluate=function(t){var e=typeof t;return Y(e)?this._condVal.test(t):!!X(e)&&this._condVal.test(t+"")},OG),SG=(PG.prototype.evaluate=function(){return this.value},PG),MG=(LG.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},LG),IG=(kG.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},kG),TG=(AG.prototype.evaluate=function(){return!this.child.evaluate()},AG),CG=(DG.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},DG);function DG(){}function AG(){}function kG(){}function LG(){}function PG(){}function OG(t){null==(this._condVal=Y(t)?new RegExp(t):_t(t)?t:null)&&Wr("")}function RG(t,e){var n;if(!0===t||!1===t)return(n=new SG).value=t,n;{if(EG(t)||Wr(""),t.and)return NG("and",t,e);if(t.or)return NG("or",t,e);if(t.not)n=e,EG(r=(r=t).not)||Wr(""),(l=new TG).child=RG(r,n),l.child||Wr("");else{for(var i=t,o=e,r=o.prepareGetValue(i),a=[],s=G(i),l=i.parser,u=l?Vf(l):null,h=0;h<s.length;h++){var c,p=s[h];"parser"===p||o.valueGetterAttrMap.get(p)||(c=U(bG,p)?bG[p]:p,p=i[p],p=u?u(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new Yf("eq"===t,e):U(Bf,t)?new Ff(t,e):null}(c,p)||"reg"===c&&new wG(p))||Wr(""),a.push(c))}a.length||Wr(""),(l=new CG).valueGetterParam=r,l.valueParser=u,l.getValue=o.getValue,l.subCondList=a}return l}}function NG(t,e,n){e=e[t],W(e)||Wr(""),e.length||Wr(""),t=new("and"===t?MG:IG);return t.children=B(e,function(t){return RG(t,n)}),t.children.length||Wr(""),t}function EG(t){return O(t)&&!ht(t)}VG.prototype.evaluate=function(){return this._cond.evaluate()};var zG=VG;function VG(t,e){this._cond=RG(t,e)}var BG={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")||Wr(""),i.getDimensionInfo(e));return t||Wr(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new zG(t,n)),r=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),o.evaluate()&&r.push(e);return{data:r}}},FG={type:"echarts:sort",transform:function(t){var a=t.upstream,t=t.config,t=Ur(t),s=(t.length||Wr(""),[]),t=(et(t,function(t){var e=t.dimension,n=t.order,i=t.parser,t=t.incomparable,e=(null==e&&Wr(""),"asc"!==n&&"desc"!==n&&Wr(""),t&&"min"!==t&&"max"!==t&&Wr(""),"asc"!==n&&"desc"!==n&&Wr(""),a.getDimensionInfo(e)),o=(e||Wr(""),i?Vf(i):null);i&&!o&&Wr(""),s.push({dimIdx:e.index,parser:o,comparator:new Gf(n,t)})}),a.sourceFormat);t!==Hd&&t!==Yd&&Wr("");for(var e=[],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}}};r(function(t){t.registerTransform(BG),t.registerTransform(FG)});var GG=Math.sin,WG=Math.cos,HG=Math.PI,YG=2*Math.PI,XG=180/HG,UG=(ZG.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},ZG.prototype.moveTo=function(t,e){this._add("M",t,e)},ZG.prototype.lineTo=function(t,e){this._add("L",t,e)},ZG.prototype.bezierCurveTo=function(t,e,n,i,o,r){this._add("C",t,e,n,i,o,r)},ZG.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},ZG.prototype.arc=function(t,e,n,i,o,r){this.ellipse(t,e,n,n,0,i,o,r)},ZG.prototype.ellipse=function(t,e,n,i,o,r,a,s){var l,u=a-r,s=!s,h=Math.abs(u),c=Ri(h-YG)||(s?YG<=u:YG<=-u),h=!!c||!Ri(h)&&HG<=(0<u?u%YG:u%YG+YG)==!!s,u=t+n*WG(r),p=e+i*GG(r),o=(this._start&&this._add("M",u,p),Math.round(o*XG));c?(c=1/this._p,this._add("A",n,i,o,1,+s,t+n*WG(r+(l=(s?1:-1)*(YG-c))),e+i*GG(r+l)),.01<c&&this._add("A",n,i,o,0,+s,u,p)):(r=t+n*WG(a),l=e+i*GG(a),this._add("A",n,i,o,+h,+s,r,l))},ZG.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},ZG.prototype.closePath=function(){0<this._d.length&&this._add("Z")},ZG.prototype._add=function(t,e,n,i,o,r,a,s,l){for(var u=[],h=this._p,c=1;c<arguments.length;c++){var p=arguments[c];if(isNaN(p))return void(this._invalid=!0);u.push(Math.round(p*h)/h)}this._d.push(t+u.join(" ")),this._start="Z"===t},ZG.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},ZG.prototype.getStr=function(){return this._str},ZG);function ZG(){}var jG="none",qG=Math.round;var KG=["lineCap","miterLimit","lineJoin"],$G=B(KG,function(t){return"stroke-"+t.toLowerCase()});function JG(t,e,n,i){var o=null==e.opacity?1:e.opacity;if(n instanceof nl)t("opacity",o);else if(null!=(r=(r=e).fill)&&r!==jG?(t("fill",(r=Oi(e.fill)).color),r=null!=e.fillOpacity?e.fillOpacity*r.opacity*o:r.opacity*o,(i||r<1)&&t("fill-opacity",r)):t("fill",jG),null!=(r=(r=e).stroke)&&r!==jG){var r=Oi(e.stroke),a=(t("stroke",r.color),e.strokeNoScale?n.getLineScale():1),a=a?(e.lineWidth||0)/a:0,r=null!=e.strokeOpacity?e.strokeOpacity*r.opacity*o:r.opacity*o,o=e.strokeFirst;!i&&1==a||t("stroke-width",a),(i||o)&&t("paint-order",o?"stroke":"fill"),(i||r<1)&&t("stroke-opacity",r),e.lineDash?(o=(a=h0(n))[0],r=a[1],o&&(r=qG(r||0),t("stroke-dasharray",o.join(",")),r||i)&&t("stroke-dashoffset",r)):i&&t("stroke-dasharray",jG);for(var s=0;s<KG.length;s++){var l=KG[s];(i||e[l]!==Xs[l])&&(l=e[l]||Xs[l])&&t($G[s],l)}}else i&&t("stroke",jG)}var QG="http://www.w3.org/2000/svg",tW="http://www.w3.org/1999/xlink",eW="http://www.w3.org/2000/xmlns/",nW="http://www.w3.org/XML/1998/namespace";function iW(t){return document.createElementNS(QG,t)}function oW(t,e,n,i,o){return{tag:t,attrs:n||{},children:i,text:o,key:e}}function rW(t,e){var r=(e=e||{}).newline?"\n":"";return function t(e){var n=e.children,i=e.tag,o=e.attrs,e=e.text;return function(t,e){var n=[];if(e)for(var i in e){var o=e[i];!1!==o&&(!0!==o&&null!=o&&(i+='="'+o+'"'),n.push(i))}return"<"+t+" "+n.join(" ")+">"}(i,o)+("style"!==i?we(e):e||"")+(n?r+B(n,t).join(r)+r:"")+"</"+i+">"}(t)}function aW(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function sW(t,e,n,i){return oW("svg","root",{width:t,height:e,xmlns:QG,"xmlns:xlink":tW,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var lW={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},uW="transform-origin";var hW={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function cW(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function pW(t){return Y(t)?lW[t]?"cubic-bezier("+lW[t]+")":ni(t)?t:"":""}function dW(A,k,L,P){var t=A.animators,e=t.length,n=[];if(A instanceof qh){if(o=function(t,e,u){var h,c,t=t.shape.paths,p={};if(et(t,function(t){var e=aW(u.zrId),t=(e.animation=!0,dW(t,{},e,!0),e.cssAnims),n=e.cssNodes,e=G(t),i=e.length;if(i){var o,r,a=t[c=e[i-1]];for(o in a){var s=a[o];p[o]=p[o]||{d:""},p[o].d+=s.d||""}for(r in n){var l=n[r].animation;0<=l.indexOf(c)&&(h=l)}}}),h)return e.d=!1,t=cW(p,u),h.replace(c,t)}(A,k,L))n.push(o);else if(!e)return}else if(!e)return;for(var i,o,r,a={},s=0;s<e;s++){var l=t[s],u=[l.getMaxTime()/1e3+"s"],h=pW(l.getClip().easing),c=l.getDelay(),h=(u.push(h||"linear"),c&&u.push(c/1e3+"s"),l.getLoop()&&u.push("infinite"),u.join(" "));a[h]=a[h]||[h,[]],a[h][1].push(l)}function p(t){var e,n=t[1],i=n.length,o={},r={},a={},g="animation-timing-function";function s(t,e,n){for(var i=t.getTracks(),o=t.getMaxTime(),r=0;r<i.length;r++){var a=i[r];if(a.needsAnimate()){var s=a.keyframes,l=a.propName;if(l=n?n(l):l)for(var u=0;u<s.length;u++){var h=s[u],c=Math.round(h.time/o*100)+"%",p=pW(h.easing),d=h.rawValue;(Y(d)||X(d))&&(e[c]=e[c]||{},e[c][l]=h.rawValue,p)&&(e[c][g]=p)}}}}for(var l,u=0;u<i;u++)(v=(m=n[u]).targetName)?"shape"===v&&s(m,r):P||s(m,o);for(S in o){var h={},c=(Yo(h,A),H(h,o[S]),Xi(h)),p=o[S][g];a[S]=c?{transform:c}:{},c=a[S],l=void 0,l=(h=h).originX,h=h.originY,(l||h)&&(c[uW]=l+"px "+h+"px"),p&&(a[S][g]=p)}var d,f,y,m,v,x=!0;for(S in r){a[S]=a[S]||{};var _=!e,p=r[S][g],b=(e=_?new Ds:e).len(),w=(e.reset(),a[S].d=(f=r[S],y=e,w=void 0,w=H({},(d=A).shape),H(w,f),d.buildPath(y,w),(f=new UG).reset(Yi(d)),y.rebuildPath(f,1),f.generateStr(),f.getStr()),e.len());if(!_&&b!==w){x=!1;break}p&&(a[S][g]=p)}if(!x)for(var S in a)delete a[S].d;if(!P)for(u=0;u<i;u++)"style"===(v=(m=n[u]).targetName)&&s(m,a,function(t){return hW[t]});for(var M,I=G(a),T=!0,u=1;u<I.length;u++){var C=I[u-1],D=I[u];if(a[C][uW]!==a[D][uW]){T=!1;break}M=a[C][uW]}if(T&&M){for(var S in a)a[S][uW]&&delete a[S][uW];k[uW]=M}if(pt(I,function(t){return 0<G(a[t]).length}).length)return cW(a,L)+" "+t[0]+" both"}for(i in a)(o=p(a[i]))&&n.push(o);n.length&&(r=L.zrId+"-cls-"+L.cssClassIdx++,L.cssNodes["."+r]={animation:n.join(",")},k.class=r)}var gW=Math.round;function fW(t){return t&&Y(t.src)}function yW(t){return t&&D(t.toDataURL)}function mW(i,o,r,a){JG(function(t,e){var n="fill"===t||"stroke"===t;n&&Wi(e)?TW(o,i,t,a):n&&Bi(e)?CW(r,i,t,a):i[t]=e},o,r,!1);var t=i,e=a;if(function(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}(g=(u=r).style)){var n=function(t){var e=t.style,t=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),t[0],t[1]].join(",")}(u),s=e.shadowCache,l=s[n];if(!l){var u=u.getGlobalScale(),h=u[0],u=u[1];if(!h||!u)return;var c=g.shadowOffsetX||0,p=g.shadowOffsetY||0,d=g.shadowBlur,g=Oi(g.shadowColor),f=g.opacity,g=g.color,d=d/2/h+" "+d/2/u;l=e.zrId+"-s"+e.shadowIdx++,e.defs[l]=oW("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[oW("feDropShadow","",{dx:c/h,dy:p/u,stdDeviation:d,"flood-color":g,"flood-opacity":f})]),s[n]=l}t.filter=Hi(l)}}function vW(t){return Ri(t[0]-1)&&Ri(t[1])&&Ri(t[2])&&Ri(t[3]-1)}function xW(t,e,n){var i;!e||Ri((i=e)[4])&&Ri(i[5])&&vW(e)||(i=n?10:1e4,t.transform=vW(e)?"translate("+gW(e[4]*i)/i+" "+gW(e[5]*i)/i+")":"matrix("+Ni((n=e)[0])+","+Ni(n[1])+","+Ni(n[2])+","+Ni(n[3])+","+Ei(n[4])+","+Ei(n[5])+")")}function _W(t,e,n){for(var i=t.points,o=[],r=0;r<i.length;r++)o.push(gW(i[r][0]*n)/n),o.push(gW(i[r][1]*n)/n);e.points=o.join(" ")}function bW(t){return!t.smooth}var wW,SW={circle:[(wW=B(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i<wW.length;i++){var o=wW[i],r=t[o[0]];null!=r&&(e[o[1]]=gW(r*n)/n)}})],polyline:[_W,bW],polygon:[_W,bW]};function MW(t,e){var n,i,o,r=t.style,a=t.shape,s=SW[t.type],l={},u=e.animation,h="path",c=t.style.strokePercent,p=e.compress&&Yi(t)||4;return!s||e.willUpdate||s[1]&&!s[1](a)||u&&function(t){for(var e=t.animators,n=0;n<e.length;n++)if("shape"===e[n].targetName)return 1}(t)||c<1?(u=!t.path||t.shapeChanged(),t.path||t.createPathProxy(),o=t.path,u&&(o.beginPath(),t.buildPath(o,t.shape),t.pathUpdated()),u=o.getVersion(),i=(n=t).__svgPathBuilder,n.__svgPathVersion===u&&i&&c===n.__svgPathStrokePercent||((i=i||(n.__svgPathBuilder=new UG)).reset(p),o.rebuildPath(i,c),i.generateStr(),n.__svgPathVersion=u,n.__svgPathStrokePercent=c),l.d=i.getStr()):(h=t.type,o=Math.pow(10,p),s[0](a,l,o)),xW(l,t.transform),mW(l,r,t,e),e.animation&&dW(t,l,e),oW(h,t.id+"",l)}function IW(t,e){{if(t instanceof q)return MW(t,e);if(t instanceof nl){var n,i=e,o=(n=t).style,r;if((r=o.image)&&!Y(r)&&(fW(r)?r=r.src:yW(r)&&(r=r.toDataURL())),r)return a=o.x||0,s=o.y||0,r={href:r,width:o.width,height:o.height},a&&(r.x=a),s&&(r.y=s),xW(r,n.transform),mW(r,o,n,i),i.animation&&dW(n,r,i),oW("image",n.id+"",r)}else if(t instanceof $s){var a=t,s=e;if(o=a.style,null!=(i=o.text)&&(i+=""),i&&!isNaN(o.x)&&!isNaN(o.y)){var n=o.font||J,r=o.x||0,l=(t=o.y||0,e=$o(n),"top"===(l=o.textBaseline)?t+=e/2:"bottom"===l&&(t-=e/2),t),e={"dominant-baseline":"central","text-anchor":zi[o.textAlign]||o.textAlign};if(bl(o)){var t="",u=o.fontStyle,h=xl(o.fontSize);if(!parseFloat(h))return;var c=o.fontFamily||f,p=o.fontWeight;t+="font-size:"+h+";font-family:"+c+";",u&&"normal"!==u&&(t+="font-style:"+u+";"),p&&"normal"!==p&&(t+="font-weight:"+p+";"),e.style=t}else e.style="font: "+n;return i.match(/\s/)&&(e["xml:space"]="preserve"),r&&(e.x=r),l&&(e.y=l),xW(e,a.transform),mW(e,o,a,s),s.animation&&dW(a,e,s),oW("text",a.id+"",e,void 0,i)}}}}function TW(t,e,n,i){var o,t=t[n],r={gradientUnits:t.global?"userSpaceOnUse":"objectBoundingBox"};if(Fi(t))o="linearGradient",r.x1=t.x,r.y1=t.y,r.x2=t.x2,r.y2=t.y2;else{if(!Gi(t))return;o="radialGradient",r.cx=R(t.x,.5),r.cy=R(t.y,.5),r.r=R(t.r,.5)}for(var a=t.colorStops,s=[],l=0,u=a.length;l<u;++l){var h=100*Ei(a[l].offset)+"%",c=Oi(a[l].color),p=c.color,c=c.opacity,h={offset:h};h["stop-color"]=p,c<1&&(h["stop-opacity"]=c),s.push(oW("stop",l+"",h))}var t=rW(oW(o,"",r,s)),d=i.gradientCache,g=d[t];g||(g=i.zrId+"-g"+i.gradientIdx++,d[t]=g,r.id=g,i.defs[g]=oW(o,g,r,s)),e[n]=Hi(g)}function CW(t,e,n,i){var o,r,a,s,l,u,h,c,p=t.style[n],d=t.getBoundingRect(),g={},f=p.repeat,y="no-repeat"===f,m="repeat-x"===f,v="repeat-y"===f;Vi(p)?(r=p.imageWidth,a=p.imageHeight,f=void 0,Y(h=p.image)?f=h:fW(h)?f=h.src:yW(h)&&(f=h.toDataURL()),"undefined"==typeof Image?(Tt(r,h="Image width/height must been given explictly in svg-ssr renderer."),Tt(a,h)):null!=r&&null!=a||(s=function(t,e){var n,i;t&&(n=t.elm,i=r||e.width,e=a||e.height,"pattern"===t.tag&&(m?(e=1,i/=d.width):v&&(i=1,e/=d.height)),t.attrs.width=i,t.attrs.height=e,n)&&(n.setAttribute("width",i),n.setAttribute("height",e))},(h=Da(f,null,t,function(t){y||s(u,t),s(o,t)}))&&h.width&&h.height&&(r=r||h.width,a=a||h.height)),o=oW("image","img",{href:f,width:r,height:a}),g.width=r,g.height=a):p.svgElement&&(o=S(p.svgElement),g.width=p.svgWidth,g.height=p.svgHeight),o&&(y?c=l=1:m?(l=1,c=g.width/d.width):v?(c=1,l=g.height/d.height):g.patternUnits="userSpaceOnUse",null==c||isNaN(c)||(g.width=c),null==l||isNaN(l)||(g.height=l),(t=Xi(p))&&(g.patternTransform=t),h=rW(u=oW("pattern","",g,[o])),(c=(f=i.patternCache)[h])||(c=i.zrId+"-p"+i.patternIdx++,f[h]=c,g.id=c,u=i.defs[c]=oW("pattern",c,g,[o])),e[n]=Hi(c))}function DW(t){return document.createTextNode(t)}function AW(t,e,n){t.insertBefore(e,n)}function kW(t,e){t.removeChild(e)}function LW(t,e){t.appendChild(e)}function PW(t){return t.parentNode}function OW(t){return t.nextSibling}function RW(t,e){t.textContent=e}var NW=58,EW=120,zW=oW("","");function VW(t){return void 0===t}function BW(t){return void 0!==t}function FW(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function GW(t){var e,n=t.children,i=t.tag;if(BW(i)){var o=t.elm=iW(i);if(YW(zW,t),W(n))for(e=0;e<n.length;++e){var r=n[e];null!=r&&LW(o,GW(r))}else BW(t.text)&&!O(t.text)&&LW(o,DW(t.text))}else t.elm=DW(t.text);return t.elm}function WW(t,e,n,i,o){for(;i<=o;++i){var r=n[i];null!=r&&AW(t,GW(r),e)}}function HW(t,e,n,i){for(;n<=i;++n){var o=e[n];null!=o&&(BW(o.tag)?kW(PW(o.elm),o.elm):kW(t,o.elm))}}function YW(t,e){var n,i=e.elm,o=t&&t.attrs||{},r=e.attrs||{};if(o!==r){for(n in r){var a=r[n];o[n]!==a&&(!0===a?i.setAttribute(n,""):!1===a?i.removeAttribute(n):n.charCodeAt(0)!==EW?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(eW,n,a):n.charCodeAt(3)===NW?i.setAttributeNS(nW,n,a):n.charCodeAt(5)===NW?i.setAttributeNS(tW,n,a):i.setAttribute(n,a))}for(n in o)n in r||i.removeAttribute(n)}}function XW(t,e,n){for(var i,o,r,a=0,s=0,l=e.length-1,u=e[0],h=e[l],c=n.length-1,p=n[0],d=n[c];a<=l&&s<=c;)null==u?u=e[++a]:null==h?h=e[--l]:null==p?p=n[++s]:null==d?d=n[--c]:FW(u,p)?(UW(u,p),u=e[++a],p=n[++s]):FW(h,d)?(UW(h,d),h=e[--l],d=n[--c]):FW(u,d)?(UW(u,d),AW(t,u.elm,OW(h.elm)),u=e[++a],d=n[--c]):p=(FW(h,p)?(UW(h,p),AW(t,h.elm,u.elm),h=e[--l]):(VW(i)&&(i=function(t,e,n){for(var i={},o=e;o<=n;++o){var r=t[o].key;void 0!==r&&(i[r]=o)}return i}(e,a,l)),VW(o=i[p.key])||(r=e[o]).tag!==p.tag?AW(t,GW(p),u.elm):(UW(r,p),e[o]=void 0,AW(t,r.elm,u.elm))),n[++s]);(a<=l||s<=c)&&(l<a?WW(t,null==n[c+1]?null:n[c+1].elm,n,s,c):HW(t,e,a,l))}function UW(t,e){var n=e.elm=t.elm,i=t.children,o=e.children;t!==e&&(YW(t,e),VW(e.text)?BW(i)&&BW(o)?i!==o&&XW(n,i,o):BW(o)?(BW(t.text)&&RW(n,""),WW(n,null,o,0,o.length-1)):BW(i)?HW(n,i,0,i.length-1):BW(t.text)&&RW(n,""):t.text!==e.text&&(BW(i)&&HW(n,i,0,i.length-1),RW(n,e.text)))}var ZW=0;function jW(t,e,n){var i;this.type="svg",this.refreshHover=qW(),this.configLayer=qW(),this.storage=e,this._opts=n=H({},n),this.root=t,this._id="zr"+ZW++,this._oldVNode=sW(n.width,n.height),t&&!n.ssr&&((e=this._viewport=document.createElement("div")).style.cssText="position:relative;overflow:hidden",i=this._svgDom=this._oldVNode.elm=iW("svg"),YW(null,this._oldVNode),e.appendChild(i),t.appendChild(e)),this.resize(n.width,n.height)}function qW(){return function(){}}jW.prototype.getType=function(){return this.type},jW.prototype.getViewportRoot=function(){return this._viewport},jW.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},jW.prototype.getSvgDom=function(){return this._svgDom},jW.prototype.refresh=function(){var t,e,n,i,o;this.root&&((t=this.renderToVNode({willUpdate:!0})).attrs.style="position:absolute;left:0;top:0;user-select:none",FW(e=this._oldVNode,n=t)?UW(e,n):(o=PW(i=e.elm),GW(n),null!==o&&(AW(o,n.elm,OW(i)),HW(o,[e],0,0))),this._oldVNode=t)},jW.prototype.renderOneToVNode=function(t){return IW(t,aW(this._id))},jW.prototype.renderToVNode=function(t){t=t||{};var n,o,r,a,s,e=this.storage.getDisplayList(!0),i=this._width,l=this._height,u=aW(this._id),h=(u.animation=t.animation,u.willUpdate=t.willUpdate,u.compress=t.compress,[]),c=this._bgVNode=function(t,e,n,i){var o;n&&"none"!==n&&(o=oW("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),Wi(n)?TW({fill:n},o.attrs,"fill",i):Bi(n)?CW({style:{fill:n},dirty:Bt,getBoundingRect:function(){return{width:t,height:e}}},o.attrs,"fill",i):(i=Oi(n),n=i.color,i=i.opacity,o.attrs.fill=n,i<1&&(o.attrs["fill-opacity"]=i)));return o}(i,l,this._backgroundColor,u),c=(c&&h.push(c),t.compress?null:this._mainVNode=oW("g","main",{},[])),e=(this._paintList(e,u,c?c.children:h),c&&h.push(c),B(G(u.defs),function(t){return u.defs[t]}));return e.length&&h.push(oW("defs","defs",{},e)),t.animation&&(n=u.cssNodes,o=u.cssAnims,r=(c=(c={newline:!0})||{}).newline?"\n":"",a=" {"+r,s=r+"}",c=B(G(n),function(e){return e+a+B(G(n[e]),function(t){return t+":"+n[e][t]+";"}).join(r)+s}).join(r),e=B(G(o),function(i){return"@keyframes "+i+a+B(G(o[i]),function(n){return n+a+B(G(o[i][n]),function(t){var e=o[i][n][t];return t+":"+(e="d"===t?'path("'+e+'")':e)+";"}).join(r)+s}).join(r)+s}).join(r),c=c||e?["<![CDATA[",c,e,"]]>"].join(r):"")&&(e=oW("style","stl",{},[],c),h.push(e)),sW(i,l,h,t.useViewBox)},jW.prototype.renderToString=function(t){return rW(this.renderToVNode({animation:R((t=t||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:R(t.useViewBox,!0)}),{newline:!0})},jW.prototype.setBackgroundColor=function(t){this._backgroundColor=t},jW.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},jW.prototype._paintList=function(t,e,n){for(var i,o,r,a,s,l,u,h=t.length,c=[],p=0,d=0,g=0;g<h;g++){var f=t[g];if(!f.invisible){for(var y=f.__clipPaths,m=y&&y.length||0,v=M&&M.length||0,x=void 0,x=Math.max(m-1,v-1);0<=x&&(!y||!M||y[x]!==M[x]);x--);for(var _=v-1;x<_;_--)i=c[--p-1];for(var b=x+1;b<m;b++){var w={},S=(o=y[b],r=w,u=S=l=s=void 0,l=(a=e).clipPathCache,S=a.defs,(u=l[o.id])||(s={id:u=a.zrId+"-c"+a.clipPathIdx++},S[l[o.id]=u]=oW("clipPath",u,s,[MW(o,a)])),r["clip-path"]=Hi(u),oW("g","clip-g-"+d++,w,[]));(i?i.children:n).push(S),i=c[p++]=S}var M=y,v=IW(f,e);v&&(i?i.children:n).push(v)}}},jW.prototype.resize=function(t,e){var n=this._opts,i=this.root,o=this._viewport;null!=t&&(n.width=t),null!=e&&(n.height=e),i&&o&&(o.style.display="none",t=u0(i,0,n),e=u0(i,1,n),o.style.display=""),this._width===t&&this._height===e||(this._width=t,this._height=e,o&&((i=o.style).width=t+"px",i.height=e+"px"),Bi(this._backgroundColor)?this.refresh():((n=this._svgDom)&&(n.setAttribute("width",t),n.setAttribute("height",e)),(o=this._bgVNode&&this._bgVNode.elm)&&(o.setAttribute("width",t),o.setAttribute("height",e))))},jW.prototype.getWidth=function(){return this._width},jW.prototype.getHeight=function(){return this._height},jW.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},jW.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},jW.prototype.toDataURL=function(t){var e=this.renderToString(),n="data:image/svg+xml;";return t?(e=Ui(e))&&n+"base64,"+e:n+"charset=UTF-8,"+encodeURIComponent(e)},vr("svg",jW),t.Axis=bp,t.ChartView=$y,t.ComponentModel=g,t.ComponentView=Uy,t.List=T1,t.Model=Tp,t.PRIORITY=Km,t.SeriesModel=zy,t.color=Li,t.connect=function(e){var t;return W(e)&&(t=e,e=null,et(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+Pv++,et(t,function(t){t.group=e})),kv[e]=!0,e},t.dataTool={},t.dependencies={zrender:"5.4.4"},t.disConnect=qm,t.disconnect=Rv,t.dispose=function(t){Y(t)?t=Av[t]:t instanceof gv||(t=Nv(t)),t instanceof gv&&!t.isDisposed()&&t.dispose()},t.env=w,t.extendChartView=function(t){return t=$y.extend(t),$y.registerClass(t),t},t.extendComponentModel=function(t){return t=g.extend(t),g.registerClass(t),t},t.extendComponentView=function(t){return t=Uy.extend(t),Uy.registerClass(t),t},t.extendSeriesModel=function(t){return t=zy.extend(t),zy.registerClass(t),t},t.format=xp,t.getCoordinateSystemDimensions=function(t){if(t=wg.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.getInstanceByDom=Nv,t.getInstanceById=function(t){return Av[t]},t.getMap=function(t){var e=z0.getMap;return e&&e(t)},t.graphic=Yp,t.helper=$m,t.init=function(t,e,n){var i=!(n&&n.ssr);if(i){var o=Nv(t);if(o)return o}return(o=new gv(t,e,n)).id="ec_"+Lv++,Av[o.id]=o,i&&ha(t,Ov,o.id),sv(o),E0.trigger("afterinit",o),o},t.innerDrawElementOnCanvas=A0,t.matrix=Ue,t.number=Ia,t.parseGeoJSON=g_,t.parseGeoJson=g_,t.registerAction=Wv,t.registerCoordinateSystem=Hv,t.registerLayout=Yv,t.registerLoading=jv,t.registerLocale=zp,t.registerMap=qv,t.registerPostInit=Bv,t.registerPostUpdate=Fv,t.registerPreprocessor=zv,t.registerProcessor=Vv,t.registerTheme=Ev,t.registerTransform=Kv,t.registerUpdateLifecycle=Gv,t.registerVisual=Xv,t.setCanvasCreator=function(t){y({createCanvas:t})},t.setPlatformAPI=y,t.throttle=sm,t.time=fp,t.use=r,t.util=Vm,t.vector=le,t.version="5.4.3",t.zrUtil=Gt,t.zrender=xr});
|