echarts.min.js 900 KB

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*   http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied.  See the License for the
* specific language governing permissions and limitations
* under the License.
*/


!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).echarts={})}(this,function(t){"use strict";var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function l(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var h=function(){return(h=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var i=Array(t),o=0,e=0;e<n;e++)for(var r=arguments[e],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}var e=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.weChat=!1},v=new function(){this.browser=new e,this.node=!1,this.wxa=!1,this.worker=!1,this.canvasSupported=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(v.wxa=!0,v.canvasSupported=!0,v.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?(v.worker=!0,v.canvasSupported=!0):"undefined"==typeof navigator?(v.node=!0,v.canvasSupported=!0,v.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),o=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),r=t.match(/Edge\/([\d.]+)/),t=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]);o&&(n.ie=!0,n.version=o[1]);r&&(n.edge=!0,n.version=r[1]);t&&(n.weChat=!0);e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&11<=+n.version),e.domSupported="undefined"!=typeof document}(navigator.userAgent,v);var s={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},u={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},c=Object.prototype.toString,n=Array.prototype,p=n.forEach,d=n.filter,o=n.slice,f=n.map,r=function(){}.constructor,g=r?r.prototype:null,y={};function m(t,e){y[t]=e}var x=2311;function _(){return x++}function b(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(t)}function C(t){if(null==t||"object"!=typeof t)return t;var e=t,n=c.call(t);if("[object Array]"===n){if(!lt(t)){e=[];for(var i=0,o=t.length;i<o;i++)e[i]=C(t[i])}}else if(u[n]){if(!lt(t)){var r=t.constructor;if(r.from)e=r.from(t);else{e=new r(t.length);for(i=0,o=t.length;i<o;i++)e[i]=C(t[i])}}}else if(!s[n]&&!lt(t)&&!q(t))for(var a in e={},t)t.hasOwnProperty(a)&&(e[a]=C(t[a]));return e}function w(t,e,n){if(!Y(e)||!Y(t))return n?C(e):t;for(var i in e){var o,r;e.hasOwnProperty(i)&&(o=t[i],!Y(r=e[i])||!Y(o)||F(r)||F(o)||q(r)||q(o)||U(r)||U(o)||lt(r)||lt(o)?!n&&i in t||(t[i]=C(e[i])):w(o,r,n))}return t}function S(t,e){for(var n=t[0],i=1,o=t.length;i<o;i++)n=w(n,t[i],e);return n}function N(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function A(t,e,n){for(var i=z(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 M=function(){return y.createCanvas()};function D(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 I(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 T(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 A(t,e,n)}function k(t){return!!t&&("string"!=typeof t&&"number"==typeof t.length)}function R(t,e,n){if(t&&e)if(t.forEach&&t.forEach===p)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 L(t,e,n){if(!t)return[];if(!e)return nt(t);if(t.map&&t.map===f)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 P(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 O(t,e,n){if(!t)return[];if(!e)return nt(t);if(t.filter&&t.filter===d)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 E(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 z(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}y.createCanvas=function(){return document.createElement("canvas")};var B=g&&G(g.bind)?g.call.bind(g.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(o.call(arguments)))}};function V(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(o.call(arguments)))}}function F(t){return Array.isArray?Array.isArray(t):"[object Array]"===c.call(t)}function G(t){return"function"==typeof t}function H(t){return"string"==typeof t}function W(t){return"[object String]"===c.call(t)}function X(t){return"number"==typeof t}function Y(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function U(t){return!!s[c.call(t)]}function Z(t){return!!u[c.call(t)]}function q(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function j(t){return null!=t.colorStops}function K(t){return null!=t.image}function $(t){return"[object RegExp]"===c.call(t)}function J(t){return t!=t}function Q(){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 tt(t,e){return null!=t?t:e}function et(t,e,n){return null!=t?t:null!=e?e:n}function nt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return o.apply(t,e)}function it(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function ot(t,e){if(!t)throw new Error(e)}function rt(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 st(t){t[at]=!0}function lt(t){return t[at]}var ut=(ht.prototype.get=function(t){return this.data.hasOwnProperty(t)?this.data[t]:null},ht.prototype.set=function(t,e){return this.data[t]=e},ht.prototype.each=function(t,e){for(var n in this.data)this.data.hasOwnProperty(n)&&t.call(e,this.data[n],n)},ht.prototype.keys=function(){return z(this.data)},ht.prototype.removeKey=function(t){delete this.data[t]},ht);function ht(t){this.data={};var n=F(t);this.data={};var i=this;function e(t,e){n?i.set(t,e):i.set(e,t)}t instanceof ht?t.each(e):t&&R(t,e)}function ct(t){return new ut(t)}function pt(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 dt(t,e){var n=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&N(n,e),n}function ft(t,e){return t.hasOwnProperty(e)}function gt(){}var yt=Object.freeze({__proto__:null,$override:m,guid:_,logError:b,clone:C,merge:w,mergeAll:S,extend:N,defaults:A,createCanvas:M,indexOf:D,inherits:I,mixin:T,isArrayLike:k,each:R,map:L,reduce:P,filter:O,find:E,keys:z,bind:B,curry:V,isArray:F,isFunction:G,isString:H,isStringSafe:W,isNumber:X,isObject:Y,isBuiltInObject:U,isTypedArray:Z,isDom:q,isGradientObject:j,isPatternObject:K,isRegExp:$,eqNaN:J,retrieve:Q,retrieve2:tt,retrieve3:et,slice:nt,normalizeCssArray:it,assert:ot,trim:rt,setAsPrimitive:st,isPrimitive:lt,HashMap:ut,createHashMap:ct,concatArray:pt,createObject:dt,hasOwn:ft,noop:gt});function mt(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function vt(t,e){return t[0]=e[0],t[1]=e[1],t}function xt(t){return[t[0],t[1]]}function _t(t,e,n){return t[0]=e,t[1]=n,t}function bt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function wt(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function St(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Mt(t){return Math.sqrt(It(t))}function It(t){return t[0]*t[0]+t[1]*t[1]}function Tt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Ct(t,e){var n=Mt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Dt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var At=Dt;function kt(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Lt=kt;function Pt(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 Nt(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 Ot(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Rt(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var Et=Object.freeze({__proto__:null,create:mt,copy:vt,clone:xt,set:_t,add:bt,scaleAndAdd:wt,sub:St,len:Mt,length:Mt,lenSquare:It,lengthSquare:It,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},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]},scale:Tt,normalize:Ct,distance:Dt,dist:At,distanceSquare:kt,distSquare:Lt,negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:Pt,applyTransform:Nt,min:Ot,max:Rt}),zt=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},Bt=(Vt.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new zt(e,t),"dragstart",t.event))},Vt.prototype._drag=function(t){var e,n,i,o,r=this._draggingTarget;r&&(i=t.offsetX,o=t.offsetY,e=i-this._x,n=o-this._y,this._x=i,this._y=o,r.drift(e,n,t),this.handler.dispatchToElement(new zt(r,t),"drag",t.event),i=this.handler.findHover(i,o,r).target,o=this._dropTarget,r!==(this._dropTarget=i)&&(o&&i!==o&&this.handler.dispatchToElement(new zt(o,t),"dragleave",t.event),i&&i!==o&&this.handler.dispatchToElement(new zt(i,t),"dragenter",t.event)))},Vt.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new zt(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new zt(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},Vt);function Vt(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}var Ft=(Gt.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)return this;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];return i&&i.callAtLast?o[t].splice(e,0,r):o[t].push(r),this},Gt.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},Gt.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],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];return this},Gt.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],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)}}return o&&o.afterTrigger&&o.afterTrigger(t),this},Gt.prototype.triggerWithContext=function(t){if(!this._$handlers)return this;var e=this._$handlers[t],n=this._$eventProcessor;if(e)for(var i=arguments,o=i.length,r=i[o-1],a=e.length,s=0;s<a;s++){var l=e[s];if(!n||!n.filter||null==l.query||n.filter(t,l.query))switch(o){case 0:l.h.call(r);break;case 1:l.h.call(r,i[0]);break;case 2:l.h.call(r,i[0],i[1]);break;default:l.h.apply(r,i.slice(1,o-1))}}return n&&n.afterTrigger&&n.afterTrigger(t),this},Gt);function Gt(t){t&&(this._$eventProcessor=t)}var Ht=Math.log(2);function Wt(t,e,n,i,o,r){var a=i+"-"+o,s=t.length;if(r.hasOwnProperty(a))return r[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~o)/Ht);return t[n][l]}for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<s;p++){var f=1<<p;f&o||(c+=(d%2?-1:1)*t[n][p]*Wt(t,e-1,h,u,o|f,r),d++)}return r[a]=c}function Xt(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=Wt(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)*Wt(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 Yt="___zrEVENTSAVED",Ut=[];function Zt(t,e,n,i,o){if(e.getBoundingClientRect&&v.domSupported&&!qt(e)){var r=e[Yt]||(e[Yt]={}),o=function(t,e,n){for(var i=n?"invTrans":"trans",o=e[i],r=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,h=h.top;a.push(p,h),l=l&&r&&p===r[c]&&h===r[1+c],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&o?o:(e.srcCoords=a,e[i]=n?Xt(s,a):Xt(a,s))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],o=["top","bottom"],r=0;r<4;r++){var a=document.createElement("div"),s=a.style,l=r%2,u=(r>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",o[u]+":0",i[1-l]+":auto",o[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,r),r,o);if(o)return o(t,n,i),!0}return!1}function qt(t){return"CANVAS"===t.nodeName.toUpperCase()}var jt="undefined"!=typeof window&&!!window.addEventListener,Kt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,$t=[];function Jt(t,e,n,i){return n=n||{},i||!v.canvasSupported?Qt(t,e,n):v.browser.firefox&&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):Qt(t,e,n),n}function Qt(t,e,n){if(v.domSupported&&t.getBoundingClientRect){var i=e.clientX,o=e.clientY;if(qt(t)){e=t.getBoundingClientRect();return n.zrX=i-e.left,void(n.zrY=o-e.top)}if(Zt($t,t,i,o))return n.zrX=$t[0],void(n.zrY=$t[1])}n.zrX=n.zrY=0}function te(t){return t||window.event}function ee(t,e,n){if(null!=(e=te(e)).zrX)return e;var i=e.type;i&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Jt(t,i,e,n):(Jt(t,e,e,n),o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0<t||!(t<0)&&0<n?-1:1):e}(e),e.zrDelta=o?o/120:-(e.detail||0)/3);var o=e.button;return null==e.which&&void 0!==o&&Kt.test(e.type)&&(e.which=1&o?1:2&o?3:4&o?2:0),e}function ne(t,e,n,i){jt?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)}var ie=jt?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function oe(t){return 2===t.which||3===t.which}var re=(ae.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},ae.prototype.clear=function(){return this._track.length=0,this},ae.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=Jt(n,s,{});o.points.push([l.zrX,l.zrY]),o.touches.push(s)}this._track.push(o)}},ae.prototype._recognize=function(t){for(var e in le)if(le.hasOwnProperty(e)){var n=le[e](this._track,t);if(n)return n}},ae);function ae(){this._track=[]}function se(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}var le={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){n=se(i)/se(n);isFinite(n)||(n=1),e.pinchScale=n;i=[((i=i)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}}}}},ue="silent";function he(){ie(this.event)}var ce,pe=(l(de,ce=Ft),de.prototype.dispose=function(){},de.prototype.setCursor=function(){},de);function de(){var t=null!==ce&&ce.apply(this,arguments)||this;return t.handler=null,t}var fe,ge=function(t,e){this.x=t,this.y=e},ye=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],me=(l(ve,fe=Ft),ve.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(R(ye,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},ve.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=xe(this,e,n),o=this._hovered,r=o.target;r&&!r.__zr&&(r=(o=this.findHover(o.x,o.y)).target);i=this._hovered=i?new ge(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)},ve.prototype.mouseout=function(t){var e=t.zrEventControl,n=t.zrIsToLocalDOM;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&(n||this.trigger("globalout",{type:"globalout",event:t}))},ve.prototype.resize=function(){this._hovered=new ge(0,0)},ve.prototype.dispatch=function(t,e){t=this[t];t&&t.call(this,e)},ve.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},ve.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},ve.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=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:he};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)}))}},ve.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),o=new ge(t,e),r=i.length-1;0<=r;r--){var a=void 0;if(i[r]!==n&&!i[r].ignore&&(a=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,o=void 0,r=!1;i;){if(i.ignoreClip&&(r=!0),!r){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(o=!0)}a=i.__hostTarget;i=a||i.parent}return!o||ue}return!1}(i[r],t,e))&&(o.topTarget||(o.topTarget=i[r]),a!==ue)){o.target=i[r];break}}return o},ve.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new re);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);"end"===e&&n.clear(),i&&(n=i.type,t.gestureEvent=n,(t=new ge).target=i.target,this.dispatchToElement(t,n,i.event))},ve);function ve(t,e,n,i){var o=fe.call(this)||this;return o._hovered=new ge(0,0),o.storage=t,o.painter=e,o.painterRoot=i,n=n||new pe,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new Bt(o),o}function xe(t,e,n){t=t.painter;return e<0||e>t.getWidth()||n<0||n>t.getHeight()}R(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){me.prototype[a]=function(t){var e,n,i=t.zrX,o=t.zrY,r=xe(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<At(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(e,a,t)}});var _e=32,be=7;function we(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++;!function(t,e,n){n--;for(;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,o)}else for(;o<n&&0<=i(t[o],t[o-1]);)o++;return o-e}function Se(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 Me(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);s<l&&(l=s);i=a,a=o-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 Ie(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);s<l&&(l=s);var u=a,a=o-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 Te(f,g){var r,a,y=be,s=0,m=(f.length,[]);function e(t){var e=r[t],n=a[t],i=r[t+1],o=a[t+1];a[t]=n+o,t===s-3&&(r[t+1]=r[t+2],a[t+1]=a[t+2]),s--;t=Ie(f[i],f,e,n,0,g);e+=t,0!=(n-=t)&&0!==(o=Me(f[e+n-1],f,i,o,o-1,g))&&(n<=o?function(t,e,n,i){var o=0;for(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];return}if(1===e){for(o=0;o<i;o++)f[s+o]=f[a+o];return f[s+i]=m[r]}var l,u,h,c=y;for(;;){u=l=0,h=!1;do{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=Ie(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=Me(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--,be<=l||be<=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){var o=0;for(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];return}if(1===i){for(u=(s-=e)+1,l=(r-=e)+1,o=e-1;0<=o;o--)f[u+o]=f[l+o];return f[s]=m[a]}var h=y;for(;;){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-Ie(m[a],f,t,e,e-1,g))){for(e-=c,u=(s-=c)+1,l=(r-=c)+1,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-Me(f[r],m,0,i,i-1,g))){for(i-=p,u=(s-=p)+1,l=(a-=p)+1,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--,be<=c||be<=p);if(d)break;h<0&&(h=0),h+=2}(y=h)<1&&(y=1);if(1===i){for(u=(s-=e)+1,l=(r-=e)+1,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)}return r=[],a=[],{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;e(t)}},forceMergeRuns:function(){for(;1<s;){var t=s-2;0<t&&a[t-1]<a[t+1]&&t--,e(t)}},pushRun:function(t,e){r[s]=t,a[s]=e,s+=1}}}function Ce(t,e,n,i){n=n||0;var o=(i=i||t.length)-n;if(!(o<2)){var r=0;if(o<_e)Se(t,n,i,n+(r=we(t,n,i,e)),e);else{var a,s=Te(t,e),l=function(t){for(var e=0;_e<=t;)e|=1&t,t>>=1;return t+e}(o);do{}while((r=we(t,n,i,e))<l&&(l<(a=o)&&(a=l),Se(t,n,n+a,n+r,e),r=a),s.pushRun(n,r),s.mergeRuns(),n+=r,0!==(o-=r));s.forceMergeRuns()}}}var De=!1;function Ae(){De||(De=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ke(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Le=(Pe.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},Pe.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},Pe.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,v.canvasSupported&&Ce(n,ke)},Pe.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.markRedraw(),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&0<u.__clipPaths.length&&(u.__clipPaths=[]),isNaN(u.z)&&(Ae(),u.z=0),isNaN(u.z2)&&(Ae(),u.z2=0),isNaN(u.zlevel)&&(Ae(),u.zlevel=0),this._displayList[this._displayListLen++]=u}u=t.getTextGuideLine();u&&this._updateAndAddDisplayable(u,e,n);u=t.getTextContent();u&&this._updateAndAddDisplayable(u,e,n)}},Pe.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},Pe.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=D(this._roots,t);0<=i&&this._roots.splice(i,1)}},Pe.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},Pe.prototype.getRoots=function(){return this._roots},Pe.prototype.dispose=function(){this._displayList=null,this._roots=null},Pe);function Pe(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ke}var Ne="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Oe={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-Oe.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*Oe.bounceIn(2*t):.5*Oe.bounceOut(2*t-1)+.5}},Re=(Ee.prototype.step=function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),!this._paused){var n=(t-this._startTime-this._pausedTime)/this._life;n<0&&(n=0),n=Math.min(n,1);var i=this.easing,i="string"==typeof i?Oe[i]:i,i="function"==typeof i?i(n):n;if(this.onframe&&this.onframe(i),1===n){if(!this.loop)return!0;this._restart(t),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=e},Ee.prototype._restart=function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0},Ee.prototype.pause=function(){this._paused=!0},Ee.prototype.resume=function(){this._paused=!1},Ee);function Ee(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}var ze=function(t){this.value=t},Be=(Ve.prototype.insert=function(t){t=new ze(t);return this.insertEntry(t),t},Ve.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++},Ve.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--},Ve.prototype.len=function(){return this._len},Ve.prototype.clear=function(){this.head=this.tail=null,this._len=0},Ve);function Ve(){this._len=0}var Fe=(Ge.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 ze(e),n.key=t,o.insertEntry(n),r[t]=n),a},Ge.prototype.get=function(t){var e=this._map[t],t=this._list;if(null!=e)return e!==t.tail&&(t.remove(e),t.insertEntry(e)),e.value},Ge.prototype.clear=function(){this._list.clear(),this._map={}},Ge.prototype.len=function(){return this._list.len()},Ge);function Ge(t){this._list=new Be,this._maxSize=10,this._map={},this._maxSize=t}var He={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 We(t){return(t=Math.round(t))<0?0:255<t?255:t}function Xe(t){return t<0?0:1<t?1:t}function Ye(t){return t.length&&"%"===t.charAt(t.length-1)?We(parseFloat(t)/100*255):We(parseInt(t,10))}function Ue(t){return t.length&&"%"===t.charAt(t.length-1)?Xe(parseFloat(t)/100):Xe(parseFloat(t))}function Ze(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 qe(t,e,n){return t+(e-t)*n}function je(t,e,n,i,o){return t[0]=e,t[1]=n,t[2]=i,t[3]=o,t}function Ke(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var $e=new Fe(20),Je=null;function Qe(t,e){Je&&Ke(Je,e),Je=$e.put(t,Je||e.slice())}function tn(t,e){if(t){e=e||[];var n=$e.get(t);if(n)return Ke(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in He)return Ke(e,He[i]),Qe(t,e),e;if("#"===i.charAt(0))return 4===i.length?0<=(r=parseInt(i.substr(1),16))&&r<=4095?(je(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,1),Qe(t,e),e):void je(e,0,0,0,1):7===i.length?0<=(r=parseInt(i.substr(1),16))&&r<=16777215?(je(e,(16711680&r)>>16,(65280&r)>>8,255&r,1),Qe(t,e),e):void je(e,0,0,0,1):void 0;var o=i.indexOf("("),n=i.indexOf(")");if(-1!==o&&n+1===i.length){var r=i.substr(0,o),n=i.substr(o+1,n-(o+1)).split(","),o=1;switch(r){case"rgba":if(4!==n.length)return void je(e,0,0,0,1);o=Ue(n.pop());case"rgb":return 3!==n.length?void je(e,0,0,0,1):(je(e,Ye(n[0]),Ye(n[1]),Ye(n[2]),o),Qe(t,e),e);case"hsla":return 4!==n.length?void je(e,0,0,0,1):(n[3]=Ue(n[3]),en(n,e),Qe(t,e),e);case"hsl":return 3!==n.length?void je(e,0,0,0,1):(en(n,e),Qe(t,e),e);default:return}}je(e,0,0,0,1)}}function en(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=Ue(t[1]),o=Ue(t[2]),i=o<=.5?o*(i+1):o+i-o*i,o=2*o-i;return je(e=e||[],We(255*Ze(o,i,n+1/3)),We(255*Ze(o,i,n)),We(255*Ze(o,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function nn(t,e){var n=tn(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 un(n,4===n.length?"rgba":"rgb")}}function on(t){t=tn(t);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function rn(t,e,n){if(e&&e.length&&0<=t&&t<=1){n=n||[];var i=t*(e.length-1),o=Math.floor(i),r=Math.ceil(i),t=e[o],r=e[r],o=i-o;return n[0]=We(qe(t[0],r[0],o)),n[1]=We(qe(t[1],r[1],o)),n[2]=We(qe(t[2],r[2],o)),n[3]=Xe(qe(t[3],r[3],o)),n}}function an(t,e,n){if(e&&e.length&&0<=t&&t<=1){var i=t*(e.length-1),o=Math.floor(i),r=Math.ceil(i),a=tn(e[o]),t=tn(e[r]),e=i-o,e=un([We(qe(a[0],t[0],e)),We(qe(a[1],t[1],e)),We(qe(a[2],t[2],e)),Xe(qe(a[3],t[3],e))],"rgba");return n?{color:e,leftIndex:o,rightIndex:r,value:i}:e}}function sn(t,e,n,i){var o=tn(t);if(t)return o=function(t){if(t){var e,n,i,o=t[0]/255,r=t[1]/255,a=t[2]/255,s=Math.min(o,r,a),l=Math.max(o,r,a),u=l-s,h=(l+s)/2;0==u?n=e=0:(n=h<.5?u/(l+s):u/(2-l-s),i=((l-o)/6+u/2)/u,s=((l-r)/6+u/2)/u,u=((l-a)/6+u/2)/u,o===l?e=u-s:r===l?e=1/3+i-u:a===l&&(e=2/3+s-i),e<0&&(e+=1),1<e&&--e);h=[360*e,n,h];return null!=t[3]&&h.push(t[3]),h}}(o),null!=e&&(o[0]=(e=e,(e=Math.round(e))<0?0:360<e?360:e)),null!=n&&(o[1]=Ue(n)),null!=i&&(o[2]=Ue(i)),un(en(o),"rgba")}function ln(t,e){t=tn(t);if(t&&null!=e)return t[3]=Xe(e),un(t,"rgba")}function un(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function hn(t,e){t=tn(t);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var cn=Object.freeze({__proto__:null,parse:tn,lift:nn,toHex:on,fastLerp:rn,fastMapToColor:rn,lerp:an,mapToColor:an,modifyHSL:sn,modifyAlpha:ln,stringify:un,lum:hn,random:function(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}}),pn=Array.prototype.slice;function dn(t,e,n){return(e-t)*n+t}function fn(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=dn(e[r],n[r],i)}function gn(t,e,n,i){for(var o=e.length,r=0;r<o;r++)t[r]=e[r]+n[r]*i;return t}function yn(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 mn(t,e){var n=t.length;if(n===e.length){for(var i=0;i<n;i++)if(t[i]!==e[i])return;return 1}}function vn(t,e,n,i,o,r,a){t=.5*(n-t),i=.5*(i-e);return(2*(e-n)+t+i)*a+(-3*(e-n)-2*t-i)*r+t*o+e}function xn(t,e,n,i,o,r,a,s){for(var l=e.length,u=0;u<l;u++)t[u]=vn(e[u],n[u],i[u],o[u],r,a,s)}function _n(t){if(k(t)){var e=t.length;if(k(t[0])){for(var n=[],i=0;i<e;i++)n.push(pn.call(t[i]));return n}return pn.call(t)}return t}function bn(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}var wn=[0,0,0,0],Sn=(Mn.prototype.isFinished=function(){return this._finished},Mn.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},Mn.prototype.needsAnimate=function(){return!this._isAllValueEqual&&2<=this.keyframes.length&&this.interpolable},Mn.prototype.getAdditiveTrack=function(){return this._additiveTrack},Mn.prototype.addKeyframe=function(t,e){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,i=n.length;if(this.interpolable)if(k(e)){var o,r=k((r=e)&&r[0])?2:1;if(0<i&&this.arrDim!==r)return void(this.interpolable=!1);if(1==r&&"number"!=typeof e[0]||2==r&&"number"!=typeof e[0][0])return void(this.interpolable=!1);0<i&&(o=n[i-1],this._isAllValueEqual&&(1==r&&mn(e,o.value)||(this._isAllValueEqual=!1))),this.arrDim=r}else{if(0<this.arrDim)return void(this.interpolable=!1);if("string"==typeof e){r=tn(e);r?(e=r,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof e)return void(this.interpolable=!1);this._isAllValueEqual&&0<i&&(o=n[i-1],(this.isValueColor&&!mn(o.value,e)||o.value!==e)&&(this._isAllValueEqual=!1))}e={time:t,value:e,percent:0};return this.keyframes.push(e),e},Mn.prototype.prepare=function(t){var e=this.keyframes;this._needsSort&&e.sort(function(t,e){return t.time-e.time});for(var n=this.arrDim,i=e.length,o=e[i-1],r=0;r<i;r++)e[r].percent=e[r].time/this.maxTime,0<n&&r!==i-1&&function(t,e,n){var i=t,o=e;if(i.push&&o.push){var e=i.length,r=o.length;if(e!==r)if(r<e)i.length=r;else for(var a=e;a<r;a++)i.push(1===n?o[a]:pn.call(o[a]));for(var s=i[0]&&i[0].length,a=0;a<i.length;a++)if(1===n)isNaN(i[a])&&(i[a]=o[a]);else for(var l=0;l<s;l++)isNaN(i[a][l])&&(i[a][l]=o[a][l])}}(e[r].value,o.value,n);if(t&&this.needsAnimate()&&t.needsAnimate()&&n===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;for(var a=e[0].value,r=0;r<i;r++)0===n?this.isValueColor?e[r].additiveValue=gn([],e[r].value,a,-1):e[r].additiveValue=e[r].value-a:1===n?e[r].additiveValue=gn([],e[r].value,a,-1):2===n&&(e[r].additiveValue=yn([],e[r].value,a,-1))}},Mn.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=null!=this._additiveTrack,i=n?"additiveValue":"value",o=this.keyframes,r=this.keyframes.length,a=this.propName,s=this.arrDim,l=this.isValueColor;if(e<0)u=0;else if(e<this._lastFramePercent){for(var u=Math.min(this._lastFrame+1,r-1);0<=u&&!(o[u].percent<=e);u--);u=Math.min(u,r-2)}else{for(u=this._lastFrame;u<r&&!(o[u].percent>e);u++);u=Math.min(u-1,r-2)}var h,c,p,d,f,g,y,m=o[u+1],v=o[u];v&&m&&(this._lastFrame=u,this._lastFramePercent=e,0!=(g=m.percent-v.percent)&&(h=(e-v.percent)/g,c=n?this._additiveValue:l?wn:t[a],(0<s||l)&&!c&&(c=this._additiveValue=[]),this.useSpline?(p=o[u][i],d=o[0===u?u:u-1][i],f=o[r-2<u?r-1:u+1][i],g=o[r-3<u?r-1:u+2][i],0<s?(1===s?xn:function(t,e,n,i,o,r,a,s){for(var l=e.length,u=e[0].length,h=0;h<l;h++){t[h]||(t[1]=[]);for(var c=0;c<u;c++)t[h][c]=vn(e[h][c],n[h][c],i[h][c],o[h][c],r,a,s)}})(c,d,p,f,g,h,h*h,h*h*h):l?(xn(c,d,p,f,g,h,h*h,h*h*h),n||(t[a]=bn(c))):(y=void 0,y=this.interpolable?vn(d,p,f,g,h,h*h,h*h*h):f,n?this._additiveValue=y:t[a]=y)):0<s?(1===s?fn: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]=dn(e[a][s],n[a][s],i)}})(c,v[i],m[i],h):l?(fn(c,v[i],m[i],h),n||(t[a]=bn(c))):(y=void 0,y=this.interpolable?dn(v[i],m[i],h):(v=v[i],i=m[i],.5<h?i:v),n?this._additiveValue=y:t[a]=y),n&&this._addToTarget(t)))}},Mn.prototype._addToTarget=function(t){var e=this.arrDim,n=this.propName,i=this._additiveValue;0===e?this.isValueColor?(tn(t[n],wn),gn(wn,wn,i,1),t[n]=bn(wn)):t[n]=t[n]+i:1===e?gn(t[n],t[n],i,1):2===e&&yn(t[n],t[n],i,1)},Mn);function Mn(t){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=0,this.propName=t}var In=(Tn.prototype.getTarget=function(){return this._target},Tn.prototype.changeTarget=function(t){this._target=t},Tn.prototype.when=function(t,e){return this.whenWithKeys(t,e,z(e))},Tn.prototype.whenWithKeys=function(t,e,n){for(var i=this._tracks,o=0;o<n.length;o++){var r=n[o],a=i[r];if(!a){a=i[r]=new Sn(r);var s,l=void 0,u=this._getAdditiveTrack(r);if(u?(l=(s=u.keyframes[u.keyframes.length-1])&&s.value,u.isValueColor&&l&&(l=bn(l))):l=this._target[r],null==l)continue;0!==t&&a.addKeyframe(0,_n(l)),this._trackKeys.push(r)}a.addKeyframe(t,_n(e[r]))}return this._maxTime=Math.max(this._maxTime,t),this},Tn.prototype.pause=function(){this._clip.pause(),this._paused=!0},Tn.prototype.resume=function(){this._clip.resume(),this._paused=!1},Tn.prototype.isPaused=function(){return!!this._paused},Tn.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneList;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},Tn.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedList;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},Tn.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},Tn.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},Tn.prototype.start=function(t,e){if(!(0<this._started)){this._started=1;for(var r=this,a=[],n=0;n<this._trackKeys.length;n++){var i=this._trackKeys[n],o=this._tracks[i],s=this._getAdditiveTrack(i),i=o.keyframes;o.prepare(s),o.needsAnimate()?a.push(o):o.interpolable||(i=i[i.length-1])&&(r._target[o.propName]=i.value)}return a.length||e?(e=new Re({life:this._maxTime,loop:this._loop,delay:this._delay,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._onframeList;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&&"spline"!==t&&(e.easing=t)):this._doneCallback(),this}},Tn.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},Tn.prototype.delay=function(t){return this._delay=t,this},Tn.prototype.during=function(t){return t&&(this._onframeList||(this._onframeList=[]),this._onframeList.push(t)),this},Tn.prototype.done=function(t){return t&&(this._doneList||(this._doneList=[]),this._doneList.push(t)),this},Tn.prototype.aborted=function(t){return t&&(this._abortedList||(this._abortedList=[]),this._abortedList.push(t)),this},Tn.prototype.getClip=function(){return this._clip},Tn.prototype.getTrack=function(t){return this._tracks[t]},Tn.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&&(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},Tn.prototype.saveFinalToTarget=function(t,e){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var i,o=e[n],r=this._tracks[o];r&&!r.isFinished()&&((i=(i=r.keyframes)[i.length-1])&&(i=_n(i.value),r.isValueColor&&(i=bn(i)),t[o]=i))}}},Tn.prototype.__changeFinalValue=function(t,e){e=e||z(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(r.getAdditiveTrack())))}},Tn);function Tn(t,e,n){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,(this._loop=e)?b("Can' use additive animation on looped animation."):this._additiveAnimators=n}var Cn,Dn=(l(An,Cn=Ft),An.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?((this._clipsTail.next=t).prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=t,t.animation=this},An.prototype.addAnimator=function(t){t.animation=this;t=t.getClip();t&&this.addClip(t)},An.prototype.removeClip=function(t){var e,n;t.animation&&(e=t.prev,n=t.next,e?e.next=n:this._clipsHead=n,n?n.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null)},An.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},An.prototype.update=function(t){for(var e=(new Date).getTime()-this._pausedTime,n=e-this._time,i=this._clipsHead;i;)var o=i.next,i=(i.step(e,n)&&(i.ondestroy&&i.ondestroy(),this.removeClip(i)),o);this._time=e,this.onframe(n),this.trigger("frame",n),this.stage.update&&!t&&this.stage.update()},An.prototype._startLoop=function(){var e=this;this._running=!0,Ne(function t(){e._running&&(Ne(t),e._paused||e.update())})},An.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},An.prototype.stop=function(){this._running=!1},An.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},An.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},An.prototype.clear=function(){for(var t=this._clipsHead;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._clipsHead=this._clipsTail=null},An.prototype.isFinished=function(){return null==this._clipsHead},An.prototype.animate=function(t,e){e=e||{},this.start();e=new In(t,e.loop);return this.addAnimator(e),e},An);function An(t){var e=Cn.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,t=t||{},e.stage=t.stage||{},e.onframe=t.onframe||function(){},e}var kn,Ln=v.domSupported,Pn=(kn={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Ec=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:L(Ec,function(t){var e=t.replace("mouse","pointer");return kn.hasOwnProperty(e)?e:t})}),Nn=["mousemove","mouseup"],On=["pointermove","pointerup"],Rn=!1;function En(t){t=t.pointerType;return"pen"===t||"touch"===t}function zn(t){t&&(t.zrByTouch=!0)}function Bn(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 Vn=function(t,e){this.stopPropagation=gt,this.stopImmediatePropagation=gt,this.preventDefault=gt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Fn={mousedown:function(t){t=ee(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ee(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=ee(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=ee(this.dom,t),this.__pointerCapturing&&(t.zrEventControl="no_globalout");var e=t.toElement||t.relatedTarget;t.zrIsToLocalDOM=Bn(this,e),this.trigger("mouseout",t)},wheel:function(t){Rn=!0,t=ee(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Rn||(t=ee(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){zn(t=ee(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Fn.mousemove.call(this,t),Fn.mousedown.call(this,t)},touchmove:function(t){zn(t=ee(this.dom,t)),this.handler.processGesture(t,"change"),Fn.mousemove.call(this,t)},touchend:function(t){zn(t=ee(this.dom,t)),this.handler.processGesture(t,"end"),Fn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Fn.click.call(this,t)},pointerdown:function(t){Fn.mousedown.call(this,t)},pointermove:function(t){En(t)||Fn.mousemove.call(this,t)},pointerup:function(t){Fn.mouseup.call(this,t)},pointerout:function(t){En(t)||Fn.mouseout.call(this,t)}};R(["click","dblclick","contextmenu"],function(e){Fn[e]=function(t){t=ee(this.dom,t),this.trigger(e,t)}});var Gn={pointermove:function(t){En(t)||Gn.mousemove.call(this,t)},pointerup:function(t){Gn.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 Hn(i,o){var r=o.domHandlers;v.pointerEventsSupported?R(Pn.pointer,function(e){Xn(o,e,function(t){r[e].call(i,t)})}):(v.touchEventsSupported&&R(Pn.touch,function(n){Xn(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)})}),R(Pn.mouse,function(e){Xn(o,e,function(t){t=te(t),o.touching||r[e].call(i,t)})}))}function Wn(o,r){function t(i){Xn(r,i,function(t){var e,n;t=te(t),Bn(o,t.target)||(n=t,t=ee((e=o).dom,new Vn(e,n),!0),r.domHandlers[i].call(o,t))},{capture:!0})}v.pointerEventsSupported?R(On,t):v.touchEventsSupported||R(Nn,t)}function Xn(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,ne(t.domTarget,e,n,i)}function Yn(t){var e,n,i,o,r,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,o=a[i=e],r=t.listenerOpts[e],jt?n.removeEventListener(i,o,r):n.detachEvent("on"+i,o));t.mounted={}}var Un,Zn=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},qn=(l(jn,Un=Ft),jn.prototype.dispose=function(){Yn(this._localHandlerScope),Ln&&Yn(this._globalHandlerScope)},jn.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},jn.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,Ln&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?Wn(this,e):Yn(e))},jn);function jn(t,e){var n=Un.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new Zn(t,Fn),Ln&&(n._globalHandlerScope=new Zn(document,Gn)),Hn(n,n._localHandlerScope),n}function Kn(){return[1,0,0,1,0,0]}function $n(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Jn(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 Qn(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],e=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]=e,t}function ti(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 ei(t,e,n){var i=e[0],o=e[2],r=e[4],a=e[1],s=e[3],l=e[5],e=Math.sin(n),n=Math.cos(n);return t[0]=i*n+a*e,t[1]=-i*e+a*n,t[2]=o*n+s*e,t[3]=-o*e+n*s,t[4]=n*r+e*l,t[5]=n*l-e*r,t}function ni(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 ii(t,e){var n=e[0],i=e[2],o=e[4],r=e[1],a=e[3],s=e[5],e=n*a-r*i;return e?(e=1/e,t[0]=a*e,t[1]=-r*e,t[2]=-i*e,t[3]=n*e,t[4]=(i*s-a*o)*e,t[5]=(r*o-n*s)*e,t):null}function oi(t){var e=Kn();return Jn(e,t),e}var ri=Object.freeze({__proto__:null,create:Kn,identity:$n,copy:Jn,mul:Qn,translate:ti,rotate:ei,scale:ni,invert:ii,clone:oi}),ai=$n;function si(t){return 5e-5<t||t<-5e-5}var li=[],ui=[],hi=Kn(),ci=Math.abs,pi=(di.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},di.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},di.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},di.prototype.needLocalTransform=function(){return si(this.rotation)||si(this.x)||si(this.y)||si(this.scaleX-1)||si(this.scaleY-1)},di.prototype.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;n||e?(i=i||Kn(),n?this.getLocalTransform(i):ai(i),e&&(n?Qn(i,t.transform,i):Jn(i,t.transform)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&ai(i)},di.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(li),e=((li[0]-(n=li[0]<0?-1:1))*i+n)/li[0]||0,n=((li[1]-(n=li[1]<0?-1:1))*i+n)/li[1]||0,t[0]*=e,t[1]*=e,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||Kn(),ii(this.invTransform,t)},di.prototype.getLocalTransform=function(t){return di.getLocalTransform(this,t)},di.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},di.prototype.setLocalTransform=function(t){var e,n;t&&(e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],si(e-1)&&(e=Math.sqrt(e)),si(n-1)&&(n=Math.sqrt(n)),this.rotation=Math.atan2(-t[1]/n,t[0]/e),t[0]<0&&(e=-e),t[3]<0&&(n=-n),e<0&&n<0&&(this.rotation+=Math.PI,e=-e,n=-n),this.x=t[4],this.y=t[5],this.scaleX=e,this.scaleY=n)},di.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(n=this.parent,t=this.transform,n&&n.transform&&(Qn(ui,n.invTransform,t),t=ui),e=this.originX,n=this.originY,(e||n)&&(hi[4]=e,hi[5]=n,Qn(ui,t,hi),ui[4]-=e,ui[5]-=n,t=ui),this.setLocalTransform(t))},di.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},di.prototype.transformCoordToLocal=function(t,e){t=[t,e],e=this.invTransform;return e&&Nt(t,t,e),t},di.prototype.transformCoordToGlobal=function(t,e){t=[t,e],e=this.transform;return e&&Nt(t,t,e),t},di.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<ci(t[0]-1)&&1e-10<ci(t[3]-1)?Math.sqrt(ci(t[0]*t[3]-t[2]*t[1])):1},di.getLocalTransform=function(t,e){ai(e=e||[]);var n=t.originX||0,i=t.originY||0,o=t.scaleX,r=t.scaleY,a=t.rotation||0,s=t.x,t=t.y;return e[4]-=n,e[5]-=i,e[0]*=o,e[1]*=r,e[2]*=o,e[3]*=r,e[4]*=o,e[5]*=r,a&&ei(e,e,a),e[4]+=n,e[5]+=i,e[4]+=s,e[5]+=t,e},di.initDefaultProps=((Bc=di.prototype).x=0,Bc.y=0,Bc.scaleX=1,Bc.scaleY=1,Bc.originX=0,Bc.originY=0,Bc.rotation=0,void(Bc.globalScaleRatio=1)),di);function di(){}var fi=(gi.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},gi.prototype.clone=function(){return new gi(this.x,this.y)},gi.prototype.set=function(t,e){return this.x=t,this.y=e,this},gi.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},gi.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},gi.prototype.scale=function(t){this.x*=t,this.y*=t},gi.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},gi.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},gi.prototype.dot=function(t){return this.x*t.x+this.y*t.y},gi.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},gi.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},gi.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},gi.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},gi.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},gi.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},gi.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},gi.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},gi.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},gi.set=function(t,e,n){t.x=e,t.y=n},gi.copy=function(t,e){t.x=e.x,t.y=e.y},gi.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},gi.lenSquare=function(t){return t.x*t.x+t.y*t.y},gi.dot=function(t,e){return t.x*e.x+t.y*e.y},gi.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},gi.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},gi.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},gi.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},gi.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},gi);function gi(t,e){this.x=t||0,this.y=e||0}var yi=Math.min,mi=Math.max,vi=new fi,xi=new fi,_i=new fi,bi=new fi,wi=new fi,Si=new fi,Mi=(Ii.prototype.union=function(t){var e=yi(t.x,this.x),n=yi(t.y,this.y);this.width=mi(t.x+t.width,this.x+this.width)-e,this.height=mi(t.y+t.height,this.y+this.height)-n,this.x=e,this.y=n},Ii.prototype.applyTransform=function(t){Ii.applyTransform(this,this,t)},Ii.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=Kn();return ti(i,i,[-this.x,-this.y]),ni(i,i,[e,n]),ti(i,i,[t.x,t.y]),i},Ii.prototype.intersect=function(t,e){if(!t)return!1;t instanceof Ii||(t=Ii.create(t));var n,i,o,r,a,s,l,u=this.x,h=this.x+this.width,c=this.y,p=this.y+this.height,d=t.x,f=t.x+t.width,g=t.y,y=t.y+t.height,m=!(h<d||f<u||p<g||y<c);return e&&(n=1/0,i=0,o=Math.abs(h-d),r=Math.abs(f-u),a=Math.abs(p-g),s=Math.abs(y-c),l=Math.min(o,r),t=Math.min(a,s),h<d||f<u?i<l&&(i=l,o<r?fi.set(Si,-o,0):fi.set(Si,r,0)):l<n&&(n=l,o<r?fi.set(wi,o,0):fi.set(wi,-r,0)),p<g||y<c?i<t&&(i=t,a<s?fi.set(Si,0,-a):fi.set(Si,0,s)):l<n&&(n=l,a<s?fi.set(wi,0,a):fi.set(wi,0,-s))),e&&fi.copy(e,m?wi:Si),m},Ii.prototype.contain=function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},Ii.prototype.clone=function(){return new Ii(this.x,this.y,this.width,this.height)},Ii.prototype.copy=function(t){Ii.copy(this,t)},Ii.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},Ii.create=function(t){return new Ii(t.x,t.y,t.width,t.height)},Ii.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},Ii.applyTransform=function(t,e,n){if(n){if(n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]){var i=n[0],o=n[3],r=n[4],a=n[5];return 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),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}vi.x=_i.x=e.x,vi.y=bi.y=e.y,xi.x=bi.x=e.x+e.width,xi.y=_i.y=e.y+e.height,vi.transform(n),bi.transform(n),xi.transform(n),_i.transform(n),t.x=yi(vi.x,xi.x,_i.x,bi.x),t.y=yi(vi.y,xi.y,_i.y,bi.y);o=mi(vi.x,xi.x,_i.x,bi.x),n=mi(vi.y,xi.y,_i.y,bi.y);t.width=o-t.x,t.height=n-t.y}else t!==e&&Ii.copy(t,e)},Ii);function Ii(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 Ti,Ci,Di={},Ai="12px sans-serif";var ki={measureText:function(t,e){return Ti=Ti||M().getContext("2d"),Ci!==e&&(Ci=Ti.font=e||Ai),Ti.measureText(t)}};function Li(t,e){var n=Di[e=e||Ai],i=(n=n||(Di[e]=new Fe(500))).get(t);return null==i&&(i=ki.measureText(t,e).width,n.put(t,i)),i}function Pi(t,e,n,i){t=Li(t,e),e=Ei(e),n=Oi(0,t,n),i=Ri(0,e,i);return new Mi(n,i,t,e)}function Ni(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return Pi(o[0],e,n,i);for(var r=new Mi(0,0,0,0),a=0;a<o.length;a++){var s=Pi(o[a],e,n,i);0===a?r.copy(s):r.union(s)}return r}function Oi(t,e,n){return"right"===n?t-=e:"center"===n&&(t-=e/2),t}function Ri(t,e,n){return"middle"===n?t-=e/2:"bottom"===n&&(t-=e),t}function Ei(t){return Li("国",t)}function zi(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function Bi(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",e="top";if(i instanceof Array)l+=zi(i[0],n.width),u+=zi(i[1],n.height),e=h=null;else switch(i){case"left":l-=o,u+=s,h="right",e="middle";break;case"right":l+=o+a,u+=s,e="middle";break;case"top":l+=a/2,u-=o,h="center",e="bottom";break;case"bottom":l+=a/2,u+=r+o,h="center";break;case"inside":l+=a/2,u+=s,h="center",e="middle";break;case"insideLeft":l+=o,u+=s,e="middle";break;case"insideRight":l+=a-o,u+=s,h="right",e="middle";break;case"insideTop":l+=a/2,u+=o,h="center";break;case"insideBottom":l+=a/2,u+=r-o,h="center",e="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,e="bottom";break;case"insideBottomRight":l+=a-o,u+=r-o,h="right",e="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=e,t}var Vi=1;"undefined"!=typeof window&&(Vi=Math.max(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Fi=Vi,Gi="#333",Hi="#ccc",Wi="__zr_normal__",Xi=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],Yi={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},Ui={},Zi=new Mi(0,0,0,0),qi=(ji.prototype._init=function(t){this.attr(t)},ji.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()},ji.prototype.beforeUpdate=function(){},ji.prototype.afterUpdate=function(){},ji.prototype.update=function(){this.updateTransform(),this.updateInnerText()},ji.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={}),a=(e=this.textConfig).local,i=n=void 0,o=!1,(u=c.attachedTransform).parent=a?this:null,l=!1,u.x=c.x,u.y=c.y,u.originX=c.originX,u.originY=c.originY,u.rotation=c.rotation,u.scaleX=c.scaleX,u.scaleY=c.scaleY,null!=e.position&&(s=Zi,e.layoutRect?s.copy(e.layoutRect):s.copy(this.getBoundingRect()),a||s.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Ui,e,s):Bi(Ui,e,s),u.x=Ui.x,u.y=Ui.y,n=Ui.align,i=Ui.verticalAlign,(r=e.origin)&&null!=e.rotation&&(h=t=void 0,h="center"===r?(t=.5*s.width,.5*s.height):(t=zi(r[0],s.width),zi(r[1],s.height)),l=!0,u.originX=-u.x+t+(a?0:s.x),u.originY=-u.y+h+(a?0:s.y))),null!=e.rotation&&(u.rotation=e.rotation),(h=e.offset)&&(u.x+=h[0],u.y+=h[1],l||(u.originX=-h[0],u.originY=-h[1])),a=null==e.inside?"string"==typeof e.position&&0<=e.position.indexOf("inside"):e.inside,s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),h=u=l=void 0,a&&this.canBeInsideText()?(l=e.insideFill,u=e.insideStroke,null!=l&&"auto"!==l||(l=this.getInsideTextFill()),null!=u&&"auto"!==u||(u=this.getInsideTextStroke(l),h=!0)):(l=e.outsideFill,u=e.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)),o&&c.dirtyStyle(),c.markRedraw())},ji.prototype.canBeInsideText=function(){return!0},ji.prototype.getInsideTextFill=function(){return"#fff"},ji.prototype.getInsideTextStroke=function(t){return"#000"},ji.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Hi:Gi},ji.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&tn(e),i=(n=n||[255,255,255,1])[3],o=0;o<3;o++)n[o]=n[o]*i+255*(1-i);return n[3]=1,un(n,"rgba")},ji.prototype.traverse=function(t,e){},ji.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||{},N(this.extra,e)):this[t]=e},ji.prototype.hide=function(){this.ignore=!0,this.markRedraw()},ji.prototype.show=function(){this.ignore=!1,this.markRedraw()},ji.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Y(t))for(var n=z(t),i=0;i<n.length;i++){var o=n[i];this.attrKV(o,t[o])}return this.markRedraw(),this},ji.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;o&&o!==Wi||(o=(o=i.targetName)?e[o]:e,i.saveFinalToTarget(o))}},ji.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Xi)},ji.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])}},ji.prototype.hasState=function(){return 0<this.currentStates.length},ji.prototype.getState=function(t){return this.states[t]},ji.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},ji.prototype.clearStates=function(t){this.useState(Wi,!1,t)},ji.prototype.useState=function(t,e,n){var i=t===Wi;if(this.hasState()||!i){var o,r=this.currentStates,a=this.stateTransition;if(!(0<=D(r,t))||!e&&1!==r.length){if(this.stateProxy&&!i&&(o=this.stateProxy(t)),(o=o||this.states&&this.states[t])||i){i||this.saveCurrentToNormalState(o);r=!(!o||!o.hoverLayer);return r&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,o,this._normalState,e,!n&&!this.__inHover&&a&&0<a.duration,a),this._textContent&&this._textContent.useState(t,e),this._textGuide&&this._textGuide.useState(t,e),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!r&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ji.REDARAW_BIT),o}b("State "+t+" not exists.")}}},ji.prototype.useStates=function(t,e){if(t.length){var n=[],i=this.currentStates,o=t.length,r=o===i.length;if(r)for(var a=0;a<o;a++)if(t[a]!==i[a]){r=!1;break}if(!r){for(a=0;a<o;a++){var s=t[a],l=void 0;this.stateProxy&&(l=this.stateProxy(s,t)),(l=l||this.states[s])&&n.push(l)}var u=!(!n[o-1]||!n[o-1].hoverLayer);u&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(n),c=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent&&this._textContent.useStates(t),this._textGuide&&this._textGuide.useStates(t),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ji.REDARAW_BIT)}}else this.clearStates()},ji.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},ji.prototype.removeState=function(t){var e=D(this.currentStates,t);0<=e&&((t=this.currentStates.slice()).splice(e,1),this.useStates(t))},ji.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),o=D(i,t),t=0<=D(i,e);0<=o?t?i.splice(o,1):i[o]=e:n&&!t&&i.push(e),this.useStates(i)},ji.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},ji.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var o=t[i];N(n,o),o.textConfig&&N(e=e||{},o.textConfig)}return e&&(n.textConfig=e),n},ji.prototype._applyStateObj=function(t,e,n,i,o,r){var a=!(e&&i);e&&e.textConfig?(this.textConfig=N({},(i?this:n).textConfig),N(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},l=!1,u=0;u<Xi.length;u++){var h=Xi[u],c=o&&Yi[h];e&&null!=e[h]?c?(l=!0,s[h]=e[h]):this[h]=e[h]:a&&null!=n[h]&&(c?(l=!0,s[h]=n[h]):this[h]=n[h])}if(!o)for(u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,r)},ji.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},ji.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},ji.prototype.getClipPath=function(){return this._clipPath},ji.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},ji.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},ji.prototype.getTextContent=function(){return this._textContent},ji.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.attachedTransform=new pi,this._attachComponent(t),this._textContent=t,this.markRedraw()}},ji.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),N(this.textConfig,t),this.markRedraw()},ji.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.attachedTransform=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},ji.prototype.getTextGuideLine=function(){return this._textGuide},ji.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},ji.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},ji.prototype.markRedraw=function(){this.__dirty|=ji.REDARAW_BIT;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},ji.prototype.dirty=function(){this.markRedraw()},ji.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},ji.prototype.addSelfToZr=function(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)},ji.prototype.removeSelfFromZr=function(t){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)},ji.prototype.animate=function(t,e){var n=t?this[t]:this;if(n){e=new In(n,e);return this.addAnimator(e,t),e}b('Property "'+t+'" is not existed in element '+this.id)},ji.prototype.addAnimator=function(n,t){var e=this.__zr,i=this;n.during(function(){i.updateDuringAnimation(t)}).done(function(){var t=i.animators,e=D(t,n);0<=e&&t.splice(e,1)}),this.animators.push(n),e&&e.animation.addAnimator(n),e&&e.wakeUp()},ji.prototype.updateDuringAnimation=function(t){this.markRedraw()},ji.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},ji.prototype.animateTo=function(t,e,n){Ki(this,t,e,n)},ji.prototype.animateFrom=function(t,e,n){Ki(this,t,e,n,!0)},ji.prototype._transitionState=function(t,e,n,i){for(var o=Ki(this,e,n,i),r=0;r<o.length;r++)o[r].__fromStateTransition=t},ji.prototype.getBoundingRect=function(){return null},ji.REDARAW_BIT=1,ji.initDefaultProps=function(){var t=ji.prototype;t.type="element",t.name="",t.ignore=!1,t.silent=!1,t.isGroup=!1,t.draggable=!1,t.dragging=!1,t.ignoreClip=!1,t.__inHover=!1,t.__dirty=ji.REDARAW_BIT;var i={};function a(t,e,n){i[t+e+n]||(console.warn("DEPRECATED: '"+t+"' has been deprecated. use '"+e+"', '"+n+"' instead"),i[t+e+n]=!0)}function e(e,n,i,o){function r(e,t){Object.defineProperty(t,0,{get:function(){return e[i]},set:function(t){e[i]=t}}),Object.defineProperty(t,1,{get:function(){return e[o]},set:function(t){e[o]=t}})}Object.defineProperty(t,e,{get:function(){var t;return a(e,i,o),this[n]||(t=this[n]=[],r(this,t)),this[n]},set:function(t){a(e,i,o),this[i]=t[0],this[o]=t[1],this[n]=t,r(this,t)}})}Object.defineProperty&&(!v.browser.ie||8<v.browser.version)&&(e("position","_legacyPos","x","y"),e("scale","_legacyScale","scaleX","scaleY"),e("origin","_legacyOrigin","originX","originY"))}(),ji);function ji(t){this.id=x++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function Ki(t,e,n,i,o){var r=[];!function t(e,n,i,o,r,a,s,l){var u=[];var h=[];var c=z(o);var p=r.duration;var d=r.delay;var f=r.additive;var g=r.setToFinal;var y=!Y(a);for(var m=0;m<c.length;m++){var v=c[m];null!=i[v]&&null!=o[v]&&(y||a[v])?Y(o[v])&&!k(o[v])?n?l||(i[v]=o[v],e.updateDuringAnimation(n)):t(e,v,i[v],o[v],r,a&&a[v],s,l):(u.push(v),h.push(v)):l||(i[v]=o[v],e.updateDuringAnimation(n),h.push(v))}var x=u.length;if(0<x||r.force){for(var _=e.animators,b=[],w=0;w<_.length;w++)_[w].targetName===n&&b.push(_[w]);if(!f&&b.length)for(var w=0;w<b.length;w++){var S=b[w].stopTracks(h);S&&(S=D(_,b[w]),_.splice(S,1))}var M=void 0,I=void 0,T=void 0;if(l){I={},g&&(M={});for(var w=0;w<x;w++){var v=u[w];I[v]=i[v],g?M[v]=o[v]:i[v]=o[v]}}else if(g){T={};for(var w=0;w<x;w++){var v=u[w];T[v]=_n(i[v]),Ji(i,o,v)}}var f=new In(i,!1,f?b:null);f.targetName=n,r.scope&&(f.scope=r.scope),g&&M&&f.whenWithKeys(0,M,u),T&&f.whenWithKeys(0,T,u),f.whenWithKeys(null==p?500:p,l?I:o,u).delay(d||0),e.addAnimator(f,n),s.push(f)}}(t,"",t,e,n=n||{},i,r,o);var a=r.length,s=a,l=n.done,u=n.aborted,h=l?function(){--a||l()}:null,c=u?function(){--s||u()}:null;a||l&&l(),0<r.length&&n.during&&r[0].during(function(t,e){n.during(e)});for(var p=0;p<r.length;p++){var d=r[p];h&&d.done(h),c&&d.aborted(c),d.start(n.easing,n.force)}return r}function $i(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function Ji(t,e,n){if(k(e[n])){var i;k(t[n])||(t[n]=[]),Z(e[n])&&(i=e[n].length,t[n].length!==i&&(t[n]=new e[n].constructor(i),$i(t[n],e[n],i)));var o=e[n],r=t[n],a=o.length;if(k(o[0]))for(var s=o[0].length,l=0;l<a;l++)r[l]?$i(r[l],o[l],s):r[l]=Array.prototype.slice.call(o[l]);else $i(r,o,a);r.length=o.length}else t[n]=e[n]}T(qi,Ft),T(qi,pi);var Qi="__zr_style_"+Math.round(10*Math.random()),to={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},eo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};to[Qi]=!0;var no,io=["z","z2","invisible"],oo=(l(ro,no=qi),ro.prototype._init=function(t){for(var e=z(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):no.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},ro.prototype.beforeBrush=function(){},ro.prototype.afterBrush=function(){},ro.prototype.innerBeforeBrush=function(){},ro.prototype.innerAfterBrush=function(){},ro.prototype.contain=function(t,e){return this.rectContain(t,e)},ro.prototype.traverse=function(t,e){t.call(e,this)},ro.prototype.rectContain=function(t,e){e=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(e[0],e[1])},ro.prototype.animateStyle=function(t){return this.animate("style",t)},ro.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},ro.prototype.attrKV=function(t,e){"style"!==t?no.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},ro.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:N(this.style,t),this.dirtyStyle(),this},ro.prototype.dirtyStyle=function(){this.markRedraw(),this.__dirty|=ro.STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},ro.prototype.dirty=function(){this.dirtyStyle()},ro.prototype.styleChanged=function(){return!!(this.__dirty&ro.STYLE_CHANGED_BIT)},ro.prototype.styleUpdated=function(){this.__dirty&=~ro.STYLE_CHANGED_BIT},ro.prototype.createStyle=function(t){return dt(to,t)},ro.prototype.useStyle=function(t){t[Qi]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},ro.prototype.isStyleObject=function(t){return t[Qi]},ro.prototype._innerSaveToNormal=function(t){no.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,io)},ro.prototype._applyStateObj=function(t,e,n,i,o,r){no.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=z(l),h=0;h<u.length;h++){(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p])}for(var c=z(a),h=0;h<c.length;h++){var p=c[h];this.style[p]=this.style[p]}this._transitionState(t,{style:a},r,this._getAnimationStyleProps())}else this.useStyle(a);for(h=0;h<io.length;h++){p=io[h];e&&null!=e[p]?this[p]=e[p]:s&&null!=n[p]&&(this[p]=n[p])}},ro.prototype._mergeStates=function(t){for(var e,n=no.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.style&&(e=e||{},this._mergeStyle(e,o.style))}return e&&(n.style=e),n},ro.prototype._mergeStyle=function(t,e){return N(t,e),t},ro.prototype._getAnimationStyleProps=function(){return eo},ro.STYLE_CHANGED_BIT=2,ro.initDefaultProps=((rp=ro.prototype).type="displayable",rp.invisible=!1,rp.z=0,rp.z2=0,rp.zlevel=0,rp.culling=!1,rp.cursor="pointer",rp.rectHover=!1,rp.incremental=!1,rp._rect=null,void(rp.__dirty=qi.REDARAW_BIT|ro.STYLE_CHANGED_BIT)),ro);function ro(t){return no.call(this,t)||this}var ao=Math.pow,so=Math.sqrt,lo=1e-8,uo=1e-4,ho=so(3),co=1/3,po=mt(),fo=mt(),go=mt();function yo(t){return-lo<t&&t<lo}function mo(t){return lo<t||t<-lo}function vo(t,e,n,i,o){var r=1-o;return r*r*(r*t+3*o*e)+o*o*(o*i+3*r*n)}function xo(t,e,n,i,o){var r=1-o;return 3*(((e-t)*r+2*(n-e)*o)*r+(i-n)*o*o)}function _o(t,e,n,i,o,r){var a,s,l,u=i+3*(e-n)-t,h=3*(n-2*e+t),i=3*(e-t),n=t-o,e=h*h-3*u*i,t=h*i-9*u*n,o=i*i-3*h*n,n=0;return yo(e)&&yo(t)?yo(h)?r[0]=0:0<=(s=-i/h)&&s<=1&&(r[n++]=s):yo(i=t*t-4*e*o)?(l=-(o=t/e)/2,0<=(s=-h/u+o)&&s<=1&&(r[n++]=s),0<=l&&l<=1&&(r[n++]=l)):0<i?(a=e*h+1.5*u*(-t-(i=so(i))),0<=(s=(-h-((i=(i=e*h+1.5*u*(-t+i))<0?-ao(-i,co):ao(i,co))+(a=a<0?-ao(-a,co):ao(a,co))))/(3*u))&&s<=1&&(r[n++]=s)):(a=(2*e*h-3*u*t)/(2*so(e*e*e)),t=Math.acos(a)/3,s=(-h-2*(a=so(e))*(e=Math.cos(t)))/(3*u),l=(-h+a*(e+ho*Math.sin(t)))/(3*u),u=(-h+a*(e-ho*Math.sin(t)))/(3*u),0<=s&&s<=1&&(r[n++]=s),0<=l&&l<=1&&(r[n++]=l),0<=u&&u<=1&&(r[n++]=u)),n}function bo(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 yo(i)?mo(a)&&0<=(r=-n/a)&&r<=1&&(o[e++]=r):yo(t=a*a-4*i*n)?o[0]=-a/(2*i):0<t&&(t=(-a-(n=so(t)))/(2*i),0<=(r=(-a+n)/(2*i))&&r<=1&&(o[e++]=r),0<=t&&t<=1&&(o[e++]=t)),e}function wo(t,e,n,i,o,r){var a=(e-t)*o+t,s=(n-e)*o+e,e=(i-n)*o+n,n=(s-a)*o+a,s=(e-s)*o+s,o=(s-n)*o+n;r[0]=t,r[1]=a,r[2]=n,r[3]=o,r[4]=o,r[5]=s,r[6]=e,r[7]=i}function So(t,e,n,i,o,r,a,s,l,u,h){var c,p,d,f,g=.005,y=1/0;po[0]=l,po[1]=u;for(var m=0;m<1;m+=.05)fo[0]=vo(t,n,o,a,m),fo[1]=vo(e,i,r,s,m),(d=Lt(po,fo))<y&&(c=m,y=d);y=1/0;for(var v=0;v<32&&!(g<uo);v++)f=c-g,p=c+g,fo[0]=vo(t,n,o,a,f),fo[1]=vo(e,i,r,s,f),d=Lt(fo,po),0<=f&&d<y?(c=f,y=d):(go[0]=vo(t,n,o,a,p),go[1]=vo(e,i,r,s,p),f=Lt(go,po),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=vo(t,n,o,a,c),h[1]=vo(e,i,r,s,c)),so(y)}function Mo(t,e,n,i){var o=1-i;return o*(o*t+2*i*e)+i*i*n}function Io(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function To(t,e,n){n=t+n-2*e;return 0==n?.5:(t-e)/n}function Co(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 Do(t,e,n,i,o,r,a,s,l){var u,h=.005,c=1/0;po[0]=a,po[1]=s;for(var p=0;p<1;p+=.05){fo[0]=Mo(t,n,o,p),fo[1]=Mo(e,i,r,p),(y=Lt(po,fo))<c&&(u=p,c=y)}c=1/0;for(var d=0;d<32&&!(h<uo);d++){var f=u-h,g=u+h;fo[0]=Mo(t,n,o,f),fo[1]=Mo(e,i,r,f);var y=Lt(fo,po);0<=f&&y<c?(u=f,c=y):(go[0]=Mo(t,n,o,g),go[1]=Mo(e,i,r,g),f=Lt(go,po),g<=1&&f<c?(u=g,c=f):h*=.5)}return l&&(l[0]=Mo(t,n,o,u),l[1]=Mo(e,i,r,u)),so(c)}var Ao=Math.min,ko=Math.max,Lo=Math.sin,Po=Math.cos,No=2*Math.PI,Oo=mt(),Ro=mt(),Eo=mt();function zo(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=Ao(o,i[0]),r=ko(r,i[0]),a=Ao(a,i[1]),s=ko(s,i[1]);e[0]=o,e[1]=a,n[0]=r,n[1]=s}}function Bo(t,e,n,i,o,r){o[0]=Ao(t,n),o[1]=Ao(e,i),r[0]=ko(t,n),r[1]=ko(e,i)}var Vo=[],Fo=[];var Go={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ho=[],Wo=[],Xo=[],Yo=[],Uo=[],Zo=[],qo=Math.min,jo=Math.max,Ko=Math.cos,$o=Math.sin,Jo=Math.sqrt,Qo=Math.abs,tr=Math.PI,er=2*tr,nr="undefined"!=typeof Float32Array,ir=[];function or(t){return Math.round(t/tr*1e8)/1e8%2*tr}function rr(t,e){var n=or(t[0]);n<0&&(n+=er);var i=n-t[0],o=t[1];o+=i,!e&&er<=o-n?o=n+er:e&&er<=n-o?o=n-er:!e&&o<n?o=n+(er-or(n-o)):e&&n<o&&(o=n-(er-or(o-n))),t[0]=n,t[1]=o}var ar=(sr.prototype.increaseVersion=function(){this._version++},sr.prototype.getVersion=function(){return this._version},sr.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=Qo(n/Fi/t)||0,this._uy=Qo(n/Fi/e)||0)},sr.prototype.setDPR=function(t){this.dpr=t},sr.prototype.setContext=function(t){this._ctx=t},sr.prototype.getContext=function(){return this._ctx},sr.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},sr.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},sr.prototype.moveTo=function(t,e){return this.addData(Go.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},sr.prototype.lineTo=function(t,e){var n=Qo(t-this._xi)>this._ux||Qo(e-this._yi)>this._uy||this._len<5;return this.addData(Go.L,t,e),this._ctx&&n&&(this._needsDash?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},sr.prototype.bezierCurveTo=function(t,e,n,i,o,r){return this.addData(Go.C,t,e,n,i,o,r),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,n,i,o,r):this._ctx.bezierCurveTo(t,e,n,i,o,r)),this._xi=o,this._yi=r,this},sr.prototype.quadraticCurveTo=function(t,e,n,i){return this.addData(Go.Q,t,e,n,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},sr.prototype.arc=function(t,e,n,i,o,r){ir[0]=i,ir[1]=o,rr(ir,r),i=ir[0];var a=(o=ir[1])-i;return this.addData(Go.A,t,e,n,n,i,a,0,r?0:1),this._ctx&&this._ctx.arc(t,e,n,i,o,r),this._xi=Ko(o)*n+t,this._yi=$o(o)*n+e,this},sr.prototype.arcTo=function(t,e,n,i,o){return this._ctx&&this._ctx.arcTo(t,e,n,i,o),this},sr.prototype.rect=function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Go.R,t,e,n,i),this},sr.prototype.closePath=function(){this.addData(Go.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},sr.prototype.fill=function(t){t&&t.fill(),this.toStatic()},sr.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},sr.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t;for(var e=this._dashIdx=0,n=0;n<t.length;n++)e+=t[n];this._dashSum=e,this._needsDash=!0}else this._lineDash=null,this._needsDash=!1;return this},sr.prototype.setLineDashOffset=function(t){return this._dashOffset=t,this},sr.prototype.len=function(){return this._len},sr.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!nr||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e},sr.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var e=t.length,n=0,i=this._len,o=0;o<e;o++)n+=t[o].len();nr&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(o=0;o<e;o++)for(var r=t[o].data,a=0;a<r.length;a++)this.data[i++]=r[a];this._len=i},sr.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]}},sr.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}},sr.prototype._dashedLineTo=function(t,e){var n,i,o=this._dashSum,r=this._lineDash,a=this._ctx,s=this._dashOffset,l=this._xi,u=this._yi,h=t-l,c=e-u,p=Jo(h*h+c*c),d=l,f=u,g=r.length;for(s<0&&(s=o+s),d-=(s%=o)*(h/=p),f-=s*(c/=p);0<h&&d<=t||h<0&&t<=d||0===h&&(0<c&&f<=e||c<0&&e<=f);)d+=h*(n=r[i=this._dashIdx]),f+=c*n,this._dashIdx=(i+1)%g,0<h&&d<l||h<0&&l<d||0<c&&f<u||c<0&&u<f||a[i%2?"moveTo":"lineTo"]((0<=h?qo:jo)(d,t),(0<=c?qo:jo)(f,e));h=d-t,c=f-e,this._dashOffset=-Jo(h*h+c*c)},sr.prototype._dashedBezierTo=function(t,e,n,i,o,r){var a,s,l,u,h,c=this._ctx,p=this._dashSum,d=this._dashOffset,f=this._lineDash,g=this._xi,y=this._yi,m=0,v=this._dashIdx,x=f.length,_=0;for(d<0&&(d=p+d),d%=p,a=0;a<1;a+=.1)s=vo(g,t,n,o,a+.1)-vo(g,t,n,o,a),l=vo(y,e,i,r,a+.1)-vo(y,e,i,r,a),m+=Jo(s*s+l*l);for(;v<x&&!(d<(_+=f[v]));v++);for(a=(_-d)/m;a<=1;)u=vo(g,t,n,o,a),h=vo(y,e,i,r,a),v%2?c.moveTo(u,h):c.lineTo(u,h),a+=f[v]/m,v=(v+1)%x;v%2!=0&&c.lineTo(o,r),s=o-u,l=r-h,this._dashOffset=-Jo(s*s+l*l)},sr.prototype._dashedQuadraticTo=function(t,e,n,i){var o=n,r=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,o,r)},sr.prototype.toStatic=function(){var t;!this._saveData||(t=this.data)instanceof Array&&(t.length=this._len,nr&&11<this._len&&(this.data=new Float32Array(t)))},sr.prototype.getBoundingRect=function(){Xo[0]=Xo[1]=Uo[0]=Uo[1]=Number.MAX_VALUE,Yo[0]=Yo[1]=Zo[0]=Zo[1]=-Number.MAX_VALUE;for(var t,e,n,i=this.data,o=0,r=0,a=0,s=0,l=0;l<i.length;){var u=i[l++],h=1===l;switch(h&&(a=o=i[l],s=r=i[l+1]),u){case Go.M:o=a=i[l++],r=s=i[l++],Uo[0]=a,Uo[1]=s,Zo[0]=a,Zo[1]=s;break;case Go.L:Bo(o,r,i[l],i[l+1],Uo,Zo),o=i[l++],r=i[l++];break;case Go.C:!function(t,e,n,i,o,r,a,s,l,u){var h=bo,c=vo,p=h(t,n,o,a,Vo);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var d=0;d<p;d++){var f=c(t,n,o,a,Vo[d]);l[0]=Ao(f,l[0]),u[0]=ko(f,u[0])}for(p=h(e,i,r,s,Fo),d=0;d<p;d++){var g=c(e,i,r,s,Fo[d]);l[1]=Ao(g,l[1]),u[1]=ko(g,u[1])}l[0]=Ao(t,l[0]),u[0]=ko(t,u[0]),l[0]=Ao(a,l[0]),u[0]=ko(a,u[0]),l[1]=Ao(e,l[1]),u[1]=ko(e,u[1]),l[1]=Ao(s,l[1]),u[1]=ko(s,u[1])}(o,r,i[l++],i[l++],i[l++],i[l++],i[l],i[l+1],Uo,Zo),o=i[l++],r=i[l++];break;case Go.Q:c=o,g=r,t=i[l++],e=i[l++],p=i[l],y=i[l+1],n=Uo,f=Zo,m=d=m=d=u=void 0,u=Mo,d=ko(Ao((m=To)(c,t,p),1),0),m=ko(Ao(m(g,e,y),1),0),d=u(c,t,p,d),m=u(g,e,y,m),n[0]=Ao(c,p,d),n[1]=Ao(g,y,m),f[0]=ko(c,p,d),f[1]=ko(g,y,m),o=i[l++],r=i[l++];break;case Go.A:var c=i[l++],p=i[l++],d=i[l++],f=i[l++],g=i[l++],y=i[l++]+g;l+=1;var m=!i[l++];h&&(a=Ko(g)*d+c,s=$o(g)*f+p),function(t,e,n,i,o,r,a,s,l){var u=Ot,h=Rt,c=Math.abs(o-r);if(c%No<1e-4&&1e-4<c)return s[0]=t-n,s[1]=e-i,l[0]=t+n,l[1]=e+i;Oo[0]=Po(o)*n+t,Oo[1]=Lo(o)*i+e,Ro[0]=Po(r)*n+t,Ro[1]=Lo(r)*i+e,u(s,Oo,Ro),h(l,Oo,Ro),(o%=No)<0&&(o+=No),(r%=No)<0&&(r+=No),r<o&&!a?r+=No:o<r&&a&&(o+=No),a&&(a=r,r=o,o=a);for(var p=0;p<r;p+=Math.PI/2)o<p&&(Eo[0]=Po(p)*n+t,Eo[1]=Lo(p)*i+e,u(s,Eo,s),h(l,Eo,l))}(c,p,d,f,g,y,m,Uo,Zo),o=Ko(y)*d+c,r=$o(y)*f+p;break;case Go.R:Bo(a=o=i[l++],s=r=i[l++],a+i[l++],s+i[l++],Uo,Zo);break;case Go.Z:o=a,r=s}Ot(Xo,Xo,Uo),Rt(Yo,Yo,Zo)}return 0===l&&(Xo[0]=Xo[1]=Yo[0]=Yo[1]=0),new Mi(Xo[0],Xo[1],Yo[0]-Xo[0],Yo[1]-Xo[1])},sr.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;d&&(a=o=t[c],s=r=t[c+1]);var f=-1;switch(p){case Go.M:o=a=t[c++],r=s=t[c++];break;case Go.L:var g=t[c++],y=(x=t[c++])-r;(Qo(T=g-o)>n||Qo(y)>i||c===e-1)&&(f=Math.sqrt(T*T+y*y),o=g,r=x);break;case Go.C:var m=t[c++],v=t[c++],g=t[c++],x=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=vo(t,n,o,a,f),y=vo(e,i,r,s,f),m=g-u,f=y-h;c+=Math.sqrt(m*m+f*f),u=g,h=y}return c}(o,r,m,v,g,x,_,b,10),o=_,r=b;break;case Go.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=Mo(t,n,o,p),f=Mo(e,i,r,p),g=d-s,p=f-l;u+=Math.sqrt(g*g+p*p),s=d,l=f}return u}(o,r,m=t[c++],v=t[c++],g=t[c++],x=t[c++],10),o=g,r=x;break;case Go.A:var w=t[c++],S=t[c++],M=t[c++],I=t[c++],p=t[c++],_=t[c++],b=_+p;c+=1;t[c++];d&&(a=Ko(p)*M+w,s=$o(p)*I+S),f=jo(M,I)*qo(er,Math.abs(_)),o=Ko(b)*M+w,r=$o(b)*I+S;break;case Go.R:a=o=t[c++],s=r=t[c++];f=2*t[c++]+2*t[c++];break;case Go.Z:var T=a-o,y=s-r;f=Math.sqrt(T*T+y*y),o=a,r=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},sr.prototype.rebuildPath=function(t,e){var n,i,o,r,a,s,l,u,h=this.data,c=this._ux,p=this._uy,d=this._len,f=e<1,g=0,y=0;if(!f||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var m=0;m<d;){var v=h[m++],x=1===m;switch(x&&(n=o=h[m],i=r=h[m+1]),v){case Go.M:n=o=h[m++],i=r=h[m++],t.moveTo(o,r);break;case Go.L:if(a=h[m++],s=h[m++],Qo(a-o)>c||Qo(s-r)>p||m===d-1){if(f){if(u<g+(E=l[y++])){var _=(u-g)/E;t.lineTo(o*(1-_)+a*_,r*(1-_)+s*_);break t}g+=E}t.lineTo(a,s),o=a,r=s}break;case Go.C:var b=h[m++],w=h[m++],S=h[m++],M=h[m++],I=h[m++],T=h[m++];if(f){if(u<g+(E=l[y++])){wo(o,b,S,I,_=(u-g)/E,Ho),wo(r,w,M,T,_,Wo),t.bezierCurveTo(Ho[1],Wo[1],Ho[2],Wo[2],Ho[3],Wo[3]);break t}g+=E}t.bezierCurveTo(b,w,S,M,I,T),o=I,r=T;break;case Go.Q:b=h[m++],w=h[m++],S=h[m++],M=h[m++];if(f){if(u<g+(E=l[y++])){Co(o,b,S,_=(u-g)/E,Ho),Co(r,w,M,_,Wo),t.quadraticCurveTo(Ho[1],Wo[1],Ho[2],Wo[2]);break t}g+=E}t.quadraticCurveTo(b,w,S,M),o=S,r=M;break;case Go.A:var C=h[m++],D=h[m++],A=h[m++],k=h[m++],L=h[m++],P=h[m++],N=h[m++],O=!h[m++],v=k<A?A:k,I=.001<Qo(A-k),R=L+P,T=!1;if(f&&(u<g+(E=l[y++])&&(R=L+P*(u-g)/E,T=!0),g+=E),I&&t.ellipse?t.ellipse(C,D,A,k,N,L,R,O):t.arc(C,D,v,L,R,O),T)break t;x&&(n=Ko(L)*A+C,i=$o(L)*k+D),o=Ko(R)*A+C,r=$o(R)*k+D;break;case Go.R:n=o=h[m],i=r=h[m+1],a=h[m++],s=h[m++];var E,R=h[m++],k=h[m++];if(f){if(u<g+(E=l[y++])){D=u-g;t.moveTo(a,s),t.lineTo(a+qo(D,R),s),0<(D-=R)&&t.lineTo(a+R,s+qo(D,k)),0<(D-=k)&&t.lineTo(a+jo(R-D,0),s+k),0<(D-=R)&&t.lineTo(a,s+jo(k-D,0));break t}g+=E}t.rect(a,s,R,k);break;case Go.Z:if(f){if(u<g+(E=l[y++])){_=(u-g)/E;t.lineTo(o*(1-_)+n*_,r*(1-_)+i*_);break t}g+=E}t.closePath(),o=n,r=i}}},sr.CMD=Go,sr.initDefaultProps=((pg=sr.prototype)._saveData=!0,pg._needsDash=!1,pg._dashOffset=0,pg._dashIdx=0,pg._dashSum=0,pg._ux=0,void(pg._uy=0)),sr);function sr(t){this.dpr=1,this._version=0,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}function lr(t,e,n,i,o,r,a){if(0!==o){var s=o,o=0;if(!(e+s<a&&i+s<a||a<e-s&&a<i-s||t+s<r&&n+s<r||r<t-s&&r<n-s)){if(t===n)return Math.abs(r-t)<=s/2;n=(o=(e-i)/(t-n))*r-a+(t*i-n*e)/(t-n);return n*n/(o*o+1)<=s/2*s/2}}}function ur(t,e,n,i,o,r,a,s,l){if(0!==a){a=a;return e+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?void 0:Do(t,e,n,i,o,r,s,l,null)<=a/2}}var hr=2*Math.PI;function cr(t){return(t%=hr)<0&&(t+=hr),t}var pr=2*Math.PI;function dr(t,e,n,i,o,r){if(e<r&&i<r||r<e&&r<i)return 0;if(i===e)return 0;var a=(r-e)/(i-e),r=i<e?1:-1;1!=a&&0!=a||(r=i<e?.5:-.5);t=a*(n-t)+t;return t===o?1/0:o<t?r:0}var fr=ar.CMD,gr=2*Math.PI,yr=1e-4;var mr=[-1,-1,-1],vr=[-1,-1];function xr(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=_o(e,i,r,s,u,mr);if(0===h)return 0;for(var c,p=0,d=-1,f=void 0,g=void 0,y=0;y<h;y++){var m=mr[y],v=0===m||1===m?.5:1;vo(t,n,o,a,m)<l||(d<0&&(d=bo(e,i,r,s,vr),vr[1]<vr[0]&&1<d&&(c=void 0,c=vr[0],vr[0]=vr[1],vr[1]=c),f=vo(e,i,r,s,vr[0]),1<d&&(g=vo(e,i,r,s,vr[1]))),2===d?m<vr[0]?p+=f<e?v:-v:m<vr[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<vr[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function _r(t,e,n,i,o,r,a,s){if(e<s&&i<s&&r<s||s<e&&s<i&&s<r)return 0;var l,u,h,c,p,d,f=(c=mr,d=(l=e)-2*(u=i)+(h=r),h=2*(u-l),u=l-(s=s),l=0,yo(d)?mo(h)&&0<=(p=-u/h)&&p<=1&&(c[l++]=p):yo(s=h*h-4*d*u)?0<=(p=-h/(2*d))&&p<=1&&(c[l++]=p):0<s&&(s=(-h-(u=so(s)))/(2*d),0<=(p=(-h+u)/(2*d))&&p<=1&&(c[l++]=p),0<=s&&s<=1&&(c[l++]=s)),l);if(0===f)return 0;var g=To(e,i,r);if(0<=g&&g<=1){for(var y=0,m=Mo(e,i,r,g),v=0;v<f;v++){var x=0===mr[v]||1===mr[v]?.5:1;Mo(t,n,o,mr[v])<a||(mr[v]<g?y+=m<e?x:-x:y+=r<m?x:-x)}return y}x=0===mr[0]||1===mr[0]?.5:1;return Mo(t,n,o,mr[0])<a?0:r<e?x:-x}function br(t,e,n,i,o){for(var r,a,s=0,l=0,u=0,h=0,c=0,p=0;p<t.length;){var d=t[p++],f=1===p;switch(d===fr.M&&1<p&&(n||(s+=dr(l,u,h,c,i,o))),f&&(h=l=t[p],c=u=t[p+1]),d){case fr.M:l=h=t[p++],u=c=t[p++];break;case fr.L:if(n){if(lr(l,u,t[p],t[p+1],e,i,o))return!0}else s+=dr(l,u,t[p],t[p+1],i,o)||0;l=t[p++],u=t[p++];break;case fr.C:if(n){if(function(t,e,n,i,o,r,a,s,l,u,h){if(0!==l){l=l;return e+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?void 0:So(t,e,n,i,o,r,a,s,u,h,null)<=l/2}}(l,u,t[p++],t[p++],t[p++],t[p++],t[p],t[p+1],e,i,o))return!0}else s+=xr(l,u,t[p++],t[p++],t[p++],t[p++],t[p],t[p+1],i,o)||0;l=t[p++],u=t[p++];break;case fr.Q:if(n){if(ur(l,u,t[p++],t[p++],t[p],t[p+1],e,i,o))return!0}else s+=_r(l,u,t[p++],t[p++],t[p],t[p+1],i,o)||0;l=t[p++],u=t[p++];break;case fr.A:var g=t[p++],y=t[p++],m=t[p++],v=t[p++],x=t[p++],_=t[p++];p+=1;var d=!!(1-t[p++]),b=Math.cos(x)*m+g,w=Math.sin(x)*v+y;f?(h=b,c=w):s+=dr(l,u,b,w,i,o);f=(i-g)*v/m+g;if(n){if(function(t,e,n,i,o,r,a,s,l){if(0!==a){a=a;s-=t,l-=e;e=Math.sqrt(s*s+l*l);if(!(n<e-a||e+a<n)){if(Math.abs(i-o)%pr<1e-4)return 1;(o=r?(r=i,i=cr(o),cr(r)):(i=cr(i),cr(o)))<i&&(o+=pr);s=Math.atan2(l,s);return s<0&&(s+=pr),i<=s&&s<=o||i<=s+pr&&s+pr<=o}}}(g,y,v,x,x+_,d,e,f,o))return!0}else s+=function(t,e,n,i,o,r,a,s){if(n<(s-=e)||s<-n)return 0;if(n=Math.sqrt(n*n-s*s),mr[0]=-n,mr[1]=n,(n=Math.abs(i-o))<1e-4)return 0;if(gr-1e-4<=n){o=gr;var l=r?1:-1;return a>=mr[i=0]+t&&a<=mr[1]+t?l:0}o<i&&(n=i,i=o,o=n),i<0&&(i+=gr,o+=gr);for(var u=0,h=0;h<2;h++){var c=mr[h];a<c+t&&(l=r?1:-1,(c=Math.atan2(s,c))<0&&(c=gr+c),(i<=c&&c<=o||i<=c+gr&&c+gr<=o)&&(c>Math.PI/2&&c<1.5*Math.PI&&(l=-l),u+=l))}return u}(g,y,v,x,x+_,d,f,o);l=Math.cos(x+_)*m+g,u=Math.sin(x+_)*v+y;break;case fr.R:h=l=t[p++],c=u=t[p++];if(b=h+t[p++],w=c+t[p++],n){if(lr(h,c,b,c,e,i,o)||lr(b,c,b,w,e,i,o)||lr(b,w,h,w,e,i,o)||lr(h,w,h,c,e,i,o))return!0}else s+=dr(b,c,b,w,i,o),s+=dr(h,w,h,c,i,o);break;case fr.Z:if(n){if(lr(l,u,h,c,e,i,o))return!0}else s+=dr(l,u,h,c,i,o);l=h,u=c}}return n||(r=u,a=c,Math.abs(r-a)<yr)||(s+=dr(l,u,h,c,i,o)||0),0!==s}var wr,Sr=A({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},to),Mr={style:A({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},eo.style)},Ir=(l(Tr,wr=oo),Tr.prototype._init=function(t){var e=z(t);this.shape=this.getDefaultShape();var n=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?N(this.style,r):this.useStyle(r):"shape"===o?N(this.shape,r):wr.prototype.attrKV.call(this,o,r)}this.style||this.useStyle({})},Tr.prototype.getDefaultStyle=function(){return null},Tr.prototype.getDefaultShape=function(){return{}},Tr.prototype.canBeInsideText=function(){return this.hasFill()},Tr.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(H(t)){var e=hn(t,0);return.5<e?Gi:.2<e?"#eee":Hi}if(t)return Hi}return Gi},Tr.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(H(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==hn(t,0)<.4)return e}},Tr.prototype.buildPath=function(t,e,n){},Tr.prototype.pathUpdated=function(){this.__dirty&=~Tr.SHAPE_CHANGED_BIT},Tr.prototype.createPathProxy=function(){this.path=new ar(!1)},Tr.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},Tr.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Tr.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n&&(o=!1,this.path||(o=!0,this.createPathProxy()),i=this.path,(o||this.__dirty&Tr.SHAPE_CHANGED_BIT)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()),this._rect=t,this.hasStroke()){var i,o=this._rectWithStroke||(this._rectWithStroke=t.clone());return(this.__dirty||n)&&(o.copy(t),i=e.strokeNoScale?this.getLineScale():1,n=e.lineWidth,this.hasFill()||(e=this.strokeContainThreshold,n=Math.max(n,null==e?4:e)),1e-10<i&&(o.width+=n/i,o.height+=n/i,o.x-=n/i/2,o.y-=n/i/2)),o}return t},Tr.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.data;if(this.hasStroke()){i=o.lineWidth,o=o.strokeNoScale?this.getLineScale():1;if(1e-10<o&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),br(n,i/o,!0,t,e)))return!0}if(this.hasFill())return br(n,0,!1,t,e)}return!1},Tr.prototype.dirtyShape=function(){this.__dirty|=Tr.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this.markRedraw()},Tr.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},Tr.prototype.animateShape=function(t){return this.animate("shape",t)},Tr.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},Tr.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):wr.prototype.attrKV.call(this,t,e)},Tr.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:N(n,t),this.dirtyShape(),this},Tr.prototype.shapeChanged=function(){return!!(this.__dirty&Tr.SHAPE_CHANGED_BIT)},Tr.prototype.createStyle=function(t){return dt(Sr,t)},Tr.prototype._innerSaveToNormal=function(t){wr.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=N({},this.shape))},Tr.prototype._applyStateObj=function(t,e,n,i,o,r){wr.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=N({},n.shape),N(a,e.shape)):(a=N({},(i?this:n).shape),N(a,e.shape)):s&&(a=n.shape),a)if(o){this.shape=N({},this.shape);for(var l={},u=z(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()},Tr.prototype._mergeStates=function(t){for(var e,n=wr.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var o=t[i];o.shape&&(e=e||{},this._mergeStyle(e,o.shape))}return e&&(n.shape=e),n},Tr.prototype._getAnimationStyleProps=function(){return Mr},Tr.prototype.isZeroArea=function(){return!1},Tr.extend=function(n){var i,t,e=(l(o,i=Tr),o.prototype.getDefaultStyle=function(){return C(n.style)},o.prototype.getDefaultShape=function(){return C(n.shape)},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},Tr.SHAPE_CHANGED_BIT=4,Tr.initDefaultProps=((Vd=Tr.prototype).type="path",Vd.strokeContainThreshold=5,Vd.segmentIgnoreThreshold=0,Vd.subPixelOptimize=!1,Vd.autoBatch=!1,void(Vd.__dirty=qi.REDARAW_BIT|oo.STYLE_CHANGED_BIT|Tr.SHAPE_CHANGED_BIT)),Tr);function Tr(t){return wr.call(this,t)||this}var Cr=ar.CMD,Dr=[[],[],[]],Ar=Math.sqrt,kr=Math.atan2;var Lr=Math.sqrt,Pr=Math.sin,Nr=Math.cos,Or=Math.PI;function Rr(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Er(t,e){return(t[0]*e[0]+t[1]*e[1])/(Rr(t)*Rr(e))}function zr(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Er(t,e))}function Br(t,e,n,i,o,r,a,s,l,u,h){var c=l*(Or/180),p=Nr(c)*(t-n)/2+Pr(c)*(e-i)/2,d=-1*Pr(c)*(t-n)/2+Nr(c)*(e-i)/2,l=p*p/(a*a)+d*d/(s*s);1<l&&(a*=Lr(l),s*=Lr(l));l=(o===r?-1:1)*Lr((a*a*(s*s)-a*a*(d*d)-s*s*(p*p))/(a*a*(d*d)+s*s*(p*p)))||0,o=l*a*d/s,l=l*-s*p/a,t=(t+n)/2+Nr(c)*o-Pr(c)*l,n=(e+i)/2+Pr(c)*o+Nr(c)*l,e=zr([1,0],[(p-o)/a,(d-l)/s]),i=[(p-o)/a,(d-l)/s],d=[(-1*p-o)/a,(-1*d-l)/s],l=zr(i,d);Er(i,d)<=-1&&(l=Or),1<=Er(i,d)&&(l=0),l<0&&(d=Math.round(l/Or*1e6)/1e6,l=2*Or+d%2*Or),h.addData(u,t,n,a,s,e,l,c,r)}var Vr=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Fr=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var Gr,Hr=(l(Wr,Gr=Ir),Wr.prototype.applyTransform=function(t){},Wr);function Wr(){return null!==Gr&&Gr.apply(this,arguments)||this}function Xr(t){return null!=t.setData}function Yr(t,e){var n=function(t){if(!t)return new ar;for(var e,n=0,i=0,o=n,r=i,a=new ar,s=ar.CMD,l=t.match(Vr),u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,d=h.match(Fr)||[],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=n,I=i,T=void 0,C=void 0;switch(c){case"l":n+=d[y++],i+=d[y++],p=s.L,a.addData(p,n,i);break;case"L":n=d[y++],i=d[y++],p=s.L,a.addData(p,n,i);break;case"m":n+=d[y++],i+=d[y++],p=s.M,a.addData(p,n,i),o=n,r=i,c="l";break;case"M":n=d[y++],i=d[y++],p=s.M,a.addData(p,n,i),o=n,r=i,c="L";break;case"h":n+=d[y++],p=s.L,a.addData(p,n,i);break;case"H":n=d[y++],p=s.L,a.addData(p,n,i);break;case"v":i+=d[y++],p=s.L,a.addData(p,n,i);break;case"V":i=d[y++],p=s.L,a.addData(p,n,i);break;case"C":p=s.C,a.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),n=d[y-2],i=d[y-1];break;case"c":p=s.C,a.addData(p,d[y++]+n,d[y++]+i,d[y++]+n,d[y++]+i,d[y++]+n,d[y++]+i),n+=d[y-2],i+=d[y-1];break;case"S":m=n,v=i,T=a.len(),C=a.data,e===s.C&&(m+=n-C[T-4],v+=i-C[T-3]),p=s.C,M=d[y++],I=d[y++],n=d[y++],i=d[y++],a.addData(p,m,v,M,I,n,i);break;case"s":m=n,v=i,T=a.len(),C=a.data,e===s.C&&(m+=n-C[T-4],v+=i-C[T-3]),p=s.C,M=n+d[y++],I=i+d[y++],n+=d[y++],i+=d[y++],a.addData(p,m,v,M,I,n,i);break;case"Q":M=d[y++],I=d[y++],n=d[y++],i=d[y++],p=s.Q,a.addData(p,M,I,n,i);break;case"q":M=d[y++]+n,I=d[y++]+i,n+=d[y++],i+=d[y++],p=s.Q,a.addData(p,M,I,n,i);break;case"T":m=n,v=i,T=a.len(),C=a.data,e===s.Q&&(m+=n-C[T-4],v+=i-C[T-3]),n=d[y++],i=d[y++],p=s.Q,a.addData(p,m,v,n,i);break;case"t":m=n,v=i,T=a.len(),C=a.data,e===s.Q&&(m+=n-C[T-4],v+=i-C[T-3]),n+=d[y++],i+=d[y++],p=s.Q,a.addData(p,m,v,n,i);break;case"A":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],Br(M=n,I=i,n=d[y++],i=d[y++],w,S,x,_,b,p=s.A,a);break;case"a":x=d[y++],_=d[y++],b=d[y++],w=d[y++],S=d[y++],Br(M=n,I=i,n+=d[y++],i+=d[y++],w,S,x,_,b,p=s.A,a)}}"z"!==c&&"Z"!==c||(p=s.Z,a.addData(p),n=o,i=r),e=p}return a.toStatic(),a}(t),e=N({},e);return e.buildPath=function(t){var e;Xr(t)?(t.setData(n.data),(e=t.getContext())&&t.rebuildPath(e,1)):(e=t,n.rebuildPath(e,1))},e.applyTransform=function(t){!function(t,e){for(var n,i,o,r=t.data,a=Cr.M,s=Cr.C,l=Cr.L,u=Cr.R,h=Cr.A,c=Cr.Q,p=0,d=0;p<r.length;){switch(v=r[p++],d=p,n=0,v){case a:case l:n=1;break;case s:n=3;break;case c:n=2;break;case h:var f=e[4],g=e[5],y=Ar(e[0]*e[0]+e[1]*e[1]),m=Ar(e[2]*e[2]+e[3]*e[3]),v=kr(-e[1]/m,e[0]/y);r[p]*=y,r[p++]+=f,r[p]*=m,r[p++]+=g,r[p++]*=y,r[p++]*=m,r[p++]+=v,r[p++]+=v,d=p+=2;break;case u:o[0]=r[p++],o[1]=r[p++],Nt(o,o,e),r[d++]=o[0],r[d++]=o[1],o[0]+=r[p++],o[1]+=r[p++],Nt(o,o,e),r[d++]=o[0],r[d++]=o[1]}for(i=0;i<n;i++){var x=Dr[i];x[0]=r[p++],x[1]=r[p++],Nt(x,x,e),r[d++]=x[0],r[d++]=x[1]}}t.increaseVersion()}(n,t),this.dirtyShape()},e}function Ur(t,e){return new Hr(Yr(t,e))}var Zr,qr=(l(jr,Zr=qi),jr.prototype.childrenRef=function(){return this._children},jr.prototype.children=function(){return this._children.slice()},jr.prototype.childAt=function(t){return this._children[t]},jr.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},jr.prototype.childCount=function(){return this._children.length},jr.prototype.add=function(t){if(t&&(t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),t.__hostTarget))throw"This elemenet has been used as an attachment";return this},jr.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},jr.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,(e=this.__zr)&&i.removeSelfFromZr(e),this._doAdd(t)),this},jr.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()},jr.prototype.remove=function(t){var e=this.__zr,n=this._children,i=D(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},jr.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},jr.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},jr.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},jr.prototype.addSelfToZr=function(t){Zr.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++){this._children[e].addSelfToZr(t)}},jr.prototype.removeSelfFromZr=function(t){Zr.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++){this._children[e].removeSelfFromZr(t)}},jr.prototype.getBoundingRect=function(t){for(var e=new Mi(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))?(Mi.applyTransform(e,a,s),(o=o||e.clone()).union(e)):(o=o||a.clone()).union(a))}return o||e},jr);function jr(t){var e=Zr.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}qr.prototype.type="group";var Kr,$r=A({x:0,y:0},to),Jr={style:A({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},eo.style)},Qr=(l(ta,Kr=oo),ta.prototype.createStyle=function(t){return dt($r,t)},ta.prototype._getAnimationStyleProps=function(){return Jr},ta.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Mi(t.x||0,t.y||0,t.width||0,t.height||0)),this._rect},ta);function ta(){return null!==Kr&&Kr.apply(this,arguments)||this}Qr.prototype.type="image";var ea,na=function(){this.cx=0,this.cy=0,this.r=0},ia=(l(oa,ea=Ir),oa.prototype.getDefaultShape=function(){return new na},oa.prototype.buildPath=function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},oa);function oa(t){return ea.call(this,t)||this}ia.prototype.type="circle";var ra=Math.round;function aa(t,e,n){if(e){var 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;return n?(ra(2*i)===ra(2*o)&&(t.x1=t.x2=la(i,n,!0)),ra(2*r)===ra(2*e)&&(t.y1=t.y2=la(r,n,!0)),t):t}}function sa(t,e,n){if(e){var 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;return n?(t.x=la(i,n,!0),t.y=la(o,n,!0),t.width=Math.max(la(i+r,n,!1)-t.x,0===r?0:1),t.height=Math.max(la(o+e,n,!1)-t.y,0===e?0:1),t):t}}function la(t,e,n){if(!e)return t;t=ra(2*t);return(t+ra(e))%2==0?t/2:(t+(n?1:-1))/2}var ua,ha=function(){this.x=0,this.y=0,this.width=0,this.height=0},ca={},pa=(l(da,ua=Ir),da.prototype.getDefaultShape=function(){return new ha},da.prototype.buildPath=function(t,e){var n,i,o,r,a,s,l,u,h,c,p,d,f,g;this.subPixelOptimize?(n=(g=sa(ca,e,this.style)).x,i=g.y,o=g.width,r=g.height,g.r=e.r,e=g):(n=e.x,i=e.y,o=e.width,r=e.height),e.r?(a=t,d=(s=e).x,f=s.y,g=s.width,e=s.height,s=s.r,g<0&&(d+=g,g=-g),e<0&&(f+=e,e=-e),"number"==typeof s?l=u=h=c=s:s instanceof Array?1===s.length?l=u=h=c=s[0]:2===s.length?(l=h=s[0],u=c=s[1]):3===s.length?(l=s[0],u=c=s[1],h=s[2]):(l=s[0],u=s[1],h=s[2],c=s[3]):l=u=h=c=0,g<l+u&&(l*=g/(p=l+u),u*=g/p),g<h+c&&(h*=g/(p=h+c),c*=g/p),e<u+h&&(u*=e/(p=u+h),h*=e/p),e<l+c&&(l*=e/(p=l+c),c*=e/p),a.moveTo(d+l,f),a.lineTo(d+g-u,f),0!==u&&a.arc(d+g-u,f+u,u,-Math.PI/2,0),a.lineTo(d+g,f+e-h),0!==h&&a.arc(d+g-h,f+e-h,h,0,Math.PI/2),a.lineTo(d+c,f+e),0!==c&&a.arc(d+c,f+e-c,c,Math.PI/2,Math.PI),a.lineTo(d,f+l),0!==l&&a.arc(d+l,f+l,l,Math.PI,1.5*Math.PI)):t.rect(n,i,o,r)},da.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},da);function da(t){return ua.call(this,t)||this}pa.prototype.type="rect";var fa,ga=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},ya=(l(ma,fa=Ir),ma.prototype.getDefaultShape=function(){return new ga},ma.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=e.rx,r=e.ry,a=.5522848*o,e=.5522848*r;t.moveTo(n-o,i),t.bezierCurveTo(n-o,i-e,n-a,i-r,n,i-r),t.bezierCurveTo(n+a,i-r,n+o,i-e,n+o,i),t.bezierCurveTo(n+o,i+e,n+a,i+r,n,i+r),t.bezierCurveTo(n-a,i+r,n-o,i+e,n-o,i),t.closePath()},ma);function ma(t){return fa.call(this,t)||this}ya.prototype.type="ellipse";var va,xa={},_a=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},ba=(l(wa,va=Ir),wa.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},wa.prototype.getDefaultShape=function(){return new _a},wa.prototype.buildPath=function(t,e){var n,i,o,r;r=this.subPixelOptimize?(n=(r=aa(xa,e,this.style)).x1,i=r.y1,o=r.x2,r.y2):(n=e.x1,i=e.y1,o=e.x2,e.y2);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))},wa.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},wa);function wa(t){return va.call(this,t)||this}function Sa(t,e,n,i,o,r,a){t=.5*(n-t),i=.5*(i-e);return(2*(e-n)+t+i)*a+(-3*(e-n)-2*t-i)*r+t*o+e}function Ma(t,e,n){var i=e.smooth,o=e.points;if(o&&2<=o.length){if(i&&"spline"!==i){var r=function(t,e,n,i){var o,r,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var p=0,d=t.length;p<d;p++)Ot(a,a,t[p]),Rt(s,s,t[p]);Ot(a,a,i[0]),Rt(s,s,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){l.push(xt(t[p]));continue}o=t[p-1],r=t[p+1]}St(u,r,o),Tt(u,u,e);var g=Dt(f,o),y=Dt(f,r),m=g+y;0!==m&&(g/=m,y/=m),Tt(h,u,-g),Tt(c,u,y);y=bt([],f,h),f=bt([],f,c);i&&(Rt(y,y,a),Ot(y,y,s),Rt(f,f,a),Ot(f,f,s)),l.push(y),l.push(f)}return n&&l.push(l.shift()),l}(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{"spline"===i&&(o=function(t,e){for(var n=t.length,i=[],o=0,r=1;r<n;r++)o+=Dt(t[r-1],t[r]);for(var a=(a=o/2)<n?n:a,r=0;r<a;r++){var s=r/(a-1)*(e?n:n-1),l=Math.floor(s),u=s-l,h=void 0,c=t[l%n],p=void 0,d=void 0,d=e?(h=t[(l-1+n)%n],p=t[(l+1)%n],t[(l+2)%n]):(h=t[0===l?l:l-1],p=t[n-2<l?n-1:l+1],t[n-3<l?n-1:l+2]),s=u*u,l=u*s;i.push([Sa(h[0],c[0],p[0],d[0],u,s,l),Sa(h[1],c[1],p[1],d[1],u,s,l)])}return i}(o,n)),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()}}ba.prototype.type="line";var Ia,Ta=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Ca=(l(Da,Ia=Ir),Da.prototype.getDefaultShape=function(){return new Ta},Da.prototype.buildPath=function(t,e){Ma(t,e,!0)},Da);function Da(t){return Ia.call(this,t)||this}Ca.prototype.type="polygon";var Aa,ka=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},La=(l(Pa,Aa=Ir),Pa.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Pa.prototype.getDefaultShape=function(){return new ka},Pa.prototype.buildPath=function(t,e){Ma(t,e,!1)},Pa);function Pa(t){return Aa.call(this,t)||this}La.prototype.type="polyline";var Na=(Oa.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},Oa);function Oa(t){this.colorStops=t||[]}var Ra,Ea=(l(za,Ra=Na),za);function za(t,e,n,i,o,r){o=Ra.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}var Ba,Va=A({strokeFirst:!0,font:Ai,x:0,y:0,textAlign:"left",textBaseline:"top"},Sr),Fa=(l(Ga,Ba=oo),Ga.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth},Ga.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Ga.prototype.createStyle=function(t){return dt(Va,t)},Ga.prototype.setBoundingRect=function(t){this._rect=t},Ga.prototype.getBoundingRect=function(){var t,e=this.style;return this._rect||(null!=(t=e.text)?t+="":t="",(t=Ni(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},Ga);function Ga(){return null!==Ba&&Ba.apply(this,arguments)||this}Fa.prototype.type="tspan";var Ha,Wa=/[\s,]+/;function Xa(t){H(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var Ya=(Ua.prototype.parse=function(t,e){e=e||{};var n=Xa(t);if(!n)throw new Error("Illegal svg");var i=new qr;this._root=i;var o=n.getAttribute("viewBox")||"",r=parseFloat(n.getAttribute("width")||e.width),t=parseFloat(n.getAttribute("height")||e.height);isNaN(r)&&(r=null),isNaN(t)&&(t=null),$a(n,i,null,!0);for(var a,s,l,u=n.firstChild;u;)this._parseNode(u,i),u=u.nextSibling;return!o||4<=(s=rt(o).split(Wa)).length&&(a={x:parseFloat(s[0]||0),y:parseFloat(s[1]||0),width:parseFloat(s[2]),height:parseFloat(s[3])}),a&&null!=r&&null!=t&&(l=ns(a,r,t),e.ignoreViewBox||(s=i,(i=new qr).add(s),s.scaleX=s.scaleY=l.scale,s.x=l.x,s.y=l.y)),e.ignoreRootClip||null==r||null==t||i.setClipPath(new pa({shape:{x:0,y:0,width:r,height:t}})),{root:i,width:r,height:t,viewBoxRect:a,viewBoxTransform:l}},Ua.prototype._parseNode=function(t,e){var n,i,o,r,a=t.nodeName.toLowerCase();if("defs"===a?this._isDefine=!0:"text"===a&&(this._isText=!0),this._isDefine?(r=Za[a])&&(i=r.call(this,t),(o=t.getAttribute("id"))&&(this._defs[o]=i)):(r=Ha[a])&&(n=r.call(this,t,e),e.add(n)),n)for(var s=t.firstChild;s;)1===s.nodeType&&this._parseNode(s,n),3===s.nodeType&&this._isText&&this._parseText(s,n),s=s.nextSibling;"defs"===a?this._isDefine=!1:"text"===a&&(this._isText=!1)},Ua.prototype._parseText=function(t,e){1===t.nodeType&&(n=t.getAttribute("dx")||0,i=t.getAttribute("dy")||0,this._textX+=parseFloat(n),this._textY+=parseFloat(i));var n=new Fa({style:{text:t.textContent},x:this._textX||0,y:this._textY||0});qa(e,n),$a(t,n,this._defs);var i=n.style,t=i.fontSize;t&&t<9&&(i.fontSize=9,n.scaleX*=t/9,n.scaleY*=t/9);t=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=t;t=n.getBoundingRect();return this._textX+=t.width,e.add(n),n},Ua.internalField=void(Ha={g:function(t,e){var n=new qr;return qa(e,n),$a(t,n,this._defs),n},rect:function(t,e){var n=new pa;return qa(e,n),$a(t,n,this._defs),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},circle:function(t,e){var n=new ia;return qa(e,n),$a(t,n,this._defs),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n},line:function(t,e){var n=new ba;return qa(e,n),$a(t,n,this._defs),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},ellipse:function(t,e){var n=new ya;return qa(e,n),$a(t,n,this._defs),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},polygon:function(t,e){var n=t.getAttribute("points");n&&(i=ja(n));var i=new Ca({shape:{points:i||[]}});return qa(e,i),$a(t,i,this._defs),i},polyline:function(t,e){var n=new Ir;qa(e,n),$a(t,n,this._defs);var i,t=t.getAttribute("points");return t&&(i=ja(t)),new La({shape:{points:i||[]}})},image:function(t,e){var n=new Qr;return qa(e,n),$a(t,n,this._defs),n.setStyle({image:t.getAttribute("xlink:href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),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";this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(r);r=new qr;return qa(e,r),$a(t,r,this._defs),r},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var o=t.getAttribute("dx")||0,n=t.getAttribute("dy")||0,i=new qr;return qa(e,i),$a(t,i,this._defs),this._textX+=o,this._textY+=n,i},path:function(t,e){var n=Ur(t.getAttribute("d")||"");return qa(e,n),$a(t,n,this._defs),n}}),Ua);function Ua(){this._defs={},this._root=null,this._isDefine=!1,this._isText=!1}var Za={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),o=new Ea(e,n,i,o);return function(t,e){var n=t.firstChild;for(;n;){var i,o;1===n.nodeType&&(o=n.getAttribute("offset"),i=void 0,i=0<o.indexOf("%")?parseInt(o,10)/100:o?parseFloat(o):0,o=n.getAttribute("stop-color")||"#000000",e.colorStops.push({offset:i,color:o})),n=n.nextSibling}}(t,o),o}};function qa(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),A(e.__inheritedStyle,t.__inheritedStyle))}function ja(t){for(var e=rt(t).split(Wa),n=[],i=0;i<e.length;i+=2){var o=parseFloat(e[i]),r=parseFloat(e[i+1]);n.push([o,r])}return n}var Ka={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-align":"textAlign","alignment-baseline":"textBaseline"};function $a(t,e,n,i){var o,r=e,a=r.__inheritedStyle||{};if(1===t.nodeType&&(function(t,e){t=t.getAttribute("transform");if(t){t=t.replace(/,/g," ");var i=[],n=null;t.replace(ts,function(t,e,n){return i.push(e,n),""});for(var o=i.length-1;0<o;o-=2){var r=i[o],a=i[o-1],s=void 0;switch(n=n||Kn(),a){case"translate":s=rt(r).split(Wa),ti(n,n,[parseFloat(s[0]),parseFloat(s[1]||"0")]);break;case"scale":s=rt(r).split(Wa),ni(n,n,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":s=rt(r).split(Wa),ei(n,n,parseFloat(s[0]));break;case"skew":s=rt(r).split(Wa),console.warn("Skew transform is not supported yet");break;case"matrix":s=rt(r).split(Wa),n[0]=parseFloat(s[0]),n[1]=parseFloat(s[1]),n[2]=parseFloat(s[2]),n[3]=parseFloat(s[3]),n[4]=parseFloat(s[4]),n[5]=parseFloat(s[5])}}e.setLocalTransform(n)}}(t,e),N(a,function(t){var e=t.getAttribute("style"),n={};if(!e)return n;var i,o,r={};es.lastIndex=0;for(;null!=(i=es.exec(e));)r[i[1]]=i[2];for(o in Ka)Ka.hasOwnProperty(o)&&null!=r[o]&&(n[Ka[o]]=r[o]);return n}(t)),!i))for(var s in Ka){!Ka.hasOwnProperty(s)||null!=(o=t.getAttribute(s))&&(a[Ka[s]]=o)}r.style=r.style||{},null!=a.fill&&(r.style.fill=Qa(a.fill,n)),null!=a.stroke&&(r.style.stroke=Qa(a.stroke,n)),R(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(t){null!=a[t]&&(r.style[t]=parseFloat(a[t]))}),a.textBaseline&&"auto"!==a.textBaseline||(a.textBaseline="alphabetic"),"alphabetic"===a.textBaseline&&(a.textBaseline="bottom"),"start"===a.textAlign&&(a.textAlign="left"),"end"===a.textAlign&&(a.textAlign="right"),R(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(t){null!=a[t]&&(r.style[t]=a[t])}),a.lineDash&&(r.style.lineDash=L(rt(a.lineDash).split(Wa),function(t){return parseFloat(t)})),r.__inheritedStyle=a}var Ja=/url\(\s*#(.*?)\)/;function Qa(t,e){var n=e&&t&&t.match(Ja);return n?e[rt(n[1])]:t}var ts=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;var es=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ns(t,e,n){var i=e/t.width,o=n/t.height,o=Math.min(i,o);return{scale:o,x:-(t.x+t.width/2)*o+e/2,y:-(t.y+t.height/2)*o+n/2}}var is=ar.CMD;function os(t,e){return Math.abs(t-e)<1e-5}function rs(t){var o,e=t.data,n=[],i=0,r=0,a=0,s=0;function l(t,e){o&&2<o.length&&n.push(o),o=[t,e]}function u(t,e,n,i){os(t,n)&&os(e,i)||o.push(t,e,n,i,n,i)}for(var h,c,p,d,f,g,y,m,v,x,_,b,w=0;w<e.length;){var S=e[w++],M=1===w;switch(M&&(a=i=e[w],s=r=e[w+1],S!==is.L&&S!==is.C&&S!==is.Q||(o=[a,s])),S){case is.M:i=a=e[w++],r=s=e[w++],l(a,s);break;case is.L:u(i,r,P=e[w++],N=e[w++]),i=P,r=N;break;case is.C:o.push(e[w++],e[w++],e[w++],e[w++],i=e[w++],r=e[w++]);break;case is.Q:P=e[w++],N=e[w++],S=e[w++],A=e[w++],o.push(i+2/3*(P-i),r+2/3*(N-r),S+2/3*(P-S),A+2/3*(N-A),S,A),i=S,r=A;break;case is.A:var I=e[w++],T=e[w++],C=e[w++],D=e[w++],A=e[w++],k=e[w++]+A;w+=1;var L=!e[w++],P=Math.cos(A)*C+I,N=Math.sin(A)*D+T;M?l(a=P,s=N):u(i,r,P,N),i=Math.cos(k)*C+I,r=Math.sin(k)*D+T;for(var O=(L?-1:1)*Math.PI/2,R=A;L?k<R:R<k;R+=O){var E=L?Math.max(R+O,k):Math.min(R+O,k);h=R,c=E,p=I,d=T,f=C,g=D,v=y=b=_=x=v=m=y=void 0,y=Math.abs(c-h),m=4*Math.tan(y/4)/3,v=c<h?-1:1,x=Math.cos(h),_=Math.sin(h),b=Math.cos(c),y=Math.sin(c),h=x*f+p,c=_*g+d,p=b*f+p,d=y*g+d,f=f*m*v,v*=g*m,o.push(h-f*_,c+v*x,p+f*y,d-v*b,p,d)}break;case is.R:a=i=e[w++],s=r=e[w++],P=a+e[w++],N=s+e[w++],l(P,s),u(P,s,P,N),u(P,N,a,N),u(a,N,a,s),u(a,s,P,s);break;case is.Z:o&&u(i,r,a,s),i=a,r=s}}return o&&2<o.length&&n.push(o),n}function as(t,e){for(var n=t.length,i=t[n-2],o=t[n-1],r=[],a=0;a<e.length;)r[a++]=i,r[a++]=o;return r}function ss(t,e){for(var n,i,o=[],r=[],a=0;a<Math.max(t.length,e.length);a++){var s=t[a],l=e[a],u=void 0,h=void 0;s?l?(n=u=(i=function(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var o=n<i?t:e,r=Math.min(n,i),i=Math.abs(i-n)/6,n=(r-2)/6,a=Math.ceil(i/n)+1,s=[o[0],o[1]],l=i,u=[],h=[],c=2;c<r;){var p=o[c-2],d=o[c-1],f=o[c++],g=o[c++],y=o[c++],m=o[c++],v=o[c++],x=o[c++];if(l<=0)s.push(f,g,y,m,v,x);else{for(var _=Math.min(l,a-1)+1,b=1;b<=_;b++){var w=b/_;wo(p,f,y,v,w,u),wo(d,g,m,x,w,h),p=u[3],d=h[3],s.push(u[1],h[1],u[2],h[2],p,d),f=u[5],g=h[5],y=u[6],m=h[6]}l-=_-1}}return o===t?[s,e]:[t,s]}(s,l))[0],i=h=i[1]):(h=as(i||s,s),u=s):(u=as(n||l,l),h=l),o.push(u),r.push(h)}return[o,r]}function ls(t){for(var e=0,n=0,i=0,o=t.length,r=0,a=o-2;r<o;a=r,r+=2){var s=t[a],l=t[a+1],u=t[r],h=t[r+1],c=s*h-u*l;e+=c,n+=(s+u)*c,i+=(l+h)*c}return 0===e?[t[0]||0,t[1]||0]:[n/e/3,i/e/3,e]}function us(t,e,n,i){for(var o,r=[],a=0;a<t.length;a++){var s=t[a],l=e[a],u=ls(s),h=ls(l);null==o&&(o=u[2]<0!=h[2]<0);var c=[],p=[],d=0,f=1/0,g=[],y=s.length;o&&(s=function(t){for(var e=[],n=t.length,i=0;i<n;i+=2)e[i]=t[n-i-2],e[i+1]=t[n-i-1];return e}(s));for(var m=6*function(t,e,n,i){for(var o=(t.length-2)/6,r=1/0,a=0,s=t.length,l=s-2,u=0;u<o;u++){for(var h=6*u,c=0,p=0;p<s;p+=2){var d=0===p?h:(h+p-2)%l+2,f=t[d]-n[0],d=t[1+d]-n[1],f=e[p]-i[0]-f,d=e[p+1]-i[1]-d;c+=f*f+d*d}c<r&&(r=c,a=u)}return a}(s,l,u,h),v=y-2,x=0;x<v;x+=2){var _=(m+x)%v+2;c[x+2]=s[_]-u[0],c[x+3]=s[1+_]-u[1]}if(c[0]=s[m]-u[0],c[1]=s[1+m]-u[1],0<n)for(var b=i/n,w=-i/2;w<=i/2;w+=b){for(var S=Math.sin(w),M=Math.cos(w),I=0,x=0;x<s.length;x+=2){var T=c[x],C=c[x+1],D=l[x]-h[0],A=l[x+1]-h[1],k=D*M-A*S,A=D*S+A*M,T=(g[x]=k)-T,C=(g[x+1]=A)-C;I+=T*T+C*C}if(I<f){f=I,d=w;for(var L=0;L<g.length;L++)p[L]=g[L]}}else for(var P=0;P<y;P+=2)p[P]=l[P]-h[0],p[P+1]=l[P+1]-h[1];r.push({from:c,to:p,fromCp:u,toCp:h,rotation:-d})}return r}var hs,cs=(l(ps,hs=Ir),ps.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()},ps.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)},ps.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},ps.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},ps.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Ir.prototype.getBoundingRect.call(this)},ps);function ps(){var t=null!==hs&&hs.apply(this,arguments)||this;return t.type="compound",t}var ds,fs=[],gs=(l(ys,ds=oo),ys.prototype.traverse=function(t,e){t.call(e,this)},ys.prototype.useStyle=function(){this.style={}},ys.prototype.getCursor=function(){return this._cursor},ys.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},ys.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},ys.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},ys.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},ys.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},ys.prototype.getDisplayables=function(){return this._displayables},ys.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},ys.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])},ys.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){(e=this._displayables[t]).parent=this,e.update(),e.parent=null}for(var e,t=0;t<this._temporaryDisplayables.length;t++){(e=this._temporaryDisplayables[t]).parent=this,e.update(),e.parent=null}},ys.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new Mi(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var n=this._displayables[e],i=n.getBoundingRect().clone();n.needLocalTransform()&&i.applyTransform(n.getLocalTransform(fs)),t.union(i)}this._rect=t}return this._rect},ys.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},ys);function ys(){var t=null!==ds&&ds.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}var ms=new Fe(50);function vs(t,e,n,i,o){if(t){if("string"!=typeof t)return t;if(e&&e.__zrImageSrc===t||!n)return e;var r=ms.get(t),o={hostEl:n,cb:i,cbPayload:o};return r?_s(e=r.image)||r.pending.push(o):((e=new Image).onload=e.onerror=xs,ms.put(t,e.__cachedImgObj={image:e,pending:[o]}),e.src=e.__zrImageSrc=t),e}return e}function xs(){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 _s(t){return t&&t.width&&t.height}var bs=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ws(t,e,n,i,o){if(!e)return"";var r=(t+"").split("\n");o=Ss(e,n,i,o);for(var a=0,s=r.length;a<s;a++)r[a]=Ms(r[a],o);return r.join("\n")}function Ss(t,e,n,i){var o=N({},i=i||{});o.font=e,n=tt(n,"..."),o.maxIterations=tt(i.maxIterations,2);var r=o.minChar=tt(i.minChar,0);o.cnCharWidth=Li("国",e);var a=o.ascCharWidth=Li("a",e);o.placeholder=tt(i.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<r&&a<=s;l++)s-=a;e=Li(n,e);return s<e&&(n="",e=0),s=t-e,o.ellipsis=n,o.ellipsisWidth=e,o.contentWidth=s,o.containerWidth=t,o}function Ms(t,e){var n=e.containerWidth,i=e.font,o=e.contentWidth;if(!n)return"";if((s=Li(t,i))<=n)return t;for(var r=0;;r++){if(s<=o||r>=e.maxIterations){t+=e.ellipsis;break}var a=0===r?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<s?Math.floor(t.length*o/s):0,s=Li(t=t.substr(0,a),i)}return""===t&&(t=e.placeholder),t}var Is=function(){},Ts=function(t){this.tokens=[],t&&(this.tokens=t)},Cs=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]};function Ds(t,e){var n=new Cs;if(null!=t&&(t+=""),!t)return n;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=bs.lastIndex=0;null!=(i=bs.exec(t));){var u=i.index;l<u&&As(n,t.substring(l,u),e,s),As(n,i[2],e,s,i[1]),l=bs.lastIndex}l<t.length&&As(n,t.substring(l,t.length),e,s);var h=[],c=0,p=0,d=e.padding,f="truncate"===a,g="truncate"===e.lineOverflow;t:for(var y=0;y<n.lines.length;y++){for(var m=n.lines[y],v=0,x=0,_=0;_<m.tokens.length;_++){var b=(D=m.tokens[_]).styleName&&e.rich[D.styleName]||{},w=D.textPadding=b.padding,S=w?w[1]+w[3]:0,M=D.font=b.font||e.font;D.contentHeight=Ei(M);var I=tt(b.height,D.contentHeight);if(D.innerHeight=I,w&&(I+=w[0]+w[2]),D.height=I,D.lineHeight=et(b.lineHeight,e.lineHeight,I),D.align=b&&b.align||e.align,D.verticalAlign=b&&b.verticalAlign||"middle",g&&null!=r&&c+D.lineHeight>r){0<_?(m.tokens=m.tokens.slice(0,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break t}var T,C=b.width,w=null==C||"auto"===C;"string"==typeof C&&"%"===C.charAt(C.length-1)?(D.percentWidth=C,h.push(D),D.contentWidth=Li(D.text,M)):(!w||(T=(C=b.backgroundColor)&&C.image)&&_s(T="string"!=typeof(C=T)?C:(C=ms.get(C))&&C.image)&&(D.width=Math.max(D.width,T.width*I/T.height)),null!=(T=f&&null!=o?o-x:null)&&T<D.width?!w||T<S?(D.text="",D.width=D.contentWidth=0):(D.text=ws(D.text,T-S,M,e.ellipsis,{minChar:e.truncateMinChar}),D.width=D.contentWidth=Li(D.text,M)):D.contentWidth=Li(D.text,M)),D.width+=S,x+=D.width,b&&(v=Math.max(v,D.lineHeight))}m.width=x,c+=m.lineHeight=v,p=Math.max(p,x)}n.outerWidth=n.width=tt(o,p),n.outerHeight=n.height=tt(r,c),n.contentHeight=c,n.contentWidth=p,d&&(n.outerWidth+=d[1]+d[3],n.outerHeight+=d[0]+d[2]);for(y=0;y<h.length;y++){var D,A=(D=h[y]).percentWidth;D.width=parseInt(A,10)/100*n.width}return n}function As(t,e,n,i,o){var r,a,s,l=""===e,u=o&&n.rich[o]||{},h=t.lines,c=u.font||n.font,p=!1;i?(n=(n=u.padding)?n[1]+n[3]:0,null!=u.width&&"auto"!==u.width?(s=function(t,e){if("string"!=typeof t)return t;if(0<=t.lastIndexOf("%"))return parseFloat(t)/100*e;return parseFloat(t)}(u.width,i.width)+n,0<h.length&&s+i.accumWidth>i.width&&(r=e.split("\n"),p=!0),i.accumWidth=s):(s=Ls(e,c,i.width,i.breakAll,i.accumWidth),i.accumWidth=s.accumWidth+n,a=s.linesWidths,r=s.lines)):r=e.split("\n");for(var d=0;d<r.length;d++){var f,g,y=r[d],m=new Is;m.styleName=o,m.text=y,m.isLineHolder=!y&&!l,m.width="number"==typeof u.width?u.width:a?a[d]:Li(y,c),d||p?h.push(new Ts([m])):1===(g=(f=(h[h.length-1]||(h[0]=new Ts)).tokens).length)&&f[0].isLineHolder?f[0]=m:!y&&g&&!l||f.push(m)}}var ks=P(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Ls(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=Li(g,e),f=!i&&(r=void 0,!(!(33<=(r=(r=f=g).charCodeAt(0))&&r<=255)||!!ks[f])),(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,c+=h,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 Ps,Ns={fill:"#000"},Os={style:A({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},eo.style)},Rs=(l(Es,Ps=oo),Es.prototype.childrenRef=function(){return this._children},Es.prototype.update=function(){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}var n=this.attachedTransform;n?(n.updateTransform(),(n=n.transform)?(this.transform=this.transform||[],Jn(this.transform,n)):this.transform=null):Ps.prototype.update.call(this)},Es.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),this.attachedTransform?this.attachedTransform.getComputedTransform():Ps.prototype.getComputedTransform.call(this)},Es.prototype._updateSubTexts=function(){var t;this._childCursor=0,Vs(t=this.style),R(t.rich,Vs),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},Es.prototype.addSelfToZr=function(t){Ps.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},Es.prototype.removeSelfFromZr=function(t){Ps.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},Es.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new Mi(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},Es.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||Ns},Es.prototype.setTextContent=function(t){throw new Error("Can't attach text on another text")},Es.prototype._mergeStyle=function(t,e){if(!e)return t;var n=e.rich,i=t.rich||n&&{};return N(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i),t},Es.prototype._mergeRich=function(t,e){for(var n=z(e),i=0;i<n.length;i++){var o=n[i];t[o]=t[o]||{},N(t[o],e[o])}},Es.prototype._getAnimationStyleProps=function(){return Os},Es.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},Es.prototype._updatePlainTexts=function(){var t,e,n=this.style,i=n.font||Ai,o=n.padding,r=function(t,e){null!=t&&(t+="");var n,i=e.overflow,o=e.padding,r=e.font,a="truncate"===i,s=Ei(r),l=tt(e.lineHeight,s),u="truncate"===e.lineOverflow,h=e.width,c=(n=null!=h&&"break"===i||"breakAll"===i?t?Ls(t,e.font,h,"breakAll"===i,0).lines:[]:t?t.split("\n"):[]).length*l;(i=tt(e.height,c))<c&&u&&(p=Math.floor(i/l),n=n.slice(0,p));var u=i,p=h;if(o&&(u+=o[0]+o[2],null!=p&&(p+=o[1]+o[3])),t&&a&&null!=p)for(var d=Ss(h,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),f=0;f<n.length;f++)n[f]=Ms(n[f],d);if(null==h){for(var g=0,f=0;f<n.length;f++)g=Math.max(Li(n[f],r),g);h=g}return{lines:n,height:i,outerHeight:u,lineHeight:l,calculatedLineHeight:s,contentHeight:c,width:h}}(Hs(n),n),a=Ws(n),s=!!n.backgroundColor,l=r.outerHeight,u=r.lines,h=r.lineHeight,c=this._defaultStyle,p=n.x||0,d=n.y||0,f=n.align||c.align||"left",g=n.verticalAlign||c.verticalAlign||"top",y=p,m=Ri(d,r.contentHeight,g);(a||o)&&(t=r.width,o&&(t+=o[1]+o[3]),e=Oi(p,t,f),d=Ri(d,l,g),a&&this._renderBackground(n,n,e,d,t,l)),m+=h/2,o&&(y=Gs(p,f,o),"top"===g?m+=o[0]:"bottom"===g&&(m-=o[2]));for(var v=0,g=!1,x=(null==(o="fill"in n?n.fill:(g=!0,c.fill))||"none"===o?null:o.image||o.colorStops?"#000":o),_=(Fs("stroke"in n?n.stroke:s||c.autoStroke&&!g?null:(v=2,c.stroke))),b=0<n.textShadowBlur,w=null!=n.width&&("truncate"===n.overflow||"break"===n.overflow||"breakAll"===n.overflow),S=r.calculatedLineHeight,M=0;M<u.length;M++){var I=this._getOrCreateChild(Fa),T=I.createStyle();I.useStyle(T),T.text=u[M],T.x=y,T.y=m,f&&(T.textAlign=f),T.textBaseline="middle",T.opacity=n.opacity,T.strokeFirst=!0,b&&(T.shadowBlur=n.textShadowBlur||0,T.shadowColor=n.textShadowColor||"transparent",T.shadowOffsetX=n.textShadowOffsetX||0,T.shadowOffsetY=n.textShadowOffsetY||0),_&&(T.stroke=_,T.lineWidth=n.lineWidth||v,T.lineDash=n.lineDash,T.lineDashOffset=n.lineDashOffset||0),x&&(T.fill=x),T.font=i,m+=h,w&&I.setBoundingRect(new Mi(Oi(T.x,n.width,T.textAlign),Ri(T.y,S,T.textBaseline),n.width,S))}},Es.prototype._updateRichTexts=function(){var t=this.style,e=Ds(Hs(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,u=Oi(a,i,u),l=Ri(s,o,l),h=u,c=l;r&&(h+=r[3],c+=r[0]);var p=h+n;Ws(t)&&this._renderBackground(t,t,u,l,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}},Es.prototype._placeToken=function(t,e,n,i,o,r,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Ws(s)&&this._renderBackground(s,e,"right"===r?o-t.width:"center"===r?o-t.width/2:o,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,c=t.textPadding;c&&(o=Gs(o,r,c),u-=t.height/2-c[0]-t.innerHeight/2);var p=this._getOrCreateChild(Fa),d=p.createStyle();p.useStyle(d);l=this._defaultStyle,i=!1,n=0,c=Fs("fill"in s?s.fill:"fill"in e?e.fill:(i=!0,l.fill)),i=Fs("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||l.autoStroke&&!i?null:(n=2,l.stroke)),l=0<s.textShadowBlur||0<e.textShadowBlur;d.text=t.text,d.x=o,d.y=u,l&&(d.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,d.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",d.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,d.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),d.textAlign=r,d.textBaseline="middle",d.font=t.font||Ai,d.opacity=et(s.opacity,e.opacity,1),i&&(d.lineWidth=et(s.lineWidth,e.lineWidth,n),d.lineDash=tt(s.lineDash,e.lineDash),d.lineDashOffset=e.lineDashOffset||0,d.stroke=i),c&&(d.fill=c);c=t.contentWidth,t=t.contentHeight;p.setBoundingRect(new Mi(Oi(d.x,c,d.textAlign),Ri(d.y,t,d.textBaseline),c,t))},Es.prototype._renderBackground=function(t,e,n,i,o,r){var a,s,l,u=t.backgroundColor,h=t.borderWidth,c=t.borderColor,p=H(u),d=t.borderRadius,f=this;(p||h&&c)&&((a=this._getOrCreateChild(pa)).useStyle(a.createStyle()),a.style.fill=null,(s=a.shape).x=n,s.y=i,s.width=o,s.height=r,s.r=d,a.dirtyShape()),p?((l=a.style).fill=u||null,l.fillOpacity=tt(t.fillOpacity,1)):u&&u.image&&((g=this._getOrCreateChild(Qr)).onload=function(){f.dirtyStyle()},(p=g.style).image=u.image,p.x=n,p.y=i,p.width=o,p.height=r),h&&c&&((l=a.style).lineWidth=h,l.stroke=c,l.strokeOpacity=tt(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));var g=(a||g).style;g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||"transparent",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=et(t.opacity,e.opacity,1)},Es.makeFont=function(t){var e,n="";return(t.fontSize||t.fontFamily||t.fontWeight)&&(e="",e="string"!=typeof t.fontSize||-1===t.fontSize.indexOf("px")&&-1===t.fontSize.indexOf("rem")&&-1===t.fontSize.indexOf("em")?isNaN(+t.fontSize)?"12px":t.fontSize+"px":t.fontSize,n=[t.fontStyle,t.fontWeight,e,t.fontFamily||"sans-serif"].join(" ")),n&&rt(n)||t.textFont||t.font},Es);function Es(t){var e=Ps.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=Ns,e.attr(t),e}var zs={left:!0,right:1,center:1},Bs={top:1,bottom:1,middle:1};function Vs(t){var e;t&&(t.font=Rs.makeFont(t),"middle"===(e=t.align)&&(e="center"),t.align=null==e||zs[e]?e:"left","center"===(e=t.verticalAlign)&&(e="middle"),t.verticalAlign=null==e||Bs[e]?e:"top",t.padding&&(t.padding=it(t.padding)))}function Fs(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Gs(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Hs(t){t=t.text;return null!=t&&(t+=""),t}function Ws(t){return!!(t.backgroundColor||t.borderWidth&&t.borderColor)}var Xs,Ys=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Us=(l(Zs,Xs=Ir),Zs.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Zs.prototype.getDefaultShape=function(){return new Ys},Zs.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=Math.max(e.r,0),r=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(r),e=Math.sin(r);t.moveTo(l*o+n,e*o+i),t.arc(n,i,o,r,a,!s)},Zs);function Zs(t){return Xs.call(this,t)||this}Us.prototype.type="arc";var qs=[],js=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Ks(t,e,n){var i=t.cpx2,o=t.cpy2;return null===i||null===o?[(n?xo:vo)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?xo:vo)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?Io:Mo)(t.x1,t.cpx1,t.x2,e),(n?Io:Mo)(t.y1,t.cpy1,t.y2,e)]}var $s,Js=(l(Qs,$s=Ir),Qs.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Qs.prototype.getDefaultShape=function(){return new js},Qs.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&&(Co(n,a,o,e,qs),a=qs[1],o=qs[2],Co(i,s,r,e,qs),s=qs[1],r=qs[2]),t.quadraticCurveTo(a,s,o,r)):(e<1&&(wo(n,a,l,o,e,qs),a=qs[1],l=qs[2],o=qs[3],wo(i,s,u,r,e,qs),s=qs[1],u=qs[2],r=qs[3]),t.bezierCurveTo(a,s,l,u,o,r)))},Qs.prototype.pointAt=function(t){return Ks(this.shape,t,!1)},Qs.prototype.tangentAt=function(t){t=Ks(this.shape,t,!0);return Ct(t,t)},Qs);function Qs(t){return $s.call(this,t)||this}Js.prototype.type="bezier-curve";var tl,el=function(){this.cx=0,this.cy=0,this.width=0,this.height=0};function nl(t){return tl.call(this,t)||this}(l(nl,tl=Ir),nl.prototype.getDefaultShape=function(){return new el},nl.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=e.width,e=e.height;t.moveTo(n,i+o),t.bezierCurveTo(n+o,i+o,n+3*o/2,i-o/3,n,i-e),t.bezierCurveTo(n-3*o/2,i-o/3,n-o,i+o,n,i+o),t.closePath()},nl).prototype.type="droplet";var il,ol=function(){this.cx=0,this.cy=0,this.width=0,this.height=0};function rl(t){return il.call(this,t)||this}(l(rl,il=Ir),rl.prototype.getDefaultShape=function(){return new ol},rl.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,o=e.width,e=e.height;t.moveTo(n,i),t.bezierCurveTo(n+o/2,i-2*e/3,n+2*o,i+e/3,n,i+e),t.bezierCurveTo(n-2*o,i+e/3,n-o/2,i-2*e/3,n,i)},rl).prototype.type="heart";var al,sl=Math.PI,ll=Math.sin,ul=Math.cos,hl=function(){this.x=0,this.y=0,this.r=0,this.n=0};function cl(t){return al.call(this,t)||this}(l(cl,al=Ir),cl.prototype.getDefaultShape=function(){return new hl},cl.prototype.buildPath=function(t,e){var n=e.n;if(n&&!(n<2)){var i=e.x,o=e.y,r=e.r,a=2*sl/n,s=-sl/2;t.moveTo(i+r*ul(s),o+r*ll(s));for(var l=0,u=n-1;l<u;l++)s+=a,t.lineTo(i+r*ul(s),o+r*ll(s));t.closePath()}},cl).prototype.type="isogon";var pl,dl=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},fl=(l(gl,pl=Ir),gl.prototype.getDefaultShape=function(){return new dl},gl.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)},gl);function gl(t){return pl.call(this,t)||this}fl.prototype.type="ring";var yl,ml=Math.sin,vl=Math.cos,xl=Math.PI/180,_l=function(){this.cx=0,this.cy=0,this.r=[],this.k=0,this.n=1};function bl(t){return yl.call(this,t)||this}(l(bl,yl=Ir),bl.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},bl.prototype.getDefaultShape=function(){return new _l},bl.prototype.buildPath=function(t,e){var n,i,o,r=e.r,a=e.k,s=e.n,l=e.cx,u=e.cy;t.moveTo(l,u);for(var h=0,c=r.length;h<c;h++){o=r[h];for(var p=0;p<=360*s;p++)n=o*ml(a/s*p%360*xl)*vl(p*xl)+l,i=o*ml(a/s*p%360*xl)*ml(p*xl)+u,t.lineTo(n,i)}},bl).prototype.type="rose";var wl=Math.PI,Sl=2*wl,Ml=Math.sin,Il=Math.cos,Tl=Math.acos,Cl=Math.atan2,Dl=Math.abs,Al=Math.sqrt,kl=Math.max,Ll=Math.min,Pl=1e-4;function Nl(t,e,n,i,o,r,a){var s=t-n,l=e-i,u=(a?r:-r)/Al(s*s+l*l),h=u*l,c=-u*s,p=t+h,d=e+c,a=n+h,l=i+c,u=(p+a)/2,s=(d+l)/2,t=a-p,e=l-d,n=t*t+e*e,i=o-r,r=p*l-a*d,p=(e<0?-1:1)*Al(kl(0,i*i*n-r*r)),l=(r*e-t*p)/n,a=(-r*t-e*p)/n,d=(r*e+t*p)/n,e=(-r*t+e*p)/n,p=l-u,n=a-s,u=d-u,s=e-s;return u*u+s*s<p*p+n*n&&(l=d,a=e),{cx:l,cy:a,x01:-h,y01:-c,x11:l*(o/i-1),y11:a*(o/i-1)}}function Ol(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=kl(e.r,0),T=kl(e.r0||0,0),C=0<I;(C||0<T)&&(C||(I=T,T=0),I<T&&(w=I,I=T,T=w),n=e.cx,i=e.cy,o=!!e.clockwise,r=e.startAngle,a=e.endAngle,g=e.cornerRadius||0,m=e.innerCornerRadius||0,rr(f=[r,a],!o),s=Dl(f[0]-f[1]),Pl<I?Sl-Pl<s?(t.moveTo(n+I*Il(r),i+I*Ml(r)),t.arc(n,i,I,r,a,!o),Pl<T&&(t.moveTo(n+T*Il(a),i+T*Ml(a)),t.arc(n,i,T,a,r,o))):(y=Dl(I-T)/2,l=Ll(y,g),v=u=Ll(y,m),x=l,h=I*Il(r),c=I*Ml(r),p=T*Il(a),d=T*Ml(a),w=C=b=_=void 0,(Pl<l||Pl<u)&&(_=I*Il(a),b=I*Ml(a),C=T*Il(r),w=T*Ml(r),s<wl&&((e=function(t,e,n,i,o,r,a,s){var l=n-t,n=i-e,i=a-o;if(!((s=(a=s-r)*l-i*n)*s<Pl))return[t+(s=(i*(e-r)-a*(t-o))/s)*l,e+s*n]}(h,c,C,w,_,b,p,d))&&(f=h-e[0],g=c-e[1],y=_-e[0],m=b-e[1],m=1/Ml(Tl((f*y+g*m)/(Al(f*f+g*g)*Al(y*y+m*m)))/2),e=Al(e[0]*e[0]+e[1]*e[1]),v=Ll(u,(T-e)/(m-1)),x=Ll(l,(I-e)/(1+m))))),Pl<s?Pl<x?(S=Nl(C,w,h,c,I,x,o),M=Nl(_,b,p,d,I,x,o),t.moveTo(n+S.cx+S.x01,i+S.cy+S.y01),x<l?t.arc(n+S.cx,i+S.cy,x,Cl(S.y01,S.x01),Cl(M.y01,M.x01),!o):(t.arc(n+S.cx,i+S.cy,x,Cl(S.y01,S.x01),Cl(S.y11,S.x11),!o),t.arc(n,i,I,Cl(S.cy+S.y11,S.cx+S.x11),Cl(M.cy+M.y11,M.cx+M.x11),!o),t.arc(n+M.cx,i+M.cy,x,Cl(M.y11,M.x11),Cl(M.y01,M.x01),!o))):(t.moveTo(n+h,i+c),t.arc(n,i,I,r,a,!o)):t.moveTo(n+h,i+c),Pl<T?Pl<v?(S=Nl(p,d,_,b,T,-v,o),M=Nl(h,c,C,w,T,-v,o),t.lineTo(n+S.cx+S.x01,i+S.cy+S.y01),v<u?t.arc(n+S.cx,i+S.cy,v,Cl(S.y01,S.x01),Cl(M.y01,M.x01),!o):(t.arc(n+S.cx,i+S.cy,v,Cl(S.y01,S.x01),Cl(S.y11,S.x11),!o),t.arc(n,i,T,Cl(S.cy+S.y11,S.cx+S.x11),Cl(M.cy+M.y11,M.cx+M.x11),o),t.arc(n+M.cx,i+M.cy,v,Cl(M.y11,M.x11),Cl(M.y01,M.x01),!o))):(t.lineTo(n+p,i+d),t.arc(n,i,T,a,r,o)):t.lineTo(n+p,i+d)):t.moveTo(n,i),t.closePath())}var Rl,El=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0},zl=(l(Bl,Rl=Ir),Bl.prototype.getDefaultShape=function(){return new El},Bl.prototype.buildPath=function(t,e){Ol(t,e)},Bl.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},Bl);function Bl(t){return Rl.call(this,t)||this}zl.prototype.type="sector";var Vl,Fl=Math.PI,Gl=Math.cos,Hl=Math.sin,Wl=function(){this.cx=0,this.cy=0,this.n=3,this.r=0};function Xl(t){return Vl.call(this,t)||this}(l(Xl,Vl=Ir),Xl.prototype.getDefaultShape=function(){return new Wl},Xl.prototype.buildPath=function(t,e){var n=e.n;if(n&&!(n<2)){var i=e.cx,o=e.cy,r=e.r,a=e.r0;null==a&&(a=4<n?r*Gl(2*Fl/n)/Gl(Fl/n):r/3);var s=Fl/n,l=-Fl/2,u=i+r*Gl(l),e=o+r*Hl(l);l+=s,t.moveTo(u,e);for(var h,c=0,p=2*n-1;c<p;c++)h=c%2==0?a:r,t.lineTo(i+h*Gl(l),o+h*Hl(l)),l+=s;t.closePath()}},Xl).prototype.type="star";var Yl,Ul=Math.cos,Zl=Math.sin,ql=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0,this.d=0,this.location="out"};function jl(t){return Yl.call(this,t)||this}(l(jl,Yl=Ir),jl.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},jl.prototype.getDefaultShape=function(){return new ql},jl.prototype.buildPath=function(t,e){var n,i=e.r,o=e.r0,r=e.d,a=e.cx,s=e.cy,l="out"===e.location?1:-1;if(!(e.location&&i<=o)){var u,h=0,c=1,p=(i+l*o)*Ul(0)-l*r*Ul(0)+a,e=(i+l*o)*Zl(0)-r*Zl(0)+s;for(t.moveTo(p,e);o*++h%(i+l*o)!=0;);for(;u=Math.PI/180*c,n=(i+l*o)*Ul(u)-l*r*Ul((i/o+l)*u)+a,u=(i+l*o)*Zl(u)-r*Zl((i/o+l)*u)+s,t.lineTo(n,u),++c<=o*h/(i+l*o)*360;);}},jl).prototype.type="trochoid";var Kl,$l=(l(Jl,Kl=Na),Jl);function Jl(t,e,n,i,o){i=Kl.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 Ql=[0,0],tu=[0,0],eu=new fi,nu=new fi,iu=(ou.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);fi.sub(i[0],n[1],n[0]),fi.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(s=0;s<2;s++)this._origin[s]=i[s].dot(n[0])},ou.prototype.intersect=function(t,e){var n=!0,i=!e;return eu.set(1/0,1/0),nu.set(0,0),!this._intersectCheckOneSide(this,t,eu,nu,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,eu,nu,i,-1)&&(n=!1,i)||i||fi.copy(e,n?eu:nu),n},ou.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,Ql),this._getProjMinMaxOnAxis(s,e._corners,tu),Ql[1]<tu[0]||tu[1]<Ql[0]){if(a=!1,o)return a;var u=Math.abs(tu[0]-Ql[1]),h=Math.abs(Ql[0]-tu[1]);Math.min(u,h)>i.len()&&(u<h?fi.scale(i,l,-u*r):fi.scale(i,l,h*r))}else{n&&(u=Math.abs(tu[0]-Ql[1]),h=Math.abs(Ql[0]-tu[1]),Math.min(u,h)<n.len()&&(u<h?fi.scale(n,l,u*r):fi.scale(n,l,-h*r)))}}return a},ou.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},ou);function ou(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new fi;for(n=0;n<2;n++)this._axes[n]=new fi;t&&this.fromBoundingRect(t,e)}var ru=!v.canvasSupported,au={},su={};var lu=(uu.prototype.add=function(t){t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},uu.prototype.remove=function(t){t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},uu.prototype.configLayer=function(t,e){this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh()},uu.prototype.setBackgroundColor=function(t){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return hn(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,o=0;o<i;o++)n+=hn(e[o].color,1);return(n/=i)<.4}return!1}(t)},uu.prototype.getBackgroundColor=function(){return this._backgroundColor},uu.prototype.setDarkMode=function(t){this._darkMode=t},uu.prototype.isDarkMode=function(){return this._darkMode},uu.prototype.refreshImmediately=function(t){t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},uu.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},uu.prototype.flush=function(){this._flush(!1)},uu.prototype._flush=function(t){var e;this._needsRefresh&&(e=!0,this.refreshImmediately(!0)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),e?(this._stillFrameAccum=0,this.trigger("rendered")):0<this._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},uu.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},uu.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},uu.prototype.addHover=function(t){},uu.prototype.removeHover=function(t){},uu.prototype.clearHover=function(){},uu.prototype.refreshHover=function(){this._needsRefreshHover=!0},uu.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},uu.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},uu.prototype.clearAnimation=function(){this.animation.clear()},uu.prototype.getWidth=function(){return this.painter.getWidth()},uu.prototype.getHeight=function(){return this.painter.getHeight()},uu.prototype.pathToImage=function(t,e){if(this.painter.pathToImage)return this.painter.pathToImage(t,e)},uu.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},uu.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},uu.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},uu.prototype.off=function(t,e){this.handler.off(t,e)},uu.prototype.trigger=function(t,e){this.handler.trigger(t,e)},uu.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof qr&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},uu.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 su[t]},uu);function uu(t,e,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t;var o=new Le,r=n.renderer;if(ru){if(!au.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");r="vml"}else r=r||"canvas";if(!au[r])throw new Error("Renderer '"+r+"' is not imported. Please import it first.");n=new au[r](e,o,n,t);this.storage=o,this.painter=n;t=v.node||v.worker?null:new qn(n.getViewportRoot(),n.root);this.handler=new me(o,n,t,n.root),this.animation=new Dn({stage:{update:function(){return i._flush(!0)}}}),this.animation.start()}function hu(t,e){e=new lu(x++,t,e);return su[e.id]=e}function cu(t,e){au[t]=e}var pu=Object.freeze({__proto__:null,init:hu,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in su)su.hasOwnProperty(t)&&su[t].dispose();su={}},getInstance:function(t){return su[t]},registerPainter:cu,version:"5.0.0-beta.1"}),du=1e-4;function fu(t,e,n,i){var o=e[1]-e[0],r=n[1]-n[0];if(0==o)return 0==r?n[0]:(n[0]+n[1])/2;if(i)if(0<o){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/o*r+n[0]}function gu(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"string"==typeof t?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t}function yu(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function mu(t){return t.sort(function(t,e){return t-e}),t}function vu(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}function xu(t){var e=t.toString(),t=e.indexOf("e");if(0<t){var n=+e.slice(t+1);return n<0?-n:0}n=e.indexOf(".");return n<0?0:e.length-1-n}function _u(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),i=Math.round(n(Math.abs(e[1]-e[0]))/i),i=Math.min(Math.max(-t+i,0),20);return isFinite(i)?i:20}function bu(t,e,n){if(!t[e])return 0;var i=P(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var o=Math.pow(10,n),t=L(t,function(t){return(isNaN(t)?0:t)/i*o*100}),r=100*o,a=L(t,function(t){return Math.floor(t)}),s=P(a,function(t,e){return t+e},0),l=L(t,function(t,e){return t-a[e]});s<r;){for(var u=Number.NEGATIVE_INFINITY,h=null,c=0,p=l.length;c<p;++c)l[c]>u&&(u=l[c],h=c);++a[h],l[h]=0,++s}return a[e]/o}var wu=9007199254740991;function Su(t){var e=2*Math.PI;return(t%e+e)%e}function Mu(t){return-du<t&&t<du}var Iu=/^(?:(\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 Tu(t){if(t instanceof Date)return t;if("string"!=typeof t)return null==t?new Date(NaN):new Date(Math.round(t));var e=Iu.exec(t);if(!e)return new Date(NaN);if(e[8]){t=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(t-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,t,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}function Cu(t){return Math.pow(10,Du(t))}function Du(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return 10<=t/Math.pow(10,e)&&e++,e}function Au(t,e){var n=Du(t),i=Math.pow(10,n),o=t/i,o=e?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10;return t=o*i,-20<=n?+t.toFixed(n<0?-n:0):t}function ku(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),e=+t[i-1],n=n-i;return n?e+n*(t[i]-e):e}function Lu(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 Pu(t){var e=parseFloat(t);return e==t&&(0!==e||"string"!=typeof t||t.indexOf("x")<=0)?e:NaN}function Nu(t){return!isNaN(Pu(t))}function Ou(){return Math.round(9*Math.random())}var Ru=Object.freeze({__proto__:null,linearMap:fu,parsePercent:gu,round:yu,asc:mu,getPrecision:vu,getPrecisionSafe:xu,getPixelPrecision:_u,getPercentWithPrecision:bu,MAX_SAFE_INTEGER:wu,remRadian:Su,isRadianAroundZero:Mu,parseDate:Tu,quantity:Cu,quantityExponent:Du,nice:Au,quantile:ku,reformIntervals:Lu,numericToNumber:Pu,isNumeric:Nu,getRandomIdBase:Ou}),Eu="series\0",zu="\0_ec_\0";function Bu(t){return t instanceof Array?t:null==t?[]:[t]}function Vu(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 Fu=["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 Gu(t){return!Y(t)||F(t)||t instanceof Date?t:t.value}function Hu(t,n,e){var i="normalMerge"===e,o="replaceMerge"===e,r="replaceAll"===e;t=t||[],n=(n||[]).slice();var a=ct();R(n,function(t,e){Y(t)?(null==t.id||Uu(t.id),null==t.name||Uu(t.name)):n[e]=null});var s,l,u,h,c,p,d,f,g,y,m,e=function(t,e,n){var i=[];if("replaceAll"===n)return i;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||qu(r)?null:r,newOption:null,keyInfo:null,brandNew:null})}return i}(t,a,e);return(i||o)&&(s=e,l=t,u=a,R(h=n,function(t,e){var n,i,o;t&&null!=t.id&&(n=Xu(t.id),null!=(i=u.get(n))&&(ot(!(o=s[i]).newOption,'Duplicated option on id "'+n+'".'),o.newOption=t,o.existing=l[i],h[e]=null))})),i&&(c=e,R(p=n,function(t,e){if(t&&null!=t.name)for(var n=0;n<c.length;n++){var i=c[n].existing;if(!c[n].newOption&&i&&(null==i.id||null==t.id)&&!qu(t)&&!qu(i)&&Wu("name",i,t))return c[n].newOption=t,void(p[e]=null)}})),i||o?(f=e,g=o,y=0,R(n,function(t){if(t){for(var e;(e=f[y])&&(e.newOption||qu(e.existing)||e.existing&&null!=t.id&&!Wu("id",t,e.existing));)y++;e?(e.newOption=t,e.brandNew=g):f.push({newOption:t,brandNew:g,existing:null,keyInfo:null}),y++}})):r&&(d=e,R(n,function(t){d.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),r=e,m=ct(),R(r,function(t){var e=t.existing;e&&m.set(e.id,t)}),R(r,function(t){var e=t.newOption;ot(!e||null==e.id||!m.get(e.id)||m.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&m.set(e.id,t),t.keyInfo||(t.keyInfo={})}),R(r,function(t,e){var n=t.existing,i=t.newOption,o=t.keyInfo;if(Y(i)){if(o.name=null!=i.name?Xu(i.name):n?n.name:Eu+e,n)o.id=Xu(n.id);else if(null!=i.id)o.id=Xu(i.id);else for(var r=0;o.id="\0"+o.name+"\0"+r++,m.get(o.id););m.set(o.id,t)}}),e}function Wu(t,e,n){e=e[t],t=n[t];return null!=e&&null!=t&&e+""==t+""}function Xu(t){return Yu(t,"")}function Yu(t,e){var n=typeof t;return"string"==n?t:"number"==n||W(t)?t+"":e}function Uu(){}function Zu(t){t=t.name;return!(!t||!t.indexOf(Eu))}function qu(t){return t&&null!=t.id&&0===Xu(t.id).indexOf(zu)}function ju(t,o,r){R(t,function(t){var e,n,i=t.newOption;Y(i)&&(t.keyInfo.mainType=o,t.keyInfo.subType=(e=o,n=i,i=t.existing,t=r,n.type||(i?i.subType:t.determineSubType(e,n))))})}function Ku(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?F(t.dataIndex)?L(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?F(t.name)?L(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function $u(){var e="__ec_inner_"+Ju++;return function(t){return t[e]||(t[e]={})}}var Ju=Ou();function Qu(n,t,o){var e,t=H(t)?((e={})[t+"Index"]=0,e):t,r=o?o.defaultMainType:null,a=ct(),s={};return R(t,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||n!==r&&null==t||o&&o.includeMainTypes&&D(o.includeMainTypes,n)<0||((a.get(n)||a.set(n,{}))[i]=t)):s[e]=t}),a.each(function(t,e){t=nh(n,e,t,{useDefault:e===r,enableAll:!0,enableNone:!0});s[e+"Models"]=t.models,s[e+"Model"]=t.models[0]}),s}var th={useDefault:!0,enableAll:!1,enableNone:!1},eh={useDefault:!1,enableAll:!0,enableNone:!0};function nh(t,e,n,i){i=i||th;var o=n.index,r=n.id,a=n.name,n={models:null,specified:null!=o||null!=r||null!=a};if(n.specified)return"none"===o||!1===o?(ot(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),n.models=[]):("all"===o&&(ot(i.enableAll,'`"all"` is not a valid value on index option.'),o=r=a=null),n.models=t.queryComponents({mainType:e,index:o,id:r,name:a})),n;a=void 0;return n.models=i.useDefault&&(a=t.getComponent(e))?[a]:[],n}function ih(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function oh(t,n){var i=ct(),o=[];return R(t,function(t){var e=n(t);(i.get(e)||(o.push(e),i.set(e,[]))).push(t)}),{keys:o,buckets:i}}function rh(t,e,n,i,o){var r=null==e||"auto"===e;if("number"==typeof i)return yu(l=dn(n||0,i,o),r?Math.max(xu(n||0),xu(i)):e);if("string"==typeof i)return o<1?n:i;for(var a,s,l,u=[],h=n||[],c=i,p=Math.max(h.length,c.length),d=0;d<p;++d){"ordinal"===t.getDimensionInfo(d).type?u[d]=(o<1?h:c)[d]:(a=h&&h[d]?h[d]:0,s=c[d],l=null==h?i[d]:dn(a,s,o),u[d]=yu(l,r?Math.max(xu(a),xu(s)):e))}return u}var ah=".",sh="___EC__COMPONENT__CONTAINER___",lh="___EC__EXTENDED_CLASS___";function uh(t){var e={main:"",sub:""};return t&&(t=t.split(ah),e.main=t[0]||"",e.sub=t[1]||""),e}function hh(t){(t.$constructor=t).extend=function(i){var o=this;function r(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(i.$constructor)i.$constructor.apply(this,arguments);else{if("function"==typeof(t=o)&&/^class\s/.test(Function.prototype.toString.call(t)))return dt(r.prototype,new(o.bind.apply(o,a([void 0],e))));o.apply(this,arguments)}}return r[lh]=!0,N(r.prototype,i),r.extend=this.extend,r.superCall=dh,r.superApply=fh,I(r,this),r.superClass=o,r}}function ch(t,e){t.extend=e.extend}var ph=Math.round(10*Math.random());function dh(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 fh(t,e,n){return this.superClass.prototype[e].apply(t,n)}function gh(e,t){t=t||{};var n,o={};e.registerClass=function(t){var e,n=t.type||t.prototype.type;return n&&(ot(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e=n),'componentType "'+e+'" illegal'),(n=uh(t.prototype.type=n)).sub?n.sub!==sh&&(function(t){var e=o[t.main];e&&e[sh]||((e=o[t.main]={})[sh]=!0);return e}(n)[n.sub]=t):o[n.main]=t),t},e.getClass=function(t,e,n){var i=o[t];if(i&&i[sh]&&(i=e?i[e]:null),n&&!i)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return i},e.getClassesByMainType=function(t){var t=uh(t),n=[],t=o[t.main];return t&&t[sh]?R(t,function(t,e){e!==sh&&n.push(t)}):n.push(t),n},e.hasClass=function(t){t=uh(t);return!!o[t.main]},e.getAllClassMainTypes=function(){var n=[];return R(o,function(t,e){n.push(e)}),n},e.hasSubTypes=function(t){t=uh(t),t=o[t.main];return t&&t[sh]},!t.registerWhenExtend||(n=e.extend)&&(e.extend=function(t){t=n.call(this,t);return e.registerClass(t)})}function yh(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<=D(e,r)||n&&D(n,r)<0||null!=(r=t.getShallow(r,s))&&(i[a[o][0]]=r)}return i}}var mh=yh([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),vh=(xh.prototype.getAreaStyle=function(t,e){return mh(this,t,e)},xh);function xh(){}var _h=$u(),bh=1,wh={},Sh=$u(),Mh=0,Ih=1,Th=2,Ch=["emphasis","blur","select"],Dh=["normal","emphasis","blur","select"],Ah=10,kh=9,Lh="highlight",Ph="downplay",Nh="select",Oh="unselect",Rh="toggleSelect";function Eh(t){return null!=t&&"none"!==t}var zh=new Fe(100);function Bh(t){if("string"!=typeof t)return t;var e=zh.get(t);return e||(e=nn(t,-.1),zh.put(t,e)),e}function Vh(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Fh(t){Vh(t,"emphasis",Th)}function Gh(t){Vh(t,"normal",Mh)}function Hh(t){Vh(t,"blur",Ih)}function Wh(t){Vh(t,"normal",Mh)}function Xh(t){t.selected=!0}function Yh(t){t.selected=!1}function Uh(t,e,n){e(t,n)}function Zh(t,e,n){Uh(t,e,n),t.isGroup&&t.traverse(function(t){Uh(t,e,n)})}function qh(t,e){switch(e){case"emphasis":t.hoverState=Th;break;case"normal":t.hoverState=Mh;break;case"blur":t.hoverState=Ih;break;case"select":t.selected=!0}}function jh(t,e,n){var i=0<=D(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.saveFinalToTarget(r,e)}return r}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{};return null==e.opacity&&(n=N({},n),e=N({opacity:i?o:.1*t.opacity},e),n.style=e),n}function Kh(t,e){var n,i,o,r,a,s=this.states[t];if(this.style){if("emphasis"===t)return n=this,o=s,r=(i=e)&&0<=D(i,"select"),a=!1,n instanceof Ir&&(e=Sh(n),i=r&&e.selectFill||e.normalFill,r=r&&e.selectStroke||e.normalStroke,(Eh(i)||Eh(r))&&(!Eh((e=(o=o||{}).style||{}).fill)&&Eh(i)?(a=!0,o=N({},o),(e=N({},e)).fill=Bh(i)):!Eh(e.stroke)&&Eh(r)&&(a||(o=N({},o),e=N({},e)),e.stroke=Bh(r)),o.style=e)),o&&null==o.z2&&(a||(o=N({},o)),a=n.z2EmphasisLift,o.z2=n.z2+(null!=a?a:Ah)),o;if("blur"===t)return jh(this,t,s);if("select"===t)return a=this,(o=s)&&null==o.z2&&(o=N({},o),t=a.z2SelectLift,o.z2=a.z2+(null!=t?t:kh)),o}return s}function $h(t){t.stateProxy=Kh;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=Kh),t&&(t.stateProxy=Kh)}function Jh(t,e){t.__highByOuter|=1<<(e||0),Zh(t,Fh)}function Qh(t,e){(t.__highByOuter&=~(1<<(e||0)))||Zh(t,Gh)}function tc(t){Zh(t,Hh)}function ec(t){Zh(t,Wh)}function nc(t){Zh(t,Xh)}function ic(t){Zh(t,Yh)}function oc(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function rc(t,r,a,s,e){var n,l,u,h,i=s.getModel();function c(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&ec(i)}}a=a||"coordinateSystem",e?null!=t&&r&&"none"!==r&&(l=i.getSeriesByIndex(t),(u=l.coordinateSystem)&&u.master&&(u=u.master),h=[],i.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){Hh(t)}),k(r))c(t.getData(),r);else if(Y(r))for(var i=z(r),o=0;o<i.length;o++)c(t.getData(i[o]),r[i[o]]);h.push(t)}}),i.eachComponent(function(t,e){"series"===t||(e=s.getViewOfComponentModel(e))&&e.blurSeries&&e.blurSeries(h,i)})):(n=s).getModel().eachComponent(function(t,e){("series"===t?n.getViewOfSeriesModel(e):n.getViewOfComponentModel(e)).group.traverse(function(t){Wh(t)})})}function ac(i){R(i.getAllData(),function(t){var e=t.data,n=t.type;e.eachItemGraphicEl(function(t,e){(i.isSelected(e,n)?nc:ic)(t)})})}function sc(t,e,n){pc(t,!0),Zh(t,$h),lc(t,e,n)}function lc(t,e,n){null!=e&&((t=_h(t)).focus=e,t.blurScope=n)}var uc=["emphasis","blur","select"],hc={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function cc(t,e,n,i){n=n||"itemStyle";for(var o=0;o<uc.length;o++){var r=uc[o],a=e.getModel([r,n]);t.ensureState(r).style=i?i(a):a[hc[n]]()}}function pc(t,e){var n=!1===e,e=t;t.highDownSilentOnTouch&&(e.__highDownSilentOnTouch=t.highDownSilentOnTouch),n&&!e.__highDownDispatcher||(e.__highByOuter=e.__highByOuter||0,e.__highDownDispatcher=!n)}function dc(t){return!(!t||!t.__highDownDispatcher)}function fc(t){t=t.type;return t===Nh||t===Oh||t===Rh}function gc(t){t=t.type;return t===Lh||t===Ph}function yc(){0}function mc(t){throw new Error(t)}var vc={};function xc(t,e){for(var n=0;n<Ch.length;n++){var i=Ch[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 _c(t,e,n){var i,o=t.labelFetcher,r=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;o&&(i=o.getFormattedLabel(r,"normal",null,a,s&&s.get("formatter"),null!=n?{value:n}:null)),null==i&&(i=G(t.defaultText)?t.defaultText(r,t,n):t.defaultText);for(var l={normal:i},u=0;u<Ch.length;u++){var h=Ch[u],c=e[h];l[h]=tt(o?o.getFormattedLabel(r,h,null,a,c&&c.get("formatter")):null,i)}return l}function bc(t,e,n,i){n=n||vc;for(var o=t instanceof Rs,r=!1,a=0;a<Dh.length;a++){if((p=e[Dh[a]])&&p.getShallow("show")){r=!0;break}}var s=o?t:t.getTextContent();if(r){o||(s||(s=new Rs,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=_c(n,e),u=e.normal,h=!!u.getShallow("show"),c=Sc(u,i&&i.normal,n,!1,!o);c.text=l.normal,o||t.setTextConfig(Mc(u,n,!1));for(a=0;a<Ch.length;a++){var p,d,f,g=Ch[a];(p=e[g])&&(d=s.ensureState(g),(f=!!tt(p.getShallow("show"),h))!=h&&(d.ignore=!f),d.style=Sc(p,i&&i[g],n,!0,!o),d.style.text=l[g],o||(t.ensureState(g).textConfig=Mc(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&&(kc(s).setLabelText=function(t){t=_c(n,e,t);xc(s,t)})}else s&&(s.ignore=!0);t.dirty()}function wc(t,e){e=e||"label";for(var n={normal:t.getModel(e)},i=0;i<Ch.length;i++){var o=Ch[i];n[o]=t.getModel([o,e])}return n}function Sc(t,e,n,i,o){var r={};return function(t,e,n,i,o){n=n||vc;var r,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||vc).rich;if(n){e=e||{};for(var i=z(n),o=0;o<i.length;o++){var r=i[o];e[r]=1}}t=t.parentModel}return e}(e);if(l)for(var u in r={},l){var h;l.hasOwnProperty(u)&&(h=e.getModel(["rich",u]),Dc(r[u]={},h,s,n,i,o))}r&&(t.rich=r);a=e.get("overflow");a&&(t.overflow=a);a=e.get("minMargin");null!=a&&(t.margin=a);Dc(t,e,s,n,i,o,!0)}(r,t,n,i,o),e&&N(r,e),r}function Mc(t,e,n){e=e||{};var i={},o=t.getShallow("rotate"),r=tt(t.getShallow("distance"),n?null:5),a=t.getShallow("offset"),n=t.getShallow("position")||(n?null:"inside");return"outside"===n&&(n=e.defaultOutsidePosition||"top"),null!=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 Ic=["fontStyle","fontWeight","fontSize","fontFamily","opacity","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Tc=["align","lineHeight","width","height","tag","verticalAlign"],Cc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Dc(t,e,n,i,o,r,a){n=!o&&n||vc;var s=i&&i.inheritColor,l=e.getShallow("color"),u=e.getShallow("textBorderColor");"inherit"!==l&&"auto"!==l||(l=s||null),"inherit"!==u&&"auto"!==u||(u=s||null),r||(l=l||n.color,u=u||n.textBorderColor),null!=l&&(t.fill=l),null!=u&&(t.stroke=u);u=tt(e.getShallow("textBorderWidth"),n.textBorderWidth);null!=u&&(t.lineWidth=u);u=tt(e.getShallow("textBorderType"),n.textBorderType);null!=u&&(t.lineDash=u);u=tt(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);null!=u&&(t.lineDashOffset=u),o||r||null==t.fill&&i.inheritColor&&(t.fill=i.inheritColor);for(var h=0;h<Ic.length;h++){var c=Ic[h];null!=(p=tt(e.getShallow(c),n[c]))&&(t[c]=p)}for(h=0;h<Tc.length;h++){c=Tc[h];null!=(p=e.getShallow(c))&&(t[c]=p)}if(null!=t.verticalAlign||null!=(r=e.getShallow("baseline"))&&(t.verticalAlign=r),!a||!i.disableBox){for(h=0;h<Cc.length;h++){var p,c=Cc[h];null!=(p=e.getShallow(c))&&(t[c]=p)}i=e.getShallow("borderType");null!=i&&(t.borderDash=i),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!s||(t.backgroundColor=s),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!s||(t.borderColor=s)}}function Ac(t,e){e=e&&e.getModel("textStyle");return rt([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 kc=$u(),Lc=["textStyle","color"],Pc=new Rs,n=(Nc.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(Lc):null)},Nc.prototype.getFont=function(){return Ac({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},Nc.prototype.getTextRect=function(t){return Pc.useStyle({text:t,fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily"),verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline"),padding:this.getShallow("padding"),lineHeight:this.getShallow("lineHeight"),rich:this.getShallow("rich")}),Pc.update(),Pc.getBoundingRect()},Nc);function Nc(){}var r=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Oc=yh(r),g=(Rc.prototype.getLineStyle=function(t){return Oc(this,t)},Rc);function Rc(){}var Ec=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],zc=yh(Ec),Bc=(Vc.prototype.getItemStyle=function(t,e){return zc(this,t,e)},Vc);function Vc(){}var Fc,Gc,Hc=(Wc.prototype.init=function(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o]},Wc.prototype.mergeOption=function(t,e){w(this.option,t,!0)},Wc.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Wc.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},Wc.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new Wc(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Wc.prototype.isEmpty=function(){return null==this.option},Wc.prototype.restoreData=function(){},Wc.prototype.clone=function(){return new this.constructor(C(this.option))},Wc.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Wc.prototype.resolveParentPath=function(t){return t},Wc.prototype.isAnimationEnabled=function(){if(!v.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Wc.prototype._doGet=function(t,e){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);return null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel)),n},Wc);function Wc(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}hh(Hc),Fc=Hc,Gc=["__\0is_clz",ph++].join("_"),Fc.prototype[Gc]=!0,Fc.isInstance=function(t){return!(!t||!t[Gc])},T(Hc,g),T(Hc,Bc),T(Hc,vh),T(Hc,n);var Xc=Math.round(10*Math.random());function Yc(t){return[t||"",Xc++].join("_")}function Uc(t,e){return w(w({},t,!0),e,!0)}var Zc="ZH",qc="EN",jc=qc,Kc={},$c={},Jc=v.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf(Zc)?Zc:jc;function Qc(t,e){t=t.toUpperCase(),$c[t]=new Hc(e),Kc[t]=e}Qc(qc,{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:"Guage",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:". "}}}}),Qc(Zc,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var tp=1e3,ep=60*tp,np=60*ep,ip=24*np,Vi=365*ip,op={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}"},rp="{yyyy}-{MM}-{dd}",ap={year:"{yyyy}",month:"{yyyy}:{MM}",day:rp,hour:rp+" "+op.hour,minute:rp+" "+op.minute,second:rp+" "+op.second,millisecond:op.none},sp=["year","month","day","hour","minute","second","millisecond"],lp=["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 hp(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 cp(t,e,n,i){var o=Tu(t),r=o[fp(i)](),a=o[gp(i)]()+1,s=Math.floor((a-1)/4)+1,l=o[yp(i)](),u=o["get"+(i?"UTC":"")+"Day"](),h=o[mp(i)](),c=(h-1)%12+1,p=o[vp(i)](),d=o[xp(i)](),f=o[_p(i)](),t=(n instanceof Hc?n:$c[n||Jc]||$c[jc]).getModel("time"),o=t.get("month"),i=t.get("monthAbbr"),n=t.get("dayOfWeek"),t=t.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,r%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,o[a-1]).replace(/{MMM}/g,i[a-1]).replace(/{MM}/g,up(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,up(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,n[u]).replace(/{ee}/g,t[u]).replace(/{e}/g,u+"").replace(/{HH}/g,up(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,up(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,up(p,2)).replace(/{m}/g,p+"").replace(/{ss}/g,up(d,2)).replace(/{s}/g,d+"").replace(/{SSS}/g,up(f,3)).replace(/{S}/g,f+"")}function pp(t,e){var n=Tu(t),i=n[gp(e)]()+1,o=n[yp(e)](),r=n[mp(e)](),a=n[vp(e)](),t=n[xp(e)](),e=0===n[_p(e)](),t=e&&0===t,a=t&&0===a,r=a&&0===r,o=r&&1===o;return o&&1===i?"year":o?"month":r?"day":a?"hour":t?"minute":e?"second":"millisecond"}function dp(t,e,n){var i="number"==typeof t?Tu(t):t;switch(e=e||pp(t,n)){case"year":return i[fp(n)]();case"half-year":return 6<=i[gp(n)]()?1:0;case"quarter":return Math.floor((i[gp(n)]()+1)/4);case"month":return i[gp(n)]();case"day":return i[yp(n)]();case"half-day":return i[mp(n)]()/24;case"hour":return i[mp(n)]();case"minute":return i[vp(n)]();case"second":return i[xp(n)]();case"millisecond":return i[_p(n)]()}}function fp(t){return t?"getUTCFullYear":"getFullYear"}function gp(t){return t?"getUTCMonth":"getMonth"}function yp(t){return t?"getUTCDate":"getDate"}function mp(t){return t?"getUTCHours":"getHours"}function vp(t){return t?"getUTCMinutes":"getMinutes"}function xp(t){return t?"getUTCSeconds":"getSeconds"}function _p(t){return t?"getUTCSeconds":"getSeconds"}function bp(t){return t?"setUTCMonth":"setMonth"}function wp(t){return t?"setUTCDate":"setDate"}function Sp(t){return t?"setUTCHours":"setHours"}function Mp(t){return t?"setUTCMinutes":"setMinutes"}function Ip(t){return t?"setUTCSeconds":"setSeconds"}function Tp(t){return t?"setUTCSeconds":"setSeconds"}var Cp=Math.max,Dp=Math.min,Ap={};var kp=function(t,e){var n,i=Yr(t,e);function o(t){t=n.call(this,t)||this;return t.applyTransform=i.applyTransform,t.buildPath=i.buildPath,t}return l(o,n=Hr),o};function Lp(t,e){Ap[t]=e}function Pp(t){if(Ap.hasOwnProperty(t))return Ap[t]}function Np(t,e,n,i){e=Ur(t,e);return n&&("center"===i&&(n=Rp(n,e.getBoundingRect())),zp(e,n)),e}function Op(t,e,n){var i=new Qr({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(Rp(e,t)))}});return i}function Rp(t,e){var n=e.width/e.height,e=t.height*n,n=e<=t.width?t.height:(e=t.width)/n;return{x:t.x+t.width/2-e/2,y:t.y+t.height/2-n/2,width:e,height:n}}var Ep=function(t,e){for(var n=[],i=t.length,o=0;o<i;o++){var r=t[o];r.path||r.createPathProxy(),r.shapeChanged()&&r.buildPath(r.path,r.shape,!0),n.push(r.path)}return(e=new Ir(e)).createPathProxy(),e.buildPath=function(t){var e;Xr(t)&&(t.appendPath(n),(e=t.getContext())&&t.rebuildPath(e,1))},e};function zp(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}var Bp=la;function Vp(t,e,n,i,o,r,a){var s=!1;"function"==typeof o?(a=r,r=o,o=null):Y(o)&&(r=o.cb,a=o.during,s=o.isFrom,o=o.dataIndex);var l,u,h,c,p="update"===t,d="remove"===t;i&&i.ecModel&&(l=(c=i.ecModel.getUpdatePayload())&&c.animation),i&&i.isAnimationEnabled()?(c=h=u=void 0,l?(u=l.duration||0,h=l.easing||"cubicOut",c=l.delay||0):d?(u=200,h="cubicOut",c=0):(u=i.getShallow(p?"animationDurationUpdate":"animationDuration"),h=i.getShallow(p?"animationEasingUpdate":"animationEasing"),"function"==typeof(c=i.getShallow(p?"animationDelayUpdate":"animationDelay"))&&(c=c(o,i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null)),"function"==typeof u&&(u=u(o))),d||e.stopAnimation("remove"),0<u?s?e.animateFrom(n,{duration:u,delay:c||0,easing:h,done:r,force:!!r||!!a,scope:t,during:a}):e.animateTo(n,{duration:u,delay:c||0,easing:h,done:r,force:!!r||!!a,setToFinal:!0,scope:t,during:a}):(e.stopAnimation(),e.attr(n),r&&r())):(e.stopAnimation(),s||e.attr(n),a&&a(1),r&&r())}function Fp(t,e,n,i,o,r){Vp("update",t,e,n,i,o,r)}function Gp(t,e,n,i,o,r){Vp("init",t,e,n,i,o,r)}function Hp(t,e,n,i,o,r){Vp("remove",t,e,n,i,o,r)}function Wp(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),Hp(t,{style:{opacity:0}},e,n,i)}function Xp(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||Wp(t,e,n,i)}):Wp(t,e,n,i)}function Yp(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){if("remove"===t.animators[e].scope)return!0}return!1}function Up(t,n,i,o,r,a,e,s){var l,u,h,c,p=r&&r.get("valueAnimation"),d=n.getTextContent();p&&d&&(l=r?r.get("precision"):null,u=kc(d),h=u.prevValue,c=u.value,u.prevValue=c,Vp(t,n,{},e,o,null,function(t){var e=n.getTextContent();e&&u&&(t=rh(i,l,h,c,t),xc(e,_c({labelDataIndex:o,labelFetcher:a,defaultText:s?s(t):t+""},{normal:r},t)))}))}function Zp(t,e,n,i,o,r,a){Up("update",t,e,n,i,o,r,a)}function qp(t,e,n,i,o,r,a){Up("init",t,e,n,i,o,r,a)}function jp(t,e){for(var n=$n([]);t&&t!==e;)Qn(n,t.getLocalTransform(),n),t=t.parent;return n}function Kp(t,e,n){return e&&!k(e)&&(e=pi.getLocalTransform(e)),n&&(e=ii([],e)),Nt([],t,e)}function $p(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]),o=Kp(o=["left"===t?-i:"right"===t?i:0,"top"===t?-o:"bottom"===t?o:0],e,n);return Math.abs(o[0])>Math.abs(o[1])?0<o[0]?"right":"left":0<o[1]?"bottom":"top"}function Jp(t){return!t.isGroup}function Qp(t,e,i){var o,n;function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=N({},t.shape)),e}t&&e&&(n={},t.traverse(function(t){Jp(t)&&t.anid&&(n[t.anid]=t)}),o=n,e.traverse(function(t){var e,n;Jp(t)&&t.anid&&((e=o[t.anid])&&(n=r(t),t.attr(r(e)),Fp(t,n,i,_h(t).dataIndex)))}))}function td(t,n){return L(t,function(t){var e=t[0],e=Cp(e,n.x);e=Dp(e,n.x+n.width);t=t[1],t=Cp(t,n.y);return[e,t=Dp(t,n.y+n.height)]})}function ed(t,e,n){var i=N({rectHover:!0},e),e=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(e.image=t.slice(8),A(e,n),new Qr(i)):Np(t.replace("path://",""),i,n,"center")}function nd(t,e,n,i,o){for(var r=0,a=o[o.length-1];r<o.length;r++){var s=o[r];if(id(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}}function id(t,e,n,i,o,r,a,s){var l=n-t,u=i-e,n=a-o,i=s-r,a=n*u-l*i;if((s=a)<=1e-6&&-1e-6<=s)return!1;o=t-o,r=e-r,l=(o*u-l*r)/a;if(l<0||1<l)return!1;a=(o*i-n*r)/a;return!(a<0||1<a)}Lp("circle",ia),Lp("ellipse",ya),Lp("sector",zl),Lp("ring",fl),Lp("polygon",Ca),Lp("polyline",La),Lp("rect",pa),Lp("line",ba),Lp("bezierCurve",Js),Lp("arc",Us);var od=Object.freeze({__proto__:null,extendShape:function(t){return Ir.extend(t)},extendPath:function(t,e){return kp(t,e)},registerShape:Lp,getShapeClass:Pp,makePath:Np,makeImage:Op,mergePath:Ep,resizePath:zp,subPixelOptimizeLine:function(t){return aa(t.shape,t.shape,t.style),t},subPixelOptimizeRect:function(t){return sa(t.shape,t.shape,t.style),t},subPixelOptimize:Bp,updateProps:Fp,initProps:Gp,removeElement:Hp,removeElementWithFadeOut:Xp,isElementRemoved:Yp,updateLabel:Zp,initLabel:qp,getTransform:jp,applyTransform:Kp,transformDirection:$p,groupTransition:Qp,clipPointsByRect:td,clipRectByRect:function(t,e){var n=Cp(t.x,e.x),i=Dp(t.x+t.width,e.x+e.width),o=Cp(t.y,e.y),e=Dp(t.y+t.height,e.y+e.height);if(n<=i&&o<=e)return{x:n,y:o,width:i-n,height:e-o}},createIcon:ed,linePolygonIntersect:nd,lineLineIntersect:id,Group:qr,Image:Qr,Text:Rs,Circle:ia,Ellipse:ya,Sector:zl,Ring:fl,Polygon:Ca,Polyline:La,Rect:pa,Line:ba,BezierCurve:Js,Arc:Us,IncrementalDisplayable:gs,CompoundPath:cs,LinearGradient:Ea,RadialGradient:$l,BoundingRect:Mi,OrientedBoundingRect:iu,Point:fi,Path:Ir});function rd(t){if(!Nu(t))return H(t)?t:"-";t=(t+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<t.length?"."+t[1]:"")}function ad(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var sd=it,ld=/([&<>"'])/g,ud={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function hd(t){return null==t?"":(t+"").replace(ld,function(t,e){return ud[e]})}function cd(t,e){function n(t){return t&&rt(t)?t:"-"}function i(t){return null!=t&&!isNaN(t)&&isFinite(t)}var o="time"===e,r=t instanceof Date;if(o||r){o=o?Tu(t):t;if(!isNaN(+o))return cp(o,"yyyy-MM-dd hh:mm:ss");if(r)return"-"}if("ordinal"===e)return W(t)?n(t):X(t)&&i(t)?t+"":"-";e=Pu(t);return i(e)?rd(e):W(t)?n(t):"-"}function pd(t,e){return"{"+t+(null==e?"":e)+"}"}var dd=["a","b","c","d","e","f","g"];function fd(t,e,n){F(e)||(e=[e]);var i=e.length;if(!i)return"";if(e[0].axisType&&0<=e[0].axisType.indexOf("time"))return cp(Tu(e[0].data[e[0].axisIndex]),t);for(var o=e[0].$vars||[],r=0;r<o.length;r++){var a=dd[r];t=t.replace(pd(a),pd(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(pd(dd[l],s),n?hd(u):u)}return t}function gd(n,t,i){return R(t,function(t,e){n=n.replace("{"+e+"}",i?hd(t):t)}),n}function yd(t,e){var n=H(t)?{color:t,extraCssText:e}:t||{},i=n.color,o=n.type;e=n.extraCssText;t=n.renderMode||"html";return i?"html"===t?"subItem"===o?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+hd(i)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+hd(i)+";"+(e||"")+'"></span>':{renderMode:t,content:"{"+(n.markerId||"markerX")+"|}  ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function md(t,e){return e=e||"transparent",H(t)?t:Y(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function vd(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var xd=Object.freeze({__proto__:null,addCommas:rd,toCamelCase:ad,normalizeCssArray:sd,encodeHTML:hd,makeValueReadable:cd,formatTpl:fd,formatTplSimple:gd,getTooltipMarker:yd,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=Tu(e),o=i["get"+(l=n?"UTC":"")+"FullYear"](),r=i["get"+l+"Month"]()+1,a=i["get"+l+"Date"](),s=i["get"+l+"Hours"](),e=i["get"+l+"Minutes"](),n=i["get"+l+"Seconds"](),l=i["get"+l+"Milliseconds"]();return t=t.replace("MM",up(r,2)).replace("M",r).replace("yyyy",o).replace("yy",o%100+"").replace("dd",up(a,2)).replace("d",a).replace("hh",up(s,2)).replace("h",s).replace("mm",up(e,2)).replace("m",e).replace("ss",up(n,2)).replace("s",n).replace("SSS",up(l,3))},capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},convertToColorString:md,windowOpen:vd,truncateText:ws,getTextRect:function(t,e,n,i,o,r,a,s){return yc(),new Rs({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}}),_d=R,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;null==u&&(u=1/0),null==h&&(h=1/0);var d=0;s.eachChild(function(t,e){var n,i,o=t.getBoundingRect(),r=s.childAt(e+1),e=r&&r.getBoundingRect();d="horizontal"===a?(r=o.width+(e?-e.x+o.x:0),u<(n=c+r)||t.newline?(c=0,n=r,p+=d+l,o.height):Math.max(d,o.height)):(e=o.height+(e?-e.y+o.y:0),h<(i=p+e)||t.newline?(c+=d+l,p=0,i=e,o.width):Math.max(d,o.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=i+l)})}var Md=Sd;V(Sd,"vertical"),V(Sd,"horizontal");function Id(t,e,n){n=sd(n||0);var i=e.width,o=e.height,r=gu(t.left,i),a=gu(t.top,o),s=gu(t.right,i),l=gu(t.bottom,o),u=gu(t.width,i),h=gu(t.height,o),c=n[2]+n[0],p=n[1]+n[3],e=t.aspect;switch(isNaN(u)&&(u=i-s-p-r),isNaN(h)&&(h=o-l-c-a),null!=e&&(isNaN(u)&&isNaN(h)&&(i/o<e?u=.8*i:h=.8*o),isNaN(u)&&(u=e*h),isNaN(h)&&(h=u/e)),isNaN(r)&&(r=i-s-u-p),isNaN(a)&&(a=o-l-h-c),t.left||t.right){case"center":r=i/2-u/2-n[3];break;case"right":r=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=o/2-h/2-n[0];break;case"bottom":a=o-h-c}r=r||0,a=a||0,isNaN(u)&&(u=i-p-r-(s||0)),isNaN(h)&&(h=o-c-a-(l||0));h=new Mi(r+n[3],a+n[0],u,h);return h.margin=n,h}function Td(t,e,n,i,o){var r,a=!o||!o.hv||o.hv[0],s=!o||!o.hv||o.hv[1],l=o&&o.boundingMode||"all";(a||s)&&("raw"===l?r="group"===t.type?new Mi(0,0,+e.width||0,+e.height||0):t.getBoundingRect():(r=t.getBoundingRect(),t.needLocalTransform()&&(o=t.getLocalTransform(),(r=r.clone()).applyTransform(o))),i=Id(A({width:r.width,height:r.height},e),n,i),a=a?i.x-r.x:0,r=s?i.y-r.y:0,"raw"===l?(t.x=a,t.y=r):(t.x+=a,t.y+=r),t.markRedraw())}function Cd(t){t=t.layoutMode||t.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function Dd(l,u,t){var h=t&&t.ignoreSize;F(h)||(h=[h,h]);var e=n(wd[0],0),t=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])return p(u,t[1])?o[t[2]]=null:p(u,t[2])&&(o[t[1]]=null),o;if(2!==r&&i){if(2<=i)return n;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,e),i(wd[1],l,t)}function Ad(t){return kd({},t)}function kd(e,n){return n&&e&&_d(bd,function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e}var Ld,Pd,Nd,Od,Rd=$u(),Ed=(l(zd,Ld=Hc),zd.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},zd.prototype.mergeDefaultAndTheme=function(t,e){var n=Cd(this),i=n?Ad(t):{};w(t,e.getTheme().get(this.mainType)),w(t,this.getDefaultOption()),n&&Dd(t,i,n)},zd.prototype.mergeOption=function(t,e){w(this.option,t,!0);var n=Cd(this);n&&Dd(this.option,t,n)},zd.prototype.optionUpdated=function(t,e){},zd.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[lh])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=w(r,n[a],!0);e.defaultOption=r}return e.defaultOption},zd.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return nh(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!0)},e)},zd.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")}},zd.protoInitialize=((pg=zd.prototype).type="component",pg.id="",pg.name="",pg.mainType="",pg.subType="",void(pg.componentIndex=0)),zd);function zd(t,e,n){n=Ld.call(this,t,e,n)||this;return n.uid=Yc("ec_cpt_model"),n}function Bd(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}ch(Ed,Hc),gh(Ed,{registerWhenExtend:!0}),Nd={},(Pd=Ed).registerSubTypeDefaulter=function(t,e){t=uh(t);Nd[t.main]=e},Pd.determineSubType=function(t,e){var n,i=e.type;return i||(n=uh(t).main,Pd.hasSubTypes(t)&&Nd[n]&&(i=Nd[n](e))),i},Od=function(t){var e=[];R(Ed.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=L(e,function(t){return uh(t).main}),"dataset"!==t&&D(e,"dataset")<=0&&e.unshift("dataset");return e},Ed.topologicalTravel=function(t,e,n,i){if(t.length){var r,a,s,e=(a={},s=[],R(r=e,function(n){var e,i,o=Bd(a,n),t=o.originalDeps=Od(n),t=(e=r,i=[],R(t,function(t){0<=D(e,t)&&i.push(t)}),i);o.entryCount=t.length,0===o.entryCount&&s.push(n),R(t,function(t){D(o.predecessor,t)<0&&o.predecessor.push(t);var e=Bd(a,t);D(e.successor,t)<0&&e.successor.push(n)})}),{graph:a,noEntryList:s}),o=e.graph,l=e.noEntryList,u={};for(R(t,function(t){u[t]=!0});l.length;){var h=l.pop(),c=o[h],p=!!u[h];p&&(n.call(i,h,c.originalDeps.slice()),delete u[h]),R(c.successor,p?f:d)}R(u,function(){throw new Error("Circle dependency may exists")})}function d(t){o[t].entryCount--,0===o[t].entryCount&&l.push(t)}function f(t){u[t]=!0,d(t)}};var Vd="";"undefined"!=typeof navigator&&(Vd=navigator.platform||"");var Fd={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:Vd.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut",additive:!0},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},Gd=$u();var Hd=(Wd.prototype.clearColorPalette=function(){Gd(this).colorIdx=0,Gd(this).colorNameMap={}},Wd.prototype.getColorFromPalette=function(t,e,n){var i=Gd(e=e||this),o=i.colorIdx||0,r=i.colorNameMap=i.colorNameMap||{};if(r.hasOwnProperty(t))return r[t];var a=Bu(this.get("color",!0)),e=this.get("colorLayer",!0),n=null!=n&&e?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]}(e,n):a;if((n=n||a)&&n.length){a=n[o];return t&&(r[t]=a),i.colorIdx=(o+1)%n.length,a}},Wd);function Wd(){}var Xd=ct(["tooltip","label","itemName","itemId","seriesName"]),Yd="original",Ud="arrayRows",Zd="objectRows",qd="keyedColumns",jd="typedArray",Kd="unknown",$d="column",Jd="row",Qd={Must:1,Might:2,Not:3},tf=$u();function ef(t){return A(t.thisNew,t.parent)}function nf(n,t,e){var o={},i=rf(t);if(!i||!n)return o;var r,a,s=[],l=[],t=t.ecModel,t=tf(t).datasetMap,e=i.uid+"_"+e.seriesLayoutBy;R(n=n.slice(),function(t,e){t=Y(t)?t:n[e]={name:t};"ordinal"===t.type&&null==r&&(r=e,a=c(t)),o[t.name]=[]});var u=t.get(e)||t.set(e,{categoryWayDim:a,valueWayDim:0});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}return R(n,function(t,e){var n,i=t.name,t=c(t);null==r?(n=u.valueWayDim,h(o[i],n,t),h(l,n,t),u.valueWayDim+=t):r===e?(h(o[i],0,t),h(s,0,t)):(n=u.categoryWayDim,h(o[i],n,t),h(l,n,t),u.categoryWayDim+=t)}),s.length&&(o.itemName=s),l.length&&(o.seriesName=l),o}function of(t,l,u){var e={};if(!rf(t))return e;var h,c=l.sourceFormat,p=l.dimensionsDefine;c!==Zd&&c!==qd||R(p,function(t,e){"name"===(Y(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=af(l.data,c,l.seriesLayoutBy,p,l.startIndex,i);n.push(r);var a=r===Qd.Not;if(a&&null==t.v&&i!==h&&(t.v=i),null!=t.n&&t.n!==t.v&&(a||n[t.n]!==Qd.Not)||(t.n=i),s(t)&&n[t.n]!==Qd.Not)return t;a||(r===Qd.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}();return t&&(e.value=[t.v],t=null!=h?h:t.n,e.itemName=[t],e.seriesName=[t]),e}function rf(t){if(!t.get("data",!0))return nh(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},th).models[0]}function af(t,e,n,i,o,r){var a,s,l;if(Z(t))return Qd.Not;if(i&&(Y(i=i[r])?(s=i.name,l=i.type):H(i)&&(s=i)),null!=l)return"ordinal"===l?Qd.Must:Qd.Not;if(e===Ud){var u=t;if(n===Jd){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===Zd){var d=t;if(!s)return Qd.Not;for(c=0;c<d.length&&c<5;c++){if((g=d[c])&&null!=(a=m(g[s])))return a}}else if(e===qd){if(!s)return Qd.Not;if(!(h=t[s])||Z(h))return Qd.Not;for(c=0;c<h.length&&c<5;c++)if(null!=(a=m(h[c])))return a}else if(e===Yd)for(var f=t,c=0;c<f.length&&c<5;c++){var g,y=Gu(g=f[c]);if(!F(y))return Qd.Not;if(null!=(a=m(y[r])))return a}function m(t){var e=H(t);return null!=t&&isFinite(t)&&""!==t?e?Qd.Might:Qd.Not:e&&"-"!==t?Qd.Must:void 0}return Qd.Not}var sf,lf,uf,hf=ct();var cf,pf="\0_ec_inner",df=(l(ff,cf=Hc),ff.prototype.init=function(t,e,n,i,o,r){i=i||{},this.option=null,this._theme=new Hc(i),this._locale=new Hc(o),this._optionManager=r},ff.prototype.setOption=function(t,e,n){ot(!(pf in t),"please use chart.getOption()");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)):uf(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||(o=o.getMediaOption(this)).length&&R(o,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,u=this._componentsMap,h=this._componentsCount,n=[],r=ct(),c=t&&t.replaceMergeMainTypeMap;tf(this).datasetMap=ct(),R(i,function(t,e){null!=t&&(Ed.hasClass(e)?e&&(n.push(e),r.set(e,!0)):o[e]=null==o[e]?C(t):w(o[e],t,!0))}),c&&c.each(function(t,e){r.get(e)||(n.push(e),r.set(e,!0))}),Ed.topologicalTravel(n,Ed.getAllClassMainTypes(),function(r){var t=function(t,e,n){return(e=hf.get(e))&&(t=e(t))?n.concat(t):n}(this,r,Bu(i[r])),e=u.get(r),n=e?c&&c.get(r)?"replaceMerge":"normalMerge":"replaceAll",n=Hu(e,t,n);ju(n,r,Ed),o[r]=null,u.set(r,null),h.set(r,0);var a=[],s=[],l=0;R(n,function(t,e){var n,i=t.existing,o=t.newOption;o?(n=Ed.getClass(r,t.keyInfo.subType,!0),i&&i.constructor===n?(i.name=t.keyInfo.name,i.mergeOption(o,this),i.optionUpdated(o,!1)):(e=N({componentIndex:e},t.keyInfo),N(i=new n(o,this,this,e),e),t.brandNew&&(i.__requireNewView=!0),i.init(o,this,this),i.optionUpdated(null,!0))):i&&(i.mergeOption({},this),i.optionUpdated({},!1)),i?(a.push(i.option),s.push(i),l++):(a.push(void 0),s.push(void 0))},this),o[r]=a,u.set(r,s),h.set(r,l),"series"===r&&sf(this)},this),this._seriesIndices||sf(this)},ff.prototype.getOption=function(){var a=C(this.option);return R(a,function(t,e){if(Ed.hasClass(e)){for(var n=Bu(t),i=n.length,o=!1,r=i-1;0<=r;r--)n[r]&&!qu(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.getLocale=function(t){return this.getLocaleModel().get(t)},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=t.mainType;if(!e)return[];var n,i=t.index,o=t.id,r=t.name,a=this._componentsMap.get(e);return a&&a.length?(null!=i?(n=[],R(Bu(i),function(t){a[t]&&n.push(a[t])})):n=null!=o?gf("id",o,a):null!=r?gf("name",r,a):O(a,function(t){return!!t}),yf(n,t)):[]},ff.prototype.findComponents=function(t){var e,n,i,o,r,a=t.query,s=t.mainType,l=(n=s+"Index",i=s+"Id",o=s+"Name",!(e=a)||null==e[n]&&null==e[i]&&null==e[o]?null:{mainType:s,index:e[n],id:e[i],name:e[o]}),l=l?this.queryComponents(l):O(this._componentsMap.get(s),function(t){return!!t});return r=yf(l,t),t.filter?O(r,t.filter):r},ff.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(G(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=H(t)?i.get(t):Y(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(e){return O(this._componentsMap.get("series"),function(t){return!!t&&t.name===e})},ff.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},ff.prototype.getSeriesByType=function(e){return O(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},ff.prototype.getSeries=function(){return O(this._componentsMap.get("series").slice(),function(t){return!!t})},ff.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},ff.prototype.eachSeries=function(n,i){lf(this),R(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)},this)},ff.prototype.eachRawSeries=function(e,n){R(this._componentsMap.get("series"),function(t){t&&e.call(n,t,t.componentIndex)})},ff.prototype.eachSeriesByType=function(n,i,o){lf(this),R(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 R(this.getSeriesByType(t),e,n)},ff.prototype.isSeriesFiltered=function(t){return lf(this),null==this._seriesIndicesMap.get(t.componentIndex)},ff.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},ff.prototype.filterSeries=function(n,i){lf(this);var o=[];R(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=ct(o)},ff.prototype.restoreData=function(n){sf(this);var t=this._componentsMap,i=[];t.each(function(t,e){i.push(e)}),Ed.topologicalTravel(i,Ed.getAllClassMainTypes(),function(e){R(t.get(e),function(t){!t||"series"===e&&function(t,e){if(e){var n=e.seriesIndex,i=e.seriesId,e=e.seriesName;return null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e}}(t,n)||t.restoreData()})})},ff.internalField=(sf=function(t){var e=t._seriesIndices=[];R(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=ct(e)},lf=function(t){0},void(uf=function(t,e){var n,i,o;t.option={},t.option[pf]=1,t._componentsMap=ct({series:[]}),t._componentsCount=ct(),n=e,i=t._theme.option,o=n.color&&!n.colorLayer,R(i,function(t,e){"colorLayer"===e&&o||Ed.hasClass(e)||("object"==typeof t?n[e]=n[e]?w(n[e],t,!1):C(t):null==n[e]&&(n[e]=t))}),w(e,Fd,!1),t._mergeOption(e,null)})),ff);function ff(){return null!==cf&&cf.apply(this,arguments)||this}function gf(e,n,t){if(F(n)){var i=ct(n);return R(n,function(t){null!=t&&i.set(t,!0)}),O(t,function(t){return t&&i.get(t[e])})}return O(t,function(t){return t&&t[e]===n+""})}function yf(t,e){return e.hasOwnProperty("subType")?O(t,function(t){return t&&t.subType===e.subType}):t}function mf(t){var e=ct();return t&&R(Bu(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}T(df,Hd);function vf(e){R(xf,function(t){this[t]=B(e[t],e)},this)}var xf=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel","getId","updateLabelLayout"],_f={},bf=(wf.prototype.create=function(n,i){var o=[];R(_f,function(t,e){t=t.create(n,i);o=o.concat(t||[])}),this._coordinateSystems=o},wf.prototype.update=function(e,n){R(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&&(R(Bu(t.series),function(t){t&&t.data&&Z(t.data)&&st(t.data)}),R(Bu(t.dataset),function(t){t&&t.source&&Z(t.source)&&st(t.source)})),t=C(t);var i=this._optionBackup,e=function(t,n,i){var e,o,r=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,h=!!t.media,c=!!(l||s||a&&a.timeline);a?(o=a).timeline||(o.timeline=s):((c||h)&&(t.options=t.media=null),o=t);h&&R(u,function(t){t&&t.option&&(t.query?r.push(t):e=e||t)});function p(e){R(n,function(t){t(e,i)})}return p(o),R(l,p),R(r,function(t){return p(t.option)}),{baseOption:o,timelineOptions:l||[],mediaDefault:e,mediaList:r}}(t,e,!i);this._newBaseOption=e.baseOption,i?(e.timelineOptions.length&&(i.timelineOptions=e.timelineOptions),e.mediaList.length&&(i.mediaList=e.mediaList),e.mediaDefault&&(i.mediaDefault=e.mediaDefault)):this._optionBackup=e},If.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],C(t?e.baseOption:this._newBaseOption)},If.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return!n.length||(t=t.getComponent("timeline"))&&(e=C(n[t.getCurrentIndex()])),e},If.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,r=[],a=[];if(!i.length&&!o)return a;for(var s,l,u=0,h=i.length;u<h;u++)!function(t,e,n){var i={width:e,height:n,aspectratio:e/n},o=!0;return R(t,function(t,e){var n=e.match(Sf);n&&n[1]&&n[2]&&(e=n[1],n=n[2].toLowerCase(),n=i[n],t=t,("min"===(e=e)?t<=n:"max"===e?n<=t:n===t)||(o=!1))}),o}(i[u].query,e,n)||r.push(u);return!r.length&&o&&(r=[-1]),r.length&&(s=r,l=this._currentMediaIndices,s.join(",")!==l.join(","))&&(a=L(r,function(t){return C((-1===t?o:i[t]).option)})),this._currentMediaIndices=r,a},If);function If(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}var Tf=R,Cf=Y,Df=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Af(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Df.length;n<i;n++){var o=Df[n],r=e.normal,a=e.emphasis;r&&r[o]&&(t[o]=t[o]||{},t[o].normal?w(t[o].normal,r[o]):t[o].normal=r[o],r[o]=null),a&&a[o]&&(t[o]=t[o]||{},t[o].emphasis?w(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,A(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){0;for(var o=0,r=Fu.length;o<r;o++){var a=Fu[o];i.hasOwnProperty(a)&&(n[a]=i[a])}}}function Nf(t){t&&(Lf(t),Pf(t,"label"),t.emphasis&&Pf(t.emphasis,"label"))}function Of(t){return F(t)?t:t?[t]:[]}function Rf(t){return(F(t)?t[0]:t)||{}}function Ef(e,t){Tf(Of(e.series),function(t){Cf(t)&&function(t){if(Cf(t)){Af(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;e&&(Af(e),Nf(e));var n=t.markLine;n&&(Af(n),Nf(n));var i=t.markArea;i&&Nf(i);var o=t.data;if("graph"===t.type){o=o||t.nodes;var r=t.links||t.edges;if(r&&!Z(r))for(var a=0;a<r.length;a++)Nf(r[a]);R(t.categories,function(t){Lf(t)})}if(o&&!Z(o))for(a=0;a<o.length;a++)Nf(o[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Nf(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)F(l[a])?(Nf(l[a][0]),Nf(l[a][1])):Nf(l[a]);"gauge"===t.type?(Pf(t,"axisLabel"),Pf(t,"title"),Pf(t,"detail")):"treemap"===t.type?(kf(t.breadcrumb,"itemStyle"),R(t.levels,function(t){Lf(t)})):"tree"===t.type&&Lf(t.leaves)}}(t)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Tf(n,function(t){Tf(Of(e[t]),function(t){t&&(Pf(t,"axisLabel"),Pf(t.axisPointer,"label"))})}),Tf(Of(e.parallel),function(t){t=t&&t.parallelAxisDefault;Pf(t,"axisLabel"),Pf(t&&t.axisPointer,"label")}),Tf(Of(e.calendar),function(t){kf(t,"itemStyle"),Pf(t,"dayLabel"),Pf(t,"monthLabel"),Pf(t,"yearLabel")}),Tf(Of(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(Of(e.geo),function(t){Cf(t)&&(Nf(t),Tf(Of(t.regions),function(t){Nf(t)}))}),Tf(Of(e.timeline),function(t){Nf(t),kf(t,"label"),kf(t,"itemStyle"),kf(t,"controlStyle",!0);t=t.data;F(t)&&R(t,function(t){Y(t)&&(kf(t,"label"),kf(t,"itemStyle"))})}),Tf(Of(e.toolbox),function(t){kf(t,"iconStyle"),Tf(t.feature,function(t){kf(t,"iconStyle")})}),Pf(Rf(e.axisPointer),"label"),Pf(Rf(e.tooltip).axisPointer,"label")}function zf(e){e&&R(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 Hf(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Wf(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Xf(e,t){Ef(e,t),e.series=Bu(e.series),R(e.series,function(t){if(Y(t)){var e,n,i=t.type;if("line"===i)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===i||"gauge"===i){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Hf(t.label),(e=t.data)&&!Z(e))for(var o=0;o<e.length;o++)Hf(e[o]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},(t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset))}else if("gauge"===i){var r=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");null!=r&&function(t,e,n,i){for(var o,r=e.split(","),a=t,s=0;s<r.length-1;s++)null==a[o=r[s]]&&(a[o]={}),a=a[o];!i&&null!=a[r[s]]||(a[r[s]]=n)}(t,"itemStyle.color",r)}else if("bar"===i){if(Gf(t),Gf(t.backgroundStyle),Gf(t.emphasis),(e=t.data)&&!Z(e))for(o=0;o<e.length;o++)"object"==typeof e[o]&&(Gf(e[o]),Gf(e[o]&&e[o].emphasis))}else{"sunburst"===i?((n=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=n)),Wf(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,Wf)):"graph"===i||"sankey"===i?(n=t)&&null!=n.focusNodeAdjacency&&(n.emphasis=n.emphasis||{},null==n.emphasis.focus&&(n.emphasis.focus="adjacency")):"map"===i&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&A(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),R(Vf,function(t){t=e[t];t&&(F(t)||(t=[t]),R(t,function(t){zf(t)}))})}function Yf(g){R(g,function(u,h){var c=[],p=[NaN,NaN],t=[u.stackResultDimension,u.stackedOverDimension],d=u.data,f=u.isStackedByIndex,t=d.map(t,function(t,e,n){var i,o,r=d.get(u.stackedDimension,n);if(isNaN(r))return p;f?o=d.getRawIndex(n):i=d.get(u.stackedByDimension,n);for(var a=NaN,s=h-1;0<=s;s--){var l=g[s];if(f||(o=l.data.rawIndexOf(l.stackedByDimension,i)),0<=o){l=l.data.getByRawIndex(l.stackResultDimension,o);if(0<=r&&0<l||r<=0&&l<0){r+=l,a=l;break}}}return c[0]=r,c[1]=a,c});d.hostModel.setData(t),u.data=t})}var Uf,Zf,qf=function(t){this.data=t.data||(t.sourceFormat===qd?{}:[]),this.sourceFormat=t.sourceFormat||Kd,this.seriesLayoutBy=t.seriesLayoutBy||$d,this.startIndex=t.startIndex||0,this.dimensionsDefine=t.dimensionsDefine,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.encodeDefine=t.encodeDefine,this.metaRawOption=t.metaRawOption};function jf(t){return t instanceof qf}function Kf(t,e,n,i){var o=function(t,e,n,i,o){var r,a;if(!t)return{dimensionsDefine:Qf(o),startIndex:a,dimensionsDetectedCount:r};{var s;e===Ud?(s=t,"auto"===i||null==i?tg(function(t){null!=t&&"-"!==t&&(H(t)?null==a&&(a=1):a=0)},n,s,10):a=X(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===Jd?s.length:s[0]?s[0].length:null):e===Zd?o=o||function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e){var i=[];return R(e,function(t,e){i.push(e)}),i}}(t):e===qd?o||(o=[],R(t,function(t,e){o.push(e)})):e===Yd&&(t=Gu(t[0]),r=F(t)&&t.length||1)}return{startIndex:a,dimensionsDefine:Qf(o),dimensionsDetectedCount:r}}(t,n=n||function(t){var e=Kd;if(Z(t))e=jd;else if(F(t)){0===t.length&&(e=Ud);for(var n=0,i=t.length;n<i;n++){var o=t[n];if(null!=o){if(F(o)){e=Ud;break}if(Y(o)){e=Zd;break}}}}else if(Y(t)){for(var r in t)if(ft(t,r)&&k(t[r])){e=qd;break}}else if(null!=t)throw new Error("Invalid data");return e}(t),e.seriesLayoutBy,e.sourceHeader,e.dimensions);return new qf({data:t,sourceFormat:n,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:o.dimensionsDefine,startIndex:o.startIndex,dimensionsDetectedCount:o.dimensionsDetectedCount,encodeDefine:Jf(i),metaRawOption:C(e)})}function $f(t){return new qf({data:t,sourceFormat:Z(t)?jd:Yd})}function Jf(t){return t?ct(t):null}function Qf(t){if(t){var i=ct();return L(t,function(t,e){if(null==(t=N({},Y(t)?t:{name:t})).name)return t;t.name+="",null==t.displayName&&(t.displayName=t.name);var n=i.get(t.name);return n?t.name+="-"+n.count++:i.set(t.name,{count:1}),t})}}function tg(t,e,n,i){if(e===Jd)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)}var eg=(ng.prototype.getSource=function(){return this._source},ng.prototype.count=function(){return 0},ng.prototype.getItem=function(t,e){},ng.prototype.appendData=function(t){},ng.prototype.clean=function(){},ng.protoInitialize=((Na=ng.prototype).pure=!1,void(Na.persistent=!0)),ng.internalField=function(){var t;Zf=function(t,e,n){var i=n.sourceFormat,o=n.seriesLayoutBy,r=n.startIndex,a=n.dimensionsDefine,n=Uf[ug(i,o)];N(t,n),i===jd?(t.getItem=s,t.count=u,t.fillStorage=l):(n=og(i,o),t.getItem=B(n,null,e,r,a),o=ag(i,o),t.count=B(o,null,e,r,a))};var s=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},l=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[(t+p)*r+a];(c[t+p]=d)<l&&(l=d),u<d&&(u=d)}s[0]=l,s[1]=u}},u=function(){return this._data?this._data.length/this._dimSize:0};function e(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[Ud+"_"+$d]={pure:!0,appendData:e},t[Ud+"_"+Jd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Zd]={pure:!0,appendData:e},t[qd]={pure:!0,appendData:function(t){var o=this._data;R(t,function(t,e){for(var n=o[e]||(o[e]=[]),i=0;i<(t||[]).length;i++)n.push(t[i])})}},t[Yd]={appendData:e},t[jd]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},Uf=t}(),ng);function ng(t,e){var n=jf(t)?t:$f(t);this._source=n;t=this._data=n.data;n.sourceFormat===jd&&(this._offset=0,this._dimSize=e,this._data=t),Zf(this,t,n)}var g=function(t,e,n,i){return t[i]},ig=((Bc={})[Ud+"_"+$d]=function(t,e,n,i){return t[i+e]},Bc[Ud+"_"+Jd]=function(t,e,n,i){i+=e;for(var o=[],r=t,a=0;a<r.length;a++){var s=r[a];o.push(s?s[i]:null)}return o},Bc[Zd]=g,Bc[qd]=function(t,e,n,i){for(var o=[],r=0;r<n.length;r++){var a=n[r].name;0;a=t[a];o.push(a?a[i]:null)}return o},Bc[Yd]=g,Bc);function og(t,e){e=ig[ug(t,e)];return e}var vh=function(t,e,n){return t.length},rg=((n={})[Ud+"_"+$d]=function(t,e,n){return Math.max(0,t.length-e)},n[Ud+"_"+Jd]=function(t,e,n){t=t[0];return t?Math.max(0,t.length-e):0},n[Zd]=vh,n[qd]=function(t,e,n){n=n[0].name;n=t[n];return n?n.length:0},n[Yd]=vh,n);function ag(t,e){e=rg[ug(t,e)];return e}var rp=function(t,e,n){return null!=e?t[e]:t},sg=(($l={})[Ud]=rp,$l[Zd]=function(t,e,n){return null!=e?t[n]:t},$l[qd]=rp,$l[Yd]=function(t,e,n){t=Gu(t);return null!=e&&t instanceof Array?t[e]:t},$l[jd]=rp,$l);function lg(t){t=sg[t];return t}function ug(t,e){return t===Ud?t+"_"+e:t}function hg(t,e,n){if(t){var i=t.getRawDataItem(e);if(null!=i){var o,r,e=t.getProvider().getSource().sourceFormat,n=t.getDimensionInfo(n);return n&&(o=n.name,r=n.index),lg(e)(i,r,o)}}}var cg=/\{@(.+?)\}/g,pg=(dg.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"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,t=this.mainType,s="series"===t,n=n.userOutput;return{componentType:t,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:s?this.subType:null,seriesIndex:this.seriesIndex,seriesId:s?this.id:null,seriesName:s?this.name:null,name:r,dataIndex:o,data:a,dataType:e,value:i,color:l,borderColor:u,dimensionNames:n?n.dimensionNames:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},dg.prototype.getFormattedLabel=function(i,t,e,n,o,r){t=t||"normal";var a=this.getData(e),e=this.getDataParams(i,e);return r&&N(e,r),null!=n&&e.value instanceof Array&&(e.value=e.value[n]),"function"==typeof(o=o||a.getItemModel(i).get("normal"===t?["label","formatter"]:[t,"label","formatter"]))?(e.status=t,e.dimensionIndex=n,o(e)):"string"==typeof o?fd(o,e).replace(cg,function(t,e){var n=e.length;return"["===e.charAt(0)&&"]"===e.charAt(n-1)&&(e=+e.slice(1,n-1)),hg(a,i,e)}):void 0},dg.prototype.getRawValue=function(t,e){return hg(this.getData(e),t)},dg.prototype.formatTooltip=function(t,e,n){},dg);function dg(){}function fg(t){var e,n;return Y(t)?t.type&&(n=t):e=t,{markupText:e,markupFragment:n}}function gg(t){return new yg(t)}var yg=(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=l(this._modBy),r=this._modDataCount||0,a=l(t&&t.modBy),s=t&&t.modDataCount||0;function l(t){return 1<=t||(t=1),t}o===a&&r===s||(e="reset"),!this._dirty&&"reset"!==e||(this._dirty=!1,d=this._doReset(i)),this._modBy=a,this._modDataCount=s;t=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var u=this._dueIndex,h=Math.min(null!=t?this._dueIndex+t:1/0,this._dueEnd);if(!i&&(d||u<h)){var c=this._progress;if(F(c))for(var p=0;p<c.length;p++)this._doProgress(c[p],u,h,a,s);else this._doProgress(c,u,h,a,s)}this._dueIndex=h;var d=null!=this._settedOutputEnd?this._settedOutputEnd:h;0,this._outputDueEnd=d}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){Mg.reset(e,n,i,o),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Mg.next},this.context)},mg.prototype._doReset=function(t){var e;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((n=this._reset(this.context))&&n.progress&&(e=n.forceFirstProgress,n=n.progress),F(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),e},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},mg);function mg(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}var vg,xg,_g,bg,wg,Sg,Mg=Sg={reset:function(t,e,n,i){xg=t,vg=e,_g=n,bg=i,wg=Math.ceil(bg/_g),Sg.next=1<_g&&0<bg?Tg:Ig}};function Ig(){return xg<vg?xg++:null}function Tg(){var t=xg%wg*_g+Math.ceil(xg/wg),t=vg<=xg?null:t<bg?t:xg;return xg++,t}function Cg(t,e){var n=e&&e.type;if("ordinal"!==n)return"time"===n&&"number"!=typeof t&&null!=t&&"-"!==t&&(t=+Tu(t)),null==t||""===t?NaN:+t;e=e&&e.ordinalMeta;return e?e.parseAndCollect(t):t}var Dg=ct({number:function(t){return parseFloat(t)},time:function(t){return+Tu(t)},trim:function(t){return"string"==typeof t?rt(t):t}});function Ag(t){return Dg.get(t)}var kg={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}},Lg=(Pg.prototype.evaluate=function(t){return"number"==typeof t?this._opFn(t,this._rvalFloat):this._opFn(Pu(t),this._rvalFloat)},Pg);function Pg(t,e){"number"!=typeof e&&mc(""),this._opFn=kg[t],this._rvalFloat=Pu(e)}var Ng=(Og.prototype.evaluate=function(t,e){var n=typeof t,i=typeof e,o="number"==n?t:Pu(t),r="number"==i?e:Pu(e),a=isNaN(o),s=isNaN(r);return a&&(o=this._incomparable),s&&(r=this._incomparable),a&&s&&(i="string"==i,(n="string"==n)&&(o=i?t:0),i&&(r=n?e:0)),o<r?this._resultLT:r<o?-this._resultLT:0},Og);function Og(t,e){t="desc"===t;this._resultLT=t?1:-1,null==e&&(e=t?"min":"max"),this._incomparable="min"===e?-1/0:1/0}var Rg=(Eg.prototype.evaluate=function(t){var e,n=t===this._rval;return n||((e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=Pu(t)===this._rvalFloat)),this._isEQ?n:!n},Eg);function Eg(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Pu(e)}var zg=(Bg.prototype.getDimensionInfo=function(t){},Bg.prototype.getDimensionInfoAll=function(){},Bg.prototype.getRawDataItem=function(t){},Bg.prototype.getRawHeaderItem=function(t){},Bg.prototype.count=function(){},Bg.prototype.retrieveItemValue=function(t,e){},Bg.prototype.convertDataValue=Cg,Bg);function Bg(){}function Vg(t){var e=new zg,n=e.data=t.data,i=e.sourceFormat=t.sourceFormat,o=e.sourceHeaderCount=t.startIndex,r=[],a={},s=t.dimensionsDefine;if(s)R(s,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};r.push(e),null!=n&&(t="",ft(a,n)&&mc(t),a[n]=e)});else for(var l=0;l<t.dimensionsDetectedCount;l++)r.push({index:l});var u=og(i,$d);e.getRawDataItem=B(u,null,n,o,r),e.getRawHeaderItem=function(t){if(t<o)return u(n,0,r,t)};s=ag(i,$d);e.count=B(s,null,n,o,r);var h=lg(i);return e.retrieveItemValue=function(t,e){if(null!=t){var n=r[e];return n?h(t,e,n.name):void 0}},e.getDimensionInfo=B(Fg,null,r,a),e.getDimensionInfoAll=B(Gg,null,r),e}function Fg(t,e,n){if(null!=n)return"number"==typeof n||!isNaN(n)&&!ft(e,n)?t[n]:ft(e,n)?e[n]:void 0}function Gg(t){return t}var Hg=ct();function Wg(t,e){var n=Bu(t),i=n.length,t="";i||mc(t);for(var o=0,r=i;o<r;o++){e=function(t,n){var e="";n.length||mc(e);Y(t)||mc(e);var i=t.type,i=Hg.get(i);i||mc(e);e=L(n,Vg),t=Bu(i.transform({source:e[0],sourceList:e,config:C(t.config)}));{}return L(t,function(t){var e="";Y(t)||mc(e),Y(t.data)||k(t.data)||mc(e);e=ef({parent:n[0].metaRawOption,thisNew:{seriesLayoutBy:$d,sourceHeader:t.sourceHeader,dimensions:t.dimensions}});return Kf(t.data,e,null,null)})}(n[o],e),o!==r-1&&(e.length=Math.max(e.length,1))}return e}var Xg=(Yg.prototype.dirty=function(){this._setLocalSource([],[])},Yg.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},Yg.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Yg.prototype.prepareSource=function(){this._isDirty()&&this._createSource()},Yg.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,o,r=this._sourceHost,a=this._getUpstreamSourceManagers(),s=!!a.length;Zg(r)?(o=r,n=e=t=void 0,i=s?((i=a[0]).prepareSource(),t=(n=i.getSource()).data,e=n.sourceFormat,[i._getVersionSign()]):(e=Z(t=o.get("data",!0))?jd:Yd,[]),o=[Kf(t,ef({parent:n?n.metaRawOption:null,thisNew:this._createSourceMetaRawOption()}),e,o.get("encode",!0))]):(r=r,i=s?(o=(a=this._applyTransform(a)).sourceList,a.upstreamSignList):(o=[Kf(r.get("source",!0),this._createSourceMetaRawOption(),null,null)],[])),this._setLocalSource(o,i)},Yg.prototype._applyTransform=function(t){var e,n,i=this._sourceHost,o=i.get("transform",!0),r=i.get("fromTransformResult",!0);null!=r&&(e="",1!==t.length&&qg(e));var a=[],s=[];return R(t,function(t){t.prepareSource();var e=t.getSource(r||0),n="";null==r||e||qg(n),a.push(e),s.push(t._getVersionSign())}),o?n=Wg(o,a,i.componentIndex):null!=r&&(n=[(i=a[0],new qf({data:i.data,sourceFormat:i.sourceFormat,seriesLayoutBy:i.seriesLayoutBy,dimensionsDefine:C(i.dimensionsDefine),startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,encodeDefine:Jf(i.encodeDefine)}))]),{sourceList:n,upstreamSignList:s}},Yg.prototype._isDirty=function(){if(!this._sourceList.length)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}},Yg.prototype.getSource=function(t){return this._sourceList[t||0]},Yg.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Zg(t)){var e=rf(t);return e?[e.getSourceManager()]:[]}return L((t=t).get("transform",!0)||t.get("fromTransformResult",!0)?nh(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},th).models:[],function(t){return t.getSourceManager()})},Yg.prototype._createSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return Zg(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}},Yg);function Yg(t){this._sourceList=[],this._upstreamSignList=[],this._versionSignBase=0,this._sourceHost=t}function Ug(t){t.option.transform&&st(t.option.transform)}function Zg(t){return"series"===t.mainType}function qg(t){throw new Error(t)}var jg="font-size:12px;color:#6e7079",Kg={fontSize:12,fill:"#6e7079"},$g={fontSize:14,fill:"#464646",fontWeight:900},Jg="line-height:1",Qg=[0,10,20,30],ty=["","\n","\n\n","\n\n\n"];function ey(t,e){return e.type=t,e}function ny(t){return ft(iy,t.type)&&iy[t.type]}var iy={section:{planLayout:function(t){var e=t.blocks.length,n=1<e||0<e&&!t.noHeader,i=0;R(t.blocks,function(t){ny(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;i<=e&&(i=e+(!n||e&&("section"!==t.type||t.noHeader)?0:1))}),t.__gapLevelBetweenSubBlocks=i},build:function(t,e,n){var i=e.noHeader,o=ry(e),r=function(n,t,e){var i=[],o=t.blocks||[];ot(!o||F(o)),o=o||[];var r=n.orderMode;{var a,s;t.sortBlocks&&r&&(o=o.slice(),ft(a={valueAsc:"asc",valueDesc:"desc"},r)?(s=new Ng(a[r],null),o.sort(function(t,e){return s.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===r&&o.reverse())}var l=ry(t);return R(o,function(t,e){e=ny(t).build(n,t,0<e?l.html:0);null!=e&&i.push(e)}),i.length?"richText"===n.renderMode?i.join(l.richText):ay(i.join(""),e):void 0}(t,e,i?n:o.html);if(i)return r;e=cd(e.header,"ordinal");return"richText"===t.renderMode?sy(t,e)+o.richText+r:ay('<div style="'+jg+";"+Jg+';">'+hd(e)+"</div>"+r,n)}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,n){var i=t.renderMode,o=e.noName,r=e.noValue,a=!e.markerType,s=e.name,l=e.value;if(!o||!r){var u=a?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),h=o?"":cd(s,"ordinal"),c=e.valueType,p=r?[]:F(l)?L(l,function(t,e){return cd(t,F(c)?c[e]:c)}):[cd(l,F(c)?c[0]:c)],d=!a||!o,s=!a&&o;return"richText"===i?(a?"":u)+(o?"":sy(t,h))+(r?"":(e=t,l=p,i=[$g],t=(t=s)?10:20,d&&i.push({padding:[0,0,0,t],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(l.join("  "),i))):ay((a?"":u)+(o?"":'<span style="'+jg+";"+(!a?"margin-left:2px":"")+'">'+hd(h)+"</span>")+(r?"":function(t,e,n){n=n?"10px":"20px";return'<span style="'+(e?"float:right;margin-left:"+n:"")+';font-size:14px;color:#464646;font-weight:900">'+L(t,hd).join("&nbsp;&nbsp;")+"</span>"}(p,d,s)),n)}}}};function oy(t,e,n,i){if(t){var o=ny(t);o.planLayout(t);e={renderMode:n,orderMode:i,markupStyleCreator:e};return o.build(e,t,0)}}function ry(t){t=t.__gapLevelBetweenSubBlocks;return{html:Qg[t],richText:ty[t]}}function ay(t,e){return'<div style="'+("margin: "+e+"px 0 0")+";"+Jg+';">'+t+'<div style="clear:both"></div></div>'}function sy(t,e){return t.markupStyleCreator.wrapRichTextStyle(e,Kg)}function ly(t,e){return md(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function uy(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}var hy=(cy.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},cy.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,n=yd({color:e,type:t,renderMode:n,markerId:i});return H(n)?n:(this.richTextStyles[i]=n.style,n.content)},cy.prototype.wrapRichTextStyle=function(t,e){var n={};F(e)?R(e,function(t){return N(n,t)}):N(n,e);e=this._generateStyleName();return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"},cy);function cy(){this.richTextStyles={},this._nextStyleNameId=Ou()}function py(t){var e,n,i,o,r,a,s,l,u,h,c,p=t.series,d=t.dataIndex,f=t.multipleSeries,g=p.getData(),y=g.mapDimensionsAll("defaultedTooltip"),m=y.length,v=p.getRawValue(d),x=F(v),t=ly(p,d);function _(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(ey("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),h.push(e.type)))}1<m||x&&!m?(e=(n=(i=v,o=d,r=y,a=t,s=p.getData(),l=P(i,function(t,e,n){n=s.getDimensionInfo(n);return t||n&&!1!==n.tooltip&&null!=n.displayName},!1),u=[],h=[],c=[],r.length?R(r,function(t){_(hg(s,o,t),t)}):R(i,_),{inlineValues:u,inlineValueTypes:h,blocks:c})).inlineValueTypes,r=n.blocks,n=(i=n.inlineValues)[0]):m?(m=g.getDimensionInfo(y[0]),n=i=hg(g,d,y[0]),e=m.type):n=i=x?v[0]:v;v=Zu(p),p=v&&p.name||"",d=g.getName(d),d=f?p:d;return ey("section",{header:p,noHeader:f||!v,sortParam:n,blocks:[ey("nameValue",{markerType:"item",markerColor:t,name:d,noName:!rt(d),value:i,valueType:e})].concat(r||[])})}var dy=$u();function fy(t,e){return t.getName(e)||t.getId(e)}var gy,yy=(l(my,gy=Ed),my.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=gg({count:xy,reset:_y}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(dy(this).sourceManager=new Xg(this)).prepareSource();n=this.getInitialData(t,n);wy(n,this),this.dataTask.context.data=n,dy(this).dataBeforeProcessed=n,vy(this),this._initSelectedMapFromData(n)},my.prototype.mergeDefaultAndTheme=function(t,e){var n=Cd(this),i=n?Ad(t):{},o=this.subType;Ed.hasClass(o),w(t,e.getTheme().get(this.subType)),w(t,this.getDefaultOption()),Vu(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Dd(t,i,n)},my.prototype.mergeOption=function(t,e){t=w(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Cd(this);n&&Dd(this.option,t,n);n=dy(this).sourceManager;n.dirty(),n.prepareSource();e=this.getInitialData(t,e);wy(e,this),this.dataTask.dirty(),this.dataTask.context.data=e,dy(this).dataBeforeProcessed=e,vy(this),this._initSelectedMapFromData(e)},my.prototype.fillDataTextStyle=function(t){if(t&&!Z(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Vu(t[n],"label",e)},my.prototype.getInitialData=function(t,e){},my.prototype.appendData=function(t){this.getRawData().appendData(t.data)},my.prototype.getData=function(t){var e=My(this);if(e){e=e.context.data;return null==t?e:e.getLinkedData(t)}return dy(this).data},my.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},my.prototype.setData=function(t){var e,n=My(this);n&&((e=n.context).outputData=t,n!==this.dataTask&&(e.data=t)),dy(this).data=t},my.prototype.getSource=function(){return dy(this).sourceManager.getSource()},my.prototype.getRawData=function(){return dy(this).dataBeforeProcessed},my.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},my.prototype.formatTooltip=function(t,e,n){return py({series:this,dataIndex:t,multipleSeries:e})},my.prototype.isAnimationEnabled=function(){if(v.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),!!t},my.prototype.restoreData=function(){this.dataTask.dirty()},my.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Hd.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},my.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},my.prototype.getProgressive=function(){return this.get("progressive")},my.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},my.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},my.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n)for(var i=this.getData(e),o=0;o<t.length;o++){var r=fy(i,t[o]);n[r]=!1,this._selectedDataIndicesMap[r]=-1}},my.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)},my.prototype.getSelectedDataIndices=function(){for(var t=this._selectedDataIndicesMap,e=z(t),n=[],i=0;i<e.length;i++){var o=t[e[i]];0<=o&&n.push(o)}return n},my.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return n&&n[fy(this.getData(e),t)]||!1},my.prototype._innerSelect=function(t,e){var n,i=this.option.selectedMode,o=e.length;if(i&&o)if("multiple"===i)for(var r=this.option.selectedMap||(this.option.selectedMap={}),a=0;a<o;a++){var s,l=e[a];r[s=fy(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}else"single"!==i&&!0!==i||(s=fy(t,n=e[o-1]),this.option.selectedMap=((i={})[s]=!0,i),this._selectedDataIndicesMap=((i={})[s]=t.getRawIndex(n),i))},my.prototype._initSelectedMapFromData=function(n){var i;this.option.selectedMap||(i=[],n.hasItemOption&&n.each(function(t){var e=n.getRawDataItem(t);"object"==typeof e&&e.selected&&i.push(t)}),0<i.length&&this._innerSelect(n,i))},my.registerClass=function(t){return Ed.registerClass(t)},my.protoInitialize=((Vd=my.prototype).type="series.__base__",Vd.seriesIndex=0,Vd.useColorPaletteOnData=!1,Vd.ignoreStyleOnData=!1,Vd.hasSymbolVisual=!1,Vd.defaultSymbol="circle",Vd.visualStyleAccessPath="itemStyle",void(Vd.visualDrawType="fill")),my);function my(){var t=null!==gy&&gy.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function vy(t){var e,n,i=t.name;Zu(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],R(t,function(t){t=e.getDimensionInfo(t);t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function xy(t){return t.model.getRawData().count()}function _y(t){t=t.model;return t.setData(t.getRawData().cloneShallow()),by}function by(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function wy(e,n){R(a(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,V(Sy,n))})}function Sy(t,e){t=My(t);return t&&t.setOutputEnd((e||this).count()),e}function My(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){e=n.currentTask;return!e||(n=e.agentStubMap)&&(e=n.get(t.uid)),e}}T(yy,pg),T(yy,Hd),ch(yy,Ed);var Iy=(Ty.prototype.init=function(t,e){},Ty.prototype.render=function(t,e,n,i){},Ty.prototype.dispose=function(t,e){},Ty.prototype.updateView=function(t,e,n,i){},Ty.prototype.updateLayout=function(t,e,n,i){},Ty.prototype.updateVisual=function(t,e,n,i){},Ty.prototype.blurSeries=function(t,e){},Ty);function Ty(){this.group=new qr,this.uid=Yc("viewComponent")}function Cy(){var r=$u();return function(t){var e=r(t),n=t.pipelineContext,i=!!e.large,o=!!e.progressiveRender,t=e.large=!(!n||!n.large),n=e.progressiveRender=!(!n||!n.progressiveRender);return!(i==t&&o==n)&&"reset"}}hh(Iy),gh(Iy,{registerWhenExtend:!0});var Dy=$u(),Ay=Cy(),ky=(Ly.prototype.init=function(t,e){},Ly.prototype.render=function(t,e,n,i){},Ly.prototype.highlight=function(t,e,n,i){Ny(t.getData(),i,"emphasis")},Ly.prototype.downplay=function(t,e,n,i){Ny(t.getData(),i,"normal")},Ly.prototype.remove=function(t,e){this.group.removeAll()},Ly.prototype.dispose=function(t,e){},Ly.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},Ly.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},Ly.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},Ly.markUpdateMethod=function(t,e){Dy(t).updateMethod=e},Ly.protoInitialize=void(Ly.prototype.type="chart"),Ly);function Ly(){this.group=new qr,this.uid=Yc("viewChart"),this.renderTask=gg({plan:Oy,reset:Ry}),this.renderTask.context={view:this}}function Py(t,e,n){t&&("emphasis"===e?Jh:Qh)(t,n)}function Ny(e,t,n){var i,o=Ku(e,t),r=t&&null!=t.highlightKey?(i=t.highlightKey,null==(t=wh[i])&&bh<=32&&(t=wh[i]=bh++),t):null;null!=o?R(Bu(o),function(t){Py(e.getItemGraphicEl(t),n,r)}):e.eachItemGraphicEl(function(t){Py(t,n,r)})}function Oy(t){return Ay(t.model)}function Ry(t){var e=t.model,n=t.ecModel,i=t.api,o=t.payload,r=e.pipelineContext.progressiveRender,a=t.view,t=o&&Dy(o).updateMethod,t=r?"incrementalPrepareRender":t&&a[t]?t:"render";return"render"!==t&&a[t](e,n,i,o),Ey[t]}hh(ky),gh(ky,{registerWhenExtend:!0});var Ey={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)}}},zy="\0__throttleOriginMethod",By="\0__throttleRate",Vy="\0__throttleType";function Fy(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 Gy(t,e,n,i){var o=t[e];if(o){var r=o[zy]||o,a=o[Vy];if(o[By]!==n||a!==i){if(null==n||!i)return t[e]=r;(o=t[e]=Fy(r,n,"debounce"===i))[zy]=r,o[Vy]=i,o[By]=n}return o}}var Hy=$u(),Wy={itemStyle:yh(Ec,!0),lineStyle:yh(r,!0)},Xy={lineStyle:"stroke",itemStyle:"fill"};function Yy(t,e){t=t.visualStyleMapper||Wy[e];return t||(console.warn("Unkown style type '"+e+"'."),Wy.itemStyle)}function Uy(t,e){t=t.visualDrawType||Xy[e];return t||(console.warn("Unkown style type '"+e+"'."),"fill")}var Na={createOnAllSeries:!0,performRawSeries:!0,reset:function(o,t){var e=o.getData(),n=o.visualStyleAccessPath||"itemStyle",i=o.getModel(n),r=Yy(o,n)(i),a=Uy(o,n),n=r[a],s=G(n)?n:null;if(r[a]&&!s||(r[a]=o.getColorFromPalette(o.name,null,t.getSeriesCount()),e.setVisual("colorFromPalette",!0)),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=N({},r);i[a]=s(n),t.setItemVisual(e,"style",i)}}}},Zy=new Hc,g={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var e=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=Yy(t,i),r=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(t,e){var n=t.getRawDataItem(e);n&&n[i]&&(Zy.option=n[i],n=o(Zy),N(t.ensureUniqueItemVisual(e,"style"),n),r in n&&t.setItemVisual(e,"colorFromPalette",!1))}:null}}}},Bc={createOnAllSeries:!0,performRawSeries:!0,overallReset:function(e){var n=ct();e.eachSeries(function(t){var e;t.useColorPaletteOnData&&((e=n.get(t.type))||(e={},n.set(t.type,e)),Hy(t).scope=e)}),e.eachSeries(function(n){var i,o,r,a,t,s;n.useColorPaletteOnData&&!e.isSeriesFiltered(n)&&(i=n.getRawData(),o={},r=n.getData(),a=Hy(n).scope,t=n.visualStyleAccessPath||"itemStyle",s=Uy(n,t),r.each(function(t){var e=r.getRawIndex(t);o[e]=t}),i.each(function(t){var e=o[t];r.getItemVisual(e,"colorFromPalette")&&(r.ensureUniqueItemVisual(e,"style")[s]=n.getColorFromPalette(i.getName(t)||t+"",a,i.count()))}))})}};function qy(t,u){var h,c,p,e,d,r=u.getModel("aria");function f(t,e){if("string"!=typeof t)return t;var n=t;return R(e,function(t,e){n=n.replace(new RegExp("\\{\\s*"+e+"\\s*\\}","g"),t)}),n}function g(t){var e=r.get(t);if(null!=e)return e;for(var n=t.split("."),i=u.getLocale("aria"),o=0;o<n.length;++o)i=i[n[o]];return i}r.get("show")&&(r.get("description")?t.setAttribute("aria-label",r.get("description")):(h=0,u.eachSeries(function(t,e){++h},this),c=r.get("data.maxCount")||10,e=r.get("series.maxCount")||10,p=Math.min(h,e),h<1||(e=(e=function(){var t=u.getModel("title").option;t&&t.length&&(t=t[0]);return t&&t.text}())?f(g("general.withTitle"),{title:e}):g("general.withoutTitle"),d=[],e+=f(g(1<h?"series.multiple.prefix":"series.single.prefix"),{seriesCount:h}),u.eachSeries(function(t,e){if(e<p){var n=void 0,i=t.get("name"),e="series."+(1<h?"multiple":"single")+".";n=f(n=g(i?e+"withName":e+"withoutName"),{seriesId:t.seriesIndex,seriesName:t.get("name"),seriesType:(e=t.subType,u.getLocale(["series","typeNames"])[e]||"自定义图")});var o=t.getData();(window.data=o).count()>c?n+=f(g("data.partialData"),{displayCnt:c}):n+=g("data.allData");for(var r,a,s=[],l=0;l<o.count();l++){l<c&&(r=o.getName(l),a=hg(o,l),s.push(f(g(r?"data.withName":"data.withoutName"),{name:r,value:a})))}n+=s.join(g("data.separator.middle"))+g("data.separator.end"),d.push(n)}}),e+=d.join(g("series.multiple.separator.middle"))+g("series.multiple.separator.end"),t.setAttribute("aria-label",e))))}var jy=Math.PI;var Ky=($y.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){t=t.overallTask;t&&t.dirty()})},$y.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,n=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,i=i&&i.modDataCount;return{step:n,modBy:null!=i?Math.ceil(i/n):null,modDataCount:i}}},$y.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},$y.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),o=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,e=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:i,large:e}},$y.prototype.restorePipelines=function(t){var i=this,o=i._pipelineMap=ct();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)})},$y.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.ecInstance.getModel(),o=this.api;R(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});t.reset&&this._createSeriesStageTask(t,e,i,o),t.overallReset&&this._createOverallStageTask(t,e,i,o)},this)},$y.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)},$y.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},$y.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},$y.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))}R(t,function(i,t){var e,n,o,r,a;u.visualType&&u.visualType!==i.visualType||(e=(r=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=r.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},$y.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},$y.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())})},$y.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},$y.prototype._createSeriesStageTask=function(n,t,i,o){var r=this,a=t.seriesTaskMap||(t.seriesTaskMap=ct()),e=n.seriesType,t=n.getTargetSeries;function s(t){var e=t.uid,e=a.get(e)||a.set(e,gg({plan:nm,reset:im,count:am}));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(s):e?i.eachRawSeriesByType(e,s):t&&t(i,o).each(s);var l=r._pipelineMap;a.each(function(t,e){l.get(e)||(t.dispose(),a.removeKey(e))})},$y.prototype._createOverallStageTask=function(t,e,n,i){var o=this,r=e.overallTask=e.overallTask||gg({reset:Jy});r.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var a=r.agentStubMap=r.agentStubMap||ct(),e=t.seriesType,t=t.getTargetSeries,s=!0;function l(t){var e=t.uid,n=a.get(e);n||(n=a.set(e,gg({reset:Qy,onDirty:em})),r.dirty()),n.context={model:t,overallProgress:s},n.agent=r,n.__block=s,o._pipe(t,n)}e?n.eachRawSeriesByType(e,l):t?t(n,i).each(l):(s=!1,R(n.getSeries(),l));var u=o._pipelineMap;a.each(function(t,e){u.get(e)||(t.dispose(),r.dirty(),a.removeKey(e))})},$y.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},$y.wrapStageHandler=function(t,e){return G(t)&&(t={overallReset:t,seriesType:function(t){sm=null;try{t(lm,um)}catch(t){}return sm}(t)}),t.uid=Yc("stageHandler"),e&&(t.visualType=e),t},$y);function $y(t,e,n,i){this._stageTaskMap=ct(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Jy(t){t.overallReset(t.ecModel,t.api,t.payload)}function Qy(t){return t.overallProgress&&tm}function tm(){this.agent.dirty(),this.getDownstream().dirty()}function em(){this.agent&&this.agent.dirty()}function nm(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function im(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Bu(t.reset(t.model,t.ecModel,t.api,t.payload));return 1<t.length?L(t,function(t,e){return rm(e)}):om}var om=rm(0);function rm(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 am(t){return t.data.count()}var sm,lm={},um={};function hm(t,e){for(var n in e.prototype)t[n]=gt}hm(lm,df),hm(um,vf),lm.eachSeriesByType=lm.eachRawSeriesByType=function(t){sm=t},lm.eachComponent=function(t){"series"===t.mainType&&t.subType&&(sm=t.subType)};var vh=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],n={color:vh,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],vh]},cm="#B9B8CE",rp="#100C2A",$l=function(){return{axisLine:{lineStyle:{color:cm}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Vd=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Ec={darkMode:!0,color:Vd,backgroundColor:rp,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:cm}},textStyle:{color:cm},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:cm}},dataZoom:{borderColor:"#71708A",textStyle:{color:cm},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:cm}},timeline:{lineStyle:{color:cm},label:{textStyle:{color:cm}},controlStyle:{color:cm,borderColor:cm}},calendar:{itemStyle:{color:rp},dayLabel:{color:cm},monthLabel:{color:cm},yearLabel:{color:cm}},timeAxis:$l(),logAxis:$l(),valueAxis:$l(),categoryAxis:$l(),line:{symbol:"circle"},graph:{color:Vd},gauge:{title:{textStyle:{color:cm}}},candlestick:{itemStyle:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}};Ec.categoryAxis.splitLine.show=!1;var pm,r=(l(dm,pm=Ed),dm.prototype.init=function(t,e,n){pm.prototype.init.call(this,t,e,n),this._sourceManager=new Xg(this),Ug(this)},dm.prototype.mergeOption=function(t,e){pm.prototype.mergeOption.call(this,t,e),Ug(this)},dm.prototype.optionUpdated=function(){this._sourceManager.dirty()},dm.prototype.getSourceManager=function(){return this._sourceManager},dm.type="dataset",dm.defaultOption={seriesLayoutBy:$d},dm);function dm(){var t=null!==pm&&pm.apply(this,arguments)||this;return t.type="dataset",t}Ed.registerClass(r);var fm,vh=(l(gm,fm=Iy),gm.type="dataset",gm);function gm(){var t=null!==fm&&fm.apply(this,arguments)||this;return t.type="dataset",t}Iy.registerClass(vh);var ym=ct(),mm=function(t,e,n){var i,n=F(e)?e:e.svg?[{type:"svg",source:e.svg,specialAreas:e.specialAreas}]:((i=e.geoJson||e.geoJSON)&&!e.features&&(n=e.specialAreas,e=i),[{type:"geoJSON",source:e,specialAreas:n}]);return R(n,function(t){var e=t.type;"geoJson"===e&&(e=t.type="geoJSON");e=xm[e];e(t)}),ym.set(t,n)},vm=function(t){return ym.get(t)},xm={geoJSON:function(t){var e=t.source;t.geoJSON=H(e)?"undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e},svg:function(t){t.svgXML=Xa(t.source)}},_m=(bm.prototype.normalizeQuery=function(t){var e,a,s,l={},u={},h={};return H(t)?(e=uh(t),l.mainType=e.main||null,l.subType=e.sub||null):(a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1},R(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}},bm.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,o=n.packedEvent,r=n.model,a=n.view;if(!r||!a)return!0;var s=e.cptQuery,n=e.dataQuery;return l(s,r,"mainType")&&l(s,r,"subType")&&l(s,r,"index","componentIndex")&&l(s,r,"name")&&l(s,r,"id")&&l(n,o,"name")&&l(n,o,"dataIndex")&&l(n,o,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,o));function l(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},bm.prototype.afterTrigger=function(){this.eventInfo=null},bm);function bm(){}rp={createOnAllSeries:!0,performRawSeries:!0,reset:function(o,t){var e=o.getData();if(o.legendSymbol&&e.setVisual("legendSymbol",o.legendSymbol),o.hasSymbolVisual){var r=o.get("symbol"),a=o.get("symbolSize"),n=o.get("symbolKeepAspect"),s=o.get("symbolRotate"),l=G(r),u=G(a),h=G(s),i=l||u||h,c=!l&&r?r:o.defaultSymbol,p=u?null:a,d=h?null:s;if(e.setVisual({legendSymbol:o.legendSymbol||c,symbol:c,symbolSize:p,symbolKeepAspect:n,symbolRotate:d}),!t.isSeriesFiltered(o))return{dataEach:i?function(t,e){var n=o.getRawValue(e),i=o.getDataParams(e);l&&t.setItemVisual(e,"symbol",r(n,i)),u&&t.setItemVisual(e,"symbolSize",a(n,i)),h&&t.setItemVisual(e,"symbolRotate",s(n,i))}:null}}}},$l={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){var n=(r=t.getItemModel(e)).getShallow("symbol",!0),i=r.getShallow("symbolSize",!0),o=r.getShallow("symbolRotate",!0),r=r.getShallow("symbolKeepAspect",!0);null!=n&&t.setItemVisual(e,"symbol",n),null!=i&&t.setItemVisual(e,"symbolSize",i),null!=o&&t.setItemVisual(e,"symbolRotate",o),null!=r&&t.setItemVisual(e,"symbolKeepAspect",r)}:null}}};function wm(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);default:0}}function Sm(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);default:0}}function Mm(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i);break;default:0}}var Im=2*Math.PI,Tm=ar.CMD,Cm=["top","right","bottom","left"];function Dm(t,e,n,i,o,r,a,s){var l=o-t,u=r-e,h=n-t,n=i-e,i=Math.sqrt(h*h+n*n),u=(l*(h/=i)+u*(n/=i))/i;s&&(u=Math.min(Math.max(u,0),1)),u*=i;h=a[0]=t+u*h,n=a[1]=e+u*n;return Math.sqrt((h-o)*(h-o)+(n-r)*(n-r))}function Am(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,n=a[0]=Math.min(Math.max(o,t),n),i=a[1]=Math.min(Math.max(r,e),i);return Math.sqrt((n-o)*(n-o)+(i-r)*(i-r))}var km=[];function Lm(t,e,n){for(var i=0,o=0,r=0,a=0,s=1/0,l=e.data,u=t.x,h=t.y,c=0;c<l.length;){var p=l[c++];1===c&&(r=i=l[c],a=o=l[c+1]);var d=s;switch(p){case Tm.M:i=r=l[c++],o=a=l[c++];break;case Tm.L:d=Dm(i,o,l[c],l[c+1],u,h,km,!0),i=l[c++],o=l[c++];break;case Tm.C:d=So(i,o,l[c++],l[c++],l[c++],l[c++],l[c],l[c+1],u,h,km),i=l[c++],o=l[c++];break;case Tm.Q:d=Do(i,o,l[c++],l[c++],l[c],l[c+1],u,h,km),i=l[c++],o=l[c++];break;case Tm.A:var f=l[c++],g=l[c++],y=l[c++],m=l[c++],v=l[c++],x=l[c++];c+=1;var _=!!(1-l[c++]),b=Math.cos(v)*y+f,p=Math.sin(v)*m+g;c<=1&&(r=b,a=p);d=function(t,e,n,i,o,r,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),h=(a/=u)*n+t,c=(s/=u)*n+e;if(Math.abs(i-o)%Im<1e-4)return l[0]=h,l[1]=c,u-n;(o=r?(p=i,i=cr(o),cr(p)):(i=cr(i),cr(o)))<i&&(o+=Im);var p=Math.atan2(s,a);return p<0&&(p+=Im),i<=p&&p<=o||i<=p+Im&&p+Im<=o?(l[0]=h,l[1]=c,u-n):(u=n*Math.cos(i)+t,i=n*Math.sin(i)+e,t=n*Math.cos(o)+t,o=n*Math.sin(o)+e,(e=(u-a)*(u-a)+(i-s)*(i-s))<(s=(t-a)*(t-a)+(o-s)*(o-s))?(l[0]=u,l[1]=i,Math.sqrt(e)):(l[0]=t,l[1]=o,Math.sqrt(s)))}(f,g,m,v,v+x,_,(u-f)*m/y+f,h,km),i=Math.cos(v+x)*y+f,o=Math.sin(v+x)*m+g;break;case Tm.R:d=Am(r=i=l[c++],a=o=l[c++],l[c++],l[c++],u,h,km);break;case Tm.Z:d=Dm(i,o,r,a,u,h,km,!0),i=r,o=a}d<s&&(s=d,n.set(km[0],km[1]))}return s}var Pm=new fi,Nm=new fi,Om=new fi,Rm=new fi,Em=new fi;function zm(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||Cm,s=i.getBoundingRect().clone();s.applyTransform(i.getComputedTransform());var l=1/0,u=o.anchor,h=t.getComputedTransform(),c=h&&ii([],h),p=e.get("length2")||0;u&&Om.copy(u);for(var d,f=0;f<a.length;f++){!function(t,e,n,i,o){var r=n.width,a=n.height;switch(t){case"top":i.set(n.x+r/2,n.y-e),o.set(0,-1);break;case"bottom":i.set(n.x+r/2,n.y+a+e),o.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),o.set(-1,0);break;case"right":i.set(n.x+r+e,n.y+a/2),o.set(1,0)}}(a[f],0,s,Pm,Rm),fi.scaleAndAdd(Nm,Pm,Rm,p),Nm.transform(c);var g=t.getBoundingRect(),y=u?u.distance(Nm):t instanceof Ir?Lm(Nm,t.path,Om):(y=Nm,d=Om,y=Am((g=g).x,g.y,g.width,g.height,y.x,y.y,km),d.set(km[0],km[1]),y);y<l&&(l=y,Nm.transform(h),Om.transform(h),Om.toArray(r[0]),Nm.toArray(r[1]),Pm.toArray(r[2]))}Fm(r,e.get("minTurnAngle")),n.setShape({points:r})}}}var Bm=[],Vm=new fi;function Fm(t,e){var n,i;e<=180&&0<e&&(e=e/180*Math.PI,Pm.fromArray(t[0]),Nm.fromArray(t[1]),Om.fromArray(t[2]),fi.sub(Rm,Pm,Nm),fi.sub(Em,Om,Nm),n=Rm.len(),i=Em.len(),n<.001||i<.001||(Rm.scale(1/n),Em.scale(1/i),i=Rm.dot(Em),Math.cos(e)<i&&(i=Dm(Nm.x,Nm.y,Om.x,Om.y,Pm.x,Pm.y,Bm,!1),Vm.fromArray(Bm),Vm.scaleAndAdd(Em,i/Math.tan(Math.PI-e)),e=Om.x!==Nm.x?(Vm.x-Nm.x)/(Om.x-Nm.x):(Vm.y-Nm.y)/(Om.y-Nm.y),isNaN(e)||(e<0?fi.copy(Vm,Nm):1<e&&fi.copy(Vm,Om),Vm.toArray(t[1])))))}function Gm(t,e,n,i){var o="normal"===n,n=o?t:t.ensureState(n);n.ignore=e;e=i.get("smooth");e&&!0===e&&(e=.3),n.shape=n.shape||{},0<e&&(n.shape.smooth=e);i=i.getModel("lineStyle").getLineStyle();o?t.useStyle(i):n.style=i}function Hm(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 o=At(i[0],i[1]),e=At(i[1],i[2]);if(!o||!e)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);n=Math.min(o,e)*n,o=Pt([],i[1],i[0],n/o),n=Pt([],i[1],i[2],n/e),e=Pt([],o,n,.5);t.bezierCurveTo(o[0],o[1],o[0],o[1],e[0],e[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],i[2][0],i[2][1])}else for(var r=1;r<i.length;r++)t.lineTo(i[r][0],i[r][1])}function Wm(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<Dh.length;l++){var u,h=Dh[l],c=e[h],p="normal"===h;c&&(u=c.get("show"),!(p?s:tt(o.states[h]&&o.states[h].ignore,s))&&tt(u,a)?(i||(i=new La,t.setTextGuideLine(i),p||!s&&a||Gm(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),Gm(i,!1,h,c)):(p=p?i:i&&i.states.normal)&&(p.ignore=!0))}i&&(A(i.style,n),i.style.fill=null,r=r.get("showAbove"),(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=r||!1,i.buildPath=Hm)}else i&&t.removeTextGuideLine()}function Xm(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},i=0;i<Ch.length;i++){var o=Ch[i];n[o]=t.getModel([o,e])}return n}function Ym(s,l,u,t,e,n){var h=s.length;if(!(h<2)){s.sort(function(t,e){return t.rect[l]-e.rect[l]});for(var i=0,r=!1,o=0,a=0;a<h;a++){var c,p=s[a],d=p.rect;(c=d[l]-i)<0&&(d[l]-=c,p.label[l]-=c,r=!0),o+=Math.max(-c,0),i=d[l]+d[u]}0<o&&n&&_(-o/h,0,h);var f,g,y=s[0],m=s[h-1];return v(),f<0&&b(-f,.8),g<0&&b(g,.8),v(),x(f,g,1),x(g,f,-1),v(),f<0&&w(-f),g<0&&w(g),r}function v(){f=y.rect[l]-t,g=e-m.rect[l]-m.rect[u]}function x(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(_(e*n,0,h),(e=e+t)<0&&b(-e*n,1)):b(-t*n,1))}function _(t,e,n){0!==t&&(r=!0);for(var i=e;i<n;i++){var o=s[i];o.rect[l]+=t,o.label[l]+=t}}function b(t,e){for(var n=[],i=0,o=1;o<h;o++){var r=s[o-1].rect,r=Math.max(s[o].rect[l]-r[l]-r[u],0);n.push(r),i+=r}if(i){var a=Math.min(Math.abs(t)/i,e);if(0<t)for(o=0;o<h-1;o++){_(n[o]*a,0,o+1)}else for(o=h-1;0<o;o--){_(-(n[o-1]*a),o,h)}}}function w(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?_(n,0,i+1):_(-n,h-i-1,h),(t-=n)<=0)return}}function Um(t,e,n,i){return Ym(t,"y","height",e,n,i)}function Zm(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 qm=["align","verticalAlign","width","height","fontSize"],jm=new pi,Km=$u(),$m=$u();function Jm(t,e,n){for(var i=0;i<n.length;i++){var o=n[i];null!=e[o]&&(t[o]=e[o])}}var Qm=["x","y","rotation"],tv=(ev.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},ev.prototype._addLabel=function(t,e,n,i,o){var r=i.style,a=i.__hostTarget.textConfig||{},s=i.getComputedTransform(),l=i.getBoundingRect().plain();Mi.applyTransform(l,l,s),s?jm.setLocalTransform(s):(jm.x=jm.y=jm.rotation=jm.originX=jm.originY=0,jm.scaleX=jm.scaleY=1);var u,h=i.__hostTarget;h&&(u=h.getBoundingRect().plain(),s=h.getComputedTransform(),Mi.applyTransform(u,u,s));h=u&&h.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:jm.x,y:jm.y,rotation:jm.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}})},ev.prototype.addLabelsOfSeries=function(t){var n=this;this._chartViewList.push(t);var i=t.__model,o=i.get("labelLayout");(G(o)||z(o).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var e=t.getTextContent(),t=_h(t);e&&!e.disableLabelLayout&&n._addLabel(t.dataIndex,t.dataType,i,e,o)})},ev.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=(l="function"==typeof o.layoutOption?o.layoutOption(Zm(o,a)):o.layoutOption)||{},o.computedLayoutOption=l;var u=Math.PI/180;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]});var h,c=!1;null!=l.x?(r.x=gu(l.x,e),r.setStyle("x",0),c=!0):(r.x=s.x,r.setStyle("x",s.style.x)),null!=l.y?(r.y=gu(l.y,n),r.setStyle("y",0),c=!0):(r.y=s.y,r.setStyle("y",s.style.y)),!l.labelLinePoints||(h=a.getTextGuideLine())&&(h.setShape({points:l.labelLinePoints}),c=!1),Km(r).needsUpdateLabelLine=c,r.rotation=null!=l.rotate?l.rotate*u:s.rotation;for(var p=0;p<qm.length;p++){var d=qm[p];r.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(r.draggable=!0,r.cursor="move",a&&(u=o.seriesModel,null!=o.dataIndex&&(u=o.seriesModel.getData(o.dataType).getItemModel(o.dataIndex)),r.on("drag",function(t,e){return function(){zm(t,e)}}(a,u.getModel("labelLine"))))):(r.off("drag"),r.cursor=s.cursor)}},ev.prototype.layout=function(t){var e,n=t.getWidth(),i=t.getHeight(),o=function(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 iu(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}(this._labelList),r=O(o,function(t){return"shiftX"===t.layoutOption.moveOverlap}),t=O(o,function(t){return"shiftY"===t.layoutOption.moveOverlap});Ym(r,"x","width",0,n,e),Um(t,0,i),function(t){var e=[];t.sort(function(t,e){return e.priority-t.priority});var n=new Mi(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 iu(f.localRect,f.transform)),(c=c||new iu(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))}}(O(o,function(t){return t.layoutOption.hideOverlap}))},ev.prototype.processLabelsOverall=function(){var a=this;R(this._chartViewList,function(t){var i=t.__model,o=t.ignoreLabelLineUpdate,r=i.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore)return!0;var e=!o,n=t.getTextContent();!e&&n&&(e=Km(n).needsUpdateLabelLine),e&&a._updateLabelLine(t,i),r&&a._animateLabels(t,i)})})},ev.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=_h(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],n=e.getModel("labelLine"),Wm(t,Xm(e),i),zm(t,n))},ev.prototype._animateLabels=function(t,e){var n,i,o,r,a,s,l=t.getTextContent(),u=t.getTextGuideLine();!l||l.ignore||l.invisible||t.disableLabelAnimation||(s=(a=Km(l)).oldLayout,n=_h(t).dataIndex,i={x:l.x,y:l.y,rotation:l.rotation},s?(l.attr(s),(o=t.prevStates)&&(0<=D(o,"select")&&l.attr(a.oldLayoutSelect),0<=D(o,"emphasis")&&l.attr(a.oldLayoutEmphasis)),Fp(l,i,e,n)):(l.attr(i),o=tt(l.style.opacity,1),l.style.opacity=0,Gp(l,{style:{opacity:o}},e,n)),a.oldLayout=i,l.states.select&&(Jm(r=a.oldLayoutSelect={},i,Qm),Jm(r,l.states.select,Qm)),l.states.emphasis&&(Jm(r=a.oldLayoutEmphasis={},i,Qm),Jm(r,l.states.emphasis,Qm))),!u||u.ignore||u.invisible||(s=(a=$m(u)).oldLayout,l={points:u.shape.points},s?(u.attr({shape:s}),Fp(u,{shape:l},e)):(u.setShape(l),u.style.strokePercent=0,Gp(u,{style:{strokePercent:1}},e)),a.oldLayout=l)},ev);function ev(){this._labelList=[],this._chartViewList=[]}function nv(r,t){R([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(o){t(o[0],function(t,e,n){var i;t=N({},t),n.dispatchAction(N(t,{type:o[1],seriesIndex:(t=t,i=[],e.eachComponent({mainType:"series",subType:r,query:t},function(t){i.push(t.seriesIndex)}),i)}))})})}function iv(t,e,a,s){var l=t+e;a.isSilent(l)||a.getModel().eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,n,i=t.seriesIndex,o=s.selected,r=0;r<o.length;r++){o[r].seriesIndex===i&&(n=Ku(e=t.getData(),s.fromActionPayload),a.trigger(l,{type:l,seriesId:t.id,name:F(n)?e.getName(n[0]):e.getName(n),selected:N({},t.option.selectedMap)}))}})}function ov(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),i.createRadialGradient(u,h,0,u,h,c)):(l=t,i=n,h=null==(u=e).x?0:u.x,c=null==u.x2?1:u.x2,t=null==u.y?0:u.y,n=null==u.y2?0:u.y2,u.global||(h=h*i.width+i.x,c=c*i.width+i.x,t=t*i.height+i.y,n=n*i.height+i.y),h=isNaN(h)?0:h,c=isNaN(c)?1:c,t=isNaN(t)?0:t,n=isNaN(n)?0:n,l.createLinearGradient(h,t,c,n)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function rv(t,e){return t&&"solid"!==t&&0<e?(e=e||1,"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:X(t)?[t]:F(t)?t:null):null}var av=new ar(!0);function sv(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function lv(t){t=t.fill;return null!=t&&"none"!==t}function uv(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 hv(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 cv(t,e,n){n=vs(e.image,e.__image,n);if(_s(n))return t.createPattern(n,e.repeat||"repeat")}var pv=["shadowBlur","shadowOffsetX","shadowOffsetY"],dv=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function fv(t,e,n,i,o){var r=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(r||(Sv(t,o),r=!0),t.globalAlpha=(null==e.opacity?to:e).opacity),!i&&e.blend===n.blend||(r||(Sv(t,o),r=!0),t.globalCompositeOperation=e.blend||to.blend);for(var a=0;a<pv.length;a++){var s=pv[a];!i&&e[s]===n[s]||(r||(Sv(t,o),r=!0),t[s]=t.dpr*(e[s]||0))}return!i&&e.shadowColor===n.shadowColor||(r||(Sv(t,o),r=!0),t.shadowColor=e.shadowColor||to.shadowColor),r}function gv(t,e,n,i,o){var r=Mv(e,o.inHover),a=i?null:n&&Mv(n,o.inHover)||{};if(r!==a){var s=fv(t,r,a,i,o);!i&&r.fill===a.fill||(s||(Sv(t,o),s=!0),t.fillStyle=r.fill),!i&&r.stroke===a.stroke||(s||(Sv(t,o),s=!0),t.strokeStyle=r.stroke),!i&&r.opacity===a.opacity||(s||(Sv(t,o),s=!0),t.globalAlpha=null==r.opacity?1:r.opacity),e.hasStroke()&&(e=r.lineWidth/(r.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1),t.lineWidth!==e&&(s||(Sv(t,o),s=!0),t.lineWidth=e));for(var l=0;l<dv.length;l++){var u=dv[l],h=u[0];!i&&r[h]===a[h]||(s||(Sv(t,o),s=!0),t[h]=r[h]||u[1])}return s}}function yv(t,e){var n=e.transform,e=t.dpr||1;n?t.setTransform(e*n[0],e*n[1],e*n[2],e*n[3],e*n[4],e*n[5]):t.setTransform(e,0,0,e,0,0)}var mv=new Mi(0,0,0,0),vv=new Mi(0,0,0,0);var xv=1,_v=2,bv=3,wv=4;function Sv(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Mv(t,e){return e&&t.__hoverStyle||t.style}function Iv(t,e,n,i){var o,r,a,s,l,u,h,c,p,d,f,g,y,m,v,x,_,b=e.transform;e.invisible||0===e.style.opacity||e.culling&&(r=e,s=n.viewWidth,p=n.viewHeight,s&&p&&(mv.copy(r.getBoundingRect()),r.transform&&mv.applyTransform(r.transform),vv.width=s,vv.height=p,!mv.intersect(vv)))||b&&!b[0]&&!b[3]?e.__dirty&=~qi.REDARAW_BIT:(l=e.__clipPaths,r=o=!1,(s=n.prevElClipPaths)&&!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}}(l,s)||(s&&s.length&&(Sv(t,n),t.restore(),r=o=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),l&&l.length&&(Sv(t,n),t.save(),function(t,e,n){for(var i=!1,o=0;o<t.length;o++){var r=t[o],i=i||r.isZeroArea();yv(e,r),e.beginPath(),r.buildPath(e,r.shape),e.clip()}n.allClipped=i}(l,t,n),o=!0),n.prevElClipPaths=l),n.allClipped||(e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush(),(p=n.prevEl)||(r=o=!0),a=e instanceof Ir&&e.autoBatch&&(a=e.style,s=lv(a),l=sv(a),!(a.lineDash||!(+s^+l)||s&&"string"!=typeof a.fill||l&&"string"!=typeof a.stroke||a.strokePercent<1||a.strokeOpacity<1||a.fillOpacity<1)),o||(u=b,f=p.transform,u&&f?u[0]!==f[0]||u[1]!==f[1]||u[2]!==f[2]||u[3]!==f[3]||u[4]!==f[4]||u[5]!==f[5]:u||f)?(Sv(t,n),yv(t,e)):a||Sv(t,n),u=Mv(e,n.inHover),e instanceof Ir?(n.lastDrawType!==xv&&(r=!0,n.lastDrawType=xv),gv(t,e,p,r,n),a&&(n.batchFill||n.batchStroke)||t.beginPath(),function(t,e,n,i){var o=sv(n),r=lv(n),a=n.strokePercent,s=a<1,l=!e.path;e.silent&&!s||!l||e.createPathProxy();var u,h,c,p,d,f,g,y=e.path||av;i||(u=n.fill,h=n.stroke,c=r&&!!u.colorStops,v=o&&!!h.colorStops,p=r&&!!u.image,_=o&&!!h.image,g=b=f=x=d=void 0,(c||v)&&(g=e.getBoundingRect()),c&&(d=e.__dirty?ov(t,u,g):e.__canvasFillGradient,e.__canvasFillGradient=d),v&&(x=e.__dirty?ov(t,h,g):e.__canvasStrokeGradient,e.__canvasStrokeGradient=x),p&&(f=e.__dirty||!e.__canvasFillPattern?cv(t,u,e):e.__canvasFillPattern,e.__canvasFillPattern=f),_&&(b=e.__dirty||!e.__canvasStrokePattern?cv(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=f),c?t.fillStyle=d:p&&(f?t.fillStyle=f:r=!1),v?t.strokeStyle=x:_&&(b?t.strokeStyle=b:o=!1));var m,v=n.lineDash&&0<n.lineWidth&&rv(n.lineDash,n.lineWidth),x=n.lineDashOffset,_=!!t.setLineDash,b=e.getGlobalScale();y.setScale(b[0],b[1],e.segmentIgnoreThreshold),!v||(m=n.strokeNoScale&&e.getLineScale?e.getLineScale():1)&&1!==m&&(v=L(v,function(t){return t/m}),x/=m),b=!0,(l||e.__dirty&Ir.SHAPE_CHANGED_BIT||v&&!_&&o)&&(y.setDPR(t.dpr),s?y.setContext(null):(y.setContext(t),b=!1),y.reset(),v&&!_&&(y.setLineDash(v),y.setLineDashOffset(x)),e.buildPath(y,e.shape,i),y.toStatic(),e.pathUpdated()),b&&y.rebuildPath(t,s?a:1),v&&_&&(t.setLineDash(v),t.lineDashOffset=x),i||(n.strokeFirst?(o&&hv(t,n),r&&uv(t,n)):(r&&uv(t,n),o&&hv(t,n))),v&&_&&t.setLineDash([])}(t,e,u,a),a&&(n.batchFill=u.fill||"",n.batchStroke=u.stroke||"")):e instanceof Fa?(n.lastDrawType!==bv&&(r=!0,n.lastDrawType=bv),gv(t,e,p,r,n),d=t,f=e,null!=(_=(g=u).text)&&(_+=""),_&&(d.font=g.font||Ai,d.textAlign=g.textAlign,d.textBaseline=g.textBaseline,y=void 0,d.setLineDash&&(m=g.lineDash&&0<g.lineWidth&&rv(g.lineDash,g.lineWidth),v=g.lineDashOffset,m&&((x=g.strokeNoScale&&f.getLineScale?f.getLineScale():1)&&1!==x&&(m=L(m,function(t){return t/x}),v/=x),d.setLineDash(m),d.lineDashOffset=v,y=!0)),g.strokeFirst?(sv(g)&&d.strokeText(_,g.x,g.y),lv(g)&&d.fillText(_,g.x,g.y)):(lv(g)&&d.fillText(_,g.x,g.y),sv(g)&&d.strokeText(_,g.x,g.y)),y&&d.setLineDash([]))):e instanceof Qr?(n.lastDrawType!==_v&&(r=!0,n.lastDrawType=_v),m=p,v=r,fv(t,Mv(e,(_=n).inHover),m&&Mv(m,_.inHover),v,_),g=t,y=u,(p=(d=e).__image=vs(y.image,d.__image,d,d.onload))&&_s(p)&&(m=y.x||0,v=y.y||0,_=y.width,u=y.height,d=p.width/p.height,null==_&&null!=u?_=u*d:null==u&&null!=_?u=_/d:null==_&&null==u&&(_=p.width,u=p.height),y.sWidth&&y.sHeight?(h=y.sx||0,c=y.sy||0,g.drawImage(p,h,c,y.sWidth,y.sHeight,m,v,_,u)):y.sx&&y.sy?(d=_-(h=y.sx),y=u-(c=y.sy),g.drawImage(p,h,c,d,y,m,v,_,u)):g.drawImage(p,m,v,_,u))):e instanceof gs&&(n.lastDrawType!==wv&&(r=!0,n.lastDrawType=wv),function(t,e,n){var i=e.getDisplayables(),o=e.getTemporalDisplayables();t.save();var r,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(r=e.getCursor(),a=i.length;r<a;r++){(h=i[r]).beforeBrush&&h.beforeBrush(),h.innerBeforeBrush(),Iv(t,h,s,r===a-1),h.innerAfterBrush(),h.afterBrush&&h.afterBrush(),s.prevEl=h}for(var l=0,u=o.length-1;l<u;l++){var h;(h=o[l]).beforeBrush&&h.beforeBrush(),h.innerBeforeBrush(),Iv(t,h,s,l===u-1),h.innerAfterBrush(),h.afterBrush&&h.afterBrush(),s.prevEl=h}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,n)),a&&i&&Sv(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0))}function Tv(){return!1}function Cv(t,e,n){var i=M(),o=e.getWidth(),r=e.getHeight(),e=i.style;return e&&(e.position="absolute",e.left="0",e.top="0",e.width=o+"px",e.height=r+"px",i.setAttribute("data-zr-dom-id",t)),i.width=o*n,i.height=r*n,i}var Dv,Av=(l(kv,Dv=Ft),kv.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},kv.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},kv.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Cv("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},kv.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))},kv.prototype.clear=function(t,e){var n=this.dom,i=this.ctx,o=n.width,r=n.height;e=e||this.clearColor;var a=this.motionBlur&&!t,s=this.lastFrameAlpha,t=this.dpr,l=this;a&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,o/t,r/t)),i.clearRect(0,0,o,r),e&&"transparent"!==e&&(t=void 0,j(e)?(t=e.__canvasGradient||ov(i,e,{x:0,y:0,width:o,height:r}),e.__canvasGradient=t):K(e)&&(t=cv(i,e,{dirty:function(){l.__painter.refresh()}})),i.save(),i.fillStyle=t||e,i.fillRect(0,0,o,r),i.restore()),a&&(a=this.domBack,i.save(),i.globalAlpha=s,i.drawImage(a,0,0,o,r),i.restore())},kv);function kv(t,e,n){var i,o=Dv.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.__dirty=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,n=n||Fi,"string"==typeof t?i=Cv(t,e,n):Y(t)&&(t=(i=t).id),o.id=t;t=(o.dom=i).style;return t&&(i.onselectstart=Tv,t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none",t.padding="0",t.margin="0",t.borderWidth="0"),o.domBack=null,o.ctxBack=null,o.painter=e,o.config=null,o.dpr=n,o}var Lv=314159;function Pv(t){return parseInt(t,10)}function Nv(t,e,n,i){this.type="canvas",this._zlevelList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=N({},n||{}),this.dpr=n.devicePixelRatio||Fi,this._singleCanvas=o;var r=(this.root=t).style;r&&(r.webkitTapHighlightColor="transparent",r.webkitUserSelect="none",r.userSelect="none",r["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var a,s=this._zlevelList,r=this._layers;o?(e=(a=t).width,o=a.height,null!=n.width&&(e=n.width),null!=n.height&&(o=n.height),this.dpr=n.devicePixelRatio||1,a.width=e*this.dpr,a.height=o*this.dpr,this._width=e,this._height=o,(a=new Av(a,this,this.dpr)).__builtin__=!0,a.initContext(),(r[Lv]=a).zlevel=Lv,s.push(Lv),this._domRoot=t):(this._width=this._getSize(0),this._height=this._getSize(1),s=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(s))}function Ov(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}cu("canvas",(Nv.prototype.getType=function(){return"canvas"},Nv.prototype.isSingleCanvas=function(){return this._singleCanvas},Nv.prototype.getViewportRoot=function(){return this._domRoot},Nv.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},Nv.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,t,this._redrawId);for(var i=0;i<n.length;i++){var o=n[i],r=this._layers[o];!r.__builtin__&&r.refresh&&(o=0===i?this._backgroundColor:null,r.refresh(o))}return this},Nv.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},Nv.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(),Iv(i,a,o,r===e-1))}i&&i.restore()}},Nv.prototype.getHoverLayer=function(){return this.getLayer(1e5)},Nv.prototype._paintList=function(t,e,n){var i,o,r;this._redrawId===n&&(e=e||!1,this._updateLayerStatus(t),i=(o=this._doPaintList(t,e)).finished,o=o.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),i||(r=this,Ne(function(){r._paintList(t,e,n)})))},Nv.prototype._compositeManually=function(){var e=this.getLayer(Lv).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)})},Nv.prototype._doPaintList=function(t,e){for(var n=[],i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];(l=this._layers[o]).__builtin__&&l!==this._hoverlayer&&(l.__dirty||e)&&n.push(l)}for(var r=!0,a=!1,s=0;s<n.length;s++){var l,u=(l=n[s]).ctx,h={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height};u.save();var c,p=e?l.__startIndex:l.__drawIndex,d=!e&&l.incremental&&Date.now,f=d&&Date.now(),g=l.zlevel===this._zlevelList[0]?this._backgroundColor:null;l.__startIndex===l.__endIndex?l.clear(!1,g):p===l.__startIndex&&((c=t[p]).incremental&&c.notClear&&!e||l.clear(!1,g)),-1===p&&(console.error("For some unknown reason. drawIndex is -1"),p=l.__startIndex);for(var y=void 0,y=p;y<l.__endIndex;y++){var m=t[y];if(m.__inHover&&(a=!0),Iv(u,m,h,y===l.__endIndex-1),d)if(15<Date.now()-f)break}l.__drawIndex=y,l.__drawIndex<l.__endIndex&&(r=!1),h.prevElClipPaths&&u.restore(),u.restore()}return v.wxa&&R(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:r,needsRefreshHover:a}},Nv.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Lv);var n=this._layers[t];return n||((n=new Av("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?w(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&w(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},Nv.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])b("ZLevel "+t+" has been used already");else if((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?(s=s.dom).nextSibling?a.insertBefore(e.dom,s.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.__painter=this}else b("Layer of zlevel "+t+" is not valid")},Nv.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)}},Nv.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)}},Nv.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)}},Nv.prototype.getLayers=function(){return this._layers},Nv.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__||b("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&qi.REDARAW_BIT&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=a))}e(a),this.eachBuiltinLayer(function(t,e){!t.__used&&0<t.getElementCount()&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},Nv.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},Nv.prototype._clearLayer=function(t){t.clear()},Nv.prototype.setBackgroundColor=function(t){this._backgroundColor=t},Nv.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?w(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||w(this._layers[o],n[t],!0)}}},Nv.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(D(n,t),1))},Nv.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!==t||e!==this._height){for(var o in n.style.width=t+"px",n.style.height=e+"px",this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].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(Lv).resize(t,e)}return this},Nv.prototype.clearLayer=function(t){t=this._layers[t];t&&t.clear()},Nv.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},Nv.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Lv].dom;var e=new Av("image",this,t.pixelRatio||this.dpr),n=e.ctx;if(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,o=e.dom.height,r=e.ctx;this.eachLayer(function(t){t.__builtin__?r.drawImage(t.dom,0,0,i,o):t.renderToCanvas&&(e.ctx.save(),t.renderToCanvas(e.ctx),e.ctx.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){Iv(n,s[l],a,l===u-1)}return e.dom},Nv.prototype.getWidth=function(){return this._width},Nv.prototype.getHeight=function(){return this._height},Nv.prototype._getSize=function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],r=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);t=this.root,e=document.defaultView.getComputedStyle(t);return(t[i]||Pv(e[n])||Pv(t.style[n]))-(Pv(e[o])||0)-(Pv(e[r])||0)|0},Nv.prototype.pathToImage=function(t,e){e=e||this.dpr;var n=document.createElement("canvas"),i=n.getContext("2d"),o=t.getBoundingRect(),r=t.style,a=r.shadowBlur*e,s=r.shadowOffsetX*e,l=r.shadowOffsetY*e,u=t.hasStroke()?r.lineWidth:0,h=Math.max(u/2,a-s),r=Math.max(u/2,s+a),s=Math.max(u/2,a-l),a=Math.max(u/2,l+a),r=o.width+h+r,a=o.height+s+a;n.width=r*e,n.height=a*e,i.scale(e,e),i.clearRect(0,0,r,a),i.dpr=e;e={x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY,rotation:t.rotation,originX:t.originX,originY:t.originY};t.x=h-o.x,t.y=s-o.y,t.rotation=0,t.scaleX=1,t.scaleY=1,t.updateTransform(),t&&Iv(i,t,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);n=new Qr({style:{x:0,y:0,image:n}});return N(t,e),n},Nv));var Rv=ot,Ev=R,zv=G,Bv=Y,Vd={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:3500,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500}},Vv="__flagInMainProcess",Fv="__optionUpdated",Gv="__needsUpdateStatus",Hv=/^[a-zA-Z0-9_]+$/,Wv="__connectUpdateStatus";function Xv(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return Uv(this,n,t);Ix(this.id)}}function Yv(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Uv(this,n,t)}}function Uv(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Ft.prototype[e].apply(t,n)}var Zv,qv=(l(jv,Zv=Ft),jv);function jv(){return null!==Zv&&Zv.apply(this,arguments)||this}var Kv,$v,Jv,Qv,tx,ex,nx,ix,ox,rx,ax,sx,lx,ux,hx,cx,px,dx,fx,gx,r=qv.prototype;r.on=Yv("on"),r.off=Yv("off");var yx,mx=(l(vx,yx=Ft),vx.prototype._onframe=function(){if(!this._disposed){gx(this);var t=this._scheduler;if(this[Fv]){var e=this[Fv].silent;this[Vv]=!0,Kv(this),Qv.update.call(this),this[Vv]=!1,this[Fv]=!1,ix.call(this,e),ox.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),ex(this,i),t.performVisualTasks(i),hx(this,this._model,o,"remain"),0<(n-=+new Date-r)&&t.unfinished);t.unfinished||this._zr.flush()}}},vx.prototype.getDom=function(){return this._dom},vx.prototype.getId=function(){return this.id},vx.prototype.getZr=function(){return this._zr},vx.prototype.setOption=function(t,e,n){var i,o,r,a;this._disposed?Ix(this.id):(Bv(e)&&(n=e.lazyUpdate,i=e.silent,o=e.replaceMerge,e=e.notMerge),this[Vv]=!0,this._model&&!e||(r=new Mf(this._api),a=this._theme,(e=this._model=new df).scheduler=this._scheduler,e.init(null,null,null,a,this._locale,r)),this._model.setOption(t,{replaceMerge:o},Ax),n?(this[Fv]={silent:i},this[Vv]=!1):(Kv(this),Qv.update.call(this),this._zr.flush(),this[Fv]=!1,this[Vv]=!1,ix.call(this,i),ox.call(this,i)))},vx.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},vx.prototype.getModel=function(){return this._model},vx.prototype.getOption=function(){return this._model&&this._model.getOption()},vx.prototype.getWidth=function(){return this._zr.getWidth()},vx.prototype.getHeight=function(){return this._zr.getHeight()},vx.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},vx.prototype.getRenderedCanvas=function(t){if(v.canvasSupported)return(t=N({},t||{})).pixelRatio=t.pixelRatio||1,t.backgroundColor=t.backgroundColor||this._model.get("backgroundColor"),this._zr.painter.getRenderedCanvas(t)},vx.prototype.getSvgDataURL=function(){if(v.svgSupported){var t=this._zr;return R(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},vx.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,i=[],o=this;Ev(e,function(t){n.eachComponent({mainType:t},function(t){t=o._componentsMap[t.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)})});t="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Ev(i,function(t){t.group.ignore=!1}),t}Ix(this.id)},vx.prototype.getConnectedDataURL=function(i){if(this._disposed)Ix(this.id);else if(v.canvasSupported){var o="svg"===i.type,r=this.group,a=Math.min,s=Math.max;if(Ex[r]){var l=1/0,u=1/0,h=-1/0,c=-1/0,p=[],e=i&&i.pixelRatio||1;R(Rx,function(t,e){var n;t.group===r&&(n=o?t.getZr().painter.getSvgDom().innerHTML:t.getRenderedCanvas(C(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}))});var t=(h*=e)-(l*=e),n=(c*=e)-(u*=e),d=M(),f=hu(d,{renderer:o?"svg":"canvas"});if(f.resize({width:t,height:n}),o){var g="";return Ev(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()}return i.connectedBackgroundColor&&f.add(new pa({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),Ev(p,function(t){t=new Qr({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"))}return this.getDataURL(i)}},vx.prototype.convertToPixel=function(t,e){return tx(this,"convertToPixel",t,e)},vx.prototype.convertFromPixel=function(t,e){return tx(this,"convertFromPixel",t,e)},vx.prototype.containPixel=function(t,o){var r;if(!this._disposed)return R(Qu(this._model,t),function(t,i){0<=i.indexOf("Models")&&R(t,function(t){var e,n=t.coordinateSystem;n&&n.containPoint?r=r||!!n.containPoint(o):"seriesModels"===i&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(r=r||e.containPoint(o,t))},this)},this),!!r;Ix(this.id)},vx.prototype.getVisual=function(t,e){var n=Qu(this._model,t,{defaultMainType:"series"}),t=n.seriesModel;t=t.getData(),n=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?t.indexOfRawIndex(n.dataIndex):null;return null!=n?wm(t,n,e):Sm(t,e)},vx.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},vx.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},vx.prototype._initEvents=function(){var t,e,s=this;Ev(Mx,function(a){function t(t){var n,e,i=s.getModel(),o=t.target,r="globalout"===a;r?n={}:o&&Ov(o,function(t){var e=_h(t);if(e&&null!=e.dataIndex){t=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return n=t&&t.getDataParams(e.dataIndex,e.dataType)||{},1}return e.eventData&&(n=N({},e.eventData),1)},!0),n&&(e=n.componentType,r=n.componentIndex,"markLine"!==e&&"markPoint"!==e&&"markArea"!==e||(e="series",r=n.seriesIndex),r=(e=e&&null!=r&&i.getComponent(e,r))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:e,view:r},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),Ev(Cx,function(t,e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),Ev(["selectchanged"],function(e){s._messageCenter.on(e,function(t){this.trigger(e,t)},s)}),t=this._messageCenter,e=this,t.on("selectchanged",function(t){t.isFromClick?(iv("map","selectchanged",e,t),iv("pie","selectchanged",e,t)):"select"===t.fromAction?(iv("map","selected",e,t),iv("pie","selected",e,t)):"unselect"===t.fromAction&&(iv("map","unselected",e,t),iv("pie","unselected",e,t))})},vx.prototype.isDisposed=function(){return this._disposed},vx.prototype.clear=function(){this._disposed?Ix(this.id):this.setOption({series:[]},!0)},vx.prototype.dispose=function(){var e,n;this._disposed?Ix(this.id):(this._disposed=!0,ih(this.getDom(),Vx,""),e=this._api,n=this._model,Ev(this._componentsViews,function(t){t.dispose(n,e)}),Ev(this._chartsViews,function(t){t.dispose(n,e)}),this._zr.dispose(),delete Rx[this.id])},vx.prototype.resize=function(t){var e;this._disposed?Ix(this.id):(this._zr.resize(t),e=this._model,this._loadingFX&&this._loadingFX.resize(),e&&(e=e.resetOption("media"),t=t&&t.silent,this[Vv]=!0,e&&Kv(this),Qv.update.call(this,{type:"resize",animation:{duration:0}}),this[Vv]=!1,ix.call(this,t),ox.call(this,t)))},vx.prototype.showLoading=function(t,e){this._disposed?Ix(this.id):(Bv(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Ox[t]&&(t=Ox[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},vx.prototype.hideLoading=function(){this._disposed?Ix(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},vx.prototype.makeActionFromEvent=function(t){var e=N({},t);return e.type=Cx[t.type],e},vx.prototype.dispatchAction=function(t,e){var n;this._disposed?Ix(this.id):(Bv(e)||(e={silent:!!e}),Tx[t.type]&&this._model&&(this[Vv]?this._pendingActions.push(t):(n=e.silent,nx.call(this,t,n),(e=e.flush)?this._zr.flush():!1!==e&&v.browser.weChat&&this._throttledZrFlush(),ix.call(this,n),ox.call(this,n))))},vx.prototype.updateLabelLayout=function(){var t=this._labelManager;t.updateLayoutConfig(this._api),t.layout(this._api),t.processLabelsOverall()},vx.prototype.appendData=function(t){var e;this._disposed?Ix(this.id):(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},vx.internalField=(Kv=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),$v(t,!0),$v(t,!1),e.plan()},$v=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=t.__requireNewView;t.__requireNewView=!1;var n="_ec_"+t.id+"_"+t.type,i=!e&&l[n];i||(e=uh(t.type),(i=new(o?Iy.getClass(e.main,e.sub):ky.getClass(e.sub))).init(r,h),l[n]=i,s.push(i),u.add(i.group)),t.__viewId=i.__id=n,i.__alive=!0,i.__model=t,i.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},o||a.prepareView(i,t,r,h)}o?r.eachComponent(function(t,e){"series"!==t&&n(e)}):r.eachSeries(n);for(e=0;e<s.length;){var i=s[e];i.__alive?e++:(o||i.renderTask.dispose(),u.remove(i.group),i.dispose(r,h),s.splice(e,1),l[i.__id]===i&&delete l[i.__id],i.__id=i.group.__ecComponentInfo=null)}},Jv=function(r,e,a,s,t){var n,l,i=r._model;function u(t){t&&t.__alive&&t[e]&&t[e](t.__model,i,r._api,a)}i.setUpdatePayload(a),s?((n={})[s+"Id"]=a[s+"Id"],n[s+"Index"]=a[s+"Index"],n[s+"Name"]=a[s+"Name"],n={mainType:s,query:n},t&&(n.subType=t),null!=(t=a.excludeSeriesId)&&(l=ct(Bu(t))),i&&i.eachComponent(n,function(t){var e,n,i,o;l&&null!=l.get(t.id)||(gc(a)&&!a.notBlur?t instanceof yy&&function(t,e,n){if(gc(e)){var i,o=e.type===Lh,r=t.seriesIndex,a=t.getData(e.dataType),e=(F(e=Ku(a,e))?e[0]:e)||0,s=a.getItemGraphicEl(e);if(!s)for(var l=a.count(),u=0;!s&&u<l;)s=a.getItemGraphicEl(u++);s?rc(r,(i=_h(s)).focus,i.blurScope,n,o):(i=t.get(["emphasis","focus"]),t=t.get(["emphasis","blurScope"]),null!=i&&rc(r,i,t,n,o))}}(t,a,r):fc(a)&&t instanceof yy&&(e=t,fc(n=a)&&(i=n.dataType,F(o=Ku(e.getData(i),n))||(o=[o]),e[n.type===Rh?"toggleSelect":n.type===Nh?"select":"unselect"](o,i)),ac(t),fx(r)),u(r["series"===s?"_chartsMap":"_componentsMap"][t.__viewId]))},r)):Ev([].concat(r._componentsViews).concat(r._chartsViews),u)},Qv={prepareAndUpdate:function(t){Kv(this),Qv.update.call(this,t)},update:function(t){var e=this._model,n=this._api,i=this._zr,o=this._coordSysMgr,r=this._scheduler;e&&(e.setUpdatePayload(t),r.restoreData(e,t),r.performSeriesTasks(e),o.create(e,n),r.performDataProcessorTasks(e,t),ex(this,e),o.update(e,n),sx(e),r.performVisualTasks(e,t),lx(this,e,n,t),r=e.get("backgroundColor")||"transparent",t=e.get("darkMode"),v.canvasSupported?(i.setBackgroundColor(r),null!=t&&"auto"!==t&&i.setDarkMode(t)):(r=un(t=tn(r),"rgb"),0===t[3]&&(r="transparent")),cx(e,n))},updateTransform:function(n){var i,o,r=this,a=this._model,s=this._api;a&&(a.setUpdatePayload(n),i=[],a.eachComponent(function(t,e){"series"===t||(t=r.getViewOfComponentModel(e))&&t.__alive&&(!t.updateTransform||(e=t.updateTransform(e,a,s,n))&&e.update)&&i.push(t)}),o=ct(),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)}),sx(a),this._scheduler.performVisualTasks(a,n,{setDirty:!0,dirtyMap:o}),hx(this,a,s,n,o),cx(a,this._api))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),ky.markUpdateMethod(t,"updateView"),sx(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),lx(this,this._model,this._api,t),cx(e,this._api))},updateVisual:function(n){var i=this,o=this._model;o&&(o.setUpdatePayload(n),o.eachSeries(function(t){t.getData().clearAllVisual()}),ky.markUpdateMethod(n,"updateVisual"),sx(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)}),cx(o,this._api))},updateLayout:function(t){Qv.update.call(this,t)}},tx=function(t,e,n,i){if(t._disposed)Ix(t.id);else{for(var o,r=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=Qu(r,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(o=u[e](r,s,i)))return o}0}},ex=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},nx=function(e,t){var n=this,i=this.getModel(),o=e.type,r=e.escapeConnect,a=Tx[o],s=a.actionInfo,l=(s.update||"update").split(":"),u=l.pop(),h=null!=l[0]&&uh(l[0]);this[Vv]=!0;var c=[e],p=!1;e.batch&&(p=!0,c=L(e.batch,function(t){return(t=A(N({},t),e)).batch=null,t}));var d,f,g=[],l=fc(e),y=gc(e)||l;Ev(c,function(t){(d=(d=a.action(t,n._model,n._api))||N({},t)).type=s.event||d.type,g.push(d),y?(Jv(n,u,t,"series"),fx(n)):h&&Jv(n,u,t,h.main,h.sub)}),e.statusChanged&&fx(this),"none"===u||y||h||(this[Fv]?(Kv(this),Qv.update.call(this,e),this[Fv]=!1):Qv[u].call(this,e)),d=p?{type:s.event||o,escapeConnect:r,batch:g}:g[0],this[Vv]=!1,t||((t=this._messageCenter).trigger(d.type,d),l&&(i={type:"selectchanged",escapeConnect:r,selected:(f=[],i.eachSeries(function(n){R(n.getAllData(),function(t){t.data;var e=t.type,t=n.getSelectedDataIndices();0<t.length&&(t={dataIndex:t,seriesIndex:n.seriesIndex},null!=e&&(t.dataType=e),f.push(t))})}),f),isFromClick:e.isFromClick||!1,fromAction:e.type,fromActionPayload:e},t.trigger(i.type,i)))},ix=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();nx.call(this,n,t)}},ox=function(t){t||this.trigger("updated")},rx=function(e,n){e.on("rendered",function(t){n.trigger("rendered",t),!e.animation.isFinished()||n[Fv]||n._scheduler.unfinished||n._pendingActions.length||n.trigger("finished")})},ax=function(t,i){t.on("mouseover",function(t){var e,n=Ov(t.target,dc);n&&(rc((e=_h(n)).seriesIndex,e.focus,e.blurScope,i,!0),oc(n=n,t)||n.__highByOuter||Zh(n,Fh),fx(i))}).on("mouseout",function(t){var e,n=Ov(t.target,dc);n&&(rc((e=_h(n)).seriesIndex,e.focus,e.blurScope,i,!1),oc(n=n,t)||n.__highByOuter||Zh(n,Gh),fx(i))}).on("click",function(t){var e=Ov(t.target,function(t){return null!=_h(t).dataIndex},!0);e&&(t=e.selected?"unselect":"select",e=_h(e),i._api.dispatchAction({type:t,dataType:e.dataType,dataIndexInside:e.dataIndex,seriesIndex:e.seriesIndex,isFromClick:!0}))})},sx=function(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})},lx=function(t,e,n,i){ux(t,e,n,i),Ev(t._chartsViews,function(t){t.__alive=!1}),hx(t,e,n,i),Ev(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},ux=function(t,n,i,o,e){Ev(e||t._componentsViews,function(t){var e=t.__model;bx(0,t),t.render(e,n,i,o),_x(e,t),Sx(e,t)})},hx=function(i,t,e,o,r){var a=i._scheduler,s=i._labelManager;s.clearLabels();var n,l,u,h=!1;t.eachSeries(function(t){var e=i._chartsMap[t.__viewId];e.__alive=!0;var n=e.renderTask;a.updatePayload(n,o),bx(0,e),r&&r.get(t.uid)&&n.dirty(),n.perform(a.getPerformArgs(n))&&(h=!0),e.group.silent=!!t.get("silent"),function(t,e){var n=t.get("blendMode")||null;0;e.group.traverse(function(t){t.isGroup||(t.style.blend=n),t.eachPendingDisplayable&&t.eachPendingDisplayable(function(t){t.style.blend=n})})}(t,e),ac(t),s.addLabelsOfSeries(e)}),a.unfinished=h||a.unfinished,s.updateLayoutConfig(e),s.layout(e),s.processLabelsOverall(),t.eachSeries(function(t){var e=i._chartsMap[t.__viewId];_x(t,e),Sx(t,e)}),l=t,e=(n=i)._zr.storage,u=0,e.traverse(function(t){t.isGroup||u++}),u>l.get("hoverLayerThreshold")&&!v.node&&!v.worker&&l.eachSeries(function(t){t.preventUsingHoverLayer||(t=n._chartsMap[t.__viewId]).__alive&&t.group.traverse(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),qy(i._zr.dom,t)},cx=function(e,n){Ev(Lx,function(t){t(e,n)})},fx=function(t){t[Gv]=!0,t.getZr().wakeUp()},gx=function(t){t[Gv]&&(t.getZr().storage.traverse(function(t){Yp(t)||xx(t)}),t[Gv]=!1)},px=function(n){return l(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){Jh(t,e),fx(n)},t.prototype.leaveEmphasis=function(t,e){Qh(t,e),fx(n)},t.prototype.enterBlur=function(t){tc(t),fx(n)},t.prototype.leaveBlur=function(t){ec(t),fx(n)},t.prototype.enterSelect=function(t){nc(t),fx(n)},t.prototype.leaveSelect=function(t){ic(t),fx(n)},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(dx=function(i){function o(t,e){for(var n=0;n<t.length;n++){t[n][Wv]=e}}Ev(Cx,function(t,e){i._messageCenter.on(e,function(t){var e,n;Ex[i.group]&&0!==i[Wv]&&(t&&t.escapeConnect||(e=i.makeActionFromEvent(t),n=[],Ev(Rx,function(t){t!==i&&t.group===i.group&&n.push(t)}),o(n,0),Ev(n,function(t){1!==t[Wv]&&t.dispatchAction(e)}),o(n,2)))})})})),vx);function vx(t,e,n){var i=yx.call(this,new _m)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},"string"==typeof e&&(e=Nx[e]),i._dom=t;var o="canvas";o=i._zr=hu(t,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height});i._throttledZrFlush=Fy(B(o.flush,o),17),(e=C(e))&&Xf(e,!0),i._theme=e,i._locale=function(t){if(H(t)){var e=Kc[t.toUpperCase()]||{};return t===Zc||t===qc?C(e):w(C(e),C(Kc[jc]),!1)}return w(C(t),C(Kc[jc]),!1)}(n.locale||Jc),i._coordSysMgr=new bf;n=i._api=px(i);function r(t,e){return t.__prio-e.__prio}return Ce(Px,r),Ce(Dx,r),i._scheduler=new Ky(i,n,Dx,Px),i._messageCenter=new qv,i._labelManager=new tv,i._initEvents(),i.resize=B(i.resize,i),o.animation.on("frame",i._onframe,i),rx(o,i),ax(o,i),st(i),i}function xx(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===Th&&t.states.emphasis?e.push("emphasis"):t.hoverState===Ih&&t.states.blur&&e.push("blur"),t.useStates(e)}function _x(t,e){var i,o;t.preventAutoZ||(i=t.get("z"),o=t.get("zlevel"),e.group.traverse(function(t){var e,n;t.isGroup||(null!=i&&(t.z=i),null!=o&&(t.zlevel=o),n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.z=t.z,n.zlevel=t.zlevel,n.z2=t.z2+2),e&&(n=t.textGuideLineConfig&&t.textGuideLineConfig.showAbove,e.z=t.z,e.zlevel=t.zlevel,e.z2=t.z2+(n?1:-1)))}))}function bx(t,e){e.group.traverse(function(t){var e,n;Yp(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 Sx(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"),additive:n.get("additive")}:null;e.group.traverse(function(t){var e,n,i;t.states&&t.states.emphasis&&(Yp(t)||(t instanceof Ir&&((i=Sh(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||(e=t.prevStates)&&t.useStates(e),o&&(t.stateTransition=r,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=r),e&&(e.stateTransition=r)),t.__dirty&&xx(t)))})}vh=mx.prototype;vh.on=Xv("on"),vh.off=Xv("off"),vh.one=function(i,o,t){var r=this;yc(),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 Mx=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Ix(){0}var Tx={},Cx={},Dx=[],Ax=[],kx=[],Lx=[],Px=[],Nx={},Ox={},Rx={},Ex={},zx=+new Date,Bx=+new Date,Vx="_echarts_instance_";function Fx(t){Ex[t]=!1}r=Fx;function Gx(t){return Rx[e=Vx,(t=t).getAttribute?t.getAttribute(e):t[e]];var e}function Hx(t,e){Nx[t]=e}function Wx(t){Ax.push(t)}function Xx(t,e){jx(Dx,t,e,2e3)}function Yx(t,e,n){"function"==typeof e&&(n=e,e="");var i=Bv(t)?t.type:[t,t={event:e}][0];t.event=(t.event||i).toLowerCase(),e=t.event,Rv(Hv.test(i)&&Hv.test(e)),Tx[i]||(Tx[i]={action:n,actionInfo:t}),Cx[e]=i}function Ux(t,e){bf.register(t,e)}function Zx(t,e){jx(Px,t,e,1e3,"layout")}function qx(t,e){jx(Px,t,e,3e3,"visual")}function jx(t,e,n,i,o){(zv(e)||Bv(e))&&(n=e,e=i);o=Ky.wrapStageHandler(n,o);o.__prio=e,o.__raw=n,t.push(o)}function Kx(t,e){Ox[t]=e}function $x(t){return Ed.extend(t)}function Jx(t){return Iy.extend(t)}vh=function(t){var e=(t=C(t)).type,n="";e||mc(n);var i=e.split(":");2!==i.length&&mc(n),"echarts"===i[0]&&(e=i[1]),Hg.set(e,t)};qx(2e3,Na),qx(4500,g),qx(4500,Bc),qx(2e3,rp),qx(4500,$l),Wx(Xf),Xx(900,function(t){var i=ct();t.eachSeries(function(t){var e,n=t.get("stack");n&&(e=i.get(n)||i.set(n,[]),(t={stackResultDimension:(n=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:n.getCalculationInfo("stackedOverDimension"),stackedDimension:n.getCalculationInfo("stackedDimension"),stackedByDimension:n.getCalculationInfo("stackedByDimension"),isStackedByIndex:n.getCalculationInfo("isStackedByIndex"),data:n,seriesModel:t}).stackedDimension&&(t.isStackedByIndex||t.stackedByDimension)&&(e.length&&n.setCalculationInfo("stackedOnSeries",e[e.length-1].seriesModel),e.push(t)))}),i.each(Yf)}),Kx("default",function(i,o){A(o=o||{},{text:"loading",textColor:"#000",fontSize:"12px",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var t=new qr,r=new pa({style:{fill:o.maskColor},zlevel:o.zlevel,z:1e4});t.add(r);var a,s=o.fontSize+" sans-serif",l=new pa({style:{fill:"none"},textContent:new Rs({style:{text:o.text,fill:o.textColor,font:s}}),textConfig:{position:"right",distance:10},zlevel:o.zlevel,z:10001});return t.add(l),o.showSpinner&&((a=new Us({shape:{startAngle:-jy/2,endAngle:-jy/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*jy/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*jy/2}).delay(300).start("circularInOut"),t.add(a)),t.resize=function(){var t=Li(o.text,s),e=o.showSpinner?o.spinnerRadius:0,n=(i.getWidth()-2*e-(o.showSpinner&&t?10:0)-t)/2-(o.showSpinner?0:t/2),t=i.getHeight()/2;o.showSpinner&&a.setShape({cx:n,cy:t}),l.setShape({x:n-e,y:t-e,width:2*e,height:2*e}),r.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},t.resize(),t}),Yx({type:Lh,event:Lh,update:Lh},gt),Yx({type:Ph,event:Ph,update:Ph},gt),Yx({type:Nh,event:Nh,update:Nh},gt),Yx({type:Oh,event:Oh,update:Oh},gt),Yx({type:Rh,event:Rh,update:Rh},gt),Hx("light",n),Hx("dark",Ec);function Qx(t){return t}var t_=(e_.prototype.add=function(t){return this._add=t,this},e_.prototype.update=function(t){return this._update=t,this},e_.prototype.remove=function(t){return this._remove=t,this},e_.prototype.execute=function(){var t,e=this._old,n=this._new,i={},o=[],r=[];for(this._initIndexMap(e,{},o,"_oldKeyGetter"),this._initIndexMap(n,i,r,"_newKeyGetter"),t=0;t<e.length;t++){null!=(a=i[s=o[t]])?((u=a.length)?(1===u&&(i[s]=null),a=a.shift()):i[s]=null,this._update&&this._update(a,t)):this._remove&&this._remove(t)}for(t=0;t<r.length;t++){var a,s=r[t];if(i.hasOwnProperty(s))if(null!=(a=i[s]))if(a.length)for(var l=0,u=a.length;l<u;l++)this._add&&this._add(a[l]);else this._add&&this._add(a)}},e_.prototype._initIndexMap=function(t,e,n,i){for(var o=0;o<t.length;o++){var r="_ec_"+this[i](t[o],o),a=e[r];null==a?(n.push(r),e[r]=o):(a.length||(e[r]=a=[a]),a.push(o))}},e_);function e_(t,e,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=n||Qx,this._newKeyGetter=i||Qx,this.context=o}function n_(r){var t={},a=t.encode={},s=ct(),l=[],u=[],h=t.userOutput={dimensionNames:r.dimensions.slice(),encode:{}};R(r.dimensions,function(t){var e,n,i=r.getDimensionInfo(t),o=i.coordDim;o&&(e=i.coordDimIndex,i_(a,o)[e]=t,i.isExtraCoord||(s.set(o,1),"ordinal"===(n=i.type)||"time"===n||(l[0]=t),i_(h.encode,o)[e]=i.index),i.defaultTooltip&&u.push(t)),Xd.each(function(t,e){var n=i_(a,e),e=i.otherDims[e];null!=e&&!1!==e&&(n[e]=i.name)})});var i=[],o={};s.each(function(t,e){var n=a[e];o[e]=n[0],i=i.concat(n)}),t.dataDimsOnCoord=i,t.encodeFirstDimNotExtra=o;var e=a.label;e&&e.length&&(l=e.slice());e=a.tooltip;return e&&e.length?u=e.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,t}function i_(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function o_(t){return"category"===t?"ordinal":"time"===t?"time":"float"}var r_,a_,s_,l_,u_,h_,c_,p_,d_,f_,g_,y_,m_,v_,x_=function(t){this.otherDims={},null!=t&&N(this,t)},__=Math.floor,b_=Y,w_=L,Na="undefined",S_={float:typeof Float64Array==Na?Array:Float64Array,int:typeof Int32Array==Na?Array:Int32Array,ordinal:Array,number:Array,time:Array},M_=typeof Uint32Array==Na?Array:Uint32Array,I_=typeof Int32Array==Na?Array:Int32Array,T_=typeof Uint16Array==Na?Array:Uint16Array,C_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx","_nameRepeatCount"],D_=["_extent","_approximateExtent","_rawExtent"],A_=(k_.prototype.getDimension=function(t){return"number"!=typeof t&&(isNaN(t)||this._dimensionInfos.hasOwnProperty(t))||(t=this.dimensions[t]),t},k_.prototype.getDimensionInfo=function(t){return this._dimensionInfos[this.getDimension(t)]},k_.prototype.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},k_.prototype.mapDimension=function(t,e){var n=this._dimensionsSummary;if(null==e)return n.encodeFirstDimNotExtra[t];t=n.encode[t];return t?t[e]:null},k_.prototype.mapDimensionsAll=function(t){return(this._dimensionsSummary.encode[t]||[]).slice()},k_.prototype.initData=function(t,e,n){var i=jf(t)||k(t);i&&(t=new eg(t,this.dimensions.length)),this._rawData=t,this._storage={},this._indices=null,this._nameList=e||[],this._idList=[],this._nameRepeatCount={},n||(this.hasItemOption=!1),this.defaultDimValueGetter=r_[this._rawData.getSource().sourceFormat],this._dimValueGetter=n=n||this.defaultDimValueGetter,this._dimValueGetterArrayRows=r_.arrayRows,this._rawExtent={},this._initDataFromProvider(0,t.count()),t.pure&&(this.hasItemOption=!1)},k_.prototype.getProvider=function(){return this._rawData},k_.prototype.appendData=function(t){var e=this._rawData,n=this.count();e.appendData(t);t=e.count();e.persistent||(t+=n),this._initDataFromProvider(n,t,!0)},k_.prototype.appendValues=function(t,e){for(var n=this._storage,i=this.dimensions,o=i.length,r=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e?e.length:0),l=0;l<o;l++){var u=i[l];r[u]||(r[u]=y_()),u_(n,this._dimensionInfos[u],s,!0)}for(var h=w_(i,function(t){return r[t]}),c=this._storageArr=w_(i,function(t){return n[t]}),p=[],d=a;d<s;d++){for(var f=d-a,g=0;g<o;g++){var u=i[g],y=this._dimValueGetterArrayRows(t[f]||p,u,f,g);c[g][d]=y;var m=h[g];y<m[0]&&(m[0]=y),y>m[1]&&(m[1]=y)}e&&(this._nameList[d]=e[f])}this._rawCount=this._count=s,this._extent={},a_(this)},k_.prototype._initDataFromProvider=function(t,e,n){if(!(e<=t)){var i,o=this._rawData,r=this._storage,a=this.dimensions,s=a.length,l=this._dimensionInfos,u=this._nameList,h=this._idList,c=this._rawExtent;this._nameRepeatCount={};for(var p=0;p<s;p++){var d=a[p];c[d]||(c[d]=y_());var f=l[d];0===f.otherDims.itemName&&(i=this._nameDimIdx=p),0===f.otherDims.itemId&&(this._idDimIdx=p),u_(r,f,e,n)}var g=this._storageArr=w_(a,function(t){return r[t]}),y=w_(a,function(t){return c[t]});if(o.fillStorage)o.fillStorage(t,e,g,y);else for(var m=[],v=t;v<e;v++){m=o.getItem(v,m);for(var x,_,b,w=0;w<s;w++){var d=a[w],S=g[w],M=this._dimValueGetter(m,d,v,w);S[v]=M;S=y[w];M<S[0]&&(S[0]=M),M>S[1]&&(S[1]=M)}o.pure||(_=u[v],m&&null==_&&(null!=m.name?u[v]=_=Yu(m.name,null):null!=i&&(x=a[i],(b=r[x])&&(_=Yu((x=l[x].ordinalMeta)&&x.categories.length?x.categories[b[v]]:b[v],null)))),null==(b=null==m?null:Yu(m.id,null))&&null!=_&&(b=p_(this,_)),null!=b&&(h[v]=b))}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=e,this._extent={},a_(this)}},k_.prototype.count=function(){return this._count},k_.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array){o=new e(n);for(var i=0;i<n;i++)o[i]=t[i]}else o=new e(t.buffer,0,n)}else for(var o=new(e=l_(this))(this.count()),i=0;i<o.length;i++)o[i]=i;return o},k_.prototype.getByDimIdx=function(t,e){if(!(0<=e&&e<this._count))return NaN;t=this._storageArr[t];return t?t[this.getRawIndex(e)]:NaN},k_.prototype.get=function(t,e){if(!(0<=e&&e<this._count))return NaN;t=this._storage[t];return t?t[this.getRawIndex(e)]:NaN},k_.prototype.getByRawIndex=function(t,e){if(!(0<=e&&e<this._rawCount))return NaN;t=this._storage[t];return t?t[e]:NaN},k_.prototype.getValues=function(t,e){var n=[];F(t)||(e=t,t=this.dimensions);for(var i=0,o=t.length;i<o;i++)n.push(this.get(t[i],e));return n},k_.prototype.hasValue=function(t){for(var e=this._dimensionsSummary.dataDimsOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this.get(e[n],t)))return!1;return!0},k_.prototype.getDataExtent=function(t){t=this.getDimension(t);var e=this._storage[t],n=y_();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 i=[r,a],this._extent[t]=i},k_.prototype.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},k_.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},k_.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},k_.prototype.setCalculationInfo=function(t,e){b_(t)?N(this._calculationInfo,t):this._calculationInfo[t]=e},k_.prototype.getSum=function(t){var e=0;if(this._storage[t])for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(e+=o)}return e},k_.prototype.getMedian=function(t){var e=[];this.each(t,function(t){isNaN(t)||e.push(t)});var n=e.sort(function(t,e){return t-e}),t=this.count();return 0===t?0:t%2==1?n[(t-1)/2]:(n[t/2]+n[t/2-1])/2},k_.prototype.rawIndexOf=function(t,e){t=t&&this._invertedIndicesMap[t];e=t[e];return null==e||isNaN(e)?-1:e},k_.prototype.indexOfName=function(t){for(var e=0,n=this.count();e<n;e++)if(this.getName(e)===t)return e;return-1},k_.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(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},k_.prototype.indicesOfNearest=function(t,e,n){var i=this._storage[t],o=[];if(!i)return o;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))}return o.length=s,o},k_.prototype.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n<this.dimensions.length;n++){var i=this.dimensions[n];e.push(this.get(i,t))}return e},k_.prototype.getName=function(t){t=this.getRawIndex(t);return this._nameList[t]||Yu(s_(this,this._nameDimIdx,t),"")||""},k_.prototype.getId=function(t){return d_(this,this.getRawIndex(t))},k_.prototype.each=function(t,e,n,i){var o=this;if(this._count){"function"==typeof t&&(i=n,n=e,e=t,t=[]);var r=n||i||this,t=w_(f_(t),this.getDimension,this);0;for(var a=t.length,s=w_(t,function(t){return o._dimensionInfos[t].index}),l=this._storageArr,u=0,h=this.count();u<h;u++){var c=this.getRawIndex(u);switch(a){case 0:e.call(r,u);break;case 1:e.call(r,l[s[0]][c],u);break;case 2:e.call(r,l[s[0]][c],l[s[1]][c],u);break;default:for(var p=0,d=[];p<a;p++)d[p]=l[s[p]][c];d[p]=u,e.apply(r,d)}}}},k_.prototype.filterSelf=function(t,e,n,i){var o=this;if(this._count){"function"==typeof t&&(i=n,n=e,e=t,t=[]);var r=n||i||this,t=w_(f_(t),this.getDimension,this);0;for(var a=this.count(),s=new(l_(this))(a),l=[],u=t.length,h=0,c=w_(t,function(t){return o._dimensionInfos[t].index}),p=c[0],d=this._storageArr,f=0;f<a;f++){var g=void 0,y=this.getRawIndex(f);if(0===u)g=e.call(r,f);else if(1===u)var m=d[p][y],g=e.call(r,m,f);else{for(var v=0;v<u;v++)l[v]=d[c[v]][y];l[v]=f,g=e.apply(r,l)}g&&(s[h++]=y)}return h<a&&(this._indices=s),this._count=h,this._extent={},this.getRawIndex=this._indices?c_:h_,this}},k_.prototype.selectRange=function(t){var e=this,n=this._count;if(n){var i,o=[];for(i in t)t.hasOwnProperty(i)&&o.push(i);0;var r=o.length;if(r){var a=this.count(),s=new(l_(this))(a),l=0,u=o[0],h=w_(o,function(t){return e._dimensionInfos[t].index}),c=t[u][0],p=t[u][1],d=this._storageArr,u=!1;if(!this._indices){var f=0;if(1===r){for(var g=d[h[0]],y=0;y<n;y++){(c<=(_=g[y])&&_<=p||isNaN(_))&&(s[l++]=f),f++}u=!0}else if(2===r){for(var g=d[h[0]],m=d[h[1]],v=t[o[1]][0],x=t[o[1]][1],y=0;y<n;y++){var _=g[y],b=m[y];(c<=_&&_<=p||isNaN(_))&&(v<=b&&b<=x||isNaN(b))&&(s[l++]=f),f++}u=!0}}if(!u)if(1===r)for(y=0;y<a;y++){var w=this.getRawIndex(y);(c<=(_=d[h[0]][w])&&_<=p||isNaN(_))&&(s[l++]=w)}else for(y=0;y<a;y++){for(var S=!0,w=this.getRawIndex(y),M=0;M<r;M++){var I=o[M];((_=d[h[M]][w])<t[I][0]||_>t[I][1])&&(S=!1)}S&&(s[l++]=this.getRawIndex(y))}return l<a&&(this._indices=s),this._count=l,this._extent={},this.getRawIndex=this._indices?c_:h_,this}}},k_.prototype.mapArray=function(t,e,n,i){"function"==typeof t&&(i=n,n=e,e=t,t=[]),n=n||i||this;var o=[];return this.each(t,function(){o.push(e&&e.apply(this,arguments))},n),o},k_.prototype.map=function(t,e,n,i){var o=n||i||this,r=w_(f_(t),this.getDimension,this);var t=g_(this,r),a=t._storage;t._indices=this._indices,t.getRawIndex=t._indices?c_:h_;for(var s=[],l=r.length,u=this.count(),h=[],c=t._rawExtent,p=0;p<u;p++){for(var d=0;d<l;d++)h[d]=this.get(r[d],p);h[l]=p;var f=e&&e.apply(o,h);if(null!=f){"object"!=typeof f&&(s[0]=f,f=s);for(var g=this.getRawIndex(p),y=0;y<f.length;y++){var m=r[y],v=f[y],x=c[m],m=a[m];m&&(m[g]=v),v<x[0]&&(x[0]=v),v>x[1]&&(x[1]=v)}}}return t},k_.prototype.downSample=function(t,e,n,i){for(var o=g_(this,[t]),r=o._storage,a=[],s=__(1/e),l=r[t],u=this.count(),h=o._rawExtent[t],c=new(l_(this))(u),p=0,d=0;d<u;d+=s){u-d<s&&(s=u-d,a.length=s);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.getRawIndex=c_,o},k_.prototype.lttbDownSample=function(t,e){var n,i=g_(this,[]),o=i._storage[t],r=this.count(),a=new(l_(this))(r),s=0,l=__(1/e),u=this.getRawIndex(0);a[s++]=u;for(var h=1;h<r-1;h+=l){for(var c=Math.min(h+l,r-1),p=Math.min(h+2*l,r),d=(p+c)/2,f=0,g=c;g<p;g++){var y=o[w=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=h,m=Math.min(h+l,r),v=h-1,x=o[u],_=-1,b=c,g=c;g<m;g++){var w,y=o[w=this.getRawIndex(g)];isNaN(y)||_<(n=Math.abs((v-d)*(y-x)-(v-g)*(f-x)))&&(_=n,b=w)}u=a[s++]=b}return a[s++]=this.getRawIndex(r-1),i._count=s,i._indices=a,i.getRawIndex=c_,i},k_.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new Hc(t,e,e&&e.ecModel)},k_.prototype.diff=function(e){var n=this;return new t_(e?e.getIndices():[],this.getIndices(),function(t){return d_(e,t)},function(t){return d_(n,t)})},k_.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},k_.prototype.setVisual=function(t,e){this._visual=this._visual||{},b_(t)?N(this._visual,t):this._visual[t]=e},k_.prototype.getItemVisual=function(t,e){t=this._itemVisuals[t],t=t&&t[e];return null==t?this.getVisual(e):t},k_.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],t=(i=i||(n[t]={}))[e];return t||(F(t=this.getVisual(e))?t=t.slice():b_(t)&&(t=N({},t)),i[e]=t),t},k_.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,b_(e)?N(i,e):i[e]=n},k_.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},k_.prototype.setLayout=function(t,e){if(b_(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},k_.prototype.getLayout=function(t){return this._layout[t]},k_.prototype.getItemLayout=function(t){return this._itemLayouts[t]},k_.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?N(this._itemLayouts[t]||{},e):e},k_.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},k_.prototype.setItemGraphicEl=function(t,e){var n,i=this.hostModel;e&&((n=_h(e)).dataIndex=t,n.dataType=this.dataType,n.seriesIndex=i&&i.seriesIndex,"group"===e.type&&e.traverse(m_,e)),this._graphicEls[t]=e},k_.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},k_.prototype.eachItemGraphicEl=function(n,i){R(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},k_.prototype.cloneShallow=function(t){if((t=t||new k_(w_(this.dimensions,this.getDimensionInfo,this),this.hostModel))._storage=this._storage,t._storageArr=this._storageArr,v_(t,this),this._indices){var e=this._indices.constructor;if(e===Array){var n=this._indices.length;t._indices=new e(n);for(var i=0;i<n;i++)t._indices[i]=this._indices[i]}else t._indices=new e(this._indices)}else t._indices=null;return t.getRawIndex=t._indices?c_:h_,t},k_.prototype.wrapMethod=function(t,e){var n=this[t];"function"==typeof n&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(nt(arguments)))})},k_.internalField=(r_={arrayRows:L_,objectRows:function(t,e,n,i){return Cg(t[e],this._dimensionInfos[e])},keyedColumns:L_,original:function(t,e,n,i){var o=t&&(null==t.value?t:t.value);return this._rawData.pure||(!Y(t=t)||t instanceof Array)||(this.hasItemOption=!0),Cg(o instanceof Array?o[i]:o,this._dimensionInfos[e])},typedArray:function(t,e,n,i){return t[i]}},a_=function(o){var r=o._invertedIndicesMap;R(r,function(t,e){var n=o._dimensionInfos[e].ordinalMeta;if(n){t=r[e]=new I_(n.categories.length);for(var i=0;i<t.length;i++)t[i]=-1;for(i=0;i<o._count;i++)t[o.get(e,i)]=i}})},s_=function(t,e,n){var i,o;return null!=e&&(o=t.dimensions[e],(e=t._storage[o])&&(i=e[n],(o=t._dimensionInfos[o].ordinalMeta)&&o.categories.length&&(i=o.categories[i]))),i},l_=function(t){return 65535<t._rawCount?M_:T_},u_=function(t,e,n,i){var o=S_[e.type],e=e.name;if(i){var r=t[e],a=r&&r.length;if(a!==n){for(var s=new o(n),l=0;l<a;l++)s[l]=r[l];t[e]=s}}else t[e]=new o(n)},h_=function(t){return t},c_=function(t){return t<this._count&&0<=t?this._indices[t]:-1},p_=function(t,e){var n=t._nameRepeatCount;n[e]=n[e]||0;t=e;return 0<n[e]&&(t+="__ec__"+n[e]),n[e]++,t},d_=function(t,e){var n=t._idList[e];return null==n&&(n=Yu(s_(t,t._idDimIdx,e),null)),null==n&&(null!=(n=Yu(s_(t,t._nameDimIdx,e),null))?(n=p_(t,n),t._idList[e]=n):n="e\0\0"+e),n},f_=function(t){return F(t)||(t=[t]),t},g_=function(t,e){var n=t.dimensions,i=new k_(w_(n,t.getDimensionInfo,t),t.hostModel);v_(i,t);for(var o,r,a=i._storage={},s=t._storage,l=i._storageArr=[],u=0;u<n.length;u++){var h=n[u];s[h]&&(0<=D(e,h)?(a[h]=(o=s[h],r=void 0,(r=o.constructor)===Array?o.slice():new r(o)),i._rawExtent[h]=y_(),i._extent[h]=null):a[h]=s[h],l.push(a[h]))}return i},y_=function(){return[1/0,-1/0]},m_=function(t){var e=_h(t),t=_h(this);e.seriesIndex=t.seriesIndex,e.dataIndex=t.dataIndex,e.dataType=t.dataType},void(v_=function(e,n){R(C_.concat(n.__wrappedMethods||[]),function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e.__wrappedMethods=n.__wrappedMethods,R(D_,function(t){e[t]=C(n[t])}),e._calculationInfo=N({},n._calculationInfo)})),k_);function k_(t,e){this.type="list",this._count=0,this._rawCount=0,this._storage={},this._storageArr=[],this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._rawExtent={},this._extent={},this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!0,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"],this.getRawIndex=h_,t=t||["x","y"];for(var n={},i=[],o={},r=0;r<t.length;r++){var a=t[r],s=H(a)?new x_({name:a}):a instanceof x_?a:new x_(a),a=s.name;s.type=s.type||"float",s.coordDim||(s.coordDim=a,s.coordDimIndex=0),s.otherDims=s.otherDims||{},i.push(a),(n[a]=s).index=r,s.createInvertedIndices&&(o[a]=[])}this.dimensions=i,this._dimensionInfos=n,this.hostModel=e,this._dimensionsSummary=n_(this),this._invertedIndicesMap=o,this.userOutput=this._dimensionsSummary.userOutput}function L_(t,e,n,i){return Cg(t[i],this._dimensionInfos[e])}function P_(t,e,n){jf(e)||(e=$f(e)),n=n||{},t=(t||[]).slice();for(var i,o,r,a,s=(n.dimsDef||[]).slice(),l=ct(),u=ct(),h=[],c=(i=e,y=t,o=s,r=n.dimCount,a=Math.max(i.dimensionsDetectedCount||1,y.length,o.length,r||0),R(y,function(t){var e;Y(t)&&(e=t.dimsDef)&&(a=Math.max(a,e.length))}),a),p=0;p<c;p++){var d=s[p],f=s[p]=N({},Y(d)?d:{name:d}),d=f.name,g=h[p]=new x_;null!=d&&null==l.get(d)&&(g.name=g.displayName=d,l.set(d,p)),null!=f.type&&(g.type=f.type),null!=f.displayName&&(g.displayName=f.displayName)}var y=n.encodeDef;!y&&n.encodeDefaulter&&(y=n.encodeDefaulter(e,c));var m=ct(y);m.each(function(t,n){var i,t=Bu(t).slice();1===t.length&&!H(t[0])&&t[0]<0?m.set(n,!1):(i=m.set(n,[]),R(t,function(t,e){t=H(t)?l.get(t):t;null!=t&&t<c&&(i[e]=t,x(h[t],n,e))}))});var v=0;function x(t,e,n){null!=Xd.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,u.set(e,!0))}R(t,function(t){var n,i,o,r;H(t)?(n=t,r={}):(n=(r=t).name,t=r.ordinalMeta,r.ordinalMeta=null,(r=C(r)).ordinalMeta=t,i=r.dimsDef,o=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null);var e=m.get(n);if(!1!==e){if(!(e=Bu(e)).length)for(var a=0;a<(i&&i.length||1);a++){for(;v<h.length&&null!=h[v].coordDim;)v++;v<h.length&&e.push(v++)}R(e,function(t,e){t=h[t];x(A(t,r),n,e),null==t.name&&i&&(Y(e=i[e])||(e={name:e}),t.name=t.displayName=e.name,t.defaultTooltip=e.defaultTooltip),o&&A(t.otherDims,o)})}});for(var _,b,w=n.generateCoord,S=null!=(M=n.generateCoordCount),M=w?M||1:0,I=w||"value",T=0;T<c;T++){null==(g=h[T]=h[T]||new x_).coordDim&&(g.coordDim=N_(I,u,S),g.coordDimIndex=0,(!w||M<=0)&&(g.isExtraCoord=!0),M--),null==g.name&&(g.name=N_(g.coordDim,l,!1)),null==g.type&&(b=T,af((_=e).data,_.sourceFormat,_.seriesLayoutBy,_.dimensionsDefine,_.startIndex,b)===Qd.Must||g.isExtraCoord&&(null!=g.otherDims.itemName||null!=g.otherDims.seriesName))&&(g.type="ordinal")}return h}function N_(t,e,n){if(n||null!=e.get(t)){for(var i=0;null!=e.get(t+i);)i++;t+=i}return e.set(t,!0),t}function O_(t,e){return P_((e=e||{}).coordDimensions||[],t,{dimsDef:e.dimensionsDefine||t.dimensionsDefine,encodeDef:e.encodeDefine||t.encodeDefine,dimCount:e.dimensionsCount,encodeDefaulter:e.encodeDefaulter,generateCoord:e.generateCoord,generateCoordCount:e.generateCoordCount})}var R_=function(t){this.coordSysDims=[],this.axisMap=ct(),this.categoryAxisMap=ct(),this.coordSysName=t};var E_={cartesian2d:function(t,e,n,i){var o=t.getReferringComponents("xAxis",th).models[0],t=t.getReferringComponents("yAxis",th).models[0];e.coordSysDims=["x","y"],n.set("x",o),n.set("y",t),z_(o)&&(i.set("x",o),e.firstCategoryDimIndex=0),z_(t)&&(i.set("y",t),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",th).models[0];e.coordSysDims=["single"],n.set("single",t),z_(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var o=t.getReferringComponents("polar",th).models[0],t=o.findAxisModel("radiusAxis"),o=o.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",t),n.set("angle",o),z_(t)&&(i.set("radius",t),e.firstCategoryDimIndex=0),z_(o)&&(i.set("angle",o),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();R(t.parallelAxisIndex,function(t,e){var n=a.getComponent("parallelAxis",t),t=s[e];o.set(t,n),z_(n)&&null==i.firstCategoryDimIndex&&(r.set(t,n),i.firstCategoryDimIndex=e)})}};function z_(t){return"category"===t.get("type")}function B_(t,n,e){var i,o,r,a,s,l,u=(e=e||{}).byIndex,h=e.stackedCoordDimension,c=!(!t||!t.get("stack"));return R(n,function(t,e){H(t)&&(n[e]=t={name:t}),c&&!t.isExtraCoord&&(u||i||!t.ordinalMeta||(i=t),o||"ordinal"===t.type||"time"===t.type||h&&h!==t.coordDim||(o=t))}),!o||u||i||(u=!0),o&&(r="__\0ecstackresult",a="__\0ecstackedover",i&&(i.createInvertedIndices=!0),s=o.coordDim,t=o.type,l=0,R(n,function(t){t.coordDim===s&&l++}),n.push({name:r,coordDim:s,coordDimIndex:l,type:t,isExtraCoord:!0,isCalculationCoord:!0}),l++,n.push({name:a,coordDim:a,coordDimIndex:l,type:t,isExtraCoord:!0,isCalculationCoord:!0})),{stackedDimension:o&&o.name,stackedByDimension:i&&i.name,isStackedByIndex:u,stackedOverDimension:a,stackResultDimension:r}}function V_(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function F_(t,e){return V_(t,e)?t.getCalculationInfo("stackResultDimension"):e}function G_(t,e,n){n=n||{},jf(t)||(t=$f(t));var i=e.get("coordinateSystem"),i=bf.get(i),o=function(t){var e=t.get("coordinateSystem"),n=new R_(e);if(e=E_[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e);o&&o.coordSysDims&&(s=L(o.coordSysDims,function(t){var e={name:t},t=o.axisMap.get(t);return t&&(t=t.get("type"),e.type=o_(t)),e})),s=s||(i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]);var r,a,i=n.useEncodeDefaulter,i=O_(t,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefaulter:G(i)?i:i?V(nf,s,e):null});o&&R(i,function(t,e){var n=t.coordDim,n=o.categoryAxisMap.get(n);n&&(null==r&&(r=e),t.ordinalMeta=n.getOrdinalMeta()),null!=t.otherDims.itemName&&(a=!0)}),a||null==r||(i[r].otherDims.itemName=0);var s=B_(e,i),e=new A_(i,e);e.setCalculationInfo(s);s=null!=r&&function(t){if(t.sourceFormat===Yd){t=function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[]);return null!=t&&!F(Gu(t))}}(t)?function(t,e,n,i){return i===r?n:this.defaultDimValueGetter(t,e,n,i)}:null;return e.hasItemOption=!1,e.initData(t,null,s),e}var H_=(W_.prototype.getSetting=function(t){return this._setting[t]},W_.prototype.unionExtent=function(t){var e=this._extent;t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])},W_.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},W_.prototype.getExtent=function(){return this._extent.slice()},W_.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},W_.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},W_.prototype.isBlank=function(){return this._isBlank},W_.prototype.setBlank=function(t){this._isBlank=t},W_);function W_(t){this._setting=t||{},this._extent=[1/0,-1/0]}gh(H_,{registerWhenExtend:!0});var X_=(Y_.createByAxisModel=function(t){var e=t.option,t=e.data,t=t&&L(t,U_);return new Y_({categories:t,needCollect:!t,deduplication:!1!==e.dedplication})},Y_.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},Y_.prototype.parseAndCollect=function(t){var e=this._needCollect;if("string"!=typeof t&&!e)return t;if(e&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var n,i=this._getOrCreateMap();return null==(n=i.get(t))&&(e?(n=this.categories.length,this.categories[n]=t,i.set(t,n)):n=NaN),n},Y_.prototype._getOrCreateMap=function(){return this._map||(this._map=ct(this.categories))},Y_);function Y_(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication}function U_(t){return Y(t)&&null!=t.value?t.value:t+""}var Z_=yu;function q_(t,e,n,i){var o={},r=t[1]-t[0],e=o.interval=Au(r/e,!0);null!=n&&e<n&&(e=o.interval=n),null!=i&&i<e&&(e=o.interval=i);i=o.intervalPrecision=j_(e),i=o.niceTickExtent=[Z_(Math.ceil(t[0]/e)*e,i),Z_(Math.floor(t[1]/e)*e,i)];return i=i,t=t,isFinite(i[0])||(i[0]=t[0]),isFinite(i[1])||(i[1]=t[1]),K_(i,0,t),K_(i,1,t),i[0]>i[1]&&(i[0]=i[1]),o}function j_(t){return xu(t)+2}function K_(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function $_(t,e){return t>=e[0]&&t<=e[1]}function J_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Q_(t,e){return t*(e[1]-e[0])+e[0]}var tb,eb=(l(nb,tb=H_),nb.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},nb.prototype.contain=function(t){return $_(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},nb.prototype.normalize=function(t){return J_(t=this.getCategoryIndex(this.parse(t)),this._extent)},nb.prototype.scale=function(t){return t=this.getCategoryIndex(t),Math.round(Q_(t,this._extent))},nb.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:this.getCategoryIndex(n)}),n++;return t},nb.prototype.getMinorTicks=function(t){},nb.prototype.setCategorySortInfo=function(t){this._categorySortInfo=t},nb.prototype.getCategorySortInfo=function(){return this._categorySortInfo},nb.prototype.getCategoryIndex=function(t){return this._categorySortInfo.length?this._categorySortInfo[t].beforeSortIndex:t},nb.prototype.getRawIndex=function(t){return this._categorySortInfo.length?this._categorySortInfo[t].ordinalNumber:t},nb.prototype.getLabel=function(t){if(!this.isBlank()){t=this.getRawIndex(t.value),t=this._ordinalMeta.categories[t];return null==t?"":t+""}},nb.prototype.count=function(){return this._extent[1]-this._extent[0]+1},nb.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},nb.prototype.isInExtentRange=function(t){return t=this.getCategoryIndex(t),this._extent[0]<=t&&this._extent[1]>=t},nb.prototype.getOrdinalMeta=function(){return this._ordinalMeta},nb.prototype.niceTicks=function(){},nb.prototype.niceExtent=function(){},nb.type="ordinal",nb);function nb(t){var e=tb.call(this,t)||this;e.type="ordinal";t=e.getSetting("ordinalMeta");return t&&!F(t)||(t=new X_({categories:t})),e._ordinalMeta=t,e._categorySortInfo=[],e._extent=e.getSetting("extent")||[0,t.categories.length-1],e}H_.registerClass(eb);var ib,ob=yu,rb=(l(ab,ib=H_),ab.prototype.parse=function(t){return t},ab.prototype.contain=function(t){return $_(t,this._extent)},ab.prototype.normalize=function(t){return J_(t,this._extent)},ab.prototype.scale=function(t){return Q_(t,this._extent)},ab.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},ab.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])},ab.prototype.getInterval=function(){return this._interval},ab.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=j_(t)},ab.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,r=[];if(!e)return r;n[0]<i[0]&&(t?r.push({value:ob(i[0]-e,o)}):r.push({value:n[0]}));for(var a=i[0];a<=i[1]&&(r.push({value:a}),(a=ob(a+e,o))!==r[r.length-1].value);)if(1e4<r.length)return[];var s=r.length?r[r.length-1].value:i[1];return n[1]>s&&(t?r.push({value:ob(s+e,o)}):r.push({value:n[1]})),r},ab.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=ob(a.value+(s+1)*u);h>i[0]&&h<i[1]&&l.push(h),s++}n.push(l)}return n},ab.prototype.getLabel=function(t,e){if(null==t)return"";e=e&&e.precision;return null==e?e=xu(t.value)||0:"auto"===e&&(e=this._intervalPrecision),rd(ob(t.value,e,!0))},ab.prototype.niceTicks=function(t,e,n){t=t||5;var i=this._extent,o=i[1]-i[0];isFinite(o)&&(o<0&&i.reverse(),n=q_(i,t,e,n),this._intervalPrecision=n.intervalPrecision,this._interval=n.interval,this._niceExtent=n.niceTickExtent)},ab.prototype.niceExtent=function(t){var e=this._extent;e[0]===e[1]&&(0!==e[0]?(n=e[0],t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1);var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);n=this._interval;t.fixMin||(e[0]=ob(Math.floor(e[0]/n)*n)),t.fixMax||(e[1]=ob(Math.ceil(e[1]/n)*n))},ab.type="interval",ab);function ab(){var t=null!==ib&&ib.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}H_.registerClass(rb);var sb="__ec_stack_",lb="undefined"!=typeof Float32Array?Float32Array:Array;function ub(t){return t.get("stack")||sb+t.seriesIndex}function hb(t){return t.dim+t.index}function cb(t,e){var n=[];return e.eachSeriesByType(t,function(t){yb(t)&&!mb(t)&&n.push(t)}),n}function pb(t){var l=function(t){var l={};R(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var n=t.getData(),i=e.dim+"_"+e.index,o=n.mapDimension(e.dim),r=0,a=n.count();r<a;++r){var s=n.get(o,r);l[i]?l[i].push(s):l[i]=[s]}});var e,n={};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 R(t,function(t){var e,n=t.coordinateSystem.getBaseAxis(),i=n.getExtent();e="category"===n.type?n.getBandWidth():"value"===n.type||"time"===n.type?(o=n.dim+"_"+n.index,r=l[o],a=Math.abs(i[1]-i[0]),e=n.scale.getExtent(),o=Math.abs(e[1]-e[0]),r?a/o*r:a):(s=t.getData(),Math.abs(i[1]-i[0])/s.count());var o=gu(t.get("barWidth"),e),r=gu(t.get("barMaxWidth"),e),a=gu(t.get("barMinWidth")||1,e),i=t.get("barGap"),s=t.get("barCategoryGap");u.push({bandWidth:e,barWidth:o,barMaxWidth:r,barMinWidth:a,barGap:i,barCategoryGap:s,axisKey:hb(n),stackId:ub(t)})}),db(u)}function db(t){var a={};R(t,function(t,e){var n=t.axisKey,i=t.bandWidth,o=a[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},r=o.stacks;a[n]=o;i=t.stackId;r[i]||o.autoWidthCount++,r[i]=r[i]||{width:0,maxWidth:0};n=t.barWidth;n&&!r[i].width&&(r[i].width=n,n=Math.min(o.remainedWidth,n),o.remainedWidth-=n);n=t.barMaxWidth;n&&(r[i].maxWidth=n);n=t.barMinWidth;n&&(r[i].minWidth=n);n=t.barGap;null!=n&&(o.gap=n);t=t.barCategoryGap;null!=t&&(o.categoryGap=t)});var d={};return R(a,function(t,n){d[n]={};var e,i=t.stacks,o=t.bandWidth,r=t.categoryGap;null==r&&(e=z(i).length,r=Math.max(35-4*e,15)+"%");var r=gu(r,o),a=gu(t.gap,1),s=t.remainedWidth,l=t.autoWidthCount,u=(s-r)/(l+(l-1)*a),u=Math.max(u,0);R(i,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)),i&&e<i&&(e=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;R(i,function(t,e){t.width||(t.width=u),c+=(h=t).width*(1+a)}),h&&(c-=h.width*a);var p=-c/2;R(i,function(t,e){d[n][e]=d[n][e]||{bandWidth:o,offset:p,width:t.width},p+=t.width*(1+a)})}),d}function fb(t,e,n){if(t&&e){e=t[hb(e)];return null!=e&&null!=n?e[ub(n)]:e}}function gb(t,e){var e=cb(t,e),T=pb(e),C={};R(e,function(t){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=ub(t),r=T[hb(i)][o],a=r.offset,s=r.width,l=n.getOtherAxis(i),u=t.get("barMinHeight")||0;C[o]=C[o]||[],e.setLayout({bandWidth:r.bandWidth,offset:a,size:s});for(var h=e.mapDimension(l.dim),c=e.mapDimension(i.dim),p=V_(e,h),d=l.isHorizontal(),f=vb(0,l),g=0,y=e.count();g<y;g++){var m=e.get(h,g),v=e.get(c,g),x=0<=m?"p":"n",_=f;p&&(C[o][v]||(C[o][v]={p:f,n:f}),_=C[o][v][x]);var b,w=void 0,S=void 0,M=void 0,I=void 0;d?(w=_,S=(b=n.dataToPoint([m,v]))[1]+a,M=b[0]-f,I=s,Math.abs(M)<u&&(M=(M<0?-1:1)*u),isNaN(M)||p&&(C[o][v][x]+=M)):(w=(b=n.dataToPoint([v,m]))[0]+a,S=_,M=s,I=b[1]-f,Math.abs(I)<u&&(I=(I<=0?-1:1)*u),isNaN(I)||p&&(C[o][v][x]+=I)),e.setItemLayout(g,{x:w,y:S,width:M,height:I})}})}g={seriesType:"bar",plan:Cy(),reset:function(t){if(yb(t)&&mb(t)){var e=t.getData(),c=t.coordinateSystem,p=c.master.getRect(),n=c.getBaseAxis(),d=c.getOtherAxis(n),f=e.mapDimension(d.dim),g=e.mapDimension(n.dim),y=d.isHorizontal(),m=y?0:1,v=fb(pb([t]),n,t).width;return.5<v||(v=.5),{progress:function(t,e){for(var n,i=t.count,o=new lb(2*i),r=new lb(2*i),a=new lb(i),s=[],l=[],u=0,h=0;null!=(n=t.next());)l[m]=e.get(f,n),l[1-m]=e.get(g,n),s=c.dataToPoint(l,null,s),r[u]=y?p.x+p.width:s[0],o[u++]=s[0],r[u]=y?s[1]:p.y+p.height,o[u++]=s[1],a[h++]=n;e.setLayout({largePoints:o,largeDataIndices:a,largeBackgroundPoints:r,barWidth:v,valueAxisStart:vb(0,d),backgroundStart:y?p.x:p.y,valueAxisHorizontal:y})}}}}};function yb(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function mb(t){return t.pipelineContext&&t.pipelineContext.large}function vb(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}var xb,_b=(l(bb,xb=rb),bb.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return cp(t.value,ap[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(hp(this._minLevelUnit))]||ap.second,e)},bb.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,o){var r=null;if("string"==typeof n)r=n;else if("function"==typeof n)r=n(t.value,e,{level:t.level});else{var a=N({},op);if(0<t.level)for(var s=0;s<sp.length;++s)a[sp[s]]="{primary|"+a[sp[s]]+"}";var l=n?!1===n.inherit?n:A(n,a):a,u=pp(t.value,o);if(l[u])r=l[u];else if(l.inherit){for(s=lp.indexOf(u)-1;0<=s;--s)if(l[u]){r=l[u];break}r=r||a.none}F(r)&&(n=null==t.level?0:0<=t.level?t.level:r.length+t.level,r=r[n=Math.min(n,r.length-1)])}return cp(new Date(t.value),r,i,o)}(t,e,n,this.getSetting("locale"),i)},bb.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=[];if(!e)return i;i.push({value:n[0],level:0});e=this.getSetting("useUTC"),e=function(t,d,f,g){var e=lp,n=0;function i(t,e,n){var i=[],o=!e.length;if(!function(t,e,n,i){function o(t){return dp(c,t,i)===dp(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=Tu(e),p=Tu(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")}}(hp(t),g[0],g[1],f)){o&&(e=[{value:function(t,e,n){t=new Date(t);switch(hp(e)){case"year":case"month":t[bp(n)](0);case"day":t[wp(n)](1);case"hour":t[Sp(n)](0);case"minute":t[Mp(n)](0);case"second":t[Ip(n)](0),t[Tp(n)](0)}return t.getTime()}(new Date(g[0]),t,f)},{value:g[1]}]);for(var r,a,s=0;s<e.length-1;s++){var l=e[s].value,u=e[s+1].value;if(l!==u){var h=void 0,c=void 0,p=void 0;switch(t){case"year":h=Math.max(1,Math.round(d/ip/365)),c=fp(f),p=f?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":a=d,h=6<(a/=30*ip)?6:3<a?3:2<a?2:1,c=gp(f),p=bp(f);break;case"week":case"half-week":case"day":r=d,h=16<(r/=ip)?16:7.5<r?7:3.5<r?4:1.5<r?2:1,c=yp(f),p=wp(f),0;break;case"half-day":case"quarter-day":case"hour":r=d,h=12<(r/=np)?12:6<r?6:3.5<r?4:2<r?2:1,c=mp(f),p=Sp(f);break;case"minute":h=Sb(d,!0),c=vp(f),p=Mp(f);break;case"second":h=Sb(d,!1),c=xp(f),p=Ip(f);break;case"millisecond":h=Au(d,!0),c=_p(f),p=Tp(f)}!function(t,e,n,i,o,r){for(var a=new Date(e),s=e,l=a[i]();s<n&&s<=g[1];)r.push({value:s}),l+=t,a[o](l),s=a.getTime();r.push({value:s,notAdd:!0})}(h,l,u,c,p,i),"year"===t&&1<n.length&&0===s&&n.unshift({value:n[0].value-h})}}for(s=0;s<i.length;s++)n.push(i[s]);return 1}}for(var o=[],r=[],a=0,s=0,l=0;l<e.length&&n++<1e4;++l){var u=hp(e[l]);if(function(t){return t===hp(t)}(e[l])){i(e[l],o[o.length-1]||[],r);var h=e[l+1]?hp(e[l+1]):null;if(u!==h){if(r.length){s=a,r.sort(function(t,e){return t.value-e.value});for(var c=[],p=0;p<r.length;++p){var y=r[p].value;0!==p&&r[p-1].value===y||(c.push(r[p]),y>=g[0]&&y<=g[1]&&a++)}h=(g[1]-g[0])/d;if(1.5*h<a&&h/1.5<s)break;if(o.push(c),h<a||t===e[l])break}r=[]}}}0;for(var m=O(L(o,function(t){return O(t,function(t){return t.value>=g[0]&&t.value<=g[1]&&!t.notAdd})}),function(t){return 0<t.length}),v=[],x=m.length-1,l=0;l<m.length;++l)for(var _=m[l],b=0;b<_.length;++b)v.push({value:_[b].value,level:x-l});v.sort(function(t,e){return t.value-e.value});for(var w=[],l=0;l<v.length;++l)0!==l&&v[l].value===v[l-1].value||w.push(v[l]);return w}(this._minLevelUnit,this._approxInterval,e,n);return(i=i.concat(e)).push({value:n[1],level:0}),i},bb.prototype.niceExtent=function(t){var e,n=this._extent;n[0]===n[1]&&(n[0]-=ip,n[1]+=ip),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]-ip),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval)},bb.prototype.niceTicks=function(t,e,n){t=t||10;var i=this._extent,i=i[1]-i[0];this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n);n=wb.length,n=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}(wb,this._approxInterval,0,n),n-1);this._interval=wb[n][1],this._minLevelUnit=wb[Math.max(n-1,0)][0]},bb.prototype.parse=function(t){return"number"==typeof t?t:+Tu(t)},bb.prototype.contain=function(t){return $_(this.parse(t),this._extent)},bb.prototype.normalize=function(t){return J_(this.parse(t),this._extent)},bb.prototype.scale=function(t){return Q_(t,this._extent)},bb.type="time",bb);function bb(){var t=null!==xb&&xb.apply(this,arguments)||this;return t.type="time",t}var wb=[["second",tp],["minute",ep],["hour",np],["quarter-day",6*np],["half-day",12*np],["day",1.2*ip],["half-week",3.5*ip],["week",7*ip],["month",31*ip],["quarter",95*ip],["half-year",Vi/2],["year",Vi]];function Sb(t,e){return 30<(t/=e?ep:tp)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}H_.registerClass(_b);var Mb,Ib=H_.prototype,Tb=rb.prototype,Cb=xu,Db=yu,Ab=Math.floor,kb=Math.ceil,Lb=Math.pow,Pb=Math.log,Nb=(l(Ob,Mb=H_),Ob.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return L(Tb.getTicks.call(this,t),function(t){var e=t.value,t=yu(Lb(this.base,e)),t=e===n[0]&&this._fixMin?Rb(t,i[0]):t;return{value:t=e===n[1]&&this._fixMax?Rb(t,i[1]):t}},this)},Ob.prototype.setExtent=function(t,e){var n=this.base;t=Pb(t)/Pb(n),e=Pb(e)/Pb(n),Tb.setExtent.call(this,t,e)},Ob.prototype.getExtent=function(){var t=this.base,e=Ib.getExtent.call(this);e[0]=Lb(t,e[0]),e[1]=Lb(t,e[1]);t=this._originalScale.getExtent();return this._fixMin&&(e[0]=Rb(e[0],t[0])),this._fixMax&&(e[1]=Rb(e[1],t[1])),e},Ob.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=Pb(t[0])/Pb(e),t[1]=Pb(t[1])/Pb(e),Ib.unionExtent.call(this,t)},Ob.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},Ob.prototype.niceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n==1/0||n<=0)){var i=Cu(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;e=[yu(kb(e[0]/i)*i),yu(Ab(e[1]/i)*i)];this._interval=i,this._niceExtent=e}},Ob.prototype.niceExtent=function(t){Tb.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},Ob.prototype.parse=function(t){return t},Ob.prototype.contain=function(t){return $_(t=Pb(t)/Pb(this.base),this._extent)},Ob.prototype.normalize=function(t){return J_(t=Pb(t)/Pb(this.base),this._extent)},Ob.prototype.scale=function(t){return t=Q_(t,this._extent),Lb(this.base,t)},Ob.type="log",Ob);function Ob(){var t=null!==Mb&&Mb.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new rb,t._interval=0,t}Bc=Nb.prototype;function Rb(t,e){return Db(t,Cb(e))}Bc.getMinorTicks=Tb.getMinorTicks,Bc.getLabel=Tb.getLabel,H_.registerClass(Nb);var Eb=(zb.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;this._needCrossZero=e.getNeedCrossZero&&e.getNeedCrossZero();var o=this._modelMinRaw=e.get("min",!0);G(o)?this._modelMinNum=Gb(t,o({min:n[0],max:n[1]})):"dataMin"!==o&&(this._modelMinNum=Gb(t,o));o=this._modelMaxRaw=e.get("max",!0);G(o)?this._modelMaxNum=Gb(t,o({min:n[0],max:n[1]})):"dataMax"!==o&&(this._modelMaxNum=Gb(t,o)),i?this._axisDataLen=e.getCategories().length:"boolean"==typeof(e=F(e=e.get("boundaryGap"))?e:[e||0,e||0])[0]||"boolean"==typeof e[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[zi(e[0],1),zi(e[1],1)]},zb.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;null==a&&(a=t?i?0:NaN:e-o[0]*r),null==s&&(s=t?i?i-1:NaN:n+o[1]*r),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),s<a&&(s=a=NaN);r=J(a)||J(s)||t&&!i;this._needCrossZero&&(0<a&&0<s&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));t=this._determinedMin,i=this._determinedMax;return null!=t&&(a=t,l=!0),null!=i&&(s=i,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:r}},zb.prototype.modifyDataMinMax=function(t,e){this[Vb[t]]=e},zb.prototype.setDeterminedMinMax=function(t,e){t=Bb[t];this[t]=e},zb.prototype.freeze=function(){this.frozen=!0},zb);function zb(t,e,n){this._prepareParams(t,e,n)}var Bb={min:"_determinedMin",max:"_determinedMax"},Vb={min:"_dataMin",max:"_dataMax"};function Fb(t,e,n){var i=t.rawExtentInfo;return i||(i=new Eb(t,e,n),t.rawExtentInfo=i)}function Gb(t,e){return null==e?null:J(e)?NaN:t.parse(e)}function Hb(t,e){var n=t.type,i=Fb(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var o,r=i.min,a=i.max,t=e.ecModel;return t&&"time"===n&&(t=cb("bar",t),o=!1,R(t,function(t){o=o||t.getBaseAxis()===e.axis}),o&&(t=pb(t),r=(t=function(t,e,n,i){var o=n.axis.getExtent(),o=o[1]-o[0],i=fb(i,n.axis);if(void 0===i)return{min:t,max:e};var r=1/0;R(i,function(t){r=Math.min(t.offset,r)});var a=-1/0;R(i,function(t){a=Math.max(t.offset+t.width,a)}),r=Math.abs(r),a=Math.abs(a);n=r+a,i=e-t,i=i/(1-(r+a)/o)-i;return{min:t-=r/n*i,max:e+=a/n*i}}(r,a,e,t)).min,a=t.max)),{extent:[r,a],fixMin:i.minFixed,fixMax:i.maxFixed}}function Wb(t,e){var n=Hb(t,e),i=n.extent,o=e.get("splitNumber");t instanceof Nb&&(t.base=e.get("logBase"));var r=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===r||"time"===r?e.get("minInterval"):null,maxInterval:"interval"===r||"time"===r?e.get("maxInterval"):null});e=e.get("interval");null!=e&&t.setInterval&&t.setInterval(e)}function Xb(t,e){if(e=e||t.get("type"))switch(e){case"category":return new eb({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new _b({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(H_.getClass(e)||rb)}}function Yb(n){var i,e,o,t=n.getLabelModel().get("formatter"),r="category"===n.type?n.scale.getExtent()[0]:null;return"time"===n.scale.type?(o=t,function(t,e){return n.scale.getFormattedLabel(t,e,o)}):"string"==typeof t?(e=t,function(t){t=n.scale.getLabel(t);return e.replace("{value}",null!=t?t:"")}):"function"==typeof t?(i=t,function(t,e){return null!=r&&(e=t.value-r),i(Ub(n,t),e,null!=t.level?{level:t.level}:null)}):function(t){return n.scale.getLabel(t)}}function Ub(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Zb(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,o,r=n.getExtent(),a=n instanceof eb?n.count():(i=n.getTicks()).length,s=t.getLabelModel(),l=Yb(t),u=1;40<a&&(u=Math.ceil(a/40));for(var h,c,p=0;p<a;p+=u){var d=l(i?i[p]:{value:r[0]+p},p),f=s.getTextRect(d),g=(h=f,c=s.get("rotate")||0,g=f=d=g=void 0,g=c*Math.PI/180,d=h.width,f=h.height,c=d*Math.abs(Math.cos(g))+Math.abs(f*Math.sin(g)),g=d*Math.abs(Math.sin(g))+Math.abs(f*Math.cos(g)),new Mi(h.x,h.y,c,g));o?o.union(g):o=g}return o}}function qb(t){t=t.get("interval");return null==t?"auto":t}function jb(t){return"category"===t.type&&0===qb(t.getLabelModel())}function Kb(e,t){var n={};return R(e.mapDimensionsAll(t),function(t){n[F_(e,t)]=!0}),z(n)}function $b(e,n,t){n&&R(Kb(n,t),function(t){t=n.getApproximateExtent(t);t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])})}var Jb=(Qb.prototype.getNeedCrossZero=function(){return!this.option.scale},Qb.prototype.getCoordSysModel=function(){},Qb);function Qb(){}var rp=Ir.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()}}),$l=Ir.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()}}),n=Ir.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,r=Math.max(o,e.height),a=o/2,s=a*a/(r-a),l=i-r+a+s,u=Math.asin(s/a),h=Math.cos(u)*a,c=Math.sin(u),e=Math.cos(u),o=.6*a,r=.7*a;t.moveTo(n-h,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+h-c*o,l+s+e*o,n,i-r,n,i),t.bezierCurveTo(n,i-r,n-h+c*o,l+s+e*o,n-h,l+s),t.closePath()}}),Ec=Ir.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()}}),tw={line:function(t,e,n,i,o){o.x=t,o.y=e+i/2-1,o.width=n,o.height=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){i=Math.min(n,i);o.x=t,o.y=e,o.width=i,o.height=i},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}},ew={};R({line:pa,rect:pa,roundRect:pa,square:pa,circle:ia,diamond:$l,pin:n,arrow:Ec,triangle:rp},function(t,e){ew[e]=new t});var nw=Ir.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var i=Bi(t,e,n),t=this.shape;return t&&"pin"===t.symbolType&&"inside"===e.position&&(i.y=n.y+.4*n.height),i},buildPath:function(t,e,n){var i,o=e.symbolType;"none"!==o&&(i=(i=ew[o])||ew[o="rect"],tw[o](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}});function iw(t,e){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):n.fill=t,this.markRedraw())}function ow(t,e,n,i,o,r,a){var s=0===t.indexOf("empty");return s&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(o=0===t.indexOf("image://")?Op(t.slice(8),new Mi(e,n,i,o),a?"center":"cover"):0===t.indexOf("path://")?Np(t.slice(7),{},new Mi(e,n,i,o),a?"center":"cover"):new nw({shape:{symbolType:t,x:e,y:n,width:i,height:o}})).__isEmptyBrush=s,o.setColor=iw,r&&o.setColor(r),o}Na={isDimensionStacked:V_,enableDataStack:B_,getStackedDimension:F_};var Vi=Object.freeze({__proto__:null,createList:function(t){return G_(t.getSource(),t)},getLayoutRect:Id,dataStack:Na,createScale:function(t,e){var n=e;return e instanceof Hc||(n=new Hc(e)),(e=Xb(n)).setExtent(t[0],t[1]),Wb(e,n),e},mixinAxisModelCommonMethods:function(t){T(t,Jb)},getECData:_h,createDimensions:O_,createSymbol:ow}),rw=1e-8;function aw(t,e){return Math.abs(t-e)<rw}function sw(t,e,n){var i=0,o=t[0];if(!o)return!1;for(var r=1;r<t.length;r++){var a=t[r];i+=dr(o[0],o[1],a[0],a[1],e,n),o=a}var s=t[0];return aw(o[0],s[0])&&aw(o[1],s[1])||(i+=dr(o[0],o[1],s[0],s[1],e,n)),0!==i}var lw=(uw.prototype.getBoundingRect=function(){var t=this._rect;if(t)return t;for(var t=Number.MAX_VALUE,e=[t,t],n=[-t,-t],i=[],o=[],r=this.geometries,a=0;a<r.length;a++){"polygon"===r[a].type&&(zo(r[a].exterior,i,o),Ot(e,e,i),Rt(n,n,o))}return 0===a&&(e[0]=e[1]=n[0]=n[1]=0),this._rect=new Mi(e[0],e[1],n[0]-e[0],n[1]-e[1])},uw.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(!e.contain(t[0],t[1]))return!1;t:for(var i=0,o=n.length;i<o;i++)if("polygon"===n[i].type){var r=n[i].exterior,a=n[i].interiors;if(sw(r,t[0],t[1])){for(var s=0;s<(a?a.length:0);s++)if(sw(a[s],t[0],t[1]))continue t;return!0}}return!1},uw.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 i=new Mi(t,e,n,i),a=o.calculateTransform(i),s=this.geometries,l=0;l<s.length;l++)if("polygon"===s[l].type){for(var u=s[l].exterior,h=s[l].interiors,c=0;c<u.length;c++)Nt(u[c],u[c],a);for(var p=0;p<(h?h.length:0);p++)for(c=0;c<h[p].length;c++)Nt(h[p][c],h[p][c],a)}(o=this._rect).copy(i),this.center=[o.x+o.width/2,o.y+o.height/2]},uw.prototype.cloneShallow=function(t){null==t&&(t=this.name);t=new uw(t,this.geometries,this.center);return t._rect=this._rect,t.transformTo=null,t},uw);function uw(t,e,n){this.name=t,this.geometries=e,n=n?[n[0],n[1]]:[(e=this.getBoundingRect()).x+e.width/2,e.y+e.height/2],this.center=n}function hw(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 cw(t,o){return L(O((t=function(t){if(!t.UTF8Encoding)return t;var e=(t=t).UTF8Scale;null==e&&(e=1024);for(var n=t.features,i=0;i<n.length;i++){var o=n[i].geometry;if("Polygon"===o.type)for(var r=o.coordinates,a=0;a<r.length;a++)r[a]=hw(r[a],o.encodeOffsets[a],e);else if("MultiPolygon"===o.type)for(r=o.coordinates,a=0;a<r.length;a++)for(var s=r[a],l=0;l<s.length;l++)s[l]=hw(s[l],o.encodeOffsets[a][l],e)}return t.UTF8Encoding=!1,t}(t)).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var e=t.properties,t=t.geometry,n=[];"Polygon"===t.type&&(i=t.coordinates,n.push({type:"polygon",exterior:i[0],interiors:i.slice(1)})),"MultiPolygon"===t.type&&R(i=t.coordinates,function(t){t[0]&&n.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var i=new lw(e[o||"name"],n,e.cp);return i.properties=e,i})}var pw=$u();function dw(t){return"category"===t.type?(o=(e=t).getLabelModel(),r=gw(e,o),!o.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r):(t=(n=t).scale.getTicks(),i=Yb(n),{labels:L(t,function(t,e){return{formattedLabel:i(t,e),rawLabel:n.scale.getLabel(t),tickValue:t.value}})});var n,i,e,o,r}function fw(t,e){return"category"===t.type?function(t,e){var n,i,o=yw(t,"ticks"),r=qb(e),a=mw(o,r);if(a)return a;e.get("show")&&!t.scale.isBlank()||(n=[]);{n=G(r)?_w(t,r,!0):"auto"===r?(e=gw(t,t.getLabelModel()),i=e.labelCategoryInterval,L(e.labels,function(t){return t.tickValue})):xw(t,i=r,!0)}return vw(o,r,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:L(t.scale.getTicks(),function(t){return t.value})}}function gw(t,e){var n,i=yw(t,"labels"),o=qb(e),e=mw(i,o);return e||vw(i,o,{labels:G(o)?_w(t,o):xw(t,n="auto"===o?null!=(t=pw(n=t).autoInterval)?t:pw(n).autoInterval=n.calculateCategoryInterval():o),labelCategoryInterval:n})}function yw(t,e){return pw(t)[e]||(pw(t)[e]=[])}function mw(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function vw(t,e,n){return t.push({key:e,value:n}),n}function xw(t,e,n){var i=Yb(t),o=t.scale,r=o.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=r[0],e=o.count();0!==u&&1<l&&2<e/l&&(u=Math.round(Math.ceil(u/l)*l));e=jb(t),t=a.get("showMinLabel")||e,e=a.get("showMaxLabel")||e;t&&u!==r[0]&&c(r[0]);for(var h=u;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 e&&h-l!==r[1]&&c(r[1]),s}function _w(t,i,o){var r=t.scale,a=Yb(t),s=[];return R(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 bw=[0,1],Bc=(ww.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},ww.prototype.containData=function(t){return this.scale.contain(t)},ww.prototype.getExtent=function(){return this._extent.slice()},ww.prototype.getPixelPrecision=function(t){return _u(t||this.scale.getExtent(),this._extent)},ww.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},ww.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&Sw(n=n.slice(),i.count()),fu(t,bw,n,e)},ww.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&Sw(n=n.slice(),i.count());e=fu(t,n,bw,e);return this.scale.scale(e)},ww.prototype.pointToData=function(t,e){},ww.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=L(fw(this,e).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawIndex(t):t),tickValue:t}},this);return function(t,e,n,i){var o=e.length;if(!t.onBand||n||!o)return;var r,a=t.getExtent();{var s;1===o?(e[0].coord=a[0],r=e[1]={coord:a[0]}):(n=e[o-1].tickValue-e[0].tickValue,s=(e[o-1].coord-e[0].coord)/n,R(e,function(t){t.coord-=s/2}),t=t.scale.getExtent(),t=1+t[1]-e[o-1].tickValue,r={coord:e[o-1].coord+s*t},e.push(r))}var l=a[0]>a[1];u(e[0].coord,a[0])&&(i?e[0].coord=a[0]:e.shift());i&&u(a[0],e[0].coord)&&e.unshift({coord:a[0]});u(a[1],r.coord)&&(i?r.coord=a[1]:e.pop());i&&u(r.coord,a[1])&&e.push({coord:a[1]});function u(t,e){return t=yu(t),e=yu(e),l?e<t:t<e}}(this,n,e.get("alignWithLabel"),t.clamp),n},ww.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var t=this.model.getModel("minorTick").get("splitNumber");return 0<t&&t<100||(t=5),L(this.scale.getMinorTicks(t),function(t){return L(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},ww.prototype.getViewLabels=function(){return dw(this).labels},ww.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},ww.prototype.getTickModel=function(){return this.model.getModel("axisTick")},ww.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),e=e[1]-e[0]+(this.onBand?1:0);0===e&&(e=1);t=Math.abs(t[1]-t[0]);return Math.abs(t)/e},ww.prototype.calculateCategoryInterval=function(){return function(t){var e=(u=(l=t).getLabelModel(),{axisRotate:l.getRotate?l.getRotate():l.isHorizontal&&!l.isHorizontal()?90:0,labelRotate:u.get("rotate")||0,font:u.getFont()}),n=Yb(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,o=(h=t.scale).getExtent(),r=h.count();if(o[1]-o[0]<1)return 0;var a=1;40<r&&(a=Math.max(1,Math.floor(r/40)));for(var s=o[0],l=t.dataToCoord(s+1)-t.dataToCoord(s),u=Math.abs(l*Math.cos(i)),h=Math.abs(l*Math.sin(i)),c=0,p=0;s<=o[1];s+=a)var d=Ni(n({value:s}),e.font,"center","top"),f=1.3*d.width,d=1.3*d.height,c=Math.max(c,f,7),p=Math.max(p,d,7);return l=c/u,i=p/h,isNaN(l)&&(l=1/0),isNaN(i)&&(i=1/0),u=Math.max(0,Math.floor(Math.min(l,i))),h=pw(t.model),l=t.getExtent(),i=h.lastAutoInterval,t=h.lastTickCount,null!=i&&null!=t&&Math.abs(i-u)<=1&&Math.abs(t-r)<=1&&u<i&&h.axisExtent0===l[0]&&h.axisExtent1===l[1]?u=i:(h.lastTickCount=r,h.lastAutoInterval=u,h.axisExtent0=l[0],h.axisExtent1=l[1]),u}(this)},ww);function ww(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function Sw(t,e){e=(t[1]-t[0])/e/2;t[0]+=e,t[1]-=e}var $l=cw,Mw={};R(["linearMap","round","asc","getPrecision","getPrecisionSafe","getPixelPrecision","getPercentWithPrecision","MAX_SAFE_INTEGER","remRadian","isRadianAroundZero","parseDate","quantity","quantityExponent","nice","quantile","reformIntervals","isNumeric","numericToNumber"],function(t){Mw[t]=Ru[t]});var Iw={};R(["addCommas","toCamelCase","normalizeCssArray","encodeHTML","formatTpl","getTooltipMarker","formatTime","capitalFirst","truncateText","getTextRect"],function(t){Iw[t]=xd[t]});var n={parse:Tu,format:cp},Tw={};R(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(t){Tw[t]=yt[t]});var Cw={};R(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Ellipse","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(t){Cw[t]=od[t]});var Dw={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Aw=(kw.prototype.evaluate=function(t){var e=typeof t;return"string"==e?this._condVal.test(t):"number"==e&&this._condVal.test(t+"")},kw);function kw(t){null==(this._condVal=H(t)?new RegExp(t):$(t)?t:null)&&mc("")}var Lw=(Pw.prototype.evaluate=function(){return this.value},Pw);function Pw(){}var Nw=(Ow.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},Ow);function Ow(){}var Rw=(Ew.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},Ew);function Ew(){}var zw=(Bw.prototype.evaluate=function(){return!this.child.evaluate()},Bw);function Bw(){}var Vw=(Fw.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},Fw);function Fw(){}function Gw(t,e){if(!0===t||!1===t){var n=new Lw;return n.value=t,n}n="";return Ww(t)||mc(n),t.and?Hw("and",t,e):t.or?Hw("or",t,e):(t.not?function(t,e){var n=t.not,i="";0;Ww(n)||mc(i);t=new zw;t.child=Gw(n,e),t.child||mc(i);return t}:function(t,e){for(var n="",i=e.prepareGetValue(t),o=[],r=z(t),a=t.parser,s=a?Ag(a):null,l=0;l<r.length;l++){var u,h=r[l];"parser"===h||e.valueGetterAttrMap.get(h)||(u=ft(Dw,h)?Dw[h]:h,h=t[h],h=s?s(h):h,(h=function(t,e){return"eq"===t||"ne"===t?new Rg("eq"===t,e):ft(kg,t)?new Lg(t,e):null}(u,h)||"reg"===u&&new Aw(h))||mc(n),o.push(h))}o.length||mc(n);a=new Vw;return a.valueGetterParam=i,a.valueParser=s,a.getValue=e.getValue,a.subCondList=o,a})(t,e)}function Hw(t,e,n){var i=e[t],e="";F(i)||mc(e),i.length||mc(e);t=new("and"===t?Nw:Rw);return t.children=L(i,function(t){return Gw(t,n)}),t.children.length||mc(e),t}function Ww(t){return Y(t)&&!k(t)}var Xw=(Yw.prototype.evaluate=function(){return this._cond.evaluate()},Yw);function Yw(t,e){this._cond=Gw(t,e)}Ec={type:"echarts:sort",transform:function(t){var a=t.source,t=t.config,r="",t=Bu(t);t.length||mc(r);var s=[];R(t,function(t){var e=t.dimension,n=t.order,i=t.parser,o=t.incomparable;null==e&&mc(r),"asc"!==n&&"desc"!==n&&mc(r),o&&"min"!==o&&"max"!==o&&mc(""),"asc"!==n&&"desc"!==n&&mc("");t=a.getDimensionInfo(e);t||mc(r);e=i?Ag(i):null;i&&!e&&mc(r),s.push({dimIdx:t.index,parser:e,comparator:new Ng(n,o)})}),F(a.data)||mc(r);for(var e=a.sourceHeaderCount,n=[],l={},i=0;i<e;i++)n.push(l);for(var i=0,o=a.count();i<o;i++)n.push(a.getRawDataItem(i));n.sort(function(t,e){if(t===l)return-1;if(e===l)return 1;for(var n=0;n<s.length;n++){var i=s[n],o=a.retrieveItemValue(t,i.dimIdx),r=a.retrieveItemValue(e,i.dimIdx);i.parser&&(o=i.parser(o),r=i.parser(r));r=i.comparator.evaluate(o,r);if(0!==r)return r}return 0});for(i=0;i<e;i++)n[i]=a.getRawHeaderItem(i);return{data:n}}};vh({type:"echarts:filter",transform:function(t){for(var e,n,i=t.source,o=(n=t.config,t={valueGetterAttrMap:ct({dimension:!0}),prepareGetValue:function(t){var e="",n=t.dimension;ft(t,"dimension")||mc(e);n=i.getDimensionInfo(n);return n||mc(e),{dimIdx:n.index}},getValue:function(t){return i.retrieveItemValue(e,t.dimIdx)}},new Xw(n,t)),r=i.sourceHeaderCount,a=[],s=0;s<r;s++)a.push(i.getRawHeaderItem(s));for(var s=0,l=i.count();s<l;s++)e=i.getRawDataItem(s),o.evaluate()&&a.push(e);return{data:a}}}),vh(Ec);var Uw,rp=(l(Zw,Uw=yy),Zw.prototype.getInitialData=function(t){return G_(this.getSource(),this,{useEncodeDefaulter:!0})},Zw.type="series.line",Zw.dependencies=["grid","polar"],Zw.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},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},Zw);function Zw(){var t=null!==Uw&&Uw.apply(this,arguments)||this;return t.type=Zw.type,t.hasSymbolVisual=!0,t.legendSymbol="line",t}function qw(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i)return hg(t,e,n[0]);if(i){for(var o=[],r=0;r<n.length;r++)o.push(hg(t,e,n[r]));return o.join(" ")}}function jw(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!F(e))return e+"";for(var i=[],o=0;o<n.length;o++){var r=t.getDimensionInfo(n[o]);r&&i.push(e[r.index])}return i.join(" ")}yy.registerClass(rp);var Kw,$w=(l(Jw,Kw=qr),Jw.prototype._createSymbol=function(t,e,n,i,o){this.removeAll();o=ow(t,-1,-1,2,2,null,o);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Qw,this._symbolType=t,this.add(o)},Jw.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},Jw.prototype.getSymbolPath=function(){return this.childAt(0)},Jw.prototype.highlight=function(){Jh(this.childAt(0))},Jw.prototype.downplay=function(){Qh(this.childAt(0))},Jw.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},Jw.prototype.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":e.cursor},Jw.prototype.updateData=function(t,e,n,i){this.silent=!1;var o,r,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=Jw.getSymbolSize(t,e),h=s!==this._symbolType,c=i&&i.disableAnimation;h?(o=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,o)):((r=this.childAt(0)).silent=!1,a={scaleX:u[0]/2,scaleY:u[1]/2},c?r.attr(a):Fp(r,a,l,e)),this._updateCommon(t,e,u,n,i),h&&(r=this.childAt(0),a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:r.style.opacity}},r.scaleX=r.scaleY=0,r.style.opacity=0,c?r.attr(a):Gp(r,a,l,e)),this._seriesModel=l},Jw.prototype._updateCommon=function(e,t,n,i,o){var r,a,s,l,u,h,c=this.childAt(0),p=e.hostModel;i&&(r=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,l=i.focus,u=i.blurScope,f=i.symbolOffset,h=i.labelStatesModels,v=i.hoverScale,g=i.cursorStyle),i&&!e.hasItemOption||(r=(i=(d=i&&i.itemModel?i.itemModel:e.getItemModel(t)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=d.getModel(["select","itemStyle"]).getItemStyle(),s=d.getModel(["blur","itemStyle"]).getItemStyle(),l=i.get("focus"),u=i.get("blurScope"),f=d.getShallow("symbolOffset"),h=wc(d),v=i.getShallow("scale"),g=d.getShallow("cursor"));var d=e.getItemVisual(t,"symbolRotate");c.attr("rotation",(d||0)*Math.PI/180||0),f&&(c.x=gu(f[0],n[0]),c.y=gu(f[1],n[1])),g&&c.attr("cursor",g);var f=e.getItemVisual(t,"style"),g=f.fill;c instanceof Qr?(y=c.style,c.useStyle(N({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},f))):(c.__isEmptyBrush?c.useStyle(N({},f)):c.useStyle(f),c.setColor(g,o&&o.symbolInnerColor),c.style.strokeNoScale=!0);var y=e.getItemVisual(t,"liftZ"),f=this._z2;null!=y?null==f&&(this._z2=c.z2,c.z2+=y):null!=f&&(c.z2=f,this._z2=null);var m=o&&o.useNameLabel;bc(c,h,{labelFetcher:p,labelDataIndex:t,defaultText:function(t){return m?e.getName(t):qw(e,t)},inheritColor:g}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var v,n=c.ensureState("emphasis");n.style=r,c.ensureState("select").style=a,c.ensureState("blur").style=s,v&&(v=Math.max(1.1,3/this._sizeY),n.scaleX=this._sizeX*v,n.scaleY=this._sizeY*v),this.setSymbolScale(1),sc(this,l,u)},Jw.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},Jw.prototype.fadeOut=function(t,e){var n=this.childAt(0);this.silent=n.silent=!0,e&&e.keepLabel||n.removeTextContent(),Hp(n,{style:{opacity:0},scaleX:0,scaleY:0},this._seriesModel,_h(this).dataIndex,t)},Jw.getSymbolSize=function(t,e){e=t.getItemVisual(e,"symbolSize");return e instanceof Array?e.slice():[+e,+e]},Jw);function Jw(t,e,n,i){var o=Kw.call(this)||this;return o.updateData(t,e,n,i),o}function Qw(t,e){this.parent.drift(t,e)}function tS(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 eS(t){return null==t||Y(t)||(t={isIgnore:t}),t||{}}function nS(t){var e=t.hostModel,t=e.getModel("emphasis");return{emphasisItemStyle:t.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:t.get("focus"),blurScope:t.get("blurScope"),symbolRotate:e.get("symbolRotate"),symbolOffset:e.get("symbolOffset"),hoverScale:t.get("scale"),labelStatesModels:wc(e),cursorStyle:e.get("cursor")}}var iS=(oS.prototype.updateData=function(o,r){r=eS(r);var a=this.group,s=o.hostModel,l=this._data,u=this._SymbolCtor,h=r.disableAnimation,c=nS(o),p={disableAnimation:h},d=r.getSymbolPoint||function(t){return o.getItemLayout(t)};l||a.removeAll(),o.diff(l).add(function(t){var e,n=d(t);tS(o,n,t,r)&&((e=new u(o,t,c,p)).setPosition(n),o.setItemGraphicEl(t,e),a.add(e))}).update(function(t,e){var n=l.getItemGraphicEl(e),i=d(t);tS(o,i,t,r)?(n?(n.updateData(o,t,c,p),e={x:i[0],y:i[1]},h?n.attr(e):Fp(n,e,s)):(n=new u(o,t)).setPosition(i),a.add(n),o.setItemGraphicEl(t,n)):a.remove(n)}).remove(function(t){var e=l.getItemGraphicEl(t);e&&e.fadeOut(function(){a.remove(e)})}).execute(),this._getSymbolPoint=d,this._data=o},oS.prototype.isPersistent=function(){return!0},oS.prototype.updateLayout=function(){var n=this,t=this._data;t&&t.eachItemGraphicEl(function(t,e){e=n._getSymbolPoint(e);t.setPosition(e),t.markRedraw()})},oS.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=nS(t),this._data=null,this.group.removeAll()},oS.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}n=eS(n);for(var o=t.start;o<t.end;o++){var r,a=e.getItemLayout(o);tS(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))}},oS.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll()},oS);function oS(t){this.group=new qr,this._SymbolCtor=t||$w}function rS(t,e,n){var i=t.getBaseAxis(),o=t.getOtherAxis(i),r=function(t,e){var n=0,t=t.scale.getExtent();"start"===e?n=t[0]:"end"===e?n=t[1]:0<t[0]?n=t[0]:t[1]<0&&(n=t[1]);return n}(o,n),a=i.dim,s=o.dim,l=e.mapDimension(s),u=e.mapDimension(a),n="x"===s||"radius"===s?1:0,i=L(t.dimensions,function(t){return e.mapDimension(t)}),o=!1,t=e.getCalculationInfo("stackResultDimension");return V_(e,i[0])&&(o=!0,i[0]=t),V_(e,i[1])&&(o=!0,i[1]=t),{dataDimsForPoint:i,valueStart:r,valueAxisDim:s,baseAxisDim:a,stacked:!!o,valueDim:l,baseDim:u,baseDataOffset:n,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function aS(t,e,n,i){var o=NaN;t.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(o)&&(o=t.valueStart);var r=t.baseDataOffset,a=[];return a[r]=n.get(t.baseDim,i),a[1-r]=o,e.dataToPoint(a)}var sS="undefined"!=typeof Float32Array,lS=sS?Float32Array:Array;function uS(t){return F(t)?sS?new Float32Array(t):t:new lS(t)}var hS=Math.min,cS=Math.max;function pS(t,e){return isNaN(t)||isNaN(e)}function dS(t,e,n,i,o,r,a,s,l){for(var u,h,c,p,d,f,g=n,y=0;y<i;y++){var m=e[2*g],v=e[2*g+1];if(o<=g||g<0)break;if(pS(m,v)){if(l){g+=r;continue}break}if(g===n)t[0<r?"moveTo":"lineTo"](m,v),c=m,p=v;else{var x=m-u,_=v-h;if(x*x+_*_<.5){g+=r;continue}if(0<a){var b=g+r,w=e[2*b],S=e[2*b+1],M=y+1;if(l)for(;pS(w,S)&&M<i;)M++,w=e[2*(b+=r)],S=e[2*b+1];var I,T,C,D,A,k,L,P=void 0,N=void 0;i<=M||pS(w,S)?(d=m,f=v):(T=w-u,C=S-h,D=m-u,A=w-m,k=v-h,L=S-v,_=x=void 0,N="x"===s?(x=Math.abs(D),_=Math.abs(A),d=m-x*a,P=m+x*a,f=v):"y"===s?(x=Math.abs(k),_=Math.abs(L),f=v-x*a,P=d=m,v+x*a):(x=Math.sqrt(D*D+k*k),d=m-T*a*(1-(I=(_=Math.sqrt(A*A+L*L))/(_+x))),f=v-C*a*(1-I),N=v+C*a*I,P=hS(P=m+T*a*I,cS(w,m)),N=hS(N,cS(S,v)),P=cS(P,hS(w,m)),f=v-((N=cS(N,hS(S,v)))-v)*x/_,d=hS(d=m-(P-m)*x/_,cS(u,m)),f=hS(f,cS(h,v)),P=m+(m-(d=cS(d,hS(u,m))))*_/x,v+(v-(f=cS(f,hS(h,v))))*_/x)),t.bezierCurveTo(c,p,d,f,m,v),c=P,p=N}else t.lineTo(m,v)}u=m,h=v,g+=r}return y}var fS,gS=function(){this.smooth=0,this.smoothConstraint=!0},yS=(l(mS,fS=Ir),mS.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},mS.prototype.getDefaultShape=function(){return new gS},mS.prototype.buildPath=function(t,e){var n=e.points,i=0,o=n.length/2;if(e.connectNulls){for(;0<o&&pS(n[2*o-2],n[2*o-1]);o--);for(;i<o&&pS(n[2*i],n[2*i+1]);i++);}for(;i<o;)i+=dS(t,n,i,o,o,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},mS.prototype.getLastIndexNotNull=function(){for(var t=this.shape.points,e=t.length/2;0<e&&pS(t[2*e-2],t[2*e-1]);e--);return e-1},mS.prototype.getPointAtIndex=function(t){var e=this.shape.points;return[e[2*t],e[2*t+1]]},mS.prototype.getIndexRange=function(t,e){for(var n,i,o=this.shape.points,r=o.length/2,a="x"===e?0:1,s=0,l=-1,u=0;u<r;u++)if(i=o[2*u+a],!isNaN(i)&&!isNaN(o[2*u+1-a]))if(0!==u){if(n<=t&&t<=i||t<=n&&i<=t){l=u;break}s=u,n=i}else n=i;return{range:[s,l],t:(t-n)/(i-n)}},mS.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,o=this.path.data,r=ar.CMD,a="x"===e,s=[],l=0;l<o.length;){var u,h,c,p,d,f=void 0,g=void 0;switch(o[l++]){case r.M:n=o[l++],i=o[l++];break;case r.L:if(f=o[l++],g=o[l++],(d=a?(t-n)/(f-n):(t-i)/(g-i))<=1&&0<=d){var y=a?(g-i)*d+i:(f-n)*d+n;return a?[t,y]:[y,t]}n=f,i=g;break;case r.C:f=o[l++],g=o[l++],u=o[l++],h=o[l++],c=o[l++],p=o[l++];var m=a?_o(n,f,u,c,t,s):_o(i,g,h,p,t,s);if(0<m)for(var v=0;v<m;v++){var x=s[v];if(x<=1&&0<=x){y=a?vo(i,g,h,p,x):vo(n,f,u,c,x);return a?[t,y]:[y,t]}}n=c,i=p}}},mS);function mS(t){t=fS.call(this,t)||this;return t.type="ec-polyline",t}var vS,xS=(l(_S,vS=gS),_S);function _S(){return null!==vS&&vS.apply(this,arguments)||this}var bS,wS=(l(SS,bS=Ir),SS.prototype.getDefaultShape=function(){return new xS},SS.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&&pS(n[2*r-2],n[2*r-1]);r--);for(;o<r&&pS(n[2*o],n[2*o+1]);o++);}for(;o<r;){var s=dS(t,n,o,r,r,1,e.smooth,a,e.connectNulls);dS(t,i,o+s-1,s,r,-1,e.stackedOnSmooth,a,e.connectNulls),o+=s+1,t.closePath()}},SS);function SS(t){t=bS.call(this,t)||this;return t.type="ec-polygon",t}function MS(t,e,n,i,o){var r=t.getArea(),a=r.x,s=r.y,l=r.width,u=r.height,r=n.get(["lineStyle","width"])||2;a-=r/2,s-=r/2,l+=r,u+=r,a=Math.floor(a),l=Math.round(l);var h=new pa({shape:{x:a,y:s,width:l,height:u}});return e&&(t=(e=t.getBaseAxis()).isHorizontal(),e=e.inverse,t?(e&&(h.shape.x+=l),h.shape.width=0):(e||(h.shape.y+=u),h.shape.height=0),Gp(h,{shape:{width:l,height:u,x:a,y:s}},n,null,i,"function"==typeof o?function(t){o(t,h)}:null)),h}function IS(t,e,n){var i=t.getArea(),o=yu(i.r0,1),r=yu(i.r,1),a=new zl({shape:{cx:yu(t.cx,1),cy:yu(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,Gp(a,{shape:{endAngle:i.endAngle,r:r}},n)),a}function TS(t,e,n,i,o){return t?"polar"===t.type?IS(t,e,n):"cartesian2d"===t.type?MS(t,e,n,i,o):null:null}function CS(t,e){return t.type===e}function DS(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function AS(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 kS(t,e){var n=AS(t),i=n[0],t=n[1],n=AS(e),e=n[0],n=n[1];return Math.max(Math.abs(i[0]-e[0]),Math.abs(i[1]-e[1]),Math.abs(t[0]-n[0]),Math.abs(t[1]-n[1]))}function LS(t){return"number"==typeof t?t:t?.5:0}function PS(t,e,n){for(var e=e.getBaseAxis(),i="x"===e.dim||"radius"===e.dim?0:1,o=[],r=0,a=[],s=[],l=[];r<t.length-2;r+=2)switch(l[0]=t[r+2],l[1]=t[r+3],s[0]=t[r],s[1]=t[r+1],o.push(s[0],s[1]),n){case"end":a[i]=l[i],a[1-i]=s[1-i],o.push(a[0],a[1]);break;case"middle":var u=(s[i]+l[i])/2,h=[];a[i]=h[i]=u,a[1-i]=s[1-i],h[1-i]=l[1-i],o.push(a[0],a[1]),o.push(h[0],a[1]);break;default:a[i]=s[i],a[1-i]=l[1-i],o.push(a[0],a[1])}return o.push(t[r++],t[r++]),o}function NS(t,e,n){var i=t.get("showAllSymbol"),t="auto"===i;if(!i||t){n=n.getAxesByScale("ordinal")[0];if(n&&(!t||!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*$w.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return!1;return!0}(n,e))){var o=e.mapDimension(n.dim),r={};return R(n.getViewLabels(),function(t){r[t.tickValue]=1}),function(t){return!r.hasOwnProperty(e.get(o,t))}}}}function OS(n,i,t,e){if(CS(i,"cartesian2d")){var o,r=e.getModel("endLabel"),a=r.get("show"),s=r.get("valueAnimation"),l=e.getData(),u={lastFrameIndex:0},h=a?function(t,e){n._endLabelOnDuring(t,e,l,u,s,r,i)}:null,c=i.getBaseAxis().isHorizontal(),p=MS(i,t,e,function(){n._endLabel&&null!=u.originalX&&n._endLabel.attr({x:u.originalX,y:u.originalY})},h);return e.get("clip",!0)||(o=p.shape,a=Math.max(o.width,o.height),c?(o.y-=a,o.height+=2*a):(o.x-=a,o.width+=2*a)),h&&h(1,p),p}return IS(i,t,e)}var RS,Na=(l(ES,RS=ky),ES.prototype.init=function(){var t=new qr,e=new iS;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},ES.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,y=t.get("animation"),m=!l.isEmpty(),v=l.get("origin"),x=rS(o,a,v),_=m&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),o=uS(2*i),r=0;r<i;r++){var a=aS(n,t,e,r);o[2*r]=a[0],o[2*r+1]=a[1]}return o}(o,a,x),b=t.get("showSymbol"),w=b&&!h&&NS(t,a,o),S=this._data;S&&S.eachItemGraphicEl(function(t,e){t.__temp&&(r.remove(t),S.setItemGraphicEl(e,null))}),b||p.remove(),r.add(g);x=!h&&t.get("step");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,d&&c.type===o.type&&x===this._step?(m&&!f?f=this._newPolygon(u,_):f&&!m&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,o),g.setClipPath(OS(this,o,!1,t)),b&&p.updateData(a,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),DS(this._stackedOnPoints,_)&&DS(this._points,u)||(y?this._doUpdateAnimation(a,_,o,n,x,v):(x&&(u=PS(u,o,x),_=_&&PS(_,o,x)),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))):(b&&p.updateData(a,{isIgnore:w,clipShape:M,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),this._initSymbolLabelAnimation(a,o,M),x&&(u=PS(u,o,x),_=_&&PS(_,o,x)),d=this._newPolyline(u),m&&(f=this._newPolygon(u,_)),h||this._initOrUpdateEndLabel(t,o),g.setClipPath(OS(this,o,!0,t)));var p=function(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,o=n.length-1;0<=o;o--){var r,a=n[o].dimension,a=t.dimensions[a],a=t.getDimensionInfo(a);if("x"===(r=a&&a.coordDim)||"y"===r){i=n[o];break}}if(i){var s=e.getAxis(r),l=L(i.stops,function(t){return{offset:0,coord:s.toGlobalCoord(s.dataToCoord(t.value)),color:t.color}}),u=l.length,h=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),h.reverse());var c=l[0].coord-10,e=l[u-1].coord+10,p=e-c;if(p<.001)return"transparent";R(l,function(t){t.offset=(t.coord-c)/p}),l.push({offset:u?l[u-1].offset:.5,color:h[1]||"transparent"}),l.unshift({offset:u?l[0].offset:.5,color:h[0]||"transparent"});l=new Ea(0,0,0,0,l,!0);return l[r]=c,l[r+"2"]=e,l}}}(a,o)||a.getVisual("style")[a.getVisual("drawType")],w=t.get(["emphasis","focus"]),M=t.get(["emphasis","blurScope"]);d.useStyle(A(s.getLineStyle(),{fill:"none",stroke:p,lineJoin:"bevel"})),cc(d,t,"lineStyle"),"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=d.style.lineWidth+1),_h(d).seriesIndex=t.seriesIndex,sc(d,w,M);m=LS(t.get("smooth")),h=t.get("smoothMonotone"),g=t.get("connectNulls");d.setShape({smooth:m,smoothMonotone:h,connectNulls:g}),f&&(s=a.getCalculationInfo("stackedOnSeries"),d=0,f.useStyle(A(l.getAreaStyle(),{fill:p,opacity:.7,lineJoin:"bevel"})),s&&(d=LS(s.get("smooth"))),f.setShape({smooth:m,stackedOnSmooth:d,smoothMonotone:h,connectNulls:g}),cc(f,t,"areaStyle"),_h(f).seriesIndex=t.seriesIndex,sc(f,w,M));function I(t){i._changePolyState(t)}a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=I)}),this._polyline.onHoverStateChange=I,this._data=a,this._coordSys=o,this._stackedOnPoints=_,this._points=u,this._step=x,this._valueOrigin=v},ES.prototype.dispose=function(){},ES.prototype.highlight=function(t,e,n,i){var o=t.getData(),r=Ku(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;(s=new $w(o,r)).x=l,s.y=a,s.setZ(t.get("zlevel"),t.get("z")),s.__temp=!0,o.setItemGraphicEl(r,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else ky.prototype.highlight.call(this,t,e,n,i)},ES.prototype.downplay=function(t,e,n,i){var o,r=t.getData(),a=Ku(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()):ky.prototype.downplay.call(this,t,e,n,i)},ES.prototype._changePolyState=function(t){var e=this._polygon;qh(this._polyline,t),e&&qh(e,t)},ES.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new yS({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},ES.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new wS({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},ES.prototype._initSymbolLabelAnimation=function(t,l,u){var h,c,e=l.getBaseAxis(),p=e.inverse;"cartesian2d"===l.type?(h=e.isHorizontal(),c=!1):"polar"===l.type&&(h="angle"===e.dim,c=!0);var e=t.hostModel,d=e.get("animationDuration");"function"==typeof d&&(d=d(null));var f=e.get("animationDelay")||0,g="function"==typeof f?f(null):f;t.eachItemGraphicEl(function(t,e){var n,i,o,r,a,s=t;s&&(o=[t.x,t.y],r=n=a=void 0,r=c?(i=u,o=l.pointToCoord(o),h?(a=i.startAngle,n=i.endAngle,-o[1]/180*Math.PI):(a=i.r0,n=i.r,o[0])):h?(a=u.x,n=u.x+u.width,t.x):(a=u.y+u.height,n=u.y,t.y),a=n===a?0:(r-a)/(n-a),p&&(a=1-a),e="function"==typeof f?f(e):d*a+g,s.animateFrom({scaleX:0,scaleY:0},{duration:200,delay:e}),(s=(a=s.getSymbolPath()).getTextContent())&&s.animateFrom({style:{opacity:0}},{duration:300,delay:e}),a.disableLabelAnimation=!0)})},ES.prototype._initOrUpdateEndLabel=function(t,e){var i,n,o,r=t.getModel("endLabel");r.get("show")?(i=t.getData(),o=this._polyline,(n=this._endLabel)||((n=this._endLabel=new Rs({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0),0<=(o=this._polyline.getLastIndexNotNull())&&bc(n,wc(t,"endLabel"),{labelFetcher:t,labelDataIndex:o,defaultText:function(t,e,n){return n?jw(i,n):qw(i,t)},enableTextSetter:!0},(t=r,e=(r=(o=e).getBaseAxis()).isHorizontal(),o=r.inverse,r=e?o?"right":"left":"center",o=e?"middle":o?"top":"bottom",{normal:{align:t.get("align")||r,verticalAlign:t.get("verticalAlign")||o,padding:t.get("distance")||0}}))):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},ES.prototype._endLabelOnDuring=function(t,e,n,i,o,r,a){var s,l,u,h,c,p,d,f=this._endLabel,g=this._polyline;f&&(t<1&&null==i.originalX&&(i.originalX=f.x,i.originalY=f.y),l=(s=n.hostModel).get("connectNulls"),u=r.get("precision"),c=(p=a.getBaseAxis()).isHorizontal(),h=p.inverse,r=e.shape,a=h?c?r.x:r.y+r.height:c?r.x+r.width:r.y,p=c?"x":"y",e=void 0,1<=(c=(r=(h=g.getIndexRange(a,p)).range)[1]-r[0])?(1<c&&!l?(d=g.getPointAtIndex(r[0]),f.attr({x:d[0],y:d[1]}),o&&(e=s.getRawValue(r[0]))):((d=g.getPointOn(a,p))&&f.attr({x:d[0],y:d[1]}),a=s.getRawValue(r[0]),p=s.getRawValue(r[1]),o&&(e=rh(n,u,a,p,h.t))),i.lastFrameIndex=r[0]):(r=1===t||0<i.lastFrameIndex?r[0]:0,d=g.getPointAtIndex(r),o&&(e=s.getRawValue(r)),f.attr({x:d[0],y:d[1]})),o&&kc(f).setLabelText(e))},ES.prototype._doUpdateAnimation=function(t,e,n,i,o,r){var a=this._polyline,s=this._polygon,l=t.hostModel,u=function(t,e,n,i,o,r,a,s){for(var l,u,h=(l=t,u=[],e.diff(l).add(function(t){u.push({cmd:"+",idx:t})}).update(function(t,e){u.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){u.push({cmd:"-",idx:t})}).execute(),u),c=[],p=[],d=[],f=[],g=[],y=[],m=[],v=rS(o,e,a),x=rS(r,t,s),_=t.getLayout("points")||[],b=e.getLayout("points")||[],w=0;w<h.length;w++){var S=h[w],M=!0,I=void 0,T=void 0;switch(S.cmd){case"=":I=2*S.idx,T=2*S.idx1;var C=_[I],D=_[I+1],A=b[T],k=b[T+1];(isNaN(C)||isNaN(D))&&(C=A,D=k),c.push(C,D),p.push(A,k),d.push(n[I],n[I+1]),f.push(i[T],i[T+1]),m.push(e.getRawIndex(S.idx1));break;case"+":var L=S.idx,P=v.dataDimsForPoint,P=o.dataToPoint([e.get(P[0],L),e.get(P[1],L)]),T=2*L;c.push(P[0],P[1]),p.push(b[T],b[T+1]);P=aS(v,o,e,L);d.push(P[0],P[1]),f.push(i[T],i[T+1]),m.push(e.getRawIndex(L));break;case"-":P=S.idx,T=t.getRawIndex(P),L=x.dataDimsForPoint,I=2*P;T!==P?(L=r.dataToPoint([t.get(L[0],P),t.get(L[1],P)]),P=aS(x,r,t,P),c.push(_[I],_[I+1]),p.push(L[0],L[1]),d.push(n[I],n[I+1]),f.push(P[0],P[1]),m.push(T)):M=!1}M&&(g.push(S),y.push(y.length))}y.sort(function(t,e){return m[t]-m[e]});for(var N=uS(s=c.length),O=uS(s),R=uS(s),E=uS(s),z=[],w=0;w<y.length;w++){var B=y[w],V=2*w,F=2*B;N[V]=c[F],N[1+V]=c[1+F],O[V]=p[F],O[1+V]=p[1+F],R[V]=d[F],R[1+V]=d[1+F],E[V]=f[F],E[1+V]=f[1+F],z[w]=g[B]}return{current:N,next:O,stackedOnCurrent:R,stackedOnNext:E,status:z}}(this._data,t,this._stackedOnPoints,e,this._coordSys,n,this._valueOrigin,r),h=u.current,c=u.stackedOnCurrent,e=u.next,r=u.stackedOnNext;if(o&&(h=PS(u.current,n,o),c=PS(u.stackedOnCurrent,n,o),e=PS(u.next,n,o),r=PS(u.stackedOnNext,n,o)),3e3<kS(h,e)||s&&3e3<kS(c,r))return a.setShape({points:e}),void(s&&s.setShape({points:e,stackedOnPoints:r}));a.shape.__points=u.current,a.shape.points=h;e={shape:{points:e}};u.current!==h&&(e.shape.__points=u.next),a.stopAnimation(),Fp(a,e,l),s&&(s.setShape({points:h,stackedOnPoints:c}),s.stopAnimation(),Fp(s,{shape:{stackedOnPoints:r}},l),a.shape.points!==s.shape.points&&(s.shape.points=a.shape.points));for(var p,d=[],f=u.status,g=0;g<f.length;g++){"="!==f[g].cmd||(p=t.getItemGraphicEl(f[g].idx1))&&d.push({el:p,ptIdx:g})}a.animators&&a.animators.length&&a.animators[0].during(function(){s&&s.dirtyShape();for(var t=a.shape.__points,e=0;e<d.length;e++){var n=d[e].el,i=2*d[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})},ES.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},ES.type="line",ES);function ES(){return null!==RS&&RS.apply(this,arguments)||this}function zS(t,i){return{seriesType:t,plan:Cy(),reset:function(t){var e=t.getData(),h=t.coordinateSystem,n=t.pipelineContext,c=i||n.large;if(h){var t=L(h.dimensions,function(t){return e.mapDimension(t)}).slice(0,2),p=t.length,n=e.getCalculationInfo("stackResultDimension");V_(e,t[0])&&(t[0]=n),V_(e,t[1])&&(t[1]=n);var n=e.getDimensionInfo(t[0]),t=e.getDimensionInfo(t[1]),d=n&&n.index,f=t&&t.index;return p&&{progress:function(t,e){for(var n=t.end-t.start,i=c&&uS(n*p),o=[],r=[],a=t.start,s=0;a<t.end;a++){var l,u=void 0;u=1===p?(l=e.getByDimIdx(d,a),h.dataToPoint(l,null,r)):(o[0]=e.getByDimIdx(d,a),o[1]=e.getByDimIdx(f,a),h.dataToPoint(o,null,r)),c?(i[s++]=u[0],i[s++]=u[1]):e.setItemLayout(a,u.slice())}c&&e.setLayout("points",i)}}}}}}ky.registerClass(Na);function BS(t){return Math.round(t.length/2)}var VS={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]}};var Ec={show:!0,zlevel: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)"]}}},rp=w({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ec),Na=w({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}}},Ec),FS={category:rp,value:Na,time:w({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Na),log:A({scale:!0,logBase:10},Na)},GS={value:1,category:1,time:1,log:1};function HS(r,a,s){R(GS,function(t,o){var i,e=w(w({},FS[o],!0),s,!0),e=(l(n,i=a),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Cd(this),i=n?Ad(t):{};w(t,e.getTheme().get(o+"Axis")),w(t,this.getDefaultOption()),t.type=WS(t),n&&Dd(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=X_.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=r+"Axis."+o,n.defaultOption=e,n);function n(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=i.apply(this,t)||this;return n.type=r+"Axis."+o,n}Ed.registerClass(e)}),Ed.registerSubTypeDefaulter(r+"Axis",WS)}function WS(t){return t.type||(t.data?"category":"value")}var XS,Ec=(l(YS,XS=Ed),YS.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",th).models[0]},YS.type="cartesian2dAxis",YS);function YS(){return null!==XS&&XS.apply(this,arguments)||this}T(Ec,Jb);rp={offset:0,categorySortInfo:[]};HS("x",Ec,rp),HS("y",Ec,rp);var US=Math.PI,ZS=(qS.prototype.hasBuilder=function(t){return!!jS[t]},qS.prototype.add=function(t){jS[t](this.opt,this.axisModel,this.group,this._transformGroup)},qS.prototype.getGroup=function(){return this.group},qS.innerTextLayout=function(t,e,n){var i,t=Su(e-t),n=Mu(t)?(i=0<n?"top":"bottom","center"):Mu(t-US)?(i=0<n?"bottom":"top","center"):(i="middle",0<t&&t<US?0<n?"right":"left":0<n?"left":"right");return{rotation:t,textAlign:n,textVerticalAlign:i}},qS.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},qS.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},qS);function qS(t,e){this.group=new qr,this.opt=e,this.axisModel=t,A(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});e=new qr({x:e.position[0],y:e.position[1],rotation:e.rotation});e.updateTransform(),this._transformGroup=e}var jS={axisLine:function(i,t,o,e){var r,a,s,l,u,n=t.get(["axisLine","show"]);"auto"===n&&i.handleAutoShown&&(n=i.handleAutoShown("axisLine")),n&&(n=t.axis.getExtent(),e=e.transform,r=[n[0],0],n=[n[1],0],e&&(Nt(r,r,e),Nt(n,n,e)),a=N({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),(e=new ba({subPixelOptimize:!0,shape:{x1:r[0],y1:r[1],x2:n[0],y2:n[1]},style:a,strokeContainThreshold:i.strokeContainThreshold||5,silent:!0,z2:1})).anid="line",o.add(e),s=t.get(["axisLine","symbol"]),e=t.get(["axisLine","symbolSize"]),"number"==typeof(t=t.get(["axisLine","symbolOffset"])||0)&&(t=[t,t]),null!=s&&("string"==typeof s&&(s=[s,s]),"string"!=typeof e&&"number"!=typeof e||(e=[e,e]),l=e[0],u=e[1],R([{rotate:i.rotation+Math.PI/2,offset:t[0],r:0},{rotate:i.rotation-Math.PI/2,offset:t[1],r:Math.sqrt((r[0]-n[0])*(r[0]-n[0])+(r[1]-n[1])*(r[1]-n[1]))}],function(t,e){var n;"none"!==s[e]&&null!=s[e]&&(n=ow(s[e],-l/2,-u/2,l,u,a.stroke,!0),e=t.r+t.offset,n.attr({rotation:t.rotate,x:r[0]+e*Math.cos(i.rotation),y:r[1]-e*Math.sin(i.rotation),silent:!0,z2:11}),o.add(n))})))},axisTickLabel:function(t,e,n,i){var o=function(t,e,n,i){var o=n.axis,r=n.getModel("axisTick"),a=r.get("show");"auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick"));if(!a||o.scale.isBlank())return;for(var a=r.getModel("lineStyle"),r=i.tickDirection*r.get("length"),s=QS(o.getTicksCoords(),e.transform,r,A(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);!function(t,e,n){if(jb(t.axis))return;var i=t.get(["axisLabel","showMinLabel"]),o=t.get(["axisLabel","showMaxLabel"]);n=n||[];var r=(e=e||[])[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],t=n[1],e=n[n.length-1],n=n[n.length-2];!1===i?(KS(r),KS(u)):$S(r,a)&&(i?(KS(a),KS(t)):(KS(r),KS(u)));!1===o?(KS(s),KS(e)):$S(l,s)&&(o?(KS(l),KS(n)):(KS(s),KS(e)))}(e,function(s,l,u,h){var c=u.axis;if(!Q(h.axisLabelShow,u.get(["axisLabel","show"]))||c.scale.isBlank())return;var p=u.getModel("axisLabel"),d=p.get("margin"),t=c.getViewLabels(),e=(Q(h.labelRotate,p.get("rotate"))||0)*US/180,f=ZS.innerTextLayout(h.rotation,e,h.labelDirection),g=u.getCategories&&u.getCategories(!0),y=[],m=ZS.isLabelSilent(u),v=u.get("triggerEvent");return R(t,function(t,e){var n="ordinal"===c.scale.type?c.scale.getRawIndex(t.tickValue):t.tickValue,i=t.formattedLabel,o=t.rawLabel,r=p;g&&g[n]&&(Y(a=g[n])&&a.textStyle&&(r=new Hc(a.textStyle,p,u.ecModel)));var t=r.getTextColor()||u.get(["axisLine","lineStyle","color"]),a=c.dataToCoord(n),t=new Rs({x:a,y:h.labelOffset+h.labelDirection*d,rotation:f.rotation,silent:m,z2:10,style:Sc(r,{text:i,align:r.getShallow("align",!0)||f.textAlign,verticalAlign:r.getShallow("verticalAlign",!0)||r.getShallow("baseline",!0)||f.textVerticalAlign,fill:"function"==typeof t?t("category"===c.type?o:"value"===c.type?n+"":n,e):t})});t.anid="label_"+n,v&&((n=ZS.makeAxisEventDataBase(u)).targetType="axisLabel",n.value=o,_h(t).eventData=n),l.add(t),t.updateTransform(),y.push(t),s.add(t),t.decomposeTransform()}),y}(n,i,e,t),o),function(t,e,n,i){var o=n.axis,r=n.getModel("minorTick");if(!r.get("show")||o.scale.isBlank())return;var a=o.getMinorTicksCoords();if(!a.length)return;for(var o=r.getModel("lineStyle"),s=i*r.get("length"),l=A(o.getLineStyle(),A(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),u=0;u<a.length;u++)for(var h=QS(a[u],e.transform,s,l,"minorticks_"+u),c=0;c<h.length;c++)t.add(h[c])}(n,i,e,t.tickDirection)},axisName:function(t,e,n,i){var o,r,a,s,l,u,h,c,p=Q(t.axisName,e.get("name"));p&&(u=e.get("nameLocation"),a=t.nameDirection,o=e.getModel("nameTextStyle"),s=e.get("nameGap")||0,r=(l=e.axis.getExtent())[0]>l[1]?-1:1,r=["start"===u?l[0]-r*s:"end"===u?l[1]+r*s:(l[0]+l[1])/2,JS(u)?t.labelOffset+a*s:0],null!=(s=e.get("nameRotate"))&&(s=s*US/180),JS(u)?c=ZS.innerTextLayout(t.rotation,null!=s?s:t.rotation,a):(c=function(t,e,n,i){var o,t=Su(n-t),i=i[0]>i[1],i="start"===e&&!i||"start"!==e&&i;i=Mu(t-US/2)?(o=i?"bottom":"top","center"):Mu(t-1.5*US)?(o=i?"top":"bottom","center"):(o="middle",t<1.5*US&&US/2<t?i?"left":"right":i?"right":"left");return{rotation:t,textAlign:i,textVerticalAlign:o}}(t.rotation,u,s||0,l),null!=(h=t.axisNameAvailableWidth)&&(h=Math.abs(h/Math.sin(c.rotation)),isFinite(h)||(h=null))),a=o.getFont(),s=(u=e.get("nameTruncate",!0)||{}).ellipsis,l=Q(t.nameTruncateMaxWidth,u.maxWidth,h),t=e.get("tooltip",!0),(h={componentType:u=e.mainType,name:p,$vars:["name"]})[u+"Index"]=e.componentIndex,(c=new Rs({x:r[0],y:r[1],rotation:c.rotation,silent:ZS.isLabelSilent(e),style:Sc(o,{text:p,font:a,overflow:"truncate",width:l,ellipsis:s,fill:o.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:o.get("align")||c.textAlign,verticalAlign:o.get("verticalAlign")||c.textVerticalAlign}),z2:1})).tooltip=t&&t.show?N({content:p,formatter:function(){return p},formatterParams:h},t):null,c.__fullText=p,c.anid="name",e.get("triggerEvent")&&((e=ZS.makeAxisEventDataBase(e)).targetType="axisName",e.name=p,_h(c).eventData=e),i.add(c),c.updateTransform(),n.add(c),c.decomposeTransform())}};function KS(t){t&&(t.ignore=!0)}function $S(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var o=$n([]);return ei(o,o,-t.rotation),n.applyTransform(Qn([],o,t.getLocalTransform())),i.applyTransform(Qn([],o,e.getLocalTransform())),n.intersect(i)}}function JS(t){return"middle"===t||"center"===t}function QS(t,e,n,i,o){for(var r=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,s[a[1]=0]=u,s[1]=n,e&&(Nt(a,a,e),Nt(s,s,e));u=new ba({subPixelOptimize:!0,shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0});u.anid=o+"_"+t[l].tickValue,r.push(u)}return r}function tM(t,e){var u,h,o,c,p,d,r,n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return u=n,e=e,o=(h=t).getComponent("tooltip"),c=h.getComponent("axisPointer"),p=c.get("link",!0)||[],d=[],R(e.getCoordinateSystems(),function(a){var s,l,t,e,n;function i(t,e,n){var i,o=n.model.getModel("axisPointer",c),r=o.get("show");r&&("auto"!==r||t||iM(o))&&(null==e&&(e=o.get("triggerTooltip")),i=(o=t?function(t,e,n,i,o,r){var a=e.getModel("axisPointer"),s={};R(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=C(a.get(t))}),s.snap="category"!==t.type&&!!r,"cross"===a.get("type")&&(s.type="line");e=s.label||(s.label={});{null==e.show&&(e.show=!1),"cross"===o&&(o=a.get(["label","show"]),e.show=null==o||o,r||(r=s.lineStyle=a.get("crossStyle"))&&A(e,r.textStyle))}return t.model.getModel("axisPointer",new Hc(s,n,i))}(n,l,c,h,t,e):o).get("snap"),r=oM(n.model),t=e||i||"category"===n.type,o=u.axesInfo[r]={key:r,axis:n,coordSys:a,axisPointerModel:o,triggerTooltip:e,involveSeries:t,snap:i,useHandle:iM(o),seriesModels:[],linkGroup:null},s[r]=o,u.seriesInvolved=u.seriesInvolved||t,null!=(t=function(t,e){for(var n=e.model,i=e.dim,o=0;o<t.length;o++){var r=t[o]||{};if(eM(r[i+"AxisId"],n.id)||eM(r[i+"AxisIndex"],n.componentIndex)||eM(r[i+"AxisName"],n.name))return o}}(p,n))&&((n=d[t]||(d[t]={axesInfo:{}})).axesInfo[r]=o,n.mapper=p[t].mapper,o.linkGroup=n))}a.axisPointerEnabled&&(n=oM(a.model),s=u.coordSysAxesInfo[n]={},l=(u.coordSysMap[n]=a).model.getModel("tooltip",o),R(a.getAxes(),V(i,!1,null)),a.getTooltipAxes&&o&&l.get("show")&&(t="axis"===l.get("trigger"),e="cross"===l.get(["axisPointer","type"]),n=a.getTooltipAxes(l.get(["axisPointer","axis"])),(t||e)&&R(n.baseAxes,V(i,!e||"cross",t)),e&&R(n.otherAxes,V(i,"cross",!1))))}),n.seriesInvolved&&(r=n,t.eachSeries(function(n){var i=n.coordinateSystem,t=n.get(["tooltip","trigger"],!0),e=n.get(["tooltip","show"],!0);i&&"none"!==t&&!1!==t&&"item"!==t&&!1!==e&&!1!==n.get(["axisPointer","show"],!0)&&R(r.coordSysAxesInfo[oM(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 eM(t,e){return"all"===t||F(t)&&0<=D(t,e)||t===e}function nM(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[oM(t)]}function iM(t){return!!t.get(["handle","show"])}function oM(t){return t.type+"||"+t.id}var rM,aM={},Na=(l(sM,rM=Iy),sM.prototype.render=function(t,e,n,i){var o,r,a,s,l,u;!this.axisPointerClass||(u=nM(o=t))&&(s=u.axisPointerModel,l=u.axis.scale,r=s.option,a=s.get("status"),null!=(o=s.get("value"))&&(o=l.parse(o)),s=iM(s),null==a&&(r.status=s?"show":"hide"),(l=l.getExtent().slice())[0]>l[1]&&l.reverse(),(null==o||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),r.value=o,s&&(r.status=u.axis.scale.isBlank()?"hide":"show")),rM.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),rM.prototype.dispose.apply(this,arguments)},sM.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,o=sM.getAxisPointerClass(this.axisPointerClass);o&&((i=(i=nM(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){aM[t]=e},sM.getAxisPointerClass=function(t){return t&&aM[t]},sM.type="axis",sM);function sM(){var t=null!==rM&&rM.apply(this,arguments)||this;return t.type=sM.type,t}function lM(t,e,n){n=n||{};var i=t.coordinateSystem,o=e.axis,r={},a=o.getAxesOnZeroOf()[0],s=o.position,l=a?"onZero":s,u=o.dim,h=i.getRect(),t=[h.x,h.x+h.width,h.y,h.y+h.height],o={left:0,right:1,top:0,bottom:1,onZero:2},i=e.get("offset")||0,h="x"===u?[t[2]-i,t[3]+i]:[t[0]-i,t[1]+i];a&&(i=a.toGlobalCoord(a.dataToCoord(0)),h[o.onZero]=Math.max(Math.min(i,h[1]),h[0])),r.position=["y"===u?h[o[l]]:t[0],"x"===u?h[o[l]]:t[3]],r.rotation=Math.PI/2*("x"===u?0:1);r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],r.labelOffset=a?h[o[s]]-h[o.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),Q(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);e=e.get(["axisLabel","rotate"]);return r.labelRotate="top"===l?-e:e,r.z2=1,r}function uM(t){return"cartesian2d"===t.get("coordinateSystem")}function hM(i){var o={xAxisModel:null,yAxisModel:null};return R(o,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,th).models[0];o[e]=n}),o}var cM=$u();function pM(t,e,n,i){var o=n.axis;if(!o.scale.isBlank()){var r=n.getModel("splitArea"),n=r.getModel("areaStyle"),a=n.get("color"),s=i.coordinateSystem.getRect(),l=o.getTicksCoords({tickModel:r,clamp:!0});if(l.length){var u=a.length,h=cM(t).splitAreaColors,c=ct(),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=n.getAreaStyle(),a=F(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,_=m-v,b=s.height,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 pa({anid:null!=m?"area_"+m:null,shape:{x:v,y:x,width:_,height:b},style:A({fill:a[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%u}cM(t).splitAreaColors=c}}}function dM(t){cM(t).splitAreaColors=null}var fM,gM=["axisLine","axisTickLabel","axisName"],yM=["splitArea","splitLine","minorSplitLine"],Ec=(l(mM,fM=Na),mM.prototype.render=function(o,t,e,n){this.group.removeAll();var r,i,a=this._axisGroup;this._axisGroup=new qr,this.group.add(this._axisGroup),o.get("show")&&(i=lM(r=o.getCoordSysModel(),o),i=new ZS(o,N({handleAutoShown:function(t){for(var e=r.coordinateSystem.getCartesians(),n=0;n<e.length;n++){var i=e[n].getOtherAxis(o.axis).type;if("value"===i||"log"===i)return!0}return!1}},i)),R(gM,i.add,i),this._axisGroup.add(i.getGroup()),R(yM,function(t){o.get([t,"show"])&&xM[t](this,this._axisGroup,o,r)},this),Qp(a,this._axisGroup,o),fM.prototype.render.call(this,o,t,e,n))},mM.prototype.remove=function(){dM(this)},mM.type="cartesianAxis",mM);function mM(){var t=null!==fM&&fM.apply(this,arguments)||this;return t.type=mM.type,t.axisPointerClass="CartesianAxisPointer",t}var vM,xM={splitLine:function(t,e,n,i){var o=n.axis;if(!o.scale.isBlank())for(var r=n.getModel("splitLine"),n=r.getModel("lineStyle"),a=F(a=n.get("color"))?a:[a],s=i.coordinateSystem.getRect(),l=o.isHorizontal(),u=0,h=o.getTicksCoords({tickModel:r}),c=[],p=[],d=n.getLineStyle(),f=0;f<h.length;f++){var g=o.toGlobalCoord(h[f].coord);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);var y=u++%a.length,g=h[f].tickValue;e.add(new ba({anid:null!=g?"line_"+h[f].tickValue:null,subPixelOptimize:!0,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:p[0],y2:p[1]},style:A({stroke:a[y]},d),silent:!0}))}},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);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),e.add(new ba({anid:"minor_line_"+s[c][p].tickValue,subPixelOptimize:!0,autoBatch:!0,shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:h,silent:!0}))}},splitArea:function(t,e,n,i){pM(t,e,n,i)}},_M=(l(bM,vM=Ec),bM.type="xAxis",bM);function bM(){var t=null!==vM&&vM.apply(this,arguments)||this;return t.type=bM.type,t}var wM,rp=(l(SM,wM=Ec),SM.type="yAxis",SM);function SM(){var t=null!==wM&&wM.apply(this,arguments)||this;return t.type=_M.type,t}function MM(t,e){return t.get(e.uid)||t.set(e.uid,{condExtent:IM()})}function IM(){return[1/0,-1/0]}function TM(t,e){e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e)}Iy.registerClass(_M),Iy.registerClass(rp),Xx(Vd.PROCESSOR.FILTER+10,{getTargetSeries:function(t){var e=ct();return t.eachSeries(function(t){uM(t)&&e.set(t.uid,t)}),e},overallReset:function(t,e){var l,u,T,n=[],i=ct();l=i,u=n,t.eachSeries(function(t){var e,n,i,o,r,a,s;uM(t)&&(e=(s=hM(t)).xAxisModel,n=s.yAxisModel,i=e.axis,o=n.axis,r=i.scale.rawExtentInfo,a=o.scale.rawExtentInfo,s=t.getData(),r&&r.frozen||a&&a.frozen||(u.push({seriesModel:t,xAxisModel:e,yAxisModel:n}),$b(MM(l,e).condExtent,s,i.dim),$b(MM(l,n).condExtent,s,o.dim)))}),T=i,R(n,function(t){var e=t.xAxisModel,n=t.yAxisModel,i=e.axis,o=n.axis,r=MM(T,e),a=MM(T,n);r.rawExtentInfo=Fb(i.scale,e,r.condExtent),a.rawExtentInfo=Fb(o.scale,n,a.condExtent),r.rawExtentResult=r.rawExtentInfo.calculate(),a.rawExtentResult=a.rawExtentInfo.calculate();var s,l,u=t.seriesModel.getData(),h={},c={};function p(e,t){var n=t.condExtent,t=t.rawExtentResult;"category"===e.type&&(n[0]<t.min||t.max<n[1])&&R(Kb(u,e.dim),function(t){ft(h,t)||(h[t]=!0,s=e)})}function d(t,e){var n=e.rawExtentResult;"category"===t.type||n.minFixed&&n.maxFixed||R(Kb(u,t.dim),function(t){ft(h,t)||ft(c,t)||(c[t]=!0,l=e)})}p(i,r),p(o,a),d(i,r),d(o,a);var f=z(h),g=z(c),y=L(g,IM),m=f.length,v=g.length;if(m&&v){var x=1===m?f[0]:null,_=1===v?g[0]:null,b=u.count();if(x&&_)for(var w=0;w<b;w++){var S=u.get(x,w);s.scale.isInExtentRange(S)&&TM(y[0],u.get(_,w))}else for(w=0;w<b;w++)for(var M=0;M<m;M++){S=u.get(f[M],w);if(s.scale.isInExtentRange(S)){for(var I=0;I<v;I++)TM(y[I],u.get(g[I],w));break}}R(y,function(t,e){e=g[e];u.setApproximateExtent(t,e);e=l.tarExtent=l.tarExtent||IM();TM(e,t[0]),TM(e,t[1])})}}),i.each(function(t){var e,n=t.tarExtent;n&&(e=t.rawExtentResult,t=t.rawExtentInfo,!e.minFixed&&n[0]>e.min&&t.modifyDataMinMax("min",n[0]),!e.maxFixed&&n[1]<e.max&&t.modifyDataMinMax("max",n[1]))})}});var CM,Ec=(l(DM,CM=Ed),DM.type="grid",DM.dependencies=["xAxis","yAxis"],DM.layoutMode="box",DM.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:60,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},DM);function DM(){return null!==CM&&CM.apply(this,arguments)||this}var AM,rp=(l(kM,AM=Iy),kM.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new pa({shape:t.coordinateSystem.getRect(),style:A({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},kM.type="grid",kM);function kM(){var t=null!==AM&&AM.apply(this,arguments)||this;return t.type="grid",t}Iy.registerClass(rp),Ed.registerClass(Ec),Wx(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})}),Zx(zS("line",!0)),Xx(Vd.PROCESSOR.STATISTIC,{seriesType:"line",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(),n=Math.abs(i[1]-i[0])*(n||1),1<(s=Math.round(s/n))&&("lttb"===r&&t.setData(o.lttbDownSample(o.mapDimension(a.dim),1/s)),n=void 0,"string"==typeof r?n=VS[r]:"function"==typeof r&&(n=r),n&&t.setData(o.downSample(o.mapDimension(a.dim),1/s,n,BS))))}});LM.prototype.getAxis=function(t){return this._axes[t]},LM.prototype.getAxes=function(){return L(this._dimList,function(t){return this._axes[t]},this)},LM.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),O(this.getAxes(),function(t){return t.scale.type===e})},LM.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},rp=LM;function LM(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}var PM=["x","y"];function NM(t){return"interval"===t.type||"time"===t.type}var OM,RM=(l(EM,OM=rp),EM.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,o=this.getAxis("x").scale,r=this.getAxis("y").scale;NM(o)&&NM(r)&&(n=o.getExtent(),i=r.getExtent(),t=this.dataToPoint([n[0],i[0]]),e=this.dataToPoint([n[1],i[1]]),o=n[1]-n[0],r=i[1]-i[0],o&&r&&(o=(e[0]-t[0])/o,r=(e[1]-t[1])/r,n=t[0]-n[0]*o,i=t[1]-i[0]*r,i=this._transform=[o,0,0,r,n,i],this._invTransform=ii([],i)))},EM.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},EM.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]))},EM.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},EM.prototype.dataToPoint=function(t,e,n){if(n=n||[],this._transform&&!isNaN(t[0])&&!isNaN(t[1]))return Nt(n,t,this._transform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.toGlobalCoord(i.dataToCoord(t[0])),n[1]=o.toGlobalCoord(o.dataToCoord(t[1])),n},EM.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]),t=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]),t),Math.max(r[0],r[1])),e},EM.prototype.pointToData=function(t,e){if(e=e||[],this._invTransform)return Nt(e,t,this._invTransform);var n=this.getAxis("x"),i=this.getAxis("y");return e[0]=n.coordToData(n.toLocalCoord(t[0])),e[1]=i.coordToData(i.toLocalCoord(t[1])),e},EM.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},EM.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 Mi(n,i,t,e)},EM);function EM(){var t=null!==OM&&OM.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=PM,t}var zM,BM=(l(VM,zM=Bc),VM.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},VM.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},VM.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},VM.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setCategorySortInfo(t)},VM);function VM(t,e,n,i,o){n=zM.call(this,t,e,n)||this;return n.index=0,n.type=i||"value",n.position=o||"bottom",n}FM.prototype.getRect=function(){return this._rect},FM.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),R(n.x,function(t){Wb(t.scale,t.model)}),R(n.y,function(t){Wb(t.scale,t.model)});var i={};R(n.x,function(t){HM(n,"y",t,i)}),R(n.y,function(t){HM(n,"x",t,i)}),this.resize(this.model,e)},FM.prototype.resize=function(t,e,n){var a=Id(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()});this._rect=a;var i=this._axesList;function o(){R(i,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]),t=t,e=i?a.x:a.y,i=t.getExtent(),n=i[0]+i[1],t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}})}o(),!n&&t.get("containLabel")&&(R(i,function(t){var e,n,i;t.model.get(["axisLabel","inside"])||(e=Zb(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))}),o()),R(this._coordsList,function(t){t.calcAffineTransform()})},FM.prototype.getAxis=function(t,e){t=this._axesMap[t];if(null!=t)return t[e||0]},FM.prototype.getAxes=function(){return this._axesList.slice()},FM.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var n="x"+t+"y"+e;return this._coordsMap[n]}Y(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===e)return o[i]},FM.prototype.getCartesians=function(){return this._coordsList.slice()},FM.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},FM.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},FM.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,o=t.xAxisModel||i&&i.getReferringComponents("xAxis",th).models[0],r=t.yAxisModel||i&&i.getReferringComponents("yAxis",th).models[0],a=t.gridModel,t=this._coordsList;return i?D(t,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):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},FM.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},FM.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};if(t.eachComponent("xAxis",n("x"),this),t.eachComponent("yAxis",n("y"),this),!h.x||!h.y)return this._axesMap={},void(this._axesList=[]);function n(o){return function(t,e){var n,i;GM(t,r)&&(i=t.get("position"),"x"===o?"top"!==i&&"bottom"!==i&&(i=l.bottom?"top":"bottom"):"left"!==i&&"right"!==i&&(i=l.left?"right":"left"),l[i]=!0,i="category"===(n=new BM(o,Xb(t),[0,0],t.get("type"),i)).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]++)}}R((this._axesMap=u).x,function(i,o){R(u.y,function(t,e){var n="x"+o+"y"+e,e=new RM(n);e.master=a,e.model=r,a._coordsMap[n]=e,a._coordsList.push(e),e.addAxis(i),e.addAxis(t)})})},FM.prototype._updateScale=function(t,i){function o(e,n){R(Kb(e,n.dim),function(t){n.scale.unionExtentFromData(e,t)})}R(this._axesList,function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setCategorySortInfo(e))}),t.eachSeries(function(t){var e,n;uM(t)&&(n=(e=hM(t)).xAxisModel,e=e.yAxisModel,GM(n,i)&&GM(e,i)&&(n=this.getCartesian(n.componentIndex,e.componentIndex),e=t.getData(),t=n.getAxis("x"),n=n.getAxis("y"),"list"===e.type&&(o(e,t),o(e,n))))},this)},FM.prototype.getTooltipAxes=function(n){var i=[],o=[];return R(this.getCartesians(),function(t){var e=null!=n&&"auto"!==n?t.getAxis(n):t.getBaseAxis(),t=t.getOtherAxis(e);D(i,e)<0&&i.push(e),D(o,t)<0&&o.push(t)}),{baseAxes:i,otherAxes:o}},FM.create=function(i,o){var r=[];return i.eachComponent("grid",function(t,e){var n=new FM(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;uM(t)&&(e=(i=hM(t)).xAxisModel,n=i.yAxisModel,i=e.getCoordSysModel().coordinateSystem,t.coordinateSystem=i.getCartesian(e.componentIndex,n.componentIndex))}),r},FM.dimensions=PM,Ec=FM;function FM(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=PM,this._initCartesian(t,e,n),this.model=t}function GM(t,e){return t.getCoordSysModel()===e}function HM(t,e,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var o,r=t[e],e=n.model,n=e.get(["axisLine","onZero"]),e=e.get(["axisLine","onZeroAxisIndex"]);if(n){if(null!=e)WM(r[e])&&(o=r[e]);else for(var a in r)if(r.hasOwnProperty(a)&&WM(r[a])&&!i[s(r[a])]){o=r[a];break}o&&(i[s(o)]=!0)}function s(t){return t.dim+"_"+t.index}}function WM(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(e=t).scale.getExtent())[0],t=t[1],!(0<e&&0<t||e<0&&t<0));var e}bf.register("cartesian2d",Ec);var XM,rp=(l(YM,XM=yy),YM.prototype.getInitialData=function(t,e){return G_(this.getSource(),this,{useEncodeDefaulter:!0})},YM.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),t=i.getLayout("offset"),i=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=t+i/2,n}return[NaN,NaN]},YM.type="series.__base_bar__",YM.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},YM);function YM(){var t=null!==XM&&XM.apply(this,arguments)||this;return t.type=YM.type,t}yy.registerClass(rp);var UM,Ec=(l(ZM,UM=rp),ZM.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},ZM.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return t<e&&(t=e),t},ZM.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},ZM.type="series.bar",ZM.dependencies=["grid","polar"],ZM.defaultOption=Uc(rp.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}),ZM);function ZM(){var t=null!==UM&&UM.apply(this,arguments)||this;return t.type=ZM.type,t}yy.registerClass(Ec);var qM,jM=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},KM=(l($M,qM=Ir),$M.prototype.getDefaultShape=function(){return new jM},$M.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,h=e.clockwise,c=Math.cos(l),p=Math.sin(l),d=Math.cos(u),e=Math.sin(u);(h?u-l<2*Math.PI:l-u<2*Math.PI)&&(t.moveTo(c*o+n,p*o+i),t.arc(c*s+n,p*s+i,a,-Math.PI+l,l,!h)),t.arc(n,i,r,l,u,!h),t.moveTo(d*r+n,e*r+i),t.arc(d*s+n,e*s+i,a,u-2*Math.PI,u-Math.PI,!h),0!==o&&(t.arc(n,i,o,u,l,h),t.moveTo(c*o+n,e*o+i)),t.closePath()},$M);function $M(t){t=qM.call(this,t)||this;return t.type="sausage",t}var JM=["itemStyle","borderWidth"],QM=["itemStyle","borderRadius"],tI=[0,0],eI=Math.max,nI=Math.min;var iI,Ec=(l(oI,iI=ky),oI.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._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},oI.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},oI.prototype.incrementalRender=function(t,e){this._incrementalRenderLarge(t,e)},oI.prototype._updateDrawMode=function(t){t=t.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},oI.prototype._renderNormal=function(a,t,e,n){var s,i=this,l=this.group,u=a.getData(),h=this._data,c=a.coordinateSystem,p=c.getBaseAxis();"cartesian2d"===c.type?s=p.isHorizontal():"polar"===c.type&&(s="angle"===p.dim);var d=a.isAnimationEnabled()?a:null,f=p.model,g=a.get("realtimeSort");if(g&&u.count()){if(this._isFirstFrame)return this._initSort(u,s,p,e),void(this._isFirstFrame=!1);this._onRendered=function(){i._updateSort(u,function(t){t=u.getItemGraphicEl(t);if(t){t=t.shape;return(s?t.y+t.height:t.x+t.width)||0}return 0},p,e)},e.getZr().on("rendered",this._onRendered)}var o,r,y,m=a.get("clip",!0)||g,v=(r=u,y=(o=c).getArea&&o.getArea(),CS(o,"cartesian2d")&&("category"===(o=o.getBaseAxis()).type&&o.onBand||(r=r.getLayout("bandWidth"),o.isHorizontal()?(y.x-=r,y.width+=2*r):(y.y-=r,y.height+=2*r))),y);l.removeClipPath();function x(t){return jw(a.getData(),t)}var _=a.get("roundCap",!0),b=a.get("showBackground",!0),w=a.getModel("backgroundStyle"),S=w.get("borderRadius")||0,M=[],I=this._backgroundEls,T=n&&n.isInitSort,C=n&&"changeAxisOrder"===n.type;function D(t){var e,n,i=lI[c.type](u,t),i=(e=s,n=i,new("polar"===(i=c).type?zl:pa)({shape:yI(e,n,i),silent:!0,z2:0}));return i.useStyle(w.getItemStyle()),"cartesian2d"===c.type&&i.setShape("r",S),M[t]=i}u.diff(h).add(function(t){var e,n,i=u.getItemModel(t),o=lI[c.type](u,t,i);b&&D(t),u.hasValue(t)&&(e=!1,m&&(e=rI[c.type](v,o)),uI(n=aI[c.type](a,u,t,o,s,d,p.model,!1,_),u,t,i,o,a,s,"polar"===c.type),qp(n,u,t,i.getModel("label"),a,d,x),T?n.attr({shape:o}):g?(n.disableLabelAnimation=!0,sI(a,f,d,n,o,t,s,!1,!1)):Gp(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=lI[c.type](u,t,i);b&&(n=void 0,0===I.length?n=D(e):((n=I[e]).useStyle(w.getItemStyle()),"cartesian2d"===c.type&&n.setShape("r",S),M[t]=n),r=lI[c.type](u,t),Fp(n,{shape:yI(s,r,c)},d,t));var r=h.getItemGraphicEl(e);if(!u.hasValue(t))return l.remove(r),void(r=null);e=!1;m&&(e=rI[c.type](v,o))&&l.remove(r),r=r||aI[c.type](a,u,t,o,s,d,p.model,!!r,_),C||(uI(r,u,t,i,o,a,s,"polar"===c.type),Zp(r,u,t,i.getModel("label"),a,d,x)),T?r.attr({shape:o}):g?(r.disableLabelAnimation=!0,sI(a,f,d,r,o,t,s,!0,C)):Fp(r,{shape:o},a,t,null),u.setItemGraphicEl(t,r),r.ignore=e,l.add(r)}).remove(function(t){var e=h.getItemGraphicEl(t);e&&Xp(e,a,t)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new qr);A.removeAll();for(var k=0;k<M.length;++k)A.add(M[k]);l.add(A),this._backgroundEls=M,this._data=u},oI.prototype._renderLarge=function(t,e,n){this._clear(),fI(t,this.group),this._updateLargeClip(t)},oI.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),fI(e,this.group,!0)},oI.prototype._updateLargeClip=function(t){t=t.get("clip",!0)?TS(t.coordinateSystem,!1,t):null;t?this.group.setClipPath(t):this.group.removeClipPath()},oI.prototype._dataSort=function(t,e){var n=[];t.each(function(t){n.push({mappedValue:e(t),ordinalNumber:t,beforeSortIndex:null})}),n.sort(function(t,e){return e.mappedValue-t.mappedValue});for(var i=0;i<n.length;++i)n[n[i].ordinalNumber].beforeSortIndex=i;return L(n,function(t){return{ordinalNumber:t.ordinalNumber,beforeSortIndex:t.beforeSortIndex}})},oI.prototype._isDataOrderChanged=function(t,e,n){if((n?n.length:0)!==t.count())return!0;for(var i=Number.MAX_VALUE,o=0;o<n.length;++o){var r=e(n[o].ordinalNumber);if(i<r)return!0;i=r}return!1},oI.prototype._updateSort=function(t,e,n,i){var o=n.scale.getCategorySortInfo();if(this._isDataOrderChanged(t,e,o))for(var r=this._dataSort(t,e),a=n.scale.getExtent(),s=a[0];s<a[1];++s)if(!o[s]||o[s].ordinalNumber!==r[s].ordinalNumber){this.removeOnRenderedListener(i);var l={type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r};i.dispatchAction(l);break}},oI.prototype._initSort=function(e,n,t,i){t={type:"changeAxisOrder",componentType:t.dim+"Axis",isInitSort:!0,axisId:t.index,sortInfo:this._dataSort(e,function(t){return parseFloat(e.get(n?"y":"x",t))||0})};i.dispatchAction(t)},oI.prototype.remove=function(t,e){this._clear(this._model),this.removeOnRenderedListener(e)},oI.prototype.dispose=function(t,e){this.removeOnRenderedListener(e)},oI.prototype.removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},oI.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Xp(t,e,_h(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},oI.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},oI.type="bar",oI);function oI(){var t=iI.call(this)||this;return t.type=oI.type,t._isFirstFrame=!0,t}var rI={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var o=eI(e.x,t.x),r=nI(e.x+e.width,t.x+t.width),a=eI(e.y,t.y),t=nI(e.y+e.height,t.y+t.height);e.x=o,e.y=a,e.width=r-o,e.height=t-a;a=e.width<0||e.height<0;return n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),a},polar:function(t,e){var n=e.r0<=e.r?1:-1;n<0&&(i=e.r,e.r=e.r0,e.r0=i);var i,o=nI(e.r,t.r),t=eI(e.r0,t.r0),t=(e.r=o)-(e.r0=t)<0;return n<0&&(i=e.r,e.r=e.r0,e.r0=i),t}},aI={cartesian2d:function(t,e,n,i,o,r,a,s,l){i=new pa({shape:N({},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 u=i.startAngle<i.endAngle,h=new(!o&&l?KM:zl)({shape:A({clockwise:u},i),z2:1});return h.name="item",r&&(l=o?"r":"endAngle",u={},h.shape[l]=o?0:i.startAngle,u[l]=i[l],(s?Fp:Gp)(h,{shape:u},r)),h}};function sI(t,e,n,i,o,r,a,s,l){var u;(n||e)&&(n=u=void 0,u=a?(n={x:o.x,width:o.width},{y:o.y,height:o.height}):(n={y:o.y,height:o.height},{x:o.x,width:o.width}),l||(s?Fp:Gp)(i,{shape:u},t,r,null),(s?Fp:Gp)(i,{shape:n},e,r))}var lI={cartesian2d:function(t,e,n){var i,e=t.getItemLayout(e),i=n?(r=e,i=(o=n).get(JM)||0,o=isNaN(r.width)?Number.MAX_VALUE:Math.abs(r.width),r=isNaN(r.height)?Number.MAX_VALUE:Math.abs(r.height),Math.min(i,o,r)):0,o=0<e.width?1:-1,r=0<e.height?1:-1;return{x:e.x+o*i/2,y:e.y+r*i/2,width:e.width-o*i,height:e.height-r*i}},polar:function(t,e,n){e=t.getItemLayout(e);return{cx:e.cx,cy:e.cy,r0:e.r0,r:e.r,startAngle:e.startAngle,endAngle:e.endAngle}}};function uI(t,e,n,i,o,r,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",i.get(QM)||0),t.useStyle(l);e=i.getShallow("cursor");e&&t.attr("cursor",e),s||(a=a?0<o.height?"bottom":"top":0<o.width?"left":"right",bc(t,wc(i),{labelFetcher:r,labelDataIndex:n,defaultText:qw(r.getData(),n),inheritColor:l.fill,defaultOutsidePosition:a}),(a=t.getTextContent())&&((a=kc(a)).prevValue=a.value,a.value=r.getRawValue(n)));n=i.getModel(["emphasis"]);sc(t,n.get("focus"),n.get("blurScope")),cc(t,i),null!=(o=o).startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle&&(t.style.fill="none",t.style.stroke="none",R(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var hI,cI=function(){},pI=(l(dI,hI=Ir),dI.prototype.getDefaultShape=function(){return new cI},dI.prototype.buildPath=function(t,e){for(var n=e.points,i=this.__startPoint,o=this.__baseDimIdx,r=0;r<n.length;r+=2)i[o]=n[r+o],t.moveTo(i[0],i[1]),t.lineTo(n[r],n[r+1])},dI);function dI(t){t=hI.call(this,t)||this;return t.type="largeBar",t}function fI(t,e,n){var i=t.getData(),o=[],r=i.getLayout("valueAxisHorizontal")?1:0;o[1-r]=i.getLayout("valueAxisStart");var a,s,l,u,h=i.getLayout("largeDataIndices"),c=i.getLayout("barWidth"),p=t.getModel("backgroundStyle");t.get("showBackground",!0)&&(u=i.getLayout("largeBackgroundPoints"),(l=[])[1-r]=i.getLayout("backgroundStart"),(a=new pI({shape:{points:u},incremental:!!n,silent:!0,z2:0})).__startPoint=l,a.__baseDimIdx=r,a.__largeDataIndices=h,a.__barWidth=c,s=a,u=i,p=(l=p).get("borderColor")||l.get("color"),l=l.getItemStyle(),s.useStyle(l),s.style.fill=null,s.style.stroke=p,s.style.lineWidth=u.getLayout("barWidth"),e.add(a));n=new pI({shape:{points:i.getLayout("largePoints")},incremental:!!n});n.__startPoint=o,n.__baseDimIdx=r,n.__largeDataIndices=h,n.__barWidth=c,e.add(n),c=n,i=(e=i).getVisual("style"),c.useStyle(N({},i)),c.style.fill=null,c.style.stroke=i.fill,c.style.lineWidth=e.getLayout("barWidth"),_h(n).seriesIndex=t.seriesIndex,t.get("silent")||(n.on("mousedown",gI),n.on("mousemove",gI))}var gI=Fy(function(t){t=function(t,e,n){var i=t.__baseDimIdx,o=1-i,r=t.shape.points,a=t.__largeDataIndices,s=Math.abs(t.__barWidth/2),l=t.__startPoint[o];tI[0]=e,tI[1]=n;for(var n=tI[i],u=tI[1-i],h=n-s,c=n+s,p=0,d=r.length/2;p<d;p++){var f=2*p,g=r[f+i],f=r[f+o];if(h<=g&&g<=c&&(l<=f?l<=u&&u<=f:f<=u&&u<=l))return a[p]}return-1}(this,t.offsetX,t.offsetY);_h(this).dataIndex=0<=t?t:null},30,!1);function yI(t,e,n){if(CS(n,"cartesian2d")){var i=e,o=n.getArea();return{x:(t?i:o).x,y:(t?o:i).y,width:(t?i:o).width,height:(t?o:i).height}}return{cx:(o=n.getArea()).cx,cy:o.cy,r0:(t?o:e).r0,r:(t?o:e).r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}function mI(t,e,n){e=F(e)?{coordDimensions:e}:N({},e);var i=t.getSource(),e=O_(i,e),t=new A_(e,t);return t.initData(i,n),t}ky.registerClass(Ec),Yx({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)})}),Zx(Vd.VISUAL.LAYOUT,V(gb,"bar")),Zx(Vd.VISUAL.PROGRESSIVE_LAYOUT,g),qx({seriesType:"bar",reset:function(t){t.getData().setVisual("legendSymbol","roundRect")}});var vI=(xI.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},xI.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},xI.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},xI.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},xI);function xI(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}var _I,Ec=(l(bI,_I=yy),bI.prototype.init=function(t){_I.prototype.init.apply(this,arguments),this.legendVisualProvider=new vI(B(this.getData,this),B(this.getRawData,this)),this._defaultLabelLine(t)},bI.prototype.mergeOption=function(){_I.prototype.mergeOption.apply(this,arguments)},bI.prototype.getInitialData=function(){return mI(this,{coordDimensions:["value"],encodeDefaulter:V(of,this)})},bI.prototype.getDataParams=function(t){var e=this.getData(),n=_I.prototype.getDataParams.call(this,t),i=[];return e.each(e.mapDimension("value"),function(t){i.push(t)}),n.percent=bu(i,t,e.hostModel.get("percentPrecision")),n.$vars.push("percent"),n},bI.prototype._defaultLabelLine=function(t){Vu(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},bI.type="series.pie",bI.defaultOption={zlevel:0,z:2,legendHoverLink:!0,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},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},bI);function bI(){var t=null!==_I&&_I.apply(this,arguments)||this;return t.useColorPaletteOnData=!0,t}yy.registerClass(Ec);var wI=Math.PI/180;function SI(t,u,h,c,p,e,n,i,o,r){if(!(t.length<2)){for(var a,s=t.length,l=0;l<s;l++){"outer"===t[l].position&&"labelLine"===t[l].labelAlignTo&&(a=t[l].label.x-r,t[l].linePoints[1][0]+=a,t[l].label.x=r)}Um(t,o,o+n)&&function(t){for(var e,n,i,o,r,a={list:[],maxY:0},s={list:[],maxY:0},l=0;l<t.length;l++){"none"===t[l].labelAlignTo&&(n=(e=t[l]).label.y>h?s:a,(i=Math.abs(e.label.y-h))>n.maxY&&(r=(o=e.label.x-u-e.len2*p)<(r=c+e.len)?Math.sqrt(i*i/(1-o*o/r/r)):r,n.rB=r,n.maxY=i),n.list.push(e))}d(a),d(s)}(t)}function d(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-h),a=c+o.len,a=a*a,a=Math.sqrt((1-Math.abs(r*r/n))*a);o.label.x=u+(a+o.len2)*p}}}function MI(t){return"center"===t.position}function II(t){var I,T,C=t.getData(),D=[],A=!1,k=(t.get("minShowLabelAngle")||0)*wI,e=C.getLayout("viewRect"),L=C.getLayout("r"),P=e.width,N=e.x,n=e.y,e=e.height;function O(t){t.ignore=!0}C.each(function(t){var e,n,i,o,r,a,s,l,u,h,c=C.getItemGraphicEl(t),p=c.shape,d=c.getTextContent(),f=c.getTextGuideLine(),g=C.getItemModel(t),y=g.getModel("label"),m=y.get("position")||g.get(["emphasis","label","position"]),v=y.get("distanceToLabelLine"),x=y.get("alignTo"),_=gu(y.get("edgeDistance"),P),b=y.get("bleedMargin"),w=g.getModel("labelLine"),S=gu(S=w.get("length"),P),M=gu(M=w.get("length2"),P);if(Math.abs(p.endAngle-p.startAngle)<k)return R(d.states,O),void(d.ignore=!0);!function(t){if(!t.ignore)return 1;for(var e in t.states)if(!1===t.states[e].ignore)return 1}(d)||(h=(p.startAngle+p.endAngle)/2,e=Math.cos(h),n=Math.sin(h),I=p.cx,T=p.cy,i="inside"===m||"inner"===m,l="center"===m?(r=p.cx,a=p.cy,"center"):(r=(o=(i?(p.r+p.r0)/2*e:p.r*e)+I)+3*e,a=(t=(i?(p.r+p.r0)/2*n:p.r*n)+T)+3*n,i||(g=o+e*(S+L-p.r),l=t+n*(S+L-p.r),s=g+(e<0?-1:1)*M,r="edge"===x?e<0?N+_:N+P-_:s+(e<0?-v:v),s=[[o,t],[g,a=l],[s,l]]),i?"center":"edge"===x?0<e?"right":"left":0<e?"left":"right"),h="number"==typeof(y=y.get("rotate"))?y*(Math.PI/180):y?e<0?-h+Math.PI:-h:0,A=!!h,d.x=r,d.y=a,d.rotation=h,d.setStyle({verticalAlign:"middle"}),i?(d.setStyle({align:l}),(u=d.states.select)&&(u.x+=d.x,u.y+=d.y)):((h=d.getBoundingRect().clone()).applyTransform(d.getComputedTransform()),u=(d.style.margin||0)+2.1,h.y-=u/2,h.height+=u,D.push({label:d,labelLine:f,position:m,len:S,len2:M,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new fi(e,n),linePoints:s,textAlign:l,labelDistance:v,labelAlignTo:x,edgeDistance:_,bleedMargin:b,rect:h})),c.setTextConfig({inside:i}))}),!A&&t.get("avoidLabelOverlap")&&function(t,e,n,i,o,r,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p<t.length;p++){var d=t[p].label;MI(t[p])||(d.x<e?(h=Math.min(h,d.x),l.push(t[p])):(c=Math.max(c,d.x),u.push(t[p])))}for(SI(u,e,n,i,1,0,r,0,s,c),SI(l,e,n,i,-1,0,r,0,s,h),p=0;p<t.length;p++){var f,g,y,m,v=t[p],d=v.label;MI(v)||(f=v.linePoints)&&(g="edge"===v.labelAlignTo,y=v.rect.width,m=void 0,(m=g?d.x<e?f[2][0]-v.labelDistance-a-v.edgeDistance:a+o-v.edgeDistance-f[2][0]-v.labelDistance:d.x<e?d.x-a-v.bleedMargin:a+o-d.x-v.bleedMargin)<v.rect.width&&(v.label.style.width=m,"edge"===v.labelAlignTo&&(y=m)),m=f[1][0]-f[2][0],g?d.x<e?f[2][0]=a+v.edgeDistance+y+v.labelDistance:f[2][0]=a+o-v.edgeDistance-y-v.labelDistance:(d.x<e?f[2][0]=d.x+v.labelDistance:f[2][0]=d.x-v.labelDistance,f[1][0]=f[2][0]+m),f[1][1]=f[2][1]=d.y)}}(D,I,T,L,P,e,N,n);for(var i=0;i<D.length;i++){var o,r=D[i],a=r.label,s=r.labelLine,l=isNaN(a.x)||isNaN(a.y);a&&(a.setStyle({align:r.textAlign}),l&&(R(a.states,O),a.ignore=!0),(o=a.states.select)&&(o.x+=a.x,o.y+=a.y)),s&&(o=r.linePoints,l||!o?(R(s.states,O),s.ignore=!0):(Fm(o,r.minTurnAngle),function(t,e,n){if(n<=180&&0<n){n=n/180*Math.PI,Pm.fromArray(t[0]),Nm.fromArray(t[1]),Om.fromArray(t[2]),fi.sub(Rm,Nm,Pm),fi.sub(Em,Om,Nm);var i=Rm.len(),o=Em.len();if(!(i<.001||o<.001))if(Rm.scale(1/i),Em.scale(1/o),Rm.dot(e)<Math.cos(n)){i=Dm(Nm.x,Nm.y,Om.x,Om.y,Pm.x,Pm.y,Bm,!1);Vm.fromArray(Bm);o=Math.PI/2,n=o+Math.acos(Em.dot(e))-n;if(o<=n)fi.copy(Vm,Om);else{Vm.scaleAndAdd(Em,i/Math.tan(Math.PI/2-n));n=Om.x!==Nm.x?(Vm.x-Nm.x)/(Om.x-Nm.x):(Vm.y-Nm.y)/(Om.y-Nm.y);if(isNaN(n))return;n<0?fi.copy(Vm,Nm):1<n&&fi.copy(Vm,Om)}Vm.toArray(t[1])}}}(o,r.surfaceNormal,r.maxSurfaceAngle),s.setShape({points:o}),a.__hostTarget.textGuideLineConfig={anchor:new fi(o[0][0],o[0][1])}))}}function TI(t,e){t=t.get("borderRadius");return null==t?null:(F(t)||(t=[t,t]),{innerCornerRadius:zi(t[0],e.r0),cornerRadius:zi(t[1],e.r)})}var CI,DI=(l(AI,CI=zl),AI.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=N(TI(a.getModel("itemStyle"),l)||{},l);i?(o.setShape(u),"scale"===r.getShallow("animationType")?(o.shape.r=l.r0,Gp(o,{shape:{r:l.r}},r,e)):null!=n?(o.setShape({startAngle:n,endAngle:n}),Gp(o,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},r,e)):(o.shape.endAngle=l.startAngle,Fp(o,{shape:{endAngle:l.endAngle}},r,e))):Fp(o,{shape:u},r,e),o.useStyle(t.getItemVisual(e,"style")),cc(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");n&&o.attr("cursor",n),this._updateLabel(r,t,e),o.ensureState("emphasis").shape=h({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},TI(s.getModel("itemStyle"),l)),N(o.ensureState("select"),{x:u,y:i,shape:TI(a.getModel(["select","itemStyle"]),l)}),N(o.ensureState("blur"),{shape:TI(a.getModel(["blur","itemStyle"]),l)});l=o.getTextGuideLine(),o=o.getTextContent();N(l.ensureState("select"),{x:u,y:i}),N(o.ensureState("select"),{x:u,y:i}),sc(this,s.get("focus"),s.get("blurScope"))},AI.prototype._updateLabel=function(t,e,n){var i=e.getItemModel(n),o=i.getModel("label"),r=i.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,a=a&&a.opacity;bc(this,wc(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)},{normal:{opacity:tt(o.get("opacity"),a)}});o=this.getTextContent();this.setTextConfig({position:null,rotation:null}),o.attr({z2:10}),Wm(this,Xm(i),{stroke:s,opacity:tt(r.get(["lineStyle","opacity"]),a)})},AI);function AI(t,e,n){var i=CI.call(this)||this;i.z2=2;var o=new La,r=new Rs;return i.setTextGuideLine(o),i.setTextContent(r),i.updateData(t,e,n,!0),i}var kI,g=(l(LI,kI=ky),LI.prototype.init=function(){var t=new qr;this._sectorGroup=t},LI.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)}r.diff(a).add(function(t){var e=new DI(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){Xp(a.getItemGraphicEl(t),e,t)}).execute(),II(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=r)},LI.prototype.dispose=function(){},LI.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){e=t[0]-n.cx,t=t[1]-n.cy,t=Math.sqrt(e*e+t*t);return t<=n.r&&t>=n.r0}},LI.type="pie",LI);function LI(){var t=null!==kI&&kI.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}ky.registerClass(g);var PI=2*Math.PI,NI=Math.PI/180;function OI(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})}}}nv("pie",Yx),Zx(V(function(t,e,C){e.eachSeriesByType(t,function(t){var o=t.getData(),e=o.mapDimension("value"),n=(l=C,Id(t.getBoxLayoutParams(),{width:l.getWidth(),height:l.getHeight()})),i=t.get("center"),r=t.get("radius");F(r)||(r=[0,r]),F(i)||(i=[i,i]);var a=gu(n.width,C.getWidth()),s=gu(n.height,C.getHeight()),l=Math.min(a,s),u=gu(i[0],a)+n.x,h=gu(i[1],s)+n.y,c=gu(r[0],l/2),p=gu(r[1],l/2),d=-t.get("startAngle")*NI,f=t.get("minAngle")*NI,g=0;o.each(e,function(t){isNaN(t)||g++});var y=o.getSum(e),m=Math.PI/(y||g)*2,v=t.get("clockwise"),x=t.get("roseType"),_=t.get("stillShowZeroSum"),b=o.getDataExtent(e);b[0]=0;var w,S=PI,M=0,I=d,T=v?1:-1;o.setLayout({viewRect:n,r:p}),o.each(e,function(t,e){var n,i;isNaN(t)?o.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:u,cy:h,r0:c,r:x?NaN:p}):((n="area"!==x?0===y&&_?m:t*m:PI/g)<f?S-=n=f:M+=t,i=I+T*n,o.setItemLayout(e,{angle:n,startAngle:I,endAngle:i,clockwise:v,cx:u,cy:h,r0:c,r:x?fu(t,b,[c,p]):p}),I=i)}),S<PI&&g&&(S<=.001?(w=PI/g,o.each(e,function(t,e){isNaN(t)||((t=o.getItemLayout(e)).angle=w,t.startAngle=d+T*e*w,t.endAngle=d+T*(e+1)*w)})):(m=S/M,I=d,o.each(e,function(t,e){isNaN(t)||(t=(e=o.getItemLayout(e)).angle===f?f:t*m,e.startAngle=I,e.endAngle=I+T*t,I+=T*t)})))})},"pie")),Xx(OI("pie"));var RI,Ec=(l(EI,RI=yy),EI.prototype.getInitialData=function(t,e){return G_(this.getSource(),this,{useEncodeDefaulter:!0})},EI.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},EI.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},EI.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},EI.type="series.scatter",EI.dependencies=["grid","polar","geo","singleAxis","calendar"],EI.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}}},EI);function EI(){var t=null!==RI&&RI.apply(this,arguments)||this;return t.type=EI.type,t.hasSymbolVisual=!0,t}yy.registerClass(Ec);var zI,BI=function(){},VI=(l(FI,zI=Ir),FI.prototype.getDefaultShape=function(){return new BI},FI.prototype.buildPath=function(t,e){var n=e.points,i=e.size,o=this.symbolProxy,r=o.shape,e=t.getContext?t.getContext():t;if(e&&i[0]<4)this._ctx=e;else{this._ctx=null;for(var a=0;a<n.length;){var s=n[a++],l=n[a++];isNaN(s)||isNaN(l)||this.softClipShape&&!this.softClipShape.contain(s,l)||(r.x=s-i[0]/2,r.y=l-i[1]/2,r.width=i[0],r.height=i[1],o.buildPath(t,r,!0))}}},FI.prototype.afterBrush=function(){var t=this.shape,e=t.points,n=t.size,i=this._ctx;if(i)for(var o=0;o<e.length;){var r=e[o++],a=e[o++];isNaN(r)||isNaN(a)||this.softClipShape&&!this.softClipShape.contain(r,a)||i.fillRect(r-n[0]/2,a-n[1]/2,n[0],n[1])}},FI.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},FI);function FI(t){return zI.call(this,t)||this}var GI=(HI.prototype.isPersistent=function(){return!this._incremental},HI.prototype.updateData=function(t,e){this.group.removeAll();var n=new VI({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},HI.prototype.updateLayout=function(t){var i;this._incremental||(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)}))},HI.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),2e6<t.count()?(this._incremental||(this._incremental=new gs({silent:!0})),this.group.add(this._incremental)):this._incremental=null},HI.prototype.incrementalUpdate=function(t,e,n){var i;this._incremental?(i=new VI,this._incremental.addDisplayable(i,!0)):((i=new VI({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,!!this._incremental,n)},HI.prototype._setCommon=function(e,t,n,i){var o=t.hostModel;i=i||{};var r=t.getVisual("symbolSize");e.setShape("size",r instanceof Array?r:[r,r]),e.softClipShape=i.clipShape||null,e.symbolProxy=ow(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;i=e.shape.size[0]<4;e.useStyle(o.getModel("itemStyle").getItemStyle(i?["color","shadowBlur","shadowColor"]:["color"]));var a,t=t.getVisual("style"),t=t&&t.fill;t&&e.setColor(t),n||((a=_h(e)).seriesIndex=o.seriesIndex,e.on("mousemove",function(t){a.dataIndex=null;t=e.findDataIndex(t.offsetX,t.offsetY);0<=t&&(a.dataIndex=t+(e.startIndex||0))}))},HI.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},HI.prototype._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},HI);function HI(){this.group=new qr}var WI,g=(l(XI,WI=ky),XI.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},XI.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},XI.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},XI.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||1e4<i.count()||!this._symbolDraw.isPersistent())return{update:!0};n=zS("").reset(t,e,n);n.progress&&n.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},XI.prototype._getClipShape=function(t){var e=t.coordinateSystem,e=e&&e.getArea&&e.getArea();return t.get("clip",!0)?e:null},XI.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?GI:iS),this._isLargeDraw=e,this.group.removeAll()),this.group.add(n.group),n},XI.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},XI.prototype.dispose=function(){},XI.type="scatter",XI);function XI(){var t=null!==WI&&WI.apply(this,arguments)||this;return t.type=XI.type,t}ky.registerClass(g),Zx(zS("scatter"));var YI,UI=(l(ZI,YI=Bc),ZI);function ZI(t,e,n){n=YI.call(this,t,e,n)||this;return n.type="value",n.angle=0,n.name="",n}qI.prototype.getIndicatorAxes=function(){return this._indicatorAxes},qI.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},qI.prototype.coordToPoint=function(t,e){e=this._indicatorAxes[e].angle;return[this.cx+t*Math.cos(e),this.cy-t*Math.sin(e)]},qI.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,t=Math.sqrt(e*e+n*n);e/=t,n/=t;for(var i,o=Math.atan2(-n,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(t))]},qI.prototype.resize=function(t,e){var n=t.get("center"),i=e.getWidth(),o=e.getHeight(),e=Math.min(i,o)/2;this.cx=gu(n[0],i),this.cy=gu(n[1],o),this.startAngle=t.get("startAngle")*Math.PI/180;t=t.get("radius");"string"!=typeof t&&"number"!=typeof t||(t=[0,t]),this.r0=gu(t[0],e),this.r=gu(t[1],e),R(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)},qI.prototype.update=function(i,t){var o=this._indicatorAxes,r=this._model;R(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(),R(o,function(t){t.scale.unionExtentFromData(n,n.mapDimension(t.dim))}))},this);var h=r.get("splitNumber");function c(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.LN10)),t=t/e;return 2===t?t=5:t*=2,t*e}R(o,function(t,e){var n=Hb(t.scale,t.model).extent;Wb(t.scale,t.model);var i=t.model,o=t.scale,r=Gb(o,i.get("min",!0)),a=Gb(o,i.get("max",!0)),s=o.getInterval();if(null!=r&&null!=a)o.setExtent(+r,+a),o.setInterval((a-r)/h);else if(null!=r)for(var l=void 0;l=r+s*h,o.setExtent(+r,l),o.setInterval(s),s=c(s),l<n[1]&&isFinite(l)&&isFinite(n[1]););else if(null!=a)for(var u=void 0;u=a-s*h,o.setExtent(u,+a),o.setInterval(s),s=c(s),u>n[0]&&isFinite(u)&&isFinite(n[0]););else{i=o.getTicks().length-1;h<i&&(s=c(s));u=yu((l=Math.ceil(n[1]/s)*s)-s*h);o.setExtent(u,l),o.setInterval(s)}})},qI.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},qI.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},qI.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},qI.create=function(t,n){var i=[];return t.eachComponent("radar",function(t){var e=new qI(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},qI.dimensions=[],Ec=qI;function qI(t,e,n){this.dimensions=[],this._model=t,this._indicatorAxes=L(t.getIndicatorModels(),function(t,e){var n="indicator_"+e,e=new UI(n,new rb);return e.name=t.get("name"),(e.model=t).axis=e,this.dimensions.push(n),e},this),this.resize(t,n)}bf.register("radar",Ec);g=FS.value;function jI(t,e){return A({show:e},t)}var KI,Ec=(l($I,KI=Ed),$I.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=L(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;null!=t.color&&(e=A({color:t.color},l));t=w(C(t),{boundaryGap:n,splitNumber:i,scale:o,axisLine:r,axisTick:a,axisLabel:s,name:t.text,nameLocation:"end",nameGap:c,nameTextStyle:e,triggerEvent:p},!1);u||(t.name=""),"string"==typeof h?(e=t.name,t.name=h.replace("{value}",null!=e?e:"")):"function"==typeof h&&(t.name=h(t.name,t));t=new Hc(t,null,this.ecModel);return T(t,Jb.prototype),t.mainType="radar",t.componentIndex=this.componentIndex,t},this);this._indicatorModels=t},$I.prototype.getIndicatorModels=function(){return this._indicatorModels},$I.type="radar",$I.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:w({lineStyle:{color:"#bbb"}},g.axisLine),axisLabel:jI(g.axisLabel,!1),axisTick:jI(g.axisTick,!1),splitLine:jI(g.splitLine,!0),splitArea:jI(g.splitArea,!0),indicator:[]},$I);function $I(){var t=null!==KI&&KI.apply(this,arguments)||this;return t.type=$I.type,t}Ed.registerClass(Ec);var JI,QI=["axisLine","axisTickLabel","axisName"],g=(l(tT,JI=Iy),tT.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},tT.prototype._buildAxes=function(t){var e=t.coordinateSystem;R(L(e.getIndicatorAxes(),function(t){return new ZS(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){R(QI,t.add,t),this.group.add(t.getGroup())},this)},tT.prototype._buildSplitLineAndArea=function(t){var n=t.coordinateSystem,e=n.getIndicatorAxes();if(e.length){var i=t.get("shape"),o=t.getModel("splitLine"),r=t.getModel("splitArea"),a=o.getModel("lineStyle"),t=r.getModel("areaStyle"),s=o.get("show"),l=r.get("show"),o=a.get("color"),r=t.get("color"),u=F(o)?o:[o],h=F(r)?r:[r],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 ia({shape:{cx:f,cy:g,r:d[y].coord}})),l&&y<d.length-1&&p[M(p,h,y)].push(new fl({shape:{cx:f,cy:g,r0:d[y].coord,r:d[y+1].coord}}))}else for(var m,v=L(e,function(t,e){t=t.getTicksCoords();return m=null==m?t.length-1:Math.min(t.length-1,m),L(t,function(t){return n.coordToPoint(t.coord,e)})}),x=[],y=0;y<=m;y++){for(var _=[],b=0;b<e.length;b++)_.push(v[b][y]);_[0]&&_.push(_[0].slice()),s&&c[M(c,u,y)].push(new La({shape:{points:_}})),l&&x&&p[M(p,h,y-1)].push(new Ca({shape:{points:_.concat(x)}})),x=_.slice().reverse()}var w=a.getLineStyle(),S=t.getAreaStyle();R(p,function(t,e){this.group.add(Ep(t,{style:A({stroke:"none",fill:h[e%h.length]},S),silent:!0}))},this),R(c,function(t,e){this.group.add(Ep(t,{style:A({fill:"none",stroke:u[e%u.length]},w),silent:!0}))},this)}function M(t,e,n){e=n%e.length;return t[e]=t[e]||[],e}},tT.type="radar",tT);function tT(){var t=null!==JI&&JI.apply(this,arguments)||this;return t.type=tT.type,t}Iy.registerClass(g);var eT,Ec=(l(nT,eT=yy),nT.prototype.init=function(t){eT.prototype.init.apply(this,arguments),this.legendVisualProvider=new vI(B(this.getData,this),B(this.getRawData,this))},nT.prototype.getInitialData=function(t,e){return mI(this,{generateCoord:"indicator_",generateCoordCount:1/0})},nT.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=ly(this,n);return ey("section",{header:r,sortBlocks:!0,blocks:L(o,function(t){var e=i.get(i.mapDimension(t.dim),n);return ey("nameValue",{markerType:"subItem",markerColor:a,name:t.name,value:e,sortParam:e})})})},nT.prototype.getTooltipPosition=function(t){if(null!=t)for(var e=this.getData(),n=this.coordinateSystem,i=e.getValues(L(n.dimensions,function(t){return e.mapDimension(t)}),t),o=0,r=i.length;o<r;o++)if(!isNaN(i[o])){var a=n.getIndicatorAxes();return n.coordToPoint(a[o].dataToCoord(i[o]),o)}},nT.type="series.radar",nT.dependencies=["radar"],nT.defaultOption={zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid"},label:{position:"top"},symbol:"emptyCircle",symbolSize:4},nT);function nT(){var t=null!==eT&&eT.apply(this,arguments)||this;return t.type=nT.type,t.useColorPaletteOnData=!0,t.hasSymbolVisual=!0,t}yy.registerClass(Ec);var iT,g=(l(oT,iT=ky),oT.prototype.render=function(l,t,e){var n=l.coordinateSystem,h=this.group,c=l.getData(),a=this._data;function u(t,e){var n=t.getItemVisual(e,"symbol")||"circle";if("none"!==n){var i,i=(F(i=t.getItemVisual(e,"symbolSize"))||(i=[+i,+i]),i),n=ow(n,-1,-1,2,2),e=t.getItemVisual(e,"symbolRotate")||0;return n.attr({style:{strokeNoScale:!0},z2:100,scaleX:i[0]/2,scaleY:i[1]/2,rotation:e*Math.PI/180||0}),n}}function s(t,e,n,i,o,r){n.removeAll();for(var a=0;a<e.length-1;a++){var s=u(i,o);s&&(t[s.__dimIdx=a]?(s.setPosition(t[a]),od[r?"initProps":"updateProps"](s,{x:e[a][0],y:e[a][1]},l,o)):s.setPosition(e[a]),n.add(s))}}function p(t){return L(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 Ca,n=new La,o={shape:{points:r}},e.shape.points=p(r),n.shape.points=p(r),Gp(e,o,l,t),Gp(n,o,l,t),i=new qr,o=new qr,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 n=a.getItemGraphicEl(e),i=n.childAt(0),o=n.childAt(1),r=n.childAt(2),e={shape:{points:c.getItemLayout(t)}};e.shape.points&&(s(i.shape.points,e.shape.points,r,c,t,!1),Fp(i,e,l),Fp(o,e,l),c.setItemGraphicEl(t,n))}).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;h.add(t),e.useStyle(A(i.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:s})),cc(e,i,"lineStyle"),cc(o,i,"areaStyle");var e=i.getModel("areaStyle"),l=e.isEmpty()&&e.parentModel.isEmpty();o.ignore=l,R(["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(A(e.getAreaStyle(),{fill:s,opacity:.7}));var e=i.getModel("emphasis"),u=e.getModel("itemStyle").getItemStyle();r.eachChild(function(t){t instanceof Qr?(e=t.style,t.useStyle(N({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},a))):(t.useStyle(a),t.setColor(s)),t.ensureState("emphasis").style=C(u);var e=c.get(c.dimensions[t.__dimIdx],n);null!=e&&!isNaN(e)||(e=""),bc(t,wc(i),{labelFetcher:c.hostModel,labelDataIndex:n,labelDimIndex:t.__dimIdx,defaultText:e,inheritColor:s})}),sc(t,e.get("focus"),e.get("blurScope"))}),this._data=c},oT.prototype.remove=function(){this.group.removeAll(),this._data=null},oT.type="radar",oT);function oT(){var t=null!==iT&&iT.apply(this,arguments)||this;return t.type=oT.type,t}function rT(t){return!isNaN(t[0])&&!isNaN(t[1])}function aT(t){return[t.cx,t.cy]}ky.registerClass(g),Zx(function(t){t.eachSeriesByType("radar",function(t){var e,i=t.getData(),o=[],r=t.coordinateSystem;r&&(R(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]=rT(t)?t:aT(r)})}),i.each(function(t){var e=E(o[t],rT)||aT(r);o[t].push(e.slice()),i.setItemLayout(t,o[t])}))})}),Xx(OI("radar")),Wx(function(n){var i,t=n.polar;t&&(F(t)||(t=[t]),i=[],R(t,function(t,e){t.indicator?(t.type&&!t.shape&&(t.shape=t.type),n.radar=n.radar||[],F(n.radar)||(n.radar=[n.radar]),n.radar.push(t)):i.push(t)}),n.polar=i),R(n.series,function(t){t&&"radar"===t.type&&t.polarIndex&&(t.radarIndex=t.polarIndex)})});for(var sT=[126,25],lT=[[[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]]],uT=0;uT<lT.length;uT++)for(var hT=0;hT<lT[uT].length;hT++)lT[uT][hT][0]/=10.5,lT[uT][hT][1]/=-14,lT[uT][hT][0]+=sT[0],lT[uT][hT][1]+=sT[1];var cT={"南海诸岛":[32,80],"广东":[0,-10],"香港":[10,5],"澳门":[-10,10],"天津":[5,5]};var pT={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};var dT=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];var fT=$u();var gT=$u();function yT(t,e){var n,i,o,r=t.svgXML;try{ot(null!=(a=(n=r&&(i=r,o={ignoreViewBox:!0,ignoreRootClip:!0},(new Ya).parse(i,o))||{}).root))}catch(t){throw new Error("Invalid svg format\n"+t.message)}var a,s=n.width,l=n.height,t=n.viewBoxRect;return e||(e=null==s||null==l?a.getBoundingRect():new Mi(0,0,0,0),null!=s&&(e.width=s),null!=l&&(e.height=l)),t&&(l=ns(t,e.width,e.height),t=a,(a=new qr).add(t),t.scaleX=t.scaleY=l.scale,t.x=l.x,t.y=l.y),a.setClipPath(new pa({shape:e.plain()})),{root:a,boundingRect:e}}var mT={geoJSON:{load:function(o,t,e){var n=fT(t).parsed;if(n)return n;var i,r=t.specialAreas||{},a=t.geoJSON;try{i=a?cw(a,e):[]}catch(t){throw new Error("Invalid geoJson format\n"+t.message)}return n=i,"china"===o&&n.push(new lw("南海诸岛",L(lT,function(t){return{type:"polygon",exterior:t}}),sT)),R(i,function(t){var e,n,i=t.name;e=t,"china"!==(n=o)||(n=cT[e.name])&&((e=e.center)[0]+=n[0]/10.5,e[1]+=-n[1]/14),e=t,"world"!==(n=o)||(n=pT[e.name])&&((e=e.center)[0]=n[0],e[1]=n[1]),n=t,"china"===o&&"台湾"===n.name&&n.geometries.push({type:"polygon",exterior:dT[0]});i=r[i];i&&t.transformTo(i.left,i.top,i.width,i.height)}),fT(t).parsed={regions:i,boundingRect:function(t){for(var e,n=0;n<t.length;n++){var i=t[n].getBoundingRect();(e=e||i.clone()).union(i)}return e}(i)}}},svg:{load:function(t,e){var n=gT(e).originRoot;if(n)return{root:n,boundingRect:gT(e).boundingRect};n=yT(e);return gT(e).originRoot=n.root,gT(e).boundingRect=n.boundingRect,n},makeGraphic:function(t,e,n){var i=gT(e),o=i.rootMap||(i.rootMap=ct());if(s=o.get(n))return s;var r=i.originRoot,a=i.boundingRect,s=i.originRootHostKey?yT(e,a).root:(i.originRootHostKey=n,r);return o.set(n,s)},removeGraphic:function(t,e,n){var i=gT(e),e=i.rootMap;e&&e.removeKey(n),n===i.originRootHostKey&&(i.originRootHostKey=null)}}},vT=function(e,n,i){var o,r=[],a=ct(),s=ct();return R(bT(e),function(t){t=mT[t.type].load(e,t,i);R(t.regions,function(t){var e=t.name;n&&n.hasOwnProperty(e)&&(t=t.cloneShallow(e=n[e])),r.push(t),a.set(e,t),s.set(e,t.center)});t=t.boundingRect;t&&(o?o.union(t):o=t.clone())}),{regions:r,regionsMap:a,nameCoordMap:s,boundingRect:o||new Mi(0,0,0,0)}},xT=function(n,i){var t=bT(n),o=[];return R(t,function(t){var e=mT[t.type].makeGraphic;e&&o.push(e(n,t,i))}),o},_T=function(n,i){R(bT(n),function(t){var e=mT[t.type].makeGraphic;e&&e(n,t,i)})};function bT(t){t=vm(t)||[];return t}var wT,Ec=(l(ST,wT=yy),ST.prototype.getInitialData=function(t){for(var e=mI(this,{coordDimensions:["value"],encodeDefaulter:V(of,this)}),n=ct(),i=[],o=0,r=e.count();o<r;o++){var a=e.getName(o);n.set(a,!0)}return R(vT(this.getMapType(),this.option.nameMap,this.option.nameProperty).regions,function(t){t=t.name;n.get(t)||i.push(t)}),e.appendValues([],i),e},ST.prototype.getHostGeoModel=function(){var t=this.option.geoIndex;return null!=t?this.ecModel.getComponent("geo",t):null},ST.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},ST.prototype.getRawValue=function(t){var e=this.getData();return e.get(e.mapDimension("value"),t)},ST.prototype.getRegionModel=function(t){var e=this.getData();return e.getItemModel(e.indexOfName(t))},ST.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 ey("section",{header:s.join(", "),noHeader:!s.length,blocks:[ey("nameValue",{name:r,value:o})]})},ST.prototype.setZoom=function(t){this.option.zoom=t},ST.prototype.setCenter=function(t){this.option.center=t},ST.type="series.map",ST.dependencies=["geo"],ST.layoutMode="box",ST.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,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"},ST);function ST(){var t=null!==wT&&wT.apply(this,arguments)||this;return t.type=ST.type,t.needsDrawMap=!1,t.seriesGroup=[],t.getTooltipPosition=function(t){if(null!=t){var e=this.getData().getName(t),t=this.coordinateSystem,e=t.getRegion(e);return e&&t.dataToPoint(e.center)}},t}yy.registerClass(Ec);var MT="\0_ec_interaction_mutex";function IT(t,e){return TT(t)[e]}function TT(t){return t[MT]||(t[MT]={})}Yx({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var CT,DT=(l(AT,CT=Ft),AT.prototype.isDragging=function(){return this._dragging},AT.prototype.isPinching=function(){return this._pinching},AT.prototype.setPointerChecker=function(t){this.pointerChecker=t},AT.prototype.dispose=function(){this.disable()},AT.prototype._mousedownHandler=function(t){var e,n;oe(t)||t.target&&t.target.draggable||(e=t.offsetX,n=t.offsetY,this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0))},AT.prototype._mousemoveHandler=function(t){var e,n,i,o,r,a;this._dragging&&PT("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!IT(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&&ie(t.event),LT(this,"pan","moveOnMouseMove",t,{dx:r,dy:a,oldX:i,oldY:o,newX:e,newY:n,isAvailableBehavior:null}))},AT.prototype._mouseupHandler=function(t){oe(t)||(this._dragging=!1)},AT.prototype._mousewheelHandler=function(t){var e=PT("zoomOnMouseWheel",t,this._opt),n=PT("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,o=Math.abs(i),r=t.offsetX,a=t.offsetY;0!==i&&(e||n)&&(e&&(o=3<o?1.4:1<o?1.2:1.1,kT(this,"zoom","zoomOnMouseWheel",t,{scale:0<i?o:1/o,originX:r,originY:a,isAvailableBehavior:null})),n&&kT(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(0<i?1:-1)*(3<(i=Math.abs(i))?.4:1<i?.15:.05),originX:r,originY:a,isAvailableBehavior:null}))},AT.prototype._pinchHandler=function(t){IT(this._zr,"globalPan")||kT(this,"zoom",null,t,{scale:1<t.pinchScale?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},AT);function AT(n){var t=CT.call(this)||this;t._zr=n;var i=B(t._mousedownHandler,t),o=B(t._mousemoveHandler,t),r=B(t._mouseupHandler,t),a=B(t._mousewheelHandler,t),s=B(t._pinchHandler,t);return t.enable=function(t,e){this.disable(),this._opt=A(C(e)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!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 kT(t,e,n,i,o){t.pointerChecker&&t.pointerChecker(i,o.originX,o.originY)&&(ie(i.event),LT(t,e,n,i,o))}function LT(t,e,n,i,o){o.isAvailableBehavior=B(PT,null,n,i),t.trigger(e,o)}function PT(t,e,n){n=n[t];return!t||n&&(!H(n)||e.event[n+"Key"])}function NT(t,e,n){t=t.target;t.x+=e,t.y+=n,t.dirty()}function OT(t,e,n,i){var o=t.target,r=t.zoomLimit,a=t.zoom=t.zoom||1;a*=e,r&&(s=r.min||0,r=r.max||1/0,a=Math.max(Math.min(r,a),s));var s=a/t.zoom;t.zoom=a,o.x-=(n-o.x)*(s-1),o.y-=(i-o.y)*(s-1),o.scaleX*=s,o.scaleY*=s,o.dirty()}var RT={axisPointer:1,tooltip:1,brush:1};function ET(t,e,n){e=e.getComponentByElement(t.topTarget),t=e&&e.coordinateSystem;return e&&e!==n&&!RT.hasOwnProperty(e.mainType)&&t&&t.model!==n}function zT(t){var e=t.getItemStyle(),t=t.get("areaColor");return null!=t&&(e.fill=t),e}var BT=(VT.prototype.draw=function(x,t,e,n,i){var _="geo"===x.mainType,b=x.getData&&x.getData();_&&t.eachComponent({mainType:"series",subType:"map"},function(t){b||t.getHostGeoModel()!==x||(b=t.getData())});var o=x.coordinateSystem;this._updateBackground(o);var r,w,S,M=this._regionsGroup,I=this.group,T=o.getTransformInfo(),C=!M.childAt(0)||i;C?(I.transform=T.roamTransform,I.decomposeTransform(),I.dirty()):((r=new pi).transform=T.roamTransform,r.decomposeTransform(),i={scaleX:r.scaleX,scaleY:r.scaleY,x:r.x,y:r.y},w=r.scaleX,S=r.scaleY,Fp(I,i,x)),M.removeAll();var D=ct(),A=b&&b.getVisual("visualMeta")&&0<b.getVisual("visualMeta").length;R(o.regions,function(t){var e=D.get(t.name)||D.set(t.name,new qr),a=new cs({segmentIgnoreThreshold:1,shape:{paths:[]}});e.add(a);var n=x.getRegionModel(t.name)||x,i=n.getModel("itemStyle"),o=n.getModel("emphasis"),r=o.getModel("itemStyle"),s=n.getModel(["blur","itemStyle"]),l=n.getModel(["select","itemStyle"]),u=zT(i),i=zT(r),r=zT(s),s=zT(l);b&&(v=b.indexOfName(t.name),l=b.getItemVisual(v,"style"),A&&l.fill&&(u.fill=l.fill));function h(t){return[t[0]*c+d,t[1]*p+f]}var c=T.rawScaleX,p=T.rawScaleY,d=T.rawX,f=T.rawY;R(t.geometries,function(t){if("polygon"===t.type){for(var e=[],n=0;n<t.exterior.length;++n)e.push(h(t.exterior[n]));a.shape.paths.push(new Ca({segmentIgnoreThreshold:1,shape:{points:e}}));for(n=0;n<(t.interiors?t.interiors.length:0);++n){for(var i=t.interiors[n],o=[],r=0;r<i.length;++r)o.push(h(i[r]));a.shape.paths.push(new Ca({segmentIgnoreThreshold:1,shape:{points:o}}))}}}),a.setStyle(u),a.style.strokeNoScale=!0,a.culling=!0,a.ensureState("emphasis").style=i,a.ensureState("blur").style=r,a.ensureState("select").style=s;for(var g=!1,y=0;y<Dh.length;y++){var m=Dh[y];if(n.get("normal"===m?["label","show"]:[m,"label","show"])){g=!0;break}}var v,i=b&&isNaN(b.get(b.mapDimension("value"),v)),r=b&&b.getItemLayout(v);(_||i&&g||r&&r.showLabel)&&(s=_?t.name:v,i=!b||0<=v?x:void 0,r=h(t.center),bc(r=new Rs({x:r[0],y:r[1],scaleX:1/I.scaleX,scaleY:1/I.scaleY,z2:10,silent:!0}),wc(n),{labelFetcher:i,labelDataIndex:s,defaultText:t.name},{normal:{align:"center",verticalAlign:"middle"}}),a.setTextContent(r),a.setTextConfig({local:!0}),a.disableLabelAnimation=!0,C||Fp(r,{scaleX:1/w,scaleY:1/S},x)),b?b.setItemGraphicEl(v,e):(v=x.getRegionModel(t.name),_h(a).eventData={componentType:"geo",componentIndex:x.componentIndex,geoIndex:x.componentIndex,name:t.name,region:v&&v.option||{}}),(e.__regions||(e.__regions=[])).push(t),e.highDownSilentOnTouch=!!x.get("selectedMode"),sc(e,o.get("focus"),o.get("blurScope")),M.add(e)}),this._updateController(x,t,e),this._updateMapSelectHandler(x,M,e,n)},VT.prototype.remove=function(){this._regionsGroup.removeAll(),this._backgroundGroup.removeAll(),this._controller.dispose(),this._mapName&&_T(this._mapName,this.uid),this._mapName=null,this._controllerHost=null},VT.prototype._updateBackground=function(t){t=t.map;this._mapName!==t&&R(xT(t,this.uid),function(t){this._backgroundGroup.add(t)},this),this._mapName=t},VT.prototype._updateController=function(i,t,o){var r=i.coordinateSystem,e=this._controller,n=this._controllerHost;n.zoomLimit=i.get("scaleLimit"),n.zoom=r.getZoom(),e.enable(i.get("roam")||!1);var a=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,NT(n,t.dx,t.dy),o.dispatchAction(N(s(),{dx:t.dx,dy:t.dy}))},this),e.off("zoom").on("zoom",function(t){this._mouseDownFlag=!1,OT(n,t.scale,t.originX,t.originY),o.dispatchAction(N(s(),{zoom:t.scale,originX:t.originX,originY:t.originY}));var e=this.group;this._regionsGroup.traverse(function(t){t=t.getTextContent();t&&(t.scaleX=1/e.scaleX,t.scaleY=1/e.scaleY,t.markRedraw())})},this),e.setPointerChecker(function(t,e,n){return r.getViewRectAfterRoam().contain(e,n)&&!ET(t,o,i)})},VT.prototype._updateMapSelectHandler=function(t,e,n,i){var o=this;e.off("mousedown"),t.get("selectedMode")&&(e.on("mousedown",function(){o._mouseDownFlag=!0}),e.on("click",function(t){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))},VT);function VT(t){var e=new qr;this.uid=Yc("ec_map_draw"),this._controller=new DT(t.getZr()),this._controllerHost={target:e},(this.group=e).add(this._regionsGroup=new qr),e.add(this._backgroundGroup=new qr)}var FT,g=(l(GT,FT=ky),GT.prototype.render=function(t,e,n,i){var o,r;i&&"mapToggleSelect"===i.type&&i.from===this.uid||((o=this.group).removeAll(),t.getHostGeoModel()||(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id?(r=this._mapDraw)&&o.add(r.group):t.needsDrawMap?(r=this._mapDraw||new BT(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)))},GT.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},GT.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},GT.prototype._renderSymbols=function(r,t,e){var a=r.originalData,s=this.group;a.each(a.mapDimension("value"),function(t,e){var n,i,o;isNaN(t)||(o=a.getItemLayout(e))&&o.point&&(t=o.point,o=o.offset,n=new ia({style:{fill:r.getData().getVisual("style").fill},shape:{cx:t[0]+9*o,cy:t[1],r:3},silent:!0,z2:8+(o?0:Ah+1)}),o||(t=r.mainSeries.getData(),o=a.getName(e),i=t.indexOfName(o),e=(o=a.getItemModel(e)).getModel("label"),t=t.getItemGraphicEl(i),bc(n,wc(o),{labelFetcher:{getFormattedLabel:function(t,e){return r.getFormattedLabel(i,e)}}}),n.disableLabelAnimation=!0,e.get("position")||n.setTextConfig({position:"bottom"}),t.onHoverStateChange=function(t){n.useState(t)}),s.add(n))})},GT.type="map",GT);function GT(){var t=null!==FT&&FT.apply(this,arguments)||this;return t.type=GT.type,t}function HT(t,e,n){var i,o=t.getZoom(),r=t.getCenter(),a=e.zoom,r=t.dataToPoint(r);return null!=e.dx&&null!=e.dy&&(r[0]-=e.dx,r[1]-=e.dy,t.setCenter(t.pointToData(r))),null!=a&&(n&&(i=n.min||0,n=n.max||1/0,a=Math.max(Math.min(o*a,n),i)/o),t.scaleX*=a,t.scaleY*=a,i=(e.originX-t.x)*(a-1),e=(e.originY-t.y)*(a-1),t.x-=i,t.y-=e,t.updateTransform(),t.setCenter(t.pointToData(r)),t.setZoom(a*o)),{center:t.getCenter(),zoom:t.getZoom()}}ky.registerClass(g),Yx({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(i,t){var o=i.componentType||"series";t.eachComponent({mainType:o,query:i},function(t){var e,n=t.coordinateSystem;"geo"===n.type&&(e=HT(n,i,t.get("scaleLimit")),t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom),"series"===o&&R(t.seriesGroup,function(t){t.setCenter(e.center),t.setZoom(e.zoom)}))})});var WT,XT=Nt,YT=(l(UT,WT=pi),UT.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new Mi(t,e,n,i),this._rect},UT.prototype.getBoundingRect=function(){return this._rect},UT.prototype.setViewRect=function(t,e,n,i){this.transformTo(t,e,n,i),this._viewRect=new Mi(t,e,n,i)},UT.prototype.transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=this._rawTransformable;r.transform=o.calculateTransform(new Mi(t,e,n,i)),r.decomposeTransform(),this._updateTransform()},UT.prototype.setCenter=function(t){t&&(this._center=t,this._updateCenterAndZoom())},UT.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()},UT.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},UT.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},UT.prototype.getZoom=function(){return this._zoom||1},UT.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},UT.prototype._updateCenterAndZoom=function(){var t=this._rawTransformable.getLocalTransform(),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom(),i=Nt([],i,t),n=Nt([],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()},UT.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;(e.parent=t).updateTransform(),e.updateTransform(),Jn(this.transform||(this.transform=[]),e.transform||Kn()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],ii(this.invTransform,this.transform),this.decomposeTransform()},UT.prototype.getTransformInfo=function(){var t=this._roamTransformable.transform,e=this._rawTransformable;return{roamTransform:t?nt(t):Kn(),rawScaleX:e.scaleX,rawScaleY:e.scaleY,rawX:e.x,rawY:e.y}},UT.prototype.getViewRect=function(){return this._viewRect},UT.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},UT.prototype.dataToPoint=function(t,e,n){e=e?this._rawTransform:this.transform;return n=n||[],e?XT(n,t,e):vt(n,t)},UT.prototype.pointToData=function(t){var e=this.invTransform;return e?XT([],t,e):[t[0],t[1]]},UT.prototype.convertToPixel=function(t,e,n){e=ZT(e);return e===this?e.dataToPoint(n):null},UT.prototype.convertFromPixel=function(t,e,n){e=ZT(e);return e===this?e.pointToData(n):null},UT.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},UT.dimensions=["x","y"],UT);function UT(t){var e=WT.call(this)||this;return e.type="view",e.dimensions=["x","y"],e._roamTransformable=new pi,e._rawTransformable=new pi,e.name=t,e}function ZT(t){t=t.seriesModel;return t?t.coordinateSystem:null}var qT,jT=(l(KT,qT=YT),KT.prototype.containCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return!0;return!1},KT.prototype.transformTo=function(t,e,n,i){var o=this.getBoundingRect(),r=this._invertLongitute,o=o.clone();r&&(o.y=-o.y-o.height);var a=this._rawTransformable;a.transform=o.calculateTransform(new Mi(t,e,n,i)),a.decomposeTransform(),r&&(a.scaleY=-a.scaleY),a.updateTransform(),this._updateTransform()},KT.prototype.getRegion=function(t){return this._regionsMap.get(t)},KT.prototype.getRegionByCoord=function(t){for(var e=this.regions,n=0;n<e.length;n++)if(e[n].contain(t))return e[n]},KT.prototype.addGeoCoord=function(t,e){this._nameCoordMap.set(t,e)},KT.prototype.getGeoCoord=function(t){return this._nameCoordMap.get(t)},KT.prototype.getBoundingRect=function(){return this._rect},KT.prototype.dataToPoint=function(t,e,n){if("string"==typeof t&&(t=this.getGeoCoord(t)),t)return YT.prototype.dataToPoint.call(this,t,e,n)},KT.prototype.convertToPixel=function(t,e,n){e=$T(e);return e===this?e.dataToPoint(n):null},KT.prototype.convertFromPixel=function(t,e,n){e=$T(e);return e===this?e.pointToData(n):null},KT);function KT(t,e,n,i){t=qT.call(this,t)||this;t.dimensions=["lng","lat"],t.type="geo",t.map=e;n=vT(e,n);return t._nameCoordMap=n.nameCoordMap,t._regionsMap=n.regionsMap,t._invertLongitute=null==i||i,t.regions=n.regions,t._rect=n.boundingRect,t}function $T(t){var e=t.geoModel,t=t.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",th).models[0]||{}).coordinateSystem:null}function JT(t,e){var n=t.get("boundingCoords");null!=n&&(s=n[0],a=n[1],isNaN(s[0])||isNaN(s[1])||isNaN(a[0])||isNaN(a[1])||this.setBoundingRect(s[0],s[1],a[0]-s[0],a[1]-s[1]));var i,o=this.getBoundingRect(),r=t.get("layoutCenter"),n=t.get("layoutSize"),a=e.getWidth(),s=e.getHeight(),e=o.width/o.height*this.aspectScale,o=!1;r&&n&&(r=[gu(r[0],a),gu(r[1],s)],n=gu(n,Math.min(a,s)),isNaN(r[0])||isNaN(r[1])||isNaN(n)||(o=!0)),o?(i={},1<e?(i.width=n,i.height=n/e):(i.height=n,i.width=n*e),i.y=r[1]-i.height/2,i.x=r[0]-i.width/2):((r=t.getBoxLayoutParams()).aspect=e,i=Id(r,{width:a,height:s})),this.setViewRect(i.x,i.y,i.width,i.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function QT(){this.dimensions=jT.prototype.dimensions}T(jT,YT);var tC=new(QT.prototype.create=function(t,a){var s=[];t.eachComponent("geo",function(t,e){var n=t.get("map"),i=t.get("aspectScale"),o=!0,r=vm(n);r&&r[0]&&"svg"===r[0].type?(null==i&&(i=1),o=!1):null==i&&(i=.75);o=new jT(n+e,n,t.get("nameMap"),o);o.aspectScale=i,o.zoomLimit=t.get("scaleLimit"),s.push(o),(t.coordinateSystem=o).model=t,o.resize=JT,o.resize(t,a)}),t.eachSeries(function(t){var e;"geo"===t.get("coordinateSystem")&&(e=t.get("geoIndex")||0,t.coordinateSystem=s[e])});var n={};return t.eachSeriesByType("map",function(t){var e;t.getHostGeoModel()||(e=t.getMapType(),n[e]=n[e]||[],n[e].push(t))}),R(n,function(t,e){var n=L(t,function(t){return t.get("nameMap")}),i=new jT(e,e,S(n));i.zoomLimit=Q.apply(null,L(t,function(t){return t.get("scaleLimit")})),s.push(i),i.resize=JT,i.aspectScale=t[0].get("aspectScale"),i.resize(t[0],a),R(t,function(t){var n;t.coordinateSystem=i,n=i,R(t.get("geoCoord"),function(t,e){n.addGeoCoord(e,t)})})}),s},QT.prototype.getFilledRegions=function(t,e,n){for(var i=(t||[]).slice(),o=ct(),r=0;r<i.length;r++)o.set(i[r].name,i[r]);return R(vT(e,n).regions,function(t){t=t.name;o.get(t)||i.push({name:t})}),i},QT);Ux("geo",tC),Zx(function(n){var o={};n.eachSeriesByType("map",function(t){var a,i,e=t.getMapType();t.getHostGeoModel()||o[e]||(a={},R(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.center),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)})}),Xx(Vd.PROCESSOR.STATISTIC,function(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)}),R(n,function(t,e){for(var l,u,h,n=(l=L(t,function(t){return t.getData()}),u=t[0].get("mapValueCalculation"),h={},R(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)})}),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 e="min"===u?o:"max"===u?r:"average"===u?i/a:i,0===a?NaN:e})),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]})}),nv("map",Yx);var eC=$u();function nC(n){var i=n.mainData,t=n.datas;t||(t={main:i},n.datasAttr={main:"data"}),n.datas=n.mainData=null,lC(i,t,n),R(t,function(e){R(i.TRANSFERABLE_METHODS,function(t){e.wrapMethod(t,V(iC,n))})}),i.wrapMethod("cloneShallow",V(rC,n)),R(i.CHANGABLE_METHODS,function(t){i.wrapMethod(t,V(oC,n))}),ot(t[i.dataType]===i)}function iC(t,e){var n;return eC(n=this).mainData===n?lC((n=N({},eC(this).datas))[this.dataType]=e,n,t):uC(e,this.dataType,eC(this).mainData,t),e}function oC(t,e){return t.struct&&t.struct.update(),e}function rC(n,i){return R(eC(i).datas,function(t,e){t!==i&&uC(t.cloneShallow(),e,i,n)}),i}function aC(t){var e=eC(this).mainData;return null==t||null==e?e:eC(e).datas[t]}function sC(){var e=eC(this).mainData;return null==e?[{data:e}]:L(z(eC(e).datas),function(t){return{type:t,data:eC(e).datas[t]}})}function lC(n,t,i){eC(n).datas={},R(t,function(t,e){uC(t,e,n,i)})}function uC(t,e,n,i){eC(n).datas[e]=t,eC(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=aC,t.getLinkedDataAll=sC}var hC=(cC.prototype.isRemoved=function(){return this.dataIndex<0},cC.prototype.eachNode=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=null),H(t=t||{})&&(t={order:t});var i,o=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)},cC.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},cC.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}},cC.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}},cC.prototype.getAncestors=function(t){for(var e=[],n=t?this:this.parentNode;n;)e.push(n),n=n.parentNode;return e.reverse(),e},cC.prototype.getAncestorsIndices=function(){for(var t=[],e=this;e;)t.push(e.dataIndex),e=e.parentNode;return t.reverse(),t},cC.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(t){e.push(t.dataIndex)}),e},cC.prototype.getValue=function(t){var e=this.hostTree.data;return e.get(e.getDimension(t||"value"),this.dataIndex)},cC.prototype.setLayout=function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},cC.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},cC.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},cC.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},cC.prototype.setVisual=function(t,e){0<=this.dataIndex&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},cC.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},cC.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},cC.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},cC.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},cC.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},cC);function cC(t,e){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=e}var pC=(dC.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},dC.prototype.getNodeByDataIndex=function(t){t=this.data.getRawIndex(t);return this._nodes[t]},dC.prototype.getNodeById=function(t){return this.root.getNodeById(t)},dC.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},dC.prototype.clearLayouts=function(){this.data.clearItemLayouts()},dC.createTree=function(t,e,n){var s=new dC(e),l=[],u=1;!function t(e,n){var i=e.value;u=Math.max(u,F(i)?i.length:1);l.push(e);var o=new hC(Yu(e.name,""),s);n?fC(o,n):s.root=o;s._nodes.push(o);var r=e.children;if(r)for(var a=0;a<r.length;a++)t(r[a],o)}(t),s.root.updateDepthAndHeight(0);t=O_(l,{coordDimensions:["value"],dimensionsCount:u}),e=new A_(t,e);return e.initData(l),n&&n(e),nC({mainData:e,struct:s,structAttr:"tree"}),s.update(),s},dC);function dC(t){this.type="tree",this._nodes=[],this.hostModel=t}function fC(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var gC,Ec=(l(yC,gC=yy),yC.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=t.leaves||{},i=new Hc(n,this,this.ecModel),o=pC.createTree(e,this,function(t){t.wrapMethod("getItemModel",function(t,e){e=o.getNodeByDataIndex(e);return e.children.length&&e.isExpand||(t.parentModel=i),t})});var r=0;o.eachNode("preorder",function(t){t.depth>r&&(r=t.depth)});var a=t.expandAndCollapse&&0<=t.initialTreeDepth?t.initialTreeDepth:r;return o.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a}),o.data},yC.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},yC.prototype.setZoom=function(t){this.option.zoom=t},yC.prototype.setCenter=function(t){this.option.center=t},yC.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,o=i.root.children[0],r=i.getNodeByDataIndex(t),t=r.getValue(),a=r.name;r&&r!==o;)a=r.parentNode.name+"."+a,r=r.parentNode;return ey("nameValue",{name:a,value:t,noValue:isNaN(t)||null==t})},yC.type="series.tree",yC.layoutMode="box",yC.defaultOption={zlevel:0,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",borderColor:"#c23531",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},yC);function yC(){var t=null!==gC&&gC.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}function mC(t,e){var n=t.isExpand?t.children:[],i=t.parentNode.children,o=t.hierNode.i?i[t.hierNode.i-1]:null;n.length?(function(t){var e=t.children,n=e.length,i=0,o=0;for(;0<=--n;){var r=e[n];r.hierNode.prelim+=i,r.hierNode.modifier+=i,o+=r.hierNode.change,i+=r.hierNode.shift+o}}(t),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):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=bC(s),r=wC(r),s&&r;){o=bC(o),a=wC(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&&!bC(o)&&(o.hierNode.thread=s,o.hierNode.modifier+=c-l),r&&!wC(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=u-h,n=t)}return n}(t,o,t.parentNode.hierNode.defaultAncestor||i[0],e)}function vC(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function xC(t){return arguments.length?t:SC}function _C(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function bC(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function wC(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function SC(t,e){return t.parentNode===e.parentNode?1:2}yy.registerClass(Ec);var MC,IC=function(){this.parentPoint=[],this.childPoints=[]},TC=(l(CC,MC=Ir),CC.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},CC.prototype.getDefaultShape=function(){return new IC},CC.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)return t.moveTo(o[0],o[1]),void t.lineTo(r[0],r[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,s=1-l,e=gu(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])}},CC);function CC(t){return MC.call(this,t)||this}var DC,g=(l(AC,DC=ky),AC.prototype.init=function(t,e){this._controller=new DT(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},AC.prototype.render=function(i,t,n){var o=i.getData(),e=i.layoutInfo,r=this._mainGroup;"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),this._updateController(i,t,n);var a=this._data;o.diff(a).add(function(t){kC(o,t)&&LC(o,t,null,r,i)}).update(function(t,e){var n=a.getItemGraphicEl(e);kC(o,t)?LC(o,t,n,r,i):n&&PC(a,e,n,r,i)}).remove(function(t){var e=a.getItemGraphicEl(t);e&&PC(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},AC.prototype._updateViewCoordSys=function(t){var e=t.getData(),n=[];e.each(function(t){t=e.getItemLayout(t);!t||isNaN(t.x)||isNaN(t.y)||n.push([+t.x,+t.y])});var i=[],o=[];zo(n,i,o);var r=this._min,a=this._max;o[0]-i[0]==0&&(i[0]=r?r[0]:i[0]-1,o[0]=a?a[0]:o[0]+1),o[1]-i[1]==0&&(i[1]=r?r[1]:i[1]-1,o[1]=a?a[1]:o[1]+1);a=t.coordinateSystem=new YT;a.zoomLimit=t.get("scaleLimit"),a.setBoundingRect(i[0],i[1],o[0]-i[0],o[1]-i[1]),a.setCenter(t.get("center")),a.setZoom(t.get("zoom")),this.group.attr({x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY}),this._min=i,this._max=o},AC.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)&&!ET(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){NT(i,t.dx,t.dy),r.dispatchAction({seriesId:o.id,type:"treeRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){OT(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()})},AC.prototype._updateNodeAndLinkScale=function(t){var e=t.getData(),n=this._getNodeGlobalScale(t);e.eachItemGraphicEl(function(t,e){t.setSymbolScale(n)})},AC.prototype._getNodeGlobalScale=function(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=this._nodeScaleRatio,t=e.scaleX||1;return((e.getZoom()-1)*n+1)/t},AC.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},AC.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},AC.type="tree",AC);function AC(){var t=null!==DC&&DC.apply(this,arguments)||this;return t.type=AC.type,t._mainGroup=new qr,t}function kC(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)&&"none"!==t.getItemVisual(e,"symbol")}function LC(n,t,i,e,o){var r=!i,a=n.tree.getNodeByDataIndex(t),s=a.getModel(),l=a.getVisual("style").fill,u=!1===a.isExpand&&0!==a.children.length?l:"#fff",h=n.tree.root,c=a.parentNode!==h&&a.parentNode||a,p=n.getItemGraphicEl(c.dataIndex),d=c.getLayout(),f=p?{x:p.x,y:p.y,rawX:p.__radialOldRawX,rawY:p.__radialOldRawY}:d,g=a.getLayout();r?((i=new $w(n,t,null,{symbolInnerColor:u,useNameLabel:!0})).x=f.x,i.y=f.y):i.updateData(n,t,null,{symbolInnerColor:u,useNameLabel:!0}),i.__radialOldRawX=i.__radialRawX,i.__radialOldRawY=i.__radialRawY,i.__radialRawX=g.rawX,i.__radialRawY=g.rawY,e.add(i),n.setItemGraphicEl(t,i),Fp(i,{x:g.x,y:g.y},o);var y,m,l=i.getSymbolPath();"radial"===o.get("layout")&&(p=(c=h.children[0]).getLayout(),r=c.children.length,t=u=void 0,g.x===p.x&&!0===a.isExpand?(m=(c.children[0].getLayout().x+c.children[r-1].getLayout().x)/2,y=(c.children[0].getLayout().y+c.children[r-1].getLayout().y)/2,(u=Math.atan2(y-p.y,m-p.x))<0&&(u=2*Math.PI+u),(t=m<p.x)&&(u-=Math.PI)):((u=Math.atan2(g.y-p.y,g.x-p.x))<0&&(u=2*Math.PI+u),0===a.children.length||0!==a.children.length&&!1===a.isExpand?(t=g.x<p.x)&&(u-=Math.PI):(t=g.x>p.x)||(u-=Math.PI)),r=t?"left":"right",p=(m=(y=s.getModel("label")).get("rotate"))*(Math.PI/180),(t=l.getTextContent())&&(l.setTextConfig({position:y.get("position")||r,rotation:null==m?-u:p,origin:"center"}),t.setStyle("verticalAlign","middle")));s=s.get(["emphasis","focus"]),s="ancestor"===s?a.getAncestorsIndices():"descendant"===s?a.getDescendantIndices():null;s&&(_h(i).focus=s),function(t,e,n,i,o,r,a,s){var l=e.getModel(),u=t.get("edgeShape"),h=t.get("layout"),c=t.getOrient(),p=t.get(["lineStyle","curveness"]),d=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&Fp(g=g||(i.__edge=new Js({shape:NC(h,c,p,o,o)})),{shape:NC(h,c,p,r,a)},t);else if("polyline"===u)if("orthogonal"===h){if(e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,m=[],v=0;v<y.length;v++){var x=y[v].getLayout();m.push([x.x,x.y])}Fp(g=g||(i.__edge=new TC({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:c,forkPosition:d}})),{shape:{parentPoint:[a.x,a.y],childPoints:m}},t)}}else 0;g&&(g.useStyle(A({strokeNoScale:!0,fill:null},f)),cc(g,l,"lineStyle"),$h(g),s.add(g))}(o,a,h,i,f,d,g,e),i.__edge&&(i.onHoverStateChange=function(t){var e;"blur"!==t&&((e=a.parentNode&&n.getItemGraphicEl(a.parentNode.dataIndex))&&e.hoverState===Ih||qh(i.__edge,t))})}function PC(t,e,n,i,o){for(var r,a=t.tree.getNodeByDataIndex(e),s=t.tree.root,l=a.parentNode!==s&&a.parentNode||a;null==(r=l.getLayout());)l=l.parentNode!==s&&l.parentNode||l;Fp(n,{x:r.x+1,y:r.y+1},o,function(){i.remove(n),t.setItemGraphicEl(e,null)}),n.fadeOut(null,{keepLabel:!0});var u=t.getItemGraphicEl(l.dataIndex).__edge,h=n.__edge||(!1===l.isExpand||1===l.children.length?u:void 0),c=o.get("edgeShape"),p=o.get("layout"),a=o.get("orient"),u=o.get(["lineStyle","curveness"]);h&&("curve"===c?Fp(h,{shape:NC(p,a,u,r,r),style:{opacity:0}},o,function(){i.remove(h)}):"polyline"===c&&"orthogonal"===o.get("layout")&&Fp(h,{shape:{parentPoint:[r.x,r.y],childPoints:[[r.x,r.y]]},style:{opacity:0}},o,function(){i.remove(h)}))}function NC(t,e,n,i,o){var r,a,s,l,u,h;if("radial"!==t)return c=i.x,h=i.y,u=o.x,p=o.y,"LR"!==e&&"RL"!==e||(r=c+(u-c)*n,a=h,s=u+(c-u)*n,l=p),"TB"!==e&&"BT"!==e||(r=c,a=h+(p-h)*n,s=u,l=p+(h-p)*n),{x1:c,y1:h,x2:u,y2:p,cpx1:r,cpy1:a,cpx2:s,cpy2:l};c=i.rawX,h=i.rawY,u=o.rawX,p=o.rawY;var o=_C(c,h),c=_C(c,h+(p-h)*n),n=_C(u,p+(h-p)*n),p=_C(u,p);return{x1:o.x||0,y1:o.y||0,x2:p.x||0,y2:p.y||0,cpx1:c.x||0,cpy1:c.y||0,cpx2:n.x||0,cpy2:n.y||0}}function OC(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 RC(t,e,n){if(t&&0<=D(e,t.type)){e=n.getData().tree.root,n=t.targetNode;if("string"==typeof n&&(n=e.getNodeById(n)),n&&e.contains(n))return{node:n};t=t.targetNodeId;return null!=t&&(n=e.getNodeById(t))?{node:n}:void 0}}function EC(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function zC(t,e){return 0<=D(EC(t),e)}function BC(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}ky.registerClass(g),Yx({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(n,t){t.eachComponent({mainType:"series",subType:"tree",query:n},function(t){var e=n.dataIndex,e=t.getData().tree.getNodeByDataIndex(e);e.isExpand=!e.isExpand})}),Yx({type:"treeRoam",event:"treeRoam",update:"none"},function(n,t){t.eachComponent({mainType:"series",subType:"tree",query:n},function(t){var e=HT(t.coordinateSystem,n);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})}),Zx(function(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=function(t,e){return Id(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),o=0,r=0,a=null;a="radial"===i?(o=2*Math.PI,r=Math.min(n.height,n.width)/2,xC(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(o=n.width,r=n.height,xC());e=t.getData().tree.root,n=e.children[0];{var s,l,u,h,c,p,d,f,g;n&&(function(t){t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var e,n,i=[t];e=i.pop();)if(n=e.children,e.isExpand&&n.length)for(var o=n.length-1;0<=o;o--){var r=n[o];r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(r)}}(e),function(t,e,n){for(var i,o=[t],r=[];i=o.pop();)if(r.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s<a.length;s++)o.push(a[s])}for(;i=r.pop();)e(i,n)}(n,mC,a),e.hierNode.modifier=-n.hierNode.prelim,OC(n,vC),OC(u=l=s=n,function(t){var e=t.getLayout().x;e<s.getLayout().x&&(s=t),e>l.getLayout().x&&(l=t),t.depth>u.depth&&(u=t)}),a=s===l?1:a(s,l)/2,h=a-s.getLayout().x,f=d=p=c=0,"radial"===i?(c=o/(l.getLayout().x+a+h),p=r/(u.depth-1||1),OC(n,function(t){d=(t.getLayout().x+h)*c,f=(t.depth-1)*p;var e=_C(d,f);t.setLayout({x:e.x,y:e.y,rawX:d,rawY:f},!0)})):"RL"===(g=t.getOrient())||"LR"===g?(p=r/(l.getLayout().x+a+h),c=o/(u.depth-1||1),OC(n,function(t){f=(t.getLayout().x+h)*p,d="LR"===g?(t.depth-1)*c:o-(t.depth-1)*c,t.setLayout({x:d,y:f},!0)})):"TB"!==g&&"BT"!==g||(c=o/(l.getLayout().x+a+h),p=r/(u.depth-1||1),OC(n,function(t){d=(t.getLayout().x+h)*c,f="TB"===g?(t.depth-1)*p:r-(t.depth-1)*p,t.setLayout({x:d,y:f},!0)})))}}(t,e)})}),qx(function(t){t.eachSeriesByType("tree",function(t){var n=t.getData();n.tree.eachNode(function(t){var e=t.getModel().getModel("itemStyle").getItemStyle();N(n.ensureUniqueItemVisual(t.dataIndex,"style"),e)})})});var VC,Ec=(l(FC,VC=yy),FC.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function e(t){var n=0;R(t.children,function(t){e(t);var t=t.value;F(t)&&(t=t[0]),n+=t});var i=t.value;F(i)&&(i=i[0]);null!=i&&!isNaN(i)||(i=n);i<0&&(i=0);F(t.value)?t.value[0]=i:t.value=i}(n);var i=t.levels||[],o=this.designatedVisualItemStyle={},r=new Hc({itemStyle:o},this,e),a=L((i=t.levels=function(t,e){var n,e=Bu(e.get("color"));if(!e)return;{R(t=t||[],function(t){var e=new Hc(t),t=e.get("color");(e.get(["itemStyle","color"])||t&&"none"!==t)&&(n=!0)}),n||((t[0]||(t[0]={})).color=e.slice())}return t}(i,e))||[],function(t){return new Hc(t,r,e)},this),s=pC.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){e=s.getNodeByDataIndex(e),e=a[e.depth];return t.parentModel=e||r,t})});return s.data},FC.prototype.optionUpdated=function(){this.resetViewRoot()},FC.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t);return ey("nameValue",{name:i.getName(t),value:o})},FC.prototype.getDataParams=function(t){var e=VC.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=BC(t,this),e},FC.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},N(this.layoutInfo,t)},FC.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=ct(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},FC.prototype.getViewRoot=function(){return this._viewRoot},FC.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},FC.type="series.treemap",FC.layoutMode="box",FC.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"}}},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%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},FC);function FC(){var t=null!==VC&&VC.apply(this,arguments)||this;return t.type=FC.type,t.preventUsingHoverLayer=!0,t}yy.registerClass(Ec);var GC=5,HC=(WC.prototype.render=function(t,e,n,i){var o,r,a=t.getModel("breadcrumb"),s=this.group;s.removeAll(),a.get("show")&&n&&(r=(o=a.getModel("itemStyle")).getModel("textStyle"),a={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]},this._prepare(n,a,r),this._renderContent(t,a,o,r,i),Td(s,a.pos,a.box))},WC.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var o=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})}},WC.prototype._renderContent=function(t,e,n,i,o){for(var r,a,s,l,u,h,c,p,d,f,g,y,m,v=0,x=e.emptyItemWidth,_=t.get(["breadcrumb","height"]),b=(r=e.pos,a=e.box,l=a.width,u=a.height,h=gu(r.left,l),c=gu(r.top,u),p=gu(r.right,l),a=gu(r.bottom,u),(isNaN(h)||isNaN(parseFloat(r.left)))&&(h=0),(isNaN(p)||isNaN(parseFloat(r.right)))&&(p=l),(isNaN(c)||isNaN(parseFloat(r.top)))&&(c=0),(isNaN(a)||isNaN(parseFloat(r.bottom)))&&(a=u),s=sd(s||0),{width:Math.max(p-h-s[1]-s[3],0),height:Math.max(a-c-s[0]-s[2],0)}),w=e.totalWidth,S=e.renderList,M=S.length-1;0<=M;M--){var I=S[M],T=I.node,C=I.width,D=I.text;b.width<w&&(w-=C-x,C=x,D=null);I=new Ca({shape:{points:(d=v,f=0,g=C,y=_,m=M===S.length-1,I=void 0,I=[[m?d:d-GC,f],[d+g,f],[d+g,f+y],[m?d:d-GC,f+y]],0===M||I.splice(2,0,[d+g+GC,f+y/2]),m||I.push([d,f+y/2]),I)},style:A(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Rs({style:{text:D,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z:10,onclick:V(o,T)});I.disableLabelAnimation=!0,this.group.add(I),D=t,T=T,_h(I).eventData={componentType:"series",componentSubType:"treemap",componentIndex:D.componentIndex,seriesIndex:D.componentIndex,seriesName:D.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:T&&T.dataIndex,name:T&&T.name},treePathInfo:T&&BC(T,D)},v+=C+8}},WC.prototype.remove=function(){this.group.removeAll()},WC);function WC(t){this.group=new qr,t.add(this.group)}var XC,YC=qr,UC=pa,ZC="label",qC="upperLabel",jC=10,KC=1,$C=2,JC=yh([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),QC=function(t){t=JC(t);return t.stroke=t.fill=t.lineWidth=null,t},tD=$u(),g=(l(eD,XC=ky),eD.prototype.render=function(t,e,n,i){var o,r,a,s;D(e.findComponents({mainType:"series",subType:"treemap",query:i}),t)<0||(this.seriesModel=t,this.api=n,this.ecModel=e,o=RC(i,["treemapZoomToNode","treemapRootToNode"],t),r=i&&i.type,s=t.layoutInfo,a=!this._oldTree,e=this._storage,e="treemapRootToNode"===r&&o&&e?{rootNodeGroup:e.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,i=this._giveContainerGroup(s),s=this._doRender(i,t,e),a||r&&"treemapZoomToNode"!==r&&"treemapRootToNode"!==r?s.renderFinally():this._doAnimation(i,s,t,e),this._resetController(n),this._renderBreadcrumb(t,n,o))},eD.prototype._giveContainerGroup=function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new YC,this._initEvents(e),this.group.add(e)),e.x=t.x,e.y=t.y,e},eD.prototype._doRender=function(t,o,r){var e=o.getData().tree,n=this._oldTree,a=nD(),s=nD(),l=this._storage,u=[];function h(t,e,n,i){return function(c,a,s,l,u,e,p,t,n,i){if(!p)return;var d=p.getLayout(),o=c.getData(),f=p.getModel();if(o.setItemGraphicEl(p.dataIndex,null),!d||!d.isInView)return;var h=d.width,g=d.height,y=d.borderWidth,m=d.invisible,v=p.getRawIndex(),x=t&&t.getRawIndex(),r=p.viewChildren,_=d.upperHeight,b=r&&r.length,w=f.getModel("itemStyle"),S=f.getModel(["emphasis","itemStyle"]),M=f.getModel(["blur","itemStyle"]),I=f.getModel(["select","itemStyle"]),T=w.get("borderRadius")||0,C=P("nodeGroup",YC);if(!C)return;if(n.add(C),C.x=d.x||0,C.y=d.y||0,C.markRedraw(),tD(C).nodeWidth=h,tD(C).nodeHeight=g,d.isAboveViewRoot)return C;var D=P("background",UC,i,KC);D&&function(t,e,n){var i=_h(e);{var o,r,a,s;i.dataIndex=p.dataIndex,i.seriesIndex=c.seriesIndex,e.setShape({x:0,y:0,width:h,height:g,r:T}),m?A(e):(e.invisible=!1,s=p.getVisual("style").stroke,(o=QC(w)).fill=s,(r=JC(S)).fill=S.get("borderColor"),(a=JC(M)).fill=M.get("borderColor"),(i=JC(I)).fill=I.get("borderColor"),n?k(e,s,s=h-2*y,0,{x:y,y:0,width:s,height:_}):e.removeTextContent(),e.setStyle(o),e.ensureState("emphasis").style=r,e.ensureState("blur").style=a,e.ensureState("select").style=i,$h(e))}t.add(e)}(C,D,b&&d.upperLabelHeight);t=f.get(["emphasis","focus"]),r=f.get(["emphasis","blurScope"]),n="ancestor"===t?p.getAncestorsIndices():"descendant"===t?p.getDescendantIndices():null;{b?(dc(C)&&pc(C,!1),D&&(pc(D,!0),o.setItemGraphicEl(p.dataIndex,D),lc(D,n||t,r))):((i=P("content",UC,i,$C))&&function(t,e){var n=_h(e);n.dataIndex=p.dataIndex,n.seriesIndex=c.seriesIndex;var i=Math.max(h-2*y,0),o=Math.max(g-2*y,0);{var r,a;e.culling=!0,e.setShape({x:y,y:y,width:i,height:o,r:T}),m?A(e):(e.invisible=!1,r=p.getVisual("style").fill,(a=QC(w)).fill=r,n=JC(S),i=JC(M),o=JC(I),k(e,r),e.setStyle(a),e.ensureState("emphasis").style=n,e.ensureState("blur").style=i,e.ensureState("select").style=o,$h(e))}t.add(e)}(C,i),D&&dc(D)&&pc(D,!1),pc(C,!0),o.setItemGraphicEl(p.dataIndex,C),lc(C,n||t,r))}return C;function A(t){t.invisible||e.push(t)}function k(n,t,e,i,o){var r,a=f.getModel(o?qC:ZC),s=Q(c.getFormattedLabel(p.dataIndex,"normal",null,null,a.get("formatter")),f.get("name"));!o&&d.isLeafRoot&&(s=(r=c.get("drillDownIcon",!0))?r+" "+s:s);a=a.getShallow("show");bc(n,wc(f,o?qC:ZC),{defaultText:a?s:null,inheritColor:t,labelFetcher:c,labelDataIndex:p.dataIndex});var l=n.getTextContent(),u=l.style,h=it(u.padding||0);o&&(n.setTextConfig({layoutRect:o}),l.disableLabelLayout=!0),l.beforeUpdate=function(){var t=Math.max((o||n.shape).width-h[1]-h[3],0),e=Math.max((o||n.shape).height-h[0]-h[2],0);u.width===t&&u.height===e||l.setStyle({width:t,height:e})},u.truncateMinChar=2,u.lineOverflow="truncate",L(u,o,d);t=l.getState("emphasis");L(t?t.style:null,o,d)}function L(t,e,n){var i=t?t.text:null;!e&&n.isLeafRoot&&null!=i&&(n=c.get("drillDownIcon",!0),t.text=n?n+" "+i:i)}function P(t,e,n,i){var o=null!=x&&s[t][x],r=u[t];return o?(s[t][x]=null,function(t,e){t=t[v]={};e instanceof YC?(t.oldX=e.x,t.oldY=e.y):t.oldShape=N({},e.shape)}(r,o)):m||((o=new e)instanceof oo&&(o.z=function(t,e){e=t*jC+e;return(e-1)/e}(n,i)),function(t,e){var n=t[v]={},i=p.parentNode,o=e instanceof qr;{!i||l&&"drillDown"!==l.direction||(e=t=0,i=u.background[i.getRawIndex()],!l&&i&&i.oldShape&&(t=i.oldShape.width,e=i.oldShape.height),o?(n.oldX=0,n.oldY=e):n.oldShape={x:t,y:e,width:0,height:0})}n.fadein=!o}(r,o)),a[t][v]=o}}(o,s,l,r,a,u,t,e,n,i)}!function i(o,r,a,s,l){s?R(r=o,function(t,e){t.isRemoved()||n(e,e)}):new t_(r,o,t,t).add(n).update(n).remove(V(n,null)).execute();function t(t){return t.getId()}function n(t,e){var n=null!=t?o[t]:null,t=null!=e?r[e]:null,e=h(n,t,a,l);e&&i(n&&n.viewChildren||[],t&&t.viewChildren||[],e,s,l+1)}}(e.root?[e.root]:[],n&&n.root?[n.root]:[],t,e===n||!n,0);var i,c,p=(c=nD(),(i=l)&&R(i,function(t,e){var n=c[e];R(t,function(t){t&&(n.push(t),tD(t).willDelete=!0)})}),c);return this._oldTree=e,this._storage=s,{lastsForAnimation:a,willDeleteEls:p,renderFinally:function(){R(p,function(t){R(t,function(t){t.parent&&t.parent.remove(t)})}),R(u,function(t){t.invisible=!0,t.dirty()})}}},eD.prototype._doAnimation=function(t,o,e,a){var s,l,u,r,h,c;e.get("animation")&&(s=e.get("animationDurationUpdate"),l=e.get("animationEasing"),h=[],c={},u={add:function(t,e,n,i,o){return H(i)&&(o=i,i=0),!c[t.id]&&(c[t.id]=1,h.push({el:t,target:e,time:n,delay:i,easing:o}),!0)},done:function(t){return r=t,this},start:function(){for(var t=h.length,e=0,n=h.length;e<n;e++){var i=h[e];i.el.animateTo(i.target,{duration:i.time,delay:i.delay,easing:i.easing,setToFinal:!0,done:o})}return this;function o(){--t||(h.length=0,c={},r&&r())}}},R(o.willDeleteEls,function(t,r){R(t,function(t,e){var n,i,o;t.invisible||(i=t.parent,n=tD(i),(o=a&&"drillDown"===a.direction?i===a.rootNodeGroup?{shape:{x:0,y:0,width:n.nodeWidth,height:n.nodeHeight},style:{opacity:0}}:{style:{opacity:0}}:(o=i=0,n.willDelete||(i=n.nodeWidth/2,o=n.nodeHeight/2),"nodeGroup"===r?{x:i,y:o,style:{opacity:0}}:{shape:{x:i,y:o,width:0,height:0},style:{opacity:0}}))&&u.add(t,o,s,l))})}),R(this._storage,function(t,i){R(t,function(t,e){var n=o.lastsForAnimation[i][e],e={};n&&(t instanceof qr?null!=n.oldX&&(e.x=t.x,e.y=t.y,t.x=n.oldX,t.y=n.oldY):(n.oldShape&&(e.shape=N({},t.shape),t.setShape(n.oldShape)),n.fadein?(t.setStyle("opacity",0),e.style={opacity:1}):1!==t.style.opacity&&(e.style={opacity:1})),u.add(t,e,s,l))})},this),this._state="animating",u.done(B(function(){this._state="ready",o.renderFinally()},this)).start())},eD.prototype._resetController=function(t){var e=this._controller;e||((e=this._controller=new DT(t.getZr())).enable(this.seriesModel.get("roam")),e.on("pan",B(this._onPan,this)),e.on("zoom",B(this._onZoom,this)));var i=new Mi(0,0,t.getWidth(),t.getHeight());e.setPointerChecker(function(t,e,n){return i.contain(e,n)})},eD.prototype._clearController=function(){var t=this._controller;t&&(t.dispose(),t=null)},eD.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}}))},eD.prototype._onZoom=function(t){var e,n,i,o=t.originX,r=t.originY;"animating"!==this._state&&(!(i=this.seriesModel.getData().tree.root)||(n=i.getLayout())&&(e=new Mi(n.x,n.y,n.width,n.height),ti(i=Kn(),i,[-(o-=(n=this.seriesModel.layoutInfo).x),-(r-=n.y)]),ni(i,i,[t.scale,t.scale]),ti(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}})))},eD.prototype._initEvents=function(t){var i=this;t.on("click",function(t){var e,n;"ready"===i._state&&(!(n=i.seriesModel.get("nodeClick",!0))||(e=i.findTarget(t.offsetX,t.offsetY))&&((t=e.node).getLayout().isLeafRoot?i._rootToNode(e):"zoomToNode"===n?i._zoomToNode(e):"link"===n&&(t=(n=t.hostTree.data.getItemModel(t.dataIndex)).get("link",!0),n=n.get("target",!0)||"blank",t&&vd(t,n))))},this)},eD.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 HC(this.group))).render(e,t,n.node,function(t){"animating"!==i._state&&(zC(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))})},eD.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=nD(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},eD.prototype.dispose=function(){this._clearController()},eD.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},eD.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},eD.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},eD.type="treemap",eD);function eD(){var t=null!==XC&&XC.apply(this,arguments)||this;return t.type=eD.type,t._state="ready",t._storage=nD(),t}function nD(){return{nodeGroup:[],background:[],content:[]}}ky.registerClass(g);for(var iD=function(){},oD=["treemapZoomToNode","treemapRender","treemapMove"],rD=0;rD<oD.length;rD++)Yx({type:oD[rD],update:"updateView"},iD);Yx({type:"treemapRootToNode",update:"updateView"},function(o,t){t.eachComponent({mainType:"series",subType:"treemap",query:o},function(t,e){var n=RC(o,["treemapZoomToNode","treemapRootToNode"],t);{var i;n&&((i=t.getViewRoot())&&(o.direction=zC(i,n.node)?"rollUp":"drillDown"),t.resetViewRoot(n.node))}})});var aD=R,sD=Y,lD=-1,uD=(hD.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},hD.prototype.getNormalizer=function(){return B(this._normalizeData,this)},hD.listVisualTypes=function(){return z(hD.visualHandlers)},hD.isValidType=function(t){return hD.visualHandlers.hasOwnProperty(t)},hD.eachVisual=function(t,e,n){Y(t)?R(t,e,n):e.call(n,t)},hD.mapVisual=function(t,n,i){var o,r=F(t)?[]:Y(t)?{}:(o=!0,null);return hD.eachVisual(t,function(t,e){t=n.call(i,t,e);o?r=t:r[e]=t}),r},hD.retrieveVisuals=function(n){var i,o={};return n&&aD(hD.visualHandlers,function(t,e){n.hasOwnProperty(e)&&(o[e]=n[e],i=!0)}),i?o:null},hD.prepareVisualTypes=function(t){if(F(t))t=t.slice();else{if(!sD(t))return[];var n=[];aD(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},hD.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},hD.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||"string"==typeof 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(bD(l[1],n,u[1]))return r}else if(u[1]===1/0){if(bD(l[0],u[0],n))return r}else if(bD(l[0],u[0],n)&&bD(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)}},hD.visualHandlers={color:{applyVisual:fD("color"),getColorMapper:function(){var o=this.option;return B("category"===o.mappingMethod?function(t,e){return e||(t=this._normalizeData(t)),gD.call(this,t)}:function(t,e,n){var i=!!n;return e||(t=this._normalizeData(t)),n=rn(t,o.parsedVisual,n),i?n:un(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return un(rn(t,this.option.parsedVisual),"rgba")},category:gD,piecewise:function(t,e){e=vD.call(this,e);return null==e&&(e=un(rn(t,this.option.parsedVisual),"rgba")),e},fixed:yD}},colorHue:pD(function(t,e){return sn(t,e)}),colorSaturation:pD(function(t,e){return sn(t,null,e)}),colorLightness:pD(function(t,e){return sn(t,null,null,e)}),colorAlpha:pD(ln),opacity:{applyVisual:fD("opacity"),_normalizedToVisual:mD([0,1])},liftZ:{applyVisual:fD("liftZ"),_normalizedToVisual:{linear:yD,category:yD,piecewise:yD,fixed:yD}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:dD,category:gD,piecewise:function(t,e){e=vD.call(this,e);return null==e&&(e=dD.call(this,t)),e},fixed:yD}},symbolSize:{applyVisual:fD("symbolSize"),_normalizedToVisual:mD([0,1])}},hD);function hD(t){var e=t.mappingMethod,n=t.type,t=this.option=C(t);this.type=n,this.mappingMethod=e,this._normalizeData=_D[e];var i,n=hD.visualHandlers[n];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[e],"piecewise"===e?(cD(t),n=(i=t).pieceList,i.hasSpecialVisual=!1,R(n,function(t,e){t.originIndex=e,null!=t.visual&&(i.hasSpecialVisual=!0)})):"category"===e?t.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;{var o;aD(e,function(t,e){n[t]=e}),F(i)||(o=[],Y(i)?aD(i,function(t,e){e=n[e];o[null!=e?e:lD]=t}):o[lD]=i,i=xD(t,o))}for(var r=e.length-1;0<=r;r--)null==i[r]&&(delete n[e[r]],e.pop())}(t):cD(t,!0):(ot("linear"!==e||t.dataExtent),cD(t))}function cD(t,e){var n=t.visual,i=[];Y(n)?aD(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]),xD(t,i)}function pD(i){return{applyVisual:function(t,e,n){t=this.mapValueToVisual(t);n("color",i(e("color"),t))},_normalizedToVisual:mD([0,1])}}function dD(t){var e=this.option.visual;return e[Math.round(fu(t,[0,1],[0,e.length-1],!0))]||{}}function fD(i){return function(t,e,n){n(i,this.mapValueToVisual(t))}}function gD(t){var e=this.option.visual;return e[this.option.loop&&t!==lD?t%e.length:t]}function yD(){return this.option.visual[0]}function mD(n){return{linear:function(t){return fu(t,n,this.option.visual,!0)},category:gD,piecewise:function(t,e){e=vD.call(this,e);return null==e&&(e=fu(t,n,this.option.visual,!0)),e},fixed:yD}}function vD(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){n=n[uD.findPieceIndex(t,n)];if(n&&n.visual)return n.visual[this.type]}}function xD(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=L(e,function(t){return tn(t)})),e}var _D={linear:function(t){return fu(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,t=uD.findPieceIndex(t,e,!0);if(null!=t)return fu(t,[0,e.length-1],[0,1],!0)},category:function(t){t=this.option.categories?this.option.categoryMap[t]:t;return null==t?lD:t},fixed:gt};function bD(t,e,n){return t?e<=n:e<n}var wD="itemStyle",SD=$u(),Ec={seriesType:"treemap",reset:function(t){var e=t.getData().tree.root;e.isRemoved()||!function n(t,e,i,o){var r=t.getModel();var a=t.getLayout();var s=t.hostTree.data;if(!a||a.invisible||!a.isInView)return;var l=r.getModel(wD);var u=MD(l,e,o);var h=s.ensureUniqueItemVisual(t.dataIndex,"style");var c=l.get("borderColor");e=l.get("borderColorSaturation");var p;null!=e&&(p=ID(u),s=e,c=null!=(e=p)?sn(e,null,null,s):null);h.stroke=c;var c=t.viewChildren;{var d;c&&c.length?(d=CD(0,r,a,0,u,c),R(c,function(t,e){(t.depth>=i.length||t===i[t.depth])&&(e=AD(r,u,t,e,d,o),n(t,e,i,o))})):(p=ID(u),h.fill=p)}}(e,{},t.getViewRoot().getAncestors(),t)}};function MD(n,i,t){var o=N({},i),r=t.designatedVisualItemStyle;return R(["color","colorAlpha","colorSaturation"],function(t){r[t]=i[t];var e=n.get(t);(r[t]=null)!=e&&(o[t]=e)}),o}function ID(t){var e=TD(t,"color");if(e){var n=TD(t,"colorAlpha"),t=TD(t,"colorSaturation");return t&&(e=sn(e,null,null,t)),n&&(e=ln(e,n)),e}}function TD(t,e){e=t[e];if(null!=e&&"none"!==e)return e}function CD(t,e,n,i,o,r){if(r&&r.length){var a=DD(e,"color")||null!=o.color&&"none"!==o.color&&(DD(e,"colorAlpha")||DD(e,"colorSaturation"));if(a){r=e.get("visualMin"),o=e.get("visualMax"),n=n.dataExtent.slice();null!=r&&r<n[0]&&(n[0]=r),null!=o&&o>n[1]&&(n[1]=o);e=e.get("colorMappingBy"),a={type:a.name,dataExtent:n,visual:a.range};"color"!==a.type||"index"!==e&&"id"!==e?a.mappingMethod="linear":(a.mappingMethod="category",a.loop=!0);a=new uD(a);return SD(a).drColorMappingBy=e,a}}}function DD(t,e){t=t.get(e);return F(t)&&t.length?{name:e,range:t}:null}function AD(t,e,n,i,o,r){var a,s=N({},e);return o&&(t="index"===(e="color"===(a=o.type)&&SD(o).drColorMappingBy)?i:"id"===e?r.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension")),s[a]=o.mapValueToVisual(t)),s}var kD=Math.max,LD=Math.min,PD=Q,ND=R,OD=["itemStyle","borderWidth"],RD=["itemStyle","gapWidth"],ED=["upperLabel","show"],zD=["upperLabel","height"],g={seriesType:"treemap",reset:function(t,e,n,i){var o,r=n.getWidth(),a=n.getHeight(),s=t.option,l=Id(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),u=s.size||[],h=gu(PD(l.width,u[0]),r),c=gu(PD(l.height,u[1]),a),n=i&&i.type,u=RC(i,["treemapZoomToNode","treemapRootToNode"],t),i="treemapRender"===n||"treemapMove"===n?i.rootRect:null,p=t.getViewRoot(),d=EC(p);"treemapMove"!==n&&(c="treemapZoomToNode"===n?function(t,e,n,i,o){var r,a=(e||{}).node,s=[i,o];if(!a||a===n)return s;var n=i*o,l=n*t.option.zoomToNodeRatio;for(;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 f=r.getModel(),d=f.get(OD),f=Math.max(d,GD(f));l+=4*d*d+(3*d+f)*Math.pow(l,.5),wu<l&&(l=wu),a=r}l<n&&(l=n);n=Math.pow(l/n,.5);return[i*n,o*n]}(t,u,p,h,c):i?[i.width,i.height]:[h,c],(f=s.sort)&&"asc"!==f&&"desc"!==f&&(f="desc"),f={squareRatio:s.squareRatio,sort:f,leafDepth:s.leafDepth},p.hostTree.clearLayouts(),o={x:0,y:0,width:c[0],height:c[1],area:c[0]*c[1]},p.setLayout(o),function t(e,n,i,o){var r;var a;if(e.isRemoved())return;var s=e.getLayout();r=s.width;a=s.height;var l=e.getModel();var u=l.get(OD);var h=l.get(RD)/2;var c=GD(l);var p=Math.max(u,c);var d=u-h;var s=p-h;e.setLayout({borderWidth:u,upperHeight:p,upperLabelHeight:c},!0);r=kD(r-2*d,0);a=kD(a-d-s,0);var c=r*a;var f=BD(e,l,c,n,i,o);if(!f.length)return;var g={x:d,y:s,width:r,height:a};var y=LD(r,a);var m=1/0;var v=[];v.area=0;for(var x=0,_=f.length;x<_;){var b=f[x];v.push(b),v.area+=b.getLayout().area;var b=VD(v,y,n.squareRatio);m=b<=m?(x++,b):(v.area-=v.pop().getLayout().area,FD(v,y,g,h,!1),y=LD(g.width,g.height),1/(v.length=v.area=0))}v.length&&FD(v,y,g,h,!0);{i||null!=(l=l.get("childrenVisibleMin"))&&c<l&&(i=!0)}for(var x=0,_=f.length;x<_;x++)t(f[x],n,i,o+1)}(p,f,!1,0),o=p.getLayout(),ND(d,function(t,e){e=(d[e+1]||p).getValue();t.setLayout(N({dataExtent:[e,e],borderWidth:0,upperHeight:0},o))}));var f=t.getData().tree.root;f.setLayout(function(t,e,n){if(e)return{x:e.x,y:e.y};var i={x:0,y:0};if(!n)return i;e=n.node,n=e.getLayout();if(!n)return i;var o=[n.width/2,n.height/2],r=e;for(;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]}}(l,i,u),!0),t.setLayoutInfo(l),function e(t,n,i,o,r){var a=t.getLayout();var s=i[r];var l=s&&s===t;if(s&&!l||r===i.length&&t!==o)return;t.setLayout({isInView:!0,invisible:!l&&!n.intersect(a),isAboveViewRoot:l},!0);var u=new Mi(n.x-a.x,n.y-a.y,n.width,n.height);ND(t.viewChildren||[],function(t){e(t,u,i,o,r+1)})}(f,new Mi(-l.x,-l.y,r,a),d,p,0)}};function BD(t,e,n,i,o,r){var a=t.children||[],s=i.sort;"asc"!==s&&"desc"!==s&&(s=null);var l,r=null!=i.leafDepth&&i.leafDepth<=r;if(o&&!r)return t.viewChildren=[];a=O(a,function(t){return!t.isRemoved()}),o=a,(l=s)&&o.sort(function(t,e){var n="asc"===l?t.getValue()-e.getValue():e.getValue()-t.getValue();return 0==n?"asc"===l?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");e&&e.length?"value"===s&&n?(a=[e[e.length-1].getValue(),e[0].getValue()],"asc"===n&&a.reverse()):(a=[1/0,-1/0],ND(e,function(t){t=t.getValue(s);t<a[0]&&(a[0]=t),t>a[1]&&(a[1]=t)})):a=[NaN,NaN];return{sum:i,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,o){if(!i)return n;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)}return"asc"===i?o.splice(0,a-s):o.splice(s,a-s),n}(e,n,u.sum,s,a),0===u.sum)return t.viewChildren=[];for(var h=0,c=a.length;h<c;h++){var p=a[h].getValue()/u.sum*n;a[h].setLayout({area:p})}return r&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}function VD(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,n=e*e*n;return l?kD(n*o/l,l/(n*r)):1/0}function FD(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]]=kD(h-2*i,0),m=n[s[r]]+n[l[r]]-u,m=c===p-1||m<g?m:g,g=f[l[r]]=kD(m-2*i,0);f[s[a]]=n[s[a]]+LD(i,y/2),f[s[r]]=u+LD(i,g/2),u+=m,d.setLayout(f,!0)}n[s[a]]+=h,n[l[a]]-=h}function GD(t){return t.get(ED)?t.get(zD):0}function HD(t){return"_EC_"+t}qx(Ec),Zx(g);var WD=(XD.prototype.isDirected=function(){return this._directed},XD.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[HD(t)]){e=new YD(t,e);return(e.hostGraph=this).nodes.push(e),n[HD(t)]=e}},XD.prototype.getNodeByIndex=function(t){t=this.data.getRawIndex(t);return this.nodes[t]},XD.prototype.getNodeById=function(t){return this._nodesMap[HD(t)]},XD.prototype.addEdge=function(t,e,n){var i=this._nodesMap,o=this._edgesMap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),t instanceof YD||(t=i[HD(t)]),e instanceof YD||(e=i[HD(e)]),t&&e){i=t.id+"-"+e.id,n=new ZD(t,e,n);return(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}},XD.prototype.getEdgeByIndex=function(t){t=this.edgeData.getRawIndex(t);return this.edges[t]},XD.prototype.getEdge=function(t,e){t instanceof YD&&(t=t.id),e instanceof YD&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},XD.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)},XD.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)},XD.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof YD||(e=this._nodesMap[HD(e)]),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}}}},XD.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,o=0,r=n.length;o<r;o++)n[o].dataIndex=-1;for(o=0,r=t.count();o<r;o++)n[t.getRawIndex(o)].dataIndex=o;e.filterSelf(function(t){t=i[e.getRawIndex(t)];return 0<=t.node1.dataIndex&&0<=t.node2.dataIndex});for(o=0,r=i.length;o<r;o++)i[o].dataIndex=-1;for(o=0,r=e.count();o<r;o++)i[e.getRawIndex(o)].dataIndex=o},XD.prototype.clone=function(){for(var t=new XD(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},XD);function XD(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}var YD=(UD.prototype.degree=function(){return this.edges.length},UD.prototype.inDegree=function(){return this.inEdges.length},UD.prototype.outDegree=function(){return this.outEdges.length},UD.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},UD.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},UD);function UD(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}var ZD=(qD.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},qD.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},qD);function qD(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}function jD(n,i){return{getValue:function(t){var e=this[n][i];return e.get(e.getDimension(t||"value"),this.dataIndex)},setVisual:function(t,e){0<=this.dataIndex&&this[n][i].setItemVisual(this.dataIndex,t,e)},getVisual:function(t){return this[n][i].getItemVisual(this.dataIndex,t)},setLayout:function(t,e){0<=this.dataIndex&&this[n][i].setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this[n][i].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][i].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][i].getRawIndex(this.dataIndex)}}}function KD(t,e,n,i,o){for(var r=new WD(i),a=0;a<t.length;a++)r.addNode(Q(t[a].id,t[a].name,a),a);for(var s=[],l=[],u=0,a=0;a<e.length;a++){var h=e[a],c=h.source,p=h.target;r.addEdge(c,p,u)&&(l.push(h),s.push(Q(Yu(h.id,null),c+" > "+p)),u++)}var d,i=n.get("coordinateSystem");"cartesian2d"===i||"polar"===i?d=G_(t,n):(D(i=(i=bf.get(i))&&i.dimensions||[],"value")<0&&i.concat(["value"]),i=O_(t,{coordDimensions:i}),(d=new A_(i,n)).initData(t));n=new A_(["value"],n);return n.initData(l,s),o&&o(d,n),nC({mainData:d,struct:r,structAttr:"graph",datas:{node:d,edge:n},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}T(YD,jD("hostGraph","data")),T(ZD,jD("hostGraph","edgeData"));var $D="--\x3e",JD=function(t){return t.get("autoCurveness")||null},QD=function(t,e){var n=JD(t),i=20,o=[];if("number"==typeof n)i=n;else if(F(n))return void(t.__curvenessList=n);i<e&&(i=e);for(var r=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},tA=function(t,e,n){t=[t.id,t.dataIndex].join("."),e=[e.id,e.dataIndex].join(".");return[n.uid,t,e].join($D)},eA=function(t){t=t.split($D);return[t[0],t[2],t[1]].join($D)},nA=function(t,e){t=tA(t.node1,t.node2,e);return e.__edgeMap[t]},iA=function(t,e){return oA(tA(t.node1,t.node2,e),e)+oA(tA(t.node2,t.node1,e),e)},oA=function(t,e){e=e.__edgeMap;return e[t]?e[t].length:0};function rA(t,e,n,i){var o=JD(e),r=F(o);if(!o)return null;var a=nA(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=iA(t,e);QD(e,u),t.lineStyle=t.lineStyle||{};var h=tA(t.node1,t.node2,e),t=e.__curvenessList,u=r||u%2?0:1;if(a.isForward)return t[u+s];h=eA(h),h=oA(h,e),e=t[s+h+u];return i?!r||o&&0===o[0]?(h+u)%2?e:-e:((h%2?0:1)+u)%2?e:-e:t[s+h+u]}var aA,Ec=(l(sA,aA=yy),sA.prototype.init=function(t){aA.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new vI(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},sA.prototype.mergeOption=function(t){aA.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},sA.prototype.mergeDefaultAndTheme=function(t){aA.prototype.mergeDefaultAndTheme.apply(this,arguments),Vu(t,"edgeLabel",["show"])},sA.prototype.getInitialData=function(t,e){var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n){JD(t=this)&&(t.__curvenessList=[],t.__edgeMap={},QD(t));n=KD(i,n,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=Hc.prototype.getModel;function i(t,e){e=n.call(this,t,e);return e.resolveParentPath=o,e}function o(t){if(!t||"label"!==t[0]&&"label"!==t[1])return t;var e=t.slice();return"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})});return R(n.edges,function(t){var e,n,i;e=t.node1,n=t.node2,i=this,t=t.dataIndex,JD(i)&&(e=tA(e,n,i),i=(n=i.__edgeMap)[eA(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}},sA.prototype.getGraph=function(){return this.getData().graph},sA.prototype.getEdgeData=function(){return this.getGraph().edgeData},sA.prototype.getCategoriesData=function(){return this._categoriesData},sA.prototype.formatTooltip=function(t,e,n){if("edge"!==n)return py({series:this,dataIndex:t,multipleSeries:e});var i=this.getData(),e=this.getDataParams(t,n),n=i.graph.getEdgeByIndex(t),t=i.getName(n.node1.dataIndex),i=i.getName(n.node2.dataIndex),n=[];return null!=t&&n.push(t),null!=i&&n.push(i),ey("nameValue",{name:n.join(" > "),value:e.value,noValue:null==e.value})},sA.prototype._updateCategoriesData=function(){var t=L(this.option.categories||[],function(t){return null!=t.value?t:N({value:0},t)}),e=new A_(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},sA.prototype.setZoom=function(t){this.option.zoom=t},sA.prototype.setCenter=function(t){this.option.center=t},sA.prototype.isAnimationEnabled=function(){return aA.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},sA.type="series.graph",sA.defaultOption={zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,focusNodeAdjacency:!1,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"}}},sA);function sA(){var t=null!==aA&&aA.apply(this,arguments)||this;return t.type=sA.type,t.hasSymbolVisual=!0,t}yy.registerClass(Ec);var lA,uA=ba.prototype,hA=Js.prototype,cA=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};l(pA,lA=cA);function pA(){return null!==lA&&lA.apply(this,arguments)||this}function dA(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var fA,gA=(l(yA,fA=Ir),yA.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},yA.prototype.getDefaultShape=function(){return new cA},yA.prototype.buildPath=function(t,e){(dA(e)?uA:hA).buildPath.call(this,t,e)},yA.prototype.pointAt=function(t){return(dA(this.shape)?uA:hA).pointAt.call(this,t)},yA.prototype.tangentAt=function(t){var e=this.shape,t=dA(e)?[e.x2-e.x1,e.y2-e.y1]:hA.tangentAt.call(this,t);return Ct(t,t)},yA);function yA(t){t=fA.call(this,t)||this;return t.type="ec-line",t}var mA=["fromSymbol","toSymbol"];function vA(t){return"_"+t+"Type"}function xA(t,e,n){var i=e.getItemVisual(n,t);if(i&&"none"!==i){var o=e.getItemVisual(n,t+"Size"),n=e.getItemVisual(n,t+"Rotate"),o=F(o)?o:[o,o],o=ow(i,-o[0]/2,-o[1]/2,o[0],o[1]);return o.__specifiedRotation=null==n||isNaN(n)?void 0:+n*Math.PI/180||0,o.name=t,o}}function _A(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)}var bA,wA=(l(SA,bA=qr),SA.prototype._createLine=function(n,i,t){var e,o=n.hostModel,r=n.getItemLayout(i),r=(e=r,_A((r=new gA({name:"line",subPixelOptimize:!0})).shape,e),r);r.shape.percent=0,Gp(r,{shape:{percent:1}},o,i),this.add(r),R(mA,function(t){var e=xA(t,n,i);this.add(e),this[vA(t)]=n.getItemVisual(i,t)},this),this._updateCommonStl(n,i,t)},SA.prototype.updateData=function(i,o,t){var e=i.hostModel,n=this.childOfName("line"),r=i.getItemLayout(o),a={shape:{}};_A(a.shape,r),Fp(n,a,e,o),R(mA,function(t){var e=i.getItemVisual(o,t),n=vA(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)},SA.prototype.getLinePath=function(){return this.childAt(0)},SA.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;e&&!n.hasItemOption||(o=(e=n.getItemModel(t)).getModel(["emphasis","lineStyle"]).getLineStyle(),a=e.getModel(["blur","lineStyle"]).getLineStyle(),s=e.getModel(["select","lineStyle"]).getLineStyle(),l=wc(e));var u=n.getItemVisual(t,"style"),h=u.stroke;r.useStyle(u),r.style.fill=null,r.style.strokeNoScale=!0,r.ensureState("emphasis").style=o,r.ensureState("blur").style=a,r.ensureState("select").style=s,R(mA,function(t){var e=this.childOfName(t);if(e){e.setColor(h),e.style.opacity=u.opacity;for(var n=0;n<Ch.length;n++){var i=Ch[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);s=i.getRawValue(t);bc(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,e){return i.getFormattedLabel(t,e,n.dataType)}},inheritColor:h||"#000",defaultText:(null==s?n.getName(t):isFinite(s)?yu(s):s)+""});s=this.getTextContent();s&&(l=l.normal,s.__align=s.style.align,s.__verticalAlign=s.style.verticalAlign,s.__position=l.get("position")||"middle",F(l=l.get("distance"))||(l=[l,l]),s.__labelDistance=l),this.setTextConfig({position:null,local:!0,inside:!1}),sc(this)},SA.prototype.highlight=function(){Jh(this)},SA.prototype.downplay=function(){Qh(this)},SA.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},SA.prototype.setLinePoints=function(t){var e=this.childOfName("line");_A(e.shape,t),e.dirty()},SA.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=St([],l,s);if(Ct(u,u),t&&(t.setPosition(s),g(t,0),h=r.tangentAt(0),t.rotation=Math.PI/2-Math.atan2(h[1],h[0]),t.scaleX=t.scaleY=i*a,t.markRedraw()),e&&(e.setPosition(l),h=r.tangentAt(1),g(e,1),e.rotation=-Math.PI/2-Math.atan2(h[1],h[0]),e.scaleX=e.scaleY=i*a,e.markRedraw()),n&&!n.ignore){n.x=n.y=0;var h,c=void(n.originX=n.originY=0),p=void 0,d=n.__labelDistance,t=d[0]*i,e=d[1]*i,d=a/2,a=[(h=r.tangentAt(d))[1],-h[0]],d=r.pointAt(d);0<a[1]&&(a[0]=-a[0],a[1]=-a[1]);a=h[0]<0?-1:1;"start"!==n.__position&&"end"!==n.__position&&(f=-Math.atan2(h[1],h[0]),l[0]<s[0]&&(f=Math.PI+f),n.rotation=f);var f=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":f=-e,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":f=e,p="top";break;default:f=0,p="middle"}switch(n.__position){case"end":n.x=u[0]*t+l[0],n.y=u[1]*e+l[1],c=.8<u[0]?"left":u[0]<-.8?"right":"center",p=.8<u[1]?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*t+s[0],n.y=-u[1]*e+s[1],c=.8<u[0]?"right":u[0]<-.8?"left":"center",p=.8<u[1]?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=t*a+s[0],n.y=s[1]+f,c=h[0]<0?"right":"left",n.originX=-t*a,n.originY=-f;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=d[0],n.y=d[1]+f,c="center",n.originY=-f;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-t*a+l[0],n.y=l[1]+f,c=0<=h[0]?"right":"left",n.originX=t*a,n.originY=-f}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||p,align:n.__align||c})}}}function g(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)}},SA);function SA(t,e,n){var i=bA.call(this)||this;return i._createLine(t,e,n),i}var MA=(IA.prototype.isPersistent=function(){return!0},IA.prototype.updateData=function(n){var i=this,e=this.group,o=this._lineData;this._lineData=n,o||e.removeAll();var r=TA(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()},IA.prototype.updateLayout=function(){var n=this._lineData;n&&n.eachItemGraphicEl(function(t,e){t.updateLayout(n,e)},this)},IA.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=TA(t),this._lineData=null,this.group.removeAll()},IA.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)}for(var i,o=t.start;o<t.end;o++){DA(e.getItemLayout(o))&&((i=new this._LineCtor(e,o,this._seriesScope)).traverse(n),this.group.add(i),e.setItemGraphicEl(o,i))}},IA.prototype.remove=function(){this.group.removeAll()},IA.prototype._doAdd=function(t,e,n){DA(t.getItemLayout(e))&&(n=new this._LineCtor(t,e,n),t.setItemGraphicEl(e,n),this.group.add(n))},IA.prototype._doUpdate=function(t,e,n,i,o){n=t.getItemGraphicEl(n);DA(e.getItemLayout(i))?(n?n.updateData(e,i,o):n=new this._LineCtor(e,i,o),e.setItemGraphicEl(i,n),this.group.add(n)):this.group.remove(n)},IA);function IA(t){this.group=new qr,this._LineCtor=t||wA}function TA(t){t=t.hostModel;return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:t.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:wc(t)}}function CA(t){return isNaN(t[0])||isNaN(t[1])}function DA(t){return!CA(t[0])&&!CA(t[1])}function AA(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,t=e.scaleX;return((e.getZoom()-1)*n+1)/t}function kA(t){t=t.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var LA=[],PA=[],NA=[],OA=Mo,RA=Lt,EA=Math.abs;function zA(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){LA[0]=OA(o[0],r[0],a[0],h),LA[1]=OA(o[1],r[1],a[1],h),(d=EA(RA(LA,e)-l))<s&&(s=d,i=h)}for(var c=0;c<32;c++){var p=i+u;PA[0]=OA(o[0],r[0],a[0],i),PA[1]=OA(o[1],r[1],a[1],i),NA[0]=OA(o[0],r[0],a[0],p),NA[1]=OA(o[1],r[1],a[1],p);var d=RA(PA,e)-l;if(EA(d)<.01)break;p=RA(NA,e)-l;u/=2,d<0?0<=p?i+=u:i-=u:0<=p?i-=u:i+=u}return i}function BA(t,l){var u=[],h=Co,c=[[],[],[]],p=[[],[]],d=[];l/=2,t.eachEdge(function(t,e){var n=t.getLayout(),i=t.getVisual("fromSymbol"),o=t.getVisual("toSymbol");n.__original||(n.__original=[xt(n[0]),xt(n[1])],n[2]&&n.__original.push(xt(n[2])));var r,a,s=n.__original;null!=n[2]?(vt(c[0],s[0]),vt(c[1],s[2]),vt(c[2],s[1]),i&&"none"!==i&&(a=kA(t.node1),r=zA(c,s[0],a*l),h(c[0][0],c[1][0],c[2][0],r,u),c[0][0]=u[3],c[1][0]=u[4],h(c[0][1],c[1][1],c[2][1],r,u),c[0][1]=u[3],c[1][1]=u[4]),o&&"none"!==o&&(a=kA(t.node2),r=zA(c,s[1],a*l),h(c[0][0],c[1][0],c[2][0],r,u),c[1][0]=u[1],c[2][0]=u[2],h(c[0][1],c[1][1],c[2][1],r,u),c[1][1]=u[1],c[2][1]=u[2]),vt(n[0],c[0]),vt(n[1],c[2]),vt(n[2],c[1])):(vt(p[0],s[0]),vt(p[1],s[1]),St(d,p[1],p[0]),Ct(d,d),i&&"none"!==i&&(a=kA(t.node1),wt(p[0],p[0],d,a*l)),o&&"none"!==o&&(a=kA(t.node2),wt(p[1],p[1],d,-a*l)),vt(n[0],p[0]),vt(n[1],p[1]))})}function VA(t){return"view"===t.type}var FA,g=(l(GA,FA=ky),GA.prototype.init=function(t,e){var n=new iS,i=new MA,o=this.group;this._controller=new DT(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},GA.prototype.render=function(t,e,n){var r=this,i=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;VA(i)&&(i={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},this._firstRender?s.attr(i):Fp(s,i,t)),BA(t.getGraph(),AA(t));var l=t.getData();o.updateData(l);o=t.getEdgeData();a.updateData(o),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var u=t.forceLayout,h=t.get(["force","layoutAnimation"]);u&&this._startForceLayoutIteration(u,h),l.graph.eachNode(function(t){var e=t.dataIndex,n=t.getGraphicEl(),i=t.getModel();n.off("drag").off("dragend");var o=i.get("draggable");o&&n.on("drag",function(){u&&(u.warmUp(),r._layouting||r._startForceLayoutIteration(u,h),u.setFixed(e),l.setItemLayout(e,[n.x,n.y]))}).on("dragend",function(){u&&u.setUnfixed(e)}),n.setDraggable(o&&!!u),"adjacency"===i.get(["emphasis","focus"])&&(_h(n).focus=t.getAdjacentDataIndices())}),l.graph.eachEdge(function(t){var e=t.getGraphicEl();"adjacency"===t.getModel().get(["emphasis","focus"])&&(_h(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})});var c="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),p=l.getLayout("cx"),d=l.getLayout("cy");l.eachItemGraphicEl(function(t,e){var n=l.getItemModel(e).get(["label","rotate"])||0,i=t.getSymbolPath();c?(t=l.getItemLayout(e),(e=Math.atan2(t[1]-d,t[0]-p))<0&&(e=2*Math.PI+e),(t=t[0]<p)&&(e-=Math.PI),t=t?"left":"right",i.setTextConfig({rotation:-e,position:t,origin:"center"}),N((e=i.ensureState("emphasis")).textConfig||(e.textConfig={}),{position:t})):i.setTextConfig({rotation:n*=Math.PI/180})}),this._firstRender=!1},GA.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},GA.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())})}()},GA.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)&&!ET(t,r,o)}),VA(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){NT(i,t.dx,t.dy),r.dispatchAction({seriesId:o.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){OT(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(),BA(o.getGraph(),AA(o)),e._lineDraw.updateLayout(),r.updateLabelLayout()})):n.disable()},GA.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=AA(t);e.eachItemGraphicEl(function(t,e){t.setSymbolScale(n)})},GA.prototype.updateLayout=function(t){BA(t.getGraph(),AA(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},GA.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},GA.type="graph",GA);function GA(){var t=null!==FA&&FA.apply(this,arguments)||this;return t.type=GA.type,t}ky.registerClass(g),Yx({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),Yx({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){});function HA(t){return t instanceof Array||(t=[t,t]),t}function WA(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")])}),XA(e,t))}function XA(t,r){t.eachEdge(function(t,e){var n=et(t.getModel().get(["lineStyle","curveness"]),-rA(t,r,e,!0),0),i=xt(t.node1.getLayout()),o=xt(t.node2.getLayout()),e=[i,o];+n&&e.push([(i[0]+o[0])/2-(i[1]-o[1])*n,(i[1]+o[1])/2-(o[0]-i[0])*n]),t.setLayout(e)})}Yx({type:"graphRoam",event:"graphRoam",update:"none"},function(n,t){t.eachComponent({mainType:"series",query:n},function(t){var e=HT(t.coordinateSystem,n);t.setCenter&&t.setCenter(e.center),t.setZoom&&t.setZoom(e.zoom)})});var YA=Math.PI,UA=[];function ZA(s,t){var e,n,l,u,i,o=s.coordinateSystem;o&&"view"!==o.type||(i=o.getBoundingRect(),n=(e=s.getData()).graph,l=i.width/2+i.x,u=i.height/2+i.y,o=Math.min(i.width,i.height)/2,i=e.count(),e.setLayout({cx:l,cy:u}),i&&(qA[t](s,n,e,o,l,u,i),n.eachEdge(function(t,e){var n,i=et(t.getModel().get(["lineStyle","curveness"]),rA(t,s,e),0),o=xt(t.node1.getLayout()),r=xt(t.node2.getLayout()),a=(o[0]+r[0])/2,e=(o[1]+r[1])/2;+i&&(n=[l*(i*=3)+a*(1-i),u*i+e*(1-i)]),t.setLayout([o,r,n])})))}var qA={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;UA.length=a;var l=AA(t);e.eachNode(function(t){var e=kA(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=l;e=Math.asin(e/2/i);isNaN(e)&&(e=YA/2),UA[t.dataIndex]=e,s+=2*e});var u=(2*YA-s)/a/2,h=0;e.eachNode(function(t){var e=u+UA[t.dataIndex];h+=e,t.setLayout([i*Math.cos(h)+o,i*Math.sin(h)+r]),h+=e})}};var jA=wt;Xx(function(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){"number"==typeof e&&(e=o[e]);for(var n=0;n<r.length;n++)if(!r[n].isSelected(e))return!1}return!0})})}),qx(function(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);u["ec-"+e]=t;var n=l.getItemModel(t),i=n.getModel("itemStyle").getItemStyle();i.fill||(i.fill=s.getColorFromPalette(e,h)),l.setItemVisual(t,"style",i);for(var o=["symbol","symbolSize","symbolKeepAspect"],r=0;r<o.length;r++){var a=n.getShallow(o[r],!0);null!=a&&l.setItemVisual(t,o[r],a)}}),l.count()&&r.each(function(t){var e=r.getItemModel(t).getShallow("category");if(null!=e){"string"==typeof e&&(e=u["ec-"+e]);var n=l.getItemVisual(e,"style");N(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]))}})})}),qx(function(t){t.eachSeriesByType("graph",function(t){var a=t.getGraph(),s=t.getEdgeData(),e=HA(t.get("edgeSymbol")),n=HA(t.get("edgeSymbolSize"));s.setVisual("fromSymbol",e&&e[0]),s.setVisual("toSymbol",e&&e[1]),s.setVisual("fromSymbolSize",n&&n[0]),s.setVisual("toSymbolSize",n&&n[1]),s.setVisual("style",t.getModel("lineStyle").getLineStyle()),s.each(function(t){var e=s.getItemModel(t),n=a.getEdgeByIndex(t),i=HA(e.getShallow("symbol",!0)),o=HA(e.getShallow("symbolSize",!0)),e=e.getModel("lineStyle").getLineStyle(),t=s.ensureUniqueItemVisual(t,"style");switch(N(t,e),t.stroke){case"source":var r=n.node1.getVisual("style");t.stroke=r&&r.fill;break;case"target":r=n.node2.getVisual("style");t.stroke=r&&r.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])})})}),Zx(function(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=[];R(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])}XA(i.graph,t)}else e&&"none"!==e||WA(t)})}),Zx(Vd.VISUAL.POST_CHART_LAYOUT,function(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&ZA(t,"symbolSize")})}),Zx(function(t){t.eachSeriesByType("graph",function(o){var h,c,p,i,r,t,e,a,s,l,n,u,d=o.coordinateSystem;d&&"view"!==d.type||("force"===o.get("layout")?(h=o.preservedPoints||{},c=o.getGraph(),p=c.data,n=c.edgeData,e=(u=o.getModel("force")).get("initLayout"),o.preservedPoints?p.each(function(t){var e=p.getId(t);p.setItemLayout(t,h[e]||[NaN,NaN])}):e&&"none"!==e?"circular"===e&&ZA(o,"value"):WA(o),i=p.getDataExtent("value"),r=n.getDataExtent("value"),t=u.get("repulsion"),e=u.get("edgeLength"),a=F(t)?t:[t,t],s=[(s=F(e)?e:[e,e])[1],s[0]],l=p.mapArray("value",function(t,e){var n=p.getItemLayout(e),t=fu(t,i,a);return isNaN(t)&&(t=(a[0]+a[1])/2),{w:t,rep:t,fixed:p.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),n=n.mapArray("value",function(t,e){var n=c.getEdgeByIndex(e),i=fu(t,r,s);isNaN(i)&&(i=(s[0]+s[1])/2);t=n.getModel(),e=et(n.getModel().get(["lineStyle","curveness"]),-rA(n,o,e,!0),0);return{n1:l[n.node1.dataIndex],n2:l[n.node2.dataIndex],d:i,curveness:e,ignoreForceLayout:t.get("ignoreForceLayout")}}),d=d.getBoundingRect(),(u=function(t,e,n){for(var d=t,f=e,i=(e=n.rect).width,o=e.height,g=[e.x+i/2,e.y+o/2],y=null==n.gravity?.1:n.gravity,r=0;r<d.length;r++){var a=d[r];a.p||(a.p=mt(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=f[i];o.ignoreForceLayout||(s=o.n1,St(e,(r=o.n2).p,s.p),a=Mt(e)-o.d,o=r.w/(s.w+r.w),isNaN(o)&&(o=0),Ct(e,e),s.fixed||jA(s.p,s.p,e,o*a*x),r.fixed||jA(r.p,r.p,e,-(1-o)*a*x))}for(i=0;i<n;i++){(h=d[i]).fixed||(St(e,g,h.p),jA(h.p,h.p,e,y*x))}for(i=0;i<n;i++)for(var r,a,s=d[i],l=i+1;l<n;l++){St(e,(r=d[l]).p,s.p),0===(a=Mt(e))&&(_t(e,Math.random()-.5,Math.random()-.5),a=1);var u=(s.rep+r.rep)/a/a;s.fixed||jA(s.pp,s.pp,e,u),r.fixed||jA(r.pp,r.pp,e,-u)}for(var h,c=[],i=0;i<n;i++){(h=d[i]).fixed||(St(c,h.p,h.pp),jA(h.p,h.p,c,x),vt(h.pp,h.p))}var p=(x*=.992)<.01;v&&v(d,f,p),t&&t(p)}}}(l,n,{rect:d,gravity:u.get("gravity"),friction:u.get("friction")})).beforeStep(function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].fixed&&vt(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]||[],vt(u[0],s),vt(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)})}),Ux("graphView",{dimensions:YT.dimensions,create:function(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||(n=[],r=[],zo((e=t.getData()).mapArray(function(t){t=e.getItemModel(t);return[+t.get("x"),+t.get("y")]}),n,r),r[0]-n[0]==0&&(r[0]+=1,--n[0]),r[1]-n[1]==0&&(r[1]+=1,--n[1]),o=(r[0]-n[0])/(r[1]-n[1]),a=u,s=o,i=Id(N(t.getBoxLayoutParams(),{aspect:s}),{width:a.getWidth(),height:a.getHeight()}),isNaN(o)&&(n=[i.x,i.y],r=[i.x+i.width,i.y+i.height]),l=r[0]-n[0],s=r[1]-n[1],a=i.width,o=i.height,(r=t.coordinateSystem=new YT).zoomLimit=t.get("scaleLimit"),r.setBoundingRect(n[0],n[1],l,s),r.setViewRect(i.x,i.y,a,o),r.setCenter(t.get("center")),r.setZoom(t.get("zoom")),h.push(r))}),h}});var KA,Ec=(l($A,KA=yy),$A.prototype.getInitialData=function(t,e){return mI(this,["value"])},$A.type="series.gauge",$A.defaultOption={zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,lineStyle:{color:[[.2,"#91c7ae"],[.8,"#63869e"],[1,"#c23531"]],width:30}},splitLine:{show:!0,length:30,lineStyle:{color:"#eee",width:2,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:8,lineStyle:{color:"#eee",width:1,type:"solid"}},axisLabel:{show:!0,distance:5,color:"auto"},pointer:{show:!0,length:"80%",width:8},itemStyle:{color:"auto"},title:{show:!0,offsetCenter:[0,"-40%"],color:"#333",fontSize:15},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"auto",fontSize:30}},$A);function $A(){var t=null!==KA&&KA.apply(this,arguments)||this;return t.type=$A.type,t}yy.registerClass(Ec);var JA,QA=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},tk=(l(ek,JA=Ir),ek.prototype.getDefaultShape=function(){return new QA},ek.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)},ek);function ek(t){t=JA.call(this,t)||this;return t.type="pointer",t}function nk(t,e){var n=null==t?"":t+"";return e&&("string"==typeof e?n=e.replace("{value}",n):"function"==typeof e&&(n=e(t))),n}var ik,ok=2*Math.PI,g=(l(rk,ik=ky),rk.prototype.render=function(t,e,n){this.group.removeAll();var i,o,r,a,s,l=t.get(["axisLine","lineStyle","color"]),s=(o=n,r=(i=t).get("center"),a=o.getWidth(),s=o.getHeight(),s=Math.min(a,s),{cx:gu(r[0],o.getWidth()),cy:gu(r[1],o.getHeight()),r:gu(i.get("radius"),s/2)});this._renderMain(t,e,n,l,s)},rk.prototype.dispose=function(){},rk.prototype._renderMain=function(t,e,n,i,o){for(var r=this.group,a=t.getModel("axisLine"),s=a.getModel("lineStyle"),l=t.get("clockwise"),u=-t.get("startAngle")/180*Math.PI,h=((g=-t.get("endAngle")/180*Math.PI)-u)%ok,c=u,p=s.get("width"),d=a.get("show"),f=0;d&&f<i.length;f++){var g,y=Math.min(Math.max(i[f][0],0),1),y=new zl({shape:{startAngle:c,endAngle:g=u+h*y,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-p,r:o.r},silent:!0});y.setStyle({fill:i[f][1]}),y.setStyle(s.getLineStyle(["color","width"])),r.add(y),c=g}function m(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]}l||(a=u,u=g,g=a),this._renderTicks(t,e,n,m,o,u,g,l),this._renderPointer(t,e,n,m,o,u,g,l),this._renderTitle(t,e,n,m,o),this._renderDetail(t,e,n,m,o)},rk.prototype._renderTicks=function(t,e,n,i,o,r,a,s){for(var l=this.group,u=o.cx,h=o.cy,c=o.r,p=+t.get("min"),d=+t.get("max"),f=t.getModel("splitLine"),g=t.getModel("axisTick"),y=t.getModel("axisLabel"),m=t.get("splitNumber"),v=g.get("splitNumber"),x=gu(f.get("length"),c),_=gu(g.get("length"),c),b=r,w=(a-r)/m,S=w/v,M=f.getModel("lineStyle").getLineStyle(),I=g.getModel("lineStyle").getLineStyle(),T=0;T<=m;T++){var C,D,A,k=Math.cos(b),L=Math.sin(b);if(f.get("show")&&(A=new ba({shape:{x1:k*c+u,y1:L*c+h,x2:k*(c-x)+u,y2:L*(c-x)+h},style:M,silent:!0}),"auto"===M.stroke&&A.setStyle({stroke:i(T/m)}),l.add(A)),y.get("show")&&(C=nk(yu(T/m*(d-p)+p),y.get("formatter")),D=y.get("distance"),A=i(T/m),l.add(new Rs({style:Sc(y,{text:C,x:k*(c-x-D)+u,y:L*(c-x-D)+h,verticalAlign:L<-.4?"top":.4<L?"bottom":"middle",align:k<-.4?"left":.4<k?"right":"center"},{inheritColor:A}),silent:!0}))),g.get("show")&&T!==m){for(var P=0;P<=v;P++){k=Math.cos(b),L=Math.sin(b);var N=new ba({shape:{x1:k*c+u,y1:L*c+h,x2:k*(c-_)+u,y2:L*(c-_)+h},silent:!0,style:I});"auto"===I.stroke&&N.setStyle({stroke:i((T+P/v)/m)}),l.add(N),b+=S}b-=S}else b+=w}},rk.prototype._renderPointer=function(n,t,e,r,a,i,o,s){var l,u,h,c,p=this.group,d=this._data;n.get(["pointer","show"])?(l=[+n.get("min"),+n.get("max")],u=[i,o],h=n.getData(),c=h.mapDimension("value"),h.diff(d).add(function(t){var e=new tk({shape:{angle:i}});Gp(e,{shape:{angle:fu(h.get(c,t),l,u,!0)}},n),p.add(e),h.setItemGraphicEl(t,e)}).update(function(t,e){e=d.getItemGraphicEl(e);Fp(e,{shape:{angle:fu(h.get(c,t),l,u,!0)}},n),p.add(e),h.setItemGraphicEl(t,e)}).remove(function(t){t=d.getItemGraphicEl(t);p.remove(t)}).execute(),h.eachItemGraphicEl(function(t,e){var n=h.getItemModel(e),i=n.getModel("pointer"),o=n.getModel("emphasis");t.setShape({x:a.cx,y:a.cy,width:gu(i.get("width"),a.r),r:gu(i.get("length"),a.r)}),t.useStyle(n.getModel("itemStyle").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",r(fu(h.get(c,e),l,[0,1],!0))),cc(t,n),sc(t,o.get("focus"),o.get("blurScope"))}),this._data=h):d&&d.eachItemGraphicEl(function(t){p.remove(t)})},rk.prototype._renderTitle=function(t,e,n,i,o){var r,a,s,l=t.getData(),u=l.mapDimension("value"),h=t.getModel("title");h.get("show")&&(s=h.get("offsetCenter"),r=o.cx+gu(s[0],o.r),a=o.cy+gu(s[1],o.r),s=+t.get("min"),o=+t.get("max"),o=i(fu(t.getData().get(u,0),[s,o],[0,1],!0)),this.group.add(new Rs({silent:!0,style:Sc(h,{x:r,y:a,text:l.getName(0),align:"center",verticalAlign:"middle"},{inheritColor:o})})))},rk.prototype._renderDetail=function(t,e,n,i,o){var r,a,s,l=t.getModel("detail"),u=+t.get("min"),h=+t.get("max");l.get("show")&&(s=l.get("offsetCenter"),r=o.cx+gu(s[0],o.r),a=o.cy+gu(s[1],o.r),s=gu(l.get("width"),o.r),o=gu(l.get("height"),o.r),h=i(fu(t=(t=t.getData()).get(t.mapDimension("value"),0),[u,h],[0,1],!0)),this.group.add(new Rs({silent:!0,style:Sc(l,{x:r,y:a,text:nk(t,l.get("formatter")),width:isNaN(s)?null:s,height:isNaN(o)?null:o,align:"center",verticalAlign:"middle"},{inheritColor:h})})))},rk.type="gauge",rk);function rk(){var t=null!==ik&&ik.apply(this,arguments)||this;return t.type=rk.type,t}ky.registerClass(g);var ak,Ec=(l(sk,ak=yy),sk.prototype.init=function(t){ak.prototype.init.apply(this,arguments),this.legendVisualProvider=new vI(B(this.getData,this),B(this.getRawData,this)),this._defaultLabelLine(t)},sk.prototype.getInitialData=function(t,e){return mI(this,{coordDimensions:["value"],encodeDefaulter:V(of,this)})},sk.prototype._defaultLabelLine=function(t){Vu(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},sk.prototype.getDataParams=function(t){var e=this.getData(),n=ak.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},sk.type="series.funnel",sk.defaultOption={zlevel:0,z:2,legendHoverLink:!0,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"}}},sk);function sk(){var t=null!==ak&&ak.apply(this,arguments)||this;return t.type=sk.type,t.useColorPaletteOnData=!0,t}Ed.registerClass(Ec);var lk,uk=["itemStyle","opacity"],hk=(l(ck,lk=Ca),ck.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(uk))?1:s;this.useStyle(t.getItemVisual(e,"style")),this.style.lineJoin="round",n?(this.setShape({points:r.points}),this.style.opacity=0,Gp(this,{style:{opacity:s}},i,e)):Fp(this,{style:{opacity:s},shape:{points:r.points}},i,e),cc(this,o),this._updateLabel(t,e),sc(this,a.get("focus"),a.get("blurScope"))},ck.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").fill;bc(i,wc(r),{labelFetcher:t.hostModel,labelDataIndex:e,defaultText:t.getName(e)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),this.setTextConfig({local:!0,inside:!!a.inside,insideStroke:s,outsideFill:s});t=a.linePoints;n.setShape({points:t}),this.textGuideLineConfig={anchor:t?new fi(t[0][0],t[0][1]):null},Fp(i,{style:{x:a.x,y:a.y}},o,e),i.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),Wm(this,Xm(r),{stroke:s})},ck);function ck(t,e){var n=lk.call(this)||this,i=n,o=new La,r=new Rs;return i.setTextContent(r),n.setTextGuideLine(o),n.updateData(t,e,!0),n}var pk,g=(l(dk,pk=ky),dk.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 hk(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){Xp(o.getItemGraphicEl(t),e,t)}).execute(),this._data=i},dk.prototype.remove=function(){this.group.removeAll(),this._data=null},dk.prototype.dispose=function(){},dk.type="funnel",dk);function dk(){var t=null!==pk&&pk.apply(this,arguments)||this;return t.type=dk.type,t.ignoreLabelLineUpdate=!0,t}ky.registerClass(g),Zx(function(t,C){t.eachSeriesByType("funnel",function(t){var r=t.getData(),a=r.mapDimension("value"),e=t.get("sort"),n=(n=C,Id(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})),s=t.get("orient"),l=n.width,u=n.height,i=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"function"==typeof e?o.sort(e):"none"!==e&&o.sort(function(t,e){return r?i[t]-i[e]:i[e]-i[t]}),o}(r,e),h=n.x,c=n.y,p="horizontal"===s?[gu(t.get("minSize"),u),gu(t.get("maxSize"),u)]:[gu(t.get("minSize"),l),gu(t.get("maxSize"),l)],n=r.getDataExtent(a),d=t.get("min"),f=t.get("max");null==d&&(d=Math.min(n[0],0)),null==f&&(f=n[1]);function o(t,e){if("horizontal"===s){var n=fu(r.get(a,t)||0,[d,f],p,!0),i=void 0;switch(g){case"top":i=c;break;case"center":i=c+(u-n)/2;break;case"bottom":i=c+(u-n)}return[[e,i],[e,i+n]]}var o,t=fu(r.get(a,t)||0,[d,f],p,!0);switch(g){case"left":o=h;break;case"center":o=h+(l-t)/2;break;case"right":o=h+l-t}return[[o,e],[o+t,e]]}var g=t.get("funnelAlign"),y=t.get("gap"),m=(("horizontal"===s?l:u)-y*(r.count()-1))/r.count();"ascending"===e&&(m=-m,y=-y,"horizontal"===s?h+=l:c+=u,i=i.reverse());for(var v,x,_=0;_<i.length;_++){var b,w,S,M=i[_],I=i[_+1],T=r.getItemModel(M);"horizontal"===s?(null==(b=T.get(["itemStyle","width"]))?b=m:(b=gu(b,l),"ascending"===e&&(b=-b)),w=o(M,h),S=o(I,h+b),h+=b+y):(null==(T=T.get(["itemStyle","height"]))?T=m:(T=gu(T,u),"ascending"===e&&(T=-T)),w=o(M,c),S=o(I,c+T),c+=T+y),r.setItemLayout(M,{points:w.concat(S.slice().reverse())})}x=(v=r).hostModel.get("orient"),v.each(function(t){var e,n,i,o,r=v.getItemModel(t),a=r.getModel("label").get("position"),s=r.getModel("labelLine"),l=v.getItemLayout(t),u=l.points,h="inner"===a||"inside"===a||"center"===a||"insideLeft"===a||"insideRight"===a,c=h?(e="insideLeft"===a?(n=(u[0][0]+u[3][0])/2+5,i=(u[0][1]+u[3][1])/2,"left"):"insideRight"===a?(n=(u[1][0]+u[2][0])/2-5,i=(u[1][1]+u[2][1])/2,"right"):(n=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,i=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,"center"),[[n,i],[n,i]]):(c=t=r=o=void 0,s=s.get("length"),e="left"===a?(o=(u[3][0]+u[0][0])/2,r=(u[3][1]+u[0][1])/2,n=(t=o-s)-5,"right"):"right"===a?(o=(u[1][0]+u[2][0])/2,r=(u[1][1]+u[2][1])/2,n=(t=o+s)+5,"left"):"top"===a?(o=(u[3][0]+u[0][0])/2,i=(c=(r=(u[3][1]+u[0][1])/2)-s)-5,"center"):"bottom"===a?(o=(u[1][0]+u[2][0])/2,i=(c=(r=(u[1][1]+u[2][1])/2)+s)+5,"center"):"rightTop"===a?(o=("horizontal"===x?u[3]:u[1])[0],r=("horizontal"===x?u[3]:u[1])[1],"horizontal"===x?(i=(c=r-s)-5,"center"):(n=(t=o+s)+5,"top")):"rightBottom"===a?(o=u[2][0],r=u[2][1],"horizontal"===x?(i=(c=r+s)+5,"center"):(n=(t=o+s)+5,"bottom")):"leftTop"===a?(o=u[0][0],r=("horizontal"===x?u[0]:u[1])[1],"horizontal"===x?(i=(c=r-s)-5,"center"):(n=(t=o-s)-5,"right")):"leftBottom"===a?(o=("horizontal"===x?u[1]:u[3])[0],r=("horizontal"===x?u[1]:u[2])[1],"horizontal"===x?(i=(c=r+s)+5,"center"):(n=(t=o-s)-5,"right")):(o=(u[1][0]+u[2][0])/2,r=(u[1][1]+u[2][1])/2,"horizontal"===x?(i=(c=r+s)+5,"center"):(n=(t=o+s)+5,"left")),"horizontal"===x?n=t=o:i=c=r,[[o,r],[t,c]]);l.label={linePoints:c,x:n,y:i,verticalAlign:"middle",textAlign:e,inside:h}})})}),Xx(OI("funnel"));var fk,gk=(l(yk,fk=Bc),yk.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},yk);function yk(t,e,n,i,o){n=fk.call(this,t,e,n)||this;return n.type=i||"value",n.axisIndex=o,n}function mk(t,e,n,i,o,r){t=t||0;var a=n[1]-n[0];null!=o&&(o=xk(o,[0,a])),null!=r&&(r=Math.max(r,null!=o?o:0)),"all"===i&&(s=xk(s=Math.abs(e[1]-e[0]),[0,a]),o=r=xk(s,[o,r]),i=0),e[0]=xk(e[0],n),e[1]=xk(e[1],n);var s=vk(e,i);e[i]+=t;t=o||0,n=n.slice();return s.sign<0?n[0]+=t:n[1]-=t,e[i]=xk(e[i],n),n=vk(e,i),null!=o&&(n.sign!==s.sign||n.span<o)&&(e[1-i]=e[i]+s.sign*o),n=vk(e,i),null!=r&&n.span>r&&(e[1-i]=e[i]+n.sign*r),e}function vk(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0<t||!(t<0)&&e?-1:1}}function xk(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var _k=R,bk=Math.min,wk=Math.max,Sk=Math.floor,Mk=Math.ceil,Ik=yu,Tk=Math.PI,Ck=(Dk.prototype._init=function(t,i,e){var n=t.dimensions,o=t.parallelAxisIndex;_k(n,function(t,e){var n=o[e],e=i.getComponent("parallelAxis",n),t=this._axesMap.set(t,new gk(t,Xb(e),[0,0],e.get("type"),n)),n="category"===t.type;t.onBand=n&&e.get("boundaryGap"),t.inverse=e.get("inverse"),(e.axis=t).model=e,t.coordinateSystem=e.coordinateSystem=this},this)},Dk.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},Dk.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,o=e.pixelDimIndex,r=t[1-o],o=t[o];return n<=r&&r<=n+e.axisLength&&i<=o&&o<=i+e.layoutLength},Dk.prototype.getModel=function(){return this._model},Dk.prototype._updateAxesFromSeries=function(e,i){i.eachSeries(function(t){var n;e.contains(t,i)&&(n=t.getData(),_k(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),Wb(e.scale,e.model)},this))},this)},Dk.prototype.resize=function(t,e){this._rect=Id(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},Dk.prototype.getRect=function(){return this._rect},Dk.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=Ak(t.get("axisExpandWidth"),s),h=Ak(t.get("axisExpandCount")||0,[0,l]),c=t.get("axisExpandable")&&3<l&&h<l&&1<h&&0<u&&0<a,p=t.get("axisExpandWindow");p?(d=Ak(p[1]-p[0],s),p[1]=p[0]+d):(d=Ak(u*(h-1),s),(p=[u*(t.get("axisExpandCenter")||Sk(l/2))-d/2])[1]=p[0]+d);t=(a-d)/(l-h);t<3&&(t=0);var d=[Sk(Ik(p[0]/u,1))+1,Mk(Ik(p[1]/u,1))-1],h=t/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:t,axisExpandWindow:p,axisCount:l,winInnerIndices:d,axisExpandWindow0Pos:h}},Dk.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])}),_k(e,function(t,e){var n=(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;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);return{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),i={horizontal:{x:n.position,y:a.axisLength},vertical:{x:0,y:n.position}},o={horizontal:Tk/2,vertical:0},e=[i[s].x+r.x,i[s].y+r.y],i=o[s],o=Kn();ei(o,o,i),ti(o,o,e),this._axesLayout[t]={position:e,rotation:i,transform:o,axisNameAvailableWidth:n.axisNameAvailableWidth,axisLabelShow:n.axisLabelShow,nameTruncateMaxWidth:n.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},Dk.prototype.getAxis=function(t){return this._axesMap.get(t)},Dk.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},Dk.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=[];R(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){h="active";for(var 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)}},Dk.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},Dk.prototype.axisCoordToPoint=function(t,e){return Kp([t,0],this._axesLayout[e].transform)},Dk.prototype.getAxisLayout=function(t){return C(this._axesLayout[t])},Dk.prototype.getSlidedAxisExpandWindow=function(t){var e=this._makeLayoutInfo(),n=e.pixelDimIndex,i=e.axisExpandWindow.slice(),o=i[1]-i[0],r=[0,e.axisExpandWidth*(e.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var a,s=t[n]-e.layoutBase-e.axisExpandWindow0Pos,l="slide",u=e.axisCollapseWidth,t=this._model.get("axisExpandSlideTriggerArea"),n=null!=t[0];return u?(n&&u&&s<o*t[0]?(l="jump",a=s-o*t[2]):n&&u&&s>o*(1-t[0])?(l="jump",a=s-o*(1-t[2])):0<=(a=s-o*t[1])&&(a=s-o*(1-t[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?mk(a,i,r,"all"):l="none"):(a=i[1]-i[0],(i=[wk(0,r[1]*s/a-a/2)])[1]=bk(r[1],i[0]+a),i[0]=i[1]-a),{axisExpandWindow:i,behavior:l}},Dk);function Dk(t,e,n){this.type="parallel",this._axesMap=ct(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}function Ak(t,e){return bk(wk(t,e[0]),e[1])}bf.register("parallel",{create:function(i,o){var r=[];return i.eachComponent("parallel",function(t,e){var n=new Ck(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",th).models[0],t.coordinateSystem=e.coordinateSystem)}),r}});var kk,Ec=(l(Lk,kk=Ed),Lk.prototype.getAreaSelectStyle=function(){return yh([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},Lk.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=C(t);if(e)for(var n=e.length-1;0<=n;n--)mu(e[n])},Lk.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";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"},Lk);function Lk(){var t=null!==kk&&kk.apply(this,arguments)||this;return t.type=Lk.type,t.activeIntervals=[],t}Ed.registerClass(Ec),T(Ec,Jb),HS("parallel",Ec,{type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10});var Pk,g=(l(Nk,Pk=Ed),Nk.prototype.init=function(){Pk.prototype.init.apply(this,arguments),this.mergeOption({})},Nk.prototype.mergeOption=function(t){var e=this.option;t&&w(e,t,!0),this._initDimensions()},Nk.prototype.contains=function(t,e){t=t.get("parallelIndex");return null!=t&&e.getComponent("parallel",t)===this},Nk.prototype.setAxisExpand=function(e){R(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},Nk.prototype._initDimensions=function(){var e=this.dimensions=[],n=this.parallelAxisIndex=[];R(O(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)})},Nk.type="parallel",Nk.dependencies=["parallelAxis"],Nk.layoutMode="box",Nk.defaultOption={zlevel:0,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},Nk);function Nk(){var t=null!==Pk&&Pk.apply(this,arguments)||this;return t.type=Nk.type,t}Ed.registerClass(g);Yx({type:"axisAreaSelect",event:"axisAreaSelected"},function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(t){t.axis.model.setActiveIntervals(e.intervals)})}),Yx("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(t){t.setAxisExpand(e)})});var Ok,Rk=!0,Ek=Math.min,zk=Math.max,Bk=Math.pow,Vk=1e4,Fk=6,Gk=6,Hk="globalPan",Wk={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},Xk={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},Yk={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},Uk=0,Zk=(l(qk,Ok=Ft),qk.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},qk.prototype._doEnableBrush=function(t){var e,n,i,o=this._zr;this._enableGlobalPan||(e=o,n=Hk,i=this._uid,TT(e)[n]=i),R(this._handlers,function(t,e){o.on(e,t)}),this._brushType=t.brushType,this._brushOption=w(C(Yk),t,!0)},qk.prototype._doDisableBrush=function(){var t,e,n,i=this._zr;t=i,e=Hk,n=this._uid,(t=TT(t))[e]===n&&(t[e]=null),R(this._handlers,function(t,e){i.off(e,t)}),this._brushType=this._brushOption=null},qk.prototype.setPanels=function(t){var e;return t&&t.length?(e=this._panels={},R(t,function(t){e[t.panelId]=C(t)})):this._panels=null,this},qk.prototype.mount=function(t){t=t||{},this._enableGlobalPan=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},qk.prototype.updateCovers=function(i){i=L(i,function(t){return w(C(Yk),t,!0)});var n="\0-brush-index-",o=this._covers,r=this._covers=[],a=this,s=this._creatingCover;return new t_(o,i,function(t,e){return l(t.__brushOption,e)},l).add(t).update(t).remove(function(t){o[t]!==s&&a.group.remove(o[t])}).execute(),this;function l(t,e){return(null!=t.id?t.id:n+e)+"-"+t.brushType}function t(t,e){var n=i[t];null!=e&&o[e]===s?r[t]=o[e]:(n=r[t]=null!=e?(o[e].__brushOption=n,o[e]):Kk(a,jk(a,n)),Qk(a,n))}},qk.prototype.unmount=function(){return this.enableBrush(!1),iL(this),this._zr.remove(this.group),this},qk.prototype.dispose=function(){this.unmount(),this.off()},qk);function qk(t){var e=Ok.call(this)||this;return e._track=[],e._covers=[],e._handlers={},e._zr=t,e.group=new qr,e._uid="brushController_"+Uk++,R(wL,function(t,e){this._handlers[e]=B(t,this)},e),e}function jk(t,e){var n=ML[e.brushType].createCover(t,e);return n.__brushOption=e,Jk(n,e),t.group.add(n),n}function Kk(t,e){var n=tL(e);return n.endCreating&&(n.endCreating(t,e),Jk(e,e.__brushOption)),e}function $k(t,e){var n=e.__brushOption;tL(e).updateCoverShape(t,e,n.range,n)}function Jk(t,e){var n=e.z;null==n&&(n=Vk),t.traverse(function(t){t.z=n,t.z2=n})}function Qk(t,e){tL(e).updateCommon(t,e),$k(t,e)}function tL(t){return ML[t.__brushOption.brushType]}function eL(t,e,n){var i,o=t._panels;if(!o)return Rk;var r=t._transform;return R(o,function(t){t.isTargetByCursor(e,n,r)&&(i=t)}),i}function nL(t,e){t=t._panels;if(!t)return Rk;e=e.__brushOption.panelId;return null!=e?t[e]:Rk}function iL(e){var t=e._covers,n=t.length;return R(t,function(t){e.group.remove(t)},e),t.length=0,n}function oL(t,e){var n=L(t._covers,function(t){var e=t.__brushOption,t=C(e.range);return{brushType:e.brushType,panelId:e.panelId,range:t}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function rL(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function aL(e,n,t,i){var o=new qr;return o.add(new pa({name:"main",style:hL(t),silent:!0,draggable:!0,cursor:"move",drift:V(dL,e,n,o,["n","s","w","e"]),ondragend:V(oL,n,{isEnd:!0})})),R(i,function(t){o.add(new pa({name:t.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:V(dL,e,n,o,t),ondragend:V(oL,n,{isEnd:!0})}))}),o}function sL(t,e,n,i){var o=i.brushStyle.lineWidth||0,r=zk(o,Gk),a=n[0][0],s=n[1][0],l=a-o/2,u=s-o/2,h=n[0][1],c=n[1][1],p=h-r+o/2,d=c-r+o/2,n=h-a,h=c-s,c=n+o,o=h+o;uL(t,e,"main",a,s,n,h),i.transformable&&(uL(t,e,"w",l,u,r,o),uL(t,e,"e",p,u,r,o),uL(t,e,"n",l,u,c,r),uL(t,e,"s",l,d,c,r),uL(t,e,"nw",l,u,r,r),uL(t,e,"ne",p,u,r,r),uL(t,e,"sw",l,d,r,r),uL(t,e,"se",p,d,r,r))}function lL(n,i){var t=i.__brushOption,o=t.transformable,e=i.childAt(0);e.useStyle(hL(t)),e.attr({silent:!o,cursor:o?"move":"default"}),R([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(t){var e=i.childOfName(t.join("")),t=1===t.length?pL(n,t[0]):function(t,e){e=[pL(t,e[0]),pL(t,e[1])];return"e"!==e[0]&&"w"!==e[0]||e.reverse(),e.join("")}(n,t);e&&e.attr({silent:!o,invisible:!o,cursor:o?Xk[t]+"-resize":null})})}function uL(t,e,n,i,o,r,a){n=e.childOfName(n);n&&n.setShape((i=yL(t,e,[[i,o],[i+r,o+a]]),r=Ek(i[0][0],i[1][0]),o=Ek(i[0][1],i[1][1]),a=zk(i[0][0],i[1][0]),i=zk(i[0][1],i[1][1]),{x:r,y:o,width:a-r,height:i-o}))}function hL(t){return A({strokeNoScale:!0},t.brushStyle)}function cL(t,e,n,i){var o=[Ek(t,n),Ek(e,i)],i=[zk(t,n),zk(e,i)];return[[o[0],i[0]],[o[1],i[1]]]}function pL(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[$p({w:"left",e:"right",n:"top",s:"bottom"}[e],jp(t.group))]}function dL(t,e,n,i,o,r){var a=n.__brushOption,s=t.toRectRange(a.range),l=gL(e,o,r);R(i,function(t){t=Wk[t];s[t[0]][t[1]]+=l[t[0]]}),a.range=t.fromRectRange(cL(s[0][0],s[1][0],s[0][1],s[1][1])),Qk(e,n),oL(e,{isEnd:!1})}function fL(t,e,n,i){var o=e.__brushOption.range,r=gL(t,n,i);R(o,function(t){t[0]+=r[0],t[1]+=r[1]}),Qk(t,e),oL(t,{isEnd:!1})}function gL(t,e,n){t=t.group,n=t.transformCoordToLocal(e,n),t=t.transformCoordToLocal(0,0);return[n[0]-t[0],n[1]-t[1]]}function yL(t,e,n){e=nL(t,e);return e&&e!==Rk?e.clipPath(n,t._transform):C(n)}function mL(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=eL(t,e,n);if(!t._dragging)for(var a=0;a<o.length;a++){var s=o[a].__brushOption;if(r&&(r===Rk||s.panelId===r.panelId)&&ML[s.brushType].contain(o[a],n[0],n[1]))return}r&&i.setCursorStyle("crosshair")}}function vL(t){t=t.event;t.preventDefault&&t.preventDefault()}function xL(t,e,n){return t.childOfName("main").contain(e,n)}function _L(t,e,n,i){var o,r,a=t._creatingCover,s=t._creatingPanel,l=t._brushOption;return t._track.push(n.slice()),function(t){if((n=t._track).length){var e=n[n.length-1],t=n[0],n=e[0]-t[0],t=e[1]-t[1],t=Bk(n*n+t*t,.5);return Fk<t}}(t)||a?(s&&!a&&("single"===l.brushMode&&iL(t),(o=C(l)).brushType=bL(o.brushType,s),o.panelId=s===Rk?null:s.panelId,a=t._creatingCover=jk(t,o),t._covers.push(a)),a&&(r=ML[bL(t._brushType,s)],a.__brushOption.range=r.getCreatingRange(yL(t,a,t._track)),i&&(Kk(t,a),r.updateCommon(t,a)),$k(t,a),r={isEnd:i})):i&&"single"===l.brushMode&&l.removeOnClick&&eL(t,e,n)&&iL(t)&&(r={isEnd:i,removeOnClick:!0}),r}function bL(t,e){return"auto"===t?e.defaultBrushType:t}var wL={mousedown:function(t){var e;this._dragging?SL(this,t):t.target&&t.target.draggable||(vL(t),e=this.group.transformCoordToLocal(t.offsetX,t.offsetY),this._creatingCover=null,(this._creatingPanel=eL(this,t,e))&&(this._dragging=!0,this._track=[e.slice()]))},mousemove:function(t){var e=t.offsetX,n=t.offsetY,n=this.group.transformCoordToLocal(e,n);mL(this,t,n),this._dragging&&(vL(t),(n=_L(this,t,n,!1))&&oL(this,n))},mouseup:function(t){SL(this,t)}};function SL(t,e){var n,i;t._dragging&&(vL(e),n=e.offsetX,i=e.offsetY,i=t.group.transformCoordToLocal(n,i),i=_L(t,e,i,!0),t._dragging=!1,t._track=[],t._creatingCover=null,i&&oL(t,i))}var ML={lineX:IL(0),lineY:IL(1),rect:{createCover:function(t,e){function n(t){return t}return aL({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){t=rL(t);return cL(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(t,e,n,i){sL(t,e,n,i)},updateCommon:lL,contain:xL},polygon:{createCover:function(t,e){var n=new qr;return n.add(new La({name:"main",style:hL(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Ca({name:"main",draggable:!0,drift:V(fL,t,e),ondragend:V(oL,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,i){e.childAt(0).setShape({points:yL(t,e,n)})},updateCommon:lL,contain:xL}};function IL(a){return{createCover:function(t,e){return aL({toRectRange:function(t){t=[t,[0,100]];return a&&t.reverse(),t},fromRectRange:function(t){return t[a]}},t,e,[[["w"],["e"]],[["n"],["s"]]][a])},getCreatingRange:function(t){t=rL(t);return[Ek(t[0][a],t[1][a]),zk(t[0][a],t[1][a])]},updateCoverShape:function(t,e,n,i){var o=nL(t,e),r=[n,o!==Rk&&o.getLinearBrushOtherExtent?o.getLinearBrushOtherExtent(a):[0,[(r=t._zr).getWidth(),r.getHeight()][1-a]]];a&&r.reverse(),sL(t,e,r,i)},updateCommon:lL,contain:xL}}function TL(e){return e=AL(e),function(t){return td(t,e)}}function CL(n,i){return n=AL(n),function(t){var e=null!=i?i:t,t=e?n.width:n.height,e=e?n.x:n.y;return[e,e+(t||0)]}}function DL(t,n,i){var o=AL(t);return function(t,e){return o.contain(e[0],e[1])&&!ET(t,n,i)}}function AL(t){return Mi.create(t)}var kL,LL=["axisLine","axisTickLabel","axisName"],Ec=(l(PL,kL=Iy),PL.prototype.init=function(t,e){kL.prototype.init.apply(this,arguments),(this._brushController=new Zk(e.getZr())).on("brush",B(this._onBrush,this))},PL.prototype.render=function(t,e,n,i){var o,r,a,s;a=t,r=e,(s=i)&&"axisAreaSelect"===s.type&&r.findComponents({mainType:"parallelAxis",query:s})[0]===a||(this.axisModel=t,this.api=n,this.group.removeAll(),o=this._axisGroup,this._axisGroup=new qr,this.group.add(this._axisGroup),t.get("show")&&(i=t,s=(r=e.getComponent("parallel",i.get("parallelIndex"))).coordinateSystem,e=(a=t.getAreaSelectStyle()).width,i=t.axis.dim,s=N({strokeContainThreshold:e},s.getAxisLayout(i)),i=new ZS(t,s),R(LL,i.add,i),this._axisGroup.add(i.getGroup()),this._refreshBrushController(s,a,t,r,e,n),Qp(o,this._axisGroup,t)))},PL.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)),o=Mi.create({x:s[0],y:-o/2,width:l,height:o});o.x-=u,o.width+=2*u,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:TL(o),isTargetByCursor:DL(o,r,i),getLinearBrushOtherExtent:CL(o,0)}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers((a=(n=n).axis,L(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[a.dataToCoord(t[0],!0),a.dataToCoord(t[1],!0)]}})))},PL.prototype._onBrush=function(t){var e=t.areas,n=this.axisModel,i=n.axis,e=L(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})},PL.prototype.dispose=function(){this._brushController.dispose()},PL.type="parallelAxis",PL);function PL(){var t=null!==kL&&kL.apply(this,arguments)||this;return t.type=PL.type,t}Iy.registerClass(Ec);var NL,g=(l(OL,NL=Iy),OL.prototype.render=function(t,e,n){this._model=t,this._api=n,this._handlers||(this._handlers={},R(RL,function(t,e){n.getZr().on(e,this._handlers[e]=B(t,this))},this)),Gy(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},OL.prototype.dispose=function(t,n){R(this._handlers,function(t,e){n.getZr().off(e,t)}),this._handlers=null},OL.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},OL.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(N({type:"parallelAxisExpand"},t))},OL.type="parallel",OL);function OL(){var t=null!==NL&&NL.apply(this,arguments)||this;return t.type=OL.type,t}Iy.registerClass(g);var RL={mousedown:function(t){EL(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(EL(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;t=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==t.behavior&&this._dispatchExpand({axisExpandWindow:t.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){var e,n;!this._mouseDownPoint&&EL(this,"mousemove")&&("jump"===(t=(n=(e=this._model).coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY])).behavior)&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===t?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===t?null:{duration:0}}))}};function EL(t,e){t=t._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}Wx(function(t){var n;!function(t){if(t.parallel)return;var e=!1;R(t.series,function(t){t&&"parallel"===t.type&&(e=!0)}),e&&(t.parallel=[{}])}(t),R(Bu((n=t).parallelAxis),function(t){var e;Y(t)&&(e=t.parallelIndex||0,(e=Bu(n.parallel)[e])&&e.parallelAxisDefault&&w(t,e.parallelAxisDefault,!1))})});var zL,Ec=(l(BL,zL=yy),BL.prototype.getInitialData=function(t,e){return G_(this.getSource(),this,{useEncodeDefaulter:B(VL,null,this)})},BL.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},BL.type="series.parallel",BL.dependencies=["parallel"],BL.defaultOption={zlevel:0,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"},BL);function BL(){var t=null!==zL&&zL.apply(this,arguments)||this;return t.type=BL.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}function VL(t){t=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(t){var n={};return R(t.dimensions,function(t){var e=+t.replace("dim","");n[t]=e}),n}}yy.registerClass(Ec);var FL,g=(l(GL,FL=ky),GL.prototype.init=function(){this.group.add(this._dataGroup)},GL.prototype.render=function(i,t,e,n){var o,r,a,s,l,u=this._dataGroup,h=i.getData(),c=this._data,p=i.coordinateSystem,d=p.dimensions,f=XL(i);h.diff(c).add(function(t){YL(WL(h,u,t,d,p),h,t,f)}).update(function(t,e){var n=c.getItemGraphicEl(e),e=HL(h,t,d,p);h.setItemGraphicEl(t,n),Fp(n,{shape:{points:e}},i,t),YL(n,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,l=o.getRect(),o=new pa({shape:{x:l.x,y:l.y,width:l.width,height:l.height}}),s="horizontal"===s.get("layout")?"width":"height",o.setShape(s,0),Gp(o,{shape:{width:l.width,height:l.height}},r,a),o=o,u.setClipPath(o)),this._data=h},GL.prototype.incrementalPrepareRender=function(t,e,n){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},GL.prototype.incrementalRender=function(t,e,n){for(var i=e.getData(),o=e.coordinateSystem,r=o.dimensions,a=XL(e),s=t.start;s<t.end;s++){var l=WL(i,this._dataGroup,s,r,o);l.incremental=!0,YL(l,i,s,a)}},GL.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},GL.type="parallel",GL);function GL(){var t=null!==FL&&FL.apply(this,arguments)||this;return t.type=GL.type,t._dataGroup=new qr,t._initialized=!1,t}function HL(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 WL(t,e,n,i,o){o=HL(t,n,i,o),o=new La({shape:{points:o},z2:10});return e.add(o),t.setItemGraphicEl(n,o),o}function XL(t){t=t.get("smooth",!0);return!0===t&&(t=.3),J(t=Pu(t))&&(t=0),{smooth:t}}function YL(t,e,n,i){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",i.smooth);e=e.getItemModel(n),n=e.getModel("emphasis");cc(t,e,"lineStyle"),sc(t,n.get("focus"),n.get("blurScope"))}ky.registerClass(g);var UL=["lineStyle","opacity"];qx({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(UL,!0))&&(n=t),i.ensureUniqueItemVisual(e,"style").opacity=n},t.start,t.end)}}}});var ZL,Ec=(l(qL,ZL=yy),qL.prototype.getInitialData=function(t,e){var n=t.edges||t.links,i=t.data||t.nodes,o=t.levels;this.levelModels=[];for(var r=this.levelModels,a=0;a<o.length;a++)null!=o[a].depth&&0<=o[a].depth&&(r[o[a].depth]=new Hc(o[a],this,e));if(i&&n)return KD(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,e=n.getData().getItemLayout(e);return e&&(e=e.depth,(e=n.levelModels[e])&&(t.parentModel=e)),t}),e.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,e=n.getGraph().getEdgeByIndex(e).node1.getLayout();return e&&(e=e.depth,(e=n.levelModels[e])&&(t.parentModel=e)),t})}).data},qL.prototype.setNodePosition=function(t,e){t=this.option.data[t];t.localX=e[0],t.localY=e[1]},qL.prototype.getGraph=function(){return this.getData().graph},qL.prototype.getEdgeData=function(){return this.getGraph().edgeData},qL.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var o=this.getDataParams(t,n),r=o.data,o=o.value;return ey("nameValue",{name:r.source+" -- "+r.target,value:o,noValue:i(o)})}o=this.getGraph().getNodeByIndex(t).getLayout().value;return ey("nameValue",{name:this.getDataParams(t,n).data.name,value:o,noValue:i(o)})},qL.prototype.optionUpdated=function(){var t=this.option;!0===t.focusNodeAdjacency&&(t.focusNodeAdjacency="allEdges")},qL.prototype.getDataParams=function(t,e){var n=ZL.prototype.getDataParams.call(this,t,e);return null==n.value&&"node"===e&&(t=this.getGraph().getNodeByIndex(t).getLayout().value,n.value=t),n},qL.type="series.sankey",qL.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},qL);function qL(){var t=null!==ZL&&ZL.apply(this,arguments)||this;return t.type=qL.type,t}yy.registerClass(Ec);var jL,KL=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0},$L=(l(JL,jL=Ir),JL.prototype.getDefaultShape=function(){return new KL},JL.prototype.buildPath=function(t,e){var n=e.extent;t.moveTo(e.x1,e.y1),t.bezierCurveTo(e.cpx1,e.cpy1,e.cpx2,e.cpy2,e.x2,e.y2),"vertical"===e.orient?(t.lineTo(e.x2+n,e.y2),t.bezierCurveTo(e.cpx2+n,e.cpy2,e.cpx1+n,e.cpy1,e.x1+n,e.y1)):(t.lineTo(e.x2,e.y2+n),t.bezierCurveTo(e.cpx2,e.cpy2+n,e.cpx1,e.cpy1+n,e.x1,e.y1+n)),t.closePath()},JL.prototype.highlight=function(){Jh(this)},JL.prototype.downplay=function(){Qh(this)},JL);function JL(t){return jL.call(this,t)||this}var QL,g=(l(tP,QL=ky),tP.prototype.render=function(_,t,i){var e,n,o=this,r=_.getGraph(),b=this.group,a=_.layoutInfo,w=a.width,S=a.height,s=_.getData(),M=_.getData("edge"),I=_.get("orient");this._model=_,b.removeAll(),b.x=a.x,b.y=a.y,r.eachEdge(function(t){var e=new $L,n=_h(e);n.dataIndex=t.dataIndex,n.seriesIndex=_.seriesIndex,n.dataType="edge";var i,o,r,a,s,l,u,h=t.getModel(),c=h.getModel("lineStyle"),p=c.get("curveness"),d=t.node1.getLayout(),f=t.node1.getModel(),g=f.get("localX"),y=f.get("localY"),m=t.node2.getLayout(),v=t.node2.getModel(),n=v.get("localX"),f=v.get("localY"),v=t.getLayout();switch(e.shape.extent=Math.max(1,v.dy),v="vertical"===(e.shape.orient=I)?(i=(null!=g?g*w:d.x)+v.sy,o=(null!=y?y*S:d.y)+d.dy,r=(null!=n?n*w:m.x)+v.ty,s=i,l=o*(1-p)+(a=null!=f?f*S:m.y)*p,u=r,o*p+a*(1-p)):(i=(null!=g?g*w:d.x)+d.dx,o=(null!=y?y*S:d.y)+v.sy,s=i*(1-p)+(r=null!=n?n*w:m.x)*p,l=o,u=i*p+r*(1-p),a=(null!=f?f*S:m.y)+v.ty),e.setShape({x1:i,y1:o,x2:r,y2:a,cpx1:s,cpy1:l,cpx2:u,cpy2:v}),e.useStyle(c.getItemStyle()),e.style.fill){case"source":e.style.fill=t.node1.getVisual("color");break;case"target":e.style.fill=t.node2.getVisual("color");break;case"gradient":var c=t.node1.getVisual("color"),x=t.node2.getVisual("color");"string"==typeof c&&"string"==typeof x&&(e.style.fill=new Ea(0,0,1,0,[{color:c,offset:0},{color:x,offset:1}]))}x=h.getModel("emphasis");cc(e,h,"lineStyle",function(t){return t.getItemStyle()}),b.add(e),M.setItemGraphicEl(t.dataIndex,e);h=x.get("focus");sc(e,"adjacency"===h?t.getAdjacentDataIndices():h,x.get("blurScope")),_h(e).dataType="edge"}),r.eachNode(function(t){var e=t.getLayout(),n=t.getModel(),i=n.get("localX"),o=n.get("localY"),r=n.getModel("emphasis"),e=new pa({shape:{x:null!=i?i*w:e.x,y:null!=o?o*S:e.y,width:e.dx,height:e.dy},style:n.getModel("itemStyle").getItemStyle()});bc(e,wc(n),{labelFetcher:_,labelDataIndex:t.dataIndex,defaultText:t.id}),e.disableLabelAnimation=!0,e.setStyle("fill",t.getVisual("color")),cc(e,n),b.add(e),s.setItemGraphicEl(t.dataIndex,e),_h(e).dataType="node";n=r.get("focus");sc(e,"adjacency"===n?t.getAdjacentDataIndices():n,r.get("blurScope"))}),s.eachItemGraphicEl(function(t,n){s.getItemModel(n).get("draggable")&&(t.drift=function(t,e){o._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=e,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:_.id,dataIndex:s.getRawIndex(n),localX:this.shape.x/w,localY:this.shape.y/S})},t.ondragend=function(){o._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")}),!this._data&&_.isAnimationEnabled()&&b.setClipPath((e=b.getBoundingRect(),n=_,a=function(){b.removeClipPath()},Gp(r=new pa({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}}),{shape:{width:e.width+20}},n,a),r)),this._data=_.getData()},tP.prototype.dispose=function(){},tP.type="sankey",tP);function tP(){var t=null!==QL&&QL.apply(this,arguments)||this;return t.type=tP.type,t._focusAdjacencyDisabled=!1,t}function eP(t){t=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=t.depth&&0<=t.depth}function nP(t,l,u,h,c){var p="vertical"===c?"x":"y";R(t,function(t){var e,n;t.sort(function(t,e){return t.getLayout()[p]-e.getLayout()[p]});for(var i,o=0,r=t.length,a="vertical"===c?"dx":"dy",s=0;s<r;s++)0<(i=o-(n=t[s]).getLayout()[p])&&(e=n.getLayout()[p]+i,"vertical"===c?n.setLayout({x:e},!0):n.setLayout({y:e},!0)),o=n.getLayout()[p]+n.getLayout()[a]+l;if(0<(i=o-l-("vertical"===c?h:u))){e=n.getLayout()[p]-i,"vertical"===c?n.setLayout({x:e},!0):n.setLayout({y:e},!0),o=e;for(s=r-2;0<=s;--s)0<(i=(n=t[s]).getLayout()[p]+n.getLayout()[a]+l-o)&&(e=n.getLayout()[p]-i,"vertical"===c?n.setLayout({x:e},!0):n.setLayout({y:e},!0)),o=n.getLayout()[p]}})}function iP(t,e){return sP(t.node2,e)*t.getValue()}function oP(t,e){return sP(t.node2,e)}function rP(t,e){return sP(t.node1,e)*t.getValue()}function aP(t,e){return sP(t.node1,e)}function sP(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function lP(t){return t.getValue()}function uP(t,e,n){for(var i=0,o=t.length,r=-1;++r<o;){var a=+e(t[r],n);isNaN(a)||(i+=a)}return i}ky.registerClass(g),Yx({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),Zx(function(t,u){t.eachSeriesByType("sankey",function(t){var e=t.get("nodeWidth"),n=t.get("nodeGap"),i=(l=u,Id(t.getBoxLayoutParams(),{width:l.getWidth(),height:l.getHeight()})),o=(t.layoutInfo=i).width,r=i.height,a=t.getGraph(),s=a.nodes,l=a.edges;R(s,function(t){var e=uP(t.outEdges,lP),n=uP(t.inEdges,lP),i=t.getValue()||0,i=Math.max(e,n,i);t.setLayout({value:i},!0)});i=0!==O(s,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"),a=t.get("orient"),t=t.get("nodeAlign");n=n,i=i,function(t,e,n,i,o,r,a){for(var s=[],l=[],u=[],h=[],c=0,p=0;p<e.length;p++)s[p]=1;for(p=0;p<t.length;p++)l[p]=t[p].inEdges.length,0===l[p]&&u.push(t[p]);var d=-1;for(;u.length;){for(var f=0;f<u.length;f++){var g=u[f],y=g.hostGraph.data.getRawDataItem(g.dataIndex),m=null!=y.depth&&0<=y.depth;m&&y.depth>d&&(d=y.depth),g.setLayout({depth:m?y.depth:c},!0),"vertical"===r?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var v=0;v<g.outEdges.length;v++){var x=g.outEdges[v],_=e.indexOf(x);s[_]=0;_=x.node2,x=t.indexOf(_);0==--l[x]&&h.indexOf(_)<0&&h.push(_)}}++c,u=h,h=[]}for(p=0;p<s.length;p++)if(1===s[p])throw new Error("Sankey is a DAG, the original data has cycle!");var b=c-1<d?d:c-1;a&&"left"!==a&&function(t,e,n){if("right"===e){for(var i=[],o=t,r=0;o.length;){for(var a=0;a<o.length;a++){var s=o[a];s.setLayout({skNodeHeight:r},!0);for(var l=0;l<s.inEdges.length;l++){var u=s.inEdges[l];i.indexOf(u.node1)<0&&i.push(u.node1)}}o=i,i=[],++r}R(t,function(t){eP(t)||t.setLayout({depth:Math.max(0,n-t.getLayout().skNodeHeight)},!0)})}else"justify"===e&&function(t,e){R(t,function(t){eP(t)||t.outEdges.length||t.setLayout({depth:e},!0)})}(t,n)}(t,a,b);!function(t,n,i){R(t,function(t){var e=t.getLayout().depth*n;"vertical"===i?t.setLayout({y:e},!0):t.setLayout({x:e},!0)})}(t,"vertical"===r?(o-n)/b:(i-n)/b,r)}(s=s,l=l,e,o=o,r=r,a=a,t),function(t,e,n,i,o,r,a){var s=function(t,e){var n=[],i="vertical"===e?"y":"x",o=oh(t,function(t){return t.getLayout()[i]});return o.keys.sort(function(t,e){return t-e}),R(o.keys,function(t){n.push(o.buckets.get(t))}),n}(t,a);(function(t,e,i,o,r,a){var s=1/0;R(t,function(t){var e=t.length,n=0;R(t,function(t){n+=t.getLayout().value});e="vertical"===a?(o-(e-1)*r)/n:(i-(e-1)*r)/n;e<s&&(s=e)}),R(t,function(t){R(t,function(t,e){var n=t.getLayout().value*s;"vertical"===a?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))})}),R(e,function(t){var e=+t.getValue()*s;t.setLayout({dy:e},!0)})})(s,e,n,i,o,a),nP(s,o,n,i,a);for(var l=1;0<r;r--)(function(t,i,o){R(t.slice().reverse(),function(t){R(t,function(t){var e,n;t.outEdges.length&&(n=uP(t.outEdges,iP,o)/uP(t.outEdges,lP),isNaN(n)&&(n=(e=t.outEdges.length)?uP(t.outEdges,oP,o)/e:0),"vertical"===o?(e=t.getLayout().x+(n-sP(t,o))*i,t.setLayout({x:e},!0)):(n=t.getLayout().y+(n-sP(t,o))*i,t.setLayout({y:n},!0)))})})})(s,l*=.99,a),nP(s,o,n,i,a),function(t,i,o){R(t,function(t){R(t,function(t){var e,n;t.inEdges.length&&(n=uP(t.inEdges,rP,o)/uP(t.inEdges,lP),isNaN(n)&&(n=(e=t.inEdges.length)?uP(t.inEdges,aP,o)/e:0),"vertical"===o?(e=t.getLayout().x+(n-sP(t,o))*i,t.setLayout({x:e},!0)):(n=t.getLayout().y+(n-sP(t,o))*i,t.setLayout({y:n},!0)))})})}(s,l,a),nP(s,o,n,i,a)}(s,l,r,o,n,i,a),function(t,e){var n="vertical"===e?"x":"y";R(t,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]}),t.inEdges.sort(function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]})}),R(t,function(t){var e=0,n=0;R(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),R(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}(s,a)})}),qx(function(t){t.eachSeriesByType("sankey",function(i){var o,r,t=i.getGraph().nodes;t.length&&(o=1/0,r=-1/0,R(t,function(t){t=t.getLayout().value;t<o&&(o=t),r<t&&(r=t)}),R(t,function(t){var e=new uD({type:"color",mappingMethod:"linear",dataExtent:[o,r],visual:i.get("color")}).mapValueToVisual(t.getLayout().value),n=t.getModel().get(["itemStyle","color"]);null!=n?(t.setVisual("color",n),t.setVisual("style",{fill:n})):(t.setVisual("color",e),t.setVisual("style",{fill:e}))}))})});hP.prototype.getInitialData=function(t,e){var n,i,o=e.getComponent("xAxis",this.get("xAxisIndex")),r=e.getComponent("yAxis",this.get("yAxisIndex")),a=o.get("type"),s=r.get("type");"category"===a?(t.layout="horizontal",n=o.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=r.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l,e=["x","y"],a="horizontal"===t.layout?0:1,s=this._baseAxisDim=e[a],e=e[1-a],o=[o,r],r=o[a].get("type"),o=o[1-a].get("type"),a=t.data;a&&i&&(l=[],R(a,function(t,e){var n;F(t)?(n=t.slice(),t.unshift(e)):F(t.value)?(n=t.value.slice(),t.value.unshift(e)):n=t,l.push(n)}),t.data=l);t=this.defaultValueDimensions,o=[{name:s,type:o_(r),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:e,type:o_(o),dimsDef:t.slice()}];return mI(this,{coordDimensions:o,dimensionsCount:t.length+1,encodeDefaulter:V(nf,o,this)})},hP.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},Ec=hP;function hP(){}var cP,g=(l(pP,cP=yy),pP.type="series.boxplot",pP.dependencies=["xAxis","yAxis","grid"],pP.defaultOption={zlevel:0,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},pP);function pP(){var t=null!==cP&&cP.apply(this,arguments)||this;return t.type=pP.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}T(g,Ec,!0),yy.registerClass(g);var dP,g=(l(fP,dP=ky),fP.prototype.render=function(t,e,n){var i=t.getData(),o=this.group,r=this._data;this._data||o.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(r).add(function(t){var e;i.hasValue(t)&&(e=xP(i.getItemLayout(t),i,t,a,!0),i.setItemGraphicEl(t,e),o.add(e))}).update(function(t,e){var n=r.getItemGraphicEl(e);i.hasValue(t)?(e=i.getItemLayout(t),n?_P(e,n,i,t):n=xP(e,i,t,a),o.add(n),i.setItemGraphicEl(t,n)):o.remove(n)}).remove(function(t){t=r.getItemGraphicEl(t);t&&o.remove(t)}).execute(),this._data=i},fP.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},fP.type="boxplot",fP);function fP(){var t=null!==dP&&dP.apply(this,arguments)||this;return t.type=fP.type,t}var gP,yP=function(){},mP=(l(vP,gP=Ir),vP.prototype.getDefaultShape=function(){return new yP},vP.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]),i++,t.lineTo(n[i][0],n[i][1])},vP);function vP(t){t=gP.call(this,t)||this;return t.type="boxplotBoxPath",t}function xP(t,e,n,i,o){var r,a,s=t.ends,s=new mP({shape:{points:o?(r=i,a=t,L(s,function(t){return(t=t.slice())[r]=a.initBaseline,t})):s}});return _P(t,s,e,n,o),s}function _P(t,e,n,i,o){var r=n.hostModel;(0,od[o?"initProps":"updateProps"])(e,{shape:{points:t.ends}},r,i),e.useStyle(n.getItemVisual(i,"style")),e.style.strokeNoScale=!0,e.z2=100;i=n.getItemModel(i);cc(e,i),sc(e,i.get(["emphasis","focus"]),i.get(["emphasis","blurScope"]))}ky.registerClass(g);var bP=R;g={type:"echarts:boxplot",transform:function(t){var e=t.source,n=e.data;F(n)&&(!n[0]||F(n[0]))||mc("");t=function(t,e){for(var n=[],i=[],o=(e=e||{}).boundIQR,r="none"===o||0===o,a=0;a<t.length;a++){var s=mu(t[a].slice()),l=ku(s,.25),u=ku(s,.5),h=ku(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),d=e.itemNameFormatter,y=G(d)?d({value:a}):H(d)?d.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)&&(v=[y,v],i.push(v))}}return{boxData:n,outliers:i}}(e.data,t.config);return[{data:t.boxData},{data:t.outliers}]}};qx(function(t,e){t.eachRawSeriesByType("boxplot",function(t){t.getData().setVisual("legendSymbol","roundRect")})}),Zx(function(t){var i,o,t=(i=[],o=[],t.eachSeriesByType("boxplot",function(t){var e=t.getBaseAxis(),n=D(o,e);n<0&&(n=o.length,o[n]=e,i[n]={axis:e,seriesModels:[]}),i[n].seriesModels.push(t)}),i);bP(t,function(n){var t=n.seriesModels;t.length&&(function(t){var e,n=t.axis,i=t.seriesModels,o=i.length,r=t.boxWidthList=[],a=t.boxOffsetList=[],s=[];{var l;"category"===n.type?e=n.getBandWidth():(l=0,bP(i,function(t){l=Math.max(l,t.getData().count())}),u=n.getExtent(),Math.abs(u[1]-u[0]))}bP(i,function(t){t=t.get("boxWidth");F(t)||(t=[t,t]),s.push([gu(t[0],e)||0,gu(t[1],e)||0])});var u=.8*e-2,h=u/o*.3,c=(u-h*(o-1))/o,p=c/2-u/2;bP(i,function(t,e){a.push(p),p+=h+c,r.push(Math.min(Math.max(c,s[e][0]),s[e][1]))})}(n),bP(t,function(t,e){!function(t,o,e){var r=t.coordinateSystem,a=t.getData(),s=e/2,l="horizontal"===t.get("layout")?0:1,u=1-l,t=["x","y"],n=a.mapDimension(t[l]),i=a.mapDimensionsAll(t[u]);if(null==n||i.length<5)return;for(var h=0;h<a.count();h++){var c=a.get(n,h),p=m(c,i[2],h),d=m(c,i[0],h),f=m(c,i[1],h),g=m(c,i[3],h),y=m(c,i[4],h),c=[];v(c,f,!1),v(c,g,!0),c.push(d,f,y,g),x(c,d),x(c,y),x(c,p),a.setItemLayout(h,{initBaseline:p[u],ends:c})}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)}}(t,n.boxOffsetList[e],n.boxWidthList[e])}))})}),vh(g);var wP,g=(l(SP,wP=yy),SP.prototype.getShadowDim=function(){return"open"},SP.prototype.brushSelector=function(t,e,n){t=e.getItemLayout(t);return t&&n.rect(t.brushRect)},SP.type="series.candlestick",SP.dependencies=["xAxis","yAxis","grid"],SP.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},SP);function SP(){var t=null!==wP&&wP.apply(this,arguments)||this;return t.type=SP.type,t.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],t}T(g,Ec,!0),yy.registerClass(g);var MP,IP=["color","borderColor"],Ec=(l(TP,MP=ky),TP.prototype.render=function(t,e,n){this.group.removeClipPath(),this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},TP.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},TP.prototype.incrementalRender=function(t,e,n,i){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},TP.prototype._updateDrawMode=function(t){t=t.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},TP.prototype._renderNormal=function(i){var o=i.getData(),r=this._data,a=this.group,s=o.getLayout("isSimpleBox"),l=i.get("clip",!0),t=i.coordinateSystem,u=t.getArea&&t.getArea();this._data||a.removeAll(),o.diff(r).add(function(t){var e,n;o.hasValue(t)&&(e=o.getItemLayout(t),l&&PP(u,e)||(Gp(n=LP(e,0,!0),{shape:{points:e.ends}},i,t),NP(n,o,t,s),a.add(n),o.setItemGraphicEl(t,n)))}).update(function(t,e){var n=r.getItemGraphicEl(e);o.hasValue(t)?(e=o.getItemLayout(t),l&&PP(u,e)?a.remove(n):(n?Fp(n,{shape:{points:e.ends}},i,t):n=LP(e),NP(n,o,t,s),a.add(n),o.setItemGraphicEl(t,n))):a.remove(n)}).remove(function(t){t=r.getItemGraphicEl(t);t&&a.remove(t)}).execute(),this._data=o},TP.prototype._renderLarge=function(t){this._clear(),BP(t,this.group);t=t.get("clip",!0)?TS(t.coordinateSystem,!1,t):null;t?this.group.setClipPath(t):this.group.removeClipPath()},TP.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),o=i.getLayout("isSimpleBox");null!=(n=t.next());){var r=LP(i.getItemLayout(n));NP(r,i,n,o),r.incremental=!0,this.group.add(r)}},TP.prototype._incrementalRenderLarge=function(t,e){BP(e,this.group,!0)},TP.prototype.remove=function(t){this._clear()},TP.prototype._clear=function(){this.group.removeAll(),this._data=null},TP.type="candlestick",TP);function TP(){var t=null!==MP&&MP.apply(this,arguments)||this;return t.type=TP.type,t}ky.registerClass(Ec);var CP,DP=function(){},AP=(l(kP,CP=Ir),kP.prototype.getDefaultShape=function(){return new DP},kP.prototype.buildPath=function(t,e){e=e.points;this.__simpleBox?(t.moveTo(e[4][0],e[4][1]),t.lineTo(e[6][0],e[6][1])):(t.moveTo(e[0][0],e[0][1]),t.lineTo(e[1][0],e[1][1]),t.lineTo(e[2][0],e[2][1]),t.lineTo(e[3][0],e[3][1]),t.closePath(),t.moveTo(e[4][0],e[4][1]),t.lineTo(e[5][0],e[5][1]),t.moveTo(e[6][0],e[6][1]),t.lineTo(e[7][0],e[7][1]))},kP);function kP(t){t=CP.call(this,t)||this;return t.type="normalCandlestickBox",t}function LP(t,e,n){var i,o=t.ends;return new AP({shape:{points:n?(i=t,L(o,function(t){return(t=t.slice())[1]=i.initBaseline,t})):o},z2:100})}function PP(t,e){for(var n=!0,i=0;i<e.ends.length;i++)if(t.contain(e.ends[i][0],e.ends[i][1])){n=!1;break}return n}function NP(t,e,n,i){var o=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=i,cc(t,o)}var OP,RP=function(){},EP=(l(zP,OP=Ir),zP.prototype.getDefaultShape=function(){return new RP},zP.prototype.buildPath=function(t,e){for(var n,i=e.points,o=0;o<i.length;){this.__sign===i[o++]?(n=i[o++],t.moveTo(n,i[o++]),t.lineTo(n,i[o++])):o+=3}},zP);function zP(t){t=OP.call(this,t)||this;return t.type="largeCandlestickBox",t}function BP(t,e,n){var i=t.getData().getLayout("largePoints"),o=new EP({shape:{points:i},__sign:1});e.add(o);i=new EP({shape:{points:i},__sign:-1});e.add(i),VP(1,o,t),VP(-1,i,t),n&&(o.incremental=!0,i.incremental=!0)}function VP(t,e,n){t=n.get(["itemStyle",0<t?"borderColor":"borderColor0"])||n.get(["itemStyle",0<t?"color":"color0"]),n=n.getModel("itemStyle").getItemStyle(IP);e.useStyle(n),e.style.fill=null,e.style.stroke=t}var FP=["itemStyle","borderColor"],GP=["itemStyle","borderColor0"],HP=["itemStyle","color"],WP=["itemStyle","color0"],g={seriesType:"candlestick",plan:Cy(),performRawSeries:!0,reset:function(t,e){if(t.getData().setVisual("legendSymbol","roundRect"),!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var n,i;null!=(n=t.next());){var o=e.getItemModel(n),r=e.getItemLayout(n).sign,a=o.getItemStyle();a.fill=(i=r,o.get(0<i?HP:WP)),a.stroke=(r=r,o.get(0<r?FP:GP)||a.fill),N(e.ensureUniqueItemVisual(n,"style"),a)}}}}},XP="undefined"!=typeof Float32Array?Float32Array:Array,Ec={seriesType:"candlestick",plan:Cy(),reset:function(t){var e,n,i,y=t.coordinateSystem,o=t.getData(),m=(r=o,n="category"===(n=(e=t).getBaseAxis()).type?n.getBandWidth():(i=n.getExtent(),Math.abs(i[1]-i[0])/r.count()),i=gu(tt(e.get("barMaxWidth"),n),n),r=gu(tt(e.get("barMinWidth"),1),n),null!=(e=e.get("barWidth"))?gu(e,n):Math.max(Math.min(n/2,i),r)),r=["x","y"],v=o.mapDimension(r[0]),r=o.mapDimensionsAll(r[1]),x=r[0],_=r[1],b=r[2],w=r[3];if(o.setLayout({candleWidth:m,isSimpleBox:m<=1.3}),!(null==v||r.length<4))return{progress:t.pipelineContext.large?function(t,e){var n,i=new XP(4*t.count),o=0,r=[],a=[];for(;null!=(n=t.next());){var s=e.get(v,n),l=e.get(x,n),u=e.get(_,n),h=e.get(b,n),c=e.get(w,n);isNaN(s)||isNaN(h)||isNaN(c)?(i[o++]=NaN,o+=3):(i[o++]=YP(e,n,l,u,_),r[0]=s,r[1]=h,h=y.dataToPoint(r,null,a),i[o++]=h?h[0]:NaN,i[o++]=h?h[1]:NaN,r[1]=c,h=y.dataToPoint(r,null,a),i[o++]=h?h[1]:NaN)}e.setLayout("largePoints",i)}:function(t,e){var n;for(;null!=(n=t.next());){var i=e.get(v,n),o=e.get(x,n),r=e.get(_,n),a=e.get(b,n),s=e.get(w,n),l=Math.min(o,r),u=Math.max(o,r),h=d(l,i),c=d(u,i),p=d(a,i),l=d(s,i),u=[];f(u,c,0),f(u,h,1),u.push(g(l),g(c),g(p),g(h)),e.setItemLayout(n,{sign:YP(e,n,o,r,_),initBaseline:(r<o?c:h)[1],ends:u,brushRect:function(t,e,n){t=d(t,n),n=d(e,n);return t[0]-=m/2,n[0]-=m/2,{x:t[0],y:t[1],width:m,height:n[1]-t[1]}}(a,s,i)})}function d(t,e){var n=[];return n[0]=e,n[1]=t,isNaN(e)||isNaN(t)?[NaN,NaN]:y.dataToPoint(n)}function f(t,e,n){var i=e.slice(),e=e.slice();i[0]=Bp(i[0]+m/2,1,!1),e[0]=Bp(e[0]-m/2,1,!0),n?t.push(i,e):t.push(e,i)}function g(t){return t[0]=Bp(t[0],1),t}}}}};function YP(t,e,n,i,o){i=!(i<n)&&(n<i||!(0<e)||t.get(o,e-1)<=i)?1:-1;return i}Wx(function(t){t&&F(t.series)&&R(t.series,function(t){Y(t)&&"k"===t.type&&(t.type="candlestick")})}),qx(g),Zx(Ec);var UP,g=(l(ZP,UP=yy),ZP.prototype.getInitialData=function(t,e){return G_(this.getSource(),this,{useEncodeDefaulter:!0})},ZP.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},ZP.type="series.effectScatter",ZP.dependencies=["grid","polar"],ZP.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10},ZP);function ZP(){var t=null!==UP&&UP.apply(this,arguments)||this;return t.type=ZP.type,t.hasSymbolVisual=!0,t}yy.registerClass(g);function qP(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}})})}var jP,KP=(l($P,jP=qr),$P.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},$P.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),o=0;o<3;o++){var r=ow(e,-1,-1,2,2,n);r.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var a=-o/3*t.period+t.effectOffset;r.animate("",!0).when(t.period,{scale:[t.rippleScale/2,t.rippleScale/2]}).delay(a).start(),r.animateStyle(!0).when(t.period,{opacity:0}).delay(a).start(),i.add(r)}qP(i,t)},$P.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],o=0;o<i.length;o++){var r=i[o];if(e[r]!==t[r])return this.stopEffectAnimation(),void this.startEffectAnimation(t)}qP(n,t)},$P.prototype.highlight=function(){Jh(this)},$P.prototype.downplay=function(){Qh(this)},$P.prototype.updateData=function(t,e){var n=this,i=t.hostModel;this.childAt(0).updateData(t,e);var o=this.childAt(1),r=t.getItemModel(e),a=t.getItemVisual(e,"symbol"),s=(F(l=t.getItemVisual(e,"symbolSize"))||(l=[+l,+l]),l),l=t.getItemVisual(e,"style"),u=l&&l.fill;o.setScale(s),o.traverse(function(t){t.setStyle("fill",u)});l=r.getShallow("symbolOffset");l&&(o.x=gu(l[0],s[0]),o.y=gu(l[1],s[1]));s=t.getItemVisual(e,"symbolRotate");o.rotation=(s||0)*Math.PI/180||0;var h={};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"]),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"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,sc(this)},$P.prototype.fadeOut=function(t){this.off("mouseover").off("mouseout"),t&&t()},$P);function $P(t,e){var n=jP.call(this)||this,i=new $w(t,e),o=new qr;return n.add(i),n.add(o),n.updateData(t,e),n}I(KP,qr);var JP,Ec=(l(QP,JP=ky),QP.prototype.init=function(){this._symbolDraw=new iS(KP)},QP.prototype.render=function(t,e,n){var i=t.getData(),t=this._symbolDraw;t.updateData(i),this.group.add(t.group)},QP.prototype.updateTransform=function(t,e,n){var i=t.getData();this.group.dirty();n=zS("").reset(t,e,n);n.progress&&n.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout()},QP.prototype._updateGroupTransform=function(t){t=t.coordinateSystem;t&&t.getRoamTransform&&(this.group.transform=oi(t.getRoamTransform()),this.group.decomposeTransform())},QP.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0)},QP.type="effectScatter",QP);function QP(){var t=null!==JP&&JP.apply(this,arguments)||this;return t.type=QP.type,t}ky.registerClass(Ec),Zx(zS("effectScatter"));var tN="undefined"==typeof Uint32Array?Array:Uint32Array,eN="undefined"==typeof Float64Array?Array:Float64Array;function nN(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=L(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),S([e,t[0],t[1]])}))}var iN,g=(l(oN,iN=yy),oN.prototype.init=function(t){t.data=t.data||[],nN(t);var e=this._processFlatCoordsArray(t.data);this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count)),iN.prototype.init.apply(this,arguments)},oN.prototype.mergeOption=function(t){var e;nN(t),t.data&&(e=this._processFlatCoordsArray(t.data),this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset,e.flatCoords&&(t.data=new Float32Array(e.count))),iN.prototype.mergeOption.apply(this,arguments)},oN.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=pt(this._flatCoords,e.flatCoords),this._flatCoordsOffset=pt(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},oN.prototype._getCoordsFromItemModel=function(t){t=this.getData().getItemModel(t),t=t.option instanceof Array?t.option:t.getShallow("coords");return t},oN.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},oN.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},oN.prototype._processFlatCoordsArray=function(t){var e=0;if(this._flatCoords&&(e=this._flatCoords.length),"number"!=typeof t[0])return{flatCoordsOffset:null,flatCoords:null,count:t.length};for(var n=t.length,i=new tN(n),o=new eN(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}},oN.prototype.getInitialData=function(t,e){var o=new A_(["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},oN.prototype.formatTooltip=function(t,e,n){var i=this.getData().getItemModel(t),o=i.get("name");if(o)return o;t=i.get("fromName"),o=i.get("toName"),i=[];return null!=t&&i.push(t),null!=o&&i.push(o),ey("nameValue",{name:i.join(" > ")})},oN.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},oN.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},oN.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},oN.type="series.lines",oN.dependencies=["grid","polar","geo","calendar"],oN.defaultOption={coordinateSystem:"geo",zlevel:0,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}},oN);function oN(){var t=null!==iN&&iN.apply(this,arguments)||this;return t.type=oN.type,t.visualStyleAccessPath="lineStyle",t.visualDrawType="stroke",t}yy.registerClass(g);var rN,aN=(l(sN,rN=qr),sN.prototype.createLine=function(t,e,n){return new wA(t,e,n)},sN.prototype._updateEffectSymbol=function(t,e){var n=t.getItemModel(e).getModel("effect"),i=n.get("symbolSize"),o=n.get("symbol");F(i)||(i=[i,i]);var r=t.getItemVisual(e,"style"),a=n.get("color")||r&&r.stroke,r=this.childAt(1);this._symbolType!==o&&(this.remove(r),(r=ow(o,-.5,-.5,1,1,a)).z2=100,r.culling=!0,this.add(r)),r&&(r.setStyle("shadowColor",a),r.setStyle(n.getItemStyle(["color"])),r.scaleX=i[0],r.scaleY=i[1],r.setColor(a),this._symbolType=o,this._symbolScale=i,this._updateEffectAnimation(t,n,e))},sN.prototype._updateEffectAnimation=function(e,t,n){var i,o,r,a,s,l=this.childAt(1);l&&(i=this,o=e.getItemLayout(n),r=1e3*t.get("period"),a=t.get("loop"),s=t.get("constantSpeed"),t=Q(t.get("delay"),function(t){return t/e.count()*r/3}),l.ignore=!0,this._updateAnimationPoints(l,o),0<s&&(r=this._getLineLength(l)/s*1e3),r===this._period&&a===this._loop||(l.stopAnimation(),0<r&&(s=void 0,s="function"==typeof t?t(n):t,0<l.__t&&(s=-r*l.__t),l.__t=0,s=l.animate("",a).when(r,{__t:1}).delay(s).during(function(){i._updateSymbolPosition(l)}),a||s.done(function(){i.remove(l)}),s.start())),this._period=r,this._loop=a)},sN.prototype._getLineLength=function(t){return At(t.__p1,t.__cp1)+At(t.__cp1,t.__p2)},sN.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]},sN.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},sN.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,o=t.__t,r=[t.x,t.y],a=r.slice(),s=Mo,l=Io;r[0]=s(e[0],i[0],n[0],o),r[1]=s(e[1],i[1],n[1],o);s=l(e[0],i[0],n[0],o),n=l(e[1],i[1],n[1],o);t.rotation=-Math.atan2(n,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*At(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*At(e,r):t.scaleY=this._symbolScale[1]),t.__lastT=t.__t,t.ignore=!1,t.x=r[0],t.y=r[1]},sN.prototype.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},sN);function sN(t,e,n){var i=rN.call(this)||this;return i.add(i.createLine(t,e,n)),i._updateEffectSymbol(t,e),i}var lN,uN=(l(hN,lN=qr),hN.prototype._createPolyline=function(t,e,n){var i=t.getItemLayout(e),i=new La({shape:{points:i}});this.add(i),this._updateCommonStl(t,e,n)},hN.prototype.updateData=function(t,e,n){var i=t.hostModel;Fp(this.childAt(0),{shape:{points:t.getItemLayout(e)}},i,e),this._updateCommonStl(t,e,n)},hN.prototype._updateCommonStl=function(t,e,n){var i=this.childAt(0),o=t.getItemModel(e),r=n&&n.emphasisLineStyle;n&&!t.hasItemOption||(r=o.getModel(["emphasis","lineStyle"]).getLineStyle()),i.useStyle(t.getItemVisual(e,"style")),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=r,sc(this)},hN.prototype.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},hN);function hN(t,e,n){var i=lN.call(this)||this;return i._createPolyline(t,e,n),i}var cN,pN=(l(dN,cN=aN),dN.prototype.createLine=function(t,e,n){return new uN(t,e,n)},dN.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+=At(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},dN.prototype._getLineLength=function(){return this._length},dN.prototype._updateSymbolPosition=function(t){var e=t.__t,n=this._points,i=this._offsets,o=n.length;if(i){var r=this._lastFrame;if(e<this._lastFramePercent){for(var a=Math.min(r+1,o-1);0<=a&&!(i[a]<=e);a--);a=Math.min(a,o-2)}else{for(a=r;a<o&&!(i[a]>e);a++);a=Math.min(a-1,o-2)}var s=(e-i[a])/(i[a+1]-i[a]),r=n[a],n=n[a+1];t.x=r[0]*(1-s)+s*n[0],t.y=r[1]*(1-s)+s*n[1];s=n[0]-r[0],r=n[1]-r[1];t.rotation=-Math.atan2(r,s)-Math.PI/2,this._lastFrame=a,this._lastFramePercent=e,t.ignore=!1}},dN);function dN(){var t=null!==cN&&cN.apply(this,arguments)||this;return t._lastFrame=0,t._lastFramePercent=0,t}var fN,gN=function(){this.polyline=!1,this.curveness=0,this.segs=[]},yN=(l(mN,fN=Ir),mN.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},mN.prototype.getDefaultShape=function(){return new gN},mN.prototype.buildPath=function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var o=0;o<n.length;){var r=n[o++];if(0<r){t.moveTo(n[o++],n[o++]);for(var a=1;a<r;a++)t.lineTo(n[o++],n[o++])}}else for(o=0;o<n.length;){var s,l=n[o++],u=n[o++],h=n[o++],c=n[o++];t.moveTo(l,u),0<i?(s=(l+h)/2-(u-c)*i,l=(u+c)/2-(h-l)*i,t.quadraticCurveTo(s,l,h,c)):t.lineTo(h,c)}},mN.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++){if(lr(u,h,p=i[s++],d=i[s++],r,t,e))return a}a++}else for(a=0,s=0;s<i.length;){var u=i[s++],h=i[s++],p=i[s++],d=i[s++];if(0<o){if(ur(u,h,(u+p)/2-(h-d)*o,(h+d)/2-(p-u)*o,p,d,r,t,e))return a}else if(lr(u,h,p,d,r,t,e))return a;a++}return-1},mN);function mN(t){return fN.call(this,t)||this}var vN=(xN.prototype.isPersistent=function(){return!this._incremental},xN.prototype.updateData=function(t){this.group.removeAll();var e=new yN({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},xN.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),5e5<t.count()?(this._incremental||(this._incremental=new gs({silent:!0})),this.group.add(this._incremental)):this._incremental=null},xN.prototype.incrementalUpdate=function(t,e){var n=new yN;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},xN.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},xN.prototype._setCommon=function(e,t,n){var i=t.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var o,t=t.getVisual("style");t&&t.stroke&&e.setStyle("stroke",t.stroke),e.setStyle("fill",null),n||((o=_h(e)).seriesIndex=i.seriesIndex,e.on("mousemove",function(t){o.dataIndex=null;t=e.findDataIndex(t.offsetX,t.offsetY);0<t&&(o.dataIndex=t+e.__startIndex)}))},xN.prototype._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},xN);function xN(){this.group=new qr}var _N,bN={seriesType:"lines",plan:Cy(),reset:function(f){var g=f.coordinateSystem,y=f.get("polyline"),m=f.pipelineContext.large;return{progress:function(t,e){var n=[];if(m){var i=void 0,o=t.end-t.start;if(y){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);y&&(i[s++]=u);for(var h=0;h<u;h++)l=g.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),u=f.getLineCoords(a,n),p=[];if(y)for(var d=0;d<u;d++)p.push(g.dataToPoint(n[d]));else{p[0]=g.dataToPoint(n[0]),p[1]=g.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)}}}}},Ec=(l(wN,_N=ky),wN.prototype.render=function(t,e,n){var i=t.getData(),o=this._updateLineDraw(i,t),r=t.get("zlevel"),a=t.get(["effect","trailLength"]),s=n.getZr(),n="svg"===s.painter.getType();n||s.painter.getLayer(r).clear(!0),null==this._lastZlevel||n||s.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(t)&&a&&(n||s.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),o.updateData(i);t=t.get("clip",!0)&&TS(t.coordinateSystem,!1,t);t?this.group.setClipPath(t):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},wN.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},wN.prototype.incrementalRender=function(t,e,n){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},wN.prototype.updateTransform=function(t,e,n){var i=t.getData(),o=t.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};e=bN.reset(t,e,n);e.progress&&e.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},wN.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 vN:new MA(o?i?pN:uN:i?aN:wA),this._hasEffet=i,this._isPolyline=o,this._isLargeDraw=e,this.group.removeAll()),this.group.add(n.group),n},wN.prototype._showEffect=function(t){return!!t.get(["effect","show"])},wN.prototype._clearLayer=function(t){t=t.getZr();"svg"===t.painter.getType()||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},wN.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},wN.type="lines",wN);function wN(){var t=null!==_N&&_N.apply(this,arguments)||this;return t.type=wN.type,t}function SN(t){return t instanceof Array||(t=[t,t]),t}ky.registerClass(Ec);g={seriesType:"lines",reset:function(t){var e=SN(t.get("symbol")),n=SN(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=SN((i=t.getItemModel(e)).getShallow("symbol",!0)),i=SN(i.getShallow("symbolSize",!0));n[0]&&t.setItemVisual(e,"fromSymbol",n[0]),n[1]&&t.setItemVisual(e,"toSymbol",n[1]),i[0]&&t.setItemVisual(e,"fromSymbolSize",i[0]),i[1]&&t.setItemVisual(e,"toSymbolSize",i[1])}:null}}};Zx(bN),qx(g);var MN,Ec=(l(IN,MN=yy),IN.prototype.getInitialData=function(t,e){return G_(this.getSource(),this,{generateCoord:"value"})},IN.prototype.preventIncremental=function(){var t=bf.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},IN.type="series.heatmap",IN.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},IN);function IN(){var t=null!==MN&&MN.apply(this,arguments)||this;return t.type=IN.type,t}yy.registerClass(Ec);var TN=(CN.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)return o;for(var n=h.getImageData(0,0,o.width,o.height),m=n.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}return h.putImageData(n,0,0),o},CN.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=M()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=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},CN.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},CN);function CN(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=M();this.canvas=t}var DN,g=(l(AN,DN=ky),AN.prototype.render=function(n,t,e){var i;t.eachComponent("visualMap",function(e){e.eachTargetSeries(function(t){t===n&&(i=e)})}),this.group.removeAll(),this._incrementalDisplayable=null;var o=n.coordinateSystem;"cartesian2d"===o.type||"calendar"===o.type?this._renderOnCartesianAndCalendar(n,e,0,n.getData().count()):"lng"===(t=(t=o).dimensions)[0]&&"lat"===t[1]&&this._renderOnGeo(o,n,i,e)},AN.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},AN.prototype.incrementalRender=function(t,e,n,i){e.coordinateSystem&&this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)},AN.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,o){var r,a,s,l,u,h,c=t.coordinateSystem;CS(c,"cartesian2d")&&(u=c.getAxis("x"),h=c.getAxis("y"),r=u.getBandWidth(),a=h.getBandWidth(),s=u.scale.getExtent(),l=h.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=wc(t),v=t.get(["emphasis","focus"]),x=t.get(["emphasis","blurScope"]),_=CS(c,"cartesian2d")?[d.mapDimension("x"),d.mapDimension("y"),d.mapDimension("value")]:[d.mapDimension("time"),d.mapDimension("value")],b=n;b<i;b++){var w=void 0;if(CS(c,"cartesian2d")){var S=d.get(_[0],b),M=d.get(_[1],b);if(isNaN(d.get(_[2],b))||S<s[0]||S>s[1]||M<l[0]||M>l[1])continue;M=c.dataToPoint([S,M]),w=new pa({shape:{x:Math.floor(Math.round(M[0])-r/2),y:Math.floor(Math.round(M[1])-a/2),width:Math.ceil(r),height:Math.ceil(a)},style:d.getItemVisual(b,"style")})}else{if(isNaN(d.get(_[1],b)))continue;w=new pa({z2:1,shape:c.dataToRect([d.get(_[0],b)]).contentShape,style:d.getItemVisual(b,"style")})}M=d.getItemModel(b);d.hasItemOption&&(f=(I=M.getModel("emphasis")).getModel("itemStyle").getItemStyle(),g=M.getModel(["blur","itemStyle"]).getItemStyle(),y=M.getModel(["select","itemStyle"]).getItemStyle(),v=I.get("focus"),x=I.get("blurScope"),m=wc(M));var I=t.getRawValue(b),M="-";I&&null!=I[2]&&(M=I[2]+""),bc(w,m,{labelFetcher:t,labelDataIndex:b,defaultText:M}),w.ensureState("emphasis").style=f,w.ensureState("blur").style=g,w.ensureState("select").style=y,sc(w,v,x),(w.incremental=o)&&(w.states.emphasis.hoverLayer=!0),p.add(w),d.setItemGraphicEl(b,w)}},AN.prototype._renderOnGeo=function(i,t,e,n){var o=e.targetVisuals.inRange,r=e.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new TN;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=i.getViewRect().clone(),u=i.getRoamTransform();l.applyTransform(u);var h,c,p,d,f,g,y,m=Math.max(l.x,0),v=Math.max(l.y,0),x=Math.min(l.width+l.x,n.getWidth()),t=Math.min(l.height+l.y,n.getHeight()),u=x-m,l=t-v,n=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],x=a.mapArray(n,function(t,e,n){e=i.dataToPoint([t,e]);return e[0]-=m,e[1]-=v,e.push(n),e}),t=e.getExtent(),e="visualMap.continuous"===e.type?(a=t,y=e.option.range,n=a[1]-a[0],y=[(y[0]-a[0])/n,(y[1]-a[0])/n],function(t){return t>=y[0]&&t<=y[1]}):(h=t,c=e.getPieceList(),p=e.option.selected,d=h[1]-h[0],f=(c=L(c,function(t){return{interval:[(t.interval[0]-h[0])/d,(t.interval[1]-h[0])/d]}})).length,g=0,function(t){for(var e,n=g;n<f;n++){if((e=c[n].interval)[0]<=t&&t<=e[1]){g=n;break}}if(n===f)for(n=g-1;0<=n;n--){if((e=c[n].interval)[0]<=t&&t<=e[1]){g=n;break}}return 0<=n&&n<f&&p[n]});s.update(x,u,l,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:r.color.getColorMapper()},e);s=new Qr({style:{width:u,height:l,x:m,y:v,image:s.canvas},silent:!0});this.group.add(s)},AN.type="heatmap",AN);function AN(){var t=null!==DN&&DN.apply(this,arguments)||this;return t.type=AN.type,t}ky.registerClass(g);var kN,Ec=(l(LN,kN=rp),LN.prototype.getInitialData=function(t){return t.stack=null,kN.prototype.getInitialData.apply(this,arguments)},LN.type="series.pictorialBar",LN.dependencies=["grid"],LN.defaultOption=Uc(rp.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"}}}),LN);function LN(){var t=null!==kN&&kN.apply(this,arguments)||this;return t.type=LN.type,t.hasSymbolVisual=!0,t.defaultSymbol="roundRect",t}yy.registerClass(Ec);var PN,NN=["itemStyle","borderWidth"],ON=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],RN=new ia,g=(l(EN,PN=ky),EN.prototype.render=function(t,e,n){var o=this.group,r=t.getData(),a=this._data,i=t.coordinateSystem,s=i.getBaseAxis().isHorizontal(),l=i.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:i,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:ON[+s],categoryDim:ON[1-+s]};return r.diff(a).add(function(t){var e,n;r.hasValue(t)&&(n=XN(r,t),e=zN(r,t,n,u),n=ZN(r,u,e),r.setItemGraphicEl(t,n),o.add(n),JN(n,u,e))}).update(function(t,e){var n,i=a.getItemGraphicEl(e);r.hasValue(t)?(n=XN(r,t),e=zN(r,t,n,u),n=jN(r,e),i&&n!==i.__pictorialShapeStr&&(o.remove(i),r.setItemGraphicEl(t,null),i=null),i?function(t,e,n){var i=n.animationModel,o=n.dataIndex;Fp(t.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,o),(n.symbolRepeat?FN:GN)(t,e,n,!0);HN(t,n,!0),WN(t,e,n,!0)}(i,u,e):i=ZN(r,u,e,!0),r.setItemGraphicEl(t,i),i.__pictorialSymbolMeta=e,o.add(i),JN(i,u,e)):o.remove(i)}).remove(function(t){var e=a.getItemGraphicEl(t);e&&qN(a,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=r,this.group},EN.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl(function(t){qN(i,_h(t).dataIndex,e,t)}):n.removeAll()},EN.type="pictorialBar",EN);function EN(){var t=null!==PN&&PN.apply(this,arguments)||this;return t.type=EN.type,t}function zN(t,e,n,i){var o=t.getItemLayout(e),r=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=(n.get("symbolRotate")||0)*Math.PI/180||0,u=n.get("symbolPatternSize")||2,h=n.isAnimationEnabled(),h={dataIndex:e,layout:o,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:r,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:u,rotation:l,animationModel:h?n:null,hoverScale:h&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};!function(t,e,n,i,o){var r=i.valueDim,a=t.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-(n[r.wh]<=0);{l=F(a)?((t=[BN(s,a[0])-l,BN(s,a[1])-l])[1]<t[0]&&t.reverse(),t[u]):null!=a?BN(s,a)-l:e?i.coordSysExtent[r.index][u]-l:n[r.wh]}o.boundingLength=l,e&&(o.repeatCutLength=n[r.wh]);o.pxSign=0<l?1:l<0?-1:0}(n,r,o,i,h),function(t,e,n,i,o,r,a,s,l){var u=s.valueDim,h=s.categoryDim,n=Math.abs(n[h.wh]),e=t.getItemVisual(e,"symbolSize");e=F(e)?e.slice():null==e?["100%","100%"]:[e,e];e[h.index]=gu(e[h.index],n),e[u.index]=gu(e[u.index],i?n:Math.abs(o)),l.symbolSize=e,(l.symbolScale=[e[0]/a,e[1]/a])[u.index]*=(s.isHorizontal?-1:1)*r}(t,e,o,r,h.boundingLength,h.pxSign,u,i,h),function(t,e,n,i,o){t=t.get(NN)||0;t&&(RN.attr({scaleX:e[0],scaleY:e[1],rotation:n}),RN.updateTransform(),t/=RN.getLineScale(),t*=e[i.valueDim.index]);o.valueLineWidth=t}(n,h.symbolScale,l,i,h);u=h.symbolSize,l=n.get("symbolOffset");return F(l)&&(l=[gu(l[0],u[0]),gu(l[1],u[1])]),function(t,e,n,i,o,r,a,s,l,u,h){var c=u.categoryDim,p=u.valueDim,d=h.pxSign,f=Math.max(e[p.index]+a,0),g=f;{var y,m,v;i&&(y=Math.abs(s),v=Q(t.get("symbolMargin"),"15%")+"",m=!1,v.lastIndexOf("!")===v.length-1&&(m=!0,v=v.slice(0,v.length-1)),x=gu(v,e[p.index]),a=Math.max(f+2*x,0),t=m?0:2*x,v=Nu(i),e=v?i:QN((y+t)/a),a=f+2*(x=(y-e*f)/2/(m?e:e-1)),t=m?0:2*x,v||"fixed"===i||(e=l?QN((Math.abs(l)+t)/a):0),g=e*a-t,h.repeatTimes=e,h.symbolMargin=x)}var x=d*(g/2),g=h.pathPosition=[];g[c.index]=n[c.wh]/2,g[p.index]="start"===r?x:"end"===r?s-x:s/2,o&&(g[0]+=o[0],g[1]+=o[1]);o=h.bundlePosition=[];o[c.index]=n[c.xy],o[p.index]=n[p.xy];o=h.barRectShape=N({},n);o[p.wh]=d*Math.max(Math.abs(n[p.wh]),Math.abs(g[p.index]+x)),o[c.wh]=n[c.wh];h=h.clipShape={};h[c.xy]=-n[c.xy],h[c.wh]=u.ecSize[c.wh],h[p.xy]=0,h[p.wh]=n[p.wh]}(n,u,o,r,l,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,i,h),h}function BN(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function VN(t){var e=t.symbolPatternSize,e=ow(t.symbolType,-e/2,-e/2,e,e);return e.attr({culling:!0}),"image"!==e.type&&e.setStyle({strokeNoScale:!0}),e}function FN(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(KN(t,function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h<u?$N(t,null,f(h),o,n):$N(t,null,{scaleX:0,scaleY:0},o,n,function(){i.remove(t)}),h++});h<u;h++){var p=VN(o);p.__pictorialAnimationIndex=h,p.__pictorialRepeatTimes=u,i.add(p);var d=f(h);$N(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.index],{x:e[0],y:e[1],scaleX:o.symbolScale[0],scaleY:o.symbolScale[1],rotation:o.rotation}}}function GN(t,e,n,i){var o=t.__pictorialBundle,r=t.__pictorialMainPath;r?$N(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=VN(n),o.add(r),$N(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 HN(t,e,n){var i=N({},e.barRectShape),o=t.__pictorialBarRect;o?$N(o,null,{shape:i},e,n):(o=t.__pictorialBarRect=new pa({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(o))}function WN(t,e,n,i){var o,r,a,s;n.symbolClip&&(o=t.__pictorialClipPath,r=N({},n.clipShape),a=e.valueDim,s=n.animationModel,e=n.dataIndex,o?Fp(o,{shape:r},s,e):(r[a.wh]=0,o=new pa({shape:r}),t.__pictorialBundle.setClipPath(o),t.__pictorialClipPath=o,(t={})[a.wh]=n.clipShape[a.wh],od[i?"updateProps":"initProps"](o,{shape:t},s,e)))}function XN(t,e){e=t.getItemModel(e);return e.getAnimationDelayParams=YN,e.isAnimationEnabled=UN,e}function YN(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function UN(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function ZN(t,e,n,i){var o=new qr,r=new qr;return o.add(r),(o.__pictorialBundle=r).x=n.bundlePosition[0],r.y=n.bundlePosition[1],n.symbolRepeat?FN(o,e,n):GN(o,0,n),HN(o,n,i),WN(o,e,n,i),o.__pictorialShapeStr=jN(t,n),o.__pictorialSymbolMeta=n,o}function qN(t,e,n,i){var o=i.__pictorialBarRect;o&&o.removeTextContent();var r=[];KN(i,function(t){r.push(t)}),i.__pictorialMainPath&&r.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),R(r,function(t){Hp(t,{scaleX:0,scaleY:0},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function jN(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function KN(e,n,i){R(e.__pictorialBundle.children(),function(t){t!==e.__pictorialBarRect&&n.call(i,t)})}function $N(t,e,n,i,o,r){e&&t.attr(e),i.symbolClip&&!o?n&&t.attr(n):n&&od[o?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,r)}function JN(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");KN(t,function(t){t instanceof Qr?(e=t.style,t.useStyle(N({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,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});r=e.valueDim.posDesc[+(0<n.boundingLength)];bc(t.__pictorialBarRect,wc(o),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:qw(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOutsidePosition:r}),sc(t,h,c)}function QN(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}ky.registerClass(g),Zx(V(gb,"pictorialBar"));var tO,eO=(l(nO,tO=Bc),nO.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},nO.prototype.pointToData=function(t,e){return this.coordinateSystem.pointToData(t)[0]},nO);function nO(t,e,n,i,o){n=tO.call(this,t,e,n)||this;return n.type=i||"value",n.position=o||"bottom",n}var iO=(oO.prototype._init=function(t,e,n){var i=this.dimension,o=new eO(i,Xb(t),[0,0],t.get("type"),t.get("position")),i="category"===o.type;o.onBand=i&&t.get("boundaryGap"),o.inverse=t.get("inverse"),o.orient=t.get("orient"),(t.axis=o).model=t,(o.coordinateSystem=this)._axis=o},oO.prototype.update=function(t,e){t.eachSeries(function(t){var e;t.coordinateSystem===this&&(R((e=t.getData()).mapDimensionsAll(this.dimension),function(t){this._axis.scale.unionExtentFromData(e,t)},this),Wb(this._axis.scale,this._axis.model))},this)},oO.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()},oO.prototype.getRect=function(){return this._rect},oO.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],o=e.reverse?1:0;e.setExtent(i[o],i[1-o]),this._updateAxisTransform(e,n?t.x:t.y)},oO.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}},oO.prototype.getAxis=function(){return this._axis},oO.prototype.getBaseAxis=function(){return this._axis},oO.prototype.getAxes=function(){return[this._axis]},oO.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},oO.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},oO.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},oO.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},oO.prototype.convertToPixel=function(t,e,n){return rO(e)===this?this.dataToPoint(n):null},oO.prototype.convertFromPixel=function(t,e,n){return rO(e)===this?this.pointToData(n):null},oO);function oO(t,e,n){this.type="single",this.dimension="single",this.dimensions=["single"],this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}function rO(t){var e=t.seriesModel,t=t.singleAxisModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function aO(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,o={},r=i.position,a=i.orient,i=n.getRect(),n=[i.x,i.x+i.width,i.y,i.y+i.height],i={horizontal:{top:n[2],bottom:n[3]},vertical:{left:n[0],right:n[1]}};o.position=["vertical"===a?i.vertical[r]:n[0],"horizontal"===a?i.horizontal[r]:n[3]];o.rotation=Math.PI/2*{horizontal:0,vertical:1}[a];o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,right:1,left:-1}[r],t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Q(e.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);e=e.rotate;return null==e&&(e=t.get(["axisLabel","rotate"])),o.labelRotation="top"===r?-e:e,o.z2=1,o}bf.register("single",{create:function(i,o){var r=[];return i.eachComponent("singleAxis",function(t,e){var n=new iO(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",th).models[0],t.coordinateSystem=e&&e.coordinateSystem)}),r},dimensions:iO.prototype.dimensions});var sO,lO=["axisLine","axisTickLabel","axisName"],uO=["splitArea","splitLine"],rp=(l(hO,sO=Na),hO.prototype.render=function(e,t,n,i){var o=this.group;o.removeAll();var r=this._axisGroup;this._axisGroup=new qr;var a=aO(e),a=new ZS(e,a);R(lO,a.add,a),o.add(this._axisGroup),o.add(a.getGroup()),R(uO,function(t){e.get([t,"show"])&&cO[t](this,this.group,this._axisGroup,e)},this),Qp(r,this._axisGroup,e),sO.prototype.render.call(this,e,t,n,i)},hO.prototype.remove=function(){dM(this)},hO.type="singleAxis",hO);function hO(){var t=null!==sO&&sO.apply(this,arguments)||this;return t.type=hO.type,t.axisPointerClass="SingleAxisPointer",t}var cO={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=i.coordinateSystem.getRect(),u=o.isHorizontal(),h=[],c=0,p=o.getTicksCoords({tickModel:r}),d=[],f=[],g=0;g<p.length;++g){var y=o.toGlobalCoord(p[g].coord);u?(d[0]=y,d[1]=l.y,f[0]=y,f[1]=l.y+l.height):(d[0]=l.x,d[1]=y,f[0]=l.x+l.width,f[1]=y);y=c++%s.length;h[y]=h[y]||[],h[y].push(new ba({subPixelOptimize:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},silent:!0}))}for(var m=a.getLineStyle(["color"]),g=0;g<h.length;++g)e.add(Ep(h[g],{style:A({stroke:s[g%s.length]},m),silent:!0}))}},splitArea:function(t,e,n,i){pM(t,n,i,i)}};Iy.registerClass(rp);var pO,Ec=(l(dO,pO=Ed),dO.prototype.getCoordSysModel=function(){return this},dO.type="singleAxis",dO.layoutMode="box",dO.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}}},dO);function dO(){var t=null!==pO&&pO.apply(this,arguments)||this;return t.type=dO.type,t}function fO(t,e){var n=[],i=t.seriesIndex;if(null==i||!(a=e.getSeriesByIndex(i)))return{point:[]};var o=a.getData(),r=Ku(o,t);if(null==r||r<0||F(r))return{point:[]};var a,s=o.getItemGraphicEl(r),e=a.coordinateSystem;return a.getTooltipPosition?n=a.getTooltipPosition(r)||[]:e&&e.dataToPoint?n=t.isStacked?(i=e.getBaseAxis(),a=e.getOtherAxis(i).dim,t=i.dim,i="x"===a||"radius"===a?1:0,a=o.mapDimension(t),(t=[])[i]=o.get(a,r),t[1-i]=o.get(o.getCalculationInfo("stackResultDimension"),r),e.dataToPoint(t)||[]):e.dataToPoint(o.getValues(L(e.dimensions,function(t){return o.mapDimension(t)}),r))||[]:s&&((r=s.getBoundingRect().clone()).applyTransform(s.transform),n=[r.x+r.width/2,r.y+r.height/2]),{point:n,el:s}}Ed.registerClass(Ec),T(Ec,Jb.prototype),HS("single",Ec,Ec.defaultOption);var gO=$u();function yO(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?(f=(r=(a=e,s=(d=t).axis,l=s.dim,u=a,h=[],c=Number.MAX_VALUE,p=-1,R(d.seriesModels,function(e,t){var n=e.getData().mapDimensionsAll(l);if(e.getAxisTooltipData)var i=e.getAxisTooltipData(n,a,s),o=i.dataIndices,r=i.nestestValue;else{if(!(o=e.getData().indicesOfNearest(n[0],a,"category"===s.type?.5:null)).length)return;r=e.getData().get(n[0],o[0])}null!=r&&isFinite(r)&&(i=a-r,(n=Math.abs(i))<=c&&((n<c||0<=i&&p<0)&&(c=n,p=i,u=r,h.length=0),R(o,function(t){h.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}),{payloadBatch:h,snapToValue:u})).snapToValue,(d=r.payloadBatch)[0]&&null==o.seriesIndex&&N(o,d[0]),!i&&t.snap&&g.containData(f)&&null!=f&&(e=f),n.showPointer(t,e,d),n.showTooltip(t,r,f)):n.showPointer(t,e))}function mO(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function vO(t,e,n,i){var o,r=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&r.length&&(n=oM(o=e.coordSys.model),(e=t.map[n])||(e=t.map[n]={coordSysId:o.id,coordSysIndex:o.componentIndex,coordSysType:o.type,coordSysMainType:o.mainType,dataByAxis:[]},t.list.push(e)),e.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:r.slice()}))}function xO(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 _O(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}var bO=$u(),wO=R;function SO(t,e,n){var i;v.node||(i=e.getZr(),bO(i).records||(bO(i).records={}),function(s,l){if(bO(s).initialized)return;function t(t,a){s.on(t,function(e){var n,i,o,r=(n=l,{dispatchAction:o=function(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=o,n.dispatchAction(t))},pendings:i={showTip:[],hideTip:[]}});wO(bO(s).records,function(t){t&&a(t,e,r.dispatchAction)}),function(t,e){var n,i=t.showTip.length,o=t.hideTip.length;i?n=t.showTip[i-1]:o&&(n=t.hideTip[o-1]);n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,l)})}bO(s).initialized=!0,t("click",V(IO,"click")),t("mousemove",V(IO,"mousemove")),t("globalout",MO)}(i,e),(bO(i).records[t]||(bO(i).records[t]={})).handler=n)}function MO(t,e,n){t.handler("leave",null,n)}function IO(t,e,n,i){e.handler(t,n,i)}function TO(t,e){v.node||(e=e.getZr(),(bO(e).records||{})[t]&&(bO(e).records[t]=null))}var CO,g=(l(DO,CO=Iy),DO.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";SO("axisPointer",n,function(t,e,n){"none"!==i&&("leave"===t||0<=i.indexOf(t))&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},DO.prototype.remove=function(t,e){TO("axisPointer",e)},DO.prototype.dispose=function(t,e){TO("axisPointer",e)},DO.type="axisPointer",DO);function DO(){var t=null!==CO&&CO.apply(this,arguments)||this;return t.type=DO.type,t}Iy.registerClass(g);var AO=$u(),kO=C,LO=B,rp=(PO.prototype.render=function(t,e,n,i){var o=e.get("value"),r=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==o||this._lastStatus!==r){this._lastValue=o,this._lastStatus=r;var a=this._group,i=this._handle;if(!r||"hide"===r)return a&&a.hide(),void(i&&i.hide());a&&a.show(),i&&i.show();r={};this.makeElOption(r,o,t,e,n);i=r.graphicKey;i!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=i;i=this._moveAnimation=this.determineAnimation(t,e);a?(i=V(NO,e,i),this.updatePointerEl(a,r,i),this.updateLabelEl(a,r,i,e)):(a=this._group=new qr,this.createPointerEl(a,r,t,e),this.createLabelEl(a,r,t,e),n.getZr().add(a)),EO(a,e,!0),this._renderHandle(o)}},PO.prototype.remove=function(t){this.clear(t)},PO.prototype.dispose=function(t){this.clear(t)},PO.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,o="category"===i.type,e=e.get("snap");if(!e&&!o)return!1;if("auto"!==n&&null!=n)return!0===n;n=this.animationThreshold;if(o&&i.getBandWidth()>n)return!0;if(e){t=nM(t).seriesDataCount,i=i.getExtent();return Math.abs(i[0]-i[1])/t>n}return!1},PO.prototype.makeElOption=function(t,e,n,i,o){},PO.prototype.createPointerEl=function(t,e,n,i){var o=e.pointer;o&&(e=AO(t).pointerEl=new od[o.type](kO(e.pointer)),t.add(e))},PO.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=AO(t).labelEl=new Rs(kO(e.label)),t.add(e),OO(e,i))},PO.prototype.updatePointerEl=function(t,e,n){t=AO(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},PO.prototype.updateLabelEl=function(t,e,n,i){t=AO(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),OO(t,i))},PO.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),o=this._handle,r=n.getModel("handle"),a=n.get("status");if(!r.get("show")||!a||"hide"===a)return o&&i.remove(o),void(this._handle=null);this._handle||(e=!0,o=this._handle=ed(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){ie(t.event)},onmousedown:LO(this._onHandleDragMove,this,0,0),drift:LO(this._onHandleDragMove,this),ondragend:LO(this._onHandleDragEnd,this)}),i.add(o)),EO(o,n,!1),o.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));n=r.get("size");F(n)||(n=[n,n]),o.scaleX=n[0]/2,o.scaleY=n[1]/2,Gy(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},PO.prototype._moveHandleToValue=function(t,e){NO(this._axisPointerModel,!e&&this._moveAnimation,this._handle,RO(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},PO.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,e=this.updateHandleTransform(RO(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=e,n.stopAnimation(),n.attr(RO(e)),AO(n).lastProp=null,this._doDispatchAxisPointer())},PO.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}]}))},PO.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},PO.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,t=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),t&&e.remove(t),this._group=null,this._handle=null,this._payloadInfo=null)},PO.prototype.doClear=function(){},PO.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},PO);function PO(){this._dragging=!1,this.animationThreshold=15}function NO(t,e,n,i){!function n(i,t){{if(Y(i)&&Y(t)){var o=!0;return R(t,function(t,e){o=o&&n(i[e],t)}),!!o}return i===t}}(AO(n).lastProp,i)&&(AO(n).lastProp=i,e?Fp(n,i,t):(n.stopAnimation(),n.attr(i)))}function OO(t,e){t[e.get(["label","show"])?"show":"hide"]()}function RO(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function EO(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 zO(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 BO(t,e,n,i,o){var r=VO(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=sd(a.get("padding")||0),l=a.getFont(),u=Ni(r,l),h=o.position,c=u.width+s[1]+s[3],n=u.height+s[0]+s[2],u=o.align;"right"===u&&(h[0]-=c),"center"===u&&(h[0]-=c/2);u=o.verticalAlign;"bottom"===u&&(h[1]-=n),"middle"===u&&(h[1]-=n/2),o=h,u=c,c=n,i=(n=i).getWidth(),n=n.getHeight(),o[0]=Math.min(o[0]+u,i)-u,o[1]=Math.min(o[1]+c,n)-c,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0);o=a.get("backgroundColor");o&&"auto"!==o||(o=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:Sc(a,{text:r,font:l,fill:a.getTextColor(),padding:s,backgroundColor:o}),z2:10}}function VO(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:Ub(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},R(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,t=e&&e.getDataParams(t);t&&r.seriesData.push(t)}),H(o)?a=o.replace("{value}",a):G(o)&&(a=o(r))),a}function FO(t,e,n){var i=Kn();return ei(i,i,n.rotation),ti(i,i,n.position),Kp([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function GO(t,e,n,i,o,r){var a=ZS.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),BO(e,i,o,r,{position:FO(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function HO(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function WO(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function XO(t,e,n,i,o,r){return{cx:t,cy:e,r0:n,r:i,startAngle:o,endAngle:r,clockwise:!0}}var YO,Ec=(l(UO,YO=rp),UO.prototype.makeElOption=function(t,e,n,i,o){var r,a=n.axis,s=a.grid,l=i.get("type"),u=ZO(s,a).getOtherAxis(a).getGlobalExtent(),h=a.toGlobalCoord(a.dataToCoord(e,!0));l&&"none"!==l&&(r=zO(i),(u=qO[l](a,h,u)).style=r,t.graphicKey=u.type,t.pointer=u),GO(e,t,lM(s.model,n),n,i,o)},UO.prototype.getHandleTransform=function(t,e,n){var i=lM(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);t=FO(e.axis,t,i);return{x:t[0],y:t[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},UO.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,r=o.grid,a=o.getGlobalExtent(!0),n=ZO(r,o).getOtherAxis(o).getGlobalExtent(),r="x"===o.dim?0:1,o=[t.x,t.y];o[r]+=e[r],o[r]=Math.min(a[1],o[r]),o[r]=Math.max(a[0],o[r]);n=(n[1]+n[0])/2,n=[n,n];n[r]=o[r];return{x:o[0],y:o[1],rotation:t.rotation,cursorPoint:n,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][r]}},UO);function UO(){return null!==YO&&YO.apply(this,arguments)||this}function ZO(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var qO={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:HO([e,n[0]],[e,n[1]],jO(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:WO([e-i/2,n[0]],[i,o],jO(t))}}};function jO(t){return"x"===t.dim?0:1}Na.registerAxisPointerClass("CartesianAxisPointer",Ec);var KO,g=(l($O,KO=Ed),$O.type="axisPointer",$O.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!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}},$O);function $O(){var t=null!==KO&&KO.apply(this,arguments)||this;return t.type=$O.type,t}Ed.registerClass(g),Wx(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),(e=t.axisPointer.link)&&!F(e)&&(t.axisPointer.link=[e]))}),Xx(Vd.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=tM(t,e)}),Yx({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},function(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||B(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){_O(r)&&(r=fO({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=_O(r),u=o.axesInfo,h=s.axesInfo,c="leave"===i||_O(r),p={},d={},o={list:[],map:{}},f={showPointer:V(mO,d),showTooltip:V(vO,o)};R(s.coordSysMap,function(t,e){var o=l||t.containPoint(r);R(s.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}}(u,t);c||!o||u&&!i||(null!=(i=i&&i.value)||l||(i=n.pointToData(r)),null!=i&&yO(t,i,f,!1,p))})});var g,y,m={};return R(h,function(n,t){var i=n.linkGroup;i&&!d[t]&&R(i.axesInfo,function(t,e){e=d[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,xO(t),xO(n)))),m[n.key]=e)})}),R(m,function(t,e){yO(h[e],t,f,!0,p)}),g=d,i=h,y=p.axesInfo=[],R(i,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})}),function(t,e,n,i){if(_O(e)||!t.list.length)return i({type:"hideTip"});var o=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:t.list})}(o,r,t,a),function(t,e){var n=e.getZr(),i="axisPointerLastHighlights",o=gO(n)[i]||{},r=gO(n)[i]={};R(t,function(t,e){t=t.axisPointerModel.option;"show"===t.status&&R(t.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;r[e]=t})});var a=[],s=[];R(o,function(t,e){r[e]||s.push(t)}),R(r,function(t,e){o[e]||a.push(t)}),s.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),a.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}(h,n),p}});var JO,QO=["x","y"],tR=["width","height"],Ec=(l(eR,JO=rp),eR.prototype.makeElOption=function(t,e,n,i,o){var r=n.axis,a=r.coordinateSystem,s=oR(a,1-iR(r)),l=a.dataToPoint(e)[0],u=i.get("type");u&&"none"!==u&&(a=zO(i),(s=nR[u](r,l,s)).style=a,t.graphicKey=s.type,t.pointer=s),GO(e,t,aO(n),n,i,o)},eR.prototype.getHandleTransform=function(t,e,n){var i=aO(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);t=FO(e.axis,t,i);return{x:t[0],y:t[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},eR.prototype.updateHandleTransform=function(t,e,n,i){var o=n.axis,r=o.coordinateSystem,a=iR(o),n=oR(r,a),o=[t.x,t.y];o[a]+=e[a],o[a]=Math.min(n[1],o[a]),o[a]=Math.max(n[0],o[a]);r=oR(r,1-a),r=(r[1]+r[0])/2,r=[r,r];return r[a]=o[a],{x:o[0],y:o[1],rotation:t.rotation,cursorPoint:r,tooltipOption:{verticalAlign:"middle"}}},eR);function eR(){return null!==JO&&JO.apply(this,arguments)||this}var nR={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:HO([e,n[0]],[e,n[1]],iR(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),o=n[1]-n[0];return{type:"Rect",shape:WO([e-i/2,n[0]],[i,o],iR(t))}}};function iR(t){return t.isHorizontal()?0:1}function oR(t,e){t=t.getRect();return[t[QO[e]],t[QO[e]]+t[tR[e]]]}Na.registerAxisPointerClass("SingleAxisPointer",Ec),Jx({type:"single"});var rR,g=(l(aR,rR=yy),aR.prototype.init=function(t){rR.prototype.init.apply(this,arguments),this.legendVisualProvider=new vI(B(this.getData,this),B(this.getRawData,this))},aR.prototype.fixData=function(t){var e=t.length,n={},i=oh(t,function(t){return n.hasOwnProperty(t[0]+"")||(n[t[0]+""]=-1),t[2]}),o=[];i.buckets.each(function(t,e){o.push({name:e,dataList:t})});for(var r=o.length,a=0;a<r;++a){for(var s=o[a].name,l=0;l<o[a].dataList.length;++l){var u=o[a].dataList[l][0]+"";n[u]=a}for(u in n)n.hasOwnProperty(u)&&n[u]!==a&&(n[u]=a,t[e]=[u,0,s],e++)}return t},aR.prototype.getInitialData=function(t,e){for(var n=this.getReferringComponents("singleAxis",th).models[0].get("type"),t=O(t.data,function(t){return void 0!==t[2]}),i=this.fixData(t||[]),o=[],r=this.nameMap=ct(),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++);n=O_(i,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:o_(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),n=new A_(n,this);return n.initData(i),n},aR.prototype.getLayerSeries=function(){for(var n=this.getData(),t=n.count(),e=[],i=0;i<t;++i)e[i]=i;var o=n.mapDimension("single"),r=oh(e,function(t){return n.get("name",t)}),a=[];return r.buckets.each(function(t,e){t.sort(function(t,e){return n.get(o,t)-n.get(o,e)}),a.push({name:e,indices:t})}),a},aR.prototype.getAxisTooltipData=function(t,e,n){F(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}},aR.prototype.formatTooltip=function(t,e,n){var i=this.getData();return ey("nameValue",{name:i.getName(t),value:i.get(i.mapDimension("value"),t)})},aR.type="series.themeRiver",aR.dependencies=["singleAxis"],aR.defaultOption={zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},aR);function aR(){var t=null!==rR&&rR.apply(this,arguments)||this;return t.type=aR.type,t.useColorPaletteOnData=!0,t}yy.registerClass(g);var sR,Ec=(l(lR,sR=ky),lR.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 n=new t_(this._layersSeries||[],M,o,o),I=[];function r(t,e,n){var i=w._layers;if("remove"!==t){for(var o,r=[],a=[],s=M[e].indices,l=0;l<s.length;l++){var u=b.getItemLayout(s[l]),h=u.x,c=u.y0,u=u.y;r.push(h,c),a.push(h,c+u),o=b.getItemVisual(s[l],"style")}var p,d,f,g,y=b.getItemLayout(s[0]),m=_.getModel("label").get("margin"),v=_.getModel("emphasis");"add"===t?(x=I[e]=new qr,p=new wS({shape:{points:r,stackedOnPoints:a,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),x.add(p),S.add(x),_.isAnimationEnabled()&&p.setClipPath((d=p.getBoundingRect(),f=_,g=function(){p.removeClipPath()},Gp(t=new pa({shape:{x:d.x-10,y:d.y-10,width:0,height:d.height+20}}),{shape:{x:d.x-50,width:d.width+100,height:d.height+20}},f,g),t))):(x=i[n],p=x.childAt(0),S.add(x),I[e]=x,Fp(p,{shape:{points:r,stackedOnPoints:a}},_)),bc(p,wc(_),{labelDataIndex:s[l-1],defaultText:b.getName(s[l-1]),inheritColor:o.fill},{normal:{verticalAlign:"middle"}}),p.setTextConfig({position:null,local:!0});var x=p.getTextContent();x&&(x.x=y.x-m,x.y=y.y0+y.y/2),p.useStyle(o),b.setItemGraphicEl(e,p),cc(p,_),sc(p,v.get("focus"),v.get("blurScope"))}else S.remove(i[e])}n.add(B(r,this,"add")).update(B(r,this,"update")).remove(B(r,this,"remove")).execute(),this._layersSeries=M,this._layers=I},lR.type="themeRiver",lR);function lR(){var t=null!==sR&&sR.apply(this,arguments)||this;return t.type=lR.type,t._layers=[],t}function uR(n,t,e){if(n.count())for(var i,o=t.coordinateSystem,r=t.getLayerSeries(),a=n.mapDimension("single"),s=n.mapDimension("value"),l=L(r,function(t){return L(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})}}ky.registerClass(Ec),Zx(function(t,e){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),n=t.coordinateSystem,i={},o=n.getRect();i.rect=o;var r=t.get("boundaryGap"),n=n.getAxis();i.boundaryGap=r,"horizontal"===n.orient?(r[0]=gu(r[0],o.height),r[1]=gu(r[1],o.height),uR(e,t,o.height-r[0]-r[1])):(r[0]=gu(r[0],o.width),r[1]=gu(r[1],o.width),uR(e,t,o.width-r[0]-r[1])),e.setLayout("layoutInfo",i)})}),Xx(OI("themeRiver"));var hR,g=(l(cR,hR=yy),cR.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};!function e(t){var n=0;R(t.children,function(t){e(t);var t=t.value;F(t)&&(t=t[0]),n+=t});var i=t.value;F(i)&&(i=i[0]);null!=i&&!isNaN(i)||(i=n);i<0&&(i=0);F(t.value)?t.value[0]=i:t.value=i}(n);var i=L(t.levels||[],function(t){return new Hc(t,this,e)},this),o=pC.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},cR.prototype.optionUpdated=function(){this.resetViewRoot()},cR.prototype.getDataParams=function(t){var e=hR.prototype.getDataParams.apply(this,arguments),t=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=BC(t,this),e},cR.prototype.getViewRoot=function(){return this._viewRoot},cR.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)},cR.type="series.sunburst",cR.defaultOption={zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],levels:[],sort:"desc"},cR);function cR(){var t=null!==hR&&hR.apply(this,arguments)||this;return t.type=cR.type,t.ignoreStyleOnData=!0,t}yy.registerClass(g);var pR,dR=(l(fR,pR=zl),fR.prototype.updateData=function(t,e,n,i){(this.node=e).piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;_h(o).dataIndex=e.dataIndex;var r=e.getModel(),a=r.getModel("emphasis"),s=e.getLayout(),l=N({},s);l.label=null;var u=e.getVisual("style");u.lineJoin="bevel";var h=TI(r.getModel("itemStyle"),l);N(l,h),R(Ch,function(t){var e=o.ensureState(t),t=r.getModel([t,"itemStyle"]);e.style=t.getItemStyle();t=TI(t,l);t&&(e.shape=t)}),t?(o.setShape(l),o.shape.r=s.r0,Fp(o,{shape:{r:s.r}},n,e.dataIndex)):Fp(o,{shape:l},n),o.useStyle(u),this._updateLabel(n);u=r.getShallow("cursor");u&&o.attr("cursor",u),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;i=a.get("focus");sc(this,("ancestor"===i?e.getAncestorsIndices():"descendant"===i?e.getDescendantIndices():null)||i,a.get("blurScope"))},fR.prototype._updateLabel=function(s){var l=this,u=this.node.getModel(),n=u.getModel("label"),h=this.node.getLayout(),c=h.endAngle-h.startAngle,p=(h.startAngle+h.endAngle)/2,d=Math.cos(p),f=Math.sin(p),g=this,y=g.getTextContent(),m=this.node.dataIndex;function v(t,e){t=t.get(e);return null==t?n.get(e):t}R(Dh,function(t){var e="normal"===t?u.getModel("label"):u.getModel([t,"label"]),n=e.get("minAngle")/180*Math.PI,i="normal"===t,o=i?y:y.ensureState(t),r=s.getFormattedLabel(m,t);i&&(r=r||l.node.name),o.style=Sc(e,{},null,"normal"!==t,!0),r&&(o.style.text=r),o.ignore=null!=n&&Math.abs(c)<n;n=v(e,"position"),i=i?g:g.states[t],t=i.style.fill;i.textConfig={outsideFill:"inherit"===e.get("color")?t:null,inside:"outside"!==n};i=v(e,"distance")||0,t=v(e,"align");"outside"===n?(a=h.r+i,t=p>Math.PI/2?"right":"left"):t&&"center"!==t?"left"===t?(a=h.r0+i,p>Math.PI/2&&(t="right")):"right"===t&&(a=h.r-i,p>Math.PI/2&&(t="left")):(a=(h.r+h.r0)/2,t="center"),o.style.align=t,o.style.verticalAlign=v(e,"verticalAlign")||"middle",o.x=a*d+h.cx,o.y=a*f+h.cy;var a=v(e,"rotate"),e=0;"radial"===a?(e=-p)<-Math.PI/2&&(e+=Math.PI):"tangential"===a?(e=Math.PI/2-p)>Math.PI/2?e-=Math.PI:e<-Math.PI/2&&(e+=Math.PI):"number"==typeof a&&(e=a*Math.PI/180),o.rotation=e}),y.dirtyStyle()},fR);function fR(t,e,n){var i=pR.call(this)||this;i.z2=2,i.textConfig={inside:!0},_h(i).seriesIndex=e.seriesIndex;var o=new Rs({z2:4,silent:t.getModel().get(["label","silent"])});return i.setTextContent(o),i.updateData(!0,t,e,n),i}var gR="sunburstRootToNode";Yx({type:gR,update:"updateView"},function(o,t){t.eachComponent({mainType:"series",subType:"sunburst",query:o},function(t,e){var n=RC(o,[gR],t);{var i;n&&((i=t.getViewRoot())&&(o.direction=zC(i,n.node)?"rollUp":"drillDown"),t.resetViewRoot(n.node))}})});var yR="sunburstHighlight";Yx({type:yR,update:"none"},function(e,t,n){e=N({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},function(t){t=RC(e,[yR],t);t&&(e.dataIndex=t.node.dataIndex)}),n.dispatchAction(N(e,{type:"highlight"}))});Yx({type:"sunburstUnhighlight",update:"updateView"},function(t,e,n){t=N({},t),n.dispatchAction(N(t,{type:"downplay"}))});var mR,Ec=(l(vR,mR=ky),vR.prototype.render=function(o,r,t,e){var n=this;this.seriesModel=o,this.api=t,this.ecModel=r;var a=o.getData(),s=a.tree.root,i=o.getViewRoot(),l=this.group,u=o.get("renderLabelForZeroData"),h=[];i.eachNode(function(t){h.push(t)});var c,p,t=this._oldChildren||[];!function(n,i){if(0===n.length&&0===i.length)return;function t(t){return t.getId()}function e(t,e){!function(t,e){u||!t||t.getValue()||(t=null);{t!==s&&e!==s&&(e&&e.piece?t?(e.piece.updateData(!1,t,o,r),a.setItemGraphicEl(t.dataIndex,e.piece)):function(t){if(!t)return;t.piece&&(l.remove(t.piece),t.piece=null)}(e):t&&(e=new dR(t,o,r),l.add(e),a.setItemGraphicEl(t.dataIndex,e)))}}(null==t?null:n[t],null==e?null:i[e])}new t_(i,n,t,t).add(e).update(e).remove(V(e,null)).execute()}(h,t),c=s,0<(p=i).depth?(n.virtualPiece?n.virtualPiece.updateData(!1,c,o,r):(n.virtualPiece=new dR(c,o,r),l.add(n.virtualPiece)),p.piece.off("click"),n.virtualPiece.on("click",function(t){n._rootToNode(p.parentNode)})):n.virtualPiece&&(l.remove(n.virtualPiece),n.virtualPiece=null),this._initEvents(),this._oldChildren=h},vR.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"))&&vd(t,e.get("target",!0)||"_blank"),i=!0)})})},vR.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:gR,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},vR.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){e=t[0]-n.cx,t=t[1]-n.cy,t=Math.sqrt(e*e+t*t);return t<=n.r&&t>=n.r0}},vR.type="sunburst",vR);function vR(){var t=null!==mR&&mR.apply(this,arguments)||this;return t.type=vR.type,t}ky.registerClass(Ec);var xR=Math.PI/180;function _R(t,e){if("function"==typeof e)return t.sort(e);var i="asc"===e;return t.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 bR(i,o){return o=o||[0,0],L(["x","y"],function(t,e){var n=this.getAxis(t),t=o[e],e=i[e]/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(t-e)-n.dataToCoord(t+e))},this)}function wR(r,a){return a=a||[0,0],L([0,1],function(t){var e=a[t],n=r[t]/2,i=[],o=[];return i[t]=e-n,o[t]=e+n,i[1-t]=o[1-t]=a[1-t],Math.abs(this.dataToPoint(i)[t]-this.dataToPoint(o)[t])},this)}function SR(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 MR(o,r){return r=r||[0,0],L(["Radius","Angle"],function(t,e){var n=this["get"+t+"Axis"](),i=r[e],e=o[e]/2,e="category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-e)-n.dataToCoord(i+e));return"Angle"===t&&(e=e*Math.PI/180),e},this)}Zx(V(function(t,e,a){e.eachSeriesByType(t,function(t){var e=t.get("center"),n=t.get("radius");F(n)||(n=[0,n]),F(e)||(e=[e,e]);var i=a.getWidth(),o=a.getHeight(),l=Math.min(i,o),u=gu(e[0],i),h=gu(e[1],o),c=gu(n[0],l/2),i=gu(n[1],l/2),e=-t.get("startAngle")*xR,p=t.get("minAngle")*xR,d=t.getData().tree.root,o=t.getViewRoot(),f=o.depth,n=t.get("sort");null!=n&&!function e(t,n){var i=t.children||[];t.children=_R(i,n);i.length&&R(t.children,function(t){e(t,n)})}(o,n);var r=0;R(o.children,function(t){isNaN(t.getValue())||r++});var g=o.getValue(),y=Math.PI/(g||r)*2,m=0<o.depth,n=o.height-(m?-1:1),v=(i-c)/(n||1),x=t.get("clockwise"),_=t.get("stillShowZeroSum"),b=x?1:-1,w=function(t,e){if(t){var n,i,o,r,a,s=e;return t!==d&&(o=t.getValue(),(n=0===g&&_?y:o*y)<p&&(n=p),s=e+b*n,r=t.depth-f-(m?-1:1),i=c+v*r,o=c+v*(1+r),null!=(r=t.getModel()).get("r0")&&(i=gu(r.get("r0"),l/2)),null!=r.get("r")&&(o=gu(r.get("r"),l/2)),t.setLayout({angle:n,startAngle:e,endAngle:s,clockwise:x,cx:u,cy:h,r0:i,r:o})),t.children&&t.children.length&&(a=0,R(t.children,function(t){a+=w(t,e+a)})),s-e}};m&&(n=c+v,t=2*Math.PI,d.setLayout({angle:t,startAngle:e,endAngle:e+t,clockwise:x,cx:u,cy:h,r0:c,r:n})),w(o,e)})},"sunburst")),Xx(V(OI,"sunburst")),qx(function(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;return e=e.getColorFromPalette(i.name||i.dataIndex+"",r),1<t.depth&&"string"==typeof e&&(e=nn(e,(t.depth-1)/(n-1)*.5)),e}(t,n,o.root.height)),N(i.ensureUniqueItemVisual(t.dataIndex,"style"),e)})})});function IR(t,e){e&&(e.font=e.textFont||e.font,ft(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),ft(e,"textAlign")&&(t.align=e.textAlign),ft(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),ft(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),ft(e,"textWidth")&&(t.width=e.textWidth),ft(e,"textHeight")&&(t.height=e.textHeight),ft(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),ft(e,"textPadding")&&(t.padding=e.textPadding),ft(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),ft(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),ft(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),ft(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),ft(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),ft(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),ft(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function TR(t,e,n){var i=t;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);var o=0<=i.textPosition.indexOf("inside"),r=t.fill||"#000";CR(i,e);t=null==i.textFill;return o?t&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),i.textStroke||(i.textStroke=r),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(t&&(i.textFill=n.outsideFill||r),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,R(e.rich,function(t){CR(t,t)}),i}function CR(t,e){e&&(ft(e,"fill")&&(t.textFill=e.fill),ft(e,"stroke")&&(t.textStroke=e.fill),ft(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),ft(e,"font")&&(t.font=e.font),ft(e,"fontStyle")&&(t.fontStyle=e.fontStyle),ft(e,"fontWeight")&&(t.fontWeight=e.fontWeight),ft(e,"fontSize")&&(t.fontSize=e.fontSize),ft(e,"fontFamily")&&(t.fontFamily=e.fontFamily),ft(e,"align")&&(t.textAlign=e.align),ft(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),ft(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),ft(e,"width")&&(t.textWidth=e.width),ft(e,"height")&&(t.textHeight=e.height),ft(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),ft(e,"padding")&&(t.textPadding=e.padding),ft(e,"borderColor")&&(t.textBorderColor=e.borderColor),ft(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),ft(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),ft(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),ft(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),ft(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),ft(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),ft(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),ft(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),ft(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),ft(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var DR,AR=$u(),kR={x:1,y:1,scaleX:1,scaleY:1,originX:1,originY:1,rotation:1},LR=(z(kR).join(", "),{color:"fill",borderColor:"stroke"}),PR={symbol:1,symbolSize:1,symbolKeepAspect:1,legendSymbol:1,visualMeta:1,liftZ:1},NR="emphasis",OR="normal",g="blur",Ec="select",RR=[OR,NR,g,Ec],ER={normal:["itemStyle"],emphasis:[NR,"itemStyle"],blur:[g,"itemStyle"],select:[Ec,"itemStyle"]},zR={normal:["label"],emphasis:[NR,"label"],blur:[g,"label"],select:[Ec,"label"]},BR="e\0\0",VR={normal:{},emphasis:{},blur:{},select:{}},FR={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},GR={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:B(bR,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:B(wR,e)}}},singleAxis: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:B(SR,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]),n=r.dataToAngle(t[1]),t=i.coordToPoint([e,n]);return t.push(e,n*Math.PI/180),t},size:B(MR,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)}}}}},g=(l(HR,DR=yy),HR.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},HR.prototype.getInitialData=function(t,e){return G_(this.getSource(),this)},HR.prototype.getDataParams=function(t,e,n){e=DR.prototype.getDataParams.call(this,t,e);return n&&(e.info=AR(n).info),e},HR.type="series.custom",HR.dependencies=["grid","polar","geo","singleAxis","calendar"],HR.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},HR);function HR(){var t=null!==DR&&DR.apply(this,arguments)||this;return t.type=HR.type,t}Ed.registerClass(g);var WR,Ec=(l(XR,WR=ky),XR.prototype.render=function(n,t,e,i){var o=this._data,r=n.getData(),a=this.group,s=nE(n,r,t,e);r.diff(o).add(function(t){iE(null,t,s(t,i),n,a,r)}).update(function(t,e){iE(o.getItemGraphicEl(e),t,s(t,i),n,a,r)}).remove(function(t){pE(o.getItemGraphicEl(t),n,a)}).execute();e=n.get("clip",!0)?TS(n.coordinateSystem,!1,n):null;e?a.setClipPath(e):a.removeClipPath(),this._data=r},XR.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},XR.prototype.incrementalRender=function(t,e,n,i,o){var r=e.getData(),a=nE(e,r,n,i);function s(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var l=t.start;l<t.end;l++){iE(null,l,a(l,o),e,this.group,r).traverse(s)}},XR.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},XR.type="custom",XR);function XR(){var t=null!==WR&&WR.apply(this,arguments)||this;return t.type=XR.type,t}function YR(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=dE(n),n=Np(o,null,i,n.layout||"center");AR(n).customPathData=o}else if("image"===e)n=new Qr({}),AR(n).customImagePath=t.style.image;else if("text"===e)n=new Rs({});else if("group"===e)n=new qr;else{if("compoundPath"===e)throw new Error('"compoundPath" is not supported yet.');o=Pp(e);n=new o}return AR(n).customGraphicType=e,n.name=t.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function UR(t,e,n,i,o,r,a,s,l){var u={},h={},c=t.isGroup?null:t;ZR("shape",t,e,i,h,u,s),ZR("extra",t,e,i,h,u,s),function(t,e,n,i,o,r){var a=n.enterFrom,s=e||t;if(r&&a)for(var l=z(a),u=0;u<l.length;u++){var h=l[u];0,o[h]=a[h]}if(!r)if(n.transition)for(var c=Bu(n.transition),u=0;u<c.length;u++){var h=c[u],p=s[h];0,o[h]=p}else tE(n,o,"position",s),eE(n,o,"x",s),eE(n,o,"y",s);tE(n,i,"position"),tE(n,i,"scale"),tE(n,i,"origin"),eE(n,i,"x"),eE(n,i,"y"),eE(n,i,"scaleX"),eE(n,i,"scaleY"),eE(n,i,"originX"),eE(n,i,"originY"),eE(n,i,"rotation");var d=n.leaveTo;if(d)for(var f=qR(t),g=z(d),u=0;u<g.length;u++){h=g[u];0,f[h]=d[h]}}(t,e,i,h,u,s);r=r&&r.normal.cfg;if(r&&t.setTextConfig(r),"text"===t.type&&o&&(ft(g=o,"textFill")&&(g.fill=g.textFill),ft(g,"textStroke")&&(g.stroke=g.textStroke)),function(t,e,n,i,o){if(!n)return;var r,a=(e||t).style,s=n.enterFrom;if(o&&s){var l=z(s);r=r||(i.style={});for(var u=0;u<l.length;u++){var h=l[u];r[h]=s[h]}}if(!o&&a&&n.transition){var c=Bu(n.transition);r=r||(i.style={});for(u=0;u<c.length;u++){var h=c[u],p=a[h];0,r[h]=p}}var d=n.leaveTo;if(d)for(var f=z(d),t=qR(t),g=t.style||(t.style={}),u=0;u<f.length;u++){h=f[u];g[h]=d[h]}}(t,e,o,u,s),c){o&&c.useStyle(o);for(var p=c.animators,d=0;d<p.length;d++){var f=p[d];"style"===f.targetName&&f.changeTarget(c.style)}ft(i,"invisible")&&(c.invisible=i.invisible)}var g=i.during,g=(AR(t).userDuring=g)?B($R,{el:t,userDuring:g}):null;t.attr(h);g={dataIndex:n,isFrom:!0,during:g};(s?Gp:Fp)(t,u,a,g),ft(i,"silent")&&(t.silent=i.silent),ft(i,"ignore")&&(t.ignore=i.ignore),l||ft(i,"info")&&(AR(t).info=i.info),o?t.dirty():t.markRedraw(),e&&function(t,e,n,i){if(!(t instanceof Ir&&e instanceof Ir))return;{var o,r;n.isAnimationEnabled()&&(r=n.get("animationDurationUpdate"),o=n.get("animationDelayUpdate"),n=n.get("animationEasingUpdate"),0<(r=G(r)?r(i):r)&&function(t,e,n){t.path||t.createPathProxy(),e.path||e.createPathProxy(),t.path.beginPath(),t.buildPath(t.path,t.shape),e.path.beginPath(),e.buildPath(e.path,e.shape);var y=us((t=ss(rs(t.path),rs(e.path)))[0],t[1],10,Math.PI),m=e;m.__oldBuildPath||(m.__oldBuildPath=m.buildPath);var v=[];m.buildPath=function(t,e){for(var n=m.__morphT,i=1-n,o=[],r=0;r<y.length;r++){var a=y[r],s=a.from,l=a.to,u=a.rotation*n,h=a.fromCp,a=a.toCp,c=Math.sin(u),p=Math.cos(u);Pt(o,h,a,n);for(var d=0;d<s.length;d+=2){var f=s[d],g=s[d+1],f=f*i+l[d]*n,g=g*i+l[d+1]*n;v[d]=f*p-g*c+o[0],v[d+1]=f*c+g*p+o[1]}for(d=0;d<s.length;)0===d&&t.moveTo(v[d++],v[d++]),t.bezierCurveTo(v[d++],v[d++],v[d++],v[d++],v[d++],v[d++])}},m.__morphT=0;var i=n&&n.done,o=n&&n.aborted,r=n&&n.during;m.animateTo({__morphT:1},A({during:function(t){m.dirtyShape(),r&&r(t)},done:function(){m.buildPath=m.__oldBuildPath,m.__oldBuildPath=null,m.createPathProxy(),m.dirtyShape(),i&&i()},aborted:function(){o&&o()}},n))}(t,e,{duration:r,delay:G(o)?o(i):o,easing:n}))}}(e,t,a,n)}function ZR(t,e,n,i,o,r,a){var s=i[t];if(s){var l,u=e[t],h=s.enterFrom;if(a&&h){l=l||(r[t]={});for(var c=z(h),p=0;p<c.length;p++){l[v=c[p]]=h[v]}}if(!a&&u&&s.transition&&(!n||"shape"!==t)){l=l||(r[t]={});for(var d=Bu(s.transition),p=0;p<d.length;p++){var f=u[v=d[p]];0,l[v]=f}}for(var g=o[t]={},y=z(s),p=0;p<y.length;p++){g[v=y[p]]=_n(s[v])}var m=s.leaveTo;if(m)for(var v,e=qR(e),x=e[t]||(e[t]={}),_=z(m),p=0;p<_.length;p++){x[v=_[p]]=m[v]}}}function qR(t){t=AR(t);return t.leaveToProps||(t.leaveToProps={})}ky.registerClass(Ec);var jR={},KR={setTransform:function(t,e){return jR.el[t]=e,this},getTransform:function(t){return jR.el[t]},setShape:function(t,e){return(jR.el.shape||(jR.el.shape={}))[t]=e,jR.isShapeDirty=!0,this},getShape:function(t){var e=jR.el.shape;if(e)return e[t]},setStyle:function(t,e){var n=jR.el.style;return n&&(n[t]=e,jR.isStyleDirty=!0),this},getStyle:function(t){var e=jR.el.style;if(e)return e[t]},setExtra:function(t,e){return(jR.el.extra||(jR.el.extra={}))[t]=e,this},getExtra:function(t){var e=jR.el.extra;if(e)return e[t]}};function $R(){var t,e=this.el;e&&(AR(e).userDuring===(t=this.userDuring)?(jR.el=e,jR.isShapeDirty=!1,jR.isStyleDirty=!1,t(KR),jR.isShapeDirty&&e.dirtyShape&&e.dirtyShape(),jR.isStyleDirty&&e.dirtyStyle&&e.dirtyStyle()):this.el=this.userDuring=null)}function JR(t,e,n,i,o){var r=e.isGroup?null:e,e=o&&o[t].cfg;r&&(o=r.ensureState(t),!1===i?(t=r.getState(t))&&(t.style=null):o.style=i||null,e&&(o.textConfig=e),$h(r))}function QR(t,e,n){if(!t.isGroup){var i=t,t=n.currentZ,n=n.currentZLevel;i.z=t,i.zlevel=n;n=e.z2;null!=n&&(i.z2=n||0);for(var o,r,a,s,l=0;l<RR.length;l++)o=i,r=e,a=RR[l],s=void 0,null!=(r=(r=(s=a===OR)?r:sE(r,a))?r.z2:null)&&((s?o:o.ensureState(a)).z2=r||0)}}function tE(t,e,n,i){t=t[n],n=FR[n];t&&(i?(e[n[0]]=i[n[0]],e[n[1]]=i[n[1]]):(e[n[0]]=t[0],e[n[1]]=t[1]))}function eE(t,e,n,i){null!=t[n]&&(e[n]=(i||t)[n])}function nE(a,s,e,t){var n=a.get("renderItem"),i=a.coordinateSystem,o={};i&&(o=i.prepareCustoms?i.prepareCustoms(i):GR[i.type](i));for(var r,l,u,h,c=A({getWidth:t.getWidth,getHeight:t.getHeight,getZr:t.getZr,getDevicePixelRatio:t.getDevicePixelRatio,value:function(t,e){return null==e&&(e=u),s.get(s.getDimension(t||0),e)},style:function(t,e){0;null==e&&(e=u);var n=s.getItemVisual(e,"style"),i=n&&n.fill,o=n&&n.opacity,r=_(e,OR).getItemStyle();null!=i&&(r.fill=i),null!=o&&(r.opacity=o);n={inheritColor:H(i)?i:"#000"},o=b(e,OR),i=Sc(o,null,n,!1,!0);i.text=o.getShallow("show")?tt(a.getFormattedLabel(e,OR),qw(s,e)):null;n=Mc(o,n,!1);return S(t,r),r=TR(r,i,n),t&&w(r,t),r.legacy=!0,r},styleEmphasis:function(t,e){0;null==e&&(e=u);var n=_(e,NR).getItemStyle(),i=b(e,NR),o=Sc(i,null,null,!0,!0);o.text=i.getShallow("show")?et(a.getFormattedLabel(e,NR),a.getFormattedLabel(e,OR),qw(s,e)):null;i=Mc(i,null,!0);return S(t,n),n=TR(n,o,i),t&&w(n,t),n.legacy=!0,n},visual:function(t,e){if(null==e&&(e=u),ft(LR,t)){var n=s.getItemVisual(e,"style");return n?n[LR[t]]:null}if(ft(PR,t))return s.getItemVisual(e,t)},barLayout:function(t){if("cartesian2d"===i.type){return function(t){var e=[],n=t.axis;if("category"===n.type){for(var i=n.getBandWidth(),o=0;o<t.count;o++)e.push(A({bandWidth:i,axisKey:"axis0",stackId:sb+o},t));for(var r=db(e),a=[],o=0;o<t.count;o++){var s=r.axis0[sb+o];s.offsetCenter=s.offset+s.width/2,a.push(s)}return a}}(A({axis:i.getBaseAxis()},t))}},currentSeriesIndices:function(){return e.getCurrentSeriesIndices()},font:function(t){return Ac(t,e)}},o.api||{}),p={context:{},seriesId:a.id,seriesName:a.name,seriesIndex:a.seriesIndex,coordSys:o.coordSys,dataInsideLength:s.count(),encode:(r=a.getData(),l={},R(r.dimensions,function(t,e){var n=r.getDimensionInfo(t);n.isExtraCoord||(t=n.coordDim,(l[t]=l[t]||[])[n.coordDimIndex]=e)}),l)},d={},f={},g={},y={},m=0;m<RR.length;m++){var v=RR[m];g[v]=a.getModel(ER[v]),y[v]=a.getModel(zR[v])}function x(t){return t===u?h=h||s.getItemModel(t):s.getItemModel(t)}function _(t,e){return s.hasItemOption?t===u?d[e]||(d[e]=x(t).getModel(ER[e])):x(t).getModel(ER[e]):g[e]}function b(t,e){return s.hasItemOption?t===u?f[e]||(f[e]=x(t).getModel(zR[e])):x(t).getModel(zR[e]):y[e]}return function(t,e){return u=t,h=null,d={},f={},n&&n(A({dataIndexInside:t,dataIndex:s.getRawIndex(t),actionType:e?e.type:null},p),c)};function w(t,e){for(var n in e)ft(e,n)&&(t[n]=e[n])}function S(t,e){t&&(t.textFill&&(e.textFill=t.textFill),t.textPosition&&(e.textPosition=t.textPosition))}}function iE(t,e,n,i,o,r){if(n)return(t=oE(t,e,n,i,o))&&r.setItemGraphicEl(e,t),sc(t,n.focus,n.blurScope),t;t&&o.remove(t)}function oE(t,e,n,i,o){var r,a=-1;t&&rE(t,n)&&(a=o.childrenRef().indexOf(t),r=t,t=null);var s=!t,l=!1;t?t.clearStates():t=YR(n),n.morph&&t&&r&&t!==r&&(s=!(l=!0)),VR.normal.cfg=VR.normal.conOpt=VR.emphasis.cfg=VR.emphasis.conOpt=VR.blur.cfg=VR.blur.conOpt=VR.select.cfg=VR.select.conOpt=null,VR.isLegacy=!1,function(t,e,n,i,o,r){if(t.isGroup)return;aE(n,null,r),aE(n,NR,r);var a=r.normal.conOpt,s=r.emphasis.conOpt,l=r.blur.conOpt,n=r.select.conOpt;if(null!=a||null!=s||null!=n||null!=l){var u=t.getTextContent();if(!1===a)u&&t.removeTextContent();else{a=r.normal.conOpt=a||{type:"text"},u?u.clearStates():(u=YR(a),t.setTextContent(u));t=a&&a.style;UR(u,null,e,a,t,null,i,o,!0);for(var h=0;h<RR.length;h++){var c,p=RR[h];p!==OR&&(c=r[p].conOpt,JR(p,u,0,lE(a,c,p),null))}t?u.dirty():u.markRedraw()}}}(t,e,n,i,s,VR),function(t,e,n,i,o){var r=n.clipPath;{!1===r?t&&t.getClipPath()&&t.removeClipPath():r&&((n=t.getClipPath())&&rE(n,r)&&(n=null),n||(n=YR(r),t.setClipPath(n)),UR(n,null,e,r,null,null,i,o,!1))}}(t,e,n,i,s),UR(t,l?r:null,e,n,n.style,VR,i,s,!1);for(var u=0;u<RR.length;u++){var h=RR[u];h!==OR&&JR(h,t,0,lE(n,sE(n,h),h),VR)}return QR(t,n,i),"group"===n.type&&function(t,e,n,i){var o=n.children,r=o?o.length:0,a=n.$mergeChildren,n="byName"===a||n.diffChildrenByName,a=!1===a;if(!r&&!n&&!a)return;if(n)return function(t){new t_(t.oldChildren,t.newChildren,uE,uE,t).add(hE).update(hE).remove(cE).execute()}({oldChildren:t.children()||[],newChildren:o||[],dataIndex:e,seriesModel:i,group:t});a&&t.removeAll();for(var s=0;s<r;s++)o[s]&&oE(t.childAt(s),e,o[s],i,t);for(var l=t.childCount()-1;s<=l;l--)pE(t.childAt(l),i,t)}(t,e,n,i),0<=a?o.replaceAt(t,a):o.add(t),t}function rE(t,e){var n=AR(t),i=e.type,o=e.shape,t=e.style;return null!=i&&i!==n.customGraphicType||"path"===i&&((e=o)&&(ft(e,"pathData")||ft(e,"d")))&&dE(o)!==n.customPathData||"image"===i&&ft(t,"image")&&t.image!==n.customImagePath}function aE(t,e,n){var i,o,r,a,s,l=e?sE(t,e):t,u=e?lE(t,l,NR):t.style,h=t.type,c=l?l.textConfig:null,p=t.textContent,l=p?e?sE(p,e):p:null;!u||!n.isLegacy&&(a=h,t=!!c,p=!!l,!(r=u)||!r.legacy&&(!1===r.legacy||t||p||"tspan"===a||"text"!==a&&!ft(r,"text")))||(n.isLegacy=!0,a=!e,u=r=u,"text"===(h=h)?o=u:(o={},ft(u,"text")&&(o.text=u.text),ft(u,"rich")&&(o.rich=u.rich),ft(u,"textFill")&&(o.fill=u.textFill),ft(u,"textStroke")&&(o.stroke=u.textStroke),s={type:"text",style:o,silent:!0},i={},h=ft(u,"textPosition"),a?i.position=h?u.textPosition:"inside":h&&(i.position=u.textPosition),ft(u,"textPosition")&&(i.position=u.textPosition),ft(u,"textOffset")&&(i.offset=u.textOffset),ft(u,"textRotation")&&(i.rotation=u.textRotation),ft(u,"textDistance")&&(i.distance=u.textDistance)),IR(o,r),R(o.rich,function(t){IR(t,t)}),s={textConfig:i,textContent:s},!c&&s.textConfig&&(c=s.textConfig),!l&&s.textContent&&(l=s.textContent)),!e&&l&&((s=l).type||(s.type="text"));n=e?n[e]:n.normal;n.cfg=c,n.conOpt=l}function sE(t,e){return e?t?t[e]:null:t}function lE(t,e,n){e=e&&e.style;return null==e&&n===NR&&t&&(e=t.styleEmphasis),e}function uE(t,e){t=t&&t.name;return null!=t?t:BR+e}function hE(t,e){var n=this.context,t=null!=t?n.newChildren[t]:null;oE(null!=e?n.oldChildren[e]:null,n.dataIndex,t,n.seriesModel,n.group)}function cE(t){var e=this.context;pE(e.oldChildren[t],e.seriesModel,e.group)}function pE(t,e,n){var i;t&&((i=AR(t).leaveToProps)?Fp(t,i,e,{cb:function(){n.remove(t)}}):n.remove(t))}function dE(t){return t&&(t.pathData||t.d)}function fE(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function gE(t,e){return e.dim+t.model.componentIndex}var yE,g=(l(mE,yE=Ed),mE.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},mE.type="polar",mE.dependencies=["radiusAxis","angleAxis"],mE.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},mE);function mE(){var t=null!==yE&&yE.apply(this,arguments)||this;return t.type=mE.type,t}Ed.registerClass(g);var vE,Ec=(l(xE,vE=Ed),xE.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",th).models[0]},xE.type="polarAxis",xE);function xE(){return null!==vE&&vE.apply(this,arguments)||this}T(Ec,Jb);var _E,g=(l(bE,_E=Ec),bE.type="angleAxis",bE);function bE(){var t=null!==_E&&_E.apply(this,arguments)||this;return t.type=bE.type,t}var wE,Ec=(l(SE,wE=Ec),SE.type="radiusAxis",SE);function SE(){var t=null!==wE&&wE.apply(this,arguments)||this;return t.type=SE.type,t}HS("angle",g,{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}}),HS("radius",Ec,{splitNumber:5});var ME,IE=(l(TE,ME=Bc),TE.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},TE);function TE(t,e){return ME.call(this,"radius",t,e)||this}IE.prototype.dataToRadius=Bc.prototype.dataToCoord,IE.prototype.radiusToData=Bc.prototype.coordToData;var CE,DE=$u(),AE=(l(kE,CE=Bc),kE.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},kE.prototype.calculateCategoryInterval=function(){var t=this.getLabelModel(),e=this.scale,n=e.getExtent(),i=e.count();if(n[1]-n[0]<1)return 0;var o=n[0],e=this.dataToCoord(o+1)-this.dataToCoord(o),n=Math.abs(e),e=Ni(null==o?"":o+"",t.getFont(),"center","top"),o=Math.max(e.height,7)/n;isNaN(o)&&(o=1/0);t=Math.max(0,Math.floor(o)),e=DE(this.model),n=e.lastAutoInterval,o=e.lastTickCount;return null!=n&&null!=o&&Math.abs(n-t)<=1&&Math.abs(o-i)<=1&&t<n?t=n:(e.lastTickCount=i,e.lastAutoInterval=t),t},kE);function kE(t,e){return CE.call(this,"angle",t,e||[0,360])||this}AE.prototype.dataToAngle=Bc.prototype.dataToCoord,AE.prototype.angleToData=Bc.prototype.coordToData;var LE=(PE.prototype.containPoint=function(t){t=this.pointToCoord(t);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},PE.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},PE.prototype.getAxis=function(t){return this["_"+t+"Axis"]},PE.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},PE.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},PE.prototype.getAngleAxis=function(){return this._angleAxis},PE.prototype.getRadiusAxis=function(){return this._radiusAxis},PE.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},PE.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},PE.prototype.getTooltipAxes=function(t){t=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},PE.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},PE.prototype.pointToData=function(t,e){t=this.pointToCoord(t);return[this._radiusAxis.radiusToData(t[0],e),this._angleAxis.angleToData(t[1],e)]},PE.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),t=i.getExtent(),o=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);i.inverse?o=r-360:r=o+360;i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var a=Math.atan2(-n,e)/Math.PI*180,s=a<o?1:-1;a<o||r<a;)a+=360*s;return[i,a]},PE.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]},PE.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=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 n=t-this.cx,t=e-this.cy,e=n*n+t*t,n=this.r,t=this.r0;return e<=n*n&&t*t<=e}}},PE.prototype.convertToPixel=function(t,e,n){return NE(e)===this?this.dataToPoint(n):null},PE.prototype.convertFromPixel=function(t,e,n){return NE(e)===this?this.pointToData(n):null},PE);function PE(t){this.dimensions=["radius","angle"],this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new IE,this._angleAxis=new AE,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}function NE(t){var e=t.seriesModel,t=t.polarModel;return t&&t.coordinateSystem||e&&e.coordinateSystem}function OE(t,e){var n,i=this,o=i.getAngleAxis(),r=i.getRadiusAxis();o.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){var e;t.coordinateSystem===i&&(R(Kb(e=t.getData(),"radius"),function(t){r.scale.unionExtentFromData(e,t)}),R(Kb(e,"angle"),function(t){o.scale.unionExtentFromData(e,t)}))}),Wb(o.scale,o.model),Wb(r.scale,r.model),"category"!==o.type||o.onBand||(n=o.getExtent(),t=360/o.scale.count(),o.inverse?n[1]+=t:n[1]-=t,o.setExtent(n[0],n[1]))}function RE(t,e){var n;t.type=e.get("type"),t.scale=Xb(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),"angleAxis"===e.mainType&&(t.inverse=t.inverse!==e.get("clockwise"),n=e.get("startAngle"),t.setExtent(n,n+(t.inverse?-360:360))),(e.axis=t).model=e}Ec={dimensions:LE.prototype.dimensions,create:function(t,s){var l=[];return t.eachComponent("polar",function(t,e){var n=new LE(e+"");n.update=OE;var i=n.getRadiusAxis(),o=n.getAngleAxis(),r=t.findAxisModel("radiusAxis"),a=t.findAxisModel("angleAxis");RE(i,r),RE(o,a),e=n,i=s,o=(r=t).get("center"),a=i.getWidth(),i=i.getHeight(),e.cx=gu(o[0],a),e.cy=gu(o[1],i),e=e.getRadiusAxis(),i=Math.min(a,i)/2,null==(r=r.get("radius"))?r=[0,"100%"]:F(r)||(r=[0,r]),i=[gu(r[0],i),gu(r[1],i)],e.inverse?e.setExtent(i[1],i[0]):e.setExtent(i[0],i[1]),l.push(n),(t.coordinateSystem=n).model=t}),t.eachSeries(function(t){var e;"polar"===t.get("coordinateSystem")&&(e=t.getReferringComponents("polar",th).models[0],t.coordinateSystem=e.coordinateSystem)}),l}};bf.register("polar",Ec);var EE=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function zE(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),n=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:n[0],y2:n[1]}}function BE(t){return t.getRadiusAxis().inverse?0:1}function VE(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()}var FE,Ec=(l(GE,FE=Na),GE.prototype.render=function(e,t){var n,i,o,r,a,s;this.group.removeAll(),e.get("show")&&(n=e.axis,i=n.polar,o=i.getRadiusAxis().getExtent(),r=n.getTicksCoords(),a=n.getMinorTicksCoords(),VE(s=L(n.getViewLabels(),function(t){return(t=C(t)).coord=n.dataToCoord(t.tickValue),t})),VE(r),R(EE,function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||HE[t](this.group,e,i,r,a,o,s)},this))},GE.type="angleAxis",GE);function GE(){var t=null!==FE&&FE.apply(this,arguments)||this;return t.type=GE.type,t.axisPointerClass="PolarAxisPointer",t}var HE={axisLine:function(t,e,n,i,o,r){var a=e.getModel(["axisLine","lineStyle"]),s=BE(n),e=s?0:1,a=0===r[e]?new ia({shape:{cx:n.cx,cy:n.cy,r:r[s]},style:a.getLineStyle(),z2:1,silent:!0}):new fl({shape:{cx:n.cx,cy:n.cy,r:r[s],r0:r[e]},style:a.getLineStyle(),z2:1,silent:!0});a.style.fill=null,t.add(a)},axisTick:function(t,e,n,i,o,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=r[BE(n)],i=L(i,function(t){return new ba({shape:zE(n,[l,l+s],t.coord)})});t.add(Ep(i,{style:A(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[BE(n)],h=[],c=0;c<o.length;c++)for(var p=0;p<o[c].length;p++)h.push(new ba({shape:zE(n,[u,u+l],o[c][p].coord)}));t.add(Ep(h,{style:A(s.getModel("lineStyle").getLineStyle(),A(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");R(n,function(t,e){var n=d,i=t.tickValue,o=c[BE(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",s=Math.abs(r[1]-s)/o<.3?"middle":r[1]>s?"top":"bottom";p&&p[i]&&(Y(i=p[i])&&i.textStyle&&(n=new Hc(i.textStyle,d,d.ecModel)));a=new Rs({silent:ZS.isLabelSilent(u),style:Sc(n,{x:r[0],y:r[1],fill:n.getTextColor()||u.get(["axisLine","lineStyle","color"]),text:t.formattedLabel,align:a,verticalAlign:s})});l.add(a),g&&((s=ZS.makeAxisEventDataBase(u)).targetType="axisLabel",s.value=t.rawLabel,_h(a).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 ba({shape:zE(n,r,i[h].coord)}))}for(h=0;h<u.length;h++)t.add(Ep(u[h],{style:A({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 ba({shape:zE(n,r,o[l][u].coord)}));t.add(Ep(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 zl({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(Ep(u[g],{style:A({fill:l[g%l.length]},a.getAreaStyle()),silent:!0}))}}};Iy.registerClass(Ec);var WE,XE=["axisLine","axisTickLabel","axisName"],YE=["splitLine","splitArea","minorSplitLine"],Ec=(l(UE,WE=Na),UE.prototype.render=function(e,t){var n,i,o,r,a,s,l,u,h,c,p;this.group.removeAll(),e.get("show")&&(n=this._axisGroup,i=this._axisGroup=new qr,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(),p=e,c=l,p={position:[(h=r).cx,h.cy],rotation:c/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:p.getModel("axisLabel").get("rotate"),z2:1},p=new ZS(e,p),R(XE,p.add,p),i.add(p.getGroup()),Qp(n,i,e),R(YE,function(t){e.get([t,"show"])&&!o.scale.isBlank()&&ZE[t](this.group,e,r,l,u,a,s)},this))},UE.type="radiusAxis",UE);function UE(){var t=null!==WE&&WE.apply(this,arguments)||this;return t.type=UE.type,t.axisPointerClass="PolarAxisPointer",t}var ZE={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 ia({shape:{cx:n.cx,cy:n.cy,r:r[h].coord}}))}for(h=0;h<u.length;h++)t.add(Ep(u[h],{style:A({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 ia({shape:{cx:n.cx,cy:n.cy,r:a[l][u].coord}}));t.add(Ep(s,{style:A({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 zl({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(Ep(u[c],{style:A({fill:l[c%l.length]},a.getAreaStyle()),silent:!0}))}}};Na.registerClass(Ec);var qE,Ec=(l(jE,qE=rp),jE.prototype.makeElOption=function(t,e,n,i,o){var r=n.axis;"angle"===r.dim&&(this.animationThreshold=Math.PI/18);var a,s=r.polar,l=s.getOtherAxis(r).getExtent(),u=r.dataToCoord(e),h=i.get("type");h&&"none"!==h&&(a=zO(i),(c=KE[h](r,s,u,l)).style=a,t.graphicKey=c.type,t.pointer=c);var c=i.get(["label","margin"]);BO(t,n,i,o,function(t,e,n,i){var o=e.axis,r=o.dataToCoord(t),a=n.getAngleAxis().getExtent()[0];a=a/180*Math.PI;var s,t=n.getRadiusAxis().getExtent();{var l,u;u="radius"===o.dim?(ei(l=Kn(),l,a),ti(l,l,[n.cx,n.cy]),s=Kp([r,-i],l),l=e.getModel("axisLabel").get("rotate")||0,a=ZS.innerTextLayout(a,l*Math.PI/180,-1),l=a.textAlign,a.textVerticalAlign):(t=t[1],s=n.coordToPoint([t+i,r]),r=n.cx,u=n.cy,l=Math.abs(s[0]-r)/t<.3?"center":s[0]>r?"left":"right",Math.abs(s[1]-u)/t<.3?"middle":s[1]>u?"top":"bottom")}return{position:s,align:l,verticalAlign:u}}(e,n,s,c))},jE);function jE(){return null!==qE&&qE.apply(this,arguments)||this}var KE={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:HO(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:XO(e.cx,e.cy,i[0],i[1],(-n-o/2)*r,(o/2-n)*r)}:{type:"Sector",shape:XO(e.cx,e.cy,n-o/2,n+o/2,0,2*Math.PI)}}};Na.registerAxisPointerClass("PolarAxisPointer",Ec),Zx(V(function(t,e,n){var k={},L=function(t){var l={};R(t,function(t,e){var n=t.getData(),i=t.coordinateSystem,o=i.getBaseAxis(),r=gE(i,o),a=o.getExtent(),s="category"===o.type?o.getBandWidth():Math.abs(a[1]-a[0])/n.count(),i=l[r]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},o=i.stacks;l[r]=i;a=fE(t);o[a]||i.autoWidthCount++,o[a]=o[a]||{width:0,maxWidth:0};n=gu(t.get("barWidth"),s),r=gu(t.get("barMaxWidth"),s),s=t.get("barGap"),t=t.get("barCategoryGap");n&&!o[a].width&&(n=Math.min(i.remainedWidth,n),o[a].width=n,i.remainedWidth-=n),r&&(o[a].maxWidth=r),null!=s&&(i.gap=s),null!=t&&(i.categoryGap=t)});var c={};return R(l,function(t,n){c[n]={};var e=t.stacks,i=t.bandWidth,i=gu(t.categoryGap,i),o=gu(t.gap,1),r=t.remainedWidth,a=t.autoWidthCount,s=(r-i)/(a+(a-1)*o),s=Math.max(s,0);R(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;R(e,function(t,e){t.width||(t.width=s),u+=(l=t).width*(1+o)}),l&&(u-=l.width*o);var h=-u/2;R(e,function(t,e){c[n][e]=c[n][e]||{offset:h,width:t.width},h+=t.width*(1+o)})}),c}(O(e.getSeriesByType(t),function(t){return!e.isSeriesFiltered(t)&&t.coordinateSystem&&"polar"===t.coordinateSystem.type}));e.eachSeriesByType(t,function(t){if("polar"===t.coordinateSystem.type){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),o=gE(n,i),r=fE(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=V_(e,d),y="radius"!==i.dim||!t.get("roundCap",!0),m=l.dataToCoord(0),v=0,x=e.count();v<x;v++){var _=e.get(d,v),b=e.get(f,v),w=0<=_?"p":"n",S=m;g&&(k[r][b]||(k[r][b]={p:m,n:m}),S=k[r][b][w]);var M,I,T=void 0,C=void 0,D=void 0,A=void 0;"radius"===l.dim?(M=l.dataToCoord(_)-m,I=i.dataToCoord(b),Math.abs(M)<c&&(M=(M<0?-1:1)*c),C=(T=S)+M,A=(D=I-a)-s,g&&(k[r][b][w]=C)):(I=l.dataToCoord(_,y)-m,_=i.dataToCoord(b),Math.abs(I)<p&&(I=(I<0?-1:1)*p),C=(T=_+a)+s,A=(D=S)+I,g&&(k[r][b][w]=A)),e.setItemLayout(v,{cx:u,cy:h,r0:T,r:C,startAngle:-D*Math.PI/180,endAngle:-A*Math.PI/180})}}})},"bar")),Jx({type:"polar"});var $E,rp=(l(JE,$E=Iy),JE.prototype.init=function(t,e){var n=new BT(e);this._mapDraw=n,this.group.add(n.group),this._api=e},JE.prototype.render=function(t,e,n,i){var o=this._mapDraw;t.get("show")?o.draw(t,e,n,this,i):this._mapDraw.group.removeAll(),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this._model=t,this.updateSelectStatus()},JE.prototype._handleRegionClick=function(t){for(var e,n=t.target;null==(e=_h(n).eventData);)n=n.__hostTarget||n.parent;e&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,statusChanged:!0,name:e.name})},JE.prototype.updateSelectStatus=function(){var n=this;this._mapDraw.group.traverse(function(t){var e=_h(t).eventData;if(e)return(n._model.isSelected(e.name)?nc:ic)(t),!0})},JE.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},JE.type="geo",JE);function JE(){var t=null!==$E&&$E.apply(this,arguments)||this;return t.type=JE.type,t}Iy.registerClass(rp);var QE,Na=(l(tz,QE=Ed),tz.prototype.init=function(t,e,n){QE.prototype.init.call(this,t,e,n),Vu(t,"label",["show"])},tz.prototype.optionUpdated=function(){var t=this.option,i=this;t.regions=tC.getFilledRegions(t.regions,t.map,t.nameMap);var o={};this._optionModelMap=P(t.regions||[],function(t,e){var n=e.name;return n&&(t.set(n,new Hc(e,i)),e.selected&&(o[n]=!0)),t},ct()),t.selectedMap||(t.selectedMap=o)},tz.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Hc(null,this,this.ecModel)},tz.prototype.getFormattedLabel=function(t,e){var n=this.getRegionModel(t),i="normal"===e?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),n={name:t};return"function"==typeof i?(n.status=e,i(n)):"string"==typeof i?i.replace("{a}",null!=t?t:""):void 0},tz.prototype.setZoom=function(t){this.option.zoom=t},tz.prototype.setCenter=function(t){this.option.center=t},tz.prototype.select=function(t){var e=this.option,n=e.selectedMode;n&&("multiple"!==n&&(e.selectedMap=null),(e.selectedMap||(e.selectedMap={}))[t]=!0)},tz.prototype.unSelect=function(t){var e=this.option.selectedMap;e&&(e[t]=!1)},tz.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},tz.prototype.isSelected=function(t){var e=this.option.selectedMap;return!(!e||!e[t])},tz.prototype._initSelectedMapFromData=function(){},tz.type="geo",tz.layoutMode="box",tz.defaultOption={zlevel:0,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",color:"#eee"},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:[]},tz);function tz(){var t=null!==QE&&QE.apply(this,arguments)||this;return t.type=tz.type,t}function ez(i,t){t.update="geo:updateSelectStatus",Yx(t,function(t,e){var n={};return e.eachComponent({mainType:"geo",query:t},function(e){e[i](t.name),R(e.coordinateSystem.regions,function(t){n[t.name]=e.isSelected(t.name)||!1})}),{selected:n,name:t.name}})}Ed.registerClass(Na),ez("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),ez("select",{type:"geoSelect",event:"geoselected"}),ez("unSelect",{type:"geoUnSelect",event:"geounselected"});nz.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},nz.prototype.getRangeInfo=function(){return this._rangeInfo},nz.prototype.getModel=function(){return this._model},nz.prototype.getRect=function(){return this._rect},nz.prototype.getCellWidth=function(){return this._sw},nz.prototype.getCellHeight=function(){return this._sh},nz.prototype.getOrient=function(){return this._orient},nz.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},nz.prototype.getDateInfo=function(t){var e=(t=Tu(t)).getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,o=t.getDate(),n=o<10?"0"+o:""+o,o=t.getDay();return{y:e+"",m:i,d:n,day:o=Math.abs((o+7-this.getFirstDayOfWeek())%7),time:t.getTime(),formatedDate:e+"-"+i+"-"+n,date:t}},nz.prototype.getNextNDay=function(t,e){return 0===(e=e||0)||(t=new Date(this.getDateInfo(t).time)).setDate(t.getDate()+e),this.getDateInfo(t)},nz.prototype.update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],o=this._model.getCellSize().slice(),r=this._model.getBoxLayoutParams(),a="horizontal"===this._orient?[n,7]:[7,n];R([0,1],function(t){l(o,t)&&(r[i[t]]=o[t]*a[t])});var e={width:e.getWidth(),height:e.getHeight()},s=this._rect=Id(r,e);function l(t,e){return null!=t[e]&&"auto"!==t[e]}R([0,1],function(t){l(o,t)||(o[t]=s[i[t]]/a[t])}),this._sw=o[0],this._sh=o[1]},nz.prototype.dataToPoint=function(t,e){F(t)&&(t=t[0]),null==e&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,t=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+864e5))return[NaN,NaN];n=n.day,t=this._getRangeInfo([i.start.time,t]).nthWeek;return"vertical"===this._orient?[this._rect.x+n*this._sw+this._sw/2,this._rect.y+t*this._sh+this._sh/2]:[this._rect.x+t*this._sw+this._sw/2,this._rect.y+n*this._sh+this._sh/2]},nz.prototype.pointToData=function(t){t=this.pointToDate(t);return t&&t.time},nz.prototype.dataToRect=function(t,e){e=this.dataToPoint(t,e);return{contentShape:{x:e[0]-(this._sw-this._lineWidth)/2,y:e[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:e,tl:[e[0]-this._sw/2,e[1]-this._sh/2],tr:[e[0]+this._sw/2,e[1]-this._sh/2],br:[e[0]+this._sw/2,e[1]+this._sh/2],bl:[e[0]-this._sw/2,e[1]+this._sh/2]}},nz.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,t=this._rangeInfo.range;return"vertical"===this._orient?this._getDateByWeeksAndDay(n,e-1,t):this._getDateByWeeksAndDay(e,n-1,t)},nz.prototype.convertToPixel=function(t,e,n){e=iz(e);return e===this?e.dataToPoint(n):null},nz.prototype.convertFromPixel=function(t,e,n){e=iz(e);return e===this?e.pointToData(n):null},nz.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},nz.prototype._initRangeOption=function(){var t,e,n,i,o=this._model.get("range");if(F(o)&&1===o.length&&(o=o[0]),F(o)?i=o:(t=o.toString(),/^\d{4}$/.test(t)&&(i=[t+"-01-01",t+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(t)&&((n=(e=this.getDateInfo(t)).date).setMonth(n.getMonth()+1),n=this.getNextNDay(n,-1),i=[e.formatedDate,n.formatedDate]),/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(t)&&(i=[t,t])),!i)return o;o=this._getRangeInfo(i);return o.start.time>o.end.time&&i.reverse(),i},nz.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/864e5)-Math.floor(n[0].time/864e5)+1,o=new Date(n[0].time),r=o.getDate(),a=n[1].date.getDate();o.setDate(r+i-1);var s=o.getDate();if(s!==a)for(var l=0<o.getTime()-n[1].time?1:-1;(s=o.getDate())!==a&&0<(o.getTime()-n[1].time)*l;)i-=l,o.setDate(s-l);t=Math.floor((i+n[0].day+6)/7),r=e?1-t:t-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:t,nthWeek:r,fweek:n[0].day,lweek:n[1].day}},nz.prototype._getDateByWeeksAndDay=function(t,e,n){n=this._getRangeInfo(n);if(t>n.weeks||0===t&&e<n.fweek||t===n.weeks&&e>n.lweek)return null;t=7*(t-1)-n.fweek+e,e=new Date(n.start.time);return e.setDate(+n.start.d+t),this.getDateInfo(e)},nz.create=function(t,e){var n=[];return t.eachComponent("calendar",function(t){var e=new nz(t);n.push(e),t.coordinateSystem=e}),t.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])}),n},nz.dimensions=["time","value"],Ec=nz;function nz(t,e,n){this.type="calendar",this.dimensions=nz.dimensions,this.getDimensionsInfo=nz.getDimensionsInfo,this._model=t}function iz(t){var e=t.calendarModel,t=t.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem:null}bf.register("calendar",Ec);var oz,rp=(l(rz,oz=Ed),rz.prototype.init=function(t,e,n){var i=Ad(t);oz.prototype.init.apply(this,arguments),az(t,i)},rz.prototype.mergeOption=function(t){oz.prototype.mergeOption.apply(this,arguments),az(this.option,t)},rz.prototype.getCellSize=function(){return this.option.cellSize},rz.type="calendar",rz.defaultOption={zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},rz);function rz(){var t=null!==oz&&oz.apply(this,arguments)||this;return t.type=rz.type,t}function az(t,i){var e=t.cellSize,o=F(e)?e:t.cellSize=[e,e];1===o.length&&(o[1]=o[0]);e=L([0,1],function(t){var e,n;return(null!=(e=i)[wd[n=t][0]]||null!=e[wd[n][1]]&&null!=e[wd[n][2]])&&(o[t]="auto"),null!=o[t]&&"auto"!==o[t]});Dd(t,i,{type:"box",ignoreSize:e})}Ed.registerClass(rp);var sz,lz={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},uz={EN:["S","M","T","W","T","F","S"],CN:["日","一","二","三","四","五","六"]},Na=(l(hz,sz=Iy),hz.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var o=t.coordinateSystem,r=o.getRangeInfo(),o=o.getOrient();this._renderDayRect(t,r,i),this._renderLines(t,r,o,i),this._renderYearText(t,r,o,i),this._renderMonthText(t,o,i),this._renderWeekText(t,r,o,i)},hz.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,o=t.getModel("itemStyle").getItemStyle(),r=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,l=new pa({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:o});n.add(l)}},hz.prototype._renderLines=function(e,t,n,i){var o=this,r=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,h=0;u.time<=t.end.time;h++){p(u.formatedDate),0===h&&(u=r.getDateInfo(t.start.y+"-"+t.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=r.getDateInfo(c)}function p(t){o._firstDayOfMonth.push(r.getDateInfo(t)),o._firstDayPoints.push(r.dataToRect([t],!1).tl);t=o._getLinePointsOfOneWeek(e,t,n);o._tlpoints.push(t[0]),o._blpoints.push(t[t.length-1]),s&&o._drawSplitline(t,a,i)}p(r.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,l,n),a,i),s&&this._drawSplitline(o._getEdgesPoints(o._blpoints,l,n),a,i)},hz.prototype._getEdgesPoints=function(t,e,n){t=[t[0].slice(),t[t.length-1].slice()],n="horizontal"===n?0:1;return t[0][n]=t[0][n]-e/2,t[1][n]=t[1][n]+e/2,t},hz.prototype._drawSplitline=function(t,e,n){e=new La({z2:20,shape:{points:t},style:e});n.add(e)},hz.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,o=i.getDateInfo(e),r=[],a=0;a<7;a++){var s=i.getNextNDay(o.time,a),l=i.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return r},hz.prototype._formatterLabel=function(t,e){return"string"==typeof t&&t?gd(t,e):"function"==typeof t?t(e):e.nameMap},hz.prototype._yearTextPositionControl=function(t,e,n,i,o){var r=e[0],a=e[1],e=["center","bottom"];"bottom"===i?(a+=o,e=["center","top"]):"left"===i?r-=o:"right"===i?(r+=o,e=["center","top"]):a-=o;o=0;return"left"!==i&&"right"!==i||(o=Math.PI/2),{rotation:o,x:r,y:a,style:{align:e[0],verticalAlign:e[1]}}},hz.prototype._renderYearText=function(t,e,n,i){var o,r,a,s,l,u=t.getModel("yearLabel");u.get("show")&&(o=u.get("margin"),r=(r=u.get("position"))||("horizontal"!==n?"top":"left"),a=((s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]])[0][0]+s[1][0])/2,l=(s[0][1]+s[1][1])/2,s={top:[a,s[t="horizontal"===n?0:1][1]],bottom:[a,s[1-t][1]],left:[s[1-t][0],l],right:[s[t][0],l]},t=e.start.y,+e.end.y>+e.start.y&&(t=t+"-"+e.end.y),l=u.get("formatter"),t={start:e.start.y,end:e.end.y,nameMap:t},t=this._formatterLabel(l,t),(t=new Rs({z2:30,style:Sc(u,{text:t})})).attr(this._yearTextPositionControl(t,s[r],n,r,o)),i.add(t))},hz.prototype._monthTextPositionControl=function(t,e,n,i,o){var r="left",a="top",s=t[0],t=t[1];return"horizontal"===n?(t+=o,e&&(r="center"),"start"===i&&(a="bottom")):(s+=o,e&&(a="middle"),"start"===i&&(r="right")),{x:s,y:t,align:r,verticalAlign:a}},hz.prototype._renderMonthText=function(t,e,n){var i=t.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),r=i.get("margin"),a=i.get("position"),t=i.get("align"),s=[this._tlpoints,this._blpoints];H(o)&&(o=lz[o.toUpperCase()]||[]);for(var l="start"===a?0:1,u="horizontal"===e?0:1,r="start"===a?-r:r,h="center"===t,c=0;c<s[l].length-1;c++){var p=s[l][c].slice(),d=this._firstDayOfMonth[c];h&&(g=this._firstDayPoints[c],p[u]=(g[u]+s[0][c+1][u])/2);var f=i.get("formatter"),g=o[+d.m-1],g={yyyy:d.y,yy:(d.y+"").slice(2),MM:d.m,M:+d.m,nameMap:g},g=this._formatterLabel(f,g),p=new Rs({z2:30,style:N(Sc(i,{text:g}),this._monthTextPositionControl(p,h,e,a,r))});n.add(p)}}},hz.prototype._weekTextPositionControl=function(t,e,n,i,o){var r="center",a="middle",s=t[0],t=t[1],n="start"===n;return"horizontal"===e?(s=s+i+(n?1:-1)*o[0]/2,r=n?"right":"left"):(t=t+i+(n?1:-1)*o[1]/2,a=n?"bottom":"top"),{x:s,y:t,align:r,verticalAlign:a}},hz.prototype._renderWeekText=function(t,e,n,i){var o=t.getModel("dayLabel");if(o.get("show")){var r=t.coordinateSystem,a=o.get("position"),s=o.get("nameMap"),l=o.get("margin"),u=r.getFirstDayOfWeek();H(s)&&(s=uz[s.toUpperCase()]||[]);var h=r.getNextNDay(e.end.time,7-e.lweek).time,c=[r.getCellWidth(),r.getCellHeight()],l=gu(l,c["horizontal"===n?0:1]);"start"===a&&(h=r.getNextNDay(e.start.time,-(7+e.fweek)).time,l=-l);for(var p=0;p<7;p++){var d=r.getNextNDay(h,p),f=r.dataToRect([d.time],!1).center,d=Math.abs((p+u)%7),f=new Rs({z2:30,style:N(Sc(o,{text:s[d]}),this._weekTextPositionControl(f,n,a,l,c))});i.add(f)}}},hz.type="calendar",hz);function hz(){var t=null!==sz&&sz.apply(this,arguments)||this;return t.type=hz.type,t}Iy.registerClass(Na);var cz={path:null,compoundPath:null,group:qr,image:Qr,text:Rs};Wx(function(t){var e=t.graphic;F(e)?e[0]&&e[0].elements?t.graphic=[t.graphic[0]]:t.graphic=[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])});var pz=$x({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(t){var e=this.option.elements;this.option.elements=null,pz.superApply(this,"mergeOption",arguments),this.option.elements=e},optionUpdated:function(t,e){var n=this.option,t=(e?n:t).elements,i=n.elements=e?[]:n.elements,n=[];this._flatten(t,n);var n=Hu(i,n,"normalMerge"),o=this._elOptionsToUpdate=[];R(n,function(t,e){var n=t.newOption;n&&(o.push(n),function(t,e){var n=t.existing;{e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId&&((t=e.parentOption)?e.parentId=t.id:n&&(e.parentId=n.parentId))}e.parentOption=null}(t,n),function(t,e,n){var i=N({},n),o=t[e],r=n.$action||"merge";{"merge"===r?o?(w(o,i,!0),Dd(o,i,{ignoreSize:!0}),kd(n,o)):t[e]=i:"replace"===r?t[e]=i:"remove"===r&&o&&(t[e]=null)}}(i,e,n),function(t,e){if(!t)return;t.hv=e.hv=[gz(e,["left","right"]),gz(e,["top","bottom"])],"group"===t.type&&(null==t.width&&(t.width=e.width=0),null==t.height&&(t.height=e.height=0))}(i[e],n))},this);for(var r=i.length-1;0<=r;r--)null==i[r]?i.splice(r,1):delete i[r].$action},_flatten:function(t,n,i){R(t,function(t){var e;t&&(i&&(t.parentOption=i),n.push(t),e=t.children,"group"===t.type&&e&&this._flatten(e,n,t),delete t.children)},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});function dz(t,e,n,i){var o=n.type;o=cz.hasOwnProperty(o)?cz[o]:Pp(o);n=new o(n);e.add(n),i.set(t,n),n.__ecGraphicId=t}function fz(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse(function(t){fz(t,e)}),e.removeKey(t.__ecGraphicId),n.remove(t))}function gz(e,t){var n;return R(t,function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)}),n}Jx({type:"graphic",init:function(t,e){this._elMap=ct(),this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},_updateElements:function(s){var l,u,t=s.useElOptionsToUpdate();t&&(l=this._elMap,u=this.group,R(t,function(t){var e=t.$action,n=t.id,i=l.get(n),o=t.parentId,r=null!=o?l.get(o):u,o=t.style;"text"===t.type&&o&&(t.hv&&t.hv[1]&&(o.textVerticalAlign=o.textBaseline=null),!o.hasOwnProperty("textFill")&&o.fill&&(o.textFill=o.fill),!o.hasOwnProperty("textStroke")&&o.stroke&&(o.textStroke=o.stroke));var a,o=(a=N({},a=t),R(["id","parentId","$action","hv","bounding"].concat(bd),function(t){delete a[t]}),a);e&&"merge"!==e?"replace"===e?(fz(i,l),dz(n,r,o,l)):"remove"===e&&fz(i,l):i?i.attr(o):dz(n,r,o,l);n=l.get(n);n&&(n.__ecGraphicWidthOption=t.width,n.__ecGraphicHeightOption=t.height,function(t,e){var n=t.eventData;t.silent||t.ignore||n||(n=t.eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name});n&&(n.info=t.info)}(n,s))}))},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,o=this._elMap,r=e.getWidth(),a=e.getHeight(),s=0;s<n.length;s++){var l,u=n[s];(h=o.get(u.id))&&h.isGroup&&(l=(c=h.parent)===i,h.__ecGraphicWidth=gu(h.__ecGraphicWidthOption,l?r:c.__ecGraphicWidth)||0,h.__ecGraphicHeight=gu(h.__ecGraphicHeightOption,l?a:c.__ecGraphicHeight)||0)}for(s=n.length-1;0<=s;s--){var h,c,u=n[s];(h=o.get(u.id))&&Td(h,u,(c=h.parent)===i?{width:r,height:a}:{width:c.__ecGraphicWidth,height:c.__ecGraphicHeight},null,{hv:u.hv,boundingMode:u.bounding})}},_clear:function(){var e=this._elMap;e.each(function(t){fz(t,e)}),this._elMap=ct()},dispose:function(){this._clear()}});function yz(){}var mz={};function vz(t,e){mz[t]=e}function xz(t){return mz[t]}var _z,Ec=(l(bz,_z=Ed),bz.prototype.optionUpdated=function(){_z.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;R(this.option.feature,function(t,e){e=xz(e);e&&(e.getDefaultOption&&(e.defaultOption=e.getDefaultOption(n)),w(t,e.defaultOption))})},bz.type="toolbox",bz.layoutMode={type:"box",ignoreSize:!0},bz.defaultOption={show:!0,z:6,zlevel:0,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}},bz);function bz(){var t=null!==_z&&_z.apply(this,arguments)||this;return t.type=bz.type,t}function wz(t,e){var n=sd(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),t=new pa({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})}Ed.registerClass(Ec);var Sz,rp=(l(Mz,Sz=Iy),Mz.prototype.render=function(h,c,p,r){var d,a,s,l,t,e,n,i,o,u,f=this.group;function g(t,e){var n,i=l[t],o=l[e],t=a[i],e=new Hc(t,h,h.ecModel);if(r&&null!=r.newTitle&&r.featureName===i&&(t.title=r.newTitle),i&&!o){if(0===i.indexOf("my"))n={onclick:e.option.onclick,featureName:i};else{t=xz(i);if(!t)return;n=new t}s[i]=n}else if(!(n=s[o]))return;if(n.uid=Yc("toolbox-feature"),n.model=e,n.ecModel=c,n.api=p,n instanceof yz){if(!i&&o)return void(n.dispose&&n.dispose(c,p));if(!e.get("show")||n.unusable)return void(n.remove&&n.remove(c,p))}!function(o,r,t){var e,a,s=o.getModel("iconStyle"),l=o.getModel(["emphasis","iconStyle"]),n=r instanceof yz&&r.getIcons?r.getIcons():o.get("icon"),i=o.get("title")||{};"string"==typeof n?(e={})[t]=n:e=n;"string"==typeof i?(a={})[t]=i:a=i;var u=o.iconPaths={};R(e,function(t,e){var n=ed(t,{},{x:-d/2,y:-d/2,width:d,height:d});n.setStyle(s.getItemStyle()),n.ensureState("emphasis").style=l.getItemStyle();var i=new Rs({style:{text:a[e],align:l.get("textAlign"),borderRadius:l.get("textBorderRadius"),padding:l.get("textPadding"),fill:null},ignore:!0});n.setTextContent(i);t=h.getModel("tooltip");t&&t.get("show")&&(n.tooltip=N({content:a[e],formatter:t.get("formatter",!0)||function(){return a[e]},formatterParams:{componentType:"toolbox",name:e,title:a[e],$vars:["name","title"]},position:t.get("position",!0)||"bottom"},t.option)),n.__title=a[e],n.on("mouseover",function(){var t=l.getItemStyle(),e="vertical"===h.get("orient")?null==h.get("right")?"right":"left":null==h.get("bottom")?"bottom":"top";i.setStyle({fill:l.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:l.get("textBackgroundColor")}),n.setTextConfig({position:l.get("textPosition")||e}),i.ignore=!h.get("showTitle"),Jh(this)}).on("mouseout",function(){"emphasis"!==o.get(["iconStatus",e])&&Qh(this),i.hide()}),("emphasis"===o.get(["iconStatus",e])?Jh:Qh)(n),f.add(n),n.on("click",B(r.onclick,r,c,p,e)),u[e]=n})}(e,n,i),e.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Jh:Qh)(i[t])},n instanceof yz&&n.render&&n.render(e,c,p,r)}f.removeAll(),h.get("show")&&(d=+h.get("itemSize"),a=h.get("feature")||{},s=this._features||(this._features={}),l=[],R(a,function(t,e){l.push(e)}),new t_(this._featureNames||[],l).add(g).update(g).remove(V(g,null)).execute(),this._featureNames=l,t=f,n=p,i=(e=h).getBoxLayoutParams(),o=e.get("padding"),u={width:n.getWidth(),height:n.getHeight()},n=Id(i,u,o),Md(e.get("orient"),t,e.get("itemGap"),n.width,n.height),Td(t,i,u,o),f.add(wz(f.getBoundingRect(),h)),f.eachChild(function(t){var e=t.__title,n=t.ensureState("emphasis"),i=n.textConfig||(n.textConfig={}),o=t.getTextContent(),r=o&&o.states.emphasis;r&&!G(r)&&e&&(n=r.style||(r.style={}),o=Ni(e,Rs.makeFont(n)),r=t.x+f.x,e=!1,t.y+f.y+d+o.height>p.getHeight()&&(i.position="top",e=!0),e=e?-5-o.height:d+8,r+o.width/2>p.getWidth()?(i.position=["100%",e],n.align="right"):r-o.width/2<0&&(i.position=[0,e],n.align="left"))}))},Mz.prototype.updateView=function(t,e,n,i){R(this._features,function(t){t instanceof yz&&t.updateView&&t.updateView(t.model,e,n,i)})},Mz.prototype.remove=function(e,n){R(this._features,function(t){t instanceof yz&&t.remove&&t.remove(e,n)}),this.group.removeAll()},Mz.prototype.dispose=function(e,n){R(this._features,function(t){t instanceof yz&&t.dispose&&t.dispose(e,n)})},Mz.type="toolbox",Mz);function Mz(){return null!==Sz&&Sz.apply(this,arguments)||this}Iy.registerClass(rp);var Iz,Na=(l(Tz,Iz=yz),Tz.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()?"svg":n.get("type",!0)||"png",e=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!=typeof MouseEvent||v.browser.ie||v.browser.edge)if(window.navigator.msSaveOrOpenBlob){for(var r=atob(e.split(",")[1]),a=r.length,s=new Uint8Array(a);a--;)s[a]=r.charCodeAt(a);t=new Blob([s]);window.navigator.msSaveOrOpenBlob(t,i+"."+o)}else{var l=n.get("lang"),l='<body style="margin:0;"><img src="'+e+'" style="max-width:100%;" title="'+(l&&l[0]||"")+'" /></body>';window.open().document.write(l)}else{l=document.createElement("a");l.download=i+"."+o,l.target="_blank",l.href=e;e=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(e)}},Tz.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.getLocale(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:t.getLocale(["toolbox","saveAsImage","lang"])}},Tz);function Tz(){return null!==Iz&&Iz.apply(this,arguments)||this}Na.prototype.unusable=!v.canvasSupported,vz("saveAsImage",Na);var Cz,Dz="__ec_magicType_stack__",Az=[["line","bar"],["stack"]],Ec=(l(kz,Cz=yz),kz.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return R(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},kz.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.getLocale(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},kz.prototype.onclick=function(t,e,a){var s,n,l=this.model,i=l.get(["seriesIndex",a]);Lz[a]&&(s={series:[]},R(Az,function(t){0<=D(t,a)&&R(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,n=Lz[a](e,n,t,l);n&&(A(n,t.option),s.series.push(n));n=t.coordinateSystem;if(n&&"cartesian2d"===n.type&&("line"===a||"bar"===a)){n=n.getAxesByScale("ordinal")[0];if(n){var i=n.dim+"Axis",o=t.getReferringComponents(i,th).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"===a&&(n=w({stack:l.option.title.tiled,tiled:l.option.title.stack},l.option.title)),e.dispatchAction({type:"changeMagicType",currentType:a,newOption:s,newTitle:n,featureName:"magicType"}))},kz);function kz(){return null!==Cz&&Cz.apply(this,arguments)||this}var Lz={line:function(t,e,n,i){if("bar"===t)return w({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 w({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")===Dz;if("line"===t||"bar"===t)return i.setIconStatus("stack",n?"normal":"emphasis"),w({id:e,stack:n?"":Dz},i.get(["option","stack"])||{},!0)}};Yx({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),vz("magicType",Ec);var Pz=new Array(60).join("-"),Nz="\t";function Oz(t){var o,r,a,h,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.push(t)):r.push(t)}),{seriesGroupByCategoryAxis:o,other:r,meta:a});return{value:O([(h=[],R(t.seriesGroupByCategoryAxis,function(t,e){var n=t.categoryAxis,i=t.valueAxis.dim,o=[" "].concat(L(t.series,function(t){return t.name})),r=[n.model.getCategories()];R(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(Nz)],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(Nz))}h.push(a.join("\n"))}),h.join("\n\n"+Pz+"\n\n")),L(t.other,function(t){var i=t.getRawData(),o=[t.name],r=[];return i.each(i.dimensions,function(){for(var t=arguments.length,e=arguments[t-1],e=i.getName(e),n=0;n<t-1;n++)r[n]=arguments[n];o.push((e?e+Nz:"")+r.join(Nz))}),o.join("\n")}).join("\n\n"+Pz+"\n\n")],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join("\n\n"+Pz+"\n\n"),meta:t.meta}}function Rz(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var Ez,zz=new RegExp("["+Nz+"]+","g");function Bz(t,o){var t=t.split(new RegExp("\n*"+Pz+"\n*","g")),r={series:[]};return R(t,function(t,e){var n,i;0<=(i=t).slice(0,i.indexOf("\n")).indexOf(Nz)?(n=function(t){for(var e=t.split(/\n+/g),n=[],i=L(Rz(e.shift()).split(zz),function(t){return{name:t,data:[]}}),o=0;o<e.length;o++){var r=Rz(e[o]).split(zz);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),e=(i=o[e]).axisDim+"Axis",i&&(r[e]=r[e]||[],r[e][i.axisIndex]={data:n.categories},r.series=r.series.concat(n.series))):(n=function(t){for(var e=t.split(/\n+/g),t=Rz(e.shift()),n=[],i=0;i<e.length;i++){var o=Rz(e[i]);if(o){for(var r,a=o.split(zz),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}function Vz(){return null!==Ez&&Ez.apply(this,arguments)||this}vz("dataView",(l(Vz,Ez=yz),Vz.prototype.onclick=function(t,e){var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var r=document.createElement("h4"),a=i.get("lang")||[];r.innerHTML=a[0]||i.get("title"),r.style.cssText="margin: 10px 20px;",r.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="display:block;width:100%;overflow:auto;";var u=i.get("optionToContent"),h=i.get("contentToOption"),c=Oz(t);"function"==typeof u?"string"==typeof(f=u(e.getOption()))?s.innerHTML=f:q(f)&&s.appendChild(f):(s.appendChild(l),l.readOnly=i.get("readOnly"),l.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",l.style.color=i.get("textColor"),l.style.borderColor=i.get("textareaBorderColor"),l.style.backgroundColor=i.get("textareaColor"),l.value=c.value);var p=c.meta,d=document.createElement("div");d.style.cssText="position:absolute;bottom:0;left:0;right:0;";var t="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",f=document.createElement("div"),c=document.createElement("div");t+=";background-color:"+i.get("buttonColor"),t+=";color:"+i.get("buttonTextColor");var g=this;function y(){n.removeChild(o),g._dom=null}ne(f,"click",y),ne(c,"click",function(){if(null==h&&null!=u||null!=h&&null==u)y();else{var t;try{t="function"==typeof h?h(s,e.getOption()):Bz(l.value,p)}catch(t){throw y(),new Error("Data view format error "+t)}t&&e.dispatchAction({type:"changeDataView",newOption:t}),y()}}),f.innerHTML=a[1],c.innerHTML=a[2],c.style.cssText=t,f.style.cssText=t,i.get("readOnly")||d.appendChild(c),d.appendChild(f),o.appendChild(r),o.appendChild(s),o.appendChild(d),s.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},Vz.prototype.remove=function(t,e){this._dom&&e.getDom().removeChild(this._dom)},Vz.prototype.dispose=function(t,e){this.remove(t,e)},Vz.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.getLocale(["toolbox","dataView","title"]),lang:t.getLocale(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"}},Vz)),Yx({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,o){var r=[];R(t.newOption.series,function(t){var e,i,n=o.getSeriesByName(t.name)[0];n?(e=n.get("data"),r.push({name:t.name,data:(n=t.data,i=e,L(n,function(t,e){var n=i&&i[e];if(!Y(n)||F(n))return t;Y(t)&&!F(t)||(t={value:t});e=null!=n.name&&null==t.name;return t=A(t,n),e&&delete t.name,t}))})):r.push(N({type:"scatter"},t))}),o.mergeOption(A({series:r},t.newOption))});var Fz=["dataToPoint","pointToData"],Gz=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Hz=(Wz.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,e=jz[t.brushType](0,n,e),t.__rangeOffset={offset:$z[t.brushType](e.values,t.range,[1,1]),xyMinMax:e.xyMinMax})}),t},Wz.prototype.matchOutputRanges=function(t,i,o){R(t,function(n){var t=this.findTargetInfo(n,i);t&&!0!==t&&R(t.coordSyses,function(t){var e=jz[n.brushType](1,t,n.range);o(n,e.values,t,i)})},this)},Wz.prototype.setInputRanges=function(t,i){R(t,function(t){var e,n=this.findTargetInfo(t,i);t.range=t.range||[],n&&!0!==n&&(t.panelId=n.panelId,e=jz[t.brushType](0,n.coordSys,t.coordRange),n=t.__rangeOffset,t.range=n?$z[t.brushType](e.values,n.offset,function(t,e){t=Qz(t),e=Qz(e),e=[t[0]/e[0],t[1]/e[1]];return isNaN(e[0])&&(e[0]=1),isNaN(e[1])&&(e[1]=1),e}(e.xyMinMax,n.xyMinMax)):e.values)},this)},Wz.prototype.makePanelOpts=function(n,i){return L(this._targetInfoList,function(t){var e=t.getPanelRect();return{panelId:t.panelId,defaultBrushType:i?i(t):null,clipPath:TL(e),isTargetByCursor:DL(e,n,t.coordSysModel),getLinearBrushOtherExtent:CL(e)}})},Wz.prototype.controlSeries=function(t,e,n){n=this.findTargetInfo(t,n);return!0===n||n&&0<=D(n.coordSyses,e.coordinateSystem)},Wz.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=Yz(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<Zz.length;s++)if(Zz[s](i,r))return r}return!0},Wz);function Wz(t,e,n){var i=this;this._targetInfoList=[];var o=Yz(e,t);R(Uz,function(t,e){n&&n.include&&!(0<=D(n.include,e))||t(o,i._targetInfoList)})}function Xz(t){return t[0]>t[1]&&t.reverse(),t}function Yz(t,e){return Qu(t,e,{includeMainTypes:Gz})}var Uz={grid:function(t,i){var o=t.xAxisModels,r=t.yAxisModels,t=t.gridModels,e=ct(),a={},s={};(o||r||t)&&(R(o,function(t){t=t.axis.grid.model;e.set(t.id,t),a[t.id]=!0}),R(r,function(t){t=t.axis.grid.model;e.set(t.id,t),s[t.id]=!0}),R(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=[];R(e.getCartesians(),function(t,e){(0<=D(o,t.getAxis("x").model)||0<=D(r,t.getAxis("y").model))&&n.push(t)}),i.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:n[0],coordSyses:n,getPanelRect:qz.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,n){R(t.geoModels,function(t){var e=t.coordinateSystem;n.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:e,coordSyses:[e],getPanelRect:qz.geo})})}},Zz=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,t=t.gridModel;return!t&&n&&(t=n.axis.grid.model),!t&&i&&(t=i.axis.grid.model),t&&t===e.gridModel},function(t,e){t=t.geoModel;return t&&t===e.geoModel}],qz={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(jp(t)),e}},jz={lineX:V(Kz,0),lineY:V(Kz,1),rect:function(t,e,n){var i=e[Fz[t]]([n[0][0],n[1][0]]),n=e[Fz[t]]([n[0][1],n[1][1]]),n=[Xz([i[0],n[0]]),Xz([i[1],n[1]])];return{values:n,xyMinMax:n}},polygon:function(e,n,t){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:L(t,function(t){t=n[Fz[e]](t);return i[0][0]=Math.min(i[0][0],t[0]),i[1][0]=Math.min(i[1][0],t[1]),i[0][1]=Math.max(i[0][1],t[0]),i[1][1]=Math.max(i[1][1],t[1]),t}),xyMinMax:i}}};function Kz(t,e,n,i){var o=n.getAxis(["x","y"][t]),r=Xz(L([0,1],function(t){return e?o.coordToData(o.toLocalCoord(i[t])):o.toGlobalCoord(o.dataToCoord(i[t]))})),n=[];return n[t]=r,n[1-t]=[NaN,NaN],{values:r,xyMinMax:n}}var $z={lineX:V(Jz,0),lineY:V(Jz,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 L(t,function(t,e){return[t[0]-i[0]*n[e][0],t[1]-i[1]*n[e][1]]})}};function Jz(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function Qz(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var tB=R,eB=$u();function nB(t){t=eB(t);return t.snapshots||(t.snapshots=[{}]),t.snapshots}Ed.registerSubTypeDefaulter("dataZoom",function(){return"slider"});var iB=["x","y","radius","angle","single"],oB=["cartesian2d","polar","singleAxis"];function rB(t){return t+"Axis"}function aB(t,e){var i,o=ct(),n=[],r=ct();for(t.eachComponent({mainType:"dataZoom",query:e},function(t){r.get(t.uid)||s(t)});i=!1,t.eachComponent("dataZoom",a),i;);function a(t){var n;!r.get(t.uid)&&(n=!1,t.eachTargetAxis(function(t,e){t=o.get(t);t&&t[e]&&(n=!0)}),n)&&(s(t),i=!0)}function s(t){r.set(t.uid,!0),n.push(t),t.eachTargetAxis(function(t,e){(o.get(t)||o.set(t,[]))[e]=!0})}return n}function sB(t){var o=t.ecModel,r={infoList:[],infoMap:ct()};return t.eachTargetAxis(function(t,e){var n,i=o.getComponent(rB(t),e);!i||(n=i.getCoordSysModel())&&(t=n.uid,(e=r.infoMap.get(t))||(e={model:n,axisModels:[]},r.infoList.push(e),r.infoMap.set(t,e)),e.axisModels.push(i))}),r}var lB=(uB.prototype.add=function(t){this.indexList.push(t),this.indexMap[t]=!0},uB);function uB(){this.indexList=[],this.indexMap=[]}var hB,rp=(l(cB,hB=Ed),cB.prototype.init=function(t,e,n){var i=pB(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},cB.prototype.mergeOption=function(t){var e=pB(t);w(this.option,t,!0),w(this.settledOption,e,!0),this._doInit(e)},cB.prototype._doInit=function(t){var n=this.option;v.canvasSupported||(n.realtime=!1),this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;R([["start","startValue"],["end","endValue"]],function(t,e){"value"===this._rangePropMode[e]&&(n[t[0]]=i[t[0]]=null)},this),this._resetTarget()},cB.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=ct();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)},cB.prototype._fillSpecifiedTargetAxis=function(i){var o=!1;return R(iB,function(t){var e,n=this.getReferringComponents(rB(t),eh);n.specified&&(o=!0,e=new lB,R(n.models,function(t){e.add(t.componentIndex)}),i.set(t,e))},this),o},cB.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 lB).add(o.componentIndex),r.set(e,n),a=!1,"x"!==e&&"y"!==e||(i=o.getReferringComponents("grid",th).models[0])&&R(t,function(t){o.componentIndex!==t.componentIndex&&i===t.getReferringComponents("grid",th).models[0]&&n.add(t.componentIndex)}))}a&&(t="vertical"===e?"y":"x",n(i.findComponents({mainType:t+"Axis"}),t)),a&&n(i.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),a&&R(iB,function(t){var e,n;a||(e=i.findComponents({mainType:rB(t),filter:function(t){return"category"===t.get("type",!0)}}))[0]&&((n=new lB).add(e[0].componentIndex),r.set(t,n))},this)},cB.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){e=e||t},this),"y"===e?"vertical":"horizontal"},cB.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)},cB.prototype._updateRangeUse=function(i){var o=this._rangePropMode,r=this.get("rangeMode");R([["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")})},cB.prototype.noTarget=function(){return this._noTarget},cB.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(t,e){null==n&&(n=this.ecModel.getComponent(rB(t),e))},this),n},cB.prototype.eachTargetAxis=function(n,i){this._targetAxisInfoMap.each(function(t,e){R(t.indexList,function(t){n.call(i,e,t)})})},cB.prototype.getAxisProxy=function(t,e){e=this.getAxisModel(t,e);if(e)return e.__dzAxisProxy},cB.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(rB(t),e)},cB.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;R([["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)},cB.prototype.setCalculatedRange=function(e){var n=this.option;R(["start","startValue","end","endValue"],function(t){n[t]=e[t]})},cB.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},cB.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();e=this.findRepresentativeAxisProxy();return e?e.getDataValueWindow():void 0},cB.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},cB.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},cB.prototype.getOrient=function(){return this._orient},cB.type="dataZoom",cB.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],cB.defaultOption={zlevel:0,z:4,filterMode:"filter",start:0,end:100},cB);function cB(){var t=null!==hB&&hB.apply(this,arguments)||this;return t.type=cB.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}function pB(e){var n={};return R(["start","end","startValue","endValue","throttle"],function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}var dB,Na=(l(fB,dB=Iy),fB.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},fB.type="dataZoom",fB);function fB(){var t=null!==dB&&dB.apply(this,arguments)||this;return t.type=fB.type,t}Iy.registerClass(Na);var gB,Ec=(l(yB,gB=rp),yB.type="dataZoom.select",yB);function yB(){var t=null!==gB&&gB.apply(this,arguments)||this;return t.type=yB.type,t}Ed.registerClass(Ec);var mB,Ec=(l(vB,mB=Na),vB.type="dataZoom.select",vB);function vB(){var t=null!==mB&&mB.apply(this,arguments)||this;return t.type=vB.type,t}Iy.registerClass(Ec);var xB=R,_B=mu,bB=(wB.prototype.hostedBy=function(t){return this._dataZoomModel===t},wB.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},wB.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},wB.prototype.getTargetSeriesModels=function(){var n=[];return this.ecModel.eachSeries(function(t){var e;e=(e=t).get("coordinateSystem"),0<=D(oB,e)&&(e=rB(this._dimName),(e=t.getReferringComponents(e,th).models[0])&&this._axisIndex===e.componentIndex&&n.push(t))},this),n},wB.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},wB.prototype.getMinMaxSpan=function(){return C(this._minMaxSpan)},wB.prototype.calculateDataWindow=function(i){var o,r=this._dataExtent,s=this.getAxisModel().axis.scale,a=this._dataZoomModel.getRangePropMode(),l=[0,100],u=[],h=[];xB(["start","end"],function(t,e){var n=i[t],t=i[t+"Value"];"percent"===a[e]?(null==n&&(n=l[e]),t=s.parse(fu(n,l,r))):(o=!0,n=fu(t=null==t?r[e]:s.parse(t),r,l)),h[e]=t,u[e]=n}),_B(h),_B(u);var c=this._minMaxSpan;function t(t,e,n,i,o){var r=o?"Span":"ValueSpan";mk(0,t,n,"all",c["min"+r],c["max"+r]);for(var a=0;a<2;a++)e[a]=fu(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}},wB.prototype.reset=function(t){var e;t===this._dataZoomModel&&(e=this.getTargetSeriesModels(),this._dataExtent=function(t,e,n){var i=[1/0,-1/0];xB(n,function(t){$b(i,t.getData(),e)});t=t.getAxisModel(),t=Fb(t.axis.scale,t,i).calculate();return[t.min,t.max]}(this,this._dimName,e),this._updateMinMaxSpan(),t=this.calculateDataWindow(t.settledOption),this._valueWindow=t.valueWindow,this._percentWindow=t.percentWindow,this._setAxisModel())},wB.prototype.filterData=function(t,e){var i,n,o,h;t===this._dataZoomModel&&(i=this._dimName,n=this.getTargetSeriesModels(),o=t.get("filterMode"),h=this._valueWindow,"none"!==o&&xB(n,function(n){var l=n.getData(),u=l.mapDimensionsAll(i);u.length&&("weakFilter"===o?l.filterSelf(function(t){for(var e,n,i,o=0;o<u.length;o++){var r=l.get(u[o],t),a=!isNaN(r),s=r<h[0],r=r>h[1];if(a&&!s&&!r)return!0;a&&(i=!0),s&&(e=!0),r&&(n=!0)}return i&&e&&n}):xB(u,function(t){var e;"empty"===o?n.setData(l=l.map(t,function(t){return(e=t)>=h[0]&&e<=h[1]?t:NaN;var e})):((e={})[t]=h,l.selectRange(e))}),xB(u,function(t){l.setApproximateExtent(h,t)}))}))},wB.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},o=this._dataZoomModel,r=this._dataExtent;xB(["min","max"],function(t){var e=o.get(t+"Span"),n=o.get(t+"ValueSpan");null!=n&&(n=this.getAxisModel().axis.scale.parse(n)),null!=n?e=fu(r[0]+n,r,[0,100],!0):null!=e&&(n=fu(e,[0,100],r,!0)-r[0]),i[t+"Span"]=e,i[t+"ValueSpan"]=n},this)},wB.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=_u(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())},wB);function wB(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}Xx(Vd.PROCESSOR.FILTER,{getTargetSeries:function(r){function t(o){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){var n=r.getComponent(rB(t),e);o(t,e,n,i)})})}t(function(t,e,n,i){n.__dzAxisProxy=null});var o=[];t(function(t,e,n,i){n.__dzAxisProxy||(n.__dzAxisProxy=new bB(t,e,i,r),o.push(n.__dzAxisProxy))});var e=ct();return R(o,function(t){R(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]}))})}}),Yx("dataZoom",function(e,t){R(aB(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})});var SB,MB=R,IB=zu+"toolbox-dataZoom_",Ec=(l(TB,SB=yz),TB.prototype.render=function(t,e,n,i){this.brushController||(this.brushController=new Zk(n.getZr()),this.brushController.on("brush",B(this._onBrush,this)).mount()),function(t,e,n,i,o){var r=n.isZoomActive;i&&"takeGlobalCursor"===i.type&&(r="dataZoomSelect"===i.key&&i.dataZoomSelectActive);n.isZoomActive=r,t.setIconStatus("zoom",r?"emphasis":"normal");o=new Hz(LB(t),e,{include:["grid"]}).makePanelOpts(o,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"});n.brushController.setPanels(o).enableBrush(!(!r||!o.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),e=e,t.setIconStatus("back",1<function(t){return nB(t).length}(e)?"emphasis":"normal")},TB.prototype.onclick=function(t,e,n){kB[n].call(this)},TB.prototype.remove=function(t,e){this.brushController.unmount()},TB.prototype.dispose=function(t,e){this.brushController.dispose()},TB.prototype._onBrush=function(t){var s,l,o,r,e=t.areas;function i(t,e,n){var i,o,r,a=e.getAxis(t),e=a.model,t=(i=t,o=e,l.eachComponent({mainType:"dataZoom",subType:"select"},function(t){t.getAxisModel(i,o.componentIndex)&&(r=t)}),r),e=t.findRepresentativeAxisProxy(e).getMinMaxSpan();null==e.minValueSpan&&null==e.maxValueSpan||(n=mk(0,n.slice(),a.scale.getExtent(),0,e.minValueSpan,e.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 Hz(LB(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))}),e=s,r=nB(o=l),tB(e,function(t,e){for(var n,i=r.length-1;0<=i;i--){if(r[i][e])break}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(e),this._dispatchZoomAction(s))},TB.prototype._dispatchZoomAction=function(t){var n=[];MB(t,function(t,e){n.push(C(t))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},TB.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.getLocale(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},TB);function TB(){return null!==SB&&SB.apply(this,arguments)||this}var CB,DB,AB,kB={zoom:function(){var t=!this.isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var i=nB(t),t=i[i.length-1];1<i.length&&i.pop();var o={};return tB(t,function(t,e){for(var n=i.length-1;0<=n;n--)if(t=i[n][e]){o[e]=t;break}}),o}(this.ecModel))}};function LB(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 PB(){return null!==AB&&AB.apply(this,arguments)||this}vz("dataZoom",Ec),CB="dataZoom",DB=function(t){var e=t.getComponent("toolbox",0);if(e){var i=e.getModel(["feature","dataZoom"]),o=[],t=Qu(t,LB(i));return MB(t.xAxisModels,function(t){return n(t,"xAxis","xAxisIndex")}),MB(t.yAxisModels,function(t){return n(t,"yAxis","yAxisIndex")}),o}function n(t,e,n){t=t.componentIndex,e={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:IB+e+t};e[n]=t,o.push(e)}},ot(null==hf.get(CB)&&DB),hf.set(CB,DB),vz("restore",(l(PB,AB=yz),PB.prototype.onclick=function(t,e){eB(t).snapshots=null,e.dispatchAction({type:"restore",from:this.uid})},PB.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.getLocale(["toolbox","restore","title"])}},PB)),Yx({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var NB,Ec=(l(OB,NB=Ed),OB.type="tooltip",OB.dependencies=["axisPointer"],OB.defaultOption={zlevel:0,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,borderColor:"#333",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}},OB);function OB(){var t=null!==NB&&NB.apply(this,arguments)||this;return t.type=OB.type,t}function RB(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}Ed.registerClass(Ec);var EB=["-ms-","-moz-","-o-","-webkit-",""];function zB(i,t,e){var n,o,r,a=[],s=i.get("transitionDuration"),l=i.get("backgroundColor"),u=i.get("shadowBlur"),h=i.get("shadowColor"),c=i.get("shadowOffsetX"),p=i.get("shadowOffsetY"),d=i.getModel("textStyle"),f=uy(i,"html"),h=c+"px "+p+"px "+u+"px "+h;return a.push("box-shadow:"+h),t&&s&&a.push((n="opacity "+(t=s)/2+"s "+(s="cubic-bezier(0.23, 1, 0.32, 1)")+",visibility "+t/2+"s "+s,e||(n+=",left "+t+"s "+s+",top "+t+"s "+s),L(EB,function(t){return t+"transition:"+n}).join(";"))),l&&(v.canvasSupported?a.push("background-Color:"+l):(a.push("background-Color:#"+on(l)),a.push("filter:alpha(opacity=70)"))),R(["width","color","radius"],function(t){var e="border-"+t,n=ad(e),n=i.get(n);null!=n&&a.push(e+":"+n+("color"===t?"":"px"))}),a.push((r=[],l=(o=d).get("fontSize"),(d=o.getTextColor())&&r.push("color:"+d),r.push("font:"+o.getFont()),l&&r.push("line-height:"+Math.round(3*l/2)+"px"),R(["decoration","align"],function(t){var e=o.get(t);e&&r.push("text-"+t+":"+e)}),r.join(";"))),null!=f&&a.push("padding:"+sd(f).join("px ")+"px"),a.join(";")+";"}function BB(t,e,n,i,o){var r,a,s=e&&e.painter;n?(a=s&&s.getViewportRoot())&&(r=t,n=a,a=document.body,Zt(Ut,n,i,o,!0)&&Zt(r,a,Ut[0],Ut[1])):(t[0]=i,t[1]=o,(s=s&&s.getViewportRootOffset())&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var VB=(FB.prototype.update=function(t){var e=this._container,n=e.currentStyle||document.defaultView.getComputedStyle(e),e=e.style;"absolute"!==e.position&&"absolute"!==n.position&&(e.position="relative"),t.get("alwaysShowContent")&&this._moveIfResized(),this.el.className=t.get("className")||""},FB.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=this._styleCoord,o=n.offsetHeight/2;e=md(e),n.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+zB(t,!this._firstShow,this._longHide)+";left:"+i[0]+"px;top:"+(i[1]-o)+"px;border-color: "+e+";"+(t.get("extraCssText")||""),n.style.display=n.innerHTML?"block":"none",n.style.pointerEvents=this._enterable?"auto":"none",this._show=!0,this._firstShow=!1,this._longHide=!1},FB.prototype.setContent=function(t,e,n,i,o){null!=t&&(H(o)&&"item"===n.get("trigger")&&!RB(n)&&(t+=function(t,e,n){if(!H(n)||"inside"===n)return"";e=md(e);var n=i="left"===(i=n)?"right":"right"===i?"left":"top"===i?"bottom":"top",i="",o="",o=-1<D(["left","right"],n)?(i=n+":-6px;top:50%;","translateY(-50%) rotate("+("left"==n?-225:-45)+"deg)"):(i=n+":-6px;left:50%;","translateX(-50%) rotate("+("top"==n?225:45)+"deg)");return'<div style="'+["position:absolute;width:10px;height:10px;",""+i+(o=L(EB,function(t){return t+"transform:"+o}).join(";"))+";","border-bottom: "+e+" solid 1px;","border-right: "+e+" solid 1px;","background-color: "+t+";","box-shadow: 8px 8px 16px -3px #000;"].join("")+'"></div>'}(n.get("backgroundColor"),i,o)),this.el.innerHTML=t)},FB.prototype.setEnterable=function(t){this._enterable=t},FB.prototype.getSize=function(){var t=this.el;return[t.clientWidth,t.clientHeight]},FB.prototype.moveTo=function(t,e){var n=this._styleCoord;BB(n,this._zr,this._appendToBody,t,e),null!=n[0]&&null!=n[1]&&((e=this.el.style).left=n[0].toFixed(0)+"px",e.top=n[1].toFixed(0)+"px")},FB.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},FB.prototype.hide=function(){var t=this;this.el.style.visibility="hidden",this.el.style.opacity="0",this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},FB.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(B(this.hide,this),t)):this.hide())},FB.prototype.isShow=function(){return this._show},FB.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},FB.prototype.getOuterSize=function(){var t,e=this.el.clientWidth,n=this.el.clientHeight;return document.defaultView&&document.defaultView.getComputedStyle&&((t=document.defaultView.getComputedStyle(this.el))&&(e+=parseInt(t.borderLeftWidth,10)+parseInt(t.borderRightWidth,10),n+=parseInt(t.borderTopWidth,10)+parseInt(t.borderBottomWidth,10))),{width:e,height:n}},FB);function FB(t,e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,v.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var o=this._zr=e.getZr(),n=this._appendToBody=n&&n.appendToBody;BB(this._styleCoord,o,n,e.getWidth()/2,e.getHeight()/2),(n?document.body:t).appendChild(i),this._container=t;var r=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,ee(o.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},i.onmouseleave=function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}var GB=(HB.prototype.update=function(t){t.get("alwaysShowContent")&&this._moveIfResized()},HB.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},HB.prototype.setContent=function(t,e,n,i,o){this.el&&this._zr.remove(this.el),this.el=new Rs({style:{rich:e.richTextStyles,text:t,lineHeight:22,backgroundColor:n.get("backgroundColor"),borderRadius:n.get("borderRadius"),borderWidth:1,borderColor:i,shadowColor:n.get("shadowColor"),shadowBlur:n.get("shadowBlur"),shadowOffsetX:n.get("shadowOffsetX"),shadowOffsetY:n.get("shadowOffsetY"),fill:n.get(["textStyle","color"]),padding:uy(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),this._zr.add(this.el);var r=this;this.el.on("mouseover",function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0}),this.el.on("mouseout",function(){r._enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1})},HB.prototype.setEnterable=function(t){this._enterable=t},HB.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=XB(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},HB.prototype.moveTo=function(t,e){var n,i,o=this.el;o&&(YB(n=this._styleCoord,this._zr,t,e),t=n[0],e=n[1],n=WB((i=o.style).borderWidth||0),i=XB(i),o.x=t+n+i.left,o.y=e+n+i.top,o.markRedraw())},HB.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},HB.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},HB.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(B(this.hide,this),t)):this.hide())},HB.prototype.isShow=function(){return this._show},HB.prototype.getOuterSize=function(){var t=this.getSize();return{width:t[0],height:t[1]}},HB.prototype.dispose=function(){this._zr.remove(this.el)},HB);function HB(t){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=t.getZr(),YB(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function WB(t){return Math.max(0,t)}function XB(t){var e=WB(t.shadowBlur||0),n=WB(t.shadowOffsetX||0),t=WB(t.shadowOffsetY||0);return{left:WB(e-n),right:WB(e+n),top:WB(e-t),bottom:WB(e+t)}}function YB(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var UB,ZB=B,qB=R,jB=gu,KB=new pa({shape:{x:-1,y:-1,width:2,height:2}}),Ec=(l($B,UB=Iy),$B.prototype.init=function(t,e){var n;v.node||(t=(n=t.getComponent("tooltip")).get("renderMode"),this._renderMode="auto"===(t=t)?v.domSupported?"html":"richText":t||"html",this._tooltipContent="richText"===this._renderMode?new GB(e):new VB(e.getDom(),e,{appendToBody:n.get("appendToBody",!0)}))},$B.prototype.render=function(t,e,n){v.node||(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent"),(n=this._tooltipContent).update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow())},$B.prototype._initGlobalListener=function(){var i=this._tooltipModel.get("triggerOn");SO("itemTooltip",this._api,ZB(function(t,e,n){"none"!==i&&(0<=i.indexOf(t)?this._tryShow(e,n):"leave"===t&&this._hide(n))},this))},$B.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api;null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")&&(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})}))},$B.prototype.manuallyShowTip=function(t,e,n,i){var o,r,a;i.from===this.uid||v.node||(o=QB(i,n),this._ticket="",a=i.dataByCoordSys,i.tooltip&&null!=i.x&&null!=i.y?((r=KB).x=i.x,r.y=i.y,r.update(),r.tooltip=i.tooltip,this._tryShow({offsetX:i.x,offsetY:i.y,target:r},o)):a?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:a,tooltipOption:i.tooltipOption},o):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(t=(a=fO(i,e)).point[0],e=a.point[1],null!=t&&null!=e&&this._tryShow({offsetX:t,offsetY:e,position:i.position,target:a.el},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)))},$B.prototype.manuallyHideTip=function(t,e,n,i){var o=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(QB(i,n))},$B.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){e=e.getSeriesByIndex(o);if(e)if("axis"===JB([e.getData().getItemModel(r),e,(e.coordinateSystem||{}).model,t]).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:r,position:i.position}),!0}},$B.prototype._tryShow=function(t,e){var n,i=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):i&&Ov(i,function(t){return null!=_h(t).dataIndex})?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(t,i,e)):i&&i.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(t,i,e)):(this._lastDataByCoordSys=null,this._hide(e)))},$B.prototype._showOrMove=function(t,e){t=t.get("showDelay");e=B(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},$B.prototype._showAxisTooltip=function(t,e){var l=this._ecModel,n=this._tooltipModel,i=[e.offsetX,e.offsetY],o=JB([e.tooltipOption,n]),u=this._renderMode,h=[],c=ey("section",{blocks:[],noHeader:!0}),p=[],d=new hy;qB(t,function(t){qB(t.dataByAxis,function(i){var o,r,a=l.getComponent(i.axisDim+"Axis",i.axisIndex),s=i.value;a&&null!=s&&(o=VO(s,a.axis,l,i.seriesDataIndices,i.valueLabelOpt),r=ey("section",{header:o,noHeader:!rt(o),sortBlocks:!0,blocks:[]}),c.blocks.push(r),R(i.seriesDataIndices,function(t){var e=l.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,t=e.getDataParams(n);t.axisDim=i.axisDim,t.axisIndex=i.axisIndex,t.axisType=i.axisType,t.axisId=i.axisId,t.axisValue=Ub(a.axis,{value:s}),t.axisValueLabel=o,t.marker=d.makeTooltipMarker("item",md(t.color),u);n=fg(e.formatTooltip(n,!0,null));n.markupFragment&&r.blocks.push(n.markupFragment),n.markupText&&p.push(n.markupText),h.push(t)}))})}),c.blocks.reverse(),p.reverse();var r=e.position,e=o.get("order"),e=oy(c,d,u,e);e&&p.unshift(e);var e="richText"===u?"\n\n":"<br/>",a=p.join(e);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(o,r,i[0],i[1],this._tooltipContent,h):this._showTooltipContent(o,a,h,Math.random()+"",i[0],i[1],r,null,d)})},$B.prototype._showSeriesItemTooltip=function(t,e,n){var i,o,r,a,s=Ov(e,function(t){return null!=_h(t).dataIndex}),l=this._ecModel,u=_h(s),h=u.seriesIndex,c=l.getSeriesByIndex(h),p=u.dataModel||c,e=u.dataIndex,s=u.dataType,l=p.getData(s),u=this._renderMode,d=JB([l.getItemModel(e),p,c&&(c.coordinateSystem||{}).model,this._tooltipModel]),c=d.get("trigger");null!=c&&"item"!==c||(i=p.getDataParams(e,s),o=new hy,i.marker=o.makeTooltipMarker("item",md(i.color),u),c=fg(p.formatTooltip(e,!1,s)),s=d.get("order"),r=c.markupFragment?oy(c.markupFragment,o,u,s):c.markupText,a="item_"+p.name+"_"+e,this._showOrMove(d,function(){this._showTooltipContent(d,r,i,a,t.offsetX,t.offsetY,t.position,t.target,o)}),n({type:"showTip",dataIndexInside:e,dataIndex:l.getRawIndex(e),seriesIndex:h,from:this.uid}))},$B.prototype._showComponentItemTooltip=function(t,e,n){var i=e.tooltip;H(i)&&(i={content:i,formatter:i});var o=new Hc(i,this._tooltipModel,this._ecModel),r=o.get("content"),a=Math.random()+"",s=new hy;this._showOrMove(o,function(){this._showTooltipContent(o,r,o.get("formatterParams")||{},a,t.offsetX,t.offsetY,t.position,e,s)}),n({type:"showTip",from:this.uid})},$B.prototype._showTooltipContent=function(n,t,i,e,o,r,a,s,l){var u,h,c,p;this._ticket="",n.get("showContent")&&n.get("show")&&(u=this._tooltipContent,h=n.get("formatter"),a=a||n.get("position"),c=t,p=this._getNearestPoint([o,r],i,n.get("trigger")),h&&H(h)?c=fd(h,i,!0):G(h)&&(t=ZB(function(t,e){t===this._ticket&&(u.setContent(e,l,n,p.color,a),this._updatePosition(n,a,o,r,u,i,s))},this),this._ticket=e,c=h(i,e,t)),u.setContent(c,l,n,p.color,a),u.show(n,p.color),this._updatePosition(n,a,o,r,u,i,s))},$B.prototype._getNearestPoint=function(t,e,n){return"axis"===n||F(e)?{color:"html"===this._renderMode?"#fff":"none"}:F(e)?void 0:{color:e.color||e.borderColor}},$B.prototype._updatePosition=function(t,e,n,i,o,r,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u,h=o.getSize(),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),G(e)&&(e=e([n,i],r,o.el,d,{viewSize:[s,l],contentSize:h.slice()})),F(e)?(n=jB(e[0],s),i=jB(e[1],l)):Y(e)?((r=e).width=h[0],r.height=h[1],n=(r=Id(r,{width:s,height:l})).x,i=r.y,p=c=null):i=(n=(u=H(e)&&a?function(t,e,n){var i=n[0],o=n[1],r=0,a=0,s=e.width,n=e.height;switch(t){case"inside":r=e.x+s/2-i/2,a=e.y+n/2-o/2;break;case"top":r=e.x+s/2-i/2,a=e.y-o-10;break;case"bottom":r=e.x+s/2-i/2,a=e.y+n+10;break;case"left":r=e.x-i-10-5,a=e.y+n/2-o/2;break;case"right":r=e.x+s+10+5,a=e.y+n/2-o/2}return[r,a]}(e,d,h):function(t,e,n,i,o,r,a){var s=n.getOuterSize(),n=s.width,s=s.height;null!=r&&(i<t+n+r+2?t-=n+r:t+=r);null!=a&&(o<e+s+a?e-=s+a:e+=a);return[t,e]}(n,i,o,s,l,c?null:20,p?null:20))[0],u[1]),c&&(n-=tV(c)?h[0]/2:"right"===c?h[0]:0),p&&(i-=tV(p)?h[1]/2:"bottom"===p?h[1]:0),RB(t)&&(n=(u=(c=n,p=i,h=s,t=l,s=(l=(s=o).getOuterSize()).width,l=l.height,c=Math.min(c+s,h)-s,p=Math.min(p+l,t)-l,c=Math.max(c,0),p=Math.max(p,0),[c,p]))[0],i=u[1]),o.moveTo(n,i)},$B.prototype._updateContentNotChangedOnAxis=function(n){var t=this._lastDataByCoordSys,r=!!t&&t.length===n.length;return r&&qB(t,function(t,e){var t=t.dataByAxis||[],o=(n[e]||{}).dataByAxis||[];(r=r&&t.length===o.length)&&qB(t,function(t,e){var n=o[e]||{},e=t.seriesDataIndices||[],i=n.seriesDataIndices||[];(r=r&&t.value===n.value&&t.axisType===n.axisType&&t.axisId===n.axisId&&e.length===i.length)&&qB(e,function(t,e){e=i[e];r=r&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex})})}),this._lastDataByCoordSys=n,!!r},$B.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},$B.prototype.dispose=function(t,e){v.node||(this._tooltipContent.dispose(),TO("itemTooltip",e))},$B.type="tooltip",$B);function $B(){var t=null!==UB&&UB.apply(this,arguments)||this;return t.type=$B.type,t}function JB(t){for(var e=t.pop();t.length;){var n=t.pop();n&&(n instanceof Hc&&(n=n.get("tooltip",!0)),H(n)&&(n={formatter:n}),e=new Hc(n,e,e.ecModel))}return e}function QB(t,e){return t.dispatchAction||B(e.dispatchAction,e)}function tV(t){return"center"===t||"middle"===t}Iy.registerClass(Ec),Yx({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),Yx({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){});var eV=["rect","polygon","keep","clear"];var nV=R;function iV(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return 1}function oV(e,t,o){var r={};return nV(t,function(n){var i=r[n]=(t.prototype.__hidden=t.prototype,new t);function t(){}nV(e[n],function(t,e){uD.isValidType(e)&&(t={type:e,visual:t},o&&o(t,n),i[e]=new uD(t),"opacity"===e&&((t=C(t)).type="colorAlpha",i.__hidden.__alphaForOpacity=new uD(t)))})}),r}function rV(e,n,t){var i;R(t,function(t){n.hasOwnProperty(t)&&iV(n[t])&&(i=!0)}),i&&R(t,function(t){n.hasOwnProperty(t)&&iV(n[t])?e[t]=C(n[t]):delete e[t]})}var aV={lineX:sV(0),lineY:sV(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&sw(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var o=t.x,r=t.y,a=t.width,s=t.height,n=i[0];return!!(sw(i,o,r)||sw(i,o+a,r)||sw(i,o,r+s)||sw(i,o+a,r+s)||Mi.create(t).contain(n[0],n[1])||nd(o,r,o+a,r,i)||nd(o,r,o,r+s,i)||nd(o+a,r,o+a,r+s,i)||nd(o,r+s,o+a,r+s,i))||void 0}}};function sV(i){var o=["x","y"],r=["width","height"];return{point:function(t,e,n){if(t){n=n.range;return lV(t[i],n)}},rect:function(t,e,n){if(t){n=n.range,t=[t[o[i]],t[o[i]]+t[r[i]]];return t[1]<t[0]&&t.reverse(),lV(t[0],n)||lV(t[1],n)||lV(n[0],t)||lV(n[1],t)}}}}function lV(t,e){return e[0]<=t&&t<=e[1]}var uV=["inBrush","outOfBrush"],hV="__ecBrushSelect",cV="__ecInBrushSelectEvent";function pV(e){e.eachComponent({mainType:"brush"},function(t){(t.brushTargetManager=new Hz(t.option,e)).setInputRanges(t.areas,e)})}function dV(t,e){var n;t.isDisposed()||((n=t.getZr())[cV]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[cV]=!1)}function fV(t,e,n,i){for(var o=0,r=e.length;o<r;o++){var a=e[o];if(t.brushSelector(i,n,a.selectors,a))return 1}}qx(Vd.VISUAL.BRUSH,function(l,t,e){var o,r,u=[];l.eachComponent({mainType:"brush"},function(t){e&&"takeGlobalCursor"===e.type&&t.setBrushOption("brush"===e.key?e.brushOption:{brushType:!1})}),pV(l),l.eachComponent({mainType:"brush"},function(a,t){var y={brushId:a.id,brushIndex:t,brushName:a.name,areas:C(a.areas),selected:[]};u.push(y);var e=a.option,n=e.brushLink,i=[],m=[],v=[],x=!1;t||(o=e.throttleType,r=e.throttleDelay);var s=L(a.areas,function(t){var e,n,i,o=gV[t.brushType],t=A({boundingRect:o?o(t):void 0},t);return t.selectors=(n=(e=t).brushType,i={point:function(t){return aV[n].point(t,i,e)},rect:function(t){return aV[n].rect(t,i,e)}}),t}),_=oV(a.option,uV,function(t){t.mappingMethod="fixed"});function b(t){return"all"===n||i[t]}function w(t){return!!t.length}F(n)&&R(n,function(t){i[t]=1}),l.eachSeries(function(t,e){var n,i,o,r=v[e]=[];"parallel"===t.subType?(i=e,o=(n=t).coordinateSystem,x=x||o.hasAxisBrushed(),b(i)&&o.eachActiveState(n.getData(),function(t,e){"active"===t&&(m[e]=1)})):function(e,t,n){if(!e.brushSelector||function(t,e){t=t.option.seriesIndex;return null!=t&&"all"!==t&&(F(t)?D(t,e)<0:e!==t)}(a,t))return;{var i;R(s,function(t){a.brushTargetManager.controlSeries(t,e,l)&&n.push(t),x=x||w(n)}),b(t)&&w(n)&&(i=e.getData()).each(function(t){fV(e,n,i,t)&&(m[t]=1)})}}(t,e,r)}),l.eachSeries(function(e,t){var n={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};y.selected.push(n);var s,l,u,h,c,p,d,i=v[t],o=e.getData(),r=b(t)?function(t){return m[t]?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"}:function(t){return fV(e,i,o,t)?(n.dataIndex.push(o.getRawIndex(t)),"inBrush"):"outOfBrush"};function f(t){return wm(l,p,t)}function g(t,e){Mm(l,p,t,e)}function a(t,e){p=null==c?t:e;e=l.getRawDataItem(p);if(!e||!1!==e.visualMap)for(var e=u.call(h,t),n=s[e],i=d[e],o=0,r=i.length;o<r;o++){var a=i[o];n[a]&&n[a].applyVisual(t,f,g)}}(b(t)?x:w(i))&&(s=_,l=o,u=r,d={},R(uV,function(t){var e=uD.prepareVisualTypes(s[t]);d[t]=e}),null==c?l.each(a):l.each([c],a))})}),function(t,e,n,i,o){if(!o)return;o=t.getZr();if(o[cV])return;o[hV]||(o[hV]=dV);Gy(o,hV,n,e)(t,i)}(t,o,r,u,e)});var gV={rect:function(t){return yV(t.range)},polygon:function(t){for(var e,n=t.range,i=0,o=n.length;i<o;i++){e=e||[[1/0,-1/0],[1/0,-1/0]];var r=n[i];r[0]<e[0][0]&&(e[0][0]=r[0]),r[0]>e[0][1]&&(e[0][1]=r[0]),r[1]<e[1][0]&&(e[1][0]=r[1]),r[1]>e[1][1]&&(e[1][1]=r[1])}return e&&yV(e)}};function yV(t){return new Mi(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var mV,Ec=(l(vV,mV=Ed),vV.prototype.optionUpdated=function(t,e){var n=this.option;e||rV(n,t,["inBrush","outOfBrush"]);t=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},t.hasOwnProperty("liftZ")||(t.liftZ=5)},vV.prototype.setAreas=function(t){t&&(this.areas=L(t,function(t){return xV(this.option,t)},this))},vV.prototype.setBrushOption=function(t){this.brushOption=xV(this.option,t),this.brushType=this.brushOption.brushType},vV.type="brush",vV.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],vV.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},vV);function vV(){var t=null!==mV&&mV.apply(this,arguments)||this;return t.type=vV.type,t.areas=[],t.brushOption={},t}function xV(t,e){return w({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Hc(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}Ed.registerClass(Ec);var _V,Ec=(l(bV,_V=Iy),bV.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new Zk(e.getZr())).on("brush",B(this._onBrush,this)).mount()},bV.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},bV.prototype.updateTransform=function(t,e,n,i){pV(e),this._updateController(t,e,n,i)},bV.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},bV.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},bV.prototype._updateController=function(t,e,n,i){i&&i.$from===t.id||this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},bV.prototype.dispose=function(){this._brushController.dispose()},bV.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);t.isEnd&&!t.removeOnClick||this.api.dispatchAction({type:"brush",brushId:e,areas:C(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:C(n),$from:e})},bV.type="brush",bV);function bV(){var t=null!==_V&&_V.apply(this,arguments)||this;return t.type=bV.type,t}Iy.registerClass(Ec),Yx({type:"brush",event:"brush",update:"updateVisual"},function(e,t){t.eachComponent({mainType:"brush",query:e},function(t){t.setAreas(e.areas)})}),Yx({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),Yx({type:"brushEnd",event:"brushEnd",update:"none"},function(){});var wV,SV=["rect","polygon","lineX","lineY","keep","clear"];function MV(){return null!==wV&&wV.apply(this,arguments)||this}vz("brush",(l(MV,wV=yz),MV.prototype.render=function(e,t,n){var i,o,r;t.eachComponent({mainType:"brush"},function(t){i=t.brushType,o=t.brushOption.brushMode||"single",r=r||!!t.areas.length}),this._brushType=i,this._brushMode=o,R(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?r:t===i)?"emphasis":"normal")})},MV.prototype.updateView=function(t,e,n){this.render(t,e,n)},MV.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return R(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},MV.prototype.onclick=function(t,e,n){var i=this._brushType,o=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===o?"single":"multiple":o}})},MV.getDefaultOption=function(t){return{show:!0,type:SV.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocale(["toolbox","brush","title"])}},MV)),Wx(function(t,e){var n,i,o,r=Bu(t?t.brush:[]);r.length&&(n=[],R(r,function(t){t=t.hasOwnProperty("toolbox")?t.toolbox:[];t instanceof Array&&(n=n.concat(t))}),F(r=t&&t.toolbox)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]),(r=(r=(r=r.feature||(r.feature={})).brush||(r.brush={})).type||(r.type=[])).push.apply(r,n),o={},R(i=r,function(t){o[t]=1}),i.length=0,R(o,function(t,e){i.push(e)}),e&&!r.length&&r.push.apply(r,eV))});var IV,Ec=(l(TV,IV=Ed),TV.type="title",TV.defaultOption={zlevel:0,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"}},TV);function TV(){var t=null!==IV&&IV.apply(this,arguments)||this;return t.type=TV.type,t.layoutMode={type:"box",ignoreSize:!0},t}Ed.registerClass(Ec);var CV,Ec=(l(DV,CV=Iy),DV.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,h=t.getModel("textStyle"),a=t.getModel("subtextStyle"),o=t.get("textAlign"),c=tt(t.get("textBaseline"),t.get("textVerticalAlign")),u=(r=new Rs({style:Sc(h,{text:t.get("text"),fill:h.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),h=t.get("subtext"),a=new Rs({style:Sc(a,{text:h,fill:a.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),s=t.get("link"),l=t.get("sublink"),u=t.get("triggerEvent",!0),r.silent=!s&&!u,a.silent=!l&&!u,s&&r.on("click",function(){vd(s,"_"+t.get("target"))}),l&&a.on("click",function(){vd(l,"_"+t.get("subtarget"))}),_h(r).eventData=_h(a).eventData=u?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(r),h&&i.add(a),u=i.getBoundingRect(),(h=t.getBoxLayoutParams()).width=u.width,h.height=u.height,n=Id(h,{width:n.getWidth(),height:n.getHeight()},t.get("padding")),o||("middle"===(o=t.get("left")||t.get("right"))&&(o="center"),"right"===o?n.x+=n.width:"center"===o&&(n.x+=n.width/2)),c||("center"===(c=t.get("top")||t.get("bottom"))&&(c="middle"),"bottom"===c?n.y+=n.height:"middle"===c&&(n.y+=n.height/2),c=c||"top"),i.x=n.x,i.y=n.y,i.markRedraw(),c={align:o,verticalAlign:c},r.setStyle(c),a.setStyle(c),u=i.getBoundingRect(),c=n.margin,(n=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),n=new pa({shape:{x:u.x-c[3],y:u.y-c[0],width:u.width+c[1]+c[3],height:u.height+c[0]+c[2],r:t.get("borderRadius")},style:n,subPixelOptimize:!0,silent:!0}),i.add(n))},DV.type="title",DV);function DV(){var t=null!==CV&&CV.apply(this,arguments)||this;return t.type=DV.type,t}function AV(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};R(t,function(t,e){i[e]||kV(n,e)||(n[e]=t)}),e.label&&!kV(t,"emphasis")&&(t.emphasis=e.label,delete e.label)}function kV(t,e){return t.hasOwnProperty(e)}Iy.registerClass(Ec),Ed.registerSubTypeDefaulter("timeline",function(){return"slider"}),Yx({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption("timeline",{replaceMerge:n.get("replaceMerge",!0)}),A({currentIndex:n.option.currentIndex},t)}),Yx({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){e=e.getComponent("timeline");e&&null!=t.playState&&e.setPlayState(t.playState)});var LV,Ec=(l(PV,LV=Ed),PV.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},PV.prototype.mergeOption=function(t){LV.prototype.mergeOption.apply(this,arguments),this._initData()},PV.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(e<=t&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},PV.prototype.getCurrentIndex=function(){return this.option.currentIndex},PV.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},PV.prototype.setPlayState=function(t){this.option.autoPlay=!!t},PV.prototype.getPlayState=function(){return!!this.option.autoPlay},PV.prototype._initData=function(){var o,t=this.option,e=t.data||[],t=t.axisType,r=this._names=[];"category"===t?(o=[],R(e,function(t,e){var n,i=Yu(Gu(t),"");Y(t)?(n=C(t)).value=e:n=e,o.push(n),r.push(i)})):o=e;t={category:"ordinal",time:"time",value:"number"}[t]||"number";(this._data=new A_([{name:"value",type:t}],this)).initData(o,r)},PV.prototype.getData=function(){return this._data},PV.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},PV.type="timeline",PV.defaultOption={zlevel:0,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:[]},PV);function PV(){var t=null!==LV&&LV.apply(this,arguments)||this;return t.type=PV.type,t.layoutMode="box",t}Ed.registerClass(Ec);var NV,Ec=(l(OV,NV=Ec),OV.type="timeline.slider",OV.defaultOption=Uc(Ec.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:[]}),OV);function OV(){var t=null!==NV&&NV.apply(this,arguments)||this;return t.type=OV.type,t}T(Ec,pg.prototype),Ed.registerClass(Ec);var RV,Ec=(l(EV,RV=Iy),EV.type="timeline",EV);function EV(){var t=null!==RV&&RV.apply(this,arguments)||this;return t.type=EV.type,t}var zV,BV=(l(VV,zV=Bc),VV.prototype.getLabelModel=function(){return this.model.getModel("label")},VV.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},VV);function VV(t,e,n,i){n=zV.call(this,t,e,n)||this;return n.type=i||"value",n}var FV,GV=Math.PI,HV=$u(),Ec=(l(WV,FV=Ec),WV.prototype.init=function(t,e){this.api=e},WV.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"),n=this._createGroup("_labelGroup"),r=this._axis=this._createAxis(i,e),e.formatTooltip=function(t){return ey("nameValue",{noName:!0,value:r.scale.getLabel({value:t})})},R(["AxisLine","AxisTick","Control","CurrentPointer"],function(t){this["_render"+t](i,o,r,e)},this),this._renderAxisLabel(i,n,r,e),this._position(i,e)),this._doPlayStop(),this._updateTicksStatus()},WV.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},WV.prototype.dispose=function(){this._clearTimer()},WV.prototype._layout=function(t,e){var n,i,o,r=t.get(["label","position"]),a=t.get("orient"),s=(x=e,Id((_=t).getBoxLayoutParams(),{width:x.getWidth(),height:x.getHeight()},_.get("padding"))),l=null==r||"auto"===r?"horizontal"===a?s.y+s.height/2<e.getHeight()/2?"-":"+":s.x+s.width/2<e.getWidth()/2?"+":"-":H(r)?{horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][r]:r,u={horizontal:"center",vertical:0<=l||"+"===l?"left":"right"},h={horizontal:0<=l||"+"===l?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:GV/2},p="vertical"===a?s.height:s.width,d=t.getModel("controlStyle"),f=d.get("show",!0),g=f?d.get("itemSize"):0,y=f?d.get("itemGap"):0,m=g+y,v=(v=t.get(["label","rotate"])||0)*GV/180,x=d.get("position",!0),_=f&&d.get("showPlayBtn",!0),e=f&&d.get("showPrevBtn",!0),r=f&&d.get("showNextBtn",!0),f=0,d=p;"left"===x||"bottom"===x?(_&&(n=[0,0],f+=m),e&&(i=[f,0],f+=m)):(_&&(n=[d-g,0],d-=m),e&&(i=[0,0],f+=m)),r&&(o=[d-g,0],d-=m);d=[f,d];return t.get("inverse")&&d.reverse(),{viewRect:s,mainLength:p,orient:a,rotation:c[a],labelRotation:v,labelPosOpt:l,labelAlign:t.get(["label","align"])||u[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||h[a],playPosition:n,prevBtnPosition:i,nextBtnPosition:o,axisExtent:d,controlSize:g,controlGap:y}},WV.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,o=t.viewRect;"vertical"===t.orient&&(ti(u=Kn(),u,[-(s=o.x),-(l=o.y+o.height)]),ei(u,u,-GV/2),ti(u,u,[s,l]),(o=o.clone()).applyTransform(u));var r=p(o),a=p(n.getBoundingRect()),s=p(i.getBoundingRect()),l=[n.x,n.y],u=[i.x,i.y];u[0]=l[0]=r[0][0];var h,o=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==o||H(o)?(d(l,a,r,1,h="+"===o?0:1),d(u,s,r,1,1-h)):(d(l,a,r,1,h=0<=o?0:1),u[1]=l[1]+o),n.setPosition(l),i.setPosition(u),n.rotation=i.rotation=t.rotation,c(n),c(i)},WV.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 eb({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new _b({lang:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new rb}}(e,i);o.getTicks=function(){return n.mapArray(["value"],function(t){return{value:t}})};var r=n.getDataExtent("value");o.setExtent(r[0],r[1]),o.niceTicks();i=new BV("value",o,t.axisExtent,i);return i.model=e,i},WV.prototype._createGroup=function(t){t=this[t]=new qr;return this.group.add(t),t},WV.prototype._renderAxisLine=function(t,e,n,i){var o=n.getExtent();i.get(["lineStyle","show"])&&(n=new ba({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:N({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}),e.add(n),i=this._progressLine=new ba({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:A({lineCap:"round",lineWidth:n.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1}),e.add(i))},WV.prototype._renderAxisTick=function(t,a,s,l){var u=this,h=l.getData(),e=s.scale.getTicks();this._tickSymbols=[],R(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={position:[e,0],onclick:B(u._changeTimeline,u,t.value)},e=XV(n,i,a,e);e.ensureState("emphasis").style=o.getItemStyle(),e.ensureState("progress").style=r.getItemStyle(),sc(e);r=_h(e);n.get("tooltip")?(r.dataIndex=t.value,r.dataModel=l):r.dataIndex=r.dataModel=null,u._tickSymbols.push(e)})},WV.prototype._renderAxisLabel=function(a,s,l,t){var u,h=this;l.getLabelModel().get("show")&&(u=t.getData(),t=l.getViewLabels(),this._tickLabels=[],R(t,function(t){var e=t.tickValue,n=u.getItemModel(e),i=n.getModel("label"),o=n.getModel(["emphasis","label"]),r=n.getModel(["progress","label"]),n=l.dataToCoord(t.tickValue),t=new Rs({x:n,y:0,rotation:a.labelRotation-a.rotation,onclick:B(h._changeTimeline,h,e),silent:!1,style:Sc(i,{text:t.formattedLabel,align:a.labelAlign,verticalAlign:a.labelBaseline})});t.ensureState("emphasis").style=Sc(o),t.ensureState("progress").style=Sc(r),s.add(t),sc(t),HV(t).dataIndex=e,h._tickLabels.push(t)}))},WV.prototype._renderControl=function(t,r,e,a){var s=t.controlSize,l=t.rotation,u=a.getModel("controlStyle").getItemStyle(),h=a.getModel(["emphasis","controlStyle"]).getItemStyle(),n=a.getPlayState(),i=a.get("inverse",!0);function o(t,e,n,i){var o;t&&(o=zi(tt(a.get(["controlStyle",e+"BtnSize"]),s),s),(n=function(t,e,n,i){var o=i.style,n=ed(t.get(["controlStyle",e]),i||{},new Mi(n[0],n[1],n[2],n[3]));o&&n.setStyle(o);return n}(a,e+"Icon",[0,-o/2,o,o],{position:t,origin:[s/2,0],rotation:i?-l:0,rectHover:!0,style:u,onclick:n})).ensureState("emphasis").style=h,r.add(n),sc(n))}o(t.nextBtnPosition,"next",B(this._changeTimeline,this,i?"-":"+")),o(t.prevBtnPosition,"prev",B(this._changeTimeline,this,i?"+":"-")),o(t.playPosition,n?"stop":"play",B(this._handlePlayClick,this,!n),!0)},WV.prototype._renderCurrentPointer=function(t,e,n,i){var o=i.getData(),r=i.getCurrentIndex(),a=o.getItemModel(r).getModel("checkpointStyle"),s=this,o={onCreate:function(t){t.draggable=!0,t.drift=B(s._handlePointerDrag,s),t.ondragend=B(s._handlePointerDragend,s),YV(t,s._progressLine,r,n,i,!0)},onUpdate:function(t){YV(t,s._progressLine,r,n,i)}};this._currentPointer=XV(a,a,this._mainGroup,{},this._currentPointer,o)},WV.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},WV.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},WV.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},WV.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],t=mu(this._axis.getExtent().slice());n>t[1]&&(n=t[1]),n<t[0]&&(n=t[0]),this._currentPointer.x=n,this._currentPointer.markRedraw(),this._progressLine.shape.x2=n,this._progressLine.dirty();t=this._findNearestTick(n),n=this.model;(e||t!==n.getCurrentIndex()&&n.get("realtime"))&&this._changeTimeline(t)},WV.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")))},WV.prototype._toAxisCoord=function(t){return Kp(t,this._mainGroup.getLocalTransform(),!0)},WV.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},WV.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},WV.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})},WV.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",HV(n[i]).dataIndex<=t)},WV.type="timeline.slider",WV);function WV(){var t=null!==FV&&FV.apply(this,arguments)||this;return t.type=WV.type,t}function XV(t,e,n,i,o,r){var a=e.get("color");o?(o.setColor(a),n.add(o),r&&r.onUpdate(o)):((o=ow(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(o),r&&r.onCreate(o));r=e.getItemStyle(["color"]);o.setStyle(r),i=w({rectHover:!0,z2:100},i,!0);e=(e=t.get("symbolSize"))instanceof Array?e.slice():[+e,+e];i.scaleX=e[0]/2,i.scaleY=e[1]/2;r=t.get("symbolOffset");r&&(i.x=i.x||0,i.y=i.y||0,i.x+=gu(r[0],e[0]),i.y+=gu(r[1],e[1]));t=t.get("symbolRotate");return i.rotation=(t||0)*Math.PI/180||0,o.attr(i),o.updateTransform(),o}function YV(t,e,n,i,o,r){var a;t.dragging||(a=o.getModel("checkpointStyle"),n=i.dataToCoord(o.getData().get("value",n)),r||!a.get("animation",!0)?(t.attr({x:n,y:0}),e&&e.attr({shape:{x2:n}})):(a={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)},t.stopAnimation(null,!0),t.animateTo({x:n,y:0},a),e&&e.animateTo({shape:{x2:n}},a)))}function UV(t){Vu(t,"label",["show"])}Iy.registerClass(Ec),Wx(function(t){F(t=t&&t.timeline)||(t=t?[t]:[]),R(t,function(t){t&&function(t){var e=t.type,n={number:"value",time:"time"};n[e]&&(t.axisType=n[e],delete t.type);{AV(t),kV(t,"controlPosition")&&(kV(e=t.controlStyle||(t.controlStyle={}),"position")||(e.position=t.controlPosition),"none"!==e.position||kV(e,"show")||(e.show=!1,delete e.position),delete t.controlPosition)}R(t.data||[],function(t){Y(t)&&!F(t)&&(!kV(t,"value")&&kV(t,"name")&&(t.value=t.name),AV(t))})}(t)})});var ZV,qV=$u(),jV=(l(KV,ZV=Ed),KV.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},KV.prototype.isAnimationEnabled=function(){if(v.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},KV.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},KV.prototype._mergeOption=function(t,i,e,o){var r=this.mainType;e||i.eachSeries(function(t){var e=t.get(this.mainType,!0),n=qV(t)[r];e&&e.data?(n?n._mergeOption(e,i,!0):(o&&UV(e),R(e.data,function(t){t instanceof Array?(UV(t[0]),UV(t[1])):UV(t)}),N(n=this.createMarkerModelFromSeries(e,this,i),{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),n.__hostSeries=t),qV(t)[r]=n):qV(t)[r]=null},this)},KV.prototype.formatTooltip=function(t,e,n){var i=this.getData(),o=this.getRawValue(t),t=i.getName(t);return ey("section",{header:this.name,blocks:[ey("nameValue",{name:t,value:o,noName:!t,noValue:null==o})]})},KV.prototype.getData=function(){return this._data},KV.prototype.setData=function(t){this._data=t},KV.getMarkerModelFromSeries=function(t,e){return qV(t)[e]},KV.type="marker",KV.dependencies=["series","grid","polar","geo"],KV);function KV(){var t=null!==ZV&&ZV.apply(this,arguments)||this;return t.type=KV.type,t.createdBySelf=!1,t}T(jV,pg.prototype);var $V,Ec=(l(JV,$V=jV),JV.prototype.createMarkerModelFromSeries=function(t,e,n){return new JV(t,e,n)},JV.type="markPoint",JV.defaultOption={zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},JV);function JV(){var t=null!==$V&&$V.apply(this,arguments)||this;return t.type=JV.type,t}function QV(t,e,n,i,o,r){var a=[],s=V_(e,i)?e.getCalculationInfo("stackResultDimension"):i,t=rF(e,s,t),t=e.indicesOfNearest(s,t)[0];a[o]=e.get(n,t),a[r]=e.get(s,t);s=e.get(i,t),t=vu(e.get(i,t));return 0<=(t=Math.min(t,20))&&(a[r]=+a[r].toFixed(t)),[a,s]}Ed.registerClass(Ec);var tF={min:V(QV,"min"),max:V(QV,"max"),average:V(QV,"average"),median:V(QV,"median")};function eF(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&(r=e,isNaN(parseFloat(r.x))||isNaN(parseFloat(r.y)))&&!F(e.coord)&&i){var o=i.dimensions,r=nF(e,n,i,t);if((e=C(e)).type&&tF[e.type]&&r.baseAxis&&r.valueAxis){i=D(o,r.baseAxis.dim),t=D(o,r.valueAxis.dim),t=tF[e.type](n,r.baseDataDim,r.valueDataDim,i,t);e.coord=t[0],e.value=t[1]}else{for(var a=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],s=0;s<2;s++)tF[a[s]]&&(a[s]=rF(n,n.mapDimension(o[s]),a[s]));e.coord=a}}return e}function nF(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){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var o=0;o<i.length;o++){var r=n.getDimensionInfo(i[o]);if(r.name===e)return r.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 iF(t,e){return!(t&&t.containData&&e.coord&&(n=e,isNaN(parseFloat(n.x))&&isNaN(parseFloat(n.y))))||t.containData(e.coord);var n}function oF(t,e,n,i){return i<2?t.coord&&t.coord[i]:t.value}function rF(t,e,n){if("average"!==n)return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0];var i=0,o=0;return t.each(e,function(t,e){isNaN(t)||(i+=t,o++)}),i/o}var aF,sF=$u(),pg=(l(lF,aF=Iy),lF.prototype.init=function(){this.markerGroupMap=ct()},lF.prototype.render=function(t,n,i){var o=this,e=this.markerGroupMap;e.each(function(t){sF(t).keep=!1}),n.eachSeries(function(t){var e=jV.getMarkerModelFromSeries(t,o.type);e&&o.renderSeries(t,e,n,i)}),e.each(function(t){sF(t).keep||o.group.remove(t.group)})},lF.prototype.markKeep=function(t){sF(t).keep=!0},lF.prototype.blurSeries=function(t){var e=this;R(t,function(t){t=jV.getMarkerModelFromSeries(t,e.type);t&&t.getData().eachItemGraphicEl(function(t){t&&tc(t)})})},lF.type="marker",lF);function lF(){var t=null!==aF&&aF.apply(this,arguments)||this;return t.type=lF.type,t}function uF(a,s,l){var u=s.coordinateSystem;a.each(function(t){var e,n,i=a.getItemModel(t),o=gu(i.get("x"),l.getWidth()),r=gu(i.get("y"),l.getHeight());isNaN(o)||isNaN(r)?s.getMarkerPosition?n=s.getMarkerPosition(a.getValues(a.dimensions,t)):u&&(e=a.get(u.dimensions[0],t),i=a.get(u.dimensions[1],t),n=u.dataToPoint([e,i])):n=[o,r],isNaN(o)||(n[0]=o),isNaN(r)||(n[1]=r),a.setItemLayout(t,n)})}var hF,Ec=(l(cF,hF=pg),cF.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=jV.getMarkerModelFromSeries(t,"markPoint");e&&(uF(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())},this)},cF.prototype.renderSeries=function(t,s,e,n){var i=t.coordinateSystem,o=t.id,l=t.getData(),r=this.markerGroupMap,o=r.get(o)||r.set(o,new iS),u=function(t,e,n){i=t?L(t&&t.dimensions,function(t){return A({name:t},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{})}):[{name:"value",type:"float"}];var i=new A_(i,n),n=L(n.get("data"),V(eF,e));t&&(n=O(n,V(iF,t)));return i.initData(n,null,t?oF:function(t){return t.value}),i}(i,t,s);s.setData(u),uF(s.getData(),t,n),u.each(function(t){var e,n=u.getItemModel(t),i=n.getShallow("symbol"),o=n.getShallow("symbolSize"),r=n.getShallow("symbolRotate");(G(i)||G(o)||G(r))&&(e=s.getRawValue(t),a=s.getDataParams(t),G(i)&&(i=i(e,a)),G(o)&&(o=o(e,a)),G(r)&&(r=r(e,a)));var a=n.getModel("itemStyle").getItemStyle(),n=Sm(l,"color");a.fill||(a.fill=n),u.setItemVisual(t,{symbol:i,symbolSize:o,symbolRotate:r,style:a})}),o.updateData(u),this.group.add(o.group),u.eachItemGraphicEl(function(t){t.traverse(function(t){_h(t).dataModel=s})}),this.markKeep(o),o.group.silent=s.get("silent")||t.get("silent")},cF.type="markPoint",cF);function cF(){var t=null!==hF&&hF.apply(this,arguments)||this;return t.type=cF.type,t}Iy.registerClass(Ec),Wx(function(t){t.markPoint=t.markPoint||{}});var pF,Ec=(l(dF,pF=jV),dF.prototype.createMarkerModelFromSeries=function(t,e,n){return new dF(t,e,n)},dF.type="markLine",dF.defaultOption={zlevel:0,z:5,symbol:["circle","arrow"],symbolSize:[8,16],precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},dF);function dF(){var t=null!==pF&&pF.apply(this,arguments)||this;return t.type=dF.type,t}Ed.registerClass(Ec);function fF(t,e,n,i){var o,r,a,s=t.getData(),l=[eF(t,(l=F(i)?i:"min"===(o=i.type)||"max"===o||"average"===o||"median"===o||null!=i.xAxis||null!=i.yAxis?(l=r=void 0,l=null!=i.yAxis||null!=i.xAxis?(r=e.getAxis(null!=i.yAxis?"y":"x"),Q(i.yAxis,i.xAxis)):(r=(a=nF(i,s,e,t)).valueAxis,rF(s,F_(s,a.valueDataDim),o)),s=1-(e="x"===r.dim?0:1),a={coord:[]},(r=C(i)).type=null,r.coord=[],r.coord[s]=-1/0,a.coord[s]=1/0,0<=(n=n.get("precision"))&&"number"==typeof l&&(l=+l.toFixed(Math.min(n,20))),r.coord[e]=a.coord[e]=l,[r,a,{type:o,valueIndex:i.valueIndex,value:l}]):[])[0]),eF(t,l[1]),N({},l[2])];return l[2].type=l[2].type||null,w(l[2],l[0]),w(l[2],l[1]),l}var gF=$u();function yF(t){return!isNaN(t)&&!isFinite(t)}function mF(t,e,n,i){var o=1-t,r=i.dimensions[t];return yF(e[o])&&yF(n[o])&&e[t]===n[t]&&i.getAxis(r).containData(e[t])}function vF(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(mF(1,n,i,t)||mF(0,n,i,t)))return!0}return iF(t,e[0])&&iF(t,e[1])}function xF(t,e,n,i,o){var r,a,s,l,u=i.coordinateSystem,h=t.getItemModel(e),c=gu(h.get("x"),o.getWidth()),o=gu(h.get("y"),o.getHeight());isNaN(c)||isNaN(o)?(r=i.getMarkerPosition?i.getMarkerPosition(t.getValues(t.dimensions,e)):(l=u.dimensions,a=t.get(l[0],e),s=t.get(l[1],e),u.dataToPoint([a,s])),CS(u,"cartesian2d")&&(a=u.getAxis("x"),s=u.getAxis("y"),l=u.dimensions,yF(t.get(l[0],e))?r[0]=a.toGlobalCoord(a.getExtent()[n?0:1]):yF(t.get(l[1],e))&&(r[1]=s.toGlobalCoord(s.getExtent()[n?0:1]))),isNaN(c)||(r[0]=c),isNaN(o)||(r[1]=o)):r=[c,o],t.setItemLayout(e,r)}var _F,Ec=(l(bF,_F=pg),bF.prototype.updateTransform=function(t,e,r){e.eachSeries(function(e){var n,i,o,t=jV.getMarkerModelFromSeries(e,"markLine");t&&(n=t.getData(),i=gF(t).from,o=gF(t).to,i.each(function(t){xF(i,t,!0,e,r),xF(o,t,!1,e,r)}),n.each(function(t){n.setItemLayout(t,[i.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(e.id).updateLayout())},this)},bF.prototype.renderSeries=function(r,n,t,a){var e=r.coordinateSystem,i=r.id,s=r.getData(),o=this.markerGroupMap,i=o.get(i)||o.set(i,new MA);this.group.add(i.group);var e=function(t,e,n){r=t?L(t&&t.dimensions,function(t){return A({name:t},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{})}):[{name:"value",type:"float"}];var i=new A_(r,n),o=new A_(r,n),r=new A_([],n),n=L(n.get("data"),V(fF,e,t,n));t&&(n=O(n,V(vF,t)));t=t?oF:function(t){return t.value};return i.initData(L(n,function(t){return t[0]}),null,t),o.initData(L(n,function(t){return t[1]}),null,t),r.initData(L(n,function(t){return t[2]})),r.hasItemOption=!0,{from:i,to:o,line:r}}(e,r,n),l=e.from,u=e.to,h=e.line;gF(n).from=l,gF(n).to=u,n.setData(h);var c=n.get("symbol"),p=n.get("symbolSize");function d(t,e,n){var i=t.getItemModel(e);xF(t,e,n,r,a);var o=i.getModel("itemStyle").getItemStyle();null==o.fill&&(o.fill=Sm(s,"color")),t.setItemVisual(e,{symbolRotate:i.get("symbolRotate"),symbolSize:i.get("symbolSize")||p[n?0:1],symbol:i.get("symbol",!0)||c[n?0:1],style:o})}F(c)||(c=[c,c]),F(p)||(p=[p,p]),e.from.each(function(t){d(l,t,!0),d(u,t,!1)}),h.each(function(t){var e=h.getItemModel(t).getModel("lineStyle").getLineStyle();h.setItemLayout(t,[l.getItemLayout(t),u.getItemLayout(t)]),null==e.stroke&&(e.stroke=l.getItemVisual(t,"style").fill),h.setItemVisual(t,{fromSymbolRotate:l.getItemVisual(t,"symbolRotate"),fromSymbolSize:l.getItemVisual(t,"symbolSize"),fromSymbol:l.getItemVisual(t,"symbol"),toSymbolRotate:u.getItemVisual(t,"symbolRotate"),toSymbolSize:u.getItemVisual(t,"symbolSize"),toSymbol:u.getItemVisual(t,"symbol"),style:e})}),i.updateData(h),e.line.eachItemGraphicEl(function(t,e){t.traverse(function(t){_h(t).dataModel=n})}),this.markKeep(i),i.group.silent=n.get("silent")||r.get("silent")},bF.type="markLine",bF);function bF(){var t=null!==_F&&_F.apply(this,arguments)||this;return t.type=bF.type,t}Iy.registerClass(Ec),Wx(function(t){t.markLine=t.markLine||{}});var wF,Ec=(l(SF,wF=jV),SF.prototype.createMarkerModelFromSeries=function(t,e,n){return new SF(t,e,n)},SF.type="markArea",SF.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},SF);function SF(){var t=null!==wF&&wF.apply(this,arguments)||this;return t.type=SF.type,t}Ed.registerClass(Ec);function MF(t,e,n,i){var o=eF(t,i[0]),r=eF(t,i[1]),t=o.coord,i=r.coord;return t[0]=Q(t[0],-1/0),t[1]=Q(t[1],-1/0),i[0]=Q(i[0],1/0),i[1]=Q(i[1],1/0),(i=S([{},o,r])).coord=[o.coord,r.coord],i.x0=o.x,i.y0=o.y,i.x1=r.x,i.y1=r.y,i}var IF=$u();function TF(t){return!isNaN(t)&&!isFinite(t)}function CF(t,e,n){t=1-t;return TF(e[t])&&TF(n[t])}function DF(t,e){var n=e.coord[0],i=e.coord[1];return!!(CS(t,"cartesian2d")&&n&&i&&(CF(1,n,i)||CF(0,n,i)))||(iF(t,{coord:n,x:e.x0,y:e.y0})||iF(t,{coord:i,x:e.x1,y:e.y1}))}function AF(t,e,n,i,o){var r,a,s,l,u=i.coordinateSystem,h=t.getItemModel(e),c=gu(h.get(n[0]),o.getWidth()),o=gu(h.get(n[1]),o.getHeight());return isNaN(c)||isNaN(o)?(l=i.getMarkerPosition?i.getMarkerPosition(t.getValues(n,e)):(r=[a=t.get(n[0],e),s=t.get(n[1],e)],u.clampData&&u.clampData(r,r),u.dataToPoint(r,!0)),CS(u,"cartesian2d")&&(r=u.getAxis("x"),u=u.getAxis("y"),a=t.get(n[0],e),s=t.get(n[1],e),TF(a)?l[0]=r.toGlobalCoord(r.getExtent()["x0"===n[0]?0:1]):TF(s)&&(l[1]=u.toGlobalCoord(u.getExtent()["y0"===n[1]?0:1]))),isNaN(c)||(l[0]=c),isNaN(o)||(l[1]=o)):l=[c,o],l}var kF,LF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Ec=(l(PF,kF=pg),PF.prototype.updateTransform=function(t,e,o){e.eachSeries(function(n){var i,t=jV.getMarkerModelFromSeries(n,"markArea");t&&(i=t.getData()).each(function(e){var t=L(LF,function(t){return AF(i,e,t,n,o)});i.setItemLayout(e,t),i.getItemGraphicEl(e).setShape("points",t)})},this)},PF.prototype.renderSeries=function(o,r,t,a){var s=o.coordinateSystem,e=o.id,l=o.getData(),n=this.markerGroupMap,i=n.get(e)||n.set(e,{group:new qr});this.group.add(i.group),this.markKeep(i);var u=function(t,n,e){var i,o;o=t?(i=L(t&&t.dimensions,function(t){var e=n.getData();return A({name:t},e.getDimensionInfo(e.mapDimension(t))||{})}),new A_(L(["x0","y0","x1","y1"],function(t,e){return{name:t,type:i[e%2].type}}),e)):new A_(i=[{name:"value",type:"float"}],e);e=L(e.get("data"),V(MF,n,t,e));t&&(e=O(e,V(DF,t)));t=t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value};return o.initData(e,null,t),o.hasItemOption=!0,o}(s,o,r);r.setData(u),u.each(function(n){var t=L(LF,function(t){return AF(u,n,t,o,a)}),i=!0;R(LF,function(t){var e;i&&(e=u.get(t[0],n),t=u.get(t[1],n),(TF(e)||s.getAxis("x").containData(e))&&(TF(t)||s.getAxis("y").containData(t))&&(i=!1))}),u.setItemLayout(n,{points:t,allClipped:i});var e=u.getItemModel(n).getModel("itemStyle").getItemStyle(),t=Sm(l,"color");e.fill||(e.fill=t,"string"==typeof e.fill&&(e.fill=ln(e.fill,.4))),e.stroke||(e.stroke=t),u.setItemVisual(n,"style",e)}),u.diff(IF(i).data).add(function(t){var e=u.getItemLayout(t);e.allClipped||(e=new Ca({shape:{points:e.points}}),u.setItemGraphicEl(t,e),i.group.add(e))}).update(function(t,e){var n=IF(i).data.getItemGraphicEl(e),e=u.getItemLayout(t);e.allClipped?n&&i.group.remove(n):(n?Fp(n,{shape:{points:e.points}},r,t):n=new Ca({shape:{points:e.points}}),u.setItemGraphicEl(t,n),i.group.add(n))}).remove(function(t){t=IF(i).data.getItemGraphicEl(t);i.group.remove(t)}).execute(),u.eachItemGraphicEl(function(t,e){var n=u.getItemModel(e),i=u.getItemVisual(e,"style");t.useStyle(u.getItemVisual(e,"style")),bc(t,wc(n),{labelFetcher:r,labelDataIndex:e,defaultText:u.getName(e)||"",inheritColor:"string"==typeof i.fill?ln(i.fill,1):"#000"}),cc(t,n),sc(t),_h(t).dataModel=r}),IF(i).data=u,i.group.silent=r.get("silent")||o.get("silent")},PF.type="markArea",PF);function PF(){var t=null!==kF&&kF.apply(this,arguments)||this;return t.type=PF.type,t}Iy.registerClass(Ec),Wx(function(t){t.markArea=t.markArea||{}});var NF,pg=(l(OF,NF=Ed),OF.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},OF.prototype.mergeOption=function(t,e){NF.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},OF.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;!0===n&&(n=t.selector=["all","inverse"]),F(n)&&R(n,function(t,e){H(t)&&(t={type:t}),n[e]=w(t,(e=i,"all"===(t=t.type)?{type:"all",title:e.getLocale(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocale(["legend","selector","inverse"])}:void 0))})},OF.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"))}},OF.prototype._updateData=function(i){var o=[],r=[];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=!0,e&&Zu(t)&&o.push(t.name)}),this._availableNames=r;var t=L(this.get("data")||o,function(t){return"string"!=typeof t&&"number"!=typeof t||(t={name:t}),new Hc(t,this,this.ecModel)},this);this._data=t},OF.prototype.getData=function(){return this._data},OF.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&R(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},OF.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},OF.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},OF.prototype.allSelect=function(){var t=this._data,e=this.option.selected;R(t,function(t){e[t.get("name",!0)]=!0})},OF.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;R(t,function(t){t=t.get("name",!0);e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},OF.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=D(this._availableNames,t)},OF.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},OF.type="legend.plain",OF.dependencies=["series"],OF.defaultOption={zlevel:0,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,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",itemStyle:{borderWidth:0},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}},OF);function OF(){var t=null!==NF&&NF.apply(this,arguments)||this;return t.type=OF.type,t.layoutMode={type:"box",ignoreSize:!0},t}function RF(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)),R(n.getData(),function(t){var e=t.get("name");"\n"!==e&&""!==e&&(t=n.isSelected(e),o.hasOwnProperty(e)?o[e]=o[e]&&t:o[e]=t)})}),"allSelect"===t||"inverseSelect"===t?{selected:o}:{name:e.name,selected:o}}Ed.registerClass(pg),Yx("legendToggleSelect","legendselectchanged",V(RF,"toggleSelected")),Yx("legendAllSelect","legendselectall",V(RF,"allSelect")),Yx("legendInverseSelect","legendinverseselect",V(RF,"inverseSelect")),Yx("legendSelect","legendselected",V(RF,"select")),Yx("legendUnSelect","legendunselected",V(RF,"unSelect"));var EF,zF=V,BF=R,VF=qr,Ec=(l(FF,EF=Iy),FF.prototype.init=function(){this.group.add(this._contentGroup=new VF),this.group.add(this._selectorGroup=new VF),this._isFirstRender=!0},FF.prototype.getContentGroup=function(){return this._contentGroup},FF.prototype.getSelectorGroup=function(){return this._selectorGroup},FF.prototype.render=function(t,e,n){var i,o,r,a,s,l=this._isFirstRender;this._isFirstRender=!1,this.resetInner(),t.get("show",!0)&&(i=t.get("align"),s=t.get("orient"),i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===s?"right":"left"),o=t.get("selector",!0),a=t.get("selectorPosition",!0),!o||a&&"auto"!==a||(a="horizontal"===s?"end":"start"),this.renderInner(i,t,e,n,o,s,a),n=Id(r=t.getBoxLayoutParams(),e={width:n.getWidth(),height:n.getHeight()},s=t.get("padding")),s=Id(A({width:(a=this.layoutInner(t,i,n,l,o,a)).width,height:a.height},r),e,s),this.group.x=s.x-a.x,this.group.y=s.y-a.y,this.group.markRedraw(),this.group.add(this._backgroundEl=wz(a,t)))},FF.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},FF.prototype.renderInner=function(l,u,h,c,t,e,n){var p=this.getContentGroup(),d=ct(),f=u.get("selectedMode"),g=[];h.eachRawSeries(function(t){t.get("legendHoverLink")||g.push(t.id)}),BF(u.getData(),function(i,o){var r=i.get("name");if(!this.newlineDisabled&&(""===r||"\n"===r)){var t=new VF;return t.newline=!0,void p.add(t)}var e,n,a,s=h.getSeriesByName(r)[0];d.get(r)||(s?(e=(n=(a=s.getData()).getVisual("style"))[a.getVisual("drawType")]||n.fill,t=n.stroke,n=a.getVisual("legendSymbol")||"roundRect",a=a.getVisual("symbol"),this._createItem(r,o,i,u,n,a,l,e,t,f).on("click",zF(HF,r,null,c,g)).on("mouseover",zF(XF,s.name,null,c,g)).on("mouseout",zF(YF,s.name,null,c,g)),d.set(r,!0)):h.eachRawSeries(function(t){var e,n;d.get(r)||!t.legendVisualProvider||(e=t.legendVisualProvider).containName(r)&&(n=e.indexOfName(r),e=(t=e.getItemVisual(n,"style")).stroke,n=t.fill,(t=tn(t.fill))&&0===t[3]&&(t[3]=.2,n=un(t,"rgba")),this._createItem(r,o,i,u,"roundRect",null,l,n,e,f).on("click",zF(HF,null,r,c,g)).on("mouseover",zF(XF,null,r,c,g)).on("mouseout",zF(YF,null,r,c,g)),d.set(r,!0))},this))},this),t&&this._createSelector(t,u,c,e,n)},FF.prototype._createSelector=function(t,i,o,e,n){var r=this.getSelectorGroup();BF(t,function(t){var e=t.type,n=new Rs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:"all"===e?"legendAllSelect":"legendInverseSelect"})}});r.add(n),bc(n,{normal:i.getModel("selectorLabel"),emphasis:i.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),sc(n)})},FF.prototype._createItem=function(t,e,n,i,o,r,a,s,l,u){var h=i.get("itemWidth"),c=i.get("itemHeight"),p=i.get("inactiveColor"),d=i.get("inactiveBorderColor"),f=i.get("symbolKeepAspect"),g=i.getModel("itemStyle"),y=i.isSelected(t),m=new VF,v=n.getModel("textStyle"),x=n.get("icon"),_=n.getModel("tooltip"),b=_.parentModel,n=ow(o=x||o,0,0,h,c,y?s:p,null==f||f);m.add(GF(n,o,g,l,d,y)),x||!r||r===o&&"none"!==r||("none"===r&&(r="circle"),f=ow(r,(h-(o=.8*c))/2,(c-o)/2,o,o,y?s:p,null==f||f),m.add(GF(f,r,g,l,d,y)));l="left"===a?h+5:-5,d=a,h=i.get("formatter"),a=t;"string"==typeof h&&h?a=h.replace("{name}",null!=t?t:""):"function"==typeof h&&(a=h(t)),m.add(new Rs({style:Sc(v,{text:a,x:l,y:c/2,fill:y?v.getTextColor():p,align:d,verticalAlign:"middle"})}));d=new pa({shape:m.getBoundingRect(),invisible:!0});return _.get("show")&&(i={componentType:"legend",legendIndex:i.componentIndex,name:t,$vars:["name"]},d.tooltip=N({content:t,formatter:b.get("formatter",!0)||function(t){return t.name},formatterParams:i},_.option)),m.add(d),m.eachChild(function(t){t.silent=!0}),d.silent=!u,this.getContentGroup().add(m),sc(m),m.__legendDataIndex=e,m},FF.prototype.layoutInner=function(t,e,n,i,o,r){var a=this.getContentGroup(),s=this.getSelectorGroup();Md(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),o){Md("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,n=0===d?"width":"height",o=0===d?"height":"width",t=0===d?"y":"x";"end"===r?c[d]+=l[n]+p:u[d]+=h[n]+p,c[1-d]+=l[o]/2-h[o]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];s={x:0,y:0};return s[n]=l[n]+p+h[n],s[o]=Math.max(l[o],h[o]),s[t]=Math.min(0,h[t]+c[1-d]),s}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},FF.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},FF.type="legend.plain",FF);function FF(){var t=null!==EF&&EF.apply(this,arguments)||this;return t.type=FF.type,t.newlineDisabled=!1,t}function GF(t,e,n,i,o,r){var a;return"line"!==e&&e.indexOf("empty")<0?(a=n.getItemStyle(),t.style.stroke=i,r||(a.stroke=o)):a=n.getItemStyle(["borderWidth","borderColor"]),t.setStyle(a),t}function HF(t,e,n,i){YF(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),XF(t,e,n,i)}function WF(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 XF(t,e,n,i){WF(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function YF(t,e,n,i){WF(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}Iy.registerClass(Ec),Xx(Vd.PROCESSOR.SERIES_FILTER,function(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})}),Ed.registerSubTypeDefaulter("legend",function(){return"plain"});var UF,pg=(l(ZF,UF=pg),ZF.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},ZF.prototype.init=function(t,e,n){var i=Ad(t);UF.prototype.init.call(this,t,e,n),qF(this,t,i)},ZF.prototype.mergeOption=function(t,e){UF.prototype.mergeOption.call(this,t,e),qF(this,this.option,t)},ZF.type="legend.scroll",ZF.defaultOption=Uc(pg.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}),ZF);function ZF(){var t=null!==UF&&UF.apply(this,arguments)||this;return t.type=ZF.type,t}function qF(t,e,n){var i=[1,1];i[t.getOrient().index]=0,Dd(e,n,{type:"box",ignoreSize:!!i})}Ed.registerClass(pg);var jF,KF=qr,$F=["width","height"],JF=["x","y"],Ec=(l(QF,jF=Ec),QF.prototype.init=function(){jF.prototype.init.call(this),this.group.add(this._containerGroup=new KF),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new KF)},QF.prototype.resetInner=function(){jF.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},QF.prototype.renderInner=function(t,i,e,o,n,r,a){var s=this;jF.prototype.renderInner.call(this,t,i,e,o,n,r,a);var l=this._controllerGroup,a=i.get("pageIconSize",!0),u=F(a)?a:[a,a];h("pagePrev",0);a=i.getModel("pageTextStyle");function h(t,e){var n=t+"DataIndex",n=ed(i.get("pageIcons",!0)[i.getOrient().name][e],{onclick:B(s._pageGo,s,n,i,o)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});n.name=t,l.add(n)}l.add(new Rs({name:"pageText",style:{text:"xx/xx",fill:a.getTextColor(),font:a.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},QF.prototype.layoutInner=function(t,e,n,i,o,r){var a=this.getSelectorGroup(),s=t.getOrient().index,l=$F[s],u=JF[s],h=$F[1-s],c=JF[1-s];o&&Md("horizontal",a,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=a.getBoundingRect(),f=[-d.x,-d.y],g=C(n);o&&(g[l]=n[l]-d[l]-p);g=this._layoutContentAndController(t,i,g,s,l,h,c);return o&&("end"===r?f[s]+=g[l]+p:(r=d[l]+p,f[s]-=r,g[u]-=r),g[l]+=d[l]+p,f[1-s]+=g[c]+g[h]/2-d[h]/2,g[h]=Math.max(g[h],d[h]),g[c]=Math.min(g[c],d[c]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()),g},QF.prototype._layoutContentAndController=function(t,e,n,i,o,r,a){var s=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;Md(t.get("orient"),s,t.get("itemGap"),i?n.width:null,i?null:n.height),Md("horizontal",u,t.get("pageButtonItemGap",!0));var h=s.getBoundingRect(),c=u.getBoundingRect(),p=this._showController=h[o]>n[o],d=[-h.x,-h.y];e||(d[i]=s[a]);var f=[0,0],g=[-c.x,-c.y],e=tt(t.get("pageButtonGap",!0),t.get("itemGap",!0));p&&("end"===t.get("pageButtonPosition",!0)?g[i]+=n[o]-c[o]:f[i]+=c[o]+e),g[1-i]+=h[r]/2-c[r]/2,s.setPosition(d),l.setPosition(f),u.setPosition(g);f={x:0,y:0};f[o]=(p?n:h)[o],f[r]=Math.max(h[r],c[r]),f[a]=Math.min(0,c[a]+g[1-i]),l.__rectSize=n[o],p?((i={x:0,y:0})[o]=Math.max(n[o]-c[o]-e,0),i[r]=f[r],l.setClipPath(new pa({shape:i})),l.__rectSize=i[o]):u.eachChild(function(t){t.attr({invisible:!0,silent:!0})});u=this._getPageInfo(t);return null!=u.pageIndex&&Fp(s,{x:u.contentPosition[0],y:u.contentPosition[1]},p?t:null),this._updatePageInfoView(t,u),f},QF.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},QF.prototype._updatePageInfoView=function(n,i){var o=this._controllerGroup;R(["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")});var t=o.childOfName("pageText"),e=n.get("pageFormatter"),r=i.pageIndex,a=null!=r?r+1:0,r=i.pageCount;t&&e&&t.setStyle("text",H(e)?e.replace("{current}",null==a?"":a+"").replace("{total}",null==r?"":r+""):e({current:a,total:r}))},QF.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=t.getOrient().index,r=$F[o],a=JF[o],s=this._findTargetItemIndex(e),l=n.children(),t=l[s],u=l.length,e=u?1:0,h={contentPosition:[n.x,n.y],pageCount:e,pageIndex:e-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!t)return h;t=g(t);h.contentPosition[o]=-t.s;for(var c=s+1,p=t,d=t,f=null;c<=u;++c)(!(f=g(l[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=s-1,p=t,d=t,f=null;-1<=c;--c)(f=g(l[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){if(t){var e=t.getBoundingRect(),n=e[a]+t[a];return{s:n,e:n+e[r],i:t.__legendDataIndex}}}function y(t,e){return t.e>=e&&t.s<=e+i}},QF.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},QF.type="legend.scroll",QF);function QF(){var t=null!==jF&&jF.apply(this,arguments)||this;return t.type=QF.type,t.newlineDisabled=!0,t._currentIndex=0,t}Iy.registerClass(Ec),Yx("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})});var tG,Ec=(l(eG,tG=rp),eG.type="dataZoom.slider",eG.layoutMode="box",eG.defaultOption=Uc(rp.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),eG);function eG(){var t=null!==tG&&tG.apply(this,arguments)||this;return t.type=eG.type,t}Ed.registerClass(Ec);var nG,iG=pa,oG="horizontal",rG="vertical",aG=["line","bar","candlestick","scatter"],sG={easing:"cubicOut",duration:100},Ec=(l(lG,nG=Na),lG.prototype.init=function(t,e){this.api=e,this._onBrush=B(this._onBrush,this),this._onBrushEnd=B(this._onBrushEnd,this)},lG.prototype.render=function(t,e,n,i){if(nG.prototype.render.apply(this,arguments),Gy(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},lG.prototype.dispose=function(){this._clear(),nG.prototype.dispose.apply(this,arguments)},lG.prototype._clear=function(){var t,e;(n=(t=this)[e="_dispatchZoomAction"])&&n[zy]&&(t[e]=n[zy]);var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},lG.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new qr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},lG.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),e={width:e.getWidth(),height:e.getHeight()},o=this._orient===oG?{right:e.width-i.x-i.width,top:e.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},r=Ad(t.option);R(["right","top","width","height"],function(t){"ph"===r[t]&&(r[t]=o[t])});e=Id(r,e);this._location={x:e.x,y:e.y},this._size=[e.width,e.height],this._orient===rG&&this._size.reverse()},lG.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),r=this._displayables.sliderGroup,i=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(n!==oG||o?n===oG&&o?{scaleY:i?1:-1,scaleX:-1}:n!==rG||o?{scaleY:i?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:i?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:i?1:-1,scaleX:1});r=t.getBoundingRect([r]);t.x=e.x-r.x,t.y=e.y-r.y,t.markRedraw()},lG.prototype._getViewExtent=function(){return[0,this._size[0]]},lG.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new iG({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));t=new iG({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:B(this._onClickPanel,this)}),e=this.api.getZr();i?(t.on("mousedown",this._onBrushStart,this),t.cursor="crosshair",e.on("mousemove",this._onBrush),e.on("mouseup",this._onBrushEnd)):(e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)),n.add(t)},lG.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=t.series,i=n.getRawData(),n=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=n){var o,t=.3*((r=i.getDataExtent(n))[1]-r[0]),r=[r[0]-t,r[1]+t],a=[0,e[1]],t=[0,e[0]],s=[[e[0],0],[0,0]],l=[],u=t[1]/(i.count()-1),h=0,c=Math.round(i.count()/e[0]);i.each([n],function(t,e){var n;0<c&&e%c?h+=u:(t=(n=null==t||isNaN(t)||""===t)?0:fu(t,r,a,!0),n&&!o&&e?(s.push([s[s.length-1][0],0]),l.push([l[l.length-1][0],0])):!n&&o&&(s.push([h,0]),l.push([h,0])),s.push([h,t]),l.push([h,t]),h+=u,o=n)});for(var p,d,f,g=this.dataZoomModel,y=0;y<3;y++){var m=(p=1===y,d=f=d=void 0,d=g.getModel(p?"selectedDataBackground":"dataBackground"),f=new qr,p=new Ca({shape:{points:s},segmentIgnoreThreshold:1,style:d.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),d=new La({shape:{points:l},segmentIgnoreThreshold:1,style:d.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),f.add(p),f.add(d),f);this._displayables.sliderGroup.add(m),this._displayables.dataShadowSegs.push(m)}}}},lG.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,s=t.get("showDataShadow");if(!1!==s){var l,u=this.ecModel;return t.eachTargetAxis(function(r,a){R(t.getAxisProxy(r,a).getTargetSeriesModels(),function(t){var e,n,i,o;l||!0!==s&&D(aG,t.get("type"))<0||(e=u.getComponent(rB(r),a).axis,n={x:"y",y:"x",radius:"angle",angle:"radius"}[r],o=t.coordinateSystem,null!=n&&o.getOtherAxis&&(i=o.getOtherAxis(e).inverse),n=t.getData().mapDimension(n),l={thisAxis:e,series:t,thisDim:r,otherDim:n,otherAxisInverse:i})},this)},this),l}},lG.prototype._renderHandle=function(){var o=this.group,t=this._displayables,r=t.handles=[null,null],a=t.handleLabels=[null,null],s=this._displayables.sliderGroup,e=this._size,l=this.dataZoomModel,n=this.api,i=l.get("borderRadius")||0,u=l.get("brushSelect"),h=t.filler=new iG({silent:u,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});s.add(h),s.add(new iG({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:e[0],height:e[1],r:i},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),R([0,1],function(t){var e=l.get("handleIcon");!ew[e]&&e.indexOf("path://")<0&&(e="path://"+e);var n=ow(e,-1,0,2,2,null,!0);n.attr({cursor:uG(this._orient),draggable:!0,drift:B(this._onDragMove,this,t),ondragend:B(this._onDragEnd,this),onmouseover:B(this._showDataInfo,this,!0),onmouseout:B(this._showDataInfo,this,!1),z2:5});var i=n.getBoundingRect(),e=l.get("handleSize");this._handleHeight=gu(e,this._size[1]),this._handleWidth=i.width/i.height*this._handleHeight,n.setStyle(l.getModel("handleStyle").getItemStyle()),n.style.strokeNoScale=!0,n.rectHover=!0,n.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),sc(n);i=l.get("handleColor");null!=i&&(n.style.fill=i),s.add(r[t]=n);n=l.getModel("textStyle");o.add(a[t]=new Rs({silent:!0,invisible:!0,style:{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:n.getTextColor(),font:n.getFont()},z2:10}))},this);var c,p=h;u&&(i=gu(l.get("moveHandleSize"),e[1]),c=t.moveHandle=new pa({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:e[1]-.5,height:i}}),h=.8*i,(u=t.moveHandleIcon=ow(l.get("moveHandleIcon"),-h/2,-h/2,h,h,"#fff",!0)).silent=!0,u.y=e[1]+i/2-.5,c.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle(),h=Math.min(e[1]/2,Math.max(i,10)),(p=t.moveZone=new pa({invisible:!0,shape:{y:e[1]-h,height:i+h}})).on("mouseover",function(){n.enterEmphasis(c)}).on("mouseout",function(){n.leaveEmphasis(c)}),s.add(c),s.add(u),s.add(p)),p.attr({draggable:!0,cursor:uG(this._orient),drift:B(this._onDragMove,this,"all"),ondragstart:B(this._showDataInfo,this,!0),ondragend:B(this._onDragEnd,this),onmouseover:B(this._showDataInfo,this,!0),onmouseout:B(this._showDataInfo,this,!1)})},lG.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[fu(t[0],[0,100],e,!0),fu(t[1],[0,100],e,!0)]},lG.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),r=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];mk(e,i,o,n.get("zoomLock")?"all":t,null!=r.minSpan?fu(r.minSpan,a,o,!0):null,null!=r.maxSpan?fu(r.maxSpan,a,o,!0):null);r=this._range,a=this._range=mu([fu(i[0],o,a,!0),fu(i[1],o,a,!0)]);return!r||r[0]!==a[0]||r[1]!==a[1]},lG.prototype._updateView=function(t){var i=this._displayables,o=this._handleEnds,e=mu(o.slice()),r=this._size;R([0,1],function(t){var e=i.handles[t],n=this._handleHeight;e.attr({scaleX:n/2,scaleY:n/2,x:o[t],y:r[1]/2-n/2})},this),i.filler.setShape({x:e[0],y:0,width:e[1]-e[0],height:r[1]});var n={x:e[0],width:e[1]-e[0]};i.moveHandle&&(i.moveHandle.setShape(n),i.moveZone.setShape(n),i.moveZone.getBoundingRect(),i.moveHandleIcon&&i.moveHandleIcon.attr("x",n.x+n.width/2));for(var a=i.dataShadowSegs,s=[0,e[0],e[1],r[0]],l=0;l<a.length;l++){var u=a[l],h=u.getClipPath();h||(h=new pa,u.setClipPath(h)),h.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},lG.prototype._updateDataInfo=function(t){var e,n,i=this.dataZoomModel,o=this._displayables,r=o.handleLabels,a=this._orient,s=["",""];!i.get("showDetail")||(n=i.findRepresentativeAxisProxy())&&(e=n.getAxisModel().axis,i=this._range,n=t?n.calculateDataWindow({start:i[0],end:i[1]}).valueWindow:n.getDataValueWindow(),s=[this._formatLabel(n[0],e),this._formatLabel(n[1],e)]);var l=mu(this._handleEnds.slice());function u(t){var e=jp(o.handles[t].parent,this.group),n=$p(0===t?"right":"left",e),i=this._handleWidth/2+5,e=Kp([l[t]+(0===t?-i:i),this._size[1]/2],e);r[t].setStyle({x:e[0],y:e[1],verticalAlign:a===oG?"middle":n,align:a===oG?n:"center",text:s[t]})}u.call(this,0),u.call(this,1)},lG.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),n=n.get("labelPrecision");null!=n&&"auto"!==n||(n=e.getPixelPrecision());n=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(n,20));return G(i)?i(t,n):H(i)?i.replace("{value}",n):n},lG.prototype._showDataInfo=function(t){t=this._dragging||t;var e=this._displayables,n=e.handleLabels;n[0].attr("invisible",!t),n[1].attr("invisible",!t),e.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](e.moveHandle,1)},lG.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,ie(i.event);n=Kp([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),t=this._updateInterval(t,n[0]),n=this.dataZoomModel.get("realtime");this._updateView(!n),t&&n&&this._dispatchZoomAction(!0)},lG.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},lG.prototype._onClickPanel=function(t){var e=this._size,t=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);t[0]<0||t[0]>e[0]||t[1]<0||t[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,e=this._updateInterval("all",t[0]-e),this._updateView(),e&&this._dispatchZoomAction(!1))},lG.prototype._onBrushStart=function(t){var e=t.offsetX,t=t.offsetY;this._brushStart=new fi(e,t),this._brushing=!0,this._brushStartTime=+new Date},lG.prototype._onBrushEnd=function(t){var e,n,i;this._brushing&&(i=this._displayables.brushRect,this._brushing=!1,i&&(i.attr("ignore",!0),e=i.shape,+new Date-this._brushStartTime<200&&Math.abs(e.width)<5||(n=this._getViewExtent(),i=[0,100],this._range=mu([fu(e.x,n,i,!0),fu(e.x+e.width,n,i,!0)]),this._handleEnds=[e.x,e.x+e.width],this._updateView(),this._dispatchZoomAction(!1))))},lG.prototype._onBrush=function(t){this._brushing&&(ie(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},lG.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new iG({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.ignore=!1;i=this._brushStart,n=this._displayables.sliderGroup,e=n.transformCoordToLocal(t,e),n=n.transformCoordToLocal(i.x,i.y),i=this._size;e[0]=Math.max(Math.min(i[0],e[0]),0),o.setShape({x:n[0],y:0,width:e[0]-n[0],height:i[1]})},lG.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?sG:null,start:e[0],end:e[1]})},lG.prototype._findCoordRect=function(){var t,e,n=sB(this.dataZoomModel).infoList;return!t&&n.length&&(t=(e=n[0].model.coordinateSystem).getRect&&e.getRect()),t||(t={x:.2*(n=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*n,height:.6*e}),t},lG.type="dataZoom.slider",lG);function lG(){var t=null!==nG&&nG.apply(this,arguments)||this;return t.type=lG.type,t._displayables={},t}function uG(t){return"vertical"===t?"ns-resize":"ew-resize"}Iy.registerClass(Ec);var hG,Ec=(l(cG,hG=rp),cG.type="dataZoom.inside",cG.defaultOption=Uc(rp.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),cG);function cG(){var t=null!==hG&&hG.apply(this,arguments)||this;return t.type=cG.type,t}Ed.registerClass(Ec);var pG=$u();function dG(t,e){e&&(t.removeKey(e.model.uid),(e=e.controller)&&e.dispose())}function fG(t,e){t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function gG(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}Xx(Vd.PROCESSOR.FILTER,function(t,a){var e=pG(a),l=e.coordSysRecordMap||(e.coordSysRecordMap=ct());l.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){R(sB(o).infoList,function(t){var e,r,n,i=t.model.uid,e=l.get(i)||l.set(i,(e=a,i=t.model,r={model:i,containsPoint:V(gG,i),dispatchAction:V(fG,e),dataZoomInfoMap:null,controller:null},n=r.controller=new DT(e.getZr()),R(["pan","zoom","scrollMove"],function(o){n.on(o,function(n){var i=[];r.dataZoomInfoMap.each(function(t){var e;n.isAvailableBehavior(t.model.option)&&(e=(e=(t.getRange||{})[o])&&e(t.dzReferCoordSysInfo,r.model.mainType,r.controller,n),!t.model.get("disabled",!0)&&e&&i.push({dataZoomId:t.model.id,start:e[0],end:e[1]}))}),i.length&&r.dispatchAction(i)})}),r));(e.dataZoomInfoMap||(e.dataZoomInfoMap=ct())).set(o.uid,{dzReferCoordSysInfo:t,model:o,getRange:null})})}),l.each(function(t){var e,n,i,o,r,a=t.controller,s=t.dataZoomInfoMap;!s||null!=(n=s.keys()[0])&&(e=s.get(n)),e?(o={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0,s.each(function(t){var e=t.model,t=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");o["type_"+i]<o["type_"+t]&&(i=t),r=r&&e.get("preventDefaultMouseMove",!0)}),s={controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}},a.enable(s.controlType,s.opt),a.setPointerChecker(t.containsPoint),Gy(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")):dG(l,t)})});var yG,rp=(l(mG,yG=Na),mG.prototype.render=function(t,e,n){var i,o;yG.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),n=n,i=t,o={pan:B(vG.pan,this),zoom:B(vG.zoom,this),scrollMove:B(vG.scrollMove,this)},pG(n).coordSysRecordMap.each(function(t){t=t.dataZoomInfoMap.get(i.uid);t&&(t.getRange=o)}))},mG.prototype.dispose=function(){this._clear(),yG.prototype.dispose.apply(this,arguments)},mG.prototype._clear=function(){!function(t,e){for(var n=pG(t).coordSysRecordMap,i=n.keys(),o=0;o<i.length;o++){var r=i[o],a=n.get(r),s=a.dataZoomInfoMap;s&&(r=e.uid,s.get(r)&&(s.removeKey(r),s.keys().length||dG(n,a)))}}(this.api,this.dataZoomModel),this.range=null},mG.type="dataZoom.inside",mG);function mG(){var t=null!==yG&&yG.apply(this,arguments)||this;return t.type="dataZoom.inside",t}var vG={zoom:function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a){t=_G[e](null,[i.originX,i.originY],a,n,t),t=(0<t.signal?t.pixelStart+t.pixelLength-t.pixel:t.pixel-t.pixelStart)/t.pixelLength*(r[1]-r[0])+r[0],i=Math.max(1/i.scale,0);r[0]=(r[0]-t)*i+t,r[1]=(r[1]-t)*i+t;t=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return mk(0,r,[0,100],0,t.minSpan,t.maxSpan),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}},pan:xG(function(t,e,n,i,o,r){n=_G[i]([r.oldX,r.oldY],[r.newX,r.newY],e,o,n);return n.signal*(t[1]-t[0])*n.pixel/n.pixelLength}),scrollMove:xG(function(t,e,n,i,o,r){return _G[i]([0,0],[r.scrollDelta,r.scrollDelta],e,o,n).signal*(t[1]-t[0])*r.scrollDelta})};function xG(s){return function(t,e,n,i){var o=this.range,r=o.slice(),a=t.axisModels[0];if(a)return mk(s(r,a,t,e,n,i),r,[0,100],"all"),this.range=r,o[0]!==r[0]||o[1]!==r[1]?r:void 0}}var _G={grid:function(t,e,n,i,o){var r=n.axis,n={},o=o.model.coordinateSystem.getRect();return t=t||[0,0],"x"===r.dim?(n.pixel=e[0]-t[0],n.pixelLength=o.width,n.pixelStart=o.x,n.signal=r.inverse?1:-1):(n.pixel=e[1]-t[1],n.pixelLength=o.height,n.pixelStart=o.y,n.signal=r.inverse?-1:1),n},polar:function(t,e,n,i,o){var r=n.axis,a={},s=o.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),o=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=o[1]-o[0],a.pixelStart=o[0],a.signal=r.inverse?-1:1),a},singleAxis:function(t,e,n,i,o){var r=n.axis,n=o.model.coordinateSystem.getRect(),o={};return t=t||[0,0],"horizontal"===r.orient?(o.pixel=e[0]-t[0],o.pixelLength=n.width,o.pixelStart=n.x,o.signal=r.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=n.height,o.pixelStart=n.y,o.signal=r.inverse?-1:1),o}};Iy.registerClass(rp);var bG=R;function wG(t){t=t&&t.visualMap;F(t)||(t=t?[t]:[]),bG(t,function(t){t&&(SG(t,"splitList")&&!SG(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList),(t=t.pieces)&&F(t)&&bG(t,function(t){Y(t)&&(SG(t,"start")&&!SG(t,"min")&&(t.min=t.start),SG(t,"end")&&!SG(t,"max")&&(t.max=t.end))}))})}function SG(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}Ed.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?0<t.pieces.length:0<t.splitNumber)&&!t.calculable?"piecewise":"continuous"});Ec=Vd.VISUAL.COMPONENT;function MG(t,e,n,i){for(var o=e.targetVisuals[i],r=uD.prepareVisualTypes(o),a={color:Sm(t.getData(),"color")},s=0,l=r.length;s<l;s++){var u=r[s],u=o["opacity"===u?"__alphaForOpacity":u];u&&u.applyVisual(n,h,c)}return a.color;function h(t){return a[t]}function c(t,e){a[t]=e}}qx(Ec,{createOnAllSeries:!0,reset:function(n,t){var i=[];return t.eachComponent("visualMap",function(t){var d,f,g,y,e=n.pipelineContext;!t.isTargetSeries(n)||e&&e.large||i.push((e=t.stateList,d=t.targetVisuals,f=B(t.getValueState,t),g=t.getDataDimension(n.getData()),y={},R(e,function(t){var e=uD.prepareVisualTypes(d[t]);y[t]=e}),{progress:function(t,n){var e,i;function o(t){return wm(n,i,t)}function r(t,e){Mm(n,i,t,e)}for(null!=g&&(e=n.getDimension(g));null!=(i=t.next());){var a=n.getRawDataItem(i);if(!a||!1!==a.visualMap)for(var s=null!=g?n.get(e,i):i,a=f(s),l=d[a],u=y[a],h=0,c=u.length;h<c;h++){var p=u[h];l[p]&&l[p].applyVisual(s,o,r)}}}}))}),i}}),qx(Ec,{createOnAllSeries:!0,reset:function(n,t){var i=n.getData(),o=[];t.eachComponent("visualMap",function(t){var e;t.isTargetSeries(n)&&(e=t.getVisualMeta(B(MG,null,n,t))||{stops:[],outerColors:[]},t=t.getDataDimension(i),null!=(t=i.getDimensionInfo(t))&&(e.dimension=t.index,o.push(e)))}),n.getData().setVisual("visualMeta",o)}});var IG,TG=function(t,e,n){e=C((CG[t]||{})[e]);return n&&F(e)?e[e.length-1]:e},CG={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},DG=uD.mapVisual,AG=uD.eachVisual,kG=F,LG=R,PG=mu,NG=fu,Na=(l(OG,IG=Ed),OG.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},OG.prototype.optionUpdated=function(t,e){var n=this.option;v.canvasSupported||(n.realtime=!1),e||rV(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},OG.prototype.resetVisual=function(t){var e=this.stateList;t=B(t,this),this.controllerVisuals=oV(this.option.controller,e,t),this.targetVisuals=oV(this.option.target,e,t)},OG.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,n=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,e){n.push(e)}):n=Bu(t),n},OG.prototype.eachTargetSeries=function(e,n){R(this.getTargetSeriesIndices(),function(t){t=this.ecModel.getSeriesByIndex(t);t&&e.call(n,t)},this)},OG.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(t){t===e&&(n=!0)}),n},OG.prototype.formatValueText=function(t,e,n){var i,o=this.option,r=o.precision,a=this.dataBound,o=o.formatter;n=n||["<",">"],F(t)&&(t=t.slice(),i=!0);e=e?t:i?[s(t[0]),s(t[1])]:s(t);return H(o)?o.replace("{value}",i?e[0]:e).replace("{value2}",i?e[1]:e):G(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))}},OG.prototype.resetExtent=function(){var t=this.option,t=PG([t.min,t.max]);this._dataExtent=t},OG.prototype.getDataDimension=function(t){var e=this.option.dimension,n=t.dimensions;if(null!=e||n.length){if(null!=e)return t.getDimension(e);for(var i=t.dimensions,o=i.length-1;0<=o;o--){var r=i[o];if(!t.getDimensionInfo(r).isCalculationCoord)return r}}},OG.prototype.getExtent=function(){return this._dataExtent.slice()},OG.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={});w(i,t),w(o,t);var l=this.isCategory();function r(t){kG(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]={},LG(e,function(t,e){var n;!uD.isValidType(e)||null!=(n=TG(e,"inactive",l))&&(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");LG(this.stateList,function(t){var e=this.itemSize,n=o[t];null==(n=n||(o[t]={color:l?s:[s]})).symbol&&(n.symbol=r&&C(r)||(l?"roundRect":["roundRect"])),null==n.symbolSize&&(n.symbolSize=a&&C(a)||(l?e[0]:[e[0],e[0]])),n.symbol=DG(n.symbol,function(t){return"none"===t||"square"===t?"roundRect":t});var i,t=n.symbolSize;null!=t&&(i=-1/0,AG(t,function(t){i<t&&(i=t)}),n.symbolSize=DG(t,function(t){return NG(t,[0,i],[0,e[0]],!0)}))},this)}.call(this,o)},OG.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},OG.prototype.isCategory=function(){return!!this.option.categories},OG.prototype.setSelected=function(t){},OG.prototype.getSelected=function(){return null},OG.prototype.getValueState=function(t){return null},OG.prototype.getVisualMeta=function(t){return null},OG.type="visualMap",OG.dependencies=["series"],OG.defaultOption={show:!0,zlevel: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"}},OG);function OG(){var t=null!==IG&&IG.apply(this,arguments)||this;return t.type=OG.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 RG,EG=[20,140],rp=(l(zG,RG=Na),zG.prototype.optionUpdated=function(t,e){RG.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},zG.prototype.resetItemSize=function(){RG.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;null!=t[0]&&!isNaN(t[0])||(t[0]=EG[0]),null!=t[1]&&!isNaN(t[1])||(t[1]=EG[1])},zG.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):F(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},zG.prototype.completeVisualOption=function(){RG.prototype.completeVisualOption.apply(this,arguments),R(this.stateList,function(t){t=this.option.controller[t].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},zG.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},zG.prototype.getSelected=function(){var t=this.getExtent(),e=mu((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},zG.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"},zG.prototype.findTargetDataIndices=function(i){var o=[];return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimension(e),function(t,e){i[0]<=t&&t<=i[1]&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},zG.prototype.getVisualMeta=function(n){var t=BG(0,0,this.getExtent()),e=BG(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"]}},zG.type="visualMap.continuous",zG.defaultOption=Uc(Na.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)"}}),zG);function zG(){var t=null!==RG&&RG.apply(this,arguments)||this;return t.type=zG.type,t}function BG(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}Ed.registerClass(rp);var VG,Ec=(l(FG,VG=Iy),FG.prototype.init=function(t,e){this.ecModel=t,this.api=e},FG.prototype.render=function(t,e,n,i){!1!==(this.visualMapModel=t).get("show")?this.doRender(t,e,n,i):this.group.removeAll()},FG.prototype.renderBackground=function(t){var e=this.visualMapModel,n=sd(e.get("padding")||0),i=t.getBoundingRect();t.add(new pa({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")}}))},FG.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}"symbol"===i&&(a.symbol=r.get("itemSymbol")),"color"===i&&(t=r.get("contentColor"),a.color=t);var u=r.controllerVisuals[e||r.getValueState(n)];return R(uD.prepareVisualTypes(u),function(t){var e=u[t];o.convertOpacityToAlpha&&"opacity"===t&&(t="colorAlpha",e=u.__alphaForOpacity),uD.dependsOn(t,i)&&e&&e.applyVisual(n,s,l)}),a[i]},FG.prototype.positionGroup=function(t){var e=this.visualMapModel,n=this.api;Td(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},FG.prototype.doRender=function(t,e,n,i){},FG.type="visualMap",FG);function FG(){var t=null!==VG&&VG.apply(this,arguments)||this;return t.type=FG.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}Iy.registerClass(Ec);var GG=[["left","right","width"],["top","bottom","height"]];function HG(t,e,n){var i=t.option,o=i.align;if(null!=o&&"auto"!==o)return o;for(var t={width:e.getWidth(),height:e.getHeight()},r="horizontal"===i.orient?1:0,a=GG[r],s=[0,null,10],l={},u=0;u<3;u++)l[GG[1-r][u]]=s[u],l[a[u]]=2===u?n[0]:i[a[u]];o=[["x","width",3],["y","height",0]][r],e=Id(l,t,i.padding);return a[(e.margin[o[2]]||0)+e[o[0]]+.5*e[o[1]]<.5*t[o[1]]?0:1]}function WG(t,e){return R(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var XG,YG=fu,UG=R,ZG=Math.min,qG=Math.max,rp=(l(jG,XG=Ec),jG.prototype.doRender=function(t,e,n,i){this._api=n,i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},jG.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group;this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e);t=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)},jG.prototype._renderEndsText=function(t,e,n){var i,o,r;e&&(i=null!=(i=e[1-n])?i+"":"",o=(r=this.visualMapModel).get("textGap"),e=r.itemSize,r=this._shapes.mainGroup,e=this._applyTransform([e[0]/2,0===n?-o:e[1]+o],r),o=this._applyTransform(0===n?"bottom":"top",r),n=this._orient,r=this.visualMapModel.textStyleModel,this.group.add(new Rs({style:{x:e[0],y:e[1],verticalAlign:"horizontal"===n?"middle":o,align:"horizontal"===n?o:"center",text:i,font:r.getFont(),fill:r.getTextColor()}})))},jG.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,o=this._orient,r=this._useHandle,a=HG(e,this.api,i),s=n.mainGroup=this._createBarGroup(a),a=new qr;s.add(a),a.add(n.outOfRange=KG()),a.add(n.inRange=KG(null,r?JG(this._orient):null,B(this._dragHandle,this,"all",!1),B(this._dragHandle,this,"all",!0))),a.setClipPath(new pa({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));a=e.textStyleModel.getTextRect("国"),a=qG(a.width,a.height);r&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,s,0,i,a,o),this._createHandle(e,s,1,i,a,o)),this._createIndicator(e,s,i,a,o),t.add(s)},jG.prototype._createHandle=function(t,e,n,i,o,r){var a=B(this._dragHandle,this,n,!1),s=B(this._dragHandle,this,n,!0),l=zi(t.get("handleSize"),i[0]),u=ow(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),h=JG(this._orient);u.attr({cursor:h,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){ie(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(),pc(u,!0),e.add(u);e=this.visualMapModel.textStyleModel,s=new Rs({cursor:h,draggable:!0,drift:a,onmousemove:function(t){ie(t.event)},ondragend:s,style:{x:0,y:0,text:"",font:e.getFont(),fill:e.getTextColor()}});s.ensureState("blur").style={opacity:.1},s.stateTransition={duration:200},this.group.add(s);e=[l,0],l=this._shapes;l.handleThumbs[n]=u,l.handleLabelPoints[n]=e,l.handleLabels[n]=s},jG.prototype._createIndicator=function(t,e,n,i,o){var r=zi(t.get("indicatorSize"),n[0]),a=ow(t.get("indicatorIcon"),-r/2,-r/2,r,r,null,!0);a.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});r=t.getModel("indicatorStyle").getItemStyle();a instanceof Qr?(t=a.style,a.useStyle(N({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},r))):a.useStyle(r),e.add(a);e=this.visualMapModel.textStyleModel,e=new Rs({silent:!0,invisible:!0,style:{x:0,y:0,text:"",font:e.getFont(),fill:e.getTextColor()}});this.group.add(e);i=[("horizontal"===o?i/2:6)+n[0]/2,0],n=this._shapes;n.indicator=a,n.indicatorLabel=e,n.indicatorLabelPoint=i,this._firstShowIndicator=!0},jG.prototype._dragHandle=function(t,e,n,i){this._useHandle&&(this._dragging=!e,e||(i=this._applyTransform([n,i],this._shapes.mainGroup,!0),this._updateInterval(t,i[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():$G(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1))},jG.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),t=[0,t.itemSize[1]];this._handleEnds=[YG(e[0],n,t,!0),YG(e[1],n,t,!0)]},jG.prototype._updateInterval=function(t,e){e=e||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];mk(e,i,o,t,0);n=n.getExtent();this._dataInterval=[YG(i[0],o,n,!0),YG(i[1],o,n,!0)]},jG.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,o=[0,e.itemSize[1]],e=t?o:this._handleEnds,t=this._createBarVisual(this._dataInterval,n,e,"inRange"),o=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:t.barColor}).setShape("points",t.barPoints),i.outOfRange.setStyle({fill:o.barColor}).setShape("points",o.barPoints),this._updateHandle(e,t)},jG.prototype._createBarVisual=function(t,e,n,i){var o={forceState:i,convertOpacityToAlpha:!0},i=this._makeColorGradient(t,o),o=[this.getControllerVisual(t[0],"symbolSize",o),this.getControllerVisual(t[1],"symbolSize",o)],o=this._createBarPoints(n,o);return{barColor:new Ea(0,0,0,1,i),barPoints:o,handlesColor:[i[0].color,i[i.length-1].color]}},jG.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},jG.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]]]},jG.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new qr("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})},jG.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(),UG([0,1],function(t){var e=s[t];e.setStyle("fill",o.handlesColor[t]),e.y=i[t];var n=YG(i[t],[0,u[1]],h,!0),n=this.getControllerVisual(n,"symbolSize");e.scaleX=e.scaleY=n/u[0],e.x=u[0]-n/2;e=Kp(r.handleLabelPoints[t],jp(e,this.group));l[t].setStyle({x:e[0],y:e[1],text:a.formatValueText(this._dataInterval[t]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",r.mainGroup):"center"})},this))},jG.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"),p=YG(t,r,s,!0),t=a[0]-c/2,r={x:u.x,y:u.y};u.y=p,u.x=t;s=Kp(l.indicatorLabelPoint,jp(u,this.group)),a=l.indicatorLabel;a.attr("invisible",!1);c=this._applyTransform("left",l.mainGroup),l="horizontal"===this._orient;a.setStyle({text:(n||"")+o.formatValueText(e),verticalAlign:l?c:"middle",align:l?"center":c});h={x:t,y:p,style:{fill:h}},s={style:{x:s[0],y:s[1]}};o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator?(o={duration:100,easing:"cubicInOut",additive:!0},u.x=r.x,u.y=r.y,u.animateTo(h,o),a.animateTo(s,o)):(u.attr(h),a.attr(s)),this._firstShowIndicator=!1;var d=this._shapes.handleLabels;if(d)for(var f=0;f<d.length;f++)this._api.enterBlur(d[f])}},jG.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(t){var e;n._hovering=!0,n._dragging||(e=n.visualMapModel.itemSize,(t=n._applyTransform([t.offsetX,t.offsetY],n._shapes.mainGroup,!0,!0))[1]=ZG(qG(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()})},jG.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()},jG.prototype._doHoverLinkToSeries=function(t,e){var n,i,o,r=this.visualMapModel,a=r.itemSize;function s(t,e,n){for(var i=0,o=t.length;i<o;i++)for(var r=t[i].seriesId,a=Bu(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 l(t,e){var n,i,o=[];for(n in t){t.hasOwnProperty(n)&&null!=t[n]&&(e?o.push(+n):(i=l(t[n],!0)).length&&o.push({seriesId:n,dataIndex:i}))}return o}r.option.hoverLink&&(n=[0,a[1]],i=r.getExtent(),a=[(t=ZG(qG(n[0],t),n[1]))-(o=function(t,e,n){var i=6,t=t.get("hoverLinkDataSize");t&&(i=YG(t,e,n,!0)/2);return i}(r,i,n)),t+o],t=YG(t,n,i,!0),i=[YG(a[0],n,i,!0),YG(a[1],n,i,!0)],a[0]<n[0]&&(i[0]=-1/0),n[1]<a[1]&&(i[1]=1/0),e&&(i[0]===-1/0?this._showIndicator(t,i[1],"< ",o):i[1]===1/0?this._showIndicator(t,i[0],"> ",o):this._showIndicator(t,t,"≈ ",o)),t=this._hoverLinkDataIndices,o=[],(e||$G(r))&&(o=this._hoverLinkDataIndices=r.findTargetDataIndices(i)),i=o,o={},s(t||[],t={}),s(i||[],o,t),o=[l(t),l(o)],this._dispatchHighDown("downplay",WG(o[0],r)),this._dispatchHighDown("highlight",WG(o[1],r)))},jG.prototype._hoverLinkFromSeriesMouseOver=function(t){var e=t.target,n=this.visualMapModel;e&&null!=_h(e).dataIndex&&(t=_h(e),e=this.ecModel.getSeriesByIndex(t.seriesIndex),n.isTargetSeries(e)&&(t=(e=e.getData(t.dataType)).get(n.getDataDimension(e),t.dataIndex),isNaN(t)||this._showIndicator(t,t)))},jG.prototype._hideIndicator=function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0);var e=this._shapes.handleLabels;if(e)for(var n=0;n<e.length;n++)this._api.leaveBlur(e[n])},jG.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",WG(t,this.visualMapModel)),t.length=0},jG.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},jG.prototype._applyTransform=function(t,e,n,i){i=jp(e,i?null:this.group);return(F(t)?Kp:$p)(t,i,n)},jG.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},jG.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},jG.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},jG.type="visualMap.continuous",jG);function jG(){var t=null!==XG&&XG.apply(this,arguments)||this;return t.type=jG.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}function KG(t,e,n,i){return new Ca({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){ie(t.event)},ondragend:i})}function $G(t){var e=t.get("hoverLinkOnHandle");return null==e?t.get("realtime"):e}function JG(t){return"vertical"===t?"ns-resize":"ew-resize"}Iy.registerClass(rp);Yx({type:"selectDataRange",event:"dataRangeSelected",update:"update"},function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})}),Wx(wG);var QG,Na=(l(tH,QG=Na),tH.prototype.optionUpdated=function(t,e){QG.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],eH[this._mode].call(this,this._pieceList),this._resetSelected(t,e);var i=this.option.categories;this.resetVisual(function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=C(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=L(this._pieceList,function(t){return t=C(t),"inRange"!==e&&(t.visual=null),t}))})},tH.prototype.completeVisualOption=function(){var i=this.option,n={},t=uD.listVisualTypes(),o=this.isCategory();function r(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}R(i.pieces,function(e){R(t,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),R(n,function(t,e){var n=!1;R(this.stateList,function(t){n=n||r(i,t,e)||r(i.target,t,e)},this),n||R(this.stateList,function(t){(i[t]||(i[t]={}))[e]=TG(e,"inRange"===t?"active":"inactive",o)})},this),QG.prototype.completeVisualOption.apply(this,arguments)},tH.prototype._resetSelected=function(t,e){var n,i=this.option,o=this._pieceList,r=(e?i:t).selected||{};i.selected=r,R(o,function(t,e){t=this.getSelectedMapKey(t);r.hasOwnProperty(t)||(r[t]=!0)},this),"single"===i.selectedMode&&(n=!1,R(o,function(t,e){t=this.getSelectedMapKey(t);r[t]&&(n?r[t]=!1:n=!0)},this))},tH.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},tH.prototype.getPieceList=function(){return this._pieceList},tH.prototype._determineMode=function(){var t=this.option;return t.pieces&&0<t.pieces.length?"pieces":this.option.categories?"categories":"splitNumber"},tH.prototype.setSelected=function(t){this.option.selected=C(t)},tH.prototype.getValueState=function(t){t=uD.findPieceIndex(t,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},tH.prototype.findTargetDataIndices=function(i){var o=[],r=this._pieceList;return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimension(e),function(t,e){uD.findPieceIndex(t,r)===i&&n.push(e)},this),o.push({seriesId:t.id,dataIndex:n})},this),o},tH.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},tH.prototype.getVisualMeta=function(i){if(!this.isCategory()){var t,o=[],r=["",""],a=this,e=this._pieceList.slice();e.length?((t=e[0].interval[0])!==-1/0&&e.unshift({interval:[-1/0,t]}),(t=e[e.length-1].interval[1])!==1/0&&e.push({interval:[t,1/0]})):e.push({interval:[-1/0,1/0]});var n=-1/0;return R(e,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});e=e||a.getValueState(n);e=i(n,e);t[0]===-1/0?r[0]=e:t[1]===1/0?r[1]=e:o.push({value:t[0],color:e},{value:t[1],color:e})}},tH.type="visualMap.piecewise",tH.defaultOption=Uc(Na.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}),tH);function tH(){var t=null!==QG&&QG.apply(this,arguments)||this;return t.type=tH.type,t._pieceList=[],t}var eH={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),o=e.splitNumber,o=Math.max(parseInt(o,10),1);e.splitNumber=o;for(var r=(i[1]-i[0])/o;+r.toFixed(n)!==r&&n<5;)n++;e.precision=n,r=+r.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<o;s+=r,a++){var l=a===o-1?i[1]:s+r;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),Lu(t),R(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(e){var t=this.option;R(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),nH(t,e)},pieces:function(c){var t=this.option;R(t.pieces,function(t,e){Y(t)||(t={value:t});var n={text:"",index:e};if(null!=t.label&&(n.text=t.label),t.hasOwnProperty("value")){e=n.value=t.value;n.interval=[e,e],n.close=[1,1]}else{for(var i=n.interval=[],o=n.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]&&(n.value=i[0])}n.visual=uD.retrieveVisuals(t),c.push(n)},this),nH(t,c),Lu(c),R(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 nH(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}Ed.registerClass(Na);var iH,Ec=(l(oH,iH=Ec),oH.prototype.doRender=function(){var i=this.group;i.removeAll();var o=this.visualMapModel,r=o.get("textGap"),t=o.textStyleModel,a=t.getFont(),s=t.getTextColor(),l=this._getItemAlign(),u=o.itemSize,e=this._getViewData(),t=e.endsText,h=Q(o.get("showLabel",!0),!t);t&&this._renderEndsText(i,t[0],u,h,l),R(e.viewPieceList,function(t){var e=t.piece,n=new qr;n.onclick=B(this._onItemClick,this,e),this._enableHoverLink(n,t.indexInModelPieceList);t=o.getRepresentValue(e);this._createItemSymbol(n,t,[0,0,u[0],u[1]]),h&&(t=this.visualMapModel.getValueState(t),n.add(new Rs({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),t&&this._renderEndsText(i,t[1],u,h,l),Md(o.get("orient"),i,o.get("itemGap")),this.renderBackground(i),this.positionGroup(i)},oH.prototype._enableHoverLink=function(t,n){var i=this;t.on("mouseover",function(){return e("highlight")}).on("mouseout",function(){return e("downplay")});var e=function(t){var e=i.visualMapModel;e.option.hoverLink&&i.api.dispatchAction({type:t,batch:WG(e.findTargetDataIndices(n),e)})}},oH.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return HG(t,this.api,t.itemSize);e=e.align;return e&&"auto"!==e||(e="left"),e},oH.prototype._renderEndsText=function(t,e,n,i,o){var r,a;e&&(r=new qr,a=this.visualMapModel.textStyleModel,r.add(new Rs({style:{x:i?"right"===o?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:e,font:a.getFont(),fill:a.getTextColor()}})),t.add(r))},oH.prototype._getViewData=function(){var t=this.visualMapModel,e=L(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}},oH.prototype._createItemSymbol=function(t,e,n){t.add(ow(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},oH.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=C(n.selected),o=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[o]=!0,R(i,function(t,e){i[e]=e===o})):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},oH.type="visualMap.piecewise",oH);function oH(){var t=null!==iH&&iH.apply(this,arguments)||this;return t.type=oH.type,t}function rH(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}Iy.registerClass(Ec),Wx(wG);var aH="none",sH=Math.round,lH=Math.sin,uH=Math.cos,hH=Math.PI,cH=2*Math.PI,pH=180/hH;function dH(t){return sH(1e4*t)/1e4}function fH(t){return t<1e-4&&-1e-4<t}function gH(t,e){return 1<t?+t.toFixed(e):+t.toPrecision(e)}function yH(t,e){e&&mH(t,"transform","matrix("+gH(e[0],3)+","+gH(e[1],3)+","+gH(e[2],3)+","+gH(e[3],3)+","+gH(e[4],4)+","+gH(e[5],4)+")")}function mH(t,e,n){n&&("linear"===n.type||"radial"===n.type)||t.setAttribute(e,n)}function vH(t,e,n){var i,o,r,a=null==e.opacity?1:e.opacity;null!=(i=(i=e).fill)&&i!==aH?(mH(t,"fill",r="transparent"===(r=e.fill)?aH:r),mH(t,"fill-opacity",(null!=e.fillOpacity?e.fillOpacity*a:a)+"")):mH(t,"fill",aH),null!=(r=(r=e).stroke)&&r!==aH?(mH(t,"stroke",r="transparent"===(r=e.stroke)?aH:r),r=e.lineWidth,mH(t,"stroke-width",((o=e.strokeNoScale?n.getLineScale():1)?r/o:0)+""),mH(t,"paint-order",e.strokeFirst?"stroke":"fill"),mH(t,"stroke-opacity",(null!=e.strokeOpacity?e.strokeOpacity*a:a)+""),(a=e.lineDash&&0<r&&rv(e.lineDash,r))?(r=e.lineDashOffset,o&&1!==o&&(a=L(a,function(t){return t/o}),r=r&&sH(r/=o)),mH(t,"stroke-dasharray",a.join(",")),mH(t,"stroke-dashoffset",(r||0)+"")):mH(t,"stroke-dasharray",""),e.lineCap&&mH(t,"stroke-linecap",e.lineCap),e.lineJoin&&mH(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&mH(t,"stroke-miterlimit",e.miterLimit+"")):mH(t,"stroke",aH)}var xH=(_H.prototype.reset=function(){this._d=[],this._str=""},_H.prototype.moveTo=function(t,e){this._add("M",t,e)},_H.prototype.lineTo=function(t,e){this._add("L",t,e)},_H.prototype.bezierCurveTo=function(t,e,n,i,o,r){this._add("C",t,e,n,i,o,r)},_H.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},_H.prototype.arc=function(t,e,n,i,o,r){this.ellipse(t,e,n,n,0,i,o,r)},_H.prototype.ellipse=function(t,e,n,i,o,r,a,s){var l=0===this._d.length,u=a-r,h=!s,c=Math.abs(u),p=fH(c-cH)||(h?cH<=u:cH<=-u),a=!1,a=!!p||!fH(c)&&hH<=(0<u?u%cH:u%cH+cH)==!!h,s=dH(t+n*uH(r)),c=dH(e+i*lH(r));p&&(u=h?cH-1e-4:1e-4-cH,a=!0,l&&this._d.push("M",s,c));t=dH(t+n*uH(r+u)),u=dH(e+i*lH(r+u));if(isNaN(s)||isNaN(c)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(pH)||isNaN(t)||isNaN(u))return"";this._d.push("A",dH(n),dH(i),sH(o*pH),+a,+h,t,u)},_H.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("L",t+n,e),this._add("L",t+n,e+i),this._add("L",t,e+i),this._add("L",t,e)},_H.prototype.closePath=function(){this._add("Z")},_H.prototype._add=function(t,e,n,i,o,r,a,s,l){this._d.push(t);for(var u=1;u<arguments.length;u++){var h=arguments[u];if(isNaN(h))return void(this._invalid=!0);this._d.push(dH(h))}},_H.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(" "),this._d=[]},_H.prototype.getStr=function(){return this._str},_H);function _H(){}var bH={brush:function(t){var e=t.style,n=t.__svgEl;n||(n=rH("path"),t.__svgEl=n),t.path||t.createPathProxy();var i=t.path;t.shapeChanged()&&(i.beginPath(),t.buildPath(i,t.shape),t.pathUpdated());var o=i.getVersion(),r=t,a=r.__svgPathBuilder;(r.__svgPathVersion!==o||!a||t.style.strokePercent<1)&&((a=a||(r.__svgPathBuilder=new xH)).reset(),i.rebuildPath(a,t.style.strokePercent),a.generateStr(),r.__svgPathVersion=o),mH(n,"d",a.getStr()),vH(n,e,t),yH(n,t.transform)}},wH={brush:function(t){var e,n,i,o,r,a,s=t.style,l=s.image;l instanceof HTMLImageElement&&(l=l.src),l&&(e=s.x||0,n=s.y||0,i=s.width,o=s.height,(r=t.__svgEl)||(r=rH("image"),t.__svgEl=r),l!==t.__imageSrc&&(a="href",s=l,r.setAttributeNS("http://www.w3.org/1999/xlink",a,s),t.__imageSrc=l),mH(r,"width",i+""),mH(r,"height",o+""),mH(r,"x",e+""),mH(r,"y",n+""),yH(r,t.transform))}},SH={left:"start",right:"end",center:"middle",middle:"middle"};var MH={brush:function(t){var e,n,i,o=t.style,r=o.text;null!=r&&(r+=""),r&&((e=t.__svgEl)||(e=rH("text"),t.__svgEl=e),i=o.font||Ai,e.style.font=i,e.textContent=r,vH(e,o,t),yH(e,t.transform),n=o.x||0,r=o.y||0,t=Ei(i),"top"===(i=o.textBaseline)?r+=t/2:"bottom"===i&&(r-=t/2),r=r,o=SH[o.textAlign]||o.textAlign,mH(e,"dominant-baseline","middle"),mH(e,"text-anchor",o),mH(e,"x",n+""),mH(e,"y",r+""))}};function IH(s,l,u){u=u||function(t,e){return t===e},s=s.slice();var h=(l=l.slice()).length,c=s.length,p=1,t=h+c,d=[{newPos:-1,components:[]}],e=TH(d[0],l,s,0,u);if(d[0].newPos+1>=h&&c<=e+1){for(var n=[],i=0;i<l.length;i++)n.push(i);return[{indices:n,count:l.length,added:!1,removed:!1}]}for(;p<=t;){var o=function(){for(var t=-1*p;t<=p;t+=2){var e,n=d[t-1],i=d[t+1],o=(i?i.newPos:0)-t;n&&(d[t-1]=void 0);var r=n&&n.newPos+1<h,a=i&&0<=o&&o<c;if(r||a){if(!r||a&&n.newPos<i.newPos?CH((e={newPos:(e=i).newPos,components:e.components.slice(0)}).components,!1,!0):((e=n).newPos++,CH(e.components,!0,!1)),o=TH(e,l,s,t,u),e.newPos+1>=h&&c<=o+1)return function(t){for(var e=0,n=t.length,i=0,o=0;e<n;e++){var r=t[e];if(r.removed){for(s=o;s<o+r.count;s++)r.indices.push(s);o+=r.count}else{for(var a=[],s=i;s<i+r.count;s++)a.push(s);r.indices=a,i+=r.count,r.added||(o+=r.count)}}return t}(e.components);d[t]=e}else d[t]=void 0}p++}();if(o)return o}}function TH(t,e,n,i,o){for(var r=e.length,a=n.length,s=t.newPos,l=s-i,u=0;s+1<r&&l+1<a&&o(e[s+1],n[l+1]);)s++,l++,u++;return u&&t.components.push({count:u,added:!1,removed:!1,indices:[]}),t.newPos=s,l}function CH(t,e,n){var i=t[t.length-1];i&&i.added===e&&i.removed===n?t[t.length-1]={count:i.count+1,added:e,removed:n,indices:[]}:t.push({count:1,added:e,removed:n,indices:[]})}DH.prototype.getDefs=function(t){var e=this._svgRoot,n=this._svgRoot.getElementsByTagName("defs");if(0!==n.length)return n[0];if(t){var i=e.insertBefore(this.createElement("defs"),e.firstChild);return i.contains||(i.contains=function(t){var e=i.children;if(!e)return!1;for(var n=e.length-1;0<=n;--n)if(e[n]===t)return!0;return!1}),i}return null},DH.prototype.doUpdate=function(t,e){var n;t&&(n=this.getDefs(!1),t[this._domName]&&n.contains(t[this._domName])?"function"==typeof e&&e(t):(e=this.add(t))&&(t[this._domName]=e))},DH.prototype.add=function(t){return null},DH.prototype.addDom=function(t){this.getDefs(!0).appendChild(t)},DH.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},DH.prototype.getDoms=function(){var e=this.getDefs(!1);if(!e)return[];var n=[];return R(this._tagNames,function(t){t=e.getElementsByTagName(t);n=n.concat([].slice.call(t))}),n},DH.prototype.markAllUnused=function(){var t=this.getDoms(),e=this;R(t,function(t){t[e._markLabel]="0"})},DH.prototype.markDomUsed=function(t){t&&(t[this._markLabel]="1")},DH.prototype.removeUnused=function(){var t,e,n=this.getDefs(!1);n&&(t=this.getDoms(),e=this,R(t,function(t){"1"!==t[e._markLabel]&&n.removeChild(t)}))},DH.prototype.getSvgProxy=function(t){return t instanceof Ir?bH:t instanceof Qr?wH:t instanceof Fa?MH:bH},DH.prototype.getSvgElement=function(t){return t.__svgEl},Ec=DH;function DH(t,e,n,i,o){this.nextId=0,this._domName="_dom",this.createElement=rH,this._zrId=t,this._svgRoot=e,this._tagNames="string"==typeof n?[n]:n,this._markLabel=i,o&&(this._domName=o)}function AH(t){return"linear"===t.type}function kH(t){return"radial"===t.type}var LH,PH=(l(NH,LH=Ec),NH.prototype.addWithoutUpdate=function(o,r){var a;r&&r.style&&(a=this,R(["fill","stroke"],function(t){var e,n,i=r.style[t];!i||"linear"!==i.type&&"radial"!==i.type||(e=i,n=a.getDefs(!0),i=void 0,e.__dom?(i=e.__dom,n.contains(e.__dom)||a.addDom(i)):i=a.add(e),a.markUsed(r),i=i.getAttribute("id"),o.setAttribute(t,"url(#"+i+")"))}))},NH.prototype.add=function(t){var e;if(AH(t))e=this.createElement("linearGradient");else{if(!kH(t))return b("Illegal gradient type."),null;e=this.createElement("radialGradient")}return t.id=t.id||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-gradient-"+t.id),this.updateDom(t,e),this.addDom(e),e},NH.prototype.update=function(n){var i=this;this.doUpdate(n,function(){var t=n.type,e=n.__dom.tagName;"linear"===t&&"linearGradient"===e||"radial"===t&&"radialGradient"===e?i.updateDom(n,n.__dom):(i.removeDom(n),i.add(n))})},NH.prototype.updateDom=function(t,e){if(AH(t))e.setAttribute("x1",t.x+""),e.setAttribute("y1",t.y+""),e.setAttribute("x2",t.x2+""),e.setAttribute("y2",t.y2+"");else{if(!kH(t))return void b("Illegal gradient type.");e.setAttribute("cx",t.x+""),e.setAttribute("cy",t.y+""),e.setAttribute("r",t.r+"")}t.global?e.setAttribute("gradientUnits","userSpaceOnUse"):e.setAttribute("gradientUnits","objectBoundingBox"),e.innerHTML="";for(var n=t.colorStops,i=0,o=n.length;i<o;++i){var r=this.createElement("stop");r.setAttribute("offset",100*n[i].offset+"%");var a,s=n[i].color;-1<s.indexOf("rgba")?(a=tn(s)[3],s=on(s),r.setAttribute("stop-color","#"+s),r.setAttribute("stop-opacity",a+"")):r.setAttribute("stop-color",n[i].color),e.appendChild(r)}t.__dom=e},NH.prototype.markUsed=function(t){var e;t.style&&((e=t.style.fill)&&e.__dom&&LH.prototype.markDomUsed.call(this,e.__dom),(e=t.style.stroke)&&e.__dom&&LH.prototype.markDomUsed.call(this,e.__dom))},NH);function NH(t,e){return LH.call(this,t,e,["linearGradient","radialGradient"],"__gradient_in_use__")||this}var OH,RH=(l(EH,OH=Ec),EH.prototype.update=function(t){var e=this.getSvgElement(t);e&&this.updateDom(e,t.__clipPaths,!1),this.markUsed(t)},EH.prototype.updateDom=function(t,e,n){var i,o,r,a,s;e&&0<e.length?(r=this.getDefs(!0),o=i=void 0,(s=e[0])[a=n?"_textDom":"_dom"]?(o=s[a].getAttribute("id"),i=s[a],r.contains(i)||r.appendChild(i)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(i=this.createElement("clipPath")).setAttribute("id",o),r.appendChild(i),s[a]=i),r=this.getSvgProxy(s),s.transform&&s.parent.invTransform&&!n?(a=Array.prototype.slice.call(s.transform),Qn(s.transform,s.parent.invTransform,s.transform),r.brush(s),s.transform=a):r.brush(s),s=this.getSvgElement(s),i.innerHTML="",i.appendChild(s.cloneNode()),t.setAttribute("clip-path","url(#"+o+")"),1<e.length&&this.updateDom(i,e.slice(1),n)):t&&t.setAttribute("clip-path","none")},EH.prototype.markUsed=function(t){var e=this;t.__clipPaths&&R(t.__clipPaths,function(t){t._dom&&OH.prototype.markDomUsed.call(e,t._dom),t._textDom&&OH.prototype.markDomUsed.call(e,t._textDom)})},EH);function EH(t,e){return OH.call(this,t,e,"clipPath","__clippath_in_use__")||this}var zH,BH=(l(VH,zH=Ec),VH.prototype.addWithoutUpdate=function(t,e){var n;e&&FH(e.style)&&(n=void 0,e._shadowDom?(n=e._shadowDom,this.getDefs(!0).contains(e._shadowDom)||this.addDom(n)):n=this.add(e),this.markUsed(e),n=n.getAttribute("id"),t.style.filter="url(#"+n+")")},VH.prototype.add=function(t){var e=this.createElement("filter");return t._shadowDomId=t._shadowDomId||this.nextId++,e.setAttribute("id","zr"+this._zrId+"-shadow-"+t._shadowDomId),this.updateDom(t,e),this.addDom(e),e},VH.prototype.update=function(t,e){var n;FH(e.style)?(n=this,zH.prototype.doUpdate.call(this,e,function(){n.updateDom(e,e._shadowDom)})):this.remove(t,e)},VH.prototype.remove=function(t,e){null!=e._shadowDomId&&(this.removeDom(t),t.style.filter="")},VH.prototype.updateDom=function(t,e){var n,i,o,r,a=e.getElementsByTagName("feDropShadow"),s=a.length?a[0]:this.createElement("feDropShadow"),l=t.style,u=t.scaleX||1,a=t.scaleY||1;if(l.shadowBlur||l.shadowOffsetX||l.shadowOffsetY)n=l.shadowOffsetX||0,i=l.shadowOffsetY||0,o=l.shadowBlur,r=l.shadowColor;else{if(!l.textShadowBlur)return void this.removeDom(e);n=l.textShadowOffsetX||0,i=l.textShadowOffsetY||0,o=l.textShadowBlur,r=l.textShadowColor}s.setAttribute("dx",n/u+""),s.setAttribute("dy",i/a+""),s.setAttribute("flood-color",r);a=o/2/u+" "+o/2/a;s.setAttribute("stdDeviation",a),e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width",Math.ceil(o/2*200)+"%"),e.setAttribute("height",Math.ceil(o/2*200)+"%"),e.appendChild(s),t._shadowDom=e},VH.prototype.markUsed=function(t){t._shadowDom&&zH.prototype.markDomUsed.call(this,t._shadowDom)},VH);function VH(t,e){return zH.call(this,t,e,["filter"],"__filter_in_use__","_shadowDom")||this}function FH(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function GH(t){return parseInt(t,10)}function HH(t,e){return e&&t&&e.parentNode!==t}function WH(t){return t.__svgEl}function XH(t,e,n,i){this.type="svg",this.refreshHover=YH("refreshHover"),this.pathToImage=YH("pathToImage"),this.configLayer=YH("configLayer"),this.root=t,this.storage=e,this._opts=n=N({},n||{});var o=rH("svg");o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("version","1.1"),o.setAttribute("baseProfile","full"),o.style.cssText="user-select:none;position:absolute;left:0;top:0;";var r=rH("g");o.appendChild(r);e=rH("g");o.appendChild(e),this._gradientManager=new PH(i,e),this._clipPathManager=new RH(i,e),this._shadowManager=new BH(i,e);i=document.createElement("div");i.style.cssText="overflow:hidden;position:relative",this._svgDom=o,this._svgRoot=e,this._backgroundRoot=r,this._viewport=i,t.appendChild(i),i.appendChild(o),this.resize(n.width,n.height),this._visibleList=[]}function YH(t){return function(){b('In SVG mode painter not support method "'+t+'"')}}cu("svg",(XH.prototype.getType=function(){return"svg"},XH.prototype.getViewportRoot=function(){return this._viewport},XH.prototype.getSvgDom=function(){return this._svgDom},XH.prototype.getSvgRoot=function(){return this._svgRoot},XH.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},XH.prototype.refresh=function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},XH.prototype.setBackgroundColor=function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=rH("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},XH.prototype._paintList=function(t){this._gradientManager.markAllUnused(),this._clipPathManager.markAllUnused(),this._shadowManager.markAllUnused();for(var e=this._svgRoot,n=this._visibleList,i=t.length,o=[],r=0;r<i;r++){var a=t[r],s=(s=a)instanceof Ir?bH:s instanceof Qr?wH:s instanceof Fa?MH:bH,l=WH(a);a.invisible||(!a.__dirty&&l||(s&&s.brush(a),this._clipPathManager.update(a),a.style&&(this._gradientManager.update(a.style.fill),this._gradientManager.update(a.style.stroke),this._shadowManager.update(l,a)),a.__dirty=0),WH(a)&&o.push(a))}for(var u,h,c,p=IH(n,o),r=0;r<p.length;r++){if((f=p[r]).removed)for(var d=0;d<f.count;d++){l=WH(a=n[f.indices[d]]);h=e,(c=l)&&h&&c.parentNode===h&&h.removeChild(c)}}for(var f,g,y,m,r=0;r<p.length;r++){if((f=p[r]).added)for(d=0;d<f.count;d++){l=WH(a=o[f.indices[d]]);u?(m=u,HH(g=e,y=l)&&m&&((m=m.nextSibling)?g.insertBefore(y,m):g.appendChild(y))):(m=void 0,HH(g=e,y=l)&&((m=g.firstChild)?g.insertBefore(y,m):g.appendChild(y))),u=l||u,this._gradientManager.addWithoutUpdate(l,a),this._shadowManager.addWithoutUpdate(l,a),this._clipPathManager.markUsed(a)}else if(!f.removed)for(d=0;d<f.count;d++){l=WH(a=o[f.indices[d]]);this._gradientManager.markUsed(a),this._gradientManager.addWithoutUpdate(l,a),this._shadowManager.markUsed(a),this._shadowManager.addWithoutUpdate(l,a),this._clipPathManager.markUsed(a),u=l||u}}this._gradientManager.removeUnused(),this._clipPathManager.removeUnused(),this._shadowManager.removeUnused(),this._visibleList=o},XH.prototype._getDefs=function(t){var e=this._svgDom,n=e.getElementsByTagName("defs");if(0!==n.length)return n[0];if(t){var i=e.insertBefore(rH("defs"),e.firstChild);return i.contains||(i.contains=function(t){var e=i.children;if(!e)return!1;for(var n=e.length-1;0<=n;--n)if(e[n]===t)return!0;return!1}),i}return null},XH.prototype.resize=function(t,e){var n=this._viewport;n.style.display="none";var i=this._opts;null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width===t&&this._height===e||(this._width=t,this._height=e,(n=n.style).width=t+"px",n.height=e+"px",(n=this._svgDom).setAttribute("width",t+""),n.setAttribute("height",e+"")),this._backgroundNode&&(this._backgroundNode.setAttribute("width",t),this._backgroundNode.setAttribute("height",e))},XH.prototype.getWidth=function(){return this._width},XH.prototype.getHeight=function(){return this._height},XH.prototype._getSize=function(t){var e=this._opts,n=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],r=["paddingRight","paddingBottom"][t];if(null!=e[n]&&"auto"!==e[n])return parseFloat(e[n]);t=this.root,e=document.defaultView.getComputedStyle(t);return(t[i]||GH(e[n])||GH(t.style[n]))-(GH(e[o])||0)-(GH(e[r])||0)|0},XH.prototype.dispose=function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},XH.prototype.clear=function(){this._viewport&&this.root.removeChild(this._viewport)},XH.prototype.toDataURL=function(){return this.refresh(),"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(this._svgDom.outerHTML.replace(/></g,">\n\r<"))},XH)),t.Axis=Bc,t.List=A_,t.Model=Hc,t.PRIORITY=Vd,t.color=cn,t.connect=function(e){var t;return F(e)&&(t=e,e=null,Ev(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+Bx++,Ev(t,function(t){t.group=e})),Ex[e]=!0,e},t.dataTool={},t.dependencies={zrender:"5.0.0-beta.1"},t.disConnect=Fx,t.disconnect=r,t.dispose=function(t){"string"==typeof t?t=Rx[t]:t instanceof mx||(t=Gx(t)),t instanceof mx&&!t.isDisposed()&&t.dispose()},t.env=v,t.extendChartView=function(t){return ky.extend(t)},t.extendComponentModel=$x,t.extendComponentView=Jx,t.extendSeriesModel=function(t){return yy.extend(t)},t.format=Iw,t.getCoordinateSystemDimensions=function(t){if(t=bf.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.getInstanceByDom=Gx,t.getInstanceById=function(t){return Rx[t]},t.getMap=function(t){return(t=vm(t))&&t[0]&&{geoJson:t[0].geoJSON,specialAreas:t[0].specialAreas}},t.graphic=Cw,t.helper=Vi,t.init=function(t,e,n){var i=Gx(t);if(i)return i;var o=new mx(t,e,n);return o.id="ec_"+zx++,Rx[o.id]=o,ih(t,Vx,o.id),dx(o),Ev(kx,function(t){t(o)}),o},t.innerDrawElementOnCanvas=function(t,e){Iv(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)},t.matrix=ri,t.number=Mw,t.parseGeoJSON=cw,t.parseGeoJson=$l,t.registerAction=Yx,t.registerCoordinateSystem=Ux,t.registerLayout=Zx,t.registerLoading=Kx,t.registerLocale=Qc,t.registerMap=function(t,e,n){mm(t,e,n)},t.registerPostInit=function(t){t&&kx.push(t)},t.registerPostUpdate=function(t){t&&Lx.push(t)},t.registerPreprocessor=Wx,t.registerProcessor=Xx,t.registerTheme=Hx,t.registerTransform=vh,t.registerVisual=qx,t.setCanvasCreator=function(t){m("createCanvas",t)},t.throttle=Fy,t.time=n,t.util=Tw,t.vector=Et,t.version="5.0.0-beta.1",t.zrender=pu,Object.defineProperty(t,"__esModule",{value:!0})});