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):(et=navigator.userAgent,le=(Gt=w).browser,st=et.match(/Firefox\/([\d.]+)/),S=et.match(/MSIE\s([\d.]+)/)||et.match(/Trident\/.+?rv:(([\d.]+))/),L=et.match(/Edge?\/([\d.]+)/),et=/micromessenger/i.test(et),st&&(le.firefox=!0,le.version=st[1]),S&&(le.ie=!0,le.version=S[1]),L&&(le.edge=!0,le.version=L[1],le.newEdge=18<+L[1].split(".")[0]),et&&(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 h=12,g="sans-serif",Q=h+"px "+g;var c,p,y=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"),tt={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(c||(n=tt.createCanvas(),c=n&&n.getContext("2d")),c)return p!==e&&(p=c.font=e||Q),c.measureText(t);t=t||"";var n=/(\d+)px/.exec(e=e||Q),i=n&&+n[1]||h,o=0;if(0<=e.indexOf("mono"))o=i*t.length;else for(var r=0;r<t.length;r++){var a=y[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 m(t){for(var e in tt)t[e]&&(tt[e]=t[e])}var v=ct(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),_=ct(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),b=Object.prototype.toString,S=Array.prototype,M=S.forEach,I=S.filter,D=S.slice,k=S.map,L=function(){}.constructor,et=L?L.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 x(t){if(null==t||"object"!=typeof t)return t;var e=t,n=b.call(t);if("[object Array]"===n){if(!kt(t))for(var e=[],i=0,o=t.length;i<o;i++)e[i]=x(t[i])}else if(_[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(!v[n]&&!kt(t)&&!mt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==nt&&(e[a]=x(t[a]));return e}function d(t,e,n){if(!O(e)||!O(t))return n?x(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)||gt(r)||gt(o)||kt(r)||kt(o)?!n&&i in t||(t[i]=x(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 B(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=tt.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 B(t,e,n)}function ht(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function X(t,e,n){if(t&&e)if(t.forEach&&t.forEach===M)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 V(t,e,n){if(!t)return[];if(!e)return Mt(t);if(t.map&&t.map===k)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===I)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=et&&A(et.bind)?et.call.bind(et.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(D.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(D.call(arguments)))}}function W(t){return Array.isArray?Array.isArray(t):"[object Array]"===b.call(t)}function A(t){return"function"==typeof t}function Y(t){return"string"==typeof t}function ft(t){return"[object String]"===b.call(t)}function U(t){return"number"==typeof t}function O(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function gt(t){return!!v[b.call(t)]}function yt(t){return!!_[b.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]"===b.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 N(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 D.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 At="__ec_primitive__";function Dt(t){t[At]=!0}function kt(t){return t[At]}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={}}Rt.prototype.hasKey=function(t){return this.data.has(t)},Rt.prototype.get=function(t){return this.data.get(t)},Rt.prototype.set=function(t,e){return this.data.set(t,e),e},Rt.prototype.each=function(n,i){this.data.forEach(function(t,e){n.call(i,t,e)})},Rt.prototype.keys=function(){var t=this.data.keys();return Pt?Array.from(t):t},Rt.prototype.removeKey=function(t){this.data.delete(t)};var Nt=Rt;function Rt(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 Rt?t.each(e):t&&X(t,e)}function R(t){return new Nt(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(){}
1).prototype=t,new n);return e&&H(t,e),t}function Bt(t){t=t.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Z(t,e){return t.hasOwnProperty(e)}function Vt(){}var Ft=180/Math.PI,Gt=Object.freeze({__proto__:null,HashMap:Nt,RADIAN_TO_DEGREE:Ft,assert:Tt,bind:T,clone:x,concatArray:Et,createCanvas:st,createHashMap:R,createObject:zt,curry:P,defaults:B,disableUserSelect:Bt,each:X,eqNaN:bt,extend:H,filter:pt,find:dt,guid:ot,hasOwn:Z,indexOf:F,inherits:lt,isArray:W,isArrayLike:ht,isBuiltInObject:gt,isDom:mt,isFunction:A,isGradientObject:vt,isImagePatternObject:xt,isNumber:U,isObject:O,isPrimitive:kt,isRegExp:_t,isString:Y,isStringSafe:ft,isTypedArray:yt,keys:G,logError:rt,map:V,merge:d,mergeAll:at,mixin:ut,noop:Vt,normalizeCssArray:It,reduce:ct,retrieve:wt,retrieve2:N,retrieve3:St,setAsPrimitive:Dt,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 Xt(t){return[t[0],t[1]]}function Yt(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 Jt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function $t(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:Xt,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:$t,scale:Jt,scaleAndAdd:Zt,set:Yt,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 fe(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 f=1<<p;f&o||(c+=(d%2?-1:1)*t[n][p]*fe(t,e-1,h,u,o|f,r),d++)}return r[s]=c}function ge(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=fe(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)*fe(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)}
1return l&&o?o:(e.srcCoords=a,e[i]=n?ge(s,a):ge(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 Ae(t){return t||window.event}function De(t,e,n){var i;return null==(e=Ae(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}Ne.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},Ne.prototype.clear=function(){return this._track.length=0,this},Ne.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)}},Ne.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=Ne;function Ne(){this._track=[]}function Re(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=Re(i)/Re(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 Be(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ve(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 Xe(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 Ye(t){var e=ze();return Ve(e,t),e}var Ue=Object.freeze({__proto__:null,clone:Ye,copy:Ve,create:ze,identity:Be,invert:Xe,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}
1var je=Math.min,qe=Math.max,Ke=new E,Je=new E,$e=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,f=t.x,g=t.x+t.width,y=t.y,t=t.y+t.height,m=!(p<f||g<c||h<y||t<d);return e&&(n=1/0,i=0,o=Math.abs(p-f),r=Math.abs(g-c),a=Math.abs(h-y),s=Math.abs(t-d),l=Math.min(o,r),u=Math.min(a,s),p<f||g<c?i<l&&(i=l,o<r?E.set(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=$e.x=e.x,Ke.y=Qe.y=e.y,Je.x=Qe.x=e.x+e.width,Je.y=$e.y=e.y+e.height,Ke.transform(n),Qe.transform(n),Je.transform(n),$e.transform(n),t.x=je(Ke.x,Je.x,$e.x,Qe.x),t.y=je(Ke.y,Je.y,$e.y,Qe.y),r=qe(Ke.x,Je.x,$e.x,Qe.x),a=qe(Ke.y,Je.y,$e.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(fn,ln=ce),fn.prototype.dispose=function(){},fn.prototype.setCursor=function(){};var sn,ln,un=fn,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&&(X(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(gn(i,o,t,e,n),this._pointerSize&&!o.target){for(var r=[],a=this._pointerSize,s=a/2,l=ne
1w 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 f=0;f<p;f+=c)if(gn(r,o,t+d*Math.cos(f),e+d*Math.sin(f),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 fn(){var t=null!==ln&&ln.apply(this,arguments)||this;return t.handler=null,t}function gn(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()}X(["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 f,g,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{g=e,y=vn,s=0,(f=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(f[i],f,e,n,0,g));e+=t,0!=(n-=t)&&0!==(o=bn(f[e+n-1],f,i,o,o-1,g))&&(n<=o?function(t,e,n,i){for(var o=0,o=0;o<e;o++)m[o]=f[t+o];var r=0,a=n,s=t;if(f[s++]=f[a++],0==--i)for(o=0;o<e;o++)f[s+o]=m[r+o];else{if(1===e){for(o=0;o<i;o++)f[s+o]=f[a+o];return f[s+i]=m[r]}for(var l,u,h,c=y;;){u=l=0,h=!1;
1do{if(g(f[a],m[r])<0){if(f[s++]=f[a++],u++,(l=0)==--i){h=!0;break}}else if(f[s++]=m[r++],l++,u=0,1==--e){h=!0;break}}while((l|u)<c);if(h)break;do{if(0!==(l=wn(f[a],m,r,e,0,g))){for(o=0;o<l;o++)f[s+o]=m[r+o];if(s+=l,r+=l,(e-=l)<=1){h=!0;break}}if(f[s++]=f[a++],0==--i){h=!0;break}if(0!==(u=bn(m[r],f,a,i,0,g))){for(o=0;o<u;o++)f[s+o]=f[a+o];if(s+=u,a+=u,0==(i-=u)){h=!0;break}}if(f[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++)f[s+o]=f[a+o];f[s+i]=m[r]}else{if(0===e)throw new Error;for(o=0;o<e;o++)f[s+o]=m[r+o]}}}:function(t,e,n,i){for(var o=0,o=0;o<i;o++)m[o]=f[n+o];var r=t+e-1,a=i-1,s=n+i-1,l=0,u=0;if(f[s--]=f[r--],0==--e)for(l=s-(i-1),o=0;o<i;o++)f[l+o]=m[o];else{if(1===i){for(u=1+(s-=e),l=1+(r-=e),o=e-1;0<=o;o--)f[u+o]=f[l+o];return f[s]=m[a]}for(var h=y;;){var c=0,p=0,d=!1;do{if(g(m[a],f[r])<0){if(f[s--]=f[r--],c++,(p=0)==--e){d=!0;break}}else if(f[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],f,t,e,e-1,g))){for(e-=c,u=1+(s-=c),l=1+(r-=c),o=c-1;0<=o;o--)f[u+o]=f[l+o];if(0===e){d=!0;break}}if(f[s--]=m[a--],1==--i){d=!0;break}if(0!=(p=i-bn(f[r],m,0,i,i-1,g))){for(i-=p,u=1+(s-=p),l=1+(a-=p),o=0;o<p;o++)f[u+o]=m[l+o];if(i<=1){d=!0;break}}if(f[s--]=f[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--)f[u+o]=f[l+o];f[s]=m[a]}else{if(0===i)throw new Error;for(l=s-(i-1),o=0;o<i;o++)f[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 An(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,An)},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 Dn=kn;function kn(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=An}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,Nn=Math.sqrt,Rn=1e-8,En=1e-4,zn=Nn(3),Bn=1/3,Vn=Wt(),Fn=Wt(),Gn=Wt();function Wn(t){return-Rn<t&&t<Rn}function Hn(t){return Rn<t||t<-Rn}function Xn(t,e,n,i,o){var r=1-o;
vendor: 9,995 bytes, line 1
1return r*r*(r*t+3*o*e)+o*o*(o*i+3*r*n)}function Yn(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=Nn(e))),0<=(s=(-n-((t=(t=o*n+1.5*i*(-l+t))<0?-On(-t,Bn):On(t,Bn))+(e=e<0?-On(-e,Bn):On(e,Bn))))/(3*i))&&s<=1&&(r[u++]=s)):(t=(2*o*n-3*i*l)/(2*Nn(o*o*o)),e=Math.acos(t)/3,s=(-n-2*(l=Nn(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=Nn(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,f,g=.005,y=1/0;Vn[0]=l,Vn[1]=u;for(var m=0;m<1;m+=.05)Fn[0]=Xn(t,n,o,a,m),Fn[1]=Xn(e,i,r,s,m),(d=ne(Vn,Fn))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<En);v++)p=c+g,Fn[0]=Xn(t,n,o,a,f=c-g),Fn[1]=Xn(e,i,r,s,f),d=ne(Fn,Vn),0<=f&&d<y?(c=f,y=d):(Gn[0]=Xn(t,n,o,a,p),Gn[1]=Xn(e,i,r,s,p),f=ne(Gn,Vn),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=Xn(t,n,o,a,c),h[1]=Xn(e,i,r,s,c)),Nn(y)}function Kn(t,e,n,i){var o=1-i;return o*(o*t+2*i*e)+i*i*n}function Jn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function $n(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;Vn[0]=a,Vn[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(Vn,Fn))<c&&(u=p,c=y);for(var c=1/0,d=0;d<32&&!(h<En);d++){var f=u-h,g=u+h,y=(Fn[0]=Kn(t,n,o,f),Fn[1]=Kn(e,i,r,f),ne(Fn,Vn));0<=f&&y<c?(u=f,c=y):(Gn[0]=Kn(t,n,o,g),Gn[1]=Kn(e,i,r,g),f=ne(Gn,Vn),g<=1&&f<c?(u=g,c=f):h*=.5)}return l&&(l[0]=Kn(t,n,o,u),l[1]=Kn(e,i,r,u)),Nn(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)&&Xn(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=A(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||Vt,this.ondestroy=t.ondestroy||Vt,this.onrestart=t.onrestart||Vt,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 fi(t){return t.length&&"%"===t.charAt(t.length-1)?pi(parseFloat(t)/100):pi(parseFloat(t))}function gi(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=fi(a.pop());case"rgb":return 3<=a.length?(mi(e,di(a[0]),di(a[1]),di(a[2]),3===a.length?s:fi(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]=fi(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=fi(t[1]),o=fi(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;
1return mi(e=e||[],ci(255*gi(o,i,n+1/3)),ci(255*gi(o,i,n)),ci(255*gi(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 Di(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=Di([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]=fi(n)),null!=i&&(o[2]=fi(i)),Di(Si(o),"rgba")}function Ai(t,e){t=wi(t);if(t&&null!=e)return t[3]=pi(e),Di(t,"rgba")}function Di(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:Ai,modifyHSL:Ci,parse:wi,random:function(){return Di([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:Di,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 Ni(t){return t<1e-4&&-1e-4<t}function Ri(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 Bi(t){return t&&!!t.image}function Vi(t){return Bi(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 Xi(t){t=t.getGlobalScale(),t=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(t)/Math.log(10)),1)}function Yi(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*Ft,o=N(t.scaleX,1),r=N(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&&A(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 Ji(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 $i(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)&&!U(e[0])||2==i&&!U(e[0][0]))&&(a=!0):U(e)&&!bt(e)?s=0:Y(e)?isNaN(+e)?(i=wi(e))&&(l=i,s=3):s=0:vt(e)&&((u=H({},l)).colorStops=V(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=A(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;f=void 0;g=void 0;y=void 0;m=void 0;v=void 0;x=void 0;_=void 0;h=c;var d=p;var f=i;var g=h,y=d;if(g.push&&y.push){var h=g.length,m=y.length;if(h!==m)if(m<h)g.length=m;else for(var v=h;v<m;v++)g.push(1===f?y[v]:Zi.call(y[v]));for(var x=g[0]&&g[0].length,v=0;v<g.length;v++)if(1===f)isNaN(g[v])&&(g[v]=y[v]);else for(var _=0;_<x;_++)isNaN(g[v][_])&&(g[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:Ji)([],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,f=this._lastFr,g=M
1ath.min;if(1===c)i=o=h[0];else{if(e<0)n=0;else if(e<this._lastFrP){for(n=g(f+1,c-1);0<=n&&!(h[n].percent<=e);n--);n=g(n,c-2)}else{for(n=f;n<c&&!(h[n].percent>e);n++);n=g(n-1,c-2)}o=h[n+1],i=h[n]}i&&o&&(this._lastFr=n,this._lastFrP=e,f=o.percent-i.percent,r=0==f?1:g((e-i.percent)/f,1),o.easingFunc&&(r=o.easingFunc(r)),g=s?this._additiveValue:d?no:t[p],(eo(u)||d)&&(g=g||(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)}})(g,i[l],o[l],r):to(u)?(f=i[l],a=o[l],t[p]={type:(u=4===u)?"linear":"radial",x:ji(f.x,a.x,r),y:ji(f.y,a.y,r),colorStops:V(f.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(f.x2,a.x2,r),t[p].y2=ji(f.y2,a.y2,r)):t[p].r=ji(f.r,a.r,r)):d?(qi(g,i[l],o[l],r),s||(t[p]=Qi(g))):(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&&Ji(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,$i(u),i),this._trackKeys.push(a)}l.addKeyframe(t,$i(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 V(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]=$i(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(
1))},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,fo=(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:V(e,function(t){var e=t.replace("mouse","pointer");return co.hasOwnProperty(e)?e:t})}),go=["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=Vt,this.stopImmediatePropagation=Vt,this.preventDefault=Vt,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=De(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=De(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=De(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){_o(this,(t=De(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){mo=!0,t=De(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){mo||(t=De(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){xo(t=De(this.dom,t)),this.__lastTouchMoment=ne
1w Date,this.handler.processGesture(t,"start"),wo.mousemove.call(this,t),wo.mousedown.call(this,t)},touchmove:function(t){xo(t=De(this.dom,t)),this.handler.processGesture(t,"change"),wo.mousemove.call(this,t)},touchend:function(t){xo(t=De(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=(X(["click","dblclick","contextmenu"],function(e){wo[e]=function(t){t=De(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?X(fo.pointer,function(e){To(o,e,function(t){r[e].call(i,t)})}):(w.touchEventsSupported&&X(fo.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)})}),X(fo.mouse,function(e){To(o,e,function(t){t=Ae(t),o.touching||r[e].call(i,t)})}))}function Io(i,o){function t(n){To(o,n,function(t){var e;t=Ae(t),_o(i,t.target)||(e=t,t=De(i.dom,new bo(i,e),!0),o.domHandlers[n].call(i,t))},{capture:!0})}w.pointerEventsSupported?X(yo,t):w.touchEventsSupported||X(go,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 Ao(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}u(Lo,Do=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 Do,ko=Lo;function Lo(t,e){var n=Do.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new Ao(t,wo),po&&(n._globalHandlerScope=new Ao(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",No="#ccc",Ro=Be;function Eo(t){return 5e-5<t||t<-5e-5}var zo=[],Bo=[],Vo=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):Ro(n),t&&(e?Fe(n,t,n):Ve(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Ro(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(),Xe(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(Bo,e.invTransform,t),t=Bo),e=this.originX,n=this.originY,(e||n)&&(Vo[4]=e,Vo[5]=n,Fe(Bo,t,Vo),Bo[4]-=e,Bo[5]-=n,t=Bo),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){Xo(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 Xo(t,e){for(var n=0;n<Ho.length;n++){var i=Ho[n];t[i]=e[i]}}var Yo={};function Uo(t,e){var n=Yo[e=e||Q],i=(n=n||(Yo[e]=new li(500))).get(t);return null==i&&(i=tt.measureText(t,e).width,n.put(t,i)),i}function Zo(t,e,n,i){t=Uo(t,e),e=Jo(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 Jo(t){return Uo("å½",t)}function $o(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+=$o(i[0],n.width),u+=$o(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
1()),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=$o(r[0],u.width),$o(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()?No: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,Di(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];
1e&&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,f=!O(a),g=e.animators,y=[],m=0;m<u.length;m++){var v=u[m],x=o[v];null!=x&&null!=i[v]&&(f||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<g.length;b++){var w;(S=g[b]).targetName===n&&S.stopTracks(y)&&(w=F(g,S),g.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]]=$i(i[v]),ur(i,o,v);
1(S=new oo(i,!1,!1,p?pt(g,function(t){return t.targetName===n}):null)).targetName=n,r.scope&&(S.scope=r.scope),d&&M&&S.whenWithKeys(0,M,y),T&&S.whenWithKeys(0,T,y),S.whenWithKeys(null==h?500:h,l?I:o,y).delay(c||0),e.addAnimator(S,n),s.push(S)}}(t,"",t,e,n=n||{},i,s,o),s.length),u=!1,h=n.done,c=n.aborted;l||h&&h(),0<s.length&&n.during&&s[0].during(function(t,e){n.during(e)});for(var p=0;p<s.length;p++){var d=s[p];d.done(r),d.aborted(a),n.force&&d.duration(n.duration),d.start(n.easing)}return s}function 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,j=pr;function pr(t){var e=cr.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}j.prototype.type="group";var dr={},fr={};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)}
1,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 j&&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 fr[t]};var gr=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 Dn),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=N(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 gr(it++,t,e);return fr[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 fr)fr.hasOwnProperty(t)&&fr[t].dispose();fr={}},getInstance:function(t){return fr[t]},init:mr,registerPainter:vr,version:"5.4.4"}),_r=20;
1function 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 q(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return 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=V(t,function(t){return(isNaN(t)?0:t)/n*i*100}),o=100*i,r=V(e,function(t){return Math.floor(t)}),a=ct(r,function(t,e){return t+e},0),s=V(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 V(r,function(t){return t/i})}var Ar=9007199254740991;function Dr(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,Nr(t))}function Nr(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function Rr(t,e){var n=Nr(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 Br(t){var e=parseFloat(t);return e==t&&(0!==e||!Y(t)||t.indexOf("x")<=0)?e:NaN}function Vr(t){return!isNaN(Br(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 Xr="series\0",Yr="\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,f="replaceMerge"===e,g="replaceAll"===e,y=(t=t||[],n=(n||[]).slice(),R()),e=(X(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||f)&&(u=e,h=t,c=y,X(p=n,function(t,e){var n,i,o;t&&null!=t.id&&(n=$r(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,X(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)&&Jr("name",i,t))return s[n].newOption=t,void(l[e]=null)}})),d||f?(o=e,r=f,X(n,function(t){if(t){for(var e,n=0;(e=o[n])&&(e.newOption||ea(e.existing)||e.existing&&null!=t.id&&!Jr("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=r):o.push({newOption:t,brandNew:r,existing:null,keyInfo:null}),n++}})):g&&(i=e,X(n,function(t){i.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=e,a=R(),X(t,function(t){var e=t.existing;e&&a.set(e.id,t)}
1),X(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={})}),X(t,function(t,e){var n=t.existing,i=t.newOption,o=t.keyInfo;if(O(i)){if(o.name=null!=i.name?$r(i.name):n?n.name:Xr+e,n)o.id=$r(n.id);else if(null!=i.id)o.id=$r(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 Jr(t,e,n){e=Qr(e[t],null),n=Qr(n[t],null);return null!=e&&null!=n&&e===n}function $r(t){return Qr(t,"")}function Qr(t,e){return null==t?e:Y(t)?t:U(t)||ft(t)?t+"":e}function ta(t){t=t.name;return!(!t||!t.indexOf(Xr))}function ea(t){return t&&null!=t.id&&0===$r(t.id).indexOf(Yr)}function na(t,o,r){X(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)?V(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?W(t.name)?V(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=R(),a={},s=!1;return X(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=R(),o=[];return X(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(U(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=".",fa="___EC__COMPONENT__CONTAINER___",ga="___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 A(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[ga]=!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!==fa&&((n=o[e.main])&&n[fa]||((n=o[e.main]={})[fa]=!0),n[e.sub]=t):o[e.main]=t),t},t.getClass=function(t,e,n){var i=o[t];if(i&&i[fa]&&(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[fa]?X(t,function(t,e){e!==fa&&n.push(t)}):n.push(t),n},t.hasClass=function(t){t=ya(t);return!!o[t.main]},t.getAllClassMainTypes=function(){var n=[];return X(o,function(t,e){n.push(e)}),n},t.hasSubTypes=function(t){t=ya(t),t=o[t.main];return t&&t[fa]}}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"],["o
1pacity"],["shadowColor"]]),Ia=(Ta.prototype.getAreaStyle=function(t,e){return Ma(this,t,e)},Ta);function Ta(){}var Ca=new li(50);function Aa(t,e,n,i,o){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:o},(i=Ca.get(t))?ka(e=i.image)||i.pending.push(n):((e=tt.loadImage(t,Da,Da)).__zrImageSrc=t,Ca.put(t,e.__cachedImgObj={image:e,pending:[n]}))),e):t:e}function Da(){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]=Na(r[a],o);return r.join("\n")}function Oa(t,e,n,i){var o=H({},i=i||{}),r=(o.font=e,n=N(n,"..."),o.maxIterations=N(i.maxIterations,2),o.minChar=N(i.minChar,0)),a=(o.cnCharWidth=Uo("å½",e),o.ascCharWidth=Uo("a",e));o.placeholder=N(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 Na(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 Ra(){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 Ba(t,e){var n=new Ra;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&&Va(n,t.substring(l,u),e,s),Va(n,i[2],e,s,i[1]),l=La.lastIndex}l<t.length&&Va(n,t.substring(l,t.length),e,s);var h,c=[],p=0,d=0,f=e.padding,g="truncate"===a,y="truncate"===e.lineOverflow;t:for(var m=0;m<n.lines.length;m++){for(var v=n.lines[m],x=0,_=0,b=0;b<v.tokens.length;b++){var w=(D=v.tokens[b]).styleName&&e.rich[D.styleName]||{},S=D.textPadding=w.padding,M=S?S[1]+S[3]:0,I=D.font=w.font||e.font,T=(D.contentHeight=Jo(I),N(w.height,D.contentHeight));if(D.innerHeight=T,S&&(T+=S[0]+S[2]),D.height=T,D.lineHeight=St(w.lineHeight,e.lineHeight,T),D.align=w&&w.align||e.align,D.verticalAlign=w&&w.verticalAlign||"middle",y&&null!=r&&p+D.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,A=null==S||"auto"===S;"string"==typeof S&&"%"===S.charAt(S.length-1)?(D.percentWidth=S,c.push(D),D.contentWidth=Uo(D.text,I)):(A&&(S=(S=w.backgroundColor)&&S.image)&&(C=void 0,ka(S="string"==typeof(h=S)?(C=Ca.get(h))&&C.image:h))&&(D.width=Math.max(D.width,S.width*T/S.height)),null!=(C=g&&null!=o?o-_:null)&&C<D.width?!A||C<M?(D.text="",D.width=D.contentWidth=0):(D.text=Pa(D.text,C-M,I,e.ellipsis,{minChar:e.truncateMinChar}),D.width=D.contentWidth=Uo(D.text,I)):D.contentWidth=Uo(D.text,I)),D.width+=M,_+=D.width,w&&(x=Math.max(x,D.lineHeight))}L(v,_,x)}for(n.outerWidth=n.width=N(o,d),n.outerHeight=n.height=N(r,p),n.contentHeight=p,n.contentWidth=d,f&&(n.outerWidth+=f[1]+f[3],n.outerHeight+=f[0]+f[2]),m=0;m<c.length;m++){var D,k=(D=c[m]).percentWidth;D.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 Va(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=$o(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,f,g=r[p],y=new Ea;y.styleName=o,y.text=g,y.isLineHolder=!g&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[p]:Uo(g,h),p||c?u.push(new za([y])):1===(f=(d=(u[u.length-1]||(u[0]=new za)).tokens).length)&&d[0].isLineHolder?d[0]=y:!g&&f&&!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,f,g=t.charAt(p);"\n"!==g?(d=Uo(g,e),f=!(i||(f=void 0,!(32<=(f=(f=r=g).charCodeAt(0))&&f<=591||880<=f&&f<=4351||4608<=f&&f<=5119||7680<=f&&f<=8303))||Fa[r]),(a.length?n<c+d:n<o+c+d)?c?(l||u)&&(c=f?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=g,l="",h+=d):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=g,d)):f?(a.push(u),s.push(h),u=g,h=d):(a.push(g),s.push(d)):(c+=d,f?(u+=g,h+=d):(u&&(l+=u,u="",h=0),l+=g))):(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()),Xa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ya={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Ua=(Xa[Ha]=!0,["z","z2","invisible"]),Za=["invisible"],ja=(u(Ja,Wa=e),Ja.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({})},Ja.prototype.beforeBrush=function(){},Ja.prototype.afterBrush=function(){},Ja.prototype.innerBeforeBrush=function(){},Ja.prototype.innerAfterBrush=function(){},Ja.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
1()),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},Ja.prototype.contain=function(t,e){return this.rectContain(t,e)},Ja.prototype.traverse=function(t,e){t.call(e,this)},Ja.prototype.rectContain=function(t,e){t=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(t[0],t[1])},Ja.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},Ja.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new z(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},Ja.prototype.getPrevPaintRect=function(){return this._prevPaintRect},Ja.prototype.animateStyle=function(t){return this.animate("style",t)},Ja.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},Ja.prototype.attrKV=function(t,e){"style"!==t?Wa.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},Ja.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:H(this.style,t),this.dirtyStyle(),this},Ja.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},Ja.prototype.dirty=function(){this.dirtyStyle()},Ja.prototype.styleChanged=function(){return!!(2&this.__dirty)},Ja.prototype.styleUpdated=function(){this.__dirty&=-3},Ja.prototype.createStyle=function(t){return zt(Xa,t)},Ja.prototype.useStyle=function(t){t[Ha]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},Ja.prototype.isStyleObject=function(t){return t[Ha]},Ja.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)},Ja.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])},Ja.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},Ja.prototype._mergeStyle=function(t,e){return H(t,e),t},Ja.prototype.getAnimationStyleProps=function(){return Ya},Ja.initDefaultProps=((e=Ja.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)),Ja),qa=new z(0,0,0,0),Ka=new z(0,0,0,0);function Ja(t){return Wa.call(this,t)||this}var $a=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=$a(o,i[0]),r=Qa(r,i[0]),a=$a(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]=$a(t,n),o[1]=$a(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=[],fs=[],gs=[],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}Ds.prototype.increaseVersion=function(){this._version++},Ds.prototype.getVersion=function(){return this._version}
1,Ds.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=bs(n/Po/t)||0,this._uy=bs(n/Po/e)||0)},Ds.prototype.setDPR=function(t){this.dpr=t},Ds.prototype.setContext=function(t){this._ctx=t},Ds.prototype.getContext=function(){return this._ctx},Ds.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},Ds.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},Ds.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},Ds.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},Ds.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},Ds.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},Ds.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},Ds.prototype.arcTo=function(t,e,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},Ds.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},Ds.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},Ds.prototype.fill=function(t){t&&t.fill(),this.toStatic()},Ds.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},Ds.prototype.len=function(){return this._len},Ds.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},Ds.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},Ds.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]}},Ds.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},Ds.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}},Ds.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))},Ds.prototype.getBoundingRect=function(){ds[0]=ds[1]=gs[0]=gs[1]=Number.MAX_VALUE,fs[0]=fs[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++],gs[0]=a,gs[1]=s,ys[0]=a,ys[1]=s;break;case hs.L:ss(o,r,i[l],i[l+1],gs,ys),o=i[l++],r=i[l++];break;case hs.C:T=I=M=S=w=b=_=x=v=m=y=g=f=d=p=c=void 0;var c=o,p=r,d=i[l++],f=i[l++],g=i[l++],y=i[l++],m=i[l],v=i[l+1],x=gs,_=ys,b=Zn,w=Xn,S=b(c,d,g,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,g,m,ls[M]);x[0]=$a(I,x[0]),_[0]=Qa(I,_[0])}for(S=b(p,f,y,v,us),M=0;M<S;M++){var T=w(p,f,y,v,us[M]);x[1]=$a(T,x[1]),_[1]=Qa(T,_[1])}x[0]=$a(c,x[0]),_[0]=Qa(c,_[0]),x[0]=$a(m,x[0]),_[0]=Qa(m,_[0]),x[1]=$a(p,x[1]),_[1]=Qa(p,_[1]),x[1]=$a(v,x[1]),_[1]=Qa(v,_[1]),o=i[l++],r=i[l
1++];break;case hs.Q:b=o,t=r,P=i[l++],A=i[l++],L=i[l],e=i[l+1],k=gs,O=ys,n=D=n=C=void 0,C=Kn,n=Qa($a((D=$n)(b,P,L),1),0),D=Qa($a(D(t,A,e),1),0),P=C(b,P,L,n),n=C(t,A,e,D),k[0]=$a(b,L,P),k[1]=$a(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++],A=i[l++],D=i[l++],k=i[l++],L=i[l++],P=i[l++]+L,O=(l+=1,!i[l++]);h&&(a=xs(L)*D+C,s=_s(L)*k+A),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,A,D,k,L,P,O,gs,ys),o=xs(P)*D+C,r=_s(P)*k+A;break;case hs.R:ss(a=o=i[l++],s=r=i[l++],a+i[l++],s+i[l++],gs,ys);break;case hs.Z:o=a,r=s}re(ds,ds,gs),ae(fs,fs,ys)}return 0===l&&(ds[0]=ds[1]=fs[0]=fs[1]=0),new z(ds[0],ds[1],fs[0]-ds[0],fs[1]-ds[1])},Ds.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,f=(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 g=t[c++],y=(x=t[c++])-r;(bs(C=g-o)>n||bs(y)>i||c===e-1)&&(f=Math.sqrt(C*C+y*y),o=g,r=x);break;case hs.C:var m=t[c++],v=t[c++],x=(g=t[c++],t[c++]),_=t[c++],b=t[c++],f=function(t,e,n,i,o,r,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Xn(t,n,o,a,f),f=Xn(e,i,r,s,f),y=g-u,m=f-h;c+=Math.sqrt(y*y+m*m),u=g,h=f}return c}(o,r,m,v,g,x,_,b,10),o=_,r=b;break;case hs.Q:f=function(t,e,n,i,o,r,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=Kn(t,n,o,p),p=Kn(e,i,r,p),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(o,r,m=t[c++],v=t[c++],g=t[c++],x=t[c++],10),o=g,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),f=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++],f=2*t[c++]+2*t[c++];break;case hs.Z:var C=a-o,y=s-r;f=Math.sqrt(C*C+y*y),o=a,r=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},Ds.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,h=this.data,E=this._ux,z=this._uy,B=this._len,c=e<1,p=0,d=0,f=0;if(!c||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var g=0;g<B;){var y,m=h[g++],V=1===g;switch(V&&(n=o=h[g],i=r=h[g+1]),m!==hs.L&&0<f&&(t.lineTo(l,u),f=0),m){case hs.M:n=o=h[g++],i=r=h[g++],t.moveTo(o,r);break;case hs.L:var v=h[g++],x=h[g++],_=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,f=0}else{_=_*_+b*b;f<_&&(l=v,u=x,f=_)}break;case hs.C:var S=h[g++],M=h[g++],I=h[g++],T=h[g++],b=h[g++],_=h[g++];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[g++],M=h[g++],I=h[g++],T=h[g++],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[g++],A=h[g++],D=h[g++],k=h[g++],L=h[g++],P=h[g++],O=h[g++],F=!h[g++],G=k<D?D:k,N=.001<bs(D-k),R=L+P,W=!1;if(c&&(p+(y=a[d++])>s&&(R=L+P*(s-p)/y,W=!0),p+=y),N&&t.ellipse?t.ellipse(C,A,D,k,O,L,R,F):t.arc(C,A,G,L,R,F),W)break t;V&&(n=xs(L)*D+C,i=_s(L)*k+A),o=xs(R)*D+C,r=_s(R)*k+A;break;case hs.R:n=o=h[g],i=r=h[g+1],v=h[g++],x=h[g++];P=h[g++],N=h[g++];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,N)),0<(O-=N)&&t.lineTo(v+vs(P-O,0),x+N),0<(O-=P)&&t.lineTo(v,x+vs(N-O,0));break t}p+=y}t.rect(v,x,P,N);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}}},Ds.prototype.clone=function(){var t=new Ds,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},Ds.CMD=hs,Ds.initDefaultProps=((e=Ds.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0));var As=Ds;function Ds(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 Ns=2*Math.PI;function Rs(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=As.CMD,zs=2*Math.PI,Bs=1e-4;var Vs=[-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,Vs);if(0===h)return 0;for(var c,p=0,d=-1,f=void 0,g=void 0,y=0;
1y<h;y++){var m=Vs[y],v=0===m||1===m?.5:1;Xn(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),f=Xn(e,i,r,s,Fs[0]),1<d)&&(g=Xn(e,i,r,s,Fs[1])),2===d?m<Fs[0]?p+=f<e?v:-v:m<Fs[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<Fs[0]?p+=f<e?v:-v:p+=s<f?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=Vs,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=Nn(l)))/(2*h),0<=(p=(-u+l)/(2*h))&&p<=1&&(c[s++]=p),0<=d)&&d<=1&&(c[s++]=d);var l,u,h,c,p,d,f=s;if(0===f)return 0;var g=$n(e,i,r);if(0<=g&&g<=1){for(var y=0,m=Kn(e,i,r,g),v=0;v<f;v++){var x=0===Vs[v]||1===Vs[v]?.5:1;Kn(t,n,o,Vs[v])<a||(Vs[v]<g?y+=m<e?x:-x:y+=r<m?x:-x)}return y}return x=0===Vs[0]||1===Vs[0]?.5:1,Kn(t,n,o,Vs[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 f=a[d++],g=1===d;switch(f===Es.M&&1<d&&(n||(l+=Rs(u,h,c,p,i,o))),g&&(c=u=a[d],p=h=a[d+1]),f){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+=Rs(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=(g?(c=S,p=M):l+=Rs(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)%Ns<1e-4||((o=r?(e=i,i=Os(o),Os(e)):(i=Os(i),Os(o)))<i&&(o+=Ns),(t=Math.atan2(l,s))<0&&(t+=Ns),i<=t&&t<=o)||i<=t+Ns&&t+Ns<=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(Vs[0]=-e,Vs[1]=e,(n=Math.abs(i-o))<1e-4)return 0;if(zs-1e-4<=n)return o=zs,h=r?1:-1,a>=Vs[i=0]+t&&a<=Vs[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=Vs[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+=Rs(S,p,S,M,i,o))+Rs(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+=Rs(u,h,c,p,i,o);u=c,h=p}}return n||(t=h,r=p,Math.abs(t-r)<Bs)||(l+=Rs(u,h,c,p,i,o)||0),0!==l}var Xs,Ys=B({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xa),Us={style:B({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ya.style)},Zs=Ho.concat(["invisible","culling","z","z2","zlevel","parent"]),K=(u(js,Xs=ja),js.prototype.update=function(){var e=this,t=(Xs.prototype.update.call(this),this.style);if(t.decal){var n,i=this._decalEl=this._decalEl||new 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):Xs.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":No;if(e)return No}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 As(!1)},js.prototype.hasStroke=function(){var t=this.style,e=t.stroke;
1return!(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):Xs.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(Ys,t)},js.prototype._innerSaveToNormal=function(t){Xs.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){Xs.prototype._applyStateObj.call(this,t,e,n,i,o,r);var a,s=!(e&&i);if(e&&e.shape?o?i?a=e.shape:(a=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=Xs.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&this._mergeStyle(e=e||{},o.shape)}return e&&(n.shape=e),n},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 x(n.style)},o.prototype.getDefaultShape=function(){return x(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 Xs.call(this,t)||this}var qs,Ks=B({strokeFirst:!0,font:Q,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ys),Js=(u($s,qs=ja),$s.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},$s.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},$s.prototype.createStyle=function(t){return zt(Ks,t)},$s.prototype.setBoundingRect=function(t){this._rect=t},$s.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},$s.initDefaultProps=void($s.prototype.dirtyRectTolerance=10),$s);function $s(){return null!==qs&&qs.apply(this,arguments)||this}Js.prototype.type="tspan";var Qs=B({x:0,y:0},Xa),tl={style:B({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ya.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={},cl=(u(pl,ul=K),pl.prototype.getDefaultShape=function(){return new ll},pl.prototype.buildPath=function(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,f,g;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,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=u=h=e:e instanceof Array?1===e.length?s=l=u=h=e[0]:2===e.length?(s=u=e[0],l=h=e[1]):3===e.length?(s=e[0],l=h=e[1],u=e[2]):(s=e[0],l=e[1],u=e[2],h=e[3]):s=l=u=h=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<u+h&&(u*=f/(c=u+h),h*=f/c),g<l+u&&(l*=g/(c=l+u),u*=g/c),g<s+h&&(s*=g/(c=s+h),h*=g/c),a.moveTo(p+s,d),a.lineTo(p+f-l,d),0!==l&&a.arc(p+f-l,d+l,l,-Math.PI/2,0),a.lineTo(p+f,d+g-u),0!==u&&a.arc(p+f-u,d+g-u,u,0,Math.PI/2),a.lineTo(p+h,d+g),0!==h&&a.arc(p+h,d+g-h,h,Math.PI/2,Math.PI),a.lineTo(p,d+s),0!==s&&a.arc(p+s,d+s,s,Math.PI,1.5*Math.PI)):t.rect(n,i,o,r)},pl.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},pl);function pl(t){return ul.call(this,t)||this}cl.prototype.type="rect";var dl,fl={fill:"#000"},gl={style:B({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},Ya.style)},J=(u(xl,dl=ja),xl.prototype.childrenRef=function(){return this._children},xl.prototype.update=function(){dl.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}},xl.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):dl.prototype.updateTransform.call(this)},xl.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):dl.prototype.getLocalTransform.call(this,t)},xl.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),dl.prototype.getComputedTransform.call(this)},xl.prototype._updateSubTexts=function(){var t;
1this._childCursor=0,Sl(t=this.style),X(t.rich,Sl),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},xl.prototype.addSelfToZr=function(t){dl.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},xl.prototype.removeSelfFromZr=function(t){dl.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},xl.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},xl.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||fl},xl.prototype.setTextContent=function(t){},xl.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},xl.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])}},xl.prototype.getAnimationStyleProps=function(){return gl},xl.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},xl.prototype._updatePlainTexts=function(){var t,e=this.style,n=e.font||Q,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=Jo(r),l=N(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=N(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}),f=0;f<n.length;f++)n[f]=Na(n[f],d);for(var h=p,g=0,f=0;f<n.length;f++)g=Math.max(Uo(n[f],r),g);return null==c&&(c=g),t=g,o&&(h+=o[0]+o[2],t+=o[1]+o[3],c+=o[1]+o[3]),{lines:n,height:p,outerWidth:t=u?c:t,outerHeight:h,lineHeight:l,calculatedLineHeight:s,contentWidth:g,contentHeight:i,width:c}}(Cl(e),e),r=Al(e),a=!!e.backgroundColor,s=o.outerHeight,l=o.outerWidth,u=o.contentWidth,h=o.lines,c=o.lineHeight,p=this._defaultStyle,d=e.x||0,f=e.y||0,g=e.align||p.align||"left",y=e.verticalAlign||p.verticalAlign||"top",m=d,v=Ko(f,o.contentHeight,y);(r||i)&&(t=qo(d,l,g),f=Ko(f,s,y),r)&&this._renderBackground(e,e,t,f,l,s),v+=c/2,i&&(m=Tl(d,g,i),"top"===y?v+=i[0]:"bottom"===y&&(v-=i[2]));for(var x=0,r=!1,_=(Il(("fill"in e?e:(r=!0,p)).fill)),b=(Ml("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(Js),C=T.createStyle();T.useStyle(C),C.text=h[I],C.x=m,C.y=v,g&&(C.textAlign=g),C.textBaseline="middle",C.opacity=e.opacity,C.strokeFirst=!0,w&&(C.shadowBlur=e.textShadowBlur||0,C.shadowColor=e.textShadowColor||"transparent",C.shadowOffsetX=e.textShadowOffsetX||0,C.shadowOffsetY=e.textShadowOffsetY||0),C.stroke=b,C.fill=_,b&&(C.lineWidth=e.lineWidth||x,C.lineDash=e.lineDash,C.lineDashOffset=e.lineDashOffset||0),C.font=n,bl(C,e),v+=c,S&&T.setBoundingRect(new z(qo(C.x,e.width,C.textAlign),Ko(C.y,M,C.textBaseline),u,M))}},xl.prototype._updateRichTexts=function(){var t=this.style,e=Ba(Cl(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);Al(t)&&this._renderBackground(t,t,a,u,i,o);for(var d=!!t.backgroundColor,f=0;f<e.lines.length;f++){for(var g=e.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,x=g.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}},xl.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&&Al(s)&&this._renderBackgroun
1d(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=Tl(o,r,i),u-=t.height/2-i[0]-t.innerHeight/2),this._getOrCreateChild(Js)),i=n.createStyle(),h=(n.useStyle(i),this._defaultStyle),c=!1,p=0,d=Il(("fill"in s?s:"fill"in e?e:(c=!0,h)).fill),l=Ml("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||Q,i.opacity=St(s.opacity,e.opacity,1),bl(i,s),l&&(i.lineWidth=St(s.lineWidth,e.lineWidth,p),i.lineDash=N(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))},xl.prototype._renderBackground=function(t,e,n,i,o,r){var a,s,l,u,h=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=h&&h.image,f=h&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(cl)).useStyle(a.createStyle()),a.style.fill=null,(u=a.shape).x=n,u.y=i,u.width=o,u.height=r,u.r=g,a.dirtyShape()),f?((l=a.style).fill=h||null,l.fillOpacity=N(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=N(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);g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||"transparent",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=St(t.opacity,e.opacity,1)},xl.makeFont=function(t){var e="";return(e=wl(t)?[t.fontStyle,t.fontWeight,_l(t.fontSize),t.fontFamily||"sans-serif"].join(" "):e)&&Ct(e)||t.textFont||t.font},xl),yl={left:!0,right:1,center:1},ml={top:1,bottom:1,middle:1},vl=["fontStyle","fontWeight","fontSize","fontFamily"];function xl(t){var e=dl.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=fl,e.attr(t),e}function _l(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?h+"px":t+"px":t}function bl(t,e){for(var n=0;n<vl.length;n++){var i=vl[n],o=e[i];null!=o&&(t[i]=o)}}function wl(t){return null!=t.fontSize||t.fontFamily||t.fontWeight}function Sl(t){var e;t&&(t.font=J.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||yl[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||ml[e]?e:"top",t.padding)&&(t.padding=It(t.padding))}function Ml(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Il(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Tl(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Cl(t){t=t.text;return null!=t&&(t+=""),t}function Al(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(),kl=1,Ll={},Pl=i(),Ol=i(),Nl=0,Rl=1,El=2,zl=["emphasis","blur","select"],Bl=["normal","emphasis","blur","select"],Vl="highlight",Fl="downplay",Gl="select",Wl="unselect",Hl="toggleSelect";function Xl(t){return null!=t&&"none"!==t}var Yl=new li(100);function Ul(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=V(t.colorStops,function(t){return{offset:t.offset,color:Mi(t.color,-.1)}}),e):t}function Zl(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function jl(t){Zl(t,"emphasis",El)}function ql(t){t.hoverState===El&&Zl(t,"normal",Nl)}function Kl(t){Zl(t,"blur",Rl)}function Jl(t){t.hoverState===Rl&&Zl(t,"normal",Nl)}function $l(t){t.selected=!0}function Ql(t){t.selected=!1}function tu(t,e,n){e(t,n)}function eu(t,e,n){tu(t,e,n),t.isGroup&&t.traverse(function(t){tu(t,e,n)})}function nu(t,e){switch(e){case"emphasis":t.hoverState=El;break;case"normal":t.hoverState=Nl;break;case"blur":t.hoverState=Rl;break;case"select":t.selected=!0}}function iu(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 ou(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 K&&(o=Pl(n),r=e&&o.selectFill||o.normalFill,e=e&&o.selectStroke||o.normalStroke,Xl(r)||Xl(e))&&("inherit"===(o=(i=i||{}).style||{}
1).fill?(a=!0,i=H({},i),(o=H({},o)).fill=r):!Xl(o.fill)&&Xl(r)?(a=!0,i=H({},i),(o=H({},o)).fill=Ul(r)):!Xl(o.stroke)&&Xl(e)&&(a||(i=H({},i),o=H({},o)),o.stroke=Ul(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 iu(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 ru(t){t.stateProxy=ou;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=ou),t&&(t.stateProxy=ou)}function au(t,e){fu(t,e)||t.__highByOuter||eu(t,jl)}function su(t,e){fu(t,e)||t.__highByOuter||eu(t,ql)}function lu(t,e){t.__highByOuter|=1<<(e||0),eu(t,jl)}function uu(t,e){(t.__highByOuter&=~(1<<(e||0)))||eu(t,ql)}function hu(t){eu(t,Kl)}function cu(t){eu(t,Jl)}function pu(t){eu(t,$l)}function du(t){eu(t,Ql)}function fu(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function gu(o){var e=o.getModel(),r=[],a=[];e.eachComponent(function(t,e){var n=Ol(e),t="series"===t,i=t?o.getViewOfSeriesModel(e):o.getViewOfComponentModel(e);t||a.push(i),n.isBlured&&(i.group.traverse(function(t){Jl(t)}),t)&&r.push(e),n.isBlured=!1}),X(a,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(r,!1,e)})}function yu(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&&cu(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||Kl(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),Ol(t).isBlured=!0}}
1),n.eachComponent(function(t,e){"series"!==t&&(t=s.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(h,!0,n)}))}function mu(t,e,n){null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(Ol(t).isBlured=!0,e=n.getViewOfComponentModel(t))&&e.focusBlurEnabled&&e.group.traverse(function(t){Kl(t)})}function vu(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 xu(i){X(i.getAllData(),function(t){var e=t.data,n=t.type;e.eachItemGraphicEl(function(t,e){(i.isSelected(e,n)?pu:du)(t)})})}function _u(t,e,n){Tu(t,!0),eu(t,ru),wu(t,e,n)}function bu(t,e,n,i){i?Tu(t,!1):_u(t,e,n)}function wu(t,e,n){t=$(t);null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}var Su=["emphasis","blur","select"],Mu={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Iu(t,e,n,i){n=n||"itemStyle";for(var o=0;o<Su.length;o++){var r=Su[o],a=e.getModel([r,n]);t.ensureState(r).style=i?i(a):a[Mu[n]]()}}function Tu(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 Cu(t){return!(!t||!t.__highDownDispatcher)}function Au(t){t=t.type;return t===Gl||t===Wl||t===Hl}function Du(t){t=t.type;return t===Vl||t===Fl}var ku=As.CMD,Lu=[[],[],[]],Pu=Math.sqrt,Ou=Math.atan2;var Nu=Math.sqrt,Ru=Math.sin,Eu=Math.cos,zu=Math.PI;function Bu(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])/(Bu(t)*Bu(e))}function Fu(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Vu(t,e))}function Gu(t,e,n,i,o,r,a,s,l,u,h){var l=l*(zu/180),c=Eu(l)*(t-n)/2+Ru(l)*(e-i)/2,p=-1*Ru(l)*(t-n)/2+Eu(l)*(e-i)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=Nu(d),s*=Nu(d)),(o===r?-1:1)*Nu((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+Eu(l)*o-Ru(l)*d,n=(e+i)/2+Ru(l)*o+Eu(l)*d,e=Fu([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=Fu(i,c);Vu(i,c)<=-1&&(o=zu),(o=1<=Vu(i,c)?0:o)<0&&(p=Math.round(o/zu*1e6)/1e6,o=2*zu+p%2*zu),h.addData(u,t,n,a,s,e,o,l,r)}var Wu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Hu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;u(Uu,Xu=K),Uu.prototype.applyTransform=function(t){};var Xu,Yu=Uu;function Uu(){return null!==Xu&&Xu.apply(this,arguments)||this}function Zu(t){return null!=t.setData}function ju(t,e){var S=function(t){var e=new As;if(t){var n,i=0,o=0,r=i,a=o,s=As.CMD,l=t.match(Wu);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(Hu)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var y=0;y<f;){var m=void 0,v=void 0,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,
1i,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++],Gu(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++],Gu(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;Zu(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=ku.M,h=ku.C,c=ku.L,p=ku.R,d=ku.A,f=ku.Q,g=0,y=0;g<l;){switch(i=s[g++],y=g,o=0,i){case u:case c:o=1;break;case h:o=3;break;case f:o=2;break;case d:var m=n[4],v=n[5],x=Pu(n[0]*n[0]+n[1]*n[1]),_=Pu(n[2]*n[2]+n[3]*n[3]),b=Ou(-n[1]/_,n[0]/x);s[g]*=x,s[g++]+=m,s[g]*=_,s[g++]+=v,s[g++]*=x,s[g++]*=_,s[g++]+=b,s[g++]+=b,y=g+=2;break;case p:a[0]=s[g++],a[1]=s[g++],oe(a,a,n),s[y++]=a[0],s[y++]=a[1],a[0]+=s[g++],a[1]+=s[g++],oe(a,a,n),s[y++]=a[0],s[y++]=a[1]}for(r=0;r<o;r++){var w=Lu[r];w[0]=s[g++],w[1]=s[g++],oe(w,w,n),s[y++]=w[0],s[y++]=w[1]}}e.increaseVersion()}this.dirtyShape()},t}function qu(t,e){return new Yu(ju(t,e))}function Ku(){this.cx=0,this.cy=0,this.r=0}u(Qu,Ju=K),Qu.prototype.getDefaultShape=function(){return new Ku},Qu.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 Ju,$u=Qu;function Qu(t){return Ju.call(this,t)||this}$u.prototype.type="circle";function th(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}u(ih,eh=K),ih.prototype.getDefaultShape=function(){return new th},ih.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 eh,nh=ih;function ih(t){return eh.call(this,t)||this}nh.prototype.type="ellipse";var oh=Math.PI,rh=2*oh,ah=Math.sin,sh=Math.cos,lh=Math.acos,uh=Math.atan2,hh=Math.abs,ch=Math.sqrt,ph=Math.max,dh=Math.min,fh=1e-4;function gh(t,e,n,i,o,r,a){var s=t-n,l=e-i,a=(a?r:-r)/ch(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)*ch(ph(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 yh(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,f,g,y,m,v,x,_,b,w,S,M,I,T,C,A,D,k,L,P=ph(e.r,0),O=ph(e.r0||0,0),N=0<P;(N||0<O)&&(N||(P=O,O=0),P<O&&(N=P,P=O,O=N),N=e.startAngle,n=e.endAngle,isNaN(N)||isNaN(n)||(i=e.cx,o=e.cy,r=!!e.clockwise,b=hh(n-N),fh<(a=rh<b&&b%rh)&&(b=a),fh<P?rh-fh<b?(t.moveTo(i+P*sh(N),o+P*ah(N)),t.arc(i,o,P,N,n,!r),fh<O&&(t.moveTo(i+O*sh(n),o+O*ah(n)),t.arc(i,o,O,n,N,r))):(g=f=d=p=S=w=c=h=C=T=I=M=u=l=s=a=void 0,y=P*sh(N),m=P*ah(N),v=O*sh(n),x=O*ah(n),(_=fh<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=hh(P-O)/2,M=dh(e,l),I=dh(e,u),T=dh(e,a),C=dh(e,s),w=h=ph(M,I),S=c=ph(T,C),fh<h||fh<c)&&(p=P*sh(n),d=P*ah(n),f=O*sh(N),g=O*ah(N),b<oh)&&((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<fh))return[t+(l=(a*(e-r)-s*(t-o))/l)*n,e+l*i]}(y,m,f,g,p,d,v,x))&&(M=y-e[0],I=m-e[1],T=p-e[0],C=d-e[1],b=1/ah(lh((M*T+I*C)/(ch(M*M+I*I)*ch(T*T+C*C)))/2),M=ch(e[0]*e[0]+e[1]*e[1]),w=dh(h,(P-M)/(1+b)),S=dh(c,(O-M)/(b-1)))),_?fh<w?(A=dh(l,w),D=dh(u,w),k=gh(f,g,y,m,P,A,r),L=gh(p,d,v,x,P,D,r),t.moveTo(i+k.cx+k.x0,o+k.cy+k.y0),w<h&&A===D?t.arc(i+k.cx,o+k.cy,w,uh(k.y0,k.x0),uh(L.y0,L.x0),!r):(0<A&&t.arc(i+k.cx,o+k.cy,A,uh(k.y0,k.x0),uh(k.y1,k.x1),!r),t.arc(i,o,P,uh(k.cy+k.y1,k.cx+k.x1),uh(L.cy+L.y1,L.cx+L.x1),!r),0<D&&t.arc(i+L.cx,o+L.cy,D,uh(L.y1,L.x1),uh(L.y0,L.x0),!r))):(t.moveTo(i+y,o+m),t.arc(i,o,P,N,n,!r)):t.moveTo(i+y,o+m),fh<O&&_?fh<S?(A=dh(a,S),k=gh(v,x,p,d,O,-(D=dh(s,S)),r),L=gh(y,m,f,g,O,-A,r),t.lineTo(i+k.cx+k.x0,o+k.cy+k.y0),S<c&&A===D?t.arc(i+k.cx,o+k.cy,S,uh(k.y0,k.x0),uh(L.y0,L.x0),!r):(0<D&&t.arc(i+k.cx,o+k.cy,D,uh(k.y0,k.x0),uh(k.y1,k.x1),!r),t.arc(i,o,O,uh(k.cy+k.y1,k.cx+k.x1),uh(L.cy+L.y1,L.cx+L.x1),r),0<A&&t.arc(i+L.cx,o+L.cy,A,uh(L.y1,L.x1),uh(L.y0,L.x0),!r))):(t.lineTo(i+v,o+x),t.arc(i,o,O,n,N,r)):t.lineTo(i+v,o+x)):t.moveTo(i,o),t.closePath()))}function mh(){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(_h,vh=K),_h.prototype.getDefaultShape=function(){return new mh},_h.prototype.buildPath=function(t,e){yh(t,e)},_h.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0};var vh,xh=_h;function _h(t){return vh.call(this,t)||this}xh.prototype.type="sector";function bh(){this.cx=0,this.cy=0,this.r=0,this.r0=0}u(Mh,wh=K),Mh.prototype.getDefaultShape=function(){return new bh},Mh.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 wh,Sh=Mh;function Mh(t){return wh.call(this,t)||this}function Ih(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=[];
1if(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 f=t[p];if(n)o=t[p?p-1:d-1],r=t[(p+1)%d];else{if(0===p||p===d-1){a.push(Xt(t[p]));continue}o=t[p-1],r=t[p+1]}jt(s,r,o),Jt(s,s,e);var g=Qt(f,o),y=Qt(f,r),m=g+y,m=(0!==m&&(g/=m,y/=m),Jt(l,s,-g),Jt(u,s,y),Ut([],f,l)),g=Ut([],f,u);i&&(ae(m,m,h),re(m,m,c),ae(g,g,h),re(g,g,c)),a.push(m),a.push(g)}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()}}Sh.prototype.type="ring";function Th(){this.points=null,this.smooth=0,this.smoothConstraint=null}u(Dh,Ch=K),Dh.prototype.getDefaultShape=function(){return new Th},Dh.prototype.buildPath=function(t,e){Ih(t,e,!0)};var Ch,Ah=Dh;function Dh(t){return Ch.call(this,t)||this}Ah.prototype.type="polygon";function kh(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}u(Oh,Lh=K),Oh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Oh.prototype.getDefaultShape=function(){return new kh},Oh.prototype.buildPath=function(t,e){Ih(t,e,!1)};var Lh,Ph=Oh;function Oh(t){return Lh.call(this,t)||this}Ph.prototype.type="polyline";function Nh(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}var Rh,Eh={},zh=(u(Bh,Rh=K),Bh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Bh.prototype.getDefaultShape=function(){return new Nh},Bh.prototype.buildPath=function(t,e){r=(this.subPixelOptimize?(n=(r=rl(Eh,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))},Bh.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Bh);function Bh(t){return Rh.call(this,t)||this}zh.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 Fh=[];function Gh(t,e,n){var i=t.cpx2,o=t.cpy2;return null!=i||null!=o?[(n?Yn:Xn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Yn:Xn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Jn:Kn)(t.x1,t.cpx1,t.x2,e),(n?Jn:Kn)(t.y1,t.cpy1,t.y2,e)]}u(Xh,Wh=K),Xh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Xh.prototype.getDefaultShape=function(){return new Vh},Xh.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,Fh),a=Fh[1],o=Fh[2],Qn(i,s,r,e,Fh),s=Fh[1],r=Fh[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(jn(n,a,l,o,e,Fh),a=Fh[1],l=Fh[2],o=Fh[3],jn(i,s,u,r,e,Fh),s=Fh[1],u=Fh[2],r=Fh[3]),t.bezierCurveTo(a,s,l,u,o,r)))},Xh.prototype.pointAt=function(t){return Gh(this.shape,t,!1)},Xh.prototype.tangentAt=function(t){t=Gh(this.shape,t,!0);return $t(t,t)};var Wh,Hh=Xh;function Xh(t){return Wh.call(this,t)||this}Hh.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(jh,Uh=K),jh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},jh.prototype.getDefaultShape=function(){return new Yh},jh.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 Uh,Zh=jh;function jh(t){return Uh.call(this,t)||this}Zh.prototype.type="arc";u(Jh,qh=K),Jh.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()},Jh.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)},Jh.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},Jh.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},Jh.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),K.prototype.getBoundingRect.call(this)};var qh,Kh=Jh;function Jh(){var t=null!==qh&&qh.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(ec,Qh=e);var Qh,tc=ec;function ec(t,e,n,i,o,r){o=Qh.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(oc,nc=e);var nc,ic=oc;function oc(t,e,n,i,o){i=nc.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 rc=[0,0],ac=[0,0],sc=new E,lc=new E,uc=(hc.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])},hc.prototype.intersect=function(t,e){var n=!0,i=!e;return sc.set(1/0,1/0),lc.set(0,0),!this._intersectCheckOneSide(this,t,sc,lc,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,sc,lc,i,-1)&&(n=!1,i)||i||E.c
1opy(e,n?sc:lc),n},hc.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,rc),this._getProjMinMaxOnAxis(s,e._corners,ac),rc[1]<ac[0]||ac[1]<rc[0]){if(a=!1,o)return a;var u=Math.abs(ac[0]-rc[1]),h=Math.abs(rc[0]-ac[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(ac[0]-rc[1]),h=Math.abs(rc[0]-ac[1]),Math.min(u,h)<n.len())&&(u<h?E.scale(n,l,u*r):E.scale(n,l,-h*r))}return a},hc.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},hc);function hc(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 cc,pc=[],e=(u(dc,cc=ja),dc.prototype.traverse=function(t,e){t.call(e,this)},dc.prototype.useStyle=function(){this.style={}},dc.prototype.getCursor=function(){return this._cursor},dc.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},dc.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},dc.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},dc.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},dc.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},dc.prototype.getDisplayables=function(){return this._displayables},dc.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},dc.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])},dc.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},dc.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();
1n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(pc)),t.union(i)}this._rect=t}return this._rect},dc.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},dc);function dc(){var t=null!==cc&&cc.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}var fc=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=N(i.duration,200),s=N(i.easing,"cubicOut"),0):(a=e.getShallow(t?"animationDurationUpdate":"animationDuration"),s=e.getShallow(t?"animationEasingUpdate":"animationEasing"),e.getShallow(t?"animationDelayUpdate":"animationDelay")),A(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=A(a)?a(n):a)||0,delay:l,easing:s}):null}function yc(t,e,n,i,o,r,a){var s=!1,l=(A(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){yc("update",t,e,n,i,o,r)}function mc(t,e,n,i,o,r){yc("enter",t,e,n,i,o,r)}function vc(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 xc(t,e,n,i,o,r){vc(t)||yc("leave",t,e,n,i,o,r)}function _c(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),xc(t,{style:{opacity:0}},e,n,i)}function bc(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||_c(t,e,n,i)}):_c(t,e,n,i)}function wc(t){fc(t).oldStyle=t.style}var Sc=Math.max,Mc=Math.min,Ic={};function Tc(t){return K.extend(t)}var Cc=function(t,e){var n,i=ju(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 Ac(t,e){return Cc(t,e)}function Dc(t,e){Ic[t]=e}function kc(t){if(Ic.hasOwnProperty(t))return Ic[t]}function Lc(t,e,n,i){t=qu(t,e);return n&&("center"===i&&(n=Oc(n,t.getBoundingRect())),Rc(t,n)),t}function Pc(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(Oc(e,t)))}});return i}function Oc(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 Nc=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 K(e)).createPathProxy(),e.buildPath=function(t){var e;Zu(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 Ec(t,e){return rl(t,t,{lineWidth:e}),t}var zc=sl;function Bc(t,e){for(var n=Be([]);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?Xe([],e):e)}function Fc(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 Gc(t){return!t.isGroup}function Wc(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){Gc(t)&&t.anid&&(n[t.anid]=t)}),o=n,e.traverse(function(t){var e,n;Gc(t)&&t.anid&&(e=o[t.anid])&&(n=r(t),t.attr(r(e)),C(t,n,i,$(t).dataIndex))}))}function Hc(t,n){return V(t,function(t){var e=t[0],e=Sc(e,n.x),t=(e=Mc(e,n.x+n.width),t[1]),t=Sc(t,n.y);return[e,Mc(t,n.y+n.height)]})}function Xc(t,e){var n=Sc(t.x,e.x),i=Mc(t.x+t.width,e.x+e.width),o=Sc(t.y,e.y),t=Mc(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),B(i,n),new nl(e)):Lc(t.replace("path://",""),e,n,"center")}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;
1return!((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&&X(G(a),function(t){Z(r,t)||(r[t]=a[t],r.$vars.push(t))}),$(t.el));t.componentMainType=o,t.componentIndex=n,t.tooltipConfig={name:i,option:B({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",nh),Dc("sector",xh),Dc("ring",Sh),Dc("polygon",Ah),Dc("polyline",Ph),Dc("rect",cl),Dc("line",zh),Dc("bezierCurve",Hh),Dc("arc",Zh);var Kc=Object.freeze({__proto__:null,Arc:Zh,BezierCurve:Hh,BoundingRect:z,Circle:$u,CompoundPath:Kh,Ellipse:nh,Group:j,Image:nl,IncrementalDisplayable:e,Line:zh,LinearGradient:tc,OrientedBoundingRect:uc,Path:K,Point:E,Polygon:Ah,Polyline:Ph,RadialGradient:ic,Rect:cl,Ring:Sh,Sector:xh,Text:J,applyTransform:Vc,clipPointsByRect:Hc,clipRectByRect:Xc,createIcon:Yc,extendPath:Ac,extendShape:Tc,getShapeClass:kc,getTransform:Bc,groupTransition:Wc,initProps:mc,isElementRemoved:vc,lineLineIntersect:Uc,linePolygonIntersect:function(t,e,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(Uc(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:Pc,makePath:Lc,mergePath:Nc,registerShape:Dc,removeElement:xc,removeElementWithFadeOut:bc,resizePath:Rc,setTooltipConfig:Zc,subPixelOptimize:zc,subPixelOptimizeLine:Ec,subPixelOptimizeRect:function(t){return al(t.shape,t.shape,t.style),t},transformDirection:Fc,traverseElements:qc,updateProps:C}),Jc={};function $c(t,e){for(var n=0;n<zl.length;n++){var i=zl[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)?A(t.defaultText)?t.defaultText(r,t,n):t.defaultText:i},u=0;u<zl.length;u++){var h=zl[u],c=e[h];l[h]=N(o?o.getFormattedLabel(r,h,null,a,c&&c.get("formatter")):null,i)}return l}function tp(t,e,n,i){n=n||Jc;for(var o=t instanceof J,r=!1,a=0;a<Bl.length;a++)if((p=e[Bl[a]])&&p.getShallow("show")){r=!0;break}var s=o?t:t.getTextContent();if(r){o||(s||(s=new J,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<zl.length;
1a++){var p,d,f,g=zl[a];(p=e[g])&&(d=s.ensureState(g),(f=!!N(p.getShallow("show"),h))!=h&&(d.ignore=!f),d.style=np(p,i&&i[g],n,!0,!o),d.style.text=l[g],o||(t.ensureState(g).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);$c(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<zl.length;i++){var o=zl[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||Jc;var p,t=l.ecModel,d=t&&t.option.textStyle,f=function(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||Jc).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(f)for(var g in p={},f)f.hasOwnProperty(g)&&(r=l.getModel(["rich",g]),sp(p[g]={},r,d,u,h,c,!1,!0));return p&&(s.rich=p),(t=l.get("overflow"))&&(s.overflow=t),null!=(t=l.get("minMargin"))&&(s.margin=t),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=N(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||Jc;var l=i&&i.inheritColor,u=e.getShallow("color"),h=e.getShallow("textBorderColor"),c=N(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),N(e.getShallow("textBorderWidth"),n.textBorderWidth)),h=(null!=u&&(t.lineWidth=u),N(e.getShallow("textBorderType"),n.textBorderType)),u=(null!=h&&(t.lineDash=h),N(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!=(f=N(e.getShallow(d),n[d]))&&(t[d]=f)}for(p=0;p<rp.length;p++)d=rp[p],null!=(f=e.getShallow(d))&&(t[d]=f);if(null==t.verticalAlign&&null!=(h=e.getShallow("baseline"))&&(t.verticalAlign=h),!a||!i.disableBox){for(p=0;p<ap.length;p++){var f,d=ap[p];null!=(f=e.getShallow(d))&&(t[d]=f)}u=e.getShallow("borderType");null!=u&&(t.borderDash=u),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!l||(t.backgroundColor=l),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!l||(t.borderColor=l)}}function 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=N(u.interpolatedValue,u.prevValue),l=u.value,n.percent=0,(null==u.prevValue?mc: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));$c(n,t)}))}var pp=["textStyle","color"],dp=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],fp=new J,zc=(gp.prototype.getTextColor=function(t){var e=this.ecModel;
1return this.getShallow("color")||(!t&&e?e.get(pp):null)},gp.prototype.getFont=function(){return lp({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},gp.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 fp.useStyle(e),fp.update(),fp.getBoundingRect()},gp);function gp(){}var yp=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],mp=Sa(yp),vp=(xp.prototype.getLineStyle=function(t){return mp(this,t)},xp);function xp(){}var _p=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],bp=Sa(_p),wp=(Sp.prototype.getItemStyle=function(t,e){return bp(this,t,e)},Sp);function Sp(){}Tp.prototype.init=function(t,e,n){for(var i=3;i<arguments.length;i++)i-3,0},Tp.prototype.mergeOption=function(t,e){d(this.option,t,!0)},Tp.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Tp.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},Tp.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new Tp(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Tp.prototype.isEmpty=function(){return null==this.option},Tp.prototype.restoreData=function(){},Tp.prototype.clone=function(){return new this.constructor(x(this.option))},Tp.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Tp.prototype.resolveParentPath=function(t){return t},Tp.prototype.isAnimationEnabled=function(){if(!w.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Tp.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 Mp,Ip=Tp;function Tp(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}ma(Ip),Wp=Ip,Mp=["__\0is_clz",xa++].join("_"),Wp.prototype[Mp]=!0,Wp.isInstance=function(t){return!(!t||!t[Mp])},ut(Ip,vp),ut(Ip,wp),ut(Ip,Ia),ut(Ip,zc);var Cp=Math.round(10*Math.random());function Ap(t){return[t||"",Cp++].join("_")}function Dp(t,e){return d(d({},t,!0),e,!0)}var kp="ZH",Lp="EN",Pp=Lp,Op={},Np={},Rp=w.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(kp)?kp:Pp;function Ep(t,e){t=t.toUpperCase(),Np[t]=new Ip(e),Op[t]=e}Ep(Lp,{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:". "}}}}),Ep(kp,{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:"è¿å"}
1,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 zp=1e3,Bp=60*zp,Vp=60*Bp,Fp=24*Vp,xa=365*Fp,Gp={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}"},Wp="{yyyy}-{MM}-{dd}",Hp={year:"{yyyy}",month:"{yyyy}-{MM}",day:Wp,hour:Wp+" "+Gp.hour,minute:Wp+" "+Gp.minute,second:Wp+" "+Gp.second,millisecond:Gp.none},Xp=["year","month","day","hour","minute","second","millisecond"],Yp=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Up(t,e){return"0000".substr(0,e-(t+="").length)+t}function Zp(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 jp(t,e,n,i){var t=Pr(t),o=t[Jp(n)](),r=t[$p(n)]()+1,a=Math.floor((r-1)/3)+1,s=t[Qp(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[td(n)](),h=(u-1)%12+1,c=t[ed(n)](),p=t[nd(n)](),t=t[id(n)](),n=(i instanceof Ip?i:Np[i||Rp]||Np[Pp]).getModel("time"),i=n.get("month"),d=n.get("monthAbbr"),f=n.get("dayOfWeek"),n=n.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Up(o%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,i[r-1]).replace(/{MMM}/g,d[r-1]).replace(/{MM}/g,Up(r,2)).replace(/{M}/g,r+"").replace(/{dd}/g,Up(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,f[l]).replace(/{ee}/g,n[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Up(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Up(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Up(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Up(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Up(t,3)).replace(/{S}/g,t+"")}function qp(t,e){var t=Pr(t),n=t[$p(e)]()+1,i=t[Qp(e)](),o=t[td(e)](),r=t[ed(e)](),a=t[nd(e)](),t=0===t[id(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 Kp(t,e,n){var i=U(t)?Pr(t):t;switch(e=e||qp(t,n)){case"year":return i[Jp(n)]();case"half-year":return 6<=i[$p(n)]()?1:0;case"quarter":return Math.floor((i[$p(n)]()+1)/4);case"month":return i[$p(n)]();case"day":return i[Qp(n)]();case"half-day":return i[td(n)]()/24;case"hour":return i[td(n)]();case"minute":return i[ed(n)]();case"second":return i[nd(n)]();case"millisecond":return i[id(n)]()}}function Jp(t){return t?"getUTCFullYear":"getFullYear"}function $p(t){return t?"getUTCMonth":"getMonth"}function Qp(t){return t?"getUTCDate":"getDate"}function td(t){return t?"getUTCHours":"getHours"}function ed(t){return t?"getUTCMinutes":"getMinutes"}function nd(t){return t?"getUTCSeconds":"getSeconds"}function id(t){return t?"getUTCMilliseconds":"getMilliseconds"}function od(t){return t?"setUTCMonth":"setMonth"}function rd(t){return t?"setUTCDate":"setDate"}function ad(t){return t?"setUTCHours":"setHours"}function sd(t){return t?"setUTCMinutes":"setMinutes"}function ld(t){return t?"setUTCSeconds":"setSeconds"}function ud(t){return t?"setUTCMilliseconds":"setMilliseconds"}function hd(t){var e;return Vr(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):Y(t)?t:"-"}function cd(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 pd=It;function dd(t,e,n){function i(t){return t&&Ct(t)?t:"-"}function o(t){return null!=t&&!isNaN(t)&&isFinite(t)}
1var r="time"===e,a=t instanceof Date;if(r||a){var r=r?Pr(t):t;if(!isNaN(+r))return jp(r,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?ft(t)?i(t):U(t)&&o(t)?t+"":"-":o(r=Br(t))?hd(r):ft(t)?i(t):"boolean"==typeof t?t+"":"-"}function fd(t,e){return"{"+t+(null==e?"":e)+"}"}var gd=["a","b","c","d","e","f","g"];function yd(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=gd[r];t=t.replace(fd(a),fd(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(fd(gd[l],s),n?we(u):u)}return t}function md(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 vd(t,e){return e=e||"transparent",Y(t)?t:O(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function xd(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var _d=X,bd=["left","right","top","bottom","width","height"],wd=[["width","left","right"],["height","top","bottom"]];function Sd(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 Md=Sd;function Id(t,e,n){n=pd(n||0);var i=e.width,o=e.height,r=q(t.left,i),a=q(t.top,o),e=q(t.right,i),s=q(t.bottom,o),l=q(t.width,i),u=q(t.height,o),h=n[2]+n[0],c=n[1]+n[3],p=t.aspect;switch(isNaN(l)&&(l=i-e-c-r),isNaN(u)&&(u=o-s-h-a),null!=p&&(isNaN(l)&&isNaN(u)&&(i/o<p?l=.8*i:u=.8*o),isNaN(l)&&(l=p*u),isNaN(u))&&(u=l/p),isNaN(r)&&(r=i-e-l-c),isNaN(a)&&(a=o-s-u-h),t.left||t.right){case"center":r=i/2-l/2-n[3];break;case"right":r=i-l-c}switch(t.top||t.bottom){case"middle":case"center":a=o/2-u/2-n[0];break;case"bottom":a=o-u-h}r=r||0,a=a||0,isNaN(l)&&(l=i-c-r-(e||0)),isNaN(u)&&(u=o-h-a-(s||0));p=new z(r+n[3],a+n[0],l,u);return p.margin=n,p}function Td(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=Id(B({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 Cd(t){t=t.layoutMode||t.constructor.layoutMode;return O(t)?t:t?{type:t}:null}function Ad(l,u,t){var h=t&&t.ignoreSize,t=(W(h)||(h=[h,h]),n(wd[0],0)),e=n(wd[1],1);function n(t,e){var n={},i=0,o={},r=0;if(_d(t,function(t){o[t]=l[t]}),_d(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){_d(t,function(t){e[t]=n[t]})}i(wd[0],l,t),i(wd[1],l,e)}function Dd(t){return kd({},t)}function kd(e,n){return n&&e&&_d(bd,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e}P(Sd,"vertical"),P(Sd,"horizontal");var Ld,Pd,Od,Nd,Rd=i(),f=(u(Ed,Ld=Ip),Ed.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},Ed.prototype.mergeDefaultAndTheme=function(t,e){var n=Cd(this),i=n?Dd(t):{};d(t,e.getTheme().get(this.mainType)),d(t,this.getDefaultOption()),n&&Ad(t,i,n)},Ed.prototype.mergeOption=function(t,e){d(this.option,t,!0);var n=Cd(this);n&&Ad(this.option,t,n)},Ed.prototype.optionUpdated=function(t,e){},Ed.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[ga])return t.defaultOption;var e=Rd(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},Ed.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)},Ed.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")}},Ed.prototype.getZLevelKey=function(){return""},Ed.prototype.setZLevel=function(t){this.option.zlevel=t},Ed.protoInitialize=((vp=Ed.prototype).type="component",vp.id="",vp.name="",vp.mainType="",vp.subType="",void(vp.componentIndex=0)),Ed);function Ed(t,e,n){t=Ld.call(this,t,e,n)||this;return t.uid=Ap("ec_cpt_model"),t}function zd(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}va(f,Ip),wa(f),Nd={},(Od=f).registerSubTypeDefaulter=function(t,e){t=ya(t);Nd[t.main]=e},Od.determineSubType=function(t,e){var n,i=e.type;
1return i||(n=ya(t).main,Od.hasSubTypes(t)&&Nd[n]&&(i=Nd[n](e))),i},Pd=function(t){var e=[];return X(f.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=V(e,function(t){return ya(t).main}),"dataset"!==t&&F(e,"dataset")<=0&&e.unshift("dataset"),e},f.topologicalTravel=function(t,e,n,i){if(t.length){c={},p=[],X(h=e,function(n){var e,i,o=zd(c,n),t=(t=o.originalDeps=Pd(n),e=h,i=[],X(t,function(t){0<=F(e,t)&&i.push(t)}),i);o.entryCount=t.length,0===o.entryCount&&p.push(n),X(t,function(t){F(o.predecessor,t)<0&&o.predecessor.push(t);var e=zd(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(X(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]),X(l.successor,u?f:d)}X(a,function(){throw new Error("")})}var h,c,p;function d(t){o[t].entryCount--,0===o[t].entryCount&&r.push(t)}function f(t){a[t]=!0,d(t)}};var wp="",Ia=("undefined"!=typeof navigator&&(wp=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),Bd={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:wp.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},Vd=R(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Fd="original",Gd="arrayRows",Wd="objectRows",Hd="keyedColumns",Xd="typedArray",Yd="unknown",Ud="column",Zd="row",jd={Must:1,Might:2,Not:3},qd=i();function Kd(n,t,e){var o,i,r,a,s,l={},u=$d(t);return u&&n&&(r=[],a=[],t=t.ecModel,t=qd(t).datasetMap,u=u.uid+"_"+e.seriesLayoutBy,X(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}),X(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 Jd(t,l,u){var h,c,p,e={};return $d(t)&&(c=l.sourceFormat,p=l.dimensionsDefine,c!==Wd&&c!==Hd||X(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=tf(l.data,c,l.seriesLayoutBy,p,l.startIndex,i),a=(n.push(r),r===jd.Not);if(a&&null==t.v&&i!==h&&(t.v=i),null!=t.n&&t.n!==t.v&&(a||n[t.n]!==jd.Not)||(t.n=i),s(t)&&n[t.n]!==jd.Not)return t;a||(r===jd.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 $d(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 Qd(t,e){return tf(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function tf(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?jd.Must:jd.Not;if(e===Gd){var u=t;if(n===Zd){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===Wd){var d=t;if(!s)return jd.Not;for(c=0;c<d.length&&c<5;c++)if((g=d[c])&&null!=(a=m(g[s])))return a}else if(e===Hd){if(!s)return jd.Not;if(!(h=t[s])||yt(h))return jd.Not;for(c=0;c<h.length&&c<5;c++)if(null!=(a=m(h[c])))return a}else if(e===Fd)for(var f=t,c=0;c<f.length&&c<5;c++){var g=f[c],y=qr(g);if(!W(y))return jd.Not;if(null!=(a=m(y[r])))return a}}return jd.Not;function m(t){var e=Y(t);return null!=t&&isFinite(t)&&""!==t?e?jd.Might:jd.Not:e&&"-"!==t?jd.Must:void 0}}var ef=R();var nf=i(),of=i(),rf=(af.prototype.getColorFromPalette=function(t,e,n){var i=Ur(this.get("color",!0)),o=this.get("colorLayer",!0);return sf(this,nf,i,o,t,e,n)},af.prototype.clearColorPalette=function(){var t,e;(e=nf)(t=this).paletteIdx=0,e(t).paletteNameMap={}},af);function af(){}function sf(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 lf,uf,hf,cf,pf="\0_ec_inner",df=(u(ff,cf=Ip),ff.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new Ip(i),this._locale=new Ip(o),this._optionManager=r},ff.prototype.setOption=function(t,e,n){e=mf(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},ff.prototype.resetOption=function(t,e){return this._resetOption(t,mf(e))},ff.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)):hf(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&&X(n,function(t){i=!0,this._mergeOption(t,e)},this),i},ff.prototype.mergeOption=function(t){this._mergeOption(t,null)},ff.prototype._mergeOption=function(i,t){var o=this.option,h=this._componentsMap,c=this._componentsCount,n=[],r=R(),p=t&&t.replaceMergeMainTypeMap;qd(this).datasetMap=R(),X(i,function(t,e){null!=t&&(f.hasClass(e)?e&&(n.push(e),r.set(e,!0)):o[e]=null==o[e]?x(t):d(o[e],t,!0))}),p&&p.each(function(t,e){f.hasClass(e)&&!r.get(e)&&(n.push(e),r.set(e,!0))}),f.topologicalTravel(n,f.getAllClassMainTypes(),function(r){t=this,n=Ur(i[e=r]);var t=(e=(e=ef.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,f),o[r]=null,h.set(r,null),c.set(r,0);var a,s=[],l=[],u=0;X(n,function(t,e){var n=t.existing,i=t.newOption;if(i){var o=f.getClass(r,t.keyInfo.subType,!("series"===r));if(!o)return;if("tooltip"===r){if(a)return;a=!0}
1n&&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&&lf(this)},this),this._seriesIndices||lf(this)},ff.prototype.getOption=function(){var a=x(this.option);return X(a,function(t,e){if(f.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[pf],a},ff.prototype.getTheme=function(){return this._theme},ff.prototype.getLocaleModel=function(){return this._locale},ff.prototype.setUpdatePayload=function(t){this._payload=t},ff.prototype.getUpdatePayload=function(){return this._payload},ff.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]}},ff.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=[],X(Ur(n),function(t){r[t]&&e.push(r[t])})):e=null!=i?gf("id",i,r):null!=o?gf("name",o,r):pt(r,function(t){return!!t}),yf(e,t)):[]},ff.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=yf(o?this.queryComponents(o):pt(this._componentsMap.get(i),function(t){return!!t}),t);return t.filter?pt(r,t.filter):r},ff.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(A(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)}},ff.prototype.getSeriesByName=function(t){var e=Qr(t,null);return pt(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},ff.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},ff.prototype.getSeriesByType=function(e){return pt(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},ff.prototype.getSeries=function(){return pt(this._componentsMap.get("series"),function(t){return!!t})},ff.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},ff.prototype.eachSeries=function(n,i){uf(this),X(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)},this)},ff.prototype.eachRawSeries=function(e,n){X(this._componentsMap.get("series"),function(t){t&&e.call(n,t,t.componentIndex)})},ff.prototype.eachSeriesByType=function(n,i,o){uf(this),X(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];e.subType===n&&i.call(o,e,t)},this)},ff.prototype.eachRawSeriesByType=function(t,e,n){return X(this.getSeriesByType(t),e,n)},ff.prototype.isSeriesFiltered=function(t){return uf(this),null==this._seriesIndicesMap.get(t.componentIndex)},ff.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},ff.prototype.filterSeries=function(n,i){uf(this);var o=[];X(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=R(o)},ff.prototype.restoreData=function(n){lf(this);var t=this._componentsMap,i=[];t.each(function(t,e){f.hasClass(e)&&i.push(e)}),f.topologicalTravel(i,f.getAllClassMainTypes(),function(e){X(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()})})},ff.internalField=(lf=function(t){var e=t._seriesIndices=[];X(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=R(e)},uf=function(t){},void(hf=function(t,e){t.option={},t.option[pf]=1,t._componentsMap=R({series:[]}),t._componentsCount=R();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,X(o,function(t,e){"colorLayer"===e&&i||f.hasClass(e)||("object"==typeof t?n[e]=n[e]?d(n[e],t,!1):x(t):null==n[e]&&(n[e]=t))}),d(e,Bd,!1),t._mergeOption(e,null)})),ff);function ff(){return null!==cf&&cf.apply(this,arguments)||this}function gf(e,t,n){var i,o;return W(t)?(i=R(),X(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 yf(t,e){return e.hasOwnProperty("subType")?pt(t,function(t){return t&&t.subType===e.subType}):t}function mf(t){var e=R();return t&&X(Ur(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}ut(df,rf);function vf(e){X(xf,function(t){this[t]=T(e[t],e)},this)}var xf=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],_f={},bf=(wf.prototype.create=function(n,i){var o=[];X(_f,function(t,e){t=t.create(n,i);o=o.concat(t||[])}),this._coordinateSystems=o},wf.prototype.update=function(e,n){X(this._coordinateSystems,function(t){t.update&&t.update(e,n)})},wf.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},wf.register=function(t,e){_f[t]=e},wf.get=function(t){return _f[t]},wf);function wf(){this._coordinateSystems=[]}var Sf=/^(min|max)?(.+)$/,Mf=(If.prototype.setOption=function(t,e,n){t&&(X(Ur(t.series),function(t){t&&t.data&&yt(t.data)&&Dt(t.data)}),X(Ur(t.dataset),function(t){t&&t.source&&yt(t.source)&&Dt(t.source)})),t=x(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)&&X(h,function(t){t&&t.option&&(t.query?s.push(t):r=r||t)}
1),f(a),X(u,f),X(s,function(t){return f(t.option)}),{baseOption:a,timelineOptions:u||[],mediaDefault:r,mediaList:s});function f(e){X(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},If.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],x(t?e.baseOption:this._newBaseOption)},If.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?x(n[t.getCurrentIndex()]):e},If.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 X(t,function(t,e){var n,e=e.match(Sf);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=V(s,function(t){return x((-1===t?a:r[t]).option)})),this._currentMediaIndices=s}return l},If);function If(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}var Tf=X,Cf=O,Af=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Df(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Af.length;n<i;n++){var o=Af[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 kf(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,B(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 Lf(t){kf(t,"itemStyle"),kf(t,"lineStyle"),kf(t,"areaStyle"),kf(t,"label"),kf(t,"labelLine"),kf(t,"upperLabel"),kf(t,"edgeLabel")}function Pf(t,e){var n=Cf(t)&&t[e],i=Cf(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 Of(t){t&&(Lf(t),Pf(t,"label"),t.emphasis)&&Pf(t.emphasis,"label")}function Nf(t){return W(t)?t:t?[t]:[]}function Rf(t){return(W(t)?t[0]:t)||{}}function Ef(e,t){Tf(Nf(e.series),function(t){if(Cf(t))if(Cf(t)){Df(t),Lf(t),Pf(t,"label"),Pf(t,"upperLabel"),Pf(t,"edgeLabel"),t.emphasis&&(Pf(t.emphasis,"label"),Pf(t.emphasis,"upperLabel"),Pf(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(Df(e),Of(e)),t.markLine),i=(n&&(Df(n),Of(n)),t.markArea),o=(i&&Of(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++)Of(r[a]);X(t.categories,function(t){Lf(t)})}if(o&&!yt(o))for(a=0;a<o.length;a++)Of(o[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Of(s[a]);if((n=t.markLine)&&n.data){var l=n.data;for(a=0;a<l.length;a++)W(l[a])?(Of(l[a][0]),Of(l[a][1])):Of(l[a])}"gauge"===t.type?(Pf(t,"axisLabel"),Pf(t,"title"),Pf(t,"detail")):"treemap"===t.type?(kf(t.breadcrumb,"itemStyle"),X(t.levels,function(t){Lf(t)})):"tree"===t.type&&Lf(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Tf(n,function(t){Tf(Nf(e[t]),function(t){t&&(Pf(t,"axisLabel"),Pf(t.axisPointer,"label"))})}),Tf(Nf(e.parallel),function(t){t=t&&t.parallelAxisDefault;Pf(t,"axisLabel"),Pf(t&&t.axisPointer,"label")}),Tf(Nf(e.calendar),function(t){kf(t,"itemStyle"),Pf(t,"dayLabel"),Pf(t,"monthLabel"),Pf(t,"yearLabel")}),Tf(Nf(e.radar),function(t){Pf(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)}),Tf(Nf(e.geo),function(t){Cf(t)&&(Of(t),Tf(Nf(t.regions),function(t){Of(t)}))}),Tf(Nf(e.timeline),function(t){Of(t),kf(t,"label"),kf(t,"itemStyle"),kf(t,"controlStyle",!0);t=t.data;W(t)&&X(t,function(t){O(t)&&(kf(t,"label"),kf(t,"itemStyle"))})}),Tf(Nf(e.toolbox),function(t){kf(t,"iconStyle"),Tf(t.feature,function(t){kf(t,"iconStyle")}
vendor: 1,246 bytes, line 1
1)}),Pf(Rf(e.axisPointer),"label"),Pf(Rf(e.tooltip).axisPointer,"label")}function zf(e){e&&X(Bf,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Bf=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Vf=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ff=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Gf(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<Ff.length;n++){var i=Ff[n][1],o=Ff[n][0];null!=e[i]&&(e[o]=e[i])}}function Wf(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Hf(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Xf(e,t){Ef(e,t),e.series=Ur(e.series),X(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),Wf(t.label),(e=t.data)&&!yt(e))for(var i=0;i<e.length;i++)Wf(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");
1if(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(Gf(t),Gf(t.backgroundStyle),Gf(t.emphasis),(e=t.data)&&!yt(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(Gf(e[i]),Gf(e[i]&&e[i].emphasis))}else"sunburst"===n?((a=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),Hf(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,Hf)):"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)&&B(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),zf(t)}}),e.dataRange&&(e.visualMap=e.dataRange),X(Vf,function(t){t=e[t];t&&X(t=W(t)?t:[t],function(t){zf(t)})})}function Yf(x){X(x,function(p,d){var f=[],g=[NaN,NaN],t=[p.stackResultDimension,p.stackedOverDimension],y=p.data,m=p.isStackedByIndex,v=p.seriesModel.get("stackStrategy")||"samesign";y.modify(t,function(t,e,n){var i,o,r=y.get(p.stackedDimension,n);if(isNaN(r))return g;m?o=y.getRawIndex(n):i=y.get(p.stackedByDimension,n);for(var a,s,l,u=NaN,h=d-1;0<=h;h--){var c=x[h];if(0<=(o=m?o:c.data.rawIndexOf(c.stackedByDimension,i))){c=c.data.getByRawIndex(c.stackResultDimension,o);
1if("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 f[0]=r,f[1]=u,f})})}var Uf,Zf,jf=function(t){this.data=t.data||(t.sourceFormat===Hd?{}:[]),this.sourceFormat=t.sourceFormat||Yd,this.seriesLayoutBy=t.seriesLayoutBy||Ud,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&&Qd(this,n)===jd.Must&&(i.type="ordinal")}};function qf(t){return t instanceof jf}function Kf(t,e,n){n=n||$f(t);var i=e.seriesLayoutBy,o=function(t,e,n,i,o){var r,a;if(!t)return{dimensionsDefine:Qf(o),startIndex:a,dimensionsDetectedCount:r};{var s;e===Gd?(s=t,"auto"===i||null==i?tg(function(t){null!=t&&"-"!==t&&(Y(t)?null==a&&(a=1):a=0)},n,s,10):a=U(i)?i:i?1:0,o||1!==a||(o=[],tg(function(t,e){o[e]=null!=t?t+"":""},n,s,1/0)),r=o?o.length:n===Zd?s.length:s[0]?s[0].length:null):e===Wd?o=o||function(t){for(var e,n=0;n<t.length&&!(e=t[n++]););if(e)return G(e)}(t):e===Hd?o||(o=[],X(t,function(t,e){o.push(e)})):e===Fd&&(i=qr(t[0]),r=W(i)&&i.length||1)}return{startIndex:a,dimensionsDefine:Qf(o),dimensionsDetectedCount:r}}(t,n,i,e.sourceHeader,e.dimensions);return new jf({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,metaRawOption:x(e)})}function Jf(t){return new jf({data:t,sourceFormat:yt(t)?Xd:Fd})}function $f(t){var e=Yd;if(yt(t))e=Xd;else if(W(t)){0===t.length&&(e=Gd);for(var n=0,i=t.length;n<i;n++){var o=t[n];if(null!=o){if(W(o)){e=Gd;break}if(O(o)){e=Wd;break}}}}else if(O(t))for(var r in t)if(Z(t,r)&&ht(t[r])){e=Hd;break}return e}function Qf(t){var i;if(t)return i=R(),V(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 tg(t,e,n,i){if(e===Zd)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 eg(t){t=t.sourceFormat;return t===Wd||t===Hd}ag.prototype.getSource=function(){return this._source},ag.prototype.count=function(){return 0},ag.prototype.getItem=function(t,e){},ag.prototype.appendData=function(t){},ag.prototype.clean=function(){},ag.protoInitialize=((zc=ag.prototype).pure=!1,void(zc.persistent=!0)),ag.internalField=(Zf=function(t,e,n){var i,o=n.sourceFormat,r=n.seriesLayoutBy,a=n.startIndex,n=n.dimensionsDefine;H(t,Uf[mg(o,r)]),o===Xd?(t.getItem=ng,t.count=og,t.fillStorage=ig):(i=hg(o,r),t.getItem=T(i,null,e,a,n),i=dg(o,r),t.count=T(i,null,e,a,n))},ng=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},ig=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}},og=function(){return this._data?this._data.length/this._dimSize:0},(zc={})[Gd+"_"+Ud]={pure:!0,appendData:sg},zc[Gd+"_"+Zd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},zc[Wd]={pure:!0,appendData:sg},zc[Hd]={pure:!0,appendData:function(t){var o=this._data;X(t,function(t,e){for(var n=o[e]||(o[e]=[]),i=0;i<(t||[]).length;i++)n.push(t[i])})}},zc[Fd]={appendData:sg},zc[Xd]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(Uf=zc));var ng,ig,og,rg=ag;function ag(t,e){var t=qf(t)?t:Jf(t),n=(this._source=t,this._data=t.data);t.sourceFormat===Xd&&(this._offset=0,this._dimSize=e,this._data=n),Zf(this,n,t)}function sg(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function lg(t,e,n,i){return t[i]}(Wp={})[Gd+"_"+Ud]=function(t,e,n,i){return t[i+e]},Wp[Gd+"_"+Zd]=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},Wp[Wd]=lg,Wp[Hd]=function(t,e,n,i,o){for(var r=o||[],a=0;a<n.length;a++){var s=t[n[a].name];r[a]=s?s[i]:null}return r},Wp[Fd]=lg;var ug=Wp;function hg(t,e){return ug[mg(t,e)]}function cg(t,e,n){return t.length}(vp={})[Gd+"_"+Ud]=function(t,e,n){return Math.max(0,t.length-e)},vp[Gd+"_"+Zd]=function(t,e,n){t=t[0];return t?Math.max(0,t.length-e):0},vp[Wd]=cg,vp[Hd]=function(t,e,n){t=t[n[0].name];return t?t.length:0},vp[Fd]=cg;var pg=vp;function dg(t,e){return pg[mg(t,e)]}function fg(t,e,n){return t[e]}(Ia={})[Gd]=fg,Ia[Wd]=function(t,e,n){return t[n]},Ia[Hd]=fg,Ia[Fd]=function(t,e,n){t=qr(t);return t instanceof Array?t[e]:t},Ia[Xd]=fg;var gg=Ia;function yg(t){return gg[t]}function mg(t,e){return t===Gd?t+"_"+e:t}function vg(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),yg(i)(e,t,n
1)):(o=e,i===Fd?qr(e):o)}}var xg=/\{@(.+?)\}/g,wp=(_g.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"]}},_g.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]),A(o=o||a.getItemModel(i).get("normal"===t?["label","formatter"]:[t,"label","formatter"]))?(e.status=t,e.dimensionIndex=n,o(e)):Y(o)?yd(o,e).replace(xg,function(t,e){var n=e.length,n=("["===e.charAt(0)&&"]"===e.charAt(n-1)&&(e=+e.slice(1,n-1)),vg(a,i,e));return null!=(n=r&&W(r.interpolatedValue)&&0<=(e=a.getDimensionIndex(e))?r.interpolatedValue[e]:n)?n+"":""}):void 0},_g.prototype.getRawValue=function(t,e){return vg(this.getData(e),t)},_g.prototype.formatTooltip=function(t,e,n){},_g);function _g(){}function bg(t){var e,n;return O(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function wg(t){return new Sg(t)}Mg.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()},Mg.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},Mg.prototype._doProgress=function(t,e,n,i,o){Lg.reset(e,n,i,o),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Lg.next},this.context)},Mg.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},Mg.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},Mg.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},Mg.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},Mg.prototype.getUpstream=function(){return this._upstream},Mg.prototype.getDownstream=function(){return this._downstream},Mg.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var Sg=Mg;function Mg(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}var Ig,Tg,Cg,Ag,Dg,kg,Lg=kg={reset:function(t,e,n,i){Tg=t,Ig=e,Cg=n,Ag=i,Dg=Math.ceil(Ag/Cg),kg.next=1<Cg&&0<Ag?Og:Pg}};function Pg(){return Tg<Ig?Tg++:null}function Og(){var t=Tg%Dg*Cg+Math.ceil(Tg/Dg),t=Ig<=Tg?null:t<Ag?t:Tg;return Tg++,t}function Ng(t,e){e=e&&e.type;return"ordinal"===e?t:null==(t="time"!==e||U(t)||null==t||"-"===t?t:+Pr(t))||""===t?NaN:+t}var Rg=R({number:function(t){return parseFloat(t)},time:function(t){return+Pr(t)},trim:function(t){return Y(t)?Ct(t):t}});function Eg(t){return Rg.get(t)}var zg={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}},Bg=(Gg.prototype.evaluate=function(t){return U(t)?this._opFn(t,this._rvalFloat):this._opFn(Br(t),this._rvalFloat)},Gg),Vg=(Fg.prototype.evaluate=function(t,e){var n=U(t)?t:Br(t),i=U(e)?e:Br(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},Fg);function Fg(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 Gg(t,e){U(e)||Wr(""),this._opFn=zg[t],this._rvalFloat=Br(e)}Hg.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=Br(t)===this._rvalFloat),this._isEQ?n:!n};var Wg=Hg;function Hg(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Br(e)}Yg.prototype.getRawData=function(){throw new Error("not supported")},Yg.prototype.getRawDataItem=function(t){throw new Error("not supported")},Yg.prototype.cloneRawData=function(){},Yg.prototype.getDimensionInfo=function(t){},Yg.prototype.cloneAllDimensionInfo=function(){},Yg.prototype.count=function(){},Yg.prototype.retrieveValue=function(t,e){},Yg.prototype.retrieveValueFromItem=function(t,e){},Yg.prototype.convertValue=Ng;var Xg=Yg;function Yg(){}function Ug(t){return $g(t.sourceFormat)||Wr(""),t.data}function Zg(t){var e=t.sourceFormat,n=t.data;if($g(e)||Wr(""),e===Gd){for(var i=[],o=0,r=n.length;o<r;o++)i.push(n[o].slice());return i}if(e===Wd){for(i=[],o=0,r=n.length;o<r;o++)i.push(H({},n[o]));return i}}function jg(t,e,n){if(null!=n)return U(n)||!isNaN(n)&&!Z(e,n)?t[n]:Z(e,n)?e[n]:void 0}function qg(t){return x(t)}var Kg=R();function Jg(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=Kg.get(e),e=(d||Wr(""),V(i,function(t){var e=t,t=d,n=new Xg,i=e.data,o=n.sourceFormat=e.sourceFormat,r=e.startIndex,a=(e.seriesLayoutBy!==Ud&&Wr(""),[]),s={};if(h=e.dimensionsDefine)X(h,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};a.push(e),null!=n&&(Z(s,n)&&Wr(""),s[n]=e)});else for(var l=0;l<e.dimensionsDetectedCount;l++)a.push({index:l});var u=hg(o,Ud),h=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return u(i,r,a,t)},n.getRawData=T(Ug,null,e)),n.cloneRawData=T(Zg,null,e),dg(o,Ud)),c=(n.
1count=T(h,null,i,r,a),yg(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(jg,null,a,s),n.cloneAllDimensionInfo=T(qg,null,a),n}));return V(Ur(d.transform({upstream:e[0],upstreamList:e,config:x(t.config)})),function(t,e){O(t)||Wr(""),t.data||Wr(""),$g($f(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:Ud,sourceHeader:e,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:Ud,sourceHeader:0,dimensions:t.dimensions};return Kf(t.data,e,null)})}(n[i],e),i!==o-1&&(e.length=Math.max(e.length,1));return e}function $g(t){return t===Gd||t===Wd}var Qg,zc="undefined",ty=typeof Uint32Array==zc?Array:Uint32Array,ey=typeof Uint16Array==zc?Array:Uint16Array,ny=typeof Int32Array==zc?Array:Int32Array,Wp=typeof Float64Array==zc?Array:Float64Array,iy={float:Wp,int:ny,ordinal:Array,number:Array,time:Wp};function oy(t){return 65535<t?ty:ey}function ry(){return[1/0,-1/0]}function ay(t,e,n,i,o){n=iy[n||"float"];if(o){var r=t[e],a=r&&r.length;if(a!==i){for(var s=new n(i),l=0;l<a;l++)s[l]=r[l];t[e]=s}}else t[e]=new n(i)}l.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=Qg[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[],eg(i),this._dimensions=V(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},l.prototype.getProvider=function(){return this._provider},l.prototype.getSource=function(){return this._provider.getSource()},l.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,o=n.get(t);if(null!=o){if(i[o].type===e)return o}else o=i.length;return i[o]={type:e},n.set(t,o),this._chunks[o]=new iy[e||"float"](this._rawCount),this._rawExtent[o]=ry(),o},l.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]=ry());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"},l.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},l.prototype.getDimensionProperty=function(t){t=this._dimensions[t];return t&&t.property},l.prototype.appendData=function(t){var e=this._provider,n=this.count(),t=(e.appendData(t),e.count());return e.persistent||(t+=n),n<t&&this._initDataFromProvider(n,t,!0),[n,t]},l.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,o=i.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<o;l++)ay(n,l,(d=i[l]).type,s,!0);for(var u=[],h=a;h<s;h++)for(var c=h-a,p=0;p<o;p++){var d=i[p],f=Qg.arrayRows.call(this,t[c]||u,d.property,c,p),g=(n[p][h]=f,r[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},l.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,o=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=V(r,function(t){return t.property}),u=0;u<a;u++){var h=r[u];s[u]||(s[u]=ry()),ay(o,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,o,s);else for(var c=[],p=t;p<e;p++)for(var c=i.getItem(p,c),d=0;d<a;d++){var f=o[d],g=this._dimValueGetter(c,l[d],p,d),f=(f[p]=g,s[d]);g<f[0]&&(f[0]=g),g>f[1]&&(f[1]=g)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},l.prototype.count=function(){return this._count},l.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},l.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,r=i.length;o<r;o++)n.push(this.get(i[o],e));return n},l.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},l.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(e+=o)}return e},l.prototype.getMedian=function(t){var e=[],t=(this.each([t],function(t){isNaN(t)||e.push(t)}),e.sort(function(t,e){return t-e})),n=this.count();return 0===n?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},l.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,o=this._count-1;i<=o;){var r=(i+o)/2|0;if(e[r]<t)i=1+r;else{if(!(e[r]>t))return r;o=r-1}}}return-1},l.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],o=[];if(i){null==n&&(n=1/0);for(var r=1/0,a=-1,s=0,l=0,u=this.count();l<u;l++){var h=e-i[this.getRawIndex(l)],c=Math.abs(h);c<=n&&((c<r||c===r&&0<=h&&a<0)&&(r=c,a=h,s=0),h===a)&&(o[s++]=l)}
1o.length=s}return o},l.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),o=0;o<n;o++)i[o]=t[o];else i=new e(t.buffer,0,n)}else for(i=new(e=oy(this._rawCount))(this.count()),o=0;o<i.length;o++)i[o]=o;return i},l.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=new(oy(n._rawCount))(i),r=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,p=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d<a;d++)r[d]=u[t[d]][p];r[d]=h,c=e.apply(null,r)}c&&(o[s++]=p)}return s<i&&(n._indices=o),n._count=s,n._extent=[],n._updateGetRawIdx(),n},l.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=G(t),o=i.length;if(!o)return this;var r=e.count(),a=new(oy(e._rawCount))(r),s=0,l=i[0],u=t[l][0],h=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===o){for(var d=c[i[0]],f=0;f<n;f++)((v=d[f])>=u&&v<=h||isNaN(v))&&(a[s++]=p),p++;l=!0}else if(2===o){for(var d=c[i[0]],g=c[i[1]],y=t[i[1]][0],m=t[i[1]][1],f=0;f<n;f++){var v=d[f],x=g[f];(u<=v&&v<=h||isNaN(v))&&(y<=x&&x<=m||isNaN(x))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===o)for(f=0;f<r;f++){var _=e.getRawIndex(f);((v=c[i[0]][_])>=u&&v<=h||isNaN(v))&&(a[s++]=_)}else for(f=0;f<r;f++){for(var b=!0,w=(_=e.getRawIndex(f),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(f))}return s<r&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},l.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},l.prototype.modify=function(t,e){this._updateDims(this,t,e)},l.prototype._updateDims=function(t,e,n){for(var i=t._chunks,o=[],r=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=ry();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 f=e[u],g=d[u],y=l[f],f=i[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}},l.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),o=i._chunks[t],r=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(oy(this._rawCount))(Math.min(2*(Math.ceil(r/s)+2),r));u[a++]=l;for(var h=1;h<r-1;h+=s){for(var c=Math.min(h+s,r-1),p=Math.min(h+2*s,r),d=(p+c)/2,f=0,g=c;g<p;g++){var y=o[M=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=h,m=Math.min(h+s,r),v=h-1,x=o[l],_=-1,b=c,w=-1,S=0,g=c;g<m;g++){var M,y=o[M=this.getRawIndex(g)];isNaN(y)?(S++,w<0&&(w=M)):(n=Math.abs((v-d)*(y-x)-(v-g)*(f-x)))>_&&(_=n,b=M)}0<S&&S<m-c&&(u[a++]=Math.min(w,b),b=Math.max(w,b)),l=u[a++]=b}return u[a++]=this.getRawIndex(r-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},l.prototype.downSample=function(t,e,n,i){for(var o=this.clone([t],!0),r=o._chunks,a=[],s=Math.floor(1/e),l=r[t],u=this.count(),h=o._rawExtent[t]=ry(),c=new(oy(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){u-d<s&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),m=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));(l[m]=y)<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[p++]=m}return o._count=p,o._indices=c,o._updateGetRawIdx(),o},l.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,o=0,r=this.count();o<r;o++){var a=this.getRawIndex(o);switch(n){case 0:e(o);break;case 1:e(i[t[0]][a],o);break;case 2:e(i[t[0]][a],i[t[1]][a],o);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=o,e.apply(null,l)}}},l.prototype.getDataExtent=function(t){var e=this._chunks[t],n=ry();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]},l.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,o=0;o<i.length;o++)n.push(i[o][e]);return n},l.prototype.clone=function(t,e){var n,i,o=new l,r=this._chunks,a=t&&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},l.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=x(this._extent),t._rawExtent=x(this._rawExtent)},l.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var n=this._indices.length,e=new t(n),i=0;i<n;i++)e[i]=this._indices[i];else e=new t(this._indices);return e}return null},l.prototype._getRawIdxIdentity=function(t){return t},l.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},l.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},l.internalField=void(Qg={arrayRows:ly,objectRows:function(t,e,n,i){return Ng(t[e],this._dimensions[i])},keyedColumns:ly,original:function(t,e,n,i){t=t&&(null==t.value?t:t.value);return Ng(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var sy=l;function l(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=R()}function ly(t,e,n,i){return Ng(t[i],this._dimensions[i])}hy.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},hy.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},hy.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},hy.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},hy.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,o,r,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;
1py(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))?Xd:Fd,[]),i=this._getSourceMetaRawOption()||{},o=o&&o.metaRawOption||{},a=N(i.seriesLayoutBy,o.seriesLayoutBy)||null,n=N(i.sourceHeader,o.sourceHeader),i=N(i.dimensions,o.dimensions),o=a!==o.seriesLayoutBy||!!n!=!!o.sourceHeader||i?[Kf(r,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(r=s,e=u?(o=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(o=[Kf(r.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(o,e)},hy.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&&dy(""),[]),a=[];return X(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||dy(""),r.push(e),a.push(t._getVersionSign())}),i?e=Jg(i,r,n.componentIndex):null!=o&&(e=[new jf({data:(t=r[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:x(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:a}},hy.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}},hy.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},hy.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},hy.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],py(this._sourceHost)&&i?o=i._innerGetDataStore(t,e,n):(o=new sy).initData(new rg(e,t.length),t),r[n]=o),o},hy.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return py(e)?(t=$d(e))?[t.getSourceManager()]:[]:V((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()})},hy.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return py(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 uy=hy;function hy(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function cy(t){t.option.transform&&Dt(t.option.transform)}function py(t){return"series"===t.mainType}function dy(t){throw new Error(t)}var fy="line-height:1";function gy(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 yy=[0,10,20,30],my=["","\n","\n\n","\n\n\n"];function vy(t,e){return e.type=t,e}function xy(t){return"section"===t.type}function _y(t){return xy(t)?by:wy}function by(i,o,t,r){var n,e=o.noHeader,a=(l=function n(t){var i,e,o;return xy(t)?(i=0,e=t.blocks.length,o=1<e||0<e&&!t.noHeader,X(t.blocks,function(t){var e=n(t);i<=e&&(i=e+ +(o&&(!e||xy(t)&&!t.noHeader)))}),i):0}(o),{html:yy[l],richText:my[l]}),s=[],l=o.blocks||[],u=(Tt(!l||W(l)),l=l||[],i.orderMode),h=(o.sortBlocks&&u&&(l=l.slice(),Z(h={valueAsc:"asc",valueDesc:"desc"},u)?(n=new Vg(h[u],null),l.sort(function(t,e){return n.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===u&&l.reverse()),X(l,function(t,e){var n=o.valueFormatter,n=_y(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):My(s.join(""),e?t:a.html));return e?h:(u=dd(o.header,"ordinal",i.useUTC),l=gy(r,i.renderMode).nameStyle,"richText"===i.renderMode?Iy(i,u,l)+a.richText+h:My('<div style="'+l+";"+fy+';">'+we(u)+"</div>"+h,t))}function wy(t,e,n,i){var o,r,a,s,l=t.renderMode,u=e.noName,h=e.noValue,c=!e.markerType,p=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return V(t=W(t)?t:[t],function(t,e){return dd(t,W(r)?r[e]:r,d)})};if(!u||!h)return o=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",l),p=u?"":dd(p,"ordinal",d),r=e.valueType,f=h?[]:f(e.value),e=!c||!u,a=!c&&u,i=gy(i,l),s=i.nameStyle,i=i.valueStyle,"richText"===l?(c?"":o)+(u?"":Iy(t,p,s))+(h?"":function(t,e,n,i,o){o=[o],i=i?10:20;
1return n&&o.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(W(e)?e.join(" "):e,o)}(t,f,e,a,i)):My((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+'">'+V(t,we).join(" ")+"</span>"}(f,e,a,i)),n)}function Sy(t,e,n,i,o,r){if(t)return _y(t)({useUTC:o,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function My(t,e){return'<div style="margin: '+e+"px 0 0;"+fy+';">'+t+'<div style="clear:both"></div></div>'}function Iy(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Ty(t,e){return vd(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Cy(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}Dy.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Dy.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=md({color:e,type:t,renderMode:n,markerId:i});return Y(e)?e:(this.richTextStyles[i]=e.style,e.content)},Dy.prototype.wrapRichTextStyle=function(t,e){var n={},e=(W(e)?X(e,function(t){return H(n,t)}):H(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var Ay=Dy;function Dy(){this.richTextStyles={},this._nextStyleNameId=Fr()}function ky(t){var e,n,i,o,r,a,s,l,u,h,c,p=t.series,d=t.dataIndex,t=t.multipleSeries,f=p.getData(),g=f.mapDimensionsAll("defaultedTooltip"),y=g.length,m=p.getRawValue(d),v=W(m),x=Ty(p,d);function _(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(vy("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),h.push(e.type)))}1<y||v&&!y?(i=m,o=d,r=g,a=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?X(r,function(t){_(vg(s,o,t),t)}):X(i,_),i=(r={inlineValues:u,inlineValueTypes:h,blocks:c}).inlineValueTypes,e=r.blocks,n=(r=r.inlineValues)[0]):y?(y=f.getDimensionInfo(g[0]),n=r=vg(f,d,g[0]),i=y.type):n=r=v?m[0]:m;g=ta(p),y=g&&p.name||"",v=f.getName(d),m=t?y:v;return vy("section",{header:y,noHeader:t||!g,sortParam:n,blocks:[vy("nameValue",{markerType:"item",markerColor:x,name:m,noName:!Ct(m),value:r,valueType:i})].concat(e||[])})}var Ly=i();function Py(t,e){return t.getName(e)||t.getId(e)}u(Ry,Oy=f),Ry.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=wg({count:zy,reset:By}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Ly(this).sourceManager=new uy(this)).prepareSource();t=this.getInitialData(t,n);Fy(t,this),this.dataTask.context.data=t,Ly(this).dataBeforeProcessed=t,Ey(this),this._initSelectedMapFromData(t)},Ry.prototype.mergeDefaultAndTheme=function(t,e){var n=Cd(this),i=n?Dd(t):{},o=this.subType;f.hasClass(o),d(t,e.getTheme().get(this.subType)),d(t,this.getDefaultOption()),Zr(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Ad(t,i,n)},Ry.prototype.mergeOption=function(t,e){t=d(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Cd(this),n=(n&&Ad(this.option,t,n),Ly(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));Fy(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,Ly(this).dataBeforeProcessed=n,Ey(this),this._initSelectedMapFromData(n)},Ry.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)},Ry.prototype.getInitialData=function(t,e){},Ry.prototype.appendData=function(t){this.getRawData().appendData(t.data)},Ry.prototype.getData=function(t){var e=Wy(this);return e?(e=e.context.data,null==t?e:e.getLinkedData(t)):Ly(this).data},Ry.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},Ry.prototype.setData=function(t){var e,n=Wy(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),Ly(this).data=t},Ry.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return R(t)},Ry.prototype.getSourceManager=function(){return Ly(this).sourceManager}
1,Ry.prototype.getSource=function(){return this.getSourceManager().getSource()},Ry.prototype.getRawData=function(){return Ly(this).dataBeforeProcessed},Ry.prototype.getColorBy=function(){return this.get("colorBy")||"series"},Ry.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},Ry.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},Ry.prototype.formatTooltip=function(t,e,n){return ky({series:this,dataIndex:t,multipleSeries:e})},Ry.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)},Ry.prototype.restoreData=function(){this.dataTask.dirty()},Ry.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return rf.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},Ry.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},Ry.prototype.getProgressive=function(){return this.get("progressive")},Ry.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},Ry.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},Ry.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=Py(o,t[r]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},Ry.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)},Ry.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},Ry.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),"all"===n||n[Py(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},Ry.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},Ry.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=Py(t,l)]=!0,this._selectedDataIndicesMap[n]=t.getRawIndex(l)}}else"single"!==o&&!0!==o||(n=Py(t,o=e[r-1]),i.selectedMap=((i={})[n]=!0,i),this._selectedDataIndicesMap=((i={})[n]=t.getRawIndex(o),i))},Ry.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))},Ry.registerClass=function(t){return f.registerClass(t)},Ry.protoInitialize=((vp=Ry.prototype).type="series.__base__",vp.seriesIndex=0,vp.ignoreStyleOnData=!1,vp.hasSymbolVisual=!1,vp.defaultSymbol="circle",vp.visualStyleAccessPath="itemStyle",void(vp.visualDrawType="fill"));var Oy,Ny=Ry;function Ry(){var t=null!==Oy&&Oy.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function Ey(t){var e,n,i=t.name;ta(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],X(t,function(t){t=e.getDimensionInfo(t);t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function zy(t){return t.model.getRawData().count()}function By(t){t=t.model;return t.setData(t.getRawData().cloneShallow()),Vy}function Vy(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Fy(e,n){X(Et(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,P(Gy,n))})}function Gy(t,e){t=Wy(t);return t&&t.setOutputEnd((e||this).count()),e}function Wy(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(Ny,wp),ut(Ny,rf),va(Ny,f);Xy.prototype.init=function(t,e){},Xy.prototype.render=function(t,e,n,i){},Xy.prototype.dispose=function(t,e){},Xy.prototype.updateView=function(t,e,n,i){},Xy.prototype.updateLayout=function(t,e,n,i){},Xy.prototype.updateVisual=function(t,e,n,i){},Xy.prototype.toggleBlurSeries=function(t,e,n){},Xy.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var Hy=Xy;function Xy(){this.group=new j,this.uid=Ap("viewComponent")}function Yy(){var r=i();return function(t){var e=r(t),t=t.pipelineContext,n=!!e.large,i=!!e.progressiveRen
1der,o=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(n==o&&i==e)&&"reset"}}ma(Hy),wa(Hy);var Uy=i(),Zy=Yy(),jy=(qy.prototype.init=function(t,e){},qy.prototype.render=function(t,e,n,i){},qy.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&Jy(t,i,"emphasis")},qy.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&Jy(t,i,"normal")},qy.prototype.remove=function(t,e){this.group.removeAll()},qy.prototype.dispose=function(t,e){},qy.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},qy.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},qy.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},qy.prototype.eachRendered=function(t){qc(this.group,t)},qy.markUpdateMethod=function(t,e){Uy(t).updateMethod=e},qy.protoInitialize=void(qy.prototype.type="chart"),qy);function qy(){this.group=new j,this.uid=Ap("viewChart"),this.renderTask=wg({plan:$y,reset:Qy}),this.renderTask.context={view:this}}function Ky(t,e,n){t&&Cu(t)&&("emphasis"===e?lu:uu)(t,n)}function Jy(e,t,n){var i,o=ia(e,t),r=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=Ll[t])&&kl<=32?Ll[t]=kl++:i):null;null!=o?X(Ur(o),function(t){Ky(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){Ky(t,n,r)})}function $y(t){return Zy(t.model)}function Qy(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,t=t.view,a=o&&Uy(o).updateMethod,r=r?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==r&&t[r](e,n,i,o),tm[r]}ma(jy),wa(jy);var tm={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)}}},em="\0__throttleOriginMethod",nm="\0__throttleRate",im="\0__throttleType";function om(t,o,r){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}o=o||0;function e(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];a=(new Date).getTime(),l=this,u=t;var n=h||o,i=h||r;h=null,s=a-(i?c:p)-n,clearTimeout(d),i?d=setTimeout(f,n):0<=s?f():d=setTimeout(f,-s),c=a}return e.clear=function(){d&&(clearTimeout(d),d=null)},e.debounceNextCall=function(t){h=t},e}function rm(t,e,n,i){var o=t[e];if(o){var r=o[em]||o,a=o[im];if(o[nm]!==n||a!==i){if(null==n||!i)return t[e]=r;(o=t[e]=om(r,n,"debounce"===i))[em]=r,o[im]=i,o[nm]=n}}}function am(t,e){var n=t[e];n&&n[em]&&(n.clear&&n.clear(),t[e]=n[em])}var sm=i(),lm={itemStyle:Sa(_p,!0),lineStyle:Sa(yp,!0)},um={lineStyle:"stroke",itemStyle:"fill"};function hm(t,e){return t.visualStyleMapper||lm[e]||(console.warn("Unknown style type '"+e+"'."),lm.itemStyle)}function cm(t,e){return t.visualDrawType||um[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=hm(o,n)(i),i=i.getShallow("decal"),a=(i&&(e.setVisual("decal",i),i.dirty=!0),cm(o,n)),i=r[a],s=A(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||A(r.fill)?i:r.fill,r.stroke="auto"===r.stroke||A(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)}}}},pm=new Ip,zc={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=hm(t,i),r=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var n=t.getRawDataItem(e);n&&n[i]&&(pm.option=n[i],n=o(pm),H(t.ensureUniqueItemVisual(e,"style"),n),pm.option.decal&&(t.setItemVisual(e,"decal",pm.option.decal),pm.option.decal.dirty=!0),r in n)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},Wp={performRawSeries:!0,overallReset:function(e){var i=R();e.eachSeries(function(t){var e,n=t.getColorBy();t.isColorBySeries()||(n=t.type+"-"+n,(e=i.get(n))||i.set(n,e={}),sm(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=sm(i).scope,t=i.visualStyleAccessPath||"itemStyle",l=cm(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))}))})}},dm=Math.PI;gm.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){t=t.overallTask;t&&t.dirty()})},gm.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.progressiveRen
1der)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},gm.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},gm.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}},gm.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=R();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)})},gm.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),o=this.api;X(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)},gm.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)},gm.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},gm.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},gm.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))}X(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},gm.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},gm.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())})},gm.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},gm.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap,s=t.seriesTaskMap=R(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||wg({plan:_m,reset:bm,count:Mm}));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)},gm.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||wg({reset:ym}),a=(r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o},r.agentStubMap),s=r.agentStubMap=R(),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,wg({reset:mm,onDirty:xm})));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,X(n.getSeries(),c)),h&&r.dirty()},gm.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},gm.wrapStageHandler=function(t,e){return(t=A(t)?{overallReset:t,seriesType:function(t){Im=null;try{t(Tm,Cm)}catch(t){}return Im}(t)}:t).uid=Ap("stageHandler"),e&&(t.visualType=e),t};var fm=gm;function gm(t,e,n,i){this._stageTaskMap=R(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function ym(t){t.overallReset(t.ecModel,t.api,t.payload)}function mm(t){return t.overallProgress&&vm}function vm(){this.agent.dirty(),this.getDownstream().dirty()}function xm(){this.agent&&this.agent.dirty()}function _m(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function bm(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Ur(t.reset(t.model,t.ecModel,t.api,t.payload));return 1<t.length?V(t,function(t,e){return Sm(e)}):wm}var wm=Sm(0);function Sm(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 Mm(t){return t.data.count()}var Im,Tm={},Cm={};function Am(t,e){for(var n in e.prototype)t[n]=Vt}Am(Tm,df),Am(Cm,vf),Tm.eachSeriesByType=Tm.eachRawSeriesByType=function(t){Im=t},Tm.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Im=t.subType)};
1function Dm(){return{axisLine:{lineStyle:{color:km}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}}var vp=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],_p={color:vp,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],vp]},km="#B9B8CE",yp="#100C2A",vp=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],yp={darkMode:!0,color:vp,backgroundColor:yp,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:km}},textStyle:{color:km},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:km}},dataZoom:{borderColor:"#71708A",textStyle:{color:km},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:km}},timeline:{lineStyle:{color:km},label:{color:km},controlStyle:{color:km,borderColor:km}},calendar:{itemStyle:{color:yp},dayLabel:{color:km},monthLabel:{color:km},yearLabel:{color:km}},timeAxis:Dm(),logAxis:Dm(),valueAxis:Dm(),categoryAxis:Dm(),line:{symbol:"circle"},graph:{color:vp},gauge:{title:{color:km},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:km},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}},Lm=(yp.categoryAxis.splitLine.show=!1,Pm.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},X(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}},Pm.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]}},Pm.prototype.afterTrigger=function(){this.eventInfo=null},Pm);function Pm(){}var Om=["symbol","symbolSize","symbolRotate","symbolOffset"],Nm=Om.concat(["symbolKeepAspect"]),vp={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<Om.length;o++){var r=Om[o],u=a.get(r);A(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}}}},Rm={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<Nm.length;i++){var o=Nm[i],r=n.getShallow(o,!0);null!=r&&t.setItemVisual(e,o,r)}}:null}}};function Em(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 zm(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 Bm(r,t){X([[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 Vm(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 Fm(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var Gm=Math.round(9*Math.random()),Wm="function"==typeof Object.defineProperty,Hm=(Xm.prototype.get=function(t){return this._guard(t)[this._id]},Xm.prototype.set=function(t,e){t=this._guard(t);return Wm?Object.defineProperty(t,this._id,{value:e,enumerable:!1,
1configurable:!0}):t[this._id]=e,this},Xm.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},Xm.prototype.has=function(t){return!!this._guard(t)[this._id]},Xm.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},Xm);function Xm(){this._id="__ec_inner_"+Gm++}var Ym=K.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()}}),Um=K.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()}}),Zm=K.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=K.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}},Km={},Jm=(X({line:zh,rect:cl,roundRect:cl,square:cl,circle:$u,diamond:Um,pin:Zm,arrow:jm,triangle:Ym},function(t,e){Km[e]=new t}),K.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=Km[o])||Km[o="rect"],qm[o](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}}));function $m(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 Qm(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://")?Pc(t.slice(8),new z(e,n,i,o),a?"center":"cover"):0===t.indexOf("path://")?Lc(t.slice(7),{},new z(e,n,i,o),a?"center":"cover"):new Jm({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=s,a.setColor=$m,r&&a.setColor(r),a}function t0(t){return[(t=W(t)?t:[+t,+t])[0]||0,t[1]||0]}function e0(t,e){if(null!=t)return[q((t=W(t)?t:[t,t])[0],e[0])||0,q(N(t[1],t[0]),e[1])||0]}function n0(t){return isFinite(t)}function i0(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=n0(u)?u:.5,h=n0(h)?h:.5,c=0<=c&&n0(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=n0(r)?r:0,l=n0(l)?l:1,i=n0(i)?i:0,u=n0(u)?u:0,o.createLinearGradient(r,i,l,u)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function o0(t){return parseInt(t,10)}function r0(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]||o0(n[i])||o0(t.style[i]))-(o0(n[r])||0)-(o0(n[e])||0)|0)}function a0(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]:U(o)?[o]:W(o)?o:null:null),o=n.lineDashOffset;return i&&(e=n.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(i=V(i,function(t){return t/e}),o/=e),[i,o]}var s0=new As(!0);function l0(t){var e=t.stroke;
1return!(null==e||"none"===e||!(0<t.lineWidth))}function u0(t){return"string"==typeof t&&"none"!==t}function h0(t){t=t.fill;return null!=t&&"none"!==t}function c0(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 p0(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 d0(t,e,n){var n=Aa(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 f0=["shadowBlur","shadowOffsetX","shadowOffsetY"],g0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function y0(t,e,n,i,o){var r,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(S0(t,o),a=!0,r=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(r)?Xa.opacity:r),!i&&e.blend===n.blend||(a||(S0(t,o),a=!0),t.globalCompositeOperation=e.blend||Xa.blend);for(var s=0;s<f0.length;s++){var l=f0[s];!i&&e[l]===n[l]||(a||(S0(t,o),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(S0(t,o),a=!0),t.shadowColor=e.shadowColor||Xa.shadowColor),a}function m0(t,e,n,i,o){var r=M0(e,o.inHover),a=i?null:n&&M0(n,o.inHover)||{};if(r!==a){var s=y0(t,r,a,i,o);(i||r.fill!==a.fill)&&(s||(S0(t,o),s=!0),u0(r.fill))&&(t.fillStyle=r.fill),(i||r.stroke!==a.stroke)&&(s||(S0(t,o),s=!0),u0(r.stroke))&&(t.strokeStyle=r.stroke),!i&&r.opacity===a.opacity||(s||(S0(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||(S0(t,o),s=!0),t.lineWidth=n);for(var l=0;l<g0.length;l++){var u=g0[l],h=u[0];!i&&r[h]===a[h]||(s||(S0(t,o),s=!0),t[h]=r[h]||u[1])}}}function v0(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 x0=1,_0=2,b0=3,w0=4;function S0(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function M0(t,e){return e&&t.__hoverStyle||t.style}function I0(t,e){T0(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function T0(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,f,g,y,m,v,x,_,b,w,S,M,I,T,C=e.__clipPaths,A=n.prevElClipPaths,D=!1,k=!1;if(!A||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,A)){if(A&&A.length&&(S0(t,n),t.restore(),k=D=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),C&&C.length){S0(t,n),t.save();var z=C,B=t;A=n;for(var V=!1,F=0;F<z.length;F++){var G=z[F],V=V||G.isZeroArea();v0(B,G),B.beginPath(),G.buildPath(B,G.shape),B.clip()}A.allClipped=V,D=!0}n.prevElClipPaths=C}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var A=n.prevEl,L=(A||(k=D=!0),e instanceof K&&e.autoBatch&&(C=e.style,L=h0(C),T=l0(C),!(C.lineDash||!(+L^+T)||L&&"string"!=typeof C.fill||T&&"string"!=typeof C.stroke||C.strokePercent<1||C.strokeOpacity<1||C.fillOpacity<1))),D=(D||(T=i,C=A.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)?(S0(t,n),v0(t,e)):L||S0(t,n),M0(e,n.inHover));if(e instanceof K)n.lastDrawType!==x0&&(k=!0,n.lastDrawType=x0),m0(t,e,A,k,n),L&&(n.batchFill||n.batchStroke)||t.beginPath(),i=t,C=e,O=L,y=l0(a=D),m=h0(a),v=a.strokePercent,x=v<1,_=!C.path,C.silent&&!x||!_||C.createPathProxy(),b=C.path||s0,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=g=f=d=p=void 0,(l||u)&&(M=C.getBoundingRect()),l&&(p=w?i0(i,s,M):C.__canvasFillGradient,C.__canvasFillGradient=p),u&&(d=w?i0(i,I,M):C.__canvasStrokeGradient,C.__canvasStrokeGradient=d),h&&(f=w||!C.__canvasFillPattern?d0(i,s,C):C.__canvasFillPattern,C.__canvasFillPattern=f),c&&(g=w||!C.__canvasStrokePattern?d0(i,I,C):C.__canvasStrokePattern,C.__c
1anvasStrokePattern=f),l?i.fillStyle=p:h&&(f?i.fillStyle=f:m=!1),u?i.strokeStyle=d:c&&(g?i.strokeStyle=g:y=!1)),M=C.getGlobalScale(),b.setScale(M[0],M[1],C.segmentIgnoreThreshold),i.setLineDash&&a.lineDash&&(S=(s=a0(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&&p0(i,a),m&&c0(i,a)):(m&&c0(i,a),y&&p0(i,a))),S&&i.setLineDash([]),L&&(n.batchFill=D.fill||"",n.batchStroke=D.stroke||"");else if(e instanceof Js)n.lastDrawType!==b0&&(k=!0,n.lastDrawType=b0),m0(t,e,A,k,n),l=t,p=e,null!=(f=(h=D).text)&&(f+=""),f&&(l.font=h.font||Q,l.textAlign=h.textAlign,l.textBaseline=h.textBaseline,d=u=void 0,l.setLineDash&&h.lineDash&&(u=(p=a0(p))[0],d=p[1]),u&&(l.setLineDash(u),l.lineDashOffset=d),h.strokeFirst?(l0(h)&&l.strokeText(f,h.x,h.y),h0(h)&&l.fillText(f,h.x,h.y)):(h0(h)&&l.fillText(f,h.x,h.y),l0(h)&&l.strokeText(f,h.x,h.y)),u)&&l.setLineDash([]);else if(e instanceof nl)n.lastDrawType!==_0&&(k=!0,n.lastDrawType=_0),c=A,g=k,y0(t,M0(e,(M=n).inHover),c&&M0(c,M.inHover),g,M),s=t,_=D,(C=(w=e).__image=Aa(_.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!==w0&&(k=!0,n.lastDrawType=w0);{var W=t;var P=e;var O=n;var H=P.getDisplayables(),X=P.getTemporalDisplayables();W.save();var N,Y,U={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:O.viewWidth,viewHeight:O.viewHeight,inHover:O.inHover};for(N=P.getCursor(),Y=H.length;N<Y;N++)(R=H[N]).beforeBrush&&R.beforeBrush(),R.innerBeforeBrush(),T0(W,R,U,N===Y-1),R.innerAfterBrush(),R.afterBrush&&R.afterBrush(),U.prevEl=R;for(var R,Z=0,j=X.length;Z<j;Z++)(R=X[Z]).beforeBrush&&R.beforeBrush(),R.innerBeforeBrush(),T0(W,R,U,Z===j-1),R.innerAfterBrush(),R.afterBrush&&R.afterBrush(),U.prevEl=R;P.clearTemporalDisplayables(),P.notClear=!0,W.restore()}}L&&E&&S0(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}var C0=new Hm,A0=new li(100),D0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function k0(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),i=e.getZr(),o="svg"===i.painter.type,e=(t.dirty&&C0.delete(t),C0.get(t));if(e)return e;for(var r,a=B(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<D0.length;++h){var c=a[D0[h]];if(null!=c&&!W(c)&&!Y(c)&&!U(c)&&"boolean"!=typeof c){u=!1;break}l.push(c)}u&&(r=l.join(",")+(o?"-svg":""),v=A0.get(r))&&(o?s.svgElement=v:s.image=v);var p,d=function t(e){if(!e||0===e.length)return[[0,0]];if(U(e))return[[r=Math.ceil(e),r]];for(var n=!0,i=0;i<e.length;++i)if(!U(e[i])){n=!1;break}if(n)return t([e]);var o=[];for(i=0;i<e.length;++i){var r;U(e[i])?(r=Math.ceil(e[i]),o.push([r,r])):(r=V(e[i],function(t){return Math.ceil(t)})).length%2==1?o.push(r.concat(r)):o.push(r)}return o}(a.dashArrayX),f=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(U(t))return[e=Math.ceil(t),e];var e=V(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(a.dashArrayY),g=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=V(d,L0),m=L0(f),v=!o&&tt.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=g.length;e<n;++e)i=Gr(i,g[e].length);t*=i;var o=m*y.length*g.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<f.length;++w)b+=f[w];if(!(b<=0))for(var S,M=-m,I=0,T=0,C=0;M<_.height;){if(I%2==0){for(var A=T/2%g.length,D=0,k=0,L=0;D<2*_.width;){for(var P,O,N,E,R,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=D+d[C][k]*O,O=M+f[I]*O,N=d[C][k]*a.symbolSize,E=f[I]*a.symbolSize,R=L/2%g[A].length,P=P,R=g[A][R],S=void 0,R=Qm(R,P*(S=o?1:n),O*S,N*S,E*S,a.color,a.symbolKeepAspect),o?(P=i.painter.renderOneToVNode(R))&&x.children.push(P):I0(p,R)),D+=d[C][k],++L,++k===d[C].length&&(k=0)}++C===d.length&&(C=0)}M+=f[I],++T,++I===f.length&&(I=0)}return u&&A0.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,C0.set(t,e),t.dirty=!1,e}function L0(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var P0=new ce,O0={};var Um={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}},N0="__flagInMainProcess",R0="__pendingUpdate",E0="__needsUpdateStatus",z0=/^[a-zA-Z0-9_]+$/,B0="__connectUpdateStatus";function V0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return G0(this,n,t);this.id}}function F0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return G0(this,n,t)}}function G0(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),ce.prototype[e].apply(t,n)}u(lv,av=ce);var W0,H0,X0,Y0,U0,Z0,j0,q0,K0,J0,$0,Q0,tv,ev,nv,iv,ov,rv,av,sv=lv,Zm=sv.prototype;function lv(){return null!==av&&av.apply(this,arguments)||this}Zm.on=F0("on"),Zm.off=F0("off");u(cv,uv=ce),cv.prototype._onframe=function(){if(!this._disposed){rv(this);var t=this._scheduler;if(this[R0]){var e=this[R0].silent;this[N0]=!0;try{W0(this),Y0.update.call(this,null,this[R0].updateParams)}catch(t){throw this[N0]=!1,this[R0]=null,t}this._zr.flush(),this[N0]=!1,this[R0]=null,q0.call(this,e),K0.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),Z0(this,i),t.performVisualTasks(i),ev(this,this._model,o,"remain",{}),0<(n-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},cv.prototype.getDom=function(){return this._dom},cv.prototype.getId=function(){return this.id},cv.prototype.getZr=function(){return this._zr},cv.prototype.isSSR=function(){return this._ssr},cv.prototype.setOption=function(t,e,n){if(!this[N0])if(this._disposed)this.id;else{O(e)&&(n=e.lazyUpdate,i=e.silent,o=e.replaceMerge,r=e.transition,e=e.notMerge),this[N0]=!0,this._model&&!e||(e=new Mf(this._api),a=this._theme,(s=this._model=new df).scheduler
1=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:o},bv);var i,o,r,a,s={seriesTransition:r,optionChanged:!0};if(n)this[R0]={silent:i,updateParams:s},this[N0]=!1,this.getZr().wakeUp();else{try{W0(this),Y0.update.call(this,null,s)}catch(t){throw this[R0]=null,this[N0]=!1,t}this._ssr||this._zr.flush(),this[R0]=null,this[N0]=!1,q0.call(this,i),K0.call(this,i)}}},cv.prototype.setTheme=function(){},cv.prototype.getModel=function(){return this._model},cv.prototype.getOption=function(){return this._model&&this._model.getOption()},cv.prototype.getWidth=function(){return this._zr.getWidth()},cv.prototype.getHeight=function(){return this._zr.getHeight()},cv.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||w.hasGlobalWindow&&window.devicePixelRatio||1},cv.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},cv.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},cv.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},cv.prototype.getSvgDataURL=function(){var t;if(w.svgSupported)return X((t=this._zr).storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},cv.prototype.getDataURL=function(t){var e,n,i,o;if(!this._disposed)return o=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,X(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")),X(n,function(t){t.group.ignore=!1}),o;this.id},cv.prototype.getConnectedDataURL=function(i){var o,r,a,s,l,u,h,c,p,e,t,n,d,f,g;if(!this._disposed)return o="svg"===i.type,r=this.group,a=Math.min,s=Math.max,Tv[r]?(u=l=1/0,c=h=-1/0,p=[],e=i&&i.pixelRatio||this.getDevicePixelRatio(),X(Iv,function(t,e){var n;t.group===r&&(n=o?t.getZr().painter.getSvgDom().innerHTML:t.renderToCanvas(x(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=tt.createCanvas(),(f=mr(d,{renderer:o?"svg":"canvas"})).resize({width:t,height:n}),o?(g="",X(p,function(t){var e=t.left-l,n=t.top-u;g+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),f.painter.getSvgRoot().innerHTML=g,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()):(i.connectedBackgroundColor&&f.add(new cl({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),X(p,function(t){t=new nl({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i);this.id},cv.prototype.convertToPixel=function(t,e){return U0(this,"convertToPixel",t,e)},cv.prototype.convertFromPixel=function(t,e){return U0(this,"convertFromPixel",t,e)},cv.prototype.containPixel=function(t,i){var o;if(!this._disposed)return X(ra(this._model,t),function(t,n){0<=n.indexOf("Models")&&X(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},cv.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?Em(n,t,e):zm(n,e)},cv.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},cv.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},cv.prototype._initEvents=function(){var t,n,i,s=this;X(mv,function(a){function t(t){var n,e,i,o=s.getModel(),r=t.target;"globalout"===a?n={}:r&&Fm(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)}),X(xv,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),X(["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?(Vm("map","selectchanged",n,e,t),Vm("pie","selectchanged",n,e,t)):"select"===t.fromAction?(Vm("map","selected",n,e,t),Vm("pie","selected",n,e,t)):"unselect"===t.fromAction&&(Vm("map","unselected",n,e,t),Vm("pie","unselected",n,e,t))})},cv.prototype.isDisposed=function(){return this._disposed},cv.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},cv.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&ha(this.getDom(),Dv,""),e=(t=this)._api,n=t._model,X(t._componentsViews,function(t){t.dispose(n,e)}),X(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
1=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Iv[t.id])},cv.prototype.resize=function(t){if(!this[N0])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[R0]&&(null==n&&(n=this[R0].silent),e=!0,this[R0]=null),this[N0]=!0;try{e&&W0(this),Y0.update.call(this,{type:"resize",animation:H({duration:0},t&&t.animation)})}catch(t){throw this[N0]=!1,t}this[N0]=!1,q0.call(this,n),K0.call(this,n)}}},cv.prototype.showLoading=function(t,e){this._disposed?this.id:(O(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Mv[t]&&(t=Mv[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},cv.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},cv.prototype.makeActionFromEvent=function(t){var e=H({},t);return e.type=xv[t.type],e},cv.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(O(e)||(e={silent:!!e}),vv[t.type]&&this._model&&(this[N0]?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),K0.call(this,n))))},cv.prototype.updateLabelLayout=function(){P0.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},cv.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())},cv.internalField=(W0=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),H0(t,!0),H0(t,!1),e.plan()},H0=function(t,o){for(var r=t._model,a=t._scheduler,s=o?t._componentsViews:t._chartsViews,l=o?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;e<s.length;e++)s[e].__alive=!1;function n(t){var e,n=t.__requireNewView,i=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type),n=!n&&l[i];n||(e=ya(t.type),(n=new(o?Hy.getClass(e.main,e.sub):jy.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)}
1for(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)}},X0=function(p,e,d,n,t){var i,f,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)&&(f=R(),X(Ur(t),function(t){t=Qr(t,null);null!=t&&f.set(t,!0)})),o&&o.eachComponent(i,function(t){if(!f||null==f.get(t.id))if(Du(d))if(t instanceof Ny){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?yu(o,(n=$(a)).focus,n.blurScope,i):(n=e.get(["emphasis","focus"]),e=e.get(["emphasis","blurScope"]),null!=n&&yu(o,n,e,i))}}}else n=(o=vu(t.mainType,t.componentIndex,d.name,p._api)).focusSelf,e=o.dispatchers,d.type===Vl&&n&&!d.notBlur&&mu(t.mainType,t.componentIndex,p._api),e&&X(e,function(t){(d.type===Vl?lu:uu)(t)});else Au(d)&&t instanceof Ny&&(i=t,u=d,p._api,Au(u)&&(h=u.dataType,W(c=ia(i.getData(h),u))||(c=[c]),i[u.type===Hl?"toggleSelect":u.type===Gl?"select":"unselect"](c,h)),xu(t),ov(p));var u,h,c},p),o&&o.eachComponent(i,function(t){f&&null!=f.get(t.id)||r(p["series"===n?"_chartsMap":"_componentsMap"][t.__viewId])},p)):X([].concat(p._componentsViews).concat(p._chartsViews),r)},Y0={prepareAndUpdate:function(t){W0(this),Y0.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),Z0(this,n),r.update(n,i),pv(n),a.performVisualTasks(n,t),Q0(this,n,i,t,e),r=n.get("backgroundColor")||"transparent",a=n.get("darkMode"),o.setBackgroundColor(r),null!=a&&"auto"!==a&&o.setDarkMode(a),P0.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"
1!==t&&(t=r.getViewOfComponentModel(e))&&t.__alive&&(!t.updateTransform||(e=t.updateTransform(e,a,s,n))&&e.update)&&i.push(t)}),o=R(),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)}),pv(a),this._scheduler.performVisualTasks(a,n,{setDirty:!0,dirtyMap:o}),ev(this,a,s,n,{},o),P0.trigger("afterupdate",a,s))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),jy.markUpdateMethod(t,"updateView"),pv(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),Q0(this,e,this._api,t,{}),P0.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()}),jy.markUpdateMethod(n,"updateVisual"),pv(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)}),P0.trigger("afterupdate",o,this._api))},updateLayout:function(t){Y0.update.call(this,t)}},U0=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}},Z0=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=vv[n],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),h=null!=l[0]&&ya(l[0]),l=(this[N0]=!0,[i]),c=!1;i.batch&&(c=!0,l=V(i.batch,function(t){return(t=B(H({},t),i)).batch=null,t}));var p=[],d=Au(i),f=Du(i);if(f&&gu(this._api),X(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),f?(e=(n=aa(i)).queryOptionMap,n=n.mainTypeSpecified?e.keys()[0]:"series",X0(o,u,t,n),ov(o)):d?(X0(o,u,t,"series"),ov(o)):h&&X0(o,u,t,h.main,h.sub)}),"none"!==u&&!f&&!d&&!h)try{this[R0]?(W0(this),Y0.update.call(this,i),this[R0]=null):Y0[u].call(this,i)}catch(i){throw this[N0]=!1,i}var g,y=c?{type:s.event||n,escapeConnect:r,batch:p}:p[0];this[N0]=!1,t||((l=this._messageCenter).trigger(y.type,y),d&&(c={type:"selectchanged",escapeConnect:r,selected:(g=[],e.eachSeries(function(n){X(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),g.push(e))})}),g),isFromClick:i.isFromClick||!1,fromAction:i.type,fromActionPayload:i},l.trigger(c.type,c)))}
1,q0=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();j0.call(this,n,t)}},K0=function(t){t||this.trigger("updated")},J0=function(e,n){e.on("rendered",function(t){n.trigger("rendered",t),!e.animation.isFinished()||n[R0]||n._scheduler.unfinished||n._pendingActions.length||n.trigger("finished")})},$0=function(t,a){t.on("mouseover",function(t){var e,n,i,o,r=Fm(t.target,Cu);r&&(r=r,e=t,t=a._api,n=$(r),i=(o=vu(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,o=o.focusSelf,i?(o&&mu(n.componentMainType,n.componentIndex,t),X(i,function(t){return au(t,e)})):(yu(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&mu(n.componentMainType,n.componentIndex,t),au(r,e)),ov(a))}).on("mouseout",function(t){var e,n,i=Fm(t.target,Cu);i&&(i=i,e=t,gu(t=a._api),(n=vu((n=$(i)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?X(n,function(t){return su(t,e)}):su(i,e),ov(a))}).on("click",function(t){var e,t=Fm(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}))})},Q0=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}),X(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)})),tv(t,e,n,i,o),X(t._chartsViews,function(t){t.__alive=!1}),ev(t,e,n,i,o),X(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},tv=function(t,n,i,o,e,r){X(r||t._componentsViews,function(t){var e=t.__model;gv(0,t),t.render(e,n,i,o),fv(e,t),yv(e,t)})},ev=function(o,t,e,r,n,a){var i,s,l,u,h=o._scheduler,c=(n=H(n||{},{updatedSeries:t.getSeries()}),P0.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),gv(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)}),xu(t)}),h.unfinished=c||h.unfinished,P0.trigger("series:layoutlabels",t,e,n),P0.trigger("series:transition",t,e,n),t.eachSeries(function(t){var e=o._chartsMap[t.__viewId];fv(t,e),yv(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)})}),P0.trigger("series:afterupdate",t,e,n)},ov=function(t){t[E0]=!0,t.getZr().wakeUp()},rv=function(t){t[E0]&&(t.getZr().storage.traverse(function(t){vc(t)||dv(t)}),t[E0]=!1)},nv=function(n){return u(t,e=vf),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){lu(t,e),ov(n)},t.prototype.leaveEmphasis=function(t,e){uu(t,e),ov(n)},t.prototype.enterBlur=function(t){hu(t),ov(n)},t.prototype.leaveBlur=function(t){cu(t),ov(n)},t.prototype.enterSelect=function(t){pu(t),ov(n)},t.prototype.leaveSelect=function(t){du(t),ov(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(iv=function(i){function o(t,e){for(var n=0;n<t.length;n++)t[n][B0]=e}X(xv,function(t,e){i._messageCenter.on(e,function(t){var e,n;!Tv[i.group]||0===i[B0]||t&&t.escapeConnect||(e=i.makeActionFromEvent(t),n=[],X(Iv,function(t){t!==i&&t.group===i.group&&n.push(t)}),o(n,0),X(n,function(t){1!==t[B0]&&t.dispatchAction(e)}),o(n,2))})})}));var uv,hv=cv,jm=hv.prototype;function cv(t,e,n){var i=uv.call(this,new Lm)||this,t=(i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},Y(e)&&(e=Sv[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:N(n.useDirtyRect,!1),useCoarsePointer:N(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize})),n=(i._ssr=n.ssr,i._throttledZrFlush=om(T(t.flush,t),17),(e=x(e))&&Xf(e,!0),i._theme=e,i._locale=Y(e=n.locale||Rp)?(n=Op[e.toUpperCase()]||{},e===kp||e===Lp?x(n):d(x(n),x(Op[Pp]),!1)):d(x(e),x(Op[Pp]),!1),i._coordSysMgr=new bf,i._api=nv(i));function o(t,e){return t.__prio-e.__prio}
1return Sn(wv,o),Sn(_v,o),i._scheduler=new fm(i,n,_v,wv),i._messageCenter=new sv,i._initEvents(),i.resize=T(i.resize,i),t.animation.on("frame",i._onframe,i),J0(t,i),$0(t,i),Dt(i),i}function pv(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function dv(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===El&&t.states.emphasis?e.push("emphasis"):t.hoverState===Rl&&t.states.blur&&e.push("blur"),t.useStates(e)}function fv(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 gv(t,e){e.eachRendered(function(t){var e,n;vc(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 yv(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&&(vc(t)||(t instanceof K&&((i=Pl(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&&dv(t)))})}jm.on=V0("on"),jm.off=V0("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 mv=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var vv={},xv={},_v=[],bv=[],wv=[],Sv={},Mv={},Iv={},Tv={},Cv=+new Date,Av=+new Date,Dv="_echarts_instance_";function kv(t){Tv[t]=!1}Ym=kv;function Lv(t){return Iv[e=Dv,(t=t).getAttribute?t.getAttribute(e):t[e]];var e}function Pv(t,e){Sv[t]=e}function Ov(t){F(bv,t)<0&&bv.push(t)}function Nv(t,e){Hv(_v,t,e,2e3)}function Rv(t){zv("afterinit",t)}function Ev(t){zv("afterupdate",t)}function zv(t,e){P0.on(t,e)}function Bv(t,e,n){A(e)&&(n=e,e="");var i=O(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,xv[e]||(Tt(z0.test(i)&&z0.test(e)),vv[i]||(vv[i]={action:n,actionInfo:t}),xv[e]=i)}function Vv(t,e){bf.register(t,e)}function Fv(t,e){Hv(wv,t,e,1e3,"layout")}function Gv(t,e){Hv(wv,t,e,3e3,"visual")}var Wv=[];function Hv(t,e,n,i,o){(A(e)||O(e))&&(n=e,e=i),0<=F(Wv,n)||(Wv.push(n),(i=fm.wrapStageHandler(n,o)).__prio=e,i.__raw=n,t.push(i))}function Xv(t,e){Mv[t]=e}function Yv(t,e,n){var i=O0.registerMap;i&&i(t,e,n)}function Uv(t){var e=(t=x(t)).type,n=(e||Wr(""),e.split(":")),i=(2!==n.length&&Wr(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,Kg.set(e,t)}Gv(2e3,Ia),Gv(4500,zc),Gv(4500,Wp),Gv(2e3,vp),Gv(4500,Rm),Gv(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=k0(e,i))}),t=n.getVisual("decal"))&&(n.getVisual("style").decal=k0(t,i))})}),Ov(Xf),Nv(900,function(t){var i=R();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(Yf)}),Xv("default",function(i,o){B(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",
1spinnerRadius:10,lineWidth:5,zlevel:0});var t=new j,r=new cl({style:{fill:o.maskColor},zlevel:o.zlevel,z:1e4});t.add(r);var a,s=new J({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 cl({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:o.zlevel,z:10001});return t.add(l),o.showSpinner&&((a=new Zh({shape:{startAngle:-dm/2,endAngle:-dm/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*dm/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*dm/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}),Bv({type:Vl,event:Vl,update:Vl},Vt),Bv({type:Fl,event:Fl,update:Fl},Vt),Bv({type:Gl,event:Gl,update:Gl},Vt),Bv({type:Wl,event:Wl,update:Wl},Vt),Bv({type:Hl,event:Hl,update:Hl},Vt),Pv("light",_p),Pv("dark",yp);function Zv(t){return null==t?0:t.length||1}function jv(t){return t}Kv.prototype.add=function(t){return this._add=t,this},Kv.prototype.update=function(t){return this._update=t,this},Kv.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},Kv.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},Kv.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},Kv.prototype.remove=function(t){return this._remove=t,this},Kv.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},Kv.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=Zv(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)},Kv.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=Zv(l),c=Zv(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)},Kv.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],o=e[i],r=Zv(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}},Kv.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=Zv(a=e[l]))?(e[l]=r,o&&n.push(l)):1===s?e[l]=[a,r]:a.push(r))}};var qv=Kv;function Kv(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}$v.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},$v.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var Jv=$v;function $v(t,e){this._encode=t,this._schema=e}function Qv(r,t){var e={},a=e.encode={},s=R(),l=[],u=[],h={},i=(X(r.dimensions,function(t){var e,n,i=r.getDimensionInfo(t),o=i.coordDim;o&&(e=i.coordDimIndex,tx(a,o)[e]=t,i.isExtraCoord||(s.set(o,1),"ordinal"!==(n=i.type)&&"time"!==n&&(l[0]=t),tx(h,o)[e]=r.getDimensionIndex(i.name)),i.defaultTooltip)&&u.push(t),Vd.each(function(t,e){var n=tx(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=V(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 Jv(h,t),e}function tx(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function ex(t){return"category"===t?"ordinal":"time"===t?"time":"float"}var nx=function(t){this.otherDims={},null!=t&&H(this,t)},ix=i(),ox={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},rx=(ax.prototype.isDimensionOmitted=function(){return this._dimOmitted},ax.prototype._updateDimOmitted=function(t){!(this._dimOmitted=t)||this._dimNameMap||(this._dimNameMap=ux(this.source))},ax.prototype.getSourceDimensionIndex=function(t){return N(this._dimNameMap.get(t),-1)},ax.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},ax.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=eg(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+"$"+(ox[u]||"f"),h&&(i+=h.uid),i+="$"}var p=this.source;return{dimensions:o,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},ax.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},ax.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},ax);function ax(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function sx(t){return t instanceof rx}function lx(t){for(var e=R(),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 ux(t){var e=ix(t);return e.dimNameMap||(e.dimNameMap=lx(t.dimensionsDefine))}var hx,cx,px,dx,fx,gx,yx,mx=O,vx=V,xx="undefined"==typeof Int32Array?Array:Int32Array,_x=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],bx=["_approximateExtent"],Sx=(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(U(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 sy?t:i)||(o=this.dimensions,t=qf(t)||ht(t)?new rg(t,o.length):t,i=new sy,o=vx(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=Qv(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&&yx(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!==Xd&&!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===Fd&&!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++)yx(this,a);hx(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){mx(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?px(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 cx(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(vx(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){A(t)&&(n=e,e=t,t=[]);n=n||this,t=vx(dx(t),this._getStoreDimIndex,this);this._store.each(t,n?T(e,n):e)},o.prototype.filterSelf=function(t,e,n){A(t)&&(n=e,e=t,t=[]);n=n||this,t=vx(dx(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 X(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){A(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=vx(dx(t),this._getStoreDimIndex,this),t=gx(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=vx(dx(t),this._getStoreDimIndex,this);this._store.modify(i,n?T(e,n):e)},o.prototype.downSample=function(t,e,n,i){var o=gx(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),o},o.prototype.lttbDownSample=function(t,e){var n=gx(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 Ip(t,e,e&&e.ecModel)},o.prototype.diff=function(e){var n=this;
1return new qv(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return cx(e,t)},function(t){return cx(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||{},mx(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():mx(n)&&(n=H({},n)),i[e]=n),n},o.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,mx(e)?H(i,e):i[e]=n},o.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},o.prototype.setLayout=function(t,e){mx(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){X(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},o.prototype.cloneShallow=function(t){return t=t||new o(this._schema||vx(this.dimensions,this._getDimInfo,this),this.hostModel),fx(t,this),t._store=this._store,t},o.prototype.wrapMethod=function(t,e){var n=this[t];A(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=(hx=function(a){var s=a._invertedIndicesMap;X(s,function(t,e){var n=a._dimInfos[e],i=n.ordinalMeta,o=a._store;if(i){t=s[e]=new xx(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}})},px=function(t,e,n){return Qr(t._getCategory(e,n),null)},cx=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?px(t,t._idDimIdx,e):n)?"e\0\0"+e:n},dx=function(t){return t=W(t)?t:null!=t?[t]:[]},gx=function(t){var e=new o(t._schema||vx(t.dimensions,t._getDimInfo,t),t.hostModel);return fx(e,t),e},fx=function(e,n){X(_x.concat(n.__wrappedMethods||[]),function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e.__wrappedMethods=n.__wrappedMethods,X(bx,function(t){e[t]=x(n[t])}),e._calculationInfo=H({},n._calculationInfo)},void(yx=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=px(t,o,e)),null==s&&null!=r&&(i[e]=s=px(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"]);sx(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 nx({name:c}):c instanceof nx?c:new nx(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=R(),X(a,function(t){i.set(r[t].storeDimIndex,t)}))}function Mx(t,e){qf(t)||(t=Jf(t));for(var n,i,o=(e=e||{}).coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],a=R(),s=[],l=(u=t,n=o,p=e.dimensionsCount,i=Math.max(u.dimensionsDetectedCount||1,n.length,r.length,p||0),X(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?ux(t):lx(r),p=e.encodeDefine,d=R(p=!p&&e.encodeDefaulter?e.encodeDefaulter(t,l):p),f=new ny(l),g=0;g<f.length;g++)f[g]=-1;function y(t){var e,n,i,o=f[t];return o<0?(e=O(e=r[t])?e:{name:e},n=new nx,null!=(i=e.name)&&null!=c.get(i)&&(n.name=n.displayName=i),null!=e.type&&(n.type=e.type),null!=e.displayName&&(n.displayName=e.displayName),f[t]=s.length,n.storeDimIndex=t,s.push(n),n):s[o]}if(!u)for(g=0;g<l;g++)y(g);d.each(function(t,n){var i,t=Ur(t).slice();1===t.length&&!Y(t[0])&&t[0]<0?d.set(n,!1):(i=d.set(n,[]),X(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!=Vd.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,a.set(e,!0))}X(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++)}X(e,function(t,e){t=y(t);h&&null!=o.type&&(t.type=o.type),v(B(t,o),r,e),null==t.name&&n&&(O(e=n[e])||(e={name:e}
1),t.name=t.displayName=e.name,t.defaultTooltip=e.defaultTooltip),i&&B(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)X(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||Qd(t,M)!==jd.Must&&(!I.isExtraCoord||null==I.otherDims.itemName&&null==I.otherDims.seriesName)||(I.type="ordinal")}for(var T=s,C=R(),A=0;A<T.length;A++){var D=T[A],k=D.name,L=C.get(k)||0;0<L&&(D.name=k+(L-1)),L++,C.set(k,L)}return new rx({source:t,dimensions:s,fullDimensionCount:l,dimensionOmitted:u})}function Ix(t){this.coordSysDims=[],this.axisMap=R(),this.categoryAxisMap=R(),this.coordSysName=t}var Tx={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),Cx(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),Cx(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),Cx(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),Cx(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),Cx(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();X(t.parallelAxisIndex,function(t,e){var t=a.getComponent("parallelAxis",t),n=s[e];o.set(n,t),Cx(t)&&(r.set(n,t),null==i.firstCategoryDimIndex)&&(i.firstCategoryDimIndex=e)})}};function Cx(t){return"category"===t.get("type")}function Ax(t,e,n){var i,o,r,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;sx(e.schema)?(o=e.schema,i=o.dimensions,r=e.store):i=e;var l,u,h,c,p,d,f=!(!t||!t.get("stack"));return X(i,function(t,e){Y(t)&&(i[e]=t={name:t}),f&&!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,X(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 Dx(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function kx(t,e){return Dx(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Lx(t,e,n){n=n||{};var i,o,r,a,s,l,u=e.getSourceManager(),h=!1,t=(t?(h=!0,i=Jf(t)):h=(i=u.getSource()).sourceFormat===Fd,function(t){var e=t.get("coordinateSystem"),n=new Ix(e);if(e=Tx[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),c=(l=t,c=(c=e).get("coordinateSystem"),c=bf.get(c),p=(p=l&&l.coordSysDims?V(l.coordSysDims,function(t){var e={name:t},t=l.axisMap.get(t);return t&&(t=t.get("type"),e.type=ex(t)),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=n.useEncodeDefaulter,p=A(p)?p:p?P(Kd,c,e):null,c={coordDimensions:c,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h},p=Mx(i,c),d=(c=p.dimensions,o=n.createInvertedIndices,(r=t)&&X(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=Ax(e,{schema:p,store:n}),c=new Sx(p,e),p=(c.setCalculationInfo(t),null==d||(u=i).sourceFormat!==Fd||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}Ox.prototype.getSetting=function(t){return this._setting[t]},Ox.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},Ox.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Ox.prototype.getExtent=function(){return this._extent.slice()},Ox.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},Ox.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},Ox.prototype.isBlank=function(){return this._isBlank},Ox.prototype.setBlank=function(t){this._isBlank=t};var Px=Ox;function Ox(t){this._setting=t||{},this._extent=[1/0,-1/0]}wa(Px);var Nx=0,Rx=(Ex.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&V(e,zx);return new Ex({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},Ex.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},Ex.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},Ex.prototype._getOrCreateMap=function(){return this._map||(this._map=R(this.categories))},Ex);function Ex(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Nx}function zx(t){return O(t)&&null!=t.value?t.value:t+""}function Bx(t){return"interval"===t.type||"log"===t.type}function Vx(t,e,n,i){var o={}
1,r=t[1]-t[0],r=o.interval=Rr(r/e,!0),e=(null!=n&&r<n&&(r=o.interval=n),null!=i&&i<r&&(r=o.interval=i),o.intervalPrecision=Gx(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]),Wx(n,0,i),Wx(n,1,i),n[0]>n[1]&&(n[0]=n[1]),o}function Fx(t){var e=Math.pow(10,Nr(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,wr(t*e)}function Gx(t){return Mr(t)+2}function Wx(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Hx(t,e){return t>=e[0]&&t<=e[1]}function Xx(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Yx(t,e){return t*(e[1]-e[0])+e[0]}u(jx,Ux=Px),jx.prototype.parse=function(t){return null==t?NaN:Y(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},jx.prototype.contain=function(t){return Hx(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},jx.prototype.normalize=function(t){return Xx(t=this._getTickNumber(this.parse(t)),this._extent)},jx.prototype.scale=function(t){return t=Math.round(Yx(t,this._extent)),this.getRawOrdinalNumber(t)},jx.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},jx.prototype.getMinorTicks=function(t){},jx.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},jx.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},jx.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},jx.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},jx.prototype.count=function(){return this._extent[1]-this._extent[0]+1},jx.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},jx.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},jx.prototype.getOrdinalMeta=function(){return this._ordinalMeta},jx.prototype.calcNiceTicks=function(){},jx.prototype.calcNiceExtent=function(){},jx.type="ordinal";var Ux,Zx=jx;function jx(t){var t=Ux.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return W(e=e||new Rx({}))&&(e=new Rx({categories:V(e,function(t){return O(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}Px.registerClass(Zx);var qx,Kx=wr,Jx=(u($x,qx=Px),$x.prototype.parse=function(t){return t},$x.prototype.contain=function(t){return Hx(t,this._extent)},$x.prototype.normalize=function(t){return Xx(t,this._extent)},$x.prototype.scale=function(t){return Yx(t,this._extent)},$x.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},$x.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])},$x.prototype.getInterval=function(){return this._interval},$x.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Gx(t)},$x.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:Kx(i[0]-e,o)}:{value:n[0]});for(var a=i[0];a<=i[1]&&(r.push({value:a}),(a=Kx(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:Kx(s+e,o)}:{value:n[1]})}return r},$x.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=Kx(a.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},$x.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=Mr(t.value)||0:"auto"===e&&(e=this._intervalPrecision),hd(Kx(t.value,e,!0)))},$x.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent,o=i[1]-i[0];
1isFinite(o)&&(o<0&&i.reverse(),o=Vx(i,t,e,n),this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent)},$x.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]=Kx(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=Kx(Math.ceil(e[1]/n)*n))},$x.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},$x.type="interval",$x);function $x(){var t=null!==qx&&qx.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}Px.registerClass(Jx);var Qx="undefined"!=typeof Float32Array,t1=Qx?Float32Array:Array;function e1(t){return W(t)?Qx?new Float32Array(t):t:new t1(t)}var n1="__ec_stack_";function i1(t){return t.get("stack")||n1+t.seriesIndex}function o1(t){return t.dim+t.index}function r1(t,e){var n=[];return e.eachSeriesByType(t,function(t){h1(t)&&n.push(t)}),n}function a1(t){var l=function(t){var e,l={},n=(X(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 X(t,function(t){var e,n=t.coordinateSystem.getBaseAxis(),i=n.getExtent(),o=(e="category"===n.type?n.getBandWidth():"value"===n.type||"time"===n.type?(e=n.dim+"_"+n.index,e=l[e],o=Math.abs(i[1]-i[0]),r=n.scale.getExtent(),r=Math.abs(r[1]-r[0]),e?o/r*e:o):(r=t.getData(),Math.abs(i[1]-i[0])/r.count()),q(t.get("barWidth"),e)),i=q(t.get("barMaxWidth"),e),r=q(t.get("barMinWidth")||(c1(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:o1(n),stackId:i1(t)})}),s1(u)}function s1(t){var a={},d=(X(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 X(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)+"%"),q(o,i)),a=q(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-r)/(l+(l-1)*a),u=Math.max(u,0);X(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=(X(e,function(t,e){t.width||(t.width=u),c+=(h=t).width*(1+a)}),h&&(c-=h.width*a),-c/2);X(e,function(t,e){d[n][e]=d[n][e]||{bandWidth:i,offset:p,width:t.width},p+=t.width*(1+a)})}),d}function l1(t,e){var t=r1(t,e),o=a1(t);X(t,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),t=i1(t),n=o[o1(n)][t],t=n.offset,i=n.width;e.setLayout({bandWidth:n.bandWidth,offset:t,size:i})})}function u1(t){return{seriesType:t,plan:Yy(),reset:function(t){var e,_,n,b,w,S,i,o,M,I,T,C,A,D,k,L;if(h1(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=Dx(e,i)&&!!e.getCalculationInfo("stackedOnSeries"),I=n.isHorizontal(),T=n.toGlobalCoord(n.dataToCoord("log"===n.type?1:0)),C=c1(t),A=t.get("barMinHeight")||0,D=o&&e.getDimensionIndex(o),k=e.getLayout("size"),L=e.getLayout("offset"),{progress:function(t,e){for(var n,i=t.count,o=C&&e1(3*i),r=C&&S&&e1(3*i),a=C&&e1(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?D:b,n),d=u.get(w,n),f=T,g=void 0,y=(M&&(g=+p-u.get(b,n)),void 0),m=void 0,v=void 0,x=void 0;I?(c=_.dataToPoint([p,d]),y=f=M?_.dataToPoint([g,d])[0]:f,m=c[1]+L,v=c[0]-f,x=k,Math.abs(v)<A&&(v=(v<0?-1:1)*A)):(c=_.dataToPoint([d,p]),M&&(f=_.dataToPoint([d,g])[1]),y=c[0]+L,m=f,v=k,x=c[1]-f,Math.abs(x)<A&&(x=(x<=0?-1:1)*A)),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}
1C&&e.setLayout({largePoints:o,largeDataIndices:a,largeBackgroundPoints:r,valueAxisHorizontal:I})}}}}}function h1(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function c1(t){return t.pipelineContext&&t.pipelineContext.large}u(g1,p1=Jx),g1.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return jp(t.value,Hp[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Zp(this._minLevelUnit))]||Hp.second,e,this.getSetting("locale"))},g1.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale"),r=null;if(Y(n))r=n;else if(A(n))r=n(t.value,e,{level:t.level});else{var a=H({},Gp);if(0<t.level)for(var s=0;s<Xp.length;++s)a[Xp[s]]="{primary|"+a[Xp[s]]+"}";var l=n?!1===n.inherit?n:B(n,a):a,u=qp(t.value,i);if(l[u])r=l[u];else if(l.inherit){for(s=Yp.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 jp(new Date(t.value),r,i,o)},g1.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=Yp,n=0;function i(t,e,n){var i,o,r=[],a=!e.length;if(!function(t,e,n,i){function o(t){return Kp(c,t,i)===Kp(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")}}(Zp(t),M[0],M[1],S)){a&&(e=[{value:function(t,e,n){var i=new Date(t);switch(Zp(e)){case"year":case"month":i[od(n)](0);case"day":i[rd(n)](1);case"hour":i[ad(n)](0);case"minute":i[sd(n)](0);case"second":i[ld(n)](0),i[ud(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/Fp/365)),c=Jp(S),p=S?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":o=w,h=6<(o/=30*Fp)?6:3<o?3:2<o?2:1,c=$p(S),p=od(S);break;case"week":case"half-week":case"day":o=w,h=16<(o/=Fp)?16:7.5<o?7:3.5<o?4:1.5<o?2:1,c=Qp(S),p=rd(S);break;case"half-day":case"quarter-day":case"hour":i=w,h=12<(i/=Vp)?12:6<i?6:3.5<i?4:2<i?2:1,c=td(S),p=ad(S);break;case"minute":h=y1(w,!0),c=ed(S),p=sd(S);break;case"second":h=y1(w,!1),c=nd(S),p=ld(S);break;case"millisecond":h=Rr(w,!0),c=id(S),p=ud(S)}b=_=x=v=m=y=g=f=d=void 0;for(var d=h,f=l,g=u,y=c,m=p,v=r,x=new Date(f),_=f,b=x[y]();_<g&&_<=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=Zp(e[l]);if(function(t){return t===Zp(t)}(e[l])&&(i(e[l],o[o.length-1]||[],r),u!==(e[l+1]?Zp(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(V(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}),f=[],g=d.length-1;for(l=0;l<d.length;++l)for(var y=d[l],m=0;m<y.length;++m)f.push({value:y[m].value,level:g-l});f.sort(function(t,e){return t.value-e.value});var v=[];for(l=0;l<f.length;++l)0!==l&&f[l].value===f[l-1].value||v.push(f[l]);return v}(this._minLevelUnit,this._approxInterval,t,e),(n=n.concat(t)).push({value:e[1],level:0})),n},g1.prototype.calcNiceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=Fp,n[1]+=Fp),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]-Fp),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},g1.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),f1.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}(f1,this._approxInterval,0,i),i-1);this._interval=f1[t][1],this._minLevelUnit=f1[Math.max(t-1,0)][0]},g1.prototype.parse=function(t){return U(t)?t:+Pr(t)},g1.prototype.contain=function(t){return Hx(this.parse(t),this._extent)},g1.prototype.normalize=function(t){return Xx(this.parse(t),this._extent)},g1.prototype.scale=function(t){return Yx(t,this._extent)},g1.type="time";var p1,d1=g1,f1=[["second",zp],["minute",Bp],["hour",Vp],["quarter-day",6*Vp],["half-day",12*Vp],["day",1.2*Fp],["half-week",3.5*Fp],["week",7*Fp],["month",31*Fp],["quarter",95*Fp],["half-year",xa/2],["year",xa]];function g1(t){t=p1.call(this,t)||this;return t.type="time",t}function y1(t,e){return 30<(t/=e?Bp:zp)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}Px.registerClass(d1);var m1,v1=Px.prototype,x1=Jx.prototype,_1=wr,b1=Math.floor,w1=Math.ceil,S1=Math.pow,M1=Math.log,I1=(u(T1,m1=Px),T1.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return V(x1.getTicks.call(this,t),function(t){var t=t.value,e=wr(S1(this.base,t)),e=t===n[0]&&this._fixMin?C1(e,i[0]):e;return{value:t===n[1]&&this._fixMax?C1(e,i[1]):e}},this)},T1.prototype.setExtent=function(t,e){var n=M1(this.base);t=M1(Math.max(0,t))/n,e=M1(Math.max(0,e))/n,x1.setExtent.call(this,t,e)},T1.prototype.getExtent=function(){var t=this.base,e=v1.getExtent.call(this),t=(e[0]=S1(t,e[0]),e[1]=S1(t,e[1]),this._originalScale.getExtent());return this._fixMin&&(e[0]=C1(e[0],t[0])),this._fixMax&&(e[1]=C1(e[1],t[1])),e},T1.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=M1(t[0])/M1(e),t[1]=M1(t[1])/M1(e),v1.unionExtent.call(this,t)},T1.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},T1.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(w1(e[0]/i)*i),wr(b1(e[1]/i)*i)];this._interval=i,this._niceExtent=t}},T1.prototype.calcNiceExtent=function(t){x1.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},T1.prototype.parse=function(t){return t},T1.prototype.contain=function(t){return Hx(t=M1(t)/M1(this.base),this._extent)},T1.prototype.normalize=function(t){return Xx(t=M1(t)/M1(this.base),this._extent)},T1.prototype.scale=function(t){return t=Yx(t,this._extent),S1(this.base,t)},T1.type="log",T1),Hm=I1.prototype;function T1(){var t=null!==m1&&m1.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new Jx,t._interval=0,t}function C1(t,e){return _1(t,Mr(e))}Hm.getMinorTicks=x1.getMinorTicks,Hm.getLabel=x1.getLabel,Px.registerClass(I1);D1.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=(A(o)?this._modelMinNum=O1(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=O1(t,o)),this._modelMaxRaw=e.get("max",!0));A(o)?this._modelMaxNum=O1(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=O1(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=[$o(t[0],1),$o(t[1],1)]},D1.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]
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}},D1.prototype.modifyDataMinMax=function(t,e){this[L1[t]]=e},D1.prototype.setDeterminedMinMax=function(t,e){this[k1[t]]=e},D1.prototype.freeze=function(){this.frozen=!0};var A1=D1;function D1(t,e,n){this._prepareParams(t,e,n)}var k1={min:"_determinedMin",max:"_determinedMax"},L1={min:"_dataMin",max:"_dataMax"};function P1(t,e,n){return t.rawExtentInfo||(e=new A1(t,e,n),t.rawExtentInfo=e)}function O1(t,e){return null==e?null:bt(e)?NaN:t.parse(e)}function N1(t,e){var n,i,o,r,a,s,l=t.type,u=P1(t,e,t.getExtent()).calculate(),t=(t.setBlank(u.isBlank),u.min),h=u.max,c=e.ecModel;return c&&"time"===l&&(l=r1("bar",c),n=!1,X(l,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(c=a1(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[o1(e)])&&null!=n?t[i1(n)]:t}(c,o.axis))?{min:l,max:i}:(r=1/0,X(c,function(t){r=Math.min(t.offset,r)}),a=-1/0,X(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 R1(t,e){var n=N1(t,e),i=n.extent,o=e.get("splitNumber"),r=(t instanceof I1&&(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 E1(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Zx({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new d1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Px.getClass(e)||Jx)}}function z1(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:"")}):A(t)?(i=t,function(t,e){return null!=r&&(e=t.value-r),i(B1(n,t),e,null!=t.level?{level:t.level}:null)}):function(t){return n.scale.getLabel(t)}}function B1(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function V1(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 Zx?r.count():(a=r.getTicks()).length,h=t.getLabelModel(),c=z1(t),p=1;40<u&&(p=Math.ceil(u/40));for(var d=0;d<u;d+=p){var f=c(a?a[d]:{value:l[0]+d},d),g=(f=h.getTextRect(f),e=h.get("rotate")||0,n=i=g=n=void 0,e=e*Math.PI/180,n=f.width,g=f.height,i=n*Math.abs(Math.cos(e))+Math.abs(g*Math.sin(e)),n=n*Math.abs(Math.sin(e))+Math.abs(g*Math.cos(e)),new z(f.x,f.y,i,n));s?s.union(g):s=g}return s}}function F1(t){t=t.get("interval");return null==t?"auto":t}function G1(t){return"category"===t.type&&0===F1(t.getLabelModel())}function W1(e,t){var n={};return X(e.mapDimensionsAll(t),function(t){n[kx(e,t)]=!0}),G(n)}X1.prototype.getNeedCrossZero=function(){return!this.option.scale},X1.prototype.getCoordSysModel=function(){};var H1=X1;function X1(){}var Zm=Object.freeze({__proto__:null,createDimensions:function(t,e){return Mx(t,e).dimensions},createList:function(t){return Lx(null,t)},createScale:function(t,e){var n=e;return(e=E1(n=e instanceof Ip?n:new Ip(e))).setExtent(t[0],t[1]),R1(e,n),e},createSymbol:Qm,createTextStyle:function(t,e){return np(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:Dx,enableDataStack:Ax,getStackedDimension:kx},enableHoverEmphasis:_u,getECData:$,getLayoutRect:Id,mixinAxisModelCommonMethods:function(t){ut(t,H1)}}),Y1=[],U1={registerPreprocessor:Ov,registerProcessor:Nv,registerPostInit:Rv,registerPostUpdate:Ev,registerUpdateLifecycle:zv,registerAction:Bv,registerCoordinateSystem:Vv,registerLayout:Fv,registerVisual:Gv,registerTransform:Uv,registerLoading:Xv,registerMap:Yv,registerImpl:function(t,e){O0[t]=e},PRIORITY:Um,ComponentModel:f,ComponentView:Hy,SeriesModel:Ny,ChartView:jy,registerComponentModel:function(t){f.registerClass(t)},registerComponentView:function(t){Hy.registerClass(t)},registerSeriesModel:function(t){Ny.registerClass(t)},registerChartView:function(t){jy.registerClass(t)},registerSubTypeDefaulter:function(t,e){f.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){vr(t,e)}};function r(t){W(t)?X(t,function(t){r(t)}):0<=F(Y1,t)||(Y1.push(t),(t=A(t)?{install:t}:t).install(U1))}var Z1=1e-8;function j1(t,e){return Math.abs(t-e)<Z1}function q1(t,e,n){var i=0,o=t[0];if(o){for(var r=1;r<t.length;r++){var a=t[r];i+=Rs(o[0],o[1],a[0],a[1],e,n),o=a}var s=t[0];
1return j1(o[0],s[0])&&j1(o[1],s[1])||(i+=Rs(o[0],o[1],s[0],s[1],e,n)),0!==i}}var K1=[];function J1(t,e){for(var n=0;n<t.length;n++)oe(t[n],t[n],e)}function $1(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))}}Q1.prototype.setCenter=function(t){this._center=t},Q1.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())};jm=Q1;function Q1(t){this.name=t}function t_(t,e){this.type="polygon",this.exterior=t,this.interiors=e}function e_(t){this.type="linestring",this.points=t}u(o_,n_=jm),o_.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],f=0;f<c;f++){var g=s[f][0],y=s[f][1],m=p*y-g*d;l+=m,u+=(p+g)*m,h+=(d+y)*m,p=g,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]},o_.prototype.getBoundingRect=function(e){var n,i,t=this._rect;return t&&!e||(n=[1/0,1/0],i=[-1/0,-1/0],X(this.geometries,function(t){"polygon"===t.type?$1(t.exterior,n,i,e):X(t.points,function(t){$1(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},o_.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(q1(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(q1(s[l],t[0],t[1]))continue t;return!0}}}return!1},o_.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?(J1(u.exterior,a),X(u.interiors,function(t){J1(t,a)})):X(u.points,function(t){J1(t,a)})}(o=this._rect).copy(r),this._center=[o.x+o.width/2,o.y+o.height/2]},o_.prototype.cloneShallow=function(t){t=new o_(t=null==t?this.name:t,this.geometries,this._center);return t._rect=this._rect,t.transformTo=null,t};var n_,i_=o_;function o_(t,e,n){t=n_.call(this,t)||this;return t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}u(s_,r_=jm),s_.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=Be(K1),i=t;i&&!i.isGeoSVGGraphicRoot;)Fe(n,i.getLocalTransform(),n),i=i.parent;return Xe(n,n),oe(e,e,n),e};var r_,a_=s_;function s_(t,e){t=r_.call(this,t)||this;return t.type="geoSVG",t._elOnlyForCalculate=e,t}function l_(t,e,n){for(var i=0;i<t.length;i++)t[i]=u_(t[i],e[i],n)}function u_(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 h_(t,r){return V(pt((t=(e=t).UTF8Encoding?(null==(o=(n=e).UTF8Scale)&&(o=1024),X(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=u_(i,n,o);break;case"Polygon":case"MultiLineString":l_(i,n,o);break;case"MultiPolygon":X(i,function(t,e){return l_(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 t_(o[0],o.slice(1)));break;case"MultiPolygon":X(n.coordinates,function(t){t[0]&&i.push(new t_(t[0],t.slice(1)))});break;case"LineString":i.push(new e_([n.coordinates]));break;case"MultiLineString":i.push(new e_(n.coordinates))}t=new i_(e[r||"name"],i,e.cp);return t.properties=e,t});var e,n,o}var Ia=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:Ar,asc:Sr,getPercentWithPrecision:function(t,e,n){return t[e]&&Cr(t,n)[e]||0},getPixelPrecision:Tr,getPrecision:Mr,getPrecisionSafe:Ir,isNumeric:Vr,isRadianAroundZero:kr,linearMap:br,nice:Rr,numericToNumber:Br,parseDate:Pr,quantile:Er,quantity:Or,quantityExponent:Nr,reformIntervals:zr,remRadian:Dr,round:wr}),zc=Object.freeze({__proto__:null,format:jp,parse:Pr}),Wp=Object.freeze({__proto__:null,Arc:Zh,BezierCurve:Hh,BoundingRect:z,Circle:$u,CompoundPath:Kh,Ellipse:nh,Group:j,Image:nl,IncrementalDis
1playable:e,Line:zh,LinearGradient:tc,Polygon:Ah,Polyline:Ph,RadialGradient:ic,Rect:cl,Ring:Sh,Sector:xh,Text:J,clipPointsByRect:Hc,clipRectByRect:Xc,createIcon:Yc,extendPath:Ac,extendShape:Tc,getShapeClass:kc,getTransform:Bc,initProps:mc,makeImage:Pc,makePath:Lc,mergePath:Nc,registerShape:Dc,resizePath:Rc,updateProps:C}),vp=Object.freeze({__proto__:null,addCommas:hd,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",Up(o,2)).replace("M",o).replace("yyyy",i).replace("yy",Up(i%100+"",2)).replace("dd",Up(r,2)).replace("d",r).replace("hh",Up(a,2)).replace("h",a).replace("mm",Up(s,2)).replace("m",s).replace("ss",Up(l,2)).replace("s",l).replace("SSS",Up(e,3))},formatTpl:yd,getTextRect:function(t,e,n,i,o,r,a,s){return new J({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:md,normalizeCssArray:pd,toCamelCase:cd,truncateText:Pa}),Rm=Object.freeze({__proto__:null,bind:T,clone:x,curry:P,defaults:B,each:X,extend:H,filter:pt,indexOf:F,inherits:lt,isArray:W,isFunction:A,isObject:O,isString:Y,map:V,merge:d,reduce:ct}),c_=i();function p_(t){return"category"===t.type?(o=(e=t).getLabelModel(),r=f_(e,o),!o.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r):(o=(n=t).scale.getTicks(),i=z1(n),{labels:V(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 d_(t,e){var n,i,o,r,a,s;return"category"===t.type?(e=e,r=g_(n=t,"ticks"),a=F1(e),(s=y_(r,a))||(e.get("show")&&!n.scale.isBlank()||(i=[]),i=A(a)?x_(n,a,!0):"auto"===a?(s=f_(n,n.getLabelModel()),o=s.labelCategoryInterval,V(s.labels,function(t){return t.tickValue})):v_(n,o=a,!0),m_(r,a,{ticks:i,tickCategoryInterval:o}))):{ticks:V(t.scale.getTicks(),function(t){return t.value})}}function f_(t,e){var n,i=g_(t,"labels"),e=F1(e);return y_(i,e)||m_(i,e,{labels:A(e)?x_(t,e):v_(t,n="auto"===e?null!=(t=c_(i=t).autoInterval)?t:c_(i).autoInterval=i.calculateCategoryInterval():e),labelCategoryInterval:n})}function g_(t,e){return c_(t)[e]||(c_(t)[e]=[])}function y_(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function m_(t,e,n){return t.push({key:e,value:n}),n}function v_(t,e,n){var i=z1(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)),G1(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 x_(t,i,o){var r=t.scale,a=z1(t),s=[];return X(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 __=[0,1],_p=(b_.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},b_.prototype.containData=function(t){return this.scale.contain(t)},b_.prototype.getExtent=function(){return this._extent.slice()},b_.prototype.getPixelPrecision=function(t){return Tr(t||this.scale.getExtent(),this._extent)},b_.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},b_.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&w_(n=n.slice(),i.count()),br(t,__,n,e)},b_.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&w_(n=n.slice(),i.count()),br(t,n,__,e));return this.scale.scale(i)},b_.prototype.pointToData=function(t,e){},b_.prototype.getTicksCoords=function(t){var e,n,i,o,r=(t=t||{}).tickModel||this.getTickModel(),a=V(d_(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]={co
1ord:r[1]}):(n=l[u-1].tickValue-l[0].tickValue,i=(l[u-1].coord-l[0].coord)/n,X(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},b_.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),V(this.scale.getMinorTicks(t=0<t&&t<100?t:5),function(t){return V(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this))},b_.prototype.getViewLabels=function(){return p_(this).labels},b_.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},b_.prototype.getTickModel=function(){return this.model.getModel("axisTick")},b_.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},b_.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=z1(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=c_(d.model),l=d.getExtent(),d=n.lastAutoInterval,f=n.lastTickCount;return null!=d&&null!=f&&Math.abs(d-s)<=1&&Math.abs(f-o)<=1&&s<d&&n.axisExtent0===l[0]&&n.axisExtent1===l[1]?s=d:(n.lastTickCount=o,n.lastAutoInterval=s,n.axisExtent0=l[0],n.axisExtent1=l[1]),s},b_);function b_(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function w_(t,e){e=(t[1]-t[0])/e/2;t[0]+=e,t[1]-=e}var S_=2*Math.PI,M_=As.CMD,I_=["top","right","bottom","left"];function T_(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 C_(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 A_=[];function D_(t,e,n){for(var i,o,r,a,s,l,u,h,c,p=0,d=0,f=0,g=0,y=1/0,m=e.data,v=t.x,x=t.y,_=0;_<m.length;){var b=m[_++],w=(1===_&&(f=p=m[_],g=d=m[_+1]),y);switch(b){case M_.M:p=f=m[_++],d=g=m[_++];break;case M_.L:w=T_(p,d,m[_],m[_+1],v,x,A_,!0),p=m[_++],d=m[_++];break;case M_.C:w=qn(p,d,m[_++],m[_++],m[_++],m[_++],m[_],m[_+1],v,x,A_),p=m[_++],d=m[_++];break;case M_.Q:w=ti(p,d,m[_++],m[_++],m[_],m[_+1],v,x,A_),p=m[_++],d=m[_++];break;case M_.A:var S=m[_++],M=m[_++],I=m[_++],T=m[_++],C=m[_++],A=m[_++],D=(_+=1,!!(1-m[_++])),k=Math.cos(C)*I+S,L=Math.sin(C)*T+M;_<=1&&(f=k,g=L),L=(k=C)+A,D=D,a=(v-(i=S))*(r=T)/I+S,s=x,l=A_,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)%S_<1e-4||((L=D?(D=k,k=Os(L),Os(D)):(k=Os(k),Os(L)))<k&&(L+=S_),(D=Math.atan2(s,a))<0&&(D+=S_),k<=D&&D<=L)||k<=D+S_&&D+S_<=L?(l[0]=h,l[1]=c,u-r):(c=((D=r*Math.cos(k)+i)-a)*(D-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]=D,l[1]=h,Math.sqrt(c)):(l[0]=u,l[1]=k,Math.sqrt(i)),p=Math.cos(C+A)*I+S,d=Math.sin(C+A)*T+M;break;case M_.R:w=C_(f=p=m[_++],g=d=m[_++],m[_++],m[_++],v,x,A_);break;case M_.Z:w=T_(p,d,f,g,v,x,A_,!0),p=f,d=g}w<y&&(y=w,n.set(A_[0],A_[1]))}return y}var k_=new E,L_=new E,P_=new E,O_=new E,N_=new E;function R_(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||I_,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=o.anchor,h=t.getComputedTransform(),c=h&&Xe([],h),p=e.get("length2")||0;u&&P_.copy(u);for(var d=0;d<a.length;d++){_=x=v=m=y=g=f=void 0;var f=a[d],g=0,y=s,m=k_,v=O_,x=y.width,_=y.height;switch(f){case"top":m.set(y.x+x/2,y.y-g),v.set(0,-1);break;case"bottom":m.set(y.x+x/2,y.y+_+g),v.set(0,1);break;case"left":m.set(y.x-g,y.y+_/2),v.set(-1,0);break;case"right":m.set(y.x+x+g,y.y+_/2),v.set(1,0)}E.scaleAndAdd(L_,k_,O_,p),L_.transform(c);
1f=t.getBoundingRect(),f=u?u.distance(L_):t instanceof K?D_(L_,t.path,P_):(w=P_,b=C_((b=f).x,f.y,f.width,f.height,L_.x,L_.y,A_),w.set(A_[0],A_[1]),b);f<l&&(l=f,L_.transform(h),P_.transform(h),P_.toArray(r[0]),L_.toArray(r[1]),k_.toArray(r[2]))}B_(r,e.get("minTurnAngle")),n.setShape({points:r})}}var b,w}var E_=[],z_=new E;function B_(t,e){var n,i;e<=180&&0<e&&(e=e/180*Math.PI,k_.fromArray(t[0]),L_.fromArray(t[1]),P_.fromArray(t[2]),E.sub(O_,k_,L_),E.sub(N_,P_,L_),i=O_.len(),n=N_.len(),i<.001||n<.001||(O_.scale(1/i),N_.scale(1/n),i=O_.dot(N_),Math.cos(e)<i&&(n=T_(L_.x,L_.y,P_.x,P_.y,k_.x,k_.y,E_,!1),z_.fromArray(E_),z_.scaleAndAdd(N_,n/Math.tan(Math.PI-e)),i=P_.x!==L_.x?(z_.x-L_.x)/(P_.x-L_.x):(z_.y-L_.y)/(P_.y-L_.y),isNaN(i)||(i<0?E.copy(z_,L_):1<i&&E.copy(z_,P_),z_.toArray(t[1])))))}function V_(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 F_(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 G_(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<Bl.length;l++){var u,h=Bl[l],c=e[h],p="normal"===h;c&&(u=c.get("show"),(p?s:N(o.states[h]&&o.states[h].ignore,s))||!N(u,a)?(u=p?i:i&&i.states[h])&&(u.ignore=!0):(i||(i=new Ph,t.setTextGuideLine(i),p||!s&&a||V_(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),V_(i,!1,h,c)))}i&&(B(i.style,n),i.style.fill=null,n=r.get("showAbove"),(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=n||!1,i.buildPath=F_)}else i&&t.removeTextGuideLine()}function W_(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<zl.length;i++){var o=zl[i];n[o]=t.getModel([o,e])}return n}function H_(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 uc(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 X_(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],f=d.rect,d=((i=f[l]-o)<0&&(f[l]-=i,d.label[l]-=i,r=!0),Math.max(-i,0));a.push(d),c+=d,o=f[l]+f[u]}0<c&&n&&b(-c/h,0,h);var g,y,m=s[0],v=s[h-1];return x(),g<0&&w(-g,.8),y<0&&w(y,.8),x(),_(g,y,1),_(y,g,-1),x(),g<0&&S(-g),y<0&&S(y),r}function x(){g=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 Y_(t,e,n,i){return X_(t,"y","height",e,n,i)}function U_(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 f=e[d];if(n.intersect(f.rect)){if(a&&f.axisAligned){p=!0;break}if(f.obb||(f.obb=new uc(f.localRect,f.transform)),(c=c||new uc(s,l)).intersect(f.obb)){p=!0;break}}}p?(i(u),h&&i(h)):(u.attr("ignore",r.defaultAttr.ignore),h&&h.attr("ignore",r.defaultAttr.labelGuideIgnore),e.push(r))}}function Z_(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,K_=i(),J_=i();function $_(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null!=e[o]&&(t[o]=e[o])}}var Q_=["x","y","rotation"],tb=(eb.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},eb.prototype._addLabel=function(t,e,n,i,o){var r=i.style,a=i.__hostTarget.textConfig||{}
1,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}})},eb.prototype.addLabelsOfSeries=function(t){var n=this,i=(this._chartViewList.push(t),t.__model),o=i.get("labelLayout");(A(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)})},eb.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=(A(o.layoutOption)?o.layoutOption(Z_(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=q(l.x,e),r.setStyle("x",0),h=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=l.y?(r.y=q(l.y,n),r.setStyle("y",0),h=!0):(r.y=s.y,r.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),h=!1),K_(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(){R_(t,e)}}(a,c.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},eb.prototype.layout=function(t){var e,n=t.getWidth(),t=t.getHeight(),i=H_(this._labelList),o=pt(i,function(t){return"shiftX"===t.layoutOption.moveOverlap}),r=pt(i,function(t){return"shiftY"===t.layoutOption.moveOverlap});X_(o,"x","width",0,n,e),Y_(r,0,t),U_(pt(i,function(t){return t.layoutOption.hideOverlap}))},eb.prototype.processLabelsOverall=function(){var a=this;X(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?K_(n).needsUpdateLabelLine:e)&&a._updateLabelLine(t,i),r&&a._animateLabels(t,i)})})},eb.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"),G_(t,W_(e),i),R_(t,o))},eb.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||vc(t))||(o=(r=K_(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=N(s.style.opacity,1),s.style.opacity=0,mc(s,{style:{opacity:t}},e,n))),r.oldLayout=a,s.states.select&&($_(t=r.oldLayoutSelect={},a,Q_),$_(t,s.states.select,Q_)),s.states.emphasis&&($_(t=r.oldLayoutEmphasis={},a,Q_),$_(t,s.states.emphasis,Q_)),cp(s,n,i,e,e)),!l||l.ignore||l.invisible||(o=(r=J_(l)).oldLayout,a={points:l.shape.points},o?(l.attr({shape:o}),C(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,mc(l,{style:{strokePercent:1}},e)),r.oldLayout=a)},eb);function eb(){this._labelList=[],this._chartViewList=[]}var nb=i();function ib(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){(nb(e).labelManager||(nb(e).labelManager=new tb)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=nb(e).labelManager;
1n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function ob(t,e,n){var i=tt.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(ib);u(sb,rb=ce),sb.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},sb.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},sb.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},sb.prototype.setUnpainted=function(){this.__firstTimePaint=!0},sb.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=ob("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},sb.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])&&(f=p.shouldBePainted(n,i,!0,!0),(d=p.__isRendered&&(p.__dirty&Mn||!f)?p.getPrevPaintRect():null)&&r(d),a=f&&(p.__dirty&Mn||!p.__isRendered)?p.getPaintRect():null)&&r(a);for(s=this.__prevStartIndex;s<this.__prevEndIndex;++s){var p,d,f=(p=e[s]).shouldBePainted(n,i,!0,!0);!p||f&&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 g=s+1;g<l.length;)l[s].intersect(l[g])?(o=!0,l[s].union(l[g]),l.splice(g,1)):g++;s++}}while(o);return this._paintRects=l},sb.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},sb.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)},sb.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||i0(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=d0(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&&X(e,function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)})};var rb,ab=sb;function sb(t,e,n){var i,o=rb.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=ob(t,e,n):O(t)&&(t=(i=t).id),o.id=t,(o.dom=i).style);return t&&(Bt(i),i.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),o.painter=e,o.dpr=n,o}var lb=314159;hb.prototype.getType=function(){return"canvas"},hb.prototype.isSingleCanvas=function(){return this._singleCanvas},hb.prototype.getViewportRoot=function(){return this._domRoot},hb.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},hb.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},hb.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},hb.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(),T0(i,a,o,r===e-1))}
1i&&i.restore()}},hb.prototype.getHoverLayer=function(){return this.getLayer(1e5)},hb.prototype.paintOne=function(t,e){I0(t,e)},hb.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)})))},hb.prototype._compositeManually=function(){var e=this.getLayer(lb).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)})},hb.prototype._doPaintList=function(d,f,g){for(var y=this,m=[],v=this._opts.useDirtyRect,t=0;t<this._zlevelList.length;t++){var e=this._zlevelList[t],e=this._layers[e];e.__builtin__&&e!==this._hoverlayer&&(e.__dirty||g)&&m.push(e)}for(var 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,f,b._width,b._height),s=g?o.__startIndex:o.__drawIndex,l=!g&&o.incremental&&Date.now,u=l&&Date.now(),t=o.zlevel===b._zlevelList[0]?b._backgroundColor:null;o.__startIndex!==o.__endIndex&&(s!==o.__startIndex||(n=d[s]).incremental&&n.notClear&&!g)||o.clear(!1,t,a),-1===s&&(console.error("For some unknown reason. drawIndex is -1"),s=o.__startIndex);if(a)if(0===a.length)i=o.__endIndex;else for(var h=b.dpr,c=0;c<a.length;++c){var p=a[c];r.save(),r.beginPath(),r.rect(p.x*h,p.y*h,p.width*h,p.height*h),r.clip(),e(p),r.restore()}else r.save(),e(),r.restore();o.__drawIndex=i,o.__drawIndex<o.__endIndex&&(x=!1)}(n);return w.wxa&&X(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:x,needsRefreshHover:_}},hb.prototype._doPaintEl=function(t,e,n,i,o,r){e=e.ctx;n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(T0(e,t,o,r),t.setPrevPaintRect(n))):T0(e,t,o,r)},hb.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=lb);var n=this._layers[t];return n||((n=new ab("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},hb.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}},hb.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)}},hb.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)}},hb.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)}},hb.prototype.getLayers=function(){return this._layers},hb.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)}
1e(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)})},hb.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},hb.prototype._clearLayer=function(t){t.clear()},hb.prototype.setBackgroundColor=function(t){this._backgroundColor=t,X(this._layers,function(t){t.setUnpainted()})},hb.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)}}},hb.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))},hb.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=r0(o,0,i),e=r0(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(lb).resize(t,e)}return this},hb.prototype.clearLayer=function(t){t=this._layers[t];t&&t.clear()},hb.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},hb.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[lb].dom;var e=new ab("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];T0(n,u,r,s===l-1)}return e.dom},hb.prototype.getWidth=function(){return this._width},hb.prototype.getHeight=function(){return this._height};var ub=hb;function hb(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&&(Bt(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 ab(a,this,this.dpr)).__builtin__=!0,o.initContext(),(s[lb]=o).zlevel=lb,e.push(lb),this._domRoot=t):(this._width=r0(t,0,n),this._height=r0(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(db,cb=f),db.prototype.init=function(t,e,n){cb.prototype.init.call(this,t,e,n),this._sourceManager=new uy(this),cy(this)},db.prototype.mergeOption=function(t,e){cb.prototype.mergeOption.call(this,t,e),cy(this)},db.prototype.optionUpdated=function(){this._sourceManager.dirty()},db.prototype.getSourceManager=function(){return this._sourceManager},db.type="dataset",db.defaultOption={seriesLayoutBy:Ud};var cb,pb=db;function db(){var t=null!==cb&&cb.apply(this,arguments)||this;return t.type="dataset",t}u(yb,fb=Hy),yb.type="dataset";var fb,gb=yb;function yb(){var t=null!==fb&&fb.apply(this,arguments)||this;return t.type="dataset",t}function mb(t){t.registerComponentModel(pb),t.registerComponentView(gb)}r([function(t){t.registerPainter("canvas",ub)},mb]),r(ib);var vb={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]}},xb=function(t){return Math.round(t.length/2)};function _b(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"
1===r&&t.setData(o.lttbDownSample(o.mapDimension(a.dim),1/n)),s=void 0,Y(r)?s=vb[r]:A(r)&&(s=r),s)&&t.setData(o.downSample(o.mapDimension(a.dim),1/n,s,xb))}}}u(wb,bb=Ny),wb.prototype.getInitialData=function(t,e){return Lx(null,this,{useEncodeDefaulter:!0})},wb.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?X(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]},wb.type="series.__base_bar__",wb.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"};var bb,yp=wb;function wb(){var t=null!==bb&&bb.apply(this,arguments)||this;return t.type=wb.type,t}Ny.registerClass(yp);u(Ib,Sb=yp),Ib.prototype.getInitialData=function(){return Lx(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},Ib.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},Ib.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return t=t<e?e:t},Ib.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},Ib.type="series.bar",Ib.dependencies=["grid","polar"],Ib.defaultOption=Dp(yp.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 Sb,Mb=Ib;function Ib(){var t=null!==Sb&&Sb.apply(this,arguments)||this;return t.type=Ib.type,t}function Tb(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 cl({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=A(o)?function(t){o(t,h)}:null,mc(h,{shape:{width:l,height:r,x:a,y:s}},n,null,i,u)),h}function Cb(t,e,n){var i=t.getArea(),o=wr(i.r0,1),r=wr(i.r,1),a=new xh({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,mc(a,{shape:{endAngle:i.endAngle,r:r}},n)),a}function Ab(t,e,n,i,o){return t?"polar"===t.type?Cb(t,e,n):"cartesian2d"===t.type?Tb(t,e,n,i,o):null:null}function Db(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}u(Pb,kb=K),Pb.prototype.getDefaultShape=function(){return new Db},Pb.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r0||0,0),r=Math.max(e.r,0),a=.5*(r-o),s=o+a,l=e.startAngle,u=e.endAngle,e=e.clockwise,h=2*Math.PI,c=e?u-l<h:l-u<h,h=(c||(l=u-(e?h:-h)),Math.cos(l)),p=Math.sin(l),d=Math.cos(u),f=Math.sin(u);c?(t.moveTo(h*o+n,p*o+i),t.arc(h*s+n,p*s+i,a,-Math.PI+l,l,!e)):t.moveTo(h*r+n,p*r+i),t.arc(n,i,r,l,u,!e),t.arc(d*s+n,f*s+i,a,u-2*Math.PI,u-Math.PI,!e),0!==o&&t.arc(n,i,o,u,l,e)};var kb,Lb=Pb;function Pb(t){t=kb.call(this,t)||this;return t.type="sausage",t}function Ob(t,e){return t.type===e}function Nb(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),o=i.length;if(1===o)return null!=(n=vg(t,e,i[0]))?n+"":null;if(o){for(var r=[],a=0;a<i.length;a++)r.push(vg(t,e,i[a]));return r.join(" ")}}function Rb(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 Eb(t,e,n){return e*Math.sin(t)*(n?-1:1)}function zb(t,e,n){return e*Math.cos(t)*(n?1:-1)}function Bb(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:V(t,function(t){return $o(t,i)})}}var Vb=Math.max,Fb=Math.min;u(Yb,Gb=jy),Yb.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))},Yb.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},Yb.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},Yb.prototype.eachRendered=function(t){qc(this._progressiveEls||this.group,t)},Yb.prototype._updateDrawMode=function(t){t=t.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},Yb.prototype._renderNormal=function(a,t,e,n){var s,i,o,l=this.group,u=a.getData(),h=this._data,c=a.coordinateSystem,p=c.getBaseAxis(),d=("cartesian2d"===c.type?s=p.isHorizontal():"polar"===c.type&&(s="angle"===p.dim),a.isAnimationEnabled()?a:null),f=function(t,e){var t=t.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&"category"===n.type&&"cartesian2d"===e.type)return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}(a,c),g=(f&&this._enableRealtimeSort(f,u,e),a.get("clip",!0)||f),y=(e=u,o=(i=c).getArea&&i.getArea(),!Ob(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("showBackgroun
1d",!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=Jb[c.type](u,t),n=(n=s,new("polar"===c.type?xh:cl)({shape:aw(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=Jb[c.type](u,t,i);v&&I(t),u.hasValue(t)&&Kb[c.type](o)&&(e=!1,g&&(e=Hb[c.type](y,o)),n=Xb[c.type](a,u,t,o,s,d,p.model,!1,m),f&&(n.forceLabelAnimation=!0),Qb(n,u,t,i,o,a,s,"polar"===c.type),S?n.attr({shape:o}):f?Ub(f,d,n,o,t,s,!1,!1):mc(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=Jb[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=Jb[c.type](u,t),C(r,{shape:aw(s,n,c)},d,t)),h.getItemGraphicEl(e));u.hasValue(t)&&Kb[c.type](o)?(n=!1,g&&(n=Hb[c.type](y,o))&&l.remove(r),r?wc(r):r=Xb[c.type](a,u,t,o,s,d,p.model,!!r,m),f&&(r.forceLabelAnimation=!0),M?(e=r.getTextContent())&&null!=(e=up(e)).prevValue&&(e.prevValue=e.value):Qb(r,u,t,i,o,a,s,"polar"===c.type),S?r.attr({shape:o}):f?Ub(f,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&&bc(e,a,t)}).execute();var r=this._backgroundGroup||(this._backgroundGroup=new j);r.removeAll();for(var T=0;T<b.length;++T)r.add(b[T]);l.add(r),this._backgroundEls=b,this._data=u},Yb.prototype._renderLarge=function(t,e,n){this._clear(),ow(t,this.group),this._updateLargeClip(t)},Yb.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),ow(e,this.group,this._progressiveEls,!0)},Yb.prototype._updateLargeClip=function(t){var t=t.get("clip",!0)&&Ab(t.coordinateSystem,!1,t),e=this.group;t?e.setClipPath(t):e.removeClipPath()},Yb.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)))},Yb.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:V(o,function(t){return t.ordinalNumber})}},Yb.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},Yb.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},Yb.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}))},Yb.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})},Yb.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},Yb.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},Yb.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},Yb.prototype._clear=function(e){var t=this.group,n=this._data;
1e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){bc(t,e,$(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},Yb.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},Yb.type="bar";var Gb,Wb=Yb,Hb={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=Vb(e.x,t.x),s=Fb(e.x+e.width,o),t=Vb(e.y,t.y),l=Fb(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),Fb(e.r,t.r)),t=Vb(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}},Xb={cartesian2d:function(t,e,n,i,o,r,a,s,l){i=new cl({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?Lb:xh,u=new l({shape:i,z2:1}),h=(u.name="item",$b(o));return u.calculateTextPosition=(b=h,w=({isRoundCap:l===Lb}||{}).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,f=w?Math.abs(l-u)/2:0,g=Math.cos,y=Math.sin,m=a+l*g(c),v=s+l*y(c),x="left",_="top";switch(i){case"startArc":m=a+(u-o)*g(d),v=s+(u-o)*y(d),x="center",_="top";break;case"insideStartArc":m=a+(u+o)*g(d),v=s+(u+o)*y(d),x="center",_="bottom";break;case"startAngle":m=a+h*g(c)+Eb(c,o+f,!1),v=s+h*y(c)+zb(c,o+f,!1),x="right",_="middle";break;case"insideStartAngle":m=a+h*g(c)+Eb(c,f-o,!1),v=s+h*y(c)+zb(c,f-o,!1),x="left",_="middle";break;case"middle":m=a+h*g(d),v=s+h*y(d),x="center",_="middle";break;case"endArc":m=a+(l+o)*g(d),v=s+(l+o)*y(d),x="center",_="bottom";break;case"insideEndArc":m=a+(l-o)*g(d),v=s+(l-o)*y(d),x="center",_="top";break;case"endAngle":m=a+h*g(p)+Eb(p,o+f,!0),v=s+h*y(p)+zb(p,o+f,!0),x="left",_="middle";break;case"insideEndAngle":m=a+h*g(p)+Eb(p,f-o,!0),v=s+h*y(p)+zb(p,f-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:mc)(u,{shape:h},r)),u}};function Yb(){var t=Gb.call(this)||this;return t.type=Yb.type,t._isFirstFrame=!0,t}function Ub(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:mc)(n,{shape:r},e,o,null),(a?C:mc)(n,{shape:l},e?t.baseAxis.model:null,o)}function Zb(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"],Kb={cartesian2d:function(t){return!Zb(t,jb)},polar:function(t){return!Zb(t,qb)}},Jb={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 $b(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 Qb(t,e,n,i,o,r,a,s){var l=e.getItemVisual(n,"style"),u=(s?r.get("roundCap")||(H(u=t.shape,Bb(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:Nb(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(U(i))t.setTextConfig({rotation:i});
1else 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,$b(a),i.get(["label","rotate"]))),hp(l,h,r.getRawValue(n),function(t){return Rb(e,t)}),i.getModel(["emphasis"]));bu(t,u.get("focus"),u.get("blurScope"),u.get("disabled")),Iu(t,i),null!=(s=o).startAngle&&null!=s.endAngle&&s.startAngle===s.endAngle&&(t.style.fill="none",t.style.stroke="none",X(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}function tw(){}u(iw,ew=K),iw.prototype.getDefaultShape=function(){return new tw},iw.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 ew,nw=iw;function iw(t){t=ew.call(this,t)||this;return t.type="largeBar",t}function ow(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 nw({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 nw({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",rw),l.on("mousemove",rw)),n&&n.push(l)}var rw=om(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 aw(t,e,n){var i,o;return Ob(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(Wb),t.registerSeriesModel(Mb),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,P(l1,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,u1("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,_b("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(uw,sw=Ny),uw.prototype.getInitialData=function(t){return Lx(null,this,{useEncodeDefaulter:!0})},uw.prototype.getLegendIcon=function(t){var e=new j,n=Qm("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=Qm(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},uw.type="series.line",uw.dependencies=["grid","polar"],uw.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 sw,lw=uw;function uw(){var t=null!==sw&&sw.apply(this,arguments)||this;return t.type=uw.type,t.hasSymbolVisual=!0,t}u(pw,hw=j),pw.prototype._createSymbol=function(t,e,n,i,o){this.removeAll();o=Qm(t,-1,-1,2,2,null,o);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=dw,this._symbolType=t,this.add(o)},pw.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},pw.prototype.getSymbolType=function(){return this._symbolType},pw.prototype.getSymbolPath=function(){return this.childAt(0)},pw.prototype.highlight=function(){lu(this.childAt(0))},pw.prototype.downplay=function(){uu(this.childAt(0))},pw.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},pw.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},pw.prototype.updateData=function(t,e,n,i){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=pw.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),wc(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,mc(a,r,l,e))),c&&this.childAt(0).stopAnimation("leave")},pw.prototype._updateCommon=function(e,t,n,i,o){var r,a,s,l,u,h,c,p,d=this.childAt(0),f=e.hostModel,g=(i&&(r=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,y=i.cursorStyle,h=i.emphasisDisabled),i&&!e.hasItemOption||(r=(g=(i=i&&i.itemModel?i.itemModel:e.getItemModel(t)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=i.getModel(["select","itemStyle"]).getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=g.get("focus"),u=g.get("blurScope"),h=g.get("disabled"),c=ep(i),p=g.getShallow("scale"),y=i.getShallow("cursor")),e.getItemVisual(t,"symbolRotate")),i=(d.attr("rotation",(g||0)*Math.PI/180||0),e0(e.getItemVisual(t,"symbolOffset"),n)),g=(i&&(d.x=i[0],d.y=i[1]),y&&d.attr("cursor",y),e.getItemVisual(t,"style")),i=g.fill,y=(d instanceof nl?(y=d.style,d.useStyle(H({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},g))):(d.__isEmptyBrush?d.useStyle(H({}
1,g)):d.useStyle(g),d.style.decal=null,d.setColor(i,o&&o.symbolInnerColor),d.style.strokeNoScale=!0),e.getItemVisual(t,"liftZ")),m=this._z2,v=(null!=y?null==m&&(this._z2=d.z2,d.z2+=y):null!=m&&(d.z2=m,this._z2=null),o&&o.useNameLabel),y=(tp(d,c,{labelFetcher:f,labelDataIndex:t,defaultText:function(t){return v?e.getName(t):Nb(e,t)},inheritColor:i,defaultOpacity:g.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),bu(this,l,u,h)},pw.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},pw.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())&&xc(n,{style:{opacity:0}},e,{dataIndex:o,removeOpt:r,cb:function(){i.removeTextContent()}}):i.removeTextContent(),xc(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:o,cb:t,removeOpt:r})}
1,pw.getSymbolSize=function(t,e){return t0(t.getItemVisual(e,"symbolSize"))};var hw,cw=pw;function pw(t,e,n,i){var o=hw.call(this)||this;return o.updateData(t,e,n,i),o}function dw(t,e){this.parent.drift(t,e)}function fw(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 gw(t){return(t=null==t||O(t)?t:{isIgnore:t})||{}}function yw(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")}}vw.prototype.updateData=function(r,a){this._progressiveEls=null,a=gw(a);var s=this.group,l=r.hostModel,u=this._data,h=this._SymbolCtor,c=a.disableAnimation,p=yw(r),d={disableAnimation:c},f=a.getSymbolPoint||function(t){return r.getItemLayout(t)};u||s.removeAll(),r.diff(u).add(function(t){var e,n=f(t);fw(r,n,t,a)&&((e=new h(r,t,p,d)).setPosition(n),r.setItemGraphicEl(t,e),s.add(e))}).update(function(t,e){var n,i,e=u.getItemGraphicEl(e),o=f(t);fw(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=f,this._data=r},vw.prototype.updateLayout=function(){var n=this,t=this._data;t&&t.eachItemGraphicEl(function(t,e){e=n._getSymbolPoint(e);t.setPosition(e),t.markRedraw()})},vw.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=yw(t),this._data=null,this.group.removeAll()},vw.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=gw(n);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);fw(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))}},vw.prototype.eachRendered=function(t){qc(this._progressiveEls||this.group,t)},vw.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 mw=vw;function vw(t){this.group=new j,this._SymbolCtor=t||cw}function xw(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]:U(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=V(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,u=e.getCalculationInfo("stackResultDimension");return Dx(e,t[0])&&(l=!0,t[0]=u),Dx(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 _w(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 bw=Math.min,ww=Math.max;function Sw(t,e){return isNaN(t)||isNaN(e)}function Mw(t,e,n,i,o,r,a,s,l){for(var u,h,c,p,d=n,f=0;f<i;f++){var g=e[2*d],y=e[2*d+1];if(o<=d||d<0)break;if(Sw(g,y)){if(l){d+=r;continue}break}if(d===n)t[0<r?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-u,v=y-h;if(m*m+v*v<.5){d+=r;continue}if(0<a){for(var x=d+r,_=e[2*x],b=e[2*x+1];_===g&&b===y&&f<i;)f++,d+=r,_=e[2*(x+=r)],b=e[2*x+1],g=e[2*d],y=e[2*d+1];var w=f+1;if(l)for(;Sw(_,b)&&w<i;)w++,_=e[2*(x+=r)],b=e[2*x+1];var S,M,I,T,C,A,D,k,L,m=0,v=0,P=void 0,O=void 0;i<=w||Sw(_,b)?(D=g,k=y):(m=_-u,v=b-h,S=g-u,M=_-g,I=y-h,T=b-y,A=C=void 0,O="x"===s?(D=g-(L=0<m?1:-1)*(C=Math.abs(S))*a,k=y,P=g+L*(A=Math.abs(M))*a,y):"y"===s?(D=g,k=y-(L=0<v?1:-1)*(C=Math.abs(I))*a,P=g,y+L*(A=Math.abs(T))*a):(C=Math.sqrt(S*S+I*I),D=g-m*a*(1-(S=(A=Math.sqrt(M*M+T*T))/(A+C))),k=y-v*a*(1-S),O=y+v*a*S,P=bw(P=g+m*a*S,ww(_,g)),O=bw(O,ww(b,y)),P=ww(P,bw(_,g)),k=y-(v=(O=ww(O,bw(b,y
1)))-y)*C/A,D=bw(D=g-(m=P-g)*C/A,ww(u,g)),k=bw(k,ww(h,y)),P=g+(m=g-(D=ww(D,bw(u,g))))*A/C,y+(v=y-(k=ww(k,bw(h,y))))*A/C)),t.bezierCurveTo(c,p,D,k,g,y),c=P,p=O}else t.lineTo(g,y)}u=g,h=y,d+=r}return f}function Iw(){this.smooth=0,this.smoothConstraint=!0}u(Aw,Tw=K),Aw.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Aw.prototype.getDefaultShape=function(){return new Iw},Aw.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;0<o&&Sw(n[2*o-2],n[2*o-1]);o--);for(;i<o&&Sw(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=Mw(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},Aw.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,r=As.CMD,a="x"===e,s=[],l=0;l<o.length;){var u,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++],f=o[l++],g=o[l++],y=o[l++],m=a?Un(n,h,d,g,t,s):Un(i,c,f,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?Xn(i,c,f,y,x):Xn(n,h,d,g,x),a?[t,p]:[p,t]}n=g,i=y}}};var Tw,Cw=Aw;function Aw(t){t=Tw.call(this,t)||this;return t.type="ec-polyline",t}u(Nw,kw=Iw);var Dw,kw,Lw=Nw,Pw=(u(Ow,Dw=K),Ow.prototype.getDefaultShape=function(){return new Lw},Ow.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&&Sw(n[2*r-2],n[2*r-1]);r--);for(;o<r&&Sw(n[2*o],n[2*o+1]);o++);}for(;o<r;){var s=Mw(t,n,o,r,r,1,e.smooth,a,e.connectNulls);Mw(t,i,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}},Ow);function Ow(t){t=Dw.call(this,t)||this;return t.type="ec-polygon",t}function Nw(){return null!==kw&&kw.apply(this,arguments)||this}function Rw(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function Ew(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 zw(t,e){var t=Ew(t),n=t[0],t=t[1],e=Ew(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 Bw(t){return U(t)?t:t?.5:0}function Vw(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 Fw(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=V(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";X(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 tc(0,0,0,0,n,!0);return e[o]=p,e[o+"2"]=u,e}}}function Gw(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*cw.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return;return 1}(a,e)))return o=e.mapDimension(a.dim),r={},X(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);r[t]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}function Ww(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}
1function Hw(t,e){return[t[2*e],t[2*e+1]]}function Xw(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<zl.length;e++)if(t.get([zl[e],"endLabel","show"]))return 1}function Yw(n,i,e,t){var o,r,a,s,l,u,h,c,p;return Ob(i,"cartesian2d")?(o=t.getModel("endLabel"),r=o.get("valueAnimation"),a=t.getData(),s={lastFrameIndex:0},l=Xw(t)?function(t,e){n._endLabelOnDuring(t,e,a,s,r,o,i)}:null,u=i.getBaseAxis().isHorizontal(),h=Tb(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):Cb(i,e,t)}u(jw,Uw=jy),jw.prototype.init=function(){var t=new j,e=new mw;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,f=this._polygon,g=this._lineGroup,e=!e.ssr&&t.isAnimationEnabled(),y=!l.isEmpty(),m=l.get("origin"),v=xw(o,a,m),v=y&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),o=e1(2*i),r=0;r<i;r++){var a=_w(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&&Gw(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(g);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,Fw(a,o,n)||a.getVisual("style")[a.getVisual("drawType")]),c=(d&&c.type===o.type&&I===this._step?(y&&!f?f=this._newPolygon(u,v):f&&!y&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,vd(T)),(c=g.getClipPath())?mc(c,{shape:Yw(this,o,!1,t).shape},t):g.setClipPath(Yw(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]]}}),Rw(this._stackedOnPoints,v)&&Rw(this._points,u)||(e?this._doUpdateAnimation(a,v,o,n,I,m,_):(I&&(u=Vw(u,o,I,_),v=v&&Vw(v,o,I,_)),d.setShape({points:u}),f&&f.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=Vw(u,o,I,_),v=v&&Vw(v,o,I,_)),d=this._newPolyline(u),y?f=this._newPolygon(u,v):f&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,o,vd(T)),g.setClipPath(Yw(this,o,!0,t))),t.getModel("emphasis")),n=c.get("focus"),x=c.get("blurScope"),p=c.get("disabled"),b=(d.useStyle(B(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),Iu(d,t,"lineStyle"),0<d.style.lineWidth&&"bolder"===t.get(["emp
1hasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),$(d).seriesIndex=t.seriesIndex,bu(d,n,x,p),Bw(t.get("smooth"))),e=t.get("smoothMonotone");d.setShape({smooth:b,smoothMonotone:e,connectNulls:_}),f&&(M=a.getCalculationInfo("stackedOnSeries"),y=0,f.useStyle(B(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),M&&(y=Bw(M.get("smooth"))),f.setShape({smooth:b,stackedOnSmooth:y,smoothMonotone:e,connectNulls:_}),Iu(f,t,"areaStyle"),$(f).seriesIndex=t.seriesIndex,bu(f,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),f)&&this.packEventData(t,f)},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 cw(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 jy.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()):jy.prototype.downplay.call(this,t,e,n,i)},jw.prototype._changePolyState=function(t){var e=this._polygon;nu(this._polyline,t),e&&nu(e,t)},jw.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new Cw({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 Pw({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"),f=(A(d)&&(d=d(null)),e.get("animationDelay")||0),g=A(f)?f(null):f;t.eachItemGraphicEl(function(t,e){var n,i,o,r,a,s=t;s&&(r=[t.x,t.y],a=i=n=void 0,u&&(a=c?(o=u,r=l.pointToCoord(r),h?(n=o.startAngle,i=o.endAngle,-r[1]/180*Math.PI):(n=o.r0,i=o.r,r[0])):h?(n=u.x,i=u.x+u.width,t.x):(n=u.y+u.height,i=u.y,t.y)),o=i===n?0:(a-n)/(i-n),p&&(o=1-o),r=A(f)?f(e):d*o+g,a=(t=s.getSymbolPath()).getTextContent(),s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:r}),a&&a.animateFrom({style:{opacity:0}},{duration:300,delay:r}),t.disableLabelAnimation=!0)})},jw.prototype._initOrUpdateEndLabel=function(t,e,n){var i,o,r,a=t.getModel("endLabel");Xw(t)?(i=t.getData(),o=this._polyline,(r=i.getLayout("points"))?(this._endLabel||((this._endLabel=new J({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0),0<=(r=Ww(r))&&(tp(o,ep(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:r,defaultText:function(t,e,n){return null!=n?Rb(i,n):Nb(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,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==i.originalX&&(i.originalX=m.x,i.originalY=m.y),s=n.getLayout("points"),g=(l=n.hostModel).get("connectNulls"),u=r.get("precision"),r=r.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,h=(c?r:0)*(a?-1:1),r=(c?0:-r)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,n){for(var i,o,r=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<r;u++)if(o=t[2*u+a],!isNaN(o)&&!isNaN(t[2*u+1-a])){if(0!==u){if(i<=e&&e<=o||e<=i&&o<=e){l=u;break}s=u}i=o}return{range:[s,l],t:(e-i)/(o-i)}}(s,a=a?c?e.x:e.y+e.height:c?e.x+e.width:e.y,e=c?"x":"y")).range)[1]-p[0])?(1<f&&!g?(y=Hw(s,p[0]),m.attr({x:y[0]+h,y:y[1]+r}),o&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+h,y:y[1]+r}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),o&&(d=pa(n,u,f,g,c.t))),i.lastFrameIndex=p[0]):(y=Hw(s,v=1===t||0<i.lastFrameIndex?p[0]:0),o&&(
1d=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=[],f=[],g=xw(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]),f.push(e.getRawIndex(x.idx1));break;case"+":S=x.idx,M=g.dataDimsForPoint,I=o.dataToPoint([e.get(M[0],S),e.get(M[1],S)]),T=(b=2*S,l.push(I[0],I[1]),u.push(m[b],m[b+1]),_w(g,o,e,S));h.push(T[0],T[1]),c.push(i[b],i[b+1]),f.push(e.getRawIndex(S));break;case"-":_=!1}_&&(p.push(x),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var C=e1(r=l.length),A=e1(r),D=e1(r),k=e1(r),L=[],v=0;v<d.length;v++){var P=d[v],O=2*v,N=2*P;C[O]=l[N],C[1+O]=l[1+N],A[O]=u[N],A[1+O]=u[1+N],D[O]=h[N],D[1+O]=h[1+N],k[O]=c[N],k[1+O]=c[1+N],L[v]=p[P]}return{current:C,next:A,stackedOnCurrent:D,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=Vw(e.current,n,o,a),c=Vw(e.stackedOnCurrent,n,o,a),p=Vw(e.next,n,o,a),d=Vw(e.stackedOnNext,n,o,a)),3e3<zw(h,p)||l&&3e3<zw(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 f,g=[],y=e.status,m=0;m<y.length;m++)"="===y[m].cmd&&(f=t.getItemGraphicEl(y[m].idx1))&&g.push({el:f,ptIdx:m});s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<g.length;e++){var n=g[e].el,i=2*g[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})}},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 Uw,Zw=jw;function jw(){return null!==Uw&&Uw.apply(this,arguments)||this}function qw(t,i){return{seriesType:t,plan:Yy(),reset:function(t){var h,e,c,p,d,n=t.getData(),f=t.coordinateSystem,t=t.pipelineContext,g=i||t.large;if(f)return t=V(f.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),h=t.length,e=n.getCalculationInfo("stackResultDimension"),Dx(n,t[0])&&(t[0]=e),Dx(n,t[1])&&(t[1]=e),c=n.getStore(),p=n.getDimensionIndex(t[0]),d=n.getDimensionIndex(t[1]),h&&{progress:function(t,e){for(var n=t.end-t.start,i=g&&e1(n*h),o=[],r=[],a=t.start,s=0;a<t.end;a++){var l,u=void 0;u=1===h?(l=c.get(p,a),f.dataToPoint(l,null,r)):(o[0]=c.get(p,a),o[1]=c.get(d,a),f.dataToPoint(o,null,r)),g?(i[s++]=u[0],i[s++]=u[1]):e.setItemLayout(a,u.slice())}g&&e.setLayout("points",i)}}}}}r(function(t){t.registerChartView(Zw),t.registerSeriesModel(lw),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,_b("line"))});var Kw=2*Math.PI,Jw=Math.PI/180;function $w(t,e){return Id(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Qw(t,e){var n=$w(t,e),i=t.get("center"),o=t.get("radius");W(o)||(o=[0,o]);var r,a=q(n.width,e.getWidth()),e=q(n.height,e.getHeight()),s=Math.min(a,e),l=q(o[0],s/2),o=q(o[1],s/2),s=t.coordinateSystem;return s=s?(r=(t=s.dataToPoint(i))[0]||0,t[1]||0):(r=q((i=W(i)?i:[i,i])[0],a)+n.x,q(i[1],e)+n.y),{cx:r,cy:s,r0:l,r:o}}function tS(t,e,S){e.eachSeriesByType(t,function(t){var n,o=t.getData(),e=o.mapDimension("value"),i=$w(t,S),r=Qw(t,S
1),a=r.cx,s=r.cy,l=r.r,u=r.r0,h=-t.get("startAngle")*Jw,c=t.get("minAngle")*Jw,p=0,d=(o.each(e,function(t){isNaN(t)||p++}),o.getSum(e)),f=Math.PI/(d||p)*2,g=t.get("clockwise"),y=t.get("roseType"),m=t.get("stillShowZeroSum"),v=o.getDataExtent(e),x=(v[0]=0,Kw),_=0,b=h,w=g?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:g,cx:a,cy:s,r0:u,r:y?NaN:l}):((n="area"!==y?0===d&&m?f:t*f:Kw/p)<c?x-=n=c:_+=t,i=b+w*n,o.setItemLayout(e,{angle:n,startAngle:b,endAngle:i,clockwise:g,cx:a,cy:s,r0:u,r:y?br(t,v,[u,l]):l}),b=i)}),x<Kw&&p&&(x<=.001?(n=Kw/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)})):(f=x/_,b=h,o.each(e,function(t,e){isNaN(t)||(t=(e=o.getItemLayout(e)).angle===c?c:t*f,e.startAngle=b,e.endAngle=b+w*t,b+=w*t)})))})}function eS(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 nS=Math.PI/180;function iS(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(Y_(t,o,o+n)){for(var d,f,g,y,m,v=t,x={list:[],maxY:0},_={list:[],maxY:0},b=0;b<v.length;b++)"none"===v[b].labelAlignTo&&(f=(d=v[b]).label.y>l?_:x,(g=Math.abs(d.label.y-l))>=f.maxY&&(m=d.label.x-s-d.len2*h,y=u+d.len,m=Math.abs(m)<y?Math.sqrt(g*g/(1-m*m/y/y)):y,f.rB=m,f.maxY=g),f.list.push(d));w(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;oS(o,o.targetTextWidth-r*h,!0),o.label.x=a}}}function oS(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 rS(t){return"center"===t.position}function aS(t){var S,M,I=t.getData(),T=[],C=!1,A=(t.get("minShowLabelAngle")||0)*nS,e=I.getLayout("viewRect"),D=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,f=p.getTextContent(),g=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"),_=q(y.get("edgeDistance"),k),b=y.get("bleedMargin"),t=t.getModel("labelLine"),w=q(t.get("length"),k);e=q(t.get("length2"),k),Math.abs(d.endAngle-d.startAngle)<A?(X(f.states,P),f.ignore=!0,g&&(X(g.states,P),g.ignore=!0)):function(t){if(!t.ignore)return 1;for(var e in t.states)if(!1===t.states[e].ignore)return 1}(f)&&(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+D-d.r),d=u+i*(w+D-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,U(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,f.x=r,f.y=a,f.rotation=h,f.setStyle({verticalAlign:"middle"}),o?(f.setStyle({align:l}),(c=f.states.select)&&(c.x+=f.x,c.y+=f.y)):((d=f.getBoundingRect().clone()).applyTransform(f.getComputedTransform()),y=(f.style.margin||0)+2.1,d.y-=y/2,d.height+=y,T.push({label:f,labelLine:g,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,re
1ct:d,unconstrainedWidth:d.width,labelStyleWidth:f.style.width})),p.setTextConfig({inside:o}))}),!C&&t.get("avoidLabelOverlap")){for(var i=T,o=S,r=(t=M,D),a=k,s=L,l,u,h,c,p,d,f=[],g=[],y=Number.MAX_VALUE,m=-Number.MAX_VALUE,v=0;v<i.length;v++){var x=i[v].label;rS(i[v])||(x.x<o?(y=Math.min(y,x.x),f):(m=Math.max(m,x.x),g)).push(i[v])}for(v=0;v<i.length;v++)!rS(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,oS(u,l));for(iS(g,o,t,r,1,0,e,0,n,m),iS(f,o,t,r,-1,0,e,0,n,y),v=0;v<i.length;v++)!rS(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,N=w.labelLine,R=isNaN(O.x)||isNaN(O.y);O&&(O.setStyle({align:w.textAlign}),R&&(X(O.states,P),O.ignore=!0),b=O.states.select)&&(b.x+=O.x,b.y+=O.y),N&&(b=w.linePoints,R||!b?(X(N.states,P),N.ignore=!0):(B_(b,w.minTurnAngle),function(t,e,n){if(n<=180&&0<n){n=n/180*Math.PI,k_.fromArray(t[0]),L_.fromArray(t[1]),P_.fromArray(t[2]),E.sub(O_,L_,k_),E.sub(N_,P_,L_);var i=O_.len(),o=N_.len();if(!(i<.001||o<.001)&&(O_.scale(1/i),N_.scale(1/o),O_.dot(e)<Math.cos(n))){i=T_(L_.x,L_.y,P_.x,P_.y,k_.x,k_.y,E_,!1),o=(z_.fromArray(E_),Math.PI/2),e=o+Math.acos(N_.dot(e))-n;if(o<=e)E.copy(z_,P_);else{z_.scaleAndAdd(N_,i/Math.tan(Math.PI/2-e));n=P_.x!==L_.x?(z_.x-L_.x)/(P_.x-L_.x):(z_.y-L_.y)/(P_.y-L_.y);if(isNaN(n))return;n<0?E.copy(z_,L_):1<n&&E.copy(z_,P_)}z_.toArray(t[1])}}}(b,w.surfaceNormal,w.maxSurfaceAngle),N.setShape({points:b}),O.__hostTarget.textGuideLineConfig={anchor:new E(b[0][0],b[0][1])}))}}u(pS,lS=xh),pS.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(Bb(a.getModel("itemStyle"),l,!0),l);isNaN(u.startAngle)?o.setShape(u):(i?(o.setShape(u),i=r.getShallow("animationType"),r.ecModel.ssr?(mc(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,mc(o,{shape:{r:l.r}},r,e)):null!=n?(o.setShape({startAngle:n,endAngle:n}),mc(o,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},r,e)):(o.shape.endAngle=l.startAngle,C(o,{shape:{endAngle:l.endAngle}},r,e))):(wc(o),C(o,{shape:u},r,e)),o.useStyle(t.getItemVisual(e,"style")),Iu(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)},Bb(s.getModel("itemStyle"),l)),H(o.ensureState("select"),{x:u,y:i,shape:Bb(a.getModel(["select","itemStyle"]),l)}),H(o.ensureState("blur"),{shape:Bb(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}),bu(this,s.get("focus"),s.get("blurScope"),s.get("disabled")))},pS.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 Ph,this.setTextGuideLine(e)),G_(this,W_(i),{stroke:a,opacity:St(o.get(["lineStyle","opacity"]),r,1)}))};var sS,lS,uS=pS,hS=(u(cS,sS=jy),cS.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 xh({shape:Qw(e,n)})).useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=n,s.add(n)),r.diff(a).add(function(t){var e=new uS(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){bc(a.getItemGraphicEl(t),e,t)}).execute(),aS(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=r)},cS.prototype.dispose=function(){},cS.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},cS.type="pie",cS);function cS(){var t=null!==sS&&sS.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}function pS(t,e,n){var i=lS.call(this)||this,o=(i.z2=2,new J);return i.setTextContent(o),i.updateData(t,e,n,!0),i}function dS(t,e,n){e=W(e)?{coordDimensions:e}:H({encodeDefine:t.getEncode()},e);var i=t.getSource(),e=Mx(i,e).dimensions,e=new Sx(e,t);return e.initData(i,n),e}gS.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},gS.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},gS.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},gS.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var fS=gS;function gS(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}var yS,mS=i(),vS=(u(xS,yS=Ny),xS.prototype.init=function(t){yS.prototype.init.a
1pply(this,arguments),this.legendVisualProvider=new fS(T(this.getData,this),T(this.getRawData,this)),this._defaultLabelLine(t)},xS.prototype.mergeOption=function(){yS.prototype.mergeOption.apply(this,arguments)},xS.prototype.getInitialData=function(){return dS(this,{coordDimensions:["value"],encodeDefaulter:P(Jd,this)})},xS.prototype.getDataParams=function(t){var e,n=this.getData(),i=mS(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"))),yS.prototype.getDataParams.call(this,t));return i.percent=o[t]||0,i.$vars.push("percent"),i},xS.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},xS.type="series.pie",xS.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"},xS);function xS(){return null!==yS&&yS.apply(this,arguments)||this}r(function(t){t.registerChartView(hS),t.registerSeriesModel(vS),Bm("pie",t.registerAction),t.registerLayout(P(tS,"pie")),t.registerProcessor(eS("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!(U(e)&&!isNaN(e)&&e<0)})}})});u(wS,_S=Ny),wS.prototype.getInitialData=function(t,e){return Lx(null,this,{useEncodeDefaulter:!0})},wS.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},wS.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},wS.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},wS.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},wS.type="series.scatter",wS.dependencies=["grid","polar","geo","singleAxis","calendar"],wS.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 _S,bS=wS;function wS(){var t=null!==_S&&_S.apply(this,arguments)||this;return t.type=wS.type,t.hasSymbolVisual=!0,t}function SS(){}u(AS,MS=K),AS.prototype.getDefaultShape=function(){return new SS},AS.prototype.reset=function(){this.notClear=!1,this._off=0},AS.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)}},AS.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)}},AS.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},AS.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect
1();return t=n[0],e=n[1],i.contain(t,e)?0<=(this.hoverDataIdx=this.findDataIndex(t,e)):!(this.hoverDataIdx=-1)},AS.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 MS,IS=AS,TS=(CS.prototype.updateData=function(t,e){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,e)},CS.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()})},CS.prototype.incrementalPrepareUpdate=function(t){this._clear()},CS.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))},CS.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},CS.prototype._create=function(){var t=new IS({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},CS.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=Qm(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;
10<=e&&(r.dataIndex=e+(n.startIndex||0))})},CS.prototype.remove=function(){this._clear()},CS.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},CS);function CS(){this.group=new j}function AS(t){t=MS.call(this,t)||this;return t._off=0,t.hoverDataIdx=-1,t}u(LS,DS=jy),LS.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},LS.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},LS.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},LS.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)},LS.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},LS.prototype._getClipShape=function(t){var e=t.coordinateSystem,e=e&&e.getArea&&e.getArea();return t.get("clip",!0)?e:null},LS.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?TS:mw),this._isLargeDraw=e,this.group.removeAll()),this.group.add(n.group),n},LS.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},LS.prototype.dispose=function(){},LS.type="scatter";var DS,kS=LS;function LS(){var t=null!==DS&&DS.apply(this,arguments)||this;return t.type=LS.type,t}u(NS,PS=f),NS.type="grid",NS.dependencies=["xAxis","yAxis"],NS.layoutMode="box",NS.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 PS,OS=NS;function NS(){return null!==PS&&PS.apply(this,arguments)||this}u(zS,RS=f),zS.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",sa).models[0]},zS.type="cartesian2dAxis";var RS,ES=zS;function zS(){return null!==RS&&RS.apply(this,arguments)||this}ut(ES,H1);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)"]}}},Hm=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),BS={category:Hm,value:jm,time:d({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},jm),log:B({logBase:10},jm)},VS={value:1,category:1,time:1,log:1};function FS(r,a,s,l){X(VS,function(t,o){var e,n=d(d({},BS[o],!0),l,!0),n=(u(i,e=s),i.prototype.mergeDefaultAndTheme=function(t,e){var n=Cd(this),i=n?Dd(t):{};d(t,e.getTheme().get(o+"Axis")),d(t,this.getDefaultOption()),t.type=GS(t),n&&Ad(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=Rx.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",GS)}function GS(t){return t.type||(t.data?"category":"value")}function WS(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}WS.prototype.getAxis=function(t){return this._axes[t]},WS.prototype.getAxes=function(){return V(this._dimList,function(t){return this._axes[t]},this)}
1,WS.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),pt(this.getAxes(),function(t){return t.scale.type===e})},WS.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var HS=["x","y"];function XS(t){return"interval"===t.type||"time"===t.type}u(ZS,YS=WS),ZS.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,o=this.getAxis("x").scale,r=this.getAxis("y").scale;XS(o)&&XS(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=Xe([],i))},ZS.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},ZS.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]))},ZS.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},ZS.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)},ZS.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)},ZS.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},ZS.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)},ZS.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},ZS.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 YS,US=ZS;function ZS(){var t=null!==YS&&YS.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=HS,t}u(KS,jS=_p),KS.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},KS.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},KS.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},KS.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var jS,qS=KS;function KS(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 JS(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 $S(t){return"cartesian2d"===t.get("coordinateSystem")}function QS(i){var o={xAxisModel:null,yAxisModel:null};return X(o,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,sa).models[0];o[e]=n}),o}var tM=Math.log;function eM(t,e,n){var i=Jx.prototype,o=i.getTicks.call(n),r=i.getTicks.call(n,!0),a=o.length-1,n=i.getInterval.call(n),e=N1(t,e),s=e.extent,l=e.fixMin,e=e.fixMax,u=("log"===t.type&&(u=tM(t.base),s=[tM(s[0])/u,tM(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=Fx(h),p=s[0]+h*a;
1else if(e)for(c=s[1]-h*a;c>s[0]&&isFinite(c)&&isFinite(s[0]);)h=Fx(h),c=s[1]-h*a;else{u=(h=t.getTicks().length-1>a?Fx(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)}iM.prototype.getRect=function(){return this._rect},iM.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;Bx(l)&&s.get("alignTicks")&&null==s.get("interval")?o.push(a):(R1(l,s),Bx(l)&&(e=a))}o.length&&(e||R1((e=o.pop()).scale,e.model),X(o,function(t){eM(t.scale,t.model,e.scale)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var o={};X(n.x,function(t){rM(n,"y",t,o)}),X(n.y,function(t){rM(n,"x",t,o)}),this.resize(this.model,e)},iM.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),n=!n&&t.get("containLabel"),a=Id(i,{width:e.getWidth(),height:e.getHeight()}),o=(this._rect=a,this._axesList);function r(){X(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&&(X(o,function(t){var e,n,i;t.model.get(["axisLabel","inside"])||(e=V1(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()),X(this._coordsList,function(t){t.calcAffineTransform()})},iM.prototype.getAxis=function(t,e){t=this._axesMap[t];if(null!=t)return t[e||0]},iM.prototype.getAxes=function(){return this._axesList.slice()},iM.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]},iM.prototype.getCartesians=function(){return this._coordsList.slice()},iM.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},iM.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},iM.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}},iM.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},iM.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;oM(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,E1(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?X((this._axesMap=u).x,function(i,o){X(u.y,function(t,e){var e="x"+o+"y"+e,n=new US(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=[])},iM.prototype._updateScale=function(t,i){function o(e,n){X(W1(e,n.dim),function(t){n.scale.unionExtentFromData(e,t)})}X(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;$S(t)&&(n=(e=QS(t)).xAxisModel,e=e.yAxisModel,oM(n,i))&&oM(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)},iM.prototype.getTooltipAxes=function(n){var i=[],o=[];return X(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}},iM.create=function(i,o){var r=[];return i.eachComponent("grid",function(t,e){var n=new iM(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;$S(t)&&(e=(n=QS(t)).xAxisModel,n=n.yAxisModel,i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))}),r},iM.dimensions=HS;var nM=iM;function iM(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=HS,this._initCartesian(t,e,n),this.model=t}function oM(t,e){return t.getCoordSysModel()===e}function rM(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)aM(r[n])&&(o=r[n]);else for(var a in r)if(r.hasOwnProperty(a)&&aM(r[a])&&!i[s(r[a])]){o=r[a];break}
1o&&(i[s(o)]=!0)}function s(t){return t.dim+"_"+t.index}}function aM(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 sM=Math.PI,lM=(hM.prototype.hasBuilder=function(t){return!!uM[t]},hM.prototype.add=function(t){uM[t](this.opt,this.axisModel,this.group,this._transformGroup)},hM.prototype.getGroup=function(){return this.group},hM.innerTextLayout=function(t,e,n){var i,e=Dr(e-t),t=kr(e)?(i=0<n?"top":"bottom","center"):kr(e-sM)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<sM?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},hM.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},hM.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},hM),uM={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()),Ec((n=new zh({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)||U(e))&&(e=[e,e]),n=e0(t.get(["axisLine","symbolOffset"])||0,e),h=e[0],c=e[1],X([{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=Qm(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=fM(o.getTicksCoords(),e.transform,i,B(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,f,t,e,g,y,m,v,x;if(wt(c.axisLabelShow,h.get(["axisLabel","show"]))&&!p.scale.isBlank())return d=h.getModel("axisLabel"),f=d.get("margin"),t=p.getViewLabels(),e=(wt(c.labelRotate,d.get("rotate"))||0)*sM/180,g=lM.innerTextLayout(c.rotation,e,c.labelDirection),y=h.getCategories&&h.getCategories(!0),m=[],v=lM.isLabelSilent(h),x=h.get("triggerEvent"),X(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 Ip(a.textStyle,d,h.ecModel):r).getTextColor()||h.get(["axisLine","lineStyle","color"]),s=p.dataToCoord(n),s=new J({x:s,y:c.labelOffset+c.labelDirection*f,rotation:g.rotation,silent:v,z2:10+(t.level||0),style:np(r,{text:i,align:r.getShallow("align",!0)||g.textAlign,verticalAlign:r.getShallow("verticalAlign",!0)||r.getShallow("baseline",!0)||g.textVerticalAlign,fill:A(a)?a("category"===p.type?o:"value"===p.type?n+"":n,e):a})});s.anid="label_"+n,x&&((t=lM.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=(G1(u.axis)||(d=u.get(["axisLabel","showMinLabel"]),u=u.get(["axisLabel","showMaxLabel"]),s=s||[],y=(h=h||[])[0],f=h[1],o=h[h.length-1],h=h[h.length-2],r=s[0],g=s[1],a=s[s.length-1],s=s[s.length-2],!1===d?(cM(y),cM(r)):pM(y,f)&&(d?(cM(f),cM(g)):(cM(y),cM(r))),!1===u?(cM(o),cM(a)):pM(h,o)&&(u?(cM(h),cM(s)):(cM(o),cM(a)))),n),p=i,d=e,f=t.tickDirection,g=d.axis,y=d.getModel("minorTick");if(y.get("show")&&!g.scale.isBlank()){var m=g.getMinorTicksCoords();if(m.length)for(var g=y.getModel("lineStyle"),v=f*y.get("length"),x=B(g.getLineStyle(),B(d.getModel("axisTick").getLineStyle(),{stroke:d.get(["axisLine","lineStyle","color"])})),_=0;_<m.length;_++)for(var b=fM(m[_],p.transform,v,x,"minorticks_"+_),w=0;w<b.length;w++)c.add(b[w])}e.get(["axisLabel","hideOverlap"])&&U_(H_(V(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())[
10]>h[1]?-1:1,a=["start"===l?h[0]-a*u:"end"===l?h[1]+a*u:(h[0]+h[1])/2,dM(l)?t.labelOffset+s*u:0],null!=(u=e.get("nameRotate"))&&(u=u*sM/180),dM(l)?o=lM.innerTextLayout(t.rotation,null!=u?u:t.rotation,s):(s=t.rotation,l=l,h=h,u=Dr((u=u||0)-s),s=h[0]>h[1],h="start"===l&&!s||"start"!==l&&s,l=kr(u-sM/2)?(c=h?"bottom":"top","center"):kr(u-1.5*sM)?(c=h?"top":"bottom","center"):(c="middle",u<1.5*sM&&sM/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 J({x:a[0],y:a[1],rotation:o.rotation,silent:lM.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=lM.makeAxisEventDataBase(e)).targetType="axisName",h.name=p,$(t).eventData=h),i.add(t),t.updateTransform(),n.add(t),t.decomposeTransform())}};function hM(t,e){this.group=new j,this.opt=e,this.axisModel=t,B(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});t=new j({x:e.position[0],y:e.position[1],rotation:e.rotation});t.updateTransform(),this._transformGroup=t}function cM(t){t&&(t.ignore=!0)}function pM(t,e){var n,i=t&&t.getBoundingRect().clone(),o=e&&e.getBoundingRect().clone();if(i&&o)return We(n=Be([]),n,-t.rotation),i.applyTransform(Fe([],n,t.getLocalTransform())),o.applyTransform(Fe([],n,e.getLocalTransform())),i.intersect(o)}function dM(t){return"middle"===t||"center"===t}function fM(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 zh({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0}));Ec(u.shape,u.style.lineWidth),u.anid=o+"_"+t[l].tickValue,r.push(u)}return r}function gM(t,e){var o,h,c,r,p,d,f,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)||[],f=[],X(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||vM(r))&&(null==e&&(e=r.get("triggerTooltip")),a=(r=t?function(t,e,n,i,o,r){var a=e.getModel("axisPointer"),s={},e=(X(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=x(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"))&&B(e,o.textStyle));return t.model.getModel("axisPointer",new Ip(s,n,i))}(n,u,p,c,t,e):r).get("snap"),t=r.get("triggerEmphasis"),i=xM(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:vM(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(yM(r[i+"AxisId"],n.id)||yM(r[i+"AxisIndex"],n.componentIndex)||yM(r[i+"AxisName"],n.name))return o}}(d,n)))&&((a=f[t]||(f[t]={axesInfo:{}})).axesInfo[i]=e,a.mapper=d[t].mapper,e.linkGroup=a)}s.axisPointerEnabled&&(t=xM(s.model),l=h.coordSysAxesInfo[t]={},u=(h.coordSysMap[t]=s).model.getModel("tooltip",r),X(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)&&X(n.baseAxes,P(i,!e||"cross",t)),e)&&X(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)&&X(o.coordSysAxesInfo[xM(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 yM(t,e){return"all"===t||W(t)&&0<=F(t,e)||t===e}function mM(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[xM(t)]}function vM(t){return!!t.get(["handle","show"])}
1function xM(t){return t.type+"||"+t.id}var _M,bM={},wM=(u(SM,_M=Hy),SM.prototype.render=function(t,e,n,i){var o,r,a,s,l,u;this.axisPointerClass&&(o=mM(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=vM(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"),_M.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},SM.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},SM.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},SM.prototype.dispose=function(t,e){this._disposeAxisPointer(e),_M.prototype.dispose.apply(this,arguments)},SM.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,o=SM.getAxisPointerClass(this.axisPointerClass);o&&((i=(i=mM(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new o)).render(t,i,e,n):this._disposeAxisPointer(e))},SM.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},SM.registerAxisPointerClass=function(t,e){bM[t]=e},SM.getAxisPointerClass=function(t){return t&&bM[t]},SM.type="axis",SM);function SM(){var t=null!==_M&&_M.apply(this,arguments)||this;return t.type=SM.type,t}var MM=i();function IM(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=MM(t).splitAreaColors,c=R(),p=0;if(h)for(var d=0;d<l.length;d++){var f=h.get(l[d].tickValue);if(null!=f){p=(f+(u-1)*d)%u;break}}for(var g=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,g=o.isHorizontal()?(v=g,x=s.y,b=s.height,v+(_=m-v)):(v=s.x,x=g,_=s.width,x+(b=m-x)),m=l[d-1].tickValue;null!=m&&c.set(m,p),e.add(new cl({anid:null!=m?"area_"+m:null,shape:{x:v,y:x,width:_,height:b},style:B({fill:a[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%u}MM(t).splitAreaColors=c}}}function TM(t){MM(t).splitAreaColors=null}var CM,AM,DM=["axisLine","axisTickLabel","axisName"],kM=["splitArea","splitLine","minorSplitLine"],e=(u(NM,AM=wM),NM.prototype.render=function(i,t,e,n){this.group.removeAll();var o,r,a=this._axisGroup;this._axisGroup=new j,this.group.add(this._axisGroup),i.get("show")&&(r=JS(o=i.getCoordSysModel(),i),r=new lM(i,H({handleAutoShown:function(t){for(var e=o.coordinateSystem.getCartesians(),n=0;n<e.length;n++)if(Bx(e[n].getOtherAxis(i.axis).scale))return!0;return!1}},r)),X(DM,r.add,r),this._axisGroup.add(r.getGroup()),X(kM,function(t){i.get([t,"show"])&&LM[t](this,this._axisGroup,i,o)},this),n&&"changeAxisOrder"===n.type&&n.isInitSort||Wc(a,this._axisGroup,i),AM.prototype.render.call(this,i,t,e,n))},NM.prototype.remove=function(){TM(this)},NM.type="cartesianAxis",NM),LM={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(),f=0;f<h.length;f++){var g=o.toGlobalCoord(h[f].coord),g=(l?(c[0]=g,c[1]=s.y,p[0]=g,p[1]=s.y+s.height):(c[0]=s.x,c[1]=g,p[0]=s.x+s.width,p[1]=g),u++%a.length),y=h[f].tickValue,y=new zh({anid:null!=y?"line_"+h[f].tickValue:null,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:B({stroke:a[g]},d),silent:!0});Ec(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 zh({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}));Ec(d.shape,h.lineWidth),e.add(d)}},splitArea:function(t,e,n,i){IM(t,e,n,i)}},PM=(u(OM,CM=e),OM.type="xAxis",OM);function OM(){var t=null!==CM&&CM.apply(this,arguments)||this;return t.type=OM.type,t}function NM(){var t=null!==AM&&AM.apply(this,arguments)||this;return t.type=NM.type,t.axisPointerClass="CartesianAxisPointer",t}u(zM,RM=e),zM.type="yAxis";var RM,EM=zM;function zM(){var t=null!==RM&&RM.apply(this,arguments)||this;return t.type=PM.type,t}u(GM,BM=Hy),GM.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new cl({shape:t.coordinateSystem.getRect(),style:B({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}
1))},GM.type="grid";var BM,VM=GM,FM={offset:0};function GM(){var t=null!==BM&&BM.apply(this,arguments)||this;return t.type="grid",t}function WM(t){t.registerComponentView(VM),t.registerComponentModel(OS),t.registerCoordinateSystem("cartesian2d",nM),FS(t,"x",ES,FM),FS(t,"y",ES,FM),t.registerComponentView(PM),t.registerComponentView(EM),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function HM(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(WM),t.registerSeriesModel(bS),t.registerChartView(kS),t.registerLayout(qw("scatter"))});u(UM,XM=j),UM.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},UM.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=Qm(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)}HM(o,t)},UM.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)}HM(n,t)},UM.prototype.highlight=function(){lu(this)},UM.prototype.downplay=function(){uu(this)},UM.prototype.getSymbolType=function(){var t=this.childAt(0);return t&&t.getSymbolType()},UM.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=t0(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)}),e0(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,bu(this,l.get("focus"),l.get("blurScope"),l.get("disabled"))},UM.prototype.fadeOut=function(t){t&&t()};var XM,YM=UM;function UM(t,e){var n=XM.call(this)||this,i=new cw(t,e),o=new j;return n.add(i),n.add(o),n.updateData(t,e),n}u(qM,ZM=jy),qM.prototype.init=function(){this._symbolDraw=new mw(YM)},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=Ye(t.getRoamTransform()),this.group.decomposeTransform())},qM.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},qM.type="effectScatter";var ZM,jM=qM;function qM(){var t=null!==ZM&&ZM.apply(this,arguments)||this;return t.type=qM.type,t}u($M,KM=Ny),$M.prototype.getInitialData=function(t,e){return Lx(null,this,{useEncodeDefaulter:!0})},$M.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},$M.type="series.effectScatter",$M.dependencies=["grid","polar"],$M.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 KM,JM=$M;function $M(){var t=null!==KM&&KM.apply(this,arguments)||this;return t.type=$M.type,t.hasSymbolVisual=!0,t}function QM(t){t.eachSeriesByType("radar",function(t){var e,i=t.getData(),o=[],r=t.coordinateSystem;r&&(X(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]=tI(t)?t:eI(r)})}),i.each(function(t){var e=dt(o[t],tI)||eI(r);o[t].push(e.slice()),i.setItemLayout(t,o[t])}))})}function tI(t){return!isNaN(t[0])&&!isNaN(t[1])}function eI(t){return[t.cx,t.cy]}function nI(n){var i,t=n.polar;t&&(W(t)||(t=[t]),i=[],X(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),X(n.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})}r(function(t){t.registerChartView(jM),t.registerSeriesModel(JM),t.registerLayout(qw("effectScatter"))});u(rI,iI=jy),rI.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=t0(t.getItemVisual(e,"symbolSize")),i=Qm(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 V(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 Ah,n=new Ph,i={shape:{points:r}},e.shape.points=u(r),n.shape.points=u(r),mc(e,i,l,t),mc(n,i,l,t),i=new j,o=new j,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),wc(i),wc(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(B(i.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:s})),Iu(e,i,"lineStyle"),Iu(o,i,"areaStyle"),i.getModel("areaStyle")),l=e.isEmpty()&&e.parentModel.isEmpty(),e=(o.ignore=l,X(["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(B(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=x(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})}),bu(t,e.get("focus"),e.get("blurScope"),e.get("disabled"))}),this._data=c},rI.prototype.remove=function(){this.group.removeAll(),this._data=null},rI.type="radar";var iI,oI=rI;function rI(){var t=null!==iI&&iI.apply(this,arguments)||this;return t.type=rI.type,t}
1u(lI,aI=Ny),lI.prototype.init=function(t){aI.prototype.init.apply(this,arguments),this.legendVisualProvider=new fS(T(this.getData,this),T(this.getRawData,this))},lI.prototype.getInitialData=function(t,e){return dS(this,{generateCoord:"indicator_",generateCoordCount:1/0})},lI.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=Ty(this,n);return vy("section",{header:r,sortBlocks:!0,blocks:V(o,function(t){var e=i.get(i.mapDimension(t.dim),n);return vy("nameValue",{markerType:"subItem",markerColor:a,name:t.name,value:e,sortParam:e})})})},lI.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(V(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)}},lI.type="series.radar",lI.dependencies=["radar"],lI.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8};var aI,sI=lI;function lI(){var t=null!==aI&&aI.apply(this,arguments)||this;return t.type=lI.type,t.hasSymbolVisual=!0,t}xa=BS.value;function uI(t,e){return B({show:e},t)}u(pI,hI=f),pI.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=V(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=B({color:t.color},l)),d(x(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:"")):A(h)&&(t.name=h(t.name,t)),new Ip(t,null,this.ecModel));return ut(e,H1.prototype),e.mainType="radar",e.componentIndex=this.componentIndex,e},this);this._indicatorModels=t},pI.prototype.getIndicatorModels=function(){return this._indicatorModels},pI.type="radar",pI.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"}},xa.axisLine),axisLabel:uI(xa.axisLabel,!1),axisTick:uI(xa.axisTick,!1),splitLine:uI(xa.splitLine,!0),splitArea:uI(xa.splitArea,!0),indicator:[]};var hI,cI=pI;function pI(){var t=null!==hI&&hI.apply(this,arguments)||this;return t.type=pI.type,t}var dI,fI=["axisLine","axisTickLabel","axisName"],gI=(u(yI,dI=Hy),yI.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},yI.prototype._buildAxes=function(t){var n=t.coordinateSystem;X(V(n.getIndicatorAxes(),function(t){var e=t.model.get("showName")?t.name:"";return new lM(t.model,{axisName:e,position:[n.cx,n.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){X(fI,t.add,t),this.group.add(t.getGroup())},this)},yI.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(),f=n.cx,g=n.cy,y=0;y<d.length;y++)s&&c[M(c,u,y)].push(new $u({shape:{cx:f,cy:g,r:d[y].coord}})),l&&y<d.length-1&&p[M(p,h,y)].push(new Sh({shape:{cx:f,cy:g,r0:d[y].coord,r:d[y+1].coord}}));else for(var m,v=V(e,function(t,e){t=t.getTicksCoords();return m=null==m?t.length-1:Math.min(t.length-1,m),V(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]);
1_[0]&&_.push(_[0].slice()),s&&c[M(c,u,y)].push(new Ph({shape:{points:_}})),l&&x&&p[M(p,h,y-1)].push(new Ah({shape:{points:_.concat(x)}})),x=_.slice().reverse()}var w=r.getLineStyle(),S=a.getAreaStyle();X(p,function(t,e){this.group.add(Nc(t,{style:B({stroke:"none",fill:h[e%h.length]},S),silent:!0}))},this),X(c,function(t,e){this.group.add(Nc(t,{style:B({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}},yI.type="radar",yI);function yI(){var t=null!==dI&&dI.apply(this,arguments)||this;return t.type=yI.type,t}u(xI,mI=_p);var mI,vI=xI;function xI(t,e,n){t=mI.call(this,t,e,n)||this;return t.type="value",t.angle=0,t.name="",t}bI.prototype.getIndicatorAxes=function(){return this._indicatorAxes},bI.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},bI.prototype.coordToPoint=function(t,e){e=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(e),this.cy-t*Math.sin(e)]},bI.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))]},bI.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),e=e.getHeight(),o=Math.min(i,e)/2,i=(this.cx=q(n[0],i),this.cy=q(n[1],e),this.startAngle=t.get("startAngle")*Math.PI/180,t.get("radius"));(Y(i)||U(i))&&(i=[0,i]),this.r0=q(i[0],o),this.r=q(i[1],o),X(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)},bI.prototype.update=function(i,t){var o=this._indicatorAxes,r=this._model,e=(X(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(),X(o,function(t){t.scale.unionExtentFromData(n,n.mapDimension(t.dim))}))},this),r.get("splitNumber")),n=new Jx;n.setExtent(0,e),n.setInterval(1),X(o,function(t,e){eM(t.scale,t.model,n)})},bI.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},bI.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},bI.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},bI.create=function(t,n){var i=[];return t.eachComponent("radar",function(t){var e=new bI(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},bI.dimensions=[];var _I=bI;function bI(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=V(t.getIndicatorModels(),function(t,e){var e="indicator_"+e,n=new vI(e,new Jx);return n.name=t.get("name"),(n.model=t).axis=n,this.dimensions.push(e),n},this),this.resize(t,n)}function wI(t){t.registerCoordinateSystem("radar",_I),t.registerComponentModel(cI),t.registerComponentView(gI),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(wI),t.registerChartView(oI),t.registerSeriesModel(sI),t.registerLayout(QM),t.registerProcessor(eS("radar")),t.registerPreprocessor(nI)});MI.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],f=d[0],g=d[1],y=i(d[2]);h.globalAlpha=y,h.drawImage(a,f-u,g-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},MI.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=tt.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},MI.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 SI=MI;function MI(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=tt.createCanvas();this.canvas=t}function II(t){t=t.dimensions;return"lng"===t[0]&&"lat"===t[1]}u(AI,TI=jy),AI.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()):II(t)&&this._renderOnGeo(t,n,i,e)},AI.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},AI.prototype.incrementalRender=function(t,e,n,i){var o=e.coordinateSystem;o&&(II(o)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},AI.prototype.eachRendered=function(t){qc(this._progressiveEls||this.group,t)},AI.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,o){var r,a,s,l,u,h=t.coordinateSystem,c=Ob(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(),f=t.getModel(["emphasis","itemStyle"]).getItemStyle(),g=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),A=d.get(S[1],M);if(isNaN(d.get(S[2],M))||isNaN(C)||isNaN(A)||C<l[0]||C>l[1]||A<u[0]||A>u[1])continue;var C=h.dataToPoint([C,A]),I=new cl({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 cl({z2:1,shape:h.dataToRect([d.get(S[0],M)]).contentShape,style:T})}d.hasItemOption&&(f=(C=(A=d.getItemModel(M)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),g=A.getModel(["blur","itemStyle"]).getItemStyle(),y=A.getModel(["select","itemStyle"]).getItemStyle(),m=A.get(["itemStyle","borderRadius"]),_=C.get("focus"),b=C.get("blurScope"),w=C.get("disabled"),v=ep(A)),I.shape.r=m;var D=t.getRawValue(M),k="-";D&&null!=D[2]&&(k=D[2]+""),tp(I,v,{labelFetcher:t,labelDataIndex:M,defaultOpacity:T.opacity,defaultText:k}),I.ensureState("emphasis").style=f,I.ensureState("blur").style=g,I.ensureState("select").style=y,bu(I,_,b,w),(I.incremental=o)&&(I.states.emphasis.hoverLayer=!0),p.add(I),d.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},AI.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(),f=this._hmLayer||this._hmLayer||new SI,t=(f.blurSize=t.get("blurSize"),f.pointSize=t.get("pointSize"),f.minOpacity=t.get("minOpacity"),f.maxOpacity=t.get("maxOpacity"),i.getViewRect().clone()),g=i.getRoamTransform(),y=(t.applyTransform(g),Math.max(t.x,0)),m=Math.max(t.y,0),g=Math.min(t.width+t.x,n.getWidth()),t=Math.min(t.height+t.y,n.getHeight()),n=g-y,g=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=V(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;
1n--)if((e=r[n].interval)[0]<=t&&t<=e[1]){u=n;break}return 0<=n&&n<l&&a[n]}),t=(f.update(d,n,g,c.color.getNormalizer(),{inRange:c.color.getColorMapper(),outOfRange:p.color.getColorMapper()},v),new nl({style:{width:n,height:g,x:y,y:m,image:f.canvas},silent:!0}));this.group.add(t)},AI.type="heatmap";var TI,CI=AI;function AI(){var t=null!==TI&&TI.apply(this,arguments)||this;return t.type=AI.type,t}u(LI,DI=Ny),LI.prototype.getInitialData=function(t,e){return Lx(null,this,{generateCoord:"value"})},LI.prototype.preventIncremental=function(){var t=bf.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},LI.type="series.heatmap",LI.dependencies=["grid","geo","calendar"],LI.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}};var DI,kI=LI;function LI(){var t=null!==DI&&DI.apply(this,arguments)||this;return t.type=LI.type,t}function PI(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}
1else 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=EI(s),r=zI(r),s&&r;){o=EI(o),a=zI(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&&!EI(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=c-l),r&&!zI(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=u-h,n=t)}return n}(t,o,t.parentNode.hierNode.defaultAncestor||i[0],e)}function OI(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function NI(t){return arguments.length?t:BI}function RI(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function EI(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function zI(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function BI(t,e){return t.parentNode===e.parentNode?1:2}r(function(t){t.registerChartView(CI),t.registerSeriesModel(kI)});var VI,FI=oe,GI=(u(WI,VI=Go),WI.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new z(t,e,n,i),this._rect},WI.prototype.getBoundingRect=function(){return this._rect},WI.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new z(t,e,n,i)},WI.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()},WI.prototype.setCenter=function(t,e){t&&(this._center=[q(t[0],e.getWidth()),q(t[1],e.getHeight())],this._updateCenterAndZoom())},WI.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()},WI.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},WI.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},WI.prototype.getZoom=function(){return this._zoom||1},WI.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},WI.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()},WI.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;(e.parent=t).updateTransform(),e.updateTransform(),Ve(this.transform||(this.transform=[]),e.transform||ze()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Xe(this.invTransform,this.transform),this.decomposeTransform()},WI.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}}},WI.prototype.getViewRect=function(){return this._viewRect},WI.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},WI.prototype.dataToPoint=function(t,e,n){e=e?this._rawTransform:this.transform;return n=n||[],e?FI(n,t,e):Ht(n,t)},WI.prototype.pointToData=function(t){var e=this.invTransform;return e?FI([],t,e):[t[0],t[1]]},WI.prototype.convertToPixel=function(t,e,n){e=HI(e);return e===this?e.dataToPoint(n):null},WI.prototype.convertFromPixel=function(t,e,n){e=HI(e);return e===this?e.pointToData(n):null},WI.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},WI.dimensions=["x","y"],WI);function WI(t){var e=VI.call(this)||this;return e.type="view",e.dimensions=["x","y"],e._roamTransformable=new Go,e._rawTransformable=new Go,e.name=t,e}function HI(t){t=t.seriesModel;return t?t.coordinateSystem:null}function XI(t,e,n){t=t.target;t.x+=e,t.y+=n,t.dirty()}function YI(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 UI="\0_ec_interaction_mutex";function ZI(t,e){return jI(t)[e]}function jI(t){return t[UI]||(t[UI]={})}Bv({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Vt);u(JI,qI=ce),JI.prototype.isDragging=function(){return this._dragging},JI.prototype.isPinching=function(){return this._pinching},JI.prototype.setPointerChecker=function(t){this.pointerChecker=t},JI.prototype.dispose=function(){this.disable()},JI.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)}},JI.prototype._mousemoveHandler=function(t){var e,n,i,o,r,a;this._dragging&&tT("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!ZI(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),QI(this,"pan","moveOnMouseMove",t,{dx:r,dy:a,oldX:i,oldY:o,newX:e,newY:n,isAvailableBehavior:null}))},JI.prototype._mouseupHandler=function(t){Pe(t)||(this._dragging=!1)},JI.prototype._mousewheelHandler=function(t){var e=tT("zoomOnMouseWheel",t,this._opt),n=tT("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,$I(this,"zoom","zoomOnMouseWheel",t,{scale:0<i?e:1/e,originX:r,originY:a,isAvailableBehavior:null})),n)&&$I(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})},JI.prototype._pinchHandler=function(t){ZI(this._zr,"globalPan")||$I(this,"zoom",null,t,{scale:1<t.pinchScale?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})};
1var qI,KI=JI;function JI(n){var t=qI.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=B(x(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 $I(t,e,n,i,o){t.pointerChecker&&t.pointerChecker(i,o.originX,o.originY)&&(Le(i.event),QI(t,e,n,i,o))}function QI(t,e,n,i,o){o.isAvailableBehavior=T(tT,null,n,i),t.trigger(e,o)}function tT(t,e,n){n=n[t];return!t||n&&(!Y(n)||e.event[n+"Key"])}var eT={axisPointer:1,tooltip:1,brush:1};function nT(t,e,n){e=e.getComponentByElement(t.topTarget),t=e&&e.coordinateSystem;return e&&e!==n&&!eT.hasOwnProperty(e.mainType)&&t&&t.model!==n}function iT(){this.parentPoint=[],this.childPoints=[]}u(uT,rT=K),uT.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},uT.prototype.getDefaultShape=function(){return new iT},uT.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,o=e.parentPoint,r=n[0],a=n[i-1];if(1===i)t.moveTo(o[0],o[1]),t.lineTo(r[0],r[1]);else{var s=e.orient,l="TB"===s||"BT"===s?0:1,s=1-l,e=q(e.forkPosition,1),u=[];u[l]=o[l],u[s]=o[s]+(a[s]-o[s])*e,t.moveTo(o[0],o[1]),t.lineTo(u[0],u[1]),t.moveTo(r[0],r[1]),u[l]=r[l],t.lineTo(u[0],u[1]),u[l]=a[l],t.lineTo(u[0],u[1]),t.lineTo(a[0],a[1]);for(var h=1;h<i-1;h++){var c=n[h];t.moveTo(c[0],c[1]),u[l]=c[l],t.lineTo(u[0],u[1])}}};var oT,rT,aT=uT,sT=(u(lT,oT=jy),lT.prototype.init=function(t,e){this._controller=new KI(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},lT.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){hT(o,t)&&cT(o,t,null,r,i)}).update(function(t,e){var n=a.getItemGraphicEl(e);hT(o,t)?cT(o,t,n,r,i):n&&fT(a,e,n,r,i)}).remove(function(t){var e=a.getItemGraphicEl(t);e&&fT(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},lT.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 GI);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},lT.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)&&!nT(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){XI(i,t.dx,t.dy),r.dispatchAction({seriesId:o.id,type:"treeRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){YI(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()})},lT.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl(function(t,e){t.setSymbolScale(n)})},lT.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)},lT.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},lT.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},lT.type="tree",lT);function lT(){var t=null!==oT&&oT.apply(this,arguments)||this;return t.type=lT.type,t._mainGroup=new j,t}function uT(t){return rT.call(this,t)||this}function hT(t,e){t=t.getItemLayout(e);return t&&!isNaN(t.x)&&!isNaN(t.y)}function cT(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 cw(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=g=void 0,p.x===t.x&&!0===a.isExpand&&l.children.length?(f=(l.children[0].getLayout().x+l.children[d-1].getLayout().x)/2,l=(l.children[0].getLayout().y+l.children[d-1].getLayout().y)/2,(g=Math.atan2(l-t.y,f-t.x))<0&&(g=2*Math.PI+g),(y=f<t.x)&&(g-=Math.PI)):((g=Math.atan2(p.y-t.y,p.x-t.x))<0&&(g=2*Math.PI+g),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(y=p.x<t.x)&&(g-=Math.PI):(y=p.x>t.x)||(g-=Math.PI)),d=y?"left":"right",t=(f=(l=s.getModel("label")).get("rotate"))*(Math.PI/180),y=r.getTextContent())&&(r.setTextConfig({position:l.get("position")||d,rotation:null==f?-g:t,origin:"center"}
1),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),f=a,g=u,t=i,y=c,s=h,r=p,l=e,o=f.getModel(),u=d.get("edgeShape"),c=d.get("layout"),h=d.getOrient(),p=d.get(["lineStyle","curveness"]),e=d.get("edgeForkPosition"),m=o.getModel("lineStyle").getLineStyle(),v=t.__edge;if("curve"===u)f.parentNode&&f.parentNode!==g&&C(v=v||(t.__edge=new Hh({shape:gT(c,h,p,y,y)})),{shape:gT(c,h,p,s,r)},d);else if("polyline"===u&&"orthogonal"===c&&f!==g&&f.children&&0!==f.children.length&&!0===f.isExpand){for(var x=f.children,_=[],b=0;b<x.length;b++){var w=x[b].getLayout();_.push([w.x,w.y])}C(v=v||(t.__edge=new aT({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||f.isExpand)&&(v.useStyle(B({strokeNoScale:!0,fill:null},m)),Iu(v,o,"lineStyle"),ru(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||nu(i.__edge,t)})}function pT(t,e,n,i,o){var r,a,s=dT(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?xc(r,{shape:gT(l,e,a,s,s),style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}):"polyline"===t&&"orthogonal"===i.get("layout")&&xc(r,{shape:{parentPoint:[s.x,s.y],childPoints:[[s.x,s.y]]},style:{opacity:0}},i,{cb:function(){n.remove(r)},removeOpt:o}))}function dT(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 fT(e,t,n,i,o){var r=e.tree.getNodeByDataIndex(t),a=dT(e.tree.root,r).sourceLayout,s={duration:o.get("animationDurationUpdate"),easing:o.get("animationEasingUpdate")};xc(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){pT(t,e,i,o,s)}),pT(r,e,i,o,s)}function gT(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,f,g;return"radial"===t?(u=i.rawX,h=i.rawY,c=o.rawX,p=o.rawY,t=RI(u,h),d=RI(u,h+(p-h)*n),f=RI(c,p+(h-p)*n),g=RI(c,p),{x1:t.x||0,y1:t.y||0,x2:g.x||0,y2:g.y||0,cpx1:d.x||0,cpy1:d.y||0,cpx2:f.x||0,cpy2:f.y||0}):(u=i.x,h=i.y,c=o.x,p=o.y,"LR"!==e&&"RL"!==e||(r=u+(c-u)*n,a=h,s=c+(u-c)*n,l=p),"TB"!==e&&"BT"!==e||(r=u,a=h+(p-h)*n,s=c,l=p+(h-p)*n),{x1:u,y1:h,x2:c,y2:p,cpx1:r,cpy1:a,cpx2:s,cpy2:l})}var yT=i();function mT(n){var i=n.mainData,t=n.datas;t||(t={main:i},n.datasAttr={main:"data"}),n.datas=n.mainData=null,ST(i,t,n),X(t,function(e){X(i.TRANSFERABLE_METHODS,function(t){e.wrapMethod(t,P(vT,n))})}),i.wrapMethod("cloneShallow",P(_T,n)),X(i.CHANGABLE_METHODS,function(t){i.wrapMethod(t,P(xT,n))}),Tt(t[i.dataType]===i)}function vT(t,e){var n;return yT(n=this).mainData===n?ST((n=H({},yT(this).datas))[this.dataType]=e,n,t):MT(e,this.dataType,yT(this).mainData,t),e}function xT(t,e){return t.struct&&t.struct.update(),e}function _T(n,i){return X(yT(i).datas,function(t,e){t!==i&&MT(t.cloneShallow(),e,i,n)}),i}function bT(t){var e=yT(this).mainData;return null==t||null==e?e:yT(e).datas[t]}function wT(){var e=yT(this).mainData;return null==e?[{data:e}]:V(G(yT(e).datas),function(t){return{type:t,data:yT(e).datas[t]}})}
1function ST(n,t,i){yT(n).datas={},X(t,function(t,e){MT(t,e,n,i)})}function MT(t,e,n,i){yT(n).datas[e]=t,yT(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=bT,t.getLinkedDataAll=wT}TT.prototype.isRemoved=function(){return this.dataIndex<0},TT.prototype.eachNode=function(t,e,n){A(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)},TT.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},TT.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}},TT.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}},TT.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},TT.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},TT.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},TT.prototype.getValue=function(t){var e=this.hostTree.data;return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},TT.prototype.setLayout=function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},TT.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},TT.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},TT.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},TT.prototype.setVisual=function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},TT.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},TT.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},TT.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},TT.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},TT.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},TT.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)};var IT=TT;function TT(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}AT.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},AT.prototype.getNodeByDataIndex=function(t){t=this.data.getRawIndex(t);return this._nodes[t]},AT.prototype.getNodeById=function(t){return this.root.getNodeById(t)},AT.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},AT.prototype.clearLayouts=function(){this.data.clearItemLayouts()},AT.createTree=function(t,e,n){var l=new AT(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 IT(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),Mx(u,{coordDimensions:["value"],dimensionsCount:h}).dimensions),t=new Sx(t,e);return t.initData(u),n&&n(t),mT({mainData:t,struct:l,structAttr:"tree"}),l.update(),l};var CT=AT;function AT(t){this.type="tree",this._nodes=[],this.hostModel=t}function DT(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 kT(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function LT(t,e){return 0<=F(kT(t),e)}function PT(t,e){for(var n=[];t;){var i=t.dataIndex;
1n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}u(RT,OT=Ny),RT.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Ip(n,this,this.ecModel),o=CT.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},RT.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},RT.prototype.setZoom=function(t){this.option.zoom=t},RT.prototype.setCenter=function(t){this.option.center=t},RT.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 vy("nameValue",{name:a,value:i,noValue:isNaN(i)||null==i})},RT.prototype.getDataParams=function(t){var e=OT.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=PT(t,this),e.collapsed=!t.isExpand,e},RT.type="series.tree",RT.layoutMode="box",RT.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 OT,NT=RT;function RT(){var t=null!==OT&&OT.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}function ET(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 zT(t,D){t.eachSeriesByType("tree",function(t){var e=function(t,e){return Id(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e=D),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,NI(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(i=e.width,o=e.height,NI());var a,s,l,u,h,c,p,d,f,g=(e=t.getData().tree.root).children[0];if(g){var y=e;y.hierNode={defaultAncestor:null,ancestor:y,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var m,v,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=PI,M=r,I=[g],T=[];w=I.pop();)if(T.push(w),w.isExpand){var C=w.children;if(C.length)for(var A=0;A<C.length;A++)I.push(C[A])}for(;w=T.pop();)S(w,M);e.hierNode.modifier=-g.hierNode.prelim,ET(g,OI),ET(l=s=a=g,function(t){var e=t.getLayout().x;e<a.getLayout().x&&(a=t),e>s.getLayout().x&&(s=t),t.depth>l.depth&&(l=t)}),e=a===s?1:r(a,s)/2,u=e-a.getLayout().x,d=p=c=h=0,"radial"===n?(h=i/(s.getLayout().x+e+u),c=o/(l.depth-1||1),ET(g,function(t){p=(t.getLayout().x+u)*h,d=(t.depth-1)*c;var e=RI(p,d);t.setLayout({x:e.x,y:e.y,rawX:p,rawY:d},!0)})):"RL"===(f=t.getOrient())||"LR"===f?(c=o/(s.getLayout().x+e+u),h=i/(l.depth-1||1),ET(g,function(t){d=(t.getLayout().x+u)*c,p="LR"===f?(t.depth-1)*h:i-(t.depth-1)*h,t.setLayout({x:p,y:d},!0)})):"TB"!==f&&"BT"!==f||(h=i/(s.getLayout().x+e+u),c=o/(l.depth-1||1),ET(g,function(t){p=(t.getLayout().x+u)*h,d="TB"===f?(t.depth-1)*c:o-(t.depth-1)*c,t.setLayout({x:p,y:d},!0)}))}})}function BT(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 VT(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function FT(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(VT(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(VT(t,a),i),t.setZoom(s*r)),{center:t.getCenter(),zoom:t.getZoom()}}r(function(t){t.registerChartView(sT),t.registerSeriesModel(NT),t.registerLayout(zT),t.registerVisual(BT),(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=FT(t.coordinateSystem,n,void 0,i);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)}
1)})});var GT=["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=sf(a,of,r,null,n,i,o);t.setVisual("decal",a)})}u(YT,HT=Ny),YT.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data},i=(!function e(t){var n=0;X(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 Ip({itemStyle:o},this,e),a=V((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 X(t=t||[],function(t){var t=new Ip(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 Ip(t,r,e)},this),s=CT.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},YT.prototype.optionUpdated=function(){this.resetViewRoot()},YT.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t);return vy("nameValue",{name:i.getName(t),value:o})},YT.prototype.getDataParams=function(t){var e=HT.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treeAncestors=PT(t,this),e.treePathInfo=e.treeAncestors,e},YT.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},H(this.layoutInfo,t)},YT.prototype.mapIdToIndex=function(t){var e=this._idIndexMap,n=(e||(e=this._idIndexMap=R(),this._idIndexMapCount=0),e.get(t));return null==n&&e.set(t,n=this._idIndexMapCount++),n},YT.prototype.getViewRoot=function(){return this._viewRoot},YT.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)},YT.prototype.enableAriaDecal=function(){WT(this)},YT.type="series.treemap",YT.layoutMode="box",YT.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 HT,XT=YT;function YT(){var t=null!==HT&&HT.apply(this,arguments)||this;return t.type=YT.type,t.preventUsingHoverLayer=!0,t}ZT.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),Td(u,e.pos,e.box))},ZT.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})}},ZT.prototype._renderContent=function(t,e,n,i,o,r,a){for(var s,l,u,h,c,p,d,f,g,y,m,v,x,_=0,b=e.emptyItemWidth,w=t.get(["breadcrumb","height"]),S=(p=e.pos,d=e.box,g=d.width,d=d.height,y=q(p.left,g),m=q(p.top,d),v=q(p.right,g),x=q(p.bottom,d),(isNaN(y)||isNaN(parseFloat(p.left)))&&(y=0),(isNaN(v)||isNaN(parseFloat(p.right)))&&(v=g),(isNaN(m)||isNaN(parseFloat(p.top)))&&(m=0),(isNaN(x)||isNaN(parseFloat(p.bottom)))&&(x=d),f=pd(f||0),{width:Math.max(v-y-f[1]-f[3],0),height:Math.max(x-m-f[0]-f[2],0)}),M=e.totalWidth,I=e.renderList,T=i.getModel("itemStyle").getItemStyle(),
1C=I.length-1;0<=C;C--){var A=I[C],D=A.node,k=A.width,A=A.text,L=(S.width<M&&(M-=k-b,k=b,A=null),new Ah({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:B(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new J({style:np(o,{text:A})}),textConfig:{position:"inside"},z2:1e5,onclick:P(a,D)}));L.disableLabelAnimation=!0,L.getTextContent().ensureState("emphasis").style=np(r,{text:A}),L.ensureState("emphasis").style=T,bu(L,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(L),h=t,s=D,$(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}},ZT.prototype.remove=function(){this.group.removeAll()};var UT=ZT;function ZT(t){this.group=new j,t.add(this.group)}qT.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)},qT.prototype.finished=function(t){return this._finishedCallback=t,this},qT.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 jT=qT;function qT(){this._storage=[],this._elExistsMap={}}var KT,JT=j,$T=cl,QT="label",tC="upperLabel",eC=100,nC=20,iC=30,oC=Sa([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),rC=function(t){t=oC(t);return t.stroke=t.fill=t.lineWidth=null,t},aC=i(),sC=(u(lC,KT=jy),lC.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=DT(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))},lC.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new JT,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},lC.prototype._doRender=function(t,z,B){var i,e=z.getData().tree,n=this._oldTree,V=uC(),F=uC(),G=this._storage,W=[],o=(!function n(i,o,R,r,E){function t(t){return t.getId()}function a(t,e){var O=null!=t?i[t]:null,N=null!=e?o[e]:null,t=function(){var u=z,l=F,h=G,c=B,p=V,e=W,d=O,t=N,n=R,i=E;if(d){var f=d.getLayout(),o=u.getData(),g=d.getModel();if(o.setItemGraphicEl(d.dataIndex,null),f&&f.isInView){var r,a,s,y=f.width,m=f.height,v=f.borderWidth,x=f.invisible,_=d.getRawIndex(),b=t&&t.getRawIndex(),t=d.viewChildren,w=f.upperHeight,t=t&&t.length,S=g.getModel("itemStyle"),M=g.getModel(["emphasis","itemStyle"]),I=g.getModel(["blur","itemStyle"]),T=g.getModel(["select","itemStyle"]),C=S.get("borderRadius")||0,A=P("nodeGroup",JT);if(A)return n.add(A),A.x=f.x||0,A.y=f.y||0,A.markRedraw(),aC(A).nodeWidth=y,aC(A).nodeHeight=m,f.isAboveViewRoot||((n=P("background",$T,i,nC))&&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?D:(e.invisible=!1,i=(l=d.getVisual("style")).stroke,(o=rC(S)).fill=i,(r=oC(M)).fill=M.get("borderColor"),(a=oC(I)).fill=I.get("borderColor"),(s=oC(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,ru))(e),t.add(e)}(A,n,t&&f.upperLabelHeight),a=g.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?(Cu(A)&&Tu(A,!1),n&&(Tu(n,!a),o.setItemGraphicEl(d.dataIndex,n),wu(n,s,r))):((t=P("content",$T,i,iC))&&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?D:(e.invisible=!1,s=(a=d.getVisual("style")).fill,(n=rC(S)).fill=s,n.decal=a.decal,i=oC(M),o=oC(I),r=oC(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,ru))(e),t.add(e)}(A,t),n.disableMorphing=!0,n&&Cu(n)&&Tu(n,!1),Tu(A,!a),o.setItemGraphicEl(d.dataIndex,A),wu(A,s,r))),A}}function D(t){t.invisible||e.push(t)}function k(n,t,e,i){var o,r,a=g.getModel(i?tC:QT),s=Qr(g.get("name"),null),a=a.getShallow("show"),l=(tp(n,ep(g,i?tC:QT),{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,f),L((a=l.getState("emphasis"))?a.style:null,i,f))}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 JT?(r.oldX=o.x,r.oldY=o.y):r.oldShape=H({},o.shape)):x||((a=new e)instanceof ja&&(a.z2=n*eC+i),r=a,o=s[_]={},e=d.parentNode,r=r instanceof j,!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||[],N&&N.viewChildren||[],t,r,E+1)}r?X(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=uC(),G&&X(G,function(t,e){var n=i[e];X(t,function(t){t&&(n.push(t),aC(t).willDelete=!0)})}),i);return this._oldTree=e,this._storage=F,{lastsForAnimation:V,willDeleteEls:o,renderFinally:function(){X(o,function(t){X(t,function(t){t.parent&&t.parent.remove(t)})}),X(W,function(t){t.invisible=!0,t.dirty()})}}},lC.prototype._doAnimation=function(t,o,e,a){var n=e.get("animationDurationUpdate"),e=e.get("animationEasing"),s=(A(n)?0:n)||0,l=(A(e)?null:e)||"cubicOut",u=ne
1w jT;X(o.willDeleteEls,function(t,r){X(t,function(t,e){var n,i,o;!t.invisible&&(n=t.parent,o=aC(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)})}),X(this._storage,function(t,i){X(t,function(t,e){var e=o.lastsForAnimation[i][e],n={};e&&(t instanceof j?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()},lC.prototype._resetController=function(t){var e=this._controller,i=(e||((e=this._controller=new KI(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)})},lC.prototype._clearController=function(){var t=this._controller;t&&t.dispose()},lC.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}})},lC.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}}))},lC.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)&&xd(e,n))},this)},lC.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 UT(this.group))).render(e,t,n.node,function(t){"animating"!==i._state&&(LT(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))})},lC.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=uC(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},lC.prototype.dispose=function(){this._clearController()},lC.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},lC.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},lC.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},lC.type="treemap",lC);function lC(){var t=null!==KT&&KT.apply(this,arguments)||this;return t.type=lC.type,t._state="ready",t._storage=uC(),t}function uC(){return{nodeGroup:[],background:[],content:[]}}var hC=X,cC=O,pC=-1,dC=(fC.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},fC.prototype.getNormalizer=function(){return T(this._normalizeData,this)},fC.listVisualTypes=function(){return G(fC.visualHandlers)},fC.isValidType=function(t){return fC.visualHandlers.hasOwnProperty(t)},fC.eachVisual=function(t,e,n){O(t)?X(t,e,n):e.call(n,t)},fC.mapVisual=function(t,n,i){var o,r=W(t)?[]:O(t)?{}:(o=!0,null);return fC.eachVisual(t,function(t,e){t=n.call(i,t,e);o?r=t:r[e]=t}),r},fC.retrieveVisuals=function(n){var i,o={};return n&&hC(fC.visualHandlers,function(t,e){n.hasOwnProperty(e)&&(o[e]=n[e],i=!0)}),i?o:null},fC.prepareVisualTypes=function(t){if(W(t))t=t.slice();else{if(!cC(t))return[];var n=[];hC(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},fC.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},fC.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(IC(l[1],n,u[1]))return r}else if(u[1]===1/0){if(IC(l[0],u[0],n))return r}else if(IC(l[0],u[0],n)&&IC(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)}},fC.visualHandlers={color:{applyVisual:vC("color"),getColorMapper:function(){var o=this.option;return T("category"===o.mappingMethod?function(t,e){return e||(t=this._normalizeData(t)),xC.call(this,t)}:function(t,e,n){var i=!!n;return n=Ii(t=e?t:this._normalizeData(t),o.parsedVisual,n),i?n:Di(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Di(Ii(t,this.option.parsedVisual),"rgba")},category:xC,piecewise:function(t,e){e=wC.call(this,e);return e=null==e?Di(Ii(t,this.option.parsedVisual),"rgba"):e},fixed:_C}},colorHue:yC(function(t,e){return Ci(t,e)}),colorSaturation:yC(function(t,e){return Ci(t,null,e)}),colorLightness:yC(function(t,e){return Ci(t,null,null,e)}),colorAlpha:yC(Ai),decal:{applyVisual:vC("decal"),_normalizedToVisual:{linear:null,category:xC,piecewise:null,fixed:null}},opacity:{applyVisual:vC("opacity"),_normalizedToVisual:bC([0,1])},liftZ:{applyVisual:vC("liftZ"),_normalizedToVisual:{linear:_C,category:_C,piecewise:_C,fixed:_C}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:mC,category:xC,piecewise:function(t,e){e=wC.call(this,e);return e=null==e?mC.call(this,t):e},fixed:_C}},symbolSize:{applyVisual:vC("symbolSize"),_normalizedToVisual:bC([0,1])}},fC);function fC(t){var n,i,e=t.mappingMethod,o=t.type,t=this.option=x(t),o=(this.type=o,this.mappingMethod=e,this._normalizeData=MC[e],fC.visualHandlers[o]);if(this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[e],"piecewise"===e)gC(t),o=(i=t).pieceList,i.hasSpecialVisual=!1,X(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;hC(r,function(t,e){a[t]=e}),W(s)||(n=[],O(s)?hC(s,function(t,e){e=a[e];n[null!=e?e:pC]=t}):n[pC]=s,s=SC(o,n));for(var l=r.length-1;0<=l;l--)null==s[l]&&(delete a[r[l]],r.pop())}else gC(t,!0);else Tt("linear"!==e||t.dataExtent),gC(t)}function gC(t,e){var n=t.visual,i=[];O(n)?hC(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]),SC(t,i)}function yC(i){return{applyVisual:function(t,e,n){t=this.mapValueToVisual(t);n("color",i(e("color"),t))},_normalizedToVisual:bC([0,1])}}function mC(t){var e=this.option.visual;return e[Math.round(br(t,[0,1],[0,e.length-1],!0))]||{}}function vC(i){return function(t,e,n){n(i,this.mapValueToVisual(t))}}function xC(t){var e=this.option.visual;return e[this.option.loop&&t!==pC?t%e.length:t]}function _C(){return this.option.visual[0]}function bC(n){return{linear:function(t){return br(t,n,this.option.visual,!0)},category:xC,piecewise:function(t,e){e=wC.call(this,e);return e=null==e?br(t,n,this.option.visual,!0):e},fixed:_C}}function wC(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){e=n[dC.findPieceIndex(t,n)];if(e&&e.visual)return e.visual[this.type]}}function SC(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=V(e,function(t){t=wi(t);return t||[0,0,0,1]})),e}var MC={linear:function(t){return br(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,t=dC.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?pC:t},fixed:Vt};function IC(t,e,n){return t?e<=n:e<n}var TC="itemStyle",CC=i(),AC={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;
1a&&!a.invisible&&a.isInView&&(u=r.getModel(TC),h=DC(u,e,o),e=s.ensureUniqueItemVisual(t.dataIndex,"style"),s=u.get("borderColor"),null!=(c=u.get("borderColorSaturation"))&&(s=LC(c,l=kC(h))),e.stroke=s,(c=t.viewChildren)&&c.length?(p=OC(0,r,a,0,h,c),X(c,function(t,e){(t.depth>=i.length||t===i[t.depth])&&n(t,RC(r,h,t,e,p,o),i,o)})):(l=kC(h),e.fill=l))}}(e,{},t.getViewRoot().getAncestors(),t)}};function DC(n,i,t){var o=H({},i),r=t.designatedVisualItemStyle;return X(["color","colorAlpha","colorSaturation"],function(t){r[t]=i[t];var e=n.get(t);(r[t]=null)!=e&&(o[t]=e)}),o}function kC(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?Ai(n,e):n}function LC(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 OC(t,e,n,i,o,r){if(r&&r.length){var a,r=NC(e,"color")||null!=o.color&&"none"!==o.color&&(NC(e,"colorAlpha")||NC(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 dC(a),CC(e).drColorMappingBy=o,e}}function NC(t,e){t=t.get(e);return W(t)&&t.length?{name:e,range:t}:null}function RC(t,e,n,i,o,r){var a,s,e=H({},e);return o&&(i="index"===(s="color"===(a=o.type)&&CC(o).drColorMappingBy)?i:"id"===s?r.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension")),e[a]=o.mapValueToVisual(i)),e}var EC=Math.max,zC=Math.min,BC=wt,VC=X,FC=["itemStyle","borderWidth"],GC=["itemStyle","gapWidth"],WC=["upperLabel","show"],HC=["upperLabel","height"],XC={seriesType:"treemap",reset:function(t,e,n,i){var o,r=n.getWidth(),a=n.getHeight(),s=t.option,n=Id(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=s.size||[],u=q(BC(n.width,l[0]),r),l=q(BC(n.height,l[1]),a),h=i&&i.type,c=DT(i,["treemapZoomToNode","treemapRootToNode"],t),i="treemapRender"===h||"treemapMove"===h?i.rootRect:null,p=t.getViewRoot(),d=kT(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(),f=d.get(FC);(l+=4*f*f+(3*f+Math.max(f,jC(d)))*Math.pow(l,.5))>Ar&&(l=Ar),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(FC),u=s.get(GC)/2,h=jC(s),c=Math.max(l,h),p=l-u,d=c-u,l=(e.setLayout({borderWidth:l,upperHeight:c,upperLabelHeight:h},!0),(r=EC(r-2*p,0))*(a=EC(a-p-d,0))),f=YC(e,s,l,n,i,o);if(f.length){for(var g={x:p,y:d,width:r,height:a},y=zC(r,a),m=1/0,v=[],x=v.area=0,_=f.length;x<_;){var b=f[x],b=(v.push(b),v.area+=b.getLayout().area,UC(v,y,n.squareRatio));m=b<=m?(x++,b):(v.area-=v.pop().getLayout().area,ZC(v,y,g,u,!1),y=zC(g.width,g.height),1/(v.length=v.area=0))}for(v.length&&ZC(v,y,g,u,!0),i||null!=(c=s.get("childrenVisibleMin"))&&l<c&&(i=!0),x=0,_=f.length;x<_;x++)t(f[x],n,i,o+1)}}}(p,l,!1,0),o=p.getLayout(),VC(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),VC(t.viewChildren||[],function(t){e(t,u,i,o,r+1)}))}}(u,new z(-n.x,-n.y,r,a),d,p,0)}};function YC(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],VC(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 UC(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?EC(e*o/l,l/(e*r)):1/0}function ZC(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],f={},g=h?d.getLayout().area/h:0,y=f[l[a]]=EC(h-2*i,0),m=n[s[r]]+n[l[r]]-u,m=c===p-1||m<g?m:g,g=f[l[r]]=EC(m-2*i,0);f[s[a]]=n[s[a]]+zC(i,y/2),f[s[r]]=u+zC(i,g/2),u+=m,d.setLayout(f,!0)}n[s[a]]+=h,n[l[a]]-=h}function jC(t){return t.get(WC)?t.get(HC):0}r(function(t){t.registerSeriesModel(XT),t.registerChartView(sC),t.registerVisual(AC),t.registerLayout(XC);for(var e=t,n=0;n<GT.length;n++)e.registerAction({type:GT[n],update:"updateView"},Vt);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(o,t){t.eachComponent({mainType:"series",subType:"treemap",query:o},function(t,e){var n,i=DT(o,["treemapZoomToNode","treemapRootToNode"],t);i&&((n=t.getViewRoot())&&(o.direction=LT(n,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node))})})});u(JC,qC=xh),JC.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=k0(c,o)),Bb(a.getModel("itemStyle"),u,!0)),o=(H(u,c),X(zl,function(t){var e=r.ensureState(t),t=a.getModel([t,"itemStyle"]),t=(e.style=t.getItemStyle(),Bb(t,u));t&&(e.shape=t)}),t?(r.setShape(u),r.shape.r=l.r0,mc(r,{shape:{r:l.r}},n,e.dataIndex)):(C(r,{shape:u},n),wc(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"));bu(this,"ancestor"===c?e.getAncestorsIndices():"descendant"===c?e.getDescendantIndices():c,s.get("blurScope"),s.get("disabled"))},JC.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),f=this,g=f.getTextContent(),y=this.node.dataIndex,t=n.get("minA
1ngle")/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}g.ignore=!t,X(Bl,function(t){var e="normal"===t?l.getModel("label"):l.getModel([t,"label"]),n="normal"===t,i=n?g:g.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?f:f.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):U(o)&&(n=o*Math.PI/180),i.rotation=Os(n)}),g.dirtyStyle()};var qC,KC=JC;function JC(t,e,n,i){var o=qC.call(this)||this,r=(o.z2=2,o.textConfig={inside:!0},$(o).seriesIndex=e.seriesIndex,new J({z2:4,silent:t.getModel().get(["label","silent"])}));return o.setTextContent(r),o.updateData(!0,t,e,n,i),o}var $C="sunburstRootToNode",QC="sunburstHighlight",t2="sunburstUnhighlight";u(i2,e2=jy),i2.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=[],f=(h.eachNode(function(t){d.push(t)}),this._oldChildren||[]);function g(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=f,0===(r=d).length&&0===a.length||new qv(a,r,g,g).add(y).update(y).remove(P(y,null)).execute(),f=u,0<(e=h).depth?(s.virtualPiece?s.virtualPiece.updateData(!1,f,n,i,o):(s.virtualPiece=new KC(f,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},i2.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"))&&xd(t,e.get("target",!0)||"_blank"),i=!0)})})},i2.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:$C,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},i2.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},i2.type="sunburst";var e2,n2=i2;function i2(){var t=null!==e2&&e2.apply(this,arguments)||this;return t.type=i2.type,t}u(a2,o2=Ny),a2.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data},i=(!function e(t){var n=0;X(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=V(t.levels||[],function(t){return new Ip(t,this,e)},this)),o=CT.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},a2.prototype.optionUpdated=function(){this.resetViewRoot()},a2.prototype.getDataParams=function(t){var e=o2.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=PT(t,this),e},a2.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},a2.prototype.getViewRoot=function(){return this._viewRoot},a2.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)},a2.prototype.enableAriaDecal=function(){WT(this)},a2.type="series.sunburst",a2.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}}
1,animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"};var o2,r2=a2;function a2(){var t=null!==o2&&o2.apply(this,arguments)||this;return t.type=a2.type,t.ignoreStyleOnData=!0,t}var s2=Math.PI/180;function l2(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=q(t[0],n),d=q(t[1],i),f=q(e[0],c/2),n=q(e[1],c/2),t=-h.get("startAngle")*s2,g=h.get("minAngle")*s2,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=u2(i,n),i.length&&X(t.children,function(t){e(t,n)})}(i,e),0),v=(X(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-f)/(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)<g?g:i),r=t.depth-m-(_?-1:1),o=f+b*r,r=f+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=q(a,c/2)),null!=s)&&(r=q(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,X(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:f,r:f+b})),I(i,t)})}function u2(e,n){var t,i;return A(n)?((t=V(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)}),V(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 h2(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 c2(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(n2),t.registerSeriesModel(r2),t.registerLayout(P(l2,"sunburst")),t.registerProcessor(P(eS,"sunburst")),t.registerVisual(h2),(t=t).registerAction({type:$C,update:"updateView"},function(o,t){t.eachComponent({mainType:"series",subType:"sunburst",query:o},function(t,e){var n,i=DT(o,[$C],t);i&&((n=t.getViewRoot())&&(o.direction=LT(n,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node))})}),t.registerAction({type:QC,update:"none"},function(e,t,n){e=H({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t){t=DT(e,[QC],t);t&&(e.dataIndex=t.node.dataIndex)}),n.dispatchAction(H(e,{type:"highlight"}))}),t.registerAction({type:t2,update:"updateView"},function(t,e,n){t=H({},t),n.dispatchAction(H(t,{type:"downplay"}))})});var p2,d2={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"},f2=G(d2),g2={"alignment-baseline":"textBaseline","stop-color":"stopColor"},y2=G(g2),m2=(x2.prototype.parse=function(t,e){e=e||{};var t=c2(t),n=(this._defsUsePending=[],new j),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),M2(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=A2(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=O2(s,{x:0,y:0,width:r,height:a}),!e.ignoreViewBox)&&(o=n,(n=new j).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 cl({shape:{x:0,y:0,width:r,height:a}})),{root:n,width:r,height:a,viewBoxRect:s,viewBoxTransform:l,named:i}},x2.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=p2[l])&&Z(p2,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=v2[l])&&Z(v2,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},x2.prototype._parseText=function(t,e){var n=new Js({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0}),t=(w2(e,n),M2(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
1());return this._textX+=i.width,e.add(n),n},x2.internalField=void(p2={g:function(t,e){var n=new j;return w2(e,n),M2(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new cl;return w2(e,n),M2(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 w2(e,n),M2(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 zh;return w2(e,n),M2(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 nh;return w2(e,n),M2(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=S2(i)),new Ah({shape:{points:n||[]},silent:!0}));return w2(e,i),M2(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,i=t.getAttribute("points"),i=(i&&(n=S2(i)),new Ph({shape:{points:n||[]},silent:!0}));return w2(e,i),M2(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new nl;return w2(e,n),M2(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 j);return w2(e,n),M2(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 j;return w2(e,o),M2(t,o,this._defsUsePending,!1,!0),this._textX+=parseFloat(n),this._textY+=parseFloat(i),o},path:function(t,e){var n=qu(t.getAttribute("d")||"");return w2(e,n),M2(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),x2),v2={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 tc(e,n,i,o);return _2(t,e),b2(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 ic(e,n,i);return _2(t,e),b2(t,e),e}};function x2(){this._defs={},this._root=null}function _2(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function b2(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,P2(o,i={},i),i=i.stopColor||o.getAttribute("stop-color")||"#000000",e.colorStops.push({offset:n,color:i})),o=o.nextSibling}function w2(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),B(e.__inheritedStyle,t.__inheritedStyle))}function S2(t){for(var e=A2(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 M2(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(D2,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=A2(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])*k2);break;case"skewX":var f=Math.tan(parseFloat(d[0])*k2);Fe(h,[1,0,f,1,0,0],h);break;case"skewY":f=Math.tan(parseFloat(d[0])*k2);Fe(h,[1,f,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(P2(t,a,s),!i){for(var g=t,y=a,m=s,v,x=0;x<f2.length;x++){var _=f2[x];null!=(v=g.getAttribute(_))&&(y[d2[_]]=v)}for(x=0;x<y2.length;
1x++)_=y2[x],null!=(v=g.getAttribute(_))&&(m[g2[_]]=v)}}r.style=r.style||{},null!=a.fill&&(r.style.fill=T2(r,"fill",a.fill,n)),null!=a.stroke&&(r.style.stroke=T2(r,"stroke",a.stroke,n)),X(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){null!=a[t]&&(r.style[t]=parseFloat(a[t]))}),X(["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=V(A2(a.lineDash),function(t){return parseFloat(t)})),"hidden"!==a.visibility&&"collapse"!==a.visibility||(r.invisible=!0),"none"===a.display&&(r.ignore=!0)}var I2=/^url\(\s*#(.*?)\)/;function T2(t,e,n,i){var o=n&&n.match(I2);if(!o)return n="none"===n?null:n;n=Ct(o[1]);i.push([t,e,n])}var C2=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function A2(t){return t.match(C2)||[]}var D2=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,k2=Math.PI/180;var L2=/([^\s:;]+)\s*:\s*([^:;]+)/g;function P2(t,e,n){var i,o=t.getAttribute("style");if(o)for(L2.lastIndex=0;null!=(i=L2.exec(o));){var r=i[1],a=Z(d2,r)?d2[r]:null,a=(a&&(e[a]=i[2]),Z(g2,r)?g2[r]:null);a&&(n[a]=i[2])}}function O2(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 N2=R(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),R2=(E2.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=R(),X(e,function(t){var e;null==t.namedFrom&&(e=new a_(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}},E2.prototype._buildGraphic=function(t){var e,n,i,o;try{Tt(null!=(n=(e=t&&(i=t,o={ignoreViewBox:!0,ignoreRootClip:!0},(new m2).parse(i,o))||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var r,a,s,l,u=new j,h=(u.add(n),u.isGeoSVGGraphicRoot=!0,e.width),c=e.height,p=e.viewBoxRect,d=this._boundingRect,f=(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=O2(p,d),n.scaleX=n.scaleY=c.scale,n.x=c.x,n.y=c.y),u.setClipPath(new cl({shape:d.plain()})),[]);return X(e.named,function(t){null!=N2.get(t.svgNodeTagLower)&&(f.push(t),(t=t.el).silent=!1,t.isGroup)&&t.traverse(function(t){t.silent=!1})}),{root:u,boundingRect:d,named:f}},E2.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)},E2.prototype.freeGraphic=function(t){var e=this._usedGraphicMap,n=e.get(t);n&&(e.removeKey(t),this._freedGraphics.push(n))},E2);function E2(t,e){this.type="geoSVG",this._usedGraphicMap=R(),this._freedGraphics=[],this._mapName=t,this._parsedXML=c2(e)}for(var z2=[126,25],B2=[[[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]]],V2=0;V2<B2.length;V2++)for(var F2=0;F2<B2[V2].length;F2++)B2[V2][F2][0]/=10.5,B2[V2][F2][1]/=-14,B2[V2][F2][0]+=z2[0],B2[V2][F2][1]+=z2[1];var G2={"åæµ·è¯¸å²":[32,80],"广ä¸":[0,-10],"馿¸¯":[10,5],"æ¾³é¨":[-10,10],"天津":[5,5]};var W2=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];X2.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;
1n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}(e)})),R()),r=[];return X(i.regions,function(t){var e=t.name;n&&Z(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}},X2.prototype._parseToRegions=function(t){var e,r=this._mapName,n=this._geoJSON;try{e=n?h_(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 i_("åæµ·è¯¸å²",V(B2,function(t){return{type:"polygon",exterior:t}}),z2))}}(r,e),X(e,function(t){var e,n,i=t.name,o=(o=t,"china"===(e=r)&&(e=G2[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:W2[0]}),this._specialAreas&&this._specialAreas[i]);o&&t.transformTo(o.left,o.top,o.width,o.height)},this),e},X2.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}};var H2=X2;function X2(t,e,n){this.type="geoJSON",this._parsedMap=R(),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 Y2=R(),U2={registerMap:function(t,e,n){var i,e=e.svg?new R2(t,e.svg):((i=e.geoJson||e.geoJSON)&&!e.features?n=e.specialAreas:i=e,new H2(t,i,n));Y2.set(t,e)},getGeoResource:function(t){return Y2.get(t)},getMapForUser:function(t){t=Y2.get(t);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(t,e,n){t=Y2.get(t);if(t)return t.load(e,n)}},Hm=["rect","circle","line","ellipse","polygon","polyline","path"],Z2=R(Hm),j2=R(Hm.concat(["g"])),q2=R(Hm.concat(["g"])),K2=i();function J2(t){var e=t.getItemStyle(),t=t.get("areaColor");return null!=t&&(e.fill=t),e}function $2(t){t=t.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}tA.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)},tA.prototype._buildGeoJSON=function(h){var c=this._regionsGroupByName=R(),p=R(),d=this._regionsGroup,n=h.transformInfoRaw,f=h.mapOrGeoModel,g=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(),X(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 j),d.add(i),o=g?g.indexOfName(n):null,r=h.isGeo?f.getRegionModel(n):g?g.getItemModel(o):null,p.set(n,{dataIdx:o,regionModel:r})),[]),s=[],l=(X(t.geometries,function(t){var e;"polygon"===t.type?(e=[t.exterior].concat(t.interiors||[]),X(e=m?aA(e,m):e,function(t){a.push(new Ah(x(t)))})):(e=t.points,X(e=m?aA(e,m,!0):e,function(t){s.push(new Ph(x(t)))}))}),v(t.getCenter(),y&&y.project));function u(t,e){t.length&&(t=new Kh({culling:!0,segmentIgnoreThreshold:1,shape:{paths:t}}),i.add(t),eA(h,t,o,r),nA(h,t,n,r,f,o,l),e)&&($2(t),X(t.states,$2))}u(a),u(s,!0)}),c.each(function(t,e){var n=p.get(e),i=n.dataIdx,n=n.regionModel;iA(h,t,e,n,f,i),oA(h,t,e,n,f),rA(h,t,e,n,f)},this)},tA.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=R()),u=!1;X(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!=Z2.get(o)&&r instanceof ja&&eA(s,r,i,a),r instanceof ja&&(r.culling=!0),r.z2EmphasisLift=0,t.namedFrom||(null!=q2.get(o)&&nA(s,r,e,a,n,i,null),iA(s,r,e,a,n,i),oA(s,r,e,a,n),null!=j2.get(o)&&("self"===rA(s,r,e,a,n)&&(u=!0),(l.get(e)||l.set(e,[])).push(r)))},this),this._enableBlurEntireSVG(u,s)},tA.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||(ru(t),null==(e=t.ensureState("blur").style||{}).opacity&&null!=n&&(e.opacity=n),t.ensureState("emphasis"))}))},tA.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},tA.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)||[]},tA.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},tA.prototype._useSVG=function(t){var e=U2.getGeoResource(t);e&&"geoSVG"===e.type&&(e=e.useGraphic(this.uid),this._svgGroup.add(e.root),this._svgGraphicRecord=e,this._svgMapName=t)},tA.prototype._freeSVG=function(){var t=this._svgMapName;null!=t&&((t=U2.getGeoResource(t))&&"geoSVG"===t.type&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null)},tA.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,XI(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,YI(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])&&!nT(t,o,i)})},tA.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){t=t.getTextContent();t&&(t.ignore=K2(t).ignore)})},tA.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 Q2=tA;function tA(t){var e=new j;this.uid=Ap("ec_map_draw"),this._controller=new KI(t.getZr()),this._controllerHost={target:e},(this.group=e).add(this._regionsGroup=new j),e.add(this._svgGroup=new j)}function eA(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=J2(r),a=J2(a),i=J2(i),s=J2(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=k0(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,ru(e)}function nA(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())&&(K2(s).ignore=s.ignore,e.textConfig)&&a&&(r=e.getBoundingRect
1().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 iA(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 oA(t,e,n,i,o){t.data||Zc({el:e,componentModel:o,itemName:n,itemTooltipOption:i.get("tooltip")})}function rA(t,e,n,i,o){e.highDownSilentOnTouch=!!o.get("selectedMode");var i=i.getModel("emphasis"),r=i.get("focus");return bu(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 aA(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(),X(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(uA,sA=jy),uA.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 Q2(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))},uA.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},uA.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},uA.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){nu(n,t)}),l.add(n))})},uA.type="map";var sA,lA=uA;function uA(){var t=null!==sA&&sA.apply(this,arguments)||this;return t.type=uA.type,t}u(pA,hA=Ny),pA.prototype.getInitialData=function(t){for(var e=dS(this,{coordDimensions:["value"],encodeDefaulter:P(Jd,this)}),n=R(),i=[],o=0,r=e.count();o<r;o++){var a=e.getName(o);n.set(a,!0)}return X(U2.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},pA.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},pA.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},pA.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},pA.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},pA.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 vy("section",{header:s.join(", "),noHeader:!s.length,blocks:[vy("nameValue",{name:r,value:o})]})},pA.prototype.setZoom=function(t){this.option.zoom=t},pA.prototype.setCenter=function(t){this.option.center=t},pA.prototype.getLegendIcon=function(t){var e=t.icon||"roundRect",n=Qm(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},pA.type="series.map",pA.dependencies=["geo"],pA.layoutMode="box",pA.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 hA,cA=pA;function pA(){var t=null!==hA&&hA.apply(this,arguments)||this;return t.type=pA.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 dA(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)}),X(n,function(t,e){l=V(t,function(t){return t.getData()}),u=t[0].get("mapValueCalculation"),h={},X(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}
1),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 fA(n){var o={};n.eachSeriesByType("map",function(t){var a,i,e=t.getMapType();t.getHostGeoModel()||o[e]||(a={},X(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 gA,yA={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},mA=["lng","lat"],vA=(u(xA,gA=GI),xA.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()},xA.prototype.getRegion=function(t){return this._regionsMap.get(t)},xA.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]}},xA.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},xA.prototype.getGeoCoord=function(t){var e=this._regionsMap.get(t);return this._nameCoordMap.get(t)||e&&e.getCenter()},xA.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)},xA.prototype.pointToData=function(t){var e=this.projection;return(t=e?e.unproject(t):t)&&this.pointToProjected(t)},xA.prototype.pointToProjected=function(t){return gA.prototype.pointToData.call(this,t)},xA.prototype.projectedToPoint=function(t,e,n){return gA.prototype.dataToPoint.call(this,t,e,n)},xA.prototype.convertToPixel=function(t,e,n){e=_A(e);return e===this?e.dataToPoint(n):null},xA.prototype.convertFromPixel=function(t,e,n){e=_A(e);return e===this?e.pointToData(n):null},xA);function xA(t,e,n){t=gA.call(this,t)||this;t.dimensions=mA,t.type="geo",t._nameCoordMap=R(),t.map=e;var i,o=n.projection,r=U2.load(e,n.nameMap,n.nameProperty),e=U2.getGeoResource(e),a=(t.resourceType=e?e.type:null,t.regions=r.regions),e=yA[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)}
1else i=r.boundingRect;return t.setBoundingRect(i.x,i.y,i.width,i.height),t.aspectScale=o?1:N(n.aspectScale,e.aspectScale),t._invertLongitute=!o&&e.invertLongitute,t}function _A(t){var e=t.geoModel,t=t.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",sa).models[0]||{}).coordinateSystem:null}function bA(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=[q(n[0],c),q(n[1],p)],o=q(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=Id(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(vA,GI),SA.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 vA(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=bA,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))}),X(n,function(t,e){var n=V(t,function(t){return t.get("nameMap")}),i=new vA(e,e,H({nameMap:at(n)},a(t[0])));i.zoomLimit=wt.apply(null,V(t,function(t){return t.get("scaleLimit")})),r.push(i),i.resize=bA,i.resize(t[0],o),X(t,function(t){var n;t.coordinateSystem=i,n=i,X(t.get("geoCoord"),function(t,e){n.addGeoCoord(e,t)})})}),r},SA.prototype.getFilledRegions=function(t,e,n,i){for(var o=(t||[]).slice(),r=R(),a=0;a<o.length;a++)r.set(o[a].name,o[a]);return X(U2.load(e,n,i).regions,function(t){t=t.name;r.get(t)||o.push({name:t})}),o};var wA=new SA;function SA(){this.dimensions=mA}u(TA,MA=f),TA.prototype.init=function(t,e,n){var i=U2.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"])},TA.prototype.optionUpdated=function(){var i=this,t=this.option,o=(t.regions=wA.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 Ip(e,i,i.ecModel)),e.selected)&&(o[n]=!0),t},R()),t.selectedMap||(t.selectedMap=o)},TA.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Ip(null,this,this.ecModel)},TA.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 A(n)?(i.status=e,n(i)):Y(n)?n.replace("{a}",null!=t?t:""):void 0},TA.prototype.setZoom=function(t){this.option.zoom=t},TA.prototype.setCenter=function(t){this.option.center=t},TA.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},TA.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},TA.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},TA.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},TA.type="geo",TA.layoutMode="box",TA.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 MA,IA=TA;function TA(){var t=null!==MA&&MA.apply(this,arguments)||this;return t.type=TA.type,t}u(DA,CA=Hy),DA.prototype.init=function(t,e){this._api=e},DA.prototype.render=function(t,e,n,i){var o;(this._model=t).get("show")?(this._mapDraw||(this._mapDraw=new Q2(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)},DA.prototype._handleRegionClick=function(t){var e;Fm(t.target,function(t){return null!=(e=$(t).eventData)},!0),e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:e.name})},DA.prototype.updateSelectStatus=function(t,e,n){var i=this;
1this._mapDraw.group.traverse(function(t){var e=$(t).eventData;if(e)return i._model.isSelected(e.name)?n.enterSelect(t):n.leaveSelect(t),!0})},DA.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},DA.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},DA.type="geo";var CA,AA=DA;function DA(){var t=null!==CA&&CA.apply(this,arguments)||this;return t.type=DA.type,t.focusBlurEnabled=!0,t}function kA(t,e,n){U2.registerMap(t,e,n)}function LA(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);X(e.coordinateSystem.regions,function(t){i[t.name]=e.isSelected(t.name)||!1});var n=[];X(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",wA),e.registerComponentModel(IA),e.registerComponentView(AA),e.registerImpl("registerMap",kA),e.registerImpl("getMap",function(t){return U2.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=FT(n,i,t.get("scaleLimit"),o),t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom),"series"===r)&&X(t.seriesGroup,function(t){t.setCenter(e.center),t.setZoom(e.zoom)})})})}r(function(t){r(LA),t.registerChartView(lA),t.registerSeriesModel(cA),t.registerLayout(fA),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dA),Bm("map",t.registerAction)});function PA(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}var OA,NA=zh.prototype,RA=Hh.prototype;function EA(){return null!==OA&&OA.apply(this,arguments)||this}function zA(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}u(EA,OA=PA);u(FA,BA=K),FA.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},FA.prototype.getDefaultShape=function(){return new PA},FA.prototype.buildPath=function(t,e){(zA(e)?NA:RA).buildPath.call(this,t,e)},FA.prototype.pointAt=function(t){return(zA(this.shape)?NA:RA).pointAt.call(this,t)},FA.prototype.tangentAt=function(t){var e=this.shape,e=zA(e)?[e.x2-e.x1,e.y2-e.y1]:RA.tangentAt.call(this,t);return $t(e,e)};var BA,VA=FA;function FA(t){t=BA.call(this,t)||this;return t.type="ec-line",t}var GA=["fromSymbol","toSymbol"];function WA(t){return"_"+t+"Type"}function HA(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=t0(i))+e0(r||0,n)+(o||"")+(e||"")):a}function XA(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=e0(o||0,n=t0(r)),(r=Qm(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 YA(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(jA,UA=j),jA.prototype._createLine=function(n,i,t){var e,o=n.hostModel,r=(r=n.getItemLayout(i),YA((e=new VA({name:"line",subPixelOptimize:!0})).shape,r),e);r.shape.percent=0,mc(r,{shape:{percent:1}},o,i),this.add(r),X(GA,function(t){var e=XA(t,n,i);this.add(e),this[WA(t)]=HA(t,n,i)},this),this._updateCommonStl(n,i,t)},jA.prototype.updateData=function(i,o,t){var e=i.hostModel,n=this.childOfName("line"),r=i.getItemLayout(o),a={shape:{}};YA(a.shape,r),C(n,a,e,o),X(GA,function(t){var e=HA(t,i,o),n=WA(t);this[n]!==e&&(this.remove(this.childOfName(t)),t=XA(t,i,o),this.add(t)),this[n]=e},this),this._updateCommonStl(i,o,t)},jA.prototype.getLinePath=function(){return this.childAt(0)},jA.prototype._updateCommonStl=function(n,t,e){var i=n.hostModel,r=this.childOfName("line"),o=e&&e.emphasisLineStyle,a=e&&e.blurLineStyle,s=e&&e.selectLineStyle,l=e&&e.labelStatesModels,u=e&&e.emphasisDisabled,h=e&&e.focus,c=e&&e.blurScope,p=(e&&!n.hasItemOption||(o=(f=(e=n.getItemModel(t)).getModel("emphasis")).getModel("lineStyle").getLineStyle(),a=e.getModel(["blur","lineStyle"]).getLineStyle(),s=e.getModel(["select","lineStyle"]).getLineStyle(),u=f.get("disabled"),h=f.get("focus"),c=f.get("blurScope"),l=ep(e)),n.getItemVisual(t,"style")),d=p.stroke,f=(r.useStyle(p),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,X(GA,function(t){var e=this.childOfName(t);if(e){e.setColor(d),e.style.opacity=p.opacity;for(var n=0;n<zl.length;n++){var i=zl[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==f?n.getName(t):isFinite(f)?wr(f):f)+""}),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}),bu(this,h,c,u)},jA.prototype.highlight=function(){lu(this)},jA.prototype.downplay=function(){uu(this)},jA.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},jA.prototype.setLinePoints=function(t){var e=this.childOfName("line");YA(e.shape,t),e.dirty()},jA.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($t(u,u),t&&(t.setPosition(s),v(t,0),t.scaleX=t.scaleY=i*a,t.markRedraw()),e&&(e.setPosition(l),v(e,1),e.scaleX=e.scaleY=i*a,e.markRedraw()),n&&!n.ignore){n.x=n.y=0;var h=void(n.originX=n.originY=0),c=void 0,t=n.__labelDistance,p=t[0]*i,d=t[1]*i,e=a/2,f=r.tangentAt(e),t=[f[1],-f[0]],g=r.pointAt(e),y=(0<t[1]&&(t[0]=-t[0],t[1]=-t[1]),f[0]<0?-1:1),m=("start"!==n.__position&&"end"!==n.__position&&(a=-Math.atan2(f[1],f[0]),l[0]<s[0]&&(a=Math.PI+a),n.rotation=a),void 0);switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":m=-d,c="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":m=d,c="top";break;default:m=0,c="middle"}switch(n.__position){case"end":n.x=u[0]*p+l[0],n.y=u[1]*d+l[1],h=.8<u[0]?"left":u[0]<-.8?"right":"center",c=.8<u[1]?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*p+s[0],n.y=-u[1]*d+s[1],h=.8<u[0]?"right":u[0]<-.8?"left":"center",c=.8<u[1]?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=p*y+s[0],n.y=s[1]+m,h=f[0]<0?"right":"left",n.originX=-p*y,n.originY=-m;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=g[0],n.y=g[1]+m,h="center",n.originY=-m;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-p*y+l[0],n.y=l[1]+m,h=0<=f[0]?"right":"left",n.originX=p*y,n.originY=-m}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||c,align:n.__align||h})}}}function v(t,e){var n,i=t.__specifiedRotation;null==i?(n=r.tangentAt(e),t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))):t.attr("rotation",i)}};var UA,ZA=jA;function jA(t,e,n){var i=UA.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(),JA(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=JA(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;
1o++)QA(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){QA(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);QA(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 qA=KA;function KA(t){this.group=new j,this._LineCtor=t||ZA}function JA(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 $A(t){return isNaN(t[0])||isNaN(t[1])}function QA(t){return t&&!$A(t[0])&&!$A(t[1])}u(nD,tD=j),nD.prototype.createLine=function(t,e,n){return new ZA(t,e,n)},nD.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=Qm(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))},nD.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=A(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)},nD.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())},nD.prototype._getLineLength=function(t){return te(t.__p1,t.__cp1)+te(t.__cp1,t.__p2)},nD.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]},nD.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},nD.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=Jn,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]},nD.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)};var tD,eD=nD;function nD(t,e,n){var i=tD.call(this)||this;return i.add(i.createLine(t,e,n)),i._updateEffectSymbol(t,e),i}u(rD,iD=j),rD.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),i=new Ph({shape:{points:i}});this.add(i),this._updateCommonStl(t,e,n)},rD.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)},rD.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,bu(this,a,s,l)},rD.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))};var iD,oD=rD;function rD(t,e,n){var i=iD.call(this)||this;return i._createPolyline(t,e,n),i}u(lD,aD=eD),lD.prototype.createLine=function(t,e,n){return new oD(t,e,n)},lD.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},lD.prototype._getLineLength=function(){return this._length},lD.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 aD,sD=lD;function lD(){var t=null!==aD&&aD.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}function uD(){this.polyline=!1,this.curveness=0,this.segs=[]}u(fD,hD=K),fD.prototype.reset=function(){this.notClear=!1,this._off=0},fD.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},fD.prototype.getDefaultShape=function(){return new uD},fD.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)},fD.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}
1a++}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},fD.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)},fD.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 hD,cD=fD,pD=(dD.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},dD.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},dD.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)},dD.prototype.remove=function(){this._clear()},dD.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},dD.prototype._create=function(){var t=new cD({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},dD.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)})},dD.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},dD);function dD(){this.group=new j}function fD(t){t=hD.call(this,t)||this;return t._off=0,t.hoverDataIdx=-1,t}var gD,yD={seriesType:"lines",plan:Yy(),reset:function(f){var g,y,m=f.coordinateSystem;if(m)return g=f.get("polyline"),y=f.pipelineContext.large,{progress:function(t,e){var n=[];if(y){var i=void 0,o=t.end-t.start;if(g){for(var r=0,a=t.start;a<t.end;a++)r+=f.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=f.getLineCoords(a,n);g&&(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=f.getLineCoords(a,n),[]);if(g)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)}}}}},mD=(u(vD,gD=jy),vD.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)&&Ab(t.coordinateSystem,!1,t));s?this.group.setClipPath(s):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},vD.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},vD.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},vD.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},vD.prototype.updateTransform=function(t,e,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};o=yD.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},vD.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 pD:new qA(o?i?sD:oD:i?eD:ZA),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=e),this.group.add(n.group),n},vD.prototype._showEffect=function(t){return!!t.get(["effect","show"])},vD.prototype._clearLayer=function(t){t=t.getZr();"svg"!==t.painter.getType()&&null!=this._lastZlevel&&t.painter.getLayer(this._lastZlevel).clear(!0)},vD.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},vD.prototype.dispose=function(t,e){this.remove(t,e)},vD.type="lines",vD);function vD(){var t=null!==gD&&gD.apply(this,arguments)||this;
1return t.type=vD.type,t}var xD="undefined"==typeof Uint32Array?Array:Uint32Array,_D="undefined"==typeof Float64Array?Array:Float64Array;function bD(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=V(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(MD,wD=Ny),MD.prototype.init=function(t){t.data=t.data||[],bD(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),wD.prototype.init.apply(this,arguments)},MD.prototype.mergeOption=function(t){var e;bD(t),t.data&&(e=this._processFlatCoordsArray(t.data),this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords)&&(t.data=new Float32Array(e.count)),wD.prototype.mergeOption.apply(this,arguments)},MD.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)},MD.prototype._getCoordsFromItemModel=function(t){t=this.getData().getItemModel(t);return t.option instanceof Array?t.option:t.getShallow("coords")},MD.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},MD.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},MD.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),U(t[0])){for(var n=t.length,i=new xD(n),o=new _D(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}},MD.prototype.getInitialData=function(t,e){var o=new Sx(["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},MD.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),vy("nameValue",{name:i.join(" > ")}))},MD.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},MD.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},MD.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},MD.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+"":""},MD.type="series.lines",MD.dependencies=["grid","polar","geo","calendar"],MD.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 wD,SD=MD;function MD(){var t=null!==wD&&wD.apply(this,arguments)||this;return t.type=MD.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}function ID(t){return t=t instanceof Array?t:[t,t]}var TD={seriesType:"lines",reset:function(t){var e=ID(t.get("symbol")),n=ID(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=ID(n.getShallow("symbol",!0)),n=ID(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 CD(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){U(e)&&(e=o[e]);for(var n=0;n<r.length;n++)if(!r[n].isSelected(e))return!1}return!0})})}function AD(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;
1r++){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 DD(t){return t=t instanceof Array?t:[t,t]}function kD(t){t.eachSeriesByType("graph",function(t){var s=t.getGraph(),l=t.getEdgeData(),e=DD(t.get("edgeSymbol")),n=DD(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=DD(e.getShallow("symbol",!0)),o=DD(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(mD),t.registerSeriesModel(SD),t.registerLayout(yD),t.registerVisual(TD)});var LD="--\x3e",PD=function(t){return t.get("autoCurveness")||null},OD=function(t,e){var n=PD(t),i=20,o=[];if(U(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},ND=function(t,e,n){t=[t.id,t.dataIndex].join("."),e=[e.id,e.dataIndex].join(".");return[n.uid,t,e].join(LD)},RD=function(t){t=t.split(LD);return[t[0],t[2],t[1]].join(LD)},ED=function(t,e){t=ND(t.node1,t.node2,e);return e.__edgeMap[t]},zD=function(t,e){return BD(ND(t.node1,t.node2,e),e)+BD(ND(t.node2,t.node1,e),e)},BD=function(t,e){e=e.__edgeMap;return e[t]?e[t].length:0};function VD(t,e,n,i){var o=PD(e),r=W(o);if(!o)return null;var a=ED(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=zD(t,e),t=(OD(e,u),t.lineStyle=t.lineStyle||{},ND(t.node1,t.node2,e)),h=e.__curvenessList,u=r||u%2?0:1;return a.isForward?h[u+s]:(t=RD(t),e=h[s+(t=BD(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 FD(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")])}),GD(e,t))}function GD(t,r){t.eachEdge(function(t,e){var e=St(t.getModel().get(["lineStyle","curveness"]),-VD(t,r,e,!0),0),n=Xt(t.node1.getLayout()),i=Xt(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 WD(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=[];X(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])}GD(i.graph,t)}else e&&"none"!==e||FD(t)})}function HD(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 XD(t){t=t.getVisual("symbolSize");return+(t=t instanceof Array?(t[0]+t[1])/2:t)}var YD=Math.PI,UD=[];function ZD(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],$t(n=[n-l,h-u],n),Jt(n,n,r),e.setLayout([l+n[0],u+n[1]],!0),qD(e,s.get(["circular","rotateLabel"]),l,u)),jD[t](s,o,i,r,l,u,a),o.eachEdge(function(t,e){var n,e=St(t.getModel().get(["lineStyle","curveness"]),VD(t,s,e),0),i=Xt(t.node1.getLayout()),o=Xt(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 jD={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=(UD.length=a,HD(t)),u=(e.eachNode(function(t){var e=XD(t),e=((e=isNaN(e)?2:e)<0&&(e=0),e*=l,Math.asin(e/2/i));isNaN(e)&&(e=YD/2),UD[t.dataIndex]=e,s+=2*e}),(2*YD-s)/a/2),h=0;e.eachNode(function(t){var e=u+UD[t.dataIndex];h+=e,t.getLayout()&&t.getLayout().fixed||t.setLayout([i*Math.cos(h)+o,i*Math.sin(h)+r]),h+=e})}};function qD(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 KD(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&ZD(t,"symbolSize")})}var JD=Zt;function $D(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])}
1):e&&"none"!==e?"circular"===e&&ZD(o,"value"):FD(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"]),-VD(n,o,e,!0),0);return{n1:l[n.node1.dataIndex],n2:l[n.node2.dataIndex],d:t,curveness:e,ignoreForceLayout:i.get("ignoreForceLayout")}}),n=d.getBoundingRect(),(u=function(t,e,n){for(var d=t,f=e,i=(t=n.rect).width,o=t.height,g=[t.x+i/2,t.y+o/2],y=null==n.gravity?.1:n.gravity,r=0;r<d.length;r++){var a=d[r];a.p||(a.p=Wt(i*(Math.random()-.5)+g[0],o*(Math.random()-.5)+g[1])),a.pp=Xt(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,f);for(var e=[],n=d.length,i=0;i<f.length;i++){var o,r,a=f[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),$t(e,e),s.fixed||JD(s.p,s.p,e,a*r*x),o.fixed)||JD(o.p,o.p,e,-(1-a)*r*x)}for(i=0;i<n;i++)(h=d[i]).fixed||(jt(e,g,h.p),JD(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))&&(Yt(e,Math.random()-.5,Math.random()-.5),r=1);var u=(s.rep+o.rep)/r/r;s.fixed||JD(s.pp,s.pp,e,u),o.fixed||JD(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),JD(h.p,h.p,c,x),Ht(h.pp,h.p));var p=(x*=.992)<.01;v&&v(d,f,p),t&&t(p)}}}(l,e,{rect:n,gravity:t.get("gravity"),friction:t.get("friction")})).beforeStep(function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].fixed&&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 QD(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=Id(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 GI).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 tk=[],ek=[],nk=[],ik=Kn,ok=ne,rk=Math.abs;function ak(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)tk[0]=ik(o[0],r[0],a[0],h),tk[1]=ik(o[1],r[1],a[1],h),(d=rk(ok(tk,e)-l))<s&&(s=d,i=h);for(var c=0;c<32;c++){var p=i+u,d=(ek[0]=ik(o[0],r[0],a[0],i),ek[1]=ik(o[1],r[1],a[1],i),nk[0]=ik(o[0],r[0],a[0],p),nk[1]=ik(o[1],r[1],a[1],p),ok(ek,e)-l);if(rk(d)<.01)break;p=ok(nk,e)-l;u/=2,d<0?0<=p?i+=u:i-=u:0<=p?i-=u:i+=u}return i}function sk(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=[Xt(o[0]),Xt(o[1])],o[2]&&o.__original.push(Xt(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=XD(t.node1),i=ak(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=XD(t.node2),i=ak(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]),$t(d,d),r&&"n
1one"!==r&&(n=XD(t.node1),Zt(p[0],p[0],d,n*l)),a&&"none"!==a&&(n=XD(t.node2),Zt(p[1],p[1],d,-n*l)),Ht(o[0],p[0]),Ht(o[1],p[1]))})}function lk(t){return"view"===t.type}u(ck,uk=jy),ck.prototype.init=function(t,e){var n=new mw,i=new qA,o=this.group;this._controller=new KI(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},ck.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=(lk(n)&&(n={x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},this._firstRender?s.attr(n):C(s,n,r)),sk(r.getGraph(),HD(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),ZD(r,"symbolSize",e,[t.offsetX,t.offsetY]),a.updateLayout(r);break;default:l.setItemLayout(n,[i.x,i.y]),GD(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"),f=l.getLayout("cy");l.graph.eachNode(function(t){qD(t,p,d,f)}),this._firstRender=!1},ck.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},ck.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())})}()},ck.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)&&!nT(t,r,o)}),lk(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){XI(i,t.dx,t.dy),r.dispatchAction({seriesId:o.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){YI(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(),sk(o.getGraph(),HD(o)),e._lineDraw.updateLayout(),r.updateLabelLayout()})):n.disable()},ck.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=HD(t);e.eachItemGraphicEl(function(t,e){t&&t.setSymbolScale(n)})},ck.prototype.updateLayout=function(t){sk(t.getGraph(),HD(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},ck.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},ck.type="graph";var uk,hk=ck;function ck(){var t=null!==uk&&uk.apply(this,arguments)||this;return t.type=ck.type,t}function pk(t){return"_EC_"+t}vk.prototype.isDirected=function(){return this._directed},vk.prototype.addNode=function(t,e){var n=this._nodesMap;if(!n[pk(t=null==t?""+e:""+t)])return((e=new fk(t,e)).hostGraph=this).nodes.push(e),n[pk(t)]=e},vk.prototype.getNodeByIndex=function(t){t=this.data.getRawIndex(t);return this.nodes[t]}
1,vk.prototype.getNodeById=function(t){return this._nodesMap[pk(t)]},vk.prototype.addEdge=function(t,e,n){var i=this._nodesMap,o=this._edgesMap;if(U(t)&&(t=this.nodes[t]),U(e)&&(e=this.nodes[e]),t instanceof fk||(t=i[pk(t)]),e instanceof fk||(e=i[pk(e)]),t&&e)return i=t.id+"-"+e.id,((n=new gk(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},vk.prototype.getEdgeByIndex=function(t){t=this.edgeData.getRawIndex(t);return this.edges[t]},vk.prototype.getEdge=function(t,e){t instanceof fk&&(t=t.id),e instanceof fk&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},vk.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)},vk.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)},vk.prototype.breadthFirstTraverse=function(t,e,n,i){if(e=e instanceof fk?e:this._nodesMap[pk(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}}}},vk.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},vk.prototype.clone=function(){for(var t=new vk(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 dk=vk,fk=(mk.prototype.degree=function(){return this.edges.length},mk.prototype.inDegree=function(){return this.inEdges.length},mk.prototype.outDegree=function(){return this.outEdges.length},mk.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},mk.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},mk.prototype.getTrajectoryDataIndices=function(){for(var t=R(),e=R(),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()}},mk),gk=(yk.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},yk.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},yk.prototype.getTrajectoryDataIndices=function(){var t=R(),e=R();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()}},yk);function yk(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}function mk(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}function vk(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}function xk(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)}}}ut(fk,xk("hostGraph","data")),ut(gk,xk("hostGraph","edgeData"));
1u(wk,_k=Ny),wk.prototype.init=function(t){_k.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new fS(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},wk.prototype.mergeOption=function(t){_k.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},wk.prototype.mergeDefaultAndTheme=function(t){_k.prototype.mergeDefaultAndTheme.apply(this,arguments),Zr(t,"edgeLabel",["show"])},wk.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],t=t.data||t.nodes||[],r=this;if(t&&i)return PD(n=this)&&(n.__curvenessList=[],n.__edgeMap={},OD(n)),X((n=function(t,e,n,i,o){for(var r=new dk(i),a=0;a<t.length;a++)r.addNode(wt(t[a].id,t[a].name,a),a);for(var s,l=[],u=[],h=0,a=0;a<e.length;a++){var c=e[a],p=c.source,d=c.target;r.addEdge(p,d,h)&&(u.push(c),l.push(wt(Qr(c.id,null),p+" > "+d)),h++)}return"cartesian2d"===(i=n.get("coordinateSystem"))||"polar"===i?s=Lx(t,n):(F(i=(i=bf.get(i))&&i.dimensions||[],"value")<0&&i.concat(["value"]),i=Mx(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(s=new Sx(i,n)).initData(t)),(i=new Sx(["value"],n)).initData(u,l),o&&o(s,i),mT({mainData:s,struct:r,structAttr:"graph",datas:{node:s,edge:i},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}(t,i,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=Ip.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,PD(i)&&(e=ND(e,n,i),i=(n=i.__edgeMap)[RD(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},wk.prototype.getGraph=function(){return this.getData().graph},wk.prototype.getEdgeData=function(){return this.getGraph().edgeData},wk.prototype.getCategoriesData=function(){return this._categoriesData},wk.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),vy("nameValue",{name:r.join(" > "),value:n.value,noValue:null==n.value})):ky({series:this,dataIndex:t,multipleSeries:e})},wk.prototype._updateCategoriesData=function(){var t=V(this.option.categories||[],function(t){return null!=t.value?t:H({value:0},t)}),e=new Sx(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},wk.prototype.setZoom=function(t){this.option.zoom=t},wk.prototype.setCenter=function(t){this.option.center=t},wk.prototype.isAnimationEnabled=function(){return _k.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},wk.type="series.graph",wk.dependencies=["grid","polar","geo","singleAxis","calendar"],wk.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 _k,bk=wk;function wk(){var t=null!==_k&&_k.apply(this,arguments)||this;return t.type=wk.type,t.hasSymbolVisual=!0,t}var Sk={type:"graphRoam",event:"graphRoam",update:"none"};
1r(function(t){t.registerChartView(hk),t.registerSeriesModel(bk),t.registerProcessor(CD),t.registerVisual(AD),t.registerVisual(kD),t.registerLayout(WD),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,KD),t.registerLayout($D),t.registerCoordinateSystem("graphView",{dimensions:GI.dimensions,create:QD}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Vt),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Vt),t.registerAction(Sk,function(n,t,i){t.eachComponent({mainType:"series",query:n},function(t){var e=FT(t.coordinateSystem,n,void 0,i);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})})});Mk.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=[],X(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:ex(e),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:r,type:ex(o),dimsDef:l.slice()}];return dS(this,{coordDimensions:a,dimensionsCount:l.length+1,encodeDefaulter:P(Kd,a,this)})},Mk.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis};jm=Mk;function Mk(){}u(Ck,Ik=Ny),Ck.type="series.boxplot",Ck.dependencies=["xAxis","yAxis","grid"],Ck.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 Ik,Tk=Ck;function Ck(){var t=null!==Ik&&Ik.apply(this,arguments)||this;return t.type=Ck.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(Tk,jm,!0);function Ak(){}u(Nk,kk=jy),Nk.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=Rk(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?(wc(e),Ek(n,e,i,t)):e=Rk(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},Nk.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},Nk.type="boxplot";var Dk,kk,Lk=Nk,Pk=(u(Ok,Dk=K),Ok.prototype.getDefaultShape=function(){return new Ak},Ok.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])},Ok);function Ok(t){t=Dk.call(this,t)||this;return t.type="boxplotBoxPath",t}function Nk(){var t=null!==kk&&kk.apply(this,arguments)||this;return t.type=Nk.type,t}function Rk(t,e,n,i,o){var r,a,s=t.ends,i=new Pk({shape:{points:o?(r=i,a=t,V(s,function(t){return(t=t.slice())[r]=a.initBaseline,t})):s}});return Ek(t,i,e,n,o),i}function Ek(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");Iu(e,o),bu(e,t.get("focus"),t.get("blurScope"),t.get("disabled"))}var zk=X;function Bk(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)}),zk(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,zk(i,function(t){e=Math.max(e,t.getData().count())}),t=l.getExtent(),Math.abs(t[1]-t[0])/e),zk(i,function(t){t=t.get("boxWidth");W(t)||(t=[t,t]),s.push([q(t[0],n)||0,q(t[1],n)||0])}),u=(l=.8*n-2)/o*.3,c=(h=(l-u*(o-1))/o)/2-l/2,zk(i,function(t,e){a.push(c),c+=u+h,r.push(Math.min(Math.max(h,s[e][0]),s[e][1]))}),zk(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;
1h<a.count();h++){var c=a.get(n,h),p=m(c,i[2],h),d=m(c,i[0],h),f=m(c,i[1],h),g=m(c,i[3],h),c=m(c,i[4],h),y=[];v(y,f,!1),v(y,g,!0),y.push(d,f,c,g),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 Vk={type:"echarts:boxplot",transform:function(t){var e=t.upstream,e=(e.sourceFormat!==Gd&&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),f=r?c:Math.max(c,l-d),g=r?p:Math.min(p,h+d),c=e.itemNameFormatter,y=A(c)?c({value:a}):Y(c)?c.replace("{value}",a+""):a+"";n.push([y,f,l,u,h,g]);for(var m=0;m<s.length;m++){var v=s[m];(v<f||g<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(Tk),t.registerChartView(Lk),t.registerLayout(Bk),t.registerTransform(Vk)});u(Wk,Fk=jy),Wk.prototype.init=function(){this.group.add(this._dataGroup)},Wk.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,f=Yk(i);h.diff(c).add(function(t){Uk(Xk(h,u,t,d,p),h,t,f)}).update(function(t,e){var e=c.getItemGraphicEl(e),n=Hk(h,t,d,p);h.setItemGraphicEl(t,e),C(e,{shape:{points:n}},i,t),wc(e),Uk(e,h,t,f)}).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 cl({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),s="horizontal"===s.get("layout")?"width":"height",l.setShape(s,0),mc(l,{shape:{width:o.width,height:o.height}},r,a),s=l,u.setClipPath(s)),this._data=h},Wk.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},Wk.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),o=e.coordinateSystem,r=o.dimensions,a=Yk(e),s=this._progressiveEls=[],l=t.start;l<t.end;l++){var u=Xk(i,this._dataGroup,l,r,o);u.incremental=!0,Uk(u,i,l,a),s.push(u)}},Wk.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},Wk.type="parallel";var Fk,Gk=Wk;function Wk(){var t=null!==Fk&&Fk.apply(this,arguments)||this;return t.type=Wk.type,t._dataGroup=new j,t._initialized=!1,t}function Hk(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 Xk(t,e,n,i,o){i=Hk(t,n,i,o),o=new Ph({shape:{points:i},z2:10});return e.add(o),t.setItemGraphicEl(n,o),o}function Yk(t){t=t.get("smooth",!0);return{smooth:t=bt(t=Br(t=!0===t?.3:t))?0:t}}function Uk(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");Iu(t,i,"lineStyle"),bu(t,e.get("focus"),e.get("blurScope"),e.get("disabled"))}u(qk,Zk=Ny),qk.prototype.getInitialData=function(t,e){return Lx(null,this,{useEncodeDefaulter:T(Kk,null,this)})},qk.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},qk.type="series.parallel",qk.dependencies=["parallel"],qk.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 Zk,jk=qk;function qk(){var t=null!==Zk&&Zk.apply(this,arguments)||this;return t.type=qk.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}function Kk(t){var n,t=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(t)return n={},X(t.dimensions,function(t){var e=+t.replace("dim","");n[t]=e}),n}var Jk=["lineStyle","opacity"],$k={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(Jk,!0))&&(n=t),i.ensureUniqueItemVisual(e,"style").opacity=n},t.start,t.end)}}}};function Qk(t){var e,n,i=t;i.parallel||(e=!1,X(i.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(i.parallel=[{}])),X(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(iL,tL=Hy),iL.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},X(nL,function(t,e){n.getZr().on(e,this._handlers[e]=T(t,this))},this)),rm(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},iL.prototype.dispose=function(t,n){am(this,"_throttledDispatchExpand"),X(this._handlers,function(t,e){n.getZr().off(e,t)}),this._handlers=null},iL.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},iL.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(H({type:"parallelAxisExpand"},t))},iL.type="parallel";var tL,eL=iL,nL={mousedown:function(t){oL(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(oL(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&&oL(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?
1null:{axisExpandWindow:t.axisExpandWindow,animation:"jump"===n?null:{duration:0}}))}};function iL(){var t=null!==tL&&tL.apply(this,arguments)||this;return t.type=iL.type,t}function oL(t,e){t=t._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}u(sL,rL=f),sL.prototype.init=function(){rL.prototype.init.apply(this,arguments),this.mergeOption({})},sL.prototype.mergeOption=function(t){var e=this.option;t&&d(e,t,!0),this._initDimensions()},sL.prototype.contains=function(t,e){t=t.get("parallelIndex");return null!=t&&e.getComponent("parallel",t)===this},sL.prototype.setAxisExpand=function(e){X(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},sL.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[];X(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)})},sL.type="parallel",sL.dependencies=["parallelAxis"],sL.layoutMode="box",sL.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 rL,aL=sL;function sL(){var t=null!==rL&&rL.apply(this,arguments)||this;return t.type=sL.type,t}u(hL,lL=_p),hL.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")};var lL,uL=hL;function hL(t,e,n,i,o){t=lL.call(this,t,e,n)||this;return t.type=i||"value",t.axisIndex=o,t}function cL(t,e,n,i,o,r){t=t||0;var a=n[1]-n[0],a=(null!=o&&(o=dL(o,[0,a])),null!=r&&(r=Math.max(r,null!=o?o:0)),"all"===i&&(s=dL(s=Math.abs(e[1]-e[0]),[0,a]),o=r=dL(s,[o,r]),i=0),e[0]=dL(e[0],n),e[1]=dL(e[1],n),pL(e,i));e[i]+=t;var s=o||0,t=n.slice();return a.sign<0?t[0]+=s:t[1]-=s,e[i]=dL(e[i],t),n=pL(e,i),null!=o&&(n.sign!==a.sign||n.span<o)&&(e[1-i]=e[i]+a.sign*o),n=pL(e,i),null!=r&&n.span>r&&(e[1-i]=e[i]+n.sign*r),e}function pL(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0<t||!(t<0)&&e?-1:1}}function dL(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var fL=X,gL=Math.min,yL=Math.max,mL=Math.floor,vL=Math.ceil,xL=wr,_L=Math.PI,bL=(wL.prototype._init=function(t,i,e){var n=t.dimensions,o=t.parallelAxisIndex;fL(n,function(t,e){var e=o[e],n=i.getComponent("parallelAxis",e),t=this._axesMap.set(t,new uL(t,E1(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)},wL.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},wL.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},wL.prototype.getModel=function(){return this._model},wL.prototype._updateAxesFromSeries=function(e,i){i.eachSeries(function(t){var n;e.contains(t,i)&&(n=t.getData(),fL(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),R1(e.scale,e.model)},this))},this)},wL.prototype.resize=function(t,e){this._rect=Id(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},wL.prototype.getRect=function(){return this._rect},wL.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=SL(t.get("axisExpandWidth"),s),h=SL(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=SL(p[1]-p[0],s),p[1]=p[0]+d):(d=SL(u*(h-1),s),(p=[u*(t.get("axisExpandCenter")||mL(l/2))-d/2])[1]=p[0]+d),(a-d)/(l-h)),t=(s<3&&(s=0),[mL(xL(p[0]/u,1))+1,vL(xL(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}},wL.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])}),fL(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:_L/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)},wL.prototype.getAxis=function(t){return this._axesMap.get(t)},wL.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},wL.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=[];X(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)}},wL.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},wL.prototype.axisCoordToPoint=function(t,e){return Vc([t,0],this._axesLayout[e].transform)},wL.prototype.getAxisLayout=function(t){return x(this._axesLayout[t])},wL.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)?cL(e,s,u,"all"):a="none"):(o=s[1]-s[0],(s=[yL(0,u[1]*t/o-o/2)])[1]=gL(u[1],s[0]+o),s[0]=s[1]-o),{axisExpandWindow:s,behavior:a}):{behavior:"none",axisExpandWindow:s}},wL);function wL(t,e,n){this.type="parallel",this._axesMap=R(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}function SL(t,e){return gL(yL(t,e[0]),e[1])}var ML,IL={create:function(i,o){var r=[];return i.eachComponent("parallel",function(t,e){var n=new bL(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}},TL=(u(CL,ML=f),CL.prototype.getAreaSelectStyle=function(){return Sa([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["
1width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},CL.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=x(t);if(e)for(var n=e.length-1;0<=n;n--)Sr(e[n])},CL.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"},CL);function CL(){var t=null!==ML&&ML.apply(this,arguments)||this;return t.type=CL.type,t.activeIntervals=[],t}ut(TL,H1);var AL,DL=!0,kL=Math.min,LL=Math.max,PL=Math.pow,OL=1e4,NL=6,RL=6,EL="globalPan",zL={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},BL={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},VL={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},FL=0,GL=(u(WL,AL=ce),WL.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},WL.prototype._doEnableBrush=function(t){var e,n,i=this._zr;this._enableGlobalPan||(e=EL,n=this._uid,jI(i)[e]=n),X(this._handlers,function(t,e){i.on(e,t)}),this._brushType=t.brushType,this._brushOption=d(x(VL),t,!0)},WL.prototype._doDisableBrush=function(){var t,e,n,i=this._zr;t=i,e=EL,n=this._uid,(t=jI(t))[e]===n&&(t[e]=null),X(this._handlers,function(t,e){i.off(e,t)}),this._brushType=this._brushOption=null},WL.prototype.setPanels=function(t){var e;return t&&t.length?(e=this._panels={},X(t,function(t){e[t.panelId]=x(t)})):this._panels=null,this},WL.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},WL.prototype.updateCovers=function(i){i=V(i,function(t){return d(x(VL),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]):XL(a,HL(a,n)),ZL(a,t))}},WL.prototype.unmount=function(){return this.enableBrush(!1),JL(this),this._zr.remove(this.group),this},WL.prototype.dispose=function(){this.unmount(),this.off()},WL);function WL(t){var e=AL.call(this)||this;return e._track=[],e._covers=[],e._handlers={},e._zr=t,e.group=new j,e._uid="brushController_"+FL++,X(yP,function(t,e){this._handlers[e]=T(t,this)},e),e}function HL(t,e){var n=vP[e.brushType].createCover(t,e);return n.__brushOption=e,UL(n,e),t.group.add(n),n}function XL(t,e){var n=jL(e);return n.endCreating&&(n.endCreating(t,e),UL(e,e.__brushOption)),e}function YL(t,e){var n=e.__brushOption;jL(e).updateCoverShape(t,e,n.range,n)}function UL(t,e){var n=e.z;null==n&&(n=OL),t.traverse(function(t){t.z=n,t.z2=n})}function ZL(t,e){jL(e).updateCommon(t,e),YL(t,e)}function jL(t){return vP[t.__brushOption.brushType]}function qL(t,e,n){var i,o,r=t._panels;return r?(o=t._transform,X(r,function(t){t.isTargetByCursor(e,n,o)&&(i=t)}),i):DL}function KL(t,e){t=t._panels;return t&&null!=(e=e.__brushOption.panelId)?t[e]:DL}function JL(e){var t=e._covers,n=t.length;return X(t,function(t){e.group.remove(t)},e),t.length=0,n}function $L(t,e){var n=V(t._covers,function(t){var t=t.__brushOption,e=x(t.range);return{brushType:t.brushType,panelId:t.panelId,range:e}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function QL(t){var e=t.length-1;return[t[0],t[e=e<0?0:e]]}function tP(e,n,t,i){var o=new j;return o.add(new cl({name:"main",style:oP(t),silent:!0,draggable:!0,cursor:"move",drift:P(sP,e,n,o,["n","s","w","e"]),ondragend:P($L,n,{isEnd:!0})})),X(i,function(t){o.add(new cl({name:t.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:P(sP,e,n,o,t),ondragend:P($L,n,{isEnd:!0})}))}),o}function eP(t,e,n,i){var o=i.brushStyle.lineWidth||0,r=LL(o,RL),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;iP(t,e,"main",a,s,h,n),i.transformable&&(iP(t,e,"w",l,u,r,o),iP(t,e,"e",c,u,r,o),iP(t,e,"n",l,u,d,r),iP(t,e,"s",l,p,d,r),iP(t,e,"nw",l,u,r,r),iP
1(t,e,"ne",c,u,r,r),iP(t,e,"sw",l,p,r,r),iP(t,e,"se",c,p,r,r))}function nP(n,i){var t=i.__brushOption,o=t.transformable,e=i.childAt(0);e.useStyle(oP(t)),e.attr({silent:!o,cursor:o?"move":"default"}),X([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(t){var e=i.childOfName(t.join("")),t=1===t.length?aP(n,t[0]):function(t,e){t=[aP(t,e[0]),aP(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?BL[t]+"-resize":null})})}function iP(t,e,n,i,o,r,a){var n=e.childOfName(n);n&&n.setShape((n=hP(t,e,[[i,o],[i+r,o+a]]),t=kL(n[0][0],n[1][0]),e=kL(n[0][1],n[1][1]),{x:t,y:e,width:LL(n[0][0],n[1][0])-t,height:LL(n[0][1],n[1][1])-e}))}function oP(t){return B({strokeNoScale:!0},t.brushStyle)}function rP(t,e,n,i){var o=[kL(t,n),kL(e,i)],t=[LL(t,n),LL(e,i)];return[[o[0],t[0]],[o[1],t[1]]]}function aP(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[Fc({w:"left",e:"right",n:"top",s:"bottom"}[e],Bc(t.group))]}function sP(t,e,n,i,o,r){var a=n.__brushOption,s=t.toRectRange(a.range),l=uP(e,o,r);X(i,function(t){t=zL[t];s[t[0]][t[1]]+=l[t[0]]}),a.range=t.fromRectRange(rP(s[0][0],s[1][0],s[0][1],s[1][1])),ZL(e,n),$L(e,{isEnd:!1})}function lP(t,e,n,i){var o=e.__brushOption.range,r=uP(t,n,i);X(o,function(t){t[0]+=r[0],t[1]+=r[1]}),ZL(t,e),$L(t,{isEnd:!1})}function uP(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 hP(t,e,n){e=KL(t,e);return e&&e!==DL?e.clipPath(n,t._transform):x(n)}function cP(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=qL(t,e,n);if(!t._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(r===DL||s.panelId===r.panelId)&&vP[s.brushType].contain(o[a],n[0],n[1]))return}r&&i.setCursorStyle("crosshair")}}function pP(t){t=t.event;t.preventDefault&&t.preventDefault()}function dP(t,e,n){return t.childOfName("main").contain(e,n)}function fP(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],PL(e*e+n*n,.5)>NL}(t)||a?(s&&!a&&("single"===l.brushMode&&JL(t),(r=x(l)).brushType=gP(r.brushType,s),r.panelId=s===DL?null:s.panelId,a=t._creatingCover=HL(t,r),t._covers.push(a)),a&&(r=vP[gP(t._brushType,s)],a.__brushOption.range=r.getCreatingRange(hP(t,a,t._track)),i&&(XL(t,a),r.updateCommon(t,a)),YL(t,a),o={isEnd:i})):i&&"single"===l.brushMode&&l.removeOnClick&&qL(t,e,n)&&JL(t)&&(o={isEnd:i,removeOnClick:!0}),o}function gP(t,e){return"auto"===t?e.defaultBrushType:t}var yP={mousedown:function(t){var e;this._dragging?mP(this,t):t.target&&t.target.draggable||(pP(t),e=this.group.transformCoordToLocal(t.offsetX,t.offsetY),this._creatingCover=null,(this._creatingPanel=qL(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);cP(this,t,e),this._dragging&&(pP(t),n=fP(this,t,e,!1))&&$L(this,n)},mouseup:function(t){mP(this,t)}};function mP(t,e){var n,i;t._dragging&&(pP(e),n=e.offsetX,i=e.offsetY,n=t.group.transformCoordToLocal(n,i),i=fP(t,e,n,!0),t._dragging=!1,t._track=[],t._creatingCover=null,i)&&$L(t,i)}var vP={lineX:xP(0),lineY:xP(1),rect:{createCover:function(t,e){function n(t){return t}return tP({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){t=QL(t);return rP(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(t,e,n,i){eP(t,e,n,i)},updateCommon:nP,contain:dP},polygon:{createCover:function(t,e){var n=new j;return n.add(new Ph({name:"main",style:oP(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Ah({name:"main",draggable:!0,drift:P(lP,t,e),ondragend:P($L,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:hP(t,e,n)})},updateCommon:nP,contain:dP}};function xP(r){return{createCover:function(t,e){return tP({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=QL(t);return[kL(t[0][r],t[1][r]),LL(t[0][r],t[1][r])]},updateCoverShape:function(t,e,n,i){var o=KL(t,e),o=[n,o!==DL&&o.getLinearBrushOtherExtent?o.getLinearBrushOtherExtent(r):[0,[(n=t._zr).getWidth(),n.getHeight()][1-r]]];r&&o.reverse(),eP(t,e,o,i)},updateCommon:nP,contain:dP}}function _P(e){return e=SP(e),function(t){return Hc(t,e)}}function bP(n,i){return n=SP(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 wP(t,n,i){var o=SP(t);return function(t,e){return o.contain(e[0],e[1])&&!nT(t,n,i)}}function SP(t){return z.create(t)}var MP,IP=["axisLine","axisTickLabel","axisName"],TP=(u(CP,MP=Hy),CP.prototype.init=function(t,e){MP.prototype.init.a
1pply(this,arguments),(this._brushController=new GL(e.getZr())).on("brush",T(this._onBrush,this))},CP.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 j,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 lM(t,a),X(IP,r.add,r),this._axisGroup.add(r.getGroup()),this._refreshBrushController(a,e,t,i,o,n),Wc(s,this._axisGroup,t)))},CP.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:_P(s),isTargetByCursor:wP(s,r,i),getLinearBrushOtherExtent:bP(s,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers((a=n.axis,V(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[a.dataToCoord(t[0],!0),a.dataToCoord(t[1],!0)]}})))},CP.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,e=V(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})},CP.prototype.dispose=function(){this._brushController.dispose()},CP.type="parallelAxis",CP);function CP(){var t=null!==MP&&MP.apply(this,arguments)||this;return t.type=CP.type,t}var AP={type:"axisAreaSelect",event:"axisAreaSelected"};var DP={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function kP(t){t.registerComponentView(eL),t.registerComponentModel(aL),t.registerCoordinateSystem("parallel",IL),t.registerPreprocessor(Qk),t.registerComponentModel(TL),t.registerComponentView(TP),FS(t,"parallel",TL,DP),(t=t).registerAction(AP,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(kP),t.registerChartView(Gk),t.registerSeriesModel(jk),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,$k)});function LP(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}u(NP,PP=K),NP.prototype.getDefaultShape=function(){return new LP},NP.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 PP,OP=NP;function NP(t){t=PP.call(this,t)||this;return t.type="pointer",t}function RP(t,e){var n=null==t?"":t+"";return e&&(Y(e)?n=e.replace("{value}",n):A(e)&&(n=e(t))),n}u(BP,EP=jy),BP.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:q(r[0],o.getWidth()),cy:q(r[1],o.getHeight()),r:q(i.get("radius"),a/2)});this._renderMain(t,e,n,s,l),this._data=t.getData()},BP.prototype.dispose=function(){},BP.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")?Lb:xh,c=u.get("show"),p=u.getModel("lineStyle"),d=p.get("width"),u=[s,l];Cs(u,!a);for(var f=(l=u[1])-(s=u[0]),g=s,y=[],m=0;c&&m<i.length;m++){var v=new h({shape:{startAngle:g,endAngle:l=s+f*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),g=l}y.reverse(),X(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)},BP.prototype._renderTicks=function(t,E,z,e,n,i,o,B,r){for(var a=this.group,s=n.cx,l=n.cy,u=n.r,h=+t.get("min"),V=+t.get("max"),c=t.getModel("splitLine"),p=t.getModel("axisTick"),d=t.getModel("axisLabel"),f=t.get("splitNumber"),g=p.get("splitNumber"),y=q(c.get("length"),u),m=q(p.get("length"),u),v=i,x=(o-i)/f,_=x/g,b=c.getModel("lineStyle").getLineStyle(),w=p.getModel("lineStyle").getLineStyle(),S=c.get("distance"),M=0;M<=f;M++){var I,T,C,A,D,k,L,P=Math.cos(v),O=Math.sin(v);if(c.get("show")&&(T=new zh({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/f)}),a.add(T)),d.get("show")&&(I=d.get("distance")+S,T=RP(wr(M/f*(V-h)+h),d.get("formatter")),C=e(M/f),A=P*(u-y-I)+s,D=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:U(k)&&(L=k*Math.PI/180),0===L?a.add(new J({style:np(d,{text:T,x:A,y:D,verticalAlign:O<-.8?"top":.8<O?"bottom":"middle",align:P<-.4?"left"
1:.4<P?"right":"center"},{inheritColor:C}),silent:!0})):a.add(new J({style:np(d,{text:T,x:A,y:D,verticalAlign:"middle",align:"center"},{inheritColor:C}),silent:!0,originX:A,originY:D,rotation:L}))),p.get("show")&&M!==f){I=(I=p.get("distance"))?I+r:r;for(var N=0;N<=g;N++){P=Math.cos(v),O=Math.sin(v);var R=new zh({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&&R.setStyle({stroke:e((M+N/g)/f)}),a.add(R),v+=_}v-=_}else v+=x}},BP.prototype._renderPointer=function(s,t,e,u,l,a,n,h,c){var r=this.group,p=this._data,d=this._progressEls,f=[],g=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=q(t.get("width"),l.r),i=q(t.get("length"),l.r),o=s.get(["pointer","icon"]),r=t.get("offsetCenter"),a=q(r[0],l.r),r=q(r[1],l.r),t=t.get("keepAspect");return(o=o?Qm(o,a-n/2,r-i,n,i,null,t):new OP({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")?Lb:xh,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||g)&&(v.diff(p).add(function(t){var e,n,i=v.get(x,t);g&&(mc(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"),mc(e,{shape:{endAngle:br(i,b,w,n)}},s),r.add(e),Dl(s.seriesIndex,v.dataType,t,e),f[t]=e)}).update(function(t,e){var n,i,o=v.get(x,t);g&&((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),f[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");g&&(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,Iu(e,r),bu(e,s,l,a)),m&&((o=f[t]).useStyle(v.getItemVisual(t,"style")),o.setStyle(r.getModel(["progress","itemStyle"]).getItemStyle()),o.z2EmphasisLift=0,Iu(o,r),bu(o,s,l,a))}),this._progressEls=f)},BP.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=Qm(r,e.cx-n/2+q(i[0],e.r),e.cy-n/2+q(i[1],e.r),n,n,null,o)).z2=t.get("showAbove")?1:0,r.setStyle(t.getModel("itemStyle").getItemStyle()),this.group.add(r))},BP.prototype._renderTitleAndDetail=function(c,t,e,p,d){var n=this,f=c.getData(),g=f.mapDimension("value"),y=+c.get("min"),m=+c.get("max"),v=new j,x=[],_=[],b=c.isAnimationEnabled(),w=c.get(["pointer","showAbove"]);f.diff(this._data).add(function(t){x[t]=new J({silent:!0}),_[t]=new J({silent:!0})}).update(function(t,e){x[t]=n._titleEls[e],_[t]=n._detailEls[e]}).execute(),f.each(function(t){var e,n,i,o,a,r=f.getItemModel(t),s=f.get(g,t),l=new j,u=p(br(s,[y,m],[0,1],!0)),h=r.getModel("title"),h=(h.get("show")&&(e=h.get("offsetCenter"),n=d.cx+q(e[0],d.r),e=d.cy+q(e[1],d.r),(o=x[t]).attr({z2:w?0:2,style:np(h,{x:n,y:e,text:f.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:u})}),l.add(o)),r.getModel("detail"));h.get("show")&&(n=h.get("offsetCenter"),e=d.cx+q(n[0],d.r),r=d.cy+q(n[1],d.r),n=q(h.get("width"),d.r),i=q(h.get("height"),d.r),u=c.get(["progress","show"])?f.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:RP(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 RP(t,a)}),b&&cp(o,t,f,c,{getFormattedLabel:function(t,e,n,i,o,r){return RP(r?r.interpolatedValue:s,a)}}),l.add(o)),v.add(l)}),this.group.add(v),this._titleEls=x,this._detailEls=_},BP.type="gauge";var EP,zP=BP;function BP(){var t=null!==EP&&EP.apply(this,arguments)||this;return t.type=BP.type,t}u(GP,VP=Ny),GP.prototype.getInitialData=function(t,e){return dS(this,["value"])},GP.type="series.gauge",GP.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
1:{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 VP,FP=GP;function GP(){var t=null!==VP&&VP.apply(this,arguments)||this;return t.type=GP.type,t.visualStyleAccessPath="itemStyle",t}r(function(t){t.registerChartView(zP),t.registerSeriesModel(FP)});var WP,HP,XP=["itemStyle","opacity"],YP=(u(jP,HP=Ah),jP.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(XP))?1:s;n||wc(this),this.useStyle(t.getItemVisual(e,"style")),this.style.lineJoin="round",n?(this.setShape({points:r.points}),this.style.opacity=0,mc(this,{style:{opacity:s}},i,e)):C(this,{style:{opacity:s},shape:{points:r.points}},i,e),Iu(this,o),this._updateLabel(t,e),bu(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},jP.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}),G_(this,W_(r),{stroke:l})},jP),UP=(u(ZP,WP=jy),ZP.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 YP(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){bc(o.getItemGraphicEl(t),e,t)}).execute(),this._data=i},ZP.prototype.remove=function(){this.group.removeAll(),this._data=null},ZP.prototype.dispose=function(){},ZP.type="funnel",ZP);function ZP(){var t=null!==WP&&WP.apply(this,arguments)||this;return t.type=ZP.type,t.ignoreLabelLineUpdate=!0,t}function jP(t,e){var n=HP.call(this)||this,i=n,o=new Ph,r=new J;return i.setTextContent(r),n.setTextGuideLine(o),n.updateData(t,e,!0),n}u(JP,qP=Ny),JP.prototype.init=function(t){qP.prototype.init.apply(this,arguments),this.legendVisualProvider=new fS(T(this.getData,this),T(this.getRawData,this)),this._defaultLabelLine(t)},JP.prototype.getInitialData=function(t,e){return dS(this,{coordDimensions:["value"],encodeDefaulter:P(Jd,this)})},JP.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},JP.prototype.getDataParams=function(t){var e=this.getData(),n=qP.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},JP.type="series.funnel",JP.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 qP,KP=JP;function JP(){var t=null!==qP&&qP.apply(this,arguments)||this;return t.type=JP.type,t}function $P(t,C){t.eachSeriesByType("funnel",function(t){function e(t,e){if("horizontal"===l){var n=br(a.get(s,t)||0,[f,g],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,[f,g],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,Id(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 A(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?[q(t.get("minSize"),h),q(t.get("maxSize"),h)]:[q(t.get("minSize"),u),q(t.get("maxSize"),u)],i=a.getDataExtent(s),f=t.get("min"),g=t.get("max"),y=(null==f&&(f=Math.min(i[0],0)),null==g&&(g=i[1]),t.get("funnelAlign")),r=t.get("gap"),m=(("horizontal"===l?u:h)-r*(a.c
1ount()-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=q(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=q(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(UP),t.registerSeriesModel(KP),t.registerLayout($P),t.registerProcessor(eS("funnel"))});u(eO,QP=jy),eO.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,f=p.y0,p=p.y;l.push(d,f),u.push(d,f+p),s=b.getItemVisual(h[c],"style")}var g,y,m=b.getItemLayout(h[0]),v=_.getModel("label").get("margin"),x=_.getModel("emphasis"),t=("add"===t?(g=I[e]=new j,y=new Pw({shape:{points:l,stackedOnPoints:u,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),g.add(y),S.add(g),_.isAnimationEnabled()&&y.setClipPath((t=y.getBoundingRect(),i=_,o=function(){y.removeClipPath()},mc(r=new cl({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))):(g=a[n],y=g.childAt(0),S.add(g),I[e]=g,C(y,{shape:{points:l,stackedOnPoints:u}},_),wc(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),Iu(y,_),bu(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},eO.type="themeRiver";var QP,tO=eO;function eO(){var t=null!==QP&&QP.apply(this,arguments)||this;return t.type=eO.type,t._layers=[],t}u(oO,nO=Ny),oO.prototype.init=function(t){nO.prototype.init.apply(this,arguments),this.legendVisualProvider=new fS(T(this.getData,this),T(this.getRawData,this))},oO.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},oO.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=R(),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=Mx(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:ex(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,n=new Sx(t,this);return n.initData(i),n},oO.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},oO.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]),f=Math.abs(d-e);f<=u&&(i=d,u=f,h=r[l].indices[p])}a.push(h)}return{dataIndices:a,nestestValue:i}},oO.prototype.formatTooltip=function(t,e,n){var i=this.getData();return vy("nameValue",{name:i.getName(t),value:i.get(i.mapDimension("value"),t)})},oO.type="series.themeRiver",oO.dependencies=["singleAxis"],oO.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boun
1daryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}};var nO,iO=oO;function oO(){var t=null!==nO&&nO.apply(this,arguments)||this;return t.type=oO.type,t}function rO(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]=q(r[0],o.height),r[1]=q(r[1],o.height),aO(e,t,o.height-r[0]-r[1])):(r[0]=q(r[0],o.width),r[1]=q(r[1],o.width),aO(e,t,o.width-r[0]-r[1])),e.setLayout("layoutInfo",i)})}function aO(n,t,e){if(n.count())for(var i,o=t.coordinateSystem,r=t.getLayerSeries(),a=n.mapDimension("single"),s=n.mapDimension("value"),l=V(r,function(t){return V(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 f=1;f<c;++f)i+=l[f-1][d][1]*h,n.setItemLayout(r[f].indices[d],{layerIndex:f,x:l[f][d][0],y0:i,y:l[f][d][1]*h})}}r(function(t){t.registerChartView(tO),t.registerSeriesModel(iO),t.registerLayout(rO),t.registerProcessor(eS("themeRiver"))});var sO,lO=["itemStyle","borderWidth"],uO=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],hO=new $u,cO=(u(pO,sO=jy),pO.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:uO[+o],categoryDim:uO[1-+o]};return u.diff(h).add(function(t){var e,n;u.hasValue(t)&&(e=_O(u,t),e=dO(u,t,e,c),n=SO(u,c,e),u.setItemGraphicEl(t,n),l.add(n),AO(n,c,e))}).update(function(t,e){var n,i,o,r,a,s,e=h.getItemGraphicEl(e);u.hasValue(t)?(n=_O(u,t),n=dO(u,t,n,c),i=IO(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?yO:mO)(i,o,r,!0),vO(i,r,!0),xO(i,o,r,!0)):e=SO(u,c,n,!0),u.setItemGraphicEl(t,e),e.__pictorialSymbolMeta=n,l.add(e),AO(e,c,n)):l.remove(e)}).remove(function(t){var e=h.getItemGraphicEl(t);e&&MO(h,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=u,this.group},pO.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(t){MO(i,$(t).dataIndex,e,t)}):n.removeAll()},pO.type="pictorialBar",pO);function pO(){var t=null!==sO&&sO.apply(this,arguments)||this;return t.type=pO.type,t}function dO(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,f=i,g=s,y=f.valueDim,c=c.get("symbolBoundingData"),m=f.coordSys.getOtherAxis(f.coordSys.getBaseAxis()),v=m.toGlobalCoord(m.dataToCoord(0)),x=1-(d[y.wh]<=0),e=(o=W(c)?((o=[fO(m,c[0])-v,fO(m,c[1])-v])[1]<o[0]&&o.reverse(),o[x]):null!=c?fO(m,c)-v:p?f.coordSysExtent[y.index][x]-v:d[y.wh],g.boundingLength=o,p&&(g.repeatCutLength=d[y.wh]),g.pxSign=0<o?1:-1,m=t,c=e,f=r,x=a,v=s.boundingLength,p=s.pxSign,d=h,y=s,o=(g=i).valueDim,t=g.categoryDim,f=Math.abs(f[t.wh]),m=m.getItemVisual(c,"symbolSize"),(c=W(m)?m.slice():null==m?["100%","100%"]:[m,m])[t.index]=q(c[t.index],f),c[o.index]=q(c[o.index],x?f:Math.abs(v)),y.symbolSize=c,
1(y.symbolScale=[c[0]/d,c[1]/d])[o.index]*=(g.isHorizontal?-1:1)*p,n),h=s.symbolScale,m=u,t=i,x=s,f=((e=e.get(lO)||0)&&(hO.attr({scaleX:h[0],scaleY:h[1],rotation:m}),hO.updateTransform(),e=(e/=hO.getLineScale())*h[t.valueDim.index]),x.valueLineWidth=e||0,s.symbolSize),v=e0(n.get("symbolOffset"),f),y=n,c=f,d=r,g=a,p=v,u=l,m=s.valueLineWidth,h=s.boundingLength,t=s.repeatCutLength,x=i,e=s,n=x.categoryDim,f=x.valueDim,r=e.pxSign,a=m=Math.max(c[f.index]+m,0),_=(g&&(_=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=q(y,c[f.index]),c=Math.max(m+2*y,0),v=b?0:2*y,w=Vr(g),l=w?g:DO((_+v)/c),c=m+2*(y=(_-l*m)/2/(b?l:Math.max(l-1,1))),v=b?0:2*y,w||"fixed"===g||(l=t?DO((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[f.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[f.index]=d[f.xy],e.barRectShape=H({},d));return w[f.wh]=r*Math.max(Math.abs(d[f.wh]),Math.abs(m[f.index]+_)),w[n.wh]=d[n.wh],(g=e.clipShape={})[n.xy]=-d[n.xy],g[n.wh]=x.ecSize[n.wh],g[f.xy]=0,g[f.wh]=d[f.wh],s}function fO(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function gO(t){var e=t.symbolPatternSize,t=Qm(t.symbolType,-e/2,-e/2,e,e);return t.attr({culling:!0}),"image"!==t.type&&t.setStyle({strokeNoScale:!0}),t}function yO(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(TO(t,function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h<u?CO(t,null,f(h),o,n):CO(t,null,{scaleX:0,scaleY:0},o,n,function(){i.remove(t)}),h++});h<u;h++){var p=gO(o),d=(p.__pictorialAnimationIndex=h,p.__pictorialRepeatTimes=u,i.add(p),f(h));CO(p,{x:d.x,y:d.y,scaleX:0,scaleY:0},{scaleX:d.scaleX,scaleY:d.scaleY,rotation:d.rotation},o,n)}function f(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.
1index],{x:e[0],y:e[1],scaleX:o.symbolScale[0],scaleY:o.symbolScale[1],rotation:o.rotation}}}function mO(t,e,n,i){var o=t.__pictorialBundle,r=t.__pictorialMainPath;r?CO(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=gO(n),o.add(r),CO(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 vO(t,e,n){var i=H({},e.barRectShape),o=t.__pictorialBarRect;o?CO(o,null,{shape:i},e,n):((o=t.__pictorialBarRect=new cl({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(o))}function xO(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 cl({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 _O(t,e){t=t.getItemModel(e);return t.getAnimationDelayParams=bO,t.isAnimationEnabled=wO,t}function bO(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function wO(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function SO(t,e,n,i){var o=new j,r=new j;return o.add(r),(o.__pictorialBundle=r).x=n.bundlePosition[0],r.y=n.bundlePosition[1],n.symbolRepeat?yO(o,e,n):mO(o,0,n),vO(o,n,i),xO(o,e,n,i),o.__pictorialShapeStr=IO(t,n),o.__pictorialSymbolMeta=n,o}function MO(t,e,n,i){var o=i.__pictorialBarRect,r=(o&&o.removeTextContent(),[]);TO(i,function(t){r.push(t)}),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),X(r,function(t){xc(t,{scaleX:0,scaleY:0},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function IO(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function TO(e,n,i){X(e.__pictorialBundle.children(),function(t){t!==e.__pictorialBarRect&&n.call(i,t)})}function CO(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 AO(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=(TO(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:Nb(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:d}),bu(t,h,c,r.get("disabled"))}function DO(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}u(PO,kO=yp),PO.prototype.getInitialData=function(t){return t.stack=null,kO.prototype.getInitialData.apply(this,arguments)},PO.type="series.pictorialBar",PO.dependencies=["grid"],PO.defaultOption=Dp(yp.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 kO,LO=PO;function PO(){var t=null!==kO&&kO.apply(this,arguments)||this;return t.type=PO.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}r(function(t){t.registerChartView(cO),t.registerSeriesModel(LO),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,P(l1,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,u1("pictorialBar"))});var OO,NO={color:"fill",borderColor:"stroke"},RO={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},EO=i(),zO=(u(BO,OO=Ny),BO.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},BO.prototype.getInitialData=function(t,e){return Lx(null,this)},BO.prototype.getDataParams=function(t,e,n){t=OO.prototype.getDataParams.call(this,t,e);return n&&(t.info=EO(n).info),t},BO.type="series.custom",BO.dependencies=["grid","polar","geo","singleAxis","calendar"],BO.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},BO);function BO(){var t=null!==OO&&OO.apply(this,arguments)||this;return t.type=BO.type,t}function VO(i,o){return o=o||[0,0],V(["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 FO(r,a){return a=a||[0,0],V([0,1],function(t){var e=a[t],n=r[t]/2,
1i=[],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 GO(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 WO(o,r){return r=r||[0,0],V(["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 HO(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Z(t,"text")))}function XO(t,e,n){var i,o,r,a=t;return"text"===e?i=a:(i={},Z(a,"text")&&(i.text=a.text),Z(a,"rich")&&(i.rich=a.rich),Z(a,"textFill")&&(i.fill=a.textFill),Z(a,"textStroke")&&(i.stroke=a.textStroke),Z(a,"fontFamily")&&(i.fontFamily=a.fontFamily),Z(a,"fontSize")&&(i.fontSize=a.fontSize),Z(a,"fontStyle")&&(i.fontStyle=a.fontStyle),Z(a,"fontWeight")&&(i.fontWeight=a.fontWeight),o={type:"text",style:i,silent:!0},r={},e=Z(a,"textPosition"),n?r.position=e?a.textPosition:"inside":e&&(r.position=a.textPosition),Z(a,"textPosition")&&(r.position=a.textPosition),Z(a,"textOffset")&&(r.offset=a.textOffset),Z(a,"textRotation")&&(r.rotation=a.textRotation),Z(a,"textDistance")&&(r.distance=a.textDistance)),YO(i,t),X(i.rich,function(t){YO(t,t)}),{textConfig:r,textContent:o}}function YO(t,e){e&&(e.font=e.textFont||e.font,Z(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Z(e,"textAlign")&&(t.align=e.textAlign),Z(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Z(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Z(e,"textWidth")&&(t.width=e.textWidth),Z(e,"textHeight")&&(t.height=e.textHeight),Z(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Z(e,"textPadding")&&(t.padding=e.textPadding),Z(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Z(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Z(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Z(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Z(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Z(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Z(e,"textBoxShadowOffsetY"))&&(t.shadowOffsetY=e.textBoxShadowOffsetY)}function UO(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=(ZO(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,X(e.rich,function(t){ZO(t,t)}),i}function ZO(t,e){e&&(Z(e,"fill")&&(t.textFill=e.fill),Z(e,"stroke")&&(t.textStroke=e.fill),Z(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Z(e,"font")&&(t.font=e.font),Z(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Z(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Z(e,"fontSize")&&(t.fontSize=e.fontSize),Z(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Z(e,"align")&&(t.textAlign=e.align),Z(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Z(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Z(e,"width")&&(t.textWidth=e.width),Z(e,"height")&&(t.textHeight=e.height),Z(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Z(e,"padding")&&(t.textPadding=e.padding),Z(e,"borderColor")&&(t.textBorderColor=e.borderColor),Z(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Z(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Z(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Z(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Z(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Z(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Z(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Z(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Z(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Z(e,"textShadowOffsetY"))&&(t.textShadowOffsetY=e.textShadowOffsetY)}var jO={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},qO=G(jO),KO=(ct(Ho,function(t,e){return t[e]=1,t},{}),Ho.join(", "),["","style","shape","extra"]),JO=i();function $O(t,e,n,i,o){var r=t+"Animation",i=gc(t,i,o)||{},o=JO(e).userDuring;return 0<i.duration&&(i.during=o?T(rN,{el:e,userDuring:o}):null,i.setToFinal=!0,i.scope=t),H(i,n[r]),i}function QO(t,n,e,i){for(var o,r=(i=i||{}).dataIndex,a=i.isInit,i=i.clearStyle,s=e.isAnimationEnabled(),l=JO(t),u=n.style,l=(l.userDuring=n.during,{}),h={},c=n,p=h,d=0;d<qO.length;d++){var f=qO[d],g=jO[f],f=c[f];f&&(p[g[0]]=f[0],p[g[1]]=f[1])}for(d=0;d<Ho.length;d++){var y=Ho[d];null!=c[y]&&(p[y]=c[y])}if(sN("shape",n,h),sN("extra",n,h),!a&&s){for(var E=t,m=n,z=l,v=nN(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]=_)}aN("shape",t,n,l),aN("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&&!nN(C)){var A=Ur(C);I=I||(M.style={});for(var D=0;D<A.length;D++){var k=T[P=A[D]];I[P]=k}}else if(m.getAnimationStyleProps&&(nN(w)||nN(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(D=0;D<O.length;D++)L[P=O[D]]&&(k=T[P],I[P]=k)}}}}}h.style=u;var N=t,w=h,m=i,C=w.style;if(!N.isGroup&&C){if(m){N.useStyle({});for(var B=N.animators,R=0;R<B.length;R++){var V=B[R];"style"===V.targetName&&V.changeTarget(N.style)}}N.setStyle(C)}w&&(w.style=null,w&&N.attr(w),w.style=C),M=t,Z(S=n,"silent")&&(M.silent=S.silent),Z(S,"ignore")&&(M.ignore=S.ignore),M instanceof ja&&Z(S,"invisible")&&(M.invisible=S.invisible),M instanceof K&&Z(S,"autoBatch")&&(M.autoBatch=S.autoBatch),s&&(a?(o={},X(KO,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=$O("enter",t,n,e,r)).duration&&t.animateFrom(o,h)):(i=t,s=n,a=r||0,h=e,(r=l)&&0<(s=$O("update",i,s,h,a)).duration&&i.animateFrom(r,s))),tN(t,n),u?t.dirty():t.markRedraw()}function tN(t,e){for(var n=JO(t).leaveToProps,i=0;i<KO.length;i++){var o=KO[i],r=o?e[o]:e;r&&r.leaveTo&&(n=n||(JO(t).leaveToProps={}),o&&(n[o]=n[o]||{}),H(o?n[o]:n,r.leaveTo))}}function eN(t,e,n,i){var o,r;t&&(o=t.parent,(r=JO(t).leaveToProps)?((e=$O("update",t,e,n,0)).done=function(){o.remove(t),i&&i()},t.animateTo(r,e)):(o.remove(t),i&&i()))}function nN(t){return"all"===t}var iN={},oN={setTransform:function(t,e){return iN.el[t]=e,this},getTransform:function(t){return iN.el[t]},setShape:function(t,e){var n=iN.el;return(n.shape||(n.shape={}))[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var e=iN.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=iN.el,i=n.style;return i&&(i[t]=e,n.dirtyStyle)&&n.dirtyStyle(),this},getStyle:function(t){var e=iN.el.style;if(e)return e[t]},setExtra:function(t,e){return(iN.el.extra||(iN.el.extra={}))[t]=e,this},getExtra:function(t){var e=iN.el.extra;if(e)return e[t]}};function rN(){var t,e=this.el;e&&(JO(e).userDuring===(t=this.userDuring)?(iN.el=e,t(oN)):this.el=this.userDuring=null)}function aN(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]={}),nN(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(nN(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 sN(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]=$i(i[s])}}var lN=i(),uN=["percent","easing","shape","style","extra"];function hN(t){t.stopAnimation("keyframe"),t.attr(lN(t))}function cN(l,u,e){var t,n,h,c;e.isAnimationEnabled()&&u&&(W(u)?X(u,function(t){cN(l,t,e)}):(t=u.keyframes,h=u.duration,e&&null==h&&(n=gc("enter",e,0),h=n&&n.duration),t&&h&&(c=lN(l),X(KO,function(a){var s;a&&!l[a]||(t.sort(function(t,e){return t.percent-e.percent}),X(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(uN,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;X(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 pN="emphasis",dN="normal",e="blur",xa="select",fN=[dN,pN,e,xa],gN={normal:["itemStyle"],emphasis:[pN,"itemStyle"],blur:[e,"itemStyle"],select:[xa,"itemStyle"]},yN={normal:["label"],emphasis:[pN,"label"],blur:[e,"label"],select:[xa,"label"]}
1,mN=["x","y"],vN="e\0\0",xN={normal:{},emphasis:{},blur:{},select:{}},_N={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(VO,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(FO,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(GO,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(WO,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 bN(t){return t instanceof K}function wN(t){return t instanceof ja}u(IN,SN=jy),IN.prototype.render=function(n,t,i,o){this._progressiveEls=null;var r=this._data,a=n.getData(),s=this.group,l=kN(n,a,t,i),t=(r||s.removeAll(),a.diff(r).add(function(t){LN(i,null,t,l(t,o),n,s,a)}).remove(function(t){t=r.getItemGraphicEl(t);t&&eN(t,EO(t).option,n)}).update(function(t,e){e=r.getItemGraphicEl(e);LN(i,e,t,l(t,o),n,s,a)}).execute(),n.get("clip",!0)?Ab(n.coordinateSystem,!1,n):null);t?s.setClipPath(t):s.removeClipPath(),this._data=a},IN.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},IN.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=kN(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=LN(null,null,u,a(u,o),e,this.group,r);h&&(h.traverse(l),s.push(h))}},IN.prototype.eachRendered=function(t){qc(this._progressiveEls||this.group,t)},IN.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},IN.type="custom";var SN,MN=IN;function IN(){var t=null!==SN&&SN.apply(this,arguments)||this;return t.type=IN.type,t}function TN(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=FN(n),i=Lc(o,null,i,n.layout||"center");EO(i).customPathData=o}else if("image"===e)i=new nl({}),EO(i).customImagePath=t.style.image;else if("text"===e)i=new J({});else if("group"===e)i=new j;else{if("compoundPath"===e)throw new Error('"compoundPath" is not supported yet.');n=kc(e);n||Wr(""),i=new n}return EO(i).customGraphicType=e,i.name=t.name,i.z2EmphasisLift=1,i.z2SelectLift=1,i}function CN(t,e,n,i,o,r,a){hN(e);var s,l,o=o&&o.normal.cfg,o=(o&&e.setTextConfig(o),i&&null==i.transition&&(i.transition=mN),i&&i.style);o&&(s=void("text"===e.type&&(Z(s=o,"textFill")&&(s.fill=s.textFill),Z(s,"textStroke"))&&(s.stroke=s.textStroke)),l=bN(e)?o.decal:null,t&&l&&(l.dirty=!0,s=k0(l,t)),o.__decalPattern=s),wN(e)&&o&&(s=o.__decalPattern)&&(o.decal=s),QO(e,i,r,{dataIndex:n,isInit:a,clearStyle:!0}),cN(e,i.keyframeAnimation,r)}function AN(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),ru(e))}function DN(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<fN.length;o++)r=i,a=e,s=fN[o],l=void 0,null!=(a=(a=(l=s===dN)?a:RN(a,s))?a.z2:null)&&((l?r:r.ensureState(s)).z2=a||0)}var r,a,s,l}function kN(a,s,e,t){var n=a.get("renderItem"),l=a.coordinateSystem,i={};l&&(i=l.prepareCustoms?l.prepareCustoms(l):_N[l.type](l));for(var u,o,r,h,c=B({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,dN).getItemStyle(),n=(null!=i&&(o.fill=i),null!=n&&(o.opacity=n),{inheritColor:Y(i)?i:"#000"}),i=b(e,dN),r=np(i,null,n,!1,!0),e=(r.text=i.getShallow("show")?N(a.getFormattedLabel(e,dN),Nb(s,e)):null,ip(i,n,!1));return S(t,o),o=UO(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,pN).getItemStyle(),i=b(e,pN),o=np(i,null,null,!0,!0),e=(o.text=i.getShallow("show")?St(a.getFormattedLabel(e,pN),a.getFormattedLabel(e,dN),Nb(s,e)):null,ip(i,null,!0));return S(t,n),n=UO(n,o,e),t&&w(n,t),n.legacy=!0,n},visual:function(t,e){var n;return null==e&&(e=u),Z(NO,t)?(n=s.getItemVisual(e,"style"))?n[NO[t]]:null:Z(RO,t)?s.getItemVisual(e,t):void 0},barLayout:function(t){if("cartesian2d"===l.type){var e=B({axis:l.getBaseAxis()},t),n=[],t=e.axis;
1if("category"===t.type){for(var i=t.getBandWidth(),o=0;o<e.count;o++)n.push(B({bandWidth:i,axisKey:"axis0",stackId:n1+o},e));for(var r=s1(n),a=[],o=0;o<e.count;o++){var s=r.axis0[n1+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={},X(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={},f={},g={},y={},m=0;m<fN.length;m++){var v=fN[m];g[v]=a.getModel(gN[v]),y[v]=a.getModel(yN[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(gN[e])):x(t).getModel(gN[e]):g[e]}function b(t,e){return s.hasItemOption?t===u?f[e]||(f[e]=x(t).getModel(yN[e])):x(t).getModel(yN[e]):y[e]}return function(t,e){return u=t,o=null,d={},f={},n&&n(B({dataIndexInside:t,dataIndex:s.getRawIndex(t),actionType:e?e.type:null},p),c)};function w(t,e){for(var n in e)Z(e,n)&&(t[n]=e[n])}function S(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition)&&(e.textPosition=t.textPosition)}}function LN(t,e,n,i,o,r,a){if(i)return(t=PN(t,e,n,i,o,r))&&a.setItemGraphicEl(n,t),t&&bu(t,i.focus,i.blurScope,i.emphasisDisabled),t;r.remove(e)}function PN(t,e,n,i,o,r){var a=-1,s=e,l=(e&&ON(e,i,o)&&(a=F(r.childrenRef(),e),e=null),!e),u=e,s=(u?u.clearStates():(u=TN(i),s&&(e=s,(s=u).copyTransform(e),wN(s)&&wN(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,bN(s))&&bN(e)&&s.setShape(e.shape))),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),xN.normal.cfg=xN.normal.conOpt=xN.emphasis.cfg=xN.emphasis.conOpt=xN.blur.cfg=xN.blur.conOpt=xN.select.cfg=xN.select.conOpt=null,xN.isLegacy=!1,u),e=n,h=i,c=o,p=l,d=xN;if(!s.isGroup){NN(h,null,d),NN(h,pN,d);var f=d.normal.conOpt,h=d.emphasis.conOpt,g=d.blur.conOpt,y=d.select.conOpt;if(null!=f||null!=h||null!=y||null!=g){var m=s.getTextContent();if(!1===f)m&&s.removeTextContent();else{f=d.normal.conOpt=f||{type:"text"},m?m.clearStates():(m=TN(f),s.setTextContent(m)),CN(null,m,e,f,null,c,p);for(var h=f&&f.style,v=0;v<fN.length;v++){var x,_=fN[v];_!==dN&&(x=d[_].conOpt,AN(_,m,0,EN(f,x,_),null))}h?m.dirty():m.markRedraw()}}}y=u,g=n,s=i,e=o,c=l;!1===(s=s.clipPath)?y&&y.getClipPath()&&y.removeClipPath():s&&((p=(p=y.getClipPath())&&ON(p,s,e)?null:p)||(p=TN(s),y.setClipPath(p)),CN(null,p,g,s,null,e,c)),CN(t,u,n,i,xN,o,l),Z(i,"info")&&(EO(u).info=i.info);for(var b=0;b<fN.length;b++){var w=fN[b];w!==dN&&AN(w,u,0,EN(i,RN(i,w),w),xN)}if(DN(u,i,o),"group"===i.type){var S=t,M=u,I=n,T=o,C=(h=i).children,A=C?C.length:0,p,h="byName"===(p=h.$mergeChildren)||h.diffChildrenByName,p=!1===p;if(A||h||p)if(h){var D={api:S,oldChildren:M.children()||[],newChildren:C||[],dataIndex:I,seriesModel:T,group:M};new qv(D.oldChildren,D.newChildren,zN,zN,D).add(BN).update(BN).remove(VN).execute()}else{p&&M.removeAll();for(var k=0;k<A;k++){var L=C[k],P=M.childAt(k);L?(null==L.ignore&&(L.ignore=!1),PN(S,P,I,L,T,M)):P.ignore=!0}for(var O=M.childCount()-1;k<=O;O--){var N=M.childAt(O);!function(t,e,n){e&&eN(e,EO(t).option,n)}(M,N,T)}}}return 0<=a?r.replaceAt(u,a):r.add(u),u}function ON(t,e,n){var t=EO(t),i=e.type,o=e.shape,e=e.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==t.customGraphicType||"path"===i&&(n=o)&&(Z(n,"pathData")||Z(n,"d"))&&FN(o)!==t.customPathData||"image"===i&&Z(e,"image")&&e.image!==t.customImagePath}function NN(t,e,n){var i=e?RN(t,e):t,o=e?EN(t,i,pN):t.style,r=t.type,i=i?i.textConfig:null,t=t.textContent,t=t?e?RN(t,e):t:null,o=(o&&(n.isLegacy||HO(o,r,!!i,!!t))&&(n.isLegacy=!0,o=XO(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 RN(t,e){return e?t?t[e]:null:t}function EN(t,e,n){e=e&&e.style;return e=null==e&&n===pN&&t?t.styleEmphasis:e}function zN(t,e){t=t&&t.name;return null!=t?t:vN+e}function BN(t,e){var n=this.context,t=null!=t?n.newChildren[t]:null,e=null!=e?n.oldChildren[e]:null;PN(n.api,e,n.dataIndex,t,n.seriesModel,n.group)}function VN(t){var e=this.context,t=e.oldChildren[t];t&&eN(t,EO(t).option,e.seriesModel)}function FN(t){return t&&(t.pathData||t.d)}r(function(t){t.registerChartView(MN),t.registerSeriesModel(zO)}),r(WM);var GN=i(),WN=x,HN=T,Hm=(XN.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(YN,e,r),this.updatePointerEl(i,s,r),this.updateLabelEl(i,s,r,e)):(i=this._group=new j,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),jN(i,e,!0),this._renderHandle(a)):(i&&i.hide(),o&&o.hide()))},XN.prototype.remove=function(t){this.clear(t)},XN.prototype.dispose=function(t){this.clear(t)},XN.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=mM(t).seriesDataCount,e=o.getExtent(),Math.abs(e[0]-e[1])/r>n)):!0===i)},XN.prototype.makeElOption=function(t,e,n,i,o){},XN.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(o=GN(t).pointerEl=new Kc[o.type](WN(e.pointer)),t.add(o))},XN.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=GN(t).labelEl=new J(WN(e.label)),t.add(e),UN(e,i))},XN.prototype.updatePointerEl=function(t,e,n){t=GN(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},XN.prototype.updateLabelEl=function(t,e,n,i){t=GN(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),UN(t,i))},XN.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:HN(this._onHandleDragMove,this,0,0),drift:HN(this._onHandleDragMove,this),ondragend:HN(this._onHandleDragEnd,this)}),i.add(o)),jN(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,rm(this,"_doDispat
1chAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)):(o&&i.remove(o),this._handle=null))},XN.prototype._moveHandleToValue=function(t,e){YN(this._axisPointerModel,!e&&this._moveAnimation,this._handle,ZN(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},XN.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(ZN(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(ZN(t)),GN(n).lastProp=null,this._doDispatchAxisPointer())},XN.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}]}))},XN.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},XN.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),am(this,"_doDispatchAxisPointer")},XN.prototype.doClear=function(){},XN.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},XN);function XN(){this._dragging=!1,this.animationThreshold=15}function YN(t,e,n,i){!function n(i,t){{var o;if(O(i)&&O(t))return o=!0,X(t,function(t,e){o=o&&n(i[e],t)}),!!o}return i===t}(GN(n).lastProp,i)&&(GN(n).lastProp=i,e?C(n,i,t):(n.stopAnimation(),n.attr(i)))}function UN(t,e){t[e.get(["label","show"])?"show":"hide"]()}function ZN(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function jN(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 qN(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 KN(t,e,n,i,o){var r=JN(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=pd(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 JN(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:B1(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},X(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):A(o)&&(a=o(r))),a}function $N(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 QN(t,e,n,i,o,r){var a=lM.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),KN(e,i,o,r,{position:$N(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function tR(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function eR(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function nR(t,e,n,i,o,r){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}u(rR,iR=Hm),rR.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&&
1(r=qN(i),(h=sR[h](a,s,u,l)).style=r,t.graphicKey=h.type,t.pointer=h),i.get(["label","margin"]));KN(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=lM.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 iR,oR=rR;function rR(){return null!==iR&&iR.apply(this,arguments)||this}var aR,sR={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:tR(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:nR(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:nR(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}},lR=(u(uR,aR=Hm),uR.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.grid,l=i.get("type"),u=hR(s,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(e,!0)),a=(l&&"none"!==l&&(r=qN(i),(l=cR[l](a,h,u)).style=r,t.graphicKey=l.type,t.pointer=l),JS(s.model,n));QN(e,t,a,n,i,o)},uR.prototype.getHandleTransform=function(t,e,n){var i=JS(e.axis.grid.model,e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),$N(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},uR.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.grid,r=n.getGlobalExtent(!0),o=hR(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]}},uR);function uR(){return null!==aR&&aR.apply(this,arguments)||this}function hR(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var cR={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:tR([e,n[0]],[e,n[1]],pR(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:eR([e-i/2,n[0]],[i,o],pR(t))}}};function pR(t){return"x"===t.dim?0:1}u(gR,dR=f),gR.type="axisPointer",gR.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 dR,fR=gR;function gR(){var t=null!==dR&&dR.apply(this,arguments)||this;return t.type=gR.type,t}var yR=i(),mR=X;function vR(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))}mR(yR(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(),yR(i).records||(yR(i).records={}),p=e,yR(c=i).initialized||(yR(c).initialized=!0,o("click",P(_R,"click")),o("mousemove",P(_R,"mousemove")),o("globalout",xR)),(yR(i).records[t]||(yR(i).records[t]={})).handler=n)}function xR(t,e,n){t.handler("leave",null,n)}function _R(t,e,n,i){e.handler(t,n,i)}function bR(t,e){w.node||(e=e.getZr(),(yR(e).records||{})[t]&&(yR(e).records[t]=null))}u(MR,wR=Hy),MR.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";vR("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTr
1igger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},MR.prototype.remove=function(t,e){bR("axisPointer",e)},MR.prototype.dispose=function(t,e){bR("axisPointer",e)},MR.type="axisPointer";var wR,SR=MR;function MR(){var t=null!==wR&&wR.apply(this,arguments)||this;return t.type=MR.type,t}function IR(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(V(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 TR=i();function CR(t,e,n){var r,a,i,s,l,o,u,h,c,p,d,f,g,y,m=t.currTrigger,v=[t.x,t.y],x=t,_=t.dispatchAction||T(n.dispatchAction,n),b=e.getComponent("axisPointer").coordSysAxesInfo;if(b)return PR(v)&&(v=IR({seriesIndex:x.seriesIndex,dataIndex:x.dataIndex},e).point),r=PR(v),a=x.axesInfo,i=b.axesInfo,s="leave"===m||PR(v),l={},e={list:[],map:{}},u={showPointer:P(DR,o={}),showTooltip:P(kR,e)},X(b.coordSysMap,function(t,e){var o=r||t.containPoint(v);X(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))&&AR(t,i,u,!1,l)})}),h={},X(i,function(n,t){var i=n.linkGroup;i&&!o[t]&&X(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,LR(t),LR(n)))),h[n.key]=e)})}),X(h,function(t,e){AR(i[e],t,u,!0,l)}),g=o,x=i,y=l.axesInfo=[],X(x,function(t,e){var n=t.axisPointerModel.option,e=g[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=_,!PR(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=TR(_)[m]||{},p=TR(_)[m]={},X(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&X(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;p[e]=t})}),d=[],f=[],X(c,function(t,e){p[e]||f.push(t)}),X(p,function(t,e){c[e]||d.push(t)}),f.length&&x.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:f}),d.length&&x.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:d}),l}function AR(t,e,n,i,o){var r,a,s,l,u,h,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(l=e,u=t.axis,h=u.dim,c=l,p=[],d=Number.MAX_VALUE,f=-1,X(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&&f<0)&&(d=n,f=i,c=o,p.length=0),X(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&&g.containData(s)&&null!=s&&(e=s),n.showPointer(t,e,a),n.showTooltip(t,r,s)):n.showPointer(t,e))}function DR(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function kR(t,e,n,i){var o,r,n=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(o=xM(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 LR(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 PR(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function OR(t){wM.registerAxisPointerClass("CartesianAxisPointer",lR),t.registerComponentModel(fR),t.registerComponentView(SR),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=gM(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},CR)}u(ER,NR=f),ER.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},ER.type="polar",ER.dependencies=["radiusAxis","angleAxis"],ER.defaultOption={z:0,center:["50%","50%"],radius:"80%"};var NR,RR=ER;function ER(){var t=null!==NR&&NR.apply(this,arguments)||this;return t.type=ER.type,t}u(BR,zR=f),BR.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",sa).models[0]},BR.type="polarAxis";var zR,jm=BR;function BR(){return null!==zR&&zR.apply(this,arguments)||this}ut(jm,H1);u(GR,VR=jm),GR.type="angleAxis";var VR,FR=GR;function GR(){var t=null!==VR&&VR.apply(this,arguments)||this;return t.type=GR.type,t}u(XR,WR=jm),XR.type="radiusAxis";var WR,HR=XR;function XR(){var t=null!==WR&&WR.apply(this,arguments)||this;return t.type=XR.type,t}u(ZR,YR=_p),ZR.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]};var YR,UR=ZR;
1function ZR(t,e){return YR.call(this,"radius",t,e)||this}UR.prototype.dataToRadius=_p.prototype.dataToCoord,UR.prototype.radiusToData=_p.prototype.coordToData;var jR,qR=i(),KR=(u(JR,jR=_p),JR.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},JR.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=qR(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)},JR);function JR(t,e){return jR.call(this,"angle",t,e||[0,360])||this}KR.prototype.dataToAngle=_p.prototype.dataToCoord,KR.prototype.angleToData=_p.prototype.coordToData;var $R=["radius","angle"],QR=(tE.prototype.containPoint=function(t){t=this.pointToCoord(t);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},tE.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},tE.prototype.getAxis=function(t){return this["_"+t+"Axis"]},tE.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},tE.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},tE.prototype.getAngleAxis=function(){return this._angleAxis},tE.prototype.getRadiusAxis=function(){return this._radiusAxis},tE.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},tE.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},tE.prototype.getTooltipAxes=function(t){t=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},tE.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},tE.prototype.pointToData=function(t,e){t=this.pointToCoord(t);return[this._radiusAxis.radiusToData(t[0],e),this._angleAxis.angleToData(t[1],e)]},tE.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]},tE.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]},tE.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}}},tE.prototype.convertToPixel=function(t,e,n){return eE(e)===this?this.dataToPoint(n):null},tE.prototype.convertFromPixel=function(t,e,n){return eE(e)===this?this.pointToData(n):null},tE);function tE(t){this.dimensions=$R,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new UR,this._angleAxis=new KR,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}function eE(t){var e=t.seriesModel,t=t.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function nE(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&&(X(W1(e=t.getData(),"radius"),function(t){r.scale.unionExtentFromData(e,t)}),X(W1(e,"angle"),function(t){o.scale.unionExtentFromData(e,t)}))}),R1(o.scale,o.model),R1(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 iE(t,e){var n;t.type=e.get("type"),t.scale=E1(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType&&(t.inverse=t.inverse!==e.get("
1clockwise"),n=e.get("startAngle"),t.setExtent(n,n+(t.inverse?-360:360))),(e.axis=t).model=e}var oE={dimensions:$R,create:function(t,s){var l=[];return t.eachComponent("polar",function(t,e){var n,e=new QR(e+""),i=(e.update=nE,e.getRadiusAxis()),o=e.getAngleAxis(),r=t.findAxisModel("radiusAxis"),a=t.findAxisModel("angleAxis");iE(i,r),iE(o,a),i=e,r=s,a=(o=t).get("center"),n=r.getWidth(),r=r.getHeight(),i.cx=q(a[0],n),i.cy=q(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=[q(n[0],i),q(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}},rE=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function aE(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 sE(t){return t.getRadiusAxis().inverse?0:1}function lE(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(pE,uE=wM),pE.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(),lE(s=V(n.getViewLabels(),function(t){t=x(t);var e=n.scale,e="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(e),t})),lE(r),X(rE,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||cE[t](this.group,e,i,r,a,o,s)},this))},pE.type="angleAxis";var uE,hE=pE,cE={axisLine:function(t,e,n,i,o,r){var e=e.getModel(["axisLine","lineStyle"]),a=sE(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 Sh({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[sE(n)],r=V(i,function(t){return new zh({shape:aE(n,[l,l+s],t.coord)})});t.add(Nc(r,{style:B(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[sE(n)],h=[],c=0;c<o.length;c++)for(var p=0;p<o[c].length;p++)h.push(new zh({shape:aE(n,[u,u+l],o[c][p].coord)}));t.add(Nc(h,{style:B(s.getModel("lineStyle").getLineStyle(),B(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"),f=d.get("margin"),g=u.get("triggerEvent");X(n,function(t,e){var n=d,i=t.tickValue,o=c[sE(h)],r=h.coordToPoint([o+f,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 Ip(s.textStyle,d,d.ecModel)),new J({silent:lM.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),g&&((s=lM.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 zh({shape:aE(n,r,i[h].coord)}))}for(h=0;h<u.length;h++)t.add(Nc(u[h],{style:B({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 zh({shape:aE(n,r,o[l][u].coord)}));t.add(Nc(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]),f=e.get("clockwise"),g=1,y=i.length;g<=y;g++){var m=(g===y?i[0]:i[g]).coord,v=s++%l.length;u[v]=u[v]||[],u[v].push(new xh({shape:{cx:n.cx,cy:n.cy,r0:p,r:d,startAngle:c,endAngle:-m*h,clockwise:f},silent:!0})),c=-m*h}for(g=0;g<u.length;g++)t.add(Nc(u[g],{style:B({fill:l[g%l.length]},a.getAreaStyle()),silent:!0}))}}};function pE(){var t=null!==uE&&uE.apply(this,arguments)||this;return t.type=pE.type,t.axisPointerClass="PolarAxisPointer",t}var dE,fE=["axisLine","axisTickLabel","axisName"],gE=["splitLine","splitArea","minorSplitLine"],yE=(u(vE,dE=wM),vE.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 j,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 lM(e,h),X(fE,h.add,h),i.add(h.getGroup()),Wc(n,i,e),X(gE,function(t){e.get([t,"show"])&&!o.scale.isBlank()&&mE[t](this.group,e,r,l,u,a,s)},this))},vE.type="radiusAxis",vE),mE={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(Nc(u[h],{style:B({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(Nc(s,{style:B({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 xh({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(Nc(u[c],{style:B({fill:l[c%l.length]},a.getAreaStyle()),silent:!0}))}}};function vE(){var t=null!==dE&&dE.apply(this,arguments)||this;return t.type=vE.type,t.axisPointerClass="PolarAxisPointer",t}function xE(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function _E(t,e){return e.dim+t.model.componentIndex}function bE(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={},X(i,function(t,e){var n=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),i=_E(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,xE(t)),a=(n[i]||r.autoWidthCount++,n[i]=n[i]||{width:0,maxWidth:0},q(t.get("barWidth"),o)),o=q(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={},X(l,function(t,n){c[n]={};var e=t.stacks,i=t.bandWidth,i=q(t.categoryGap,i),o=q(t.gap,1),r=t.remainedWidth,a=t.autoWidthCount,s=(r-i)/(a+(a-1)*o),s=Math.max(s,0);X(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=(X(e,function(t,e){t.width||(t.width=s),u+=(l=t).width*(1+o)}),l&&(u-=l.width*o),-u/2);X(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=_E(n,i),r=xE(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),f=e.mapDimension(i.dim),g=Dx(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(f,v),M=0<=w?"p":"n",I=m,T=(g&&(k[r][S]||(k[r][S]={p:m,n:m}),I=k[r][S][M]),void 0),C=void 0,A=void 0,D=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),D=(A
1=_-a)-s,g&&(k[r][S][M]=C)):(b=l.dataToCoord(w,y)-m,C=(T=i.dataToCoord(S)+a)+s,D=(A=I)+(b=Math.abs(b)<p?(b<0?-1:1)*p:b),g&&(k[r][S][M]=D)),e.setItemLayout(v,{cx:u,cy:h,r0:T,r:C,startAngle:-A*Math.PI/180,endAngle:-D*Math.PI/180,clockwise:D<=A})}}})}var wE,SE={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},ME={splitNumber:5},IE=(u(TE,wE=Hy),TE.type="polar",TE);function TE(){var t=null!==wE&&wE.apply(this,arguments)||this;return t.type=TE.type,t}function CE(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(OR),wM.registerAxisPointerClass("PolarAxisPointer",oR),t.registerCoordinateSystem("polar",oE),t.registerComponentModel(RR),t.registerComponentView(IE),FS(t,"angle",FR,SE),FS(t,"radius",HR,ME),t.registerComponentView(hE),t.registerComponentView(yE),t.registerLayout(P(bE,"bar"))}),r(LA);var AE,DE=["axisLine","axisTickLabel","axisName"],kE=["splitArea","splitLine"],LE=(u(OE,AE=wM),OE.prototype.render=function(e,t,n,i){var o=this.group,r=(o.removeAll(),this._axisGroup),a=(this._axisGroup=new j,CE(e)),a=new lM(e,a);X(DE,a.add,a),o.add(this._axisGroup),o.add(a.getGroup()),X(kE,function(t){e.get([t,"show"])&&PE[t](this,this.group,this._axisGroup,e)},this),Wc(r,this._axisGroup,e),AE.prototype.render.call(this,e,t,n,i)},OE.prototype.remove=function(){TM(this)},OE.type="singleAxis",OE),PE={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}),f=[],g=[],y=0;y<d.length;++y){var m=o.toGlobalCoord(d[y].coord),m=(h?(f[0]=m,f[1]=u.y,g[0]=m,g[1]=u.y+u.height):(f[0]=u.x,f[1]=m,g[0]=u.x+u.width,g[1]=m),new zh({shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},silent:!0})),v=(Ec(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(Nc(c[y],{style:B({stroke:s[y%s.length]},x),silent:!0}))}},splitArea:function(t,e,n,i){IM(t,n,i,i)}};function OE(){var t=null!==AE&&AE.apply(this,arguments)||this;return t.type=OE.type,t.axisPointerClass="SingleAxisPointer",t}u(EE,NE=f),EE.prototype.getCoordSysModel=function(){return this},EE.type="singleAxis",EE.layoutMode="box",EE.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 NE,RE=EE;function EE(){var t=null!==NE&&NE.apply(this,arguments)||this;return t.type=EE.type,t}ut(RE,H1.prototype);u(VE,zE=_p),VE.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},VE.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]};var zE,BE=VE;function VE(t,e,n,i,o){t=zE.call(this,t,e,n)||this;return t.type=i||"value",t.position=o||"bottom",t}var FE=["single"],GE=(WE.prototype._init=function(t,e,n){var i=this.dimension,i=new BE(i,E1(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},WE.prototype.update=function(t,e){t.eachSeries(function(t){var e;t.coordinateSystem===this&&(X((e=t.getData()).mapDimensionsAll(this.dimension),function(t){this._axis.scale.unionExtentFromData(e,t)},this),R1(this._axis.scale,this._axis.model))},this)},WE.prototype.resize=function(t,e){this._rect=Id({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()},WE.prototype.getRect=function(){return this._rect},WE.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)},WE.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}},WE.prototype.getAxis=function(){return this._axis},WE.prototype.getBaseAxis=function(){return this._axis},WE.prototype.getAxes=function(){return[this._axis]},WE.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},WE.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},WE.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},WE.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},WE.prototype.convertToPixel=function(t,e,n){return HE(e)===this?this.dataToPoint(n):null},WE.prototype.convertFromPixel=function(t,e,n){return HE(e)===this?this.pointToData(n):null},WE);function WE(t,e,n){this.type="single",this.dimension="single",this.dimensions=FE,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}function HE(t){var e=t.seriesModel,t=t.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}var XE,YE={create:function(i,o){var r=[];return i.eachComponent("singleAxis",function(t,e){var n=new GE(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:FE},UE=["x","y"],ZE=["width","height"],jE=(u(KE,XE=Hm),KE.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.coordinateSystem,l=$E(s,1-JE(a)),s=s.dataToPoint(e)[0],u=i.get("type"),a=(u&&"none"!==u&&(r=qN(i),(u=qE[u](a,s,l)).style=r,t.graphicKey=u.type,t.pointer=u),CE(n));QN(e,t,a,n,i,o)},KE.prototype.getHandleTransform=function(t,e,n){var i=CE(e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),$N(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},KE.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,o=n.coordinateSystem,n=JE(n),r=$E(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]),$E(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"}}},KE),qE={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:tR([e,n[0]],[e,n[1]],JE(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:eR([e-i/2,n[0]],[i,o],JE(t))}}};function KE(){return null!==XE&&XE.apply(this,arguments)||this}function JE(t){return t.isHorizontal()?0:1}function $E(t,e){t=t.getRect();return[t[UE[e]],t[UE[e]]+t[ZE[e]]]}u(ez,QE=Hy),ez.type="single";var QE,tz=ez;function ez(){var t=null!==QE&&QE.apply(this,arguments)||this;return t.type=ez.type,t}
1r(function(t){r(OR),wM.registerAxisPointerClass("SingleAxisPointer",jE),t.registerComponentView(tz),t.registerComponentView(LE),t.registerComponentModel(RE),FS(t,"single",RE,RE.defaultOption),t.registerCoordinateSystem("single",YE)});u(sz,iz=f),sz.type="title",sz.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 nz,iz,oz=sz,rz=(u(az,nz=Hy),az.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=N(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new J({style:np(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),o=new J({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(){xd(r,"_"+t.get("target"))}),a&&o.on("click",function(){xd(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=Id(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 cl({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))},az.type="title",az);function az(){var t=null!==nz&&nz.apply(this,arguments)||this;return t.type=az.type,t}function sz(){var t=null!==iz&&iz.apply(this,arguments)||this;return t.type=sz.type,t.layoutMode={type:"box",ignoreSize:!0},t}r(function(t){t.registerComponentModel(oz),t.registerComponentView(rz)});u(hz,lz=f),hz.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},hz.prototype.mergeOption=function(t,e){lz.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},hz.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;W(n=!0===n?t.selector=["all","inverse"]:n)&&X(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))})},hz.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"))}},hz.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=R(),t=V(t,function(t){return(Y(t)||U(t))&&(t={name:t}),e.get(t.name)?null:(e.set(t.name,!0),new Ip(t,this,this.ecModel))},this);this._data=pt(t,function(t){return!!t})},hz.prototype.getData=function(){return this._data},hz.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&X(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},hz.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},hz.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},hz.prototype.allSelect=function(){var t=this._data,e=this.option.selected;X(t,function(t){e[t.get("name",!0)]=!0})},hz.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;X(t,function(t){t=t.get("name",!0);e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},hz.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=F(this._availableNames,t)},hz.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},hz.type="legend.plain",hz.dependencies=["series"],hz.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",miter
1Limit:"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 lz,uz=hz;function hz(){var t=null!==lz&&lz.apply(this,arguments)||this;return t.type=hz.type,t.layoutMode={type:"box",ignoreSize:!0},t}function cz(t,e){var n=pd(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new cl({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 pz,dz=P,fz=X,gz=j,yz=(u(mz,pz=Hy),mz.prototype.init=function(){this.group.add(this._contentGroup=new gz),this.group.add(this._selectorGroup=new gz),this._isFirstRender=!0},mz.prototype.getContentGroup=function(){return this._contentGroup},mz.prototype.getSelectorGroup=function(){return this._selectorGroup},mz.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=Id(e=t.getBoxLayoutParams(),r={width:n.getWidth(),height:n.getHeight()},n=t.get("padding")),s=Id(B({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=cz(a,t)))},mz.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},mz.prototype.renderInner=function(s,l,u,h,t,e,n){var c=this.getContentGroup(),p=R(),d=l.get("selectedMode"),f=[];u.eachRawSeries(function(t){t.get("legendHoverLink")||f.push(t.id)}),fz(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",dz(vz,a,null,h,f)).on("mouseover",dz(_z,t.name,null,h,f)).on("mouseout",dz(bz,t.name,null,h,f)),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:Di(i,"rgba")})),this._createItem(t,a,r,o,l,s,{},e,n,d,h).on("click",dz(vz,null,a,h,f)).on("mouseover",dz(_z,null,a,h,f)).on("mouseout",dz(bz,null,a,h,f)),p.set(a,!0))},this))):((e=new gz).newline=!0,c.add(e))},this),t&&this._createSelector(t,l,h,e,n)},mz.prototype._createSelector=function(t,i,o,e,n){var r=this.getSelectorGroup();fz(t,function(t){var e=t.type,n=new J({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}),_u(n)})},mz.prototype._createItem=function(t,e,n,i,o,r,a,s,l,u,h){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),f=o.isSelected(e),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon"),a=function(t,e,n,i,o,r,a){function s(n,i){"auto"===n.lineWidth&&(n.lineWidth=0<i.lineWidth?2:0),fz(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?k0(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,f,h),s=new gz,c=i.getModel("textStyle"),m=(!A(t.getLegendIcon)||m&&"inherit"!==m?(h="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g: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=Qm(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:g,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:""):A(v)&&(t=v(e)),f?c.getTextColor():i.get("inactiveColor")),g=(s.add(new J({style:np(c,{text:t,x:m,y:d/2,fill:l,align:h,verticalAlign:"middle"},{inheritColor:l})}
1)),new cl({shape:s.getBoundingRect(),invisible:!0})),a=i.getModel("tooltip");return a.get("show")&&Zc({el:g,componentModel:o,itemName:e,itemTooltipOption:a.option}),s.add(g),s.eachChild(function(t){t.silent=!0}),g.silent=!u,this.getContentGroup().add(s),_u(s),s.__legendDataIndex=n,s},mz.prototype.layoutInner=function(t,e,n,i,o,r){var a,s,l,u,h,c=this.getContentGroup(),p=this.getSelectorGroup(),n=(Md(t.get("orient"),c,t.get("itemGap"),n.width,n.height),c.getBoundingRect()),d=[-n.x,-n.y];return p.markRedraw(),c.markRedraw(),o?(Md("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())},mz.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},mz.type="legend.plain",mz);function mz(){var t=null!==pz&&pz.apply(this,arguments)||this;return t.type=mz.type,t.newlineDisabled=!1,t}function vz(t,e,n,i){bz(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),_z(t,e,n,i)}function xz(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 _z(t,e,n,i){xz(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function bz(t,e,n,i){xz(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function wz(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 Sz(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)),X(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 Mz(t){t.registerComponentModel(uz),t.registerComponentView(yz),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,wz),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",P(Sz,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",P(Sz,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",P(Sz,"inverseSelect")),t.registerAction("legendSelect","legendselected",P(Sz,"select")),t.registerAction("legendUnSelect","legendunselected",P(Sz,"unSelect"))}u(Cz,Iz=uz),Cz.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},Cz.prototype.init=function(t,e,n){var i=Dd(t);Iz.prototype.init.call(this,t,e,n),Az(this,t,i)},Cz.prototype.mergeOption=function(t,e){Iz.prototype.mergeOption.call(this,t,e),Az(this,this.option,t)},Cz.type="legend.scroll",Cz.defaultOption=Dp(uz.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 Iz,Tz=Cz;function Cz(){var t=null!==Iz&&Iz.apply(this,arguments)||this;return t.type=Cz.type,t}function Az(t,e,n){var i=[1,1];i[t.getOrient().index]=0,Ad(e,n,{type:"box",ignoreSize:!!i})}var Dz,kz=j,Lz=["width","height"],Pz=["x","y"],Oz=(u(Nz,Dz=yz),Nz.prototype.init=function(){Dz.prototype.init.call(this),this.group.add(this._containerGroup=new kz),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new kz)},Nz.prototype.resetInner=function(){Dz.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},Nz.prototype.renderInner=function(t,i,e,o,n,r,a){var s=this,l=(Dz.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)}
1l.add(new J({name:"pageText",style:{text:"xx/xx",fill:e.getTextColor(),font:e.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},Nz.prototype.layoutInner=function(t,e,n,i,o,r){var a=this.getSelectorGroup(),s=t.getOrient().index,l=Lz[s],u=Pz[s],h=Lz[1-s],c=Pz[1-s],p=(o&&Md("horizontal",a,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),d=a.getBoundingRect(),f=[-d.x,-d.y],g=x(n),n=(o&&(g[l]=n[l]-d[l]-p),this._layoutContentAndController(t,i,g,s,l,h,c,u));return o&&("end"===r?f[s]+=n[l]+p:(t=d[l]+p,f[s]-=t,n[u]-=t),n[l]+=d[l]+p,f[1-s]+=n[c]+n[h]/2-d[h]/2,n[h]=Math.max(n[h],d[h]),n[c]=Math.min(n[c],d[c]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()),n},Nz.prototype._layoutContentAndController=function(t,e,n,i,o,r,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup,c=(Md(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),Md("horizontal",h,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=h.getBoundingRect(),d=this._showController=c[o]>n[o],f=[-c.x,-c.y],e=(e||(f[i]=l[s]),[0,0]),s=[-p.x,-p.y],g=N(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[o]-p[o]:e[i]+=p[o]+g),s[1-i]+=c[r]/2-p[r]/2,l.setPosition(f),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(f[o]=(d?n:c)[o],f[r]=Math.max(c[r],p[r]),f[a]=Math.min(0,p[a]+s[1-i]),u.__rectSize=n[o],d?((e={x:0,y:0})[o]=Math.max(n[o]-p[o]-g,0),e[r]=f[r],u.setClipPath(new cl({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),f},Nz.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},Nz.prototype._updatePageInfoView=function(n,i){var o=this._controllerGroup,t=(X(["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}))},Nz.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,t=t.getOrient().index,o=Lz[t],r=Pz[t],e=this._findTargetItemIndex(e),a=n.children(),s=a[e],l=a.length,u=l?1:0,h={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(s){n=g(s);h.contentPosition[t]=-n.s;for(var c=e+1,p=n,d=n,f=null;c<=l;++c)(!(f=g(a[c]))&&d.e>p.s+i||f&&!y(f,p.s))&&(p=d.i>p.i?d:f)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=p.i),++h.pageCount),d=f;for(c=e-1,d=p=n,f=null;-1<=c;--c)(f=g(a[c]))&&y(d,f.s)||!(p.i<d.i)||(d=p,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=p.i),++h.pageCount,++h.pageIndex),p=f}return h;function g(t){var e,n;if(t)return{s:n=(e=t.getBoundingRect())[r]+t[r],e:n+e[o],i:t.__legendDataIndex}}function y(t,e){return t.e>=e&&t.s<=e+i}},Nz.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},Nz.type="legend.scroll",Nz);function Nz(){var t=null!==Dz&&Dz.apply(this,arguments)||this;return t.type=Nz.type,t.newlineDisabled=!0,t._currentIndex=0,t}r(function(t){r(Mz),t.registerComponentModel(Tz),t.registerComponentView(Oz),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(zz,Rz=f),zz.type="tooltip",zz.dependencies=["axisPointer"],zz.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 Rz,Ez=zz;function zz(){var t=null!==Rz&&Rz.apply(this,arguments)||this;return t.type=zz.type,t}function Bz(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function Vz(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 Fz=Vz(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function Gz(t,e){if(!t)return e;e=cd(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var Wz=Gz(Vz(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),Hz=Gz(Fz,"transform"),Xz="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(w.transform3dSupported?"will-change:transform;":"");function Yz(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;"+Hz+":"+i+";":[["top",0],["left",0],[Fz,i]]):n?"top:"+e+";
1left:"+t+";":[["top",e],["left",t]]}function Uz(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=Cy(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?","+Hz+l:",left"+l+",top"+l),Wz+":"+u)),s&&r.push("background-color:"+s),X(["width","color","radius"],function(t){var e="border-"+t,n=cd(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),X(["decoration","align"],function(t){var e=n.get(t);e&&o.push("text-"+t+":"+e)}
1),o.join(";"))),null!=d&&r.push("padding:"+pd(d).join("px ")+"px"),r.join(";")+";"}function Zz(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()}qz.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")||""},qz.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=Xz+Uz(t,!this._firstShow,this._longHide)+Yz(o[0],o[1],!0)+"border-color:"+vd(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},qz.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")&&!Bz(n)&&(n=n,i=i,c=Y(o=o)&&"inside"!==o?(r=n.get("backgroundColor"),n=n.get("borderWidth"),i=vd(i),o="left"===(o=o)?"right":"right"===o?"left":"top"===o?"bottom":"top",p=Math.max(1.5*Math.round(n),6),a="",s=Hz+":",-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=""},qz.prototype.setEnterable=function(t){this._enterable=t},qz.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},qz.prototype.moveTo=function(t,e){var n,i=this._styleCoord;Zz(i,this._zr,this._appendToBody,t,e),null!=i[0]&&null!=i[1]&&(n=this.el.style,X(Yz(i[0],i[1]),function(t){n[t[0]]=t[1]}))},qz.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},qz.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)},qz.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())},qz.prototype.isShow=function(){return this._show},qz.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)};var jz=qz;function qz(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=(Zz(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,De(o.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},i.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._hideDelay)}}Jz.prototype.update=function(t){t=t.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},Jz.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},Jz.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 J({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Cy(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),X(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){r.el.style[t]=n.get(t)}),X(["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})},Jz.prototype.setEnterable=function(t){this._enterable=t},Jz.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect
1(),t=Qz(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},Jz.prototype.moveTo=function(t,e){var n,i,o=this.el;o&&(t5(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=$z((i=o.style).borderWidth||0),i=Qz(i),o.x=t+n+i.left,o.y=e+n+i.top,o.markRedraw())},Jz.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},Jz.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},Jz.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())},Jz.prototype.isShow=function(){return this._show},Jz.prototype.dispose=function(){this._zr.remove(this.el)};var Kz=Jz;function Jz(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),t5(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function $z(t){return Math.max(0,t)}function Qz(t){var e=$z(t.shadowBlur||0),n=$z(t.shadowOffsetX||0),t=$z(t.shadowOffsetY||0);return{left:$z(e-n),right:$z(e+n),top:$z(e-t),bottom:$z(e+t)}}function t5(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var e5,n5=new cl({shape:{x:-1,y:-1,width:2,height:2}}),i5=(u(o5,e5=Hy),o5.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 Kz(e):new jz(e.getDom(),e,{appendToBody:t.get("appendToBody",!0)}))},o5.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")?rm(this,"_updatePosition",50,"fixRate"):am(this,"_updatePosition"))},o5.prototype._initGlobalListener=function(){var i=this._tooltipModel.get("triggerOn");vR("itemTooltip",this._api,T(function(t,e,n){"none"!==i&&(0<=i.indexOf(t)?this._tryShow(e,n):"leave"===t&&this._hide(n))},this))},o5.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})}))},o5.prototype.manuallyShowTip=function(t,e,n,i){var o,r,a,s;i.from!==this.uid&&!w.node&&n.getDom()&&(o=a5(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=n5).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=IR(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)))},o5.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(a5(i,n))},o5.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"===r5([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}},o5.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?(Fm(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)))},o5.prototype._showOrMove=function(t,e){t=t.get("showDelay");e=T(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},o5.prototype._showAxisTooltip=function(t,e){var u=this._ecModel,h=this._tooltipModel,n=[e.offsetX,e.offsetY],i=r5([e.tooltipOption],h),c=this._renderMode,p=[],d=vy("section",{blocks:[],noHeader:!0}),f=[],g=new Ay,o=(X(t,function(t){X(t.dataByAxis,function(o){var r,a,s=u.getComponent(o.axisDim+"Axis",o.axisIndex),l=o.value;s&&null!=l&&(r=JN(l,s.axis,u,o.seriesDataIndices,o.valueLabelOpt),a=vy("section",{header:r,noHeader:!Ct(r),sortBlocks:!0,blocks:[]}),d.blocks.push(a),X(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=B1(s.axis,{value:l}),i.axisValueLabel=r,i.marker=g.makeTooltipMarker("item",vd(i.color),c),(e=(t=bg(n.formatTooltip(t,!0,null))).frag)&&(n=r5([n],h).get("valueFormatter"),a.blocks.push(n?H({valueFormatter:n}
1,e):e)),t.text&&f.push(t.text),p.push(i))}))})}),d.blocks.reverse(),f.reverse(),e.position),e=i.get("order"),e=Sy(d,g,c,e,u.get("useUTC"),i.get("textStyle")),e=(e&&f.unshift(e),"richText"===c?"\n\n":"<br/>"),r=f.join(e);this._showOrMove(i,function(){this._updateContentNotChangedOnAxis(t,p)?this._updatePosition(i,o,n[0],n[1],this._tooltipContent,p):this._showTooltipContent(i,r,p,Math.random()+"",n[0],n[1],o,null,g)})},o5.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),f=this._renderMode,g=t.positionDefault,y=r5([d.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),h=y.get("trigger");null!=h&&"item"!==h||(i=c.getDataParams(p,e),o=new Ay,i.marker=o.makeTooltipMarker("item",vd(i.color),f),g=bg(c.formatTooltip(p,!1,e)),h=y.get("order"),e=y.get("valueFormatter"),r=g.frag,a=r?Sy(e?H({valueFormatter:e},r):r,o,f,h,l.get("useUTC"),y.get("textStyle")):g.text,s="item_"+c.name+"_"+p,this._showOrMove(y,function(){this._showTooltipContent(y,a,i,s,t.offsetX,t.offsetY,t.position,t.target,o)}),n({type:"showTip",dataIndexInside:p,dataIndex:d.getRawIndex(p),seriesIndex:u,from:this.uid}))},o5.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=r5(r,this._tooltipModel,i?{position:i}:null),s=a.get("content"),l=Math.random()+"",u=new Ay;this._showOrMove(a,function(){var t=x(a.get("formatterParams")||{});this._showTooltipContent(a,s,t,l,e.offsetX,e.offsetY,e.position,n,u)}),t({type:"showTip",from:this.uid})},o5.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,yd(t=(d=W(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?jp(d.axisValue,t,p):t,i,!0)):A(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))},o5.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}},o5.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()),f=t.get("align"),g=t.get("verticalAlign"),y=a&&a.getBoundingRect().clone();a&&y.applyTransform(a.transform),W(e=A(e)?e([n,i],r,o.el,y,{viewSize:[c,p],contentSize:d.slice()}):e)?(n=q(e[0],c),i=q(e[1],p)):O(e)?((r=e).width=d[0],r.height=d[1],n=(r=Id(r,{width:c,height:p})).x,i=r.y,g=f=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=f?null:20,u=g?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]),f&&(n-=s5(f)?d[0]/2:"right"===f?d[0]:0),g&&(i-=s5(g)?d[1]/2:"bottom"===g?d[1]:0),Bz(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)},o5.prototype._updateContentNotChangedOnAxis=function(n,r){var t=this._lastDataByCoordSys,a=this._cbParamsList,s=!!t&&t.length===n.length;return s&&X(t,function(t,e){var t=t.dataByAxis||[],o=(n[e]||{}).dataByAxis||[];(s=s&&t.length===o.length)&&X(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)&&X(n,function(t,e){e=i[e];s=s&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),a&&X(t.seriesDataIndices,function(t){var t=t.seriesIndex,e=r[t],t=a[t];e&&t&&t.data!==e.data&&(s=!1)})})}
1),this._lastDataByCoordSys=n,this._cbParamsList=r,!!s},o5.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},o5.prototype.dispose=function(t,e){!w.node&&e.getDom()&&(am(this,"_updatePosition"),this._tooltipContent.dispose(),bR("itemTooltip",e))},o5.type="tooltip",o5);function o5(){var t=null!==e5&&e5.apply(this,arguments)||this;return t.type=o5.type,t}function r5(t,e,n){for(var i=e.ecModel,o=n?(o=new Ip(n,i,i),new Ip(e.option,o,i)):e,r=t.length-1;0<=r;r--){var a=t[r];a&&(a=Y(a=a instanceof Ip?a.get("tooltip",!0):a)?{formatter:a}:a)&&(o=new Ip(a,o,i))}return o}function a5(t,e){return t.dispatchAction||T(e.dispatchAction,e)}function s5(t){return"center"===t||"middle"===t}function l5(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 u5(t){Zr(t,"label",["show"])}r(function(t){r(OR),t.registerComponentModel(Ez),t.registerComponentView(i5),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Vt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Vt)});var h5,c5=i(),p5=(u(d5,h5=f),d5.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},d5.prototype.isAnimationEnabled=function(){var t;return!w.node&&(t=this.__hostSeries,this.getShallow("animation"))&&t&&t.isAnimationEnabled()},d5.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},d5.prototype._mergeOption=function(t,i,e,o){var r=this.mainType;e||i.eachSeries(function(t){var e=t.get(this.mainType,!0),n=c5(t)[r];e&&e.data?(n?n._mergeOption(e,i,!0):(o&&u5(e),X(e.data,function(t){t instanceof Array?(u5(t[0]),u5(t[1])):u5(t)}),H(n=this.createMarkerModelFromSeries(e,this,i),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),n.__hostSeries=t),c5(t)[r]=n):c5(t)[r]=null},this)},d5.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t),i=i.getName(t);return vy("section",{header:this.name,blocks:[vy("nameValue",{name:i,value:o,noName:!i,noValue:null==o})]})},d5.prototype.getData=function(){return this._data},d5.prototype.setData=function(t){this._data=t},d5.getMarkerModelFromSeries=function(t,e){return c5(t)[e]},d5.type="marker",d5.dependencies=["series","grid","polar","geo"],d5);function d5(){var t=null!==h5&&h5.apply(this,arguments)||this;return t.type=d5.type,t.createdBySelf=!1,t}ut(p5,wp.prototype);u(y5,f5=p5),y5.prototype.createMarkerModelFromSeries=function(t,e,n){return new y5(t,e,n)},y5.type="markPoint",y5.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}};var f5,g5=y5;function y5(){var t=null!==f5&&f5.apply(this,arguments)||this;return t.type=y5.type,t}function m5(t){return!isNaN(parseFloat(t.x))||!isNaN(parseFloat(t.y))}function v5(t,e,n,i,o,r){var a=[],s=Dx(e,i)?e.getCalculationInfo("stackResultDimension"):i,t=M5(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 x5={min:P(v5,"min"),max:P(v5,"max"),average:P(v5,"average"),median:P(v5,"median")};function _5(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=b5(e,n,i,t),(e=x(e)).type&&x5[e.type]&&s.baseAxis&&s.valueAxis?(i=F(o,s.baseAxis.dim),t=F(o,s.valueAxis.dim),s=x5[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++)x5[r[a]]&&(r[a]=M5(n,n.mapDimension(o[a]),r[a]));else e.coord=[];return e}var s}function b5(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 w5(t,e){return!(t&&t.containData&&e.coord&&!m5(e))||t.containData(e.coord)}function S5(t,o){return t?function(t,e,n,i){return Ng(i<2?t.coord&&t.coord[i]:t.value,o[i])}:function(t,e,n,i){return Ng(t.value,o[i])}}function M5(t,e,n){var i,o;return"average"===n?(o=i=0,t.each(e,function(t,e){isNaN(t)||(i+=t,o++)}
1),i/o):"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var I5,T5=i(),yp=(u(C5,I5=Hy),C5.prototype.init=function(){this.markerGroupMap=R()},C5.prototype.render=function(t,n,i){var o=this,e=this.markerGroupMap;e.each(function(t){T5(t).keep=!1}),n.eachSeries(function(t){var e=p5.getMarkerModelFromSeries(t,o.type);e&&o.renderSeries(t,e,n,i)}),e.each(function(t){T5(t).keep||o.group.remove(t.group)})},C5.prototype.markKeep=function(t){T5(t).keep=!0},C5.prototype.toggleBlurSeries=function(t,e){var n=this;X(t,function(t){t=p5.getMarkerModelFromSeries(t,n.type);t&&t.getData().eachItemGraphicEl(function(t){t&&(e?hu:cu)(t)})})},C5.type="marker",C5);function C5(){var t=null!==I5&&I5.apply(this,arguments)||this;return t.type=C5.type,t}function A5(a,s,l){var u=s.coordinateSystem;a.each(function(t){var e,n,i,o=a.getItemModel(t),r=q(o.get("x"),l.getWidth()),o=q(o.get("y"),l.getHeight());isNaN(r)||isNaN(o)?s.getMarkerPosition?i=s.getMarkerPosition(a.getValues(a.dimensions,t)):u&&(e=a.get(u.dimensions[0],t),n=a.get(u.dimensions[1],t),i=u.dataToPoint([e,n])):i=[r,o],isNaN(r)||(i[0]=r),isNaN(o)||(i[1]=o),a.setItemLayout(t,i)})}u(L5,D5=yp),L5.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=p5.getMarkerModelFromSeries(t,"markPoint");e&&(A5(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},L5.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 mw),c=(i=t,s=u,o=(a=a)?V(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 Sx(o,s),s=V(s.get("data"),P(_5,i)),a&&(s=pt(s,P(w5,a))),a=S5(!!a,o),r.initData(s,null,a),r);u.setData(c),A5(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=((A(n)||A(i)||A(o)||A(r))&&(s=u.getRawValue(t),l=u.getDataParams(t),A(n)&&(n=n(s,l)),A(i)&&(i=i(s,l)),A(o)&&(o=o(s,l)),A(r))&&(r=r(s,l)),e.getModel("itemStyle").getItemStyle()),l=zm(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")},L5.type="markPoint";var D5,k5=L5;function L5(){var t=null!==D5&&D5.apply(this,arguments)||this;return t.type=L5.type,t}r(function(t){t.registerComponentModel(g5),t.registerComponentView(k5),t.registerPreprocessor(function(t){l5(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})});u(N5,P5=p5),N5.prototype.createMarkerModelFromSeries=function(t,e,n){return new N5(t,e,n)},N5.type="markLine",N5.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 P5,O5=N5;function N5(){var t=null!==P5&&P5.apply(this,arguments)||this;return t.type=N5.type,t}function R5(t,e,n,i){var o,r,a,s,l=t.getData();return(e=[_5(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=b5(i,l,e,t)).valueAxis,M5(l,kx(l,e.valueDataDim),o)),e=1-(l="x"===s.dim?0:1),s={coord:[]},(a=x(i)).type=null,a.coord=[],a.coord[e]=-1/0,s.coord[e]=1/0,0<=(e=n.get("precision"))&&U(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]),_5(t,n[1]),H({},n[2])])[2].type=e[2].type||null,d(e[2],e[0]),d(e[2],e[1]),e}var E5=i();function z5(t){return!isNaN(t)&&!isFinite(t)}function B5(t,e,n,i){var o=1-t,r=i.dimensions[t];return z5(e[o])&&z5(n[o])&&e[t]===n[t]&&i.getAxis(r).containData(e[t])}function V5(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(B5(1,n,i,t)||B5(0,n,i,t)))return!0}return w5(t,e[0])&&w5(t,e[1])}function F5(t,e,n,i,o){var r,a,s=i.coordinateSystem,l=t.getItemModel(e),u=q(l.get("x"),o.getWidth()),l=q(l.get("y"),o.getHeight());isNaN(u)||isNaN(l)?(r=i.getMarkerPosition?i.getMarkerPosition(t.getValues(t.dimensions,e)):(a=s.dimensions,o=t.get(a[0],e),i=t.get(a[1],e),s.dataToPoint([o,i])),Ob(s,"cartesian2d")&&(o=s.getAxis("x"),i=s.getAxis("y"),a=s.dimensions,z5(t.get(a[0],e))?r[0]=o.toGlobalCoord(o.getExtent()[n?0:1]):z5(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(H5,G5=yp),H5.prototype.updateTransform=function(t,e,r){e.eachSeries(function(e){var n,i,o,t=p5.getMarkerModelFromSeries(e,"markLine");t&&(n=t.getData(),i=E5(t).from,o=E5(t).to,i.each(function(t){F5(i,t,!0,e,r),F5(o,t,!1,e,r)}
1),n.each(function(t){n.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(e.id).updateLayout())},this)},H5.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 qA),p=(this.group.add(c.group),n=r,u=e,p=(l=l)?V(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 Sx(p,u),o=new Sx(p,u),s=new Sx([],u),u=V(u.get("data"),P(R5,n,l,u)),l&&(u=pt(u,P(V5,l))),l=S5(!!l,p),i.initData(V(u,function(t){return t[0]}),null,l),o.initData(V(u,function(t){return t[1]}),null,l),s.initData(V(u,function(t){return t[2]})),s.hasItemOption=!0,{from:i,to:o,line:s}),d=p.from,f=p.to,g=p.line,y=(E5(e).from=d,E5(e).to=f,e.setData(g),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=(F5(t,e,n,r,a),i.getModel("itemStyle").getItemStyle());null==o.fill&&(o.fill=zm(h,"color")),t.setItemVisual(e,{symbolKeepAspect:i.get("symbolKeepAspect"),symbolOffset:N(i.get("symbolOffset",!0),x[n?0:1]),symbolRotate:N(i.get("symbolRotate",!0),v[n?0:1]),symbolSize:N(i.get("symbolSize"),m[n?0:1]),symbol:N(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),_(f,t,!1)}),g.each(function(t){var e=g.getItemModel(t).getModel("lineStyle").getLineStyle();g.setItemLayout(t,[d.getItemLayout(t),f.getItemLayout(t)]),null==e.stroke&&(e.stroke=d.getItemVisual(t,"style").fill),g.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:f.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:f.getItemVisual(t,"symbolOffset"),toSymbolRotate:f.getItemVisual(t,"symbolRotate"),toSymbolSize:f.getItemVisual(t,"symbolSize"),toSymbol:f.getItemVisual(t,"symbol"),style:e})}),c.updateData(g),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")},H5.type="markLine";var G5,W5=H5;function H5(){var t=null!==G5&&G5.apply(this,arguments)||this;return t.type=H5.type,t}r(function(t){t.registerComponentModel(O5),t.registerComponentView(W5),t.registerPreprocessor(function(t){l5(t.series,"markLine")&&(t.markLine=t.markLine||{})})});u(U5,X5=p5),U5.prototype.createMarkerModelFromSeries=function(t,e,n){return new U5(t,e,n)},U5.type="markArea",U5.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}};var X5,Y5=U5;function U5(){var t=null!==X5&&X5.apply(this,arguments)||this;return t.type=U5.type,t}function Z5(t,e,n,i){var o,r=i[0],i=i[1];if(r&&i)return r=_5(t,r),t=_5(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 j5=i();function q5(t){return!isNaN(t)&&!isFinite(t)}function K5(t,e,n){t=1-t;return q5(e[t])&&q5(n[t])}function J5(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 Ob(t,"cartesian2d")?!(!i||!o||!K5(1,i,o)&&!K5(0,i,o))||(i=r,o=e,!((n=t)&&n.containZone&&i.coord&&o.coord&&!m5(i)&&!m5(o)))||n.containZone(i.coord,o.coord):w5(t,r)||w5(t,e)}function $5(t,e,n,i,o){var r,a,s,l,u,h,c=i.coordinateSystem,p=t.getItemModel(e),d=q(p.get(n[0]),o.getWidth()),p=q(p.get(n[1]),o.getHeight());return isNaN(d)||isNaN(p)?(h=i.getMarkerPosition?(o=t.getValues(["x0","y0"],e),s=t.getValues(["x1","y1"],e),a=c.clampData(o),h=c.clampData(s),r=[],"x0"===n[0]?r[0]=(a[0]>h[0]?s:o)[0]:r[0]=(a[0]>h[0]?o:s)[0],"y0"===n[1]?r[1]=(a[1]>h[1]?s:o)[1]:r[1]=(a[1]>h[1]?o:s)[1],i.getMarkerPosition(r,n,!0)):(a=[l=t.get(n[0],e),u=t.get(n[1],e)],c.clampData&&c.clampData(a,a),c.dataToPoint(a,!0)),Ob(c,"cartesian2d")&&(o=c.getAxis("x"),s=c.getAxis("y"),l=t.get(n[0],e),u=t.get(n[1],e),q5(l)?h[0]=o.toGlobalCoord(o.getExtent()["x0"===n[0]?0:1]):q5(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 Q5,tB=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],eB=(u(nB,Q5=yp),nB.prototype.updateTransform=function(t,e,o){e.eachSeries(function(n){var i,t=p5.getMarkerModelFromSeries(n,"markArea");t&&(i=t.getData()).each(function(e){var t=V(tB,function(t){return $5(i,e,t,n,o)});i.setItemLayout(e,t),i.getItemGraphicEl(e).setShape("points",t)})},this)},nB.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 j}),h=(this.group.add(i.group),this.markKeep(i),function(t,n,e){var i,o;{var r;i=t?(r=V(t&&t.dimensions,function(t){var e=n.getData();return H(H({},e.getDimensionInfo(e.mapDimension(t))||{}),{name:t,ordinalMeta:null})}),o=V(["x0","y0","x1","y1"],function(t,e){return{name:t,type:r[e%2].type}}),new Sx(o,e)):new Sx(o=[{name:"value",type:"float"}],e)}e=V(e.get("data"),P(Z5,n,t,e)),t&&(e=pt(e,P(J5,t))),t=t?function(t,e,n,i){return Ng(t.coord[Math.floor(i/2)][i%2],o[i])}:function(t,e,n,i){return Ng(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=V(tB,function(t){return $5(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=zm(u,"color");n.fill||(n.fill=r,Y(n.fill)&&(n.fill=Ai(n.fill,.4))),n.stroke||(n.stroke=r),h.setItemVisual(e,"style",n)}),h.diff(j5(i).data).add(function(t){var e=h.getItemLayout(t);e.allClipped||(e=new Ah({shape:{points:e.points}}),h.setItemGraphicEl(t,e),i.group.add(e))}).update(function(t,e){var e=j5(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 Ah({shape:{points:n.points}}),h.setItemGraphicEl(t,e),i.group.add(e))}).remove(function(t){t=j5(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)?Ai(i.fill,1):"#000"}
1),Iu(t,n),bu(t,null,null,n.get(["emphasis","disabled"])),$(t).dataModel=o}),j5(i).data=h,i.group.silent=o.get("silent")||a.get("silent")},nB.type="markArea",nB);function nB(){var t=null!==Q5&&Q5.apply(this,arguments)||this;return t.type=nB.type,t}r(function(t){t.registerComponentModel(Y5),t.registerComponentView(eB),t.registerPreprocessor(function(t){l5(t.series,"markArea")&&(t.markArea=t.markArea||{})})});u(oB,iB=f),oB.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},oB.prototype.mergeOption=function(t){iB.prototype.mergeOption.apply(this,arguments),this._initData()},oB.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},oB.prototype.getCurrentIndex=function(){return this.option.currentIndex},oB.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},oB.prototype.setPlayState=function(t){this.option.autoPlay=!!t},oB.prototype.getPlayState=function(){return!!this.option.autoPlay},oB.prototype._initData=function(){var o,t=this.option,e=t.data||[],t=t.axisType,r=this._names=[],e=("category"===t?(o=[],X(e,function(t,e){var n,i=Qr(qr(t),"");O(t)?(n=x(t)).value=e:n=e,o.push(n),r.push(i)})):o=e,{category:"ordinal",time:"time",value:"number"}[t]||"number");(this._data=new Sx([{name:"value",type:e}],this)).initData(o,r)},oB.prototype.getData=function(){return this._data},oB.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},oB.type="timeline",oB.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 iB,e=oB;function oB(){var t=null!==iB&&iB.apply(this,arguments)||this;return t.type=oB.type,t.layoutMode="box",t}u(sB,rB=e),sB.type="timeline.slider",sB.defaultOption=Dp(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 rB,aB=sB;function sB(){var t=null!==rB&&rB.apply(this,arguments)||this;return t.type=sB.type,t}ut(aB,wp.prototype);u(uB,lB=Hy),uB.type="timeline";var lB,xa=uB;function uB(){var t=null!==lB&&lB.apply(this,arguments)||this;return t.type=uB.type,t}u(pB,hB=_p),pB.prototype.getLabelModel=function(){return this.model.getModel("label")},pB.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")};var hB,cB=pB;function pB(t,e,n,i){t=hB.call(this,t,e,n)||this;return t.type=i||"value",t}var dB,fB=Math.PI,gB=i(),yB=(u(mB,dB=xa),mB.prototype.init=function(t,e){this.api=e},mB.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 vy("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},X(["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()},mB.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},mB.prototype.dispose=function(){this._clearTimer()},mB.prototype._layout=function(t,e){var n,i,o,r,a=t.get(["label","position"]),s=t.get("orient"),l=(l=e,Id((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:fB/2},h="vertical"===s?l.height:l.width,c=t.getModel("controlStyle"),p=c.get("show",!0),d=p?c.get("itemSize"):0,f=p?c.get("itemGap"):0,g=d+f,y=(t.get(["label","rotate"])||0)*fB/180,m=c.get("position",!0),v=p&&c.get("showPlayBtn",!0),x=p&&c.get("showPrevBtn",!0),p=
1p&&c.get("showNextBtn",!0),c=0,_=h,m=("left"===m||"bottom"===m?(v&&(n=[0,0],c+=g),x&&(i=[c,0],c+=g)):(v&&(n=[_-d,0],_-=g),x&&(i=[0,0],c+=g)),p&&(o=[_-d,0],_-=g),[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:f}},mB.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,-fB/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)},mB.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 Zx({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new d1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Jx}}(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 cB("value",o,t.axisExtent,
1i));return r.model=e,r},mB.prototype._createGroup=function(t){t=this[t]=new j;return this.group.add(t),t},mB.prototype._renderAxisLine=function(t,e,n,i){var o,n=n.getExtent();i.get(["lineStyle","show"])&&(o=new zh({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 zh({shape:{x1:n[0],x2:this._currentPointer?this._currentPointer.x:n[0],y1:0,y2:0},style:B({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1}),e.add(n))},mB.prototype._renderAxisTick=function(t,a,s,l){var u=this,h=l.getData(),e=s.scale.getTicks();this._tickSymbols=[],X(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=vB(n,i,a,e),e=(i.ensureState("emphasis").style=o.getItemStyle(),i.ensureState("progress").style=r.getItemStyle(),_u(i),$(i));n.get("tooltip")?(e.dataIndex=t.value,e.dataModel=l):e.dataIndex=e.dataModel=null,u._tickSymbols.push(i)})},mB.prototype._renderAxisLabel=function(a,s,l,t){var u,h=this;l.getLabelModel().get("show")&&(u=t.getData(),t=l.getViewLabels(),this._tickLabels=[],X(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 J({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),_u(r),gB(r).dataIndex=e,h._tickLabels.push(r)}))},mB.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=$o(N(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),_u(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)},mB.prototype._renderCurrentPointer=function(t,e,n,i){var o=i.getData(),r=i.getCurrentIndex(),o=o.getItemModel(r).getModel("checkpointStyle"),a=this;this._currentPointer=vB(o,o,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=T(a._handlePointerDrag,a),t.ondragend=T(a._handlePointerDragend,a),xB(t,a._progressLine,r,n,i,!0)},onUpdate:function(t){xB(t,a._progressLine,r,n,i)}})},mB.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},mB.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},mB.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},mB.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)},mB.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")))},mB.prototype._toAxisCoord=function(t){return Vc(t,this._mainGroup.getLocalTransform(),!0)},mB.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},mB.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},mB.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})},mB.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",gB(n[i]).dataIndex<=t)},mB.type="timeline.slider",mB);function mB(){var t=null!==dB&&dB.apply(this,arguments)||this;return t.type=mB.type,t}
1function vB(t,e,n,i,o,r){var a=e.get("color"),a=(o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=Qm(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),t0(t.get("symbolSize"))),r=(i.scaleX=n[0]/2,i.scaleY=n[1]/2,e0(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 xB(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 _B(t){t=t&&t.timeline;X(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),bB(t),wB(t,"controlPosition")&&(wB(n=t.controlStyle||(t.controlStyle={}),"position")||(n.position=t.controlPosition),"none"!==n.position||wB(n,"show")||(n.show=!1,delete n.position),delete t.controlPosition),X(t.data||[],function(t){O(t)&&!W(t)&&(!wB(t,"value")&&wB(t,"name")&&(t.value=t.name),bB(t))}))})}function bB(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};X(t,function(t,e){i[e]||wB(n,e)||(n[e]=t)}),e.label&&!wB(t,"emphasis")&&(t.emphasis=e.label,delete e.label)}function wB(t,e){return t.hasOwnProperty(e)}r(function(t){var e;t.registerComponentModel(aB),t.registerComponentView(yB),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)}),B({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(_B)});var SB=function(t,e,n){t=x((MB[t]||{})[e]);return n&&W(t)?t[t.length-1]:t},MB={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]}
1,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]}},IB=X;function TB(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return 1}function CB(e,t,o){var r={};return IB(t,function(n){var t,i=r[n]=((t=function(){}).prototype.__hidden=t.prototype,new t);IB(e[n],function(t,e){dC.isValidType(e)&&(t={type:e,visual:t},o&&o(t,n),i[e]=new dC(t),"opacity"===e)&&((t=x(t)).type="colorAlpha",i.__hidden.__alphaForOpacity=new dC(t))})}),r}function AB(t,f,g,y){var m={};return X(t,function(t){var e=dC.prepareVisualTypes(f[t]);m[t]=e}),{progress:function(t,a){var e,s;function n(t){return Em(a,s,t)}function i(t,e){var n=a,i=s,o=t,r=e;switch(o){case"color":n.ensureUniqueItemVisual(i,"style")[n.getVisual("drawType")]=r,n.setItemVisual(i,"colorFromPalette",!1);break;case"opacity":n.ensureUniqueItemVisual(i,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":n.setItemVisual(i,o,r)}}null!=y&&(e=a.getDimensionIndex(y));for(var o=a.getStore();null!=(s=t.next());){var r=a.getRawDataItem(s);if(!r||!1!==r.visualMap)for(var l=null!=y?o.get(e,s):s,r=g(l),u=f[r],h=m[r],
1c=0,p=h.length;c<p;c++){var d=h[c];u[d]&&u[d].applyVisual(l,n,i)}}}}}var DB,kB=dC.mapVisual,LB=dC.eachVisual,PB=W,OB=X,NB=Sr,RB=br,jm=(u(EB,DB=f),EB.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},EB.prototype.optionUpdated=function(t,e){var n,i,o,r=this.option;e||(n=r,i=t,X(e=this.replacableOptionKeys,function(t){i.hasOwnProperty(t)&&TB(i[t])&&(o=!0)}),o&&X(e,function(t){i.hasOwnProperty(t)&&TB(i[t])?n[t]=x(i[t]):delete n[t]})),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},EB.prototype.resetVisual=function(t){var e=this.stateList;t=T(t,this),this.controllerVisuals=CB(this.option.controller,e,t),this.targetVisuals=CB(this.option.target,e,t)},EB.prototype.getItemSymbol=function(){return null},EB.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},EB.prototype.eachTargetSeries=function(e,n){X(this.getTargetSeriesIndices(),function(t){t=this.ecModel.getSeriesByIndex(t);t&&e.call(n,t)},this)},EB.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(t){t===e&&(n=!0)}),n},EB.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):A(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))}},EB.prototype.resetExtent=function(){var t=this.option,t=NB([t.min,t.max]);this._dataExtent=t},EB.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}},EB.prototype.getExtent=function(){return this._dataExtent.slice()},EB.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){PB(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]={},OB(e,function(t,e){var n;dC.isValidType(e)&&null!=(n=SB(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";OB(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&&x(r)||(u?l:[l])),null==i.symbolSize&&(i.symbolSize=a&&x(a)||(u?n[0]:[n[0],n[0]])),i.symbol=kB(i.symbol,function(t){return"none"===t?l:t}),i.symbolSize);null!=t&&(e=-1/0,LB(t,function(t){e<t&&(e=t)}),i.symbolSize=kB(t,function(t){return RB(t,[0,e],[0,n[0]],!0)}))},this)}.call(this,o)},EB.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},EB.prototype.isCategory=function(){return!!this.option.categories},EB.prototype.setSelected=function(t){},EB.prototype.getSelected=function(){return null},EB.prototype.getValueState=function(t){return null},EB.prototype.getVisualMeta=function(t){return null},EB.type="visualMap",EB.dependencies=["series"],EB.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"}},EB);function EB(){var t=null!==DB&&DB.apply(this,arguments)||this;return t.type=EB.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 zB,BB=[20,140],VB=(u(FB,zB=jm),FB.prototype.optionUpdated=function(t,e){zB.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},FB.prototype.resetItemSize=function(){zB.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;null!=t[0]&&!isNaN(t[0])||(t[0]=BB[0]),null!=t[1]&&!isNaN(t[1])||(t[1]=BB[1])},FB.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]))},FB.prototype.completeVisualOption=function(){zB.prototype.completeVisualOption.apply(this,arguments),X(this.stateList,function(t){t=this.option.controller[t].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},FB.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},FB.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},FB.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"},FB.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}
1,FB.prototype.getVisualMeta=function(n){var t=GB(0,0,this.getExtent()),e=GB(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"]}},FB.type="visualMap.continuous",FB.defaultOption=Dp(jm.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)"}}),FB);function FB(){var t=null!==zB&&zB.apply(this,arguments)||this;return t.type=FB.type,t}function GB(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(HB,WB=Hy),HB.prototype.init=function(t,e){this.ecModel=t,this.api=e},HB.prototype.render=function(t,e,n,i){!1!==(this.visualMapModel=t).get("show")?this.doRender(t,e,n,i):this.group.removeAll()},HB.prototype.renderBackground=function(t){var e=this.visualMapModel,n=pd(e.get("padding")||0),i=t.getBoundingRect();t.add(new cl({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")}}))},HB.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 X(dC.prepareVisualTypes(u),function(t){var e=u[t];o.convertOpacityToAlpha&&"opacity"===t&&(t="colorAlpha",e=u.__alphaForOpacity),dC.dependsOn(t,i)&&e&&e.applyVisual(n,s,l)}),a[i]},HB.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Td(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},HB.prototype.doRender=function(t,e,n,i){},HB.type="visualMap";var WB,Hm=HB;function HB(){var t=null!==WB&&WB.apply(this,arguments)||this;return t.type=HB.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}var XB=[["left","right","width"],["top","bottom","height"]];function YB(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=XB[o],a=[0,null,10],s={},l=0;l<3;l++)s[XB[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=Id(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 UB(t,e){return X(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var ZB,jB=br,qB=X,KB=Math.min,JB=Math.max,$B=(u(QB,ZB=Hm),QB.prototype.doRender=function(t,e,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},QB.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)},QB.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 J({style:np(r,{x:i[0],y:i[1],verticalAlign:"horizontal"===n?"middle":o,align:"horizontal"===n?o:"center",text:e})})))},QB.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,o=this._orient,r=this._useHandle,a=YB(e,this.api,i),a=n.mainGroup=this._createBarGroup(a),s=new j,s=(a.add(s),s.add(n.outOfRange=tV()),s.add(n.inRange=tV(null,r?nV(this._orient):null,T(this._dragHandle,this,"all",!1),T(this._dragHandle,this,"all",!0))),s.setClipPath(new cl({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}
1)),e.textStyleModel.getTextRect("å½")),s=JB(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)},QB.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=$o(t.get("handleSize"),i[0]),u=Qm(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),h=nV(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(),Tu(u,!0),e.add(u),this.visualMapModel.textStyleModel),t=new J({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},QB.prototype._createIndicator=function(t,e,n,i,o){var r=$o(t.get("indicatorSize"),n[0]),r=Qm(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 J({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},QB.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():eV(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1))},QB.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),t=[0,t.itemSize[1]];this._handleEnds=[jB(e[0],n,t,!0),jB(e[1],n,t,!0)]},QB.prototype._updateInterval=function(t,e){var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]],e=(cL(e=e||0,i,o,t,0),n.getExtent());this._dataInterval=[jB(i[0],o,e,!0),jB(i[1],o,e,!0)]},QB.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)},QB.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 tc(0,0,0,1,o),barPoints:i,handlesColor:[o[0].color,o[o.length-1].color]}},QB.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},QB.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]]]},QB.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new j("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})},QB.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(),qB([0,1],function(t){var e=s[t],n=(e.setStyle("fill",o.handlesColor[t]),e.y=i[t],jB(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],Bc(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))},QB.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=jB(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,Bc(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 f=0;f<d.length;f++)this._api.enterBlur(d[f])}},QB.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,
1!0))[1]=KB(JB(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()})},QB.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()},QB.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=KB(JB(l[0],t),l[1]),o=n,r=l,a=6,i=(i=s).get("hoverLinkDataSize"),o=[t-(i=a=i?jB(i,o,r,!0)/2:a),t+i],r=jB(t,l,n,!0),a=[jB(o[0],l,n,!0),jB(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||eV(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",UB(i[0],s)),this._dispatchHighDown("highlight",UB(i[1],s)))},QB.prototype._hoverLinkFromSeriesMouseOver=function(t){var e,n;Fm(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))},QB.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])},QB.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",UB(t,this.visualMapModel)),t.length=0},QB.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},QB.prototype._applyTransform=function(t,e,n,i){e=Bc(e,i?null:this.group);return(W(t)?Vc:Fc)(t,e,n)},QB.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},QB.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},QB.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},QB.type="visualMap.continuous",QB);function QB(){var t=null!==ZB&&ZB.apply(this,arguments)||this;return t.type=QB.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}function tV(t,e,n,i){return new Ah({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){Le(t.event)},ondragend:i})}function eV(t){var e=t.get("hoverLinkOnHandle");return null==e?t.get("realtime"):e}function nV(t){return"vertical"===t?"ns-resize":"ew-resize"}function iV(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})}var oV={type:"selectDataRange",event:"dataRangeSelected",update:"update"},rV=[{createOnAllSeries:!0,reset:function(n,t){var i=[];return t.eachComponent("visualMap",function(t){var e=n.pipelineContext;!t.isTargetSeries(n)||e&&e.large||i.push(AB(t.stateList,t.targetVisuals,T(t.getValueState,t),t.getDataDimensionIndex(n.getData())))}),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(aV,null,n,t))||{stops:[],outerColors:[]},0<=(t=t.getDataDimensionIndex(i)))&&(e.dimension=t,o.push(e))}),n.getData().setVisual("visualMeta",o)}}];function aV(t,e,n,i){for(var o=e.targetVisuals[i],r=dC.prepareVisualTypes(o),a={color:zm(t.getData(),"color")},s=0,l=r.length;s<l;s++){var u=r[s],u=o["opacity"===u?"__alphaForOpacity":u];
1u&&u.applyVisual(n,h,c)}return a.color;function h(t){return a[t]}function c(t,e){a[t]=e}}var sV=X;function lV(t){t=t&&t.visualMap;W(t)||(t=t?[t]:[]),sV(t,function(t){t&&(uV(t,"splitList")&&!uV(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList),t=t.pieces)&&W(t)&&sV(t,function(t){O(t)&&(uV(t,"start")&&!uV(t,"min")&&(t.min=t.start),uV(t,"end"))&&!uV(t,"max")&&(t.max=t.end)})})}function uV(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var hV=!1;function cV(e){hV||(hV=!0,e.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?0<t.pieces.length:0<t.splitNumber)&&!t.calculable?"piecewise":"continuous"}),e.registerAction(oV,iV),X(rV,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(lV))}function pV(t){t.registerComponentModel(VB),t.registerComponentView($B),cV(t)}u(yV,dV=jm),yV.prototype.optionUpdated=function(t,e){dV.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode(),i=(this._pieceList=[],gV[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=x(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=V(this._pieceList,function(t){return t=x(t),"inRange"!==e&&(t.visual=null),t}))})},yV.prototype.completeVisualOption=function(){var i=this.option,n={},t=dC.listVisualTypes(),o=this.isCategory();function r(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}X(i.pieces,function(e){X(t,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),X(n,function(t,e){var n=!1;X(this.stateList,function(t){n=n||r(i,t,e)||r(i.target,t,e)},this),n||X(this.stateList,function(t){(i[t]||(i[t]={}))[e]=SB(e,"inRange"===t?"active":"inactive",o)})},this),dV.prototype.completeVisualOption.apply(this,arguments)},yV.prototype._resetSelected=function(t,e){var n,i=this.option,o=this._pieceList,r=(e?i:t).selected||{};i.selected=r,X(o,function(t,e){t=this.getSelectedMapKey(t);r.hasOwnProperty(t)||(r[t]=!0)},this),"single"===i.selectedMode&&(n=!1,X(o,function(t,e){t=this.getSelectedMapKey(t);r[t]&&(n?r[t]=!1:n=!0)},this))},yV.prototype.getItemSymbol=function(){return this.get("itemSymbol")},yV.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},yV.prototype.getPieceList=function(){return this._pieceList},yV.prototype._determineMode=function(){var t=this.option;return t.pieces&&0<t.pieces.length?"pieces":this.option.categories?"categories":"splitNumber"},yV.prototype.setSelected=function(t){this.option.selected=x(t)},yV.prototype.getValueState=function(t){t=dC.findPieceIndex(t,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},yV.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){dC.findPieceIndex(t,r)===i&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},yV.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},yV.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,X(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})}},yV.type="visualMap.piecewise",yV.defaultOption=Dp(jm.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 dV,fV=yV,gV={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++;
1e.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),X(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(e){var t=this.option;X(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),mV(t,e)},pieces:function(c){var t=this.option;X(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=dC.retrieveVisuals(t),c.push(e)},this),mV(t,c),zr(c),X(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 yV(){var t=null!==dV&&dV.apply(this,arguments)||this;return t.type=yV.type,t._pieceList=[],t}function mV(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}u(_V,vV=Hm),_V.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),X(t.viewPieceList,function(t){var e=t.piece,n=new j,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 J({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),Md(o.get("orient"),i,o.get("itemGap")),this.renderBackground(i),this.positionGroup(i)},_V.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:UB(e.findTargetDataIndices(n),e)})})},_V.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;return"vertical"===e.orient?YB(t,this.api,t.itemSize):(t=e.align)&&"auto"!==t?t:"left"},_V.prototype._renderEndsText=function(t,e,n,i,o){var r,a;e&&(r=new j,a=this.visualMapModel.textStyleModel,r.add(new J({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))},_V.prototype._getViewData=function(){var t=this.visualMapModel,e=V(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}},_V.prototype._createItemSymbol=function(t,e,n){t.add(Qm(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_V.prototype._onItemClick=function(t){var n,i,e=this.visualMapModel,o=e.option,r=o.selectedMode;r&&(n=x(o.selected),i=e.getSelectedMapKey(t),"single"===r||!0===r?(n[i]=!0,X(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}))},_V.type="visualMap.piecewise";var vV,xV=_V;function _V(){var t=null!==vV&&vV.apply(this,arguments)||this;return t.type=_V.type,t}function bV(t){t.registerComponentModel(fV),t.registerComponentView(xV),cV(t)}r(function(t){r(pV),r(bV)});var wV=["x","y","radius","angle","single"],SV=["cartesian2d","polar","singleAxis"];function MV(t){return t+"Axis"}function IV(t,e){var i,o=R(),n=[],r=R();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}DV.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)};var TV,CV=DV,yp=(u(AV,TV=f),AV.prototype.init=function(t,e,n){var i=kV(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},AV.prototype.mergeOption=function(t){var e=kV(t);d(this.option,t,!0),d(this.settledOption,e,!0),this._doInit(e)},AV.prototype._doInit=function(t){var n=this.option,i=(this._setDefaultThrottle(t),this._updateRangeUse(t),this.settledOption);X([["start","startValue"],["end","endValue"]],function(t,e){"value"===this._rangePropMode[e]&&(n[t[0]]=i[t[0]]=null)},this),this._resetTarget()},AV.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=R();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)},AV.prototype._fillSpecifiedTargetAxis=function(i){var o=!1;return X(wV,function(t){var e,n=this.getReferringComponents(MV(t),la);n.specified&&(o=!0,e=new CV,X(n.models,function(t){e.add(t.componentIndex)}),i.set(t,e))},this),o},AV.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 CV).add(o.componentIndex),r.set(e,n),a=!1,"x"!==e&&"y"!==e||(i=o.getReferringComponents("grid",sa).models[0])&&X(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&&X(wV,function(t){var e,n;a&&(e=i.findComponents({mainType:MV(t),filter:function(t){return"category"===t.get("type",!0)}}))[0]&&((n=new CV).add(e[0].componentIndex),r.set(t,n),a=!1)},this)},AV.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){e=e||t},this),"y"===e?"vertical":"horizontal"},AV.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)},AV.prototype._updateRangeUse=function(i){var o=this._rangePropMode,r=this.get("rangeMode");X([["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")})},AV.prototype.noTarget=function(){return this._noTarget},AV.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(t,e){null==n&&(n=this.ecModel.getComponent(MV(t),e))},this),n},AV.prototype.eachTargetAxis=function(n,i){this._targetAxisInfoMap.each(function(t,e){X(t.indexList,function(t){n.call(i,e,t)})})},AV.prototype.getAxisProxy=function(t,e){t=this.getAxisModel(t,e);if(t)return t.__dzAxisProxy},AV.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(MV(t),e)},AV.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;X([["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)},AV.prototype.setCalculatedRange=function(e){var n=this.option;X(["start","startValue","end","endValue"],function(t){n[t]=e[t]})},AV.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},AV.prototype.getValueRange=function(t,e){return null!=t||null!=e?this.getAxisProxy(t,e).getDataValueWindow():(t=this.findRepresentativeAxisProxy())?t.getDataValueWindow():void 0},AV.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},AV.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},AV.prototype.getOrient=function(){return this._orient},AV.type="dataZoom",AV.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],AV.defaultOption={z:4,filterMode:"filter",start:0,end:100},AV);function AV(){var t=null!==TV&&TV.apply(this,arguments)||this;return t.type=AV.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}function DV(){this.indexList=[],this.indexMap=[]}function kV(e){var n={};return X(["start","end","startValue","endValue","throttle"],function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}u(OV,LV=yp),OV.type="dataZoom.select";var LV,PV=OV;function OV(){var t=null!==LV&&LV.apply(this,arguments)||this;return t.type=OV.type,t}u(RV,NV=Hy),RV.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},RV.type="dataZoom";var NV,e=RV;function RV(){var t=null!==NV&&NV.apply(this,arguments)||this;return t.type=RV.type,t}u(BV,EV=e),BV.type="dataZoom.select";var EV,zV=BV;function BV(){var t=null!==EV&&EV.apply(this,arguments)||this;return t.type=BV.type,t}var VV=X,FV=Sr,GV=(WV.prototype.hostedBy=function(t){return this._dataZoomModel===t},WV.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},WV.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},WV.prototype.getTargetSeriesModels=function(){var n=[];return this.ecModel.eachSeries(function(t){var e;e=(e=t).get("coordinateSystem"),0<=F(SV,e)&&(e=MV(this._dimName),e=t.getReferringComponents(e,s
1a).models[0])&&this._axisIndex===e.componentIndex&&n.push(t)},this),n},WV.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},WV.prototype.getMinMaxSpan=function(){return x(this._minMaxSpan)},WV.prototype.calculateDataWindow=function(i){var o,r=this._dataExtent,s=this.getAxisModel().axis.scale,a=this._dataZoomModel.getRangePropMode(),l=[0,100],u=[],h=[],c=(VV(["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}),FV(h),FV(u),this._minMaxSpan);function t(t,e,n,i,o){var r=o?"Span":"ValueSpan";cL(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}},WV.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],VV(n=n,function(t){var e,n;e=o,n=t.getData(),t=i,n&&X(W1(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=P1((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())},WV.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)&&VV(n,function(n){var l,u,i=n.getData(),h=i.mapDimensionsAll(o);h.length&&("weakFilter"===r?(l=i.getStore(),u=V(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})):VV(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))}),VV(h,function(t){i.setApproximateExtent(c,t)}))})},WV.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},o=this._dataZoomModel,r=this._dataExtent;VV(["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)},WV.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())},WV);function WV(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}var HV={getTargetSeries:function(r){function t(o){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){var n=r.getComponent(MV(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 GV(t,e,i,r),o.push(n.__dzAxisProxy))}),R());return X(o,function(t){X(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 XV=!1;function YV(t){XV||(XV=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,HV),t.registerAction("dataZoom",function(e,t){X(IV(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 UV(t){t.registerComponentModel(PV),t.registerComponentView(zV),YV(t)}function ZV(){}var jV={};function qV(t,e){jV[t]=e}function KV(t){return jV[t]}u(QV,JV=f),QV.prototype.optionUpdated=function(){JV.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;X(this.option.feature,function(t,e){e=KV(e);e&&(e.getDefaultOption&&(e.defaultOption=e.getDefaultOption(n)),d(t,e.defaultOption))})},QV.type="toolbox",QV.layoutMode={type:"box",ignoreSize:!0}
1,QV.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 JV,$V=QV;function QV(){var t=null!==JV&&JV.apply(this,arguments)||this;return t.type=QV.type,t}u(n3,t3=Hy),n3.prototype.render=function(d,f,g,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 Ip(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=KV(t);if(!i)return;n=new i}_[t]=n}else if(!(n=_[e]))return;n.uid=Ap("toolbox-feature"),n.model=o,n.ecModel=f,n.api=g;var r,a,s,l,u,h,c,p,i=n instanceof ZV;t||!e?!o.get("show")||i&&n.unusable?i&&n.remove&&n.remove(f,g):(a=n,e=t,u=(r=o).getModel("iconStyle"),h=r.getModel(["emphasis","iconStyle"]),t=a instanceof ZV&&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={},X(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 J({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"),g.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==r.get(["iconStatus",e])&&g.leaveEmphasis(this),i.hide()}),("emphasis"===r.get(["iconStatus",e])?lu:uu)(n),w.add(n),n.on("click",T(a.onclick,a,f,g,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?lu:uu)(i[t])},n instanceof ZV&&n.render&&n.render(o,f,g,y)):i&&n.dispose&&n.dispose(f,g)}w.removeAll(),d.get("show")&&(m=+d.get("itemSize"),v="vertical"===d.get("orient"),x=d.get("feature")||{},_=this._features||(this._features={}),b=[],X(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=g,i=(e=d).getBoxLayoutParams(),o=e.get("padding"),n={width:n.getWidth(),height:n.getHeight()},r=Id(i,n,o),Md(e.get("orient"),t,e.get("itemGap"),r.width,r.height),Td(t,i,n,o),w.add(cz(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&&!A(r)&&i&&(r=r.style||(r.style={}),i=jo(i,J.makeFont(r)),e=t.x+w.x,n=!1,t.y+w.y+m+i.height>g.getHeight()&&(o.position="top",n=!0),t=n?-5-i.height:m+10,e+i.width/2>g.getWidth()?(o.position=["100%",t],r.align="right"):e-i.width/2<0&&(o.position=[0,t],r.align="left"))}))},n3.prototype.updateView=function(t,e,n,i){X(this._features,function(t){t instanceof ZV&&t.updateView&&t.updateView(t.model,e,n,i)})},n3.prototype.remove=function(e,n){X(this._features,function(t){t instanceof ZV&&t.remove&&t.remove(e,n)}),this.group.removeAll()},n3.prototype.dispose=function(e,n){X(this._features,function(t){t instanceof ZV&&t.dispose&&t.dispose(e,n)})},n3.type="toolbox";var t3,e3=n3;function n3(){return null!==t3&&t3.apply(this,arguments)||this}u(r3,i3=ZV),r3.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("connectedBackgroun
1dColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),t=w.browser;if(A(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}},r3.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",n
1ame:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}};var i3,o3=r3;function r3(){return null!==i3&&i3.apply(this,arguments)||this}var a3,s3="__ec_magicType_stack__",l3=[["line","bar"],["stack"]],u3=(u(c3,a3=ZV),c3.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return X(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},c3.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:{}}},c3.prototype.onclick=function(t,e,a){var n,s,l=this.model,i=l.get(["seriesIndex",a]);h3[a]&&(s={series:[]},X(l3,function(t){0<=F(t,a)&&X(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=h3[a](e,n,t,l),n=(e&&(B(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"}))},c3),h3={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")===s3;if("line"===t||"bar"===t)return i.setIconStatus("stack",n?"normal":"emphasis"),d({id:e,stack:n?"":s3},i.get(["option","stack"])||{},!0)}};function c3(){return null!==a3&&a3.apply(this,arguments)||this}Bv({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var p3=new Array(60).join("-"),d3="\t";function f3(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=[],X(t.seriesGroupByCategoryAxis,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(V(t.series,function(t){return t.name})),r=[n.model.getCategories()];X(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(d3)],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(d3))}h.push(a.join("\n"))}),h.join("\n\n"+p3+"\n\n")),V(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+d3:"")+r.join(d3))}),o.join("\n")}).join("\n\n"+p3+"\n\n")],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join("\n\n"+p3+"\n\n"),meta:t.meta}}function g3(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var y3=new RegExp("["+d3+"]+","g");function m3(t,o){var t=t.split(new RegExp("\n*"+p3+"\n*","g")),r={series:[]};return X(t,function(t,e){var n,i;0<=t.slice(0,t.indexOf("\n")).indexOf(d3)?(n=function(t){for(var e=t.split(/\n+/g),n=[],i=V(g3(e.shift()).split(y3),function(t){return{name:t,data:[]}}),o=0;o<e.length;o++){var r=g3(e[o]).split(y3);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=g3(e.shift()),n=[],i=0;i<e.length;i++){var o=g3(e[i]);if(o){for(var r,a=o.split(y3),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(_3,v3=ZV),_3.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=f3(t),c=(A(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"),f=document.createElement("div"),g=(t=(t+=";background-color:"+i.get("buttonColor"))+(";color:"+i.get("buttonTextColor")),this);function y(){n.removeChild(o),g._dom=null}ke(d,"click",y),ke(f,"click",function(){if(!(null==h&&null!=u||null!=h&&null==u)){var t;try{t=A(h)?h(s,e.getOption()):m3(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],f.innerHTML=a[2],f.style.cssText=d.style.cssText=t,i.get("readOnly")||p.appendChild(f),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},_3.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},_3.prototype.dispose=function(t,e){this.remove(t,e)},_3.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 v3,x3=_3;function _3(){return null!==v3&&v3.apply(this,arguments)||this}Bv({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,o){var r=[];X(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,V(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=B(t,e),n)&&delete t.name,t}))})):r.push(H({type:"scatter"},t))}),o.mergeOption(B({series:r},t.newOption))});var b3=X,w3=i();function S3(t){t=w3(t);return t.snapshots||(t.snapshots=[{}]),t.snapshots}u(T3,M3=ZV),T3.prototype.onclick=function(t,e){w3(t).snapshots=null,e.dispatchAction({type:"restore",from:this.uid})},T3.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 M3,I3=T3;function T3(){return null!==M3&&M3.apply(this,arguments)||this}Bv({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var C3=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],A3=(D3.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=R3[t.brushType](0,n,e),t.__rangeOffset={offset:z3[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax})}),t},D3.prototype.matchOutputRanges=function(t,i,o){X(t,function(n){var t=this.findTargetInfo(n,i);t&&!0!==t&&X(t.coordSyses,function(t){var e=R3[n.brushType](1,t,n.range,!0);o(n,e.values,t,i)})},this)},D3.prototype.setInputRanges=function(t,i){X(t,function(t){var e,n=this.findTargetInfo(t,i);t.range=t.range||[],n&&!0!==n&&(t.panelId=n.panelId,n=R3[t.brushType](0,n.coordSys,t.coordRange),e=t.__rangeOffset,t.range=e?z3[t.brushType](n.values,e.offset,function(t,e){t=V3(t),e=V3(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)},D3.prototype.makePanelOpts=function(n,i){return V(this._targetInfoList,function(t){var e=t.getPanelRect();return{panelId:t.panelId,defaultBrushType:i?i(t):null,clipPath:_P(e),isTargetByCursor:wP(e,n,t.coordSysModel),getLinearBrushOtherExtent:bP(e)}})},D3.prototype.controlSeries=function(t,e,n){t=this.findTargetInfo(t,n);return!0===t||t&&0<=F(t.coordSyses,e.coordinateSystem)},D3.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=L3(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<O3.length;s++)if(O3[s](i,r))return r}return!0},D3);function D3(t,e,n){var i=this,o=(this._targetInfoList=[],L3(e,t));X(P3,function(t,e){n&&n.include&&!(0<=F(n.include,e))||t(o,i._targetInfoList)})}function k3(t){return t[0]>t[1]&&t.reverse(),t}function L3(t,e){return ra(t,e,{includeMainTypes:C3})}var P3={grid:function(t,i){var o=t.xAxisModels,r=t.yAxisModels,t=t.gridModels,e=R(),a={},s={};(o||r||t)&&(X(o,function(t){t=t.axis.grid.model;
1e.set(t.id,t),a[t.id]=!0}),X(r,function(t){t=t.axis.grid.model;e.set(t.id,t),s[t.id]=!0}),X(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=[];X(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:N3.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,n){X(t.geoModels,function(t){var e=t.coordinateSystem;n.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:e,coordSyses:[e],getPanelRect:N3.geo})})}},O3=[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}],N3={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Bc(t)),e}},R3={lineX:P(E3,0),lineY:P(E3,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=[k3([o[0],t[0]]),k3([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:V(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 E3(t,e,n,i){var o=n.getAxis(["x","y"][t]),n=k3(V([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(B3,0),lineY:P(B3,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 V(t,function(t,e){return[t[0]-i[0]*n[e][0],t[1]-i[1]*n[e][1]]})}};function B3(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function V3(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var F3,G3=X,W3=Yr+"toolbox-dataZoom_",H3=(u(Y3,F3=ZV),Y3.prototype.render=function(t,e,n,i){var o,r,a,s;this._brushController||(this._brushController=new GL(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 A3(U3(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 S3(t).length}(e)?"emphasis":"normal")},Y3.prototype.onclick=function(t,e,n){X3[n].call(this)},Y3.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},Y3.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},Y3.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=cL(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 A3(U3(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=S3(o=l),b3(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))},Y3.prototype._dispatchZoomAction=function(t){var n=[];G3(t,function(t,e){n.push(x(t))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},Y3.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)"}}}
1,Y3),X3={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=S3(t),t=i[i.length-1],1<i.length&&i.pop(),o={},b3(t,function(t,e){for(var n=i.length-1;0<=n;n--)if(t=i[n][e]){o[e]=t;break}}),o))}};function Y3(){return null!==F3&&F3.apply(this,arguments)||this}function U3(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 Z3(e,t){var n;return X(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}wp="dataZoom",xa=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,U3(i)),G3(e.xAxisModels,function(t){return r(t,"xAxis","xAxisIndex")}),G3(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:W3+e+t};e[n]=t,o.push(e)}},Tt(null==ef.get(wp)&&xa),ef.set(wp,xa),r(function(t){t.registerComponentModel($V),t.registerComponentView(e3),qV("saveAsImage",o3),qV("magicType",u3),qV("dataView",x3),qV("dataZoom",H3),qV("restore",I3),r(UV)});var j3=["transition","enterFrom","leaveTo"],q3=j3.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function K3(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?j3:q3,o=0;o<i.length;o++){var r=i[o];null==t[r]&&null!=e[r]&&(t[r]=e[r])}}u(Q3,J3=f),Q3.prototype.mergeOption=function(t,e){var n=this.option.elements;this.option.elements=null,J3.prototype.mergeOption.call(this,t,e),this.option.elements=n},Q3.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=[];X(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),Ad(i,n,{ignoreSize:!0}),kd(r,i),K3(r,i),K3(r,i,"shape"),K3(r,i,"style"),K3(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=[Z3(n,["left","right"]),Z3(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})},Q3.prototype._flatten=function(t,n,i){X(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)},Q3.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},Q3.type="graphic",Q3.defaultOption={elements:[]};var J3,$3=Q3;function Q3(){var t=null!==J3&&J3.apply(this,arguments)||this;return t.type=Q3.type,t.preventAutoZ=!0,t}var tF,eF={path:null,compoundPath:null,group:j,image:nl,text:J},nF=i(),iF=(u(oF,tF=Hy),oF.prototype.init=function(){this._elMap=R()},oF.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},oF.prototype._updateElements=function(d){var f,g,y,m,t=d.useElOptionsToUpdate();t&&(f=this._elMap,g=this.group,y=d.get("z"),m=d.get("zlevel"),X(t,function(t){var e,n,i,o=Qr(t.id,null),r=null!=o?f.get(o):null,a=Qr(t.parentId,null),a=null!=a?f.get(a):g,s=t.type,l=t.style,u=("text"===s&&l&&t.hv&&t.hv[1]&&(l.textVerticalAlign=l.textBaseline=l.verticalAlign=l.align=null),t.textContent),h=t.textConfig,s=(l&&HO(l,s,!!h,!!u)&&(l=XO(l,s,!0),!h&&l.textConfig&&(h=t.textConfig=l.textConfig),!u)&&l.textContent&&(u=l.textContent),e=H({},e=t),X(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(bd),function(t){delete e[t]}),e),l=t.$action||"merge",c="merge"===l,p="replace"===l,a=(c?((i=!(n=r))?n=aF(o,a,t.type,f):(n&&(nF(n).isNew=!1),hN(n)),n&&(QO(n,s,d,{isInit:i}),lF(n,t,y,m))):p?(sF(r,t,f,d),(n=aF(o,a,t.type,f))&&(QO(n,s,d,{isInit:!0}),lF(n,t,y,m))):"remove"===l&&(tN(r,t),sF(r,t,f,d)),f.get(o));a&&u&&(c?(s=a.getTextContent())?s.attr(u):a.setTextContent(new J(u)):p&&a.setTextContent(new J(u))),a&&((n=t.clipPath)&&(l=n.type,r=void 0,i=!1,c?r=(i=!(o=a.getClipPath())||nF(o).type!==l)?rF(l):o:p&&(i=!0,r=rF(l)),a.setClipPath(r),QO(r,n,d,{isInit:i}),cN(r,n.keyframeAnimation,d)),s=nF(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}),cN(a,t.keyframeAnimation,d))}))},oF.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=(f=i.parent)===r,p=nF(i),g=nF(f),p.width=q(p.option.width,c?s:g.width)||0,p.height=q(p.option.height,c?l:g.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 f=i.parent,g=nF(f),y={},m=Td(i,d,f===r?{width:s,height:l}:{width:g.width,height:g.height},null,{hv:d.hv,boundingMode:d.bounding},y);if(!nF(i).isNew&&m){for(var v=d.transition,x={},_=0;_<u.length;_++){var b=u[_],w=y[b];v&&(nN(v)||0<=F(v,b))?x[b]=w:i[b]=w}C(i,x,t,0)}else i.attr(y)}},oF.prototype._clear=function(){var e=this,n=this._elMap;n.each(function(t){sF(t,nF(t).option,n,e._lastGraphicModel)}),this._elMap=R()},oF.prototype.dispose=function(){this._clear()},oF.type="graphic",oF);function oF(){var t=null!==tF&&tF.apply(this,arguments)||this;return t.type=oF.type,t}function rF(t){var e=new(Z(eF,t)?eF[t]:kc(t))({});return nF(e).type=t,e}function aF(t,e,n,i){n=rF(n);return e.add(n),i.set(t,n),nF(n).id=t,nF(n).isNew=!0,n}function sF(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse(function(t){sF(t,e,n,i)}),eN(t,e,i),n.removeKey(nF(t).id))}function lF(n,i,t,e){n.isGroup||X([["cursor",ja.prototype.cursor],["zlevel",e||0],["z",t||0],["z2",0]],function(t){var e=t[0];Z(i,e)?n[e]=N(i[e],t[1]):null==n[e]&&(n[e]=t[1])}),X(G(i),function(t){var e;0===t.indexOf("on")&&(e=i[t],n[t]=A(e)?e:null)}),Z(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($3),t.registerComponentView(iF),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(mb);var uF={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},hF=(bF.prototype.evaluate=function(t){var e=typeof t;return Y(e)?this._condVal.test(t):!!U(e)&&this._condVal.test(t+"")},bF),cF=(_F.prototype.evaluate=function(){return this.value},_F),pF=(xF.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},xF),dF=(vF.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},vF),fF=(mF.prototype.evaluate=function(){return!this.child.evaluate()},mF),gF=(yF.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},yF);function yF(){}function mF(){}function vF(){}function xF(){}function _F(){}function bF(t){null==(this._condVal=Y(t)?new RegExp(t):_t(t)?t:null)&&Wr("")}function wF(t,e){var n;if(!0===t||!1===t)return(n=new cF).value=t,n;{if(MF(t)||Wr(""),t.and)return SF("and",t,e);if(t.or)return SF("or",t,e);if(t.not)n=e,MF(r=(r=t).not)||Wr(""),(l=new fF).child=wF(r,n),l.child||Wr("");
1else{for(var i=t,o=e,r=o.prepareGetValue(i),a=[],s=G(i),l=i.parser,u=l?Eg(l):null,h=0;h<s.length;h++){var c,p=s[h];"parser"===p||o.valueGetterAttrMap.get(p)||(c=Z(uF,p)?uF[p]:p,p=i[p],p=u?u(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new Wg("eq"===t,e):Z(zg,t)?new Bg(t,e):null}(c,p)||"reg"===c&&new hF(p))||Wr(""),a.push(c))}a.length||Wr(""),(l=new gF).valueGetterParam=r,l.valueParser=u,l.getValue=o.getValue,l.subCondList=a}return l}}function SF(t,e,n){e=e[t],W(e)||Wr(""),e.length||Wr(""),t=new("and"===t?pF:dF);return t.children=V(e,function(t){return wF(t,n)}),t.children.length||Wr(""),t}function MF(t){return O(t)&&!ht(t)}TF.prototype.evaluate=function(){return this._cond.evaluate()};var IF=TF;function TF(t,e){this._cond=wF(t,e)}var CF={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,o=(t=t.config,n={valueGetterAttrMap:R({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(Z(t,"dimension")||Wr(""),i.getDimensionInfo(e));return t||Wr(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new IF(t,n)),r=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),o.evaluate()&&r.push(e);return{data:r}}},AF={type:"echarts:sort",transform:function(t){var a=t.upstream,t=t.config,t=Ur(t),s=(t.length||Wr(""),[]),t=(X(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?Eg(i):null);i&&!o&&Wr(""),s.push({dimIdx:e.index,parser:o,comparator:new Vg(n,t)})}),a.sourceFormat);t!==Gd&&t!==Wd&&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(CF),t.registerTransform(AF)});var DF=Math.sin,kF=Math.cos,LF=Math.PI,PF=2*Math.PI,OF=180/LF,NF=(RF.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},RF.prototype.moveTo=function(t,e){this._add("M",t,e)},RF.prototype.lineTo=function(t,e){this._add("L",t,e)},RF.prototype.bezierCurveTo=function(t,e,n,i,o,r){this._add("C",t,e,n,i,o,r)},RF.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},RF.prototype.arc=function(t,e,n,i,o,r){this.ellipse(t,e,n,n,0,i,o,r)},RF.prototype.ellipse=function(t,e,n,i,o,r,a,s){var l,u=a-r,s=!s,h=Math.abs(u),c=Ni(h-PF)||(s?PF<=u:PF<=-u),h=!!c||!Ni(h)&&LF<=(0<u?u%PF:u%PF+PF)==!!s,u=t+n*kF(r),p=e+i*DF(r),o=(this._start&&this._add("M",u,p),Math.round(o*OF));c?(c=1/this._p,this._add("A",n,i,o,1,+s,t+n*kF(r+(l=(s?1:-1)*(PF-c))),e+i*DF(r+l)),.01<c&&this._add("A",n,i,o,0,+s,u,p)):(r=t+n*kF(a),l=e+i*DF(a),this._add("A",n,i,o,+h,+s,r,l))},RF.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")},RF.prototype.closePath=function(){0<this._d.length&&this._add("Z")},RF.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},RF.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},RF.prototype.getStr=function(){return this._str},RF);function RF(){}var EF="none",zF=Math.round;var BF=["lineCap","miterLimit","lineJoin"],VF=V(BF,function(t){return"stroke-"+t.toLowerCase()});function FF(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!==EF?(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",EF),null!=(r=(r=e).stroke)&&r!==EF){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=a0(n))[0],r=a[1],o&&(r=zF(r||0),t("stroke-dasharray",o.join(",")),r||i)&&t("stroke-dashoffset",r)):i&&t("stroke-dasharray",EF);for(var s=0;s<BF.length;s++){var l=BF[s];(i||e[l]!==Ys[l])&&(l=e[l]||Ys[l])&&t(VF[s],l)}}else i&&t("stroke",EF)}var GF="http://www.w3.org/2000/svg",WF="http://www.w3.org/1999/xlink",HF="http://www.w3.org/2000/xmlns/",XF="http://www.w3.org/XML/1998/namespace";function YF(t){return document.createElementNS(GF,t)}function UF(t,e,n,i,o){return{tag:t,attrs:n||{},children:i,text:o,key:e}}function ZF(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+V(n,t).join(r)+r:"")+"</"+i+">"}(t)}function jF(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{}
1,clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function qF(t,e,n,i){return UF("svg","root",{width:t,height:e,xmlns:GF,"xmlns:xlink":WF,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var KF={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"},JF="transform-origin";var $F={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function QF(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function tG(t){return Y(t)?KF[t]?"cubic-bezier("+KF[t]+")":ni(t)?t:"":""}function eG(D,k,L,P){var t=D.animators,e=t.length,n=[];if(D instanceof Kh){if(o=function(t,e,u){var h,c,t=t.shape.paths,p={};if(X(t,function(t){var e=jF(u.zrId),t=(e.animation=!0,eG(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=QF(p,u),h.replace(c,t)}(D,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=tG(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={},f="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=tG(h.easing),d=h.rawValue;(Y(d)||U(d))&&(e[c]=e[c]||{},e[c][l]=h.rawValue,p)&&(e[c][f]=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=(Xo(h,D),H(h,o[S]),Yi(h)),p=o[S][f];a[S]=c?{transform:c}:{},c=a[S],l=void 0,l=(h=h).originX,h=h.originY,(l||h)&&(c[JF]=l+"px "+h+"px"),p&&(a[S][f]=p)}var d,g,y,m,v,x=!0;for(S in r){a[S]=a[S]||{};var _=!e,p=r[S][f],b=(e=_?new As:e).len(),w=(e.reset(),a[S].d=(g=r[S],y=e,w=void 0,w=H({},(d=D).shape),H(w,g),d.buildPath(y,w),(g=new NF).reset(Xi(d)),y.rebuildPath(g,1),g.generateStr(),g.getStr()),e.len());if(!_&&b!==w){x=!1;break}p&&(a[S][f]=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 $F[t]});for(var M,I=G(a),T=!0,u=1;u<I.length;u++){var C=I[u-1],A=I[u];if(a[C][JF]!==a[A][JF]){T=!1;break}M=a[C][JF]}if(T&&M){for(var S in a)a[S][JF]&&delete a[S][JF];k[JF]=M}if(pt(I,function(t){return 0<G(a[t]).length}).length)return QF(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 nG=Math.round;function iG(t){return t&&Y(t.src)}function oG(t){return t&&A(t.toDataURL)}function rG(i,o,r,a){FF(function(t,e){var n="fill"===t||"stroke"===t;n&&Wi(e)?fG(o,i,t,a):n&&Vi(e)?gG(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)}(f=(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=f.shadowOffsetX||0,p=f.shadowOffsetY||0,d=f.shadowBlur,f=Oi(f.shadowColor),g=f.opacity,f=f.color,d=d/2/h+" "+d/2/u;l=e.zrId+"-s"+e.shadowIdx++,e.defs[l]=UF("filter",l,{id:l,x:"-100%",y:"-100%",width:"300%",height:"300%"},[UF("feDropShadow","",{dx:c/h,dy:p/u,stdDeviation:d,"flood-color":f,"flood-opacity":g})]),s[n]=l}t.filter=Hi(l)}}function aG(t){return Ni(t[0]-1)&&Ni(t[1])&&Ni(t[2])&&Ni(t[3]-1)}function sG(t,e,n){var i;!e||Ni((i=e)[4])&&Ni(i[5])&&aG(e)||(i=n?10:1e4,t.transform=aG(e)?"translate("+nG(e[4]*i)/i+" "+nG(e[5]*i)/i+")":"matrix("+Ri((n=e)[0])+","+Ri(n[1])+","+Ri(n[2])+","+Ri(n[3])+","+Ei(n[4])+","+Ei(n[5])+")")}function lG(t,e,n){for(var i=t.points,o=[],r=0;r<i.length;r++)o.push(nG(i[r][0]*n)/n),o.push(nG(i[r][1]*n)/n);e.points=o.join(" ")}function uG(t){return!t.smooth}var hG,cG={circle:[(hG=V(["cx","cy","r"],function(t){return"string"==typeof t?[t,t]:t}),function(t,e,n){for(var i=0;i<hG.length;i++){var o=hG[i],r=t[o[0]];null!=r&&(e[o[1]]=nG(r*n)/n)}}
1)],polyline:[lG,uG],polygon:[lG,uG]};function pG(t,e){var n,i,o,r=t.style,a=t.shape,s=cG[t.type],l={},u=e.animation,h="path",c=t.style.strokePercent,p=e.compress&&Xi(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 NF)).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)),sG(l,t.transform),rG(l,r,t,e),e.animation&&eG(t,l,e),UF(h,t.id+"",l)}function dG(t,e){{if(t instanceof K)return pG(t,e);if(t instanceof nl){var n,i=e,o=(n=t).style,r;if((r=o.image)&&!Y(r)&&(iG(r)?r=r.src:oG(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),sG(r,
vendor: 4,228 bytes, line 1
1n.transform),rG(r,o,n,i),i.animation&&eG(n,r,i),UF("image",n.id+"",r)}else if(t instanceof Js){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||Q,r=o.x||0,l=(t=o.y||0,e=Jo(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(wl(o)){var t="",u=o.fontStyle,h=_l(o.fontSize);if(!parseFloat(h))return;var c=o.fontFamily||g,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),sG(e,a.transform),rG(e,o,a,s),s.animation&&eG(a,e,s),UF("text",a.id+"",e,void 0,i)}}}}function fG(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=N(t.x,.5),r.cy=N(t.y,.5),r.r=N(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(UF("stop",l+"",h))}var t=ZF(UF(o,"",r,s)),d=i.gradientCache,f=d[t];f||(f=i.zrId+"-g"+i.gradientIdx++,d[t]=f,r.id=f,i.defs[f]=UF(o,f,r,s)),e[n]=Hi(f)}function gG(t,e,n,i){var o,r,a,s,l,u,h,c,p=t.style[n],d=t.getBoundingRect(),f={},g=p.repeat,y="no-repeat"===g,m="repeat-x"===g,v="repeat-y"===g;Bi(p)?(r=p.imageWidth,a=p.imageHeight,g=void 0,Y(h=p.image)?g=h:iG(h)?g=h.src:oG(h)&&(g=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=Aa(g,null,t,function(t){y||s(u,t),s(o,t)}))&&h.width&&h.height&&(r=r||h.width,a=a||h.height)),o=UF("image","img",{href:g,width:r,height:a}),f.width=r,f.height=a):p.svgElement&&(o=x(p.svgElement),f.width=p.svgWidth,f.height=p.svgHeight),o&&(y?c=l=1:m?(l=1,c=f.width/d.width):v?(c=1,l=f.height/d.height):f.patternUnits="userSpaceOnUse",null==c||isNaN(c)||(f.width=c),null==l||isNaN(l)||(f.height=l),(t=Yi(p))&&(f.patternTransform=t),h=ZF(u=UF("pattern","",f,[o])),(c=(g=i.patternCache)[h])||(c=i.zrId+"-p"+i.patternIdx++,g[h]=c,f.id=c,u=i.defs[c]=UF("pattern",c,f,[o])),e[n]=Hi(c))}function yG(t){return document.createTextNode(t)}function mG(t,e,n){t.insertBefore(e,n)}function vG(t,e){t.removeChild(e)}function xG(t,e){t.appendChild(e)}function _G(t){return t.parentNode}function bG(t){return t.nextSibling}function wG(t,e){t.textContent=e}var SG=58,MG=120,IG=UF("","");function TG(t){return void 0===t}function CG(t){return void 0!==t}function AG(t,e){var n=t.key===e.key;return t.tag===e.tag&&n}function DG(t){var e,n=t.children,i=t.tag;if(CG(i)){var o=t.elm=YF(i);if(PG(IG,t),W(n))for(e=0;e<n.length;++e){var r=n[e];null!=r&&xG(o,DG(r))}else CG(t.text)&&!O(t.text)&&xG(o,yG(t.text))}else t.elm=yG(t.text);return t.elm}function kG(t,e,n,i,o){for(;i<=o;++i){var r=n[i];null!=r&&mG(t,DG(r),e)}}function LG(t,e,n,i){for(;n<=i;++n){var o=e[n];null!=o&&(CG(o.tag)?vG(_G(o.elm),o.elm):vG(t,o.elm))}}function PG(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)!==MG?i.setAttribute(n,a):"xmlns:xlink"===n||"xmlns"===n?i.setAttributeNS(HF,n,a):n.charCodeAt(3)===SG?i.setAttributeNS(XF,n,a):n.charCodeAt(5)===SG?i.setAttributeNS(WF,n,a):i.setAttribute(n,a))}for(n in o)n in r||i.removeAttribute(n)}}function OG(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]:AG(u,p)?(NG(u,p),u=e[++a],p=n[++s]):AG(h,d)?(NG(h,d),h=e[--l],d=n[--c]):AG(u,d)?(NG(u,d),mG(t,u.elm,bG(h.elm)),u=e[++a],d=n[--c]):p=(AG(h,p)?(NG(h,p),mG(t,h.elm,u.elm),h=e[--l]):(TG(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}
1(e,a,l)),TG(o=i[p.key])||(r=e[o]).tag!==p.tag?mG(t,DG(p),u.elm):(NG(r,p),e[o]=void 0,mG(t,r.elm,u.elm))),n[++s]);(a<=l||s<=c)&&(l<a?kG(t,null==n[c+1]?null:n[c+1].elm,n,s,c):LG(t,e,a,l))}function NG(t,e){var n=e.elm=t.elm,i=t.children,o=e.children;t!==e&&(PG(t,e),TG(e.text)?CG(i)&&CG(o)?i!==o&&OG(n,i,o):CG(o)?(CG(t.text)&&wG(n,""),kG(n,null,o,0,o.length-1)):CG(i)?LG(n,i,0,i.length-1):CG(t.text)&&wG(n,""):t.text!==e.text&&(CG(i)&&LG(n,i,0,i.length-1),wG(n,e.text)))}var RG=0;function EG(t,e,n){var i;this.type="svg",this.refreshHover=zG(),this.configLayer=zG(),this.storage=e,this._opts=n=H({},n),this.root=t,this._id="zr"+RG++,this._oldVNode=qF(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=YF("svg"),PG(null,this._oldVNode),e.appendChild(i),t.appendChild(e)),this.resize(n.width,n.height)}function zG(){return function(){}}EG.prototype.getType=function(){return this.type},EG.prototype.getViewportRoot=function(){return this._viewport},EG.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},EG.prototype.getSvgDom=function(){return this._svgDom},EG.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",AG(e=this._oldVNode,n=t)?NG(e,n):(o=_G(i=e.elm),DG(n),null!==o&&(mG(o,n.elm,bG(i)),LG(o,[e],0,0))),this._oldVNode=t)},EG.prototype.renderOneToVNode=function(t){return dG(t,jF(this._id))},EG.prototype.renderToVNode=function(t){t=t||{};var n,o,r,a,s,e=this.storage.getDisplayList(!0),i=this._width,l=this._height,u=jF(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=UF("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),Wi(n)?fG({fill:n},o.attrs,"fill",i):Vi(n)?gG({style:{fill:n},dirty:Vt,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=UF("g","main",{},[])),e=(this._paintList(e,u,c?c.children:h),c&&h.push(c),V(G(u.defs),function(t){return u.defs[t]}));return e.length&&h.push(UF("defs","defs",{},e)),t.animation&&(n=u.cssNodes,o=u.cssAnims,r=(c=(c={newline:!0})||{}).newline?"\n":"",a=" {"+r,s=r+"}",c=V(G(n),function(e){return e+a+V(G(n[e]),function(t){return t+":"+n[e][t]+";"}).join(r)+s}).join(r),e=V(G(o),function(i){return"@keyframes "+i+a+V(G(o[i]),function(n){return n+a+V(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=UF("style","stl",{},[],c),h.push(e)),qF(i,l,h,t.useViewBox)},EG.prototype.renderToString=function(t){return ZF(this.renderToVNode({animation:N((t=t||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:N(t.useViewBox,!0)}),{newline:!0})},EG.prototype.setBackgroundColor=function(t){this._backgroundColor=t},EG.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},EG.prototype._paintList=function(t,e,n){for(var i,o,r,a,s,l,u,h=t.length,c=[],p=0,d=0,f=0;f<h;f++){var g=t[f];if(!g.invisible){for(var y=g.__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]=UF("clipPath",u,s,[pG(o,a)])),r["clip-path"]=Hi(u),UF("g","clip-g-"+d++,w,[]));(i?i.children:n).push(S),i=c[p++]=S}var M=y,v=dG(g,e);v&&(i?i.children:n).push(v)}}},EG.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=r0(i,0,n),e=r0(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"),Vi(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))))},EG.prototype.getWidth=function(){return this._width},EG.prototype.getHeight=function(){return this._height},EG.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},EG.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},EG.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",EG),t.Axis=_p,t.ChartView=jy,t.ComponentModel=f,t.ComponentView=Hy,t.List=Sx,t.Model=Ip,t.PRIORITY=Um,t.SeriesModel=Ny,t.color=Li,t.connect=function(e){var t;return W(e)&&(t=e,e=null,X(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+Av++,X(t,function(t){t.group=e})),Tv[e]=!0,e},t.dataTool={}
1,t.dependencies={zrender:"5.4.4"},t.disConnect=Ym,t.disconnect=kv,t.dispose=function(t){Y(t)?t=Iv[t]:t instanceof hv||(t=Lv(t)),t instanceof hv&&!t.isDisposed()&&t.dispose()},t.env=w,t.extendChartView=function(t){return t=jy.extend(t),jy.registerClass(t),t},t.extendComponentModel=function(t){return t=f.extend(t),f.registerClass(t),t},t.extendComponentView=function(t){return t=Hy.extend(t),Hy.registerClass(t),t},t.extendSeriesModel=function(t){return t=Ny.extend(t),Ny.registerClass(t),t},t.format=vp,t.getCoordinateSystemDimensions=function(t){if(t=bf.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.getInstanceByDom=Lv,t.getInstanceById=function(t){return Iv[t]},t.getMap=function(t){var e=O0.getMap;return e&&e(t)},t.graphic=Wp,t.helper=Zm,t.init=function(t,e,n){var i=!(n&&n.ssr);if(i){var o=Lv(t);if(o)return o}return(o=new hv(t,e,n)).id="ec_"+Cv++,Iv[o.id]=o,i&&ha(t,Dv,o.id),iv(o),P0.trigger("afterinit",o),o},t.innerDrawElementOnCanvas=I0,t.matrix=Ue,t.number=Ia,t.parseGeoJSON=h_,t.parseGeoJson=h_,t.registerAction=Bv,t.registerCoordinateSystem=Vv,t.registerLayout=Fv,t.registerLoading=Xv,t.registerLocale=Ep,t.registerMap=Yv,t.registerPostInit=Rv,t.registerPostUpdate=Ev,t.registerPreprocessor=Ov,t.registerProcessor=Nv,t.registerTheme=Pv,t.registerTransform=Uv,t.registerUpdateLifecycle=zv,t.registerVisual=Gv,t.setCanvasCreator=function(t){m({createCanvas:t})},t.setPlatformAPI=m,t.throttle=om,t.time=zc,t.use=r,t.util=Rm,t.vector=le,t.version="5.4.3",t.zrUtil=Gt,t.zrender=xr});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.