echarts.min.js 497 KB

1
  1. !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).echarts={})}(this,function(t){"use strict";var w=function(t,e){return(w=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}w(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var S=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},p=new function(){this.browser=new S,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(p.wxa=!0,p.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?p.worker=!0:!p.hasGlobalWindow||"Deno"in window||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&-1<navigator.userAgent.indexOf("Node.js")?(p.node=!0,p.svgSupported=!0):(J=navigator.userAgent,Gt=(Wt=p).browser,ot=J.match(/Firefox\/([\d.]+)/),Z=J.match(/MSIE\s([\d.]+)/)||J.match(/Trident\/.+?rv:(([\d.]+))/),Q=J.match(/Edge?\/([\d.]+)/),J=/micromessenger/i.test(J),ot&&(Gt.firefox=!0,Gt.version=ot[1]),Z&&(Gt.ie=!0,Gt.version=Z[1]),Q&&(Gt.edge=!0,Gt.version=Q[1],Gt.newEdge=18<+Q[1].split(".")[0]),J&&(Gt.weChat=!0),Wt.svgSupported="undefined"!=typeof SVGRect,Wt.touchEventsSupported="ontouchstart"in window&&!Gt.ie&&!Gt.edge,Wt.pointerEventsSupported="onpointerdown"in window&&(Gt.edge||Gt.ie&&11<=+Gt.version),(Wt.domSupported="undefined"!=typeof document)&&(ot=document.documentElement.style,Wt.transform3dSupported=(Gt.ie&&"transition"in ot||Gt.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in ot)&&!("OTransition"in ot),Wt.transformSupported=Wt.transform3dSupported||Gt.ie&&9<=+Gt.version));var j="12px sans-serif";var T,C,I=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"),G={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(T||(n=G.createCanvas(),T=n&&n.getContext("2d")),T)return C!==e&&(C=T.font=e||j),T.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=I[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 D(t){for(var e in G)t[e]&&(G[e]=t[e])}var L=ut(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),A=ut(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),R=Object.prototype.toString,Z=Array.prototype,Y=Z.forEach,q=Z.filter,K=Z.slice,$=Z.map,Q=function(){}.constructor,J=Q?Q.prototype:null,tt="__proto__",et=2311;function nt(){return et++}function it(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function v(t){if(null==t||"object"!=typeof t)return t;var e=t,n=R.call(t);if("[object Array]"===n){if(!Lt(t))for(var e=[],i=0,r=t.length;i<r;i++)e[i]=v(t[i])}else if(A[n]){if(!Lt(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(!L[n]&&!Lt(t)&&!mt(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==tt&&(e[a]=v(t[a]));return e}function d(t,e,n){if(!H(e)||!H(t))return n?v(e):t;for(var i in e){var r,o;e.hasOwnProperty(i)&&i!==tt&&(r=t[i],!H(o=e[i])||!H(r)||E(o)||E(r)||mt(o)||mt(r)||gt(o)||gt(r)||Lt(o)||Lt(r)?!n&&i in t||(t[i]=v(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!==tt&&(t[n]=e[n]);return t}function rt(t,e,n){for(var i=pt(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 ot=G.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 at(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 st(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else rt(t,e,n)}function lt(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function N(t,e,n){if(t&&e)if(t.forEach&&t.forEach===Y)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 Mt(t);if(t.map&&t.map===$)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 ut(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 ht(t,e,n){if(!t)return[];if(!e)return Mt(t);if(t.filter&&t.filter===q)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 ct(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 pt(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 y=J&&z(J.bind)?J.call.bind(J.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(K.call(arguments)))}};function dt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(K.call(arguments)))}}function E(t){return Array.isArray?Array.isArray(t):"[object Array]"===R.call(t)}function z(t){return"function"==typeof t}function V(t){return"string"==typeof t}function ft(t){return"[object String]"===R.call(t)}function F(t){return"number"==typeof t}function H(t){var e=typeof t;return"function"==e||!!t&&"object"==e}function gt(t){return!!L[R.call(t)]}function yt(t){return!!A[R.call(t)]}function mt(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function vt(t){return null!=t.colorStops}function _t(t){return null!=t.image}function xt(t){return"[object RegExp]"===R.call(t)}function bt(t){return t!=t}function wt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function W(t,e){return null!=t?t:e}function St(t,e,n){return null!=t?t:null!=e?e:n}function Mt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return K.apply(t,e)}function Tt(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 Ct(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 kt="__ec_primitive__";function Dt(t){t[kt]=!0}function Lt(t){return t[kt]}Pt.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},Pt.prototype.has=function(t){return this.data.hasOwnProperty(t)},Pt.prototype.get=function(t){return this.data[t]},Pt.prototype.set=function(t,e){return this.data[t]=e,this},Pt.prototype.keys=function(){return pt(this.data)},Pt.prototype.forEach=function(t){var e,n=this.data;for(e in n)n.hasOwnProperty(e)&&t(n[e],e)};var At=Pt;function Pt(){this.data={}}var Ot="function"==typeof Map;Nt.prototype.hasKey=function(t){return this.data.has(t)},Nt.prototype.get=function(t){return this.data.get(t)},Nt.prototype.set=function(t,e){return this.data.set(t,e),e},Nt.prototype.each=function(n,i){this.data.forEach(function(t,e){n.call(i,t,e)})},Nt.prototype.keys=function(){var t=this.data.keys();return Ot?Array.from(t):t},Nt.prototype.removeKey=function(t){this.data.delete(t)};var Rt=Nt;function Nt(t){var n=E(t),i=(this.data=new(Ot?Map:At),this);function e(t,e){n?i.set(t,e):i.set(e,t)}t instanceof Nt?t.each(e):t&&N(t,e)}function O(t){return new Rt(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 Bt(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 Vt(t,e){return t.hasOwnProperty(e)}function Ft(){}var Ht=180/Math.PI,Wt=Number.EPSILON||Math.pow(2,-52),Gt=Object.freeze({__proto__:null,EPSILON:Wt,HashMap:Rt,RADIAN_TO_DEGREE:Ht,assert:Ct,bind:y,clone:v,concatArray:zt,createCanvas:ot,createHashMap:O,createObject:Bt,curry:dt,defaults:rt,disableUserSelect:Et,each:N,eqNaN:bt,extend:P,filter:ht,find:ct,guid:nt,hasOwn:Vt,indexOf:k,inherits:at,isArray:E,isArrayLike:lt,isBuiltInObject:gt,isDom:mt,isFunction:z,isGradientObject:vt,isImagePatternObject:_t,isNumber:F,isObject:H,isPrimitive:Lt,isRegExp:xt,isString:V,isStringSafe:ft,isTypedArray:yt,keys:pt,logError:it,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:st,noop:Ft,normalizeCssArray:Tt,reduce:ut,retrieve:wt,retrieve2:W,retrieve3:St,setAsPrimitive:Dt,slice:Mt,trim:It});function Zt(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,t[1]=n,t}function qt(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function jt(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function Kt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function $t(t){return Math.sqrt(Qt(t))}function Qt(t){return t[0]*t[0]+t[1]*t[1]}function Jt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function te(t,e){var n=$t(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function ee(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var ne=ee;function ie(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var re=ie;function oe(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 ae(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 se(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function le(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var ue=Object.freeze({__proto__:null,add:qt,applyTransform:ae,clone:Xt,copy:Ut,create:Zt,dist:ne,distSquare:re,distance:ee,distanceSquare:ie,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:$t,lenSquare:Qt,length:$t,lengthSquare:Qt,lerp:oe,max:le,min:se,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:te,scale:Jt,scaleAndAdd:jt,set:Yt,sub:Kt}),he=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},ce=(pe.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 he(e,t),"dragstart",t.event))},pe.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 he(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 he(r,t),"dragleave",t.event),i)&&i!==r&&this.handler.dispatchToElement(new he(i,t),"dragenter",t.event)},pe.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new he(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new he(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},pe);function pe(t){(this.handler=t).on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}fe.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},fe.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},fe.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},fe.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},fe.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 de=fe;function fe(t){t&&(this._$eventProcessor=t)}var ge=Math.log(2);function ye(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)/ge),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]*ye(t,e-1,h,u,r|f,o),d++)}return o[s]=c}function me(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=ye(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)*ye(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 ve="___zrEVENTSAVED";function _e(t,e,n,i,r){if(e.getBoundingClientRect&&p.domSupported&&!xe(e)){var o=e[ve]||(e[ve]={}),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?me(s,a):me(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(){N(n,function(t){t.parentNode&&t.parentNode.removeChild(t)})}}return n}(e,o),o,r);if(e)return e(t,n,i),1}}function xe(t){return"CANVAS"===t.nodeName.toUpperCase()}var be=/([&<>"'])/g,we={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Se(t){return null==t?"":(t+"").replace(be,function(t,e){return we[e]})}var Me=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=[],Ce=p.browser.firefox&&+p.browser.version.split(".")[0]<39;function Ie(t,e,n,i){return n=n||{},i?ke(t,e,n):Ce&&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):ke(t,e,n),n}function ke(t,e,n){if(p.domSupported&&t.getBoundingClientRect){var i,r=e.clientX,e=e.clientY;if(xe(t))return i=t.getBoundingClientRect(),n.zrX=r-i.left,void(n.zrY=e-i.top);if(_e(Te,t,r,e))return n.zrX=Te[0],void(n.zrY=Te[1])}n.zrX=n.zrY=0}function De(t){return t||window.event}function Le(t,e,n){var i;return null==(e=De(e)).zrX&&((i=e.type)&&0<=i.indexOf("touch")?(i=("touchend"!==i?e.targetTouches:e.changedTouches)[0])&&Ie(t,i,e,n):(Ie(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&&Me.test(e.type))&&(e.which=1&t?1:2&t?3:4&t?2:0),e}var Ae=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Pe(t){return 2===t.which||3===t.which}Re.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},Re.prototype.clear=function(){return this._track.length=0,this},Re.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=Ie(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},Re.prototype._recognize=function(t){for(var e in ze)if(ze.hasOwnProperty(e)){e=ze[e](this._track,t);if(e)return e}};var Oe=Re;function Re(){this._track=[]}function Ne(t){var e=t[1][0]-t[0][0],t=t[1][1]-t[0][1];return Math.sqrt(e*e+t*t)}var ze={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=Ne(n)/Ne(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 Be(){return[1,0,0,1,0,0]}function Ee(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Ve(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Fe(t,e,n){var i=e[0]*n[0]+e[2]*n[1],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 He(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function We(t,e,n,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 Ge(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 Ze(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 Ue=Object.freeze({__proto__:null,clone:function(t){var e=Be();return Ve(e,t),e},copy:Ve,create:Be,identity:Ee,invert:Ze,mul:Fe,rotate:We,scale:Ge,translate:He}),M=(e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,e){return this.x=t,this.y=e,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},e.prototype.distanceSquare=function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.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},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,e,n){t.x=e,t.y=n},e.copy=function(t,e){t.x=e.x,t.y=e.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,e){return t.x*e.x+t.y*e.y},e.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},e.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},e.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},e.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},e.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},e);function e(t,e){this.x=t||0,this.y=e||0}var Xe=Math.min,Ye=Math.max,qe=Math.abs,je=["x","y"],Ke=["width","height"],$e=new M,Qe=new M,Je=new M,tn=new M,en=hn(),nn=en.minTv,rn=en.maxTv,on=[0,0],U=(an.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},an.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},an.prototype.applyTransform=function(t){an.applyTransform(this,this,t)},an.prototype.calculateTransform=function(t){var e=t.width/this.width,n=t.height/this.height,i=Be();return He(i,i,[-this.x,-this.y]),Ge(i,i,[e,n]),He(i,i,[t.x,t.y]),i},an.prototype.intersect=function(t,e,n){return an.intersect(this,t,e,n)},an.intersect=function(t,e,n,i){n&&M.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 an||(t=an.set(sn,t.x,t.y,t.width,t.height)),e instanceof an||(e=an.set(ln,e.x,e.y,e.width,e.height));var a=!!n,i=(en.reset(i,a),en.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)&&(on[0]=1/0,un(s,l,h,c,on[1]=0,a,r,o),un(u,t,p,e,1,a,r,o),a)&&M.copy(n,i?en.useDir?en.dirMinTv:nn:rn),i)},an.contain=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},an.prototype.contain=function(t,e){return an.contain(this,t,e)},an.prototype.clone=function(){return new an(this.x,this.y,this.width,this.height)},an.prototype.copy=function(t){an.copy(this,t)},an.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},an.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},an.prototype.isZero=function(){return 0===this.width||0===this.height},an.create=function(t){return new an(t.x,t.y,t.width,t.height)},an.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},an.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)):($e.x=Je.x=e.x,$e.y=tn.y=e.y,Qe.x=tn.x=e.x+e.width,Qe.y=Je.y=e.y+e.height,$e.transform(n),tn.transform(n),Qe.transform(n),Je.transform(n),t.x=Xe($e.x,Qe.x,Je.x,tn.x),t.y=Xe($e.y,Qe.y,Je.y,tn.y),o=Ye($e.x,Qe.x,Je.x,tn.x),a=Ye($e.y,Qe.y,Je.y,tn.y),t.width=o-t.x,t.height=a-t.y):t!==e&&an.copy(t,e)},an);function an(t,e,n,i){an.set(this,t,e,n,i)}var sn=new U(0,0,0,0),ln=new U(0,0,0,0);function un(t,e,n,i,r,o,a,s){var l=qe(e-n),u=qe(i-t),h=Xe(l,u),c=je[r],p=je[1-r],r=Ke[r];e<n||i<t?l<u?(o&&(rn[c]=-l),s&&(a[c]=e,a[r]=0)):(o&&(rn[c]=u),s&&(a[c]=t,a[r]=0)):(a&&(a[c]=Ye(t,n),a[r]=Xe(e,i)-a[c]),o&&(h<on[0]||en.useDir)&&(on[0]=Xe(h,on[0]),(l<u||!en.bidirectional)&&(nn[c]=l,nn[p]=0,en.useDir)&&en.calcDirMTV(),u<=l||!en.bidirectional)&&(nn[c]=-u,nn[p]=0,en.useDir)&&en.calcDirMTV())}function hn(){var a=0,s=new M,l=new M,u={minTv:new M,maxTv:new M,useDir:!1,dirMinTv:new M,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 qe(t)<1e-10}return u}var cn="silent";function pn(){Ae(this.event)}u(gn,dn=de),gn.prototype.dispose=function(){},gn.prototype.setCursor=function(){};var dn,fn=gn;function gn(){var t=null!==dn&&dn.apply(this,arguments)||this;return t.handler=null,t}var yn,mn=function(t,e){this.x=t,this.y=e},vn=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],_n=new U(0,0,0,0),xn=(u(bn,yn=de),bn.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(N(vn,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},bn.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Sn(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 mn(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)},bn.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})},bn.prototype.resize=function(){this._hovered=new mn(0,0)},bn.prototype.dispatch=function(t,e){t=this[t];t&&t.call(this,e)},bn.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},bn.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},bn.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:pn};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)}))}},bn.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new mn(t,e);if(wn(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new U(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||(_n.copy(h.getBoundingRect()),h.transform&&_n.applyTransform(h.transform),_n.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(wn(o,r,t+d*Math.cos(f),e+d*Math.sin(f),n),r.target)return r}return r},bn.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Oe);var n=this._gestureMgr,i=("start"===e&&n.clear(),n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom));"end"===e&&n.clear(),i&&(e=i.type,t.gestureEvent=e,(n=new mn).target=i.target,this.dispatchToElement(n,e,i.event))},bn);function bn(t,e,n,i,r){var o=yn.call(this)||this;return o._hovered=new mn(0,0),o.storage=t,o.painter=e,o.painterRoot=i,o._pointerSize=r,n=n||new fn,o.proxy=null,o.setHandlerProxy(n),o._draggingMgr=new ce(o),o}function wn(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||cn}return!1}(a,n,i))&&(e.topTarget||(e.topTarget=a),s!==cn)){e.target=a;break}}}function Sn(t,e,n){t=t.painter;return e<0||e>t.getWidth()||n<0||n>t.getHeight()}N(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){xn.prototype[a]=function(t){var e,n,i=t.zrX,r=t.zrY,o=Sn(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<ne(this._downPoint,[t.zrX,t.zrY]))return;this._downPoint=null}this.dispatchToElement(e,a,t)}});var Mn=32,Tn=7;function Cn(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 kn(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 Dn(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 Ln(L,A){var P,O,R=Tn,N=0,z=[];function e(t){var e=P[t],n=O[t],i=P[t+1],r=O[t+1],t=(O[t]=n+r,t===N-3&&(P[t+1]=P[t+2],O[t+1]=O[t+2]),N--,Dn(L[i],L,e,n,0,A));if(e+=t,0!=(n-=t)&&0!==(r=kn(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++)z[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]=z[u+l];else if(1===a){for(l=0;l<s;l++)L[c+l]=L[h+l];L[c+s]=z[u]}else{for(var p,d,f,g=R;;){d=p=0,f=!1;do{if(A(L[h],z[u])<0){if(L[c++]=L[h++],d++,(p=0)==--s){f=!0;break}}else if(L[c++]=z[u++],p++,d=0,1==--a){f=!0;break}}while((p|d)<g);if(f)break;do{if(0!==(p=Dn(L[h],z,u,a,0,A))){for(l=0;l<p;l++)L[c+l]=z[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=kn(z[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++]=z[u++],1==--a){f=!0;break}}while(g--,Tn<=p||Tn<=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]=z[u]}else{if(0===a)throw new Error;for(l=0;l<a;l++)L[c+l]=z[u+l]}}}else{var y=e,m=n,v=i,_=r,x=0;for(x=0;x<_;x++)z[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]=z[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]=z[w]}else{for(var C=R;;){var I=0,k=0,D=!1;do{if(A(z[w],L[b])<0){if(L[S--]=L[b--],I++,(k=0)==--m){D=!0;break}}else if(L[S--]=z[w--],k++,I=0,1==--_){D=!0;break}}while((I|k)<C);if(D)break;do{if(0!==(I=m-Dn(z[w],L,y,m,m-1,A))){for(m-=I,T=(S-=I)+1,M=(b-=I)+1,x=I-1;0<=x;x--)L[T+x]=L[M+x];if(0===m){D=!0;break}}if(L[S--]=z[w--],1==--_){D=!0;break}if(0!==(k=_-kn(L[b],z,0,_,_-1,A))){for(_-=k,T=(S-=k)+1,M=(w-=k)+1,x=0;x<k;x++)L[T+x]=z[M+x];if(_<=1){D=!0;break}}if(L[S--]=L[b--],0==--m){D=!0;break}}while(C--,Tn<=I||Tn<=k);if(D)break;C<0&&(C=0),C+=2}if((R=C)<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]=z[w]}else{if(0===_)throw new Error;for(M=S-(_-1),x=0;x<_;x++)L[M+x]=z[x]}}}}return P=[],O=[],{mergeRuns:function(){for(;1<N;){var t=N-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<N;){var t=N-2;0<t&&O[t-1]<O[t+1]&&t--,e(t)}},pushRun:function(t,e){P[N]=t,O[N]=e,N+=1}}}function An(t,e,n,i){var r=(i=i||t.length)-(n=n||0);if(!(r<2)){var o=0;if(r<Mn)In(t,n,i,n+(o=Cn(t,n,i,e)),e);else{var a,s=Ln(t,e),l=function(t){for(var e=0;Mn<=t;)e|=1&t,t>>=1;return t+e}(r);do{}while((o=Cn(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 Pn=1,On=4,Rn=!1;function Nn(){Rn||(Rn=!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,An(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|=Pn),this._updateAndAddDisplayable(p,a,n)}t.__dirty=0}else{r=t;isNaN(r.z)&&(Nn(),r.z=0),isNaN(r.z2)&&(Nn(),r.z2=0),isNaN(r.zlevel)&&(Nn(),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 Bn=En;function En(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=zn}var Vn=p.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Fn={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-Fn.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*Fn.bounceIn(2*t):.5*Fn.bounceOut(2*t-1)+.5}},Hn=Math.pow,Wn=Math.sqrt,Gn=1e-8,Zn=Wn(3),Un=1/3,Xn=Zt(),Yn=Zt(),qn=Zt();function jn(t){return-Gn<t&&t<Gn}function Kn(t){return Gn<t||t<-Gn}function $n(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 Qn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Jn(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 jn(r)&&jn(l)?jn(n)?o[0]=0:0<=(a=-e/n)&&a<=1&&(o[u++]=a):jn(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=Wn(e))),0<=(a=(-n-((t=(t=r*n+1.5*i*(-l+t))<0?-Hn(-t,Un):Hn(t,Un))+(e=e<0?-Hn(-e,Un):Hn(e,Un))))/(3*i))&&a<=1&&(o[u++]=a)):(t=(2*r*n-3*i*l)/(2*Wn(r*r*r)),e=Math.acos(t)/3,a=(-n-2*(l=Wn(r))*(t=Math.cos(e)))/(3*i),s=(-n+l*(t+Zn*Math.sin(e)))/(3*i),r=(-n+l*(t-Zn*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 ti(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 jn(i)?Kn(a)&&0<=(o=-n/a)&&o<=1&&(r[e++]=o):jn(t=a*a-4*i*n)?r[0]=-a/(2*i):0<t&&(t=(-a-(n=Wn(t)))/(2*i),0<=(o=(-a+n)/(2*i))&&o<=1&&(r[e++]=o),0<=t)&&t<=1&&(r[e++]=t),e}function ei(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 ni(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]=$n(t,n,r,a,m),Yn[1]=$n(e,i,o,s,m),(d=re(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]=$n(t,n,r,a,f=c-g),Yn[1]=$n(e,i,o,s,f),d=re(Yn,Xn),0<=f&&d<y?(c=f,y=d):(qn[0]=$n(t,n,r,a,p),qn[1]=$n(e,i,o,s,p),f=re(qn,Xn),p<=1&&f<y?(c=p,y=f):g*=.5);return h&&(h[0]=$n(t,n,r,a,c),h[1]=$n(e,i,o,s,c)),Wn(y)}function ii(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function ri(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function oi(t,e,n){n=t+n-2*e;return 0==n?.5:(t-e)/n}function ai(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 si(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]=ii(t,n,r,p),Yn[1]=ii(e,i,o,p),(y=re(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]=ii(t,n,r,f),Yn[1]=ii(e,i,o,f),re(Yn,Xn));0<=f&&y<c?(u=f,c=y):(qn[0]=ii(t,n,r,g),qn[1]=ii(e,i,o,g),f=re(qn,Xn),g<=1&&f<c?(u=g,c=f):h*=.5)}return l&&(l[0]=ii(t,n,r,u),l[1]=ii(e,i,o,u)),Wn(c)}var li=/cubic-bezier\(([0-9,\.e ]+)\)/;function ui(t){t=t&&li.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:Jn(0,n,r,1,t,e)&&$n(0,i,o,1,e[0])}}}ci.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},ci.prototype.pause=function(){this._paused=!0},ci.prototype.resume=function(){this._paused=!1},ci.prototype.setEasing=function(t){this.easing=t,this.easingFunc=z(t)?t:Fn[t]||ui(t)};var hi=ci;function ci(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||Ft,this.ondestroy=t.ondestroy||Ft,this.onrestart=t.onrestart||Ft,t.easing&&this.setEasing(t.easing)}var pi=function(t){this.value=t},di=(fi.prototype.insert=function(t){t=new pi(t);return this.insertEntry(t),t},fi.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++},fi.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--},fi.prototype.len=function(){return this._len},fi.prototype.clear=function(){this.head=this.tail=null,this._len=0},fi);function fi(){this._len=0}yi.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 pi(e),n.key=t,r.insertEntry(n),o[t]=n),a},yi.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},yi.prototype.clear=function(){this._list.clear(),this._map={}},yi.prototype.len=function(){return this._list.len()};var gi=yi;function yi(t){this._list=new di,this._maxSize=10,this._map={},this._maxSize=t}var mi={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 vi(t){return(t=Math.round(t))<0?0:255<t?255:t}function _i(t){return t<0?0:1<t?1:t}function xi(t){return t.length&&"%"===t.charAt(t.length-1)?vi(parseFloat(t)/100*255):vi(parseInt(t,10))}function bi(t){return t.length&&"%"===t.charAt(t.length-1)?_i(parseFloat(t)/100):_i(parseFloat(t))}function wi(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 Si(t,e,n){return t+(e-t)*n}function Mi(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function Ti(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var Ci=new gi(20),Ii=null;function ki(t,e){Ii&&Ti(Ii,e),Ii=Ci.put(t,Ii||e.slice())}function Di(t,e){if(t){e=e||[];var n=Ci.get(t);if(n)return Ti(e,n);n=(t+="").replace(/ /g,"").toLowerCase();if(n in mi)return Ti(e,mi[n]),ki(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?(Mi(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),ki(t,e),e):void Mi(e,0,0,0,1):7===i||9===i?0<=(r=parseInt(n.slice(1,7),16))&&r<=16777215?(Mi(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===i?parseInt(n.slice(7),16)/255:1),ki(t,e),e):void Mi(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?Mi(e,+a[0],+a[1],+a[2],1):Mi(e,0,0,0,1);s=bi(a.pop());case"rgb":return 3<=a.length?(Mi(e,xi(a[0]),xi(a[1]),xi(a[2]),3===a.length?s:bi(a[3])),ki(t,e),e):void Mi(e,0,0,0,1);case"hsla":return 4!==a.length?void Mi(e,0,0,0,1):(a[3]=bi(a[3]),Li(a,e),ki(t,e),e);case"hsl":return 3!==a.length?void Mi(e,0,0,0,1):(Li(a,e),ki(t,e),e);default:return}}Mi(e,0,0,0,1)}}function Li(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=bi(t[1]),r=bi(t[2]),i=r<=.5?r*(i+1):r+i-r*i,r=2*r-i;return Mi(e=e||[],vi(255*wi(r,i,n+1/3)),vi(255*wi(r,i,n)),vi(255*wi(r,i,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ai(t,e){var n=Di(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 zi(n,4===n.length?"rgba":"rgb")}}function Pi(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]=vi(Si(r[0],e[0],o=t-i)),n[1]=vi(Si(r[1],e[1],o)),n[2]=vi(Si(r[2],e[2],o)),n[3]=_i(Si(r[3],e[3],o)),n}var Oi=Pi;function Ri(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=Di(e[i]),e=Di(e[r]),a=zi([vi(Si(a[0],e[0],o=t-i)),vi(Si(a[1],e[1],o)),vi(Si(a[2],e[2],o)),_i(Si(a[3],e[3],o))],"rgba"),n?{color:a,leftIndex:i,rightIndex:r,value:t}:a}var n=Ri;function Ni(t,e,n,i){var r=Di(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]=bi(z(n)?n(r[1]):n)),null!=i&&(r[2]=bi(z(i)?i(r[2]):i)),zi(Li(r),"rgba")}function zi(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 Bi(t,e){t=Di(t);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*e:0}var Ei=new gi(100);function Vi(t){var e;return V(t)?((e=Ei.get(t))||(e=Ai(t,-.1),Ei.put(t,e)),e):vt(t)?((e=P({},t)).colorStops=B(t.colorStops,function(t){return{offset:t.offset,color:Ai(t.color,-.1)}}),e):t}Oi=Object.freeze({__proto__:null,fastLerp:Pi,fastMapToColor:Oi,lerp:Ri,lift:Ai,liftColor:Vi,lum:Bi,mapToColor:n,modifyAlpha:function(t,e){if((t=Di(t))&&null!=e)return t[3]=_i(e),zi(t,"rgba")},modifyHSL:Ni,parse:Di,parseCssFloat:bi,parseCssInt:xi,random:function(){return zi([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")},stringify:zi,toHex:function(t){if(t=Di(t))return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}});p.hasGlobalWindow&&z(window.btoa);var Fi=Array.prototype.slice;function Hi(t,e,n){return(e-t)*n+t}function Wi(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 Gi(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Zi(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 Ui(t){if(lt(t)){var e=t.length;if(lt(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 Xi(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 Yi(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=(lt(e)?(1==(s=i=lt((i=e)&&i[0])?2:1)&&!F(e[0])||2==i&&!F(e[0][0]))&&(a=!0):F(e)&&!bt(e)?s=0:V(e)?isNaN(+e)?(i=Di(e))&&(l=i,s=3):s=0:vt(e)&&((u=P({},l)).colorStops=B(e.colorStops,function(t){return{offset:t.offset,color:Di(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:Fn[n]||ui(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=Yi(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 C=n[0].value,u=0;u<r;u++)0===i?n[u].additiveValue=n[u].value-C:3===i?n[u].additiveValue=Gi([],n[u].value,C,-1):qi(i)&&(n[u].additiveValue=(1===i?Gi:Zi)([],n[u].value,C,-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?Wi: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):Yi(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:Xi(Wi([],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?(Wi(f,n[s],i[s],r),a||(t[c]=Xi(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?(Di(t[n],ji),Gi(ji,ji,i,1),t[n]=Xi(ji)):1===e?Gi(t[n],t[n],i,1):2===e&&Zi(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,pt(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&&Xi(u))):u=this._target[a],null==u)continue;0<t&&l.addKeyframe(0,Ui(u),i),this._trackKeys.push(a)}l.addKeyframe(t,Ui(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 hi({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]=Ui(o.rawValue))}}},Ji.prototype.__changeFinalValue=function(t,e){e=e||pt(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?it("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}function tr(){return(new Date).getTime()}u(ir,er=de),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,Vn(function t(){e._running&&(Vn(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=p.domSupported,ar=(rr={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:n=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:B(n,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=Ft,this.stopImmediatePropagation=Ft,this.preventDefault=Ft,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=Le(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Le(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=Le(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){pr(this,(t=Le(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ur=!0,t=Le(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ur||(t=Le(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){cr(t=Le(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=Le(this.dom,t)),this.handler.processGesture(t,"change"),fr.mousemove.call(this,t)},touchend:function(t){cr(t=Le(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=(N(["click","dblclick","contextmenu"],function(e){fr[e]=function(t){t=Le(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;p.pointerEventsSupported?N(ar.pointer,function(e){vr(r,e,function(t){o[e].call(i,t)})}):(p.touchEventsSupported&&N(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)})}),N(ar.mouse,function(e){vr(r,e,function(t){t=De(t),r.touching||o[e].call(i,t)})}))}function mr(i,r){function t(n){vr(r,n,function(t){var e;t=De(t),pr(i,t.target)||(e=t,t=Le(i.dom,new dr(i,e),!0),r.domHandlers[n].call(i,t))},{capture:!0})}p.pointerEventsSupported?N(lr,t):p.touchEventsSupported||N(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=de),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 n=1,Mr=n=p.hasGlobalWindow?Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1):n,Tr="#333",Cr="#ccc",Ir=Ee;function kr(t){return 5e-5<t||t<-5e-5}var Dr=[],Lr=[],Ar=Be(),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||Be(),e?this.getLocalTransform(n):Ir(n),t&&(e?Fe(n,t,n):Ve(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Ir(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||Be(),Ze(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||Be(),Fe(Lr,e.invTransform,t),t=Lr),e=this.originX,n=this.originY,(e||n)&&(Ar[4]=e,Ar[5]=n,Fe(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&&ae(t,t,e),t},Rr.prototype.transformCoordToGlobal=function(t,e){t=[t,e],e=this.transform;return e&&ae(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){Br(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&&We(e,e,l),e[4]+=n+u,e[5]+=i+h,e},Rr.initDefaultProps=((n=Rr.prototype).scaleX=n.scaleY=n.globalScaleRatio=1,void(n.x=n.y=n.originX=n.originY=n.skewX=n.skewY=n.rotation=n.anchorX=n.anchorY=0)),Rr);function Rr(){}var Nr,zr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Br(t,e){for(var n=0;n<zr.length;n++){var i=zr[n];t[i]=e[i]}}function Er(t){Nr=Nr||new gi(100),t=t||j;var e=Nr.get(t);return e||(e={font:t,strWidthCache:new gi(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:G.measureText("国",t).width,asciiCharWidth:G.measureText("a",t).width},Nr.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]=G.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=G.measureText(e,t.font).width,n.put(e,i)),i}function Wr(t,e,n,i){t=Hr(Er(e),t),e=Ur(e),n=Gr(0,t,n),i=Zr(0,e,i);return new U(n,i,t,e)}function Gr(t,e,n,i){return"right"===n?i?t+=e:t-=e:"center"===n&&(i?t+=e/2:t-=e/2),t}function Zr(t,e,n,i){return"middle"===n?i?t+=e/2:t-=e/2:"bottom"===n&&(i?t+=e:t-=e),t}function Ur(t){return Er(t).stWideCharWidth}function Xr(t,e){return"string"==typeof t?0<=t.lastIndexOf("%")?parseFloat(t)/100*e:parseFloat(t):t}function Yr(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+=Xr(i[0],n.width),u+=Xr(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 qr,jr="__zr_normal__",Kr=zr.concat(["ignore"]),$r=ut(zr,function(t,e){return t[e]=!0,t},{ignore:!1}),Qr={},Jr=new U(0,0,0,0),to=[],n=(i.prototype._init=function(t){this.attr(t)},i.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()},i.prototype.beforeUpdate=function(){},i.prototype.afterUpdate=function(){},i.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},i.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=Jr,t.layoutRect?r.copy(t.layoutRect):r.copy(this.getBoundingRect()),u||r.applyTransform(this.transform)),c&&(this.calculateTextPosition?this.calculateTextPosition(Qr,t,r):Yr(Qr,t,r),e.x=Qr.x,e.y=Qr.y,o=Qr.align,a=Qr.verticalAlign,c=t.origin)&&null!=t.rotation&&(l=s=void 0,l="center"===c?(s=.5*r.width,.5*r.height):(s=Xr(c[0],r.width),Xr(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 U(0,0,0,0),e.getLocalTransform(to),Ze(to,to),U.copy(l,r),l.applyTransform(to)):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|=Pn,n&&p.dirtyStyle(!0))},i.prototype.canBeInsideText=function(){return!0},i.prototype.getInsideTextFill=function(){return"#fff"},i.prototype.getInsideTextStroke=function(t){return"#000"},i.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Cr:Tr},i.prototype.getOutsideStroke=function(t){for(var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Di(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,zi(n,"rgba")},i.prototype.traverse=function(t,e){},i.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},i.prototype.hide=function(){this.ignore=!0,this.markRedraw()},i.prototype.show=function(){this.ignore=!1,this.markRedraw()},i.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(H(t))for(var n=pt(t),i=0;i<n.length;i++){var r=n[i];this.attrKV(r,t[r])}return this.markRedraw(),this},i.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!==jr||(r=(r=i.targetName)?e[r]:e,i.saveTo(r))}},i.prototype._innerSaveToNormal=function(t){var e=(e=this._normalState)||(this._normalState={});t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,Kr)},i.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])}},i.prototype.hasState=function(){return 0<this.currentStates.length},i.prototype.getState=function(t){return this.states[t]},i.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},i.prototype.clearStates=function(t){this.useState(jr,!1,t)},i.prototype.useState=function(t,e,n,i){var r=t===jr,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&=~Pn),a;it("State "+t+" not exists.")}}},i.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&=~Pn)}}else this.clearStates()},i.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},i.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},i.prototype.removeState=function(t){var e,t=k(this.currentStates,t);0<=t&&((e=this.currentStates.slice()).splice(t,1),this.useStates(e))},i.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)},i.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},i.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},i.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<Kr.length;u++){var h=Kr[u],c=r&&$r[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)},i.prototype._attachComponent=function(t){var e;t.__zr&&!t.__hostTarget||t!==this&&((e=this.__zr)&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this)},i.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},i.prototype.getClipPath=function(){return this._clipPath},i.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},i.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},i.prototype.getTextContent=function(){return this._textContent},i.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())},i.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),P(this.textConfig,t),this.markRedraw()},i.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},i.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},i.prototype.getTextGuideLine=function(){return this._textGuide},i.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},i.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},i.prototype.markRedraw=function(){this.__dirty|=Pn;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},i.prototype.dirty=function(){this.markRedraw()},i.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,n=this._textGuide;e&&(e.__inHover=t),n&&(n.__inHover=t)},i.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)}},i.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)}},i.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},i.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()},i.prototype.updateDuringAnimation=function(t){this.markRedraw()},i.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},i.prototype.animateTo=function(t,e,n){no(this,t,e,n)},i.prototype.animateFrom=function(t,e,n){no(this,t,e,n,!0)},i.prototype._transitionState=function(t,e,n,i){for(var r=no(this,e,n,i),o=0;o<r.length;o++)r[o].__fromStateTransition=t},i.prototype.getBoundingRect=function(){return null},i.prototype.getPaintRect=function(){return null},i.initDefaultProps=((qr=i.prototype).type="element",qr.name="",qr.ignore=qr.silent=qr.ignoreHostSilent=qr.isGroup=qr.draggable=qr.dragging=qr.ignoreClip=qr.__inHover=!1,qr.__dirty=Pn,void(Object.defineProperty&&(eo("position","_legacyPos","x","y"),eo("scale","_legacyScale","scaleX","scaleY"),eo("origin","_legacyOrigin","originX","originY")))),i);function i(t){this.id=et++,this.animators=[],this.currentStates=[],this.states={},this._init(t)}function eo(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(qr,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 no(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=pt(r);var h=o.duration;var c=o.delay;var p=o.additive;var d=o.setToFinal;var f=!H(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])?!H(_)||lt(_)||vt(_)?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=ht(y,function(t){return!oo(r[t],i[t])}),x=y.length);if(0<x||o.force&&!s.length){var S,M=void 0,T=void 0,C=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){C={};for(w=0;w<x;w++){v=y[w];C[v]=Ui(i[v]),ro(i,r,v)}}(S=new Qi(i,!1,!1,p?ht(g,function(t){return t.targetName===n}):null)).targetName=n,o.scope&&(S.scope=o.scope),d&&M&&S.whenWithKeys(0,M,y),C&&S.whenWithKeys(0,C,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 io(t,e,n){for(var i=0;i<n;i++)t[i]=e[i]}function ro(t,e,n){if(lt(e[n]))if(lt(t[n])||(t[n]=[]),yt(e[n])){var i=e[n].length;t[n].length!==i&&(t[n]=new e[n].constructor(i),io(t[n],e[n],i))}else{var r=e[n],o=t[n],a=r.length;if(lt(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?io(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else io(o,r,a);o.length=r.length}else t[n]=e[n]}function oo(t,e){return t===e||lt(t)&&lt(e)&&function(t,e){var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}(t,e)}st(n,de),st(n,Or);u(lo,ao=n),lo.prototype.childrenRef=function(){return this._children},lo.prototype.children=function(){return this._children.slice()},lo.prototype.childAt=function(t){return this._children[t]},lo.prototype.childOfName=function(t){for(var e=this._children,n=0;n<e.length;n++)if(e[n].name===t)return e[n]},lo.prototype.childCount=function(){return this._children.length},lo.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},lo.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},lo.prototype.replace=function(t,e){t=k(this._children,t);return 0<=t&&this.replaceAt(e,t),this},lo.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},lo.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()},lo.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},lo.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},lo.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},lo.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},lo.prototype.addSelfToZr=function(t){ao.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].addSelfToZr(t)},lo.prototype.removeSelfFromZr=function(t){ao.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].removeSelfFromZr(t)},lo.prototype.getBoundingRect=function(t){for(var e=new U(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))?(U.applyTransform(e,a,s),(r=r||e.clone()).union(e)):(r=r||a.clone()).union(a))}return r||e};var ao,so=lo;function lo(t){var e=ao.call(this)||this;return e.isGroup=!0,e._children=[],e.attr(t),e}so.prototype.type="group";var uo={},ho={};fo.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},fo.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},fo.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},fo.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 Bi(t,1)<.4;if(t.colorStops){for(var e=t.colorStops,n=0,i=e.length,r=0;r<i;r++)n+=Bi(e[r].color,1);return(n/=i)<.4}}return!1}(t))},fo.prototype.getBackgroundColor=function(){return this._backgroundColor},fo.prototype.setDarkMode=function(t){this._darkMode=t},fo.prototype.isDarkMode=function(){return this._darkMode},fo.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},fo.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},fo.prototype.flush=function(){this._disposed||this._flush(!1)},fo.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()},fo.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},fo.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},fo.prototype.refreshHover=function(){this._needsRefreshHover=!0},fo.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},fo.prototype.resize=function(t){this._disposed||(this.painter.resize((t=t||{}).width,t.height),this.handler.resize())},fo.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},fo.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},fo.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},fo.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},fo.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},fo.prototype.on=function(t,e,n){return this._disposed||this.handler.on(t,e,n),this},fo.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},fo.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},fo.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof so&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},fo.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 ho[t])};var co,po=fo;function fo(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 Bn),a=n.renderer||"canvas",a=(uo[a]||(a=pt(uo)[0]),n.useDirtyRect=null!=n.useDirtyRect&&n.useDirtyRect,new uo[a](e,o,n,t)),e=n.ssr||a.ssrOnly,t=(this.storage=o,this.painter=a,p.node||p.worker||e?null:new wr(a.getViewportRoot(),a.root)),s=n.useCoarsePointer;(null==s||"auto"===s?p.touchEventsSupported:!!s)&&(i=W(n.pointerSize,44)),this.handler=new xn(o,a,t,a.root,i),this.animation=new nr({stage:{update:e?null:function(){return r._flush(!0)}}}),e||this.animation.start()}function go(t,e){t=new po(et++,t,e);return ho[t.id]=t}function yo(t,e){uo[t]=e}function mo(t){co=t}var vo=Object.freeze({__proto__:null,dispose:function(t){t.dispose()},disposeAll:function(){for(var t in ho)ho.hasOwnProperty(t)&&ho[t].dispose();ho={}},getElementSSRData:function(t){if("function"==typeof co)return co(t)},getInstance:function(t){return ho[t]},init:go,registerPainter:yo,registerSSRDataGetter:mo,version:"6.0.0"}),_o=20;var xo=Math.min,bo=Math.max,wo=Math.abs;function So(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 Mo=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 To(t,e,n)};function To(t,e,n){return V(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),_o),t=(+t).toFixed(e),n?t:+t}function Io(t){return t.sort(function(t,e){return t-e}),t}function ko(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 Do(t)}function Do(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 Lo(t,e){var n=Math.log,i=Math.LN10,t=Math.floor(n(t[1]-t[0])/i),n=Math.round(n(wo(e[1]-e[0]))/i),e=Math.min(Math.max(-t+n,0),20);return isFinite(e)?e:20}function Ao(t){var e=2*Math.PI;return(t%e+e)%e}function Po(t){return-1e-4<t&&t<1e-4}var Oo=/^(?:(\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 Ro(t){var e,n;return t instanceof Date?t:V(t)?(e=Oo.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 No(t){return Math.pow(10,zo(t))}function zo(t){var e;return 0===t?0:(e=Math.floor(Math.log(t)/Math.LN10),10<=t/Math.pow(10,e)&&e++,e)}function Bo(t,e){var n=zo(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 Eo(t){var e=parseFloat(t);return e==t&&(0!==e||!V(t)||t.indexOf("x")<=0)?e:NaN}function Vo(t){return!isNaN(Eo(t))}function Fo(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 Ho(t,e,n){return(e-t)*n+t}var Wo="series\0";function Go(t){return t instanceof Array?t:null==t?[]:[t]}function Zo(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 Uo=["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 Xo(t){return!H(t)||E(t)||t instanceof Date?t:t.value}function Yo(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(),O()),e=(N(n,function(t,e){H(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||Qo(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}(t,y,e));return(d||f)&&(o=e,a=t,s=y,N(l=n,function(t,e){var n,i,r;t&&null!=t.id&&(n=jo(t.id),null!=(i=s.get(n)))&&(Ct(!(r=o[i]).newOption,'Duplicated option on id "'+n+'".'),r.newOption=t,r.existing=a[i],l[e]=null)})),d&&(r=e,N(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)&&!Qo(t)&&!Qo(i)&&qo("name",i,t))return r[n].newOption=t,void(u[e]=null)}})),d||f?(h=e,c=f,N(n,function(t){if(t){for(var e,n=0;(e=h[n])&&(e.newOption||Qo(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,N(n,function(t){i.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),t=e,p=O(),N(t,function(t){var e=t.existing;e&&p.set(e.id,t)}),N(t,function(t){var e=t.newOption;Ct(!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={})}),N(t,function(t,e){var n=t.existing,i=t.newOption,r=t.keyInfo;if(H(i)){if(r.name=null!=i.name?jo(i.name):n?n.name:Wo+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=Ko(e[t],null),n=Ko(n[t],null);return null!=e&&null!=n&&e===n}function jo(t){return Ko(t,"")}function Ko(t,e){return null==t?e:V(t)?t:F(t)||ft(t)?t+"":e}function $o(t){t=t.name;return!(!t||!t.indexOf(Wo))}function Qo(t){return t&&null!=t.id&&0===jo(t.id).indexOf("\0_ec_\0")}function Jo(t,r,o){N(t,function(t){var e,n,i=t.newOption;H(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 ta(e,t){return null!=t.dataIndexInside?t.dataIndexInside:null!=t.dataIndex?E(t.dataIndex)?B(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):null!=t.name?E(t.name)?B(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):void 0}function ea(){var e="__ec_inner_"+na++;return function(t){return t[e]||(t[e]={})}}var na=Math.round(9*Math.random());function ia(n,t,i){var t=ra(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=sa(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 ra(t,i){var e=V(t)?((e={})[t+"Index"]=0,e):t,r=O(),o={},a=!1;return N(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 oa={useDefault:!0,enableAll:!1,enableNone:!1},aa={useDefault:!1,enableAll:!0,enableNone:!0};function sa(t,e,n,i){i=i||oa;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 la(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}var ua=".",ha="___EC__COMPONENT__CONTAINER___",ca="___EC__EXTENDED_CLASS___";function pa(t){var e={main:"",sub:""};return t&&(t=t.split(ua),e.main=t[0]||"",e.sub=t[1]||""),e}function da(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):at(e=function(){(t.$constructor||r).apply(this,arguments)},this),P(e.prototype,t),e[ca]=!0,e.extend=this.extend,e.superCall=ya,e.superApply=ma,e.superClass=r,e}}function fa(t,e){t.extend=e.extend}var ga=Math.round(10*Math.random());function ya(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 ma(t,e,n){return this.superClass.prototype[e].apply(t,n)}function va(t){var r={};t.registerClass=function(t){var e,n=t.type||t.prototype.type;return n&&(Ct(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e=n),'componentType "'+e+'" illegal'),(e=pa(t.prototype.type=n)).sub?e.sub!==ha&&(function(t){var e=r[t.main];e&&e[ha]||(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[ha]&&(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=pa(t),n=[],t=r[t.main];return t&&t[ha]?N(t,function(t,e){e!==ha&&n.push(t)}):n.push(t),n},t.hasClass=function(t){t=pa(t);return!!r[t.main]},t.getAllClassMainTypes=function(){var n=[];return N(r,function(t,e){n.push(e)}),n},t.hasSubTypes=function(t){t=pa(t),t=r[t.main];return t&&t[ha]}}function _a(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 xa=_a([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),ba=(wa.prototype.getAreaStyle=function(t,e){return xa(this,t,e)},wa);function wa(){}var Sa=new gi(50);function Ma(t,e,n,i,r){return t?"string"==typeof t?(e&&e.__zrImageSrc===t||!n||(n={hostEl:n,cb:i,cbPayload:r},(i=Sa.get(t))?Ca(e=i.image)||i.pending.push(n):((e=G.loadImage(t,Ta,Ta)).__zrImageSrc=t,Sa.put(t,e.__cachedImgObj={image:e,pending:[n]}))),e):t:e}function Ta(){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 Ca(t){return t&&t.width&&t.height}var Ia=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function ka(t,e,n,i,r,o){if(n){for(var a=(e+"").split("\n"),s=(o=Da(n,i,r,o),!1),l={},u=0,h=a.length;u<h;u++)La(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 Da(t,e,n,i){for(var r=P({},i=i||{}),o=(n=W(n,"..."),r.maxIterations=W(i.maxIterations,2),r.minChar=W(i.minChar,0)),e=r.fontMeasureInfo=Er(e),a=e.asciiCharWidth,s=(r.placeholder=W(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 La(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 Aa=function(){},Pa=function(t){this.tokens=[],t&&(this.tokens=t)},Oa=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 Ra(t,e,n,i,r){var o=new Oa,a=Ha(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=Ia.lastIndex=0;null!=(s=Ia.exec(a));){var d=s.index;p<d&&Na(o,a.substring(p,d),e,c),Na(o,s[2],e,c,s[1]),p=Ia.lastIndex}p<a.length&&Na(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 C=(O=w.tokens[T]).styleName&&e.rich[O.styleName]||{},I=O.textPadding=C.padding,k=I?I[1]+I[3]:0,D=O.font=C.font||e.font,L=(O.contentHeight=Ur(D),W(C.height,O.contentHeight));if(O.innerHeight=L,I&&(L+=I[0]+I[2]),O.height=L,O.lineHeight=St(C.lineHeight,e.lineHeight,L),O.align=C&&C.align||r,O.verticalAlign=C&&C.verticalAlign||"middle",_&&null!=h&&y+O.lineHeight>h){I=o.lines.length;0<T?(w.tokens=w.tokens.slice(0,T),N(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<I;break t}var A,I=C.width,P=null==I||"auto"===I;"string"==typeof I&&"%"===I.charAt(I.length-1)?(O.percentWidth=I,g.push(O),O.contentWidth=Hr(Er(D),O.text)):(P&&(I=(I=C.backgroundColor)&&I.image)&&(A=void 0,Ca(I="string"==typeof(f=I)?(A=Sa.get(f))&&A.image:f))&&(O.width=Math.max(O.width,I.width*L/I.height)),null!=(A=v&&null!=u?u-M:null)&&A<O.width?!P||A<k?(O.text="",O.width=O.contentWidth=0):(ka(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(Er(D),O.text)):O.contentWidth=Hr(Er(D),O.text)),O.width+=k,M+=O.width,C&&(S=Math.max(S,O.lineHeight))}N(w,M,S)}o.outerWidth=o.width=W(u,m),o.outerHeight=o.height=W(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 N(t,e,n){t.width=e,t.lineHeight=n,y+=n,m=Math.max(m,e)}}function Na(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=Xr(u.width,i.width)+n,0<h.length&&s+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=s):(s=Ba(e,t,i.width,i.breakAll,i.accumWidth),i.accumWidth=s.accumWidth+n,a=s.linesWidths,o=s.lines)),o=o||e.split("\n"),Er(t)),d=0;d<o.length;d++){var f,g,y=o[d],m=new Aa;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 Pa([m])):1===(g=(f=(h[h.length-1]||(h[0]=new Pa)).tokens).length)&&f[0].isLineHolder?f[0]=m:!y&&g&&!l||f.push(m)}}var za=ut(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function Ba(t,e,n,i,r){for(var o,a=[],s=[],l="",u="",h=0,c=0,p=Er(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))||!!za[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 Ea(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,U.set(Va,Gr(n,a,r),Zr(i,s,o),a,s),U.intersect(e,Va,null,Fa),t.outerWidth=(n=Fa.outIntersectRect).width,t.outerHeight=n.height,t.baseX=Gr(n.x,n.width,r,!0),t.baseY=Zr(n.y,n.height,o,!0))}var Va=new U(0,0,0,0),Fa={outIntersectRect:{},clamp:!0};function Ha(t){return null!=t?t+"":""}function Wa(t,e,n,i){e=new U(Gr(t.x||0,e,t.textAlign),Zr(t.y||0,n,t.textBaseline),e,n),n=null!=i?i:Ga(t)?t.lineWidth:0;return 0<n&&(e.x-=n/2,e.y-=n/2,e.width+=n,e.height+=n),e}function Ga(t){var e=t.stroke;return null!=e&&"none"!==e&&0<t.lineWidth}var Za,Ua="__zr_style_"+Math.round(10*Math.random()),Xa={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ya={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}},qa=(Xa[Ua]=!0,["z","z2","invisible"]),ja=["invisible"],n=(u(r,Za=n),r.prototype._init=function(t){for(var e=pt(t),n=0;n<e.length;n++){var i=e[n];"style"===i?this.useStyle(t[i]):Za.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},r.prototype.beforeBrush=function(){},r.prototype.afterBrush=function(){},r.prototype.innerBeforeBrush=function(){},r.prototype.innerAfterBrush=function(){},r.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){Ka.copy(t.getBoundingRect()),t.transform&&Ka.applyTransform(t.transform);return $a.width=e,$a.height=n,!Ka.intersect($a)}(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},r.prototype.contain=function(t,e){return this.rectContain(t,e)},r.prototype.traverse=function(t,e){t.call(e,this)},r.prototype.rectContain=function(t,e){t=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(t[0],t[1])},r.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 U(0,0,0,0)),r?U.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},r.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new U(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},r.prototype.getPrevPaintRect=function(){return this._prevPaintRect},r.prototype.animateStyle=function(t){return this.animate("style",t)},r.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},r.prototype.attrKV=function(t,e){"style"!==t?Za.prototype.attrKV.call(this,t,e):this.style?this.setStyle(e):this.useStyle(e)},r.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:P(this.style,t),this.dirtyStyle(),this},r.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},r.prototype.dirty=function(){this.dirtyStyle()},r.prototype.styleChanged=function(){return!!(2&this.__dirty)},r.prototype.styleUpdated=function(){this.__dirty&=-3},r.prototype.createStyle=function(t){return Bt(Xa,t)},r.prototype.useStyle=function(t){t[Ua]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},r.prototype.isStyleObject=function(t){return t[Ua]},r.prototype._innerSaveToNormal=function(t){Za.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)},r.prototype._applyStateObj=function(t,e,n,i,r,o){Za.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=pt(l),h=0;h<u.length;h++)(p=u[h])in a&&(a[p]=a[p],this.style[p]=l[p]);for(var c=pt(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])}},r.prototype._mergeStates=function(t){for(var e,n=Za.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},r.prototype._mergeStyle=function(t,e){return P(t,e),t},r.prototype.getAnimationStyleProps=function(){return Ya},r.initDefaultProps=((n=r.prototype).type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,void(n.__dirty=2|Pn)),r);function r(t){return Za.call(this,t)||this}var Ka=new U(0,0,0,0),$a=new U(0,0,0,0);var Qa=Math.min,Ja=Math.max,ts=Math.sin,es=Math.cos,ns=2*Math.PI,is=Zt(),rs=Zt(),os=Zt();function as(t,e,n,i,r,o){r[0]=Qa(t,n),r[1]=Qa(e,i),o[0]=Ja(t,n),o[1]=Ja(e,i)}var ss=[],ls=[];var X={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},us=[],hs=[],cs=[],ps=[],ds=[],fs=[],gs=Math.min,ys=Math.max,ms=Math.cos,vs=Math.sin,_s=Math.abs,xs=Math.PI,bs=2*xs,ws="undefined"!=typeof Float32Array,Ss=[];function Ms(t){return Math.round(t/xs*1e8)/1e8%2*xs}o.prototype.increaseVersion=function(){this._version++},o.prototype.getVersion=function(){return this._version},o.prototype.setScale=function(t,e,n){0<(n=n||0)&&(this._ux=_s(n/Mr/t)||0,this._uy=_s(n/Mr/e)||0)},o.prototype.setDPR=function(t){this.dpr=t},o.prototype.setContext=function(t){this._ctx=t},o.prototype.getContext=function(){return this._ctx},o.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},o.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},o.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(X.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},o.prototype.lineTo=function(t,e){var n=_s(t-this._xi),i=_s(e-this._yi),r=n>this._ux||i>this._uy;return this.addData(X.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},o.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(X.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},o.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(X.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},o.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Ss[0]=i,Ss[1]=r,s=o,(l=Ms((a=Ss)[0]))<0&&(l+=bs),h=l-a[0],u=a[1],u+=h,!s&&bs<=u-l?u=l+bs:s&&bs<=l-u?u=l-bs:!s&&u<l?u=l+(bs-Ms(l-u)):s&&l<u&&(u=l-(bs-Ms(u-l))),a[0]=l,a[1]=u;var a,s,l,u,h=(r=Ss[1])-(i=Ss[0]);return this.addData(X.A,t,e,n,n,i,h,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=ms(r)*n+t,this._yi=vs(r)*n+e,this},o.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},o.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(X.R,t,e,n,i),this},o.prototype.closePath=function(){this._drawPendingPt(),this.addData(X.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},o.prototype.fill=function(t){t&&t.fill(),this.toStatic()},o.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},o.prototype.len=function(){return this._len},o.prototype.setData=function(t){if(this._saveData){var e=t.length;this.data&&this.data.length===e||!ws||(this.data=new Float32Array(e));for(var n=0;n<e;n++)this.data[n]=t[n];this._len=e}},o.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(ws&&(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}},o.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]}},o.prototype._drawPendingPt=function(){0<this._pendingPtDist&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},o.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}},o.prototype.toStatic=function(){var t;this._saveData&&(this._drawPendingPt(),(t=this.data)instanceof Array)&&(t.length=this._len,ws)&&11<this._len&&(this.data=new Float32Array(t))},o.prototype.getBoundingRect=function(){cs[0]=cs[1]=ds[0]=ds[1]=Number.MAX_VALUE,ps[0]=ps[1]=fs[0]=fs[1]=-Number.MAX_VALUE;for(var t,e=this.data,n=0,i=0,r=0,o=0,a=0;a<this._len;){var z=e[a++],B=1===a;switch(B&&(r=n=e[a],o=i=e[a+1]),z){case X.M:n=r=e[a++],i=o=e[a++],ds[0]=r,ds[1]=o,fs[0]=r,fs[1]=o;break;case X.L:as(n,i,e[a],e[a+1],ds,fs),n=e[a++],i=e[a++];break;case X.C:W=H=m=y=F=g=f=d=p=c=V=E=h=u=l=s=void 0;var s=n,l=i,u=e[a++],h=e[a++],E=e[a++],V=e[a++],c=e[a],p=e[a+1],d=ds,f=fs,g=ti,F=$n,y=g(s,u,E,c,ss);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,E,c,ss[m]);d[0]=Qa(H,d[0]),f[0]=Ja(H,f[0])}for(y=g(l,h,V,p,ls),m=0;m<y;m++){var W=F(l,h,V,p,ls[m]);d[1]=Qa(W,d[1]),f[1]=Ja(W,f[1])}d[0]=Qa(s,d[0]),f[0]=Ja(s,f[0]),d[0]=Qa(c,d[0]),f[0]=Ja(c,f[0]),d[1]=Qa(l,d[1]),f[1]=Ja(l,f[1]),d[1]=Qa(p,d[1]),f[1]=Ja(p,f[1]),n=e[a++],i=e[a++];break;case X.Q:g=n,P=i,M=e[a++],x=e[a++],S=e[a],v=e[a+1],w=ds,T=fs,t=b=t=_=void 0,_=ii,t=Ja(Qa((b=oi)(g,M,S),1),0),b=Ja(Qa(b(P,x,v),1),0),M=_(g,M,S,t),t=_(P,x,v,b),w[0]=Qa(g,S,M),w[1]=Qa(P,v,t),T[0]=Ja(g,S,M),T[1]=Ja(P,v,t),n=e[a++],i=e[a++];break;case X.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++]),C=(B&&(r=ms(S)*b+_,o=vs(S)*w+x),N=v=Z=G=R=O=P=A=L=D=k=I=C=void 0,_),I=x,k=b,D=w,L=S,A=M,P=T,O=ds,R=fs,G=se,Z=le;if((v=Math.abs(L-A))%ns<1e-4&&1e-4<v)O[0]=C-k,O[1]=I-D,R[0]=C+k,R[1]=I+D;else{is[0]=es(L)*k+C,is[1]=ts(L)*D+I,rs[0]=es(A)*k+C,rs[1]=ts(A)*D+I,G(O,is,rs),Z(R,is,rs),(L%=ns)<0&&(L+=ns),(A%=ns)<0&&(A+=ns),A<L&&!P?A+=ns:L<A&&P&&(L+=ns),P&&(v=A,A=L,L=v);for(var N=0;N<A;N+=Math.PI/2)L<N&&(os[0]=es(N)*k+C,os[1]=ts(N)*D+I,G(O,os,O),Z(R,os,R))}n=ms(M)*b+_,i=vs(M)*w+x;break;case X.R:as(r=n=e[a++],o=i=e[a++],r+e[a++],o+e[a++],ds,fs);break;case X.Z:n=r,i=o}se(cs,cs,ds),le(ps,ps,fs)}return 0===a&&(cs[0]=cs[1]=ps[0]=ps[1]=0),new U(cs[0],cs[1],ps[0]-cs[0],ps[1]-cs[1])},o.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 X.M:r=a=t[c++],o=s=t[c++];break;case X.L:var g=t[c++],y=(_=t[c++])-o;(_s(I=g-r)>n||_s(y)>i||c===e-1)&&(f=Math.sqrt(I*I+y*y),r=g,o=_);break;case X.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=$n(t,n,r,a,f),f=$n(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 X.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=ii(t,n,r,p),p=ii(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 X.A:var x=t[c++],b=t[c++],w=t[c++],S=t[c++],M=t[c++],T=t[c++],C=T+M;c+=1,d&&(a=ms(M)*w+x,s=vs(M)*S+b),f=ys(w,S)*gs(bs,Math.abs(T)),r=ms(C)*w+x,o=vs(C)*S+b;break;case X.R:a=r=t[c++],s=o=t[c++];f=2*t[c++]+2*t[c++];break;case X.Z:var I=a-r,y=s-o;f=Math.sqrt(I*I+y*y),r=a,o=s}0<=f&&(u+=l[h++]=f)}return this._pathLen=u},o.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h=this.data,z=this._ux,B=this._uy,E=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<E;){var y=h[g++],V=1===g;switch(V&&(n=r=h[g],i=o=h[g+1]),y!==X.L&&0<f&&(t.lineTo(l,u),f=0),y){case X.M:n=r=h[g++],i=o=h[g++],t.moveTo(r,o);break;case X.L:var m=h[g++],v=h[g++],_=_s(m-r),x=_s(v-o);if(z<_||B<x){if(c){if(s<p+(N=a[d++])){var b=(s-p)/N;t.lineTo(r*(1-b)+m*b,o*(1-b)+v*b);break t}p+=N}t.lineTo(m,v),r=m,o=v,f=0}else{_=_*_+x*x;f<_&&(l=m,u=v,f=_)}break;case X.C:var w=h[g++],S=h[g++],M=h[g++],T=h[g++],x=h[g++],_=h[g++];if(c){if(s<p+(N=a[d++])){ei(r,w,M,x,b=(s-p)/N,us),ei(o,S,T,_,b,hs),t.bezierCurveTo(us[1],hs[1],us[2],hs[2],us[3],hs[3]);break t}p+=N}t.bezierCurveTo(w,S,M,T,x,_),r=x,o=_;break;case X.Q:w=h[g++],S=h[g++],M=h[g++],T=h[g++];if(c){if(s<p+(N=a[d++])){ai(r,w,M,b=(s-p)/N,us),ai(o,S,T,b,hs),t.quadraticCurveTo(us[1],hs[1],us[2],hs[2]);break t}p+=N}t.quadraticCurveTo(w,S,M,T),r=M,o=T;break;case X.A:var C=h[g++],I=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<_s(k-D),R=L+A,W=!1;if(c&&(s<p+(N=a[d++])&&(R=L+A*(s-p)/N,W=!0),p+=N),O&&t.ellipse?t.ellipse(C,I,k,D,P,L,R,F):t.arc(C,I,H,L,R,F),W)break t;V&&(n=ms(L)*k+C,i=vs(L)*D+I),r=ms(R)*k+C,o=vs(R)*D+I;break;case X.R:n=r=h[g],i=o=h[g+1],m=h[g++],v=h[g++];var N,A=h[g++],O=h[g++];if(c){if(s<p+(N=a[d++])){P=s-p;t.moveTo(m,v),t.lineTo(m+gs(P,A),v),0<(P-=A)&&t.lineTo(m+A,v+gs(P,O)),0<(P-=O)&&t.lineTo(m+ys(A-P,0),v+O),0<(P-=A)&&t.lineTo(m,v+ys(O-P,0));break t}p+=N}t.rect(m,v,A,O);break;case X.Z:if(c){if(s<p+(N=a[d++])){b=(s-p)/N;t.lineTo(r*(1-b)+n*b,o*(1-b)+i*b);break t}p+=N}t.closePath(),r=n,o=i}}},o.prototype.clone=function(){var t=new o,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},o.prototype.canSave=function(){return!!this._saveData},o.CMD=X,o.initDefaultProps=((El=o.prototype)._saveData=!0,El._ux=0,El._uy=0,El._pendingPtDist=0,void(El._version=0));var Ts=o;function o(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 Cs(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 Is=2*Math.PI;function ks(t){return(t%=Is)<0&&(t+=Is),t}var Ds=2*Math.PI;function Ls(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 As=Ts.CMD,Ps=2*Math.PI,Os=1e-4;var Rs=[-1,-1,-1],Ns=[-1,-1];function zs(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=Jn(e,i,o,s,u,Rs);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=Rs[y],v=0===m||1===m?.5:1;$n(t,n,r,a,m)<l||(d<0&&(d=ti(e,i,o,s,Ns),Ns[1]<Ns[0]&&1<d&&(c=void 0,c=Ns[0],Ns[0]=Ns[1],Ns[1]=c),f=$n(e,i,o,s,Ns[0]),1<d)&&(g=$n(e,i,o,s,Ns[1])),2===d?m<Ns[0]?p+=f<e?v:-v:m<Ns[1]?p+=g<f?v:-v:p+=s<g?v:-v:m<Ns[0]?p+=f<e?v:-v:p+=s<f?v:-v)}return p}function Bs(t,e,n,i,r,o,a,s){if(e<s&&i<s&&o<s||s<e&&s<i&&s<o)return 0;c=Rs,h=(l=e)-2*(u=i)+(h=o),u=2*(u-l),l-=s=s,s=0,jn(h)?Kn(u)&&0<=(p=-l/u)&&p<=1&&(c[s++]=p):jn(l=u*u-4*h*l)?0<=(p=-u/(2*h))&&p<=1&&(c[s++]=p):0<l&&(d=(-u-(l=Wn(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=oi(e,i,o);if(0<=g&&g<=1){for(var y=0,m=ii(e,i,o,g),v=0;v<f;v++){var _=0===Rs[v]||1===Rs[v]?.5:1;ii(t,n,r,Rs[v])<a||(Rs[v]<g?y+=m<e?_:-_:y+=o<m?_:-_)}return y}return _=0===Rs[0]||1===Rs[0]?.5:1,ii(t,n,r,Rs[0])<a?0:o<e?_:-_}function Es(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===As.M&&1<d&&(n||(l+=Ls(u,h,c,p,i,r))),g&&(c=u=a[d],p=h=a[d+1]),f){case As.M:u=c=a[d++],h=p=a[d++];break;case As.L:if(n){if(Cs(u,h,a[d],a[d+1],e,i,r))return!0}else l+=Ls(u,h,a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case As.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)&&ni(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+=zs(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 As.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)&&si(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+=Bs(u,h,a[d++],a[d++],a[d],a[d+1],i,r)||0;u=a[d++],h=a[d++];break;case As.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+=Ls(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)%Ds<1e-4||((r=o?(e=i,i=ks(r),ks(e)):(i=ks(i),ks(r)))<i&&(r+=Ds),(t=Math.atan2(l,s))<0&&(t+=Ds),i<=t&&t<=r)||i<=t+Ds&&t+Ds<=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(Rs[0]=-e,Rs[1]=e,(n=Math.abs(i-r))<1e-4)return 0;if(Ps-1e-4<=n)return r=Ps,h=o?1:-1,a>=Rs[i=0]+t&&a<=Rs[1]+t?h:0;r<i&&(e=i,i=r,r=e),i<0&&(i+=Ps,r+=Ps);for(var l=0,u=0;u<2;u++){var h,c=Rs[u];a<c+t&&(h=o?1:-1,i<=(c=(c=Math.atan2(s,c))<0?Ps+c:c)&&c<=r||i<=c+Ps&&c+Ps<=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 As.R:c=u=a[d++],p=h=a[d++];if(S=c+a[d++],M=p+a[d++],n){if(Cs(c,p,S,p,e,i,r)||Cs(S,p,S,M,e,i,r)||Cs(S,M,c,M,e,i,r)||Cs(c,M,c,p,e,i,r))return!0}else l=(l+=Ls(S,p,S,M,i,r))+Ls(c,M,c,p,i,r);break;case As.Z:if(n){if(Cs(u,h,c,p,e,i,r))return!0}else l+=Ls(u,h,c,p,i,r);u=c,h=p}}return n||(t=h,o=p,Math.abs(t-o)<Os)||(l+=Ls(u,h,c,p,i,r)||0),0!==l}var Vs,Fs=rt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Xa),Hs={style:rt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ya.style)},Ws=zr.concat(["invisible","culling","z","z2","zlevel","parent"]),Gs=(u(a,Vs=n),a.prototype.update=function(){var e=this,t=(Vs.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<Ws.length;++o)i[Ws[o]]=this[Ws[o]];i.__dirty|=Pn}else this._decalEl&&(this._decalEl=null)},a.prototype.getDecalElement=function(){return this._decalEl},a.prototype._init=function(t){var e=pt(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):Vs.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(V(e))return.5<(t=Bi(e,0))?Tr:.2<t?"#eee":Cr;if(e)return Cr}return Tr},a.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(V(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Bi(t,0)<.4)return e}},a.prototype.buildPath=function(t,e,n){},a.prototype.pathUpdated=function(){this.__dirty&=~On},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 Ts(!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&On)&&(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)),Es(n,i/r,!0,t,e)))return!0}if(this.hasFill())return Es(n,0,!1,t,e)}return!1},a.prototype.dirtyShape=function(){this.__dirty|=On,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):Vs.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&On)},a.prototype.createStyle=function(t){return Bt(Fs,t)},a.prototype._innerSaveToNormal=function(t){Vs.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){Vs.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=pt(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=Vs.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 Hs},a.prototype.isZeroArea=function(){return!1},a.extend=function(n){u(r,i=a),r.prototype.getDefaultStyle=function(){return v(n.style)},r.prototype.getDefaultShape=function(){return v(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=((El=a.prototype).type="path",El.strokeContainThreshold=5,El.segmentIgnoreThreshold=0,El.subPixelOptimize=!1,El.autoBatch=!1,void(El.__dirty=2|Pn|On)),a);function a(t){return Vs.call(this,t)||this}var Zs,Us=rt({strokeFirst:!0,font:j,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Fs),Xs=(u(Ys,Zs=n),Ys.prototype.hasStroke=function(){return Ga(this.style)},Ys.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},Ys.prototype.createStyle=function(t){return Bt(Us,t)},Ys.prototype.setBoundingRect=function(t){this._rect=t},Ys.prototype.getBoundingRect=function(){var t,e,n;return this._rect||(this._rect=(t=this.style,e=Ha(t.text),n=t.font,Wa(t,Hr(Er(n),e),Ur(n),null))),this._rect},Ys.initDefaultProps=void(Ys.prototype.dirtyRectTolerance=10),Ys);function Ys(){return null!==Zs&&Zs.apply(this,arguments)||this}Xs.prototype.type="tspan";var qs=rt({x:0,y:0},Xa),js={style:rt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ya.style)};u(Qs,Ks=n),Qs.prototype.createStyle=function(t){return Bt(qs,t)},Qs.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},Qs.prototype.getWidth=function(){return this._getSize("width")},Qs.prototype.getHeight=function(){return this._getSize("height")},Qs.prototype.getAnimationStyleProps=function(){return js},Qs.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new U(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect};var Ks,$s=Qs;function Qs(){return null!==Ks&&Ks.apply(this,arguments)||this}$s.prototype.type="image";var Js=Math.round;function tl(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)&&(Js(2*i)===Js(2*r)&&(t.x1=t.x2=el(i,n,!0)),Js(2*o)===Js(2*e))&&(t.y1=t.y2=el(o,n,!0)),t}function el(t,e,n){var i;return e?((i=Js(2*t))+Js(e))%2==0?i/2:(i+(n?1:-1))/2:t}var nl,il=function(){this.x=0,this.y=0,this.width=0,this.height=0},rl={},ol=(u(al,nl=Gs),al.prototype.getDefaultShape=function(){return new il},al.prototype.buildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,p,d,f,g;this.subPixelOptimize?(n=(a=function(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=el(i,n,!0),t.y=el(r,n,!0),t.width=Math.max(el(i+o,n,!1)-t.x,0===o?0:1),t.height=Math.max(el(r+e,n,!1)-t.y,0===e?0:1)),t}(rl,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)},al.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},al);function al(t){return nl.call(this,t)||this}ol.prototype.type="rect";var sl,ll={fill:"#000"},ul={},hl={style:rt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ya.style)},cl=(u(pl,sl=n),pl.prototype.childrenRef=function(){return this._children},pl.prototype.update=function(){sl.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}},pl.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):sl.prototype.updateTransform.call(this)},pl.prototype.getLocalTransform=function(t){var e=this.innerTransformable;return e?e.getLocalTransform(t):sl.prototype.getLocalTransform.call(this,t)},pl.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),sl.prototype.getComputedTransform.call(this)},pl.prototype._updateSubTexts=function(){var t;this._childCursor=0,ml(t=this.style),N(t.rich,ml),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},pl.prototype.addSelfToZr=function(t){sl.prototype.addSelfToZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=t},pl.prototype.removeSelfFromZr=function(t){sl.prototype.removeSelfFromZr.call(this,t);for(var e=0;e<this._children.length;e++)this._children[e].__zr=null},pl.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new U(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},pl.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||ll},pl.prototype.setTextContent=function(t){},pl.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},pl.prototype._mergeRich=function(t,e){for(var n=pt(e),i=0;i<n.length;i++){var r=n[i];t[r]=t[r]||{},P(t[r],e[r])}},pl.prototype.getAnimationStyleProps=function(){return hl},pl.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},pl.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";Ea(ul,i.overflowRect,r,o,a,s);for(var l,r=ul.baseX,o=ul.baseY,u=function(t,e,n,i){var r,t=Ha(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=Ur(l),c=W(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?Ba(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=Da(f,l,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m={},v=0;v<r.length;v++)La(m,r[v],y),r[v]=m.textLine,d=d||m.isTruncated;for(var o=g,_=0,x=Er(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}}(bl(t),t,ul.outerWidth,ul.outerHeight),h=wl(t),c=!!t.backgroundColor,p=u.outerHeight,d=u.outerWidth,f=u.lines,g=u.lineHeight,y=(this.isTruncated=!!u.isTruncated,r),m=Zr(o,u.contentHeight,s),v=((h||n)&&(l=Gr(r,d,a),o=Zr(o,p,s),h)&&this._renderBackground(t,t,l,o,d,p),m+=g/2,n&&(y=xl(r,a,n),"top"===s?m+=n[0]:"bottom"===s&&(m-=n[2])),0),_=!1,h=!1,x=(_l(("fill"in t?t:(h=!0,i)).fill)),b=(vl("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(Xs),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,yl(T,t),m+=g,M.setBoundingRect(Wa(T,u.contentWidth,u.calculatedLineHeight,_?0:null))}},pl.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;Ea(ul,e.overflowRect,r,o,n,i);for(var r=ul.baseX,o=ul.baseY,a=Ra(bl(t),t,ul.outerWidth,ul.outerHeight,n),s=a.width,e=a.outerWidth,l=a.outerHeight,u=t.padding,r=(this.isTruncated=!!a.isTruncated,Gr(r,e,n)),n=Zr(o,l,i),h=r,c=n,p=(u&&(h+=u[3],c+=u[0]),h+s),d=(wl(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}},pl.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&&wl(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=xl(r,o,i),u-=t.height/2-i[0]-t.innerHeight/2),this._getOrCreateChild(Xs)),i=n.createStyle(),h=(n.useStyle(i),this._defaultStyle),c=!1,p=0,d=!1,f=_l(("fill"in s?s:"fill"in e?e:(c=!0,h)).fill),l=vl("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=St(s.opacity,e.opacity,1),yl(i,s),l&&(i.lineWidth=St(s.lineWidth,e.lineWidth,p),i.lineDash=W(s.lineDash,e.lineDash),i.lineDashOffset=e.lineDashOffset||0,i.stroke=l),f&&(i.fill=f),n.setBoundingRect(Wa(i,t.contentWidth,t.contentHeight,d?0:null))},pl.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(ol)).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=W(t.fillOpacity,1)):d&&((s=this._getOrCreateChild($s)).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=W(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=St(t.opacity,e.opacity,1)},pl.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},pl);function pl(t){var e=sl.call(this)||this;return e.type="text",e._children=[],e._defaultStyle=ll,e.attr(t),e}var dl={left:!0,right:1,center:1},fl={top:1,bottom:1,middle:1},gl=["fontStyle","fontWeight","fontSize","fontFamily"];function yl(t,e){for(var n=0;n<gl.length;n++){var i=gl[n],r=e[i];null!=r&&(t[i]=r)}}function ml(t){var e;t&&(t.font=cl.makeFont(t),e=t.align,t.align=null==(e="middle"===e?"center":e)||dl[e]?e:"left",e=t.verticalAlign,t.verticalAlign=null==(e="center"===e?"middle":e)||fl[e]?e:"top",t.padding)&&(t.padding=Tt(t.padding))}function vl(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function _l(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function xl(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function bl(t){t=t.text;return null!=t&&(t+=""),t}function wl(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var Sl=ea(),Ml=1,Tl={},Cl=ea(),Il=ea(),kl=0,Dl=1,Ll=2,Al=["emphasis","blur","select"],Pl=["normal","emphasis","blur","select"],Ol="highlight",Rl="downplay",Nl="select",zl="unselect",Bl="toggleSelect",El="selectchanged";function Vl(t){return null!=t&&"none"!==t}function Fl(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function Hl(t){Fl(t,"emphasis",Ll)}function Wl(t){t.hoverState===Ll&&Fl(t,"normal",kl)}function Gl(t){Fl(t,"blur",Dl)}function Zl(t){t.hoverState===Dl&&Fl(t,"normal",kl)}function Ul(t){t.selected=!0}function Xl(t){t.selected=!1}function Yl(t,e,n){e(t,n)}function ql(t,e,n){Yl(t,e,n),t.isGroup&&t.traverse(function(t){Yl(t,e,n)})}function jl(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 Kl(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 Gs&&(r=Cl(n),o=e&&r.selectFill||r.normalFill,e=e&&r.selectStroke||r.normalStroke,Vl(o)||Vl(e))&&("inherit"===(r=(i=i||{}).style||{}).fill?(a=!0,i=P({},i),(r=P({},r)).fill=o):!Vl(r.fill)&&Vl(o)?(a=!0,i=P({},i),(r=P({},r)).fill=Vi(o)):!Vl(r.stroke)&&Vl(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 jl(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 $l(t){t.stateProxy=Kl;var e=t.getTextContent(),t=t.getTextGuideLine();e&&(e.stateProxy=Kl),t&&(t.stateProxy=Kl)}function Ql(t,e){ou(t,e)||t.__highByOuter||ql(t,Hl)}function Jl(t,e){ou(t,e)||t.__highByOuter||ql(t,Wl)}function tu(t,e){t.__highByOuter|=1<<(e||0),ql(t,Hl)}function eu(t,e){(t.__highByOuter&=~(1<<(e||0)))||ql(t,Wl)}function nu(t){ql(t,Zl)}function iu(t){ql(t,Ul)}function ru(t){ql(t,Xl)}function ou(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function au(r){var e=r.getModel(),o=[],a=[];e.eachComponent(function(t,e){var n=Il(e),t="series"===t,i=t?r.getViewOfSeriesModel(e):r.getViewOfComponentModel(e);t||a.push(i),n.isBlured&&(i.group.traverse(function(t){Zl(t)}),t)&&o.push(e),n.isBlured=!1}),N(a,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(o,!1,e)})}function su(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&&nu(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||Gl(t)}),lt(o))c(t.getData(),o);else if(H(o))for(var i=pt(o),r=0;r<i.length;r++)c(t.getData(i[r]),o[i[r]]);h.push(t),Il(t).isBlured=!0}}),n.eachComponent(function(t,e){"series"!==t&&(t=s.getViewOfComponentModel(e))&&t.toggleBlurSeries&&t.toggleBlurSeries(h,!0,n)}))}function lu(t,e,n){var i;null!=t&&null!=e&&(t=n.getModel().getComponent(t,e))&&(Il(t).isBlured=!0,i=n.getViewOfComponentModel(t))&&i.focusBlurEnabled&&i.group.traverse(function(t){Gl(t)})}function uu(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"===Sl(a[s]).focus){o=!0;break}return{focusSelf:o,dispatchers:a}}function hu(i){N(i.getAllData(),function(t){var e=t.data,n=t.type;e.eachItemGraphicEl(function(t,e){(i.isSelected(e,n)?iu:ru)(t)})})}function cu(t,e,n){du(t,!0),ql(t,$l);t=Sl(t),null!=e?(t.focus=e,t.blurScope=n):t.focus&&(t.focus=null)}function pu(t,e,n,i){i?du(t,!1):cu(t,e,n)}function du(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 fu(t){return!(!t||!t.__highDownDispatcher)}function gu(t){t=t.type;return t===Nl||t===zl||t===Bl}function yu(t){t=t.type;return t===Ol||t===Rl}var mu=Ts.CMD,vu=[[],[],[]],_u=Math.sqrt,xu=Math.atan2;var bu=Math.sqrt,wu=Math.sin,Su=Math.cos,Mu=Math.PI;function Tu(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Cu(t,e){return(t[0]*e[0]+t[1]*e[1])/(Tu(t)*Tu(e))}function Iu(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Cu(t,e))}function ku(t,e,n,i,r,o,a,s,l,u,h){var l=l*(Mu/180),c=Su(l)*(t-n)/2+wu(l)*(e-i)/2,p=-1*wu(l)*(t-n)/2+Su(l)*(e-i)/2,d=c*c/(a*a)+p*p/(s*s),d=(1<d&&(a*=bu(d),s*=bu(d)),(r===o?-1:1)*bu((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+Su(l)*r-wu(l)*d,n=(e+i)/2+wu(l)*r+Su(l)*d,e=Iu([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=Iu(i,c);Cu(i,c)<=-1&&(r=Mu),(r=1<=Cu(i,c)?0:r)<0&&(p=Math.round(r/Mu*1e6)/1e6,r=2*Mu+p%2*Mu),h.addData(u,t,n,a,s,e,r,l,o)}var Du=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Lu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;u(Ou,Au=Gs),Ou.prototype.applyTransform=function(t){};var Au,Pu=Ou;function Ou(){return null!==Au&&Au.apply(this,arguments)||this}function Ru(t){return null!=t.setData}function Nu(t,e){var S=function(t){var e=new Ts;if(t){var n,i=0,r=0,o=i,a=r,s=Ts.CMD,l=t.match(Du);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(Lu)||[],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,C=void 0,I=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,C=e.len(),I=e.data,n===s.C&&(m+=i-I[C-4],v+=r-I[C-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,C=e.len(),I=e.data,n===s.C&&(m+=i-I[C-4],v+=r-I[C-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,C=e.len(),I=e.data,n===s.Q&&(m+=i-I[C-4],v+=r-I[C-3]),i=d[y++],r=d[y++],p=s.Q,e.addData(p,m,v,i,r);break;case"t":m=i,v=r,C=e.len(),I=e.data,n===s.Q&&(m+=i-I[C-4],v+=r-I[C-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++],ku(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++],ku(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=Ru(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=mu.M,h=mu.C,c=mu.L,p=mu.R,d=mu.A,f=mu.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],_=_u(n[0]*n[0]+n[1]*n[1]),x=_u(n[2]*n[2]+n[3]*n[3]),b=xu(-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++],ae(a,a,n),s[y++]=a[0],s[y++]=a[1],a[0]+=s[g++],a[1]+=s[g++],ae(a,a,n),s[y++]=a[0],s[y++]=a[1]}for(o=0;o<r;o++){var w=vu[o];w[0]=s[g++],w[1]=s[g++],ae(w,w,n),s[y++]=w[0],s[y++]=w[1]}}e.increaseVersion()}this.dirtyShape()},t}var zu,Bu=function(){this.cx=0,this.cy=0,this.r=0},Eu=(u(Vu,zu=Gs),Vu.prototype.getDefaultShape=function(){return new Bu},Vu.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)},Vu);function Vu(t){return zu.call(this,t)||this}Eu.prototype.type="circle";var Fu,Hu=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},Wu=(u(Gu,Fu=Gs),Gu.prototype.getDefaultShape=function(){return new Hu},Gu.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()},Gu);function Gu(t){return Fu.call(this,t)||this}Wu.prototype.type="ellipse";var Zu=Math.PI,Uu=2*Zu,Xu=Math.sin,Yu=Math.cos,qu=Math.acos,ju=Math.atan2,Ku=Math.abs,$u=Math.sqrt,Qu=Math.max,Ju=Math.min,th=1e-4;function eh(t,e,n,i,r,o,a){var s=t-n,l=e-i,a=(a?o:-o)/$u(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)*$u(Qu(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 nh(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,C,I,k,D,L,A,P=Qu(e.r,0),O=Qu(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=Ku(n-R),th<(a=Uu<m&&m%Uu)&&(m=a),th<P?Uu-th<m?(t.moveTo(i+P*Yu(R),r+P*Xu(R)),t.arc(i,r,P,R,n,!o),th<O&&(t.moveTo(i+O*Yu(n),r+O*Xu(n)),t.arc(i,r,O,n,R,o))):(S=w=b=x=_=v=c=h=I=C=T=M=u=l=s=a=void 0,p=P*Yu(R),d=P*Xu(R),f=O*Yu(n),g=O*Xu(n),(y=th<m)&&((e=e.cornerRadius)&&(a=(e=function(t){if(E(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=Ku(P-O)/2,M=Ju(e,l),T=Ju(e,u),C=Ju(e,a),I=Ju(e,s),v=h=Qu(M,T),_=c=Qu(C,I),th<h||th<c)&&(x=P*Yu(n),b=P*Xu(n),w=O*Yu(R),S=O*Xu(R),m<Zu)&&(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<th))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],C=x-e[0],I=b-e[1],m=1/Xu(qu((M*C+T*I)/($u(M*M+T*T)*$u(C*C+I*I)))/2),M=$u(e[0]*e[0]+e[1]*e[1]),v=Ju(h,(P-M)/(1+m)),_=Ju(c,(O-M)/(m-1))),y?th<v?(k=Ju(l,v),D=Ju(u,v),L=eh(w,S,p,d,P,k,o),A=eh(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,ju(L.y0,L.x0),ju(A.y0,A.x0),!o):(0<k&&t.arc(i+L.cx,r+L.cy,k,ju(L.y0,L.x0),ju(L.y1,L.x1),!o),t.arc(i,r,P,ju(L.cy+L.y1,L.cx+L.x1),ju(A.cy+A.y1,A.cx+A.x1),!o),0<D&&t.arc(i+A.cx,r+A.cy,D,ju(A.y1,A.x1),ju(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),th<O&&y?th<_?(k=Ju(a,_),L=eh(f,g,x,b,O,-(D=Ju(s,_)),o),A=eh(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,_,ju(L.y0,L.x0),ju(A.y0,A.x0),!o):(0<D&&t.arc(i+L.cx,r+L.cy,D,ju(L.y0,L.x0),ju(L.y1,L.x1),!o),t.arc(i,r,O,ju(L.cy+L.y1,L.cx+L.x1),ju(A.cy+A.y1,A.cx+A.x1),o),0<k&&t.arc(i+A.cx,r+A.cy,k,ju(A.y1,A.x1),ju(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 ih,rh=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},oh=(u(ah,ih=Gs),ah.prototype.getDefaultShape=function(){return new rh},ah.prototype.buildPath=function(t,e){nh(t,e)},ah.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},ah);function ah(t){return ih.call(this,t)||this}oh.prototype.type="sector";var sh,lh=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},uh=(u(hh,sh=Gs),hh.prototype.getDefaultShape=function(){return new lh},hh.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)},hh);function hh(t){return sh.call(this,t)||this}function ch(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++)se(h,h,t[p]),le(c,c,t[p]);se(h,h,i[0]),le(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]}Kt(s,o,r),Jt(s,s,e);var g=ee(f,r),y=ee(f,o),m=g+y,m=(0!==m&&(g/=m,y/=m),Jt(l,s,-g),Jt(u,s,y),qt([],f,l)),g=qt([],f,u);i&&(le(m,m,h),se(m,m,c),le(g,g,h),se(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()}}uh.prototype.type="ring";var ph,dh=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},fh=(u(gh,ph=Gs),gh.prototype.getDefaultShape=function(){return new dh},gh.prototype.buildPath=function(t,e){ch(t,e,!0)},gh);function gh(t){return ph.call(this,t)||this}fh.prototype.type="polygon";var yh,mh=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},vh=(u(_h,yh=Gs),_h.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},_h.prototype.getDefaultShape=function(){return new mh},_h.prototype.buildPath=function(t,e){ch(t,e,!1)},_h);function _h(t){return yh.call(this,t)||this}vh.prototype.type="polyline";var xh,bh={},wh=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Sh=(u(Mh,xh=Gs),Mh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Mh.prototype.getDefaultShape=function(){return new wh},Mh.prototype.buildPath=function(t,e){o=(this.subPixelOptimize?(n=(o=tl(bh,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))},Mh.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},Mh);function Mh(t){return xh.call(this,t)||this}Sh.prototype.type="line";var Th=[],Ch=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function Ih(t,e,n){var i=t.cpx2,r=t.cpy2;return null!=i||null!=r?[(n?Qn:$n)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?Qn:$n)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?ri:ii)(t.x1,t.cpx1,t.x2,e),(n?ri:ii)(t.y1,t.cpy1,t.y2,e)]}u(Lh,kh=Gs),Lh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Lh.prototype.getDefaultShape=function(){return new Ch},Lh.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&&(ai(n,a,r,e,Th),a=Th[1],r=Th[2],ai(i,s,o,e,Th),s=Th[1],o=Th[2]),t.quadraticCurveTo(a,s,r,o)):(e<1&&(ei(n,a,l,r,e,Th),a=Th[1],l=Th[2],r=Th[3],ei(i,s,u,o,e,Th),s=Th[1],u=Th[2],o=Th[3]),t.bezierCurveTo(a,s,l,u,r,o)))},Lh.prototype.pointAt=function(t){return Ih(this.shape,t,!1)},Lh.prototype.tangentAt=function(t){t=Ih(this.shape,t,!0);return te(t,t)};var kh,Dh=Lh;function Lh(t){return kh.call(this,t)||this}Dh.prototype.type="bezier-curve";var Ah,Ph=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Oh=(u(Rh,Ah=Gs),Rh.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},Rh.prototype.getDefaultShape=function(){return new Ph},Rh.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)},Rh);function Rh(t){return Ah.call(this,t)||this}Oh.prototype.type="arc";u(Bh,Nh=Gs),Bh.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()},Bh.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)},Bh.prototype.buildPath=function(t,e){for(var n=e.paths||[],i=0;i<n.length;i++)n[i].buildPath(t,n[i].shape,!0)},Bh.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},Bh.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Gs.prototype.getBoundingRect.call(this)};var Nh,zh=Bh;function Bh(){var t=null!==Nh&&Nh.apply(this,arguments)||this;return t.type="compound",t}Vh.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})};var Eh=Vh;function Vh(t){this.colorStops=t||[]}u(Wh,Fh=Eh);var Fh,Hh=Wh;function Wh(t,e,n,i,r,o){r=Fh.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(Zh,Gh=Eh);var Gh,Eh=Zh;function Zh(t,e,n,i,r){i=Gh.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 Uh=Math.min,Xh=Math.max,Yh=Math.abs,qh=[0,0],jh=[0,0],Kh=hn(),$h=Kh.minTv,Qh=Kh.maxTv,Jh=(tc.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);M.sub(i[0],n[1],n[0]),M.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])},tc.prototype.intersect=function(t,e,n){var i=!0,r=!e;return e&&M.set(e,0,0),Kh.reset(n,!r),!this._intersectCheckOneSide(this,t,r,1)&&(i=!1,r)||!this._intersectCheckOneSide(t,this,r,-1)&&(i=!1,r)||r||Kh.negativeSize||M.copy(e,i?Kh.useDir?Kh.dirMinTv:$h:Qh),i},tc.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,qh),t._getProjMinMaxOnAxis(o,e._corners,jh),Kh.negativeSize||qh[1]<jh[0]||jh[1]<qh[0]){if(r=!1,Kh.negativeSize||n)return r;var s=Yh(jh[0]-qh[1]),l=Yh(qh[0]-jh[1]);Uh(s,l)>Qh.len()&&(s<l?M.scale(Qh,a,-s*i):M.scale(Qh,a,l*i))}else n||(s=Yh(jh[0]-qh[1]),l=Yh(qh[0]-jh[1]),(Kh.useDir||Uh(s,l)<$h.len())&&((s<l||!Kh.bidirectional)&&(M.scale($h,a,s*i),Kh.useDir)&&Kh.calcDirMTV(),l<=s||!Kh.bidirectional)&&(M.scale($h,a,-l*i),Kh.useDir)&&Kh.calcDirMTV())}return r},tc.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=Uh(u,a),s=Xh(u,s);n[0]=a+Kh.touchThreshold,n[1]=s-Kh.touchThreshold,Kh.negativeSize=n[1]<n[0]},tc);function tc(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new M;for(n=0;n<2;n++)this._axes[n]=new M;t&&this.fromBoundingRect(t,e)}var ec,nc=[],n=(u(ic,ec=n),ic.prototype.traverse=function(t,e){t.call(e,this)},ic.prototype.useStyle=function(){this.style={}},ic.prototype.getCursor=function(){return this._cursor},ic.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},ic.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},ic.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},ic.prototype.addDisplayable=function(t,e){(e?this._temporaryDisplayables:this._displayables).push(t),this.markRedraw()},ic.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n<t.length;n++)this.addDisplayable(t[n],e)},ic.prototype.getDisplayables=function(){return this._displayables},ic.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},ic.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])},ic.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},ic.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new U(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(nc)),t.union(i)}this._rect=t}return this._rect},ic.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},ic);function ic(){var t=null!==ec&&ec.apply(this,arguments)||this;return t.notClear=!0,t.incremental=!0,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}var rc=ea();function oc(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):H(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=W(l.duration,200),h=W(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 ac(t,e,n,i,r,o){oc("update",t,e,n,i,r,o)}function sc(t,e,n,i,r,o){oc("enter",t,e,n,i,r,o)}function lc(t){if(!t.__zr)return 1;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return 1}function uc(t,e,n,i,r,o){lc(t)||oc("leave",t,e,n,i,r,o)}var hc={},cc=["x","y"],pc=["width","height"];var dc=function(t,e){var n,i=Nu(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=Pu),r};function fc(t,e){hc[t]=e}function gc(t,e,n,i){t=new Pu(Nu(t,e));return n&&("center"===i&&(n=mc(n,t.getBoundingRect())),_c(t,n)),t}function yc(t,e,n){var i=new $s({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(mc(e,t)))}});return i}function mc(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 vc(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 Gs(e)).createPathProxy(),e.buildPath=function(t){var e;Ru(t)&&(t.appendPath(n),e=t.getContext())&&t.rebuildPath(e,1)},e}function _c(t,e){t.applyTransform&&(e=t.getBoundingRect().calculateTransform(e),t.applyTransform(e))}function xc(t,e){tl(t,t,{lineWidth:e})}function bc(t,e){for(var n=Ee([]);t&&t!==e;)Fe(n,t.getLocalTransform(),n),t=t.parent;return n}function wc(t,e,n){return e&&!lt(e)&&(e=Or.getLocalTransform(e)),ae([],t,e=n?Ze([],e):e)}function Sc(t){return!t.isGroup}function Mc(t,e,n,i,r){null!=e&&(F(e)?Tc[0]=Tc[1]=Tc[2]=Tc[3]=e:(Tc[0]=e[0],Tc[1]=e[1],Tc[2]=e[2],Tc[3]=e[3]),i&&(Tc[0]=bo(0,Tc[0]),Tc[1]=bo(0,Tc[1]),Tc[2]=bo(0,Tc[2]),Tc[3]=bo(0,Tc[3])),n&&(Tc[0]=-Tc[0],Tc[1]=-Tc[1],Tc[2]=-Tc[2],Tc[3]=-Tc[3]),Cc(t,Tc,"x","width",3,1,r&&r[0]||0),Cc(t,Tc,"y","height",0,2,r&&r[1]||0))}var Tc=[0,0,0,0];function Cc(t,e,n,i,r,o,a){var s=e[o]+e[r],l=t[i];t[i]+=s,a=bo(0,xo(a,l)),t[i]<a?(t[i]=a,t[n]+=0<=e[r]?-e[r]:0<=e[o]?l+e[o]:1e-8<wo(s)?(l-a)*e[r]/s:0):t[n]-=e[r]}function Ic(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,e=V(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&&N(pt(a),function(t){Vt(o,t)||(o[t]=a[t],o.$vars.push(t))}),Sl(t.el));t.componentMainType=r,t.componentIndex=n,t.tooltipConfig={name:i,option:rt({content:i,encodeHTMLContent:!0,formatterParams:o},e)}}function kc(t,e){var n;(n=t.isGroup?e(t):n)||t.traverse(e)}function Dc(t,e){if(t)if(E(t))for(var n=0;n<t.length;n++)kc(t[n],e);else kc(t,e)}function Lc(t){return!t||wo(t[1])<1e-5&&wo(t[2])<1e-5||wo(t[0])<1e-5&&wo(t[3])<1e-5}function Ac(t,e){return t?U.copy(t,e):e.clone()}function Pc(t,e){return e?Ve(t||Be(),e):void 0}function Oc(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function Rc(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=bo(t(l[u],n,i,r),r);else e.z=n,e.zlevel=i,r=bo(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)}fc("circle",Eu),fc("ellipse",Wu),fc("sector",oh),fc("ring",uh),fc("polygon",fh),fc("polyline",vh),fc("rect",ol),fc("line",Sh),fc("bezierCurve",Dh),fc("arc",Oh);var Nc={};function zc(t,e){for(var n=0;n<Al.length;n++){var i=Al[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 Bc(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<Al.length;u++){var h=Al[u],c=e[h];l[h]=W(r?r.getFormattedLabel(o,h,null,a,c&&c.get("formatter")):null,i)}return l}function Ec(t,e,n,i){n=n||Nc;for(var r=t instanceof cl,o=!1,a=0;a<Pl.length;a++)if((p=e[Pl[a]])&&p.getShallow("show")){o=!0;break}var s=r?t:t.getTextContent();if(o){r||(s||(s=new cl,t.setTextContent(s)),t.stateProxy&&(s.stateProxy=t.stateProxy));var l=Bc(n,e),u=e.normal,h=!!u.getShallow("show"),c=Fc(u,i&&i.normal,n,!1,!r);c.text=l.normal,r||t.setTextConfig(Hc(u,n,!1));for(a=0;a<Al.length;a++){var p,d,f,g=Al[a];(p=e[g])&&(d=s.ensureState(g),(f=!!W(p.getShallow("show"),h))!=h&&(d.ignore=!f),d.style=Fc(p,i&&i[g],n,!0,!r),d.style.text=l[g],r||(t.ensureState(g).textConfig=Hc(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&&(Xc(s).setLabelText=function(t){t=Bc(n,e,t);zc(s,t)})}else s&&(s.ignore=!0);t.dirty()}function Vc(t,e){for(var n={normal:t.getModel(e=e||"label")},i=0;i<Al.length;i++){var r=Al[i];n[r]=t.getModel([r,e])}return n}function Fc(t,e,n,i,r){var o={},a=o,s=t,l=n,u=i,h=r;l=l||Nc;var c,t=s.ecModel,p=t&&t.option.textStyle,d=function(t){var e;for(;t&&t!==t.ecModel;){var n=(t.option||Nc).rich;if(n){e=e||{};for(var i=pt(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=W(s.get(y),t?t.get(y):void 0);for(f in d)d.hasOwnProperty(f)&&(g=s.getModel(["rich",f]),Uc(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=F(y)?y/2:0,t.margin=[y,y,y,y],t.__marginType=qc.minMargin):null!=(y=s.get("textMargin"))&&(t.margin=Tt(y),t.__marginType=qc.textMargin),Uc(a,s,p,null,null,l,u,h,!0,!1),e&&P(o,e),o}function Hc(t,e,n){e=e||{};var i={},r=t.getShallow("rotate"),o=W(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 Wc=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Gc=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Zc=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Uc(t,e,n,i,r,o,a,s,l,u){n=!a&&n||Nc;var h=o&&o.inheritColor,c=e.getShallow("color"),p=e.getShallow("textBorderColor"),d=W(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),W(e.getShallow("textBorderWidth"),n.textBorderWidth)),p=(null!=c&&(t.lineWidth=c),W(e.getShallow("textBorderType"),n.textBorderType)),c=(null!=p&&(t.lineDash=p),W(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<Wc.length;f++){var g=Wc[f];null!=(y=!1!==r&&i?St(e.getShallow(g),i.getShallow(g),n[g]):W(e.getShallow(g),n[g]))&&(t[g]=y)}for(var f=0;f<Gc.length;f++){g=Gc[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<Zc.length;f++){var y,g=Zc[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 Xc=ea();function Yc(n,i,r,t,o){var a,s,l,u=Xc(n);u.valueAnimation&&u.prevValue!==u.value&&(a=u.defaultInterpolatedText,s=W(u.interpolatedValue,u.prevValue),l=u.value,n.percent=0,(null==u.prevValue?sc:ac)(n,{percent:1},t,i,null,function(t){var e=function(t,e,n,i,r){var o=null==e||"auto"===e;if(null==i)return i;if(F(i))return Co(p=Ho(n||0,i,r),o?Math.max(ko(n||0),ko(i)):e);if(V(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=Ho(d=s&&s[h]?s[h]:0,c=l[h],r),a[h]=Co(p,o?Math.max(ko(d),ko(c)):e))}return a}(r,u.precision,s,l,t),t=(u.interpolatedValue=1===t?null:e,Bc({labelDataIndex:i,labelFetcher:o,defaultText:a?a(e):e+""},u.statesModels,e));zc(n,t)}))}var qc={minMargin:1,textMargin:2},jc=["textStyle","color"],Kc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],$c=new cl,Qc=(Jc.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(jc):null)},Jc.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},Jc.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Kc.length;n++)e[Kc[n]]=this.getShallow(Kc[n]);return $c.useStyle(e),$c.update(),$c.getBoundingRect()},Jc);function Jc(){}var tp=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],ep=_a(tp),np=(ip.prototype.getLineStyle=function(t){return ep(this,t)},ip);function ip(){}var rp=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],op=_a(rp),ap=(sp.prototype.getItemStyle=function(t,e){return op(this,t,e)},sp);function sp(){}hp.prototype.init=function(t,e,n){},hp.prototype.mergeOption=function(t,e){d(this.option,t,!0)},hp.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},hp.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},hp.prototype.getModel=function(t,e){var n=null!=t,t=n?this.parsePath(t):null;return new hp(n?this._doGet(t):this.option,e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(t)),this.ecModel)},hp.prototype.isEmpty=function(){return null==this.option},hp.prototype.restoreData=function(){},hp.prototype.clone=function(){return new this.constructor(v(this.option))},hp.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},hp.prototype.resolveParentPath=function(t){return t},hp.prototype.isAnimationEnabled=function(){if(!p.node&&this.option)return null!=this.option.animation?!!this.option.animation:this.parentModel?this.parentModel.isAnimationEnabled():void 0},hp.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 lp,up=hp;function hp(t,e,n){this.parentModel=e,this.ecModel=n,this.option=t}da(up),kp=up,lp=["__\0is_clz",ga++].join("_"),kp.prototype[lp]=!0,kp.isInstance=function(t){return!(!t||!t[lp])},st(up,np),st(up,ap),st(up,ba),st(up,Qc);var cp=Math.round(10*Math.random());function pp(t){return[t||"",cp++].join("_")}function dp(t,e){return d(d({},t,!0),e,!0)}var fp="ZH",gp="EN",yp=gp,mp={},vp={},_p=p.domSupported&&-1<(document.documentElement.lang||navigator.language||navigator.browserLanguage||yp).toUpperCase().indexOf(fp)?fp:yp;function xp(t,e){t=t.toUpperCase(),vp[t]=new up(e),mp[t]=e}xp(gp,{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:". "}}}}),xp(fp,{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 bp=null;var wp=1e3,Sp=60*wp,Mp=60*Sp,Tp=24*Mp,ga=365*Tp,Cp={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})/},Ip={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},kp="{yyyy}-{MM}-{dd}",Dp={year:"{yyyy}",month:"{yyyy}-{MM}",day:kp,hour:kp+" "+Ip.hour,minute:kp+" "+Ip.minute,second:kp+" "+Ip.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Lp=["year","month","day","hour","minute","second","millisecond"],Ap=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Pp(t){return V(t)||z(t)?t:(l=(l=t)||{},u={},h=!0,N(Lp,function(t){h=h&&null==l[t]}),N(Lp,function(t,e){for(var n=l[t],i=(u[t]={},null),r=e;0<=r;r--){var o=Lp[r],a=H(n)&&!E(n)?n[o]:n,s=void 0;E(a)?i=(s=a.slice())[0]||"":V(a)?s=[i=a]:(null==i?i=Ip[t]:Cp[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 Op(t,e){return"0000".substr(0,e-(t+="").length)+t}function Rp(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 Np(t,e,n,i){var t=Ro(t),r=t[Ep(n)](),o=t[Vp(n)]()+1,a=Math.floor((o-1)/3)+1,s=t[Fp(n)](),l=t["get"+(n?"UTC":"")+"Day"](),u=t[Hp(n)](),h=(u-1)%12+1,c=t[Wp(n)](),p=t[Gp(n)](),t=t[Zp(n)](),n=12<=u?"pm":"am",d=n.toUpperCase(),i=(i instanceof up?i:vp[i||_p]||vp[yp]).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,Op(r%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,f[o-1]).replace(/{MMM}/g,g[o-1]).replace(/{MM}/g,Op(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Op(s,2)).replace(/{d}/g,s+"").replace(/{eeee}/g,y[l]).replace(/{ee}/g,i[l]).replace(/{e}/g,l+"").replace(/{HH}/g,Op(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,Op(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,Op(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,Op(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Op(t,3)).replace(/{S}/g,t+"")}function zp(t,e){var t=Ro(t),n=t[Vp(e)]()+1,i=t[Fp(e)](),r=t[Hp(e)](),o=t[Wp(e)](),a=t[Gp(e)](),t=0===t[Zp(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 Bp(t,e,n){switch(e){case"year":t[Up(n)](0);case"month":t[Xp(n)](1);case"day":t[Yp(n)](0);case"hour":t[qp(n)](0);case"minute":t[jp(n)](0);case"second":t[Kp(n)](0)}return t}function Ep(t){return t?"getUTCFullYear":"getFullYear"}function Vp(t){return t?"getUTCMonth":"getMonth"}function Fp(t){return t?"getUTCDate":"getDate"}function Hp(t){return t?"getUTCHours":"getHours"}function Wp(t){return t?"getUTCMinutes":"getMinutes"}function Gp(t){return t?"getUTCSeconds":"getSeconds"}function Zp(t){return t?"getUTCMilliseconds":"getMilliseconds"}function Up(t){return t?"setUTCMonth":"setMonth"}function Xp(t){return t?"setUTCDate":"setDate"}function Yp(t){return t?"setUTCHours":"setHours"}function qp(t){return t?"setUTCMinutes":"setMinutes"}function jp(t){return t?"setUTCSeconds":"setSeconds"}function Kp(t){return t?"setUTCMilliseconds":"setMilliseconds"}function $p(t){var e;return Vo(t)?(e=(t+"").split("."))[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(1<e.length?"."+e[1]:""):V(t)?t:"-"}function Qp(t,e){return"{"+t+(null==e?"":e)+"}"}var Jp=Tt,td=["a","b","c","d","e","f","g"];function ed(t,e,n){var i=(e=E(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(Qp(a),Qp(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(Qp(td[l],s),n?Se(u):u)}return t}var nd={},id={},rd=(od.prototype.create=function(i,r){function t(t){var n=[];return N(t,function(t,e){t=t.create(i,r);n=n.concat(t||[])}),n}this._nonSeriesBoxMasterList=t(nd),this._normalMasterList=t(id)},od.prototype.update=function(e,n){N(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?nd[t]=e:id[t]=e},od.get=function(t){return id[t]||nd[t]},od);function od(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}var ad={coord:1,coord2:2},sd=O();var ld={none:0,dataCoordSys:1,boxCoordSys:2};function ud(t){var e=t.getShallow("coordinateSystem"),n=t.getShallow("coordinateSystemUsage",!0),i=ld.none;return e&&(t="series"===t.mainType,"data"===(n=null==n?t?"data":"box":n)?(i=ld.dataCoordSys,t||(i=ld.none)):"box"===n&&(i=ld.boxCoordSys,t||nd[e]||(i=ld.none))),{coordSysType:e,kind:i}}function hd(t){var e=t.targetModel,n=t.coordSysType,i=t.coordSysProvider,r=t.isDefaultDataCoordSys,t=(t.allowNotFound,ud(e)),o=t.kind,t=t.coordSysType;r&&o!==ld.dataCoordSys&&(o=ld.dataCoordSys,t=n),o!==ld.none&&t===n&&(r=i(n,e))&&(o===ld.dataCoordSys?e.coordinateSystem=r:e.boxCoordinateSystem=r)}var cd=N,pd=["left","right","top","bottom","width","height"],dd=[["width","left","right"],["height","top","bottom"]];function fd(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)})}function gd(t,e,n){n=Jp(n||0);var i=e.width,r=e.height,o=Mo(t.left,i),a=Mo(t.top,r),s=Mo(t.right,i),l=Mo(t.bottom,r),u=Mo(t.width,i),h=Mo(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 U((e.x||0)+o+n[3],(e.y||0)+a+n[0],u,h);return d.margin=n,d}dt(fd,"vertical"),dt(fd,"horizontal");var yd=1,md=2;function vd(t,e,n){var i,r,o,a,s,l,u,h=t.boxCoordinateSystem;return h&&(l=(t=t).getShallow("coord",!0),u=ad.coord,null==l&&(s=sd.get(t.type))&&s.getCoord2&&(u=ad.coord2,l=s.getCoord2(t)),t=(s={coord:l,from:u}).coord,l=s.from,h.dataToLayout?(r=yd,o=l,a=(u=h.dataToLayout(t)).contentRect||u.rect):n&&n.enableLayoutOnlyByCenter&&h.dataToPoint&&(r=md,o=l,i=h.dataToPoint(t))),(r=null==r?yd:r)===yd&&(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 _d(t){t=t.layoutMode||t.constructor.layoutMode;return H(t)?t:t?{type:t}:null}function xd(l,u,t){var h=t&&t.ignoreSize,t=(E(h)||(h=[h,h]),n(dd[0],0)),e=n(dd[1],1);function n(t,e){var n={},i=0,r={},o=0;if(cd(t,function(t){r[t]=l[t]}),cd(t,function(t){Vt(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(!Vt(n,s)&&Vt(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){cd(t,function(t){e[t]=n[t]})}i(dd[0],l,t),i(dd[1],l,e)}function bd(t){return e={},(n=t)&&e&&cd(pd,function(t){Vt(n,t)&&(e[t]=n[t])}),e;var e,n}var wd,Sd,Md,Td,Cd=ea(),Id=(u(kd,wd=up),kd.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},kd.prototype.mergeDefaultAndTheme=function(t,e){var n=_d(this),i=n?bd(t):{};d(t,e.getTheme().get(this.mainType)),d(t,this.getDefaultOption()),n&&xd(t,i,n)},kd.prototype.mergeOption=function(t,e){d(this.option,t,!0);var n=_d(this);n&&xd(this.option,t,n)},kd.prototype.optionUpdated=function(t,e){},kd.prototype.getDefaultOption=function(){var t=this.constructor;if(!(e=t)||!e[ca])return t.defaultOption;var e=Cd(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},kd.prototype.getReferringComponents=function(t,e){var n=t+"Id";return sa(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},kd.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},kd.prototype.getZLevelKey=function(){return""},kd.prototype.setZLevel=function(t){this.option.zlevel=t},kd.protoInitialize=((np=kd.prototype).type="component",np.id="",np.name="",np.mainType="",np.subType="",void(np.componentIndex=0)),kd);function kd(t,e,n){t=wd.call(this,t,e,n)||this;return t.uid=pp("ec_cpt_model"),t}function Dd(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}fa(Id,up),va(Id),Md={},(Sd=Id).registerSubTypeDefaulter=function(t,e){t=pa(t);Md[t.main]=e},Sd.determineSubType=function(t,e){var n,i=e.type;return i||(n=pa(t).main,Sd.hasSubTypes(t)&&Md[n]&&(i=Md[n](e))),i},Td=function(t){var e=[];N(Id.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=B(e,function(t){return pa(t).main}),"dataset"!==t&&k(e,"dataset")<=0&&e.unshift("dataset");return e},Id.topologicalTravel=function(t,e,n,i){if(t.length){a={},s=[],N(o=e,function(n){var e,i,r=Dd(a,n),t=r.originalDeps=Td(n),t=(e=o,i=[],N(t,function(t){0<=k(e,t)&&i.push(t)}),i);r.entryCount=t.length,0===r.entryCount&&s.push(n),N(t,function(t){k(r.predecessor,t)<0&&r.predecessor.push(t);var e=Dd(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(N(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]),N(c.successor,p?f:d)}N(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 Ld,Ad,g={color:{},darkColor:{},size:{}},Pd=g.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(Ld in P(Pd,{primary:Pd.neutral80,secondary:Pd.neutral70,tertiary:Pd.neutral60,quaternary:Pd.neutral50,disabled:Pd.neutral20,border:Pd.neutral30,borderTint:Pd.neutral20,borderShade:Pd.neutral40,background:Pd.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:Pd.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:Pd.neutral70,axisLineTint:Pd.neutral40,axisTick:Pd.neutral70,axisTickMinor:Pd.neutral60,axisLabel:Pd.neutral70,axisSplitLine:Pd.neutral15,axisMinorSplitLine:Pd.neutral05}),Pd)Pd.hasOwnProperty(Ld)&&(Ad=Pd[Ld],"theme"===Ld?g.darkColor.theme=Pd.theme.slice():"highlight"===Ld?g.darkColor.highlight="rgba(255,231,130,0.4)":0===Ld.indexOf("accent")?g.darkColor[Ld]=Ni(Ad,null,function(t){return.5*t},function(t){return Math.min(1,1.3-t)}):g.darkColor[Ld]=Ni(Ad,null,function(t){return.9*t},function(t){return 1-Math.pow(t,1.5)}));g.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var ap="",ba=("undefined"!=typeof navigator&&(ap=navigator.platform||""),"rgba(0, 0, 0, 0.2)"),Qc=g.color.theme[0],kp=Ni(Qc,null,null,.9),Od={darkMode:"auto",colorBy:"series",color:g.color.theme,gradientColor:[kp,Qc],aria:{decal:{decals:[{color:ba,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ba,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ba,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ba,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ba,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ba,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ap.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},Rd=O(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Nd="original",zd="arrayRows",Bd="objectRows",Ed="keyedColumns",Vd="typedArray",Fd="unknown",Hd="column",Wd="row",Gd={Must:1,Might:2,Not:3},Zd=ea();function Ud(n,t,e){var r,o,a,i,s,l={},u=Xd(t);return u&&n&&(r=[],o=[],t=t.ecModel,t=Zd(t).datasetMap,u=u.uid+"_"+e.seriesLayoutBy,N(n=n.slice(),function(t,e){t=H(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}),N(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 Xd(t){if(!t.get("data",!0))return sa(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},oa).models[0]}function Yd(t,e){var n,i,r,o=t.data,a=t.sourceFormat,s=t.seriesLayoutBy,l=t.dimensionsDefine,u=t.startIndex,h=e;if(!yt(o)){if(l&&(H(l=l[h])?(i=l.name,r=l.type):V(l)&&(i=l)),null!=r)return"ordinal"===r?Gd.Must:Gd.Not;if(a===zd){var c=o;if(s===Wd){for(var p=c[h],d=0;d<(p||[]).length&&d<5;d++)if(null!=(n=_(p[u+d])))return n}else for(d=0;d<c.length&&d<5;d++){var f=c[u+d];if(f&&null!=(n=_(f[h])))return n}}else if(a===Bd){var g=o;if(!i)return Gd.Not;for(d=0;d<g.length&&d<5;d++)if((m=g[d])&&null!=(n=_(m[i])))return n}else if(a===Ed){l=o;if(!i)return Gd.Not;if(!(p=l[i])||yt(p))return Gd.Not;for(d=0;d<p.length&&d<5;d++)if(null!=(n=_(p[d])))return n}else if(a===Nd)for(var y=o,d=0;d<y.length&&d<5;d++){var m,v=Xo(m=y[d]);if(!E(v))return Gd.Not;if(null!=(n=_(v[h])))return n}}return Gd.Not;function _(t){var e=V(t);return null!=t&&Number.isFinite(Number(t))&&""!==t?e?Gd.Might:Gd.Not:e&&"-"!==t?Gd.Must:void 0}}var qd=O();var jd,Kd,$d,Qd=ea(),Jd=(ea(),tf.prototype.getColorFromPalette=function(t,e,n){var i=Go(this.get("color",!0)),r=this.get("colorLayer",!0),o=this,a=Qd;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:ef(r,n))||i)&&r.length?(n=r[o],t&&(e[t]=n),a.paletteIdx=(o+1)%r.length,n):void 0},tf.prototype.clearColorPalette=function(){var t,e;(e=Qd)(t=this).paletteIdx=0,e(t).paletteNameMap={}},tf);function tf(){}function ef(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 nf,rf="\0_ec_inner",of=(u(s,nf=up),s.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new up(i),this._locale=new up(r),this._optionManager=o},s.prototype.setOption=function(t,e,n){e=lf(e);this._optionManager.setOption(t,n,e),this._resetOption(null,e)},s.prototype.resetOption=function(t,e){return this._resetOption(t,lf(e))},s.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)):$d(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&&N(n,function(t){i=!0,this._mergeOption(t,e)},this),i},s.prototype.mergeOption=function(t){this._mergeOption(t,null)},s.prototype._mergeOption=function(i,t){var r=this.option,h=this._componentsMap,c=this._componentsCount,n=[],o=O(),p=t&&t.replaceMergeMainTypeMap;Zd(this).datasetMap=O(),N(i,function(t,e){null!=t&&(Id.hasClass(e)?e&&(n.push(e),o.set(e,!0)):r[e]=null==r[e]?v(t):d(r[e],t,!0))}),p&&p.each(function(t,e){Id.hasClass(e)&&!o.get(e)&&(n.push(e),o.set(e,!0))}),Id.topologicalTravel(n,Id.getAllClassMainTypes(),function(o){var a,t=function(t,e,n){return(e=(e=qd.get(e))&&e(t))?n.concat(e):n}(this,o,Go(i[o])),e=h.get(o),n=e?p&&p.get(o)?"replaceMerge":"normalMerge":"replaceAll",e=Yo(e,t,n),s=(Jo(e,o,Id),r[o]=null,h.set(o,null),c.set(o,0),[]),l=[],u=0;N(e,function(t,e){var n=t.existing,i=t.newOption;if(i){var r=Id.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&&jd(this)},this),this._seriesIndices||jd(this)},s.prototype.getOption=function(){var a=v(this.option);return N(a,function(t,e){if(Id.hasClass(e)){for(var n=Go(t),i=n.length,r=!1,o=i-1;0<=o;o--)n[o]&&!Qo(n[o])?r=!0:(n[o]=null,r||i--);n.length=i,a[e]=n}}),delete a[rf],a},s.prototype.setTheme=function(t){this._theme=new up(t),this._resetOption("recreate",null)},s.prototype.getTheme=function(){return this._theme},s.prototype.getLocaleModel=function(){return this._locale},s.prototype.setUpdatePayload=function(t){this._payload=t},s.prototype.getUpdatePayload=function(){return this._payload},s.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]}},s.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=[],N(Go(e),function(t){r[t]&&o.push(r[t])})):o=null!=n?af("id",n,r):null!=i?af("name",i,r):ht(r,function(t){return!!t}),sf(o,t)):[]},s.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):ht(this._componentsMap.get(i),function(t){return!!t});return n=sf(o,t),t.filter?ht(n,t.filter):n},s.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=V(t)?i.get(t):H(t)?this.findComponents(t):null,s=0;a&&s<a.length;s++){var l=a[s];l&&e.call(n,l,l.componentIndex)}},s.prototype.getSeriesByName=function(t){var e=Ko(t,null);return ht(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},s.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},s.prototype.getSeriesByType=function(e){return ht(this._componentsMap.get("series"),function(t){return!!t&&t.subType===e})},s.prototype.getSeries=function(){return ht(this._componentsMap.get("series"),function(t){return!!t})},s.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},s.prototype.eachSeries=function(n,i){Kd(this),N(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];n.call(i,e,t)},this)},s.prototype.eachRawSeries=function(e,n){N(this._componentsMap.get("series"),function(t){t&&e.call(n,t,t.componentIndex)})},s.prototype.eachSeriesByType=function(n,i,r){Kd(this),N(this._seriesIndices,function(t){var e=this._componentsMap.get("series")[t];e.subType===n&&i.call(r,e,t)},this)},s.prototype.eachRawSeriesByType=function(t,e,n){return N(this.getSeriesByType(t),e,n)},s.prototype.isSeriesFiltered=function(t){return Kd(this),null==this._seriesIndicesMap.get(t.componentIndex)},s.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},s.prototype.filterSeries=function(n,i){Kd(this);var r=[];N(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=O(r)},s.prototype.restoreData=function(n){jd(this);var t=this._componentsMap,i=[];t.each(function(t,e){Id.hasClass(e)&&i.push(e)}),Id.topologicalTravel(i,Id.getAllClassMainTypes(),function(e){N(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()})})},s.internalField=(jd=function(t){var e=t._seriesIndices=[];N(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=O(e)},Kd=function(t){},void($d=function(t,e){t.option={},t.option[rf]=1,t._componentsMap=O({series:[]}),t._componentsCount=O();var n,i,r=e.aria;H(r)&&null==r.enabled&&(r.enabled=!0),n=e,r=t._theme.option,i=n.color&&!n.colorLayer,N(r,function(t,e){"colorLayer"===e&&i||"color"===e&&n.color||Id.hasClass(e)||("object"==typeof t?n[e]=n[e]?d(n[e],t,!1):v(t):null==n[e]&&(n[e]=t))}),d(e,Od,!1),t._mergeOption(e,null)})),s);function s(){return null!==nf&&nf.apply(this,arguments)||this}function af(e,t,n){var i,r;return E(t)?(i=O(),N(t,function(t){null!=t&&null!=Ko(t,null)&&i.set(t,!0)}),ht(n,function(t){return t&&i.get(t[e])})):(r=Ko(t,null),ht(n,function(t){return t&&null!=r&&t[e]===r}))}function sf(t,e){return e.hasOwnProperty("subType")?ht(t,function(t){return t&&t.subType===e.subType}):t}function lf(t){var e=O();return t&&N(Go(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}st(of,Jd);function uf(e){N(hf,function(t){this[t]=y(e[t],e)},this)}var hf=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],cf=/^(min|max)?(.+)$/,pf=(df.prototype.setOption=function(t,e,n){t&&(N(Go(t.series),function(t){t&&t.data&&yt(t.data)&&Dt(t.data)}),N(Go(t.dataset),function(t){t&&t.source&&yt(t.source)&&Dt(t.source)})),t=v(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&&E(u)&&N(u,function(t){t&&t.option&&(t.query?o.push(t):e=e||t)});function p(e){N(n,function(t){t(e,i)})}return p(r),N(l,p),N(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},df.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],v(t?e.baseOption:this._newBaseOption)},df.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;return e=n.length&&(t=t.getComponent("timeline"))?v(n[t.getCurrentIndex()]):e},df.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 N(t,function(t,e){var n,e=e.match(cf);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 v((-1===t?r:i[t]).option)})),this._currentMediaIndices=o}return a},df);function df(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}var ff=N,gf=H,yf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function mf(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=yf.length;n<i;n++){var r=yf[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 vf(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,rt(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 _f(t){vf(t,"itemStyle"),vf(t,"lineStyle"),vf(t,"areaStyle"),vf(t,"label"),vf(t,"labelLine"),vf(t,"upperLabel"),vf(t,"edgeLabel")}function xf(t,e){var n=gf(t)&&t[e],i=gf(n)&&n.textStyle;if(i)for(var r=0,o=Uo.length;r<o;r++){var a=Uo[r];i.hasOwnProperty(a)&&(n[a]=i[a])}}function bf(t){t&&(_f(t),xf(t,"label"),t.emphasis)&&xf(t.emphasis,"label")}function wf(t){return E(t)?t:t?[t]:[]}function Sf(t){return(E(t)?t[0]:t)||{}}function Mf(e,t){ff(wf(e.series),function(t){if(gf(t))if(gf(t)){mf(t),_f(t),xf(t,"label"),xf(t,"upperLabel"),xf(t,"edgeLabel"),t.emphasis&&(xf(t.emphasis,"label"),xf(t.emphasis,"upperLabel"),xf(t.emphasis,"edgeLabel"));var e=t.markPoint,n=(e&&(mf(e),bf(e)),t.markLine),i=(n&&(mf(n),bf(n)),t.markArea),r=(i&&bf(i),t.data);if("graph"===t.type){var r=r||t.nodes,o=t.links||t.edges;if(o&&!yt(o))for(var a=0;a<o.length;a++)bf(o[a]);N(t.categories,function(t){_f(t)})}if(r&&!yt(r))for(a=0;a<r.length;a++)bf(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)bf(s[a]);if((n=t.markLine)&&n.data)for(var l=n.data,a=0;a<l.length;a++)E(l[a])?(bf(l[a][0]),bf(l[a][1])):bf(l[a]);"gauge"===t.type?(xf(t,"axisLabel"),xf(t,"title"),xf(t,"detail")):"treemap"===t.type?(vf(t.breadcrumb,"itemStyle"),N(t.levels,function(t){_f(t)})):"tree"===t.type&&_f(t.leaves)}});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),ff(n,function(t){ff(wf(e[t]),function(t){t&&(xf(t,"axisLabel"),xf(t.axisPointer,"label"))})}),ff(wf(e.parallel),function(t){t=t&&t.parallelAxisDefault;xf(t,"axisLabel"),xf(t&&t.axisPointer,"label")}),ff(wf(e.calendar),function(t){vf(t,"itemStyle"),xf(t,"dayLabel"),xf(t,"monthLabel"),xf(t,"yearLabel")}),ff(wf(e.radar),function(t){xf(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)}),ff(wf(e.geo),function(t){gf(t)&&(bf(t),ff(wf(t.regions),function(t){bf(t)}))}),ff(wf(e.timeline),function(t){bf(t),vf(t,"label"),vf(t,"itemStyle"),vf(t,"controlStyle",!0);t=t.data;E(t)&&N(t,function(t){H(t)&&(vf(t,"label"),vf(t,"itemStyle"))})}),ff(wf(e.toolbox),function(t){vf(t,"iconStyle"),ff(t.feature,function(t){vf(t,"iconStyle")})}),xf(Sf(e.axisPointer),"label"),xf(Sf(e.tooltip).axisPointer,"label")}function Tf(e){e&&N(Cf,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Cf=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],If=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],kf=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Df(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<kf.length;n++){var i=kf[n][1],r=kf[n][0];null!=e[i]&&(e[r]=e[i])}}function Lf(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function Af(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function Pf(e,t){Mf(e,t),e.series=Go(e.series),N(e.series,function(t){if(H(t)){var e,n=t.type;if("line"===n)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===n||"gauge"===n){if(null!=t.clockWise&&(t.clockwise=t.clockWise),Lf(t.label),(e=t.data)&&!yt(e))for(var i=0;i<e.length;i++)Lf(e[i]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)&&(t.emphasis.scaleSize=t.hoverOffset)}else if("gauge"===n){var 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(Df(t),Df(t.backgroundStyle),Df(t.emphasis),(e=t.data)&&!yt(e))for(i=0;i<e.length;i++)"object"==typeof e[i]&&(Df(e[i]),Df(e[i]&&e[i].emphasis))}else"sunburst"===n?((a=t.highlightPolicy)&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=a)),Af(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,Af)):"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)&&rt(t,t.mapLocation);null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis)&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation),Tf(t)}}),e.dataRange&&(e.visualMap=e.dataRange),N(If,function(t){t=e[t];t&&N(t=E(t)?t:[t],function(t){Tf(t)})})}var Of,Rf,Nf=function(t){this.data=t.data||(t.sourceFormat===Ed?{}:[]),this.sourceFormat=t.sourceFormat||Fd,this.seriesLayoutBy=t.seriesLayoutBy||Hd,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&&Yd(this,n)===Gd.Must&&(i.type="ordinal")}};function zf(t){return t instanceof Nf}function Bf(t,e,n){n=n||Vf(t);var i=e.seriesLayoutBy,r=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Ff(r),startIndex:a,dimensionsDetectedCount:o};{var s;e===zd?(s=t,"auto"===i||null==i?Hf(function(t){null!=t&&"-"!==t&&(V(t)?null==a&&(a=1):a=0)},n,s,10):a=F(i)?i:i?1:0,r||1!==a||(r=[],Hf(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===Wd?s.length:s[0]?s[0].length:null):e===Bd?r=r||function(t){var e,n=0;for(;n<t.length&&!(e=t[n++]););if(e)return pt(e)}(t):e===Ed?r||(r=[],N(t,function(t,e){r.push(e)})):e===Nd&&(i=Xo(t[0]),o=E(i)&&i.length||1)}return{startIndex:a,dimensionsDefine:Ff(r),dimensionsDetectedCount:o}}(t,n,i,e.sourceHeader,e.dimensions);return new Nf({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:v(e)})}function Ef(t){return new Nf({data:t,sourceFormat:yt(t)?Vd:Nd})}function Vf(t){var e=Fd;if(yt(t))e=Vd;else if(E(t)){0===t.length&&(e=zd);for(var n=0,i=t.length;n<i;n++){var r=t[n];if(null!=r){if(E(r)||yt(r)){e=zd;break}if(H(r)){e=Bd;break}}}}else if(H(t))for(var o in t)if(Vt(t,o)&&lt(t[o])){e=Ed;break}return e}function Ff(t){var i;if(t)return i=O(),B(t,function(t,e){var n,t={name:(t=H(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 Hf(t,e,n,i){if(e===Wd)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 Wf(t){t=t.sourceFormat;return t===Bd||t===Ed}Yf.prototype.getSource=function(){return this._source},Yf.prototype.count=function(){return 0},Yf.prototype.getItem=function(t,e){},Yf.prototype.appendData=function(t){},Yf.prototype.clean=function(){},Yf.protoInitialize=((np=Yf.prototype).pure=!1,void(np.persistent=!0)),Yf.internalField=(Rf=function(t,e,n){var i,r=n.sourceFormat,o=n.seriesLayoutBy,a=n.startIndex,n=n.dimensionsDefine;P(t,Of[rg(r,o)]),r===Vd?(t.getItem=Gf,t.count=Uf,t.fillStorage=Zf):(i=$f(r,o),t.getItem=y(i,null,e,a,n),i=tg(r,o),t.count=y(i,null,e,a,n))},Gf=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},Zf=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}},Uf=function(){return this._data?this._data.length/this._dimSize:0},(np={})[zd+"_"+Hd]={pure:!0,appendData:qf},np[zd+"_"+Wd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},np[Bd]={pure:!0,appendData:qf},np[Ed]={pure:!0,appendData:function(t){var r=this._data;N(t,function(t,e){for(var n=r[e]||(r[e]=[]),i=0;i<(t||[]).length;i++)n.push(t[i])})}},np[Nd]={appendData:qf},np[Vd]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},void(Of=np));var Gf,Zf,Uf,Xf=Yf;function Yf(t,e){var t=zf(t)?t:Ef(t),n=(this._source=t,this._data=t.data),i=t.sourceFormat;t.seriesLayoutBy,i===Vd&&(this._offset=0,this._dimSize=e,this._data=n),Rf(this,n,t)}function qf(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}function jf(t,e,n,i){return t[i]}(kp={})[zd+"_"+Hd]=function(t,e,n,i){return t[i+e]},kp[zd+"_"+Wd]=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},kp[Bd]=jf,kp[Ed]=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},kp[Nd]=jf;var Kf=kp;function $f(t,e){return Kf[rg(t,e)]}function Qf(t,e,n){return t.length}(Qc={})[zd+"_"+Hd]=function(t,e,n){return Math.max(0,t.length-e)},Qc[zd+"_"+Wd]=function(t,e,n){t=t[0];return t?Math.max(0,t.length-e):0},Qc[Bd]=Qf,Qc[Ed]=function(t,e,n){n=n[0].name,t=null!=n?t[n]:null;return t?t.length:0},Qc[Nd]=Qf;var Jf=Qc;function tg(t,e){return Jf[rg(t,e)]}function eg(t,e,n){return t[e]}(ba={})[zd]=eg,ba[Bd]=function(t,e,n){return t[n]},ba[Ed]=eg,ba[Nd]=function(t,e,n){t=Xo(t);return t instanceof Array?t[e]:t},ba[Vd]=eg;var ng=ba;function ig(t){return ng[t]}function rg(t,e){return t===zd?t+"_"+e:t}function og(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),ig(i)(e,t,n)):(r=e,i===Nd?Xo(e):r)}}var ag=/\{@(.+?)\}/g,ap=(sg.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"]}},sg.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&&E(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)):V(r)?ed(r,e).replace(ag,function(t,e){var n=e.length,n=("["===e.charAt(0)&&"]"===e.charAt(n-1)&&(e=+e.slice(1,n-1)),og(a,i,e));return null!=(n=o&&E(o.interpolatedValue)&&0<=(e=a.getDimensionIndex(e))?o.interpolatedValue[e]:n)?n+"":""}):void 0},sg.prototype.getRawValue=function(t,e){return og(this.getData(e),t)},sg.prototype.formatTooltip=function(t,e,n){},sg);function sg(){}function lg(t){return new ug(t)}hg.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(E(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()},hg.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},hg.prototype._doProgress=function(t,e,n,i,r){mg.reset(e,n,i,r),this._callingProgress=t,this._callingProgress({start:e,end:n,count:n-e,next:mg.next},this.context)},hg.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),E(e))&&!e.length&&(e=null),this._progress=e,this._modBy=this._modDataCount=null;var e,n,t=this._downstream;return t&&t.dirty(),n},hg.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},hg.prototype.pipe=function(t){this._downstream===t&&!this._dirty||((this._downstream=t)._upstream=this,t.dirty())},hg.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},hg.prototype.getUpstream=function(){return this._upstream},hg.prototype.getDownstream=function(){return this._downstream},hg.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t};var ug=hg;function hg(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}var cg,pg,dg,fg,gg,yg,mg=yg={reset:function(t,e,n,i){pg=t,cg=e,dg=n,fg=i,gg=Math.ceil(fg/dg),yg.next=1<dg&&0<fg?_g:vg}};function vg(){return pg<cg?pg++:null}function _g(){var t=pg%gg*dg+Math.ceil(pg/gg),t=cg<=pg?null:t<fg?t:pg;return pg++,t}function xg(t,e){e=e&&e.type;return"ordinal"===e?t:null==(t="time"!==e||F(t)||null==t||"-"===t?t:+Ro(t))||""===t?NaN:Number(t)}var bg=O({number:function(t){return parseFloat(t)},time:function(t){return+Ro(t)},trim:function(t){return V(t)?It(t):t}});function wg(t){return bg.get(t)}var Sg={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}},Mg=(Tg.prototype.evaluate=function(t){return F(t)?this._opFn(t,this._rvalFloat):this._opFn(Eo(t),this._rvalFloat)},Tg);function Tg(t,e){F(e)||f(""),this._opFn=Sg[t],this._rvalFloat=Eo(e)}Ig.prototype.evaluate=function(t,e){var n=F(t)?t:Eo(t),i=F(e)?e:Eo(e),r=isNaN(n),o=isNaN(i);return r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o&&(r=V(t),o=V(e),r&&(n=o?t:0),o)&&(i=r?e:0),n<i?this._resultLT:i<n?-this._resultLT:0};var Cg=Ig;function Ig(t,e){t="desc"===t;this._resultLT=t?1:-1,this._incomparable="min"===(e=null==e?t?"min":"max":e)?-1/0:1/0}Dg.prototype.evaluate=function(t){var e,n=t===this._rval;return n||(e=typeof t)===this._rvalTypeof||"number"!=e&&"number"!==this._rvalTypeof||(n=Eo(t)===this._rvalFloat),this._isEQ?n:!n};var kg=Dg;function Dg(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Eo(e)}Ag.prototype.getRawData=function(){throw new Error("not supported")},Ag.prototype.getRawDataItem=function(t){throw new Error("not supported")},Ag.prototype.cloneRawData=function(){},Ag.prototype.getDimensionInfo=function(t){},Ag.prototype.cloneAllDimensionInfo=function(){},Ag.prototype.count=function(){},Ag.prototype.retrieveValue=function(t,e){},Ag.prototype.retrieveValueFromItem=function(t,e){},Ag.prototype.convertValue=xg;var Lg=Ag;function Ag(){}function Pg(t){return Eg(t.sourceFormat)||f(""),t.data}function Og(t){var e=t.sourceFormat,n=t.data;if(Eg(e)||f(""),e===zd){for(var i=[],r=0,o=n.length;r<o;r++)i.push(n[r].slice());return i}if(e===Bd){for(i=[],r=0,o=n.length;r<o;r++)i.push(P({},n[r]));return i}}function Rg(t,e,n){if(null!=n)return F(n)||!isNaN(n)&&!Vt(e,n)?t[n]:Vt(e,n)?e[n]:void 0}function Ng(t){return v(t)}var zg=O();function Bg(t,e){var n=Go(t),t=n.length;t||f("");for(var i=0,r=t;i<r;i++)e=function(t,i){i.length||f("");H(t)||f("");var e=t.type,d=zg.get(e);d||f("");e=B(i,function(t){var e=t,t=d,n=new Lg,i=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex,a=(e.seriesLayoutBy!==Hd&&f(""),[]),s={};if(h=e.dimensionsDefine)N(h,function(t,e){var n=t.name,e={index:e,name:n,displayName:t.displayName};a.push(e),null!=n&&(Vt(s,n)&&f(""),s[n]=e)});else for(var l=0;l<e.dimensionsDetectedCount;l++)a.push({index:l});var u=$f(r,Hd),h=(t.__isBuiltIn&&(n.getRawDataItem=function(t){return u(i,o,a,t)},n.getRawData=y(Pg,null,e)),n.cloneRawData=y(Og,null,e),tg(r,Hd)),c=(n.count=y(h,null,i,o,a),ig(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=y(Rg,null,a,s),n.cloneAllDimensionInfo=y(Ng,null,a),n});return B(Go(d.transform({upstream:e[0],upstreamList:e,config:v(t.config)})),function(t,e){H(t)||f(""),t.data||f("");Eg(Vf(t.data))||f("");var n=i[0],e=n&&0===e&&!t.dimensions?((e=n.startIndex)&&(t.data=n.data.slice(0,e).concat(t.data)),{seriesLayoutBy:Hd,sourceHeader:e,dimensions:n.metaRawOption.dimensions}):{seriesLayoutBy:Hd,sourceHeader:0,dimensions:t.dimensions};return Bf(t.data,e,null)})}(n[i],e),i!==r-1&&(e.length=Math.max(e.length,1));return e}function Eg(t){return t===zd||t===Bd}var Vg,np="undefined",Fg=typeof Uint32Array==np?Array:Uint32Array,Hg=typeof Uint16Array==np?Array:Uint16Array,Wg=typeof Int32Array==np?Array:Int32Array,kp=typeof Float64Array==np?Array:Float64Array,Gg={float:kp,int:Wg,ordinal:Array,number:Array,time:kp};function Zg(t){return 65535<t?Fg:Hg}function Ug(){return[1/0,-1/0]}function Xg(t,e,n,i,r){n=Gg[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=Vg[i.sourceFormat];this._dimValueGetter=n||r,this._rawExtent=[],Wf(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 Gg[e||"float"](this._rawCount),this._rawExtent[r]=Ug(),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]=Ug()),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++)Xg(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=Vg.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]=Ug()),Xg(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=Zg(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(Zg(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=pt(t),r=i.length;if(!r)return this;var o=e.count(),a=new(Zg(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]]=Ug();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(Zg(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(Zg(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]=Ug(),c=new(Zg(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=Ug();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&&ut(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=v(this._extent),t._rawExtent=v(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(Vg={arrayRows:qg,objectRows:function(t,e,n,i){return xg(t[e],this._dimensions[i])},keyedColumns:qg,original:function(t,e,n,i){t=t&&(null==t.value?t:t.value);return xg(t instanceof Array?t[i]:t,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}});var Yg=l;function l(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=O()}function qg(t,e,n,i){return xg(t[i],this._dimensions[i])}Kg.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},Kg.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,9e10<this._versionSignBase&&(this._versionSignBase=0)},Kg.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},Kg.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},Kg.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n,i,r,o,a,s=this._sourceHost,l=this._getUpstreamSourceManagers(),u=!!l.length;Qg(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=yt(o=i.get("data",!0))?Vd:Nd,[]),i=this._getSourceMetaRawOption()||{},r=r&&r.metaRawOption||{},a=W(i.seriesLayoutBy,r.seriesLayoutBy)||null,n=W(i.sourceHeader,r.sourceHeader),i=W(i.dimensions,r.dimensions),r=a!==r.seriesLayoutBy||!!n!=!!r.sourceHeader||i?[Bf(o,{seriesLayoutBy:a,sourceHeader:n,dimensions:i},t)]:[]):(o=s,e=u?(r=(a=this._applyTransform(l)).sourceList,a.upstreamSignList):(r=[Bf(o.get("source",!0),this._getSourceMetaRawOption(),null)],[])),this._setLocalSource(r,e)},Kg.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&&Jg(""),[]),a=[];return N(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||Jg(""),o.push(e),a.push(t._getVersionSign())}),i?e=Bg(i,o,n.componentIndex):null!=r&&(e=[new Nf({data:(t=o[0]).data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:v(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})]),{sourceList:e,upstreamSignList:a}},Kg.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}},Kg.prototype.getSource=function(t){var e=this._sourceList[t=t||0];return e||(e=this._getUpstreamSourceManagers())[0]&&e[0].getSource(t)},Kg.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},Kg.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],Qg(this._sourceHost)&&i?r=i._innerGetDataStore(t,e,n):(r=new Yg).initData(new Xf(e,t.length),t),o[n]=r),r},Kg.prototype._getUpstreamSourceManagers=function(){var t,e=this._sourceHost;return Qg(e)?(t=Xd(e))?[t.getSourceManager()]:[]:B((t=e).get("transform",!0)||t.get("fromTransformResult",!0)?sa(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},oa).models:[],function(t){return t.getSourceManager()})},Kg.prototype._getSourceMetaRawOption=function(){var t,e,n,i=this._sourceHost;return Qg(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 jg=Kg;function Kg(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}function $g(t){t.option.transform&&Dt(t.option.transform)}function Qg(t){return"series"===t.mainType}function Jg(t){throw new Error(t)}function ty(t,e){return e.type=t,e}function ey(t,e){var n,e=t.getData().getItemVisual(e,"style")[t.visualDrawType];return n=n||"transparent",V(t=e)?t:H(t)&&t.colorStops&&(t.colorStops[0]||{}).color||n}function ny(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=E(m),_=ey(p,d);function x(t,e){e=s.getDimensionInfo(e);e&&!1!==e.otherDims.tooltip&&(l?c.push(ty("nameValue",{markerType:"subItem",markerColor:a,name:e.displayName,value:t,valueType:e.type})):(u.push(t),h.push(e.type)))}1<y||v&&!y?(i=m,r=d,o=g,a=_,s=p.getData(),l=ut(i,function(t,e,n){n=s.getDimensionInfo(n);return t||n&&!1!==n.tooltip&&null!=n.displayName},!1),u=[],h=[],c=[],o.length?N(o,function(t){x(og(s,r,t),t)}):N(i,x),i=(o={inlineValues:u,inlineValueTypes:h,blocks:c}).inlineValueTypes,e=o.blocks,n=(o=o.inlineValues)[0]):y?(y=f.getDimensionInfo(g[0]),n=o=og(f,d,g[0]),i=y.type):n=o=v?m[0]:m;g=$o(p),y=g&&p.name||"",v=f.getName(d),m=t?y:v;return ty("section",{header:y,noHeader:t||!g,sortParam:n,blocks:[ty("nameValue",{markerType:"item",markerColor:_,name:m,noName:!It(m),value:o,valueType:i,dataIndex:d})].concat(e||[])})}var iy=ea();function ry(t,e){return t.getName(e)||t.getId(e)}u(h,oy=Id),h.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=lg({count:ly,reset:uy}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n);(iy(this).sourceManager=new jg(this)).prepareSource();t=this.getInitialData(t,n);cy(t,this),this.dataTask.context.data=t,iy(this).dataBeforeProcessed=t,sy(this),this._initSelectedMapFromData(t)},h.prototype.mergeDefaultAndTheme=function(t,e){var n=_d(this),i=n?bd(t):{},r=this.subType;Id.hasClass(r),d(t,e.getTheme().get(this.subType)),d(t,this.getDefaultOption()),Zo(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&xd(t,i,n)},h.prototype.mergeOption=function(t,e){t=d(this.option,t,!0),this.fillDataTextStyle(t.data);var n=_d(this),n=(n&&xd(this.option,t,n),iy(this).sourceManager),n=(n.dirty(),n.prepareSource(),this.getInitialData(t,e));cy(n,this),this.dataTask.dirty(),this.dataTask.context.data=n,iy(this).dataBeforeProcessed=n,sy(this),this._initSelectedMapFromData(n)},h.prototype.fillDataTextStyle=function(t){if(t&&!yt(t))for(var e=["show"],n=0;n<t.length;n++)t[n]&&t[n].label&&Zo(t[n],"label",e)},h.prototype.getInitialData=function(t,e){},h.prototype.appendData=function(t){this.getRawData().appendData(t.data)},h.prototype.getData=function(t){var e=dy(this);return e?(e=e.context.data,null!=t&&e.getLinkedData?e.getLinkedData(t):e):iy(this).data},h.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},h.prototype.setData=function(t){var e,n=dy(this);n&&((e=n.context).outputData=t,n!==this.dataTask)&&(e.data=t),iy(this).data=t},h.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return O(t)},h.prototype.getSourceManager=function(){return iy(this).sourceManager},h.prototype.getSource=function(){return this.getSourceManager().getSource()},h.prototype.getRawData=function(){return iy(this).dataBeforeProcessed},h.prototype.getColorBy=function(){return this.get("colorBy")||"series"},h.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},h.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},h.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):[]},h.prototype.formatTooltip=function(t,e,n){return ny({series:this,dataIndex:t,multipleSeries:e})},h.prototype.isAnimationEnabled=function(){var t=this.ecModel;return!!(!p.node||t&&t.ssr)&&!!(t=(t=this.getShallow("animation"))&&this.getData().count()>this.getShallow("animationThreshold")?!1:t)},h.prototype.restoreData=function(){this.dataTask.dirty()},h.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel;return Jd.prototype.getColorFromPalette.call(this,t,e,n)||i.getColorFromPalette(t,e,n)},h.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},h.prototype.getProgressive=function(){return this.get("progressive")},h.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},h.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},h.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=ry(r,t[o]);n[a]=!1,this._selectedDataIndicesMap[a]=-1}}},h.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)},h.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=pt(t),n=[],i=0;i<e.length;i++){var r=t[e[i]];0<=r&&n.push(r)}return n},h.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return!!n&&(e=this.getData(e),"all"===n||n[ry(e,t)])&&!e.getItemModel(t).get(["select","disabled"])},h.prototype.isUniversalTransitionEnabled=function(){var t;return!!this.__universalTransitionEnabled||!!(t=this.option.universalTransition)&&(!0===t||t&&t.enabled)},h.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){H(n.selectedMap)||(n.selectedMap={});for(var o=n.selectedMap,a=0;a<r;a++){var s,l=e[a];o[s=ry(t,l)]=!0,this._selectedDataIndicesMap[s]=t.getRawIndex(l)}}else"single"!==i&&!0!==i||(s=ry(t,i=e[r-1]),n.selectedMap=((n={})[s]=!0,n),this._selectedDataIndicesMap=((n={})[s]=t.getRawIndex(i),n))},h.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))},h.registerClass=function(t){return Id.registerClass(t)},h.protoInitialize=((Qc=h.prototype).type="series.__base__",Qc.seriesIndex=0,Qc.ignoreStyleOnData=!1,Qc.hasSymbolVisual=!1,Qc.defaultSymbol="circle",Qc.visualStyleAccessPath="itemStyle",void(Qc.visualDrawType="fill"));var oy,ay=h;function h(){var t=null!==oy&&oy.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}function sy(t){var e,n,i=t.name;$o(t)||(t.name=(t=(e=(t=t).getRawData()).mapDimensionsAll("seriesName"),n=[],N(t,function(t){t=e.getDimensionInfo(t);t.displayName&&n.push(t.displayName)}),n.join(" ")||i))}function ly(t){return t.model.getRawData().count()}function uy(t){t=t.model;return t.setData(t.getRawData().cloneShallow()),hy}function hy(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function cy(e,n){N(zt(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(t){e.wrapMethod(t,dt(py,n))})}function py(t,e){t=dy(t);return t&&t.setOutputEnd((e||this).count()),e}function dy(t){var e,n=(t.ecModel||{}).scheduler,n=n&&n.getPipeline(t.uid);if(n)return(n=n.currentTask)&&(e=n.agentStubMap)?e.get(t.uid):n}st(ay,ap),st(ay,Jd),fa(ay,Id);gy.prototype.init=function(t,e){},gy.prototype.render=function(t,e,n,i){},gy.prototype.dispose=function(t,e){},gy.prototype.updateView=function(t,e,n,i){},gy.prototype.updateLayout=function(t,e,n,i){},gy.prototype.updateVisual=function(t,e,n,i){},gy.prototype.toggleBlurSeries=function(t,e,n){},gy.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)};var fy=gy;function gy(){this.group=new so,this.uid=pp("viewComponent")}da(fy),va(fy);var yy,my=ea(),vy=(yy=ea(),function(t){var e=yy(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"}),_y=(xy.prototype.init=function(t,e){},xy.prototype.render=function(t,e,n,i){},xy.prototype.highlight=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&wy(t,i,"emphasis")},xy.prototype.downplay=function(t,e,n,i){t=t.getData(i&&i.dataType);t&&wy(t,i,"normal")},xy.prototype.remove=function(t,e){this.group.removeAll()},xy.prototype.dispose=function(t,e){},xy.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},xy.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},xy.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},xy.prototype.eachRendered=function(t){Dc(this.group,t)},xy.markUpdateMethod=function(t,e){my(t).updateMethod=e},xy.protoInitialize=void(xy.prototype.type="chart"),xy);function xy(){this.group=new so,this.uid=pp("viewChart"),this.renderTask=lg({plan:Sy,reset:My}),this.renderTask.context={view:this}}function by(t,e,n){t&&fu(t)&&("emphasis"===e?tu:eu)(t,n)}function wy(e,t,n){var i,r=ta(e,t),o=t&&null!=t.highlightKey?(t=t.highlightKey,i=null==(i=Tl[t])&&Ml<=32?Tl[t]=Ml++:i):null;null!=r?N(Go(r),function(t){by(e.getItemGraphicEl(t),n,o)}):e.eachItemGraphicEl(function(t){by(t,n,o)})}function Sy(t){return vy(t.model)}function My(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,t=t.view,a=r&&my(r).updateMethod,o=o?"incrementalPrepareRender":a&&t[a]?a:"render";return"render"!==o&&t[o](e,n,i,r),Ty[o]}da(_y),va(_y);var Ty={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)}}},Cy="\0__throttleOriginMethod",Iy="\0__throttleRate",ky="\0__throttleType";function Dy(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 Ly(t,e,n,i){var r=t[e];if(r){var o=r[Cy]||r,a=r[ky];if(r[Iy]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=Dy(o,n,"debounce"===i))[Cy]=o,r[ky]=i,r[Iy]=n}}}var Ay=ea(),Py={itemStyle:_a(rp,!0),lineStyle:_a(tp,!0)},Oy={lineStyle:"stroke",itemStyle:"fill"};function Ry(t,e){t=t.visualStyleMapper||Py[e];return t||(console.warn("Unknown style type '"+e+"'."),Py.itemStyle)}function Ny(t,e){t=t.visualDrawType||Oy[e];return t||(console.warn("Unknown style type '"+e+"'."),"fill")}var ba={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),n=r.visualStyleAccessPath||"itemStyle",i=r.getModel(n),o=Ry(r,n)(i),i=i.getShallow("decal"),a=(i&&(e.setVisual("decal",i),i.dirty=!0),Ny(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)}}}},zy=new up,np={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=Ry(t,i),o=e.getVisual("drawType"),{dataEach:e.hasItemOption?function(t,e){var n=t.getRawDataItem(e);n&&n[i]&&(zy.option=n[i],n=r(zy),P(t.ensureUniqueItemVisual(e,"style"),n),zy.option.decal&&(t.setItemVisual(e,"decal",zy.option.decal),zy.option.decal.dirty=!0),o in n)&&t.setItemVisual(e,"colorFromPalette",!1)}:null}}},kp={performRawSeries:!0,overallReset:function(e){var i=O();e.eachSeries(function(t){var e,n=t.getColorBy();t.isColorBySeries()||(n=t.type+"-"+n,(e=i.get(n))||i.set(n,e={}),Ay(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=Ay(i).scope,t=i.visualStyleAccessPath||"itemStyle",l=Ny(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))}))})}},By=Math.PI;Vy.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){t=t.overallTask;t&&t.dirty()})},Vy.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}},Vy.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},Vy.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}},Vy.prototype.restorePipelines=function(t){var i=this,r=i._pipelineMap=O();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)})},Vy.prototype.prepareStageTasks=function(){var n=this._stageTaskMap,i=this.api.getModel(),r=this.api;N(this._allHandlers,function(t){var e=n.get(t.uid)||n.set(t.uid,{});Ct(!(t.reset&&t.overallReset),""),t.reset&&this._createSeriesStageTask(t,e,i,r),t.overallReset&&this._createOverallStageTask(t,e,i,r)},this)},Vy.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)},Vy.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},Vy.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},Vy.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))}N(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},Vy.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},Vy.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())})},Vy.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},Vy.prototype._createSeriesStageTask=function(n,t,i,r){var o=this,a=t.seriesTaskMap,s=t.seriesTaskMap=O(),t=n.seriesType,e=n.getTargetSeries;function l(t){var e=t.uid,e=s.set(e,a&&a.get(e)||lg({plan:Zy,reset:Uy,count:qy}));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)},Vy.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||lg({reset:Fy}),a=(o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r},o.agentStubMap),s=o.agentStubMap=O(),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,lg({reset:Hy,onDirty:Gy})));e.context={model:t,overallProgress:u},e.agent=o,e.__block=u,r._pipe(t,e)}Ct(!t.createOnAllSeries,""),e?n.eachRawSeriesByType(e,c):l?l(n,i).each(c):(u=!1,N(n.getSeries(),c)),h&&o.dirty()},Vy.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},Vy.wrapStageHandler=function(t,e){return(t=z(t)?{overallReset:t,seriesType:function(t){jy=null;try{t(Ky,$y)}catch(t){}return jy}(t)}:t).uid=pp("stageHandler"),e&&(t.visualType=e),t};var Ey=Vy;function Vy(t,e,n,i){this._stageTaskMap=O(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}function Fy(t){t.overallReset(t.ecModel,t.api,t.payload)}function Hy(t){return t.overallProgress&&Wy}function Wy(){this.agent.dirty(),this.getDownstream().dirty()}function Gy(){this.agent&&this.agent.dirty()}function Zy(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Uy(t){t.useClearVisual&&t.data.clearAllVisual();t=t.resetDefines=Go(t.reset(t.model,t.ecModel,t.api,t.payload));return 1<t.length?B(t,function(t,e){return Yy(e)}):Xy}var Xy=Yy(0);function Yy(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 qy(t){return t.data.count()}var jy,Ky={},$y={};function Qy(t,e){for(var n in e.prototype)t[n]=Ft}Qy(Ky,of),Qy($y,uf),Ky.eachSeriesByType=Ky.eachRawSeriesByType=function(t){jy=t},Ky.eachComponent=function(t){"series"===t.mainType&&t.subType&&(jy=t.subType)};function Jy(){return{axisLine:{lineStyle:{color:c.axisLine}},splitLine:{lineStyle:{color:c.axisSplitLine}},splitArea:{areaStyle:{color:[c.backgroundTint,c.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:c.axisMinorSplitLine}},axisLabel:{color:c.axisLabel},axisName:{}}}var c=g.darkColor,Qc=c.background,ap={label:{color:c.secondary},itemStyle:{borderColor:c.borderTint},dividerLineStyle:{color:c.border}},tp={darkMode:!0,color:c.theme,backgroundColor:Qc,axisPointer:{lineStyle:{color:c.border},crossStyle:{color:c.borderShade},label:{color:c.tertiary}},legend:{textStyle:{color:c.secondary},pageTextStyle:{color:c.tertiary}},textStyle:{color:c.secondary},title:{textStyle:{color:c.primary},subtextStyle:{color:c.quaternary}},toolbox:{iconStyle:{borderColor:c.accent50}},tooltip:{backgroundColor:c.neutral20,defaultBorderColor:c.border,textStyle:{color:c.tertiary}},dataZoom:{borderColor:c.accent10,textStyle:{color:c.tertiary},brushStyle:{color:c.backgroundTint},handleStyle:{color:c.neutral00,borderColor:c.accent20},moveHandleStyle:{color:c.accent40},emphasis:{handleStyle:{borderColor:c.accent50}},dataBackground:{lineStyle:{color:c.accent30},areaStyle:{color:c.accent20}},selectedDataBackground:{lineStyle:{color:c.accent50},areaStyle:{color:c.accent30}}},visualMap:{textStyle:{color:c.secondary},handleStyle:{borderColor:c.neutral30}},timeline:{lineStyle:{color:c.accent10},label:{color:c.tertiary},controlStyle:{color:c.accent30,borderColor:c.accent30}},calendar:{itemStyle:{color:c.neutral00,borderColor:c.neutral20},dayLabel:{color:c.tertiary},monthLabel:{color:c.secondary},yearLabel:{color:c.secondary}},matrix:{x:ap,y:ap,backgroundColor:{borderColor:c.axisLine},body:{itemStyle:{borderColor:c.borderTint}}},timeAxis:Jy(),logAxis:Jy(),valueAxis:Jy(),categoryAxis:Jy(),line:{symbol:"circle"},graph:{color:c.theme},gauge:{title:{color:c.secondary},axisLine:{lineStyle:{color:[[1,c.neutral05]]}},axisLabel:{color:c.axisLabel},detail:{color:c.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:c.background}},radar:((rp=Jy()).axisName={color:c.axisLabel},rp.axisLine.lineStyle.color=c.neutral20,rp),treemap:{breadcrumb:{itemStyle:{color:c.neutral20,textStyle:{color:c.secondary}},emphasis:{itemStyle:{color:c.neutral30}}}},sunburst:{itemStyle:{borderColor:c.background}},map:{itemStyle:{borderColor:c.border,areaColor:c.neutral10},label:{color:c.tertiary},emphasis:{label:{color:c.primary},itemStyle:{areaColor:c.highlight}},select:{label:{color:c.primary},itemStyle:{areaColor:c.highlight}}},geo:{itemStyle:{borderColor:c.border,areaColor:c.neutral10},emphasis:{label:{color:c.primary},itemStyle:{areaColor:c.highlight}},select:{label:{color:c.primary},itemStyle:{color:c.highlight}}}},t0=(tp.categoryAxis.splitLine.show=!1,e0.prototype.normalizeQuery=function(t){var e,a,s,l={},u={},h={};return V(t)?(e=pa(t),l.mainType=e.main||null,l.subType=e.sub||null):(a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1},N(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}},e0.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]}},e0.prototype.afterTrigger=function(){this.eventInfo=null},e0);function e0(){}var n0=["symbol","symbolSize","symbolRotate","symbolOffset"],i0=n0.concat(["symbolKeepAspect"]),Qc={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<n0.length;r++){var o=n0[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=pt(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}}}},ap={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<i0.length;i++){var r=i0[i],o=n.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}};function r0(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=ta(e=t.getData(),l.fromActionPayload),s.trigger(u,{type:u,seriesId:t.id,name:E(n)?e.getName(n[0]):e.getName(n),selected:V(r)?r:P({},r)}))})}function o0(t,e,n){for(var i;t&&(!e(t)||(i=t,!n));)t=t.__hostTarget||t.parent;return i}var a0=Math.round(9*Math.random()),s0="function"==typeof Object.defineProperty,rp=(l0.prototype.get=function(t){return this._guard(t)[this._id]},l0.prototype.set=function(t,e){t=this._guard(t);return s0?Object.defineProperty(t,this._id,{value:e,enumerable:!1,configurable:!0}):t[this._id]=e,this},l0.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},l0.prototype.has=function(t){return!!this._guard(t)[this._id]},l0.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},l0);function l0(){this._id="__ec_inner_"+a0++}var u0=Gs.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()}}),h0=Gs.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()}}),c0=Gs.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()}}),p0=Gs.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()}}),d0={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}},f0={},g0=(N({line:Sh,rect:ol,roundRect:ol,square:ol,circle:Eu,diamond:h0,pin:c0,arrow:p0,triangle:u0},function(t,e){f0[e]=new t}),Gs.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var t=Yr(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=f0[r])||f0[r="rect"],d0[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n))}}));function y0(t,e){var n;"image"!==this.type&&(n=this.style,this.__isEmptyBrush?(n.stroke=t,n.fill=e||g.color.neutral00,n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw())}function m0(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://")?yc(t.slice(8),new U(e,n,i,r),a?"center":"cover"):0===t.indexOf("path://")?gc(t.slice(7),{},new U(e,n,i,r),a?"center":"cover"):new g0({shape:{symbolType:t,x:e,y:n,width:i,height:r}})).__isEmptyBrush=s,a.setColor=y0,o&&a.setColor(o),a}function v0(t){return[(t=E(t)?t:[+t,+t])[0]||0,t[1]||0]}function _0(t,e){if(null!=t)return E(t)||(t=[t,t]),[Mo(t[0],e[0])||0,Mo(W(t[1],t[0]),e[1])||0]}function x0(t){return isFinite(t)}function b0(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=x0(u)?u:.5,h=x0(h)?h:.5,c=0<=c&&x0(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=x0(o)?o:0,l=x0(l)?l:1,i=x0(i)?i:0,u=x0(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 w0(t){return parseInt(t,10)}function S0(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]||w0(n[i])||w0(t.style[i]))-(w0(n[o])||0)-(w0(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]:F(r)?[r]:E(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 T0=new Ts(!0);function C0(t){var e=t.stroke;return!(null==e||"none"===e||!(0<t.lineWidth))}function I0(t){return"string"==typeof t&&"none"!==t}function k0(t){t=t.fill;return null!=t&&"none"!==t}function D0(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 L0(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 A0(t,e,n){var n=Ma(e.image,e.__image,n);if(Ca(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)*Ht),n.scaleSelf(e.scaleX||1,e.scaleY||1),t.setTransform(n)),t}var P0=["shadowBlur","shadowOffsetX","shadowOffsetY"],O0=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function R0(t,e,n,i,r){var o,a=!1;if(!i&&e===(n=n||{}))return!1;!i&&e.opacity===n.opacity||(H0(t,r),a=!0,o=Math.max(Math.min(e.opacity,1),0),t.globalAlpha=isNaN(o)?Xa.opacity:o),!i&&e.blend===n.blend||(a||(H0(t,r),a=!0),t.globalCompositeOperation=e.blend||Xa.blend);for(var s=0;s<P0.length;s++){var l=P0[s];!i&&e[l]===n[l]||(a||(H0(t,r),a=!0),t[l]=t.dpr*(e[l]||0))}return!i&&e.shadowColor===n.shadowColor||(a||(H0(t,r),a=!0),t.shadowColor=e.shadowColor||Xa.shadowColor),a}function N0(t,e,n,i,r){var o=W0(e,r.inHover),a=i?null:n&&W0(n,r.inHover)||{};if(o!==a){var s=R0(t,o,a,i,r);(i||o.fill!==a.fill)&&(s||(H0(t,r),s=!0),I0(o.fill))&&(t.fillStyle=o.fill),(i||o.stroke!==a.stroke)&&(s||(H0(t,r),s=!0),I0(o.stroke))&&(t.strokeStyle=o.stroke),!i&&o.opacity===a.opacity||(s||(H0(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||(H0(t,r),s=!0),t.lineWidth=n);for(var l=0;l<O0.length;l++){var u=O0[l],h=u[0];!i&&o[h]===a[h]||(s||(H0(t,r),s=!0),t[h]=o[h]||u[1])}}}function z0(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 B0=1,E0=2,V0=3,F0=4;function H0(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function W0(t,e){return e&&t.__hoverStyle||t.style}function G0(t,e){Z0(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Z0(t,e,n,z){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&&(H0(t,n),t.restore(),s=a=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),r&&r.length){H0(t,n),t.save();for(var B=r,l=t,o=n,E=!1,V=0;V<B.length;V++){var F=B[V],E=E||F.isZeroArea();z0(l,F),l.beginPath(),F.buildPath(l,F.shape),l.clip()}o.allClipped=E,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,C,I,k,D,L,o=n.prevEl,A=(o||(s=a=!0),e instanceof Gs&&e.autoBatch&&(r=e.style,A=k0(r),u=C0(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)?(H0(t,n),z0(t,e)):A||H0(t,n),W0(e,n.inHover));if(e instanceof Gs)n.lastDrawType!==B0&&(s=!0,n.lastDrawType=B0),N0(t,e,o,s,n),A&&(n.batchFill||n.batchStroke)||t.beginPath(),i=t,r=e,R=A,w=C0(p=a),S=k0(p),M=p.strokePercent,T=M<1,C=!r.path,r.silent&&!T||!C||r.createPathProxy(),I=r.path||T0,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?b0(i,d,D):r.__canvasFillGradient,r.__canvasFillGradient=v),g&&(_=k?b0(i,L,D):r.__canvasStrokeGradient,r.__canvasStrokeGradient=_),y&&(x=k||!r.__canvasFillPattern?A0(i,d,r):r.__canvasFillPattern,r.__canvasFillPattern=x),m&&(b=k||!r.__canvasStrokePattern?A0(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(),I.setScale(D[0],D[1],r.segmentIgnoreThreshold),i.setLineDash&&p.lineDash&&(H=(d=M0(r))[0],O=d[1]),L=!0,(C||k&On)&&(I.setDPR(i.dpr),T?I.setContext(null):(I.setContext(i),L=!1),I.reset(),r.buildPath(I,r.shape,R),I.toStatic(),r.pathUpdated()),L&&I.rebuildPath(i,T?M:1),H&&(i.setLineDash(H),i.lineDashOffset=O),R||(p.strokeFirst?(w&&L0(i,p),S&&D0(i,p)):(S&&D0(i,p),w&&L0(i,p))),H&&i.setLineDash([]),A&&(n.batchFill=a.fill||"",n.batchStroke=a.stroke||"");else if(e instanceof Xs)n.lastDrawType!==V0&&(s=!0,n.lastDrawType=V0),N0(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?(C0(y)&&f.strokeText(x,y.x,y.y),k0(y)&&f.fillText(x,y.x,y.y)):(k0(y)&&f.fillText(x,y.x,y.y),C0(y)&&f.strokeText(x,y.x,y.y)),g)&&f.setLineDash([]);else if(e instanceof $s)n.lastDrawType!==E0&&(s=!0,n.lastDrawType=E0),m=o,b=s,R0(t,W0(e,(D=n).inHover),m&&W0(m,D.inHover),b,D),d=t,C=a,(r=(k=e).__image=Ma(C.image,k.__image,k,k.onload))&&Ca(r)&&(L=C.x||0,I=C.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),C.sWidth&&C.sHeight?(h=C.sx||0,c=C.sy||0,d.drawImage(r,h,c,C.sWidth,C.sHeight,L,I,T,k)):C.sx&&C.sy?(h=C.sx,c=C.sy,d.drawImage(r,h,c,T-h,k-c,L,I,T,k)):d.drawImage(r,L,I,T,k));else if(e.getTemporalDisplayables){n.lastDrawType!==F0&&(s=!0,n.lastDrawType=F0);var P,W,G=t,O=e,R=n,Z=O.getDisplayables(),U=O.getTemporalDisplayables(),X=(G.save(),{prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:R.viewWidth,viewHeight:R.viewHeight,inHover:R.inHover});for(P=O.getCursor(),W=Z.length;P<W;P++)(N=Z[P]).beforeBrush&&N.beforeBrush(),N.innerBeforeBrush(),Z0(G,N,X,P===W-1),N.innerAfterBrush(),N.afterBrush&&N.afterBrush(),X.prevEl=N;for(var N,Y=0,q=U.length;Y<q;Y++)(N=U[Y]).beforeBrush&&N.beforeBrush(),N.innerBeforeBrush(),Z0(G,N,X,Y===q-1),N.innerAfterBrush(),N.afterBrush&&N.afterBrush(),X.prevEl=N;O.clearTemporalDisplayables(),O.notClear=!0,G.restore()}A&&z&&H0(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),(n.prevEl=e).__dirty=0,e.__isRendered=!0}}else e.__dirty&=~Pn,e.__isRendered=!1}var U0=new rp,X0=new gi(100),Y0=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function q0(t,e){if("none"===t)return null;var a=e.getDevicePixelRatio(),s=e.getZr(),l="svg"===s.painter.type,e=(t.dirty&&U0.delete(t),U0.get(t));if(e)return e;for(var n,u=rt(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<Y0.length;++h){var c=u[Y0[h]];if(null!=c&&!E(c)&&!V(c)&&!F(c)&&"boolean"!=typeof c){o=!1;break}r.push(c)}o&&(n=r.join(",")+(l?"-svg":""),v=X0.get(n))&&(l?i.svgElement=v:i.image=v);var p,d=function t(e){if(!e||0===e.length)return[[0,0]];if(F(e))return[[o=Math.ceil(e),o]];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){var o;F(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(F(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(V(e))return[[e]];var n=!0;for(var i=0;i<e.length;++i)if(!V(e[i])){n=!1;break}if(n)return t([e]);var r=[];for(i=0;i<e.length;++i)V(e[i])?r.push([e[i]]):r.push(e[i]);return r}(u.symbol),y=function(t){return B(t,j0)}(d),m=j0(f),v=!l&&G.createCanvas(),_=l&&{tag:"g",attrs:{},key:"dcl",children:[]},x=function(){for(var t=1,e=0,n=y.length;e<n;++e)t=Fo(t,y[e]);for(var i=1,e=0,n=g.length;e<n;++e)i=Fo(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,C=0;S<x.height;){if(M%2==0){for(var I=T/2%g.length,k=0,D=0,L=0;k<2*x.width;){for(var A,P,O,R,N,z=0,w=0;w<d[C].length;++w)z+=d[C][w];if(z<=0)break;D%2==0&&(P=.5*(1-u.symbolSize),A=k+d[C][D]*P,P=S+f[M]*P,O=d[C][D]*u.symbolSize,R=f[M]*u.symbolSize,N=L/2%g[I].length,function(t,e,n,i,r){var o=l?1:a,r=m0(r,t*o,e*o,n*o,i*o,u.color,u.symbolKeepAspect);l?(t=s.painter.renderOneToVNode(r))&&_.children.push(t):G0(p,r)}(A,P,O,R,g[I][N])),k+=d[C][D],++L,++D===d[C].length&&(D=0)}++C===d.length&&(C=0)}S+=f[M],++T,++M===f.length&&(M=0)}return o&&X0.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,U0.set(t,e),t.dirty=!1,e}function j0(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2==1?2*e:e}var K0=new de,$0={};var h0={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}},Q0="__flagInMainProcess",J0="__mainProcessVersion",tm="__pendingUpdate",em="__needsUpdateStatus",nm=/^[a-zA-Z0-9_]+$/,im="__connectUpdateStatus";function rm(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.isDisposed())return am(this,n,t);this.id}}function om(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return am(this,n,t)}}function am(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),de.prototype[e].apply(t,n)}u(um,sm=de);var sm,lm=um;function um(){return null!==sm&&sm.apply(this,arguments)||this}var hm,cm,pm,dm,fm,gm,ym,mm,vm,_m,xm,bm,wm,Sm,Mm,Tm,Cm,Im,km,Dm,c0=lm.prototype,Lm=(c0.on=om("on"),c0.off=om("off"),u(m,Dm=de),m.prototype._onframe=function(){if(!this._disposed){Im(this);var t=this._scheduler;if(this[tm]){var e=this[tm].silent;this[Q0]=!0,km(this);try{hm(this),dm.update.call(this,null,this[tm].updateParams)}catch(t){throw this[Q0]=!1,this[tm]=null,t}this._zr.flush(),this[Q0]=!1,this[tm]=null,mm.call(this,e),vm.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),gm(this,i),t.performVisualTasks(i),Sm(this,this._model,r,"remain",{}),0<(n-=+new Date-o)&&t.unfinished);t.unfinished||this._zr.flush()}}},m.prototype.getDom=function(){return this._dom},m.prototype.getId=function(){return this.id},m.prototype.getZr=function(){return this._zr},m.prototype.isSSR=function(){return this._ssr},m.prototype.setOption=function(t,e,n){if(!this[Q0])if(this._disposed)this.id;else{H(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[Q0]=!0,km(this),this._model&&!e||(e=new pf(this._api),a=this._theme,(s=this._model=new of).scheduler=this._scheduler,s.ssr=this._ssr,s.init(null,null,null,a,this._locale,e)),this._model.setOption(t,{replaceMerge:r},Hm);var i,r,o,a,s={seriesTransition:o,optionChanged:!0};if(n)this[tm]={silent:i,updateParams:s},this[Q0]=!1,this.getZr().wakeUp();else{try{hm(this),dm.update.call(this,null,s)}catch(t){throw this[tm]=null,this[Q0]=!1,t}this._ssr||this._zr.flush(),this[tm]=null,this[Q0]=!1,mm.call(this,i),vm.call(this,i)}}},m.prototype.setTheme=function(t,e){if(!this[Q0])if(this._disposed)this.id;else{var n=this._model;if(n){var e=e&&e.silent,i=null;this[tm]&&(null==e&&(e=this[tm].silent),i=this[tm].updateParams,this[tm]=null),this[Q0]=!0,km(this);try{this._updateTheme(t),n.setTheme(this._theme),hm(this),dm.update.call(this,{type:"setTheme"},i)}catch(t){throw this[Q0]=!1,t}this[Q0]=!1,mm.call(this,e),vm.call(this,e)}}},m.prototype._updateTheme=function(t){(t=V(t)?Gm[t]:t)&&((t=v(t))&&Pf(t,!0),this._theme=t)},m.prototype.getModel=function(){return this._model},m.prototype.getOption=function(){return this._model&&this._model.getOption()},m.prototype.getWidth=function(){return this._zr.getWidth()},m.prototype.getHeight=function(){return this._zr.getHeight()},m.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||p.hasGlobalWindow&&window.devicePixelRatio||1},m.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},m.prototype.renderToCanvas=function(t){return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},m.prototype.renderToSVGString=function(t){return this._zr.painter.renderToString({useViewBox:(t=t||{}).useViewBox})},m.prototype.getSvgDataURL=function(){var t=this._zr;return N(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},m.prototype.getDataURL=function(t){var e,n,i,r;if(!this._disposed)return r=(t=t||{}).excludeComponents,e=this._model,n=[],i=this,N(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")),N(n,function(t){t.group.ignore=!1}),r;this.id},m.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,Xm[o]?(u=l=1/0,c=h=-1/0,p=[],e=i&&i.pixelRatio||this.getDevicePixelRatio(),N(Um,function(t,e){var n;t.group===o&&(n=r?t.getZr().painter.getSvgDom().innerHTML:t.renderToCanvas(v(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=G.createCanvas(),(f=go(d,{renderer:r?"svg":"canvas"})).resize({width:t,height:n}),r?(g="",N(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 ol({shape:{x:0,y:0,width:t,height:n},style:{fill:i.connectedBackgroundColor}})),N(p,function(t){t=new $s({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},m.prototype.convertToPixel=function(t,e,n){return fm(this,"convertToPixel",t,e,n)},m.prototype.convertToLayout=function(t,e,n){return fm(this,"convertToLayout",t,e,n)},m.prototype.convertFromPixel=function(t,e,n){return fm(this,"convertFromPixel",t,e,n)},m.prototype.containPixel=function(t,i){var r;if(!this._disposed)return N(ia(this._model,t),function(t,n){0<=n.indexOf("Models")&&N(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},m.prototype.getVisual=function(t,e){var t=ia(this._model,t,{defaultMainType:"series"}),n=t.seriesModel.getData(),t=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?n.indexOfRawIndex(t.dataIndex):null;if(null!=t){var i=n,r=t,o=e;switch(o){case"color":return i.getItemVisual(r,"style")[i.getVisual("drawType")];case"opacity":return i.getItemVisual(r,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return i.getItemVisual(r,o)}}else{var a=n,s=e;switch(s){case"color":return a.getVisual("style")[a.getVisual("drawType")];case"opacity":return a.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return a.getVisual(s)}}},m.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},m.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},m.prototype._initEvents=function(){var n,i,s=this,r=(N(zm,function(a){function t(t){var n,e,i,r=s.getModel(),o=t.target;"globalout"===a?n={}:o&&o0(o,function(t){var e,t=Sl(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);N(Vm,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?(r0("map","selectchanged",n,e,t),r0("pie","selectchanged",n,e,t)):"select"===t.fromAction?(r0("map","selected",n,e,t),r0("pie","selected",n,e,t)):"unselect"===t.fromAction&&(r0("map","unselected",n,e,t),r0("pie","unselected",n,e,t))})},m.prototype.isDisposed=function(){return this._disposed},m.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},m.prototype.dispose=function(){var t,e,n;this._disposed?this.id:(this._disposed=!0,this.getDom()&&la(this.getDom(),jm,""),e=(t=this)._api,n=t._model,N(t._componentsViews,function(t){t.dispose(n,e)}),N(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 Um[t.id])},m.prototype.resize=function(t){if(!this[Q0])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[tm]&&(null==n&&(n=this[tm].silent),e=!0,this[tm]=null),this[Q0]=!0,km(this);try{e&&hm(this),dm.update.call(this,{type:"resize",animation:P({duration:0},t&&t.animation)})}catch(t){throw this[Q0]=!1,t}this[Q0]=!1,mm.call(this,n),vm.call(this,n)}}},m.prototype.showLoading=function(t,e){this._disposed?this.id:(H(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Zm[t]&&(t=Zm[t](this._api,e),e=this._zr,this._loadingFX=t,e.add(t)))},m.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},m.prototype.makeActionFromEvent=function(t){var e=P({},t);return e.type=Em[t.type],e},m.prototype.dispatchAction=function(t,e){var n;this._disposed?this.id:(H(e)||(e={silent:!!e}),Bm[t.type]&&this._model&&(this[Q0]?this._pendingActions.push(t):(n=e.silent,ym.call(this,t,n),(t=e.flush)?this._zr.flush():!1!==t&&p.browser.weChat&&this._throttledZrFlush(),mm.call(this,n),vm.call(this,n))))},m.prototype.updateLabelLayout=function(){K0.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},m.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())},m.internalField=(hm=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),cm(t,!0),cm(t,!1),e.plan()},cm=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=pa(t.type),(n=new(r?fy.getClass(e.main,e.sub):_y.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)}},pm=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=O(),N(Go(t),function(t){t=Ko(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(yu(p))if(t instanceof ay){if(p.type===Ol&&!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=(E(r=ta(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?su(a,(r=Sl(l)).focus,r.blurScope,o):(r=i.get(["emphasis","focus"]),i=i.get(["emphasis","blurScope"]),null!=r&&su(a,r,i,o))}}}else{a=uu(t.mainType,t.componentIndex,p.name,c._api),r=a.focusSelf,i=a.dispatchers;p.type===Ol&&r&&!p.notBlur&&lu(t.mainType,t.componentIndex,c._api),i&&N(i,function(t){(p.type===Ol?tu:eu)(t)})}else gu(p)&&t instanceof ay&&(o=t,i=p,c._api,gu(i)&&(e=i.dataType,E(n=ta(o.getData(e),i))||(n=[n]),o[i.type===Bl?"toggleSelect":i.type===Nl?"select":"unselect"](n,e)),hu(t),Cm(c))},c),r&&r.eachComponent(i,function(t){d&&null!=d.get(t.id)||o(c["series"===n?"_chartsMap":"_componentsMap"][t.__viewId])},c)):N([].concat(c._componentsViews).concat(c._chartsViews),o)},dm={prepareAndUpdate:function(t){hm(this),dm.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),gm(this,n),o.update(n,i),Am(n),a.performVisualTasks(n,t),o=n.get("backgroundColor")||"transparent",r.setBackgroundColor(o),null!=(a=n.get("darkMode"))&&"auto"!==a&&r.setDarkMode(a),bm(this,n,i,t,e),K0.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=O(),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)}),Am(a),this._scheduler.performVisualTasks(a,n,{setDirty:!0,dirtyMap:r}),Sm(this,a,s,n,{},r),K0.trigger("afterupdate",a,s))},updateView:function(t){var e=this._model;e&&(e.setUpdatePayload(t),_y.markUpdateMethod(t,"updateView"),Am(e),this._scheduler.performVisualTasks(e,t,{setDirty:!0}),bm(this,e,this._api,t,{}),K0.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()}),_y.markUpdateMethod(n,"updateVisual"),Am(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)}),K0.trigger("afterupdate",r,this._api))},updateLayout:function(t){dm.update.call(this,t)}},fm=function(t,e,n,i,r){if(t._disposed)t.id;else for(var o=t._model,a=t._coordSysMgr.getCoordinateSystems(),s=ia(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}},gm=function(t,e){var n=t._chartsMap,i=t._scheduler;e.eachSeries(function(t){i.updateStreamModes(t,n[t.__viewId])})},ym=function(i,t){var r,o=this,a=this.getModel(),e=i.type,n=i.escapeConnect,s=Bm[e],e=(s.update||"update").split(":"),l=e.pop(),u=null!=e[0]&&pa(e[0]),e=(this[Q0]=!0,km(this),[i]),h=!1,c=(i.batch&&(h=!0,e=B(i.batch,function(t){return(t=rt(P({},t),i)).batch=null,t})),[]),p=[],d=s.nonRefinedEventType,f=gu(i),g=yu(i);if(g&&au(this._api),N(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=ra(i)).queryOptionMap,n=n.mainTypeSpecified?e.keys()[0]:"series",pm(o,l,t,n),Cm(o)):f?(pm(o,l,t,"series"),Cm(o)):u&&pm(o,l,t,u.main,u.sub)}),"none"!==l&&!g&&!f&&!u)try{this[tm]?(hm(this),dm.update.call(this,i),this[tm]=null):dm[l].call(this,i)}catch(t){throw this[Q0]=!1,t}r=h?{type:d,escapeConnect:n,batch:c}:c[0],this[Q0]=!1,t||(e=void 0,s.refineEvent&&(Ct(H(h=s.refineEvent(p,i,a,this._api).eventContent)),(e=rt({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))},mm=function(t){for(var e=this._pendingActions;e.length;){var n=e.shift();ym.call(this,n,t)}},vm=function(t){t||this.trigger("updated")},_m=function(e,n){e.on("rendered",function(t){n.trigger("rendered",t),!e.animation.isFinished()||n[tm]||n._scheduler.unfinished||n._pendingActions.length||n.trigger("finished")})},xm=function(t,a){t.on("mouseover",function(t){var e,n,i,r,o=o0(t.target,fu);o&&(o=o,e=t,t=a._api,n=Sl(o),i=(r=uu(n.componentMainType,n.componentIndex,n.componentHighDownName,t)).dispatchers,r=r.focusSelf,i?(r&&lu(n.componentMainType,n.componentIndex,t),N(i,function(t){return Ql(t,e)})):(su(n.seriesIndex,n.focus,n.blurScope,t),"self"===n.focus&&lu(n.componentMainType,n.componentIndex,t),Ql(o,e)),Cm(a))}).on("mouseout",function(t){var e,n,i=o0(t.target,fu);i&&(i=i,e=t,au(t=a._api),(n=uu((n=Sl(i)).componentMainType,n.componentIndex,n.componentHighDownName,t).dispatchers)?N(n,function(t){return Jl(t,e)}):Jl(i,e),Cm(a))}).on("click",function(t){var e,t=o0(t.target,function(t){return null!=Sl(t).dataIndex},!0);t&&(e=t.selected?"unselect":"select",t=Sl(t),a._api.dispatchAction({type:e,dataType:t.dataType,dataIndexInside:t.dataIndex,seriesIndex:t.seriesIndex,isFromClick:!0}))})},bm=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&&(An(a=u.concat(h),function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),N(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)})),wm(t,e,n,i,r),N(t._chartsViews,function(t){t.__alive=!1}),Sm(t,e,n,i,r),N(t._chartsViews,function(t){t.__alive||t.remove(e,n)})},wm=function(t,n,i,r,e,o){N(o||t._componentsViews,function(t){var e=t.__model;Rm(0,t),t.render(e,n,i,r),Om(e,t),Nm(e,t)})},Sm=function(r,t,e,o,n,a){var i,s,l,u,h=r._scheduler,c=(n=P(n||{},{updatedSeries:t.getSeries()}),K0.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),Rm(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)}),hu(t)}),h.unfinished=c||h.unfinished,K0.trigger("series:layoutlabels",t,e,n),K0.trigger("series:transition",t,e,n),t.eachSeries(function(t){var e=r._chartsMap[t.__viewId];Om(t,e),Nm(t,e)}),s=t,l=(i=r)._zr.storage,u=0,l.traverse(function(t){t.isGroup||u++}),u>s.get("hoverLayerThreshold")&&!p.node&&!p.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)})}),K0.trigger("series:afterupdate",t,e,n)},Cm=function(t){t[em]=!0,t.getZr().wakeUp()},km=function(t){t[J0]=(t[J0]+1)%1e3},Im=function(t){t[em]&&(t.getZr().storage.traverse(function(t){lc(t)||Pm(t)}),t[em]=!1)},Mm=function(n){return u(t,e=uf),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){tu(t,e),Cm(n)},t.prototype.leaveEmphasis=function(t,e){eu(t,e),Cm(n)},t.prototype.enterBlur=function(t){ql(t,Gl),Cm(n)},t.prototype.leaveBlur=function(t){nu(t),Cm(n)},t.prototype.enterSelect=function(t){iu(t),Cm(n)},t.prototype.leaveSelect=function(t){ru(t),Cm(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[J0]},new t(n);function t(){return null!==e&&e.apply(this,arguments)||this}var e},void(Tm=function(i){function r(t,e){for(var n=0;n<t.length;n++)t[n][im]=e}N(Em,function(t,e){i._messageCenter.on(e,function(t){var e,n;!Xm[i.group]||0===i[im]||t&&t.escapeConnect||(e=i.makeActionFromEvent(t),n=[],N(Um,function(t){t!==i&&t.group===i.group&&n.push(t)}),r(n,0),N(n,function(t){1!==t[im]&&t.dispatchAction(e)}),r(n,2))})})})),m);function m(t,e,n){var i=Dm.call(this,new t0)||this,t=(i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i._dom=t,i[J0]=1,n.ssr&&mo(function(t){var e,t=Sl(t),n=t.dataIndex;if(null!=n)return(e=O()).set("series_index",t.seriesIndex),e.set("data_index",n),t.ssrType&&e.set("ssr_type",t.ssrType),e}),i._zr=go(t,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:W(n.useDirtyRect,!1),useCoarsePointer:W(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize})),n=(i._ssr=n.ssr,i._throttledZrFlush=Dy(y(t.flush,t),17),i._updateTheme(e),i._locale=V(e=n.locale||_p)?(n=mp[e.toUpperCase()]||{},e===fp||e===gp?v(n):d(v(n),v(mp[yp]),!1)):d(v(e),v(mp[yp]),!1),i._coordSysMgr=new rd,i._api=Mm(i));function r(t,e){return t.__prio-e.__prio}return An(Wm,r),An(Fm,r),i._scheduler=new Ey(i,n,Fm,Wm),i._messageCenter=new lm,i._initEvents(),i.resize=y(i.resize,i),t.animation.on("frame",i._onframe,i),_m(t,i),xm(t,i),Dt(i),i}function Am(t){t.clearColorPalette(),t.eachSeries(function(t){t.clearColorPalette()})}function Pm(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===Ll&&t.states.emphasis?e.push("emphasis"):t.hoverState===Dl&&t.states.blur&&e.push("blur"),t.useStates(e)}function Om(t,e){var n;t.preventAutoZ||(n=Oc(t),e.eachRendered(function(t){return Rc(t,n.z,n.zlevel),!0}))}function Rm(t,e){e.eachRendered(function(t){var e,n;lc(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 Nm(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&&(lc(t)||(t instanceof Gs&&((i=Cl(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&&Pm(t)))})}var p0=Lm.prototype,zm=(p0.on=rm("on"),p0.off=rm("off"),p0.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 Bm={},Em={},Vm={},Fm=[],Hm=[],Wm=[],Gm={},Zm={},Um={},Xm={},Ym=+new Date,qm=+new Date,jm="_echarts_instance_";function Km(t){Xm[t]=!1}u0=Km;function $m(t){return Um[e=jm,(t=t).getAttribute?t.getAttribute(e):t[e]];var e}function Qm(t,e){Gm[t]=e}function Jm(t){k(Hm,t)<0&&Hm.push(t)}function tv(t,e){uv(Fm,t,e,2e3)}function ev(t){iv("afterinit",t)}function nv(t){iv("afterupdate",t)}function iv(t,e){K0.on(t,e)}function rv(t,e,n){var i,r,o,a;function s(t){return t.toLowerCase()}z(e)&&(n=e,e=""),H(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;Bm[i]||(Ct(nm.test(i)&&nm.test(l)),r&&Ct(l!==i),Bm[i]={actionType:i,refinedEventType:l,nonRefinedEventType:t,update:o,action:n,refineEvent:r},Vm[l]=1,r&&a&&(Vm[t]=1),Em[t]=i)}function ov(t,e){rd.register(t,e)}function av(t,e){uv(Wm,t,e,1e3,"layout")}function sv(t,e){uv(Wm,t,e,3e3,"visual")}var lv=[];function uv(t,e,n,i,r){(z(e)||H(e))&&(n=e,e=i),0<=k(lv,n)||(lv.push(n),(i=Ey.wrapStageHandler(n,r)).__prio=e,i.__raw=n,t.push(i))}function hv(t,e){Zm[t]=e}function cv(t,e,n){var i=$0.registerMap;i&&i(t,e,n)}function pv(t){var e=(t=v(t)).type,n=(e||f(""),e.split(":")),i=(2!==n.length&&f(""),!1);"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,zg.set(e,t)}function dv(t,e,n,i){return{eventContent:{selected:(r=[],n.eachSeries(function(n){N(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}sv(2e3,ba),sv(4500,np),sv(4500,kp),sv(2e3,Qc),sv(4500,ap),sv(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=q0(e,i))}),t=n.getVisual("decal"))&&(n.getVisual("style").decal=q0(t,i))})}),Jm(Pf),tv(900,function(t){var i=O();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(),N(n,function(t,e){t.data.setCalculationInfo("stackedOnSeries",0<e?n[e-1].seriesModel:null)}),N(_=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(ko(a),ko(s)),a+=s,o=_o<l?a:Co(a,l),u=c;break}}}return f[0]=o,f[1]=u,f})}))})}),hv("default",function(i,r){rt(r=r||{},{text:"loading",textColor:g.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:g.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var o,t=new so,a=new ol({style:{fill:r.maskColor},zlevel:r.zlevel,z:1e4}),s=(t.add(a),new cl({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 ol({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:r.zlevel,z:10001});return t.add(l),r.showSpinner&&((o=new Oh({shape:{startAngle:-By/2,endAngle:-By/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*By/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:3*By/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}),rv({type:Ol,event:Ol,update:Ol},Ft),rv({type:Rl,event:Rl,update:Rl},Ft),rv({type:Nl,event:El,update:Nl,action:Ft,refineEvent:dv,publishNonRefinedEvent:!0}),rv({type:zl,event:El,update:zl,action:Ft,refineEvent:dv,publishNonRefinedEvent:!0}),rv({type:Bl,event:El,update:Bl,action:Ft,refineEvent:dv,publishNonRefinedEvent:!0}),Qm("default",{}),Qm("dark",tp);function fv(t){return null==t?0:t.length||1}function gv(t){return t}mv.prototype.add=function(t){return this._add=t,this},mv.prototype.update=function(t){return this._update=t,this},mv.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},mv.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},mv.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},mv.prototype.remove=function(t){return this._remove=t,this},mv.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},mv.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=fv(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)},mv.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=fv(l),c=fv(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)},mv.prototype._performRestAdd=function(t,e){for(var n=0;n<t.length;n++){var i=t[n],r=e[i],o=fv(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}},mv.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=fv(a=e[l]))?(e[l]=o,r&&n.push(l)):1===s?e[l]=[a,o]:a.push(o))}};var yv=mv;function mv(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||gv,this._newKeyGetter=i||gv,this.context=r,this._diffModeMultiple="multiple"===o}_v.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},_v.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames};var vv=_v;function _v(t,e){this._encode=t,this._schema=e}function xv(o,t){var e={},a=e.encode={},s=O(),l=[],u=[],h={},i=(N(o.dimensions,function(t){var e,n,i=o.getDimensionInfo(t),r=i.coordDim;r&&(e=i.coordDimIndex,bv(a,r)[e]=t,i.isExtraCoord||(s.set(r,1),"ordinal"!==(n=i.type)&&"time"!==n&&(l[0]=t),bv(h,r)[e]=o.getDimensionIndex(i.name)),i.defaultTooltip)&&u.push(t),Rd.each(function(t,e){var n=bv(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 vv(h,t),e}function bv(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}var wv=function(t){this.otherDims={},null!=t&&P(this,t)},Sv=ea(),Mv={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Tv=(Cv.prototype.isDimensionOmitted=function(){return this._dimOmitted},Cv.prototype._updateDimOmitted=function(t){(this._dimOmitted=t)&&!this._dimNameMap&&(this._dimNameMap=Dv(this.source))},Cv.prototype.getSourceDimensionIndex=function(t){return W(this._dimNameMap.get(t),-1)},Cv.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},Cv.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Wf(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+"$"+(Mv[u]||"f"),h&&(i+=h.uid),i+="$"}var p=this.source;return{dimensions:r,hash:[p.seriesLayoutBy,p.startIndex,i].join("$$")}},Cv.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},Cv.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},Cv);function Cv(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}function Iv(t){return t instanceof Tv}function kv(t){for(var e=O(),n=0;n<(t||[]).length;n++){var i=t[n],i=H(i)?i.name:i;null!=i&&null==e.get(i)&&e.set(i,n)}return e}function Dv(t){var e=Sv(t);return e.dimNameMap||(e.dimNameMap=kv(t.dimensionsDefine))}var Lv,Av,Pv,Ov,Rv,Nv,zv,Bv=H,Ev=B,Vv="undefined"==typeof Int32Array?Array:Int32Array,Fv=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Hv=["_approximateExtent"],Wv=(_.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])},_.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},_.prototype._recognizeDimIndex=function(t){if(F(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},_.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},_.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},_.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]}},_.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},_.prototype.mapDimension=function(t,e){var n=this._dimSummary;return null==e?n.encodeFirstDimNotExtra[t]:(n=n.encode[t])?n[e]:null},_.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},_.prototype.getStore=function(){return this._store},_.prototype.initData=function(t,e,n){var i,r,o=this;(i=t instanceof Yg?t:i)||(r=this.dimensions,t=zf(t)||lt(t)?new Xf(t,r.length):t,i=new Yg,r=Ev(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=xv(this,this._schema),this.userOutput=this._dimSummary.userOutput},_.prototype.appendData=function(t){t=this._store.appendData(t);this._doInit(t[0],t[1])},_.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&&zv(this,o)},_.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},_.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==Vd&&!t.fillStorage},_.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===Nd&&!n.pure)for(var o=[],a=t;a<e;a++){var s,l=n.getItem(a,o);this.hasItemOption||!H(s=l)||s instanceof Array||(this.hasItemOption=!0),l&&(s=l.name,null==i[a]&&null!=s&&(i[a]=Ko(s,null)),l=l.id,null==r[a])&&null!=l&&(r[a]=Ko(l,null))}if(this._shouldMakeIdFromName())for(a=t;a<e;a++)zv(this,a);Lv(this)}},_.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},_.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},_.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},_.prototype.setCalculationInfo=function(t,e){Bv(t)?P(this._calculationInfo,t):this._calculationInfo[t]=e},_.prototype.getName=function(t){var t=this.getRawIndex(t),e=this._nameList[t];return e=null==(e=null==e&&null!=this._nameDimIdx?Pv(this,this._nameDimIdx,t):e)?"":e},_.prototype._getCategory=function(t,e){e=this._store.get(t,e),t=this._store.getOrdinalMeta(t);return t?t.categories[e]:e},_.prototype.getId=function(t){return Av(this,this.getRawIndex(t))},_.prototype.count=function(){return this._store.count()},_.prototype.get=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.get(t.storeDimIndex,e)},_.prototype.getByRawIndex=function(t,e){var n=this._store,t=this._dimInfos[t];if(t)return n.getByRawIndex(t.storeDimIndex,e)},_.prototype.getIndices=function(){return this._store.getIndices()},_.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},_.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},_.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},_.prototype.getValues=function(t,e){var n=this,i=this._store;return E(t)?i.getValues(Ev(t,function(t){return n._getStoreDimIndex(t)}),e):i.getValues(t)},_.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},_.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;e++)if(this.getName(e)===t)return e;return-1},_.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},_.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},_.prototype.rawIndexOf=function(t,e){t=t&&this._invertedIndicesMap[t],t=t&&t[e];return null==t||isNaN(t)?-1:t},_.prototype.each=function(t,e,n){z(t)&&(n=e,e=t,t=[]);n=n||this,t=Ev(Ov(t),this._getStoreDimIndex,this);this._store.each(t,n?y(e,n):e)},_.prototype.filterSelf=function(t,e,n){z(t)&&(n=e,e=t,t=[]);n=n||this,t=Ev(Ov(t),this._getStoreDimIndex,this);return this._store=this._store.filter(t,n?y(e,n):e),this},_.prototype.selectRange=function(n){var i=this,r={};return N(pt(n),function(t){var e=i._getStoreDimIndex(t);r[e]=n[t]}),this._store=this._store.selectRange(r),this},_.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},_.prototype.map=function(t,e,n,i){n=n||i||this,i=Ev(Ov(t),this._getStoreDimIndex,this),t=Nv(this);return t._store=this._store.map(i,n?y(e,n):e),t},_.prototype.modify=function(t,e,n,i){n=n||i||this,i=Ev(Ov(t),this._getStoreDimIndex,this);this._store.modify(i,n?y(e,n):e)},_.prototype.downSample=function(t,e,n,i){var r=Nv(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),r},_.prototype.minmaxDownSample=function(t,e){var n=Nv(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},_.prototype.lttbDownSample=function(t,e){var n=Nv(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},_.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},_.prototype.getItemModel=function(t){var e=this.hostModel,t=this.getRawDataItem(t);return new up(t,e,e&&e.ecModel)},_.prototype.diff=function(e){var n=this;return new yv(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return Av(e,t)},function(t){return Av(n,t)})},_.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},_.prototype.setVisual=function(t,e){this._visual=this._visual||{},Bv(t)?P(this._visual,t):this._visual[t]=e},_.prototype.getItemVisual=function(t,e){t=this._itemVisuals[t],t=t&&t[e];return null==t?this.getVisual(e):t},_.prototype.hasItemVisual=function(){return 0<this._itemVisuals.length},_.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t],n=(i=i||(n[t]={}))[e];return null==n&&(E(n=this.getVisual(e))?n=n.slice():Bv(n)&&(n=P({},n)),i[e]=n),n},_.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Bv(e)?P(i,e):i[e]=n},_.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},_.prototype.setLayout=function(t,e){Bv(t)?P(this._layout,t):this._layout[t]=e},_.prototype.getLayout=function(t){return this._layout[t]},_.prototype.getItemLayout=function(t){return this._itemLayouts[t]},_.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?P(this._itemLayouts[t]||{},e):e},_.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},_.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=Sl(a)).dataIndex=r,o.dataType=i,o.seriesIndex=n,o.ssrType="chart","group"===a.type)&&a.traverse(function(t){t=Sl(t);t.seriesIndex=n,t.dataIndex=r,t.dataType=i,t.ssrType="chart"}),this._graphicEls[t]=e},_.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},_.prototype.eachItemGraphicEl=function(n,i){N(this._graphicEls,function(t,e){t&&n&&n.call(i,t,e)})},_.prototype.cloneShallow=function(t){return t=t||new _(this._schema||Ev(this.dimensions,this._getDimInfo,this),this.hostModel),Rv(t,this),t._store=this._store,t},_.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(Mt(arguments)))})},_.internalField=(Lv=function(a){var s=a._invertedIndicesMap;N(s,function(t,e){var n=a._dimInfos[e],i=n.ordinalMeta,r=a._store;if(i){t=s[e]=new Vv(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}})},Pv=function(t,e,n){return Ko(t._getCategory(e,n),null)},Av=function(t,e){var n=t._idList[e];return n=null==(n=null==n&&null!=t._idDimIdx?Pv(t,t._idDimIdx,e):n)?"e\0\0"+e:n},Ov=function(t){return t=E(t)?t:null!=t?[t]:[]},Nv=function(t){var e=new _(t._schema||Ev(t.dimensions,t._getDimInfo,t),t.hostModel);return Rv(e,t),e},Rv=function(e,n){N(Fv.concat(n.__wrappedMethods||[]),function(t){n.hasOwnProperty(t)&&(e[t]=n[t])}),e.__wrappedMethods=n.__wrappedMethods,N(Hv,function(t){e[t]=v(n[t])}),e._calculationInfo=P({},n._calculationInfo)},void(zv=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=Pv(t,r,e)),null==s&&null!=o&&(i[e]=s=Pv(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)})),_);function _(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=(Iv(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=V(c)?new wv({name:c}):c instanceof wv?c:new wv(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);F(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=O(),N(a,function(t){i.set(o[t].storeDimIndex,t)}))}function Gv(t,e){zf(t)||(t=Ef(t));for(var n,i,r=(e=e||{}).coordDimensions||[],o=e.dimensionsDefine||t.dimensionsDefine||[],a=O(),s=[],l=(u=t,n=r,p=e.dimensionsCount,i=Math.max(u.dimensionsDetectedCount||1,n.length,o.length,p||0),N(n,function(t){H(t)&&(t=t.dimsDef)&&(i=Math.max(i,t.length))}),i),u=e.canOmitUnusedDimensions&&30<l,h=o===t.dimensionsDefine,c=h?Dv(t):kv(o),p=e.encodeDefine,d=O(p=!p&&e.encodeDefaulter?e.encodeDefaulter(t,l):p),f=new Wg(l),g=0;g<f.length;g++)f[g]=-1;function y(t){var e,n,i,r=f[t];return r<0?(e=H(e=o[t])?e:{name:e},n=new wv,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=Go(t).slice();1===t.length&&!V(t[0])&&t[0]<0?d.set(n,!1):(i=d.set(n,[]),N(t,function(t,e){t=V(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!=Rd.get(e)?t.otherDims[e]=n:(t.coordDim=e,t.coordDimIndex=n,a.set(e,!0))}N(r,function(t){V(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=Go(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++)}N(e,function(t,e){t=y(t);h&&null!=r.type&&(t.type=r.type),v(rt(t,r),o,e),null==t.name&&n&&(H(e=n[e])||(e={name:e}),t.name=t.displayName=e.name,t.defaultTooltip=e.defaultTooltip),i&&rt(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)N(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||Yd(t,M)!==Gd.Must&&(!T.isExtraCoord||null==T.otherDims.itemName&&null==T.otherDims.seriesName)||(T.type="ordinal")}for(var C=s,I=O(),k=0;k<C.length;k++){var D=C[k],L=D.name,A=I.get(L)||0;0<A&&(D.name=L+(A-1)),A++,I.set(L,A)}return new Tv({source:t,dimensions:s,fullDimensionCount:l,dimensionOmitted:u})}var Zv=function(t){this.coordSysDims=[],this.axisMap=O(),this.categoryAxisMap=O(),this.coordSysName=t};var Uv={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",oa).models[0],t=t.getReferringComponents("yAxis",oa).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",t),Xv(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),Xv(t)&&(i.set("y",t),null==e.firstCategoryDimIndex)&&(e.firstCategoryDimIndex=1)},singleAxis:function(t,e,n,i){t=t.getReferringComponents("singleAxis",oa).models[0];e.coordSysDims=["single"],n.set("single",t),Xv(t)&&(i.set("single",t),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var t=t.getReferringComponents("polar",oa).models[0],r=t.findAxisModel("radiusAxis"),t=t.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",r),n.set("angle",t),Xv(r)&&(i.set("radius",r),e.firstCategoryDimIndex=0),Xv(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();N(t.parallelAxisIndex,function(t,e){var t=a.getComponent("parallelAxis",t),n=s[e];r.set(n,t),Xv(t)&&(o.set(n,t),null==i.firstCategoryDimIndex)&&(i.firstCategoryDimIndex=e)})},matrix:function(t,e,n,i){t=t.getReferringComponents("matrix",oa).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 Xv(t){return"category"===t.get("type")}function Yv(t,e,n){var i,r,o,a,s,l,u,h,c,p=(n=n||{}).byIndex,d=n.stackedCoordDimension,f=(Iv(e.schema)?(r=e.schema,i=r.dimensions,o=e.store):i=e,!(!t||!t.get("stack")));return N(i,function(t,e){V(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,N(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 qv(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function jv(t,e){return qv(t,e)?t.getCalculationInfo("stackResultDimension"):e}function Kv(t,e,n){n=n||{};var i,r,o,a,s,l,u=e.getSourceManager(),h=!1,t=(t?(h=!0,i=Ef(t)):h=(i=u.getSource()).sourceFormat===Nd,function(t){var e=t.get("coordinateSystem"),n=new Zv(e);if(e=Uv[e])return e(t,n,n.axisMap,n.categoryAxisMap),n}(e)),c=(r=t,c=(c=e).get("coordinateSystem"),c=rd.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?dt(Ud,c,e):null,c={coordDimensions:c,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:p,canOmitUnusedDimensions:!h},p=Gv(i,c),d=(c=p.dimensions,o=n.createInvertedIndices,(a=t)&&N(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=Yv(e,{schema:p,store:n}),c=new Wv(p,e),p=(c.setCalculationInfo(t),null==d||(u=i).sourceFormat!==Nd||E(Xo(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 $v(t){return"interval"===t.type||"log"===t.type}function Qv(t,e,n,i,r){var o={},e=o.interval=Bo(e/n,!0),n=(null!=i&&e<i&&(e=o.interval=i),null!=r&&r<e&&(e=o.interval=r),o.intervalPrecision=t_(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]),e_(r,0,e),e_(r,1,e),r[0]>r[1]&&(r[0]=r[1]),o}function Jv(t){var e=Math.pow(10,zo(t)),t=t/e;return t?2===t?t=3:3===t?t=5:t*=2:t=1,Co(t*e)}function t_(t){return ko(t)+2}function e_(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function n_(t,e){return t>=e[0]&&t<=e[1]}r_.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=y(t.normalize,t),this.scale=y(t.scale,t)):(this.normalize=o_,this.scale=a_)};var i_=r_;function r_(){this.normalize=o_,this.scale=a_}function o_(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function a_(t,e){return t*(e[1]-e[0])+e[0]}function s_(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]}u_.prototype.getSetting=function(t){return this._setting[t]},u_.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent((t[0]<e[0]?t:e)[0],(t[1]>e[1]?t:e)[1])},u_.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},u_.prototype.getExtent=function(){return this._extent.slice()},u_.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},u_.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)},u_.prototype.setBreaksFromOption=function(t){},u_.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},u_.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},u_.prototype.hasBreaks=function(){return!!this._brkCtx&&this._brkCtx.hasBreaks()},u_.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},u_.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},u_.prototype.isBlank=function(){return this._isBlank},u_.prototype.setBlank=function(t){this._isBlank=t};var l_=u_;function u_(t){this._calculator=new i_,this._setting=t||{},this._extent=[1/0,-1/0]}va(l_);var h_=0,c_=(p_.createByAxisModel=function(t){var t=t.option,e=t.data,e=e&&B(e,d_);return new p_({categories:e,needCollect:!e,deduplication:!1!==t.dedplication})},p_.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},p_.prototype.parseAndCollect=function(t){var e,n,i=this._needCollect;return V(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},p_.prototype._getOrCreateMap=function(){return this._map||(this._map=O(this.categories))},p_);function p_(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++h_,this._onCollect=t.onCollect}function d_(t){return H(t)&&null!=t.value?t.value:t+""}u(y_,f_=l_),y_.prototype.parse=function(t){return null==t?NaN:V(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},y_.prototype.contain=function(t){return n_(t,this._extent)&&0<=t&&t<this._ordinalMeta.categories.length},y_.prototype.normalize=function(t){return t=this._getTickNumber(t),this._calculator.normalize(t,this._extent)},y_.prototype.scale=function(t){return t=Math.round(this._calculator.scale(t,this._extent)),this.getRawOrdinalNumber(t)},y_.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},y_.prototype.getMinorTicks=function(t){},y_.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}}},y_.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&0<=t&&t<e.length?e[t]:t},y_.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&0<=t&&t<e.length?e[t]:t},y_.prototype.getLabel=function(t){if(!this.isBlank())return t=this.getRawOrdinalNumber(t.value),null==(t=this._ordinalMeta.categories[t])?"":t+""},y_.prototype.count=function(){return this._extent[1]-this._extent[0]+1},y_.prototype.isInExtentRange=function(t){return t=this._getTickNumber(t),this._extent[0]<=t&&this._extent[1]>=t},y_.prototype.getOrdinalMeta=function(){return this._ordinalMeta},y_.prototype.calcNiceTicks=function(){},y_.prototype.calcNiceExtent=function(){},y_.type="ordinal";var f_,g_=y_;function y_(t){var t=f_.call(this,t)||this,e=(t.type="ordinal",t.getSetting("ordinalMeta"));return E(e=e||new c_({}))&&(e=new c_({categories:B(e,function(t){return H(t)?t.value:t})})),t._ordinalMeta=e,t._extent=t.getSetting("extent")||[0,e.categories.length-1],t}l_.registerClass(g_);var m_,v_=Co,__=(u(x_,m_=l_),x_.prototype.parse=function(t){return null==t||""===t?NaN:Number(t)},x_.prototype.contain=function(t){return n_(t,this._extent)},x_.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},x_.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},x_.prototype.getInterval=function(){return this._interval},x_.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=t_(t)},x_.prototype.getTicks=function(t){t=t||{};var n=this._interval,e=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=bp,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:v_(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=v_(u+n,r),this._brkCtx&&0<=(s=this._brkCtx.calcNiceTickMultiple(u,l))&&(u=v_(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:v_(h+n,r)}):a.push({value:e[1]})),"none"!==t.breakTicks&&o&&o.addBreaksToTicks(a,this._brkCtx.breaks,this._extent)}return a},x_.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=t_(u);s<t-1;){var c=v_(a.value+(s+1)*u,h);c>i[0]&&c<i[1]&&l.push(c),s++}bp&&bp.pruneTicksByBreak("auto",l,this._getNonTransBreaks(),function(t){return t},this._interval,i),n.push(l)}}return n},x_.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},x_.prototype.getLabel=function(t,e){return null==t?"":(null==(e=e&&e.precision)?e=ko(t.value)||0:"auto"===e&&(e=this._intervalPrecision),$p(v_(t.value,e,!0)))},x_.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=Qv(i,r,t,e,n),this._intervalPrecision=i.intervalPrecision,this._interval=i.interval,this._niceExtent=i.niceTickExtent)},x_.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]=v_(Math.floor(e[0]/n)*n,i)),t.fixMax||(e[1]=v_(Math.ceil(e[1]/n)*n,i)),this._innerSetExtent(e[0],e[1])},x_.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},x_.type="interval",x_);function x_(){var t=null!==m_&&m_.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}l_.registerClass(__);function b_(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function w_(t){return t.dim+t.index}function S_(t,e){var n=[];return e.eachSeriesByType(t,function(t){var e;(e=t).coordinateSystem&&"cartesian2d"===e.coordinateSystem.type&&n.push(t)}),n}function M_(t){var a,d,h=function(t){var e,l={},n=(N(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),c=[];return N(t,function(t){var e,n,i=t.coordinateSystem.getBaseAxis(),r=i.getExtent(),o=(e="category"===i.type?i.getBandWidth():"value"===i.type||"time"===i.type?(e=i.dim+"_"+i.index,e=h[e],o=Math.abs(r[1]-r[0]),n=i.scale.getExtent(),n=Math.abs(n[1]-n[0]),e?o/n*e:o):(n=t.getData(),Math.abs(r[1]-r[0])/n.count()),Mo(t.get("barWidth"),e)),r=Mo(t.get("barMaxWidth"),e),a=Mo(t.get("barMinWidth")||((n=t).pipelineContext&&n.pipelineContext.large?.5:1),e),s=t.get("barGap"),l=t.get("barCategoryGap"),u=t.get("defaultBarGap");c.push({bandWidth:e,barWidth:o,barMaxWidth:r,barMinWidth:a,barGap:s,barCategoryGap:l,defaultBarGap:u,axisKey:w_(i),stackId:b_(t)})}),a={},N(c,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={},N(a,function(t,n){d[n]={};var i,e=t.stacks,r=t.bandWidth,o=t.categoryGap,a=(null==o&&(a=pt(e).length,o=Math.max(35-4*a,15)+"%"),Mo(o,r)),s=Mo(t.gap,1),l=t.remainedWidth,u=t.autoWidthCount,h=(l-a)/(u+(u-1)*s),h=Math.max(h,0),c=(N(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=(N(e,function(t,e){t.width||(t.width=h),c+=(i=t).width*(1+s)}),i&&(c-=i.width*s),-c/2);N(e,function(t,e){d[n][e]=d[n][e]||{bandWidth:r,offset:p,width:t.width},p+=t.width*(1+s)})}),d}u(I_,T_=__),I_.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Np(t.value,Dp[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Rp(this._minLevelUnit))]||Dp.second,e,this.getSetting("locale"))},I_.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=V(n=n)?n:z(n)?(i={time:t.time,level:t.time.level},bp&&bp.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=zp(t.value,o)][e][0],Np(new Date(t.value),r,o,a)},I_.prototype.getTicks=function(t){var e,n,i,r=this._interval,o=this._extent,a=[];return r&&(r=this.getSetting("useUTC"),e=zp(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=Ap,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=Rp(t),r=_[0],o=_[1],a=v,Bp(new Date(r),i,a).getTime()!==Bp(new Date(o),i,a).getTime()){l&&(e=[{value:function(t,e,n){e=Math.max(0,k(Lp,e)-1);return Bp(new Date(t),Lp[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/Tp/365)),g=Ep(v),y=v?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":h=m,f=6<(h/=30*Tp)?6:3<h?3:2<h?2:1,g=Vp(v),y=Up(v);break;case"week":case"half-week":case"day":h=m,f=16<(h/=Tp)?16:7.5<h?7:3.5<h?4:1.5<h?2:1,g=Fp(v),y=Xp(v),0;break;case"half-day":case"quarter-day":case"hour":u=m,f=12<(u/=Mp)?12:6<u?6:3.5<u?4:2<u?2:1,g=Hp(v),y=Yp(v);break;case"minute":f=D_(m,!0),g=Wp(v),y=qp(v);break;case"second":f=D_(m,!1),g=Gp(v),y=jp(v);break;case"millisecond":f=Bo(m,!0),g=Zp(v),y=Kp(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=Rp(n[l]);if(function(t){return t===Rp(t)}(n[l])){i(n[l],r[r.length-1]||[],o);var h=n[l+1]?Rp(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=ht(B(r,function(t){return ht(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 C=zp(M[T].value,v);g.push({value:M[T].value,time:{level:S-l,upperTimeUnit:C,lowerTimeUnit:C}})}g.sort(function(t,e){return t.value-e.value});for(var I=[],l=0;l<g.length;++l)0!==l&&g[l].value===g[l-1].value||I.push(g[l]);return I}(this._minLevelUnit,this._approxInterval,r,o,this._getExtentSpanWithBreaks(),this._brkCtx),a=a.concat(e),e=zp(o[1],r),a.push({value:o[1],time:{level:0,upperTimeUnit:e,lowerTimeUnit:e}}),this.getSetting("useUTC"),n=Lp.length-1,i=0,N(a,function(t){n=Math.min(n,k(Lp,t.time.upperTimeUnit)),i=Math.max(i,t.time.level)})),a},I_.prototype.calcNiceExtent=function(t){var e,n=this.getExtent();n[0]===n[1]&&(n[0]-=Tp,n[1]+=Tp),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]-Tp),this._innerSetExtent(n[0],n[1]),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval)},I_.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),k_.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}(k_,this._approxInterval,0,i),i-1);this._interval=k_[t][1],this._intervalPrecision=t_(this._interval),this._minLevelUnit=k_[Math.max(t-1,0)][0]},I_.prototype.parse=function(t){return F(t)?t:+Ro(t)},I_.prototype.contain=function(t){return n_(t,this._extent)},I_.prototype.normalize=function(t){return this._calculator.normalize(t,this._extent)},I_.prototype.scale=function(t){return this._calculator.scale(t,this._extent)},I_.type="time";var T_,C_=I_;function I_(t){t=T_.call(this,t)||this;return t.type="time",t}var k_=[["second",wp],["minute",Sp],["hour",Mp],["quarter-day",6*Mp],["half-day",12*Mp],["day",1.2*Tp],["half-week",3.5*Tp],["week",7*Tp],["month",31*Tp],["quarter",95*Tp],["half-year",ga/2],["year",ga]];function D_(t,e){return 30<(t/=e?Sp:wp)?30:20<t?20:15<t?15:10<t?10:5<t?5:2<t?2:1}l_.registerClass(C_);var L_,A_=Co,P_=Math.floor,O_=Math.ceil,R_=Math.pow,N_=Math.log,z_=(u(B_,L_=__),B_.prototype.getTicks=function(t){t=t||{};var i=this._extent.slice(),r=this._originalScale.getExtent(),t=L_.prototype.getTicks.call(this,t),o=this.base;return this._originalScale._innerGetBreaks(),B(t,function(t){var t=t.value,e=null,n=R_(o,t);return t===i[0]&&this._fixMin?e=r[0]:t===i[1]&&this._fixMax&&(e=r[1]),{value:n=null!=e?E_(n,e):n,break:void 0}},this)},B_.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},B_.prototype.setExtent=function(t,e){this._originalScale.setExtent(t,e);t=s_(this.base,[t,e]);L_.prototype.setExtent.call(this,t[0],t[1])},B_.prototype.getExtent=function(){var t=this.base,e=L_.prototype.getExtent.call(this),t=(e[0]=R_(t,e[0]),e[1]=R_(t,e[1]),this._originalScale.getExtent());return this._fixMin&&(e[0]=E_(e[0],t[0])),this._fixMax&&(e[1]=E_(e[1],t[1])),e},B_.prototype.unionExtentFromData=function(t,e){this._originalScale.unionExtentFromData(t,e);t=s_(this.base,t.getApproximateExtent(e),!0);this._innerUnionExtent(t)},B_.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(isFinite(n)&&!(n<=0)){var i=No(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&0<Math.abs(i);)i*=10;t=[A_(O_(e[0]/i)*i),A_(P_(e[1]/i)*i)];this._interval=i,this._intervalPrecision=t_(i),this._niceExtent=t}},B_.prototype.calcNiceExtent=function(t){L_.prototype.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},B_.prototype.contain=function(t){return t=N_(t)/N_(this.base),L_.prototype.contain.call(this,t)},B_.prototype.normalize=function(t){return t=N_(t)/N_(this.base),L_.prototype.normalize.call(this,t)},B_.prototype.scale=function(t){return t=L_.prototype.scale.call(this,t),R_(this.base,t)},B_.prototype.setBreaksFromOption=function(t){},B_.type="log",B_);function B_(){var t=null!==L_&&L_.apply(this,arguments)||this;return t.type="log",t.base=10,t._originalScale=new __,t}function E_(t,e){return A_(t,ko(e))}l_.registerClass(z_);F_.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=Z_(t,r({min:n[0],max:n[1]})):"dataMin"!==r&&(this._modelMinNum=Z_(t,r)),this._modelMaxRaw=e.get("max",!0));z(r)?this._modelMaxNum=Z_(t,r({min:n[0],max:n[1]})):"dataMax"!==r&&(this._modelMaxNum=Z_(t,r)),i?this._axisDataLen=e.getCategories().length:"boolean"==typeof(t=E(n=e.get("boundaryGap"))?n:[n||0,n||0])[0]||"boolean"==typeof t[1]?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Xr(t[0],1),Xr(t[1],1)]},F_.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),bt(a)||bt(s)||t&&!i),n=(this._needCrossZero&&(a=0<a&&0<s&&!l?0:a)<0&&s<0&&!u&&(s=0),this._determinedMin),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}},F_.prototype.modifyDataMinMax=function(t,e){this[W_[t]]=e},F_.prototype.setDeterminedMinMax=function(t,e){this[H_[t]]=e},F_.prototype.freeze=function(){this.frozen=!0};var V_=F_;function F_(t,e,n){this._prepareParams(t,e,n)}var H_={min:"_determinedMin",max:"_determinedMax"},W_={min:"_dataMin",max:"_dataMax"};function G_(t,e,n){var i=t.rawExtentInfo;return i||(i=new V_(t,e,n),t.rawExtentInfo=i),i}function Z_(t,e){return null==e?null:bt(e)?NaN:t.parse(e)}function U_(t,e){var n,i,r,o,a,s,l=t.type,u=G_(t,e,t.getExtent()).calculate(),t=(t.setBlank(u.isBlank),u.min),h=u.max,c=e.ecModel;return c&&"time"===l&&(l=S_("bar",c),n=!1,N(l,function(t){n=n||t.getBaseAxis()===e.axis}),n)&&(c=M_(l),l=t,i=h,c=c,s=(r=e).axis.getExtent(),s=Math.abs(s[1]-s[0]),void 0!==(c=function(t,e,n){if(t&&e)return null!=(t=t[w_(e)])&&null!=n?t[b_(n)]:t}(c,r.axis))&&(o=1/0,N(c,function(t){o=Math.min(t.offset,o)}),a=-1/0,N(c,function(t){a=Math.max(t.offset+t.width,a)}),o=Math.abs(o),a=Math.abs(a),i+=a/(r=o+a)*(s=(c=i-l)/(1-(o+a)/s)-c),l-=o/r*s),t=(c={min:l,max:i}).min,h=c.max),{extent:[t,h],fixMin:u.minFixed,fixMax:u.maxFixed}}function X_(t,e){var n=U_(t,e),i=n.extent,r=e.get("splitNumber"),o=(t instanceof z_&&(t.base=e.get("logBase")),t.type),a=e.get("interval"),o="interval"===o||"time"===o;t.setBreaksFromOption(e1(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 Y_(t,e){if(e=e||t.get("type"))switch(e){case"category":return new g_({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new C_({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(l_.getClass(e)||__)}}function q_(i){var n,r,o=i.getLabelModel().get("formatter");return"time"===i.type?(n=Pp(o),function(t,e){return i.scale.getFormattedLabel(t,e,n)}):V(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(j_(i,t),t.value-i.scale.getExtent()[0],null)}:(r=bp,function(t,e){var n=null;return r&&(n=r.makeAxisLabelFormatterParamBreak(n,t.break)),o(j_(i,t),e,n)}):function(t){return i.scale.getLabel(t)}}function j_(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function K_(t){t=t.get("interval");return null==t?"auto":t}function $_(t){return"category"===t.type&&0===K_(t.getLabelModel())}function Q_(e,t){var n={};return N(e.mapDimensionsAll(t),function(t){n[jv(e,t)]=!0}),pt(n)}function J_(t){return"middle"===t||"center"===t}function t1(t){return t.getShallow("show")}function e1(t){t.get("breaks",!0)}i1.prototype.getNeedCrossZero=function(){return!this.option.scale},i1.prototype.getCoordSysModel=function(){};var n1=i1;function i1(){}var rp=Object.freeze({__proto__:null,createDimensions:function(t,e){return Gv(t,e).dimensions},createList:function(t){return Kv(null,t)},createScale:function(t,e){var n=e;return(e=Y_(n=e instanceof up?n:new up(e))).setExtent(t[0],t[1]),X_(e,n),e},createSymbol:m0,createTextStyle:function(t,e){return Fc(t,null,null,"normal"!==(e=e||{}).state)},dataStack:{isDimensionStacked:qv,enableDataStack:Yv,getStackedDimension:jv},enableHoverEmphasis:cu,getECData:Sl,getLayoutRect:gd,mixinAxisModelCommonMethods:function(t){st(t,n1)}}),r1=[],o1={registerPreprocessor:Jm,registerProcessor:tv,registerPostInit:ev,registerPostUpdate:nv,registerUpdateLifecycle:iv,registerAction:rv,registerCoordinateSystem:ov,registerLayout:av,registerVisual:sv,registerTransform:pv,registerLoading:hv,registerMap:cv,registerImpl:function(t,e){$0[t]=e},PRIORITY:h0,ComponentModel:Id,ComponentView:fy,SeriesModel:ay,ChartView:_y,registerComponentModel:function(t){Id.registerClass(t)},registerComponentView:function(t){fy.registerClass(t)},registerSeriesModel:function(t){ay.registerClass(t)},registerChartView:function(t){_y.registerClass(t)},registerCustomSeries:function(t,e){},registerSubTypeDefaulter:function(t,e){Id.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){yo(t,e)}};function a1(t){E(t)?N(t,function(t){a1(t)}):0<=k(r1,t)||(r1.push(t),(t=z(t)?{install:t}:t).install(o1))}var s1=1e-8;function l1(t,e){return Math.abs(t-e)<s1}function u1(t,e,n){var i=0,r=t[0];if(r){for(var o=1;o<t.length;o++){var a=t[o];i+=Ls(r[0],r[1],a[0],a[1],e,n),r=a}var s=t[0];return l1(r[0],s[0])&&l1(r[1],s[1])||(i+=Ls(r[0],r[1],s[0],s[1],e,n)),0!==i}}var h1=[];function c1(t,e){for(var n=0;n<t.length;n++)ae(t[n],t[n],e)}function p1(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])&&(se(e,e,o),le(n,n,o))}}d1.prototype.setCenter=function(t){this._center=t},d1.prototype.getCenter=function(){return this._center||(this._center=this.calcCenter())};c0=d1;function d1(t){this.name=t}var f1,g1,y1=function(t,e){this.type="polygon",this.exterior=t,this.interiors=e},m1=function(t){this.type="linestring",this.points=t},v1=(u(_1,f1=c0),_1.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]},_1.prototype.getBoundingRect=function(e){var n,i,t=this._rect;return t&&!e||(n=[1/0,1/0],i=[-1/0,-1/0],N(this.geometries,function(t){"polygon"===t.type?p1(t.exterior,n,i,e):N(t.points,function(t){p1(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 U(n[0],n[1],i[0]-n[0],i[1]-n[1]),e)||(this._rect=t),t},_1.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(u1(a,t[0],t[1])){for(var l=0;l<(s?s.length:0);l++)if(u1(s[l],t[0],t[1]))continue t;return!0}}}return!1},_1.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 U(t,e,n,i)),a=r.calculateTransform(o),s=this.geometries,l=0;l<s.length;l++){var u=s[l];"polygon"===u.type?(c1(u.exterior,a),N(u.interiors,function(t){c1(t,a)})):N(u.points,function(t){c1(t,a)})}(r=this._rect).copy(o),this._center=[r.x+r.width/2,r.y+r.height/2]},_1.prototype.cloneShallow=function(t){t=new _1(t=null==t?this.name:t,this.geometries,this._center);return t._rect=this._rect,t.transformTo=null,t},_1);function _1(t,e,n){t=f1.call(this,t)||this;return t.type="geoJSON",t.geometries=e,t._center=n&&[n[0],n[1]],t}function x1(t,e){t=g1.call(this,t)||this;return t.type="geoSVG",t._elOnlyForCalculate=e,t}function b1(t,e,n){for(var i=0;i<t.length;i++)t[i]=w1(t[i],e[i],n)}function w1(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 S1(t,o){var e,n,r;return B(ht((t=(e=t).UTF8Encoding?(null==(r=(n=e).UTF8Scale)&&(r=1024),N(n.features,function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=w1(i,n,r);break;case"Polygon":case"MultiLineString":b1(i,n,r);break;case"MultiPolygon":N(i,function(t,e){return b1(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 y1(r[0],r.slice(1)));break;case"MultiPolygon":N(n.coordinates,function(t){t[0]&&i.push(new y1(t[0],t.slice(1)))});break;case"LineString":i.push(new m1([n.coordinates]));break;case"MultiLineString":i.push(new m1(n.coordinates))}t=new v1(e[o||"name"],i,e.cp);return t.properties=e,t})}u(x1,g1=c0),x1.prototype.calcCenter=function(){for(var t=this._elOnlyForCalculate,e=t.getBoundingRect(),e=[e.x+e.width/2,e.y+e.height/2],n=Ee(h1),i=t;i&&!i.isGeoSVGGraphicRoot;)Fe(n,i.getLocalTransform(),n),i=i.parent;return Ze(n,n),ae(e,e,n),e};var p0=Object.freeze({__proto__:null,MAX_SAFE_INTEGER:9007199254740991,asc:Io,getPercentWithPrecision:function(t,e,n){return t[e]&&function(t,e){var n=ut(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===n)return[];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=ut(o,function(t,e){return t+e},0),s=B(e,function(t,e){return t-o[e]});for(;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})}(t,n)[e]||0},getPixelPrecision:Lo,getPrecision:ko,getPrecisionSafe:Do,isNumeric:Vo,isRadianAroundZero:Po,linearMap:So,nice:Bo,numericToNumber:Eo,parseDate:Ro,parsePercent:Mo,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:No,quantityExponent:zo,reformIntervals:function(t){t.sort(function(t,e){return function t(e,n,i){return e.interval[i]<n.interval[i]||e.interval[i]===n.interval[i]&&(e.close[i]-n.close[i]==(i?-1:1)||!i&&t(e,n,1))}(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i<t.length;){for(var 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},remRadian:Ao,round:Co}),ba=Object.freeze({__proto__:null,format:Np,parse:Ro,roundTime:Bp}),np=Object.freeze({__proto__:null,Arc:Oh,BezierCurve:Dh,BoundingRect:U,Circle:Eu,CompoundPath:zh,Ellipse:Wu,Group:so,Image:$s,IncrementalDisplayable:n,Line:Sh,LinearGradient:Hh,Polygon:fh,Polyline:vh,RadialGradient:Eh,Rect:ol,Ring:uh,Sector:oh,Text:cl,clipPointsByRect:function(t,n){return B(t,function(t){var e=t[0],e=bo(e,n.x),t=(e=xo(e,n.x+n.width),t[1]),t=bo(t,n.y);return[e,xo(t,n.y+n.height)]})},clipRectByRect:function(t,e){var n=bo(t.x,e.x),i=xo(t.x+t.width,e.x+e.width),r=bo(t.y,e.y),t=xo(t.y+t.height,e.y+e.height);if(n<=i&&r<=t)return{x:n,y:r,width:i-n,height:t-r}},createIcon:function(t,e,n){var i=(e=P({rectHover:!0},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),rt(i,n),new $s(e)):gc(t.replace("path://",""),e,n,"center")},extendPath:function(t,e){return dc(t,e)},extendShape:function(t){return Gs.extend(t)},getShapeClass:function(t){if(hc.hasOwnProperty(t))return hc[t]},getTransform:bc,initProps:sc,makeImage:yc,makePath:gc,mergePath:vc,registerShape:fc,resizePath:_c,updateProps:ac}),kp=Object.freeze({__proto__:null,addCommas:$p,capitalFirst:function(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)},encodeHTML:Se,formatTime:function(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=(e=Ro(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",Op(r,2)).replace("M",r).replace("yyyy",i).replace("yy",Op(i%100+"",2)).replace("dd",Op(o,2)).replace("d",o).replace("hh",Op(a,2)).replace("h",a).replace("mm",Op(s,2)).replace("m",s).replace("ss",Op(l,2)).replace("s",l).replace("SSS",Op(e,3))},formatTpl:ed,getTextRect:function(t,e,n,i,r,o,a,s){return new cl({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()},getTooltipMarker:function(t,e){var n=(t=V(t)?{color:t,extraCssText:e}: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:'+Se(n)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Se(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}}:""},normalizeCssArray:Jp,toCamelCase:function(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},truncateText:function(t,e,n,i,r){var o={};return ka(o,t,e,n,i,r),o.text}}),Qc=Object.freeze({__proto__:null,bind:y,clone:v,curry:dt,defaults:rt,each:N,extend:P,filter:ht,indexOf:k,inherits:at,isArray:E,isFunction:z,isObject:H,isString:V,map:B,merge:d,reduce:ut}),M1=ea(),T1=ea(),C1={estimate:1,determine:2};function I1(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function k1(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 D1(n,t){var i,e,r,o,a,s=n.getLabelModel().get("customValues");return s?(i=q_(n),e=n.scale.getExtent(),{labels:B(ht(k1(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=A1(t,a,s),!a.get("show")||t.scale.isBlank()?{labels:[]}:s):(a=(r=n).scale.getTicks(),o=q_(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 L1(t,e,n){var i,r,o,a,s,l,u=t.getTickModel().get("customValues");return u?(i=t.scale.getExtent(),{ticks:ht(k1(t,u),function(t){return t>=i[0]&&t<=i[1]})}):"category"===t.type?(u=e,a=P1(e=t),s=K_(u),(l=N1(a,s))||(u.get("show")&&!e.scale.isBlank()||(r=[]),r=z(s)?H1(e,s,!0):"auto"===s?(l=A1(e,e.getLabelModel(),I1(C1.determine)),o=l.labelCategoryInterval,B(l.labels,function(t){return t.tickValue})):F1(e,o=s,!0),z1(a,s,{ticks:r,tickCategoryInterval:o}))):{ticks:B(t.scale.getTicks(n),function(t){return t.value})}}function A1(t,e,n){var i,r=O1(t),o=K_(e),e=n.kind===C1.estimate;if(!e){var a=N1(r,o);if(a)return a}var s={labels:z(o)?H1(t,o):F1(t,i="auto"===o?function(t,e){{var n;if(e.kind===C1.estimate)return n=t.calculateCategoryInterval(e),e.out.noPxChangeTryDetermine.push(function(){return T1(t).autoInterval=n,!0}),n}var i=T1(t).autoInterval;return null!=i?i:T1(t).autoInterval=t.calculateCategoryInterval(e)}(t,n):o),labelCategoryInterval:i};return e?n.out.noPxChangeTryDetermine.push(function(){return z1(r,o,s),!0}):z1(r,o,s),s}var P1=R1("axisTick"),O1=R1("axisLabel");function R1(e){return function(t){return T1(t)[e]||(T1(t)[e]={list:[]})}}function N1(t,e){for(var n=0;n<t.list.length;n++)if(t.list[n].key===e)return t.list[n].value}function z1(t,e,n){return t.list.push({key:e,value:n}),n}function B1(t,e){var n=e.kind,i=(a=(o=t).getLabelModel(),{axisRotate:o.getRotate?o.getRotate():o.isHorizontal&&!o.isHorizontal()?90:0,labelRotate:a.get("rotate")||0,font:a.getFont()}),r=q_(t),o=(i.axisRotate-i.labelRotate)/180*Math.PI,a=t.scale,s=a.getExtent(),a=a.count();if(s[1]-s[0]<1)return 0;for(var l=1,u=(40<a&&(l=Math.max(1,Math.floor(a/40))),s[0]),h=t.dataToCoord(u+1)-t.dataToCoord(u),c=Math.abs(h*Math.cos(o)),h=Math.abs(h*Math.sin(o)),p=0,d=0;u<=s[1];u+=l)var f=function(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return Wr(r[0],e,n,i);for(var o=new U(0,0,0,0),a=0;a<r.length;a++){var s=Wr(r[a],e,n,i);0===a?o.copy(s):o.union(s)}return o}(r({value:u}),i.font,"center","top"),g=1.3*f.width,f=1.3*f.height,p=Math.max(p,g,7),d=Math.max(d,f,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===C1.estimate?(e.out.noPxChangeTryDetermine.push(y(E1,null,t,h,a)),h):null!=(o=V1(t,h,a))?o:h}function E1(t,e,n){return null==V1(t,e,n)}function V1(t,e,n){var i=M1(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 F1(t,e,n){for(var i=q_(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)),$_(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 H1(t,i,r){var o=t.scale,a=q_(t),s=[];return N(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 W1=[0,1],ap=(G1.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},G1.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},G1.prototype.getExtent=function(){return this._extent.slice()},G1.prototype.getPixelPrecision=function(t){return Lo(t||this.scale.getExtent(),this._extent)},G1.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},G1.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(i.parse(t)),this.onBand&&"ordinal"===i.type&&Z1(n=n.slice(),i.count()),So(t,W1,n,e)},G1.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale,i=(this.onBand&&"ordinal"===i.type&&Z1(n=n.slice(),i.count()),So(t,n,W1,e));return this.scale.scale(i)},G1.prototype.pointToData=function(t,e){},G1.prototype.getTicksCoords=function(t){var e,n,i,r,o,a,s,l=(t=t||{}).tickModel||this.getTickModel(),u=B(L1(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,N(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},G1.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))},G1.prototype.getViewLabels=function(t){return D1(this,t=t||I1(C1.determine)).labels},G1.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},G1.prototype.getTickModel=function(){return this.model.getModel("axisTick")},G1.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},G1.prototype.calculateCategoryInterval=function(t){return B1(this,t=t||I1(C1.determine))},G1);function G1(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}function Z1(t,e){e=(t[1]-t[0])/e/2;t[0]+=e,t[1]-=e}var U1=2*Math.PI,X1=Ts.CMD,Y1=["top","right","bottom","left"];function q1(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 j1(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 K1=[];function $1(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 X1.M:p=f=m[x++],d=g=m[x++];break;case X1.L:w=q1(p,d,m[x],m[x+1],v,_,K1,!0),p=m[x++],d=m[x++];break;case X1.C:w=ni(p,d,m[x++],m[x++],m[x++],m[x++],m[x],m[x+1],v,_,K1),p=m[x++],d=m[x++];break;case X1.Q:w=si(p,d,m[x++],m[x++],m[x],m[x+1],v,_,K1),p=m[x++],d=m[x++];break;case X1.A:var S=m[x++],M=m[x++],T=m[x++],C=m[x++],I=m[x++],k=m[x++],D=(x+=1,!!(1-m[x++])),L=Math.cos(I)*T+S,A=Math.sin(I)*C+M;x<=1&&(f=L,g=A),A=(L=I)+k,D=D,a=(v-S)*(o=C)/T+S,s=_,l=K1,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)%U1<1e-4||((A=D?(D=L,L=ks(A),ks(D)):(L=ks(L),ks(A)))<L&&(A+=U1),(D=Math.atan2(s,a))<0&&(D+=U1),L<=D&&D<=A)||L<=D+U1&&D+U1<=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(I+k)*T+S,d=Math.sin(I+k)*C+M;break;case X1.R:w=j1(f=p=m[x++],g=d=m[x++],m[x++],m[x++],v,_,K1);break;case X1.Z:w=q1(p,d,f,g,v,_,K1,!0),p=f,d=g}w<y&&(y=w,n.set(K1[0],K1[1]))}return y}var Q1=new M,J1=new M,tx=new M,ex=new M,nx=new M;function ix(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||Y1,s=i.getBoundingRect().clone(),l=(s.applyTransform(i.getComputedTransform()),1/0),u=r.anchor,h=t.getComputedTransform(),c=h&&Ze([],h),p=e.get("length2")||0;u&&tx.copy(u);for(var d,f,g=0;g<a.length;g++){var y=a[g],m=(S=w=b=x=_=v=m=void 0,y),v=0,_=s,x=Q1,b=ex,w=_.width,S=_.height;switch(m){case"top":x.set(_.x+w/2,_.y-v),b.set(0,-1);break;case"bottom":x.set(_.x+w/2,_.y+S+v),b.set(0,1);break;case"left":x.set(_.x-v,_.y+S/2),b.set(-1,0);break;case"right":x.set(_.x+w+v,_.y+S/2),b.set(1,0)}M.scaleAndAdd(J1,Q1,ex,p),J1.transform(c);y=t.getBoundingRect(),y=u?u.distance(J1):t instanceof Gs?$1(J1,t.path,tx):(m=tx,d=j1((d=y).x,y.y,y.width,y.height,J1.x,J1.y,K1),m.set(K1[0],K1[1]),d);y<l&&(l=y,J1.transform(h),tx.transform(h),tx.toArray(o[0]),J1.toArray(o[1]),Q1.toArray(o[2]))}i=o,(r=e.get("minTurnAngle"))<=180&&0<r&&(r=r/180*Math.PI,Q1.fromArray(i[0]),J1.fromArray(i[1]),tx.fromArray(i[2]),M.sub(ex,Q1,J1),M.sub(nx,tx,J1),e=ex.len(),f=nx.len(),e<.001||f<.001||(ex.scale(1/e),nx.scale(1/f),e=ex.dot(nx),Math.cos(r)<e&&(f=q1(J1.x,J1.y,tx.x,tx.y,Q1.x,Q1.y,rx,!1),ox.fromArray(rx),ox.scaleAndAdd(nx,f/Math.tan(Math.PI-r)),e=tx.x!==J1.x?(ox.x-J1.x)/(tx.x-J1.x):(ox.y-J1.y)/(tx.y-J1.y),isNaN(e)||(e<0?M.copy(ox,J1):1<e&&M.copy(ox,tx),ox.toArray(i[1]))))),n.setShape({points:o})}}}var rx=[],ox=new M;function ax(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 sx(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=ne(i[0],i[1]),r=ne(i[1],i[2]);e&&r?(n=Math.min(e,r)*n,e=oe([],i[1],i[0],n/e),n=oe([],i[1],i[2],n/r),r=oe([],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])}var lx=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],ux=2,hx=1|ux;function cx(t,e,n){n=n||hx,e?t.dirty|=n:t.dirty&=~n}function px(t,e){return e=e||hx,null==t.dirty||t.dirty&e}function dx(t){if(t){if(px(t)){var e=t,n=t.label,i=t,r=n.getComputedTransform(),o=(e.transform=Pc(e.transform,r),e.localRect=Ac(e.localRect,n.getBoundingRect())),a=n.style,s=a.margin,l=i&&i.marginForce,u=i&&i.minMarginForce,i=i&&i.marginDefault,h=a.__marginType;null==h&&i&&(s=i,h=qc.textMargin);for(var c=0;c<4;c++)fx[c]=h===qc.minMargin&&u&&null!=u[c]?u[c]:l&&null!=l[c]?l[c]:s?s[c]:0;h===qc.textMargin&&Mc(o,fx,!1,!1),a=e.rect=Ac(e.rect,o),r&&a.applyTransform(r),h===qc.minMargin&&Mc(a,fx,!1,!1),e.axisAligned=Lc(r),(e.label=e.label||{}).ignore=n.ignore,cx(e,!1),cx(e,!0,ux)}return t}}var fx=[0,0,0,0];function gx(t,e){for(var n=0;n<lx.length;n++){var i=lx[n];null==t[i]&&(t[i]=e[i])}return dx(t)}function yx(t){var e=t.obb;return e&&!px(t,ux)||(t.obb=e=e||new Jh,e.fromBoundingRect(t.localRect,t.transform),cx(t,!1,ux)),e}function mx(s,t,e,n,i){var l=s.length,u=cc[t],h=pc[t];if(!(l<2)){s.sort(function(t,e){return t.rect[u]-e.rect[u]});for(var r=0,o=0,a=0;a<l;a++){var c,p=s[a],d=p.rect;(c=d[u]-r)<0&&(d[u]-=c,p.label[u]-=c,0),o+=Math.max(-c,0),r=d[u]+d[h]}0<o&&i&&x(-o/l,0,l);var f,g,y=s[0],m=s[l-1];v(),f<0&&b(-f,.8),g<0&&b(g,.8),v(),_(f,g,1),_(g,f,-1),v(),f<0&&w(-f),g<0&&w(g)}function v(){f=y.rect[u]-e,g=n-m.rect[u]-m.rect[h]}function _(t,e,n){t<0&&(0<(e=Math.min(e,-t))?(x(e*n,0,l),(e=e+t)<0&&b(-e*n,1)):b(-t*n,1))}function x(t,e,n){0!==t&&0;for(var i=e;i<n;i++){var r=s[i];r.rect[u]+=t,r.label[u]+=t}}function b(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++)x(n[r]*a,0,r+1);else for(r=l-1;0<r;r--)x(-(n[r-1]*a),r,l)}}function w(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?x(n,0,i+1):x(-n,l-i-1,l),(t-=n)<=0)return}}function vx(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=dx(t[i]);if(!r.label.ignore){for(var o=r.label,a=r.labelLine,s=!1,l=0;l<e.length;l++)if(_x(r,e[l],null,{touchThreshold:.05})){s=!0;break}s?(n(o),a&&n(a)):e.push(r)}}}function _x(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||yx(t).intersect(yx(e),n,i))}function xx(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 bx=["align","verticalAlign","width","height","fontSize"],Sx=new Or,Mx=ea(),Tx=ea();function Cx(t,e,n){for(var i=0;i<n.length;i++){var r=n[i];null!=e[r]&&(t[r]=e[r])}}var Ix=["x","y","rotation"],kx=(Dx.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},Dx.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=(U.applyTransform(u,u,l),l?Sx.setLocalTransform(l):(Sx.x=Sx.y=Sx.rotation=Sx.originX=Sx.originY=0,Sx.scaleX=Sx.scaleY=1),Sx.rotation=ks(Sx.rotation),i.__hostTarget),h=(l&&(o=l.getBoundingRect().plain(),h=l.getComputedTransform(),U.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:Sx.x,y:Sx.y,scaleX:Sx.scaleX,scaleY:Sx.scaleY,rotation:Sx.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:s.position,attachedRot:s.rotation}})},Dx.prototype.addLabelsOfSeries=function(t){var n=this,i=(this._chartViewList.push(t),t.__model),r=i.get("labelLayout");(z(r)||pt(r).length)&&t.group.traverse(function(t){if(t.ignore)return!0;var e=t.getTextContent(),t=Sl(t);e&&!e.disableLabelLayout&&n._addLabel(t.dataIndex,t.dataType,i,e,r)})},Dx.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(xx(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=Mo(l.x,e),o.setStyle("x",0),h=!0):(o.x=s.x,o.setStyle("x",s.style.x)),null!=l.y?(o.y=Mo(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),Mx(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<bx.length;p++){var d=bx[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(){ix(t,e)}}(a,c.getModel("labelLine"))))):(o.off("drag"),o.cursor=s.cursor)}},Dx.prototype.layout=function(t){for(var e=t.getWidth(),t=t.getHeight(),n=[],i=(N(this._labelList,function(t){t.defaultAttr.ignore||n.push(gx({},t))}),ht(n,function(t){return"shiftX"===t.layoutOption.moveOverlap})),r=ht(n,function(t){return"shiftY"===t.layoutOption.moveOverlap}),i=(mx(i,0,0,e),mx(r,1,0,t),ht(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)}vx(i)},Dx.prototype.processLabelsOverall=function(){var a=this;N(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?Mx(n).needsUpdateLabelLine:e)&&a._updateLabelLine(t,i),o&&a._animateLabels(t,i)})})},Dx.prototype._updateLabelLine=function(t,e){var n=t.getTextContent(),i=Sl(t),r=i.dataIndex;if(n&&null!=r){var n=e.getData(i.dataType),e=n.getItemModel(r),i={},r=n.getItemVisual(r,"style"),r=(r&&(n=n.getVisual("drawType"),i.stroke=r[n]),e.getModel("labelLine")),o=t,a=function(t,e){for(var n={normal:t.getModel(e=e||"labelLine")},i=0;i<Al.length;i++){var r=Al[i];n[r]=t.getModel([r,e])}return n}(e),n=i,s=o.getTextGuideLine(),l=o.getTextContent();if(l){for(var e=a.normal,u=e.get("show"),h=l.ignore,c=0;c<Pl.length;c++){var p,d=Pl[c],f=a[d],g="normal"===d;f&&(p=f.get("show"),(g?h:W(l.states[d]&&l.states[d].ignore,h))||!W(p,u)?((p=g?s:s&&s.states[d])&&(p.ignore=!0),s&&ax(s,!0,d,f)):(s||(s=new vh,o.setTextGuideLine(s),g||!h&&u||ax(s,!0,"normal",a.normal),o.stateProxy&&(s.stateProxy=o.stateProxy)),ax(s,!1,d,f)))}s&&(rt(s.style,n),s.style.fill=null,n=e.get("showAbove"),(o.textGuideLineConfig=o.textGuideLineConfig||{}).showAbove=n||!1,s.buildPath=sx)}else s&&o.removeTextGuideLine();ix(t,r)}},Dx.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||lc(t))||(o=(r=Mx(s)).oldLayout,n=(i=Sl(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),ac(s,a,e,n)):(s.attr(a),Xc(s).valueAnimation||(t=W(s.style.opacity,1),s.style.opacity=0,sc(s,{style:{opacity:t}},e,n))),r.oldLayout=a,s.states.select&&(Cx(t=r.oldLayoutSelect={},a,Ix),Cx(t,s.states.select,Ix)),s.states.emphasis&&(Cx(t=r.oldLayoutEmphasis={},a,Ix),Cx(t,s.states.emphasis,Ix)),Yc(s,n,i,e,e)),!l||l.ignore||l.invisible||(o=(r=Tx(l)).oldLayout,a={points:l.shape.points},o?(l.attr({shape:o}),ac(l,{shape:a},e)):(l.setShape(a),l.style.strokePercent=0,sc(l,{style:{strokePercent:1}},e)),r.oldLayout=a)},Dx);function Dx(){this._labelList=[],this._chartViewList=[]}var Lx=ea();function Ax(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,n){(Lx(e).labelManager||(Lx(e).labelManager=new kx)).clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(t,e,n){var i=Lx(e).labelManager;n.updatedSeries.forEach(function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))}),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()})}function Px(t,e,n){var i=G.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}a1(Ax);u(Nx,Ox=de),Nx.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},Nx.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},Nx.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},Nx.prototype.setUnpainted=function(){this.__firstTimePaint=!0},Nx.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Px("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},Nx.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var l=[],u=this.maxRepaintRectCount,h=!1,c=new U(0,0,0,0);function r(t){if(t.isFinite()&&!t.isZero())if(0===l.length)(e=new U(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 U(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 U(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&Pn||!d)?s.getPrevPaintRect():null)&&r(p),o=d&&(s.__dirty&Pn||!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},Nx.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},Nx.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)},Nx.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,vt(o)?(r=(o.global||o.__width===n&&o.__height===i)&&o.__canvasGradient||b0(a,o,{x:0,y:0,width:n,height:i}),o.__canvasGradient=r,o.__width=n,o.__height=i):_t(o)&&(o.scaleX=o.scaleX||u,o.scaleY=o.scaleY||u,r=A0(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&&N(e,function(t){p(t.x*u,t.y*u,t.width*u,t.height*u)})};var Ox,Rx=Nx;function Nx(t,e,n){var i,r=Ox.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=Px(t,e,n):H(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 zx=314159;x.prototype.getType=function(){return"canvas"},x.prototype.isSingleCanvas=function(){return this._singleCanvas},x.prototype.getViewportRoot=function(){return this._domRoot},x.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},x.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},x.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},x.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(),Z0(i,a,r,o===e-1))}i&&i.restore()}},x.prototype.getHoverLayer=function(){return this.getLayer(1e5)},x.prototype.paintOne=function(t,e){G0(t,e)},x.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,Vn(function(){a._paintList(t,e,n,i)})))},x.prototype._compositeManually=function(){var e=this.getLayer(zx).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)})},x.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 p.wxa&&N(this._layers,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),{finished:_,needsRefreshHover:x}},x.prototype._doPaintEl=function(t,e,n,i,r,o){e=e.ctx;n?(n=t.getPaintRect(),(!i||n&&n.intersect(i))&&(Z0(e,t,r,o),t.setPrevPaintRect(n))):Z0(e,t,r,o)},x.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=zx);var n=this._layers[t];return n||((n=new Rx("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},x.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)}},x.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)}},x.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)}},x.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)}},x.prototype.getLayers=function(){return this._layers},x.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__||it("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&Pn&&!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)})},x.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},x.prototype._clearLayer=function(t){t.clear()},x.prototype.setBackgroundColor=function(t){this._backgroundColor=t,N(this._layers,function(t){t.setUnpainted()})},x.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)}}},x.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))},x.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=S0(r,0,i),e=S0(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(zx).resize(t,e)}return this},x.prototype.clearLayer=function(t){t=this._layers[t];t&&t.clear()},x.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},x.prototype.getRenderedCanvas=function(t){if(this._singleCanvas&&!this._compositeManually)return this._layers[zx].dom;var e=new Rx("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];Z0(n,u,o,s===l-1)}return e.dom},x.prototype.getWidth=function(){return this._width},x.prototype.getHeight=function(){return this._height};var Bx=x;function x(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 Rx(r,this,this.dpr)).__builtin__=!0,o.initContext(),(s[zx]=o).zlevel=zx,e.push(zx),this._domRoot=t):(this._width=S0(t,0,n),this._height=S0(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(Fx,Ex=Id),Fx.prototype.init=function(t,e,n){Ex.prototype.init.call(this,t,e,n),this._sourceManager=new jg(this),$g(this)},Fx.prototype.mergeOption=function(t,e){Ex.prototype.mergeOption.call(this,t,e),$g(this)},Fx.prototype.optionUpdated=function(){this._sourceManager.dirty()},Fx.prototype.getSourceManager=function(){return this._sourceManager},Fx.type="dataset",Fx.defaultOption={seriesLayoutBy:Hd};var Ex,Vx=Fx;function Fx(){var t=null!==Ex&&Ex.apply(this,arguments)||this;return t.type="dataset",t}u(Gx,Hx=fy),Gx.type="dataset";var Hx,Wx=Gx;function Gx(){var t=null!==Hx&&Hx.apply(this,arguments)||this;return t.type="dataset",t}function Zx(t){t.registerComponentModel(Vx),t.registerComponentView(Wx)}function Ux(t){var o=t.findComponents({mainType:"legend"});o&&o.length&&t.eachSeriesByType("graph",function(t){var e=t.getCategoriesData(),i=t.getGraph().data,r=e.mapArray(e.getName);i.filterSelf(function(t){var e=i.getItemModel(t).getShallow("category");if(null!=e){F(e)&&(e=r[e]);for(var n=0;n<o.length;n++)if(!o[n].isSelected(e))return!1}return!0})})}function Xx(t){var h={};t.eachSeriesByType("graph",function(s){var l=s.getCategoriesData(),o=s.getData(),u={};l.each(function(t){for(var e=l.getName(t),n=(u["ec-"+e]=t,l.getItemModel(t)),i=n.getModel("itemStyle").getItemStyle(),r=(i.fill||(i.fill=s.getColorFromPalette(e,h)),l.setItemVisual(t,"style",i),["symbol","symbolSize","symbolKeepAspect"]),o=0;o<r.length;o++){var a=n.getShallow(r[o],!0);null!=a&&l.setItemVisual(t,r[o],a)}}),l.count()&&o.each(function(t){var e=o.getItemModel(t).getShallow("category");if(null!=e){V(e)&&(e=u["ec-"+e]);for(var n=l.getItemVisual(e,"style"),i=(P(o.ensureUniqueItemVisual(t,"style"),n),["symbol","symbolSize","symbolKeepAspect"]),r=0;r<i.length;r++)o.setItemVisual(t,i[r],l.getItemVisual(e,i[r]))}})})}function Yx(t){return t=t instanceof Array?t:[t,t]}function qx(t){t.eachSeriesByType("graph",function(t){var s=t.getGraph(),l=t.getEdgeData(),e=Yx(t.get("edgeSymbol")),n=Yx(t.get("edgeSymbolSize"));l.setVisual("fromSymbol",e&&e[0]),l.setVisual("toSymbol",e&&e[1]),l.setVisual("fromSymbolSize",n&&n[0]),l.setVisual("toSymbolSize",n&&n[1]),l.setVisual("style",t.getModel("lineStyle").getLineStyle()),l.each(function(t){var e=l.getItemModel(t),n=s.getEdgeByIndex(t),i=Yx(e.getShallow("symbol",!0)),r=Yx(e.getShallow("symbolSize",!0)),e=e.getModel("lineStyle").getLineStyle(),o=l.ensureUniqueItemVisual(t,"style");switch(P(o,e),o.stroke){case"source":var a=n.node1.getVisual("style");o.stroke=a&&a.fill;break;case"target":a=n.node2.getVisual("style");o.stroke=a&&a.fill}i[0]&&n.setVisual("fromSymbol",i[0]),i[1]&&n.setVisual("toSymbol",i[1]),r[0]&&n.setVisual("fromSymbolSize",r[0]),r[1]&&n.setVisual("toSymbolSize",r[1])})})}a1([function(t){t.registerPainter("canvas",Bx)},Zx]),a1(Ax);var jx="--\x3e",Kx=function(t){return t.get("autoCurveness")||null},$x=function(t,e){var n=Kx(t),i=20,r=[];if(F(n))i=n;else if(E(n))return void(t.__curvenessList=n);for(var o=(i=i<e?e:i)%2?i+2:i+3,r=[],a=0;a<o;a++)r.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=r},Qx=function(t,e,n){t=[t.id,t.dataIndex].join("."),e=[e.id,e.dataIndex].join(".");return[n.uid,t,e].join(jx)},Jx=function(t){t=t.split(jx);return[t[0],t[2],t[1]].join(jx)},tb=function(t,e){t=Qx(t.node1,t.node2,e);return e.__edgeMap[t]},eb=function(t,e){return nb(Qx(t.node1,t.node2,e),e)+nb(Qx(t.node2,t.node1,e),e)},nb=function(t,e){e=e.__edgeMap;return e[t]?e[t].length:0};function ib(t,e,n,i){var r=Kx(e),o=E(r);if(!r)return null;var a=tb(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=eb(t,e),t=($x(e,u),t.lineStyle=t.lineStyle||{},Qx(t.node1,t.node2,e)),h=e.__curvenessList,u=o||u%2?0:1;return a.isForward?h[u+s]:(t=Jx(t),e=h[s+(t=nb(t,e))+u],i?!o||r&&0===r[0]?(t+u)%2?e:-e:((t%2?0:1)+u)%2?e:-e:h[s+t+u])}function rb(t){var e=t.coordinateSystem;e&&"view"!==e.type||((e=t.getGraph()).eachNode(function(t){var e=t.getModel();t.setLayout([+e.get("x"),+e.get("y")])}),ob(e,t))}function ob(t,o){t.eachEdge(function(t,e){var e=St(t.getModel().get(["lineStyle","curveness"]),-ib(t,o,e,!0),0),n=Xt(t.node1.getLayout()),i=Xt(t.node2.getLayout()),r=[n,i];+e&&r.push([(n[0]+i[0])/2-(n[1]-i[1])*e,(n[1]+i[1])/2-(i[0]-n[0])*e]),t.setLayout(r)})}function ab(t,e){t.eachSeriesByType("graph",function(t){var e=t.get("layout"),n=t.coordinateSystem;if(n&&"view"!==n.type){var i=t.getData(),r=[];N(n.dimensions,function(t){r=r.concat(i.mapDimensionsAll(t))});for(var o=0;o<i.count();o++){for(var a=[],s=!1,l=0;l<r.length;l++){var u=i.get(r[l],o);isNaN(u)||(s=!0),a.push(u)}s?i.setItemLayout(o,n.dataToPoint(a)):i.setItemLayout(o,[NaN,NaN])}ob(i.graph,t)}else e&&"none"!==e||rb(t)})}function sb(t){var e,n=t.coordinateSystem;return"view"!==n.type?1:(t=t.option.nodeScaleRatio,e=n.scaleX,((n.getZoom()-1)*t+1)/e)}function lb(t){t=t.getVisual("symbolSize");return+(t=t instanceof Array?(t[0]+t[1])/2:t)}var ub=Math.PI,hb=[];function cb(s,t,e,n){var i,r,l,u,o,a,h=s.coordinateSystem;h&&"view"!==h.type||(o=h.getBoundingRect(),r=(i=s.getData()).graph,l=o.width/2+o.x,u=o.height/2+o.y,o=Math.min(o.width,o.height)/2,a=i.count(),i.setLayout({cx:l,cy:u}),a&&(e&&(n=(h=h.pointToData(n))[0],h=h[1],te(n=[n-l,h-u],n),Jt(n,n,o),e.setLayout([l+n[0],u+n[1]],!0),db(e,s.get(["circular","rotateLabel"]),l,u)),pb[t](s,r,i,o,l,u,a),r.eachEdge(function(t,e){var n,e=St(t.getModel().get(["lineStyle","curveness"]),ib(t,s,e),0),i=Xt(t.node1.getLayout()),r=Xt(t.node2.getLayout()),o=(i[0]+r[0])/2,a=(i[1]+r[1])/2;+e&&(n=[l*(e*=3)+o*(1-e),u*e+a*(1-e)]),t.setLayout([i,r,n])})))}var pb={value:function(t,e,n,i,r,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode(function(t){var e=t.getValue("value"),e=u*(l?e:1)/2;s+=e,t.setLayout([i*Math.cos(s)+r,i*Math.sin(s)+o]),s+=e})},symbolSize:function(t,e,n,i,r,o,a){var s=0,l=(hb.length=a,sb(t)),u=(e.eachNode(function(t){var e=lb(t),e=((e=isNaN(e)?2:e)<0&&(e=0),e*=l,Math.asin(e/2/i));isNaN(e)&&(e=ub/2),hb[t.dataIndex]=e,s+=2*e}),(2*ub-s)/a/2),h=0;e.eachNode(function(t){var e=u+hb[t.dataIndex];h+=e,t.getLayout()&&t.getLayout().fixed||t.setLayout([i*Math.cos(h)+r,i*Math.sin(h)+o]),h+=e})}};function db(t,e,n,i){var r,o=t.getGraphicEl();o&&(r=t.getModel().get(["label","rotate"])||0,o=o.getSymbolPath(),e?(e=t.getLayout(),(t=Math.atan2(e[1]-i,e[0]-n))<0&&(t=2*Math.PI+t),(i=e[0]<n)&&(t-=Math.PI),o.setTextConfig({rotation:-t,position:e=i?"left":"right",origin:"center"}),P((n=o.ensureState("emphasis")).textConfig||(n.textConfig={}),{position:e})):o.setTextConfig({rotation:r*=Math.PI/180}))}function fb(t){t.eachSeriesByType("graph",function(t){"circular"===t.get("layout")&&cb(t,"symbolSize")})}var gb=jt;function yb(t){t.eachSeriesByType("graph",function(r){var h,c,p,t,i,o,a,s,l,e,n,u,d=r.coordinateSystem;d&&"view"!==d.type||("force"===r.get("layout")?(h=r.preservedPoints||{},c=r.getGraph(),p=c.data,u=c.edgeData,e=(t=r.getModel("force")).get("initLayout"),r.preservedPoints?p.each(function(t){var e=p.getId(t);p.setItemLayout(t,h[e]||[NaN,NaN])}):e&&"none"!==e?"circular"===e&&cb(r,"value"):rb(r),i=p.getDataExtent("value"),o=u.getDataExtent("value"),e=t.get("repulsion"),n=t.get("edgeLength"),a=E(e)?e:[e,e],s=[(s=E(n)?n:[n,n])[1],s[0]],l=p.mapArray("value",function(t,e){var n=p.getItemLayout(e),t=So(t,i,a);return{w:t=isNaN(t)?(a[0]+a[1])/2:t,rep:t,fixed:p.getItemModel(e).get("fixed"),p:!n||isNaN(n[0])||isNaN(n[1])?null:n}}),e=u.mapArray("value",function(t,e){var n=c.getEdgeByIndex(e),t=So(t,o,s),i=(isNaN(t)&&(t=(s[0]+s[1])/2),n.getModel()),e=St(n.getModel().get(["lineStyle","curveness"]),-ib(n,r,e,!0),0);return{n1:l[n.node1.dataIndex],n2:l[n.node2.dataIndex],d:t,curveness:e,ignoreForceLayout:i.get("ignoreForceLayout")}}),n=d.getBoundingRect(),(u=function(t,e,n){for(var d=t,f=e,i=(t=n.rect).width,r=t.height,g=[t.x+i/2,t.y+r/2],y=null==n.gravity?.1:n.gravity,o=0;o<d.length;o++){var a=d[o];a.p||(a.p=Zt(i*(Math.random()-.5)+g[0],r*(Math.random()-.5)+g[1])),a.pp=Xt(a.p),a.edges=null}var m,v,s=null==n.friction?.6:n.friction,_=s;return{warmUp:function(){_=.8*s},setFixed:function(t){d[t].fixed=!0},setUnfixed:function(t){d[t].fixed=!1},beforeStep:function(t){m=t},afterStep:function(t){v=t},step:function(t){m&&m(d,f);for(var e=[],n=d.length,i=0;i<f.length;i++){var r=f[i];r.ignoreForceLayout||(a=r.n1,Kt(e,(o=r.n2).p,a.p),l=$t(e)-r.d,r=o.w/(a.w+o.w),isNaN(r)&&(r=0),te(e,e),a.fixed||gb(a.p,a.p,e,r*l*_),o.fixed)||gb(o.p,o.p,e,-(1-r)*l*_)}for(i=0;i<n;i++)(h=d[i]).fixed||(Kt(e,g,h.p),gb(h.p,h.p,e,y*_));for(i=0;i<n;i++)for(var o,a=d[i],s=i+1;s<n;s++){Kt(e,(o=d[s]).p,a.p);0===(l=$t(e))&&(Yt(e,Math.random()-.5,Math.random()-.5),l=1);var l,u=(a.rep+o.rep)/l/l;a.fixed||gb(a.pp,a.pp,e,u),o.fixed||gb(o.pp,o.pp,e,-u)}for(var h,c=[],i=0;i<n;i++)(h=d[i]).fixed||(Kt(c,h.p,h.pp),gb(h.p,h.p,c,_),Ut(h.pp,h.p));var p=(_*=.992)<.01;v&&v(d,f,p),t&&t(p)}}}(l,e,{rect:n,gravity:t.get("gravity"),friction:t.get("friction")})).beforeStep(function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].fixed&&Ut(t[n].p,c.getNodeByIndex(n).getLayout())}),u.afterStep(function(t,e,n){for(var i=0,r=t.length;i<r;i++)t[i].fixed||c.getNodeByIndex(i).setLayout(t[i].p),h[p.getId(i)]=t[i].p;for(i=0,r=e.length;i<r;i++){var o=e[i],a=c.getEdgeByIndex(i),s=o.n1.p,l=o.n2.p,u=a.getLayout();(u=u?u.slice():[])[0]=u[0]||[],u[1]=u[1]||[],Ut(u[0],s),Ut(u[1],l),+o.curveness&&(u[2]=[(s[0]+l[0])/2-(s[1]-l[1])*o.curveness,(s[1]+l[1])/2-(l[0]-s[0])*o.curveness]),a.setLayout(u)}}),r.forceLayout=u,r.preservedPoints=h,u.step()):r.forceLayout=null)})}function mb(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function vb(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 _b(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 xb,bb=ae,wb=(u(Sb,xb=Or),Sb.prototype.setBoundingRect=function(t,e,n,i){return this._rect=new U(t,e,n,i),this._updateCenterAndZoom(),this._rect},Sb.prototype.getBoundingRect=function(){return this._rect},Sb.prototype.setViewRect=function(t,e,n,i){this._transformTo(t,e,n,i),this._viewRect=new U(t,e,n,i)},Sb.prototype._transformTo=function(t,e,n,i){var r=this.getBoundingRect(),o=this._rawTransformable,r=(o.transform=r.calculateTransform(new U(t,e,n,i)),o.parent);o.parent=null,o.decomposeTransform(),o.parent=r,this._updateTransform()},Sb.prototype.setCenter=function(t){var e=this._opt;e&&e.api&&e.ecModel&&e.ecModel.getShallow("legacyViewCoordSysCenterBase")&&(t=t&&[Mo(t[0],e.api.getWidth()),Mo(t[1],e.api.getWidth())]),this._centerOption=v(t),this._updateCenterAndZoom()},Sb.prototype.setZoom=function(t){this._zoom=_b(t||1,this.zoomLimit),this._updateCenterAndZoom()},Sb.prototype.getDefaultCenter=function(){var t=this.getBoundingRect();return[t.x+t.width/2,t.y+t.height/2]},Sb.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},Sb.prototype.getZoom=function(){return this._zoom||1},Sb.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},Sb.prototype._updateCenterAndZoom=function(){var t=this._centerOption,e=this._rect,t=(t&&e&&(this._center=[Mo(t[0],e.width,e.x),Mo(t[1],e.height,e.y)]),this._rawTransformable.getLocalTransform()),e=this._roamTransformable,n=this.getDefaultCenter(),i=this.getCenter(),r=this.getZoom(),i=ae([],i,t),n=ae([],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()},Sb.prototype._updateTransform=function(){var t=this._roamTransformable,e=this._rawTransformable;(e.parent=t).updateTransform(),e.updateTransform(),Ve(this.transform||(this.transform=[]),e.transform||Be()),this._rawTransform=e.getLocalTransform(),this.invTransform=this.invTransform||[],Ze(this.invTransform,this.transform),this.decomposeTransform()},Sb.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}}},Sb.prototype.getViewRect=function(){return this._viewRect},Sb.prototype.getViewRectAfterRoam=function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},Sb.prototype.dataToPoint=function(t,e,n){e=e?this._rawTransform:this.transform;return n=n||[],e?bb(n,t,e):Ut(n,t)},Sb.prototype.pointToData=function(t,e,n){n=n||[];var i=this.invTransform;return i?bb(n,t,i):(n[0]=t[0],n[1]=t[1],n)},Sb.prototype.convertToPixel=function(t,e,n){e=Mb(e);return e===this?e.dataToPoint(n):null},Sb.prototype.convertFromPixel=function(t,e,n){e=Mb(e);return e===this?e.pointToData(n):null},Sb.prototype.containPoint=function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])},Sb.dimensions=["x","y"],Sb);function Sb(t,e){var n=xb.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 Mb(t){t=t.seriesModel;return t?t.coordinateSystem:null}function Tb(t,e,n){var i,r,o,a,e=vd(t,e),e=gd(P(t.getBoxLayoutParams(),{aspect:n}),e.refContainer);return e=e,n=n,!(a=(t=t).getShallow("preserveAspect",!0))||(i=e.width/e.height,Math.abs(Math.atan(n)-Math.atan(i))<1e-9)?e:(r=t.getShallow("preserveAspectAlign",!0),t=t.getShallow("preserveAspectVerticalAlign",!0),o={width:e.width,height:e.height},a="cover"===a,n<i&&!a||i<n&&a?(o.width=e.height*n,"left"===r?o.left=0:"right"===r?o.right=0:o.left="center"):(o.height=e.width/n,"top"===t?o.top=0:"bottom"===t?o.bottom=0:o.top="middle"),gd(o,e))}function Cb(s,l){var u=[];return s.eachSeriesByType("graph",function(a){hd({targetModel:a,coordSysType:"view",coordSysProvider:function(){var e=a.getData(),t=e.mapArray(function(t){t=e.getItemModel(t);return[+t.get("x"),+t.get("y")]}),n=[],i=[];(function(t,e,n){if(0!==t.length){for(var i=t[0],r=i[0],o=i[0],a=i[1],s=i[1],l=1;l<t.length;l++)i=t[l],r=Qa(r,i[0]),o=Ja(o,i[0]),a=Qa(a,i[1]),s=Ja(s,i[1]);e[0]=r,e[1]=a,n[0]=o,n[1]=s}})(t,n,i),i[0]-n[0]==0&&(i[0]+=1,--n[0]);i[1]-n[1]==0&&(i[1]+=1,--n[1]);var t=(i[0]-n[0])/(i[1]-n[1]),r=Tb(a,l,t);isNaN(t)&&(n=[r.x,r.y],i=[r.x+r.width,r.y+r.height]);var t=i[0]-n[0],i=i[1]-n[1],o=new wb(null,{api:l,ecModel:s});return o.zoomLimit=a.get("scaleLimit"),o.setBoundingRect(n[0],n[1],t,i),o.setViewRect(r.x,r.y,r.width,r.height),o.setCenter(a.get("center")),o.setZoom(a.get("zoom")),u.push(o),o},isDefaultDataCoordSys:!0})}),u}u(Db,Ib=so),Db.prototype._createSymbol=function(t,e,n,i,r,o){this.removeAll();o=m0(t,-1,-1,2,2,null,o);o.attr({z2:W(r,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=Lb,this._symbolType=t,this.add(o)},Db.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},Db.prototype.getSymbolType=function(){return this._symbolType},Db.prototype.getSymbolPath=function(){return this.childAt(0)},Db.prototype.highlight=function(){tu(this.childAt(0))},Db.prototype.downplay=function(){eu(this.childAt(0))},Db.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},Db.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},Db.prototype.updateData=function(t,e,n,i){this.silent=!1;var r,o,a,s=t.getItemVisual(e,"symbol")||"circle",l=t.hostModel,u=Db.getSymbolSize(t,e),h=Db.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):ac(o,a,l,e),rc(s=o).oldStyle=s.style),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,sc(o,a,l,e))),p&&this.childAt(0).stopAnimation("leave")},Db.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=Vc(i),p=g.getShallow("scale"),y=i.getShallow("cursor")),e.getItemVisual(t,"symbolRotate")),i=(d.attr("rotation",(g||0)*Math.PI/180||0),_0(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 $s?(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);Ec(d,c,{labelFetcher:f,labelDataIndex:t,defaultText:function(t){return v?e.getName(t):function(t,e){var n,i=t.mapDimensionsAll("defaultedLabel"),r=i.length;if(1===r)return null!=(n=og(t,e,i[0]))?n+"":null;if(r){for(var o=[],a=0;a<i.length;a++)o.push(og(t,e,i[a]));return o.join(" ")}}(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),pu(this,l,u,h)},Db.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},Db.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Sl(this).dataIndex,o=n&&n.animation;this.silent=i.silent=!0,n&&n.fadeLabel?(n=i.getTextContent())&&uc(n,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}}):i.removeTextContent(),uc(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},Db.getSymbolSize=function(t,e){return v0(t.getItemVisual(e,"symbolSize"))},Db.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")};var Ib,kb=Db;function Db(t,e,n,i){var r=Ib.call(this)||this;return r.updateData(t,e,n,i),r}function Lb(t,e){this.parent.drift(t,e)}function Ab(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 Pb(t){return(t=null==t||H(t)?t:{isIgnore:t})||{}}function Ob(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:Vc(t),cursorStyle:t.get("cursor")}}Nb.prototype.updateData=function(o,a){this._progressiveEls=null,a=Pb(a);var s=this.group,l=o.hostModel,u=this._data,h=this._SymbolCtor,c=a.disableAnimation,p=Ob(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);Ab(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);Ab(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):ac(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},Nb.prototype.updateLayout=function(){var n=this,t=this._data;t&&t.eachItemGraphicEl(function(t,e){e=n._getSymbolPoint(e);t.setPosition(e),t.markRedraw()})},Nb.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ob(t),this._data=null,this.group.removeAll()},Nb.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=Pb(n);for(var r=t.start;r<t.end;r++){var o,a=e.getItemLayout(r);Ab(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))}},Nb.prototype.eachRendered=function(t){Dc(this._progressiveEls||this.group,t)},Nb.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 Rb=Nb;function Nb(t){this.group=new so,this._SymbolCtor=t||kb}var zb,Bb=Sh.prototype,Eb=Dh.prototype,Vb=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1};function Fb(){return null!==zb&&zb.apply(this,arguments)||this}function Hb(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}u(Fb,zb=Vb);u(Zb,Wb=Gs),Zb.prototype.getDefaultStyle=function(){return{stroke:g.color.neutral99,fill:null}},Zb.prototype.getDefaultShape=function(){return new Vb},Zb.prototype.buildPath=function(t,e){(Hb(e)?Bb:Eb).buildPath.call(this,t,e)},Zb.prototype.pointAt=function(t){return(Hb(this.shape)?Bb:Eb).pointAt.call(this,t)},Zb.prototype.tangentAt=function(t){var e=this.shape,e=Hb(e)?[e.x2-e.x1,e.y2-e.y1]:Eb.tangentAt.call(this,t);return te(e,e)};var Wb,Gb=Zb;function Zb(t){t=Wb.call(this,t)||this;return t.type="ec-line",t}var Ub=["fromSymbol","toSymbol"];function Xb(t){return"_"+t+"Type"}function Yb(t,e,n){var i,r,o,a=e.getItemVisual(n,t);return a&&"none"!==a?(i=e.getItemVisual(n,t+"Size"),r=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),e=e.getItemVisual(n,t+"KeepAspect"),a+(n=v0(i))+_0(o||0,n)+(r||"")+(e||"")):a}function qb(t,e,n){var i,r,o,a=e.getItemVisual(n,t);if(a&&"none"!==a)return o=e.getItemVisual(n,t+"Size"),i=e.getItemVisual(n,t+"Rotate"),r=e.getItemVisual(n,t+"Offset"),e=e.getItemVisual(n,t+"KeepAspect"),r=_0(r||0,n=v0(o)),(o=m0(a,-n[0]/2+r[0],-n[1]/2+r[1],n[0],n[1],null,e)).__specifiedRotation=null==i||isNaN(i)?void 0:+i*Math.PI/180||0,o.name=t,o}function jb(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;e=e[2];e?(t.cpx1=e[0],t.cpy1=e[1]):(t.cpx1=NaN,t.cpy1=NaN)}u(Qb,Kb=so),Qb.prototype._createLine=function(n,i,t){var e,r=n.hostModel,o=n.getItemLayout(i),a=n.getItemVisual(i,"z2"),o=(o=o,jb((e=new Gb({name:"line",subPixelOptimize:!0})).shape,o),e);o.shape.percent=0,sc(o,{z2:W(a,0),shape:{percent:1}},r,i),this.add(o),N(Ub,function(t){var e=qb(t,n,i);this.add(e),this[Xb(t)]=Yb(t,n,i)},this),this._updateCommonStl(n,i,t)},Qb.prototype.updateData=function(i,r,t){var e=i.hostModel,n=this.childOfName("line"),o=i.getItemLayout(r),a={shape:{}};jb(a.shape,o),ac(n,a,e,r),N(Ub,function(t){var e=Yb(t,i,r),n=Xb(t);this[n]!==e&&(this.remove(this.childOfName(t)),t=qb(t,i,r),this.add(t)),this[n]=e},this),this._updateCommonStl(i,r,t)},Qb.prototype.getLinePath=function(){return this.childAt(0)},Qb.prototype._updateCommonStl=function(n,t,e){var i=n.hostModel,o=this.childOfName("line"),r=e&&e.emphasisLineStyle,a=e&&e.blurLineStyle,s=e&&e.selectLineStyle,l=e&&e.labelStatesModels,u=e&&e.emphasisDisabled,h=e&&e.focus,c=e&&e.blurScope,p=(e&&!n.hasItemOption||(r=(f=(e=n.getItemModel(t)).getModel("emphasis")).getModel("lineStyle").getLineStyle(),a=e.getModel(["blur","lineStyle"]).getLineStyle(),s=e.getModel(["select","lineStyle"]).getLineStyle(),u=f.get("disabled"),h=f.get("focus"),c=f.get("blurScope"),l=Vc(e)),n.getItemVisual(t,"style")),d=p.stroke,f=(o.useStyle(p),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=r,o.ensureState("blur").style=a,o.ensureState("select").style=s,N(Ub,function(t){var e=this.childOfName(t);if(e){e.setColor(d),e.style.opacity=p.opacity;for(var n=0;n<Al.length;n++){var i=Al[n],r=o.getState(i);r&&(r=r.style||{},i=(i=e.ensureState(i)).style||(i.style={}),null!=r.stroke&&(i[e.__isEmptyBrush?"stroke":"fill"]=r.stroke),null!=r.opacity)&&(i.opacity=r.opacity)}e.markRedraw()}},this),i.getRawValue(t)),e=(Ec(this,l,{labelDataIndex:t,labelFetcher:{getFormattedLabel:function(t,e){return i.getFormattedLabel(t,e,n.dataType)}},inheritColor:d||g.color.neutral99,defaultOpacity:p.opacity,defaultText:(null==f?n.getName(t):isFinite(f)?Co(f):f)+""}),this.getTextContent());e&&(r=l.normal,e.__align=e.style.align,e.__verticalAlign=e.style.verticalAlign,e.__position=r.get("position")||"middle",E(a=r.get("distance"))||(a=[a,a]),e.__labelDistance=a),this.setTextConfig({position:null,local:!0,inside:!1}),pu(this,h,c,u)},Qb.prototype.highlight=function(){tu(this)},Qb.prototype.downplay=function(){eu(this)},Qb.prototype.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},Qb.prototype.setLinePoints=function(t){var e=this.childOfName("line");jb(e.shape,t),e.dirty()},Qb.prototype.beforeUpdate=function(){var t=this.childOfName("fromSymbol"),e=this.childOfName("toSymbol"),n=this.getTextContent();if(t||e||n&&!n.ignore){for(var i=1,r=this.parent;r;)r.scaleX&&(i/=r.scaleX),r=r.parent;var o=this.childOfName("line");if(this.__dirty||o.__dirty){var a=o.shape.percent,s=o.pointAt(0),l=o.pointAt(a),u=Kt([],l,s);if(te(u,u),t&&(t.setPosition(s),v(t,0),t.scaleX=t.scaleY=i*a,t.markRedraw()),e&&(e.setPosition(l),v(e,1),e.scaleX=e.scaleY=i*a,e.markRedraw()),n&&!n.ignore){n.x=n.y=0;var h=void(n.originX=n.originY=0),c=void 0,t=n.__labelDistance,p=t[0]*i,d=t[1]*i,e=a/2,f=o.tangentAt(e),t=[f[1],-f[0]],g=o.pointAt(e),y=(0<t[1]&&(t[0]=-t[0],t[1]=-t[1]),f[0]<0?-1:1),m=("start"!==n.__position&&"end"!==n.__position&&(a=-Math.atan2(f[1],f[0]),l[0]<s[0]&&(a=Math.PI+a),n.rotation=a),void 0);switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":m=-d,c="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":m=d,c="top";break;default:m=0,c="middle"}switch(n.__position){case"end":n.x=u[0]*p+l[0],n.y=u[1]*d+l[1],h=.8<u[0]?"left":u[0]<-.8?"right":"center",c=.8<u[1]?"top":u[1]<-.8?"bottom":"middle";break;case"start":n.x=-u[0]*p+s[0],n.y=-u[1]*d+s[1],h=.8<u[0]?"right":u[0]<-.8?"left":"center",c=.8<u[1]?"bottom":u[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=p*y+s[0],n.y=s[1]+m,h=f[0]<0?"right":"left",n.originX=-p*y,n.originY=-m;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=g[0],n.y=g[1]+m,h="center",n.originY=-m;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-p*y+l[0],n.y=l[1]+m,h=0<=f[0]?"right":"left",n.originX=p*y,n.originY=-m}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||c,align:n.__align||h})}}}function v(t,e){var n,i=t.__specifiedRotation;null==i?(n=o.tangentAt(e),t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))):t.attr("rotation",i)}};var Kb,$b=Qb;function Qb(t,e,n){var i=Kb.call(this)||this;return i._createLine(t,e,n),i}tw.prototype.updateData=function(n){var i=this,e=(this._progressiveEls=null,this.group),r=this._lineData,o=(this._lineData=n,r||e.removeAll(),ew(n));n.diff(r).add(function(t){i._doAdd(n,t,o)}).update(function(t,e){i._doUpdate(r,n,e,t,o)}).remove(function(t){e.remove(r.getItemGraphicEl(t))}).execute()},tw.prototype.updateLayout=function(){var n=this._lineData;n&&n.eachItemGraphicEl(function(t,e){t.updateLayout(n,e)},this)},tw.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=ew(t),this._lineData=null,this.group.removeAll()},tw.prototype.incrementalUpdate=function(t,e){function n(t){var e;t.isGroup||(e=t).animators&&0<e.animators.length||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i,r=t.start;r<t.end;r++)iw(e.getItemLayout(r))&&((i=new this._LineCtor(e,r,this._seriesScope)).traverse(n),this.group.add(i),e.setItemGraphicEl(r,i),this._progressiveEls.push(i))},tw.prototype.remove=function(){this.group.removeAll()},tw.prototype.eachRendered=function(t){Dc(this._progressiveEls||this.group,t)},tw.prototype._doAdd=function(t,e,n){iw(t.getItemLayout(e))&&(n=new this._LineCtor(t,e,n),t.setItemGraphicEl(e,n),this.group.add(n))},tw.prototype._doUpdate=function(t,e,n,i,r){t=t.getItemGraphicEl(n);iw(e.getItemLayout(i))?(t?t.updateData(e,i,r):t=new this._LineCtor(e,i,r),e.setItemGraphicEl(i,t),this.group.add(t)):this.group.remove(t)};var Jb=tw;function tw(t){this.group=new so,this._LineCtor=t||$b}function ew(t){var t=t.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Vc(t)}}function nw(t){return isNaN(t[0])||isNaN(t[1])}function iw(t){return t&&!nw(t[0])&&!nw(t[1])}var rw=ea();function ow(t,e){return rw(t)[e]}rv({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Ft);var aw={axisPointer:1,tooltip:1,brush:1};u(uw,sw=de),uw.prototype.isDragging=function(){return this._dragging},uw.prototype.isPinching=function(){return this._pinching},uw.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&&!aw.hasOwnProperty(e.mainType)){var t=e.coordinateSystem;if(t&&t.model!==n)return t=Oc(e),e=Oc(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},uw.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},uw.prototype.dispose=function(){this.disable()},uw.prototype._mousedownHandler=function(t){if(!Pe(t)&&!hw(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)}},uw.prototype._mousemoveHandler=function(t){var e,n,i,r,o,a,s=this._zr;"pinch"===t.gestureEvent||ow(s,"globalPan")||hw(t)||(e=t.offsetX,n=t.offsetY,this._dragging&&yw("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&&Ae(t.event),t.__ecRoamConsumed=!0,gw(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))},uw.prototype._mouseupHandler=function(t){var e;hw(t)||(e=this._zr,!Pe(t)&&(this._dragging=!1,t=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0))&&e.setCursorStyle(t))},uw.prototype._mousewheelHandler=function(t){var e,n,i,r,o,a;hw(t)||(o=yw("zoomOnMouseWheel",t,this._opt),e=yw("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})))},uw.prototype._pinchHandler=function(t){var e;ow(this._zr,"globalPan")||hw(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}))},uw.prototype._checkTriggerMoveZoom=function(t,e,n,i,r){t._checkPointer(i,r.originX,r.originY)&&(Ae(i.event),i.__ecRoamConsumed=!0,gw(t,e,n,i,r))};var sw,lw=uw;function uw(o){var t=sw.call(this)||this,a=(t._zr=o,y(t._mousedownHandler,t)),s=y(t._mousemoveHandler,t),l=y(t._mouseupHandler,t),u=y(t._mousewheelHandler,t),h=y(t._pinchHandler,t);return t.enable=function(t,e){var n=e.zInfo,i=Oc(n.component),r=i.z,i=i.zlevel,r={component:n.component,z:r,zlevel:i,z2:W(n.z2,-1/0)},i=P({},e.triggerInfo);this._opt=rt(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||(dw(o,"mousedown",a,r),dw(o,"mousemove",s,r),dw(o,"mouseup",l,r)),!0!==t&&"scale"!==t&&"zoom"!==t)||(dw(o,"mousewheel",u,r),dw(o,"pinch",h,r))},t.disable=function(){this._enabled=!1,fw(o,"mousedown",a),fw(o,"mousemove",s),fw(o,"mouseup",l),fw(o,"mousewheel",u),fw(o,"pinch",h)},t}function hw(t){return t.__ecRoamConsumed}var cw=ea();function pw(t){t=cw(t);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function dw(t,e,n,i){for(var r,o,a=pw(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=pw(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 fw(t,e,n){for(var i,r,o,a=pw(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=pw(i=t).uniform)[r]&&(i.off(r,o[r]),o[r]=null)))}function gw(t,e,n,i,r){r.isAvailableBehavior=y(yw,null,n,i),t.trigger(e,r)}function yw(t,e,n){n=n[t];return!t||n&&(!V(n)||e.event[n+"Key"])}var mw=[],vw=[],_w=[],xw=ii,bw=re,ww=Math.abs;function Sw(t,e,n){for(var i,r=t[0],o=t[1],a=t[2],s=1/0,l=n*n,u=.1,h=.1;h<=.9;h+=.1)mw[0]=xw(r[0],o[0],a[0],h),mw[1]=xw(r[1],o[1],a[1],h),(d=ww(bw(mw,e)-l))<s&&(s=d,i=h);for(var c=0;c<32;c++){var p=i+u,d=(vw[0]=xw(r[0],o[0],a[0],i),vw[1]=xw(r[1],o[1],a[1],i),_w[0]=xw(r[0],o[0],a[0],p),_w[1]=xw(r[1],o[1],a[1],p),bw(vw,e)-l);if(ww(d)<.01)break;p=bw(_w,e)-l;u/=2,d<0?0<=p?i+=u:i-=u:0<=p?i-=u:i+=u}return i}function Mw(t,l){var u=[],h=ai,c=[[],[],[]],p=[[],[]],d=[];l/=2,t.eachEdge(function(t,e){var n,i,r=t.getLayout(),o=t.getVisual("fromSymbol"),a=t.getVisual("toSymbol"),s=(r.__original||(r.__original=[Xt(r[0]),Xt(r[1])],r[2]&&r.__original.push(Xt(r[2]))),r.__original);null!=r[2]?(Ut(c[0],s[0]),Ut(c[1],s[2]),Ut(c[2],s[1]),o&&"none"!==o&&(i=lb(t.node1),n=Sw(c,s[0],i*l),h(c[0][0],c[1][0],c[2][0],n,u),c[0][0]=u[3],c[1][0]=u[4],h(c[0][1],c[1][1],c[2][1],n,u),c[0][1]=u[3],c[1][1]=u[4]),a&&"none"!==a&&(i=lb(t.node2),n=Sw(c,s[1],i*l),h(c[0][0],c[1][0],c[2][0],n,u),c[1][0]=u[1],c[2][0]=u[2],h(c[0][1],c[1][1],c[2][1],n,u),c[1][1]=u[1],c[2][1]=u[2]),Ut(r[0],c[0]),Ut(r[1],c[2]),Ut(r[2],c[1])):(Ut(p[0],s[0]),Ut(p[1],s[1]),Kt(d,p[1],p[0]),te(d,d),o&&"none"!==o&&(i=lb(t.node1),jt(p[0],p[0],d,i*l)),a&&"none"!==a&&(i=lb(t.node2),jt(p[1],p[1],d,-i*l)),Ut(r[0],p[0]),Ut(r[1],p[1]))})}var Tw=ea();function Cw(t){return"view"===t.type}u(Dw,Iw=_y),Dw.prototype.init=function(t,e){var n=new Rb,i=new Jb,r=this.group,o=new so;this._controller=new lw(e.getZr()),this._controllerHost={target:o},o.add(n.group),o.add(i.group),r.add(o),this._symbolDraw=n,this._lineDraw=i,this._mainGroup=o,this._firstRender=!0},Dw.prototype.render=function(o,t,a){var s=this,e=o.coordinateSystem,n=!1,i=(this._model=o,this._api=a,this._active=!0,this._getThumbnailInfo()),i=(i&&i.bridge.reset(a),this._symbolDraw),r=this._lineDraw,l=(Cw(e)&&(e={x:e.x,y:e.y,scaleX:e.scaleX,scaleY:e.scaleY},this._firstRender?this._mainGroup.attr(e):ac(this._mainGroup,e,o)),Mw(o.getGraph(),sb(o)),o.getData()),e=(i.updateData(l),o.getEdgeData()),u=(r.updateData(e),this._updateNodeAndLinkScale(),this._updateController(null,o,a),clearTimeout(this._layoutTimeout),o.forceLayout),h=o.get(["force","layoutAnimation"]),c=(u&&(n=!0,this._startForceLayoutIteration(u,a,h)),o.get("layout")),p=(l.graph.eachNode(function(e){var t,n=e.dataIndex,i=e.getGraphicEl(),r=e.getModel();i&&(i.off("drag").off("dragend"),(t=r.get("draggable"))&&i.on("drag",function(t){switch(c){case"force":u.warmUp(),s._layouting||s._startForceLayoutIteration(u,a,h),u.setFixed(n),l.setItemLayout(n,[i.x,i.y]);break;case"circular":l.setItemLayout(n,[i.x,i.y]),e.setLayout({fixed:!0},!0),cb(o,"symbolSize",e,[t.offsetX,t.offsetY]),s.updateLayout(o);break;default:l.setItemLayout(n,[i.x,i.y]),ob(o.getGraph(),o),s.updateLayout(o)}}).on("dragend",function(){u&&u.setUnfixed(n)}),i.setDraggable(t,!!r.get("cursor")),"adjacency"===r.get(["emphasis","focus"]))&&(Sl(i).focus=e.getAdjacentDataIndices())}),l.graph.eachEdge(function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(Sl(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}),"circular"===o.get("layout")&&o.get(["circular","rotateLabel"])),d=l.getLayout("cx"),f=l.getLayout("cy");l.graph.eachNode(function(t){db(t,p,d,f)}),this._firstRender=!1,n||this._renderThumbnail(o,a,this._symbolDraw,this._lineDraw)},Dw.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},Dw.prototype._startForceLayoutIteration=function(t,n,i){var r=this,o=!1;!function e(){t.step(function(t){r.updateLayout(r._model),!t&&o||(o=!0,r._renderThumbnail(r._model,n,r._symbolDraw,r._lineDraw)),(r._layouting=!t)&&(i?r._layoutTimeout=setTimeout(e,16):e())})}()},Dw.prototype._updateController=function(i,e,n){var t=this._controller,r=this._controllerHost,o=e.coordinateSystem;Cw(o)?(t.enable(e.get("roam"),{api:n,zInfo:{component:e},triggerInfo:{roamTrigger:e.get("roamTrigger"),isInSelf:function(t,e,n){return o.containPoint([e,n])},isInClip:function(t,e,n){return!i||i.contain(e,n)}}}),r.zoomLimit=e.get("scaleLimit"),r.zoom=o.getZoom(),t.off("pan").off("zoom").on("pan",function(t){n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})}).on("zoom",function(t){n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY})})):t.disable()},Dw.prototype.updateViewOnPan=function(t,e,n){var i,r;this._active&&(i=this._controllerHost,r=n.dx,n=n.dy,(i=i.target).x+=r,i.y+=n,i.dirty(),this._updateThumbnailWindow())},Dw.prototype.updateViewOnZoom=function(t,e,n){var i,r,o,a,s,l;this._active&&(i=this._controllerHost,r=n.zoom,o=n.originX,n=n.originY,a=i.target,s=i.zoomLimit,l=i.zoom=i.zoom||1,r=(l=_b(l*=r,s))/i.zoom,i.zoom=l,vb(a,o,n,r),a.dirty(),this._updateNodeAndLinkScale(),Mw(t.getGraph(),sb(t)),this._lineDraw.updateLayout(),e.updateLabelLayout(),this._updateThumbnailWindow())},Dw.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=sb(t);e.eachItemGraphicEl(function(t,e){t&&t.setSymbolScale(n)})},Dw.prototype.updateLayout=function(t){this._active&&(Mw(t.getGraph(),sb(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout())},Dw.prototype.remove=function(){this._active=!1,clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove(),this._controller&&this._controller.disable()},Dw.prototype._getThumbnailInfo=function(){var t=this._model,e=t.coordinateSystem;if("view"===e.type){t=function(t){if(t)return Tw(t).bridge}(t);if(t)return{bridge:t,coordSys:e}}},Dw.prototype._updateThumbnailWindow=function(){var t=this._getThumbnailInfo();t&&t.bridge.updateWindow(t.coordSys.transform,this._api)},Dw.prototype._renderThumbnail=function(t,e,n,i){var r=this._getThumbnailInfo();if(r){var o=new so,a=n.group.children(),s=i.group.children(),l=new so,u=new so;o.add(u),o.add(l);for(var h=0;h<a.length;h++){var c=(y=a[h]).children()[0],p=y.x,d=y.y,f=P(v(c.shape),{width:c.scaleX,height:c.scaleY,x:p-c.scaleX/2,y:d-c.scaleY/2}),g=v(c.style),p=new c.constructor({shape:f,style:g,z2:151});u.add(p)}for(h=0;h<s.length;h++){var y,m=(y=s[h]).children()[0],g=v(m.style),f=v(m.shape),m=new Gb({style:g,shape:f,z2:151});l.add(m)}r.bridge.renderContent({api:e,roamType:t.get("roam"),viewportRect:null,group:o,targetTrans:r.coordSys.transform})}},Dw.type="graph";var Iw,kw=Dw;function Dw(){var t=null!==Iw&&Iw.apply(this,arguments)||this;return t.type=Dw.type,t}function Lw(t){return"_EC_"+t}Pw.prototype.isDirected=function(){return this._directed},Pw.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var n=this._nodesMap;if(!n[Lw(t)])return((e=new Ow(t,e)).hostGraph=this).nodes.push(e),n[Lw(t)]=e},Pw.prototype.getNodeByIndex=function(t){t=this.data.getRawIndex(t);return this.nodes[t]},Pw.prototype.getNodeById=function(t){return this._nodesMap[Lw(t)]},Pw.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(F(t)&&(t=this.nodes[t]),F(e)&&(e=this.nodes[e]),t instanceof Ow||(t=i[Lw(t)]),e instanceof Ow||(e=i[Lw(e)]),t&&e)return i=t.id+"-"+e.id,((n=new Nw(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},Pw.prototype.getEdgeByIndex=function(t){t=this.edgeData.getRawIndex(t);return this.edges[t]},Pw.prototype.getEdge=function(t,e){t instanceof Ow&&(t=t.id),e instanceof Ow&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},Pw.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)},Pw.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)},Pw.prototype.breadthFirstTraverse=function(t,e,n,i){if(e=e instanceof Ow?e:this._nodesMap[Lw(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}}}},Pw.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},Pw.prototype.clone=function(){for(var t=new Pw(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 Aw=Pw;function Pw(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}Rw.prototype.degree=function(){return this.edges.length},Rw.prototype.inDegree=function(){return this.inEdges.length},Rw.prototype.outDegree=function(){return this.outEdges.length},Rw.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.data.getItemModel(this.dataIndex).getModel(t)},Rw.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},Rw.prototype.getTrajectoryDataIndices=function(){for(var t=O(),e=O(),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 Ow=Rw;function Rw(t,e){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=null==t?"":t,this.dataIndex=null==e?-1:e}zw.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostGraph.edgeData.getItemModel(this.dataIndex).getModel(t)},zw.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},zw.prototype.getTrajectoryDataIndices=function(){for(var t=O(),e=O(),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 Nw=zw;function zw(t,e,n){this.dataIndex=-1,this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}function Bw(n,i){return{getValue:function(t){var e=this[n][i];return e.getStore().get(e.getDimensionIndex(t||"value"),this.dataIndex)},setVisual:function(t,e){0<=this.dataIndex&&this[n][i].setItemVisual(this.dataIndex,t,e)},getVisual:function(t){return this[n][i].getItemVisual(this.dataIndex,t)},setLayout:function(t,e){0<=this.dataIndex&&this[n][i].setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this[n][i].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[n][i].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[n][i].getRawIndex(this.dataIndex)}}}st(Ow,Bw("hostGraph","data")),st(Nw,Bw("hostGraph","edgeData"));var Ew=ea();function Vw(t,e){var n;return Ew(n=this).mainData===n?Zw((n=P({},Ew(this).datas))[this.dataType]=e,n,t):Uw(e,this.dataType,Ew(this).mainData,t),e}function Fw(t,e){return t.struct&&t.struct.update(),e}function Hw(n,i){return N(Ew(i).datas,function(t,e){t!==i&&Uw(t.cloneShallow(),e,i,n)}),i}function Ww(t){var e=Ew(this).mainData;return null==t||null==e?e:Ew(e).datas[t]}function Gw(){var e=Ew(this).mainData;return null==e?[{data:e}]:B(pt(Ew(e).datas),function(t){return{type:t,data:Ew(e).datas[t]}})}function Zw(n,t,i){Ew(n).datas={},N(t,function(t,e){Uw(t,e,n,i)})}function Uw(t,e,n,i){Ew(n).datas[e]=t,Ew(t).mainData=n,t.dataType=e,i.struct&&(t[i.structAttr]=i.struct,i.struct[i.datasAttr[e]]=t),t.getLinkedData=Ww,t.getLinkedDataAll=Gw}function Xw(t,e,n,i,r){for(var o=new Aw(i),a=0;a<t.length;a++)o.addNode(wt(t[a].id,t[a].name,a),a);for(var s=[],l=[],u=0,a=0;a<e.length;a++){var h=e[a],c=h.source,p=h.target;o.addEdge(c,p,u)&&(l.push(h),s.push(wt(Ko(h.id,null),c+" > "+p)),u++)}var d,f,g,i=n.get("coordinateSystem"),i=("cartesian2d"===i||"polar"===i||"matrix"===i?d=Kv(t,n):(k(i=(i=rd.get(i))&&i.dimensions||[],"value")<0&&i.concat(["value"]),i=Gv(t,{coordDimensions:i,encodeDefine:n.getEncode()}).dimensions,(d=new Wv(i,n)).initData(t)),new Wv(["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,Zw(g,n,f),N(n,function(e){N(g.TRANSFERABLE_METHODS,function(t){e.wrapMethod(t,dt(Vw,f))})}),g.wrapMethod("cloneShallow",dt(Hw,f)),N(g.CHANGABLE_METHODS,function(t){g.wrapMethod(t,dt(Fw,f))}),Ct(n[g.dataType]===g),o.update(),o}qw.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},qw.prototype.containName=function(t){return 0<=this._getRawData().indexOfName(t)},qw.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},qw.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)};var Yw=qw;function qw(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}u($w,jw=ay),$w.prototype.init=function(t){jw.prototype.init.apply(this,arguments);var e=this;function n(){return e._categoriesData}this.legendVisualProvider=new Yw(n,n),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},$w.prototype.mergeOption=function(t){jw.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},$w.prototype.mergeDefaultAndTheme=function(t){jw.prototype.mergeDefaultAndTheme.apply(this,arguments),Zo(t,"edgeLabel",["show"])},$w.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],t=t.data||t.nodes||[],o=this;if(t&&i)return Kx(n=this)&&(n.__curvenessList=[],n.__edgeMap={},$x(n)),N((n=Xw(t,i,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=up.prototype.getModel;function i(t,e){t=n.call(this,t,e);return t.resolveParentPath=r,t}function r(t){var e;return!t||"label"!==t[0]&&"label"!==t[1]?t:(e=t.slice(),"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e)}e.wrapMethod("getItemModel",function(t){return t.resolveParentPath=r,t.getModel=i,t})})).edges,function(t){var e,n,i;e=t.node1,n=t.node2,i=this,t=t.dataIndex,Kx(i)&&(e=Qx(e,n,i),i=(n=i.__edgeMap)[Jx(e)],n[e]&&!i?n[e].isForward=!0:i&&n[e]&&(i.isForward=!0,n[e].isForward=!1),n[e]=n[e]||[],n[e].push(t))},this),n.data},$w.prototype.getGraph=function(){return this.getData().graph},$w.prototype.getEdgeData=function(){return this.getGraph().edgeData},$w.prototype.getCategoriesData=function(){return this._categoriesData},$w.prototype.formatTooltip=function(t,e,n){var i,r,o;return"edge"===n?(r=this.getData(),n=this.getDataParams(t,n),o=r.graph.getEdgeByIndex(t),i=r.getName(o.node1.dataIndex),r=r.getName(o.node2.dataIndex),o=[],null!=i&&o.push(i),null!=r&&o.push(r),ty("nameValue",{name:o.join(" > "),value:n.value,noValue:null==n.value})):ny({series:this,dataIndex:t,multipleSeries:e})},$w.prototype._updateCategoriesData=function(){var t=B(this.option.categories||[],function(t){return null!=t.value?t:P({value:0},t)}),e=new Wv(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},$w.prototype.setZoom=function(t){this.option.zoom=t},$w.prototype.setCenter=function(t){this.option.center=t},$w.prototype.isAnimationEnabled=function(){return jw.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},$w.type="series.graph",$w.dependencies=["grid","polar","geo","singleAxis","calendar"],$w.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:g.color.neutral50,width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:g.color.primary}}};var jw,Kw=$w;function $w(){var t=null!==jw&&jw.apply(this,arguments)||this;return t.type=$w.type,t.hasSymbolVisual=!0,t}a1(function(t){t.registerChartView(kw),t.registerSeriesModel(Kw),t.registerProcessor(Ux),t.registerVisual(Xx),t.registerVisual(qx),t.registerLayout(ab),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,fb),t.registerLayout(yb),t.registerCoordinateSystem("graphView",{dimensions:wb.dimensions,create:Cb}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Ft),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Ft),t.registerAction({type:"graphRoam",event:"graphRoam",update:"none"},function(s,t,l){t.eachComponent({mainType:"series",query:s},function(t){var e,n,i,r,o=l.getViewOfSeriesModel(t),o=(o&&(null!=s.dx&&null!=s.dy&&o.updateViewOnPan(t,l,s),null!=s.zoom)&&null!=s.originX&&null!=s.originY&&o.updateViewOnZoom(t,l,s),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(mb(o,i))),null!=r&&(r=_b(n*r,a)/n,vb(o,e.originX,e.originY,r),o.updateTransform(),o.setCenter(mb(o,i)),o.setZoom(r*n)),{center:o.getCenter(),zoom:o.getZoom()});t.setCenter&&t.setCenter(a.center),t.setZoom&&t.setZoom(a.zoom)})})});var Qw,Jw={left:0,right:0,top:0,bottom:0},tS=["25%","25%"],eS=(u(nS,Qw=Id),nS.prototype.mergeDefaultAndTheme=function(t,e){var n=bd(t.outerBounds);Qw.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&t.outerBounds&&xd(t.outerBounds,n)},nS.prototype.mergeOption=function(t,e){Qw.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&xd(this.option.outerBounds,t.outerBounds)},nS.type="grid",nS.dependencies=["xAxis","yAxis"],nS.layoutMode="box",nS.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:Jw,outerBoundsContain:"all",outerBoundsClampWidth:tS[0],outerBoundsClampHeight:tS[1],backgroundColor:g.color.transparent,borderWidth:1,borderColor:g.color.neutral30},nS);function nS(){return null!==Qw&&Qw.apply(this,arguments)||this}u(oS,iS=Id),oS.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",oa).models[0]},oS.type="cartesian2dAxis";var iS,rS=oS;function oS(){return null!==iS&&iS.apply(this,arguments)||this}st(rS,n1);var El={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:g.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:g.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:g.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[g.color.backgroundTint,g.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:g.color.neutral00,borderColor:g.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},tp=d({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},El),ga=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:g.color.axisMinorSplitLine,width:1}}},El),aS={category:tp,value:ga,time:d({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ga),log:rt({logBase:10},ga)},sS={value:1,category:1,time:1,log:1},lS=null;function uS(o,a,s,l){N(sS,function(t,r){var e,n=d(d({},aS[r],!0),l,!0),n=(u(i,e=s),i.prototype.mergeDefaultAndTheme=function(t,e){var n=_d(this),i=n?bd(t):{};d(t,e.getTheme().get(r+"Axis")),d(t,this.getDefaultOption()),t.type=hS(t),n&&xd(t,i,n)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=c_.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 lS?lS.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",hS)}function hS(t){return t.type||(t.data?"category":"value")}function cS(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}cS.prototype.getAxis=function(t){return this._axes[t]},cS.prototype.getAxes=function(){return B(this._dimList,function(t){return this._axes[t]},this)},cS.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),ht(this.getAxes(),function(t){return t.scale.type===e})},cS.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)};var pS=["x","y"];function dS(t){return("interval"===t.type||"time"===t.type)&&!t.hasBreaks()}u(yS,fS=cS),yS.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t,e,n,i,r=this.getAxis("x").scale,o=this.getAxis("y").scale;dS(r)&&dS(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=Ze([],i))},yS.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},yS.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]))},yS.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},yS.prototype.containZone=function(t,e){var t=this.dataToPoint(t),e=this.dataToPoint(e),n=this.getArea(),e=new U(t[0],t[1],e[0]-t[0],e[1]-t[1]);return n.intersect(e)},yS.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)?ae(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)},yS.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},yS.prototype.pointToData=function(t,e,n){var i,r;return n=n||[],this._invTransform?ae(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)},yS.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},yS.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 U(i,r,e,n)};var fS,gS=yS;function yS(){var t=null!==fS&&fS.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=pS,t}u(_S,mS=ap),_S.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},_S.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},_S.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},_S.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)};var mS,vS=_S;function _S(t,e,n,i,r){t=mS.call(this,t,e,n)||this;return t.index=0,t.type=i||"value",t.position=r||"bottom",t}var xS="expandAxisBreak",bS=Math.PI,wS=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],SS=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],MS=ea(),TS=ea(),CS=(IS.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:{}})},IS);function IS(t){this.recordMap={},this.resolveAxisNameOverlap=t}function kS(t,e,n,i,r,o){var a,s;J_(t.nameLocation)?(t=o.stOccupiedRect)&&AS((a={},t=t,s=o.transGroup.transform,a.transform=Pc(a.transform,s),a.localRect=Ac(a.localRect,t),a.rect=Ac(a.rect,t),s&&a.rect.applyTransform(s),a.axisAligned=Lc(s),a.obb=void 0,(a.label=a.label||{}).ignore=!1,a),i,r):PS(o.labelInfoList,o.dirVec,i,r)}var DS=Be(),LS=new U(0,0,0,0);function AS(t,e,n){var i=new M;_x(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 PS(t,e,n,i){for(var r=0<=M.dot(i,e),o=0,a=t.length;o<a;o++){var s=t[r?o:a-1-o];s.label.ignore||AS(s,n,i)}}RS.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},RS.prototype.__getRawCfg=function(){return this._cfg.raw},RS.prototype._resetCfgDetermined=function(t){var e=this._axisModel,n=e.getDefaultOption?e.getDefaultOption():{},i=W(t.axisName,e.get("name")),r=e.get("nameMoveOverlap"),t=(null!=r&&"auto"!==r||(r=W(t.defaultNameMoveOverlap,!0)),{raw:t,position:t.position,rotation:t.rotation,nameDirection:W(t.nameDirection,1),tickDirection:W(t.tickDirection,1),labelDirection:W(t.labelDirection,1),labelOffset:W(t.labelOffset,0),silent:W(t.silent,!0),axisName:i,nameLocation:St(e.get("nameLocation"),n.nameLocation,"end"),shouldNameMoveOverlap:!!i&&r,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])}),n=(this._cfg=t,new so({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 M(Math.cos(-t.rotation),Math.sin(-t.rotation))},RS.prototype.build=function(e,n){var i=this;return e=e||{axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},N(NS,function(t){e[t]&&zS[t](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,n||{})}),this},RS.innerTextLayout=function(t,e,n){var i,e=Ao(e-t),t=Po(e)?(i=0<n?"top":"bottom","center"):Po(e-bS)?(i=0<n?"bottom":"top","center"):(i="middle",0<e&&e<bS?0<n?"right":"left":0<n?"left":"right");return{rotation:e,textAlign:t,textVerticalAlign:i}},RS.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},RS.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)};var OS=RS;function RS(t,e,n,i){this.group=new so,this._axisModel=t,this._api=e,this._local={},this._shared=i||new CS(kS),this._resetCfgDetermined(n)}var NS=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],zS={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&&(ae(s,s,c),ae(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()?lS.buildAxisBreakLine(n,r,o,g):(xc((c=new Sh(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"]),V(p)&&(p=[p,p]),(V(o)||F(o))&&(o=[o,o]),g=_0(n.get(["axisLine","symbolOffset"])||0,o),d=o[0],f=o[1],N([{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=m0(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){FS(e,r,s)&&BS(t,e,n,i,r,o,a,C1.estimate)},axisTickLabelDetermine:function(t,e,n,i,r,o,a,s){FS(e,r,s)&&BS(t,e,n,i,r,o,a,C1.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=VS(r.getTicksCoords(),n.transform,t,rt(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||N(n,function(t){if(t&&t.label.ignore)for(var e=0;e<l.length;e++){var n=l[e],i=TS(n),r=MS(t.label);if(null!=i.tickValue&&!i.onBand&&i.tickValue===r.tickValue)return void ES(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=rt(a.getLineStyle(),rt(e.getModel("axisTick").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})),f=0;f<c.length;f++)for(var g=VS(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 M(0,0),h=new M(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=Be(),h.transform(We(m,m,t.rotation)),null!=(p=i.get("nameRotate"))&&(p=p*bS/180),J_(l)?c=OS.innerTextLayout(t.rotation,null!=p?p:t.rotation,f):(c=function(t,e,n,i){var r,n=Ao(n-t),t=i[0]>i[1],i="start"===e&&!t||"start"!==e&&t;e=Po(n-bS/2)?(r=i?"bottom":"top","center"):Po(n-1.5*bS)?(r=i?"top":"bottom","center"):(r="middle",n<1.5*bS&&bS/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=wt(t.raw.nameTruncateMaxWidth,f.maxWidth,g),f=s.nameMarginLevel||0,Ic({el:g=new cl({x:y.x,y:y.y,rotation:c.rotation,silent:OS.isLabelSilent(i),style:Fc(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=OS.makeAxisEventDataBase(i)).targetType="axisName",s.name=_,Sl(g).eventData=s),o.add(g),g.updateTransform(),e.nameEl=g,y=v.nameLayout=dx({label:g,priority:g.z2,defaultAttr:{ignore:g.ignore},marginDefault:(J_(l)?wS:SS)[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 BS(t,e,n,i,r,o,a,s){HS(e)||(h=t,O=e,r=r,s=s,_=a,k=(v=i).axis,a=wt(h.raw.axisLabelShow,v.get(["axisLabel","show"])),D=new so,r.add(D),r=I1(s),!a||k.scale.isBlank()?WS(O,[],D,r):(x=v.getModel("axisLabel"),b=k.getViewLabels(r),s=(wt(h.raw.labelRotate,x.get("rotate"))||0)*bS/180,w=OS.innerTextLayout(h.rotation,s,h.labelDirection),S=v.getCategories&&v.getCategories(!0),M=[],T=v.get("triggerEvent"),C=1/0,I=-1/0,N(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]&&H(u=S[o])&&u.textStyle?new up(u.textStyle,x,v.ecModel):l).getTextColor()||v.get(["axisLine","lineStyle","color"]),h=l.getShallow("align",!0)||w.textAlign,c=W(l.getShallow("alignMinLabel",!0),h),p=W(l.getShallow("alignMaxLabel",!0),h),d=l.getShallow("verticalAlign",!0)||l.getShallow("baseline",!0)||w.textVerticalAlign,f=W(l.getShallow("verticalAlignMinLabel",!0),d),g=W(l.getShallow("verticalAlignMaxLabel",!0),d),y=10+((null==(y=t.time)?void 0:y.level)||0),m=(C=Math.min(C,y),I=Math.max(I,y),new cl({x:0,y:0,rotation:0,silent:OS.isLabelSilent(v),z2:y,style:Fc(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,MS(m));y.break=t.break,y.tickValue=o,y.layoutRotation=w.rotation,Ic({el:m,componentModel:v,itemName:a,formatterParamsExtra:{isTruncated:function(){return m.isTruncated},value:s,tickIndex:e}}),T&&((l=OS.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),Sl(m).eventData=l,t.break)&&(n=v,i=_,r=t.break,m.on("click",function(t){var e={type:xS,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:MS(t).break?t.z2+(I-C+1):t.z2,defaultAttr:{ignore:t.ignore}}}),WS(O,a,D,r)));var v,_,x,b,w,S,M,T,C,I,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"]),N(h,function(t,e){var n,i,t=dx(t);t&&(n=t.label,i=MS(n),t.suggestIgnore=n.ignore,n.ignore=!1,Br(GS,ZS),GS.x=u.axis.dataToCoord(i.tickValue),GS.y=l.labelOffset+l.labelDirection*p,GS.rotation=i.layoutRotation,c.add(GS),GS.updateTransform(),c.remove(GS),GS.decomposeTransform(),Br(n,GS),n.markRedraw(),cx(t,!0),dx(t))}),t.rotation,t.optionHideOverlap);function R(t,e,n){var i,e=dx(d[e]),n=dx(d[n]);e&&n&&(!1===t||e.suggestIgnore?ES(e.label):n.suggestIgnore?ES(n.label):(f||(e=gx({marginForce:i=[0,0,0,0]},e),n=gx({marginForce:i},n)),_x(e,n,null,{touchThreshold:.1})&&ES((t?n:e).label)))}d=s,f=O,$_((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&&vx(ht(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&&J_(o.nameLocation),N(a,function(t){var e,t=dx(t);t&&!t.label.ignore&&(m.push(t),e=y.transGroup,L)&&(e.transform?Ze(DS,e.transform):Ee(DS),t.transform&&Fe(DS,DS,t.transform),U.copy(LS,t.localRect),LS.applyTransform(DS),g?g.union(LS):U.copy(g=new U(0,0,0,0),LS))}),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 U(e,0,o,1))),y.stOccupiedRect=g,y.labelInfoList=m}function ES(t){t&&(t.ignore=!0)}function VS(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&&(ae(a,a,e),ae(s,s,e)),new Sh({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:i,z2:2,autoBatch:!0,silent:!0})),u=(xc(u.shape,u.style.lineWidth),u.anid=r+"_"+t[l].tickValue,o.push(u),TS(u));u.onBand=!!t[l].onBand,u.tickValue=t[l].tickValue}return o}function FS(t,e,n){if(HS(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),WS(t,null,null,null))}return!0}function HS(t){return t.labelLayoutList}function WS(t,e,n,i){t.labelLayoutList=e,t.labelGroup=n,t.axisLabelsCreationContext=i}var GS=new ol,ZS=new ol;function US(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),wt(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 XS(i){var r={xAxisModel:null,yAxisModel:null};return N(r,function(t,e){var n=e.replace(/Model$/,""),n=i.getReferringComponents(n,oa).models[0];r[e]=n}),r}var YS=[[3,1],[0,2]],qS=(jS.prototype.getRect=function(){return this._rect},jS.prototype.update=function(t,e){var n=this._axesMap;function i(t){var d,e=pt(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;$v(s)&&a.get("alignTicks")&&null==a.get("interval")?i.push(o):(X_(s,a),$v(s)&&(d=o))}i.length&&(d||X_((d=i.pop()).scale,d.model),N(i,function(t){var e=t.scale,t=t.model,n=d.scale,i=__.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,{expandToNicedExtent:!0}),a=r.length-1,n=i.getInterval.call(n),s=(u=U_(e,t)).extent,l=u.fixMin,u=u.fixMax,t=("log"===e.type&&(s=s_(e.base,s,!0)),e.setBreaksFromOption(e1(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=Jv(h),p=s[0]+h*a;else if(u)for(c=s[1]-h*a;c>s[0]&&isFinite(c)&&isFinite(s[0]);)h=Jv(h),c=s[1]-h*a;else{t=(h=a<e.getTicks().length-1?Jv(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={};N(n.x,function(t){$S(n,"y",t,r)}),N(n.y,function(t){$S(n,"x",t,r)}),this.resize(this.model,e)},jS.prototype.resize=function(t,e,n){var i,r,o,a,s,l=vd(t,e),u=this._rect=gd(t.getBoxLayoutParams(),l.refContainer),h=this._axesMap,c=this._coordsList,p=t.get("containLabel");JS(h,u),n||(i=u,r=c,n=h,o=p,a=e,s=new CS(iM),N(n,function(t){return N(t,function(t){t1(t.model)&&(t.axisBuilder=function(t,e,n,i,r,o){for(var t=US(t,n),a=!1,s=!1,l=0;l<e.length;l++)$v(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 OS(n,i,t,r)}(i,r,t.model,a,s,!o))})}),c=s,e=void 0,p?e=eM(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=gd(t.get("outerBounds",!0)||Jw,n.refContainer));r=t.get("outerBoundsContain",!0);n=null==r||"auto"===r||k(["all","axisLabel"],r)<0?"all":r;r=[To(W(t.get("outerBoundsClampWidth",!0),tS[0]),e.width),To(W(t.get("outerBoundsClampHeight",!0),tS[1]),e.height)];return{outerBoundsRect:i,parsedOuterBoundsContain:n,outerBoundsClamp:r}}(t,u,l)).outerBoundsRect,t=n.parsedOuterBoundsContain,n=n.outerBoundsClamp,p&&(e=eM(p,t,n,u,h,c,l))),nM(u,h,C1.determine,null,e,l)),N(this._coordsList,function(t){t.calcAffineTransform()})},jS.prototype.getAxis=function(t,e){t=this._axesMap[t];if(null!=t)return t[e||0]},jS.prototype.getAxes=function(){return this._axesList.slice()},jS.prototype.getCartesian=function(t,e){if(null!=t&&null!=e)return this._coordsMap["x"+t+"y"+e];H(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]},jS.prototype.getCartesians=function(){return this._coordsList.slice()},jS.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},jS.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},jS.prototype._findConvertTarget=function(t){var e,n,i=t.seriesModel,r=t.xAxisModel||i&&i.getReferringComponents("xAxis",oa).models[0],o=t.yAxisModel||i&&i.getReferringComponents("yAxis",oa).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}},jS.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},jS.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;KS(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 vS(r,Y_(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?N((this._axesMap=u).x,function(i,r){N(u.y,function(t,e){var e="x"+r+"y"+e,n=new gS(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=[])},jS.prototype._updateScale=function(t,i){function r(e,n){N(Q_(e,n.dim),function(t){n.scale.unionExtentFromData(e,t)})}N(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=XS(t)).xAxisModel,n=n.yAxisModel,KS(e,i))&&KS(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)},jS.prototype.getTooltipAxes=function(n){var i=[],r=[];return N(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}},jS.create=function(i,r){var o=[];return i.eachComponent("grid",function(t,e){var n=new jS(t,i,r);n.name="grid_"+e,n.resize(t,r,!0),t.coordinateSystem=n,o.push(n)}),i.eachSeries(function(n){hd({targetModel:n,coordSysType:"cartesian2d",coordSysProvider:function(){var t=XS(n),e=t.xAxisModel,t=t.yAxisModel;return e.getCoordSysModel().coordinateSystem.getCartesian(e.componentIndex,t.componentIndex)}})}),o},jS.dimensions=pS,jS);function jS(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=pS,this._initCartesian(t,e,n),this.model=t}function KS(t,e){return t.getCoordSysModel()===e}function $S(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)QS(o[n])&&(r=o[n]);else for(var a in o)if(o.hasOwnProperty(a)&&QS(o[a])&&!i[s(o[a])]){r=o[a];break}r&&(i[s(r)]=!0)}function s(t){return t.dim+"_"+t.index}}function QS(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 JS(t,e){N(t.x,function(t){return tM(t,e.x,e.width)}),N(t.y,function(t){return tM(t,e.y,e.height)})}function tM(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 eM(r,t,e,n,i,l,o){nM(n,i,C1.estimate,t,!1,o);var a=[0,0,0,0],t=(s(0),s(1),u(n,0,NaN),u(n,1,NaN),null==ct(a,function(t){return 0<t}));return Mc(n,a,!0,!0,e),JS(i,n),t;function s(s){N(i[cc[s]],function(t){if(t1(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(MS(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=J_(e.nameLocation)?.5:NaN,u(a.rect,s,o),u(a.rect,1-s,NaN))}})}function u(t,e,n){var i=r[cc[e]]-t[cc[e]],t=t[pc[e]]+t[cc[e]]-(r[pc[e]]+r[cc[e]]),i=h(i,1-n),t=h(t,n),n=YS[e][0],e=YS[e][1];a[n]=bo(a[n],i),a[e]=bo(a[e],t)}function h(t,e){return 0<t&&!bt(e)&&1e-4<e&&(t/=e),t}}function nM(r,t,e,n,o,i){var a=e===C1.determine,s=(N(t,function(t){return N(t,function(t){var e,n,i;t1(t.model)&&(e=t.axisBuilder,n=r,i=t.model,n=US(r,i),e.updateCfg(n),t.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:o}))})}),{x:0,y:0});function l(t){s[cc[1-t]]=r[pc[t]]<=.5*i.refContainer[pc[t]]?0:1-t==1?2:1}l(0),l(1),N(t,function(t,e){return N(t,function(t){t1(t.model)&&("all"!==n&&!a||t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a)&&t.axisBuilder.build({axisLine:!0})})})}var iM=function(t,e,n,i,r,o){n="x"===n.axis.dim?"y":"x";kS(t,0,0,i,r,o),J_(t.nameLocation)||N(e.recordMap[n],function(t){t&&t.labelInfoList&&t.dirVec&&PS(t.labelInfoList,t.dirVec,i,r)})};function rM(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[t.type+"||"+t.id]}var oM,aM={},c0=(u(sM,oM=fy),sM.prototype.render=function(t,e,n,i){var r,o,a,s,l,u;this.axisPointerClass&&(r=rM(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=!!l.get(["handle","show"]),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"),oM.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,n,!0)},sM.prototype.updateAxisPointer=function(t,e,n,i){this._doUpdateAxisPointerClass(t,n,!1)},sM.prototype.remove=function(t,e){var n=this._axisPointer;n&&n.remove(e)},sM.prototype.dispose=function(t,e){this._disposeAxisPointer(e),oM.prototype.dispose.apply(this,arguments)},sM.prototype._doUpdateAxisPointerClass=function(t,e,n){var i,r=sM.getAxisPointerClass(this.axisPointerClass);r&&((i=(i=rM(i=t))&&i.axisPointerModel)?(this._axisPointer||(this._axisPointer=new r)).render(t,i,e,n):this._disposeAxisPointer(e))},sM.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},sM.registerAxisPointerClass=function(t,e){aM[t]=e},sM.getAxisPointerClass=function(t){return t&&aM[t]},sM.type="axis",sM);function sM(){var t=null!==oM&&oM.apply(this,arguments)||this;return t.type=sM.type,t}var lM=ea();var uM,hM=["splitArea","splitLine","minorSplitLine","breakArea"],Eu=(u(cM,uM=c0),cM.prototype.render=function(e,t,n,i){this.group.removeAll();var r,o,a,s,l=this._axisGroup;function u(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=v(t.shape)),e}this._axisGroup=new so,this.group.add(this._axisGroup),t1(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),N(hM,function(t){e.get([t,"show"])&&dM[t](this,this._axisGroup,e,e.getCoordSysModel(),n)},this),i&&"changeAxisOrder"===i.type&&i.isInitSort||(l=l,r=this._axisGroup,o=e,l&&r&&(s={},l.traverse(function(t){Sc(t)&&t.anid&&(s[t.anid]=t)}),a=s,r.traverse(function(t){var e,n;Sc(t)&&t.anid&&(e=a[t.anid])&&(n=u(t),t.attr(u(e)),ac(t,n,o,Sl(t).dataIndex))}))),uM.prototype.render.call(this,e,t,n,i))},cM.prototype.remove=function(){lM(this).splitAreaColors=null},cM.type="cartesianAxis",cM);function cM(){var t=null!==uM&&uM.apply(this,arguments)||this;return t.type=cM.type,t.axisPointerClass="CartesianAxisPointer",t}var pM,dM={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=E(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,xc((v=new Sh({anid:null!=v?"line_"+v:null,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:g[0],y2:g[1]},style:rt({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 Sh({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}));xc(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=lM(t).splitAreaColors,p=O(),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=E(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 ol({anid:null!=v?"area_"+v:null,shape:{x:_,y:x,width:b,height:w},style:rt({fill:s[d]},m),autoBatch:!0,silent:!0})),d=(d+1)%h}lM(t).splitAreaColors=p}}},breakArea:function(t,e,n,i,r){n.axis.scale}},fM=(u(gM,pM=Eu),gM.type="xAxis",gM);function gM(){var t=null!==pM&&pM.apply(this,arguments)||this;return t.type=gM.type,t}u(vM,yM=Eu),vM.type="yAxis";var yM,mM=vM;function vM(){var t=null!==yM&&yM.apply(this,arguments)||this;return t.type=fM.type,t}u(bM,_M=fy),bM.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new ol({shape:t.coordinateSystem.getRect(),style:rt({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},bM.type="grid";var _M,xM=bM;function bM(){var t=null!==_M&&_M.apply(this,arguments)||this;return t.type="grid",t}var wM={offset:0};a1(function(t){t.registerComponentView(xM),t.registerComponentModel(eS),t.registerCoordinateSystem("cartesian2d",qS),uS(t,"x",rS,wM),uS(t,"y",rS,wM),t.registerComponentView(fM),t.registerComponentView(mM),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})});var SM=["x","y","radius","angle","single"],MM=["cartesian2d","polar","singleAxis"];function TM(t){return t+"Axis"}function CM(t,e){var i,r=O(),n=[],o=O();for(t.eachComponent({mainType:"dataZoom",query:e},function(t){o.get(t.uid)||s(t)});i=!1,t.eachComponent("dataZoom",a),i;);function a(t){var n;!o.get(t.uid)&&(n=!1,t.eachTargetAxis(function(t,e){t=r.get(t);t&&t[e]&&(n=!0)}),n)&&(s(t),i=!0)}function s(t){o.set(t.uid,!0),n.push(t),t.eachTargetAxis(function(t,e){(r.get(t)||r.set(t,[]))[e]=!0})}return n}function IM(t){var r=t.ecModel,o={infoList:[],infoMap:O()};return t.eachTargetAxis(function(t,e){var n,i,t=r.getComponent(TM(t),e);t&&(e=t.getCoordSysModel())&&(n=e.uid,(i=o.infoMap.get(n))||(o.infoList.push(i={model:e,axisModels:[]}),o.infoMap.set(n,i)),i.axisModels.push(t))}),o}DM.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)};var kM=DM;function DM(){this.indexList=[],this.indexMap=[]}u(AM,LM=Id),AM.prototype.init=function(t,e,n){var i=PM(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},AM.prototype.mergeOption=function(t){var e=PM(t);d(this.option,t,!0),d(this.settledOption,e,!0),this._doInit(e)},AM.prototype._doInit=function(t){var n=this.option,i=(this._setDefaultThrottle(t),this._updateRangeUse(t),this.settledOption);N([["start","startValue"],["end","endValue"]],function(t,e){"value"===this._rangePropMode[e]&&(n[t[0]]=i[t[0]]=null)},this),this._resetTarget()},AM.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=O();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},AM.prototype._fillSpecifiedTargetAxis=function(i){var r=!1;return N(SM,function(t){var e,n=this.getReferringComponents(TM(t),aa);n.specified&&(r=!0,e=new kM,N(n.models,function(t){e.add(t.componentIndex)}),i.set(t,e))},this),r},AM.prototype._fillAutoTargetAxisByOrient=function(o,e){var t,i=this.ecModel,a=!0;function n(t,e){var n,i,r=t[0];r&&((n=new kM).add(r.componentIndex),o.set(e,n),a=!1,"x"!==e&&"y"!==e||(i=r.getReferringComponents("grid",oa).models[0])&&N(t,function(t){r.componentIndex!==t.componentIndex&&i===t.getReferringComponents("grid",oa).models[0]&&n.add(t.componentIndex)}))}a&&n(i.findComponents({mainType:(t="vertical"===e?"y":"x")+"Axis"}),t),a&&n(i.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),a&&N(SM,function(t){var e,n;a&&(e=i.findComponents({mainType:TM(t),filter:function(t){return"category"===t.get("type",!0)}}))[0]&&((n=new kM).add(e[0].componentIndex),o.set(t,n),a=!1)},this)},AM.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(t){e=e||t},this),"y"===e?"vertical":"horizontal"},AM.prototype._setDefaultThrottle=function(t){t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle&&(t=this.ecModel.option,this.option.throttle=t.animation&&0<t.animationDurationUpdate?100:20)},AM.prototype._updateRangeUse=function(i){var r=this._rangePropMode,o=this.get("rangeMode");N([["start","startValue"],["end","endValue"]],function(t,e){var n=null!=i[t[0]],t=null!=i[t[1]];n&&!t?r[e]="percent":!n&&t?r[e]="value":o?r[e]=o[e]:n&&(r[e]="percent")})},AM.prototype.noTarget=function(){return this._noTarget},AM.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(t,e){null==n&&(n=this.ecModel.getComponent(TM(t),e))},this),n},AM.prototype.eachTargetAxis=function(n,i){this._targetAxisInfoMap.each(function(t,e){N(t.indexList,function(t){n.call(i,e,t)})})},AM.prototype.getAxisProxy=function(t,e){t=this.getAxisModel(t,e);if(t)return t.__dzAxisProxy},AM.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(TM(t),e)},AM.prototype.setRawRange=function(e){var n=this.option,i=this.settledOption;N([["start","startValue"],["end","endValue"]],function(t){null==e[t[0]]&&null==e[t[1]]||(n[t[0]]=i[t[0]]=e[t[0]],n[t[1]]=i[t[1]]=e[t[1]])},this),this._updateRangeUse(e)},AM.prototype.setCalculatedRange=function(e){var n=this.option;N(["start","startValue","end","endValue"],function(t){n[t]=e[t]})},AM.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},AM.prototype.getValueRange=function(t,e){return null!=t||null!=e?this.getAxisProxy(t,e).getDataValueWindow():(t=this.findRepresentativeAxisProxy())?t.getDataValueWindow():void 0},AM.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var r=n[i],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e=e||s}return e},AM.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},AM.prototype.getOrient=function(){return this._orient},AM.type="dataZoom",AM.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],AM.defaultOption={z:4,filterMode:"filter",start:0,end:100};var LM,zh=AM;function AM(){var t=null!==LM&&LM.apply(this,arguments)||this;return t.type=AM.type,t._autoThrottle=!0,t._noTarget=!0,t._rangePropMode=["percent","percent"],t}function PM(e){var n={};return N(["start","end","startValue","endValue","throttle"],function(t){e.hasOwnProperty(t)&&(n[t]=e[t])}),n}u(NM,OM=zh),NM.type="dataZoom.inside",NM.defaultOption=dp(zh.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0});var OM,RM=NM;function NM(){var t=null!==OM&&OM.apply(this,arguments)||this;return t.type=NM.type,t}u(BM,zM=fy),BM.prototype.render=function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},BM.type="dataZoom";var zM,Wu=BM;function BM(){var t=null!==zM&&zM.apply(this,arguments)||this;return t.type=BM.type,t}function EM(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0],a=(null!=r&&(r=FM(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i&&(s=FM(s=Math.abs(e[1]-e[0]),[0,a]),r=o=FM(s,[r,o]),i=0),e[0]=FM(e[0],n),e[1]=FM(e[1],n),VM(e,i)),s=(e[i]+=t,r||0),t=n.slice();a.sign<0?t[0]+=s:t[1]-=s,e[i]=FM(e[i],t),n=VM(e,i),null!=r&&(n.sign!==a.sign||n.span<r)&&(e[1-i]=e[i]+a.sign*r),n=VM(e,i),null!=o&&n.span>o&&(e[1-i]=e[i]+n.sign*o)}function VM(t,e){t=t[e]-t[1-e];return{span:Math.abs(t),sign:0<t||!(t<0)&&e?-1:1}}function FM(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var HM=ea();function WM(t,e){e&&(t.removeKey(e.model.uid),t=e.controller)&&t.dispose()}function GM(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function ZM(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}function UM(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,u){var e=HM(u),h=e.coordSysRecordMap||(e.coordSysRecordMap=O());h.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(r){N(IM(r).infoList,function(t){var o,e,n=t.model.uid,i=h.get(n)||h.set(n,(n=u,i=t.model,o={model:i,containsPoint:dt(ZM,i),dispatchAction:dt(GM,n),dataZoomInfoMap:null,controller:null},e=o.controller=new lw(n.getZr()),N(["pan","zoom","scrollMove"],function(r){e.on(r,function(n){var i=[];o.dataZoomInfoMap.each(function(t){var e;n.isAvailableBehavior(t.model.option)&&(e=(e=(t.getRange||{})[r])&&e(t.dzReferCoordSysInfo,o.model.mainType,o.controller,n),!t.model.get("disabled",!0))&&e&&i.push({dataZoomId:t.model.id,start:e[0],end:e[1]})}),i.length&&o.dispatchAction(i)})}),o));(i.dataZoomInfoMap||(i.dataZoomInfoMap=O())).set(r.uid,{dzReferCoordSysInfo:t,model:r,getRange:null})})}),h.each(function(t){var e,n,i,r,o,a,s=t.controller,l=t.dataZoomInfoMap;(e=l&&null!=(n=l.keys()[0])?l.get(n):e)?(n=t,i=u,o={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0,l.each(function(t){var t=t.model,e=!t.get("disabled",!0)&&(!t.get("zoomLock",!0)||"move");o["type_"+r]<o["type_"+e]&&(r=e),a=a&&t.get("preventDefaultMouseMove",!0)}),l={controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a,api:i,zInfo:{component:n.model},triggerInfo:{roamTrigger:null,isInSelf:n.containsPoint}}},s.enable(l.controlType,l.opt),Ly(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")):WM(h,t)})})}u(qM,XM=Wu),qM.prototype.render=function(t,e,n){var i,r;XM.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),n=n,i=t,r={pan:y(jM.pan,this),zoom:y(jM.zoom,this),scrollMove:y(jM.scrollMove,this)},HM(n).coordSysRecordMap.each(function(t){t=t.dataZoomInfoMap.get(i.uid);t&&(t.getRange=r)}))},qM.prototype.dispose=function(){this._clear(),XM.prototype.dispose.apply(this,arguments)},qM.prototype._clear=function(){for(var t=this.api,e=this.dataZoomModel,n=HM(t).coordSysRecordMap,i=n.keys(),r=0;r<i.length;r++){var o,a=i[r],a=n.get(a),s=a.dataZoomInfoMap;s&&(o=e.uid,s.get(o))&&(s.removeKey(o),s.keys().length||WM(n,a))}this.range=null},qM.type="dataZoom.inside";var XM,YM=qM;function qM(){var t=null!==XM&&XM.apply(this,arguments)||this;return t.type="dataZoom.inside",t}var jM={zoom:function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a)return a=(0<(e=$M[e](null,[i.originX,i.originY],a,n,t)).signal?e.pixelStart+e.pixelLength-e.pixel:e.pixel-e.pixelStart)/e.pixelLength*(o[1]-o[0])+o[0],n=Math.max(1/i.scale,0),o[0]=(o[0]-a)*n+a,o[1]=(o[1]-a)*n+a,EM(0,o,[0,100],0,(t=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan()).minSpan,t.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0},pan:KM(function(t,e,n,i,r,o){i=$M[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return i.signal*(t[1]-t[0])*i.pixel/i.pixelLength}),scrollMove:KM(function(t,e,n,i,r,o){return $M[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function KM(s){return function(t,e,n,i){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a)return EM(s(o,a,t,e,n,i),o,[0,100],"all"),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}}var $M={grid:function(t,e,n,i,r){var n=n.axis,o={},r=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===n.dim?(o.pixel=e[0]-t[0],o.pixelLength=r.width,o.pixelStart=r.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=r.height,o.pixelStart=r.y,o.signal=n.inverse?-1:1),o},polar:function(t,e,n,i,r){var o=n.axis,a={},r=r.model.coordinateSystem,s=r.getRadiusAxis().getExtent(),l=r.getAngleAxis().getExtent();return t=t?r.pointToCoord(t):[0,0],e=r.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=s[1]-s[0],a.pixelStart=s[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var n=n.axis,r=r.model.coordinateSystem.getRect(),o={};return t=t||[0,0],"horizontal"===n.orient?(o.pixel=e[0]-t[0],o.pixelLength=r.width,o.pixelStart=r.x,o.signal=n.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=r.height,o.pixelStart=r.y,o.signal=n.inverse?-1:1),o}},QM=N,JM=Io,tT=(eT.prototype.hostedBy=function(t){return this._dataZoomModel===t},eT.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},eT.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},eT.prototype.getTargetSeriesModels=function(){var n=[];return this.ecModel.eachSeries(function(t){var e;e=(e=t).get("coordinateSystem"),0<=k(MM,e)&&(e=TM(this._dimName),e=t.getReferringComponents(e,oa).models[0])&&this._axisIndex===e.componentIndex&&n.push(t)},this),n},eT.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},eT.prototype.getMinMaxSpan=function(){return v(this._minMaxSpan)},eT.prototype.calculateDataWindow=function(i){var r,o=this._dataExtent,s=this.getAxisModel().axis.scale,a=this._dataZoomModel.getRangePropMode(),l=[0,100],u=[],h=[],c=(QM(["start","end"],function(t,e){var n=i[t],t=i[t+"Value"];"percent"===a[e]?t=s.parse(So(n=null==n?l[e]:n,l,o)):(r=!0,n=So(t=null==t?o[e]:s.parse(t),o,l)),h[e]=null==t||isNaN(t)?o[e]:t,u[e]=null==n||isNaN(n)?l[e]:n}),JM(h),JM(u),this._minMaxSpan);function t(t,e,n,i,r){var o=r?"Span":"ValueSpan";EM(0,t,n,"all",c["min"+o],c["max"+o]);for(var a=0;a<2;a++)e[a]=So(t[a],n,i,!0),r&&(e[a]=s.parse(e[a]))}return r?t(h,u,o,l,!1):t(u,h,l,o,!0),{valueWindow:h,percentWindow:u}},eT.prototype.reset=function(t){var e,i,r,n;t===this._dataZoomModel&&(n=this.getTargetSeriesModels(),this._dataExtent=(i=(e=this)._dimName,r=[1/0,-1/0],QM(n=n,function(t){var e,n;e=r,n=t.getData(),t=i,n&&N(Q_(n,t),function(t){t=n.getApproximateExtent(t);t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1])})}),[(e=G_((n=e.getAxisModel()).axis.scale,n,r).calculate()).min,e.max]),this._updateMinMaxSpan(),n=this.calculateDataWindow(t.settledOption),this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel())},eT.prototype.filterData=function(t,e){var r,n,o,c;t===this._dataZoomModel&&(r=this._dimName,n=this.getTargetSeriesModels(),o=t.get("filterMode"),c=this._valueWindow,"none"!==o)&&QM(n,function(n){var l,u,i=n.getData(),h=i.mapDimensionsAll(r);h.length&&("weakFilter"===o?(l=i.getStore(),u=B(h,function(t){return i.getDimensionIndex(t)},i),i.filterSelf(function(t){for(var e,n,i,r=0;r<h.length;r++){var o=l.get(u[r],t),a=!isNaN(o),s=o<c[0],o=o>c[1];if(a&&!s&&!o)return!0;a&&(i=!0),s&&(e=!0),o&&(n=!0)}return i&&e&&n})):QM(h,function(t){var e;"empty"===o?n.setData(i=i.map(t,function(t){return(e=t)>=c[0]&&e<=c[1]?t:NaN;var e})):((e={})[t]=c,i.selectRange(e))}),QM(h,function(t){i.setApproximateExtent(c,t)}))})},eT.prototype._updateMinMaxSpan=function(){var i=this._minMaxSpan={},r=this._dataZoomModel,o=this._dataExtent;QM(["min","max"],function(t){var e=r.get(t+"Span"),n=r.get(t+"ValueSpan");null!=(n=null!=n?this.getAxisModel().axis.scale.parse(n):n)?e=So(o[0]+n,o,[0,100],!0):null!=e&&(n=So(e,[0,100],o,!0)-o[0]),i[t+"Span"]=e,i[t+"ValueSpan"]=n},this)},eT.prototype._setAxisModel=function(){var t,e=this.getAxisModel(),n=this._percentWindow,i=this._valueWindow;n&&(t=Lo(i,[0,500]),t=Math.min(t,20),e=e.axis.scale.rawExtentInfo,0!==n[0]&&e.setDeterminedMinMax("min",+i[0].toFixed(t)),100!==n[1]&&e.setDeterminedMinMax("max",+i[1].toFixed(t)),e.freeze())},eT);function eT(t,e,n,i){this._dimName=t,this._axisIndex=e,this.ecModel=i,this._dataZoomModel=n}var nT={getTargetSeries:function(o){function t(r){o.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(t,e){var n=o.getComponent(TM(t),e);r(t,e,n,i)})})}t(function(t,e,n,i){n.__dzAxisProxy=null});var r=[],e=(t(function(t,e,n,i){n.__dzAxisProxy||(n.__dzAxisProxy=new tT(t,e,i,o),r.push(n.__dzAxisProxy))}),O());return N(r,function(t){N(t.getTargetSeriesModels(),function(t){e.set(t.uid,t)})}),e},overallReset:function(t,i){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).reset(n)}),n.eachTargetAxis(function(t,e){n.getAxisProxy(t,e).filterData(n,i)})}),t.eachComponent("dataZoom",function(t){var e,n=t.findRepresentativeAxisProxy();n&&(e=n.getDataPercentWindow(),n=n.getDataValueWindow(),t.setCalculatedRange({start:e[0],end:e[1],startValue:n[0],endValue:n[1]}))})}};var iT=!1;function rT(t){iT||(iT=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,nT),t.registerAction("dataZoom",function(e,t){N(CM(t,e),function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function oT(t){rT(t),t.registerComponentModel(RM),t.registerComponentView(YM),UM(t)}u(lT,aT=zh),lT.type="dataZoom.slider",lT.layoutMode="box",lT.defaultOption=dp(zh.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:g.color.accent10,borderRadius:0,backgroundColor:g.color.transparent,dataBackground:{lineStyle:{color:g.color.accent30,width:.5},areaStyle:{color:g.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:g.color.accent40,width:.5},areaStyle:{color:g.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:g.color.neutral00,borderColor:g.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:g.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:g.color.tertiary},brushSelect:!0,brushStyle:{color:g.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:g.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15});var aT,sT=lT;function lT(){var t=null!==aT&&aT.apply(this,arguments)||this;return t.type=lT.type,t}var uT,hT=ol,cT="horizontal",pT="vertical",dT=["line","bar","candlestick","scatter"],fT={easing:"cubicOut",duration:100,delay:0},gT=(u(b,uT=Wu),b.prototype.init=function(t,e){this.api=e,this._onBrush=y(this._onBrush,this),this._onBrushEnd=y(this._onBrushEnd,this)},b.prototype.render=function(t,e,n,i){uT.prototype.render.apply(this,arguments),Ly(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1===t.get("show")?this.group.removeAll():t.noTarget()?(this._clear(),this.group.removeAll()):(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView())},b.prototype.dispose=function(){this._clear(),uT.prototype.dispose.apply(this,arguments)},b.prototype._clear=function(){(e=(n=this)[t="_dispatchZoomAction"])&&e[Cy]&&(e.clear&&e.clear(),n[t]=e[Cy]);var t,e,n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},b.prototype._buildView=function(){var t=this.group,e=(t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval(),this._displayables.sliderGroup=new so);this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},b.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,e=vd(t,e).refContainer,i=this._findCoordRect(),r=t.get("defaultLocationEdgeGap",!0)||0,o=this._orient===cT?{right:e.width-i.x-i.width,top:e.height-30-r-n,width:i.width,height:30}:{right:r,top:i.y,width:30,height:i.height},a=bd(t.option),n=(N(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])}),gd(a,e));this._location={x:n.x,y:n.y},this._size=[n.width,n.height],this._orient===pT&&this._size.reverse()},b.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),i=i&&i.get("inverse"),r=this._displayables.sliderGroup,o=(this._dataShadowInfo||{}).otherAxisInverse,n=(r.attr(n!==cT||i?n===cT&&i?{scaleY:o?1:-1,scaleX:-1}:n!==pT||i?{scaleY:o?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:o?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:o?1:-1,scaleX:1}),t.getBoundingRect([r]));t.x=e.x-n.x,t.y=e.y-n.y,t.markRedraw()},b.prototype._getViewExtent=function(){return[0,this._size[0]]},b.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect"),t=(n.add(new hT({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40})),new hT({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:y(this._onClickPanel,this)})),e=this.api.getZr();i?(t.on("mousedown",this._onBrushStart,this),t.cursor="crosshair",e.on("mousemove",this._onBrush),e.on("mouseup",this._onBrushEnd)):(e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)),n.add(t)},b.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),o=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=o)for(var a,s,l,u,h,c,p,d,f,g,y,m,v,_=this._shadowPolygonPts,x=this._shadowPolylinePts,b=(r===this._shadowData&&o===this._shadowDim&&e[0]===n[0]&&e[1]===n[1]||(a=r.getDataExtent(t.thisDim),i=.3*((s=r.getDataExtent(o))[1]-s[0]),s=[s[0]-i,s[1]+i],l=[0,e[1]],n=[0,e[0]],u=[[e[0],0],[0,0]],h=[],c=n[1]/Math.max(1,r.count()-1),p=e[0]/(a[1]-a[0]),d="time"===t.thisAxis.type,f=-c,g=Math.round(r.count()/e[0]),r.each([t.thisDim,o],function(t,e,n){0<g&&n%g?d||(f+=c):(f=d?(+t-a[0])*p:f+c,e=(t=null==e||isNaN(e)||""===e)?0:So(e,s,l,!0),t&&!y&&n?(u.push([u[u.length-1][0],0]),h.push([h[h.length-1][0],0])):!t&&y&&(u.push([f,0]),h.push([f,0])),t||(u.push([f,e]),h.push([f,e])),y=t)}),_=this._shadowPolygonPts=u,x=this._shadowPolylinePts=h),this._shadowData=r,this._shadowDim=o,this._shadowSize=[e[0],e[1]],this.dataZoomModel),w=0;w<3;w++){m=1===w,S=v=void 0,m=b.getModel(m?"selectedDataBackground":"dataBackground"),v=new so,S=new fh({shape:{points:_},segmentIgnoreThreshold:1,style:m.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),m=new vh({shape:{points:x},segmentIgnoreThreshold:1,style:m.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),v.add(S),v.add(m);var S=v;this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}}},b.prototype._prepareDataShadowInfo=function(){var s,l,t=this.dataZoomModel,u=t.get("showDataShadow");if(!1!==u)return l=this.ecModel,t.eachTargetAxis(function(o,a){N(t.getAxisProxy(o,a).getTargetSeriesModels(),function(t){var e,n,i,r;s||!0!==u&&k(dT,t.get("type"))<0||(e=l.getComponent(TM(o),a).axis,r=t.coordinateSystem,null!=(n={x:"y",y:"x",radius:"angle",angle:"radius"}[o])&&r.getOtherAxis&&(i=r.getOtherAxis(e).inverse),n=t.getData().mapDimension(n),r=t.getData().mapDimension(o),s={thisAxis:e,series:t,thisDim:r,otherDim:n,otherAxisInverse:i})},this)},this),s},b.prototype._renderHandle=function(){var t,e,r=this.group,n=this._displayables,o=n.handles=[null,null],a=n.handleLabels=[null,null],s=this._displayables.sliderGroup,i=this._size,l=this.dataZoomModel,u=this.api,h=l.get("borderRadius")||0,c=l.get("brushSelect"),p=n.filler=new hT({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}}),h=(s.add(p),s.add(new hT({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:i[0],height:i[1],r:h},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:1,fill:g.color.transparent}})),N([0,1],function(t){var e=l.get("handleIcon"),e=m0(e=!f0[e]&&e.indexOf("path://")<0&&e.indexOf("image://")<0?"path://"+e:e,-1,0,2,2,null,!0),n=(e.attr({cursor:"vertical"===this._orient?"ns-resize":"ew-resize",draggable:!0,drift:y(this._onDragMove,this,t),ondragend:y(this._onDragEnd,this),onmouseover:y(this._showDataInfo,this,!0),onmouseout:y(this._showDataInfo,this,!1),z2:5}),e.getBoundingRect()),i=l.get("handleSize"),i=(this._handleHeight=Mo(i,this._size[1]),this._handleWidth=n.width/n.height*this._handleHeight,e.setStyle(l.getModel("handleStyle").getItemStyle()),e.style.strokeNoScale=!0,e.rectHover=!0,e.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),cu(e),l.get("handleColor")),n=(null!=i&&(e.style.fill=i),s.add(o[t]=e),l.getModel("textStyle")),i=(l.get("handleLabel")||{}).show||!1;r.add(a[t]=new cl({silent:!0,invisible:!i,style:Fc(n,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:n.getTextColor(),font:n.getFont()}),z2:10}))},this),p);c&&(p=Mo(l.get("moveHandleSize"),i[1]),t=n.moveHandle=new ol({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:i[1]-.5,height:p}}),c=.8*p,(c=n.moveHandleIcon=m0(l.get("moveHandleIcon"),-c/2,-c/2,c,c,g.color.neutral00,!0)).silent=!0,c.y=i[1]+p/2-.5,t.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle(),e=Math.min(i[1]/2,Math.max(p,10)),(h=n.moveZone=new ol({invisible:!0,shape:{y:i[1]-e,height:p+e}})).on("mouseover",function(){u.enterEmphasis(t)}).on("mouseout",function(){u.leaveEmphasis(t)}),s.add(t),s.add(c),s.add(h)),h.attr({draggable:!0,cursor:"default",drift:y(this._onDragMove,this,"all"),ondragstart:y(this._showDataInfo,this,!0),ondragend:y(this._onDragEnd,this),onmouseover:y(this._showDataInfo,this,!0),onmouseout:y(this._showDataInfo,this,!1)})},b.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[So(t[0],[0,100],e,!0),So(t[1],[0,100],e,!0)]},b.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100],e=(EM(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?So(o.minSpan,a,r,!0):null,null!=o.maxSpan?So(o.maxSpan,a,r,!0):null),this._range),n=this._range=Io([So(i[0],r,a,!0),So(i[1],r,a,!0)]);return!e||e[0]!==n[0]||e[1]!==n[1]},b.prototype._updateView=function(t){for(var i=this._displayables,r=this._handleEnds,e=Io(r.slice()),o=this._size,n=(N([0,1],function(t){var e=i.handles[t],n=this._handleHeight;e.attr({scaleX:n/2,scaleY:n/2,x:r[t]+(t?-1:1),y:o[1]/2-n/2})},this),i.filler.setShape({x:e[0],y:0,width:e[1]-e[0],height:o[1]}),{x:e[0],width:e[1]-e[0]}),a=(i.moveHandle&&(i.moveHandle.setShape(n),i.moveZone.setShape(n),i.moveZone.getBoundingRect(),i.moveHandleIcon)&&i.moveHandleIcon.attr("x",n.x+n.width/2),i.dataShadowSegs),s=[0,e[0],e[1],o[0]],l=0;l<a.length;l++){var u=a[l],h=u.getClipPath();h||(h=new ol,u.setClipPath(h)),h.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:o[1]})}this._updateDataInfo(t)},b.prototype._updateDataInfo=function(t){var e,n,i=this.dataZoomModel,s=this._displayables,l=s.handleLabels,u=this._orient,h=["",""],c=(i.get("showDetail")&&(i=i.findRepresentativeAxisProxy())&&(e=i.getAxisModel().axis,n=this._range,t=t?i.calculateDataWindow({start:n[0],end:n[1]}).valueWindow:i.getDataValueWindow(),h=[this._formatLabel(t[0],e),this._formatLabel(t[1],e)]),Io(this._handleEnds.slice()));function r(t){var e,n,i=bc(s.handles[t].parent,this.group),r=(r=0===t?"right":"left",n=0===(a=i)[4]||0===a[5]||0===a[0]?1:wo(2*a[4]/a[0]),o=0===a[4]||0===a[5]||0===a[2]?1:wo(2*a[4]/a[2]),n=wc(["left"===r?-n:"right"===r?n:0,"top"===r?-o:"bottom"===r?o:0],a,e),wo(n[0])>wo(n[1])?0<n[0]?"right":"left":0<n[1]?"bottom":"top"),o=this._handleWidth/2+5,a=wc([c[t]+(0===t?-o:o),this._size[1]/2],i);l[t].setStyle({x:a[0],y:a[1],verticalAlign:u===cT?"middle":r,align:u===cT?r:"center",text:h[t]})}r.call(this,0),r.call(this,1)},b.prototype._formatLabel=function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),n=n.get("labelPrecision"),e=(null!=n&&"auto"!==n||(n=e.getPixelPrecision()),null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel({value:Math.round(t)}):t.toFixed(Math.min(n,20)));return z(i)?i(t,e):V(i)?i.replace("{value}",e):e},b.prototype._showDataInfo=function(t){var e=(this.dataZoomModel.get("handleLabel")||{}).show||!1,n=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,t=t||this._dragging?n:e,n=this._displayables,e=n.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t),n.moveHandle&&this.api[t?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},b.prototype._onDragMove=function(t,e,n,i){this._dragging=!0,Ae(i.event);i=wc([e,n],this._displayables.sliderGroup.getLocalTransform(),!0),e=this._updateInterval(t,i[0]),n=this.dataZoomModel.get("realtime");this._updateView(!n),e&&n&&this._dispatchZoomAction(!0)},b.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},b.prototype._onClickPanel=function(t){var e=this._size,t=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);t[0]<0||t[0]>e[0]||t[1]<0||t[1]>e[1]||(e=((e=this._handleEnds)[0]+e[1])/2,t=this._updateInterval("all",t[0]-e),this._updateView(),t&&this._dispatchZoomAction(!1))},b.prototype._onBrushStart=function(t){var e=t.offsetX,t=t.offsetY;this._brushStart=new M(e,t),this._brushing=!0,this._brushStartTime=+new Date},b.prototype._onBrushEnd=function(t){var e,n,i,r;this._brushing&&(i=this._displayables.brushRect,this._brushing=!1,i)&&(i.attr("ignore",!0),i=i.shape,+new Date-this._brushStartTime<200&&Math.abs(i.width)<5||(e=this._getViewExtent(),n=[0,100],EM(0,i=this._handleEnds=[i.x,i.x+i.width],e,0,null!=(r=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan()).minSpan?So(r.minSpan,n,e,!0):null,null!=r.maxSpan?So(r.maxSpan,n,e,!0):null),this._range=Io([So(i[0],e,n,!0),So(i[1],e,n,!0)]),this._updateView(),this._dispatchZoomAction(!1)))},b.prototype._onBrush=function(t){this._brushing&&(Ae(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},b.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect,i=(r||(r=n.brushRect=new hT({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1),this._brushStart),n=this._displayables.sliderGroup,t=n.transformCoordToLocal(t,e),e=n.transformCoordToLocal(i.x,i.y),n=this._size;t[0]=Math.max(Math.min(n[0],t[0]),0),r.setShape({x:e[0],y:0,width:t[0]-e[0],height:n[1]})},b.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?fT:null,start:e[0],end:e[1]})},b.prototype._findCoordRect=function(){var t,e,n=IM(this.dataZoomModel).infoList;return t=(t=!t&&n.length?(n=n[0].model.coordinateSystem).getRect&&n.getRect():t)?t:{x:.2*(n=this.api.getWidth()),y:.2*(e=this.api.getHeight()),width:.6*n,height:.6*e}},b.type="dataZoom.slider",b);function b(){var t=null!==uT&&uT.apply(this,arguments)||this;return t.type=b.type,t._displayables={},t}function yT(t){t.registerComponentModel(sT),t.registerComponentView(gT),rT(t)}a1(function(t){a1(oT),a1(yT)}),a1(Zx);var mT={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},vT=(_T.prototype.evaluate=function(t){var e=typeof t;return V(e)?this._condVal.test(t):!!F(e)&&this._condVal.test(t+"")},_T);function _T(t){null==(this._condVal=V(t)?new RegExp(t):xt(t)?t:null)&&f("")}bT.prototype.evaluate=function(){return this.value};var xT=bT;function bT(){}ST.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0};var wT=ST;function ST(){}TT.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1};var MT=TT;function TT(){}IT.prototype.evaluate=function(){return!this.child.evaluate()};var CT=IT;function IT(){}DT.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 kT=DT;function DT(){}function LT(t,e){if(!0===t||!1===t)return(n=new xT).value=t,n;var n;if(PT(t)||f(""),t.and)return AT("and",t,e);if(t.or)return AT("or",t,e);if(t.not)return n=e,PT(o=(o=t).not)||f(""),(l=new CT).child=LT(o,n),l.child||f(""),l;for(var i=t,r=e,o=r.prepareGetValue(i),a=[],s=pt(i),l=i.parser,u=l?wg(l):null,h=0;h<s.length;h++){var c,p=s[h];"parser"===p||r.valueGetterAttrMap.get(p)||(c=Vt(mT,p)?mT[p]:p,p=i[p],p=u?u(p):p,(c=function(t,e){return"eq"===t||"ne"===t?new kg("eq"===t,e):Vt(Sg,t)?new Mg(t,e):null}(c,p)||"reg"===c&&new vT(p))||f(""),a.push(c))}return a.length||f(""),(l=new kT).valueGetterParam=o,l.valueParser=u,l.getValue=r.getValue,l.subCondList=a,l}function AT(t,e,n){e=e[t],E(e)||f(""),e.length||f(""),t=new("and"===t?wT:MT);return t.children=B(e,function(t){return LT(t,n)}),t.children.length||f(""),t}function PT(t){return H(t)&&!lt(t)}RT.prototype.evaluate=function(){return this._cond.evaluate()};var OT=RT;function RT(t,e){this._cond=LT(t,e)}var NT={type:"echarts:filter",transform:function(t){for(var e,n,i=t.upstream,r=(t=t.config,n={valueGetterAttrMap:O({dimension:!0}),prepareGetValue:function(t){var e=t.dimension,t=(Vt(t,"dimension")||f(""),i.getDimensionInfo(e));return t||f(""),{dimIdx:t.index}},getValue:function(t){return i.retrieveValueFromItem(e,t.dimIdx)}},new OT(t,n)),o=[],a=0,s=i.count();a<s;a++)e=i.getRawDataItem(a),r.evaluate()&&o.push(e);return{data:o}}},zT={type:"echarts:sort",transform:function(t){for(var a=t.upstream,t=t.config,t=Go(t),s=(t.length||f(""),[]),t=(N(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?wg(i):null);i&&!r&&f(""),s.push({dimIdx:e.index,parser:r,comparator:new Cg(n,t)})}),a.sourceFormat),e=(t!==zd&&t!==Bd&&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}}};a1(function(t){t.registerTransform(NT),t.registerTransform(zT)}),t.Axis=ap,t.ChartView=_y,t.ComponentModel=Id,t.ComponentView=fy,t.List=Wv,t.Model=up,t.PRIORITY=h0,t.SeriesModel=ay,t.color=Oi,t.connect=function(e){var t;return E(e)&&(t=e,e=null,N(t,function(t){null!=t.group&&(e=t.group)}),e=e||"g_"+qm++,N(t,function(t){t.group=e})),Xm[e]=!0,e},t.dataTool={},t.dependencies={zrender:"6.0.0"},t.disConnect=u0,t.disconnect=Km,t.dispose=function(t){V(t)?t=Um[t]:t instanceof Lm||(t=$m(t)),t instanceof Lm&&!t.isDisposed()&&t.dispose()},t.env=p,t.extendChartView=function(t){return t=_y.extend(t),_y.registerClass(t),t},t.extendComponentModel=function(t){return t=Id.extend(t),Id.registerClass(t),t},t.extendComponentView=function(t){return t=fy.extend(t),fy.registerClass(t),t},t.extendSeriesModel=function(t){return t=ay.extend(t),ay.registerClass(t),t},t.format=kp,t.getCoordinateSystemDimensions=function(t){if(t=rd.get(t))return t.getDimensionsInfo?t.getDimensionsInfo():t.dimensions.slice()},t.getInstanceByDom=$m,t.getInstanceById=function(t){return Um[t]},t.getMap=function(t){var e=$0.getMap;return e&&e(t)},t.graphic=np,t.helper=rp,t.init=function(t,e,n){var i=!(n&&n.ssr);if(i){var r=$m(t);if(r)return r}return(r=new Lm(t,e,n)).id="ec_"+Ym++,Um[r.id]=r,i&&la(t,jm,r.id),Tm(r),K0.trigger("afterinit",r),r},t.innerDrawElementOnCanvas=G0,t.matrix=Ue,t.number=p0,t.parseGeoJSON=S1,t.parseGeoJson=S1,t.registerAction=rv,t.registerCoordinateSystem=ov,t.registerCustomSeries=function(t,e){},t.registerLayout=av,t.registerLoading=hv,t.registerLocale=xp,t.registerMap=cv,t.registerPostInit=ev,t.registerPostUpdate=nv,t.registerPreprocessor=Jm,t.registerProcessor=tv,t.registerTheme=Qm,t.registerTransform=pv,t.registerUpdateLifecycle=iv,t.registerVisual=sv,t.setCanvasCreator=function(t){D({createCanvas:t})},t.setPlatformAPI=D,t.throttle=Dy,t.time=ba,t.use=a1,t.util=Qc,t.vector=ue,t.version="6.0.0",t.zrUtil=Gt,t.zrender=vo});