echarts.min.js 611 KB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).echarts={})}(this,function(t){"use strict";var _=function(t,e){return(_=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}))(t,e)};function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var x=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},w=new function(){this.browser=new x,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(w.wxa=!0,w.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?w.worker=!0:!w.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&-1<navigator.userAgent.indexOf("Node.js")?(w.node=!0,w.svgSupported=!0):($=navigator.userAgent,Gt=(Ht=w).browser,rt=$.match(/Firefox\/([\d.]+)/),A=$.match(/MSIE\s([\d.]+)/)||$.match(/Trident\/.+?rv:(([\d.]+))/),K=$.match(/Edge?\/([\d.]+)/),$=/micromessenger/i.test($),rt&&(Gt.firefox=!0,Gt.version=rt[1]),A&&(Gt.ie=!0,Gt.version=A[1]),K&&(Gt.edge=!0,Gt.version=K[1],Gt.newEdge=18<+K[1].split(".")[0]),$&&(Gt.weChat=!0),Ht.svgSupported="undefined"!=typeof SVGRect,Ht.touchEventsSupported="ontouchstart"in window&&!Gt.ie&&!Gt.edge,Ht.pointerEventsSupported="onpointerdown"in window&&(Gt.edge||Gt.ie&&11<=+Gt.version),(Ht.domSupported="undefined"!=typeof document)&&(rt=document.documentElement.style,Ht.transform3dSupported=(Gt.ie&&"transition"in rt||Gt.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in rt)&&!("OTransition"in rt),Ht.transformSupported=Ht.transform3dSupported||Gt.ie&&9<=+Gt.version));var j="12px sans-serif";var b,M,T=function(t){var e={};if("undefined"!=typeof JSON)for(var n=0;n<t.length;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),Y={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(b||(n=Y.createCanvas(),b=n&&n.getContext("2d")),b)return M!==e&&(M=b.font=e||j),b.measureText(t);t=t||"",e=e||j;var n=/((?:\d+)?\.?\d*)px/.exec(e),i=n&&+n[1]||12,r=0;if(0<=e.indexOf("mono"))r=i*t.length;else for(var o=0;o<t.length;o++){var a=T[t[o]];r+=null==a?i:a*i}return{width:r}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function I(t){for(var e in Y)t[e]&&(Y[e]=t[e])}var C=lt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),D=lt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),L=Object.prototype.toString,A=Array.prototype,O=A.forEach,R=A.filter,Z=A.slice,q=A.map,K=function(){}.constructor,$=K?K.prototype:null,Q="__proto__",J=2311;function tt(){return J++}function et(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function y(t){if(null==t||"object"!=typeof t)return t;var e=t,n=L.call(t);if("[object Array]"===n){if(!Dt(t))for(var e=[],i=0,r=t.length;i<r;i++)e[i]=y(t[i])}else if(D[n]){if(!Dt(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(i=0,r=t.length;i<r;i++)e[i]=t[i]}}}else if(!C[n]&&!Dt(t)&&!yt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==Q&&(e[a]=y(t[a]));return e}function d(t,e,n){if(!N(e)||!N(t))return n?y(e):t;for(var i in e){var r,o;e.hasOwnProperty(i)&&i!==Q&&(r=t[i],!N(o=e[i])||!N(r)||V(o)||V(r)||yt(o)||yt(r)||ft(o)||ft(r)||Dt(o)||Dt(r)?!n&&i in t||(t[i]=y(e[i])):d(r,o,n))}return t}function P(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==Q&&(t[n]=e[n]);return t}function E(t,e,n){for(var i=ct(e),r=0,o=i.length;r<o;r++){var a=i[r];(n?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}var rt=Y.createCanvas;function k(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 ot(t,e){var n,i=t.prototype;function r(){}for(n in r.prototype=e.prototype,t.prototype=new r,i)i.hasOwnProperty(n)&&(t.prototype[n]=i[n]);(t.prototype.constructor=t).superClass=e}function at(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),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else E(t,e,n)}function st(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function nt(t,e,n){if(t&&e)if(t.forEach&&t.forEach===O)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function B(t,e,n){if(!t)return[];if(!e)return St(t);if(t.map&&t.map===q)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function lt(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function ut(t,e,n){if(!t)return[];if(!e)return St(t);if(t.filter&&t.filter===R)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function ht(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function ct(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n}var S=$&&z($.bind)?$.call.bind($.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(Z.call(arguments)))}};function pt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(Z.call(arguments)))}}function V(t){return Array.isArray?Array.isArray(t):"[object Array]"===L.call(t)}function z(t){return"function"==typeof t}function F(t){return"string"==typeof t}function dt(t){return"[object String]"===L.call(t)}function H(t){return"number"==typeof t}function N(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function ft(t){return!!C[L.call(t)]}function gt(t){return!!D[L.call(t)]}function yt(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function mt(t){return null!=t.colorStops}function vt(t){return null!=t.image}function _t(t){return"[object RegExp]"===L.call(t)}function xt(t){return t!=t}function bt(){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 G(t,e){return null!=t?t:e}function wt(t,e,n){return null!=t?t:null!=e?e:n}function St(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Z.apply(t,e)}function Mt(t){var e;return"number"==typeof t?[t,t,t,t]:2===(e=t.length)?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function Tt(t,e){if(!t)throw new Error(e)}function It(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Ct="__ec_primitive__";function kt(t){t[Ct]=!0}function Dt(t){return t[Ct]}At.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},At.prototype.has=function(t){return this.data.hasOwnProperty(t)},At.prototype.get=function(t){return this.data[t]},At.prototype.set=function(t,e){return this.data[t]=e,this},At.prototype.keys=function(){return ct(this.data)},At.prototype.forEach=function(t){var e,n=this.data;for(e in n)n.hasOwnProperty(e)&&t(n[e],e)};var Lt=At;function At(){this.data={}}var Pt="function"==typeof Map;Rt.prototype.hasKey=function(t){return this.data.has(t)},Rt.prototype.get=function(t){return this.data.get(t)},Rt.prototype.set=function(t,e){return this.data.set(t,e),e},Rt.prototype.each=function(n,i){this.data.forEach(function(t,e){n.call(i,t,e)})},Rt.prototype.keys=function(){var t=this.data.keys();return Pt?Array.from(t):t},Rt.prototype.removeKey=function(t){this.data.delete(t)};var Ot=Rt;function Rt(t){var n=V(t),i=(this.data=new(Pt?Map:Lt),this);function e(t,e){n?i.set(t,e):i.set(e,t)}t instanceof Rt?t.each(e):t&&nt(t,e)}function it(t){return new Ot(t)}function zt(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];for(var r=t.length,i=0;i<e.length;i++)n[i+r]=e[i];return n}function Nt(t,e){var n,t=Object.create?Object.create(t):((n=function(){}).prototype=t,new n);return e&&P(t,e),t}function Et(t){t=t.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Bt(t,e){return t.hasOwnProperty(e)}function Vt(){}var Ft=180/Math.PI,Ht=Number.EPSILON||Math.pow(2,-52),Gt=Object.freeze({__proto__:null,EPSILON:Ht,HashMap:Ot,RADIAN_TO_DEGREE:Ft,assert:Tt,bind:S,clone:y,concatArray:zt,createCanvas:rt,createHashMap:it,createObject:Nt,curry:pt,defaults:E,disableUserSelect:Et,each:nt,eqNaN:xt,extend:P,filter:ut,find:ht,guid:tt,hasOwn:Bt,indexOf:k,inherits:ot,isArray:V,isArrayLike:st,isBuiltInObject:ft,isDom:yt,isFunction:z,isGradientObject:mt,isImagePatternObject:vt,isNumber:H,isObject:N,isPrimitive:Dt,isRegExp:_t,isString:F,isStringSafe:dt,isTypedArray:gt,keys:ct,logError:et,map:B,merge:d,mergeAll:function(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=d(n,t[i],e);return n},mixin:at,noop:Vt,normalizeCssArray:Mt,reduce:lt,retrieve:bt,retrieve2:G,retrieve3:wt,setAsPrimitive:kt,slice:St,trim:It});function Wt(t,e){return[t=null==t?0:t,e=null==e?0:e]}function Ut(t,e){return t[0]=e[0],t[1]=e[1],t}function Xt(t){return[t[0],t[1]]}function Yt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Zt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function qt(t){return Math.sqrt(jt(t))}function jt(t){return t[0]*t[0]+t[1]*t[1]}function Kt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function $t(t,e){var n=qt(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Qt(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Jt=Qt;function te(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var ee=te;function ne(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 ie(t,e,n){var i=e[0],e=e[1];return t[0]=n[0]*i+n[2]*e+n[4],t[1]=n[1]*i+n[3]*e+n[5],t}function re(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function oe(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var ae=Object.freeze({__proto__:null,add:Yt,applyTransform:ie,clone:Xt,copy:Ut,create:Wt,dist:Jt,distSquare:ee,distance:Qt,distanceSquare:te,div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},len:qt,lenSquare:jt,length:qt,lengthSquare:jt,lerp:ne,max:oe,min:re,mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},normalize:$t,scale:Kt,scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},set:function(t,e,n){return t[0]=e,t[1]=n,t},sub:Zt}),se=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},le=(ue.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&((this._draggingTarget=e).dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new se(e,t),"dragstart",t.event))},ue.prototype._drag=function(t){var e,n,i,r,o=this._draggingTarget;o&&(e=t.offsetX,n=t.offsetY,i=e-this._x,r=n-this._y,this._x=e,this._y=n,o.drift(i,r,t),this.handler.dispatchToElement(new se(o,t),"drag",t.event),i=this.handler.findHover(e,n,o).target,r=this._dropTarget,o!==(this._dropTarget=i))&&(r&&i!==r&&this.handler.dispatchToElement(new se(r,t),"dragleave",t.event),i)&&i!==r&&this.handler.dispatchToElement(new se(i,t),"dragenter",t.event)},ue.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new se(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new se(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},ue);function ue(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}ce.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),n&&t){var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;o={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},e=r[t].length-1,i=r[t][e];i&&i.callAtLast?r[t].splice(e,0,o):r[t].push(o)}return this},ce.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},ce.prototype.off=function(t,e){var n=this._$handlers;if(n)if(t)if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];else this._$handlers={};return this},ce.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}r&&r.afterTrigger&&r.afterTrigger(t)}return this},ce.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(this._$handlers){var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}r&&r.afterTrigger&&r.afterTrigger(t)}return this};var he=ce;function ce(t){t&&(this._$eventProcessor=t)}var pe=Math.log(2);function de(t,e,n,i,r,o){var a,s=i+"-"+r,l=t.length;if(o.hasOwnProperty(s))return o[s];if(1===e)return a=Math.round(Math.log((1<<l)-1&~r)/pe),t[n][a];for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<l;p++){var f=1<<p;f&r||(c+=(d%2?-1:1)*t[n][p]*de(t,e-1,h,u,r|f,o),d++)}return o[s]=c}function fe(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=de(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*de(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var ge="___zrEVENTSAVED",ye=[];function me(t,e,n,i,r){if(e.getBoundingClientRect&&w.domSupported&&!ve(e)){var o=e[ge]||(e[ge]={}),e=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=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&&o&&p===o[c]&&h===o[1+c],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?fe(s,a):fe(a,s))}(function(t,e){var n=e.markers;if(!n){n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>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",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}e.clearMarkers=function(){nt(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})}}return n}(e,o),o,r);if(e)return e(t,n,i),!0}return!1}function ve(t){return"CANVAS"===t.nodeName.toUpperCase()}var _e=/([&<>"'])/g,xe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function be(t){return null==t?"":(t+"").replace(_e,function(t,e){return xe[e]})}var we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=[],Me=w.browser.firefox&&+w.browser.version.split(".")[0]<39;function Te(t,e,n,i){return n=n||{},i?Ie(t,e,n):Me&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Ie(t,e,n),n}function Ie(t,e,n){if(w.domSupported&&t.getBoundingClientRect){var i,r=e.clientX,e=e.clientY;if(ve(t))return i=t.getBoundingClientRect(),n.zrX=r-i.left,void(n.zrY=e-i.top);if(me(Se,t,r,e))return n.zrX=Se[0],void(n.zrY=Se[1])}n.zrX=n.zrY=0}function Ce(t){return t||window.event}function ke(t,e,n){var i;return null==(e=Ce(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Te(t,i,e,n):(Te(t,e,e,n),i=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,t=t.deltaY;return null!=n&&null!=t?3*(0!==t?Math.abs(t):Math.abs(n))*(0<t||!(t<0)&&0<n?-1:1):e}(e),e.zrDelta=i?i/120:-(e.detail||0)/3),t=e.button,null==e.which&&void 0!==t&&we.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}var De=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Le(t){return 2===t.which||3===t.which}Pe.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},Pe.prototype.clear=function(){return this._track.length=0,this},Pe.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=Te(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},Pe.prototype._recognize=function(t){for(var e in Re)if(Re.hasOwnProperty(e)){e=Re[e](this._track,t);if(e)return e}};var Ae=Pe;function Pe(){this._track=[]}function Oe(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}var Re={pinch:function(t,e){var n,i=t.length;if(i)return n=(t[i-1]||{}).points,(i=(t[i-2]||{}).points||n)&&1<i.length&&n&&1<n.length?(i=Oe(n)/Oe(i),isFinite(i)||(i=1),e.pinchScale=i,i=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2],e.pinchX=i[0],e.pinchY=i[1],{type:"pinch",target:t[0].target,event:e}):void 0}};function ze(){return[1,0,0,1,0,0]}function Ne(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ee(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Be(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],n=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=n,t}function Ve(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Fe(t,e,n,i){void 0===i&&(i=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],e=e[5],u=Math.sin(n),n=Math.cos(n);return t[0]=r*n+s*u,t[1]=-r*u+s*n,t[2]=o*n+l*u,t[3]=-o*u+n*l,t[4]=n*(a-i[0])+u*(e-i[1])+i[0],t[5]=n*(e-i[1])-u*(a-i[0])+i[1],t}function He(t,e,n){var i=n[0],n=n[1];return t[0]=e[0]*i,t[1]=e[1]*n,t[2]=e[2]*i,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*n,t}function Ge(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],e=e[5],s=n*a-o*i;return s?(t[0]=a*(s=1/s),t[1]=-o*s,t[2]=-i*s,t[3]=n*s,t[4]=(i*e-a*r)*s,t[5]=(o*r-n*e)*s,t):null}var We=Object.freeze({__proto__:null,clone:function(t){var e=ze();return Ee(e,t),e},copy:Ee,create:ze,identity:Ne,invert:Ge,mul:Be,rotate:Fe,scale:He,translate:Ve}),W=(Ue.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},Ue.prototype.clone=function(){return new Ue(this.x,this.y)},Ue.prototype.set=function(t,e){return this.x=t,this.y=e,this},Ue.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},Ue.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},Ue.prototype.scale=function(t){this.x*=t,this.y*=t},Ue.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},Ue.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},Ue.prototype.dot=function(t){return this.x*t.x+this.y*t.y},Ue.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},Ue.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},Ue.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},Ue.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},Ue.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},Ue.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},Ue.prototype.transform=function(t){var e,n;if(t)return e=this.x,n=this.y,this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this},Ue.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},Ue.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},Ue.set=function(t,e,n){t.x=e,t.y=n},Ue.copy=function(t,e){t.x=e.x,t.y=e.y},Ue.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},Ue.lenSquare=function(t){return t.x*t.x+t.y*t.y},Ue.dot=function(t,e){return t.x*e.x+t.y*e.y},Ue.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},Ue.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},Ue.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},Ue.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},Ue.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},Ue);function Ue(t,e){this.x=t||0,this.y=e||0}var Xe=Math.min,Ye=Math.max,Ze=Math.abs,qe=["x","y"],je=["width","height"],Ke=new W,$e=new W,Qe=new W,Je=new W,tn=un(),en=tn.minTv,nn=tn.maxTv,rn=[0,0],X=(on.set=function(t,e,n,i,r){return i<0&&(e+=i,i=-i),r<0&&(n+=r,r=-r),t.x=e,t.y=n,t.width=i,t.height=r,t},on.prototype.union=function(t){var e=Xe(t.x,this.x),n=Xe(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ye(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ye(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},on.prototype.applyTransform=function(t){on.applyTransform(this,this,t)},on.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=ze();return Ve(i,i,[-this.x,-this.y]),He(i,i,[e,n]),Ve(i,i,[t.x,t.y]),i},on.prototype.intersect=function(t,e,n){return on.intersect(this,t,e,n)},on.intersect=function(t,e,n,i){n&&W.set(n,0,0);var r=i&&i.outIntersectRect||null,o=i&&i.clamp;if(r&&(r.x=r.y=r.width=r.height=NaN),!t||!e)return!1;t instanceof on||(t=on.set(an,t.x,t.y,t.width,t.height)),e instanceof on||(e=on.set(sn,e.x,e.y,e.width,e.height));var a=!!n,i=(tn.reset(i,a),tn.touchThreshold),s=t.x+i,l=t.x+t.width-i,u=t.y+i,t=t.y+t.height-i,h=e.x+i,c=e.x+e.width-i,p=e.y+i,e=e.y+e.height-i;return!(l<s||t<u||c<h||e<p)&&(i=!(l<h||c<s||t<p||e<u),(a||r)&&(rn[0]=1/0,ln(s,l,h,c,rn[1]=0,a,r,o),ln(u,t,p,e,1,a,r,o),a)&&W.copy(n,i?tn.useDir?tn.dirMinTv:en:nn),i)},on.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},on.prototype.contain=function(t,e){return on.contain(this,t,e)},on.prototype.clone=function(){return new on(this.x,this.y,this.width,this.height)},on.prototype.copy=function(t){on.copy(this,t)},on.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},on.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},on.prototype.isZero=function(){return 0===this.width||0===this.height},on.create=function(t){return new on(t.x,t.y,t.width,t.height)},on.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},on.applyTransform=function(t,e,n){var i,r,o,a;n?n[1]<1e-5&&-1e-5<n[1]&&n[2]<1e-5&&-1e-5<n[2]?(i=n[0],r=n[3],o=n[4],a=n[5],t.x=e.x*i+o,t.y=e.y*r+a,t.width=e.width*i,t.height=e.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height)):(Ke.x=Qe.x=e.x,Ke.y=Je.y=e.y,$e.x=Je.x=e.x+e.width,$e.y=Qe.y=e.y+e.height,Ke.transform(n),Je.transform(n),$e.transform(n),Qe.transform(n),t.x=Xe(Ke.x,$e.x,Qe.x,Je.x),t.y=Xe(Ke.y,$e.y,Qe.y,Je.y),o=Ye(Ke.x,$e.x,Qe.x,Je.x),a=Ye(Ke.y,$e.y,Qe.y,Je.y),t.width=o-t.x,t.height=a-t.y):t!==e&&on.copy(t,e)},on);function on(t,e,n,i){on.set(this,t,e,n,i)}var an=new X(0,0,0,0),sn=new X(0,0,0,0);function ln(t,e,n,i,r,o,a,s){var l=Ze(e-n),u=Ze(i-t),h=Xe(l,u),c=qe[r],p=qe[1-r],r=je[r];e<n||i<t?l<u?(o&&(nn[c]=-l),s&&(a[c]=e,a[r]=0)):(o&&(nn[c]=u),s&&(a[c]=t,a[r]=0)):(a&&(a[c]=Ye(t,n),a[r]=Xe(e,i)-a[c]),o&&(h<rn[0]||tn.useDir)&&(rn[0]=Xe(h,rn[0]),(l<u||!tn.bidirectional)&&(en[c]=l,en[p]=0,tn.useDir)&&tn.calcDirMTV(),u<=l||!tn.bidirectional)&&(en[c]=-u,en[p]=0,tn.useDir)&&tn.calcDirMTV())}function un(){var a=0,s=new W,l=new W,u={minTv:new W,maxTv:new W,useDir:!1,dirMinTv:new W,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(t,e){u.touchThreshold=0,t&&null!=t.touchThreshold&&(u.touchThreshold=Ye(0,t.touchThreshold)),u.negativeSize=!1,e&&(u.minTv.set(1/0,1/0),u.maxTv.set(0,0),u.useDir=!1,t)&&null!=t.direction&&(u.useDir=!0,u.dirMinTv.copy(u.minTv),l.copy(u.minTv),a=t.direction,u.bidirectional=null==t.bidirectional||!!t.bidirectional,u.bidirectional||s.set(Math.cos(a),Math.sin(a)))},calcDirMTV:function(){var t=u.minTv,e=u.dirMinTv,n=t.y*t.y+t.x*t.x,i=Math.sin(a),r=Math.cos(a),o=i*t.y+r*t.x;h(o)?h(t.x)&&h(t.y)&&e.set(0,0):(l.x=n*r/o,l.y=n*i/o,h(l.x)&&h(l.y)?e.set(0,0):(u.bidirectional||0<s.dot(l))&&l.len()<e.len()&&e.copy(l))}};function h(t){return Ze(t)<1e-10}return u}var hn="silent";function cn(){De(this.event)}u(fn,pn=he),fn.prototype.dispose=function(){},fn.prototype.setCursor=function(){};var pn,dn=fn;function fn(){var t=null!==pn&&pn.apply(this,arguments)||this;return t.handler=null,t}var gn,yn=function(t,e){this.x=t,this.y=e},mn=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],vn=new X(0,0,0,0),_n=(u(xn,gn=he),xn.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(nt(mn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},xn.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=wn(this,e,n),r=this._hovered,o=r.target,i=(o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target),this._hovered=i?new yn(e,n):this.findHover(e,n)),e=i.target,n=this.proxy;n.setCursor&&n.setCursor(e?e.cursor:"default"),o&&e!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(i,"mousemove",t),e&&e!==o&&this.dispatchToElement(i,"mouseover",t)},xn.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},xn.prototype.resize=function(){this._hovered=new yn(0,0)},xn.prototype.dispatch=function(t,e){t=this[t];t&&t.call(this,e)},xn.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},xn.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},xn.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o={type:e,event:n,target:(t=t).target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:cn};i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget||i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},xn.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new yn(t,e);if(bn(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new X(t-s,e-s,a,a),u=i.length-1;0<=u;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(vn.copy(h.getBoundingRect()),h.transform&&vn.applyTransform(h.transform),vn.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=c)if(bn(o,r,t+d*Math.cos(f),e+d*Math.sin(f),n),r.target)return r}return r},xn.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Ae);var n=this._gestureMgr,i=("start"===e&&n.clear(),n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&n.clear(),i&&(e=i.type,t.gestureEvent=e,(n=new yn).target=i.target,this.dispatchToElement(n,e,i.event))},xn);function xn(t,e,n,i,r){var o=gn.call(this)||this;return o._hovered=new yn(0,0),o.storage=t,o.painter=e,o.painterRoot=i,o._pointerSize=r,n=n||new dn,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new le(o),o}function bn(t,e,n,i,r){for(var o=t.length-1;0<=o;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=function(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(!(o=i.ignoreClip?!0:o)){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1}i.silent&&(r=!0);a=i.__hostTarget,i=a?i.ignoreHostSilent?null:a:i.parent}return!r||hn}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==hn)){e.target=a;break}}}function wn(t,e,n){t=t.painter;return e<0||e>t.getWidth()||n<0||n>t.getHeight()}nt(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){_n.prototype[a]=function(t){var e,n,i=t.zrX,r=t.zrY,o=wn(this,i,r);if("mouseup"===a&&o||(n=(e=this.findHover(i,r)).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<Jt(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(e,a,t)}});var Sn=32,Mn=7;function Tn(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;var o=t,a=e,s=r;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;r<n&&0<=i(t[r],t[r-1]);)r++;return r-e}function In(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<0?l=o:s=1+o;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 Cn(t,e,n,i,r,o){var a=0,s=0,l=1;if(0<o(t,e[n+r])){for(s=i-r;l<s&&0<o(t,e[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)(l=1+((a=l)<<1))<=0&&(l=s);i=a,a=r-(l=s<l?s:l),l=r-i}for(a++;a<l;){var u=a+(l-a>>>1);0<o(t,e[n+u])?a=u+1:l=u}return l}function kn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)(l=1+((a=l)<<1))<=0&&(l=s);var u=a,a=r-(l=s<l?s:l),l=r-u}else{for(s=i-r;l<s&&0<=o(t,e[n+r+l]);)(l=1+((a=l)<<1))<=0&&(l=s);s<l&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Dn(L,A){var P,O,R=Mn,z=0,N=[];function e(t){var e=P[t],n=O[t],i=P[t+1],r=O[t+1],t=(O[t]=n+r,t===z-3&&(P[t+1]=P[t+2],O[t+1]=O[t+2]),z--,kn(L[i],L,e,n,0,A));if(e+=t,0!=(n-=t)&&0!==(r=Cn(L[e+n-1],L,i,r,r-1,A)))if(n<=r){var o=e,a=n,t=i,s=r,l=0;for(l=0;l<a;l++)N[l]=L[o+l];var u=0,h=t,c=o;if(L[c++]=L[h++],0==--s)for(l=0;l<a;l++)L[c+l]=N[u+l];else if(1===a){for(l=0;l<s;l++)L[c+l]=L[h+l];L[c+s]=N[u]}else{for(var p,d,f,g=R;;){d=p=0,f=!1;do{if(A(L[h],N[u])<0){if(L[c++]=L[h++],d++,(p=0)==--s){f=!0;break}}else if(L[c++]=N[u++],p++,d=0,1==--a){f=!0;break}}while((p|d)<g);if(f)break;do{if(0!==(p=kn(L[h],N,u,a,0,A))){for(l=0;l<p;l++)L[c+l]=N[u+l];if(c+=p,u+=p,(a-=p)<=1){f=!0;break}}if(L[c++]=L[h++],0==--s){f=!0;break}if(0!==(d=Cn(N[u],L,h,s,0,A))){for(l=0;l<d;l++)L[c+l]=L[h+l];if(c+=d,h+=d,0===(s-=d)){f=!0;break}}if(L[c++]=N[u++],1==--a){f=!0;break}}while(g--,Mn<=p||Mn<=d);if(f)break;g<0&&(g=0),g+=2}if((R=g)<1&&(R=1),1===a){for(l=0;l<s;l++)L[c+l]=L[h+l];L[c+s]=N[u]}else{if(0===a)throw new Error;for(l=0;l<a;l++)L[c+l]=N[u+l]}}}else{var y=e,m=n,v=i,_=r,x=0;for(x=0;x<_;x++)N[x]=L[v+x];var b=y+m-1,w=_-1,S=v+_-1,M=0,T=0;if(L[S--]=L[b--],0==--m)for(M=S-(_-1),x=0;x<_;x++)L[M+x]=N[x];else if(1===_){for(T=(S-=m)+1,M=(b-=m)+1,x=m-1;0<=x;x--)L[T+x]=L[M+x];L[S]=N[w]}else{for(var I=R;;){var C=0,k=0,D=!1;do{if(A(N[w],L[b])<0){if(L[S--]=L[b--],C++,(k=0)==--m){D=!0;break}}else if(L[S--]=N[w--],k++,C=0,1==--_){D=!0;break}}while((C|k)<I);if(D)break;do{if(0!==(C=m-kn(N[w],L,y,m,m-1,A))){for(m-=C,T=(S-=C)+1,M=(b-=C)+1,x=C-1;0<=x;x--)L[T+x]=L[M+x];if(0===m){D=!0;break}}if(L[S--]=N[w--],1==--_){D=!0;break}if(0!==(k=_-Cn(L[b],N,0,_,_-1,A))){for(_-=k,T=(S-=k)+1,M=(w-=k)+1,x=0;x<k;x++)L[T+x]=N[M+x];if(_<=1){D=!0;break}}if(L[S--]=L[b--],0==--m){D=!0;break}}while(I--,Mn<=C||Mn<=k);if(D)break;I<0&&(I=0),I+=2}if((R=I)<1&&(R=1),1===_){for(T=(S-=m)+1,M=(b-=m)+1,x=m-1;0<=x;x--)L[T+x]=L[M+x];L[S]=N[w]}else{if(0===_)throw new Error;for(M=S-(_-1),x=0;x<_;x++)L[M+x]=N[x]}}}}return P=[],O=[],{mergeRuns:function(){for(;1<z;){var t=z-2;if(1<=t&&O[t-1]<=O[t]+O[t+1]||2<=t&&O[t-2]<=O[t]+O[t-1])O[t-1]<O[t+1]&&t--;else if(O[t]>O[t+1])break;e(t)}},forceMergeRuns:function(){for(;1<z;){var t=z-2;0<t&&O[t-1]<O[t+1]&&t--,e(t)}},pushRun:function(t,e){P[z]=t,O[z]=e,z+=1}}}function Ln(t,e,n,i){var r=(i=i||t.length)-(n=n||0);if(!(r<2)){var o=0;if(r<Sn)In(t,n,i,n+(o=Tn(t,n,i,e)),e);else{var a,s=Dn(t,e),l=function(t){for(var e=0;Sn<=t;)e|=1&t,t>>=1;return t+e}(r);do{}while((o=Tn(t,n,i,e))<l&&(In(t,n,n+(a=l<(a=r)?l:r),n+o,e),o=a),s.pushRun(n,o),s.mergeRuns(),n+=o,0!==(r-=o));s.forceMergeRuns()}}}var An=1,Pn=4,On=!1;function Rn(){On||(On=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function zn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}En.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},En.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},En.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Ln(n,zn)},En.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath(),r=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(r||i)){if(a=a||(t.__clipPaths=[]),r)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=i,u=t;l;)l.parent=u,l.updateTransform(),l=(u=a[o++]=l).getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var h=t.childrenRef(),c=0;c<h.length;c++){var p=h[c];t.__dirty&&(p.__dirty|=An),this._updateAndAddDisplayable(p,a,n)}t.__dirty=0}else{r=t;isNaN(r.z)&&(Rn(),r.z=0),isNaN(r.z2)&&(Rn(),r.z2=0),isNaN(r.zlevel)&&(Rn(),r.zlevel=0),this._displayList[this._displayListLen++]=r}i=t.getDecalElement&&t.getDecalElement(),r=(i&&this._updateAndAddDisplayable(i,a,n),t.getTextGuideLine()),i=(r&&this._updateAndAddDisplayable(r,a,n),t.getTextContent());i&&this._updateAndAddDisplayable(i,a,n)}},En.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},En.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=k(this._roots,t);0<=i&&this._roots.splice(i,1)}},En.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},En.prototype.getRoots=function(){return this._roots},En.prototype.dispose=function(){this._displayList=null,this._roots=null};var Nn=En;function En(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=zn}var Bn=w.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Vn={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-Vn.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*Vn.bounceIn(2*t):.5*Vn.bounceOut(2*t-1)+.5}},Fn=Math.pow,Hn=Math.sqrt,Gn=1e-8,Wn=Hn(3),Un=1/3,Xn=Wt(),Yn=Wt(),Zn=Wt();function qn(t){return-Gn<t&&t<Gn}function jn(t){return Gn<t||t<-Gn}function Kn(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function $n(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Qn(t,e,n,i,r,o){var a,s,i=i+3*(e-n)-t,n=3*(n-2*e+t),e=3*(e-t),t=t-r,r=n*n-3*i*e,l=n*e-9*i*t,t=e*e-3*n*t,u=0;return qn(r)&&qn(l)?qn(n)?o[0]=0:0<=(a=-e/n)&&a<=1&&(o[u++]=a):qn(e=l*l-4*r*t)?(s=-(t=l/r)/2,0<=(a=-n/i+t)&&a<=1&&(o[u++]=a),0<=s&&s<=1&&(o[u++]=s)):0<e?(e=r*n+1.5*i*(-l-(t=Hn(e))),0<=(a=(-n-((t=(t=r*n+1.5*i*(-l+t))<0?-Fn(-t,Un):Fn(t,Un))+(e=e<0?-Fn(-e,Un):Fn(e,Un))))/(3*i))&&a<=1&&(o[u++]=a)):(t=(2*r*n-3*i*l)/(2*Hn(r*r*r)),e=Math.acos(t)/3,a=(-n-2*(l=Hn(r))*(t=Math.cos(e)))/(3*i),s=(-n+l*(t+Wn*Math.sin(e)))/(3*i),r=(-n+l*(t-Wn*Math.sin(e)))/(3*i),0<=a&&a<=1&&(o[u++]=a),0<=s&&s<=1&&(o[u++]=s),0<=r&&r<=1&&(o[u++]=r)),u}function Jn(t,e,n,i,r){var o,a=6*n-12*e+6*t,i=9*e+3*i-3*t-9*n,n=3*e-3*t,e=0;return qn(i)?jn(a)&&0<=(o=-n/a)&&o<=1&&(r[e++]=o):qn(t=a*a-4*i*n)?r[0]=-a/(2*i):0<t&&(t=(-a-(n=Hn(t)))/(2*i),0<=(o=(-a+n)/(2*i))&&o<=1&&(r[e++]=o),0<=t)&&t<=1&&(r[e++]=t),e}function ti(t,e,n,i,r,o){var a=(e-t)*r+t,e=(n-e)*r+e,n=(i-n)*r+n,s=(e-a)*r+a,e=(n-e)*r+e,r=(e-s)*r+s;o[0]=t,o[1]=a,o[2]=s,o[3]=r,o[4]=r,o[5]=e,o[6]=n,o[7]=i}function ei(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g=.005,y=1/0;Xn[0]=l,Xn[1]=u;for(var m=0;m<1;m+=.05)Yn[0]=Kn(t,n,r,a,m),Yn[1]=Kn(e,i,o,s,m),(d=ee(Xn,Yn))<y&&(c=m,y=d);for(var y=1/0,v=0;v<32&&!(g<1e-4);v++)p=c+g,Yn[0]=Kn(t,n,r,a,f=c-g),Yn[1]=Kn(e,i,o,s,f),d=ee(Yn,Xn),0<=f&&d<y?(c=f,y=d):(Zn[0]=Kn(t,n,r,a,p),Zn[1]=Kn(e,i,o,s,p),f=ee(Zn,Xn),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=Kn(t,n,r,a,c),h[1]=Kn(e,i,o,s,c)),Hn(y)}function ni(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function ii(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function ri(t,e,n){n=t+n-2*e;return 0==n?.5:(t-e)/n}function oi(t,e,n,i,r){var o=(e-t)*i+t,e=(n-e)*i+e,i=(e-o)*i+o;r[0]=t,r[1]=o,r[2]=i,r[3]=i,r[4]=e,r[5]=n}function ai(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;Xn[0]=a,Xn[1]=s;for(var p=0;p<1;p+=.05)Yn[0]=ni(t,n,r,p),Yn[1]=ni(e,i,o,p),(y=ee(Xn,Yn))<c&&(u=p,c=y);for(var c=1/0,d=0;d<32&&!(h<1e-4);d++){var f=u-h,g=u+h,y=(Yn[0]=ni(t,n,r,f),Yn[1]=ni(e,i,o,f),ee(Yn,Xn));0<=f&&y<c?(u=f,c=y):(Zn[0]=ni(t,n,r,g),Zn[1]=ni(e,i,o,g),f=ee(Zn,Xn),g<=1&&f<c?(u=g,c=f):h*=.5)}return l&&(l[0]=ni(t,n,r,u),l[1]=ni(e,i,o,u)),Hn(c)}var si=/cubic-bezier\(([0-9,\.e ]+)\)/;function li(t){t=t&&si.exec(t);if(t){var e,t=t[1].split(","),n=+It(t[0]),i=+It(t[1]),r=+It(t[2]),o=+It(t[3]);if(!isNaN(n+i+r+o))return e=[],function(t){return t<=0?0:1<=t?1:Qn(0,n,r,1,t,e)&&Kn(0,i,o,1,e[0])}}}hi.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n,o=(r<0&&(r=0),r=Math.min(r,1),this.easingFunc),o=o?o(r):r;if(this.onframe(o),1===r){if(!this.loop)return!0;this._startTime=t-i%n,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},hi.prototype.pause=function(){this._paused=!0},hi.prototype.resume=function(){this._paused=!1},hi.prototype.setEasing=function(t){this.easing=t,this.easingFunc=z(t)?t:Vn[t]||li(t)};var ui=hi;function hi(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Vt,this.ondestroy=t.ondestroy||Vt,this.onrestart=t.onrestart||Vt,t.easing&&this.setEasing(t.easing)}var ci=function(t){this.value=t},pi=(di.prototype.insert=function(t){t=new ci(t);return this.insertEntry(t),t},di.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++},di.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--},di.prototype.len=function(){return this._len},di.prototype.clear=function(){this.head=this.tail=null,this._len=0},di);function di(){this._len=0}gi.prototype.put=function(t,e){var n,i,r=this._list,o=this._map,a=null;return null==o[t]&&(i=r.len(),n=this._lastRemovedEntry,i>=this._maxSize&&0<i&&(i=r.head,r.remove(i),delete o[i.key],a=i.value,this._lastRemovedEntry=i),n?n.value=e:n=new ci(e),n.key=t,r.insertEntry(n),o[t]=n),a},gi.prototype.get=function(t){var t=this._map[t],e=this._list;if(null!=t)return t!==e.tail&&(e.remove(t),e.insertEntry(t)),t.value},gi.prototype.clear=function(){this._list.clear(),this._map={}},gi.prototype.len=function(){return this._list.len()};var fi=gi;function gi(t){this._list=new pi,this._maxSize=10,this._map={},this._maxSize=t}var yi={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 mi(t){return(t=Math.round(t))<0?0:255<t?255:t}function vi(t){return t<0?0:1<t?1:t}function _i(t){return t.length&&"%"===t.charAt(t.length-1)?mi(parseFloat(t)/100*255):mi(parseInt(t,10))}function xi(t){return t.length&&"%"===t.charAt(t.length-1)?vi(parseFloat(t)/100):vi(parseFloat(t))}function bi(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 wi(t,e,n){return t+(e-t)*n}function Si(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Mi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Ti=new fi(20),Ii=null;function Ci(t,e){Ii&&Mi(Ii,e),Ii=Ti.put(t,Ii||e.slice())}function ki(t,e){if(t){e=e||[];var n=Ti.get(t);if(n)return Mi(e,n);n=(t+="").replace(/ /g,"").toLowerCase();if(n in yi)return Mi(e,yi[n]),Ci(t,e),e;var i=n.length;if("#"===n.charAt(0))return 4===i||5===i?0<=(r=parseInt(n.slice(1,4),16))&&r<=4095?(Si(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===i?parseInt(n.slice(4),16)/15:1),Ci(t,e),e):void Si(e,0,0,0,1):7===i||9===i?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(Si(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===i?parseInt(n.slice(7),16)/255:1),Ci(t,e),e):void Si(e,0,0,0,1):void 0;var r=n.indexOf("("),o=n.indexOf(")");if(-1!==r&&o+1===i){var i=n.substr(0,r),a=n.substr(r+1,o-(r+1)).split(","),s=1;switch(i){case"rgba":if(4!==a.length)return 3===a.length?Si(e,+a[0],+a[1],+a[2],1):Si(e,0,0,0,1);s=xi(a.pop());case"rgb":return 3<=a.length?(Si(e,_i(a[0]),_i(a[1]),_i(a[2]),3===a.length?s:xi(a[3])),Ci(t,e),e):void Si(e,0,0,0,1);case"hsla":return 4!==a.length?void Si(e,0,0,0,1):(a[3]=xi(a[3]),Di(a,e),Ci(t,e),e);case"hsl":return 3!==a.length?void Si(e,0,0,0,1):(Di(a,e),Ci(t,e),e);default:return}}Si(e,0,0,0,1)}}function Di(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=xi(t[1]),r=xi(t[2]),i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return Si(e=e||[],mi(255*bi(r,i,n+1/3)),mi(255*bi(r,i,n)),mi(255*bi(r,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Li(t,e){var n=ki(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 Ni(n,4===n.length?"rgba":"rgb")}}function Ai(t,e,n){var i,r,o;if(e&&e.length&&0<=t&&t<=1)return n=n||[],t=t*(e.length-1),i=Math.floor(t),o=Math.ceil(t),r=e[i],e=e[o],n[0]=mi(wi(r[0],e[0],o=t-i)),n[1]=mi(wi(r[1],e[1],o)),n[2]=mi(wi(r[2],e[2],o)),n[3]=vi(wi(r[3],e[3],o)),n}var Pi=Ai;function Oi(t,e,n){var i,r,o,a;if(e&&e.length&&0<=t&&t<=1)return t=t*(e.length-1),i=Math.floor(t),r=Math.ceil(t),a=ki(e[i]),e=ki(e[r]),a=Ni([mi(wi(a[0],e[0],o=t-i)),mi(wi(a[1],e[1],o)),mi(wi(a[2],e[2],o)),vi(wi(a[3],e[3],o))],"rgba"),n?{color:a,leftIndex:i,rightIndex:r,value:t}:a}var e=Oi;function Ri(t,e,n,i){var r=ki(t);if(t)return r=function(t){var e,n,i,r,o,a,s,l,u,h;if(t)return h=t[0]/255,e=t[1]/255,n=t[2]/255,s=Math.min(h,e,n),r=((i=Math.max(h,e,n))+s)/2,0==(u=i-s)?a=o=0:(a=r<.5?u/(i+s):u/(2-i-s),s=((i-h)/6+u/2)/u,l=((i-e)/6+u/2)/u,u=((i-n)/6+u/2)/u,h===i?o=u-l:e===i?o=1/3+s-u:n===i&&(o=2/3+l-s),o<0&&(o+=1),1<o&&--o),h=[360*o,a,r],null!=t[3]&&h.push(t[3]),h}(r),null!=e&&(r[0]=(t=z(e)?e(r[0]):e,(t=Math.round(t))<0?0:360<t?360:t)),null!=n&&(r[1]=xi(z(n)?n(r[1]):n)),null!=i&&(r[2]=xi(z(i)?i(r[2]):i)),Ni(Di(r),"rgba")}function zi(t,e){t=ki(t);if(t&&null!=e)return t[3]=vi(e),Ni(t,"rgba")}function Ni(t,e){var n;if(t&&t.length)return n=t[0]+","+t[1]+","+t[2],"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}function Ei(t,e){t=ki(t);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Bi=new fi(100);function Vi(t){var e;return F(t)?((e=Bi.get(t))||(e=Li(t,-.1),Bi.put(t,e)),e):mt(t)?((e=P({},t)).colorStops=B(t.colorStops,function(t){return{offset:t.offset,color:Li(t.color,-.1)}}),e):t}Pi=Object.freeze({__proto__:null,fastLerp:Ai,fastMapToColor:Pi,lerp:Oi,lift:Li,liftColor:Vi,lum:Ei,mapToColor:e,modifyAlpha:zi,modifyHSL:Ri,parse:ki,parseCssFloat:xi,parseCssInt:_i,random:function(){return Ni([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:Ni,toHex:function(t){if(t=ki(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}});w.hasGlobalWindow&&z(window.btoa);var Fi=Array.prototype.slice;function Hi(t,e,n){return(e-t)*n+t}function Gi(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=Hi(e[o],n[o],i);return t}function Wi(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Ui(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Xi(t){if(st(t)){var e=t.length;if(st(t[0])){for(var n=[],i=0;i<e;i++)n.push(Fi.call(t[i]));return n}return Fi.call(t)}return t}function Yi(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function Zi(t){return 4===t||5===t}function qi(t){return 1===t||2===t}var ji=[0,0,0,0],Ki=($i.prototype.isFinished=function(){return this._finished},$i.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},$i.prototype.needsAnimate=function(){return 1<=this.keyframes.length},$i.prototype.getAdditiveTrack=function(){return this._additiveTrack},$i.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i,r=this.keyframes,o=r.length,a=!1,s=6,l=e,u=(st(e)?(1==(s=i=st((i=e)&&i[0])?2:1)&&!H(e[0])||2==i&&!H(e[0][0]))&&(a=!0):H(e)&&!xt(e)?s=0:F(e)?isNaN(+e)?(i=ki(e))&&(l=i,s=3):s=0:mt(e)&&((u=P({},l)).colorStops=B(e.colorStops,function(t){return{offset:t.offset,color:ki(t.color)}}),"linear"===e.type?s=4:"radial"===e.type&&(s=5),l=u),0===o?this.valType=s:s===this.valType&&6!==s||(a=!0),this.discrete=this.discrete||a,{time:t,value:l,rawValue:e,percent:0});return n&&(u.easing=n,u.easingFunc=z(n)?n:Vn[n]||li(n)),r.push(u),u},$i.prototype.prepare=function(t,e){for(var n=this.keyframes,i=(this._needsSort&&n.sort(function(t,e){return t.time-e.time}),this.valType),r=n.length,o=n[r-1],a=this.discrete,s=qi(i),l=Zi(i),u=0;u<r;u++){var h=n[u],c=h.value,p=o.value;if(h.percent=h.time/t,!a)if(s&&u!==r-1){x=_=v=m=y=g=f=d=h=void 0;var d=p,f=i,g=h=c,y=d;if(g.push&&y.push){var h=g.length,m=y.length;if(h!==m)if(m<h)g.length=m;else for(var v=h;v<m;v++)g.push(1===f?y[v]:Fi.call(y[v]));for(var _=g[0]&&g[0].length,v=0;v<g.length;v++)if(1===f)isNaN(g[v])&&(g[v]=y[v]);else for(var x=0;x<_;x++)isNaN(g[v][x])&&(g[v][x]=y[v][x])}}else if(l){T=M=S=w=b=h=d=void 0;for(var d=c.colorStops,h=p.colorStops,b=d.length,w=h.length,S=w<b?h:d,h=Math.min(b,w),M=S[h-1]||{color:[0,0,0,0],offset:0},T=h;T<Math.max(b,w);T++)S.push({offset:M.offset,color:M.color.slice()})}}if(!a&&5!==i&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;for(var I=n[0].value,u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-I:3===i?n[u].additiveValue=Wi([],n[u].value,I,-1):qi(i)&&(n[u].additiveValue=(1===i?Wi:Ui)([],n[u].value,I,-1))}},$i.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o,a=null!=this._additiveTrack,s=a?"additiveValue":"value",l=this.valType,u=this.keyframes,h=u.length,c=this.propName,p=3===l,d=this._lastFr,f=Math.min;if(1===h)n=i=u[0];else{if(e<0)g=0;else if(e<this._lastFrP){for(var g=f(d+1,h-1);0<=g&&!(u[g].percent<=e);g--);g=f(g,h-2)}else{for(g=d;g<h&&!(u[g].percent>e);g++);g=f(g-1,h-2)}i=u[g+1],n=u[g]}n&&i&&(this._lastFr=g,this._lastFrP=e,d=i.percent-n.percent,r=0==d?1:f((e-n.percent)/d,1),i.easingFunc&&(r=i.easingFunc(r)),f=a?this._additiveValue:p?ji:t[c],(qi(l)||p)&&(f=f||(this._additiveValue=[])),this.discrete?t[c]=(r<1?n:i).rawValue:qi(l)?(1===l?Gi:function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Hi(e[a][s],n[a][s],i)}})(f,n[s],i[s],r):Zi(l)?(d=n[s],o=i[s],t[c]={type:(l=4===l)?"linear":"radial",x:Hi(d.x,o.x,r),y:Hi(d.y,o.y,r),colorStops:B(d.colorStops,function(t,e){e=o.colorStops[e];return{offset:Hi(t.offset,e.offset,r),color:Yi(Gi([],t.color,e.color,r))}}),global:o.global},l?(t[c].x2=Hi(d.x2,o.x2,r),t[c].y2=Hi(d.y2,o.y2,r)):t[c].r=Hi(d.r,o.r,r)):p?(Gi(f,n[s],i[s],r),a||(t[c]=Yi(f))):(l=Hi(n[s],i[s],r),a?this._additiveValue=l:t[c]=l),a)&&this._addToTarget(t)}},$i.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;0===e?t[n]=t[n]+i:3===e?(ki(t[n],ji),Wi(ji,ji,i,1),t[n]=Yi(ji)):1===e?Wi(t[n],t[n],i,1):2===e&&Ui(t[n],t[n],i,1)},$i);function $i(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}Ji.prototype.getMaxTime=function(){return this._maxTime},Ji.prototype.getDelay=function(){return this._delay},Ji.prototype.getLoop=function(){return this._loop},Ji.prototype.getTarget=function(){return this._target},Ji.prototype.changeTarget=function(t){this._target=t},Ji.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,ct(e),n)},Ji.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o];if(!(l=r[a])){var s,l=r[a]=new Ki(a),u=void 0,h=this._getAdditiveTrack(a);if(h?(u=(s=(s=h.keyframes)[s.length-1])&&s.value,3===h.valType&&(u=u&&Yi(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,Xi(u),i),this._trackKeys.push(a)}l.addKeyframe(t,Xi(e[a]),i)}return this._maxTime=Math.max(this._maxTime,t),this},Ji.prototype.pause=function(){this._clip.pause(),this._paused=!0},Ji.prototype.resume=function(){this._clip.resume(),this._paused=!1},Ji.prototype.isPaused=function(){return!!this._paused},Ji.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},Ji.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},Ji.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},Ji.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},Ji.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},Ji.prototype.start=function(t){if(!(0<this._started)){this._started=1;for(var e,o=this,a=[],n=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var r=this._trackKeys[i],s=this._tracks[r],r=this._getAdditiveTrack(r),l=s.keyframes,u=l.length;s.prepare(n,r),s.needsAnimate()&&(!this._allowDiscrete&&s.discrete?((r=l[u-1])&&(o._target[s.propName]=r.rawValue),s.setFinished()):a.push(s))}return a.length||this._force?(e=new ui({life:n,loop:this._loop,delay:this._delay||0,onframe:function(t){o._started=2;var e=o._additiveAnimators;if(e){for(var n=!1,i=0;i<e.length;i++)if(e[i]._clip){n=!0;break}n||(o._additiveAnimators=null)}for(i=0;i<a.length;i++)a[i].step(o._target,t);var r=o._onframeCbs;if(r)for(i=0;i<r.length;i++)r[i](o._target,t)},ondestroy:function(){o._doneCallback()}}),this._clip=e,this.animation&&this.animation.addClip(e),t&&e.setEasing(t)):this._doneCallback(),this}},Ji.prototype.stop=function(t){var e;this._clip&&(e=this._clip,t&&e.onframe(1),this._abortedCallback())},Ji.prototype.delay=function(t){return this._delay=t,this},Ji.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},Ji.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},Ji.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},Ji.prototype.getClip=function(){return this._clip},Ji.prototype.getTrack=function(t){return this._tracks[t]},Ji.prototype.getTracks=function(){var e=this;return B(this._trackKeys,function(t){return e._tracks[t]})},Ji.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},Ji.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];o&&!o.isFinished()&&(o=(o=o.keyframes)[n?0:o.length-1])&&(t[r]=Xi(o.rawValue))}}},Ji.prototype.__changeFinalValue=function(t,e){e=e||ct(t);for(var n=0;n<e.length;n++){var i,r=e[n],o=this._tracks[r];o&&1<(i=o.keyframes).length&&(i=i.pop(),o.addKeyframe(i.time,t[r]),o.prepare(this._maxTime,o.getAdditiveTrack()))}};var Qi=Ji;function Ji(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,(this._loop=e)&&i?et("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}function tr(){return(new Date).getTime()}u(ir,er=he),ir.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?((this._tail.next=t).prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},ir.prototype.addAnimator=function(t){t.animation=this;t=t.getClip();t&&this.addClip(t)},ir.prototype.removeClip=function(t){var e,n;t.animation&&(e=t.prev,n=t.next,e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null)},ir.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},ir.prototype.update=function(t){for(var e=tr()-this._pausedTime,n=e-this._time,i=this._head;i;)var r=i.next,i=(i.step(e,n)&&(i.ondestroy(),this.removeClip(i)),r);this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},ir.prototype._startLoop=function(){var e=this;this._running=!0,Bn(function t(){e._running&&(Bn(t),e._paused||e.update())})},ir.prototype.start=function(){this._running||(this._time=tr(),this._pausedTime=0,this._startLoop())},ir.prototype.stop=function(){this._running=!1},ir.prototype.pause=function(){this._paused||(this._pauseStart=tr(),this._paused=!0)},ir.prototype.resume=function(){this._paused&&(this._pausedTime+=tr()-this._pauseStart,this._paused=!1)},ir.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},ir.prototype.isFinished=function(){return null==this._head},ir.prototype.animate=function(t,e){e=e||{},this.start();t=new Qi(t,e.loop);return this.addAnimator(t),t};var er,nr=ir;function ir(t){var e=er.call(this)||this;return e._running=!1,e._time=0,e._pausedTime=0,e._pauseStart=0,e._paused=!1,e.stage=(t=t||{}).stage||{},e}var rr,or=w.domSupported,ar=(rr={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:B(e,function(t){var e=t.replace("mouse","pointer");return rr.hasOwnProperty(e)?e:t})}),sr=["mousemove","mouseup"],lr=["pointermove","pointerup"],ur=!1;function hr(t){t=t.pointerType;return"pen"===t||"touch"===t}function cr(t){t&&(t.zrByTouch=!0)}function pr(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 dr=function(t,e){this.stopPropagation=Vt,this.stopImmediatePropagation=Vt,this.preventDefault=Vt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},fr={mousedown:function(t){t=ke(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ke(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=ke(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){pr(this,(t=ke(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ur=!0,t=ke(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ur||(t=ke(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){cr(t=ke(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),fr.mousemove.call(this,t),fr.mousedown.call(this,t)},touchmove:function(t){cr(t=ke(this.dom,t)),this.handler.processGesture(t,"change"),fr.mousemove.call(this,t)},touchend:function(t){cr(t=ke(this.dom,t)),this.handler.processGesture(t,"end"),fr.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&fr.click.call(this,t)},pointerdown:function(t){fr.mousedown.call(this,t)},pointermove:function(t){hr(t)||fr.mousemove.call(this,t)},pointerup:function(t){fr.mouseup.call(this,t)},pointerout:function(t){hr(t)||fr.mouseout.call(this,t)}},gr=(nt(["click","dblclick","contextmenu"],function(e){fr[e]=function(t){t=ke(this.dom,t),this.trigger(e,t)}}),{pointermove:function(t){hr(t)||gr.mousemove.call(this,t)},pointerup:function(t){gr.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 yr(i,r){var o=r.domHandlers;w.pointerEventsSupported?nt(ar.pointer,function(e){vr(r,e,function(t){o[e].call(i,t)})}):(w.touchEventsSupported&&nt(ar.touch,function(n){vr(r,n,function(t){var e;o[n].call(i,t),(e=r).touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)})}),nt(ar.mouse,function(e){vr(r,e,function(t){t=Ce(t),r.touching||o[e].call(i,t)})}))}function mr(i,r){function t(n){vr(r,n,function(t){var e;t=Ce(t),pr(i,t.target)||(e=t,t=ke(i.dom,new dr(i,e),!0),r.domHandlers[n].call(i,t))},{capture:!0})}w.pointerEventsSupported?nt(lr,t):w.touchEventsSupported||nt(sr,t)}function vr(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,t.domTarget.addEventListener(e,n,i)}function _r(t){var e,n,i,r,o,a=t.mounted;for(e in a)a.hasOwnProperty(e)&&(n=t.domTarget,r=a[i=e],o=t.listenerOpts[e],n.removeEventListener(i,r,o));t.mounted={}}var xr,br=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},wr=(u(Sr,xr=he),Sr.prototype.dispose=function(){_r(this._localHandlerScope),or&&_r(this._globalHandlerScope)},Sr.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},Sr.prototype.__togglePointerCapture=function(t){var e;this.__mayPointerCapture=null,or&&+this.__pointerCapturing^+t&&(this.__pointerCapturing=t,e=this._globalHandlerScope,t?mr(this,e):_r(e))},Sr);function Sr(t,e){var n=xr.call(this)||this;return n.__pointerCapturing=!1,n.dom=t,n.painterRoot=e,n._localHandlerScope=new br(t,fr),or&&(n._globalHandlerScope=new br(document,gr)),yr(n,n._localHandlerScope),n}var e=1,Mr=e=w.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):e,Tr="#333",Ir="#ccc",Cr=Ne;function kr(t){return 5e-5<t||t<-5e-5}var Dr=[],Lr=[],Ar=ze(),Pr=Math.abs,Or=(Rr.prototype.getLocalTransform=function(t){return Rr.getLocalTransform(this,t)},Rr.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},Rr.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},Rr.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},Rr.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},Rr.prototype.needLocalTransform=function(){return kr(this.rotation)||kr(this.x)||kr(this.y)||kr(this.scaleX-1)||kr(this.scaleY-1)||kr(this.skewX)||kr(this.skewY)},Rr.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||ze(),e?this.getLocalTransform(n):Cr(n),t&&(e?Be(n,t,n):Ee(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Cr(n),this.invTransform=null)},Rr.prototype._resolveGlobalScaleRatio=function(t){var e,n,i=this.globalScaleRatio;null!=i&&1!==i&&(this.getGlobalScale(Dr),n=((Dr[1]-(n=Dr[1]<0?-1:1))*i+n)/Dr[1]||0,t[0]*=i=((Dr[0]-(e=Dr[0]<0?-1:1))*i+e)/Dr[0]||0,t[1]*=i,t[2]*=n,t[3]*=n),this.invTransform=this.invTransform||ze(),Ge(this.invTransform,t)},Rr.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},Rr.prototype.setLocalTransform=function(t){var e,n,i,r;t&&(r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],e=Math.atan2(t[1],t[0]),n=Math.PI/2+e-Math.atan2(t[3],t[2]),i=Math.sqrt(i)*Math.cos(n),r=Math.sqrt(r),this.skewX=n,this.skewY=0,this.rotation=-e,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0)},Rr.prototype.decomposeTransform=function(){var t,e,n;this.transform&&(e=this.parent,t=this.transform,e&&e.transform&&(e.invTransform=e.invTransform||ze(),Be(Lr,e.invTransform,t),t=Lr),e=this.originX,n=this.originY,(e||n)&&(Ar[4]=e,Ar[5]=n,Be(Lr,t,Ar),Lr[4]-=e,Lr[5]-=n,t=Lr),this.setLocalTransform(t))},Rr.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},Rr.prototype.transformCoordToLocal=function(t,e){t=[t,e],e=this.invTransform;return e&&ie(t,t,e),t},Rr.prototype.transformCoordToGlobal=function(t,e){t=[t,e],e=this.transform;return e&&ie(t,t,e),t},Rr.prototype.getLineScale=function(){var t=this.transform;return t&&1e-10<Pr(t[0]-1)&&1e-10<Pr(t[3]-1)?Math.sqrt(Pr(t[0]*t[3]-t[2]*t[1])):1},Rr.prototype.copyTransform=function(t){Er(this,t)},Rr.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,t=t.skewY?Math.tan(-t.skewY):0;return n||i||a||s?(e[4]=-(a=n+a)*r-c*(s=i+s)*o,e[5]=-s*o-t*a*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=t*r,e[2]=c*o,l&&Fe(e,e,l),e[4]+=n+u,e[5]+=i+h,e},Rr.initDefaultProps=((e=Rr.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),Rr);function Rr(){}var zr,Nr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Er(t,e){for(var n=0;n<Nr.length;n++){var i=Nr[n];t[i]=e[i]}}function Br(t){zr=zr||new fi(100),t=t||j;var e=zr.get(t);return e||(e={font:t,strWidthCache:new fi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:Y.measureText("国",t).width,asciiCharWidth:Y.measureText("a",t).width},zr.put(t,e)),e}var Vr=0;function Fr(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(5<=Vr)){t=t||j;for(var e=[],n=+new Date,i=0;i<=127;i++)e[i]=Y.measureText(String.fromCharCode(i),t).width;n=+new Date-n;return 16<n?Vr=5:2<n&&Vr++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function Hr(t,e){var n=t.strWidthCache,i=n.get(e);return null==i&&(i=Y.measureText(e,t.font).width,n.put(e,i)),i}function Gr(t,e,n,i){t=Hr(Br(e),t),e=Yr(e),n=Ur(0,t,n),i=Xr(0,e,i);return new X(n,i,t,e)}function Wr(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return Gr(r[0],e,n,i);for(var o=new X(0,0,0,0),a=0;a<r.length;a++){var s=Gr(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}function Ur(t,e,n,i){return"right"===n?i?t+=e:t-=e:"center"===n&&(i?t+=e/2:t-=e/2),t}function Xr(t,e,n,i){return"middle"===n?i?t+=e/2:t-=e/2:"bottom"===n&&(i?t+=e:t-=e),t}function Yr(t){return Br(t).stWideCharWidth}function Zr(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function qr(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=Zr(i[0],n.width),u+=Zr(i[1],n.height),c=h=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var jr,Kr="__zr_normal__",$r=Nr.concat(["ignore"]),Qr=lt(Nr,function(t,e){return t[e]=!0,t},{ignore:!1}),Jr={},to=new X(0,0,0,0),eo=[],e=(n.prototype._init=function(t){this.attr(t)},n.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;(i=i||(this.transform=[1,0,0,1,0,0]))[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},n.prototype.beforeUpdate=function(){},n.prototype.afterUpdate=function(){},n.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},n.prototype.updateInnerText=function(t){var e,n,i,r,o,a,s,l,u,h,c,p=this._textContent;!p||p.ignore&&!t||(this.textConfig||(this.textConfig={}),u=(t=this.textConfig).local,a=o=void 0,n=!1,(e=p.innerTransformable).parent=u?this:null,h=!1,e.copyTransform(p),c=null!=t.position,r=void 0,((i=t.autoOverflowArea)||c)&&(r=to,t.layoutRect?r.copy(t.layoutRect):r.copy(this.getBoundingRect()),u||r.applyTransform(this.transform)),c&&(this.calculateTextPosition?this.calculateTextPosition(Jr,t,r):qr(Jr,t,r),e.x=Jr.x,e.y=Jr.y,o=Jr.align,a=Jr.verticalAlign,c=t.origin)&&null!=t.rotation&&(l=s=void 0,l="center"===c?(s=.5*r.width,.5*r.height):(s=Zr(c[0],r.width),Zr(c[1],r.height)),h=!0,e.originX=-e.x+s+(u?0:r.x),e.originY=-e.y+l+(u?0:r.y)),null!=t.rotation&&(e.rotation=t.rotation),(c=t.offset)&&(e.x+=c[0],e.y+=c[1],h||(e.originX=-c[0],e.originY=-c[1])),s=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),i?(l=s.overflowRect=s.overflowRect||new X(0,0,0,0),e.getLocalTransform(eo),Ge(eo,eo),X.copy(l,r),l.applyTransform(eo)):s.overflowRect=null,c=h=u=void 0,(null==t.inside?"string"==typeof t.position&&0<=t.position.indexOf("inside"):t.inside)&&this.canBeInsideText()?(u=t.insideFill,h=t.insideStroke,null!=u&&"auto"!==u||(u=this.getInsideTextFill()),null!=h&&"auto"!==h||(h=this.getInsideTextStroke(u),c=!0)):(u=t.outsideFill,h=t.outsideStroke,null!=u&&"auto"!==u||(u=this.getOutsideFill()),null!=h&&"auto"!==h||(h=this.getOutsideStroke(u),c=!0)),(u=u||"#000")===s.fill&&h===s.stroke&&c===s.autoStroke&&o===s.align&&a===s.verticalAlign||(n=!0,s.fill=u,s.stroke=h,s.autoStroke=c,s.align=o,s.verticalAlign=a,p.setDefaultTextStyle(s)),p.__dirty|=An,n&&p.dirtyStyle(!0))},n.prototype.canBeInsideText=function(){return!0},n.prototype.getInsideTextFill=function(){return"#fff"},n.prototype.getInsideTextStroke=function(t){return"#000"},n.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Ir:Tr},n.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&ki(e),i=(n=n||[255,255,255,1])[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Ni(n,"rgba")},n.prototype.traverse=function(t,e){},n.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},P(this.extra,e)):this[t]=e},n.prototype.hide=function(){this.ignore=!0,this.markRedraw()},n.prototype.show=function(){this.ignore=!1,this.markRedraw()},n.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(N(t))for(var n=ct(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},n.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],r=i.__fromStateTransition;i.getLoop()||r&&r!==Kr||(r=(r=i.targetName)?e[r]:e,i.saveTo(r))}},n.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,$r)},n.prototype._savePrimaryToNormal=function(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null==t[r]||r in e||(e[r]=this[r])}},n.prototype.hasState=function(){return 0<this.currentStates.length},n.prototype.getState=function(t){return this.states[t]},n.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},n.prototype.clearStates=function(t){this.useState(Kr,!1,t)},n.prototype.useState=function(t,e,n,i){var r=t===Kr,o=this.hasState();if(o||!r){var a,o=this.currentStates,s=this.stateTransition;if(!(0<=k(o,t))||!e&&1!==o.length){if((a=(a=this.stateProxy&&!r?this.stateProxy(t):a)||this.states&&this.states[t])||r)return r||this.saveCurrentToNormalState(a),(o=!!(a&&a.hoverLayer||i))&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,a,this._normalState,e,!n&&!this.__inHover&&s&&0<s.duration,s),i=this._textContent,s=this._textGuide,i&&i.useState(t,e,n,o),s&&s.useState(t,e,n,o),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!o&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~An),a;et("State "+t+" not exists.")}}},n.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}if(!a){for(s=0;s<o;s++){var l=t[s],u=void 0;(u=(u=this.stateProxy?this.stateProxy(l,t):u)||this.states[l])&&i.push(u)}var h=i[o-1],h=!!(h&&h.hoverLayer||n),n=(h&&this._toggleHoverLayerFlag(!0),this._mergeStates(i)),c=this.stateTransition,n=(this.saveCurrentToNormalState(n),this._applyStateObj(t.join(","),n,this._normalState,!1,!e&&!this.__inHover&&c&&0<c.duration,c),this._textContent),c=this._textGuide;n&&n.useStates(t,e,h),c&&c.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~An)}}else this.clearStates()},n.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget,t=e?t.ignoreHostSilent?null:e:t.parent}return!1},n.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},n.prototype.removeState=function(t){var e,t=k(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},n.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),t=k(i,t),r=0<=k(i,e);0<=t?r?i.splice(t,1):i[t]=e:n&&!r&&i.push(e),this.useStates(i)},n.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},n.prototype._mergeStates=function(t){for(var e,n={},i=0;i<t.length;i++){var r=t[i];P(n,r),r.textConfig&&P(e=e||{},r.textConfig)}return e&&(n.textConfig=e),n},n.prototype._applyStateObj=function(t,e,n,i,r,o){for(var a=!(e&&i),s=(e&&e.textConfig?(this.textConfig=P({},(i?this:n).textConfig),P(this.textConfig,e.textConfig)):a&&n.textConfig&&(this.textConfig=n.textConfig),{}),l=!1,u=0;u<$r.length;u++){var h=$r[u],c=r&&Qr[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(!r)for(u=0;u<this.animators.length;u++){var p=this.animators[u],d=p.targetName;p.getLoop()||p.__changeFinalValue(d?(e||n)[d]:e||n)}l&&this._transitionState(t,s,o)},n.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},n.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},n.prototype.getClipPath=function(){return this._clipPath},n.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},n.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},n.prototype.getTextContent=function(){return this._textContent},n.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new Or,this._attachComponent(t),this._textContent=t,this.markRedraw())},n.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),P(this.textConfig,t),this.markRedraw()},n.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},n.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},n.prototype.getTextGuideLine=function(){return this._textGuide},n.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},n.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},n.prototype.markRedraw=function(){this.__dirty|=An;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},n.prototype.dirty=function(){this.markRedraw()},n.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},n.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.addAnimator(e[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},n.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var n=0;n<e.length;n++)t.animation.removeAnimator(e[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},n.prototype.animate=function(t,e,n){var i=t?this[t]:this,i=new Qi(i,e,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},n.prototype.addAnimator=function(n,t){var e=this.__zr,i=this;n.during(function(){i.updateDuringAnimation(t)}).done(function(){var t=i.animators,e=k(t,n);0<=e&&t.splice(e,1)}),this.animators.push(n),e&&e.animation.addAnimator(n),e&&e.wakeUp()},n.prototype.updateDuringAnimation=function(t){this.markRedraw()},n.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o<i;o++){var a=n[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},n.prototype.animateTo=function(t,e,n){io(this,t,e,n)},n.prototype.animateFrom=function(t,e,n){io(this,t,e,n,!0)},n.prototype._transitionState=function(t,e,n,i){for(var r=io(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},n.prototype.getBoundingRect=function(){return null},n.prototype.getPaintRect=function(){return null},n.initDefaultProps=((jr=n.prototype).type="element",jr.name="",jr.ignore=jr.silent=jr.ignoreHostSilent=jr.isGroup=jr.draggable=jr.dragging=jr.ignoreClip=jr.__inHover=!1,jr.__dirty=An,void(Object.defineProperty&&(no("position","_legacyPos","x","y"),no("scale","_legacyScale","scaleX","scaleY"),no("origin","_legacyOrigin","originX","originY")))),n);function n(t){this.id=J++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function no(t,e,n,i){function r(e,t){Object.defineProperty(t,0,{get:function(){return e[n]},set:function(t){e[n]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(jr,t,{get:function(){var t;return this[e]||(t=this[e]=[],r(this,t)),this[e]},set:function(t){this[n]=t[0],this[i]=t[1],this[e]=t,r(this,t)}})}function io(t,e,n,i,r){function o(){u=!0,--l<=0&&(u?h&&h():c&&c())}function a(){--l<=0&&(u?h&&h():c&&c())}var s=[],l=(!function t(e,n,i,r,o,a,s,l){var u=ct(r);var h=o.duration;var c=o.delay;var p=o.additive;var d=o.setToFinal;var f=!N(a);var g=e.animators;var y=[];for(var m=0;m<u.length;m++){var v=u[m],_=r[v];null!=_&&null!=i[v]&&(f||a[v])?!N(_)||st(_)||mt(_)?y.push(v):n?l||(i[v]=_,e.updateDuringAnimation(n)):t(e,v,i[v],_,o,a&&a[v],s,l):l||(i[v]=_,e.updateDuringAnimation(n),y.push(v))}var x=y.length;if(!p&&x)for(var b,w=0;w<g.length;w++)(S=g[w]).targetName===n&&S.stopTracks(y)&&(b=k(g,S),g.splice(b,1));o.force||(y=ut(y,function(t){return!ao(r[t],i[t])}),x=y.length);if(0<x||o.force&&!s.length){var S,M=void 0,T=void 0,I=void 0;if(l){T={},d&&(M={});for(w=0;w<x;w++){v=y[w];T[v]=i[v],d?M[v]=r[v]:i[v]=r[v]}}else if(d){I={};for(w=0;w<x;w++){v=y[w];I[v]=Xi(i[v]),oo(i,r,v)}}(S=new Qi(i,!1,!1,p?ut(g,function(t){return t.targetName===n}):null)).targetName=n,o.scope&&(S.scope=o.scope),d&&M&&S.whenWithKeys(0,M,y),I&&S.whenWithKeys(0,I,y),S.whenWithKeys(null==h?500:h,l?T:r,y).delay(c||0),e.addAnimator(S,n),s.push(S)}}(t,"",t,e,n=n||{},i,s,r),s.length),u=!1,h=n.done,c=n.aborted;l||h&&h(),0<s.length&&n.during&&s[0].during(function(t,e){n.during(e)});for(var p=0;p<s.length;p++){var d=s[p];d.done(o),d.aborted(a),n.force&&d.duration(n.duration),d.start(n.easing)}return s}function ro(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function oo(t,e,n){if(st(e[n]))if(st(t[n])||(t[n]=[]),gt(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),ro(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(st(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?ro(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else ro(o,r,a);o.length=r.length}else t[n]=e[n]}function ao(t,e){return t===e||st(t)&&st(e)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(t,e)}at(e,he),at(e,Or);u(uo,so=e),uo.prototype.childrenRef=function(){return this._children},uo.prototype.children=function(){return this._children.slice()},uo.prototype.childAt=function(t){return this._children[t]},uo.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},uo.prototype.childCount=function(){return this._children.length},uo.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},uo.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},uo.prototype.replace=function(t,e){t=k(this._children,t);return 0<=t&&this.replaceAt(e,t),this},uo.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];return t&&t!==this&&t.parent!==this&&t!==i&&(n[e]=t,i.parent=null,(n=this.__zr)&&i.removeSelfFromZr(n),this._doAdd(t)),this},uo.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()},uo.prototype.remove=function(t){var e=this.__zr,n=this._children,i=k(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},uo.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},uo.prototype.eachChild=function(t,e){for(var n=this._children,i=0;i<n.length;i++){var r=n[i];t.call(e,r,i)}return this},uo.prototype.traverse=function(t,e){for(var n=0;n<this._children.length;n++){var i=this._children[n],r=t.call(e,i);i.isGroup&&!r&&i.traverse(t,e)}return this},uo.prototype.addSelfToZr=function(t){so.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},uo.prototype.removeSelfFromZr=function(t){so.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},uo.prototype.getBoundingRect=function(t){for(var e=new X(0,0,0,0),n=t||this._children,i=[],r=null,o=0;o<n.length;o++){var a,s=n[o];s.ignore||s.invisible||(a=s.getBoundingRect(),(s=s.getLocalTransform(i))?(X.applyTransform(e,a,s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a))}return r||e};var so,lo=uo;function uo(t){var e=so.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}lo.prototype.type="group";var ho={},co={};go.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},go.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},go.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},go.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(t){if("string"==typeof t)return Ei(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=Ei(e[r].color,1);return(n/=i)<.4}}return!1}(t))},go.prototype.getBackgroundColor=function(){return this._backgroundColor},go.prototype.setDarkMode=function(t){this._darkMode=t},go.prototype.isDarkMode=function(){return this._darkMode},go.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},go.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},go.prototype.flush=function(){this._disposed||this._flush(!1)},go.prototype._flush=function(t){var e,n=tr(),t=(this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately()),tr());e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:t-n})):0<this._sleepAfterStill&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill)&&this.animation.stop()},go.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},go.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},go.prototype.refreshHover=function(){this._needsRefreshHover=!0},go.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},go.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},go.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},go.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},go.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},go.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},go.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},go.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},go.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},go.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},go.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof lo&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},go.prototype.dispose=function(){var t;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete co[t])};var po,fo=go;function go(t,e,n){var i,r=this,o=(this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=e,this.id=t,new Nn),a=n.renderer||"canvas",a=(ho[a]||(a=ct(ho)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new ho[a](e,o,n,t)),e=n.ssr||a.ssrOnly,t=(this.storage=o,this.painter=a,w.node||w.worker||e?null:new wr(a.getViewportRoot(),a.root)),s=n.useCoarsePointer;(null==s||"auto"===s?w.touchEventsSupported:!!s)&&(i=G(n.pointerSize,44)),this.handler=new _n(o,a,t,a.root,i),this.animation=new nr({stage:{update:e?null:function(){return r._flush(!0)}}}),e||this.animation.start()}function yo(t,e){t=new fo(J++,t,e);return co[t.id]=t}function mo(t,e){ho[t]=e}function vo(t){po=t}var _o=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in co)co.hasOwnProperty(t)&&co[t].dispose();co={}},getElementSSRData:function(t){if("function"==typeof po)return po(t)},getInstance:function(t){return co[t]},init:yo,registerPainter:mo,registerSSRDataGetter:vo,version:"6.0.0"}),xo=20;var bo=Math.min,wo=Math.max,So=Math.abs;function Mo(t,e,n,i){var r=e[0],e=e[1],o=n[0],n=n[1],a=e-r,s=n-o;if(0==a)return 0==s?o:(o+n)/2;if(i)if(0<a){if(t<=r)return o;if(e<=t)return n}else{if(r<=t)return o;if(t<=e)return n}else{if(t===r)return o;if(t===e)return n}return(t-r)/a*s+o}var To=function(t,e,n){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return Io(t,e,n)};function Io(t,e,n){return F(t)?t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e+(n||0):parseFloat(t):null==t?NaN:+t}function Co(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),xo),t=(+t).toFixed(e),n?t:+t}function ko(t){return t.sort(function(t,e){return t-e}),t}function Do(t){if(t=+t,isNaN(t))return 0;if(1e-14<t)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Lo(t)}function Lo(t){var t=t.toString().toLowerCase(),e=t.indexOf("e"),n=0<e?+t.slice(e+1):0,e=0<e?e:t.length,t=t.indexOf(".");return Math.max(0,(t<0?0:e-1-t)-n)}function Ao(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(So(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}function Po(t,e){var n=lt(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];for(var i=Math.pow(10,e),e=B(t,function(t){return(isNaN(t)?0:t)/n*i*100}),r=100*i,o=B(e,function(t){return Math.floor(t)}),a=lt(o,function(t,e){return t+e},0),s=B(e,function(t,e){return t-o[e]});a<r;){for(var l=Number.NEGATIVE_INFINITY,u=null,h=0,c=s.length;h<c;++h)s[h]>l&&(l=s[h],u=h);++o[u],s[u]=0,++a}return B(o,function(t){return t/i})}function Oo(t){var e=2*Math.PI;return(t%e+e)%e}function Ro(t){return-1e-4<t&&t<1e-4}var zo=/^(?:(\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 No(t){var e,n;return t instanceof Date?t:F(t)?(e=zo.exec(t))?e[8]?(n=+e[4]||0,"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))):new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0):new Date(NaN):null==t?new Date(NaN):new Date(Math.round(t))}function Eo(t){return Math.pow(10,Bo(t))}function Bo(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function Vo(t,e){var n=Bo(t),i=Math.pow(10,n),r=t/i,e=e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10;return t=e*i,-20<=n?+t.toFixed(n<0?-n:0):t}function Fo(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 r=t[i].interval,o=t[i].close,a=0;a<2;a++)r[a]<=e&&(r[a]=e,o[a]=a?1:1-n),e=r[a],n=o[a];r[0]===r[1]&&o[0]*o[1]!=1?t.splice(i,1):i++}return t}function Ho(t){var e=parseFloat(t);return e==t&&(0!==e||!F(t)||t.indexOf("x")<=0)?e:NaN}function Go(t){return!isNaN(Ho(t))}function Wo(){return Math.round(9*Math.random())}function Uo(t,e){return null==t?e:null==e?t:t*e/function t(e,n){return 0===n?e:t(n,e%n)}(t,e)}function f(t){throw new Error(t)}function Xo(t,e,n){return(e-t)*n+t}var Yo="series\0";function Zo(t){return t instanceof Array?t:null==t?[]:[t]}function qo(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var i=0,r=n.length;i<r;i++){var o=n[i];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var jo=["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 Ko(t){return!N(t)||V(t)||t instanceof Date?t:t.value}function $o(t,n,e){var o,a,s,l,r,u,i,h,c,p,d="normalMerge"===e,f="replaceMerge"===e,g="replaceAll"===e,y=(t=t||[],n=(n||[]).slice(),it()),e=(nt(n,function(t,e){N(t)||(n[e]=null)}),function(t,e,n){var i=[];if("replaceAll"!==n)for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),i.push({existing:"replaceMerge"===n||na(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,y,e));return(d||f)&&(o=e,a=t,s=y,nt(l=n,function(t,e){var n,i,r;t&&null!=t.id&&(n=Jo(t.id),null!=(i=s.get(n)))&&(Tt(!(r=o[i]).newOption,'Duplicated option on id "'+n+'".'),r.newOption=t,r.existing=a[i],l[e]=null)})),d&&(r=e,nt(u=n,function(t,e){if(t&&null!=t.name)for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(null==i.id||null==t.id)&&!na(t)&&!na(i)&&Qo("name",i,t))return r[n].newOption=t,void(u[e]=null)}})),d||f?(h=e,c=f,nt(n,function(t){if(t){for(var e,n=0;(e=h[n])&&(e.newOption||na(e.existing)||e.existing&&null!=t.id&&!Qo("id",t,e.existing));)n++;e?(e.newOption=t,e.brandNew=c):h.push({newOption:t,brandNew:c,existing:null,keyInfo:null}),n++}})):g&&(i=e,nt(n,function(t){i.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=e,p=it(),nt(t,function(t){var e=t.existing;e&&p.set(e.id,t)}),nt(t,function(t){var e=t.newOption;Tt(!e||null==e.id||!p.get(e.id)||p.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&p.set(e.id,t),t.keyInfo||(t.keyInfo={})}),nt(t,function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(N(i)){if(r.name=null!=i.name?Jo(i.name):n?n.name:Yo+e,n)r.id=Jo(n.id);else if(null!=i.id)r.id=Jo(i.id);else for(var o=0;r.id="\0"+r.name+"\0"+o++,p.get(r.id););p.set(r.id,t)}}),e}function Qo(t,e,n){e=ta(e[t],null),n=ta(n[t],null);return null!=e&&null!=n&&e===n}function Jo(t){return ta(t,"")}function ta(t,e){return null==t?e:F(t)?t:H(t)||dt(t)?t+"":e}function ea(t){t=t.name;return!(!t||!t.indexOf(Yo))}function na(t){return t&&null!=t.id&&0===Jo(t.id).indexOf("\0_ec_\0")}function ia(t,r,o){nt(t,function(t){var e,n,i=t.newOption;N(i)&&(t.keyInfo.mainType=r,t.keyInfo.subType=(e=r,i=i,t=t.existing,n=o,i.type||(t?t.subType:n.determineSubType(e,i))))})}function ra(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?V(t.dataIndex)?B(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?V(t.name)?B(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function oa(){var e="__ec_inner_"+aa++;return function(t){return t[e]||(t[e]={})}}var aa=Wo();function sa(n,t,i){var t=la(t,i),e=t.mainTypeSpecified,r=t.queryOptionMap,o=t.others,a=i?i.defaultMainType:null;return!e&&a&&r.set(a,{}),r.each(function(t,e){t=ha(n,e,t,{useDefault:a===e,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});o[e+"Models"]=t.models,o[e+"Model"]=t.models[0]}),o}function la(t,i){var e=F(t)?((e={})[t+"Index"]=0,e):t,r=it(),o={},a=!1;return nt(e,function(t,e){var n;"dataIndex"===e||"dataIndexInside"===e?o[e]=t:(n=(e=e.match(/^(\w+)(Index|Id|Name)$/)||[])[1],e=(e[2]||"").toLowerCase(),!n||!e||i&&i.includeMainTypes&&k(i.includeMainTypes,n)<0||(a=a||!!n,(r.get(n)||r.set(n,{}))[e]=t))}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var ua={useDefault:!0,enableAll:!1,enableNone:!1};function ha(t,e,n,i){i=i||ua;var r=n.index,o=n.id,n=n.name,a={models:null,specified:null!=r||null!=o||null!=n};if(a.specified){if("none"===r||!1===r){if(i.enableNone)return a.models=[],a;r=-1}"all"===r&&(r=i.enableAll?o=n=null:-1),a.models=t.queryComponents({mainType:e,index:r,id:o,name:n})}else r=void 0,a.models=i.useDefault&&(r=t.getComponent(e))?[r]:[];return a}function ca(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function pa(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(H(i))return Co(p=Xo(n||0,i,r),o?Math.max(Do(n||0),Do(i)):e);if(F(i))return r<1?n:i;for(var a=[],s=n,l=i,u=Math.max(s?s.length:0,l.length),h=0;h<u;++h){var c,p,d=t.getDimensionInfo(h);d&&"ordinal"===d.type?a[h]=(r<1&&s?s:l)[h]:(p=Xo(d=s&&s[h]?s[h]:0,c=l[h],r),a[h]=Co(p,o?Math.max(Do(d),Do(c)):e))}return a}var da=".",fa="___EC__COMPONENT__CONTAINER___",ga="___EC__EXTENDED_CLASS___";function ya(t){var e={main:"",sub:""};return t&&(t=t.split(da),e.main=t[0]||"",e.sub=t[1]||""),e}function ma(t){(t.$constructor=t).extend=function(t){var e,n,i,r=this;function o(){return n.apply(this,arguments)||this}return z(i=r)&&/^class\s/.test(Function.prototype.toString.call(i))?(u(o,n=r),e=o):ot(e=function(){(t.$constructor||r).apply(this,arguments)},this),P(e.prototype,t),e[ga]=!0,e.extend=this.extend,e.superCall=xa,e.superApply=ba,e.superClass=r,e}}function va(t,e){t.extend=e.extend}var _a=Math.round(10*Math.random());function xa(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return this.superClass.prototype[e].apply(t,n)}function ba(t,e,n){return this.superClass.prototype[e].apply(t,n)}function wa(t){var r={};t.registerClass=function(t){var e,n=t.type||t.prototype.type;return n&&(Tt(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e=n),'componentType "'+e+'" illegal'),(e=ya(t.prototype.type=n)).sub?e.sub!==fa&&(function(t){var e=r[t.main];e&&e[fa]||(e=r[t.main]={___EC__COMPONENT__CONTAINER___:!0});return e}(e)[e.sub]=t):r[e.main]=t),t},t.getClass=function(t,e,n){var i=r[t];if(i&&i[fa]&&(i=e?i[e]:null),n&&!i)throw new Error(e?"Component "+t+"."+(e||"")+" is used but not imported.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){var t=ya(t),n=[],t=r[t.main];return t&&t[fa]?nt(t,function(t,e){e!==fa&&n.push(t)}):n.push(t),n},t.hasClass=function(t){t=ya(t);return!!r[t.main]},t.getAllClassMainTypes=function(){var n=[];return nt(r,function(t,e){n.push(e)}),n},t.hasSubTypes=function(t){t=ya(t),t=r[t.main];return t&&t[fa]}}function Sa(a,s){for(var t=0;t<a.length;t++)a[t][1]||(a[t][1]=a[t][0]);return s=s||!1,function(t,e,n){for(var i={},r=0;r<a.length;r++){var o=a[r][1];e&&0<=k(e,o)||n&&k(n,o)<0||null!=(o=t.getShallow(o,s))&&(i[a[r][0]]=o)}return i}}var Ma=Sa([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Ta=(Ia.prototype.getAreaStyle=function(t,e){return Ma(this,t,e)},Ia);function Ia(){}var Ca=new fi(50);function ka(t,e,n,i,r){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:r},(i=Ca.get(t))?La(e=i.image)||i.pending.push(n):((e=Y.loadImage(t,Da,Da)).__zrImageSrc=t,Ca.put(t,e.__cachedImgObj={image:e,pending:[n]}))),e):t:e}function Da(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],i=n.cb;i&&i(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function La(t){return t&&t.width&&t.height}var Aa=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Pa(t,e,n,i,r,o){if(n){for(var a=(e+"").split("\n"),s=(o=Oa(n,i,r,o),!1),l={},u=0,h=a.length;u<h;u++)Ra(l,a[u],o),a[u]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}else t.text="",t.isTruncated=!1}function Oa(t,e,n,i){for(var r=P({},i=i||{}),o=(n=G(n,"..."),r.maxIterations=G(i.maxIterations,2),r.minChar=G(i.minChar,0)),e=r.fontMeasureInfo=Br(e),a=e.asciiCharWidth,s=(r.placeholder=G(i.placeholder,""),t=Math.max(0,t-1)),l=0;l<o&&a<=s;l++)s-=a;i=Hr(e,n);return s<i&&(n="",i=0),s=t-i,r.ellipsis=n,r.ellipsisWidth=i,r.contentWidth=s,r.containerWidth=t,r}function Ra(t,e,n){var i=n.containerWidth,r=n.contentWidth,o=n.fontMeasureInfo;if(i)if((l=Hr(o,e))<=i)t.textLine=e,t.isTruncated=!1;else{for(var a=0;;a++){if(l<=r||a>=n.maxIterations){e+=n.ellipsis;break}var s=0===a?function(t,e,n){for(var i=0,r=0,o=t.length;r<o&&i<e;r++)i+=Fr(n,t.charCodeAt(r));return r}(e,r,o):0<l?Math.floor(e.length*r/l):0,l=Hr(o,e=e.substr(0,s))}""===e&&(e=n.placeholder),t.textLine=e,t.isTruncated=!0}else t.textLine="",t.isTruncated=!1}var za=function(){},Na=function(t){this.tokens=[],t&&(this.tokens=t)},Ea=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function Ba(t,e,n,i,r){var o=new Ea,a=Xa(t);if(a){for(var s,t=e.padding,l=t?t[1]+t[3]:0,t=t?t[0]+t[2]:0,u=e.width,h=(null==u&&null!=n&&(u=n-l),e.height),n=(null==h&&null!=i&&(h=i-t),e.overflow),c="break"!==n&&"breakAll"!==n||null==u?null:{width:u,accumWidth:0,breakAll:"breakAll"===n},p=Aa.lastIndex=0;null!=(s=Aa.exec(a));){var d=s.index;p<d&&Va(o,a.substring(p,d),e,c),Va(o,s[2],e,c,s[1]),p=Aa.lastIndex}p<a.length&&Va(o,a.substring(p,a.length),e,c);var f,g=[],y=0,m=0,v="truncate"===n,_="truncate"===e.lineOverflow,x={};t:for(var b=0;b<o.lines.length;b++){for(var w=o.lines[b],S=0,M=0,T=0;T<w.tokens.length;T++){var I=(O=w.tokens[T]).styleName&&e.rich[O.styleName]||{},C=O.textPadding=I.padding,k=C?C[1]+C[3]:0,D=O.font=I.font||e.font,L=(O.contentHeight=Yr(D),G(I.height,O.contentHeight));if(O.innerHeight=L,C&&(L+=C[0]+C[2]),O.height=L,O.lineHeight=wt(I.lineHeight,e.lineHeight,L),O.align=I&&I.align||r,O.verticalAlign=I&&I.verticalAlign||"middle",_&&null!=h&&y+O.lineHeight>h){C=o.lines.length;0<T?(w.tokens=w.tokens.slice(0,T),z(w,M,S),o.lines=o.lines.slice(0,b+1)):o.lines=o.lines.slice(0,b),o.isTruncated=o.isTruncated||o.lines.length<C;break t}var A,C=I.width,P=null==C||"auto"===C;"string"==typeof C&&"%"===C.charAt(C.length-1)?(O.percentWidth=C,g.push(O),O.contentWidth=Hr(Br(D),O.text)):(P&&(C=(C=I.backgroundColor)&&C.image)&&(A=void 0,La(C="string"==typeof(f=C)?(A=Ca.get(f))&&A.image:f))&&(O.width=Math.max(O.width,C.width*L/C.height)),null!=(A=v&&null!=u?u-M:null)&&A<O.width?!P||A<k?(O.text="",O.width=O.contentWidth=0):(Pa(x,O.text,A-k,D,e.ellipsis,{minChar:e.truncateMinChar}),O.text=x.text,o.isTruncated=o.isTruncated||x.isTruncated,O.width=O.contentWidth=Hr(Br(D),O.text)):O.contentWidth=Hr(Br(D),O.text)),O.width+=k,M+=O.width,I&&(S=Math.max(S,O.lineHeight))}z(w,M,S)}o.outerWidth=o.width=G(u,m),o.outerHeight=o.height=G(h,y),o.contentHeight=y,o.contentWidth=m,o.outerWidth+=l,o.outerHeight+=t;for(b=0;b<g.length;b++){var O,R=(O=g[b]).percentWidth;O.width=parseInt(R,10)/100*o.width}}return o;function z(t,e,n){t.width=e,t.lineHeight=n,y+=n,m=Math.max(m,e)}}function Va(t,e,n,i,r){for(var o,a,s,l=""===e,u=r&&n.rich[r]||{},h=t.lines,t=u.font||n.font,c=!1,p=(i&&(n=(n=u.padding)?n[1]+n[3]:0,null!=u.width&&"auto"!==u.width?(s=Zr(u.width,i.width)+n,0<h.length&&s+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=s):(s=Ha(e,t,i.width,i.breakAll,i.accumWidth),i.accumWidth=s.accumWidth+n,a=s.linesWidths,o=s.lines)),o=o||e.split("\n"),Br(t)),d=0;d<o.length;d++){var f,g,y=o[d],m=new za;m.styleName=r,m.text=y,m.isLineHolder=!y&&!l,"number"==typeof u.width?m.width=u.width:m.width=a?a[d]:Hr(p,y),d||c?h.push(new Na([m])):1===(g=(f=(h[h.length-1]||(h[0]=new Na)).tokens).length)&&f[0].isLineHolder?f[0]=m:!y&&g&&!l||f.push(m)}}var Fa=lt(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Ha(t,e,n,i,r){for(var o,a=[],s=[],l="",u="",h=0,c=0,p=Br(e),d=0;d<t.length;d++){var f,g,y=t.charAt(d);"\n"===y?(u&&(l+=u,c+=h),a.push(l),s.push(c),u=l="",c=h=0):(f=Fr(p,y.charCodeAt(0)),g=!(i||(g=void 0,!(32<=(g=(g=o=y).charCodeAt(0))&&g<=591||880<=g&&g<=4351||4608<=g&&g<=5119||7680<=g&&g<=8303))||!!Fa[o]),(a.length?n<c+f:n<r+c+f)?c?(l||u)&&(c=g?(l||(l=u,u="",c=h=0),a.push(l),s.push(c-h),u+=y,l="",h+=f):(u&&(l+=u,u="",h=0),a.push(l),s.push(c),l=y,f)):g?(a.push(u),s.push(h),u=y,h=f):(a.push(y),s.push(f)):(c+=f,g?(u+=y,h+=f):(u&&(l+=u,u="",h=0),l+=y)))}return u&&(l+=u),l&&(a.push(l),s.push(c)),1===a.length&&(c+=r),{accumWidth:c,lines:a,linesWidths:s}}function Ga(t,e,n,i,r,o){var a,s;t.baseX=n,t.baseY=i,t.outerWidth=t.outerHeight=null,e&&(a=2*e.width,s=2*e.height,X.set(Wa,Ur(n,a,r),Xr(i,s,o),a,s),X.intersect(e,Wa,null,Ua),t.outerWidth=(n=Ua.outIntersectRect).width,t.outerHeight=n.height,t.baseX=Ur(n.x,n.width,r,!0),t.baseY=Xr(n.y,n.height,o,!0))}var Wa=new X(0,0,0,0),Ua={outIntersectRect:{},clamp:!0};function Xa(t){return null!=t?t+"":""}function Ya(t,e,n,i){e=new X(Ur(t.x||0,e,t.textAlign),Xr(t.y||0,n,t.textBaseline),e,n),n=null!=i?i:Za(t)?t.lineWidth:0;return 0<n&&(e.x-=n/2,e.y-=n/2,e.width+=n,e.height+=n),e}function Za(t){var e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth}var qa,ja="__zr_style_"+Math.round(10*Math.random()),Ka={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},$a={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},Qa=(Ka[ja]=!0,["z","z2","invisible"]),Ja=["invisible"],e=(u(i,qa=e),i.prototype._init=function(t){for(var e=ct(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):qa.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},i.prototype.beforeBrush=function(){},i.prototype.afterBrush=function(){},i.prototype.innerBeforeBrush=function(){},i.prototype.innerAfterBrush=function(){},i.prototype.shouldBePainted=function(t,e,n,i){var r=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&function(t,e,n){ts.copy(t.getBoundingRect()),t.transform&&ts.applyTransform(t.transform);return es.width=e,es.height=n,!ts.intersect(es)}(this,t,e)||r&&!r[0]&&!r[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length)for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1;if(i&&this.parent)for(var a=this.parent;a;){if(a.ignore)return!1;a=a.parent}return!0},i.prototype.contain=function(t,e){return this.rectContain(t,e)},i.prototype.traverse=function(t,e){t.call(e,this)},i.prototype.rectContain=function(t,e){t=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(t[0],t[1])},i.prototype.getPaintRect=function(){var t,e,n,i,r,o=this._paintRect;return this._paintRect&&!this.__dirty||(r=this.transform,t=this.getBoundingRect(),e=(i=this.style).shadowBlur||0,n=i.shadowOffsetX||0,i=i.shadowOffsetY||0,o=this._paintRect||(this._paintRect=new X(0,0,0,0)),r?X.applyTransform(o,t,r):o.copy(t),(e||n||i)&&(o.width+=2*e+Math.abs(n),o.height+=2*e+Math.abs(i),o.x=Math.min(o.x,o.x+n-e),o.y=Math.min(o.y,o.y+i-e)),r=this.dirtyRectTolerance,o.isZero())||(o.x=Math.floor(o.x-r),o.y=Math.floor(o.y-r),o.width=Math.ceil(o.width+1+2*r),o.height=Math.ceil(o.height+1+2*r)),o},i.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new X(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},i.prototype.getPrevPaintRect=function(){return this._prevPaintRect},i.prototype.animateStyle=function(t){return this.animate("style",t)},i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},i.prototype.attrKV=function(t,e){"style"!==t?qa.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},i.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:P(this.style,t),this.dirtyStyle(),this},i.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},i.prototype.dirty=function(){this.dirtyStyle()},i.prototype.styleChanged=function(){return!!(2&this.__dirty)},i.prototype.styleUpdated=function(){this.__dirty&=-3},i.prototype.createStyle=function(t){return Nt(Ka,t)},i.prototype.useStyle=function(t){t[ja]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},i.prototype.isStyleObject=function(t){return t[ja]},i.prototype._innerSaveToNormal=function(t){qa.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,Qa)},i.prototype._applyStateObj=function(t,e,n,i,r,o){qa.prototype._applyStateObj.call(this,t,e,n,i,r,o);var a,s=!(e&&i);if(e&&e.style?r?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(r){var l=this.style;if(this.style=this.createStyle(s?{}:l),s)for(var u=ct(l),h=0;h<u.length;h++)(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=ct(a),h=0;h<c.length;h++){var p=c[h];this.style[p]=this.style[p]}this._transitionState(t,{style:a},o,this.getAnimationStyleProps())}else this.useStyle(a);for(var d=this.__inHover?Ja:Qa,h=0;h<d.length;h++){p=d[h];e&&null!=e[p]?this[p]=e[p]:s&&null!=n[p]&&(this[p]=n[p])}},i.prototype._mergeStates=function(t){for(var e,n=qa.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var r=t[i];r.style&&this._mergeStyle(e=e||{},r.style)}return e&&(n.style=e),n},i.prototype._mergeStyle=function(t,e){return P(t,e),t},i.prototype.getAnimationStyleProps=function(){return $a},i.initDefaultProps=((e=i.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=!1,e._rect=null,e.dirtyRectTolerance=0,void(e.__dirty=2|An)),i);function i(t){return qa.call(this,t)||this}var ts=new X(0,0,0,0),es=new X(0,0,0,0);var ns=Math.min,is=Math.max,rs=Math.sin,os=Math.cos,as=2*Math.PI,ss=Wt(),ls=Wt(),us=Wt();function hs(t,e,n,i,r,o){r[0]=ns(t,n),r[1]=ns(e,i),o[0]=is(t,n),o[1]=is(e,i)}var cs=[],ps=[];var ds={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},fs=[],gs=[],ys=[],ms=[],vs=[],_s=[],xs=Math.min,bs=Math.max,ws=Math.cos,Ss=Math.sin,Ms=Math.abs,Ts=Math.PI,Is=2*Ts,Cs="undefined"!=typeof Float32Array,ks=[];function Ds(t){return Math.round(t/Ts*1e8)/1e8%2*Ts}function Ls(t,e){var n=Ds(t[0]),i=(n<0&&(n+=Is),n-t[0]),r=t[1];r+=i,!e&&Is<=r-n?r=n+Is:e&&Is<=n-r?r=n-Is:!e&&r<n?r=n+(Is-Ds(n-r)):e&&n<r&&(r=n-(Is-Ds(r-n))),t[0]=n,t[1]=r}r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=Ms(n/Mr/t)||0,this._uy=Ms(n/Mr/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(ds.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var n=Ms(t-this._xi),i=Ms(e-this._yi),r=n>this._ux||i>this._uy;return this.addData(ds.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r?(this._xi=t,this._yi=e,this._pendingPtDist=0):(r=n*n+i*i)>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=r),this},r.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(ds.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(ds.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},r.prototype.arc=function(t,e,n,i,r,o){return this._drawPendingPt(),ks[0]=i,ks[1]=r,Ls(ks,o),this.addData(ds.A,t,e,n,n,i=ks[0],(r=ks[1])-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=ws(r)*n+t,this._yi=Ss(r)*n+e,this},r.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},r.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(ds.R,t,e,n,i),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(ds.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;this.data&&this.data.length===e||!Cs||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},r.prototype.appendPath=function(t){if(this._saveData){for(var e=(t=t instanceof Array?t:[t]).length,n=0,i=this._len,r=0;r<e;r++)n+=t[r].len();var o=this.data;if(Cs&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(i+n),0<i)&&o)for(var a=0;a<i;a++)this.data[a]=o[a];for(r=0;r<e;r++)for(var s=t[r].data,a=0;a<s.length;a++)this.data[i++]=s[a];this._len=i}},r.prototype.addData=function(t,e,n,i,r,o,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]}},r.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,Cs)&&11<this._len&&(this.data=new Float32Array(t))},r.prototype.getBoundingRect=function(){ys[0]=ys[1]=vs[0]=vs[1]=Number.MAX_VALUE,ms[0]=ms[1]=_s[0]=_s[1]=-Number.MAX_VALUE;for(var t,e=this.data,n=0,i=0,r=0,o=0,a=0;a<this._len;){var N=e[a++],E=1===a;switch(E&&(r=n=e[a],o=i=e[a+1]),N){case ds.M:n=r=e[a++],i=o=e[a++],vs[0]=r,vs[1]=o,_s[0]=r,_s[1]=o;break;case ds.L:hs(n,i,e[a],e[a+1],vs,_s),n=e[a++],i=e[a++];break;case ds.C:G=H=m=y=F=g=f=d=p=c=V=B=h=u=l=s=void 0;var s=n,l=i,u=e[a++],h=e[a++],B=e[a++],V=e[a++],c=e[a],p=e[a+1],d=vs,f=_s,g=Jn,F=Kn,y=g(s,u,B,c,cs);d[0]=1/0,d[1]=1/0,f[0]=-1/0,f[1]=-1/0;for(var m=0;m<y;m++){var H=F(s,u,B,c,cs[m]);d[0]=ns(H,d[0]),f[0]=is(H,f[0])}for(y=g(l,h,V,p,ps),m=0;m<y;m++){var G=F(l,h,V,p,ps[m]);d[1]=ns(G,d[1]),f[1]=is(G,f[1])}d[0]=ns(s,d[0]),f[0]=is(s,f[0]),d[0]=ns(c,d[0]),f[0]=is(c,f[0]),d[1]=ns(l,d[1]),f[1]=is(l,f[1]),d[1]=ns(p,d[1]),f[1]=is(p,f[1]),n=e[a++],i=e[a++];break;case ds.Q:g=n,P=i,M=e[a++],x=e[a++],S=e[a],v=e[a+1],w=vs,T=_s,t=b=t=_=void 0,_=ni,t=is(ns((b=ri)(g,M,S),1),0),b=is(ns(b(P,x,v),1),0),M=_(g,M,S,t),t=_(P,x,v,b),w[0]=ns(g,S,M),w[1]=ns(P,v,t),T[0]=is(g,S,M),T[1]=is(P,v,t),n=e[a++],i=e[a++];break;case ds.A:var v,_=e[a++],x=e[a++],b=e[a++],w=e[a++],S=e[a++],M=e[a++]+S,T=(a+=1,!e[a++]),I=(E&&(r=ws(S)*b+_,o=Ss(S)*w+x),z=v=U=W=R=O=P=A=L=D=k=C=I=void 0,_),C=x,k=b,D=w,L=S,A=M,P=T,O=vs,R=_s,W=re,U=oe;if((v=Math.abs(L-A))%as<1e-4&&1e-4<v)O[0]=I-k,O[1]=C-D,R[0]=I+k,R[1]=C+D;else{ss[0]=os(L)*k+I,ss[1]=rs(L)*D+C,ls[0]=os(A)*k+I,ls[1]=rs(A)*D+C,W(O,ss,ls),U(R,ss,ls),(L%=as)<0&&(L+=as),(A%=as)<0&&(A+=as),A<L&&!P?A+=as:L<A&&P&&(L+=as),P&&(v=A,A=L,L=v);for(var z=0;z<A;z+=Math.PI/2)L<z&&(us[0]=os(z)*k+I,us[1]=rs(z)*D+C,W(O,us,O),U(R,us,R))}n=ws(M)*b+_,i=Ss(M)*w+x;break;case ds.R:hs(r=n=e[a++],o=i=e[a++],r+e[a++],o+e[a++],vs,_s);break;case ds.Z:n=r,i=o}re(ys,ys,vs),oe(ms,ms,_s)}return 0===a&&(ys[0]=ys[1]=ms[0]=ms[1]=0),new X(ys[0],ys[1],ms[0]-ys[0],ms[1]-ys[1])},r.prototype._calculateLength=function(){for(var t=this.data,e=this._len,n=this._ux,i=this._uy,r=0,o=0,a=0,s=0,l=(this._pathSegLen||(this._pathSegLen=[]),this._pathSegLen),u=0,h=0,c=0;c<e;){var p=t[c++],d=1===c,f=(d&&(a=r=t[c],s=o=t[c+1]),-1);switch(p){case ds.M:r=a=t[c++],o=s=t[c++];break;case ds.L:var g=t[c++],y=(_=t[c++])-o;(Ms(C=g-r)>n||Ms(y)>i||c===e-1)&&(f=Math.sqrt(C*C+y*y),r=g,o=_);break;case ds.C:var m=t[c++],v=t[c++],g=t[c++],_=t[c++],x=t[c++],b=t[c++],f=function(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Kn(t,n,r,a,f),f=Kn(e,i,o,s,f),y=g-u,m=f-h;c+=Math.sqrt(y*y+m*m),u=g,h=f}return c}(r,o,m,v,g,_,x,b,10),r=x,o=b;break;case ds.Q:f=function(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=ni(t,n,r,p),p=ni(e,i,o,p),f=d-s,g=p-l;u+=Math.sqrt(f*f+g*g),s=d,l=p}return u}(r,o,m=t[c++],v=t[c++],g=t[c++],_=t[c++],10),r=g,o=_;break;case ds.A:var x=t[c++],b=t[c++],w=t[c++],S=t[c++],M=t[c++],T=t[c++],I=T+M;c+=1,d&&(a=ws(M)*w+x,s=Ss(M)*S+b),f=bs(w,S)*xs(Is,Math.abs(T)),r=ws(I)*w+x,o=Ss(I)*S+b;break;case ds.R:a=r=t[c++],s=o=t[c++];f=2*t[c++]+2*t[c++];break;case ds.Z:var C=a-r,y=s-o;f=Math.sqrt(C*C+y*y),r=a,o=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},r.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h=this.data,N=this._ux,E=this._uy,B=this._len,c=e<1,p=0,d=0,f=0;if(!c||(this._pathSegLen||this._calculateLength(),a=this._pathSegLen,s=e*this._pathLen))t:for(var g=0;g<B;){var y=h[g++],V=1===g;switch(V&&(n=r=h[g],i=o=h[g+1]),y!==ds.L&&0<f&&(t.lineTo(l,u),f=0),y){case ds.M:n=r=h[g++],i=o=h[g++],t.moveTo(r,o);break;case ds.L:var m=h[g++],v=h[g++],_=Ms(m-r),x=Ms(v-o);if(N<_||E<x){if(c){if(s<p+(z=a[d++])){var b=(s-p)/z;t.lineTo(r*(1-b)+m*b,o*(1-b)+v*b);break t}p+=z}t.lineTo(m,v),r=m,o=v,f=0}else{_=_*_+x*x;f<_&&(l=m,u=v,f=_)}break;case ds.C:var w=h[g++],S=h[g++],M=h[g++],T=h[g++],x=h[g++],_=h[g++];if(c){if(s<p+(z=a[d++])){ti(r,w,M,x,b=(s-p)/z,fs),ti(o,S,T,_,b,gs),t.bezierCurveTo(fs[1],gs[1],fs[2],gs[2],fs[3],gs[3]);break t}p+=z}t.bezierCurveTo(w,S,M,T,x,_),r=x,o=_;break;case ds.Q:w=h[g++],S=h[g++],M=h[g++],T=h[g++];if(c){if(s<p+(z=a[d++])){oi(r,w,M,b=(s-p)/z,fs),oi(o,S,T,b,gs),t.quadraticCurveTo(fs[1],gs[1],fs[2],gs[2]);break t}p+=z}t.quadraticCurveTo(w,S,M,T),r=M,o=T;break;case ds.A:var I=h[g++],C=h[g++],k=h[g++],D=h[g++],L=h[g++],A=h[g++],P=h[g++],F=!h[g++],H=D<k?k:D,O=.001<Ms(k-D),R=L+A,G=!1;if(c&&(s<p+(z=a[d++])&&(R=L+A*(s-p)/z,G=!0),p+=z),O&&t.ellipse?t.ellipse(I,C,k,D,P,L,R,F):t.arc(I,C,H,L,R,F),G)break t;V&&(n=ws(L)*k+I,i=Ss(L)*D+C),r=ws(R)*k+I,o=Ss(R)*D+C;break;case ds.R:n=r=h[g],i=o=h[g+1],m=h[g++],v=h[g++];var z,A=h[g++],O=h[g++];if(c){if(s<p+(z=a[d++])){P=s-p;t.moveTo(m,v),t.lineTo(m+xs(P,A),v),0<(P-=A)&&t.lineTo(m+A,v+xs(P,O)),0<(P-=O)&&t.lineTo(m+bs(A-P,0),v+O),0<(P-=A)&&t.lineTo(m,v+bs(O-P,0));break t}p+=z}t.rect(m,v,A,O);break;case ds.Z:if(c){if(s<p+(z=a[d++])){b=(s-p)/z;t.lineTo(r*(1-b)+n*b,o*(1-b)+i*b);break t}p+=z}t.closePath(),r=n,o=i}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=ds,r.initDefaultProps=((Ul=r.prototype)._saveData=!0,Ul._ux=0,Ul._uy=0,Ul._pendingPtDist=0,void(Ul._version=0));var As=r;function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}function Ps(t,e,n,i,r,o,a){var s;if(0!==r)return s=0,!(e+(r=r)<a&&i+r<a||a<e-r&&a<i-r||t+r<o&&n+r<o||o<t-r&&o<n-r)&&(t===n?Math.abs(o-t)<=r/2:(o=(s=(e-i)/(t-n))*o-a+(t*i-n*e)/(t-n))*o/(s*s+1)<=r/2*r/2)}var Os=2*Math.PI;function Rs(t){return(t%=Os)<0&&(t+=Os),t}var zs=2*Math.PI;function Ns(t,e,n,i,r,o){return e<o&&i<o||o<e&&o<i||i===e?0:(n=(o=(o-e)/(i-e))*(n-t)+t)===r?1/0:r<n?1!=o&&0!=o?i<e?1:-1:i<e?.5:-.5:0}var Es=As.CMD,Bs=2*Math.PI,Vs=1e-4;var Fs=[-1,-1,-1],Hs=[-1,-1];function Gs(t,e,n,i,r,o,a,s,l,u){if(e<u&&i<u&&o<u&&s<u||u<e&&u<i&&u<o&&u<s)return 0;var h=Qn(e,i,o,s,u,Fs);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=Fs[y],v=0===m||1===m?.5:1;Kn(t,n,r,a,m)<l||(d<0&&(d=Jn(e,i,o,s,Hs),Hs[1]<Hs[0]&&1<d&&(c=void 0,c=Hs[0],Hs[0]=Hs[1],Hs[1]=c),f=Kn(e,i,o,s,Hs[0]),1<d)&&(g=Kn(e,i,o,s,Hs[1])),2===d?m<Hs[0]?p+=f<e?v:-v:m<Hs[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<Hs[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function Ws(t,e,n,i,r,o,a,s){if(e<s&&i<s&&o<s||s<e&&s<i&&s<o)return 0;c=Fs,h=(l=e)-2*(u=i)+(h=o),u=2*(u-l),l-=s=s,s=0,qn(h)?jn(u)&&0<=(p=-l/u)&&p<=1&&(c[s++]=p):qn(l=u*u-4*h*l)?0<=(p=-u/(2*h))&&p<=1&&(c[s++]=p):0<l&&(d=(-u-(l=Hn(l)))/(2*h),0<=(p=(-u+l)/(2*h))&&p<=1&&(c[s++]=p),0<=d)&&d<=1&&(c[s++]=d);var l,u,h,c,p,d,f=s;if(0===f)return 0;var g=ri(e,i,o);if(0<=g&&g<=1){for(var y=0,m=ni(e,i,o,g),v=0;v<f;v++){var _=0===Fs[v]||1===Fs[v]?.5:1;ni(t,n,r,Fs[v])<a||(Fs[v]<g?y+=m<e?_:-_:y+=o<m?_:-_)}return y}return _=0===Fs[0]||1===Fs[0]?.5:1,ni(t,n,r,Fs[0])<a?0:o<e?_:-_}function Us(t,e,n,i,r){for(var o,a=t.data,s=t.len(),l=0,u=0,h=0,c=0,p=0,d=0;d<s;){var f=a[d++],g=1===d;switch(f===Es.M&&1<d&&(n||(l+=Ns(u,h,c,p,i,r))),g&&(c=u=a[d],p=h=a[d+1]),f){case Es.M:u=c=a[d++],h=p=a[d++];break;case Es.L:if(n){if(Ps(u,h,a[d],a[d+1],e,i,r))return!0}else l+=Ns(u,h,a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case Es.C:if(n){if(function(t,e,n,i,r,o,a,s,l,u,h){if(0!==l)return!(e+(l=l)<h&&i+l<h&&o+l<h&&s+l<h||h<e-l&&h<i-l&&h<o-l&&h<s-l||t+l<u&&n+l<u&&r+l<u&&a+l<u||u<t-l&&u<n-l&&u<r-l&&u<a-l)&&ei(t,e,n,i,r,o,a,s,u,h,null)<=l/2}(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],e,i,r))return!0}else l+=Gs(u,h,a[d++],a[d++],a[d++],a[d++],a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case Es.Q:if(n){if(function(t,e,n,i,r,o,a,s,l){if(0!==a)return!(e+(a=a)<l&&i+a<l&&o+a<l||l<e-a&&l<i-a&&l<o-a||t+a<s&&n+a<s&&r+a<s||s<t-a&&s<n-a&&s<r-a)&&ai(t,e,n,i,r,o,s,l,null)<=a/2}(u,h,a[d++],a[d++],a[d],a[d+1],e,i,r))return!0}else l+=Ws(u,h,a[d++],a[d++],a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case Es.A:var y=a[d++],m=a[d++],v=a[d++],_=a[d++],x=a[d++],b=a[d++],w=(d+=1,!!(1-a[d++])),S=Math.cos(x)*v+y,M=Math.sin(x)*_+m,T=(g?(c=S,p=M):l+=Ns(u,h,S,M,i,r),(i-y)*_/v+y);if(n){if(function(t,e,n,i,r,o,a,s,l){if(0!==a)return a=a,s-=t,l-=e,!(n<(t=Math.sqrt(s*s+l*l))-a||t+a<n)&&(Math.abs(i-r)%zs<1e-4||((r=o?(e=i,i=Rs(r),Rs(e)):(i=Rs(i),Rs(r)))<i&&(r+=zs),(t=Math.atan2(l,s))<0&&(t+=zs),i<=t&&t<=r)||i<=t+zs&&t+zs<=r)}(y,m,_,x,x+b,w,e,T,r))return!0}else l+=function(t,e,n,i,r,o,a,s){if(n<(s-=e)||s<-n)return 0;var e=Math.sqrt(n*n-s*s);if(Fs[0]=-e,Fs[1]=e,(n=Math.abs(i-r))<1e-4)return 0;if(Bs-1e-4<=n)return r=Bs,h=o?1:-1,a>=Fs[i=0]+t&&a<=Fs[1]+t?h:0;r<i&&(e=i,i=r,r=e),i<0&&(i+=Bs,r+=Bs);for(var l=0,u=0;u<2;u++){var h,c=Fs[u];a<c+t&&(h=o?1:-1,i<=(c=(c=Math.atan2(s,c))<0?Bs+c:c)&&c<=r||i<=c+Bs&&c+Bs<=r)&&(l+=h=c>Math.PI/2&&c<1.5*Math.PI?-h:h)}return l}(y,m,_,x,x+b,w,T,r);u=Math.cos(x+b)*v+y,h=Math.sin(x+b)*_+m;break;case Es.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(Ps(c,p,S,p,e,i,r)||Ps(S,p,S,M,e,i,r)||Ps(S,M,c,M,e,i,r)||Ps(c,M,c,p,e,i,r))return!0}else l=(l+=Ns(S,p,S,M,i,r))+Ns(c,M,c,p,i,r);break;case Es.Z:if(n){if(Ps(u,h,c,p,e,i,r))return!0}else l+=Ns(u,h,c,p,i,r);u=c,h=p}}return n||(t=h,o=p,Math.abs(t-o)<Vs)||(l+=Ns(u,h,c,p,i,r)||0),0!==l}var Xs,Ys=E({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Ka),Zs={style:E({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},$a.style)},qs=Nr.concat(["invisible","culling","z","z2","zlevel","parent"]),js=(u(a,Xs=e),a.prototype.update=function(){var e=this,t=(Xs.prototype.update.call(this),this.style);if(t.decal){var n,i=this._decalEl=this._decalEl||new a,r=(i.buildPath===a.prototype.buildPath&&(i.buildPath=function(t){e.buildPath(t,e.shape)}),i.silent=!0,i.style);for(n in t)r[n]!==t[n]&&(r[n]=t[n]);r.fill=t.fill?t.decal:null,r.decal=null,r.shadowColor=null,t.strokeFirst&&(r.stroke=null);for(var o=0;o<qs.length;++o)i[qs[o]]=this[qs[o]];i.__dirty|=An}else this._decalEl&&(this._decalEl=null)},a.prototype.getDecalElement=function(){return this._decalEl},a.prototype._init=function(t){var e=ct(t),n=(this.shape=this.getDefaultShape(),this.getDefaultStyle());n&&this.useStyle(n);for(var i=0;i<e.length;i++){var r=e[i],o=t[r];"style"===r?this.style?P(this.style,o):this.useStyle(o):"shape"===r?P(this.shape,o):Xs.prototype.attrKV.call(this,r,o)}this.style||this.useStyle({})},a.prototype.getDefaultStyle=function(){return null},a.prototype.getDefaultShape=function(){return{}},a.prototype.canBeInsideText=function(){return this.hasFill()},a.prototype.getInsideTextFill=function(){var t,e=this.style.fill;if("none"!==e){if(F(e))return.5<(t=Ei(e,0))?Tr:.2<t?"#eee":Ir;if(e)return Ir}return Tr},a.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(F(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Ei(t,0)<.4)return e}},a.prototype.buildPath=function(t,e,n){},a.prototype.pathUpdated=function(){this.__dirty&=~Pn},a.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},a.prototype.createPathProxy=function(){this.path=new As(!1)},a.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))},a.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},a.prototype.getBoundingRect=function(){var t,e,n=this._rect,i=this.style,r=!n;return r&&(t=!1,this.path||(t=!0,this.createPathProxy()),e=this.path,(t||this.__dirty&Pn)&&(e.beginPath(),this.buildPath(e,this.shape,!1),this.pathUpdated()),n=e.getBoundingRect()),this._rect=n,this.hasStroke()&&this.path&&0<this.path.len()?(t=this._rectStroke||(this._rectStroke=n.clone()),(this.__dirty||r)&&(t.copy(n),e=i.strokeNoScale?this.getLineScale():1,r=i.lineWidth,this.hasFill()||(i=this.strokeContainThreshold,r=Math.max(r,null==i?4:i)),1e-10<e)&&(t.width+=r/e,t.height+=r/e,t.x-=r/e/2,t.y-=r/e/2),t):n},a.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){n=this.path;if(this.hasStroke()){i=r.lineWidth,r=r.strokeNoScale?this.getLineScale():1;if(1e-10<r&&(this.hasFill()||(i=Math.max(i,this.strokeContainThreshold)),Us(n,i/r,!0,t,e)))return!0}if(this.hasFill())return Us(n,0,!1,t,e)}return!1},a.prototype.dirtyShape=function(){this.__dirty|=Pn,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},a.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},a.prototype.animateShape=function(t){return this.animate("shape",t)},a.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},a.prototype.attrKV=function(t,e){"shape"===t?this.setShape(e):Xs.prototype.attrKV.call(this,t,e)},a.prototype.setShape=function(t,e){var n=(n=this.shape)||(this.shape={});return"string"==typeof t?n[t]=e:P(n,t),this.dirtyShape(),this},a.prototype.shapeChanged=function(){return!!(this.__dirty&Pn)},a.prototype.createStyle=function(t){return Nt(Ys,t)},a.prototype._innerSaveToNormal=function(t){Xs.prototype._innerSaveToNormal.call(this,t);var e=this._normalState;t.shape&&!e.shape&&(e.shape=P({},this.shape))},a.prototype._applyStateObj=function(t,e,n,i,r,o){Xs.prototype._applyStateObj.call(this,t,e,n,i,r,o);var a,s=!(e&&i);if(e&&e.shape?r?i?a=e.shape:(a=P({},n.shape),P(a,e.shape)):(a=P({},(i?this:n).shape),P(a,e.shape)):s&&(a=n.shape),a)if(r){this.shape=P({},this.shape);for(var l={},u=ct(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},o)}else this.shape=a,this.dirtyShape()},a.prototype._mergeStates=function(t){for(var e,n=Xs.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var r=t[i];r.shape&&this._mergeStyle(e=e||{},r.shape)}return e&&(n.shape=e),n},a.prototype.getAnimationStyleProps=function(){return Zs},a.prototype.isZeroArea=function(){return!1},a.extend=function(n){u(r,i=a),r.prototype.getDefaultStyle=function(){return y(n.style)},r.prototype.getDefaultShape=function(){return y(n.shape)};var i,t,e=r;function r(t){var e=i.call(this,t)||this;return n.init&&n.init.call(e,t),e}for(t in n)"function"==typeof n[t]&&(e.prototype[t]=n[t]);return e},a.initDefaultProps=((Ul=a.prototype).type="path",Ul.strokeContainThreshold=5,Ul.segmentIgnoreThreshold=0,Ul.subPixelOptimize=!1,Ul.autoBatch=!1,void(Ul.__dirty=2|An|Pn)),a);function a(t){return Xs.call(this,t)||this}var Ks,$s=E({strokeFirst:!0,font:j,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Ys),Qs=(u(Js,Ks=e),Js.prototype.hasStroke=function(){return Za(this.style)},Js.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Js.prototype.createStyle=function(t){return Nt($s,t)},Js.prototype.setBoundingRect=function(t){this._rect=t},Js.prototype.getBoundingRect=function(){var t,e,n;return this._rect||(this._rect=(t=this.style,e=Xa(t.text),n=t.font,Ya(t,Hr(Br(n),e),Yr(n),null))),this._rect},Js.initDefaultProps=void(Js.prototype.dirtyRectTolerance=10),Js);function Js(){return null!==Ks&&Ks.apply(this,arguments)||this}Qs.prototype.type="tspan";var tl=E({x:0,y:0},Ka),el={style:E({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},$a.style)};u(rl,nl=e),rl.prototype.createStyle=function(t){return Nt(tl,t)},rl.prototype._getSize=function(t){var e,n=this.style,i=n[t];return null!=i?i:(i=(i=n.image)&&"string"!=typeof i&&i.width&&i.height?n.image:this.__image)?null==(e=n[n="width"===t?"height":"width"])?i[t]:i[t]/i[n]*e:0},rl.prototype.getWidth=function(){return this._getSize("width")},rl.prototype.getHeight=function(){return this._getSize("height")},rl.prototype.getAnimationStyleProps=function(){return el},rl.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new X(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var nl,il=rl;function rl(){return null!==nl&&nl.apply(this,arguments)||this}il.prototype.type="image";var ol=Math.round;function al(t,e,n){var i,r,o;if(e)return i=e.x1,r=e.x2,o=e.y1,e=e.y2,t.x1=i,t.x2=r,t.y1=o,t.y2=e,(n=n&&n.lineWidth)&&(ol(2*i)===ol(2*r)&&(t.x1=t.x2=ll(i,n,!0)),ol(2*o)===ol(2*e))&&(t.y1=t.y2=ll(o,n,!0)),t}function sl(t,e,n){var i,r,o;if(e)return i=e.x,r=e.y,o=e.width,e=e.height,t.x=i,t.y=r,t.width=o,t.height=e,(n=n&&n.lineWidth)&&(t.x=ll(i,n,!0),t.y=ll(r,n,!0),t.width=Math.max(ll(i+o,n,!1)-t.x,0===o?0:1),t.height=Math.max(ll(r+e,n,!1)-t.y,0===e?0:1)),t}function ll(t,e,n){var i;return e?((i=ol(2*t))+ol(e))%2==0?i/2:(i+(n?1:-1))/2:t}var ul,hl=function(){this.x=0,this.y=0,this.width=0,this.height=0},cl={},pl=(u(dl,ul=js),dl.prototype.getDefaultShape=function(){return new hl},dl.prototype.buildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g;this.subPixelOptimize?(n=(a=sl(cl,e,this.style)).x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a):(n=e.x,i=e.y,r=e.width,o=e.height),e.r?(a=t,p=(e=e).x,d=e.y,f=e.width,g=e.height,e=e.r,f<0&&(p+=f,f=-f),g<0&&(d+=g,g=-g),"number"==typeof e?s=l=u=h=e:e instanceof Array?1===e.length?s=l=u=h=e[0]:2===e.length?(s=u=e[0],l=h=e[1]):3===e.length?(s=e[0],l=h=e[1],u=e[2]):(s=e[0],l=e[1],u=e[2],h=e[3]):s=l=u=h=0,f<s+l&&(s*=f/(c=s+l),l*=f/c),f<u+h&&(u*=f/(c=u+h),h*=f/c),g<l+u&&(l*=g/(c=l+u),u*=g/c),g<s+h&&(s*=g/(c=s+h),h*=g/c),a.moveTo(p+s,d),a.lineTo(p+f-l,d),0!==l&&a.arc(p+f-l,d+l,l,-Math.PI/2,0),a.lineTo(p+f,d+g-u),0!==u&&a.arc(p+f-u,d+g-u,u,0,Math.PI/2),a.lineTo(p+h,d+g),0!==h&&a.arc(p+h,d+g-h,h,Math.PI/2,Math.PI),a.lineTo(p,d+s),0!==s&&a.arc(p+s,d+s,s,Math.PI,1.5*Math.PI)):t.rect(n,i,r,o)},dl.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},dl);function dl(t){return ul.call(this,t)||this}pl.prototype.type="rect";var fl,gl={fill:"#000"},yl={},ml={style:E({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},$a.style)},vl=(u(_l,fl=e),_l.prototype.childrenRef=function(){return this._children},_l.prototype.update=function(){fl.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var e=this._children[t];e.zlevel=this.zlevel,e.z=this.z,e.z2=this.z2,e.culling=this.culling,e.cursor=this.cursor,e.invisible=this.invisible}},_l.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):fl.prototype.updateTransform.call(this)},_l.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):fl.prototype.getLocalTransform.call(this,t)},_l.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),fl.prototype.getComputedTransform.call(this)},_l.prototype._updateSubTexts=function(){var t;this._childCursor=0,Ml(t=this.style),nt(t.rich,Ml),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},_l.prototype.addSelfToZr=function(t){fl.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},_l.prototype.removeSelfFromZr=function(t){fl.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},_l.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new X(0,0,0,0),e=this._children,n=[],i=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),o=o.getLocalTransform(n);o?(t.copy(a),t.applyTransform(o),(i=i||t.clone()).union(t)):(i=i||a.clone()).union(a)}this._rect=i||t}return this._rect},_l.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||gl},_l.prototype.setTextContent=function(t){},_l.prototype._mergeStyle=function(t,e){var n,i;return e&&(n=e.rich,i=t.rich||n&&{},P(t,e),n&&i?(this._mergeRich(i,n),t.rich=i):i&&(t.rich=i)),t},_l.prototype._mergeRich=function(t,e){for(var n=ct(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},P(t[r],e[r])}},_l.prototype.getAnimationStyleProps=function(){return ml},_l.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},_l.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||j,n=t.padding,i=this._defaultStyle,r=t.x||0,o=t.y||0,a=t.align||i.align||"left",s=t.verticalAlign||i.verticalAlign||"top";Ga(yl,i.overflowRect,r,o,a,s);for(var l,r=yl.baseX,o=yl.baseY,u=function(t,e,n,i){var r,t=Xa(t),o=e.overflow,a=(s=e.padding)?s[1]+s[3]:0,s=s?s[0]+s[2]:0,l=e.font,u="truncate"===o,h=Yr(l),c=G(e.lineHeight,h),p="truncate"===e.lineOverflow,d=!1,f=e.width,g=e.height,i=(null==g&&null!=i&&(g=i-s),(r=null==(f=null==f&&null!=n?n-a:f)||"break"!==o&&"breakAll"!==o?t?t.split("\n"):[]:t?Ha(t,e.font,f,"breakAll"===o,0).lines:[]).length*c);if((g=null==g?i:g)<i&&p&&(n=Math.floor(g/c),d=d||r.length>n,i=(r=r.slice(0,n)).length*c),t&&u&&null!=f)for(var y=Oa(f,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},v=0;v<r.length;v++)Ra(m,r[v],y),r[v]=m.textLine,d=d||m.isTruncated;for(var o=g,_=0,x=Br(l),v=0;v<r.length;v++)_=Math.max(Hr(x,r[v]),_);return p=f=null==f?_:f,{lines:r,height:g,outerWidth:p+=a,outerHeight:o+=s,lineHeight:c,calculatedLineHeight:h,contentWidth:_,contentHeight:i,width:f,isTruncated:d}}(kl(t),t,yl.outerWidth,yl.outerHeight),h=Dl(t),c=!!t.backgroundColor,p=u.outerHeight,d=u.outerWidth,f=u.lines,g=u.lineHeight,y=(this.isTruncated=!!u.isTruncated,r),m=Xr(o,u.contentHeight,s),v=((h||n)&&(l=Ur(r,d,a),o=Xr(o,p,s),h)&&this._renderBackground(t,t,l,o,d,p),m+=g/2,n&&(y=Cl(r,a,n),"top"===s?m+=n[0]:"bottom"===s&&(m-=n[2])),0),_=!1,h=!1,x=(Il(("fill"in t?t:(h=!0,i)).fill)),b=(Tl("stroke"in t?t.stroke:c||i.autoStroke&&!h?null:(v=2,_=!0,i.stroke))),w=0<t.textShadowBlur,S=0;S<f.length;S++){var M=this._getOrCreateChild(Qs),T=M.createStyle();M.useStyle(T),T.text=f[S],T.x=y,T.y=m,a&&(T.textAlign=a),T.textBaseline="middle",T.opacity=t.opacity,T.strokeFirst=!0,w&&(T.shadowBlur=t.textShadowBlur||0,T.shadowColor=t.textShadowColor||"transparent",T.shadowOffsetX=t.textShadowOffsetX||0,T.shadowOffsetY=t.textShadowOffsetY||0),T.stroke=b,T.fill=x,b&&(T.lineWidth=t.lineWidth||v,T.lineDash=t.lineDash,T.lineDashOffset=t.lineDashOffset||0),T.font=e,Sl(T,t),m+=g,M.setBoundingRect(Ya(T,u.contentWidth,u.calculatedLineHeight,_?0:null))}},_l.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,n=t.align||e.align,i=t.verticalAlign||e.verticalAlign,r=t.x||0,o=t.y||0;Ga(yl,e.overflowRect,r,o,n,i);for(var r=yl.baseX,o=yl.baseY,a=Ba(kl(t),t,yl.outerWidth,yl.outerHeight,n),s=a.width,e=a.outerWidth,l=a.outerHeight,u=t.padding,r=(this.isTruncated=!!a.isTruncated,Ur(r,e,n)),n=Xr(o,l,i),h=r,c=n,p=(u&&(h+=u[3],c+=u[0]),h+s),d=(Dl(t)&&this._renderBackground(t,t,r,n,e,l),!!t.backgroundColor),f=0;f<a.lines.length;f++){for(var g=a.lines[f],y=g.tokens,m=y.length,v=g.lineHeight,_=g.width,x=0,b=h,w=p,S=m-1,M=void 0;x<m&&(!(M=y[x]).align||"left"===M.align);)this._placeToken(M,t,v,c,b,"left",d),_-=M.width,b+=M.width,x++;for(;0<=S&&"right"===(M=y[S]).align;)this._placeToken(M,t,v,c,w,"right",d),_-=M.width,w-=M.width,S--;for(b+=(s-(b-h)-(p-w)-_)/2;x<=S;)M=y[x],this._placeToken(M,t,v,c,b+M.width/2,"center",d),b+=M.width,x++;c+=v}},_l.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{},l=(s.text=t.text,t.verticalAlign),u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2);!t.isLineHolder&&Dl(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var l=!!s.backgroundColor,i=t.textPadding,n=(i&&(r=Cl(r,o,i),u-=t.height/2-i[0]-t.innerHeight/2),this._getOrCreateChild(Qs)),i=n.createStyle(),h=(n.useStyle(i),this._defaultStyle),c=!1,p=0,d=!1,f=Il(("fill"in s?s:"fill"in e?e:(c=!0,h)).fill),l=Tl("stroke"in s?s.stroke:"stroke"in e?e.stroke:l||a||h.autoStroke&&!c?null:(p=2,d=!0,h.stroke)),a=0<s.textShadowBlur||0<e.textShadowBlur;i.text=t.text,i.x=r,i.y=u,a&&(i.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,i.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",i.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,i.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),i.textAlign=o,i.textBaseline="middle",i.font=t.font||j,i.opacity=wt(s.opacity,e.opacity,1),Sl(i,s),l&&(i.lineWidth=wt(s.lineWidth,e.lineWidth,p),i.lineDash=G(s.lineDash,e.lineDash),i.lineDashOffset=e.lineDashOffset||0,i.stroke=l),f&&(i.fill=f),n.setBoundingRect(Ya(i,t.contentWidth,t.contentHeight,d?0:null))},_l.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u,h=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=h&&h.image,f=h&&!d,g=t.borderRadius,y=this,g=((f||t.lineHeight||c&&p)&&((a=this._getOrCreateChild(pl)).useStyle(a.createStyle()),a.style.fill=null,(l=a.shape).x=n,l.y=i,l.width=r,l.height=o,l.r=g,a.dirtyShape()),f?((u=a.style).fill=h||null,u.fillOpacity=G(t.fillOpacity,1)):d&&((s=this._getOrCreateChild(il)).onload=function(){y.dirtyStyle()},(l=s.style).image=h.image,l.x=n,l.y=i,l.width=r,l.height=o),c&&p&&((u=a.style).lineWidth=c,u.stroke=p,u.strokeOpacity=G(t.strokeOpacity,1),u.lineDash=t.borderDash,u.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill())&&a.hasStroke()&&(u.strokeFirst=!0,u.lineWidth*=2),(a||s).style);g.shadowBlur=t.shadowBlur||0,g.shadowColor=t.shadowColor||"transparent",g.shadowOffsetX=t.shadowOffsetX||0,g.shadowOffsetY=t.shadowOffsetY||0,g.opacity=wt(t.opacity,e.opacity,1)},_l.makeFont=function(t){var e,n="";return(n=null!=(e=t).fontSize||e.fontFamily||e.fontWeight?[t.fontStyle,t.fontWeight,"string"!=typeof(e=t.fontSize)||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?"12px":e+"px":e,t.fontFamily||"sans-serif"].join(" "):n)&&It(n)||t.textFont||t.font},_l);function _l(t){var e=fl.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=gl,e.attr(t),e}var xl={left:!0,right:1,center:1},bl={top:1,bottom:1,middle:1},wl=["fontStyle","fontWeight","fontSize","fontFamily"];function Sl(t,e){for(var n=0;n<wl.length;n++){var i=wl[n],r=e[i];null!=r&&(t[i]=r)}}function Ml(t){var e;t&&(t.font=vl.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||xl[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||bl[e]?e:"top",t.padding)&&(t.padding=Mt(t.padding))}function Tl(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Il(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function Cl(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function kl(t){t=t.text;return null!=t&&(t+=""),t}function Dl(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var U=oa(),Ll=1,Al={},Pl=oa(),Ol=oa(),Rl=0,zl=1,Nl=2,El=["emphasis","blur","select"],Bl=["normal","emphasis","blur","select"],Vl="highlight",Fl="downplay",Hl="select",Gl="unselect",Wl="toggleSelect",Ul="selectchanged";function Xl(t){return null!=t&&"none"!==t}function Yl(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Zl(t){Yl(t,"emphasis",Nl)}function ql(t){t.hoverState===Nl&&Yl(t,"normal",Rl)}function jl(t){Yl(t,"blur",zl)}function Kl(t){t.hoverState===zl&&Yl(t,"normal",Rl)}function $l(t){t.selected=!0}function Ql(t){t.selected=!1}function Jl(t,e,n){e(t,n)}function tu(t,e,n){Jl(t,e,n),t.isGroup&&t.traverse(function(t){Jl(t,e,n)})}function eu(t,e){switch(e){case"emphasis":t.hoverState=Nl;break;case"normal":t.hoverState=Rl;break;case"blur":t.hoverState=zl;break;case"select":t.selected=!0}}function nu(t,e,n){var i=0<=k(t.currentStates,e),r=t.style.opacity,t=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?i&&i[s]:l}for(a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&"style"===u.targetName&&u.saveTo(o,e)}return o}(t,["opacity"],e,{opacity:1}),e=(n=n||{}).style||{};return null==e.opacity&&(n=P({},n),e=P({opacity:i?r:.1*t.opacity},e),n.style=e),n}function iu(t,e){var n,i,r,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return n=this,i=s,e=(e=e)&&0<=k(e,"select"),a=!1,n instanceof js&&(r=Pl(n),o=e&&r.selectFill||r.normalFill,e=e&&r.selectStroke||r.normalStroke,Xl(o)||Xl(e))&&("inherit"===(r=(i=i||{}).style||{}).fill?(a=!0,i=P({},i),(r=P({},r)).fill=o):!Xl(r.fill)&&Xl(o)?(a=!0,i=P({},i),(r=P({},r)).fill=Vi(o)):!Xl(r.stroke)&&Xl(e)&&(a||(i=P({},i),r=P({},r)),r.stroke=Vi(e)),i.style=r),i&&null==i.z2&&(a||(i=P({},i)),o=n.z2EmphasisLift,i.z2=n.z2+(null!=o?o:10)),i;if("blur"===t)return nu(this,t,s);if("select"===t)return e=this,(r=s)&&null==r.z2&&(r=P({},r),a=e.z2SelectLift,r.z2=e.z2+(null!=a?a:9)),r}return s}function ru(t){t.stateProxy=iu;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=iu),t&&(t.stateProxy=iu)}function ou(t,e){pu(t,e)||t.__highByOuter||tu(t,Zl)}function au(t,e){pu(t,e)||t.__highByOuter||tu(t,ql)}function su(t,e){t.__highByOuter|=1<<(e||0),tu(t,Zl)}function lu(t,e){(t.__highByOuter&=~(1<<(e||0)))||tu(t,ql)}function uu(t){tu(t,Kl)}function hu(t){tu(t,$l)}function cu(t){tu(t,Ql)}function pu(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function du(r){var e=r.getModel(),o=[],a=[];e.eachComponent(function(t,e){var n=Ol(e),t="series"===t,i=t?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e);t||a.push(i),n.isBlured&&(i.group.traverse(function(t){Kl(t)}),t)&&o.push(e),n.isBlured=!1}),nt(a,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(o,!1,e)})}function fu(t,o,a,s){var l,u,h,n=s.getModel();function c(t,e){for(var n=0;n<e.length;n++){var i=t.getItemGraphicEl(e[n]);i&&uu(i)}}a=a||"coordinateSystem",null!=t&&o&&"none"!==o&&(l=n.getSeriesByIndex(t),(u=l.coordinateSystem)&&u.master&&(u=u.master),h=[],n.eachSeries(function(t){var e=l===t,n=t.coordinateSystem,n=(n=n&&n.master?n.master:n)&&u?n===u:e;if(!("series"===a&&!e||"coordinateSystem"===a&&!n||"series"===o&&e)){if(s.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&e&&"self"===o||jl(t)}),st(o))c(t.getData(),o);else if(N(o))for(var i=ct(o),r=0;r<i.length;r++)c(t.getData(i[r]),o[i[r]]);h.push(t),Ol(t).isBlured=!0}}),n.eachComponent(function(t,e){"series"!==t&&(t=s.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(h,!0,n)}))}function gu(t,e,n){var i;null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(Ol(t).isBlured=!0,i=n.getViewOfComponentModel(t))&&i.focusBlurEnabled&&i.group.traverse(function(t){jl(t)})}function yu(t,e,n,i){var r={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==n)return r;t=i.getModel().getComponent(t,e);if(!t)return r;e=i.getViewOfComponentModel(t);if(!e||!e.findHighDownDispatchers)return r;for(var o,a=e.findHighDownDispatchers(n),s=0;s<a.length;s++)if("self"===U(a[s]).focus){o=!0;break}return{focusSelf:o,dispatchers:a}}function mu(i){nt(i.getAllData(),function(t){var e=t.data,n=t.type;e.eachItemGraphicEl(function(t,e){(i.isSelected(e,n)?hu:cu)(t)})})}function vu(t,e,n){Su(t,!0),tu(t,ru);t=U(t),null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}function _u(t,e,n,i){i?Su(t,!1):vu(t,e,n)}var xu=["emphasis","blur","select"],bu={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function wu(t,e,n,i){n=n||"itemStyle";for(var r=0;r<xu.length;r++){var o=xu[r],a=e.getModel([o,n]);t.ensureState(o).style=i?i(a):a[bu[n]]()}}function Su(t,e){var e=!1===e,n=t;t.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=t.highDownSilentOnTouch),e&&!n.__highDownDispatcher||(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!e)}function Mu(t){return!(!t||!t.__highDownDispatcher)}function Tu(t){t=t.type;return t===Hl||t===Gl||t===Wl}function Iu(t){t=t.type;return t===Vl||t===Fl}var Cu=As.CMD,ku=[[],[],[]],Du=Math.sqrt,Lu=Math.atan2;var Au=Math.sqrt,Pu=Math.sin,Ou=Math.cos,Ru=Math.PI;function zu(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Nu(t,e){return(t[0]*e[0]+t[1]*e[1])/(zu(t)*zu(e))}function Eu(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Nu(t,e))}function Bu(t,e,n,i,r,o,a,s,l,u,h){var l=l*(Ru/180),c=Ou(l)*(t-n)/2+Pu(l)*(e-i)/2,p=-1*Pu(l)*(t-n)/2+Ou(l)*(e-i)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=Au(d),s*=Au(d)),(r===o?-1:1)*Au((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0),r=d*a*p/s,d=d*-s*c/a,t=(t+n)/2+Ou(l)*r-Pu(l)*d,n=(e+i)/2+Pu(l)*r+Ou(l)*d,e=Eu([1,0],[(c-r)/a,(p-d)/s]),i=[(c-r)/a,(p-d)/s],c=[(-1*c-r)/a,(-1*p-d)/s],r=Eu(i,c);Nu(i,c)<=-1&&(r=Ru),(r=1<=Nu(i,c)?0:r)<0&&(p=Math.round(r/Ru*1e6)/1e6,r=2*Ru+p%2*Ru),h.addData(u,t,n,a,s,e,r,l,o)}var Vu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Fu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;u(Wu,Hu=js),Wu.prototype.applyTransform=function(t){};var Hu,Gu=Wu;function Wu(){return null!==Hu&&Hu.apply(this,arguments)||this}function Uu(t){return null!=t.setData}function Xu(t,e){var S=function(t){var e=new As;if(t){var n,i=0,r=0,o=i,a=r,s=As.CMD,l=t.match(Vu);if(l){for(var u=0;u<l.length;u++){for(var h=l[u],c=h.charAt(0),p=void 0,d=h.match(Fu)||[],f=d.length,g=0;g<f;g++)d[g]=parseFloat(d[g]);for(var y=0;y<f;){var m=void 0,v=void 0,_=void 0,x=void 0,b=void 0,w=void 0,S=void 0,M=i,T=r,I=void 0,C=void 0;switch(c){case"l":i+=d[y++],r+=d[y++],p=s.L,e.addData(p,i,r);break;case"L":i=d[y++],r=d[y++],p=s.L,e.addData(p,i,r);break;case"m":i+=d[y++],r+=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="l";break;case"M":i=d[y++],r=d[y++],p=s.M,e.addData(p,i,r),o=i,a=r,c="L";break;case"h":i+=d[y++],p=s.L,e.addData(p,i,r);break;case"H":i=d[y++],p=s.L,e.addData(p,i,r);break;case"v":r+=d[y++],p=s.L,e.addData(p,i,r);break;case"V":r=d[y++],p=s.L,e.addData(p,i,r);break;case"C":p=s.C,e.addData(p,d[y++],d[y++],d[y++],d[y++],d[y++],d[y++]),i=d[y-2],r=d[y-1];break;case"c":p=s.C,e.addData(p,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r,d[y++]+i,d[y++]+r),i+=d[y-2],r+=d[y-1];break;case"S":m=i,v=r,I=e.len(),C=e.data,n===s.C&&(m+=i-C[I-4],v+=r-C[I-3]),p=s.C,M=d[y++],T=d[y++],i=d[y++],r=d[y++],e.addData(p,m,v,M,T,i,r);break;case"s":m=i,v=r,I=e.len(),C=e.data,n===s.C&&(m+=i-C[I-4],v+=r-C[I-3]),p=s.C,M=i+d[y++],T=r+d[y++],i+=d[y++],r+=d[y++],e.addData(p,m,v,M,T,i,r);break;case"Q":M=d[y++],T=d[y++],i=d[y++],r=d[y++],p=s.Q,e.addData(p,M,T,i,r);break;case"q":M=d[y++]+i,T=d[y++]+r,i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,M,T,i,r);break;case"T":m=i,v=r,I=e.len(),C=e.data,n===s.Q&&(m+=i-C[I-4],v+=r-C[I-3]),i=d[y++],r=d[y++],p=s.Q,e.addData(p,m,v,i,r);break;case"t":m=i,v=r,I=e.len(),C=e.data,n===s.Q&&(m+=i-C[I-4],v+=r-C[I-3]),i+=d[y++],r+=d[y++],p=s.Q,e.addData(p,m,v,i,r);break;case"A":_=d[y++],x=d[y++],b=d[y++],w=d[y++],S=d[y++],Bu(M=i,T=r,i=d[y++],r=d[y++],w,S,_,x,b,p=s.A,e);break;case"a":_=d[y++],x=d[y++],b=d[y++],w=d[y++],S=d[y++],Bu(M=i,T=r,i+=d[y++],r+=d[y++],w,S,_,x,b,p=s.A,e)}}"z"!==c&&"Z"!==c||(p=s.Z,e.addData(p),i=o,r=a),n=p}e.toStatic()}}return e}(t),t=P({},e);return t.buildPath=function(t){var e,n=Uu(t);n&&t.canSave()?(t.appendPath(S),(e=t.getContext())&&t.rebuildPath(e,1)):(e=n?t.getContext():t)&&S.rebuildPath(e,1)},t.applyTransform=function(t){var e=S,n=t;if(n){for(var i,r,o,a,s=e.data,l=e.len(),u=Cu.M,h=Cu.C,c=Cu.L,p=Cu.R,d=Cu.A,f=Cu.Q,g=0,y=0;g<l;){switch(i=s[g++],y=g,r=0,i){case u:case c:r=1;break;case h:r=3;break;case f:r=2;break;case d:var m=n[4],v=n[5],_=Du(n[0]*n[0]+n[1]*n[1]),x=Du(n[2]*n[2]+n[3]*n[3]),b=Lu(-n[1]/x,n[0]/_);s[g]*=_,s[g++]+=m,s[g]*=x,s[g++]+=v,s[g++]*=_,s[g++]*=x,s[g++]+=b,s[g++]+=b,y=g+=2;break;case p:a[0]=s[g++],a[1]=s[g++],ie(a,a,n),s[y++]=a[0],s[y++]=a[1],a[0]+=s[g++],a[1]+=s[g++],ie(a,a,n),s[y++]=a[0],s[y++]=a[1]}for(o=0;o<r;o++){var w=ku[o];w[0]=s[g++],w[1]=s[g++],ie(w,w,n),s[y++]=w[0],s[y++]=w[1]}}e.increaseVersion()}this.dirtyShape()},t}var Yu,Zu=function(){this.cx=0,this.cy=0,this.r=0},qu=(u(ju,Yu=js),ju.prototype.getDefaultShape=function(){return new Zu},ju.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},ju);function ju(t){return Yu.call(this,t)||this}qu.prototype.type="circle";var Ku,$u=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Qu=(u(Ju,Ku=js),Ju.prototype.getDefaultShape=function(){return new $u},Ju.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=e.rx,e=e.ry,o=.5522848*r,a=.5522848*e;t.moveTo(n-r,i),t.bezierCurveTo(n-r,i-a,n-o,i-e,n,i-e),t.bezierCurveTo(n+o,i-e,n+r,i-a,n+r,i),t.bezierCurveTo(n+r,i+a,n+o,i+e,n,i+e),t.bezierCurveTo(n-o,i+e,n-r,i+a,n-r,i),t.closePath()},Ju);function Ju(t){return Ku.call(this,t)||this}Qu.prototype.type="ellipse";var th=Math.PI,eh=2*th,nh=Math.sin,ih=Math.cos,rh=Math.acos,oh=Math.atan2,ah=Math.abs,sh=Math.sqrt,lh=Math.max,uh=Math.min,hh=1e-4;function ch(t,e,n,i,r,o,a){var s=t-n,l=e-i,a=(a?o:-o)/sh(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=n+l,n=i+a,i=(s+e)/2,u=(t+n)/2,h=e-s,c=n-t,p=h*h+c*c,o=r-o,s=s*n-e*t,n=(c<0?-1:1)*sh(lh(0,o*o*p-s*s)),e=(s*c-h*n)/p,t=(-s*h-c*n)/p,d=(s*c+h*n)/p,s=(-s*h+c*n)/p,h=e-i,c=t-u,n=d-i,p=s-u;return n*n+p*p<h*h+c*c&&(e=d,t=s),{cx:e,cy:t,x0:-l,y0:-a,x1:e*(r/o-1),y1:t*(r/o-1)}}function ph(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g,y,m,v,_,x,b,w,S,M,T,I,C,k,D,L,A,P=lh(e.r,0),O=lh(e.r0||0,0),R=0<P;(R||0<O)&&(R||(P=O,O=0),P<O&&(R=P,P=O,O=R),R=e.startAngle,n=e.endAngle,isNaN(R)||isNaN(n)||(i=e.cx,r=e.cy,o=!!e.clockwise,m=ah(n-R),hh<(a=eh<m&&m%eh)&&(m=a),hh<P?eh-hh<m?(t.moveTo(i+P*ih(R),r+P*nh(R)),t.arc(i,r,P,R,n,!o),hh<O&&(t.moveTo(i+O*ih(n),r+O*nh(n)),t.arc(i,r,O,n,R,o))):(S=w=b=x=_=v=c=h=C=I=T=M=u=l=s=a=void 0,p=P*ih(R),d=P*nh(R),f=O*ih(n),g=O*nh(n),(y=hh<m)&&((e=e.cornerRadius)&&(a=(e=function(t){if(V(t)){var e=t.length;if(!e)return t;e=1===e?[t[0],t[0],0,0]:2===e?[t[0],t[0],t[1],t[1]]:3===e?t.concat(t[2]):t}else e=[t,t,t,t];return e}(e))[0],s=e[1],l=e[2],u=e[3]),e=ah(P-O)/2,M=uh(e,l),T=uh(e,u),I=uh(e,a),C=uh(e,s),v=h=lh(M,T),_=c=lh(I,C),hh<h||hh<c)&&(x=P*ih(n),b=P*nh(n),w=O*ih(R),S=O*nh(R),m<th)&&(e=function(t,e,n,i,r,o,a,s){var l=(s=s-o)*(n=n-t)-(a=a-r)*(i=i-e);if(!(l*l<hh))return[t+(l=(a*(e-o)-s*(t-r))/l)*n,e+l*i]}(p,d,w,S,x,b,f,g))&&(M=p-e[0],T=d-e[1],I=x-e[0],C=b-e[1],m=1/nh(rh((M*I+T*C)/(sh(M*M+T*T)*sh(I*I+C*C)))/2),M=sh(e[0]*e[0]+e[1]*e[1]),v=uh(h,(P-M)/(1+m)),_=uh(c,(O-M)/(m-1))),y?hh<v?(k=uh(l,v),D=uh(u,v),L=ch(w,S,p,d,P,k,o),A=ch(x,b,f,g,P,D,o),t.moveTo(i+L.cx+L.x0,r+L.cy+L.y0),v<h&&k===D?t.arc(i+L.cx,r+L.cy,v,oh(L.y0,L.x0),oh(A.y0,A.x0),!o):(0<k&&t.arc(i+L.cx,r+L.cy,k,oh(L.y0,L.x0),oh(L.y1,L.x1),!o),t.arc(i,r,P,oh(L.cy+L.y1,L.cx+L.x1),oh(A.cy+A.y1,A.cx+A.x1),!o),0<D&&t.arc(i+A.cx,r+A.cy,D,oh(A.y1,A.x1),oh(A.y0,A.x0),!o))):(t.moveTo(i+p,r+d),t.arc(i,r,P,R,n,!o)):t.moveTo(i+p,r+d),hh<O&&y?hh<_?(k=uh(a,_),L=ch(f,g,x,b,O,-(D=uh(s,_)),o),A=ch(p,d,w,S,O,-k,o),t.lineTo(i+L.cx+L.x0,r+L.cy+L.y0),_<c&&k===D?t.arc(i+L.cx,r+L.cy,_,oh(L.y0,L.x0),oh(A.y0,A.x0),!o):(0<D&&t.arc(i+L.cx,r+L.cy,D,oh(L.y0,L.x0),oh(L.y1,L.x1),!o),t.arc(i,r,O,oh(L.cy+L.y1,L.cx+L.x1),oh(A.cy+A.y1,A.cx+A.x1),o),0<k&&t.arc(i+A.cx,r+A.cy,k,oh(A.y1,A.x1),oh(A.y0,A.x0),!o))):(t.lineTo(i+f,r+g),t.arc(i,r,O,n,R,o)):t.lineTo(i+f,r+g)):t.moveTo(i,r),t.closePath()))}var dh,fh=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},gh=(u(yh,dh=js),yh.prototype.getDefaultShape=function(){return new fh},yh.prototype.buildPath=function(t,e){ph(t,e)},yh.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},yh);function yh(t){return dh.call(this,t)||this}gh.prototype.type="sector";var mh,vh=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},_h=(u(xh,mh=js),xh.prototype.getDefaultShape=function(){return new vh},xh.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},xh);function xh(t){return mh.call(this,t)||this}function bh(t,e,n){var i=e.smooth,r=e.points;if(r&&2<=r.length){if(i)for(var o=function(t,e,n,i){var r,o,a=[],s=[],l=[],u=[];if(i){for(var h=[1/0,1/0],c=[-1/0,-1/0],p=0,d=t.length;p<d;p++)re(h,h,t[p]),oe(c,c,t[p]);re(h,h,i[0]),oe(c,c,i[1])}for(p=0,d=t.length;p<d;p++){var f=t[p];if(n)r=t[p?p-1:d-1],o=t[(p+1)%d];else{if(0===p||p===d-1){a.push(Xt(t[p]));continue}r=t[p-1],o=t[p+1]}Zt(s,o,r),Kt(s,s,e);var g=Qt(f,r),y=Qt(f,o),m=g+y,m=(0!==m&&(g/=m,y/=m),Kt(l,s,-g),Kt(u,s,y),Yt([],f,l)),g=Yt([],f,u);i&&(oe(m,m,h),re(m,m,c),oe(g,g,h),re(g,g,c)),a.push(m),a.push(g)}return n&&a.push(a.shift()),a}(r,i,n,e.smoothConstraint),a=(t.moveTo(r[0][0],r[0][1]),r.length),s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],h=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],u[0],u[1],h[0],h[1])}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,c=r.length;s<c;s++)t.lineTo(r[s][0],r[s][1])}n&&t.closePath()}}_h.prototype.type="ring";var wh,Sh=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Mh=(u(Th,wh=js),Th.prototype.getDefaultShape=function(){return new Sh},Th.prototype.buildPath=function(t,e){bh(t,e,!0)},Th);function Th(t){return wh.call(this,t)||this}Mh.prototype.type="polygon";var Ih,Ch=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},kh=(u(Dh,Ih=js),Dh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Dh.prototype.getDefaultShape=function(){return new Ch},Dh.prototype.buildPath=function(t,e){bh(t,e,!1)},Dh);function Dh(t){return Ih.call(this,t)||this}kh.prototype.type="polyline";var Lh,Ah={},Ph=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Oh=(u(Rh,Lh=js),Rh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Rh.prototype.getDefaultShape=function(){return new Ph},Rh.prototype.buildPath=function(t,e){o=(this.subPixelOptimize?(n=(o=al(Ah,e,this.style)).x1,i=o.y1,r=o.x2,o):(n=e.x1,i=e.y1,r=e.x2,e)).y2;var n,i,r,o,e=e.percent;0!==e&&(t.moveTo(n,i),e<1&&(r=n*(1-e)+r*e,o=i*(1-e)+o*e),t.lineTo(r,o))},Rh.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Rh);function Rh(t){return Lh.call(this,t)||this}Oh.prototype.type="line";var zh=[],Nh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Eh(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?$n:Kn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?$n:Kn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ii:ni)(t.x1,t.cpx1,t.x2,e),(n?ii:ni)(t.y1,t.cpy1,t.y2,e)]}u(Fh,Bh=js),Fh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Fh.prototype.getDefaultShape=function(){return new Nh},Fh.prototype.buildPath=function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=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&&(oi(n,a,r,e,zh),a=zh[1],r=zh[2],oi(i,s,o,e,zh),s=zh[1],o=zh[2]),t.quadraticCurveTo(a,s,r,o)):(e<1&&(ti(n,a,l,r,e,zh),a=zh[1],l=zh[2],r=zh[3],ti(i,s,u,o,e,zh),s=zh[1],u=zh[2],o=zh[3]),t.bezierCurveTo(a,s,l,u,r,o)))},Fh.prototype.pointAt=function(t){return Eh(this.shape,t,!1)},Fh.prototype.tangentAt=function(t){t=Eh(this.shape,t,!0);return $t(t,t)};var Bh,Vh=Fh;function Fh(t){return Bh.call(this,t)||this}Vh.prototype.type="bezier-curve";var Hh,Gh=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Wh=(u(Uh,Hh=js),Uh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Uh.prototype.getDefaultShape=function(){return new Gh},Uh.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,e=e.clockwise,s=Math.cos(o),l=Math.sin(o);t.moveTo(s*r+n,l*r+i),t.arc(n,i,r,o,a,!e)},Uh);function Uh(t){return Hh.call(this,t)||this}Wh.prototype.type="arc";u(Zh,Xh=js),Zh.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()},Zh.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)},Zh.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},Zh.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},Zh.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),js.prototype.getBoundingRect.call(this)};var Xh,Yh=Zh;function Zh(){var t=null!==Xh&&Xh.apply(this,arguments)||this;return t.type="compound",t}jh.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var qh=jh;function jh(t){this.colorStops=t||[]}u(Qh,Kh=qh);var Kh,$h=Qh;function Qh(t,e,n,i,r,o){r=Kh.call(this,r)||this;return r.x=null==t?0:t,r.y=null==e?0:e,r.x2=null==n?1:n,r.y2=null==i?0:i,r.type="linear",r.global=o||!1,r}u(tc,Jh=qh);var Jh,qh=tc;function tc(t,e,n,i,r){i=Jh.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=r||!1,i}var ec=Math.min,nc=Math.max,ic=Math.abs,rc=[0,0],oc=[0,0],ac=un(),sc=ac.minTv,lc=ac.maxTv,uc=(hc.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,r=t.x,o=t.y,a=r+t.width,t=o+t.height;if(n[0].set(r,o),n[1].set(a,o),n[2].set(a,t),n[3].set(r,t),e)for(var s=0;s<4;s++)n[s].transform(e);W.sub(i[0],n[1],n[0]),W.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])},hc.prototype.intersect=function(t,e,n){var i=!0,r=!e;return e&&W.set(e,0,0),ac.reset(n,!r),!this._intersectCheckOneSide(this,t,r,1)&&(i=!1,r)||!this._intersectCheckOneSide(t,this,r,-1)&&(i=!1,r)||r||ac.negativeSize||W.copy(e,i?ac.useDir?ac.dirMinTv:sc:lc),i},hc.prototype._intersectCheckOneSide=function(t,e,n,i){for(var r=!0,o=0;o<2;o++){var a=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,rc),t._getProjMinMaxOnAxis(o,e._corners,oc),ac.negativeSize||rc[1]<oc[0]||oc[1]<rc[0]){if(r=!1,ac.negativeSize||n)return r;var s=ic(oc[0]-rc[1]),l=ic(rc[0]-oc[1]);ec(s,l)>lc.len()&&(s<l?W.scale(lc,a,-s*i):W.scale(lc,a,l*i))}else n||(s=ic(oc[0]-rc[1]),l=ic(rc[0]-oc[1]),(ac.useDir||ec(s,l)<sc.len())&&((s<l||!ac.bidirectional)&&(W.scale(sc,a,s*i),ac.useDir)&&ac.calcDirMTV(),l<=s||!ac.bidirectional)&&(W.scale(sc,a,-l*i),ac.useDir)&&ac.calcDirMTV())}return r},hc.prototype._getProjMinMaxOnAxis=function(t,e,n){for(var i=this._axes[t],r=this._origin,o=e[0].dot(i)+r[t],a=o,s=o,l=1;l<e.length;l++)var u=e[l].dot(i)+r[t],a=ec(u,a),s=nc(u,s);n[0]=a+ac.touchThreshold,n[1]=s-ac.touchThreshold,ac.negativeSize=n[1]<n[0]},hc);function hc(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new W;for(n=0;n<2;n++)this._axes[n]=new W;t&&this.fromBoundingRect(t,e)}var cc,pc=[],e=(u(dc,cc=e),dc.prototype.traverse=function(t,e){t.call(e,this)},dc.prototype.useStyle=function(){this.style={}},dc.prototype.getCursor=function(){return this._cursor},dc.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},dc.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},dc.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},dc.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},dc.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},dc.prototype.getDisplayables=function(){return this._displayables},dc.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},dc.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},dc.prototype.update=function(){this.updateTransform();for(var t=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},dc.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new X(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(pc)),t.union(i)}this._rect=t}return this._rect},dc.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(n[0],n[1]))for(var i=0;i<this._displayables.length;i++)if(this._displayables[i].contain(t,e))return!0;return!1},dc);function dc(){var t=null!==cc&&cc.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}var fc=oa();function gc(t,e,n,i,r,o,a){var s,l,u,h,c,p,d=!1,f=(z(r)?(a=o,o=r,r=null):N(r)&&(o=r.cb,a=r.during,d=r.isFrom,l=r.removeOpt,r=r.dataIndex),"leave"===t),g=(f||e.stopAnimation("leave"),p=t,s=r,l=f?l||{}:null,i=(g=i)&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,r):null,g&&g.ecModel&&(u=(u=g.ecModel.getUpdatePayload())&&u.animation),p="update"===p,g&&g.isAnimationEnabled()?(c=h=r=void 0,c=l?(r=G(l.duration,200),h=G(l.easing,"cubicOut"),0):(r=g.getShallow(p?"animationDurationUpdate":"animationDuration"),h=g.getShallow(p?"animationEasingUpdate":"animationEasing"),g.getShallow(p?"animationDelayUpdate":"animationDelay")),z(c=u&&(null!=u.duration&&(r=u.duration),null!=u.easing&&(h=u.easing),null!=u.delay)?u.delay:c)&&(c=c(s,i)),{duration:(r=z(r)?r(s):r)||0,delay:c,easing:h}):null);g&&0<g.duration?(p={duration:g.duration,delay:g.delay||0,easing:g.easing,done:o,force:!!o||!!a,setToFinal:!f,scope:t,during:a},d?e.animateFrom(n,p):e.animateTo(n,p)):(e.stopAnimation(),d||e.attr(n),a&&a(1),o&&o())}function yc(t,e,n,i,r,o){gc("update",t,e,n,i,r,o)}function mc(t,e,n,i,r,o){gc("enter",t,e,n,i,r,o)}function vc(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function _c(t,e,n,i,r,o){vc(t)||gc("leave",t,e,n,i,r,o)}function xc(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),_c(t,{style:{opacity:0}},e,n,i)}function bc(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||xc(t,e,n,i)}):xc(t,e,n,i)}function wc(t){fc(t).oldStyle=t.style}var Sc={},Mc=["x","y"],Tc=["width","height"];function Ic(t){return js.extend(t)}var Cc=function(t,e){var n,i=Xu(t,e);function r(t){t=n.call(this,t)||this;return t.applyTransform=i.applyTransform,t.buildPath=i.buildPath,t}return u(r,n=Gu),r};function kc(t,e){return Cc(t,e)}function Dc(t,e){Sc[t]=e}function Lc(t){if(Sc.hasOwnProperty(t))return Sc[t]}function Ac(t,e,n,i){t=new Gu(Xu(t,e));return n&&("center"===i&&(n=Oc(n,t.getBoundingRect())),zc(t,n)),t}function Pc(t,e,n){var i=new il({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){"center"===n&&(t={width:t.width,height:t.height},i.setStyle(Oc(e,t)))}});return i}function Oc(t,e){var e=e.width/e.height,n=t.height*e,e=n<=t.width?t.height:(n=t.width)/e;return{x:t.x+t.width/2-n/2,y:t.y+t.height/2-e/2,width:n,height:e}}function Rc(t,e){for(var n=[],i=t.length,r=0;r<i;r++){var o=t[r];n.push(o.getUpdatedPathProxy(!0))}return(e=new js(e)).createPathProxy(),e.buildPath=function(t){var e;Uu(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},e}function zc(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function Nc(t,e){return al(t,t,{lineWidth:e}),t}var Ec=ll;function Bc(t,e){for(var n=Ne([]);t&&t!==e;)Be(n,t.getLocalTransform(),n),t=t.parent;return n}function Vc(t,e,n){return e&&!st(e)&&(e=Or.getLocalTransform(e)),ie([],t,e=n?Ge([],e):e)}function Fc(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:So(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:So(2*e[4]/e[2]),i=Vc(["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0],e,n);return So(i[0])>So(i[1])?0<i[0]?"right":"left":0<i[1]?"bottom":"top"}function Hc(t){return!t.isGroup}function Gc(t,e,i){var r,n;function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=y(t.shape)),e}t&&e&&(n={},t.traverse(function(t){Hc(t)&&t.anid&&(n[t.anid]=t)}),r=n,e.traverse(function(t){var e,n;Hc(t)&&t.anid&&(e=r[t.anid])&&(n=o(t),t.attr(o(e)),yc(t,n,i,U(t).dataIndex))}))}function Wc(t,n){return B(t,function(t){var e=t[0],e=wo(e,n.x),t=(e=bo(e,n.x+n.width),t[1]),t=wo(t,n.y);return[e,bo(t,n.y+n.height)]})}function Uc(t,e){var n=wo(t.x,e.x),i=bo(t.x+t.width,e.x+e.width),r=wo(t.y,e.y),t=bo(t.y+t.height,e.y+e.height);if(n<=i&&r<=t)return{x:n,y:r,width:i-n,height:t-r}}function Xc(t,e,n){var e=P({rectHover:!0},e),i=e.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),E(i,n),new il(e)):Ac(t.replace("path://",""),e,n,"center")}function Yc(t,e,n,i,r,o,a,s){var l,n=n-t,i=i-e,a=a-r,s=s-o,u=a*i-n*s;return!((l=u)<=1e-6&&-1e-6<=l||(r=((l=t-r)*i-n*(t=e-o))/u)<0||1<r||(i=(l*s-a*t)/u)<0||1<i)}function Zc(t,e,n,i,r){return null!=e&&(H(e)?qc[0]=qc[1]=qc[2]=qc[3]=e:(qc[0]=e[0],qc[1]=e[1],qc[2]=e[2],qc[3]=e[3]),i&&(qc[0]=wo(0,qc[0]),qc[1]=wo(0,qc[1]),qc[2]=wo(0,qc[2]),qc[3]=wo(0,qc[3])),n&&(qc[0]=-qc[0],qc[1]=-qc[1],qc[2]=-qc[2],qc[3]=-qc[3]),jc(t,qc,"x","width",3,1,r&&r[0]||0),jc(t,qc,"y","height",0,2,r&&r[1]||0)),t}var qc=[0,0,0,0];function jc(t,e,n,i,r,o,a){var s=e[o]+e[r],l=t[i];t[i]+=s,a=wo(0,bo(a,l)),t[i]<a?(t[i]=a,t[n]+=0<=e[r]?-e[r]:0<=e[o]?l+e[o]:1e-8<So(s)?(l-a)*e[r]/s:0):t[n]-=e[r]}function Kc(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,e=F(e)?{formatter:e}:e,r=n.mainType,n=n.componentIndex,o={componentType:r,name:i,$vars:["name"]},a=(o[r+"Index"]=n,t.formatterParamsExtra),t=(a&&nt(ct(a),function(t){Bt(o,t)||(o[t]=a[t],o.$vars.push(t))}),U(t.el));t.componentMainType=r,t.componentIndex=n,t.tooltipConfig={name:i,option:E({content:i,encodeHTMLContent:!0,formatterParams:o},e)}}function $c(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function Qc(t,e){if(t)if(V(t))for(var n=0;n<t.length;n++)$c(t[n],e);else $c(t,e)}function Jc(t){return!t||So(t[1])<1e-5&&So(t[2])<1e-5||So(t[0])<1e-5&&So(t[3])<1e-5}function tp(t,e){return t?X.copy(t,e):e.clone()}function ep(t,e){return e?Ee(t||ze(),e):void 0}function np(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function ip(t,e,n){!function t(e,n,i,r){if(e.ignoreModelZ)return r;var o=e.getTextContent();var a=e.getTextGuideLine();var s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u<l.length;u++)r=wo(t(l[u],n,i,r),r);else e.z=n,e.zlevel=i,r=wo(e.z2||0,r);o&&(o.z=n,o.zlevel=i,isFinite(r))&&(o.z2=r+2);a&&(s=e.textGuideLineConfig,a.z=n,a.zlevel=i,isFinite(r))&&(a.z2=r+(s&&s.showAbove?1:-1));return r}(t,e,n,-1/0)}Dc("circle",qu),Dc("ellipse",Qu),Dc("sector",gh),Dc("ring",_h),Dc("polygon",Mh),Dc("polyline",kh),Dc("rect",pl),Dc("line",Oh),Dc("bezierCurve",Vh),Dc("arc",Wh);var rp=Object.freeze({__proto__:null,Arc:Wh,BezierCurve:Vh,BoundingRect:X,Circle:qu,CompoundPath:Yh,Ellipse:Qu,Group:lo,Image:il,IncrementalDisplayable:e,Line:Oh,LinearGradient:$h,OrientedBoundingRect:uc,Path:js,Point:W,Polygon:Mh,Polyline:kh,RadialGradient:qh,Rect:pl,Ring:_h,Sector:gh,Text:vl,WH:Tc,XY:Mc,applyTransform:Vc,calcZ2Range:function(t){var e=-1/0,n=1/0;function i(t){if(t&&!t.isGroup){var e=t.currentStates;if(e.length)for(var n=0;n<e.length;n++)r(t.states[e[n]]);r(t)}}function r(t){t&&(t=t.z2,e<t&&(e=t),t<n)&&(n=t)}return $c(t,function(t){i(t),i(t.getTextContent()),i(t.getTextGuideLine())}),{min:n=e<n?e=0:n,max:e}},clipPointsByRect:Wc,clipRectByRect:Uc,createIcon:Xc,ensureCopyRect:tp,ensureCopyTransform:ep,expandOrShrinkRect:Zc,extendPath:kc,extendShape:Ic,getShapeClass:Lc,getTransform:Bc,groupTransition:Gc,initProps:mc,isBoundingRectAxisAligned:Jc,isElementRemoved:vc,lineLineIntersect:Yc,linePolygonIntersect:function(t,e,n,i,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(Yc(t,e,n,i,s[0],s[1],a[0],a[1]))return!0;a=s}},makeImage:Pc,makePath:Ac,mergePath:Rc,registerShape:Dc,removeElement:_c,removeElementWithFadeOut:bc,resizePath:zc,retrieveZInfo:np,setTooltipConfig:Kc,subPixelOptimize:Ec,subPixelOptimizeLine:Nc,subPixelOptimizeRect:function(t,e){return sl(t,t,e),t},transformDirection:Fc,traverseElements:Qc,traverseUpdateZ:ip,updateProps:yc}),op={};function ap(t,e){for(var n=0;n<El.length;n++){var i=El[n],r=e[i],i=t.ensureState(i);i.style=i.style||{},i.style.text=r}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function sp(t,e,n){for(var i,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal,l={normal:i=null==(i=r?r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=n?{interpolatedValue:n}:null):i)?z(t.defaultText)?t.defaultText(o,t,n):t.defaultText:i},u=0;u<El.length;u++){var h=El[u],c=e[h];l[h]=G(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function lp(t,e,n,i){n=n||op;for(var r=t instanceof vl,o=!1,a=0;a<Bl.length;a++)if((p=e[Bl[a]])&&p.getShallow("show")){o=!0;break}var s=r?t:t.getTextContent();if(o){r||(s||(s=new vl,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=sp(n,e),u=e.normal,h=!!u.getShallow("show"),c=hp(u,i&&i.normal,n,!1,!r);c.text=l.normal,r||t.setTextConfig(cp(u,n,!1));for(a=0;a<El.length;a++){var p,d,f,g=El[a];(p=e[g])&&(d=s.ensureState(g),(f=!!G(p.getShallow("show"),h))!=h&&(d.ignore=!f),d.style=hp(p,i&&i[g],n,!0,!r),d.style.text=l[g],r||(t.ensureState(g).textConfig=cp(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&&(yp(s).setLabelText=function(t){t=sp(n,e,t);ap(s,t)})}else s&&(s.ignore=!0);t.dirty()}function up(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<El.length;i++){var r=El[i];n[r]=t.getModel([r,e])}return n}function hp(t,e,n,i,r){var o={},a=o,s=t,l=n,u=i,h=r;l=l||op;var c,t=s.ecModel,p=t&&t.option.textStyle,d=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||op).rich;if(n){e=e||{};for(var i=ct(n),r=0;r<i.length;r++){var o=i[r];e[o]=1}}t=t.parentModel}return e}(s);if(d){c={};var f,g,y="richInheritPlainLabel",m=G(s.get(y),t?t.get(y):void 0);for(f in d)d.hasOwnProperty(f)&&(g=s.getModel(["rich",f]),gp(c[f]={},g,p,s,m,l,u,h,!1,!0))}return c&&(a.rich=c),(t=s.get("overflow"))&&(a.overflow=t),(y=s.get("lineOverflow"))&&(a.lineOverflow=y),t=a,null!=(y=s.get("minMargin"))?(y=H(y)?y/2:0,t.margin=[y,y,y,y],t.__marginType=vp.minMargin):null!=(y=s.get("textMargin"))&&(t.margin=Mt(y),t.__marginType=vp.textMargin),gp(a,s,p,null,null,l,u,h,!0,!1),e&&P(o,e),o}function cp(t,e,n){e=e||{};var i={},r=t.getShallow("rotate"),o=G(t.getShallow("distance"),n?null:5),a=t.getShallow("offset"),n=t.getShallow("position")||(n?null:"inside");return null!=(n="outside"===n?e.defaultOutsidePosition||"top":n)&&(i.position=n),null!=a&&(i.offset=a),null!=r&&(r*=Math.PI/180,i.rotation=r),null!=o&&(i.distance=o),i.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(i.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(i.layoutRect=e.layoutRect),i}var pp=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],dp=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],fp=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function gp(t,e,n,i,r,o,a,s,l,u){n=!a&&n||op;var h=o&&o.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),d=G(e.getShallow("opacity"),n.opacity),c=("inherit"!==c&&"auto"!==c||(c=h||null),"inherit"!==p&&"auto"!==p||(p=h||null),s||(c=c||n.color,p=p||n.textBorderColor),null!=c&&(t.fill=c),null!=p&&(t.stroke=p),G(e.getShallow("textBorderWidth"),n.textBorderWidth)),p=(null!=c&&(t.lineWidth=c),G(e.getShallow("textBorderType"),n.textBorderType)),c=(null!=p&&(t.lineDash=p),G(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset));null!=c&&(t.lineDashOffset=c),null!=(d=a||null!=d||u?d:o&&o.defaultOpacity)&&(t.opacity=d),a||s||null==t.fill&&o.inheritColor&&(t.fill=o.inheritColor);for(var f=0;f<pp.length;f++){var g=pp[f];null!=(y=!1!==r&&i?wt(e.getShallow(g),i.getShallow(g),n[g]):G(e.getShallow(g),n[g]))&&(t[g]=y)}for(var f=0;f<dp.length;f++){g=dp[f];null!=(y=e.getShallow(g))&&(t[g]=y)}if(null==t.verticalAlign&&null!=(p=e.getShallow("baseline"))&&(t.verticalAlign=p),!l||!o.disableBox){for(f=0;f<fp.length;f++){var y,g=fp[f];null!=(y=e.getShallow(g))&&(t[g]=y)}c=e.getShallow("borderType");null!=c&&(t.borderDash=c),"auto"!==t.backgroundColor&&"inherit"!==t.backgroundColor||!h||(t.backgroundColor=h),"auto"!==t.borderColor&&"inherit"!==t.borderColor||!h||(t.borderColor=h)}}var yp=oa();function mp(n,i,r,t,o){var a,s,l,u=yp(n);u.valueAnimation&&u.prevValue!==u.value&&(a=u.defaultInterpolatedText,s=G(u.interpolatedValue,u.prevValue),l=u.value,n.percent=0,(null==u.prevValue?mc:yc)(n,{percent:1},t,i,null,function(t){var e=pa(r,u.precision,s,l,t),t=(u.interpolatedValue=1===t?null:e,sp({labelDataIndex:i,labelFetcher:o,defaultText:a?a(e):e+""},u.statesModels,e));ap(n,t)}))}var vp={minMargin:1,textMargin:2},_p=["textStyle","color"],xp=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],bp=new vl,Ec=(wp.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(_p):null)},wp.prototype.getFont=function(){return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},e=(e=this.ecModel)&&e.getModel("textStyle"),It([t.fontStyle||e&&e.getShallow("fontStyle")||"",t.fontWeight||e&&e.getShallow("fontWeight")||"",(t.fontSize||e&&e.getShallow("fontSize")||12)+"px",t.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "));var t,e},wp.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<xp.length;n++)e[xp[n]]=this.getShallow(xp[n]);return bp.useStyle(e),bp.update(),bp.getBoundingRect()},wp);function wp(){}var Sp=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Mp=Sa(Sp),Tp=(Ip.prototype.getLineStyle=function(t){return Mp(this,t)},Ip);function Ip(){}var Cp=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],kp=Sa(Cp),Dp=(Lp.prototype.getItemStyle=function(t,e){return kp(this,t,e)},Lp);function Lp(){}Op.prototype.init=function(t,e,n){},Op.prototype.mergeOption=function(t,e){d(this.option,t,!0)},Op.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},Op.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},Op.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new Op(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},Op.prototype.isEmpty=function(){return null==this.option},Op.prototype.restoreData=function(){},Op.prototype.clone=function(){return new this.constructor(y(this.option))},Op.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},Op.prototype.resolveParentPath=function(t){return t},Op.prototype.isAnimationEnabled=function(){if(!w.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},Op.prototype._doGet=function(t,e){var n=this.option;if(t){for(var i=0;i<t.length&&(!t[i]||null!=(n=n&&"object"==typeof n?n[t[i]]:null));i++);null==n&&e&&(n=e._doGet(this.resolveParentPath(t),e.parentModel))}return n};var Ap,Pp=Op;function Op(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}ma(Pp),$p=Pp,Ap=["__\0is_clz",_a++].join("_"),$p.prototype[Ap]=!0,$p.isInstance=function(t){return!(!t||!t[Ap])},at(Pp,Tp),at(Pp,Dp),at(Pp,Ta),at(Pp,Ec);var Rp=Math.round(10*Math.random());function zp(t){return[t||"",Rp++].join("_")}function Np(t,e){return d(d({},t,!0),e,!0)}var Ep="ZH",Bp="EN",Vp=Bp,Fp={},Hp={},Gp=w.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage||Vp).toUpperCase().indexOf(Ep)?Ep:Vp;function Wp(t,e){t=t.toUpperCase(),Hp[t]=new Pp(e),Fp[t]=e}Wp(Bp,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),Wp(Ep,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var Up=null;var Xp=1e3,Yp=60*Xp,Zp=60*Yp,qp=24*Zp,_a=365*qp,jp={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Kp={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},$p="{yyyy}-{MM}-{dd}",Qp={year:"{yyyy}",month:"{yyyy}-{MM}",day:$p,hour:$p+" "+Kp.hour,minute:$p+" "+Kp.minute,second:$p+" "+Kp.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Jp=["year","month","day","hour","minute","second","millisecond"],td=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ed(t){return F(t)||z(t)?t:(l=(l=t)||{},u={},h=!0,nt(Jp,function(t){h=h&&null==l[t]}),nt(Jp,function(t,e){for(var n=l[t],i=(u[t]={},null),r=e;0<=r;r--){var o=Jp[r],a=N(n)&&!V(n)?n[o]:n,s=void 0;V(a)?i=(s=a.slice())[0]||"":F(a)?s=[i=a]:(null==i?i=Kp[t]:jp[o].test(i)||(i=u[o][o][0]+" "+i),s=[i],h&&(s[1]="{primary|"+i+"}")),u[t][o]=s}}),u);var l,u,h}function nd(t,e){return"0000".substr(0,e-(t+="").length)+t}function id(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 rd(t,e,n,i){var t=No(t),r=t[sd(n)](),o=t[ld(n)]()+1,a=Math.floor((o-1)/3)+1,s=t[ud(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[hd(n)](),h=(u-1)%12+1,c=t[cd(n)](),p=t[pd(n)](),t=t[dd(n)](),n=12<=u?"pm":"am",d=n.toUpperCase(),i=(i instanceof Pp?i:Hp[i||Gp]||Hp[Vp]).getModel("time"),f=i.get("month"),g=i.get("monthAbbr"),y=i.get("dayOfWeek"),i=i.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,n+"").replace(/{A}/g,d+"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,nd(r%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,f[o-1]).replace(/{MMM}/g,g[o-1]).replace(/{MM}/g,nd(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,nd(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,y[l]).replace(/{ee}/g,i[l]).replace(/{e}/g,l+"").replace(/{HH}/g,nd(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,nd(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,nd(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,nd(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,nd(t,3)).replace(/{S}/g,t+"")}function od(t,e){var t=No(t),n=t[ld(e)]()+1,i=t[ud(e)](),r=t[hd(e)](),o=t[cd(e)](),a=t[pd(e)](),t=0===t[dd(e)](),e=t&&0===a,a=e&&0===o,o=a&&0===r,r=o&&1===i;return r&&1===n?"year":r?"month":o?"day":a?"hour":e?"minute":t?"second":"millisecond"}function ad(t,e,n){switch(e){case"year":t[fd(n)](0);case"month":t[gd(n)](1);case"day":t[yd(n)](0);case"hour":t[md(n)](0);case"minute":t[vd(n)](0);case"second":t[_d(n)](0)}return t}function sd(t){return t?"getUTCFullYear":"getFullYear"}function ld(t){return t?"getUTCMonth":"getMonth"}function ud(t){return t?"getUTCDate":"getDate"}function hd(t){return t?"getUTCHours":"getHours"}function cd(t){return t?"getUTCMinutes":"getMinutes"}function pd(t){return t?"getUTCSeconds":"getSeconds"}function dd(t){return t?"getUTCMilliseconds":"getMilliseconds"}function fd(t){return t?"setUTCMonth":"setMonth"}function gd(t){return t?"setUTCDate":"setDate"}function yd(t){return t?"setUTCHours":"setHours"}function md(t){return t?"setUTCMinutes":"setMinutes"}function vd(t){return t?"setUTCSeconds":"setSeconds"}function _d(t){return t?"setUTCMilliseconds":"setMilliseconds"}function xd(t){var e;return Go(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):F(t)?t:"-"}function bd(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),t=e?t&&t.charAt(0).toUpperCase()+t.slice(1):t}var wd=Mt;function Sd(t,e,n){function i(t){return t&&It(t)?t:"-"}function r(t){return null!=t&&!isNaN(t)&&isFinite(t)}var o="time"===e,a=t instanceof Date;if(o||a){var o=o?No(t):t;if(!isNaN(+o))return rd(o,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}return"ordinal"===e?dt(t)?i(t):H(t)&&r(t)?t+"":"-":r(o=Ho(t))?xd(o):dt(t)?i(t):"boolean"==typeof t?t+"":"-"}function Md(t,e){return"{"+t+(null==e?"":e)+"}"}var Td=["a","b","c","d","e","f","g"];function Id(t,e,n){var i=(e=V(e)?e:[e]).length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=Td[o];t=t.replace(Md(a),Md(a,0))}for(var s=0;s<i;s++)for(var l=0;l<r.length;l++){var u=e[s][r[l]];t=t.replace(Md(Td[l],s),n?be(u):u)}return t}function Cd(t,e){var t=F(t)?{color:t,extraCssText:e}:t||{},n=t.color,i=t.type,r=(e=t.extraCssText,t.renderMode||"html");return n?"html"===r?"subItem"===i?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+be(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+be(n)+";"+(e||"")+'"></span>':{renderMode:r,content:"{"+(t.markerId||"markerX")+"|}  ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function kd(t,e){return e=e||"transparent",F(t)?t:N(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Dd(t,e){var n;"_blank"===e||"blank"===e?((n=window.open()).opener=null,n.location.href=t):window.open(t,e)}var Ld={},Ad={},Pd=(Od.prototype.create=function(i,r){function t(t){var n=[];return nt(t,function(t,e){t=t.create(i,r);n=n.concat(t||[])}),n}this._nonSeriesBoxMasterList=t(Ld),this._normalMasterList=t(Ad)},Od.prototype.update=function(e,n){nt(this._normalMasterList,function(t){t.update&&t.update(e,n)})},Od.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},Od.register=function(t,e){"matrix"===t||"calendar"===t?Ld[t]=e:Ad[t]=e},Od.get=function(t){return Ad[t]||Ld[t]},Od);function Od(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}var Rd={coord:1,coord2:2};var zd=it();var Nd={none:0,dataCoordSys:1,boxCoordSys:2};function Ed(t){var e=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=Nd.none;return e&&(t="series"===t.mainType,"data"===(n=null==n?t?"data":"box":n)?(i=Nd.dataCoordSys,t||(i=Nd.none)):"box"===n&&(i=Nd.boxCoordSys,t||Ld[e]||(i=Nd.none))),{coordSysType:e,kind:i}}var Bd=nt,Vd=["left","right","top","bottom","width","height"],Fd=[["width","left","right"],["height","top","bottom"]];function Hd(a,s,l,u,h){var c=0,p=0,d=(null==u&&(u=1/0),null==h&&(h=1/0),0);s.eachChild(function(t,e){var n,i,r,o=t.getBoundingRect(),e=s.childAt(e+1),e=e&&e.getBoundingRect();d="horizontal"===a?(i=o.width+(e?-e.x+o.x:0),u<(n=c+i)||t.newline?(c=0,n=i,p+=d+l,o.height):Math.max(d,o.height)):(i=o.height+(e?-e.y+o.y:0),h<(r=p+i)||t.newline?(c+=d+l,p=0,r=i,o.width):Math.max(d,o.width)),t.newline||(t.x=c,t.y=p,t.markRedraw(),"horizontal"===a?c=n+l:p=r+l)})}var Gd=Hd;function Wd(t,e){r=Yd(o=t,n=e,{enableLayoutOnlyByCenter:!0}),i=o.getBoxLayoutParams(),r.type===Xd.point?(s=r.refPoint,a=Ud(i,{width:n.getWidth(),height:n.getHeight()})):(o=V(n=o.get("center"))?n:[n,n],a=Ud(i,r.refContainer),s=r.boxCoordFrom===Rd.coord2?r.refPoint:[To(o[0],a.width)+a.x,To(o[1],a.height)+a.y]);var n={viewRect:a,center:s},i=n.viewRect,r=n.center,o=t.get("radius"),a=(V(o)||(o=[0,o]),To(i.width,e.getWidth())),s=To(i.height,e.getHeight()),n=Math.min(a,s),t=To(o[0],n/2),e=To(o[1],n/2);return{cx:r[0],cy:r[1],r0:t,r:e,viewRect:i}}function Ud(t,e,n){n=wd(n||0);var i=e.width,r=e.height,o=To(t.left,i),a=To(t.top,r),s=To(t.right,i),l=To(t.bottom,r),u=To(t.width,i),h=To(t.height,r),c=n[2]+n[0],p=n[1]+n[3],d=t.aspect;switch(isNaN(u)&&(u=i-s-p-o),isNaN(h)&&(h=r-l-c-a),null!=d&&(isNaN(u)&&isNaN(h)&&(i/r<d?u=.8*i:h=.8*r),isNaN(u)&&(u=d*h),isNaN(h))&&(h=u/d),isNaN(o)&&(o=i-s-u-p),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-p}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-p-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));d=new X((e.x||0)+o+n[3],(e.y||0)+a+n[0],u,h);return d.margin=n,d}pt(Hd,"vertical"),pt(Hd,"horizontal");var Xd={rect:1,point:2};function Yd(t,e,n){var i,r,o,a,s,l,u,h=t.boxCoordinateSystem;return h&&(l=(t=t).getShallow("coord",!0),u=Rd.coord,null==l&&(s=zd.get(t.type))&&s.getCoord2&&(u=Rd.coord2,l=s.getCoord2(t)),t=(s={coord:l,from:u}).coord,l=s.from,h.dataToLayout?(r=Xd.rect,o=l,a=(u=h.dataToLayout(t)).contentRect||u.rect):n&&n.enableLayoutOnlyByCenter&&h.dataToPoint&&(r=Xd.point,o=l,i=h.dataToPoint(t))),(r=null==r?Xd.rect:r)===Xd.rect&&(i=[(a=a||{x:0,y:0,width:e.getWidth(),height:e.getHeight()}).x+a.width/2,a.y+a.height/2]),{type:r,refContainer:a,refPoint:i,boxCoordFrom:o}}function Zd(t){t=t.layoutMode||t.constructor.layoutMode;return N(t)?t:t?{type:t}:null}function qd(l,u,t){var h=t&&t.ignoreSize,t=(V(h)||(h=[h,h]),n(Fd[0],0)),e=n(Fd[1],1);function n(t,e){var n={},i=0,r={},o=0;if(Bd(t,function(t){r[t]=l[t]}),Bd(t,function(t){Bt(u,t)&&(n[t]=r[t]=u[t]),c(n,t)&&i++,c(r,t)&&o++}),h[e])c(u,t[1])?r[t[2]]=null:c(u,t[2])&&(r[t[1]]=null);else if(2!==o&&i){if(!(2<=i))for(var a=0;a<t.length;a++){var s=t[a];if(!Bt(n,s)&&Bt(l,s)){n[s]=l[s];break}}return n}return r}function c(t,e){return null!=t[e]&&"auto"!==t[e]}function i(t,e,n){Bd(t,function(t){e[t]=n[t]})}i(Fd[0],l,t),i(Fd[1],l,e)}function jd(t){return e={},(n=t)&&e&&Bd(Vd,function(t){Bt(n,t)&&(e[t]=n[t])}),e;var e,n}var Kd,$d,Qd,Jd,tf=oa(),g=(u(ef,Kd=Pp),ef.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},ef.prototype.mergeDefaultAndTheme=function(t,e){var n=Zd(this),i=n?jd(t):{};d(t,e.getTheme().get(this.mainType)),d(t,this.getDefaultOption()),n&&qd(t,i,n)},ef.prototype.mergeOption=function(t,e){d(this.option,t,!0);var n=Zd(this);n&&qd(this.option,t,n)},ef.prototype.optionUpdated=function(t,e){},ef.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[ga])return t.defaultOption;var e=tf(this);if(!e.defaultOption){for(var n=[],i=t;i;){var r=i.prototype.defaultOption;r&&n.push(r),i=i.superClass}for(var o={},a=n.length-1;0<=a;a--)o=d(o,n[a],!0);e.defaultOption=o}return e.defaultOption},ef.prototype.getReferringComponents=function(t,e){var n=t+"Id";return ha(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},ef.prototype.getBoxLayoutParams=function(){return e=!1,{left:(t=this).getShallow("left",e),top:t.getShallow("top",e),right:t.getShallow("right",e),bottom:t.getShallow("bottom",e),width:t.getShallow("width",e),height:t.getShallow("height",e)};var t,e},ef.prototype.getZLevelKey=function(){return""},ef.prototype.setZLevel=function(t){this.option.zlevel=t},ef.protoInitialize=((Tp=ef.prototype).type="component",Tp.id="",Tp.name="",Tp.mainType="",Tp.subType="",void(Tp.componentIndex=0)),ef);function ef(t,e,n){t=Kd.call(this,t,e,n)||this;return t.uid=zp("ec_cpt_model"),t}function nf(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}va(g,Pp),wa(g),Qd={},($d=g).registerSubTypeDefaulter=function(t,e){t=ya(t);Qd[t.main]=e},$d.determineSubType=function(t,e){var n,i=e.type;return i||(n=ya(t).main,$d.hasSubTypes(t)&&Qd[n]&&(i=Qd[n](e))),i},Jd=function(t){var e=[];nt(g.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=B(e,function(t){return ya(t).main}),"dataset"!==t&&k(e,"dataset")<=0&&e.unshift("dataset");return e},g.topologicalTravel=function(t,e,n,i){if(t.length){a={},s=[],nt(o=e,function(n){var e,i,r=nf(a,n),t=r.originalDeps=Jd(n),t=(e=o,i=[],nt(t,function(t){0<=k(e,t)&&i.push(t)}),i);r.entryCount=t.length,0===r.entryCount&&s.push(n),nt(t,function(t){k(r.predecessor,t)<0&&r.predecessor.push(t);var e=nf(a,t);k(e.successor,t)<0&&e.successor.push(n)})});var o,a,s,e={graph:a,noEntryList:s},r=e.graph,l=e.noEntryList,u={};for(nt(t,function(t){u[t]=!0});l.length;){var h=l.pop(),c=r[h],p=!!u[h];p&&(n.call(i,h,c.originalDeps.slice()),delete u[h]),nt(c.successor,p?f:d)}nt(u,function(){throw new Error("")})}function d(t){r[t].entryCount--,0===r[t].entryCount&&l.push(t)}function f(t){u[t]=!0,d(t)}};var rf,of,v={color:{},darkColor:{},size:{}},af=v.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(rf in P(af,{primary:af.neutral80,secondary:af.neutral70,tertiary:af.neutral60,quaternary:af.neutral50,disabled:af.neutral20,border:af.neutral30,borderTint:af.neutral20,borderShade:af.neutral40,background:af.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:af.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:af.neutral70,axisLineTint:af.neutral40,axisTick:af.neutral70,axisTickMinor:af.neutral60,axisLabel:af.neutral70,axisSplitLine:af.neutral15,axisMinorSplitLine:af.neutral05}),af)af.hasOwnProperty(rf)&&(of=af[rf],"theme"===rf?v.darkColor.theme=af.theme.slice():"highlight"===rf?v.darkColor.highlight="rgba(255,231,130,0.4)":0===rf.indexOf("accent")?v.darkColor[rf]=Ri(of,null,function(t){return.5*t},function(t){return Math.min(1,1.3-t)}):v.darkColor[rf]=Ri(of,null,function(t){return.9*t},function(t){return 1-Math.pow(t,1.5)}));v.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var Dp="",Ta=("undefined"!=typeof navigator&&(Dp=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),Ec=v.color.theme[0],$p=Ri(Ec,null,null,.9),sf={darkMode:"auto",colorBy:"series",color:v.color.theme,gradientColor:[$p,Ec],aria:{decal:{decals:[{color:Ta,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ta,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ta,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ta,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ta,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ta,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Dp.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},lf=it(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),uf="original",hf="arrayRows",cf="objectRows",pf="keyedColumns",df="typedArray",ff="unknown",gf="column",yf="row",mf={Must:1,Might:2,Not:3},vf=oa();function _f(n,t,e){var r,o,a,i,s,l={},u=bf(t);return u&&n&&(r=[],o=[],t=t.ecModel,t=vf(t).datasetMap,u=u.uid+"_"+e.seriesLayoutBy,nt(n=n.slice(),function(t,e){t=N(t)?t:n[e]={name:t};"ordinal"===t.type&&null==a&&(a=e,i=c(t)),l[t.name]=[]}),s=t.get(u)||t.set(u,{categoryWayDim:i,valueWayDim:0}),nt(n,function(t,e){var n,i=t.name,t=c(t);null==a?(n=s.valueWayDim,h(l[i],n,t),h(o,n,t),s.valueWayDim+=t):a===e?(h(l[i],0,t),h(r,0,t)):(n=s.categoryWayDim,h(l[i],n,t),h(o,n,t),s.categoryWayDim+=t)}),r.length&&(l.itemName=r),o.length)&&(l.seriesName=o),l;function h(t,e,n){for(var i=0;i<n;i++)t.push(e+i)}function c(t){t=t.dimsDef;return t?t.length:1}}function xf(t,l,u){var h,c,p,e={};return bf(t)&&(h=l.sourceFormat,c=l.dimensionsDefine,h!==cf&&h!==pf||nt(c,function(t,e){"name"===(N(t)?t.name:t)&&(p=e)}),t=function(){for(var t={},e={},n=[],i=0,r=Math.min(5,u);i<r;i++){var o=Sf(l.data,h,l.seriesLayoutBy,c,l.startIndex,i),a=(n.push(o),o===mf.Not);if(a&&null==t.v&&i!==p&&(t.v=i),null!=t.n&&t.n!==t.v&&(a||n[t.n]!==mf.Not)||(t.n=i),s(t)&&n[t.n]!==mf.Not)return t;a||(o===mf.Might&&null==e.v&&i!==p&&(e.v=i),null!=e.n&&e.n!==e.v)||(e.n=i)}function s(t){return null!=t.v&&null!=t.n}return s(t)?t:s(e)?e:null}())&&(e.value=[t.v],t=null!=p?p:t.n,e.itemName=[t],e.seriesName=[t]),e}function bf(t){if(!t.get("data",!0))return ha(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},ua).models[0]}function wf(t,e){return Sf(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function Sf(t,e,n,i,r,o){var a,s,l;if(!gt(t)){if(i&&(N(i=i[o])?(s=i.name,l=i.type):F(i)&&(s=i)),null!=l)return"ordinal"===l?mf.Must:mf.Not;if(e===hf){var u=t;if(n===yf){for(var h=u[o],c=0;c<(h||[]).length&&c<5;c++)if(null!=(a=m(h[r+c])))return a}else for(c=0;c<u.length&&c<5;c++){var p=u[r+c];if(p&&null!=(a=m(p[o])))return a}}else if(e===cf){var d=t;if(!s)return mf.Not;for(c=0;c<d.length&&c<5;c++)if((g=d[c])&&null!=(a=m(g[s])))return a}else if(e===pf){if(!s)return mf.Not;if(!(h=t[s])||gt(h))return mf.Not;for(c=0;c<h.length&&c<5;c++)if(null!=(a=m(h[c])))return a}else if(e===uf)for(var f=t,c=0;c<f.length&&c<5;c++){var g,y=Ko(g=f[c]);if(!V(y))return mf.Not;if(null!=(a=m(y[o])))return a}}return mf.Not;function m(t){var e=F(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?mf.Might:mf.Not:e&&"-"!==t?mf.Must:void 0}}var Mf=it();var Tf,If,Cf,kf=oa(),Df=(oa(),Lf.prototype.getColorFromPalette=function(t,e,n){var i=Zo(this.get("color",!0)),r=this.get("colorLayer",!0),o=this,a=kf;return a=a(e=e||o),o=a.paletteIdx||0,(e=a.paletteNameMap=a.paletteNameMap||{}).hasOwnProperty(t)?e[t]:(r=(r=n==null||!r?i:Af(r,n))||i)&&r.length?(n=r[o],t&&(e[t]=n),a.paletteIdx=(o+1)%r.length,n):void 0},Lf.prototype.clearColorPalette=function(){var t,e;(e=kf)(t=this).paletteIdx=0,e(t).paletteNameMap={}},Lf);function Lf(){}function Af(t,e){for(var n=t.length,i=0;i<n;i++)if(t[i].length>e)return t[i];return t[n-1]}var Pf,Of="\0_ec_inner",Rf=(u(o,Pf=Pp),o.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Pp(i),this._locale=new Pp(r),this._optionManager=o},o.prototype.setOption=function(t,e,n){e=Ef(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},o.prototype.resetOption=function(t,e){return this._resetOption(t,Ef(e))},o.prototype._resetOption=function(t,e){var n,i=!1,r=this._optionManager;return t&&"recreate"!==t||(n=r.mountOption("recreate"===t),this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(n,e)):Cf(this,n),i=!0),"timeline"!==t&&"media"!==t||this.restoreData(),t&&"recreate"!==t&&"timeline"!==t||(n=r.getTimelineOption(this))&&(i=!0,this._mergeOption(n,e)),t&&"recreate"!==t&&"media"!==t||(n=r.getMediaOption(this)).length&&nt(n,function(t){i=!0,this._mergeOption(t,e)},this),i},o.prototype.mergeOption=function(t){this._mergeOption(t,null)},o.prototype._mergeOption=function(i,t){var r=this.option,h=this._componentsMap,c=this._componentsCount,n=[],o=it(),p=t&&t.replaceMergeMainTypeMap;vf(this).datasetMap=it(),nt(i,function(t,e){null!=t&&(g.hasClass(e)?e&&(n.push(e),o.set(e,!0)):r[e]=null==r[e]?y(t):d(r[e],t,!0))}),p&&p.each(function(t,e){g.hasClass(e)&&!o.get(e)&&(n.push(e),o.set(e,!0))}),g.topologicalTravel(n,g.getAllClassMainTypes(),function(o){var a,t=function(t,e,n){return(e=(e=Mf.get(e))&&e(t))?n.concat(e):n}(this,o,Zo(i[o])),e=h.get(o),n=e?p&&p.get(o)?"replaceMerge":"normalMerge":"replaceAll",e=$o(e,t,n),s=(ia(e,o,g),r[o]=null,h.set(o,null),c.set(o,0),[]),l=[],u=0;nt(e,function(t,e){var n=t.existing,i=t.newOption;if(i){var r=g.getClass(o,t.keyInfo.subType,!("series"===o));if(!r)return;if("tooltip"===o){if(a)return;a=!0}n&&n.constructor===r?(n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1)):(e=P({componentIndex:e},t.keyInfo),P(n=new r(i,this,this,e),e),t.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0))}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(s.push(n.option),l.push(n),u++):(s.push(void 0),l.push(void 0))},this),r[o]=s,h.set(o,l),c.set(o,u),"series"===o&&Tf(this)},this),this._seriesIndices||Tf(this)},o.prototype.getOption=function(){var a=y(this.option);return nt(a,function(t,e){if(g.hasClass(e)){for(var n=Zo(t),i=n.length,r=!1,o=i-1;0<=o;o--)n[o]&&!na(n[o])?r=!0:(n[o]=null,r||i--);n.length=i,a[e]=n}}),delete a[Of],a},o.prototype.setTheme=function(t){this._theme=new Pp(t),this._resetOption("recreate",null)},o.prototype.getTheme=function(){return this._theme},o.prototype.getLocaleModel=function(){return this._locale},o.prototype.setUpdatePayload=function(t){this._payload=t},o.prototype.getUpdatePayload=function(){return this._payload},o.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]}},o.prototype.queryComponents=function(t){var e,n,i,r,o,a=t.mainType;return a&&(e=t.index,n=t.id,i=t.name,r=this._componentsMap.get(a))&&r.length?(null!=e?(o=[],nt(Zo(e),function(t){r[t]&&o.push(r[t])})):o=null!=n?zf("id",n,r):null!=i?zf("name",i,r):ut(r,function(t){return!!t}),Nf(o,t)):[]},o.prototype.findComponents=function(t){var e,n=t.query,i=t.mainType,r=(r=i+"Index",o=i+"Id",e=i+"Name",!(n=n)||null==n[r]&&null==n[o]&&null==n[e]?null:{mainType:i,index:n[r],id:n[o],name:n[e]}),o=r?this.queryComponents(r):ut(this._componentsMap.get(i),function(t){return!!t});return n=Nf(o,t),t.filter?ut(n,t.filter):n},o.prototype.eachComponent=function(t,e,n){var i=this._componentsMap;if(z(t)){var r=e,o=t;i.each(function(t,e){for(var n=0;t&&n<t.length;n++){var i=t[n];i&&o.call(r,e,i,i.componentIndex)}})}else for(var a=F(t)?i.get(t):N(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},o.prototype.getSeriesByName=function(t){var e=ta(t,null);return ut(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},o.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},o.prototype.getSeriesByType=function(e){return ut(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},o.prototype.getSeries=function(){return ut(this._componentsMap.get("series"),function(t){return!!t})},o.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},o.prototype.eachSeries=function(n,i){If(this),nt(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)},this)},o.prototype.eachRawSeries=function(e,n){nt(this._componentsMap.get("series"),function(t){t&&e.call(n,t,t.componentIndex)})},o.prototype.eachSeriesByType=function(n,i,r){If(this),nt(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];e.subType===n&&i.call(r,e,t)},this)},o.prototype.eachRawSeriesByType=function(t,e,n){return nt(this.getSeriesByType(t),e,n)},o.prototype.isSeriesFiltered=function(t){return If(this),null==this._seriesIndicesMap.get(t.componentIndex)},o.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},o.prototype.filterSeries=function(n,i){If(this);var r=[];nt(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)&&r.push(t)},this),this._seriesIndices=r,this._seriesIndicesMap=it(r)},o.prototype.restoreData=function(n){Tf(this);var t=this._componentsMap,i=[];t.each(function(t,e){g.hasClass(e)&&i.push(e)}),g.topologicalTravel(i,g.getAllClassMainTypes(),function(e){nt(t.get(e),function(t){!t||"series"===e&&function(t,e){{var n,i;if(e)return n=e.seriesIndex,i=e.seriesId,e=e.seriesName,null!=n&&t.componentIndex!==n||null!=i&&t.id!==i||null!=e&&t.name!==e}}(t,n)||t.restoreData()})})},o.internalField=(Tf=function(t){var e=t._seriesIndices=[];nt(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=it(e)},If=function(t){},void(Cf=function(t,e){t.option={},t.option[Of]=1,t._componentsMap=it({series:[]}),t._componentsCount=it();var n,i,r=e.aria;N(r)&&null==r.enabled&&(r.enabled=!0),n=e,r=t._theme.option,i=n.color&&!n.colorLayer,nt(r,function(t,e){"colorLayer"===e&&i||"color"===e&&n.color||g.hasClass(e)||("object"==typeof t?n[e]=n[e]?d(n[e],t,!1):y(t):null==n[e]&&(n[e]=t))}),d(e,sf,!1),t._mergeOption(e,null)})),o);function o(){return null!==Pf&&Pf.apply(this,arguments)||this}function zf(e,t,n){var i,r;return V(t)?(i=it(),nt(t,function(t){null!=t&&null!=ta(t,null)&&i.set(t,!0)}),ut(n,function(t){return t&&i.get(t[e])})):(r=ta(t,null),ut(n,function(t){return t&&null!=r&&t[e]===r}))}function Nf(t,e){return e.hasOwnProperty("subType")?ut(t,function(t){return t&&t.subType===e.subType}):t}function Ef(t){var e=it();return t&&nt(Zo(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}at(Rf,Df);function Bf(e){nt(Vf,function(t){this[t]=S(e[t],e)},this)}var Vf=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Ff=/^(min|max)?(.+)$/,Hf=(Gf.prototype.setOption=function(t,e,n){t&&(nt(Zo(t.series),function(t){t&&t.data&&gt(t.data)&&kt(t.data)}),nt(Zo(t.dataset),function(t){t&&t.source&&gt(t.source)&&kt(t.source)})),t=y(t);var i=this._optionBackup,t=function(t,n,i){var e,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,h=!!t.media,c=!!(l||s||a&&a.timeline);a?(r=a).timeline||(r.timeline=s):((c||h)&&(t.options=t.media=null),r=t);h&&V(u)&&nt(u,function(t){t&&t.option&&(t.query?o.push(t):e=e||t)});function p(e){nt(n,function(t){t(e,i)})}return p(r),nt(l,p),nt(o,function(t){return p(t.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:e,mediaList:o}}(t,e,!i);this._newBaseOption=t.baseOption,i?(t.timelineOptions.length&&(i.timelineOptions=t.timelineOptions),t.mediaList.length&&(i.mediaList=t.mediaList),t.mediaDefault&&(i.mediaDefault=t.mediaDefault)):this._optionBackup=t},Gf.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],y(t?e.baseOption:this._newBaseOption)},Gf.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?y(n[t.getCurrentIndex()]):e},Gf.prototype.getMediaOption=function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,o=[],a=[];if(i.length||r){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},r=!0;return nt(t,function(t,e){var n,e=e.match(Ff);e&&e[1]&&e[2]&&(n=e[1],e=e[2].toLowerCase(),e=i[e],t=t,("min"===(n=n)?t<=e:"max"===n?e<=t:e===t)||(r=!1))}),r}(i[u].query,e,n)||o.push(u);(o=!o.length&&r?[-1]:o).length&&(s=o,l=this._currentMediaIndices,s.join(",")!==l.join(","))&&(a=B(o,function(t){return y((-1===t?r:i[t]).option)})),this._currentMediaIndices=o}return a},Gf);function Gf(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}var Wf=nt,Uf=N,Xf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Yf(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Xf.length;n<i;n++){var r=Xf[n],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?d(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?d(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function Zf(t,e,n){var i,r;t&&t[e]&&(t[e].normal||t[e].emphasis)&&(i=t[e].normal,r=t[e].emphasis,i&&(n?(t[e].normal=t[e].emphasis=null,E(t[e],i)):t[e]=i),r)&&(t.emphasis=t.emphasis||{},(t.emphasis[e]=r).focus&&(t.emphasis.focus=r.focus),r.blurScope)&&(t.emphasis.blurScope=r.blurScope)}function qf(t){Zf(t,"itemStyle"),Zf(t,"lineStyle"),Zf(t,"areaStyle"),Zf(t,"label"),Zf(t,"labelLine"),Zf(t,"upperLabel"),Zf(t,"edgeLabel")}function jf(t,e){var n=Uf(t)&&t[e],i=Uf(n)&&n.textStyle;if(i)for(var r=0,o=jo.length;r<o;r++){var a=jo[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function Kf(t){t&&(qf(t),jf(t,"label"),t.emphasis)&&jf(t.emphasis,"label")}function $f(t){return V(t)?t:t?[t]:[]}function Qf(t){return(V(t)?t[0]:t)||{}}function Jf(e,t){Wf($f(e.series),function(t){if(Uf(t))if(Uf(t)){Yf(t),qf(t),jf(t,"label"),jf(t,"upperLabel"),jf(t,"edgeLabel"),t.emphasis&&(jf(t.emphasis,"label"),jf(t.emphasis,"upperLabel"),jf(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(Yf(e),Kf(e)),t.markLine),i=(n&&(Yf(n),Kf(n)),t.markArea),r=(i&&Kf(i),t.data);if("graph"===t.type){var r=r||t.nodes,o=t.links||t.edges;if(o&&!gt(o))for(var a=0;a<o.length;a++)Kf(o[a]);nt(t.categories,function(t){qf(t)})}if(r&&!gt(r))for(a=0;a<r.length;a++)Kf(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)Kf(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)V(l[a])?(Kf(l[a][0]),Kf(l[a][1])):Kf(l[a]);"gauge"===t.type?(jf(t,"axisLabel"),jf(t,"title"),jf(t,"detail")):"treemap"===t.type?(Zf(t.breadcrumb,"itemStyle"),nt(t.levels,function(t){qf(t)})):"tree"===t.type&&qf(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),Wf(n,function(t){Wf($f(e[t]),function(t){t&&(jf(t,"axisLabel"),jf(t.axisPointer,"label"))})}),Wf($f(e.parallel),function(t){t=t&&t.parallelAxisDefault;jf(t,"axisLabel"),jf(t&&t.axisPointer,"label")}),Wf($f(e.calendar),function(t){Zf(t,"itemStyle"),jf(t,"dayLabel"),jf(t,"monthLabel"),jf(t,"yearLabel")}),Wf($f(e.radar),function(t){jf(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)}),Wf($f(e.geo),function(t){Uf(t)&&(Kf(t),Wf($f(t.regions),function(t){Kf(t)}))}),Wf($f(e.timeline),function(t){Kf(t),Zf(t,"label"),Zf(t,"itemStyle"),Zf(t,"controlStyle",!0);t=t.data;V(t)&&nt(t,function(t){N(t)&&(Zf(t,"label"),Zf(t,"itemStyle"))})}),Wf($f(e.toolbox),function(t){Zf(t,"iconStyle"),Wf(t.feature,function(t){Zf(t,"iconStyle")})}),jf(Qf(e.axisPointer),"label"),jf(Qf(e.tooltip).axisPointer,"label")}function tg(e){e&&nt(eg,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var eg=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],ng=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ig=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function rg(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<ig.length;n++){var i=ig[n][1],r=ig[n][0];null!=e[i]&&(e[r]=e[i])}}function og(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function ag(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function sg(e,t){Jf(e,t),e.series=Zo(e.series),nt(e.series,function(t){if(N(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),og(t.label),(e=t.data)&&!gt(e))for(var i=0;i<e.length;i++)og(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===n){var r=function(t,e){for(var n=e.split(","),i=t,r=0;r<n.length&&null!=(i=i&&i[n[r]]);r++);return i}(t,"pointer.color");if(null!=r){var o=t;var a="itemStyle.color";var s=void 0;for(var l,u=a.split(","),h=o,c=0;c<u.length-1;c++)null==h[l=u[c]]&&(h[l]={}),h=h[l];!s&&null!=h[u[c]]||(h[u[c]]=r)}}else if("bar"===n){if(rg(t),rg(t.backgroundStyle),rg(t.emphasis),(e=t.data)&&!gt(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(rg(e[i]),rg(e[i]&&e[i].emphasis))}else"sunburst"===n?((a=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),ag(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,ag)):"graph"===n||"sankey"===n?(o=t)&&null!=o.focusNodeAdjacency&&(o.emphasis=o.emphasis||{},null==o.emphasis.focus)&&(o.emphasis.focus="adjacency"):"map"===n&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation)&&E(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),tg(t)}}),e.dataRange&&(e.visualMap=e.dataRange),nt(ng,function(t){t=e[t];t&&nt(t=V(t)?t:[t],function(t){tg(t)})})}var lg,ug,hg=function(t){this.data=t.data||(t.sourceFormat===pf?{}:[]),this.sourceFormat=t.sourceFormat||ff,this.seriesLayoutBy=t.seriesLayoutBy||gf,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;n<e.length;n++){var i=e[n];null==i.type&&wf(this,n)===mf.Must&&(i.type="ordinal")}};function cg(t){return t instanceof hg}function pg(t,e,n){n=n||fg(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:gg(r),startIndex:a,dimensionsDetectedCount:o};{var s;e===hf?(s=t,"auto"===i||null==i?yg(function(t){null!=t&&"-"!==t&&(F(t)?null==a&&(a=1):a=0)},n,s,10):a=H(i)?i:i?1:0,r||1!==a||(r=[],yg(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===yf?s.length:s[0]?s[0].length:null):e===cf?r=r||function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return ct(e)}(t):e===pf?r||(r=[],nt(t,function(t,e){r.push(e)})):e===uf&&(i=Ko(t[0]),o=V(i)&&i.length||1)}return{startIndex:a,dimensionsDefine:gg(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new hg({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:y(e)})}function dg(t){return new hg({data:t,sourceFormat:gt(t)?df:uf})}function fg(t){var e=ff;if(gt(t))e=df;else if(V(t)){0===t.length&&(e=hf);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(V(r)||gt(r)){e=hf;break}if(N(r)){e=cf;break}}}}else if(N(t))for(var o in t)if(Bt(t,o)&&st(t[o])){e=pf;break}return e}function gg(t){var i;if(t)return i=it(),B(t,function(t,e){var n,t={name:(t=N(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};return null!=t.name&&(t.name+="",null==t.displayName&&(t.displayName=t.name),(n=i.get(t.name))?t.name+="-"+n.count++:i.set(t.name,{count:1})),t})}function yg(t,e,n,i){if(e===yf)for(var r=0;r<n.length&&r<i;r++)t(n[r]?n[r][0]:null,r);else for(var o=n[0]||[],r=0;r<o.length&&r<i;r++)t(o[r],r)}function mg(t){t=t.sourceFormat;return t===cf||t===pf}wg.prototype.getSource=function(){return this._source},wg.prototype.count=function(){return 0},wg.prototype.getItem=function(t,e){},wg.prototype.appendData=function(t){},wg.prototype.clean=function(){},wg.protoInitialize=((Tp=wg.prototype).pure=!1,void(Tp.persistent=!0)),wg.internalField=(ug=function(t,e,n){var i,r=n.sourceFormat,o=n.seriesLayoutBy,a=n.startIndex,n=n.dimensionsDefine;P(t,lg[Og(r,o)]),r===df?(t.getItem=vg,t.count=xg,t.fillStorage=_g):(i=Ig(r,o),t.getItem=S(i,null,e,a,n),i=Dg(r,o),t.count=S(i,null,e,a,n))},vg=function(t,e){t-=this._offset,e=e||[];for(var n=this._data,i=this._dimSize,r=i*t,o=0;o<i;o++)e[o]=n[r+o];return e},_g=function(t,e,n,i){for(var r=this._data,o=this._dimSize,a=0;a<o;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=r[p*o+a];(c[t+p]=d)<l&&(l=d),u<d&&(u=d)}s[0]=l,s[1]=u}},xg=function(){return this._data?this._data.length/this._dimSize:0},(Tp={})[hf+"_"+gf]={pure:!0,appendData:Sg},Tp[hf+"_"+yf]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},Tp[cf]={pure:!0,appendData:Sg},Tp[pf]={pure:!0,appendData:function(t){var r=this._data;nt(t,function(t,e){for(var n=r[e]||(r[e]=[]),i=0;i<(t||[]).length;i++)n.push(t[i])})}},Tp[uf]={appendData:Sg},Tp[df]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(lg=Tp));var vg,_g,xg,bg=wg;function wg(t,e){var t=cg(t)?t:dg(t),n=(this._source=t,this._data=t.data),i=t.sourceFormat;t.seriesLayoutBy,i===df&&(this._offset=0,this._dimSize=e,this._data=n),ug(this,n,t)}function Sg(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function Mg(t,e,n,i){return t[i]}($p={})[hf+"_"+gf]=function(t,e,n,i){return t[i+e]},$p[hf+"_"+yf]=function(t,e,n,i,r){i+=e;for(var o=r||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[i]:null}return o},$p[cf]=Mg,$p[pf]=function(t,e,n,i,r){for(var o=r||[],a=0;a<n.length;a++){var s=n[a].name,s=null!=s?t[s]:null;o[a]=s?s[i]:null}return o},$p[uf]=Mg;var Tg=$p;function Ig(t,e){return Tg[Og(t,e)]}function Cg(t,e,n){return t.length}(Ec={})[hf+"_"+gf]=function(t,e,n){return Math.max(0,t.length-e)},Ec[hf+"_"+yf]=function(t,e,n){t=t[0];return t?Math.max(0,t.length-e):0},Ec[cf]=Cg,Ec[pf]=function(t,e,n){n=n[0].name,t=null!=n?t[n]:null;return t?t.length:0},Ec[uf]=Cg;var kg=Ec;function Dg(t,e){return kg[Og(t,e)]}function Lg(t,e,n){return t[e]}(Ta={})[hf]=Lg,Ta[cf]=function(t,e,n){return t[n]},Ta[pf]=Lg,Ta[uf]=function(t,e,n){t=Ko(t);return t instanceof Array?t[e]:t},Ta[df]=Lg;var Ag=Ta;function Pg(t){return Ag[t]}function Og(t,e){return t===hf?t+"_"+e:t}function Rg(t,e,n){if(t){var i,r,e=t.getRawDataItem(e);if(null!=e)return i=(r=t.getStore()).getSource().sourceFormat,null!=n?(t=t.getDimensionIndex(n),n=r.getDimensionProperty(t),Pg(i)(e,t,n)):(r=e,i===uf?Ko(e):r)}}var zg=/\{@(.+?)\}/g,Dp=(Ng.prototype.getDataParams=function(t,e){var n=this.getData(e),i=this.getRawValue(t,e),r=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),t=s&&s[n.getItemVisual(t,"drawType")||"fill"],s=s&&s.stroke,l=this.mainType,u="series"===l,n=n.userOutput&&n.userOutput.get();return{componentType:l,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:u?this.subType:null,seriesIndex:this.seriesIndex,seriesId:u?this.id:null,seriesName:u?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:i,color:t,borderColor:s,dimensionNames:n?n.fullDimensions:null,encode:n?n.encode:null,$vars:["seriesName","name","value"]}},Ng.prototype.getFormattedLabel=function(i,t,e,n,r,o){t=t||"normal";var a=this.getData(e),e=this.getDataParams(i,e);return o&&(e.value=o.interpolatedValue),null!=n&&V(e.value)&&(e.value=e.value[n]),z(r=r||a.getItemModel(i).get("normal"===t?["label","formatter"]:[t,"label","formatter"]))?(e.status=t,e.dimensionIndex=n,r(e)):F(r)?Id(r,e).replace(zg,function(t,e){var n=e.length,n=("["===e.charAt(0)&&"]"===e.charAt(n-1)&&(e=+e.slice(1,n-1)),Rg(a,i,e));return null!=(n=o&&V(o.interpolatedValue)&&0<=(e=a.getDimensionIndex(e))?o.interpolatedValue[e]:n)?n+"":""}):void 0},Ng.prototype.getRawValue=function(t,e){return Rg(this.getData(e),t)},Ng.prototype.formatTooltip=function(t,e,n){},Ng);function Ng(){}function Eg(t){var e,n;return N(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Bg(t){return new Vg(t)}Fg.prototype.perform=function(t){var e,n,i=this._upstream,r=t&&t.skip,o=(this._dirty&&i&&((o=this.context).data=o.outputData=i.context.outputData),this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(e=this._plan(this.context)),u(this._modBy)),a=this._modDataCount||0,s=u(t&&t.modBy),l=t&&t.modDataCount||0;function u(t){return t=1<=t?t:1}o===s&&a===l||(e="reset"),!this._dirty&&"reset"!==e||(this._dirty=!1,n=this._doReset(r)),this._modBy=s,this._modDataCount=l;o=t&&t.step;if(this._dueEnd=i?i._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,c=Math.min(null!=o?this._dueIndex+o:1/0,this._dueEnd);if(!r&&(n||h<c)){var p=this._progress;if(V(p))for(var d=0;d<p.length;d++)this._doProgress(p[d],h,c,s,l);else this._doProgress(p,h,c,s,l)}this._dueIndex=c;a=null!=this._settedOutputEnd?this._settedOutputEnd:c;this._outputDueEnd=a}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},Fg.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},Fg.prototype._doProgress=function(t,e,n,i,r){Zg.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:Zg.next},this.context)},Fg.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(n=e.forceFirstProgress,e=e.progress),V(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,n,t=this._downstream;return t&&t.dirty(),n},Fg.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},Fg.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},Fg.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},Fg.prototype.getUpstream=function(){return this._upstream},Fg.prototype.getDownstream=function(){return this._downstream},Fg.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var Vg=Fg;function Fg(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}var Hg,Gg,Wg,Ug,Xg,Yg,Zg=Yg={reset:function(t,e,n,i){Gg=t,Hg=e,Wg=n,Ug=i,Xg=Math.ceil(Ug/Wg),Yg.next=1<Wg&&0<Ug?jg:qg}};function qg(){return Gg<Hg?Gg++:null}function jg(){var t=Gg%Xg*Wg+Math.ceil(Gg/Xg),t=Hg<=Gg?null:t<Ug?t:Gg;return Gg++,t}function Kg(t,e){e=e&&e.type;return"ordinal"===e?t:null==(t="time"!==e||H(t)||null==t||"-"===t?t:+No(t))||""===t?NaN:Number(t)}var $g=it({number:function(t){return parseFloat(t)},time:function(t){return+No(t)},trim:function(t){return F(t)?It(t):t}});function Qg(t){return $g.get(t)}var Jg={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}},ty=(ey.prototype.evaluate=function(t){return H(t)?this._opFn(t,this._rvalFloat):this._opFn(Ho(t),this._rvalFloat)},ey);function ey(t,e){H(e)||f(""),this._opFn=Jg[t],this._rvalFloat=Ho(e)}iy.prototype.evaluate=function(t,e){var n=H(t)?t:Ho(t),i=H(e)?e:Ho(e),r=isNaN(n),o=isNaN(i);return r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o&&(r=F(t),o=F(e),r&&(n=o?t:0),o)&&(i=r?e:0),n<i?this._resultLT:i<n?-this._resultLT:0};var ny=iy;function iy(t,e){t="desc"===t;this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}oy.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=Ho(t)===this._rvalFloat),this._isEQ?n:!n};var ry=oy;function oy(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Ho(e)}sy.prototype.getRawData=function(){throw new Error("not supported")},sy.prototype.getRawDataItem=function(t){throw new Error("not supported")},sy.prototype.cloneRawData=function(){},sy.prototype.getDimensionInfo=function(t){},sy.prototype.cloneAllDimensionInfo=function(){},sy.prototype.count=function(){},sy.prototype.retrieveValue=function(t,e){},sy.prototype.retrieveValueFromItem=function(t,e){},sy.prototype.convertValue=Kg;var ay=sy;function sy(){}function ly(t){return fy(t.sourceFormat)||f(""),t.data}function uy(t){var e=t.sourceFormat,n=t.data;if(fy(e)||f(""),e===hf){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===cf){for(i=[],r=0,o=n.length;r<o;r++)i.push(P({},n[r]));return i}}function hy(t,e,n){if(null!=n)return H(n)||!isNaN(n)&&!Bt(e,n)?t[n]:Bt(e,n)?e[n]:void 0}function cy(t){return y(t)}var py=it();function dy(t,e){var n=Zo(t),t=n.length;t||f("");for(var i=0,r=t;i<r;i++)e=function(t,i){i.length||f("");N(t)||f("");var e=t.type,d=py.get(e);d||f("");e=B(i,function(t){var e=t,t=d,n=new ay,i=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex,a=(e.seriesLayoutBy!==gf&&f(""),[]),s={};if(h=e.dimensionsDefine)nt(h,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};a.push(e),null!=n&&(Bt(s,n)&&f(""),s[n]=e)});else for(var l=0;l<e.dimensionsDetectedCount;l++)a.push({index:l});var u=Ig(r,gf),h=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return u(i,o,a,t)},n.getRawData=S(ly,null,e)),n.cloneRawData=S(uy,null,e),Dg(r,gf)),c=(n.count=S(h,null,i,o,a),Pg(r)),p=(n.retrieveValue=function(t,e){t=u(i,o,a,t);return p(t,e)},n.retrieveValueFromItem=function(t,e){var n;return null!=t&&(n=a[e])?c(t,e,n.name):void 0});return n.getDimensionInfo=S(hy,null,a,s),n.cloneAllDimensionInfo=S(cy,null,a),n});return B(Zo(d.transform({upstream:e[0],upstreamList:e,config:y(t.config)})),function(t,e){N(t)||f(""),t.data||f("");fy(fg(t.data))||f("");var n=i[0],e=n&&0===e&&!t.dimensions?((e=n.startIndex)&&(t.data=n.data.slice(0,e).concat(t.data)),{seriesLayoutBy:gf,sourceHeader:e,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:gf,sourceHeader:0,dimensions:t.dimensions};return pg(t.data,e,null)})}(n[i],e),i!==r-1&&(e.length=Math.max(e.length,1));return e}function fy(t){return t===hf||t===cf}var gy,Tp="undefined",yy=typeof Uint32Array==Tp?Array:Uint32Array,my=typeof Uint16Array==Tp?Array:Uint16Array,vy=typeof Int32Array==Tp?Array:Int32Array,$p=typeof Float64Array==Tp?Array:Float64Array,_y={float:$p,int:vy,ordinal:Array,number:Array,time:$p};function xy(t){return 65535<t?yy:my}function by(){return[1/0,-1/0]}function wy(t,e,n,i,r){n=_y[n||"float"];if(r){var o=t[e],a=o&&o.length;if(a!==i){for(var s=new n(i),l=0;l<a;l++)s[l]=o[l];t[e]=s}}else t[e]=new n(i)}l.prototype.initData=function(t,e,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),r=this.defaultDimValueGetter=gy[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],mg(i),this._dimensions=B(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},l.prototype.getProvider=function(){return this._provider},l.prototype.getSource=function(){return this._provider.getSource()},l.prototype.ensureCalculationDimension=function(t,e){var n=this._calcDimNameToIdx,i=this._dimensions,r=n.get(t);if(null!=r){if(i[r].type===e)return r}else r=i.length;return i[r]={type:e},n.set(t,r),this._chunks[r]=new _y[e||"float"](this._rawCount),this._rawExtent[r]=by(),r},l.prototype.collectOrdinalMeta=function(t,e){for(var n=this._chunks[t],i=this._dimensions[t],r=this._rawExtent,o=i.ordinalOffset||0,a=n.length,s=(0===o&&(r[t]=by()),r[t]),l=o;l<a;l++){var u=n[l]=e.parseAndCollect(n[l]);isNaN(u)||(s[0]=Math.min(u,s[0]),s[1]=Math.max(u,s[1]))}i.ordinalMeta=e,i.ordinalOffset=a,i.type="ordinal"},l.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},l.prototype.getDimensionProperty=function(t){t=this._dimensions[t];return t&&t.property},l.prototype.appendData=function(t){var e=this._provider,n=this.count(),t=(e.appendData(t),e.count());return e.persistent||(t+=n),n<t&&this._initDataFromProvider(n,t,!0),[n,t]},l.prototype.appendValues=function(t,e){for(var n=this._chunks,i=this._dimensions,r=i.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++)wy(n,l,(d=i[l]).type,s,!0);for(var u=[],h=a;h<s;h++)for(var c=h-a,p=0;p<r;p++){var d=i[p],f=gy.arrayRows.call(this,t[c]||u,d.property,c,p),g=(n[p][h]=f,o[p]);f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return{start:a,end:this._rawCount=this._count=s}},l.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=B(o,function(t){return t.property}),u=0;u<a;u++){var h=o[u];s[u]||(s[u]=by()),wy(r,u,h.type,e,n)}if(i.fillStorage)i.fillStorage(t,e,r,s);else for(var c=[],p=t;p<e;p++)for(var c=i.getItem(p,c),d=0;d<a;d++){var f=r[d],g=this._dimValueGetter(c,l[d],p,d),f=(f[p]=g,s[d]);g<f[0]&&(f[0]=g),g>f[1]&&(f[1]=g)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent=[]},l.prototype.count=function(){return this._count},l.prototype.get=function(t,e){return 0<=e&&e<this._count&&(t=this._chunks[t])?t[this.getRawIndex(e)]:NaN},l.prototype.getValues=function(t,e){var n=[],i=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)i.push(r)}else i=t;for(var r=0,o=i.length;r<o;r++)n.push(this.get(i[r],e));return n},l.prototype.getByRawIndex=function(t,e){return 0<=e&&e<this._rawCount&&(t=this._chunks[t])?t[e]:NaN},l.prototype.getSum=function(t){var e=0;if(this._chunks[t])for(var n=0,i=this.count();n<i;n++){var r=this.get(t,n);isNaN(r)||(e+=r)}return e},l.prototype.getMedian=function(t){var e=[],t=(this.each([t],function(t){isNaN(t)||e.push(t)}),e.sort(function(t,e){return t-e})),n=this.count();return 0===n?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},l.prototype.indexOfRawIndex=function(t){if(!(t>=this._rawCount||t<0)){if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&n<this._count&&n===t)return t;for(var i=0,r=this._count-1;i<=r;){var o=(i+r)/2|0;if(e[o]<t)i=1+o;else{if(!(e[o]>t))return o;r=o-1}}}return-1},l.prototype.getIndices=function(){var t=this._indices;if(t){var e=t.constructor,n=this._count;if(e===Array)for(var i=new e(n),r=0;r<n;r++)i[r]=t[r];else i=new e(t.buffer,0,n)}else{i=new(e=xy(this._rawCount))(this.count());for(r=0;r<i.length;r++)i[r]=r}return i},l.prototype.filter=function(t,e){if(!this._count)return this;for(var n=this.clone(),i=n.count(),r=new(xy(n._rawCount))(i),o=[],a=t.length,s=0,l=t[0],u=n._chunks,h=0;h<i;h++){var c=void 0,p=n.getRawIndex(h);if(0===a)c=e(h);else if(1===a)c=e(u[l][p],h);else{for(var d=0;d<a;d++)o[d]=u[t[d]][p];o[d]=h,c=e.apply(null,o)}c&&(r[s++]=p)}return s<i&&(n._indices=r),n._count=s,n._extent=[],n._updateGetRawIdx(),n},l.prototype.selectRange=function(t){var e=this.clone(),n=e._count;if(!n)return this;var i=ct(t),r=i.length;if(!r)return this;var o=e.count(),a=new(xy(e._rawCount))(o),s=0,l=i[0],u=t[l][0],h=t[l][1],c=e._chunks,l=!1;if(!e._indices){var p=0;if(1===r){for(var d=c[i[0]],f=0;f<n;f++)(u<=(v=d[f])&&v<=h||isNaN(v))&&(a[s++]=p),p++;l=!0}else if(2===r){for(var d=c[i[0]],g=c[i[1]],y=t[i[1]][0],m=t[i[1]][1],f=0;f<n;f++){var v=d[f],_=g[f];(u<=v&&v<=h||isNaN(v))&&(y<=_&&_<=m||isNaN(_))&&(a[s++]=p),p++}l=!0}}if(!l)if(1===r)for(f=0;f<o;f++){var x=e.getRawIndex(f);(u<=(v=c[i[0]][x])&&v<=h||isNaN(v))&&(a[s++]=x)}else for(f=0;f<o;f++){for(var b=!0,x=e.getRawIndex(f),w=0;w<r;w++){var S=i[w];((v=c[S][x])<t[S][0]||v>t[S][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(f))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},l.prototype.map=function(t,e){var n=this.clone(t);return this._updateDims(n,t,e),n},l.prototype.modify=function(t,e){this._updateDims(this,t,e)},l.prototype._updateDims=function(t,e,n){for(var i=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,u=0;u<e.length;u++)l[e[u]]=by();for(var h=0;h<a;h++){for(var c=t.getRawIndex(h),p=0;p<o;p++)s[p]=i[e[p]][c];s[o]=h;var d=n&&n.apply(null,s);if(null!=d){"object"!=typeof d&&(r[0]=d,d=r);for(u=0;u<d.length;u++){var f=e[u],g=d[u],y=l[f],f=i[f];f&&(f[c]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},l.prototype.lttbDownSample=function(t,e){var n,i=this.clone([t],!0),r=i._chunks[t],o=this.count(),a=0,s=Math.floor(1/e),l=this.getRawIndex(0),u=new(xy(this._rawCount))(Math.min(2*(Math.ceil(o/s)+2),o));u[a++]=l;for(var h=1;h<o-1;h+=s){for(var c=Math.min(h+s,o-1),p=Math.min(h+2*s,o),d=(p+c)/2,f=0,g=c;g<p;g++){var y=r[M=this.getRawIndex(g)];isNaN(y)||(f+=y)}f/=p-c;for(var c=h,m=Math.min(h+s,o),v=h-1,_=r[l],x=-1,b=c,w=-1,S=0,g=c;g<m;g++){var M,y=r[M=this.getRawIndex(g)];isNaN(y)?(S++,w<0&&(w=M)):x<(n=Math.abs((v-d)*(y-_)-(v-g)*(f-_)))&&(x=n,b=M)}0<S&&S<m-c&&(u[a++]=Math.min(w,b),b=Math.max(w,b)),l=u[a++]=b}return u[a++]=this.getRawIndex(o-1),i._count=a,i._indices=u,i.getRawIndex=this._getRawIdx,i},l.prototype.minmaxDownSample=function(t,e){for(var n=this.clone([t],!0),i=n._chunks,r=Math.floor(1/e),o=i[t],a=this.count(),s=new(xy(this._rawCount))(2*Math.ceil(a/r)),l=0,u=0;u<a;u+=r){var h=u,c=o[this.getRawIndex(h)],p=u,d=o[this.getRawIndex(p)],f=r;a<u+r&&(f=a-u);for(var g=0;g<f;g++){var y=o[this.getRawIndex(u+g)];y<c&&(c=y,h=u+g),d<y&&(d=y,p=u+g)}var m=this.getRawIndex(h),v=this.getRawIndex(p);h<p?(s[l++]=m,s[l++]=v):(s[l++]=v,s[l++]=m)}return n._count=l,n._indices=s,n._updateGetRawIdx(),n},l.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=by(),c=new(xy(this._rawCount))(Math.ceil(u/s)),p=0,d=0;d<u;d+=s){u-d<s&&(a.length=s=u-d);for(var f=0;f<s;f++){var g=this.getRawIndex(d+f);a[f]=l[g]}var y=n(a),m=this.getRawIndex(Math.min(d+i(a,y)||0,u-1));(l[m]=y)<h[0]&&(h[0]=y),y>h[1]&&(h[1]=y),c[p++]=m}return r._count=p,r._indices=c,r._updateGetRawIdx(),r},l.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(n){case 0:e(r);break;case 1:e(i[t[0]][a],r);break;case 2:e(i[t[0]][a],i[t[1]][a],r);break;default:for(var s=0,l=[];s<n;s++)l[s]=i[t[s]][a];l[s]=r,e.apply(null,l)}}},l.prototype.getDataExtent=function(t){var e=this._chunks[t],n=by();if(!e)return n;var i=this.count();if(!this._indices)return this._rawExtent[t].slice();if(r=this._extent[t])return r.slice();for(var r,o=(r=n)[0],a=r[1],s=0;s<i;s++){var l=e[this.getRawIndex(s)];l<o&&(o=l),a<l&&(a=l)}return this._extent[t]=r=[o,a]},l.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r<i.length;r++)n.push(i[r][e]);return n},l.prototype.clone=function(t,e){var n,i,r=new l,o=this._chunks,a=t&&lt(t,function(t,e){return t[e]=!0,t},{});if(a)for(var s=0;s<o.length;s++)r._chunks[s]=a[s]?(n=o[s],i=void 0,(i=n.constructor)===Array?n.slice():new i(n)):o[s];else r._chunks=o;return this._copyCommonProps(r),e||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},l.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=y(this._extent),t._rawExtent=y(this._rawExtent)},l.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array)for(var n=this._indices.length,e=new t(n),i=0;i<n;i++)e[i]=this._indices[i];else e=new t(this._indices);return e}return null},l.prototype._getRawIdxIdentity=function(t){return t},l.prototype._getRawIdx=function(t){return t<this._count&&0<=t?this._indices[t]:-1},l.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},l.internalField=void(gy={arrayRows:My,objectRows:function(t,e,n,i){return Kg(t[e],this._dimensions[i])},keyedColumns:My,original:function(t,e,n,i){t=t&&(null==t.value?t:t.value);return Kg(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var Sy=l;function l(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=it()}function My(t,e,n,i){return Kg(t[i],this._dimensions[i])}Iy.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Iy.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},Iy.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Iy.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Iy.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,r,o,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;ky(s)?(i=s,r=t=o=void 0,e=u?((e=l[0]).prepareSource(),o=(r=e.getSource()).data,t=r.sourceFormat,[e._getVersionSign()]):(t=gt(o=i.get("data",!0))?df:uf,[]),i=this._getSourceMetaRawOption()||{},r=r&&r.metaRawOption||{},a=G(i.seriesLayoutBy,r.seriesLayoutBy)||null,n=G(i.sourceHeader,r.sourceHeader),i=G(i.dimensions,r.dimensions),r=a!==r.seriesLayoutBy||!!n!=!!r.sourceHeader||i?[pg(o,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(o=s,e=u?(r=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(r=[pg(o.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(r,e)},Iy.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0),o=(null!=r&&1!==t.length&&Dy(""),[]),a=[];return nt(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||Dy(""),o.push(e),a.push(t._getVersionSign())}),i?e=dy(i,o,n.componentIndex):null!=r&&(e=[new hg({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:y(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:a}},Iy.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var n=t[e];if(n._isDirty()||this._upstreamSignList[e]!==n._getVersionSign())return!0}},Iy.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Iy.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Iy.prototype._innerGetDataStore=function(t,e,n){var i,r=this._storeList,o=r[0],r=(o=o||(r[0]={}))[n];return r||(i=this._getUpstreamSourceManagers()[0],ky(this._sourceHost)&&i?r=i._innerGetDataStore(t,e,n):(r=new Sy).initData(new bg(e,t.length),t),o[n]=r),r},Iy.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return ky(e)?(t=bf(e))?[t.getSourceManager()]:[]:B((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?ha(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},ua).models:[],function(t){return t.getSourceManager()})},Iy.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return ky(i)?(t=i.get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=(i=i).get("seriesLayoutBy",!0),e=i.get("sourceHeader",!0),n=i.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:n}};var Ty=Iy;function Iy(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function Cy(t){t.option.transform&&kt(t.option.transform)}function ky(t){return"series"===t.mainType}function Dy(t){throw new Error(t)}var Ly="line-height:1";function Ay(t){t=t.lineHeight;return null==t?Ly:"line-height:"+be(t+"")+"px"}function Py(t,e){var n=t.color||v.color.tertiary,i=t.fontSize||12,r=t.fontWeight||"400",o=t.color||v.color.secondary,a=t.fontSize||14,t=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+be(i+"")+"px;color:"+be(n)+";font-weight:"+be(r+""),valueStyle:"font-size:"+be(a+"")+"px;color:"+be(o)+";font-weight:"+be(t+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:t}}}var Oy=[0,10,20,30],Ry=["","\n","\n\n","\n\n\n"];function zy(t,e){return e.type=t,e}function Ny(t){return"section"===t.type}function Ey(t){return Ny(t)?By:Vy}function By(i,r,t,o){var n,e=r.noHeader,a=(l=function n(t){var i,e,r;return Ny(t)?(i=0,e=t.blocks.length,r=1<e||0<e&&!t.noHeader,nt(t.blocks,function(t){var e=n(t);i<=e&&(i=e+ +(r&&(!e||Ny(t)&&!t.noHeader)))}),i):0}(r),{html:Oy[l],richText:Ry[l]}),s=[],l=r.blocks||[],u=(Tt(!l||V(l)),l=l||[],i.orderMode),h=(r.sortBlocks&&u&&(l=l.slice(),Bt(h={valueAsc:"asc",valueDesc:"desc"},u)?(n=new ny(h[u],null),l.sort(function(t,e){return n.evaluate(t.sortParam,e.sortParam)})):"seriesDesc"===u&&l.reverse()),nt(l,function(t,e){var n=r.valueFormatter,n=Ey(t)(n?P(P({},i),{valueFormatter:n}):i,t,0<e?a.html:0,o);null!=n&&s.push(n)}),"richText"===i.renderMode?s.join(a.richText):Hy(o,s.join(""),e?t:a.html));return e?h:(u=Sd(r.header,"ordinal",i.useUTC),l=Py(o,i.renderMode).nameStyle,e=Ay(o),"richText"===i.renderMode?Gy(i,u,l)+a.richText+h:Hy(o,'<div style="'+l+";"+e+';">'+be(u)+"</div>"+h,t))}function Vy(t,e,n,i){var r,o,a,s,l,u=t.renderMode,h=e.noName,c=e.noValue,p=!e.markerType,d=e.name,f=t.useUTC,g=e.valueFormatter||t.valueFormatter||function(t){return B(t=V(t)?t:[t],function(t,e){return Sd(t,V(o)?o[e]:o,f)})};if(!h||!c)return r=p?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||v.color.secondary,u),d=h?"":Sd(d,"ordinal",f),o=e.valueType,g=c?[]:g(e.value,e.dataIndex),e=!p||!h,a=!p&&h,l=Py(i,u),s=l.nameStyle,l=l.valueStyle,"richText"===u?(p?"":r)+(h?"":Gy(t,d,s))+(c?"":function(t,e,n,i,r){r=[r],i=i?10:20;return n&&r.push({padding:[0,0,0,i],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(V(e)?e.join("  "):e,r)}(t,g,e,a,l)):Hy(i,(p?"":r)+(h?"":'<span style="'+s+";"+(!p?"margin-left:2px":"")+'">'+be(d)+"</span>")+(c?"":function(t,e,n,i){n=n?"10px":"20px",e=e?"float:right;margin-left:"+n:"";return t=V(t)?t:[t],'<span style="'+e+";"+i+'">'+B(t,be).join("&nbsp;&nbsp;")+"</span>"}(g,e,a,l)),n)}function Fy(t,e,n,i,r,o){if(t)return Ey(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function Hy(t,e,n){return'<div style="'+("margin: "+n+"px 0 0")+";"+Ay(t)+';">'+e+'<div style="clear:both"></div></div>'}function Gy(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Wy(t,e){t=t.get("padding");return null!=t?t:"richText"===e?[8,10]:10}Xy.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},Xy.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,e=Cd({color:e,type:t,renderMode:n,markerId:i});return F(e)?e:(this.richTextStyles[i]=e.style,e.content)},Xy.prototype.wrapRichTextStyle=function(t,e){var n={},e=(V(e)?nt(e,function(t){return P(n,t)}):P(n,e),this._generateStyleName());return this.richTextStyles[e]=n,"{"+e+"|"+t+"}"};var Uy=Xy;function Xy(){this.richTextStyles={},this._nextStyleNameId=Wo()}function Yy(t){var e,n,i,r,o,a,s,l,u,h,c,p=t.series,d=t.dataIndex,t=t.multipleSeries,f=p.getData(),g=f.mapDimensionsAll("defaultedTooltip"),y=g.length,m=p.getRawValue(d),v=V(m),_=(_=d,kd((b=p).getData().getItemVisual(_,"style")[b.visualDrawType]));function x(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(zy("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),h.push(e.type)))}1<y||v&&!y?(b=m,r=d,o=g,a=_,s=p.getData(),l=lt(b,function(t,e,n){n=s.getDimensionInfo(n);return t||n&&!1!==n.tooltip&&null!=n.displayName},!1),u=[],h=[],c=[],o.length?nt(o,function(t){x(Rg(s,r,t),t)}):nt(b,x),e=(o={inlineValues:u,inlineValueTypes:h,blocks:c}).inlineValueTypes,n=o.blocks,i=(o=o.inlineValues)[0]):y?(b=f.getDimensionInfo(g[0]),i=o=Rg(f,d,g[0]),e=b.type):i=o=v?m[0]:m;var y=ea(p),g=y&&p.name||"",b=f.getName(d),v=t?g:b;return zy("section",{header:g,noHeader:t||!y,sortParam:i,blocks:[zy("nameValue",{markerType:"item",markerColor:_,name:v,noName:!It(v),value:o,valueType:e,dataIndex:d})].concat(n||[])})}var Zy=oa();function qy(t,e){return t.getName(e)||t.getId(e)}u(s,jy=g),s.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=Bg({count:Qy,reset:Jy}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);(Zy(this).sourceManager=new Ty(this)).prepareSource();t=this.getInitialData(t,n);em(t,this),this.dataTask.context.data=t,Zy(this).dataBeforeProcessed=t,$y(this),this._initSelectedMapFromData(t)},s.prototype.mergeDefaultAndTheme=function(t,e){var n=Zd(this),i=n?jd(t):{},r=this.subType;g.hasClass(r),d(t,e.getTheme().get(this.subType)),d(t,this.getDefaultOption()),qo(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&qd(t,i,n)},s.prototype.mergeOption=function(t,e){t=d(this.option,t,!0),this.fillDataTextStyle(t.data);var n=Zd(this),n=(n&&qd(this.option,t,n),Zy(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));em(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,Zy(this).dataBeforeProcessed=n,$y(this),this._initSelectedMapFromData(n)},s.prototype.fillDataTextStyle=function(t){if(t&&!gt(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&qo(t[n],"label",e)},s.prototype.getInitialData=function(t,e){},s.prototype.appendData=function(t){this.getRawData().appendData(t.data)},s.prototype.getData=function(t){var e=im(this);return e?(e=e.context.data,null!=t&&e.getLinkedData?e.getLinkedData(t):e):Zy(this).data},s.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},s.prototype.setData=function(t){var e,n=im(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),Zy(this).data=t},s.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return it(t)},s.prototype.getSourceManager=function(){return Zy(this).sourceManager},s.prototype.getSource=function(){return this.getSourceManager().getSource()},s.prototype.getRawData=function(){return Zy(this).dataBeforeProcessed},s.prototype.getColorBy=function(){return this.get("colorBy")||"series"},s.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},s.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},s.prototype.indicesOfNearest=function(t,e,n,i){var r,o,a,s,l,u=this.getData(),h=this.coordinateSystem,c=h&&h.getAxis(t);return h&&c?(r=c.dataToCoord(n),null==i&&(i=1/0),o=[],a=1/0,s=-1,l=0,u.each(e,function(t,e){var t=c.dataToCoord(t),t=r-t,n=Math.abs(t);n<=i&&((n<a||n===a&&0<=t&&s<0)&&(a=n,s=t,l=0),t===s)&&(o[l++]=e)}),o.length=l,o):[]},s.prototype.formatTooltip=function(t,e,n){return Yy({series:this,dataIndex:t,multipleSeries:e})},s.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!w.node||t&&t.ssr)&&!!(t=(t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold")?!1:t)},s.prototype.restoreData=function(){this.dataTask.dirty()},s.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Df.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},s.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},s.prototype.getProgressive=function(){return this.get("progressive")},s.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},s.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},s.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)this.option.selectedMap={},this._selectedDataIndicesMap={};else for(var o=0;o<t.length;o++){var a=qy(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},s.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)},s.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=ct(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];0<=r&&n.push(r)}return n},s.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),"all"===n||n[qy(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},s.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},s.prototype._innerSelect=function(t,e){var n=this.option,i=n.selectedMode,r=e.length;if(i&&r)if("series"===i)n.selectedMap="all";else if("multiple"===i){N(n.selectedMap)||(n.selectedMap={});for(var o=n.selectedMap,a=0;a<r;a++){var s,l=e[a];o[s=qy(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==i&&!0!==i||(s=qy(t,i=e[r-1]),n.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=t.getRawIndex(i),n))},s.prototype._initSelectedMapFromData=function(n){var i;this.option.selectedMap||(i=[],n.hasItemOption&&n.each(function(t){var e=n.getRawDataItem(t);e&&e.selected&&i.push(t)}),0<i.length&&this._innerSelect(n,i))},s.registerClass=function(t){return g.registerClass(t)},s.protoInitialize=((Ec=s.prototype).type="series.__base__",Ec.seriesIndex=0,Ec.ignoreStyleOnData=!1,Ec.hasSymbolVisual=!1,Ec.defaultSymbol="circle",Ec.visualStyleAccessPath="itemStyle",void(Ec.visualDrawType="fill"));var jy,Ky=s;function s(){var t=null!==jy&&jy.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function $y(t){var e,n,i=t.name;ea(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],nt(t,function(t){t=e.getDimensionInfo(t);t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function Qy(t){return t.model.getRawData().count()}function Jy(t){t=t.model;return t.setData(t.getRawData().cloneShallow()),tm}function tm(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function em(e,n){nt(zt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,pt(nm,n))})}function nm(t,e){t=im(t);return t&&t.setOutputEnd((e||this).count()),e}function im(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}at(Ky,Dp),at(Ky,Df),va(Ky,g);om.prototype.init=function(t,e){},om.prototype.render=function(t,e,n,i){},om.prototype.dispose=function(t,e){},om.prototype.updateView=function(t,e,n,i){},om.prototype.updateLayout=function(t,e,n,i){},om.prototype.updateVisual=function(t,e,n,i){},om.prototype.toggleBlurSeries=function(t,e,n){},om.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var rm=om;function om(){this.group=new lo,this.uid=zp("viewComponent")}function am(){var o=oa();return function(t){var e=o(t),t=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,r=e.large=!(!t||!t.large),e=e.progressiveRender=!(!t||!t.progressiveRender);return!(n==r&&i==e)&&"reset"}}ma(rm),wa(rm);var sm=oa(),lm=am(),um=(hm.prototype.init=function(t,e){},hm.prototype.render=function(t,e,n,i){},hm.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&pm(t,i,"emphasis")},hm.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&pm(t,i,"normal")},hm.prototype.remove=function(t,e){this.group.removeAll()},hm.prototype.dispose=function(t,e){},hm.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},hm.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},hm.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},hm.prototype.eachRendered=function(t){Qc(this.group,t)},hm.markUpdateMethod=function(t,e){sm(t).updateMethod=e},hm.protoInitialize=void(hm.prototype.type="chart"),hm);function hm(){this.group=new lo,this.uid=zp("viewChart"),this.renderTask=Bg({plan:dm,reset:fm}),this.renderTask.context={view:this}}function cm(t,e,n){t&&Mu(t)&&("emphasis"===e?su:lu)(t,n)}function pm(e,t,n){var i,r=ra(e,t),o=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=Al[t])&&Ll<=32?Al[t]=Ll++:i):null;null!=r?nt(Zo(r),function(t){cm(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(t){cm(t,n,o)})}function dm(t){return lm(t.model)}function fm(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,t=t.view,a=r&&sm(r).updateMethod,o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,n,i,r),gm[o]}ma(um),wa(um);var gm={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)}}},ym="\0__throttleOriginMethod",mm="\0__throttleRate",vm="\0__throttleType";function _m(t,r,o){var a,s,l,u,h,c=0,p=0,d=null;function f(){p=(new Date).getTime(),d=null,t.apply(l,u||[])}r=r||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||r,i=h||o;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 xm(t,e,n,i){var r=t[e];if(r){var o=r[ym]||r,a=r[vm];if(r[mm]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=_m(o,n,"debounce"===i))[ym]=o,r[vm]=i,r[mm]=n}}}function bm(t,e){var n=t[e];n&&n[ym]&&(n.clear&&n.clear(),t[e]=n[ym])}var wm=oa(),Sm={itemStyle:Sa(Cp,!0),lineStyle:Sa(Sp,!0)},Mm={lineStyle:"stroke",itemStyle:"fill"};function Tm(t,e){t=t.visualStyleMapper||Sm[e];return t||(console.warn("Unknown style type '"+e+"'."),Sm.itemStyle)}function Im(t,e){t=t.visualDrawType||Mm[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var Ta={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),o=Tm(r,n)(i),i=i.getShallow("decal"),a=(i&&(e.setVisual("decal",i),i.dirty=!0),Im(r,n)),i=o[a],s=z(i)?i:null,n="auto"===o.fill||"auto"===o.stroke;if(o[a]&&!s&&!n||(i=r.getColorFromPalette(r.name,null,t.getSeriesCount()),o[a]||(o[a]=i,e.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||z(o.fill)?i:o.fill,o.stroke="auto"===o.stroke||z(o.stroke)?i:o.stroke),e.setVisual("style",o),e.setVisual("drawType",a),!t.isSeriesFiltered(r)&&s)return e.setVisual("colorFromPalette",!1),{dataEach:function(t,e){var n=r.getDataParams(e),i=P({},o);i[a]=s(n),t.setItemVisual(e,"style",i)}}}},Cm=new Pp,Tp={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i,r,o;if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t))return e=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=Tm(t,i),o=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var n=t.getRawDataItem(e);n&&n[i]&&(Cm.option=n[i],n=r(Cm),P(t.ensureUniqueItemVisual(e,"style"),n),Cm.option.decal&&(t.setItemVisual(e,"decal",Cm.option.decal),Cm.option.decal.dirty=!0),o in n)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},$p={performRawSeries:!0,overallReset:function(e){var i=it();e.eachSeries(function(t){var e,n=t.getColorBy();t.isColorBySeries()||(n=t.type+"-"+n,(e=i.get(n))||i.set(n,e={}),wm(t).scope=e)}),e.eachSeries(function(i){var r,o,a,s,t,l;i.isColorBySeries()||e.isSeriesFiltered(i)||(r=i.getRawData(),o={},a=i.getData(),s=wm(i).scope,t=i.visualStyleAccessPath||"itemStyle",l=Im(i,t),a.each(function(t){var e=a.getRawIndex(t);o[e]=t}),r.each(function(t){var e,n=o[t];a.getItemVisual(n,"colorFromPalette")&&(n=a.ensureUniqueItemVisual(n,"style"),t=r.getName(t)||t+"",e=r.count(),n[l]=i.getColorFromPalette(t,s,e))}))})}},km=Math.PI;Lm.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){t=t.overallTask;t&&t.dirty()})},Lm.prototype.getPerformArgs=function(t,e){var n,i;if(t.__pipeline)return i=(n=this._pipelineMap.get(t.__pipeline.id)).context,{step:e=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,modBy:null!=(t=i&&i.modDataCount)?Math.ceil(t/e):null,modDataCount:t}},Lm.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Lm.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),e=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,r=t.get("large")&&i>=t.get("largeThreshold"),i="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:e,modDataCount:i,large:r}},Lm.prototype.restorePipelines=function(t){var i=this,r=i._pipelineMap=it();t.eachSeries(function(t){var e=t.getProgressive(),n=t.uid;r.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)})},Lm.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),r=this.api;nt(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});Tt(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,r),t.overallReset&&this._createOverallStageTask(t,e,i,r)},this)},Lm.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},Lm.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Lm.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Lm.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))}nt(t,function(i,t){var e,n,r,o,a;u.visualType&&u.visualType!==i.visualType||(e=(n=c._stageTaskMap.get(i.uid)).seriesTaskMap,(n=n.overallTask)?((o=n.agentStubMap).each(function(t){p(u,t)&&(t.dirty(),r=!0)}),r&&n.dirty(),c.updatePayload(n,l),a=c.getPerformArgs(n,u.block),o.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},Lm.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Lm.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())})},Lm.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Lm.prototype._createSeriesStageTask=function(n,t,i,r){var o=this,a=t.seriesTaskMap,s=t.seriesTaskMap=it(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||Bg({plan:zm,reset:Nm,count:Vm}));e.context={model:t,ecModel:i,api:r,useClearVisual:n.isVisual&&!n.isLayout,plan:n.plan,reset:n.reset,scheduler:o},o._pipe(t,e)}n.createOnAllSeries?i.eachRawSeries(l):t?i.eachRawSeriesByType(t,l):e&&e(i,r).each(l)},Lm.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||Bg({reset:Am}),a=(o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r},o.agentStubMap),s=o.agentStubMap=it(),e=t.seriesType,l=t.getTargetSeries,u=!0,h=!1;function c(t){var e=t.uid,e=s.set(e,a&&a.get(e)||(h=!0,Bg({reset:Pm,onDirty:Rm})));e.context={model:t,overallProgress:u},e.agent=o,e.__block=u,r._pipe(t,e)}Tt(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,nt(n.getSeries(),c)),h&&o.dirty()},Lm.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},Lm.wrapStageHandler=function(t,e){return(t=z(t)?{overallReset:t,seriesType:function(t){Fm=null;try{t(Hm,Gm)}catch(t){}return Fm}(t)}:t).uid=zp("stageHandler"),e&&(t.visualType=e),t};var Dm=Lm;function Lm(t,e,n,i){this._stageTaskMap=it(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Am(t){t.overallReset(t.ecModel,t.api,t.payload)}function Pm(t){return t.overallProgress&&Om}function Om(){this.agent.dirty(),this.getDownstream().dirty()}function Rm(){this.agent&&this.agent.dirty()}function zm(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Nm(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Zo(t.reset(t.model,t.ecModel,t.api,t.payload));return 1<t.length?B(t,function(t,e){return Bm(e)}):Em}var Em=Bm(0);function Bm(o){return function(t,e){var n=e.data,i=e.resetDefines[o];if(i&&i.dataEach)for(var r=t.start;r<t.end;r++)i.dataEach(n,r);else i&&i.progress&&i.progress(t,n)}}function Vm(t){return t.data.count()}var Fm,Hm={},Gm={};function Wm(t,e){for(var n in e.prototype)t[n]=Vt}Wm(Hm,Rf),Wm(Gm,Bf),Hm.eachSeriesByType=Hm.eachRawSeriesByType=function(t){Fm=t},Hm.eachComponent=function(t){"series"===t.mainType&&t.subType&&(Fm=t.subType)};function Um(){return{axisLine:{lineStyle:{color:h.axisLine}},splitLine:{lineStyle:{color:h.axisSplitLine}},splitArea:{areaStyle:{color:[h.backgroundTint,h.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:h.axisMinorSplitLine}},axisLabel:{color:h.axisLabel},axisName:{}}}var h=v.darkColor,Ec=h.background,Dp={label:{color:h.secondary},itemStyle:{borderColor:h.borderTint},dividerLineStyle:{color:h.border}},Sp={darkMode:!0,color:h.theme,backgroundColor:Ec,axisPointer:{lineStyle:{color:h.border},crossStyle:{color:h.borderShade},label:{color:h.tertiary}},legend:{textStyle:{color:h.secondary},pageTextStyle:{color:h.tertiary}},textStyle:{color:h.secondary},title:{textStyle:{color:h.primary},subtextStyle:{color:h.quaternary}},toolbox:{iconStyle:{borderColor:h.accent50}},tooltip:{backgroundColor:h.neutral20,defaultBorderColor:h.border,textStyle:{color:h.tertiary}},dataZoom:{borderColor:h.accent10,textStyle:{color:h.tertiary},brushStyle:{color:h.backgroundTint},handleStyle:{color:h.neutral00,borderColor:h.accent20},moveHandleStyle:{color:h.accent40},emphasis:{handleStyle:{borderColor:h.accent50}},dataBackground:{lineStyle:{color:h.accent30},areaStyle:{color:h.accent20}},selectedDataBackground:{lineStyle:{color:h.accent50},areaStyle:{color:h.accent30}}},visualMap:{textStyle:{color:h.secondary},handleStyle:{borderColor:h.neutral30}},timeline:{lineStyle:{color:h.accent10},label:{color:h.tertiary},controlStyle:{color:h.accent30,borderColor:h.accent30}},calendar:{itemStyle:{color:h.neutral00,borderColor:h.neutral20},dayLabel:{color:h.tertiary},monthLabel:{color:h.secondary},yearLabel:{color:h.secondary}},matrix:{x:Dp,y:Dp,backgroundColor:{borderColor:h.axisLine},body:{itemStyle:{borderColor:h.borderTint}}},timeAxis:Um(),logAxis:Um(),valueAxis:Um(),categoryAxis:Um(),line:{symbol:"circle"},graph:{color:h.theme},gauge:{title:{color:h.secondary},axisLine:{lineStyle:{color:[[1,h.neutral05]]}},axisLabel:{color:h.axisLabel},detail:{color:h.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:h.background}},radar:((Cp=Um()).axisName={color:h.axisLabel},Cp.axisLine.lineStyle.color=h.neutral20,Cp),treemap:{breadcrumb:{itemStyle:{color:h.neutral20,textStyle:{color:h.secondary}},emphasis:{itemStyle:{color:h.neutral30}}}},sunburst:{itemStyle:{borderColor:h.background}},map:{itemStyle:{borderColor:h.border,areaColor:h.neutral10},label:{color:h.tertiary},emphasis:{label:{color:h.primary},itemStyle:{areaColor:h.highlight}},select:{label:{color:h.primary},itemStyle:{areaColor:h.highlight}}},geo:{itemStyle:{borderColor:h.border,areaColor:h.neutral10},emphasis:{label:{color:h.primary},itemStyle:{areaColor:h.highlight}},select:{label:{color:h.primary},itemStyle:{color:h.highlight}}}},Xm=(Sp.categoryAxis.splitLine.show=!1,Ym.prototype.normalizeQuery=function(t){var e,a,s,l={},u={},h={};return F(t)?(e=ya(t),l.mainType=e.main||null,l.subType=e.sub||null):(a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1},nt(t,function(t,e){for(var n=!1,i=0;i<a.length;i++){var r=a[i],o=e.lastIndexOf(r);0<o&&o===e.length-r.length&&"data"!==(o=e.slice(0,o))&&(l.mainType=o,l[r.toLowerCase()]=t,n=!0)}s.hasOwnProperty(e)&&(u[e]=t,n=!0),n||(h[e]=t)})),{cptQuery:l,dataQuery:u,otherQuery:h}},Ym.prototype.filter=function(t,e){var n,i,r,o,a,s=this.eventInfo;return!s||(n=s.targetEl,i=s.packedEvent,r=s.model,s=s.view,!r)||!s||(o=e.cptQuery,a=e.dataQuery,l(o,r,"mainType")&&l(o,r,"subType")&&l(o,r,"index","componentIndex")&&l(o,r,"name")&&l(o,r,"id")&&l(a,i,"name")&&l(a,i,"dataIndex")&&l(a,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i)));function l(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},Ym.prototype.afterTrigger=function(){this.eventInfo=null},Ym);function Ym(){}var Zm=["symbol","symbolSize","symbolRotate","symbolOffset"],qm=Zm.concat(["symbolKeepAspect"]),Ec={createOnAllSeries:!0,performRawSeries:!0,reset:function(a,t){var e=a.getData();if(a.legendIcon&&e.setVisual("legendIcon",a.legendIcon),a.hasSymbolVisual){for(var s,n={},l={},i=!1,r=0;r<Zm.length;r++){var o=Zm[r],u=a.get(o);z(u)?(i=!0,l[o]=u):n[o]=u}if(n.symbol=n.symbol||a.defaultSymbol,e.setVisual(P({legendIcon:a.legendIcon||n.symbol,symbolKeepAspect:a.get("symbolKeepAspect")},n)),!t.isSeriesFiltered(a))return s=ct(l),{dataEach:i?function(t,e){for(var n=a.getRawValue(e),i=a.getDataParams(e),r=0;r<s.length;r++){var o=s[r];t.setItemVisual(e,o,l[o](n,i))}}:null}}}},Dp={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var n=t.getItemModel(e),i=0;i<qm.length;i++){var r=qm[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}};function jm(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function Km(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function $m(o,t){nt([[o+"ToggleSelect","toggleSelect"],[o+"Select","select"],[o+"UnSelect","unselect"]],function(r){t(r[0],function(t,e,n){var i;t=P({},t),n.dispatchAction(P(t,{type:r[1],seriesIndex:(n=t,i=[],e.eachComponent({mainType:"series",subType:o,query:n},function(t){i.push(t.seriesIndex)}),i)}))})})}function Qm(t,e,s,n,l){var u=t+e;s.isSilent(u)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e,n,i=t.seriesIndex,r=t.option.selectedMap,o=l.selected,a=0;a<o.length;a++)o[a].seriesIndex===i&&(n=ra(e=t.getData(),l.fromActionPayload),s.trigger(u,{type:u,seriesId:t.id,name:V(n)?e.getName(n[0]):e.getName(n),selected:F(r)?r:P({},r)}))})}function Jm(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var t0=Math.round(9*Math.random()),e0="function"==typeof Object.defineProperty,Cp=(n0.prototype.get=function(t){return this._guard(t)[this._id]},n0.prototype.set=function(t,e){t=this._guard(t);return e0?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},n0.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},n0.prototype.has=function(t){return!!this._guard(t)[this._id]},n0.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},n0);function n0(){this._id="__ec_inner_"+t0++}var i0=js.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+r,i+e),t.lineTo(n-r,i+e),t.closePath()}}),r0=js.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=e.width/2,e=e.height/2;t.moveTo(n,i-e),t.lineTo(n+r,i),t.lineTo(n,i+e),t.lineTo(n-r,i),t.closePath()}}),o0=js.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,i=e.y,r=e.width/5*3,e=Math.max(r,e.height),r=r/2,o=r*r/(e-r),e=i-e+r+o,a=Math.asin(o/r),s=Math.cos(a)*r,l=Math.sin(a),u=Math.cos(a),h=.6*r,c=.7*r;t.moveTo(n-s,e+o),t.arc(n,e,r,Math.PI-a,2*Math.PI+a),t.bezierCurveTo(n+s-l*h,e+o+u*h,n,i-c,n,i),t.bezierCurveTo(n,i-c,n-s+l*h,e+o+u*h,n-s,e+o),t.closePath()}}),a0=js.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,i=e.width,r=e.x,e=e.y,i=i/3*2;t.moveTo(r,e),t.lineTo(r+i,e+n),t.lineTo(r,e+n/4*3),t.lineTo(r-i,e+n),t.lineTo(r,e),t.closePath()}}),s0={line:function(t,e,n,i,r){r.x1=t,r.y1=e+i/2,r.x2=t+n,r.y2=e+i/2},rect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i},roundRect:function(t,e,n,i,r){r.x=t,r.y=e,r.width=n,r.height=i,r.r=Math.min(n,i)/4},square:function(t,e,n,i,r){n=Math.min(n,i);r.x=t,r.y=e,r.width=n,r.height=n},circle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.r=Math.min(n,i)/2},diamond:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i},pin:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},arrow:function(t,e,n,i,r){r.x=t+n/2,r.y=e+i/2,r.width=n,r.height=i},triangle:function(t,e,n,i,r){r.cx=t+n/2,r.cy=e+i/2,r.width=n,r.height=i}},l0={},u0=(nt({line:Oh,rect:pl,roundRect:pl,square:pl,circle:qu,diamond:r0,pin:o0,arrow:a0,triangle:i0},function(t,e){l0[e]=new t}),js.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var t=qr(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(t.y=n.y+.4*n.height),t},buildPath:function(t,e,n){var i,r=e.symbolType;"none"!==r&&(i=(i=l0[r])||l0[r="rect"],s0[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}}));function h0(t,e){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||v.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw())}function c0(t,e,n,i,r,o,a){var s=0===t.indexOf("empty");return(a=0===(t=s?t.substr(5,1).toLowerCase()+t.substr(6):t).indexOf("image://")?Pc(t.slice(8),new X(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?Ac(t.slice(7),{},new X(e,n,i,r),a?"center":"cover"):new u0({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=s,a.setColor=h0,o&&a.setColor(o),a}function p0(t,e){if(null!=t)return V(t)||(t=[t,t]),[To(t[0],e[0])||0,To(G(t[1],t[0]),e[1])||0]}function d0(t){return isFinite(t)}function f0(t,e,n){for(var i,r,o,a,s,l,u,h,c,p="radial"===e.type?(i=t,r=e,a=(o=n).width,s=o.height,l=Math.min(a,s),u=null==r.x?.5:r.x,h=null==r.y?.5:r.y,c=null==r.r?.5:r.r,r.global||(u=u*a+o.x,h=h*s+o.y,c*=l),u=d0(u)?u:.5,h=d0(h)?h:.5,c=0<=c&&d0(c)?c:.5,i.createRadialGradient(u,h,0,u,h,c)):(r=t,a=n,o=null==(s=e).x?0:s.x,l=null==s.x2?1:s.x2,i=null==s.y?0:s.y,u=null==s.y2?0:s.y2,s.global||(o=o*a.width+a.x,l=l*a.width+a.x,i=i*a.height+a.y,u=u*a.height+a.y),o=d0(o)?o:0,l=d0(l)?l:1,i=d0(i)?i:0,u=d0(u)?u:0,r.createLinearGradient(o,i,l,u)),d=e.colorStops,f=0;f<d.length;f++)p.addColorStop(d[f].offset,d[f].color);return p}function g0(t){return parseInt(t,10)}function y0(t,e,n){var i=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],e=["paddingRight","paddingBottom"][e];return null!=n[i]&&"auto"!==n[i]?parseFloat(n[i]):(n=document.defaultView.getComputedStyle(t),(t[r]||g0(n[i])||g0(t.style[i]))-(g0(n[o])||0)-(g0(n[e])||0)|0)}function m0(t){var e,n=t.style,i=n.lineDash&&0<n.lineWidth&&(r=n.lineDash,i=n.lineWidth,r&&"solid"!==r&&0<i?"dashed"===r?[4*i,2*i]:"dotted"===r?[i]:H(r)?[r]:V(r)?r:null:null),r=n.lineDashOffset;return i&&(e=n.strokeNoScale&&t.getLineScale?t.getLineScale():1)&&1!==e&&(i=B(i,function(t){return t/e}),r/=e),[i,r]}var v0=new As(!0);function _0(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function x0(t){return"string"==typeof t&&"none"!==t}function b0(t){t=t.fill;return null!=t&&"none"!==t}function w0(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 S0(t,e){var n;null!=e.strokeOpacity&&1!==e.strokeOpacity?(n=t.globalAlpha,t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n):t.stroke()}function M0(t,e,n){var n=ka(e.image,e.__image,n);if(La(n))return t=t.createPattern(n,e.repeat||"repeat"),"function"==typeof DOMMatrix&&t&&t.setTransform&&((n=new DOMMatrix).translateSelf(e.x||0,e.y||0),n.rotateSelf(0,0,(e.rotation||0)*Ft),n.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(n)),t}var T0=["shadowBlur","shadowOffsetX","shadowOffsetY"],I0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function C0(t,e,n,i,r){var o,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(R0(t,r),a=!0,o=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(o)?Ka.opacity:o),!i&&e.blend===n.blend||(a||(R0(t,r),a=!0),t.globalCompositeOperation=e.blend||Ka.blend);for(var s=0;s<T0.length;s++){var l=T0[s];!i&&e[l]===n[l]||(a||(R0(t,r),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(R0(t,r),a=!0),t.shadowColor=e.shadowColor||Ka.shadowColor),a}function k0(t,e,n,i,r){var o=z0(e,r.inHover),a=i?null:n&&z0(n,r.inHover)||{};if(o!==a){var s=C0(t,o,a,i,r);(i||o.fill!==a.fill)&&(s||(R0(t,r),s=!0),x0(o.fill))&&(t.fillStyle=o.fill),(i||o.stroke!==a.stroke)&&(s||(R0(t,r),s=!0),x0(o.stroke))&&(t.strokeStyle=o.stroke),!i&&o.opacity===a.opacity||(s||(R0(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()&&(n=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1),t.lineWidth!==n)&&(s||(R0(t,r),s=!0),t.lineWidth=n);for(var l=0;l<I0.length;l++){var u=I0[l],h=u[0];!i&&o[h]===a[h]||(s||(R0(t,r),s=!0),t[h]=o[h]||u[1])}}}function D0(t,e){var e=e.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)}var L0=1,A0=2,P0=3,O0=4;function R0(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function z0(t,e){return e&&t.__hoverStyle||t.style}function N0(t,e){E0(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function E0(t,e,n,N){var i=e.transform;if(e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){var r=e.__clipPaths,o=n.prevElClipPaths,a=!1,s=!1;if(!o||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}}(r,o)){if(o&&o.length&&(R0(t,n),t.restore(),s=a=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),r&&r.length){R0(t,n),t.save();for(var E=r,l=t,o=n,B=!1,V=0;V<E.length;V++){var F=E[V],B=B||F.isZeroArea();D0(l,F),l.beginPath(),F.buildPath(l,F.shape),l.clip()}o.allClipped=B,a=!0}n.prevElClipPaths=r}if(n.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u,h,c,p,d,f,g,y,m,v,_,x,b,H,w,S,M,T,I,C,k,D,L,o=n.prevEl,A=(o||(s=a=!0),e instanceof js&&e.autoBatch&&(r=e.style,A=b0(r),u=_0(r),!(r.lineDash||!(+A^+u)||A&&"string"!=typeof r.fill||u&&"string"!=typeof r.stroke||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1))),a=(a||(u=i,r=o.transform,u&&r?u[0]!==r[0]||u[1]!==r[1]||u[2]!==r[2]||u[3]!==r[3]||u[4]!==r[4]||u[5]!==r[5]:u||r)?(R0(t,n),D0(t,e)):A||R0(t,n),z0(e,n.inHover));if(e instanceof js)n.lastDrawType!==L0&&(s=!0,n.lastDrawType=L0),k0(t,e,o,s,n),A&&(n.batchFill||n.batchStroke)||t.beginPath(),i=t,r=e,R=A,w=_0(p=a),S=b0(p),M=p.strokePercent,T=M<1,I=!r.path,r.silent&&!T||!I||r.createPathProxy(),C=r.path||v0,k=r.__dirty,R||(d=p.fill,L=p.stroke,f=S&&!!d.colorStops,g=w&&!!L.colorStops,y=S&&!!d.image,m=w&&!!L.image,D=b=x=_=v=void 0,(f||g)&&(D=r.getBoundingRect()),f&&(v=k?f0(i,d,D):r.__canvasFillGradient,r.__canvasFillGradient=v),g&&(_=k?f0(i,L,D):r.__canvasStrokeGradient,r.__canvasStrokeGradient=_),y&&(x=k||!r.__canvasFillPattern?M0(i,d,r):r.__canvasFillPattern,r.__canvasFillPattern=x),m&&(b=k||!r.__canvasStrokePattern?M0(i,L,r):r.__canvasStrokePattern,r.__canvasStrokePattern=b),f?i.fillStyle=v:y&&(x?i.fillStyle=x:S=!1),g?i.strokeStyle=_:m&&(b?i.strokeStyle=b:w=!1)),D=r.getGlobalScale(),C.setScale(D[0],D[1],r.segmentIgnoreThreshold),i.setLineDash&&p.lineDash&&(H=(d=m0(r))[0],O=d[1]),L=!0,(I||k&Pn)&&(C.setDPR(i.dpr),T?C.setContext(null):(C.setContext(i),L=!1),C.reset(),r.buildPath(C,r.shape,R),C.toStatic(),r.pathUpdated()),L&&C.rebuildPath(i,T?M:1),H&&(i.setLineDash(H),i.lineDashOffset=O),R||(p.strokeFirst?(w&&S0(i,p),S&&w0(i,p)):(S&&w0(i,p),w&&S0(i,p))),H&&i.setLineDash([]),A&&(n.batchFill=a.fill||"",n.batchStroke=a.stroke||"");else if(e instanceof Qs)n.lastDrawType!==P0&&(s=!0,n.lastDrawType=P0),k0(t,e,o,s,n),f=t,v=e,null!=(x=(y=a).text)&&(x+=""),x&&(f.font=y.font||j,f.textAlign=y.textAlign,f.textBaseline=y.textBaseline,_=g=void 0,f.setLineDash&&y.lineDash&&(g=(v=m0(v))[0],_=v[1]),g&&(f.setLineDash(g),f.lineDashOffset=_),y.strokeFirst?(_0(y)&&f.strokeText(x,y.x,y.y),b0(y)&&f.fillText(x,y.x,y.y)):(b0(y)&&f.fillText(x,y.x,y.y),_0(y)&&f.strokeText(x,y.x,y.y)),g)&&f.setLineDash([]);else if(e instanceof il)n.lastDrawType!==A0&&(s=!0,n.lastDrawType=A0),m=o,b=s,C0(t,z0(e,(D=n).inHover),m&&z0(m,D.inHover),b,D),d=t,I=a,(r=(k=e).__image=ka(I.image,k.__image,k,k.onload))&&La(r)&&(L=I.x||0,C=I.y||0,T=k.getWidth(),k=k.getHeight(),M=r.width/r.height,null==T&&null!=k?T=k*M:null==k&&null!=T?k=T/M:null==T&&null==k&&(T=r.width,k=r.height),I.sWidth&&I.sHeight?(h=I.sx||0,c=I.sy||0,d.drawImage(r,h,c,I.sWidth,I.sHeight,L,C,T,k)):I.sx&&I.sy?(h=I.sx,c=I.sy,d.drawImage(r,h,c,T-h,k-c,L,C,T,k)):d.drawImage(r,L,C,T,k));else if(e.getTemporalDisplayables){n.lastDrawType!==O0&&(s=!0,n.lastDrawType=O0);var P,G,W=t,O=e,R=n,U=O.getDisplayables(),X=O.getTemporalDisplayables(),Y=(W.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:R.viewWidth,viewHeight:R.viewHeight,inHover:R.inHover});for(P=O.getCursor(),G=U.length;P<G;P++)(z=U[P]).beforeBrush&&z.beforeBrush(),z.innerBeforeBrush(),E0(W,z,Y,P===G-1),z.innerAfterBrush(),z.afterBrush&&z.afterBrush(),Y.prevEl=z;for(var z,Z=0,q=X.length;Z<q;Z++)(z=X[Z]).beforeBrush&&z.beforeBrush(),z.innerBeforeBrush(),E0(W,z,Y,Z===q-1),z.innerAfterBrush(),z.afterBrush&&z.afterBrush(),Y.prevEl=z;O.clearTemporalDisplayables(),O.notClear=!0,W.restore()}A&&N&&R0(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~An,e.__isRendered=!1}var B0=new Cp,V0=new fi(100),F0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function H0(t,e){if("none"===t)return null;var a=e.getDevicePixelRatio(),s=e.getZr(),l="svg"===s.painter.type,e=(t.dirty&&B0.delete(t),B0.get(t));if(e)return e;for(var n,u=E(t,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512}),e=("none"===u.backgroundColor&&(u.backgroundColor=null),{repeat:"repeat"}),i=e,r=[a],o=!0,h=0;h<F0.length;++h){var c=u[F0[h]];if(null!=c&&!V(c)&&!F(c)&&!H(c)&&"boolean"!=typeof c){o=!1;break}r.push(c)}o&&(n=r.join(",")+(l?"-svg":""),v=V0.get(n))&&(l?i.svgElement=v:i.image=v);var p,d=function t(e){if(!e||0===e.length)return[[0,0]];if(H(e))return[[o=Math.ceil(e),o]];var n=!0;for(var i=0;i<e.length;++i)if(!H(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(i=0;i<e.length;++i){var o;H(e[i])?(o=Math.ceil(e[i]),r.push([o,o])):(o=B(e[i],function(t){return Math.ceil(t)})).length%2==1?r.push(o.concat(o)):r.push(o)}return r}(u.dashArrayX),f=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(H(t))return[e=Math.ceil(t),e];var e=B(t,function(t){return Math.ceil(t)});return t.length%2?e.concat(e):e}(u.dashArrayY),g=function t(e){if(!e||0===e.length)return[["rect"]];if(F(e))return[[e]];var n=!0;for(var i=0;i<e.length;++i)if(!F(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(i=0;i<e.length;++i)F(e[i])?r.push([e[i]]):r.push(e[i]);return r}(u.symbol),y=function(t){return B(t,G0)}(d),m=G0(f),v=!l&&Y.createCanvas(),_=l&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=y.length;e<n;++e)t=Uo(t,y[e]);for(var i=1,e=0,n=g.length;e<n;++e)i=Uo(i,g[e].length);t*=i;var r=m*y.length*g.length;return{width:Math.max(1,Math.min(t,u.maxTileWidth)),height:Math.max(1,Math.min(r,u.maxTileHeight))}}();v&&(v.width=x.width*a,v.height=x.height*a,p=v.getContext("2d")),p&&(p.clearRect(0,0,v.width,v.height),u.backgroundColor)&&(p.fillStyle=u.backgroundColor,p.fillRect(0,0,v.width,v.height));for(var b=0,w=0;w<f.length;++w)b+=f[w];if(!(b<=0))for(var S=-m,M=0,T=0,I=0;S<x.height;){if(M%2==0){for(var C=T/2%g.length,k=0,D=0,L=0;k<2*x.width;){for(var A,P,O,R,z,N=0,w=0;w<d[I].length;++w)N+=d[I][w];if(N<=0)break;D%2==0&&(P=.5*(1-u.symbolSize),A=k+d[I][D]*P,P=S+f[M]*P,O=d[I][D]*u.symbolSize,R=f[M]*u.symbolSize,z=L/2%g[C].length,function(t,e,n,i,r){var o=l?1:a,r=c0(r,t*o,e*o,n*o,i*o,u.color,u.symbolKeepAspect);l?(t=s.painter.renderOneToVNode(r))&&_.children.push(t):N0(p,r)}(A,P,O,R,g[C][z])),k+=d[I][D],++L,++D===d[I].length&&(D=0)}++I===d.length&&(I=0)}S+=f[M],++T,++M===f.length&&(M=0)}return o&&V0.put(n,v||_),i.image=v,i.svgElement=_,i.svgWidth=x.width,i.svgHeight=x.height,e.rotation=u.rotation,e.scaleX=e.scaleY=l?1:1/a,B0.set(t,e),t.dirty=!1,e}function G0(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var W0=new he,U0={};var r0={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},X0="__flagInMainProcess",Y0="__mainProcessVersion",Z0="__pendingUpdate",q0="__needsUpdateStatus",j0=/^[a-zA-Z0-9_]+$/,K0="__connectUpdateStatus";function $0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return J0(this,n,t);this.id}}function Q0(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return J0(this,n,t)}}function J0(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),he.prototype[e].apply(t,n)}u(nv,tv=he);var tv,ev=nv;function nv(){return null!==tv&&tv.apply(this,arguments)||this}var iv,rv,ov,av,sv,lv,uv,hv,cv,pv,dv,fv,gv,yv,mv,vv,_v,xv,bv,wv,o0=ev.prototype,Sv=(o0.on=Q0("on"),o0.off=Q0("off"),u(c,wv=he),c.prototype._onframe=function(){if(!this._disposed){xv(this);var t=this._scheduler;if(this[Z0]){var e=this[Z0].silent;this[X0]=!0,bv(this);try{iv(this),av.update.call(this,null,this[Z0].updateParams)}catch(t){throw this[X0]=!1,this[Z0]=null,t}this._zr.flush(),this[X0]=!1,this[Z0]=null,hv.call(this,e),cv.call(this,e)}else if(t.unfinished){var n=1,i=this._model,r=this._api;t.unfinished=!1;do{var o=+new Date}while(t.performSeriesTasks(i),t.performDataProcessorTasks(i),lv(this,i),t.performVisualTasks(i),yv(this,this._model,r,"remain",{}),0<(n-=+new Date-o)&&t.unfinished);t.unfinished||this._zr.flush()}}},c.prototype.getDom=function(){return this._dom},c.prototype.getId=function(){return this.id},c.prototype.getZr=function(){return this._zr},c.prototype.isSSR=function(){return this._ssr},c.prototype.setOption=function(t,e,n){if(!this[X0])if(this._disposed)this.id;else{N(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[X0]=!0,bv(this),this._model&&!e||(e=new Hf(this._api),a=this._theme,(s=this._model=new Rf).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:r},Rv);var i,r,o,a,s={seriesTransition:o,optionChanged:!0};if(n)this[Z0]={silent:i,updateParams:s},this[X0]=!1,this.getZr().wakeUp();else{try{iv(this),av.update.call(this,null,s)}catch(t){throw this[Z0]=null,this[X0]=!1,t}this._ssr||this._zr.flush(),this[Z0]=null,this[X0]=!1,hv.call(this,i),cv.call(this,i)}}},c.prototype.setTheme=function(t,e){if(!this[X0])if(this._disposed)this.id;else{var n=this._model;if(n){var e=e&&e.silent,i=null;this[Z0]&&(null==e&&(e=this[Z0].silent),i=this[Z0].updateParams,this[Z0]=null),this[X0]=!0,bv(this);try{this._updateTheme(t),n.setTheme(this._theme),iv(this),av.update.call(this,{type:"setTheme"},i)}catch(t){throw this[X0]=!1,t}this[X0]=!1,hv.call(this,e),cv.call(this,e)}}},c.prototype._updateTheme=function(t){(t=F(t)?Nv[t]:t)&&((t=y(t))&&sg(t,!0),this._theme=t)},c.prototype.getModel=function(){return this._model},c.prototype.getOption=function(){return this._model&&this._model.getOption()},c.prototype.getWidth=function(){return this._zr.getWidth()},c.prototype.getHeight=function(){return this._zr.getHeight()},c.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||w.hasGlobalWindow&&window.devicePixelRatio||1},c.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},c.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},c.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},c.prototype.getSvgDataURL=function(){var t=this._zr;return nt(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},c.prototype.getDataURL=function(t){var e,n,i,r;if(!this._disposed)return r=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,nt(r,function(t){e.eachComponent({mainType:t},function(t){t=i._componentsMap[t.__viewId];t.group.ignore||(n.push(t),t.group.ignore=!0)})}),r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png")),nt(n,function(t){t.group.ignore=!1}),r;this.id},c.prototype.getConnectedDataURL=function(i){var r,o,a,s,l,u,h,c,p,e,t,n,d,f,g;if(!this._disposed)return r="svg"===i.type,o=this.group,a=Math.min,s=Math.max,Vv[o]?(u=l=1/0,c=h=-1/0,p=[],e=i&&i.pixelRatio||this.getDevicePixelRatio(),nt(Bv,function(t,e){var n;t.group===o&&(n=r?t.getZr().painter.getSvgDom().innerHTML:t.renderToCanvas(y(i)),t=t.getDom().getBoundingClientRect(),l=a(t.left,l),u=a(t.top,u),h=s(t.right,h),c=s(t.bottom,c),p.push({dom:n,left:t.left,top:t.top}))}),t=(h*=e)-(l*=e),n=(c*=e)-(u*=e),d=Y.createCanvas(),(f=yo(d,{renderer:r?"svg":"canvas"})).resize({width:t,height:n}),r?(g="",nt(p,function(t){var e=t.left-l,n=t.top-u;g+='<g transform="translate('+e+","+n+')">'+t.dom+"</g>"}),f.painter.getSvgRoot().innerHTML=g,i.connectedBackgroundColor&&f.painter.setBackgroundColor(i.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()):(i.connectedBackgroundColor&&f.add(new pl({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),nt(p,function(t){t=new il({style:{x:t.left*e-l,y:t.top*e-u,image:t.dom}});f.add(t)}),f.refreshImmediately(),d.toDataURL("image/"+(i&&i.type||"png")))):this.getDataURL(i);this.id},c.prototype.convertToPixel=function(t,e,n){return sv(this,"convertToPixel",t,e,n)},c.prototype.convertToLayout=function(t,e,n){return sv(this,"convertToLayout",t,e,n)},c.prototype.convertFromPixel=function(t,e,n){return sv(this,"convertFromPixel",t,e,n)},c.prototype.containPixel=function(t,i){var r;if(!this._disposed)return nt(sa(this._model,t),function(t,n){0<=n.indexOf("Models")&&nt(t,function(t){var e=t.coordinateSystem;e&&e.containPoint?r=r||!!e.containPoint(i):"seriesModels"===n&&(e=this._chartsMap[t.__viewId])&&e.containPoint&&(r=r||e.containPoint(i,t))},this)},this),!!r;this.id},c.prototype.getVisual=function(t,e){var t=sa(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;return null!=t?jm(n,t,e):Km(n,e)},c.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},c.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},c.prototype._initEvents=function(){var n,i,s=this,r=(nt(Dv,function(a){function t(t){var n,e,i,r=s.getModel(),o=t.target;"globalout"===a?n={}:o&&Jm(o,function(t){var e,t=U(t);return t&&null!=t.dataIndex?(e=t.dataModel||r.getSeriesByIndex(t.seriesIndex),n=e&&e.getDataParams(t.dataIndex,t.dataType,o)||{},1):t.eventData&&(n=P({},t.eventData),1)},!0),n&&(e=n.componentType,i=n.componentIndex,"markLine"!==e&&"markPoint"!==e&&"markArea"!==e||(e="series",i=n.seriesIndex),i=(e=e&&null!=i&&r.getComponent(e,i))&&s["series"===e.mainType?"_chartsMap":"_componentsMap"][e.__viewId],n.event=t,n.type=a,s._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:e,view:i},s.trigger(a,n))}t.zrEventfulCallAtLast=!0,s._zr.on(a,t,s)}),this._messageCenter);nt(Pv,function(t,e){r.on(e,function(t){s.trigger(e,t)})}),i=(n=this)._api,r.on("selectchanged",function(t){var e=i.getModel();t.isFromClick?(Qm("map","selectchanged",n,e,t),Qm("pie","selectchanged",n,e,t)):"select"===t.fromAction?(Qm("map","selected",n,e,t),Qm("pie","selected",n,e,t)):"unselect"===t.fromAction&&(Qm("map","unselected",n,e,t),Qm("pie","unselected",n,e,t))})},c.prototype.isDisposed=function(){return this._disposed},c.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},c.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&ca(this.getDom(),Gv,""),e=(t=this)._api,n=t._model,nt(t._componentsViews,function(t){t.dispose(n,e)}),nt(t._chartsViews,function(t){t.dispose(n,e)}),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Bv[t.id])},c.prototype.resize=function(t){if(!this[X0])if(this._disposed)this.id;else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var e=e.resetOption("media"),n=t&&t.silent;this[Z0]&&(null==n&&(n=this[Z0].silent),e=!0,this[Z0]=null),this[X0]=!0,bv(this);try{e&&iv(this),av.update.call(this,{type:"resize",animation:P({duration:0},t&&t.animation)})}catch(t){throw this[X0]=!1,t}this[X0]=!1,hv.call(this,n),cv.call(this,n)}}},c.prototype.showLoading=function(t,e){this._disposed?this.id:(N(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Ev[t]&&(t=Ev[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},c.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},c.prototype.makeActionFromEvent=function(t){var e=P({},t);return e.type=Av[t.type],e},c.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(N(e)||(e={silent:!!e}),Lv[t.type]&&this._model&&(this[X0]?this._pendingActions.push(t):(n=e.silent,uv.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&w.browser.weChat&&this._throttledZrFlush(),hv.call(this,n),cv.call(this,n))))},c.prototype.updateLabelLayout=function(){W0.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},c.prototype.appendData=function(t){var e;this._disposed?this.id:(e=t.seriesIndex,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp())},c.internalField=(iv=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),rv(t,!0),rv(t,!1),e.plan()},rv=function(t,r){for(var o=t._model,a=t._scheduler,s=r?t._componentsViews:t._chartsViews,l=r?t._componentsMap:t._chartsMap,u=t._zr,h=t._api,e=0;e<s.length;e++)s[e].__alive=!1;function n(t){var e,n=t.__requireNewView,i=(t.__requireNewView=!1,"_ec_"+t.id+"_"+t.type),n=!n&&l[i];n||(e=ya(t.type),(n=new(r?rm.getClass(e.main,e.sub):um.getClass(e.sub))).init(o,h),l[i]=n,s.push(n),u.add(n.group)),t.__viewId=n.__id=i,n.__alive=!0,n.__model=t,n.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},r||a.prepareView(n,t,o,h)}r?o.eachComponent(function(t,e){"series"!==t&&n(e)}):o.eachSeries(n);for(e=0;e<s.length;){var i=s[e];i.__alive?e++:(r||i.renderTask.dispose(),u.remove(i.group),i.dispose(o,h),s.splice(e,1),l[i.__id]===i&&delete l[i.__id],i.__id=i.group.__ecComponentInfo=null)}},ov=function(c,e,p,n,t){var i,d,r=c._model;function o(t){t&&t.__alive&&t[e]&&t[e](t.__model,r,c._api,p)}r.setUpdatePayload(p),n?((i={})[n+"Id"]=p[n+"Id"],i[n+"Index"]=p[n+"Index"],i[n+"Name"]=p[n+"Name"],i={mainType:n,query:i},t&&(i.subType=t),null!=(t=p.excludeSeriesId)&&(d=it(),nt(Zo(t),function(t){t=ta(t,null);null!=t&&d.set(t,!0)})),r&&r.eachComponent(i,function(t){var e,n,i=d&&null!=d.get(t.id);if(!i)if(Iu(p))if(t instanceof Ky){if(p.type===Vl&&!p.notBlur&&!t.get(["emphasis","disabled"])){var i=t,r=p,o=c._api,a=i.seriesIndex,s=i.getData(r.dataType);if(s){var r=(V(r=ra(s,r))?r[0]:r)||0,l=s.getItemGraphicEl(r);if(!l)for(var u=s.count(),h=0;!l&&h<u;)l=s.getItemGraphicEl(h++);l?fu(a,(r=U(l)).focus,r.blurScope,o):(r=i.get(["emphasis","focus"]),i=i.get(["emphasis","blurScope"]),null!=r&&fu(a,r,i,o))}}}else{a=yu(t.mainType,t.componentIndex,p.name,c._api),r=a.focusSelf,i=a.dispatchers;p.type===Vl&&r&&!p.notBlur&&gu(t.mainType,t.componentIndex,c._api),i&&nt(i,function(t){(p.type===Vl?su:lu)(t)})}else Tu(p)&&t instanceof Ky&&(o=t,i=p,c._api,Tu(i)&&(e=i.dataType,V(n=ra(o.getData(e),i))||(n=[n]),o[i.type===Wl?"toggleSelect":i.type===Hl?"select":"unselect"](n,e)),mu(t),_v(c))},c),r&&r.eachComponent(i,function(t){d&&null!=d.get(t.id)||o(c["series"===n?"_chartsMap":"_componentsMap"][t.__viewId])},c)):nt([].concat(c._componentsViews).concat(c._chartsViews),o)},av={prepareAndUpdate:function(t){iv(this),av.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(t,e){var n=this._model,i=this._api,r=this._zr,o=this._coordSysMgr,a=this._scheduler;n&&(n.setUpdatePayload(t),a.restoreData(n,t),a.performSeriesTasks(n),o.create(n,i),a.performDataProcessorTasks(n,t),lv(this,n),o.update(n,i),Mv(n),a.performVisualTasks(n,t),o=n.get("backgroundColor")||"transparent",r.setBackgroundColor(o),null!=(a=n.get("darkMode"))&&"auto"!==a&&r.setDarkMode(a),fv(this,n,i,t,e),W0.trigger("afterupdate",n,i))},updateTransform:function(n){var i,r,o=this,a=this._model,s=this._api;a&&(a.setUpdatePayload(n),i=[],a.eachComponent(function(t,e){"series"!==t&&(t=o.getViewOfComponentModel(e))&&t.__alive&&(!t.updateTransform||(e=t.updateTransform(e,a,s,n))&&e.update)&&i.push(t)}),r=it(),a.eachSeries(function(t){var e=o._chartsMap[t.__viewId];(!e.updateTransform||(e=e.updateTransform(t,a,s,n))&&e.update)&&r.set(t.uid,1)}),Mv(a),this._scheduler.performVisualTasks(a,n,{setDirty:!0,dirtyMap:r}),yv(this,a,s,n,{},r),W0.trigger("afterupdate",a,s))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),um.markUpdateMethod(t,"updateView"),Mv(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),fv(this,e,this._api,t,{}),W0.trigger("afterupdate",e,this._api))},updateVisual:function(n){var i=this,r=this._model;r&&(r.setUpdatePayload(n),r.eachSeries(function(t){t.getData().clearAllVisual()}),um.markUpdateMethod(n,"updateVisual"),Mv(r),this._scheduler.performVisualTasks(r,n,{visualType:"visual",setDirty:!0}),r.eachComponent(function(t,e){"series"!==t&&(t=i.getViewOfComponentModel(e))&&t.__alive&&t.updateVisual(e,r,i._api,n)}),r.eachSeries(function(t){i._chartsMap[t.__viewId].updateVisual(t,r,i._api,n)}),W0.trigger("afterupdate",r,this._api))},updateLayout:function(t){av.update.call(this,t)}},sv=function(t,e,n,i,r){if(t._disposed)t.id;else for(var o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=sa(o,n),l=0;l<a.length;l++){var u=a[l];if(u[e]&&null!=(u=u[e](o,s,i,r)))return u}},lv=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},uv=function(i,t){var r,o=this,a=this.getModel(),e=i.type,n=i.escapeConnect,s=Lv[e],e=(s.update||"update").split(":"),l=e.pop(),u=null!=e[0]&&ya(e[0]),e=(this[X0]=!0,bv(this),[i]),h=!1,c=(i.batch&&(h=!0,e=B(i.batch,function(t){return(t=E(P({},t),i)).batch=null,t})),[]),p=[],d=s.nonRefinedEventType,f=Tu(i),g=Iu(i);if(g&&du(this._api),nt(e,function(t){var e,n=s.action(t,a,o._api);s.refineEvent?p.push(n):r=n,(r=r||P({},t)).type=d,c.push(r),g?(e=(n=la(i)).queryOptionMap,n=n.mainTypeSpecified?e.keys()[0]:"series",ov(o,l,t,n),_v(o)):f?(ov(o,l,t,"series"),_v(o)):u&&ov(o,l,t,u.main,u.sub)}),"none"!==l&&!g&&!f&&!u)try{this[Z0]?(iv(this),av.update.call(this,i),this[Z0]=null):av[l].call(this,i)}catch(t){throw this[X0]=!1,t}r=h?{type:d,escapeConnect:n,batch:c}:c[0],this[X0]=!1,t||(e=void 0,s.refineEvent&&(Tt(N(h=s.refineEvent(p,i,a,this._api).eventContent)),(e=E({type:s.refinedEventType},h)).fromAction=i.type,e.fromActionPayload=i,e.escapeConnect=!0),(n=this._messageCenter).trigger(r.type,r),e&&n.trigger(e.type,e))},hv=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();uv.call(this,n,t)}},cv=function(t){t||this.trigger("updated")},pv=function(e,n){e.on("rendered",function(t){n.trigger("rendered",t),!e.animation.isFinished()||n[Z0]||n._scheduler.unfinished||n._pendingActions.length||n.trigger("finished")})},dv=function(t,a){t.on("mouseover",function(t){var e,n,i,r,o=Jm(t.target,Mu);o&&(o=o,e=t,t=a._api,n=U(o),i=(r=yu(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,r=r.focusSelf,i?(r&&gu(n.componentMainType,n.componentIndex,t),nt(i,function(t){return ou(t,e)})):(fu(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&gu(n.componentMainType,n.componentIndex,t),ou(o,e)),_v(a))}).on("mouseout",function(t){var e,n,i=Jm(t.target,Mu);i&&(i=i,e=t,du(t=a._api),(n=yu((n=U(i)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?nt(n,function(t){return au(t,e)}):au(i,e),_v(a))}).on("click",function(t){var e,t=Jm(t.target,function(t){return null!=U(t).dataIndex},!0);t&&(e=t.selected?"unselect":"select",t=U(t),a._api.dispatchAction({type:e,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},fv=function(t,e,n,i,r){var o,a,s,l,u,h,c;u=[],c=!(h=[]),(o=e).eachComponent(function(t,e){var n=e.get("zlevel")||0,i=e.get("z")||0,r=e.getZLevelKey();c=c||!!r,("series"===t?h:u).push({zlevel:n,z:i,idx:e.componentIndex,type:t,key:r})}),c&&(Ln(a=u.concat(h),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),nt(a,function(t){var e=o.getComponent(t.type,t.idx),n=t.zlevel,t=t.key;null!=s&&(n=Math.max(s,n)),t?(n===s&&t!==l&&n++,l=t):l&&(n===s&&n++,l=""),s=n,e.setZLevel(n)})),gv(t,e,n,i,r),nt(t._chartsViews,function(t){t.__alive=!1}),yv(t,e,n,i,r),nt(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},gv=function(t,n,i,r,e,o){nt(o||t._componentsViews,function(t){var e=t.__model;Cv(0,t),t.render(e,n,i,r),Iv(e,t),kv(e,t)})},yv=function(r,t,e,o,n,a){var i,s,l,u,h=r._scheduler,c=(n=P(n||{},{updatedSeries:t.getSeries()}),W0.trigger("series:beforeupdate",t,e,n),!1);t.eachSeries(function(t){var e,n=r._chartsMap[t.__viewId],i=(n.__alive=!0,n.renderTask);h.updatePayload(i,o),Cv(0,n),a&&a.get(t.uid)&&i.dirty(),i.perform(h.getPerformArgs(i))&&(c=!0),n.group.silent=!!t.get("silent"),i=n,e=t.get("blendMode")||null,i.eachRendered(function(t){t.isGroup||(t.style.blend=e)}),mu(t)}),h.unfinished=c||h.unfinished,W0.trigger("series:layoutlabels",t,e,n),W0.trigger("series:transition",t,e,n),t.eachSeries(function(t){var e=r._chartsMap[t.__viewId];Iv(t,e),kv(t,e)}),s=t,l=(i=r)._zr.storage,u=0,l.traverse(function(t){t.isGroup||u++}),u>s.get("hoverLayerThreshold")&&!w.node&&!w.worker&&s.eachSeries(function(t){t.preventUsingHoverLayer||(t=i._chartsMap[t.__viewId]).__alive&&t.eachRendered(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}),W0.trigger("series:afterupdate",t,e,n)},_v=function(t){t[q0]=!0,t.getZr().wakeUp()},bv=function(t){t[Y0]=(t[Y0]+1)%1e3},xv=function(t){t[q0]&&(t.getZr().storage.traverse(function(t){vc(t)||Tv(t)}),t[q0]=!1)},mv=function(n){return u(t,e=Bf),t.prototype.getCoordinateSystems=function(){return n._coordSysMgr.getCoordinateSystems()},t.prototype.getComponentByElement=function(t){for(;t;){var e=t.__ecComponentInfo;if(null!=e)return n._model.getComponent(e.mainType,e.index);t=t.parent}},t.prototype.enterEmphasis=function(t,e){su(t,e),_v(n)},t.prototype.leaveEmphasis=function(t,e){lu(t,e),_v(n)},t.prototype.enterBlur=function(t){tu(t,jl),_v(n)},t.prototype.leaveBlur=function(t){uu(t),_v(n)},t.prototype.enterSelect=function(t){hu(t),_v(n)},t.prototype.leaveSelect=function(t){cu(t),_v(n)},t.prototype.getModel=function(){return n.getModel()},t.prototype.getViewOfComponentModel=function(t){return n.getViewOfComponentModel(t)},t.prototype.getViewOfSeriesModel=function(t){return n.getViewOfSeriesModel(t)},t.prototype.getMainProcessVersion=function(){return n[Y0]},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(vv=function(i){function r(t,e){for(var n=0;n<t.length;n++)t[n][K0]=e}nt(Av,function(t,e){i._messageCenter.on(e,function(t){var e,n;!Vv[i.group]||0===i[K0]||t&&t.escapeConnect||(e=i.makeActionFromEvent(t),n=[],nt(Bv,function(t){t!==i&&t.group===i.group&&n.push(t)}),r(n,0),nt(n,function(t){1!==t[K0]&&t.dispatchAction(e)}),r(n,2))})})})),c);function c(t,e,n){var i=wv.call(this,new Xm)||this,t=(i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i._dom=t,i[Y0]=1,n.ssr&&vo(function(t){var e,t=U(t),n=t.dataIndex;if(null!=n)return(e=it()).set("series_index",t.seriesIndex),e.set("data_index",n),t.ssrType&&e.set("ssr_type",t.ssrType),e}),i._zr=yo(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:G(n.useDirtyRect,!1),useCoarsePointer:G(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize})),n=(i._ssr=n.ssr,i._throttledZrFlush=_m(S(t.flush,t),17),i._updateTheme(e),i._locale=F(e=n.locale||Gp)?(n=Fp[e.toUpperCase()]||{},e===Ep||e===Bp?y(n):d(y(n),y(Fp[Vp]),!1)):d(y(e),y(Fp[Vp]),!1),i._coordSysMgr=new Pd,i._api=mv(i));function r(t,e){return t.__prio-e.__prio}return Ln(zv,r),Ln(Ov,r),i._scheduler=new Dm(i,n,Ov,zv),i._messageCenter=new ev,i._initEvents(),i.resize=S(i.resize,i),t.animation.on("frame",i._onframe,i),pv(t,i),dv(t,i),kt(i),i}function Mv(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function Tv(t){for(var e=[],n=t.currentStates,i=0;i<n.length;i++){var r=n[i];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),t.hoverState===Nl&&t.states.emphasis?e.push("emphasis"):t.hoverState===zl&&t.states.blur&&e.push("blur"),t.useStates(e)}function Iv(t,e){var n;t.preventAutoZ||(n=np(t),e.eachRendered(function(t){return ip(t,n.z,n.zlevel),!0}))}function Cv(t,e){e.eachRendered(function(t){var e,n;vc(t)||(e=t.getTextContent(),n=t.getTextGuideLine(),t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null))})}function kv(t,e){var n=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),t=n.get("duration"),o=0<t?{duration:t,delay:n.get("delay"),easing:n.get("easing")}:null;e.eachRendered(function(t){var e,n,i;t.states&&t.states.emphasis&&(vc(t)||(t instanceof js&&((i=Pl(n=t)).normalFill=n.style.fill,i.normalStroke=n.style.stroke,n=n.states.select||{},i.selectFill=n.style&&n.style.fill||null,i.selectStroke=n.style&&n.style.stroke||null),t.__dirty&&(i=t.prevStates)&&t.useStates(i),r&&(t.stateTransition=o,n=t.getTextContent(),e=t.getTextGuideLine(),n&&(n.stateTransition=o),e)&&(e.stateTransition=o),t.__dirty&&Tv(t)))})}var a0=Sv.prototype,Dv=(a0.on=$0("on"),a0.off=$0("off"),a0.one=function(i,r,t){var o=this;this.on.call(this,i,function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r&&r.apply&&r.apply(this,e),o.off(i,t)},t)},["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"]);var Lv={},Av={},Pv={},Ov=[],Rv=[],zv=[],Nv={},Ev={},Bv={},Vv={},Fv=+new Date,Hv=+new Date,Gv="_echarts_instance_";function Wv(t){Vv[t]=!1}i0=Wv;function Uv(t){return Bv[e=Gv,(t=t).getAttribute?t.getAttribute(e):t[e]];var e}function Xv(t,e){Nv[t]=e}function Yv(t){k(Rv,t)<0&&Rv.push(t)}function Zv(t,e){n_(Ov,t,e,2e3)}function qv(t){Kv("afterinit",t)}function jv(t){Kv("afterupdate",t)}function Kv(t,e){W0.on(t,e)}function $v(t,e,n){var i,r,o,a;function s(t){return t.toLowerCase()}z(e)&&(n=e,e=""),N(t)?(i=t.type,l=t.event,o=t.update,a=t.publishNonRefinedEvent,n=n||t.action,r=t.refineEvent):(i=t,l=e);var l=s(l||i),t=r?s(i):l;Lv[i]||(Tt(j0.test(i)&&j0.test(l)),r&&Tt(l!==i),Lv[i]={actionType:i,refinedEventType:l,nonRefinedEventType:t,update:o,action:n,refineEvent:r},Pv[l]=1,r&&a&&(Pv[t]=1),Av[t]=i)}function Qv(t,e){Pd.register(t,e)}function Jv(t,e){n_(zv,t,e,1e3,"layout")}function t_(t,e){n_(zv,t,e,3e3,"visual")}var e_=[];function n_(t,e,n,i,r){(z(e)||N(e))&&(n=e,e=i),0<=k(e_,n)||(e_.push(n),(i=Dm.wrapStageHandler(n,r)).__prio=e,i.__raw=n,t.push(i))}function i_(t,e){Ev[t]=e}function r_(t,e,n){var i=U0.registerMap;i&&i(t,e,n)}function o_(t){var e=(t=y(t)).type,n=(e||f(""),e.split(":")),i=(2!==n.length&&f(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,py.set(e,t)}function a_(t,e,n,i){return{eventContent:{selected:(r=[],n.eachSeries(function(n){nt(n.getAllData(),function(t){t.data;var t=t.type,e=n.getSelectedDataIndices();0<e.length&&(e={dataIndex:e,seriesIndex:n.seriesIndex},null!=t&&(e.dataType=t),r.push(e))})}),r),isFromClick:e.isFromClick||!1}};var r}t_(2e3,Ta),t_(4500,Tp),t_(4500,$p),t_(2e3,Ec),t_(4500,Dp),t_(7e3,function(e,i){e.eachRawSeries(function(t){var n;!e.isSeriesFiltered(t)&&((n=t.getData()).hasItemVisual()&&n.each(function(t){var e=n.getItemVisual(t,"decal");e&&(n.ensureUniqueItemVisual(t,"style").decal=H0(e,i))}),t=n.getVisual("decal"))&&(n.getVisual("style").decal=H0(t,i))})}),Yv(sg),Zv(900,function(t){var i=it();t.eachSeries(function(t){var e,n=t.get("stack");n&&(n=i.get(n)||i.set(n,[]),(e={stackResultDimension:(e=t.getData()).getCalculationInfo("stackResultDimension"),stackedOverDimension:e.getCalculationInfo("stackedOverDimension"),stackedDimension:e.getCalculationInfo("stackedDimension"),stackedByDimension:e.getCalculationInfo("stackedByDimension"),isStackedByIndex:e.getCalculationInfo("isStackedByIndex"),data:e,seriesModel:t}).stackedDimension)&&(e.isStackedByIndex||e.stackedByDimension)&&n.push(e)}),i.each(function(n){var _;0!==n.length&&("seriesDesc"===(n[0].seriesModel.get("stackOrder")||"seriesAsc")&&n.reverse(),nt(n,function(t,e){t.data.setCalculationInfo("stackedOnSeries",0<e?n[e-1].seriesModel:null)}),nt(_=n,function(p,d){var f=[],g=[NaN,NaN],t=[p.stackResultDimension,p.stackedOverDimension],y=p.data,m=p.isStackedByIndex,v=p.seriesModel.get("stackStrategy")||"samesign";y.modify(t,function(t,e,n){var i,r,o=y.get(p.stackedDimension,n);if(isNaN(o))return g;m?r=y.getRawIndex(n):i=y.get(p.stackedByDimension,n);for(var a,s,l,u=NaN,h=d-1;0<=h;h--){var c=_[h];if(0<=(r=m?r:c.data.rawIndexOf(c.stackedByDimension,i))){c=c.data.getByRawIndex(c.stackResultDimension,r);if("all"===v||"positive"===v&&0<c||"negative"===v&&c<0||"samesign"===v&&0<=o&&0<c||"samesign"===v&&o<=0&&c<0){a=o,s=c,l=void 0,l=Math.max(Do(a),Do(s)),a+=s,o=xo<l?a:Co(a,l),u=c;break}}}return f[0]=o,f[1]=u,f})}))})}),i_("default",function(i,r){E(r=r||{},{text:"loading",textColor:v.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:v.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var o,t=new lo,a=new pl({style:{fill:r.maskColor},zlevel:r.zlevel,z:1e4}),s=(t.add(a),new vl({style:{text:r.text,fill:r.textColor,fontSize:r.fontSize,fontWeight:r.fontWeight,fontStyle:r.fontStyle,fontFamily:r.fontFamily},zlevel:r.zlevel,z:10001})),l=new pl({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:r.zlevel,z:10001});return t.add(l),r.showSpinner&&((o=new Wh({shape:{startAngle:-km/2,endAngle:-km/2+.1,r:r.spinnerRadius},style:{stroke:r.color,lineCap:"round",lineWidth:r.lineWidth},zlevel:r.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*km/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*km/2}).delay(300).start("circularInOut"),t.add(o)),t.resize=function(){var t=s.getBoundingRect().width,e=r.showSpinner?r.spinnerRadius:0,t=(i.getWidth()-2*e-(r.showSpinner&&t?10:0)-t)/2-(r.showSpinner&&t?0:5+t/2)+(r.showSpinner?0:t/2)+(t?0:e),n=i.getHeight()/2;r.showSpinner&&o.setShape({cx:t,cy:n}),l.setShape({x:t-e,y:n-e,width:2*e,height:2*e}),a.setShape({x:0,y:0,width:i.getWidth(),height:i.getHeight()})},t.resize(),t}),$v({type:Vl,event:Vl,update:Vl},Vt),$v({type:Fl,event:Fl,update:Fl},Vt),$v({type:Hl,event:Ul,update:Hl,action:Vt,refineEvent:a_,publishNonRefinedEvent:!0}),$v({type:Gl,event:Ul,update:Gl,action:Vt,refineEvent:a_,publishNonRefinedEvent:!0}),$v({type:Wl,event:Ul,update:Wl,action:Vt,refineEvent:a_,publishNonRefinedEvent:!0}),Xv("default",{}),Xv("dark",Sp);function s_(t){return null==t?0:t.length||1}function l_(t){return t}h_.prototype.add=function(t){return this._add=t,this},h_.prototype.update=function(t){return this._update=t,this},h_.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},h_.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},h_.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},h_.prototype.remove=function(t){return this._remove=t,this},h_.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},h_.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a,s=i[o],l=n[s],u=s_(l);1<u?(a=l.shift(),1===l.length&&(n[s]=l[0]),this._update&&this._update(a,o)):1===u?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},h_.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=n[s],u=i[s],h=s_(l),c=s_(u);if(1<h&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&1<c)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(1<h&&1<c)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(1<h)for(var p=0;p<h;p++)this._remove&&this._remove(l[p]);else this._remove&&this._remove(l)}this._performRestAdd(o,i)},h_.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=s_(r);if(1<o)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[i]=null}},h_.prototype._initIndexMap=function(t,e,n,i){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a,s,l="_ec_"+this[i](t[o],o);r||(n[o]=l),e&&(0===(s=s_(a=e[l]))?(e[l]=o,r&&n.push(l)):1===s?e[l]=[a,o]:a.push(o))}};var u_=h_;function h_(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||l_,this._newKeyGetter=i||l_,this.context=r,this._diffModeMultiple="multiple"===o}p_.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},p_.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var c_=p_;function p_(t,e){this._encode=t,this._schema=e}function d_(o,t){var e={},a=e.encode={},s=it(),l=[],u=[],h={},i=(nt(o.dimensions,function(t){var e,n,i=o.getDimensionInfo(t),r=i.coordDim;r&&(e=i.coordDimIndex,f_(a,r)[e]=t,i.isExtraCoord||(s.set(r,1),"ordinal"!==(n=i.type)&&"time"!==n&&(l[0]=t),f_(h,r)[e]=o.getDimensionIndex(i.name)),i.defaultTooltip)&&u.push(t),lf.each(function(t,e){var n=f_(a,e),e=i.otherDims[e];null!=e&&!1!==e&&(n[e]=i.name)})}),[]),r={},n=(s.each(function(t,e){var n=a[e];r[e]=n[0],i=i.concat(n)}),e.dataDimsOnCoord=i,e.dataDimIndicesOnCoord=B(i,function(t){return o.getDimensionInfo(t).storeDimIndex}),e.encodeFirstDimNotExtra=r,a.label),n=(n&&n.length&&(l=n.slice()),a.tooltip);return n&&n.length?u=n.slice():u.length||(u=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=u,e.userOutput=new c_(h,t),e}function f_(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var g_=function(t){this.otherDims={},null!=t&&P(this,t)},y_=oa(),m_={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},v_=(__.prototype.isDimensionOmitted=function(){return this._dimOmitted},__.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=w_(this.source))},__.prototype.getSourceDimensionIndex=function(t){return G(this._dimNameMap.get(t),-1)},__.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},__.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=mg(this.source),n=!(30<t),i="",r=[],o=0,a=0;o<t;o++){var s,l=void 0,u=void 0,h=void 0,c=this.dimensions[a];c&&c.storeDimIndex===o?(l=e?c.name:null,u=c.type,h=c.ordinalMeta,a++):(s=this.getSourceDimension(o))&&(l=e?s.name:null,u=s.type),r.push({property:l,type:u,ordinalMeta:h}),!e||null==l||c&&c.isCalculationCoord||(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i=i+"$"+(m_[u]||"f"),h&&(i+=h.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},__.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,n=0;e<this._fullDimCount;e++){var i=void 0,r=this.dimensions[n];r&&r.storeDimIndex===e?(r.isCalculationCoord||(i=r.name),n++):(r=this.getSourceDimension(e))&&(i=r.name),t.push(i)}return t},__.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},__);function __(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function x_(t){return t instanceof v_}function b_(t){for(var e=it(),n=0;n<(t||[]).length;n++){var i=t[n],i=N(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function w_(t){var e=y_(t);return e.dimNameMap||(e.dimNameMap=b_(t.dimensionsDefine))}var S_,M_,T_,I_,C_,k_,D_,L_=N,A_=B,P_="undefined"==typeof Int32Array?Array:Int32Array,O_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],R_=["_approximateExtent"],z_=(p.prototype.getDimension=function(t){var e;return null==(e=this._recognizeDimIndex(t))?t:(e=t,this._dimOmitted?null!=(t=this._dimIdxToName.get(e))?t:(t=this._schema.getSourceDimension(e))?t.name:void 0:this.dimensions[e])},p.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);return null!=e?e:null==t?-1:(e=this._getDimInfo(t))?e.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},p.prototype._recognizeDimIndex=function(t){if(H(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},p.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},p.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},p.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},p.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},p.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},p.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},p.prototype.getStore=function(){return this._store},p.prototype.initData=function(t,e,n){var i,r,o=this;(i=t instanceof Sy?t:i)||(r=this.dimensions,t=cg(t)||st(t)?new bg(t,r.length):t,i=new Sy,r=A_(r,function(t){return{type:o._dimInfos[t].type,property:t}}),i.initData(t,r,n)),this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=d_(this,this._schema),this.userOutput=this._dimSummary.userOutput},p.prototype.appendData=function(t){t=this._store.appendData(t);this._doInit(t[0],t[1])},p.prototype.appendValues=function(t,e){var t=this._store.appendValues(t,e&&e.length),n=t.start,i=t.end,r=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var o=n;o<i;o++)this._nameList[o]=e[o-n],r&&D_(this,o)},p.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},p.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==df&&!t.fillStorage},p.prototype._doInit=function(t,e){if(!(e<=t)){var n=this._store.getProvider(),i=(this._updateOrdinalMeta(),this._nameList),r=this._idList;if(n.getSource().sourceFormat===uf&&!n.pure)for(var o=[],a=t;a<e;a++){var s,l=n.getItem(a,o);this.hasItemOption||!N(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==i[a]&&null!=s&&(i[a]=ta(s,null)),l=l.id,null==r[a])&&null!=l&&(r[a]=ta(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)D_(this,a);S_(this)}},p.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},p.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},p.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},p.prototype.setCalculationInfo=function(t,e){L_(t)?P(this._calculationInfo,t):this._calculationInfo[t]=e},p.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?T_(this,this._nameDimIdx,t):e)?"":e},p.prototype._getCategory=function(t,e){e=this._store.get(t,e),t=this._store.getOrdinalMeta(t);return t?t.categories[e]:e},p.prototype.getId=function(t){return M_(this,this.getRawIndex(t))},p.prototype.count=function(){return this._store.count()},p.prototype.get=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},p.prototype.getByRawIndex=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},p.prototype.getIndices=function(){return this._store.getIndices()},p.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},p.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},p.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},p.prototype.getValues=function(t,e){var n=this,i=this._store;return V(t)?i.getValues(A_(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},p.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},p.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},p.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},p.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},p.prototype.rawIndexOf=function(t,e){t=t&&this._invertedIndicesMap[t],t=t&&t[e];return null==t||isNaN(t)?-1:t},p.prototype.each=function(t,e,n){z(t)&&(n=e,e=t,t=[]);n=n||this,t=A_(I_(t),this._getStoreDimIndex,this);this._store.each(t,n?S(e,n):e)},p.prototype.filterSelf=function(t,e,n){z(t)&&(n=e,e=t,t=[]);n=n||this,t=A_(I_(t),this._getStoreDimIndex,this);return this._store=this._store.filter(t,n?S(e,n):e),this},p.prototype.selectRange=function(n){var i=this,r={};return nt(ct(n),function(t){var e=i._getStoreDimIndex(t);r[e]=n[t]}),this._store=this._store.selectRange(r),this},p.prototype.mapArray=function(t,e,n){z(t)&&(n=e,e=t,t=[]);var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n=n||this),i},p.prototype.map=function(t,e,n,i){n=n||i||this,i=A_(I_(t),this._getStoreDimIndex,this),t=k_(this);return t._store=this._store.map(i,n?S(e,n):e),t},p.prototype.modify=function(t,e,n,i){n=n||i||this,i=A_(I_(t),this._getStoreDimIndex,this);this._store.modify(i,n?S(e,n):e)},p.prototype.downSample=function(t,e,n,i){var r=k_(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},p.prototype.minmaxDownSample=function(t,e){var n=k_(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},p.prototype.lttbDownSample=function(t,e){var n=k_(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},p.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},p.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new Pp(t,e,e&&e.ecModel)},p.prototype.diff=function(e){var n=this;return new u_(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return M_(e,t)},function(t){return M_(n,t)})},p.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},p.prototype.setVisual=function(t,e){this._visual=this._visual||{},L_(t)?P(this._visual,t):this._visual[t]=e},p.prototype.getItemVisual=function(t,e){t=this._itemVisuals[t],t=t&&t[e];return null==t?this.getVisual(e):t},p.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},p.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],n=(i=i||(n[t]={}))[e];return null==n&&(V(n=this.getVisual(e))?n=n.slice():L_(n)&&(n=P({},n)),i[e]=n),n},p.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,L_(e)?P(i,e):i[e]=n},p.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},p.prototype.setLayout=function(t,e){L_(t)?P(this._layout,t):this._layout[t]=e},p.prototype.getLayout=function(t){return this._layout[t]},p.prototype.getItemLayout=function(t){return this._itemLayouts[t]},p.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?P(this._itemLayouts[t]||{},e):e},p.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},p.prototype.setItemGraphicEl=function(t,e){var n,i,r,o,a=this.hostModel&&this.hostModel.seriesIndex;n=a,i=this.dataType,r=t,(a=e)&&((o=U(a)).dataIndex=r,o.dataType=i,o.seriesIndex=n,o.ssrType="chart","group"===a.type)&&a.traverse(function(t){t=U(t);t.seriesIndex=n,t.dataIndex=r,t.dataType=i,t.ssrType="chart"}),this._graphicEls[t]=e},p.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},p.prototype.eachItemGraphicEl=function(n,i){nt(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},p.prototype.cloneShallow=function(t){return t=t||new p(this._schema||A_(this.dimensions,this._getDimInfo,this),this.hostModel),C_(t,this),t._store=this._store,t},p.prototype.wrapMethod=function(t,e){var n=this[t];z(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(St(arguments)))})},p.internalField=(S_=function(a){var s=a._invertedIndicesMap;nt(s,function(t,e){var n=a._dimInfos[e],i=n.ordinalMeta,r=a._store;if(i){t=s[e]=new P_(i.categories.length);for(var o=0;o<t.length;o++)t[o]=-1;for(o=0;o<r.count();o++)t[r.get(n.storeDimIndex,o)]=o}})},T_=function(t,e,n){return ta(t._getCategory(e,n),null)},M_=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?T_(t,t._idDimIdx,e):n)?"e\0\0"+e:n},I_=function(t){return t=V(t)?t:null!=t?[t]:[]},k_=function(t){var e=new p(t._schema||A_(t.dimensions,t._getDimInfo,t),t.hostModel);return C_(e,t),e},C_=function(e,n){nt(O_.concat(n.__wrappedMethods||[]),function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e.__wrappedMethods=n.__wrappedMethods,nt(R_,function(t){e[t]=y(n[t])}),e._calculationInfo=P({},n._calculationInfo)},void(D_=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];null==a&&null!=r&&(n[e]=a=T_(t,r,e)),null==s&&null!=o&&(i[e]=s=T_(t,o,e)),null==s&&null!=a&&(s=a,1<(r=(n=t._nameRepeatCount)[a]=(n[a]||0)+1)&&(s+="__ec__"+r),i[e]=s)})),p);function p(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"];for(var n,i,r=!(this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"]),o=(x_(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"],{}),a=[],s={},l=!1,u={},h=0;h<n.length;h++){var c=n[h],c=F(c)?new g_({name:c}):c instanceof g_?c:new g_(c),p=c.name,d=(c.type=c.type||"float",c.coordDim||(c.coordDim=p,c.coordDimIndex=0),c.otherDims=c.otherDims||{}),p=(a.push(p),null!=u[p]&&(l=!0),(o[p]=c).createInvertedIndices&&(s[p]=[]),h);H(c.storeDimIndex)&&(p=c.storeDimIndex),0===d.itemName&&(this._nameDimIdx=p),0===d.itemId&&(this._idDimIdx=p),r&&(c.storeDimIndex=h)}this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted&&(i=this._dimIdxToName=it(),nt(a,function(t){i.set(o[t].storeDimIndex,t)}))}function N_(t,e){cg(t)||(t=dg(t));for(var n,i,r=(e=e||{}).coordDimensions||[],o=e.dimensionsDefine||t.dimensionsDefine||[],a=it(),s=[],l=(u=t,n=r,p=e.dimensionsCount,i=Math.max(u.dimensionsDetectedCount||1,n.length,o.length,p||0),nt(n,function(t){N(t)&&(t=t.dimsDef)&&(i=Math.max(i,t.length))}),i),u=e.canOmitUnusedDimensions&&30<l,h=o===t.dimensionsDefine,c=h?w_(t):b_(o),p=e.encodeDefine,d=it(p=!p&&e.encodeDefaulter?e.encodeDefaulter(t,l):p),f=new vy(l),g=0;g<f.length;g++)f[g]=-1;function y(t){var e,n,i,r=f[t];return r<0?(e=N(e=o[t])?e:{name:e},n=new g_,null!=(i=e.name)&&null!=c.get(i)&&(n.name=n.displayName=i),null!=e.type&&(n.type=e.type),null!=e.displayName&&(n.displayName=e.displayName),f[t]=s.length,n.storeDimIndex=t,s.push(n),n):s[r]}if(!u)for(g=0;g<l;g++)y(g);d.each(function(t,n){var i,t=Zo(t).slice();1===t.length&&!F(t[0])&&t[0]<0?d.set(n,!1):(i=d.set(n,[]),nt(t,function(t,e){t=F(t)?c.get(t):t;null!=t&&t<l&&v(y(i[e]=t),n,e)}))});var m=0;function v(t,e,n){null!=lf.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,a.set(e,!0))}nt(r,function(t){F(t)?(o=t,r={}):(o=(r=t).name,t=r.ordinalMeta,r.ordinalMeta=null,(r=P({},r)).ordinalMeta=t,n=r.dimsDef,i=r.otherDims,r.name=r.coordDim=r.coordDimIndex=r.dimsDef=r.otherDims=null);var n,i,r,o,e=d.get(o);if(!1!==e){if(!(e=Zo(e)).length)for(var a=0;a<(n&&n.length||1);a++){for(;m<l&&null!=y(m).coordDim;)m++;m<l&&e.push(m++)}nt(e,function(t,e){t=y(t);h&&null!=r.type&&(t.type=r.type),v(E(t,r),o,e),null==t.name&&n&&(N(e=n[e])||(e={name:e}),t.name=t.displayName=e.name,t.defaultTooltip=e.defaultTooltip),i&&E(t.otherDims,i)})}});var _=e.generateCoord,x=null!=(b=e.generateCoordCount),b=_?b||1:0,w=_||"value";function S(t){null==t.name&&(t.name=t.coordDim)}if(u)nt(s,function(t){S(t)}),s.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var M=0;M<l;M++){var T=y(M);null==T.coordDim&&(T.coordDim=function(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}(w,a,x),T.coordDimIndex=0,(!_||b<=0)&&(T.isExtraCoord=!0),b--),S(T),null!=T.type||wf(t,M)!==mf.Must&&(!T.isExtraCoord||null==T.otherDims.itemName&&null==T.otherDims.seriesName)||(T.type="ordinal")}for(var I=s,C=it(),k=0;k<I.length;k++){var D=I[k],L=D.name,A=C.get(L)||0;0<A&&(D.name=L+(A-1)),A++,C.set(L,A)}return new v_({source:t,dimensions:s,fullDimensionCount:l,dimensionOmitted:u})}var E_=function(t){this.coordSysDims=[],this.axisMap=it(),this.categoryAxisMap=it(),this.coordSysName=t};var B_={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",ua).models[0],t=t.getReferringComponents("yAxis",ua).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",t),V_(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),V_(t)&&(i.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",ua).models[0];e.coordSysDims=["single"],n.set("single",t),V_(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar",ua).models[0],r=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",r),n.set("angle",t),V_(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),V_(t)&&(i.set("angle",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,i,r,o){var a=t.ecModel,t=a.getComponent("parallel",t.get("parallelIndex")),s=i.coordSysDims=t.dimensions.slice();nt(t.parallelAxisIndex,function(t,e){var t=a.getComponent("parallelAxis",t),n=s[e];r.set(n,t),V_(t)&&(o.set(n,t),null==i.firstCategoryDimIndex)&&(i.firstCategoryDimIndex=e)})},matrix:function(t,e,n,i){t=t.getReferringComponents("matrix",ua).models[0],e.coordSysDims=["x","y"],e=t.getDimensionModel("x"),t=t.getDimensionModel("y");n.set("x",e),n.set("y",t),i.set("x",e),i.set("y",t)}};function V_(t){return"category"===t.get("type")}function F_(t,e,n){var i,r,o,a,s,l,u,h,c,p=(n=n||{}).byIndex,d=n.stackedCoordDimension,f=(x_(e.schema)?(r=e.schema,i=r.dimensions,o=e.store):i=e,!(!t||!t.get("stack")));return nt(i,function(t,e){F(t)&&(i[e]=t={name:t}),f&&!t.isExtraCoord&&(p||a||!t.ordinalMeta||(a=t),s||"ordinal"===t.type||"time"===t.type||d&&d!==t.coordDim||(s=t))}),!s||p||a||(p=!0),s&&(l="__\0ecstackresult_"+t.id,u="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0),h=s.coordDim,n=s.type,c=0,nt(i,function(t){t.coordDim===h&&c++}),e={name:l,coordDim:h,coordDimIndex:c,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},t={name:u,coordDim:u,coordDimIndex:c+1,type:n,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1},r?(o&&(e.storeDimIndex=o.ensureCalculationDimension(u,n),t.storeDimIndex=o.ensureCalculationDimension(l,n)),r.appendCalculationDimension(e),r.appendCalculationDimension(t)):(i.push(e),i.push(t))),{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:p,stackedOverDimension:u,stackResultDimension:l}}function H_(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function G_(t,e){return H_(t,e)?t.getCalculationInfo("stackResultDimension"):e}function W_(t,e,n){n=n||{};var i,r,o,a,s,l,u=e.getSourceManager(),h=!1,t=(t?(h=!0,i=dg(t)):h=(i=u.getSource()).sourceFormat===uf,function(t){var e=t.get("coordinateSystem"),n=new E_(e);if(e=B_[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),c=(r=t,c=(c=e).get("coordinateSystem"),c=Pd.get(c),p=(p=r&&r.coordSysDims?B(r.coordSysDims,function(t){var e={name:t},t=r.axisMap.get(t);return t&&(t=t.get("type"),e.type="category"===(t=t)?"ordinal":"time"===t?"time":"float"),e}):p)||c&&(c.getDimensionsInfo?c.getDimensionsInfo():c.dimensions.slice())||["x","y"]),p=n.useEncodeDefaulter,p=z(p)?p:p?pt(_f,c,e):null,c={coordDimensions:c,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h},p=N_(i,c),d=(c=p.dimensions,o=n.createInvertedIndices,(a=t)&&nt(c,function(t,e){var n=t.coordDim,n=a.categoryAxisMap.get(n);n&&(null==s&&(s=e),t.ordinalMeta=n.getOrdinalMeta(),o)&&(t.createInvertedIndices=!0),null!=t.otherDims.itemName&&(l=!0)}),l||null==s||(c[s].otherDims.itemName=0),s),n=h?null:u.getSharedDataStore(p),t=F_(e,{schema:p,store:n}),c=new z_(p,e),p=(c.setCalculationInfo(t),null==d||(u=i).sourceFormat!==uf||V(Ko(function(t){var e=0;for(;e<t.length&&null==t[e];)e++;return t[e]}(u.data||[])))?null:function(t,e,n,i){return i===d?n:this.defaultDimValueGetter(t,e,n,i)});return c.hasItemOption=!1,c.initData(h?i:n,null,p),c}function U_(t){return"interval"===t.type||"log"===t.type}function X_(t,e,n,i,r){var o={},e=o.interval=Vo(e/n,!0),n=(null!=i&&e<i&&(e=o.interval=i),null!=r&&r<e&&(e=o.interval=r),o.intervalPrecision=Z_(e)),i=o.niceTickExtent=[Co(Math.ceil(t[0]/e)*e,n),Co(Math.floor(t[1]/e)*e,n)];return r=i,e=t,isFinite(r[0])||(r[0]=e[0]),isFinite(r[1])||(r[1]=e[1]),q_(r,0,e),q_(r,1,e),r[0]>r[1]&&(r[0]=r[1]),o}function Y_(t){var e=Math.pow(10,Bo(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Co(t*e)}function Z_(t){return Do(t)+2}function q_(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function j_(t,e){return t>=e[0]&&t<=e[1]}$_.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=S(t.normalize,t),this.scale=S(t.scale,t)):(this.normalize=Q_,this.scale=J_)};var K_=$_;function $_(){this.normalize=Q_,this.scale=J_}function Q_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function J_(t,e){return t*(e[1]-e[0])+e[0]}function t1(t,e,n){t=Math.log(t);return[Math.log(n?e[0]:Math.max(0,e[0]))/t,Math.log(n?e[1]:Math.max(0,e[1]))/t]}n1.prototype.getSetting=function(t){return this._setting[t]},n1.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent((t[0]<e[0]?t:e)[0],(t[1]>e[1]?t:e)[1])},n1.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},n1.prototype.getExtent=function(){return this._extent.slice()},n1.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},n1.prototype._innerSetExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e),this._brkCtx&&this._brkCtx.update(n)},n1.prototype.setBreaksFromOption=function(t){},n1.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},n1.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},n1.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},n1.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},n1.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},n1.prototype.isBlank=function(){return this._isBlank},n1.prototype.setBlank=function(t){this._isBlank=t};var e1=n1;function n1(t){this._calculator=new K_,this._setting=t||{},this._extent=[1/0,-1/0]}wa(e1);var i1=0,r1=(o1.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&B(e,a1);return new o1({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},o1.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},o1.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return F(t)||i?(i&&!this._deduplication?(n=this.categories.length,this.categories[n]=t,this._onCollect&&this._onCollect(t,n)):null==(n=(e=this._getOrCreateMap()).get(t))&&(i?(n=this.categories.length,this.categories[n]=t,e.set(t,n),this._onCollect&&this._onCollect(t,n)):n=NaN),n):t},o1.prototype._getOrCreateMap=function(){return this._map||(this._map=it(this.categories))},o1);function o1(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++i1,this._onCollect=t.onCollect}function a1(t){return N(t)&&null!=t.value?t.value:t+""}u(u1,s1=e1),u1.prototype.parse=function(t){return null==t?NaN:F(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},u1.prototype.contain=function(t){return j_(t,this._extent)&&0<=t&&t<this._ordinalMeta.categories.length},u1.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},u1.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},u1.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},u1.prototype.getMinorTicks=function(t){},u1.prototype.setSortInfo=function(t){if(null==t)this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;else{for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r<a;++r){var s=e[r];i[n[r]=s]=r}for(var l=0;r<o;++r){for(;null!=i[l];)l++;n.push(l),i[l]=r}}},u1.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},u1.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},u1.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},u1.prototype.count=function(){return this._extent[1]-this._extent[0]+1},u1.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},u1.prototype.getOrdinalMeta=function(){return this._ordinalMeta},u1.prototype.calcNiceTicks=function(){},u1.prototype.calcNiceExtent=function(){},u1.type="ordinal";var s1,l1=u1;function u1(t){var t=s1.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return V(e=e||new r1({}))&&(e=new r1({categories:B(e,function(t){return N(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}e1.registerClass(l1);var h1,c1=Co,p1=(u(d1,h1=e1),d1.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},d1.prototype.contain=function(t){return j_(t,this._extent)},d1.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},d1.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},d1.prototype.getInterval=function(){return this._interval},d1.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Z_(t)},d1.prototype.getTicks=function(t){t=t||{};var n=this._interval,e=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=Up,a=[];if(n)if("only_break"===t.breakTicks&&o)o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent);else{e[0]<i[0]&&(t.expandToNicedExtent?a.push({value:c1(i[0]-n,r)}):a.push({value:e[0]}));for(var s,l=function(t,e){return Math.round((e-t)/n)},u=i[0];u<=i[1];){if(a.push({value:u}),u=c1(u+n,r),this._brkCtx&&0<=(s=this._brkCtx.calcNiceTickMultiple(u,l))&&(u=c1(u+s*n,r)),0<a.length&&u===a[a.length-1].value)break;if(1e4<a.length)return[]}var h=a.length?a[a.length-1].value:i[1];e[1]>h&&(t.expandToNicedExtent?a.push({value:c1(h+n,r)}):a.push({value:e[1]})),"none"!==t.breakTicks&&o&&o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent)}return a},d1.prototype.getMinorTicks=function(t){for(var e=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),r=1;r<e.length;r++){var o=e[r],a=e[r-1];if(!a.break&&!o.break){for(var s=0,l=[],u=(o.value-a.value)/t,h=Z_(u);s<t-1;){var c=c1(a.value+(s+1)*u,h);c>i[0]&&c<i[1]&&l.push(c),s++}Up&&Up.pruneTicksByBreak("auto",l,this._getNonTransBreaks(),function(t){return t},this._interval,i),n.push(l)}}return n},d1.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},d1.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=Do(t.value)||0:"auto"===e&&(e=this._intervalPrecision),xd(c1(t.value,e,!0)))},d1.prototype.calcNiceTicks=function(t,e,n){t=t||5;var i=this._extent.slice(),r=this._getExtentSpanWithBreaks();isFinite(r)&&(r<0&&(r=-r,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice()),i=X_(i,r,t,e,n),this._intervalPrecision=i.intervalPrecision,this._interval=i.interval,this._niceExtent=i.niceTickExtent)},d1.prototype.calcNiceExtent=function(t){var e=this._extent.slice(),n=(e[0]===e[1]&&(0!==e[0]?(n=Math.abs(e[0]),t.fixMax||(e[1]+=n/2),e[0]-=n/2):e[1]=1),e[1]-e[0]),n=(isFinite(n)||(e[0]=0,e[1]=1),this._innerSetExtent(e[0],e[1]),e=this._extent.slice(),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval),this._interval),i=this._intervalPrecision;t.fixMin||(e[0]=c1(Math.floor(e[0]/n)*n,i)),t.fixMax||(e[1]=c1(Math.ceil(e[1]/n)*n,i)),this._innerSetExtent(e[0],e[1])},d1.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},d1.type="interval",d1);function d1(){var t=null!==h1&&h1.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}e1.registerClass(p1);var f1="undefined"!=typeof Float32Array,g1=f1?Float32Array:Array;function y1(t){return V(t)?f1?new Float32Array(t):t:new g1(t)}var m1="__ec_stack_";function v1(t){return t.get("stack")||m1+t.seriesIndex}function _1(t){return t.dim+t.index}function x1(t,e){var n=[];return e.eachSeriesByType(t,function(t){M1(t)&&n.push(t)}),n}function b1(t){var a,d,u=function(t){var e,l={},n=(nt(t,function(t){var e=t.coordinateSystem.getBaseAxis();if("time"===e.type||"value"===e.type)for(var t=t.getData(),n=e.dim+"_"+e.index,i=t.getDimensionIndex(t.mapDimension(e.dim)),r=t.getStore(),o=0,a=r.count();o<a;++o){var s=r.get(i,o);l[n]?l[n].push(s):l[n]=[s]}}),{});for(e in l)if(l.hasOwnProperty(e)){var i=l[e];if(i){i.sort(function(t,e){return t-e});for(var r=null,o=1;o<i.length;++o){var a=i[o]-i[o-1];0<a&&(r=null===r?a:Math.min(r,a))}n[e]=r}}return n}(t),h=[];return nt(t,function(t){var e,n=t.coordinateSystem.getBaseAxis(),i=n.getExtent(),r=(e="category"===n.type?n.getBandWidth():"value"===n.type||"time"===n.type?(e=n.dim+"_"+n.index,e=u[e],r=Math.abs(i[1]-i[0]),o=n.scale.getExtent(),o=Math.abs(o[1]-o[0]),e?r/o*e:r):(o=t.getData(),Math.abs(i[1]-i[0])/o.count()),To(t.get("barWidth"),e)),i=To(t.get("barMaxWidth"),e),o=To(t.get("barMinWidth")||(T1(t)?.5:1),e),a=t.get("barGap"),s=t.get("barCategoryGap"),l=t.get("defaultBarGap");h.push({bandWidth:e,barWidth:r,barMaxWidth:i,barMinWidth:o,barGap:a,barCategoryGap:s,defaultBarGap:l,axisKey:_1(n),stackId:v1(t)})}),a={},nt(h,function(t,e){var n=t.axisKey,i=t.bandWidth,i=a[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:t.defaultBarGap||0,stacks:{}},r=i.stacks,n=(a[n]=i,t.stackId),o=(r[n]||i.autoWidthCount++,r[n]=r[n]||{width:0,maxWidth:0},t.barWidth),o=(o&&!r[n].width&&(r[n].width=o,o=Math.min(i.remainedWidth,o),i.remainedWidth-=o),t.barMaxWidth),o=(o&&(r[n].maxWidth=o),t.barMinWidth),r=(o&&(r[n].minWidth=o),t.barGap),n=(null!=r&&(i.gap=r),t.barCategoryGap);null!=n&&(i.categoryGap=n)}),d={},nt(a,function(t,n){d[n]={};var i,e=t.stacks,r=t.bandWidth,o=t.categoryGap,a=(null==o&&(a=ct(e).length,o=Math.max(35-4*a,15)+"%"),To(o,r)),s=To(t.gap,1),l=t.remainedWidth,u=t.autoWidthCount,h=(l-a)/(u+(u-1)*s),h=Math.max(h,0),c=(nt(e,function(t){var e,n=t.maxWidth,i=t.minWidth;t.width?(e=t.width,n&&(e=Math.min(e,n)),i&&(e=Math.max(e,i)),t.width=e,l-=e+s*e,u--):(e=h,n&&n<e&&(e=Math.min(n,l)),(e=i&&e<i?i:e)!==h&&(t.width=e,l-=e+s*e,u--))}),h=(l-a)/(u+(u-1)*s),h=Math.max(h,0),0),p=(nt(e,function(t,e){t.width||(t.width=h),c+=(i=t).width*(1+s)}),i&&(c-=i.width*s),-c/2);nt(e,function(t,e){d[n][e]=d[n][e]||{bandWidth:r,offset:p,width:t.width},p+=t.width*(1+s)})}),d}function w1(t,e){var t=x1(t,e),r=b1(t);nt(t,function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),t=v1(t),n=r[_1(n)][t],t=n.offset,i=n.width;e.setLayout({bandWidth:n.bandWidth,offset:t,size:i})})}function S1(t){return{seriesType:t,plan:am(),reset:function(t){var e,x,n,b,w,S,i,r,M,T,I,C,k,D,L,A;if(M1(t))return e=t.getData(),i=(x=t.coordinateSystem).getBaseAxis(),n=x.getOtherAxis(i),b=e.getDimensionIndex(e.mapDimension(n.dim)),w=e.getDimensionIndex(e.mapDimension(i.dim)),S=t.get("showBackground",!0),i=e.mapDimension(n.dim),r=e.getCalculationInfo("stackResultDimension"),M=H_(e,i)&&!!e.getCalculationInfo("stackedOnSeries"),T=n.isHorizontal(),I=function(t){var e=t.model.get("startValue");e=e||0;return t.toGlobalCoord(t.dataToCoord("log"!==t.type||0<e?e:1))}(n),C=T1(t),k=t.get("barMinHeight")||0,D=r&&e.getDimensionIndex(r),L=e.getLayout("size"),A=e.getLayout("offset"),{progress:function(t,e){for(var n,i=t.count,r=C&&y1(3*i),o=C&&S&&y1(3*i),a=C&&y1(i),s=x.master.getRect(),l=T?s.width:s.height,u=e.getStore(),h=0;null!=(n=t.next());){var c,p=u.get(M?D:b,n),d=u.get(w,n),f=I,g=void 0,y=(M&&(g=+p-u.get(b,n)),void 0),m=void 0,v=void 0,_=void 0;T?(c=x.dataToPoint([p,d]),y=f=M?x.dataToPoint([g,d])[0]:f,m=c[1]+A,v=c[0]-f,_=L,Math.abs(v)<k&&(v=(v<0?-1:1)*k)):(c=x.dataToPoint([d,p]),M&&(f=x.dataToPoint([d,g])[1]),y=c[0]+A,m=f,v=L,_=c[1]-f,Math.abs(_)<k&&(_=(_<=0?-1:1)*k)),C?(r[h]=y,r[h+1]=m,r[h+2]=T?v:_,o&&(o[h]=T?s.x:y,o[h+1]=T?m:s.y,o[h+2]=l),a[n]=n):e.setItemLayout(n,{x:y,y:m,width:v,height:_}),h+=3}C&&e.setLayout({largePoints:r,largeDataIndices:a,largeBackgroundPoints:o,valueAxisHorizontal:T})}}}}}function M1(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function T1(t){return t.pipelineContext&&t.pipelineContext.large}u(k1,I1=p1),k1.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return rd(t.value,Qp[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(id(this._minLevelUnit))]||Qp.second,e,this.getSetting("locale"))},k1.prototype.getFormattedLabel=function(t,e,n){var i,r,o=this.getSetting("useUTC"),a=this.getSetting("locale");return t=t,e=e,a=a,o=o,r=null,r=F(n=n)?n:z(n)?(i={time:t.time,level:t.time.level},Up&&Up.makeAxisLabelFormatterParamBreak(i,t.break),n(t.value,e,i)):(e=t.time)?(i=n[e.lowerTimeUnit][e.upperTimeUnit])[Math.min(e.level,i.length-1)]||"":n[e=od(t.value,o)][e][0],rd(new Date(t.value),r,o,a)},k1.prototype.getTicks=function(t){var e,n,i,r=this._interval,o=this._extent,a=[];return r&&(r=this.getSetting("useUTC"),e=od(o[1],r),a.push({value:o[0],time:{level:0,upperTimeUnit:e,lowerTimeUnit:e}}),e=function(t,m,v,_,e,y){var x=1e4,n=td,b=0;function w(t,e,n,i,r,o,a){s=r,l=t,(u=new Date(0))[s](1),h=u.getTime(),u[s](1+l),c=u.getTime()-h;for(var s,l,u,h,c,p,d=function(t,e){return Math.max(0,Math.round((e-t)/c))},f=e,g=new Date(f);f<n&&f<=_[1]&&(a.push({value:f}),!(b++>x));)g[r](g[i]()+t),f=g.getTime(),y&&0<(p=y.calcNiceTickMultiple(f,d))&&(g[r](g[i]()+p*t),f=g.getTime());a.push({value:f,notAdd:!0})}function i(t,e,n){var i,r,o,a,s=[],l=!e.length;if(i=id(t),r=_[0],o=_[1],a=v,ad(new Date(r),i,a).getTime()!==ad(new Date(o),i,a).getTime()){l&&(e=[{value:function(t,e,n){e=Math.max(0,k(Jp,e)-1);return ad(new Date(t),Jp[e],n).getTime()}(_[0],t,v)},{value:_[1]}]);for(var u,h,c=0;c<e.length-1;c++){var p=e[c].value,d=e[c+1].value;if(p!==d){var f=void 0,g=void 0,y=void 0;switch(t){case"year":f=Math.max(1,Math.round(m/qp/365)),g=sd(v),y=v?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":h=m,f=6<(h/=30*qp)?6:3<h?3:2<h?2:1,g=ld(v),y=fd(v);break;case"week":case"half-week":case"day":h=m,f=16<(h/=qp)?16:7.5<h?7:3.5<h?4:1.5<h?2:1,g=ud(v),y=gd(v),0;break;case"half-day":case"quarter-day":case"hour":u=m,f=12<(u/=Zp)?12:6<u?6:3.5<u?4:2<u?2:1,g=hd(v),y=yd(v);break;case"minute":f=L1(m,!0),g=cd(v),y=md(v);break;case"second":f=L1(m,!1),g=pd(v),y=vd(v);break;case"millisecond":f=Vo(m,!0),g=dd(v),y=_d(v)}d>=_[0]&&p<=_[1]&&w(f,p,d,g,y,0,s),"year"===t&&1<n.length&&0===c&&n.unshift({value:n[0].value-f})}}for(c=0;c<s.length;c++)n.push(s[c])}}for(var r=[],o=[],a=0,s=0,l=0;l<n.length;++l){var u=id(n[l]);if(function(t){return t===id(t)}(n[l])){i(n[l],r[r.length-1]||[],o);var h=n[l+1]?id(n[l+1]):null;if(u!==h){if(o.length){s=a,o.sort(function(t,e){return t.value-e.value});for(var c=[],p=0;p<o.length;++p){var d=o[p].value;0!==p&&o[p-1].value===d||(c.push(o[p]),d>=_[0]&&d<=_[1]&&a++)}u=e/m;if(1.5*u<a&&u/1.5<s)break;if(r.push(c),u<a||t===n[l])break}o=[]}}}for(var f=ut(B(r,function(t){return ut(t,function(t){return t.value>=_[0]&&t.value<=_[1]&&!t.notAdd})}),function(t){return 0<t.length}),g=[],S=f.length-1,l=0;l<f.length;++l)for(var M=f[l],T=0;T<M.length;++T){var I=od(M[T].value,v);g.push({value:M[T].value,time:{level:S-l,upperTimeUnit:I,lowerTimeUnit:I}})}g.sort(function(t,e){return t.value-e.value});for(var C=[],l=0;l<g.length;++l)0!==l&&g[l].value===g[l-1].value||C.push(g[l]);return C}(this._minLevelUnit,this._approxInterval,r,o,this._getExtentSpanWithBreaks(),this._brkCtx),a=a.concat(e),e=od(o[1],r),a.push({value:o[1],time:{level:0,upperTimeUnit:e,lowerTimeUnit:e}}),this.getSetting("useUTC"),n=Jp.length-1,i=0,nt(a,function(t){n=Math.min(n,k(Jp,t.time.upperTimeUnit)),i=Math.max(i,t.time.level)})),a},k1.prototype.calcNiceExtent=function(t){var e,n=this.getExtent();n[0]===n[1]&&(n[0]-=qp,n[1]+=qp),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]-qp),this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},k1.prototype.calcNiceTicks=function(t,e,n){t=t||10;var i=this._getExtentSpanWithBreaks(),i=(this._approxInterval=i/t,null!=e&&this._approxInterval<e&&(this._approxInterval=e),null!=n&&this._approxInterval>n&&(this._approxInterval=n),D1.length),t=Math.min(function(t,e,n,i){for(;n<i;){var r=n+i>>>1;t[r][1]<e?n=1+r:i=r}return n}(D1,this._approxInterval,0,i),i-1);this._interval=D1[t][1],this._intervalPrecision=Z_(this._interval),this._minLevelUnit=D1[Math.max(t-1,0)][0]},k1.prototype.parse=function(t){return H(t)?t:+No(t)},k1.prototype.contain=function(t){return j_(t,this._extent)},k1.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},k1.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},k1.type="time";var I1,C1=k1;function k1(t){t=I1.call(this,t)||this;return t.type="time",t}var D1=[["second",Xp],["minute",Yp],["hour",Zp],["quarter-day",6*Zp],["half-day",12*Zp],["day",1.2*qp],["half-week",3.5*qp],["week",7*qp],["month",31*qp],["quarter",95*qp],["half-year",_a/2],["year",_a]];function L1(t,e){return 30<(t/=e?Yp:Xp)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}e1.registerClass(C1);var A1,P1=Co,O1=Math.floor,R1=Math.ceil,z1=Math.pow,N1=Math.log,E1=(u(B1,A1=p1),B1.prototype.getTicks=function(t){t=t||{};var i=this._extent.slice(),r=this._originalScale.getExtent(),t=A1.prototype.getTicks.call(this,t),o=this.base;return this._originalScale._innerGetBreaks(),B(t,function(t){var t=t.value,e=null,n=z1(o,t);return t===i[0]&&this._fixMin?e=r[0]:t===i[1]&&this._fixMax&&(e=r[1]),{value:n=null!=e?V1(n,e):n,break:void 0}},this)},B1.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},B1.prototype.setExtent=function(t,e){this._originalScale.setExtent(t,e);t=t1(this.base,[t,e]);A1.prototype.setExtent.call(this,t[0],t[1])},B1.prototype.getExtent=function(){var t=this.base,e=A1.prototype.getExtent.call(this),t=(e[0]=z1(t,e[0]),e[1]=z1(t,e[1]),this._originalScale.getExtent());return this._fixMin&&(e[0]=V1(e[0],t[0])),this._fixMax&&(e[1]=V1(e[1],t[1])),e},B1.prototype.unionExtentFromData=function(t,e){this._originalScale.unionExtentFromData(t,e);t=t1(this.base,t.getApproximateExtent(e),!0);this._innerUnionExtent(t)},B1.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(isFinite(n)&&!(n<=0)){var i=Eo(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[P1(R1(e[0]/i)*i),P1(O1(e[1]/i)*i)];this._interval=i,this._intervalPrecision=Z_(i),this._niceExtent=t}},B1.prototype.calcNiceExtent=function(t){A1.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},B1.prototype.contain=function(t){return t=N1(t)/N1(this.base),A1.prototype.contain.call(this,t)},B1.prototype.normalize=function(t){return t=N1(t)/N1(this.base),A1.prototype.normalize.call(this,t)},B1.prototype.scale=function(t){return t=A1.prototype.scale.call(this,t),z1(this.base,t)},B1.prototype.setBreaksFromOption=function(t){},B1.type="log",B1);function B1(){var t=null!==A1&&A1.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new p1,t}function V1(t,e){return P1(t,Do(e))}e1.registerClass(E1);H1.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,r=(this._needCrossZero="interval"===t.type&&e.getNeedCrossZero&&e.getNeedCrossZero(),e.get("min",!0)),r=(null==r&&(r=e.get("startValue",!0)),this._modelMinRaw=r),r=(z(r)?this._modelMinNum=U1(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=U1(t,r)),this._modelMaxRaw=e.get("max",!0));z(r)?this._modelMaxNum=U1(t,r({min:n[0],max:n[1]})):"dataMax"!==r&&(this._modelMaxNum=U1(t,r)),i?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=V(n=e.get("boundaryGap"))?n:[n||0,n||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Zr(t[0],1),Zr(t[1],1)]},H1.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,n=this._dataMax,i=this._axisDataLen,r=this._boundaryGapInner,o=t?null:n-e||Math.abs(e),a="dataMin"===this._modelMinRaw?e:this._modelMinNum,s="dataMax"===this._modelMaxRaw?n:this._modelMaxNum,l=null!=a,u=null!=s,e=(null==a&&(a=t?i?0:NaN:e-r[0]*o),null==s&&(s=t?i?i-1:NaN:n+r[1]*o),null!=a&&isFinite(a)||(a=NaN),null!=s&&isFinite(s)||(s=NaN),xt(a)||xt(s)||t&&!i),n=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!u&&(s=0),this._determinedMin),r=this._determinedMax;return null!=n&&(a=n,l=!0),null!=r&&(s=r,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:e}},H1.prototype.modifyDataMinMax=function(t,e){this[W1[t]]=e},H1.prototype.setDeterminedMinMax=function(t,e){this[G1[t]]=e},H1.prototype.freeze=function(){this.frozen=!0};var F1=H1;function H1(t,e,n){this._prepareParams(t,e,n)}var G1={min:"_determinedMin",max:"_determinedMax"},W1={min:"_dataMin",max:"_dataMax"};function U1(t,e){return null==e?null:xt(e)?NaN:t.parse(e)}function X1(t,e){var n,i,r,o,a,s=t.type,l=(l=e,u=(h=t).getExtent(),(c=h.rawExtentInfo)||(c=new F1(h,l,u),h.rawExtentInfo=c),c.calculate()),u=(t.setBlank(l.isBlank),l.min),h=l.max,c=e.ecModel;return c&&"time"===s&&(t=x1("bar",c),n=!1,nt(t,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(s=b1(t),c=u,t=h,s=s,a=(i=e).axis.getExtent(),a=Math.abs(a[1]-a[0]),void 0!==(s=function(t,e,n){if(t&&e)return null!=(t=t[_1(e)])&&null!=n?t[v1(n)]:t}(s,i.axis))&&(r=1/0,nt(s,function(t){r=Math.min(t.offset,r)}),o=-1/0,nt(s,function(t){o=Math.max(t.offset+t.width,o)}),r=Math.abs(r),o=Math.abs(o),t+=o/(i=r+o)*(a=(s=t-c)/(1-(r+o)/a)-s),c-=r/i*a),u=(s={min:c,max:t}).min,h=s.max),{extent:[u,h],fixMin:l.minFixed,fixMax:l.maxFixed}}function Y1(t,e){var n=X1(t,e),i=n.extent,r=e.get("splitNumber"),o=(t instanceof E1&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),o="interval"===o||"time"===o;t.setBreaksFromOption(tx(e)),t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:o?e.get("minInterval"):null,maxInterval:o?e.get("maxInterval"):null}),null!=a&&t.setInterval&&t.setInterval(a)}function Z1(t,e){if(e=e||t.get("type"))switch(e){case"category":return new l1({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new C1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(e1.getClass(e)||p1)}}function q1(i){var n,r,o=i.getLabelModel().get("formatter");return"time"===i.type?(n=ed(o),function(t,e){return i.scale.getFormattedLabel(t,e,n)}):F(o)?function(t){t=i.scale.getLabel(t);return o.replace("{value}",null!=t?t:"")}:z(o)?"category"===i.type?function(t,e){return o(j1(i,t),t.value-i.scale.getExtent()[0],null)}:(r=Up,function(t,e){var n=null;return r&&(n=r.makeAxisLabelFormatterParamBreak(n,t.break)),o(j1(i,t),e,n)}):function(t){return i.scale.getLabel(t)}}function j1(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function K1(t){t=t.get("interval");return null==t?"auto":t}function $1(t){return"category"===t.type&&0===K1(t.getLabelModel())}function Q1(t){return"middle"===t||"center"===t}function J1(t){return t.getShallow("show")}function tx(t){t.get("breaks",!0)}nx.prototype.getNeedCrossZero=function(){return!this.option.scale},nx.prototype.getCoordSysModel=function(){};var ex=nx;function nx(){}var Cp=Object.freeze({__proto__:null,createDimensions:function(t,e){return N_(t,e).dimensions},createList:function(t){return W_(null,t)},createScale:function(t,e){var n=e;return(e=Z1(n=e instanceof Pp?n:new Pp(e))).setExtent(t[0],t[1]),Y1(e,n),e},createSymbol:c0,createTextStyle:function(t,e){return hp(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:H_,enableDataStack:F_,getStackedDimension:G_},enableHoverEmphasis:vu,getECData:U,getLayoutRect:Ud,mixinAxisModelCommonMethods:function(t){at(t,ex)}}),ix=[],rx={registerPreprocessor:Yv,registerProcessor:Zv,registerPostInit:qv,registerPostUpdate:jv,registerUpdateLifecycle:Kv,registerAction:$v,registerCoordinateSystem:Qv,registerLayout:Jv,registerVisual:t_,registerTransform:o_,registerLoading:i_,registerMap:r_,registerImpl:function(t,e){U0[t]=e},PRIORITY:r0,ComponentModel:g,ComponentView:rm,SeriesModel:Ky,ChartView:um,registerComponentModel:function(t){g.registerClass(t)},registerComponentView:function(t){rm.registerClass(t)},registerSeriesModel:function(t){Ky.registerClass(t)},registerChartView:function(t){um.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){g.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){mo(t,e)}};function ox(t){V(t)?nt(t,function(t){ox(t)}):0<=k(ix,t)||(ix.push(t),(t=z(t)?{install:t}:t).install(rx))}var ax=1e-8;function sx(t,e){return Math.abs(t-e)<ax}function lx(t,e,n){var i=0,r=t[0];if(r){for(var o=1;o<t.length;o++){var a=t[o];i+=Ns(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return sx(r[0],s[0])&&sx(r[1],s[1])||(i+=Ns(r[0],r[1],s[0],s[1],e,n)),0!==i}}var ux=[];function hx(t,e){for(var n=0;n<t.length;n++)ie(t[n],t[n],e)}function cx(t,e,n,i){for(var r=0;r<t.length;r++){var o=t[r];(o=i?i.project(o):o)&&isFinite(o[0])&&isFinite(o[1])&&(re(e,e,o),oe(n,n,o))}}px.prototype.setCenter=function(t){this._center=t},px.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())};o0=px;function px(t){this.name=t}var dx,fx,gx=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},yx=function(t){this.type="linestring",this.points=t},mx=(u(vx,dx=o0),vx.prototype.calcCenter=function(){for(var t,e=this.geometries,n=0,i=0;i<e.length;i++){var r=e[i],o=r.exterior,o=o&&o.length;n<o&&(t=r,n=o)}if(t){for(var a=t.exterior,s=0,l=0,u=0,h=a.length,c=a[h-1][0],p=a[h-1][1],d=0;d<h;d++){var f=a[d][0],g=a[d][1],y=c*g-f*p;s+=y,l+=(c+f)*y,u+=(p+g)*y,c=f,p=g}return s?[l/s/3,u/s/3,s]:[a[0][0]||0,a[0][1]||0]}var m=this.getBoundingRect();return[m.x+m.width/2,m.y+m.height/2]},vx.prototype.getBoundingRect=function(e){var n,i,t=this._rect;return t&&!e||(n=[1/0,1/0],i=[-1/0,-1/0],nt(this.geometries,function(t){"polygon"===t.type?cx(t.exterior,n,i,e):nt(t.points,function(t){cx(t,n,i,e)})}),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new X(n[0],n[1],i[0]-n[0],i[1]-n[1]),e)||(this._rect=t),t},vx.prototype.contain=function(t){var e=this.getBoundingRect(),n=this.geometries;if(e.contain(t[0],t[1]))t:for(var i=0,r=n.length;i<r;i++){var o=n[i];if("polygon"===o.type){var a=o.exterior,s=o.interiors;if(lx(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(lx(s[l],t[0],t[1]))continue t;return!0}}}return!1},vx.prototype.transformTo=function(t,e,n,i){for(var r=this.getBoundingRect(),o=r.width/r.height,o=(n?i=i||n/o:n=o*i,new X(t,e,n,i)),a=r.calculateTransform(o),s=this.geometries,l=0;l<s.length;l++){var u=s[l];"polygon"===u.type?(hx(u.exterior,a),nt(u.interiors,function(t){hx(t,a)})):nt(u.points,function(t){hx(t,a)})}(r=this._rect).copy(o),this._center=[r.x+r.width/2,r.y+r.height/2]},vx.prototype.cloneShallow=function(t){t=new vx(t=null==t?this.name:t,this.geometries,this._center);return t._rect=this._rect,t.transformTo=null,t},vx);function vx(t,e,n){t=dx.call(this,t)||this;return t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}function _x(t,e){t=fx.call(this,t)||this;return t.type="geoSVG",t._elOnlyForCalculate=e,t}function xx(t,e,n){for(var i=0;i<t.length;i++)t[i]=bx(t[i],e[i],n)}function bx(t,e,n){for(var i=[],r=e[0],o=e[1],a=0;a<t.length;a+=2){var s=(s=t.charCodeAt(a)-64)>>1^-(1&s),l=(l=t.charCodeAt(a+1)-64)>>1^-(1&l);i.push([(r=s+=r)/n,(o=l+=o)/n])}return i}function Sx(t,o){var e,n,r;return B(ut((t=(e=t).UTF8Encoding?(null==(r=(n=e).UTF8Scale)&&(r=1024),nt(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=bx(i,n,r);break;case"Polygon":case"MultiLineString":xx(i,n,r);break;case"MultiPolygon":nt(i,function(t,e){return xx(t,n[e],r)})}}),n.UTF8Encoding=!1,n):e).features,function(t){return t.geometry&&t.properties&&0<t.geometry.coordinates.length}),function(t){var e=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var r=n.coordinates;i.push(new gx(r[0],r.slice(1)));break;case"MultiPolygon":nt(n.coordinates,function(t){t[0]&&i.push(new gx(t[0],t.slice(1)))});break;case"LineString":i.push(new yx([n.coordinates]));break;case"MultiLineString":i.push(new yx(n.coordinates))}t=new mx(e[o||"name"],i,e.cp);return t.properties=e,t})}u(_x,fx=o0),_x.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=Ne(ux),i=t;i&&!i.isGeoSVGGraphicRoot;)Be(n,i.getLocalTransform(),n),i=i.parent;return Ge(n,n),ie(e,e,n),e};var a0=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:ko,getPercentWithPrecision:function(t,e,n){return t[e]&&Po(t,n)[e]||0},getPixelPrecision:Ao,getPrecision:Do,getPrecisionSafe:Lo,isNumeric:Go,isRadianAroundZero:Ro,linearMap:Mo,nice:Vo,numericToNumber:Ho,parseDate:No,parsePercent:To,quantile:function(t,e){var e=(t.length-1)*e+1,n=Math.floor(e),i=+t[n-1];return(e=e-n)?i+e*(t[n]-i):i},quantity:Eo,quantityExponent:Bo,reformIntervals:Fo,remRadian:Oo,round:Co}),Ta=Object.freeze({__proto__:null,format:rd,parse:No,roundTime:ad}),Tp=Object.freeze({__proto__:null,Arc:Wh,BezierCurve:Vh,BoundingRect:X,Circle:qu,CompoundPath:Yh,Ellipse:Qu,Group:lo,Image:il,IncrementalDisplayable:e,Line:Oh,LinearGradient:$h,Polygon:Mh,Polyline:kh,RadialGradient:qh,Rect:pl,Ring:_h,Sector:gh,Text:vl,clipPointsByRect:Wc,clipRectByRect:Uc,createIcon:Xc,extendPath:kc,extendShape:Ic,getShapeClass:Lc,getTransform:Bc,initProps:mc,makeImage:Pc,makePath:Ac,mergePath:Rc,registerShape:Dc,resizePath:zc,updateProps:yc}),$p=Object.freeze({__proto__:null,addCommas:xd,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:be,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(e=No(e))[(n=n?"getUTC":"get")+"FullYear"](),r=e[n+"Month"]()+1,o=e[n+"Date"](),a=e[n+"Hours"](),s=e[n+"Minutes"](),l=e[n+"Seconds"](),e=e[n+"Milliseconds"]();return t=t.replace("MM",nd(r,2)).replace("M",r).replace("yyyy",i).replace("yy",nd(i%100+"",2)).replace("dd",nd(o,2)).replace("d",o).replace("hh",nd(a,2)).replace("h",a).replace("mm",nd(s,2)).replace("m",s).replace("ss",nd(l,2)).replace("s",l).replace("SSS",nd(e,3))},formatTpl:Id,getTextRect:function(t,e,n,i,r,o,a,s){return new vl({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:Cd,normalizeCssArray:wd,toCamelCase:bd,truncateText:function(t,e,n,i,r){var o={};return Pa(o,t,e,n,i,r),o.text}}),Ec=Object.freeze({__proto__:null,bind:S,clone:y,curry:pt,defaults:E,each:nt,extend:P,filter:ut,indexOf:k,inherits:ot,isArray:V,isFunction:z,isObject:N,isString:F,map:B,merge:d,reduce:lt}),Mx=oa(),Tx=oa(),Ix={estimate:1,determine:2};function Cx(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function kx(e,t){t=B(t,function(t){return e.scale.parse(t)});return"time"===e.type&&0<t.length&&(t.sort(),t.unshift(t[0]),t.push(t[t.length-1])),t}function Dx(n,t){var i,e,r,o,a,s=n.getLabelModel().get("customValues");return s?(i=q1(n),e=n.scale.getExtent(),{labels:B(ut(kx(n,s),function(t){return t>=e[0]&&t<=e[1]}),function(t){var e={value:t};return{formattedLabel:i(e),rawLabel:n.scale.getLabel(e),tickValue:t,time:void 0,break:void 0}})}):"category"===n.type?(s=t,a=(t=n).getLabelModel(),s=Ax(t,a,s),!a.get("show")||t.scale.isBlank()?{labels:[]}:s):(a=(r=n).scale.getTicks(),o=q1(r),{labels:B(a,function(t,e){return{formattedLabel:o(t,e),rawLabel:r.scale.getLabel(t),tickValue:t.value,time:t.time,break:t.break}})})}function Lx(t,e,n){var i,r,o,a,s,l,u=t.getTickModel().get("customValues");return u?(i=t.scale.getExtent(),{ticks:ut(kx(t,u),function(t){return t>=i[0]&&t<=i[1]})}):"category"===t.type?(u=e,a=Px(e=t),s=K1(u),(l=zx(a,s))||(u.get("show")&&!e.scale.isBlank()||(r=[]),r=z(s)?Fx(e,s,!0):"auto"===s?(l=Ax(e,e.getLabelModel(),Cx(Ix.determine)),o=l.labelCategoryInterval,B(l.labels,function(t){return t.tickValue})):Vx(e,o=s,!0),Nx(a,s,{ticks:r,tickCategoryInterval:o}))):{ticks:B(t.scale.getTicks(n),function(t){return t.value})}}function Ax(t,e,n){var i,r=Ox(t),o=K1(e),e=n.kind===Ix.estimate;if(!e){var a=zx(r,o);if(a)return a}var s={labels:z(o)?Fx(t,o):Vx(t,i="auto"===o?function(t,e){{var n;if(e.kind===Ix.estimate)return n=t.calculateCategoryInterval(e),e.out.noPxChangeTryDetermine.push(function(){return Tx(t).autoInterval=n,!0}),n}var i=Tx(t).autoInterval;return null!=i?i:Tx(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):o),labelCategoryInterval:i};return e?n.out.noPxChangeTryDetermine.push(function(){return Nx(r,o,s),!0}):Nx(r,o,s),s}var Px=Rx("axisTick"),Ox=Rx("axisLabel");function Rx(e){return function(t){return Tx(t)[e]||(Tx(t)[e]={list:[]})}}function zx(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function Nx(t,e,n){return t.list.push({key:e,value:n}),n}function Ex(t,e,n){return null==Bx(t,e,n)}function Bx(t,e,n){var i=Mx(t.model),t=t.getExtent(),r=i.lastAutoInterval,o=i.lastTickCount;if(null!=r&&null!=o&&Math.abs(r-e)<=1&&Math.abs(o-n)<=1&&e<r&&i.axisExtent0===t[0]&&i.axisExtent1===t[1])return r;i.lastTickCount=n,i.lastAutoInterval=e,i.axisExtent0=t[0],i.axisExtent1=t[1]}function Vx(t,e,n){for(var i=q1(t),r=t.scale,o=r.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),e=o[0],u=r.count(),u=(0!==e&&1<l&&2<u/l&&(e=Math.round(Math.ceil(e/l)*l)),$1(t)),t=a.get("showMinLabel")||u,a=a.get("showMaxLabel")||u,h=(t&&e!==o[0]&&c(o[0]),e);h<=o[1];h+=l)c(h);function c(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t,time:void 0,break:void 0})}return a&&h-l!==o[1]&&c(o[1]),s}function Fx(t,i,r){var o=t.scale,a=q1(t),s=[];return nt(o.getTicks(),function(t){var e=o.getLabel(t),n=t.value;i(t.value,e)&&s.push(r?n:{formattedLabel:a(t),rawLabel:e,tickValue:n,time:void 0,break:void 0})}),s}var Hx=[0,1],Dp=(Gx.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},Gx.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},Gx.prototype.getExtent=function(){return this._extent.slice()},Gx.prototype.getPixelPrecision=function(t){return Ao(t||this.scale.getExtent(),this._extent)},Gx.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},Gx.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(i.parse(t)),this.onBand&&"ordinal"===i.type&&Wx(n=n.slice(),i.count()),Mo(t,Hx,n,e)},Gx.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&Wx(n=n.slice(),i.count()),Mo(t,n,Hx,e));return this.scale.scale(i)},Gx.prototype.pointToData=function(t,e){},Gx.prototype.getTicksCoords=function(t){var e,n,i,r,o,a,s,l=(t=t||{}).tickModel||this.getTickModel(),u=B(Lx(this,l,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this),l=l.get("alignWithLabel");function h(t,e){return t=Co(t),e=Co(e),a?e<t:t<e}return e=this,n=u,l=l,t=t.clamp,s=n.length,e.onBand&&!l&&s&&(l=e.getExtent(),1===s?(n[0].coord=l[0],n[0].onBand=!0,i=n[1]={coord:l[1],tickValue:n[0].tickValue,onBand:!0}):(o=n[s-1].tickValue-n[0].tickValue,r=(n[s-1].coord-n[0].coord)/o,nt(n,function(t){t.coord-=r/2,t.onBand=!0}),e=1+(o=e.scale.getExtent())[1]-n[s-1].tickValue,i={coord:n[s-1].coord+r*e,tickValue:o[1]+1,onBand:!0},n.push(i)),a=l[0]>l[1],h(n[0].coord,l[0])&&(t?n[0].coord=l[0]:n.shift()),t&&h(l[0],n[0].coord)&&n.unshift({coord:l[0],onBand:!0}),h(l[1],i.coord)&&(t?i.coord=l[1]:n.pop()),t)&&h(i.coord,l[1])&&n.push({coord:l[1],onBand:!0}),u},Gx.prototype.getMinorTicksCoords=function(){var t;return"ordinal"===this.scale.type?[]:(t=this.model.getModel("minorTick").get("splitNumber"),B(this.scale.getMinorTicks(t=0<t&&t<100?t:5),function(t){return B(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this))},Gx.prototype.getViewLabels=function(t){return Dx(this,t=t||Cx(Ix.determine)).labels},Gx.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},Gx.prototype.getTickModel=function(){return this.model.getModel("axisTick")},Gx.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),e=e[1]-e[0]+(this.onBand?1:0),t=(0===e&&(e=1),Math.abs(t[1]-t[0]));return Math.abs(t)/e},Gx.prototype.calculateCategoryInterval=function(t){t=t||Cx(Ix.determine);var e=this,n=t.kind,i=(s=(o=e).getLabelModel(),{axisRotate:o.getRotate?o.getRotate():o.isHorizontal&&!o.isHorizontal()?90:0,labelRotate:s.get("rotate")||0,font:s.getFont()}),r=q1(e),o=(i.axisRotate-i.labelRotate)/180*Math.PI,a=(s=e.scale).getExtent(),s=s.count();if(a[1]-a[0]<1)return 0;for(var l=1,u=(40<s&&(l=Math.max(1,Math.floor(s/40))),a[0]),h=e.dataToCoord(u+1)-e.dataToCoord(u),c=Math.abs(h*Math.cos(o)),h=Math.abs(h*Math.sin(o)),p=0,d=0;u<=a[1];u+=l)var f=1.3*(g=Wr(r({value:u}),i.font,"center","top")).width,g=1.3*g.height,p=Math.max(p,f,7),d=Math.max(d,g,7);var o=p/c,c=d/h,h=(isNaN(o)&&(o=1/0),isNaN(c)&&(c=1/0),Math.max(0,Math.floor(Math.min(o,c))));return n===Ix.estimate?(t.out.noPxChangeTryDetermine.push(S(Ex,null,e,h,s)),h):null!=(o=Bx(e,h,s))?o:h},Gx);function Gx(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function Wx(t,e){e=(t[1]-t[0])/e/2;t[0]+=e,t[1]-=e}var Ux=2*Math.PI,Xx=As.CMD,Yx=["top","right","bottom","left"];function Zx(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,n=n-t,i=i-e,h=Math.sqrt(n*n+i*i),l=(l*(n/=h)+u*(i/=h))/h,u=(s&&(l=Math.min(Math.max(l,0),1)),a[0]=t+(l*=h)*n),s=a[1]=e+l*i;return Math.sqrt((u-r)*(u-r)+(s-o)*(s-o))}function qx(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);n=t+n,i=e+i,t=a[0]=Math.min(Math.max(r,t),n),n=a[1]=Math.min(Math.max(o,e),i);return Math.sqrt((t-r)*(t-r)+(n-o)*(n-o))}var jx=[];function Kx(t,e,n){for(var i,r,o,a,s,l,u,h,c,p=0,d=0,f=0,g=0,y=1/0,m=e.data,v=t.x,_=t.y,x=0;x<m.length;){var b=m[x++],w=(1===x&&(f=p=m[x],g=d=m[x+1]),y);switch(b){case Xx.M:p=f=m[x++],d=g=m[x++];break;case Xx.L:w=Zx(p,d,m[x],m[x+1],v,_,jx,!0),p=m[x++],d=m[x++];break;case Xx.C:w=ei(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,jx),p=m[x++],d=m[x++];break;case Xx.Q:w=ai(p,d,m[x++],m[x++],m[x],m[x+1],v,_,jx),p=m[x++],d=m[x++];break;case Xx.A:var S=m[x++],M=m[x++],T=m[x++],I=m[x++],C=m[x++],k=m[x++],D=(x+=1,!!(1-m[x++])),L=Math.cos(C)*T+S,A=Math.sin(C)*I+M;x<=1&&(f=L,g=A),A=(L=C)+k,D=D,a=(v-S)*(o=I)/T+S,s=_,l=jx,c=h=u=void 0,a-=i=S,s-=r=M,u=Math.sqrt(a*a+s*s),h=(a/=u)*o+i,c=(s/=u)*o+r,w=Math.abs(L-A)%Ux<1e-4||((A=D?(D=L,L=Rs(A),Rs(D)):(L=Rs(L),Rs(A)))<L&&(A+=Ux),(D=Math.atan2(s,a))<0&&(D+=Ux),L<=D&&D<=A)||L<=D+Ux&&D+Ux<=A?(l[0]=h,l[1]=c,u-o):(c=((D=o*Math.cos(L)+i)-a)*(D-a)+((h=o*Math.sin(L)+r)-s)*(h-s))<(i=((u=o*Math.cos(A)+i)-a)*(u-a)+((L=o*Math.sin(A)+r)-s)*(L-s))?(l[0]=D,l[1]=h,Math.sqrt(c)):(l[0]=u,l[1]=L,Math.sqrt(i)),p=Math.cos(C+k)*T+S,d=Math.sin(C+k)*I+M;break;case Xx.R:w=qx(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,jx);break;case Xx.Z:w=Zx(p,d,f,g,v,_,jx,!0),p=f,d=g}w<y&&(y=w,n.set(jx[0],jx[1]))}return y}var $x=new W,Qx=new W,Jx=new W,tb=new W,eb=new W;function nb(t,e){if(t){var n=t.getTextGuideLine(),i=t.getTextContent();if(i&&n){var r=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=r.candidates||Yx,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=r.anchor,h=t.getComputedTransform(),c=h&&Ge([],h),p=e.get("length2")||0;u&&Jx.copy(u);for(var d,f=0;f<a.length;f++){var g=a[f],y=(w=b=x=_=v=m=y=void 0,g),m=0,v=s,_=$x,x=tb,b=v.width,w=v.height;switch(y){case"top":_.set(v.x+b/2,v.y-m),x.set(0,-1);break;case"bottom":_.set(v.x+b/2,v.y+w+m),x.set(0,1);break;case"left":_.set(v.x-m,v.y+w/2),x.set(-1,0);break;case"right":_.set(v.x+b+m,v.y+w/2),x.set(1,0)}W.scaleAndAdd(Qx,$x,tb,p),Qx.transform(c);g=t.getBoundingRect(),g=u?u.distance(Qx):t instanceof js?Kx(Qx,t.path,Jx):(y=Jx,d=qx((d=g).x,g.y,g.width,g.height,Qx.x,Qx.y,jx),y.set(jx[0],jx[1]),d);g<l&&(l=g,Qx.transform(h),Jx.transform(h),Jx.toArray(o[0]),Qx.toArray(o[1]),$x.toArray(o[2]))}ob(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var ib=[],rb=new W;function ob(t,e){var n,i;e<=180&&0<e&&(e=e/180*Math.PI,$x.fromArray(t[0]),Qx.fromArray(t[1]),Jx.fromArray(t[2]),W.sub(tb,$x,Qx),W.sub(eb,Jx,Qx),i=tb.len(),n=eb.len(),i<.001||n<.001||(tb.scale(1/i),eb.scale(1/n),i=tb.dot(eb),Math.cos(e)<i&&(n=Zx(Qx.x,Qx.y,Jx.x,Jx.y,$x.x,$x.y,ib,!1),rb.fromArray(ib),rb.scaleAndAdd(eb,n/Math.tan(Math.PI-e)),i=Jx.x!==Qx.x?(rb.x-Qx.x)/(Jx.x-Qx.x):(rb.y-Qx.y)/(Jx.y-Qx.y),isNaN(i)||(i<0?W.copy(rb,Qx):1<i&&W.copy(rb,Jx),rb.toArray(t[1])))))}function ab(t,e,n,i){var r="normal"===n,n=r?t:t.ensureState(n),e=(n.ignore=e,i.get("smooth")),e=(e&&!0===e&&(e=.3),n.shape=n.shape||{},0<e&&(n.shape.smooth=e),i.getModel("lineStyle").getLineStyle());r?t.useStyle(e):n.style=e}function sb(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),0<n&&3<=i.length){var e=Jt(i[0],i[1]),r=Jt(i[1],i[2]);e&&r?(n=Math.min(e,r)*n,e=ne([],i[1],i[0],n/e),n=ne([],i[1],i[2],n/r),r=ne([],e,n,.5),t.bezierCurveTo(e[0],e[1],e[0],e[1],r[0],r[1]),t.bezierCurveTo(n[0],n[1],n[0],n[1],i[2][0],i[2][1])):(t.lineTo(i[1][0],i[1][1]),t.lineTo(i[2][0],i[2][1]))}else for(var o=1;o<i.length;o++)t.lineTo(i[o][0],i[o][1])}function lb(t,e,n){var i=t.getTextGuideLine(),r=t.getTextContent();if(r){for(var o=e.normal,a=o.get("show"),s=r.ignore,l=0;l<Bl.length;l++){var u,h=Bl[l],c=e[h],p="normal"===h;c&&(u=c.get("show"),(p?s:G(r.states[h]&&r.states[h].ignore,s))||!G(u,a)?((u=p?i:i&&i.states[h])&&(u.ignore=!0),i&&ab(i,!0,h,c)):(i||(i=new kh,t.setTextGuideLine(i),p||!s&&a||ab(i,!0,"normal",e.normal),t.stateProxy&&(i.stateProxy=t.stateProxy)),ab(i,!1,h,c)))}i&&(E(i.style,n),i.style.fill=null,n=o.get("showAbove"),(t.textGuideLineConfig=t.textGuideLineConfig||{}).showAbove=n||!1,i.buildPath=sb)}else i&&t.removeTextGuideLine()}function ub(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<El.length;i++){var r=El[i];n[r]=t.getModel([r,e])}return n}var hb=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],cb=2,pb=1|cb;function db(t,e,n){n=n||pb,e?t.dirty|=n:t.dirty&=~n}function fb(t,e){return e=e||pb,null==t.dirty||t.dirty&e}function gb(t){if(t)return fb(t)&&yb(t,t.label,t),t}function yb(t,e,n){var i=e.getComputedTransform(),r=(t.transform=ep(t.transform,i),t.localRect=tp(t.localRect,e.getBoundingRect())),o=e.style,a=o.margin,s=n&&n.marginForce,l=n&&n.minMarginForce,n=n&&n.marginDefault,u=o.__marginType;null==u&&n&&(a=n,u=vp.textMargin);for(var h=0;h<4;h++)mb[h]=u===vp.minMargin&&l&&null!=l[h]?l[h]:s&&null!=s[h]?s[h]:a?a[h]:0;u===vp.textMargin&&Zc(r,mb,!1,!1);o=t.rect=tp(t.rect,r);i&&o.applyTransform(i),u===vp.minMargin&&Zc(o,mb,!1,!1),t.axisAligned=Jc(i),(t.label=t.label||{}).ignore=e.ignore,db(t,!1),db(t,!0,cb)}var mb=[0,0,0,0];function vb(t,e){for(var n=0;n<hb.length;n++){var i=hb[n];null==t[i]&&(t[i]=e[i])}return gb(t)}function _b(t){var e=t.obb;return e&&!fb(t,cb)||(t.obb=e=e||new uc,e.fromBoundingRect(t.localRect,t.transform),db(t,!1,cb)),e}function xb(s,t,e,n,i){var l=s.length,u=Mc[t],h=Tc[t];if(!(l<2)){s.sort(function(t,e){return t.rect[u]-e.rect[u]});for(var r=0,o=!1,a=0,c=0;c<l;c++){var p,d=s[c],f=d.rect;(p=f[u]-r)<0&&(f[u]-=p,d.label[u]-=p,o=!0),a+=Math.max(-p,0),r=f[u]+f[h]}0<a&&i&&b(-a/l,0,l);var g,y,m=s[0],v=s[l-1];return _(),g<0&&w(-g,.8),y<0&&w(y,.8),_(),x(g,y,1),x(y,g,-1),_(),g<0&&S(-g),y<0&&S(y),o}function _(){g=m.rect[u]-e,y=n-v.rect[u]-v.rect[h]}function x(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(b(e*n,0,l),(e=e+t)<0&&w(-e*n,1)):w(-t*n,1))}function b(t,e,n){0!==t&&(o=!0);for(var i=e;i<n;i++){var r=s[i];r.rect[u]+=t,r.label[u]+=t}}function w(t,e){for(var n=[],i=0,r=1;r<l;r++){var o=s[r-1].rect,o=Math.max(s[r].rect[u]-o[u]-o[h],0);n.push(o),i+=o}if(i){var a=Math.min(Math.abs(t)/i,e);if(0<t)for(r=0;r<l-1;r++)b(n[r]*a,0,r+1);else for(r=l-1;0<r;r--)b(-(n[r-1]*a),r,l)}}function S(t){for(var e=t<0?-1:1,n=(t=Math.abs(t),Math.ceil(t/(l-1))),i=0;i<l-1;i++)if(0<e?b(n,0,i+1):b(-n,l-i-1,l),(t-=n)<=0)return}}function bb(t){var e=[];function n(t){var e;t.ignore||null==(e=t.ensureState("emphasis")).ignore&&(e.ignore=!1),t.ignore=!0}t.sort(function(t,e){return(e.suggestIgnore?1:0)-(t.suggestIgnore?1:0)||e.priority-t.priority});for(var i=0;i<t.length;i++){var r=gb(t[i]);if(!r.label.ignore){for(var o=r.label,a=r.labelLine,s=!1,l=0;l<e.length;l++)if(wb(r,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):e.push(r)}}}function wb(t,e,n,i){return t&&e&&!(t.label&&t.label.ignore||e.label&&e.label.ignore)&&t.rect.intersect(e.rect,n,i)&&(t.axisAligned&&e.axisAligned||_b(t).intersect(_b(e),n,i))}function Sb(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 Mb=["align","verticalAlign","width","height","fontSize"],Tb=new Or,Ib=oa(),Cb=oa();function kb(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}var Db=["x","y","rotation"],Lb=(Ab.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},Ab.prototype._addLabel=function(t,e,n,i,r){var o,a=i.style,s=i.__hostTarget.textConfig||{},l=i.getComputedTransform(),u=i.getBoundingRect().plain(),l=(X.applyTransform(u,u,l),l?Tb.setLocalTransform(l):(Tb.x=Tb.y=Tb.rotation=Tb.originX=Tb.originY=0,Tb.scaleX=Tb.scaleY=1),Tb.rotation=Rs(Tb.rotation),i.__hostTarget),h=(l&&(o=l.getBoundingRect().plain(),h=l.getComputedTransform(),X.applyTransform(o,o,h)),o&&l.getTextGuideLine());this._labelList.push({label:i,labelLine:h,seriesModel:n,dataIndex:t,dataType:e,layoutOptionOrCb:r,layoutOption:null,rect:u,hostRect:o,priority:o?o.width*o.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:h&&h.ignore,x:Tb.x,y:Tb.y,scaleX:Tb.scaleX,scaleY:Tb.scaleY,rotation:Tb.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},Ab.prototype.addLabelsOfSeries=function(t){var n=this,i=(this._chartViewList.push(t),t.__model),r=i.get("labelLayout");(z(r)||ct(r).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var e=t.getTextContent(),t=U(t);e&&!e.disableLabelLayout&&n._addLabel(t.dataIndex,t.dataType,i,e,r)})},Ab.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),n=t.getHeight();for(var i=0;i<this._labelList.length;i++){var r=this._labelList[i],o=r.label,a=o.__hostTarget,s=r.defaultAttr,l=void 0,l=z(r.layoutOptionOrCb)?r.layoutOptionOrCb(Sb(r,a)):r.layoutOptionOrCb,u=(r.layoutOption=l=l||{},Math.PI/180),h=(a&&a.setTextConfig({local:!1,position:null!=l.x||null!=l.y?null:s.attachedPos,rotation:null!=l.rotate?l.rotate*u:s.attachedRot,offset:[l.dx||0,l.dy||0]}),!1);null!=l.x?(o.x=To(l.x,e),o.setStyle("x",0),h=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=To(l.y,n),o.setStyle("y",0),h=!0):(o.y=s.y,o.setStyle("y",s.style.y)),l.labelLinePoints&&(c=a.getTextGuideLine())&&(c.setShape({points:l.labelLinePoints}),h=!1),Ib(o).needsUpdateLabelLine=h,o.rotation=null!=l.rotate?l.rotate*u:s.rotation,o.scaleX=s.scaleX,o.scaleY=s.scaleY;for(var c,p=0;p<Mb.length;p++){var d=Mb[p];o.setStyle(d,(null!=l[d]?l:s.style)[d])}l.draggable?(o.draggable=!0,o.cursor="move",a&&(c=r.seriesModel,null!=r.dataIndex&&(c=r.seriesModel.getData(r.dataType).getItemModel(r.dataIndex)),o.on("drag",function(t,e){return function(){nb(t,e)}}(a,c.getModel("labelLine"))))):(o.off("drag"),o.cursor=s.cursor)}},Ab.prototype.layout=function(t){for(var e=t.getWidth(),t=t.getHeight(),n=[],i=(nt(this._labelList,function(t){t.defaultAttr.ignore||n.push(vb({},t))}),ut(n,function(t){return"shiftX"===t.layoutOption.moveOverlap})),r=ut(n,function(t){return"shiftY"===t.layoutOption.moveOverlap}),i=(xb(i,0,0,e),xb(r,1,0,t),ut(n,function(t){return t.layoutOption.hideOverlap})),o=i,a=0;a<o.length;a++){var s=o[a],l=s.defaultAttr,u=s.labelLine;s.label.attr("ignore",l.ignore),u&&u.attr("ignore",l.labelGuideIgnore)}bb(i)},Ab.prototype.processLabelsOverall=function(){var a=this;nt(this._chartViewList,function(t){var i=t.__model,r=t.ignoreLabelLineUpdate,o=i.isAnimationEnabled();t.group.traverse(function(t){if(t.ignore&&!t.forceLabelAnimation)return!0;var e=!r,n=t.getTextContent();(e=!e&&n?Ib(n).needsUpdateLabelLine:e)&&a._updateLabelLine(t,i),o&&a._animateLabels(t,i)})})},Ab.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=U(t),r=i.dataIndex;n&&null!=r&&(e=(n=e.getData(i.dataType)).getItemModel(r),i={},(r=n.getItemVisual(r,"style"))&&(n=n.getVisual("drawType"),i.stroke=r[n]),r=e.getModel("labelLine"),lb(t,ub(e),i),nb(t,r))},Ab.prototype._animateLabels=function(t,e){var n,i,r,o,a,s=t.getTextContent(),l=t.getTextGuideLine();!s||!t.forceLabelAnimation&&(s.ignore||s.invisible||t.disableLabelAnimation||vc(t))||(o=(r=Ib(s)).oldLayout,n=(i=U(t)).dataIndex,a={x:s.x,y:s.y,rotation:s.rotation},i=e.getData(i.dataType),o?(s.attr(o),(t=t.prevStates)&&(0<=k(t,"select")&&s.attr(r.oldLayoutSelect),0<=k(t,"emphasis"))&&s.attr(r.oldLayoutEmphasis),yc(s,a,e,n)):(s.attr(a),yp(s).valueAnimation||(t=G(s.style.opacity,1),s.style.opacity=0,mc(s,{style:{opacity:t}},e,n))),r.oldLayout=a,s.states.select&&(kb(t=r.oldLayoutSelect={},a,Db),kb(t,s.states.select,Db)),s.states.emphasis&&(kb(t=r.oldLayoutEmphasis={},a,Db),kb(t,s.states.emphasis,Db)),mp(s,n,i,e,e)),!l||l.ignore||l.invisible||(o=(r=Cb(l)).oldLayout,a={points:l.shape.points},o?(l.attr({shape:o}),yc(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,mc(l,{style:{strokePercent:1}},e)),r.oldLayout=a)},Ab);function Ab(){this._labelList=[],this._chartViewList=[]}var Pb=oa();function Ob(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){(Pb(e).labelManager||(Pb(e).labelManager=new Lb)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=Pb(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function Rb(t,e,n){var i=Y.createCanvas(),r=e.getWidth(),e=e.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=r+"px",o.height=e+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=e*n,i}ox(Ob);u(Eb,zb=he),Eb.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},Eb.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},Eb.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},Eb.prototype.setUnpainted=function(){this.__firstTimePaint=!0},Eb.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Rb("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},Eb.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var l=[],u=this.maxRepaintRectCount,h=!1,c=new X(0,0,0,0);function r(t){if(t.isFinite()&&!t.isZero())if(0===l.length)(e=new X(0,0,0,0)).copy(t),l.push(e);else{for(var e,n=!1,i=1/0,r=0,o=0;o<l.length;++o){var a=l[o];if(a.intersect(t)){var s=new X(0,0,0,0);s.copy(a),s.union(t),l[o]=s,n=!0;break}h&&(c.copy(t),c.union(a),s=t.width*t.height,a=a.width*a.height,(a=c.width*c.height-s-a)<i)&&(i=a,r=o)}h&&(l[r].union(t),n=!0),n||((e=new X(0,0,0,0)).copy(t),l.push(e)),h=h||l.length>=u}}for(var o,a=this.__startIndex;a<this.__endIndex;++a)(s=t[a])&&(d=s.shouldBePainted(n,i,!0,!0),(p=s.__isRendered&&(s.__dirty&An||!d)?s.getPrevPaintRect():null)&&r(p),o=d&&(s.__dirty&An||!s.__isRendered)?s.getPaintRect():null)&&r(o);for(a=this.__prevStartIndex;a<this.__prevEndIndex;++a){var s,p,d=(s=e[a])&&s.shouldBePainted(n,i,!0,!0);!s||d&&s.__zr||!s.__isRendered||(p=s.getPrevPaintRect())&&r(p)}do{for(var f=!1,a=0;a<l.length;)if(l[a].isZero())l.splice(a,1);else{for(var g=a+1;g<l.length;)l[a].intersect(l[g])?(f=!0,l[a].union(l[g]),l.splice(g,1)):g++;a++}}while(f);return this._paintRects=l},Eb.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},Eb.prototype.resize=function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!==n)&&this.ctxBack.scale(n,n)},Eb.prototype.clear=function(t,o,e){var n=this.dom,a=this.ctx,i=n.width,r=n.height,s=(o=o||this.clearColor,this.motionBlur&&!t),l=this.lastFrameAlpha,u=this.dpr,h=this,c=(s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,i/u,r/u)),this.domBack);function p(t,e,n,i){var r;a.clearRect(t,e,n,i),o&&"transparent"!==o&&(r=void 0,mt(o)?(r=(o.global||o.__width===n&&o.__height===i)&&o.__canvasGradient||f0(a,o,{x:0,y:0,width:n,height:i}),o.__canvasGradient=r,o.__width=n,o.__height=i):vt(o)&&(o.scaleX=o.scaleX||u,o.scaleY=o.scaleY||u,r=M0(a,o,{dirty:function(){h.setUnpainted(),h.painter.refresh()}})),a.save(),a.fillStyle=r||o,a.fillRect(t,e,n,i),a.restore()),s&&(a.save(),a.globalAlpha=l,a.drawImage(c,t,e,n,i),a.restore())}!e||s?p(0,0,i,r):e.length&&nt(e,function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)})};var zb,Nb=Eb;function Eb(t,e,n){var i,r=zb.call(this)||this,t=(r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null,n=n||Mr,"string"==typeof t?i=Rb(t,e,n):N(t)&&(t=(i=t).id),r.id=t,(r.dom=i).style);return t&&(Et(i),i.onselectstart=function(){return!1},t.padding="0",t.margin="0",t.borderWidth="0"),r.painter=e,r.dpr=n,r}var Bb=314159;m.prototype.getType=function(){return"canvas"},m.prototype.isSingleCanvas=function(){return this._singleCanvas},m.prototype.getViewportRoot=function(){return this._domRoot},m.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},m.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var r=0;r<i.length;r++){var o,a=i[r],a=this._layers[a];!a.__builtin__&&a.refresh&&(o=0===r?this._backgroundColor:null,a.refresh(o))}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},m.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},m.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),e){for(var i,r={inHover:!0,viewWidth:this._width,viewHeight:this._height},o=0;o<e;o++){var a=t[o];a.__inHover&&(n=n||(this._hoverlayer=this.getLayer(1e5)),i||(i=n.ctx).save(),E0(i,a,r,o===e-1))}i&&i.restore()}},m.prototype.getHoverLayer=function(){return this.getLayer(1e5)},m.prototype.paintOne=function(t,e){N0(t,e)},m.prototype._paintList=function(t,e,n,i){var r,o,a;this._redrawId===i&&(n=n||!1,this._updateLayerStatus(t),r=(o=this._doPaintList(t,e,n)).finished,o=o.needsRefreshHover,this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),r?this.eachLayer(function(t){t.afterBrush&&t.afterBrush()}):(a=this,Bn(function(){a._paintList(t,e,n,i)})))},m.prototype._compositeManually=function(){var e=this.getLayer(Bb).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)})},m.prototype._doPaintList=function(d,f,g){for(var y=this,m=[],v=this._opts.useDirtyRect,t=0;t<this._zlevelList.length;t++){var e=this._zlevelList[t],e=this._layers[e];e.__builtin__&&e!==this._hoverlayer&&(e.__dirty||g)&&m.push(e)}for(var _=!0,x=!1,n=function(t){function e(t){var e={inHover:!1,allClipped:!1,prevEl:null,viewWidth:y._width,viewHeight:y._height};for(i=s;i<r.__endIndex;i++){var n=d[i];if(n.__inHover&&(x=!0),y._doPaintEl(n,r,v,t,e,i===r.__endIndex-1),l)if(15<Date.now()-u)break}e.prevElClipPaths&&o.restore()}var n,i,r=m[t],o=r.ctx,a=v&&r.createRepaintRects(d,f,b._width,b._height),s=g?r.__startIndex:r.__drawIndex,l=!g&&r.incremental&&Date.now,u=l&&Date.now(),t=r.zlevel===b._zlevelList[0]?b._backgroundColor:null;r.__startIndex!==r.__endIndex&&(s!==r.__startIndex||(n=d[s]).incremental&&n.notClear&&!g)||r.clear(!1,t,a),-1===s&&(console.error("For some unknown reason. drawIndex is -1"),s=r.__startIndex);if(a)if(0===a.length)i=r.__endIndex;else for(var h=b.dpr,c=0;c<a.length;++c){var p=a[c];o.save(),o.beginPath(),o.rect(p.x*h,p.y*h,p.width*h,p.height*h),o.clip(),e(p),o.restore()}else o.save(),e(),o.restore();r.__drawIndex=i,r.__drawIndex<r.__endIndex&&(_=!1)},b=this,i=0;i<m.length;i++)n(i);return w.wxa&&nt(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:_,needsRefreshHover:x}},m.prototype._doPaintEl=function(t,e,n,i,r,o){e=e.ctx;n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(E0(e,t,r,o),t.setPrevPaintRect(n))):E0(e,t,r,o)},m.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Bb);var n=this._layers[t];return n||((n=new Nb("zr_"+t,this,this.dpr)).zlevel=t,n.__builtin__=!0,this._layerConfig[t]?d(n,this._layerConfig[t],!0):this._layerConfig[t-.01]&&d(n,this._layerConfig[t-.01],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},m.prototype.insertLayer=function(t,e){var n,i=this._layers,r=this._zlevelList,o=r.length,a=this._domRoot,s=null,l=-1;if(!i[t]&&(n=e)&&(n.__builtin__||"function"==typeof n.resize&&"function"==typeof n.refresh)){if(0<o&&t>r[0]){for(l=0;l<o-1&&!(r[l]<t&&r[l+1]>t);l++);s=i[r[l]]}r.splice(l+1,0,t),(i[t]=e).virtual||(s?(n=s.dom).nextSibling?a.insertBefore(e.dom,n.nextSibling):a.appendChild(e.dom):a.firstChild?a.insertBefore(e.dom,a.firstChild):a.appendChild(e.dom)),e.painter||(e.painter=this)}},m.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i];t.call(e,this._layers[r],r)}},m.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__&&t.call(e,o,r)}},m.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var r=n[i],o=this._layers[r];o.__builtin__||t.call(e,o,r)}},m.prototype.getLayers=function(){return this._layers},m.prototype._updateLayerStatus=function(t){function e(t){r&&(r.__endIndex!==t&&(r.__dirty=!0),r.__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,r=null,o=0,a=0;a<t.length;a++){var s,l=(s=t[a]).zlevel,u=void 0;i!==l&&(i=l,o=0),s.incremental?((u=this.getLayer(l+.001,this._needsManuallyCompositing)).incremental=!0,o=1):u=this.getLayer(l+(0<o?.01:0),this._needsManuallyCompositing),u.__builtin__||et("ZLevel "+l+" has been used by unkown layer "+u.id),u!==r&&(u.__used=!0,u.__startIndex!==a&&(u.__dirty=!0),u.__startIndex=a,u.incremental?u.__drawIndex=-1:u.__drawIndex=a,e(a),r=u),s.__dirty&An&&!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)})},m.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},m.prototype._clearLayer=function(t){t.clear()},m.prototype.setBackgroundColor=function(t){this._backgroundColor=t,nt(this._layers,function(t){t.setUnpainted()})},m.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?d(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var r=this._zlevelList[i];r!==t&&r!==t+.01||d(this._layers[r],n[t],!0)}}},m.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(k(n,t),1))},m.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot,i=(n.style.display="none",this._opts),r=this.root;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=y0(r,0,i),e=y0(r,1,i),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(Bb).resize(t,e)}return this},m.prototype.clearLayer=function(t){t=this._layers[t];t&&t.clear()},m.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},m.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[Bb].dom;var e=new Nb("image",this,(t=t||{}).pixelRatio||this.dpr),n=(e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor),e.ctx);if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,r=e.dom.height;this.eachLayer(function(t){t.__builtin__?n.drawImage(t.dom,0,0,i,r):t.renderToCanvas&&(n.save(),t.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++){var u=a[s];E0(n,u,o,s===l-1)}return e.dom},m.prototype.getWidth=function(){return this._width},m.prototype.getHeight=function(){return this._height};var Vb=m;function m(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=n=P({},n||{}),this.dpr=n.devicePixelRatio||Mr,this._singleCanvas=r;(this.root=t).style&&(Et(t),t.innerHTML=""),this.storage=e;var o,a,e=this._zlevelList,s=(this._prevDisplayList=[],this._layers);r?(o=(r=t).width,a=r.height,null!=n.width&&(o=n.width),null!=n.height&&(a=n.height),this.dpr=n.devicePixelRatio||1,r.width=o*this.dpr,r.height=a*this.dpr,this._width=o,this._height=a,(o=new Nb(r,this,this.dpr)).__builtin__=!0,o.initContext(),(s[Bb]=o).zlevel=Bb,e.push(Bb),this._domRoot=t):(this._width=y0(t,0,n),this._height=y0(t,1,n),o=this._domRoot=(a=this._width,r=this._height,(s=document.createElement("div")).style.cssText=["position:relative","width:"+a+"px","height:"+r+"px","padding:0","margin:0","border-width:0"].join(";")+";",s),t.appendChild(o))}u(Gb,Fb=g),Gb.prototype.init=function(t,e,n){Fb.prototype.init.call(this,t,e,n),this._sourceManager=new Ty(this),Cy(this)},Gb.prototype.mergeOption=function(t,e){Fb.prototype.mergeOption.call(this,t,e),Cy(this)},Gb.prototype.optionUpdated=function(){this._sourceManager.dirty()},Gb.prototype.getSourceManager=function(){return this._sourceManager},Gb.type="dataset",Gb.defaultOption={seriesLayoutBy:gf};var Fb,Hb=Gb;function Gb(){var t=null!==Fb&&Fb.apply(this,arguments)||this;return t.type="dataset",t}u(Xb,Wb=rm),Xb.type="dataset";var Wb,Ub=Xb;function Xb(){var t=null!==Wb&&Wb.apply(this,arguments)||this;return t.type="dataset",t}function Yb(t){t.registerComponentModel(Hb),t.registerComponentView(Ub)}ox([function(t){t.registerPainter("canvas",Vb)},Yb]),ox(Ob);var Zb={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]}},qb=function(t){return Math.round(t.length/2)};function jb(t){return{seriesType:t,reset:function(t,e,n){var i,r=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=r.count();10<s&&"cartesian2d"===a.type&&o&&(i=a.getBaseAxis(),a=a.getOtherAxis(i),i=i.getExtent(),n=n.getDevicePixelRatio(),i=Math.abs(i[1]-i[0])*(n||1),n=Math.round(s/i),isFinite(n))&&1<n&&("lttb"===o?t.setData(r.lttbDownSample(r.mapDimension(a.dim),1/n)):"minmax"===o&&t.setData(r.minmaxDownSample(r.mapDimension(a.dim),1/n)),s=void 0,F(o)?s=Zb[o]:z(o)&&(s=o),s)&&t.setData(r.downSample(r.mapDimension(a.dim),1/n,s,qb))}}}u($b,Kb=Ky),$b.prototype.getInitialData=function(t,e){return W_(null,this,{useEncodeDefaulter:!0})},$b.prototype.getMarkerPosition=function(t,p,e){var d,f,n=this.coordinateSystem;return n&&n.clampData?(d=n.clampData(t),f=n.dataToPoint(d),e?nt(n.getAxes(),function(t,e){if("category"===t.type&&null!=p){var n=t.getTicksCoords(),i=t.getTickModel().get("alignWithLabel"),r=d[e],o="x1"===p[e]||"y1"===p[e];if(o&&!i&&(r+=1),!(n.length<2))if(2===n.length)f[e]=t.toGlobalCoord(t.getExtent()[o?1:0]);else{for(var a=void 0,s=void 0,l=1,u=0;u<n.length;u++){var h=n[u].coord,c=u===n.length-1?n[u-1].tickValue+l:n[u].tickValue;if(c===r){s=h;break}if(c<r)a=h;else if(null!=a&&r<c){s=(h+a)/2;break}1===u&&(l=c-n[0].tickValue)}null==s&&(s=(a?n[n.length-1]:n[0]).coord),f[e]=t.toGlobalCoord(s)}}}):(e=(t=this.getData()).getLayout("offset"),t=t.getLayout("size"),n=n.getBaseAxis().isHorizontal()?0:1,f[n]+=e+t/2),f):[NaN,NaN]},$b.type="series.__base_bar__",$b.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"};var Kb,Ul=$b;function $b(){var t=null!==Kb&&Kb.apply(this,arguments)||this;return t.type=$b.type,t}Ky.registerClass(Ul);u(tw,Qb=Ul),tw.prototype.getInitialData=function(){return W_(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},tw.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},tw.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return t=t<e?e:t},tw.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},tw.type="series.bar",tw.dependencies=["grid","polar"],tw.defaultOption=Np(Ul.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:v.color.primary,borderWidth:2}},realtimeSort:!1});var Qb,Jb=tw;function tw(){var t=null!==Qb&&Qb.apply(this,arguments)||this;return t.type=tw.type,t}function ew(t,e,n,i,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,o=o.height,u=n.get(["lineStyle","width"])||0,h=(a-=u/2,s-=u/2,l+=u,o+=u,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++),new pl({shape:{x:a,y:s,width:l,height:o}}));return e&&(e=(u=t.getBaseAxis()).isHorizontal(),t=u.inverse,e?(t&&(h.shape.x+=l),h.shape.width=0):(t||(h.shape.y+=o),h.shape.height=0),u=z(r)?function(t){r(t,h)}:null,mc(h,{shape:{width:l,height:o,x:a,y:s}},n,null,i,u)),h}function nw(t,e,n){var i=t.getArea(),r=Co(i.r0,1),o=Co(i.r,1),a=new gh({shape:{cx:Co(t.cx,1),cy:Co(t.cy,1),r0:r,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});return e&&("angle"===t.getBaseAxis().dim?a.shape.endAngle=i.startAngle:a.shape.r=r,mc(a,{shape:{endAngle:i.endAngle,r:o}},n)),a}var iw,rw=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},ow=(u(aw,iw=js),aw.prototype.getDefaultShape=function(){return new rw},aw.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,e=e.clockwise,h=2*Math.PI,c=e?u-l<h:l-u<h,h=(c||(l=u-(e?h:-h)),Math.cos(l)),p=Math.sin(l),d=Math.cos(u),f=Math.sin(u);c?(t.moveTo(h*r+n,p*r+i),t.arc(h*s+n,p*s+i,a,-Math.PI+l,l,!e)):t.moveTo(h*o+n,p*o+i),t.arc(n,i,o,l,u,!e),t.arc(d*s+n,f*s+i,a,u-2*Math.PI,u-Math.PI,!e),0!==r&&t.arc(n,i,r,u,l,e)},aw);function aw(t){t=iw.call(this,t)||this;return t.type="sausage",t}function sw(t,e){return t.type===e}function lw(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),r=i.length;if(1===r)return null!=(n=Rg(t,e,i[0]))?n+"":null;if(r){for(var o=[],a=0;a<i.length;a++)o.push(Rg(t,e,i[a]));return o.join(" ")}}function uw(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!V(e))return e+"";for(var i=[],r=0;r<n.length;r++){var o=t.getDimensionIndex(n[r]);0<=o&&i.push(e[o])}return i.join(" ")}function hw(t,e,n){return e*Math.sin(t)*(n?-1:1)}function cw(t,e,n){return e*Math.cos(t)*(n?1:-1)}function pw(t,e,n){t=t.get("borderRadius");if(null==t)return n?{cornerRadius:0}:null;V(t)||(t=[t,t,t,t]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:B(t,function(t){return Zr(t,i)})}}var dw=Math.max,fw=Math.min;u(mw,gw=um),mw.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");"cartesian2d"!==r&&"polar"!==r||(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},mw.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},mw.prototype.incrementalRender=function(t,e){this._progressiveEls=[],this._incrementalRenderLarge(t,e)},mw.prototype.eachRendered=function(t){Qc(this._progressiveEls||this.group,t)},mw.prototype._updateDrawMode=function(t){t=t.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},mw.prototype._renderNormal=function(a,t,e,n){var s,i,r,l=this.group,u=a.getData(),h=this._data,c=a.coordinateSystem,p=c.getBaseAxis(),d=("cartesian2d"===c.type?s=p.isHorizontal():"polar"===c.type&&(s="angle"===p.dim),a.isAnimationEnabled()?a:null),f=function(t,e){var t=t.get("realtimeSort",!0),n=e.getBaseAxis();if(t&&"category"===n.type&&"cartesian2d"===e.type)return{baseAxis:n,otherAxis:e.getOtherAxis(n)}}(a,c),g=(f&&this._enableRealtimeSort(f,u,e),a.get("clip",!0)||f),y=(e=u,r=(i=c).getArea&&i.getArea(),!sw(i,"cartesian2d")||"category"===(i=i.getBaseAxis()).type&&i.onBand||(e=e.getLayout("bandWidth"),i.isHorizontal()?(r.x-=e,r.width+=2*e):(r.y-=e,r.height+=2*e)),r),m=(l.removeClipPath(),a.get("roundCap",!0)),v=a.get("showBackground",!0),_=a.getModel("backgroundStyle"),x=_.get("borderRadius")||0,b=[],w=this._backgroundEls,S=n&&n.isInitSort,M=n&&"changeAxisOrder"===n.type;function T(t){var e,n=Tw[c.type](u,t);return n?(e=s,(e=new("polar"===c.type?gh:pl)({shape:Rw(e,n,c),silent:!0,z2:0})).useStyle(_.getItemStyle()),"cartesian2d"===c.type?e.setShape("r",x):e.setShape("cornerRadius",x),b[t]=e):null}u.diff(h).add(function(t){var e,n,i=u.getItemModel(t),r=Tw[c.type](u,t,i);r&&(v&&T(t),u.hasValue(t))&&Mw[c.type](r)&&(e=!1,g&&(e=vw[c.type](y,r)),n=_w[c.type](a,u,t,r,s,d,p.model,!1,m),f&&(n.forceLabelAnimation=!0),Cw(n,u,t,i,r,a,s,"polar"===c.type),S?n.attr({shape:r}):f?xw(f,d,n,r,t,s,!1,!1):mc(n,{shape:r},a,t),u.setItemGraphicEl(t,n),l.add(n),n.ignore=e)}).update(function(t,e){var n,i,r=u.getItemModel(t),o=Tw[c.type](u,t,r);o&&(v&&(n=void 0,0===w.length?n=T(e):((n=w[e]).useStyle(_.getItemStyle()),"cartesian2d"===c.type?n.setShape("r",x):n.setShape("cornerRadius",x),b[t]=n),i=Tw[c.type](u,t),yc(n,{shape:Rw(s,i,c)},d,t)),n=h.getItemGraphicEl(e),u.hasValue(t)&&Mw[c.type](o)?(i=!1,g&&(i=vw[c.type](y,o))&&l.remove(n),n&&("sector"===n.type&&m||"sausage"===n.type&&!m)&&(n&&bc(n,a,e),n=null),n?wc(n):n=_w[c.type](a,u,t,o,s,d,p.model,!0,m),f&&(n.forceLabelAnimation=!0),M?(e=n.getTextContent())&&null!=(e=yp(e)).prevValue&&(e.prevValue=e.value):Cw(n,u,t,r,o,a,s,"polar"===c.type),S?n.attr({shape:o}):f?xw(f,d,n,o,t,s,!0,M):yc(n,{shape:o},a,t,null),u.setItemGraphicEl(t,n),n.ignore=i,l.add(n)):l.remove(n))}).remove(function(t){var e=h.getItemGraphicEl(t);e&&bc(e,a,t)}).execute();var o=this._backgroundGroup||(this._backgroundGroup=new lo);o.removeAll();for(var I=0;I<b.length;++I)o.add(b[I]);l.add(o),this._backgroundEls=b,this._data=u},mw.prototype._renderLarge=function(t,e,n){this._clear(),Pw(t,this.group),this._updateLargeClip(t)},mw.prototype._incrementalRenderLarge=function(t,e){this._removeBackground(),Pw(e,this.group,this._progressiveEls,!0)},mw.prototype._updateLargeClip=function(t){var e,n,i=t.get("clip",!0)&&(i=t.coordinateSystem,r=!1,t=t,i?"polar"===i.type?nw(i,r,t):"cartesian2d"===i.type?ew(i,r,t,e,n):null:null),r=this.group;i?r.setClipPath(i):r.removeClipPath()},mw.prototype._enableRealtimeSort=function(t,e,n){var i,r,o=this;e.count()&&(i=t.baseAxis,this._isFirstFrame?(this._dispatchInitSort(e,t,n),this._isFirstFrame=!1):(r=function(t){t=e.getItemGraphicEl(t),t=t&&t.shape;return t&&Math.abs(i.isHorizontal()?t.height:t.width)||0},this._onRendered=function(){o._updateSortWithinSameData(e,r,i,n)},n.getZr().on("rendered",this._onRendered)))},mw.prototype._dataSort=function(t,e,i){var r=[];return t.each(t.mapDimension(e.dim),function(t,e){var n=i(e);r.push({dataIndex:e,mappedValue:null==n?NaN:n,ordinalNumber:t})}),r.sort(function(t,e){return e.mappedValue-t.mappedValue}),{ordinalNumbers:B(r,function(t){return t.ordinalNumber})}},mw.prototype._isOrderChangedWithinSameData=function(t,e,n){for(var i=n.scale,r=t.mapDimension(n.dim),o=Number.MAX_VALUE,a=0,s=i.getOrdinalMeta().categories.length;a<s;++a){var l=t.rawIndexOf(r,i.getRawOrdinalNumber(a)),l=l<0?Number.MIN_VALUE:e(t.indexOfRawIndex(l));if(o<l)return!0;o=l}return!1},mw.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,e=n.getExtent(),i=Math.max(0,e[0]),r=Math.min(e[1],n.getOrdinalMeta().categories.length-1);i<=r;++i)if(t.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},mw.prototype._updateSortWithinSameData=function(t,e,n,i){this._isOrderChangedWithinSameData(t,e,n)&&(t=this._dataSort(t,n,e),this._isOrderDifferentInView(t,n))&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:t}))},mw.prototype._dispatchInitSort=function(e,n,t){var i=n.baseAxis,r=this._dataSort(e,i,function(t){return e.get(e.mapDimension(n.otherAxis.dim),t)});t.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},mw.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},mw.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},mw.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},mw.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){bc(t,e,U(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},mw.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},mw.type="bar";var gw,yw=mw;function mw(){var t=gw.call(this)||this;return t.type=mw.type,t._isFirstFrame=!0,t}var vw={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1,r=(n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),t.x+t.width),o=t.y+t.height,a=dw(e.x,t.x),s=fw(e.x+e.width,r),t=dw(e.y,t.y),l=fw(e.y+e.height,o),u=s<a,h=l<t;return e.x=u&&r<a?s:a,e.y=h&&o<t?l:t,e.width=u?0:s-a,e.height=h?0:l-t,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),u||h},polar:function(t,e){var n,i=e.r0<=e.r?1:-1,r=(i<0&&(n=e.r,e.r=e.r0,e.r0=n),fw(e.r,t.r)),t=dw(e.r0,t.r0),r=(e.r=r)-(e.r0=t)<0;return i<0&&(n=e.r,e.r=e.r0,e.r0=n),r}},_w={cartesian2d:function(t,e,n,i,r,o,a,s,l){i=new pl({shape:P({},i),z2:1});return i.__dataIndex=n,i.name="item",o&&(i.shape[r?"height":"width"]=0),i},polar:function(t,e,n,i,r,o,a,s,l){var b,w,l=!r&&l?ow:gh,u=new l({shape:i,z2:1}),h=(u.name="item",Iw(r));return u.calculateTextPosition=(b=h,w=({isRoundCap:l===ow}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return qr(t,e,n);var i=b(i),r=null!=e.distance?e.distance:5,o=this.shape,a=o.cx,s=o.cy,l=o.r,u=o.r0,h=(l+u)/2,c=o.startAngle,p=o.endAngle,d=(c+p)/2,f=w?Math.abs(l-u)/2:0,g=Math.cos,y=Math.sin,m=a+l*g(c),v=s+l*y(c),_="left",x="top";switch(i){case"startArc":m=a+(u-r)*g(d),v=s+(u-r)*y(d),_="center",x="top";break;case"insideStartArc":m=a+(u+r)*g(d),v=s+(u+r)*y(d),_="center",x="bottom";break;case"startAngle":m=a+h*g(c)+hw(c,r+f,!1),v=s+h*y(c)+cw(c,r+f,!1),_="right",x="middle";break;case"insideStartAngle":m=a+h*g(c)+hw(c,f-r,!1),v=s+h*y(c)+cw(c,f-r,!1),_="left",x="middle";break;case"middle":m=a+h*g(d),v=s+h*y(d),_="center",x="middle";break;case"endArc":m=a+(l+r)*g(d),v=s+(l+r)*y(d),_="center",x="bottom";break;case"insideEndArc":m=a+(l-r)*g(d),v=s+(l-r)*y(d),_="center",x="top";break;case"endAngle":m=a+h*g(p)+hw(p,r+f,!0),v=s+h*y(p)+cw(p,r+f,!0),_="left",x="middle";break;case"insideEndAngle":m=a+h*g(p)+hw(p,f-r,!0),v=s+h*y(p)+cw(p,f-r,!0),_="right",x="middle";break;default:return qr(t,e,n)}return(t=t||{}).x=m,t.y=v,t.align=_,t.verticalAlign=x,t}),o&&(h={},u.shape[l=r?"r":"endAngle"]=r?i.r0:i.startAngle,h[l]=i[l],(s?yc:mc)(u,{shape:h},o)),u}};function xw(t,e,n,i,r,o,a,s){var l,o=o?(l={x:i.x,width:i.width},{y:i.y,height:i.height}):(l={y:i.y,height:i.height},{x:i.x,width:i.width});s||(a?yc:mc)(n,{shape:o},e,r,null),(a?yc:mc)(n,{shape:l},e?t.baseAxis.model:null,r)}function bw(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return 1}var ww=["x","y","width","height"],Sw=["cx","cy","r","startAngle","endAngle"],Mw={cartesian2d:function(t){return!bw(t,ww)},polar:function(t){return!bw(t,Sw)}},Tw={cartesian2d:function(t,e,n){var i,t=t.getItemLayout(e);return t?(i=n&&(e=t,i=(n=n).get(["itemStyle","borderColor"]))&&"none"!==i?(i=n.get(["itemStyle","borderWidth"])||0,n=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),e=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height),Math.min(i,n,e)):0,n=0<t.width?1:-1,e=0<t.height?1:-1,{x:t.x+n*i/2,y:t.y+e*i/2,width:t.width-n*i,height:t.height-e*i}):null},polar:function(t,e,n){t=t.getItemLayout(e);return{cx:t.cx,cy:t.cy,r0:t.r0,r:t.r,startAngle:t.startAngle,endAngle:t.endAngle,clockwise:t.clockwise}}};function Iw(t){return e=t?"Arc":"Angle",function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}};var e}function Cw(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style"),u=(s?o.get("roundCap")||(P(u=t.shape,pw(i.getModel("itemStyle"),u,!0)),t.setShape(u)):(u=i.get(["itemStyle","borderRadius"])||0,t.setShape("r",u)),t.useStyle(l),i.getShallow("cursor")),u=(u&&t.attr("cursor",u),s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?0<=r.height?"bottom":"top":0<=r.width?"right":"left"),h=up(i),l=(lp(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:lw(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:u}),t.getTextContent()),h=(s&&l&&(s=i.get(["label","position"]),t.textConfig.inside="middle"===s||null,function(t,e,n,i){if(H(i))t.setTextConfig({rotation:i});else if(V(e))t.setTextConfig({rotation:0});else{var r,i=t.shape,o=i.clockwise?i.startAngle:i.endAngle,a=i.clockwise?i.endAngle:i.startAngle,s=(o+a)/2,i=n(e);switch(i){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=s;break;case"startAngle":case"insideStartAngle":r=o;break;case"endAngle":case"insideEndAngle":r=a;break;default:return t.setTextConfig({rotation:0})}n=1.5*Math.PI-r;"middle"===i&&n>Math.PI/2&&n<1.5*Math.PI&&(n-=Math.PI),t.setTextConfig({rotation:n})}}(t,"outside"===s?u:s,Iw(a),i.get(["label","rotate"]))),u=l,s=h,a=o.getRawValue(n),l=function(t){return uw(e,t)},u&&((u=yp(u)).prevValue=u.value,u.value=a,a=s.normal,u.valueAnimation=a.get("valueAnimation"),u.valueAnimation)&&(u.precision=a.get("precision"),u.defaultInterpolatedText=l,u.statesModels=s),i.getModel(["emphasis"]));_u(t,h.get("focus"),h.get("blurScope"),h.get("disabled")),wu(t,i),null!=(o=r).startAngle&&null!=o.endAngle&&o.startAngle===o.endAngle&&(t.style.fill="none",t.style.stroke="none",nt(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var kw,Dw=function(){},Lw=(u(Aw,kw=js),Aw.prototype.getDefaultShape=function(){return new Dw},Aw.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l<n.length;l+=3)a[i]=s,a[r]=n[l+2],o[i]=n[l+i],o[r]=n[l+r],t.rect(o[0],o[1],a[0],a[1])},Aw);function Aw(t){t=kw.call(this,t)||this;return t.type="largeBar",t}function Pw(t,e,n,i){var r=t.getData(),o=r.getLayout("valueAxisHorizontal")?1:0,a=r.getLayout("largeDataIndices"),s=r.getLayout("size"),l=t.getModel("backgroundStyle"),u=r.getLayout("largeBackgroundPoints"),l=(u&&((u=new Lw({shape:{points:u},incremental:!!i,silent:!0,z2:0})).baseDimIdx=o,u.largeDataIndices=a,u.barWidth=s,u.useStyle(l.getItemStyle()),e.add(u),n)&&n.push(u),new Lw({shape:{points:r.getLayout("largePoints")},incremental:!!i,ignoreCoarsePointer:!0,z2:1}));l.baseDimIdx=o,l.largeDataIndices=a,l.barWidth=s,e.add(l),l.useStyle(r.getVisual("style")),l.style.stroke=null,U(l).seriesIndex=t.seriesIndex,t.get("silent")||(l.on("mousedown",Ow),l.on("mousemove",Ow)),n&&n.push(l)}var Ow=_m(function(t){t=function(t,e,n){for(var i=t.baseDimIdx,r=1-i,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,h=0,c=o.length/3;h<c;h++){var p=3*h;if(l[i]=u,l[r]=o[2+p],s[i]=o[p+i],s[r]=o[p+r],l[r]<0&&(s[r]+=l[r],l[r]=-l[r]),s[0]<=e&&e<=s[0]+l[0]&&s[1]<=n&&n<=s[1]+l[1])return a[h]}return-1}(this,t.offsetX,t.offsetY);U(this).dataIndex=0<=t?t:null},30,!1);function Rw(t,e,n){var i,r;return sw(n,"cartesian2d")?(i=e,r=n.getArea(),{x:(t?i:r).x,y:(t?r:i).y,width:(t?i:r).width,height:(t?r:i).height}):{cx:(r=n.getArea()).cx,cy:r.cy,r0:(t?r:e).r0,r:(t?r:e).r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}ox(function(t){t.registerChartView(yw),t.registerSeriesModel(Jb),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,pt(w1,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,S1("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,jb("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})})});u(Ew,zw=Ky),Ew.prototype.getInitialData=function(t){return W_(null,this,{useEncodeDefaulter:!0})},Ew.prototype.getLegendIcon=function(t){var e=new lo,n=c0("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1),n=(e.add(n),n.setStyle(t.lineStyle),this.getData().getVisual("symbol")),i=this.getData().getVisual("symbolRotate"),n="none"===n?"circle":n,r=.8*t.itemHeight,r=c0(n,(t.itemWidth-r)/2,(t.itemHeight-r)/2,r,r,t.itemStyle.fill),i=(e.add(r),r.setStyle(t.itemStyle),"inherit"===t.iconRotate?i:t.iconRotate||0);return r.rotation=i*Math.PI/180,r.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<n.indexOf("empty")&&(r.style.stroke=r.style.fill,r.style.fill=v.color.neutral00,r.style.lineWidth=2),e},Ew.type="series.line",Ew.dependencies=["grid","polar"],Ew.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1};var zw,Nw=Ew;function Ew(){var t=null!==zw&&zw.apply(this,arguments)||this;return t.type=Ew.type,t.hasSymbolVisual=!0,t}u(Fw,Bw=lo),Fw.prototype._createSymbol=function(t,e,n,i,r,o){this.removeAll();o=c0(t,-1,-1,2,2,null,o);o.attr({z2:G(r,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Hw,this._symbolType=t,this.add(o)},Fw.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},Fw.prototype.getSymbolType=function(){return this._symbolType},Fw.prototype.getSymbolPath=function(){return this.childAt(0)},Fw.prototype.highlight=function(){su(this.childAt(0))},Fw.prototype.downplay=function(){lu(this.childAt(0))},Fw.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},Fw.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},Fw.prototype.updateData=function(t,e,n,i){this.silent=!1;var r,o,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=Fw.getSymbolSize(t,e),h=Fw.getSymbolZ2(t,e),c=s!==this._symbolType,p=i&&i.disableAnimation;c?(r=t.getItemVisual(e,"symbolKeepAspect"),this._createSymbol(s,t,e,u,h,r)):((o=this.childAt(0)).silent=!1,a={scaleX:u[0]/2,scaleY:u[1]/2},p?o.attr(a):yc(o,a,l,e),wc(o)),this._updateCommon(t,e,u,n,i),c&&(o=this.childAt(0),p||(a={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:o.style.opacity}},o.scaleX=o.scaleY=0,o.style.opacity=0,mc(o,a,l,e))),p&&this.childAt(0).stopAnimation("leave")},Fw.prototype._updateCommon=function(e,t,n,i,r){var o,a,s,l,u,h,c,p,d=this.childAt(0),f=e.hostModel,g=(i&&(o=i.emphasisItemStyle,s=i.blurItemStyle,a=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,p=i.hoverScale,y=i.cursorStyle,h=i.emphasisDisabled),i&&!e.hasItemOption||(o=(g=(i=i&&i.itemModel?i.itemModel:e.getItemModel(t)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),a=i.getModel(["select","itemStyle"]).getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=g.get("focus"),u=g.get("blurScope"),h=g.get("disabled"),c=up(i),p=g.getShallow("scale"),y=i.getShallow("cursor")),e.getItemVisual(t,"symbolRotate")),i=(d.attr("rotation",(g||0)*Math.PI/180||0),p0(e.getItemVisual(t,"symbolOffset"),n)),g=(i&&(d.x=i[0],d.y=i[1]),y&&d.attr("cursor",y),e.getItemVisual(t,"style")),i=g.fill,y=(d instanceof il?(y=d.style,d.useStyle(P({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},g))):(d.__isEmptyBrush?d.useStyle(P({},g)):d.useStyle(g),d.style.decal=null,d.setColor(i,r&&r.symbolInnerColor),d.style.strokeNoScale=!0),e.getItemVisual(t,"liftZ")),m=this._z2,v=(null!=y?null==m&&(this._z2=d.z2,d.z2+=y):null!=m&&(d.z2=m,this._z2=null),r&&r.useNameLabel);lp(d,c,{labelFetcher:f,labelDataIndex:t,defaultText:function(t){return v?e.getName(t):lw(e,t)},inheritColor:i,defaultOpacity:g.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;y=d.ensureState("emphasis"),y.style=o,d.ensureState("select").style=a,d.ensureState("blur").style=s,m=null==p||!0===p?Math.max(1.1,3/this._sizeY):isFinite(p)&&0<p?+p:1;y.scaleX=this._sizeX*m,y.scaleY=this._sizeY*m,this.setSymbolScale(1),_u(this,l,u,h)},Fw.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},Fw.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=U(this).dataIndex,o=n&&n.animation;this.silent=i.silent=!0,n&&n.fadeLabel?(n=i.getTextContent())&&_c(n,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}}):i.removeTextContent(),_c(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},Fw.getSymbolSize=function(t,e){return[(t=V(t=t.getItemVisual(e,"symbolSize"))?t:[+t,+t])[0]||0,t[1]||0]},Fw.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")};var Bw,Vw=Fw;function Fw(t,e,n,i){var r=Bw.call(this)||this;return r.updateData(t,e,n,i),r}function Hw(t,e){this.parent.drift(t,e)}function Gw(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 Ww(t){return(t=null==t||N(t)?t:{isIgnore:t})||{}}function Uw(t){var t=t.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:up(t),cursorStyle:t.get("cursor")}}Yw.prototype.updateData=function(o,a){this._progressiveEls=null,a=Ww(a);var s=this.group,l=o.hostModel,u=this._data,h=this._SymbolCtor,c=a.disableAnimation,p=Uw(o),d={disableAnimation:c},f=a.getSymbolPoint||function(t){return o.getItemLayout(t)};u||s.removeAll(),o.diff(u).add(function(t){var e,n=f(t);Gw(o,n,t,a)&&((e=new h(o,t,p,d)).setPosition(n),o.setItemGraphicEl(t,e),s.add(e))}).update(function(t,e){var n,i,e=u.getItemGraphicEl(e),r=f(t);Gw(o,r,t,a)?(n=o.getItemVisual(t,"symbol")||"circle",i=e&&e.getSymbolType&&e.getSymbolType(),!e||i&&i!==n?(s.remove(e),(e=new h(o,t,p,d)).setPosition(r)):(e.updateData(o,t,p,d),i={x:r[0],y:r[1]},c?e.attr(i):yc(e,i,l)),s.add(e),o.setItemGraphicEl(t,e)):s.remove(e)}).remove(function(t){var e=u.getItemGraphicEl(t);e&&e.fadeOut(function(){s.remove(e)},l)}).execute(),this._getSymbolPoint=f,this._data=o},Yw.prototype.updateLayout=function(){var n=this,t=this._data;t&&t.eachItemGraphicEl(function(t,e){e=n._getSymbolPoint(e);t.setPosition(e),t.markRedraw()})},Yw.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Uw(t),this._data=null,this.group.removeAll()},Yw.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Ww(n);for(var r=t.start;r<t.end;r++){var o,a=e.getItemLayout(r);Gw(e,a,r,n)&&((o=new this._SymbolCtor(e,r,this._seriesScope)).traverse(i),o.setPosition(a),this.group.add(o),e.setItemGraphicEl(r,o),this._progressiveEls.push(o))}},Yw.prototype.eachRendered=function(t){Qc(this._progressiveEls||this.group,t)},Yw.prototype.remove=function(t){var e=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},n.hostModel)}):e.removeAll()};var Xw=Yw;function Yw(t){this.group=new lo,this._SymbolCtor=t||Vw}function Zw(t,e,n){var i=t.getBaseAxis(),r=t.getOtherAxis(i),n=function(t,e){var n=0,t=t.scale.getExtent();"start"===e?n=t[0]:"end"===e?n=t[1]:H(e)&&!isNaN(e)?n=e:0<t[0]?n=t[0]:t[1]<0&&(n=t[1]);return n}(r,n),i=i.dim,r=r.dim,o=e.mapDimension(r),a=e.mapDimension(i),s="x"===r||"radius"===r?1:0,t=B(t.dimensions,function(t){return e.mapDimension(t)}),l=!1,u=e.getCalculationInfo("stackResultDimension");return H_(e,t[0])&&(l=!0,t[0]=u),H_(e,t[1])&&(l=!0,t[1]=u),{dataDimsForPoint:t,valueStart:n,valueAxisDim:r,baseAxisDim:i,stacked:!!l,valueDim:o,baseDim:a,baseDataOffset:s,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function qw(t,e,n,i){var r=NaN,o=(t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart),t.baseDataOffset),a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var jw=Math.min,Kw=Math.max;function $w(t,e){return isNaN(t)||isNaN(e)}function Qw(t,e,n,i,r,o,a,s,l){for(var u,h,c,p,d=n,f=0;f<i;f++){var g=e[2*d],y=e[2*d+1];if(r<=d||d<0)break;if($w(g,y)){if(l){d+=o;continue}break}if(d===n)t[0<o?"moveTo":"lineTo"](g,y),c=g,p=y;else{var m=g-u,v=y-h;if(m*m+v*v<.5){d+=o;continue}if(0<a){for(var _=d+o,x=e[2*_],b=e[2*_+1];x===g&&b===y&&f<i;)f++,d+=o,x=e[2*(_+=o)],b=e[2*_+1],g=e[2*d],y=e[2*d+1];var w=f+1;if(l)for(;$w(x,b)&&w<i;)w++,x=e[2*(_+=o)],b=e[2*_+1];var S,M,T,I,C,k,D,L,A,m=0,v=0,P=void 0,O=void 0;i<=w||$w(x,b)?(D=g,L=y):(m=x-u,v=b-h,S=g-u,M=x-g,T=y-h,I=b-y,k=C=void 0,O="x"===s?(D=g-(A=0<m?1:-1)*(C=Math.abs(S))*a,L=y,P=g+A*(k=Math.abs(M))*a,y):"y"===s?(L=y-(A=0<v?1:-1)*(C=Math.abs(T))*a,P=D=g,y+A*(k=Math.abs(I))*a):(C=Math.sqrt(S*S+T*T),D=g-m*a*(1-(S=(k=Math.sqrt(M*M+I*I))/(k+C))),L=y-v*a*(1-S),O=y+v*a*S,P=jw(P=g+m*a*S,Kw(x,g)),O=jw(O,Kw(b,y)),P=Kw(P,jw(x,g)),L=y-(v=(O=Kw(O,jw(b,y)))-y)*C/k,D=jw(D=g-(m=P-g)*C/k,Kw(u,g)),L=jw(L,Kw(h,y)),P=g+(m=g-(D=Kw(D,jw(u,g))))*k/C,y+(v=y-(L=Kw(L,jw(h,y))))*k/C)),t.bezierCurveTo(c,p,D,L,g,y),c=P,p=O}else t.lineTo(g,y)}u=g,h=y,d+=o}return f}var Jw,tS=function(){this.smooth=0,this.smoothConstraint=!0},eS=(u(nS,Jw=js),nS.prototype.getDefaultStyle=function(){return{stroke:v.color.neutral99,fill:null}},nS.prototype.getDefaultShape=function(){return new tS},nS.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;0<r&&$w(n[2*r-2],n[2*r-1]);r--);for(;i<r&&$w(n[2*i],n[2*i+1]);i++);}for(;i<r;)i+=Qw(t,n,i,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},nS.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,i,r=this.path.data,o=As.CMD,a="x"===e,s=[],l=0;l<r.length;){var u=void 0,h=void 0;switch(r[l++]){case o.M:n=r[l++],i=r[l++];break;case o.L:var c,u=r[l++],h=r[l++];if((c=a?(t-n)/(u-n):(t-i)/(h-i))<=1&&0<=c)return v=a?(h-i)*c+i:(u-n)*c+n,a?[t,v]:[v,t];n=u,i=h;break;case o.C:u=r[l++],h=r[l++];var p=r[l++],d=r[l++],f=r[l++],g=r[l++],y=a?Qn(n,u,p,f,t,s):Qn(i,h,d,g,t,s);if(0<y)for(var m=0;m<y;m++){var v,_=s[m];if(_<=1&&0<=_)return v=a?Kn(i,h,d,g,_):Kn(n,u,p,f,_),a?[t,v]:[v,t]}n=f,i=g}}},nS);function nS(t){t=Jw.call(this,t)||this;return t.type="ec-polyline",t}u(oS,iS=tS);var iS,rS=oS;function oS(){return null!==iS&&iS.apply(this,arguments)||this}u(lS,aS=js),lS.prototype.getDefaultShape=function(){return new rS},lS.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;0<o&&$w(n[2*o-2],n[2*o-1]);o--);for(;r<o&&$w(n[2*r],n[2*r+1]);r++);}for(;r<o;){var s=Qw(t,n,r,o,o,1,e.smooth,a,e.connectNulls);Qw(t,i,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}};var aS,sS=lS;function lS(t){t=aS.call(this,t)||this;return t.type="ec-polygon",t}function uS(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return 1}}function hS(t){for(var e=1/0,n=1/0,i=-1/0,r=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),i=Math.max(a,i)),isNaN(s)||(n=Math.min(s,n),r=Math.max(s,r))}return[[e,n],[i,r]]}function cS(t,e){var t=hS(t),n=t[0],t=t[1],e=hS(e),i=e[0],e=e[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(t[0]-e[0]),Math.abs(t[1]-e[1]))}function pS(t){return H(t)?t:t?.5:0}function dS(t,e,n,i,r){var n=n.getBaseAxis(),o="x"===n.dim||"radius"===n.dim?0:1,a=[],s=0,l=[],u=[],h=[],c=[];if(r){for(s=0;s<t.length;s+=2){var p=e||t;isNaN(p[s])||isNaN(p[s+1])||c.push(t[s],t[s+1])}t=c}for(s=0;s<t.length-2;s+=2)switch(h[0]=t[s+2],h[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),i){case"end":l[o]=h[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var d=[];l[o]=d[o]=(u[o]+h[o])/2,l[1-o]=u[1-o],d[1-o]=h[1-o],a.push(l[0],l[1]),a.push(d[0],d[1]);break;default:l[o]=u[o],l[1-o]=h[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function fS(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o=i.length-1;0<=o;o--){var a,s=t.getDimensionInfo(i[o].dimension);if("x"===(a=s&&s.coordDim)||"y"===a){r=i[o];break}}if(r){var l=e.getAxis(a),e=B(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),u=e.length,h=r.outerColors.slice(),n=(u&&e[0].coord>e[u-1].coord&&(e.reverse(),h.reverse()),function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:Oi((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;s<o;s++){var l=t[s],u=l.coord;if(u<0)n=l;else{if(e<u){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(e,"x"===a?n.getWidth():n.getHeight())),c=n.length;if(!c&&u)return e[0].coord<0?h[1]||e[u-1].color:h[0]||e[0].color;var p=n[0].coord-10,u=n[c-1].coord+10,d=u-p;if(d<.001)return"transparent";nt(n,function(t){t.offset=(t.coord-p)/d}),n.push({offset:c?n[c-1].offset:.5,color:h[1]||"transparent"}),n.unshift({offset:c?n[0].offset:.5,color:h[0]||"transparent"});e=new $h(0,0,0,0,n,!0);return e[a]=p,e[a+"2"]=u,e}}}function gS(t,e,n){var t=t.get("showAllSymbol"),i="auto"===t;if(!t||i){var r,o,a=n.getAxesByScale("ordinal")[0];if(a)if(!i||!function(t,e){for(var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count(),r=(isNaN(i)&&(i=0),e.count()),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*Vw.getSymbolSize(e,a)[t.isHorizontal()?1:0]>i)return;return 1}(a,e))return r=e.mapDimension(a.dim),o={},nt(a.getViewLabels(),function(t){t=a.scale.getRawOrdinalNumber(t.tickValue);o[t]=1}),function(t){return!o.hasOwnProperty(e.get(r,t))}}}function yS(t){for(var e,n,i=t.length/2;0<i&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}function mS(t,e){return[t[2*e],t[2*e+1]]}function vS(t){if(t.get(["endLabel","show"]))return 1;for(var e=0;e<El.length;e++)if(t.get([El[e],"endLabel","show"]))return 1}function _S(n,i,e,t){var r,o,a,s,l,u,h,c,p;return sw(i,"cartesian2d")?(r=t.getModel("endLabel"),o=r.get("valueAnimation"),a=t.getData(),s={lastFrameIndex:0},l=vS(t)?function(t,e){n._endLabelOnDuring(t,e,a,s,o,r,i)}:null,u=i.getBaseAxis().isHorizontal(),h=ew(i,e,t,function(){var t=n._endLabel;t&&e&&null!=s.originalX&&t.attr({x:s.originalX,y:s.originalY})},l),t.get("clip",!0)||(c=h.shape,p=Math.max(c.width,c.height),u?(c.y-=p,c.height+=2*p):(c.x-=p,c.width+=2*p)),l&&l(1,h),h):nw(i,e,t)}u(wS,xS=um),wS.prototype.init=function(){var t=new lo,e=new Xw;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=S(this._changePolyState,this)},wS.prototype.render=function(t,e,n){var i,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),u=a.getLayout("points")||[],h="polar"===r.type,c=this._coordSys,p=this._symbolDraw,d=this._polyline,f=this._polygon,g=this._lineGroup,e=!e.ssr&&t.get("animation"),y=!l.isEmpty(),m=l.get("origin"),v=Zw(r,a,m),v=y&&function(t,e,n){if(!n.valueDim)return[];for(var i=e.count(),r=y1(2*i),o=0;o<i;o++){var a=qw(n,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(r,a,v),_=t.get("showSymbol"),x=t.get("connectNulls"),b=_&&!h&&gS(t,a,r),w=this._data,S=(w&&w.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),w.setItemGraphicEl(e,null))}),_||p.remove(),o.add(g),!h&&t.get("step")),M=(r&&r.getArea&&t.get("clip",!0)&&(null!=(i=r.getArea()).width?(i.x-=.1,i.y-=.1,i.width+=.2,i.height+=.2):i.r0&&(i.r0-=.5,i.r+=.5)),this._clipShapeForSymbol=i,fS(a,r,n)||a.getVisual("style")[a.getVisual("drawType")]),c=(d&&c.type===r.type&&S===this._step?(y&&!f?f=this._newPolygon(u,v):f&&!y&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,kd(M)),(c=g.getClipPath())?mc(c,{shape:_S(this,r,!1,t).shape},t):g.setClipPath(_S(this,r,!0,t)),_&&p.updateData(a,{isIgnore:b,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),uS(this._stackedOnPoints,v)&&uS(this._points,u)||(e?this._doUpdateAnimation(a,v,r,n,S,m,x):(S&&(v=v&&dS(v,u,r,S,x),u=dS(u,null,r,S,x)),d.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:v})))):(_&&p.updateData(a,{isIgnore:b,clipShape:i,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),e&&this._initSymbolLabelAnimation(a,r,i),S&&(v=v&&dS(v,u,r,S,x),u=dS(u,null,r,S,x)),d=this._newPolyline(u),y?f=this._newPolygon(u,v):f&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,kd(M)),g.setClipPath(_S(this,r,!0,t))),t.getModel("emphasis")),n=c.get("focus"),_=c.get("blurScope"),p=c.get("disabled"),b=(d.useStyle(E(s.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),wu(d,t,"lineStyle"),0<d.style.lineWidth&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(d.getState("emphasis").style.lineWidth=+d.style.lineWidth+1),U(d).seriesIndex=t.seriesIndex,_u(d,n,_,p),pS(t.get("smooth"))),e=t.get("smoothMonotone"),T=(d.setShape({smooth:b,smoothMonotone:e,connectNulls:x}),f&&(i=a.getCalculationInfo("stackedOnSeries"),y=0,f.useStyle(E(l.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),i&&(y=pS(i.get("smooth"))),f.setShape({smooth:b,stackedOnSmooth:y,smoothMonotone:e,connectNulls:x}),wu(f,t,"areaStyle"),U(f).seriesIndex=t.seriesIndex,_u(f,n,_,p)),this._changePolyState);a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=T)}),this._polyline.onHoverStateChange=T,this._data=a,this._coordSys=r,this._stackedOnPoints=v,this._points=u,this._step=S,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,d),f)&&this.packEventData(t,f)},wS.prototype.packEventData=function(t,e){U(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},wS.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=ra(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&0<=o){var a=r.getLayout("points");if(!(l=r.getItemGraphicEl(o))){var s=a[2*o],a=a[2*o+1];if(isNaN(s)||isNaN(a))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(s,a))return;var l,u=t.get("zlevel")||0,h=t.get("z")||0,s=((l=new Vw(r,o)).x=s,l.y=a,l.setZ(u,h),l.getSymbolPath().getTextContent());s&&(s.zlevel=u,s.z=h,s.z2=this._polyline.z2+1),l.__temp=!0,r.setItemGraphicEl(o,l),l.stopSymbolAnimation(!0),this.group.add(l)}l.highlight()}else um.prototype.highlight.call(this,t,e,n,i)},wS.prototype.downplay=function(t,e,n,i){var r,o=t.getData(),a=ra(o,i);this._changePolyState("normal"),null!=a&&0<=a?(r=o.getItemGraphicEl(a))&&(r.__temp?(o.setItemGraphicEl(a,null),this.group.remove(r)):r.downplay()):um.prototype.downplay.call(this,t,e,n,i)},wS.prototype._changePolyState=function(t){var e=this._polygon;eu(this._polyline,t),e&&eu(e,t)},wS.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new eS({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e},wS.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new sS({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n},wS.prototype._initSymbolLabelAnimation=function(t,l,u){var h,c,e=l.getBaseAxis(),p=e.inverse,e=("cartesian2d"===l.type?(h=e.isHorizontal(),c=!1):"polar"===l.type&&(h="angle"===e.dim,c=!0),t.hostModel),d=e.get("animationDuration"),f=(z(d)&&(d=d(null)),e.get("animationDelay")||0),g=z(f)?f(null):f;t.eachItemGraphicEl(function(t,e){var n,i,r,o,a,s=t;s&&(o=[t.x,t.y],a=i=n=void 0,u&&(a=c?(r=u,o=l.pointToCoord(o),h?(n=r.startAngle,i=r.endAngle,-o[1]/180*Math.PI):(n=r.r0,i=r.r,o[0])):h?(n=u.x,i=u.x+u.width,t.x):(n=u.y+u.height,i=u.y,t.y)),r=i===n?0:(a-n)/(i-n),p&&(r=1-r),o=z(f)?f(e):d*r+g,a=(t=s.getSymbolPath()).getTextContent(),s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:o}),a&&a.animateFrom({style:{opacity:0}},{duration:300,delay:o}),t.disableLabelAnimation=!0)})},wS.prototype._initOrUpdateEndLabel=function(t,e,n){var i,r,o,a=t.getModel("endLabel");vS(t)?(i=t.getData(),r=this._polyline,(o=i.getLayout("points"))?(this._endLabel||((this._endLabel=new vl({z2:200})).ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0),0<=(o=yS(o))&&(lp(r,up(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:o,defaultText:function(t,e,n){return null!=n?uw(i,n):lw(i,t)},enableTextSetter:!0},(n=a,o=(t=(t=e).getBaseAxis()).isHorizontal(),t=t.inverse,a=o?t?"right":"left":"center",o=o?"middle":t?"top":"bottom",{normal:{align:n.get("align")||a,verticalAlign:n.get("verticalAlign")||o}})),r.textConfig.position=null)):(r.removeTextContent(),this._endLabel=null)):this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},wS.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s,l,u,h,c,p,d,f,g,y,m=this._endLabel,v=this._polyline;m&&(t<1&&null==i.originalX&&(i.originalX=m.x,i.originalY=m.y),s=n.getLayout("points"),g=(l=n.hostModel).get("connectNulls"),u=o.get("precision"),o=o.get("distance")||0,c=(a=a.getBaseAxis()).isHorizontal(),a=a.inverse,e=e.shape,h=(c?o:0)*(a?-1:1),o=(c?0:-o)*(a?-1:1),d=void 0,1<=(f=(p=(c=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u<o;u++)if(r=t[2*u+a],!isNaN(r)&&!isNaN(t[2*u+1-a])){if(0!==u){if(i<=e&&e<=r||e<=i&&r<=e){l=u;break}s=u}i=r}return{range:[s,l],t:(e-i)/(r-i)}}(s,a=a?c?e.x:e.y+e.height:c?e.x+e.width:e.y,e=c?"x":"y")).range)[1]-p[0])?(1<f&&!g?(y=mS(s,p[0]),m.attr({x:y[0]+h,y:y[1]+o}),r&&(d=l.getRawValue(p[0]))):((y=v.getPointOn(a,e))&&m.attr({x:y[0]+h,y:y[1]+o}),f=l.getRawValue(p[0]),g=l.getRawValue(p[1]),r&&(d=pa(n,u,f,g,c.t))),i.lastFrameIndex=p[0]):(y=mS(s,v=1===t||0<i.lastFrameIndex?p[0]:0),r&&(d=l.getRawValue(v)),m.attr({x:y[0]+h,y:y[1]+o})),r)&&"function"==typeof(a=yp(m)).setLabelText&&a.setLabelText(d)},wS.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,e=function(t,e,n,i,r,o){a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute();for(var a,s=a,l=[],u=[],h=[],c=[],p=[],d=[],f=[],g=Zw(r,e,o),y=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var _=s[v],x=!0,b=void 0;switch(_.cmd){case"=":var w=2*_.idx,b=2*_.idx1,S=y[w],M=y[1+w],T=m[b],I=m[b+1];(isNaN(S)||isNaN(M))&&(S=T,M=I),l.push(S,M),u.push(T,I),h.push(n[w],n[1+w]),c.push(i[b],i[b+1]),f.push(e.getRawIndex(_.idx1));break;case"+":S=_.idx,M=g.dataDimsForPoint,T=r.dataToPoint([e.get(M[0],S),e.get(M[1],S)]),I=(b=2*S,l.push(T[0],T[1]),u.push(m[b],m[b+1]),qw(g,r,e,S));h.push(I[0],I[1]),c.push(i[b],i[b+1]),f.push(e.getRawIndex(S));break;case"-":x=!1}x&&(p.push(_),d.push(d.length))}d.sort(function(t,e){return f[t]-f[e]});for(var C=y1(o=l.length),k=y1(o),D=y1(o),L=y1(o),A=[],v=0;v<d.length;v++){var P=d[v],O=2*v,R=2*P;C[O]=l[R],C[1+O]=l[1+R],k[O]=u[R],k[1+O]=u[1+R],D[O]=h[R],D[1+O]=h[1+R],L[O]=c[R],L[1+O]=c[1+R],A[v]=p[P]}return{current:C,next:k,stackedOnCurrent:D,stackedOnNext:L,status:A}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),h=e.current,c=e.stackedOnCurrent,p=e.next,d=e.stackedOnNext;if(r&&(c=dS(e.stackedOnCurrent,e.current,n,r,a),h=dS(e.current,null,n,r,a),d=dS(e.stackedOnNext,e.next,n,r,a),p=dS(e.next,null,n,r,a)),3e3<cS(h,p)||l&&3e3<cS(c,d))s.stopAnimation(),s.setShape({points:p}),l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:d}));else{s.shape.__points=e.current,s.shape.points=h;for(var f,n={shape:{points:p}},g=(e.current!==h&&(n.shape.__points=e.next),s.stopAnimation(),yc(s,n,u),l&&(l.setShape({points:h,stackedOnPoints:c}),l.stopAnimation(),yc(l,{shape:{stackedOnPoints:d}},u),s.shape.points!==l.shape.points)&&(l.shape.points=s.shape.points),[]),y=e.status,m=0;m<y.length;m++)"="===y[m].cmd&&(f=t.getItemGraphicEl(y[m].idx1))&&g.push({el:f,ptIdx:m});s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<g.length;e++){var n=g[e].el,i=2*g[e].ptIdx;n.x=t[i],n.y=t[1+i],n.markRedraw()}})}},wS.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},wS.type="line";var xS,bS=wS;function wS(){return null!==xS&&xS.apply(this,arguments)||this}ox(function(t){var i;t.registerChartView(bS),t.registerSeriesModel(Nw),t.registerLayout((i=!0,{seriesType:"line",plan:am(),reset:function(t){var h,e,c,p,d,n=t.getData(),f=t.coordinateSystem,t=t.pipelineContext,g=i||t.large;if(f)return t=B(f.dimensions,function(t){return n.mapDimension(t)}).slice(0,2),h=t.length,e=n.getCalculationInfo("stackResultDimension"),H_(n,t[0])&&(t[0]=e),H_(n,t[1])&&(t[1]=e),c=n.getStore(),p=n.getDimensionIndex(t[0]),d=n.getDimensionIndex(t[1]),h&&{progress:function(t,e){for(var n=t.end-t.start,i=g&&y1(n*h),r=[],o=[],a=t.start,s=0;a<t.end;a++){var l,u=void 0;u=1===h?(l=c.get(p,a),f.dataToPoint(l,null,o)):(r[0]=c.get(p,a),r[1]=c.get(d,a),f.dataToPoint(r,null,o)),g?(i[s++]=u[0],i[s++]=u[1]):e.setItemLayout(a,u.slice())}g&&e.setLayout("points",i)}}}})),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),t=t.getModel("lineStyle").getLineStyle();t&&!t.stroke&&(t.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",t)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,jb("line"))});var SS=2*Math.PI,MS=Math.PI/180;function TS(t,e,C){e.eachSeriesByType(t,function(t){var r,a=t.getData(),e=a.mapDimension("value"),n=Wd(t,C),s=n.cx,l=n.cy,u=n.r,h=n.r0,n=n.viewRect,o=-t.get("startAngle")*MS,i=t.get("endAngle"),c=t.get("padAngle")*MS,i="auto"===i?o-SS:-i*MS,p=t.get("minAngle")*MS+c,d=0,f=(a.each(e,function(t){isNaN(t)||d++}),a.getSum(e)),g=Math.PI/(f||d)*2,y=t.get("clockwise"),m=t.get("roseType"),v=t.get("stillShowZeroSum"),_=a.getDataExtent(e),x=(_[0]=0,y?1:-1),b=[o,i],w=x*c/2,b=(Ls(b,!y),o=b[0],i=b[1],IS(t)),S=(b.startAngle=o,b.endAngle=i,b.clockwise=y,b.cx=s,b.cy=l,b.r=u,b.r0=h,Math.abs(i-o)),M=S,T=0,I=o;a.setLayout({viewRect:n,r:u}),a.each(e,function(t,e){var n,i,r,o;isNaN(t)?a.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:s,cy:l,r0:h,r:m?NaN:u}):((n="area"!==m?0===f&&v?g:t*g:S/d)<p?M-=n=p:T+=t,i=I+x*n,o=r=0,o=n<c?r=I+x*n/2:(r=I+w,i-w),a.setItemLayout(e,{angle:n,startAngle:r,endAngle:o,clockwise:y,cx:s,cy:l,r0:h,r:m?Mo(t,_,[h,u]):u}),I=i)}),M<SS&&d&&(M<=.001?(r=S/d,a.each(e,function(t,e){var n,i;isNaN(t)||(i=t=0,i=((n=a.getItemLayout(e)).angle=r)<c?t=o+x*(e+.5)*r:(t=o+x*e*r+w,o+x*(e+1)*r-w),n.startAngle=t,n.endAngle=i)})):(g=M/T,I=o,a.each(e,function(t,e){var n,i;isNaN(t)||(i=n=0,i=(t=(e=a.getItemLayout(e)).angle===p?p:t*g)<c?n=I+x*t/2:(n=I+w,I+x*t-w),e.startAngle=n,e.endAngle=i,I+=x*t)})))})}var IS=oa();var CS=Math.PI/180;function kS(t,s,l,u,h,e,n,i,r,o){if(!(t.length<2)){for(var a,c=t.length,p=0;p<c;p++)"outer"===t[p].position&&"labelLine"===t[p].labelAlignTo&&(a=t[p].label.x-o,t[p].linePoints[1][0]+=a,t[p].label.x=o);if(xb(t,1,r,r+n)){for(var d,f,g,y,m,v=t,_={list:[],maxY:0},x={list:[],maxY:0},b=0;b<v.length;b++)"none"===v[b].labelAlignTo&&(f=(d=v[b]).label.y>l?x:_,(g=Math.abs(d.label.y-l))>=f.maxY&&(m=d.label.x-s-d.len2*h,y=u+d.len,m=Math.abs(m)<y?Math.sqrt(g*g/(1-m*m/y/y)):y,f.rB=m,f.maxY=g),f.list.push(d));w(_),w(x)}}function w(t){for(var e=t.rB,n=e*e,i=0;i<t.list.length;i++){var r=t.list[i],o=Math.abs(r.label.y-l),a=u+r.len,o=Math.sqrt(Math.abs((1-o*o/n)*(a*a))),a=s+(o+r.len2)*h,o=a-r.label.x;DS(r,r.targetTextWidth-o*h,!0),r.label.x=a}}}function DS(t,e,n){var i,r,o,a,s,l;null==t.labelStyleWidth&&(s=(i=t.label).style,r=t.rect,l=s.backgroundColor,o=(o=s.padding)?o[1]+o[3]:0,s=s.overflow,e<(a=r.width+(l?0:o))||n)&&(s&&s.match("break")?(i.setStyle("backgroundColor",null),i.setStyle("width",e-o),s=i.getBoundingRect(),i.setStyle("width",Math.ceil(s.width)),i.setStyle("backgroundColor",l)):(s=e-o,l=!(e<a)&&(!n||s>t.unconstrainedWidth)?null:s,i.setStyle("width",l)),LS(r,i))}function LS(t,e){PS.rect=t,yb(PS,e,AS)}var AS={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},PS={};function OS(t){return"center"===t.position}function RS(t){var S,M,T=t.getData(),I=[],C=!1,N=(t.get("minShowLabelAngle")||0)*CS,e=T.getLayout("viewRect"),k=T.getLayout("r"),D=e.width,L=e.x,n=e.y,A=e.height;function P(t){t.ignore=!0}if(T.each(function(t){var e,n,i,r,o,a,s,l,u,h,c=T.getItemGraphicEl(t),p=c.shape,d=c.getTextContent(),f=c.getTextGuideLine(),t=T.getItemModel(t),g=t.getModel("label"),y=g.get("position")||t.get(["emphasis","label","position"]),m=g.get("distanceToLabelLine"),v=g.get("alignTo"),_=To(g.get("edgeDistance"),D),x=g.get("bleedMargin"),t=(null==x&&(x=200<Math.min(D,A)?10:2),t.getModel("labelLine")),b=t.get("length"),b=To(b,D),w=t.get("length2"),w=To(w,D);Math.abs(p.endAngle-p.startAngle)<N?(nt(d.states,P),d.ignore=!0,f&&(nt(f.states,P),f.ignore=!0)):function(t){if(!t.ignore)return 1;for(var e in t.states)if(!1===t.states[e].ignore)return 1}(d)&&(h=(p.startAngle+p.endAngle)/2,e=Math.cos(h),n=Math.sin(h),S=p.cx,M=p.cy,i="inside"===y||"inner"===y,s="center"===y?(r=p.cx,o=p.cy,"center"):(r=(s=(i?(p.r+p.r0)/2*e:p.r*e)+S)+3*e,o=(l=(i?(p.r+p.r0)/2*n:p.r*n)+M)+3*n,i||(a=s+e*(b+k-p.r),p=l+n*(b+k-p.r),u=a+(e<0?-1:1)*w,r="edge"===v?e<0?L+_:L+D-_:u+(e<0?-m:m),a=[[s,l],[a,o=p],[u,p]]),i?"center":"edge"===v?0<e?"right":"left":0<e?"left":"right"),l=Math.PI,u=0,H(p=g.get("rotate"))?u=p*(l/180):"center"===y?u=0:"radial"===p||!0===p?u=e<0?-h+l:-h:"tangential"===p&&"outside"!==y&&"outer"!==y&&((g=Math.atan2(e,n))<0&&(g=2*l+g),u=(g=0<n?l+g:g)-l),C=!!u,d.x=r,d.y=o,d.rotation=u,d.setStyle({verticalAlign:"middle"}),i?(d.setStyle({align:s}),(h=d.states.select)&&(h.x+=d.x,h.y+=d.y)):(LS(p=new X(0,0,0,0),d),I.push({label:d,labelLine:f,position:y,len:b,len2:w,minTurnAngle:t.get("minTurnAngle"),maxSurfaceAngle:t.get("maxSurfaceAngle"),surfaceNormal:new W(e,n),linePoints:a,textAlign:s,labelDistance:m,labelAlignTo:v,edgeDistance:_,bleedMargin:x,rect:p,unconstrainedWidth:p.width,labelStyleWidth:d.style.width})),c.setTextConfig({inside:i}))}),!C&&t.get("avoidLabelOverlap")){for(var i=I,r=S,e=M,t=k,o=D,a=A,s=L,l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,p=0;p<i.length;p++){var d=i[p].label;OS(i[p])||(d.x<r?(h=Math.min(h,d.x),l):(c=Math.max(c,d.x),u)).push(i[p])}for(var f,p=0;p<i.length;p++)!OS(g=i[p])&&g.linePoints&&null==g.labelStyleWidth&&(d=g.label,y=g.linePoints,f=void 0,f="edge"===g.labelAlignTo?d.x<r?y[2][0]-g.labelDistance-s-g.edgeDistance:s+o-g.edgeDistance-y[2][0]-g.labelDistance:"labelLine"===g.labelAlignTo?d.x<r?h-s-g.bleedMargin:s+o-c-g.bleedMargin:d.x<r?d.x-s-g.bleedMargin:s+o-d.x-g.bleedMargin,g.targetTextWidth=f,DS(g,f,!1));kS(u,r,e,t,1,0,a,0,n,c),kS(l,r,e,t,-1,0,a,0,n,h);for(var g,y,m,v,_,p=0;p<i.length;p++)!OS(g=i[p])&&g.linePoints&&(d=g.label,y=g.linePoints,m="edge"===g.labelAlignTo,v=(v=d.style.padding)?v[1]+v[3]:0,v=d.style.backgroundColor?0:v,v=g.rect.width+v,_=y[1][0]-y[2][0],m?d.x<r?y[2][0]=s+g.edgeDistance+v+g.labelDistance:y[2][0]=s+o-g.edgeDistance-v-g.labelDistance:(d.x<r?y[2][0]=d.x+g.labelDistance:y[2][0]=d.x-g.labelDistance,y[1][0]=y[2][0]+_),y[1][1]=y[2][1]=d.y)}for(var x=0;x<I.length;x++){var b,w=I[x],O=w.label,R=w.labelLine,z=isNaN(O.x)||isNaN(O.y);O&&(O.setStyle({align:w.textAlign}),z&&(nt(O.states,P),O.ignore=!0),b=O.states.select)&&(b.x+=O.x,b.y+=O.y),R&&(b=w.linePoints,z||!b?(nt(R.states,P),R.ignore=!0):(ob(b,w.minTurnAngle),function(t,e,n){if(n<=180&&0<n){n=n/180*Math.PI,$x.fromArray(t[0]),Qx.fromArray(t[1]),Jx.fromArray(t[2]),W.sub(tb,Qx,$x),W.sub(eb,Jx,Qx);var i=tb.len(),r=eb.len();if(!(i<.001||r<.001))if(tb.scale(1/i),eb.scale(1/r),tb.dot(e)<Math.cos(n)){i=Zx(Qx.x,Qx.y,Jx.x,Jx.y,$x.x,$x.y,ib,!1),r=(rb.fromArray(ib),Math.PI/2),e=r+Math.acos(eb.dot(e))-n;if(r<=e)W.copy(rb,Jx);else{rb.scaleAndAdd(eb,i/Math.tan(Math.PI/2-e));n=Jx.x!==Qx.x?(rb.x-Qx.x)/(Jx.x-Qx.x):(rb.y-Qx.y)/(Jx.y-Qx.y);if(isNaN(n))return;n<0?W.copy(rb,Qx):1<n&&W.copy(rb,Jx)}rb.toArray(t[1])}}}(b,w.surfaceNormal,w.maxSurfaceAngle),R.setShape({points:b}),O.__hostTarget.textGuideLineConfig={anchor:new W(b[0][0],b[0][1])}))}}u(ES,zS=gh),ES.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=P(pw(a.getModel("itemStyle"),l,!0),l);isNaN(u.startAngle)?r.setShape(u):(i?(r.setShape(u),i=o.getShallow("animationType"),o.ecModel.ssr?(mc(r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===i?(r.shape.r=l.r0,mc(r,{shape:{r:l.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),mc(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(r.shape.endAngle=l.startAngle,yc(r,{shape:{endAngle:l.endAngle}},o,e))):(wc(r),yc(r,{shape:u},o,e)),r.useStyle(t.getItemVisual(e,"style")),wu(r,a),i=(l.startAngle+l.endAngle)/2,n=o.get("selectedOffset"),u=Math.cos(i)*n,i=Math.sin(i)*n,(n=a.getShallow("cursor"))&&r.attr("cursor",n),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=P({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},pw(s.getModel("itemStyle"),l)),P(r.ensureState("select"),{x:u,y:i,shape:pw(a.getModel(["select","itemStyle"]),l)}),P(r.ensureState("blur"),{shape:pw(a.getModel(["blur","itemStyle"]),l)}),n=r.getTextGuideLine(),o=r.getTextContent(),n&&P(n.ensureState("select"),{x:u,y:i}),P(o.ensureState("select"),{x:u,y:i}),_u(this,s.get("focus"),s.get("blurScope"),s.get("disabled")))},ES.prototype._updateLabel=function(t,e,n){var i=e.getItemModel(n),r=i.getModel("labelLine"),o=e.getItemVisual(n,"style"),a=o&&o.fill,o=o&&o.opacity,t=(lp(this,up(i),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:a,defaultOpacity:o,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)}),this.getTextContent()),e=(this.setTextConfig({position:null,rotation:null}),t.attr({z2:10}),i.get(["label","position"]));"outside"!==e&&"outer"!==e?this.removeTextGuideLine():(this.getTextGuideLine()||(n=new kh,this.setTextGuideLine(n)),lb(this,ub(i),{stroke:a,opacity:wt(r.get(["lineStyle","opacity"]),o,1)}))};var zS,NS=ES;function ES(t,e,n){var i=zS.call(this)||this,r=(i.z2=2,new vl);return i.setTextContent(r),i.updateData(t,e,n,!0),i}u(FS,BS=um),FS.prototype.render=function(e,t,n,i){var r,o,a=e.getData(),s=this._data,l=this.group;if(!s&&0<a.count()){for(var u=a.getItemLayout(0),h=1;isNaN(u&&u.startAngle)&&h<a.count();++h)u=a.getItemLayout(h);u&&(r=u.startAngle)}this._emptyCircleSector&&l.remove(this._emptyCircleSector),0===a.count()&&e.get("showEmptyCircle")&&(o=IS(e),(o=new gh({shape:y(o)})).useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=o,l.add(o)),a.diff(s).add(function(t){var e=new NS(a,t,r);a.setItemGraphicEl(t,e),l.add(e)}).update(function(t,e){e=s.getItemGraphicEl(e);e.updateData(a,t,r),e.off("click"),l.add(e),a.setItemGraphicEl(t,e)}).remove(function(t){bc(s.getItemGraphicEl(t),e,t)}).execute(),RS(e),"expansion"!==e.get("animationTypeUpdate")&&(this._data=a)},FS.prototype.dispose=function(){},FS.prototype.containPoint=function(t,e){var n,e=e.getData().getItemLayout(0);if(e)return n=t[0]-e.cx,t=t[1]-e.cy,(n=Math.sqrt(n*n+t*t))<=e.r&&n>=e.r0},FS.type="pie";var BS,VS=FS;function FS(){var t=null!==BS&&BS.apply(this,arguments)||this;return t.ignoreLabelLineUpdate=!0,t}GS.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},GS.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},GS.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},GS.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var HS=GS;function GS(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}var WS,US=oa(),XS=(u(YS,WS=Ky),YS.prototype.init=function(t){WS.prototype.init.apply(this,arguments),this.legendVisualProvider=new HS(S(this.getData,this),S(this.getRawData,this)),this._defaultLabelLine(t)},YS.prototype.mergeOption=function(){WS.prototype.mergeOption.apply(this,arguments)},YS.prototype.getInitialData=function(){return e=V(e={coordDimensions:["value"],encodeDefaulter:pt(xf,t=this)})?{coordDimensions:e}:P({encodeDefine:t.getEncode()},e),i=t.getSource(),e=N_(i,e).dimensions,(e=new z_(e,t)).initData(i,n),e;var t,e,n,i},YS.prototype.getDataParams=function(t){var e,n=this.getData(),i=US(n),r=i.seats,i=(r||(e=[],n.each(n.mapDimension("value"),function(t){e.push(t)}),r=i.seats=Po(e,n.hostModel.get("percentPrecision"))),WS.prototype.getDataParams.call(this,t));return i.percent=r[t]||0,i.$vars.push("percent"),i},YS.prototype._defaultLabelLine=function(t){qo(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},YS.type="series.pie",YS.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",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%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},YS);function YS(){return null!==WS&&WS.apply(this,arguments)||this}Sp={fullType:XS.type,getCoord2:function(t){return t.getShallow("center")}},zd.set(Sp.fullType,{getCoord2:void 0}).getCoord2=Sp.getCoord2,ox(function(t){t.registerChartView(VS),t.registerSeriesModel(XS),$m("pie",t.registerAction),t.registerLayout(pt(TS,"pie")),t.registerProcessor({seriesType:"pie",reset:function(t,e){var i,r=e.findComponents({mainType:"legend"});r&&r.length&&(i=t.getData()).filterSelf(function(t){for(var e=i.getName(t),n=0;n<r.length;n++)if(!r[n].isSelected(e))return!1;return!0})}}),t.registerProcessor({seriesType:"pie",reset:function(t,e){var n=t.getData();n.filterSelf(function(t){var e=n.mapDimension("value"),e=n.get(e,t);return!(H(e)&&!isNaN(e)&&e<0)})}})});qS.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,r=this.canvas,h=r.getContext("2d"),c=t.length;r.width=e,r.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(r.width&&r.height){for(var e=h.getImageData(0,0,r.width,r.height),m=e.data,v=0,_=m.length,x=this.minOpacity,b=this.maxOpacity-x;v<_;){var w,y=m[v+3]/256,S=4*Math.floor(255*y);0<y?(w=o(y)?s:l,0<y&&(y=y*b+x),m[v++]=w[S],m[v++]=w[1+S],m[v++]=w[2+S],m[v++]=w[3+S]*y*256):v+=4}h.putImageData(e,0,0)}return r},qS.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Y.createCanvas()),e=this.pointSize+this.blurSize,n=2*e,i=(t.width=n,t.height=n,t.getContext("2d"));return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor=v.color.neutral99,i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},qS.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i};var ZS=qS;function qS(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Y.createCanvas();this.canvas=t}function jS(t){t=t.dimensions;return"lng"===t[0]&&"lat"===t[1]}u(QS,KS=um),QS.prototype.render=function(n,t,e){t.eachComponent("visualMap",function(e){e.eachTargetSeries(function(t){t===n&&(i=e)})}),this._progressiveEls=null,this.group.removeAll();var i,t=n.coordinateSystem;"cartesian2d"===t.type||"calendar"===t.type||"matrix"===t.type?this._renderOnGridLike(n,e,0,n.getData().count()):jS(t)&&this._renderOnGeo(t,n,i,e)},QS.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},QS.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(jS(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnGridLike(e,i,t.start,t.end,!0)))},QS.prototype.eachRendered=function(t){Qc(this._progressiveEls||this.group,t)},QS.prototype._renderOnGridLike=function(t,e,n,i,r){for(var o,a,s,l,u,h=t.coordinateSystem,c=sw(h,"cartesian2d"),p=sw(h,"matrix"),d=(c&&(x=h.getAxis("x"),o=h.getAxis("y"),a=x.getBandWidth()+.5,s=o.getBandWidth()+.5,l=x.scale.getExtent(),u=o.scale.getExtent()),this.group),f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),v=t.get(["itemStyle","borderRadius"]),_=up(t),x=t.getModel("emphasis"),b=x.get("focus"),w=x.get("blurScope"),S=x.get("disabled"),M=c||p?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],T=n;T<i;T++){var I=void 0,C=f.getItemVisual(T,"style");if(c){var k=f.get(M[0],T),D=f.get(M[1],T);if(isNaN(f.get(M[2],T))||isNaN(k)||isNaN(D)||k<l[0]||k>l[1]||D<u[0]||D>u[1])continue;var k=h.dataToPoint([k,D]),I=new pl({shape:{x:k[0]-a/2,y:k[1]-s/2,width:a,height:s},style:C})}else{if(p){if(xt((L=h.dataToLayout([f.get(M[0],T),f.get(M[1],T)]).rect).x))continue}else{if(isNaN(f.get(M[1],T)))continue;var L,D=h.dataToLayout([f.get(M[0],T)]);if(xt((L=D.contentRect||D.rect).x)||xt(L.y))continue}I=new pl({z2:1,shape:L,style:C})}f.hasItemOption&&(g=(A=(k=f.getItemModel(T)).getModel("emphasis")).getModel("itemStyle").getItemStyle(),y=k.getModel(["blur","itemStyle"]).getItemStyle(),m=k.getModel(["select","itemStyle"]).getItemStyle(),v=k.get(["itemStyle","borderRadius"]),b=A.get("focus"),w=A.get("blurScope"),S=A.get("disabled"),_=up(k)),I.shape.r=v;var A=t.getRawValue(T),P="-";A&&null!=A[2]&&(P=A[2]+""),lp(I,_,{labelFetcher:t,labelDataIndex:T,defaultOpacity:C.opacity,defaultText:P}),I.ensureState("emphasis").style=g,I.ensureState("blur").style=y,I.ensureState("select").style=m,_u(I,b,w,S),(I.incremental=r)&&(I.states.emphasis.hoverLayer=!0),d.add(I),f.setItemGraphicEl(T,I),this._progressiveEls&&this._progressiveEls.push(I)}},QS.prototype._renderOnGeo=function(i,t,e,n){var r,o,a,s,l,u,h,c=e.targetVisuals.inRange,p=e.targetVisuals.outOfRange,d=t.getData(),f=this._hmLayer||this._hmLayer||new ZS,t=(f.blurSize=t.get("blurSize"),f.pointSize=t.get("pointSize"),f.minOpacity=t.get("minOpacity"),f.maxOpacity=t.get("maxOpacity"),i.getViewRect().clone()),g=i.getRoamTransform(),y=(t.applyTransform(g),Math.max(t.x,0)),m=Math.max(t.y,0),g=Math.min(t.width+t.x,n.getWidth()),t=Math.min(t.height+t.y,n.getHeight()),n=g-y,g=t-m,t=[d.mapDimension("lng"),d.mapDimension("lat"),d.mapDimension("value")],d=d.mapArray(t,function(t,e,n){t=i.dataToPoint([t,e]);return t[0]-=y,t[1]-=m,t.push(n),t}),t=e.getExtent(),v="visualMap.continuous"===e.type?(h=e.option.range,v=t[1]-t[0],h=[(h[0]-t[0])/v,(h[1]-t[0])/v],function(t){return t>=h[0]&&t<=h[1]}):(r=t,o=e.getPieceList(),a=e.option.selected,s=r[1]-r[0],l=(o=B(o,function(t){return{interval:[(t.interval[0]-r[0])/s,(t.interval[1]-r[0])/s]}})).length,u=0,function(t){for(var e,n=u;n<l;n++)if((e=o[n].interval)[0]<=t&&t<=e[1]){u=n;break}if(n===l)for(n=u-1;0<=n;n--)if((e=o[n].interval)[0]<=t&&t<=e[1]){u=n;break}return 0<=n&&n<l&&a[n]}),t=(f.update(d,n,g,c.color.getNormalizer(),{inRange:c.color.getColorMapper(),outOfRange:p.color.getColorMapper()},v),new il({style:{width:n,height:g,x:y,y:m,image:f.canvas},silent:!0}));this.group.add(t)},QS.type="heatmap";var KS,$S=QS;function QS(){var t=null!==KS&&KS.apply(this,arguments)||this;return t.type=QS.type,t}u(eM,JS=Ky),eM.prototype.getInitialData=function(t,e){return W_(null,this,{generateCoord:"value"})},eM.prototype.preventIncremental=function(){var t=Pd.get(this.get("coordinateSystem"));if(t&&t.dimensions)return"lng"===t.dimensions[0]&&"lat"===t.dimensions[1]},eM.type="series.heatmap",eM.dependencies=["grid","geo","calendar","matrix"],eM.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:v.color.primary}}};var JS,tM=eM;function eM(){var t=null!==JS&&JS.apply(this,arguments)||this;return t.type=eM.type,t}ox(function(t){t.registerChartView($S),t.registerSeriesModel(tM)});var nM=oa();function iM(t,e){return nM(t)[e]}$v({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Vt);var rM={axisPointer:1,tooltip:1,brush:1};u(sM,oM=he),sM.prototype.isDragging=function(){return this._dragging},sM.prototype.isPinching=function(){return this._pinching},sM.prototype._checkPointer=function(t,e,n){var i=this._opt,r=i.zInfoParsed;return!(function(t,e,n){if((e=e.getComponentByElement(t.topTarget))&&e!==n&&!rM.hasOwnProperty(e.mainType)){var t=e.coordinateSystem;if(t&&t.model!==n)return t=np(e),e=np(n),(t.zlevel-e.zlevel||t.z-e.z)<=0?void 0:1}}(t,i.api,r.component)||(i=(i="global"===(r=i.triggerInfo).roamTrigger)||r.isInSelf(t,e,n))&&r.isInClip&&!r.isInClip(t,e,n))&&i},sM.prototype._decideCursorStyle=function(t,e,n,i){var r=t.target;return!r&&this._checkPointer(t,e,n)?"grab":i?r&&r.cursor||"default":void 0},sM.prototype.dispose=function(){this.disable()},sM.prototype._mousedownHandler=function(t){if(!Le(t)&&!lM(t)){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var n=t.offsetX,i=t.offsetY;this._checkPointer(t,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},sM.prototype._mousemoveHandler=function(t){var e,n,i,r,o,a,s=this._zr;"pinch"===t.gestureEvent||iM(s,"globalPan")||lM(t)||(e=t.offsetX,n=t.offsetY,this._dragging&&fM("moveOnMouseMove",t,this._opt)?(s.setCursorStyle("grabbing"),o=e-(i=this._x),a=n-(r=this._y),this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&De(t.event),t.__ecRoamConsumed=!0,dM(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})):(o=this._decideCursorStyle(t,e,n,!1))&&s.setCursorStyle(o))},sM.prototype._mouseupHandler=function(t){var e;lM(t)||(e=this._zr,!Le(t)&&(this._dragging=!1,t=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0))&&e.setCursorStyle(t))},sM.prototype._mousewheelHandler=function(t){var e,n,i,r,o,a;lM(t)||(o=fM("zoomOnMouseWheel",t,this._opt),e=fM("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,a=Math.abs(n),i=t.offsetX,r=t.offsetY,0!==n&&(o||e)&&(o&&(o=3<a?1.4:1<a?1.2:1.1,this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:0<n?o:1/o,originX:i,originY:r,isAvailableBehavior:null})),e)&&(a=Math.abs(n),this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(0<n?1:-1)*(3<a?.4:1<a?.15:.05),originX:i,originY:r,isAvailableBehavior:null})))},sM.prototype._pinchHandler=function(t){var e;iM(this._zr,"globalPan")||lM(t)||(e=1<t.pinchScale?1.1:1/1.1,this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null}))},sM.prototype._checkTriggerMoveZoom=function(t,e,n,i,r){t._checkPointer(i,r.originX,r.originY)&&(De(i.event),i.__ecRoamConsumed=!0,dM(t,e,n,i,r))};var oM,aM=sM;function sM(o){var t=oM.call(this)||this,a=(t._zr=o,S(t._mousedownHandler,t)),s=S(t._mousemoveHandler,t),l=S(t._mouseupHandler,t),u=S(t._mousewheelHandler,t),h=S(t._pinchHandler,t);return t.enable=function(t,e){var n=e.zInfo,i=np(n.component),r=i.z,i=i.zlevel,r={component:n.component,z:r,zlevel:i,z2:G(n.z2,-1/0)},i=P({},e.triggerInfo);this._opt=E(P({},e),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:r,triggerInfo:i}),null==t&&(t=!0),this._enabled&&this._controlType===t||(this._enabled=!0,this.disable(),!0!==t&&"move"!==t&&"pan"!==t||(cM(o,"mousedown",a,r),cM(o,"mousemove",s,r),cM(o,"mouseup",l,r)),!0!==t&&"scale"!==t&&"zoom"!==t)||(cM(o,"mousewheel",u,r),cM(o,"pinch",h,r))},t.disable=function(){this._enabled=!1,pM(o,"mousedown",a),pM(o,"mousemove",s),pM(o,"mouseup",l),pM(o,"mousewheel",u),pM(o,"pinch",h)},t}function lM(t){return t.__ecRoamConsumed}var uM=oa();function hM(t){t=uM(t);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function cM(t,e,n,i){for(var r,o,a=hM(t).roam,s=a[e]=a[e]||[],l=0;l<s.length;l++){var u=s[l].zInfoParsed;if((u.zlevel-i.zlevel||u.z-i.z||u.z2-i.z2)<=0)break}s.splice(l,0,{listener:n,zInfoParsed:i}),r=e,(o=hM(a=t)).uniform[r]||a.on(r,o.uniform[r]=function(t){var e=o.roam[r];if(e)for(var n=0;n<e.length;n++)e[n].listener(t)})}function pM(t,e,n){for(var i,r,o,a=hM(t).roam[e]||[],s=0;s<a.length;s++)if(a[s].listener===n)return a.splice(s,1),void(a.length||(r=e,o=void 0,(o=hM(i=t).uniform)[r]&&(i.off(r,o[r]),o[r]=null)))}function dM(t,e,n,i,r){r.isAvailableBehavior=S(fM,null,n,i),t.trigger(e,r)}function fM(t,e,n){n=n[t];return!t||n&&(!F(n)||e.event[n+"Key"])}function gM(l,u,i,t,h,r){var o=new X(0,0,0,0),e=(t.enable(l.get("roam"),{api:u,zInfo:{component:l},triggerInfo:{roamTrigger:l.get("roamTrigger"),isInSelf:function(t,e,n){return o.copy(i.getBoundingRect()),o.applyTransform(i.getComputedTransform()),o.contain(e,n)},isInClip:function(t,e,n){return!r||r.contain(e,n)}}}),h.zoomLimit=l.get("scaleLimit"),l.coordinateSystem),c=(h.zoom=e?e.getZoom():1,l.subType+"Roam");t.off("pan").off("zoom").on("pan",function(t){var e,n,i;e=h,n=t.dx,i=t.dy,(e=e.target).x+=n,e.y+=i,e.dirty(),u.dispatchAction({seriesId:l.id,type:c,dx:t.dx,dy:t.dy})}).on("zoom",function(t){var e,n,i,r,o,a,s;e=h,n=t.scale,i=t.originX,r=t.originY,o=e.target,a=e.zoomLimit,s=e.zoom=e.zoom||1,n=(s=vM(s*=n,a))/e.zoom,e.zoom=s,mM(o,i,r,n),o.dirty(),u.dispatchAction({seriesId:l.id,type:c,zoom:t.scale,originX:t.originX,originY:t.originY}),u.updateLabelLayout()})}function yM(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function mM(t,e,n,i){t.x-=(e-t.x)*(i-1),t.y-=(n-t.y)*(i-1),t.scaleX*=i,t.scaleY*=i}function vM(t,e){var n;return e&&(n=e.min||0,e=e.max||1/0,t=Math.max(Math.min(e,t),n)),t}var _M,xM=ie,bM=(u(wM,_M=Or),wM.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new X(t,e,n,i),this._updateCenterAndZoom(),this._rect},wM.prototype.getBoundingRect=function(){return this._rect},wM.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new X(t,e,n,i)},wM.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable,r=(o.transform=r.calculateTransform(new X(t,e,n,i)),o.parent);o.parent=null,o.decomposeTransform(),o.parent=r,this._updateTransform()},wM.prototype.setCenter=function(t){var e=this._opt;e&&e.api&&e.ecModel&&e.ecModel.getShallow("legacyViewCoordSysCenterBase")&&(t=t&&[To(t[0],e.api.getWidth()),To(t[1],e.api.getWidth())]),this._centerOption=y(t),this._updateCenterAndZoom()},wM.prototype.setZoom=function(t){this._zoom=vM(t||1,this.zoomLimit),this._updateCenterAndZoom()},wM.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},wM.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},wM.prototype.getZoom=function(){return this._zoom||1},wM.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},wM.prototype._updateCenterAndZoom=function(){var t=this._centerOption,e=this._rect,t=(t&&e&&(this._center=[To(t[0],e.width,e.x),To(t[1],e.height,e.y)]),this._rawTransformable.getLocalTransform()),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom(),i=ie([],i,t),n=ie([],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=r,this._updateTransform()},wM.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;(e.parent=t).updateTransform(),e.updateTransform(),Ee(this.transform||(this.transform=[]),e.transform||ze()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Ge(this.invTransform,this.transform),this.decomposeTransform()},wM.prototype.getTransformInfo=function(){var t=this._rawTransformable,e=this._roamTransformable,n=new Or;return n.transform=e.transform,n.decomposeTransform(),{roam:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY},raw:{x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY}}},wM.prototype.getViewRect=function(){return this._viewRect},wM.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},wM.prototype.dataToPoint=function(t,e,n){e=e?this._rawTransform:this.transform;return n=n||[],e?xM(n,t,e):Ut(n,t)},wM.prototype.pointToData=function(t,e,n){n=n||[];var i=this.invTransform;return i?xM(n,t,i):(n[0]=t[0],n[1]=t[1],n)},wM.prototype.convertToPixel=function(t,e,n){e=SM(e);return e===this?e.dataToPoint(n):null},wM.prototype.convertFromPixel=function(t,e,n){e=SM(e);return e===this?e.pointToData(n):null},wM.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},wM.dimensions=["x","y"],wM);function wM(t,e){var n=_M.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Or,n._rawTransformable=new Or,n.name=t,n._opt=e,n}function SM(t){t=t.seriesModel;return t?t.coordinateSystem:null}var MM,TM=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},IM=(u(CM,MM=js),CM.prototype.getDefaultShape=function(){return new TM},CM.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()},CM.prototype.highlight=function(){su(this)},CM.prototype.downplay=function(){lu(this)},CM);function CM(t){return MM.call(this,t)||this}u(LM,kM=um),LM.prototype.init=function(t,e){this._controller=new aM(e.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},LM.prototype.render=function(b,t,i){var e,n,r=this,o=b.getGraph(),w=this._mainGroup,a=b.layoutInfo,S=a.width,M=a.height,s=b.getData(),T=b.getData("edge"),I=b.get("orient");this._model=b,w.removeAll(),w.x=a.x,w.y=a.y,this._updateViewCoordSys(b,i),gM(b,i,w,this._controller,this._controllerHost,null),o.eachEdge(function(e){var t,n,i,r,o,a,s,l=new IM,u=U(l),u=(u.dataIndex=e.dataIndex,u.seriesIndex=b.seriesIndex,u.dataType="edge",e.getModel()),h=u.getModel("lineStyle"),c=h.get("curveness"),p=e.node1.getLayout(),d=e.node1.getModel(),f=d.get("localX"),d=d.get("localY"),g=e.node2.getLayout(),y=e.node2.getModel(),m=y.get("localX"),y=y.get("localY"),v=e.getLayout(),_=(l.shape.extent=Math.max(1,v.dy),f="vertical"===(l.shape.orient=I)?(t=(null!=f?f*S:p.x)+v.sy,n=(null!=d?d*M:p.y)+p.dy,i=(null!=m?m*S:g.x)+v.ty,o=t,a=n*(1-c)+(r=null!=y?y*M:g.y)*c,s=i,n*c+r*(1-c)):(t=(null!=f?f*S:p.x)+p.dx,n=(null!=d?d*M:p.y)+v.sy,o=t*(1-c)+(i=null!=m?m*S:g.x)*c,a=n,s=t*c+i*(1-c),r=(null!=y?y*M:g.y)+v.ty),l.setShape({x1:t,y1:n,x2:i,y2:r,cpx1:o,cpy1:a,cpx2:s,cpy2:f}),l.useStyle(h.getItemStyle()),AM(l.style,I,e),""+u.get("value")),x=up(u,"edgeLabel"),d=(lp(l,x,{labelFetcher:{getFormattedLabel:function(t,e,n,i,r,o){return b.getFormattedLabel(t,e,"edge",i,wt(r,x.normal&&x.normal.get("formatter"),_),o)}},labelDataIndex:e.dataIndex,defaultText:_}),l.setTextConfig({position:"inside"}),u.getModel("emphasis")),p=(wu(l,u,"lineStyle",function(t){t=t.getItemStyle();return AM(t,I,e),t}),w.add(l),T.setItemGraphicEl(e.dataIndex,l),d.get("focus"));_u(l,"adjacency"===p?e.getAdjacentDataIndices():"trajectory"===p?e.getTrajectoryDataIndices():p,d.get("blurScope"),d.get("disabled"))}),o.eachNode(function(t){var e=t.getLayout(),n=t.getModel(),i=n.get("localX"),r=n.get("localY"),o=n.getModel("emphasis"),a=n.get(["itemStyle","borderRadius"])||0,i=new pl({shape:{x:null!=i?i*S:e.x,y:null!=r?r*M:e.y,width:e.dx,height:e.dy,r:a},style:n.getModel("itemStyle").getItemStyle(),z2:10}),r=(lp(i,up(n),{labelFetcher:{getFormattedLabel:function(t,e){return b.getFormattedLabel(t,e,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),i.disableLabelAnimation=!0,i.setStyle("fill",t.getVisual("color")),i.setStyle("decal",t.getVisual("style").decal),wu(i,n),w.add(i),s.setItemGraphicEl(t.dataIndex,i),U(i).dataType="node",o.get("focus"));_u(i,"adjacency"===r?t.getAdjacentDataIndices():"trajectory"===r?t.getTrajectoryDataIndices():r,o.get("blurScope"),o.get("disabled"))}),s.eachItemGraphicEl(function(t,n){s.getItemModel(n).get("draggable")&&(t.drift=function(t,e){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=e,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:b.id,dataIndex:s.getRawIndex(n),localX:this.shape.x/S,localY:this.shape.y/M})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")}),!this._data&&b.isAnimationEnabled()&&w.setClipPath((a=w.getBoundingRect(),o=b,e=function(){w.removeClipPath()},mc(n=new pl({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}}),{shape:{width:a.width+20}},o,e),n)),this._data=b.getData()},LM.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},LM.prototype._updateViewCoordSys=function(t,e){var n=t.layoutInfo,i=n.width,n=n.height,e=t.coordinateSystem=new bM(null,{api:e,ecModel:t.ecModel});e.zoomLimit=t.get("scaleLimit"),e.setBoundingRect(0,0,i,n),e.setCenter(t.get("center")),e.setZoom(t.get("zoom")),this._controllerHost.target.attr({x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY})},LM.type="sankey";var kM,DM=LM;function LM(){var t=null!==kM&&kM.apply(this,arguments)||this;return t.type=LM.type,t._mainGroup=new lo,t._focusAdjacencyDisabled=!1,t}function AM(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var i=n.node1.getVisual("color"),r=n.node2.getVisual("color");F(i)&&F(r)&&(t.fill=new $h(0,0,+("horizontal"===e),+("vertical"===e),[{color:i,offset:0},{color:r,offset:1}]))}}function PM(t){return"_EC_"+t}RM.prototype.isDirected=function(){return this._directed},RM.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[PM(t)])return((e=new zM(t,e)).hostGraph=this).nodes.push(e),n[PM(t)]=e},RM.prototype.getNodeByIndex=function(t){t=this.data.getRawIndex(t);return this.nodes[t]},RM.prototype.getNodeById=function(t){return this._nodesMap[PM(t)]},RM.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(H(t)&&(t=this.nodes[t]),H(e)&&(e=this.nodes[e]),t instanceof zM||(t=i[PM(t)]),e instanceof zM||(e=i[PM(e)]),t&&e)return i=t.id+"-"+e.id,((n=new EM(t,e,n)).hostGraph=this)._directed&&(t.outEdges.push(n),e.inEdges.push(n)),t.edges.push(n),t!==e&&e.edges.push(n),this.edges.push(n),r[i]=n},RM.prototype.getEdgeByIndex=function(t){t=this.edgeData.getRawIndex(t);return this.edges[t]},RM.prototype.getEdge=function(t,e){t instanceof zM&&(t=t.id),e instanceof zM&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},RM.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r<i;r++)0<=n[r].dataIndex&&t.call(e,n[r],r)},RM.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r<i;r++)0<=n[r].dataIndex&&0<=n[r].node1.dataIndex&&0<=n[r].node2.dataIndex&&t.call(e,n[r],r)},RM.prototype.breadthFirstTraverse=function(t,e,n,i){if(e=e instanceof zM?e:this._nodesMap[PM(e)]){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,e,null))for(var a=[e];a.length;)for(var s=a.shift(),l=s[r],o=0;o<l.length;o++){var u=l[o],u=u.node1===s?u.node2:u.node1;if(!u.__visited){if(t.call(i,u,s))return;a.push(u),u.__visited=!0}}}},RM.prototype.update=function(){for(var t=this.data,e=this.edgeData,n=this.nodes,i=this.edges,r=0,o=n.length;r<o;r++)n[r].dataIndex=-1;for(r=0,o=t.count();r<o;r++)n[t.getRawIndex(r)].dataIndex=r;e.filterSelf(function(t){t=i[e.getRawIndex(t)];return 0<=t.node1.dataIndex&&0<=t.node2.dataIndex});for(r=0,o=i.length;r<o;r++)i[r].dataIndex=-1;for(r=0,o=e.count();r<o;r++)i[e.getRawIndex(r)].dataIndex=r},RM.prototype.clone=function(){for(var t=new RM(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 r=n[i];t.addEdge(r.node1.id,r.node2.id,r.dataIndex)}return t};var OM=RM;function RM(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}NM.prototype.degree=function(){return this.edges.length},NM.prototype.inDegree=function(){return this.inEdges.length},NM.prototype.outDegree=function(){return this.outEdges.length},NM.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},NM.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},NM.prototype.getTrajectoryDataIndices=function(){for(var t=it(),e=it(),n=0,i=this.edges.length;n<i;n++){var r=this.edges[n];if(!(r.dataIndex<0)){t.set(r.dataIndex,!0);for(var o=[r.node1],a=[r.node2],s=0;s<o.length;)for(var l,u,h=o[s],c=(s++,e.set(h.dataIndex,!0),h.inEdges),p=0,d=c.length;p<d;p++)0<=(u=(l=c[p]).dataIndex)&&!t.hasKey(u)&&(t.set(u,!0),o.push(l.node1));for(s=0;s<a.length;)for(var f,g,y=a[s],m=(s++,e.set(y.dataIndex,!0),y.outEdges),p=0,v=m.length;p<v;p++)0<=(g=(f=m[p]).dataIndex)&&!t.hasKey(g)&&(t.set(g,!0),a.push(f.node2))}}return{edge:t.keys(),node:e.keys()}};var zM=NM;function NM(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}BM.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},BM.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},BM.prototype.getTrajectoryDataIndices=function(){for(var t=it(),e=it(),n=(t.set(this.dataIndex,!0),[this.node1]),i=[this.node2],r=0;r<n.length;){var o=n[r];r++,e.set(o.dataIndex,!0);for(var a,s,l=0,u=o.inEdges.length;l<u;l++)0<=(s=(a=o.inEdges[l]).dataIndex)&&!t.hasKey(s)&&(t.set(s,!0),n.push(a.node1))}for(r=0;r<i.length;){var h=i[r];r++,e.set(h.dataIndex,!0);for(var c,p,l=0,u=h.outEdges.length;l<u;l++)0<=(p=(c=h.outEdges[l]).dataIndex)&&!t.hasKey(p)&&(t.set(p,!0),i.push(c.node2))}return{edge:t.keys(),node:e.keys()}};var EM=BM;function BM(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}function VM(n,i){return{getValue:function(t){var e=this[n][i];return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,e){0<=this.dataIndex&&this[n][i].setItemVisual(this.dataIndex,t,e)},getVisual:function(t){return this[n][i].getItemVisual(this.dataIndex,t)},setLayout:function(t,e){0<=this.dataIndex&&this[n][i].setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this[n][i].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][i].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][i].getRawIndex(this.dataIndex)}}}at(zM,VM("hostGraph","data")),at(EM,VM("hostGraph","edgeData"));var FM=oa();function HM(t,e){var n;return FM(n=this).mainData===n?YM((n=P({},FM(this).datas))[this.dataType]=e,n,t):ZM(e,this.dataType,FM(this).mainData,t),e}function GM(t,e){return t.struct&&t.struct.update(),e}function WM(n,i){return nt(FM(i).datas,function(t,e){t!==i&&ZM(t.cloneShallow(),e,i,n)}),i}function UM(t){var e=FM(this).mainData;return null==t||null==e?e:FM(e).datas[t]}function XM(){var e=FM(this).mainData;return null==e?[{data:e}]:B(ct(FM(e).datas),function(t){return{type:t,data:FM(e).datas[t]}})}function YM(n,t,i){FM(n).datas={},nt(t,function(t,e){ZM(t,e,n,i)})}function ZM(t,e,n,i){FM(n).datas[e]=t,FM(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=UM,t.getLinkedDataAll=XM}function qM(t,e,n,i,r){for(var o=new OM(i),a=0;a<t.length;a++)o.addNode(bt(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;o.addEdge(c,p,u)&&(l.push(h),s.push(bt(ta(h.id,null),c+" > "+p)),u++)}var d,f,g,i=n.get("coordinateSystem"),i=("cartesian2d"===i||"polar"===i||"matrix"===i?d=W_(t,n):(k(i=(i=Pd.get(i))&&i.dimensions||[],"value")<0&&i.concat(["value"]),i=N_(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(d=new z_(i,n)).initData(t)),new z_(["value"],n));return i.initData(l,s),r&&r(d,i),g=(f={mainData:d,struct:o,structAttr:"graph",datas:{node:d,edge:i},datasAttr:{node:"data",edge:"edgeData"}}).mainData,(n=f.datas)||(n={main:g},f.datasAttr={main:"data"}),f.datas=f.mainData=null,YM(g,n,f),nt(n,function(e){nt(g.TRANSFERABLE_METHODS,function(t){e.wrapMethod(t,pt(HM,f))})}),g.wrapMethod("cloneShallow",pt(WM,f)),nt(g.CHANGABLE_METHODS,function(t){g.wrapMethod(t,pt(GM,f))}),Tt(n[g.dataType]===g),o.update(),o}u($M,jM=Ky),$M.prototype.getInitialData=function(t,e){for(var n=t.edges||t.links||[],i=t.data||t.nodes||[],r=t.levels||[],o=(this.levelModels=[],this.levelModels),a=0;a<r.length;a++)null!=r[a].depth&&0<=r[a].depth&&(o[r[a].depth]=new Pp(r[a],this,e));return qM(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,e=n.getData().getItemLayout(e);return e&&(e=e.depth,n=n.levelModels[e])&&(t.parentModel=n),t}),e.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,e=n.getGraph().getEdgeByIndex(e).node1.getLayout();return e&&(e=e.depth,n=n.levelModels[e])&&(t.parentModel=n),t})}).data},$M.prototype.setNodePosition=function(t,e){t=(this.option.data||this.option.nodes)[t];t.localX=e[0],t.localY=e[1]},$M.prototype.setCenter=function(t){this.option.center=t},$M.prototype.setZoom=function(t){this.option.zoom=t},$M.prototype.getGraph=function(){return this.getData().graph},$M.prototype.getEdgeData=function(){return this.getGraph().edgeData},$M.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}var r,o;return"edge"===n?(r=(o=this.getDataParams(t,n)).data,o=o.value,zy("nameValue",{name:r.source+" -- "+r.target,value:o,noValue:i(o)})):(r=this.getGraph().getNodeByIndex(t).getLayout().value,zy("nameValue",{name:null!=(o=this.getDataParams(t,n).data.name)?o+"":null,value:r,noValue:i(r)}))},$M.prototype.optionUpdated=function(){},$M.prototype.getDataParams=function(t,e){var n=jM.prototype.getDataParams.call(this,t,e);return null==n.value&&"node"===e&&(e=this.getGraph().getNodeByIndex(t).getLayout().value,n.value=e),n},$M.type="series.sankey",$M.layoutMode="box",$M.defaultOption={z:2,coordinateSystemUsage:"box",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,roam:!1,roamTrigger:"global",center:null,zoom:1,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:v.color.neutral50,opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:v.color.primary}},animationEasing:"linear",animationDuration:1e3};var jM,KM=$M;function $M(){var t=null!==jM&&jM.apply(this,arguments)||this;return t.type=$M.type,t}function QM(t,et){t.eachSeriesByType("sankey",function(t){var e=t.get("nodeWidth"),n=t.get("nodeGap"),i=Yd(t,et).refContainer,i=Ud(t.getBoxLayoutParams(),i),r=(t.layoutInfo=i).width,i=i.height,o=t.getGraph(),a=o.nodes,o=o.edges;nt(a,function(t){var e=sT(t.outEdges,aT),n=sT(t.inEdges,aT),i=t.getValue()||0,e=Math.max(e,n,i);t.setLayout({value:e},!0)});for(var s=0!==ut(a,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"),l=t.get("orient"),t=t.get("nodeAlign"),u=(n=n,s=s,a),N=o,h=e,r=e=r,E=i,c=l,p=[],d=[],f=[],g=[],y=0,m=0;m<N.length;m++)p[m]=1;for(m=0;m<u.length;m++)d[m]=u[m].inEdges.length,0===d[m]&&f.push(u[m]);for(var v=-1;f.length;){for(var _=0;_<f.length;_++){var x=f[_],b=x.hostGraph.data.getRawDataItem(x.dataIndex),B=null!=b.depth&&0<=b.depth;B&&b.depth>v&&(v=b.depth),x.setLayout({depth:B?b.depth:y},!0),"vertical"===c?x.setLayout({dy:h},!0):x.setLayout({dx:h},!0);for(var w=0;w<x.outEdges.length;w++){var S=x.outEdges[w],M=N.indexOf(S),M=(p[M]=0,S.node2),S=u.indexOf(M);0==--d[S]&&g.indexOf(M)<0&&g.push(M)}}++y,f=g,g=[]}for(m=0;m<p.length;m++)if(1===p[m])throw new Error("Sankey is a DAG, the original data has cycle!");var T=y-1<v?v:y-1;if(t&&"left"!==t){var I=u,V=T;if("right"===t){for(var C=[],k=I,F=0;k.length;){for(var H=0;H<k.length;H++){var G=k[H];G.setLayout({skNodeHeight:F},!0);for(var W=0;W<G.inEdges.length;W++){var U=G.inEdges[W];C.indexOf(U.node1)<0&&C.push(U.node1)}}k=C,C=[],++F}nt(I,function(t){JM(t)||t.setLayout({depth:Math.max(0,V-t.getLayout().skNodeHeight)},!0)})}else if("justify"===t){var X=I;var Y=V;nt(X,function(t){JM(t)||t.outEdges.length||t.setLayout({depth:Y},!0)})}}var Z="vertical"===c?(E-h)/T:(r-h)/T,q=c;nt(u,function(t){var e=t.getLayout().depth*Z;"vertical"===q?t.setLayout({y:e},!0):t.setLayout({x:e},!0)});var t=o,D=i,L=e,A=n,j=s,P=l,O=function(t,e){var n=[],i="vertical"===e?"y":"x",r=function(t,n){var i=it(),r=[];return nt(t,function(t){var e=n(t);(i.get(e)||(r.push(e),i.set(e,[]))).push(t)}),{keys:r,buckets:i}}(t,function(t){return t.getLayout()[i]});return r.keys.sort(function(t,e){return t-e}),nt(r.keys,function(t){n.push(r.buckets.get(t))}),n}(a,P),I=O,E=t,K=D,$=L,Q=A,J=P,R=1/0;nt(I,function(t){var e=t.length,n=0,t=(nt(t,function(t){n+=t.getLayout().value}),"vertical"===J?($-(e-1)*Q)/n:(K-(e-1)*Q)/n);t<R&&(R=t)}),nt(I,function(t){nt(t,function(t,e){var n=t.getLayout().value*R;"vertical"===J?(t.setLayout({x:e},!0),t.setLayout({dx:n},!0)):(t.setLayout({y:e},!0),t.setLayout({dy:n},!0))})}),nt(E,function(t){var e=+t.getValue()*R;t.setLayout({dy:e},!0)}),tT(O,A,D,L,P);for(var tt=1;0<j;j--)!function(t,i,r){nt(t.slice().reverse(),function(t){nt(t,function(t){var e,n;t.outEdges.length&&(e=sT(t.outEdges,eT,r)/sT(t.outEdges,aT),isNaN(e)&&(e=(n=t.outEdges.length)?sT(t.outEdges,nT,r)/n:0),"vertical"===r?(n=t.getLayout().x+(e-oT(t,r))*i,t.setLayout({x:n},!0)):(n=t.getLayout().y+(e-oT(t,r))*i,t.setLayout({y:n},!0)))})})}(O,tt*=.99,P),tT(O,A,D,L,P),function(t,i,r){nt(t,function(t){nt(t,function(t){var e,n;t.inEdges.length&&(e=sT(t.inEdges,iT,r)/sT(t.inEdges,aT),isNaN(e)&&(e=(n=t.inEdges.length)?sT(t.inEdges,rT,r)/n:0),"vertical"===r?(n=t.getLayout().x+(e-oT(t,r))*i,t.setLayout({x:n},!0)):(n=t.getLayout().y+(e-oT(t,r))*i,t.setLayout({y:n},!0)))})})}(O,tt,P),tT(O,A,D,L,P);var r=a,z="vertical"===l?"x":"y";nt(r,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout()[z]-e.node2.getLayout()[z]}),t.inEdges.sort(function(t,e){return t.node1.getLayout()[z]-e.node1.getLayout()[z]})}),nt(r,function(t){var e=0,n=0;nt(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),nt(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})})}function JM(t){t=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=t.depth&&0<=t.depth}function tT(t,l,u,h,c){var p="vertical"===c?"x":"y";nt(t,function(t){t.sort(function(t,e){return t.getLayout()[p]-e.getLayout()[p]});for(var e,n,i,r=0,o=t.length,a="vertical"===c?"dx":"dy",s=0;s<o;s++)0<(i=r-(n=t[s]).getLayout()[p])&&(e=n.getLayout()[p]+i,"vertical"===c?n.setLayout({x:e},!0):n.setLayout({y:e},!0)),r=n.getLayout()[p]+n.getLayout()[a]+l;if(0<(i=r-l-("vertical"===c?h:u))){e=n.getLayout()[p]-i,"vertical"===c?n.setLayout({x:e},!0):n.setLayout({y:e},!0);for(r=e,s=o-2;0<=s;--s)0<(i=(n=t[s]).getLayout()[p]+n.getLayout()[a]+l-r)&&(e=n.getLayout()[p]-i,"vertical"===c?n.setLayout({x:e},!0):n.setLayout({y:e},!0)),r=n.getLayout()[p]}})}function eT(t,e){return oT(t.node2,e)*t.getValue()}function nT(t,e){return oT(t.node2,e)}function iT(t,e){return oT(t.node1,e)*t.getValue()}function rT(t,e){return oT(t.node1,e)}function oT(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function aT(t){return t.getValue()}function sT(t,e,n){for(var i=0,r=t.length,o=-1;++o<r;){var a=+e(t[o],n);isNaN(a)||(i+=a)}return i}var lT=nt,uT=N,hT=-1,cT=(pT.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},pT.prototype.getNormalizer=function(){return S(this._normalizeData,this)},pT.listVisualTypes=function(){return ct(pT.visualHandlers)},pT.isValidType=function(t){return pT.visualHandlers.hasOwnProperty(t)},pT.eachVisual=function(t,e,n){N(t)?nt(t,e,n):e.call(n,t)},pT.mapVisual=function(t,n,i){var r,o=V(t)?[]:N(t)?{}:(r=!0,null);return pT.eachVisual(t,function(t,e){t=n.call(i,t,e);r?o=t:o[e]=t}),o},pT.retrieveVisuals=function(n){var i,r={};return n&&lT(pT.visualHandlers,function(t,e){n.hasOwnProperty(e)&&(r[e]=n[e],i=!0)}),i?r:null},pT.prepareVisualTypes=function(t){if(V(t))t=t.slice();else{if(!uT(t))return[];var n=[];lT(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},pT.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},pT.findPieceIndex=function(n,t,e){for(var i,r=1/0,o=0,a=t.length;o<a;o++){var s=t[o].value;if(null!=s){if(s===n||F(s)&&s===n+"")return o;e&&h(s,o)}}for(o=0,a=t.length;o<a;o++){var l=t[o],u=l.interval,l=l.close;if(u){if(u[0]===-1/0){if(ST(l[1],n,u[1]))return o}else if(u[1]===1/0){if(ST(l[0],u[0],n))return o}else if(ST(l[0],u[0],n)&&ST(l[1],n,u[1]))return o;e&&h(u[0],o),e&&h(u[1],o)}}if(e)return n===1/0?t.length-1:n===-1/0?0:i;function h(t,e){t=Math.abs(t-n);t<r&&(r=t,i=e)}},pT.visualHandlers={color:{applyVisual:yT("color"),getColorMapper:function(){var r=this.option;return S("category"===r.mappingMethod?function(t,e){return e||(t=this._normalizeData(t)),mT.call(this,t)}:function(t,e,n){var i=!!n;return n=Ai(t=e?t:this._normalizeData(t),r.parsedVisual,n),i?n:Ni(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Ni(Ai(t,this.option.parsedVisual),"rgba")},category:mT,piecewise:function(t,e){e=xT.call(this,e);return e=null==e?Ni(Ai(t,this.option.parsedVisual),"rgba"):e},fixed:vT}},colorHue:fT(function(t,e){return Ri(t,e)}),colorSaturation:fT(function(t,e){return Ri(t,null,e)}),colorLightness:fT(function(t,e){return Ri(t,null,null,e)}),colorAlpha:fT(zi),decal:{applyVisual:yT("decal"),_normalizedToVisual:{linear:null,category:mT,piecewise:null,fixed:null}},opacity:{applyVisual:yT("opacity"),_normalizedToVisual:_T([0,1])},liftZ:{applyVisual:yT("liftZ"),_normalizedToVisual:{linear:vT,category:vT,piecewise:vT,fixed:vT}},symbol:{applyVisual:function(t,e,n){n("symbol",this.mapValueToVisual(t))},_normalizedToVisual:{linear:gT,category:mT,piecewise:function(t,e){e=xT.call(this,e);return e=null==e?gT.call(this,t):e},fixed:vT}},symbolSize:{applyVisual:yT("symbolSize"),_normalizedToVisual:_T([0,1])}},pT);function pT(t){var n,e=t.mappingMethod,i=t.type,t=this.option=y(t),i=(this.type=i,this.mappingMethod=e,this._normalizeData=wT[e],pT.visualHandlers[i]);if(this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],"piecewise"===e)dT(t),i=(n=t).pieceList,n.hasSpecialVisual=!1,nt(i,function(t,e){t.originIndex=e,null!=t.visual&&(n.hasSpecialVisual=!0)});else if("category"===e)if(t.categories){var r,i=t,o=i.categories,a=i.categoryMap={},s=i.visual;lT(o,function(t,e){a[t]=e}),V(s)||(r=[],N(s)?lT(s,function(t,e){e=a[e];r[null!=e?e:hT]=t}):r[hT]=s,s=bT(i,r));for(var l=o.length-1;0<=l;l--)null==s[l]&&(delete a[o[l]],o.pop())}else dT(t,!0);else Tt("linear"!==e||t.dataExtent),dT(t)}function dT(t,e){var n=t.visual,i=[];N(n)?lT(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]),bT(t,i)}function fT(i){return{applyVisual:function(t,e,n){t=this.mapValueToVisual(t);n("color",i(e("color"),t))},_normalizedToVisual:_T([0,1])}}function gT(t){var e=this.option.visual;return e[Math.round(Mo(t,[0,1],[0,e.length-1],!0))]||{}}function yT(i){return function(t,e,n){n(i,this.mapValueToVisual(t))}}function mT(t){var e=this.option.visual;return e[this.option.loop&&t!==hT?t%e.length:t]}function vT(){return this.option.visual[0]}function _T(n){return{linear:function(t){return Mo(t,n,this.option.visual,!0)},category:mT,piecewise:function(t,e){e=xT.call(this,e);return e=null==e?Mo(t,n,this.option.visual,!0):e},fixed:vT}}function xT(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){e=n[cT.findPieceIndex(t,n)];if(e&&e.visual)return e.visual[this.type]}}function bT(t,e){return t.visual=e,"color"===t.type&&(t.parsedVisual=B(e,function(t){t=ki(t);return t||[0,0,0,1]})),e}var wT={linear:function(t){return Mo(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,t=cT.findPieceIndex(t,e,!0);if(null!=t)return Mo(t,[0,e.length-1],[0,1],!0)},category:function(t){t=this.option.categories?this.option.categoryMap[t]:t;return null==t?hT:t},fixed:Vt};function ST(t,e,n){return t?e<=n:e<n}function MT(t){t.eachSeriesByType("sankey",function(i){var r,o,t=i.getGraph(),e=t.nodes,t=t.edges;e.length&&(r=1/0,o=-1/0,nt(e,function(t){t=t.getLayout().value;t<r&&(r=t),o<t&&(o=t)}),nt(e,function(t){var e=new cT({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:i.get("color")}).mapValueToVisual(t.getLayout().value),n=t.getModel().get(["itemStyle","color"]);null!=n?(t.setVisual("color",n),t.setVisual("style",{fill:n})):(t.setVisual("color",e),t.setVisual("style",{fill:e}))})),t.length&&nt(t,function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)})})}ox(function(t){t.registerChartView(DM),t.registerSeriesModel(KM),t.registerLayout(QM),t.registerVisual(MT),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])})}),t.registerAction({type:"sankeyRoam",event:"sankeyRoam",update:"none"},function(s,t,e){t.eachComponent({mainType:"series",subType:"sankey",query:s},function(t){var e,n,i,r,o=t.coordinateSystem,a=(o=o,e=s,a=t.get("scaleLimit"),n=o.getZoom(),i=o.getCenter(),r=e.zoom,i=o.projectedToPoint?o.projectedToPoint(i):o.dataToPoint(i),null!=e.dx&&null!=e.dy&&(i[0]-=e.dx,i[1]-=e.dy,o.setCenter(yM(o,i))),null!=r&&(r=vM(n*r,a)/n,mM(o,e.originX,e.originY,r),o.updateTransform(),o.setCenter(yM(o,i)),o.setZoom(r*n)),{center:o.getCenter(),zoom:o.getZoom()});t.setCenter(a.center),t.setZoom(a.zoom)})})});var TT,IT={left:0,right:0,top:0,bottom:0},CT=["25%","25%"],kT=(u(DT,TT=g),DT.prototype.mergeDefaultAndTheme=function(t,e){var n=jd(t.outerBounds);TT.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&t.outerBounds&&qd(t.outerBounds,n)},DT.prototype.mergeOption=function(t,e){TT.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&qd(this.option.outerBounds,t.outerBounds)},DT.type="grid",DT.dependencies=["xAxis","yAxis"],DT.layoutMode="box",DT.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:IT,outerBoundsContain:"all",outerBoundsClampWidth:CT[0],outerBoundsClampHeight:CT[1],backgroundColor:v.color.transparent,borderWidth:1,borderColor:v.color.neutral30},DT);function DT(){return null!==TT&&TT.apply(this,arguments)||this}u(PT,LT=g),PT.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ua).models[0]},PT.type="cartesian2dAxis";var LT,AT=PT;function PT(){return null!==LT&&LT.apply(this,arguments)||this}at(AT,ex);var _a={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:v.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:v.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:v.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[v.color.backgroundTint,v.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:v.color.neutral00,borderColor:v.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},o0=d({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},_a),Vh=d({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:v.color.axisMinorSplitLine,width:1}}},_a),OT={category:o0,value:Vh,time:d({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Vh),log:E({logBase:10},Vh)},RT={value:1,category:1,time:1,log:1},zT=null;function NT(o,a,s,l){nt(RT,function(t,r){var e,n=d(d({},OT[r],!0),l,!0),n=(u(i,e=s),i.prototype.mergeDefaultAndTheme=function(t,e){var n=Zd(this),i=n?jd(t):{};d(t,e.getTheme().get(r+"Axis")),d(t,this.getDefaultOption()),t.type=ET(t),n&&qd(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=r1.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.prototype.updateAxisBreaks=function(t){return zT?zT.updateModelAxisBreak(this,t):{breaks:[]}},i.type=a+"Axis."+r,i.defaultOption=n,i);function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a+"Axis."+r,t}o.registerComponentModel(n)}),o.registerSubTypeDefaulter(a+"Axis",ET)}function ET(t){return t.type||(t.data?"category":"value")}function BT(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}BT.prototype.getAxis=function(t){return this._axes[t]},BT.prototype.getAxes=function(){return B(this._dimList,function(t){return this._axes[t]},this)},BT.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ut(this.getAxes(),function(t){return t.scale.type===e})},BT.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var VT=["x","y"];function FT(t){return("interval"===t.type||"time"===t.type)&&!t.hasBreaks()}u(WT,HT=BT),WT.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,r=this.getAxis("x").scale,o=this.getAxis("y").scale;FT(r)&&FT(o)&&(r=r.getExtent(),o=o.getExtent(),i=this.dataToPoint([r[0],o[0]]),e=this.dataToPoint([r[1],o[1]]),t=r[1]-r[0],n=o[1]-o[0],t)&&n&&(t=(e[0]-i[0])/t,e=(e[1]-i[1])/n,n=i[0]-r[0]*t,r=i[1]-o[0]*e,i=this._transform=[t,0,0,e,n,r],this._invTransform=Ge([],i))},WT.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},WT.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]))},WT.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},WT.prototype.containZone=function(t,e){var t=this.dataToPoint(t),e=this.dataToPoint(e),n=this.getArea(),e=new X(t[0],t[1],e[0]-t[0],e[1]-t[1]);return n.intersect(e)},WT.prototype.dataToPoint=function(t,e,n){n=n||[];var i,r=t[0],o=t[1];return this._transform&&null!=r&&isFinite(r)&&null!=o&&isFinite(o)?ie(n,t,this._transform):(t=this.getAxis("x"),i=this.getAxis("y"),n[0]=t.toGlobalCoord(t.dataToCoord(r,e)),n[1]=i.toGlobalCoord(i.dataToCoord(o,e)),n)},WT.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),n=n.parse(t[0]),i=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),n),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),i),Math.max(o[0],o[1])),e},WT.prototype.pointToData=function(t,e,n){var i,r;return n=n||[],this._invTransform?ie(n,t,this._invTransform):(i=this.getAxis("x"),r=this.getAxis("y"),n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n)},WT.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},WT.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(e[0],e[1])-t,r=Math.min(n[0],n[1])-t,e=Math.max(e[0],e[1])-i+t,n=Math.max(n[0],n[1])-r+t;return new X(i,r,e,n)};var HT,GT=WT;function WT(){var t=null!==HT&&HT.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=VT,t}u(YT,UT=Dp),YT.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},YT.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},YT.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},YT.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var UT,XT=YT;function YT(t,e,n,i,r){t=UT.call(this,t,e,n)||this;return t.index=0,t.type=i||"value",t.position=r||"bottom",t}var ZT="expandAxisBreak",qT=Math.PI,jT=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],KT=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],$T=oa(),QT=oa(),JT=(tI.prototype.ensureRecord=function(t){var e=t.axis.dim,t=t.componentIndex,n=this.recordMap,n=n[e]||(n[e]=[]);return n[t]||(n[t]={ready:{}})},tI);function tI(t){this.recordMap={},this.resolveAxisNameOverlap=t}function eI(t,e,n,i,r,o){var a,s;Q1(t.nameLocation)?(t=o.stOccupiedRect)&&rI((a={},t=t,s=o.transGroup.transform,a.transform=ep(a.transform,s),a.localRect=tp(a.localRect,t),a.rect=tp(a.rect,t),s&&a.rect.applyTransform(s),a.axisAligned=Jc(s),a.obb=void 0,(a.label=a.label||{}).ignore=!1,a),i,r):oI(o.labelInfoList,o.dirVec,i,r)}var nI=ze(),iI=new X(0,0,0,0);function rI(t,e,n){var i=new W;wb(t,e,i,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&(t=i,n=e)&&(n.label.x+=t.x,n.label.y+=t.y,n.label.markRedraw(),(i=n.transform)&&(i[4]+=t.x,i[5]+=t.y),(e=n.rect)&&(e.x+=t.x,e.y+=t.y),e=n.obb)&&e.fromBoundingRect(n.localRect,i)}function oI(t,e,n,i){for(var r=0<=W.dot(i,e),o=0,a=t.length;o<a;o++){var s=t[r?o:a-1-o];s.label.ignore||rI(s,n,i)}}sI.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},sI.prototype.__getRawCfg=function(){return this._cfg.raw},sI.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},i=G(t.axisName,e.get("name")),r=e.get("nameMoveOverlap"),t=(null!=r&&"auto"!==r||(r=G(t.defaultNameMoveOverlap,!0)),{raw:t,position:t.position,rotation:t.rotation,nameDirection:G(t.nameDirection,1),tickDirection:G(t.tickDirection,1),labelDirection:G(t.labelDirection,1),labelOffset:G(t.labelOffset,0),silent:G(t.silent,!0),axisName:i,nameLocation:wt(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:!!i&&r,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])}),n=(this._cfg=t,new lo({x:t.position[0],y:t.position[1],rotation:t.rotation})),i=(n.updateTransform(),this._transformGroup=n,this._shared.ensureRecord(e));i.transGroup=this._transformGroup,i.dirVec=new W(Math.cos(-t.rotation),Math.sin(-t.rotation))},sI.prototype.build=function(e,n){var i=this;return e=e||{axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},nt(lI,function(t){e[t]&&uI[t](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,n||{})}),this},sI.innerTextLayout=function(t,e,n){var i,e=Oo(e-t),t=Ro(e)?(i=0<n?"top":"bottom","center"):Ro(e-qT)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<qT?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},sI.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},sI.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};var aI=sI;function sI(t,e,n,i){this.group=new lo,this._axisModel=t,this._api=e,this._local={},this._shared=i||new JT(eI),this._resetCfgDetermined(n)}var lI=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],uI={axisLine:function(i,t,e,n,r,o,a){var s,l,u,h,c,p,d,f,g=n.get(["axisLine","show"]);(g="auto"===g&&(g=!0,null!=i.raw.axisLineAutoShow)?!!i.raw.axisLineAutoShow:g)&&(g=n.axis.getExtent(),c=o.transform,s=[g[0],0],l=[g[1],0],u=l[0]<s[0],c&&(ie(s,s,c),ie(l,l,c)),h=P({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),g={strokeContainThreshold:i.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h},n.get(["axisLine","breakLine"])&&n.axis.scale.hasBreaks()?zT.buildAxisBreakLine(n,r,o,g):(Nc((c=new Oh(P({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]}},g))).shape,c.style.lineWidth),c.anid="line",r.add(c)),null!=(p=n.get(["axisLine","symbol"])))&&(o=n.get(["axisLine","symbolSize"]),F(p)&&(p=[p,p]),(F(o)||H(o))&&(o=[o,o]),g=p0(n.get(["axisLine","symbolOffset"])||0,o),d=o[0],f=o[1],nt([{rotate:i.rotation+Math.PI/2,offset:g[0],r:0},{rotate:i.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(t,e){var n;"none"!==p[e]&&null!=p[e]&&(e=c0(p[e],-d/2,-f/2,d,f,h.stroke,!0),n=t.r+t.offset,e.attr({rotation:t.rotate,x:(t=u?l:s)[0]+n*Math.cos(i.rotation),y:t[1]-n*Math.sin(i.rotation),silent:!0,z2:11}),r.add(e))}))},axisTickLabelEstimate:function(t,e,n,i,r,o,a,s){dI(e,r,s)&&hI(t,e,n,i,r,o,a,Ix.estimate)},axisTickLabelDetermine:function(t,e,n,i,r,o,a,s){dI(e,r,s)&&hI(t,e,n,i,r,o,a,Ix.determine);var l,s=function(t,e,n,i){var r=i.axis,o=i.getModel("axisTick"),a=o.get("show");"auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow)&&(a=!!t.raw.axisTickAutoShow);if(!a||r.scale.isBlank())return[];for(var a=o.getModel("lineStyle"),t=t.tickDirection*o.get("length"),s=pI(r.getTicksCoords(),n.transform,t,E(a.getLineStyle(),{stroke:i.get(["axisLine","lineStyle","color"])}),"ticks"),l=0;l<s.length;l++)e.add(s[l]);return s}(t,r,o,i),a=(n=e.labelLayoutList,l=s,t.showMinorTicks||nt(n,function(t){if(t&&t.label.ignore)for(var e=0;e<l.length;e++){var n=l[e],i=QT(n),r=$T(t.label);if(null!=i.tickValue&&!i.onBand&&i.tickValue===r.tickValue)return void cI(n)}}),t),u=r,h=o,e=i,s=t.tickDirection,n=e.axis,r=e.getModel("minorTick");if(a.showMinorTicks&&!n.scale.isBlank()){var c=n.getMinorTicksCoords();if(c.length)for(var a=r.getModel("lineStyle"),p=s*r.get("length"),d=E(a.getLineStyle(),E(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<c.length;f++)for(var g=pI(c[f],h.transform,p,d,"minorticks_"+f),y=0;y<g.length;y++)u.add(g[y])}},axisName:function(t,e,n,i,r,o,a,s){var l,u,h,c,p,d,f,g,y,m,v=n.ensureRecord(i),_=(e.nameEl&&(r.remove(e.nameEl),e.nameEl=v.nameLayout=v.nameLocation=null),t.axisName);_&&(l=t.nameLocation,f=t.nameDirection,u=i.getModel("nameTextStyle"),p=i.get("nameGap")||0,d=i.axis.getExtent(),m=i.axis.inverse?-1:1,y=new W(0,0),h=new W(0,0),"start"===l?(y.x=d[0]-m*p,h.x=-m):"end"===l?(y.x=d[1]+m*p,h.x=m):(y.x=(d[0]+d[1])/2,y.y=t.labelOffset+f*p,h.y=f),m=ze(),h.transform(Fe(m,m,t.rotation)),null!=(p=i.get("nameRotate"))&&(p=p*qT/180),Q1(l)?c=aI.innerTextLayout(t.rotation,null!=p?p:t.rotation,f):(c=function(t,e,n,i){var r,n=Oo(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;e=Ro(n-qT/2)?(r=i?"bottom":"top","center"):Ro(n-1.5*qT)?(r=i?"top":"bottom","center"):(r="middle",n<1.5*qT&&qT/2<n?i?"left":"right":i?"right":"left");return{rotation:n,textAlign:e,textVerticalAlign:r}}(t.rotation,l,p||0,d),null!=(g=t.raw.axisNameAvailableWidth)&&(g=Math.abs(g/Math.sin(c.rotation)),isFinite(g)||(g=null))),m=u.getFont(),p=(f=i.get("nameTruncate",!0)||{}).ellipsis,d=bt(t.raw.nameTruncateMaxWidth,f.maxWidth,g),f=s.nameMarginLevel||0,Kc({el:g=new vl({x:y.x,y:y.y,rotation:c.rotation,silent:aI.isLabelSilent(i),style:hp(u,{text:_,font:m,overflow:"truncate",width:d,ellipsis:p,fill:u.getTextColor()||i.get(["axisLine","lineStyle","color"]),align:u.get("align")||c.textAlign,verticalAlign:u.get("verticalAlign")||c.textVerticalAlign}),z2:1}),componentModel:i,itemName:_}),g.__fullText=_,g.anid="name",i.get("triggerEvent")&&((s=aI.makeAxisEventDataBase(i)).targetType="axisName",s.name=_,U(g).eventData=s),o.add(g),g.updateTransform(),e.nameEl=g,y=v.nameLayout=gb({label:g,priority:g.z2,defaultAttr:{ignore:g.ignore},marginDefault:(Q1(l)?jT:KT)[f]}),v.nameLocation=l,r.add(g),g.decomposeTransform(),t.shouldNameMoveOverlap)&&y&&(m=n.ensureRecord(i),n.resolveAxisNameOverlap(t,n,i,y,h,m))}};function hI(t,e,n,i,r,o,a,s){fI(e)||(h=t,O=e,r=r,s=s,_=a,k=(v=i).axis,a=bt(h.raw.axisLabelShow,v.get(["axisLabel","show"])),D=new lo,r.add(D),r=Cx(s),!a||k.scale.isBlank()?gI(O,[],D,r):(x=v.getModel("axisLabel"),b=k.getViewLabels(r),s=(bt(h.raw.labelRotate,x.get("rotate"))||0)*qT/180,w=aI.innerTextLayout(h.rotation,s,h.labelDirection),S=v.getCategories&&v.getCategories(!0),M=[],T=v.get("triggerEvent"),I=1/0,C=-1/0,nt(b,function(t,e){var n,i,r,o="ordinal"===k.scale.type?k.scale.getRawOrdinalNumber(t.tickValue):t.tickValue,a=t.formattedLabel,s=t.rawLabel,l=x,u=(l=S&&S[o]&&N(u=S[o])&&u.textStyle?new Pp(u.textStyle,x,v.ecModel):l).getTextColor()||v.get(["axisLine","lineStyle","color"]),h=l.getShallow("align",!0)||w.textAlign,c=G(l.getShallow("alignMinLabel",!0),h),p=G(l.getShallow("alignMaxLabel",!0),h),d=l.getShallow("verticalAlign",!0)||l.getShallow("baseline",!0)||w.textVerticalAlign,f=G(l.getShallow("verticalAlignMinLabel",!0),d),g=G(l.getShallow("verticalAlignMaxLabel",!0),d),y=10+((null==(y=t.time)?void 0:y.level)||0),m=(I=Math.min(I,y),C=Math.max(C,y),new vl({x:0,y:0,rotation:0,silent:aI.isLabelSilent(v),z2:y,style:hp(l,{text:a,align:0===e?c:e===b.length-1?p:h,verticalAlign:0===e?f:e===b.length-1?g:d,fill:z(u)?u("category"===k.type?s:"value"===k.type?o+"":o,e):u})})),y=(m.anid="label_"+o,$T(m));y.break=t.break,y.tickValue=o,y.layoutRotation=w.rotation,Kc({el:m,componentModel:v,itemName:a,formatterParamsExtra:{isTruncated:function(){return m.isTruncated},value:s,tickIndex:e}}),T&&((l=aI.makeAxisEventDataBase(v)).targetType="axisLabel",l.value=s,l.tickIndex=e,t.break&&(l.break={start:t.break.parsedBreak.vmin,end:t.break.parsedBreak.vmax}),"category"===k.type&&(l.dataIndex=o),U(m).eventData=l,t.break)&&(n=v,i=_,r=t.break,m.on("click",function(t){var e={type:ZT,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};e[n.axis.dim+"AxisIndex"]=n.componentIndex,i.dispatchAction(e)})),M.push(m),D.add(m)}),a=B(M,function(t){return{label:t,priority:$T(t).break?t.z2+(C-I+1):t.z2,defaultAttr:{ignore:t.ignore}}}),gI(O,a,D,r)));var v,_,x,b,w,S,M,T,I,C,k,D,l,u,h,c,p,d,f,g,y,m,L,A,P,s=e.labelLayoutList,O=(l=t,h=s,c=o,p=(u=i).get(["axisLabel","margin"]),nt(h,function(t,e){var n,i,t=gb(t);t&&(n=t.label,i=$T(n),t.suggestIgnore=n.ignore,n.ignore=!1,Er(yI,mI),yI.x=u.axis.dataToCoord(i.tickValue),yI.y=l.labelOffset+l.labelDirection*p,yI.rotation=i.layoutRotation,c.add(yI),yI.updateTransform(),c.remove(yI),yI.decomposeTransform(),Er(n,yI),n.markRedraw(),db(t,!0),gb(t))}),t.rotation,t.optionHideOverlap);function R(t,e,n){var i,e=gb(d[e]),n=gb(d[n]);e&&n&&(!1===t||e.suggestIgnore?cI(e.label):n.suggestIgnore?cI(n.label):(f||(e=vb({marginForce:i=[0,0,0,0]},e),n=vb({marginForce:i},n)),wb(e,n,null,{touchThreshold:.1})&&cI((t?n:e).label)))}d=s,f=O,$1((a=i).axis)||(r=a.get(["axisLabel","showMinLabel"]),a=a.get(["axisLabel","showMaxLabel"]),e=d.length,R(r,0,1),R(a,e-1,e-2)),O&&bb(ut(s,function(t){return t&&!t.label.ignore})),o=t,r=n,a=s,t=(e=i).axis,y=r.ensureRecord(e),m=[],L=!!o.axisName&&Q1(o.nameLocation),nt(a,function(t){var e,t=gb(t);t&&!t.label.ignore&&(m.push(t),e=y.transGroup,L)&&(e.transform?Ge(nI,e.transform):Ne(nI),t.transform&&Be(nI,nI,t.transform),X.copy(iI,t.localRect),iI.applyTransform(nI),g?g.union(iI):X.copy(g=new X(0,0,0,0),iI))}),A=.1<Math.abs(y.dirVec.x)?"x":"y",P=y.transGroup[A],m.sort(function(t,e){return Math.abs(t.label[A]-P)-Math.abs(e.label[A]-P)}),L&&g&&(r=t.getExtent(),e=Math.min(r[0],r[1]),o=Math.max(r[0],r[1])-e,g.union(new X(e,0,o,1))),y.stOccupiedRect=g,y.labelInfoList=m}function cI(t){t&&(t.ignore=!0)}function pI(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord,u=(a[0]=u,s[a[1]=0]=u,s[1]=n,e&&(ie(a,a,e),ie(s,s,e)),new Oh({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0})),u=(Nc(u.shape,u.style.lineWidth),u.anid=r+"_"+t[l].tickValue,o.push(u),QT(u));u.onBand=!!t[l].onBand,u.tickValue=t[l].tickValue}return o}function dI(t,e,n){if(fI(t)){var i=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var r=!0,o=0;o<i.length;o++)r=r&&i[o]();if(r)return!1}i.length&&(e.remove(t.labelGroup),gI(t,null,null,null))}return!0}function fI(t){return t.labelLayoutList}function gI(t,e,n,i){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=i}var yI=new pl,mI=new pl;function vI(t,e,n){n=n||{};var i=e.axis,r={},o=i.getAxesOnZeroOf()[0],a=i.position,s=o?"onZero":a,i=i.dim,t=[t.x,t.x+t.width,t.y,t.y+t.height],l={left:0,right:1,top:0,bottom:1,onZero:2},u=e.get("offset")||0,u="x"===i?[t[2]-u,t[3]+u]:[t[0]-u,t[1]+u],h=(o&&(h=o.toGlobalCoord(o.dataToCoord(0)),u[l.onZero]=Math.max(Math.min(h,u[1]),u[0])),r.position=["y"===i?u[l[s]]:t[0],"x"===i?u[l[s]]:t[3]],r.rotation=Math.PI/2*("x"===i?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[a],r.labelOffset=o?u[l[a]]-u[l.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),bt(n.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection),e.get(["axisLabel","rotate"]));return r.labelRotate="top"===s?-h:h,r.z2=1,r}function _I(i){var r={xAxisModel:null,yAxisModel:null};return nt(r,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,ua).models[0];r[e]=n}),r}var xI=[[3,1],[0,2]],bI=(wI.prototype.getRect=function(){return this._rect},wI.prototype.update=function(t,e){var n=this._axesMap;function i(t){var d,e=ct(t),n=e.length;if(n){for(var i=[],r=n-1;0<=r;r--){var o=t[+e[r]],a=o.model,s=o.scale;U_(s)&&a.get("alignTicks")&&null==a.get("interval")?i.push(o):(Y1(s,a),U_(s)&&(d=o))}i.length&&(d||Y1((d=i.pop()).scale,d.model),nt(i,function(t){var e=t.scale,t=t.model,n=d.scale,i=p1.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,{expandToNicedExtent:!0}),a=r.length-1,n=i.getInterval.call(n),s=(u=X1(e,t)).extent,l=u.fixMin,u=u.fixMax,t=("log"===e.type&&(s=t1(e.base,s,!0)),e.setBreaksFromOption(tx(t)),e.setExtent(s[0],s[1]),e.calcNiceExtent({splitNumber:a,fixMin:l,fixMax:u}),i.getExtent.call(e)),h=(l&&(s[0]=t[0]),u&&(s[1]=t[1]),i.getInterval.call(e)),c=s[0],p=s[1];if(l&&u)h=(p-c)/a;else if(l)for(p=s[0]+h*a;p<s[1]&&isFinite(p)&&isFinite(s[1]);)h=Y_(h),p=s[0]+h*a;else if(u)for(c=s[1]-h*a;c>s[0]&&isFinite(c)&&isFinite(s[0]);)h=Y_(h),c=s[1]-h*a;else{t=(h=a<e.getTicks().length-1?Y_(h):h)*a;(c=Co((p=Math.ceil(s[1]/h)*h)-t))<0&&0<=s[0]?(c=0,p=Co(t)):0<p&&s[1]<=0&&(p=0,c=-Co(t))}l=(r[0].value-o[0].value)/n,u=(r[a].value-o[a].value)/n,i.setExtent.call(e,c+h*l,p+h*u),i.setInterval.call(e,h),(l||u)&&i.setNiceExtent.call(e,c+h,p-h)}))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};nt(n.x,function(t){MI(n,"y",t,r)}),nt(n.y,function(t){MI(n,"x",t,r)}),this.resize(this.model,e)},wI.prototype.resize=function(t,e,n){var i,r,o,a,s,l=Yd(t,e),u=this._rect=Ud(t.getBoxLayoutParams(),l.refContainer),h=this._axesMap,c=this._coordsList,p=t.get("containLabel");II(h,u),n||(i=u,r=c,n=h,o=p,a=e,s=new JT(LI),nt(n,function(t){return nt(t,function(t){J1(t.model)&&(t.axisBuilder=function(t,e,n,i,r,o){for(var t=vI(t,n),a=!1,s=!1,l=0;l<e.length;l++)U_(e[l].getOtherAxis(n.axis).scale)&&(a=s=!0,"category"===n.axis.type)&&n.axis.onBand&&(s=!1);return t.axisLineAutoShow=a,t.axisTickAutoShow=s,t.defaultNameMoveOverlap=o,new aI(n,i,t,r)}(i,r,t.model,a,s,!o))})}),c=s,e=void 0,p?e=kI(u.clone(),"axisLabel",null,u,h,c,l):(p=(n=function(t,e,n){var i,r=t.get("outerBoundsMode",!0);"same"===r?i=e.clone():null!=r&&"auto"!==r||(i=Ud(t.get("outerBounds",!0)||IT,n.refContainer));r=t.get("outerBoundsContain",!0);n=null==r||"auto"===r||k(["all","axisLabel"],r)<0?"all":r;r=[Io(G(t.get("outerBoundsClampWidth",!0),CT[0]),e.width),Io(G(t.get("outerBoundsClampHeight",!0),CT[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:n,outerBoundsClamp:r}}(t,u,l)).outerBoundsRect,t=n.parsedOuterBoundsContain,n=n.outerBoundsClamp,p&&(e=kI(p,t,n,u,h,c,l))),DI(u,h,Ix.determine,null,e,l)),nt(this._coordsList,function(t){t.calcAffineTransform()})},wI.prototype.getAxis=function(t,e){t=this._axesMap[t];if(null!=t)return t[e||0]},wI.prototype.getAxes=function(){return this._axesList.slice()},wI.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];N(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},wI.prototype.getCartesians=function(){return this._coordsList.slice()},wI.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},wI.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},wI.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",ua).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",ua).models[0],t=t.gridModel,a=this._coordsList;return i?k(a,e=i.coordinateSystem)<0&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?n=this.getAxis("x",r.componentIndex):o?n=this.getAxis("y",o.componentIndex):t&&t.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:n}},wI.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},wI.prototype._initCartesian=function(o,t,e){var a=this,s=this,l={left:!1,right:!1,top:!1,bottom:!1},u={x:{},y:{}},h={x:0,y:0};function n(r){return function(t,e){var n,i;SI(t,o)&&(n=t.get("position"),"x"===r?"top"!==n&&"bottom"!==n&&(n=l.bottom?"top":"bottom"):"left"!==n&&"right"!==n&&(n=l.left?"right":"left"),l[n]=!0,i="category"===(n=new XT(r,Z1(t),[0,0],t.get("type"),n)).type,n.onBand=i&&t.get("boundaryGap"),n.inverse=t.get("inverse"),(t.axis=n).model=t,n.grid=s,n.index=e,s._axesList.push(n),u[r][e]=n,h[r]++)}}t.eachComponent("xAxis",n("x"),this),t.eachComponent("yAxis",n("y"),this),h.x&&h.y?nt((this._axesMap=u).x,function(i,r){nt(u.y,function(t,e){var e="x"+r+"y"+e,n=new GT(e);n.master=a,n.model=o,a._coordsMap[e]=n,a._coordsList.push(n),n.addAxis(i),n.addAxis(t)})}):(this._axesMap={},this._axesList=[])},wI.prototype._updateScale=function(t,i){function r(e,n){var i,t,r;nt((i=e,t=n.dim,r={},nt(i.mapDimensionsAll(t),function(t){r[G_(i,t)]=!0}),ct(r)),function(t){n.scale.unionExtentFromData(e,t)})}nt(this._axesList,function(t){var e;t.scale.setExtent(1/0,-1/0),"category"===t.type&&(e=t.model.get("categorySortInfo"),t.scale.setSortInfo(e))}),t.eachSeries(function(t){var e,n;(n=t).coordinateSystem&&"cartesian2d"===n.coordinateSystem.type&&(e=(n=_I(t)).xAxisModel,n=n.yAxisModel,SI(e,i))&&SI(n,i)&&(e=this.getCartesian(e.componentIndex,n.componentIndex),n=t.getData(),t=e.getAxis("x"),e=e.getAxis("y"),r(n,t),r(n,e))},this)},wI.prototype.getTooltipAxes=function(n){var i=[],r=[];return nt(this.getCartesians(),function(t){var e=null!=n&&"auto"!==n?t.getAxis(n):t.getBaseAxis(),t=t.getOtherAxis(e);k(i,e)<0&&i.push(e),k(r,t)<0&&r.push(t)}),{baseAxes:i,otherAxes:r}},wI.create=function(i,r){var o=[];return i.eachComponent("grid",function(t,e){var n=new wI(t,i,r);n.name="grid_"+e,n.resize(t,r,!0),t.coordinateSystem=n,o.push(n)}),i.eachSeries(function(n){var t,e,i,r,o,a;e=(t={targetModel:n,coordSysType:"cartesian2d",coordSysProvider:function(){var t=_I(n),e=t.xAxisModel,t=t.yAxisModel;return e.getCoordSysModel().coordinateSystem.getCartesian(e.componentIndex,t.componentIndex)}}).targetModel,i=t.coordSysType,r=t.coordSysProvider,o=t.isDefaultDataCoordSys,t.allowNotFound,a=(t=Ed(e)).kind,t=t.coordSysType,o&&a!==Nd.dataCoordSys&&(a=Nd.dataCoordSys,t=i),a!==Nd.none&&t===i&&(o=r(i,e))&&(a===Nd.dataCoordSys?e.coordinateSystem=o:e.boxCoordinateSystem=o)}),o},wI.dimensions=VT,wI);function wI(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=VT,this._initCartesian(t,e,n),this.model=t}function SI(t,e){return t.getCoordSysModel()===e}function MI(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],t=n.model,e=t.get(["axisLine","onZero"]),n=t.get(["axisLine","onZeroAxisIndex"]);if(e){if(null!=n)TI(o[n])&&(r=o[n]);else for(var a in o)if(o.hasOwnProperty(a)&&TI(o[a])&&!i[s(o[a])]){r=o[a];break}r&&(i[s(r)]=!0)}function s(t){return t.dim+"_"+t.index}}function TI(t){return t&&"category"!==t.type&&"time"!==t.type&&(e=(t=(t=t).scale.getExtent())[0],t=t[1],!(0<e&&0<t||e<0&&t<0));var e}function II(t,e){nt(t.x,function(t){return CI(t,e.x,e.width)}),nt(t.y,function(t){return CI(t,e.y,e.height)})}function CI(t,e,n){var i,r,n=[0,n],o=t.inverse?1:0;t.setExtent(n[o],n[1-o]),i=e,o=(n=t).getExtent(),r=o[0]+o[1],n.toGlobalCoord="x"===n.dim?function(t){return t+i}:function(t){return r-t+i},n.toLocalCoord="x"===n.dim?function(t){return t-i}:function(t){return r-t+i}}function kI(r,t,e,n,i,l,o){DI(n,i,Ix.estimate,t,!1,o);var a=[0,0,0,0],t=(s(0),s(1),u(n,0,NaN),u(n,1,NaN),null==ht(a,function(t){return 0<t}));return Zc(n,a,!0,!0,e),II(i,n),t;function s(s){nt(i[Mc[s]],function(t){if(J1(t.model)){var e=l.ensureRecord(t.model),n=e.labelInfoList;if(n)for(var i=0;i<n.length;i++){var r=n[i],o=t.scale.normalize($T(r.label).tickValue);u(r.rect,s,o=1===s?1-o:o),u(r.rect,1-s,NaN)}var a=e.nameLayout;a&&(o=Q1(e.nameLocation)?.5:NaN,u(a.rect,s,o),u(a.rect,1-s,NaN))}})}function u(t,e,n){var i=r[Mc[e]]-t[Mc[e]],t=t[Tc[e]]+t[Mc[e]]-(r[Tc[e]]+r[Mc[e]]),i=h(i,1-n),t=h(t,n),n=xI[e][0],e=xI[e][1];a[n]=wo(a[n],i),a[e]=wo(a[e],t)}function h(t,e){return 0<t&&!xt(e)&&1e-4<e&&(t/=e),t}}function DI(r,t,e,n,o,i){var a=e===Ix.determine,s=(nt(t,function(t){return nt(t,function(t){var e,n,i;J1(t.model)&&(e=t.axisBuilder,n=r,i=t.model,n=vI(r,i),e.updateCfg(n),t.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:o}))})}),{x:0,y:0});function l(t){s[Mc[1-t]]=r[Tc[t]]<=.5*i.refContainer[Tc[t]]?0:1-t==1?2:1}l(0),l(1),nt(t,function(t,e){return nt(t,function(t){J1(t.model)&&("all"!==n&&!a||t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a)&&t.axisBuilder.build({axisLine:!0})})})}var LI=function(t,e,n,i,r,o){n="x"===n.axis.dim?"y":"x";eI(t,0,0,i,r,o),Q1(t.nameLocation)||nt(e.recordMap[n],function(t){t&&t.labelInfoList&&t.dirVec&&oI(t.labelInfoList,t.dirVec,i,r)})};function AI(t,e){var h,c,r,p,d,f,o,n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return h=n,e=e,r=(c=t).getComponent("tooltip"),p=c.getComponent("axisPointer"),d=p.get("link",!0)||[],f=[],nt(e.getCoordinateSystems(),function(s){var l,u,t,e,n;function i(t,e,n){var i,r,o=n.model.getModel("axisPointer",p),a=o.get("show");a&&("auto"!==a||t||RI(o))&&(null==e&&(e=o.get("triggerTooltip")),a=(o=t?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};nt(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=y(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");e=s.label||(s.label={});null==e.show&&(e.show=!1),"cross"===r&&(r=a.get(["label","show"]),e.show=null==r||r,o||(r=s.lineStyle=a.get("crossStyle"))&&E(e,r.textStyle));return t.model.getModel("axisPointer",new Pp(s,n,i))}(n,u,p,c,t,e):o).get("snap"),t=o.get("triggerEmphasis"),i=zI(n.model),r=e||a||"category"===n.type,e=h.axesInfo[i]={key:i,axis:n,coordSys:s,axisPointerModel:o,triggerTooltip:e,triggerEmphasis:t,involveSeries:r,snap:a,useHandle:RI(o),seriesModels:[],linkGroup:null},l[i]=e,h.seriesInvolved=h.seriesInvolved||r,null!=(t=function(t,e){for(var n=e.model,i=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(PI(o[i+"AxisId"],n.id)||PI(o[i+"AxisIndex"],n.componentIndex)||PI(o[i+"AxisName"],n.name))return r}}(d,n)))&&((a=f[t]||(f[t]={axesInfo:{}})).axesInfo[i]=e,a.mapper=d[t].mapper,e.linkGroup=a)}s.axisPointerEnabled&&(t=zI(s.model),l=h.coordSysAxesInfo[t]={},u=(h.coordSysMap[t]=s).model.getModel("tooltip",r),nt(s.getAxes(),pt(i,!1,null)),s.getTooltipAxes)&&r&&u.get("show")&&(t="axis"===u.get("trigger"),e="cross"===u.get(["axisPointer","type"]),n=s.getTooltipAxes(u.get(["axisPointer","axis"])),(t||e)&&nt(n.baseAxes,pt(i,!e||"cross",t)),e)&&nt(n.otherAxes,pt(i,"cross",!1))}),n.seriesInvolved&&(o=n,t.eachSeries(function(n){var i=n.coordinateSystem,t=n.get(["tooltip","trigger"],!0),e=n.get(["tooltip","show"],!0);i&&i.model&&"none"!==t&&!1!==t&&"item"!==t&&!1!==e&&!1!==n.get(["axisPointer","show"],!0)&&nt(o.coordSysAxesInfo[zI(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 PI(t,e){return"all"===t||V(t)&&0<=k(t,e)||t===e}function OI(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[zI(t)]}function RI(t){return!!t.get(["handle","show"])}function zI(t){return t.type+"||"+t.id}var NI,EI={},BI=(u(VI,NI=rm),VI.prototype.render=function(t,e,n,i){var r,o,a,s,l,u;this.axisPointerClass&&(r=OI(r=t))&&(l=r.axisPointerModel,o=r.axis.scale,a=l.option,u=l.get("status"),null!=(s=l.get("value"))&&(s=o.parse(s)),l=RI(l),null==u&&(a.status=l?"show":"hide"),(u=o.getExtent().slice())[0]>u[1]&&u.reverse(),(s=null==s||s>u[1]?u[1]:s)<u[0]&&(s=u[0]),a.value=s,l)&&(a.status=r.axis.scale.isBlank()?"hide":"show"),NI.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},VI.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},VI.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},VI.prototype.dispose=function(t,e){this._disposeAxisPointer(e),NI.prototype.dispose.apply(this,arguments)},VI.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,r=VI.getAxisPointerClass(this.axisPointerClass);r&&((i=(i=OI(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new r)).render(t,i,e,n):this._disposeAxisPointer(e))},VI.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},VI.registerAxisPointerClass=function(t,e){EI[t]=e},VI.getAxisPointerClass=function(t){return t&&EI[t]},VI.type="axis",VI);function VI(){var t=null!==NI&&NI.apply(this,arguments)||this;return t.type=VI.type,t}var FI=oa();var HI,GI=["splitArea","splitLine","minorSplitLine","breakArea"],qu=(u(WI,HI=BI),WI.prototype.render=function(e,t,n,i){this.group.removeAll();var r=this._axisGroup;this._axisGroup=new lo,this.group.add(this._axisGroup),J1(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),nt(GI,function(t){e.get([t,"show"])&&XI[t](this,this._axisGroup,e,e.getCoordSysModel(),n)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||Gc(r,this._axisGroup,e),HI.prototype.render.call(this,e,t,n,i))},WI.prototype.remove=function(){FI(this).splitAreaColors=null},WI.type="cartesianAxis",WI);function WI(){var t=null!==HI&&HI.apply(this,arguments)||this;return t.type=WI.type,t.axisPointerClass="CartesianAxisPointer",t}var UI,XI={splitLine:function(t,e,n,i,r){var o=n.axis;if(!o.scale.isBlank())for(var n=n.getModel("splitLine"),a=n.getModel("lineStyle"),s=a.get("color"),l=!1!==n.get("showMinLine"),u=!1!==n.get("showMaxLine"),s=V(s)?s:[s],h=i.coordinateSystem.getRect(),c=o.isHorizontal(),p=0,d=o.getTicksCoords({tickModel:n,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),f=[],g=[],y=a.getLineStyle(),m=0;m<d.length;m++){var v,_=o.toGlobalCoord(d[m].coord);0===m&&!l||m===d.length-1&&!u||(v=d[m].tickValue,c?(f[0]=_,f[1]=h.y,g[0]=_,g[1]=h.y+h.height):(f[0]=h.x,f[1]=_,g[0]=h.x+h.width,g[1]=_),_=p++%s.length,Nc((v=new Oh({anid:null!=v?"line_"+v:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},style:E({stroke:s[_]},y),silent:!0})).shape,y.lineWidth),e.add(v))}},minorSplitLine:function(t,e,n,i,r){var o=n.axis,n=n.getModel("minorSplitLine").getModel("lineStyle"),a=i.coordinateSystem.getRect(),s=o.isHorizontal(),l=o.getMinorTicksCoords();if(l.length)for(var u=[],h=[],c=n.getLineStyle(),p=0;p<l.length;p++)for(var d=0;d<l[p].length;d++){var f=o.toGlobalCoord(l[p][d].coord),f=(s?(u[0]=f,u[1]=a.y,h[0]=f,h[1]=a.y+a.height):(u[0]=a.x,u[1]=f,h[0]=a.x+a.width,h[1]=f),new Oh({anid:"minor_line_"+l[p][d].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:h[0],y2:h[1]},style:c,silent:!0}));Nc(f.shape,c.lineWidth),e.add(f)}},splitArea:function(t,e,n,i,r){var o=e,e=i,a=(i=n).axis;if(!a.scale.isBlank()){var i=i.getModel("splitArea"),n=i.getModel("areaStyle"),s=n.get("color"),l=e.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var h=s.length,c=FI(t).splitAreaColors,p=it(),d=0;if(c)for(var f=0;f<u.length;f++){var g=c.get(u[f].tickValue);if(null!=g){d=(g+(h-1)*f)%h;break}}for(var y=a.toGlobalCoord(u[0].coord),m=n.getAreaStyle(),s=V(s)?s:[s],f=1;f<u.length;f++){var v=a.toGlobalCoord(u[f].coord),_=void 0,x=void 0,b=void 0,w=void 0,y=a.isHorizontal()?(_=y,x=l.y,w=l.height,_+(b=v-_)):(_=l.x,x=y,b=l.width,x+(w=v-x)),v=u[f-1].tickValue;null!=v&&p.set(v,d),o.add(new pl({anid:null!=v?"area_"+v:null,shape:{x:_,y:x,width:b,height:w},style:E({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%h}FI(t).splitAreaColors=p}}},breakArea:function(t,e,n,i,r){n.axis.scale}},YI=(u(ZI,UI=qu),ZI.type="xAxis",ZI);function ZI(){var t=null!==UI&&UI.apply(this,arguments)||this;return t.type=ZI.type,t}u(KI,qI=qu),KI.type="yAxis";var qI,jI=KI;function KI(){var t=null!==qI&&qI.apply(this,arguments)||this;return t.type=YI.type,t}u(JI,$I=rm),JI.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new pl({shape:t.coordinateSystem.getRect(),style:E({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},JI.type="grid";var $I,QI=JI;function JI(){var t=null!==$I&&$I.apply(this,arguments)||this;return t.type="grid",t}var tC={offset:0};ox(function(t){t.registerComponentView(QI),t.registerComponentModel(kT),t.registerCoordinateSystem("cartesian2d",bI),NT(t,"x",AT,tC),NT(t,"y",AT,tC),t.registerComponentView(YI),t.registerComponentView(jI),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})});u(iC,eC=g),iC.type="title",iC.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:v.size.m,backgroundColor:v.color.transparent,borderColor:v.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:v.color.primary},subtextStyle:{fontSize:12,color:v.color.quaternary}};var eC,nC=iC;function iC(){var t=null!==eC&&eC.apply(this,arguments)||this;return t.type=iC.type,t.layoutMode={type:"box",ignoreSize:!0},t}u(aC,rC=rm),aC.prototype.render=function(t,e,n){var i,r,o,a,s,l,u,h,c;this.group.removeAll(),t.get("show")&&(i=this.group,u=t.getModel("textStyle"),r=t.getModel("subtextStyle"),h=t.get("textAlign"),c=G(t.get("textBaseline"),t.get("textVerticalAlign")),s=(u=new vl({style:hp(u,{text:t.get("text"),fill:u.getTextColor()},{disableBox:!0}),z2:10})).getBoundingRect(),l=t.get("subtext"),r=new vl({style:hp(r,{text:l,fill:r.getTextColor(),y:s.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),o=t.get("link"),a=t.get("sublink"),s=t.get("triggerEvent",!0),u.silent=!o&&!s,r.silent=!a&&!s,o&&u.on("click",function(){Dd(o,"_"+t.get("target"))}),a&&r.on("click",function(){Dd(a,"_"+t.get("subtarget"))}),U(u).eventData=U(r).eventData=s?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(u),l&&i.add(r),s=i.getBoundingRect(),(l=t.getBoxLayoutParams()).width=s.width,l.height=s.height,l=Ud(l,Yd(t,n).refContainer,t.get("padding")),h||("right"===(h="middle"===(h=t.get("left")||t.get("right"))?"center":h)?l.x+=l.width:"center"===h&&(l.x+=l.width/2)),c||("bottom"===(c="center"===(c=t.get("top")||t.get("bottom"))?"middle":c)?l.y+=l.height:"middle"===c&&(l.y+=l.height/2),c=c||"top"),i.x=l.x,i.y=l.y,i.markRedraw(),u.setStyle(n={align:h,verticalAlign:c}),r.setStyle(n),s=i.getBoundingRect(),u=l.margin,(h=t.getItemStyle(["color","opacity"])).fill=t.get("backgroundColor"),c=new pl({shape:{x:s.x-u[3],y:s.y-u[0],width:s.width+u[1]+u[3],height:s.height+u[0]+u[2],r:t.get("borderRadius")},style:h,subPixelOptimize:!0,silent:!0}),i.add(c))},aC.type="title";var rC,oC=aC;function aC(){var t=null!==rC&&rC.apply(this,arguments)||this;return t.type=aC.type,t}ox(function(t){t.registerComponentModel(nC),t.registerComponentView(oC)});u(uC,sC=g),uC.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},uC.prototype.mergeOption=function(t,e){sC.prototype.mergeOption.call(this,t,e),this._updateSelector(t)},uC.prototype._updateSelector=function(t){var n=t.selector,i=this.ecModel;V(n=!0===n?t.selector=["all","inverse"]:n)&&nt(n,function(t,e){F(t)&&(t={type:t}),n[e]=d(t,(e=i,"all"===(t=t.type)?{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])}:"inverse"===t?{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}:void 0))})},uC.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"))}},uC.prototype._updateData=function(i){var r=[],o=[],t=(i.eachRawSeries(function(t){var e,n=t.name;o.push(n),t.legendVisualProvider&&(n=t.legendVisualProvider.getAllNames(),i.isSeriesFiltered(t)||(o=o.concat(n)),n.length)?r=r.concat(n):e=!0,e&&ea(t)&&r.push(t.name)}),this._availableNames=o,this.get("data")||r),e=it(),t=B(t,function(t){return(F(t)||H(t))&&(t={name:t}),e.get(t.name)?null:(e.set(t.name,!0),new Pp(t,this,this.ecModel))},this);this._data=ut(t,function(t){return!!t})},uC.prototype.getData=function(){return this._data},uC.prototype.select=function(t){var e=this.option.selected;"single"===this.get("selectedMode")&&nt(this._data,function(t){e[t.get("name")]=!1}),e[t]=!0},uC.prototype.unSelect=function(t){"single"!==this.get("selectedMode")&&(this.option.selected[t]=!1)},uC.prototype.toggleSelected=function(t){var e=this.option.selected;e.hasOwnProperty(t)||(e[t]=!0),this[e[t]?"unSelect":"select"](t)},uC.prototype.allSelect=function(){var t=this._data,e=this.option.selected;nt(t,function(t){e[t.get("name",!0)]=!0})},uC.prototype.inverseSelect=function(){var t=this._data,e=this.option.selected;nt(t,function(t){t=t.get("name",!0);e.hasOwnProperty(t)||(e[t]=!0),e[t]=!e[t]})},uC.prototype.isSelected=function(t){var e=this.option.selected;return!(e.hasOwnProperty(t)&&!e[t])&&0<=k(this._availableNames,t)},uC.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},uC.type="legend.plain",uC.dependencies=["series"],uC.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:v.size.m,align:"auto",backgroundColor:v.color.transparent,borderColor:v.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:v.color.disabled,inactiveBorderColor:v.color.disabled,inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:v.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:v.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:v.color.tertiary,borderWidth:1,borderColor:v.color.border},emphasis:{selectorLabel:{show:!0,color:v.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1};var sC,lC=uC;function uC(){var t=null!==sC&&sC.apply(this,arguments)||this;return t.type=uC.type,t.layoutMode={type:"box",ignoreSize:!0},t}var hC,cC=pt,pC=nt,dC=lo,fC=(u(gC,hC=rm),gC.prototype.init=function(){this.group.add(this._contentGroup=new dC),this.group.add(this._selectorGroup=new dC),this._isFirstRender=!0},gC.prototype.getContentGroup=function(){return this._contentGroup},gC.prototype.getSelectorGroup=function(){return this._selectorGroup},gC.prototype.render=function(t,e,n){var i,r,o,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),this.renderInner(i,t,e,n,o,s,a=!o||a&&"auto"!==a?a:"horizontal"===s?"end":"start"),e=Yd(t,n).refContainer,r=Ud(s=t.getBoxLayoutParams(),e,n=t.get("padding")),r=Ud(E({width:(i=this.layoutInner(t,i,r,l,o,a)).width,height:i.height},s),e,n),this.group.x=r.x-i.x,this.group.y=r.y-i.y,this.group.markRedraw(),this.group.add(this._backgroundEl=(l=i,a=wd((o=t).get("padding")),(s=o.getItemStyle(["color","opacity"])).fill=o.get("backgroundColor"),new pl({shape:{x:l.x-a[3],y:l.y-a[0],width:l.width+a[1]+a[3],height:l.height+a[0]+a[2],r:o.get("borderRadius")},style:s,silent:!0,z2:-1}))))},gC.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},gC.prototype.renderInner=function(l,u,h,c,t,e,n){var p=this.getContentGroup(),d=it(),f=u.get("selectedMode"),g=u.get("triggerEvent"),y=[];h.eachRawSeries(function(t){t.get("legendHoverLink")||y.push(t.id)}),pC(u.getData(),function(o,a){var e,t,n,i,r=this,s=o.get("name");this.newlineDisabled||""!==s&&"\n"!==s?(e=h.getSeriesByName(s)[0],d.get(s)||(e?(i=(n=e.getData()).getVisual("legendLineStyle")||{},t=n.getVisual("legendIcon"),n=n.getVisual("style"),(i=this._createItem(e,s,a,o,u,l,i,n,t,f,c)).on("click",cC(yC,s,null,c,y)).on("mouseover",cC(vC,e.name,null,c,y)).on("mouseout",cC(_C,e.name,null,c,y)),h.ssr&&i.eachChild(function(t){t=U(t);t.seriesIndex=e.seriesIndex,t.dataIndex=a,t.ssrType="legend"}),g&&i.eachChild(function(t){r.packEventData(t,u,e,a,s)}),d.set(s,!0)):h.eachRawSeries(function(e){var t,n,i,r=this;d.get(s)||e.legendVisualProvider&&(n=e.legendVisualProvider).containName(s)&&(i=n.indexOfName(s),t=n.getItemVisual(i,"style"),n=n.getItemVisual(i,"legendIcon"),(i=ki(t.fill))&&0===i[3]&&(i[3]=.2,t=P(P({},t),{fill:Ni(i,"rgba")})),(i=this._createItem(e,s,a,o,u,l,{},t,n,f,c)).on("click",cC(yC,null,s,c,y)).on("mouseover",cC(vC,null,s,c,y)).on("mouseout",cC(_C,null,s,c,y)),h.ssr&&i.eachChild(function(t){t=U(t);t.seriesIndex=e.seriesIndex,t.dataIndex=a,t.ssrType="legend"}),g&&i.eachChild(function(t){r.packEventData(t,u,e,a,s)}),d.set(s,!0))},this))):((n=new dC).newline=!0,p.add(n))},this),t&&this._createSelector(t,u,c,e,n)},gC.prototype.packEventData=function(t,e,n,i,r){e={componentType:"legend",componentIndex:e.componentIndex,dataIndex:i,value:r,seriesIndex:n.seriesIndex};U(t).eventData=e},gC.prototype._createSelector=function(t,i,r,e,n){var o=this.getSelectorGroup();pC(t,function(t){var e=t.type,n=new vl({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){r.dispatchAction({type:"all"===e?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});o.add(n),lp(n,{normal:i.getModel("selectorLabel"),emphasis:i.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),vu(n)})},gC.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,h){var c=t.visualDrawType,p=r.get("itemWidth"),d=r.get("itemHeight"),f=r.isSelected(e),g=i.get("symbolRotate"),y=i.get("symbolKeepAspect"),m=i.get("icon"),a=function(t,e,n,i,r,o,a){function s(n,i){"auto"===n.lineWidth&&(n.lineWidth=0<i.lineWidth?2:0),pC(n,function(t,e){"inherit"===n[e]&&(n[e]=i[e])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),t=0===t.lastIndexOf("empty",0)?"fill":"stroke",l=l.getShallow("decal");u.decal=l&&"inherit"!==l?H0(l,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]);"inherit"===u.stroke&&(u.stroke=i[t]);"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity);s(u,i);l=e.getModel("lineStyle"),a=l.getLineStyle();s(a,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===a.stroke&&(a.stroke=i.fill),o||(r=e.get("inactiveBorderWidth"),n=u[t],u.lineWidth="auto"===r?0<i.lineWidth&&n?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),a.stroke=l.get("inactiveColor"),a.lineWidth=l.get("inactiveWidth"));return{itemStyle:u,lineStyle:a}}(l=m||l||"roundRect",i,a,s,c,f,h),s=new dC,c=i.getModel("textStyle"),m=(!z(t.getLegendIcon)||m&&"inherit"!==m?(h="inherit"===m&&t.getData().getVisual("symbol")?"inherit"===g?t.getData().getVisual("symbolRotate"):g:0,s.add(function(t){var e=t.icon||"roundRect",n=c0(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),-1<e.indexOf("empty")&&(n.style.stroke=n.style.fill,n.style.fill=v.color.neutral00,n.style.lineWidth=2);return n}({itemWidth:p,itemHeight:d,icon:l,iconRotate:h,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y}))):s.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:l,iconRotate:g,itemStyle:a.itemStyle,lineStyle:a.lineStyle,symbolKeepAspect:y})),"left"===o?p+5:-5),h=o,t=r.get("formatter"),l=e,g=(F(t)&&t?l=t.replace("{name}",null!=e?e:""):z(t)&&(l=t(e)),f?c.getTextColor():i.get("inactiveColor")),a=(s.add(new vl({style:hp(c,{text:l,x:m,y:d/2,fill:g,align:h,verticalAlign:"middle"},{inheritColor:g})})),new pl({shape:s.getBoundingRect(),style:{fill:"transparent"}})),y=i.getModel("tooltip");return y.get("show")&&Kc({el:a,componentModel:r,itemName:e,itemTooltipOption:y.option}),s.add(a),s.eachChild(function(t){t.silent=!0}),a.silent=!u,this.getContentGroup().add(s),vu(s),s.__legendDataIndex=n,s},gC.prototype.layoutInner=function(t,e,n,i,r,o){var a,s,l,u,h,c=this.getContentGroup(),p=this.getSelectorGroup(),n=(Gd(t.get("orient"),c,t.get("itemGap"),n.width,n.height),c.getBoundingRect()),d=[-n.x,-n.y];return p.markRedraw(),c.markRedraw(),r?(Gd("horizontal",p,t.get("selectorItemGap",!0)),a=[-(r=p.getBoundingRect()).x,-r.y],s=t.get("selectorButtonGap",!0),l=0===(t=t.getOrient().index)?"width":"height",u=0===t?"height":"width",h=0===t?"y":"x","end"===o?a[t]+=n[l]+s:d[t]+=r[l]+s,a[1-t]+=n[u]/2-r[u]/2,p.x=a[0],p.y=a[1],c.x=d[0],c.y=d[1],(o={x:0,y:0})[l]=n[l]+s+r[l],o[u]=Math.max(n[u],r[u]),o[h]=Math.min(0,r[h]+a[1-t]),o):(c.x=d[0],c.y=d[1],this.group.getBoundingRect())},gC.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},gC.type="legend.plain",gC);function gC(){var t=null!==hC&&hC.apply(this,arguments)||this;return t.type=gC.type,t.newlineDisabled=!1,t}function yC(t,e,n,i){_C(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),vC(t,e,n,i)}function mC(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i<r&&!(e=n[i].states.emphasis);)i++;return e&&e.hoverLayer}function vC(t,e,n,i){mC(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:i})}function _C(t,e,n,i){mC(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:i})}function xC(t){var n=t.findComponents({mainType:"legend"});n&&n.length&&t.filterSeries(function(t){for(var e=0;e<n.length;e++)if(!n[e].isSelected(t.name))return!1;return!0})}function bC(e,n,t){var i="allSelect"===e||"inverseSelect"===e,r={},o=[],a=(t.eachComponent({mainType:"legend",query:n},function(t){i?t[e]():t[e](n.name),wC(t,r),o.push(t.componentIndex)}),{});return t.eachComponent("legend",function(n){nt(r,function(t,e){n[t?"select":"unSelect"](e)}),wC(n,a)}),i?{selected:a,legendIndex:o}:{name:n.name,selected:a}}function wC(n,t){var i=t||{};nt(n.getData(),function(t){var e,t=t.get("name");"\n"!==t&&""!==t&&(e=n.isSelected(t),Bt(i,t)?i[t]=i[t]&&e:i[t]=e)})}function SC(t){t.registerComponentModel(lC),t.registerComponentView(fC),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,xC),t.registerSubTypeDefaulter("legend",function(){return"plain"}),(t=t).registerAction("legendToggleSelect","legendselectchanged",pt(bC,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",pt(bC,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",pt(bC,"inverseSelect")),t.registerAction("legendSelect","legendselected",pt(bC,"select")),t.registerAction("legendUnSelect","legendunselected",pt(bC,"unSelect"))}u(IC,MC=lC),IC.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},IC.prototype.init=function(t,e,n){var i=jd(t);MC.prototype.init.call(this,t,e,n),CC(this,t,i)},IC.prototype.mergeOption=function(t,e){MC.prototype.mergeOption.call(this,t,e),CC(this,this.option,t)},IC.type="legend.scroll",IC.defaultOption=Np(lC.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:v.color.accent50,pageIconInactiveColor:v.color.accent10,pageIconSize:15,pageTextStyle:{color:v.color.tertiary},animationDurationUpdate:800});var MC,TC=IC;function IC(){var t=null!==MC&&MC.apply(this,arguments)||this;return t.type=IC.type,t}function CC(t,e,n){var i=[1,1];i[t.getOrient().index]=0,qd(e,n,{type:"box",ignoreSize:!!i})}var kC,DC=lo,LC=["width","height"],AC=["x","y"],PC=(u(OC,kC=fC),OC.prototype.init=function(){kC.prototype.init.call(this),this.group.add(this._containerGroup=new DC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new DC)},OC.prototype.resetInner=function(){kC.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},OC.prototype.renderInner=function(t,i,e,r,n,o,a){var s=this,l=(kC.prototype.renderInner.call(this,t,i,e,r,n,o,a),this._controllerGroup),t=i.get("pageIconSize",!0),u=V(t)?t:[t,t],e=(h("pagePrev",0),i.getModel("pageTextStyle"));function h(t,e){var n=t+"DataIndex",e=Xc(i.get("pageIcons",!0)[i.getOrient().name][e],{onclick:S(s._pageGo,s,n,i,r)},{x:-u[0]/2,y:-u[1]/2,width:u[0],height:u[1]});e.name=t,l.add(e)}l.add(new vl({name:"pageText",style:{text:"xx/xx",fill:e.getTextColor(),font:e.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),h("pageNext",1)},OC.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getSelectorGroup(),s=t.getOrient().index,l=LC[s],u=AC[s],h=LC[1-s],c=AC[1-s],p=(r&&Gd("horizontal",a,t.get("selectorItemGap",!0)),t.get("selectorButtonGap",!0)),d=a.getBoundingRect(),f=[-d.x,-d.y],g=y(n),n=(r&&(g[l]=n[l]-d[l]-p),this._layoutContentAndController(t,i,g,s,l,h,c,u));return r&&("end"===o?f[s]+=n[l]+p:(t=d[l]+p,f[s]-=t,n[u]-=t),n[l]+=d[l]+p,f[1-s]+=n[c]+n[h]/2-d[h]/2,n[h]=Math.max(n[h],d[h]),n[c]=Math.min(n[c],d[c]+f[1-s]),a.x=f[0],a.y=f[1],a.markRedraw()),n},OC.prototype._layoutContentAndController=function(t,e,n,i,r,o,a,s){var l=this.getContentGroup(),u=this._containerGroup,h=this._controllerGroup,c=(Gd(t.get("orient"),l,t.get("itemGap"),i?n.width:null,i?null:n.height),Gd("horizontal",h,t.get("pageButtonItemGap",!0)),l.getBoundingRect()),p=h.getBoundingRect(),d=this._showController=c[r]>n[r],f=[-c.x,-c.y],e=(e||(f[i]=l[s]),[0,0]),s=[-p.x,-p.y],g=G(t.get("pageButtonGap",!0),t.get("itemGap",!0)),f=(d&&("end"===t.get("pageButtonPosition",!0)?s[i]+=n[r]-p[r]:e[i]+=p[r]+g),s[1-i]+=c[o]/2-p[o]/2,l.setPosition(f),u.setPosition(e),h.setPosition(s),{x:0,y:0}),c=(f[r]=(d?n:c)[r],f[o]=Math.max(c[o],p[o]),f[a]=Math.min(0,p[a]+s[1-i]),u.__rectSize=n[r],d?((e={x:0,y:0})[r]=Math.max(n[r]-p[r]-g,0),e[o]=f[o],u.setClipPath(new pl({shape:e})),u.__rectSize=e[r]):h.eachChild(function(t){t.attr({invisible:!0,silent:!0})}),this._getPageInfo(t));return null!=c.pageIndex&&yc(l,{x:c.contentPosition[0],y:c.contentPosition[1]},d?t:null),this._updatePageInfoView(t,c),f},OC.prototype._pageGo=function(t,e,n){t=this._getPageInfo(e)[t];null!=t&&n.dispatchAction({type:"legendScroll",scrollDataIndex:t,legendId:e.id})},OC.prototype._updatePageInfoView=function(n,i){var r=this._controllerGroup,t=(nt(["pagePrev","pageNext"],function(t){var e=null!=i[t+"DataIndex"],t=r.childOfName(t);t&&(t.setStyle("fill",e?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),t.cursor=e?"pointer":"default")}),r.childOfName("pageText")),e=n.get("pageFormatter"),o=i.pageIndex,o=null!=o?o+1:0,a=i.pageCount;t&&e&&t.setStyle("text",F(e)?e.replace("{current}",null==o?"":o+"").replace("{total}",null==a?"":a+""):e({current:o,total:a}))},OC.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,t=t.getOrient().index,r=LC[t],o=AC[t],e=this._findTargetItemIndex(e),a=n.children(),s=a[e],l=a.length,u=l?1:0,h={contentPosition:[n.x,n.y],pageCount:u,pageIndex:u-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(s){n=g(s);h.contentPosition[t]=-n.s;for(var c=e+1,p=n,d=n,f=null;c<=l;++c)(!(f=g(a[c]))&&d.e>p.s+i||f&&!y(f,p.s))&&(p=d.i>p.i?d:f)&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=p.i),++h.pageCount),d=f;for(c=e-1,p=n,d=n,f=null;-1<=c;--c)(f=g(a[c]))&&y(d,f.s)||!(p.i<d.i)||(d=p,null==h.pagePrevDataIndex&&(h.pagePrevDataIndex=p.i),++h.pageCount,++h.pageIndex),p=f}return h;function g(t){var e,n;if(t)return{s:n=(e=t.getBoundingRect())[o]+t[o],e:n+e[r],i:t.__legendDataIndex}}function y(t,e){return t.e>=e&&t.s<=e+i}},OC.prototype._findTargetItemIndex=function(n){var i,r;return this._showController?(this.getContentGroup().eachChild(function(t,e){t=t.__legendDataIndex;null==r&&null!=t&&(r=e),t===n&&(i=e)}),null!=i?i:r):0},OC.type="legend.scroll",OC);function OC(){var t=null!==kC&&kC.apply(this,arguments)||this;return t.type=OC.type,t.newlineDisabled=!0,t._currentIndex=0,t}ox(function(t){ox(SC),t.registerComponentModel(TC),t.registerComponentView(PC),t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})});var RC=oa(),zC=y,NC=S;function EC(){this._dragging=!1,this.animationThreshold=15}function BC(t,e,n,i){!function n(i,t){{var r;return N(i)&&N(t)?(r=!0,nt(t,function(t,e){r=r&&n(i[e],t)}),!!r):i===t}}(RC(n).lastProp,i)&&(RC(n).lastProp=i,e?yc(n,i,t):(n.stopAnimation(),n.attr(i)))}function VC(t,e){t[e.get(["label","show"])?"show":"hide"]()}function FC(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function HC(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)})}function GC(t,e,n,i,r){var o=WC(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),n=n.getModel("label"),a=wd(n.get("padding")||0),s=n.getFont(),l=Wr(o,s),u=r.position,h=l.width+a[1]+a[3],l=l.height+a[0]+a[2],c=r.align,c=("right"===c&&(u[0]-=h),"center"===c&&(u[0]-=h/2),r.verticalAlign),i=("bottom"===c&&(u[1]-=l),"middle"===c&&(u[1]-=l/2),r=u,c=h,h=l,i=(l=i).getWidth(),l=l.getHeight(),r[0]=Math.min(r[0]+c,i)-c,r[1]=Math.min(r[1]+h,l)-h,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0),n.get("backgroundColor"));i&&"auto"!==i||(i=e.get(["axisLine","lineStyle","color"])),t.label={x:u[0],y:u[1],style:hp(n,{text:o,font:s,fill:n.getTextColor(),padding:a,backgroundColor:i}),z2:10}}function WC(t,e,n,i,r){t=e.scale.parse(t);var o,a=e.scale.getLabel({value:t},{precision:r.precision}),r=r.formatter;return r&&(o={value:j1(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]},nt(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,e=e&&e.getDataParams(t);e&&o.seriesData.push(e)}),F(r)?a=r.replace("{value}",a):z(r)&&(a=r(o))),a}function UC(t,e,n){var i=ze();return Fe(i,i,n.rotation),Ve(i,i,n.position),Vc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}EC.prototype.render=function(t,e,n,i){var r,o,a=e.get("value"),s=e.get("status");this._axisModel=t,this._axisPointerModel=e,this._api=n,!i&&this._lastValue===a&&this._lastStatus===s||(this._lastValue=a,this._lastStatus=s,i=this._group,r=this._handle,s&&"hide"!==s?(i&&i.show(),r&&r.show(),this.makeElOption(s={},a,t,e,n),(o=s.graphicKey)!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=o,o=this._moveAnimation=this.determineAnimation(t,e),i?(o=pt(BC,e,o),this.updatePointerEl(i,s,o),this.updateLabelEl(i,s,o,e)):(i=this._group=new lo,this.createPointerEl(i,s,t,e),this.createLabelEl(i,s,t,e),n.getZr().add(i)),HC(i,e,!0),this._renderHandle(a)):(i&&i.hide(),r&&r.hide()))},EC.prototype.remove=function(t){this.clear(t)},EC.prototype.dispose=function(t){this.clear(t)},EC.prototype.determineAnimation=function(t,e){var n,i=e.get("animation"),r=t.axis,o="category"===r.type,e=e.get("snap");return!(!e&&!o)&&("auto"===i||null==i?(n=this.animationThreshold,o&&r.getBandWidth()>n||!!e&&(o=OI(t).seriesDataCount,e=r.getExtent(),Math.abs(e[0]-e[1])/o>n)):!0===i)},EC.prototype.makeElOption=function(t,e,n,i,r){},EC.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;r&&(r=RC(t).pointerEl=new rp[r.type](zC(e.pointer)),t.add(r))},EC.prototype.createLabelEl=function(t,e,n,i){e.label&&(e=RC(t).labelEl=new vl(zC(e.label)),t.add(e),VC(e,i))},EC.prototype.updatePointerEl=function(t,e,n){t=RC(t).pointerEl;t&&e.pointer&&(t.setStyle(e.pointer.style),n(t,{shape:e.pointer.shape}))},EC.prototype.updateLabelEl=function(t,e,n,i){t=RC(t).labelEl;t&&(t.setStyle(e.label.style),n(t,{x:e.label.x,y:e.label.y}),VC(t,i))},EC.prototype._renderHandle=function(t){var e,n,i,r,o,a;!this._dragging&&this.updateHandleTransform&&(e=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=e.getModel("handle"),a=e.get("status"),r.get("show")&&a&&"hide"!==a?(this._handle||(o=!0,i=this._handle=Xc(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){De(t.event)},onmousedown:NC(this._onHandleDragMove,this,0,0),drift:NC(this._onHandleDragMove,this),ondragend:NC(this._onHandleDragEnd,this)}),n.add(i)),HC(i,e,!1),i.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"])),V(a=r.get("size"))||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,xm(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,o)):(i&&n.remove(i),this._handle=null))},EC.prototype._moveHandleToValue=function(t,e){BC(this._axisPointerModel,!e&&this._moveAnimation,this._handle,FC(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},EC.prototype._onHandleDragMove=function(t,e){var n=this._handle;n&&(this._dragging=!0,t=this.updateHandleTransform(FC(n),[t,e],this._axisModel,this._axisPointerModel),this._payloadInfo=t,n.stopAnimation(),n.attr(FC(t)),RC(n).lastProp=null,this._doDispatchAxisPointer())},EC.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}]}))},EC.prototype._onHandleDragEnd=function(){var t;this._dragging=!1,this._handle&&(t=this._axisPointerModel.get("value"),this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"}))},EC.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var t=t.getZr(),e=this._group,n=this._handle;t&&e&&(this._lastGraphicKey=null,e&&t.remove(e),n&&t.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),bm(this,"_doDispatchAxisPointer")},EC.prototype.doClear=function(){},EC.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}};u(ZC,XC=EC),ZC.prototype.makeElOption=function(t,e,n,i,r){var o,a,s=n.axis,l=s.grid,u=i.get("type"),h=qC(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(e,!0)),p=(u&&"none"!==u&&(o=(a=i).get("type"),a=a.getModel(o+"Style"),"line"===o?(p=a.getLineStyle()).fill=null:"shadow"===o&&((p=a.getAreaStyle()).stroke=null),o=p,(a=jC[u](s,c,h)).style=o,t.graphicKey=a.type,t.pointer=a),vI(l.getRect(),n));u=e,s=t,c=p,h=n,o=i,a=r,l=aI.innerTextLayout(c.rotation,0,c.labelDirection),c.labelMargin=o.get(["label","margin"]),GC(s,h,o,a,{position:UC(h.axis,u,c),align:l.textAlign,verticalAlign:l.textVerticalAlign})},ZC.prototype.getHandleTransform=function(t,e,n){var i=vI(e.axis.grid.getRect(),e,{labelInside:!1}),n=(i.labelMargin=n.get(["handle","margin"]),UC(e.axis,t,i));return{x:n[0],y:n[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},ZC.prototype.updateHandleTransform=function(t,e,n,i){var n=n.axis,r=n.grid,o=n.getGlobalExtent(!0),r=qC(r,n).getOtherAxis(n).getGlobalExtent(),n="x"===n.dim?0:1,a=[t.x,t.y],e=(a[n]+=e[n],a[n]=Math.min(o[1],a[n]),a[n]=Math.max(o[0],a[n]),(r[1]+r[0])/2),o=[e,e];o[n]=a[n];return{x:a[0],y:a[1],rotation:t.rotation,cursorPoint:o,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][n]}};var XC,YC=ZC;function ZC(){return null!==XC&&XC.apply(this,arguments)||this}function qC(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var jC={line:function(t,e,n){var i;return i=[e,n[0]],e=[e,n[1]],n=KC(t),{type:"Line",subPixelOptimize:!0,shape:{x1:i[n=n||0],y1:i[1-n],x2:e[n],y2:e[1-n]}}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:(e=[e-i/2,n[0]],n=[i,r],i=KC(t),{x:e[i=i||0],y:e[1-i],width:n[i],height:n[1-i]})}}};function KC(t){return"x"===t.dim?0:1}u(JC,$C=g),JC.type="axisPointer",JC.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:v.color.border,width:1,type:"dashed"},shadowStyle:{color:v.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:v.color.neutral00,padding:[5,7,5,7],backgroundColor:v.color.accent60,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:v.color.accent40,throttle:40}};var $C,QC=JC;function JC(){var t=null!==$C&&$C.apply(this,arguments)||this;return t.type=JC.type,t}var t2=oa(),e2=nt;function n2(t,e,n){var i,c,p;function r(t,h){c.on(t,function(e){n=p;var n,i,r={dispatchAction:o,pendings:i={showTip:[],hideTip:[]}};function o(t){var e=i[t.type];e?e.push(t):(t.dispatchAction=o,n.dispatchAction(t))}e2(t2(c).records,function(t){t&&h(t,e,r.dispatchAction)});var t,a=r.pendings,s=p,l=a.showTip.length,u=a.hideTip.length;l?t=a.showTip[l-1]:u&&(t=a.hideTip[u-1]),t&&(t.dispatchAction=null,s.dispatchAction(t))})}w.node||(i=e.getZr(),t2(i).records||(t2(i).records={}),p=e,t2(c=i).initialized||(t2(c).initialized=!0,r("click",pt(r2,"click")),r("mousemove",pt(r2,"mousemove")),r("globalout",i2)),(t2(i).records[t]||(t2(i).records[t]={})).handler=n)}function i2(t,e,n){t.handler("leave",null,n)}function r2(t,e,n,i){e.handler(t,n,i)}function o2(t,e){w.node||(e=e.getZr(),(t2(e).records||{})[t]&&(t2(e).records[t]=null))}u(l2,a2=rm),l2.prototype.render=function(t,e,n){var e=e.getComponent("tooltip"),i=t.get("triggerOn")||e&&e.get("triggerOn")||"mousemove|click";n2("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})})},l2.prototype.remove=function(t,e){o2("axisPointer",e)},l2.prototype.dispose=function(t,e){o2("axisPointer",e)},l2.type="axisPointer";var a2,s2=l2;function l2(){var t=null!==a2&&a2.apply(this,arguments)||this;return t.type=l2.type,t}function u2(t,e){var n,i,r,o,a=[],s=t.seriesIndex;return null==s||!(e=e.getSeriesByIndex(s))||null==(s=ra(n=e.getData(),t))||s<0||V(s)?{point:[]}:(i=n.getItemGraphicEl(s),r=e.coordinateSystem,e.getTooltipPosition?a=e.getTooltipPosition(s)||[]:r&&r.dataToPoint?a=t.isStacked?(e=r.getBaseAxis(),t=r.getOtherAxis(e).dim,e=e.dim,t="x"===t||"radius"===t?1:0,e=n.mapDimension(e),(o=[])[t]=n.get(e,s),o[1-t]=n.get(n.getCalculationInfo("stackResultDimension"),s),r.dataToPoint(o)||[]):r.dataToPoint(n.getValues(B(r.dimensions,function(t){return n.mapDimension(t)}),s))||[]:i&&((e=i.getBoundingRect().clone()).applyTransform(i.transform),a=[e.x+e.width/2,e.y+e.height/2]),{point:a,el:i})}var h2=oa();function c2(t,e,n){var o,a,i,s,l,r,u,h,c,p,d,f,g,y,m=t.currTrigger,v=[t.x,t.y],_=t,x=t.dispatchAction||S(n.dispatchAction,n),b=e.getComponent("axisPointer").coordSysAxesInfo;if(b)return y2(v)&&(v=u2({seriesIndex:_.seriesIndex,dataIndex:_.dataIndex},e).point),o=y2(v),a=_.axesInfo,i=b.axesInfo,s="leave"===m||y2(v),l={},e={list:[],map:{}},u={showPointer:pt(d2,r={}),showTooltip:pt(f2,e)},nt(b.coordSysMap,function(t,e){var r=o||t.containPoint(v);nt(b.coordSysAxesInfo[e],function(t,e){var n=t.axis,i=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(a,t);s||!r||a&&!i||null!=(i=null!=(i=i&&i.value)||o?i:n.pointToData(v))&&p2(t,i,u,!1,l)})}),h={},nt(i,function(n,t){var i=n.linkGroup;i&&!r[t]&&nt(i.axesInfo,function(t,e){var e=r[e];t!==n&&e&&(e=e.value,i.mapper&&(e=n.axis.scale.parse(i.mapper(e,g2(t),g2(n)))),h[n.key]=e)})}),nt(h,function(t,e){p2(i[e],t,u,!0,l)}),c=r,_=i,p=l.axesInfo=[],nt(_,function(t,e){var n=t.axisPointerModel.option,e=c[e];e?(t.useHandle||(n.status="show"),n.value=e.value,n.seriesDataIndices=(e.payloadBatch||[]).slice()):t.useHandle||(n.status="hide"),"show"===n.status&&p.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:n.value})}),m=e,_=t,e=x,y2(t=v)||!m.list.length?e({type:"hideTip"}):(x=((m.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{},e({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:_.tooltipOption,position:_.position,dataIndexInside:x.dataIndexInside,dataIndex:x.dataIndex,seriesIndex:x.seriesIndex,dataByCoordSys:m.list})),e=i,_=(t=n).getZr(),x="axisPointerLastHighlights",d=h2(_)[x]||{},f=h2(_)[x]={},nt(e,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&nt(n.seriesDataIndices,function(t){var e=t.seriesIndex+" | "+t.dataIndex;f[e]=t})}),g=[],y=[],nt(d,function(t,e){f[e]||y.push(t)}),nt(f,function(t,e){d[e]||g.push(t)}),y.length&&t.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:y}),g.length&&t.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:g}),l}function p2(t,e,n,i,r){var o,a,s,l,u,h,c,p,d,f,g=t.axis;!g.scale.isBlank()&&g.containData(e)&&(t.involveSeries?(a=e,s=t.axis,l=s.dim,u=a,h=[],c=Number.MAX_VALUE,p=-1,nt(t.seriesModels,function(e,t){var n,i=e.getData().mapDimensionsAll(l);if(e.getAxisTooltipData)var r=e.getAxisTooltipData(i,a,s),o=r.dataIndices,r=r.nestestValue;else{if(!(o=e.indicesOfNearest(l,i[0],a,"category"===s.type?.5:null)).length)return;r=e.getData().get(i[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),nt(o,function(t){h.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}),f=(o={payloadBatch:h,snapToValue:u}).snapToValue,(d=o.payloadBatch)[0]&&null==r.seriesIndex&&P(r,d[0]),!i&&t.snap&&g.containData(f)&&null!=f&&(e=f),n.showPointer(t,e,d),n.showTooltip(t,o,f)):n.showPointer(t,e))}function d2(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function f2(t,e,n,i){var r,o,n=n.payloadBatch,a=e.axis,s=a.model,l=e.axisPointerModel;e.triggerTooltip&&n.length&&(r=zI(e=e.coordSys.model),(o=t.map[r])||(o=t.map[r]={coordSysId:e.id,coordSysIndex:e.componentIndex,coordSysType:e.type,coordSysMainType:e.mainType,dataByAxis:[]},t.list.push(o)),o.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:n.slice()}))}function g2(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 y2(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function m2(t){BI.registerAxisPointerClass("CartesianAxisPointer",YC),t.registerComponentModel(QC),t.registerComponentView(s2),t.registerPreprocessor(function(t){var e;t&&(t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={}),e=t.axisPointer.link)&&!V(e)&&(t.axisPointer.link=[e])}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=AI(t,e)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},c2)}u(x2,v2=g),x2.type="tooltip",x2.dependencies=["axisPointer"],x2.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:v.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:v.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:v.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:v.color.tertiary,fontSize:14}};var v2,_2=x2;function x2(){var t=null!==v2&&v2.apply(this,arguments)||this;return t.type=x2.type,t}function b2(t){var e=t.get("confine");return null!=e?e:"richText"===t.get("renderMode")}function w2(t){if(w.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n<i;n++)if(t[n]in e)return t[n]}var S2=w2(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function M2(t,e){if(!t)return e;e=bd(e,!0);var n=t.indexOf(e);return(t=-1===n?e:"-"+t.slice(0,n)+"-"+e).toLowerCase()}var T2=M2(w2(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),I2=M2(S2,"transform"),C2="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(w.transform3dSupported?"will-change:transform;":"");function k2(t,e,n){var i,t=t.toFixed(0)+"px",e=e.toFixed(0)+"px";return w.transformSupported?(i="translate"+((i=w.transform3dSupported)?"3d":"")+"("+t+","+e+(i?",0":"")+")",n?"top:0;left:0;"+I2+":"+i+";":[["top",0],["left",0],[S2,i]]):n?"top:"+e+";left:"+t+";":[["top",e],["left",t]]}function D2(i,t,e,n){var r,o,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=Wy(i,"html");return a.push("box-shadow:"+(c+"px "+p+"px "+u+"px "+h)),t&&0<s&&a.push((c=s,p="cubic-bezier(0.23,1,0.32,1)",h=u="",n&&(h="opacity"+(u=" "+c/2+"s "+p)+",visibility"+u),e||(u=" "+c+"s "+p,h+=(h.length?",":"")+(w.transformSupported?""+I2+u:",left"+u+",top"+u)),T2+":"+h)),l&&a.push("background-color:"+l),nt(["width","color","radius"],function(t){var e="border-"+t,n=bd(e),n=i.get(n);null!=n&&a.push(e+":"+n+("color"===t?"":"px"))}),a.push((o=[],t=(r=d).get("fontSize"),(s=r.getTextColor())&&o.push("color:"+s),o.push("font:"+r.getFont()),s=G(r.get("lineHeight"),Math.round(3*t/2)),t&&o.push("line-height:"+s+"px"),t=r.get("textShadowColor"),s=r.get("textShadowBlur")||0,n=r.get("textShadowOffsetX")||0,e=r.get("textShadowOffsetY")||0,t&&s&&o.push("text-shadow:"+n+"px "+e+"px "+s+"px "+t),nt(["decoration","align"],function(t){var e=r.get(t);e&&o.push("text-"+t+":"+e)}),o.join(";"))),null!=f&&a.push("padding:"+wd(f).join("px ")+"px"),a.join(";")+";"}function L2(t,e,n,i,r){var o,a,s=e&&e.painter;n?(o=s&&s.getViewportRoot())&&(a=t,n=n,me(ye,o,i,r,!0))&&me(a,n,ye[0],ye[1]):(t[0]=i,t[1]=r,(o=s&&s.getViewportRootOffset())&&(t[0]+=o.offsetLeft,t[1]+=o.offsetTop)),t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}P2.prototype.update=function(t){this._container||(i=this._api.getDom(),n="position",n=(e=(e=i).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e))?n?e[n]:e:null,"absolute"!==(e=i.style).position&&"absolute"!==n&&(e.position="relative"));var e,n,i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&0<t.get("transitionDuration"),this.el.className=t.get("className")||""},P2.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=C2+D2(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+k2(r[0],r[1],!0)+"border-color:"+kd(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},P2.prototype.setContent=function(t,e,n,i,r){var o=this.el;if(null==t)o.innerHTML="";else{var a,s,l,u,h,c="";if(F(r)&&"item"===n.get("trigger")&&!b2(n)&&(n=n,i=i,c=F(r=r)&&"inside"!==r?(a=n.get("backgroundColor"),n=n.get("borderWidth"),i=kd(i),r=r="left"===(r=r)?"right":"right"===r?"left":"top"===r?"bottom":"top",p=Math.max(1.5*Math.round(n),6),s="",l=I2+":",-1<k(["left","right"],r)?(s+="top:50%",l+="translateY(-50%) rotate("+(h="left"==r?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(h="top"==r?225:45)+"deg)"),h=h*Math.PI/180,h=(u=p+n)*Math.abs(Math.cos(h))+u*Math.abs(Math.sin(h)),i=i+" solid "+n+"px;",'<div style="'+["position:absolute;width:"+p+"px;height:"+p+"px;z-index:-1;",(s+=";"+r+":-"+Math.round(100*((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-u)/2))/100+"px")+";"+l+";","border-bottom:"+i,"border-right:"+i,"background-color:"+a+";"].join("")+'"></div>'):""),F(t))o.innerHTML=t+c;else if(t){o.innerHTML="",V(t)||(t=[t]);for(var p,d=0;d<t.length;d++)yt(t[d])&&t[d].parentNode!==o&&o.appendChild(t[d]);c&&o.childNodes.length&&((p=document.createElement("div")).innerHTML=c,o.appendChild(p))}}},P2.prototype.setEnterable=function(t){this._enterable=t},P2.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},P2.prototype.moveTo=function(t,e){var n,i;this.el&&(L2(n=this._styleCoord,this._zr,this._container,t,e),null!=n[0])&&null!=n[1]&&(i=this.el.style,nt(k2(n[0],n[1]),function(t){i[t[0]]=t[1]}))},P2.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},P2.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",w.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},P2.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(S(this.hide,this),t)):this.hide())},P2.prototype.isShow=function(){return this._show},P2.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;function e(t){var e=t[ge];e&&(e.clearMarkers&&e.clearMarkers(),delete t[ge])}t=t&&t.painter&&t.painter.getViewportRoot(),n=this._container,t&&e(t),n&&e(n);var n,t=this.el;t&&(t.onmouseenter=t.onmousemove=t.onmouseleave=null,n=t.parentNode)&&n.removeChild(t),this.el=this._container=null};var A2=P2;function P2(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,w.wxa)return null;var n=document.createElement("div"),i=(n.domBelongToZr=!0,this.el=n,this._zr=t.getZr()),e=e.appendTo,e=e&&(F(e)?document.querySelector(e):yt(e)?e:z(e)&&e(t.getDom())),r=(L2(this._styleCoord,i,e,t.getWidth()/2,t.getHeight()/2),(e||t.getDom()).appendChild(n),this._api=t,this._container=e,this);n.onmouseenter=function(){r._enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(t){var e;t=t||window.event,r._enterable||(e=i.handler,ke(i.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t))},n.onmouseleave=function(){r._inContent=!1,r._enterable&&r._show&&r.hideLater(r._hideDelay)}}R2.prototype.update=function(t){t=t.get("alwaysShowContent");t&&this._moveIfResized(),this._alwaysShowContent=t},R2.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},R2.prototype.setContent=function(t,e,n,i,r){var o=this,a=(N(t)&&f(""),this.el&&this._zr.remove(this.el),n.getModel("textStyle")),s=(this.el=new vl({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:a.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Wy(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),nt(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=n.get(t)}),nt(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el),this);this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},R2.prototype.setEnterable=function(t){this._enterable=t},R2.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),t=N2(t.style);return[e.width+t.left+t.right,e.height+t.top+t.bottom]},R2.prototype.moveTo=function(t,e){var n,i,r=this.el;r&&(E2(i=this._styleCoord,this._zr,t,e),t=i[0],e=i[1],n=z2((i=r.style).borderWidth||0),i=N2(i),r.x=t+n+i.left,r.y=e+n+i.top,r.markRedraw())},R2.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},R2.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},R2.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(S(this.hide,this),t)):this.hide())},R2.prototype.isShow=function(){return this._show},R2.prototype.dispose=function(){this._zr.remove(this.el)};var O2=R2;function R2(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),E2(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}function z2(t){return Math.max(0,t)}function N2(t){var e=z2(t.shadowBlur||0),n=z2(t.shadowOffsetX||0),t=z2(t.shadowOffsetY||0);return{left:z2(e-n),right:z2(e+n),top:z2(e-t),bottom:z2(e+t)}}function E2(t,e,n,i){t[0]=n,t[1]=i,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var B2,V2=new pl({shape:{x:-1,y:-1,width:2,height:2}}),F2=(u(H2,B2=rm),H2.prototype.init=function(t,e){var n;!w.node&&e.getDom()&&(t=t.getComponent("tooltip"),n=this._renderMode="auto"===(n=t.get("renderMode"))?w.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===n?new O2(e):new A2(e,{appendTo:t.get("appendToBody",!0)?"body":t.get("appendTo",!0)}))},H2.prototype.render=function(t,e,n){!w.node&&n.getDom()&&(this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,(e=this._tooltipContent).update(t),e.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?xm(this,"_updatePosition",50,"fixRate"):bm(this,"_updatePosition"))},H2.prototype._initGlobalListener=function(){var i=this._tooltipModel.get("triggerOn");n2("itemTooltip",this._api,S(function(t,e,n){"none"!==i&&(0<=i.indexOf(t)?this._tryShow(e,n):"leave"===t&&this._hide(n))},this))},H2.prototype._keepShow=function(){var t,e=this._tooltipModel,n=this._ecModel,i=this._api,r=e.get("triggerOn");null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r&&(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})}))},H2.prototype.manuallyShowTip=function(t,e,n,i){var r,o,a,s;i.from!==this.uid&&!w.node&&n.getDom()&&(r=W2(i,n),this._ticket="",s=i.dataByCoordSys,(o=function(n,t,e){var i=la(n).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,t=ha(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(t)if(e.getViewOfComponentModel(t).group.traverse(function(t){var e=U(t).tooltipConfig;if(e&&e.name===n.name)return o=t,!0}),o)return{componentMainType:r,componentIndex:t.componentIndex,el:o}}}(i,e,n))?((a=o.el.getBoundingRect().clone()).applyTransform(o.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:o.el,position:i.position,positionDefault:"bottom"},r)):i.tooltip&&null!=i.x&&null!=i.y?((a=V2).x=i.x,a.y=i.y,a.update(),U(a).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:a},r)):s?this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},r):null!=i.seriesIndex?this._manuallyAxisShowTip(t,e,n,i)||(a=(o=u2(i,e)).point[0],s=o.point[1],null!=a&&null!=s&&this._tryShow({offsetX:a,offsetY:s,target:o.el,position:i.position,positionDefault:"bottom"},r)):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},r)))},H2.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(W2(i,n))},H2.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){a=e.getSeriesByIndex(r);if(a){e=G2([a.getData().getItemModel(o),a,(a.coordinateSystem||{}).model],this._tooltipModel);if("axis"===e.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},H2.prototype._tryShow=function(t,e){var n,i,r,o=t.target;this._tooltipModel&&(this._lastX=t.offsetX,this._lastY=t.offsetY,(n=t.dataByCoordSys)&&n.length?this._showAxisTooltip(n,t):o?"legend"!==U(o).ssrType&&(Jm(o,function(t){if(t.tooltipDisabled)return i=r=null,1;i||r||(null!=U(t).dataIndex?i=t:null!=U(t).tooltipConfig&&(r=t))},!(this._lastDataByCoordSys=null)),i?this._showSeriesItemTooltip(t,i,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)):(this._lastDataByCoordSys=null,this._hide(e)))},H2.prototype._showOrMove=function(t,e){t=t.get("showDelay");e=S(e,this),clearTimeout(this._showTimout),0<t?this._showTimout=setTimeout(e,t):e()},H2.prototype._showAxisTooltip=function(t,e){var u=this._ecModel,h=this._tooltipModel,n=[e.offsetX,e.offsetY],i=G2([e.tooltipOption],h),c=this._renderMode,p=[],d=zy("section",{blocks:[],noHeader:!0}),f=[],g=new Uy,r=(nt(t,function(t){nt(t.dataByAxis,function(r){var o,a,s=u.getComponent(r.axisDim+"Axis",r.axisIndex),l=r.value;s&&null!=l&&(o=WC(l,s.axis,u,r.seriesDataIndices,r.valueLabelOpt),a=zy("section",{header:o,noHeader:!It(o),sortBlocks:!0,blocks:[]}),d.blocks.push(a),nt(r.seriesDataIndices,function(t){var e,n=u.getSeriesByIndex(t.seriesIndex),t=t.dataIndexInside,i=n.getDataParams(t);i.dataIndex<0||(i.axisDim=r.axisDim,i.axisIndex=r.axisIndex,i.axisType=r.axisType,i.axisId=r.axisId,i.axisValue=j1(s.axis,{value:l}),i.axisValueLabel=o,i.marker=g.makeTooltipMarker("item",kd(i.color),c),(e=(t=Eg(n.formatTooltip(t,!0,null))).frag)&&(n=G2([n],h).get("valueFormatter"),a.blocks.push(n?P({valueFormatter:n},e):e)),t.text&&f.push(t.text),p.push(i))}))})}),d.blocks.reverse(),f.reverse(),e.position),e=i.get("order"),e=Fy(d,g,c,e,u.get("useUTC"),i.get("textStyle")),e=(e&&f.unshift(e),"richText"===c?"\n\n":"<br/>"),o=f.join(e);this._showOrMove(i,function(){this._updateContentNotChangedOnAxis(t,p)?this._updatePosition(i,r,n[0],n[1],this._tooltipContent,p):this._showTooltipContent(i,o,p,Math.random()+"",n[0],n[1],r,null,g)})},H2.prototype._showSeriesItemTooltip=function(t,e,n){var i,r,o,a,s,l=this._ecModel,e=U(e),u=e.seriesIndex,h=l.getSeriesByIndex(u),c=e.dataModel||h,p=e.dataIndex,e=e.dataType,d=c.getData(e),f=this._renderMode,g=t.positionDefault,y=G2([d.getItemModel(p),c,h&&(h.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),h=y.get("trigger");null!=h&&"item"!==h||(i=c.getDataParams(p,e),r=new Uy,i.marker=r.makeTooltipMarker("item",kd(i.color),f),g=Eg(c.formatTooltip(p,!1,e)),h=y.get("order"),e=y.get("valueFormatter"),o=g.frag,a=o?Fy(e?P({valueFormatter:e},o):o,r,f,h,l.get("useUTC"),y.get("textStyle")):g.text,s="item_"+c.name+"_"+p,this._showOrMove(y,function(){this._showTooltipContent(y,a,i,s,t.offsetX,t.offsetY,t.position,t.target,r)}),n({type:"showTip",dataIndexInside:p,dataIndex:d.getRawIndex(p),seriesIndex:u,from:this.uid}))},H2.prototype._showComponentItemTooltip=function(e,n,t){var i="html"===this._renderMode,r=U(n),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent,a=(F(o)&&(o={content:o,formatter:o},a=!0),a&&i&&o.content&&((o=y(o)).content=be(o.content)),[o]),i=this._ecModel.getComponent(r.componentMainType,r.componentIndex),r=(i&&a.push(i),a.push({formatter:o.content}),e.positionDefault),s=G2(a,this._tooltipModel,r?{position:r}:null),l=s.get("content"),u=Math.random()+"",h=new Uy;this._showOrMove(s,function(){var t=y(s.get("formatterParams")||{});this._showTooltipContent(s,l,t,u,e.offsetX,e.offsetY,e.position,n,h)}),t({type:"showTip",from:this.uid})},H2.prototype._showTooltipContent=function(n,t,i,e,r,o,a,s,l){var u,h,c,p,d;this._ticket="",n.get("showContent")&&n.get("show")&&((u=this._tooltipContent).setEnterable(n.get("enterable")),h=n.get("formatter"),a=a||n.get("position"),t=t,c=this._getNearestPoint([r,o],i,n.get("trigger"),n.get("borderColor"),n.get("defaultBorderColor",!0)).color,h&&(t=F(h)?(p=n.ecModel.get("useUTC"),t=h,Id(t=(d=V(i)?i[0]:i)&&d.axisType&&0<=d.axisType.indexOf("time")?rd(d.axisValue,t,p):t,i,!0)):z(h)?(d=S(function(t,e){t===this._ticket&&(u.setContent(e,l,n,c,a),this._updatePosition(n,a,r,o,u,i,s))},this),this._ticket=e,h(i,e,d)):h),u.setContent(t,l,n,c,a),u.show(n,c),this._updatePosition(n,a,r,o,u,i,s))},H2.prototype._getNearestPoint=function(t,e,n,i,r){return"axis"===n||V(e)?{color:i||r}:V(e)?void 0:{color:i||e.color||e.borderColor}},H2.prototype._updatePosition=function(t,e,n,i,r,o,a){var s,l=this._api.getWidth(),u=this._api.getHeight(),h=(e=e||t.get("position"),r.getSize()),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();a&&d.applyTransform(a.transform),V(e=z(e)?e([n,i],o,r.el,d,{viewSize:[l,u],contentSize:h.slice()}):e)?(n=To(e[0],l),i=To(e[1],u)):N(e)?((o=e).width=h[0],o.height=h[1],n=(o=Ud(o,{width:l,height:u})).x,i=o.y,p=c=null):i=(n=(s=F(e)&&a?function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,d,h,t.get("borderWidth")):function(t,e,n,i,r,o,a){var n=n.getSize(),s=n[0],n=n[1];null!=o&&(i<t+s+o+2?t-=s+o:t+=o);null!=a&&(r<e+n+a?e-=n+a:e+=a);return[t,e]}(n,i,r,l,u,c?null:20,p?null:20))[0],s[1]),c&&(n-=U2(c)?h[0]/2:"right"===c?h[0]:0),p&&(i-=U2(p)?h[1]/2:"bottom"===p?h[1]:0),b2(t)&&(o=n,a=i,e=l,d=u,c=(c=r).getSize(),p=c[0],c=c[1],o=Math.min(o+p,e)-p,a=Math.min(a+c,d)-c,o=Math.max(o,0),a=Math.max(a,0),n=(s=[o,a])[0],i=s[1]),r.moveTo(n,i)},H2.prototype._updateContentNotChangedOnAxis=function(n,o){var t=this._lastDataByCoordSys,a=this._cbParamsList,s=!!t&&t.length===n.length;return s&&nt(t,function(t,e){var t=t.dataByAxis||[],r=(n[e]||{}).dataByAxis||[];(s=s&&t.length===r.length)&&nt(t,function(t,e){var e=r[e]||{},n=t.seriesDataIndices||[],i=e.seriesDataIndices||[];(s=s&&t.value===e.value&&t.axisType===e.axisType&&t.axisId===e.axisId&&n.length===i.length)&&nt(n,function(t,e){e=i[e];s=s&&t.seriesIndex===e.seriesIndex&&t.dataIndex===e.dataIndex}),a&&nt(t.seriesDataIndices,function(t){var t=t.seriesIndex,e=o[t],t=a[t];e&&t&&t.data!==e.data&&(s=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=o,!!s},H2.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},H2.prototype.dispose=function(t,e){!w.node&&e.getDom()&&(bm(this,"_updatePosition"),this._tooltipContent.dispose(),o2("itemTooltip",e))},H2.type="tooltip",H2);function H2(){var t=null!==B2&&B2.apply(this,arguments)||this;return t.type=H2.type,t}function G2(t,e,n){for(var i=e.ecModel,r=n?(r=new Pp(n,i,i),new Pp(e.option,r,i)):e,o=t.length-1;0<=o;o--){var a=t[o];(a=a&&(F(a=a instanceof Pp?a.get("tooltip",!0):a)?{formatter:a}:a))&&(r=new Pp(a,r,i))}return r}function W2(t,e){return t.dispatchAction||S(e.dispatchAction,e)}function U2(t){return"center"===t||"middle"===t}ox(function(t){ox(m2),t.registerComponentModel(_2),t.registerComponentView(F2),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Vt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Vt)});var X2=function(t,e,n){t=y((Y2[t]||{})[e]);return n&&V(t)?t[t.length-1]:t},Y2={color:{active:["#006edd","#e0ffff"],inactive:[v.color.transparent]},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]}},Z2=nt;function q2(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return 1}function j2(e,t,r){var o={};return Z2(t,function(n){var i=o[n]=(t.prototype.__hidden=t.prototype,new t);function t(){}Z2(e[n],function(t,e){cT.isValidType(e)&&(t={type:e,visual:t},r&&r(t,n),i[e]=new cT(t),"opacity"===e)&&((t=y(t)).type="colorAlpha",i.__hidden.__alphaForOpacity=new cT(t))})}),o}function K2(t,f,g,y){var m={};return nt(t,function(t){var e=cT.prepareVisualTypes(f[t]);m[t]=e}),{progress:function(t,a){var e,s;function n(t){return jm(a,s,t)}function i(t,e){var n=a,i=s,r=t,o=e;switch(r){case"color":n.ensureUniqueItemVisual(i,"style")[n.getVisual("drawType")]=o,n.setItemVisual(i,"colorFromPalette",!1);break;case"opacity":n.ensureUniqueItemVisual(i,"style").opacity=o;break;case"symbol":case"symbolSize":case"liftZ":n.setItemVisual(i,r,o)}}null!=y&&(e=a.getDimensionIndex(y));for(var r=a.getStore();null!=(s=t.next());){var o=a.getRawDataItem(s);if(!o||!1!==o.visualMap)for(var l=null!=y?r.get(e,s):s,o=g(l),u=f[o],h=m[o],c=0,p=h.length;c<p;c++){var d=h[c];u[d]&&u[d].applyVisual(l,n,i)}}}}}var $2,Q2=cT.mapVisual,J2=cT.eachVisual,tk=V,ek=nt,nk=ko,ik=Mo,Yh=(u(rk,$2=g),rk.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},rk.prototype.optionUpdated=function(t,e){var n,i,r,o=this.option;e||(n=o,i=t,nt(e=this.replacableOptionKeys,function(t){i.hasOwnProperty(t)&&q2(i[t])&&(r=!0)}),r&&nt(e,function(t){i.hasOwnProperty(t)&&q2(i[t])?n[t]=y(i[t]):delete n[t]})),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},rk.prototype.resetVisual=function(t){var e=this.stateList;t=S(t,this),this.controllerVisuals=j2(this.option.controller,e,t),this.targetVisuals=j2(this.option.target,e,t)},rk.prototype.getItemSymbol=function(){return null},rk.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesId,e=this.option.seriesIndex;return B(ha(this.ecModel,"series",{index:e=null==e&&null==t?"all":e,id:t},{useDefault:!1,enableAll:!0,enableNone:!1}).models,function(t){return t.componentIndex})},rk.prototype.eachTargetSeries=function(e,n){nt(this.getTargetSeriesIndices(),function(t){t=this.ecModel.getSeriesByIndex(t);t&&e.call(n,t)},this)},rk.prototype.isTargetSeries=function(e){var n=!1;return this.eachTargetSeries(function(t){t===e&&(n=!0)}),n},rk.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,r=r.formatter,e=(n=n||["<",">"],V(t)&&(t=t.slice(),i=!0),e?t:i?[s(t[0]),s(t[1])]:s(t));return F(r)?r.replace("{value}",i?e[0]:e).replace("{value2}",i?e[1]:e):z(r)?i?r(t[0],t[1]):r(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(o,20))}},rk.prototype.resetExtent=function(){var t=this.option,t=nk([t.min,t.max]);this._dataExtent=t},rk.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,i=n.length-1;0<=i;i--){var r=n[i],r=t.getDimensionInfo(r);if(!r.isCalculationCoord)return r.storeDimIndex}},rk.prototype.getExtent=function(){return this._dataExtent.slice()},rk.prototype.completeVisualOption=function(){var e=this.ecModel,n=this.option,t={inRange:n.inRange,outOfRange:n.outOfRange},i=n.target||(n.target={}),r=n.controller||(n.controller={}),u=(d(i,t),d(r,t),this.isCategory());function o(t){tk(n.color)&&!t.inRange&&(t.inRange={color:n.color.slice().reverse()}),t.inRange=t.inRange||{color:e.get("gradientColor")}}o.call(this,i),o.call(this,r),function(t,e,n){var e=t[e],i=t[n];e&&!i&&(i=t[n]={},ek(e,function(t,e){var n;cT.isValidType(e)&&null!=(n=X2(e,"inactive",u))&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}))}.call(this,i,"inRange","outOfRange"),function(r){var o=(r.inRange||{}).symbol||(r.outOfRange||{}).symbol,a=(r.inRange||{}).symbolSize||(r.outOfRange||{}).symbolSize,s=this.get("inactiveColor"),l=this.getItemSymbol()||"roundRect";ek(this.stateList,function(t){var e,n=this.itemSize,i=r[t],t=(null==(i=i||(r[t]={color:u?s:[s]})).symbol&&(i.symbol=o&&y(o)||(u?l:[l])),null==i.symbolSize&&(i.symbolSize=a&&y(a)||(u?n[0]:[n[0],n[0]])),i.symbol=Q2(i.symbol,function(t){return"none"===t?l:t}),i.symbolSize);null!=t&&(e=-1/0,J2(t,function(t){e<t&&(e=t)}),i.symbolSize=Q2(t,function(t){return ik(t,[0,e],[0,n[0]],!0)}))},this)}.call(this,r)},rk.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},rk.prototype.isCategory=function(){return!!this.option.categories},rk.prototype.setSelected=function(t){},rk.prototype.getSelected=function(){return null},rk.prototype.getValueState=function(t){return null},rk.prototype.getVisualMeta=function(t){return null},rk.type="visualMap",rk.dependencies=["series"],rk.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:v.color.transparent,borderColor:v.color.borderTint,contentColor:v.color.theme[0],inactiveColor:v.color.disabled,borderWidth:0,padding:v.size.m,textGap:10,precision:0,textStyle:{color:v.color.secondary}},rk);function rk(){var t=null!==$2&&$2.apply(this,arguments)||this;return t.type=rk.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 ok,ak=[20,140],sk=(u(lk,ok=Yh),lk.prototype.optionUpdated=function(t,e){ok.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()}),this._resetRange()},lk.prototype.resetItemSize=function(){ok.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;null!=t[0]&&!isNaN(t[0])||(t[0]=ak[0]),null!=t[1]&&!isNaN(t[1])||(t[1]=ak[1])},lk.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):V(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},lk.prototype.completeVisualOption=function(){ok.prototype.completeVisualOption.apply(this,arguments),nt(this.stateList,function(t){t=this.option.controller[t].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)},this)},lk.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},lk.prototype.getSelected=function(){var t=this.getExtent(),e=ko((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},lk.prototype.getValueState=function(t){var e=this.option.range,n=this.getExtent(),i=G(this.option.unboundedRange,!0);return(i&&e[0]<=n[0]||e[0]<=t)&&(i&&e[1]>=n[1]||t<=e[1])?"inRange":"outOfRange"},lk.prototype.findTargetDataIndices=function(i){var r=[];return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimensionIndex(e),function(t,e){i[0]<=t&&t<=i[1]&&n.push(e)},this),r.push({seriesId:t.id,dataIndex:n})},this),r},lk.prototype.getVisualMeta=function(n){var t=uk(0,0,this.getExtent()),e=uk(0,0,this.option.range.slice()),i=[];function r(t,e){i.push({value:t,color:n(t,e)})}for(var o=0,a=0,s=e.length,l=t.length;a<l&&(!e.length||t[a]<=e[0]);a++)t[a]<e[o]&&r(t[a],"outOfRange");for(var u=1;o<s;o++,u=0)u&&i.length&&r(e[o],"outOfRange"),r(e[o],"inRange");for(u=1;a<l;a++)(!e.length||e[e.length-1]<t[a])&&(u&&(i.length&&r(i[i.length-1].value,"outOfRange"),u=0),r(t[a],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},lk.type="visualMap.continuous",lk.defaultOption=Np(Yh.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:v.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:v.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:v.color.shadow}}),lk);function lk(){var t=null!==ok&&ok.apply(this,arguments)||this;return t.type=lk.type,t}function uk(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&r<n[1];a++)o.push(r),r+=i;return o.push(n[1]),o}u(ck,hk=rm),ck.prototype.init=function(t,e){this.ecModel=t,this.api=e},ck.prototype.render=function(t,e,n,i){!1===(this.visualMapModel=t).get("show")?this.group.removeAll():this.doRender(t,e,n,i)},ck.prototype.renderBackground=function(t){var e=this.visualMapModel,n=wd(e.get("padding")||0),i=t.getBoundingRect();t.add(new pl({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")}}))},ck.prototype.getControllerVisual=function(n,i,r){var t,e=(r=r||{}).forceState,o=this.visualMapModel,a={};function s(t){return a[t]}function l(t,e){a[t]=e}"color"===i&&(t=o.get("contentColor"),a.color=t);var u=o.controllerVisuals[e||o.getValueState(n)];return nt(cT.prepareVisualTypes(u),function(t){var e=u[t];r.convertOpacityToAlpha&&"opacity"===t&&(t="colorAlpha",e=u.__alphaForOpacity),cT.dependsOn(t,i)&&e&&e.applyVisual(n,s,l)}),a[i]},ck.prototype.positionGroup=function(t){var e,n,i,r,o,a,s,l=this.visualMapModel,u=Yd(l,this.api).refContainer;t=t,l=l.getBoxLayoutParams(),u=u,a=!n||!n.hv||n.hv[0],s=!n||!n.hv||n.hv[1],n=n&&n.boundingMode||"all",(i=i||t).x=t.x,i.y=t.y,(a||s)&&("raw"===n?r="group"===t.type?new X(0,0,+l.width||0,+l.height||0):t.getBoundingRect():(r=t.getBoundingRect(),t.needLocalTransform()&&(o=t.getLocalTransform(),(r=r.clone()).applyTransform(o))),o=Ud(E({width:r.width,height:r.height},l),u,e),l=a?o.x-r.x:0,u=s?o.y-r.y:0,"raw"===n?(i.x=l,i.y=u):(i.x+=l,i.y+=u),i===t)&&t.markRedraw()},ck.prototype.doRender=function(t,e,n,i){},ck.type="visualMap";var hk,Qu=ck;function ck(){var t=null!==hk&&hk.apply(this,arguments)||this;return t.type=ck.type,t.autoPositionValues={left:1,right:1,top:1,bottom:1},t}function pk(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0<t||!(t<0)&&e?-1:1}}function dk(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var fk=[["left","right","width"],["top","bottom","height"]];function gk(t,e,n){var i=t.option,t=i.align;if(null!=t&&"auto"!==t)return t;for(var t={width:e.getWidth(),height:e.getHeight()},r="horizontal"===i.orient?1:0,o=fk[r],a=[0,null,10],s={},l=0;l<3;l++)s[fk[1-r][l]]=a[l],s[o[l]]=2===l?n[0]:i[o[l]];var e=[["x","width",3],["y","height",0]][r],u=Ud(s,t,i.padding);return o[(u.margin[e[2]]||0)+u[e[0]]+.5*u[e[1]]<.5*t[e[1]]?0:1]}function yk(t,e){return nt(t||[],function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var mk,vk=Mo,_k=nt,xk=Math.min,bk=Math.max,wk=(u(Sk,mk=Qu),Sk.prototype.init=function(t,e){mk.prototype.init.call(this,t,e),this._hoverLinkFromSeriesMouseOver=S(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=S(this._hideIndicator,this)},Sk.prototype.doRender=function(t,e,n,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},Sk.prototype._buildView=function(){this.group.removeAll();var t=this.visualMapModel,e=this.group,t=(this._orient=t.get("orient"),this._useHandle=t.get("calculable"),this._resetInterval(),this._renderBar(e),t.get("text"));this._renderEndsText(e,t,0),this._renderEndsText(e,t,1),this._updateView(!0),this.renderBackground(e),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(e)},Sk.prototype._renderEndsText=function(t,e,n){var i,r,o;e&&(e=null!=(e=e[1-n])?e+"":"",r=(i=this.visualMapModel).get("textGap"),i=i.itemSize,o=this._shapes.mainGroup,i=this._applyTransform([i[0]/2,0===n?-r:i[1]+r],o),r=this._applyTransform(0===n?"bottom":"top",o),n=this._orient,o=this.visualMapModel.textStyleModel,this.group.add(new vl({style:hp(o,{x:i[0],y:i[1],verticalAlign:o.get("verticalAlign")||("horizontal"===n?"middle":r),align:o.get("align")||("horizontal"===n?r:"center"),text:e})})))},Sk.prototype._renderBar=function(t){var e=this.visualMapModel,n=this._shapes,i=e.itemSize,r=this._orient,o=this._useHandle,a=gk(e,this.api,i),a=n.mainGroup=this._createBarGroup(a),s=new lo,s=(a.add(s),s.add(n.outOfRange=Mk()),s.add(n.inRange=Mk(null,o?Ik(this._orient):null,S(this._dragHandle,this,"all",!1),S(this._dragHandle,this,"all",!0))),s.setClipPath(new pl({shape:{x:0,y:0,width:i[0],height:i[1],r:3}})),e.textStyleModel.getTextRect("国")),s=bk(s.width,s.height);o&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(e,a,0,i,s,r),this._createHandle(e,a,1,i,s,r)),this._createIndicator(e,a,i,s,r),t.add(a)},Sk.prototype._createHandle=function(t,e,n,i,r,o){var a=S(this._dragHandle,this,n,!1),s=S(this._dragHandle,this,n,!0),l=Zr(t.get("handleSize"),i[0]),u=c0(t.get("handleIcon"),-l/2,-l/2,l,l,null,!0),h=Ik(this._orient),i=(u.attr({cursor:h,draggable:!0,drift:a,ondragend:s,onmousemove:function(t){De(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(),Su(u,!0),e.add(u),this.visualMapModel.textStyleModel),t=new vl({cursor:h,draggable:!0,drift:a,onmousemove:function(t){De(t.event)},ondragend:s,style:hp(i,{x:0,y:0,text:""})}),e=(t.ensureState("blur").style={opacity:.1},t.stateTransition={duration:200},this.group.add(t),[l,0]),h=this._shapes;h.handleThumbs[n]=u,h.handleLabelPoints[n]=e,h.handleLabels[n]=t},Sk.prototype._createIndicator=function(t,e,n,i,r){var o=Zr(t.get("indicatorSize"),n[0]),o=c0(t.get("indicatorIcon"),-o/2,-o/2,o,o,null,!0),t=(o.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2}),t.getModel("indicatorStyle").getItemStyle()),a=(o instanceof il?(a=o.style,o.useStyle(P({image:a.image,x:a.x,y:a.y,width:a.width,height:a.height},t))):o.useStyle(t),e.add(o),this.visualMapModel.textStyleModel),t=new vl({silent:!0,invisible:!0,style:hp(a,{x:0,y:0,text:""})}),e=(this.group.add(t),[("horizontal"===r?i/2:6)+n[0]/2,0]),a=this._shapes;a.indicator=o,a.indicatorLabel=t,a.indicatorLabelPoint=e,this._firstShowIndicator=!0},Sk.prototype._dragHandle=function(t,e,n,i){this._useHandle&&(this._dragging=!e,e||(n=this._applyTransform([n,i],this._shapes.mainGroup,!0),this._updateInterval(t,n[1]),this._hideIndicator(),this._updateView()),e===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),e?this._hovering||this._clearHoverLinkToSeries():Tk(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[t],!1))},Sk.prototype._resetInterval=function(){var t=this.visualMapModel,e=this._dataInterval=t.getSelected(),n=t.getExtent(),t=[0,t.itemSize[1]];this._handleEnds=[vk(e[0],n,t,!0),vk(e[1],n,t,!0)]},Sk.prototype._updateInterval=function(t,e){e=e||0;var n,i,r,o,a,s=this.visualMapModel,l=this._handleEnds,u=[0,s.itemSize[1]],h=(n=l,t=t,e=(e=e)||0,a=(i=u)[1]-i[r=0],null!=r&&(r=dk(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===t&&(h=dk(h=Math.abs(n[1]-n[0]),[0,a]),r=o=dk(h,[r,o]),t=0),n[0]=dk(n[0],i),n[1]=dk(n[1],i),a=pk(n,t),n[t]+=e,h=r||0,e=i.slice(),a.sign<0?e[0]+=h:e[1]-=h,n[t]=dk(n[t],e),i=pk(n,t),null!=r&&(i.sign!==a.sign||i.span<r)&&(n[1-t]=n[t]+a.sign*r),i=pk(n,t),null!=o&&i.span>o&&(n[1-t]=n[t]+i.sign*o),s.getExtent());this._dataInterval=[vk(l[0],u,h,!0),vk(l[1],u,h,!0)]},Sk.prototype._updateView=function(t){var e=this.visualMapModel,n=e.getExtent(),i=this._shapes,e=[0,e.itemSize[1]],t=t?e:this._handleEnds,r=this._createBarVisual(this._dataInterval,n,t,"inRange"),n=this._createBarVisual(n,n,e,"outOfRange");i.inRange.setStyle({fill:r.barColor}).setShape("points",r.barPoints),i.outOfRange.setStyle({fill:n.barColor}).setShape("points",n.barPoints),this._updateHandle(t,r)},Sk.prototype._createBarVisual=function(t,e,n,i){var i={forceState:i,convertOpacityToAlpha:!0},r=this._makeColorGradient(t,i),t=[this.getControllerVisual(t[0],"symbolSize",i),this.getControllerVisual(t[1],"symbolSize",i)],i=this._createBarPoints(n,t);return{barColor:new $h(0,0,0,1,r),barPoints:i,handlesColor:[r[0].color,r[r.length-1].color]}},Sk.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 r=1;r<100;r++){var o=t[0]+i*r;if(o>t[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},Sk.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]]]},Sk.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new lo("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})},Sk.prototype._updateHandle=function(i,r){var o,a,s,l,u,h,c;this._useHandle&&(o=this._shapes,a=this.visualMapModel,s=o.handleThumbs,l=o.handleLabels,u=a.itemSize,h=a.getExtent(),c=this._applyTransform("left",o.mainGroup),_k([0,1],function(t){var e=s[t],n=(e.setStyle("fill",r.handlesColor[t]),e.y=i[t],vk(i[t],[0,u[1]],h,!0)),n=this.getControllerVisual(n,"symbolSize"),e=(e.scaleX=e.scaleY=n/u[0],e.x=u[0]-n/2,Vc(o.handleLabelPoints[t],Bc(e,this.group)));"horizontal"===this._orient&&(n="left"===c||"top"===c?(u[0]-n)/2:(u[0]-n)/-2,e[1]+=n),l[t].setStyle({x:e[0],y:e[1],text:a.formatValueText(this._dataInterval[t]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",o.mainGroup):"center"})},this))},Sk.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,"symbolSize"),t=vk(t,o,s,!0),o=a[0]-c/2,s={x:u.x,y:u.y},a=(u.y=t,u.x=o,Vc(l.indicatorLabelPoint,Bc(u,this.group))),c=l.indicatorLabel,l=(c.attr("invisible",!1),this._applyTransform("left",l.mainGroup)),p="horizontal"===this._orient,n=(c.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:p?l:"middle",align:p?"center":l}),{x:o,y:t,style:{fill:h}}),e={style:{x:a[0],y:a[1]}},d=(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator?(p={duration:100,easing:"cubicInOut",additive:!0},u.x=s.x,u.y=s.y,u.animateTo(n,p),c.animateTo(e,p)):(u.attr(n),c.attr(e)),this._firstShowIndicator=!1,this._shapes.handleLabels);if(d)for(var f=0;f<d.length;f++)this.api.enterBlur(d[f])}},Sk.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]=xk(bk(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()})},Sk.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()},Sk.prototype._doHoverLinkToSeries=function(t,e){var n,i,r,o=this.visualMapModel,a=o.itemSize;function s(t,e,n){for(var i=0,r=t.length;i<r;i++){var o=ta(t[i].seriesId,null);if(null==o)return;for(var a=Zo(t[i].dataIndex),s=n&&n[o],l=0,u=a.length;l<u;l++){var h=a[l];s&&s[h]?s[h]=null:(e[o]||(e[o]={}))[h]=1}}}function l(t,e){var n,i,r=[];for(n in t)t.hasOwnProperty(n)&&null!=t[n]&&(e?r.push(+n):(i=l(t[n],!0)).length&&r.push({seriesId:n,dataIndex:i}));return r}o.option.hoverLink&&(a=[0,a[1]],i=o.getExtent(),n=[(t=xk(bk(a[0],t),a[1]))-(r=function(t,e,n){var i=6,t=t.get("hoverLinkDataSize");t&&(i=vk(t,e,n,!0)/2);return i}(o,i,a)),t+r],t=vk(t,a,i,!0),i=[vk(n[0],a,i,!0),vk(n[1],a,i,!0)],n[0]<a[0]&&(i[0]=-1/0),a[1]<n[1]&&(i[1]=1/0),e&&(i[0]===-1/0?this._showIndicator(t,i[1],"< ",r):i[1]===1/0?this._showIndicator(t,i[0],"> ",r):this._showIndicator(t,t,"≈ ",r)),a=this._hoverLinkDataIndices,n=[],(e||Tk(o))&&(n=this._hoverLinkDataIndices=o.findTargetDataIndices(i)),t=n,r={},s(a||[],e={}),s(t||[],r,e),i=[l(e),l(r)],this._dispatchHighDown("downplay",yk(i[0],o)),this._dispatchHighDown("highlight",yk(i[1],o)))},Sk.prototype._hoverLinkFromSeriesMouseOver=function(t){var e,n;Jm(t.target,function(t){t=U(t);return null!=t.dataIndex&&(e=t,1)},!0),e&&(t=this.ecModel.getSeriesByIndex(e.seriesIndex),(n=this.visualMapModel).isTargetSeries(t))&&(n=(t=t.getData(e.dataType)).getStore().get(n.getDataDimensionIndex(t),e.dataIndex),isNaN(n)||this._showIndicator(n,n))},Sk.prototype._hideIndicator=function(){var t=this._shapes,e=(t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0),this._shapes.handleLabels);if(e)for(var n=0;n<e.length;n++)this.api.leaveBlur(e[n])},Sk.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",yk(t,this.visualMapModel)),t.length=0},Sk.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},Sk.prototype._applyTransform=function(t,e,n,i){e=Bc(e,i?null:this.group);return(V(t)?Vc:Fc)(t,e,n)},Sk.prototype._dispatchHighDown=function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},Sk.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},Sk.type="visualMap.continuous",Sk);function Sk(){var t=null!==mk&&mk.apply(this,arguments)||this;return t.type=Sk.type,t._shapes={},t._dataInterval=[],t._handleEnds=[],t._hoverLinkDataIndices=[],t}function Mk(t,e,n,i){return new Mh({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(t){De(t.event)},ondragend:i})}function Tk(t){var e=t.get("hoverLinkOnHandle");return null==e?t.get("realtime"):e}function Ik(t){return"vertical"===t?"ns-resize":"ew-resize"}function Ck(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})}var kk={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Dk=[{createOnAllSeries:!0,reset:function(n,t){var i=[];return t.eachComponent("visualMap",function(t){var e=n.pipelineContext;!t.isTargetSeries(n)||e&&e.large||i.push(K2(t.stateList,t.targetVisuals,S(t.getValueState,t),t.getDataDimensionIndex(n.getData())))}),i}},{createOnAllSeries:!0,reset:function(n,t){var i=n.getData(),r=[];t.eachComponent("visualMap",function(t){var e;t.isTargetSeries(n)&&(e=t.getVisualMeta(S(Lk,null,n,t))||{stops:[],outerColors:[]},0<=(t=t.getDataDimensionIndex(i)))&&(e.dimension=t,r.push(e))}),n.getData().setVisual("visualMeta",r)}}];function Lk(t,e,n,i){for(var r=e.targetVisuals[i],o=cT.prepareVisualTypes(r),a={color:Km(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],u=r["opacity"===u?"__alphaForOpacity":u];u&&u.applyVisual(n,h,c)}return a.color;function h(t){return a[t]}function c(t,e){a[t]=e}}var Ak=nt;function Pk(t){t=t&&t.visualMap;V(t)||(t=t?[t]:[]),Ak(t,function(t){t&&(Ok(t,"splitList")&&!Ok(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList),t=t.pieces)&&V(t)&&Ak(t,function(t){N(t)&&(Ok(t,"start")&&!Ok(t,"min")&&(t.min=t.start),Ok(t,"end"))&&!Ok(t,"max")&&(t.max=t.end)})})}function Ok(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var Rk=!1;function zk(e){Rk||(Rk=!0,e.registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?0<t.pieces.length:0<t.splitNumber)&&!t.calculable?"piecewise":"continuous"}),e.registerAction(kk,Ck),nt(Dk,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(Pk))}function Nk(t){t.registerComponentModel(sk),t.registerComponentView(wk),zk(t)}u(Vk,Ek=Yh),Vk.prototype.optionUpdated=function(t,e){Ek.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode(),i=(this._pieceList=[],Fk[this._mode].call(this,this._pieceList),this._resetSelected(t,e),this.option.categories);this.resetVisual(function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=y(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=B(this._pieceList,function(t){return t=y(t),"inRange"!==e&&(t.visual=null),t}))})},Vk.prototype.completeVisualOption=function(){var i=this.option,n={},t=cT.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}nt(i.pieces,function(e){nt(t,function(t){e.hasOwnProperty(t)&&(n[t]=1)})}),nt(n,function(t,e){var n=!1;nt(this.stateList,function(t){n=n||o(i,t,e)||o(i.target,t,e)},this),n||nt(this.stateList,function(t){(i[t]||(i[t]={}))[e]=X2(e,"inRange"===t?"active":"inactive",r)})},this),Ek.prototype.completeVisualOption.apply(this,arguments)},Vk.prototype._resetSelected=function(t,e){var n,i=this.option,r=this._pieceList,o=(e?i:t).selected||{};i.selected=o,nt(r,function(t,e){t=this.getSelectedMapKey(t);o.hasOwnProperty(t)||(o[t]=!0)},this),"single"===i.selectedMode&&(n=!1,nt(r,function(t,e){t=this.getSelectedMapKey(t);o[t]&&(n?o[t]=!1:n=!0)},this))},Vk.prototype.getItemSymbol=function(){return this.get("itemSymbol")},Vk.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},Vk.prototype.getPieceList=function(){return this._pieceList},Vk.prototype._determineMode=function(){var t=this.option;return t.pieces&&0<t.pieces.length?"pieces":this.option.categories?"categories":"splitNumber"},Vk.prototype.setSelected=function(t){this.option.selected=y(t)},Vk.prototype.getValueState=function(t){t=cT.findPieceIndex(t,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},Vk.prototype.findTargetDataIndices=function(i){var r=[],o=this._pieceList;return this.eachTargetSeries(function(t){var n=[],e=t.getData();e.each(this.getDataDimensionIndex(e),function(t,e){cT.findPieceIndex(t,o)===i&&n.push(e)},this),r.push({seriesId:t.id,dataIndex:n})},this),r},Vk.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},Vk.prototype.getVisualMeta=function(i){var r,o,a,t,e,n;if(!this.isCategory())return r=[],o=["",""],(t=(a=this)._pieceList.slice()).length?((e=t[0].interval[0])!==-1/0&&t.unshift({interval:[-1/0,e]}),(e=t[t.length-1].interval[1])!==1/0&&t.push({interval:[e,1/0]})):t.push({interval:[-1/0,1/0]}),n=-1/0,nt(t,function(t){t=t.interval;t&&(t[0]>n&&s([n,t[0]],"outOfRange"),s(t.slice()),n=t[1])},this),{stops:r,outerColors:o};function s(t,e){var n=a.getRepresentValue({interval:t}),n=(e=e||a.getValueState(n),i(n,e));t[0]===-1/0?o[0]=n:t[1]===1/0?o[1]=n:r.push({value:t[0],color:n},{value:t[1],color:n})}},Vk.type="visualMap.piecewise",Vk.defaultOption=Np(Yh.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0});var Ek,Bk=Vk;function Vk(){var t=null!==Ek&&Ek.apply(this,arguments)||this;return t.type=Vk.type,t._pieceList=[],t}var Fk={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber,r=Math.max(parseInt(r,10),1);e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a<r;s+=o,a++){var l=a===r-1?i[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[i[1],1/0],close:[0,0]}),Fo(t),nt(t,function(t,e){t.index=e,t.text=this.formatValueText(t.interval)},this)},categories:function(e){var t=this.option;nt(t.categories,function(t){e.push({text:this.formatValueText(t,!0),value:t})},this),Hk(t,e)},pieces:function(c){var t=this.option;nt(t.pieces,function(t,e){e={text:"",index:e};if(null!=(t=N(t)?t:{value:t}).label&&(e.text=t.label),t.hasOwnProperty("value")){var n=e.value=t.value;e.interval=[n,n],e.close=[1,1]}else{for(var i=e.interval=[],r=e.close=[0,0],o=[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]],r[l]=o[h],s[l]=2===h;null==i[l]&&(i[l]=a[l])}s[0]&&i[1]===1/0&&(r[0]=0),s[1]&&i[0]===-1/0&&(r[1]=0),i[0]===i[1]&&r[0]&&r[1]&&(e.value=i[0])}e.visual=cT.retrieveVisuals(t),c.push(e)},this),Hk(t,c),Fo(c),nt(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 Hk(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}u(Uk,Gk=Qu),Uk.prototype.doRender=function(){var r=this.group,o=(r.removeAll(),this.visualMapModel),a=o.get("textGap"),s=o.textStyleModel,l=this._getItemAlign(),u=o.itemSize,t=this._getViewData(),e=t.endsText,h=bt(o.get("showLabel",!0),!e),c=!o.get("selectedMode");e&&this._renderEndsText(r,e[0],u,h,l),nt(t.viewPieceList,function(t){var e,n=t.piece,i=new lo,t=(i.onclick=S(this._onItemClick,this,n),this._enableHoverLink(i,t.indexInModelPieceList),o.getRepresentValue(n));this._createItemSymbol(i,t,[0,0,u[0],u[1]],c),h&&(t=this.visualMapModel.getValueState(t),e=s.get("align")||l,i.add(new vl({style:hp(s,{x:"right"===e?-a:u[0]+a,y:u[1]/2,text:n.text,verticalAlign:s.get("verticalAlign")||"middle",align:e,opacity:G(s.get("opacity"),"outOfRange"===t?.5:1)}),silent:c}))),r.add(i)},this),e&&this._renderEndsText(r,e[1],u,h,l),Gd(o.get("orient"),r,o.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},Uk.prototype._enableHoverLink=function(t,n){var i=this,e=(t.on("mouseover",function(){return e("highlight")}).on("mouseout",function(){return e("downplay")}),function(t){var e=i.visualMapModel;e.option.hoverLink&&i.api.dispatchAction({type:t,batch:yk(e.findTargetDataIndices(n),e)})})},Uk.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;return"vertical"===e.orient?gk(t,this.api,t.itemSize):(t=e.align)&&"auto"!==t?t:"left"},Uk.prototype._renderEndsText=function(t,e,n,i,r){var o,a;e&&(o=new lo,a=this.visualMapModel.textStyleModel,o.add(new vl({style:hp(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o))},Uk.prototype._getViewData=function(){var t=this.visualMapModel,e=B(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),t=t.get("inverse");return("horizontal"===i?t:!t)?e.reverse():n=n&&n.slice().reverse(),{viewPieceList:e,endsText:n}},Uk.prototype._createItemSymbol=function(t,e,n,i){n=c0(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color"));n.silent=i,t.add(n)},Uk.prototype._onItemClick=function(t){var n,i,e=this.visualMapModel,r=e.option,o=r.selectedMode;o&&(n=y(r.selected),i=e.getSelectedMapKey(t),"single"===o||!0===o?(n[i]=!0,nt(n,function(t,e){n[e]=e===i})):n[i]=!n[i],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:n}))},Uk.type="visualMap.piecewise";var Gk,Wk=Uk;function Uk(){var t=null!==Gk&&Gk.apply(this,arguments)||this;return t.type=Uk.type,t}function Xk(t){t.registerComponentModel(Bk),t.registerComponentView(Wk),zk(t)}ox(function(t){ox(Nk),ox(Xk)}),ox(Yb);var Yk={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Zk=(qk.prototype.evaluate=function(t){var e=typeof t;return F(e)?this._condVal.test(t):!!H(e)&&this._condVal.test(t+"")},qk);function qk(t){null==(this._condVal=F(t)?new RegExp(t):_t(t)?t:null)&&f("")}Kk.prototype.evaluate=function(){return this.value};var jk=Kk;function Kk(){}Qk.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var $k=Qk;function Qk(){}tD.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var Jk=tD;function tD(){}nD.prototype.evaluate=function(){return!this.child.evaluate()};var eD=nD;function nD(){}rD.prototype.evaluate=function(){for(var t=!!this.valueParser,e=(0,this.getValue)(this.valueGetterParam),n=t?this.valueParser(e):null,i=0;i<this.subCondList.length;i++)if(!this.subCondList[i].evaluate(t?n:e))return!1;return!0};var iD=rD;function rD(){}function oD(t,e){if(!0===t||!1===t)return(n=new jk).value=t,n;var n;if(sD(t)||f(""),t.and)return aD("and",t,e);if(t.or)return aD("or",t,e);if(t.not)return n=e,sD(o=(o=t).not)||f(""),(l=new eD).child=oD(o,n),l.child||f(""),l;for(var i=t,r=e,o=r.prepareGetValue(i),a=[],s=ct(i),l=i.parser,u=l?Qg(l):null,h=0;h<s.length;h++){var c,p=s[h];"parser"===p||r.valueGetterAttrMap.get(p)||(c=Bt(Yk,p)?Yk[p]:p,p=i[p],p=u?u(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new ry("eq"===t,e):Bt(Jg,t)?new ty(t,e):null}(c,p)||"reg"===c&&new Zk(p))||f(""),a.push(c))}return a.length||f(""),(l=new iD).valueGetterParam=o,l.valueParser=u,l.getValue=r.getValue,l.subCondList=a,l}function aD(t,e,n){e=e[t],V(e)||f(""),e.length||f(""),t=new("and"===t?$k:Jk);return t.children=B(e,function(t){return oD(t,n)}),t.children.length||f(""),t}function sD(t){return N(t)&&!st(t)}uD.prototype.evaluate=function(){return this._cond.evaluate()};var lD=uD;function uD(t,e){this._cond=oD(t,e)}var hD={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,r=(t=t.config,n={valueGetterAttrMap:it({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(Bt(t,"dimension")||f(""),i.getDimensionInfo(e));return t||f(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new lD(t,n)),o=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),r.evaluate()&&o.push(e);return{data:o}}},cD={type:"echarts:sort",transform:function(t){for(var a=t.upstream,t=t.config,t=Zo(t),s=(t.length||f(""),[]),t=(nt(t,function(t){var e=t.dimension,n=t.order,i=t.parser,t=t.incomparable,e=(null==e&&f(""),"asc"!==n&&"desc"!==n&&f(""),t&&"min"!==t&&"max"!==t&&f(""),"asc"!==n&&"desc"!==n&&f(""),a.getDimensionInfo(e)),r=(e||f(""),i?Qg(i):null);i&&!r&&f(""),s.push({dimIdx:e.index,parser:r,comparator:new ny(n,t)})}),a.sourceFormat),e=(t!==hf&&t!==cf&&f(""),[]),n=0,i=a.count();n<i;n++)e.push(a.getRawDataItem(n));return e.sort(function(t,e){for(var n=0;n<s.length;n++){var i=s[n],r=a.retrieveValueFromItem(t,i.dimIdx),o=a.retrieveValueFromItem(e,i.dimIdx),i=(i.parser&&(r=i.parser(r),o=i.parser(o)),i.comparator.evaluate(r,o));if(0!==i)return i}return 0}),{data:e}}};ox(function(t){t.registerTransform(hD),t.registerTransform(cD)}),t.Axis=Dp,t.ChartView=um,t.ComponentModel=g,t.ComponentView=rm,t.List=z_,t.Model=Pp,t.PRIORITY=r0,t.SeriesModel=Ky,t.color=Pi,t.connect=function(e){var t;return V(e)&&(t=e,e=null,nt(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+Hv++,nt(t,function(t){t.group=e})),Vv[e]=!0,e},t.dataTool={},t.dependencies={zrender:"6.0.0"},t.disConnect=i0,t.disconnect=Wv,t.dispose=function(t){F(t)?t=Bv[t]:t instanceof Sv||(t=Uv(t)),t instanceof Sv&&!t.isDisposed()&&t.dispose()},t.env=w,t.extendChartView=function(t){return t=um.extend(t),um.registerClass(t),t},t.extendComponentModel=function(t){return t=g.extend(t),g.registerClass(t),t},t.extendComponentView=function(t){return t=rm.extend(t),rm.registerClass(t),t},t.extendSeriesModel=function(t){return t=Ky.extend(t),Ky.registerClass(t),t},t.format=$p,t.getCoordinateSystemDimensions=function(t){if(t=Pd.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.getInstanceByDom=Uv,t.getInstanceById=function(t){return Bv[t]},t.getMap=function(t){var e=U0.getMap;return e&&e(t)},t.graphic=Tp,t.helper=Cp,t.init=function(t,e,n){var i=!(n&&n.ssr);if(i){var r=Uv(t);if(r)return r}return(r=new Sv(t,e,n)).id="ec_"+Fv++,Bv[r.id]=r,i&&ca(t,Gv,r.id),vv(r),W0.trigger("afterinit",r),r},t.innerDrawElementOnCanvas=N0,t.matrix=We,t.number=a0,t.parseGeoJSON=Sx,t.parseGeoJson=Sx,t.registerAction=$v,t.registerCoordinateSystem=Qv,t.registerCustomSeries=function(t,e){},t.registerLayout=Jv,t.registerLoading=i_,t.registerLocale=Wp,t.registerMap=r_,t.registerPostInit=qv,t.registerPostUpdate=jv,t.registerPreprocessor=Yv,t.registerProcessor=Zv,t.registerTheme=Xv,t.registerTransform=o_,t.registerUpdateLifecycle=Kv,t.registerVisual=t_,t.setCanvasCreator=function(t){I({createCanvas:t})},t.setPlatformAPI=I,t.throttle=_m,t.time=Ta,t.use=ox,t.util=Ec,t.vector=ae,t.version="6.0.0",t.zrUtil=Gt,t.zrender=_o});